client_plugin_logic_deb 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-client_plugin.d.ts +5 -3
- package/Logic_Debertz-client_plugin.js +3841 -3841
- package/Logic_Debertz-core.js +421 -421
- package/Logic_Debertz-engine.js +15202 -14632
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +9435 -9435
- 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 +2079 -2018
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +9 -9
- package/kotlinx-coroutines-core.js +981 -981
- package/kotlinx-coroutines-core.js.map +1 -1
- 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 +167 -163
- 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 +99 -99
- 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.$_$.k8;
|
|
20
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
20
|
+
var coerceAtLeast = kotlin_kotlin.$_$.xd;
|
|
21
21
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.p;
|
|
22
22
|
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
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.$_$.pd;
|
|
24
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.qc;
|
|
25
|
+
var Enum = kotlin_kotlin.$_$.ih;
|
|
26
|
+
var initMetadataForClass = kotlin_kotlin.$_$.pc;
|
|
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.$_$.sd;
|
|
29
|
+
var getStringHashCode = kotlin_kotlin.$_$.nc;
|
|
30
|
+
var THROW_CCE = kotlin_kotlin.$_$.th;
|
|
31
|
+
var initMetadataForObject = kotlin_kotlin.$_$.uc;
|
|
32
32
|
var get_lastIndex = kotlin_kotlin.$_$.c8;
|
|
33
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
34
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
35
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
33
|
+
var compareTo = kotlin_kotlin.$_$.gc;
|
|
34
|
+
var ensureNotNull = kotlin_kotlin.$_$.ki;
|
|
35
|
+
var objectCreate = kotlin_kotlin.$_$.od;
|
|
36
36
|
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.g;
|
|
37
|
-
var encodeToByteArray = kotlin_kotlin.$_$.
|
|
37
|
+
var encodeToByteArray = kotlin_kotlin.$_$.af;
|
|
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.q3s_1;
|
|
83
|
-
destination.
|
|
83
|
+
destination.m2(tmp$ret$0, element);
|
|
84
84
|
}
|
|
85
85
|
tmp.r3s_1 = destination;
|
|
86
86
|
this.s3s_1 = Codes_INTERNAL_ERROR_getInstance();
|
|
87
87
|
}
|
|
88
88
|
protoOf(Companion).t3s = function (code) {
|
|
89
|
-
return this.r3s_1.
|
|
89
|
+
return this.r3s_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.$_$.pd;
|
|
19
|
+
var initMetadataForObject = kotlin_kotlin.$_$.uc;
|
|
20
20
|
var VOID = kotlin_kotlin.$_$.b;
|
|
21
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
21
|
+
var initMetadataForClass = kotlin_kotlin.$_$.pc;
|
|
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.$_$.od;
|
|
24
|
+
var captureStack = kotlin_kotlin.$_$.zb;
|
|
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.$_$.ne;
|
|
28
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.mc;
|
|
29
|
+
var THROW_CCE = kotlin_kotlin.$_$.th;
|
|
30
|
+
var isNumber = kotlin_kotlin.$_$.fd;
|
|
31
|
+
var numberToByte = kotlin_kotlin.$_$.ld;
|
|
32
32
|
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
33
|
-
var lazy = kotlin_kotlin.$_$.
|
|
33
|
+
var lazy = kotlin_kotlin.$_$.qi;
|
|
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 cryptoRandFill(_this__u8e3s4) {
|
|
@@ -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.$_$.pd;
|
|
20
|
+
var objectCreate = kotlin_kotlin.$_$.od;
|
|
21
|
+
var captureStack = kotlin_kotlin.$_$.zb;
|
|
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.$_$.sh;
|
|
24
|
+
var initMetadataForClass = kotlin_kotlin.$_$.pc;
|
|
25
25
|
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
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.$_$.pd;
|
|
23
|
+
var initMetadataForObject = kotlin_kotlin.$_$.uc;
|
|
24
|
+
var defineProp = kotlin_kotlin.$_$.hc;
|
|
25
25
|
var VOID = kotlin_kotlin.$_$.b;
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
27
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
28
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
26
|
+
var THROW_CCE = kotlin_kotlin.$_$.th;
|
|
27
|
+
var Comparator = kotlin_kotlin.$_$.fh;
|
|
28
|
+
var initMetadataForClass = kotlin_kotlin.$_$.pc;
|
|
29
29
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
30
30
|
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
31
|
-
var take = kotlin_kotlin.$_$.
|
|
32
|
-
var toList = kotlin_kotlin.$_$.
|
|
33
|
-
var takeLast = kotlin_kotlin.$_$.
|
|
34
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
35
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
31
|
+
var take = kotlin_kotlin.$_$.m9;
|
|
32
|
+
var toList = kotlin_kotlin.$_$.q9;
|
|
33
|
+
var takeLast = kotlin_kotlin.$_$.l9;
|
|
34
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ri;
|
|
35
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.qc;
|
|
36
36
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
37
|
-
var Enum = kotlin_kotlin.$_$.
|
|
37
|
+
var Enum = kotlin_kotlin.$_$.ih;
|
|
38
38
|
var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.i2;
|
|
39
|
-
var enumEntries = kotlin_kotlin.$_$.
|
|
39
|
+
var enumEntries = kotlin_kotlin.$_$.xa;
|
|
40
40
|
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
|
|
41
|
-
var lazy = kotlin_kotlin.$_$.
|
|
41
|
+
var lazy = kotlin_kotlin.$_$.pi;
|
|
42
42
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
43
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
43
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.sc;
|
|
44
44
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.k6;
|
|
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.$_$.va;
|
|
48
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
|
|
49
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.rc;
|
|
50
|
+
var Result = kotlin_kotlin.$_$.rh;
|
|
51
51
|
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.v2;
|
|
52
|
-
var throwOnFailure = kotlin_kotlin.$_$.
|
|
52
|
+
var throwOnFailure = kotlin_kotlin.$_$.vi;
|
|
53
53
|
var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.y2;
|
|
54
54
|
var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.x2;
|
|
55
55
|
var addAll = kotlin_kotlin.$_$.y5;
|
|
56
|
-
var until = kotlin_kotlin.$_$.
|
|
56
|
+
var until = kotlin_kotlin.$_$.ge;
|
|
57
57
|
var count = kotlin_kotlin.$_$.b7;
|
|
58
58
|
var Collection = kotlin_kotlin.$_$.i5;
|
|
59
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
60
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
59
|
+
var isInterface = kotlin_kotlin.$_$.dd;
|
|
60
|
+
var toMutableList = kotlin_kotlin.$_$.v9;
|
|
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.$_$.j8;
|
|
64
64
|
var first = kotlin_kotlin.$_$.o7;
|
|
65
|
-
var sorted = kotlin_kotlin.$_$.
|
|
65
|
+
var sorted = kotlin_kotlin.$_$.j9;
|
|
66
66
|
var asReversed = kotlin_kotlin.$_$.c6;
|
|
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.$_$.ic;
|
|
69
|
+
var FunctionAdapter = kotlin_kotlin.$_$.vb;
|
|
70
|
+
var hashCode = kotlin_kotlin.$_$.oc;
|
|
71
71
|
var first_0 = kotlin_kotlin.$_$.n7;
|
|
72
|
-
var compareValues = kotlin_kotlin.$_$.
|
|
73
|
-
var sortWith = kotlin_kotlin.$_$.
|
|
72
|
+
var compareValues = kotlin_kotlin.$_$.ea;
|
|
73
|
+
var sortWith = kotlin_kotlin.$_$.h9;
|
|
74
74
|
var lastOrNull = kotlin_kotlin.$_$.d8;
|
|
75
75
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
76
|
-
var sortedWith = kotlin_kotlin.$_$.
|
|
76
|
+
var sortedWith = kotlin_kotlin.$_$.i9;
|
|
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.$_$.gc;
|
|
79
|
+
var toString = kotlin_kotlin.$_$.sd;
|
|
80
80
|
var dropLast = kotlin_kotlin.$_$.d7;
|
|
81
81
|
var plus = kotlin_kotlin.$_$.u8;
|
|
82
82
|
var minus = kotlin_kotlin.$_$.o8;
|
|
@@ -143,8 +143,8 @@
|
|
|
143
143
|
if (!a.q5t() || !b.q5t()) {
|
|
144
144
|
return 0;
|
|
145
145
|
}
|
|
146
|
-
var suitIndexL = this.n5t_1.
|
|
147
|
-
var suitIndexR = this.n5t_1.
|
|
146
|
+
var suitIndexL = this.n5t_1.w1(a.r5t());
|
|
147
|
+
var suitIndexR = this.n5t_1.w1(b.r5t());
|
|
148
148
|
var sortedNumberL = imul(suitIndexL, 13) + a.s5t() | 0;
|
|
149
149
|
var sortedNumberR = imul(suitIndexR, 13) + b.s5t() | 0;
|
|
150
150
|
return sortedNumberL - sortedNumberR | 0;
|
|
@@ -182,12 +182,12 @@
|
|
|
182
182
|
}
|
|
183
183
|
function distributeCardsBottom(_this__u8e3s4, count) {
|
|
184
184
|
var cardsToDeal = toList(take(_this__u8e3s4, count));
|
|
185
|
-
_this__u8e3s4.
|
|
185
|
+
_this__u8e3s4.h2(cardsToDeal);
|
|
186
186
|
return cardsToDeal;
|
|
187
187
|
}
|
|
188
188
|
function distributeCardsTop(_this__u8e3s4, count) {
|
|
189
189
|
var cardsToDeal = toList(takeLast(_this__u8e3s4, count));
|
|
190
|
-
_this__u8e3s4.
|
|
190
|
+
_this__u8e3s4.h2(cardsToDeal);
|
|
191
191
|
return cardsToDeal;
|
|
192
192
|
}
|
|
193
193
|
function CardIndexComparator() {
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
while (inductionVariable < last) {
|
|
218
218
|
var element = tmp0[inductionVariable];
|
|
219
219
|
inductionVariable = inductionVariable + 1 | 0;
|
|
220
|
-
if (p1.
|
|
220
|
+
if (p1.r2().equals(element)) {
|
|
221
221
|
tmp$ret$1 = true;
|
|
222
222
|
break $l$block;
|
|
223
223
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
var CardName_HIDDEN_instance;
|
|
244
244
|
function getShortName($this) {
|
|
245
245
|
var tmp;
|
|
246
|
-
switch ($this.
|
|
246
|
+
switch ($this.q2_1) {
|
|
247
247
|
case 0:
|
|
248
248
|
tmp = 'A';
|
|
249
249
|
break;
|
|
@@ -376,7 +376,7 @@
|
|
|
376
376
|
}
|
|
377
377
|
function getCardNumber($this, number) {
|
|
378
378
|
var tmp;
|
|
379
|
-
switch (number.
|
|
379
|
+
switch (number.q2_1) {
|
|
380
380
|
case 12:
|
|
381
381
|
tmp = 0;
|
|
382
382
|
break;
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
}
|
|
588
588
|
return tmp;
|
|
589
589
|
};
|
|
590
|
-
protoOf(GameCard).
|
|
590
|
+
protoOf(GameCard).r2 = function () {
|
|
591
591
|
return this.x5t() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.s5t());
|
|
592
592
|
};
|
|
593
593
|
protoOf(GameCard).q5t = function () {
|
|
@@ -603,7 +603,7 @@
|
|
|
603
603
|
if (this.x5t()) {
|
|
604
604
|
return 'GameCard(HIDDEN, ' + this.p5t_1 + ')';
|
|
605
605
|
}
|
|
606
|
-
return 'GameCard(' + this.r5t().toString() + this.
|
|
606
|
+
return 'GameCard(' + this.r5t().toString() + this.r2().toString() + ', ' + this.p5t_1 + ')';
|
|
607
607
|
};
|
|
608
608
|
protoOf(GameCard).hashCode = function () {
|
|
609
609
|
return this.p5t_1;
|
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
return true;
|
|
620
620
|
};
|
|
621
621
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
622
|
-
return $this.g5u_1.
|
|
622
|
+
return $this.g5u_1.x();
|
|
623
623
|
}
|
|
624
624
|
function Suit$Companion$_anonymous__cbm2iq() {
|
|
625
625
|
return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
|
|
@@ -630,7 +630,7 @@
|
|
|
630
630
|
var Suit_CLUB_instance;
|
|
631
631
|
function getSuitEmoji($this) {
|
|
632
632
|
var tmp;
|
|
633
|
-
switch ($this.
|
|
633
|
+
switch ($this.q2_1) {
|
|
634
634
|
case 0:
|
|
635
635
|
tmp = '\u2666\uFE0F';
|
|
636
636
|
break;
|
|
@@ -712,7 +712,7 @@
|
|
|
712
712
|
}
|
|
713
713
|
function getIndex(_this__u8e3s4) {
|
|
714
714
|
var tmp;
|
|
715
|
-
switch (_this__u8e3s4.
|
|
715
|
+
switch (_this__u8e3s4.q2_1) {
|
|
716
716
|
case 0:
|
|
717
717
|
tmp = 0;
|
|
718
718
|
break;
|
|
@@ -762,9 +762,9 @@
|
|
|
762
762
|
}
|
|
763
763
|
function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
|
|
764
764
|
var tmp = new $getRandomOrgCardsCOROUTINE$($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
|
|
765
|
-
tmp.
|
|
766
|
-
tmp.
|
|
767
|
-
return tmp.
|
|
765
|
+
tmp.u8_1 = Unit_instance;
|
|
766
|
+
tmp.v8_1 = null;
|
|
767
|
+
return tmp.a9();
|
|
768
768
|
}
|
|
769
769
|
function normalizeCards($this, cards, leftCardIndexForEachSuit) {
|
|
770
770
|
var oneSuitCount = cards.o() / get_entries().o() | 0;
|
|
@@ -801,24 +801,24 @@
|
|
|
801
801
|
this.r5v_1 = userData;
|
|
802
802
|
this.s5v_1 = provider;
|
|
803
803
|
}
|
|
804
|
-
protoOf($createNewShuffledCardDeckCOROUTINE$).
|
|
805
|
-
var suspendResult = this.
|
|
804
|
+
protoOf($createNewShuffledCardDeckCOROUTINE$).a9 = function () {
|
|
805
|
+
var suspendResult = this.u8_1;
|
|
806
806
|
$sm: do
|
|
807
807
|
try {
|
|
808
|
-
var tmp = this.
|
|
808
|
+
var tmp = this.s8_1;
|
|
809
809
|
switch (tmp) {
|
|
810
810
|
case 0:
|
|
811
|
-
this.
|
|
812
|
-
var tmp0 = this.s5v_1.
|
|
811
|
+
this.t8_1 = 4;
|
|
812
|
+
var tmp0 = this.s5v_1.q2_1;
|
|
813
813
|
if (tmp0 === 0) {
|
|
814
814
|
var tmp_0 = this;
|
|
815
815
|
var it = this.n5v_1.h5u(this.o5v_1, this.p5v_1);
|
|
816
816
|
tmp_0.t5v_1 = this.n5v_1.l5u(it);
|
|
817
|
-
this.
|
|
817
|
+
this.s8_1 = 3;
|
|
818
818
|
continue $sm;
|
|
819
819
|
} else {
|
|
820
820
|
if (tmp0 === 1) {
|
|
821
|
-
this.
|
|
821
|
+
this.s8_1 = 2;
|
|
822
822
|
suspendResult = getRandomOrgCards(this.n5v_1, this.o5v_1, this.p5v_1, this.q5v_1, this.r5v_1, false, this);
|
|
823
823
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
824
824
|
return suspendResult;
|
|
@@ -826,7 +826,7 @@
|
|
|
826
826
|
continue $sm;
|
|
827
827
|
} else {
|
|
828
828
|
if (tmp0 === 2) {
|
|
829
|
-
this.
|
|
829
|
+
this.s8_1 = 1;
|
|
830
830
|
suspendResult = getRandomOrgCards(this.n5v_1, this.o5v_1, this.p5v_1, this.q5v_1, this.r5v_1, true, this);
|
|
831
831
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
832
832
|
return suspendResult;
|
|
@@ -842,24 +842,24 @@
|
|
|
842
842
|
break;
|
|
843
843
|
case 1:
|
|
844
844
|
this.t5v_1 = suspendResult;
|
|
845
|
-
this.
|
|
845
|
+
this.s8_1 = 3;
|
|
846
846
|
continue $sm;
|
|
847
847
|
case 2:
|
|
848
848
|
this.t5v_1 = suspendResult;
|
|
849
|
-
this.
|
|
849
|
+
this.s8_1 = 3;
|
|
850
850
|
continue $sm;
|
|
851
851
|
case 3:
|
|
852
852
|
return this.t5v_1;
|
|
853
853
|
case 4:
|
|
854
|
-
throw this.
|
|
854
|
+
throw this.v8_1;
|
|
855
855
|
}
|
|
856
856
|
} catch ($p) {
|
|
857
857
|
var e = $p;
|
|
858
|
-
if (this.
|
|
858
|
+
if (this.t8_1 === 4) {
|
|
859
859
|
throw e;
|
|
860
860
|
} else {
|
|
861
|
-
this.
|
|
862
|
-
this.
|
|
861
|
+
this.s8_1 = this.t8_1;
|
|
862
|
+
this.v8_1 = e;
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
865
|
while (true);
|
|
@@ -873,29 +873,29 @@
|
|
|
873
873
|
this.b5v_1 = userData;
|
|
874
874
|
this.c5v_1 = signed;
|
|
875
875
|
}
|
|
876
|
-
protoOf($getRandomOrgCardsCOROUTINE$).
|
|
877
|
-
var suspendResult = this.
|
|
876
|
+
protoOf($getRandomOrgCardsCOROUTINE$).a9 = function () {
|
|
877
|
+
var suspendResult = this.u8_1;
|
|
878
878
|
$sm: do
|
|
879
879
|
try {
|
|
880
|
-
var tmp = this.
|
|
880
|
+
var tmp = this.s8_1;
|
|
881
881
|
switch (tmp) {
|
|
882
882
|
case 0:
|
|
883
|
-
this.
|
|
883
|
+
this.t8_1 = 5;
|
|
884
884
|
var cardsCount = this.x5u_1.o5u(this.y5u_1, this.z5u_1);
|
|
885
885
|
var tmp0_$this = this.x5u_1.v5v_1;
|
|
886
886
|
var tmp1_max = cardsCount - 1 | 0;
|
|
887
|
-
this.
|
|
887
|
+
this.s8_1 = 1;
|
|
888
888
|
suspendResult = tmp0_$this.g5o(this.a5v_1, this.b5v_1, 0, tmp1_max, cardsCount, this.c5v_1, VOID, this);
|
|
889
889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
890
890
|
return suspendResult;
|
|
891
891
|
}
|
|
892
892
|
|
|
893
|
-
this.
|
|
893
|
+
this.s8_1 = 2;
|
|
894
894
|
continue $sm;
|
|
895
895
|
case 1:
|
|
896
896
|
var unboxed = suspendResult.tl_1;
|
|
897
897
|
suspendResult = new Result(unboxed);
|
|
898
|
-
this.
|
|
898
|
+
this.s8_1 = 2;
|
|
899
899
|
continue $sm;
|
|
900
900
|
case 2:
|
|
901
901
|
var result = suspendResult.tl_1;
|
|
@@ -912,12 +912,12 @@
|
|
|
912
912
|
destination.j(Companion_instance.v5t(item));
|
|
913
913
|
}
|
|
914
914
|
tmp_0.d5v_1 = destination;
|
|
915
|
-
this.
|
|
915
|
+
this.s8_1 = 4;
|
|
916
916
|
continue $sm;
|
|
917
917
|
} else {
|
|
918
918
|
var exception = Result__exceptionOrNull_impl_p6xea9(result);
|
|
919
919
|
this.x5u_1.w5v_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
|
|
920
|
-
this.
|
|
920
|
+
this.s8_1 = 3;
|
|
921
921
|
suspendResult = this.x5u_1.i5u(this.y5u_1, this.z5u_1, this.a5v_1, this.b5v_1, CardsRandomProvider_CUSTOM_getInstance(), this);
|
|
922
922
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
923
923
|
return suspendResult;
|
|
@@ -927,20 +927,20 @@
|
|
|
927
927
|
|
|
928
928
|
case 3:
|
|
929
929
|
this.d5v_1 = suspendResult;
|
|
930
|
-
this.
|
|
930
|
+
this.s8_1 = 4;
|
|
931
931
|
continue $sm;
|
|
932
932
|
case 4:
|
|
933
933
|
return this.d5v_1;
|
|
934
934
|
case 5:
|
|
935
|
-
throw this.
|
|
935
|
+
throw this.v8_1;
|
|
936
936
|
}
|
|
937
937
|
} catch ($p) {
|
|
938
938
|
var e = $p;
|
|
939
|
-
if (this.
|
|
939
|
+
if (this.t8_1 === 5) {
|
|
940
940
|
throw e;
|
|
941
941
|
} else {
|
|
942
|
-
this.
|
|
943
|
-
this.
|
|
942
|
+
this.s8_1 = this.t8_1;
|
|
943
|
+
this.v8_1 = e;
|
|
944
944
|
}
|
|
945
945
|
}
|
|
946
946
|
while (true);
|
|
@@ -962,8 +962,8 @@
|
|
|
962
962
|
var this_0 = this.x5v(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
|
|
963
963
|
// Inline function 'kotlin.collections.mapTo' call
|
|
964
964
|
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
965
|
-
var inductionVariable = this_0.
|
|
966
|
-
var last = this_0.
|
|
965
|
+
var inductionVariable = this_0.a1_1;
|
|
966
|
+
var last = this_0.b1_1;
|
|
967
967
|
if (inductionVariable <= last)
|
|
968
968
|
do {
|
|
969
969
|
var item = inductionVariable;
|
|
@@ -994,9 +994,9 @@
|
|
|
994
994
|
};
|
|
995
995
|
protoOf(CardsDealerProviderImpl).i5u = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
|
|
996
996
|
var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
|
|
997
|
-
tmp.
|
|
998
|
-
tmp.
|
|
999
|
-
return tmp.
|
|
997
|
+
tmp.u8_1 = Unit_instance;
|
|
998
|
+
tmp.v8_1 = null;
|
|
999
|
+
return tmp.a9();
|
|
1000
1000
|
};
|
|
1001
1001
|
protoOf(CardsDealerProviderImpl).j5u = function (count, cards) {
|
|
1002
1002
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
@@ -1009,7 +1009,7 @@
|
|
|
1009
1009
|
if (this_0.o() === count) {
|
|
1010
1010
|
break $l$block;
|
|
1011
1011
|
}
|
|
1012
|
-
var hasSimilarCard = this_0.
|
|
1012
|
+
var hasSimilarCard = this_0.u1(card);
|
|
1013
1013
|
if (hasSimilarCard) {
|
|
1014
1014
|
continue $l$loop_0;
|
|
1015
1015
|
}
|
|
@@ -1108,7 +1108,7 @@
|
|
|
1108
1108
|
}
|
|
1109
1109
|
function createCombination($this, cards, supportedCombinations) {
|
|
1110
1110
|
var size = cards.o();
|
|
1111
|
-
if (supportedCombinations.
|
|
1111
|
+
if (supportedCombinations.u1(size)) {
|
|
1112
1112
|
return cards;
|
|
1113
1113
|
}
|
|
1114
1114
|
var fromLongestCombinations = asReversed(sorted(supportedCombinations));
|
|
@@ -1131,13 +1131,13 @@
|
|
|
1131
1131
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1132
1132
|
this.h5w_1 = function_0;
|
|
1133
1133
|
}
|
|
1134
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1134
|
+
protoOf(sam$kotlin_Comparator$0).fc = function (a, b) {
|
|
1135
1135
|
return this.h5w_1(a, b);
|
|
1136
1136
|
};
|
|
1137
1137
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1138
|
-
return this.
|
|
1138
|
+
return this.fc(a, b);
|
|
1139
1139
|
};
|
|
1140
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1140
|
+
protoOf(sam$kotlin_Comparator$0).b3 = function () {
|
|
1141
1141
|
return this.h5w_1;
|
|
1142
1142
|
};
|
|
1143
1143
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
@@ -1145,7 +1145,7 @@
|
|
|
1145
1145
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1146
1146
|
var tmp_0;
|
|
1147
1147
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1148
|
-
tmp_0 = equals(this.
|
|
1148
|
+
tmp_0 = equals(this.b3(), other.b3());
|
|
1149
1149
|
} else {
|
|
1150
1150
|
tmp_0 = false;
|
|
1151
1151
|
}
|
|
@@ -1156,7 +1156,7 @@
|
|
|
1156
1156
|
return tmp;
|
|
1157
1157
|
};
|
|
1158
1158
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1159
|
-
return hashCode(this.
|
|
1159
|
+
return hashCode(this.b3());
|
|
1160
1160
|
};
|
|
1161
1161
|
function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
|
|
1162
1162
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
@@ -1194,7 +1194,7 @@
|
|
|
1194
1194
|
var previousCard = lastOrNull(combinationCards);
|
|
1195
1195
|
var currentCard = sortedByIndexCards.p(i);
|
|
1196
1196
|
var isNextInRow = !(previousCard == null) && currentCard.p5t_1 === (previousCard.p5t_1 + 1 | 0) && currentCard.r5t().equals(previousCard.r5t());
|
|
1197
|
-
var passedCardNamesCheck = includeCardNames == null || includeCardNames.
|
|
1197
|
+
var passedCardNamesCheck = includeCardNames == null || includeCardNames.u1(currentCard.r2());
|
|
1198
1198
|
var passedSuitCheck = suit == null || currentCard.r5t().equals(suit);
|
|
1199
1199
|
if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
|
|
1200
1200
|
combinationCards.j(currentCard);
|
|
@@ -1202,7 +1202,7 @@
|
|
|
1202
1202
|
if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
|
|
1203
1203
|
combinations.r(this.g5w(toMutableList(combinationCards), supportedCombinations));
|
|
1204
1204
|
}
|
|
1205
|
-
combinationCards.
|
|
1205
|
+
combinationCards.i2();
|
|
1206
1206
|
if (passedSuitCheck && passedCardNamesCheck) {
|
|
1207
1207
|
combinationCards.j(currentCard);
|
|
1208
1208
|
}
|
|
@@ -1234,7 +1234,7 @@
|
|
|
1234
1234
|
var _iterator__ex2g4s_0 = destination.l();
|
|
1235
1235
|
while (_iterator__ex2g4s_0.m()) {
|
|
1236
1236
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
1237
|
-
if (includeCardNames == null || includeCardNames.
|
|
1237
|
+
if (includeCardNames == null || includeCardNames.u1(element_0.r2())) {
|
|
1238
1238
|
destination_0.j(element_0);
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
@@ -1247,11 +1247,11 @@
|
|
|
1247
1247
|
var element_1 = _iterator__ex2g4s_1.n();
|
|
1248
1248
|
var key = element_1.s5t();
|
|
1249
1249
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
1250
|
-
var value = destination_1.
|
|
1250
|
+
var value = destination_1.c2(key);
|
|
1251
1251
|
var tmp;
|
|
1252
1252
|
if (value == null) {
|
|
1253
1253
|
var answer = ArrayList_init_$Create$();
|
|
1254
|
-
destination_1.
|
|
1254
|
+
destination_1.m2(key, answer);
|
|
1255
1255
|
tmp = answer;
|
|
1256
1256
|
} else {
|
|
1257
1257
|
tmp = value;
|
|
@@ -1263,14 +1263,14 @@
|
|
|
1263
1263
|
// Inline function 'kotlin.collections.filterTo' call
|
|
1264
1264
|
var destination_2 = LinkedHashMap_init_$Create$();
|
|
1265
1265
|
// Inline function 'kotlin.collections.iterator' call
|
|
1266
|
-
var _iterator__ex2g4s_2 = destination_1.
|
|
1266
|
+
var _iterator__ex2g4s_2 = destination_1.v().l();
|
|
1267
1267
|
while (_iterator__ex2g4s_2.m()) {
|
|
1268
1268
|
var element_2 = _iterator__ex2g4s_2.n();
|
|
1269
|
-
if (element_2.
|
|
1270
|
-
destination_2.
|
|
1269
|
+
if (element_2.x().o() >= cardsCount) {
|
|
1270
|
+
destination_2.m2(element_2.w(), element_2.x());
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|
|
1273
|
-
var combinations = destination_2.
|
|
1273
|
+
var combinations = destination_2.e2();
|
|
1274
1274
|
// Inline function 'kotlin.collections.map' call
|
|
1275
1275
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1276
1276
|
var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinations, 10));
|
|
@@ -1301,7 +1301,7 @@
|
|
|
1301
1301
|
while (cardsToCheck.o() >= shortestCombinationSupport) {
|
|
1302
1302
|
var combinationCards = createCombination(this, cardsToCheck, supportedCombinations);
|
|
1303
1303
|
combinations.j(toList(combinationCards));
|
|
1304
|
-
cardsToCheck.
|
|
1304
|
+
cardsToCheck.h2(combinationCards);
|
|
1305
1305
|
}
|
|
1306
1306
|
// Inline function 'kotlin.collections.sortedBy' call
|
|
1307
1307
|
// Inline function 'kotlin.comparisons.compareBy' call
|
|
@@ -1326,7 +1326,7 @@
|
|
|
1326
1326
|
};
|
|
1327
1327
|
protoOf(DealerReducerImpl).j5w = function (cards, cardToRemove) {
|
|
1328
1328
|
var tmp;
|
|
1329
|
-
if (!cardToRemove.x5t() && cards.
|
|
1329
|
+
if (!cardToRemove.x5t() && cards.u1(cardToRemove)) {
|
|
1330
1330
|
if (this.m5w_1) {
|
|
1331
1331
|
this.l5w_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
|
|
1332
1332
|
}
|
|
@@ -1368,7 +1368,7 @@
|
|
|
1368
1368
|
if (this.m5w_1) {
|
|
1369
1369
|
this.l5w_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.o() + 1 | 0));
|
|
1370
1370
|
}
|
|
1371
|
-
if (cards.
|
|
1371
|
+
if (cards.u1(cardToAdd)) {
|
|
1372
1372
|
this.l5w_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
|
|
1373
1373
|
}
|
|
1374
1374
|
return plus_0(cards, cardToAdd);
|