client_plugin_logic_deb 1.8.289 → 1.8.303

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.
Files changed (41) hide show
  1. package/Kosi-Kaverit-kaverit.js +71 -71
  2. package/Kosi-Kodein-kodein-di.js +629 -629
  3. package/Kotlin-DateTime-library-kotlinx-datetime.js +1444 -1444
  4. package/Logic_Debertz-client_plugin.d.ts +55 -21
  5. package/Logic_Debertz-client_plugin.js +4682 -4702
  6. package/Logic_Debertz-client_plugin.js.map +1 -1
  7. package/Logic_Debertz-core.js +2172 -2314
  8. package/Logic_Debertz-core.js.map +1 -1
  9. package/Logic_Debertz-engine.js +17943 -17620
  10. package/Logic_Debertz-engine.js.map +1 -1
  11. package/Logic_Debertz-game_client.js +10969 -10821
  12. package/Logic_Debertz-game_client.js.map +1 -1
  13. package/Logic_Debertz-game_server.js +2675 -2806
  14. package/Logic_Debertz-game_server.js.map +1 -1
  15. package/kotlin-kotlin-stdlib.js +2292 -2111
  16. package/kotlin-kotlin-stdlib.js.map +1 -1
  17. package/kotlinx-atomicfu.js +25 -25
  18. package/kotlinx-coroutines-core.js +3121 -3115
  19. package/kotlinx-coroutines-core.js.map +1 -1
  20. package/kotlinx-io-kotlinx-io-core.js +354 -354
  21. package/kotlinx-serialization-kotlinx-serialization-core.js +1882 -1882
  22. package/kotlinx-serialization-kotlinx-serialization-json.js +1517 -1517
  23. package/ktor-ktor-client-content-negotiation.js +213 -213
  24. package/ktor-ktor-client-core.js +2494 -2494
  25. package/ktor-ktor-client-logging.js +547 -547
  26. package/ktor-ktor-events.js +11 -11
  27. package/ktor-ktor-http.js +721 -721
  28. package/ktor-ktor-io.js +1626 -1626
  29. package/ktor-ktor-serialization-kotlinx-json.js +7 -7
  30. package/ktor-ktor-serialization-kotlinx.js +261 -261
  31. package/ktor-ktor-serialization.js +129 -129
  32. package/ktor-ktor-utils.js +699 -699
  33. package/ktor-ktor-websockets.js +57 -57
  34. package/package.json +1 -1
  35. package/raspberry-cardgame-lib-core.js +270 -255
  36. package/raspberry-cardgame-lib-core.js.map +1 -1
  37. package/raspberry-cardgame-lib-logger.js +97 -97
  38. package/raspberry-cardgame-lib-random.js +1060 -965
  39. package/raspberry-cardgame-lib-random.js.map +1 -1
  40. package/secure-random-secure-random.js +17 -17
  41. package/uuid.js +23 -23
@@ -19,62 +19,64 @@
19
19
  'use strict';
20
20
  //region block: imports
21
21
  var imul = Math.imul;
22
- var protoOf = kotlin_kotlin.$_$.uc;
23
- var initMetadataForObject = kotlin_kotlin.$_$.yb;
24
- var defineProp = kotlin_kotlin.$_$.kb;
25
- var THROW_CCE = kotlin_kotlin.$_$.sg;
26
- var Comparator = kotlin_kotlin.$_$.eg;
22
+ var protoOf = kotlin_kotlin.$_$.vc;
23
+ var initMetadataForObject = kotlin_kotlin.$_$.zb;
24
+ var defineProp = kotlin_kotlin.$_$.lb;
25
+ var THROW_CCE = kotlin_kotlin.$_$.tg;
26
+ var Comparator = kotlin_kotlin.$_$.fg;
27
27
  var VOID = kotlin_kotlin.$_$.f;
28
- var initMetadataForClass = kotlin_kotlin.$_$.tb;
28
+ var initMetadataForClass = kotlin_kotlin.$_$.ub;
29
29
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
30
30
  var Unit_instance = kotlin_kotlin.$_$.p5;
31
- var take = kotlin_kotlin.$_$.o9;
32
- var toList = kotlin_kotlin.$_$.s9;
33
- var takeLast = kotlin_kotlin.$_$.n9;
34
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.qh;
35
- var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
31
+ var take = kotlin_kotlin.$_$.p9;
32
+ var toList = kotlin_kotlin.$_$.t9;
33
+ var takeLast = kotlin_kotlin.$_$.o9;
34
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.rh;
35
+ var initMetadataForCompanion = kotlin_kotlin.$_$.vb;
36
36
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.w1;
37
- var Enum = kotlin_kotlin.$_$.hg;
37
+ var Enum = kotlin_kotlin.$_$.ig;
38
38
  var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
39
- var enumEntries = kotlin_kotlin.$_$.xa;
39
+ var enumEntries = kotlin_kotlin.$_$.ya;
40
40
  var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.k;
41
- var lazy = kotlin_kotlin.$_$.oh;
41
+ var lazy = kotlin_kotlin.$_$.ph;
42
42
  var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d2;
43
- var initMetadataForInterface = kotlin_kotlin.$_$.wb;
44
- var until = kotlin_kotlin.$_$.kd;
43
+ var initMetadataForInterface = kotlin_kotlin.$_$.xb;
44
+ var until = kotlin_kotlin.$_$.ld;
45
45
  var collectionSizeOrDefault = kotlin_kotlin.$_$.s6;
46
46
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.m;
47
47
  var SecureRandom = kotlin_io_raspberryapps_cardgame_random.$_$.j;
48
- var CoroutineImpl = kotlin_kotlin.$_$.va;
49
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
50
- var initMetadataForCoroutine = kotlin_kotlin.$_$.vb;
48
+ var CoroutineImpl = kotlin_kotlin.$_$.wa;
49
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ha;
50
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.wb;
51
51
  var count = kotlin_kotlin.$_$.j7;
52
- var Result = kotlin_kotlin.$_$.qg;
52
+ var Result = kotlin_kotlin.$_$.rg;
53
53
  var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.g3;
54
- var throwOnFailure = kotlin_kotlin.$_$.uh;
54
+ var throwOnFailure = kotlin_kotlin.$_$.vh;
55
55
  var _Result___get_value__impl__bjfvqg = kotlin_kotlin.$_$.j3;
56
56
  var _Result___get_isSuccess__impl__sndoy8 = kotlin_kotlin.$_$.i3;
57
57
  var addAll = kotlin_kotlin.$_$.g6;
58
58
  var Collection = kotlin_kotlin.$_$.r5;
59
- var isInterface = kotlin_kotlin.$_$.hc;
60
- var toMutableList = kotlin_kotlin.$_$.w9;
59
+ var isInterface = kotlin_kotlin.$_$.ic;
60
+ var toMutableList = kotlin_kotlin.$_$.x9;
61
+ var riffle = kotlin_io_raspberryapps_cardgame_random.$_$.l;
62
+ var overhand = kotlin_io_raspberryapps_cardgame_random.$_$.k;
61
63
  var listOf = kotlin_kotlin.$_$.q8;
62
64
  var first = kotlin_kotlin.$_$.v7;
63
- var sorted = kotlin_kotlin.$_$.l9;
65
+ var sorted = kotlin_kotlin.$_$.m9;
64
66
  var asReversed = kotlin_kotlin.$_$.k6;
65
67
  var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.d2;
66
- var equals = kotlin_kotlin.$_$.lb;
67
- var FunctionAdapter = kotlin_kotlin.$_$.za;
68
- var hashCode = kotlin_kotlin.$_$.sb;
68
+ var equals = kotlin_kotlin.$_$.mb;
69
+ var FunctionAdapter = kotlin_kotlin.$_$.ab;
70
+ var hashCode = kotlin_kotlin.$_$.tb;
69
71
  var first_0 = kotlin_kotlin.$_$.u7;
