raspberry_games_server_game_logic 1.8.397 → 1.8.399
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/Kosi-Kaverit-kaverit.js +23 -23
- package/Kosi-Kodein-kodein-di.js +161 -161
- package/Kotlin-DateTime-library-kotlinx-datetime.js +170 -170
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-ai_module.js +2093 -0
- package/Logic_Debertz-ai_module.js.map +1 -0
- package/Logic_Debertz-core.js +1466 -1323
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +14335 -13706
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +34 -16
- package/Logic_Debertz-game_server.js +1620 -1566
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +2067 -2006
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +9 -9
- package/kotlinx-coroutines-core.js +696 -696
- package/kotlinx-io-kotlinx-io-core.js +41 -41
- package/kotlinx-serialization-kotlinx-serialization-core.js +196 -196
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +253 -253
- package/ktor-ktor-client-content-negotiation.js +89 -89
- package/ktor-ktor-client-core.js +1054 -1029
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +293 -288
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +5 -5
- package/ktor-ktor-http.js +164 -160
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +372 -372
- package/ktor-ktor-serialization-kotlinx.js +127 -127
- package/ktor-ktor-serialization.js +68 -68
- package/ktor-ktor-utils.js +278 -278
- package/ktor-ktor-websockets.js +15 -15
- package/package.json +1 -1
- package/random-library-crypto-rand.js +13 -13
- package/random-library-secure-random.js +5 -5
- package/raspberry-cardgame-lib-core.js +97 -97
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +12 -12
- package/raspberry-cardgame-lib-random.js +237 -237
- package/uuid.js +15 -15
- package/uuid.js.map +1 -1
|
@@ -21,29 +21,29 @@
|
|
|
21
21
|
}(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_io, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
|
|
22
22
|
'use strict';
|
|
23
23
|
//region block: imports
|
|
24
|
-
var Exception = kotlin_kotlin.$_$.
|
|
24
|
+
var Exception = kotlin_kotlin.$_$.fh;
|
|
25
25
|
var VOID = kotlin_kotlin.$_$.b;
|
|
26
26
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.g1;
|
|
27
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
28
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
29
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
27
|
+
var captureStack = kotlin_kotlin.$_$.ub;
|
|
28
|
+
var protoOf = kotlin_kotlin.$_$.kd;
|
|
29
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kc;
|
|
30
30
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
31
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
32
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
31
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.nc;
|
|
32
|
+
var ensureNotNull = kotlin_kotlin.$_$.ei;
|
|
33
33
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
|
|
34
34
|
var HttpHeaders_getInstance = kotlin_io_ktor_ktor_http.$_$.e;
|
|
35
|
-
var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.
|
|
35
|
+
var parseAndSortHeader = kotlin_io_ktor_ktor_http.$_$.i1;
|
|
36
36
|
var Companion_instance = kotlin_io_ktor_ktor_io.$_$.f;
|
|
37
|
-
var equals = kotlin_kotlin.$_$.
|
|
38
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
39
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
37
|
+
var equals = kotlin_kotlin.$_$.dc;
|
|
38
|
+
var FunctionAdapter = kotlin_kotlin.$_$.qb;
|
|
39
|
+
var isInterface = kotlin_kotlin.$_$.yc;
|
|
40
40
|
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.s;
|
|
41
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
42
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
43
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
44
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
45
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
46
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
41
|
+
var hashCode = kotlin_kotlin.$_$.jc;
|
|
42
|
+
var CoroutineImpl = kotlin_kotlin.$_$.qa;
|
|
43
|
+
var THROW_CCE = kotlin_kotlin.$_$.nh;
|
|
44
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ba;
|
|
45
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.oc;
|
|
46
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.mc;
|
|
47
47
|
var Flow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.t;
|
|
48
48
|
var asFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.v;
|
|
49
49
|
var firstOrNull = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.c;
|
|
@@ -103,9 +103,9 @@
|
|
|
103
103
|
}
|
|
104
104
|
function deserialize(_this__u8e3s4, body, typeInfo, charset, $completion) {
|
|
105
105
|
var tmp = new $deserializeCOROUTINE$(_this__u8e3s4, body, typeInfo, charset, $completion);
|
|
106
|
-
tmp.
|
|
107
|
-
tmp.
|
|
108
|
-
return tmp.
|
|
106
|
+
tmp.u8_1 = Unit_instance;
|
|
107
|
+
tmp.v8_1 = null;
|
|
108
|
+
return tmp.a9();
|
|
109
109
|
}
|
|
110
110
|
function suitableCharset(_this__u8e3s4, defaultCharset) {
|
|
111
111
|
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().v31_1 : defaultCharset;
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
defaultCharset = defaultCharset === VOID ? Charsets_getInstance().v31_1 : defaultCharset;
|
|
117
117
|
var tmp0_iterator = parseAndSortHeader(_this__u8e3s4.t1b(HttpHeaders_getInstance().k3f_1)).l();
|
|
118
118
|
while (tmp0_iterator.m()) {
|
|
119
|
-
var charset = tmp0_iterator.n().
|
|
119
|
+
var charset = tmp0_iterator.n().oe();
|
|
120
120
|
if (charset === '*')
|
|
121
121
|
return defaultCharset;
|
|
122
122
|
else if (Companion_instance.w34(charset))
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).n28 = function (value, $completion) {
|
|
131
131
|
return this.i4v_1(value, $completion);
|
|
132
132
|
};
|
|
133
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
133
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).b3 = function () {
|
|
134
134
|
return this.i4v_1;
|
|
135
135
|
};
|
|
136
136
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
139
139
|
var tmp_0;
|
|
140
140
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
141
|
-
tmp_0 = equals(this.
|
|
141
|
+
tmp_0 = equals(this.b3(), other.b3());
|
|
142
142
|
} else {
|
|
143
143
|
tmp_0 = false;
|
|
144
144
|
}
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
return tmp;
|
|
150
150
|
};
|
|
151
151
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
|
|
152
|
-
return hashCode(this.
|
|
152
|
+
return hashCode(this.b3());
|
|
153
153
|
};
|
|
154
154
|
function deserialize$o$collect$slambda($$this$unsafeFlow, $charset, $typeInfo, $body, resultContinuation) {
|
|
155
155
|
this.r4v_1 = $$this$unsafeFlow;
|
|
@@ -160,25 +160,25 @@
|
|
|
160
160
|
}
|
|
161
161
|
protoOf(deserialize$o$collect$slambda).w2h = function (value, $completion) {
|
|
162
162
|
var tmp = this.x2h(value, $completion);
|
|
163
|
-
tmp.
|
|
164
|
-
tmp.
|
|
165
|
-
return tmp.
|
|
163
|
+
tmp.u8_1 = Unit_instance;
|
|
164
|
+
tmp.v8_1 = null;
|
|
165
|
+
return tmp.a9();
|
|
166
166
|
};
|
|
167
|
-
protoOf(deserialize$o$collect$slambda).
|
|
167
|
+
protoOf(deserialize$o$collect$slambda).i9 = function (p1, $completion) {
|
|
168
168
|
return this.w2h((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
169
169
|
};
|
|
170
|
-
protoOf(deserialize$o$collect$slambda).
|
|
171
|
-
var suspendResult = this.
|
|
170
|
+
protoOf(deserialize$o$collect$slambda).a9 = function () {
|
|
171
|
+
var suspendResult = this.u8_1;
|
|
172
172
|
$sm: do
|
|
173
173
|
try {
|
|
174
|
-
var tmp = this.
|
|
174
|
+
var tmp = this.s8_1;
|
|
175
175
|
switch (tmp) {
|
|
176
176
|
case 0:
|
|
177
|
-
this.
|
|
177
|
+
this.t8_1 = 3;
|
|
178
178
|
var tmp0 = this.r4v_1;
|
|
179
179
|
var tmp2 = this.v4v_1;
|
|
180
180
|
this.w4v_1 = tmp0;
|
|
181
|
-
this.
|
|
181
|
+
this.s8_1 = 1;
|
|
182
182
|
suspendResult = tmp2.v4u(this.s4v_1, this.t4v_1, this.u4v_1, this);
|
|
183
183
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
184
184
|
return suspendResult;
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
continue $sm;
|
|
188
188
|
case 1:
|
|
189
189
|
var ARGUMENT = suspendResult;
|
|
190
|
-
this.
|
|
190
|
+
this.s8_1 = 2;
|
|
191
191
|
suspendResult = this.w4v_1.n28(ARGUMENT, this);
|
|
192
192
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
193
193
|
return suspendResult;
|
|
@@ -197,15 +197,15 @@
|
|
|
197
197
|
case 2:
|
|
198
198
|
return Unit_instance;
|
|
199
199
|
case 3:
|
|
200
|
-
throw this.
|
|
200
|
+
throw this.v8_1;
|
|
201
201
|
}
|
|
202
202
|
} catch ($p) {
|
|
203
203
|
var e = $p;
|
|
204
|
-
if (this.
|
|
204
|
+
if (this.t8_1 === 3) {
|
|
205
205
|
throw e;
|
|
206
206
|
} else {
|
|
207
|
-
this.
|
|
208
|
-
this.
|
|
207
|
+
this.s8_1 = this.t8_1;
|
|
208
|
+
this.v8_1 = e;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
while (true);
|
|
@@ -228,16 +228,16 @@
|
|
|
228
228
|
this.f4w_1 = _this__u8e3s4;
|
|
229
229
|
this.g4w_1 = collector;
|
|
230
230
|
}
|
|
231
|
-
protoOf($collectCOROUTINE$).
|
|
232
|
-
var suspendResult = this.
|
|
231
|
+
protoOf($collectCOROUTINE$).a9 = function () {
|
|
232
|
+
var suspendResult = this.u8_1;
|
|
233
233
|
$sm: do
|
|
234
234
|
try {
|
|
235
|
-
var tmp = this.
|
|
235
|
+
var tmp = this.s8_1;
|
|
236
236
|
switch (tmp) {
|
|
237
237
|
case 0:
|
|
238
|
-
this.
|
|
238
|
+
this.t8_1 = 2;
|
|
239
239
|
var $this$unsafeFlow = this.g4w_1;
|
|
240
|
-
this.
|
|
240
|
+
this.s8_1 = 1;
|
|
241
241
|
var tmp_0 = deserialize$o$collect$slambda_0($this$unsafeFlow, this.f4w_1.i4w_1, this.f4w_1.j4w_1, this.f4w_1.k4w_1, null);
|
|
242
242
|
suspendResult = this.f4w_1.h4w_1.n27(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
|
|
243
243
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -248,15 +248,15 @@
|
|
|
248
248
|
case 1:
|
|
249
249
|
return Unit_instance;
|
|
250
250
|
case 2:
|
|
251
|
-
throw this.
|
|
251
|
+
throw this.v8_1;
|
|
252
252
|
}
|
|
253
253
|
} catch ($p) {
|
|
254
254
|
var e = $p;
|
|
255
|
-
if (this.
|
|
255
|
+
if (this.t8_1 === 2) {
|
|
256
256
|
throw e;
|
|
257
257
|
} else {
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
258
|
+
this.s8_1 = this.t8_1;
|
|
259
|
+
this.v8_1 = e;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
while (true);
|
|
@@ -269,9 +269,9 @@
|
|
|
269
269
|
}
|
|
270
270
|
protoOf(deserialize$$inlined$map$1).o28 = function (collector, $completion) {
|
|
271
271
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
272
|
-
tmp.
|
|
273
|
-
tmp.
|
|
274
|
-
return tmp.
|
|
272
|
+
tmp.u8_1 = Unit_instance;
|
|
273
|
+
tmp.v8_1 = null;
|
|
274
|
+
return tmp.a9();
|
|
275
275
|
};
|
|
276
276
|
protoOf(deserialize$$inlined$map$1).n27 = function (collector, $completion) {
|
|
277
277
|
return this.o28(collector, $completion);
|
|
@@ -282,23 +282,23 @@
|
|
|
282
282
|
}
|
|
283
283
|
protoOf(deserialize$slambda).v4w = function (it, $completion) {
|
|
284
284
|
var tmp = this.x2h(it, $completion);
|
|
285
|
-
tmp.
|
|
286
|
-
tmp.
|
|
287
|
-
return tmp.
|
|
285
|
+
tmp.u8_1 = Unit_instance;
|
|
286
|
+
tmp.v8_1 = null;
|
|
287
|
+
return tmp.a9();
|
|
288
288
|
};
|
|
289
|
-
protoOf(deserialize$slambda).
|
|
289
|
+
protoOf(deserialize$slambda).i9 = function (p1, $completion) {
|
|
290
290
|
return this.v4w((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
291
291
|
};
|
|
292
|
-
protoOf(deserialize$slambda).
|
|
293
|
-
var suspendResult = this.
|
|
292
|
+
protoOf(deserialize$slambda).a9 = function () {
|
|
293
|
+
var suspendResult = this.u8_1;
|
|
294
294
|
$sm: do
|
|
295
295
|
try {
|
|
296
|
-
var tmp = this.
|
|
296
|
+
var tmp = this.s8_1;
|
|
297
297
|
if (tmp === 0) {
|
|
298
|
-
this.
|
|
298
|
+
this.t8_1 = 1;
|
|
299
299
|
return !(this.u4w_1 == null) || this.t4w_1.s2r();
|
|
300
300
|
} else if (tmp === 1) {
|
|
301
|
-
throw this.
|
|
301
|
+
throw this.v8_1;
|
|
302
302
|
}
|
|
303
303
|
} catch ($p) {
|
|
304
304
|
var e = $p;
|
|
@@ -326,15 +326,15 @@
|
|
|
326
326
|
this.g4v_1 = typeInfo;
|
|
327
327
|
this.h4v_1 = charset;
|
|
328
328
|
}
|
|
329
|
-
protoOf($deserializeCOROUTINE$).
|
|
330
|
-
var suspendResult = this.
|
|
329
|
+
protoOf($deserializeCOROUTINE$).a9 = function () {
|
|
330
|
+
var suspendResult = this.u8_1;
|
|
331
331
|
$sm: do
|
|
332
332
|
try {
|
|
333
|
-
var tmp = this.
|
|
333
|
+
var tmp = this.s8_1;
|
|
334
334
|
switch (tmp) {
|
|
335
335
|
case 0:
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
336
|
+
this.t8_1 = 2;
|
|
337
|
+
this.s8_1 = 1;
|
|
338
338
|
var this_0 = asFlow(this.e4v_1);
|
|
339
339
|
var tmp_0 = new deserialize$$inlined$map$1(this_0, this.h4v_1, this.g4v_1, this.f4v_1);
|
|
340
340
|
suspendResult = firstOrNull(tmp_0, deserialize$slambda_0(this.f4v_1, null), this);
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
tmp_1 = this.f4v_1;
|
|
354
354
|
} else {
|
|
355
355
|
var tmp0_safe_receiver = this.g4v_1.h3d_1;
|
|
356
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
356
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.ta()) === true) {
|
|
357
357
|
tmp_1 = NullBody_instance;
|
|
358
358
|
} else {
|
|
359
359
|
throw new ContentConvertException('No suitable converter found for ' + this.g4v_1.toString());
|
|
@@ -363,15 +363,15 @@
|
|
|
363
363
|
|
|
364
364
|
return tmp_1;
|
|
365
365
|
case 2:
|
|
366
|
-
throw this.
|
|
366
|
+
throw this.v8_1;
|
|
367
367
|
}
|
|
368
368
|
} catch ($p) {
|
|
369
369
|
var e = $p;
|
|
370
|
-
if (this.
|
|
370
|
+
if (this.t8_1 === 2) {
|
|
371
371
|
throw e;
|
|
372
372
|
} else {
|
|
373
|
-
this.
|
|
374
|
-
this.
|
|
373
|
+
this.s8_1 = this.t8_1;
|
|
374
|
+
this.v8_1 = e;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
while (true);
|