@abgov/jsonforms-components 2.58.0 → 2.58.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/index.esm.js CHANGED
@@ -2636,6 +2636,63 @@ fixRegExpWellKnownSymbolLogic$2('replace', function (_, nativeReplace, maybeCall
2636
2636
  ];
2637
2637
  }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2638
2638
 
2639
+ // a string of all valid unicode whitespaces
2640
+ var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
2641
+ '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
2642
+
2643
+ var uncurryThis$m = functionUncurryThis;
2644
+ var requireObjectCoercible$6 = requireObjectCoercible$e;
2645
+ var toString$e = toString$m;
2646
+ var whitespaces$2 = whitespaces$3;
2647
+
2648
+ var replace$6 = uncurryThis$m(''.replace);
2649
+ var ltrim = RegExp('^[' + whitespaces$2 + ']+');
2650
+ var rtrim = RegExp('(^|[^' + whitespaces$2 + '])[' + whitespaces$2 + ']+$');
2651
+
2652
+ // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
2653
+ var createMethod$2 = function (TYPE) {
2654
+ return function ($this) {
2655
+ var string = toString$e(requireObjectCoercible$6($this));
2656
+ if (TYPE & 1) string = replace$6(string, ltrim, '');
2657
+ if (TYPE & 2) string = replace$6(string, rtrim, '$1');
2658
+ return string;
2659
+ };
2660
+ };
2661
+
2662
+ var stringTrim = {
2663
+ // `String.prototype.trim` method
2664
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
2665
+ trim: createMethod$2(3)
2666
+ };
2667
+
2668
+ var PROPER_FUNCTION_NAME = functionName.PROPER;
2669
+ var fails$d = fails$x;
2670
+ var whitespaces$1 = whitespaces$3;
2671
+
2672
+ var non = '\u200B\u0085\u180E';
2673
+
2674
+ // check that a method works with the correct list
2675
+ // of whitespaces and has a correct name
2676
+ var stringTrimForced = function (METHOD_NAME) {
2677
+ return fails$d(function () {
2678
+ return !!whitespaces$1[METHOD_NAME]()
2679
+ || non[METHOD_NAME]() !== non
2680
+ || (PROPER_FUNCTION_NAME && whitespaces$1[METHOD_NAME].name !== METHOD_NAME);
2681
+ });
2682
+ };
2683
+
2684
+ var $$C = _export;
2685
+ var $trim = stringTrim.trim;
2686
+ var forcedStringTrimMethod = stringTrimForced;
2687
+
2688
+ // `String.prototype.trim` method
2689
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
2690
+ $$C({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
2691
+ trim: function trim() {
2692
+ return $trim(this);
2693
+ }
2694
+ });
2695
+
2639
2696
  var isPrototypeOf$3 = objectIsPrototypeOf;
2640
2697
 
2641
2698
  var $TypeError$c = TypeError;
@@ -2663,7 +2720,7 @@ var createProperty$4 = function (object, key, value) {
2663
2720
  else object[key] = value;
2664
2721
  };
2665
2722
 
2666
- var $$C = _export;
2723
+ var $$B = _export;
2667
2724
  var global$e = global$t;
2668
2725
  var anInstance$3 = anInstance$4;
2669
2726
  var anObject$j = anObject$t;
@@ -2671,7 +2728,7 @@ var isCallable$a = isCallable$t;
2671
2728
  var getPrototypeOf = objectGetPrototypeOf;
2672
2729
  var defineBuiltInAccessor$6 = defineBuiltInAccessor$7;
2673
2730
  var createProperty$3 = createProperty$4;
2674
- var fails$d = fails$x;
2731
+ var fails$c = fails$x;
2675
2732
  var hasOwn$7 = hasOwnProperty_1;
2676
2733
  var wellKnownSymbol$b = wellKnownSymbol$o;
2677
2734
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
@@ -2688,7 +2745,7 @@ var NativeIterator = global$e[ITERATOR$6];
2688
2745
  var FORCED$3 = !isCallable$a(NativeIterator)
2689
2746
  || NativeIterator.prototype !== IteratorPrototype$1
2690
2747
  // FF44- non-standard `Iterator` passes previous tests
2691
- || !fails$d(function () { NativeIterator({}); });
2748
+ || !fails$c(function () { NativeIterator({}); });
2692
2749
 
