extra-react-hooks 0.2.0 → 0.3.1

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.
Files changed (92) hide show
  1. package/README.md +28 -30
  2. package/dist/es2015/index.min.mjs +3 -3
  3. package/dist/es2015/index.min.mjs.map +1 -1
  4. package/dist/es2015/index.mjs +1279 -496
  5. package/dist/es2015/index.mjs.map +1 -1
  6. package/dist/es2015/index.umd.js +1280 -495
  7. package/dist/es2015/index.umd.js.map +1 -1
  8. package/dist/es2015/index.umd.min.js +3 -3
  9. package/dist/es2015/index.umd.min.js.map +1 -1
  10. package/dist/es2018/index.min.mjs +3 -3
  11. package/dist/es2018/index.min.mjs.map +1 -1
  12. package/dist/es2018/index.mjs +1279 -496
  13. package/dist/es2018/index.mjs.map +1 -1
  14. package/dist/es2018/index.umd.js +1280 -495
  15. package/dist/es2018/index.umd.js.map +1 -1
  16. package/dist/es2018/index.umd.min.js +3 -3
  17. package/dist/es2018/index.umd.min.js.map +1 -1
  18. package/lib/es2015/index.d.ts +2 -0
  19. package/lib/es2015/index.js +2 -0
  20. package/lib/es2015/index.js.map +1 -1
  21. package/lib/es2015/types.d.ts +3 -0
  22. package/lib/es2015/types.js +3 -0
  23. package/lib/es2015/types.js.map +1 -0
  24. package/lib/es2015/use-finite-state-machine.js +1 -1
  25. package/lib/es2015/use-finite-state-machine.js.map +1 -1
  26. package/lib/es2015/use-force-update.js +4 -1
  27. package/lib/es2015/use-force-update.js.map +1 -1
  28. package/lib/es2015/use-iife.d.ts +2 -0
  29. package/lib/es2015/use-iife.js +25 -0
  30. package/lib/es2015/use-iife.js.map +1 -0
  31. package/lib/es2015/use-increment.js +5 -5
  32. package/lib/es2015/use-increment.js.map +1 -1
  33. package/lib/es2015/use-is-first-render.js +4 -1
  34. package/lib/es2015/use-is-first-render.js.map +1 -1
  35. package/lib/es2015/use-is-mounted.js +7 -4
  36. package/lib/es2015/use-is-mounted.js.map +1 -1
  37. package/lib/es2015/use-multiple-selection.d.ts +8 -12
  38. package/lib/es2015/use-multiple-selection.js +45 -29
  39. package/lib/es2015/use-multiple-selection.js.map +1 -1
  40. package/lib/es2015/use-single-selection.d.ts +6 -13
  41. package/lib/es2015/use-single-selection.js +18 -15
  42. package/lib/es2015/use-single-selection.js.map +1 -1
  43. package/lib/es2015/use-state-cycle.d.ts +2 -1
  44. package/lib/es2015/use-state-cycle.js +7 -7
  45. package/lib/es2015/use-state-cycle.js.map +1 -1
  46. package/lib/es2015/use-step.d.ts +2 -1
  47. package/lib/es2015/use-step.js +21 -23
  48. package/lib/es2015/use-step.js.map +1 -1
  49. package/lib/es2015/use-toggle.d.ts +1 -4
  50. package/lib/es2015/use-toggle.js +4 -2
  51. package/lib/es2015/use-toggle.js.map +1 -1
  52. package/lib/es2015/use-unmount.d.ts +1 -0
  53. package/lib/es2015/use-unmount.js +9 -0
  54. package/lib/es2015/use-unmount.js.map +1 -0
  55. package/lib/es2018/index.d.ts +2 -0
  56. package/lib/es2018/index.js +2 -0
  57. package/lib/es2018/index.js.map +1 -1
  58. package/lib/es2018/types.d.ts +3 -0
  59. package/lib/es2018/types.js +3 -0
  60. package/lib/es2018/types.js.map +1 -0
  61. package/lib/es2018/use-finite-state-machine.js +1 -1
  62. package/lib/es2018/use-finite-state-machine.js.map +1 -1
  63. package/lib/es2018/use-force-update.js +4 -1
  64. package/lib/es2018/use-force-update.js.map +1 -1
  65. package/lib/es2018/use-iife.d.ts +2 -0
  66. package/lib/es2018/use-iife.js +25 -0
  67. package/lib/es2018/use-iife.js.map +1 -0
  68. package/lib/es2018/use-increment.js +5 -5
  69. package/lib/es2018/use-increment.js.map +1 -1
  70. package/lib/es2018/use-is-first-render.js +4 -1
  71. package/lib/es2018/use-is-first-render.js.map +1 -1
  72. package/lib/es2018/use-is-mounted.js +7 -4
  73. package/lib/es2018/use-is-mounted.js.map +1 -1
  74. package/lib/es2018/use-multiple-selection.d.ts +8 -12
  75. package/lib/es2018/use-multiple-selection.js +45 -29
  76. package/lib/es2018/use-multiple-selection.js.map +1 -1
  77. package/lib/es2018/use-single-selection.d.ts +6 -13
  78. package/lib/es2018/use-single-selection.js +18 -15
  79. package/lib/es2018/use-single-selection.js.map +1 -1
  80. package/lib/es2018/use-state-cycle.d.ts +2 -1
  81. package/lib/es2018/use-state-cycle.js +7 -7
  82. package/lib/es2018/use-state-cycle.js.map +1 -1
  83. package/lib/es2018/use-step.d.ts +2 -1
  84. package/lib/es2018/use-step.js +21 -23
  85. package/lib/es2018/use-step.js.map +1 -1
  86. package/lib/es2018/use-toggle.d.ts +1 -4
  87. package/lib/es2018/use-toggle.js +4 -2
  88. package/lib/es2018/use-toggle.js.map +1 -1
  89. package/lib/es2018/use-unmount.d.ts +1 -0
  90. package/lib/es2018/use-unmount.js +9 -0
  91. package/lib/es2018/use-unmount.js.map +1 -0
  92. package/package.json +4 -2