70
- var compareValues = kotlin_kotlin.$_$.ea;
71
- var sortWith = kotlin_kotlin.$_$.j9;
72
+ var compareValues = kotlin_kotlin.$_$.fa;
73
+ var sortWith = kotlin_kotlin.$_$.k9;
72
74
  var lastOrNull = kotlin_kotlin.$_$.k8;
73
75
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
74
- var sortedWith = kotlin_kotlin.$_$.k9;
76
+ var sortedWith = kotlin_kotlin.$_$.l9;
75
77
  var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.b2;
76
- var compareTo = kotlin_kotlin.$_$.jb;
77
- var toString = kotlin_kotlin.$_$.yc;
78
+ var compareTo = kotlin_kotlin.$_$.kb;
79
+ var toString = kotlin_kotlin.$_$.zc;
78
80
  var dropLast = kotlin_kotlin.$_$.l7;
79
81
  var plus = kotlin_kotlin.$_$.z8;
80
82
  var minus = kotlin_kotlin.$_$.u8;
@@ -94,7 +96,11 @@
94
96
  initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
95
97
  function standardShuffledCards$default(cards, times, $super) {
96
98
  times = times === VOID ? 3 : times;
97
- return $super === VOID ? this.x6a(cards, times) : $super.x6a.call(this, cards, times);
99
+ return $super === VOID ? this.d6b(cards, times) : $super.d6b.call(this, cards, times);
100
+ }
101
+ function realLifeShuffledCards$default(cards, times, $super) {
102
+ times = times === VOID ? 20 : times;
103
+ return $super === VOID ? this.f6b(cards, times) : $super.f6b.call(this, cards, times);
98
104
  }
99
105
  initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
100
106
  initMetadataForCompanion(Companion_2);
@@ -107,12 +113,12 @@
107
113
  checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
108
114
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
109
115
  suit = suit === VOID ? null : suit;
110
- return $super === VOID ? this.t6c(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.t6c.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
116
+ return $super === VOID ? this.b6d(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.b6d.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
111
117
  }
112
118
  function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
113
119
  cardsCount = cardsCount === VOID ? 4 : cardsCount;
114
120
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
115
- return $super === VOID ? this.v6c(cards, cardsCount, includeCardNames) : $super.v6c.call(this, cards, cardsCount, includeCardNames);
121
+ return $super === VOID ? this.d6d(cards, cardsCount, includeCardNames) : $super.d6d.call(this, cards, cardsCount, includeCardNames);
116
122
  }
117
123
  initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
118
124
  initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
@@ -121,9 +127,9 @@
121
127
  initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
122
128
  //endregion
123
129
  function CoreConfig() {
124
- this.version = '0.0.39';
130
+ this.version = '0.0.40';
125
131
  }
126
- protoOf(CoreConfig).i33 = function () {
132
+ protoOf(CoreConfig).k33 = function () {
127
133
  return this.version;
128
134
  };
129
135
  var CoreConfig_instance;
@@ -132,33 +138,33 @@
132
138
  }
133
139
  function CardIndexComparator() {
134
140
  }
