client_plugin_logic_deb 1.8.325 → 1.8.327

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.
@@ -324,7 +324,7 @@
324
324
  function addFormatStructureForTime(structure) {
325
325
  this.v5d(structure);
326
326
  }
327
- initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithTime, WithDate]);
327
+ initMetadataForInterface(AbstractWithDateTimeBuilder, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder, AbstractWithTimeBuilder, WithDate, WithTime]);
328
328
  function offsetHours$default(padding, $super) {
329
329
  padding = padding === VOID ? Padding_ZERO_getInstance() : padding;
330
330
  var tmp;
@@ -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, WithUtcOffset, WithTime, WithDate]);
380
+ initMetadataForClass(Builder, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder, AbstractWithDateTimeBuilder, AbstractWithOffsetBuilder, WithTime, WithUtcOffset, WithDate]);
381
381
  initMetadataForClass(AbstractDateTimeFormat, 'AbstractDateTimeFormat');
382
382
  initMetadataForClass(DateTimeComponentsFormat, 'DateTimeComponentsFormat', VOID, AbstractDateTimeFormat);
383
383
  initMetadataForClass(TwoDigitNumber, 'TwoDigitNumber');
@@ -1963,13 +1963,15 @@ 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;
1971
1972
  mapRulesSetType(name: string): games.jass.logic.data.models.rules.RulesSetType;
1972
1973
  mapToLeague(name: string): games.jass.logic.data.models.leagues.League;
1974
+ getAllLeagues(): kotlin.collections.KtList<string>;
1973
1975
  readonly __doNotUseOrImplementIt: {
1974
1976
  readonly GameHelper: unique symbol;
1975
1977
  };