@@ -2485,13 +2485,13 @@ function requireReact_development () {
2485
2485
 
2486
2486
  function useIncrement(initialValue) {
2487
2487
  const [value, setValue] = react.exports.useState(initialValue);
2488
- const increment = react.exports.useCallback((step = 1) => {
2488
+ return [value, react.exports.useCallback(increment, []), react.exports.useCallback(reset, [])];
2489
+ function increment(step = 1) {
2489
2490
  setValue(value => value + step);
2490
- }, []);
2491
- const reset = react.exports.useCallback(() => {
2491
+ }
2492
+ function reset() {
2492
2493
  setValue(initialValue);
2493
- }, []);
2494
- return [value, increment, reset];
2494
+ }
2495
2495
  }
2496
2496
 
2497
2497
  function useMount(effect) {
@@ -2499,14 +2499,17 @@ function useMount(effect) {
2499
2499
  }
2500
2500
 
2501
2501
  function useIsMounted() {
2502
- const isMounted = react.exports.useRef(false);
2502
+ const mounted = react.exports.useRef(false);
2503
2503
  useMount(() => {
2504
- isMounted.current = true;
2504
+ mounted.current = true;
2505
2505
  return () => {
2506
- isMounted.current = false;
2506
+ mounted.current = false;
2507
2507
  };
2508
2508
  });
2509
- return () => isMounted.current;
2509
+ return react.exports.useCallback(isMounted, []);
2510
+ function isMounted() {
2511
+ return mounted.current;
2512
+ }
2510
2513
  }
2511
2514
 
2512
2515
  var State;
@@ -2526,7 +2529,10 @@ function useIsFirstRender() {
2526
2529
  break;
2527
2530
  case State.NotFirst: break;
2528
2531
  }
2529
- return () => state.current === State.First;
2532
+ return react.exports.useCallback(isFirstRender, []);
2533
+ function isFirstRender() {
2534
+ return state.current === State.First;
2535
+ }
2530
2536
  }
2531
2537
 
2532
2538
  function useRenderCounter() {
@@ -2535,6 +2541,10 @@ function useRenderCounter() {
2535
2541
  return counter.current;
2536
2542
  }
2537
2543
 
2544
+ function useUnmount(effect) {
2545
+ react.exports.useEffect(() => effect, []);
2546
+ }
2547
+
2538
2548
  function useUpdateEffect(effect, deps) {
2539
2549
  const isFirstRender = useIsFirstRender();
2540
2550
  react.exports.useEffect(() => {
@@ -2544,227 +2554,292 @@ function useUpdateEffect(effect, deps) {
2544
2554
  }, deps);
2545
2555
  }
2546
2556
 
2557
+ var es2018$9 = {};
2558
+
2559
+ var customError = {};
2560
+
2561
+ var es2018$8 = {};
2562
+
2563
+ var middleware = {};
2564
+
2565
+ var chunkAsync = {};
2566
+
2547
2567
  var es2018$7 = {};
2548
2568
 
2549
- var array = {};
2569
+ var go$1 = {};
2550
2570
 
2551
- array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
2552
- function isArray$3(val) {
2571
+ go$1.go = void 0;
2572
+ function go(fn) {
2573
+ return fn();
2574
+ }
2575
+ go$1.go = go;
2576
+
2577
+ (function (exports) {
2578
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2579
+ if (k2 === undefined) k2 = k;
2580
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
2581
+ }) : (function(o, m, k, k2) {
2582
+ if (k2 === undefined) k2 = k;
2583
+ o[k2] = m[k];
2584
+ }));
2585
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
2586
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
2587
+ };__exportStar(go$1, exports);
2588
+
2589
+ } (es2018$7));
2590
+
2591
+ var hasRequiredChunkAsync;
2592
+
2593
+ function requireChunkAsync () {
2594
+ if (hasRequiredChunkAsync) return chunkAsync;
2595
+ hasRequiredChunkAsync = 1;
2596
+ chunkAsync.chunkAsync = void 0;
2597
+ const go_1 = es2018$7;
2598
+ const errors_1 = requireEs2018();
2599
+ function chunkAsync$1(iterable, size) {
2600
+ (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
2601
+ (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');
2602
+ return (0, go_1.go)(async function* () {
2603
+ let buffer = [];
2604
+ for await (const element of iterable) {
2605
+ buffer.push(element);
2606
+ if (buffer.length >= size) {
2607
+ yield buffer;
2608
+ buffer = [];
2609
+ }
2610
+ }
2611
+ if (buffer.length)
2612
+ yield buffer;
2613
+ });
2614
+ }
2615
+ chunkAsync.chunkAsync = chunkAsync$1;
2616
+
2617
+ return chunkAsync;
2618
+ }
2619
+
2620
+ var chunkByAsync$1 = {};
2621
+
2622
+ var es2018$6 = {};
2623
+
2624
+ var array$2 = {};
2625
+
2626
+ array$2.isntEmptyArray = array$2.isEmptyArray = array$2.isntArray = array$2.isArray = void 0;
2627
+ function isArray$5(val) {
2553
2628
  return Array.isArray(val);
2554
2629
  }
2555
- array.isArray = isArray$3;
2556
- function isntArray(val) {
2557
- return !isArray$3(val);
2630
+ array$2.isArray = isArray$5;
2631
+ function isntArray$2(val) {
2632
+ return !isArray$5(val);
2558
2633
  }
2559
- array.isntArray = isntArray;
2560
- function isEmptyArray(val) {
2634
+ array$2.isntArray = isntArray$2;
2635
+ function isEmptyArray$2(val) {
2561
2636
  return val.length === 0;
2562
2637
  }
2563
- array.isEmptyArray = isEmptyArray;
2564
- function isntEmptyArray(val) {
2638
+ array$2.isEmptyArray = isEmptyArray$2;
2639
+ function isntEmptyArray$2(val) {
2565
2640
  return val.length !== 0;
2566
2641
  }
2567
- array.isntEmptyArray = isntEmptyArray;
2642
+ array$2.isntEmptyArray = isntEmptyArray$2;
2568
2643
 
2569
- var asyncIterable = {};
2644
+ var asyncIterable$2 = {};
2570
2645
 
2571
- var _null = {};
2646
+ var _null$2 = {};
2572
2647
 
2573
- _null.isntNull = _null.isNull = void 0;
2574
- function isNull(val) {
2648
+ _null$2.isntNull = _null$2.isNull = void 0;
2649
+ function isNull$2(val) {
2575
2650
  return val === null;
2576
2651
  }
2577
- _null.isNull = isNull;
2578
- function isntNull(val) {
2579
- return !isNull(val);
2652
+ _null$2.isNull = isNull$2;
2653
+ function isntNull$2(val) {
2654
+ return !isNull$2(val);
2580
2655
  }
2581
- _null.isntNull = isntNull;
2656
+ _null$2.isntNull = isntNull$2;
2582
2657
 
2583
- var _undefined = {};
2658
+ var _undefined$2 = {};
2584
2659
 
2585
- _undefined.isntUndefined = _undefined.isUndefined = void 0;
2586
- function isUndefined(val) {
2660
+ _undefined$2.isntUndefined = _undefined$2.isUndefined = void 0;
2661
+ function isUndefined$2(val) {
2587
2662
  return val === undefined;
2588
2663
  }
2589
- _undefined.isUndefined = isUndefined;
2590
- function isntUndefined(val) {
2591
- return !isUndefined(val);
2664
+ _undefined$2.isUndefined = isUndefined$2;
2665
+ function isntUndefined$2(val) {
2666
+ return !isUndefined$2(val);
2592
2667
  }
2593
- _undefined.isntUndefined = isntUndefined;
2668
+ _undefined$2.isntUndefined = isntUndefined$2;
2594
2669
 
2595
- var _function = {};
2670
+ var _function$2 = {};
2596
2671
 
2597
- _function.isntFunction = _function.isFunction = void 0;
2598
- function isFunction$2(val) {
2672
+ _function$2.isntFunction = _function$2.isFunction = void 0;
2673
+ function isFunction$4(val) {
2599
2674
  return typeof val === 'function';
2600
2675
  }
2601
- _function.isFunction = isFunction$2;
2602
- function isntFunction(val) {
2603
- return !isFunction$2(val);
2676
+ _function$2.isFunction = isFunction$4;
2677
+ function isntFunction$2(val) {
2678
+ return !isFunction$4(val);
2604
2679
  }
2605
- _function.isntFunction = isntFunction;
2680
+ _function$2.isntFunction = isntFunction$2;
2606
2681
 
2607
- asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
2608
- const null_1$2 = _null;
2609
- const undefined_1$1 = _undefined;
2610
- const function_1$2 = _function;
2611
- function isAsyncIterable$2(val) {
2612
- return (0, null_1$2.isntNull)(val)
2613
- && (0, undefined_1$1.isntUndefined)(val)
2614
- && (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
2682
+ asyncIterable$2.isntAsyncIterable = asyncIterable$2.isAsyncIterable = void 0;
2683
+ const null_1$8 = _null$2;
2684
+ const undefined_1$5 = _undefined$2;
2685
+ const function_1$8 = _function$2;
2686
+ function isAsyncIterable$4(val) {
2687
+ return (0, null_1$8.isntNull)(val)
2688
+ && (0, undefined_1$5.isntUndefined)(val)
2689
+ && (0, function_1$8.isFunction)(val[Symbol.asyncIterator]);
2615
2690
  }
2616
- asyncIterable.isAsyncIterable = isAsyncIterable$2;
2617
- function isntAsyncIterable(val) {
2618
- return !isAsyncIterable$2(val);
2691
+ asyncIterable$2.isAsyncIterable = isAsyncIterable$4;
2692
+ function isntAsyncIterable$2(val) {
2693
+ return !isAsyncIterable$4(val);
2619
2694
  }
2620
- asyncIterable.isntAsyncIterable = isntAsyncIterable;
2695
+ asyncIterable$2.isntAsyncIterable = isntAsyncIterable$2;
2621
2696
 
2622
- var bigint = {};
2697
+ var bigint$2 = {};
2623
2698
 
2624
- bigint.isntBigInt = bigint.isBigInt = void 0;
2625
- function isBigInt(val) {
2699
+ bigint$2.isntBigInt = bigint$2.isBigInt = void 0;
2700
+ function isBigInt$2(val) {
2626
2701
  return typeof val === 'bigint';
2627
2702
  }
2628
- bigint.isBigInt = isBigInt;
2629
- function isntBigInt(val) {
2630
- return !isBigInt(val);
2703
+ bigint$2.isBigInt = isBigInt$2;
2704
+ function isntBigInt$2(val) {
2705
+ return !isBigInt$2(val);
2631
2706
  }
2632
- bigint.isntBigInt = isntBigInt;
2707
+ bigint$2.isntBigInt = isntBigInt$2;
2633
2708
 
2634
- var boolean = {};
2709
+ var boolean$2 = {};
2635
2710
 
2636
- boolean.isntBoolean = boolean.isBoolean = void 0;
2637
- function isBoolean(val) {
2711
+ boolean$2.isntBoolean = boolean$2.isBoolean = void 0;
2712
+ function isBoolean$2(val) {
2638
2713
  return typeof val === 'boolean';
2639
2714
  }
2640
- boolean.isBoolean = isBoolean;
2641
- function isntBoolean(val) {
2642
- return !isBoolean(val);
2715
+ boolean$2.isBoolean = isBoolean$2;
2716
+ function isntBoolean$2(val) {
2717
+ return !isBoolean$2(val);
2643
2718
  }
2644
- boolean.isntBoolean = isntBoolean;
2719
+ boolean$2.isntBoolean = isntBoolean$2;
2645
2720
 
2646
- var char = {};
2721
+ var char$2 = {};
2647
2722
 
2648
- var string = {};
2723
+ var string$2 = {};
2649
2724
 
2650
- string.isntString = string.isString = void 0;
2651
- function isString(val) {
2725
+ string$2.isntString = string$2.isString = void 0;
2726
+ function isString$2(val) {
2652
2727
  return typeof val === 'string';
2653
2728
  }
2654
- string.isString = isString;
2655
- function isntString(val) {
2656
- return !isString(val);
2729
+ string$2.isString = isString$2;
2730
+ function isntString$2(val) {
2731
+ return !isString$2(val);
2657
2732
  }
2658
- string.isntString = isntString;
2733
+ string$2.isntString = isntString$2;
2659
2734
 
2660
- char.isntChar = char.isChar = void 0;
2661
- const string_1$1 = string;
2662
- function isChar(val) {
2663
- return (0, string_1$1.isString)(val)
2735
+ char$2.isntChar = char$2.isChar = void 0;
2736
+ const string_1$5 = string$2;
2737
+ function isChar$2(val) {
2738
+ return (0, string_1$5.isString)(val)
2664
2739
  && val.length === 1;
2665
2740
  }
2666
- char.isChar = isChar;
2667
- function isntChar(val) {
2668
- return !isChar(val);
2741
+ char$2.isChar = isChar$2;
2742
+ function isntChar$2(val) {
2743
+ return !isChar$2(val);
2669
2744
  }
2670
- char.isntChar = isntChar;
2745
+ char$2.isntChar = isntChar$2;
2671
2746
 
2672
- var date = {};
2747
+ var date$2 = {};
2673
2748
 
2674
- date.isntDate = date.isDate = void 0;
2675
- function isDate$1(val) {
2749
+ date$2.isntDate = date$2.isDate = void 0;
2750
+ function isDate$3(val) {
2676
2751
  return val instanceof Date;
2677
2752
  }
2678
- date.isDate = isDate$1;
2679
- function isntDate(val) {
2680
- return !isDate$1(val);
2753
+ date$2.isDate = isDate$3;
2754
+ function isntDate$2(val) {
2755
+ return !isDate$3(val);
2681
2756
  }
2682
- date.isntDate = isntDate;
2757
+ date$2.isntDate = isntDate$2;
2683
2758
 
2684
- var _enum = {};
2759
+ var _enum$2 = {};
2685
2760
 
2686
- _enum.inEnum = void 0;
2687
- function inEnum(val, _enum) {
2761
+ _enum$2.inEnum = void 0;
2762
+ function inEnum$2(val, _enum) {
2688
2763
  return Object.values(_enum).includes(val);
2689
2764
  }
2690
- _enum.inEnum = inEnum;
2765
+ _enum$2.inEnum = inEnum$2;
2691
2766
 
2692
- var error = {};
2767
+ var error$2 = {};
2693
2768
 
2694
- error.isntError = error.isError = void 0;
2695
- function isError(val) {
2769
+ error$2.isntError = error$2.isError = void 0;
2770
+ function isError$2(val) {
2696
2771
  return val instanceof Error;
2697
2772
  }
2698
- error.isError = isError;
2699
- function isntError(val) {
2700
- return !isError(val);
2773
+ error$2.isError = isError$2;
2774
+ function isntError$2(val) {
2775
+ return !isError$2(val);
2701
2776
  }
2702
- error.isntError = isntError;
2777
+ error$2.isntError = isntError$2;
2703
2778
 
2704
- var falsy = {};
2779
+ var falsy$2 = {};
2705
2780
 
2706
- falsy.isntFalsy = falsy.isFalsy = void 0;
2707
- function isFalsy(val) {
2781
+ falsy$2.isntFalsy = falsy$2.isFalsy = void 0;
2782
+ function isFalsy$2(val) {
2708
2783
  return !val;
2709
2784
  }
2710
- falsy.isFalsy = isFalsy;
2711
- function isntFalsy(val) {
2712
- return !isFalsy(val);
2785
+ falsy$2.isFalsy = isFalsy$2;
2786
+ function isntFalsy$2(val) {
2787
+ return !isFalsy$2(val);
2713
2788
  }
2714
- falsy.isntFalsy = isntFalsy;
2789
+ falsy$2.isntFalsy = isntFalsy$2;
2715
2790
 
2716
- var iterable = {};
2791
+ var iterable$2 = {};
2717
2792
 
2718
- iterable.isntIterable = iterable.isIterable = void 0;
2719
- const null_1$1 = _null;
2720
- const undefined_1 = _undefined;
2721
- const function_1$1 = _function;
2722
- function isIterable$2(val) {
2723
- return (0, null_1$1.isntNull)(val)
2724
- && (0, undefined_1.isntUndefined)(val)
2725
- && (0, function_1$1.isFunction)(val[Symbol.iterator]);
2793
+ iterable$2.isntIterable = iterable$2.isIterable = void 0;
2794
+ const null_1$7 = _null$2;
2795
+ const undefined_1$4 = _undefined$2;
2796
+ const function_1$7 = _function$2;
2797
+ function isIterable$4(val) {
2798
+ return (0, null_1$7.isntNull)(val)
2799
+ && (0, undefined_1$4.isntUndefined)(val)
2800
+ && (0, function_1$7.isFunction)(val[Symbol.iterator]);
2726
2801
  }
2727
- iterable.isIterable = isIterable$2;
2728
- function isntIterable(val) {
2729
- return !isIterable$2(val);
2802
+ iterable$2.isIterable = isIterable$4;
2803
+ function isntIterable$2(val) {
2804
+ return !isIterable$4(val);
2730
2805
  }
2731
- iterable.isntIterable = isntIterable;
2806
+ iterable$2.isntIterable = isntIterable$2;
2732
2807
 
2733
- var json = {};
2808
+ var json$2 = {};
2734
2809
 
2735
- var number = {};
2810
+ var number$2 = {};
2736
2811
 
2737
- number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
2738
- function isNumber(val) {
2812
+ number$2.isntNaN = number$2.isNaN = number$2.isNegativeInfinity = number$2.isPositiveInfinity = number$2.isFinite = number$2.isntNumber = number$2.isNumber = void 0;
2813
+ function isNumber$2(val) {
2739
2814
  return typeof val === 'number';
2740
2815
  }
2741
- number.isNumber = isNumber;
2742
- function isntNumber(val) {
2743
- return !isNumber(val);
2816
+ number$2.isNumber = isNumber$2;
2817
+ function isntNumber$2(val) {
2818
+ return !isNumber$2(val);
2744
2819
  }
2745
- number.isntNumber = isntNumber;
2746
- function isFinite(val) {
2820
+ number$2.isntNumber = isntNumber$2;
2821
+ function isFinite$2(val) {
2747
2822
  return Number.isFinite(val);
2748
2823
  }
2749
- number.isFinite = isFinite;
2750
- function isPositiveInfinity(val) {
2824
+ number$2.isFinite = isFinite$2;
2825
+ function isPositiveInfinity$2(val) {
2751
2826
  return val === Infinity;
2752
2827
  }
2753
- number.isPositiveInfinity = isPositiveInfinity;
2754
- function isNegativeInfinity(val) {
2828
+ number$2.isPositiveInfinity = isPositiveInfinity$2;
2829
+ function isNegativeInfinity$2(val) {
2755
2830
  return val === -Infinity;
2756
2831
  }
2757
- number.isNegativeInfinity = isNegativeInfinity;
2758
- function isNaN$1(val) {
2832
+ number$2.isNegativeInfinity = isNegativeInfinity$2;
2833
+ function isNaN$3(val) {
2759
2834
  return Number.isNaN(val);
2760
2835
  }
2761
- number.isNaN = isNaN$1;
2762
- function isntNaN(val) {
2763
- return !isNaN$1(val);
2836
+ number$2.isNaN = isNaN$3;
2837
+ function isntNaN$2(val) {
2838
+ return !isNaN$3(val);
2764
2839
  }
2765
- number.isntNaN = isntNaN;
2840
+ number$2.isntNaN = isntNaN$2;
2766
2841
 
2767
- var object = {};
2842
+ var object$2 = {};
2768
2843
 
2769
2844
  /** Detect free variable `global` from Node.js. */
2770
2845
 
@@ -2992,7 +3067,7 @@ var objectCtorString = funcToString.call(Object);
2992
3067
  * _.isPlainObject(Object.create(null));
2993
3068
  * // => true
2994
3069
  */
2995
- function isPlainObject$1(value) {
3070
+ function isPlainObject$3(value) {
2996
3071
  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
2997
3072
  return false;
2998
3073
  }
@@ -3005,59 +3080,59 @@ function isPlainObject$1(value) {
3005
3080
  funcToString.call(Ctor) == objectCtorString;
3006
3081
  }
3007
3082
 
3008
- var isPlainObject_1$1 = isPlainObject$1;
3083
+ var isPlainObject_1$3 = isPlainObject$3;
3009
3084
 
3010
- var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
3085
+ var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
3011
3086
  return (mod && mod.__esModule) ? mod : { "default": mod };
3012
- };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
3013
- const isPlainObject_1 = __importDefault(isPlainObject_1$1);
3014
- function isObject(val) {
3087
+ };object$2.isntEmptyObject = object$2.isEmptyObject = object$2.isntPlainObject = object$2.isPlainObject = object$2.isntObject = object$2.isObject = void 0;
3088
+ const isPlainObject_1$2 = __importDefault$2(isPlainObject_1$3);
3089
+ function isObject$2(val) {
3015
3090
  return val !== null
3016
3091
  && typeof val === 'object';
3017
3092
  }
3018
- object.isObject = isObject;
3019
- function isntObject(val) {
3020
- return !isObject(val);
3093
+ object$2.isObject = isObject$2;
3094
+ function isntObject$2(val) {
3095
+ return !isObject$2(val);
3021
3096
  }
3022
- object.isntObject = isntObject;
3023
- function isPlainObject(val) {
3024
- return (0, isPlainObject_1.default)(val);
3097
+ object$2.isntObject = isntObject$2;
3098
+ function isPlainObject$2(val) {
3099
+ return (0, isPlainObject_1$2.default)(val);
3025
3100
  }
3026
- object.isPlainObject = isPlainObject;
3027
- function isntPlainObject(val) {
3028
- return !isPlainObject(val);
3101
+ object$2.isPlainObject = isPlainObject$2;
3102
+ function isntPlainObject$2(val) {
3103
+ return !isPlainObject$2(val);
3029
3104
  }
3030
- object.isntPlainObject = isntPlainObject;
3031
- function isEmptyObject(val) {
3105
+ object$2.isntPlainObject = isntPlainObject$2;
3106
+ function isEmptyObject$2(val) {
3032
3107
  return Object.keys(val).length === 0;
3033
3108
  }
3034
- object.isEmptyObject = isEmptyObject;
3035
- function isntEmptyObject(val) {
3109
+ object$2.isEmptyObject = isEmptyObject$2;
3110
+ function isntEmptyObject$2(val) {
3036
3111
  return Object.keys(val).length !== 0;
3037
3112
  }
3038
- object.isntEmptyObject = isntEmptyObject;
3039
-
3040
- json.isntJsonable = json.isJsonable = json.isntJson = json.isJson = void 0;
3041
- const null_1 = _null;
3042
- const boolean_1 = boolean;
3043
- const string_1 = string;
3044
- const number_1 = number;
3045
- const array_1 = array;
3046
- const object_1$1 = object;
3047
- function isJson(val) {
3048
- return (0, null_1.isNull)(val)
3049
- || (0, boolean_1.isBoolean)(val)
3050
- || (0, string_1.isString)(val)
3051
- || (0, number_1.isNumber)(val)
3052
- || ((0, array_1.isArray)(val) && val.every(isJson))
3053
- || ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
3054
- }
3055
- json.isJson = isJson;
3056
- function isntJson(val) {
3057
- return !isJson(val);
3058
- }
3059
- json.isntJson = isntJson;
3060
- function isJsonable(val) {
3113
+ object$2.isntEmptyObject = isntEmptyObject$2;
3114
+
3115
+ json$2.isntJsonable = json$2.isJsonable = json$2.isntJson = json$2.isJson = void 0;
3116
+ const null_1$6 = _null$2;
3117
+ const boolean_1$2 = boolean$2;
3118
+ const string_1$4 = string$2;
3119
+ const number_1$2 = number$2;
3120
+ const array_1$2 = array$2;
3121
+ const object_1$5 = object$2;
3122
+ function isJson$2(val) {
3123
+ return (0, null_1$6.isNull)(val)
3124
+ || (0, boolean_1$2.isBoolean)(val)
3125
+ || (0, string_1$4.isString)(val)
3126
+ || (0, number_1$2.isNumber)(val)
3127
+ || ((0, array_1$2.isArray)(val) && val.every(isJson$2))
3128
+ || ((0, object_1$5.isPlainObject)(val) && Object.values(val).every(isJson$2));
3129
+ }
3130
+ json$2.isJson = isJson$2;
3131
+ function isntJson$2(val) {
3132
+ return !isJson$2(val);
3133
+ }
3134
+ json$2.isntJson = isntJson$2;
3135
+ function isJsonable$2(val) {
3061
3136
  try {
3062
3137
  JSON.stringify(val);
3063
3138
  return true;
@@ -3066,39 +3141,39 @@ function isJsonable(val) {
3066
3141
  return false;
3067
3142
  }
3068
3143
  }
3069
- json.isJsonable = isJsonable;
3070
- function isntJsonable(val) {
3071
- return !isntJsonable();
3144
+ json$2.isJsonable = isJsonable$2;
3145
+ function isntJsonable$2(val) {
3146
+ return !isntJsonable$2();
3072
3147
  }
3073
- json.isntJsonable = isntJsonable;
3148
+ json$2.isntJsonable = isntJsonable$2;
3074
3149
 
3075
- var promise = {};
3150
+ var promise$2 = {};
3076
3151
 
3077
- promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
3078
- const object_1 = object;
3079
- const function_1 = _function;
3080
- function isPromise$2(val) {
3152
+ promise$2.isPromiseLike = promise$2.isntPromiseLike = promise$2.isntPromise = promise$2.isPromise = void 0;
3153
+ const object_1$4 = object$2;
3154
+ const function_1$6 = _function$2;
3155
+ function isPromise$4(val) {
3081
3156
  return val instanceof Promise;
3082
3157
  }
3083
- promise.isPromise = isPromise$2;
3084
- function isntPromise(val) {
3085
- return !isPromise$2(val);
3158
+ promise$2.isPromise = isPromise$4;
3159
+ function isntPromise$2(val) {
3160
+ return !isPromise$4(val);
3086
3161
  }
3087
- promise.isntPromise = isntPromise;
3088
- function isntPromiseLike(val) {
3089
- return !isPromiseLike(val);
3162
+ promise$2.isntPromise = isntPromise$2;
3163
+ function isntPromiseLike$2(val) {
3164
+ return !isPromiseLike$2(val);
3090
3165
  }
3091
- promise.isntPromiseLike = isntPromiseLike;
3092
- function isPromiseLike(val) {
3093
- return (0, object_1.isObject)(val)
3094
- && (0, function_1.isFunction)(val.then);
3166
+ promise$2.isntPromiseLike = isntPromiseLike$2;
3167
+ function isPromiseLike$2(val) {
3168
+ return (0, object_1$4.isObject)(val)
3169
+ && (0, function_1$6.isFunction)(val.then);
3095
3170
  }
3096
- promise.isPromiseLike = isPromiseLike;
3171
+ promise$2.isPromiseLike = isPromiseLike$2;
3097
3172
 
3098
- var url = {};
3173
+ var url$2 = {};
3099
3174
 
3100
- url.isAbsoluteURL = void 0;
3101
- function isAbsoluteURL(str) {
3175
+ url$2.isAbsoluteURL = void 0;
3176
+ function isAbsoluteURL$2(str) {
3102
3177
  try {
3103
3178
  new URL(str);
3104
3179
  return true;
@@ -3107,7 +3182,7 @@ function isAbsoluteURL(str) {
3107
3182
  return false;
3108
3183
  }
3109
3184
  }
3110
- url.isAbsoluteURL = isAbsoluteURL;
3185
+ url$2.isAbsoluteURL = isAbsoluteURL$2;
3111
3186
 
3112
3187
  (function (exports) {
3113
3188
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -3123,95 +3198,30 @@ url.isAbsoluteURL = isAbsoluteURL;
3123
3198
  }));
3124
3199
  var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3125
3200
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3126
- };__exportStar(array, exports);
3127
- __exportStar(asyncIterable, exports);
3128
- __exportStar(bigint, exports);
3129
- __exportStar(boolean, exports);
3130
- __exportStar(char, exports);
3131
- __exportStar(date, exports);
3132
- __exportStar(_enum, exports);
3133
- __exportStar(error, exports);
3134
- __exportStar(falsy, exports);
3135
- __exportStar(_function, exports);
3136
- __exportStar(iterable, exports);
3137
- __exportStar(json, exports);
3138
- __exportStar(_null, exports);
3139
- __exportStar(number, exports);
3140
- __exportStar(object, exports);
3141
- __exportStar(promise, exports);
3142
- __exportStar(string, exports);
3143
- __exportStar(_undefined, exports);
3144
- __exportStar(url, exports);
3145
-
3146
- } (es2018$7));
3147
-
3148
- var es2018$6 = {};
3149
-
3150
- var customError = {};
3151
-
3152
- var es2018$5 = {};
3153
-
3154
- var middleware = {};
3155
-
3156
- var chunkAsync = {};
3157
-
3158
- var es2018$4 = {};
3159
-
3160
- var go$1 = {};
3161
-
3162
- go$1.go = void 0;
3163
- function go(fn) {
3164
- return fn();
3165
- }
3166
- go$1.go = go;
3167
-
3168
- (function (exports) {
3169
- var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3170
- if (k2 === undefined) k2 = k;
3171
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
3172
- }) : (function(o, m, k, k2) {
3173
- if (k2 === undefined) k2 = k;
3174
- o[k2] = m[k];
3175
- }));
3176
- var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
3177
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3178
- };__exportStar(go$1, exports);
3179
-
3180
- } (es2018$4));
3181
-
3182
- var hasRequiredChunkAsync;
3183
-
3184
- function requireChunkAsync () {
3185
- if (hasRequiredChunkAsync) return chunkAsync;
3186
- hasRequiredChunkAsync = 1;
3187
- chunkAsync.chunkAsync = void 0;
3188
- const go_1 = es2018$4;
3189
- const errors_1 = requireEs2018();
3190
- function chunkAsync$1(iterable, size) {
3191
- (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
3192
- (0, errors_1.assert)(size > 0, 'The parameter size must be greater than 0');
3193
- return (0, go_1.go)(async function* () {
3194
- let buffer = [];
3195
- for await (const element of iterable) {
3196
- buffer.push(element);
3197
- if (buffer.length >= size) {
3198
- yield buffer;
3199
- buffer = [];
3200
- }
3201
- }
3202
- if (buffer.length)
3203
- yield buffer;
3204
- });
3205
- }
3206
- chunkAsync.chunkAsync = chunkAsync$1;
3201
+ };__exportStar(array$2, exports);
3202
+ __exportStar(asyncIterable$2, exports);
3203
+ __exportStar(bigint$2, exports);
3204
+ __exportStar(boolean$2, exports);
3205
+ __exportStar(char$2, exports);
3206
+ __exportStar(date$2, exports);
3207
+ __exportStar(_enum$2, exports);
3208
+ __exportStar(error$2, exports);
3209
+ __exportStar(falsy$2, exports);
3210
+ __exportStar(_function$2, exports);
3211
+ __exportStar(iterable$2, exports);
3212
+ __exportStar(json$2, exports);
3213
+ __exportStar(_null$2, exports);
3214
+ __exportStar(number$2, exports);
3215
+ __exportStar(object$2, exports);
3216
+ __exportStar(promise$2, exports);
3217
+ __exportStar(string$2, exports);
3218
+ __exportStar(_undefined$2, exports);
3219
+ __exportStar(url$2, exports);
3207
3220
 
3208
- return chunkAsync;
3209
- }
3210
-
3211
- var chunkByAsync$1 = {};
3221
+ } (es2018$6));
3212
3222
 
3213
3223
  chunkByAsync$1.chunkByAsync = void 0;
3214
- const types_1$j = es2018$7;
3224
+ const types_1$j = es2018$6;
3215
3225
  function chunkByAsync(iterable, predicate) {
3216
3226
  if ((0, types_1$j.isAsyncIterable)(iterable)) {
3217
3227
  return chunkByAsyncIterable(iterable);
@@ -3277,7 +3287,7 @@ function requireChunk () {
3277
3287
  if (hasRequiredChunk) return chunk;
3278
3288
  hasRequiredChunk = 1;
3279
3289
  chunk.chunk = void 0;
3280
- const go_1 = es2018$4;
3290
+ const go_1 = es2018$7;
3281
3291
  const errors_1 = requireEs2018();
3282
3292
  function chunk$1(iterable, size) {
3283
3293
  (0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
@@ -3303,8 +3313,8 @@ chunk.chunk = void 0;
3303
3313
  var concatAsync$1 = {};
3304
3314
 
3305
3315
  concatAsync$1.concatAsync = void 0;
3306
- const types_1$i = es2018$7;
3307
- const go_1$1 = es2018$4;
3316
+ const types_1$i = es2018$6;
3317
+ const go_1$1 = es2018$7;
3308
3318
  function concatAsync(iterable, ...otherIterables) {
3309
3319
  return (0, go_1$1.go)(async function* () {
3310
3320
  for (const iter of [iterable, ...otherIterables]) {
@@ -3326,7 +3336,7 @@ concatAsync$1.concatAsync = concatAsync;
3326
3336
  var concat$5 = {};
3327
3337
 
3328
3338
  concat$5.concat = void 0;
3329
- const go_1 = es2018$4;
3339
+ const go_1 = es2018$7;
3330
3340
  function concat$4(iterable, ...otherIterables) {
3331
3341
  return (0, go_1.go)(function* () {
3332
3342
  for (const iter of [iterable, ...otherIterables]) {
@@ -3360,7 +3370,7 @@ function requireDropAsync () {
3360
3370
  if (hasRequiredDropAsync) return dropAsync;
3361
3371
  hasRequiredDropAsync = 1;
3362
3372
  dropAsync.dropAsync = void 0;
3363
- const go_1 = es2018$4;
3373
+ const go_1 = es2018$7;
3364
3374
  const utils_1 = utils;
3365
3375
  const errors_1 = requireEs2018();
3366
3376
  function dropAsync$1(iterable, count) {
@@ -3403,7 +3413,7 @@ function requireDropRightAsync () {
3403
3413
  if (hasRequiredDropRightAsync) return dropRightAsync;
3404
3414
  hasRequiredDropRightAsync = 1;
3405
3415
  dropRightAsync.dropRightAsync = void 0;
3406
- const go_1 = es2018$4;
3416
+ const go_1 = es2018$7;
3407
3417
  const utils_1 = utils;
3408
3418
  const errors_1 = requireEs2018();
3409
3419
  function dropRightAsync$1(iterable, count) {
@@ -3439,7 +3449,7 @@ function requireDropRight () {
3439
3449
  if (hasRequiredDropRight) return dropRight;
3440
3450
  hasRequiredDropRight = 1;
3441
3451
  dropRight.dropRight = void 0;
3442
- const go_1 = es2018$4;
3452
+ const go_1 = es2018$7;
3443
3453
  const utils_1 = utils;
3444
3454
  const errors_1 = requireEs2018();
3445
3455
  function dropRight$1(iterable, count) {
@@ -3460,7 +3470,7 @@ dropRight.dropRight = void 0;
3460
3470
  var dropUntilAsync$1 = {};
3461
3471
 
3462
3472
  dropUntilAsync$1.dropUntilAsync = void 0;
3463
- const types_1$h = es2018$7;
3473
+ const types_1$h = es2018$6;
3464
3474
  function dropUntilAsync(iterable, predicate) {
3465
3475
  if ((0, types_1$h.isAsyncIterable)(iterable)) {
3466
3476
  return dropUntilAsyncIterable(iterable);
@@ -3547,7 +3557,7 @@ function requireDrop () {
3547
3557
  if (hasRequiredDrop) return drop;
3548
3558
  hasRequiredDrop = 1;
3549
3559
  drop.drop = void 0;
3550
- const go_1 = es2018$4;
3560
+ const go_1 = es2018$7;
3551
3561
  const utils_1 = utils;
3552
3562
  const errors_1 = requireEs2018();
3553
3563
  function drop$1(iterable, count) {
@@ -3585,7 +3595,7 @@ drop.drop = void 0;
3585
3595
  var filterAsync$1 = {};
3586
3596
 
3587
3597
  filterAsync$1.filterAsync = void 0;
3588
- const types_1$g = es2018$7;
3598
+ const types_1$g = es2018$6;
3589
3599
  function filterAsync(iterable, predicate) {
3590
3600
  if ((0, types_1$g.isAsyncIterable)(iterable)) {
3591
3601
  return filterAsyncIterable(iterable);
@@ -3632,7 +3642,7 @@ var flattenDeepAsync = {};
3632
3642
  var flattenByAsync$1 = {};
3633
3643
 
3634
3644
  flattenByAsync$1.flattenByAsync = void 0;
3635
- const types_1$f = es2018$7;
3645
+ const types_1$f = es2018$6;
3636
3646
  function flattenByAsync(iterable, predicate) {
3637
3647
  if ((0, types_1$f.isAsyncIterable)(iterable)) {
3638
3648
  return flattenByAsyncIterable(iterable);
@@ -3706,7 +3716,7 @@ flattenAsync.flattenAsync = void 0;
3706
3716
  var flattenBy$1 = {};
3707
3717
 
3708
3718
  flattenBy$1.flattenBy = void 0;
3709
- const types_1$e = es2018$7;
3719
+ const types_1$e = es2018$6;
3710
3720
  function flattenBy(iterable, predicate) {
3711
3721
  return flatten(iterable, 1);
3712
3722
  function* flatten(iterable, level) {
@@ -3765,7 +3775,7 @@ flatten.flatten = void 0;
3765
3775
  var mapAsync$1 = {};
3766
3776
 
3767
3777
  mapAsync$1.mapAsync = void 0;
3768
- const types_1$d = es2018$7;
3778
+ const types_1$d = es2018$6;
3769
3779
  function mapAsync(iterable, fn) {
3770
3780
  if ((0, types_1$d.isAsyncIterable)(iterable)) {
3771
3781
  return mapAsyncIterable(iterable);
@@ -3810,7 +3820,7 @@ function requireRepeatAsync () {
3810
3820
  if (hasRequiredRepeatAsync) return repeatAsync;
3811
3821
  hasRequiredRepeatAsync = 1;
3812
3822
  repeatAsync.repeatAsync = void 0;
3813
- const go_1 = es2018$4;
3823
+ const go_1 = es2018$7;
3814
3824
  const errors_1 = requireEs2018();
3815
3825
  function repeatAsync$1(iterable, times) {
3816
3826
  (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
@@ -3853,7 +3863,7 @@ function requireRepeat () {
3853
3863
  if (hasRequiredRepeat) return repeat$2;
3854
3864
  hasRequiredRepeat = 1;
3855
3865
  repeat$2.repeat = void 0;
3856
- const go_1 = es2018$4;
3866
+ const go_1 = es2018$7;
3857
3867
  const errors_1 = requireEs2018();
3858
3868
  function repeat(iterable, times) {
3859
3869
  (0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
@@ -3896,7 +3906,7 @@ function requireSliceAsync () {
3896
3906
  if (hasRequiredSliceAsync) return sliceAsync;
3897
3907
  hasRequiredSliceAsync = 1;
3898
3908
  sliceAsync.sliceAsync = void 0;
3899
- const go_1 = es2018$4;
3909
+ const go_1 = es2018$7;
3900
3910
  const errors_1 = requireEs2018();
3901
3911
  function sliceAsync$1(iterable, start, end = Infinity) {
3902
3912
  (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
@@ -3927,7 +3937,7 @@ function requireSlice () {
3927
3937
  if (hasRequiredSlice) return slice;
3928
3938
  hasRequiredSlice = 1;
3929
3939
  slice.slice = void 0;
3930
- const go_1 = es2018$4;
3940
+ const go_1 = es2018$7;
3931
3941
  const errors_1 = requireEs2018();
3932
3942
  function slice$1(iterable, start, end = Infinity) {
3933
3943
  (0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
@@ -3971,7 +3981,7 @@ splitAsync$1.splitAsync = splitAsync;
3971
3981
  var splitByAsync$1 = {};
3972
3982
 
3973
3983
  splitByAsync$1.splitByAsync = void 0;
3974
- const types_1$c = es2018$7;
3984
+ const types_1$c = es2018$6;
3975
3985
  function splitByAsync(iterable, predicate) {
3976
3986
  if ((0, types_1$c.isAsyncIterable)(iterable)) {
3977
3987
  return splitByAsyncIterable(iterable);
@@ -4058,7 +4068,7 @@ function requireTakeAsync () {
4058
4068
  if (hasRequiredTakeAsync) return takeAsync;
4059
4069
  hasRequiredTakeAsync = 1;
4060
4070
  takeAsync.takeAsync = void 0;
4061
- const go_1 = es2018$4;
4071
+ const go_1 = es2018$7;
4062
4072
  const errors_1 = requireEs2018();
4063
4073
  function takeAsync$1(iterable, count) {
4064
4074
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4087,7 +4097,7 @@ function requireTakeRightAsync () {
4087
4097
  if (hasRequiredTakeRightAsync) return takeRightAsync;
4088
4098
  hasRequiredTakeRightAsync = 1;
4089
4099
  takeRightAsync.takeRightAsync = void 0;
4090
- const go_1 = es2018$4;
4100
+ const go_1 = es2018$7;
4091
4101
  const errors_1 = requireEs2018();
4092
4102
  function takeRightAsync$1(iterable, count) {
4093
4103
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4125,7 +4135,7 @@ function requireTakeRight () {
4125
4135
  if (hasRequiredTakeRight) return takeRight;
4126
4136
  hasRequiredTakeRight = 1;
4127
4137
  takeRight.takeRight = void 0;
4128
- const go_1 = es2018$4;
4138
+ const go_1 = es2018$7;
4129
4139
  const errors_1 = requireEs2018();
4130
4140
  function takeRight$1(iterable, count) {
4131
4141
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4158,7 +4168,7 @@ takeRight.takeRight = void 0;
4158
4168
  var takeUntilAsync$1 = {};
4159
4169
 
4160
4170
  takeUntilAsync$1.takeUntilAsync = void 0;
4161
- const types_1$b = es2018$7;
4171
+ const types_1$b = es2018$6;
4162
4172
  function takeUntilAsync(iterable, predicate) {
4163
4173
  if ((0, types_1$b.isAsyncIterable)(iterable)) {
4164
4174
  return takeUntilAsyncIterable(iterable);
@@ -4209,7 +4219,7 @@ function requireTake () {
4209
4219
  if (hasRequiredTake) return take$2;
4210
4220
  hasRequiredTake = 1;
4211
4221
  take$2.take = void 0;
4212
- const go_1 = es2018$4;
4222
+ const go_1 = es2018$7;
4213
4223
  const errors_1 = requireEs2018();
4214
4224
  function take(iterable, count) {
4215
4225
  (0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
@@ -4233,7 +4243,7 @@ take$2.take = void 0;
4233
4243
  var tapAsync$1 = {};
4234
4244
 
4235
4245
  tapAsync$1.tapAsync = void 0;
4236
- const types_1$a = es2018$7;
4246
+ const types_1$a = es2018$6;
4237
4247
  function tapAsync(iterable, fn) {
4238
4248
  if ((0, types_1$a.isAsyncIterable)(iterable)) {
4239
4249
  return tapAsyncIterable(iterable);
@@ -4316,7 +4326,7 @@ uniqAsync$1.uniqAsync = uniqAsync;
4316
4326
  var uniqByAsync$1 = {};
4317
4327
 
4318
4328
  uniqByAsync$1.uniqByAsync = void 0;
4319
- const types_1$9 = es2018$7;
4329
+ const types_1$9 = es2018$6;
4320
4330
  function uniqByAsync(iterable, fn) {
4321
4331
  if ((0, types_1$9.isAsyncIterable)(iterable)) {
4322
4332
  return uniqByAsyncIterable(iterable);
@@ -4385,7 +4395,7 @@ uniq$1.uniq = uniq;
4385
4395
  var zipAsync$1 = {};
4386
4396
 
4387
4397
  zipAsync$1.zipAsync = void 0;
4388
- const types_1$8 = es2018$7;
4398
+ const types_1$8 = es2018$6;
4389
4399
  var Kind;
4390
4400
  (function (Kind) {
4391
4401
  Kind[Kind["Sync"] = 0] = "Sync";
@@ -4556,7 +4566,7 @@ consume$1.consume = consume;
4556
4566
  var eachAsync$1 = {};
4557
4567
 
4558
4568
  eachAsync$1.eachAsync = void 0;
4559
- const types_1$7 = es2018$7;
4569
+ const types_1$7 = es2018$6;
4560
4570
  function eachAsync(iterable, fn) {
4561
4571
  if ((0, types_1$7.isAsyncIterable)(iterable)) {
4562
4572
  return eachAsyncIterable(iterable);
@@ -4596,7 +4606,7 @@ each$1.each = each;
4596
4606
  var everyAsync$1 = {};
4597
4607
 
4598
4608
  everyAsync$1.everyAsync = void 0;
4599
- const types_1$6 = es2018$7;
4609
+ const types_1$6 = es2018$6;
4600
4610
  function everyAsync(iterable, predicate) {
4601
4611
  if ((0, types_1$6.isAsyncIterable)(iterable)) {
4602
4612
  return everyAsyncIterable(iterable);
@@ -4642,7 +4652,7 @@ every$3.every = every$2;
4642
4652
  var findAsync$1 = {};
4643
4653
 
4644
4654
  findAsync$1.findAsync = void 0;
4645
- const types_1$5 = es2018$7;
4655
+ const types_1$5 = es2018$6;
4646
4656
  function findAsync(iterable, predicate) {
4647
4657
  if ((0, types_1$5.isAsyncIterable)(iterable)) {
4648
4658
  return findAsyncIterable(iterable);
@@ -4766,7 +4776,7 @@ match$1.match = match;
4766
4776
  var reduceAsync$1 = {};
4767
4777
 
4768
4778
  reduceAsync$1.reduceAsync = void 0;
4769
- const types_1$4 = es2018$7;
4779
+ const types_1$4 = es2018$6;
4770
4780
  function reduceAsync(iterable, fn, initialValue) {
4771
4781
  if ((0, types_1$4.isUndefined)(initialValue)) {
4772
4782
  return reduceAsyncWithoutInitialValue(iterable, fn);
@@ -4862,7 +4872,7 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
4862
4872
  var reduce$3 = {};
4863
4873
 
4864
4874
  reduce$3.reduce = void 0;
4865
- const types_1$3 = es2018$7;
4875
+ const types_1$3 = es2018$6;
4866
4876
  function reduce$2(iterable, fn, initialValue) {
4867
4877
  if ((0, types_1$3.isUndefined)(initialValue)) {
4868
4878
  return reduceWithoutInitialValue(iterable, fn);
@@ -4909,7 +4919,7 @@ function reduceWithoutInitialValue(iterable, fn) {
4909
4919
  var someAsync$1 = {};
4910
4920
 
4911
4921
  someAsync$1.someAsync = void 0;
4912
- const types_1$2 = es2018$7;
4922
+ const types_1$2 = es2018$6;
4913
4923
  function someAsync(iterable, predicate) {
4914
4924
  if ((0, types_1$2.isAsyncIterable)(iterable)) {
4915
4925
  return someAsyncIterable(iterable);
@@ -5113,7 +5123,7 @@ countAsync$1.countAsync = countAsync;
5113
5123
  var hasRequiredEs2018$1;
5114
5124
 
5115
5125
  function requireEs2018$1 () {
5116
- if (hasRequiredEs2018$1) return es2018$5;
5126
+ if (hasRequiredEs2018$1) return es2018$8;
5117
5127
  hasRequiredEs2018$1 = 1;
5118
5128
  (function (exports) {
5119
5129
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -5132,12 +5142,385 @@ function requireEs2018$1 () {
5132
5142
  };__exportStar(requireMiddleware(), exports);
5133
5143
  __exportStar(output, exports);
5134
5144
 
5135
- } (es2018$5));
5136
- return es2018$5;
5145
+ } (es2018$8));
5146
+ return es2018$8;
5137
5147
  }
5138
5148
 
5139
5149
  var getErrorNames$1 = {};
5140
5150
 
5151
+ var es2018$5 = {};
5152
+
5153
+ var array$1 = {};
5154
+
5155
+ array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
5156
+ function isArray$4(val) {
5157
+ return Array.isArray(val);
5158
+ }
5159
+ array$1.isArray = isArray$4;
5160
+ function isntArray$1(val) {
5161
+ return !isArray$4(val);
5162
+ }
5163
+ array$1.isntArray = isntArray$1;
5164
+ function isEmptyArray$1(val) {
5165
+ return val.length === 0;
5166
+ }
5167
+ array$1.isEmptyArray = isEmptyArray$1;
5168
+ function isntEmptyArray$1(val) {
5169
+ return val.length !== 0;
5170
+ }
5171
+ array$1.isntEmptyArray = isntEmptyArray$1;
5172
+
5173
+ var asyncIterable$1 = {};
5174
+
5175
+ var _null$1 = {};
5176
+
5177
+ _null$1.isntNull = _null$1.isNull = void 0;
5178
+ function isNull$1(val) {
5179
+ return val === null;
5180
+ }
5181
+ _null$1.isNull = isNull$1;
5182
+ function isntNull$1(val) {
5183
+ return !isNull$1(val);
5184
+ }
5185
+ _null$1.isntNull = isntNull$1;
5186
+
5187
+ var _undefined$1 = {};
5188
+
5189
+ _undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
5190
+ function isUndefined$1(val) {
5191
+ return val === undefined;
5192
+ }
5193
+ _undefined$1.isUndefined = isUndefined$1;
5194
+ function isntUndefined$1(val) {
5195
+ return !isUndefined$1(val);
5196
+ }
5197
+ _undefined$1.isntUndefined = isntUndefined$1;
5198
+
5199
+ var _function$1 = {};
5200
+
5201
+ _function$1.isntFunction = _function$1.isFunction = void 0;
5202
+ function isFunction$3(val) {
5203
+ return typeof val === 'function';
5204
+ }
5205
+ _function$1.isFunction = isFunction$3;
5206
+ function isntFunction$1(val) {
5207
+ return !isFunction$3(val);
5208
+ }
5209
+ _function$1.isntFunction = isntFunction$1;
5210
+
5211
+ asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
5212
+ const null_1$5 = _null$1;
5213
+ const undefined_1$3 = _undefined$1;
5214
+ const function_1$5 = _function$1;
5215
+ function isAsyncIterable$3(val) {
5216
+ return (0, null_1$5.isntNull)(val)
5217
+ && (0, undefined_1$3.isntUndefined)(val)
5218
+ && (0, function_1$5.isFunction)(val[Symbol.asyncIterator]);
5219
+ }
5220
+ asyncIterable$1.isAsyncIterable = isAsyncIterable$3;
5221
+ function isntAsyncIterable$1(val) {
5222
+ return !isAsyncIterable$3(val);
5223
+ }
5224
+ asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
5225
+
5226
+ var bigint$1 = {};
5227
+
5228
+ bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
5229
+ function isBigInt$1(val) {
5230
+ return typeof val === 'bigint';
5231
+ }
5232
+ bigint$1.isBigInt = isBigInt$1;
5233
+ function isntBigInt$1(val) {
5234
+ return !isBigInt$1(val);
5235
+ }
5236
+ bigint$1.isntBigInt = isntBigInt$1;
5237
+
5238
+ var boolean$1 = {};
5239
+
5240
+ boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
5241
+ function isBoolean$1(val) {
5242
+ return typeof val === 'boolean';
5243
+ }
5244
+ boolean$1.isBoolean = isBoolean$1;
5245
+ function isntBoolean$1(val) {
5246
+ return !isBoolean$1(val);
5247
+ }
5248
+ boolean$1.isntBoolean = isntBoolean$1;
5249
+
5250
+ var char$1 = {};
5251
+
5252
+ var string$1 = {};
5253
+
5254
+ string$1.isntString = string$1.isString = void 0;
5255
+ function isString$1(val) {
5256
+ return typeof val === 'string';
5257
+ }
5258
+ string$1.isString = isString$1;
5259
+ function isntString$1(val) {
5260
+ return !isString$1(val);
5261
+ }
5262
+ string$1.isntString = isntString$1;
5263
+
5264
+ char$1.isntChar = char$1.isChar = void 0;
5265
+ const string_1$3 = string$1;
5266
+ function isChar$1(val) {
5267
+ return (0, string_1$3.isString)(val)
5268
+ && val.length === 1;
5269
+ }
5270
+ char$1.isChar = isChar$1;
5271
+ function isntChar$1(val) {
5272
+ return !isChar$1(val);
5273
+ }
5274
+ char$1.isntChar = isntChar$1;
5275
+
5276
+ var date$1 = {};
5277
+
5278
+ date$1.isntDate = date$1.isDate = void 0;
5279
+ function isDate$2(val) {
5280
+ return val instanceof Date;
5281
+ }
5282
+ date$1.isDate = isDate$2;
5283
+ function isntDate$1(val) {
5284
+ return !isDate$2(val);
5285
+ }
5286
+ date$1.isntDate = isntDate$1;
5287
+
5288
+ var _enum$1 = {};
5289
+
5290
+ _enum$1.inEnum = void 0;
5291
+ function inEnum$1(val, _enum) {
5292
+ return Object.values(_enum).includes(val);
5293
+ }
5294
+ _enum$1.inEnum = inEnum$1;
5295
+
5296
+ var error$1 = {};
5297
+
5298
+ error$1.isntError = error$1.isError = void 0;
5299
+ function isError$1(val) {
5300
+ return val instanceof Error;
5301
+ }
5302
+ error$1.isError = isError$1;
5303
+ function isntError$1(val) {
5304
+ return !isError$1(val);
5305
+ }
5306
+ error$1.isntError = isntError$1;
5307
+
5308
+ var falsy$1 = {};
5309
+
5310
+ falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
5311
+ function isFalsy$1(val) {
5312
+ return !val;
5313
+ }
5314
+ falsy$1.isFalsy = isFalsy$1;
5315
+ function isntFalsy$1(val) {
5316
+ return !isFalsy$1(val);
5317
+ }
5318
+ falsy$1.isntFalsy = isntFalsy$1;
5319
+
5320
+ var iterable$1 = {};
5321
+
5322
+ iterable$1.isntIterable = iterable$1.isIterable = void 0;
5323
+ const null_1$4 = _null$1;
5324
+ const undefined_1$2 = _undefined$1;
5325
+ const function_1$4 = _function$1;
5326
+ function isIterable$3(val) {
5327
+ return (0, null_1$4.isntNull)(val)
5328
+ && (0, undefined_1$2.isntUndefined)(val)
5329
+ && (0, function_1$4.isFunction)(val[Symbol.iterator]);
5330
+ }
5331
+ iterable$1.isIterable = isIterable$3;
5332
+ function isntIterable$1(val) {
5333
+ return !isIterable$3(val);
5334
+ }
5335
+ iterable$1.isntIterable = isntIterable$1;
5336
+
5337
+ var json$1 = {};
5338
+
5339
+ var number$1 = {};
5340
+
5341
+ number$1.isntNaN = number$1.isNaN = number$1.isNegativeInfinity = number$1.isPositiveInfinity = number$1.isFinite = number$1.isntNumber = number$1.isNumber = void 0;
5342
+ function isNumber$1(val) {
5343
+ return typeof val === 'number';
5344
+ }
5345
+ number$1.isNumber = isNumber$1;
5346
+ function isntNumber$1(val) {
5347
+ return !isNumber$1(val);
5348
+ }
5349
+ number$1.isntNumber = isntNumber$1;
5350
+ function isFinite$1(val) {
5351
+ return Number.isFinite(val);
5352
+ }
5353
+ number$1.isFinite = isFinite$1;
5354
+ function isPositiveInfinity$1(val) {
5355
+ return val === Infinity;
5356
+ }
5357
+ number$1.isPositiveInfinity = isPositiveInfinity$1;
5358
+ function isNegativeInfinity$1(val) {
5359
+ return val === -Infinity;
5360
+ }
5361
+ number$1.isNegativeInfinity = isNegativeInfinity$1;
5362
+ function isNaN$2(val) {
5363
+ return Number.isNaN(val);
5364
+ }
5365
+ number$1.isNaN = isNaN$2;
5366
+ function isntNaN$1(val) {
5367
+ return !isNaN$2(val);
5368
+ }
5369
+ number$1.isntNaN = isntNaN$1;
5370
+
5371
+ var object$1 = {};
5372
+
5373
+ var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
5374
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5375
+ };object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
5376
+ const isPlainObject_1$1 = __importDefault$1(isPlainObject_1$3);
5377
+ function isObject$1(val) {
5378
+ return val !== null
5379
+ && typeof val === 'object';
5380
+ }
5381
+ object$1.isObject = isObject$1;
5382
+ function isntObject$1(val) {
5383
+ return !isObject$1(val);
5384
+ }
5385
+ object$1.isntObject = isntObject$1;
5386
+ function isPlainObject$1(val) {
5387
+ return (0, isPlainObject_1$1.default)(val);
5388
+ }
5389
+ object$1.isPlainObject = isPlainObject$1;
5390
+ function isntPlainObject$1(val) {
5391
+ return !isPlainObject$1(val);
5392
+ }
5393
+ object$1.isntPlainObject = isntPlainObject$1;
5394
+ function isEmptyObject$1(val) {
5395
+ return Object.keys(val).length === 0;
5396
+ }
5397
+ object$1.isEmptyObject = isEmptyObject$1;
5398
+ function isntEmptyObject$1(val) {
5399
+ return Object.keys(val).length !== 0;
5400
+ }
5401
+ object$1.isntEmptyObject = isntEmptyObject$1;
5402
+
5403
+ json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
5404
+ const null_1$3 = _null$1;
5405
+ const boolean_1$1 = boolean$1;
5406
+ const string_1$2 = string$1;
5407
+ const number_1$1 = number$1;
5408
+ const array_1$1 = array$1;
5409
+ const object_1$3 = object$1;
5410
+ function isJson$1(val) {
5411
+ return (0, null_1$3.isNull)(val)
5412
+ || (0, boolean_1$1.isBoolean)(val)
5413
+ || (0, string_1$2.isString)(val)
5414
+ || (0, number_1$1.isNumber)(val)
5415
+ || ((0, array_1$1.isArray)(val) && val.every(isJson$1))
5416
+ || ((0, object_1$3.isPlainObject)(val) && Object.values(val).every(isJson$1));
5417
+ }
5418
+ json$1.isJson = isJson$1;
5419
+ function isntJson$1(val) {
5420
+ return !isJson$1(val);
5421
+ }
5422
+ json$1.isntJson = isntJson$1;
5423
+ function isJsonable$1(val) {
5424
+ try {
5425
+ JSON.stringify(val);
5426
+ return true;
5427
+ }
5428
+ catch (_a) {
5429
+ return false;
5430
+ }
5431
+ }
5432
+ json$1.isJsonable = isJsonable$1;
5433
+ function isntJsonable$1(val) {
5434
+ return !isntJsonable$1();
5435
+ }
5436
+ json$1.isntJsonable = isntJsonable$1;
5437
+
5438
+ var promise$1 = {};
5439
+
5440
+ promise$1.isPromiseLike = promise$1.isntPromiseLike = promise$1.isntPromise = promise$1.isPromise = void 0;
5441
+ const object_1$2 = object$1;
5442
+ const function_1$3 = _function$1;
5443
+ function isPromise$3(val) {
5444
+ return val instanceof Promise;
5445
+ }
5446
+ promise$1.isPromise = isPromise$3;
5447
+ function isntPromise$1(val) {
5448
+ return !isPromise$3(val);
5449
+ }
5450
+ promise$1.isntPromise = isntPromise$1;
5451
+ function isntPromiseLike$1(val) {
5452
+ return !isPromiseLike$1(val);
5453
+ }
5454
+ promise$1.isntPromiseLike = isntPromiseLike$1;
5455
+ function isPromiseLike$1(val) {
5456
+ return (0, object_1$2.isObject)(val)
5457
+ && (0, function_1$3.isFunction)(val.then);
5458
+ }
5459
+ promise$1.isPromiseLike = isPromiseLike$1;
5460
+
5461
+ var url$1 = {};
5462
+
5463
+ url$1.isAbsoluteURL = void 0;
5464
+ function isAbsoluteURL$1(str) {
5465
+ try {
5466
+ new URL(str);
5467
+ return true;
5468
+ }
5469
+ catch (_a) {
5470
+ return false;
5471
+ }
5472
+ }
5473
+ url$1.isAbsoluteURL = isAbsoluteURL$1;
5474
+
5475
+ var regexp = {};
5476
+
5477
+ regexp.isntRegExp = regexp.isRegExp = void 0;
5478
+ function isRegExp(val) {
5479
+ return val instanceof RegExp;
5480
+ }
5481
+ regexp.isRegExp = isRegExp;
5482
+ function isntRegExp(val) {
5483
+ return !isRegExp(val);
5484
+ }
5485
+ regexp.isntRegExp = isntRegExp;
5486
+
5487
+ (function (exports) {
5488
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5489
+ if (k2 === undefined) k2 = k;
5490
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5491
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5492
+ desc = { enumerable: true, get: function() { return m[k]; } };
5493
+ }
5494
+ Object.defineProperty(o, k2, desc);
5495
+ }) : (function(o, m, k, k2) {
5496
+ if (k2 === undefined) k2 = k;
5497
+ o[k2] = m[k];
5498
+ }));
5499
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
5500
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5501
+ };__exportStar(array$1, exports);
5502
+ __exportStar(asyncIterable$1, exports);
5503
+ __exportStar(bigint$1, exports);
5504
+ __exportStar(boolean$1, exports);
5505
+ __exportStar(char$1, exports);
5506
+ __exportStar(date$1, exports);
5507
+ __exportStar(_enum$1, exports);
5508
+ __exportStar(error$1, exports);
5509
+ __exportStar(falsy$1, exports);
5510
+ __exportStar(_function$1, exports);
5511
+ __exportStar(iterable$1, exports);
5512
+ __exportStar(json$1, exports);
5513
+ __exportStar(_null$1, exports);
5514
+ __exportStar(number$1, exports);
5515
+ __exportStar(object$1, exports);
5516
+ __exportStar(promise$1, exports);
5517
+ __exportStar(string$1, exports);
5518
+ __exportStar(_undefined$1, exports);
5519
+ __exportStar(url$1, exports);
5520
+ __exportStar(regexp, exports);
5521
+
5522
+ } (es2018$5));
5523
+
5141
5524
  var traverseErrorPrototypeChain$1 = {};
5142
5525
 
5143
5526
  traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = void 0;
@@ -5152,7 +5535,7 @@ function* traverseErrorPrototypeChain(err) {
5152
5535
  traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
5153
5536
 
5154
5537
  getErrorNames$1.getErrorNames = void 0;
5155
- const types_1$1 = es2018$7;
5538
+ const types_1$1 = es2018$5;
5156
5539
  const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
5157
5540
  function* getErrorNames(err) {
5158
5541
  var _a;
@@ -5173,7 +5556,7 @@ getErrorNames$1.getErrorNames = getErrorNames;
5173
5556
  var serializableError = {};
5174
5557
 
5175
5558
  serializableError.isSerializableError = void 0;
5176
- const types_1 = es2018$7;
5559
+ const types_1 = es2018$5;
5177
5560
  function isSerializableError(val) {
5178
5561
  return (0, types_1.isObject)(val)
5179
5562
  && (0, types_1.isString)(val.name)
@@ -5191,7 +5574,7 @@ function requireCustomError () {
5191
5574
  customError.CustomError = void 0;
5192
5575
  const iterable_operator_1 = requireEs2018$1();
5193
5576
  const get_error_names_1 = getErrorNames$1;
5194
- const types_1 = es2018$7;
5577
+ const types_1 = es2018$5;
5195
5578
  const serializable_error_1 = serializableError;
5196
5579
  class CustomError extends Error {
5197
5580
  get name() {
@@ -5261,7 +5644,7 @@ normalize.normalize = void 0;
5261
5644
 
5262
5645
  var hydrate$1 = {};
5263
5646
 
5264
- var es2018$3 = {};
5647
+ var es2018$4 = {};
5265
5648
 
5266
5649
  var pass$1 = {};
5267
5650
 
@@ -5281,10 +5664,10 @@ pass$1.pass = pass;
5281
5664
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5282
5665
  };__exportStar(pass$1, exports);
5283
5666
 
5284
- } (es2018$3));
5667
+ } (es2018$4));
5285
5668
 
5286
5669
  hydrate$1.hydrate = void 0;
5287
- const pass_1 = es2018$3;
5670
+ const pass_1 = es2018$4;
5288
5671
  function hydrate(err) {
5289
5672
  var _a;
5290
5673
  const errorNames = [err.name, ...err.ancestors]
@@ -5330,7 +5713,7 @@ assert.assert = void 0;
5330
5713
  var hasRequiredEs2018;
5331
5714
 
5332
5715
  function requireEs2018 () {
5333
- if (hasRequiredEs2018) return es2018$6;
5716
+ if (hasRequiredEs2018) return es2018$9;
5334
5717
  hasRequiredEs2018 = 1;
5335
5718
  (function (exports) {
5336
5719
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -5355,82 +5738,121 @@ function requireEs2018 () {
5355
5738
  __exportStar(getErrorNames$1, exports);
5356
5739
  __exportStar(traverseErrorPrototypeChain$1, exports);
5357
5740
 
5358
- } (es2018$6));
5359
- return es2018$6;
5741
+ } (es2018$9));
5742
+ return es2018$9;
5360
5743
  }
5361
5744
 
5362
5745
  var es2018Exports$1 = requireEs2018();
5363
5746
 
5364
- function useSingleSelection(values, defaultSelectedIndex) {
5365
- es2018Exports$1.assert(values.length > 0, 'The parameter values must be a non-empty array');
5366
- if (es2018$7.isntUndefined(defaultSelectedIndex)) {
5367
- es2018Exports$1.assert(defaultSelectedIndex >= 0 && defaultSelectedIndex < values.length, 'The parameter defaultSelectedIndex must be in the range of 0 to values.length');
5747
+ function useIIFE(iife, deps) {
5748
+ const oldDeps = react.exports.useRef([]);
5749
+ const isFirstRender = useIsFirstRender();
5750
+ if (isFirstRender()) {
5751
+ iife();
5752
+ }
5753
+ else {
5754
+ if (deps.length === oldDeps.current.length) {
5755
+ if (deps.some((x, i) => x !== oldDeps.current[i])) {
5756
+ iife();
5757
+ }
5758
+ }
5759
+ else {
5760
+ iife();
5761
+ }
5368
5762
  }
5763
+ oldDeps.current = Array.from(deps);
5764
+ }
5765
+
5766
+ function useSingleSelection(options, defaultSelectedIndex) {
5767
+ useIIFE(() => {
5768
+ es2018Exports$1.assert(defaultSelectedIndex >= 0 && defaultSelectedIndex < options.length, 'The parameter defaultSelectedIndex must be in the range of 0 to values.length');
5769
+ }, [defaultSelectedIndex]);
5369
5770
  const [selectedIndex, setSelectedIndex] = react.exports.useState(defaultSelectedIndex);
5370
- return react.exports.useMemo(() => ({
5371
- selectedValue: es2018$7.isUndefined(selectedIndex) ? undefined : values[selectedIndex],
5372
- options: values.map((value, index) => ({
5373
- value,
5374
- index,
5375
- selected: index === selectedIndex,
5376
- select: () => setSelectedIndex(index)
5377
- }))
5378
- }), [selectedIndex]);
5771
+ return {
5772
+ selectedIndex,
5773
+ optionStates: react.exports.useMemo(createOptionStates, [options, selectedIndex]),
5774
+ select: react.exports.useCallback(select, [])
5775
+ };
5776
+ function createOptionStates() {
5777
+ return options.map((_, index) => ({
5778
+ selected: index === selectedIndex
5779
+ }));
5780
+ }
5781
+ function select(index) {
5782
+ setSelectedIndex(index);
5783
+ }
5379
5784
  }
5380
5785
 
5381
5786
  var es2018Exports = requireEs2018$1();
5382
5787
 
5383
- function useMultipleSelection(values, defaultSelectedIndexes = []) {
5384
- es2018Exports$1.assert(values.length > 0, 'The parameter values must be a non-empty array');
5385
- for (const index of defaultSelectedIndexes) {
5386
- es2018Exports$1.assert(index >= 0 && index < values.length, 'The index of parameter defaultSelectedIndexes must be in the range of 0 to values.length');
5387
- }
5788
+ function useMultipleSelection(options, defaultSelectedIndexes = []) {
5789
+ useIIFE(() => {
5790
+ for (const index of defaultSelectedIndexes) {
5791
+ es2018Exports$1.assert(index >= 0 && index < options.length, 'The index of parameter defaultSelectedIndexes must be in the range of 0 to values.length');
5792
+ }
5793
+ }, [defaultSelectedIndexes]);
5388
5794
  const [selectedIndexes, setSelectedIndexes] = react.exports.useState(new Set(defaultSelectedIndexes));
5389
- return react.exports.useMemo(() => ({
5390
- selectedValues: es2018Exports.toArray(es2018Exports.map(selectedIndexes, i => values[i])),
5391
- options: values.map((value, index) => {
5392
- const selected = selectedIndexes.has(index);
5393
- const select = () => {
5394
- const set = new Set(selectedIndexes);
5395
- set.add(index);
5396
- setSelectedIndexes(set);
5397
- };
5398
- const unselect = () => {
5399
- const set = new Set(selectedIndexes);
5400
- set.delete(index);
5401
- setSelectedIndexes(set);
5402
- };
5403
- return {
5404
- value,
5405
- index,
5406
- selected,
5407
- select,
5408
- unselect,
5409
- toggle: selected ? unselect : select
5410
- };
5411
- })
5412
- }), [selectedIndexes]);
5413
- }
5414
-
5415
- function useStateCycle(stateList, initialStateIndex = 0) {
5416
- const [index, setIndex] = react.exports.useState(initialStateIndex);
5417
- return [
5418
- stateList[index],
5419
- () => setIndex(index => {
5420
- if (index + 1 < stateList.length) {
5421
- return index + 1;
5422
- }
5423
- else {
5795
+ return {
5796
+ selectedIndexes: react.exports.useMemo(() => es2018Exports.toArray(selectedIndexes), [selectedIndexes]),
5797
+ optionStates: react.exports.useMemo(createOptionStates, [options, selectedIndexes]),
5798
+ toggle: react.exports.useCallback(toggle, [selectedIndexes]),
5799
+ select: react.exports.useCallback(select, []),
5800
+ unselect: react.exports.useCallback(unselect, [])
5801
+ };
5802
+ function createOptionStates() {
5803
+ return options.map((_, index) => {
5804
+ const selected = isSelected(index);
5805
+ return { selected };
5806
+ });
5807
+ }
5808
+ function isSelected(index) {
5809
+ return selectedIndexes.has(index);
5810
+ }
5811
+ function toggle(index) {
5812
+ if (isSelected(index)) {
5813
+ unselect(index);
5814
+ }
5815
+ else {
5816
+ select(index);
5817
+ }
5818
+ }
5819
+ function select(index) {
5820
+ setSelectedIndexes(selectedIndexes => {
5821
+ const result = new Set(selectedIndexes);
5822
+ result.add(index);
5823
+ return result;
5824
+ });
5825
+ }
5826
+ function unselect(index) {
5827
+ setSelectedIndexes(selectedIndexes => {
5828
+ const result = new Set(selectedIndexes);
5829
+ result.delete(index);
5830
+ return result;
5831
+ });
5832
+ }
5833
+ }
5834
+
5835
+ function useStateCycle(orderedStates, initialStateIndex = 0) {
5836
+ const [index, setIndex] = react.exports.useState(initialStateIndex);
5837
+ return [orderedStates[index], react.exports.useCallback(next, [orderedStates])];
5838
+ function next() {
5839
+ setIndex(index => {
5840
+ if (index + 1 < orderedStates.length) {
5841
+ return index + 1;
5842
+ }
5843
+ else {
5424
5844
  return 0;
5425
5845
  }
5426
- })
5427
- ];
5846
+ });
5847
+ }
5428
5848
  }
5429
5849
 
5430
5850
  function useToggle(initialState = false) {
5431
5851
  const [state, setState] = react.exports.useState(initialState);
5432
- const toggle = () => setState(state => !state);
5433
- return [state, toggle];
5852
+ return [state, react.exports.useCallback(toggle, [])];
5853
+ function toggle() {
5854
+ setState(state => !state);
5855
+ }
5434
5856
  }
5435
5857
 
5436
5858
  function useResizeObserver(callback, refs) {
@@ -5439,7 +5861,7 @@ function useResizeObserver(callback, refs) {
5439
5861
  const observer = new ResizeObserver(callback);
5440
5862
  refs
5441
5863
  .map(x => x.current)
5442
- .filter(es2018$7.isntNull)
5864
+ .filter(es2018$5.isntNull)
5443
5865
  .forEach(x => observer.observe(x));
5444
5866
  return () => observer.disconnect();
5445
5867
  }, deps);
@@ -5447,37 +5869,38 @@ function useResizeObserver(callback, refs) {
5447
5869
 
5448
5870
  function useStep(steps, initialStepIndex = 0) {
5449
5871
  const [index, setIndex] = react.exports.useState(initialStepIndex);
5450
- return [
5451
- steps[index],
5452
- () => {
5453
- setIndex(index => {
5454
- if (index === steps.length - 1) {
5455
- return index;
5456
- }
5457
- else {
5458
- return index + 1;
5459
- }
5460
- });
5461
- },
5462
- () => {
5463
- setIndex(index => {
5464
- if (index === 0) {
5465
- return index;
5466
- }
5467
- else {
5468
- return index - 1;
5469
- }
5470
- });
5471
- }
5472
- ];
5872
+ return [steps[index], react.exports.useCallback(next, [steps]), react.exports.useCallback(previous, [])];
5873
+ function next() {
5874
+ setIndex(index => {
5875
+ if (index === steps.length - 1) {
5876
+ return index;
5877
+ }
5878
+ else {
5879
+ return index + 1;
5880
+ }
5881
+ });
5882
+ }
5883
+ function previous() {
5884
+ setIndex(index => {
5885
+ if (index === 0) {
5886
+ return index;
5887
+ }
5888
+ else {
5889
+ return index - 1;
5890
+ }
5891
+ });
5892
+ }
5473
5893
  }
5474
5894
 
5475
5895
  function useForceUpdate() {
5476
5896
  const [, setState] = react.exports.useState({});
5477
- return () => setState({});
5897
+ return react.exports.useCallback(forceUpdate, []);
5898
+ function forceUpdate() {
5899
+ setState({});
5900
+ }
5478
5901
  }
5479
5902
 
5480
- var es2018$2 = {};
5903
+ var es2018$3 = {};
5481
5904
 
5482
5905
  var box = {};
5483
5906
 
@@ -5711,11 +6134,11 @@ lruMap.LRUMap = LRUMap;
5711
6134
 
5712
6135
  var expirableMap = {};
5713
6136
 
5714
- var es2018$1 = {};
6137
+ var es2018$2 = {};
5715
6138
 
5716
6139
  var exponentialBackoff = {};
5717
6140
 
5718
- var es2018 = {};
6141
+ var es2018$1 = {};
5719
6142
 
5720
6143
  var random$1 = {};
5721
6144
 
@@ -5759,10 +6182,10 @@ randomIntInclusive$1.randomIntInclusive = randomIntInclusive;
5759
6182
  __exportStar(randomInt$1, exports);
5760
6183
  __exportStar(randomIntInclusive$1, exports);
5761
6184
 
5762
- } (es2018));
6185
+ } (es2018$1));
5763
6186
 
5764
6187
  exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
5765
- const extra_rand_1 = es2018;
6188
+ const extra_rand_1 = es2018$1;
5766
6189
  function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
5767
6190
  const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
5768
6191
  if (jitter) {
@@ -5877,10 +6300,10 @@ setDynamicTimeoutLoop$1.setDynamicTimeoutLoop = setDynamicTimeoutLoop;
5877
6300
  __exportStar(setTimeoutLoop$1, exports);
5878
6301
  __exportStar(setDynamicTimeoutLoop$1, exports);
5879
6302
 
5880
- } (es2018$1));
6303
+ } (es2018$2));
5881
6304
 
5882
6305
  expirableMap.ExpirableMap = void 0;
5883
- const extra_timers_1$1 = es2018$1;
6306
+ const extra_timers_1$1 = es2018$2;
5884
6307
  class ExpirableMap {
5885
6308
  constructor() {
5886
6309
  this.map = new Map();
@@ -5978,7 +6401,7 @@ var tlruMap = {};
5978
6401
  tlruMap.TLRUMap = void 0;
5979
6402
  const errors_1$1 = requireEs2018();
5980
6403
  const iterable_operator_1$1 = requireEs2018$1();
5981
- const extra_timers_1 = es2018$1;
6404
+ const extra_timers_1 = es2018$2;
5982
6405
  class TLRUMap {
5983
6406
  constructor(limit) {
5984
6407
  this.map = new Map();
@@ -6217,13 +6640,13 @@ var Observable$1 = {};
6217
6640
 
6218
6641
  var Subscriber = {};
6219
6642
 
6220
- var isFunction$1 = {};
6643
+ var isFunction$2 = {};
6221
6644
 
6222
- isFunction$1.isFunction = void 0;
6223
- function isFunction(value) {
6645
+ isFunction$2.isFunction = void 0;
6646
+ function isFunction$1(value) {
6224
6647
  return typeof value === 'function';
6225
6648
  }
6226
- isFunction$1.isFunction = isFunction;
6649
+ isFunction$2.isFunction = isFunction$1;
6227
6650
 
6228
6651
  var Subscription$1 = {};
6229
6652
 
@@ -6300,7 +6723,7 @@ var __spreadArray$g = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
6300
6723
  to[j] = from[i];
6301
6724
  return to;
6302
6725
  };Subscription$1.isSubscription = Subscription$1.EMPTY_SUBSCRIPTION = Subscription$1.Subscription = void 0;
6303
- var isFunction_1$p = isFunction$1;
6726
+ var isFunction_1$p = isFunction$2;
6304
6727
  var UnsubscriptionError_1 = UnsubscriptionError;
6305
6728
  var arrRemove_1$7 = arrRemove$1;
6306
6729
  var Subscription = (function () {
@@ -6593,7 +7016,7 @@ errorContext$1.captureError = captureError;
6593
7016
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6594
7017
  };
6595
7018
  })();exports.EMPTY_OBSERVER = exports.SafeSubscriber = exports.Subscriber = void 0;
6596
- var isFunction_1 = isFunction$1;
7019
+ var isFunction_1 = isFunction$2;
6597
7020
  var Subscription_1 = Subscription$1;
6598
7021
  var config_1 = config;
6599
7022
  var reportUnhandledError_1 = reportUnhandledError$1;
@@ -6822,7 +7245,7 @@ var Subscription_1$9 = Subscription$1;
6822
7245
  var observable_1$2 = observable;
6823
7246
  var pipe_1$2 = pipe$1;
6824
7247
  var config_1 = config;
6825
- var isFunction_1$o = isFunction$1;
7248
+ var isFunction_1$o = isFunction$2;
6826
7249
  var errorContext_1$1 = errorContext$1;
6827
7250
  var Observable = (function () {
6828
7251
  function Observable(subscribe) {
@@ -6926,7 +7349,7 @@ var refCount$1 = {};
6926
7349
  var lift = {};
6927
7350
 
6928
7351
  lift.operate = lift.hasLift = void 0;
6929
- var isFunction_1$n = isFunction$1;
7352
+ var isFunction_1$n = isFunction$2;
6930
7353
  function hasLift(source) {
6931
7354
  return isFunction_1$n.isFunction(source === null || source === void 0 ? void 0 : source.lift);
6932
7355
  }
@@ -8421,14 +8844,14 @@ var args = {};
8421
8844
  var isScheduler$1 = {};
8422
8845
 
8423
8846
  isScheduler$1.isScheduler = void 0;
8424
- var isFunction_1$m = isFunction$1;
8847
+ var isFunction_1$m = isFunction$2;
8425
8848
  function isScheduler(value) {
8426
8849
  return value && isFunction_1$m.isFunction(value.schedule);
8427
8850
  }
8428
8851
  isScheduler$1.isScheduler = isScheduler;
8429
8852
 
8430
8853
  args.popNumber = args.popScheduler = args.popResultSelector = void 0;
8431
- var isFunction_1$l = isFunction$1;
8854
+ var isFunction_1$l = isFunction$2;
8432
8855
  var isScheduler_1$3 = isScheduler$1;
8433
8856
  function last$2(arr) {
8434
8857
  return arr[arr.length - 1];
@@ -8459,33 +8882,33 @@ var isArrayLike = {};
8459
8882
  isArrayLike.isArrayLike = void 0;
8460
8883
  isArrayLike.isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; });
8461
8884
 
8462
- var isPromise$1 = {};
8885
+ var isPromise$2 = {};
8463
8886
 
8464
- isPromise$1.isPromise = void 0;
8465
- var isFunction_1$k = isFunction$1;
8466
- function isPromise(value) {
8887
+ isPromise$2.isPromise = void 0;
8888
+ var isFunction_1$k = isFunction$2;
8889
+ function isPromise$1(value) {
8467
8890
  return isFunction_1$k.isFunction(value === null || value === void 0 ? void 0 : value.then);
8468
8891
  }
8469
- isPromise$1.isPromise = isPromise;
8892
+ isPromise$2.isPromise = isPromise$1;
8470
8893
 
8471
8894
  var isInteropObservable$1 = {};
8472
8895
 
8473
8896
  isInteropObservable$1.isInteropObservable = void 0;
8474
8897
  var observable_1$1 = observable;
8475
- var isFunction_1$j = isFunction$1;
8898
+ var isFunction_1$j = isFunction$2;
8476
8899
  function isInteropObservable(input) {
8477
8900
  return isFunction_1$j.isFunction(input[observable_1$1.observable]);
8478
8901
  }
8479
8902
  isInteropObservable$1.isInteropObservable = isInteropObservable;
8480
8903
 
8481
- var isAsyncIterable$1 = {};
8904
+ var isAsyncIterable$2 = {};
8482
8905
 
8483
- isAsyncIterable$1.isAsyncIterable = void 0;
8484
- var isFunction_1$i = isFunction$1;
8485
- function isAsyncIterable(obj) {
8906
+ isAsyncIterable$2.isAsyncIterable = void 0;
8907
+ var isFunction_1$i = isFunction$2;
8908
+ function isAsyncIterable$1(obj) {
8486
8909
  return Symbol.asyncIterator && isFunction_1$i.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
8487
8910
  }
8488
- isAsyncIterable$1.isAsyncIterable = isAsyncIterable;
8911
+ isAsyncIterable$2.isAsyncIterable = isAsyncIterable$1;
8489
8912
 
8490
8913
  var throwUnobservableError = {};
8491
8914
 
@@ -8495,7 +8918,7 @@ function createInvalidObservableTypeError(input) {
8495
8918
  }
8496
8919
  throwUnobservableError.createInvalidObservableTypeError = createInvalidObservableTypeError;
8497
8920
 
8498
- var isIterable$1 = {};
8921
+ var isIterable$2 = {};
8499
8922
 
8500
8923
  var iterator = {};
8501
8924
 
@@ -8509,13 +8932,13 @@ function getSymbolIterator() {
8509
8932
  iterator.getSymbolIterator = getSymbolIterator;
8510
8933
  iterator.iterator = getSymbolIterator();
8511
8934
 
8512
- isIterable$1.isIterable = void 0;
8935
+ isIterable$2.isIterable = void 0;
8513
8936
  var iterator_1$1 = iterator;
8514
- var isFunction_1$h = isFunction$1;
8515
- function isIterable(input) {
8937
+ var isFunction_1$h = isFunction$2;
8938
+ function isIterable$1(input) {
8516
8939
  return isFunction_1$h.isFunction(input === null || input === void 0 ? void 0 : input[iterator_1$1.iterator]);
8517
8940
  }
8518
- isIterable$1.isIterable = isIterable;
8941
+ isIterable$2.isIterable = isIterable$1;
8519
8942
 
8520
8943
  var isReadableStreamLike$1 = {};
8521
8944
 
@@ -8558,7 +8981,7 @@ var __asyncGenerator = (commonjsGlobal && commonjsGlobal.__asyncGenerator) || fu
8558
8981
  function reject(value) { resume("throw", value); }
8559
8982
  function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
8560
8983
  };isReadableStreamLike$1.isReadableStreamLike = isReadableStreamLike$1.readableStreamLikeToAsyncGenerator = void 0;
8561
- var isFunction_1$g = isFunction$1;
8984
+ var isFunction_1$g = isFunction$2;
8562
8985
  function readableStreamLikeToAsyncGenerator(readableStream) {
8563
8986
  return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
8564
8987
  var reader, _a, value, done;
@@ -8652,14 +9075,14 @@ var __values$6 = (commonjsGlobal && commonjsGlobal.__values) || function(o) {
8652
9075
  throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
8653
9076
  };innerFrom$1.fromReadableStreamLike = innerFrom$1.fromAsyncIterable = innerFrom$1.fromIterable = innerFrom$1.fromPromise = innerFrom$1.fromArrayLike = innerFrom$1.fromInteropObservable = innerFrom$1.innerFrom = void 0;
8654
9077
  var isArrayLike_1$2 = isArrayLike;
8655
- var isPromise_1$1 = isPromise$1;
9078
+ var isPromise_1$1 = isPromise$2;
8656
9079
  var Observable_1$j = Observable$1;
8657
9080
  var isInteropObservable_1$1 = isInteropObservable$1;
8658
- var isAsyncIterable_1$1 = isAsyncIterable$1;
9081
+ var isAsyncIterable_1$1 = isAsyncIterable$2;
8659
9082
  var throwUnobservableError_1$1 = throwUnobservableError;
8660
- var isIterable_1$1 = isIterable$1;
9083
+ var isIterable_1$1 = isIterable$2;
8661
9084
  var isReadableStreamLike_1$2 = isReadableStreamLike$1;
8662
- var isFunction_1$f = isFunction$1;
9085
+ var isFunction_1$f = isFunction$2;
8663
9086
  var reportUnhandledError_1 = reportUnhandledError$1;
8664
9087
  var observable_1 = observable;
8665
9088
  function innerFrom(input) {
@@ -8895,7 +9318,7 @@ var scheduleIterable$1 = {};
8895
9318
  scheduleIterable$1.scheduleIterable = void 0;
8896
9319
  var Observable_1$h = Observable$1;
8897
9320
  var iterator_1 = iterator;
8898
- var isFunction_1$e = isFunction$1;
9321
+ var isFunction_1$e = isFunction$2;
8899
9322
  var executeSchedule_1$5 = executeSchedule$1;
8900
9323
  function scheduleIterable(input, scheduler) {
8901
9324
  return new Observable_1$h.Observable(function (subscriber) {
@@ -8970,10 +9393,10 @@ var scheduleArray_1 = scheduleArray$1;
8970
9393
  var scheduleIterable_1$1 = scheduleIterable$1;
8971
9394
  var scheduleAsyncIterable_1 = scheduleAsyncIterable$1;
8972
9395
  var isInteropObservable_1 = isInteropObservable$1;
8973
- var isPromise_1 = isPromise$1;
9396
+ var isPromise_1 = isPromise$2;
8974
9397
  var isArrayLike_1$1 = isArrayLike;
8975
- var isIterable_1 = isIterable$1;
8976
- var isAsyncIterable_1 = isAsyncIterable$1;
9398
+ var isIterable_1 = isIterable$2;
9399
+ var isAsyncIterable_1 = isAsyncIterable$2;
8977
9400
  var throwUnobservableError_1 = throwUnobservableError;
8978
9401
  var isReadableStreamLike_1 = isReadableStreamLike$1;
8979
9402
  var scheduleReadableStreamLike_1 = scheduleReadableStreamLike$1;
@@ -9027,7 +9450,7 @@ var throwError$1 = {};
9027
9450
 
9028
9451
  throwError$1.throwError = void 0;
9029
9452
  var Observable_1$f = Observable$1;
9030
- var isFunction_1$d = isFunction$1;
9453
+ var isFunction_1$d = isFunction$2;
9031
9454
  function throwError(errorOrErrorFactory, scheduler) {
9032
9455
  var errorFactory = isFunction_1$d.isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function () { return errorOrErrorFactory; };
9033
9456
  var init = function (subscriber) { return subscriber.error(errorFactory()); };
@@ -9040,7 +9463,7 @@ exports.observeNotification = exports.Notification = exports.NotificationKind =
9040
9463
  var empty_1 = empty;
9041
9464
  var of_1 = of$1;
9042
9465
  var throwError_1 = throwError$1;
9043
- var isFunction_1 = isFunction$1;
9466
+ var isFunction_1 = isFunction$2;
9044
9467
  (function (NotificationKind) {
9045
9468
  NotificationKind["NEXT"] = "N";
9046
9469
  NotificationKind["ERROR"] = "E";
@@ -9115,7 +9538,7 @@ var isObservable$1 = {};
9115
9538
 
9116
9539
  isObservable$1.isObservable = void 0;
9117
9540
  var Observable_1$e = Observable$1;
9118
- var isFunction_1$c = isFunction$1;
9541
+ var isFunction_1$c = isFunction$2;
9119
9542
  function isObservable(obj) {
9120
9543
  return !!obj && (obj instanceof Observable_1$e.Observable || (isFunction_1$c.isFunction(obj.lift) && isFunction_1$c.isFunction(obj.subscribe)));
9121
9544
  }
@@ -9228,18 +9651,18 @@ SequenceError.SequenceError = createErrorClass_1.createErrorClass(function (_sup
9228
9651
 
9229
9652
  var timeout = {};
9230
9653
 
9231
- var isDate = {};
9654
+ var isDate$1 = {};
9232
9655
 
9233
- isDate.isValidDate = void 0;
9656
+ isDate$1.isValidDate = void 0;
9234
9657
  function isValidDate(value) {
9235
9658
  return value instanceof Date && !isNaN(value);
9236
9659
  }
9237
- isDate.isValidDate = isValidDate;
9660
+ isDate$1.isValidDate = isValidDate;
9238
9661
 
9239
9662
  (function (exports) {
9240
9663
  exports.timeout = exports.TimeoutError = void 0;
9241
9664
  var async_1 = async;
9242
- var isDate_1 = isDate;
9665
+ var isDate_1 = isDate$1;
9243
9666
  var lift_1 = lift;
9244
9667
  var innerFrom_1 = innerFrom$1;
9245
9668
  var createErrorClass_1 = createErrorClass$1;
@@ -9343,9 +9766,9 @@ var __spreadArray$f = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
9343
9766
  return to;
9344
9767
  };mapOneOrManyArgs$1.mapOneOrManyArgs = void 0;
9345
9768
  var map_1$5 = map$1;
9346
- var isArray$2 = Array.isArray;
9769
+ var isArray$3 = Array.isArray;
9347
9770
  function callOrApply(fn, args) {
9348
- return isArray$2(args) ? fn.apply(void 0, __spreadArray$f([], __read$g(args))) : fn(args);
9771
+ return isArray$3(args) ? fn.apply(void 0, __spreadArray$f([], __read$g(args))) : fn(args);
9349
9772
  }
9350
9773
  function mapOneOrManyArgs(fn) {
9351
9774
  return map_1$5.map(function (args) { return callOrApply(fn, args); });
@@ -9473,12 +9896,12 @@ var combineLatest$3 = {};
9473
9896
  var argsArgArrayOrObject$1 = {};
9474
9897
 
9475
9898
  argsArgArrayOrObject$1.argsArgArrayOrObject = void 0;
9476
- var isArray$1 = Array.isArray;
9899
+ var isArray$2 = Array.isArray;
9477
9900
  var getPrototypeOf = Object.getPrototypeOf, objectProto = Object.prototype, getKeys = Object.keys;
9478
9901
  function argsArgArrayOrObject(args) {
9479
9902
  if (args.length === 1) {
9480
9903
  var first_1 = args[0];
9481
- if (isArray$1(first_1)) {
9904
+ if (isArray$2(first_1)) {
9482
9905
  return { args: first_1, keys: null };
9483
9906
  }
9484
9907
  if (isPOJO(first_1)) {
@@ -9655,7 +10078,7 @@ var map_1$4 = map$1;
9655
10078
  var innerFrom_1$p = innerFrom$1;
9656
10079
  var lift_1$10 = lift;
9657
10080
  var mergeInternals_1$2 = mergeInternals$1;
9658
- var isFunction_1$b = isFunction$1;
10081
+ var isFunction_1$b = isFunction$2;
9659
10082
  function mergeMap(project, resultSelector, concurrent) {
9660
10083
  if (concurrent === void 0) { concurrent = Infinity; }
9661
10084
  if (isFunction_1$b.isFunction(resultSelector)) {
@@ -9813,7 +10236,7 @@ var innerFrom_1$m = innerFrom$1;
9813
10236
  var Observable_1$8 = Observable$1;
9814
10237
  var mergeMap_1$5 = mergeMap$1;
9815
10238
  var isArrayLike_1 = isArrayLike;
9816
- var isFunction_1$a = isFunction$1;
10239
+ var isFunction_1$a = isFunction$2;
9817
10240
  var mapOneOrManyArgs_1$3 = mapOneOrManyArgs$1;
9818
10241
  var nodeEventEmitterMethods = ['addListener', 'removeListener'];
9819
10242
  var eventTargetMethods = ['addEventListener', 'removeEventListener'];
@@ -9872,7 +10295,7 @@ var fromEventPattern$1 = {};
9872
10295
 
9873
10296
  fromEventPattern$1.fromEventPattern = void 0;
9874
10297
  var Observable_1$7 = Observable$1;
9875
- var isFunction_1$9 = isFunction$1;
10298
+ var isFunction_1$9 = isFunction$2;
9876
10299
  var mapOneOrManyArgs_1$2 = mapOneOrManyArgs$1;
9877
10300
  function fromEventPattern(addHandler, removeHandler, resultSelector) {
9878
10301
  if (resultSelector) {
@@ -9987,7 +10410,7 @@ timer$1.timer = void 0;
9987
10410
  var Observable_1$6 = Observable$1;
9988
10411
  var async_1$a = async;
9989
10412
  var isScheduler_1 = isScheduler$1;
9990
- var isDate_1$1 = isDate;
10413
+ var isDate_1$1 = isDate$1;
9991
10414
  function timer(dueTime, intervalOrScheduler, scheduler) {
9992
10415
  if (dueTime === void 0) { dueTime = 0; }
9993
10416
  if (scheduler === void 0) { scheduler = async_1$a.async; }
@@ -10082,9 +10505,9 @@ var onErrorResumeNext$2 = {};
10082
10505
  var argsOrArgArray$1 = {};
10083
10506
 
10084
10507
  argsOrArgArray$1.argsOrArgArray = void 0;
10085
- var isArray = Array.isArray;
10508
+ var isArray$1 = Array.isArray;
10086
10509
  function argsOrArgArray(args) {
10087
- return args.length === 1 && isArray(args[0]) ? args[0] : args;
10510
+ return args.length === 1 && isArray$1(args[0]) ? args[0] : args;
10088
10511
  }
10089
10512
  argsOrArgArray$1.argsOrArgArray = argsOrArgArray;
10090
10513
 
@@ -10895,7 +11318,7 @@ var concatMap$1 = {};
10895
11318
 
10896
11319
  concatMap$1.concatMap = void 0;
10897
11320
  var mergeMap_1$3 = mergeMap$1;
10898
- var isFunction_1$8 = isFunction$1;
11321
+ var isFunction_1$8 = isFunction$2;
10899
11322
  function concatMap(project, resultSelector) {
10900
11323
  return isFunction_1$8.isFunction(resultSelector) ? mergeMap_1$3.mergeMap(project, resultSelector, 1) : mergeMap_1$3.mergeMap(project, 1);
10901
11324
  }
@@ -10905,7 +11328,7 @@ var concatMapTo$1 = {};
10905
11328
 
10906
11329
  concatMapTo$1.concatMapTo = void 0;
10907
11330
  var concatMap_1 = concatMap$1;
10908
- var isFunction_1$7 = isFunction$1;
11331
+ var isFunction_1$7 = isFunction$2;
10909
11332
  function concatMapTo(innerObservable, resultSelector) {
10910
11333
  return isFunction_1$7.isFunction(resultSelector) ? concatMap_1.concatMap(function () { return innerObservable; }, resultSelector) : concatMap_1.concatMap(function () { return innerObservable; });
10911
11334
  }
@@ -11693,7 +12116,7 @@ var max$1 = {};
11693
12116
 
11694
12117
  max$1.max = void 0;
11695
12118
  var reduce_1$1 = reduce$1;
11696
- var isFunction_1$6 = isFunction$1;
12119
+ var isFunction_1$6 = isFunction$2;
11697
12120
  function max(comparer) {
11698
12121
  return reduce_1$1.reduce(isFunction_1$6.isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); });
11699
12122
  }
@@ -11709,7 +12132,7 @@ var mergeMapTo$1 = {};
11709
12132
 
11710
12133
  mergeMapTo$1.mergeMapTo = void 0;
11711
12134
  var mergeMap_1 = mergeMap$1;
11712
- var isFunction_1$5 = isFunction$1;
12135
+ var isFunction_1$5 = isFunction$2;
11713
12136
  function mergeMapTo(innerObservable, resultSelector, concurrent) {
11714
12137
  if (concurrent === void 0) { concurrent = Infinity; }
11715
12138
  if (isFunction_1$5.isFunction(resultSelector)) {
@@ -11817,7 +12240,7 @@ var min$1 = {};
11817
12240
 
11818
12241
  min$1.min = void 0;
11819
12242
  var reduce_1 = reduce$1;
11820
- var isFunction_1$4 = isFunction$1;
12243
+ var isFunction_1$4 = isFunction$2;
11821
12244
  function min(comparer) {
11822
12245
  return reduce_1.reduce(isFunction_1$4.isFunction(comparer) ? function (x, y) { return (comparer(x, y) < 0 ? x : y); } : function (x, y) { return (x < y ? x : y); });
11823
12246
  }
@@ -11827,7 +12250,7 @@ var multicast$1 = {};
11827
12250
 
11828
12251
  multicast$1.multicast = void 0;
11829
12252
  var ConnectableObservable_1$2 = ConnectableObservable$1;
11830
- var isFunction_1$3 = isFunction$1;
12253
+ var isFunction_1$3 = isFunction$2;
11831
12254
  var connect_1$1 = connect$1;
11832
12255
  function multicast(subjectOrSubjectFactory, selector) {
11833
12256
  var subjectFactory = isFunction_1$3.isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function () { return subjectOrSubjectFactory; };
@@ -11930,7 +12353,7 @@ var publishReplay$1 = {};
11930
12353
  publishReplay$1.publishReplay = void 0;
11931
12354
  var ReplaySubject_1$1 = ReplaySubject$1;
11932
12355
  var multicast_1 = multicast$1;
11933
- var isFunction_1$2 = isFunction$1;
12356
+ var isFunction_1$2 = isFunction$2;
11934
12357
  function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) {
11935
12358
  if (selectorOrScheduler && !isFunction_1$2.isFunction(selectorOrScheduler)) {
11936
12359
  timestampProvider = selectorOrScheduler;
@@ -12587,7 +13010,7 @@ var switchMapTo$1 = {};
12587
13010
 
12588
13011
  switchMapTo$1.switchMapTo = void 0;
12589
13012
  var switchMap_1$1 = switchMap$1;
12590
- var isFunction_1$1 = isFunction$1;
13013
+ var isFunction_1$1 = isFunction$2;
12591
13014
  function switchMapTo(innerObservable, resultSelector) {
12592
13015
  return isFunction_1$1.isFunction(resultSelector) ? switchMap_1$1.switchMap(function () { return innerObservable; }, resultSelector) : switchMap_1$1.switchMap(function () { return innerObservable; });
12593
13016
  }
@@ -12645,7 +13068,7 @@ takeWhile$1.takeWhile = takeWhile;
12645
13068
  var tap$1 = {};
12646
13069
 
12647
13070
  tap$1.tap = void 0;
12648
- var isFunction_1 = isFunction$1;
13071
+ var isFunction_1 = isFunction$2;
12649
13072
  var lift_1$8 = lift;
12650
13073
  var OperatorSubscriber_1$7 = OperatorSubscriber$1;
12651
13074
  var identity_1$1 = identity$1;
@@ -12789,7 +13212,7 @@ var timeoutWith$1 = {};
12789
13212
 
12790
13213
  timeoutWith$1.timeoutWith = void 0;
12791
13214
  var async_1$1 = async;
12792
- var isDate_1 = isDate;
13215
+ var isDate_1 = isDate$1;
12793
13216
  var timeout_1 = timeout;
12794
13217
  function timeoutWith(due, withObservable, scheduler) {
12795
13218
  var first;
@@ -13618,11 +14041,371 @@ zipWith$1.zipWith = zipWith;
13618
14041
 
13619
14042
  } (cjs));
13620
14043
 
14044
+ var es2018 = {};
14045
+
14046
+ var array = {};
14047
+
14048
+ array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
14049
+ function isArray(val) {
14050
+ return Array.isArray(val);
14051
+ }
14052
+ array.isArray = isArray;
14053
+ function isntArray(val) {
14054
+ return !isArray(val);
14055
+ }
14056
+ array.isntArray = isntArray;
14057
+ function isEmptyArray(val) {
14058
+ return val.length === 0;
14059
+ }
14060
+ array.isEmptyArray = isEmptyArray;
14061
+ function isntEmptyArray(val) {
14062
+ return val.length !== 0;
14063
+ }
14064
+ array.isntEmptyArray = isntEmptyArray;
14065
+
14066
+ var asyncIterable = {};
14067
+
14068
+ var _null = {};
14069
+
14070
+ _null.isntNull = _null.isNull = void 0;
14071
+ function isNull(val) {
14072
+ return val === null;
14073
+ }
14074
+ _null.isNull = isNull;
14075
+ function isntNull(val) {
14076
+ return !isNull(val);
14077
+ }
14078
+ _null.isntNull = isntNull;
14079
+
14080
+ var _undefined = {};
14081
+
14082
+ _undefined.isntUndefined = _undefined.isUndefined = void 0;
14083
+ function isUndefined(val) {
14084
+ return val === undefined;
14085
+ }
14086
+ _undefined.isUndefined = isUndefined;
14087
+ function isntUndefined(val) {
14088
+ return !isUndefined(val);
14089
+ }
14090
+ _undefined.isntUndefined = isntUndefined;
14091
+
14092
+ var _function = {};
14093
+
14094
+ _function.isntFunction = _function.isFunction = void 0;
14095
+ function isFunction(val) {
14096
+ return typeof val === 'function';
14097
+ }
14098
+ _function.isFunction = isFunction;
14099
+ function isntFunction(val) {
14100
+ return !isFunction(val);
14101
+ }
14102
+ _function.isntFunction = isntFunction;
14103
+
14104
+ asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
14105
+ const null_1$2 = _null;
14106
+ const undefined_1$1 = _undefined;
14107
+ const function_1$2 = _function;
14108
+ function isAsyncIterable(val) {
14109
+ return (0, null_1$2.isntNull)(val)
14110
+ && (0, undefined_1$1.isntUndefined)(val)
14111
+ && (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
14112
+ }
14113
+ asyncIterable.isAsyncIterable = isAsyncIterable;
14114
+ function isntAsyncIterable(val) {
14115
+ return !isAsyncIterable(val);
14116
+ }
14117
+ asyncIterable.isntAsyncIterable = isntAsyncIterable;
14118
+
14119
+ var bigint = {};
14120
+
14121
+ bigint.isntBigInt = bigint.isBigInt = void 0;
14122
+ function isBigInt(val) {
14123
+ return typeof val === 'bigint';
14124
+ }
14125
+ bigint.isBigInt = isBigInt;
14126
+ function isntBigInt(val) {
14127
+ return !isBigInt(val);
14128
+ }
14129
+ bigint.isntBigInt = isntBigInt;
14130
+
14131
+ var boolean = {};
14132
+
14133
+ boolean.isntBoolean = boolean.isBoolean = void 0;
14134
+ function isBoolean(val) {
14135
+ return typeof val === 'boolean';
14136
+ }
14137
+ boolean.isBoolean = isBoolean;
14138
+ function isntBoolean(val) {
14139
+ return !isBoolean(val);
14140
+ }
14141
+ boolean.isntBoolean = isntBoolean;
14142
+
14143
+ var char = {};
14144
+
14145
+ var string = {};
14146
+
14147
+ string.isntString = string.isString = void 0;
14148
+ function isString(val) {
14149
+ return typeof val === 'string';
14150
+ }
14151
+ string.isString = isString;
14152
+ function isntString(val) {
14153
+ return !isString(val);
14154
+ }
14155
+ string.isntString = isntString;
14156
+
14157
+ char.isntChar = char.isChar = void 0;
14158
+ const string_1$1 = string;
14159
+ function isChar(val) {
14160
+ return (0, string_1$1.isString)(val)
14161
+ && val.length === 1;
14162
+ }
14163
+ char.isChar = isChar;
14164
+ function isntChar(val) {
14165
+ return !isChar(val);
14166
+ }
14167
+ char.isntChar = isntChar;
14168
+
14169
+ var date = {};
14170
+
14171
+ date.isntDate = date.isDate = void 0;
14172
+ function isDate(val) {
14173
+ return val instanceof Date;
14174
+ }
14175
+ date.isDate = isDate;
14176
+ function isntDate(val) {
14177
+ return !isDate(val);
14178
+ }
14179
+ date.isntDate = isntDate;
14180
+
14181
+ var _enum = {};
14182
+
14183
+ _enum.inEnum = void 0;
14184
+ function inEnum(val, _enum) {
14185
+ return Object.values(_enum).includes(val);
14186
+ }
14187
+ _enum.inEnum = inEnum;
14188
+
14189
+ var error = {};
14190
+
14191
+ error.isntError = error.isError = void 0;
14192
+ function isError(val) {
14193
+ return val instanceof Error;
14194
+ }
14195
+ error.isError = isError;
14196
+ function isntError(val) {
14197
+ return !isError(val);
14198
+ }
14199
+ error.isntError = isntError;
14200
+
14201
+ var falsy = {};
14202
+
14203
+ falsy.isntFalsy = falsy.isFalsy = void 0;
14204
+ function isFalsy(val) {
14205
+ return !val;
14206
+ }
14207
+ falsy.isFalsy = isFalsy;
14208
+ function isntFalsy(val) {
14209
+ return !isFalsy(val);
14210
+ }
14211
+ falsy.isntFalsy = isntFalsy;
14212
+
14213
+ var iterable = {};
14214
+
14215
+ iterable.isntIterable = iterable.isIterable = void 0;
14216
+ const null_1$1 = _null;
14217
+ const undefined_1 = _undefined;
14218
+ const function_1$1 = _function;
14219
+ function isIterable(val) {
14220
+ return (0, null_1$1.isntNull)(val)
14221
+ && (0, undefined_1.isntUndefined)(val)
14222
+ && (0, function_1$1.isFunction)(val[Symbol.iterator]);
14223
+ }
14224
+ iterable.isIterable = isIterable;
14225
+ function isntIterable(val) {
14226
+ return !isIterable(val);
14227
+ }
14228
+ iterable.isntIterable = isntIterable;
14229
+
14230
+ var json = {};
14231
+
14232
+ var number = {};
14233
+
14234
+ number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
14235
+ function isNumber(val) {
14236
+ return typeof val === 'number';
14237
+ }
14238
+ number.isNumber = isNumber;
14239
+ function isntNumber(val) {
14240
+ return !isNumber(val);
14241
+ }
14242
+ number.isntNumber = isntNumber;
14243
+ function isFinite(val) {
14244
+ return Number.isFinite(val);
14245
+ }
14246
+ number.isFinite = isFinite;
14247
+ function isPositiveInfinity(val) {
14248
+ return val === Infinity;
14249
+ }
14250
+ number.isPositiveInfinity = isPositiveInfinity;
14251
+ function isNegativeInfinity(val) {
14252
+ return val === -Infinity;
14253
+ }
14254
+ number.isNegativeInfinity = isNegativeInfinity;
14255
+ function isNaN$1(val) {
14256
+ return Number.isNaN(val);
14257
+ }
14258
+ number.isNaN = isNaN$1;
14259
+ function isntNaN(val) {
14260
+ return !isNaN$1(val);
14261
+ }
14262
+ number.isntNaN = isntNaN;
14263
+
14264
+ var object = {};
14265
+
14266
+ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
14267
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14268
+ };object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
14269
+ const isPlainObject_1 = __importDefault(isPlainObject_1$3);
14270
+ function isObject(val) {
14271
+ return val !== null
14272
+ && typeof val === 'object';
14273
+ }
14274
+ object.isObject = isObject;
14275
+ function isntObject(val) {
14276
+ return !isObject(val);
14277
+ }
14278
+ object.isntObject = isntObject;
14279
+ function isPlainObject(val) {
14280
+ return (0, isPlainObject_1.default)(val);
14281
+ }
14282
+ object.isPlainObject = isPlainObject;
14283
+ function isntPlainObject(val) {
14284
+ return !isPlainObject(val);
14285
+ }
14286
+ object.isntPlainObject = isntPlainObject;
14287
+ function isEmptyObject(val) {
14288
+ return Object.keys(val).length === 0;
14289
+ }
14290
+ object.isEmptyObject = isEmptyObject;
14291
+ function isntEmptyObject(val) {
14292
+ return Object.keys(val).length !== 0;
14293
+ }
14294
+ object.isntEmptyObject = isntEmptyObject;
14295
+
14296
+ json.isntJsonable = json.isJsonable = json.isntJson = json.isJson = void 0;
14297
+ const null_1 = _null;
14298
+ const boolean_1 = boolean;
14299
+ const string_1 = string;
14300
+ const number_1 = number;
14301
+ const array_1 = array;
14302
+ const object_1$1 = object;
14303
+ function isJson(val) {
14304
+ return (0, null_1.isNull)(val)
14305
+ || (0, boolean_1.isBoolean)(val)
14306
+ || (0, string_1.isString)(val)
14307
+ || (0, number_1.isNumber)(val)
14308
+ || ((0, array_1.isArray)(val) && val.every(isJson))
14309
+ || ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
14310
+ }
14311
+ json.isJson = isJson;
14312
+ function isntJson(val) {
14313
+ return !isJson(val);
14314
+ }
14315
+ json.isntJson = isntJson;
14316
+ function isJsonable(val) {
14317
+ try {
14318
+ JSON.stringify(val);
14319
+ return true;
14320
+ }
14321
+ catch (_a) {
14322
+ return false;
14323
+ }
14324
+ }
14325
+ json.isJsonable = isJsonable;
14326
+ function isntJsonable(val) {
14327
+ return !isntJsonable();
14328
+ }
14329
+ json.isntJsonable = isntJsonable;
14330
+
14331
+ var promise = {};
14332
+
14333
+ promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
14334
+ const object_1 = object;
14335
+ const function_1 = _function;
14336
+ function isPromise(val) {
14337
+ return val instanceof Promise;
14338
+ }
14339
+ promise.isPromise = isPromise;
14340
+ function isntPromise(val) {
14341
+ return !isPromise(val);
14342
+ }
14343
+ promise.isntPromise = isntPromise;
14344
+ function isntPromiseLike(val) {
14345
+ return !isPromiseLike(val);
14346
+ }
14347
+ promise.isntPromiseLike = isntPromiseLike;
14348
+ function isPromiseLike(val) {
14349
+ return (0, object_1.isObject)(val)
14350
+ && (0, function_1.isFunction)(val.then);
14351
+ }
14352
+ promise.isPromiseLike = isPromiseLike;
14353
+
14354
+ var url = {};
14355
+
14356
+ url.isAbsoluteURL = void 0;
14357
+ function isAbsoluteURL(str) {
14358
+ try {
14359
+ new URL(str);
14360
+ return true;
14361
+ }
14362
+ catch (_a) {
14363
+ return false;
14364
+ }
14365
+ }
14366
+ url.isAbsoluteURL = isAbsoluteURL;
14367
+
14368
+ (function (exports) {
14369
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14370
+ if (k2 === undefined) k2 = k;
14371
+ var desc = Object.getOwnPropertyDescriptor(m, k);
14372
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14373
+ desc = { enumerable: true, get: function() { return m[k]; } };
14374
+ }
14375
+ Object.defineProperty(o, k2, desc);
14376
+ }) : (function(o, m, k, k2) {
14377
+ if (k2 === undefined) k2 = k;
14378
+ o[k2] = m[k];
14379
+ }));
14380
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
14381
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
14382
+ };__exportStar(array, exports);
14383
+ __exportStar(asyncIterable, exports);
14384
+ __exportStar(bigint, exports);
14385
+ __exportStar(boolean, exports);
14386
+ __exportStar(char, exports);
14387
+ __exportStar(date, exports);
14388
+ __exportStar(_enum, exports);
14389
+ __exportStar(error, exports);
14390
+ __exportStar(falsy, exports);
14391
+ __exportStar(_function, exports);
14392
+ __exportStar(iterable, exports);
14393
+ __exportStar(json, exports);
14394
+ __exportStar(_null, exports);
14395
+ __exportStar(number, exports);
14396
+ __exportStar(object, exports);
14397
+ __exportStar(promise, exports);
14398
+ __exportStar(string, exports);
14399
+ __exportStar(_undefined, exports);
14400
+ __exportStar(url, exports);
14401
+
14402
+ } (es2018));
14403
+
13621
14404
  (function (exports) {
13622
14405
  exports.BadEventError = exports.ObservableFiniteStateMachine = void 0;
13623
14406
  const finite_state_machine_1 = finiteStateMachine;
13624
14407
  const rxjs_1 = cjs;
13625
- const types_1 = es2018$7;
14408
+ const types_1 = es2018;
13626
14409
  class ObservableFiniteStateMachine extends finite_state_machine_1.FiniteStateMachine {
13627
14410
  constructor() {
13628
14411
  super(...arguments);
@@ -13674,11 +14457,11 @@ exports.BadEventError = exports.ObservableFiniteStateMachine = void 0;
13674
14457
  __exportStar(finiteStateMachine, exports);
13675
14458
  __exportStar(observableFiniteStateMachine, exports);
13676
14459
 
13677
- } (es2018$2));
14460
+ } (es2018$3));
13678
14461
 
13679
14462
  function useFiniteStateMachine(schema, initialState) {
13680
14463
  const forceUpdate = useForceUpdate();
13681
- const fsm = react.exports.useMemo(() => new es2018$2.ObservableFiniteStateMachine(schema, initialState), [schema]);
14464
+ const fsm = react.exports.useMemo(() => new es2018$3.ObservableFiniteStateMachine(schema, initialState), [schema, initialState]);
13682
14465
  react.exports.useEffect(() => {
13683
14466
  const observable = fsm.observeStateChanges();
13684
14467
  const subscription = observable.subscribe(() => forceUpdate());
@@ -13687,6 +14470,6 @@ function useFiniteStateMachine(schema, initialState) {
13687
14470
  return fsm;
13688
14471
  }
13689
14472
 
13690
- var ObservableFiniteStateMachine = es2018$2.ObservableFiniteStateMachine;
13691
- export { ObservableFiniteStateMachine, useFiniteStateMachine, useForceUpdate, useIncrement, useIsFirstRender, useIsMounted, useMount, useMultipleSelection, useRenderCounter, useResizeObserver, useSingleSelection, useStateCycle, useStep, useToggle, useUpdateEffect };
14473
+ var ObservableFiniteStateMachine = es2018$3.ObservableFiniteStateMachine;
14474
+ export { ObservableFiniteStateMachine, useFiniteStateMachine, useForceUpdate, useIIFE, useIncrement, useIsFirstRender, useIsMounted, useMount, useMultipleSelection, useRenderCounter, useResizeObserver, useSingleSelection, useStateCycle, useStep, useToggle, useUnmount, useUpdateEffect };
13692
14475
  //# sourceMappingURL=index.mjs.map