@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.
@@ -241,36 +241,70 @@
241
241
 
242
242
  var es2018$6 = {};
243
243
 
244
+ var customError$1 = {};
245
+
246
+ var es2018$5 = {};
247
+
248
+ var middleware = {};
249
+
250
+ var chunkAsync$1 = {};
251
+
252
+ var es2018$4 = {};
253
+
254
+ var go$1 = {};
255
+
256
+ go$1.go = void 0;
257
+ function go(fn) {
258
+ return fn();
259
+ }
260
+ go$1.go = go;
261
+
262
+ (function (exports) {
263
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
264
+ if (k2 === undefined) k2 = k;
265
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
266
+ }) : (function(o, m, k, k2) {
267
+ if (k2 === undefined) k2 = k;
268
+ o[k2] = m[k];
269
+ }));
270
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
271
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
272
+ };__exportStar(go$1, exports);
273
+
274
+ }(es2018$4));
275
+
276
+ var es2018$3 = {};
277
+
244
278
  var customError = {};
245
279
 
246
280
  customError.CustomError = void 0;
247
- class CustomError extends Error {
281
+ class CustomError$1 extends Error {
248
282
  get name() {
249
283
  return this.constructor.name;
250
284
  }
251
285
  }
252
- customError.CustomError = CustomError;
286
+ customError.CustomError = CustomError$1;
253
287
 
254
288
  var expectedError = {};
255
289
 
256
290
  expectedError.ExpectedError = void 0;
257
- const custom_error_1$1 = customError;
258
- class ExpectedError extends custom_error_1$1.CustomError {
291
+ const custom_error_1$2 = customError;
292
+ class ExpectedError extends custom_error_1$2.CustomError {
259
293
  }
260
294
  expectedError.ExpectedError = ExpectedError;
261
295
 
262
- var assertionError = {};
296
+ var assertionError$1 = {};
263
297
 
264
- assertionError.AssertionError = void 0;
265
- const custom_error_1 = customError;
266
- class AssertionError extends custom_error_1.CustomError {
298
+ assertionError$1.AssertionError = void 0;
299
+ const custom_error_1$1 = customError;
300
+ class AssertionError$1 extends custom_error_1$1.CustomError {
267
301
  }
268
- assertionError.AssertionError = AssertionError;
302
+ assertionError$1.AssertionError = AssertionError$1;
269
303
 
270
- var normalize$1 = {};
304
+ var normalize$3 = {};
271
305
 
272
- normalize$1.normalize = void 0;
273
- function normalize(err) {
306
+ normalize$3.normalize = void 0;
307
+ function normalize$2(err) {
274
308
  var _a;
275
309
  return {
276
310
  name: err.name,
@@ -278,7 +312,7 @@
278
312
  stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
279
313
  };
280
314
  }
281
- normalize$1.normalize = normalize;
315
+ normalize$3.normalize = normalize$2;
282
316
 
283
317
  var refute$1 = {};
284
318
 
@@ -290,15 +324,15 @@
290
324
  }
291
325
  refute$1.refute = refute;
292
326
 
293
- var assert$1 = {};
327
+ var assert$3 = {};
294
328
 
295
- assert$1.assert = void 0;
296
- const assertion_error_1 = assertionError;
297
- function assert(condition, message) {
329
+ assert$3.assert = void 0;
330
+ const assertion_error_1$1 = assertionError$1;
331
+ function assert$2(condition, message) {
298
332
  if (!condition)
299
- throw new assertion_error_1.AssertionError(message);
333
+ throw new assertion_error_1$1.AssertionError(message);
300
334
  }
301
- assert$1.assert = assert;
335
+ assert$3.assert = assert$2;
302
336
 
303
337
  (function (exports) {
304
338
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -312,46 +346,16 @@
312
346
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
313
347
  };__exportStar(customError, exports);
314
348
  __exportStar(expectedError, exports);
315
- __exportStar(assertionError, exports);
316
- __exportStar(normalize$1, exports);
349
+ __exportStar(assertionError$1, exports);
350
+ __exportStar(normalize$3, exports);
317
351
  __exportStar(refute$1, exports);
318
- __exportStar(assert$1, exports);
319
-
320
- }(es2018$6));
321
-
322
- var es2018$5 = {};
323
-
324
- var middleware = {};
325
-
326
- var chunkAsync$1 = {};
327
-
328
- var es2018$4 = {};
329
-
330
- var go$1 = {};
331
-
332
- go$1.go = void 0;
333
- function go(fn) {
334
- return fn();
335
- }
336
- go$1.go = go;
337
-
338
- (function (exports) {
339
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
340
- if (k2 === undefined) k2 = k;
341
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
342
- }) : (function(o, m, k, k2) {
343
- if (k2 === undefined) k2 = k;
344
- o[k2] = m[k];
345
- }));
346
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
347
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
348
- };__exportStar(go$1, exports);
352
+ __exportStar(assert$3, exports);
349
353
 
350
- }(es2018$4));
354
+ }(es2018$3));
351
355
 
352
356
  chunkAsync$1.chunkAsync = void 0;
353
357
  const go_1$f = es2018$4;
