game_client_logic_deb 1.8.368 → 1.8.369
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/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +657 -610
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +2096 -2096
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlinx-coroutines-core.js +8 -8
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -1269,21 +1269,21 @@
|
|
|
1269
1269
|
tmp = types;
|
|
1270
1270
|
}
|
|
1271
1271
|
types = tmp;
|
|
1272
|
-
return $super === VOID ? this.
|
|
1272
|
+
return $super === VOID ? this.i97(key, types) : $super.i97.call(this, key, types);
|
|
1273
1273
|
}
|
|
1274
1274
|
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
|
|
1275
1275
|
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', FileLoggerOutputImpl, VOID, [FileLoggerOutput]);
|
|
1276
1276
|
function filterLivePlayers(store, playerIds, includeBots, $super) {
|
|
1277
1277
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1278
|
-
return $super === VOID ? this.
|
|
1278
|
+
return $super === VOID ? this.j97(store, playerIds, includeBots) : $super.j97.call(this, store, playerIds, includeBots);
|
|
1279
1279
|
}
|
|
1280
1280
|
function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
|
|
1281
1281
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1282
|
-
return $super === VOID ? this.
|
|
1282
|
+
return $super === VOID ? this.k97(store, playerIds, includeBots) : $super.k97.call(this, store, playerIds, includeBots);
|
|
1283
1283
|
}
|
|
1284
1284
|
function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
|
|
1285
1285
|
league = league === VOID ? null : league;
|
|
1286
|
-
return $super === VOID ? this.
|
|
1286
|
+
return $super === VOID ? this.l97(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.l97.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
|
|
1287
1287
|
}
|
|
1288
1288
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
1289
1289
|
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
|
|
@@ -1296,7 +1296,7 @@
|
|
|
1296
1296
|
tmp = existingNicknames;
|
|
1297
1297
|
}
|
|
1298
1298
|
existingNicknames = tmp;
|
|
1299
|
-
return $super === VOID ? this.
|
|
1299
|
+
return $super === VOID ? this.n97(playerId, existingNicknames) : $super.n97.call(this, playerId, existingNicknames);
|
|
1300
1300
|
}
|
|
1301
1301
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
1302
1302
|
initMetadataForCompanion(Companion_167);
|
|
@@ -2219,7 +2219,7 @@
|
|
|
2219
2219
|
ffaLossReductionPerExtra = ffaLossReductionPerExtra === VOID ? 0.15 : ffaLossReductionPerExtra;
|
|
2220
2220
|
ffaLossMinMult = ffaLossMinMult === VOID ? 0.6 : ffaLossMinMult;
|
|
2221
2221
|
ffaCloseLossPenaltyMult = ffaCloseLossPenaltyMult === VOID ? 0.6 : ffaCloseLossPenaltyMult;
|
|
2222
|
-
botNativeUpdatesRating = botNativeUpdatesRating === VOID ?
|
|
2222
|
+
botNativeUpdatesRating = botNativeUpdatesRating === VOID ? true : botNativeUpdatesRating;
|
|
2223
2223
|
replacementForcedDecrease = replacementForcedDecrease === VOID ? true : replacementForcedDecrease;
|
|
2224
2224
|
this.defaultFactor = defaultFactor;
|
|
2225
2225
|
this.eloScaleH2H = eloScaleH2H;
|
|
@@ -42631,7 +42631,7 @@
|
|
|
42631
42631
|
};
|
|
42632
42632
|
function RatingCalculator() {
|
|
42633
42633
|
}
|
|
42634
|
-
function calculateHeadToHead($this, ratingList, minUserRating, maxUserRating,
|
|
42634
|
+
function calculateHeadToHead($this, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, cfg) {
|
|
42635
42635
|
// Inline function 'kotlin.collections.single' call
|
|
42636
42636
|
var single = null;
|
|
42637
42637
|
var found = false;
|
|
@@ -42690,14 +42690,14 @@
|
|
|
42690
42690
|
var expected = pBeats($this, item.n6x_1, opp.n6x_1, cfg.eloScaleH2H);
|
|
42691
42691
|
var actualBin = item.o6x_1 >= realMaxScore ? 1.0 : 0.0;
|
|
42692
42692
|
var kEff = baseK($this, item.r6x_1, gameComplexityCoefficient, cfg);
|
|
42693
|
-
var newRating = eloBinaryWithScoreFactor($this, item.n6x_1, expected, actualBin, realMinScore, realMaxScore, item.o6x_1, cfg.closeLossThresholdRatio, minUserRating, maxUserRating,
|
|
42693
|
+
var newRating = eloBinaryWithScoreFactor($this, item.n6x_1, expected, actualBin, realMinScore, realMaxScore, item.o6x_1, cfg.closeLossThresholdRatio, minUserRating, maxUserRating, kEff);
|
|
42694
42694
|
tmp$ret$5 = new PlayerRatingOutput(item.m6x_1, item.n6x_1, newRating, item.p6x_1);
|
|
42695
42695
|
}
|
|
42696
42696
|
destination.j(tmp$ret$5);
|
|
42697
42697
|
}
|
|
42698
42698
|
return destination;
|
|
42699
42699
|
}
|
|
42700
|
-
function calculateFfaPairwise($this, maxScore, ratingList, minUserRating, maxUserRating,
|
|
42700
|
+
function calculateFfaPairwise($this, maxScore, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, cfg) {
|
|
42701
42701
|
// Inline function 'kotlin.require' call
|
|
42702
42702
|
if (!(ratingList.o() >= 2)) {
|
|
42703
42703
|
var message = 'At least two players are required';
|
|
@@ -42778,7 +42778,7 @@
|
|
|
42778
42778
|
var b_0 = 1.0 - cfg.ffaLossReductionPerExtra * extra;
|
|
42779
42779
|
var kLoss = Math.max(tmp0, b_0);
|
|
42780
42780
|
var raw = item.n6x_1 + kBase * (kWin * diffPos + kLoss * diffNeg);
|
|
42781
|
-
var newRating = clampAndRound($this, raw, minUserRating, maxUserRating
|
|
42781
|
+
var newRating = clampAndRound($this, raw, minUserRating, maxUserRating);
|
|
42782
42782
|
tmp$ret$3 = new PlayerRatingOutput(item.m6x_1, item.n6x_1, newRating, item.p6x_1);
|
|
42783
42783
|
}
|
|
42784
42784
|
destination.j(tmp$ret$3);
|
|
@@ -42791,10 +42791,10 @@
|
|
|
42791
42791
|
var s = 0.5 + cfg.ffaMovLambdaRel * rel + cfg.ffaMovLambdaAbs * abs;
|
|
42792
42792
|
return coerceIn(s, 0.0, 1.0);
|
|
42793
42793
|
}
|
|
42794
|
-
function eloBinaryWithScoreFactor($this, currentRating, expected, actual, minScore, maxScore, playerScore, thresholdRatio, minUserRating, maxUserRating,
|
|
42794
|
+
function eloBinaryWithScoreFactor($this, currentRating, expected, actual, minScore, maxScore, playerScore, thresholdRatio, minUserRating, maxUserRating, kFactor) {
|
|
42795
42795
|
var scoreFactor = scoreDifferenceFactor($this, actual, minScore, maxScore, playerScore, thresholdRatio);
|
|
42796
42796
|
var raw = currentRating + kFactor * scoreFactor * (actual - expected);
|
|
42797
|
-
return clampAndRound($this, raw, minUserRating, maxUserRating
|
|
42797
|
+
return clampAndRound($this, raw, minUserRating, maxUserRating);
|
|
42798
42798
|
}
|
|
42799
42799
|
function pBeats($this, rA, rB, scale) {
|
|
42800
42800
|
// Inline function 'kotlin.math.pow' call
|
|
@@ -42909,8 +42909,8 @@
|
|
|
42909
42909
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
42910
42910
|
}
|
|
42911
42911
|
}
|
|
42912
|
-
function clampAndRound($this, value, minUserRating, maxUserRating
|
|
42913
|
-
var upper =
|
|
42912
|
+
function clampAndRound($this, value, minUserRating, maxUserRating) {
|
|
42913
|
+
var upper = false ? maxUserRating : 1.7976931348623157E308;
|
|
42914
42914
|
var clamped = coerceIn(value, minUserRating, upper);
|
|
42915
42915
|
// Inline function 'kotlin.math.pow' call
|
|
42916
42916
|
var factor = Math.pow(10.0, 2);
|
|
@@ -42918,17 +42918,17 @@
|
|
|
42918
42918
|
}
|
|
42919
42919
|
function RatingCalculatorImpl() {
|
|
42920
42920
|
}
|
|
42921
|
-
protoOf(RatingCalculatorImpl).k8l = function (maxScore, minUserRating, maxUserRating,
|
|
42921
|
+
protoOf(RatingCalculatorImpl).k8l = function (maxScore, minUserRating, maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig) {
|
|
42922
42922
|
validateSoloGameHasWinner(this, maxScore, ratingList);
|
|
42923
42923
|
var tmp;
|
|
42924
42924
|
if (ratingList.o() <= 2) {
|
|
42925
|
-
tmp = calculateHeadToHead(this, ratingList, minUserRating, maxUserRating,
|
|
42925
|
+
tmp = calculateHeadToHead(this, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, ratingConfig);
|
|
42926
42926
|
} else {
|
|
42927
|
-
tmp = calculateFfaPairwise(this, maxScore, ratingList, minUserRating, maxUserRating,
|
|
42927
|
+
tmp = calculateFfaPairwise(this, maxScore, ratingList, minUserRating, maxUserRating, gameComplexityCoefficient, ratingConfig);
|
|
42928
42928
|
}
|
|
42929
42929
|
return tmp;
|
|
42930
42930
|
};
|
|
42931
|
-
protoOf(RatingCalculatorImpl).l8l = function (maxScore, minUserRating, maxUserRating,
|
|
42931
|
+
protoOf(RatingCalculatorImpl).l8l = function (maxScore, minUserRating, maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig) {
|
|
42932
42932
|
validateTeamsGameHasWinnerTeam(this, ratingList);
|
|
42933
42933
|
// Inline function 'kotlin.collections.filter' call
|
|
42934
42934
|
// Inline function 'kotlin.collections.filterTo' call
|
|
@@ -43012,7 +43012,7 @@
|
|
|
43012
43012
|
var expected = pBeats(this, item_1.n6x_1, avgLosers, ratingConfig.eloScaleH2H);
|
|
43013
43013
|
var actualBin = 1.0;
|
|
43014
43014
|
var kEff = baseK(this, item_1.r6x_1, gameComplexityCoefficient, ratingConfig);
|
|
43015
|
-
var newRating = eloBinaryWithScoreFactor(this, item_1.n6x_1, expected, actualBin, realMinScore, realMaxScore, winnersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating,
|
|
43015
|
+
var newRating = eloBinaryWithScoreFactor(this, item_1.n6x_1, expected, actualBin, realMinScore, realMaxScore, winnersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating, kEff);
|
|
43016
43016
|
tmp$ret$18 = new PlayerRatingOutput(item_1.m6x_1, item_1.n6x_1, newRating, item_1.p6x_1);
|
|
43017
43017
|
}
|
|
43018
43018
|
destination_3.j(tmp$ret$18);
|
|
@@ -43033,7 +43033,7 @@
|
|
|
43033
43033
|
var expected_0 = pBeats(this, item_2.n6x_1, avgWinners, ratingConfig.eloScaleH2H);
|
|
43034
43034
|
var actualBin_0 = 0.0;
|
|
43035
43035
|
var kEff_0 = baseK(this, item_2.r6x_1, gameComplexityCoefficient, ratingConfig);
|
|
43036
|
-
var newRating_0 = eloBinaryWithScoreFactor(this, item_2.n6x_1, expected_0, actualBin_0, realMinScore, realMaxScore, losersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating,
|
|
43036
|
+
var newRating_0 = eloBinaryWithScoreFactor(this, item_2.n6x_1, expected_0, actualBin_0, realMinScore, realMaxScore, losersScore, ratingConfig.closeLossThresholdRatio, minUserRating, maxUserRating, kEff_0);
|
|
43037
43037
|
tmp$ret$21 = new PlayerRatingOutput(item_2.m6x_1, item_2.n6x_1, newRating_0, item_2.p6x_1);
|
|
43038
43038
|
}
|
|
43039
43039
|
destination_4.j(tmp$ret$21);
|
|
@@ -43124,13 +43124,13 @@
|
|
|
43124
43124
|
var tmp1_$this = this.o8l_1;
|
|
43125
43125
|
var tmp2_minUserRating = leaguesConfig.minUserRating;
|
|
43126
43126
|
var tmp3_maxUserRating = leaguesConfig.maxUserRating;
|
|
43127
|
-
tmp = tmp1_$this.k8l(maxScore, tmp2_minUserRating, tmp3_maxUserRating,
|
|
43127
|
+
tmp = tmp1_$this.k8l(maxScore, tmp2_minUserRating, tmp3_maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig);
|
|
43128
43128
|
break;
|
|
43129
43129
|
case 3:
|
|
43130
43130
|
var tmp4_$this = this.o8l_1;
|
|
43131
43131
|
var tmp5_minUserRating = leaguesConfig.minUserRating;
|
|
43132
43132
|
var tmp6_maxUserRating = leaguesConfig.maxUserRating;
|
|
43133
|
-
tmp = tmp4_$this.l8l(maxScore, tmp5_minUserRating, tmp6_maxUserRating,
|
|
43133
|
+
tmp = tmp4_$this.l8l(maxScore, tmp5_minUserRating, tmp6_maxUserRating, gameComplexityCoefficient, ratingList, ratingConfig);
|
|
43134
43134
|
break;
|
|
43135
43135
|
default:
|
|
43136
43136
|
noWhenBranchMatchedException();
|
|
@@ -48830,12 +48830,13 @@
|
|
|
48830
48830
|
protoOf(sendFromClientEventsMiddleware$$inlined$middlewareForActionType$1).o6d = function (store, next, action) {
|
|
48831
48831
|
return this.e6f(store, next, action);
|
|
48832
48832
|
};
|
|
48833
|
-
function roundLifecycleMiddleware(scenePositionProvider) {
|
|
48833
|
+
function roundLifecycleMiddleware(scenePositionProvider, logger) {
|
|
48834
48834
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
48835
|
-
return new roundLifecycleMiddleware$$inlined$middlewareForActionType$1(scenePositionProvider);
|
|
48835
|
+
return new roundLifecycleMiddleware$$inlined$middlewareForActionType$1(scenePositionProvider, logger);
|
|
48836
48836
|
}
|
|
48837
|
-
function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider) {
|
|
48837
|
+
function roundLifecycleMiddleware$$inlined$middlewareForActionType$1($scenePositionProvider, $logger) {
|
|
48838
48838
|
this.y8x_1 = $scenePositionProvider;
|
|
48839
|
+
this.z8x_1 = $logger;
|
|
48839
48840
|
}
|
|
48840
48841
|
protoOf(roundLifecycleMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
48841
48842
|
return action instanceof MechanicAction;
|
|
@@ -48930,81 +48931,127 @@
|
|
|
48930
48931
|
tmp_1 = false;
|
|
48931
48932
|
}
|
|
48932
48933
|
var isGameFinished = tmp_1;
|
|
48933
|
-
var
|
|
48934
|
-
var
|
|
48935
|
-
var
|
|
48936
|
-
|
|
48937
|
-
|
|
48934
|
+
var tmp11_safe_receiver = sceneData.m76_1;
|
|
48935
|
+
var tmp12_safe_receiver = tmp11_safe_receiver == null ? null : tmp11_safe_receiver.u();
|
|
48936
|
+
var tmp_3;
|
|
48937
|
+
if (tmp12_safe_receiver == null) {
|
|
48938
|
+
tmp_3 = null;
|
|
48939
|
+
} else {
|
|
48940
|
+
// Inline function 'kotlin.collections.map' call
|
|
48941
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
48942
|
+
var destination_2 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp12_safe_receiver, 10));
|
|
48943
|
+
var _iterator__ex2g4s_2 = tmp12_safe_receiver.l();
|
|
48944
|
+
while (_iterator__ex2g4s_2.m()) {
|
|
48945
|
+
var item_1 = _iterator__ex2g4s_2.n();
|
|
48946
|
+
// Inline function 'kotlin.collections.component1' call
|
|
48947
|
+
var playerId = item_1.v();
|
|
48948
|
+
// Inline function 'kotlin.collections.component2' call
|
|
48949
|
+
var achievements = item_1.w();
|
|
48950
|
+
var tmp$ret$19 = mapToPlayerAchievements(achievements, playerId);
|
|
48951
|
+
destination_2.j(tmp$ret$19);
|
|
48952
|
+
}
|
|
48953
|
+
tmp_3 = destination_2;
|
|
48954
|
+
}
|
|
48955
|
+
var playerAchievements = tmp_3;
|
|
48938
48956
|
var tmp_4;
|
|
48939
|
-
if (
|
|
48957
|
+
if (playerAchievements == null) {
|
|
48940
48958
|
tmp_4 = null;
|
|
48941
48959
|
} else {
|
|
48942
|
-
// Inline function 'kotlin.collections.
|
|
48943
|
-
|
|
48960
|
+
// Inline function 'kotlin.collections.filter' call
|
|
48961
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
48962
|
+
var destination_3 = ArrayList_init_$Create$_0();
|
|
48963
|
+
var _iterator__ex2g4s_3 = playerAchievements.l();
|
|
48964
|
+
while (_iterator__ex2g4s_3.m()) {
|
|
48965
|
+
var element_0 = _iterator__ex2g4s_3.n();
|
|
48966
|
+
// Inline function 'kotlin.math.absoluteValue' call
|
|
48967
|
+
var this_2 = element_0.oldRating - element_0.newRating;
|
|
48968
|
+
if (Math.abs(this_2) >= 60) {
|
|
48969
|
+
destination_3.j(element_0);
|
|
48970
|
+
}
|
|
48971
|
+
}
|
|
48972
|
+
tmp_4 = destination_3;
|
|
48973
|
+
}
|
|
48974
|
+
var tmp14_elvis_lhs = tmp_4;
|
|
48975
|
+
var suspiciousRatingChange = tmp14_elvis_lhs == null ? emptyList() : tmp14_elvis_lhs;
|
|
48976
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
48977
|
+
if (!suspiciousRatingChange.r()) {
|
|
48978
|
+
this.z8x_1.w('roundLifecycleMiddleware', 'Suspicious rating change: ' + toString(suspiciousRatingChange));
|
|
48944
48979
|
}
|
|
48945
|
-
var tmp19_gameWinners = tmp_4;
|
|
48946
48980
|
var tmp_5;
|
|
48981
|
+
if (playerAchievements == null) {
|
|
48982
|
+
tmp_5 = null;
|
|
48983
|
+
} else {
|
|
48984
|
+
// Inline function 'kotlin.collections.filter' call
|
|
48985
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
48986
|
+
var destination_4 = ArrayList_init_$Create$_0();
|
|
48987
|
+
var _iterator__ex2g4s_4 = playerAchievements.l();
|
|
48988
|
+
while (_iterator__ex2g4s_4.m()) {
|
|
48989
|
+
var element_1 = _iterator__ex2g4s_4.n();
|
|
48990
|
+
if (element_1.oldRating < 2000 && element_1.newRating > 2000) {
|
|
48991
|
+
destination_4.j(element_1);
|
|
48992
|
+
}
|
|
48993
|
+
}
|
|
48994
|
+
tmp_5 = destination_4;
|
|
48995
|
+
}
|
|
48996
|
+
var tmp16_elvis_lhs = tmp_5;
|
|
48997
|
+
var ratingChangeAboveLimit = tmp16_elvis_lhs == null ? emptyList() : tmp16_elvis_lhs;
|
|
48998
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
48999
|
+
if (!ratingChangeAboveLimit.r()) {
|
|
49000
|
+
this.z8x_1.w('roundLifecycleMiddleware', 'Rating change above limit: ' + toString(suspiciousRatingChange));
|
|
49001
|
+
}
|
|
49002
|
+
var tmp_6 = store.dispatch;
|
|
49003
|
+
var tmp19_id = table_0.id;
|
|
49004
|
+
var tmp20_gameId = table_0.gameId;
|
|
49005
|
+
var tmp21_roundNumber = table_0.gameInfo.round.roundNumber;
|
|
49006
|
+
var tmp22_earnedBiggestPointPlayerId = sceneData.h76_1;
|
|
49007
|
+
var tmp_7;
|
|
49008
|
+
if (gameWinners == null) {
|
|
49009
|
+
tmp_7 = null;
|
|
49010
|
+
} else {
|
|
49011
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
49012
|
+
tmp_7 = copyToArray(gameWinners);
|
|
49013
|
+
}
|
|
49014
|
+
var tmp23_gameWinners = tmp_7;
|
|
49015
|
+
var tmp_8;
|
|
48947
49016
|
if (isGameFinished) {
|
|
48948
49017
|
// Inline function 'kotlin.collections.map' call
|
|
48949
|
-
var
|
|
49018
|
+
var this_3 = table_0.players;
|
|
48950
49019
|
// Inline function 'kotlin.collections.mapTo' call
|
|
48951
|
-
var
|
|
48952
|
-
var
|
|
48953
|
-
while (
|
|
48954
|
-
var
|
|
48955
|
-
var tmp$ret$
|
|
48956
|
-
|
|
49020
|
+
var destination_5 = ArrayList_init_$Create$(collectionSizeOrDefault(this_3, 10));
|
|
49021
|
+
var _iterator__ex2g4s_5 = this_3.l();
|
|
49022
|
+
while (_iterator__ex2g4s_5.m()) {
|
|
49023
|
+
var item_2 = _iterator__ex2g4s_5.n();
|
|
49024
|
+
var tmp$ret$32 = mapToGameAnalytics(item_2, table_0.gameDuration);
|
|
49025
|
+
destination_5.j(tmp$ret$32);
|
|
48957
49026
|
}
|
|
48958
49027
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
48959
|
-
|
|
49028
|
+
tmp_8 = copyToArray(destination_5);
|
|
48960
49029
|
} else {
|
|
48961
|
-
|
|
49030
|
+
tmp_8 = null;
|
|
48962
49031
|
}
|
|
48963
|
-
var
|
|
49032
|
+
var tmp24_playersGameAnalytics = tmp_8;
|
|
48964
49033
|
// Inline function 'kotlin.collections.map' call
|
|
48965
|
-
var
|
|
49034
|
+
var this_4 = table_0.players;
|
|
48966
49035
|
// Inline function 'kotlin.collections.mapTo' call
|
|
48967
|
-
var
|
|
48968
|
-
var
|
|
48969
|
-
while (
|
|
48970
|
-
var
|
|
48971
|
-
var tmp$ret$
|
|
48972
|
-
|
|
49036
|
+
var destination_6 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
49037
|
+
var _iterator__ex2g4s_6 = this_4.l();
|
|
49038
|
+
while (_iterator__ex2g4s_6.m()) {
|
|
49039
|
+
var item_3 = _iterator__ex2g4s_6.n();
|
|
49040
|
+
var tmp$ret$36 = mapToRoundAnalytics(item_3, table_0.gameDuration);
|
|
49041
|
+
destination_6.j(tmp$ret$36);
|
|
48973
49042
|
}
|
|
48974
49043
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
48975
|
-
var
|
|
48976
|
-
var
|
|
48977
|
-
var
|
|
48978
|
-
|
|
48979
|
-
|
|
48980
|
-
if (tmp13_safe_receiver == null) {
|
|
48981
|
-
tmp_6 = null;
|
|
48982
|
-
} else {
|
|
48983
|
-
// Inline function 'kotlin.collections.map' call
|
|
48984
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
48985
|
-
var destination_4 = ArrayList_init_$Create$(collectionSizeOrDefault(tmp13_safe_receiver, 10));
|
|
48986
|
-
var _iterator__ex2g4s_4 = tmp13_safe_receiver.l();
|
|
48987
|
-
while (_iterator__ex2g4s_4.m()) {
|
|
48988
|
-
var item_3 = _iterator__ex2g4s_4.n();
|
|
48989
|
-
// Inline function 'kotlin.collections.component1' call
|
|
48990
|
-
var playerId = item_3.v();
|
|
48991
|
-
// Inline function 'kotlin.collections.component2' call
|
|
48992
|
-
var achievements = item_3.w();
|
|
48993
|
-
var tmp$ret$28 = mapToPlayerAchievements(achievements, playerId);
|
|
48994
|
-
destination_4.j(tmp$ret$28);
|
|
48995
|
-
}
|
|
48996
|
-
tmp_6 = destination_4;
|
|
48997
|
-
}
|
|
48998
|
-
var tmp14_safe_receiver = tmp_6;
|
|
48999
|
-
var tmp_7;
|
|
49000
|
-
if (tmp14_safe_receiver == null) {
|
|
49001
|
-
tmp_7 = null;
|
|
49044
|
+
var tmp25_playersRoundAnalytics = copyToArray(destination_6);
|
|
49045
|
+
var tmp26_gameHistory = table_0.gameHistory;
|
|
49046
|
+
var tmp_9;
|
|
49047
|
+
if (playerAchievements == null) {
|
|
49048
|
+
tmp_9 = null;
|
|
49002
49049
|
} else {
|
|
49003
49050
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
49004
|
-
|
|
49051
|
+
tmp_9 = copyToArray(playerAchievements);
|
|
49005
49052
|
}
|
|
49006
|
-
var
|
|
49007
|
-
|
|
49053
|
+
var tmp27_achievements = tmp_9;
|
|
49054
|
+
tmp_6(new RoundEndedAction(tmp19_id, tmp20_gameId, tmp21_roundNumber, tmp22_earnedBiggestPointPlayerId, gameLosers, tmp23_gameWinners, tmp24_playersGameAnalytics, tmp25_playersRoundAnalytics, tmp27_achievements, tmp26_gameHistory));
|
|
49008
49055
|
}
|
|
49009
49056
|
}
|
|
49010
49057
|
}
|
|
@@ -49045,8 +49092,8 @@
|
|
|
49045
49092
|
return true;
|
|
49046
49093
|
}
|
|
49047
49094
|
function putPlayerLastCardMiddleware$$inlined$middlewareForActionType$1($lastCardInteractor, $isEnableForPlayer) {
|
|
49048
|
-
this.
|
|
49049
|
-
this.
|
|
49095
|
+
this.a8y_1 = $lastCardInteractor;
|
|
49096
|
+
this.b8y_1 = $isEnableForPlayer;
|
|
49050
49097
|
}
|
|
49051
49098
|
protoOf(putPlayerLastCardMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
49052
49099
|
return isInterface(action, CardsMechanicAction);
|
|
@@ -49055,7 +49102,7 @@
|
|
|
49055
49102
|
var action_0 = isInterface(action, CardsMechanicAction) ? action : THROW_CCE();
|
|
49056
49103
|
next(action_0);
|
|
49057
49104
|
var tmp0_table = store.state.j6i();
|
|
49058
|
-
var newAction = getBotActionIfNeeded(action_0, tmp0_table, this.
|
|
49105
|
+
var newAction = getBotActionIfNeeded(action_0, tmp0_table, this.a8y_1, this.b8y_1);
|
|
49059
49106
|
if (newAction == null)
|
|
49060
49107
|
null;
|
|
49061
49108
|
else {
|
|
@@ -49077,16 +49124,16 @@
|
|
|
49077
49124
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z($loggerFactory, $currentPlayerId, $asyncProvider, $loggerOutput, gameId, roomId) {
|
|
49078
49125
|
var controller = $loggerFactory.a6c(gameId, roomId, $currentPlayerId);
|
|
49079
49126
|
var job = $asyncProvider.k6a(VOID, fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0(controller, $loggerOutput, gameId, null));
|
|
49080
|
-
$loggerOutput.
|
|
49127
|
+
$loggerOutput.c8y(gameId, job, controller);
|
|
49081
49128
|
}
|
|
49082
49129
|
function fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj($loggerOutput, gameId) {
|
|
49083
|
-
$loggerOutput.
|
|
49130
|
+
$loggerOutput.d8y(gameId);
|
|
49084
49131
|
}
|
|
49085
49132
|
function fileLoggerByGameIdMiddleware$$inlined$middlewareForActionType$1($loggerFactory, $currentPlayerId, $asyncProvider, $loggerOutput) {
|
|
49086
|
-
this.
|
|
49087
|
-
this.
|
|
49088
|
-
this.
|
|
49089
|
-
this.
|
|
49133
|
+
this.e8y_1 = $loggerFactory;
|
|
49134
|
+
this.f8y_1 = $currentPlayerId;
|
|
49135
|
+
this.g8y_1 = $asyncProvider;
|
|
49136
|
+
this.h8y_1 = $loggerOutput;
|
|
49090
49137
|
}
|
|
49091
49138
|
protoOf(fileLoggerByGameIdMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
49092
49139
|
return action instanceof MechanicAction;
|
|
@@ -49095,11 +49142,11 @@
|
|
|
49095
49142
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
49096
49143
|
next(action_0);
|
|
49097
49144
|
if (isInterface(action_0, FirstMechanicAction)) {
|
|
49098
|
-
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.
|
|
49145
|
+
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.e8y_1, this.f8y_1, this.g8y_1, this.h8y_1, action_0.id, action_0.id);
|
|
49099
49146
|
} else {
|
|
49100
49147
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
49101
|
-
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.
|
|
49102
|
-
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.
|
|
49148
|
+
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.h8y_1, action_0.previousGameId);
|
|
49149
|
+
fileLoggerByGameIdMiddleware$_anonymous_$createLogger_iox06z(this.e8y_1, this.f8y_1, this.g8y_1, this.h8y_1, action_0.gameId, store.state.j6i().id);
|
|
49103
49150
|
} else {
|
|
49104
49151
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
49105
49152
|
var tmp1_safe_receiver = store.state.t6h_1;
|
|
@@ -49108,7 +49155,7 @@
|
|
|
49108
49155
|
null;
|
|
49109
49156
|
else {
|
|
49110
49157
|
// Inline function 'kotlin.let' call
|
|
49111
|
-
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.
|
|
49158
|
+
fileLoggerByGameIdMiddleware$_anonymous_$destroyLogger_qrxknj(this.h8y_1, tmp2_safe_receiver);
|
|
49112
49159
|
}
|
|
49113
49160
|
}
|
|
49114
49161
|
}
|
|
@@ -49118,8 +49165,8 @@
|
|
|
49118
49165
|
return this.e6f(store, next, action);
|
|
49119
49166
|
};
|
|
49120
49167
|
function clearLogFilesMiddleware$o$handle$slambda($fileSystem, $coreConfig, resultContinuation) {
|
|
49121
|
-
this.
|
|
49122
|
-
this.
|
|
49168
|
+
this.q8y_1 = $fileSystem;
|
|
49169
|
+
this.r8y_1 = $coreConfig;
|
|
49123
49170
|
CoroutineImpl.call(this, resultContinuation);
|
|
49124
49171
|
}
|
|
49125
49172
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).h2d = function ($this$launchDefault, $completion) {
|
|
@@ -49140,7 +49187,7 @@
|
|
|
49140
49187
|
case 0:
|
|
49141
49188
|
this.s8_1 = 2;
|
|
49142
49189
|
this.r8_1 = 1;
|
|
49143
|
-
suspendResult = this.
|
|
49190
|
+
suspendResult = this.q8y_1.y6b(this.r8y_1.requireDirectoryPath, this);
|
|
49144
49191
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
49145
49192
|
return suspendResult;
|
|
49146
49193
|
}
|
|
@@ -49163,8 +49210,8 @@
|
|
|
49163
49210
|
while (true);
|
|
49164
49211
|
};
|
|
49165
49212
|
protoOf(clearLogFilesMiddleware$o$handle$slambda).i2d = function ($this$launchDefault, completion) {
|
|
49166
|
-
var i = new clearLogFilesMiddleware$o$handle$slambda(this.
|
|
49167
|
-
i.
|
|
49213
|
+
var i = new clearLogFilesMiddleware$o$handle$slambda(this.q8y_1, this.r8y_1, completion);
|
|
49214
|
+
i.s8y_1 = $this$launchDefault;
|
|
49168
49215
|
return i;
|
|
49169
49216
|
};
|
|
49170
49217
|
function clearLogFilesMiddleware$o$handle$slambda_0($fileSystem, $coreConfig, resultContinuation) {
|
|
@@ -49176,29 +49223,29 @@
|
|
|
49176
49223
|
return l;
|
|
49177
49224
|
}
|
|
49178
49225
|
function clearLogFilesMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $fileSystem, $coreConfig) {
|
|
49179
|
-
this.
|
|
49180
|
-
this.
|
|
49181
|
-
this.
|
|
49226
|
+
this.t8y_1 = $asyncProvider;
|
|
49227
|
+
this.u8y_1 = $fileSystem;
|
|
49228
|
+
this.v8y_1 = $coreConfig;
|
|
49182
49229
|
}
|
|
49183
49230
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
49184
49231
|
return action instanceof ClearAction;
|
|
49185
49232
|
};
|
|
49186
49233
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).e6f = function (store, next, action) {
|
|
49187
49234
|
var action_0 = action instanceof ClearAction ? action : THROW_CCE();
|
|
49188
|
-
this.
|
|
49235
|
+
this.t8y_1.k6a(VOID, clearLogFilesMiddleware$o$handle$slambda_0(this.u8y_1, this.v8y_1, null));
|
|
49189
49236
|
next(action_0);
|
|
49190
49237
|
};
|
|
49191
49238
|
protoOf(clearLogFilesMiddleware$$inlined$middlewareForActionType$1).o6d = function (store, next, action) {
|
|
49192
49239
|
return this.e6f(store, next, action);
|
|
49193
49240
|
};
|
|
49194
49241
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
49195
|
-
this.
|
|
49242
|
+
this.w8y_1 = function_0;
|
|
49196
49243
|
}
|
|
49197
49244
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).x27 = function (value, $completion) {
|
|
49198
|
-
return this.
|
|
49245
|
+
return this.w8y_1(value, $completion);
|
|
49199
49246
|
};
|
|
49200
49247
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).a3 = function () {
|
|
49201
|
-
return this.
|
|
49248
|
+
return this.w8y_1;
|
|
49202
49249
|
};
|
|
49203
49250
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
49204
49251
|
var tmp;
|
|
@@ -49219,17 +49266,17 @@
|
|
|
49219
49266
|
return hashCode(this.a3());
|
|
49220
49267
|
};
|
|
49221
49268
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation) {
|
|
49222
|
-
this.
|
|
49269
|
+
this.f8z_1 = $controller;
|
|
49223
49270
|
CoroutineImpl.call(this, resultContinuation);
|
|
49224
49271
|
}
|
|
49225
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
49226
|
-
var tmp = this.
|
|
49272
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).h8z = function (it, $completion) {
|
|
49273
|
+
var tmp = this.i8z(it, $completion);
|
|
49227
49274
|
tmp.t8_1 = Unit_instance;
|
|
49228
49275
|
tmp.u8_1 = null;
|
|
49229
49276
|
return tmp.z8();
|
|
49230
49277
|
};
|
|
49231
49278
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).h9 = function (p1, $completion) {
|
|
49232
|
-
return this.
|
|
49279
|
+
return this.h8z(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
|
|
49233
49280
|
};
|
|
49234
49281
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).z8 = function () {
|
|
49235
49282
|
var suspendResult = this.t8_1;
|
|
@@ -49239,9 +49286,9 @@
|
|
|
49239
49286
|
switch (tmp) {
|
|
49240
49287
|
case 0:
|
|
49241
49288
|
this.s8_1 = 2;
|
|
49242
|
-
var log = this.
|
|
49289
|
+
var log = this.g8z_1.toMessageLog();
|
|
49243
49290
|
this.r8_1 = 1;
|
|
49244
|
-
suspendResult = this.
|
|
49291
|
+
suspendResult = this.f8z_1.a6d(log, this);
|
|
49245
49292
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
49246
49293
|
return suspendResult;
|
|
49247
49294
|
}
|
|
@@ -49263,23 +49310,23 @@
|
|
|
49263
49310
|
}
|
|
49264
49311
|
while (true);
|
|
49265
49312
|
};
|
|
49266
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
49267
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.
|
|
49268
|
-
i.
|
|
49313
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).i8z = function (it, completion) {
|
|
49314
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.f8z_1, completion);
|
|
49315
|
+
i.g8z_1 = it;
|
|
49269
49316
|
return i;
|
|
49270
49317
|
};
|
|
49271
49318
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, resultContinuation) {
|
|
49272
49319
|
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation);
|
|
49273
49320
|
var l = function (it, $completion) {
|
|
49274
|
-
return i.
|
|
49321
|
+
return i.h8z(it, $completion);
|
|
49275
49322
|
};
|
|
49276
49323
|
l.$arity = 1;
|
|
49277
49324
|
return l;
|
|
49278
49325
|
}
|
|
49279
49326
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1($controller, $$loggerOutput, $gameId, resultContinuation) {
|
|
49280
|
-
this.
|
|
49281
|
-
this.
|
|
49282
|
-
this.
|
|
49327
|
+
this.r8z_1 = $controller;
|
|
49328
|
+
this.s8z_1 = $$loggerOutput;
|
|
49329
|
+
this.t8z_1 = $gameId;
|
|
49283
49330
|
CoroutineImpl.call(this, resultContinuation);
|
|
49284
49331
|
}
|
|
49285
49332
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).h2d = function ($this$launchDefault, $completion) {
|
|
@@ -49300,7 +49347,7 @@
|
|
|
49300
49347
|
case 0:
|
|
49301
49348
|
this.s8_1 = 3;
|
|
49302
49349
|
this.r8_1 = 1;
|
|
49303
|
-
suspendResult = this.
|
|
49350
|
+
suspendResult = this.r8z_1.z6c(this);
|
|
49304
49351
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
49305
49352
|
return suspendResult;
|
|
49306
49353
|
}
|
|
@@ -49308,8 +49355,8 @@
|
|
|
49308
49355
|
continue $sm;
|
|
49309
49356
|
case 1:
|
|
49310
49357
|
this.r8_1 = 2;
|
|
49311
|
-
var tmp_0 = this.
|
|
49312
|
-
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.
|
|
49358
|
+
var tmp_0 = this.s8z_1.v8z(this.t8z_1);
|
|
49359
|
+
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.r8z_1, null);
|
|
49313
49360
|
suspendResult = tmp_0.j27(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
49314
49361
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
49315
49362
|
return suspendResult;
|
|
@@ -49333,8 +49380,8 @@
|
|
|
49333
49380
|
while (true);
|
|
49334
49381
|
};
|
|
49335
49382
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).i2d = function ($this$launchDefault, completion) {
|
|
49336
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.
|
|
49337
|
-
i.
|
|
49383
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.r8z_1, this.s8z_1, this.t8z_1, completion);
|
|
49384
|
+
i.u8z_1 = $this$launchDefault;
|
|
49338
49385
|
return i;
|
|
49339
49386
|
};
|
|
49340
49387
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0($controller, $$loggerOutput, $gameId, resultContinuation) {
|
|
@@ -49453,20 +49500,20 @@
|
|
|
49453
49500
|
return null;
|
|
49454
49501
|
}
|
|
49455
49502
|
function sceneRouterMiddleware$$inlined$middlewareForActionType$1($engineLogicConfig, $logger, $sceneRouter, $idsProvider, $playerConnectionInteractor) {
|
|
49456
|
-
this.
|
|
49457
|
-
this.
|
|
49458
|
-
this.
|
|
49459
|
-
this.
|
|
49460
|
-
this.
|
|
49503
|
+
this.w8z_1 = $engineLogicConfig;
|
|
49504
|
+
this.x8z_1 = $logger;
|
|
49505
|
+
this.y8z_1 = $sceneRouter;
|
|
49506
|
+
this.z8z_1 = $idsProvider;
|
|
49507
|
+
this.a90_1 = $playerConnectionInteractor;
|
|
49461
49508
|
}
|
|
49462
49509
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
49463
49510
|
return action instanceof MechanicAction;
|
|
49464
49511
|
};
|
|
49465
49512
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).e6f = function (store, next, action) {
|
|
49466
49513
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
49467
|
-
if (this.
|
|
49514
|
+
if (this.w8z_1.validateIfMainThread) {
|
|
49468
49515
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
49469
|
-
var logger = this.
|
|
49516
|
+
var logger = this.x8z_1;
|
|
49470
49517
|
var tmp;
|
|
49471
49518
|
try {
|
|
49472
49519
|
assertIfMainThread('sceneRouterMiddleware is called from main thread for action = ' + toString(action_0));
|
|
@@ -49493,22 +49540,22 @@
|
|
|
49493
49540
|
if (equals(action_0.e8r_1.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
49494
49541
|
tmp_2 = listOf(createHostDealerAct(action_0.h8r_1));
|
|
49495
49542
|
} else {
|
|
49496
|
-
tmp_2 = listOf(new SceneStartedMechanicAction(this.
|
|
49543
|
+
tmp_2 = listOf(new SceneStartedMechanicAction(this.y8z_1.v8o(action_0.e8r_1, true).i8p_1));
|
|
49497
49544
|
}
|
|
49498
49545
|
tmp_1 = tmp_2;
|
|
49499
49546
|
} else {
|
|
49500
49547
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
49501
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
49548
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.y8z_1.v8o(state.j6i().config, false).i8p_1));
|
|
49502
49549
|
} else {
|
|
49503
49550
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
49504
49551
|
var tmp1_config = state.j6i().config;
|
|
49505
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
49552
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.y8z_1.w8o(tmp1_config, false, false).i8p_1));
|
|
49506
49553
|
} else {
|
|
49507
49554
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
49508
49555
|
tmp_1 = listOf(new SceneEndedMechanicAction(state.j6i().sceneInfo.t7p_1));
|
|
49509
49556
|
} else {
|
|
49510
49557
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
49511
|
-
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.j6i(), this.
|
|
49558
|
+
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.j6i(), this.z8z_1, this.w8z_1, this.a90_1, this.x8z_1));
|
|
49512
49559
|
} else {
|
|
49513
49560
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
49514
49561
|
var tmp_3;
|
|
@@ -49646,9 +49693,9 @@
|
|
|
49646
49693
|
}
|
|
49647
49694
|
function PlayerTurnTimerTag(playersIds, tag, afterReconnection) {
|
|
49648
49695
|
afterReconnection = afterReconnection === VOID ? false : afterReconnection;
|
|
49649
|
-
this.
|
|
49650
|
-
this.
|
|
49651
|
-
this.
|
|
49696
|
+
this.b90_1 = playersIds;
|
|
49697
|
+
this.c90_1 = tag;
|
|
49698
|
+
this.d90_1 = afterReconnection;
|
|
49652
49699
|
}
|
|
49653
49700
|
protoOf(PlayerTurnTimerTag).equals = function (other) {
|
|
49654
49701
|
if (this === other)
|
|
@@ -49657,13 +49704,13 @@
|
|
|
49657
49704
|
return false;
|
|
49658
49705
|
if (!(other instanceof PlayerTurnTimerTag))
|
|
49659
49706
|
THROW_CCE();
|
|
49660
|
-
return equals(this.
|
|
49707
|
+
return equals(this.b90_1, other.b90_1);
|
|
49661
49708
|
};
|
|
49662
49709
|
protoOf(PlayerTurnTimerTag).hashCode = function () {
|
|
49663
|
-
return hashCode(this.
|
|
49710
|
+
return hashCode(this.b90_1);
|
|
49664
49711
|
};
|
|
49665
49712
|
protoOf(PlayerTurnTimerTag).toString = function () {
|
|
49666
|
-
return 'PlayerTurnTimerTag(playersIds=' + toString(this.
|
|
49713
|
+
return 'PlayerTurnTimerTag(playersIds=' + toString(this.b90_1) + ', tag=' + this.c90_1 + ', afterReconnection=' + this.d90_1 + ')';
|
|
49667
49714
|
};
|
|
49668
49715
|
function getInitialPlayerTurnTimerDelayMillis(player, config, isDelayForBot, random) {
|
|
49669
49716
|
isDelayForBot = isDelayForBot === VOID ? false : isDelayForBot;
|
|
@@ -49706,10 +49753,10 @@
|
|
|
49706
49753
|
return tmp;
|
|
49707
49754
|
}
|
|
49708
49755
|
function playerStartTimerMiddleware$$inlined$middlewareForActionType$1($isEnableTimerForPlayer, $playerTurnInteractor, $botConfig, $mergeTimers) {
|
|
49709
|
-
this.
|
|
49710
|
-
this.
|
|
49711
|
-
this.
|
|
49712
|
-
this.
|
|
49756
|
+
this.e90_1 = $isEnableTimerForPlayer;
|
|
49757
|
+
this.f90_1 = $playerTurnInteractor;
|
|
49758
|
+
this.g90_1 = $botConfig;
|
|
49759
|
+
this.h90_1 = $mergeTimers;
|
|
49713
49760
|
}
|
|
49714
49761
|
protoOf(playerStartTimerMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
49715
49762
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -49725,14 +49772,14 @@
|
|
|
49725
49772
|
var _iterator__ex2g4s = tmp0.l();
|
|
49726
49773
|
while (_iterator__ex2g4s.m()) {
|
|
49727
49774
|
var element = _iterator__ex2g4s.n();
|
|
49728
|
-
if (this.
|
|
49775
|
+
if (this.e90_1(element)) {
|
|
49729
49776
|
destination.j(element);
|
|
49730
49777
|
}
|
|
49731
49778
|
}
|
|
49732
49779
|
var startTimerForPlayers = destination;
|
|
49733
49780
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
49734
49781
|
if (!startTimerForPlayers.r()) {
|
|
49735
|
-
var playerTurnModel = this.
|
|
49782
|
+
var playerTurnModel = this.f90_1.a8m(action_0, table);
|
|
49736
49783
|
if (!(playerTurnModel == null)) {
|
|
49737
49784
|
// Inline function 'kotlin.collections.map' call
|
|
49738
49785
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -49740,11 +49787,11 @@
|
|
|
49740
49787
|
var _iterator__ex2g4s_0 = startTimerForPlayers.l();
|
|
49741
49788
|
while (_iterator__ex2g4s_0.m()) {
|
|
49742
49789
|
var item = _iterator__ex2g4s_0.n();
|
|
49743
|
-
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.
|
|
49790
|
+
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.g90_1.isDelayForBot, this.g90_1.simulateBotThinkingDelay ? Default_getInstance() : null));
|
|
49744
49791
|
destination_0.j(tmp$ret$4);
|
|
49745
49792
|
}
|
|
49746
49793
|
var timeForPlayers = destination_0;
|
|
49747
|
-
if (this.
|
|
49794
|
+
if (this.h90_1) {
|
|
49748
49795
|
// Inline function 'kotlin.collections.groupBy' call
|
|
49749
49796
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
49750
49797
|
var destination_1 = LinkedHashMap_init_$Create$();
|
|
@@ -49818,14 +49865,14 @@
|
|
|
49818
49865
|
return this.e6f(store, next, action);
|
|
49819
49866
|
};
|
|
49820
49867
|
function playerStopTimerMiddleware$$inlined$middlewareForActionType$1($isEnableBotForPlayer) {
|
|
49821
|
-
this.
|
|
49868
|
+
this.i90_1 = $isEnableBotForPlayer;
|
|
49822
49869
|
}
|
|
49823
49870
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
49824
49871
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
49825
49872
|
};
|
|
49826
49873
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).e6f = function (store, next, action) {
|
|
49827
49874
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
49828
|
-
if (this.
|
|
49875
|
+
if (this.i90_1(action_0.playerId)) {
|
|
49829
49876
|
var table = store.state.j6i();
|
|
49830
49877
|
var player = getPlayer(table.players, action_0.playerId);
|
|
49831
49878
|
// Inline function 'games.jass.logic.redux.AppState.findTimer' call
|
|
@@ -49846,7 +49893,7 @@
|
|
|
49846
49893
|
var _iterator__ex2g4s_0 = destination.l();
|
|
49847
49894
|
while (_iterator__ex2g4s_0.m()) {
|
|
49848
49895
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
49849
|
-
if (element_0.
|
|
49896
|
+
if (element_0.b90_1.t1(action_0.playerId) && element_0.c90_1 === player.h6q_1.c67()) {
|
|
49850
49897
|
tmp$ret$3 = element_0;
|
|
49851
49898
|
break $l$block;
|
|
49852
49899
|
}
|
|
@@ -49868,8 +49915,8 @@
|
|
|
49868
49915
|
return new playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1(asyncProvider);
|
|
49869
49916
|
}
|
|
49870
49917
|
function playerTurnTimeoutMiddleware$o$handle$slambda($store, $timerTag, resultContinuation) {
|
|
49871
|
-
this.
|
|
49872
|
-
this.
|
|
49918
|
+
this.r90_1 = $store;
|
|
49919
|
+
this.s90_1 = $timerTag;
|
|
49873
49920
|
CoroutineImpl.call(this, resultContinuation);
|
|
49874
49921
|
}
|
|
49875
49922
|
protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).h2d = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -49888,7 +49935,7 @@
|
|
|
49888
49935
|
var tmp = this.r8_1;
|
|
49889
49936
|
if (tmp === 0) {
|
|
49890
49937
|
this.s8_1 = 1;
|
|
49891
|
-
this.
|
|
49938
|
+
this.r90_1.dispatch(new AskBotAction(this.s90_1.b90_1, 'PlayerTurn'));
|
|
49892
49939
|
return Unit_instance;
|
|
49893
49940
|
} else if (tmp === 1) {
|
|
49894
49941
|
throw this.u8_1;
|
|
@@ -49900,8 +49947,8 @@
|
|
|
49900
49947
|
while (true);
|
|
49901
49948
|
};
|
|
49902
49949
|
protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).i2d = function ($this$launchDefaultWithLock, completion) {
|
|
49903
|
-
var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.
|
|
49904
|
-
i.
|
|
49950
|
+
var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.r90_1, this.s90_1, completion);
|
|
49951
|
+
i.t90_1 = $this$launchDefaultWithLock;
|
|
49905
49952
|
return i;
|
|
49906
49953
|
};
|
|
49907
49954
|
function playerTurnTimeoutMiddleware$o$handle$slambda_0($store, $timerTag, resultContinuation) {
|
|
@@ -49913,7 +49960,7 @@
|
|
|
49913
49960
|
return l;
|
|
49914
49961
|
}
|
|
49915
49962
|
function playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1($asyncProvider) {
|
|
49916
|
-
this.
|
|
49963
|
+
this.u90_1 = $asyncProvider;
|
|
49917
49964
|
}
|
|
49918
49965
|
protoOf(playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
49919
49966
|
return action instanceof TimerTickAction;
|
|
@@ -49922,7 +49969,7 @@
|
|
|
49922
49969
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
49923
49970
|
var timerTag = action_0.k6d_1;
|
|
49924
49971
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
49925
|
-
this.
|
|
49972
|
+
this.u90_1.m6a(VOID, playerTurnTimeoutMiddleware$o$handle$slambda_0(store, timerTag, null));
|
|
49926
49973
|
}
|
|
49927
49974
|
next(action_0);
|
|
49928
49975
|
};
|
|
@@ -49934,12 +49981,12 @@
|
|
|
49934
49981
|
return new sceneLifecycleMiddleware$$inlined$middlewareForActionType$1(asyncProvider, sceneFactory, router, sceneValidationInteractor);
|
|
49935
49982
|
}
|
|
49936
49983
|
function sceneLifecycleMiddleware$o$handle$slambda($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
49937
|
-
this.
|
|
49938
|
-
this.
|
|
49939
|
-
this.
|
|
49940
|
-
this.
|
|
49941
|
-
this.
|
|
49942
|
-
this.
|
|
49984
|
+
this.d91_1 = $action;
|
|
49985
|
+
this.e91_1 = $sceneFactory;
|
|
49986
|
+
this.f91_1 = $table;
|
|
49987
|
+
this.g91_1 = $router;
|
|
49988
|
+
this.h91_1 = $store;
|
|
49989
|
+
this.i91_1 = $sceneValidationInteractor;
|
|
49943
49990
|
CoroutineImpl.call(this, resultContinuation);
|
|
49944
49991
|
}
|
|
49945
49992
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).h2d = function ($this$launchDefault, $completion) {
|
|
@@ -49959,10 +50006,10 @@
|
|
|
49959
50006
|
switch (tmp) {
|
|
49960
50007
|
case 0:
|
|
49961
50008
|
this.s8_1 = 3;
|
|
49962
|
-
var tmp0_subject = this.
|
|
50009
|
+
var tmp0_subject = this.d91_1;
|
|
49963
50010
|
if (tmp0_subject instanceof SceneStartedMechanicAction) {
|
|
49964
50011
|
this.r8_1 = 1;
|
|
49965
|
-
suspendResult = this.
|
|
50012
|
+
suspendResult = this.e91_1.r8o(this.d91_1.k8t_1, this.f91_1, this);
|
|
49966
50013
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
49967
50014
|
return suspendResult;
|
|
49968
50015
|
}
|
|
@@ -49970,37 +50017,37 @@
|
|
|
49970
50017
|
} else {
|
|
49971
50018
|
if (tmp0_subject instanceof SceneEndedMechanicAction) {
|
|
49972
50019
|
var tmp_0 = this;
|
|
49973
|
-
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.
|
|
50020
|
+
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.f91_1.players));
|
|
49974
50021
|
var gameWinnerPlayerId = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.playerId;
|
|
49975
|
-
var nextSceneCommand = this.
|
|
50022
|
+
var nextSceneCommand = this.g91_1.c8p(this.d91_1.l8t_1, !(gameWinnerPlayerId == null), false, this.f91_1.config);
|
|
49976
50023
|
var tmp_1;
|
|
49977
50024
|
if (nextSceneCommand instanceof MoveSceneNext) {
|
|
49978
50025
|
tmp_1 = listOf(new SceneStartedMechanicAction(nextSceneCommand.i8p_1));
|
|
49979
50026
|
} else {
|
|
49980
50027
|
noWhenBranchMatchedException();
|
|
49981
50028
|
}
|
|
49982
|
-
tmp_0.
|
|
50029
|
+
tmp_0.k91_1 = tmp_1;
|
|
49983
50030
|
this.r8_1 = 2;
|
|
49984
50031
|
continue $sm;
|
|
49985
50032
|
} else {
|
|
49986
50033
|
if (tmp0_subject instanceof SceneActStartedMechanicAction) {
|
|
49987
50034
|
var tmp_2 = this;
|
|
49988
|
-
this.
|
|
49989
|
-
var mechanicAction = new SceneActMechanicAction(this.
|
|
49990
|
-
tmp_2.
|
|
50035
|
+
this.i91_1.z8o(this.h91_1.state.w6h_1, 'Timers are not empty before scene act ' + this.d91_1.m8t_1 + ', ' + this.d91_1.n8t_1);
|
|
50036
|
+
var mechanicAction = new SceneActMechanicAction(this.d91_1.m8t_1, this.d91_1.n8t_1, this.d91_1.o8t_1);
|
|
50037
|
+
tmp_2.k91_1 = listOf(mechanicAction);
|
|
49991
50038
|
this.r8_1 = 2;
|
|
49992
50039
|
continue $sm;
|
|
49993
50040
|
} else {
|
|
49994
50041
|
if (tmp0_subject instanceof SceneActEndedMechanicAction) {
|
|
49995
50042
|
var tmp_3 = this;
|
|
49996
|
-
var navigationCommand = this.
|
|
50043
|
+
var navigationCommand = this.g91_1.e8p(this.d91_1.p8t_1, this.f91_1);
|
|
49997
50044
|
var tmp_4;
|
|
49998
50045
|
if (navigationCommand instanceof FinishActNext) {
|
|
49999
|
-
tmp_4 = listOf(new SceneEndedMechanicAction(this.
|
|
50046
|
+
tmp_4 = listOf(new SceneEndedMechanicAction(this.f91_1.sceneInfo.t7p_1));
|
|
50000
50047
|
} else {
|
|
50001
50048
|
if (navigationCommand instanceof MoveActNext) {
|
|
50002
50049
|
var tmp9_actId = navigationCommand.k8p_1;
|
|
50003
|
-
var tmp0 = this.
|
|
50050
|
+
var tmp0 = this.f91_1.sceneInfo.w7p_1;
|
|
50004
50051
|
var tmp$ret$2;
|
|
50005
50052
|
l$ret$3: do {
|
|
50006
50053
|
if (!(tmp0 == null) ? isInterface(tmp0, SceneData) : false) {
|
|
@@ -50012,13 +50059,13 @@
|
|
|
50012
50059
|
while (false);
|
|
50013
50060
|
var tmp10_sceneData = tmp$ret$2;
|
|
50014
50061
|
var tmp11_payload = navigationCommand.l8p_1;
|
|
50015
|
-
var actData = this.
|
|
50016
|
-
tmp_4 = listOf(new SceneActStartedMechanicAction(this.
|
|
50062
|
+
var actData = this.e91_1.s8o(tmp9_actId, tmp10_sceneData, tmp11_payload, this.f91_1);
|
|
50063
|
+
tmp_4 = listOf(new SceneActStartedMechanicAction(this.f91_1.sceneInfo.t7p_1, navigationCommand.k8p_1, actData));
|
|
50017
50064
|
} else {
|
|
50018
50065
|
noWhenBranchMatchedException();
|
|
50019
50066
|
}
|
|
50020
50067
|
}
|
|
50021
|
-
tmp_3.
|
|
50068
|
+
tmp_3.k91_1 = tmp_4;
|
|
50022
50069
|
this.r8_1 = 2;
|
|
50023
50070
|
continue $sm;
|
|
50024
50071
|
} else {
|
|
@@ -50032,19 +50079,19 @@
|
|
|
50032
50079
|
break;
|
|
50033
50080
|
case 1:
|
|
50034
50081
|
var sceneData = suspendResult;
|
|
50035
|
-
var navigationActCommand = this.
|
|
50082
|
+
var navigationActCommand = this.g91_1.b8p(sceneData, this.f91_1);
|
|
50036
50083
|
var tmp_6;
|
|
50037
50084
|
if (navigationActCommand == null) {
|
|
50038
50085
|
tmp_6 = null;
|
|
50039
50086
|
} else {
|
|
50040
50087
|
var tmp0_actId = navigationActCommand.k8p_1;
|
|
50041
50088
|
var tmp1_payload = navigationActCommand.l8p_1;
|
|
50042
|
-
tmp_6 = this.
|
|
50089
|
+
tmp_6 = this.e91_1.s8o(tmp0_actId, sceneData, tmp1_payload, this.f91_1);
|
|
50043
50090
|
}
|
|
50044
50091
|
|
|
50045
50092
|
var actData_0 = tmp_6;
|
|
50046
|
-
var state = this.
|
|
50047
|
-
this.
|
|
50093
|
+
var state = this.h91_1.state;
|
|
50094
|
+
this.i91_1.z8o(state.w6h_1, 'Timers are not empty before scene ' + this.d91_1.k8t_1);
|
|
50048
50095
|
var tmp_7;
|
|
50049
50096
|
if (equals(state.j6i().config.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
50050
50097
|
var tmp2_safe_receiver = state.j6i().sceneInfo.x7p_1;
|
|
@@ -50070,18 +50117,18 @@
|
|
|
50070
50117
|
}
|
|
50071
50118
|
|
|
50072
50119
|
var currentTurnPlayerId = tmp_7;
|
|
50073
|
-
var tmp5_sceneId = this.
|
|
50120
|
+
var tmp5_sceneId = this.d91_1.k8t_1;
|
|
50074
50121
|
var tmp6_actId = actData_0 == null ? null : actData_0.actId;
|
|
50075
50122
|
var mechanicAction_0 = new SceneMechanicAction(currentTurnPlayerId, tmp5_sceneId, tmp6_actId, sceneData, actData_0);
|
|
50076
|
-
this.
|
|
50123
|
+
this.k91_1 = listOfNotNull_0(mechanicAction_0);
|
|
50077
50124
|
this.r8_1 = 2;
|
|
50078
50125
|
continue $sm;
|
|
50079
50126
|
case 2:
|
|
50080
|
-
var navigationActions = this.
|
|
50127
|
+
var navigationActions = this.k91_1;
|
|
50081
50128
|
var _iterator__ex2g4s = navigationActions.l();
|
|
50082
50129
|
while (_iterator__ex2g4s.m()) {
|
|
50083
50130
|
var element = _iterator__ex2g4s.n();
|
|
50084
|
-
this.
|
|
50131
|
+
this.h91_1.dispatch(element);
|
|
50085
50132
|
}
|
|
50086
50133
|
|
|
50087
50134
|
return Unit_instance;
|
|
@@ -50100,8 +50147,8 @@
|
|
|
50100
50147
|
while (true);
|
|
50101
50148
|
};
|
|
50102
50149
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).i2d = function ($this$launchDefault, completion) {
|
|
50103
|
-
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.
|
|
50104
|
-
i.
|
|
50150
|
+
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.d91_1, this.e91_1, this.f91_1, this.g91_1, this.h91_1, this.i91_1, completion);
|
|
50151
|
+
i.j91_1 = $this$launchDefault;
|
|
50105
50152
|
return i;
|
|
50106
50153
|
};
|
|
50107
50154
|
function sceneLifecycleMiddleware$o$handle$slambda_0($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
@@ -50113,10 +50160,10 @@
|
|
|
50113
50160
|
return l;
|
|
50114
50161
|
}
|
|
50115
50162
|
function sceneLifecycleMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $sceneFactory, $router, $sceneValidationInteractor) {
|
|
50116
|
-
this.
|
|
50117
|
-
this.
|
|
50118
|
-
this.
|
|
50119
|
-
this.
|
|
50163
|
+
this.l91_1 = $asyncProvider;
|
|
50164
|
+
this.m91_1 = $sceneFactory;
|
|
50165
|
+
this.n91_1 = $router;
|
|
50166
|
+
this.o91_1 = $sceneValidationInteractor;
|
|
50120
50167
|
}
|
|
50121
50168
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
50122
50169
|
return action instanceof SceneLifecycleAction;
|
|
@@ -50125,7 +50172,7 @@
|
|
|
50125
50172
|
var action_0 = action instanceof SceneLifecycleAction ? action : THROW_CCE();
|
|
50126
50173
|
var table = store.state.j6i();
|
|
50127
50174
|
next(action_0);
|
|
50128
|
-
this.
|
|
50175
|
+
this.l91_1.k6a(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.m91_1, table, this.n91_1, store, this.o91_1, null));
|
|
50129
50176
|
};
|
|
50130
50177
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).o6d = function (store, next, action) {
|
|
50131
50178
|
return this.e6f(store, next, action);
|
|
@@ -50171,7 +50218,7 @@
|
|
|
50171
50218
|
return new checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
50172
50219
|
}
|
|
50173
50220
|
function checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50174
|
-
this.
|
|
50221
|
+
this.p91_1 = $logger;
|
|
50175
50222
|
}
|
|
50176
50223
|
protoOf(checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
50177
50224
|
return action instanceof PutCardMechanicAction;
|
|
@@ -50204,7 +50251,7 @@
|
|
|
50204
50251
|
var bribes = destination;
|
|
50205
50252
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
50206
50253
|
if (!bribes.r()) {
|
|
50207
|
-
this.
|
|
50254
|
+
this.p91_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.t8m_1.toString() + ', bribes = ' + toString(bribes));
|
|
50208
50255
|
}
|
|
50209
50256
|
}
|
|
50210
50257
|
next(action_0);
|
|
@@ -50217,7 +50264,7 @@
|
|
|
50217
50264
|
return new checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
50218
50265
|
}
|
|
50219
50266
|
function checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50220
|
-
this.
|
|
50267
|
+
this.q91_1 = $logger;
|
|
50221
50268
|
}
|
|
50222
50269
|
protoOf(checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
50223
50270
|
return action instanceof SceneMechanicAction;
|
|
@@ -50434,7 +50481,7 @@
|
|
|
50434
50481
|
}
|
|
50435
50482
|
var notValidMessage = tmp;
|
|
50436
50483
|
if (!(notValidMessage == null)) {
|
|
50437
|
-
this.
|
|
50484
|
+
this.q91_1.w('Validation', toString_0(notValidMessage));
|
|
50438
50485
|
}
|
|
50439
50486
|
}
|
|
50440
50487
|
}
|
|
@@ -50525,7 +50572,7 @@
|
|
|
50525
50572
|
};
|
|
50526
50573
|
}
|
|
50527
50574
|
function checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50528
|
-
this.
|
|
50575
|
+
this.r91_1 = $logger;
|
|
50529
50576
|
}
|
|
50530
50577
|
protoOf(checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
50531
50578
|
return action instanceof TimerTickAction;
|
|
@@ -50534,7 +50581,7 @@
|
|
|
50534
50581
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
50535
50582
|
var tmp = action_0.k6d_1;
|
|
50536
50583
|
if (tmp instanceof GameIsNotFinishedTimerTag) {
|
|
50537
|
-
this.
|
|
50584
|
+
this.r91_1.w('Validation', 'CheckGameISNotFinishedMiddleware: finish event is nor received');
|
|
50538
50585
|
store.dispatch(new FinishGameMechanicAction(store.state.m8p().p8p_1, store.state.j6i().isGameFinished));
|
|
50539
50586
|
}
|
|
50540
50587
|
next(action_0);
|
|
@@ -50600,7 +50647,7 @@
|
|
|
50600
50647
|
return new checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
50601
50648
|
}
|
|
50602
50649
|
function checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50603
|
-
this.
|
|
50650
|
+
this.s91_1 = $logger;
|
|
50604
50651
|
}
|
|
50605
50652
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
50606
50653
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -50608,7 +50655,7 @@
|
|
|
50608
50655
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).e6f = function (store, next, action) {
|
|
50609
50656
|
var action_0 = isInterface(action, FirstMechanicAction) ? action : THROW_CCE();
|
|
50610
50657
|
if (action_0.config.pointsMode.equals(PointsMode_TEST_getInstance())) {
|
|
50611
|
-
this.
|
|
50658
|
+
this.s91_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
|
|
50612
50659
|
}
|
|
50613
50660
|
next(action_0);
|
|
50614
50661
|
};
|
|
@@ -50624,7 +50671,7 @@
|
|
|
50624
50671
|
return new checkValidSceneActMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
50625
50672
|
}
|
|
50626
50673
|
function checkValidSceneMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50627
|
-
this.
|
|
50674
|
+
this.t91_1 = $logger;
|
|
50628
50675
|
}
|
|
50629
50676
|
protoOf(checkValidSceneMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
50630
50677
|
return action instanceof SceneMechanicAction;
|
|
@@ -50635,7 +50682,7 @@
|
|
|
50635
50682
|
if (state.k6i()) {
|
|
50636
50683
|
var sceneInfo = state.j6i().sceneInfo;
|
|
50637
50684
|
if (!get_isWaitingScene(sceneInfo.t7p_1) && Companion_instance_5.r6i(sceneInfo.t7p_1, action_0.k8m_1) && equals(sceneInfo.w7p_1, action_0.sceneData)) {
|
|
50638
|
-
this.
|
|
50685
|
+
this.t91_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
50639
50686
|
}
|
|
50640
50687
|
}
|
|
50641
50688
|
next(action_0);
|
|
@@ -50644,7 +50691,7 @@
|
|
|
50644
50691
|
return this.e6f(store, next, action);
|
|
50645
50692
|
};
|
|
50646
50693
|
function checkValidSceneActMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
50647
|
-
this.
|
|
50694
|
+
this.u91_1 = $logger;
|
|
50648
50695
|
}
|
|
50649
50696
|
protoOf(checkValidSceneActMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
50650
50697
|
return action instanceof SceneActMechanicAction;
|
|
@@ -50655,7 +50702,7 @@
|
|
|
50655
50702
|
if (state.k6i()) {
|
|
50656
50703
|
var sceneInfo = state.j6i().sceneInfo;
|
|
50657
50704
|
if (Companion_instance_5.r6i(sceneInfo.t7p_1, action_0.c8m_1) && sceneInfo.v7p_1 === action_0.d8m_1 && equals(sceneInfo.x7p_1, action_0.e8m_1)) {
|
|
50658
|
-
this.
|
|
50705
|
+
this.u91_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
50659
50706
|
}
|
|
50660
50707
|
}
|
|
50661
50708
|
next(action_0);
|
|
@@ -50715,7 +50762,7 @@
|
|
|
50715
50762
|
tmp(new ErrorToClientAction(tmp4_error, tmp3_deliveryPayload));
|
|
50716
50763
|
}
|
|
50717
50764
|
function FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
50718
|
-
this.
|
|
50765
|
+
this.v91_1 = this$0;
|
|
50719
50766
|
}
|
|
50720
50767
|
protoOf(FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
50721
50768
|
return action instanceof FromClientAction;
|
|
@@ -50741,18 +50788,18 @@
|
|
|
50741
50788
|
var tmp$ret$1 = item.playerId;
|
|
50742
50789
|
destination.j(tmp$ret$1);
|
|
50743
50790
|
}
|
|
50744
|
-
this.
|
|
50791
|
+
this.v91_1.a8w_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
50745
50792
|
break $l$block_3;
|
|
50746
50793
|
}
|
|
50747
50794
|
if (!get_isCreated(store.state)) {
|
|
50748
50795
|
if (table.sceneInfo.n76()) {
|
|
50749
|
-
this.
|
|
50796
|
+
this.v91_1.a8w_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
|
|
50750
50797
|
} else {
|
|
50751
50798
|
var message = 'Game is ' + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4);
|
|
50752
|
-
if (this.
|
|
50753
|
-
sendErrorToClient(this.
|
|
50799
|
+
if (this.v91_1.c8w_1) {
|
|
50800
|
+
sendErrorToClient(this.v91_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
|
|
50754
50801
|
}
|
|
50755
|
-
this.
|
|
50802
|
+
this.v91_1.a8w_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
50756
50803
|
}
|
|
50757
50804
|
break $l$block_3;
|
|
50758
50805
|
}
|
|
@@ -50760,18 +50807,18 @@
|
|
|
50760
50807
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t65_1;
|
|
50761
50808
|
if (!(connectionState == null) && !connectionState.isLive && !tmp4.fromBot) {
|
|
50762
50809
|
var message_0 = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
|
|
50763
|
-
if (this.
|
|
50764
|
-
sendErrorToClient(this.
|
|
50810
|
+
if (this.v91_1.c8w_1) {
|
|
50811
|
+
sendErrorToClient(this.v91_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
50765
50812
|
}
|
|
50766
|
-
this.
|
|
50813
|
+
this.v91_1.a8w_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
50767
50814
|
break $l$block_3;
|
|
50768
50815
|
}
|
|
50769
|
-
if (this.
|
|
50816
|
+
if (this.v91_1.b8w_1 && checkIfEventIsDuplicated(this.v91_1, table, tmp4)) {
|
|
50770
50817
|
var message_1 = 'Player send duplicated event:' + ('playerId = ' + player.playerId);
|
|
50771
|
-
if (this.
|
|
50772
|
-
sendErrorToClient(this.
|
|
50818
|
+
if (this.v91_1.c8w_1) {
|
|
50819
|
+
sendErrorToClient(this.v91_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
|
|
50773
50820
|
}
|
|
50774
|
-
this.
|
|
50821
|
+
this.v91_1.a8w_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
|
|
50775
50822
|
break $l$block_3;
|
|
50776
50823
|
}
|
|
50777
50824
|
next(tmp4);
|
|
@@ -50821,8 +50868,8 @@
|
|
|
50821
50868
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
50822
50869
|
}
|
|
50823
50870
|
function PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
50824
|
-
this.
|
|
50825
|
-
this.
|
|
50871
|
+
this.w91_1 = $enableCheckWhen;
|
|
50872
|
+
this.x91_1 = this$0;
|
|
50826
50873
|
}
|
|
50827
50874
|
protoOf(PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
50828
50875
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -50831,7 +50878,7 @@
|
|
|
50831
50878
|
var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
50832
50879
|
$l$block_1: {
|
|
50833
50880
|
var state = store.state;
|
|
50834
|
-
if (!isEnabledCheck(this.
|
|
50881
|
+
if (!isEnabledCheck(this.w91_1, state, tmp4)) {
|
|
50835
50882
|
next(tmp4);
|
|
50836
50883
|
break $l$block_1;
|
|
50837
50884
|
}
|
|
@@ -50847,23 +50894,23 @@
|
|
|
50847
50894
|
var tmp$ret$1 = item.playerId;
|
|
50848
50895
|
destination.j(tmp$ret$1);
|
|
50849
50896
|
}
|
|
50850
|
-
this.
|
|
50897
|
+
this.x91_1.i8w_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
50851
50898
|
break $l$block_1;
|
|
50852
50899
|
}
|
|
50853
50900
|
var table = store.state.j6i();
|
|
50854
50901
|
var player = getPlayer(table.players, tmp4.w8p_1);
|
|
50855
50902
|
var tmp0_safe_receiver = player.h6q_1.n65_1;
|
|
50856
50903
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t65_1;
|
|
50857
|
-
var _destruct__k2r9zo = isDuplicateConnectionState(this.
|
|
50904
|
+
var _destruct__k2r9zo = isDuplicateConnectionState(this.x91_1, connectionState, tmp4.v8p_1);
|
|
50858
50905
|
var duplicate = _destruct__k2r9zo.ne();
|
|
50859
50906
|
var report = _destruct__k2r9zo.oe();
|
|
50860
50907
|
if (!(connectionState == null) && duplicate) {
|
|
50861
50908
|
var message = 'Player connection state the same ' + connectionState.toString() + ':' + ('playerId = ' + player.playerId);
|
|
50862
50909
|
if (report) {
|
|
50863
|
-
if (this.
|
|
50864
|
-
sendErrorToClient_0(this.
|
|
50910
|
+
if (this.x91_1.j8w_1) {
|
|
50911
|
+
sendErrorToClient_0(this.x91_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
50865
50912
|
}
|
|
50866
|
-
this.
|
|
50913
|
+
this.x91_1.i8w_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
50867
50914
|
}
|
|
50868
50915
|
break $l$block_1;
|
|
50869
50916
|
} else {
|
|
@@ -50879,13 +50926,13 @@
|
|
|
50879
50926
|
this.i8w_1 = logger;
|
|
50880
50927
|
this.j8w_1 = sendErrorToClient;
|
|
50881
50928
|
}
|
|
50882
|
-
protoOf(PlayerConnectionValidationMiddlewares).
|
|
50929
|
+
protoOf(PlayerConnectionValidationMiddlewares).y91 = function (enableCheckWhen) {
|
|
50883
50930
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
50884
50931
|
return new PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
50885
50932
|
};
|
|
50886
50933
|
protoOf(PlayerConnectionValidationMiddlewares).k8w = function (enableCheckWhen, $super) {
|
|
50887
50934
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
50888
|
-
return $super === VOID ? this.
|
|
50935
|
+
return $super === VOID ? this.y91(enableCheckWhen) : $super.y91.call(this, enableCheckWhen);
|
|
50889
50936
|
};
|
|
50890
50937
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this$0, $action, $table) {
|
|
50891
50938
|
return function () {
|
|
@@ -51030,8 +51077,8 @@
|
|
|
51030
51077
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
51031
51078
|
}
|
|
51032
51079
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
51033
|
-
this.
|
|
51034
|
-
this.
|
|
51080
|
+
this.z91_1 = $enableCheckWhen;
|
|
51081
|
+
this.a92_1 = this$0;
|
|
51035
51082
|
}
|
|
51036
51083
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
51037
51084
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
@@ -51040,19 +51087,19 @@
|
|
|
51040
51087
|
var tmp4 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
51041
51088
|
$l$block_1: {
|
|
51042
51089
|
var state = store.state;
|
|
51043
|
-
if (!isEnabledCheck(this.
|
|
51090
|
+
if (!isEnabledCheck(this.z91_1, state, tmp4)) {
|
|
51044
51091
|
next(tmp4);
|
|
51045
51092
|
break $l$block_1;
|
|
51046
51093
|
}
|
|
51047
51094
|
var table = state.j6i();
|
|
51048
51095
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
51049
51096
|
var player = getPlayer(table.players, tmp4.playerId);
|
|
51050
|
-
if (isWrongPlayerTurn(this.
|
|
51097
|
+
if (isWrongPlayerTurn(this.a92_1, store, playersWithTurn, player, tmp4)) {
|
|
51051
51098
|
break $l$block_1;
|
|
51052
51099
|
}
|
|
51053
51100
|
var tmp;
|
|
51054
|
-
if (this.
|
|
51055
|
-
tmp = isWrongPlayerTurnTag$default(this.
|
|
51101
|
+
if (this.a92_1.t8v_1.validateFromClientActionTags) {
|
|
51102
|
+
tmp = isWrongPlayerTurnTag$default(this.a92_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.a92_1, tmp4, table));
|
|
51056
51103
|
} else {
|
|
51057
51104
|
tmp = false;
|
|
51058
51105
|
}
|
|
@@ -51066,8 +51113,8 @@
|
|
|
51066
51113
|
return this.e6f(store, next, action);
|
|
51067
51114
|
};
|
|
51068
51115
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
51069
|
-
this.
|
|
51070
|
-
this.
|
|
51116
|
+
this.b92_1 = $enableCheckWhen;
|
|
51117
|
+
this.c92_1 = this$0;
|
|
51071
51118
|
}
|
|
51072
51119
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
51073
51120
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
@@ -51077,17 +51124,17 @@
|
|
|
51077
51124
|
$l$block_1: {
|
|
51078
51125
|
var table = store.state.j6i();
|
|
51079
51126
|
var player = getPlayerTurn(tmp4, table.players);
|
|
51080
|
-
if (player == null || !isEnabledCheck(this.
|
|
51127
|
+
if (player == null || !isEnabledCheck(this.b92_1, store.state, tmp4)) {
|
|
51081
51128
|
next(tmp4);
|
|
51082
51129
|
break $l$block_1;
|
|
51083
51130
|
}
|
|
51084
51131
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
51085
|
-
if (isWrongPlayerTurn(this.
|
|
51132
|
+
if (isWrongPlayerTurn(this.c92_1, store, playersWithTurn, player, tmp4)) {
|
|
51086
51133
|
break $l$block_1;
|
|
51087
51134
|
}
|
|
51088
51135
|
var tmp;
|
|
51089
|
-
if (this.
|
|
51090
|
-
tmp = isWrongPlayerTurnTag(this.
|
|
51136
|
+
if (this.c92_1.t8v_1.validateFromClientActionTags) {
|
|
51137
|
+
tmp = isWrongPlayerTurnTag(this.c92_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.c92_1, tmp4, table), this.c92_1.s8v_1);
|
|
51091
51138
|
} else {
|
|
51092
51139
|
tmp = false;
|
|
51093
51140
|
}
|
|
@@ -51101,8 +51148,8 @@
|
|
|
51101
51148
|
return this.e6f(store, next, action);
|
|
51102
51149
|
};
|
|
51103
51150
|
function PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
51104
|
-
this.
|
|
51105
|
-
this.
|
|
51151
|
+
this.d92_1 = $enableCheckWhen;
|
|
51152
|
+
this.e92_1 = this$0;
|
|
51106
51153
|
}
|
|
51107
51154
|
protoOf(PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
51108
51155
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -51111,7 +51158,7 @@
|
|
|
51111
51158
|
var tmp4 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
51112
51159
|
$l$block_1: {
|
|
51113
51160
|
var state = store.state;
|
|
51114
|
-
if (!isEnabledCheck(this.
|
|
51161
|
+
if (!isEnabledCheck(this.d92_1, state, tmp4)) {
|
|
51115
51162
|
next(tmp4);
|
|
51116
51163
|
break $l$block_1;
|
|
51117
51164
|
}
|
|
@@ -51146,7 +51193,7 @@
|
|
|
51146
51193
|
destination.j(tmp$ret$3);
|
|
51147
51194
|
}
|
|
51148
51195
|
var message = 'Player turn is already set: ' + ('expected = ' + toString(destination) + ', ') + ('actual = ' + toString(tmp4.e8s()));
|
|
51149
|
-
this.
|
|
51196
|
+
this.e92_1.u8v_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
51150
51197
|
} else {
|
|
51151
51198
|
next(tmp4);
|
|
51152
51199
|
}
|
|
@@ -51174,23 +51221,23 @@
|
|
|
51174
51221
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
51175
51222
|
return new PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
51176
51223
|
};
|
|
51177
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
51224
|
+
protoOf(PlayerTurnValidationMiddlewares).f92 = function (enableCheckWhen) {
|
|
51178
51225
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
51179
51226
|
return new PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
51180
51227
|
};
|
|
51181
51228
|
protoOf(PlayerTurnValidationMiddlewares).y8v = function (enableCheckWhen, $super) {
|
|
51182
51229
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
51183
|
-
return $super === VOID ? this.
|
|
51230
|
+
return $super === VOID ? this.f92(enableCheckWhen) : $super.f92.call(this, enableCheckWhen);
|
|
51184
51231
|
};
|
|
51185
51232
|
function Companion_164() {
|
|
51186
|
-
this.
|
|
51233
|
+
this.g92_1 = 50;
|
|
51187
51234
|
}
|
|
51188
51235
|
var Companion_instance_169;
|
|
51189
51236
|
function Companion_getInstance_171() {
|
|
51190
51237
|
return Companion_instance_169;
|
|
51191
51238
|
}
|
|
51192
51239
|
function ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
51193
|
-
this.
|
|
51240
|
+
this.h92_1 = this$0;
|
|
51194
51241
|
}
|
|
51195
51242
|
protoOf(ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).p6d = function (action) {
|
|
51196
51243
|
return action instanceof MechanicAction;
|
|
@@ -51201,19 +51248,19 @@
|
|
|
51201
51248
|
var aid = tmp4.aid;
|
|
51202
51249
|
if (!store.state.k6i()) {
|
|
51203
51250
|
if (!(aid == null)) {
|
|
51204
|
-
this.
|
|
51251
|
+
this.h92_1.f8w_1.nd(aid);
|
|
51205
51252
|
}
|
|
51206
51253
|
next(tmp4);
|
|
51207
51254
|
break $l$block_0;
|
|
51208
51255
|
}
|
|
51209
|
-
if (!(aid == null) && this.
|
|
51210
|
-
this.
|
|
51256
|
+
if (!(aid == null) && this.h92_1.f8w_1.t1(aid)) {
|
|
51257
|
+
this.h92_1.e8w_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
|
|
51211
51258
|
break $l$block_0;
|
|
51212
51259
|
}
|
|
51213
51260
|
if (!(aid == null)) {
|
|
51214
|
-
this.
|
|
51215
|
-
if (this.
|
|
51216
|
-
this.
|
|
51261
|
+
this.h92_1.f8w_1.nd(aid);
|
|
51262
|
+
if (this.h92_1.f8w_1.jd_1 > 50) {
|
|
51263
|
+
this.h92_1.f8w_1.od();
|
|
51217
51264
|
}
|
|
51218
51265
|
}
|
|
51219
51266
|
next(tmp4);
|
|
@@ -51239,12 +51286,12 @@
|
|
|
51239
51286
|
protoOf(clearReducer$$inlined$reducerForActionType$1).p6d = function (action) {
|
|
51240
51287
|
return action instanceof ClearAction;
|
|
51241
51288
|
};
|
|
51242
|
-
protoOf(clearReducer$$inlined$reducerForActionType$1).
|
|
51289
|
+
protoOf(clearReducer$$inlined$reducerForActionType$1).i92 = function (state, action) {
|
|
51243
51290
|
action instanceof ClearAction || THROW_CCE();
|
|
51244
51291
|
return state.o8p(VOID, VOID, GameLifecycleState_FINISHED_getInstance());
|
|
51245
51292
|
};
|
|
51246
51293
|
protoOf(clearReducer$$inlined$reducerForActionType$1).f6f = function (state, action) {
|
|
51247
|
-
return this.
|
|
51294
|
+
return this.i92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
51248
51295
|
};
|
|
51249
51296
|
function fromClientReducer() {
|
|
51250
51297
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -51255,7 +51302,7 @@
|
|
|
51255
51302
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).p6d = function (action) {
|
|
51256
51303
|
return action instanceof FromClientAction;
|
|
51257
51304
|
};
|
|
51258
|
-
protoOf(fromClientReducer$$inlined$reducerForActionType$1).
|
|
51305
|
+
protoOf(fromClientReducer$$inlined$reducerForActionType$1).i92 = function (state, action) {
|
|
51259
51306
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
51260
51307
|
var tmp;
|
|
51261
51308
|
var tmp_0;
|
|
@@ -51306,11 +51353,11 @@
|
|
|
51306
51353
|
return tmp;
|
|
51307
51354
|
};
|
|
51308
51355
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).f6f = function (state, action) {
|
|
51309
|
-
return this.
|
|
51356
|
+
return this.i92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
51310
51357
|
};
|
|
51311
51358
|
function MechanicReducers$reducer$o$reduce$lambda(this$0, $action) {
|
|
51312
51359
|
return function (tbl) {
|
|
51313
|
-
return this$0.y8u_1.
|
|
51360
|
+
return this$0.y8u_1.p92(tbl, $action.k8m_1, $action.sceneData, $action.l8m_1, $action.m8m_1);
|
|
51314
51361
|
};
|
|
51315
51362
|
}
|
|
51316
51363
|
function MechanicReducers$reducer$o$reduce$lambda_0($action, this$0) {
|
|
@@ -51319,22 +51366,22 @@
|
|
|
51319
51366
|
if ($action.l8m_1 == null) {
|
|
51320
51367
|
tmp = tbl;
|
|
51321
51368
|
} else {
|
|
51322
|
-
tmp = this$0.z8u_1.
|
|
51369
|
+
tmp = this$0.z8u_1.q92(tbl, $action);
|
|
51323
51370
|
}
|
|
51324
51371
|
return tmp;
|
|
51325
51372
|
};
|
|
51326
51373
|
}
|
|
51327
51374
|
function MechanicReducers$reducer$$inlined$reducerForActionType$1(this$0) {
|
|
51328
|
-
this.
|
|
51375
|
+
this.r92_1 = this$0;
|
|
51329
51376
|
}
|
|
51330
51377
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).p6d = function (action) {
|
|
51331
51378
|
return action instanceof MechanicAction;
|
|
51332
51379
|
};
|
|
51333
|
-
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).
|
|
51380
|
+
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).i92 = function (state, action) {
|
|
51334
51381
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
51335
|
-
if (this.
|
|
51382
|
+
if (this.r92_1.a8v_1.validateIfMainThread) {
|
|
51336
51383
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
51337
|
-
var logger = this.
|
|
51384
|
+
var logger = this.r92_1.b8v_1;
|
|
51338
51385
|
var tmp;
|
|
51339
51386
|
try {
|
|
51340
51387
|
assertIfMainThread('mechanicReducer is called from main thread for action = ' + toString(action_0));
|
|
@@ -51355,50 +51402,50 @@
|
|
|
51355
51402
|
}
|
|
51356
51403
|
var tmp_1;
|
|
51357
51404
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
51358
|
-
tmp_1 = this.
|
|
51405
|
+
tmp_1 = this.r92_1.s8u_1.y93(state, action_0);
|
|
51359
51406
|
} else {
|
|
51360
51407
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
51361
|
-
tmp_1 = this.
|
|
51408
|
+
tmp_1 = this.r92_1.s8u_1.x93(state, action_0);
|
|
51362
51409
|
} else {
|
|
51363
51410
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
51364
|
-
tmp_1 = this.
|
|
51411
|
+
tmp_1 = this.r92_1.s8u_1.w93(state, action_0);
|
|
51365
51412
|
} else {
|
|
51366
51413
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
51367
|
-
tmp_1 = this.
|
|
51414
|
+
tmp_1 = this.r92_1.s8u_1.v93(state, action_0);
|
|
51368
51415
|
} else {
|
|
51369
51416
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
51370
|
-
tmp_1 = this.
|
|
51417
|
+
tmp_1 = this.r92_1.s8u_1.u93(state, action_0);
|
|
51371
51418
|
} else {
|
|
51372
51419
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
51373
|
-
tmp_1 = this.
|
|
51420
|
+
tmp_1 = this.r92_1.s8u_1.t93(state, action_0);
|
|
51374
51421
|
} else {
|
|
51375
51422
|
if (action_0 instanceof ErrorAction) {
|
|
51376
|
-
tmp_1 = this.
|
|
51423
|
+
tmp_1 = this.r92_1.s8u_1.s93(state, action_0);
|
|
51377
51424
|
} else {
|
|
51378
51425
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
51379
|
-
tmp_1 = state.o8p(state.j6i().copy(VOID, VOID, VOID, VOID, this.
|
|
51426
|
+
tmp_1 = state.o8p(state.j6i().copy(VOID, VOID, VOID, VOID, this.r92_1.t8u_1.r93(state.j6i().players, action_0)));
|
|
51380
51427
|
} else {
|
|
51381
51428
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
51382
|
-
tmp_1 = this.
|
|
51429
|
+
tmp_1 = this.r92_1.u8u_1.q93(state, action_0);
|
|
51383
51430
|
} else {
|
|
51384
51431
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
51385
|
-
tmp_1 = this.
|
|
51432
|
+
tmp_1 = this.r92_1.u8u_1.p93(state, action_0);
|
|
51386
51433
|
} else {
|
|
51387
51434
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
51388
|
-
tmp_1 = this.
|
|
51435
|
+
tmp_1 = this.r92_1.w8u_1.m93(state, action_0);
|
|
51389
51436
|
} else {
|
|
51390
51437
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
51391
|
-
tmp_1 = this.
|
|
51438
|
+
tmp_1 = this.r92_1.v8u_1.l93(state, action_0);
|
|
51392
51439
|
} else {
|
|
51393
51440
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
51394
|
-
tmp_1 = this.
|
|
51441
|
+
tmp_1 = this.r92_1.v8u_1.k93(state, action_0);
|
|
51395
51442
|
} else {
|
|
51396
51443
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
51397
|
-
tmp_1 = this.
|
|
51444
|
+
tmp_1 = this.r92_1.w8u_1.c93(state, action_0);
|
|
51398
51445
|
} else {
|
|
51399
51446
|
if (action_0 instanceof SceneMechanicAction) {
|
|
51400
|
-
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.
|
|
51401
|
-
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.
|
|
51447
|
+
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.r92_1, action_0);
|
|
51448
|
+
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.r92_1)]);
|
|
51402
51449
|
// Inline function 'kotlin.collections.fold' call
|
|
51403
51450
|
var accumulator = state.j6i();
|
|
51404
51451
|
var _iterator__ex2g4s = tmp0.l();
|
|
@@ -51410,13 +51457,13 @@
|
|
|
51410
51457
|
tmp_1 = state.o8p(tmp$ret$3);
|
|
51411
51458
|
} else {
|
|
51412
51459
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
51413
|
-
tmp_1 = state.o8p(this.
|
|
51460
|
+
tmp_1 = state.o8p(this.r92_1.z8u_1.q92(state.j6i(), action_0));
|
|
51414
51461
|
} else {
|
|
51415
51462
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
51416
|
-
tmp_1 = state.o8p(this.
|
|
51463
|
+
tmp_1 = state.o8p(this.r92_1.x8u_1.w92(state.j6i(), action_0));
|
|
51417
51464
|
} else {
|
|
51418
51465
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
51419
|
-
tmp_1 = state.o8p(this.
|
|
51466
|
+
tmp_1 = state.o8p(this.r92_1.x8u_1.v92(state.j6i(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
|
|
51420
51467
|
} else {
|
|
51421
51468
|
if (action_0 instanceof MessageMechanicAction) {
|
|
51422
51469
|
tmp_1 = state;
|
|
@@ -51444,7 +51491,7 @@
|
|
|
51444
51491
|
return tmp_1;
|
|
51445
51492
|
};
|
|
51446
51493
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).f6f = function (state, action) {
|
|
51447
|
-
return this.
|
|
51494
|
+
return this.i92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
51448
51495
|
};
|
|
51449
51496
|
function MechanicReducers(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer, engineLogicConfig, logger) {
|
|
51450
51497
|
this.s8u_1 = gameLifecycleReducer;
|
|
@@ -51471,7 +51518,7 @@
|
|
|
51471
51518
|
protoOf(timerReducer$$inlined$reducerForActionType$1).p6d = function (action) {
|
|
51472
51519
|
return action instanceof TimerAction;
|
|
51473
51520
|
};
|
|
51474
|
-
protoOf(timerReducer$$inlined$reducerForActionType$1).
|
|
51521
|
+
protoOf(timerReducer$$inlined$reducerForActionType$1).i92 = function (state, action) {
|
|
51475
51522
|
var action_0 = action instanceof TimerAction ? action : THROW_CCE();
|
|
51476
51523
|
var tmp;
|
|
51477
51524
|
if (action_0 instanceof StartTimerAction) {
|
|
@@ -51499,7 +51546,7 @@
|
|
|
51499
51546
|
return tmp;
|
|
51500
51547
|
};
|
|
51501
51548
|
protoOf(timerReducer$$inlined$reducerForActionType$1).f6f = function (state, action) {
|
|
51502
|
-
return this.
|
|
51549
|
+
return this.i92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
51503
51550
|
};
|
|
51504
51551
|
function playerTurnReducer($this, action, table) {
|
|
51505
51552
|
var tmp0 = action.actData;
|
|
@@ -51604,7 +51651,7 @@
|
|
|
51604
51651
|
}
|
|
51605
51652
|
function SceneActReducer() {
|
|
51606
51653
|
}
|
|
51607
|
-
protoOf(SceneActReducer).
|
|
51654
|
+
protoOf(SceneActReducer).q92 = function (table, action) {
|
|
51608
51655
|
var tmp;
|
|
51609
51656
|
if (action.actId === 'WAITING_ACT') {
|
|
51610
51657
|
tmp = table.copy(VOID, VOID, VOID, VOID, VOID, VOID, table.sceneInfo.l8b(VOID, VOID, action.actId, VOID, action.actData));
|
|
@@ -51641,47 +51688,47 @@
|
|
|
51641
51688
|
function MechanicLifecycleReducer() {
|
|
51642
51689
|
}
|
|
51643
51690
|
function BaseMechanicLifecycleReducer(tableLifecycleReducer, randomPoolProvider) {
|
|
51644
|
-
this.
|
|
51645
|
-
this.
|
|
51691
|
+
this.z93_1 = tableLifecycleReducer;
|
|
51692
|
+
this.a94_1 = randomPoolProvider;
|
|
51646
51693
|
}
|
|
51647
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51694
|
+
protoOf(BaseMechanicLifecycleReducer).w93 = function (state, action) {
|
|
51648
51695
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
51649
51696
|
var tmp1_tableOrNull = action.m8s_1;
|
|
51650
51697
|
var tmp2_payload = action.o8s_1;
|
|
51651
51698
|
return state.o8p(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
51652
51699
|
};
|
|
51653
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51654
|
-
this.
|
|
51700
|
+
protoOf(BaseMechanicLifecycleReducer).x93 = function (state, action) {
|
|
51701
|
+
this.a94_1.j57(action.previousGameId);
|
|
51655
51702
|
return state;
|
|
51656
51703
|
};
|
|
51657
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51704
|
+
protoOf(BaseMechanicLifecycleReducer).v93 = function (state, action) {
|
|
51658
51705
|
var tmp0_safe_receiver = state.t6h_1;
|
|
51659
51706
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
51660
51707
|
if (tmp1_safe_receiver == null)
|
|
51661
51708
|
null;
|
|
51662
51709
|
else {
|
|
51663
51710
|
// Inline function 'kotlin.apply' call
|
|
51664
|
-
this.
|
|
51711
|
+
this.a94_1.j57(tmp1_safe_receiver);
|
|
51665
51712
|
}
|
|
51666
51713
|
return state.o8p(VOID, VOID, GameLifecycleState_FINISHING_getInstance(), new TerminationState(action.p8r_1, action.r8r_1));
|
|
51667
51714
|
};
|
|
51668
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51715
|
+
protoOf(BaseMechanicLifecycleReducer).u93 = function (state, action) {
|
|
51669
51716
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
51670
51717
|
var tmp0_safe_receiver = state.v6h_1;
|
|
51671
51718
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.s8p(action.w8r_1);
|
|
51672
51719
|
return state.o8p(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.w8r_1) : tmp1_elvis_lhs);
|
|
51673
51720
|
};
|
|
51674
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51675
|
-
return state.o8p(this.
|
|
51721
|
+
protoOf(BaseMechanicLifecycleReducer).t93 = function (state, action) {
|
|
51722
|
+
return state.o8p(this.z93_1.b94(state.j6i()));
|
|
51676
51723
|
};
|
|
51677
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
51724
|
+
protoOf(BaseMechanicLifecycleReducer).s93 = function (state, action) {
|
|
51678
51725
|
var tmp0_safe_receiver = state.t6h_1;
|
|
51679
51726
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
51680
51727
|
if (tmp1_safe_receiver == null)
|
|
51681
51728
|
null;
|
|
51682
51729
|
else {
|
|
51683
51730
|
// Inline function 'kotlin.apply' call
|
|
51684
|
-
this.
|
|
51731
|
+
this.a94_1.j57(tmp1_safe_receiver);
|
|
51685
51732
|
}
|
|
51686
51733
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
51687
51734
|
var tmp2_safe_receiver = state.v6h_1;
|
|
@@ -51701,19 +51748,19 @@
|
|
|
51701
51748
|
return value1.id === value2.id;
|
|
51702
51749
|
}
|
|
51703
51750
|
function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
|
|
51704
|
-
this.
|
|
51705
|
-
this.
|
|
51706
|
-
this.
|
|
51707
|
-
this.
|
|
51751
|
+
this.c94_1 = pointsInteractor;
|
|
51752
|
+
this.d94_1 = playerHappinessProvider;
|
|
51753
|
+
this.e94_1 = logger;
|
|
51754
|
+
this.f94_1 = dealerConfig;
|
|
51708
51755
|
}
|
|
51709
|
-
protoOf(PlayerHandReducer).
|
|
51756
|
+
protoOf(PlayerHandReducer).g94 = function (playerId, hand, cards, combinations, selectedTrump, config) {
|
|
51710
51757
|
// Inline function 'kotlin.collections.map' call
|
|
51711
51758
|
// Inline function 'kotlin.collections.mapTo' call
|
|
51712
51759
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
51713
51760
|
var _iterator__ex2g4s = combinations.l();
|
|
51714
51761
|
while (_iterator__ex2g4s.m()) {
|
|
51715
51762
|
var item = _iterator__ex2g4s.n();
|
|
51716
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
51763
|
+
var tmp$ret$0 = mapToRecord(item, this.c94_1.z8j(item));
|
|
51717
51764
|
destination.j(tmp$ret$0);
|
|
51718
51765
|
}
|
|
51719
51766
|
var combinationRecords = destination;
|
|
@@ -51748,8 +51795,8 @@
|
|
|
51748
51795
|
return hand.l6u(VOID, VOID, plus(hand.i6r_1, combinationRecords), plus(hand.j6r_1, combinationRecords));
|
|
51749
51796
|
}
|
|
51750
51797
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
51751
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
51752
|
-
var tmp_0 = this.
|
|
51798
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.f94_1.dealerStrategy : tmp0_elvis_lhs;
|
|
51799
|
+
var tmp_0 = this.c94_1.y8j(cards, selectedTrump, dealerStrategy);
|
|
51753
51800
|
// Inline function 'kotlin.collections.map' call
|
|
51754
51801
|
// Inline function 'kotlin.collections.mapTo' call
|
|
51755
51802
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinationRecords, 10));
|
|
@@ -51760,11 +51807,11 @@
|
|
|
51760
51807
|
destination_0.j(tmp$ret$5);
|
|
51761
51808
|
}
|
|
51762
51809
|
var value = tmp_0 + sum(destination_0);
|
|
51763
|
-
var luckyFactor = this.
|
|
51764
|
-
Companion_instance_165.x8j(this.
|
|
51810
|
+
var luckyFactor = this.d94_1.x8d(value, config.playersMode, dealerStrategy);
|
|
51811
|
+
Companion_instance_165.x8j(this.e94_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.q6r() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.o() + ', '));
|
|
51765
51812
|
return hand.l6u(VOID, plus(hand.h6r_1, listOf(Companion_instance_18.d6u(luckyFactor, value))), plus(hand.i6r_1, combinationRecords), plus(hand.j6r_1, combinationRecords));
|
|
51766
51813
|
};
|
|
51767
|
-
protoOf(PlayerHandReducer).
|
|
51814
|
+
protoOf(PlayerHandReducer).h94 = function (hand, combinations) {
|
|
51768
51815
|
// Inline function 'kotlin.collections.map' call
|
|
51769
51816
|
var this_0 = filterWithFirstCardOrBela(combinations);
|
|
51770
51817
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -51772,20 +51819,20 @@
|
|
|
51772
51819
|
var _iterator__ex2g4s = this_0.l();
|
|
51773
51820
|
while (_iterator__ex2g4s.m()) {
|
|
51774
51821
|
var item = _iterator__ex2g4s.n();
|
|
51775
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
51822
|
+
var tmp$ret$0 = mapToRecord(item, this.c94_1.z8j(item));
|
|
51776
51823
|
destination.j(tmp$ret$0);
|
|
51777
51824
|
}
|
|
51778
51825
|
var combinationRecords = destination;
|
|
51779
51826
|
var tmp = updateOrAddItems(hand.i6r_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
|
|
51780
51827
|
return hand.l6u(VOID, VOID, tmp, updateOrAddItems(hand.j6r_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
|
|
51781
51828
|
};
|
|
51782
|
-
protoOf(PlayerHandReducer).
|
|
51829
|
+
protoOf(PlayerHandReducer).i94 = function (playerId, hand, updatedCombinations, config) {
|
|
51783
51830
|
if (updatedCombinations.r()) {
|
|
51784
51831
|
return hand;
|
|
51785
51832
|
}
|
|
51786
51833
|
var previousFactor = hand.z6r();
|
|
51787
51834
|
if (previousFactor.y6r_1 === 0.0) {
|
|
51788
|
-
return this.
|
|
51835
|
+
return this.h94(hand, updatedCombinations);
|
|
51789
51836
|
}
|
|
51790
51837
|
// Inline function 'kotlin.collections.map' call
|
|
51791
51838
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -51793,7 +51840,7 @@
|
|
|
51793
51840
|
var _iterator__ex2g4s = updatedCombinations.l();
|
|
51794
51841
|
while (_iterator__ex2g4s.m()) {
|
|
51795
51842
|
var item = _iterator__ex2g4s.n();
|
|
51796
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
51843
|
+
var tmp$ret$0 = mapToRecord(item, this.c94_1.z8j(item));
|
|
51797
51844
|
destination.j(tmp$ret$0);
|
|
51798
51845
|
}
|
|
51799
51846
|
var updatedCombinationRecords = destination;
|
|
@@ -51853,9 +51900,9 @@
|
|
|
51853
51900
|
}
|
|
51854
51901
|
var updatedValue = tmp_0 + sum(destination_2);
|
|
51855
51902
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
51856
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
51857
|
-
var updatedLuckyFactor = this.
|
|
51858
|
-
Companion_instance_165.x8j(this.
|
|
51903
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.f94_1.dealerStrategy : tmp0_elvis_lhs;
|
|
51904
|
+
var updatedLuckyFactor = this.d94_1.x8d(updatedValue, config.playersMode, dealerStrategy);
|
|
51905
|
+
Companion_instance_165.x8j(this.e94_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.q6r() + ', ') + ('value: ' + updatedValue + ', '));
|
|
51859
51906
|
// Inline function 'kotlin.collections.map' call
|
|
51860
51907
|
var this_0 = hand.h6r_1;
|
|
51861
51908
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -51879,7 +51926,7 @@
|
|
|
51879
51926
|
protoOf(PlayerSceneReducer).q8o = function (player, cards, whoShuffleCardsPlayerId) {
|
|
51880
51927
|
return player.b6r(VOID, VOID, cards, player.j6q_1.g6v(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
|
|
51881
51928
|
};
|
|
51882
|
-
protoOf(PlayerSceneReducer).
|
|
51929
|
+
protoOf(PlayerSceneReducer).j94 = function (player, distributedCards, combinations, config, players, selectedTrump) {
|
|
51883
51930
|
// Inline function 'kotlin.collections.map' call
|
|
51884
51931
|
// Inline function 'kotlin.collections.mapTo' call
|
|
51885
51932
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -51892,7 +51939,7 @@
|
|
|
51892
51939
|
}
|
|
51893
51940
|
var detailedCombinations = destination;
|
|
51894
51941
|
var cards = plus(player.i6q_1, distributedCards);
|
|
51895
|
-
var hand = this.p8o_1.
|
|
51942
|
+
var hand = this.p8o_1.g94(player.playerId, player.k6q_1, cards, detailedCombinations, selectedTrump, config);
|
|
51896
51943
|
var tmp;
|
|
51897
51944
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
51898
51945
|
if (!combinations.r()) {
|
|
@@ -51903,7 +51950,7 @@
|
|
|
51903
51950
|
var tmp0_points = tmp;
|
|
51904
51951
|
return player.b6r(VOID, VOID, cards, VOID, hand, tmp0_points);
|
|
51905
51952
|
};
|
|
51906
|
-
protoOf(PlayerSceneReducer).
|
|
51953
|
+
protoOf(PlayerSceneReducer).k94 = function (player, sceneData) {
|
|
51907
51954
|
// Inline function 'kotlin.collections.single' call
|
|
51908
51955
|
var single = null;
|
|
51909
51956
|
var found = false;
|
|
@@ -51939,7 +51986,7 @@
|
|
|
51939
51986
|
var tmp10_earnedPoints = playerPointsCell.d6x_1;
|
|
51940
51987
|
var tmp11_earnedCards = emptyList();
|
|
51941
51988
|
var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
|
|
51942
|
-
var tmp15_hand = this.p8o_1.
|
|
51989
|
+
var tmp15_hand = this.p8o_1.h94(player.k6q_1, updatedCombinations);
|
|
51943
51990
|
return player.b6r(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
|
|
51944
51991
|
};
|
|
51945
51992
|
function refreshStartFromTime($this, playerState, config) {
|
|
@@ -51963,7 +52010,7 @@
|
|
|
51963
52010
|
var tmp = System_instance.ck();
|
|
51964
52011
|
Companion_getInstance_4();
|
|
51965
52012
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
51966
|
-
var this_0 = config.timeoutTimeMillis * $this.
|
|
52013
|
+
var this_0 = config.timeoutTimeMillis * $this.u92_1.playerTimeoutFactorToFinishStep;
|
|
51967
52014
|
var tmp$ret$0 = toDuration_1(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
51968
52015
|
return tmp.rk(tmp$ret$0);
|
|
51969
52016
|
}
|
|
@@ -51974,11 +52021,11 @@
|
|
|
51974
52021
|
return it.playerId;
|
|
51975
52022
|
}
|
|
51976
52023
|
function PlayerTurnMechanicReducer(logger, gameHistoryReducer, engineLogicConfig) {
|
|
51977
|
-
this.
|
|
51978
|
-
this.
|
|
51979
|
-
this.
|
|
52024
|
+
this.s92_1 = logger;
|
|
52025
|
+
this.t92_1 = gameHistoryReducer;
|
|
52026
|
+
this.u92_1 = engineLogicConfig;
|
|
51980
52027
|
}
|
|
51981
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
52028
|
+
protoOf(PlayerTurnMechanicReducer).l94 = function (table, model) {
|
|
51982
52029
|
// Inline function 'com.logic.utils.copy' call
|
|
51983
52030
|
var this_0 = table.players;
|
|
51984
52031
|
// Inline function 'kotlin.apply' call
|
|
@@ -51989,7 +52036,7 @@
|
|
|
51989
52036
|
var element = _iterator__ex2g4s.n();
|
|
51990
52037
|
var player = getPlayer(table.players, element);
|
|
51991
52038
|
if (!(player.h6q_1.m65_1 == null)) {
|
|
51992
|
-
this.
|
|
52039
|
+
this.s92_1.w(VOID, 'PlayerTurnMechanicReducer.onPlayerTurn: already ' + ('has a tag: ' + player.h6q_1.m65_1 + ', ') + ('new tag: ' + model.q6s_1));
|
|
51993
52040
|
}
|
|
51994
52041
|
var tmp = Companion_instance_0;
|
|
51995
52042
|
var tmp_0 = System_instance.ck();
|
|
@@ -52003,25 +52050,25 @@
|
|
|
52003
52050
|
var newTable = table.copy(VOID, VOID, VOID, VOID, this_1);
|
|
52004
52051
|
var tmp_1 = 'onPlayerTurn: ' + model.toString() + ', ';
|
|
52005
52052
|
var tmp_2 = filterPlayerTurn(table.players);
|
|
52006
|
-
this.
|
|
52053
|
+
this.s92_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
|
|
52007
52054
|
return newTable;
|
|
52008
52055
|
};
|
|
52009
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
52056
|
+
protoOf(PlayerTurnMechanicReducer).m94 = function (table, model) {
|
|
52010
52057
|
var player = getPlayer(table.players, model.a64());
|
|
52011
52058
|
if (player.h6q_1.m65_1 == null) {
|
|
52012
|
-
this.
|
|
52059
|
+
this.s92_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.q6s_1));
|
|
52013
52060
|
}
|
|
52014
52061
|
var newTable = table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.b6r(VOID, Companion_instance_0.x66(player.h6q_1)), get_byIdPlayerPredicate()(player.playerId)));
|
|
52015
52062
|
var tmp = 'onResetPlayerTurn: ' + model.toString() + ', ';
|
|
52016
52063
|
var tmp_0 = filterPlayerTurn(table.players);
|
|
52017
|
-
this.
|
|
52064
|
+
this.s92_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
|
|
52018
52065
|
return newTable;
|
|
52019
52066
|
};
|
|
52020
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
52067
|
+
protoOf(PlayerTurnMechanicReducer).w92 = function (table, action) {
|
|
52021
52068
|
var player = getPlayer(table.players, action.w8s_1);
|
|
52022
52069
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.b6r(VOID, player.h6q_1.y66(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
|
|
52023
52070
|
};
|
|
52024
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
52071
|
+
protoOf(PlayerTurnMechanicReducer).n94 = function (table) {
|
|
52025
52072
|
// Inline function 'kotlin.collections.map' call
|
|
52026
52073
|
var this_0 = table.players;
|
|
52027
52074
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -52034,7 +52081,7 @@
|
|
|
52034
52081
|
}
|
|
52035
52082
|
return table.copy(VOID, VOID, VOID, VOID, destination);
|
|
52036
52083
|
};
|
|
52037
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
52084
|
+
protoOf(PlayerTurnMechanicReducer).v92 = function (table, playerId, newConnectionState, reconnectUntilTime) {
|
|
52038
52085
|
var players = table.players;
|
|
52039
52086
|
var player = getPlayer(players, playerId);
|
|
52040
52087
|
var previousConnection = player.h6q_1.n65_1;
|
|
@@ -52057,7 +52104,7 @@
|
|
|
52057
52104
|
var tmp7_waitPlayerUntilTime = tmp_0;
|
|
52058
52105
|
tmp = tmp6_$this.y66(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
|
|
52059
52106
|
}
|
|
52060
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.b6r(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
52107
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.b6r(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.t92_1.s94(playerId, previousConnection, newPlayerConnection, table.gameHistory));
|
|
52061
52108
|
};
|
|
52062
52109
|
function onCurrentScene($this, sceneId, sceneData, actId, actData, table, previousSceneId) {
|
|
52063
52110
|
var sceneInfo = new SceneInfo(sceneId, previousSceneId, actId, sceneData, actData);
|
|
@@ -52089,7 +52136,7 @@
|
|
|
52089
52136
|
var _iterator__ex2g4s = players.l();
|
|
52090
52137
|
while (_iterator__ex2g4s.m()) {
|
|
52091
52138
|
var item = _iterator__ex2g4s.n();
|
|
52092
|
-
var tmp$ret$1 = $this.
|
|
52139
|
+
var tmp$ret$1 = $this.j92_1.q8o(item, getValue(scene.r76_1, item.playerId), scene.v76_1);
|
|
52093
52140
|
destination.j(tmp$ret$1);
|
|
52094
52141
|
}
|
|
52095
52142
|
|
|
@@ -52110,12 +52157,12 @@
|
|
|
52110
52157
|
}
|
|
52111
52158
|
|
|
52112
52159
|
var tmp7_requestedCardDecks = tmp_0;
|
|
52113
|
-
var tmp1_$this = $this.
|
|
52160
|
+
var tmp1_$this = $this.m92_1;
|
|
52114
52161
|
var tmp2_gameHistory = table.gameHistory;
|
|
52115
52162
|
var tmp3_playersCards = scene.r76_1;
|
|
52116
52163
|
var tmp4_whoShuffleCardsPlayerId = scene.v76_1;
|
|
52117
52164
|
var tmp5_randomData = scene.s76_1;
|
|
52118
|
-
var tmp8_gameHistory = tmp1_$this.
|
|
52165
|
+
var tmp8_gameHistory = tmp1_$this.t94(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
|
|
52119
52166
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, sceneInfo, VOID, VOID, cardDeck, tmp7_requestedCardDecks, VOID, tmp8_gameHistory);
|
|
52120
52167
|
case 'EARN_POINTS':
|
|
52121
52168
|
var tmp$ret$5;
|
|
@@ -52133,7 +52180,7 @@
|
|
|
52133
52180
|
var tmp10_newPlayersCards = scene_0.w76_1;
|
|
52134
52181
|
var tmp11_cardDeck = table.requireCardDeck;
|
|
52135
52182
|
var tmp12_config = table.config;
|
|
52136
|
-
var updatedCardDeck = $this.
|
|
52183
|
+
var updatedCardDeck = $this.u94(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
|
|
52137
52184
|
// Inline function 'kotlin.collections.map' call
|
|
52138
52185
|
|
|
52139
52186
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -52142,21 +52189,21 @@
|
|
|
52142
52189
|
var _iterator__ex2g4s_0 = players.l();
|
|
52143
52190
|
while (_iterator__ex2g4s_0.m()) {
|
|
52144
52191
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
52145
|
-
var tmp2_$this = $this.
|
|
52192
|
+
var tmp2_$this = $this.j92_1;
|
|
52146
52193
|
var tmp3_config = table.config;
|
|
52147
52194
|
var tmp4_distributedCards = getValue(scene_0.w76_1, item_0.playerId);
|
|
52148
52195
|
var tmp0_safe_receiver = scene_0.x76_1;
|
|
52149
52196
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2(item_0.playerId);
|
|
52150
52197
|
var tmp5_combinations = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
52151
52198
|
var tmp6_selectedTrump = table.gameInfo.round.selectedTrump;
|
|
52152
|
-
var tmp$ret$6 = tmp2_$this.
|
|
52199
|
+
var tmp$ret$6 = tmp2_$this.j94(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
|
|
52153
52200
|
destination_0.j(tmp$ret$6);
|
|
52154
52201
|
}
|
|
52155
52202
|
|
|
52156
|
-
var tmp13_$this = $this.
|
|
52203
|
+
var tmp13_$this = $this.m92_1;
|
|
52157
52204
|
var tmp14_gameHistory = table.gameHistory;
|
|
52158
52205
|
var tmp15_playersCards = scene_0.w76_1;
|
|
52159
|
-
var tmp17_gameHistory = tmp13_$this.
|
|
52206
|
+
var tmp17_gameHistory = tmp13_$this.v94(tmp15_playersCards, tmp14_gameHistory);
|
|
52160
52207
|
return table.copy(VOID, VOID, VOID, VOID, destination_0, VOID, sceneInfo, VOID, VOID, updatedCardDeck, VOID, VOID, tmp17_gameHistory);
|
|
52161
52208
|
case 'CALC_POINTS':
|
|
52162
52209
|
var tmp$ret$9;
|
|
@@ -52179,12 +52226,12 @@
|
|
|
52179
52226
|
var _iterator__ex2g4s_1 = players.l();
|
|
52180
52227
|
while (_iterator__ex2g4s_1.m()) {
|
|
52181
52228
|
var item_1 = _iterator__ex2g4s_1.n();
|
|
52182
|
-
var tmp$ret$10 = $this.
|
|
52229
|
+
var tmp$ret$10 = $this.j92_1.k94(item_1, calcPointsSceneData);
|
|
52183
52230
|
destination_1.j(tmp$ret$10);
|
|
52184
52231
|
}
|
|
52185
52232
|
|
|
52186
52233
|
var updatedPlayers = destination_1;
|
|
52187
|
-
var tmp19_$this = $this.
|
|
52234
|
+
var tmp19_$this = $this.m92_1;
|
|
52188
52235
|
var tmp20_gameHistory = table.gameHistory;
|
|
52189
52236
|
var tmp21_points = calcPointsSceneData.l76_1;
|
|
52190
52237
|
var tmp22_roundContractState = calcPointsSceneData.p76(whoChoseSuitPlayerId);
|
|
@@ -52224,7 +52271,7 @@
|
|
|
52224
52271
|
|
|
52225
52272
|
var tmp26_playersGameAnalytics = tmp_3;
|
|
52226
52273
|
var tmp27_playersAchievements = calcPointsSceneData.m76_1;
|
|
52227
|
-
var tmp28_gameHistory = tmp19_$this.
|
|
52274
|
+
var tmp28_gameHistory = tmp19_$this.w94(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_gameWinners, tmp26_playersGameAnalytics, tmp27_playersAchievements);
|
|
52228
52275
|
return table.copy(VOID, VOID, VOID, VOID, updatedPlayers, VOID, sceneInfo, VOID, VOID, VOID, VOID, VOID, tmp28_gameHistory);
|
|
52229
52276
|
default:
|
|
52230
52277
|
throw new MechanicException("onCurrentScene: Can't support this scene " + sceneId);
|
|
@@ -52256,30 +52303,30 @@
|
|
|
52256
52303
|
}
|
|
52257
52304
|
function SceneReducer$onPreviousScene$lambda(this$0) {
|
|
52258
52305
|
return function (tbl) {
|
|
52259
|
-
return this$0.
|
|
52306
|
+
return this$0.k92_1.n94(tbl);
|
|
52260
52307
|
};
|
|
52261
52308
|
}
|
|
52262
52309
|
function SceneReducer$onPreviousScene$lambda_0(this$0) {
|
|
52263
52310
|
return function (tbl) {
|
|
52264
|
-
return this$0.
|
|
52311
|
+
return this$0.l92_1.x94(tbl);
|
|
52265
52312
|
};
|
|
52266
52313
|
}
|
|
52267
52314
|
function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
|
|
52268
|
-
this.
|
|
52269
|
-
this.
|
|
52270
|
-
this.
|
|
52271
|
-
this.
|
|
52272
|
-
this.
|
|
52273
|
-
this.
|
|
52274
|
-
}
|
|
52275
|
-
protoOf(SceneReducer).
|
|
52315
|
+
this.j92_1 = playerSceneReducer;
|
|
52316
|
+
this.k92_1 = playerTurnMechanicReducer;
|
|
52317
|
+
this.l92_1 = tableLifecycleReducer;
|
|
52318
|
+
this.m92_1 = gameHistoryReducer;
|
|
52319
|
+
this.n92_1 = dealerReducer;
|
|
52320
|
+
this.o92_1 = gameParamsProvider;
|
|
52321
|
+
}
|
|
52322
|
+
protoOf(SceneReducer).p92 = function (table, sceneId, sceneData, actId, actData) {
|
|
52276
52323
|
var previousSceneId = table.sceneInfo.t7p_1;
|
|
52277
52324
|
if (!(previousSceneId === 'WAITING') && equals(table.sceneInfo.w7p_1, sceneData)) {
|
|
52278
52325
|
throw new MechanicException('Payload was set twice');
|
|
52279
52326
|
}
|
|
52280
52327
|
return onCurrentScene(this, sceneId, sceneData, actId, actData, onPreviousScene(this, table, previousSceneId), previousSceneId);
|
|
52281
52328
|
};
|
|
52282
|
-
protoOf(SceneReducer).
|
|
52329
|
+
protoOf(SceneReducer).u94 = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
|
|
52283
52330
|
// Inline function 'kotlin.collections.map' call
|
|
52284
52331
|
// Inline function 'kotlin.collections.mapTo' call
|
|
52285
52332
|
var destination = ArrayList_init_$Create$(newPlayersCards.o());
|
|
@@ -52293,19 +52340,19 @@
|
|
|
52293
52340
|
// Inline function 'kotlin.let' call
|
|
52294
52341
|
var it = flatten(destination);
|
|
52295
52342
|
var tmp;
|
|
52296
|
-
if (this.
|
|
52297
|
-
tmp = this.
|
|
52343
|
+
if (this.o92_1.w8e(config)) {
|
|
52344
|
+
tmp = this.n92_1.q5e(it, cardDeck.f7f_1);
|
|
52298
52345
|
} else {
|
|
52299
52346
|
tmp = it;
|
|
52300
52347
|
}
|
|
52301
52348
|
var playersCardsToRemove = tmp;
|
|
52302
52349
|
var cardsToRemove = plus(playersCardsToRemove, listOfNotNull_0(newTopOpenedCard));
|
|
52303
|
-
var cards = this.
|
|
52350
|
+
var cards = this.n92_1.p5e(cardDeck.e7f_1, cardsToRemove);
|
|
52304
52351
|
return cardDeck.y87(cards, VOID, newTopOpenedCard);
|
|
52305
52352
|
};
|
|
52306
52353
|
function TeamsMechanicReducer() {
|
|
52307
52354
|
}
|
|
52308
|
-
protoOf(TeamsMechanicReducer).
|
|
52355
|
+
protoOf(TeamsMechanicReducer).r93 = function (players, action) {
|
|
52309
52356
|
// Inline function 'kotlin.collections.map' call
|
|
52310
52357
|
var this_0 = action.s8s_1.e67_1;
|
|
52311
52358
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -52345,10 +52392,10 @@
|
|
|
52345
52392
|
return destination_1;
|
|
52346
52393
|
};
|
|
52347
52394
|
function TradeMechanicReducer(logger, gameHistoryReducer) {
|
|
52348
|
-
this.
|
|
52349
|
-
this.
|
|
52395
|
+
this.n93_1 = logger;
|
|
52396
|
+
this.o93_1 = gameHistoryReducer;
|
|
52350
52397
|
}
|
|
52351
|
-
protoOf(TradeMechanicReducer).
|
|
52398
|
+
protoOf(TradeMechanicReducer).q93 = function (state, action) {
|
|
52352
52399
|
var table = state.j6i();
|
|
52353
52400
|
// Inline function 'kotlin.with' call
|
|
52354
52401
|
var player = getPlayer(table.players, action.q8m_1);
|
|
@@ -52356,7 +52403,7 @@
|
|
|
52356
52403
|
var it = player.j6q_1.e6v();
|
|
52357
52404
|
var tmp;
|
|
52358
52405
|
if (it == null) {
|
|
52359
|
-
this.
|
|
52406
|
+
this.n93_1.w(VOID, "Can't support this circle increment");
|
|
52360
52407
|
tmp = player.j6q_1.x6q_1;
|
|
52361
52408
|
} else {
|
|
52362
52409
|
tmp = it;
|
|
@@ -52378,17 +52425,17 @@
|
|
|
52378
52425
|
destination.j(tmp$ret$2);
|
|
52379
52426
|
}
|
|
52380
52427
|
var tmp_1 = destination;
|
|
52381
|
-
var tmp0_$this = this.
|
|
52428
|
+
var tmp0_$this = this.o93_1;
|
|
52382
52429
|
var tmp1_playerId = player.playerId;
|
|
52383
52430
|
var tmp2_suit = action.o8m_1;
|
|
52384
52431
|
var tmp3_gameHistory = table.gameHistory;
|
|
52385
52432
|
var tmp4_players = table.players;
|
|
52386
52433
|
var tmp5_playersMode = table.config.playersMode;
|
|
52387
|
-
tmp_0 = state.o8p(table.copy(VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.
|
|
52434
|
+
tmp_0 = state.o8p(table.copy(VOID, VOID, VOID, VOID, tmp_1, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.y94(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
|
|
52388
52435
|
}
|
|
52389
52436
|
return tmp_0;
|
|
52390
52437
|
};
|
|
52391
|
-
protoOf(TradeMechanicReducer).
|
|
52438
|
+
protoOf(TradeMechanicReducer).p93 = function (state, action) {
|
|
52392
52439
|
var table = state.j6i();
|
|
52393
52440
|
// Inline function 'kotlin.collections.map' call
|
|
52394
52441
|
var this_0 = table.players;
|
|
@@ -52406,13 +52453,13 @@
|
|
|
52406
52453
|
return valueToFind.b6w_1 === value.b6w_1;
|
|
52407
52454
|
}
|
|
52408
52455
|
function CombinationsMechanicReducer(teamsLogicProvider, combinationsInteractor, dealerReducer, playerHandReducer, gameHistoryReducer) {
|
|
52409
|
-
this.
|
|
52410
|
-
this.
|
|
52411
|
-
this.
|
|
52412
|
-
this.
|
|
52413
|
-
this.
|
|
52456
|
+
this.x92_1 = teamsLogicProvider;
|
|
52457
|
+
this.y92_1 = combinationsInteractor;
|
|
52458
|
+
this.z92_1 = dealerReducer;
|
|
52459
|
+
this.a93_1 = playerHandReducer;
|
|
52460
|
+
this.b93_1 = gameHistoryReducer;
|
|
52414
52461
|
}
|
|
52415
|
-
protoOf(CombinationsMechanicReducer).
|
|
52462
|
+
protoOf(CombinationsMechanicReducer).z94 = function (whoGotBribePlayerId, playerCombinations, players, config) {
|
|
52416
52463
|
var bellaCombination = first(playerCombinations.g89_1);
|
|
52417
52464
|
var player = getPlayer(players, playerCombinations.f89_1);
|
|
52418
52465
|
if (bellaCombination.d6w_1.equals(CombinationState_NOT_ACCEPTED_getInstance())) {
|
|
@@ -52421,7 +52468,7 @@
|
|
|
52421
52468
|
var tmp;
|
|
52422
52469
|
if (config.rules.protectBella) {
|
|
52423
52470
|
var playerWithBellaGotBribe = player.playerId === whoGotBribePlayerId;
|
|
52424
|
-
var partnerGotBribe = config.playersMode.isTeamGame && this.
|
|
52471
|
+
var partnerGotBribe = config.playersMode.isTeamGame && this.x92_1.m8d(player.playerId, players).playerId === whoGotBribePlayerId;
|
|
52425
52472
|
var tmp_0;
|
|
52426
52473
|
if (playerWithBellaGotBribe || partnerGotBribe) {
|
|
52427
52474
|
tmp_0 = bellaCombination.n6w(VOID, VOID, CombinationState_ACCEPTED_getInstance());
|
|
@@ -52435,7 +52482,7 @@
|
|
|
52435
52482
|
return tmp;
|
|
52436
52483
|
}
|
|
52437
52484
|
};
|
|
52438
|
-
protoOf(CombinationsMechanicReducer).
|
|
52485
|
+
protoOf(CombinationsMechanicReducer).c93 = function (state, action) {
|
|
52439
52486
|
var table = state.j6i();
|
|
52440
52487
|
var players = table.players;
|
|
52441
52488
|
var config = table.config;
|
|
@@ -52466,7 +52513,7 @@
|
|
|
52466
52513
|
}
|
|
52467
52514
|
var passedPlayersCombinations = destination;
|
|
52468
52515
|
// Inline function 'kotlin.collections.filterNot' call
|
|
52469
|
-
var tmp0 = this.
|
|
52516
|
+
var tmp0 = this.y92_1.j8h(players);
|
|
52470
52517
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
52471
52518
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
52472
52519
|
var _iterator__ex2g4s_1 = tmp0.l();
|
|
@@ -52513,10 +52560,10 @@
|
|
|
52513
52560
|
var tmp0_elvis_lhs_0 = rejectedPlayersCombinations.b2(item_1.playerId);
|
|
52514
52561
|
var tmp$ret$18 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
52515
52562
|
var updatedCombinations = plus(tmp_0, tmp$ret$18);
|
|
52516
|
-
var tmp0_$this = this.
|
|
52563
|
+
var tmp0_$this = this.a93_1;
|
|
52517
52564
|
var tmp1_playerId = item_1.playerId;
|
|
52518
52565
|
var tmp2_hand = item_1.k6q_1;
|
|
52519
|
-
var tmp_1 = tmp0_$this.
|
|
52566
|
+
var tmp_1 = tmp0_$this.i94(tmp1_playerId, tmp2_hand, updatedCombinations, config);
|
|
52520
52567
|
tmp = item_1.b6r(VOID, VOID, VOID, VOID, tmp_1, item_1.l6q_1.i6v(VOID, updateOrAddItems(item_1.l6q_1.b6s_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
|
|
52521
52568
|
} else {
|
|
52522
52569
|
tmp = item_1;
|
|
@@ -52524,9 +52571,9 @@
|
|
|
52524
52571
|
var tmp$ret$19 = tmp;
|
|
52525
52572
|
destination_4.j(tmp$ret$19);
|
|
52526
52573
|
}
|
|
52527
|
-
return state.o8p(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
52574
|
+
return state.o8p(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.b93_1.a95(action.e8t_1, table.gameHistory)));
|
|
52528
52575
|
};
|
|
52529
|
-
protoOf(CombinationsMechanicReducer).
|
|
52576
|
+
protoOf(CombinationsMechanicReducer).m93 = function (state, action) {
|
|
52530
52577
|
var table = state.j6i();
|
|
52531
52578
|
var player = getPlayer(table.players, action.c8t_1);
|
|
52532
52579
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -52581,13 +52628,13 @@
|
|
|
52581
52628
|
// Inline function 'kotlin.let' call
|
|
52582
52629
|
|
|
52583
52630
|
var cards = player.i6q_1;
|
|
52584
|
-
var newCards = this.
|
|
52585
|
-
var tmp1_cards = this.
|
|
52631
|
+
var newCards = this.z92_1.q5e(cards, trumpSevenCard);
|
|
52632
|
+
var tmp1_cards = this.z92_1.r5e(newCards, trumpCard);
|
|
52586
52633
|
var tmp3_players = updateItem(table.players, player.b6r(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
|
|
52587
|
-
var tmp4_gameHistory = this.
|
|
52634
|
+
var tmp4_gameHistory = this.b93_1.b95(player.playerId, listOf(announcedCombination.c6w_1), VOID, table.gameHistory);
|
|
52588
52635
|
return state.o8p(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
|
|
52589
52636
|
case 6:
|
|
52590
|
-
return state.o8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.b6r(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
52637
|
+
return state.o8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.b6r(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.b93_1.b95(player.playerId, listOf(announcedCombination.c6w_1), VOID, table.gameHistory)));
|
|
52591
52638
|
default:
|
|
52592
52639
|
throw new MechanicException("Can't support this combination " + announcedCombination.toString());
|
|
52593
52640
|
}
|
|
@@ -52668,7 +52715,7 @@
|
|
|
52668
52715
|
destination.j(tmp$ret$1);
|
|
52669
52716
|
}
|
|
52670
52717
|
var updatedCombinations = destination;
|
|
52671
|
-
var tmp1_cards = $this.
|
|
52718
|
+
var tmp1_cards = $this.g93_1.q5e(player.i6q_1, card);
|
|
52672
52719
|
var tmp2_points = player.l6q_1.i6v(VOID, updatedCombinations);
|
|
52673
52720
|
var tmp3_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.round.selectedTrump);
|
|
52674
52721
|
return player.b6r(VOID, VOID, tmp1_cards, VOID, tmp3_hand, tmp2_points);
|
|
@@ -52687,11 +52734,11 @@
|
|
|
52687
52734
|
}
|
|
52688
52735
|
var tmp2_combinations = tmp;
|
|
52689
52736
|
var tmp4_points = tmp0_$this.i6v(VOID, tmp2_combinations, tmp1_earnedCards);
|
|
52690
|
-
var tmp5_hand = $this.
|
|
52737
|
+
var tmp5_hand = $this.i93_1.h94(player.k6q_1, combinations);
|
|
52691
52738
|
return player.b6r(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
|
|
52692
52739
|
}
|
|
52693
52740
|
function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config) {
|
|
52694
|
-
var bellaCombination = $this.
|
|
52741
|
+
var bellaCombination = $this.f93_1.i8h(players);
|
|
52695
52742
|
// Inline function 'kotlin.collections.associate' call
|
|
52696
52743
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(players, 10)), 16);
|
|
52697
52744
|
// Inline function 'kotlin.collections.associateTo' call
|
|
@@ -52710,7 +52757,7 @@
|
|
|
52710
52757
|
var isGotBribe = player.playerId === whoGotBribePlayerId;
|
|
52711
52758
|
var isGotLastBribe = player.a65() === 0 && isGotBribe;
|
|
52712
52759
|
var hasBellaCombination = !(bellaCombination == null) && bellaCombination.f89_1 === player.playerId;
|
|
52713
|
-
var tmp = isGotLastBribe ? $this.
|
|
52760
|
+
var tmp = isGotLastBribe ? $this.e93_1.q6v(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_150.c88(CombinationType_BONUS_LAST_BRIBE_getInstance(), config)) : null;
|
|
52714
52761
|
var tmp_0;
|
|
52715
52762
|
if (hasBellaCombination) {
|
|
52716
52763
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -52726,7 +52773,7 @@
|
|
|
52726
52773
|
}
|
|
52727
52774
|
}
|
|
52728
52775
|
var tmp$ret$2 = tmp$ret$1;
|
|
52729
|
-
tmp_0 = $this.
|
|
52776
|
+
tmp_0 = $this.d93_1.z94(whoGotBribePlayerId, tmp$ret$2, players, config);
|
|
52730
52777
|
} else {
|
|
52731
52778
|
tmp_0 = null;
|
|
52732
52779
|
}
|
|
@@ -52791,15 +52838,15 @@
|
|
|
52791
52838
|
return value1.b6w_1 === value2.b6w_1;
|
|
52792
52839
|
}
|
|
52793
52840
|
function EarnPointsMechanicReducer(combinationsMechanicReducer, combinationsFactory, combinationsInteractor, dealerReducer, gameHistoryReducer, playerHandReducer, logger) {
|
|
52794
|
-
this.
|
|
52795
|
-
this.
|
|
52796
|
-
this.
|
|
52797
|
-
this.
|
|
52798
|
-
this.
|
|
52799
|
-
this.
|
|
52800
|
-
this.
|
|
52801
|
-
}
|
|
52802
|
-
protoOf(EarnPointsMechanicReducer).
|
|
52841
|
+
this.d93_1 = combinationsMechanicReducer;
|
|
52842
|
+
this.e93_1 = combinationsFactory;
|
|
52843
|
+
this.f93_1 = combinationsInteractor;
|
|
52844
|
+
this.g93_1 = dealerReducer;
|
|
52845
|
+
this.h93_1 = gameHistoryReducer;
|
|
52846
|
+
this.i93_1 = playerHandReducer;
|
|
52847
|
+
this.j93_1 = logger;
|
|
52848
|
+
}
|
|
52849
|
+
protoOf(EarnPointsMechanicReducer).l93 = function (state, action) {
|
|
52803
52850
|
var table = state.j6i();
|
|
52804
52851
|
var player = getPlayer(table.players, action.v8m_1);
|
|
52805
52852
|
var cardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action.v8m_1, table.cardsOnTable.o(), action.t8m_1));
|
|
@@ -52821,13 +52868,13 @@
|
|
|
52821
52868
|
var tmp$ret$0 = item.m75_1;
|
|
52822
52869
|
destination.j(tmp$ret$0);
|
|
52823
52870
|
}
|
|
52824
|
-
tmp = this.
|
|
52871
|
+
tmp = this.h93_1.b95(tmp_0, destination, VOID, table.gameHistory);
|
|
52825
52872
|
}
|
|
52826
52873
|
var tmp1_elvis_lhs = tmp;
|
|
52827
52874
|
var tmp4_gameHistory = tmp1_elvis_lhs == null ? table.gameHistory : tmp1_elvis_lhs;
|
|
52828
52875
|
return state.o8p(tmp2_$this.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, cardsOnTheTable, VOID, VOID, VOID, VOID, tmp4_gameHistory));
|
|
52829
52876
|
};
|
|
52830
|
-
protoOf(EarnPointsMechanicReducer).
|
|
52877
|
+
protoOf(EarnPointsMechanicReducer).k93 = function (state, action) {
|
|
52831
52878
|
var table = state.j6i();
|
|
52832
52879
|
var players = table.players;
|
|
52833
52880
|
var cardsOnTable = table.cardsOnTable;
|
|
@@ -52852,7 +52899,7 @@
|
|
|
52852
52899
|
destination_0.j(tmp$ret$3);
|
|
52853
52900
|
}
|
|
52854
52901
|
if (!(toSet(destination_0).o() === 1)) {
|
|
52855
|
-
this.
|
|
52902
|
+
this.j93_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
|
|
52856
52903
|
}
|
|
52857
52904
|
var playersCombinations = addPlayersCombinationsWhenPickBribe(this, action.y8m_1, players, config);
|
|
52858
52905
|
var bribe = new Bribe(cardsOnTable);
|
|
@@ -52868,7 +52915,7 @@
|
|
|
52868
52915
|
destination_1.j(tmp$ret$6);
|
|
52869
52916
|
}
|
|
52870
52917
|
var tmp3_gameInfo = table.gameInfo.v86(VOID, VOID, table.gameInfo.round.copy(VOID, action.z8m_1));
|
|
52871
|
-
var tmp4_gameHistory = this.
|
|
52918
|
+
var tmp4_gameHistory = this.h93_1.c95(action.y8m_1, bribe, action.z8m_1, playersCombinations, table.gameHistory);
|
|
52872
52919
|
return state.o8p(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, VOID, tmp1_cardsOnTable, tmp0_bribes, VOID, VOID, tmp3_gameInfo, tmp4_gameHistory));
|
|
52873
52920
|
};
|
|
52874
52921
|
function randomDataReducer($this, randomData, metadata) {
|
|
@@ -52876,7 +52923,7 @@
|
|
|
52876
52923
|
return metadata;
|
|
52877
52924
|
}
|
|
52878
52925
|
if (!(metadata.randomData == null) && (!(metadata.randomData.id === randomData.id) || !(metadata.randomData.signature == randomData.signature))) {
|
|
52879
|
-
$this.
|
|
52926
|
+
$this.r94_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
|
|
52880
52927
|
}
|
|
52881
52928
|
var tmp0_safe_receiver = metadata.randomData;
|
|
52882
52929
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.indexes;
|
|
@@ -52888,12 +52935,12 @@
|
|
|
52888
52935
|
return _this__u8e3s4.copy(VOID, VOID, updateLastItem(_this__u8e3s4.rounds, roundHistory.copy(VOID, plus_1(roundHistory.items, items))));
|
|
52889
52936
|
}
|
|
52890
52937
|
function GameHistoryReducer(pointsInteractor, teamsLogicProvider, gameLogicConfig, logger) {
|
|
52891
|
-
this.
|
|
52892
|
-
this.
|
|
52893
|
-
this.
|
|
52894
|
-
this.
|
|
52938
|
+
this.o94_1 = pointsInteractor;
|
|
52939
|
+
this.p94_1 = teamsLogicProvider;
|
|
52940
|
+
this.q94_1 = gameLogicConfig;
|
|
52941
|
+
this.r94_1 = logger;
|
|
52895
52942
|
}
|
|
52896
|
-
protoOf(GameHistoryReducer).
|
|
52943
|
+
protoOf(GameHistoryReducer).d95 = function (gameHistory) {
|
|
52897
52944
|
var roundNumber = gameHistory.rounds.length;
|
|
52898
52945
|
var tmp0 = gameHistory.rounds;
|
|
52899
52946
|
// Inline function 'kotlin.collections.plus' call
|
|
@@ -52905,7 +52952,7 @@
|
|
|
52905
52952
|
var tmp$ret$4 = tmp0.concat(tmp$ret$3);
|
|
52906
52953
|
return gameHistory.copy(VOID, VOID, tmp$ret$4);
|
|
52907
52954
|
};
|
|
52908
|
-
protoOf(GameHistoryReducer).
|
|
52955
|
+
protoOf(GameHistoryReducer).t94 = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
|
|
52909
52956
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
52910
52957
|
var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.f7f_1, System_instance.ck());
|
|
52911
52958
|
// Inline function 'kotlin.collections.mapValues' call
|
|
@@ -52923,14 +52970,14 @@
|
|
|
52923
52970
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
52924
52971
|
return gameHistory.copy(VOID, VOID, tmp_1, VOID, randomDataReducer(this, randomData, tmp0_elvis_lhs == null ? Companion_instance_159.initial() : tmp0_elvis_lhs));
|
|
52925
52972
|
};
|
|
52926
|
-
protoOf(GameHistoryReducer).
|
|
52973
|
+
protoOf(GameHistoryReducer).y94 = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
|
|
52927
52974
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
52928
52975
|
var tmp;
|
|
52929
52976
|
if (playersMode.isTeamGame) {
|
|
52930
52977
|
// Inline function 'kotlin.arrayOf' call
|
|
52931
52978
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
52932
52979
|
// Inline function 'kotlin.js.asDynamic' call
|
|
52933
|
-
tmp = [playerId, this.
|
|
52980
|
+
tmp = [playerId, this.p94_1.m8d(playerId, players).playerId];
|
|
52934
52981
|
} else {
|
|
52935
52982
|
// Inline function 'kotlin.arrayOf' call
|
|
52936
52983
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -52940,7 +52987,7 @@
|
|
|
52940
52987
|
var roundCommitted = tmp;
|
|
52941
52988
|
return gameHistory.copy(VOID, VOID, updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, plus_1(currentRoundHistory.items, listOf(new SuitSelectionItem(playerId, suit, numberOfCircle, System_instance.ck()))), roundCommitted)));
|
|
52942
52989
|
};
|
|
52943
|
-
protoOf(GameHistoryReducer).
|
|
52990
|
+
protoOf(GameHistoryReducer).v94 = function (playersCards, gameHistory) {
|
|
52944
52991
|
// Inline function 'kotlin.collections.mapValues' call
|
|
52945
52992
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
52946
52993
|
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.o()));
|
|
@@ -52954,14 +53001,14 @@
|
|
|
52954
53001
|
}
|
|
52955
53002
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayersCardsItem(destination, 1, System_instance.ck())));
|
|
52956
53003
|
};
|
|
52957
|
-
protoOf(GameHistoryReducer).
|
|
53004
|
+
protoOf(GameHistoryReducer).e95 = function (playerId, combinations, combinationsStates, gameHistory) {
|
|
52958
53005
|
return addItemsToCurrentRound(this, gameHistory, listOf(new CombinationAnnounceItem(playerId, combinations, combinationsStates, System_instance.ck())));
|
|
52959
53006
|
};
|
|
52960
|
-
protoOf(GameHistoryReducer).
|
|
53007
|
+
protoOf(GameHistoryReducer).b95 = function (playerId, combinations, combinationsStates, gameHistory, $super) {
|
|
52961
53008
|
combinationsStates = combinationsStates === VOID ? null : combinationsStates;
|
|
52962
|
-
return $super === VOID ? this.
|
|
53009
|
+
return $super === VOID ? this.e95(playerId, combinations, combinationsStates, gameHistory) : $super.e95.call(this, playerId, combinations, combinationsStates, gameHistory);
|
|
52963
53010
|
};
|
|
52964
|
-
protoOf(GameHistoryReducer).
|
|
53011
|
+
protoOf(GameHistoryReducer).c95 = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
|
|
52965
53012
|
var tmp = listOf(new BribeItem(whoGotBribePlayerId, bribe.w7e_1, numberOfBribe, System_instance.ck()));
|
|
52966
53013
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
52967
53014
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -53020,7 +53067,7 @@
|
|
|
53020
53067
|
}
|
|
53021
53068
|
return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
|
|
53022
53069
|
};
|
|
53023
|
-
protoOf(GameHistoryReducer).
|
|
53070
|
+
protoOf(GameHistoryReducer).a95 = function (winnerCombinations, gameHistory) {
|
|
53024
53071
|
// Inline function 'kotlin.collections.map' call
|
|
53025
53072
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53026
53073
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(winnerCombinations, 10));
|
|
@@ -53036,7 +53083,7 @@
|
|
|
53036
53083
|
}
|
|
53037
53084
|
return addItemsToCurrentRound(this, gameHistory, destination);
|
|
53038
53085
|
};
|
|
53039
|
-
protoOf(GameHistoryReducer).
|
|
53086
|
+
protoOf(GameHistoryReducer).s94 = function (playerId, previousConnection, playerConnection, gameHistory) {
|
|
53040
53087
|
if (playerConnection == null) {
|
|
53041
53088
|
return gameHistory;
|
|
53042
53089
|
}
|
|
@@ -53048,17 +53095,17 @@
|
|
|
53048
53095
|
tmp = false;
|
|
53049
53096
|
}
|
|
53050
53097
|
var isShortDisconnectState = tmp;
|
|
53051
|
-
if (isSupportedReason && !isShortDisconnectState || this.
|
|
53098
|
+
if (isSupportedReason && !isShortDisconnectState || this.q94_1.verboseGameHistory) {
|
|
53052
53099
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayerConnectionItem(playerId, playerConnection.t65_1, playerConnection.a66(), System_instance.ck())));
|
|
53053
53100
|
}
|
|
53054
53101
|
return gameHistory;
|
|
53055
53102
|
};
|
|
53056
|
-
protoOf(GameHistoryReducer).
|
|
53103
|
+
protoOf(GameHistoryReducer).w94 = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
|
|
53057
53104
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
53058
53105
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
53059
53106
|
var currentMetadata = tmp0_elvis_lhs == null ? Companion_instance_159.initial() : tmp0_elvis_lhs;
|
|
53060
53107
|
var tmp;
|
|
53061
|
-
if (this.
|
|
53108
|
+
if (this.q94_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
|
|
53062
53109
|
// Inline function 'kotlin.collections.map' call
|
|
53063
53110
|
// Inline function 'kotlin.collections.mapTo' call
|
|
53064
53111
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(playersGameAnalytics, 10));
|
|
@@ -53073,7 +53120,7 @@
|
|
|
53073
53120
|
tmp = currentMetadata;
|
|
53074
53121
|
}
|
|
53075
53122
|
var updatedMetadata = tmp;
|
|
53076
|
-
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.
|
|
53123
|
+
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.o94_1.e8l(points), System_instance.ck())));
|
|
53077
53124
|
var tmp2_rounds = updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, tmp1_items, roundCommitted, roundContractState, roundWinners));
|
|
53078
53125
|
return gameHistory.copy(VOID, VOID, tmp2_rounds, gameWinners, updatedMetadata);
|
|
53079
53126
|
};
|
|
@@ -53098,7 +53145,7 @@
|
|
|
53098
53145
|
tmp = cardDeck;
|
|
53099
53146
|
}
|
|
53100
53147
|
var newCardDeck = tmp;
|
|
53101
|
-
return new PreviousRound(bribes, newCardDeck, $this.
|
|
53148
|
+
return new PreviousRound(bribes, newCardDeck, $this.h95_1.f8l(players, config));
|
|
53102
53149
|
}
|
|
53103
53150
|
function roundFinishedGameInfoReducer($this, table) {
|
|
53104
53151
|
var gameInfo = table.gameInfo;
|
|
@@ -53151,10 +53198,10 @@
|
|
|
53151
53198
|
return points.h6v(0, emptyList(), emptyList());
|
|
53152
53199
|
}
|
|
53153
53200
|
function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
|
|
53154
|
-
this.
|
|
53155
|
-
this.
|
|
53201
|
+
this.h95_1 = pointsInteractor;
|
|
53202
|
+
this.i95_1 = historyReducer;
|
|
53156
53203
|
}
|
|
53157
|
-
protoOf(TableLifecycleReducerImpl).
|
|
53204
|
+
protoOf(TableLifecycleReducerImpl).f95 = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
|
|
53158
53205
|
var tmp = Companion_instance_147;
|
|
53159
53206
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
53160
53207
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -53186,7 +53233,7 @@
|
|
|
53186
53233
|
}
|
|
53187
53234
|
return tmp.initial(tableId, gameId, version, config, tmp_1, destination_0);
|
|
53188
53235
|
};
|
|
53189
|
-
protoOf(TableLifecycleReducerImpl).
|
|
53236
|
+
protoOf(TableLifecycleReducerImpl).b94 = function (table) {
|
|
53190
53237
|
var tmp0_sceneInfo = new SceneInfo('WAITING');
|
|
53191
53238
|
// Inline function 'kotlin.collections.map' call
|
|
53192
53239
|
var this_0 = table.players;
|
|
@@ -53201,10 +53248,10 @@
|
|
|
53201
53248
|
var tmp2_cardsOnTable = emptyList();
|
|
53202
53249
|
var tmp3_bribes = emptyList();
|
|
53203
53250
|
var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
|
|
53204
|
-
var tmp5_gameHistory = this.
|
|
53251
|
+
var tmp5_gameHistory = this.i95_1.d95(table.gameHistory);
|
|
53205
53252
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, null, VOID, tmp4_gameInfo, tmp5_gameHistory);
|
|
53206
53253
|
};
|
|
53207
|
-
protoOf(TableLifecycleReducerImpl).
|
|
53254
|
+
protoOf(TableLifecycleReducerImpl).x94 = function (table) {
|
|
53208
53255
|
// Inline function 'kotlin.collections.map' call
|
|
53209
53256
|
var this_0 = table.players;
|
|
53210
53257
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53215,9 +53262,9 @@
|
|
|
53215
53262
|
var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
|
|
53216
53263
|
destination.j(tmp$ret$0);
|
|
53217
53264
|
}
|
|
53218
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.
|
|
53265
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.i95_1.d95(table.gameHistory));
|
|
53219
53266
|
};
|
|
53220
|
-
protoOf(TableLifecycleReducerImpl).
|
|
53267
|
+
protoOf(TableLifecycleReducerImpl).g95 = function (table, newGameId) {
|
|
53221
53268
|
// Inline function 'kotlin.collections.map' call
|
|
53222
53269
|
var this_0 = table.players;
|
|
53223
53270
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -53256,93 +53303,93 @@
|
|
|
53256
53303
|
return true;
|
|
53257
53304
|
}
|
|
53258
53305
|
function resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
53259
|
-
this.
|
|
53260
|
-
this.
|
|
53261
|
-
this.
|
|
53262
|
-
this.
|
|
53306
|
+
this.j95_1 = $isEnableForPlayer;
|
|
53307
|
+
this.k95_1 = $playerTurnInteractor;
|
|
53308
|
+
this.l95_1 = $logger;
|
|
53309
|
+
this.m95_1 = $playerTurnMechanicReducer;
|
|
53263
53310
|
}
|
|
53264
53311
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).p6d = function (action) {
|
|
53265
53312
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
53266
53313
|
};
|
|
53267
|
-
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).
|
|
53314
|
+
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).i92 = function (state, action) {
|
|
53268
53315
|
var tmp2 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
53269
53316
|
var tmp$ret$0;
|
|
53270
53317
|
$l$block: {
|
|
53271
53318
|
var table = state.j6i();
|
|
53272
53319
|
var player = getPlayer(table.players, tmp2.playerId);
|
|
53273
|
-
if (!this.
|
|
53320
|
+
if (!this.j95_1(player)) {
|
|
53274
53321
|
tmp$ret$0 = state;
|
|
53275
53322
|
break $l$block;
|
|
53276
53323
|
}
|
|
53277
|
-
var turnModel = this.
|
|
53324
|
+
var turnModel = this.k95_1.b8m(player, tmp2);
|
|
53278
53325
|
var tmp;
|
|
53279
53326
|
if (turnModel == null) {
|
|
53280
|
-
this.
|
|
53327
|
+
this.l95_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
53281
53328
|
tmp = state;
|
|
53282
53329
|
} else {
|
|
53283
|
-
tmp = state.o8p(this.
|
|
53330
|
+
tmp = state.o8p(this.m95_1.m94(table, turnModel));
|
|
53284
53331
|
}
|
|
53285
53332
|
tmp$ret$0 = tmp;
|
|
53286
53333
|
}
|
|
53287
53334
|
return tmp$ret$0;
|
|
53288
53335
|
};
|
|
53289
53336
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).f6f = function (state, action) {
|
|
53290
|
-
return this.
|
|
53337
|
+
return this.i92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
53291
53338
|
};
|
|
53292
53339
|
function resetPlayerTurnWhenAnswerReducer$lambda(it) {
|
|
53293
53340
|
return true;
|
|
53294
53341
|
}
|
|
53295
53342
|
function resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
53296
|
-
this.
|
|
53297
|
-
this.
|
|
53298
|
-
this.
|
|
53299
|
-
this.
|
|
53343
|
+
this.n95_1 = $isEnableForPlayer;
|
|
53344
|
+
this.o95_1 = $playerTurnInteractor;
|
|
53345
|
+
this.p95_1 = $logger;
|
|
53346
|
+
this.q95_1 = $playerTurnMechanicReducer;
|
|
53300
53347
|
}
|
|
53301
53348
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).p6d = function (action) {
|
|
53302
53349
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
53303
53350
|
};
|
|
53304
|
-
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).
|
|
53351
|
+
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).i92 = function (state, action) {
|
|
53305
53352
|
var tmp2 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
|
|
53306
53353
|
var tmp$ret$0;
|
|
53307
53354
|
$l$block: {
|
|
53308
53355
|
var table = state.j6i();
|
|
53309
53356
|
var player = getPlayerTurn(tmp2, table.players);
|
|
53310
|
-
if (player == null || !this.
|
|
53357
|
+
if (player == null || !this.n95_1(player)) {
|
|
53311
53358
|
tmp$ret$0 = state;
|
|
53312
53359
|
break $l$block;
|
|
53313
53360
|
}
|
|
53314
|
-
var turnModel = this.
|
|
53361
|
+
var turnModel = this.o95_1.b8m(player, tmp2);
|
|
53315
53362
|
var tmp;
|
|
53316
53363
|
if (turnModel == null) {
|
|
53317
|
-
this.
|
|
53364
|
+
this.p95_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
53318
53365
|
tmp = state;
|
|
53319
53366
|
} else {
|
|
53320
|
-
tmp = state.o8p(this.
|
|
53367
|
+
tmp = state.o8p(this.q95_1.m94(table, turnModel));
|
|
53321
53368
|
}
|
|
53322
53369
|
tmp$ret$0 = tmp;
|
|
53323
53370
|
}
|
|
53324
53371
|
return tmp$ret$0;
|
|
53325
53372
|
};
|
|
53326
53373
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).f6f = function (state, action) {
|
|
53327
|
-
return this.
|
|
53374
|
+
return this.i92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
53328
53375
|
};
|
|
53329
53376
|
function setPlayerTurnReducer(playerTurnInteractor, playerTurnMechanicReducer) {
|
|
53330
53377
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
53331
53378
|
return new setPlayerTurnReducer$$inlined$reducerForActionType$1(playerTurnInteractor, playerTurnMechanicReducer);
|
|
53332
53379
|
}
|
|
53333
53380
|
function setPlayerTurnReducer$$inlined$reducerForActionType$1($playerTurnInteractor, $playerTurnMechanicReducer) {
|
|
53334
|
-
this.
|
|
53335
|
-
this.
|
|
53381
|
+
this.r95_1 = $playerTurnInteractor;
|
|
53382
|
+
this.s95_1 = $playerTurnMechanicReducer;
|
|
53336
53383
|
}
|
|
53337
53384
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).p6d = function (action) {
|
|
53338
53385
|
return isInterface(action, NextPlayerTurnAction);
|
|
53339
53386
|
};
|
|
53340
|
-
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).
|
|
53387
|
+
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).i92 = function (state, action) {
|
|
53341
53388
|
var tmp2 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
53342
53389
|
var tmp$ret$0;
|
|
53343
53390
|
$l$block: {
|
|
53344
53391
|
var table = state.j6i();
|
|
53345
|
-
var tmp0_elvis_lhs = this.
|
|
53392
|
+
var tmp0_elvis_lhs = this.r95_1.a8m(tmp2, table);
|
|
53346
53393
|
var tmp;
|
|
53347
53394
|
if (tmp0_elvis_lhs == null) {
|
|
53348
53395
|
tmp$ret$0 = state;
|
|
@@ -53351,12 +53398,12 @@
|
|
|
53351
53398
|
tmp = tmp0_elvis_lhs;
|
|
53352
53399
|
}
|
|
53353
53400
|
var turnModel = tmp;
|
|
53354
|
-
tmp$ret$0 = state.o8p(this.
|
|
53401
|
+
tmp$ret$0 = state.o8p(this.s95_1.l94(table, turnModel));
|
|
53355
53402
|
}
|
|
53356
53403
|
return tmp$ret$0;
|
|
53357
53404
|
};
|
|
53358
53405
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).f6f = function (state, action) {
|
|
53359
|
-
return this.
|
|
53406
|
+
return this.i92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
53360
53407
|
};
|
|
53361
53408
|
function get_isCreated(_this__u8e3s4) {
|
|
53362
53409
|
return _this__u8e3s4.gameLifecycleState.isCreated;
|
|
@@ -53369,7 +53416,7 @@
|
|
|
53369
53416
|
}
|
|
53370
53417
|
function Companion_165() {
|
|
53371
53418
|
}
|
|
53372
|
-
protoOf(Companion_165).
|
|
53419
|
+
protoOf(Companion_165).t95 = function (payload) {
|
|
53373
53420
|
var tmp;
|
|
53374
53421
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
53375
53422
|
tmp = toLoggerPayload_0(payload);
|
|
@@ -53401,27 +53448,27 @@
|
|
|
53401
53448
|
tmp = payloadMapper;
|
|
53402
53449
|
}
|
|
53403
53450
|
payloadMapper = tmp;
|
|
53404
|
-
this.
|
|
53405
|
-
this.
|
|
53451
|
+
this.u95_1 = logger;
|
|
53452
|
+
this.v95_1 = payloadMapper;
|
|
53406
53453
|
}
|
|
53407
53454
|
protoOf(CallbackWrapperLoggerOutput).x1k = function (tag, message, payload) {
|
|
53408
|
-
this.
|
|
53455
|
+
this.u95_1.d(tag, message, this.v95_1(payload));
|
|
53409
53456
|
};
|
|
53410
53457
|
protoOf(CallbackWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
|
|
53411
|
-
this.
|
|
53458
|
+
this.u95_1.e(tag, message, exception, this.v95_1(payload));
|
|
53412
53459
|
};
|
|
53413
53460
|
protoOf(CallbackWrapperLoggerOutput).b1l = function (tag, message, payload) {
|
|
53414
|
-
this.
|
|
53461
|
+
this.u95_1.i(tag, message, this.v95_1(payload));
|
|
53415
53462
|
};
|
|
53416
53463
|
protoOf(CallbackWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
|
|
53417
|
-
this.
|
|
53464
|
+
this.u95_1.v(tag, message, exception, this.v95_1(payload));
|
|
53418
53465
|
};
|
|
53419
53466
|
protoOf(CallbackWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
|
|
53420
|
-
this.
|
|
53467
|
+
this.u95_1.w(tag, message, exception, this.v95_1(payload));
|
|
53421
53468
|
};
|
|
53422
53469
|
function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
|
|
53423
|
-
this.
|
|
53424
|
-
this.
|
|
53470
|
+
this.e96_1 = $$this$unsafeFlow;
|
|
53471
|
+
this.f96_1 = $types;
|
|
53425
53472
|
CoroutineImpl.call(this, resultContinuation);
|
|
53426
53473
|
}
|
|
53427
53474
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).s4u = function (value, $completion) {
|
|
@@ -53442,15 +53489,15 @@
|
|
|
53442
53489
|
case 0:
|
|
53443
53490
|
this.s8_1 = 5;
|
|
53444
53491
|
var tmp_0 = this;
|
|
53445
|
-
tmp_0.
|
|
53492
|
+
tmp_0.i96_1 = this.e96_1;
|
|
53446
53493
|
var tmp_1 = this;
|
|
53447
|
-
tmp_1.
|
|
53494
|
+
tmp_1.h96_1 = this.g96_1;
|
|
53448
53495
|
this.r8_1 = 1;
|
|
53449
53496
|
continue $sm;
|
|
53450
53497
|
case 1:
|
|
53451
|
-
var $this$transform = this.
|
|
53452
|
-
var value = this.
|
|
53453
|
-
if (contains(this.
|
|
53498
|
+
var $this$transform = this.i96_1;
|
|
53499
|
+
var value = this.h96_1;
|
|
53500
|
+
if (contains(this.f96_1, value.type)) {
|
|
53454
53501
|
this.r8_1 = 3;
|
|
53455
53502
|
suspendResult = $this$transform.x27(value, this);
|
|
53456
53503
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -53490,8 +53537,8 @@
|
|
|
53490
53537
|
while (true);
|
|
53491
53538
|
};
|
|
53492
53539
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).t4u = function (value, completion) {
|
|
53493
|
-
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.
|
|
53494
|
-
i.
|
|
53540
|
+
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.e96_1, this.f96_1, completion);
|
|
53541
|
+
i.g96_1 = value;
|
|
53495
53542
|
return i;
|
|
53496
53543
|
};
|
|
53497
53544
|
function FileLoggerOutputImpl$observe$o$collect$slambda_0($$this$unsafeFlow, $types, resultContinuation) {
|
|
@@ -53504,8 +53551,8 @@
|
|
|
53504
53551
|
}
|
|
53505
53552
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
53506
53553
|
CoroutineImpl.call(this, resultContinuation);
|
|
53507
|
-
this.
|
|
53508
|
-
this.
|
|
53554
|
+
this.r96_1 = _this__u8e3s4;
|
|
53555
|
+
this.s96_1 = collector;
|
|
53509
53556
|
}
|
|
53510
53557
|
protoOf($collectCOROUTINE$).z8 = function () {
|
|
53511
53558
|
var suspendResult = this.t8_1;
|
|
@@ -53515,10 +53562,10 @@
|
|
|
53515
53562
|
switch (tmp) {
|
|
53516
53563
|
case 0:
|
|
53517
53564
|
this.s8_1 = 2;
|
|
53518
|
-
var $this$unsafeFlow = this.
|
|
53565
|
+
var $this$unsafeFlow = this.s96_1;
|
|
53519
53566
|
this.r8_1 = 1;
|
|
53520
|
-
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.
|
|
53521
|
-
suspendResult = this.
|
|
53567
|
+
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.r96_1.u96_1, null);
|
|
53568
|
+
suspendResult = this.r96_1.t96_1.j27(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
|
|
53522
53569
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
53523
53570
|
return suspendResult;
|
|
53524
53571
|
}
|
|
@@ -53542,8 +53589,8 @@
|
|
|
53542
53589
|
};
|
|
53543
53590
|
function log($this, type, tag, message, payload, stackTrace) {
|
|
53544
53591
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
53545
|
-
$this.
|
|
53546
|
-
var tmp0_elvis_lhs = $this.
|
|
53592
|
+
$this.x96_1;
|
|
53593
|
+
var tmp0_elvis_lhs = $this.v96_1(payload);
|
|
53547
53594
|
var tmp;
|
|
53548
53595
|
if (tmp0_elvis_lhs == null) {
|
|
53549
53596
|
return Unit_instance;
|
|
@@ -53552,7 +53599,7 @@
|
|
|
53552
53599
|
}
|
|
53553
53600
|
var key = tmp;
|
|
53554
53601
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
53555
|
-
var this_0 = $this.
|
|
53602
|
+
var this_0 = $this.y96_1;
|
|
53556
53603
|
var value = this_0.b2(key);
|
|
53557
53604
|
var tmp_0;
|
|
53558
53605
|
if (value == null) {
|
|
@@ -53563,7 +53610,7 @@
|
|
|
53563
53610
|
tmp_0 = value;
|
|
53564
53611
|
}
|
|
53565
53612
|
var logger = tmp_0;
|
|
53566
|
-
logger.
|
|
53613
|
+
logger.z96_1.d2a(new LoggerOutputDataDto(type, key, tag, message, stackTrace));
|
|
53567
53614
|
}
|
|
53568
53615
|
function log$default($this, type, tag, message, payload, stackTrace, $super) {
|
|
53569
53616
|
stackTrace = stackTrace === VOID ? null : stackTrace;
|
|
@@ -53573,35 +53620,35 @@
|
|
|
53573
53620
|
flow = flow === VOID ? MutableSharedFlow(10, 100, BufferOverflow_DROP_OLDEST_getInstance()) : flow;
|
|
53574
53621
|
controller = controller === VOID ? null : controller;
|
|
53575
53622
|
job = job === VOID ? null : job;
|
|
53576
|
-
this.
|
|
53577
|
-
this.
|
|
53578
|
-
this.
|
|
53623
|
+
this.z96_1 = flow;
|
|
53624
|
+
this.a97_1 = controller;
|
|
53625
|
+
this.b97_1 = job;
|
|
53579
53626
|
}
|
|
53580
|
-
protoOf(LoggerModel).
|
|
53581
|
-
this.
|
|
53582
|
-
var tmp0_safe_receiver = this.
|
|
53627
|
+
protoOf(LoggerModel).c97 = function () {
|
|
53628
|
+
this.z96_1.h2a();
|
|
53629
|
+
var tmp0_safe_receiver = this.b97_1;
|
|
53583
53630
|
if (tmp0_safe_receiver == null)
|
|
53584
53631
|
null;
|
|
53585
53632
|
else {
|
|
53586
53633
|
tmp0_safe_receiver.n1q();
|
|
53587
53634
|
}
|
|
53588
53635
|
};
|
|
53589
|
-
protoOf(LoggerModel).
|
|
53636
|
+
protoOf(LoggerModel).d97 = function (flow, controller, job) {
|
|
53590
53637
|
return new LoggerModel(flow, controller, job);
|
|
53591
53638
|
};
|
|
53592
|
-
protoOf(LoggerModel).
|
|
53593
|
-
flow = flow === VOID ? this.
|
|
53594
|
-
controller = controller === VOID ? this.
|
|
53595
|
-
job = job === VOID ? this.
|
|
53596
|
-
return $super === VOID ? this.
|
|
53639
|
+
protoOf(LoggerModel).e97 = function (flow, controller, job, $super) {
|
|
53640
|
+
flow = flow === VOID ? this.z96_1 : flow;
|
|
53641
|
+
controller = controller === VOID ? this.a97_1 : controller;
|
|
53642
|
+
job = job === VOID ? this.b97_1 : job;
|
|
53643
|
+
return $super === VOID ? this.d97(flow, controller, job) : $super.d97.call(this, flow, controller, job);
|
|
53597
53644
|
};
|
|
53598
53645
|
protoOf(LoggerModel).toString = function () {
|
|
53599
|
-
return 'LoggerModel(flow=' + toString(this.
|
|
53646
|
+
return 'LoggerModel(flow=' + toString(this.z96_1) + ', controller=' + toString_0(this.a97_1) + ', job=' + toString_0(this.b97_1) + ')';
|
|
53600
53647
|
};
|
|
53601
53648
|
protoOf(LoggerModel).hashCode = function () {
|
|
53602
|
-
var result = hashCode(this.
|
|
53603
|
-
result = imul(result, 31) + (this.z96_1 == null ? 0 : hashCode(this.z96_1)) | 0;
|
|
53649
|
+
var result = hashCode(this.z96_1);
|
|
53604
53650
|
result = imul(result, 31) + (this.a97_1 == null ? 0 : hashCode(this.a97_1)) | 0;
|
|
53651
|
+
result = imul(result, 31) + (this.b97_1 == null ? 0 : hashCode(this.b97_1)) | 0;
|
|
53605
53652
|
return result;
|
|
53606
53653
|
};
|
|
53607
53654
|
protoOf(LoggerModel).equals = function (other) {
|
|
@@ -53609,18 +53656,18 @@
|
|
|
53609
53656
|
return true;
|
|
53610
53657
|
if (!(other instanceof LoggerModel))
|
|
53611
53658
|
return false;
|
|
53612
|
-
if (!equals(this.y96_1, other.y96_1))
|
|
53613
|
-
return false;
|
|
53614
53659
|
if (!equals(this.z96_1, other.z96_1))
|
|
53615
53660
|
return false;
|
|
53616
53661
|
if (!equals(this.a97_1, other.a97_1))
|
|
53617
53662
|
return false;
|
|
53663
|
+
if (!equals(this.b97_1, other.b97_1))
|
|
53664
|
+
return false;
|
|
53618
53665
|
return true;
|
|
53619
53666
|
};
|
|
53620
53667
|
function Companion_166() {
|
|
53621
|
-
this.
|
|
53668
|
+
this.f97_1 = 1000;
|
|
53622
53669
|
}
|
|
53623
|
-
protoOf(Companion_166).
|
|
53670
|
+
protoOf(Companion_166).g97 = function (payload) {
|
|
53624
53671
|
var tmp;
|
|
53625
53672
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
53626
53673
|
tmp = payload.id;
|
|
@@ -53642,13 +53689,13 @@
|
|
|
53642
53689
|
return Companion_instance_171;
|
|
53643
53690
|
}
|
|
53644
53691
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
53645
|
-
this.
|
|
53692
|
+
this.h97_1 = function_0;
|
|
53646
53693
|
}
|
|
53647
53694
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).x27 = function (value, $completion) {
|
|
53648
|
-
return this.
|
|
53695
|
+
return this.h97_1(value, $completion);
|
|
53649
53696
|
};
|
|
53650
53697
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).a3 = function () {
|
|
53651
|
-
return this.
|
|
53698
|
+
return this.h97_1;
|
|
53652
53699
|
};
|
|
53653
53700
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
53654
53701
|
var tmp;
|
|
@@ -53672,8 +53719,8 @@
|
|
|
53672
53719
|
return null;
|
|
53673
53720
|
}
|
|
53674
53721
|
function FileLoggerOutputImpl$observe$$inlined$filter$1($this, $types) {
|
|
53675
|
-
this.
|
|
53676
|
-
this.
|
|
53722
|
+
this.t96_1 = $this;
|
|
53723
|
+
this.u96_1 = $types;
|
|
53677
53724
|
}
|
|
53678
53725
|
protoOf(FileLoggerOutputImpl$observe$$inlined$filter$1).y27 = function (collector, $completion) {
|
|
53679
53726
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -53693,26 +53740,26 @@
|
|
|
53693
53740
|
}
|
|
53694
53741
|
payloadToKeyMapper = tmp;
|
|
53695
53742
|
enabled = enabled === VOID ? true : enabled;
|
|
53696
|
-
this.
|
|
53697
|
-
this.
|
|
53743
|
+
this.v96_1 = payloadToKeyMapper;
|
|
53744
|
+
this.w96_1 = enabled;
|
|
53698
53745
|
var tmp_0 = this;
|
|
53699
53746
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
53700
|
-
tmp_0.
|
|
53747
|
+
tmp_0.x96_1 = get_atomicfu$reentrantLock();
|
|
53701
53748
|
var tmp_1 = this;
|
|
53702
53749
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
53703
|
-
tmp_1.
|
|
53750
|
+
tmp_1.y96_1 = LinkedHashMap_init_$Create$();
|
|
53704
53751
|
}
|
|
53705
53752
|
protoOf(FileLoggerOutputImpl).c1l = function (_set____db54di) {
|
|
53706
|
-
this.
|
|
53753
|
+
this.w96_1 = _set____db54di;
|
|
53707
53754
|
};
|
|
53708
53755
|
protoOf(FileLoggerOutputImpl).d1l = function () {
|
|
53709
|
-
return this.
|
|
53756
|
+
return this.w96_1;
|
|
53710
53757
|
};
|
|
53711
|
-
protoOf(FileLoggerOutputImpl).
|
|
53758
|
+
protoOf(FileLoggerOutputImpl).i97 = function (key, types) {
|
|
53712
53759
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
53713
|
-
this.
|
|
53760
|
+
this.x96_1;
|
|
53714
53761
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
53715
|
-
var this_0 = this.
|
|
53762
|
+
var this_0 = this.y96_1;
|
|
53716
53763
|
var value = this_0.b2(key);
|
|
53717
53764
|
var tmp;
|
|
53718
53765
|
if (value == null) {
|
|
@@ -53725,26 +53772,26 @@
|
|
|
53725
53772
|
var logger = tmp;
|
|
53726
53773
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
53727
53774
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
53728
|
-
var this_1 = logger.
|
|
53775
|
+
var this_1 = logger.z96_1;
|
|
53729
53776
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
53730
53777
|
return new FileLoggerOutputImpl$observe$$inlined$filter$1(this_1, types);
|
|
53731
53778
|
};
|
|
53732
|
-
protoOf(FileLoggerOutputImpl).
|
|
53779
|
+
protoOf(FileLoggerOutputImpl).d8y = function (key) {
|
|
53733
53780
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
53734
|
-
this.
|
|
53735
|
-
var tmp0_safe_receiver = this.
|
|
53781
|
+
this.x96_1;
|
|
53782
|
+
var tmp0_safe_receiver = this.y96_1.b2(key);
|
|
53736
53783
|
if (tmp0_safe_receiver == null)
|
|
53737
53784
|
null;
|
|
53738
53785
|
else {
|
|
53739
|
-
tmp0_safe_receiver.
|
|
53786
|
+
tmp0_safe_receiver.c97();
|
|
53740
53787
|
}
|
|
53741
|
-
this.
|
|
53788
|
+
this.y96_1.f2(key);
|
|
53742
53789
|
};
|
|
53743
|
-
protoOf(FileLoggerOutputImpl).
|
|
53790
|
+
protoOf(FileLoggerOutputImpl).c8y = function (key, job, controller) {
|
|
53744
53791
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
53745
|
-
this.
|
|
53792
|
+
this.x96_1;
|
|
53746
53793
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
53747
|
-
var this_0 = this.
|
|
53794
|
+
var this_0 = this.y96_1;
|
|
53748
53795
|
var value = this_0.b2(key);
|
|
53749
53796
|
var tmp;
|
|
53750
53797
|
if (value == null) {
|
|
@@ -53754,30 +53801,30 @@
|
|
|
53754
53801
|
} else {
|
|
53755
53802
|
tmp = value;
|
|
53756
53803
|
}
|
|
53757
|
-
var updatedModel = tmp.
|
|
53804
|
+
var updatedModel = tmp.e97(VOID, controller, job);
|
|
53758
53805
|
// Inline function 'kotlin.collections.set' call
|
|
53759
|
-
this.
|
|
53806
|
+
this.y96_1.e2(key, updatedModel);
|
|
53760
53807
|
};
|
|
53761
53808
|
protoOf(FileLoggerOutputImpl).h2 = function () {
|
|
53762
53809
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
53763
|
-
this.
|
|
53810
|
+
this.x96_1;
|
|
53764
53811
|
// Inline function 'kotlin.collections.forEach' call
|
|
53765
53812
|
// Inline function 'kotlin.collections.iterator' call
|
|
53766
|
-
var _iterator__ex2g4s = this.
|
|
53813
|
+
var _iterator__ex2g4s = this.y96_1.u().l();
|
|
53767
53814
|
while (_iterator__ex2g4s.m()) {
|
|
53768
53815
|
var element = _iterator__ex2g4s.n();
|
|
53769
|
-
element.w().
|
|
53816
|
+
element.w().c97();
|
|
53770
53817
|
}
|
|
53771
|
-
this.
|
|
53818
|
+
this.y96_1.h2();
|
|
53772
53819
|
};
|
|
53773
53820
|
protoOf(FileLoggerOutputImpl).x1k = function (tag, message, payload) {
|
|
53774
|
-
if (!this.
|
|
53821
|
+
if (!this.w96_1)
|
|
53775
53822
|
return Unit_instance;
|
|
53776
53823
|
var tmp0_type = LogType_DEBUG_getInstance();
|
|
53777
53824
|
log$default(this, tmp0_type, tag, message, payload);
|
|
53778
53825
|
};
|
|
53779
53826
|
protoOf(FileLoggerOutputImpl).y1k = function (tag, message, exception, payload) {
|
|
53780
|
-
if (!this.
|
|
53827
|
+
if (!this.w96_1)
|
|
53781
53828
|
return Unit_instance;
|
|
53782
53829
|
var tmp4_type = LogType_ERROR_getInstance();
|
|
53783
53830
|
var tmp;
|
|
@@ -53792,13 +53839,13 @@
|
|
|
53792
53839
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
53793
53840
|
};
|
|
53794
53841
|
protoOf(FileLoggerOutputImpl).b1l = function (tag, message, payload) {
|
|
53795
|
-
if (!this.
|
|
53842
|
+
if (!this.w96_1)
|
|
53796
53843
|
return Unit_instance;
|
|
53797
53844
|
var tmp0_type = LogType_INFO_getInstance();
|
|
53798
53845
|
log(this, tmp0_type, tag, message, payload, null);
|
|
53799
53846
|
};
|
|
53800
53847
|
protoOf(FileLoggerOutputImpl).a1l = function (tag, message, exception, payload) {
|
|
53801
|
-
if (!this.
|
|
53848
|
+
if (!this.w96_1)
|
|
53802
53849
|
return Unit_instance;
|
|
53803
53850
|
var tmp4_type = LogType_VERBOSE_getInstance();
|
|
53804
53851
|
var tmp;
|
|
@@ -53813,7 +53860,7 @@
|
|
|
53813
53860
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
53814
53861
|
};
|
|
53815
53862
|
protoOf(FileLoggerOutputImpl).z1k = function (tag, message, exception, payload) {
|
|
53816
|
-
if (!this.
|
|
53863
|
+
if (!this.w96_1)
|
|
53817
53864
|
return Unit_instance;
|
|
53818
53865
|
var tmp4_type = LogType_WARN_getInstance();
|
|
53819
53866
|
var tmp1_elvis_lhs = exception == null ? null : exception.message;
|
|
@@ -54353,9 +54400,9 @@
|
|
|
54353
54400
|
}
|
|
54354
54401
|
}
|
|
54355
54402
|
function GameHelperImpl(logger) {
|
|
54356
|
-
this.
|
|
54403
|
+
this.m97_1 = logger;
|
|
54357
54404
|
}
|
|
54358
|
-
protoOf(GameHelperImpl).
|
|
54405
|
+
protoOf(GameHelperImpl).j97 = function (store, playerIds, includeBots) {
|
|
54359
54406
|
var state = store.state;
|
|
54360
54407
|
var tmp;
|
|
54361
54408
|
if (!state.k6i()) {
|
|
@@ -54401,7 +54448,7 @@
|
|
|
54401
54448
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
54402
54449
|
return copyToArray(destination_1);
|
|
54403
54450
|
};
|
|
54404
|
-
protoOf(GameHelperImpl).
|
|
54451
|
+
protoOf(GameHelperImpl).k97 = function (store, playerIds, includeBots) {
|
|
54405
54452
|
var state = store.state;
|
|
54406
54453
|
var tmp;
|
|
54407
54454
|
if (!state.k6i()) {
|
|
@@ -54572,10 +54619,10 @@
|
|
|
54572
54619
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
54573
54620
|
return copyToArray(destination);
|
|
54574
54621
|
};
|
|
54575
|
-
protoOf(GameHelperImpl).
|
|
54622
|
+
protoOf(GameHelperImpl).l97 = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
|
|
54576
54623
|
var roomMode = mapToRoomMode(mode);
|
|
54577
54624
|
var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
|
|
54578
|
-
this.
|
|
54625
|
+
this.m97_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
|
|
54579
54626
|
var options = Companion_instance_155.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
|
|
54580
54627
|
var playersMode = this.mapPlayers(players);
|
|
54581
54628
|
var pointsMode = this.mapPoints(points);
|
|
@@ -55010,40 +55057,40 @@
|
|
|
55010
55057
|
function getRandomAvatarData_0($this) {
|
|
55011
55058
|
var avatarSetNumber = Default_getInstance().ng(get_entries_6().o());
|
|
55012
55059
|
var avatarSet = get_entries_6().p(avatarSetNumber);
|
|
55013
|
-
return new AvatarData(Default_getInstance().ng(avatarSet.
|
|
55060
|
+
return new AvatarData(Default_getInstance().ng(avatarSet.q97()), avatarSet);
|
|
55014
55061
|
}
|
|
55015
55062
|
function getAvatarUrlByIndex($this, data) {
|
|
55016
55063
|
return mapToPattern($this, data);
|
|
55017
55064
|
}
|
|
55018
55065
|
function getNicknameByIndex($this, data) {
|
|
55019
|
-
return data.
|
|
55066
|
+
return data.s97_1.t97(data.r97_1);
|
|
55020
55067
|
}
|
|
55021
55068
|
function mapToPattern($this, data) {
|
|
55022
|
-
return 'debertz://raspberry.games/' + data.
|
|
55069
|
+
return 'debertz://raspberry.games/' + data.s97_1.p2_1 + '/' + data.r97_1;
|
|
55023
55070
|
}
|
|
55024
55071
|
function Companion_167() {
|
|
55025
55072
|
Companion_instance_172 = this;
|
|
55026
|
-
this.
|
|
55073
|
+
this.u97_1 = 'debertz://raspberry.games';
|
|
55027
55074
|
var tmp = this;
|
|
55028
55075
|
// Inline function 'kotlin.arrayOf' call
|
|
55029
55076
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
55030
55077
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55031
|
-
tmp.
|
|
55078
|
+
tmp.v97_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
55032
55079
|
var tmp_0 = this;
|
|
55033
55080
|
// Inline function 'kotlin.arrayOf' call
|
|
55034
55081
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
55035
55082
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55036
|
-
tmp_0.
|
|
55083
|
+
tmp_0.w97_1 = ['\u0422\u0430\u043D\u044F', 'TheBest', '\u0425\u0430\u0440\u043A\u0456\u0432\u041C\u0456\u0441\u0442\u043E\u0413\u0435\u0440\u043E\u0439', '\u0412\u0430\u043B\u044F', '\u041C\u0430\u0440\u0433\u0430\u0440\u0438\u0442\u0430', 'Dasha', '\u0410\u0440\u0442\u0435\u043C', '\u041F\u0435\u0442\u0440\u043E\u0432\u0438\u0447', '\u041A\u0440\u0438\u0441', '\u041C\u0430\u0440\u0456\u0430\u043D\u0430', '\u0421\u0430\u043B\u0442\u0456\u0432\u043A\u0430', '\u042F\u043D\u0430', 'Alex', '\u041E\u0434\u0435\u0441\u0441\u0430\u041C\u0430\u043C\u0430', 'Vika', '\u0421\u0432\u0456\u0442\u043B\u0430\u043D\u0430'];
|
|
55037
55084
|
var tmp_1 = this;
|
|
55038
55085
|
// Inline function 'kotlin.arrayOf' call
|
|
55039
55086
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
55040
55087
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55041
|
-
tmp_1.
|
|
55088
|
+
tmp_1.x97_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
55042
55089
|
var tmp_2 = this;
|
|
55043
55090
|
// Inline function 'kotlin.arrayOf' call
|
|
55044
55091
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
55045
55092
|
// Inline function 'kotlin.js.asDynamic' call
|
|
55046
|
-
tmp_2.
|
|
55093
|
+
tmp_2.y97_1 = ['\u0423\u0441\u0456\u043C\u0414\u043E\u0431\u0440\u0430', '\u0410\u043B\u0435\u043A\u0441', 'MOLOTOK', '\u041B\u042F\u041B\u042F', '\u0406\u0412\u0410\u041D', '\u041C\u0438\u043A\u0438\u0442\u0430', '\u0410\u043B\u0456\u0441\u0430', '\u041C\u0430\u043A\u0441\u0438\u043C', '\u0421\u043E\u043B\u043E\u043C\u0456\u044F', '\u0414\u0436\u0435\u0432\u0435\u043B\u0456\u043D\u0430', '\u041A\u0441\u044E\u0445\u0430', '\u0422\u0410\u0420\u0410\u0421', '\u041E\u043B\u044F', '\u0414\u043E\u0420\u043E\u0431\u043E\u0442\u0438', '\u0421\u043B\u0430\u0432\u0430\u0417\u0421\u0423!', '\u0426\u0430\u0440\u044C\u0414\u0435\u0431\u0430'];
|
|
55047
55094
|
}
|
|
55048
55095
|
var Companion_instance_172;
|
|
55049
55096
|
function Companion_getInstance_174() {
|
|
@@ -55054,14 +55101,14 @@
|
|
|
55054
55101
|
function AvatarSet(name, ordinal) {
|
|
55055
55102
|
Enum.call(this, name, ordinal);
|
|
55056
55103
|
}
|
|
55057
|
-
protoOf(AvatarSet).
|
|
55104
|
+
protoOf(AvatarSet).q97 = function () {
|
|
55058
55105
|
var tmp;
|
|
55059
55106
|
switch (this.p2_1) {
|
|
55060
55107
|
case 0:
|
|
55061
|
-
tmp = Companion_getInstance_174().
|
|
55108
|
+
tmp = Companion_getInstance_174().w97_1.length;
|
|
55062
55109
|
break;
|
|
55063
55110
|
case 1:
|
|
55064
|
-
tmp = Companion_getInstance_174().
|
|
55111
|
+
tmp = Companion_getInstance_174().y97_1.length;
|
|
55065
55112
|
break;
|
|
55066
55113
|
default:
|
|
55067
55114
|
noWhenBranchMatchedException();
|
|
@@ -55069,14 +55116,14 @@
|
|
|
55069
55116
|
}
|
|
55070
55117
|
return tmp;
|
|
55071
55118
|
};
|
|
55072
|
-
protoOf(AvatarSet).
|
|
55119
|
+
protoOf(AvatarSet).t97 = function (index) {
|
|
55073
55120
|
var tmp;
|
|
55074
55121
|
switch (this.p2_1) {
|
|
55075
55122
|
case 0:
|
|
55076
|
-
tmp = Companion_getInstance_174().
|
|
55123
|
+
tmp = Companion_getInstance_174().w97_1[index];
|
|
55077
55124
|
break;
|
|
55078
55125
|
case 1:
|
|
55079
|
-
tmp = Companion_getInstance_174().
|
|
55126
|
+
tmp = Companion_getInstance_174().y97_1[index];
|
|
55080
55127
|
break;
|
|
55081
55128
|
default:
|
|
55082
55129
|
noWhenBranchMatchedException();
|
|
@@ -55085,8 +55132,8 @@
|
|
|
55085
55132
|
return tmp;
|
|
55086
55133
|
};
|
|
55087
55134
|
function AvatarData(index, avatarSet) {
|
|
55088
|
-
this.
|
|
55089
|
-
this.
|
|
55135
|
+
this.r97_1 = index;
|
|
55136
|
+
this.s97_1 = avatarSet;
|
|
55090
55137
|
}
|
|
55091
55138
|
function AvatarSet_ORIGIN_getInstance() {
|
|
55092
55139
|
AvatarSet_initEntries();
|
|
@@ -55099,7 +55146,7 @@
|
|
|
55099
55146
|
function GameResourcesImpl() {
|
|
55100
55147
|
Companion_getInstance_174();
|
|
55101
55148
|
}
|
|
55102
|
-
protoOf(GameResourcesImpl).
|
|
55149
|
+
protoOf(GameResourcesImpl).n97 = function (playerId, existingNicknames) {
|
|
55103
55150
|
return createUser(this, playerId, existingNicknames);
|
|
55104
55151
|
};
|
|
55105
55152
|
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
@@ -55140,45 +55187,45 @@
|
|
|
55140
55187
|
}
|
|
55141
55188
|
var WARN;
|
|
55142
55189
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
55143
|
-
this.
|
|
55190
|
+
this.z97_1 = loggerCallback;
|
|
55144
55191
|
}
|
|
55145
55192
|
protoOf(LoggerCallbacksWrapperLoggerOutput).x1k = function (tag, message, payload) {
|
|
55146
|
-
this.
|
|
55193
|
+
this.z97_1('debug', tag, message, null, payload);
|
|
55147
55194
|
};
|
|
55148
55195
|
protoOf(LoggerCallbacksWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
|
|
55149
|
-
this.
|
|
55196
|
+
this.z97_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
55150
55197
|
};
|
|
55151
55198
|
protoOf(LoggerCallbacksWrapperLoggerOutput).b1l = function (tag, message, payload) {
|
|
55152
|
-
this.
|
|
55199
|
+
this.z97_1('debug', tag, message, null, payload);
|
|
55153
55200
|
};
|
|
55154
55201
|
protoOf(LoggerCallbacksWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
|
|
55155
|
-
this.
|
|
55202
|
+
this.z97_1('debug', tag, generateMsg(message, exception), exception, payload);
|
|
55156
55203
|
};
|
|
55157
55204
|
protoOf(LoggerCallbacksWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
|
|
55158
|
-
this.
|
|
55205
|
+
this.z97_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
55159
55206
|
};
|
|
55160
55207
|
function ParserHelper() {
|
|
55161
55208
|
}
|
|
55162
55209
|
function ParserHelperImpl(json, encoderDecoderProvider) {
|
|
55163
|
-
this.
|
|
55164
|
-
this.
|
|
55210
|
+
this.a98_1 = json;
|
|
55211
|
+
this.b98_1 = encoderDecoderProvider;
|
|
55165
55212
|
}
|
|
55166
55213
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
55167
|
-
return this.
|
|
55214
|
+
return this.b98_1.j8e(mapToDto_20(action));
|
|
55168
55215
|
};
|
|
55169
55216
|
protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
|
|
55170
|
-
return mapFromDto_16(this.
|
|
55217
|
+
return mapFromDto_16(this.b98_1.m8e(json), fromPlayerId);
|
|
55171
55218
|
};
|
|
55172
55219
|
protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
|
|
55173
|
-
return this.
|
|
55220
|
+
return this.b98_1.k8e(mapToDto_74(action));
|
|
55174
55221
|
};
|
|
55175
55222
|
protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
|
|
55176
55223
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
55177
|
-
var this_0 = mapFromClientDtoListWithPayload(this.
|
|
55224
|
+
var this_0 = mapFromClientDtoListWithPayload(this.b98_1.n8e(json), playerId, engine);
|
|
55178
55225
|
return copyToArray(this_0);
|
|
55179
55226
|
};
|
|
55180
55227
|
protoOf(ParserHelperImpl).encodeGameRound = function (round) {
|
|
55181
|
-
var tmp0 = this.
|
|
55228
|
+
var tmp0 = this.a98_1;
|
|
55182
55229
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
55183
55230
|
var value = mapToDto_31(round);
|
|
55184
55231
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -55189,7 +55236,7 @@
|
|
|
55189
55236
|
return tmp0.ep(tmp$ret$1, value);
|
|
55190
55237
|
};
|
|
55191
55238
|
protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
|
|
55192
|
-
var tmp0 = this.
|
|
55239
|
+
var tmp0 = this.a98_1;
|
|
55193
55240
|
// Inline function 'kotlin.collections.map' call
|
|
55194
55241
|
var this_0 = round.items;
|
|
55195
55242
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -55211,7 +55258,7 @@
|
|
|
55211
55258
|
return tmp0.ep(tmp$ret$4, destination);
|
|
55212
55259
|
};
|
|
55213
55260
|
protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
|
|
55214
|
-
var tmp0 = this.
|
|
55261
|
+
var tmp0 = this.a98_1;
|
|
55215
55262
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
55216
55263
|
var value = mapToDto_33(metadata);
|
|
55217
55264
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -55222,7 +55269,7 @@
|
|
|
55222
55269
|
return tmp0.ep(tmp$ret$1, value);
|
|
55223
55270
|
};
|
|
55224
55271
|
protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
|
|
55225
|
-
var tmp0 = this.
|
|
55272
|
+
var tmp0 = this.a98_1;
|
|
55226
55273
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
55227
55274
|
var value = mapToDto_59(config);
|
|
55228
55275
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -55233,7 +55280,7 @@
|
|
|
55233
55280
|
return tmp0.ep(tmp$ret$1, value);
|
|
55234
55281
|
};
|
|
55235
55282
|
protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
|
|
55236
|
-
var tmp0 = this.
|
|
55283
|
+
var tmp0 = this.a98_1;
|
|
55237
55284
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
55238
55285
|
var value = mapToDto_95(transition);
|
|
55239
55286
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -55245,7 +55292,7 @@
|
|
|
55245
55292
|
};
|
|
55246
55293
|
protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
|
|
55247
55294
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
55248
|
-
var this_0 = this.
|
|
55295
|
+
var this_0 = this.a98_1;
|
|
55249
55296
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
55250
55297
|
var this_1 = this_0.ds();
|
|
55251
55298
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -55256,7 +55303,7 @@
|
|
|
55256
55303
|
};
|
|
55257
55304
|
protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
|
|
55258
55305
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
55259
|
-
var this_0 = this.
|
|
55306
|
+
var this_0 = this.a98_1;
|
|
55260
55307
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
55261
55308
|
var this_1 = this_0.ds();
|
|
55262
55309
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -55266,7 +55313,7 @@
|
|
|
55266
55313
|
return mapFromDto_97(tmp$ret$2);
|
|
55267
55314
|
};
|
|
55268
55315
|
protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
|
|
55269
|
-
var tmp0 = this.
|
|
55316
|
+
var tmp0 = this.a98_1;
|
|
55270
55317
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
55271
55318
|
var value = mapToDto_126(table);
|
|
55272
55319
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -55277,11 +55324,11 @@
|
|
|
55277
55324
|
return tmp0.ep(tmp$ret$1, value);
|
|
55278
55325
|
};
|
|
55279
55326
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
55280
|
-
return mapFromDto_63(this.
|
|
55327
|
+
return mapFromDto_63(this.b98_1.l8e(json));
|
|
55281
55328
|
};
|
|
55282
55329
|
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
55283
55330
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
55284
|
-
var this_0 = this.
|
|
55331
|
+
var this_0 = this.a98_1;
|
|
55285
55332
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
55286
55333
|
var this_1 = this_0.ds();
|
|
55287
55334
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -55294,16 +55341,16 @@
|
|
|
55294
55341
|
function RatingHelper() {
|
|
55295
55342
|
}
|
|
55296
55343
|
function RatingHelperImpl(userRatingInteractor) {
|
|
55297
|
-
this.
|
|
55344
|
+
this.c98_1 = userRatingInteractor;
|
|
55298
55345
|
}
|
|
55299
55346
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
55300
|
-
return this.
|
|
55347
|
+
return this.c98_1.p8l(league, rating);
|
|
55301
55348
|
};
|
|
55302
55349
|
protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
|
|
55303
|
-
return this.
|
|
55350
|
+
return this.c98_1.r8l(rating);
|
|
55304
55351
|
};
|
|
55305
55352
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
55306
|
-
return this.
|
|
55353
|
+
return this.c98_1.q8l();
|
|
55307
55354
|
};
|
|
55308
55355
|
function engineHelpersModule() {
|
|
55309
55356
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
@@ -55408,14 +55455,14 @@
|
|
|
55408
55455
|
return new GameResourcesImpl();
|
|
55409
55456
|
}
|
|
55410
55457
|
function _get_logger__rkp4sl_3($this) {
|
|
55411
|
-
var tmp0 = $this.
|
|
55458
|
+
var tmp0 = $this.e98_1;
|
|
55412
55459
|
var tmp = KProperty1;
|
|
55413
55460
|
// Inline function 'kotlin.getValue' call
|
|
55414
55461
|
getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
|
|
55415
55462
|
return tmp0.w();
|
|
55416
55463
|
}
|
|
55417
55464
|
function _get_di__ndbzja($this) {
|
|
55418
|
-
var tmp0 = $this.
|
|
55465
|
+
var tmp0 = $this.f98_1;
|
|
55419
55466
|
var tmp = KProperty1;
|
|
55420
55467
|
// Inline function 'kotlin.getValue' call
|
|
55421
55468
|
getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
|
|
@@ -55424,11 +55471,11 @@
|
|
|
55424
55471
|
function EngineHelpersFactory$logger$delegate$lambda(this$0) {
|
|
55425
55472
|
return function () {
|
|
55426
55473
|
var tmp;
|
|
55427
|
-
if (this$0.
|
|
55474
|
+
if (this$0.d98_1 == null) {
|
|
55428
55475
|
tmp = null;
|
|
55429
55476
|
} else {
|
|
55430
55477
|
// Inline function 'kotlin.let' call
|
|
55431
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
55478
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.d98_1)]));
|
|
55432
55479
|
}
|
|
55433
55480
|
var tmp1_elvis_lhs = tmp;
|
|
55434
55481
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -55518,11 +55565,11 @@
|
|
|
55518
55565
|
}
|
|
55519
55566
|
function EngineHelpersFactory(loggerCallback) {
|
|
55520
55567
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
55521
|
-
this.
|
|
55568
|
+
this.d98_1 = loggerCallback;
|
|
55522
55569
|
var tmp = this;
|
|
55523
|
-
tmp.
|
|
55570
|
+
tmp.e98_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
|
|
55524
55571
|
var tmp_0 = this;
|
|
55525
|
-
tmp_0.
|
|
55572
|
+
tmp_0.f98_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
|
|
55526
55573
|
var tmp_1 = this;
|
|
55527
55574
|
// Inline function 'org.kodein.di.instance' call
|
|
55528
55575
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -55531,7 +55578,7 @@
|
|
|
55531
55578
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
55532
55579
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
55533
55580
|
var tmp_4 = KProperty1;
|
|
55534
|
-
tmp_1.
|
|
55581
|
+
tmp_1.g98_1 = tmp_3.a63(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
|
|
55535
55582
|
var tmp_5 = this;
|
|
55536
55583
|
// Inline function 'org.kodein.di.instance' call
|
|
55537
55584
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -55540,7 +55587,7 @@
|
|
|
55540
55587
|
var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
55541
55588
|
var tmp_7 = Instance(this_1, tmp$ret$2, null);
|
|
55542
55589
|
var tmp_8 = KProperty1;
|
|
55543
|
-
tmp_5.
|
|
55590
|
+
tmp_5.h98_1 = tmp_7.a63(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
|
|
55544
55591
|
var tmp_9 = this;
|
|
55545
55592
|
// Inline function 'org.kodein.di.instance' call
|
|
55546
55593
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -55549,7 +55596,7 @@
|
|
|
55549
55596
|
var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
55550
55597
|
var tmp_11 = Instance(this_2, tmp$ret$4, null);
|
|
55551
55598
|
var tmp_12 = KProperty1;
|
|
55552
|
-
tmp_9.
|
|
55599
|
+
tmp_9.i98_1 = tmp_11.a63(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
|
|
55553
55600
|
var tmp_13 = this;
|
|
55554
55601
|
// Inline function 'org.kodein.di.instance' call
|
|
55555
55602
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -55558,31 +55605,31 @@
|
|
|
55558
55605
|
var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
55559
55606
|
var tmp_15 = Instance(this_3, tmp$ret$6, null);
|
|
55560
55607
|
var tmp_16 = KProperty1;
|
|
55561
|
-
tmp_13.
|
|
55608
|
+
tmp_13.j98_1 = tmp_15.a63(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
|
|
55562
55609
|
}
|
|
55563
|
-
protoOf(EngineHelpersFactory).
|
|
55564
|
-
var tmp0 = this.
|
|
55610
|
+
protoOf(EngineHelpersFactory).k98 = function () {
|
|
55611
|
+
var tmp0 = this.g98_1;
|
|
55565
55612
|
var tmp = KProperty1;
|
|
55566
55613
|
// Inline function 'kotlin.getValue' call
|
|
55567
55614
|
getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
|
|
55568
55615
|
return tmp0.w();
|
|
55569
55616
|
};
|
|
55570
|
-
protoOf(EngineHelpersFactory).
|
|
55571
|
-
var tmp0 = this.
|
|
55617
|
+
protoOf(EngineHelpersFactory).l98 = function () {
|
|
55618
|
+
var tmp0 = this.h98_1;
|
|
55572
55619
|
var tmp = KProperty1;
|
|
55573
55620
|
// Inline function 'kotlin.getValue' call
|
|
55574
55621
|
getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
|
|
55575
55622
|
return tmp0.w();
|
|
55576
55623
|
};
|
|
55577
|
-
protoOf(EngineHelpersFactory).
|
|
55578
|
-
var tmp0 = this.
|
|
55624
|
+
protoOf(EngineHelpersFactory).m98 = function () {
|
|
55625
|
+
var tmp0 = this.i98_1;
|
|
55579
55626
|
var tmp = KProperty1;
|
|
55580
55627
|
// Inline function 'kotlin.getValue' call
|
|
55581
55628
|
getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
|
|
55582
55629
|
return tmp0.w();
|
|
55583
55630
|
};
|
|
55584
|
-
protoOf(EngineHelpersFactory).
|
|
55585
|
-
var tmp0 = this.
|
|
55631
|
+
protoOf(EngineHelpersFactory).n98 = function () {
|
|
55632
|
+
var tmp0 = this.j98_1;
|
|
55586
55633
|
var tmp = KProperty1;
|
|
55587
55634
|
// Inline function 'kotlin.getValue' call
|
|
55588
55635
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
@@ -56228,7 +56275,7 @@
|
|
|
56228
56275
|
protoOf(CallbackWrapperLoggerOutput).i = i;
|
|
56229
56276
|
protoOf(CallbackWrapperLoggerOutput).v = v;
|
|
56230
56277
|
protoOf(CallbackWrapperLoggerOutput).w = w;
|
|
56231
|
-
protoOf(FileLoggerOutputImpl).
|
|
56278
|
+
protoOf(FileLoggerOutputImpl).v8z = observe$default;
|
|
56232
56279
|
protoOf(FileLoggerOutputImpl).d = d;
|
|
56233
56280
|
protoOf(FileLoggerOutputImpl).e = e;
|
|
56234
56281
|
protoOf(FileLoggerOutputImpl).i = i;
|
|
@@ -56248,10 +56295,10 @@
|
|
|
56248
56295
|
protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
|
|
56249
56296
|
protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
|
|
56250
56297
|
protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
|
|
56251
|
-
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).
|
|
56252
|
-
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).
|
|
56253
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).
|
|
56254
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).
|
|
56298
|
+
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).k98);
|
|
56299
|
+
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).l98);
|
|
56300
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).m98);
|
|
56301
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).n98);
|
|
56255
56302
|
//endregion
|
|
56256
56303
|
//region block: init
|
|
56257
56304
|
Companion_instance_5 = new Companion_0();
|