@cruglobal/godtools-shared 1.0.2-SNAPSHOT.1546 → 1.0.2-SNAPSHOT.1549

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.
@@ -32,6 +32,11 @@ if (typeof Array.prototype.fill === 'undefined') {
32
32
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
33
33
  }
34
34
  });
35
+ if (typeof Math.log2 === 'undefined') {
36
+ Math.log2 = function (x) {
37
+ return Math.log(x) * Math.LOG2E;
38
+ };
39
+ }
35
40
  if (typeof Math.clz32 === 'undefined') {
36
41
  Math.clz32 = function (log, LN2) {
37
42
  return function (x) {
@@ -43,11 +48,6 @@ if (typeof Math.clz32 === 'undefined') {
43
48
  };
44
49
  }(Math.log, Math.LN2);
45
50
  }
46
- if (typeof Math.log2 === 'undefined') {
47
- Math.log2 = function (x) {
48
- return Math.log(x) * Math.LOG2E;
49
- };
50
- }
51
51
  if (typeof String.prototype.startsWith === 'undefined') {
52
52
  Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
53
53
  position = position || 0;
@@ -105,19 +105,19 @@ if (typeof Math.imul === 'undefined') {
105
105
  setMetadataFor(AbstractMap, 'AbstractMap', classMeta, VOID, [Map_0]);
106
106
  setMetadataFor(AbstractMutableMap, 'AbstractMutableMap', classMeta, AbstractMap, [AbstractMap, Map_0]);
107
107
  setMetadataFor(Set, 'Set', interfaceMeta, VOID, [Collection]);
108
- setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Collection, Set]);
108
+ setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Set, Collection]);
109
109
  setMetadataFor(Companion, 'Companion', objectMeta);
110
110
  setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, Collection, List], ArrayList_init_$Create$);
111
111
  setMetadataFor(HashMap, 'HashMap', classMeta, AbstractMutableMap, [AbstractMutableMap, Map_0], HashMap_init_$Create$);
112
- setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
112
+ setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [Set, Collection, AbstractMutableSet]);
113
113
  setMetadataFor(HashMapValues, 'HashMapValues', classMeta, AbstractMutableCollection, [Collection, AbstractMutableCollection]);
114
- setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
114
+ setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Set, Collection, AbstractMutableSet]);
115
115
  setMetadataFor(HashMapEntrySet, 'HashMapEntrySet', classMeta, HashMapEntrySetBase);
116
116
  setMetadataFor(HashMapKeysDefault$iterator$1, VOID, classMeta);
117
117
  setMetadataFor(HashMapKeysDefault, 'HashMapKeysDefault', classMeta, AbstractMutableSet);
118
118
  setMetadataFor(HashMapValuesDefault$iterator$1, VOID, classMeta);
119
119
  setMetadataFor(HashMapValuesDefault, 'HashMapValuesDefault', classMeta, AbstractMutableCollection);
120
- setMetadataFor(HashSet, 'HashSet', classMeta, AbstractMutableSet, [AbstractMutableSet, Collection, Set], HashSet_init_$Create$);
120
+ setMetadataFor(HashSet, 'HashSet', classMeta, AbstractMutableSet, [AbstractMutableSet, Set, Collection], HashSet_init_$Create$);
121
121
  setMetadataFor(Companion_0, 'Companion', objectMeta);
122
122
  setMetadataFor(Itr, 'Itr', classMeta);
123
123
  setMetadataFor(KeysItr, 'KeysItr', classMeta, Itr);
