@blackglory/structures 0.3.2 → 0.3.3
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/dist/es2015/index.min.mjs +1 -1
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +654 -872
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +654 -872
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +1 -1
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -1
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +654 -872
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +654 -872
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +1 -1
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/package.json +15 -15
package/dist/es2018/index.mjs
CHANGED
|
@@ -235,36 +235,70 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
235
235
|
|
|
236
236
|
var es2018$6 = {};
|
|
237
237
|
|
|
238
|
+
var customError$1 = {};
|
|
239
|
+
|
|
240
|
+
var es2018$5 = {};
|
|
241
|
+
|
|
242
|
+
var middleware = {};
|
|
243
|
+
|
|
244
|
+
var chunkAsync$1 = {};
|
|
245
|
+
|
|
246
|
+
var es2018$4 = {};
|
|
247
|
+
|
|
248
|
+
var go$1 = {};
|
|
249
|
+
|
|
250
|
+
go$1.go = void 0;
|
|
251
|
+
function go(fn) {
|
|
252
|
+
return fn();
|
|
253
|
+
}
|
|
254
|
+
go$1.go = go;
|
|
255
|
+
|
|
256
|
+
(function (exports) {
|
|
257
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
258
|
+
if (k2 === undefined) k2 = k;
|
|
259
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
260
|
+
}) : (function(o, m, k, k2) {
|
|
261
|
+
if (k2 === undefined) k2 = k;
|
|
262
|
+
o[k2] = m[k];
|
|
263
|
+
}));
|
|
264
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
265
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
266
|
+
};__exportStar(go$1, exports);
|
|
267
|
+
|
|
268
|
+
}(es2018$4));
|
|
269
|
+
|
|
270
|
+
var es2018$3 = {};
|
|
271
|
+
|
|
238
272
|
var customError = {};
|
|
239
273
|
|
|
240
274
|
customError.CustomError = void 0;
|
|
241
|
-
class CustomError extends Error {
|
|
275
|
+
class CustomError$1 extends Error {
|
|
242
276
|
get name() {
|
|
243
277
|
return this.constructor.name;
|
|
244
278
|
}
|
|
245
279
|
}
|
|
246
|
-
customError.CustomError = CustomError;
|
|
280
|
+
customError.CustomError = CustomError$1;
|
|
247
281
|
|
|
248
282
|
var expectedError = {};
|
|
249
283
|
|
|
250
284
|
expectedError.ExpectedError = void 0;
|
|
251
|
-
const custom_error_1$
|
|
252
|
-
class ExpectedError extends custom_error_1$
|
|
285
|
+
const custom_error_1$2 = customError;
|
|
286
|
+
class ExpectedError extends custom_error_1$2.CustomError {
|
|
253
287
|
}
|
|
254
288
|
expectedError.ExpectedError = ExpectedError;
|
|
255
289
|
|
|
256
|
-
var assertionError = {};
|
|
290
|
+
var assertionError$1 = {};
|
|
257
291
|
|
|
258
|
-
assertionError.AssertionError = void 0;
|
|
259
|
-
const custom_error_1 = customError;
|
|
260
|
-
class AssertionError extends custom_error_1.CustomError {
|
|
292
|
+
assertionError$1.AssertionError = void 0;
|
|
293
|
+
const custom_error_1$1 = customError;
|
|
294
|
+
class AssertionError$1 extends custom_error_1$1.CustomError {
|
|
261
295
|
}
|
|
262
|
-
assertionError.AssertionError = AssertionError;
|
|
296
|
+
assertionError$1.AssertionError = AssertionError$1;
|
|
263
297
|
|
|
264
|
-
var normalize$
|
|
298
|
+
var normalize$3 = {};
|
|
265
299
|
|
|
266
|
-
normalize$
|
|
267
|
-
function normalize(err) {
|
|
300
|
+
normalize$3.normalize = void 0;
|
|
301
|
+
function normalize$2(err) {
|
|
268
302
|
var _a;
|
|
269
303
|
return {
|
|
270
304
|
name: err.name,
|
|
@@ -272,7 +306,7 @@ function normalize(err) {
|
|
|
272
306
|
stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
|
|
273
307
|
};
|
|
274
308
|
}
|
|
275
|
-
normalize$
|
|
309
|
+
normalize$3.normalize = normalize$2;
|
|
276
310
|
|
|
277
311
|
var refute$1 = {};
|
|
278
312
|
|
|
@@ -284,15 +318,15 @@ function refute(condition, message) {
|
|
|
284
318
|
}
|
|
285
319
|
refute$1.refute = refute;
|
|
286
320
|
|
|
287
|
-
var assert$
|
|
321
|
+
var assert$3 = {};
|
|
288
322
|
|
|
289
|
-
assert$
|
|
290
|
-
const assertion_error_1 = assertionError;
|
|
291
|
-
function assert(condition, message) {
|
|
323
|
+
assert$3.assert = void 0;
|
|
324
|
+
const assertion_error_1$1 = assertionError$1;
|
|
325
|
+
function assert$2(condition, message) {
|
|
292
326
|
if (!condition)
|
|
293
|
-
throw new assertion_error_1.AssertionError(message);
|
|
327
|
+
throw new assertion_error_1$1.AssertionError(message);
|
|
294
328
|
}
|
|
295
|
-
assert$
|
|
329
|
+
assert$3.assert = assert$2;
|
|
296
330
|
|
|
297
331
|
(function (exports) {
|
|
298
332
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -306,46 +340,16 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
306
340
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
307
341
|
};__exportStar(customError, exports);
|
|
308
342
|
__exportStar(expectedError, exports);
|
|
309
|
-
__exportStar(assertionError, exports);
|
|
310
|
-
__exportStar(normalize$
|
|
343
|
+
__exportStar(assertionError$1, exports);
|
|
344
|
+
__exportStar(normalize$3, exports);
|
|
311
345
|
__exportStar(refute$1, exports);
|
|
312
|
-
__exportStar(assert$
|
|
313
|
-
|
|
314
|
-
}(es2018$6));
|
|
315
|
-
|
|
316
|
-
var es2018$5 = {};
|
|
317
|
-
|
|
318
|
-
var middleware = {};
|
|
319
|
-
|
|
320
|
-
var chunkAsync$1 = {};
|
|
321
|
-
|
|
322
|
-
var es2018$4 = {};
|
|
323
|
-
|
|
324
|
-
var go$1 = {};
|
|
325
|
-
|
|
326
|
-
go$1.go = void 0;
|
|
327
|
-
function go(fn) {
|
|
328
|
-
return fn();
|
|
329
|
-
}
|
|
330
|
-
go$1.go = go;
|
|
331
|
-
|
|
332
|
-
(function (exports) {
|
|
333
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
334
|
-
if (k2 === undefined) k2 = k;
|
|
335
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
336
|
-
}) : (function(o, m, k, k2) {
|
|
337
|
-
if (k2 === undefined) k2 = k;
|
|
338
|
-
o[k2] = m[k];
|
|
339
|
-
}));
|
|
340
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
341
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
342
|
-
};__exportStar(go$1, exports);
|
|
346
|
+
__exportStar(assert$3, exports);
|
|
343
347
|
|
|
344
|
-
}(es2018$
|
|
348
|
+
}(es2018$3));
|
|
345
349
|
|
|
346
350
|
chunkAsync$1.chunkAsync = void 0;
|
|
347
351
|
const go_1$f = es2018$4;
|
|
348
|
-
const errors_1$f = es2018$
|
|
352
|
+
const errors_1$f = es2018$3;
|
|
349
353
|
function chunkAsync(iterable, size) {
|
|
350
354
|
(0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
351
355
|
(0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -366,324 +370,472 @@ chunkAsync$1.chunkAsync = chunkAsync;
|
|
|
366
370
|
|
|
367
371
|
var chunkByAsync$1 = {};
|
|
368
372
|
|
|
369
|
-
var es2018$
|
|
373
|
+
var es2018$2 = {};
|
|
370
374
|
|
|
371
|
-
var array
|
|
375
|
+
var array = {};
|
|
372
376
|
|
|
373
|
-
array
|
|
374
|
-
function isArray
|
|
377
|
+
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
378
|
+
function isArray(val) {
|
|
375
379
|
return Array.isArray(val);
|
|
376
380
|
}
|
|
377
|
-
array
|
|
378
|
-
function isntArray
|
|
379
|
-
return !isArray
|
|
381
|
+
array.isArray = isArray;
|
|
382
|
+
function isntArray(val) {
|
|
383
|
+
return !isArray(val);
|
|
380
384
|
}
|
|
381
|
-
array
|
|
382
|
-
function isEmptyArray
|
|
385
|
+
array.isntArray = isntArray;
|
|
386
|
+
function isEmptyArray(val) {
|
|
383
387
|
return val.length === 0;
|
|
384
388
|
}
|
|
385
|
-
array
|
|
386
|
-
function isntEmptyArray
|
|
389
|
+
array.isEmptyArray = isEmptyArray;
|
|
390
|
+
function isntEmptyArray(val) {
|
|
387
391
|
return val.length !== 0;
|
|
388
392
|
}
|
|
389
|
-
array
|
|
393
|
+
array.isntEmptyArray = isntEmptyArray;
|
|
390
394
|
|
|
391
|
-
var asyncIterable
|
|
395
|
+
var asyncIterable = {};
|
|
392
396
|
|
|
393
|
-
var _null
|
|
397
|
+
var _null = {};
|
|
394
398
|
|
|
395
|
-
_null
|
|
396
|
-
function isNull
|
|
399
|
+
_null.isntNull = _null.isNull = void 0;
|
|
400
|
+
function isNull(val) {
|
|
397
401
|
return val === null;
|
|
398
402
|
}
|
|
399
|
-
_null
|
|
400
|
-
function isntNull
|
|
401
|
-
return !isNull
|
|
403
|
+
_null.isNull = isNull;
|
|
404
|
+
function isntNull(val) {
|
|
405
|
+
return !isNull(val);
|
|
402
406
|
}
|
|
403
|
-
_null
|
|
407
|
+
_null.isntNull = isntNull;
|
|
404
408
|
|
|
405
|
-
var _undefined
|
|
409
|
+
var _undefined = {};
|
|
406
410
|
|
|
407
|
-
_undefined
|
|
408
|
-
function isUndefined
|
|
411
|
+
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
412
|
+
function isUndefined(val) {
|
|
409
413
|
return val === undefined;
|
|
410
414
|
}
|
|
411
|
-
_undefined
|
|
412
|
-
function isntUndefined
|
|
413
|
-
return !isUndefined
|
|
415
|
+
_undefined.isUndefined = isUndefined;
|
|
416
|
+
function isntUndefined(val) {
|
|
417
|
+
return !isUndefined(val);
|
|
414
418
|
}
|
|
415
|
-
_undefined
|
|
419
|
+
_undefined.isntUndefined = isntUndefined;
|
|
416
420
|
|
|
417
|
-
asyncIterable
|
|
418
|
-
const null_1$
|
|
419
|
-
const undefined_1$
|
|
420
|
-
function isAsyncIterable
|
|
421
|
-
return (0, null_1$
|
|
422
|
-
&& (0, undefined_1$
|
|
421
|
+
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
422
|
+
const null_1$1 = _null;
|
|
423
|
+
const undefined_1$2 = _undefined;
|
|
424
|
+
function isAsyncIterable(val) {
|
|
425
|
+
return (0, null_1$1.isntNull)(val)
|
|
426
|
+
&& (0, undefined_1$2.isntUndefined)(val)
|
|
423
427
|
&& typeof val[Symbol.asyncIterator] === 'function';
|
|
424
428
|
}
|
|
425
|
-
asyncIterable
|
|
426
|
-
function isntAsyncIterable
|
|
427
|
-
return !isAsyncIterable
|
|
429
|
+
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
430
|
+
function isntAsyncIterable(val) {
|
|
431
|
+
return !isAsyncIterable(val);
|
|
428
432
|
}
|
|
429
|
-
asyncIterable
|
|
433
|
+
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
430
434
|
|
|
431
|
-
var bigint
|
|
435
|
+
var bigint = {};
|
|
432
436
|
|
|
433
|
-
bigint
|
|
434
|
-
function isBigInt
|
|
437
|
+
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
438
|
+
function isBigInt(val) {
|
|
435
439
|
return typeof val === 'bigint';
|
|
436
440
|
}
|
|
437
|
-
bigint
|
|
438
|
-
function isntBigInt
|
|
439
|
-
return !isBigInt
|
|
441
|
+
bigint.isBigInt = isBigInt;
|
|
442
|
+
function isntBigInt(val) {
|
|
443
|
+
return !isBigInt(val);
|
|
440
444
|
}
|
|
441
|
-
bigint
|
|
445
|
+
bigint.isntBigInt = isntBigInt;
|
|
442
446
|
|
|
443
|
-
var boolean
|
|
447
|
+
var boolean = {};
|
|
444
448
|
|
|
445
|
-
boolean
|
|
446
|
-
function isBoolean
|
|
449
|
+
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
450
|
+
function isBoolean(val) {
|
|
447
451
|
return typeof val === 'boolean';
|
|
448
452
|
}
|
|
449
|
-
boolean
|
|
450
|
-
function isntBoolean
|
|
451
|
-
return !isBoolean
|
|
453
|
+
boolean.isBoolean = isBoolean;
|
|
454
|
+
function isntBoolean(val) {
|
|
455
|
+
return !isBoolean(val);
|
|
452
456
|
}
|
|
453
|
-
boolean
|
|
457
|
+
boolean.isntBoolean = isntBoolean;
|
|
454
458
|
|
|
455
|
-
var char
|
|
459
|
+
var char = {};
|
|
456
460
|
|
|
457
|
-
var string
|
|
461
|
+
var string = {};
|
|
458
462
|
|
|
459
|
-
string
|
|
460
|
-
function isString
|
|
463
|
+
string.isntString = string.isString = void 0;
|
|
464
|
+
function isString(val) {
|
|
461
465
|
return typeof val === 'string';
|
|
462
466
|
}
|
|
463
|
-
string
|
|
464
|
-
function isntString
|
|
465
|
-
return !isString
|
|
467
|
+
string.isString = isString;
|
|
468
|
+
function isntString(val) {
|
|
469
|
+
return !isString(val);
|
|
466
470
|
}
|
|
467
|
-
string
|
|
471
|
+
string.isntString = isntString;
|
|
468
472
|
|
|
469
|
-
char
|
|
470
|
-
const string_1$
|
|
471
|
-
function isChar
|
|
472
|
-
return (0, string_1$
|
|
473
|
+
char.isntChar = char.isChar = void 0;
|
|
474
|
+
const string_1$1 = string;
|
|
475
|
+
function isChar(val) {
|
|
476
|
+
return (0, string_1$1.isString)(val)
|
|
473
477
|
&& val.length === 1;
|
|
474
478
|
}
|
|
475
|
-
char
|
|
476
|
-
function isntChar
|
|
477
|
-
return !isChar
|
|
479
|
+
char.isChar = isChar;
|
|
480
|
+
function isntChar(val) {
|
|
481
|
+
return !isChar(val);
|
|
478
482
|
}
|
|
479
|
-
char
|
|
483
|
+
char.isntChar = isntChar;
|
|
480
484
|
|
|
481
|
-
var date
|
|
485
|
+
var date = {};
|
|
482
486
|
|
|
483
|
-
date
|
|
484
|
-
function isDate
|
|
487
|
+
date.isntDate = date.isDate = void 0;
|
|
488
|
+
function isDate(val) {
|
|
485
489
|
return val instanceof Date;
|
|
486
490
|
}
|
|
487
|
-
date
|
|
488
|
-
function isntDate
|
|
489
|
-
return !isDate
|
|
491
|
+
date.isDate = isDate;
|
|
492
|
+
function isntDate(val) {
|
|
493
|
+
return !isDate(val);
|
|
490
494
|
}
|
|
491
|
-
date
|
|
495
|
+
date.isntDate = isntDate;
|
|
492
496
|
|
|
493
|
-
var _enum
|
|
497
|
+
var _enum = {};
|
|
494
498
|
|
|
495
|
-
_enum
|
|
496
|
-
function inEnum
|
|
499
|
+
_enum.inEnum = void 0;
|
|
500
|
+
function inEnum(val, _enum) {
|
|
497
501
|
return Object.values(_enum).includes(val);
|
|
498
502
|
}
|
|
499
|
-
_enum
|
|
503
|
+
_enum.inEnum = inEnum;
|
|
500
504
|
|
|
501
|
-
var error
|
|
505
|
+
var error = {};
|
|
502
506
|
|
|
503
|
-
error
|
|
504
|
-
function isError
|
|
507
|
+
error.isntError = error.isError = void 0;
|
|
508
|
+
function isError(val) {
|
|
505
509
|
return val instanceof Error;
|
|
506
510
|
}
|
|
507
|
-
error
|
|
508
|
-
function isntError
|
|
509
|
-
return !isError
|
|
511
|
+
error.isError = isError;
|
|
512
|
+
function isntError(val) {
|
|
513
|
+
return !isError(val);
|
|
510
514
|
}
|
|
511
|
-
error
|
|
515
|
+
error.isntError = isntError;
|
|
512
516
|
|
|
513
|
-
var falsy
|
|
517
|
+
var falsy = {};
|
|
514
518
|
|
|
515
|
-
falsy
|
|
516
|
-
function isFalsy
|
|
519
|
+
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
520
|
+
function isFalsy(val) {
|
|
517
521
|
return !val;
|
|
518
522
|
}
|
|
519
|
-
falsy
|
|
520
|
-
function isntFalsy
|
|
521
|
-
return !isFalsy
|
|
523
|
+
falsy.isFalsy = isFalsy;
|
|
524
|
+
function isntFalsy(val) {
|
|
525
|
+
return !isFalsy(val);
|
|
522
526
|
}
|
|
523
|
-
falsy
|
|
527
|
+
falsy.isntFalsy = isntFalsy;
|
|
524
528
|
|
|
525
|
-
var _function
|
|
529
|
+
var _function = {};
|
|
526
530
|
|
|
527
|
-
_function
|
|
528
|
-
function isFunction$
|
|
531
|
+
_function.isntFunction = _function.isFunction = void 0;
|
|
532
|
+
function isFunction$1(val) {
|
|
529
533
|
return typeof val === 'function';
|
|
530
534
|
}
|
|
531
|
-
_function
|
|
532
|
-
function isntFunction
|
|
533
|
-
return !isFunction$
|
|
535
|
+
_function.isFunction = isFunction$1;
|
|
536
|
+
function isntFunction(val) {
|
|
537
|
+
return !isFunction$1(val);
|
|
534
538
|
}
|
|
535
|
-
_function
|
|
539
|
+
_function.isntFunction = isntFunction;
|
|
536
540
|
|
|
537
|
-
var iterable
|
|
541
|
+
var iterable = {};
|
|
538
542
|
|
|
539
|
-
iterable
|
|
540
|
-
const null_1
|
|
541
|
-
const undefined_1$
|
|
542
|
-
function isIterable
|
|
543
|
-
return (0, null_1
|
|
544
|
-
&& (0, undefined_1$
|
|
543
|
+
iterable.isntIterable = iterable.isIterable = void 0;
|
|
544
|
+
const null_1 = _null;
|
|
545
|
+
const undefined_1$1 = _undefined;
|
|
546
|
+
function isIterable(val) {
|
|
547
|
+
return (0, null_1.isntNull)(val)
|
|
548
|
+
&& (0, undefined_1$1.isntUndefined)(val)
|
|
545
549
|
&& typeof val[Symbol.iterator] === 'function';
|
|
546
550
|
}
|
|
547
|
-
iterable
|
|
548
|
-
function isntIterable
|
|
549
|
-
return !isIterable
|
|
551
|
+
iterable.isIterable = isIterable;
|
|
552
|
+
function isntIterable(val) {
|
|
553
|
+
return !isIterable(val);
|
|
550
554
|
}
|
|
551
|
-
iterable
|
|
555
|
+
iterable.isntIterable = isntIterable;
|
|
552
556
|
|
|
553
|
-
var jsonRpc
|
|
557
|
+
var jsonRpc = {};
|
|
554
558
|
|
|
555
|
-
var object
|
|
559
|
+
var object = {};
|
|
556
560
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
object$1.isntObject = isntObject$1;
|
|
566
|
-
function isRecord(val) {
|
|
567
|
-
return isObject$1(val);
|
|
568
|
-
}
|
|
569
|
-
object$1.isRecord = isRecord;
|
|
570
|
-
function isEmptyObject$1(val) {
|
|
571
|
-
return Object.keys(val).length === 0;
|
|
572
|
-
}
|
|
573
|
-
object$1.isEmptyObject = isEmptyObject$1;
|
|
574
|
-
function isntEmptyObject$1(val) {
|
|
575
|
-
return Object.keys(val).length !== 0;
|
|
576
|
-
}
|
|
577
|
-
object$1.isntEmptyObject = isntEmptyObject$1;
|
|
561
|
+
/**
|
|
562
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
563
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
564
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
565
|
+
* Released under MIT license <https://lodash.com/license>
|
|
566
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
567
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
568
|
+
*/
|
|
578
569
|
|
|
579
|
-
|
|
570
|
+
/** `Object#toString` result references. */
|
|
571
|
+
var objectTag = '[object Object]';
|
|
580
572
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
const object_1$1 = object$1;
|
|
594
|
-
const string_1$2 = string$1;
|
|
595
|
-
const number_1$1 = number$1;
|
|
596
|
-
const undefined_1$3 = _undefined$1;
|
|
597
|
-
function isJsonRpcId$1(val) {
|
|
598
|
-
return (0, string_1$2.isString)(val) || (0, number_1$1.isNumber)(val);
|
|
599
|
-
}
|
|
600
|
-
function isJsonRpcParams$1(val) {
|
|
601
|
-
return (0, array_1$1.isArray)(val) || (0, object_1$1.isObject)(val);
|
|
602
|
-
}
|
|
603
|
-
function isJsonRpcNotification$1(val) {
|
|
604
|
-
return (0, object_1$1.isRecord)(val)
|
|
605
|
-
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
606
|
-
&& (0, string_1$2.isString)(val.method)
|
|
607
|
-
&& (0, undefined_1$3.isUndefined)(val.id)
|
|
608
|
-
&& isJsonRpcParams$1(val.params);
|
|
609
|
-
}
|
|
610
|
-
jsonRpc$1.isJsonRpcNotification = isJsonRpcNotification$1;
|
|
611
|
-
function isntJsonRpcNotification$1(val) {
|
|
612
|
-
return !isJsonRpcNotification$1(val);
|
|
613
|
-
}
|
|
614
|
-
jsonRpc$1.isntJsonRpcNotification = isntJsonRpcNotification$1;
|
|
615
|
-
function isJsonRpcRequest$1(val) {
|
|
616
|
-
return (0, object_1$1.isRecord)(val)
|
|
617
|
-
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
618
|
-
&& (0, string_1$2.isString)(val.method)
|
|
619
|
-
&& isJsonRpcId$1(val.id)
|
|
620
|
-
&& isJsonRpcParams$1(val.params);
|
|
621
|
-
}
|
|
622
|
-
jsonRpc$1.isJsonRpcRequest = isJsonRpcRequest$1;
|
|
623
|
-
function isntJsonRpcRequest$1(val) {
|
|
624
|
-
return !isJsonRpcRequest$1(val);
|
|
625
|
-
}
|
|
626
|
-
jsonRpc$1.isntJsonRpcRequest = isntJsonRpcRequest$1;
|
|
627
|
-
function isJsonRpcSuccess$1(val) {
|
|
628
|
-
return (0, object_1$1.isRecord)(val)
|
|
629
|
-
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
630
|
-
&& (0, string_1$2.isString)(val.id)
|
|
631
|
-
&& (0, undefined_1$3.isntUndefined)(val.result);
|
|
632
|
-
}
|
|
633
|
-
jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
|
|
634
|
-
function isntJsonRpcSuccess$1(val) {
|
|
635
|
-
return !isJsonRpcSuccess$1(val);
|
|
636
|
-
}
|
|
637
|
-
jsonRpc$1.isntJsonRpcSuccess = isntJsonRpcSuccess$1;
|
|
638
|
-
function isJsonRpcError$1(val) {
|
|
639
|
-
return (0, object_1$1.isRecord)(val)
|
|
640
|
-
&& (0, string_1$2.isString)(val.jsonrpc)
|
|
641
|
-
&& isJsonRpcId$1(val.id)
|
|
642
|
-
&& isJsonRpcErrorObject$1(val.error);
|
|
643
|
-
}
|
|
644
|
-
jsonRpc$1.isJsonRpcError = isJsonRpcError$1;
|
|
645
|
-
function isntJsonRpcError$1(val) {
|
|
646
|
-
return !isJsonRpcError$1(val);
|
|
647
|
-
}
|
|
648
|
-
jsonRpc$1.isntJsonRpcError = isntJsonRpcError$1;
|
|
649
|
-
function isJsonRpcErrorObject$1(val) {
|
|
650
|
-
return (0, object_1$1.isRecord)(val)
|
|
651
|
-
&& (0, number_1$1.isNumber)(val.code)
|
|
652
|
-
&& (0, string_1$2.isString)(val.message)
|
|
653
|
-
&& ((0, undefined_1$3.isUndefined)(val.data) || (0, object_1$1.isObject)(val.data));
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
var json$1 = {};
|
|
657
|
-
|
|
658
|
-
json$1.isntJson = json$1.isJson = void 0;
|
|
659
|
-
function isJson$1(val) {
|
|
573
|
+
/**
|
|
574
|
+
* Checks if `value` is a host object in IE < 9.
|
|
575
|
+
*
|
|
576
|
+
* @private
|
|
577
|
+
* @param {*} value The value to check.
|
|
578
|
+
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
579
|
+
*/
|
|
580
|
+
function isHostObject(value) {
|
|
581
|
+
// Many host objects are `Object` objects that can coerce to strings
|
|
582
|
+
// despite having improperly defined `toString` methods.
|
|
583
|
+
var result = false;
|
|
584
|
+
if (value != null && typeof value.toString != 'function') {
|
|
660
585
|
try {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
return false;
|
|
666
|
-
}
|
|
586
|
+
result = !!(value + '');
|
|
587
|
+
} catch (e) {}
|
|
588
|
+
}
|
|
589
|
+
return result;
|
|
667
590
|
}
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
594
|
+
*
|
|
595
|
+
* @private
|
|
596
|
+
* @param {Function} func The function to wrap.
|
|
597
|
+
* @param {Function} transform The argument transform.
|
|
598
|
+
* @returns {Function} Returns the new function.
|
|
599
|
+
*/
|
|
600
|
+
function overArg(func, transform) {
|
|
601
|
+
return function(arg) {
|
|
602
|
+
return func(transform(arg));
|
|
603
|
+
};
|
|
671
604
|
}
|
|
672
|
-
json$1.isntJson = isntJson$1;
|
|
673
605
|
|
|
674
|
-
|
|
606
|
+
/** Used for built-in method references. */
|
|
607
|
+
var funcProto = Function.prototype,
|
|
608
|
+
objectProto = Object.prototype;
|
|
675
609
|
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
610
|
+
/** Used to resolve the decompiled source of functions. */
|
|
611
|
+
var funcToString = funcProto.toString;
|
|
612
|
+
|
|
613
|
+
/** Used to check objects for own properties. */
|
|
614
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
615
|
+
|
|
616
|
+
/** Used to infer the `Object` constructor. */
|
|
617
|
+
var objectCtorString = funcToString.call(Object);
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Used to resolve the
|
|
621
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
622
|
+
* of values.
|
|
623
|
+
*/
|
|
624
|
+
var objectToString = objectProto.toString;
|
|
625
|
+
|
|
626
|
+
/** Built-in value references. */
|
|
627
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
631
|
+
* and has a `typeof` result of "object".
|
|
632
|
+
*
|
|
633
|
+
* @static
|
|
634
|
+
* @memberOf _
|
|
635
|
+
* @since 4.0.0
|
|
636
|
+
* @category Lang
|
|
637
|
+
* @param {*} value The value to check.
|
|
638
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
639
|
+
* @example
|
|
640
|
+
*
|
|
641
|
+
* _.isObjectLike({});
|
|
642
|
+
* // => true
|
|
643
|
+
*
|
|
644
|
+
* _.isObjectLike([1, 2, 3]);
|
|
645
|
+
* // => true
|
|
646
|
+
*
|
|
647
|
+
* _.isObjectLike(_.noop);
|
|
648
|
+
* // => false
|
|
649
|
+
*
|
|
650
|
+
* _.isObjectLike(null);
|
|
651
|
+
* // => false
|
|
652
|
+
*/
|
|
653
|
+
function isObjectLike(value) {
|
|
654
|
+
return !!value && typeof value == 'object';
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
659
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
660
|
+
*
|
|
661
|
+
* @static
|
|
662
|
+
* @memberOf _
|
|
663
|
+
* @since 0.8.0
|
|
664
|
+
* @category Lang
|
|
665
|
+
* @param {*} value The value to check.
|
|
666
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
667
|
+
* @example
|
|
668
|
+
*
|
|
669
|
+
* function Foo() {
|
|
670
|
+
* this.a = 1;
|
|
671
|
+
* }
|
|
672
|
+
*
|
|
673
|
+
* _.isPlainObject(new Foo);
|
|
674
|
+
* // => false
|
|
675
|
+
*
|
|
676
|
+
* _.isPlainObject([1, 2, 3]);
|
|
677
|
+
* // => false
|
|
678
|
+
*
|
|
679
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
680
|
+
* // => true
|
|
681
|
+
*
|
|
682
|
+
* _.isPlainObject(Object.create(null));
|
|
683
|
+
* // => true
|
|
684
|
+
*/
|
|
685
|
+
function isPlainObject$1(value) {
|
|
686
|
+
if (!isObjectLike(value) ||
|
|
687
|
+
objectToString.call(value) != objectTag || isHostObject(value)) {
|
|
688
|
+
return false;
|
|
689
|
+
}
|
|
690
|
+
var proto = getPrototype(value);
|
|
691
|
+
if (proto === null) {
|
|
692
|
+
return true;
|
|
693
|
+
}
|
|
694
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
695
|
+
return (typeof Ctor == 'function' &&
|
|
696
|
+
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
var lodash_isplainobject = isPlainObject$1;
|
|
700
|
+
|
|
701
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
702
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
703
|
+
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
704
|
+
const lodash_isplainobject_1 = __importDefault(lodash_isplainobject);
|
|
705
|
+
function isObject(val) {
|
|
706
|
+
return val !== null
|
|
707
|
+
&& typeof val === 'object';
|
|
708
|
+
}
|
|
709
|
+
object.isObject = isObject;
|
|
710
|
+
function isntObject(val) {
|
|
711
|
+
return !isObject(val);
|
|
712
|
+
}
|
|
713
|
+
object.isntObject = isntObject;
|
|
714
|
+
function isPlainObject(val) {
|
|
715
|
+
return (0, lodash_isplainobject_1.default)(val);
|
|
716
|
+
}
|
|
717
|
+
object.isPlainObject = isPlainObject;
|
|
718
|
+
function isntPlainObject(val) {
|
|
719
|
+
return !isPlainObject(val);
|
|
720
|
+
}
|
|
721
|
+
object.isntPlainObject = isntPlainObject;
|
|
722
|
+
function isEmptyObject(val) {
|
|
723
|
+
return Object.keys(val).length === 0;
|
|
724
|
+
}
|
|
725
|
+
object.isEmptyObject = isEmptyObject;
|
|
726
|
+
function isntEmptyObject(val) {
|
|
727
|
+
return Object.keys(val).length !== 0;
|
|
728
|
+
}
|
|
729
|
+
object.isntEmptyObject = isntEmptyObject;
|
|
730
|
+
|
|
731
|
+
var number = {};
|
|
732
|
+
|
|
733
|
+
number.isntNumber = number.isNumber = void 0;
|
|
734
|
+
function isNumber(val) {
|
|
735
|
+
return typeof val === 'number';
|
|
736
|
+
}
|
|
737
|
+
number.isNumber = isNumber;
|
|
738
|
+
function isntNumber(val) {
|
|
739
|
+
return !isNumber(val);
|
|
740
|
+
}
|
|
741
|
+
number.isntNumber = isntNumber;
|
|
742
|
+
|
|
743
|
+
jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
|
|
744
|
+
const array_1 = array;
|
|
745
|
+
const object_1 = object;
|
|
746
|
+
const string_1 = string;
|
|
747
|
+
const number_1 = number;
|
|
748
|
+
const undefined_1 = _undefined;
|
|
749
|
+
function isJsonRpcId(val) {
|
|
750
|
+
return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
|
|
751
|
+
}
|
|
752
|
+
function isJsonRpcParams(val) {
|
|
753
|
+
return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
|
|
754
|
+
}
|
|
755
|
+
function isJsonRpcNotification(val) {
|
|
756
|
+
return (0, object_1.isPlainObject)(val)
|
|
757
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
758
|
+
&& (0, string_1.isString)(val.method)
|
|
759
|
+
&& (0, undefined_1.isUndefined)(val.id)
|
|
760
|
+
&& isJsonRpcParams(val.params);
|
|
761
|
+
}
|
|
762
|
+
jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
|
|
763
|
+
function isntJsonRpcNotification(val) {
|
|
764
|
+
return !isJsonRpcNotification(val);
|
|
765
|
+
}
|
|
766
|
+
jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
|
|
767
|
+
function isJsonRpcRequest(val) {
|
|
768
|
+
return (0, object_1.isPlainObject)(val)
|
|
769
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
770
|
+
&& (0, string_1.isString)(val.method)
|
|
771
|
+
&& isJsonRpcId(val.id)
|
|
772
|
+
&& isJsonRpcParams(val.params);
|
|
773
|
+
}
|
|
774
|
+
jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
|
|
775
|
+
function isntJsonRpcRequest(val) {
|
|
776
|
+
return !isJsonRpcRequest(val);
|
|
777
|
+
}
|
|
778
|
+
jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
|
|
779
|
+
function isJsonRpcSuccess(val) {
|
|
780
|
+
return (0, object_1.isPlainObject)(val)
|
|
781
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
782
|
+
&& (0, string_1.isString)(val.id)
|
|
783
|
+
&& 'result' in val;
|
|
784
|
+
}
|
|
785
|
+
jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
|
|
786
|
+
function isntJsonRpcSuccess(val) {
|
|
787
|
+
return !isJsonRpcSuccess(val);
|
|
788
|
+
}
|
|
789
|
+
jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
|
|
790
|
+
function isJsonRpcError(val) {
|
|
791
|
+
return (0, object_1.isPlainObject)(val)
|
|
792
|
+
&& (0, string_1.isString)(val.jsonrpc)
|
|
793
|
+
&& isJsonRpcId(val.id)
|
|
794
|
+
&& isJsonRpcErrorObject(val.error);
|
|
795
|
+
}
|
|
796
|
+
jsonRpc.isJsonRpcError = isJsonRpcError;
|
|
797
|
+
function isntJsonRpcError(val) {
|
|
798
|
+
return !isJsonRpcError(val);
|
|
799
|
+
}
|
|
800
|
+
jsonRpc.isntJsonRpcError = isntJsonRpcError;
|
|
801
|
+
function isJsonRpcErrorObject(val) {
|
|
802
|
+
return (0, object_1.isPlainObject)(val)
|
|
803
|
+
&& (0, number_1.isNumber)(val.code)
|
|
804
|
+
&& (0, string_1.isString)(val.message)
|
|
805
|
+
&& ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
var json = {};
|
|
809
|
+
|
|
810
|
+
json.isntJson = json.isJson = void 0;
|
|
811
|
+
function isJson(val) {
|
|
812
|
+
try {
|
|
813
|
+
JSON.stringify(val);
|
|
814
|
+
return true;
|
|
815
|
+
}
|
|
816
|
+
catch (_a) {
|
|
817
|
+
return false;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
json.isJson = isJson;
|
|
821
|
+
function isntJson(val) {
|
|
822
|
+
return !isntJson();
|
|
823
|
+
}
|
|
824
|
+
json.isntJson = isntJson;
|
|
825
|
+
|
|
826
|
+
var url = {};
|
|
827
|
+
|
|
828
|
+
url.isAbsoluteURL = void 0;
|
|
829
|
+
function isAbsoluteURL(str) {
|
|
830
|
+
try {
|
|
831
|
+
new URL(str);
|
|
832
|
+
return true;
|
|
833
|
+
}
|
|
682
834
|
catch (_a) {
|
|
683
835
|
return false;
|
|
684
836
|
}
|
|
685
837
|
}
|
|
686
|
-
url
|
|
838
|
+
url.isAbsoluteURL = isAbsoluteURL;
|
|
687
839
|
|
|
688
840
|
(function (exports) {
|
|
689
841
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -695,32 +847,32 @@ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Obj
|
|
|
695
847
|
}));
|
|
696
848
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
697
849
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
698
|
-
};__exportStar(array
|
|
699
|
-
__exportStar(asyncIterable
|
|
700
|
-
__exportStar(bigint
|
|
701
|
-
__exportStar(boolean
|
|
702
|
-
__exportStar(char
|
|
703
|
-
__exportStar(date
|
|
704
|
-
__exportStar(_enum
|
|
705
|
-
__exportStar(error
|
|
706
|
-
__exportStar(falsy
|
|
707
|
-
__exportStar(_function
|
|
708
|
-
__exportStar(iterable
|
|
709
|
-
__exportStar(jsonRpc
|
|
710
|
-
__exportStar(json
|
|
711
|
-
__exportStar(_null
|
|
712
|
-
__exportStar(number
|
|
713
|
-
__exportStar(object
|
|
714
|
-
__exportStar(string
|
|
715
|
-
__exportStar(_undefined
|
|
716
|
-
__exportStar(url
|
|
850
|
+
};__exportStar(array, exports);
|
|
851
|
+
__exportStar(asyncIterable, exports);
|
|
852
|
+
__exportStar(bigint, exports);
|
|
853
|
+
__exportStar(boolean, exports);
|
|
854
|
+
__exportStar(char, exports);
|
|
855
|
+
__exportStar(date, exports);
|
|
856
|
+
__exportStar(_enum, exports);
|
|
857
|
+
__exportStar(error, exports);
|
|
858
|
+
__exportStar(falsy, exports);
|
|
859
|
+
__exportStar(_function, exports);
|
|
860
|
+
__exportStar(iterable, exports);
|
|
861
|
+
__exportStar(jsonRpc, exports);
|
|
862
|
+
__exportStar(json, exports);
|
|
863
|
+
__exportStar(_null, exports);
|
|
864
|
+
__exportStar(number, exports);
|
|
865
|
+
__exportStar(object, exports);
|
|
866
|
+
__exportStar(string, exports);
|
|
867
|
+
__exportStar(_undefined, exports);
|
|
868
|
+
__exportStar(url, exports);
|
|
717
869
|
|
|
718
|
-
}(es2018$
|
|
870
|
+
}(es2018$2));
|
|
719
871
|
|
|
720
872
|
chunkByAsync$1.chunkByAsync = void 0;
|
|
721
|
-
const types_1$
|
|
873
|
+
const types_1$k = es2018$2;
|
|
722
874
|
function chunkByAsync(iterable, predicate) {
|
|
723
|
-
if ((0, types_1$
|
|
875
|
+
if ((0, types_1$k.isAsyncIterable)(iterable)) {
|
|
724
876
|
return chunkByAsyncIterable(iterable);
|
|
725
877
|
}
|
|
726
878
|
else {
|
|
@@ -780,7 +932,7 @@ var chunk$1 = {};
|
|
|
780
932
|
|
|
781
933
|
chunk$1.chunk = void 0;
|
|
782
934
|
const go_1$e = es2018$4;
|
|
783
|
-
const errors_1$e = es2018$
|
|
935
|
+
const errors_1$e = es2018$3;
|
|
784
936
|
function chunk(iterable, size) {
|
|
785
937
|
(0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
786
938
|
(0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
|
|
@@ -802,12 +954,12 @@ chunk$1.chunk = chunk;
|
|
|
802
954
|
var concatAsync$1 = {};
|
|
803
955
|
|
|
804
956
|
concatAsync$1.concatAsync = void 0;
|
|
805
|
-
const types_1$
|
|
957
|
+
const types_1$j = es2018$2;
|
|
806
958
|
const go_1$d = es2018$4;
|
|
807
959
|
function concatAsync(iterable, ...otherIterables) {
|
|
808
960
|
return (0, go_1$d.go)(async function* () {
|
|
809
961
|
for (const iter of [iterable, ...otherIterables]) {
|
|
810
|
-
if ((0, types_1$
|
|
962
|
+
if ((0, types_1$j.isAsyncIterable)(iter)) {
|
|
811
963
|
for await (const element of iter) {
|
|
812
964
|
yield element;
|
|
813
965
|
}
|
|
@@ -856,7 +1008,7 @@ utils.copyIterable = copyIterable;
|
|
|
856
1008
|
dropAsync$1.dropAsync = void 0;
|
|
857
1009
|
const go_1$b = es2018$4;
|
|
858
1010
|
const utils_1$3 = utils;
|
|
859
|
-
const errors_1$d = es2018$
|
|
1011
|
+
const errors_1$d = es2018$3;
|
|
860
1012
|
function dropAsync(iterable, count) {
|
|
861
1013
|
(0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
862
1014
|
(0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -891,7 +1043,7 @@ var dropRightAsync$1 = {};
|
|
|
891
1043
|
dropRightAsync$1.dropRightAsync = void 0;
|
|
892
1044
|
const go_1$a = es2018$4;
|
|
893
1045
|
const utils_1$2 = utils;
|
|
894
|
-
const errors_1$c = es2018$
|
|
1046
|
+
const errors_1$c = es2018$3;
|
|
895
1047
|
function dropRightAsync(iterable, count) {
|
|
896
1048
|
(0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
897
1049
|
(0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -919,7 +1071,7 @@ var dropRight$1 = {};
|
|
|
919
1071
|
dropRight$1.dropRight = void 0;
|
|
920
1072
|
const go_1$9 = es2018$4;
|
|
921
1073
|
const utils_1$1 = utils;
|
|
922
|
-
const errors_1$b = es2018$
|
|
1074
|
+
const errors_1$b = es2018$3;
|
|
923
1075
|
function dropRight(iterable, count) {
|
|
924
1076
|
(0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
925
1077
|
(0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -935,9 +1087,9 @@ dropRight$1.dropRight = dropRight;
|
|
|
935
1087
|
var dropUntilAsync$1 = {};
|
|
936
1088
|
|
|
937
1089
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
938
|
-
const types_1$
|
|
1090
|
+
const types_1$i = es2018$2;
|
|
939
1091
|
function dropUntilAsync(iterable, predicate) {
|
|
940
|
-
if ((0, types_1$
|
|
1092
|
+
if ((0, types_1$i.isAsyncIterable)(iterable)) {
|
|
941
1093
|
return dropUntilAsyncIterable(iterable);
|
|
942
1094
|
}
|
|
943
1095
|
else {
|
|
@@ -1019,7 +1171,7 @@ var drop$1 = {};
|
|
|
1019
1171
|
drop$1.drop = void 0;
|
|
1020
1172
|
const go_1$8 = es2018$4;
|
|
1021
1173
|
const utils_1 = utils;
|
|
1022
|
-
const errors_1$a = es2018$
|
|
1174
|
+
const errors_1$a = es2018$3;
|
|
1023
1175
|
function drop(iterable, count) {
|
|
1024
1176
|
(0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1025
1177
|
(0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1052,9 +1204,9 @@ drop$1.drop = drop;
|
|
|
1052
1204
|
var filterAsync$1 = {};
|
|
1053
1205
|
|
|
1054
1206
|
filterAsync$1.filterAsync = void 0;
|
|
1055
|
-
const types_1$
|
|
1207
|
+
const types_1$h = es2018$2;
|
|
1056
1208
|
function filterAsync(iterable, predicate) {
|
|
1057
|
-
if ((0, types_1$
|
|
1209
|
+
if ((0, types_1$h.isAsyncIterable)(iterable)) {
|
|
1058
1210
|
return filterAsyncIterable(iterable);
|
|
1059
1211
|
}
|
|
1060
1212
|
else {
|
|
@@ -1099,9 +1251,9 @@ var flattenDeepAsync$1 = {};
|
|
|
1099
1251
|
var flattenByAsync$1 = {};
|
|
1100
1252
|
|
|
1101
1253
|
flattenByAsync$1.flattenByAsync = void 0;
|
|
1102
|
-
const types_1$
|
|
1254
|
+
const types_1$g = es2018$2;
|
|
1103
1255
|
function flattenByAsync(iterable, predicate) {
|
|
1104
|
-
if ((0, types_1$
|
|
1256
|
+
if ((0, types_1$g.isAsyncIterable)(iterable)) {
|
|
1105
1257
|
return flattenByAsyncIterable(iterable);
|
|
1106
1258
|
}
|
|
1107
1259
|
else {
|
|
@@ -1134,12 +1286,12 @@ function flattenByAsync(iterable, predicate) {
|
|
|
1134
1286
|
}
|
|
1135
1287
|
flattenByAsync$1.flattenByAsync = flattenByAsync;
|
|
1136
1288
|
function isFiniteIterable$1(val) {
|
|
1137
|
-
return (0, types_1$
|
|
1289
|
+
return (0, types_1$g.isIterable)(val) && (0, types_1$g.isntChar)(val);
|
|
1138
1290
|
}
|
|
1139
1291
|
|
|
1140
1292
|
flattenDeepAsync$1.flattenDeepAsync = void 0;
|
|
1141
1293
|
const flatten_by_async_1 = flattenByAsync$1;
|
|
1142
|
-
const errors_1$9 = es2018$
|
|
1294
|
+
const errors_1$9 = es2018$3;
|
|
1143
1295
|
function flattenDeepAsync(iterable, depth = Infinity) {
|
|
1144
1296
|
(0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1145
1297
|
(0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1157,7 +1309,7 @@ flattenAsync$1.flattenAsync = flattenAsync;
|
|
|
1157
1309
|
var flattenBy$1 = {};
|
|
1158
1310
|
|
|
1159
1311
|
flattenBy$1.flattenBy = void 0;
|
|
1160
|
-
const types_1$
|
|
1312
|
+
const types_1$f = es2018$2;
|
|
1161
1313
|
function flattenBy(iterable, predicate) {
|
|
1162
1314
|
return flatten(iterable, 1);
|
|
1163
1315
|
function* flatten(iterable, level) {
|
|
@@ -1173,14 +1325,14 @@ function flattenBy(iterable, predicate) {
|
|
|
1173
1325
|
}
|
|
1174
1326
|
flattenBy$1.flattenBy = flattenBy;
|
|
1175
1327
|
function isFiniteIterable(val) {
|
|
1176
|
-
return (0, types_1$
|
|
1328
|
+
return (0, types_1$f.isIterable)(val) && (0, types_1$f.isntChar)(val);
|
|
1177
1329
|
}
|
|
1178
1330
|
|
|
1179
1331
|
var flattenDeep$1 = {};
|
|
1180
1332
|
|
|
1181
1333
|
flattenDeep$1.flattenDeep = void 0;
|
|
1182
1334
|
const flatten_by_1 = flattenBy$1;
|
|
1183
|
-
const errors_1$8 = es2018$
|
|
1335
|
+
const errors_1$8 = es2018$3;
|
|
1184
1336
|
function flattenDeep(iterable, depth = Infinity) {
|
|
1185
1337
|
(0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
|
|
1186
1338
|
(0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
|
|
@@ -1200,9 +1352,9 @@ flatten$1.flatten = flatten;
|
|
|
1200
1352
|
var mapAsync$1 = {};
|
|
1201
1353
|
|
|
1202
1354
|
mapAsync$1.mapAsync = void 0;
|
|
1203
|
-
const types_1$
|
|
1355
|
+
const types_1$e = es2018$2;
|
|
1204
1356
|
function mapAsync(iterable, fn) {
|
|
1205
|
-
if ((0, types_1$
|
|
1357
|
+
if ((0, types_1$e.isAsyncIterable)(iterable)) {
|
|
1206
1358
|
return mapAsyncIterable(iterable);
|
|
1207
1359
|
}
|
|
1208
1360
|
else {
|
|
@@ -1241,7 +1393,7 @@ var repeatAsync$1 = {};
|
|
|
1241
1393
|
|
|
1242
1394
|
repeatAsync$1.repeatAsync = void 0;
|
|
1243
1395
|
const go_1$7 = es2018$4;
|
|
1244
|
-
const errors_1$7 = es2018$
|
|
1396
|
+
const errors_1$7 = es2018$3;
|
|
1245
1397
|
function repeatAsync(iterable, times) {
|
|
1246
1398
|
(0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1247
1399
|
(0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1276,7 +1428,7 @@ var repeat$1 = {};
|
|
|
1276
1428
|
|
|
1277
1429
|
repeat$1.repeat = void 0;
|
|
1278
1430
|
const go_1$6 = es2018$4;
|
|
1279
|
-
const errors_1$6 = es2018$
|
|
1431
|
+
const errors_1$6 = es2018$3;
|
|
1280
1432
|
function repeat(iterable, times) {
|
|
1281
1433
|
(0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
1282
1434
|
(0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
|
|
@@ -1311,7 +1463,7 @@ var sliceAsync$1 = {};
|
|
|
1311
1463
|
|
|
1312
1464
|
sliceAsync$1.sliceAsync = void 0;
|
|
1313
1465
|
const go_1$5 = es2018$4;
|
|
1314
|
-
const errors_1$5 = es2018$
|
|
1466
|
+
const errors_1$5 = es2018$3;
|
|
1315
1467
|
function sliceAsync(iterable, start, end = Infinity) {
|
|
1316
1468
|
(0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1317
1469
|
(0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1334,7 +1486,7 @@ var slice$1 = {};
|
|
|
1334
1486
|
|
|
1335
1487
|
slice$1.slice = void 0;
|
|
1336
1488
|
const go_1$4 = es2018$4;
|
|
1337
|
-
const errors_1$4 = es2018$
|
|
1489
|
+
const errors_1$4 = es2018$3;
|
|
1338
1490
|
function slice(iterable, start, end = Infinity) {
|
|
1339
1491
|
(0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
1340
1492
|
(0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
|
|
@@ -1374,9 +1526,9 @@ splitAsync$1.splitAsync = splitAsync;
|
|
|
1374
1526
|
var splitByAsync$1 = {};
|
|
1375
1527
|
|
|
1376
1528
|
splitByAsync$1.splitByAsync = void 0;
|
|
1377
|
-
const types_1$
|
|
1529
|
+
const types_1$d = es2018$2;
|
|
1378
1530
|
function splitByAsync(iterable, predicate) {
|
|
1379
|
-
if ((0, types_1$
|
|
1531
|
+
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
1380
1532
|
return splitByAsyncIterable(iterable);
|
|
1381
1533
|
}
|
|
1382
1534
|
else {
|
|
@@ -1457,7 +1609,7 @@ var takeAsync$1 = {};
|
|
|
1457
1609
|
|
|
1458
1610
|
takeAsync$1.takeAsync = void 0;
|
|
1459
1611
|
const go_1$3 = es2018$4;
|
|
1460
|
-
const errors_1$3 = es2018$
|
|
1612
|
+
const errors_1$3 = es2018$3;
|
|
1461
1613
|
function takeAsync(iterable, count) {
|
|
1462
1614
|
(0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1463
1615
|
(0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1478,7 +1630,7 @@ var takeRightAsync$1 = {};
|
|
|
1478
1630
|
|
|
1479
1631
|
takeRightAsync$1.takeRightAsync = void 0;
|
|
1480
1632
|
const go_1$2 = es2018$4;
|
|
1481
|
-
const errors_1$2 = es2018$
|
|
1633
|
+
const errors_1$2 = es2018$3;
|
|
1482
1634
|
function takeRightAsync(iterable, count) {
|
|
1483
1635
|
(0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1484
1636
|
(0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1508,7 +1660,7 @@ var takeRight$1 = {};
|
|
|
1508
1660
|
|
|
1509
1661
|
takeRight$1.takeRight = void 0;
|
|
1510
1662
|
const go_1$1 = es2018$4;
|
|
1511
|
-
const errors_1$1 = es2018$
|
|
1663
|
+
const errors_1$1 = es2018$3;
|
|
1512
1664
|
function takeRight(iterable, count) {
|
|
1513
1665
|
(0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1514
1666
|
(0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1537,9 +1689,9 @@ takeRight$1.takeRight = takeRight;
|
|
|
1537
1689
|
var takeUntilAsync$1 = {};
|
|
1538
1690
|
|
|
1539
1691
|
takeUntilAsync$1.takeUntilAsync = void 0;
|
|
1540
|
-
const types_1$
|
|
1692
|
+
const types_1$c = es2018$2;
|
|
1541
1693
|
function takeUntilAsync(iterable, predicate) {
|
|
1542
|
-
if ((0, types_1$
|
|
1694
|
+
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
1543
1695
|
return takeUntilAsyncIterable(iterable);
|
|
1544
1696
|
}
|
|
1545
1697
|
else {
|
|
@@ -1584,7 +1736,7 @@ var take$1 = {};
|
|
|
1584
1736
|
|
|
1585
1737
|
take$1.take = void 0;
|
|
1586
1738
|
const go_1 = es2018$4;
|
|
1587
|
-
const errors_1 = es2018$
|
|
1739
|
+
const errors_1 = es2018$3;
|
|
1588
1740
|
function take(iterable, count) {
|
|
1589
1741
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
1590
1742
|
(0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
|
|
@@ -1604,9 +1756,9 @@ take$1.take = take;
|
|
|
1604
1756
|
var tapAsync$1 = {};
|
|
1605
1757
|
|
|
1606
1758
|
tapAsync$1.tapAsync = void 0;
|
|
1607
|
-
const types_1$
|
|
1759
|
+
const types_1$b = es2018$2;
|
|
1608
1760
|
function tapAsync(iterable, fn) {
|
|
1609
|
-
if ((0, types_1$
|
|
1761
|
+
if ((0, types_1$b.isAsyncIterable)(iterable)) {
|
|
1610
1762
|
return tapAsyncIterable(iterable);
|
|
1611
1763
|
}
|
|
1612
1764
|
else {
|
|
@@ -1687,9 +1839,9 @@ uniqAsync$1.uniqAsync = uniqAsync;
|
|
|
1687
1839
|
var uniqByAsync$1 = {};
|
|
1688
1840
|
|
|
1689
1841
|
uniqByAsync$1.uniqByAsync = void 0;
|
|
1690
|
-
const types_1$
|
|
1842
|
+
const types_1$a = es2018$2;
|
|
1691
1843
|
function uniqByAsync(iterable, fn) {
|
|
1692
|
-
if ((0, types_1$
|
|
1844
|
+
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
|
1693
1845
|
return uniqByAsyncIterable(iterable);
|
|
1694
1846
|
}
|
|
1695
1847
|
else {
|
|
@@ -1756,7 +1908,7 @@ uniq$1.uniq = uniq;
|
|
|
1756
1908
|
var zipAsync$1 = {};
|
|
1757
1909
|
|
|
1758
1910
|
zipAsync$1.zipAsync = void 0;
|
|
1759
|
-
const types_1$
|
|
1911
|
+
const types_1$9 = es2018$2;
|
|
1760
1912
|
var Kind;
|
|
1761
1913
|
(function (Kind) {
|
|
1762
1914
|
Kind[Kind["Sync"] = 0] = "Sync";
|
|
@@ -1770,7 +1922,7 @@ async function* zipWithSize$1(...iterables) {
|
|
|
1770
1922
|
var _a, _b, _c, _d;
|
|
1771
1923
|
const length = iterables.length;
|
|
1772
1924
|
const iterators = iterables.map(iterable => {
|
|
1773
|
-
if ((0, types_1$
|
|
1925
|
+
if ((0, types_1$9.isAsyncIterable)(iterable)) {
|
|
1774
1926
|
return [Kind.Async, iterable[Symbol.asyncIterator]()];
|
|
1775
1927
|
}
|
|
1776
1928
|
else {
|
|
@@ -1916,9 +2068,9 @@ consume$1.consume = consume;
|
|
|
1916
2068
|
var eachAsync$1 = {};
|
|
1917
2069
|
|
|
1918
2070
|
eachAsync$1.eachAsync = void 0;
|
|
1919
|
-
const types_1$
|
|
2071
|
+
const types_1$8 = es2018$2;
|
|
1920
2072
|
function eachAsync(iterable, fn) {
|
|
1921
|
-
if ((0, types_1$
|
|
2073
|
+
if ((0, types_1$8.isAsyncIterable)(iterable)) {
|
|
1922
2074
|
return eachAsyncIterable(iterable);
|
|
1923
2075
|
}
|
|
1924
2076
|
else {
|
|
@@ -1956,9 +2108,9 @@ each$1.each = each;
|
|
|
1956
2108
|
var everyAsync$1 = {};
|
|
1957
2109
|
|
|
1958
2110
|
everyAsync$1.everyAsync = void 0;
|
|
1959
|
-
const types_1$
|
|
2111
|
+
const types_1$7 = es2018$2;
|
|
1960
2112
|
function everyAsync(iterable, predicate) {
|
|
1961
|
-
if ((0, types_1$
|
|
2113
|
+
if ((0, types_1$7.isAsyncIterable)(iterable)) {
|
|
1962
2114
|
return everyAsyncIterable(iterable);
|
|
1963
2115
|
}
|
|
1964
2116
|
else {
|
|
@@ -2002,9 +2154,9 @@ every$1.every = every;
|
|
|
2002
2154
|
var findAsync$1 = {};
|
|
2003
2155
|
|
|
2004
2156
|
findAsync$1.findAsync = void 0;
|
|
2005
|
-
const types_1$
|
|
2157
|
+
const types_1$6 = es2018$2;
|
|
2006
2158
|
function findAsync(iterable, predicate) {
|
|
2007
|
-
if ((0, types_1$
|
|
2159
|
+
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
|
2008
2160
|
return findAsyncIterable(iterable);
|
|
2009
2161
|
}
|
|
2010
2162
|
else {
|
|
@@ -2126,9 +2278,9 @@ match$1.match = match;
|
|
|
2126
2278
|
var reduceAsync$1 = {};
|
|
2127
2279
|
|
|
2128
2280
|
reduceAsync$1.reduceAsync = void 0;
|
|
2129
|
-
const types_1$
|
|
2281
|
+
const types_1$5 = es2018$2;
|
|
2130
2282
|
function reduceAsync(iterable, fn, initialValue) {
|
|
2131
|
-
if ((0, types_1$
|
|
2283
|
+
if ((0, types_1$5.isUndefined)(initialValue)) {
|
|
2132
2284
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
2133
2285
|
}
|
|
2134
2286
|
else {
|
|
@@ -2137,7 +2289,7 @@ function reduceAsync(iterable, fn, initialValue) {
|
|
|
2137
2289
|
}
|
|
2138
2290
|
reduceAsync$1.reduceAsync = reduceAsync;
|
|
2139
2291
|
function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
|
|
2140
|
-
if ((0, types_1$
|
|
2292
|
+
if ((0, types_1$5.isAsyncIterable)(iterable)) {
|
|
2141
2293
|
return reduceAsyncIterable(iterable);
|
|
2142
2294
|
}
|
|
2143
2295
|
else {
|
|
@@ -2159,7 +2311,7 @@ function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
|
|
|
2159
2311
|
}
|
|
2160
2312
|
}
|
|
2161
2313
|
function reduceAsyncWithoutInitialValue(iterable, fn) {
|
|
2162
|
-
if ((0, types_1$
|
|
2314
|
+
if ((0, types_1$5.isAsyncIterable)(iterable)) {
|
|
2163
2315
|
return reduceAsyncIterable(iterable);
|
|
2164
2316
|
}
|
|
2165
2317
|
else {
|
|
@@ -2222,9 +2374,9 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
|
|
|
2222
2374
|
var reduce$1 = {};
|
|
2223
2375
|
|
|
2224
2376
|
reduce$1.reduce = void 0;
|
|
2225
|
-
const types_1$
|
|
2377
|
+
const types_1$4 = es2018$2;
|
|
2226
2378
|
function reduce(iterable, fn, initialValue) {
|
|
2227
|
-
if ((0, types_1$
|
|
2379
|
+
if ((0, types_1$4.isUndefined)(initialValue)) {
|
|
2228
2380
|
return reduceWithoutInitialValue(iterable, fn);
|
|
2229
2381
|
}
|
|
2230
2382
|
else {
|
|
@@ -2269,9 +2421,9 @@ function reduceWithoutInitialValue(iterable, fn) {
|
|
|
2269
2421
|
var someAsync$1 = {};
|
|
2270
2422
|
|
|
2271
2423
|
someAsync$1.someAsync = void 0;
|
|
2272
|
-
const types_1 = es2018$
|
|
2424
|
+
const types_1$3 = es2018$2;
|
|
2273
2425
|
function someAsync(iterable, predicate) {
|
|
2274
|
-
if ((0, types_1.isAsyncIterable)(iterable)) {
|
|
2426
|
+
if ((0, types_1$3.isAsyncIterable)(iterable)) {
|
|
2275
2427
|
return someAsyncIterable(iterable);
|
|
2276
2428
|
}
|
|
2277
2429
|
else {
|
|
@@ -2455,6 +2607,135 @@ __exportStar(output, exports);
|
|
|
2455
2607
|
|
|
2456
2608
|
}(es2018$5));
|
|
2457
2609
|
|
|
2610
|
+
var getErrorNames$1 = {};
|
|
2611
|
+
|
|
2612
|
+
var traverseErrorPrototypeChain$1 = {};
|
|
2613
|
+
|
|
2614
|
+
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = void 0;
|
|
2615
|
+
function* traverseErrorPrototypeChain(err) {
|
|
2616
|
+
let current = err;
|
|
2617
|
+
while ((current = Object.getPrototypeOf(current))) {
|
|
2618
|
+
yield current;
|
|
2619
|
+
if (current === Error.prototype)
|
|
2620
|
+
break;
|
|
2621
|
+
}
|
|
2622
|
+
}
|
|
2623
|
+
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
|
2624
|
+
|
|
2625
|
+
getErrorNames$1.getErrorNames = void 0;
|
|
2626
|
+
const types_1$2 = es2018$2;
|
|
2627
|
+
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
|
2628
|
+
function* getErrorNames(err) {
|
|
2629
|
+
var _a;
|
|
2630
|
+
if ((0, types_1$2.isError)(err)) {
|
|
2631
|
+
for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {
|
|
2632
|
+
if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
|
|
2633
|
+
yield prototype.constructor.name;
|
|
2634
|
+
}
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
else {
|
|
2638
|
+
yield err.name;
|
|
2639
|
+
yield* err.ancestors;
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
getErrorNames$1.getErrorNames = getErrorNames;
|
|
2643
|
+
|
|
2644
|
+
var serializableError = {};
|
|
2645
|
+
|
|
2646
|
+
serializableError.isSerializableError = void 0;
|
|
2647
|
+
const types_1$1 = es2018$2;
|
|
2648
|
+
function isSerializableError(val) {
|
|
2649
|
+
return (0, types_1$1.isObject)(val)
|
|
2650
|
+
&& (0, types_1$1.isString)(val.name)
|
|
2651
|
+
&& (0, types_1$1.isString)(val.message)
|
|
2652
|
+
&& ((0, types_1$1.isString)(val.stack) || (0, types_1$1.isNull)(val.stack))
|
|
2653
|
+
&& ((0, types_1$1.isArray)(val.ancestors) && val.ancestors.every(types_1$1.isString));
|
|
2654
|
+
}
|
|
2655
|
+
serializableError.isSerializableError = isSerializableError;
|
|
2656
|
+
|
|
2657
|
+
customError$1.CustomError = void 0;
|
|
2658
|
+
const iterable_operator_1$1 = es2018$5;
|
|
2659
|
+
const get_error_names_1$1 = getErrorNames$1;
|
|
2660
|
+
const types_1 = es2018$2;
|
|
2661
|
+
const serializable_error_1 = serializableError;
|
|
2662
|
+
class CustomError extends Error {
|
|
2663
|
+
get name() {
|
|
2664
|
+
var _a, _b;
|
|
2665
|
+
return (_b = (_a = (0, iterable_operator_1$1.first)((0, get_error_names_1$1.getErrorNames)(this))) !== null && _a !== void 0 ? _a : CustomError.name) !== null && _b !== void 0 ? _b : 'CustomError';
|
|
2666
|
+
}
|
|
2667
|
+
static [Symbol.hasInstance](instance) {
|
|
2668
|
+
var _a;
|
|
2669
|
+
if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
|
|
2670
|
+
const reversedClassNames = [
|
|
2671
|
+
(_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
|
|
2672
|
+
...(0, get_error_names_1$1.getErrorNames)(this.prototype)
|
|
2673
|
+
].reverse();
|
|
2674
|
+
const reversedInstanceNames = (0, iterable_operator_1$1.toArray)((0, get_error_names_1$1.getErrorNames)(instance)).reverse();
|
|
2675
|
+
return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
|
|
2676
|
+
}
|
|
2677
|
+
else {
|
|
2678
|
+
return false;
|
|
2679
|
+
}
|
|
2680
|
+
}
|
|
2681
|
+
}
|
|
2682
|
+
customError$1.CustomError = CustomError;
|
|
2683
|
+
|
|
2684
|
+
var assertionError = {};
|
|
2685
|
+
|
|
2686
|
+
assertionError.AssertionError = void 0;
|
|
2687
|
+
const custom_error_1 = customError$1;
|
|
2688
|
+
class AssertionError extends custom_error_1.CustomError {
|
|
2689
|
+
}
|
|
2690
|
+
assertionError.AssertionError = AssertionError;
|
|
2691
|
+
|
|
2692
|
+
var normalize$1 = {};
|
|
2693
|
+
|
|
2694
|
+
normalize$1.normalize = void 0;
|
|
2695
|
+
const get_error_names_1 = getErrorNames$1;
|
|
2696
|
+
const iterable_operator_1 = es2018$5;
|
|
2697
|
+
function normalize(err) {
|
|
2698
|
+
var _a;
|
|
2699
|
+
const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
|
|
2700
|
+
return {
|
|
2701
|
+
name,
|
|
2702
|
+
ancestors,
|
|
2703
|
+
message: err.message,
|
|
2704
|
+
stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
|
|
2705
|
+
};
|
|
2706
|
+
}
|
|
2707
|
+
normalize$1.normalize = normalize;
|
|
2708
|
+
|
|
2709
|
+
var assert$1 = {};
|
|
2710
|
+
|
|
2711
|
+
assert$1.assert = void 0;
|
|
2712
|
+
const assertion_error_1 = assertionError;
|
|
2713
|
+
function assert(condition, message) {
|
|
2714
|
+
if (!condition)
|
|
2715
|
+
throw new assertion_error_1.AssertionError(message);
|
|
2716
|
+
}
|
|
2717
|
+
assert$1.assert = assert;
|
|
2718
|
+
|
|
2719
|
+
(function (exports) {
|
|
2720
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2721
|
+
if (k2 === undefined) k2 = k;
|
|
2722
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2723
|
+
}) : (function(o, m, k, k2) {
|
|
2724
|
+
if (k2 === undefined) k2 = k;
|
|
2725
|
+
o[k2] = m[k];
|
|
2726
|
+
}));
|
|
2727
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
2728
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2729
|
+
};__exportStar(customError$1, exports);
|
|
2730
|
+
__exportStar(assertionError, exports);
|
|
2731
|
+
__exportStar(serializableError, exports);
|
|
2732
|
+
__exportStar(normalize$1, exports);
|
|
2733
|
+
__exportStar(assert$1, exports);
|
|
2734
|
+
__exportStar(getErrorNames$1, exports);
|
|
2735
|
+
__exportStar(traverseErrorPrototypeChain$1, exports);
|
|
2736
|
+
|
|
2737
|
+
}(es2018$6));
|
|
2738
|
+
|
|
2458
2739
|
var _LRUMap_limit, _LRUMap_map;
|
|
2459
2740
|
class LRUMap {
|
|
2460
2741
|
constructor(limit) {
|
|
@@ -2513,11 +2794,11 @@ class LRUMap {
|
|
|
2513
2794
|
}
|
|
2514
2795
|
}
|
|
2515
2796
|
|
|
2516
|
-
var es2018$
|
|
2797
|
+
var es2018$1 = {};
|
|
2517
2798
|
|
|
2518
2799
|
var exponentialBackoff = {};
|
|
2519
2800
|
|
|
2520
|
-
var es2018
|
|
2801
|
+
var es2018 = {};
|
|
2521
2802
|
|
|
2522
2803
|
var random$1 = {};
|
|
2523
2804
|
|
|
@@ -2561,10 +2842,10 @@ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m
|
|
|
2561
2842
|
__exportStar(randomInt$1, exports);
|
|
2562
2843
|
__exportStar(randomIntInclusive$1, exports);
|
|
2563
2844
|
|
|
2564
|
-
}(es2018
|
|
2845
|
+
}(es2018));
|
|
2565
2846
|
|
|
2566
2847
|
exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
|
|
2567
|
-
const extra_rand_1 = es2018
|
|
2848
|
+
const extra_rand_1 = es2018;
|
|
2568
2849
|
function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
|
|
2569
2850
|
const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
|
|
2570
2851
|
if (jitter) {
|
|
@@ -2679,7 +2960,7 @@ __exportStar(setImmediate$1, exports);
|
|
|
2679
2960
|
__exportStar(setTimeoutLoop$1, exports);
|
|
2680
2961
|
__exportStar(setDynamicTimeoutLoop$1, exports);
|
|
2681
2962
|
|
|
2682
|
-
}(es2018$
|
|
2963
|
+
}(es2018$1));
|
|
2683
2964
|
|
|
2684
2965
|
var _ExpirableMap_map, _ExpirableMap_cancelClearTimeout;
|
|
2685
2966
|
class ExpirableMap {
|
|
@@ -2769,7 +3050,7 @@ class ExpirableMap {
|
|
|
2769
3050
|
if (this.itemMetadataSortedByExpirationTime.length > 0) {
|
|
2770
3051
|
const item = this.itemMetadataSortedByExpirationTime[0];
|
|
2771
3052
|
if (Number.isFinite(item.expirationTime)) {
|
|
2772
|
-
const cancel = es2018$
|
|
3053
|
+
const cancel = es2018$1.setSchedule(item.expirationTime, () => {
|
|
2773
3054
|
this.clearExpiredItems(Date.now());
|
|
2774
3055
|
this.rescheduleClearTimeout();
|
|
2775
3056
|
});
|
|
@@ -2900,7 +3181,7 @@ class TLRUMap {
|
|
|
2900
3181
|
if (this.itemMetadataSortedByExpirationTime.length > 0) {
|
|
2901
3182
|
const item = this.itemMetadataSortedByExpirationTime[0];
|
|
2902
3183
|
if (Number.isFinite(item.expirationTime)) {
|
|
2903
|
-
const cancel = es2018$
|
|
3184
|
+
const cancel = es2018$1.setSchedule(item.expirationTime, () => {
|
|
2904
3185
|
this.clearExpiredItems(Date.now());
|
|
2905
3186
|
this.rescheduleClearTimeout();
|
|
2906
3187
|
});
|
|
@@ -3025,7 +3306,7 @@ class BadEventError extends es2018$6.CustomError {
|
|
|
3025
3306
|
}
|
|
3026
3307
|
}
|
|
3027
3308
|
|
|
3028
|
-
function isFunction
|
|
3309
|
+
function isFunction(value) {
|
|
3029
3310
|
return typeof value === 'function';
|
|
3030
3311
|
}
|
|
3031
3312
|
|
|
@@ -3093,7 +3374,7 @@ var Subscription = (function () {
|
|
|
3093
3374
|
}
|
|
3094
3375
|
}
|
|
3095
3376
|
var initialTeardown = this.initialTeardown;
|
|
3096
|
-
if (isFunction
|
|
3377
|
+
if (isFunction(initialTeardown)) {
|
|
3097
3378
|
try {
|
|
3098
3379
|
initialTeardown();
|
|
3099
3380
|
}
|
|
@@ -3185,10 +3466,10 @@ var Subscription = (function () {
|
|
|
3185
3466
|
var EMPTY_SUBSCRIPTION = Subscription.EMPTY;
|
|
3186
3467
|
function isSubscription(value) {
|
|
3187
3468
|
return (value instanceof Subscription ||
|
|
3188
|
-
(value && 'closed' in value && isFunction
|
|
3469
|
+
(value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));
|
|
3189
3470
|
}
|
|
3190
3471
|
function execTeardown(teardown) {
|
|
3191
|
-
if (isFunction
|
|
3472
|
+
if (isFunction(teardown)) {
|
|
3192
3473
|
teardown();
|
|
3193
3474
|
}
|
|
3194
3475
|
else {
|
|
@@ -3323,7 +3604,7 @@ var SafeSubscriber = (function (_super) {
|
|
|
3323
3604
|
function SafeSubscriber(observerOrNext, error, complete) {
|
|
3324
3605
|
var _this = _super.call(this) || this;
|
|
3325
3606
|
var next;
|
|
3326
|
-
if (isFunction
|
|
3607
|
+
if (isFunction(observerOrNext)) {
|
|
3327
3608
|
next = observerOrNext;
|
|
3328
3609
|
}
|
|
3329
3610
|
else if (observerOrNext) {
|
|
@@ -3481,7 +3762,7 @@ function getPromiseCtor(promiseCtor) {
|
|
|
3481
3762
|
return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
|
|
3482
3763
|
}
|
|
3483
3764
|
function isObserver(value) {
|
|
3484
|
-
return value && isFunction
|
|
3765
|
+
return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
|
|
3485
3766
|
}
|
|
3486
3767
|
function isSubscriber(value) {
|
|
3487
3768
|
return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
|
|
@@ -3639,505 +3920,6 @@ var AnonymousSubject = (function (_super) {
|
|
|
3639
3920
|
return AnonymousSubject;
|
|
3640
3921
|
}(Subject));
|
|
3641
3922
|
|
|
3642
|
-
var es2018 = {};
|
|
3643
|
-
|
|
3644
|
-
var array = {};
|
|
3645
|
-
|
|
3646
|
-
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
3647
|
-
function isArray(val) {
|
|
3648
|
-
return Array.isArray(val);
|
|
3649
|
-
}
|
|
3650
|
-
array.isArray = isArray;
|
|
3651
|
-
function isntArray(val) {
|
|
3652
|
-
return !isArray(val);
|
|
3653
|
-
}
|
|
3654
|
-
array.isntArray = isntArray;
|
|
3655
|
-
function isEmptyArray(val) {
|
|
3656
|
-
return val.length === 0;
|
|
3657
|
-
}
|
|
3658
|
-
array.isEmptyArray = isEmptyArray;
|
|
3659
|
-
function isntEmptyArray(val) {
|
|
3660
|
-
return val.length !== 0;
|
|
3661
|
-
}
|
|
3662
|
-
array.isntEmptyArray = isntEmptyArray;
|
|
3663
|
-
|
|
3664
|
-
var asyncIterable = {};
|
|
3665
|
-
|
|
3666
|
-
var _null = {};
|
|
3667
|
-
|
|
3668
|
-
_null.isntNull = _null.isNull = void 0;
|
|
3669
|
-
function isNull(val) {
|
|
3670
|
-
return val === null;
|
|
3671
|
-
}
|
|
3672
|
-
_null.isNull = isNull;
|
|
3673
|
-
function isntNull(val) {
|
|
3674
|
-
return !isNull(val);
|
|
3675
|
-
}
|
|
3676
|
-
_null.isntNull = isntNull;
|
|
3677
|
-
|
|
3678
|
-
var _undefined = {};
|
|
3679
|
-
|
|
3680
|
-
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
3681
|
-
function isUndefined(val) {
|
|
3682
|
-
return val === undefined;
|
|
3683
|
-
}
|
|
3684
|
-
_undefined.isUndefined = isUndefined;
|
|
3685
|
-
function isntUndefined(val) {
|
|
3686
|
-
return !isUndefined(val);
|
|
3687
|
-
}
|
|
3688
|
-
_undefined.isntUndefined = isntUndefined;
|
|
3689
|
-
|
|
3690
|
-
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
3691
|
-
const null_1$1 = _null;
|
|
3692
|
-
const undefined_1$2 = _undefined;
|
|
3693
|
-
function isAsyncIterable(val) {
|
|
3694
|
-
return (0, null_1$1.isntNull)(val)
|
|
3695
|
-
&& (0, undefined_1$2.isntUndefined)(val)
|
|
3696
|
-
&& typeof val[Symbol.asyncIterator] === 'function';
|
|
3697
|
-
}
|
|
3698
|
-
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
3699
|
-
function isntAsyncIterable(val) {
|
|
3700
|
-
return !isAsyncIterable(val);
|
|
3701
|
-
}
|
|
3702
|
-
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
3703
|
-
|
|
3704
|
-
var bigint = {};
|
|
3705
|
-
|
|
3706
|
-
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
3707
|
-
function isBigInt(val) {
|
|
3708
|
-
return typeof val === 'bigint';
|
|
3709
|
-
}
|
|
3710
|
-
bigint.isBigInt = isBigInt;
|
|
3711
|
-
function isntBigInt(val) {
|
|
3712
|
-
return !isBigInt(val);
|
|
3713
|
-
}
|
|
3714
|
-
bigint.isntBigInt = isntBigInt;
|
|
3715
|
-
|
|
3716
|
-
var boolean = {};
|
|
3717
|
-
|
|
3718
|
-
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
3719
|
-
function isBoolean(val) {
|
|
3720
|
-
return typeof val === 'boolean';
|
|
3721
|
-
}
|
|
3722
|
-
boolean.isBoolean = isBoolean;
|
|
3723
|
-
function isntBoolean(val) {
|
|
3724
|
-
return !isBoolean(val);
|
|
3725
|
-
}
|
|
3726
|
-
boolean.isntBoolean = isntBoolean;
|
|
3727
|
-
|
|
3728
|
-
var char = {};
|
|
3729
|
-
|
|
3730
|
-
var string = {};
|
|
3731
|
-
|
|
3732
|
-
string.isntString = string.isString = void 0;
|
|
3733
|
-
function isString(val) {
|
|
3734
|
-
return typeof val === 'string';
|
|
3735
|
-
}
|
|
3736
|
-
string.isString = isString;
|
|
3737
|
-
function isntString(val) {
|
|
3738
|
-
return !isString(val);
|
|
3739
|
-
}
|
|
3740
|
-
string.isntString = isntString;
|
|
3741
|
-
|
|
3742
|
-
char.isntChar = char.isChar = void 0;
|
|
3743
|
-
const string_1$1 = string;
|
|
3744
|
-
function isChar(val) {
|
|
3745
|
-
return (0, string_1$1.isString)(val)
|
|
3746
|
-
&& val.length === 1;
|
|
3747
|
-
}
|
|
3748
|
-
char.isChar = isChar;
|
|
3749
|
-
function isntChar(val) {
|
|
3750
|
-
return !isChar(val);
|
|
3751
|
-
}
|
|
3752
|
-
char.isntChar = isntChar;
|
|
3753
|
-
|
|
3754
|
-
var date = {};
|
|
3755
|
-
|
|
3756
|
-
date.isntDate = date.isDate = void 0;
|
|
3757
|
-
function isDate(val) {
|
|
3758
|
-
return val instanceof Date;
|
|
3759
|
-
}
|
|
3760
|
-
date.isDate = isDate;
|
|
3761
|
-
function isntDate(val) {
|
|
3762
|
-
return !isDate(val);
|
|
3763
|
-
}
|
|
3764
|
-
date.isntDate = isntDate;
|
|
3765
|
-
|
|
3766
|
-
var _enum = {};
|
|
3767
|
-
|
|
3768
|
-
_enum.inEnum = void 0;
|
|
3769
|
-
function inEnum(val, _enum) {
|
|
3770
|
-
return Object.values(_enum).includes(val);
|
|
3771
|
-
}
|
|
3772
|
-
_enum.inEnum = inEnum;
|
|
3773
|
-
|
|
3774
|
-
var error = {};
|
|
3775
|
-
|
|
3776
|
-
error.isntError = error.isError = void 0;
|
|
3777
|
-
function isError(val) {
|
|
3778
|
-
return val instanceof Error;
|
|
3779
|
-
}
|
|
3780
|
-
error.isError = isError;
|
|
3781
|
-
function isntError(val) {
|
|
3782
|
-
return !isError(val);
|
|
3783
|
-
}
|
|
3784
|
-
error.isntError = isntError;
|
|
3785
|
-
|
|
3786
|
-
var falsy = {};
|
|
3787
|
-
|
|
3788
|
-
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
3789
|
-
function isFalsy(val) {
|
|
3790
|
-
return !val;
|
|
3791
|
-
}
|
|
3792
|
-
falsy.isFalsy = isFalsy;
|
|
3793
|
-
function isntFalsy(val) {
|
|
3794
|
-
return !isFalsy(val);
|
|
3795
|
-
}
|
|
3796
|
-
falsy.isntFalsy = isntFalsy;
|
|
3797
|
-
|
|
3798
|
-
var _function = {};
|
|
3799
|
-
|
|
3800
|
-
_function.isntFunction = _function.isFunction = void 0;
|
|
3801
|
-
function isFunction(val) {
|
|
3802
|
-
return typeof val === 'function';
|
|
3803
|
-
}
|
|
3804
|
-
_function.isFunction = isFunction;
|
|
3805
|
-
function isntFunction(val) {
|
|
3806
|
-
return !isFunction(val);
|
|
3807
|
-
}
|
|
3808
|
-
_function.isntFunction = isntFunction;
|
|
3809
|
-
|
|
3810
|
-
var iterable = {};
|
|
3811
|
-
|
|
3812
|
-
iterable.isntIterable = iterable.isIterable = void 0;
|
|
3813
|
-
const null_1 = _null;
|
|
3814
|
-
const undefined_1$1 = _undefined;
|
|
3815
|
-
function isIterable(val) {
|
|
3816
|
-
return (0, null_1.isntNull)(val)
|
|
3817
|
-
&& (0, undefined_1$1.isntUndefined)(val)
|
|
3818
|
-
&& typeof val[Symbol.iterator] === 'function';
|
|
3819
|
-
}
|
|
3820
|
-
iterable.isIterable = isIterable;
|
|
3821
|
-
function isntIterable(val) {
|
|
3822
|
-
return !isIterable(val);
|
|
3823
|
-
}
|
|
3824
|
-
iterable.isntIterable = isntIterable;
|
|
3825
|
-
|
|
3826
|
-
var jsonRpc = {};
|
|
3827
|
-
|
|
3828
|
-
var object = {};
|
|
3829
|
-
|
|
3830
|
-
/**
|
|
3831
|
-
* lodash (Custom Build) <https://lodash.com/>
|
|
3832
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
3833
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
3834
|
-
* Released under MIT license <https://lodash.com/license>
|
|
3835
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
3836
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
3837
|
-
*/
|
|
3838
|
-
|
|
3839
|
-
/** `Object#toString` result references. */
|
|
3840
|
-
var objectTag = '[object Object]';
|
|
3841
|
-
|
|
3842
|
-
/**
|
|
3843
|
-
* Checks if `value` is a host object in IE < 9.
|
|
3844
|
-
*
|
|
3845
|
-
* @private
|
|
3846
|
-
* @param {*} value The value to check.
|
|
3847
|
-
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
3848
|
-
*/
|
|
3849
|
-
function isHostObject(value) {
|
|
3850
|
-
// Many host objects are `Object` objects that can coerce to strings
|
|
3851
|
-
// despite having improperly defined `toString` methods.
|
|
3852
|
-
var result = false;
|
|
3853
|
-
if (value != null && typeof value.toString != 'function') {
|
|
3854
|
-
try {
|
|
3855
|
-
result = !!(value + '');
|
|
3856
|
-
} catch (e) {}
|
|
3857
|
-
}
|
|
3858
|
-
return result;
|
|
3859
|
-
}
|
|
3860
|
-
|
|
3861
|
-
/**
|
|
3862
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
3863
|
-
*
|
|
3864
|
-
* @private
|
|
3865
|
-
* @param {Function} func The function to wrap.
|
|
3866
|
-
* @param {Function} transform The argument transform.
|
|
3867
|
-
* @returns {Function} Returns the new function.
|
|
3868
|
-
*/
|
|
3869
|
-
function overArg(func, transform) {
|
|
3870
|
-
return function(arg) {
|
|
3871
|
-
return func(transform(arg));
|
|
3872
|
-
};
|
|
3873
|
-
}
|
|
3874
|
-
|
|
3875
|
-
/** Used for built-in method references. */
|
|
3876
|
-
var funcProto = Function.prototype,
|
|
3877
|
-
objectProto = Object.prototype;
|
|
3878
|
-
|
|
3879
|
-
/** Used to resolve the decompiled source of functions. */
|
|
3880
|
-
var funcToString = funcProto.toString;
|
|
3881
|
-
|
|
3882
|
-
/** Used to check objects for own properties. */
|
|
3883
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
3884
|
-
|
|
3885
|
-
/** Used to infer the `Object` constructor. */
|
|
3886
|
-
var objectCtorString = funcToString.call(Object);
|
|
3887
|
-
|
|
3888
|
-
/**
|
|
3889
|
-
* Used to resolve the
|
|
3890
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
3891
|
-
* of values.
|
|
3892
|
-
*/
|
|
3893
|
-
var objectToString = objectProto.toString;
|
|
3894
|
-
|
|
3895
|
-
/** Built-in value references. */
|
|
3896
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
3897
|
-
|
|
3898
|
-
/**
|
|
3899
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
3900
|
-
* and has a `typeof` result of "object".
|
|
3901
|
-
*
|
|
3902
|
-
* @static
|
|
3903
|
-
* @memberOf _
|
|
3904
|
-
* @since 4.0.0
|
|
3905
|
-
* @category Lang
|
|
3906
|
-
* @param {*} value The value to check.
|
|
3907
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
3908
|
-
* @example
|
|
3909
|
-
*
|
|
3910
|
-
* _.isObjectLike({});
|
|
3911
|
-
* // => true
|
|
3912
|
-
*
|
|
3913
|
-
* _.isObjectLike([1, 2, 3]);
|
|
3914
|
-
* // => true
|
|
3915
|
-
*
|
|
3916
|
-
* _.isObjectLike(_.noop);
|
|
3917
|
-
* // => false
|
|
3918
|
-
*
|
|
3919
|
-
* _.isObjectLike(null);
|
|
3920
|
-
* // => false
|
|
3921
|
-
*/
|
|
3922
|
-
function isObjectLike(value) {
|
|
3923
|
-
return !!value && typeof value == 'object';
|
|
3924
|
-
}
|
|
3925
|
-
|
|
3926
|
-
/**
|
|
3927
|
-
* Checks if `value` is a plain object, that is, an object created by the
|
|
3928
|
-
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
3929
|
-
*
|
|
3930
|
-
* @static
|
|
3931
|
-
* @memberOf _
|
|
3932
|
-
* @since 0.8.0
|
|
3933
|
-
* @category Lang
|
|
3934
|
-
* @param {*} value The value to check.
|
|
3935
|
-
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
3936
|
-
* @example
|
|
3937
|
-
*
|
|
3938
|
-
* function Foo() {
|
|
3939
|
-
* this.a = 1;
|
|
3940
|
-
* }
|
|
3941
|
-
*
|
|
3942
|
-
* _.isPlainObject(new Foo);
|
|
3943
|
-
* // => false
|
|
3944
|
-
*
|
|
3945
|
-
* _.isPlainObject([1, 2, 3]);
|
|
3946
|
-
* // => false
|
|
3947
|
-
*
|
|
3948
|
-
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
3949
|
-
* // => true
|
|
3950
|
-
*
|
|
3951
|
-
* _.isPlainObject(Object.create(null));
|
|
3952
|
-
* // => true
|
|
3953
|
-
*/
|
|
3954
|
-
function isPlainObject$1(value) {
|
|
3955
|
-
if (!isObjectLike(value) ||
|
|
3956
|
-
objectToString.call(value) != objectTag || isHostObject(value)) {
|
|
3957
|
-
return false;
|
|
3958
|
-
}
|
|
3959
|
-
var proto = getPrototype(value);
|
|
3960
|
-
if (proto === null) {
|
|
3961
|
-
return true;
|
|
3962
|
-
}
|
|
3963
|
-
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
3964
|
-
return (typeof Ctor == 'function' &&
|
|
3965
|
-
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
|
|
3966
|
-
}
|
|
3967
|
-
|
|
3968
|
-
var lodash_isplainobject = isPlainObject$1;
|
|
3969
|
-
|
|
3970
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
3971
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3972
|
-
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
3973
|
-
const lodash_isplainobject_1 = __importDefault(lodash_isplainobject);
|
|
3974
|
-
function isObject(val) {
|
|
3975
|
-
return val !== null
|
|
3976
|
-
&& typeof val === 'object';
|
|
3977
|
-
}
|
|
3978
|
-
object.isObject = isObject;
|
|
3979
|
-
function isntObject(val) {
|
|
3980
|
-
return !isObject(val);
|
|
3981
|
-
}
|
|
3982
|
-
object.isntObject = isntObject;
|
|
3983
|
-
function isPlainObject(val) {
|
|
3984
|
-
return (0, lodash_isplainobject_1.default)(val);
|
|
3985
|
-
}
|
|
3986
|
-
object.isPlainObject = isPlainObject;
|
|
3987
|
-
function isntPlainObject(val) {
|
|
3988
|
-
return !isPlainObject(val);
|
|
3989
|
-
}
|
|
3990
|
-
object.isntPlainObject = isntPlainObject;
|
|
3991
|
-
function isEmptyObject(val) {
|
|
3992
|
-
return Object.keys(val).length === 0;
|
|
3993
|
-
}
|
|
3994
|
-
object.isEmptyObject = isEmptyObject;
|
|
3995
|
-
function isntEmptyObject(val) {
|
|
3996
|
-
return Object.keys(val).length !== 0;
|
|
3997
|
-
}
|
|
3998
|
-
object.isntEmptyObject = isntEmptyObject;
|
|
3999
|
-
|
|
4000
|
-
var number = {};
|
|
4001
|
-
|
|
4002
|
-
number.isntNumber = number.isNumber = void 0;
|
|
4003
|
-
function isNumber(val) {
|
|
4004
|
-
return typeof val === 'number';
|
|
4005
|
-
}
|
|
4006
|
-
number.isNumber = isNumber;
|
|
4007
|
-
function isntNumber(val) {
|
|
4008
|
-
return !isNumber(val);
|
|
4009
|
-
}
|
|
4010
|
-
number.isntNumber = isntNumber;
|
|
4011
|
-
|
|
4012
|
-
jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
|
|
4013
|
-
const array_1 = array;
|
|
4014
|
-
const object_1 = object;
|
|
4015
|
-
const string_1 = string;
|
|
4016
|
-
const number_1 = number;
|
|
4017
|
-
const undefined_1 = _undefined;
|
|
4018
|
-
function isJsonRpcId(val) {
|
|
4019
|
-
return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
|
|
4020
|
-
}
|
|
4021
|
-
function isJsonRpcParams(val) {
|
|
4022
|
-
return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
|
|
4023
|
-
}
|
|
4024
|
-
function isJsonRpcNotification(val) {
|
|
4025
|
-
return (0, object_1.isPlainObject)(val)
|
|
4026
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4027
|
-
&& (0, string_1.isString)(val.method)
|
|
4028
|
-
&& (0, undefined_1.isUndefined)(val.id)
|
|
4029
|
-
&& isJsonRpcParams(val.params);
|
|
4030
|
-
}
|
|
4031
|
-
jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
|
|
4032
|
-
function isntJsonRpcNotification(val) {
|
|
4033
|
-
return !isJsonRpcNotification(val);
|
|
4034
|
-
}
|
|
4035
|
-
jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
|
|
4036
|
-
function isJsonRpcRequest(val) {
|
|
4037
|
-
return (0, object_1.isPlainObject)(val)
|
|
4038
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4039
|
-
&& (0, string_1.isString)(val.method)
|
|
4040
|
-
&& isJsonRpcId(val.id)
|
|
4041
|
-
&& isJsonRpcParams(val.params);
|
|
4042
|
-
}
|
|
4043
|
-
jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
|
|
4044
|
-
function isntJsonRpcRequest(val) {
|
|
4045
|
-
return !isJsonRpcRequest(val);
|
|
4046
|
-
}
|
|
4047
|
-
jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
|
|
4048
|
-
function isJsonRpcSuccess(val) {
|
|
4049
|
-
return (0, object_1.isPlainObject)(val)
|
|
4050
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4051
|
-
&& (0, string_1.isString)(val.id)
|
|
4052
|
-
&& 'result' in val;
|
|
4053
|
-
}
|
|
4054
|
-
jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
|
|
4055
|
-
function isntJsonRpcSuccess(val) {
|
|
4056
|
-
return !isJsonRpcSuccess(val);
|
|
4057
|
-
}
|
|
4058
|
-
jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
|
|
4059
|
-
function isJsonRpcError(val) {
|
|
4060
|
-
return (0, object_1.isPlainObject)(val)
|
|
4061
|
-
&& (0, string_1.isString)(val.jsonrpc)
|
|
4062
|
-
&& isJsonRpcId(val.id)
|
|
4063
|
-
&& isJsonRpcErrorObject(val.error);
|
|
4064
|
-
}
|
|
4065
|
-
jsonRpc.isJsonRpcError = isJsonRpcError;
|
|
4066
|
-
function isntJsonRpcError(val) {
|
|
4067
|
-
return !isJsonRpcError(val);
|
|
4068
|
-
}
|
|
4069
|
-
jsonRpc.isntJsonRpcError = isntJsonRpcError;
|
|
4070
|
-
function isJsonRpcErrorObject(val) {
|
|
4071
|
-
return (0, object_1.isPlainObject)(val)
|
|
4072
|
-
&& (0, number_1.isNumber)(val.code)
|
|
4073
|
-
&& (0, string_1.isString)(val.message)
|
|
4074
|
-
&& ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
|
|
4075
|
-
}
|
|
4076
|
-
|
|
4077
|
-
var json = {};
|
|
4078
|
-
|
|
4079
|
-
json.isntJson = json.isJson = void 0;
|
|
4080
|
-
function isJson(val) {
|
|
4081
|
-
try {
|
|
4082
|
-
JSON.stringify(val);
|
|
4083
|
-
return true;
|
|
4084
|
-
}
|
|
4085
|
-
catch (_a) {
|
|
4086
|
-
return false;
|
|
4087
|
-
}
|
|
4088
|
-
}
|
|
4089
|
-
json.isJson = isJson;
|
|
4090
|
-
function isntJson(val) {
|
|
4091
|
-
return !isntJson();
|
|
4092
|
-
}
|
|
4093
|
-
json.isntJson = isntJson;
|
|
4094
|
-
|
|
4095
|
-
var url = {};
|
|
4096
|
-
|
|
4097
|
-
url.isAbsoluteURL = void 0;
|
|
4098
|
-
function isAbsoluteURL(str) {
|
|
4099
|
-
try {
|
|
4100
|
-
new URL(str);
|
|
4101
|
-
return true;
|
|
4102
|
-
}
|
|
4103
|
-
catch (_a) {
|
|
4104
|
-
return false;
|
|
4105
|
-
}
|
|
4106
|
-
}
|
|
4107
|
-
url.isAbsoluteURL = isAbsoluteURL;
|
|
4108
|
-
|
|
4109
|
-
(function (exports) {
|
|
4110
|
-
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4111
|
-
if (k2 === undefined) k2 = k;
|
|
4112
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
4113
|
-
}) : (function(o, m, k, k2) {
|
|
4114
|
-
if (k2 === undefined) k2 = k;
|
|
4115
|
-
o[k2] = m[k];
|
|
4116
|
-
}));
|
|
4117
|
-
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
4118
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4119
|
-
};__exportStar(array, exports);
|
|
4120
|
-
__exportStar(asyncIterable, exports);
|
|
4121
|
-
__exportStar(bigint, exports);
|
|
4122
|
-
__exportStar(boolean, exports);
|
|
4123
|
-
__exportStar(char, exports);
|
|
4124
|
-
__exportStar(date, exports);
|
|
4125
|
-
__exportStar(_enum, exports);
|
|
4126
|
-
__exportStar(error, exports);
|
|
4127
|
-
__exportStar(falsy, exports);
|
|
4128
|
-
__exportStar(_function, exports);
|
|
4129
|
-
__exportStar(iterable, exports);
|
|
4130
|
-
__exportStar(jsonRpc, exports);
|
|
4131
|
-
__exportStar(json, exports);
|
|
4132
|
-
__exportStar(_null, exports);
|
|
4133
|
-
__exportStar(number, exports);
|
|
4134
|
-
__exportStar(object, exports);
|
|
4135
|
-
__exportStar(string, exports);
|
|
4136
|
-
__exportStar(_undefined, exports);
|
|
4137
|
-
__exportStar(url, exports);
|
|
4138
|
-
|
|
4139
|
-
}(es2018));
|
|
4140
|
-
|
|
4141
3923
|
class ObservableFiniteStateMachine extends FiniteStateMachine {
|
|
4142
3924
|
constructor() {
|
|
4143
3925
|
super(...arguments);
|
|
@@ -4154,7 +3936,7 @@ class ObservableFiniteStateMachine extends FiniteStateMachine {
|
|
|
4154
3936
|
super.send(event);
|
|
4155
3937
|
const newState = this.state;
|
|
4156
3938
|
this.stateChanges.next({ event, oldState, newState });
|
|
4157
|
-
if (es2018.isEmptyObject(this.schema[newState])) {
|
|
3939
|
+
if (es2018$2.isEmptyObject(this.schema[newState])) {
|
|
4158
3940
|
this.stateChanges.complete();
|
|
4159
3941
|
}
|
|
4160
3942
|
}
|