raspberry_games_engine_helpers 1.8.325 → 1.8.326

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.
@@ -377,7 +377,7 @@
377
377
  return tmp;
378
378
  }
379
379
  initMetadataForInterface(AbstractWithOffsetBuilder, 'AbstractWithOffsetBuilder', VOID, VOID, [WithUtcOffset]);
380
- initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithUtcOffset, WithTime]);
380
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithDate, WithTime, WithUtcOffset]);
381
381
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
382
382
  initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
383
383
  initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
@@ -215,7 +215,7 @@
215
215
  initMetadataForClass(LoggerOutputDataDto, 'LoggerOutputDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_10});
216
216
  //endregion
217
217
  function GameEngineConfig() {
218
- this.version = '1.8.325';
218
+ this.version = '1.8.326';
219
219
  }
220
220
  protoOf(GameEngineConfig).o25 = function () {
221
221
  return this.version;
@@ -1963,8 +1963,9 @@ export declare interface GameHelper {
1963
1963
  mapPoints(points: number): games.jass.logic.data.models.table.config.PointsMode;
1964
1964
  mapPlayers(players: number): games.jass.logic.data.models.table.config.PlayersMode;
1965
1965
  mapRules(rules: any): games.jass.logic.data.models.rules.Rules;
1966
- prepareConfigObjectWithPagination(config: any): any;
1967
- prepareConfigObject(config: any): any;
1966
+ prepareLobbyConfigWithPagination(config: any): any;
1967
+ prepareLobbyConfig(config: any): any;
1968
+ prepareLeagueConfig(config: any): any;
1968
1969
  isValidConfigObject(config: any): boolean;
1969
1970
  getRulesByType(rulesSetType: games.jass.logic.data.models.rules.RulesSetType): games.jass.logic.data.models.rules.Rules;
1970
1971
  getRulesByString(name: string): games.jass.logic.data.models.rules.Rules;
@@ -755,14 +755,14 @@
755
755
  initMetadataForClass(ClearAction, 'ClearAction', ClearAction, VOID, [Action, NotValidateIfGameFinishing, NotValidateIfGameFinished]);
756
756
  initMetadataForClass(FromClientActionPayloadProvider, 'FromClientActionPayloadProvider');
757
757
  initMetadataForClass(FromClientAction, 'FromClientAction', VOID, VOID, [Action]);
758
- initMetadataForClass(PartnerSelectedFromClientAction, 'PartnerSelectedFromClientAction', VOID, FromClientAction, [FromClientAction, Action, PlayerIdContract]);
759
- initMetadataForClass(PlayerReadyFromClientAction, 'PlayerReadyFromClientAction', VOID, FromClientAction, [FromClientAction, Action, PlayerIdContract]);
760
- initMetadataForClass(SuitChoiceFromClientAction, 'SuitChoiceFromClientAction', VOID, FromClientAction, [FromClientAction, Action, PlayerIdContract]);
761
- initMetadataForClass(CombinationChoiceFromClientAction, 'CombinationChoiceFromClientAction', VOID, FromClientAction, [FromClientAction, Action, PlayerIdContract]);
762
- initMetadataForClass(CardFromClientAction, 'CardFromClientAction', VOID, FromClientAction, [FromClientAction, Action, PlayerIdContract]);
758
+ initMetadataForClass(PartnerSelectedFromClientAction, 'PartnerSelectedFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
759
+ initMetadataForClass(PlayerReadyFromClientAction, 'PlayerReadyFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
760
+ initMetadataForClass(SuitChoiceFromClientAction, 'SuitChoiceFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
761
+ initMetadataForClass(CombinationChoiceFromClientAction, 'CombinationChoiceFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
762
+ initMetadataForClass(CardFromClientAction, 'CardFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
763
763
  initMetadataForClass(MessageFromClientAction, 'MessageFromClientAction', VOID, FromClientAction);
764
764
  initMetadataForClass(ExitFromClientAction, 'ExitFromClientAction', VOID, FromClientAction);
765
- initMetadataForClass(RequestedCardDecksFromClientAction, 'RequestedCardDecksFromClientAction', VOID, FromClientAction, [FromClientAction, Action, PlayerIdContract]);
765
+ initMetadataForClass(RequestedCardDecksFromClientAction, 'RequestedCardDecksFromClientAction', VOID, FromClientAction, [FromClientAction, PlayerIdContract, Action]);
766
766
  initMetadataForCompanion(Companion_148);
767
767
  initMetadataForClass(ActionDeliveryPayload, 'ActionDeliveryPayload');
768
768
  initMetadataForCompanion(Companion_149, VOID, [SerializerFactory]);
@@ -34867,7 +34867,7 @@
34867
34867
  }
34868
34868
  function GameHelper() {
34869
34869
  }
34870
- function prepareFilterObjectInternal($this, map) {
34870
+ function prepareLobbyFilterInternal($this, map) {
34871
34871
  var jsObject = {};
34872
34872
  var tmp = map.d2('players');
34873
34873
  var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
@@ -34884,7 +34884,7 @@
34884
34884
  while (inductionVariable < last) {
34885
34885
  var element = tmp0_safe_receiver[inductionVariable];
34886
34886
  inductionVariable = inductionVariable + 1 | 0;
34887
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
34887
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
34888
34888
  validatePlayers($this, element);
34889
34889
  }
34890
34890
  tmp_0 = tmp0_safe_receiver;
@@ -34897,7 +34897,7 @@
34897
34897
  // Inline function 'kotlin.takeIf' call
34898
34898
  // Inline function 'kotlin.contracts.contract' call
34899
34899
  var tmp_2;
34900
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
34900
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
34901
34901
  // Inline function 'kotlin.collections.isNotEmpty' call
34902
34902
  // Inline function 'kotlin.collections.isEmpty' call
34903
34903
  if (!(tmp1_safe_receiver.length === 0)) {
@@ -34923,7 +34923,7 @@
34923
34923
  while (inductionVariable_0 < last_0) {
34924
34924
  var element_0 = tmp2_safe_receiver[inductionVariable_0];
34925
34925
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
34926
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
34926
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
34927
34927
  validatePoints($this, element_0);
34928
34928
  }
34929
34929
  tmp_4 = tmp2_safe_receiver;
@@ -34936,7 +34936,7 @@
34936
34936
  // Inline function 'kotlin.takeIf' call
34937
34937
  // Inline function 'kotlin.contracts.contract' call
34938
34938
  var tmp_6;
34939
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
34939
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
34940
34940
  // Inline function 'kotlin.collections.isNotEmpty' call
34941
34941
  // Inline function 'kotlin.collections.isEmpty' call
34942
34942
  if (!(tmp3_safe_receiver.length === 0)) {
@@ -34962,7 +34962,7 @@
34962
34962
  while (inductionVariable_1 < last_1) {
34963
34963
  var element_1 = tmp4_safe_receiver[inductionVariable_1];
34964
34964
  inductionVariable_1 = inductionVariable_1 + 1 | 0;
34965
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
34965
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
34966
34966
  validateTimeoutTime($this, element_1);
34967
34967
  }
34968
34968
  tmp_8 = tmp4_safe_receiver;
@@ -34975,7 +34975,7 @@
34975
34975
  // Inline function 'kotlin.takeIf' call
34976
34976
  // Inline function 'kotlin.contracts.contract' call
34977
34977
  var tmp_10;
34978
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
34978
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
34979
34979
  // Inline function 'kotlin.collections.isNotEmpty' call
34980
34980
  // Inline function 'kotlin.collections.isEmpty' call
34981
34981
  if (!(tmp5_safe_receiver.length === 0)) {
@@ -35001,7 +35001,7 @@
35001
35001
  while (inductionVariable_2 < last_2) {
35002
35002
  var element_2 = tmp6_safe_receiver[inductionVariable_2];
35003
35003
  inductionVariable_2 = inductionVariable_2 + 1 | 0;
35004
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
35004
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
35005
35005
  validateLeague($this, element_2);
35006
35006
  }
35007
35007
  tmp_12 = tmp6_safe_receiver;
@@ -35014,7 +35014,7 @@
35014
35014
  // Inline function 'kotlin.takeIf' call
35015
35015
  // Inline function 'kotlin.contracts.contract' call
35016
35016
  var tmp_14;
35017
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
35017
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
35018
35018
  // Inline function 'kotlin.collections.isNotEmpty' call
35019
35019
  // Inline function 'kotlin.collections.isEmpty' call
35020
35020
  if (!(tmp7_safe_receiver.length === 0)) {
@@ -35040,7 +35040,7 @@
35040
35040
  while (inductionVariable_3 < last_3) {
35041
35041
  var element_3 = tmp8_safe_receiver[inductionVariable_3];
35042
35042
  inductionVariable_3 = inductionVariable_3 + 1 | 0;
35043
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
35043
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
35044
35044
  validateRulesSetType($this, element_3);
35045
35045
  }
35046
35046
  tmp_16 = tmp8_safe_receiver;
@@ -35053,7 +35053,7 @@
35053
35053
  // Inline function 'kotlin.takeIf' call
35054
35054
  // Inline function 'kotlin.contracts.contract' call
35055
35055
  var tmp_18;
35056
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
35056
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
35057
35057
  // Inline function 'kotlin.collections.isNotEmpty' call
35058
35058
  // Inline function 'kotlin.collections.isEmpty' call
35059
35059
  if (!(tmp9_safe_receiver.length === 0)) {
@@ -35106,7 +35106,7 @@
35106
35106
  var tmp0_iterator = this_0.j();
35107
35107
  while (tmp0_iterator.k()) {
35108
35108
  var item = tmp0_iterator.l();
35109
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
35109
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
35110
35110
  var tmp$ret$39 = item.i2_1;
35111
35111
  destination.e(tmp$ret$39);
35112
35112
  }
@@ -35125,7 +35125,7 @@
35125
35125
  var tmp0_iterator_0 = this_1.j();
35126
35126
  while (tmp0_iterator_0.k()) {
35127
35127
  var item_0 = tmp0_iterator_0.l();
35128
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
35128
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
35129
35129
  // Inline function 'kotlin.text.lowercase' call
35130
35130
  // Inline function 'kotlin.js.asDynamic' call
35131
35131
  var tmp$ret$45 = item_0.i2_1.toLowerCase();
@@ -35402,7 +35402,11 @@
35402
35402
  var tmp$ret$0 = item.i2_1;
35403
35403
  destination.e(tmp$ret$0);
35404
35404
  }
35405
- if (!destination.p1(league)) {
35405
+ var tmp = destination;
35406
+ // Inline function 'kotlin.text.uppercase' call
35407
+ // Inline function 'kotlin.js.asDynamic' call
35408
+ var tmp$ret$4 = league.toUpperCase();
35409
+ if (!tmp.p1(tmp$ret$4)) {
35406
35410
  throw IllegalStateException_init_$Create$('Not valid league ' + league);
35407
35411
  }
35408
35412
  }
@@ -35418,7 +35422,11 @@
35418
35422
  var tmp$ret$0 = item.i2_1;
35419
35423
  destination.e(tmp$ret$0);
35420
35424
  }
35421
- if (!destination.p1(rulesSetType)) {
35425
+ var tmp = destination;
35426
+ // Inline function 'kotlin.text.uppercase' call
35427
+ // Inline function 'kotlin.js.asDynamic' call
35428
+ var tmp$ret$4 = rulesSetType.toUpperCase();
35429
+ if (!tmp.p1(tmp$ret$4)) {
35422
35430
  throw IllegalStateException_init_$Create$('Not valid rulesSetType mode ' + rulesSetType);
35423
35431
  }
35424
35432
  }
@@ -35731,7 +35739,7 @@
35731
35739
  protoOf(GameHelperImpl).mapRules = function (rules) {
35732
35740
  return mapRulesObject(this, rules);
35733
35741
  };
35734
- protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
35742
+ protoOf(GameHelperImpl).prepareLobbyConfigWithPagination = function (config) {
35735
35743
  var map = mapOfObject(config);
35736
35744
  var tmp = map.d2('limit');
35737
35745
  var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
@@ -35741,18 +35749,245 @@
35741
35749
  } else {
35742
35750
  // Inline function 'kotlin.also' call
35743
35751
  // Inline function 'kotlin.contracts.contract' call
35744
- // Inline function 'GameHelperImpl.prepareConfigObjectWithPagination.<anonymous>' call
35752
+ // Inline function 'GameHelperImpl.prepareLobbyConfigWithPagination.<anonymous>' call
35745
35753
  validateLimit(this, tmp0_safe_receiver);
35746
35754
  tmp_0 = tmp0_safe_receiver;
35747
35755
  }
35748
35756
  var limit = tmp_0;
35749
- var jsObject = prepareFilterObjectInternal(this, map);
35757
+ var jsObject = prepareLobbyFilterInternal(this, map);
35750
35758
  jsObject['limit'] = limit == null ? 20 : limit;
35751
35759
  return jsObject;
35752
35760
  };
35753
- protoOf(GameHelperImpl).prepareConfigObject = function (config) {
35761
+ protoOf(GameHelperImpl).prepareLobbyConfig = function (config) {
35754
35762
  var map = mapOfObject(config);
35755
- return prepareFilterObjectInternal(this, map);
35763
+ return prepareLobbyFilterInternal(this, map);
35764
+ };
35765
+ protoOf(GameHelperImpl).prepareLeagueConfig = function (config) {
35766
+ var map = mapOfObject(config);
35767
+ var jsObject = {};
35768
+ var tmp = map.d2('players');
35769
+ var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
35770
+ var tmp_0;
35771
+ if (tmp0_safe_receiver == null) {
35772
+ tmp_0 = null;
35773
+ } else {
35774
+ // Inline function 'kotlin.collections.onEach' call
35775
+ // Inline function 'kotlin.apply' call
35776
+ // Inline function 'kotlin.contracts.contract' call
35777
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
35778
+ var inductionVariable = 0;
35779
+ var last = tmp0_safe_receiver.length;
35780
+ while (inductionVariable < last) {
35781
+ var element = tmp0_safe_receiver[inductionVariable];
35782
+ inductionVariable = inductionVariable + 1 | 0;
35783
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
35784
+ validatePlayers(this, element);
35785
+ }
35786
+ tmp_0 = tmp0_safe_receiver;
35787
+ }
35788
+ var tmp1_safe_receiver = tmp_0;
35789
+ var tmp_1;
35790
+ if (tmp1_safe_receiver == null) {
35791
+ tmp_1 = null;
35792
+ } else {
35793
+ // Inline function 'kotlin.takeIf' call
35794
+ // Inline function 'kotlin.contracts.contract' call
35795
+ var tmp_2;
35796
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
35797
+ // Inline function 'kotlin.collections.isNotEmpty' call
35798
+ // Inline function 'kotlin.collections.isEmpty' call
35799
+ if (!(tmp1_safe_receiver.length === 0)) {
35800
+ tmp_2 = tmp1_safe_receiver;
35801
+ } else {
35802
+ tmp_2 = null;
35803
+ }
35804
+ tmp_1 = tmp_2;
35805
+ }
35806
+ var players = tmp_1;
35807
+ var tmp_3 = map.d2('points');
35808
+ var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
35809
+ var tmp_4;
35810
+ if (tmp2_safe_receiver == null) {
35811
+ tmp_4 = null;
35812
+ } else {
35813
+ // Inline function 'kotlin.collections.onEach' call
35814
+ // Inline function 'kotlin.apply' call
35815
+ // Inline function 'kotlin.contracts.contract' call
35816
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
35817
+ var inductionVariable_0 = 0;
35818
+ var last_0 = tmp2_safe_receiver.length;
35819
+ while (inductionVariable_0 < last_0) {
35820
+ var element_0 = tmp2_safe_receiver[inductionVariable_0];
35821
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
35822
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
35823
+ validatePoints(this, element_0);
35824
+ }
35825
+ tmp_4 = tmp2_safe_receiver;
35826
+ }
35827
+ var tmp3_safe_receiver = tmp_4;
35828
+ var tmp_5;
35829
+ if (tmp3_safe_receiver == null) {
35830
+ tmp_5 = null;
35831
+ } else {
35832
+ // Inline function 'kotlin.takeIf' call
35833
+ // Inline function 'kotlin.contracts.contract' call
35834
+ var tmp_6;
35835
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
35836
+ // Inline function 'kotlin.collections.isNotEmpty' call
35837
+ // Inline function 'kotlin.collections.isEmpty' call
35838
+ if (!(tmp3_safe_receiver.length === 0)) {
35839
+ tmp_6 = tmp3_safe_receiver;
35840
+ } else {
35841
+ tmp_6 = null;
35842
+ }
35843
+ tmp_5 = tmp_6;
35844
+ }
35845
+ var points = tmp_5;
35846
+ var tmp_7 = map.d2('timeoutTime');
35847
+ var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
35848
+ var tmp_8;
35849
+ if (tmp4_safe_receiver == null) {
35850
+ tmp_8 = null;
35851
+ } else {
35852
+ // Inline function 'kotlin.collections.onEach' call
35853
+ // Inline function 'kotlin.apply' call
35854
+ // Inline function 'kotlin.contracts.contract' call
35855
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
35856
+ var inductionVariable_1 = 0;
35857
+ var last_1 = tmp4_safe_receiver.length;
35858
+ while (inductionVariable_1 < last_1) {
35859
+ var element_1 = tmp4_safe_receiver[inductionVariable_1];
35860
+ inductionVariable_1 = inductionVariable_1 + 1 | 0;
35861
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
35862
+ validateTimeoutTime(this, element_1);
35863
+ }
35864
+ tmp_8 = tmp4_safe_receiver;
35865
+ }
35866
+ var tmp5_safe_receiver = tmp_8;
35867
+ var tmp_9;
35868
+ if (tmp5_safe_receiver == null) {
35869
+ tmp_9 = null;
35870
+ } else {
35871
+ // Inline function 'kotlin.takeIf' call
35872
+ // Inline function 'kotlin.contracts.contract' call
35873
+ var tmp_10;
35874
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
35875
+ // Inline function 'kotlin.collections.isNotEmpty' call
35876
+ // Inline function 'kotlin.collections.isEmpty' call
35877
+ if (!(tmp5_safe_receiver.length === 0)) {
35878
+ tmp_10 = tmp5_safe_receiver;
35879
+ } else {
35880
+ tmp_10 = null;
35881
+ }
35882
+ tmp_9 = tmp_10;
35883
+ }
35884
+ var timeoutTime = tmp_9;
35885
+ var tmp_11 = map.d2('league');
35886
+ var tmp6_safe_receiver = (!(tmp_11 == null) ? typeof tmp_11 === 'string' : false) ? tmp_11 : null;
35887
+ var tmp_12;
35888
+ if (tmp6_safe_receiver == null) {
35889
+ tmp_12 = null;
35890
+ } else {
35891
+ // Inline function 'kotlin.apply' call
35892
+ // Inline function 'kotlin.contracts.contract' call
35893
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
35894
+ validateLeague(this, tmp6_safe_receiver);
35895
+ tmp_12 = tmp6_safe_receiver;
35896
+ }
35897
+ var league = tmp_12;
35898
+ var tmp_13 = map.d2('rulesPreset');
35899
+ var tmp7_safe_receiver = (tmp_13 == null ? true : isArray(tmp_13)) ? tmp_13 : null;
35900
+ var tmp_14;
35901
+ if (tmp7_safe_receiver == null) {
35902
+ tmp_14 = null;
35903
+ } else {
35904
+ // Inline function 'kotlin.collections.onEach' call
35905
+ // Inline function 'kotlin.apply' call
35906
+ // Inline function 'kotlin.contracts.contract' call
35907
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
35908
+ var inductionVariable_2 = 0;
35909
+ var last_2 = tmp7_safe_receiver.length;
35910
+ while (inductionVariable_2 < last_2) {
35911
+ var element_2 = tmp7_safe_receiver[inductionVariable_2];
35912
+ inductionVariable_2 = inductionVariable_2 + 1 | 0;
35913
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
35914
+ validateRulesSetType(this, element_2);
35915
+ }
35916
+ tmp_14 = tmp7_safe_receiver;
35917
+ }
35918
+ var tmp8_safe_receiver = tmp_14;
35919
+ var tmp_15;
35920
+ if (tmp8_safe_receiver == null) {
35921
+ tmp_15 = null;
35922
+ } else {
35923
+ // Inline function 'kotlin.takeIf' call
35924
+ // Inline function 'kotlin.contracts.contract' call
35925
+ var tmp_16;
35926
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
35927
+ // Inline function 'kotlin.collections.isNotEmpty' call
35928
+ // Inline function 'kotlin.collections.isEmpty' call
35929
+ if (!(tmp8_safe_receiver.length === 0)) {
35930
+ tmp_16 = tmp8_safe_receiver;
35931
+ } else {
35932
+ tmp_16 = null;
35933
+ }
35934
+ tmp_15 = tmp_16;
35935
+ }
35936
+ var rulesPreset = tmp_15;
35937
+ var tmp_17 = map.d2('isChatEnabled');
35938
+ var isChatEnabled = (!(tmp_17 == null) ? typeof tmp_17 === 'boolean' : false) ? tmp_17 : null;
35939
+ var tmp_18;
35940
+ if (players == null) {
35941
+ // Inline function 'kotlin.arrayOf' call
35942
+ // Inline function 'kotlin.js.unsafeCast' call
35943
+ // Inline function 'kotlin.js.asDynamic' call
35944
+ tmp_18 = [2, 3, 4, 5];
35945
+ } else {
35946
+ tmp_18 = players;
35947
+ }
35948
+ jsObject['players'] = tmp_18;
35949
+ var tmp_19;
35950
+ if (points == null) {
35951
+ // Inline function 'kotlin.arrayOf' call
35952
+ // Inline function 'kotlin.js.unsafeCast' call
35953
+ // Inline function 'kotlin.js.asDynamic' call
35954
+ tmp_19 = [301, 501, 1001];
35955
+ } else {
35956
+ tmp_19 = points;
35957
+ }
35958
+ jsObject['points'] = tmp_19;
35959
+ var tmp_20;
35960
+ if (timeoutTime == null) {
35961
+ // Inline function 'kotlin.arrayOf' call
35962
+ // Inline function 'kotlin.js.unsafeCast' call
35963
+ // Inline function 'kotlin.js.asDynamic' call
35964
+ tmp_20 = [15, 30, 45];
35965
+ } else {
35966
+ tmp_20 = timeoutTime;
35967
+ }
35968
+ jsObject['timeoutTime'] = tmp_20;
35969
+ var tmp_21;
35970
+ if (rulesPreset == null) {
35971
+ // Inline function 'kotlin.collections.toTypedArray' call
35972
+ // Inline function 'kotlin.collections.map' call
35973
+ var this_0 = get_entries_2();
35974
+ // Inline function 'kotlin.collections.mapTo' call
35975
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
35976
+ var tmp0_iterator = this_0.j();
35977
+ while (tmp0_iterator.k()) {
35978
+ var item = tmp0_iterator.l();
35979
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
35980
+ var tmp$ret$34 = item.i2_1;
35981
+ destination.e(tmp$ret$34);
35982
+ }
35983
+ tmp_21 = copyToArray(destination);
35984
+ } else {
35985
+ tmp_21 = rulesPreset;
35986
+ }
35987
+ jsObject['rulesPreset'] = tmp_21;
35988
+ jsObject['league'] = league;
35989
+ jsObject['isChatEnabled'] = isChatEnabled;
35990
+ return jsObject;
35756
35991
  };
35757
35992
  protoOf(GameHelperImpl).isValidConfigObject = function (config) {
35758
35993
  var map = mapOfObject(config);
@@ -35823,7 +36058,10 @@
35823
36058
  return tmp;
35824
36059
  };
35825
36060
  protoOf(GameHelperImpl).mapRulesSetType = function (name) {
35826
- return valueOf_6(name);
36061
+ // Inline function 'kotlin.text.uppercase' call
36062
+ // Inline function 'kotlin.js.asDynamic' call
36063
+ var tmp$ret$1 = name.toUpperCase();
36064
+ return valueOf_6(tmp$ret$1);
35827
36065
  };
35828
36066
  protoOf(GameHelperImpl).mapToLeague = function (name) {
35829
36067
  // Inline function 'kotlin.text.uppercase' call