@cruglobal/godtools-shared 0.9.0-SNAPSHOT.1179 → 0.9.0-SNAPSHOT.1186
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.
|
@@ -681,35 +681,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
681
681
|
}
|
|
682
682
|
return max;
|
|
683
683
|
}
|
|
684
|
-
function toSet_0(_this__u8e3s4) {
|
|
685
|
-
if (isInterface(_this__u8e3s4, Collection)) {
|
|
686
|
-
var tmp0_subject = _this__u8e3s4.i();
|
|
687
|
-
var tmp;
|
|
688
|
-
switch (tmp0_subject) {
|
|
689
|
-
case 0:
|
|
690
|
-
tmp = emptySet();
|
|
691
|
-
break;
|
|
692
|
-
case 1:
|
|
693
|
-
var tmp_0;
|
|
694
|
-
if (isInterface(_this__u8e3s4, List)) {
|
|
695
|
-
tmp_0 = _this__u8e3s4.j(0);
|
|
696
|
-
} else {
|
|
697
|
-
tmp_0 = _this__u8e3s4.f().h();
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
tmp = setOf(tmp_0);
|
|
701
|
-
break;
|
|
702
|
-
default:
|
|
703
|
-
tmp = toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$_1(mapCapacity(_this__u8e3s4.i())));
|
|
704
|
-
break;
|
|
705
|
-
}
|
|
706
|
-
return tmp;
|
|
707
|
-
}
|
|
708
|
-
return optimizeReadOnlySet(toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$()));
|
|
709
|
-
}
|
|
710
|
-
function lastOrNull(_this__u8e3s4) {
|
|
711
|
-
return _this__u8e3s4.m() ? null : _this__u8e3s4.j(_this__u8e3s4.i() - 1 | 0);
|
|
712
|
-
}
|
|
713
684
|
function firstOrNull(_this__u8e3s4) {
|
|
714
685
|
return _this__u8e3s4.m() ? null : _this__u8e3s4.j(0);
|
|
715
686
|
}
|
|
@@ -744,6 +715,35 @@ if (typeof Math.imul === 'undefined') {
|
|
|
744
715
|
}
|
|
745
716
|
return optimizeReadOnlyList(list);
|
|
746
717
|
}
|
|
718
|
+
function toSet_0(_this__u8e3s4) {
|
|
719
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
720
|
+
var tmp0_subject = _this__u8e3s4.i();
|
|
721
|
+
var tmp;
|
|
722
|
+
switch (tmp0_subject) {
|
|
723
|
+
case 0:
|
|
724
|
+
tmp = emptySet();
|
|
725
|
+
break;
|
|
726
|
+
case 1:
|
|
727
|
+
var tmp_0;
|
|
728
|
+
if (isInterface(_this__u8e3s4, List)) {
|
|
729
|
+
tmp_0 = _this__u8e3s4.j(0);
|
|
730
|
+
} else {
|
|
731
|
+
tmp_0 = _this__u8e3s4.f().h();
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
tmp = setOf(tmp_0);
|
|
735
|
+
break;
|
|
736
|
+
default:
|
|
737
|
+
tmp = toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$_1(mapCapacity(_this__u8e3s4.i())));
|
|
738
|
+
break;
|
|
739
|
+
}
|
|
740
|
+
return tmp;
|
|
741
|
+
}
|
|
742
|
+
return optimizeReadOnlySet(toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$()));
|
|
743
|
+
}
|
|
744
|
+
function lastOrNull(_this__u8e3s4) {
|
|
745
|
+
return _this__u8e3s4.m() ? null : _this__u8e3s4.j(_this__u8e3s4.i() - 1 | 0);
|
|
746
|
+
}
|
|
747
747
|
function first_0(_this__u8e3s4) {
|
|
748
748
|
if (_this__u8e3s4.m())
|
|
749
749
|
throw NoSuchElementException_init_$Create$_0('List is empty.');
|
|
@@ -2593,6 +2593,33 @@ if (typeof Math.imul === 'undefined') {
|
|
|
2593
2593
|
tmp$ret$3 = tmp$ret$2;
|
|
2594
2594
|
return tmp$ret$3;
|
|
2595
2595
|
}
|
|
2596
|
+
function trimEnd(_this__u8e3s4, chars) {
|
|
2597
|
+
var tmp$ret$2;
|
|
2598
|
+
// Inline function 'kotlin.text.trimEnd' call
|
|
2599
|
+
var tmp$ret$1;
|
|
2600
|
+
$l$block: {
|
|
2601
|
+
// Inline function 'kotlin.text.trimEnd' call
|
|
2602
|
+
var tmp0_trimEnd = isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE();
|
|
2603
|
+
var inductionVariable = charSequenceLength(tmp0_trimEnd) - 1 | 0;
|
|
2604
|
+
if (0 <= inductionVariable)
|
|
2605
|
+
do {
|
|
2606
|
+
var index = inductionVariable;
|
|
2607
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
2608
|
+
var tmp$ret$0;
|
|
2609
|
+
// Inline function 'kotlin.text.trimEnd.<anonymous>' call
|
|
2610
|
+
var tmp1__anonymous__uwfjfc = charSequenceGet(tmp0_trimEnd, index);
|
|
2611
|
+
tmp$ret$0 = contains_1(chars, tmp1__anonymous__uwfjfc);
|
|
2612
|
+
if (!tmp$ret$0) {
|
|
2613
|
+
tmp$ret$1 = charSequenceSubSequence(tmp0_trimEnd, 0, index + 1 | 0);
|
|
2614
|
+
break $l$block;
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
while (0 <= inductionVariable);
|
|
2618
|
+
tmp$ret$1 = '';
|
|
2619
|
+
}
|
|
2620
|
+
tmp$ret$2 = toString_2(tmp$ret$1);
|
|
2621
|
+
return tmp$ret$2;
|
|
2622
|
+
}
|
|
2596
2623
|
function split_0(_this__u8e3s4, delimiters, ignoreCase, limit) {
|
|
2597
2624
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
2598
2625
|
limit = limit === VOID ? 0 : limit;
|
|
@@ -2644,33 +2671,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
2644
2671
|
}
|
|
2645
2672
|
return tmp;
|
|
2646
2673
|
}
|
|
2647
|
-
function trimEnd(_this__u8e3s4, chars) {
|
|
2648
|
-
var tmp$ret$2;
|
|
2649
|
-
// Inline function 'kotlin.text.trimEnd' call
|
|
2650
|
-
var tmp$ret$1;
|
|
2651
|
-
$l$block: {
|
|
2652
|
-
// Inline function 'kotlin.text.trimEnd' call
|
|
2653
|
-
var tmp0_trimEnd = isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE();
|
|
2654
|
-
var inductionVariable = charSequenceLength(tmp0_trimEnd) - 1 | 0;
|
|
2655
|
-
if (0 <= inductionVariable)
|
|
2656
|
-
do {
|
|
2657
|
-
var index = inductionVariable;
|
|
2658
|
-
inductionVariable = inductionVariable + -1 | 0;
|
|
2659
|
-
var tmp$ret$0;
|
|
2660
|
-
// Inline function 'kotlin.text.trimEnd.<anonymous>' call
|
|
2661
|
-
var tmp1__anonymous__uwfjfc = charSequenceGet(tmp0_trimEnd, index);
|
|
2662
|
-
tmp$ret$0 = contains_1(chars, tmp1__anonymous__uwfjfc);
|
|
2663
|
-
if (!tmp$ret$0) {
|
|
2664
|
-
tmp$ret$1 = charSequenceSubSequence(tmp0_trimEnd, 0, index + 1 | 0);
|
|
2665
|
-
break $l$block;
|
|
2666
|
-
}
|
|
2667
|
-
}
|
|
2668
|
-
while (0 <= inductionVariable);
|
|
2669
|
-
tmp$ret$1 = '';
|
|
2670
|
-
}
|
|
2671
|
-
tmp$ret$2 = toString_2(tmp$ret$1);
|
|
2672
|
-
return tmp$ret$2;
|
|
2673
|
-
}
|
|
2674
2674
|
function contains_5(_this__u8e3s4, char, ignoreCase) {
|
|
2675
2675
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
2676
2676
|
return indexOf_3(_this__u8e3s4, char, VOID, ignoreCase) >= 0;
|
|
@@ -2716,6 +2716,30 @@ if (typeof Math.imul === 'undefined') {
|
|
|
2716
2716
|
var delimitersList = asList(delimiters);
|
|
2717
2717
|
return new DelimitedRangesSequence(_this__u8e3s4, startIndex, limit, rangesDelimitedBy$lambda(delimitersList, ignoreCase));
|
|
2718
2718
|
}
|
|
2719
|
+
function trim(_this__u8e3s4) {
|
|
2720
|
+
var tmp$ret$0;
|
|
2721
|
+
// Inline function 'kotlin.text.trim' call
|
|
2722
|
+
var startIndex = 0;
|
|
2723
|
+
var endIndex = charSequenceLength(_this__u8e3s4) - 1 | 0;
|
|
2724
|
+
var startFound = false;
|
|
2725
|
+
$l$loop: while (startIndex <= endIndex) {
|
|
2726
|
+
var index = !startFound ? startIndex : endIndex;
|
|
2727
|
+
var match = isWhitespace(charSequenceGet(_this__u8e3s4, index));
|
|
2728
|
+
if (!startFound) {
|
|
2729
|
+
if (!match)
|
|
2730
|
+
startFound = true;
|
|
2731
|
+
else
|
|
2732
|
+
startIndex = startIndex + 1 | 0;
|
|
2733
|
+
} else {
|
|
2734
|
+
if (!match)
|
|
2735
|
+
break $l$loop;
|
|
2736
|
+
else
|
|
2737
|
+
endIndex = endIndex - 1 | 0;
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2740
|
+
tmp$ret$0 = charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex + 1 | 0);
|
|
2741
|
+
return tmp$ret$0;
|
|
2742
|
+
}
|
|
2719
2743
|
function rangesDelimitedBy_0(_this__u8e3s4, delimiters, startIndex, ignoreCase, limit) {
|
|
2720
2744
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2721
2745
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
@@ -2783,30 +2807,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
2783
2807
|
}
|
|
2784
2808
|
return -1;
|
|
2785
2809
|
}
|
|
2786
|
-
function trim(_this__u8e3s4) {
|
|
2787
|
-
var tmp$ret$0;
|
|
2788
|
-
// Inline function 'kotlin.text.trim' call
|
|
2789
|
-
var startIndex = 0;
|
|
2790
|
-
var endIndex = charSequenceLength(_this__u8e3s4) - 1 | 0;
|
|
2791
|
-
var startFound = false;
|
|
2792
|
-
$l$loop: while (startIndex <= endIndex) {
|
|
2793
|
-
var index = !startFound ? startIndex : endIndex;
|
|
2794
|
-
var match = isWhitespace(charSequenceGet(_this__u8e3s4, index));
|
|
2795
|
-
if (!startFound) {
|
|
2796
|
-
if (!match)
|
|
2797
|
-
startFound = true;
|
|
2798
|
-
else
|
|
2799
|
-
startIndex = startIndex + 1 | 0;
|
|
2800
|
-
} else {
|
|
2801
|
-
if (!match)
|
|
2802
|
-
break $l$loop;
|
|
2803
|
-
else
|
|
2804
|
-
endIndex = endIndex - 1 | 0;
|
|
2805
|
-
}
|
|
2806
|
-
}
|
|
2807
|
-
tmp$ret$0 = charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex + 1 | 0);
|
|
2808
|
-
return tmp$ret$0;
|
|
2809
|
-
}
|
|
2810
2810
|
function indexOf_3(_this__u8e3s4, char, startIndex, ignoreCase) {
|
|
2811
2811
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
2812
2812
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
@@ -5259,10 +5259,10 @@ if (typeof Math.imul === 'undefined') {
|
|
|
5259
5259
|
protoOf(SimpleKClassImpl).z9 = function () {
|
|
5260
5260
|
return this.ia_1;
|
|
5261
5261
|
};
|
|
5262
|
-
function KMutableProperty1() {
|
|
5263
|
-
}
|
|
5264
5262
|
function KProperty1() {
|
|
5265
5263
|
}
|
|
5264
|
+
function KMutableProperty1() {
|
|
5265
|
+
}
|
|
5266
5266
|
function get_functionClasses() {
|
|
5267
5267
|
_init_properties_primitives_kt__3fums4();
|
|
5268
5268
|
return functionClasses;
|
|
@@ -5930,6 +5930,21 @@ if (typeof Math.imul === 'undefined') {
|
|
|
5930
5930
|
}
|
|
5931
5931
|
return tmp;
|
|
5932
5932
|
}
|
|
5933
|
+
function toBoolean(_this__u8e3s4) {
|
|
5934
|
+
var tmp;
|
|
5935
|
+
if (!(_this__u8e3s4 == null)) {
|
|
5936
|
+
var tmp$ret$1;
|
|
5937
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
5938
|
+
var tmp$ret$0;
|
|
5939
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
5940
|
+
tmp$ret$0 = _this__u8e3s4;
|
|
5941
|
+
tmp$ret$1 = tmp$ret$0.toLowerCase();
|
|
5942
|
+
tmp = tmp$ret$1 === 'true';
|
|
5943
|
+
} else {
|
|
5944
|
+
tmp = false;
|
|
5945
|
+
}
|
|
5946
|
+
return tmp;
|
|
5947
|
+
}
|
|
5933
5948
|
function toDoubleOrNull(_this__u8e3s4) {
|
|
5934
5949
|
var tmp$ret$3;
|
|
5935
5950
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -5983,21 +5998,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
5983
5998
|
tmp$ret$2 = tmp1_also;
|
|
5984
5999
|
return tmp$ret$2;
|
|
5985
6000
|
}
|
|
5986
|
-
function toBoolean(_this__u8e3s4) {
|
|
5987
|
-
var tmp;
|
|
5988
|
-
if (!(_this__u8e3s4 == null)) {
|
|
5989
|
-
var tmp$ret$1;
|
|
5990
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
5991
|
-
var tmp$ret$0;
|
|
5992
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
5993
|
-
tmp$ret$0 = _this__u8e3s4;
|
|
5994
|
-
tmp$ret$1 = tmp$ret$0.toLowerCase();
|
|
5995
|
-
tmp = tmp$ret$1 === 'true';
|
|
5996
|
-
} else {
|
|
5997
|
-
tmp = false;
|
|
5998
|
-
}
|
|
5999
|
-
return tmp;
|
|
6000
|
-
}
|
|
6001
6001
|
function digitOf(char, radix) {
|
|
6002
6002
|
var tmp$ret$1;
|
|
6003
6003
|
// Inline function 'kotlin.let' call
|