@@ -2007,7 +2009,6 @@ export declare interface RatingHelper {
2007
2009
  isValidRatingForLeague(league: games.jass.logic.data.models.leagues.League, rating: number): boolean;
2008
2010
  mapRatingToLeague(rating: number): games.jass.logic.data.models.leagues.League;
2009
2011
  getLeaguesConfig(): games.jass.logic.data.models.leagues.LeaguesConfig;
2010
- mapToLeague(name: string): games.jass.logic.data.models.leagues.League;
2011
2012
  readonly __doNotUseOrImplementIt: {
2012
2013
  readonly RatingHelper: unique symbol;
2013
2014
  };
@@ -412,7 +412,7 @@
412
412
  initMetadataForClass(AppEnvironmentValue, 'AppEnvironmentValue', VOID, Enum);
413
413
  //endregion
414
414
  function GameEngineConfig() {
415
- this.version = '1.8.325';
415
+ this.version = '1.8.327';
416
416
  }
417
417
  protoOf(GameEngineConfig).l33 = function () {
418
418
  return this.version;
@@ -60971,7 +60971,7 @@
60971
60971
  }
60972
60972
  function GameHelper() {
60973
60973
  }
60974
- function prepareFilterObjectInternal($this, map) {
60974
+ function prepareLobbyFilterInternal($this, map) {
60975
60975
  var jsObject = {};
60976
60976
  var tmp = map.k2('players');
60977
60977
  var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
@@ -60988,7 +60988,7 @@
60988
60988
  while (inductionVariable < last) {
60989
60989
  var element = tmp0_safe_receiver[inductionVariable];
60990
60990
  inductionVariable = inductionVariable + 1 | 0;
60991
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
60991
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
60992
60992
  validatePlayers($this, element);
60993
60993
  }
60994
60994
  tmp_0 = tmp0_safe_receiver;
@@ -61001,7 +61001,7 @@
61001
61001
  // Inline function 'kotlin.takeIf' call
61002
61002
  // Inline function 'kotlin.contracts.contract' call
61003
61003
  var tmp_2;
61004
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61004
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61005
61005
  // Inline function 'kotlin.collections.isNotEmpty' call
61006
61006
  // Inline function 'kotlin.collections.isEmpty' call
61007
61007
  if (!(tmp1_safe_receiver.length === 0)) {
@@ -61027,7 +61027,7 @@
61027
61027
  while (inductionVariable_0 < last_0) {
61028
61028
  var element_0 = tmp2_safe_receiver[inductionVariable_0];
61029
61029
  inductionVariable_0 = inductionVariable_0 + 1 | 0;
61030
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61030
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61031
61031
  validatePoints($this, element_0);
61032
61032
  }
61033
61033
  tmp_4 = tmp2_safe_receiver;
@@ -61040,7 +61040,7 @@
61040
61040
  // Inline function 'kotlin.takeIf' call
61041
61041
  // Inline function 'kotlin.contracts.contract' call
61042
61042
  var tmp_6;
61043
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61043
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61044
61044
  // Inline function 'kotlin.collections.isNotEmpty' call
61045
61045
  // Inline function 'kotlin.collections.isEmpty' call
61046
61046
  if (!(tmp3_safe_receiver.length === 0)) {
@@ -61066,7 +61066,7 @@
61066
61066
  while (inductionVariable_1 < last_1) {
61067
61067
  var element_1 = tmp4_safe_receiver[inductionVariable_1];
61068
61068
  inductionVariable_1 = inductionVariable_1 + 1 | 0;
61069
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61069
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61070
61070
  validateTimeoutTime($this, element_1);
61071
61071
  }
61072
61072
  tmp_8 = tmp4_safe_receiver;
@@ -61079,7 +61079,7 @@
61079
61079
  // Inline function 'kotlin.takeIf' call
61080
61080
  // Inline function 'kotlin.contracts.contract' call
61081
61081
  var tmp_10;
61082
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61082
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61083
61083
  // Inline function 'kotlin.collections.isNotEmpty' call
61084
61084
  // Inline function 'kotlin.collections.isEmpty' call
61085
61085
  if (!(tmp5_safe_receiver.length === 0)) {
@@ -61105,7 +61105,7 @@
61105
61105
  while (inductionVariable_2 < last_2) {
61106
61106
  var element_2 = tmp6_safe_receiver[inductionVariable_2];
61107
61107
  inductionVariable_2 = inductionVariable_2 + 1 | 0;
61108
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61108
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61109
61109
  validateLeague($this, element_2);
61110
61110
  }
61111
61111
  tmp_12 = tmp6_safe_receiver;
@@ -61118,7 +61118,7 @@
61118
61118
  // Inline function 'kotlin.takeIf' call
61119
61119
  // Inline function 'kotlin.contracts.contract' call
61120
61120
  var tmp_14;
61121
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61121
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61122
61122
  // Inline function 'kotlin.collections.isNotEmpty' call
61123
61123
  // Inline function 'kotlin.collections.isEmpty' call
61124
61124
  if (!(tmp7_safe_receiver.length === 0)) {
@@ -61144,7 +61144,7 @@
61144
61144
  while (inductionVariable_3 < last_3) {
61145
61145
  var element_3 = tmp8_safe_receiver[inductionVariable_3];
61146
61146
  inductionVariable_3 = inductionVariable_3 + 1 | 0;
61147
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61147
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61148
61148
  validateRulesSetType($this, element_3);
61149
61149
  }
61150
61150
  tmp_16 = tmp8_safe_receiver;
@@ -61157,7 +61157,7 @@
61157
61157
  // Inline function 'kotlin.takeIf' call
61158
61158
  // Inline function 'kotlin.contracts.contract' call
61159
61159
  var tmp_18;
61160
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61160
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61161
61161
  // Inline function 'kotlin.collections.isNotEmpty' call
61162
61162
  // Inline function 'kotlin.collections.isEmpty' call
61163
61163
  if (!(tmp9_safe_receiver.length === 0)) {
@@ -61210,7 +61210,7 @@
61210
61210
  var tmp0_iterator = this_0.j();
61211
61211
  while (tmp0_iterator.k()) {
61212
61212
  var item = tmp0_iterator.l();
61213
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61213
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61214
61214
  var tmp$ret$39 = item.q2_1;
61215
61215
  destination.e(tmp$ret$39);
61216
61216
  }
@@ -61229,7 +61229,7 @@
61229
61229
  var tmp0_iterator_0 = this_1.j();
61230
61230
  while (tmp0_iterator_0.k()) {
61231
61231
  var item_0 = tmp0_iterator_0.l();
61232
- // Inline function 'GameHelperImpl.prepareFilterObjectInternal.<anonymous>' call
61232
+ // Inline function 'GameHelperImpl.prepareLobbyFilterInternal.<anonymous>' call
61233
61233
  // Inline function 'kotlin.text.lowercase' call
61234
61234
  // Inline function 'kotlin.js.asDynamic' call
61235
61235
  var tmp$ret$45 = item_0.q2_1.toLowerCase();
@@ -61506,7 +61506,11 @@
61506
61506
  var tmp$ret$0 = item.q2_1;
61507
61507
  destination.e(tmp$ret$0);
61508
61508
  }
61509
- if (!destination.v1(league)) {
61509
+ var tmp = destination;
61510
+ // Inline function 'kotlin.text.uppercase' call
61511
+ // Inline function 'kotlin.js.asDynamic' call
61512
+ var tmp$ret$4 = league.toUpperCase();
61513
+ if (!tmp.v1(tmp$ret$4)) {
61510
61514
  throw IllegalStateException_init_$Create$('Not valid league ' + league);
61511
61515
  }
61512
61516
  }
@@ -61835,7 +61839,7 @@
61835
61839
  protoOf(GameHelperImpl).mapRules = function (rules) {
61836
61840
  return mapRulesObject(this, rules);
61837
61841
  };
61838
- protoOf(GameHelperImpl).prepareConfigObjectWithPagination = function (config) {
61842
+ protoOf(GameHelperImpl).prepareLobbyConfigWithPagination = function (config) {
61839
61843
  var map = mapOfObject(config);
61840
61844
  var tmp = map.k2('limit');
61841
61845
  var tmp0_safe_receiver = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : null;
@@ -61845,18 +61849,245 @@
61845
61849
  } else {
61846
61850
  // Inline function 'kotlin.also' call
61847
61851
  // Inline function 'kotlin.contracts.contract' call
61848
- // Inline function 'GameHelperImpl.prepareConfigObjectWithPagination.<anonymous>' call
61852
+ // Inline function 'GameHelperImpl.prepareLobbyConfigWithPagination.<anonymous>' call
61849
61853
  validateLimit(this, tmp0_safe_receiver);
61850
61854
  tmp_0 = tmp0_safe_receiver;
61851
61855
  }
61852
61856
  var limit = tmp_0;
61853
- var jsObject = prepareFilterObjectInternal(this, map);
61857
+ var jsObject = prepareLobbyFilterInternal(this, map);
61854
61858
  jsObject['limit'] = limit == null ? 20 : limit;
61855
61859
  return jsObject;
61856
61860
  };
61857
- protoOf(GameHelperImpl).prepareConfigObject = function (config) {
61861
+ protoOf(GameHelperImpl).prepareLobbyConfig = function (config) {
61858
61862
  var map = mapOfObject(config);
61859
- return prepareFilterObjectInternal(this, map);
61863
+ return prepareLobbyFilterInternal(this, map);
61864
+ };
61865
+ protoOf(GameHelperImpl).prepareLeagueConfig = function (config) {
61866
+ var map = mapOfObject(config);
61867
+ var jsObject = {};
61868
+ var tmp = map.k2('players');
61869
+ var tmp0_safe_receiver = (tmp == null ? true : isArray(tmp)) ? tmp : null;
61870
+ var tmp_0;
61871
+ if (tmp0_safe_receiver == null) {
61872
+ tmp_0 = null;
61873
+ } else {
61874
+ // Inline function 'kotlin.collections.onEach' call
61875
+ // Inline function 'kotlin.apply' call
61876
+ // Inline function 'kotlin.contracts.contract' call
61877
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
61878
+ var inductionVariable = 0;
61879
+ var last = tmp0_safe_receiver.length;
61880
+ while (inductionVariable < last) {
61881
+ var element = tmp0_safe_receiver[inductionVariable];
61882
+ inductionVariable = inductionVariable + 1 | 0;
61883
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61884
+ validatePlayers(this, element);
61885
+ }
61886
+ tmp_0 = tmp0_safe_receiver;
61887
+ }
61888
+ var tmp1_safe_receiver = tmp_0;
61889
+ var tmp_1;
61890
+ if (tmp1_safe_receiver == null) {
61891
+ tmp_1 = null;
61892
+ } else {
61893
+ // Inline function 'kotlin.takeIf' call
61894
+ // Inline function 'kotlin.contracts.contract' call
61895
+ var tmp_2;
61896
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61897
+ // Inline function 'kotlin.collections.isNotEmpty' call
61898
+ // Inline function 'kotlin.collections.isEmpty' call
61899
+ if (!(tmp1_safe_receiver.length === 0)) {
61900
+ tmp_2 = tmp1_safe_receiver;
61901
+ } else {
61902
+ tmp_2 = null;
61903
+ }
61904
+ tmp_1 = tmp_2;
61905
+ }
61906
+ var players = tmp_1;
61907
+ var tmp_3 = map.k2('points');
61908
+ var tmp2_safe_receiver = (tmp_3 == null ? true : isArray(tmp_3)) ? tmp_3 : null;
61909
+ var tmp_4;
61910
+ if (tmp2_safe_receiver == null) {
61911
+ tmp_4 = null;
61912
+ } else {
61913
+ // Inline function 'kotlin.collections.onEach' call
61914
+ // Inline function 'kotlin.apply' call
61915
+ // Inline function 'kotlin.contracts.contract' call
61916
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
61917
+ var inductionVariable_0 = 0;
61918
+ var last_0 = tmp2_safe_receiver.length;
61919
+ while (inductionVariable_0 < last_0) {
61920
+ var element_0 = tmp2_safe_receiver[inductionVariable_0];
61921
+ inductionVariable_0 = inductionVariable_0 + 1 | 0;
61922
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61923
+ validatePoints(this, element_0);
61924
+ }
61925
+ tmp_4 = tmp2_safe_receiver;
61926
+ }
61927
+ var tmp3_safe_receiver = tmp_4;
61928
+ var tmp_5;
61929
+ if (tmp3_safe_receiver == null) {
61930
+ tmp_5 = null;
61931
+ } else {
61932
+ // Inline function 'kotlin.takeIf' call
61933
+ // Inline function 'kotlin.contracts.contract' call
61934
+ var tmp_6;
61935
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61936
+ // Inline function 'kotlin.collections.isNotEmpty' call
61937
+ // Inline function 'kotlin.collections.isEmpty' call
61938
+ if (!(tmp3_safe_receiver.length === 0)) {
61939
+ tmp_6 = tmp3_safe_receiver;
61940
+ } else {
61941
+ tmp_6 = null;
61942
+ }
61943
+ tmp_5 = tmp_6;
61944
+ }
61945
+ var points = tmp_5;
61946
+ var tmp_7 = map.k2('timeoutTime');
61947
+ var tmp4_safe_receiver = (tmp_7 == null ? true : isArray(tmp_7)) ? tmp_7 : null;
61948
+ var tmp_8;
61949
+ if (tmp4_safe_receiver == null) {
61950
+ tmp_8 = null;
61951
+ } else {
61952
+ // Inline function 'kotlin.collections.onEach' call
61953
+ // Inline function 'kotlin.apply' call
61954
+ // Inline function 'kotlin.contracts.contract' call
61955
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
61956
+ var inductionVariable_1 = 0;
61957
+ var last_1 = tmp4_safe_receiver.length;
61958
+ while (inductionVariable_1 < last_1) {
61959
+ var element_1 = tmp4_safe_receiver[inductionVariable_1];
61960
+ inductionVariable_1 = inductionVariable_1 + 1 | 0;
61961
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61962
+ validateTimeoutTime(this, element_1);
61963
+ }
61964
+ tmp_8 = tmp4_safe_receiver;
61965
+ }
61966
+ var tmp5_safe_receiver = tmp_8;
61967
+ var tmp_9;
61968
+ if (tmp5_safe_receiver == null) {
61969
+ tmp_9 = null;
61970
+ } else {
61971
+ // Inline function 'kotlin.takeIf' call
61972
+ // Inline function 'kotlin.contracts.contract' call
61973
+ var tmp_10;
61974
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61975
+ // Inline function 'kotlin.collections.isNotEmpty' call
61976
+ // Inline function 'kotlin.collections.isEmpty' call
61977
+ if (!(tmp5_safe_receiver.length === 0)) {
61978
+ tmp_10 = tmp5_safe_receiver;
61979
+ } else {
61980
+ tmp_10 = null;
61981
+ }
61982
+ tmp_9 = tmp_10;
61983
+ }
61984
+ var timeoutTime = tmp_9;
61985
+ var tmp_11 = map.k2('league');
61986
+ var tmp6_safe_receiver = (!(tmp_11 == null) ? typeof tmp_11 === 'string' : false) ? tmp_11 : null;
61987
+ var tmp_12;
61988
+ if (tmp6_safe_receiver == null) {
61989
+ tmp_12 = null;
61990
+ } else {
61991
+ // Inline function 'kotlin.apply' call
61992
+ // Inline function 'kotlin.contracts.contract' call
61993
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
61994
+ validateLeague(this, tmp6_safe_receiver);
61995
+ tmp_12 = tmp6_safe_receiver;
61996
+ }
61997
+ var league = tmp_12;
61998
+ var tmp_13 = map.k2('rulesPreset');
61999
+ var tmp7_safe_receiver = (tmp_13 == null ? true : isArray(tmp_13)) ? tmp_13 : null;
62000
+ var tmp_14;
62001
+ if (tmp7_safe_receiver == null) {
62002
+ tmp_14 = null;
62003
+ } else {
62004
+ // Inline function 'kotlin.collections.onEach' call
62005
+ // Inline function 'kotlin.apply' call
62006
+ // Inline function 'kotlin.contracts.contract' call
62007
+ // Inline function 'kotlin.collections.onEach.<anonymous>' call
62008
+ var inductionVariable_2 = 0;
62009
+ var last_2 = tmp7_safe_receiver.length;
62010
+ while (inductionVariable_2 < last_2) {
62011
+ var element_2 = tmp7_safe_receiver[inductionVariable_2];
62012
+ inductionVariable_2 = inductionVariable_2 + 1 | 0;
62013
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
62014
+ validateRulesSetType(this, element_2);
62015
+ }
62016
+ tmp_14 = tmp7_safe_receiver;
62017
+ }
62018
+ var tmp8_safe_receiver = tmp_14;
62019
+ var tmp_15;
62020
+ if (tmp8_safe_receiver == null) {
62021
+ tmp_15 = null;
62022
+ } else {
62023
+ // Inline function 'kotlin.takeIf' call
62024
+ // Inline function 'kotlin.contracts.contract' call
62025
+ var tmp_16;
62026
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
62027
+ // Inline function 'kotlin.collections.isNotEmpty' call
62028
+ // Inline function 'kotlin.collections.isEmpty' call
62029
+ if (!(tmp8_safe_receiver.length === 0)) {
62030
+ tmp_16 = tmp8_safe_receiver;
62031
+ } else {
62032
+ tmp_16 = null;
62033
+ }
62034
+ tmp_15 = tmp_16;
62035
+ }
62036
+ var rulesPreset = tmp_15;
62037
+ var tmp_17 = map.k2('isChatEnabled');
62038
+ var isChatEnabled = (!(tmp_17 == null) ? typeof tmp_17 === 'boolean' : false) ? tmp_17 : null;
62039
+ var tmp_18;
62040
+ if (players == null) {
62041
+ // Inline function 'kotlin.arrayOf' call
62042
+ // Inline function 'kotlin.js.unsafeCast' call
62043
+ // Inline function 'kotlin.js.asDynamic' call
62044
+ tmp_18 = [2, 3, 4, 5];
62045
+ } else {
62046
+ tmp_18 = players;
62047
+ }
62048
+ jsObject['players'] = tmp_18;
62049
+ var tmp_19;
62050
+ if (points == null) {
62051
+ // Inline function 'kotlin.arrayOf' call
62052
+ // Inline function 'kotlin.js.unsafeCast' call
62053
+ // Inline function 'kotlin.js.asDynamic' call
62054
+ tmp_19 = [301, 501, 1001];
62055
+ } else {
62056
+ tmp_19 = points;
62057
+ }
62058
+ jsObject['points'] = tmp_19;
62059
+ var tmp_20;
62060
+ if (timeoutTime == null) {
62061
+ // Inline function 'kotlin.arrayOf' call
62062
+ // Inline function 'kotlin.js.unsafeCast' call
62063
+ // Inline function 'kotlin.js.asDynamic' call
62064
+ tmp_20 = [15, 30, 45];
62065
+ } else {
62066
+ tmp_20 = timeoutTime;
62067
+ }
62068
+ jsObject['timeoutTime'] = tmp_20;
62069
+ var tmp_21;
62070
+ if (rulesPreset == null) {
62071
+ // Inline function 'kotlin.collections.toTypedArray' call
62072
+ // Inline function 'kotlin.collections.map' call
62073
+ var this_0 = get_entries_3();
62074
+ // Inline function 'kotlin.collections.mapTo' call
62075
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
62076
+ var tmp0_iterator = this_0.j();
62077
+ while (tmp0_iterator.k()) {
62078
+ var item = tmp0_iterator.l();
62079
+ // Inline function 'GameHelperImpl.prepareLeagueConfig.<anonymous>' call
62080
+ var tmp$ret$34 = item.q2_1;
62081
+ destination.e(tmp$ret$34);
62082
+ }
62083
+ tmp_21 = copyToArray(destination);
62084
+ } else {
62085
+ tmp_21 = rulesPreset;
62086
+ }
62087
+ jsObject['rulesPreset'] = tmp_21;
62088
+ jsObject['league'] = league;
62089
+ jsObject['isChatEnabled'] = isChatEnabled;
62090
+ return jsObject;
61860
62091
  };
61861
62092
  protoOf(GameHelperImpl).isValidConfigObject = function (config) {
61862
62093
  var map = mapOfObject(config);
@@ -61935,6 +62166,22 @@
61935
62166
  var tmp$ret$1 = name.toUpperCase();
61936
62167
  return valueOf_0(tmp$ret$1);
61937
62168
  };
62169
+ protoOf(GameHelperImpl).getAllLeagues = function () {
62170
+ // Inline function 'kotlin.collections.map' call
62171
+ var this_0 = get_entries_0();
62172
+ // Inline function 'kotlin.collections.mapTo' call
62173
+ var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
62174
+ var tmp0_iterator = this_0.j();
62175
+ while (tmp0_iterator.k()) {
62176
+ var item = tmp0_iterator.l();
62177
+ // Inline function 'GameHelperImpl.getAllLeagues.<anonymous>' call
62178
+ // Inline function 'kotlin.text.lowercase' call
62179
+ // Inline function 'kotlin.js.asDynamic' call
62180
+ var tmp$ret$2 = item.q2_1.toLowerCase();
62181
+ destination.e(tmp$ret$2);
62182
+ }
62183
+ return destination;
62184
+ };
61938
62185
  function GameResources() {
61939
62186
  }
61940
62187
  var AvatarSet_ORIGIN_instance;
@@ -62283,12 +62530,6 @@
62283
62530
  protoOf(RatingHelperImpl).getLeaguesConfig = function () {
62284
62531
  return this.c9w_1.e99();
62285
62532
  };
62286
- protoOf(RatingHelperImpl).mapToLeague = function (name) {
62287
- // Inline function 'kotlin.text.uppercase' call
62288
- // Inline function 'kotlin.js.asDynamic' call
62289
- var tmp$ret$1 = name.toUpperCase();
62290
- return valueOf_0(tmp$ret$1);
62291
- };
62292
62533
  function engineHelpersModule() {
62293
62534
  return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
62294
62535
  }