extra-react-hooks 0.1.14 → 0.2.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.
- package/README.md +8 -3
- package/dist/es2015/index.min.mjs +2 -2
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +1188 -449
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +1188 -448
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +3 -3
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +2 -2
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +1188 -449
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +1188 -448
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +3 -3
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/index.d.ts +1 -0
- package/lib/es2015/index.js +1 -0
- package/lib/es2015/index.js.map +1 -1
- package/lib/es2015/use-increment.js +5 -5
- package/lib/es2015/use-increment.js.map +1 -1
- package/lib/es2015/use-multiple-selection.d.ts +1 -1
- package/lib/es2015/use-multiple-selection.js +3 -3
- package/lib/es2015/use-multiple-selection.js.map +1 -1
- package/lib/es2015/use-render-counter.d.ts +1 -0
- package/lib/es2015/use-render-counter.js +11 -0
- package/lib/es2015/use-render-counter.js.map +1 -0
- package/lib/es2015/use-single-selection.d.ts +2 -2
- package/lib/es2015/use-single-selection.js +3 -3
- package/lib/es2015/use-single-selection.js.map +1 -1
- package/lib/es2015/use-state-cycle.js +5 -5
- package/lib/es2015/use-state-cycle.js.map +1 -1
- package/lib/es2015/use-step.js +21 -23
- package/lib/es2015/use-step.js.map +1 -1
- package/lib/es2015/use-toggle.js +3 -1
- package/lib/es2015/use-toggle.js.map +1 -1
- package/lib/es2018/index.d.ts +1 -0
- package/lib/es2018/index.js +1 -0
- package/lib/es2018/index.js.map +1 -1
- package/lib/es2018/use-increment.js +5 -5
- package/lib/es2018/use-increment.js.map +1 -1
- package/lib/es2018/use-multiple-selection.d.ts +1 -1
- package/lib/es2018/use-multiple-selection.js +3 -3
- package/lib/es2018/use-multiple-selection.js.map +1 -1
- package/lib/es2018/use-render-counter.d.ts +1 -0
- package/lib/es2018/use-render-counter.js +11 -0
- package/lib/es2018/use-render-counter.js.map +1 -0
- package/lib/es2018/use-single-selection.d.ts +2 -2
- package/lib/es2018/use-single-selection.js +3 -3
- package/lib/es2018/use-single-selection.js.map +1 -1
- package/lib/es2018/use-state-cycle.js +5 -5
- package/lib/es2018/use-state-cycle.js.map +1 -1
- package/lib/es2018/use-step.js +21 -23
- package/lib/es2018/use-step.js.map +1 -1
- package/lib/es2018/use-toggle.js +3 -1
- package/lib/es2018/use-toggle.js.map +1 -1
- package/package.json +3 -2
package/dist/es2015/index.mjs
CHANGED
|
@@ -2485,13 +2485,13 @@ function requireReact_development () {
|
|
|
2485
2485
|
|
|
2486
2486
|
function useIncrement(initialValue) {
|
|
2487
2487
|
const [value, setValue] = react.exports.useState(initialValue);
|
|
2488
|
-
|
|
2488
|
+
return [value, increment, reset];
|
|
2489
|
+
function increment(step = 1) {
|
|
2489
2490
|
setValue(value => value + step);
|
|
2490
|
-
}
|
|
2491
|
-
|
|
2491
|
+
}
|
|
2492
|
+
function reset() {
|
|
2492
2493
|
setValue(initialValue);
|
|
2493
|
-
}
|
|
2494
|
-
return [value, increment, reset];
|
|
2494
|
+
}
|
|
2495
2495
|
}
|
|
2496
2496
|
|
|
2497
2497
|
function useMount(effect) {
|
|
@@ -2529,6 +2529,12 @@ function useIsFirstRender() {
|
|
|
2529
2529
|
return () => state.current === State.First;
|
|
2530
2530
|
}
|
|
2531
2531
|
|
|
2532
|
+
function useRenderCounter() {
|
|
2533
|
+
const counter = react.exports.useRef(0);
|
|
2534
|
+
counter.current++;
|
|
2535
|
+
return counter.current;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2532
2538
|
function useUpdateEffect(effect, deps) {
|
|
2533
2539
|
const isFirstRender = useIsFirstRender();
|
|
2534
2540
|
react.exports.useEffect(() => {
|
|
@@ -2538,227 +2544,227 @@ function useUpdateEffect(effect, deps) {
|
|
|
2538
2544
|
}, deps);
|
|
2539
2545
|
}
|
|
2540
2546
|
|
|
2541
|
-
var es2018$
|
|
2547
|
+
var es2018$9 = {};
|
|
2542
2548
|
|
|
2543
|
-
var array = {};
|
|
2549
|
+
var array$2 = {};
|
|
2544
2550
|
|
|
2545
|
-
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
2546
|
-
function isArray$
|
|
2551
|
+
array$2.isntEmptyArray = array$2.isEmptyArray = array$2.isntArray = array$2.isArray = void 0;
|
|
2552
|
+
function isArray$5(val) {
|
|
2547
2553
|
return Array.isArray(val);
|
|
2548
2554
|
}
|
|
2549
|
-
array.isArray = isArray$
|
|
2550
|
-
function isntArray(val) {
|
|
2551
|
-
return !isArray$
|
|
2555
|
+
array$2.isArray = isArray$5;
|
|
2556
|
+
function isntArray$2(val) {
|
|
2557
|
+
return !isArray$5(val);
|
|
2552
2558
|
}
|
|
2553
|
-
array.isntArray = isntArray;
|
|
2554
|
-
function isEmptyArray(val) {
|
|
2559
|
+
array$2.isntArray = isntArray$2;
|
|
2560
|
+
function isEmptyArray$2(val) {
|
|
2555
2561
|
return val.length === 0;
|
|
2556
2562
|
}
|
|
2557
|
-
array.isEmptyArray = isEmptyArray;
|
|
2558
|
-
function isntEmptyArray(val) {
|
|
2563
|
+
array$2.isEmptyArray = isEmptyArray$2;
|
|
2564
|
+
function isntEmptyArray$2(val) {
|
|
2559
2565
|
return val.length !== 0;
|
|
2560
2566
|
}
|
|
2561
|
-
array.isntEmptyArray = isntEmptyArray;
|
|
2567
|
+
array$2.isntEmptyArray = isntEmptyArray$2;
|
|
2562
2568
|
|
|
2563
|
-
var asyncIterable = {};
|
|
2569
|
+
var asyncIterable$2 = {};
|
|
2564
2570
|
|
|
2565
|
-
var _null = {};
|
|
2571
|
+
var _null$2 = {};
|
|
2566
2572
|
|
|
2567
|
-
_null.isntNull = _null.isNull = void 0;
|
|
2568
|
-
function isNull(val) {
|
|
2573
|
+
_null$2.isntNull = _null$2.isNull = void 0;
|
|
2574
|
+
function isNull$2(val) {
|
|
2569
2575
|
return val === null;
|
|
2570
2576
|
}
|
|
2571
|
-
_null.isNull = isNull;
|
|
2572
|
-
function isntNull(val) {
|
|
2573
|
-
return !isNull(val);
|
|
2577
|
+
_null$2.isNull = isNull$2;
|
|
2578
|
+
function isntNull$2(val) {
|
|
2579
|
+
return !isNull$2(val);
|
|
2574
2580
|
}
|
|
2575
|
-
_null.isntNull = isntNull;
|
|
2581
|
+
_null$2.isntNull = isntNull$2;
|
|
2576
2582
|
|
|
2577
|
-
var _undefined = {};
|
|
2583
|
+
var _undefined$2 = {};
|
|
2578
2584
|
|
|
2579
|
-
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
2580
|
-
function isUndefined(val) {
|
|
2585
|
+
_undefined$2.isntUndefined = _undefined$2.isUndefined = void 0;
|
|
2586
|
+
function isUndefined$2(val) {
|
|
2581
2587
|
return val === undefined;
|
|
2582
2588
|
}
|
|
2583
|
-
_undefined.isUndefined = isUndefined;
|
|
2584
|
-
function isntUndefined(val) {
|
|
2585
|
-
return !isUndefined(val);
|
|
2589
|
+
_undefined$2.isUndefined = isUndefined$2;
|
|
2590
|
+
function isntUndefined$2(val) {
|
|
2591
|
+
return !isUndefined$2(val);
|
|
2586
2592
|
}
|
|
2587
|
-
_undefined.isntUndefined = isntUndefined;
|
|
2593
|
+
_undefined$2.isntUndefined = isntUndefined$2;
|
|
2588
2594
|
|
|
2589
|
-
var _function = {};
|
|
2595
|
+
var _function$2 = {};
|
|
2590
2596
|
|
|
2591
|
-
_function.isntFunction = _function.isFunction = void 0;
|
|
2592
|
-
function isFunction$
|
|
2597
|
+
_function$2.isntFunction = _function$2.isFunction = void 0;
|
|
2598
|
+
function isFunction$4(val) {
|
|
2593
2599
|
return typeof val === 'function';
|
|
2594
2600
|
}
|
|
2595
|
-
_function.isFunction = isFunction$
|
|
2596
|
-
function isntFunction(val) {
|
|
2597
|
-
return !isFunction$
|
|
2601
|
+
_function$2.isFunction = isFunction$4;
|
|
2602
|
+
function isntFunction$2(val) {
|
|
2603
|
+
return !isFunction$4(val);
|
|
2598
2604
|
}
|
|
2599
|
-
_function.isntFunction = isntFunction;
|
|
2605
|
+
_function$2.isntFunction = isntFunction$2;
|
|
2600
2606
|
|
|
2601
|
-
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
2602
|
-
const null_1$
|
|
2603
|
-
const undefined_1$
|
|
2604
|
-
const function_1$
|
|
2605
|
-
function isAsyncIterable$
|
|
2606
|
-
return (0, null_1$
|
|
2607
|
-
&& (0, undefined_1$
|
|
2608
|
-
&& (0, function_1$
|
|
2607
|
+
asyncIterable$2.isntAsyncIterable = asyncIterable$2.isAsyncIterable = void 0;
|
|
2608
|
+
const null_1$8 = _null$2;
|
|
2609
|
+
const undefined_1$5 = _undefined$2;
|
|
2610
|
+
const function_1$8 = _function$2;
|
|
2611
|
+
function isAsyncIterable$4(val) {
|
|
2612
|
+
return (0, null_1$8.isntNull)(val)
|
|
2613
|
+
&& (0, undefined_1$5.isntUndefined)(val)
|
|
2614
|
+
&& (0, function_1$8.isFunction)(val[Symbol.asyncIterator]);
|
|
2609
2615
|
}
|
|
2610
|
-
asyncIterable.isAsyncIterable = isAsyncIterable$
|
|
2611
|
-
function isntAsyncIterable(val) {
|
|
2612
|
-
return !isAsyncIterable$
|
|
2616
|
+
asyncIterable$2.isAsyncIterable = isAsyncIterable$4;
|
|
2617
|
+
function isntAsyncIterable$2(val) {
|
|
2618
|
+
return !isAsyncIterable$4(val);
|
|
2613
2619
|
}
|
|
2614
|
-
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
2620
|
+
asyncIterable$2.isntAsyncIterable = isntAsyncIterable$2;
|
|
2615
2621
|
|
|
2616
|
-
var bigint = {};
|
|
2622
|
+
var bigint$2 = {};
|
|
2617
2623
|
|
|
2618
|
-
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
2619
|
-
function isBigInt(val) {
|
|
2624
|
+
bigint$2.isntBigInt = bigint$2.isBigInt = void 0;
|
|
2625
|
+
function isBigInt$2(val) {
|
|
2620
2626
|
return typeof val === 'bigint';
|
|
2621
2627
|
}
|
|
2622
|
-
bigint.isBigInt = isBigInt;
|
|
2623
|
-
function isntBigInt(val) {
|
|
2624
|
-
return !isBigInt(val);
|
|
2628
|
+
bigint$2.isBigInt = isBigInt$2;
|
|
2629
|
+
function isntBigInt$2(val) {
|
|
2630
|
+
return !isBigInt$2(val);
|
|
2625
2631
|
}
|
|
2626
|
-
bigint.isntBigInt = isntBigInt;
|
|
2632
|
+
bigint$2.isntBigInt = isntBigInt$2;
|
|
2627
2633
|
|
|
2628
|
-
var boolean = {};
|
|
2634
|
+
var boolean$2 = {};
|
|
2629
2635
|
|
|
2630
|
-
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
2631
|
-
function isBoolean(val) {
|
|
2636
|
+
boolean$2.isntBoolean = boolean$2.isBoolean = void 0;
|
|
2637
|
+
function isBoolean$2(val) {
|
|
2632
2638
|
return typeof val === 'boolean';
|
|
2633
2639
|
}
|
|
2634
|
-
boolean.isBoolean = isBoolean;
|
|
2635
|
-
function isntBoolean(val) {
|
|
2636
|
-
return !isBoolean(val);
|
|
2640
|
+
boolean$2.isBoolean = isBoolean$2;
|
|
2641
|
+
function isntBoolean$2(val) {
|
|
2642
|
+
return !isBoolean$2(val);
|
|
2637
2643
|
}
|
|
2638
|
-
boolean.isntBoolean = isntBoolean;
|
|
2644
|
+
boolean$2.isntBoolean = isntBoolean$2;
|
|
2639
2645
|
|
|
2640
|
-
var char = {};
|
|
2646
|
+
var char$2 = {};
|
|
2641
2647
|
|
|
2642
|
-
var string = {};
|
|
2648
|
+
var string$2 = {};
|
|
2643
2649
|
|
|
2644
|
-
string.isntString = string.isString = void 0;
|
|
2645
|
-
function isString(val) {
|
|
2650
|
+
string$2.isntString = string$2.isString = void 0;
|
|
2651
|
+
function isString$2(val) {
|
|
2646
2652
|
return typeof val === 'string';
|
|
2647
2653
|
}
|
|
2648
|
-
string.isString = isString;
|
|
2649
|
-
function isntString(val) {
|
|
2650
|
-
return !isString(val);
|
|
2654
|
+
string$2.isString = isString$2;
|
|
2655
|
+
function isntString$2(val) {
|
|
2656
|
+
return !isString$2(val);
|
|
2651
2657
|
}
|
|
2652
|
-
string.isntString = isntString;
|
|
2658
|
+
string$2.isntString = isntString$2;
|
|
2653
2659
|
|
|
2654
|
-
char.isntChar = char.isChar = void 0;
|
|
2655
|
-
const string_1$
|
|
2656
|
-
function isChar(val) {
|
|
2657
|
-
return (0, string_1$
|
|
2660
|
+
char$2.isntChar = char$2.isChar = void 0;
|
|
2661
|
+
const string_1$5 = string$2;
|
|
2662
|
+
function isChar$2(val) {
|
|
2663
|
+
return (0, string_1$5.isString)(val)
|
|
2658
2664
|
&& val.length === 1;
|
|
2659
2665
|
}
|
|
2660
|
-
char.isChar = isChar;
|
|
2661
|
-
function isntChar(val) {
|
|
2662
|
-
return !isChar(val);
|
|
2666
|
+
char$2.isChar = isChar$2;
|
|
2667
|
+
function isntChar$2(val) {
|
|
2668
|
+
return !isChar$2(val);
|
|
2663
2669
|
}
|
|
2664
|
-
char.isntChar = isntChar;
|
|
2670
|
+
char$2.isntChar = isntChar$2;
|
|
2665
2671
|
|
|
2666
|
-
var date = {};
|
|
2672
|
+
var date$2 = {};
|
|
2667
2673
|
|
|
2668
|
-
date.isntDate = date.isDate = void 0;
|
|
2669
|
-
function isDate$
|
|
2674
|
+
date$2.isntDate = date$2.isDate = void 0;
|
|
2675
|
+
function isDate$3(val) {
|
|
2670
2676
|
return val instanceof Date;
|
|
2671
2677
|
}
|
|
2672
|
-
date.isDate = isDate$
|
|
2673
|
-
function isntDate(val) {
|
|
2674
|
-
return !isDate$
|
|
2678
|
+
date$2.isDate = isDate$3;
|
|
2679
|
+
function isntDate$2(val) {
|
|
2680
|
+
return !isDate$3(val);
|
|
2675
2681
|
}
|
|
2676
|
-
date.isntDate = isntDate;
|
|
2682
|
+
date$2.isntDate = isntDate$2;
|
|
2677
2683
|
|
|
2678
|
-
var _enum = {};
|
|
2684
|
+
var _enum$2 = {};
|
|
2679
2685
|
|
|
2680
|
-
_enum.inEnum = void 0;
|
|
2681
|
-
function inEnum(val, _enum) {
|
|
2686
|
+
_enum$2.inEnum = void 0;
|
|
2687
|
+
function inEnum$2(val, _enum) {
|
|
2682
2688
|
return Object.values(_enum).includes(val);
|
|
2683
2689
|
}
|
|
2684
|
-
_enum.inEnum = inEnum;
|
|
2690
|
+
_enum$2.inEnum = inEnum$2;
|
|
2685
2691
|
|
|
2686
|
-
var error = {};
|
|
2692
|
+
var error$2 = {};
|
|
2687
2693
|
|
|
2688
|
-
error.isntError = error.isError = void 0;
|
|
2689
|
-
function isError(val) {
|
|
2694
|
+
error$2.isntError = error$2.isError = void 0;
|
|
2695
|
+
function isError$2(val) {
|
|
2690
2696
|
return val instanceof Error;
|
|
2691
2697
|
}
|
|
2692
|
-
error.isError = isError;
|
|
2693
|
-
function isntError(val) {
|
|
2694
|
-
return !isError(val);
|
|
2698
|
+
error$2.isError = isError$2;
|
|
2699
|
+
function isntError$2(val) {
|
|
2700
|
+
return !isError$2(val);
|
|
2695
2701
|
}
|
|
2696
|
-
error.isntError = isntError;
|
|
2702
|
+
error$2.isntError = isntError$2;
|
|
2697
2703
|
|
|
2698
|
-
var falsy = {};
|
|
2704
|
+
var falsy$2 = {};
|
|
2699
2705
|
|
|
2700
|
-
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
2701
|
-
function isFalsy(val) {
|
|
2706
|
+
falsy$2.isntFalsy = falsy$2.isFalsy = void 0;
|
|
2707
|
+
function isFalsy$2(val) {
|
|
2702
2708
|
return !val;
|
|
2703
2709
|
}
|
|
2704
|
-
falsy.isFalsy = isFalsy;
|
|
2705
|
-
function isntFalsy(val) {
|
|
2706
|
-
return !isFalsy(val);
|
|
2710
|
+
falsy$2.isFalsy = isFalsy$2;
|
|
2711
|
+
function isntFalsy$2(val) {
|
|
2712
|
+
return !isFalsy$2(val);
|
|
2707
2713
|
}
|
|
2708
|
-
falsy.isntFalsy = isntFalsy;
|
|
2714
|
+
falsy$2.isntFalsy = isntFalsy$2;
|
|
2709
2715
|
|
|
2710
|
-
var iterable = {};
|
|
2716
|
+
var iterable$2 = {};
|
|
2711
2717
|
|
|
2712
|
-
iterable.isntIterable = iterable.isIterable = void 0;
|
|
2713
|
-
const null_1$
|
|
2714
|
-
const undefined_1 = _undefined;
|
|
2715
|
-
const function_1$
|
|
2716
|
-
function isIterable$
|
|
2717
|
-
return (0, null_1$
|
|
2718
|
-
&& (0, undefined_1.isntUndefined)(val)
|
|
2719
|
-
&& (0, function_1$
|
|
2718
|
+
iterable$2.isntIterable = iterable$2.isIterable = void 0;
|
|
2719
|
+
const null_1$7 = _null$2;
|
|
2720
|
+
const undefined_1$4 = _undefined$2;
|
|
2721
|
+
const function_1$7 = _function$2;
|
|
2722
|
+
function isIterable$4(val) {
|
|
2723
|
+
return (0, null_1$7.isntNull)(val)
|
|
2724
|
+
&& (0, undefined_1$4.isntUndefined)(val)
|
|
2725
|
+
&& (0, function_1$7.isFunction)(val[Symbol.iterator]);
|
|
2720
2726
|
}
|
|
2721
|
-
iterable.isIterable = isIterable$
|
|
2722
|
-
function isntIterable(val) {
|
|
2723
|
-
return !isIterable$
|
|
2727
|
+
iterable$2.isIterable = isIterable$4;
|
|
2728
|
+
function isntIterable$2(val) {
|
|
2729
|
+
return !isIterable$4(val);
|
|
2724
2730
|
}
|
|
2725
|
-
iterable.isntIterable = isntIterable;
|
|
2731
|
+
iterable$2.isntIterable = isntIterable$2;
|
|
2726
2732
|
|
|
2727
|
-
var json = {};
|
|
2733
|
+
var json$2 = {};
|
|
2728
2734
|
|
|
2729
|
-
var number = {};
|
|
2735
|
+
var number$2 = {};
|
|
2730
2736
|
|
|
2731
|
-
number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
|
|
2732
|
-
function isNumber(val) {
|
|
2737
|
+
number$2.isntNaN = number$2.isNaN = number$2.isNegativeInfinity = number$2.isPositiveInfinity = number$2.isFinite = number$2.isntNumber = number$2.isNumber = void 0;
|
|
2738
|
+
function isNumber$2(val) {
|
|
2733
2739
|
return typeof val === 'number';
|
|
2734
2740
|
}
|
|
2735
|
-
number.isNumber = isNumber;
|
|
2736
|
-
function isntNumber(val) {
|
|
2737
|
-
return !isNumber(val);
|
|
2741
|
+
number$2.isNumber = isNumber$2;
|
|
2742
|
+
function isntNumber$2(val) {
|
|
2743
|
+
return !isNumber$2(val);
|
|
2738
2744
|
}
|
|
2739
|
-
number.isntNumber = isntNumber;
|
|
2740
|
-
function isFinite(val) {
|
|
2745
|
+
number$2.isntNumber = isntNumber$2;
|
|
2746
|
+
function isFinite$2(val) {
|
|
2741
2747
|
return Number.isFinite(val);
|
|
2742
2748
|
}
|
|
2743
|
-
number.isFinite = isFinite;
|
|
2744
|
-
function isPositiveInfinity(val) {
|
|
2749
|
+
number$2.isFinite = isFinite$2;
|
|
2750
|
+
function isPositiveInfinity$2(val) {
|
|
2745
2751
|
return val === Infinity;
|
|
2746
2752
|
}
|
|
2747
|
-
number.isPositiveInfinity = isPositiveInfinity;
|
|
2748
|
-
function isNegativeInfinity(val) {
|
|
2753
|
+
number$2.isPositiveInfinity = isPositiveInfinity$2;
|
|
2754
|
+
function isNegativeInfinity$2(val) {
|
|
2749
2755
|
return val === -Infinity;
|
|
2750
2756
|
}
|
|
2751
|
-
number.isNegativeInfinity = isNegativeInfinity;
|
|
2752
|
-
function isNaN$
|
|
2757
|
+
number$2.isNegativeInfinity = isNegativeInfinity$2;
|
|
2758
|
+
function isNaN$3(val) {
|
|
2753
2759
|
return Number.isNaN(val);
|
|
2754
2760
|
}
|
|
2755
|
-
number.isNaN = isNaN$
|
|
2756
|
-
function isntNaN(val) {
|
|
2757
|
-
return !isNaN$
|
|
2761
|
+
number$2.isNaN = isNaN$3;
|
|
2762
|
+
function isntNaN$2(val) {
|
|
2763
|
+
return !isNaN$3(val);
|
|
2758
2764
|
}
|
|
2759
|
-
number.isntNaN = isntNaN;
|
|
2765
|
+
number$2.isntNaN = isntNaN$2;
|
|
2760
2766
|
|
|
2761
|
-
var object = {};
|
|
2767
|
+
var object$2 = {};
|
|
2762
2768
|
|
|
2763
2769
|
/** Detect free variable `global` from Node.js. */
|
|
2764
2770
|
|
|
@@ -2986,7 +2992,7 @@ var objectCtorString = funcToString.call(Object);
|
|
|
2986
2992
|
* _.isPlainObject(Object.create(null));
|
|
2987
2993
|
* // => true
|
|
2988
2994
|
*/
|
|
2989
|
-
function isPlainObject$
|
|
2995
|
+
function isPlainObject$3(value) {
|
|
2990
2996
|
if (!isObjectLike(value) || baseGetTag(value) != objectTag) {
|
|
2991
2997
|
return false;
|
|
2992
2998
|
}
|
|
@@ -2999,59 +3005,59 @@ function isPlainObject$1(value) {
|
|
|
2999
3005
|
funcToString.call(Ctor) == objectCtorString;
|
|
3000
3006
|
}
|
|
3001
3007
|
|
|
3002
|
-
var isPlainObject_1$
|
|
3008
|
+
var isPlainObject_1$3 = isPlainObject$3;
|
|
3003
3009
|
|
|
3004
|
-
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
3010
|
+
var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
3005
3011
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3006
|
-
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
3007
|
-
const isPlainObject_1 = __importDefault(isPlainObject_1$
|
|
3008
|
-
function isObject(val) {
|
|
3012
|
+
};object$2.isntEmptyObject = object$2.isEmptyObject = object$2.isntPlainObject = object$2.isPlainObject = object$2.isntObject = object$2.isObject = void 0;
|
|
3013
|
+
const isPlainObject_1$2 = __importDefault$2(isPlainObject_1$3);
|
|
3014
|
+
function isObject$2(val) {
|
|
3009
3015
|
return val !== null
|
|
3010
3016
|
&& typeof val === 'object';
|
|
3011
3017
|
}
|
|
3012
|
-
object.isObject = isObject;
|
|
3013
|
-
function isntObject(val) {
|
|
3014
|
-
return !isObject(val);
|
|
3018
|
+
object$2.isObject = isObject$2;
|
|
3019
|
+
function isntObject$2(val) {
|
|
3020
|
+
return !isObject$2(val);
|
|
3015
3021
|
}
|
|
3016
|
-
object.isntObject = isntObject;
|
|
3017
|
-
function isPlainObject(val) {
|
|
3018
|
-
return (0, isPlainObject_1.default)(val);
|
|
3022
|
+
object$2.isntObject = isntObject$2;
|
|
3023
|
+
function isPlainObject$2(val) {
|
|
3024
|
+
return (0, isPlainObject_1$2.default)(val);
|
|
3019
3025
|
}
|
|
3020
|
-
object.isPlainObject = isPlainObject;
|
|
3021
|
-
function isntPlainObject(val) {
|
|
3022
|
-
return !isPlainObject(val);
|
|
3026
|
+
object$2.isPlainObject = isPlainObject$2;
|
|
3027
|
+
function isntPlainObject$2(val) {
|
|
3028
|
+
return !isPlainObject$2(val);
|
|
3023
3029
|
}
|
|
3024
|
-
object.isntPlainObject = isntPlainObject;
|
|
3025
|
-
function isEmptyObject(val) {
|
|
3030
|
+
object$2.isntPlainObject = isntPlainObject$2;
|
|
3031
|
+
function isEmptyObject$2(val) {
|
|
3026
3032
|
return Object.keys(val).length === 0;
|
|
3027
3033
|
}
|
|
3028
|
-
object.isEmptyObject = isEmptyObject;
|
|
3029
|
-
function isntEmptyObject(val) {
|
|
3034
|
+
object$2.isEmptyObject = isEmptyObject$2;
|
|
3035
|
+
function isntEmptyObject$2(val) {
|
|
3030
3036
|
return Object.keys(val).length !== 0;
|
|
3031
3037
|
}
|
|
3032
|
-
object.isntEmptyObject = isntEmptyObject;
|
|
3033
|
-
|
|
3034
|
-
json.isntJsonable = json.isJsonable = json.isntJson = json.isJson = void 0;
|
|
3035
|
-
const null_1 = _null;
|
|
3036
|
-
const boolean_1 = boolean;
|
|
3037
|
-
const string_1 = string;
|
|
3038
|
-
const number_1 = number;
|
|
3039
|
-
const array_1 = array;
|
|
3040
|
-
const object_1$
|
|
3041
|
-
function isJson(val) {
|
|
3042
|
-
return (0, null_1.isNull)(val)
|
|
3043
|
-
|| (0, boolean_1.isBoolean)(val)
|
|
3044
|
-
|| (0, string_1.isString)(val)
|
|
3045
|
-
|| (0, number_1.isNumber)(val)
|
|
3046
|
-
|| ((0, array_1.isArray)(val) && val.every(isJson))
|
|
3047
|
-
|| ((0, object_1$
|
|
3048
|
-
}
|
|
3049
|
-
json.isJson = isJson;
|
|
3050
|
-
function isntJson(val) {
|
|
3051
|
-
return !isJson(val);
|
|
3052
|
-
}
|
|
3053
|
-
json.isntJson = isntJson;
|
|
3054
|
-
function isJsonable(val) {
|
|
3038
|
+
object$2.isntEmptyObject = isntEmptyObject$2;
|
|
3039
|
+
|
|
3040
|
+
json$2.isntJsonable = json$2.isJsonable = json$2.isntJson = json$2.isJson = void 0;
|
|
3041
|
+
const null_1$6 = _null$2;
|
|
3042
|
+
const boolean_1$2 = boolean$2;
|
|
3043
|
+
const string_1$4 = string$2;
|
|
3044
|
+
const number_1$2 = number$2;
|
|
3045
|
+
const array_1$2 = array$2;
|
|
3046
|
+
const object_1$5 = object$2;
|
|
3047
|
+
function isJson$2(val) {
|
|
3048
|
+
return (0, null_1$6.isNull)(val)
|
|
3049
|
+
|| (0, boolean_1$2.isBoolean)(val)
|
|
3050
|
+
|| (0, string_1$4.isString)(val)
|
|
3051
|
+
|| (0, number_1$2.isNumber)(val)
|
|
3052
|
+
|| ((0, array_1$2.isArray)(val) && val.every(isJson$2))
|
|
3053
|
+
|| ((0, object_1$5.isPlainObject)(val) && Object.values(val).every(isJson$2));
|
|
3054
|
+
}
|
|
3055
|
+
json$2.isJson = isJson$2;
|
|
3056
|
+
function isntJson$2(val) {
|
|
3057
|
+
return !isJson$2(val);
|
|
3058
|
+
}
|
|
3059
|
+
json$2.isntJson = isntJson$2;
|
|
3060
|
+
function isJsonable$2(val) {
|
|
3055
3061
|
try {
|
|
3056
3062
|
JSON.stringify(val);
|
|
3057
3063
|
return true;
|
|
@@ -3060,39 +3066,39 @@ function isJsonable(val) {
|
|
|
3060
3066
|
return false;
|
|
3061
3067
|
}
|
|
3062
3068
|
}
|
|
3063
|
-
json.isJsonable = isJsonable;
|
|
3064
|
-
function isntJsonable(val) {
|
|
3065
|
-
return !isntJsonable();
|
|
3069
|
+
json$2.isJsonable = isJsonable$2;
|
|
3070
|
+
function isntJsonable$2(val) {
|
|
3071
|
+
return !isntJsonable$2();
|
|
3066
3072
|
}
|
|
3067
|
-
json.isntJsonable = isntJsonable;
|
|
3073
|
+
json$2.isntJsonable = isntJsonable$2;
|
|
3068
3074
|
|
|
3069
|
-
var promise = {};
|
|
3075
|
+
var promise$2 = {};
|
|
3070
3076
|
|
|
3071
|
-
promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
|
|
3072
|
-
const object_1 = object;
|
|
3073
|
-
const function_1 = _function;
|
|
3074
|
-
function isPromise$
|
|
3077
|
+
promise$2.isPromiseLike = promise$2.isntPromiseLike = promise$2.isntPromise = promise$2.isPromise = void 0;
|
|
3078
|
+
const object_1$4 = object$2;
|
|
3079
|
+
const function_1$6 = _function$2;
|
|
3080
|
+
function isPromise$4(val) {
|
|
3075
3081
|
return val instanceof Promise;
|
|
3076
3082
|
}
|
|
3077
|
-
promise.isPromise = isPromise$
|
|
3078
|
-
function isntPromise(val) {
|
|
3079
|
-
return !isPromise$
|
|
3083
|
+
promise$2.isPromise = isPromise$4;
|
|
3084
|
+
function isntPromise$2(val) {
|
|
3085
|
+
return !isPromise$4(val);
|
|
3080
3086
|
}
|
|
3081
|
-
promise.isntPromise = isntPromise;
|
|
3082
|
-
function isntPromiseLike(val) {
|
|
3083
|
-
return !isPromiseLike(val);
|
|
3087
|
+
promise$2.isntPromise = isntPromise$2;
|
|
3088
|
+
function isntPromiseLike$2(val) {
|
|
3089
|
+
return !isPromiseLike$2(val);
|
|
3084
3090
|
}
|
|
3085
|
-
promise.isntPromiseLike = isntPromiseLike;
|
|
3086
|
-
function isPromiseLike(val) {
|
|
3087
|
-
return (0, object_1.isObject)(val)
|
|
3088
|
-
&& (0, function_1.isFunction)(val.then);
|
|
3091
|
+
promise$2.isntPromiseLike = isntPromiseLike$2;
|
|
3092
|
+
function isPromiseLike$2(val) {
|
|
3093
|
+
return (0, object_1$4.isObject)(val)
|
|
3094
|
+
&& (0, function_1$6.isFunction)(val.then);
|
|
3089
3095
|
}
|
|
3090
|
-
promise.isPromiseLike = isPromiseLike;
|
|
3096
|
+
promise$2.isPromiseLike = isPromiseLike$2;
|
|
3091
3097
|
|
|
3092
|
-
var url = {};
|
|
3098
|
+
var url$2 = {};
|
|
3093
3099
|
|
|
3094
|
-
url.isAbsoluteURL = void 0;
|
|
3095
|
-
function isAbsoluteURL(str) {
|
|
3100
|
+
url$2.isAbsoluteURL = void 0;
|
|
3101
|
+
function isAbsoluteURL$2(str) {
|
|
3096
3102
|
try {
|
|
3097
3103
|
new URL(str);
|
|
3098
3104
|
return true;
|
|
@@ -3101,7 +3107,19 @@ function isAbsoluteURL(str) {
|
|
|
3101
3107
|
return false;
|
|
3102
3108
|
}
|
|
3103
3109
|
}
|
|
3104
|
-
url.isAbsoluteURL = isAbsoluteURL;
|
|
3110
|
+
url$2.isAbsoluteURL = isAbsoluteURL$2;
|
|
3111
|
+
|
|
3112
|
+
var regexp = {};
|
|
3113
|
+
|
|
3114
|
+
regexp.isntRegExp = regexp.isRegExp = void 0;
|
|
3115
|
+
function isRegExp(val) {
|
|
3116
|
+
return val instanceof RegExp;
|
|
3117
|
+
}
|
|
3118
|
+
regexp.isRegExp = isRegExp;
|
|
3119
|
+
function isntRegExp(val) {
|
|
3120
|
+
return !isRegExp(val);
|
|
3121
|
+
}
|
|
3122
|
+
regexp.isntRegExp = isntRegExp;
|
|
3105
3123
|
|
|
3106
3124
|
(function (exports) {
|
|
3107
3125
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -3117,39 +3135,40 @@ url.isAbsoluteURL = isAbsoluteURL;
|
|
|
3117
3135
|
}));
|
|
3118
3136
|
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3119
3137
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3120
|
-
};__exportStar(array, exports);
|
|
3121
|
-
__exportStar(asyncIterable, exports);
|
|
3122
|
-
__exportStar(bigint, exports);
|
|
3123
|
-
__exportStar(boolean, exports);
|
|
3124
|
-
__exportStar(char, exports);
|
|
3125
|
-
__exportStar(date, exports);
|
|
3126
|
-
__exportStar(_enum, exports);
|
|
3127
|
-
__exportStar(error, exports);
|
|
3128
|
-
__exportStar(falsy, exports);
|
|
3129
|
-
__exportStar(_function, exports);
|
|
3130
|
-
__exportStar(iterable, exports);
|
|
3131
|
-
__exportStar(json, exports);
|
|
3132
|
-
__exportStar(_null, exports);
|
|
3133
|
-
__exportStar(number, exports);
|
|
3134
|
-
__exportStar(object, exports);
|
|
3135
|
-
__exportStar(promise, exports);
|
|
3136
|
-
__exportStar(string, exports);
|
|
3137
|
-
__exportStar(_undefined, exports);
|
|
3138
|
-
__exportStar(url, exports);
|
|
3138
|
+
};__exportStar(array$2, exports);
|
|
3139
|
+
__exportStar(asyncIterable$2, exports);
|
|
3140
|
+
__exportStar(bigint$2, exports);
|
|
3141
|
+
__exportStar(boolean$2, exports);
|
|
3142
|
+
__exportStar(char$2, exports);
|
|
3143
|
+
__exportStar(date$2, exports);
|
|
3144
|
+
__exportStar(_enum$2, exports);
|
|
3145
|
+
__exportStar(error$2, exports);
|
|
3146
|
+
__exportStar(falsy$2, exports);
|
|
3147
|
+
__exportStar(_function$2, exports);
|
|
3148
|
+
__exportStar(iterable$2, exports);
|
|
3149
|
+
__exportStar(json$2, exports);
|
|
3150
|
+
__exportStar(_null$2, exports);
|
|
3151
|
+
__exportStar(number$2, exports);
|
|
3152
|
+
__exportStar(object$2, exports);
|
|
3153
|
+
__exportStar(promise$2, exports);
|
|
3154
|
+
__exportStar(string$2, exports);
|
|
3155
|
+
__exportStar(_undefined$2, exports);
|
|
3156
|
+
__exportStar(url$2, exports);
|
|
3157
|
+
__exportStar(regexp, exports);
|
|
3139
3158
|
|
|
3140
|
-
} (es2018$
|
|
3159
|
+
} (es2018$9));
|
|
3141
3160
|
|
|
3142
|
-
var es2018$
|
|
3161
|
+
var es2018$8 = {};
|
|
3143
3162
|
|
|
3144
3163
|
var customError = {};
|
|
3145
3164
|
|
|
3146
|
-
var es2018$
|
|
3165
|
+
var es2018$7 = {};
|
|
3147
3166
|
|
|
3148
3167
|
var middleware = {};
|
|
3149
3168
|
|
|
3150
3169
|
var chunkAsync = {};
|
|
3151
3170
|
|
|
3152
|
-
var es2018$
|
|
3171
|
+
var es2018$6 = {};
|
|
3153
3172
|
|
|
3154
3173
|
var go$1 = {};
|
|
3155
3174
|
|
|
@@ -3171,7 +3190,7 @@ go$1.go = go;
|
|
|
3171
3190
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3172
3191
|
};__exportStar(go$1, exports);
|
|
3173
3192
|
|
|
3174
|
-
} (es2018$
|
|
3193
|
+
} (es2018$6));
|
|
3175
3194
|
|
|
3176
3195
|
var hasRequiredChunkAsync;
|
|
3177
3196
|
|
|
@@ -3179,7 +3198,7 @@ function requireChunkAsync () {
|
|
|
3179
3198
|
if (hasRequiredChunkAsync) return chunkAsync;
|
|
3180
3199
|
hasRequiredChunkAsync = 1;
|
|
3181
3200
|
chunkAsync.chunkAsync = void 0;
|
|
3182
|
-
const go_1 = es2018$
|
|
3201
|
+
const go_1 = es2018$6;
|
|
3183
3202
|
const errors_1 = requireEs2018();
|
|
3184
3203
|
function chunkAsync$1(iterable, size) {
|
|
3185
3204
|
(0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
@@ -3204,47 +3223,407 @@ chunkAsync.chunkAsync = void 0;
|
|
|
3204
3223
|
|
|
3205
3224
|
var chunkByAsync$1 = {};
|
|
3206
3225
|
|
|
3207
|
-
|
|
3208
|
-
const types_1$j = es2018$7;
|
|
3209
|
-
function chunkByAsync(iterable, predicate) {
|
|
3210
|
-
if ((0, types_1$j.isAsyncIterable)(iterable)) {
|
|
3211
|
-
return chunkByAsyncIterable(iterable);
|
|
3212
|
-
}
|
|
3213
|
-
else {
|
|
3214
|
-
return chunkByIterable(iterable);
|
|
3215
|
-
}
|
|
3216
|
-
async function* chunkByAsyncIterable(iterable) {
|
|
3217
|
-
let buffer = [];
|
|
3218
|
-
let index = 0;
|
|
3219
|
-
for await (const element of iterable) {
|
|
3220
|
-
buffer.push(element);
|
|
3221
|
-
if (await predicate(element, index)) {
|
|
3222
|
-
yield buffer;
|
|
3223
|
-
buffer = [];
|
|
3224
|
-
}
|
|
3225
|
-
index++;
|
|
3226
|
-
}
|
|
3227
|
-
if (buffer.length)
|
|
3228
|
-
yield buffer;
|
|
3229
|
-
}
|
|
3230
|
-
async function* chunkByIterable(iterable) {
|
|
3231
|
-
let buffer = [];
|
|
3232
|
-
let index = 0;
|
|
3233
|
-
for (const element of iterable) {
|
|
3234
|
-
buffer.push(element);
|
|
3235
|
-
if (await predicate(element, index)) {
|
|
3236
|
-
yield buffer;
|
|
3237
|
-
buffer = [];
|
|
3238
|
-
}
|
|
3239
|
-
index++;
|
|
3240
|
-
}
|
|
3241
|
-
if (buffer.length)
|
|
3242
|
-
yield buffer;
|
|
3243
|
-
}
|
|
3244
|
-
}
|
|
3245
|
-
chunkByAsync$1.chunkByAsync = chunkByAsync;
|
|
3226
|
+
var es2018$5 = {};
|
|
3246
3227
|
|
|
3247
|
-
var
|
|
3228
|
+
var array$1 = {};
|
|
3229
|
+
|
|
3230
|
+
array$1.isntEmptyArray = array$1.isEmptyArray = array$1.isntArray = array$1.isArray = void 0;
|
|
3231
|
+
function isArray$4(val) {
|
|
3232
|
+
return Array.isArray(val);
|
|
3233
|
+
}
|
|
3234
|
+
array$1.isArray = isArray$4;
|
|
3235
|
+
function isntArray$1(val) {
|
|
3236
|
+
return !isArray$4(val);
|
|
3237
|
+
}
|
|
3238
|
+
array$1.isntArray = isntArray$1;
|
|
3239
|
+
function isEmptyArray$1(val) {
|
|
3240
|
+
return val.length === 0;
|
|
3241
|
+
}
|
|
3242
|
+
array$1.isEmptyArray = isEmptyArray$1;
|
|
3243
|
+
function isntEmptyArray$1(val) {
|
|
3244
|
+
return val.length !== 0;
|
|
3245
|
+
}
|
|
3246
|
+
array$1.isntEmptyArray = isntEmptyArray$1;
|
|
3247
|
+
|
|
3248
|
+
var asyncIterable$1 = {};
|
|
3249
|
+
|
|
3250
|
+
var _null$1 = {};
|
|
3251
|
+
|
|
3252
|
+
_null$1.isntNull = _null$1.isNull = void 0;
|
|
3253
|
+
function isNull$1(val) {
|
|
3254
|
+
return val === null;
|
|
3255
|
+
}
|
|
3256
|
+
_null$1.isNull = isNull$1;
|
|
3257
|
+
function isntNull$1(val) {
|
|
3258
|
+
return !isNull$1(val);
|
|
3259
|
+
}
|
|
3260
|
+
_null$1.isntNull = isntNull$1;
|
|
3261
|
+
|
|
3262
|
+
var _undefined$1 = {};
|
|
3263
|
+
|
|
3264
|
+
_undefined$1.isntUndefined = _undefined$1.isUndefined = void 0;
|
|
3265
|
+
function isUndefined$1(val) {
|
|
3266
|
+
return val === undefined;
|
|
3267
|
+
}
|
|
3268
|
+
_undefined$1.isUndefined = isUndefined$1;
|
|
3269
|
+
function isntUndefined$1(val) {
|
|
3270
|
+
return !isUndefined$1(val);
|
|
3271
|
+
}
|
|
3272
|
+
_undefined$1.isntUndefined = isntUndefined$1;
|
|
3273
|
+
|
|
3274
|
+
var _function$1 = {};
|
|
3275
|
+
|
|
3276
|
+
_function$1.isntFunction = _function$1.isFunction = void 0;
|
|
3277
|
+
function isFunction$3(val) {
|
|
3278
|
+
return typeof val === 'function';
|
|
3279
|
+
}
|
|
3280
|
+
_function$1.isFunction = isFunction$3;
|
|
3281
|
+
function isntFunction$1(val) {
|
|
3282
|
+
return !isFunction$3(val);
|
|
3283
|
+
}
|
|
3284
|
+
_function$1.isntFunction = isntFunction$1;
|
|
3285
|
+
|
|
3286
|
+
asyncIterable$1.isntAsyncIterable = asyncIterable$1.isAsyncIterable = void 0;
|
|
3287
|
+
const null_1$5 = _null$1;
|
|
3288
|
+
const undefined_1$3 = _undefined$1;
|
|
3289
|
+
const function_1$5 = _function$1;
|
|
3290
|
+
function isAsyncIterable$3(val) {
|
|
3291
|
+
return (0, null_1$5.isntNull)(val)
|
|
3292
|
+
&& (0, undefined_1$3.isntUndefined)(val)
|
|
3293
|
+
&& (0, function_1$5.isFunction)(val[Symbol.asyncIterator]);
|
|
3294
|
+
}
|
|
3295
|
+
asyncIterable$1.isAsyncIterable = isAsyncIterable$3;
|
|
3296
|
+
function isntAsyncIterable$1(val) {
|
|
3297
|
+
return !isAsyncIterable$3(val);
|
|
3298
|
+
}
|
|
3299
|
+
asyncIterable$1.isntAsyncIterable = isntAsyncIterable$1;
|
|
3300
|
+
|
|
3301
|
+
var bigint$1 = {};
|
|
3302
|
+
|
|
3303
|
+
bigint$1.isntBigInt = bigint$1.isBigInt = void 0;
|
|
3304
|
+
function isBigInt$1(val) {
|
|
3305
|
+
return typeof val === 'bigint';
|
|
3306
|
+
}
|
|
3307
|
+
bigint$1.isBigInt = isBigInt$1;
|
|
3308
|
+
function isntBigInt$1(val) {
|
|
3309
|
+
return !isBigInt$1(val);
|
|
3310
|
+
}
|
|
3311
|
+
bigint$1.isntBigInt = isntBigInt$1;
|
|
3312
|
+
|
|
3313
|
+
var boolean$1 = {};
|
|
3314
|
+
|
|
3315
|
+
boolean$1.isntBoolean = boolean$1.isBoolean = void 0;
|
|
3316
|
+
function isBoolean$1(val) {
|
|
3317
|
+
return typeof val === 'boolean';
|
|
3318
|
+
}
|
|
3319
|
+
boolean$1.isBoolean = isBoolean$1;
|
|
3320
|
+
function isntBoolean$1(val) {
|
|
3321
|
+
return !isBoolean$1(val);
|
|
3322
|
+
}
|
|
3323
|
+
boolean$1.isntBoolean = isntBoolean$1;
|
|
3324
|
+
|
|
3325
|
+
var char$1 = {};
|
|
3326
|
+
|
|
3327
|
+
var string$1 = {};
|
|
3328
|
+
|
|
3329
|
+
string$1.isntString = string$1.isString = void 0;
|
|
3330
|
+
function isString$1(val) {
|
|
3331
|
+
return typeof val === 'string';
|
|
3332
|
+
}
|
|
3333
|
+
string$1.isString = isString$1;
|
|
3334
|
+
function isntString$1(val) {
|
|
3335
|
+
return !isString$1(val);
|
|
3336
|
+
}
|
|
3337
|
+
string$1.isntString = isntString$1;
|
|
3338
|
+
|
|
3339
|
+
char$1.isntChar = char$1.isChar = void 0;
|
|
3340
|
+
const string_1$3 = string$1;
|
|
3341
|
+
function isChar$1(val) {
|
|
3342
|
+
return (0, string_1$3.isString)(val)
|
|
3343
|
+
&& val.length === 1;
|
|
3344
|
+
}
|
|
3345
|
+
char$1.isChar = isChar$1;
|
|
3346
|
+
function isntChar$1(val) {
|
|
3347
|
+
return !isChar$1(val);
|
|
3348
|
+
}
|
|
3349
|
+
char$1.isntChar = isntChar$1;
|
|
3350
|
+
|
|
3351
|
+
var date$1 = {};
|
|
3352
|
+
|
|
3353
|
+
date$1.isntDate = date$1.isDate = void 0;
|
|
3354
|
+
function isDate$2(val) {
|
|
3355
|
+
return val instanceof Date;
|
|
3356
|
+
}
|
|
3357
|
+
date$1.isDate = isDate$2;
|
|
3358
|
+
function isntDate$1(val) {
|
|
3359
|
+
return !isDate$2(val);
|
|
3360
|
+
}
|
|
3361
|
+
date$1.isntDate = isntDate$1;
|
|
3362
|
+
|
|
3363
|
+
var _enum$1 = {};
|
|
3364
|
+
|
|
3365
|
+
_enum$1.inEnum = void 0;
|
|
3366
|
+
function inEnum$1(val, _enum) {
|
|
3367
|
+
return Object.values(_enum).includes(val);
|
|
3368
|
+
}
|
|
3369
|
+
_enum$1.inEnum = inEnum$1;
|
|
3370
|
+
|
|
3371
|
+
var error$1 = {};
|
|
3372
|
+
|
|
3373
|
+
error$1.isntError = error$1.isError = void 0;
|
|
3374
|
+
function isError$1(val) {
|
|
3375
|
+
return val instanceof Error;
|
|
3376
|
+
}
|
|
3377
|
+
error$1.isError = isError$1;
|
|
3378
|
+
function isntError$1(val) {
|
|
3379
|
+
return !isError$1(val);
|
|
3380
|
+
}
|
|
3381
|
+
error$1.isntError = isntError$1;
|
|
3382
|
+
|
|
3383
|
+
var falsy$1 = {};
|
|
3384
|
+
|
|
3385
|
+
falsy$1.isntFalsy = falsy$1.isFalsy = void 0;
|
|
3386
|
+
function isFalsy$1(val) {
|
|
3387
|
+
return !val;
|
|
3388
|
+
}
|
|
3389
|
+
falsy$1.isFalsy = isFalsy$1;
|
|
3390
|
+
function isntFalsy$1(val) {
|
|
3391
|
+
return !isFalsy$1(val);
|
|
3392
|
+
}
|
|
3393
|
+
falsy$1.isntFalsy = isntFalsy$1;
|
|
3394
|
+
|
|
3395
|
+
var iterable$1 = {};
|
|
3396
|
+
|
|
3397
|
+
iterable$1.isntIterable = iterable$1.isIterable = void 0;
|
|
3398
|
+
const null_1$4 = _null$1;
|
|
3399
|
+
const undefined_1$2 = _undefined$1;
|
|
3400
|
+
const function_1$4 = _function$1;
|
|
3401
|
+
function isIterable$3(val) {
|
|
3402
|
+
return (0, null_1$4.isntNull)(val)
|
|
3403
|
+
&& (0, undefined_1$2.isntUndefined)(val)
|
|
3404
|
+
&& (0, function_1$4.isFunction)(val[Symbol.iterator]);
|
|
3405
|
+
}
|
|
3406
|
+
iterable$1.isIterable = isIterable$3;
|
|
3407
|
+
function isntIterable$1(val) {
|
|
3408
|
+
return !isIterable$3(val);
|
|
3409
|
+
}
|
|
3410
|
+
iterable$1.isntIterable = isntIterable$1;
|
|
3411
|
+
|
|
3412
|
+
var json$1 = {};
|
|
3413
|
+
|
|
3414
|
+
var number$1 = {};
|
|
3415
|
+
|
|
3416
|
+
number$1.isntNaN = number$1.isNaN = number$1.isNegativeInfinity = number$1.isPositiveInfinity = number$1.isFinite = number$1.isntNumber = number$1.isNumber = void 0;
|
|
3417
|
+
function isNumber$1(val) {
|
|
3418
|
+
return typeof val === 'number';
|
|
3419
|
+
}
|
|
3420
|
+
number$1.isNumber = isNumber$1;
|
|
3421
|
+
function isntNumber$1(val) {
|
|
3422
|
+
return !isNumber$1(val);
|
|
3423
|
+
}
|
|
3424
|
+
number$1.isntNumber = isntNumber$1;
|
|
3425
|
+
function isFinite$1(val) {
|
|
3426
|
+
return Number.isFinite(val);
|
|
3427
|
+
}
|
|
3428
|
+
number$1.isFinite = isFinite$1;
|
|
3429
|
+
function isPositiveInfinity$1(val) {
|
|
3430
|
+
return val === Infinity;
|
|
3431
|
+
}
|
|
3432
|
+
number$1.isPositiveInfinity = isPositiveInfinity$1;
|
|
3433
|
+
function isNegativeInfinity$1(val) {
|
|
3434
|
+
return val === -Infinity;
|
|
3435
|
+
}
|
|
3436
|
+
number$1.isNegativeInfinity = isNegativeInfinity$1;
|
|
3437
|
+
function isNaN$2(val) {
|
|
3438
|
+
return Number.isNaN(val);
|
|
3439
|
+
}
|
|
3440
|
+
number$1.isNaN = isNaN$2;
|
|
3441
|
+
function isntNaN$1(val) {
|
|
3442
|
+
return !isNaN$2(val);
|
|
3443
|
+
}
|
|
3444
|
+
number$1.isntNaN = isntNaN$1;
|
|
3445
|
+
|
|
3446
|
+
var object$1 = {};
|
|
3447
|
+
|
|
3448
|
+
var __importDefault$1 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
3449
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3450
|
+
};object$1.isntEmptyObject = object$1.isEmptyObject = object$1.isntPlainObject = object$1.isPlainObject = object$1.isntObject = object$1.isObject = void 0;
|
|
3451
|
+
const isPlainObject_1$1 = __importDefault$1(isPlainObject_1$3);
|
|
3452
|
+
function isObject$1(val) {
|
|
3453
|
+
return val !== null
|
|
3454
|
+
&& typeof val === 'object';
|
|
3455
|
+
}
|
|
3456
|
+
object$1.isObject = isObject$1;
|
|
3457
|
+
function isntObject$1(val) {
|
|
3458
|
+
return !isObject$1(val);
|
|
3459
|
+
}
|
|
3460
|
+
object$1.isntObject = isntObject$1;
|
|
3461
|
+
function isPlainObject$1(val) {
|
|
3462
|
+
return (0, isPlainObject_1$1.default)(val);
|
|
3463
|
+
}
|
|
3464
|
+
object$1.isPlainObject = isPlainObject$1;
|
|
3465
|
+
function isntPlainObject$1(val) {
|
|
3466
|
+
return !isPlainObject$1(val);
|
|
3467
|
+
}
|
|
3468
|
+
object$1.isntPlainObject = isntPlainObject$1;
|
|
3469
|
+
function isEmptyObject$1(val) {
|
|
3470
|
+
return Object.keys(val).length === 0;
|
|
3471
|
+
}
|
|
3472
|
+
object$1.isEmptyObject = isEmptyObject$1;
|
|
3473
|
+
function isntEmptyObject$1(val) {
|
|
3474
|
+
return Object.keys(val).length !== 0;
|
|
3475
|
+
}
|
|
3476
|
+
object$1.isntEmptyObject = isntEmptyObject$1;
|
|
3477
|
+
|
|
3478
|
+
json$1.isntJsonable = json$1.isJsonable = json$1.isntJson = json$1.isJson = void 0;
|
|
3479
|
+
const null_1$3 = _null$1;
|
|
3480
|
+
const boolean_1$1 = boolean$1;
|
|
3481
|
+
const string_1$2 = string$1;
|
|
3482
|
+
const number_1$1 = number$1;
|
|
3483
|
+
const array_1$1 = array$1;
|
|
3484
|
+
const object_1$3 = object$1;
|
|
3485
|
+
function isJson$1(val) {
|
|
3486
|
+
return (0, null_1$3.isNull)(val)
|
|
3487
|
+
|| (0, boolean_1$1.isBoolean)(val)
|
|
3488
|
+
|| (0, string_1$2.isString)(val)
|
|
3489
|
+
|| (0, number_1$1.isNumber)(val)
|
|
3490
|
+
|| ((0, array_1$1.isArray)(val) && val.every(isJson$1))
|
|
3491
|
+
|| ((0, object_1$3.isPlainObject)(val) && Object.values(val).every(isJson$1));
|
|
3492
|
+
}
|
|
3493
|
+
json$1.isJson = isJson$1;
|
|
3494
|
+
function isntJson$1(val) {
|
|
3495
|
+
return !isJson$1(val);
|
|
3496
|
+
}
|
|
3497
|
+
json$1.isntJson = isntJson$1;
|
|
3498
|
+
function isJsonable$1(val) {
|
|
3499
|
+
try {
|
|
3500
|
+
JSON.stringify(val);
|
|
3501
|
+
return true;
|
|
3502
|
+
}
|
|
3503
|
+
catch (_a) {
|
|
3504
|
+
return false;
|
|
3505
|
+
}
|
|
3506
|
+
}
|
|
3507
|
+
json$1.isJsonable = isJsonable$1;
|
|
3508
|
+
function isntJsonable$1(val) {
|
|
3509
|
+
return !isntJsonable$1();
|
|
3510
|
+
}
|
|
3511
|
+
json$1.isntJsonable = isntJsonable$1;
|
|
3512
|
+
|
|
3513
|
+
var promise$1 = {};
|
|
3514
|
+
|
|
3515
|
+
promise$1.isPromiseLike = promise$1.isntPromiseLike = promise$1.isntPromise = promise$1.isPromise = void 0;
|
|
3516
|
+
const object_1$2 = object$1;
|
|
3517
|
+
const function_1$3 = _function$1;
|
|
3518
|
+
function isPromise$3(val) {
|
|
3519
|
+
return val instanceof Promise;
|
|
3520
|
+
}
|
|
3521
|
+
promise$1.isPromise = isPromise$3;
|
|
3522
|
+
function isntPromise$1(val) {
|
|
3523
|
+
return !isPromise$3(val);
|
|
3524
|
+
}
|
|
3525
|
+
promise$1.isntPromise = isntPromise$1;
|
|
3526
|
+
function isntPromiseLike$1(val) {
|
|
3527
|
+
return !isPromiseLike$1(val);
|
|
3528
|
+
}
|
|
3529
|
+
promise$1.isntPromiseLike = isntPromiseLike$1;
|
|
3530
|
+
function isPromiseLike$1(val) {
|
|
3531
|
+
return (0, object_1$2.isObject)(val)
|
|
3532
|
+
&& (0, function_1$3.isFunction)(val.then);
|
|
3533
|
+
}
|
|
3534
|
+
promise$1.isPromiseLike = isPromiseLike$1;
|
|
3535
|
+
|
|
3536
|
+
var url$1 = {};
|
|
3537
|
+
|
|
3538
|
+
url$1.isAbsoluteURL = void 0;
|
|
3539
|
+
function isAbsoluteURL$1(str) {
|
|
3540
|
+
try {
|
|
3541
|
+
new URL(str);
|
|
3542
|
+
return true;
|
|
3543
|
+
}
|
|
3544
|
+
catch (_a) {
|
|
3545
|
+
return false;
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
url$1.isAbsoluteURL = isAbsoluteURL$1;
|
|
3549
|
+
|
|
3550
|
+
(function (exports) {
|
|
3551
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3552
|
+
if (k2 === undefined) k2 = k;
|
|
3553
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
3554
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3555
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
3556
|
+
}
|
|
3557
|
+
Object.defineProperty(o, k2, desc);
|
|
3558
|
+
}) : (function(o, m, k, k2) {
|
|
3559
|
+
if (k2 === undefined) k2 = k;
|
|
3560
|
+
o[k2] = m[k];
|
|
3561
|
+
}));
|
|
3562
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
3563
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
3564
|
+
};__exportStar(array$1, exports);
|
|
3565
|
+
__exportStar(asyncIterable$1, exports);
|
|
3566
|
+
__exportStar(bigint$1, exports);
|
|
3567
|
+
__exportStar(boolean$1, exports);
|
|
3568
|
+
__exportStar(char$1, exports);
|
|
3569
|
+
__exportStar(date$1, exports);
|
|
3570
|
+
__exportStar(_enum$1, exports);
|
|
3571
|
+
__exportStar(error$1, exports);
|
|
3572
|
+
__exportStar(falsy$1, exports);
|
|
3573
|
+
__exportStar(_function$1, exports);
|
|
3574
|
+
__exportStar(iterable$1, exports);
|
|
3575
|
+
__exportStar(json$1, exports);
|
|
3576
|
+
__exportStar(_null$1, exports);
|
|
3577
|
+
__exportStar(number$1, exports);
|
|
3578
|
+
__exportStar(object$1, exports);
|
|
3579
|
+
__exportStar(promise$1, exports);
|
|
3580
|
+
__exportStar(string$1, exports);
|
|
3581
|
+
__exportStar(_undefined$1, exports);
|
|
3582
|
+
__exportStar(url$1, exports);
|
|
3583
|
+
|
|
3584
|
+
} (es2018$5));
|
|
3585
|
+
|
|
3586
|
+
chunkByAsync$1.chunkByAsync = void 0;
|
|
3587
|
+
const types_1$j = es2018$5;
|
|
3588
|
+
function chunkByAsync(iterable, predicate) {
|
|
3589
|
+
if ((0, types_1$j.isAsyncIterable)(iterable)) {
|
|
3590
|
+
return chunkByAsyncIterable(iterable);
|
|
3591
|
+
}
|
|
3592
|
+
else {
|
|
3593
|
+
return chunkByIterable(iterable);
|
|
3594
|
+
}
|
|
3595
|
+
async function* chunkByAsyncIterable(iterable) {
|
|
3596
|
+
let buffer = [];
|
|
3597
|
+
let index = 0;
|
|
3598
|
+
for await (const element of iterable) {
|
|
3599
|
+
buffer.push(element);
|
|
3600
|
+
if (await predicate(element, index)) {
|
|
3601
|
+
yield buffer;
|
|
3602
|
+
buffer = [];
|
|
3603
|
+
}
|
|
3604
|
+
index++;
|
|
3605
|
+
}
|
|
3606
|
+
if (buffer.length)
|
|
3607
|
+
yield buffer;
|
|
3608
|
+
}
|
|
3609
|
+
async function* chunkByIterable(iterable) {
|
|
3610
|
+
let buffer = [];
|
|
3611
|
+
let index = 0;
|
|
3612
|
+
for (const element of iterable) {
|
|
3613
|
+
buffer.push(element);
|
|
3614
|
+
if (await predicate(element, index)) {
|
|
3615
|
+
yield buffer;
|
|
3616
|
+
buffer = [];
|
|
3617
|
+
}
|
|
3618
|
+
index++;
|
|
3619
|
+
}
|
|
3620
|
+
if (buffer.length)
|
|
3621
|
+
yield buffer;
|
|
3622
|
+
}
|
|
3623
|
+
}
|
|
3624
|
+
chunkByAsync$1.chunkByAsync = chunkByAsync;
|
|
3625
|
+
|
|
3626
|
+
var chunkBy$1 = {};
|
|
3248
3627
|
|
|
3249
3628
|
chunkBy$1.chunkBy = void 0;
|
|
3250
3629
|
function* chunkBy(iterable, predicate) {
|
|
@@ -3271,7 +3650,7 @@ function requireChunk () {
|
|
|
3271
3650
|
if (hasRequiredChunk) return chunk;
|
|
3272
3651
|
hasRequiredChunk = 1;
|
|
3273
3652
|
chunk.chunk = void 0;
|
|
3274
|
-
const go_1 = es2018$
|
|
3653
|
+
const go_1 = es2018$6;
|
|
3275
3654
|
const errors_1 = requireEs2018();
|
|
3276
3655
|
function chunk$1(iterable, size) {
|
|
3277
3656
|
(0, errors_1.assert)(Number.isInteger(size), 'The parameter size must be an integer');
|
|
@@ -3297,8 +3676,8 @@ chunk.chunk = void 0;
|
|
|
3297
3676
|
var concatAsync$1 = {};
|
|
3298
3677
|
|
|
3299
3678
|
concatAsync$1.concatAsync = void 0;
|
|
3300
|
-
const types_1$i = es2018$
|
|
3301
|
-
const go_1$1 = es2018$
|
|
3679
|
+
const types_1$i = es2018$5;
|
|
3680
|
+
const go_1$1 = es2018$6;
|
|
3302
3681
|
function concatAsync(iterable, ...otherIterables) {
|
|
3303
3682
|
return (0, go_1$1.go)(async function* () {
|
|
3304
3683
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -3320,7 +3699,7 @@ concatAsync$1.concatAsync = concatAsync;
|
|
|
3320
3699
|
var concat$5 = {};
|
|
3321
3700
|
|
|
3322
3701
|
concat$5.concat = void 0;
|
|
3323
|
-
const go_1 = es2018$
|
|
3702
|
+
const go_1 = es2018$6;
|
|
3324
3703
|
function concat$4(iterable, ...otherIterables) {
|
|
3325
3704
|
return (0, go_1.go)(function* () {
|
|
3326
3705
|
for (const iter of [iterable, ...otherIterables]) {
|
|
@@ -3354,7 +3733,7 @@ function requireDropAsync () {
|
|
|
3354
3733
|
if (hasRequiredDropAsync) return dropAsync;
|
|
3355
3734
|
hasRequiredDropAsync = 1;
|
|
3356
3735
|
dropAsync.dropAsync = void 0;
|
|
3357
|
-
const go_1 = es2018$
|
|
3736
|
+
const go_1 = es2018$6;
|
|
3358
3737
|
const utils_1 = utils;
|
|
3359
3738
|
const errors_1 = requireEs2018();
|
|
3360
3739
|
function dropAsync$1(iterable, count) {
|
|
@@ -3397,7 +3776,7 @@ function requireDropRightAsync () {
|
|
|
3397
3776
|
if (hasRequiredDropRightAsync) return dropRightAsync;
|
|
3398
3777
|
hasRequiredDropRightAsync = 1;
|
|
3399
3778
|
dropRightAsync.dropRightAsync = void 0;
|
|
3400
|
-
const go_1 = es2018$
|
|
3779
|
+
const go_1 = es2018$6;
|
|
3401
3780
|
const utils_1 = utils;
|
|
3402
3781
|
const errors_1 = requireEs2018();
|
|
3403
3782
|
function dropRightAsync$1(iterable, count) {
|
|
@@ -3433,7 +3812,7 @@ function requireDropRight () {
|
|
|
3433
3812
|
if (hasRequiredDropRight) return dropRight;
|
|
3434
3813
|
hasRequiredDropRight = 1;
|
|
3435
3814
|
dropRight.dropRight = void 0;
|
|
3436
|
-
const go_1 = es2018$
|
|
3815
|
+
const go_1 = es2018$6;
|
|
3437
3816
|
const utils_1 = utils;
|
|
3438
3817
|
const errors_1 = requireEs2018();
|
|
3439
3818
|
function dropRight$1(iterable, count) {
|
|
@@ -3454,7 +3833,7 @@ dropRight.dropRight = void 0;
|
|
|
3454
3833
|
var dropUntilAsync$1 = {};
|
|
3455
3834
|
|
|
3456
3835
|
dropUntilAsync$1.dropUntilAsync = void 0;
|
|
3457
|
-
const types_1$h = es2018$
|
|
3836
|
+
const types_1$h = es2018$5;
|
|
3458
3837
|
function dropUntilAsync(iterable, predicate) {
|
|
3459
3838
|
if ((0, types_1$h.isAsyncIterable)(iterable)) {
|
|
3460
3839
|
return dropUntilAsyncIterable(iterable);
|
|
@@ -3541,7 +3920,7 @@ function requireDrop () {
|
|
|
3541
3920
|
if (hasRequiredDrop) return drop;
|
|
3542
3921
|
hasRequiredDrop = 1;
|
|
3543
3922
|
drop.drop = void 0;
|
|
3544
|
-
const go_1 = es2018$
|
|
3923
|
+
const go_1 = es2018$6;
|
|
3545
3924
|
const utils_1 = utils;
|
|
3546
3925
|
const errors_1 = requireEs2018();
|
|
3547
3926
|
function drop$1(iterable, count) {
|
|
@@ -3579,7 +3958,7 @@ drop.drop = void 0;
|
|
|
3579
3958
|
var filterAsync$1 = {};
|
|
3580
3959
|
|
|
3581
3960
|
filterAsync$1.filterAsync = void 0;
|
|
3582
|
-
const types_1$g = es2018$
|
|
3961
|
+
const types_1$g = es2018$5;
|
|
3583
3962
|
function filterAsync(iterable, predicate) {
|
|
3584
3963
|
if ((0, types_1$g.isAsyncIterable)(iterable)) {
|
|
3585
3964
|
return filterAsyncIterable(iterable);
|
|
@@ -3626,7 +4005,7 @@ var flattenDeepAsync = {};
|
|
|
3626
4005
|
var flattenByAsync$1 = {};
|
|
3627
4006
|
|
|
3628
4007
|
flattenByAsync$1.flattenByAsync = void 0;
|
|
3629
|
-
const types_1$f = es2018$
|
|
4008
|
+
const types_1$f = es2018$5;
|
|
3630
4009
|
function flattenByAsync(iterable, predicate) {
|
|
3631
4010
|
if ((0, types_1$f.isAsyncIterable)(iterable)) {
|
|
3632
4011
|
return flattenByAsyncIterable(iterable);
|
|
@@ -3700,7 +4079,7 @@ flattenAsync.flattenAsync = void 0;
|
|
|
3700
4079
|
var flattenBy$1 = {};
|
|
3701
4080
|
|
|
3702
4081
|
flattenBy$1.flattenBy = void 0;
|
|
3703
|
-
const types_1$e = es2018$
|
|
4082
|
+
const types_1$e = es2018$5;
|
|
3704
4083
|
function flattenBy(iterable, predicate) {
|
|
3705
4084
|
return flatten(iterable, 1);
|
|
3706
4085
|
function* flatten(iterable, level) {
|
|
@@ -3759,7 +4138,7 @@ flatten.flatten = void 0;
|
|
|
3759
4138
|
var mapAsync$1 = {};
|
|
3760
4139
|
|
|
3761
4140
|
mapAsync$1.mapAsync = void 0;
|
|
3762
|
-
const types_1$d = es2018$
|
|
4141
|
+
const types_1$d = es2018$5;
|
|
3763
4142
|
function mapAsync(iterable, fn) {
|
|
3764
4143
|
if ((0, types_1$d.isAsyncIterable)(iterable)) {
|
|
3765
4144
|
return mapAsyncIterable(iterable);
|
|
@@ -3804,7 +4183,7 @@ function requireRepeatAsync () {
|
|
|
3804
4183
|
if (hasRequiredRepeatAsync) return repeatAsync;
|
|
3805
4184
|
hasRequiredRepeatAsync = 1;
|
|
3806
4185
|
repeatAsync.repeatAsync = void 0;
|
|
3807
|
-
const go_1 = es2018$
|
|
4186
|
+
const go_1 = es2018$6;
|
|
3808
4187
|
const errors_1 = requireEs2018();
|
|
3809
4188
|
function repeatAsync$1(iterable, times) {
|
|
3810
4189
|
(0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
@@ -3847,7 +4226,7 @@ function requireRepeat () {
|
|
|
3847
4226
|
if (hasRequiredRepeat) return repeat$2;
|
|
3848
4227
|
hasRequiredRepeat = 1;
|
|
3849
4228
|
repeat$2.repeat = void 0;
|
|
3850
|
-
const go_1 = es2018$
|
|
4229
|
+
const go_1 = es2018$6;
|
|
3851
4230
|
const errors_1 = requireEs2018();
|
|
3852
4231
|
function repeat(iterable, times) {
|
|
3853
4232
|
(0, errors_1.assert)(times === Infinity || Number.isInteger(times), 'The parameter times must be an integer');
|
|
@@ -3890,7 +4269,7 @@ function requireSliceAsync () {
|
|
|
3890
4269
|
if (hasRequiredSliceAsync) return sliceAsync;
|
|
3891
4270
|
hasRequiredSliceAsync = 1;
|
|
3892
4271
|
sliceAsync.sliceAsync = void 0;
|
|
3893
|
-
const go_1 = es2018$
|
|
4272
|
+
const go_1 = es2018$6;
|
|
3894
4273
|
const errors_1 = requireEs2018();
|
|
3895
4274
|
function sliceAsync$1(iterable, start, end = Infinity) {
|
|
3896
4275
|
(0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
@@ -3921,7 +4300,7 @@ function requireSlice () {
|
|
|
3921
4300
|
if (hasRequiredSlice) return slice;
|
|
3922
4301
|
hasRequiredSlice = 1;
|
|
3923
4302
|
slice.slice = void 0;
|
|
3924
|
-
const go_1 = es2018$
|
|
4303
|
+
const go_1 = es2018$6;
|
|
3925
4304
|
const errors_1 = requireEs2018();
|
|
3926
4305
|
function slice$1(iterable, start, end = Infinity) {
|
|
3927
4306
|
(0, errors_1.assert)(Number.isInteger(start), 'The parameter start must be an integer');
|
|
@@ -3965,7 +4344,7 @@ splitAsync$1.splitAsync = splitAsync;
|
|
|
3965
4344
|
var splitByAsync$1 = {};
|
|
3966
4345
|
|
|
3967
4346
|
splitByAsync$1.splitByAsync = void 0;
|
|
3968
|
-
const types_1$c = es2018$
|
|
4347
|
+
const types_1$c = es2018$5;
|
|
3969
4348
|
function splitByAsync(iterable, predicate) {
|
|
3970
4349
|
if ((0, types_1$c.isAsyncIterable)(iterable)) {
|
|
3971
4350
|
return splitByAsyncIterable(iterable);
|
|
@@ -4052,7 +4431,7 @@ function requireTakeAsync () {
|
|
|
4052
4431
|
if (hasRequiredTakeAsync) return takeAsync;
|
|
4053
4432
|
hasRequiredTakeAsync = 1;
|
|
4054
4433
|
takeAsync.takeAsync = void 0;
|
|
4055
|
-
const go_1 = es2018$
|
|
4434
|
+
const go_1 = es2018$6;
|
|
4056
4435
|
const errors_1 = requireEs2018();
|
|
4057
4436
|
function takeAsync$1(iterable, count) {
|
|
4058
4437
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
@@ -4081,7 +4460,7 @@ function requireTakeRightAsync () {
|
|
|
4081
4460
|
if (hasRequiredTakeRightAsync) return takeRightAsync;
|
|
4082
4461
|
hasRequiredTakeRightAsync = 1;
|
|
4083
4462
|
takeRightAsync.takeRightAsync = void 0;
|
|
4084
|
-
const go_1 = es2018$
|
|
4463
|
+
const go_1 = es2018$6;
|
|
4085
4464
|
const errors_1 = requireEs2018();
|
|
4086
4465
|
function takeRightAsync$1(iterable, count) {
|
|
4087
4466
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
@@ -4119,7 +4498,7 @@ function requireTakeRight () {
|
|
|
4119
4498
|
if (hasRequiredTakeRight) return takeRight;
|
|
4120
4499
|
hasRequiredTakeRight = 1;
|
|
4121
4500
|
takeRight.takeRight = void 0;
|
|
4122
|
-
const go_1 = es2018$
|
|
4501
|
+
const go_1 = es2018$6;
|
|
4123
4502
|
const errors_1 = requireEs2018();
|
|
4124
4503
|
function takeRight$1(iterable, count) {
|
|
4125
4504
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
@@ -4152,7 +4531,7 @@ takeRight.takeRight = void 0;
|
|
|
4152
4531
|
var takeUntilAsync$1 = {};
|
|
4153
4532
|
|
|
4154
4533
|
takeUntilAsync$1.takeUntilAsync = void 0;
|
|
4155
|
-
const types_1$b = es2018$
|
|
4534
|
+
const types_1$b = es2018$5;
|
|
4156
4535
|
function takeUntilAsync(iterable, predicate) {
|
|
4157
4536
|
if ((0, types_1$b.isAsyncIterable)(iterable)) {
|
|
4158
4537
|
return takeUntilAsyncIterable(iterable);
|
|
@@ -4203,7 +4582,7 @@ function requireTake () {
|
|
|
4203
4582
|
if (hasRequiredTake) return take$2;
|
|
4204
4583
|
hasRequiredTake = 1;
|
|
4205
4584
|
take$2.take = void 0;
|
|
4206
|
-
const go_1 = es2018$
|
|
4585
|
+
const go_1 = es2018$6;
|
|
4207
4586
|
const errors_1 = requireEs2018();
|
|
4208
4587
|
function take(iterable, count) {
|
|
4209
4588
|
(0, errors_1.assert)(Number.isInteger(count), 'The parameter count must be an integer');
|
|
@@ -4227,7 +4606,7 @@ take$2.take = void 0;
|
|
|
4227
4606
|
var tapAsync$1 = {};
|
|
4228
4607
|
|
|
4229
4608
|
tapAsync$1.tapAsync = void 0;
|
|
4230
|
-
const types_1$a = es2018$
|
|
4609
|
+
const types_1$a = es2018$5;
|
|
4231
4610
|
function tapAsync(iterable, fn) {
|
|
4232
4611
|
if ((0, types_1$a.isAsyncIterable)(iterable)) {
|
|
4233
4612
|
return tapAsyncIterable(iterable);
|
|
@@ -4310,7 +4689,7 @@ uniqAsync$1.uniqAsync = uniqAsync;
|
|
|
4310
4689
|
var uniqByAsync$1 = {};
|
|
4311
4690
|
|
|
4312
4691
|
uniqByAsync$1.uniqByAsync = void 0;
|
|
4313
|
-
const types_1$9 = es2018$
|
|
4692
|
+
const types_1$9 = es2018$5;
|
|
4314
4693
|
function uniqByAsync(iterable, fn) {
|
|
4315
4694
|
if ((0, types_1$9.isAsyncIterable)(iterable)) {
|
|
4316
4695
|
return uniqByAsyncIterable(iterable);
|
|
@@ -4379,7 +4758,7 @@ uniq$1.uniq = uniq;
|
|
|
4379
4758
|
var zipAsync$1 = {};
|
|
4380
4759
|
|
|
4381
4760
|
zipAsync$1.zipAsync = void 0;
|
|
4382
|
-
const types_1$8 = es2018$
|
|
4761
|
+
const types_1$8 = es2018$5;
|
|
4383
4762
|
var Kind;
|
|
4384
4763
|
(function (Kind) {
|
|
4385
4764
|
Kind[Kind["Sync"] = 0] = "Sync";
|
|
@@ -4550,7 +4929,7 @@ consume$1.consume = consume;
|
|
|
4550
4929
|
var eachAsync$1 = {};
|
|
4551
4930
|
|
|
4552
4931
|
eachAsync$1.eachAsync = void 0;
|
|
4553
|
-
const types_1$7 = es2018$
|
|
4932
|
+
const types_1$7 = es2018$5;
|
|
4554
4933
|
function eachAsync(iterable, fn) {
|
|
4555
4934
|
if ((0, types_1$7.isAsyncIterable)(iterable)) {
|
|
4556
4935
|
return eachAsyncIterable(iterable);
|
|
@@ -4590,7 +4969,7 @@ each$1.each = each;
|
|
|
4590
4969
|
var everyAsync$1 = {};
|
|
4591
4970
|
|
|
4592
4971
|
everyAsync$1.everyAsync = void 0;
|
|
4593
|
-
const types_1$6 = es2018$
|
|
4972
|
+
const types_1$6 = es2018$5;
|
|
4594
4973
|
function everyAsync(iterable, predicate) {
|
|
4595
4974
|
if ((0, types_1$6.isAsyncIterable)(iterable)) {
|
|
4596
4975
|
return everyAsyncIterable(iterable);
|
|
@@ -4636,7 +5015,7 @@ every$3.every = every$2;
|
|
|
4636
5015
|
var findAsync$1 = {};
|
|
4637
5016
|
|
|
4638
5017
|
findAsync$1.findAsync = void 0;
|
|
4639
|
-
const types_1$5 = es2018$
|
|
5018
|
+
const types_1$5 = es2018$5;
|
|
4640
5019
|
function findAsync(iterable, predicate) {
|
|
4641
5020
|
if ((0, types_1$5.isAsyncIterable)(iterable)) {
|
|
4642
5021
|
return findAsyncIterable(iterable);
|
|
@@ -4760,7 +5139,7 @@ match$1.match = match;
|
|
|
4760
5139
|
var reduceAsync$1 = {};
|
|
4761
5140
|
|
|
4762
5141
|
reduceAsync$1.reduceAsync = void 0;
|
|
4763
|
-
const types_1$4 = es2018$
|
|
5142
|
+
const types_1$4 = es2018$5;
|
|
4764
5143
|
function reduceAsync(iterable, fn, initialValue) {
|
|
4765
5144
|
if ((0, types_1$4.isUndefined)(initialValue)) {
|
|
4766
5145
|
return reduceAsyncWithoutInitialValue(iterable, fn);
|
|
@@ -4856,7 +5235,7 @@ function reduceAsyncWithoutInitialValue(iterable, fn) {
|
|
|
4856
5235
|
var reduce$3 = {};
|
|
4857
5236
|
|
|
4858
5237
|
reduce$3.reduce = void 0;
|
|
4859
|
-
const types_1$3 = es2018$
|
|
5238
|
+
const types_1$3 = es2018$5;
|
|
4860
5239
|
function reduce$2(iterable, fn, initialValue) {
|
|
4861
5240
|
if ((0, types_1$3.isUndefined)(initialValue)) {
|
|
4862
5241
|
return reduceWithoutInitialValue(iterable, fn);
|
|
@@ -4903,7 +5282,7 @@ function reduceWithoutInitialValue(iterable, fn) {
|
|
|
4903
5282
|
var someAsync$1 = {};
|
|
4904
5283
|
|
|
4905
5284
|
someAsync$1.someAsync = void 0;
|
|
4906
|
-
const types_1$2 = es2018$
|
|
5285
|
+
const types_1$2 = es2018$5;
|
|
4907
5286
|
function someAsync(iterable, predicate) {
|
|
4908
5287
|
if ((0, types_1$2.isAsyncIterable)(iterable)) {
|
|
4909
5288
|
return someAsyncIterable(iterable);
|
|
@@ -5107,7 +5486,7 @@ countAsync$1.countAsync = countAsync;
|
|
|
5107
5486
|
var hasRequiredEs2018$1;
|
|
5108
5487
|
|
|
5109
5488
|
function requireEs2018$1 () {
|
|
5110
|
-
if (hasRequiredEs2018$1) return es2018$
|
|
5489
|
+
if (hasRequiredEs2018$1) return es2018$7;
|
|
5111
5490
|
hasRequiredEs2018$1 = 1;
|
|
5112
5491
|
(function (exports) {
|
|
5113
5492
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -5126,8 +5505,8 @@ function requireEs2018$1 () {
|
|
|
5126
5505
|
};__exportStar(requireMiddleware(), exports);
|
|
5127
5506
|
__exportStar(output, exports);
|
|
5128
5507
|
|
|
5129
|
-
} (es2018$
|
|
5130
|
-
return es2018$
|
|
5508
|
+
} (es2018$7));
|
|
5509
|
+
return es2018$7;
|
|
5131
5510
|
}
|
|
5132
5511
|
|
|
5133
5512
|
var getErrorNames$1 = {};
|
|
@@ -5146,7 +5525,7 @@ function* traverseErrorPrototypeChain(err) {
|
|
|
5146
5525
|
traverseErrorPrototypeChain$1.traverseErrorPrototypeChain = traverseErrorPrototypeChain;
|
|
5147
5526
|
|
|
5148
5527
|
getErrorNames$1.getErrorNames = void 0;
|
|
5149
|
-
const types_1$1 = es2018$
|
|
5528
|
+
const types_1$1 = es2018$9;
|
|
5150
5529
|
const traverse_error_prototype_chain_1 = traverseErrorPrototypeChain$1;
|
|
5151
5530
|
function* getErrorNames(err) {
|
|
5152
5531
|
var _a;
|
|
@@ -5167,7 +5546,7 @@ getErrorNames$1.getErrorNames = getErrorNames;
|
|
|
5167
5546
|
var serializableError = {};
|
|
5168
5547
|
|
|
5169
5548
|
serializableError.isSerializableError = void 0;
|
|
5170
|
-
const types_1 = es2018$
|
|
5549
|
+
const types_1 = es2018$9;
|
|
5171
5550
|
function isSerializableError(val) {
|
|
5172
5551
|
return (0, types_1.isObject)(val)
|
|
5173
5552
|
&& (0, types_1.isString)(val.name)
|
|
@@ -5185,7 +5564,7 @@ function requireCustomError () {
|
|
|
5185
5564
|
customError.CustomError = void 0;
|
|
5186
5565
|
const iterable_operator_1 = requireEs2018$1();
|
|
5187
5566
|
const get_error_names_1 = getErrorNames$1;
|
|
5188
|
-
const types_1 = es2018$
|
|
5567
|
+
const types_1 = es2018$9;
|
|
5189
5568
|
const serializable_error_1 = serializableError;
|
|
5190
5569
|
class CustomError extends Error {
|
|
5191
5570
|
get name() {
|
|
@@ -5255,7 +5634,7 @@ normalize.normalize = void 0;
|
|
|
5255
5634
|
|
|
5256
5635
|
var hydrate$1 = {};
|
|
5257
5636
|
|
|
5258
|
-
var es2018$
|
|
5637
|
+
var es2018$4 = {};
|
|
5259
5638
|
|
|
5260
5639
|
var pass$1 = {};
|
|
5261
5640
|
|
|
@@ -5275,10 +5654,10 @@ pass$1.pass = pass;
|
|
|
5275
5654
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
5276
5655
|
};__exportStar(pass$1, exports);
|
|
5277
5656
|
|
|
5278
|
-
} (es2018$
|
|
5657
|
+
} (es2018$4));
|
|
5279
5658
|
|
|
5280
5659
|
hydrate$1.hydrate = void 0;
|
|
5281
|
-
const pass_1 = es2018$
|
|
5660
|
+
const pass_1 = es2018$4;
|
|
5282
5661
|
function hydrate(err) {
|
|
5283
5662
|
var _a;
|
|
5284
5663
|
const errorNames = [err.name, ...err.ancestors]
|
|
@@ -5324,7 +5703,7 @@ assert.assert = void 0;
|
|
|
5324
5703
|
var hasRequiredEs2018;
|
|
5325
5704
|
|
|
5326
5705
|
function requireEs2018 () {
|
|
5327
|
-
if (hasRequiredEs2018) return es2018$
|
|
5706
|
+
if (hasRequiredEs2018) return es2018$8;
|
|
5328
5707
|
hasRequiredEs2018 = 1;
|
|
5329
5708
|
(function (exports) {
|
|
5330
5709
|
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -5349,27 +5728,27 @@ function requireEs2018 () {
|
|
|
5349
5728
|
__exportStar(getErrorNames$1, exports);
|
|
5350
5729
|
__exportStar(traverseErrorPrototypeChain$1, exports);
|
|
5351
5730
|
|
|
5352
|
-
} (es2018$
|
|
5353
|
-
return es2018$
|
|
5731
|
+
} (es2018$8));
|
|
5732
|
+
return es2018$8;
|
|
5354
5733
|
}
|
|
5355
5734
|
|
|
5356
5735
|
var es2018Exports$1 = requireEs2018();
|
|
5357
5736
|
|
|
5358
5737
|
function useSingleSelection(values, defaultSelectedIndex) {
|
|
5359
5738
|
es2018Exports$1.assert(values.length > 0, 'The parameter values must be a non-empty array');
|
|
5360
|
-
if (es2018$
|
|
5739
|
+
if (es2018$9.isntUndefined(defaultSelectedIndex)) {
|
|
5361
5740
|
es2018Exports$1.assert(defaultSelectedIndex >= 0 && defaultSelectedIndex < values.length, 'The parameter defaultSelectedIndex must be in the range of 0 to values.length');
|
|
5362
5741
|
}
|
|
5363
5742
|
const [selectedIndex, setSelectedIndex] = react.exports.useState(defaultSelectedIndex);
|
|
5364
|
-
return {
|
|
5365
|
-
|
|
5743
|
+
return react.exports.useMemo(() => ({
|
|
5744
|
+
selectedValue: es2018$9.isUndefined(selectedIndex) ? undefined : values[selectedIndex],
|
|
5366
5745
|
options: values.map((value, index) => ({
|
|
5367
5746
|
value,
|
|
5368
5747
|
index,
|
|
5369
5748
|
selected: index === selectedIndex,
|
|
5370
5749
|
select: () => setSelectedIndex(index)
|
|
5371
5750
|
}))
|
|
5372
|
-
};
|
|
5751
|
+
}), [selectedIndex]);
|
|
5373
5752
|
}
|
|
5374
5753
|
|
|
5375
5754
|
var es2018Exports = requireEs2018$1();
|
|
@@ -5380,8 +5759,8 @@ function useMultipleSelection(values, defaultSelectedIndexes = []) {
|
|
|
5380
5759
|
es2018Exports$1.assert(index >= 0 && index < values.length, 'The index of parameter defaultSelectedIndexes must be in the range of 0 to values.length');
|
|
5381
5760
|
}
|
|
5382
5761
|
const [selectedIndexes, setSelectedIndexes] = react.exports.useState(new Set(defaultSelectedIndexes));
|
|
5383
|
-
return {
|
|
5384
|
-
|
|
5762
|
+
return react.exports.useMemo(() => ({
|
|
5763
|
+
selectedValues: es2018Exports.toArray(es2018Exports.map(selectedIndexes, i => values[i])),
|
|
5385
5764
|
options: values.map((value, index) => {
|
|
5386
5765
|
const selected = selectedIndexes.has(index);
|
|
5387
5766
|
const select = () => {
|
|
@@ -5403,28 +5782,30 @@ function useMultipleSelection(values, defaultSelectedIndexes = []) {
|
|
|
5403
5782
|
toggle: selected ? unselect : select
|
|
5404
5783
|
};
|
|
5405
5784
|
})
|
|
5406
|
-
};
|
|
5785
|
+
}), [selectedIndexes]);
|
|
5407
5786
|
}
|
|
5408
5787
|
|
|
5409
5788
|
function useStateCycle(stateList, initialStateIndex = 0) {
|
|
5410
5789
|
const [index, setIndex] = react.exports.useState(initialStateIndex);
|
|
5411
|
-
return [
|
|
5412
|
-
|
|
5413
|
-
|
|
5790
|
+
return [stateList[index], next];
|
|
5791
|
+
function next() {
|
|
5792
|
+
setIndex(index => {
|
|
5414
5793
|
if (index + 1 < stateList.length) {
|
|
5415
5794
|
return index + 1;
|
|
5416
5795
|
}
|
|
5417
5796
|
else {
|
|
5418
5797
|
return 0;
|
|
5419
5798
|
}
|
|
5420
|
-
})
|
|
5421
|
-
|
|
5799
|
+
});
|
|
5800
|
+
}
|
|
5422
5801
|
}
|
|
5423
5802
|
|
|
5424
5803
|
function useToggle(initialState = false) {
|
|
5425
5804
|
const [state, setState] = react.exports.useState(initialState);
|
|
5426
|
-
const toggle = () => setState(state => !state);
|
|
5427
5805
|
return [state, toggle];
|
|
5806
|
+
function toggle() {
|
|
5807
|
+
setState(state => !state);
|
|
5808
|
+
}
|
|
5428
5809
|
}
|
|
5429
5810
|
|
|
5430
5811
|
function useResizeObserver(callback, refs) {
|
|
@@ -5433,7 +5814,7 @@ function useResizeObserver(callback, refs) {
|
|
|
5433
5814
|
const observer = new ResizeObserver(callback);
|
|
5434
5815
|
refs
|
|
5435
5816
|
.map(x => x.current)
|
|
5436
|
-
.filter(es2018$
|
|
5817
|
+
.filter(es2018$9.isntNull)
|
|
5437
5818
|
.forEach(x => observer.observe(x));
|
|
5438
5819
|
return () => observer.disconnect();
|
|
5439
5820
|
}, deps);
|
|
@@ -5441,29 +5822,27 @@ function useResizeObserver(callback, refs) {
|
|
|
5441
5822
|
|
|
5442
5823
|
function useStep(steps, initialStepIndex = 0) {
|
|
5443
5824
|
const [index, setIndex] = react.exports.useState(initialStepIndex);
|
|
5444
|
-
return [
|
|
5445
|
-
|
|
5446
|
-
(
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
(
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
}
|
|
5466
|
-
];
|
|
5825
|
+
return [steps[index], next, previous];
|
|
5826
|
+
function next() {
|
|
5827
|
+
setIndex(index => {
|
|
5828
|
+
if (index === steps.length - 1) {
|
|
5829
|
+
return index;
|
|
5830
|
+
}
|
|
5831
|
+
else {
|
|
5832
|
+
return index + 1;
|
|
5833
|
+
}
|
|
5834
|
+
});
|
|
5835
|
+
}
|
|
5836
|
+
function previous() {
|
|
5837
|
+
setIndex(index => {
|
|
5838
|
+
if (index === 0) {
|
|
5839
|
+
return index;
|
|
5840
|
+
}
|
|
5841
|
+
else {
|
|
5842
|
+
return index - 1;
|
|
5843
|
+
}
|
|
5844
|
+
});
|
|
5845
|
+
}
|
|
5467
5846
|
}
|
|
5468
5847
|
|
|
5469
5848
|
function useForceUpdate() {
|
|
@@ -5471,7 +5850,7 @@ function useForceUpdate() {
|
|
|
5471
5850
|
return () => setState({});
|
|
5472
5851
|
}
|
|
5473
5852
|
|
|
5474
|
-
var es2018$
|
|
5853
|
+
var es2018$3 = {};
|
|
5475
5854
|
|
|
5476
5855
|
var box = {};
|
|
5477
5856
|
|
|
@@ -5705,11 +6084,11 @@ lruMap.LRUMap = LRUMap;
|
|
|
5705
6084
|
|
|
5706
6085
|
var expirableMap = {};
|
|
5707
6086
|
|
|
5708
|
-
var es2018$
|
|
6087
|
+
var es2018$2 = {};
|
|
5709
6088
|
|
|
5710
6089
|
var exponentialBackoff = {};
|
|
5711
6090
|
|
|
5712
|
-
var es2018 = {};
|
|
6091
|
+
var es2018$1 = {};
|
|
5713
6092
|
|
|
5714
6093
|
var random$1 = {};
|
|
5715
6094
|
|
|
@@ -5753,10 +6132,10 @@ randomIntInclusive$1.randomIntInclusive = randomIntInclusive;
|
|
|
5753
6132
|
__exportStar(randomInt$1, exports);
|
|
5754
6133
|
__exportStar(randomIntInclusive$1, exports);
|
|
5755
6134
|
|
|
5756
|
-
} (es2018));
|
|
6135
|
+
} (es2018$1));
|
|
5757
6136
|
|
|
5758
6137
|
exponentialBackoff.calculateExponentialBackoffTimeout = void 0;
|
|
5759
|
-
const extra_rand_1 = es2018;
|
|
6138
|
+
const extra_rand_1 = es2018$1;
|
|
5760
6139
|
function calculateExponentialBackoffTimeout({ baseTimeout, retries, maxTimeout = Infinity, factor = 2, jitter = true }) {
|
|
5761
6140
|
const timeout = Math.min(factor ** retries * baseTimeout, maxTimeout);
|
|
5762
6141
|
if (jitter) {
|
|
@@ -5871,10 +6250,10 @@ setDynamicTimeoutLoop$1.setDynamicTimeoutLoop = setDynamicTimeoutLoop;
|
|
|
5871
6250
|
__exportStar(setTimeoutLoop$1, exports);
|
|
5872
6251
|
__exportStar(setDynamicTimeoutLoop$1, exports);
|
|
5873
6252
|
|
|
5874
|
-
} (es2018$
|
|
6253
|
+
} (es2018$2));
|
|
5875
6254
|
|
|
5876
6255
|
expirableMap.ExpirableMap = void 0;
|
|
5877
|
-
const extra_timers_1$1 = es2018$
|
|
6256
|
+
const extra_timers_1$1 = es2018$2;
|
|
5878
6257
|
class ExpirableMap {
|
|
5879
6258
|
constructor() {
|
|
5880
6259
|
this.map = new Map();
|
|
@@ -5972,7 +6351,7 @@ var tlruMap = {};
|
|
|
5972
6351
|
tlruMap.TLRUMap = void 0;
|
|
5973
6352
|
const errors_1$1 = requireEs2018();
|
|
5974
6353
|
const iterable_operator_1$1 = requireEs2018$1();
|
|
5975
|
-
const extra_timers_1 = es2018$
|
|
6354
|
+
const extra_timers_1 = es2018$2;
|
|
5976
6355
|
class TLRUMap {
|
|
5977
6356
|
constructor(limit) {
|
|
5978
6357
|
this.map = new Map();
|
|
@@ -6211,13 +6590,13 @@ var Observable$1 = {};
|
|
|
6211
6590
|
|
|
6212
6591
|
var Subscriber = {};
|
|
6213
6592
|
|
|
6214
|
-
var isFunction$
|
|
6593
|
+
var isFunction$2 = {};
|
|
6215
6594
|
|
|
6216
|
-
isFunction$
|
|
6217
|
-
function isFunction(value) {
|
|
6595
|
+
isFunction$2.isFunction = void 0;
|
|
6596
|
+
function isFunction$1(value) {
|
|
6218
6597
|
return typeof value === 'function';
|
|
6219
6598
|
}
|
|
6220
|
-
isFunction$
|
|
6599
|
+
isFunction$2.isFunction = isFunction$1;
|
|
6221
6600
|
|
|
6222
6601
|
var Subscription$1 = {};
|
|
6223
6602
|
|
|
@@ -6294,7 +6673,7 @@ var __spreadArray$g = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
6294
6673
|
to[j] = from[i];
|
|
6295
6674
|
return to;
|
|
6296
6675
|
};Subscription$1.isSubscription = Subscription$1.EMPTY_SUBSCRIPTION = Subscription$1.Subscription = void 0;
|
|
6297
|
-
var isFunction_1$p = isFunction$
|
|
6676
|
+
var isFunction_1$p = isFunction$2;
|
|
6298
6677
|
var UnsubscriptionError_1 = UnsubscriptionError;
|
|
6299
6678
|
var arrRemove_1$7 = arrRemove$1;
|
|
6300
6679
|
var Subscription = (function () {
|
|
@@ -6587,7 +6966,7 @@ errorContext$1.captureError = captureError;
|
|
|
6587
6966
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
6588
6967
|
};
|
|
6589
6968
|
})();exports.EMPTY_OBSERVER = exports.SafeSubscriber = exports.Subscriber = void 0;
|
|
6590
|
-
var isFunction_1 = isFunction$
|
|
6969
|
+
var isFunction_1 = isFunction$2;
|
|
6591
6970
|
var Subscription_1 = Subscription$1;
|
|
6592
6971
|
var config_1 = config;
|
|
6593
6972
|
var reportUnhandledError_1 = reportUnhandledError$1;
|
|
@@ -6816,7 +7195,7 @@ var Subscription_1$9 = Subscription$1;
|
|
|
6816
7195
|
var observable_1$2 = observable;
|
|
6817
7196
|
var pipe_1$2 = pipe$1;
|
|
6818
7197
|
var config_1 = config;
|
|
6819
|
-
var isFunction_1$o = isFunction$
|
|
7198
|
+
var isFunction_1$o = isFunction$2;
|
|
6820
7199
|
var errorContext_1$1 = errorContext$1;
|
|
6821
7200
|
var Observable = (function () {
|
|
6822
7201
|
function Observable(subscribe) {
|
|
@@ -6920,7 +7299,7 @@ var refCount$1 = {};
|
|
|
6920
7299
|
var lift = {};
|
|
6921
7300
|
|
|
6922
7301
|
lift.operate = lift.hasLift = void 0;
|
|
6923
|
-
var isFunction_1$n = isFunction$
|
|
7302
|
+
var isFunction_1$n = isFunction$2;
|
|
6924
7303
|
function hasLift(source) {
|
|
6925
7304
|
return isFunction_1$n.isFunction(source === null || source === void 0 ? void 0 : source.lift);
|
|
6926
7305
|
}
|
|
@@ -8415,14 +8794,14 @@ var args = {};
|
|
|
8415
8794
|
var isScheduler$1 = {};
|
|
8416
8795
|
|
|
8417
8796
|
isScheduler$1.isScheduler = void 0;
|
|
8418
|
-
var isFunction_1$m = isFunction$
|
|
8797
|
+
var isFunction_1$m = isFunction$2;
|
|
8419
8798
|
function isScheduler(value) {
|
|
8420
8799
|
return value && isFunction_1$m.isFunction(value.schedule);
|
|
8421
8800
|
}
|
|
8422
8801
|
isScheduler$1.isScheduler = isScheduler;
|
|
8423
8802
|
|
|
8424
8803
|
args.popNumber = args.popScheduler = args.popResultSelector = void 0;
|
|
8425
|
-
var isFunction_1$l = isFunction$
|
|
8804
|
+
var isFunction_1$l = isFunction$2;
|
|
8426
8805
|
var isScheduler_1$3 = isScheduler$1;
|
|
8427
8806
|
function last$2(arr) {
|
|
8428
8807
|
return arr[arr.length - 1];
|
|
@@ -8453,33 +8832,33 @@ var isArrayLike = {};
|
|
|
8453
8832
|
isArrayLike.isArrayLike = void 0;
|
|
8454
8833
|
isArrayLike.isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; });
|
|
8455
8834
|
|
|
8456
|
-
var isPromise$
|
|
8835
|
+
var isPromise$2 = {};
|
|
8457
8836
|
|
|
8458
|
-
isPromise$
|
|
8459
|
-
var isFunction_1$k = isFunction$
|
|
8460
|
-
function isPromise(value) {
|
|
8837
|
+
isPromise$2.isPromise = void 0;
|
|
8838
|
+
var isFunction_1$k = isFunction$2;
|
|
8839
|
+
function isPromise$1(value) {
|
|
8461
8840
|
return isFunction_1$k.isFunction(value === null || value === void 0 ? void 0 : value.then);
|
|
8462
8841
|
}
|
|
8463
|
-
isPromise$
|
|
8842
|
+
isPromise$2.isPromise = isPromise$1;
|
|
8464
8843
|
|
|
8465
8844
|
var isInteropObservable$1 = {};
|
|
8466
8845
|
|
|
8467
8846
|
isInteropObservable$1.isInteropObservable = void 0;
|
|
8468
8847
|
var observable_1$1 = observable;
|
|
8469
|
-
var isFunction_1$j = isFunction$
|
|
8848
|
+
var isFunction_1$j = isFunction$2;
|
|
8470
8849
|
function isInteropObservable(input) {
|
|
8471
8850
|
return isFunction_1$j.isFunction(input[observable_1$1.observable]);
|
|
8472
8851
|
}
|
|
8473
8852
|
isInteropObservable$1.isInteropObservable = isInteropObservable;
|
|
8474
8853
|
|
|
8475
|
-
var isAsyncIterable$
|
|
8854
|
+
var isAsyncIterable$2 = {};
|
|
8476
8855
|
|
|
8477
|
-
isAsyncIterable$
|
|
8478
|
-
var isFunction_1$i = isFunction$
|
|
8479
|
-
function isAsyncIterable(obj) {
|
|
8856
|
+
isAsyncIterable$2.isAsyncIterable = void 0;
|
|
8857
|
+
var isFunction_1$i = isFunction$2;
|
|
8858
|
+
function isAsyncIterable$1(obj) {
|
|
8480
8859
|
return Symbol.asyncIterator && isFunction_1$i.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);
|
|
8481
8860
|
}
|
|
8482
|
-
isAsyncIterable$
|
|
8861
|
+
isAsyncIterable$2.isAsyncIterable = isAsyncIterable$1;
|
|
8483
8862
|
|
|
8484
8863
|
var throwUnobservableError = {};
|
|
8485
8864
|
|
|
@@ -8489,7 +8868,7 @@ function createInvalidObservableTypeError(input) {
|
|
|
8489
8868
|
}
|
|
8490
8869
|
throwUnobservableError.createInvalidObservableTypeError = createInvalidObservableTypeError;
|
|
8491
8870
|
|
|
8492
|
-
var isIterable$
|
|
8871
|
+
var isIterable$2 = {};
|
|
8493
8872
|
|
|
8494
8873
|
var iterator = {};
|
|
8495
8874
|
|
|
@@ -8503,13 +8882,13 @@ function getSymbolIterator() {
|
|
|
8503
8882
|
iterator.getSymbolIterator = getSymbolIterator;
|
|
8504
8883
|
iterator.iterator = getSymbolIterator();
|
|
8505
8884
|
|
|
8506
|
-
isIterable$
|
|
8885
|
+
isIterable$2.isIterable = void 0;
|
|
8507
8886
|
var iterator_1$1 = iterator;
|
|
8508
|
-
var isFunction_1$h = isFunction$
|
|
8509
|
-
function isIterable(input) {
|
|
8887
|
+
var isFunction_1$h = isFunction$2;
|
|
8888
|
+
function isIterable$1(input) {
|
|
8510
8889
|
return isFunction_1$h.isFunction(input === null || input === void 0 ? void 0 : input[iterator_1$1.iterator]);
|
|
8511
8890
|
}
|
|
8512
|
-
isIterable$
|
|
8891
|
+
isIterable$2.isIterable = isIterable$1;
|
|
8513
8892
|
|
|
8514
8893
|
var isReadableStreamLike$1 = {};
|
|
8515
8894
|
|
|
@@ -8552,7 +8931,7 @@ var __asyncGenerator = (commonjsGlobal && commonjsGlobal.__asyncGenerator) || fu
|
|
|
8552
8931
|
function reject(value) { resume("throw", value); }
|
|
8553
8932
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
8554
8933
|
};isReadableStreamLike$1.isReadableStreamLike = isReadableStreamLike$1.readableStreamLikeToAsyncGenerator = void 0;
|
|
8555
|
-
var isFunction_1$g = isFunction$
|
|
8934
|
+
var isFunction_1$g = isFunction$2;
|
|
8556
8935
|
function readableStreamLikeToAsyncGenerator(readableStream) {
|
|
8557
8936
|
return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
|
|
8558
8937
|
var reader, _a, value, done;
|
|
@@ -8646,14 +9025,14 @@ var __values$6 = (commonjsGlobal && commonjsGlobal.__values) || function(o) {
|
|
|
8646
9025
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
8647
9026
|
};innerFrom$1.fromReadableStreamLike = innerFrom$1.fromAsyncIterable = innerFrom$1.fromIterable = innerFrom$1.fromPromise = innerFrom$1.fromArrayLike = innerFrom$1.fromInteropObservable = innerFrom$1.innerFrom = void 0;
|
|
8648
9027
|
var isArrayLike_1$2 = isArrayLike;
|
|
8649
|
-
var isPromise_1$1 = isPromise$
|
|
9028
|
+
var isPromise_1$1 = isPromise$2;
|
|
8650
9029
|
var Observable_1$j = Observable$1;
|
|
8651
9030
|
var isInteropObservable_1$1 = isInteropObservable$1;
|
|
8652
|
-
var isAsyncIterable_1$1 = isAsyncIterable$
|
|
9031
|
+
var isAsyncIterable_1$1 = isAsyncIterable$2;
|
|
8653
9032
|
var throwUnobservableError_1$1 = throwUnobservableError;
|
|
8654
|
-
var isIterable_1$1 = isIterable$
|
|
9033
|
+
var isIterable_1$1 = isIterable$2;
|
|
8655
9034
|
var isReadableStreamLike_1$2 = isReadableStreamLike$1;
|
|
8656
|
-
var isFunction_1$f = isFunction$
|
|
9035
|
+
var isFunction_1$f = isFunction$2;
|
|
8657
9036
|
var reportUnhandledError_1 = reportUnhandledError$1;
|
|
8658
9037
|
var observable_1 = observable;
|
|
8659
9038
|
function innerFrom(input) {
|
|
@@ -8889,7 +9268,7 @@ var scheduleIterable$1 = {};
|
|
|
8889
9268
|
scheduleIterable$1.scheduleIterable = void 0;
|
|
8890
9269
|
var Observable_1$h = Observable$1;
|
|
8891
9270
|
var iterator_1 = iterator;
|
|
8892
|
-
var isFunction_1$e = isFunction$
|
|
9271
|
+
var isFunction_1$e = isFunction$2;
|
|
8893
9272
|
var executeSchedule_1$5 = executeSchedule$1;
|
|
8894
9273
|
function scheduleIterable(input, scheduler) {
|
|
8895
9274
|
return new Observable_1$h.Observable(function (subscriber) {
|
|
@@ -8964,10 +9343,10 @@ var scheduleArray_1 = scheduleArray$1;
|
|
|
8964
9343
|
var scheduleIterable_1$1 = scheduleIterable$1;
|
|
8965
9344
|
var scheduleAsyncIterable_1 = scheduleAsyncIterable$1;
|
|
8966
9345
|
var isInteropObservable_1 = isInteropObservable$1;
|
|
8967
|
-
var isPromise_1 = isPromise$
|
|
9346
|
+
var isPromise_1 = isPromise$2;
|
|
8968
9347
|
var isArrayLike_1$1 = isArrayLike;
|
|
8969
|
-
var isIterable_1 = isIterable$
|
|
8970
|
-
var isAsyncIterable_1 = isAsyncIterable$
|
|
9348
|
+
var isIterable_1 = isIterable$2;
|
|
9349
|
+
var isAsyncIterable_1 = isAsyncIterable$2;
|
|
8971
9350
|
var throwUnobservableError_1 = throwUnobservableError;
|
|
8972
9351
|
var isReadableStreamLike_1 = isReadableStreamLike$1;
|
|
8973
9352
|
var scheduleReadableStreamLike_1 = scheduleReadableStreamLike$1;
|
|
@@ -9021,7 +9400,7 @@ var throwError$1 = {};
|
|
|
9021
9400
|
|
|
9022
9401
|
throwError$1.throwError = void 0;
|
|
9023
9402
|
var Observable_1$f = Observable$1;
|
|
9024
|
-
var isFunction_1$d = isFunction$
|
|
9403
|
+
var isFunction_1$d = isFunction$2;
|
|
9025
9404
|
function throwError(errorOrErrorFactory, scheduler) {
|
|
9026
9405
|
var errorFactory = isFunction_1$d.isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function () { return errorOrErrorFactory; };
|
|
9027
9406
|
var init = function (subscriber) { return subscriber.error(errorFactory()); };
|
|
@@ -9034,7 +9413,7 @@ exports.observeNotification = exports.Notification = exports.NotificationKind =
|
|
|
9034
9413
|
var empty_1 = empty;
|
|
9035
9414
|
var of_1 = of$1;
|
|
9036
9415
|
var throwError_1 = throwError$1;
|
|
9037
|
-
var isFunction_1 = isFunction$
|
|
9416
|
+
var isFunction_1 = isFunction$2;
|
|
9038
9417
|
(function (NotificationKind) {
|
|
9039
9418
|
NotificationKind["NEXT"] = "N";
|
|
9040
9419
|
NotificationKind["ERROR"] = "E";
|
|
@@ -9109,7 +9488,7 @@ var isObservable$1 = {};
|
|
|
9109
9488
|
|
|
9110
9489
|
isObservable$1.isObservable = void 0;
|
|
9111
9490
|
var Observable_1$e = Observable$1;
|
|
9112
|
-
var isFunction_1$c = isFunction$
|
|
9491
|
+
var isFunction_1$c = isFunction$2;
|
|
9113
9492
|
function isObservable(obj) {
|
|
9114
9493
|
return !!obj && (obj instanceof Observable_1$e.Observable || (isFunction_1$c.isFunction(obj.lift) && isFunction_1$c.isFunction(obj.subscribe)));
|
|
9115
9494
|
}
|
|
@@ -9222,18 +9601,18 @@ SequenceError.SequenceError = createErrorClass_1.createErrorClass(function (_sup
|
|
|
9222
9601
|
|
|
9223
9602
|
var timeout = {};
|
|
9224
9603
|
|
|
9225
|
-
var isDate = {};
|
|
9604
|
+
var isDate$1 = {};
|
|
9226
9605
|
|
|
9227
|
-
isDate.isValidDate = void 0;
|
|
9606
|
+
isDate$1.isValidDate = void 0;
|
|
9228
9607
|
function isValidDate(value) {
|
|
9229
9608
|
return value instanceof Date && !isNaN(value);
|
|
9230
9609
|
}
|
|
9231
|
-
isDate.isValidDate = isValidDate;
|
|
9610
|
+
isDate$1.isValidDate = isValidDate;
|
|
9232
9611
|
|
|
9233
9612
|
(function (exports) {
|
|
9234
9613
|
exports.timeout = exports.TimeoutError = void 0;
|
|
9235
9614
|
var async_1 = async;
|
|
9236
|
-
var isDate_1 = isDate;
|
|
9615
|
+
var isDate_1 = isDate$1;
|
|
9237
9616
|
var lift_1 = lift;
|
|
9238
9617
|
var innerFrom_1 = innerFrom$1;
|
|
9239
9618
|
var createErrorClass_1 = createErrorClass$1;
|
|
@@ -9337,9 +9716,9 @@ var __spreadArray$f = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
9337
9716
|
return to;
|
|
9338
9717
|
};mapOneOrManyArgs$1.mapOneOrManyArgs = void 0;
|
|
9339
9718
|
var map_1$5 = map$1;
|
|
9340
|
-
var isArray$
|
|
9719
|
+
var isArray$3 = Array.isArray;
|
|
9341
9720
|
function callOrApply(fn, args) {
|
|
9342
|
-
return isArray$
|
|
9721
|
+
return isArray$3(args) ? fn.apply(void 0, __spreadArray$f([], __read$g(args))) : fn(args);
|
|
9343
9722
|
}
|
|
9344
9723
|
function mapOneOrManyArgs(fn) {
|
|
9345
9724
|
return map_1$5.map(function (args) { return callOrApply(fn, args); });
|
|
@@ -9467,12 +9846,12 @@ var combineLatest$3 = {};
|
|
|
9467
9846
|
var argsArgArrayOrObject$1 = {};
|
|
9468
9847
|
|
|
9469
9848
|
argsArgArrayOrObject$1.argsArgArrayOrObject = void 0;
|
|
9470
|
-
var isArray$
|
|
9849
|
+
var isArray$2 = Array.isArray;
|
|
9471
9850
|
var getPrototypeOf = Object.getPrototypeOf, objectProto = Object.prototype, getKeys = Object.keys;
|
|
9472
9851
|
function argsArgArrayOrObject(args) {
|
|
9473
9852
|
if (args.length === 1) {
|
|
9474
9853
|
var first_1 = args[0];
|
|
9475
|
-
if (isArray$
|
|
9854
|
+
if (isArray$2(first_1)) {
|
|
9476
9855
|
return { args: first_1, keys: null };
|
|
9477
9856
|
}
|
|
9478
9857
|
if (isPOJO(first_1)) {
|
|
@@ -9649,7 +10028,7 @@ var map_1$4 = map$1;
|
|
|
9649
10028
|
var innerFrom_1$p = innerFrom$1;
|
|
9650
10029
|
var lift_1$10 = lift;
|
|
9651
10030
|
var mergeInternals_1$2 = mergeInternals$1;
|
|
9652
|
-
var isFunction_1$b = isFunction$
|
|
10031
|
+
var isFunction_1$b = isFunction$2;
|
|
9653
10032
|
function mergeMap(project, resultSelector, concurrent) {
|
|
9654
10033
|
if (concurrent === void 0) { concurrent = Infinity; }
|
|
9655
10034
|
if (isFunction_1$b.isFunction(resultSelector)) {
|
|
@@ -9807,7 +10186,7 @@ var innerFrom_1$m = innerFrom$1;
|
|
|
9807
10186
|
var Observable_1$8 = Observable$1;
|
|
9808
10187
|
var mergeMap_1$5 = mergeMap$1;
|
|
9809
10188
|
var isArrayLike_1 = isArrayLike;
|
|
9810
|
-
var isFunction_1$a = isFunction$
|
|
10189
|
+
var isFunction_1$a = isFunction$2;
|
|
9811
10190
|
var mapOneOrManyArgs_1$3 = mapOneOrManyArgs$1;
|
|
9812
10191
|
var nodeEventEmitterMethods = ['addListener', 'removeListener'];
|
|
9813
10192
|
var eventTargetMethods = ['addEventListener', 'removeEventListener'];
|
|
@@ -9866,7 +10245,7 @@ var fromEventPattern$1 = {};
|
|
|
9866
10245
|
|
|
9867
10246
|
fromEventPattern$1.fromEventPattern = void 0;
|
|
9868
10247
|
var Observable_1$7 = Observable$1;
|
|
9869
|
-
var isFunction_1$9 = isFunction$
|
|
10248
|
+
var isFunction_1$9 = isFunction$2;
|
|
9870
10249
|
var mapOneOrManyArgs_1$2 = mapOneOrManyArgs$1;
|
|
9871
10250
|
function fromEventPattern(addHandler, removeHandler, resultSelector) {
|
|
9872
10251
|
if (resultSelector) {
|
|
@@ -9981,7 +10360,7 @@ timer$1.timer = void 0;
|
|
|
9981
10360
|
var Observable_1$6 = Observable$1;
|
|
9982
10361
|
var async_1$a = async;
|
|
9983
10362
|
var isScheduler_1 = isScheduler$1;
|
|
9984
|
-
var isDate_1$1 = isDate;
|
|
10363
|
+
var isDate_1$1 = isDate$1;
|
|
9985
10364
|
function timer(dueTime, intervalOrScheduler, scheduler) {
|
|
9986
10365
|
if (dueTime === void 0) { dueTime = 0; }
|
|
9987
10366
|
if (scheduler === void 0) { scheduler = async_1$a.async; }
|
|
@@ -10076,9 +10455,9 @@ var onErrorResumeNext$2 = {};
|
|
|
10076
10455
|
var argsOrArgArray$1 = {};
|
|
10077
10456
|
|
|
10078
10457
|
argsOrArgArray$1.argsOrArgArray = void 0;
|
|
10079
|
-
var isArray = Array.isArray;
|
|
10458
|
+
var isArray$1 = Array.isArray;
|
|
10080
10459
|
function argsOrArgArray(args) {
|
|
10081
|
-
return args.length === 1 && isArray(args[0]) ? args[0] : args;
|
|
10460
|
+
return args.length === 1 && isArray$1(args[0]) ? args[0] : args;
|
|
10082
10461
|
}
|
|
10083
10462
|
argsOrArgArray$1.argsOrArgArray = argsOrArgArray;
|
|
10084
10463
|
|
|
@@ -10889,7 +11268,7 @@ var concatMap$1 = {};
|
|
|
10889
11268
|
|
|
10890
11269
|
concatMap$1.concatMap = void 0;
|
|
10891
11270
|
var mergeMap_1$3 = mergeMap$1;
|
|
10892
|
-
var isFunction_1$8 = isFunction$
|
|
11271
|
+
var isFunction_1$8 = isFunction$2;
|
|
10893
11272
|
function concatMap(project, resultSelector) {
|
|
10894
11273
|
return isFunction_1$8.isFunction(resultSelector) ? mergeMap_1$3.mergeMap(project, resultSelector, 1) : mergeMap_1$3.mergeMap(project, 1);
|
|
10895
11274
|
}
|
|
@@ -10899,7 +11278,7 @@ var concatMapTo$1 = {};
|
|
|
10899
11278
|
|
|
10900
11279
|
concatMapTo$1.concatMapTo = void 0;
|
|
10901
11280
|
var concatMap_1 = concatMap$1;
|
|
10902
|
-
var isFunction_1$7 = isFunction$
|
|
11281
|
+
var isFunction_1$7 = isFunction$2;
|
|
10903
11282
|
function concatMapTo(innerObservable, resultSelector) {
|
|
10904
11283
|
return isFunction_1$7.isFunction(resultSelector) ? concatMap_1.concatMap(function () { return innerObservable; }, resultSelector) : concatMap_1.concatMap(function () { return innerObservable; });
|
|
10905
11284
|
}
|
|
@@ -11687,7 +12066,7 @@ var max$1 = {};
|
|
|
11687
12066
|
|
|
11688
12067
|
max$1.max = void 0;
|
|
11689
12068
|
var reduce_1$1 = reduce$1;
|
|
11690
|
-
var isFunction_1$6 = isFunction$
|
|
12069
|
+
var isFunction_1$6 = isFunction$2;
|
|
11691
12070
|
function max(comparer) {
|
|
11692
12071
|
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); });
|
|
11693
12072
|
}
|
|
@@ -11703,7 +12082,7 @@ var mergeMapTo$1 = {};
|
|
|
11703
12082
|
|
|
11704
12083
|
mergeMapTo$1.mergeMapTo = void 0;
|
|
11705
12084
|
var mergeMap_1 = mergeMap$1;
|
|
11706
|
-
var isFunction_1$5 = isFunction$
|
|
12085
|
+
var isFunction_1$5 = isFunction$2;
|
|
11707
12086
|
function mergeMapTo(innerObservable, resultSelector, concurrent) {
|
|
11708
12087
|
if (concurrent === void 0) { concurrent = Infinity; }
|
|
11709
12088
|
if (isFunction_1$5.isFunction(resultSelector)) {
|
|
@@ -11811,7 +12190,7 @@ var min$1 = {};
|
|
|
11811
12190
|
|
|
11812
12191
|
min$1.min = void 0;
|
|
11813
12192
|
var reduce_1 = reduce$1;
|
|
11814
|
-
var isFunction_1$4 = isFunction$
|
|
12193
|
+
var isFunction_1$4 = isFunction$2;
|
|
11815
12194
|
function min(comparer) {
|
|
11816
12195
|
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); });
|
|
11817
12196
|
}
|
|
@@ -11821,7 +12200,7 @@ var multicast$1 = {};
|
|
|
11821
12200
|
|
|
11822
12201
|
multicast$1.multicast = void 0;
|
|
11823
12202
|
var ConnectableObservable_1$2 = ConnectableObservable$1;
|
|
11824
|
-
var isFunction_1$3 = isFunction$
|
|
12203
|
+
var isFunction_1$3 = isFunction$2;
|
|
11825
12204
|
var connect_1$1 = connect$1;
|
|
11826
12205
|
function multicast(subjectOrSubjectFactory, selector) {
|
|
11827
12206
|
var subjectFactory = isFunction_1$3.isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function () { return subjectOrSubjectFactory; };
|
|
@@ -11924,7 +12303,7 @@ var publishReplay$1 = {};
|
|
|
11924
12303
|
publishReplay$1.publishReplay = void 0;
|
|
11925
12304
|
var ReplaySubject_1$1 = ReplaySubject$1;
|
|
11926
12305
|
var multicast_1 = multicast$1;
|
|
11927
|
-
var isFunction_1$2 = isFunction$
|
|
12306
|
+
var isFunction_1$2 = isFunction$2;
|
|
11928
12307
|
function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) {
|
|
11929
12308
|
if (selectorOrScheduler && !isFunction_1$2.isFunction(selectorOrScheduler)) {
|
|
11930
12309
|
timestampProvider = selectorOrScheduler;
|
|
@@ -12581,7 +12960,7 @@ var switchMapTo$1 = {};
|
|
|
12581
12960
|
|
|
12582
12961
|
switchMapTo$1.switchMapTo = void 0;
|
|
12583
12962
|
var switchMap_1$1 = switchMap$1;
|
|
12584
|
-
var isFunction_1$1 = isFunction$
|
|
12963
|
+
var isFunction_1$1 = isFunction$2;
|
|
12585
12964
|
function switchMapTo(innerObservable, resultSelector) {
|
|
12586
12965
|
return isFunction_1$1.isFunction(resultSelector) ? switchMap_1$1.switchMap(function () { return innerObservable; }, resultSelector) : switchMap_1$1.switchMap(function () { return innerObservable; });
|
|
12587
12966
|
}
|
|
@@ -12639,7 +13018,7 @@ takeWhile$1.takeWhile = takeWhile;
|
|
|
12639
13018
|
var tap$1 = {};
|
|
12640
13019
|
|
|
12641
13020
|
tap$1.tap = void 0;
|
|
12642
|
-
var isFunction_1 = isFunction$
|
|
13021
|
+
var isFunction_1 = isFunction$2;
|
|
12643
13022
|
var lift_1$8 = lift;
|
|
12644
13023
|
var OperatorSubscriber_1$7 = OperatorSubscriber$1;
|
|
12645
13024
|
var identity_1$1 = identity$1;
|
|
@@ -12783,7 +13162,7 @@ var timeoutWith$1 = {};
|
|
|
12783
13162
|
|
|
12784
13163
|
timeoutWith$1.timeoutWith = void 0;
|
|
12785
13164
|
var async_1$1 = async;
|
|
12786
|
-
var isDate_1 = isDate;
|
|
13165
|
+
var isDate_1 = isDate$1;
|
|
12787
13166
|
var timeout_1 = timeout;
|
|
12788
13167
|
function timeoutWith(due, withObservable, scheduler) {
|
|
12789
13168
|
var first;
|
|
@@ -13612,30 +13991,390 @@ zipWith$1.zipWith = zipWith;
|
|
|
13612
13991
|
|
|
13613
13992
|
} (cjs));
|
|
13614
13993
|
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
|
|
13618
|
-
|
|
13619
|
-
|
|
13620
|
-
|
|
13621
|
-
|
|
13622
|
-
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
13994
|
+
var es2018 = {};
|
|
13995
|
+
|
|
13996
|
+
var array = {};
|
|
13997
|
+
|
|
13998
|
+
array.isntEmptyArray = array.isEmptyArray = array.isntArray = array.isArray = void 0;
|
|
13999
|
+
function isArray(val) {
|
|
14000
|
+
return Array.isArray(val);
|
|
14001
|
+
}
|
|
14002
|
+
array.isArray = isArray;
|
|
14003
|
+
function isntArray(val) {
|
|
14004
|
+
return !isArray(val);
|
|
14005
|
+
}
|
|
14006
|
+
array.isntArray = isntArray;
|
|
14007
|
+
function isEmptyArray(val) {
|
|
14008
|
+
return val.length === 0;
|
|
14009
|
+
}
|
|
14010
|
+
array.isEmptyArray = isEmptyArray;
|
|
14011
|
+
function isntEmptyArray(val) {
|
|
14012
|
+
return val.length !== 0;
|
|
14013
|
+
}
|
|
14014
|
+
array.isntEmptyArray = isntEmptyArray;
|
|
14015
|
+
|
|
14016
|
+
var asyncIterable = {};
|
|
14017
|
+
|
|
14018
|
+
var _null = {};
|
|
14019
|
+
|
|
14020
|
+
_null.isntNull = _null.isNull = void 0;
|
|
14021
|
+
function isNull(val) {
|
|
14022
|
+
return val === null;
|
|
14023
|
+
}
|
|
14024
|
+
_null.isNull = isNull;
|
|
14025
|
+
function isntNull(val) {
|
|
14026
|
+
return !isNull(val);
|
|
14027
|
+
}
|
|
14028
|
+
_null.isntNull = isntNull;
|
|
14029
|
+
|
|
14030
|
+
var _undefined = {};
|
|
14031
|
+
|
|
14032
|
+
_undefined.isntUndefined = _undefined.isUndefined = void 0;
|
|
14033
|
+
function isUndefined(val) {
|
|
14034
|
+
return val === undefined;
|
|
14035
|
+
}
|
|
14036
|
+
_undefined.isUndefined = isUndefined;
|
|
14037
|
+
function isntUndefined(val) {
|
|
14038
|
+
return !isUndefined(val);
|
|
14039
|
+
}
|
|
14040
|
+
_undefined.isntUndefined = isntUndefined;
|
|
14041
|
+
|
|
14042
|
+
var _function = {};
|
|
14043
|
+
|
|
14044
|
+
_function.isntFunction = _function.isFunction = void 0;
|
|
14045
|
+
function isFunction(val) {
|
|
14046
|
+
return typeof val === 'function';
|
|
14047
|
+
}
|
|
14048
|
+
_function.isFunction = isFunction;
|
|
14049
|
+
function isntFunction(val) {
|
|
14050
|
+
return !isFunction(val);
|
|
14051
|
+
}
|
|
14052
|
+
_function.isntFunction = isntFunction;
|
|
14053
|
+
|
|
14054
|
+
asyncIterable.isntAsyncIterable = asyncIterable.isAsyncIterable = void 0;
|
|
14055
|
+
const null_1$2 = _null;
|
|
14056
|
+
const undefined_1$1 = _undefined;
|
|
14057
|
+
const function_1$2 = _function;
|
|
14058
|
+
function isAsyncIterable(val) {
|
|
14059
|
+
return (0, null_1$2.isntNull)(val)
|
|
14060
|
+
&& (0, undefined_1$1.isntUndefined)(val)
|
|
14061
|
+
&& (0, function_1$2.isFunction)(val[Symbol.asyncIterator]);
|
|
14062
|
+
}
|
|
14063
|
+
asyncIterable.isAsyncIterable = isAsyncIterable;
|
|
14064
|
+
function isntAsyncIterable(val) {
|
|
14065
|
+
return !isAsyncIterable(val);
|
|
14066
|
+
}
|
|
14067
|
+
asyncIterable.isntAsyncIterable = isntAsyncIterable;
|
|
14068
|
+
|
|
14069
|
+
var bigint = {};
|
|
14070
|
+
|
|
14071
|
+
bigint.isntBigInt = bigint.isBigInt = void 0;
|
|
14072
|
+
function isBigInt(val) {
|
|
14073
|
+
return typeof val === 'bigint';
|
|
14074
|
+
}
|
|
14075
|
+
bigint.isBigInt = isBigInt;
|
|
14076
|
+
function isntBigInt(val) {
|
|
14077
|
+
return !isBigInt(val);
|
|
14078
|
+
}
|
|
14079
|
+
bigint.isntBigInt = isntBigInt;
|
|
14080
|
+
|
|
14081
|
+
var boolean = {};
|
|
14082
|
+
|
|
14083
|
+
boolean.isntBoolean = boolean.isBoolean = void 0;
|
|
14084
|
+
function isBoolean(val) {
|
|
14085
|
+
return typeof val === 'boolean';
|
|
14086
|
+
}
|
|
14087
|
+
boolean.isBoolean = isBoolean;
|
|
14088
|
+
function isntBoolean(val) {
|
|
14089
|
+
return !isBoolean(val);
|
|
14090
|
+
}
|
|
14091
|
+
boolean.isntBoolean = isntBoolean;
|
|
14092
|
+
|
|
14093
|
+
var char = {};
|
|
14094
|
+
|
|
14095
|
+
var string = {};
|
|
14096
|
+
|
|
14097
|
+
string.isntString = string.isString = void 0;
|
|
14098
|
+
function isString(val) {
|
|
14099
|
+
return typeof val === 'string';
|
|
14100
|
+
}
|
|
14101
|
+
string.isString = isString;
|
|
14102
|
+
function isntString(val) {
|
|
14103
|
+
return !isString(val);
|
|
14104
|
+
}
|
|
14105
|
+
string.isntString = isntString;
|
|
14106
|
+
|
|
14107
|
+
char.isntChar = char.isChar = void 0;
|
|
14108
|
+
const string_1$1 = string;
|
|
14109
|
+
function isChar(val) {
|
|
14110
|
+
return (0, string_1$1.isString)(val)
|
|
14111
|
+
&& val.length === 1;
|
|
14112
|
+
}
|
|
14113
|
+
char.isChar = isChar;
|
|
14114
|
+
function isntChar(val) {
|
|
14115
|
+
return !isChar(val);
|
|
14116
|
+
}
|
|
14117
|
+
char.isntChar = isntChar;
|
|
14118
|
+
|
|
14119
|
+
var date = {};
|
|
14120
|
+
|
|
14121
|
+
date.isntDate = date.isDate = void 0;
|
|
14122
|
+
function isDate(val) {
|
|
14123
|
+
return val instanceof Date;
|
|
14124
|
+
}
|
|
14125
|
+
date.isDate = isDate;
|
|
14126
|
+
function isntDate(val) {
|
|
14127
|
+
return !isDate(val);
|
|
14128
|
+
}
|
|
14129
|
+
date.isntDate = isntDate;
|
|
14130
|
+
|
|
14131
|
+
var _enum = {};
|
|
14132
|
+
|
|
14133
|
+
_enum.inEnum = void 0;
|
|
14134
|
+
function inEnum(val, _enum) {
|
|
14135
|
+
return Object.values(_enum).includes(val);
|
|
14136
|
+
}
|
|
14137
|
+
_enum.inEnum = inEnum;
|
|
14138
|
+
|
|
14139
|
+
var error = {};
|
|
14140
|
+
|
|
14141
|
+
error.isntError = error.isError = void 0;
|
|
14142
|
+
function isError(val) {
|
|
14143
|
+
return val instanceof Error;
|
|
14144
|
+
}
|
|
14145
|
+
error.isError = isError;
|
|
14146
|
+
function isntError(val) {
|
|
14147
|
+
return !isError(val);
|
|
14148
|
+
}
|
|
14149
|
+
error.isntError = isntError;
|
|
14150
|
+
|
|
14151
|
+
var falsy = {};
|
|
14152
|
+
|
|
14153
|
+
falsy.isntFalsy = falsy.isFalsy = void 0;
|
|
14154
|
+
function isFalsy(val) {
|
|
14155
|
+
return !val;
|
|
14156
|
+
}
|
|
14157
|
+
falsy.isFalsy = isFalsy;
|
|
14158
|
+
function isntFalsy(val) {
|
|
14159
|
+
return !isFalsy(val);
|
|
14160
|
+
}
|
|
14161
|
+
falsy.isntFalsy = isntFalsy;
|
|
14162
|
+
|
|
14163
|
+
var iterable = {};
|
|
14164
|
+
|
|
14165
|
+
iterable.isntIterable = iterable.isIterable = void 0;
|
|
14166
|
+
const null_1$1 = _null;
|
|
14167
|
+
const undefined_1 = _undefined;
|
|
14168
|
+
const function_1$1 = _function;
|
|
14169
|
+
function isIterable(val) {
|
|
14170
|
+
return (0, null_1$1.isntNull)(val)
|
|
14171
|
+
&& (0, undefined_1.isntUndefined)(val)
|
|
14172
|
+
&& (0, function_1$1.isFunction)(val[Symbol.iterator]);
|
|
14173
|
+
}
|
|
14174
|
+
iterable.isIterable = isIterable;
|
|
14175
|
+
function isntIterable(val) {
|
|
14176
|
+
return !isIterable(val);
|
|
14177
|
+
}
|
|
14178
|
+
iterable.isntIterable = isntIterable;
|
|
14179
|
+
|
|
14180
|
+
var json = {};
|
|
14181
|
+
|
|
14182
|
+
var number = {};
|
|
14183
|
+
|
|
14184
|
+
number.isntNaN = number.isNaN = number.isNegativeInfinity = number.isPositiveInfinity = number.isFinite = number.isntNumber = number.isNumber = void 0;
|
|
14185
|
+
function isNumber(val) {
|
|
14186
|
+
return typeof val === 'number';
|
|
14187
|
+
}
|
|
14188
|
+
number.isNumber = isNumber;
|
|
14189
|
+
function isntNumber(val) {
|
|
14190
|
+
return !isNumber(val);
|
|
14191
|
+
}
|
|
14192
|
+
number.isntNumber = isntNumber;
|
|
14193
|
+
function isFinite(val) {
|
|
14194
|
+
return Number.isFinite(val);
|
|
14195
|
+
}
|
|
14196
|
+
number.isFinite = isFinite;
|
|
14197
|
+
function isPositiveInfinity(val) {
|
|
14198
|
+
return val === Infinity;
|
|
14199
|
+
}
|
|
14200
|
+
number.isPositiveInfinity = isPositiveInfinity;
|
|
14201
|
+
function isNegativeInfinity(val) {
|
|
14202
|
+
return val === -Infinity;
|
|
14203
|
+
}
|
|
14204
|
+
number.isNegativeInfinity = isNegativeInfinity;
|
|
14205
|
+
function isNaN$1(val) {
|
|
14206
|
+
return Number.isNaN(val);
|
|
14207
|
+
}
|
|
14208
|
+
number.isNaN = isNaN$1;
|
|
14209
|
+
function isntNaN(val) {
|
|
14210
|
+
return !isNaN$1(val);
|
|
14211
|
+
}
|
|
14212
|
+
number.isntNaN = isntNaN;
|
|
14213
|
+
|
|
14214
|
+
var object = {};
|
|
14215
|
+
|
|
14216
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
14217
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14218
|
+
};object.isntEmptyObject = object.isEmptyObject = object.isntPlainObject = object.isPlainObject = object.isntObject = object.isObject = void 0;
|
|
14219
|
+
const isPlainObject_1 = __importDefault(isPlainObject_1$3);
|
|
14220
|
+
function isObject(val) {
|
|
14221
|
+
return val !== null
|
|
14222
|
+
&& typeof val === 'object';
|
|
14223
|
+
}
|
|
14224
|
+
object.isObject = isObject;
|
|
14225
|
+
function isntObject(val) {
|
|
14226
|
+
return !isObject(val);
|
|
14227
|
+
}
|
|
14228
|
+
object.isntObject = isntObject;
|
|
14229
|
+
function isPlainObject(val) {
|
|
14230
|
+
return (0, isPlainObject_1.default)(val);
|
|
14231
|
+
}
|
|
14232
|
+
object.isPlainObject = isPlainObject;
|
|
14233
|
+
function isntPlainObject(val) {
|
|
14234
|
+
return !isPlainObject(val);
|
|
14235
|
+
}
|
|
14236
|
+
object.isntPlainObject = isntPlainObject;
|
|
14237
|
+
function isEmptyObject(val) {
|
|
14238
|
+
return Object.keys(val).length === 0;
|
|
14239
|
+
}
|
|
14240
|
+
object.isEmptyObject = isEmptyObject;
|
|
14241
|
+
function isntEmptyObject(val) {
|
|
14242
|
+
return Object.keys(val).length !== 0;
|
|
14243
|
+
}
|
|
14244
|
+
object.isntEmptyObject = isntEmptyObject;
|
|
14245
|
+
|
|
14246
|
+
json.isntJsonable = json.isJsonable = json.isntJson = json.isJson = void 0;
|
|
14247
|
+
const null_1 = _null;
|
|
14248
|
+
const boolean_1 = boolean;
|
|
14249
|
+
const string_1 = string;
|
|
14250
|
+
const number_1 = number;
|
|
14251
|
+
const array_1 = array;
|
|
14252
|
+
const object_1$1 = object;
|
|
14253
|
+
function isJson(val) {
|
|
14254
|
+
return (0, null_1.isNull)(val)
|
|
14255
|
+
|| (0, boolean_1.isBoolean)(val)
|
|
14256
|
+
|| (0, string_1.isString)(val)
|
|
14257
|
+
|| (0, number_1.isNumber)(val)
|
|
14258
|
+
|| ((0, array_1.isArray)(val) && val.every(isJson))
|
|
14259
|
+
|| ((0, object_1$1.isPlainObject)(val) && Object.values(val).every(isJson));
|
|
14260
|
+
}
|
|
14261
|
+
json.isJson = isJson;
|
|
14262
|
+
function isntJson(val) {
|
|
14263
|
+
return !isJson(val);
|
|
14264
|
+
}
|
|
14265
|
+
json.isntJson = isntJson;
|
|
14266
|
+
function isJsonable(val) {
|
|
14267
|
+
try {
|
|
14268
|
+
JSON.stringify(val);
|
|
14269
|
+
return true;
|
|
14270
|
+
}
|
|
14271
|
+
catch (_a) {
|
|
14272
|
+
return false;
|
|
14273
|
+
}
|
|
14274
|
+
}
|
|
14275
|
+
json.isJsonable = isJsonable;
|
|
14276
|
+
function isntJsonable(val) {
|
|
14277
|
+
return !isntJsonable();
|
|
14278
|
+
}
|
|
14279
|
+
json.isntJsonable = isntJsonable;
|
|
14280
|
+
|
|
14281
|
+
var promise = {};
|
|
14282
|
+
|
|
14283
|
+
promise.isPromiseLike = promise.isntPromiseLike = promise.isntPromise = promise.isPromise = void 0;
|
|
14284
|
+
const object_1 = object;
|
|
14285
|
+
const function_1 = _function;
|
|
14286
|
+
function isPromise(val) {
|
|
14287
|
+
return val instanceof Promise;
|
|
14288
|
+
}
|
|
14289
|
+
promise.isPromise = isPromise;
|
|
14290
|
+
function isntPromise(val) {
|
|
14291
|
+
return !isPromise(val);
|
|
14292
|
+
}
|
|
14293
|
+
promise.isntPromise = isntPromise;
|
|
14294
|
+
function isntPromiseLike(val) {
|
|
14295
|
+
return !isPromiseLike(val);
|
|
14296
|
+
}
|
|
14297
|
+
promise.isntPromiseLike = isntPromiseLike;
|
|
14298
|
+
function isPromiseLike(val) {
|
|
14299
|
+
return (0, object_1.isObject)(val)
|
|
14300
|
+
&& (0, function_1.isFunction)(val.then);
|
|
14301
|
+
}
|
|
14302
|
+
promise.isPromiseLike = isPromiseLike;
|
|
14303
|
+
|
|
14304
|
+
var url = {};
|
|
14305
|
+
|
|
14306
|
+
url.isAbsoluteURL = void 0;
|
|
14307
|
+
function isAbsoluteURL(str) {
|
|
14308
|
+
try {
|
|
14309
|
+
new URL(str);
|
|
14310
|
+
return true;
|
|
14311
|
+
}
|
|
14312
|
+
catch (_a) {
|
|
14313
|
+
return false;
|
|
14314
|
+
}
|
|
14315
|
+
}
|
|
14316
|
+
url.isAbsoluteURL = isAbsoluteURL;
|
|
14317
|
+
|
|
14318
|
+
(function (exports) {
|
|
14319
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14320
|
+
if (k2 === undefined) k2 = k;
|
|
14321
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14322
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
14323
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14324
|
+
}
|
|
14325
|
+
Object.defineProperty(o, k2, desc);
|
|
14326
|
+
}) : (function(o, m, k, k2) {
|
|
14327
|
+
if (k2 === undefined) k2 = k;
|
|
14328
|
+
o[k2] = m[k];
|
|
14329
|
+
}));
|
|
14330
|
+
var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
|
|
14331
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
14332
|
+
};__exportStar(array, exports);
|
|
14333
|
+
__exportStar(asyncIterable, exports);
|
|
14334
|
+
__exportStar(bigint, exports);
|
|
14335
|
+
__exportStar(boolean, exports);
|
|
14336
|
+
__exportStar(char, exports);
|
|
14337
|
+
__exportStar(date, exports);
|
|
14338
|
+
__exportStar(_enum, exports);
|
|
14339
|
+
__exportStar(error, exports);
|
|
14340
|
+
__exportStar(falsy, exports);
|
|
14341
|
+
__exportStar(_function, exports);
|
|
14342
|
+
__exportStar(iterable, exports);
|
|
14343
|
+
__exportStar(json, exports);
|
|
14344
|
+
__exportStar(_null, exports);
|
|
14345
|
+
__exportStar(number, exports);
|
|
14346
|
+
__exportStar(object, exports);
|
|
14347
|
+
__exportStar(promise, exports);
|
|
14348
|
+
__exportStar(string, exports);
|
|
14349
|
+
__exportStar(_undefined, exports);
|
|
14350
|
+
__exportStar(url, exports);
|
|
14351
|
+
|
|
14352
|
+
} (es2018));
|
|
14353
|
+
|
|
14354
|
+
(function (exports) {
|
|
14355
|
+
exports.BadEventError = exports.ObservableFiniteStateMachine = void 0;
|
|
14356
|
+
const finite_state_machine_1 = finiteStateMachine;
|
|
14357
|
+
const rxjs_1 = cjs;
|
|
14358
|
+
const types_1 = es2018;
|
|
14359
|
+
class ObservableFiniteStateMachine extends finite_state_machine_1.FiniteStateMachine {
|
|
14360
|
+
constructor() {
|
|
14361
|
+
super(...arguments);
|
|
14362
|
+
this.stateChanges = new rxjs_1.Subject();
|
|
14363
|
+
}
|
|
14364
|
+
observeStateChanges() {
|
|
14365
|
+
return this.stateChanges;
|
|
14366
|
+
}
|
|
14367
|
+
send(event) {
|
|
14368
|
+
const oldState = this.state;
|
|
14369
|
+
super.send(event);
|
|
14370
|
+
const newState = this.state;
|
|
14371
|
+
this.stateChanges.next({ event, oldState, newState });
|
|
14372
|
+
if ((0, types_1.isEmptyObject)(this.schema[newState])) {
|
|
14373
|
+
this.stateChanges.complete();
|
|
14374
|
+
}
|
|
14375
|
+
}
|
|
14376
|
+
}
|
|
14377
|
+
exports.ObservableFiniteStateMachine = ObservableFiniteStateMachine;
|
|
13639
14378
|
var finite_state_machine_2 = finiteStateMachine;
|
|
13640
14379
|
Object.defineProperty(exports, "BadEventError", { enumerable: true, get: function () { return finite_state_machine_2.BadEventError; } });
|
|
13641
14380
|
|
|
@@ -13668,11 +14407,11 @@ exports.BadEventError = exports.ObservableFiniteStateMachine = void 0;
|
|
|
13668
14407
|
__exportStar(finiteStateMachine, exports);
|
|
13669
14408
|
__exportStar(observableFiniteStateMachine, exports);
|
|
13670
14409
|
|
|
13671
|
-
} (es2018$
|
|
14410
|
+
} (es2018$3));
|
|
13672
14411
|
|
|
13673
14412
|
function useFiniteStateMachine(schema, initialState) {
|
|
13674
14413
|
const forceUpdate = useForceUpdate();
|
|
13675
|
-
const fsm = react.exports.useMemo(() => new es2018$
|
|
14414
|
+
const fsm = react.exports.useMemo(() => new es2018$3.ObservableFiniteStateMachine(schema, initialState), [schema]);
|
|
13676
14415
|
react.exports.useEffect(() => {
|
|
13677
14416
|
const observable = fsm.observeStateChanges();
|
|
13678
14417
|
const subscription = observable.subscribe(() => forceUpdate());
|
|
@@ -13681,6 +14420,6 @@ function useFiniteStateMachine(schema, initialState) {
|
|
|
13681
14420
|
return fsm;
|
|
13682
14421
|
}
|
|
13683
14422
|
|
|
13684
|
-
var ObservableFiniteStateMachine = es2018$
|
|
13685
|
-
export { ObservableFiniteStateMachine, useFiniteStateMachine, useForceUpdate, useIncrement, useIsFirstRender, useIsMounted, useMount, useMultipleSelection, useResizeObserver, useSingleSelection, useStateCycle, useStep, useToggle, useUpdateEffect };
|
|
14423
|
+
var ObservableFiniteStateMachine = es2018$3.ObservableFiniteStateMachine;
|
|
14424
|
+
export { ObservableFiniteStateMachine, useFiniteStateMachine, useForceUpdate, useIncrement, useIsFirstRender, useIsMounted, useMount, useMultipleSelection, useRenderCounter, useResizeObserver, useSingleSelection, useStateCycle, useStep, useToggle, useUpdateEffect };
|
|
13686
14425
|
//# sourceMappingURL=index.mjs.map
|