2693
2750
  var IteratorConstructor = function Iterator() {
2694
2751
  anInstance$3(this, IteratorPrototype$1);
@@ -2722,225 +2779,63 @@ IteratorConstructor.prototype = IteratorPrototype$1;
2722
2779
 
2723
2780
  // `Iterator` constructor
2724
2781
  // https://github.com/tc39/proposal-iterator-helpers
2725
- $$C({ global: true, constructor: true, forced: FORCED$3 }, {
2782
+ $$B({ global: true, constructor: true, forced: FORCED$3 }, {
2726
2783
  Iterator: IteratorConstructor
2727
2784
  });
2728
2785
 
2729
- var uncurryThis$m = functionUncurryThisClause;
2730
- var aCallable$g = aCallable$j;
2731
- var NATIVE_BIND = functionBindNative;
2732
-
2733
- var bind$8 = uncurryThis$m(uncurryThis$m.bind);
2734
-
2735
- // optional / simple context binding
2736
- var functionBindContext = function (fn, that) {
2737
- aCallable$g(fn);
2738
- return that === undefined ? fn : NATIVE_BIND ? bind$8(fn, that) : function (/* ...args */) {
2739
- return fn.apply(that, arguments);
2786
+ // `GetIteratorDirect(obj)` abstract operation
2787
+ // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
2788
+ var getIteratorDirect$a = function (obj) {
2789
+ return {
2790
+ iterator: obj,
2791
+ next: obj.next,
2792
+ done: false
2740
2793
  };
2741
2794
  };
2742
2795
 
2743
- var wellKnownSymbol$a = wellKnownSymbol$o;
2744
- var Iterators$1 = iterators;
2745
-
2746
- var ITERATOR$5 = wellKnownSymbol$a('iterator');
2747
- var ArrayPrototype = Array.prototype;
2748
-
2749
- // check on default Array iterator
2750
- var isArrayIteratorMethod$2 = function (it) {
2751
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$5] === it);
2752
- };
2753
-
2754
- var classof$6 = classof$a;
2755
- var getMethod$4 = getMethod$7;
2756
- var isNullOrUndefined$3 = isNullOrUndefined$7;
2757
- var Iterators = iterators;
2758
- var wellKnownSymbol$9 = wellKnownSymbol$o;
2759
-
2760
- var ITERATOR$4 = wellKnownSymbol$9('iterator');
2796
+ var defineBuiltIn$7 = defineBuiltIn$d;
2761
2797
 
2762
- var getIteratorMethod$5 = function (it) {
2763
- if (!isNullOrUndefined$3(it)) return getMethod$4(it, ITERATOR$4)
2764
- || getMethod$4(it, '@@iterator')
2765
- || Iterators[classof$6(it)];
2798
+ var defineBuiltIns$2 = function (target, src, options) {
2799
+ for (var key in src) defineBuiltIn$7(target, key, src[key], options);
2800
+ return target;
2766
2801
  };
2767
2802
 
2768
2803
  var call$j = functionCall;
2769
- var aCallable$f = aCallable$j;
2770
2804
  var anObject$i = anObject$t;
2771
- var tryToString$2 = tryToString$4;
2772
- var getIteratorMethod$4 = getIteratorMethod$5;
2773
-
2774
- var $TypeError$a = TypeError;
2775
-
2776
- var getIterator$3 = function (argument, usingIterator) {
2777
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$4(argument) : usingIterator;
2778
- if (aCallable$f(iteratorMethod)) return anObject$i(call$j(iteratorMethod, argument));
2779
- throw new $TypeError$a(tryToString$2(argument) + ' is not iterable');
2780
- };
2781
-
2782
- var call$i = functionCall;
2783
- var anObject$h = anObject$t;
2784
- var getMethod$3 = getMethod$7;
2805
+ var getMethod$4 = getMethod$7;
2785
2806
 
2786
2807
  var iteratorClose$6 = function (iterator, kind, value) {
2787
2808
  var innerResult, innerError;
2788
- anObject$h(iterator);
2809
+ anObject$i(iterator);
2789
2810
  try {
2790
- innerResult = getMethod$3(iterator, 'return');
2811
+ innerResult = getMethod$4(iterator, 'return');
2791
2812
  if (!innerResult) {
2792
2813
  if (kind === 'throw') throw value;
2793
2814
  return value;
2794
2815
  }
2795
- innerResult = call$i(innerResult, iterator);
2816
+ innerResult = call$j(innerResult, iterator);
2796
2817
  } catch (error) {
2797
2818
  innerError = true;
2798
2819
  innerResult = error;
2799
2820
  }
2800
2821
  if (kind === 'throw') throw value;
2801
2822
  if (innerError) throw innerResult;
2802
- anObject$h(innerResult);
2823
+ anObject$i(innerResult);
2803
2824
  return value;
2804
2825
  };
2805
2826
 
2806
- var bind$7 = functionBindContext;
2807
- var call$h = functionCall;
2808
- var anObject$g = anObject$t;
2809
- var tryToString$1 = tryToString$4;
2810
- var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
2811
- var lengthOfArrayLike$7 = lengthOfArrayLike$a;
2812
- var isPrototypeOf$2 = objectIsPrototypeOf;
2813
- var getIterator$2 = getIterator$3;
2814
- var getIteratorMethod$3 = getIteratorMethod$5;
2815
- var iteratorClose$5 = iteratorClose$6;
2816
-
2817
- var $TypeError$9 = TypeError;
2818
-
2819
- var Result = function (stopped, result) {
2820
- this.stopped = stopped;
2821
- this.result = result;
2822
- };
2823
-
2824
- var ResultPrototype = Result.prototype;
2825
-
2826
- var iterate$a = function (iterable, unboundFunction, options) {
2827
- var that = options && options.that;
2828
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
2829
- var IS_RECORD = !!(options && options.IS_RECORD);
2830
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
2831
- var INTERRUPTED = !!(options && options.INTERRUPTED);
2832
- var fn = bind$7(unboundFunction, that);
2833
- var iterator, iterFn, index, length, result, next, step;
2834
-
2835
- var stop = function (condition) {
2836
- if (iterator) iteratorClose$5(iterator, 'normal', condition);
2837
- return new Result(true, condition);
2838
- };
2839
-
2840
- var callFn = function (value) {
2841
- if (AS_ENTRIES) {
2842
- anObject$g(value);
2843
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2844
- } return INTERRUPTED ? fn(value, stop) : fn(value);
2845
- };
2846
-
2847
- if (IS_RECORD) {
2848
- iterator = iterable.iterator;
2849
- } else if (IS_ITERATOR) {
2850
- iterator = iterable;
2851
- } else {
2852
- iterFn = getIteratorMethod$3(iterable);
2853
- if (!iterFn) throw new $TypeError$9(tryToString$1(iterable) + ' is not iterable');
2854
- // optimisation for array iterators
2855
- if (isArrayIteratorMethod$1(iterFn)) {
2856
- for (index = 0, length = lengthOfArrayLike$7(iterable); length > index; index++) {
2857
- result = callFn(iterable[index]);
2858
- if (result && isPrototypeOf$2(ResultPrototype, result)) return result;
2859
- } return new Result(false);
2860
- }
2861
- iterator = getIterator$2(iterable, iterFn);
2862
- }
2863
-
2864
- next = IS_RECORD ? iterable.next : iterator.next;
2865
- while (!(step = call$h(next, iterator)).done) {
2866
- try {
2867
- result = callFn(step.value);
2868
- } catch (error) {
2869
- iteratorClose$5(iterator, 'throw', error);
2870
- }
2871
- if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result;
2872
- } return new Result(false);
2873
- };
2874
-
2875
- // `GetIteratorDirect(obj)` abstract operation
2876
- // https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
2877
- var getIteratorDirect$a = function (obj) {
2878
- return {
2879
- iterator: obj,
2880
- next: obj.next,
2881
- done: false
2882
- };
2883
- };
2884
-
2885
- var $$B = _export;
2886
- var iterate$9 = iterate$a;
2887
- var aCallable$e = aCallable$j;
2888
- var anObject$f = anObject$t;
2889
- var getIteratorDirect$9 = getIteratorDirect$a;
2890
-
2891
- // `Iterator.prototype.find` method
2892
- // https://github.com/tc39/proposal-iterator-helpers
2893
- $$B({ target: 'Iterator', proto: true, real: true }, {
2894
- find: function find(predicate) {
2895
- anObject$f(this);
2896
- aCallable$e(predicate);
2897
- var record = getIteratorDirect$9(this);
2898
- var counter = 0;
2899
- return iterate$9(record, function (value, stop) {
2900
- if (predicate(value, counter++)) return stop(value);
2901
- }, { IS_RECORD: true, INTERRUPTED: true }).result;
2902
- }
2903
- });
2904
-
2905
- var $$A = _export;
2906
- var iterate$8 = iterate$a;
2907
- var aCallable$d = aCallable$j;
2908
- var anObject$e = anObject$t;
2909
- var getIteratorDirect$8 = getIteratorDirect$a;
2910
-
2911
- // `Iterator.prototype.forEach` method
2912
- // https://github.com/tc39/proposal-iterator-helpers
2913
- $$A({ target: 'Iterator', proto: true, real: true }, {
2914
- forEach: function forEach(fn) {
2915
- anObject$e(this);
2916
- aCallable$d(fn);
2917
- var record = getIteratorDirect$8(this);
2918
- var counter = 0;
2919
- iterate$8(record, function (value) {
2920
- fn(value, counter++);
2921
- }, { IS_RECORD: true });
2922
- }
2923
- });
2924
-
2925
- var defineBuiltIn$7 = defineBuiltIn$d;
2926
-
2927
- var defineBuiltIns$2 = function (target, src, options) {
2928
- for (var key in src) defineBuiltIn$7(target, key, src[key], options);
2929
- return target;
2930
- };
2931
-
2932
- var call$g = functionCall;
2827
+ var call$i = functionCall;
2933
2828
  var create$2 = objectCreate;
2934
2829
  var createNonEnumerableProperty$1 = createNonEnumerableProperty$a;
2935
2830
  var defineBuiltIns$1 = defineBuiltIns$2;
2936
- var wellKnownSymbol$8 = wellKnownSymbol$o;
2831
+ var wellKnownSymbol$a = wellKnownSymbol$o;
2937
2832
  var InternalStateModule$4 = internalState;
2938
- var getMethod$2 = getMethod$7;
2833
+ var getMethod$3 = getMethod$7;
2939
2834
  var IteratorPrototype = iteratorsCore.IteratorPrototype;
2940
2835
  var createIterResultObject$2 = createIterResultObject$4;
2941
- var iteratorClose$4 = iteratorClose$6;
2836
+ var iteratorClose$5 = iteratorClose$6;
2942
2837
 
2943
- var TO_STRING_TAG = wellKnownSymbol$8('toStringTag');
2838
+ var TO_STRING_TAG = wellKnownSymbol$a('toStringTag');
2944
2839
  var ITERATOR_HELPER = 'IteratorHelper';
2945
2840
  var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
2946
2841
  var setInternalState$4 = InternalStateModule$4.set;
@@ -2968,15 +2863,15 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
2968
2863
  var iterator = state.iterator;
2969
2864
  state.done = true;
2970
2865
  if (IS_ITERATOR) {
2971
- var returnMethod = getMethod$2(iterator, 'return');
2972
- return returnMethod ? call$g(returnMethod, iterator) : createIterResultObject$2(undefined, true);
2866
+ var returnMethod = getMethod$3(iterator, 'return');
2867
+ return returnMethod ? call$i(returnMethod, iterator) : createIterResultObject$2(undefined, true);
2973
2868
  }
2974
2869
  if (state.inner) try {
2975
- iteratorClose$4(state.inner.iterator, 'normal');
2870
+ iteratorClose$5(state.inner.iterator, 'normal');
2976
2871
  } catch (error) {
2977
- return iteratorClose$4(iterator, 'throw', error);
2872
+ return iteratorClose$5(iterator, 'throw', error);
2978
2873
  }
2979
- iteratorClose$4(iterator, 'normal');
2874
+ iteratorClose$5(iterator, 'normal');
2980
2875
  return createIterResultObject$2(undefined, true);
2981
2876
  }
2982
2877
  });
@@ -3002,52 +2897,249 @@ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR) {
3002
2897
 
3003
2898
  IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
3004
2899
 
3005
- return IteratorProxy;
2900
+ return IteratorProxy;
2901
+ };
2902
+
2903
+ var anObject$h = anObject$t;
2904
+ var iteratorClose$4 = iteratorClose$6;
2905
+
2906
+ // call something on iterator step with safe closing on error
2907
+ var callWithSafeIterationClosing$3 = function (iterator, fn, value, ENTRIES) {
2908
+ try {
2909
+ return ENTRIES ? fn(anObject$h(value)[0], value[1]) : fn(value);
2910
+ } catch (error) {
2911
+ iteratorClose$4(iterator, 'throw', error);
2912
+ }
2913
+ };
2914
+
2915
+ var $$A = _export;
2916
+ var call$h = functionCall;
2917
+ var aCallable$g = aCallable$j;
2918
+ var anObject$g = anObject$t;
2919
+ var getIteratorDirect$9 = getIteratorDirect$a;
2920
+ var createIteratorProxy$2 = iteratorCreateProxy;
2921
+ var callWithSafeIterationClosing$2 = callWithSafeIterationClosing$3;
2922
+ var IS_PURE$3 = isPure;
2923
+
2924
+ var IteratorProxy$2 = createIteratorProxy$2(function () {
2925
+ var iterator = this.iterator;
2926
+ var predicate = this.predicate;
2927
+ var next = this.next;
2928
+ var result, done, value;
2929
+ while (true) {
2930
+ result = anObject$g(call$h(next, iterator));
2931
+ done = this.done = !!result.done;
2932
+ if (done) return;
2933
+ value = result.value;
2934
+ if (callWithSafeIterationClosing$2(iterator, predicate, [value, this.counter++], true)) return value;
2935
+ }
2936
+ });
2937
+
2938
+ // `Iterator.prototype.filter` method
2939
+ // https://github.com/tc39/proposal-iterator-helpers
2940
+ $$A({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$3 }, {
2941
+ filter: function filter(predicate) {
2942
+ anObject$g(this);
2943
+ aCallable$g(predicate);
2944
+ return new IteratorProxy$2(getIteratorDirect$9(this), {
2945
+ predicate: predicate
2946
+ });
2947
+ }
2948
+ });
2949
+
2950
+ var uncurryThis$l = functionUncurryThisClause;
2951
+ var aCallable$f = aCallable$j;
2952
+ var NATIVE_BIND = functionBindNative;
2953
+
2954
+ var bind$8 = uncurryThis$l(uncurryThis$l.bind);
2955
+
2956
+ // optional / simple context binding
2957
+ var functionBindContext = function (fn, that) {
2958
+ aCallable$f(fn);
2959
+ return that === undefined ? fn : NATIVE_BIND ? bind$8(fn, that) : function (/* ...args */) {
2960
+ return fn.apply(that, arguments);
2961
+ };
2962
+ };
2963
+
2964
+ var wellKnownSymbol$9 = wellKnownSymbol$o;
2965
+ var Iterators$1 = iterators;
2966
+
2967
+ var ITERATOR$5 = wellKnownSymbol$9('iterator');
2968
+ var ArrayPrototype = Array.prototype;
2969
+
2970
+ // check on default Array iterator
2971
+ var isArrayIteratorMethod$2 = function (it) {
2972
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$5] === it);
2973
+ };
2974
+
2975
+ var classof$6 = classof$a;
2976
+ var getMethod$2 = getMethod$7;
2977
+ var isNullOrUndefined$3 = isNullOrUndefined$7;
2978
+ var Iterators = iterators;
2979
+ var wellKnownSymbol$8 = wellKnownSymbol$o;
2980
+
2981
+ var ITERATOR$4 = wellKnownSymbol$8('iterator');
2982
+
2983
+ var getIteratorMethod$5 = function (it) {
2984
+ if (!isNullOrUndefined$3(it)) return getMethod$2(it, ITERATOR$4)
2985
+ || getMethod$2(it, '@@iterator')
2986
+ || Iterators[classof$6(it)];
2987
+ };
2988
+
2989
+ var call$g = functionCall;
2990
+ var aCallable$e = aCallable$j;
2991
+ var anObject$f = anObject$t;
2992
+ var tryToString$2 = tryToString$4;
2993
+ var getIteratorMethod$4 = getIteratorMethod$5;
2994
+
2995
+ var $TypeError$a = TypeError;
2996
+
2997
+ var getIterator$3 = function (argument, usingIterator) {
2998
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$4(argument) : usingIterator;
2999
+ if (aCallable$e(iteratorMethod)) return anObject$f(call$g(iteratorMethod, argument));
3000
+ throw new $TypeError$a(tryToString$2(argument) + ' is not iterable');
3001
+ };
3002
+
3003
+ var bind$7 = functionBindContext;
3004
+ var call$f = functionCall;
3005
+ var anObject$e = anObject$t;
3006
+ var tryToString$1 = tryToString$4;
3007
+ var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
3008
+ var lengthOfArrayLike$7 = lengthOfArrayLike$a;
3009
+ var isPrototypeOf$2 = objectIsPrototypeOf;
3010
+ var getIterator$2 = getIterator$3;
3011
+ var getIteratorMethod$3 = getIteratorMethod$5;
3012
+ var iteratorClose$3 = iteratorClose$6;
3013
+
3014
+ var $TypeError$9 = TypeError;
3015
+
3016
+ var Result = function (stopped, result) {
3017
+ this.stopped = stopped;
3018
+ this.result = result;
3019
+ };
3020
+
3021
+ var ResultPrototype = Result.prototype;
3022
+
3023
+ var iterate$a = function (iterable, unboundFunction, options) {
3024
+ var that = options && options.that;
3025
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
3026
+ var IS_RECORD = !!(options && options.IS_RECORD);
3027
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
3028
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
3029
+ var fn = bind$7(unboundFunction, that);
3030
+ var iterator, iterFn, index, length, result, next, step;
3031
+
3032
+ var stop = function (condition) {
3033
+ if (iterator) iteratorClose$3(iterator, 'normal', condition);
3034
+ return new Result(true, condition);
3035
+ };
3036
+
3037
+ var callFn = function (value) {
3038
+ if (AS_ENTRIES) {
3039
+ anObject$e(value);
3040
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
3041
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
3042
+ };
3043
+
3044
+ if (IS_RECORD) {
3045
+ iterator = iterable.iterator;
3046
+ } else if (IS_ITERATOR) {
3047
+ iterator = iterable;
3048
+ } else {
3049
+ iterFn = getIteratorMethod$3(iterable);
3050
+ if (!iterFn) throw new $TypeError$9(tryToString$1(iterable) + ' is not iterable');
3051
+ // optimisation for array iterators
3052
+ if (isArrayIteratorMethod$1(iterFn)) {
3053
+ for (index = 0, length = lengthOfArrayLike$7(iterable); length > index; index++) {
3054
+ result = callFn(iterable[index]);
3055
+ if (result && isPrototypeOf$2(ResultPrototype, result)) return result;
3056
+ } return new Result(false);
3057
+ }
3058
+ iterator = getIterator$2(iterable, iterFn);
3059
+ }
3060
+
3061
+ next = IS_RECORD ? iterable.next : iterator.next;
3062
+ while (!(step = call$f(next, iterator)).done) {
3063
+ try {
3064
+ result = callFn(step.value);
3065
+ } catch (error) {
3066
+ iteratorClose$3(iterator, 'throw', error);
3067
+ }
3068
+ if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result;
3069
+ } return new Result(false);
3006
3070
  };
3007
3071
 
3072
+ var $$z = _export;
3073
+ var iterate$9 = iterate$a;
3074
+ var aCallable$d = aCallable$j;
3008
3075
  var anObject$d = anObject$t;
3009
- var iteratorClose$3 = iteratorClose$6;
3076
+ var getIteratorDirect$8 = getIteratorDirect$a;
3010
3077
 
3011
- // call something on iterator step with safe closing on error
3012
- var callWithSafeIterationClosing$3 = function (iterator, fn, value, ENTRIES) {
3013
- try {
3014
- return ENTRIES ? fn(anObject$d(value)[0], value[1]) : fn(value);
3015
- } catch (error) {
3016
- iteratorClose$3(iterator, 'throw', error);
3078
+ // `Iterator.prototype.find` method
3079
+ // https://github.com/tc39/proposal-iterator-helpers
3080
+ $$z({ target: 'Iterator', proto: true, real: true }, {
3081
+ find: function find(predicate) {
3082
+ anObject$d(this);
3083
+ aCallable$d(predicate);
3084
+ var record = getIteratorDirect$8(this);
3085
+ var counter = 0;
3086
+ return iterate$9(record, function (value, stop) {
3087
+ if (predicate(value, counter++)) return stop(value);
3088
+ }, { IS_RECORD: true, INTERRUPTED: true }).result;
3017
3089
  }
3018
- };
3090
+ });
3019
3091
 
3020
- var call$f = functionCall;
3092
+ var $$y = _export;
3093
+ var iterate$8 = iterate$a;
3021
3094
  var aCallable$c = aCallable$j;
3022
3095
  var anObject$c = anObject$t;
3023
3096
  var getIteratorDirect$7 = getIteratorDirect$a;
3024
- var createIteratorProxy$2 = iteratorCreateProxy;
3025
- var callWithSafeIterationClosing$2 = callWithSafeIterationClosing$3;
3026
3097
 
3027
- var IteratorProxy$2 = createIteratorProxy$2(function () {
3098
+ // `Iterator.prototype.forEach` method
3099
+ // https://github.com/tc39/proposal-iterator-helpers
3100
+ $$y({ target: 'Iterator', proto: true, real: true }, {
3101
+ forEach: function forEach(fn) {
3102
+ anObject$c(this);
3103
+ aCallable$c(fn);
3104
+ var record = getIteratorDirect$7(this);
3105
+ var counter = 0;
3106
+ iterate$8(record, function (value) {
3107
+ fn(value, counter++);
3108
+ }, { IS_RECORD: true });
3109
+ }
3110
+ });
3111
+
3112
+ var call$e = functionCall;
3113
+ var aCallable$b = aCallable$j;
3114
+ var anObject$b = anObject$t;
3115
+ var getIteratorDirect$6 = getIteratorDirect$a;
3116
+ var createIteratorProxy$1 = iteratorCreateProxy;
3117
+ var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$3;
3118
+
3119
+ var IteratorProxy$1 = createIteratorProxy$1(function () {
3028
3120
  var iterator = this.iterator;
3029
- var result = anObject$c(call$f(this.next, iterator));
3121
+ var result = anObject$b(call$e(this.next, iterator));
3030
3122
  var done = this.done = !!result.done;
3031
- if (!done) return callWithSafeIterationClosing$2(iterator, this.mapper, [result.value, this.counter++], true);
3123
+ if (!done) return callWithSafeIterationClosing$1(iterator, this.mapper, [result.value, this.counter++], true);
3032
3124
  });
3033
3125
 
3034
3126
  // `Iterator.prototype.map` method
3035
3127
  // https://github.com/tc39/proposal-iterator-helpers
3036
3128
  var iteratorMap = function map(mapper) {
3037
- anObject$c(this);
3038
- aCallable$c(mapper);
3039
- return new IteratorProxy$2(getIteratorDirect$7(this), {
3129
+ anObject$b(this);
3130
+ aCallable$b(mapper);
3131
+ return new IteratorProxy$1(getIteratorDirect$6(this), {
3040
3132
  mapper: mapper
3041
3133
  });
3042
3134
  };
3043
3135
 
3044
- var $$z = _export;
3136
+ var $$x = _export;
3045
3137
  var map = iteratorMap;
3046
- var IS_PURE$3 = isPure;
3138
+ var IS_PURE$2 = isPure;
3047
3139
 
3048
3140
  // `Iterator.prototype.map` method
3049
3141
  // https://github.com/tc39/proposal-iterator-helpers
3050
- $$z({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$3 }, {
3142
+ $$x({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$2 }, {
3051
3143
  map: map
3052
3144
  });
3053
3145
 
@@ -3067,19 +3159,19 @@ const getAddressLookupFieldLabel = fieldName => {
3067
3159
  return ADDRESS_LOOKUP_LABELS[fieldName] || fieldName;
3068
3160
  };
3069
3161
 
3070
- var $$y = _export;
3162
+ var $$w = _export;
3071
3163
  var iterate$7 = iterate$a;
3072
- var aCallable$b = aCallable$j;
3073
- var anObject$b = anObject$t;
3074
- var getIteratorDirect$6 = getIteratorDirect$a;
3164
+ var aCallable$a = aCallable$j;
3165
+ var anObject$a = anObject$t;
3166
+ var getIteratorDirect$5 = getIteratorDirect$a;
3075
3167
 
3076
3168
  // `Iterator.prototype.every` method
3077
3169
  // https://github.com/tc39/proposal-iterator-helpers
3078
- $$y({ target: 'Iterator', proto: true, real: true }, {
3170
+ $$w({ target: 'Iterator', proto: true, real: true }, {
3079
3171
  every: function every(predicate) {
3080
- anObject$b(this);
3081
- aCallable$b(predicate);
3082
- var record = getIteratorDirect$6(this);
3172
+ anObject$a(this);
3173
+ aCallable$a(predicate);
3174
+ var record = getIteratorDirect$5(this);
3083
3175
  var counter = 0;
3084
3176
  return !iterate$7(record, function (value, stop) {
3085
3177
  if (!predicate(value, counter++)) return stop();
@@ -3087,42 +3179,7 @@ $$y({ target: 'Iterator', proto: true, real: true }, {
3087
3179
  }
3088
3180
  });
3089
3181
 
3090
- var $$x = _export;
3091
- var call$e = functionCall;
3092
- var aCallable$a = aCallable$j;
3093
- var anObject$a = anObject$t;
3094
- var getIteratorDirect$5 = getIteratorDirect$a;
3095
- var createIteratorProxy$1 = iteratorCreateProxy;
3096
- var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$3;
3097
- var IS_PURE$2 = isPure;
3098
-
3099
- var IteratorProxy$1 = createIteratorProxy$1(function () {
3100
- var iterator = this.iterator;
3101
- var predicate = this.predicate;
3102
- var next = this.next;
3103
- var result, done, value;
3104
- while (true) {
3105
- result = anObject$a(call$e(next, iterator));
3106
- done = this.done = !!result.done;
3107
- if (done) return;
3108
- value = result.value;
3109
- if (callWithSafeIterationClosing$1(iterator, predicate, [value, this.counter++], true)) return value;
3110
- }
3111
- });
3112
-
3113
- // `Iterator.prototype.filter` method
3114
- // https://github.com/tc39/proposal-iterator-helpers
3115
- $$x({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$2 }, {
3116
- filter: function filter(predicate) {
3117
- anObject$a(this);
3118
- aCallable$a(predicate);
3119
- return new IteratorProxy$1(getIteratorDirect$5(this), {
3120
- predicate: predicate
3121
- });
3122
- }
3123
- });
3124
-
3125
- var uncurryThis$l = functionUncurryThis;
3182
+ var uncurryThis$k = functionUncurryThis;
3126
3183
 
3127
3184
  // eslint-disable-next-line es/no-set -- safe
3128
3185
  var SetPrototype$1 = Set.prototype;
@@ -3130,9 +3187,9 @@ var SetPrototype$1 = Set.prototype;
3130
3187
  var setHelpers = {
3131
3188
  // eslint-disable-next-line es/no-set -- safe
3132
3189
  Set: Set,
3133
- add: uncurryThis$l(SetPrototype$1.add),
3134
- has: uncurryThis$l(SetPrototype$1.has),
3135
- remove: uncurryThis$l(SetPrototype$1['delete']),
3190
+ add: uncurryThis$k(SetPrototype$1.add),
3191
+ has: uncurryThis$k(SetPrototype$1.has),
3192
+ remove: uncurryThis$k(SetPrototype$1['delete']),
3136
3193
  proto: SetPrototype$1
3137
3194
  };
3138
3195
 
@@ -3156,14 +3213,14 @@ var iterateSimple$7 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
3156
3213
  }
3157
3214
  };
3158
3215
 
3159
- var uncurryThis$k = functionUncurryThis;
3216
+ var uncurryThis$j = functionUncurryThis;
3160
3217
  var iterateSimple$6 = iterateSimple$7;
3161
3218
  var SetHelpers$5 = setHelpers;
3162
3219
 
3163
3220
  var Set$3 = SetHelpers$5.Set;
3164
3221
  var SetPrototype = SetHelpers$5.proto;
3165
- var forEach$2 = uncurryThis$k(SetPrototype.forEach);
3166
- var keys$1 = uncurryThis$k(SetPrototype.keys);
3222
+ var forEach$2 = uncurryThis$j(SetPrototype.forEach);
3223
+ var keys$1 = uncurryThis$j(SetPrototype.keys);
3167
3224
  var next = keys$1(new Set$3()).next;
3168
3225
 
3169
3226
  var setIterate = function (set, fn, interruptible) {
@@ -3292,13 +3349,13 @@ var setMethodAcceptSetLike$7 = function (name) {
3292
3349
  }
3293
3350
  };
3294
3351
 
3295
- var $$w = _export;
3352
+ var $$v = _export;
3296
3353
  var difference = setDifference;
3297
3354
  var setMethodAcceptSetLike$6 = setMethodAcceptSetLike$7;
3298
3355
 
3299
3356
  // `Set.prototype.difference` method
3300
3357
  // https://github.com/tc39/proposal-set-methods
3301
- $$w({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
3358
+ $$v({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$6('difference') }, {
3302
3359
  difference: difference
3303
3360
  });
3304
3361
 
@@ -3333,19 +3390,19 @@ var setIntersection = function intersection(other) {
3333
3390
  return result;
3334
3391
  };
3335
3392
 
3336
- var $$v = _export;
3337
- var fails$c = fails$x;
3393
+ var $$u = _export;
3394
+ var fails$b = fails$x;
3338
3395
  var intersection = setIntersection;
3339
3396
  var setMethodAcceptSetLike$5 = setMethodAcceptSetLike$7;
3340
3397
 
3341
- var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails$c(function () {
3398
+ var INCORRECT = !setMethodAcceptSetLike$5('intersection') || fails$b(function () {
3342
3399
  // eslint-disable-next-line es/no-array-from, es/no-set -- testing
3343
3400
  return String(Array.from(new Set([1, 2, 3]).intersection(new Set([3, 2])))) !== '3,2';
3344
3401
  });
3345
3402
 
3346
3403
  // `Set.prototype.intersection` method
3347
3404
  // https://github.com/tc39/proposal-set-methods
3348
- $$v({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
3405
+ $$u({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
3349
3406
  intersection: intersection
3350
3407
  });
3351
3408
 
@@ -3371,13 +3428,13 @@ var setIsDisjointFrom = function isDisjointFrom(other) {
3371
3428
  }) !== false;
3372
3429
  };
3373
3430
 
3374
- var $$u = _export;
3431
+ var $$t = _export;
3375
3432
  var isDisjointFrom = setIsDisjointFrom;
3376
3433
  var setMethodAcceptSetLike$4 = setMethodAcceptSetLike$7;
3377
3434
 
3378
3435
  // `Set.prototype.isDisjointFrom` method
3379
3436
  // https://github.com/tc39/proposal-set-methods
3380
- $$u({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
3437
+ $$t({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$4('isDisjointFrom') }, {
3381
3438
  isDisjointFrom: isDisjointFrom
3382
3439
  });
3383
3440
 
@@ -3397,13 +3454,13 @@ var setIsSubsetOf = function isSubsetOf(other) {
3397
3454
  }, true) !== false;
3398
3455
  };
3399
3456
 
3400
- var $$t = _export;
3457
+ var $$s = _export;
3401
3458
  var isSubsetOf = setIsSubsetOf;
3402
3459
  var setMethodAcceptSetLike$3 = setMethodAcceptSetLike$7;
3403
3460
 
3404
3461
  // `Set.prototype.isSubsetOf` method
3405
3462
  // https://github.com/tc39/proposal-set-methods
3406
- $$t({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
3463
+ $$s({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$3('isSubsetOf') }, {
3407
3464
  isSubsetOf: isSubsetOf
3408
3465
  });
3409
3466
 
@@ -3426,13 +3483,13 @@ var setIsSupersetOf = function isSupersetOf(other) {
3426
3483
  }) !== false;
3427
3484
  };
3428
3485
 
3429
- var $$s = _export;
3486
+ var $$r = _export;
3430
3487
  var isSupersetOf = setIsSupersetOf;
3431
3488
  var setMethodAcceptSetLike$2 = setMethodAcceptSetLike$7;
3432
3489
 
3433
3490
  // `Set.prototype.isSupersetOf` method
3434
3491
  // https://github.com/tc39/proposal-set-methods
3435
- $$s({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
3492
+ $$r({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$2('isSupersetOf') }, {
3436
3493
  isSupersetOf: isSupersetOf
3437
3494
  });
3438
3495
 
@@ -3459,13 +3516,13 @@ var setSymmetricDifference = function symmetricDifference(other) {
3459
3516
  return result;
3460
3517
  };
3461
3518
 
3462
- var $$r = _export;
3519
+ var $$q = _export;
3463
3520
  var symmetricDifference = setSymmetricDifference;
3464
3521
  var setMethodAcceptSetLike$1 = setMethodAcceptSetLike$7;
3465
3522
 
3466
3523
  // `Set.prototype.symmetricDifference` method
3467
3524
  // https://github.com/tc39/proposal-set-methods
3468
- $$r({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
3525
+ $$q({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike$1('symmetricDifference') }, {
3469
3526
  symmetricDifference: symmetricDifference
3470
3527
  });
3471
3528
 
@@ -3487,13 +3544,13 @@ var setUnion = function union(other) {
3487
3544
  return result;
3488
3545
  };
3489
3546
 
3490
- var $$q = _export;
3547
+ var $$p = _export;
3491
3548
  var union = setUnion;
3492
3549
  var setMethodAcceptSetLike = setMethodAcceptSetLike$7;
3493
3550
 
3494
3551
  // `Set.prototype.union` method
3495
3552
  // https://github.com/tc39/proposal-set-methods
3496
- $$q({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
3553
+ $$p({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
3497
3554
  union: union
3498
3555
  });
3499
3556
 
@@ -3633,8 +3690,8 @@ const capitalizeFirstLetter = words => {
3633
3690
  const controlScopeMatchesLabel = (scope, label) => {
3634
3691
  var _scope$replace$split$, _scope$replace$split;
3635
3692
  // Get the property name in the string from the scope
3636
- const splitIdName = (_scope$replace$split$ = scope == null || (_scope$replace$split = scope.replace(' ', '').split('/')) == null || (_scope$replace$split = _scope$replace$split.at(-1)) == null ? void 0 : _scope$replace$split.toLowerCase()) != null ? _scope$replace$split$ : '';
3637
- const labelWithNoSpaces = label == null ? void 0 : label.replace(' ', '').toLowerCase();
3693
+ const splitIdName = (_scope$replace$split$ = scope == null || (_scope$replace$split = scope.replace(/\s+/g, '').split('/')) == null || (_scope$replace$split = _scope$replace$split.at(-1)) == null ? void 0 : _scope$replace$split.toLowerCase()) != null ? _scope$replace$split$ : '';
3694
+ const labelWithNoSpaces = label == null ? void 0 : label.replace(/\s+/g, '').toLowerCase();
3638
3695
  return splitIdName === labelWithNoSpaces;
3639
3696
  };
3640
3697
  /**
@@ -3655,6 +3712,46 @@ const getLabelText = (scope, label) => {
3655
3712
  const areAllUppercase = label => {
3656
3713
  return /^[^a-z]*$/.test(label);
3657
3714
  };
3715
+ const getExplicitControlLabel = props => {
3716
+ var _props$uischema, _props$schema, _props$uischema2;
3717
+ const optionText = (_props$uischema = props.uischema) == null || (_props$uischema = _props$uischema.options) == null ? void 0 : _props$uischema.text;
3718
+ if (typeof optionText === 'string' && optionText.trim()) {
3719
+ return optionText.trim();
3720
+ }
3721
+ if (typeof ((_props$schema = props.schema) == null ? void 0 : _props$schema.title) === 'string' && props.schema.title.trim()) {
3722
+ return props.schema.title.trim();
3723
+ }
3724
+ const uiLabel = (_props$uischema2 = props.uischema) == null ? void 0 : _props$uischema2.label;
3725
+ if (typeof uiLabel === 'string' && uiLabel.trim()) {
3726
+ return uiLabel.trim();
3727
+ }
3728
+ if (typeof uiLabel === 'object' && uiLabel !== null && 'text' in uiLabel) {
3729
+ const text = uiLabel.text;
3730
+ if (typeof text === 'string' && text.trim()) {
3731
+ return text.trim();
3732
+ }
3733
+ }
3734
+ return undefined;
3735
+ };
3736
+ const getGeneratedLabelFromScope = scope => {
3737
+ if (!(scope != null && scope.startsWith('#/'))) {
3738
+ return '';
3739
+ }
3740
+ const propertyName = getLastSegmentFromPointer(scope);
3741
+ const readableLabel = convertToReadableFormat(propertyName);
3742
+ return getLabelText(scope, readableLabel);
3743
+ };
3744
+ const getControlLabelText = props => {
3745
+ var _props$uischema3;
3746
+ const explicitLabel = getExplicitControlLabel(props);
3747
+ if (explicitLabel) {
3748
+ return explicitLabel;
3749
+ }
3750
+ if ((_props$uischema3 = props.uischema) != null && (_props$uischema3 = _props$uischema3.scope) != null && _props$uischema3.startsWith('#/')) {
3751
+ return getGeneratedLabelFromScope(props.uischema.scope);
3752
+ }
3753
+ return props.label || '';
3754
+ };
3658
3755
  const isEmptyBoolean = (schema, data) => {
3659
3756
  return schema.type !== undefined && schema.type === 'boolean' && (data === null || data === undefined);
3660
3757
  };
@@ -3748,10 +3845,9 @@ const checkFieldValidity = (props, rootData) => {
3748
3845
  data,
3749
3846
  errors: ajvErrors,
3750
3847
  required,
3751
- label,
3752
3848
  schema
3753
3849
  } = props;
3754
- const labelToUpdate = label;
3850
+ const labelToUpdate = getControlLabelText(props);
3755
3851
  const extraSchema = schema;
3756
3852
  if (extraSchema && data && (extraSchema == null ? void 0 : extraSchema.title) === sinTitle) {
3757
3853
  if (data.length === 11 && !validateSinWithLuhn(data)) {
@@ -3813,7 +3909,7 @@ const convertToReadableFormat = input => {
3813
3909
  if (!input) {
3814
3910
  return input;
3815
3911
  }
3816
- return input.replace(/([a-z])([A-Z])/g, '$1 $2').split(' ').map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(' ');
3912
+ return input.replace(/([a-z])([A-Z])/g, '$1 $2').replace(/[_-]/g, ' ').split(' ').filter(Boolean).map(word => areAllUppercase(word) ? word : word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(' ');
3817
3913
  };
3818
3914
 
3819
3915
  const standardizeDate = date => {
@@ -4092,9 +4188,9 @@ const Visible = styled.div(_t2$6 || (_t2$6 = _$b`
4092
4188
  width: 100%;
4093
4189
  `), p => p.visible ? 'block' : 'none');
4094
4190
 
4095
- var uncurryThis$j = functionUncurryThis;
4191
+ var uncurryThis$i = functionUncurryThis;
4096
4192
 
4097
- var arraySlice$4 = uncurryThis$j([].slice);
4193
+ var arraySlice$4 = uncurryThis$i([].slice);
4098
4194
 
4099
4195
  var classof$5 = classofRaw$2;
4100
4196
 
@@ -4105,13 +4201,13 @@ var isArray$5 = Array.isArray || function isArray(argument) {
4105
4201
  return classof$5(argument) === 'Array';
4106
4202
  };
4107
4203
 
4108
- var uncurryThis$i = functionUncurryThis;
4204
+ var uncurryThis$h = functionUncurryThis;
4109
4205
  var isArray$4 = isArray$5;
4110
4206
  var isCallable$9 = isCallable$t;
4111
4207
  var classof$4 = classofRaw$2;
4112
- var toString$e = toString$m;
4208
+ var toString$d = toString$m;
4113
4209
 
4114
- var push$6 = uncurryThis$i([].push);
4210
+ var push$6 = uncurryThis$h([].push);
4115
4211
 
4116
4212
  var getJsonReplacerFunction = function (replacer) {
4117
4213
  if (isCallable$9(replacer)) return replacer;
@@ -4121,7 +4217,7 @@ var getJsonReplacerFunction = function (replacer) {
4121
4217
  for (var i = 0; i < rawLength; i++) {
4122
4218
  var element = replacer[i];
4123
4219
  if (typeof element == 'string') push$6(keys, element);
4124
- else if (typeof element == 'number' || classof$4(element) === 'Number' || classof$4(element) === 'String') push$6(keys, toString$e(element));
4220
+ else if (typeof element == 'number' || classof$4(element) === 'Number' || classof$4(element) === 'String') push$6(keys, toString$d(element));
4125
4221
  }
4126
4222
  var keysLength = keys.length;
4127
4223
  var root = true;
@@ -4135,12 +4231,12 @@ var getJsonReplacerFunction = function (replacer) {
4135
4231
  };
4136
4232
  };
4137
4233
 
4138
- var $$p = _export;
4234
+ var $$o = _export;
4139
4235
  var getBuiltIn$5 = getBuiltIn$b;
4140
4236
  var apply$1 = functionApply;
4141
4237
  var call$b = functionCall;
4142
- var uncurryThis$h = functionUncurryThis;
4143
- var fails$b = fails$x;
4238
+ var uncurryThis$g = functionUncurryThis;
4239
+ var fails$a = fails$x;
4144
4240
  var isCallable$8 = isCallable$t;
4145
4241
  var isSymbol = isSymbol$3;
4146
4242
  var arraySlice$3 = arraySlice$4;
@@ -4149,17 +4245,17 @@ var NATIVE_SYMBOL$2 = symbolConstructorDetection;
4149
4245
 
4150
4246
  var $String = String;
4151
4247
  var $stringify = getBuiltIn$5('JSON', 'stringify');
4152
- var exec$7 = uncurryThis$h(/./.exec);
4153
- var charAt$4 = uncurryThis$h(''.charAt);
4154
- var charCodeAt$1 = uncurryThis$h(''.charCodeAt);
4155
- var replace$6 = uncurryThis$h(''.replace);
4156
- var numberToString$1 = uncurryThis$h(1.0.toString);
4248
+ var exec$7 = uncurryThis$g(/./.exec);
4249
+ var charAt$4 = uncurryThis$g(''.charAt);
4250
+ var charCodeAt$1 = uncurryThis$g(''.charCodeAt);
4251
+ var replace$5 = uncurryThis$g(''.replace);
4252
+ var numberToString$1 = uncurryThis$g(1.0.toString);
4157
4253
 
4158
4254
  var tester = /[\uD800-\uDFFF]/g;
4159
4255
  var low = /^[\uD800-\uDBFF]$/;
4160
4256
  var hi = /^[\uDC00-\uDFFF]$/;
4161
4257
 
4162
- var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$b(function () {
4258
+ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$a(function () {
4163
4259
  var symbol = getBuiltIn$5('Symbol')('stringify detection');
4164
4260
  // MS Edge converts symbol values to JSON as {}
4165
4261
  return $stringify([symbol]) !== '[null]'
@@ -4170,7 +4266,7 @@ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$b(function () {
4170
4266
  });
4171
4267
 
4172
4268
  // https://github.com/tc39/proposal-well-formed-stringify
4173
- var ILL_FORMED_UNICODE = fails$b(function () {
4269
+ var ILL_FORMED_UNICODE = fails$a(function () {
4174
4270
  return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
4175
4271
  || $stringify('\uDEAD') !== '"\\udead"';
4176
4272
  });
@@ -4198,12 +4294,12 @@ var fixIllFormed = function (match, offset, string) {
4198
4294
  if ($stringify) {
4199
4295
  // `JSON.stringify` method
4200
4296
  // https://tc39.es/ecma262/#sec-json.stringify
4201
- $$p({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
4297
+ $$o({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
4202
4298
  // eslint-disable-next-line no-unused-vars -- required for `.length`
4203
4299
  stringify: function stringify(it, replacer, space) {
4204
4300
  var args = arraySlice$3(arguments);
4205
4301
  var result = apply$1(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
4206
- return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$6(result, tester, fixIllFormed) : result;
4302
+ return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$5(result, tester, fixIllFormed) : result;
4207
4303
  }
4208
4304
  });
4209
4305
  }
@@ -4291,14 +4387,14 @@ var doesNotExceedSafeInteger$2 = function (it) {
4291
4387
  return it;
4292
4388
  };
4293
4389
 
4294
- var $$o = _export;
4390
+ var $$n = _export;
4295
4391
  var toObject$4 = toObject$a;
4296
4392
  var lengthOfArrayLike$6 = lengthOfArrayLike$a;
4297
4393
  var setArrayLength = arraySetLength;
4298
4394
  var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
4299
- var fails$a = fails$x;
4395
+ var fails$9 = fails$x;
4300
4396
 
4301
- var INCORRECT_TO_LENGTH = fails$a(function () {
4397
+ var INCORRECT_TO_LENGTH = fails$9(function () {
4302
4398
  return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
4303
4399
  });
4304
4400
 
@@ -4317,7 +4413,7 @@ var FORCED$2 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
4317
4413
 
4318
4414
  // `Array.prototype.push` method
4319
4415
  // https://tc39.es/ecma262/#sec-array.prototype.push
4320
- $$o({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
4416
+ $$n({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
4321
4417
  // eslint-disable-next-line no-unused-vars -- required for `.length`
4322
4418
  push: function push(item) {
4323
4419
  var O = toObject$4(this);
@@ -4374,20 +4470,20 @@ function registerReducer(state, action) {
4374
4470
  return state;
4375
4471
  }
4376
4472
 
4377
- var $$n = _export;
4473
+ var $$m = _export;
4378
4474
  var $includes = arrayIncludes.includes;
4379
- var fails$9 = fails$x;
4475
+ var fails$8 = fails$x;
4380
4476
  var addToUnscopables$2 = addToUnscopables$5;
4381
4477
 
4382
4478
  // FF99+ bug
4383
- var BROKEN_ON_SPARSE = fails$9(function () {
4479
+ var BROKEN_ON_SPARSE = fails$8(function () {
4384
4480
  // eslint-disable-next-line es/no-array-prototype-includes -- detection
4385
4481
  return !Array(1).includes();
4386
4482
  });
4387
4483
 
4388
4484
  // `Array.prototype.includes` method
4389
4485
  // https://tc39.es/ecma262/#sec-array.prototype.includes
4390
- $$n({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
4486
+ $$m({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
4391
4487
  includes: function includes(el /* , fromIndex = 0 */) {
4392
4488
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
4393
4489
  }
@@ -4419,8 +4515,8 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
4419
4515
  }
4420
4516
  };
4421
4517
 
4422
- var uncurryThis$g = functionUncurryThis;
4423
- var fails$8 = fails$x;
4518
+ var uncurryThis$f = functionUncurryThis;
4519
+ var fails$7 = fails$x;
4424
4520
  var isCallable$7 = isCallable$t;
4425
4521
  var classof$2 = classof$a;
4426
4522
  var getBuiltIn$3 = getBuiltIn$b;
@@ -4429,7 +4525,7 @@ var inspectSource$1 = inspectSource$3;
4429
4525
  var noop = function () { /* empty */ };
4430
4526
  var construct = getBuiltIn$3('Reflect', 'construct');
4431
4527
  var constructorRegExp = /^\s*(?:class|function)\b/;
4432
- var exec$6 = uncurryThis$g(constructorRegExp.exec);
4528
+ var exec$6 = uncurryThis$f(constructorRegExp.exec);
4433
4529
  var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
4434
4530
 
4435
4531
  var isConstructorModern = function isConstructor(argument) {
@@ -4463,7 +4559,7 @@ isConstructorLegacy.sham = true;
4463
4559
 
4464
4560
  // `IsConstructor` abstract operation
4465
4561
  // https://tc39.es/ecma262/#sec-isconstructor
4466
- var isConstructor$3 = !construct || fails$8(function () {
4562
+ var isConstructor$3 = !construct || fails$7(function () {
4467
4563
  var called;
4468
4564
  return isConstructorModern(isConstructorModern.call)
4469
4565
  || !isConstructorModern(Object)
@@ -4514,7 +4610,7 @@ var apply = functionApply;
4514
4610
  var bind$6 = functionBindContext;
4515
4611
  var isCallable$6 = isCallable$t;
4516
4612
  var hasOwn$6 = hasOwnProperty_1;
4517
- var fails$7 = fails$x;
4613
+ var fails$6 = fails$x;
4518
4614
  var html = html$2;
4519
4615
  var arraySlice$2 = arraySlice$4;
4520
4616
  var createElement = documentCreateElement$2;
@@ -4534,7 +4630,7 @@ var queue$2 = {};
4534
4630
  var ONREADYSTATECHANGE = 'onreadystatechange';
4535
4631
  var $location, defer, channel, port;
4536
4632
 
4537
- fails$7(function () {
4633
+ fails$6(function () {
4538
4634
  // Deno throws a ReferenceError on `location` access without `--location` flag
4539
4635
  $location = global$c.location;
4540
4636
  });
@@ -4601,7 +4697,7 @@ if (!set || !clear) {
4601
4697
  isCallable$6(global$c.postMessage) &&
4602
4698
  !global$c.importScripts &&
4603
4699
  $location && $location.protocol !== 'file:' &&
4604
- !fails$7(globalPostMessageDefer)
4700
+ !fails$6(globalPostMessageDefer)
4605
4701
  ) {
4606
4702
  defer = globalPostMessageDefer;
4607
4703
  global$c.addEventListener('message', eventListener, false);
@@ -4846,7 +4942,7 @@ newPromiseCapability$2.f = function (C) {
4846
4942
  return new PromiseCapability(C);
4847
4943
  };
4848
4944
 
4849
- var $$m = _export;
4945
+ var $$l = _export;
4850
4946
  var IS_NODE$1 = engineIsNode;
4851
4947
  var global$7 = global$t;
4852
4948
  var call$a = functionCall;
@@ -5126,7 +5222,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
5126
5222
  }
5127
5223
  }
5128
5224
 
5129
- $$m({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
5225
+ $$l({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
5130
5226
  Promise: PromiseConstructor
5131
5227
  });
5132
5228
 
@@ -5182,7 +5278,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
5182
5278
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
5183
5279
  });
5184
5280
 
5185
- var $$l = _export;
5281
+ var $$k = _export;
5186
5282
  var call$9 = functionCall;
5187
5283
  var aCallable$6 = aCallable$j;
5188
5284
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
@@ -5192,7 +5288,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
5192
5288
 
5193
5289
  // `Promise.all` method
5194
5290
  // https://tc39.es/ecma262/#sec-promise.all
5195
- $$l({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
5291
+ $$k({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
5196
5292
  all: function all(iterable) {
5197
5293
  var C = this;
5198
5294
  var capability = newPromiseCapabilityModule$2.f(C);
@@ -5221,7 +5317,7 @@ $$l({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
5221
5317
  }
5222
5318
  });
5223
5319
 
5224
- var $$k = _export;
5320
+ var $$j = _export;
5225
5321
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
5226
5322
  var NativePromiseConstructor = promiseNativeConstructor;
5227
5323
  var getBuiltIn$2 = getBuiltIn$b;
@@ -5232,7 +5328,7 @@ var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructo
5232
5328
 
5233
5329
  // `Promise.prototype.catch` method
5234
5330
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
5235
- $$k({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
5331
+ $$j({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
5236
5332
  'catch': function (onRejected) {
5237
5333
  return this.then(undefined, onRejected);
5238
5334
  }
@@ -5246,7 +5342,7 @@ if (isCallable$3(NativePromiseConstructor)) {
5246
5342
  }
5247
5343
  }
5248
5344
 
5249
- var $$j = _export;
5345
+ var $$i = _export;
5250
5346
  var call$8 = functionCall;
5251
5347
  var aCallable$5 = aCallable$j;
5252
5348
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
@@ -5256,7 +5352,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
5256
5352
 
5257
5353
  // `Promise.race` method
5258
5354
  // https://tc39.es/ecma262/#sec-promise.race
5259
- $$j({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
5355
+ $$i({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
5260
5356
  race: function race(iterable) {
5261
5357
  var C = this;
5262
5358
  var capability = newPromiseCapabilityModule$1.f(C);
@@ -5272,13 +5368,13 @@ $$j({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
5272
5368
  }
5273
5369
  });
5274
5370
 
5275
- var $$i = _export;
5371
+ var $$h = _export;
5276
5372
  var newPromiseCapabilityModule = newPromiseCapability$2;
5277
5373
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
5278
5374
 
5279
5375
  // `Promise.reject` method
5280
5376
  // https://tc39.es/ecma262/#sec-promise.reject
5281
- $$i({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
5377
+ $$h({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
5282
5378
  reject: function reject(r) {
5283
5379
  var capability = newPromiseCapabilityModule.f(this);
5284
5380
  var capabilityReject = capability.reject;
@@ -5300,7 +5396,7 @@ var promiseResolve$1 = function (C, x) {
5300
5396
  return promiseCapability.promise;
5301
5397
  };
5302
5398
 
5303
- var $$h = _export;
5399
+ var $$g = _export;
5304
5400
  var getBuiltIn$1 = getBuiltIn$b;
5305
5401
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
5306
5402
  var promiseResolve = promiseResolve$1;
@@ -5309,34 +5405,34 @@ getBuiltIn$1('Promise');
5309
5405
 
5310
5406
  // `Promise.resolve` method
5311
5407
  // https://tc39.es/ecma262/#sec-promise.resolve
5312
- $$h({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
5408
+ $$g({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
5313
5409
  resolve: function resolve(x) {
5314
5410
  return promiseResolve(this, x);
5315
5411
  }
5316
5412
  });
5317
5413
 
5318
- var $$g = _export;
5319
- var uncurryThis$f = functionUncurryThis;
5414
+ var $$f = _export;
5415
+ var uncurryThis$e = functionUncurryThis;
5320
5416
  var notARegExp$1 = notARegexp;
5321
- var requireObjectCoercible$6 = requireObjectCoercible$e;
5322
- var toString$d = toString$m;
5417
+ var requireObjectCoercible$5 = requireObjectCoercible$e;
5418
+ var toString$c = toString$m;
5323
5419
  var correctIsRegExpLogic$1 = correctIsRegexpLogic;
5324
5420
 
5325
- var stringIndexOf$1 = uncurryThis$f(''.indexOf);
5421
+ var stringIndexOf$1 = uncurryThis$e(''.indexOf);
5326
5422
 
5327
5423
  // `String.prototype.includes` method
5328
5424
  // https://tc39.es/ecma262/#sec-string.prototype.includes
5329
- $$g({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
5425
+ $$f({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
5330
5426
  includes: function includes(searchString /* , position = 0 */) {
5331
5427
  return !!~stringIndexOf$1(
5332
- toString$d(requireObjectCoercible$6(this)),
5333
- toString$d(notARegExp$1(searchString)),
5428
+ toString$c(requireObjectCoercible$5(this)),
5429
+ toString$c(notARegExp$1(searchString)),
5334
5430
  arguments.length > 1 ? arguments[1] : undefined
5335
5431
  );
5336
5432
  }
5337
5433
  });
5338
5434
 
5339
- var $$f = _export;
5435
+ var $$e = _export;
5340
5436
  var iterate$2 = iterate$a;
5341
5437
  var aCallable$4 = aCallable$j;
5342
5438
  var anObject$6 = anObject$t;
@@ -5344,7 +5440,7 @@ var getIteratorDirect$3 = getIteratorDirect$a;
5344
5440
 
5345
5441
  // `Iterator.prototype.some` method
5346
5442
  // https://github.com/tc39/proposal-iterator-helpers
5347
- $$f({ target: 'Iterator', proto: true, real: true }, {
5443
+ $$e({ target: 'Iterator', proto: true, real: true }, {
5348
5444
  some: function some(predicate) {
5349
5445
  anObject$6(this);
5350
5446
  aCallable$4(predicate);
@@ -5358,7 +5454,7 @@ $$f({ target: 'Iterator', proto: true, real: true }, {
5358
5454
 
5359
5455
  var DESCRIPTORS$7 = descriptors;
5360
5456
  var global$6 = global$t;
5361
- var uncurryThis$e = functionUncurryThis;
5457
+ var uncurryThis$d = functionUncurryThis;
5362
5458
  var isForced = isForced_1;
5363
5459
  var inheritIfRequired = inheritIfRequired$2;
5364
5460
  var createNonEnumerableProperty = createNonEnumerableProperty$a;
@@ -5366,12 +5462,12 @@ var create$1 = objectCreate;
5366
5462
  var getOwnPropertyNames = objectGetOwnPropertyNames.f;
5367
5463
  var isPrototypeOf$1 = objectIsPrototypeOf;
5368
5464
  var isRegExp = isRegexp;
5369
- var toString$c = toString$m;
5465
+ var toString$b = toString$m;
5370
5466
  var getRegExpFlags = regexpGetFlags;
5371
5467
  var stickyHelpers$1 = regexpStickyHelpers;
5372
5468
  var proxyAccessor = proxyAccessor$2;
5373
5469
  var defineBuiltIn$4 = defineBuiltIn$d;
5374
- var fails$6 = fails$x;
5470
+ var fails$5 = fails$x;
5375
5471
  var hasOwn$5 = hasOwnProperty_1;
5376
5472
  var enforceInternalState = internalState.enforce;
5377
5473
  var setSpecies = setSpecies$2;
@@ -5383,11 +5479,11 @@ var MATCH = wellKnownSymbol$3('match');
5383
5479
  var NativeRegExp = global$6.RegExp;
5384
5480
  var RegExpPrototype$1 = NativeRegExp.prototype;
5385
5481
  var SyntaxError$2 = global$6.SyntaxError;
5386
- var exec$5 = uncurryThis$e(RegExpPrototype$1.exec);
5387
- var charAt$3 = uncurryThis$e(''.charAt);
5388
- var replace$5 = uncurryThis$e(''.replace);
5389
- var stringIndexOf = uncurryThis$e(''.indexOf);
5390
- var stringSlice$5 = uncurryThis$e(''.slice);
5482
+ var exec$5 = uncurryThis$d(RegExpPrototype$1.exec);
5483
+ var charAt$3 = uncurryThis$d(''.charAt);
5484
+ var replace$4 = uncurryThis$d(''.replace);
5485
+ var stringIndexOf = uncurryThis$d(''.indexOf);
5486
+ var stringSlice$5 = uncurryThis$d(''.slice);
5391
5487
  // TODO: Use only proper RegExpIdentifierName
5392
5488
  var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
5393
5489
  var re1 = /a/g;
@@ -5400,7 +5496,7 @@ var MISSED_STICKY = stickyHelpers$1.MISSED_STICKY;
5400
5496
  var UNSUPPORTED_Y$1 = stickyHelpers$1.UNSUPPORTED_Y;
5401
5497
 
5402
5498
  var BASE_FORCED = DESCRIPTORS$7 &&
5403
- (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$6(function () {
5499
+ (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG || fails$5(function () {
5404
5500
  re2[MATCH] = false;
5405
5501
  // RegExp constructor can alter flags and IsRegExp works correct with @@match
5406
5502
  return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
@@ -5494,20 +5590,20 @@ if (isForced('RegExp', BASE_FORCED)) {
5494
5590
  if (flagsAreUndefined) flags = getRegExpFlags(rawPattern);
5495
5591
  }
5496
5592
 
5497
- pattern = pattern === undefined ? '' : toString$c(pattern);
5498
- flags = flags === undefined ? '' : toString$c(flags);
5593
+ pattern = pattern === undefined ? '' : toString$b(pattern);
5594
+ flags = flags === undefined ? '' : toString$b(flags);
5499
5595
  rawPattern = pattern;
5500
5596
 
5501
5597
  if (UNSUPPORTED_DOT_ALL$1 && 'dotAll' in re1) {
5502
5598
  dotAll = !!flags && stringIndexOf(flags, 's') > -1;
5503
- if (dotAll) flags = replace$5(flags, /s/g, '');
5599
+ if (dotAll) flags = replace$4(flags, /s/g, '');
5504
5600
  }
5505
5601
 
5506
5602
  rawFlags = flags;
5507
5603
 
5508
5604
  if (MISSED_STICKY && 'sticky' in re1) {
5509
5605
  sticky = !!flags && stringIndexOf(flags, 'y') > -1;
5510
- if (sticky && UNSUPPORTED_Y$1) flags = replace$5(flags, /y/g, '');
5606
+ if (sticky && UNSUPPORTED_Y$1) flags = replace$4(flags, /y/g, '');
5511
5607
  }
5512
5608
 
5513
5609
  if (UNSUPPORTED_NCG) {
@@ -5865,7 +5961,7 @@ var $TypeError$1 = TypeError;
5865
5961
  var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
5866
5962
 
5867
5963
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
5868
- var createMethod$2 = function (IS_RIGHT) {
5964
+ var createMethod$1 = function (IS_RIGHT) {
5869
5965
  return function (that, callbackfn, argumentsLength, memo) {
5870
5966
  var O = toObject$3(that);
5871
5967
  var self = IndexedObject(O);
@@ -5895,19 +5991,19 @@ var createMethod$2 = function (IS_RIGHT) {
5895
5991
  var arrayReduce = {
5896
5992
  // `Array.prototype.reduce` method
5897
5993
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
5898
- left: createMethod$2(false)};
5994
+ left: createMethod$1(false)};
5899
5995
 
5900
- var fails$5 = fails$x;
5996
+ var fails$4 = fails$x;
5901
5997
 
5902
5998
  var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
5903
5999
  var method = [][METHOD_NAME];
5904
- return !!method && fails$5(function () {
6000
+ return !!method && fails$4(function () {
5905
6001
  // eslint-disable-next-line no-useless-call -- required for testing
5906
6002
  method.call(null, argument || function () { return 1; }, 1);
5907
6003
  });
5908
6004
  };
5909
6005
 
5910
- var $$e = _export;
6006
+ var $$d = _export;
5911
6007
  var $reduce = arrayReduce.left;
5912
6008
  var arrayMethodIsStrict = arrayMethodIsStrict$1;
5913
6009
  var CHROME_VERSION = engineV8Version;
@@ -5920,14 +6016,14 @@ var FORCED$1 = CHROME_BUG || !arrayMethodIsStrict('reduce');
5920
6016
 
5921
6017
  // `Array.prototype.reduce` method
5922
6018
  // https://tc39.es/ecma262/#sec-array.prototype.reduce
5923
- $$e({ target: 'Array', proto: true, forced: FORCED$1 }, {
6019
+ $$d({ target: 'Array', proto: true, forced: FORCED$1 }, {
5924
6020
  reduce: function reduce(callbackfn /* , initialValue */) {
5925
6021
  var length = arguments.length;
5926
6022
  return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
5927
6023
  }
5928
6024
  });
5929
6025
 
5930
- var $$d = _export;
6026
+ var $$c = _export;
5931
6027
  var iterate$1 = iterate$a;
5932
6028
  var aCallable$2 = aCallable$j;
5933
6029
  var anObject$5 = anObject$t;
@@ -5937,7 +6033,7 @@ var $TypeError = TypeError;
5937
6033
 
5938
6034
  // `Iterator.prototype.reduce` method
5939
6035
  // https://github.com/tc39/proposal-iterator-helpers
5940
- $$d({ target: 'Iterator', proto: true, real: true }, {
6036
+ $$c({ target: 'Iterator', proto: true, real: true }, {
5941
6037
  reduce: function reduce(reducer /* , initialValue */) {
5942
6038
  anObject$5(this);
5943
6039
  aCallable$2(reducer);
@@ -5985,63 +6081,6 @@ const pickPropertyValues = (obj, property, endWithType) => {
5985
6081
  return values;
5986
6082
  };
5987
6083
 
5988
- // a string of all valid unicode whitespaces
5989
- var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
5990
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
5991
-
5992
- var uncurryThis$d = functionUncurryThis;
5993
- var requireObjectCoercible$5 = requireObjectCoercible$e;
5994
- var toString$b = toString$m;
5995
- var whitespaces$2 = whitespaces$3;
5996
-
5997
- var replace$4 = uncurryThis$d(''.replace);
5998
- var ltrim = RegExp('^[' + whitespaces$2 + ']+');
5999
- var rtrim = RegExp('(^|[^' + whitespaces$2 + '])[' + whitespaces$2 + ']+$');
6000
-
6001
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
6002
- var createMethod$1 = function (TYPE) {
6003
- return function ($this) {
6004
- var string = toString$b(requireObjectCoercible$5($this));
6005
- if (TYPE & 1) string = replace$4(string, ltrim, '');
6006
- if (TYPE & 2) string = replace$4(string, rtrim, '$1');
6007
- return string;
6008
- };
6009
- };
6010
-
6011
- var stringTrim = {
6012
- // `String.prototype.trim` method
6013
- // https://tc39.es/ecma262/#sec-string.prototype.trim
6014
- trim: createMethod$1(3)
6015
- };
6016
-
6017
- var PROPER_FUNCTION_NAME = functionName.PROPER;
6018
- var fails$4 = fails$x;
6019
- var whitespaces$1 = whitespaces$3;
6020
-
6021
- var non = '\u200B\u0085\u180E';
6022
-
6023
- // check that a method works with the correct list
6024
- // of whitespaces and has a correct name
6025
- var stringTrimForced = function (METHOD_NAME) {
6026
- return fails$4(function () {
6027
- return !!whitespaces$1[METHOD_NAME]()
6028
- || non[METHOD_NAME]() !== non
6029
- || (PROPER_FUNCTION_NAME && whitespaces$1[METHOD_NAME].name !== METHOD_NAME);
6030
- });
6031
- };
6032
-
6033
- var $$c = _export;
6034
- var $trim = stringTrim.trim;
6035
- var forcedStringTrimMethod = stringTrimForced;
6036
-
6037
- // `String.prototype.trim` method
6038
- // https://tc39.es/ecma262/#sec-string.prototype.trim
6039
- $$c({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
6040
- trim: function trim() {
6041
- return $trim(this);
6042
- }
6043
- });
6044
-
6045
6084
  var uncurryThis$c = functionUncurryThis;
6046
6085
  var hasOwn$4 = hasOwnProperty_1;
6047
6086
 
@@ -6921,7 +6960,7 @@ const GoAInputBaseControl = props => {
6921
6960
  skipInitialValidation
6922
6961
  } = props;
6923
6962
  const InnerComponent = input;
6924
- const labelToUpdate = label || '';
6963
+ const labelToUpdate = getControlLabelText(props);
6925
6964
  const controlRef = useRef(null);
6926
6965
  const formStepperCtx = useContext(JsonFormsStepperContext);
6927
6966
  const stepperState = formStepperCtx == null || formStepperCtx.selectStepperState == null ? void 0 : formStepperCtx.selectStepperState();
@@ -8428,6 +8467,7 @@ const GoABaseInputReviewComponent = props => {
8428
8467
  }) : null;
8429
8468
  };
8430
8469
  const requiredText = getRequiredLabelText();
8470
+ const getFallbackCheckboxLabel = () => getControlLabelText(props);
8431
8471
  const renderWarningMessage = () => {
8432
8472
  var _uischema$options4;
8433
8473
  if ((_uischema$options4 = uischema.options) != null && _uischema$options4.radio) return null;
@@ -8437,15 +8477,9 @@ const GoABaseInputReviewComponent = props => {
8437
8477
  return null;
8438
8478
  };
8439
8479
  if (isBoolean) {
8440
- var _uischema$options5, _uischema$options6;
8441
- let checkboxLabel = '';
8442
- if ((_uischema$options5 = uischema.options) != null && (_uischema$options5 = _uischema$options5.text) != null && _uischema$options5.trim()) {
8443
- checkboxLabel = uischema.options.text.trim();
8444
- } else if (uischema.scope && uischema.scope.startsWith('#/')) {
8445
- const fallbackLabel = getLastSegmentFromPointer(uischema.scope);
8446
- checkboxLabel = fallbackLabel.charAt(0).toUpperCase() + fallbackLabel.slice(1);
8447
- }
8448
- if (((_uischema$options6 = uischema.options) == null ? void 0 : _uischema$options6.radio) === true) {
8480
+ var _uischema$options5;
8481
+ const checkboxLabel = getFallbackCheckboxLabel();
8482
+ if (((_uischema$options5 = uischema.options) == null ? void 0 : _uischema$options5.radio) === true) {
8449
8483
  reviewText = data ? `Yes` : `No`;
8450
8484
  } else {
8451
8485
  reviewText = data ? `Yes (${checkboxLabel})` : `No (${checkboxLabel})`;
@@ -8460,16 +8494,7 @@ const GoABaseInputReviewComponent = props => {
8460
8494
  if (Array.isArray(data) && data.length > 0) {
8461
8495
  reviewText = jsx("ul", {
8462
8496
  children: data.map((checkbox, index) => {
8463
- var _uischema$options7;
8464
- let checkboxLabel = '';
8465
- // Use explicit text if provided, otherwise fall back to property name from scope
8466
- if (uischema != null && (_uischema$options7 = uischema.options) != null && (_uischema$options7 = _uischema$options7.text) != null && _uischema$options7.trim()) {
8467
- checkboxLabel = uischema.options.text.trim();
8468
- } else if (uischema.scope && uischema.scope.startsWith('#/')) {
8469
- const fallbackLabel = getLastSegmentFromPointer(uischema.scope);
8470
- // Capitalize first letter only when falling back to property name from scope
8471
- checkboxLabel = fallbackLabel.charAt(0).toUpperCase() + fallbackLabel.slice(1);
8472
- }
8497
+ const checkboxLabel = getFallbackCheckboxLabel();
8473
8498
  return jsx("li", {
8474
8499
  children: checkbox.trim() || checkboxLabel
8475
8500
  }, index);
@@ -9865,7 +9890,7 @@ class ListWithDetailControl extends React.Component {
9865
9890
  }
9866
9891
 
9867
9892
  const GoAInputBaseTableReview = props => {
9868
- var _uischema$options, _uischema$scope, _jsonForms$core, _uischema$options4;
9893
+ var _uischema$options, _uischema$scope2, _jsonForms$core, _uischema$options4;
9869
9894
  const {
9870
9895
  data,
9871
9896
  uischema,
@@ -9889,11 +9914,19 @@ const GoAInputBaseTableReview = props => {
9889
9914
  let labelToUpdate = '';
9890
9915
  if (reviewLabel.trim() !== '') {
9891
9916
  labelToUpdate = reviewLabel;
9917
+ } else if (typeof (schema == null ? void 0 : schema.title) === 'string' && schema.title.trim()) {
9918
+ labelToUpdate = schema.title;
9892
9919
  } else if (propLabel.trim() !== '') {
9920
+ var _uischema$scope;
9921
+ if ((_uischema$scope = uischema.scope) != null && _uischema$scope.startsWith('#/') && controlScopeMatchesLabel(uischema.scope, propLabel)) {
9922
+ labelToUpdate = getLabelText(uischema.scope, propLabel);
9923
+ } else {
9924
+ labelToUpdate = propLabel;
9925
+ }
9926
+ } else if ((_uischema$scope2 = uischema.scope) != null && _uischema$scope2.startsWith('#/')) {
9927
+ labelToUpdate = getGeneratedLabelFromScope(uischema.scope);
9928
+ } else {
9893
9929
  labelToUpdate = propLabel;
9894
- } else if ((_uischema$scope = uischema.scope) != null && _uischema$scope.startsWith('#/')) {
9895
- const scopeName = uischema.scope ? getLastSegmentFromPointer(uischema.scope) : '';
9896
- labelToUpdate = convertToReadableFormat(scopeName);
9897
9930
  }
9898
9931
  let reviewText = data;
9899
9932
  const isBoolean = typeof data === 'boolean';
@@ -9921,8 +9954,7 @@ const GoAInputBaseTableReview = props => {
9921
9954
  if ((_uischema$options2 = uischema.options) != null && (_uischema$options2 = _uischema$options2.text) != null && _uischema$options2.trim()) {
9922
9955
  checkboxLabel = uischema.options.text.trim();
9923
9956
  } else if (uischema.scope && uischema.scope.startsWith('#/')) {
9924
- const fallbackLabel = getLastSegmentFromPointer(uischema.scope);
9925
- checkboxLabel = convertToReadableFormat(fallbackLabel);
9957
+ checkboxLabel = getGeneratedLabelFromScope(uischema.scope);
9926
9958
  }
9927
9959
  if (((_uischema$options3 = uischema.options) == null ? void 0 : _uischema$options3.radio) === true) {
9928
9960
  reviewText = data ? `Yes` : `No`;