@@ -167,7 +167,7 @@ if (typeof Math.imul === 'undefined') {
167
167
  setMetadataFor(EmptyHolder, 'EmptyHolder', objectMeta);
168
168
  setMetadataFor(LinkedHashMap, 'LinkedHashMap', classMeta, HashMap, [HashMap, Map_0], LinkedHashMap_init_$Create$);
169
169
  setMetadataFor(EmptyHolder_0, 'EmptyHolder', objectMeta);
170
- setMetadataFor(LinkedHashSet, 'LinkedHashSet', classMeta, HashSet, [HashSet, Collection, Set], LinkedHashSet_init_$Create$);
170
+ setMetadataFor(LinkedHashSet, 'LinkedHashSet', classMeta, HashSet, [HashSet, Set, Collection], LinkedHashSet_init_$Create$);
171
171
  setMetadataFor(BaseOutput, 'BaseOutput', classMeta);
172
172
  setMetadataFor(NodeJsOutput, 'NodeJsOutput', classMeta, BaseOutput);
173
173
  setMetadataFor(BufferedOutput, 'BufferedOutput', classMeta, BaseOutput, VOID, BufferedOutput);
@@ -4047,6 +4047,9 @@ if (typeof Math.imul === 'undefined') {
4047
4047
  function filterNotNull(_this__u8e3s4) {
4048
4048
  return filterNotNullTo(_this__u8e3s4, ArrayList_init_$Create$());
4049
4049
  }
4050
+ function getOrNull_0(_this__u8e3s4, index) {
4051
+ return (index >= 0 ? index <= get_lastIndex_1(_this__u8e3s4) : false) ? _this__u8e3s4.b1(index) : null;
4052
+ }
4050
4053
  function lastOrNull(_this__u8e3s4) {
4051
4054
  return _this__u8e3s4.x() ? null : _this__u8e3s4.b1(_this__u8e3s4.l() - 1 | 0);
4052
4055
  }
@@ -7385,12 +7388,12 @@ if (typeof Math.imul === 'undefined') {
7385
7388
  return _this__u8e3s4;
7386
7389
  }
7387
7390
  }
7388
- function mutableListOf(elements) {
7389
- return elements.length === 0 ? ArrayList_init_$Create$() : ArrayList_init_$Create$_1(new ArrayAsCollection(elements, true));
7390
- }
7391
7391
  function get_lastIndex_1(_this__u8e3s4) {
7392
7392
  return _this__u8e3s4.l() - 1 | 0;
7393
7393
  }
7394
+ function mutableListOf(elements) {
7395
+ return elements.length === 0 ? ArrayList_init_$Create$() : ArrayList_init_$Create$_1(new ArrayAsCollection(elements, true));
7396
+ }
7394
7397
  function EmptyList() {
7395
7398
  EmptyList_instance = this;
7396
7399
  this.ae_1 = new Long(-1478467534, -1720727600);
@@ -9914,165 +9917,166 @@ if (typeof Math.imul === 'undefined') {
9914
9917
  _.$_$.s3 = filterNotNull;
9915
9918
  _.$_$.t3 = firstOrNull;
9916
9919
  _.$_$.u3 = first;
9917
- _.$_$.v3 = hashMapOf;
9918
- _.$_$.w3 = joinToString_0;
9919
- _.$_$.x3 = joinToString_1;
9920
- _.$_$.y3 = joinToString;
9921
- _.$_$.z3 = joinTo;
9922
- _.$_$.a4 = joinTo_1;
9923
- _.$_$.b4 = get_lastIndex_1;
9924
- _.$_$.c4 = get_lastIndex;
9925
- _.$_$.d4 = get_lastIndex_0;
9926
- _.$_$.e4 = lastOrNull;
9927
- _.$_$.f4 = listOfNotNull;
9928
- _.$_$.g4 = listOf;
9929
- _.$_$.h4 = listOf_0;
9930
- _.$_$.i4 = mapCapacity;
9931
- _.$_$.j4 = mapOf;
9932
- _.$_$.k4 = maxOrNull;
9933
- _.$_$.l4 = minOrNull;
9934
- _.$_$.m4 = plus_0;
9935
- _.$_$.n4 = removeFirstOrNull;
9936
- _.$_$.o4 = removeFirst;
9937
- _.$_$.p4 = setOf;
9938
- _.$_$.q4 = sortWith;
9939
- _.$_$.r4 = sortedWith;
9940
- _.$_$.s4 = sorted;
9941
- _.$_$.t4 = take_0;
9942
- _.$_$.u4 = toList_0;
9943
- _.$_$.v4 = toSet_0;
9944
- _.$_$.w4 = toSet;
9945
- _.$_$.x4 = compareValues;
9946
- _.$_$.y4 = CancellationException;
9947
- _.$_$.z4 = get_COROUTINE_SUSPENDED;
9948
- _.$_$.a5 = createCoroutineUnintercepted;
9949
- _.$_$.b5 = intercepted;
9950
- _.$_$.c5 = AbstractCoroutineContextElement;
9951
- _.$_$.d5 = AbstractCoroutineContextKey;
9952
- _.$_$.e5 = get_0;
9953
- _.$_$.f5 = minusKey_0;
9954
- _.$_$.g5 = ContinuationInterceptor;
9955
- _.$_$.h5 = Continuation;
9956
- _.$_$.i5 = fold;
9957
- _.$_$.j5 = get;
9958
- _.$_$.k5 = minusKey;
9959
- _.$_$.l5 = Element;
9960
- _.$_$.m5 = plus;
9961
- _.$_$.n5 = CoroutineImpl;
9962
- _.$_$.o5 = startCoroutine;
9963
- _.$_$.p5 = enumEntries;
9964
- _.$_$.q5 = println;
9965
- _.$_$.r5 = anyToString;
9966
- _.$_$.s5 = arrayIterator;
9967
- _.$_$.t5 = captureStack;
9968
- _.$_$.u5 = charArrayOf;
9969
- _.$_$.v5 = charSequenceGet;
9970
- _.$_$.w5 = charSequenceLength;
9971
- _.$_$.x5 = classMeta;
9972
- _.$_$.y5 = compareTo_0;
9973
- _.$_$.z5 = defineProp;
9974
- _.$_$.a6 = equals_0;
9975
- _.$_$.b6 = fillArrayVal;
9976
- _.$_$.c6 = getBooleanHashCode;
9977
- _.$_$.d6 = getNumberHashCode;
9978
- _.$_$.e6 = getPropertyCallableRef;
9979
- _.$_$.f6 = getStringHashCode;
9980
- _.$_$.g6 = hashCode;
9981
- _.$_$.h6 = interfaceMeta;
9982
- _.$_$.i6 = isArray;
9983
- _.$_$.j6 = isCharSequence;
9984
- _.$_$.k6 = isInterface;
9985
- _.$_$.l6 = numberRangeToNumber;
9986
- _.$_$.m6 = numberToByte;
9987
- _.$_$.n6 = numberToChar;
9988
- _.$_$.o6 = numberToDouble;
9989
- _.$_$.p6 = numberToInt;
9990
- _.$_$.q6 = objectCreate;
9991
- _.$_$.r6 = objectMeta;
9992
- _.$_$.s6 = protoOf;
9993
- _.$_$.t6 = setMetadataFor;
9994
- _.$_$.u6 = toByte;
9995
- _.$_$.v6 = toLong;
9996
- _.$_$.w6 = toString_1;
9997
- _.$_$.x6 = get_PI;
9998
- _.$_$.y6 = roundToInt;
9999
- _.$_$.z6 = withSign;
10000
- _.$_$.a7 = coerceAtLeast_0;
10001
- _.$_$.b7 = coerceAtLeast_1;
10002
- _.$_$.c7 = coerceAtLeast;
10003
- _.$_$.d7 = coerceAtMost;
10004
- _.$_$.e7 = coerceIn;
10005
- _.$_$.f7 = coerceIn_0;
10006
- _.$_$.g7 = contains_2;
10007
- _.$_$.h7 = rangeTo;
10008
- _.$_$.i7 = KMutableProperty1;
10009
- _.$_$.j7 = KProperty1;
10010
- _.$_$.k7 = SequenceScope;
10011
- _.$_$.l7 = iterator;
10012
- _.$_$.m7 = Builder_0;
10013
- _.$_$.n7 = StringBuilder;
10014
- _.$_$.o7 = concatToString;
10015
- _.$_$.p7 = contains_5;
10016
- _.$_$.q7 = contains_4;
10017
- _.$_$.r7 = dropLast_0;
10018
- _.$_$.s7 = endsWith;
10019
- _.$_$.t7 = equals;
10020
- _.$_$.u7 = equals_1;
10021
- _.$_$.v7 = indexOf_1;
10022
- _.$_$.w7 = isBlank;
10023
- _.$_$.x7 = isHighSurrogate;
10024
- _.$_$.y7 = isUpperCase;
10025
- _.$_$.z7 = last;
10026
- _.$_$.a8 = padStart;
10027
- _.$_$.b8 = replace;
10028
- _.$_$.c8 = slice;
10029
- _.$_$.d8 = splitToSequence_0;
10030
- _.$_$.e8 = split;
10031
- _.$_$.f8 = split_0;
10032
- _.$_$.g8 = startsWith;
10033
- _.$_$.h8 = substringBefore;
10034
- _.$_$.i8 = toBoolean;
10035
- _.$_$.j8 = toCharArray;
10036
- _.$_$.k8 = toDoubleOrNull;
10037
- _.$_$.l8 = toDouble;
10038
- _.$_$.m8 = toHexString;
10039
- _.$_$.n8 = toIntOrNull;
10040
- _.$_$.o8 = toInt_0;
10041
- _.$_$.p8 = toInt;
10042
- _.$_$.q8 = toLongOrNull;
10043
- _.$_$.r8 = toUInt;
10044
- _.$_$.s8 = trimEnd;
10045
- _.$_$.t8 = trim;
10046
- _.$_$.u8 = Char;
10047
- _.$_$.v8 = Comparable;
10048
- _.$_$.w8 = Comparator;
10049
- _.$_$.x8 = Enum;
10050
- _.$_$.y8 = Error_0;
10051
- _.$_$.z8 = Exception;
10052
- _.$_$.a9 = IllegalArgumentException;
10053
- _.$_$.b9 = IllegalStateException;
10054
- _.$_$.c9 = Long;
10055
- _.$_$.d9 = NoSuchElementException;
10056
- _.$_$.e9 = NumberFormatException;
10057
- _.$_$.f9 = Pair;
10058
- _.$_$.g9 = RuntimeException;
10059
- _.$_$.h9 = THROW_CCE;
10060
- _.$_$.i9 = THROW_IAE;
10061
- _.$_$.j9 = UInt;
10062
- _.$_$.k9 = Unit;
10063
- _.$_$.l9 = UnsupportedOperationException;
10064
- _.$_$.m9 = addSuppressed;
10065
- _.$_$.n9 = createFailure;
10066
- _.$_$.o9 = ensureNotNull;
10067
- _.$_$.p9 = isNaN_1;
10068
- _.$_$.q9 = lazy;
10069
- _.$_$.r9 = noWhenBranchMatchedException;
10070
- _.$_$.s9 = stackTraceToString;
10071
- _.$_$.t9 = throwKotlinNothingValueException;
10072
- _.$_$.u9 = throwUninitializedPropertyAccessException;
10073
- _.$_$.v9 = toString_0;
10074
- _.$_$.w9 = to;
10075
- _.$_$.x9 = uintCompare;
9920
+ _.$_$.v3 = getOrNull_0;
9921
+ _.$_$.w3 = hashMapOf;
9922
+ _.$_$.x3 = joinToString_0;
9923
+ _.$_$.y3 = joinToString_1;
9924
+ _.$_$.z3 = joinToString;
9925
+ _.$_$.a4 = joinTo;
9926
+ _.$_$.b4 = joinTo_1;
9927
+ _.$_$.c4 = get_lastIndex_1;
9928
+ _.$_$.d4 = get_lastIndex;
9929
+ _.$_$.e4 = get_lastIndex_0;
9930
+ _.$_$.f4 = lastOrNull;
9931
+ _.$_$.g4 = listOfNotNull;
9932
+ _.$_$.h4 = listOf;
9933
+ _.$_$.i4 = listOf_0;
9934
+ _.$_$.j4 = mapCapacity;
9935
+ _.$_$.k4 = mapOf;
9936
+ _.$_$.l4 = maxOrNull;
9937
+ _.$_$.m4 = minOrNull;
9938
+ _.$_$.n4 = plus_0;
9939
+ _.$_$.o4 = removeFirstOrNull;
9940
+ _.$_$.p4 = removeFirst;
9941
+ _.$_$.q4 = setOf;
9942
+ _.$_$.r4 = sortWith;
9943
+ _.$_$.s4 = sortedWith;
9944
+ _.$_$.t4 = sorted;
9945
+ _.$_$.u4 = take_0;
9946
+ _.$_$.v4 = toList_0;
9947
+ _.$_$.w4 = toSet_0;
9948
+ _.$_$.x4 = toSet;
9949
+ _.$_$.y4 = compareValues;
9950
+ _.$_$.z4 = CancellationException;
9951
+ _.$_$.a5 = get_COROUTINE_SUSPENDED;
9952
+ _.$_$.b5 = createCoroutineUnintercepted;
9953
+ _.$_$.c5 = intercepted;
9954
+ _.$_$.d5 = AbstractCoroutineContextElement;
9955
+ _.$_$.e5 = AbstractCoroutineContextKey;
9956
+ _.$_$.f5 = get_0;
9957
+ _.$_$.g5 = minusKey_0;
9958
+ _.$_$.h5 = ContinuationInterceptor;
9959
+ _.$_$.i5 = Continuation;
9960
+ _.$_$.j5 = fold;
9961
+ _.$_$.k5 = get;
9962
+ _.$_$.l5 = minusKey;
9963
+ _.$_$.m5 = Element;
9964
+ _.$_$.n5 = plus;
9965
+ _.$_$.o5 = CoroutineImpl;
9966
+ _.$_$.p5 = startCoroutine;
9967
+ _.$_$.q5 = enumEntries;
9968
+ _.$_$.r5 = println;
9969
+ _.$_$.s5 = anyToString;
9970
+ _.$_$.t5 = arrayIterator;
9971
+ _.$_$.u5 = captureStack;
9972
+ _.$_$.v5 = charArrayOf;
9973
+ _.$_$.w5 = charSequenceGet;
9974
+ _.$_$.x5 = charSequenceLength;
9975
+ _.$_$.y5 = classMeta;
9976
+ _.$_$.z5 = compareTo_0;
9977
+ _.$_$.a6 = defineProp;
9978
+ _.$_$.b6 = equals_0;
9979
+ _.$_$.c6 = fillArrayVal;
9980
+ _.$_$.d6 = getBooleanHashCode;
9981
+ _.$_$.e6 = getNumberHashCode;
9982
+ _.$_$.f6 = getPropertyCallableRef;
9983
+ _.$_$.g6 = getStringHashCode;
9984
+ _.$_$.h6 = hashCode;
9985
+ _.$_$.i6 = interfaceMeta;
9986
+ _.$_$.j6 = isArray;
9987
+ _.$_$.k6 = isCharSequence;
9988
+ _.$_$.l6 = isInterface;
9989
+ _.$_$.m6 = numberRangeToNumber;
9990
+ _.$_$.n6 = numberToByte;
9991
+ _.$_$.o6 = numberToChar;
9992
+ _.$_$.p6 = numberToDouble;
9993
+ _.$_$.q6 = numberToInt;
9994
+ _.$_$.r6 = objectCreate;
9995
+ _.$_$.s6 = objectMeta;
9996
+ _.$_$.t6 = protoOf;
9997
+ _.$_$.u6 = setMetadataFor;
9998
+ _.$_$.v6 = toByte;
9999
+ _.$_$.w6 = toLong;
10000
+ _.$_$.x6 = toString_1;
10001
+ _.$_$.y6 = get_PI;
10002
+ _.$_$.z6 = roundToInt;
10003
+ _.$_$.a7 = withSign;
10004
+ _.$_$.b7 = coerceAtLeast_0;
10005
+ _.$_$.c7 = coerceAtLeast_1;
10006
+ _.$_$.d7 = coerceAtLeast;
10007
+ _.$_$.e7 = coerceAtMost;
10008
+ _.$_$.f7 = coerceIn;
10009
+ _.$_$.g7 = coerceIn_0;
10010
+ _.$_$.h7 = contains_2;
10011
+ _.$_$.i7 = rangeTo;
10012
+ _.$_$.j7 = KMutableProperty1;
10013
+ _.$_$.k7 = KProperty1;
10014
+ _.$_$.l7 = SequenceScope;
10015
+ _.$_$.m7 = iterator;
10016
+ _.$_$.n7 = Builder_0;
10017
+ _.$_$.o7 = StringBuilder;
10018
+ _.$_$.p7 = concatToString;
10019
+ _.$_$.q7 = contains_5;
10020
+ _.$_$.r7 = contains_4;
10021
+ _.$_$.s7 = dropLast_0;
10022
+ _.$_$.t7 = endsWith;
10023
+ _.$_$.u7 = equals;
10024
+ _.$_$.v7 = equals_1;
10025
+ _.$_$.w7 = indexOf_1;
10026
+ _.$_$.x7 = isBlank;
10027
+ _.$_$.y7 = isHighSurrogate;
10028
+ _.$_$.z7 = isUpperCase;
10029
+ _.$_$.a8 = last;
10030
+ _.$_$.b8 = padStart;
10031
+ _.$_$.c8 = replace;
10032
+ _.$_$.d8 = slice;
10033
+ _.$_$.e8 = splitToSequence_0;
10034
+ _.$_$.f8 = split;
10035
+ _.$_$.g8 = split_0;
10036
+ _.$_$.h8 = startsWith;
10037
+ _.$_$.i8 = substringBefore;
10038
+ _.$_$.j8 = toBoolean;
10039
+ _.$_$.k8 = toCharArray;
10040
+ _.$_$.l8 = toDoubleOrNull;
10041
+ _.$_$.m8 = toDouble;
10042
+ _.$_$.n8 = toHexString;
10043
+ _.$_$.o8 = toIntOrNull;
10044
+ _.$_$.p8 = toInt_0;
10045
+ _.$_$.q8 = toInt;
10046
+ _.$_$.r8 = toLongOrNull;
10047
+ _.$_$.s8 = toUInt;
10048
+ _.$_$.t8 = trimEnd;
10049
+ _.$_$.u8 = trim;
10050
+ _.$_$.v8 = Char;
10051
+ _.$_$.w8 = Comparable;
10052
+ _.$_$.x8 = Comparator;
10053
+ _.$_$.y8 = Enum;
10054
+ _.$_$.z8 = Error_0;
10055
+ _.$_$.a9 = Exception;
10056
+ _.$_$.b9 = IllegalArgumentException;
10057
+ _.$_$.c9 = IllegalStateException;
10058
+ _.$_$.d9 = Long;
10059
+ _.$_$.e9 = NoSuchElementException;
10060
+ _.$_$.f9 = NumberFormatException;
10061
+ _.$_$.g9 = Pair;
10062
+ _.$_$.h9 = RuntimeException;
10063
+ _.$_$.i9 = THROW_CCE;
10064
+ _.$_$.j9 = THROW_IAE;
10065
+ _.$_$.k9 = UInt;
10066
+ _.$_$.l9 = Unit;
10067
+ _.$_$.m9 = UnsupportedOperationException;
10068
+ _.$_$.n9 = addSuppressed;
10069
+ _.$_$.o9 = createFailure;
10070
+ _.$_$.p9 = ensureNotNull;
10071
+ _.$_$.q9 = isNaN_1;
10072
+ _.$_$.r9 = lazy;
10073
+ _.$_$.s9 = noWhenBranchMatchedException;
10074
+ _.$_$.t9 = stackTraceToString;
10075
+ _.$_$.u9 = throwKotlinNothingValueException;
10076
+ _.$_$.v9 = throwUninitializedPropertyAccessException;
10077
+ _.$_$.w9 = toString_0;
10078
+ _.$_$.x9 = to;
10079
+ _.$_$.y9 = uintCompare;
10076
10080
  //endregion
10077
10081
  return _;
10078
10082
  }));