raspberry_games_server_game_logic 1.8.397 → 1.8.398
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 +171 -171
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-ai_module.js +1944 -0
- package/Logic_Debertz-ai_module.js.map +1 -0
- package/Logic_Debertz-core.js +385 -385
- package/Logic_Debertz-engine.js +13842 -13243
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +5 -3
- package/Logic_Debertz-game_server.js +1451 -1451
- package/Logic_Debertz-game_server.js.map +1 -1
- package/error-library-error.js +5 -5
- package/kotlin-kotlin-stdlib.js +2065 -2004
- 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
package/ktor-ktor-websockets.js
CHANGED
|
@@ -17,24 +17,24 @@
|
|
|
17
17
|
//region block: imports
|
|
18
18
|
var imul = Math.imul;
|
|
19
19
|
var mapCapacity = kotlin_kotlin.$_$.h8;
|
|
20
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
20
|
+
var coerceAtLeast = kotlin_kotlin.$_$.sd;
|
|
21
21
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
22
22
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
23
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
24
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
25
|
-
var Enum = kotlin_kotlin.$_$.
|
|
26
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
23
|
+
var protoOf = kotlin_kotlin.$_$.kd;
|
|
24
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.lc;
|
|
25
|
+
var Enum = kotlin_kotlin.$_$.dh;
|
|
26
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kc;
|
|
27
27
|
var VOID = kotlin_kotlin.$_$.b;
|
|
28
|
-
var toString = kotlin_kotlin.$_$.
|
|
29
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
30
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
31
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
28
|
+
var toString = kotlin_kotlin.$_$.nd;
|
|
29
|
+
var getStringHashCode = kotlin_kotlin.$_$.ic;
|
|
30
|
+
var THROW_CCE = kotlin_kotlin.$_$.nh;
|
|
31
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pc;
|
|
32
32
|
var get_lastIndex = kotlin_kotlin.$_$.z7;
|
|
33
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
34
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
35
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
33
|
+
var compareTo = kotlin_kotlin.$_$.bc;
|
|
34
|
+
var ensureNotNull = kotlin_kotlin.$_$.ei;
|
|
35
|
+
var objectCreate = kotlin_kotlin.$_$.jd;
|
|
36
36
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
|
|
37
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
37
|
+
var encodeToByteArray = kotlin_kotlin.$_$.ve;
|
|
38
38
|
var encodeToByteArray_0 = kotlin_io_ktor_ktor_io.$_$.k;
|
|
39
39
|
var BytePacketBuilder = kotlin_io_ktor_ktor_io.$_$.q;
|
|
40
40
|
var writeShort = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
@@ -80,13 +80,13 @@
|
|
|
80
80
|
var element = this_0[inductionVariable];
|
|
81
81
|
inductionVariable = inductionVariable + 1 | 0;
|
|
82
82
|
var tmp$ret$0 = element.l3p_1;
|
|
83
|
-
destination.
|
|
83
|
+
destination.f2(tmp$ret$0, element);
|
|
84
84
|
}
|
|
85
85
|
tmp.m3p_1 = destination;
|
|
86
86
|
this.n3p_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
87
87
|
}
|
|
88
88
|
protoOf(Companion).o3p = function (code) {
|
|
89
|
-
return this.m3p_1.
|
|
89
|
+
return this.m3p_1.c2(code);
|
|
90
90
|
};
|
|
91
91
|
var Companion_instance;
|
|
92
92
|
function Companion_getInstance() {
|
package/package.json
CHANGED
|
@@ -15,22 +15,22 @@
|
|
|
15
15
|
}(function (_, kotlin_kotlin, kotlin_org_kotlincrypto_error) {
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
19
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
18
|
+
var protoOf = kotlin_kotlin.$_$.kd;
|
|
19
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pc;
|
|
20
20
|
var VOID = kotlin_kotlin.$_$.b;
|
|
21
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
21
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kc;
|
|
22
22
|
var GeneralSecurityException_init_$Init$ = kotlin_org_kotlincrypto_error.$_$.a;
|
|
23
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
24
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
23
|
+
var objectCreate = kotlin_kotlin.$_$.jd;
|
|
24
|
+
var captureStack = kotlin_kotlin.$_$.ub;
|
|
25
25
|
var GeneralSecurityException_init_$Init$_0 = kotlin_org_kotlincrypto_error.$_$.b;
|
|
26
26
|
var GeneralSecurityException = kotlin_org_kotlincrypto_error.$_$.c;
|
|
27
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
28
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
29
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
30
|
-
var isNumber = kotlin_kotlin.$_$.
|
|
31
|
-
var numberToByte = kotlin_kotlin.$_$.
|
|
27
|
+
var KProperty0 = kotlin_kotlin.$_$.ie;
|
|
28
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.hc;
|
|
29
|
+
var THROW_CCE = kotlin_kotlin.$_$.nh;
|
|
30
|
+
var isNumber = kotlin_kotlin.$_$.ad;
|
|
31
|
+
var numberToByte = kotlin_kotlin.$_$.gd;
|
|
32
32
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
33
|
-
var lazy = kotlin_kotlin.$_$.
|
|
33
|
+
var lazy = kotlin_kotlin.$_$.ki;
|
|
34
34
|
//endregion
|
|
35
35
|
//region block: pre-declaration
|
|
36
36
|
initMetadataForClass(CryptoRand, 'CryptoRand');
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
var tmp = KProperty0;
|
|
90
90
|
// Inline function 'kotlin.getValue' call
|
|
91
91
|
getPropertyCallableRef('IS_NODE_JS', 0, tmp, _get_IS_NODE_JS_$ref_kwtwqf(), null);
|
|
92
|
-
return tmp0.
|
|
92
|
+
return tmp0.x();
|
|
93
93
|
}
|
|
94
94
|
var IS_NODE_JS$delegate;
|
|
95
95
|
function get_CRYPTO() {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
var tmp = KProperty0;
|
|
99
99
|
// Inline function 'kotlin.getValue' call
|
|
100
100
|
getPropertyCallableRef('CRYPTO', 0, tmp, _get_CRYPTO_$ref_mho5uv(), null);
|
|
101
|
-
return tmp0.
|
|
101
|
+
return tmp0.x();
|
|
102
102
|
}
|
|
103
103
|
var CRYPTO$delegate;
|
|
104
104
|
function isNodeJs() {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.x1;
|
|
19
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
20
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
21
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.kd;
|
|
20
|
+
var objectCreate = kotlin_kotlin.$_$.jd;
|
|
21
|
+
var captureStack = kotlin_kotlin.$_$.ub;
|
|
22
22
|
var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.y1;
|
|
23
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
24
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
23
|
+
var RuntimeException = kotlin_kotlin.$_$.mh;
|
|
24
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kc;
|
|
25
25
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
26
26
|
var Default_getInstance = kotlin_org_kotlincrypto_random_crypto_rand.$_$.a;
|
|
27
27
|
var RandomnessProcurementException = kotlin_org_kotlincrypto_random_crypto_rand.$_$.b;
|
|
@@ -19,64 +19,64 @@
|
|
|
19
19
|
'use strict';
|
|
20
20
|
//region block: imports
|
|
21
21
|
var imul = Math.imul;
|
|
22
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
23
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
24
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
22
|
+
var protoOf = kotlin_kotlin.$_$.kd;
|
|
23
|
+
var initMetadataForObject = kotlin_kotlin.$_$.pc;
|
|
24
|
+
var defineProp = kotlin_kotlin.$_$.cc;
|
|
25
25
|
var VOID = kotlin_kotlin.$_$.b;
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
28
|
-
var take = kotlin_kotlin.$_$.
|
|
29
|
-
var toList = kotlin_kotlin.$_$.
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.nh;
|
|
27
|
+
var Comparator = kotlin_kotlin.$_$.ah;
|
|
28
|
+
var take = kotlin_kotlin.$_$.i9;
|
|
29
|
+
var toList = kotlin_kotlin.$_$.m9;
|
|
30
30
|
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
31
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
31
|
+
var takeLast = kotlin_kotlin.$_$.h9;
|
|
32
32
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
33
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
34
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
33
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.li;
|
|
34
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.lc;
|
|
35
35
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
36
|
-
var Enum = kotlin_kotlin.$_$.
|
|
37
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
36
|
+
var Enum = kotlin_kotlin.$_$.dh;
|
|
37
|
+
var initMetadataForClass = kotlin_kotlin.$_$.kc;
|
|
38
38
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
39
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
39
|
+
var enumEntries = kotlin_kotlin.$_$.sa;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.ji;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.nc;
|
|
44
44
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.i6;
|
|
45
45
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.g;
|
|
46
46
|
var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
|
|
47
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
48
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
49
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
50
|
-
var Result = kotlin_kotlin.$_$.
|
|
47
|
+
var CoroutineImpl = kotlin_kotlin.$_$.qa;
|
|
48
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ba;
|
|
49
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.mc;
|
|
50
|
+
var Result = kotlin_kotlin.$_$.lh;
|
|
51
51
|
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.u2;
|
|
52
|
-
var throwOnFailure = kotlin_kotlin.$_$.
|
|
52
|
+
var throwOnFailure = kotlin_kotlin.$_$.pi;
|
|
53
53
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.x2;
|
|
54
54
|
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.w2;
|
|
55
55
|
var addAll = kotlin_kotlin.$_$.w5;
|
|
56
|
-
var until = kotlin_kotlin.$_$.
|
|
56
|
+
var until = kotlin_kotlin.$_$.be;
|
|
57
57
|
var count = kotlin_kotlin.$_$.z6;
|
|
58
58
|
var Collection = kotlin_kotlin.$_$.h5;
|
|
59
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.yc;
|
|
60
|
+
var toMutableList = kotlin_kotlin.$_$.q9;
|
|
61
61
|
var riffle = kotlin_io_raspberryapps_cardgame_random.$_$.l;
|
|
62
62
|
var overhand = kotlin_io_raspberryapps_cardgame_random.$_$.k;
|
|
63
63
|
var listOf = kotlin_kotlin.$_$.g8;
|
|
64
64
|
var first = kotlin_kotlin.$_$.l7;
|
|
65
|
-
var sorted = kotlin_kotlin.$_$.
|
|
65
|
+
var sorted = kotlin_kotlin.$_$.f9;
|
|
66
66
|
var asReversed = kotlin_kotlin.$_$.a6;
|
|
67
67
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w1;
|
|
68
|
-
var equals = kotlin_kotlin.$_$.
|
|
69
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
70
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
68
|
+
var equals = kotlin_kotlin.$_$.dc;
|
|
69
|
+
var FunctionAdapter = kotlin_kotlin.$_$.qb;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.jc;
|
|
71
71
|
var first_0 = kotlin_kotlin.$_$.k7;
|
|
72
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
73
|
-
var sortWith = kotlin_kotlin.$_$.
|
|
72
|
+
var compareValues = kotlin_kotlin.$_$.z9;
|
|
73
|
+
var sortWith = kotlin_kotlin.$_$.d9;
|
|
74
74
|
var lastOrNull = kotlin_kotlin.$_$.a8;
|
|
75
75
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
76
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
76
|
+
var sortedWith = kotlin_kotlin.$_$.e9;
|
|
77
77
|
var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.u1;
|
|
78
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
79
|
-
var toString = kotlin_kotlin.$_$.
|
|
78
|
+
var compareTo = kotlin_kotlin.$_$.bc;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.nd;
|
|
80
80
|
var dropLast = kotlin_kotlin.$_$.b7;
|
|
81
81
|
var plus = kotlin_kotlin.$_$.q8;
|
|
82
82
|
var minus = kotlin_kotlin.$_$.l8;
|
|
@@ -163,12 +163,12 @@
|
|
|
163
163
|
}
|
|
164
164
|
function distributeCardsBottom(_this__u8e3s4, count) {
|
|
165
165
|
var cardsToDeal = toList(take(_this__u8e3s4, count));
|
|
166
|
-
_this__u8e3s4.
|
|
166
|
+
_this__u8e3s4.l2(cardsToDeal);
|
|
167
167
|
return cardsToDeal;
|
|
168
168
|
}
|
|
169
169
|
function distributeCardsTop(_this__u8e3s4, count) {
|
|
170
170
|
var cardsToDeal = toList(takeLast(_this__u8e3s4, count));
|
|
171
|
-
_this__u8e3s4.
|
|
171
|
+
_this__u8e3s4.l2(cardsToDeal);
|
|
172
172
|
return cardsToDeal;
|
|
173
173
|
}
|
|
174
174
|
function filterByCardName(_this__u8e3s4, name) {
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
while (inductionVariable < last) {
|
|
200
200
|
var element = tmp0[inductionVariable];
|
|
201
201
|
inductionVariable = inductionVariable + 1 | 0;
|
|
202
|
-
if (p1.
|
|
202
|
+
if (p1.r2().equals(element)) {
|
|
203
203
|
tmp$ret$1 = true;
|
|
204
204
|
break $l$block;
|
|
205
205
|
}
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
var CardName_HIDDEN_instance;
|
|
226
226
|
function getShortName($this) {
|
|
227
227
|
var tmp;
|
|
228
|
-
switch ($this.
|
|
228
|
+
switch ($this.q2_1) {
|
|
229
229
|
case 0:
|
|
230
230
|
tmp = 'A';
|
|
231
231
|
break;
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
}
|
|
355
355
|
function getCardNumber($this, number) {
|
|
356
356
|
var tmp;
|
|
357
|
-
switch (number.
|
|
357
|
+
switch (number.q2_1) {
|
|
358
358
|
case 12:
|
|
359
359
|
tmp = 0;
|
|
360
360
|
break;
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
}
|
|
566
566
|
return tmp;
|
|
567
567
|
};
|
|
568
|
-
protoOf(GameCard).
|
|
568
|
+
protoOf(GameCard).r2 = function () {
|
|
569
569
|
return this.z5d() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.u5d());
|
|
570
570
|
};
|
|
571
571
|
protoOf(GameCard).i5e = function () {
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
if (this.z5d()) {
|
|
582
582
|
return 'GameCard(HIDDEN, ' + this.t5d_1 + ')';
|
|
583
583
|
}
|
|
584
|
-
return 'GameCard(' + this.h5e().toString() + this.
|
|
584
|
+
return 'GameCard(' + this.h5e().toString() + this.r2().toString() + ', ' + this.t5d_1 + ')';
|
|
585
585
|
};
|
|
586
586
|
protoOf(GameCard).hashCode = function () {
|
|
587
587
|
return this.t5d_1;
|
|
@@ -597,7 +597,7 @@
|
|
|
597
597
|
return true;
|
|
598
598
|
};
|
|
599
599
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
600
|
-
return $this.j5e_1.
|
|
600
|
+
return $this.j5e_1.x();
|
|
601
601
|
}
|
|
602
602
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
603
603
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -608,7 +608,7 @@
|
|
|
608
608
|
var Suit_CLUB_instance;
|
|
609
609
|
function getSuitEmoji($this) {
|
|
610
610
|
var tmp;
|
|
611
|
-
switch ($this.
|
|
611
|
+
switch ($this.q2_1) {
|
|
612
612
|
case 0:
|
|
613
613
|
tmp = '\u2666\uFE0F';
|
|
614
614
|
break;
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
}
|
|
691
691
|
function getIndex(_this__u8e3s4) {
|
|
692
692
|
var tmp;
|
|
693
|
-
switch (_this__u8e3s4.
|
|
693
|
+
switch (_this__u8e3s4.q2_1) {
|
|
694
694
|
case 0:
|
|
695
695
|
tmp = 0;
|
|
696
696
|
break;
|
|
@@ -740,9 +740,9 @@
|
|
|
740
740
|
}
|
|
741
741
|
function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
|
|
742
742
|
var tmp = new $getRandomOrgCardsCOROUTINE$($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
|
|
743
|
-
tmp.
|
|
744
|
-
tmp.
|
|
745
|
-
return tmp.
|
|
743
|
+
tmp.u8_1 = Unit_instance;
|
|
744
|
+
tmp.v8_1 = null;
|
|
745
|
+
return tmp.a9();
|
|
746
746
|
}
|
|
747
747
|
function normalizeCards($this, cards, leftCardIndexForEachSuit) {
|
|
748
748
|
var oneSuitCount = cards.o() / get_entries().o() | 0;
|
|
@@ -779,24 +779,24 @@
|
|
|
779
779
|
this.u5f_1 = userData;
|
|
780
780
|
this.v5f_1 = provider;
|
|
781
781
|
}
|
|
782
|
-
protoOf($createNewShuffledCardDeckCOROUTINE$).
|
|
783
|
-
var suspendResult = this.
|
|
782
|
+
protoOf($createNewShuffledCardDeckCOROUTINE$).a9 = function () {
|
|
783
|
+
var suspendResult = this.u8_1;
|
|
784
784
|
$sm: do
|
|
785
785
|
try {
|
|
786
|
-
var tmp = this.
|
|
786
|
+
var tmp = this.s8_1;
|
|
787
787
|
switch (tmp) {
|
|
788
788
|
case 0:
|
|
789
|
-
this.
|
|
790
|
-
var tmp0 = this.v5f_1.
|
|
789
|
+
this.t8_1 = 4;
|
|
790
|
+
var tmp0 = this.v5f_1.q2_1;
|
|
791
791
|
if (tmp0 === 0) {
|
|
792
792
|
var tmp_0 = this;
|
|
793
793
|
var it = this.q5f_1.k5e(this.r5f_1, this.s5f_1);
|
|
794
794
|
tmp_0.w5f_1 = this.q5f_1.o5e(it);
|
|
795
|
-
this.
|
|
795
|
+
this.s8_1 = 3;
|
|
796
796
|
continue $sm;
|
|
797
797
|
} else {
|
|
798
798
|
if (tmp0 === 1) {
|
|
799
|
-
this.
|
|
799
|
+
this.s8_1 = 2;
|
|
800
800
|
suspendResult = getRandomOrgCards(this.q5f_1, this.r5f_1, this.s5f_1, this.t5f_1, this.u5f_1, false, this);
|
|
801
801
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
802
802
|
return suspendResult;
|
|
@@ -804,7 +804,7 @@
|
|
|
804
804
|
continue $sm;
|
|
805
805
|
} else {
|
|
806
806
|
if (tmp0 === 2) {
|
|
807
|
-
this.
|
|
807
|
+
this.s8_1 = 1;
|
|
808
808
|
suspendResult = getRandomOrgCards(this.q5f_1, this.r5f_1, this.s5f_1, this.t5f_1, this.u5f_1, true, this);
|
|
809
809
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
810
810
|
return suspendResult;
|
|
@@ -820,24 +820,24 @@
|
|
|
820
820
|
break;
|
|
821
821
|
case 1:
|
|
822
822
|
this.w5f_1 = suspendResult;
|
|
823
|
-
this.
|
|
823
|
+
this.s8_1 = 3;
|
|
824
824
|
continue $sm;
|
|
825
825
|
case 2:
|
|
826
826
|
this.w5f_1 = suspendResult;
|
|
827
|
-
this.
|
|
827
|
+
this.s8_1 = 3;
|
|
828
828
|
continue $sm;
|
|
829
829
|
case 3:
|
|
830
830
|
return this.w5f_1;
|
|
831
831
|
case 4:
|
|
832
|
-
throw this.
|
|
832
|
+
throw this.v8_1;
|
|
833
833
|
}
|
|
834
834
|
} catch ($p) {
|
|
835
835
|
var e = $p;
|
|
836
|
-
if (this.
|
|
836
|
+
if (this.t8_1 === 4) {
|
|
837
837
|
throw e;
|
|
838
838
|
} else {
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
839
|
+
this.s8_1 = this.t8_1;
|
|
840
|
+
this.v8_1 = e;
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
843
|
while (true);
|
|
@@ -851,29 +851,29 @@
|
|
|
851
851
|
this.e5f_1 = userData;
|
|
852
852
|
this.f5f_1 = signed;
|
|
853
853
|
}
|
|
854
|
-
protoOf($getRandomOrgCardsCOROUTINE$).
|
|
855
|
-
var suspendResult = this.
|
|
854
|
+
protoOf($getRandomOrgCardsCOROUTINE$).a9 = function () {
|
|
855
|
+
var suspendResult = this.u8_1;
|
|
856
856
|
$sm: do
|
|
857
857
|
try {
|
|
858
|
-
var tmp = this.
|
|
858
|
+
var tmp = this.s8_1;
|
|
859
859
|
switch (tmp) {
|
|
860
860
|
case 0:
|
|
861
|
-
this.
|
|
861
|
+
this.t8_1 = 5;
|
|
862
862
|
var cardsCount = this.a5f_1.r5e(this.b5f_1, this.c5f_1);
|
|
863
863
|
var tmp0_$this = this.a5f_1.y5f_1;
|
|
864
864
|
var tmp1_max = cardsCount - 1 | 0;
|
|
865
|
-
this.
|
|
865
|
+
this.s8_1 = 1;
|
|
866
866
|
suspendResult = tmp0_$this.l58(this.d5f_1, this.e5f_1, 0, tmp1_max, cardsCount, this.f5f_1, VOID, this);
|
|
867
867
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
868
868
|
return suspendResult;
|
|
869
869
|
}
|
|
870
870
|
|
|
871
|
-
this.
|
|
871
|
+
this.s8_1 = 2;
|
|
872
872
|
continue $sm;
|
|
873
873
|
case 1:
|
|
874
874
|
var unboxed = suspendResult.tl_1;
|
|
875
875
|
suspendResult = new Result(unboxed);
|
|
876
|
-
this.
|
|
876
|
+
this.s8_1 = 2;
|
|
877
877
|
continue $sm;
|
|
878
878
|
case 2:
|
|
879
879
|
var result = suspendResult.tl_1;
|
|
@@ -890,12 +890,12 @@
|
|
|
890
890
|
destination.j(Companion_instance.x5d(item));
|
|
891
891
|
}
|
|
892
892
|
tmp_0.g5f_1 = destination;
|
|
893
|
-
this.
|
|
893
|
+
this.s8_1 = 4;
|
|
894
894
|
continue $sm;
|
|
895
895
|
} else {
|
|
896
896
|
var exception = Result__exceptionOrNull_impl_p6xea9(result);
|
|
897
897
|
this.a5f_1.z5f_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
|
|
898
|
-
this.
|
|
898
|
+
this.s8_1 = 3;
|
|
899
899
|
suspendResult = this.a5f_1.l5e(this.b5f_1, this.c5f_1, this.d5f_1, this.e5f_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
900
900
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
901
901
|
return suspendResult;
|
|
@@ -905,20 +905,20 @@
|
|
|
905
905
|
|
|
906
906
|
case 3:
|
|
907
907
|
this.g5f_1 = suspendResult;
|
|
908
|
-
this.
|
|
908
|
+
this.s8_1 = 4;
|
|
909
909
|
continue $sm;
|
|
910
910
|
case 4:
|
|
911
911
|
return this.g5f_1;
|
|
912
912
|
case 5:
|
|
913
|
-
throw this.
|
|
913
|
+
throw this.v8_1;
|
|
914
914
|
}
|
|
915
915
|
} catch ($p) {
|
|
916
916
|
var e = $p;
|
|
917
|
-
if (this.
|
|
917
|
+
if (this.t8_1 === 5) {
|
|
918
918
|
throw e;
|
|
919
919
|
} else {
|
|
920
|
-
this.
|
|
921
|
-
this.
|
|
920
|
+
this.s8_1 = this.t8_1;
|
|
921
|
+
this.v8_1 = e;
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
924
|
while (true);
|
|
@@ -940,8 +940,8 @@
|
|
|
940
940
|
var this_0 = this.a5g(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
941
941
|
// Inline function 'kotlin.collections.mapTo' call
|
|
942
942
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
943
|
-
var inductionVariable = this_0.
|
|
944
|
-
var last = this_0.
|
|
943
|
+
var inductionVariable = this_0.a1_1;
|
|
944
|
+
var last = this_0.b1_1;
|
|
945
945
|
if (inductionVariable <= last)
|
|
946
946
|
do {
|
|
947
947
|
var item = inductionVariable;
|
|
@@ -972,9 +972,9 @@
|
|
|
972
972
|
};
|
|
973
973
|
protoOf(CardsDealerProviderImpl).l5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
974
974
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
975
|
-
tmp.
|
|
976
|
-
tmp.
|
|
977
|
-
return tmp.
|
|
975
|
+
tmp.u8_1 = Unit_instance;
|
|
976
|
+
tmp.v8_1 = null;
|
|
977
|
+
return tmp.a9();
|
|
978
978
|
};
|
|
979
979
|
protoOf(CardsDealerProviderImpl).m5e = function (count, cards) {
|
|
980
980
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
if (this_0.o() === count) {
|
|
988
988
|
break $l$block;
|
|
989
989
|
}
|
|
990
|
-
var hasSimilarCard = this_0.
|
|
990
|
+
var hasSimilarCard = this_0.u1(card);
|
|
991
991
|
if (hasSimilarCard) {
|
|
992
992
|
continue $l$loop_0;
|
|
993
993
|
}
|
|
@@ -1086,7 +1086,7 @@
|
|
|
1086
1086
|
}
|
|
1087
1087
|
function createCombination($this, cards, supportedCombinations) {
|
|
1088
1088
|
var size = cards.o();
|
|
1089
|
-
if (supportedCombinations.
|
|
1089
|
+
if (supportedCombinations.u1(size)) {
|
|
1090
1090
|
return cards;
|
|
1091
1091
|
}
|
|
1092
1092
|
var fromLongestCombinations = asReversed(sorted(supportedCombinations));
|
|
@@ -1109,13 +1109,13 @@
|
|
|
1109
1109
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1110
1110
|
this.k5g_1 = function_0;
|
|
1111
1111
|
}
|
|
1112
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1112
|
+
protoOf(sam$kotlin_Comparator$0).fc = function (a, b) {
|
|
1113
1113
|
return this.k5g_1(a, b);
|
|
1114
1114
|
};
|
|
1115
1115
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1116
|
-
return this.
|
|
1116
|
+
return this.fc(a, b);
|
|
1117
1117
|
};
|
|
1118
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1118
|
+
protoOf(sam$kotlin_Comparator$0).b3 = function () {
|
|
1119
1119
|
return this.k5g_1;
|
|
1120
1120
|
};
|
|
1121
1121
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
@@ -1123,7 +1123,7 @@
|
|
|
1123
1123
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1124
1124
|
var tmp_0;
|
|
1125
1125
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1126
|
-
tmp_0 = equals(this.
|
|
1126
|
+
tmp_0 = equals(this.b3(), other.b3());
|
|
1127
1127
|
} else {
|
|
1128
1128
|
tmp_0 = false;
|
|
1129
1129
|
}
|
|
@@ -1134,7 +1134,7 @@
|
|
|
1134
1134
|
return tmp;
|
|
1135
1135
|
};
|
|
1136
1136
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1137
|
-
return hashCode(this.
|
|
1137
|
+
return hashCode(this.b3());
|
|
1138
1138
|
};
|
|
1139
1139
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1140
1140
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
@@ -1172,7 +1172,7 @@
|
|
|
1172
1172
|
var previousCard = lastOrNull(combinationCards);
|
|
1173
1173
|
var currentCard = sortedByIndexCards.p(i);
|
|
1174
1174
|
var isNextInRow = !(previousCard == null) && currentCard.t5d_1 === (previousCard.t5d_1 + 1 | 0) && currentCard.h5e().equals(previousCard.h5e());
|
|
1175
|
-
var passedCardNamesCheck = includeCardNames == null || includeCardNames.
|
|
1175
|
+
var passedCardNamesCheck = includeCardNames == null || includeCardNames.u1(currentCard.r2());
|
|
1176
1176
|
var passedSuitCheck = suit == null || currentCard.h5e().equals(suit);
|
|
1177
1177
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1178
1178
|
combinationCards.j(currentCard);
|
|
@@ -1180,7 +1180,7 @@
|
|
|
1180
1180
|
if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
|
|
1181
1181
|
combinations.q(this.j5g(toMutableList(combinationCards), supportedCombinations));
|
|
1182
1182
|
}
|
|
1183
|
-
combinationCards.
|
|
1183
|
+
combinationCards.i2();
|
|
1184
1184
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
1185
1185
|
combinationCards.j(currentCard);
|
|
1186
1186
|
}
|
|
@@ -1212,7 +1212,7 @@
|
|
|
1212
1212
|
var _iterator__ex2g4s_0 = destination.l();
|
|
1213
1213
|
while (_iterator__ex2g4s_0.m()) {
|
|
1214
1214
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1215
|
-
if (includeCardNames == null || includeCardNames.
|
|
1215
|
+
if (includeCardNames == null || includeCardNames.u1(element_0.r2())) {
|
|
1216
1216
|
destination_0.j(element_0);
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
@@ -1225,11 +1225,11 @@
|
|
|
1225
1225
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
1226
1226
|
var key = element_1.u5d();
|
|
1227
1227
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1228
|
-
var value = destination_1.
|
|
1228
|
+
var value = destination_1.c2(key);
|
|
1229
1229
|
var tmp;
|
|
1230
1230
|
if (value == null) {
|
|
1231
1231
|
var answer = ArrayList_init_$Create$();
|
|
1232
|
-
destination_1.
|
|
1232
|
+
destination_1.f2(key, answer);
|
|
1233
1233
|
tmp = answer;
|
|
1234
1234
|
} else {
|
|
1235
1235
|
tmp = value;
|
|
@@ -1241,14 +1241,14 @@
|
|
|
1241
1241
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1242
1242
|
var destination_2 = LinkedHashMap_init_$Create$();
|
|
1243
1243
|
// Inline function 'kotlin.collections.iterator' call
|
|
1244
|
-
var _iterator__ex2g4s_2 = destination_1.
|
|
1244
|
+
var _iterator__ex2g4s_2 = destination_1.v().l();
|
|
1245
1245
|
while (_iterator__ex2g4s_2.m()) {
|
|
1246
1246
|
var element_2 = _iterator__ex2g4s_2.n();
|
|
1247
|
-
if (element_2.
|
|
1248
|
-
destination_2.
|
|
1247
|
+
if (element_2.x().o() >= cardsCount) {
|
|
1248
|
+
destination_2.f2(element_2.w(), element_2.x());
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
|
-
var combinations = destination_2.
|
|
1251
|
+
var combinations = destination_2.e2();
|
|
1252
1252
|
// Inline function 'kotlin.collections.map' call
|
|
1253
1253
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1254
1254
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinations, 10));
|
|
@@ -1279,7 +1279,7 @@
|
|
|
1279
1279
|
while (cardsToCheck.o() >= shortestCombinationSupport) {
|
|
1280
1280
|
var combinationCards = createCombination(this, cardsToCheck, supportedCombinations);
|
|
1281
1281
|
combinations.j(toList(combinationCards));
|
|
1282
|
-
cardsToCheck.
|
|
1282
|
+
cardsToCheck.l2(combinationCards);
|
|
1283
1283
|
}
|
|
1284
1284
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
1285
1285
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
@@ -1304,7 +1304,7 @@
|
|
|
1304
1304
|
};
|
|
1305
1305
|
protoOf(DealerReducerImpl).m5g = function (cards, cardToRemove) {
|
|
1306
1306
|
var tmp;
|
|
1307
|
-
if (!cardToRemove.z5d() && cards.
|
|
1307
|
+
if (!cardToRemove.z5d() && cards.u1(cardToRemove)) {
|
|
1308
1308
|
if (this.p5g_1) {
|
|
1309
1309
|
this.o5g_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
|
|
1310
1310
|
}
|
|
@@ -1346,7 +1346,7 @@
|
|
|
1346
1346
|
if (this.p5g_1) {
|
|
1347
1347
|
this.o5g_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.o() + 1 | 0));
|
|
1348
1348
|
}
|
|
1349
|
-
if (cards.
|
|
1349
|
+
if (cards.u1(cardToAdd)) {
|
|
1350
1350
|
this.o5g_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1351
1351
|
}
|
|
1352
1352
|
return plus_0(cards, cardToAdd);
|