game_client_logic_deb 1.8.70 → 1.8.71
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/Logic_Debertz-core.js +1158 -1126
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +8996 -8970
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +11 -0
- package/Logic_Debertz-game_client.js +2581 -2613
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +162 -162
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +13 -16
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +1 -1
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.js
CHANGED
|
@@ -4036,6 +4036,19 @@ if (typeof Math.imul === 'undefined') {
|
|
|
4036
4036
|
return toMutableList_0(_this__u8e3s4);
|
|
4037
4037
|
return toCollection_0(_this__u8e3s4, ArrayList_init_$Create$());
|
|
4038
4038
|
}
|
|
4039
|
+
function single_1(_this__u8e3s4) {
|
|
4040
|
+
if (isInterface(_this__u8e3s4, List))
|
|
4041
|
+
return single_0(_this__u8e3s4);
|
|
4042
|
+
else {
|
|
4043
|
+
var iterator = _this__u8e3s4.v();
|
|
4044
|
+
if (!iterator.w())
|
|
4045
|
+
throw NoSuchElementException_init_$Create$_0('Collection is empty.');
|
|
4046
|
+
var single = iterator.y();
|
|
4047
|
+
if (iterator.w())
|
|
4048
|
+
throw IllegalArgumentException_init_$Create$_0('Collection has more than one element.');
|
|
4049
|
+
return single;
|
|
4050
|
+
}
|
|
4051
|
+
}
|
|
4039
4052
|
function toSet_0(_this__u8e3s4) {
|
|
4040
4053
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
4041
4054
|
var tmp;
|
|
@@ -4065,19 +4078,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
4065
4078
|
// Inline function 'kotlin.sequences.Sequence' call
|
|
4066
4079
|
return new _no_name_provided__qut3iv(_this__u8e3s4);
|
|
4067
4080
|
}
|
|
4068
|
-
function single_1(_this__u8e3s4) {
|
|
4069
|
-
if (isInterface(_this__u8e3s4, List))
|
|
4070
|
-
return single_0(_this__u8e3s4);
|
|
4071
|
-
else {
|
|
4072
|
-
var iterator = _this__u8e3s4.v();
|
|
4073
|
-
if (!iterator.w())
|
|
4074
|
-
throw NoSuchElementException_init_$Create$_0('Collection is empty.');
|
|
4075
|
-
var single = iterator.y();
|
|
4076
|
-
if (iterator.w())
|
|
4077
|
-
throw IllegalArgumentException_init_$Create$_0('Collection has more than one element.');
|
|
4078
|
-
return single;
|
|
4079
|
-
}
|
|
4080
|
-
}
|
|
4081
4081
|
function sorted(_this__u8e3s4) {
|
|
4082
4082
|
if (isInterface(_this__u8e3s4, Collection)) {
|
|
4083
4083
|
if (_this__u8e3s4.n() <= 1)
|
|
@@ -4275,6 +4275,10 @@ if (typeof Math.imul === 'undefined') {
|
|
|
4275
4275
|
}
|
|
4276
4276
|
return tmp;
|
|
4277
4277
|
}
|
|
4278
|
+
function asIterable(_this__u8e3s4) {
|
|
4279
|
+
// Inline function 'kotlin.collections.Iterable' call
|
|
4280
|
+
return new _no_name_provided__qut3iv_0(_this__u8e3s4);
|
|
4281
|
+
}
|
|
4278
4282
|
function map(_this__u8e3s4, transform) {
|
|
4279
4283
|
return new TransformingSequence(_this__u8e3s4, transform);
|
|
4280
4284
|
}
|
|
@@ -4314,10 +4318,13 @@ if (typeof Math.imul === 'undefined') {
|
|
|
4314
4318
|
function filterNot(_this__u8e3s4, predicate) {
|
|
4315
4319
|
return new FilteringSequence(_this__u8e3s4, false, predicate);
|
|
4316
4320
|
}
|
|
4317
|
-
function
|
|
4318
|
-
|
|
4319
|
-
return new _no_name_provided__qut3iv_0(_this__u8e3s4);
|
|
4321
|
+
function _no_name_provided__qut3iv_0($this_asIterable) {
|
|
4322
|
+
this.t8_1 = $this_asIterable;
|
|
4320
4323
|
}
|
|
4324
|
+
protoOf(_no_name_provided__qut3iv_0).v = function () {
|
|
4325
|
+
// Inline function 'kotlin.sequences.asIterable.<anonymous>' call
|
|
4326
|
+
return this.t8_1.v();
|
|
4327
|
+
};
|
|
4321
4328
|
function Sequence$iterator$ref() {
|
|
4322
4329
|
var l = function (p0) {
|
|
4323
4330
|
return p0.v();
|
|
@@ -4328,13 +4335,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
4328
4335
|
function filterNotNull$lambda(it) {
|
|
4329
4336
|
return it == null;
|
|
4330
4337
|
}
|
|
4331
|
-
function _no_name_provided__qut3iv_0($this_asIterable) {
|
|
4332
|
-
this.t8_1 = $this_asIterable;
|
|
4333
|
-
}
|
|
4334
|
-
protoOf(_no_name_provided__qut3iv_0).v = function () {
|
|
4335
|
-
// Inline function 'kotlin.sequences.asIterable.<anonymous>' call
|
|
4336
|
-
return this.t8_1.v();
|
|
4337
|
-
};
|
|
4338
4338
|
function plus_3(_this__u8e3s4, elements) {
|
|
4339
4339
|
var tmp0_safe_receiver = collectionSizeOrNull(elements);
|
|
4340
4340
|
var tmp;
|
|
@@ -9918,6 +9918,29 @@ if (typeof Math.imul === 'undefined') {
|
|
|
9918
9918
|
function get_indices_2(_this__u8e3s4) {
|
|
9919
9919
|
return numberRangeToNumber(0, charSequenceLength(_this__u8e3s4) - 1 | 0);
|
|
9920
9920
|
}
|
|
9921
|
+
function split(_this__u8e3s4, delimiters, ignoreCase, limit) {
|
|
9922
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
9923
|
+
limit = limit === VOID ? 0 : limit;
|
|
9924
|
+
if (delimiters.length === 1) {
|
|
9925
|
+
var delimiter = delimiters[0];
|
|
9926
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
9927
|
+
if (!(charSequenceLength(delimiter) === 0)) {
|
|
9928
|
+
return split_0(_this__u8e3s4, delimiter, ignoreCase, limit);
|
|
9929
|
+
}
|
|
9930
|
+
}
|
|
9931
|
+
// Inline function 'kotlin.collections.map' call
|
|
9932
|
+
var this_0 = asIterable(rangesDelimitedBy(_this__u8e3s4, delimiters, VOID, ignoreCase, limit));
|
|
9933
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
9934
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
9935
|
+
var tmp0_iterator = this_0.v();
|
|
9936
|
+
while (tmp0_iterator.w()) {
|
|
9937
|
+
var item = tmp0_iterator.y();
|
|
9938
|
+
// Inline function 'kotlin.text.split.<anonymous>' call
|
|
9939
|
+
var tmp$ret$1 = substring(_this__u8e3s4, item);
|
|
9940
|
+
destination.s(tmp$ret$1);
|
|
9941
|
+
}
|
|
9942
|
+
return destination;
|
|
9943
|
+
}
|
|
9921
9944
|
function padStart(_this__u8e3s4, length, padChar) {
|
|
9922
9945
|
padChar = padChar === VOID ? _Char___init__impl__6a9atx(32) : padChar;
|
|
9923
9946
|
return toString_1(padStart_0(isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE(), length, padChar));
|
|
@@ -9949,6 +9972,45 @@ if (typeof Math.imul === 'undefined') {
|
|
|
9949
9972
|
}
|
|
9950
9973
|
return tmp;
|
|
9951
9974
|
}
|
|
9975
|
+
function split_0(_this__u8e3s4, delimiter, ignoreCase, limit) {
|
|
9976
|
+
requireNonNegativeLimit(limit);
|
|
9977
|
+
var currentOffset = 0;
|
|
9978
|
+
var nextIndex = indexOf_5(_this__u8e3s4, delimiter, currentOffset, ignoreCase);
|
|
9979
|
+
if (nextIndex === -1 ? true : limit === 1) {
|
|
9980
|
+
return listOf(toString_1(_this__u8e3s4));
|
|
9981
|
+
}
|
|
9982
|
+
var isLimited = limit > 0;
|
|
9983
|
+
var result = ArrayList_init_$Create$_0(isLimited ? coerceAtMost(limit, 10) : 10);
|
|
9984
|
+
$l$loop: do {
|
|
9985
|
+
// Inline function 'kotlin.text.substring' call
|
|
9986
|
+
var startIndex = currentOffset;
|
|
9987
|
+
var endIndex = nextIndex;
|
|
9988
|
+
var tmp$ret$0 = toString_1(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex));
|
|
9989
|
+
result.s(tmp$ret$0);
|
|
9990
|
+
currentOffset = nextIndex + delimiter.length | 0;
|
|
9991
|
+
if (isLimited ? result.n() === (limit - 1 | 0) : false)
|
|
9992
|
+
break $l$loop;
|
|
9993
|
+
nextIndex = indexOf_5(_this__u8e3s4, delimiter, currentOffset, ignoreCase);
|
|
9994
|
+
}
|
|
9995
|
+
while (!(nextIndex === -1));
|
|
9996
|
+
// Inline function 'kotlin.text.substring' call
|
|
9997
|
+
var startIndex_0 = currentOffset;
|
|
9998
|
+
var endIndex_0 = charSequenceLength(_this__u8e3s4);
|
|
9999
|
+
var tmp$ret$1 = toString_1(charSequenceSubSequence(_this__u8e3s4, startIndex_0, endIndex_0));
|
|
10000
|
+
result.s(tmp$ret$1);
|
|
10001
|
+
return result;
|
|
10002
|
+
}
|
|
10003
|
+
function substring(_this__u8e3s4, range) {
|
|
10004
|
+
return toString_1(charSequenceSubSequence(_this__u8e3s4, range.lf(), range.mf() + 1 | 0));
|
|
10005
|
+
}
|
|
10006
|
+
function rangesDelimitedBy(_this__u8e3s4, delimiters, startIndex, ignoreCase, limit) {
|
|
10007
|
+
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
10008
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10009
|
+
limit = limit === VOID ? 0 : limit;
|
|
10010
|
+
requireNonNegativeLimit(limit);
|
|
10011
|
+
var delimitersList = asList(delimiters);
|
|
10012
|
+
return new DelimitedRangesSequence(_this__u8e3s4, startIndex, limit, rangesDelimitedBy$lambda(delimitersList, ignoreCase));
|
|
10013
|
+
}
|
|
9952
10014
|
function padStart_0(_this__u8e3s4, length, padChar) {
|
|
9953
10015
|
padChar = padChar === VOID ? _Char___init__impl__6a9atx(32) : padChar;
|
|
9954
10016
|
if (length < 0)
|
|
@@ -10014,20 +10076,15 @@ if (typeof Math.imul === 'undefined') {
|
|
|
10014
10076
|
while (!(index === last));
|
|
10015
10077
|
return -1;
|
|
10016
10078
|
}
|
|
10017
|
-
function
|
|
10018
|
-
|
|
10019
|
-
|
|
10079
|
+
function requireNonNegativeLimit(limit) {
|
|
10080
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
10081
|
+
var tmp;
|
|
10082
|
+
if (!(limit >= 0)) {
|
|
10083
|
+
// Inline function 'kotlin.text.requireNonNegativeLimit.<anonymous>' call
|
|
10084
|
+
var message = 'Limit must be non-negative, but was ' + limit;
|
|
10085
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
10020
10086
|
}
|
|
10021
|
-
|
|
10022
|
-
if (inductionVariable < length)
|
|
10023
|
-
do {
|
|
10024
|
-
var index = inductionVariable;
|
|
10025
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
10026
|
-
if (!equals_1(charSequenceGet(_this__u8e3s4, thisOffset + index | 0), charSequenceGet(other, otherOffset + index | 0), ignoreCase))
|
|
10027
|
-
return false;
|
|
10028
|
-
}
|
|
10029
|
-
while (inductionVariable < length);
|
|
10030
|
-
return true;
|
|
10087
|
+
return tmp;
|
|
10031
10088
|
}
|
|
10032
10089
|
function indexOf_5(_this__u8e3s4, string, startIndex, ignoreCase) {
|
|
10033
10090
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -10048,76 +10105,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
10048
10105
|
}
|
|
10049
10106
|
return tmp;
|
|
10050
10107
|
}
|
|
10051
|
-
function lineSequence(_this__u8e3s4) {
|
|
10052
|
-
return splitToSequence(_this__u8e3s4, ['\r\n', '\n', '\r']);
|
|
10053
|
-
}
|
|
10054
|
-
function endsWith_0(_this__u8e3s4, char, ignoreCase) {
|
|
10055
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10056
|
-
return charSequenceLength(_this__u8e3s4) > 0 ? equals_1(charSequenceGet(_this__u8e3s4, get_lastIndex_3(_this__u8e3s4)), char, ignoreCase) : false;
|
|
10057
|
-
}
|
|
10058
|
-
function requireNonNegativeLimit(limit) {
|
|
10059
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
10060
|
-
var tmp;
|
|
10061
|
-
if (!(limit >= 0)) {
|
|
10062
|
-
// Inline function 'kotlin.text.requireNonNegativeLimit.<anonymous>' call
|
|
10063
|
-
var message = 'Limit must be non-negative, but was ' + limit;
|
|
10064
|
-
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
10065
|
-
}
|
|
10066
|
-
return tmp;
|
|
10067
|
-
}
|
|
10068
|
-
function indexOf_6(_this__u8e3s4, other, startIndex, endIndex, ignoreCase, last) {
|
|
10069
|
-
last = last === VOID ? false : last;
|
|
10070
|
-
var indices = !last ? numberRangeToNumber(coerceAtLeast(startIndex, 0), coerceAtMost(endIndex, charSequenceLength(_this__u8e3s4))) : downTo(coerceAtMost(startIndex, get_lastIndex_3(_this__u8e3s4)), coerceAtLeast(endIndex, 0));
|
|
10071
|
-
var tmp;
|
|
10072
|
-
if (typeof _this__u8e3s4 === 'string') {
|
|
10073
|
-
tmp = typeof other === 'string';
|
|
10074
|
-
} else {
|
|
10075
|
-
tmp = false;
|
|
10076
|
-
}
|
|
10077
|
-
if (tmp) {
|
|
10078
|
-
var inductionVariable = indices.n8_1;
|
|
10079
|
-
var last_0 = indices.o8_1;
|
|
10080
|
-
var step = indices.p8_1;
|
|
10081
|
-
if ((step > 0 ? inductionVariable <= last_0 : false) ? true : step < 0 ? last_0 <= inductionVariable : false)
|
|
10082
|
-
do {
|
|
10083
|
-
var index = inductionVariable;
|
|
10084
|
-
inductionVariable = inductionVariable + step | 0;
|
|
10085
|
-
if (regionMatches(other, 0, _this__u8e3s4, index, charSequenceLength(other), ignoreCase))
|
|
10086
|
-
return index;
|
|
10087
|
-
}
|
|
10088
|
-
while (!(index === last_0));
|
|
10089
|
-
} else {
|
|
10090
|
-
var inductionVariable_0 = indices.n8_1;
|
|
10091
|
-
var last_1 = indices.o8_1;
|
|
10092
|
-
var step_0 = indices.p8_1;
|
|
10093
|
-
if ((step_0 > 0 ? inductionVariable_0 <= last_1 : false) ? true : step_0 < 0 ? last_1 <= inductionVariable_0 : false)
|
|
10094
|
-
do {
|
|
10095
|
-
var index_0 = inductionVariable_0;
|
|
10096
|
-
inductionVariable_0 = inductionVariable_0 + step_0 | 0;
|
|
10097
|
-
if (regionMatchesImpl(other, 0, _this__u8e3s4, index_0, charSequenceLength(other), ignoreCase))
|
|
10098
|
-
return index_0;
|
|
10099
|
-
}
|
|
10100
|
-
while (!(index_0 === last_1));
|
|
10101
|
-
}
|
|
10102
|
-
return -1;
|
|
10103
|
-
}
|
|
10104
|
-
function splitToSequence(_this__u8e3s4, delimiters, ignoreCase, limit) {
|
|
10105
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10106
|
-
limit = limit === VOID ? 0 : limit;
|
|
10107
|
-
var tmp = rangesDelimitedBy(_this__u8e3s4, delimiters, VOID, ignoreCase, limit);
|
|
10108
|
-
return map(tmp, splitToSequence$lambda(_this__u8e3s4));
|
|
10109
|
-
}
|
|
10110
|
-
function substring(_this__u8e3s4, range) {
|
|
10111
|
-
return toString_1(charSequenceSubSequence(_this__u8e3s4, range.lf(), range.mf() + 1 | 0));
|
|
10112
|
-
}
|
|
10113
|
-
function rangesDelimitedBy(_this__u8e3s4, delimiters, startIndex, ignoreCase, limit) {
|
|
10114
|
-
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
10115
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10116
|
-
limit = limit === VOID ? 0 : limit;
|
|
10117
|
-
requireNonNegativeLimit(limit);
|
|
10118
|
-
var delimitersList = asList(delimiters);
|
|
10119
|
-
return new DelimitedRangesSequence(_this__u8e3s4, startIndex, limit, rangesDelimitedBy$lambda(delimitersList, ignoreCase));
|
|
10120
|
-
}
|
|
10121
10108
|
function calcNext_0($this) {
|
|
10122
10109
|
if ($this.lg_1 < 0) {
|
|
10123
10110
|
$this.jg_1 = 0;
|
|
@@ -10254,6 +10241,42 @@ if (typeof Math.imul === 'undefined') {
|
|
|
10254
10241
|
}
|
|
10255
10242
|
return null;
|
|
10256
10243
|
}
|
|
10244
|
+
function indexOf_6(_this__u8e3s4, other, startIndex, endIndex, ignoreCase, last) {
|
|
10245
|
+
last = last === VOID ? false : last;
|
|
10246
|
+
var indices = !last ? numberRangeToNumber(coerceAtLeast(startIndex, 0), coerceAtMost(endIndex, charSequenceLength(_this__u8e3s4))) : downTo(coerceAtMost(startIndex, get_lastIndex_3(_this__u8e3s4)), coerceAtLeast(endIndex, 0));
|
|
10247
|
+
var tmp;
|
|
10248
|
+
if (typeof _this__u8e3s4 === 'string') {
|
|
10249
|
+
tmp = typeof other === 'string';
|
|
10250
|
+
} else {
|
|
10251
|
+
tmp = false;
|
|
10252
|
+
}
|
|
10253
|
+
if (tmp) {
|
|
10254
|
+
var inductionVariable = indices.n8_1;
|
|
10255
|
+
var last_0 = indices.o8_1;
|
|
10256
|
+
var step = indices.p8_1;
|
|
10257
|
+
if ((step > 0 ? inductionVariable <= last_0 : false) ? true : step < 0 ? last_0 <= inductionVariable : false)
|
|
10258
|
+
do {
|
|
10259
|
+
var index = inductionVariable;
|
|
10260
|
+
inductionVariable = inductionVariable + step | 0;
|
|
10261
|
+
if (regionMatches(other, 0, _this__u8e3s4, index, charSequenceLength(other), ignoreCase))
|
|
10262
|
+
return index;
|
|
10263
|
+
}
|
|
10264
|
+
while (!(index === last_0));
|
|
10265
|
+
} else {
|
|
10266
|
+
var inductionVariable_0 = indices.n8_1;
|
|
10267
|
+
var last_1 = indices.o8_1;
|
|
10268
|
+
var step_0 = indices.p8_1;
|
|
10269
|
+
if ((step_0 > 0 ? inductionVariable_0 <= last_1 : false) ? true : step_0 < 0 ? last_1 <= inductionVariable_0 : false)
|
|
10270
|
+
do {
|
|
10271
|
+
var index_0 = inductionVariable_0;
|
|
10272
|
+
inductionVariable_0 = inductionVariable_0 + step_0 | 0;
|
|
10273
|
+
if (regionMatchesImpl(other, 0, _this__u8e3s4, index_0, charSequenceLength(other), ignoreCase))
|
|
10274
|
+
return index_0;
|
|
10275
|
+
}
|
|
10276
|
+
while (!(index_0 === last_1));
|
|
10277
|
+
}
|
|
10278
|
+
return -1;
|
|
10279
|
+
}
|
|
10257
10280
|
function lastIndexOf(_this__u8e3s4, string, startIndex, ignoreCase) {
|
|
10258
10281
|
startIndex = startIndex === VOID ? get_lastIndex_3(_this__u8e3s4) : startIndex;
|
|
10259
10282
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
@@ -10273,6 +10296,34 @@ if (typeof Math.imul === 'undefined') {
|
|
|
10273
10296
|
}
|
|
10274
10297
|
return tmp;
|
|
10275
10298
|
}
|
|
10299
|
+
function regionMatchesImpl(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase) {
|
|
10300
|
+
if (((otherOffset < 0 ? true : thisOffset < 0) ? true : thisOffset > (charSequenceLength(_this__u8e3s4) - length | 0)) ? true : otherOffset > (charSequenceLength(other) - length | 0)) {
|
|
10301
|
+
return false;
|
|
10302
|
+
}
|
|
10303
|
+
var inductionVariable = 0;
|
|
10304
|
+
if (inductionVariable < length)
|
|
10305
|
+
do {
|
|
10306
|
+
var index = inductionVariable;
|
|
10307
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
10308
|
+
if (!equals_1(charSequenceGet(_this__u8e3s4, thisOffset + index | 0), charSequenceGet(other, otherOffset + index | 0), ignoreCase))
|
|
10309
|
+
return false;
|
|
10310
|
+
}
|
|
10311
|
+
while (inductionVariable < length);
|
|
10312
|
+
return true;
|
|
10313
|
+
}
|
|
10314
|
+
function lineSequence(_this__u8e3s4) {
|
|
10315
|
+
return splitToSequence(_this__u8e3s4, ['\r\n', '\n', '\r']);
|
|
10316
|
+
}
|
|
10317
|
+
function endsWith_0(_this__u8e3s4, char, ignoreCase) {
|
|
10318
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10319
|
+
return charSequenceLength(_this__u8e3s4) > 0 ? equals_1(charSequenceGet(_this__u8e3s4, get_lastIndex_3(_this__u8e3s4)), char, ignoreCase) : false;
|
|
10320
|
+
}
|
|
10321
|
+
function splitToSequence(_this__u8e3s4, delimiters, ignoreCase, limit) {
|
|
10322
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10323
|
+
limit = limit === VOID ? 0 : limit;
|
|
10324
|
+
var tmp = rangesDelimitedBy(_this__u8e3s4, delimiters, VOID, ignoreCase, limit);
|
|
10325
|
+
return map(tmp, splitToSequence$lambda(_this__u8e3s4));
|
|
10326
|
+
}
|
|
10276
10327
|
function removeSuffix(_this__u8e3s4, suffix) {
|
|
10277
10328
|
if (endsWith_1(_this__u8e3s4, suffix)) {
|
|
10278
10329
|
// Inline function 'kotlin.text.substring' call
|
|
@@ -10330,29 +10381,6 @@ if (typeof Math.imul === 'undefined') {
|
|
|
10330
10381
|
return null;
|
|
10331
10382
|
}
|
|
10332
10383
|
}
|
|
10333
|
-
function split(_this__u8e3s4, delimiters, ignoreCase, limit) {
|
|
10334
|
-
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10335
|
-
limit = limit === VOID ? 0 : limit;
|
|
10336
|
-
if (delimiters.length === 1) {
|
|
10337
|
-
var delimiter = delimiters[0];
|
|
10338
|
-
// Inline function 'kotlin.text.isEmpty' call
|
|
10339
|
-
if (!(charSequenceLength(delimiter) === 0)) {
|
|
10340
|
-
return split_0(_this__u8e3s4, delimiter, ignoreCase, limit);
|
|
10341
|
-
}
|
|
10342
|
-
}
|
|
10343
|
-
// Inline function 'kotlin.collections.map' call
|
|
10344
|
-
var this_0 = asIterable(rangesDelimitedBy(_this__u8e3s4, delimiters, VOID, ignoreCase, limit));
|
|
10345
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
10346
|
-
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
10347
|
-
var tmp0_iterator = this_0.v();
|
|
10348
|
-
while (tmp0_iterator.w()) {
|
|
10349
|
-
var item = tmp0_iterator.y();
|
|
10350
|
-
// Inline function 'kotlin.text.split.<anonymous>' call
|
|
10351
|
-
var tmp$ret$1 = substring(_this__u8e3s4, item);
|
|
10352
|
-
destination.s(tmp$ret$1);
|
|
10353
|
-
}
|
|
10354
|
-
return destination;
|
|
10355
|
-
}
|
|
10356
10384
|
function endsWith_1(_this__u8e3s4, suffix, ignoreCase) {
|
|
10357
10385
|
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
10358
10386
|
var tmp;
|
|
@@ -10373,42 +10401,9 @@ if (typeof Math.imul === 'undefined') {
|
|
|
10373
10401
|
return regionMatchesImpl(_this__u8e3s4, charSequenceLength(_this__u8e3s4) - charSequenceLength(suffix) | 0, suffix, 0, charSequenceLength(suffix), ignoreCase);
|
|
10374
10402
|
}
|
|
10375
10403
|
}
|
|
10376
|
-
function split_0(_this__u8e3s4, delimiter, ignoreCase, limit) {
|
|
10377
|
-
requireNonNegativeLimit(limit);
|
|
10378
|
-
var currentOffset = 0;
|
|
10379
|
-
var nextIndex = indexOf_5(_this__u8e3s4, delimiter, currentOffset, ignoreCase);
|
|
10380
|
-
if (nextIndex === -1 ? true : limit === 1) {
|
|
10381
|
-
return listOf(toString_1(_this__u8e3s4));
|
|
10382
|
-
}
|
|
10383
|
-
var isLimited = limit > 0;
|
|
10384
|
-
var result = ArrayList_init_$Create$_0(isLimited ? coerceAtMost(limit, 10) : 10);
|
|
10385
|
-
$l$loop: do {
|
|
10386
|
-
// Inline function 'kotlin.text.substring' call
|
|
10387
|
-
var startIndex = currentOffset;
|
|
10388
|
-
var endIndex = nextIndex;
|
|
10389
|
-
var tmp$ret$0 = toString_1(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex));
|
|
10390
|
-
result.s(tmp$ret$0);
|
|
10391
|
-
currentOffset = nextIndex + delimiter.length | 0;
|
|
10392
|
-
if (isLimited ? result.n() === (limit - 1 | 0) : false)
|
|
10393
|
-
break $l$loop;
|
|
10394
|
-
nextIndex = indexOf_5(_this__u8e3s4, delimiter, currentOffset, ignoreCase);
|
|
10395
|
-
}
|
|
10396
|
-
while (!(nextIndex === -1));
|
|
10397
|
-
// Inline function 'kotlin.text.substring' call
|
|
10398
|
-
var startIndex_0 = currentOffset;
|
|
10399
|
-
var endIndex_0 = charSequenceLength(_this__u8e3s4);
|
|
10400
|
-
var tmp$ret$1 = toString_1(charSequenceSubSequence(_this__u8e3s4, startIndex_0, endIndex_0));
|
|
10401
|
-
result.s(tmp$ret$1);
|
|
10402
|
-
return result;
|
|
10403
|
-
}
|
|
10404
10404
|
function lines(_this__u8e3s4) {
|
|
10405
10405
|
return toList_1(lineSequence(_this__u8e3s4));
|
|
10406
10406
|
}
|
|
10407
|
-
function splitToSequence$lambda($this_splitToSequence) {
|
|
10408
|
-
return function (it) {
|
|
10409
|
-
return substring($this_splitToSequence, it);
|
|
10410
|
-
};
|
|
10411
|
-
}
|
|
10412
10407
|
function rangesDelimitedBy$lambda($delimitersList, $ignoreCase) {
|
|
10413
10408
|
return function ($this$$receiver, currentIndex) {
|
|
10414
10409
|
var tmp0_safe_receiver = findAnyOf($this$$receiver, $delimitersList, currentIndex, $ignoreCase, false);
|
|
@@ -10424,6 +10419,11 @@ if (typeof Math.imul === 'undefined') {
|
|
|
10424
10419
|
return tmp;
|
|
10425
10420
|
};
|
|
10426
10421
|
}
|
|
10422
|
+
function splitToSequence$lambda($this_splitToSequence) {
|
|
10423
|
+
return function (it) {
|
|
10424
|
+
return substring($this_splitToSequence, it);
|
|
10425
|
+
};
|
|
10426
|
+
}
|
|
10427
10427
|
function _Duration___init__impl__kdtzql(rawValue) {
|
|
10428
10428
|
// Inline function 'kotlin.time.durationAssertionsEnabled' call
|
|
10429
10429
|
if (true) {
|