game_client_logic_deb 1.8.250 → 1.8.259
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/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/Logic_Debertz-core.js +3 -3
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +12874 -12171
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +33 -24
- package/Logic_Debertz-game_client.js +2417 -2307
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +83 -83
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.js
CHANGED
|
@@ -974,11 +974,57 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
974
974
|
sortWith_0(this_1, comparator);
|
|
975
975
|
return this_1;
|
|
976
976
|
}
|
|
977
|
+
function take(_this__u8e3s4, n) {
|
|
978
|
+
// Inline function 'kotlin.require' call
|
|
979
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
980
|
+
if (!(n >= 0)) {
|
|
981
|
+
// Inline function 'kotlin.collections.take.<anonymous>' call
|
|
982
|
+
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
983
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
984
|
+
}
|
|
985
|
+
if (n === 0)
|
|
986
|
+
return emptyList();
|
|
987
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
988
|
+
if (n >= _this__u8e3s4.m())
|
|
989
|
+
return toList_0(_this__u8e3s4);
|
|
990
|
+
if (n === 1)
|
|
991
|
+
return listOf(first_1(_this__u8e3s4));
|
|
992
|
+
}
|
|
993
|
+
var count = 0;
|
|
994
|
+
var list = ArrayList_init_$Create$_0(n);
|
|
995
|
+
var tmp0_iterator = _this__u8e3s4.j();
|
|
996
|
+
$l$loop: while (tmp0_iterator.k()) {
|
|
997
|
+
var item = tmp0_iterator.l();
|
|
998
|
+
list.e(item);
|
|
999
|
+
count = count + 1 | 0;
|
|
1000
|
+
if (count === n)
|
|
1001
|
+
break $l$loop;
|
|
1002
|
+
}
|
|
1003
|
+
return optimizeReadOnlyList(list);
|
|
1004
|
+
}
|
|
977
1005
|
function first_0(_this__u8e3s4) {
|
|
978
1006
|
if (_this__u8e3s4.p())
|
|
979
1007
|
throw NoSuchElementException_init_$Create$_0('List is empty.');
|
|
980
1008
|
return _this__u8e3s4.o(0);
|
|
981
1009
|
}
|
|
1010
|
+
function average(_this__u8e3s4) {
|
|
1011
|
+
var sum = 0.0;
|
|
1012
|
+
var count = 0;
|
|
1013
|
+
var tmp0_iterator = _this__u8e3s4.j();
|
|
1014
|
+
while (tmp0_iterator.k()) {
|
|
1015
|
+
var element = tmp0_iterator.l();
|
|
1016
|
+
sum = sum + element;
|
|
1017
|
+
count = count + 1 | 0;
|
|
1018
|
+
checkCountOverflow(count);
|
|
1019
|
+
}
|
|
1020
|
+
var tmp;
|
|
1021
|
+
if (count === 0) {
|
|
1022
|
+
tmp = NaN;
|
|
1023
|
+
} else {
|
|
1024
|
+
tmp = sum / count;
|
|
1025
|
+
}
|
|
1026
|
+
return tmp;
|
|
1027
|
+
}
|
|
982
1028
|
function lastOrNull(_this__u8e3s4) {
|
|
983
1029
|
return _this__u8e3s4.p() ? null : _this__u8e3s4.o(_this__u8e3s4.m() - 1 | 0);
|
|
984
1030
|
}
|
|
@@ -1066,6 +1112,16 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
1066
1112
|
return last;
|
|
1067
1113
|
}
|
|
1068
1114
|
}
|
|
1115
|
+
function first_1(_this__u8e3s4) {
|
|
1116
|
+
if (isInterface(_this__u8e3s4, KtList))
|
|
1117
|
+
return first_0(_this__u8e3s4);
|
|
1118
|
+
else {
|
|
1119
|
+
var iterator = _this__u8e3s4.j();
|
|
1120
|
+
if (!iterator.k())
|
|
1121
|
+
throw NoSuchElementException_init_$Create$_0('Collection is empty.');
|
|
1122
|
+
return iterator.l();
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1069
1125
|
function single_1(_this__u8e3s4) {
|
|
1070
1126
|
if (isInterface(_this__u8e3s4, KtList))
|
|
1071
1127
|
return single_0(_this__u8e3s4);
|
|
@@ -1101,16 +1157,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
1101
1157
|
}
|
|
1102
1158
|
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.m() - n | 0, 0));
|
|
1103
1159
|
}
|
|
1104
|
-
function first_1(_this__u8e3s4) {
|
|
1105
|
-
if (isInterface(_this__u8e3s4, KtList))
|
|
1106
|
-
return first_0(_this__u8e3s4);
|
|
1107
|
-
else {
|
|
1108
|
-
var iterator = _this__u8e3s4.j();
|
|
1109
|
-
if (!iterator.k())
|
|
1110
|
-
throw NoSuchElementException_init_$Create$_0('Collection is empty.');
|
|
1111
|
-
return iterator.l();
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
1160
|
function zip_0(_this__u8e3s4, other) {
|
|
1115
1161
|
// Inline function 'kotlin.collections.zip' call
|
|
1116
1162
|
var first = _this__u8e3s4.j();
|
|
@@ -1129,54 +1175,43 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
1129
1175
|
}
|
|
1130
1176
|
return list;
|
|
1131
1177
|
}
|
|
1132
|
-
function
|
|
1133
|
-
var sum = 0.0;
|
|
1134
|
-
var count = 0;
|
|
1135
|
-
var tmp0_iterator = _this__u8e3s4.j();
|
|
1136
|
-
while (tmp0_iterator.k()) {
|
|
1137
|
-
var element = tmp0_iterator.l();
|
|
1138
|
-
sum = sum + element;
|
|
1139
|
-
count = count + 1 | 0;
|
|
1140
|
-
checkCountOverflow(count);
|
|
1141
|
-
}
|
|
1142
|
-
var tmp;
|
|
1143
|
-
if (count === 0) {
|
|
1144
|
-
tmp = NaN;
|
|
1145
|
-
} else {
|
|
1146
|
-
tmp = sum / count;
|
|
1147
|
-
}
|
|
1148
|
-
return tmp;
|
|
1149
|
-
}
|
|
1150
|
-
function filterNotNull_0(_this__u8e3s4) {
|
|
1151
|
-
return filterNotNullTo_0(_this__u8e3s4, ArrayList_init_$Create$());
|
|
1152
|
-
}
|
|
1153
|
-
function take(_this__u8e3s4, n) {
|
|
1178
|
+
function takeLast(_this__u8e3s4, n) {
|
|
1154
1179
|
// Inline function 'kotlin.require' call
|
|
1155
1180
|
// Inline function 'kotlin.contracts.contract' call
|
|
1156
1181
|
if (!(n >= 0)) {
|
|
1157
|
-
// Inline function 'kotlin.collections.
|
|
1182
|
+
// Inline function 'kotlin.collections.takeLast.<anonymous>' call
|
|
1158
1183
|
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
1159
1184
|
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1160
1185
|
}
|
|
1161
1186
|
if (n === 0)
|
|
1162
1187
|
return emptyList();
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
}
|
|
1169
|
-
var count = 0;
|
|
1188
|
+
var size = _this__u8e3s4.m();
|
|
1189
|
+
if (n >= size)
|
|
1190
|
+
return toList_0(_this__u8e3s4);
|
|
1191
|
+
if (n === 1)
|
|
1192
|
+
return listOf(last_0(_this__u8e3s4));
|
|
1170
1193
|
var list = ArrayList_init_$Create$_0(n);
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1194
|
+
if (isInterface(_this__u8e3s4, RandomAccess)) {
|
|
1195
|
+
var inductionVariable = size - n | 0;
|
|
1196
|
+
if (inductionVariable < size)
|
|
1197
|
+
do {
|
|
1198
|
+
var index = inductionVariable;
|
|
1199
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1200
|
+
list.e(_this__u8e3s4.o(index));
|
|
1201
|
+
}
|
|
1202
|
+
while (inductionVariable < size);
|
|
1203
|
+
} else {
|
|
1204
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1205
|
+
var tmp1_iterator = _this__u8e3s4.q(size - n | 0);
|
|
1206
|
+
while (tmp1_iterator.k()) {
|
|
1207
|
+
var item = tmp1_iterator.l();
|
|
1208
|
+
list.e(item);
|
|
1209
|
+
}
|
|
1178
1210
|
}
|
|
1179
|
-
return
|
|
1211
|
+
return list;
|
|
1212
|
+
}
|
|
1213
|
+
function filterNotNull_0(_this__u8e3s4) {
|
|
1214
|
+
return filterNotNullTo_0(_this__u8e3s4, ArrayList_init_$Create$());
|
|
1180
1215
|
}
|
|
1181
1216
|
function filterNotNullTo_0(_this__u8e3s4, destination) {
|
|
1182
1217
|
var tmp0_iterator = _this__u8e3s4.j();
|
|
@@ -1213,41 +1248,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
1213
1248
|
}
|
|
1214
1249
|
return count;
|
|
1215
1250
|
}
|
|
1216
|
-
function takeLast(_this__u8e3s4, n) {
|
|
1217
|
-
// Inline function 'kotlin.require' call
|
|
1218
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1219
|
-
if (!(n >= 0)) {
|
|
1220
|
-
// Inline function 'kotlin.collections.takeLast.<anonymous>' call
|
|
1221
|
-
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
1222
|
-
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1223
|
-
}
|
|
1224
|
-
if (n === 0)
|
|
1225
|
-
return emptyList();
|
|
1226
|
-
var size = _this__u8e3s4.m();
|
|
1227
|
-
if (n >= size)
|
|
1228
|
-
return toList_0(_this__u8e3s4);
|
|
1229
|
-
if (n === 1)
|
|
1230
|
-
return listOf(last_0(_this__u8e3s4));
|
|
1231
|
-
var list = ArrayList_init_$Create$_0(n);
|
|
1232
|
-
if (isInterface(_this__u8e3s4, RandomAccess)) {
|
|
1233
|
-
var inductionVariable = size - n | 0;
|
|
1234
|
-
if (inductionVariable < size)
|
|
1235
|
-
do {
|
|
1236
|
-
var index = inductionVariable;
|
|
1237
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
1238
|
-
list.e(_this__u8e3s4.o(index));
|
|
1239
|
-
}
|
|
1240
|
-
while (inductionVariable < size);
|
|
1241
|
-
} else {
|
|
1242
|
-
// Inline function 'kotlin.collections.iterator' call
|
|
1243
|
-
var tmp1_iterator = _this__u8e3s4.q(size - n | 0);
|
|
1244
|
-
while (tmp1_iterator.k()) {
|
|
1245
|
-
var item = tmp1_iterator.l();
|
|
1246
|
-
list.e(item);
|
|
1247
|
-
}
|
|
1248
|
-
}
|
|
1249
|
-
return list;
|
|
1250
|
-
}
|
|
1251
1251
|
function _no_name_provided__qut3iv($this_asSequence) {
|
|
1252
1252
|
this.r_1 = $this_asSequence;
|
|
1253
1253
|
}
|