raspberry_games_server_game_logic 1.8.433 → 1.8.435

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "main": "Logic_Debertz-game_server.js",
3
3
  "types": "Logic_Debertz-game_server.d.ts",
4
- "version": "1.8.433",
4
+ "version": "1.8.435",
5
5
  "name": "raspberry_games_server_game_logic",
6
6
  "dependencies": {
7
7
  "@js-joda/core": "3.2.0",
@@ -95,11 +95,11 @@
95
95
  initMetadataForClass(CardsRandomProvider, 'CardsRandomProvider', VOID, Enum);
96
96
  function standardShuffledCards$default(cards, times, $super) {
97
97
  times = times === VOID ? 3 : times;
98
- return $super === VOID ? this.n5e(cards, times) : $super.n5e.call(this, cards, times);
98
+ return $super === VOID ? this.r5e(cards, times) : $super.r5e.call(this, cards, times);
99
99
  }
100
100
  function realLifeShuffledCards$default(cards, times, $super) {
101
101
  times = times === VOID ? 20 : times;
102
- return $super === VOID ? this.p5e(cards, times) : $super.p5e.call(this, cards, times);
102
+ return $super === VOID ? this.t5e(cards, times) : $super.t5e.call(this, cards, times);
103
103
  }
104
104
  initMetadataForInterface(CardsDealerProvider, 'CardsDealerProvider', VOID, VOID, VOID, [5]);
105
105
  initMetadataForCompanion(Companion_2);
@@ -112,12 +112,12 @@
112
112
  checkFromIndex = checkFromIndex === VOID ? first(supportedCombinations) : checkFromIndex;
113
113
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
114
114
  suit = suit === VOID ? null : suit;
115
- return $super === VOID ? this.f5g(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.f5g.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
115
+ return $super === VOID ? this.j5g(cards, supportedCombinations, checkFromIndex, includeCardNames, suit) : $super.j5g.call(this, cards, supportedCombinations, checkFromIndex, includeCardNames, suit);
116
116
  }
117
117
  function findSameCardsNumberCombinations$default(cards, cardsCount, includeCardNames, $super) {
118
118
  cardsCount = cardsCount === VOID ? 4 : cardsCount;
119
119
  includeCardNames = includeCardNames === VOID ? null : includeCardNames;
120
- return $super === VOID ? this.h5g(cards, cardsCount, includeCardNames) : $super.h5g.call(this, cards, cardsCount, includeCardNames);
120
+ return $super === VOID ? this.l5g(cards, cardsCount, includeCardNames) : $super.l5g.call(this, cards, cardsCount, includeCardNames);
121
121
  }
122
122
  initMetadataForInterface(CombinationsCheckerProvider, 'CombinationsCheckerProvider');
123
123
  initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
@@ -126,7 +126,7 @@
126
126
  initMetadataForClass(DealerReducerImpl, 'DealerReducerImpl', VOID, VOID, [DealerReducer]);
127
127
  //endregion
128
128
  function CoreConfig() {
129
- this.version = '0.0.53';
129
+ this.version = '0.0.54';
130
130
  }
131
131
  protoOf(CoreConfig).b3w = function () {
132
132
  return this.version;
@@ -321,7 +321,7 @@
321
321
  }
322
322
  var tmp1_safe_receiver = tmp;
323
323
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.t5d_1;
324
- var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.f5e(tmp2_safe_receiver, playerIndex, reverse);
324
+ var tmp3_safe_receiver = tmp2_safe_receiver == null ? null : Companion_instance_0.g5e(tmp2_safe_receiver, playerIndex, reverse);
325
325
  var tmp_1;
326
326
  if (tmp3_safe_receiver == null) {
327
327
  tmp_1 = null;
@@ -340,7 +340,7 @@
340
340
  var index = tmp_2;
341
341
  return new GameCard(index);
342
342
  };
343
- protoOf(Companion).g5e = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
343
+ protoOf(Companion).h5e = function (position, playerIndex, previousHiddenCardWithMaxIndex, reverse, $super) {
344
344
  previousHiddenCardWithMaxIndex = previousHiddenCardWithMaxIndex === VOID ? null : previousHiddenCardWithMaxIndex;
345
345
  reverse = reverse === VOID ? false : reverse;
346
346
  return $super === VOID ? this.y5d(position, playerIndex, previousHiddenCardWithMaxIndex, reverse) : $super.y5d.call(this, position, playerIndex, previousHiddenCardWithMaxIndex, reverse);
@@ -461,8 +461,9 @@
461
461
  this.c5e_1 = 52;
462
462
  this.d5e_1 = 150;
463
463
  this.e5e_1 = 53;
464
+ this.f5e_1 = 999;
464
465
  }
465
- protoOf(Companion_0).f5e = function (_this__u8e3s4, playerIndex, reverse) {
466
+ protoOf(Companion_0).g5e = function (_this__u8e3s4, playerIndex, reverse) {
466
467
  var tmp;
467
468
  if (reverse) {
468
469
  tmp = _this__u8e3s4 + (53 + imul(playerIndex, 14) | 0) | 0;
@@ -534,7 +535,7 @@
534
535
  function GameCard(index) {
535
536
  this.t5d_1 = index;
536
537
  }
537
- protoOf(GameCard).h5e = function () {
538
+ protoOf(GameCard).i5e = function () {
538
539
  var tmp;
539
540
  var containsArg = this.t5d_1;
540
541
  if (0 <= containsArg ? containsArg <= 13 : false) {
@@ -561,27 +562,39 @@
561
562
  if (this.z5d()) {
562
563
  tmp = -1;
563
564
  } else {
564
- tmp = this.t5d_1 - imul(13, getIndex(this.h5e())) | 0;
565
+ tmp = this.t5d_1 - imul(13, getIndex(this.i5e())) | 0;
565
566
  }
566
567
  return tmp;
567
568
  };
568
569
  protoOf(GameCard).r2 = function () {
569
570
  return this.z5d() ? CardName_HIDDEN_getInstance() : getName(Companion_instance_0, this.u5d());
570
571
  };
571
- protoOf(GameCard).i5e = function () {
572
+ protoOf(GameCard).j5e = function () {
572
573
  return !_get_isShirt__vd98rp(this) && !this.z5d();
573
574
  };
575
+ protoOf(GameCard).k5e = function () {
576
+ return this.t5d_1 === 999;
577
+ };
574
578
  protoOf(GameCard).z5d = function () {
575
579
  return this.t5d_1 >= 53 && this.t5d_1 <= 105;
576
580
  };
577
581
  protoOf(GameCard).toString = function () {
578
- if (_get_isShirt__vd98rp(this)) {
579
- return 'GameCard(SHIRT, ' + this.t5d_1 + ')';
582
+ return 'GameCard' + this.l5e();
583
+ };
584
+ protoOf(GameCard).l5e = function () {
585
+ return '{' + this.m5e() + ', ' + this.t5d_1 + '}';
586
+ };
587
+ protoOf(GameCard).m5e = function () {
588
+ if (this.k5e()) {
589
+ return 'stub';
580
590
  }
581
591
  if (this.z5d()) {
582
- return 'GameCard(HIDDEN, ' + this.t5d_1 + ')';
592
+ return 'hidden';
593
+ }
594
+ if (_get_isShirt__vd98rp(this)) {
595
+ return 'shirt';
583
596
  }
584
- return 'GameCard(' + this.h5e().toString() + this.r2().toString() + ', ' + this.t5d_1 + ')';
597
+ return this.i5e().toString() + this.r2().toString();
585
598
  };
586
599
  protoOf(GameCard).hashCode = function () {
587
600
  return this.t5d_1;
@@ -597,7 +610,7 @@
597
610
  return true;
598
611
  };
599
612
  function _get_$cachedSerializer__te6jhj($this) {
600
- return $this.j5e_1.x();
613
+ return $this.n5e_1.x();
601
614
  }
602
615
  function Suit$Companion$_anonymous__cbm2iq() {
603
616
  return createSimpleEnumSerializer('io.raspberryapps.card_game.core.data.models.cards.Suit', values());
@@ -639,7 +652,7 @@
639
652
  Companion_instance_1 = this;
640
653
  var tmp = this;
641
654
  var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
642
- tmp.j5e_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
655
+ tmp.n5e_1 = lazy(tmp_0, Suit$Companion$_anonymous__cbm2iq);
643
656
  }
644
657
  protoOf(Companion_1).b1c = function () {
645
658
  return _get_$cachedSerializer__te6jhj(this);
@@ -762,7 +775,7 @@
762
775
  }
763
776
  function Companion_2() {
764
777
  }
765
- protoOf(Companion_2).h5f = function (randomPoolProvider, logger) {
778
+ protoOf(Companion_2).l5f = function (randomPoolProvider, logger) {
766
779
  var tmp0_random = new SecureRandom(logger);
767
780
  return new CardsDealerProviderImpl(tmp0_random, randomPoolProvider, logger);
768
781
  };
@@ -772,12 +785,12 @@
772
785
  }
773
786
  function $createNewShuffledCardDeckCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, resultContinuation) {
774
787
  CoroutineImpl.call(this, resultContinuation);
775
- this.q5f_1 = _this__u8e3s4;
776
- this.r5f_1 = leftCardIndexForEachSuit;
777
- this.s5f_1 = rightCardIndexForEachSuit;
778
- this.t5f_1 = approximateRoundCountForGame;
779
- this.u5f_1 = userData;
780
- this.v5f_1 = provider;
788
+ this.u5f_1 = _this__u8e3s4;
789
+ this.v5f_1 = leftCardIndexForEachSuit;
790
+ this.w5f_1 = rightCardIndexForEachSuit;
791
+ this.x5f_1 = approximateRoundCountForGame;
792
+ this.y5f_1 = userData;
793
+ this.z5f_1 = provider;
781
794
  }
782
795
  protoOf($createNewShuffledCardDeckCOROUTINE$).a9 = function () {
783
796
  var suspendResult = this.u8_1;
@@ -787,17 +800,17 @@
787
800
  switch (tmp) {
788
801
  case 0:
789
802
  this.t8_1 = 4;
790
- var tmp0 = this.v5f_1.q2_1;
803
+ var tmp0 = this.z5f_1.q2_1;
791
804
  if (tmp0 === 0) {
792
805
  var tmp_0 = this;
793
- var it = this.q5f_1.k5e(this.r5f_1, this.s5f_1);
794
- tmp_0.w5f_1 = this.q5f_1.o5e(it);
806
+ var it = this.u5f_1.o5e(this.v5f_1, this.w5f_1);
807
+ tmp_0.a5g_1 = this.u5f_1.s5e(it);
795
808
  this.s8_1 = 3;
796
809
  continue $sm;
797
810
  } else {
798
811
  if (tmp0 === 1) {
799
812
  this.s8_1 = 2;
800
- suspendResult = getRandomOrgCards(this.q5f_1, this.r5f_1, this.s5f_1, this.t5f_1, this.u5f_1, false, this);
813
+ suspendResult = getRandomOrgCards(this.u5f_1, this.v5f_1, this.w5f_1, this.x5f_1, this.y5f_1, false, this);
801
814
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
802
815
  return suspendResult;
803
816
  }
@@ -805,7 +818,7 @@
805
818
  } else {
806
819
  if (tmp0 === 2) {
807
820
  this.s8_1 = 1;
808
- suspendResult = getRandomOrgCards(this.q5f_1, this.r5f_1, this.s5f_1, this.t5f_1, this.u5f_1, true, this);
821
+ suspendResult = getRandomOrgCards(this.u5f_1, this.v5f_1, this.w5f_1, this.x5f_1, this.y5f_1, true, this);
809
822
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
810
823
  return suspendResult;
811
824
  }
@@ -819,15 +832,15 @@
819
832
 
820
833
  break;
821
834
  case 1:
822
- this.w5f_1 = suspendResult;
835
+ this.a5g_1 = suspendResult;
823
836
  this.s8_1 = 3;
824
837
  continue $sm;
825
838
  case 2:
826
- this.w5f_1 = suspendResult;
839
+ this.a5g_1 = suspendResult;
827
840
  this.s8_1 = 3;
828
841
  continue $sm;
829
842
  case 3:
830
- return this.w5f_1;
843
+ return this.a5g_1;
831
844
  case 4:
832
845
  throw this.v8_1;
833
846
  }
@@ -844,12 +857,12 @@
844
857
  };
845
858
  function $getRandomOrgCardsCOROUTINE$(_this__u8e3s4, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundsCount, userData, signed, resultContinuation) {
846
859
  CoroutineImpl.call(this, resultContinuation);
847
- this.a5f_1 = _this__u8e3s4;
848
- this.b5f_1 = leftCardIndexForEachSuit;
849
- this.c5f_1 = rightCardIndexForEachSuit;
850
- this.d5f_1 = approximateRoundsCount;
851
- this.e5f_1 = userData;
852
- this.f5f_1 = signed;
860
+ this.e5f_1 = _this__u8e3s4;
861
+ this.f5f_1 = leftCardIndexForEachSuit;
862
+ this.g5f_1 = rightCardIndexForEachSuit;
863
+ this.h5f_1 = approximateRoundsCount;
864
+ this.i5f_1 = userData;
865
+ this.j5f_1 = signed;
853
866
  }
854
867
  protoOf($getRandomOrgCardsCOROUTINE$).a9 = function () {
855
868
  var suspendResult = this.u8_1;
@@ -859,11 +872,11 @@
859
872
  switch (tmp) {
860
873
  case 0:
861
874
  this.t8_1 = 5;
862
- var cardsCount = this.a5f_1.r5e(this.b5f_1, this.c5f_1);
863
- var tmp0_$this = this.a5f_1.y5f_1;
875
+ var cardsCount = this.e5f_1.v5e(this.f5f_1, this.g5f_1);
876
+ var tmp0_$this = this.e5f_1.c5g_1;
864
877
  var tmp1_max = cardsCount - 1 | 0;
865
878
  this.s8_1 = 1;
866
- suspendResult = tmp0_$this.m58(this.d5f_1, this.e5f_1, 0, tmp1_max, cardsCount, this.f5f_1, VOID, this);
879
+ suspendResult = tmp0_$this.m58(this.h5f_1, this.i5f_1, 0, tmp1_max, cardsCount, this.j5f_1, VOID, this);
867
880
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
868
881
  return suspendResult;
869
882
  }
@@ -882,21 +895,21 @@
882
895
  throwOnFailure(result);
883
896
  var tmp_1 = _Result___get_value__impl__bjfvqg(result);
884
897
  var tmp2_cards = ((tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE()).cards;
885
- var this_0 = normalizeCards(this.a5f_1, tmp2_cards, this.b5f_1);
898
+ var this_0 = normalizeCards(this.e5f_1, tmp2_cards, this.f5f_1);
886
899
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
887
900
  var _iterator__ex2g4s = this_0.l();
888
901
  while (_iterator__ex2g4s.m()) {
889
902
  var item = _iterator__ex2g4s.n();
890
903
  destination.j(Companion_instance.x5d(item));
891
904
  }
892
- tmp_0.g5f_1 = destination;
905
+ tmp_0.k5f_1 = destination;
893
906
  this.s8_1 = 4;
894
907
  continue $sm;
895
908
  } else {
896
909
  var exception = Result__exceptionOrNull_impl_p6xea9(result);
897
- this.a5f_1.z5f_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
910
+ this.e5f_1.d5g_1.v('CardsDealerProvider', 'getRandomOrgCards: ' + (exception == null ? null : exception.message), exception);
898
911
  this.s8_1 = 3;
899
- suspendResult = this.a5f_1.l5e(this.b5f_1, this.c5f_1, this.d5f_1, this.e5f_1, CardsRandomProvider_CUSTOM_getInstance(), this);
912
+ suspendResult = this.e5f_1.p5e(this.f5f_1, this.g5f_1, this.h5f_1, this.i5f_1, CardsRandomProvider_CUSTOM_getInstance(), this);
900
913
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
901
914
  return suspendResult;
902
915
  }
@@ -904,11 +917,11 @@
904
917
  }
905
918
 
906
919
  case 3:
907
- this.g5f_1 = suspendResult;
920
+ this.k5f_1 = suspendResult;
908
921
  this.s8_1 = 4;
909
922
  continue $sm;
910
923
  case 4:
911
- return this.g5f_1;
924
+ return this.k5f_1;
912
925
  case 5:
913
926
  throw this.v8_1;
914
927
  }
@@ -924,11 +937,11 @@
924
937
  while (true);
925
938
  };
926
939
  function CardsDealerProviderImpl(random, randomPoolProvider, logger) {
927
- this.x5f_1 = random;
928
- this.y5f_1 = randomPoolProvider;
929
- this.z5f_1 = logger;
940
+ this.b5g_1 = random;
941
+ this.c5g_1 = randomPoolProvider;
942
+ this.d5g_1 = logger;
930
943
  }
931
- protoOf(CardsDealerProviderImpl).k5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
944
+ protoOf(CardsDealerProviderImpl).o5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
932
945
  // Inline function 'kotlin.collections.flatMap' call
933
946
  var tmp0 = get_entries();
934
947
  // Inline function 'kotlin.collections.flatMapTo' call
@@ -937,7 +950,7 @@
937
950
  while (_iterator__ex2g4s.m()) {
938
951
  var element = _iterator__ex2g4s.n();
939
952
  // Inline function 'kotlin.collections.map' call
940
- var this_0 = this.a5g(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
953
+ var this_0 = this.e5g(leftCardIndexForEachSuit, rightCardIndexForEachSuit);
941
954
  // Inline function 'kotlin.collections.mapTo' call
942
955
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
943
956
  var inductionVariable = this_0.a1_1;
@@ -956,27 +969,27 @@
956
969
  }
957
970
  return destination;
958
971
  };
959
- protoOf(CardsDealerProviderImpl).a5g = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
972
+ protoOf(CardsDealerProviderImpl).e5g = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
960
973
  return until(leftCardIndexForEachSuit, 13 - rightCardIndexForEachSuit | 0);
961
974
  };
962
- protoOf(CardsDealerProviderImpl).r5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
975
+ protoOf(CardsDealerProviderImpl).v5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
963
976
  // Inline function 'kotlin.collections.sumOf' call
964
977
  var sum = 0;
965
978
  var _iterator__ex2g4s = get_entries().l();
966
979
  while (_iterator__ex2g4s.m()) {
967
980
  var element = _iterator__ex2g4s.n();
968
981
  var tmp = sum;
969
- sum = tmp + count(this.a5g(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
982
+ sum = tmp + count(this.e5g(leftCardIndexForEachSuit, rightCardIndexForEachSuit)) | 0;
970
983
  }
971
984
  return sum;
972
985
  };
973
- protoOf(CardsDealerProviderImpl).l5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
986
+ protoOf(CardsDealerProviderImpl).p5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
974
987
  var tmp = new $createNewShuffledCardDeckCOROUTINE$(this, leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion);
975
988
  tmp.u8_1 = Unit_instance;
976
989
  tmp.v8_1 = null;
977
990
  return tmp.a9();
978
991
  };
979
- protoOf(CardsDealerProviderImpl).m5e = function (count, cards) {
992
+ protoOf(CardsDealerProviderImpl).q5e = function (count, cards) {
980
993
  // Inline function 'kotlin.collections.mutableListOf' call
981
994
  // Inline function 'kotlin.apply' call
982
995
  var this_0 = ArrayList_init_$Create$();
@@ -1022,7 +1035,7 @@
1022
1035
  }
1023
1036
  return this_0;
1024
1037
  };
1025
- protoOf(CardsDealerProviderImpl).n5e = function (cards, times) {
1038
+ protoOf(CardsDealerProviderImpl).r5e = function (cards, times) {
1026
1039
  // Inline function 'kotlin.let' call
1027
1040
  var shuffled = toMutableList(cards);
1028
1041
  var inductionVariable = 0;
@@ -1030,17 +1043,17 @@
1030
1043
  do {
1031
1044
  var i = inductionVariable;
1032
1045
  inductionVariable = inductionVariable + 1 | 0;
1033
- shuffled = this.x5f_1.q5d(shuffled);
1046
+ shuffled = this.b5g_1.q5d(shuffled);
1034
1047
  }
1035
1048
  while (inductionVariable < times);
1036
1049
  return shuffled;
1037
1050
  };
1038
- protoOf(CardsDealerProviderImpl).p5e = function (cards, times) {
1039
- return toList(overhand(riffle(toMutableList(cards), times, this.x5f_1), times, this.x5f_1));
1051
+ protoOf(CardsDealerProviderImpl).t5e = function (cards, times) {
1052
+ return toList(overhand(riffle(toMutableList(cards), times, this.b5g_1), times, this.b5g_1));
1040
1053
  };
1041
1054
  function Companion_3() {
1042
1055
  }
1043
- protoOf(Companion_3).b5g = function () {
1056
+ protoOf(Companion_3).f5g = function () {
1044
1057
  // Inline function 'kotlin.collections.mutableListOf' call
1045
1058
  // Inline function 'kotlin.apply' call
1046
1059
  var this_0 = ArrayList_init_$Create$();
@@ -1051,7 +1064,7 @@
1051
1064
  this_0.q(listOf([Companion_instance.w5d(Suit_DIAMOND_getInstance(), CardName_ACE_getInstance()), Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_EIGHT_getInstance()), Companion_instance.w5d(Suit_DIAMOND_getInstance(), CardName_KING_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_NINE_getInstance()), Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_ACE_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_KING_getInstance()), Companion_instance.w5d(Suit_DIAMOND_getInstance(), CardName_QUEEN_getInstance()), Companion_instance.w5d(Suit_HEART_getInstance(), CardName_NINE_getInstance())]));
1052
1065
  return this_0;
1053
1066
  };
1054
- protoOf(Companion_3).c5g = function () {
1067
+ protoOf(Companion_3).g5g = function () {
1055
1068
  return listOf([Companion_instance.w5d(Suit_CLUB_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w5d(Suit_HEART_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_SEVEN_getInstance()), Companion_instance.w5d(Suit_SPADE_getInstance(), CardName_EIGHT_getInstance())]);
1056
1069
  };
1057
1070
  var Companion_instance_3;
@@ -1059,28 +1072,28 @@
1059
1072
  return Companion_instance_3;
1060
1073
  }
1061
1074
  function FakeCardsDealerProvider(cards, cardsForLot) {
1062
- cards = cards === VOID ? Companion_instance_3.b5g() : cards;
1063
- cardsForLot = cardsForLot === VOID ? Companion_instance_3.c5g() : cardsForLot;
1064
- this.d5g_1 = cards;
1065
- this.e5g_1 = cardsForLot;
1075
+ cards = cards === VOID ? Companion_instance_3.f5g() : cards;
1076
+ cardsForLot = cardsForLot === VOID ? Companion_instance_3.g5g() : cardsForLot;
1077
+ this.h5g_1 = cards;
1078
+ this.i5g_1 = cardsForLot;
1066
1079
  }
1067
- protoOf(FakeCardsDealerProvider).k5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1068
- return this.d5g_1;
1080
+ protoOf(FakeCardsDealerProvider).o5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1081
+ return this.h5g_1;
1069
1082
  };
1070
- protoOf(FakeCardsDealerProvider).l5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
1071
- return this.d5g_1;
1083
+ protoOf(FakeCardsDealerProvider).p5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit, approximateRoundCountForGame, userData, provider, $completion) {
1084
+ return this.h5g_1;
1072
1085
  };
1073
- protoOf(FakeCardsDealerProvider).m5e = function (count, cards) {
1074
- return this.e5g_1;
1086
+ protoOf(FakeCardsDealerProvider).q5e = function (count, cards) {
1087
+ return this.i5g_1;
1075
1088
  };
1076
- protoOf(FakeCardsDealerProvider).n5e = function (cards, times) {
1089
+ protoOf(FakeCardsDealerProvider).r5e = function (cards, times) {
1077
1090
  return cards;
1078
1091
  };
1079
- protoOf(FakeCardsDealerProvider).p5e = function (cards, times) {
1092
+ protoOf(FakeCardsDealerProvider).t5e = function (cards, times) {
1080
1093
  return cards;
1081
1094
  };
1082
- protoOf(FakeCardsDealerProvider).r5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1083
- return this.d5g_1.o();
1095
+ protoOf(FakeCardsDealerProvider).v5e = function (leftCardIndexForEachSuit, rightCardIndexForEachSuit) {
1096
+ return this.h5g_1.o();
1084
1097
  };
1085
1098
  function CombinationsCheckerProvider() {
1086
1099
  }
@@ -1107,16 +1120,16 @@
1107
1120
  return takeLast(cards, longestCombinationSupport);
1108
1121
  }
1109
1122
  function sam$kotlin_Comparator$0(function_0) {
1110
- this.k5g_1 = function_0;
1123
+ this.o5g_1 = function_0;
1111
1124
  }
1112
1125
  protoOf(sam$kotlin_Comparator$0).fc = function (a, b) {
1113
- return this.k5g_1(a, b);
1126
+ return this.o5g_1(a, b);
1114
1127
  };
1115
1128
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
1116
1129
  return this.fc(a, b);
1117
1130
  };
1118
1131
  protoOf(sam$kotlin_Comparator$0).b3 = function () {
1119
- return this.k5g_1;
1132
+ return this.o5g_1;
1120
1133
  };
1121
1134
  protoOf(sam$kotlin_Comparator$0).equals = function (other) {
1122
1135
  var tmp;
@@ -1144,7 +1157,7 @@
1144
1157
  }
1145
1158
  function CombinationsCheckerProviderImpl() {
1146
1159
  }
1147
- protoOf(CombinationsCheckerProviderImpl).f5g = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
1160
+ protoOf(CombinationsCheckerProviderImpl).j5g = function (cards, supportedCombinations, checkFromIndex, includeCardNames, suit) {
1148
1161
  // Inline function 'kotlin.apply' call
1149
1162
  var this_0 = toMutableList(cards);
1150
1163
  sortWith(this_0, CardIndexComparator_instance);
@@ -1154,7 +1167,7 @@
1154
1167
  var _iterator__ex2g4s = this_0.l();
1155
1168
  while (_iterator__ex2g4s.m()) {
1156
1169
  var element = _iterator__ex2g4s.n();
1157
- if (element.i5e()) {
1170
+ if (element.j5e()) {
1158
1171
  destination.j(element);
1159
1172
  }
1160
1173
  }
@@ -1171,14 +1184,14 @@
1171
1184
  inductionVariable = inductionVariable + 1 | 0;
1172
1185
  var previousCard = lastOrNull(combinationCards);
1173
1186
  var currentCard = sortedByIndexCards.p(i);
1174
- var isNextInRow = !(previousCard == null) && currentCard.t5d_1 === (previousCard.t5d_1 + 1 | 0) && currentCard.h5e().equals(previousCard.h5e());
1187
+ var isNextInRow = !(previousCard == null) && currentCard.t5d_1 === (previousCard.t5d_1 + 1 | 0) && currentCard.i5e().equals(previousCard.i5e());
1175
1188
  var passedCardNamesCheck = includeCardNames == null || includeCardNames.u1(currentCard.r2());
1176
- var passedSuitCheck = suit == null || currentCard.h5e().equals(suit);
1189
+ var passedSuitCheck = suit == null || currentCard.i5e().equals(suit);
1177
1190
  if (isNextInRow && passedSuitCheck && passedCardNamesCheck) {
1178
1191
  combinationCards.j(currentCard);
1179
1192
  } else {
1180
1193
  if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
1181
- combinations.q(this.j5g(toMutableList(combinationCards), supportedCombinations));
1194
+ combinations.q(this.n5g(toMutableList(combinationCards), supportedCombinations));
1182
1195
  }
1183
1196
  combinationCards.i2();
1184
1197
  if (passedSuitCheck && passedCardNamesCheck) {
@@ -1188,11 +1201,11 @@
1188
1201
  }
1189
1202
  while (inductionVariable <= last);
1190
1203
  if (combinationCards.o() > (checkFromIndex - 1 | 0)) {
1191
- combinations.q(this.j5g(toMutableList(combinationCards), supportedCombinations));
1204
+ combinations.q(this.n5g(toMutableList(combinationCards), supportedCombinations));
1192
1205
  }
1193
1206
  return combinations;
1194
1207
  };
1195
- protoOf(CombinationsCheckerProviderImpl).h5g = function (cards, cardsCount, includeCardNames) {
1208
+ protoOf(CombinationsCheckerProviderImpl).l5g = function (cards, cardsCount, includeCardNames) {
1196
1209
  // Inline function 'kotlin.apply' call
1197
1210
  var this_0 = toMutableList(cards);
1198
1211
  sortWith(this_0, CardIndexComparator_instance);
@@ -1202,7 +1215,7 @@
1202
1215
  var _iterator__ex2g4s = this_0.l();
1203
1216
  while (_iterator__ex2g4s.m()) {
1204
1217
  var element = _iterator__ex2g4s.n();
1205
- if (element.i5e()) {
1218
+ if (element.j5e()) {
1206
1219
  destination.j(element);
1207
1220
  }
1208
1221
  }
@@ -1260,7 +1273,7 @@
1260
1273
  }
1261
1274
  return destination_3;
1262
1275
  };
1263
- protoOf(CombinationsCheckerProviderImpl).j5g = function (cards, supportedCombinations) {
1276
+ protoOf(CombinationsCheckerProviderImpl).n5g = function (cards, supportedCombinations) {
1264
1277
  // Inline function 'kotlin.collections.minOf' call
1265
1278
  var iterator = supportedCombinations.l();
1266
1279
  if (!iterator.m())
@@ -1290,28 +1303,28 @@
1290
1303
  function DealerReducer() {
1291
1304
  }
1292
1305
  function DealerReducerImpl(logger, enableLogs) {
1293
- this.o5g_1 = logger;
1294
- this.p5g_1 = enableLogs;
1306
+ this.s5g_1 = logger;
1307
+ this.t5g_1 = enableLogs;
1295
1308
  }
1296
- protoOf(DealerReducerImpl).l5g = function (cards, cardsToRemove) {
1309
+ protoOf(DealerReducerImpl).p5g = function (cards, cardsToRemove) {
1297
1310
  var list = cards;
1298
1311
  var _iterator__ex2g4s = cardsToRemove.l();
1299
1312
  while (_iterator__ex2g4s.m()) {
1300
1313
  var gameCard = _iterator__ex2g4s.n();
1301
- list = this.m5g(list, gameCard);
1314
+ list = this.q5g(list, gameCard);
1302
1315
  }
1303
1316
  return list;
1304
1317
  };
1305
- protoOf(DealerReducerImpl).m5g = function (cards, cardToRemove) {
1318
+ protoOf(DealerReducerImpl).q5g = function (cards, cardToRemove) {
1306
1319
  var tmp;
1307
1320
  if (!cardToRemove.z5d() && cards.u1(cardToRemove)) {
1308
- if (this.p5g_1) {
1309
- this.o5g_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
1321
+ if (this.t5g_1) {
1322
+ this.s5g_1.d('Dealer', 'Card removed: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
1310
1323
  }
1311
1324
  tmp = minus(cards, cardToRemove);
1312
1325
  } else {
1313
- if (this.p5g_1) {
1314
- this.o5g_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
1326
+ if (this.t5g_1) {
1327
+ this.s5g_1.d('Dealer', 'Card removed as hidden: ' + cardToRemove.toString() + ', size: ' + (cards.o() - 1 | 0));
1315
1328
  }
1316
1329
  // Inline function 'kotlin.collections.filterNot' call
1317
1330
  // Inline function 'kotlin.collections.filterNotTo' call
@@ -1336,28 +1349,28 @@
1336
1349
  }
1337
1350
  var hiddenCards = destination_0;
1338
1351
  if (hiddenCards.r()) {
1339
- this.o5g_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
1352
+ this.s5g_1.w('Dealer', "Can't find card to delete for player, " + ('cards:' + toString(cards) + ', ') + ('cardToRemove: ' + cardToRemove.toString()));
1340
1353
  }
1341
1354
  tmp = plus(notHiddenCards, dropLast(hiddenCards, 1));
1342
1355
  }
1343
1356
  return tmp;
1344
1357
  };
1345
- protoOf(DealerReducerImpl).n5g = function (cards, cardToAdd) {
1346
- if (this.p5g_1) {
1347
- this.o5g_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.o() + 1 | 0));
1358
+ protoOf(DealerReducerImpl).r5g = function (cards, cardToAdd) {
1359
+ if (this.t5g_1) {
1360
+ this.s5g_1.d('Dealer', 'Card added: ' + cardToAdd.toString() + ', size: ' + (cards.o() + 1 | 0));
1348
1361
  }
1349
1362
  if (cards.u1(cardToAdd)) {
1350
- this.o5g_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
1363
+ this.s5g_1.w('Dealer', 'Card already exists for player, ' + ('cards:' + toString(cards) + ', ') + ('cardToAdd: ' + cardToAdd.toString()));
1351
1364
  }
1352
1365
  return plus_0(cards, cardToAdd);
1353
1366
  };
1354
1367
  //region block: post-declaration
1355
- protoOf(CardsDealerProviderImpl).o5e = standardShuffledCards$default;
1356
- protoOf(CardsDealerProviderImpl).q5e = realLifeShuffledCards$default;
1357
- protoOf(FakeCardsDealerProvider).o5e = standardShuffledCards$default;
1358
- protoOf(FakeCardsDealerProvider).q5e = realLifeShuffledCards$default;
1359
- protoOf(CombinationsCheckerProviderImpl).g5g = findCardsInRowCombinations$default;
1360
- protoOf(CombinationsCheckerProviderImpl).i5g = findSameCardsNumberCombinations$default;
1368
+ protoOf(CardsDealerProviderImpl).s5e = standardShuffledCards$default;
1369
+ protoOf(CardsDealerProviderImpl).u5e = realLifeShuffledCards$default;
1370
+ protoOf(FakeCardsDealerProvider).s5e = standardShuffledCards$default;
1371
+ protoOf(FakeCardsDealerProvider).u5e = realLifeShuffledCards$default;
1372
+ protoOf(CombinationsCheckerProviderImpl).k5g = findCardsInRowCombinations$default;
1373
+ protoOf(CombinationsCheckerProviderImpl).m5g = findSameCardsNumberCombinations$default;
1361
1374
  //endregion
1362
1375
  //region block: init
1363
1376
  CoreConfig_instance = new CoreConfig();