game_client_logic_deb 1.8.305 → 1.8.314
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 +78 -78
- package/Kosi-Kodein-kodein-di.js +647 -647
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1508 -1508
- package/Logic_Debertz-core.js +2240 -2211
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +15420 -15313
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +22 -15
- package/Logic_Debertz-game_client.js +5382 -4785
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2877 -2635
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-coroutines-core.js +2851 -2851
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +362 -362
- package/kotlinx-serialization-kotlinx-serialization-core.js +2038 -2038
- package/kotlinx-serialization-kotlinx-serialization-json.js +1569 -1569
- package/ktor-ktor-client-content-negotiation.js +219 -219
- package/ktor-ktor-client-core.js +2528 -2528
- package/ktor-ktor-client-logging.js +553 -553
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +762 -762
- package/ktor-ktor-io.js +1659 -1659
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +271 -271
- package/ktor-ktor-serialization.js +130 -130
- package/ktor-ktor-utils.js +741 -741
- package/ktor-ktor-websockets.js +60 -60
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +339 -316
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +102 -102
- package/raspberry-cardgame-lib-random.js +1042 -1017
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +18 -18
- package/uuid.js +33 -33
package/ktor-ktor-websockets.js
CHANGED
|
@@ -16,26 +16,26 @@
|
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
|
-
var mapCapacity = kotlin_kotlin.$_$.
|
|
20
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
19
|
+
var mapCapacity = kotlin_kotlin.$_$.s8;
|
|
20
|
+
var coerceAtLeast = kotlin_kotlin.$_$.fd;
|
|
21
21
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.v;
|
|
22
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
23
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
24
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
25
|
-
var Enum = kotlin_kotlin.$_$.
|
|
26
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
22
|
+
var Unit_instance = kotlin_kotlin.$_$.q5;
|
|
23
|
+
var protoOf = kotlin_kotlin.$_$.wc;
|
|
24
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.wb;
|
|
25
|
+
var Enum = kotlin_kotlin.$_$.jg;
|
|
26
|
+
var initMetadataForClass = kotlin_kotlin.$_$.vb;
|
|
27
27
|
var VOID = kotlin_kotlin.$_$.f;
|
|
28
|
-
var toString = kotlin_kotlin.$_$.
|
|
29
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
30
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
32
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
33
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
34
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
35
|
-
var fillArrayVal = kotlin_kotlin.$_$.
|
|
36
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
28
|
+
var toString = kotlin_kotlin.$_$.ad;
|
|
29
|
+
var getStringHashCode = kotlin_kotlin.$_$.tb;
|
|
30
|
+
var THROW_CCE = kotlin_kotlin.$_$.ug;
|
|
31
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ac;
|
|
32
|
+
var get_lastIndex = kotlin_kotlin.$_$.k8;
|
|
33
|
+
var compareTo = kotlin_kotlin.$_$.lb;
|
|
34
|
+
var ensureNotNull = kotlin_kotlin.$_$.lh;
|
|
35
|
+
var fillArrayVal = kotlin_kotlin.$_$.pb;
|
|
36
|
+
var objectCreate = kotlin_kotlin.$_$.vc;
|
|
37
37
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
|
|
38
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
38
|
+
var encodeToByteArray = kotlin_kotlin.$_$.de;
|
|
39
39
|
var encodeToByteArray_0 = kotlin_io_ktor_ktor_io.$_$.k;
|
|
40
40
|
var BytePacketBuilder = kotlin_io_ktor_ktor_io.$_$.q;
|
|
41
41
|
var writeShort = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
@@ -81,14 +81,14 @@
|
|
|
81
81
|
var element = this_0[inductionVariable];
|
|
82
82
|
inductionVariable = inductionVariable + 1 | 0;
|
|
83
83
|
// Inline function 'io.ktor.websocket.Companion.byCodeMap.<anonymous>' call
|
|
84
|
-
var tmp$ret$0 = element.
|
|
85
|
-
destination.
|
|
84
|
+
var tmp$ret$0 = element.j2p_1;
|
|
85
|
+
destination.n2(tmp$ret$0, element);
|
|
86
86
|
}
|
|
87
|
-
tmp.
|
|
88
|
-
this.
|
|
87
|
+
tmp.k2p_1 = destination;
|
|
88
|
+
this.l2p_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
89
89
|
}
|
|
90
|
-
protoOf(Companion).
|
|
91
|
-
return this.
|
|
90
|
+
protoOf(Companion).m2p = function (code) {
|
|
91
|
+
return this.k2p_1.k2(code);
|
|
92
92
|
};
|
|
93
93
|
var Companion_instance;
|
|
94
94
|
function Companion_getInstance() {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
function Codes(name, ordinal, code) {
|
|
123
123
|
Enum.call(this, name, ordinal);
|
|
124
|
-
this.
|
|
124
|
+
this.j2p_1 = code;
|
|
125
125
|
}
|
|
126
126
|
function Codes_NORMAL_getInstance() {
|
|
127
127
|
Codes_initEntries();
|
|
@@ -172,19 +172,19 @@
|
|
|
172
172
|
return Codes_TRY_AGAIN_LATER_instance;
|
|
173
173
|
}
|
|
174
174
|
function CloseReason(code, message) {
|
|
175
|
-
this.
|
|
176
|
-
this.
|
|
175
|
+
this.n2p_1 = code;
|
|
176
|
+
this.o2p_1 = message;
|
|
177
177
|
}
|
|
178
|
-
protoOf(CloseReason).
|
|
179
|
-
return Companion_getInstance().
|
|
178
|
+
protoOf(CloseReason).p2p = function () {
|
|
179
|
+
return Companion_getInstance().m2p(this.n2p_1);
|
|
180
180
|
};
|
|
181
181
|
protoOf(CloseReason).toString = function () {
|
|
182
|
-
var tmp0_elvis_lhs = this.
|
|
183
|
-
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.
|
|
182
|
+
var tmp0_elvis_lhs = this.p2p();
|
|
183
|
+
return 'CloseReason(reason=' + toString(tmp0_elvis_lhs == null ? this.n2p_1 : tmp0_elvis_lhs) + ', message=' + this.o2p_1 + ')';
|
|
184
184
|
};
|
|
185
185
|
protoOf(CloseReason).hashCode = function () {
|
|
186
|
-
var result = this.
|
|
187
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
186
|
+
var result = this.n2p_1;
|
|
187
|
+
result = imul(result, 31) + getStringHashCode(this.o2p_1) | 0;
|
|
188
188
|
return result;
|
|
189
189
|
};
|
|
190
190
|
protoOf(CloseReason).equals = function (other) {
|
|
@@ -193,15 +193,15 @@
|
|
|
193
193
|
if (!(other instanceof CloseReason))
|
|
194
194
|
return false;
|
|
195
195
|
var tmp0_other_with_cast = other instanceof CloseReason ? other : THROW_CCE();
|
|
196
|
-
if (!(this.
|
|
196
|
+
if (!(this.n2p_1 === tmp0_other_with_cast.n2p_1))
|
|
197
197
|
return false;
|
|
198
|
-
if (!(this.
|
|
198
|
+
if (!(this.o2p_1 === tmp0_other_with_cast.o2p_1))
|
|
199
199
|
return false;
|
|
200
200
|
return true;
|
|
201
201
|
};
|
|
202
202
|
function NonDisposableHandle() {
|
|
203
203
|
}
|
|
204
|
-
protoOf(NonDisposableHandle).
|
|
204
|
+
protoOf(NonDisposableHandle).ur = function () {
|
|
205
205
|
};
|
|
206
206
|
protoOf(NonDisposableHandle).toString = function () {
|
|
207
207
|
return 'NonDisposableHandle';
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
break $l$block_0;
|
|
235
235
|
}
|
|
236
236
|
// Inline function 'io.ktor.websocket.Companion.maxOpcode.<anonymous>' call
|
|
237
|
-
var maxValue = maxElem.
|
|
237
|
+
var maxValue = maxElem.t2p_1;
|
|
238
238
|
var inductionVariable = 1;
|
|
239
239
|
if (inductionVariable <= lastIndex)
|
|
240
240
|
do {
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
inductionVariable = inductionVariable + 1 | 0;
|
|
243
243
|
var e = this_0[i];
|
|
244
244
|
// Inline function 'io.ktor.websocket.Companion.maxOpcode.<anonymous>' call
|
|
245
|
-
var v = e.
|
|
245
|
+
var v = e.t2p_1;
|
|
246
246
|
if (compareTo(maxValue, v) < 0) {
|
|
247
247
|
maxElem = e;
|
|
248
248
|
maxValue = v;
|
|
@@ -251,10 +251,10 @@
|
|
|
251
251
|
while (!(i === lastIndex));
|
|
252
252
|
tmp$ret$1 = maxElem;
|
|
253
253
|
}
|
|
254
|
-
tmp.
|
|
254
|
+
tmp.u2p_1 = ensureNotNull(tmp$ret$1).t2p_1;
|
|
255
255
|
var tmp_0 = this;
|
|
256
256
|
var tmp_1 = 0;
|
|
257
|
-
var tmp_2 = this.
|
|
257
|
+
var tmp_2 = this.u2p_1 + 1 | 0;
|
|
258
258
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
259
259
|
var tmp_3 = fillArrayVal(Array(tmp_2), null);
|
|
260
260
|
while (tmp_1 < tmp_2) {
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
var element = indexedObject[inductionVariable_0];
|
|
272
272
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
273
273
|
// Inline function 'io.ktor.websocket.Companion.byOpcodeArray.<anonymous>' call
|
|
274
|
-
if (element.
|
|
274
|
+
if (element.t2p_1 === tmp_4) {
|
|
275
275
|
if (found) {
|
|
276
276
|
tmp$ret$6 = null;
|
|
277
277
|
break $l$block_2;
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
tmp_3[tmp_4] = tmp$ret$6;
|
|
290
290
|
tmp_1 = tmp_1 + 1 | 0;
|
|
291
291
|
}
|
|
292
|
-
tmp_0.
|
|
292
|
+
tmp_0.v2p_1 = tmp_3;
|
|
293
293
|
}
|
|
294
294
|
var Companion_instance_0;
|
|
295
295
|
function Companion_getInstance_0() {
|
|
@@ -315,8 +315,8 @@
|
|
|
315
315
|
}
|
|
316
316
|
function FrameType(name, ordinal, controlFrame, opcode) {
|
|
317
317
|
Enum.call(this, name, ordinal);
|
|
318
|
-
this.
|
|
319
|
-
this.
|
|
318
|
+
this.s2p_1 = controlFrame;
|
|
319
|
+
this.t2p_1 = opcode;
|
|
320
320
|
}
|
|
321
321
|
function FrameType_TEXT_getInstance() {
|
|
322
322
|
FrameType_initEntries();
|
|
@@ -353,12 +353,12 @@
|
|
|
353
353
|
var tmp$ret$0;
|
|
354
354
|
$l$block: {
|
|
355
355
|
// Inline function 'io.ktor.utils.io.core.toByteArray' call
|
|
356
|
-
var charset = Charsets_getInstance().
|
|
357
|
-
if (charset.equals(Charsets_getInstance().
|
|
356
|
+
var charset = Charsets_getInstance().m21_1;
|
|
357
|
+
if (charset.equals(Charsets_getInstance().m21_1)) {
|
|
358
358
|
tmp$ret$0 = encodeToByteArray(text);
|
|
359
359
|
break $l$block;
|
|
360
360
|
}
|
|
361
|
-
tmp$ret$0 = encodeToByteArray_0(charset.
|
|
361
|
+
tmp$ret$0 = encodeToByteArray_0(charset.q21(), text, 0, text.length);
|
|
362
362
|
}
|
|
363
363
|
Text_init_$Init$(true, tmp$ret$0, $this);
|
|
364
364
|
return $this;
|
|
@@ -374,14 +374,14 @@
|
|
|
374
374
|
var builder = new BytePacketBuilder();
|
|
375
375
|
try {
|
|
376
376
|
// Inline function 'io.ktor.websocket.Close.<init>.<anonymous>' call
|
|
377
|
-
writeShort(builder, reason.
|
|
378
|
-
writeText(builder, reason.
|
|
379
|
-
tmp$ret$0 = builder.
|
|
377
|
+
writeShort(builder, reason.n2p_1);
|
|
378
|
+
writeText(builder, reason.o2p_1);
|
|
379
|
+
tmp$ret$0 = builder.g1u();
|
|
380
380
|
break $l$block;
|
|
381
381
|
} catch ($p) {
|
|
382
382
|
if ($p instanceof Error) {
|
|
383
383
|
var t = $p;
|
|
384
|
-
builder.
|
|
384
|
+
builder.q1l();
|
|
385
385
|
throw t;
|
|
386
386
|
} else {
|
|
387
387
|
throw $p;
|
|
@@ -399,7 +399,7 @@
|
|
|
399
399
|
return $this;
|
|
400
400
|
}
|
|
401
401
|
function Close_init_$Init$_1($this) {
|
|
402
|
-
Close.call($this, Companion_getInstance_1().
|
|
402
|
+
Close.call($this, Companion_getInstance_1().w2p_1);
|
|
403
403
|
return $this;
|
|
404
404
|
}
|
|
405
405
|
function Close_init_$Create$_0() {
|
|
@@ -422,7 +422,7 @@
|
|
|
422
422
|
}
|
|
423
423
|
function Companion_1() {
|
|
424
424
|
Companion_instance_1 = this;
|
|
425
|
-
this.
|
|
425
|
+
this.w2p_1 = new Int8Array(0);
|
|
426
426
|
}
|
|
427
427
|
var Companion_instance_1;
|
|
428
428
|
function Companion_getInstance_1() {
|
|
@@ -436,16 +436,16 @@
|
|
|
436
436
|
rsv1 = rsv1 === VOID ? false : rsv1;
|
|
437
437
|
rsv2 = rsv2 === VOID ? false : rsv2;
|
|
438
438
|
rsv3 = rsv3 === VOID ? false : rsv3;
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
443
|
-
this.
|
|
444
|
-
this.
|
|
445
|
-
this.
|
|
439
|
+
this.x2p_1 = fin;
|
|
440
|
+
this.y2p_1 = frameType;
|
|
441
|
+
this.z2p_1 = data;
|
|
442
|
+
this.a2q_1 = disposableHandle;
|
|
443
|
+
this.b2q_1 = rsv1;
|
|
444
|
+
this.c2q_1 = rsv2;
|
|
445
|
+
this.d2q_1 = rsv3;
|
|
446
446
|
}
|
|
447
447
|
protoOf(Frame).toString = function () {
|
|
448
|
-
return 'Frame ' + this.
|
|
448
|
+
return 'Frame ' + this.y2p_1.toString() + ' (fin=' + this.x2p_1 + ', buffer len = ' + this.z2p_1.length + ')';
|
|
449
449
|
};
|
|
450
450
|
//region block: init
|
|
451
451
|
NonDisposableHandle_instance = new NonDisposableHandle();
|