354
- const errors_1$f = es2018$6;
358
+ const errors_1$f = es2018$3;
355
359
  function chunkAsync(iterable, size) {
356
360
  (0, errors_1$f.assert)(Number.isInteger(size), 'The parameter size must be an integer');
357
361
  (0, errors_1$f.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -372,324 +376,472 @@
372
376
 
373
377
  var chunkByAsync$1 = {};
374
378
 
375
- var es2018$3 = {};
379
+ var es2018$2 = {};
376
380
 
377
- var array$1 = {};
381
+ var array = {};
378
382
 
379
- array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
380
- function isArray$1(val) {
383
+ array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
384
+ function isArray(val) {
381
385
  return Array.isArray(val);
382
386
  }
383
- array$1.isArray = isArray$1;
384
- function isntArray$1(val) {
385
- return !isArray$1(val);
387
+ array.isArray = isArray;
388
+ function isntArray(val) {
389
+ return !isArray(val);
386
390
  }
387
- array$1.isntArray = isntArray$1;
388
- function isEmptyArray$1(val) {
391
+ array.isntArray = isntArray;
392
+ function isEmptyArray(val) {
389
393
  return val.length === 0;
390
394
  }
391
- array$1.isEmptyArray = isEmptyArray$1;
392
- function isntEmptyArray$1(val) {
395
+ array.isEmptyArray = isEmptyArray;
396
+ function isntEmptyArray(val) {
393
397
  return val.length !== 0;
394
398
  }
395
- array$1.isntEmptyArray = isntEmptyArray$1;
399
+ array.isntEmptyArray = isntEmptyArray;
396
400
 
397
- var asyncIterable$1 = {};
401
+ var asyncIterable = {};
398
402
 
399
- var _null$1 = {};
403
+ var _null = {};
400
404
 
401
- _null$1.isntNull = _null$1.isNull = void 0;
402
- function isNull$1(val) {
405
+ _null.isntNull = _null.isNull = void 0;
406
+ function isNull(val) {
403
407
  return val === null;
404
408
  }
405
- _null$1.isNull = isNull$1;
406
- function isntNull$1(val) {
407
- return !isNull$1(val);
409
+ _null.isNull = isNull;
410
+ function isntNull(val) {
411
+ return !isNull(val);
408
412
  }
409
- _null$1.isntNull = isntNull$1;
413
+ _null.isntNull = isntNull;
410
414
 
411
- var _undefined$1 = {};
415
+ var _undefined = {};
412
416
 
413
- _undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
414
- function isUndefined$1(val) {
417
+ _undefined.isntUndefined = _undefined.isUndefined = void 0;
418
+ function isUndefined(val) {
415
419
  return val === undefined;
416
420
  }
417
- _undefined$1.isUndefined = isUndefined$1;
418
- function isntUndefined$1(val) {
419
- return !isUndefined$1(val);
421
+ _undefined.isUndefined = isUndefined;
422
+ function isntUndefined(val) {
423
+ return !isUndefined(val);
420
424
  }
421
- _undefined$1.isntUndefined = isntUndefined$1;
425
+ _undefined.isntUndefined = isntUndefined;
422
426
 
423
- asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
424
- const null_1$3 = _null$1;
425
- const undefined_1$5 = _undefined$1;
426
- function isAsyncIterable$1(val) {
427
- return (0, null_1$3.isntNull)(val)
428
- && (0, undefined_1$5.isntUndefined)(val)
427
+ asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
428
+ const null_1$1 = _null;
429
+ const undefined_1$2 = _undefined;
430
+ function isAsyncIterable(val) {
431
+ return (0, null_1$1.isntNull)(val)
432
+ && (0, undefined_1$2.isntUndefined)(val)
429
433
  && typeof val[Symbol.asyncIterator] === 'function';
430
434
  }
431
- asyncIterable$1.isAsyncIterable = isAsyncIterable$1;
432
- function isntAsyncIterable$1(val) {
433
- return !isAsyncIterable$1(val);
435
+ asyncIterable.isAsyncIterable = isAsyncIterable;
436
+ function isntAsyncIterable(val) {
437
+ return !isAsyncIterable(val);
434
438
  }
435
- asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
439
+ asyncIterable.isntAsyncIterable = isntAsyncIterable;
436
440
 
437
- var bigint$1 = {};
441
+ var bigint = {};
438
442
 
439
- bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
440
- function isBigInt$1(val) {
443
+ bigint.isntBigInt = bigint.isBigInt = void 0;
444
+ function isBigInt(val) {
441
445
  return typeof val === 'bigint';
442
446
  }
443
- bigint$1.isBigInt = isBigInt$1;
444
- function isntBigInt$1(val) {
445
- return !isBigInt$1(val);
447
+ bigint.isBigInt = isBigInt;
448
+ function isntBigInt(val) {
449
+ return !isBigInt(val);
446
450
  }
447
- bigint$1.isntBigInt = isntBigInt$1;
451
+ bigint.isntBigInt = isntBigInt;
448
452
 
449
- var boolean$1 = {};
453
+ var boolean = {};
450
454
 
451
- boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
452
- function isBoolean$1(val) {
455
+ boolean.isntBoolean = boolean.isBoolean = void 0;
456
+ function isBoolean(val) {
453
457
  return typeof val === 'boolean';
454
458
  }
455
- boolean$1.isBoolean = isBoolean$1;
456
- function isntBoolean$1(val) {
457
- return !isBoolean$1(val);
459
+ boolean.isBoolean = isBoolean;
460
+ function isntBoolean(val) {
461
+ return !isBoolean(val);
458
462
  }
459
- boolean$1.isntBoolean = isntBoolean$1;
463
+ boolean.isntBoolean = isntBoolean;
460
464
 
461
- var char$1 = {};
465
+ var char = {};
462
466
 
463
- var string$1 = {};
467
+ var string = {};
464
468
 
465
- string$1.isntString = string$1.isString = void 0;
466
- function isString$1(val) {
469
+ string.isntString = string.isString = void 0;
470
+ function isString(val) {
467
471
  return typeof val === 'string';
468
472
  }
469
- string$1.isString = isString$1;
470
- function isntString$1(val) {
471
- return !isString$1(val);
473
+ string.isString = isString;
474
+ function isntString(val) {
475
+ return !isString(val);
472
476
  }
473
- string$1.isntString = isntString$1;
477
+ string.isntString = isntString;
474
478
 
475
- char$1.isntChar = char$1.isChar = void 0;
476
- const string_1$3 = string$1;
477
- function isChar$1(val) {
478
- return (0, string_1$3.isString)(val)
479
+ char.isntChar = char.isChar = void 0;
480
+ const string_1$1 = string;
481
+ function isChar(val) {
482
+ return (0, string_1$1.isString)(val)
479
483
  && val.length === 1;
480
484
  }
481
- char$1.isChar = isChar$1;
482
- function isntChar$1(val) {
483
- return !isChar$1(val);
485
+ char.isChar = isChar;
486
+ function isntChar(val) {
487
+ return !isChar(val);
484
488
  }
485
- char$1.isntChar = isntChar$1;
489
+ char.isntChar = isntChar;
486
490
 
487
- var date$1 = {};
491
+ var date = {};
488
492
 
489
- date$1.isntDate = date$1.isDate = void 0;
490
- function isDate$1(val) {
493
+ date.isntDate = date.isDate = void 0;
494
+ function isDate(val) {
491
495
  return val instanceof Date;
492
496
  }
493
- date$1.isDate = isDate$1;
494
- function isntDate$1(val) {
495
- return !isDate$1(val);
497
+ date.isDate = isDate;
498
+ function isntDate(val) {
499
+ return !isDate(val);
496
500
  }
497
- date$1.isntDate = isntDate$1;
501
+ date.isntDate = isntDate;
498
502
 
499
- var _enum$1 = {};
503
+ var _enum = {};
500
504
 
501
- _enum$1.inEnum = void 0;
502
- function inEnum$1(val, _enum) {
505
+ _enum.inEnum = void 0;
506
+ function inEnum(val, _enum) {
503
507
  return Object.values(_enum).includes(val);
504
508
  }
505
- _enum$1.inEnum = inEnum$1;
509
+ _enum.inEnum = inEnum;
506
510
 
507
- var error$1 = {};
511
+ var error = {};
508
512
 
509
- error$1.isntError = error$1.isError = void 0;
510
- function isError$1(val) {
513
+ error.isntError = error.isError = void 0;
514
+ function isError(val) {
511
515
  return val instanceof Error;
512
516
  }
513
- error$1.isError = isError$1;
514
- function isntError$1(val) {
515
- return !isError$1(val);
517
+ error.isError = isError;
518
+ function isntError(val) {
519
+ return !isError(val);
516
520
  }
517
- error$1.isntError = isntError$1;
521
+ error.isntError = isntError;
518
522
 
519
- var falsy$1 = {};
523
+ var falsy = {};
520
524
 
521
- falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
522
- function isFalsy$1(val) {
525
+ falsy.isntFalsy = falsy.isFalsy = void 0;
526
+ function isFalsy(val) {
523
527
  return !val;
524
528
  }
525
- falsy$1.isFalsy = isFalsy$1;
526
- function isntFalsy$1(val) {
527
- return !isFalsy$1(val);
529
+ falsy.isFalsy = isFalsy;
530
+ function isntFalsy(val) {
531
+ return !isFalsy(val);
528
532
  }
529
- falsy$1.isntFalsy = isntFalsy$1;
533
+ falsy.isntFalsy = isntFalsy;
530
534
 
531
- var _function$1 = {};
535
+ var _function = {};
532
536
 
533
- _function$1.isntFunction = _function$1.isFunction = void 0;
534
- function isFunction$2(val) {
537
+ _function.isntFunction = _function.isFunction = void 0;
538
+ function isFunction$1(val) {
535
539
  return typeof val === 'function';
536
540
  }
537
- _function$1.isFunction = isFunction$2;
538
- function isntFunction$1(val) {
539
- return !isFunction$2(val);
541
+ _function.isFunction = isFunction$1;
542
+ function isntFunction(val) {
543
+ return !isFunction$1(val);
540
544
  }
541
- _function$1.isntFunction = isntFunction$1;
545
+ _function.isntFunction = isntFunction;
542
546
 
543
- var iterable$1 = {};
547
+ var iterable = {};
544
548
 
545
- iterable$1.isntIterable = iterable$1.isIterable = void 0;
546
- const null_1$2 = _null$1;
547
- const undefined_1$4 = _undefined$1;
548
- function isIterable$1(val) {
549
- return (0, null_1$2.isntNull)(val)
550
- && (0, undefined_1$4.isntUndefined)(val)
549
+ iterable.isntIterable = iterable.isIterable = void 0;
550
+ const null_1 = _null;
551
+ const undefined_1$1 = _undefined;
552
+ function isIterable(val) {
553
+ return (0, null_1.isntNull)(val)
554
+ && (0, undefined_1$1.isntUndefined)(val)
551
555
  && typeof val[Symbol.iterator] === 'function';
552
556
  }
553
- iterable$1.isIterable = isIterable$1;
554
- function isntIterable$1(val) {
555
- return !isIterable$1(val);
557
+ iterable.isIterable = isIterable;
558
+ function isntIterable(val) {
559
+ return !isIterable(val);
556
560
  }
557
- iterable$1.isntIterable = isntIterable$1;
561
+ iterable.isntIterable = isntIterable;
558
562
 
559
- var jsonRpc$1 = {};
563
+ var jsonRpc = {};
560
564
 
561
- var object$1 = {};
565
+ var object = {};
562
566
 
563
- object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isRecord = object$1.isntObject = object$1.isObject = void 0;
564
- function isObject$1(val) {
565
- return val !== null && typeof val === 'object';
566
- }
567
- object$1.isObject = isObject$1;
568
- function isntObject$1(val) {
569
- return !isObject$1(val);
570
- }
571
- object$1.isntObject = isntObject$1;
572
- function isRecord(val) {
573
- return isObject$1(val);
574
- }
575
- object$1.isRecord = isRecord;
576
- function isEmptyObject$1(val) {
577
- return Object.keys(val).length === 0;
578
- }
579
- object$1.isEmptyObject = isEmptyObject$1;
580
- function isntEmptyObject$1(val) {
581
- return Object.keys(val).length !== 0;
582
- }
583
- object$1.isntEmptyObject = isntEmptyObject$1;
567
+ /**
568
+ * lodash (Custom Build) <https://lodash.com/>
569
+ * Build: `lodash modularize exports="npm" -o ./`
570
+ * Copyright jQuery Foundation and other contributors <https://jquery.org/>
571
+ * Released under MIT license <https://lodash.com/license>
572
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
573
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
574
+ */
584
575
 
585
- var number$1 = {};
576
+ /** `Object#toString` result references. */
577
+ var objectTag = '[object Object]';
586
578
 
587
- number$1.isntNumber = number$1.isNumber = void 0;
588
- function isNumber$1(val) {
589
- return typeof val === 'number';
590
- }
591
- number$1.isNumber = isNumber$1;
592
- function isntNumber$1(val) {
593
- return !isNumber$1(val);
594
- }
595
- number$1.isntNumber = isntNumber$1;
596
-
597
- jsonRpc$1.isntJsonRpcError = jsonRpc$1.isJsonRpcError = jsonRpc$1.isntJsonRpcSuccess = jsonRpc$1.isJsonRpcSuccess = jsonRpc$1.isntJsonRpcRequest = jsonRpc$1.isJsonRpcRequest = jsonRpc$1.isntJsonRpcNotification = jsonRpc$1.isJsonRpcNotification = void 0;
598
- const array_1$1 = array$1;
599
- const object_1$1 = object$1;
600
- const string_1$2 = string$1;
601
- const number_1$1 = number$1;
602
- const undefined_1$3 = _undefined$1;
603
- function isJsonRpcId$1(val) {
604
- return (0, string_1$2.isString)(val) || (0, number_1$1.isNumber)(val);
605
- }
606
- function isJsonRpcParams$1(val) {
607
- return (0, array_1$1.isArray)(val) || (0, object_1$1.isObject)(val);
608
- }
609
- function isJsonRpcNotification$1(val) {
610
- return (0, object_1$1.isRecord)(val)
611
- && (0, string_1$2.isString)(val.jsonrpc)
612
- && (0, string_1$2.isString)(val.method)
613
- && (0, undefined_1$3.isUndefined)(val.id)
614
- && isJsonRpcParams$1(val.params);
615
- }
616
- jsonRpc$1.isJsonRpcNotification = isJsonRpcNotification$1;
617
- function isntJsonRpcNotification$1(val) {
618
- return !isJsonRpcNotification$1(val);
619
- }
620
- jsonRpc$1.isntJsonRpcNotification = isntJsonRpcNotification$1;
621
- function isJsonRpcRequest$1(val) {
622
- return (0, object_1$1.isRecord)(val)
623
- && (0, string_1$2.isString)(val.jsonrpc)
624
- && (0, string_1$2.isString)(val.method)
625
- && isJsonRpcId$1(val.id)
626
- && isJsonRpcParams$1(val.params);
627
- }
628
- jsonRpc$1.isJsonRpcRequest = isJsonRpcRequest$1;
629
- function isntJsonRpcRequest$1(val) {
630
- return !isJsonRpcRequest$1(val);
631
- }
632
- jsonRpc$1.isntJsonRpcRequest = isntJsonRpcRequest$1;
633
- function isJsonRpcSuccess$1(val) {
634
- return (0, object_1$1.isRecord)(val)
635
- && (0, string_1$2.isString)(val.jsonrpc)
636
- && (0, string_1$2.isString)(val.id)
637
- && (0, undefined_1$3.isntUndefined)(val.result);
638
- }
639
- jsonRpc$1.isJsonRpcSuccess = isJsonRpcSuccess$1;
640
- function isntJsonRpcSuccess$1(val) {
641
- return !isJsonRpcSuccess$1(val);
642
- }
643
- jsonRpc$1.isntJsonRpcSuccess = isntJsonRpcSuccess$1;
644
- function isJsonRpcError$1(val) {
645
- return (0, object_1$1.isRecord)(val)
646
- && (0, string_1$2.isString)(val.jsonrpc)
647
- && isJsonRpcId$1(val.id)
648
- && isJsonRpcErrorObject$1(val.error);
649
- }
650
- jsonRpc$1.isJsonRpcError = isJsonRpcError$1;
651
- function isntJsonRpcError$1(val) {
652
- return !isJsonRpcError$1(val);
653
- }
654
- jsonRpc$1.isntJsonRpcError = isntJsonRpcError$1;
655
- function isJsonRpcErrorObject$1(val) {
656
- return (0, object_1$1.isRecord)(val)
657
- && (0, number_1$1.isNumber)(val.code)
658
- && (0, string_1$2.isString)(val.message)
659
- && ((0, undefined_1$3.isUndefined)(val.data) || (0, object_1$1.isObject)(val.data));
660
- }
661
-
662
- var json$1 = {};
663
-
664
- json$1.isntJson = json$1.isJson = void 0;
665
- function isJson$1(val) {
579
+ /**
580
+ * Checks if `value` is a host object in IE < 9.
581
+ *
582
+ * @private
583
+ * @param {*} value The value to check.
584
+ * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
585
+ */
586
+ function isHostObject(value) {
587
+ // Many host objects are `Object` objects that can coerce to strings
588
+ // despite having improperly defined `toString` methods.
589
+ var result = false;
590
+ if (value != null && typeof value.toString != 'function') {
666
591
  try {
667
- JSON.stringify(val);
668
- return true;
669
- }
670
- catch (_a) {
671
- return false;
672
- }
592
+ result = !!(value + '');
593
+ } catch (e) {}
594
+ }
595
+ return result;
673
596
  }
674
- json$1.isJson = isJson$1;
675
- function isntJson$1(val) {
676
- return !isntJson$1();
597
+
598
+ /**
599
+ * Creates a unary function that invokes `func` with its argument transformed.
600
+ *
601
+ * @private
602
+ * @param {Function} func The function to wrap.
603
+ * @param {Function} transform The argument transform.
604
+ * @returns {Function} Returns the new function.
605
+ */
606
+ function overArg(func, transform) {
607
+ return function(arg) {
608
+ return func(transform(arg));
609
+ };
677
610
  }
678
- json$1.isntJson = isntJson$1;
679
611
 
680
- var url$1 = {};
612
+ /** Used for built-in method references. */
613
+ var funcProto = Function.prototype,
614
+ objectProto = Object.prototype;
681
615
 
682
- url$1.isAbsoluteURL = void 0;
683
- function isAbsoluteURL$1(str) {
684
- try {
685
- new URL(str);
686
- return true;
687
- }
616
+ /** Used to resolve the decompiled source of functions. */
617
+ var funcToString = funcProto.toString;
618
+
619
+ /** Used to check objects for own properties. */
620
+ var hasOwnProperty = objectProto.hasOwnProperty;
621
+
622
+ /** Used to infer the `Object` constructor. */
623
+ var objectCtorString = funcToString.call(Object);
624
+
625
+ /**
626
+ * Used to resolve the
627
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
628
+ * of values.
629
+ */
630
+ var objectToString = objectProto.toString;
631
+
632
+ /** Built-in value references. */
633
+ var getPrototype = overArg(Object.getPrototypeOf, Object);
634
+
635
+ /**
636
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
637
+ * and has a `typeof` result of "object".
638
+ *
639
+ * @static
640
+ * @memberOf _
641
+ * @since 4.0.0
642
+ * @category Lang
643
+ * @param {*} value The value to check.
644
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
645
+ * @example
646
+ *
647
+ * _.isObjectLike({});
648
+ * // => true
649
+ *
650
+ * _.isObjectLike([1, 2, 3]);
651
+ * // => true
652
+ *
653
+ * _.isObjectLike(_.noop);
654
+ * // => false
655
+ *
656
+ * _.isObjectLike(null);
657
+ * // => false
658
+ */
659
+ function isObjectLike(value) {
660
+ return !!value && typeof value == 'object';
661
+ }
662
+
663
+ /**
664
+ * Checks if `value` is a plain object, that is, an object created by the
665
+ * `Object` constructor or one with a `[[Prototype]]` of `null`.
666
+ *
667
+ * @static
668
+ * @memberOf _
669
+ * @since 0.8.0
670
+ * @category Lang
671
+ * @param {*} value The value to check.
672
+ * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
673
+ * @example
674
+ *
675
+ * function Foo() {
676
+ * this.a = 1;
677
+ * }
678
+ *
679
+ * _.isPlainObject(new Foo);
680
+ * // => false
681
+ *
682
+ * _.isPlainObject([1, 2, 3]);
683
+ * // => false
684
+ *
685
+ * _.isPlainObject({ 'x': 0, 'y': 0 });
686
+ * // => true
687
+ *
688
+ * _.isPlainObject(Object.create(null));
689
+ * // => true
690
+ */
691
+ function isPlainObject$1(value) {
692
+ if (!isObjectLike(value) ||
693
+ objectToString.call(value) != objectTag || isHostObject(value)) {
694
+ return false;
695
+ }
696
+ var proto = getPrototype(value);
697
+ if (proto === null) {
698
+ return true;
699
+ }
700
+ var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
701
+ return (typeof Ctor == 'function' &&
702
+ Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
703
+ }
704
+
705
+ var lodash_isplainobject = isPlainObject$1;
706
+
707
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
708
+ return (mod && mod.__esModule) ? mod : { "default": mod };
709
+ };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
710
+ const lodash_isplainobject_1 = __importDefault(lodash_isplainobject);
711
+ function isObject(val) {
712
+ return val !== null
713
+ && typeof val === 'object';
714
+ }
715
+ object.isObject = isObject;
716
+ function isntObject(val) {
717
+ return !isObject(val);
718
+ }
719
+ object.isntObject = isntObject;
720
+ function isPlainObject(val) {
721
+ return (0, lodash_isplainobject_1.default)(val);
722
+ }
723
+ object.isPlainObject = isPlainObject;
724
+ function isntPlainObject(val) {
725
+ return !isPlainObject(val);
726
+ }
727
+ object.isntPlainObject = isntPlainObject;
728
+ function isEmptyObject(val) {
729
+ return Object.keys(val).length === 0;
730
+ }
731
+ object.isEmptyObject = isEmptyObject;
732
+ function isntEmptyObject(val) {
733
+ return Object.keys(val).length !== 0;
734
+ }
735
+ object.isntEmptyObject = isntEmptyObject;
736
+
737
+ var number = {};
738
+
739
+ number.isntNumber = number.isNumber = void 0;
740
+ function isNumber(val) {
741
+ return typeof val === 'number';
742
+ }
743
+ number.isNumber = isNumber;
744
+ function isntNumber(val) {
745
+ return !isNumber(val);
746
+ }
747
+ number.isntNumber = isntNumber;
748
+
749
+ jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
750
+ const array_1 = array;
751
+ const object_1 = object;
752
+ const string_1 = string;
753
+ const number_1 = number;
754
+ const undefined_1 = _undefined;
755
+ function isJsonRpcId(val) {
756
+ return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
757
+ }
758
+ function isJsonRpcParams(val) {
759
+ return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
760
+ }
761
+ function isJsonRpcNotification(val) {
762
+ return (0, object_1.isPlainObject)(val)
763
+ && (0, string_1.isString)(val.jsonrpc)
764
+ && (0, string_1.isString)(val.method)
765
+ && (0, undefined_1.isUndefined)(val.id)
766
+ && isJsonRpcParams(val.params);
767
+ }
768
+ jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
769
+ function isntJsonRpcNotification(val) {
770
+ return !isJsonRpcNotification(val);
771
+ }
772
+ jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
773
+ function isJsonRpcRequest(val) {
774
+ return (0, object_1.isPlainObject)(val)
775
+ && (0, string_1.isString)(val.jsonrpc)
776
+ && (0, string_1.isString)(val.method)
777
+ && isJsonRpcId(val.id)
778
+ && isJsonRpcParams(val.params);
779
+ }
780
+ jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
781
+ function isntJsonRpcRequest(val) {
782
+ return !isJsonRpcRequest(val);
783
+ }
784
+ jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
785
+ function isJsonRpcSuccess(val) {
786
+ return (0, object_1.isPlainObject)(val)
787
+ && (0, string_1.isString)(val.jsonrpc)
788
+ && (0, string_1.isString)(val.id)
789
+ && 'result' in val;
790
+ }
791
+ jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
792
+ function isntJsonRpcSuccess(val) {
793
+ return !isJsonRpcSuccess(val);
794
+ }
795
+ jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
796
+ function isJsonRpcError(val) {
797
+ return (0, object_1.isPlainObject)(val)
798
+ && (0, string_1.isString)(val.jsonrpc)
799
+ && isJsonRpcId(val.id)
800
+ && isJsonRpcErrorObject(val.error);
801
+ }
802
+ jsonRpc.isJsonRpcError = isJsonRpcError;
803
+ function isntJsonRpcError(val) {
804
+ return !isJsonRpcError(val);
805
+ }
806
+ jsonRpc.isntJsonRpcError = isntJsonRpcError;
807
+ function isJsonRpcErrorObject(val) {
808
+ return (0, object_1.isPlainObject)(val)
809
+ && (0, number_1.isNumber)(val.code)
810
+ && (0, string_1.isString)(val.message)
811
+ && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
812
+ }
813
+
814
+ var json = {};
815
+
816
+ json.isntJson = json.isJson = void 0;
817
+ function isJson(val) {
818
+ try {
819
+ JSON.stringify(val);
820
+ return true;
821
+ }
822
+ catch (_a) {
823
+ return false;
824
+ }
825
+ }
826
+ json.isJson = isJson;
827
+ function isntJson(val) {
828
+ return !isntJson();
829
+ }
830
+ json.isntJson = isntJson;
831
+
832
+ var url = {};
833
+
834
+ url.isAbsoluteURL = void 0;
835
+ function isAbsoluteURL(str) {
836
+ try {
837
+ new URL(str);
838
+ return true;
839
+ }
688
840
  catch (_a) {
689
841
  return false;
690
842
  }
691
843
  }
692
- url$1.isAbsoluteURL = isAbsoluteURL$1;
844
+ url.isAbsoluteURL = isAbsoluteURL;
693
845
 
694
846
  (function (exports) {
695
847
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -701,32 +853,32 @@
701
853
  }));
702
854
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
703
855
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
704
- };__exportStar(array$1, exports);
705
- __exportStar(asyncIterable$1, exports);
706
- __exportStar(bigint$1, exports);
707
- __exportStar(boolean$1, exports);
708
- __exportStar(char$1, exports);
709
- __exportStar(date$1, exports);
710
- __exportStar(_enum$1, exports);
711
- __exportStar(error$1, exports);
712
- __exportStar(falsy$1, exports);
713
- __exportStar(_function$1, exports);
714
- __exportStar(iterable$1, exports);
715
- __exportStar(jsonRpc$1, exports);
716
- __exportStar(json$1, exports);
717
- __exportStar(_null$1, exports);
718
- __exportStar(number$1, exports);
719
- __exportStar(object$1, exports);
720
- __exportStar(string$1, exports);
721
- __exportStar(_undefined$1, exports);
722
- __exportStar(url$1, exports);
856
+ };__exportStar(array, exports);
857
+ __exportStar(asyncIterable, exports);
858
+ __exportStar(bigint, exports);
859
+ __exportStar(boolean, exports);
860
+ __exportStar(char, exports);
861
+ __exportStar(date, exports);
862
+ __exportStar(_enum, exports);
863
+ __exportStar(error, exports);
864
+ __exportStar(falsy, exports);
865
+ __exportStar(_function, exports);
866
+ __exportStar(iterable, exports);
867
+ __exportStar(jsonRpc, exports);
868
+ __exportStar(json, exports);
869
+ __exportStar(_null, exports);
870
+ __exportStar(number, exports);
871
+ __exportStar(object, exports);
872
+ __exportStar(string, exports);
873
+ __exportStar(_undefined, exports);
874
+ __exportStar(url, exports);
723
875
 
724
- }(es2018$3));
876
+ }(es2018$2));
725
877
 
726
878
  chunkByAsync$1.chunkByAsync = void 0;
727
- const types_1$h = es2018$3;
879
+ const types_1$k = es2018$2;
728
880
  function chunkByAsync(iterable, predicate) {
729
- if ((0, types_1$h.isAsyncIterable)(iterable)) {
881
+ if ((0, types_1$k.isAsyncIterable)(iterable)) {
730
882
  return chunkByAsyncIterable(iterable);
731
883
  }
732
884
  else {
@@ -786,7 +938,7 @@
786
938
 
787
939
  chunk$1.chunk = void 0;
788
940
  const go_1$e = es2018$4;
789
- const errors_1$e = es2018$6;
941
+ const errors_1$e = es2018$3;
790
942
  function chunk(iterable, size) {
791
943
  (0, errors_1$e.assert)(Number.isInteger(size), 'The parameter size must be an integer');
792
944
  (0, errors_1$e.assert)(size > 0, 'The parameter size must be greater than 0');
@@ -808,12 +960,12 @@
808
960
  var concatAsync$1 = {};
809
961
 
810
962
  concatAsync$1.concatAsync = void 0;
811
- const types_1$g = es2018$3;
963
+ const types_1$j = es2018$2;
812
964
  const go_1$d = es2018$4;
813
965
  function concatAsync(iterable, ...otherIterables) {
814
966
  return (0, go_1$d.go)(async function* () {
815
967
  for (const iter of [iterable, ...otherIterables]) {
816
- if ((0, types_1$g.isAsyncIterable)(iter)) {
968
+ if ((0, types_1$j.isAsyncIterable)(iter)) {
817
969
  for await (const element of iter) {
818
970
  yield element;
819
971
  }
@@ -862,7 +1014,7 @@
862
1014
  dropAsync$1.dropAsync = void 0;
863
1015
  const go_1$b = es2018$4;
864
1016
  const utils_1$3 = utils;
865
- const errors_1$d = es2018$6;
1017
+ const errors_1$d = es2018$3;
866
1018
  function dropAsync(iterable, count) {
867
1019
  (0, errors_1$d.assert)(Number.isInteger(count), 'The parameter count must be an integer');
868
1020
  (0, errors_1$d.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -897,7 +1049,7 @@
897
1049
  dropRightAsync$1.dropRightAsync = void 0;
898
1050
  const go_1$a = es2018$4;
899
1051
  const utils_1$2 = utils;
900
- const errors_1$c = es2018$6;
1052
+ const errors_1$c = es2018$3;
901
1053
  function dropRightAsync(iterable, count) {
902
1054
  (0, errors_1$c.assert)(Number.isInteger(count), 'The parameter count must be an integer');
903
1055
  (0, errors_1$c.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -925,7 +1077,7 @@
925
1077
  dropRight$1.dropRight = void 0;
926
1078
  const go_1$9 = es2018$4;
927
1079
  const utils_1$1 = utils;
928
- const errors_1$b = es2018$6;
1080
+ const errors_1$b = es2018$3;
929
1081
  function dropRight(iterable, count) {
930
1082
  (0, errors_1$b.assert)(Number.isInteger(count), 'The parameter count must be an integer');
931
1083
  (0, errors_1$b.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -941,9 +1093,9 @@
941
1093
  var dropUntilAsync$1 = {};
942
1094
 
943
1095
  dropUntilAsync$1.dropUntilAsync = void 0;
944
- const types_1$f = es2018$3;
1096
+ const types_1$i = es2018$2;
945
1097
  function dropUntilAsync(iterable, predicate) {
946
- if ((0, types_1$f.isAsyncIterable)(iterable)) {
1098
+ if ((0, types_1$i.isAsyncIterable)(iterable)) {
947
1099
  return dropUntilAsyncIterable(iterable);
948
1100
  }
949
1101
  else {
@@ -1025,7 +1177,7 @@
1025
1177
  drop$1.drop = void 0;
1026
1178
  const go_1$8 = es2018$4;
1027
1179
  const utils_1 = utils;
1028
- const errors_1$a = es2018$6;
1180
+ const errors_1$a = es2018$3;
1029
1181
  function drop(iterable, count) {
1030
1182
  (0, errors_1$a.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1031
1183
  (0, errors_1$a.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1058,9 +1210,9 @@
1058
1210
  var filterAsync$1 = {};
1059
1211
 
1060
1212
  filterAsync$1.filterAsync = void 0;
1061
- const types_1$e = es2018$3;
1213
+ const types_1$h = es2018$2;
1062
1214
  function filterAsync(iterable, predicate) {
1063
- if ((0, types_1$e.isAsyncIterable)(iterable)) {
1215
+ if ((0, types_1$h.isAsyncIterable)(iterable)) {
1064
1216
  return filterAsyncIterable(iterable);
1065
1217
  }
1066
1218
  else {
@@ -1105,9 +1257,9 @@
1105
1257
  var flattenByAsync$1 = {};
1106
1258
 
1107
1259
  flattenByAsync$1.flattenByAsync = void 0;
1108
- const types_1$d = es2018$3;
1260
+ const types_1$g = es2018$2;
1109
1261
  function flattenByAsync(iterable, predicate) {
1110
- if ((0, types_1$d.isAsyncIterable)(iterable)) {
1262
+ if ((0, types_1$g.isAsyncIterable)(iterable)) {
1111
1263
  return flattenByAsyncIterable(iterable);
1112
1264
  }
1113
1265
  else {
@@ -1140,12 +1292,12 @@
1140
1292
  }
1141
1293
  flattenByAsync$1.flattenByAsync = flattenByAsync;
1142
1294
  function isFiniteIterable$1(val) {
1143
- return (0, types_1$d.isIterable)(val) && (0, types_1$d.isntChar)(val);
1295
+ return (0, types_1$g.isIterable)(val) && (0, types_1$g.isntChar)(val);
1144
1296
  }
1145
1297
 
1146
1298
  flattenDeepAsync$1.flattenDeepAsync = void 0;
1147
1299
  const flatten_by_async_1 = flattenByAsync$1;
1148
- const errors_1$9 = es2018$6;
1300
+ const errors_1$9 = es2018$3;
1149
1301
  function flattenDeepAsync(iterable, depth = Infinity) {
1150
1302
  (0, errors_1$9.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1151
1303
  (0, errors_1$9.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1163,7 +1315,7 @@
1163
1315
  var flattenBy$1 = {};
1164
1316
 
1165
1317
  flattenBy$1.flattenBy = void 0;
1166
- const types_1$c = es2018$3;
1318
+ const types_1$f = es2018$2;
1167
1319
  function flattenBy(iterable, predicate) {
1168
1320
  return flatten(iterable, 1);
1169
1321
  function* flatten(iterable, level) {
@@ -1179,14 +1331,14 @@
1179
1331
  }
1180
1332
  flattenBy$1.flattenBy = flattenBy;
1181
1333
  function isFiniteIterable(val) {
1182
- return (0, types_1$c.isIterable)(val) && (0, types_1$c.isntChar)(val);
1334
+ return (0, types_1$f.isIterable)(val) && (0, types_1$f.isntChar)(val);
1183
1335
  }
1184
1336
 
1185
1337
  var flattenDeep$1 = {};
1186
1338
 
1187
1339
  flattenDeep$1.flattenDeep = void 0;
1188
1340
  const flatten_by_1 = flattenBy$1;
1189
- const errors_1$8 = es2018$6;
1341
+ const errors_1$8 = es2018$3;
1190
1342
  function flattenDeep(iterable, depth = Infinity) {
1191
1343
  (0, errors_1$8.assert)(depth === Infinity || Number.isInteger(depth), 'The parameter depth must be an integer');
1192
1344
  (0, errors_1$8.assert)(depth >= 0, 'The parameter depth must be greater than or equal to 0');
@@ -1206,9 +1358,9 @@
1206
1358
  var mapAsync$1 = {};
1207
1359
 
1208
1360
  mapAsync$1.mapAsync = void 0;
1209
- const types_1$b = es2018$3;
1361
+ const types_1$e = es2018$2;
1210
1362
  function mapAsync(iterable, fn) {
1211
- if ((0, types_1$b.isAsyncIterable)(iterable)) {
1363
+ if ((0, types_1$e.isAsyncIterable)(iterable)) {
1212
1364
  return mapAsyncIterable(iterable);
1213
1365
  }
1214
1366
  else {
@@ -1247,7 +1399,7 @@
1247
1399
 
1248
1400
  repeatAsync$1.repeatAsync = void 0;
1249
1401
  const go_1$7 = es2018$4;
1250
- const errors_1$7 = es2018$6;
1402
+ const errors_1$7 = es2018$3;
1251
1403
  function repeatAsync(iterable, times) {
1252
1404
  (0, errors_1$7.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1253
1405
  (0, errors_1$7.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -1282,7 +1434,7 @@
1282
1434
 
1283
1435
  repeat$1.repeat = void 0;
1284
1436
  const go_1$6 = es2018$4;
1285
- const errors_1$6 = es2018$6;
1437
+ const errors_1$6 = es2018$3;
1286
1438
  function repeat(iterable, times) {
1287
1439
  (0, errors_1$6.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
1288
1440
  (0, errors_1$6.assert)(times >= 0, 'The parameter times must be greater than or equal to 0');
@@ -1317,7 +1469,7 @@
1317
1469
 
1318
1470
  sliceAsync$1.sliceAsync = void 0;
1319
1471
  const go_1$5 = es2018$4;
1320
- const errors_1$5 = es2018$6;
1472
+ const errors_1$5 = es2018$3;
1321
1473
  function sliceAsync(iterable, start, end = Infinity) {
1322
1474
  (0, errors_1$5.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1323
1475
  (0, errors_1$5.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -1340,7 +1492,7 @@
1340
1492
 
1341
1493
  slice$1.slice = void 0;
1342
1494
  const go_1$4 = es2018$4;
1343
- const errors_1$4 = es2018$6;
1495
+ const errors_1$4 = es2018$3;
1344
1496
  function slice(iterable, start, end = Infinity) {
1345
1497
  (0, errors_1$4.assert)(Number.isInteger(start), 'The parameter start must be an integer');
1346
1498
  (0, errors_1$4.assert)(start >= 0, 'The parameter start must be greater than or equal to 0');
@@ -1380,9 +1532,9 @@
1380
1532
  var splitByAsync$1 = {};
1381
1533
 
1382
1534
  splitByAsync$1.splitByAsync = void 0;
1383
- const types_1$a = es2018$3;
1535
+ const types_1$d = es2018$2;
1384
1536
  function splitByAsync(iterable, predicate) {
1385
- if ((0, types_1$a.isAsyncIterable)(iterable)) {
1537
+ if ((0, types_1$d.isAsyncIterable)(iterable)) {
1386
1538
  return splitByAsyncIterable(iterable);
1387
1539
  }
1388
1540
  else {
@@ -1463,7 +1615,7 @@
1463
1615
 
1464
1616
  takeAsync$1.takeAsync = void 0;
1465
1617
  const go_1$3 = es2018$4;
1466
- const errors_1$3 = es2018$6;
1618
+ const errors_1$3 = es2018$3;
1467
1619
  function takeAsync(iterable, count) {
1468
1620
  (0, errors_1$3.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1469
1621
  (0, errors_1$3.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1484,7 +1636,7 @@
1484
1636
 
1485
1637
  takeRightAsync$1.takeRightAsync = void 0;
1486
1638
  const go_1$2 = es2018$4;
1487
- const errors_1$2 = es2018$6;
1639
+ const errors_1$2 = es2018$3;
1488
1640
  function takeRightAsync(iterable, count) {
1489
1641
  (0, errors_1$2.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1490
1642
  (0, errors_1$2.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1514,7 +1666,7 @@
1514
1666
 
1515
1667
  takeRight$1.takeRight = void 0;
1516
1668
  const go_1$1 = es2018$4;
1517
- const errors_1$1 = es2018$6;
1669
+ const errors_1$1 = es2018$3;
1518
1670
  function takeRight(iterable, count) {
1519
1671
  (0, errors_1$1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1520
1672
  (0, errors_1$1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1543,9 +1695,9 @@
1543
1695
  var takeUntilAsync$1 = {};
1544
1696
 
1545
1697
  takeUntilAsync$1.takeUntilAsync = void 0;
1546
- const types_1$9 = es2018$3;
1698
+ const types_1$c = es2018$2;
1547
1699
  function takeUntilAsync(iterable, predicate) {
1548
- if ((0, types_1$9.isAsyncIterable)(iterable)) {
1700
+ if ((0, types_1$c.isAsyncIterable)(iterable)) {
1549
1701
  return takeUntilAsyncIterable(iterable);
1550
1702
  }
1551
1703
  else {
@@ -1590,7 +1742,7 @@
1590
1742
 
1591
1743
  take$1.take = void 0;
1592
1744
  const go_1 = es2018$4;
1593
- const errors_1 = es2018$6;
1745
+ const errors_1 = es2018$3;
1594
1746
  function take(iterable, count) {
1595
1747
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
1596
1748
  (0, errors_1.assert)(count >= 0, 'The parameter count must be greater than or equal to 0');
@@ -1610,9 +1762,9 @@
1610
1762
  var tapAsync$1 = {};
1611
1763
 
1612
1764
  tapAsync$1.tapAsync = void 0;
1613
- const types_1$8 = es2018$3;
1765
+ const types_1$b = es2018$2;
1614
1766
  function tapAsync(iterable, fn) {
1615
- if ((0, types_1$8.isAsyncIterable)(iterable)) {
1767
+ if ((0, types_1$b.isAsyncIterable)(iterable)) {
1616
1768
  return tapAsyncIterable(iterable);
1617
1769
  }
1618
1770
  else {
@@ -1693,9 +1845,9 @@
1693
1845
  var uniqByAsync$1 = {};
1694
1846
 
1695
1847
  uniqByAsync$1.uniqByAsync = void 0;
1696
- const types_1$7 = es2018$3;
1848
+ const types_1$a = es2018$2;
1697
1849
  function uniqByAsync(iterable, fn) {
1698
- if ((0, types_1$7.isAsyncIterable)(iterable)) {
1850
+ if ((0, types_1$a.isAsyncIterable)(iterable)) {
1699
1851
  return uniqByAsyncIterable(iterable);
1700
1852
  }
1701
1853
  else {
@@ -1762,7 +1914,7 @@
1762
1914
  var zipAsync$1 = {};
1763
1915
 
1764
1916
  zipAsync$1.zipAsync = void 0;
1765
- const types_1$6 = es2018$3;
1917
+ const types_1$9 = es2018$2;
1766
1918
  var Kind;
1767
1919
  (function (Kind) {
1768
1920
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -1776,7 +1928,7 @@
1776
1928
  var _a, _b, _c, _d;
1777
1929
  const length = iterables.length;
1778
1930
  const iterators = iterables.map(iterable => {
1779
- if ((0, types_1$6.isAsyncIterable)(iterable)) {
1931
+ if ((0, types_1$9.isAsyncIterable)(iterable)) {
1780
1932
  return [Kind.Async, iterable[Symbol.asyncIterator]()];
1781
1933
  }
1782
1934
  else {
@@ -1922,9 +2074,9 @@
1922
2074
  var eachAsync$1 = {};
1923
2075
 
1924
2076
  eachAsync$1.eachAsync = void 0;
1925
- const types_1$5 = es2018$3;
2077
+ const types_1$8 = es2018$2;
1926
2078
  function eachAsync(iterable, fn) {
1927
- if ((0, types_1$5.isAsyncIterable)(iterable)) {
2079
+ if ((0, types_1$8.isAsyncIterable)(iterable)) {
1928
2080
  return eachAsyncIterable(iterable);
1929
2081
  }
1930
2082
  else {
@@ -1962,9 +2114,9 @@
1962
2114
  var everyAsync$1 = {};
1963
2115
 
1964
2116
  everyAsync$1.everyAsync = void 0;
1965
- const types_1$4 = es2018$3;
2117
+ const types_1$7 = es2018$2;
1966
2118
  function everyAsync(iterable, predicate) {
1967
- if ((0, types_1$4.isAsyncIterable)(iterable)) {
2119
+ if ((0, types_1$7.isAsyncIterable)(iterable)) {
1968
2120
  return everyAsyncIterable(iterable);
1969
2121
  }
1970
2122
  else {
@@ -2008,9 +2160,9 @@
2008
2160
  var findAsync$1 = {};
2009
2161
 
2010
2162
  findAsync$1.findAsync = void 0;
2011
- const types_1$3 = es2018$3;
2163
+ const types_1$6 = es2018$2;
2012
2164
  function findAsync(iterable, predicate) {
2013
- if ((0, types_1$3.isAsyncIterable)(iterable)) {
2165
+ if ((0, types_1$6.isAsyncIterable)(iterable)) {
2014
2166
  return findAsyncIterable(iterable);
2015
2167
  }
2016
2168
  else {
@@ -2132,9 +2284,9 @@
2132
2284
  var reduceAsync$1 = {};
2133
2285
 
2134
2286
  reduceAsync$1.reduceAsync = void 0;
2135
- const types_1$2 = es2018$3;
2287
+ const types_1$5 = es2018$2;
2136
2288
  function reduceAsync(iterable, fn, initialValue) {
2137
- if ((0, types_1$2.isUndefined)(initialValue)) {
2289
+ if ((0, types_1$5.isUndefined)(initialValue)) {
2138
2290
  return reduceAsyncWithoutInitialValue(iterable, fn);
2139
2291
  }
2140
2292
  else {
@@ -2143,7 +2295,7 @@
2143
2295
  }
2144
2296
  reduceAsync$1.reduceAsync = reduceAsync;
2145
2297
  function reduceAsyncWithInitialValue(iterable, fn, initialValue) {
2146
- if ((0, types_1$2.isAsyncIterable)(iterable)) {
2298
+ if ((0, types_1$5.isAsyncIterable)(iterable)) {
2147
2299
  return reduceAsyncIterable(iterable);
2148
2300
  }
2149
2301
  else {
@@ -2165,7 +2317,7 @@
2165
2317
  }
2166
2318
  }
2167
2319
  function reduceAsyncWithoutInitialValue(iterable, fn) {
2168
- if ((0, types_1$2.isAsyncIterable)(iterable)) {
2320
+ if ((0, types_1$5.isAsyncIterable)(iterable)) {
2169
2321
  return reduceAsyncIterable(iterable);
2170
2322
  }
2171
2323
  else {
@@ -2228,9 +2380,9 @@
2228
2380
  var reduce$1 = {};
2229
2381
 
2230
2382
  reduce$1.reduce = void 0;
2231
- const types_1$1 = es2018$3;
2383
+ const types_1$4 = es2018$2;
2232
2384
  function reduce(iterable, fn, initialValue) {
2233
- if ((0, types_1$1.isUndefined)(initialValue)) {
2385
+ if ((0, types_1$4.isUndefined)(initialValue)) {
2234
2386
  return reduceWithoutInitialValue(iterable, fn);
2235
2387
  }
2236
2388
  else {
@@ -2275,9 +2427,9 @@
2275
2427
  var someAsync$1 = {};
2276
2428
 
2277
2429
  someAsync$1.someAsync = void 0;
2278
- const types_1 = es2018$3;
2430
+ const types_1$3 = es2018$2;
2279
2431
  function someAsync(iterable, predicate) {
2280
- if ((0, types_1.isAsyncIterable)(iterable)) {
2432
+ if ((0, types_1$3.isAsyncIterable)(iterable)) {
2281
2433
  return someAsyncIterable(iterable);
2282
2434
  }
2283
2435
  else {
@@ -2461,6 +2613,135 @@
2461
2613
 
2462
2614
  }(es2018$5));
2463
2615
 
2616
+ var getErrorNames$1 = {};
2617
+
2618
+ var traverseErrorPrototypeChain$1 = {};
2619
+
2620
+ traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = void 0;
2621
+ function* traverseErrorPrototypeChain(err) {
2622
+ let current = err;
2623
+ while ((current = Object.getPrototypeOf(current))) {
2624
+ yield current;
2625
+ if (current === Error.prototype)
2626
+ break;
2627
+ }
2628
+ }
2629
+ traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
2630
+
2631
+ getErrorNames$1.getErrorNames = void 0;
2632
+ const types_1$2 = es2018$2;
2633
+ const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
2634
+ function* getErrorNames(err) {
2635
+ var _a;
2636
+ if ((0, types_1$2.isError)(err)) {
2637
+ for (const prototype of (0, traverse_error_prototype_chain_1.traverseErrorPrototypeChain)(err)) {
2638
+ if ((_a = prototype.constructor) === null || _a === void 0 ? void 0 : _a.name) {
2639
+ yield prototype.constructor.name;
2640
+ }
2641
+ }
2642
+ }
2643
+ else {
2644
+ yield err.name;
2645
+ yield* err.ancestors;
2646
+ }
2647
+ }
2648
+ getErrorNames$1.getErrorNames = getErrorNames;
2649
+
2650
+ var serializableError = {};
2651
+
2652
+ serializableError.isSerializableError = void 0;
2653
+ const types_1$1 = es2018$2;
2654
+ function isSerializableError(val) {
2655
+ return (0, types_1$1.isObject)(val)
2656
+ && (0, types_1$1.isString)(val.name)
2657
+ && (0, types_1$1.isString)(val.message)
2658
+ && ((0, types_1$1.isString)(val.stack) || (0, types_1$1.isNull)(val.stack))
2659
+ && ((0, types_1$1.isArray)(val.ancestors) && val.ancestors.every(types_1$1.isString));
2660
+ }
2661
+ serializableError.isSerializableError = isSerializableError;
2662
+
2663
+ customError$1.CustomError = void 0;
2664
+ const iterable_operator_1$1 = es2018$5;
2665
+ const get_error_names_1$1 = getErrorNames$1;
2666
+ const types_1 = es2018$2;
2667
+ const serializable_error_1 = serializableError;
2668
+ class CustomError extends Error {
2669
+ get name() {
2670
+ var _a, _b;
2671
+ 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';
2672
+ }
2673
+ static [Symbol.hasInstance](instance) {
2674
+ var _a;
2675
+ if ((0, types_1.isError)(instance) || (0, serializable_error_1.isSerializableError)(instance)) {
2676
+ const reversedClassNames = [
2677
+ (_a = this.prototype.constructor.name) !== null && _a !== void 0 ? _a : this.name,
2678
+ ...(0, get_error_names_1$1.getErrorNames)(this.prototype)
2679
+ ].reverse();
2680
+ const reversedInstanceNames = (0, iterable_operator_1$1.toArray)((0, get_error_names_1$1.getErrorNames)(instance)).reverse();
2681
+ return reversedClassNames.every((x, i) => x === reversedInstanceNames[i]);
2682
+ }
2683
+ else {
2684
+ return false;
2685
+ }
2686
+ }
2687
+ }
2688
+ customError$1.CustomError = CustomError;
2689
+
2690
+ var assertionError = {};
2691
+
2692
+ assertionError.AssertionError = void 0;
2693
+ const custom_error_1 = customError$1;
2694
+ class AssertionError extends custom_error_1.CustomError {
2695
+ }
2696
+ assertionError.AssertionError = AssertionError;
2697
+
2698
+ var normalize$1 = {};
2699
+
2700
+ normalize$1.normalize = void 0;
2701
+ const get_error_names_1 = getErrorNames$1;
2702
+ const iterable_operator_1 = es2018$5;
2703
+ function normalize(err) {
2704
+ var _a;
2705
+ const [name, ...ancestors] = (0, iterable_operator_1.toArray)((0, get_error_names_1.getErrorNames)(err));
2706
+ return {
2707
+ name,
2708
+ ancestors,
2709
+ message: err.message,
2710
+ stack: (_a = err.stack) !== null && _a !== void 0 ? _a : null
2711
+ };
2712
+ }
2713
+ normalize$1.normalize = normalize;
2714
+
2715
+ var assert$1 = {};
2716
+
2717
+ assert$1.assert = void 0;
2718
+ const assertion_error_1 = assertionError;
2719
+ function assert(condition, message) {
2720
+ if (!condition)
2721
+ throw new assertion_error_1.AssertionError(message);
2722
+ }
2723
+ assert$1.assert = assert;
2724
+
2725
+ (function (exports) {
2726
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2727
+ if (k2 === undefined) k2 = k;
2728
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2729
+ }) : (function(o, m, k, k2) {
2730
+ if (k2 === undefined) k2 = k;
2731
+ o[k2] = m[k];
2732
+ }));
2733
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2734
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2735
+ };__exportStar(customError$1, exports);
2736
+ __exportStar(assertionError, exports);
2737
+ __exportStar(serializableError, exports);
2738
+ __exportStar(normalize$1, exports);
2739
+ __exportStar(assert$1, exports);
2740
+ __exportStar(getErrorNames$1, exports);
2741
+ __exportStar(traverseErrorPrototypeChain$1, exports);
2742
+
2743
+ }(es2018$6));
2744
+
2464
2745
  var _LRUMap_limit, _LRUMap_map;
2465
2746
  class LRUMap {
2466
2747
  constructor(limit) {
@@ -2519,11 +2800,11 @@
2519
2800
  }
2520
2801
  }
2521
2802
 
2522
- var es2018$2 = {};
2803
+ var es2018$1 = {};
2523
2804
 
2524
2805
  var exponentialBackoff = {};
2525
2806
 
2526
- var es2018$1 = {};
2807
+ var es2018 = {};
2527
2808
 
2528
2809
  var random$1 = {};
2529
2810
 
@@ -2567,10 +2848,10 @@
2567
2848
  __exportStar(randomInt$1, exports);
2568
2849
  __exportStar(randomIntInclusive$1, exports);
2569
2850
 
2570
- }(es2018$1));
2851
+ }(es2018));
2571
2852
 
2572
2853
  exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
2573
- const extra_rand_1 = es2018$1;
2854
+ const extra_rand_1 = es2018;
2574
2855
  function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
2575
2856
  const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
2576
2857
  if (jitter) {
@@ -2685,7 +2966,7 @@
2685
2966
  __exportStar(setTimeoutLoop$1, exports);
2686
2967
  __exportStar(setDynamicTimeoutLoop$1, exports);
2687
2968
 
2688
- }(es2018$2));
2969
+ }(es2018$1));
2689
2970
 
2690
2971
  var _ExpirableMap_map, _ExpirableMap_cancelClearTimeout;
2691
2972
  class ExpirableMap {
@@ -2775,7 +3056,7 @@
2775
3056
  if (this.itemMetadataSortedByExpirationTime.length > 0) {
2776
3057
  const item = this.itemMetadataSortedByExpirationTime[0];
2777
3058
  if (Number.isFinite(item.expirationTime)) {
2778
- const cancel = es2018$2.setSchedule(item.expirationTime, () => {
3059
+ const cancel = es2018$1.setSchedule(item.expirationTime, () => {
2779
3060
  this.clearExpiredItems(Date.now());
2780
3061
  this.rescheduleClearTimeout();
2781
3062
  });
@@ -2906,7 +3187,7 @@
2906
3187
  if (this.itemMetadataSortedByExpirationTime.length > 0) {
2907
3188
  const item = this.itemMetadataSortedByExpirationTime[0];
2908
3189
  if (Number.isFinite(item.expirationTime)) {
2909
- const cancel = es2018$2.setSchedule(item.expirationTime, () => {
3190
+ const cancel = es2018$1.setSchedule(item.expirationTime, () => {
2910
3191
  this.clearExpiredItems(Date.now());
2911
3192
  this.rescheduleClearTimeout();
2912
3193
  });
@@ -3031,7 +3312,7 @@
3031
3312
  }
3032
3313
  }
3033
3314
 
3034
- function isFunction$1(value) {
3315
+ function isFunction(value) {
3035
3316
  return typeof value === 'function';
3036
3317
  }
3037
3318
 
@@ -3099,7 +3380,7 @@
3099
3380
  }
3100
3381
  }
3101
3382
  var initialTeardown = this.initialTeardown;
3102
- if (isFunction$1(initialTeardown)) {
3383
+ if (isFunction(initialTeardown)) {
3103
3384
  try {
3104
3385
  initialTeardown();
3105
3386
  }
@@ -3191,10 +3472,10 @@
3191
3472
  var EMPTY_SUBSCRIPTION = Subscription.EMPTY;
3192
3473
  function isSubscription(value) {
3193
3474
  return (value instanceof Subscription ||
3194
- (value && 'closed' in value && isFunction$1(value.remove) && isFunction$1(value.add) && isFunction$1(value.unsubscribe)));
3475
+ (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));
3195
3476
  }
3196
3477
  function execTeardown(teardown) {
3197
- if (isFunction$1(teardown)) {
3478
+ if (isFunction(teardown)) {
3198
3479
  teardown();
3199
3480
  }
3200
3481
  else {
@@ -3329,7 +3610,7 @@
3329
3610
  function SafeSubscriber(observerOrNext, error, complete) {
3330
3611
  var _this = _super.call(this) || this;
3331
3612
  var next;
3332
- if (isFunction$1(observerOrNext)) {
3613
+ if (isFunction(observerOrNext)) {
3333
3614
  next = observerOrNext;
3334
3615
  }
3335
3616
  else if (observerOrNext) {
@@ -3487,7 +3768,7 @@
3487
3768
  return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
3488
3769
  }
3489
3770
  function isObserver(value) {
3490
- return value && isFunction$1(value.next) && isFunction$1(value.error) && isFunction$1(value.complete);
3771
+ return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
3491
3772
  }
3492
3773
  function isSubscriber(value) {
3493
3774
  return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));
@@ -3645,505 +3926,6 @@
3645
3926
  return AnonymousSubject;
3646
3927
  }(Subject));
3647
3928
 
3648
- var es2018 = {};
3649
-
3650
- var array = {};
3651
-
3652
- array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
3653
- function isArray(val) {
3654
- return Array.isArray(val);
3655
- }
3656
- array.isArray = isArray;
3657
- function isntArray(val) {
3658
- return !isArray(val);
3659
- }
3660
- array.isntArray = isntArray;
3661
- function isEmptyArray(val) {
3662
- return val.length === 0;
3663
- }
3664
- array.isEmptyArray = isEmptyArray;
3665
- function isntEmptyArray(val) {
3666
- return val.length !== 0;
3667
- }
3668
- array.isntEmptyArray = isntEmptyArray;
3669
-
3670
- var asyncIterable = {};
3671
-
3672
- var _null = {};
3673
-
3674
- _null.isntNull = _null.isNull = void 0;
3675
- function isNull(val) {
3676
- return val === null;
3677
- }
3678
- _null.isNull = isNull;
3679
- function isntNull(val) {
3680
- return !isNull(val);
3681
- }
3682
- _null.isntNull = isntNull;
3683
-
3684
- var _undefined = {};
3685
-
3686
- _undefined.isntUndefined = _undefined.isUndefined = void 0;
3687
- function isUndefined(val) {
3688
- return val === undefined;
3689
- }
3690
- _undefined.isUndefined = isUndefined;
3691
- function isntUndefined(val) {
3692
- return !isUndefined(val);
3693
- }
3694
- _undefined.isntUndefined = isntUndefined;
3695
-
3696
- asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
3697
- const null_1$1 = _null;
3698
- const undefined_1$2 = _undefined;
3699
- function isAsyncIterable(val) {
3700
- return (0, null_1$1.isntNull)(val)
3701
- && (0, undefined_1$2.isntUndefined)(val)
3702
- && typeof val[Symbol.asyncIterator] === 'function';
3703
- }
3704
- asyncIterable.isAsyncIterable = isAsyncIterable;
3705
- function isntAsyncIterable(val) {
3706
- return !isAsyncIterable(val);
3707
- }
3708
- asyncIterable.isntAsyncIterable = isntAsyncIterable;
3709
-
3710
- var bigint = {};
3711
-
3712
- bigint.isntBigInt = bigint.isBigInt = void 0;
3713
- function isBigInt(val) {
3714
- return typeof val === 'bigint';
3715
- }
3716
- bigint.isBigInt = isBigInt;
3717
- function isntBigInt(val) {
3718
- return !isBigInt(val);
3719
- }
3720
- bigint.isntBigInt = isntBigInt;
3721
-
3722
- var boolean = {};
3723
-
3724
- boolean.isntBoolean = boolean.isBoolean = void 0;
3725
- function isBoolean(val) {
3726
- return typeof val === 'boolean';
3727
- }
3728
- boolean.isBoolean = isBoolean;
3729
- function isntBoolean(val) {
3730
- return !isBoolean(val);
3731
- }
3732
- boolean.isntBoolean = isntBoolean;
3733
-
3734
- var char = {};
3735
-
3736
- var string = {};
3737
-
3738
- string.isntString = string.isString = void 0;
3739
- function isString(val) {
3740
- return typeof val === 'string';
3741
- }
3742
- string.isString = isString;
3743
- function isntString(val) {
3744
- return !isString(val);
3745
- }
3746
- string.isntString = isntString;
3747
-
3748
- char.isntChar = char.isChar = void 0;
3749
- const string_1$1 = string;
3750
- function isChar(val) {
3751
- return (0, string_1$1.isString)(val)
3752
- && val.length === 1;
3753
- }
3754
- char.isChar = isChar;
3755
- function isntChar(val) {
3756
- return !isChar(val);
3757
- }
3758
- char.isntChar = isntChar;
3759
-
3760
- var date = {};
3761
-
3762
- date.isntDate = date.isDate = void 0;
3763
- function isDate(val) {
3764
- return val instanceof Date;
3765
- }
3766
- date.isDate = isDate;
3767
- function isntDate(val) {
3768
- return !isDate(val);
3769
- }
3770
- date.isntDate = isntDate;
3771
-
3772
- var _enum = {};
3773
-
3774
- _enum.inEnum = void 0;
3775
- function inEnum(val, _enum) {
3776
- return Object.values(_enum).includes(val);
3777
- }
3778
- _enum.inEnum = inEnum;
3779
-
3780
- var error = {};
3781
-
3782
- error.isntError = error.isError = void 0;
3783
- function isError(val) {
3784
- return val instanceof Error;
3785
- }
3786
- error.isError = isError;
3787
- function isntError(val) {
3788
- return !isError(val);
3789
- }
3790
- error.isntError = isntError;
3791
-
3792
- var falsy = {};
3793
-
3794
- falsy.isntFalsy = falsy.isFalsy = void 0;
3795
- function isFalsy(val) {
3796
- return !val;
3797
- }
3798
- falsy.isFalsy = isFalsy;
3799
- function isntFalsy(val) {
3800
- return !isFalsy(val);
3801
- }
3802
- falsy.isntFalsy = isntFalsy;
3803
-
3804
- var _function = {};
3805
-
3806
- _function.isntFunction = _function.isFunction = void 0;
3807
- function isFunction(val) {
3808
- return typeof val === 'function';
3809
- }
3810
- _function.isFunction = isFunction;
3811
- function isntFunction(val) {
3812
- return !isFunction(val);
3813
- }
3814
- _function.isntFunction = isntFunction;
3815
-
3816
- var iterable = {};
3817
-
3818
- iterable.isntIterable = iterable.isIterable = void 0;
3819
- const null_1 = _null;
3820
- const undefined_1$1 = _undefined;
3821
- function isIterable(val) {
3822
- return (0, null_1.isntNull)(val)
3823
- && (0, undefined_1$1.isntUndefined)(val)
3824
- && typeof val[Symbol.iterator] === 'function';
3825
- }
3826
- iterable.isIterable = isIterable;
3827
- function isntIterable(val) {
3828
- return !isIterable(val);
3829
- }
3830
- iterable.isntIterable = isntIterable;
3831
-
3832
- var jsonRpc = {};
3833
-
3834
- var object = {};
3835
-
3836
- /**
3837
- * lodash (Custom Build) <https://lodash.com/>
3838
- * Build: `lodash modularize exports="npm" -o ./`
3839
- * Copyright jQuery Foundation and other contributors <https://jquery.org/>
3840
- * Released under MIT license <https://lodash.com/license>
3841
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
3842
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
3843
- */
3844
-
3845
- /** `Object#toString` result references. */
3846
- var objectTag = '[object Object]';
3847
-
3848
- /**
3849
- * Checks if `value` is a host object in IE < 9.
3850
- *
3851
- * @private
3852
- * @param {*} value The value to check.
3853
- * @returns {boolean} Returns `true` if `value` is a host object, else `false`.
3854
- */
3855
- function isHostObject(value) {
3856
- // Many host objects are `Object` objects that can coerce to strings
3857
- // despite having improperly defined `toString` methods.
3858
- var result = false;
3859
- if (value != null && typeof value.toString != 'function') {
3860
- try {
3861
- result = !!(value + '');
3862
- } catch (e) {}
3863
- }
3864
- return result;
3865
- }
3866
-
3867
- /**
3868
- * Creates a unary function that invokes `func` with its argument transformed.
3869
- *
3870
- * @private
3871
- * @param {Function} func The function to wrap.
3872
- * @param {Function} transform The argument transform.
3873
- * @returns {Function} Returns the new function.
3874
- */
3875
- function overArg(func, transform) {
3876
- return function(arg) {
3877
- return func(transform(arg));
3878
- };
3879
- }
3880
-
3881
- /** Used for built-in method references. */
3882
- var funcProto = Function.prototype,
3883
- objectProto = Object.prototype;
3884
-
3885
- /** Used to resolve the decompiled source of functions. */
3886
- var funcToString = funcProto.toString;
3887
-
3888
- /** Used to check objects for own properties. */
3889
- var hasOwnProperty = objectProto.hasOwnProperty;
3890
-
3891
- /** Used to infer the `Object` constructor. */
3892
- var objectCtorString = funcToString.call(Object);
3893
-
3894
- /**
3895
- * Used to resolve the
3896
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
3897
- * of values.
3898
- */
3899
- var objectToString = objectProto.toString;
3900
-
3901
- /** Built-in value references. */
3902
- var getPrototype = overArg(Object.getPrototypeOf, Object);
3903
-
3904
- /**
3905
- * Checks if `value` is object-like. A value is object-like if it's not `null`
3906
- * and has a `typeof` result of "object".
3907
- *
3908
- * @static
3909
- * @memberOf _
3910
- * @since 4.0.0
3911
- * @category Lang
3912
- * @param {*} value The value to check.
3913
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
3914
- * @example
3915
- *
3916
- * _.isObjectLike({});
3917
- * // => true
3918
- *
3919
- * _.isObjectLike([1, 2, 3]);
3920
- * // => true
3921
- *
3922
- * _.isObjectLike(_.noop);
3923
- * // => false
3924
- *
3925
- * _.isObjectLike(null);
3926
- * // => false
3927
- */
3928
- function isObjectLike(value) {
3929
- return !!value && typeof value == 'object';
3930
- }
3931
-
3932
- /**
3933
- * Checks if `value` is a plain object, that is, an object created by the
3934
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
3935
- *
3936
- * @static
3937
- * @memberOf _
3938
- * @since 0.8.0
3939
- * @category Lang
3940
- * @param {*} value The value to check.
3941
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
3942
- * @example
3943
- *
3944
- * function Foo() {
3945
- * this.a = 1;
3946
- * }
3947
- *
3948
- * _.isPlainObject(new Foo);
3949
- * // => false
3950
- *
3951
- * _.isPlainObject([1, 2, 3]);
3952
- * // => false
3953
- *
3954
- * _.isPlainObject({ 'x': 0, 'y': 0 });
3955
- * // => true
3956
- *
3957
- * _.isPlainObject(Object.create(null));
3958
- * // => true
3959
- */
3960
- function isPlainObject$1(value) {
3961
- if (!isObjectLike(value) ||
3962
- objectToString.call(value) != objectTag || isHostObject(value)) {
3963
- return false;
3964
- }
3965
- var proto = getPrototype(value);
3966
- if (proto === null) {
3967
- return true;
3968
- }
3969
- var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
3970
- return (typeof Ctor == 'function' &&
3971
- Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
3972
- }
3973
-
3974
- var lodash_isplainobject = isPlainObject$1;
3975
-
3976
- var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
3977
- return (mod && mod.__esModule) ? mod : { "default": mod };
3978
- };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
3979
- const lodash_isplainobject_1 = __importDefault(lodash_isplainobject);
3980
- function isObject(val) {
3981
- return val !== null
3982
- && typeof val === 'object';
3983
- }
3984
- object.isObject = isObject;
3985
- function isntObject(val) {
3986
- return !isObject(val);
3987
- }
3988
- object.isntObject = isntObject;
3989
- function isPlainObject(val) {
3990
- return (0, lodash_isplainobject_1.default)(val);
3991
- }
3992
- object.isPlainObject = isPlainObject;
3993
- function isntPlainObject(val) {
3994
- return !isPlainObject(val);
3995
- }
3996
- object.isntPlainObject = isntPlainObject;
3997
- function isEmptyObject(val) {
3998
- return Object.keys(val).length === 0;
3999
- }
4000
- object.isEmptyObject = isEmptyObject;
4001
- function isntEmptyObject(val) {
4002
- return Object.keys(val).length !== 0;
4003
- }
4004
- object.isntEmptyObject = isntEmptyObject;
4005
-
4006
- var number = {};
4007
-
4008
- number.isntNumber = number.isNumber = void 0;
4009
- function isNumber(val) {
4010
- return typeof val === 'number';
4011
- }
4012
- number.isNumber = isNumber;
4013
- function isntNumber(val) {
4014
- return !isNumber(val);
4015
- }
4016
- number.isntNumber = isntNumber;
4017
-
4018
- jsonRpc.isntJsonRpcError = jsonRpc.isJsonRpcError = jsonRpc.isntJsonRpcSuccess = jsonRpc.isJsonRpcSuccess = jsonRpc.isntJsonRpcRequest = jsonRpc.isJsonRpcRequest = jsonRpc.isntJsonRpcNotification = jsonRpc.isJsonRpcNotification = void 0;
4019
- const array_1 = array;
4020
- const object_1 = object;
4021
- const string_1 = string;
4022
- const number_1 = number;
4023
- const undefined_1 = _undefined;
4024
- function isJsonRpcId(val) {
4025
- return (0, string_1.isString)(val) || (0, number_1.isNumber)(val);
4026
- }
4027
- function isJsonRpcParams(val) {
4028
- return (0, array_1.isArray)(val) || (0, object_1.isObject)(val);
4029
- }
4030
- function isJsonRpcNotification(val) {
4031
- return (0, object_1.isPlainObject)(val)
4032
- && (0, string_1.isString)(val.jsonrpc)
4033
- && (0, string_1.isString)(val.method)
4034
- && (0, undefined_1.isUndefined)(val.id)
4035
- && isJsonRpcParams(val.params);
4036
- }
4037
- jsonRpc.isJsonRpcNotification = isJsonRpcNotification;
4038
- function isntJsonRpcNotification(val) {
4039
- return !isJsonRpcNotification(val);
4040
- }
4041
- jsonRpc.isntJsonRpcNotification = isntJsonRpcNotification;
4042
- function isJsonRpcRequest(val) {
4043
- return (0, object_1.isPlainObject)(val)
4044
- && (0, string_1.isString)(val.jsonrpc)
4045
- && (0, string_1.isString)(val.method)
4046
- && isJsonRpcId(val.id)
4047
- && isJsonRpcParams(val.params);
4048
- }
4049
- jsonRpc.isJsonRpcRequest = isJsonRpcRequest;
4050
- function isntJsonRpcRequest(val) {
4051
- return !isJsonRpcRequest(val);
4052
- }
4053
- jsonRpc.isntJsonRpcRequest = isntJsonRpcRequest;
4054
- function isJsonRpcSuccess(val) {
4055
- return (0, object_1.isPlainObject)(val)
4056
- && (0, string_1.isString)(val.jsonrpc)
4057
- && (0, string_1.isString)(val.id)
4058
- && 'result' in val;
4059
- }
4060
- jsonRpc.isJsonRpcSuccess = isJsonRpcSuccess;
4061
- function isntJsonRpcSuccess(val) {
4062
- return !isJsonRpcSuccess(val);
4063
- }
4064
- jsonRpc.isntJsonRpcSuccess = isntJsonRpcSuccess;
4065
- function isJsonRpcError(val) {
4066
- return (0, object_1.isPlainObject)(val)
4067
- && (0, string_1.isString)(val.jsonrpc)
4068
- && isJsonRpcId(val.id)
4069
- && isJsonRpcErrorObject(val.error);
4070
- }
4071
- jsonRpc.isJsonRpcError = isJsonRpcError;
4072
- function isntJsonRpcError(val) {
4073
- return !isJsonRpcError(val);
4074
- }
4075
- jsonRpc.isntJsonRpcError = isntJsonRpcError;
4076
- function isJsonRpcErrorObject(val) {
4077
- return (0, object_1.isPlainObject)(val)
4078
- && (0, number_1.isNumber)(val.code)
4079
- && (0, string_1.isString)(val.message)
4080
- && ((0, undefined_1.isUndefined)(val.data) || (0, object_1.isObject)(val.data));
4081
- }
4082
-
4083
- var json = {};
4084
-
4085
- json.isntJson = json.isJson = void 0;
4086
- function isJson(val) {
4087
- try {
4088
- JSON.stringify(val);
4089
- return true;
4090
- }
4091
- catch (_a) {
4092
- return false;
4093
- }
4094
- }
4095
- json.isJson = isJson;
4096
- function isntJson(val) {
4097
- return !isntJson();
4098
- }
4099
- json.isntJson = isntJson;
4100
-
4101
- var url = {};
4102
-
4103
- url.isAbsoluteURL = void 0;
4104
- function isAbsoluteURL(str) {
4105
- try {
4106
- new URL(str);
4107
- return true;
4108
- }
4109
- catch (_a) {
4110
- return false;
4111
- }
4112
- }
4113
- url.isAbsoluteURL = isAbsoluteURL;
4114
-
4115
- (function (exports) {
4116
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4117
- if (k2 === undefined) k2 = k;
4118
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4119
- }) : (function(o, m, k, k2) {
4120
- if (k2 === undefined) k2 = k;
4121
- o[k2] = m[k];
4122
- }));
4123
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
4124
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
4125
- };__exportStar(array, exports);
4126
- __exportStar(asyncIterable, exports);
4127
- __exportStar(bigint, exports);
4128
- __exportStar(boolean, exports);
4129
- __exportStar(char, exports);
4130
- __exportStar(date, exports);
4131
- __exportStar(_enum, exports);
4132
- __exportStar(error, exports);
4133
- __exportStar(falsy, exports);
4134
- __exportStar(_function, exports);
4135
- __exportStar(iterable, exports);
4136
- __exportStar(jsonRpc, exports);
4137
- __exportStar(json, exports);
4138
- __exportStar(_null, exports);
4139
- __exportStar(number, exports);
4140
- __exportStar(object, exports);
4141
- __exportStar(string, exports);
4142
- __exportStar(_undefined, exports);
4143
- __exportStar(url, exports);
4144
-
4145
- }(es2018));
4146
-
4147
3929
  class ObservableFiniteStateMachine extends FiniteStateMachine {
4148
3930
  constructor() {
4149
3931
  super(...arguments);
@@ -4160,7 +3942,7 @@
4160
3942
  super.send(event);
4161
3943
  const newState = this.state;
4162
3944
  this.stateChanges.next({ event, oldState, newState });
4163
- if (es2018.isEmptyObject(this.schema[newState])) {
3945
+ if (es2018$2.isEmptyObject(this.schema[newState])) {
4164
3946
  this.stateChanges.complete();
4165
3947
  }
4166
3948
  }