135
- protoOf(CardIndexComparator).c6a = function (a, b) {
136
- return a.d6a_1 - b.d6a_1 | 0;
141
+ protoOf(CardIndexComparator).h6a = function (a, b) {
142
+ return a.i6a_1 - b.i6a_1 | 0;
137
143
  };
138
144
  protoOf(CardIndexComparator).compare = function (a, b) {
139
145
  var tmp = a instanceof GameCard ? a : THROW_CCE();
140
- return this.c6a(tmp, b instanceof GameCard ? b : THROW_CCE());
146
+ return this.h6a(tmp, b instanceof GameCard ? b : THROW_CCE());
141
147
  };
142
148
  var CardIndexComparator_instance;
143
149
  function CardIndexComparator_getInstance() {
144
150
  return CardIndexComparator_instance;
145
151
  }
146
152
  function CardSuitSortingComparator(suit) {
147
- this.e6a_1 = suit;
153
+ this.j6a_1 = suit;
148
154
  }
149
- protoOf(CardSuitSortingComparator).c6a = function (a, b) {
150
- if (!a.f6a() || !b.f6a()) {
155
+ protoOf(CardSuitSortingComparator).h6a = function (a, b) {
156
+ if (!a.k6a() || !b.k6a()) {
151
157
  return 0;
152
158
  }
153
- var suitIndexL = this.e6a_1.u1(a.g6a());
154
- var suitIndexR = this.e6a_1.u1(b.g6a());
155
- var sortedNumberL = imul(suitIndexL, 13) + a.h6a() | 0;
156
- var sortedNumberR = imul(suitIndexR, 13) + b.h6a() | 0;
159
+ var suitIndexL = this.j6a_1.u1(a.l6a());
160
+ var suitIndexR = this.j6a_1.u1(b.l6a());
161
+ var sortedNumberL = imul(suitIndexL, 13) + a.m6a() | 0;
162
+ var sortedNumberR = imul(suitIndexR, 13) + b.m6a() | 0;
157
163
  return sortedNumberL - sortedNumberR | 0;
158
164
  };
159
165
  protoOf(CardSuitSortingComparator).compare = function (a, b) {
160
166
  var tmp = a instanceof GameCard ? a : THROW_CCE();
161
- return this.c6a(tmp, b instanceof GameCard ? b : THROW_CCE());
167
+ return this.h6a(tmp, b instanceof GameCard ? b : THROW_CCE());
162
168
  };
163
169
  function filterByCardName(_this__u8e3s4, name) {
164
170
  // Inline function 'kotlin.collections.filter' call
@@ -176,12 +182,12 @@
176
182
  }
177
183
  function CardNumberComparator() {
178
184
  }
179
- protoOf(CardNumberComparator).c6a = function (a, b) {
180
- return b.h6a() - a.h6a() | 0;
185
+ protoOf(CardNumberComparator).h6a = function (a, b) {
186
+ return b.m6a() - a.m6a() | 0;
181
187
  };
182
188
  protoOf(CardNumberComparator).compare = function (a, b) {
183
189
  var tmp = a instanceof GameCard ? a : THROW_CCE();
184
- return this.c6a(tmp, b instanceof GameCard ? b : THROW_CCE());
190
+ return this.h6a(tmp, b instanceof GameCard ? b : THROW_CCE());
185
191
  };
186
192
  var CardNumberComparator_instance;
187
193
  function CardNumberComparator_getInstance() {
@@ -212,7 +218,7 @@
212
218
  var element = indexedObject[inductionVariable];
213
219
  inductionVariable = inductionVariable + 1 | 0;
214
220
  // Inline function 'io.raspberryapps.card_game.core.data.models.cards.byCardNamePredicate.<anonymous>.<anonymous>' call
215
- if (p1.o2().equals(element)) {
221
+ if (p1.p2().equals(element)) {
216
222
  tmp$ret$1 = true;
217
223
  break $l$block;
218
224
  }
@@ -238,7 +244,7 @@
238
244
  var CardName_STUB_instance;
239
245
  function getShortName($this) {
240
246
  var tmp;
241
- switch ($this.n2_1) {
247
+ switch ($this.o2_1) {
242
248
  case 0:
243
249
  tmp = 'A';
244
250
  break;
@@ -309,16 +315,16 @@
309
315
  }
310
316
  function Companion() {
311
317
  }
312
- protoOf(Companion).i6a = function (suit, number) {
318
+ protoOf(Companion).n6a = function (suit, number) {
313
319
  return new GameCard(getNumber(Companion_instance_0, getName(Companion_instance_0, number), suit));
314
320
  };
315
- protoOf(Companion).j6a = function (suit, cardNumber) {
321
+ protoOf(Companion).o6a = function (suit, cardNumber) {
316
322
  return new GameCard(getNumber(Companion_instance_0, cardNumber, suit));
317
323
  };
318
- protoOf(Companion).k6a = function (index) {
324
+ protoOf(Companion).p6a = function (index) {
319
325
  return new GameCard(index);
320
326
  };
321
- protoOf(Companion).l6a = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
327
+ protoOf(Companion).q6a = function (position, playerIndex, previousStubCardWithMaxIndex, reverse) {
322
328
  var tmp;
323
329
  if (previousStubCardWithMaxIndex == null) {
324
330
  tmp = null;
@@ -327,7 +333,7 @@
327
333
  // Inline function 'kotlin.contracts.contract' call
328
334
  var tmp_0;
329
335
  // Inline function 'io.raspberryapps.card_game.core.data.models.cards.Companion.createUniqueStub.<anonymous>' call
330
- if (previousStubCardWithMaxIndex.m6a()) {
336
+ if (previousStubCardWithMaxIndex.r6a()) {
331
337
  tmp_0 = previousStubCardWithMaxIndex;
332
338
  } else {
333
339
  tmp_0 = null;
@@ -335,8 +341,8 @@
335
341
  tmp = tmp_0;
336
342
  }
337
343
  var tmp3_safe_receiver = tmp;
338
- var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.d6a_1;
339
- var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.r6a(tmp4_safe_receiver, playerIndex, reverse);
344
+ var tmp4_safe_receiver = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.i6a_1;
345
+ var tmp5_safe_receiver = tmp4_safe_receiver == null ? null : Companion_instance_0.x6a(tmp4_safe_receiver, playerIndex, reverse);
340
346
  var tmp_1;
341
347
  if (tmp5_safe_receiver == null) {
342
348
  tmp_1 = null;
@@ -347,20 +353,20 @@
347
353
  tmp_1 = tmp5_safe_receiver + 1 | 0;
348
354
  }
349
355
  var tmp0_elvis_lhs = tmp_1;
350
- var previousGameCardIndex = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
356
+ var previousGameCardPosition = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
351
357
  var tmp_2;
352
358
  if (reverse) {
353
- tmp_2 = ((53 + imul(playerIndex, 14) | 0) - position | 0) - previousGameCardIndex | 0;
359
+ tmp_2 = ((53 + imul(playerIndex, 14) | 0) - position | 0) - previousGameCardPosition | 0;
354
360
  } else {
355
- tmp_2 = ((53 + imul(playerIndex, 13) | 0) + position | 0) + previousGameCardIndex | 0;
361
+ tmp_2 = ((53 + imul(playerIndex, 13) | 0) + position | 0) + previousGameCardPosition | 0;
356
362
  }
357
363
  var index = tmp_2;
358
364
  return new GameCard(index);
359
365
  };
360
- protoOf(Companion).s6a = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
366
+ protoOf(Companion).y6a = function (position, playerIndex, previousStubCardWithMaxIndex, reverse, $super) {
361
367
  previousStubCardWithMaxIndex = previousStubCardWithMaxIndex === VOID ? null : previousStubCardWithMaxIndex;
362
368
  reverse = reverse === VOID ? false : reverse;
363
- return $super === VOID ? this.l6a(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.l6a.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
369
+ return $super === VOID ? this.q6a(position, playerIndex, previousStubCardWithMaxIndex, reverse) : $super.q6a.call(this, position, playerIndex, previousStubCardWithMaxIndex, reverse);
364
370
  };
365
371
  var Companion_instance;
366
372
  function Companion_getInstance() {
@@ -371,7 +377,7 @@
371
377
  }
372
378
  function getCardNumber($this, number) {
373
379
  var tmp;
374
- switch (number.n2_1) {
380
+ switch (number.o2_1) {
375
381
  case 12:
376
382
  tmp = 0;
377
383
  break;
@@ -464,7 +470,7 @@
464
470
  return tmp;
465
471
  }
466
472
  function _get_isShirt__vd98rp($this) {
467
- return $this.d6a_1 === 52;
473
+ return $this.i6a_1 >= 150 && $this.i6a_1 <= 202;
468
474
  }
469
475
  function CardName(name, ordinal) {
470
476
  Enum.call(this, name, ordinal);
@@ -473,12 +479,13 @@
473
479
  return getShortName(this);
474
480
  };
475
481
  function Companion_0() {
476
- this.n6a_1 = -1;
477
- this.o6a_1 = 13;
478
- this.p6a_1 = 52;
479
- this.q6a_1 = 53;
482
+ this.s6a_1 = -1;
483
+ this.t6a_1 = 13;
484
+ this.u6a_1 = 52;
485
+ this.v6a_1 = 150;
486
+ this.w6a_1 = 53;
480
487
  }
481
- protoOf(Companion_0).r6a = function (_this__u8e3s4, playerIndex, reverse) {
488
+ protoOf(Companion_0).x6a = function (_this__u8e3s4, playerIndex, reverse) {
482
489
  var tmp;
483
490
  if (reverse) {
484
491
  tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
@@ -548,59 +555,59 @@
548
555
  return CardName_STUB_instance;
549
556
  }
550
557
  function GameCard(index) {
551
- this.d6a_1 = index;
558
+ this.i6a_1 = index;
552
559
  }
553
- protoOf(GameCard).g6a = function () {
560
+ protoOf(GameCard).l6a = function () {
554
561
  var tmp;
555
- var containsArg = this.d6a_1;
562
+ var containsArg = this.i6a_1;
556
563
  if (0 <= containsArg ? containsArg <= 13 : false) {
557
564
  tmp = Suit_DIAMOND_getInstance();
558
565
  } else {
559
- if (this.d6a_1 <= 26) {
566
+ if (this.i6a_1 <= 26) {
560
567
  tmp = Suit_SPADE_getInstance();
561
568
  } else {
562
- if (this.d6a_1 <= 39) {
569
+ if (this.i6a_1 <= 39) {
563
570
  tmp = Suit_HEART_getInstance();
564
571
  } else {
565
- if (this.d6a_1 <= 52) {
572
+ if (this.i6a_1 <= 52) {
566
573
  tmp = Suit_CLUB_getInstance();
567
574
  } else {
568
- throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.d6a_1);
575
+ throw IllegalStateException_init_$Create$('Invalid suitCard in Card.getValue() ' + this.i6a_1);
569
576
  }
570
577
  }
571
578
  }
572
579
  }
573
580
  return tmp;
574
581
  };
575
- protoOf(GameCard).h6a = function () {
582
+ protoOf(GameCard).m6a = function () {
576
583
  var tmp;
577
- if (this.m6a()) {
584
+ if (this.r6a()) {
578
585
  tmp = -1;
579
586
  } else {
580
- tmp = this.d6a_1 - imul(13, getIndex(this.g6a())) | 0;
587
+ tmp = this.i6a_1 - imul(13, getIndex(this.l6a())) | 0;
581
588
  }
582
589
  return tmp;
583
590
  };
584
- protoOf(GameCard).o2 = function () {
585
- return this.m6a() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.h6a());
591
+ protoOf(GameCard).p2 = function () {
592
+ return this.r6a() ? CardName_STUB_getInstance() : getName(Companion_instance_0, this.m6a());
586
593
  };
587
- protoOf(GameCard).f6a = function () {
588
- return !_get_isShirt__vd98rp(this) && !this.m6a();
594
+ protoOf(GameCard).k6a = function () {
595
+ return !_get_isShirt__vd98rp(this) && !this.r6a();
589
596
  };
590
- protoOf(GameCard).m6a = function () {
591
- return this.d6a_1 >= 53;
597
+ protoOf(GameCard).r6a = function () {
598
+ return this.i6a_1 >= 53 && this.i6a_1 <= 105;
592
599
  };
593
600
  protoOf(GameCard).toString = function () {
594
601
  if (_get_isShirt__vd98rp(this)) {
595
602
  return 'GameCard(SHIRT)';
596
603
  }
597
- if (this.m6a()) {
598
- return 'GameCard(STUB, ' + this.d6a_1 + ')';
604
+ if (this.r6a()) {
605
+ return 'GameCard(STUB, ' + this.i6a_1 + ')';
599
606
  }
600
- return 'GameCard(' + this.g6a().toString() + this.o2().toString() + ', ' + this.d6a_1 + ')';
607
+ return 'GameCard(' + this.l6a().toString() + this.p2().toString() + ', ' + this.i6a_1 + ')';
601
608
  };
602
609
  protoOf(GameCard).hashCode = function () {
603
- return this.d6a_1;
610
+ return this.i6a_1;
604
611
  };
605
612
  protoOf(GameCard).equals = function (other) {
606
613
  if (this === other)
@@ -608,12 +615,12 @@
608
615
  if (!(other instanceof GameCard))
609
616
  return false;
610
617
  var tmp0_other_with_cast = other instanceof GameCard ? other : THROW_CCE();
611
- if (!(this.d6a_1 === tmp0_other_with_cast.d6a_1))
618
+ if (!(this.i6a_1 === tmp0_other_with_cast.i6a_1))
612
619
  return false;
613
620
  return true;
614
621
  };
615
622
  function _get_$cachedSerializer__te6jhj($this) {
616
- return $this.t6a_1.u();
623
+ return $this.z6a_1.u();
617
624
  }
618
625
  function Suit$Companion$_anonymous__cbm2iq() {
619
626
  return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
@@ -624,7 +631,7 @@
624
631
  var Suit_CLUB_instance;
625
632
  function getSuitEmoji($this) {
626
633
  var tmp;
627
- switch ($this.n2_1) {
634
+ switch ($this.o2_1) {
628
635
  case 0:
629
636
  tmp = '\u2666\uFE0F';
630
637
  break;
@@ -655,13 +662,13 @@
655
662
  Companion_instance_1 = this;
656
663
  var tmp = this;
657
664
  var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
658
- tmp.t6a_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
665
+ tmp.z6a_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
659
666
  }
660
- protoOf(Companion_1).r50 = function () {
667
+ protoOf(Companion_1).t50 = function () {
661
668
  return _get_$cachedSerializer__te6jhj(this);
662
669
  };
663
- protoOf(Companion_1).o4k = function (typeParamsSerializers) {
664
- return this.r50();
670
+ protoOf(Companion_1).q4k = function (typeParamsSerializers) {
671
+ return this.t50();
665
672
  };
666
673
  var Companion_instance_1;
667
674
  function Companion_getInstance_1() {
@@ -706,7 +713,7 @@
706
713
  }
707
714
  function getIndex(_this__u8e3s4) {
708
715
  var tmp;
709
- switch (_this__u8e3s4.n2_1) {
716
+ switch (_this__u8e3s4.o2_1) {
710
717
  case 0:
711
718
  tmp = 0;
712
719
  break;
@@ -759,9 +766,9 @@
759
766
  }
760
767
  function getRandomOrgCards($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion) {
761
768
  var tmp = new $getRandomOrgCardsCOROUTINE$1($this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, $completion);
762
- tmp.g9_1 = Unit_instance;
763
- tmp.h9_1 = null;
764
- return tmp.m9();
769
+ tmp.h9_1 = Unit_instance;
770
+ tmp.i9_1 = null;
771
+ return tmp.n9();
765
772
  }
766
773
  function normalizeCards($this, cards, leftCardIndexForEachSuit) {
767
774
  var oneSuitCount = cards.m() / get_entries().m() | 0;
@@ -782,7 +789,7 @@
782
789
  }
783
790
  function Companion_2() {
784
791
  }
785
- protoOf(Companion_2).u6b = function (randomPoolProvider, logger) {
792
+ protoOf(Companion_2).c6c = function (randomPoolProvider, logger) {
786
793
  var tmp17_random = new SecureRandom(logger);
787
794
  return new CardsDealerProviderImpl(tmp17_random, randomPoolProvider, logger);
788
795
  };
@@ -792,41 +799,41 @@
792
799
  }
793
800
  function $createNewShuffledCardDeckCOROUTINE$0(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
794
801
  CoroutineImpl.call(this, resultContinuation);
795
- this.d6c_1 = _this__u8e3s4;
796
- this.e6c_1 = leftCardIndexForEachSuit;
797
- this.f6c_1 = rightCardIndexForEachSuit;
798
- this.g6c_1 = approximateRoundCountForGame;
799
- this.h6c_1 = userData;
800
- this.i6c_1 = provider;
801
- }
802
- protoOf($createNewShuffledCardDeckCOROUTINE$0).m9 = function () {
803
- var suspendResult = this.g9_1;
802
+ this.l6c_1 = _this__u8e3s4;
803
+ this.m6c_1 = leftCardIndexForEachSuit;
804
+ this.n6c_1 = rightCardIndexForEachSuit;
805
+ this.o6c_1 = approximateRoundCountForGame;
806
+ this.p6c_1 = userData;
807
+ this.q6c_1 = provider;
808
+ }
809
+ protoOf($createNewShuffledCardDeckCOROUTINE$0).n9 = function () {
810
+ var suspendResult = this.h9_1;
804
811
  $sm: do
805
812
  try {
806
- var tmp = this.e9_1;
813
+ var tmp = this.f9_1;
807
814
  switch (tmp) {
808
815
  case 0:
809
- this.f9_1 = 4;
810
- this.j6c_1 = this.i6c_1;
811
- this.k6c_1 = this.j6c_1.n2_1;
812
- if (this.k6c_1 === 0) {
816
+ this.g9_1 = 4;
817
+ this.r6c_1 = this.q6c_1;
818
+ this.s6c_1 = this.r6c_1.o2_1;
819
+ if (this.s6c_1 === 0) {
813
820
  var tmp_0 = this;
814
- var it = this.d6c_1.u6a(this.e6c_1, this.f6c_1);
815
- tmp_0.l6c_1 = this.d6c_1.y6a(it);
816
- this.e9_1 = 3;
821
+ var it = this.l6c_1.a6b(this.m6c_1, this.n6c_1);
822
+ tmp_0.t6c_1 = this.l6c_1.e6b(it);
823
+ this.f9_1 = 3;
817
824
  continue $sm;
818
825
  } else {
819
- if (this.k6c_1 === 1) {
820
- this.e9_1 = 2;
821
- suspendResult = getRandomOrgCards(this.d6c_1, this.e6c_1, this.f6c_1, this.g6c_1, this.h6c_1, false, this);
826
+ if (this.s6c_1 === 1) {
827
+ this.f9_1 = 2;
828
+ suspendResult = getRandomOrgCards(this.l6c_1, this.m6c_1, this.n6c_1, this.o6c_1, this.p6c_1, false, this);
822
829
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
823
830
  return suspendResult;
824
831
  }
825
832
  continue $sm;
826
833
  } else {
827
- if (this.k6c_1 === 2) {
828
- this.e9_1 = 1;
829
- suspendResult = getRandomOrgCards(this.d6c_1, this.e6c_1, this.f6c_1, this.g6c_1, this.h6c_1, true, this);
834
+ if (this.s6c_1 === 2) {
835
+ this.f9_1 = 1;
836
+ suspendResult = getRandomOrgCards(this.l6c_1, this.m6c_1, this.n6c_1, this.o6c_1, this.p6c_1, true, this);
830
837
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
831
838
  return suspendResult;
832
839
  }
@@ -840,95 +847,95 @@
840
847
 
841
848
  break;
842
849
  case 1:
843
- this.l6c_1 = suspendResult;
844
- this.e9_1 = 3;
850
+ this.t6c_1 = suspendResult;
851
+ this.f9_1 = 3;
845
852
  continue $sm;
846
853
  case 2:
847
- this.l6c_1 = suspendResult;
848
- this.e9_1 = 3;
854
+ this.t6c_1 = suspendResult;
855
+ this.f9_1 = 3;
849
856
  continue $sm;
850
857
  case 3:
851
- return this.l6c_1;
858
+ return this.t6c_1;
852
859
  case 4:
853
- throw this.h9_1;
860
+ throw this.i9_1;
854
861
  }
855
862
  } catch ($p) {
856
863
  var e = $p;
857
- if (this.f9_1 === 4) {
864
+ if (this.g9_1 === 4) {
858
865
  throw e;
859
866
  } else {
860
- this.e9_1 = this.f9_1;
861
- this.h9_1 = e;
867
+ this.f9_1 = this.g9_1;
868
+ this.i9_1 = e;
862
869
  }
863
870
  }
864
871
  while (true);
865
872
  };
866
873
  function $getRandomOrgCardsCOROUTINE$1(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
867
874
  CoroutineImpl.call(this, resultContinuation);
868
- this.h6b_1 = _this__u8e3s4;
869
- this.i6b_1 = leftCardIndexForEachSuit;
870
- this.j6b_1 = rightCardIndexForEachSuit;
871
- this.k6b_1 = approximateRoundsCount;
872
- this.l6b_1 = userData;
873
- this.m6b_1 = signed;
874
- }
875
- protoOf($getRandomOrgCardsCOROUTINE$1).m9 = function () {
876
- var suspendResult = this.g9_1;
875
+ this.p6b_1 = _this__u8e3s4;
876
+ this.q6b_1 = leftCardIndexForEachSuit;
877
+ this.r6b_1 = rightCardIndexForEachSuit;
878
+ this.s6b_1 = approximateRoundsCount;
879
+ this.t6b_1 = userData;
880
+ this.u6b_1 = signed;
881
+ }
882
+ protoOf($getRandomOrgCardsCOROUTINE$1).n9 = function () {
883
+ var suspendResult = this.h9_1;
877
884
  $sm: do
878
885
  try {
879
- var tmp = this.e9_1;
886
+ var tmp = this.f9_1;
880
887
  switch (tmp) {
881
888
  case 0:
882
- this.f9_1 = 5;
889
+ this.g9_1 = 5;
883
890
  var tmp_0 = this;
884
891
  var sum = 0;
885
892
  var tmp0_iterator = get_entries().j();
886
893
  while (tmp0_iterator.k()) {
887
894
  var element = tmp0_iterator.l();
888
895
  var tmp_1 = sum;
889
- sum = tmp_1 + count(getCardsRange(this.h6b_1, this.i6b_1, this.j6b_1)) | 0;
896
+ sum = tmp_1 + count(getCardsRange(this.p6b_1, this.q6b_1, this.r6b_1)) | 0;
890
897
  }
891
898
 
892
- tmp_0.n6b_1 = sum;
893
- this.o6b_1 = this.h6b_1.n6c_1;
894
- this.p6b_1 = this.n6b_1 - 1 | 0;
895
- this.e9_1 = 1;
896
- suspendResult = this.o6b_1.y5u(this.k6b_1, this.l6b_1, 0, this.p6b_1, this.n6b_1, this.m6b_1, VOID, this);
899
+ tmp_0.v6b_1 = sum;
900
+ this.w6b_1 = this.p6b_1.v6c_1;
901
+ this.x6b_1 = this.v6b_1 - 1 | 0;
902
+ this.f9_1 = 1;
903
+ suspendResult = this.w6b_1.a5v(this.s6b_1, this.t6b_1, 0, this.x6b_1, this.v6b_1, this.u6b_1, VOID, this);
897
904
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
898
905
  return suspendResult;
899
906
  }
900
907
 
901
- this.e9_1 = 2;
908
+ this.f9_1 = 2;
902
909
  continue $sm;
903
910
  case 1:
904
- this.q6b_1 = suspendResult.dk_1;
905
- suspendResult = new Result(this.q6b_1);
906
- this.e9_1 = 2;
911
+ this.y6b_1 = suspendResult.ek_1;
912
+ suspendResult = new Result(this.y6b_1);
913
+ this.f9_1 = 2;
907
914
  continue $sm;
908
915
  case 2:
909
- this.r6b_1 = suspendResult.dk_1;
910
- if (_Result___get_isSuccess__impl__sndoy8(this.r6b_1)) {
916
+ this.z6b_1 = suspendResult.ek_1;
917
+ if (_Result___get_isSuccess__impl__sndoy8(this.z6b_1)) {
911
918
  var tmp_2 = this;
912
- var this_0 = this.r6b_1;
919
+ var this_0 = this.z6b_1;
913
920
  throwOnFailure(this_0);
914
921
  var tmp_3 = _Result___get_value__impl__bjfvqg(this_0);
915
922
  var tmp14_cards = ((tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE()).cards;
916
- var this_1 = normalizeCards(this.h6b_1, tmp14_cards, this.i6b_1);
923
+ var this_1 = normalizeCards(this.p6b_1, tmp14_cards, this.q6b_1);
917
924
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
918
925
  var tmp0_iterator_0 = this_1.j();
919
926
  while (tmp0_iterator_0.k()) {
920
927
  var item = tmp0_iterator_0.l();
921
- destination.e(Companion_instance.k6a(item));
928
+ destination.e(Companion_instance.p6a(item));
922
929
  }
923
- tmp_2.s6b_1 = destination;
924
- this.e9_1 = 4;
930
+ tmp_2.a6c_1 = destination;
931
+ this.f9_1 = 4;
925
932
  continue $sm;
926
933
  } else {
927
- this.t6b_1 = Result__exceptionOrNull_impl_p6xea9(this.r6b_1);
928
- var tmp15_safe_receiver = this.t6b_1;
929
- this.h6b_1.o6c_1.w('CardsDealerProvider', 'createNewShuffledCardDeck error message = ' + (tmp15_safe_receiver == null ? null : tmp15_safe_receiver.message), this.t6b_1);
930
- this.e9_1 = 3;
931
- suspendResult = this.h6b_1.v6a(this.i6b_1, this.j6b_1, this.k6b_1, this.l6b_1, CardsRandomProvider_CUSTOM_getInstance(), this);
934
+ this.b6c_1 = Result__exceptionOrNull_impl_p6xea9(this.z6b_1);
935
+ var tmp15_safe_receiver = this.b6c_1;
936
+ this.p6b_1.w6c_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (tmp15_safe_receiver == null ? null : tmp15_safe_receiver.message), this.b6c_1);
937
+ this.f9_1 = 3;
938
+ suspendResult = this.p6b_1.b6b(this.q6b_1, this.r6b_1, this.s6b_1, this.t6b_1, CardsRandomProvider_CUSTOM_getInstance(), this);
932
939
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
933
940
  return suspendResult;
934
941
  }
@@ -936,31 +943,31 @@
936
943
  }
937
944
 
938
945
  case 3:
939
- this.s6b_1 = suspendResult;
940
- this.e9_1 = 4;
946
+ this.a6c_1 = suspendResult;
947
+ this.f9_1 = 4;
941
948
  continue $sm;
942
949
  case 4:
943
- return this.s6b_1;
950
+ return this.a6c_1;
944
951
  case 5:
945
- throw this.h9_1;
952
+ throw this.i9_1;
946
953
  }
947
954
  } catch ($p) {
948
955
  var e = $p;
949
- if (this.f9_1 === 5) {
956
+ if (this.g9_1 === 5) {
950
957
  throw e;
951
958
  } else {
952
- this.e9_1 = this.f9_1;
953
- this.h9_1 = e;
959
+ this.f9_1 = this.g9_1;
960
+ this.i9_1 = e;
954
961
  }
955
962
  }
956
963
  while (true);
957
964
  };
958
965
  function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
959
- this.m6c_1 = random;
960
- this.n6c_1 = randomPoolProvider;
961
- this.o6c_1 = logger;
966
+ this.u6c_1 = random;
967
+ this.v6c_1 = randomPoolProvider;
968
+ this.w6c_1 = logger;
962
969
  }
963
- protoOf(CardsDealerProviderImpl).u6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
970
+ protoOf(CardsDealerProviderImpl).a6b = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
964
971
  // Inline function 'kotlin.collections.flatMap' call
965
972
  // Inline function 'kotlin.collections.flatMapTo' call
966
973
  var this_0 = get_entries();
@@ -981,7 +988,7 @@
981
988
  inductionVariable = inductionVariable + 1 | 0;
982
989
  // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.createNewCardDeck.<anonymous>.<anonymous>' call
983
990
  var it = item;
984
- var tmp$ret$0 = Companion_instance.i6a(element, it);
991
+ var tmp$ret$0 = Companion_instance.n6a(element, it);
985
992
  destination_0.e(tmp$ret$0);
986
993
  }
987
994
  while (!(item === last));
@@ -990,13 +997,13 @@
990
997
  }
991
998
  return destination;
992
999
  };
993
- protoOf(CardsDealerProviderImpl).v6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
1000
+ protoOf(CardsDealerProviderImpl).b6b = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
994
1001
  var tmp = new $createNewShuffledCardDeckCOROUTINE$0(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
995
- tmp.g9_1 = Unit_instance;
996
- tmp.h9_1 = null;
997
- return tmp.m9();
1002
+ tmp.h9_1 = Unit_instance;
1003
+ tmp.i9_1 = null;
1004
+ return tmp.n9();
998
1005
  };
999
- protoOf(CardsDealerProviderImpl).w6a = function (count, cards) {
1006
+ protoOf(CardsDealerProviderImpl).c6b = function (count, cards) {
1000
1007
  // Inline function 'kotlin.apply' call
1001
1008
  // Inline function 'kotlin.collections.mutableListOf' call
1002
1009
  var this_0 = ArrayList_init_$Create$();
@@ -1030,7 +1037,7 @@
1030
1037
  while (tmp0_iterator.k()) {
1031
1038
  var element = tmp0_iterator.l();
1032
1039
  // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.getNRandomUniqueCards.<anonymous>.<anonymous>' call
1033
- if (element.h6a() === card.h6a()) {
1040
+ if (element.m6a() === card.m6a()) {
1034
1041
  tmp$ret$2 = true;
1035
1042
  break $l$block_1;
1036
1043
  }
@@ -1045,7 +1052,7 @@
1045
1052
  }
1046
1053
  return this_0;
1047
1054
  };
1048
- protoOf(CardsDealerProviderImpl).x6a = function (cards, times) {
1055
+ protoOf(CardsDealerProviderImpl).d6b = function (cards, times) {
1049
1056
  // Inline function 'kotlin.let' call
1050
1057
  // Inline function 'kotlin.contracts.contract' call
1051
1058
  // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.CardsDealerProviderImpl.standardShuffledCards.<anonymous>' call
@@ -1055,49 +1062,55 @@
1055
1062
  do {
1056
1063
  var i = inductionVariable;
1057
1064
  inductionVariable = inductionVariable + 1 | 0;
1058
- shuffled = this.m6c_1.a60(shuffled);
1065
+ shuffled = this.u6c_1.f60(shuffled);
1059
1066
  }
1060
1067
  while (inductionVariable < times);
1061
1068
  return shuffled;
1062
1069
  };
1070
+ protoOf(CardsDealerProviderImpl).f6b = function (cards, times) {
1071
+ return toList(overhand(riffle(toMutableList(cards), times, this.u6c_1), times, this.u6c_1));
1072
+ };
1063
1073
  function Companion_3() {
1064
1074
  }
1065
- protoOf(Companion_3).p6c = function () {
1075
+ protoOf(Companion_3).x6c = function () {
1066
1076
  // Inline function 'kotlin.apply' call
1067
1077
  // Inline function 'kotlin.collections.mutableListOf' call
1068
1078
  var this_0 = ArrayList_init_$Create$();
1069
1079
  // Inline function 'kotlin.contracts.contract' call
1070
1080
  // Inline function 'io.raspberryapps.card_game.core.data.providers.cards.Companion.getCards.<anonymous>' call
1071
- this_0.n(listOf([Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
1072
- this_0.n(listOf([Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
1073
- this_0.n(listOf([Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
1074
- this_0.n(listOf([Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
1075
- this_0.n(listOf([Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.j6a(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
1081
+ this_0.n(listOf([Companion_instance.o6a(Suit_DIAMOND_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.o6a(Suit_CLUB_getInstance(), CardName_NINE_getInstance()), Companion_instance.o6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.o6a(Suit_CLUB_getInstance(), CardName_TEN_getInstance()), Companion_instance.o6a(Suit_HEART_getInstance(), CardName_JACK_getInstance()), Companion_instance.o6a(Suit_HEART_getInstance(), CardName_KING_getInstance())]));
1082
+ this_0.n(listOf([Companion_instance.o6a(Suit_CLUB_getInstance(), CardName_JACK_getInstance()), Companion_instance.o6a(Suit_SPADE_getInstance(), CardName_ACE_getInstance()), Companion_instance.o6a(Suit_DIAMOND_getInstance(), CardName_NINE_getInstance()), Companion_instance.o6a(Suit_DIAMOND_getInstance(), CardName_TEN_getInstance()), Companion_instance.o6a(Suit_DIAMOND_getInstance(), CardName_JACK_getInstance()), Companion_instance.o6a(Suit_HEART_getInstance(), CardName_EIGHT_getInstance())]));
1083
+ this_0.n(listOf([Companion_instance.o6a(Suit_CLUB_getInstance(), CardName_DAME_getInstance()), Companion_instance.o6a(Suit_HEART_getInstance(), CardName_ACE_getInstance()), Companion_instance.o6a(Suit_HEART_getInstance(), CardName_DAME_getInstance()), Companion_instance.o6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.o6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.o6a(Suit_CLUB_getInstance(), CardName_KING_getInstance())]));
1084
+ this_0.n(listOf([Companion_instance.o6a(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.o6a(Suit_SPADE_getInstance(), CardName_TEN_getInstance()), Companion_instance.o6a(Suit_HEART_getInstance(), CardName_TEN_getInstance()), Companion_instance.o6a(Suit_SPADE_getInstance(), CardName_JACK_getInstance()), Companion_instance.o6a(Suit_DIAMOND_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.o6a(Suit_SPADE_getInstance(), CardName_DAME_getInstance())]));
1085
+ this_0.n(listOf([Companion_instance.o6a(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.o6a(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.o6a(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.o6a(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.o6a(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.o6a(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.o6a(Suit_DIAMOND_getInstance(), CardName_DAME_getInstance()), Companion_instance.o6a(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
1076
1086
  return this_0;
1077
1087
  };
1078
- protoOf(Companion_3).q6c = function () {
1079
- return listOf([Companion_instance.j6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.j6a(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
1088
+ protoOf(Companion_3).y6c = function () {
1089
+ return listOf([Companion_instance.o6a(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.o6a(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.o6a(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.o6a(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
1080
1090
  };
1081
1091
  var Companion_instance_3;
1082
1092
  function Companion_getInstance_3() {
1083
1093
  return Companion_instance_3;
1084
1094
  }
1085
1095
  function FakeCardsDealerProvider(cards, cardsForLot) {
1086
- cards = cards === VOID ? Companion_instance_3.p6c() : cards;
1087
- cardsForLot = cardsForLot === VOID ? Companion_instance_3.q6c() : cardsForLot;
1088
- this.r6c_1 = cards;
1089
- this.s6c_1 = cardsForLot;
1096
+ cards = cards === VOID ? Companion_instance_3.x6c() : cards;
1097
+ cardsForLot = cardsForLot === VOID ? Companion_instance_3.y6c() : cardsForLot;
1098
+ this.z6c_1 = cards;
1099
+ this.a6d_1 = cardsForLot;
1090
1100
  }
1091
- protoOf(FakeCardsDealerProvider).u6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1092
- return this.r6c_1;
1101
+ protoOf(FakeCardsDealerProvider).a6b = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1102
+ return this.z6c_1;
1093
1103
  };
1094
- protoOf(FakeCardsDealerProvider).v6a = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
1095
- return this.r6c_1;
1104
+ protoOf(FakeCardsDealerProvider).b6b = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
1105
+ return this.z6c_1;
1096
1106
  };
1097
- protoOf(FakeCardsDealerProvider).w6a = function (count, cards) {
1098
- return this.s6c_1;
1107
+ protoOf(FakeCardsDealerProvider).c6b = function (count, cards) {
1108
+ return this.a6d_1;
1109
+ };
1110
+ protoOf(FakeCardsDealerProvider).d6b = function (cards, times) {
1111
+ return cards;
1099
1112
  };
1100
- protoOf(FakeCardsDealerProvider).x6a = function (cards, times) {
1113
+ protoOf(FakeCardsDealerProvider).f6b = function (cards, times) {
1101
1114
  return cards;
1102
1115
  };
1103
1116
  function CombinationsCheckerProvider() {
@@ -1126,23 +1139,23 @@
1126
1139
  return takeLast(cards, longestCombinationSupport);
1127
1140
  }
1128
1141
  function sam$kotlin_Comparator$0(function_0) {
1129
- this.y6c_1 = function_0;
1142
+ this.g6d_1 = function_0;
1130
1143
  }
1131
- protoOf(sam$kotlin_Comparator$0).mc = function (a, b) {
1132
- return this.y6c_1(a, b);
1144
+ protoOf(sam$kotlin_Comparator$0).nc = function (a, b) {
1145
+ return this.g6d_1(a, b);
1133
1146
  };
1134
1147
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
1135
- return this.mc(a, b);
1148
+ return this.nc(a, b);
1136
1149
  };
1137
- protoOf(sam$kotlin_Comparator$0).o3 = function () {
1138
- return this.y6c_1;
1150
+ protoOf(sam$kotlin_Comparator$0).p3 = function () {
1151
+ return this.g6d_1;
1139
1152
  };
1140
1153
  protoOf(sam$kotlin_Comparator$0).equals = function (other) {
1141
1154
  var tmp;
1142
1155
  if (!(other == null) ? isInterface(other, Comparator) : false) {
1143
1156
  var tmp_0;
1144
1157
  if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
1145
- tmp_0 = equals(this.o3(), other.o3());
1158
+ tmp_0 = equals(this.p3(), other.p3());
1146
1159
  } else {
1147
1160
  tmp_0 = false;
1148
1161
  }
@@ -1153,19 +1166,19 @@
1153
1166
  return tmp;
1154
1167
  };
1155
1168
  protoOf(sam$kotlin_Comparator$0).hashCode = function () {
1156
- return hashCode(this.o3());
1169
+ return hashCode(this.p3());
1157
1170
  };
1158
1171
  function CombinationsCheckerProviderImpl$createCombinationsFromCardsInRow$lambda(a, b) {
1159
1172
  // Inline function 'kotlin.comparisons.compareValuesBy' call
1160
1173
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
1161
- var tmp = first_0(a).d6a_1;
1174
+ var tmp = first_0(a).i6a_1;
1162
1175
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.createCombinationsFromCardsInRow.<anonymous>' call
1163
- var tmp$ret$1 = first_0(b).d6a_1;
1176
+ var tmp$ret$1 = first_0(b).i6a_1;
1164
1177
  return compareValues(tmp, tmp$ret$1);
1165
1178
  }
1166
1179
  function CombinationsCheckerProviderImpl() {
1167
1180
  }
1168
- protoOf(CombinationsCheckerProviderImpl).t6c = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
1181
+ protoOf(CombinationsCheckerProviderImpl).b6d = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
1169
1182
  // Inline function 'kotlin.collections.filter' call
1170
1183
  // Inline function 'kotlin.apply' call
1171
1184
  var this_0 = toMutableList(cards);
@@ -1178,7 +1191,7 @@
1178
1191
  while (tmp0_iterator.k()) {
1179
1192
  var element = tmp0_iterator.l();
1180
1193
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findCardsInRowCombinations.<anonymous>' call
1181
- if (element.f6a()) {
1194
+ if (element.k6a()) {
1182
1195
  destination.e(element);
1183
1196
  }
1184
1197
  }
@@ -1195,14 +1208,14 @@
1195
1208
  inductionVariable = inductionVariable + 1 | 0;
1196
1209
  var previousCard = lastOrNull(combinationCards);
1197
1210
  var currentCard = sortedByIndexCards.o(i);
1198
- var isNextInRow = !(previousCard == null) && currentCard.d6a_1 === (previousCard.d6a_1 + 1 | 0) && currentCard.g6a().equals(previousCard.g6a());
1199
- var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.o2());
1200
- var passedSuitCheck = suit == null || currentCard.g6a().equals(suit);
1211
+ var isNextInRow = !(previousCard == null) && currentCard.i6a_1 === (previousCard.i6a_1 + 1 | 0) && currentCard.l6a().equals(previousCard.l6a());
1212
+ var passedCardNamesCheck = includeCardNames == null || includeCardNames.s1(currentCard.p2());
1213
+ var passedSuitCheck = suit == null || currentCard.l6a().equals(suit);
1201
1214
  if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
1202
1215
  combinationCards.e(currentCard);
1203
1216
  } else {
1204
1217
  if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
1205
- combinations.n(this.x6c(toMutableList(combinationCards), supportedCombinations));
1218
+ combinations.n(this.f6d(toMutableList(combinationCards), supportedCombinations));
1206
1219
  }
1207
1220
  combinationCards.a2();
1208
1221
  if (passedSuitCheck && passedCardNamesCheck) {
@@ -1212,11 +1225,11 @@
1212
1225
  }
1213
1226
  while (inductionVariable <= last);
1214
1227
  if (combinationCards.m() > (checkFromIndex - 1 | 0)) {
1215
- combinations.n(this.x6c(toMutableList(combinationCards), supportedCombinations));
1228
+ combinations.n(this.f6d(toMutableList(combinationCards), supportedCombinations));
1216
1229
  }
1217
1230
  return combinations;
1218
1231
  };
1219
- protoOf(CombinationsCheckerProviderImpl).v6c = function (cards, cardsCount, includeCardNames) {
1232
+ protoOf(CombinationsCheckerProviderImpl).d6d = function (cards, cardsCount, includeCardNames) {
1220
1233
  // Inline function 'kotlin.collections.filter' call
1221
1234
  // Inline function 'kotlin.collections.filter' call
1222
1235
  // Inline function 'kotlin.apply' call
@@ -1230,7 +1243,7 @@
1230
1243
  while (tmp0_iterator.k()) {
1231
1244
  var element = tmp0_iterator.l();
1232
1245
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
1233
- if (element.f6a()) {
1246
+ if (element.k6a()) {
1234
1247
  destination.e(element);
1235
1248
  }
1236
1249
  }
@@ -1240,7 +1253,7 @@
1240
1253
  while (tmp0_iterator_0.k()) {
1241
1254
  var element_0 = tmp0_iterator_0.l();
1242
1255
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
1243
- if (includeCardNames == null || includeCardNames.s1(element_0.o2())) {
1256
+ if (includeCardNames == null || includeCardNames.s1(element_0.p2())) {
1244
1257
  destination_0.e(element_0);
1245
1258
  }
1246
1259
  }
@@ -1253,14 +1266,14 @@
1253
1266
  while (tmp0_iterator_1.k()) {
1254
1267
  var element_1 = tmp0_iterator_1.l();
1255
1268
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
1256
- var key = element_1.h6a();
1269
+ var key = element_1.m6a();
1257
1270
  // Inline function 'kotlin.collections.getOrPut' call
1258
- var value = destination_1.g2(key);
1271
+ var value = destination_1.h2(key);
1259
1272
  var tmp;
1260
1273
  if (value == null) {
1261
1274
  // Inline function 'kotlin.collections.groupByTo.<anonymous>' call
1262
1275
  var answer = ArrayList_init_$Create$();
1263
- destination_1.j2(key, answer);
1276
+ destination_1.k2(key, answer);
1264
1277
  tmp = answer;
1265
1278
  } else {
1266
1279
  tmp = value;
@@ -1276,10 +1289,10 @@
1276
1289
  var element_2 = tmp0_iterator_2.l();
1277
1290
  // Inline function 'io.raspberryapps.card_game.core.data.providers.combinations.CombinationsCheckerProviderImpl.findSameCardsNumberCombinations.<anonymous>' call
1278
1291
  if (element_2.u().m() >= cardsCount) {
1279
- destination_2.j2(element_2.t(), element_2.u());
1292
+ destination_2.k2(element_2.t(), element_2.u());
1280
1293
  }
1281
1294
  }
1282
- var combinations = destination_2.i2();
1295
+ var combinations = destination_2.j2();
1283
1296
  // Inline function 'kotlin.collections.map' call
1284
1297
  // Inline function 'kotlin.collections.mapTo' call
1285
1298
  var destination_3 = ArrayList_init_$Create$_0(collectionSizeOrDefault(combinations, 10));
@@ -1292,7 +1305,7 @@
1292
1305
  }
1293
1306
  return destination_3;
1294
1307
  };
1295
- protoOf(CombinationsCheckerProviderImpl).x6c = function (cards, supportedCombinations) {
1308
+ protoOf(CombinationsCheckerProviderImpl).f6d = function (cards, supportedCombinations) {
1296
1309
  // Inline function 'kotlin.collections.minOf' call
1297
1310
  var iterator = supportedCombinations.j();
1298
1311
  if (!iterator.k())
@@ -1322,28 +1335,28 @@
1322
1335
  return sortedWith(combinations, tmp$ret$4);
1323
1336
  };
1324
1337
  function DealerReducerImpl(logger, enableLogs) {
1325
- this.z6c_1 = logger;
1326
- this.a6d_1 = enableLogs;
1338
+ this.h6d_1 = logger;
1339
+ this.i6d_1 = enableLogs;
1327
1340
  }
1328
- protoOf(DealerReducerImpl).b6d = function (cards, cardsToRemove) {
1341
+ protoOf(DealerReducerImpl).j6d = function (cards, cardsToRemove) {
1329
1342
  var list = cards;
1330
1343
  var _iterator__ex2g4s = cardsToRemove.j();
1331
1344
  while (_iterator__ex2g4s.k()) {
1332
1345
  var gameCard = _iterator__ex2g4s.l();
1333
- list = this.c6d(list, gameCard);
1346
+ list = this.k6d(list, gameCard);
1334
1347
  }
1335
1348
  return list;
1336
1349
  };
1337
- protoOf(DealerReducerImpl).c6d = function (cards, cardToRemove) {
1350
+ protoOf(DealerReducerImpl).k6d = function (cards, cardToRemove) {
1338
1351
  var tmp;
1339
- if (!cardToRemove.m6a() && cards.s1(cardToRemove)) {
1340
- if (this.a6d_1) {
1341
- this.z6c_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1352
+ if (!cardToRemove.r6a() && cards.s1(cardToRemove)) {
1353
+ if (this.i6d_1) {
1354
+ this.h6d_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1342
1355
  }
1343
1356
  tmp = minus(cards, cardToRemove);
1344
1357
  } else {
1345
- if (this.a6d_1) {
1346
- this.z6c_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1358
+ if (this.i6d_1) {
1359
+ this.h6d_1.d('Dealer', 'Card removed as stub: ' + cardToRemove.toString() + ', size: ' + (cards.m() - 1 | 0));
1347
1360
  }
1348
1361
  // Inline function 'kotlin.collections.filterNot' call
1349
1362
  // Inline function 'kotlin.collections.filterNotTo' call
@@ -1352,7 +1365,7 @@
1352
1365
  while (tmp0_iterator.k()) {
1353
1366
  var element = tmp0_iterator.l();
1354
1367
  // Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
1355
- if (!element.m6a()) {
1368
+ if (!element.r6a()) {
1356
1369
  destination.e(element);
1357
1370
  }
1358
1371
  }
@@ -1364,34 +1377,36 @@
1364
1377
  while (tmp0_iterator_0.k()) {
1365
1378
  var element_0 = tmp0_iterator_0.l();
1366
1379
  // Inline function 'io.raspberryapps.card_game.core.domain.dealer.DealerReducerImpl.removeCard.<anonymous>' call
1367
- if (element_0.m6a()) {
1380
+ if (element_0.r6a()) {
1368
1381
  destination_0.e(element_0);
1369
1382
  }
1370
1383
  }
1371
1384
  var stubCards = destination_0;
1372
1385
  if (stubCards.p()) {
1373
- this.z6c_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
1386
+ this.h6d_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
1374
1387
  }
1375
1388
  tmp = plus(notStubCards, dropLast(stubCards, 1));
1376
1389
  }
1377
1390
  return tmp;
1378
1391
  };
1379
- protoOf(DealerReducerImpl).d6d = function (cards, cardToAdd) {
1380
- if (this.a6d_1) {
1381
- this.z6c_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
1392
+ protoOf(DealerReducerImpl).l6d = function (cards, cardToAdd) {
1393
+ if (this.i6d_1) {
1394
+ this.h6d_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.m() + 1 | 0));
1382
1395
  }
1383
1396
  if (cards.s1(cardToAdd)) {
1384
- this.z6c_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
1397
+ this.h6d_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
1385
1398
  }
1386
1399
  return plus_0(cards, cardToAdd);
1387
1400
  };
1388
1401
  function DealerReducer() {
1389
1402
  }
1390
1403
  //region block: post-declaration
1391
- protoOf(CardsDealerProviderImpl).y6a = standardShuffledCards$default;
1392
- protoOf(FakeCardsDealerProvider).y6a = standardShuffledCards$default;
1393
- protoOf(CombinationsCheckerProviderImpl).u6c = findCardsInRowCombinations$default;
1394
- protoOf(CombinationsCheckerProviderImpl).w6c = findSameCardsNumberCombinations$default;
1404
+ protoOf(CardsDealerProviderImpl).e6b = standardShuffledCards$default;
1405
+ protoOf(CardsDealerProviderImpl).g6b = realLifeShuffledCards$default;
1406
+ protoOf(FakeCardsDealerProvider).e6b = standardShuffledCards$default;
1407
+ protoOf(FakeCardsDealerProvider).g6b = realLifeShuffledCards$default;
1408
+ protoOf(CombinationsCheckerProviderImpl).c6d = findCardsInRowCombinations$default;
1409
+ protoOf(CombinationsCheckerProviderImpl).e6d = findSameCardsNumberCombinations$default;
1395
1410
  //endregion
1396
1411
  //region block: init
1397
1412
  CoreConfig_instance = new CoreConfig();