client_plugin_logic_deb 1.8.379 → 1.8.380
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/Kotlin-DateTime-library-kotlinx-datetime.js +1 -1
- package/Logic_Debertz-client_plugin.d.ts +14 -8
- package/Logic_Debertz-client_plugin.js +1979 -1979
- package/Logic_Debertz-core.js +1 -1
- package/Logic_Debertz-engine.js +549 -548
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +5710 -5710
- package/Logic_Debertz-game_server.js +832 -749
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +1 -1
- package/package.json +1 -1
package/Logic_Debertz-engine.js
CHANGED
|
@@ -1386,21 +1386,21 @@
|
|
|
1386
1386
|
tmp = types;
|
|
1387
1387
|
}
|
|
1388
1388
|
types = tmp;
|
|
1389
|
-
return $super === VOID ? this.
|
|
1389
|
+
return $super === VOID ? this.s9v(loggerKey, types) : $super.s9v.call(this, loggerKey, types);
|
|
1390
1390
|
}
|
|
1391
1391
|
initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
|
|
1392
1392
|
initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', FileLoggerOutputImpl, VOID, [FileLoggerOutput]);
|
|
1393
1393
|
function filterLivePlayers(store, playerIds, includeBots, $super) {
|
|
1394
1394
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1395
|
-
return $super === VOID ? this.
|
|
1395
|
+
return $super === VOID ? this.t9v(store, playerIds, includeBots) : $super.t9v.call(this, store, playerIds, includeBots);
|
|
1396
1396
|
}
|
|
1397
1397
|
function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
|
|
1398
1398
|
includeBots = includeBots === VOID ? false : includeBots;
|
|
1399
|
-
return $super === VOID ? this.
|
|
1399
|
+
return $super === VOID ? this.u9v(store, playerIds, includeBots) : $super.u9v.call(this, store, playerIds, includeBots);
|
|
1400
1400
|
}
|
|
1401
1401
|
function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
|
|
1402
1402
|
league = league === VOID ? null : league;
|
|
1403
|
-
return $super === VOID ? this.
|
|
1403
|
+
return $super === VOID ? this.v9v(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.v9v.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
|
|
1404
1404
|
}
|
|
1405
1405
|
initMetadataForInterface(GameHelper, 'GameHelper');
|
|
1406
1406
|
initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
|
|
@@ -1413,7 +1413,7 @@
|
|
|
1413
1413
|
tmp = existingNicknames;
|
|
1414
1414
|
}
|
|
1415
1415
|
existingNicknames = tmp;
|
|
1416
|
-
return $super === VOID ? this.
|
|
1416
|
+
return $super === VOID ? this.x9v(playerId, existingNicknames) : $super.x9v.call(this, playerId, existingNicknames);
|
|
1417
1417
|
}
|
|
1418
1418
|
initMetadataForInterface(GameResources, 'GameResources');
|
|
1419
1419
|
initMetadataForCompanion(Companion_196);
|
|
@@ -2394,7 +2394,7 @@
|
|
|
2394
2394
|
ffaMovEnabled = ffaMovEnabled === VOID ? true : ffaMovEnabled;
|
|
2395
2395
|
botNativeUpdatesRating = botNativeUpdatesRating === VOID ? true : botNativeUpdatesRating;
|
|
2396
2396
|
replacementForcedDecrease = replacementForcedDecrease === VOID ? true : replacementForcedDecrease;
|
|
2397
|
-
ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction === VOID ?
|
|
2397
|
+
ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction === VOID ? 0.8 : ffaMaxRatingDecreaseFraction;
|
|
2398
2398
|
this.defaultFactor = defaultFactor;
|
|
2399
2399
|
this.eloScaleH2H = eloScaleH2H;
|
|
2400
2400
|
this.eloScaleFfa = eloScaleFfa;
|
|
@@ -56180,18 +56180,19 @@
|
|
|
56180
56180
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
|
|
56181
56181
|
return hashCode(this.a3());
|
|
56182
56182
|
};
|
|
56183
|
-
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation) {
|
|
56183
|
+
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, $loggerKey, resultContinuation) {
|
|
56184
56184
|
this.g9m_1 = $controller;
|
|
56185
|
+
this.h9m_1 = $loggerKey;
|
|
56185
56186
|
CoroutineImpl.call(this, resultContinuation);
|
|
56186
56187
|
}
|
|
56187
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
56188
|
-
var tmp = this.
|
|
56188
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).j9m = function (it, $completion) {
|
|
56189
|
+
var tmp = this.k9m(it, $completion);
|
|
56189
56190
|
tmp.t8_1 = Unit_instance;
|
|
56190
56191
|
tmp.u8_1 = null;
|
|
56191
56192
|
return tmp.z8();
|
|
56192
56193
|
};
|
|
56193
56194
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).h9 = function (p1, $completion) {
|
|
56194
|
-
return this.
|
|
56195
|
+
return this.j9m(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
|
|
56195
56196
|
};
|
|
56196
56197
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).z8 = function () {
|
|
56197
56198
|
var suspendResult = this.t8_1;
|
|
@@ -56201,9 +56202,9 @@
|
|
|
56201
56202
|
switch (tmp) {
|
|
56202
56203
|
case 0:
|
|
56203
56204
|
this.s8_1 = 2;
|
|
56204
|
-
var log = this.
|
|
56205
|
+
var log = this.i9m_1.toMessageLog();
|
|
56205
56206
|
this.r8_1 = 1;
|
|
56206
|
-
suspendResult = this.g9m_1.i6n(log, this);
|
|
56207
|
+
suspendResult = this.g9m_1.i6n('key:' + this.h9m_1.i6t() + ' ' + log, this);
|
|
56207
56208
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
56208
56209
|
return suspendResult;
|
|
56209
56210
|
}
|
|
@@ -56225,23 +56226,23 @@
|
|
|
56225
56226
|
}
|
|
56226
56227
|
while (true);
|
|
56227
56228
|
};
|
|
56228
|
-
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).
|
|
56229
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.g9m_1, completion);
|
|
56230
|
-
i.
|
|
56229
|
+
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).k9m = function (it, completion) {
|
|
56230
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.g9m_1, this.h9m_1, completion);
|
|
56231
|
+
i.i9m_1 = it;
|
|
56231
56232
|
return i;
|
|
56232
56233
|
};
|
|
56233
|
-
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, resultContinuation) {
|
|
56234
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation);
|
|
56234
|
+
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, $loggerKey, resultContinuation) {
|
|
56235
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, $loggerKey, resultContinuation);
|
|
56235
56236
|
var l = function (it, $completion) {
|
|
56236
|
-
return i.
|
|
56237
|
+
return i.j9m(it, $completion);
|
|
56237
56238
|
};
|
|
56238
56239
|
l.$arity = 1;
|
|
56239
56240
|
return l;
|
|
56240
56241
|
}
|
|
56241
56242
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1($controller, $$loggerOutput, $loggerKey, resultContinuation) {
|
|
56242
|
-
this.
|
|
56243
|
-
this.
|
|
56244
|
-
this.
|
|
56243
|
+
this.t9m_1 = $controller;
|
|
56244
|
+
this.u9m_1 = $$loggerOutput;
|
|
56245
|
+
this.v9m_1 = $loggerKey;
|
|
56245
56246
|
CoroutineImpl.call(this, resultContinuation);
|
|
56246
56247
|
}
|
|
56247
56248
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).h29 = function ($this$launchDefault, $completion) {
|
|
@@ -56262,7 +56263,7 @@
|
|
|
56262
56263
|
case 0:
|
|
56263
56264
|
this.s8_1 = 3;
|
|
56264
56265
|
this.r8_1 = 1;
|
|
56265
|
-
suspendResult = this.
|
|
56266
|
+
suspendResult = this.t9m_1.h6n(this);
|
|
56266
56267
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
56267
56268
|
return suspendResult;
|
|
56268
56269
|
}
|
|
@@ -56270,8 +56271,8 @@
|
|
|
56270
56271
|
continue $sm;
|
|
56271
56272
|
case 1:
|
|
56272
56273
|
this.r8_1 = 2;
|
|
56273
|
-
var tmp_0 = this.
|
|
56274
|
-
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.
|
|
56274
|
+
var tmp_0 = this.u9m_1.x9m(this.v9m_1);
|
|
56275
|
+
var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.t9m_1, this.v9m_1, null);
|
|
56275
56276
|
suspendResult = tmp_0.d23(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
56276
56277
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
56277
56278
|
return suspendResult;
|
|
@@ -56295,8 +56296,8 @@
|
|
|
56295
56296
|
while (true);
|
|
56296
56297
|
};
|
|
56297
56298
|
protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).i29 = function ($this$launchDefault, completion) {
|
|
56298
|
-
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.
|
|
56299
|
-
i.
|
|
56299
|
+
var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.t9m_1, this.u9m_1, this.v9m_1, completion);
|
|
56300
|
+
i.w9m_1 = $this$launchDefault;
|
|
56300
56301
|
return i;
|
|
56301
56302
|
};
|
|
56302
56303
|
function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0($controller, $$loggerOutput, $loggerKey, resultContinuation) {
|
|
@@ -56415,20 +56416,20 @@
|
|
|
56415
56416
|
return null;
|
|
56416
56417
|
}
|
|
56417
56418
|
function sceneRouterMiddleware$$inlined$middlewareForActionType$1($engineLogicConfig, $logger, $sceneRouter, $idsProvider, $playerConnectionInteractor) {
|
|
56418
|
-
this.
|
|
56419
|
-
this.
|
|
56420
|
-
this.
|
|
56421
|
-
this.
|
|
56422
|
-
this.
|
|
56419
|
+
this.y9m_1 = $engineLogicConfig;
|
|
56420
|
+
this.z9m_1 = $logger;
|
|
56421
|
+
this.a9n_1 = $sceneRouter;
|
|
56422
|
+
this.b9n_1 = $idsProvider;
|
|
56423
|
+
this.c9n_1 = $playerConnectionInteractor;
|
|
56423
56424
|
}
|
|
56424
56425
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
56425
56426
|
return action instanceof MechanicAction;
|
|
56426
56427
|
};
|
|
56427
56428
|
protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).m6p = function (store, next, action) {
|
|
56428
56429
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
56429
|
-
if (this.
|
|
56430
|
+
if (this.y9m_1.validateIfMainThread) {
|
|
56430
56431
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
56431
|
-
var logger = this.
|
|
56432
|
+
var logger = this.z9m_1;
|
|
56432
56433
|
var tmp;
|
|
56433
56434
|
try {
|
|
56434
56435
|
assertIfMainThread('sceneRouterMiddleware is called from main thread for action = ' + toString(action_0));
|
|
@@ -56455,22 +56456,22 @@
|
|
|
56455
56456
|
if (equals(action_0.g89_1.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
56456
56457
|
tmp_2 = listOf(createHostDealerAct(action_0.j89_1));
|
|
56457
56458
|
} else {
|
|
56458
|
-
tmp_2 = listOf(new SceneStartedMechanicAction(this.
|
|
56459
|
+
tmp_2 = listOf(new SceneStartedMechanicAction(this.a9n_1.l9c(action_0.g89_1, true).y9c_1));
|
|
56459
56460
|
}
|
|
56460
56461
|
tmp_1 = tmp_2;
|
|
56461
56462
|
} else {
|
|
56462
56463
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
56463
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
56464
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.a9n_1.l9c(state.t6w().config, false).y9c_1));
|
|
56464
56465
|
} else {
|
|
56465
56466
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
56466
56467
|
var tmp1_config = state.t6w().config;
|
|
56467
|
-
tmp_1 = listOf(new SceneStartedMechanicAction(this.
|
|
56468
|
+
tmp_1 = listOf(new SceneStartedMechanicAction(this.a9n_1.m9c(tmp1_config, false, false).y9c_1));
|
|
56468
56469
|
} else {
|
|
56469
56470
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
56470
56471
|
tmp_1 = listOf(new SceneEndedMechanicAction(state.t6w().sceneInfo.p8c_1));
|
|
56471
56472
|
} else {
|
|
56472
56473
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
56473
|
-
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.t6w(), this.
|
|
56474
|
+
tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.t6w(), this.b9n_1, this.y9m_1, this.c9n_1, this.z9m_1));
|
|
56474
56475
|
} else {
|
|
56475
56476
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
56476
56477
|
var tmp_3;
|
|
@@ -56608,12 +56609,12 @@
|
|
|
56608
56609
|
}
|
|
56609
56610
|
function PlayerTurnTimerTag(playersIds, tag, afterReconnection) {
|
|
56610
56611
|
afterReconnection = afterReconnection === VOID ? false : afterReconnection;
|
|
56611
|
-
this.
|
|
56612
|
-
this.
|
|
56613
|
-
this.
|
|
56612
|
+
this.d9n_1 = playersIds;
|
|
56613
|
+
this.e9n_1 = tag;
|
|
56614
|
+
this.f9n_1 = afterReconnection;
|
|
56614
56615
|
}
|
|
56615
56616
|
protoOf(PlayerTurnTimerTag).f6d = function () {
|
|
56616
|
-
return single(this.
|
|
56617
|
+
return single(this.d9n_1);
|
|
56617
56618
|
};
|
|
56618
56619
|
protoOf(PlayerTurnTimerTag).equals = function (other) {
|
|
56619
56620
|
if (this === other)
|
|
@@ -56622,13 +56623,13 @@
|
|
|
56622
56623
|
return false;
|
|
56623
56624
|
if (!(other instanceof PlayerTurnTimerTag))
|
|
56624
56625
|
THROW_CCE();
|
|
56625
|
-
return equals(this.
|
|
56626
|
+
return equals(this.d9n_1, other.d9n_1);
|
|
56626
56627
|
};
|
|
56627
56628
|
protoOf(PlayerTurnTimerTag).hashCode = function () {
|
|
56628
|
-
return hashCode(this.
|
|
56629
|
+
return hashCode(this.d9n_1);
|
|
56629
56630
|
};
|
|
56630
56631
|
protoOf(PlayerTurnTimerTag).toString = function () {
|
|
56631
|
-
return 'PlayerTurnTimerTag(playersIds=' + toString(this.
|
|
56632
|
+
return 'PlayerTurnTimerTag(playersIds=' + toString(this.d9n_1) + ', tag=' + this.e9n_1 + ', afterReconnection=' + this.f9n_1 + ')';
|
|
56632
56633
|
};
|
|
56633
56634
|
function getInitialPlayerTurnTimerDelayMillis(player, config, isDelayForBot, random) {
|
|
56634
56635
|
isDelayForBot = isDelayForBot === VOID ? false : isDelayForBot;
|
|
@@ -56671,10 +56672,10 @@
|
|
|
56671
56672
|
return tmp;
|
|
56672
56673
|
}
|
|
56673
56674
|
function playerStartTimerMiddleware$$inlined$middlewareForActionType$1($isEnableTimerForPlayer, $playerTurnInteractor, $botConfig, $mergeTimers) {
|
|
56674
|
-
this.
|
|
56675
|
-
this.
|
|
56676
|
-
this.
|
|
56677
|
-
this.
|
|
56675
|
+
this.g9n_1 = $isEnableTimerForPlayer;
|
|
56676
|
+
this.h9n_1 = $playerTurnInteractor;
|
|
56677
|
+
this.i9n_1 = $botConfig;
|
|
56678
|
+
this.j9n_1 = $mergeTimers;
|
|
56678
56679
|
}
|
|
56679
56680
|
protoOf(playerStartTimerMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
56680
56681
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -56690,14 +56691,14 @@
|
|
|
56690
56691
|
var _iterator__ex2g4s = tmp0.l();
|
|
56691
56692
|
while (_iterator__ex2g4s.m()) {
|
|
56692
56693
|
var element = _iterator__ex2g4s.n();
|
|
56693
|
-
if (this.
|
|
56694
|
+
if (this.g9n_1(element)) {
|
|
56694
56695
|
destination.j(element);
|
|
56695
56696
|
}
|
|
56696
56697
|
}
|
|
56697
56698
|
var startTimerForPlayers = destination;
|
|
56698
56699
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
56699
56700
|
if (!startTimerForPlayers.q()) {
|
|
56700
|
-
var playerTurnModel = this.
|
|
56701
|
+
var playerTurnModel = this.h9n_1.m9a(action_0, table);
|
|
56701
56702
|
if (!(playerTurnModel == null)) {
|
|
56702
56703
|
// Inline function 'kotlin.collections.map' call
|
|
56703
56704
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -56705,11 +56706,11 @@
|
|
|
56705
56706
|
var _iterator__ex2g4s_0 = startTimerForPlayers.l();
|
|
56706
56707
|
while (_iterator__ex2g4s_0.m()) {
|
|
56707
56708
|
var item = _iterator__ex2g4s_0.n();
|
|
56708
|
-
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.
|
|
56709
|
+
var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.i9n_1.isDelayForBot, this.i9n_1.simulateBotThinkingDelay ? Default_getInstance() : null));
|
|
56709
56710
|
destination_0.j(tmp$ret$4);
|
|
56710
56711
|
}
|
|
56711
56712
|
var timeForPlayers = destination_0;
|
|
56712
|
-
if (this.
|
|
56713
|
+
if (this.j9n_1) {
|
|
56713
56714
|
// Inline function 'kotlin.collections.groupBy' call
|
|
56714
56715
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
56715
56716
|
var destination_1 = LinkedHashMap_init_$Create$();
|
|
@@ -56783,14 +56784,14 @@
|
|
|
56783
56784
|
return this.m6p(store, next, action);
|
|
56784
56785
|
};
|
|
56785
56786
|
function playerStopTimerMiddleware$$inlined$middlewareForActionType$1($isEnableBotForPlayer) {
|
|
56786
|
-
this.
|
|
56787
|
+
this.k9n_1 = $isEnableBotForPlayer;
|
|
56787
56788
|
}
|
|
56788
56789
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
56789
56790
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
56790
56791
|
};
|
|
56791
56792
|
protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).m6p = function (store, next, action) {
|
|
56792
56793
|
var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
56793
|
-
if (this.
|
|
56794
|
+
if (this.k9n_1(action_0.playerId)) {
|
|
56794
56795
|
var table = store.state.t6w();
|
|
56795
56796
|
var player = getPlayer(table.players, action_0.playerId);
|
|
56796
56797
|
// Inline function 'games.jass.logic.redux.AppState.findTimer' call
|
|
@@ -56811,7 +56812,7 @@
|
|
|
56811
56812
|
var _iterator__ex2g4s_0 = destination.l();
|
|
56812
56813
|
while (_iterator__ex2g4s_0.m()) {
|
|
56813
56814
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
56814
|
-
if (element_0.
|
|
56815
|
+
if (element_0.d9n_1.t1(action_0.playerId) && element_0.e9n_1 === player.u6z_1.x6f()) {
|
|
56815
56816
|
tmp$ret$3 = element_0;
|
|
56816
56817
|
break $l$block;
|
|
56817
56818
|
}
|
|
@@ -56833,8 +56834,8 @@
|
|
|
56833
56834
|
return new playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1(asyncProvider);
|
|
56834
56835
|
}
|
|
56835
56836
|
function playerTurnTimeoutMiddleware$o$handle$slambda($store, $timerTag, resultContinuation) {
|
|
56836
|
-
this.
|
|
56837
|
-
this.
|
|
56837
|
+
this.t9n_1 = $store;
|
|
56838
|
+
this.u9n_1 = $timerTag;
|
|
56838
56839
|
CoroutineImpl.call(this, resultContinuation);
|
|
56839
56840
|
}
|
|
56840
56841
|
protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).h29 = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -56853,7 +56854,7 @@
|
|
|
56853
56854
|
var tmp = this.r8_1;
|
|
56854
56855
|
if (tmp === 0) {
|
|
56855
56856
|
this.s8_1 = 1;
|
|
56856
|
-
this.
|
|
56857
|
+
this.t9n_1.dispatch(new AskBotAction(this.u9n_1.d9n_1, 'PlayerTurn'));
|
|
56857
56858
|
return Unit_instance;
|
|
56858
56859
|
} else if (tmp === 1) {
|
|
56859
56860
|
throw this.u8_1;
|
|
@@ -56865,8 +56866,8 @@
|
|
|
56865
56866
|
while (true);
|
|
56866
56867
|
};
|
|
56867
56868
|
protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).i29 = function ($this$launchDefaultWithLock, completion) {
|
|
56868
|
-
var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.
|
|
56869
|
-
i.
|
|
56869
|
+
var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.t9n_1, this.u9n_1, completion);
|
|
56870
|
+
i.v9n_1 = $this$launchDefaultWithLock;
|
|
56870
56871
|
return i;
|
|
56871
56872
|
};
|
|
56872
56873
|
function playerTurnTimeoutMiddleware$o$handle$slambda_0($store, $timerTag, resultContinuation) {
|
|
@@ -56878,7 +56879,7 @@
|
|
|
56878
56879
|
return l;
|
|
56879
56880
|
}
|
|
56880
56881
|
function playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1($asyncProvider) {
|
|
56881
|
-
this.
|
|
56882
|
+
this.w9n_1 = $asyncProvider;
|
|
56882
56883
|
}
|
|
56883
56884
|
protoOf(playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
56884
56885
|
return action instanceof TimerTickAction;
|
|
@@ -56887,7 +56888,7 @@
|
|
|
56887
56888
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
56888
56889
|
var timerTag = action_0.t6n_1;
|
|
56889
56890
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
56890
|
-
this.
|
|
56891
|
+
this.w9n_1.d6k(VOID, playerTurnTimeoutMiddleware$o$handle$slambda_0(store, timerTag, null));
|
|
56891
56892
|
}
|
|
56892
56893
|
next(action_0);
|
|
56893
56894
|
};
|
|
@@ -56899,11 +56900,11 @@
|
|
|
56899
56900
|
return new playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1(asyncProvider, serverConfig, logger);
|
|
56900
56901
|
}
|
|
56901
56902
|
function playerTurnTimeoutWhenHostMiddleware$o$handle$slambda($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
56902
|
-
this.
|
|
56903
|
-
this.
|
|
56904
|
-
this.
|
|
56905
|
-
this.
|
|
56906
|
-
this.
|
|
56903
|
+
this.f9o_1 = $store;
|
|
56904
|
+
this.g9o_1 = $timerTag;
|
|
56905
|
+
this.h9o_1 = $serverConfig;
|
|
56906
|
+
this.i9o_1 = $logger;
|
|
56907
|
+
this.j9o_1 = $action;
|
|
56907
56908
|
CoroutineImpl.call(this, resultContinuation);
|
|
56908
56909
|
}
|
|
56909
56910
|
protoOf(playerTurnTimeoutWhenHostMiddleware$o$handle$slambda).h29 = function ($this$launchDefaultWithLock, $completion) {
|
|
@@ -56922,13 +56923,13 @@
|
|
|
56922
56923
|
var tmp = this.r8_1;
|
|
56923
56924
|
if (tmp === 0) {
|
|
56924
56925
|
this.s8_1 = 1;
|
|
56925
|
-
var table = this.
|
|
56926
|
-
var player = getPlayer(table.players, this.
|
|
56926
|
+
var table = this.f9o_1.state.t6w();
|
|
56927
|
+
var player = getPlayer(table.players, this.g9o_1.f6d());
|
|
56927
56928
|
var connectionState = player.u6z_1.h6g().y6e_1;
|
|
56928
56929
|
var tmp_0;
|
|
56929
56930
|
switch (connectionState.p2_1) {
|
|
56930
56931
|
case 0:
|
|
56931
|
-
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.
|
|
56932
|
+
tmp_0 = listOf(new PlayerConnectionUpdateAction(PlayerConnectionState_TIMEOUT_getInstance(), player.playerId, this.g9o_1.f9n_1));
|
|
56932
56933
|
break;
|
|
56933
56934
|
case 4:
|
|
56934
56935
|
tmp_0 = emptyList();
|
|
@@ -56937,8 +56938,8 @@
|
|
|
56937
56938
|
case 2:
|
|
56938
56939
|
case 1:
|
|
56939
56940
|
var tmp_1;
|
|
56940
|
-
if (table.sceneInfo.z7k() && this.
|
|
56941
|
-
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.
|
|
56941
|
+
if (table.sceneInfo.z7k() && this.h9o_1.closeIfBotsAtFinish) {
|
|
56942
|
+
tmp_1 = new PlayerConnectionUpdateAction(PlayerConnectionState_DELETED_getInstance(), player.playerId, this.g9o_1.f9n_1);
|
|
56942
56943
|
} else {
|
|
56943
56944
|
tmp_1 = AskBotAction_init_$Create$(player.playerId, 'PlayerTurn when connection state = ' + connectionState.toString());
|
|
56944
56945
|
}
|
|
@@ -56946,7 +56947,7 @@
|
|
|
56946
56947
|
tmp_0 = listOf(tmp_1);
|
|
56947
56948
|
break;
|
|
56948
56949
|
case 5:
|
|
56949
|
-
this.
|
|
56950
|
+
this.i9o_1.w(VOID, 'ServerPlayerTurnTimeoutMiddleware: ' + ("Can't support this state " + connectionState.toString() + ', ') + ('action:' + this.j9o_1.toString()));
|
|
56950
56951
|
tmp_0 = emptyList();
|
|
56951
56952
|
break;
|
|
56952
56953
|
default:
|
|
@@ -56958,7 +56959,7 @@
|
|
|
56958
56959
|
var _iterator__ex2g4s = actions.l();
|
|
56959
56960
|
while (_iterator__ex2g4s.m()) {
|
|
56960
56961
|
var element = _iterator__ex2g4s.n();
|
|
56961
|
-
this.
|
|
56962
|
+
this.f9o_1.dispatch(element);
|
|
56962
56963
|
}
|
|
56963
56964
|
}
|
|
56964
56965
|
return Unit_instance;
|
|
@@ -56972,8 +56973,8 @@
|
|
|
56972
56973
|
while (true);
|
|
56973
56974
|
};
|
|
56974
56975
|
protoOf(playerTurnTimeoutWhenHostMiddleware$o$handle$slambda).i29 = function ($this$launchDefaultWithLock, completion) {
|
|
56975
|
-
var i = new playerTurnTimeoutWhenHostMiddleware$o$handle$slambda(this.
|
|
56976
|
-
i.
|
|
56976
|
+
var i = new playerTurnTimeoutWhenHostMiddleware$o$handle$slambda(this.f9o_1, this.g9o_1, this.h9o_1, this.i9o_1, this.j9o_1, completion);
|
|
56977
|
+
i.k9o_1 = $this$launchDefaultWithLock;
|
|
56977
56978
|
return i;
|
|
56978
56979
|
};
|
|
56979
56980
|
function playerTurnTimeoutWhenHostMiddleware$o$handle$slambda_0($store, $timerTag, $serverConfig, $logger, $action, resultContinuation) {
|
|
@@ -56985,9 +56986,9 @@
|
|
|
56985
56986
|
return l;
|
|
56986
56987
|
}
|
|
56987
56988
|
function playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $serverConfig, $logger) {
|
|
56988
|
-
this.
|
|
56989
|
-
this.
|
|
56990
|
-
this.
|
|
56989
|
+
this.l9o_1 = $asyncProvider;
|
|
56990
|
+
this.m9o_1 = $serverConfig;
|
|
56991
|
+
this.n9o_1 = $logger;
|
|
56991
56992
|
}
|
|
56992
56993
|
protoOf(playerTurnTimeoutWhenHostMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
56993
56994
|
return action instanceof TimerTickAction;
|
|
@@ -56996,7 +56997,7 @@
|
|
|
56996
56997
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
56997
56998
|
var timerTag = action_0.t6n_1;
|
|
56998
56999
|
if (timerTag instanceof PlayerTurnTimerTag) {
|
|
56999
|
-
this.
|
|
57000
|
+
this.l9o_1.d6k(VOID, playerTurnTimeoutWhenHostMiddleware$o$handle$slambda_0(store, timerTag, this.m9o_1, this.n9o_1, action_0, null));
|
|
57000
57001
|
}
|
|
57001
57002
|
next(action_0);
|
|
57002
57003
|
};
|
|
@@ -57008,7 +57009,7 @@
|
|
|
57008
57009
|
return new playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
57009
57010
|
}
|
|
57010
57011
|
function playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
57011
|
-
this.
|
|
57012
|
+
this.o9o_1 = $playerConnectionInteractor;
|
|
57012
57013
|
}
|
|
57013
57014
|
protoOf(playerConnectionUpdateMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
57014
57015
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -57044,7 +57045,7 @@
|
|
|
57044
57045
|
var _iterator__ex2g4s_0 = destination.l();
|
|
57045
57046
|
while (_iterator__ex2g4s_0.m()) {
|
|
57046
57047
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
57047
|
-
if (element_0.
|
|
57048
|
+
if (element_0.p9o_1 === tmp4.k9d_1) {
|
|
57048
57049
|
if (found) {
|
|
57049
57050
|
tmp$ret$4 = null;
|
|
57050
57051
|
break $l$block_2;
|
|
@@ -57063,7 +57064,7 @@
|
|
|
57063
57064
|
if (!(reconnectionTimerTag == null)) {
|
|
57064
57065
|
store.dispatch(new StopTimerAction(reconnectionTimerTag));
|
|
57065
57066
|
}
|
|
57066
|
-
var actions = this.
|
|
57067
|
+
var actions = this.o9o_1.k9a(tmp4.j9d_1, tmp4.k9d_1, store.state.t6w(), tmp4.l9d_1);
|
|
57067
57068
|
// Inline function 'kotlin.collections.forEach' call
|
|
57068
57069
|
var _iterator__ex2g4s_1 = actions.l();
|
|
57069
57070
|
while (_iterator__ex2g4s_1.m()) {
|
|
@@ -57080,15 +57081,15 @@
|
|
|
57080
57081
|
return new playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1(playerConnectionInteractor);
|
|
57081
57082
|
}
|
|
57082
57083
|
function PlayerReconnectionWaitingTimerTag(playerId, state) {
|
|
57083
|
-
this.
|
|
57084
|
-
this.
|
|
57084
|
+
this.p9o_1 = playerId;
|
|
57085
|
+
this.q9o_1 = state;
|
|
57085
57086
|
}
|
|
57086
57087
|
protoOf(PlayerReconnectionWaitingTimerTag).toString = function () {
|
|
57087
|
-
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.
|
|
57088
|
+
return 'PlayerReconnectionWaitingTimerTag(playerId=' + this.p9o_1 + ', state=' + this.q9o_1.toString() + ')';
|
|
57088
57089
|
};
|
|
57089
57090
|
protoOf(PlayerReconnectionWaitingTimerTag).hashCode = function () {
|
|
57090
|
-
var result = getStringHashCode(this.
|
|
57091
|
-
result = imul(result, 31) + this.
|
|
57091
|
+
var result = getStringHashCode(this.p9o_1);
|
|
57092
|
+
result = imul(result, 31) + this.q9o_1.hashCode() | 0;
|
|
57092
57093
|
return result;
|
|
57093
57094
|
};
|
|
57094
57095
|
protoOf(PlayerReconnectionWaitingTimerTag).equals = function (other) {
|
|
@@ -57096,14 +57097,14 @@
|
|
|
57096
57097
|
return true;
|
|
57097
57098
|
if (!(other instanceof PlayerReconnectionWaitingTimerTag))
|
|
57098
57099
|
return false;
|
|
57099
|
-
if (!(this.
|
|
57100
|
+
if (!(this.p9o_1 === other.p9o_1))
|
|
57100
57101
|
return false;
|
|
57101
|
-
if (!this.
|
|
57102
|
+
if (!this.q9o_1.equals(other.q9o_1))
|
|
57102
57103
|
return false;
|
|
57103
57104
|
return true;
|
|
57104
57105
|
};
|
|
57105
57106
|
function playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1($playerConnectionInteractor) {
|
|
57106
|
-
this.
|
|
57107
|
+
this.r9o_1 = $playerConnectionInteractor;
|
|
57107
57108
|
}
|
|
57108
57109
|
protoOf(playerReconnectionWaitingTimerTickMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
57109
57110
|
return action instanceof TimerTickAction;
|
|
@@ -57117,7 +57118,7 @@
|
|
|
57117
57118
|
var timerTag = tmp4.t6n_1;
|
|
57118
57119
|
if (timerTag instanceof PlayerReconnectionWaitingTimerTag) {
|
|
57119
57120
|
var state = store.state;
|
|
57120
|
-
var actions = this.
|
|
57121
|
+
var actions = this.r9o_1.k9a(timerTag.q9o_1, timerTag.p9o_1, state.t6w(), true);
|
|
57121
57122
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
57122
57123
|
if (!actions.q()) {
|
|
57123
57124
|
// Inline function 'kotlin.collections.forEach' call
|
|
@@ -57139,8 +57140,8 @@
|
|
|
57139
57140
|
return new clearOnFinishMiddleware$$inlined$middlewareForActionType$1(asyncProvider, operationsToWait);
|
|
57140
57141
|
}
|
|
57141
57142
|
function clearOnFinishMiddleware$o$handle$slambda($operationsToWait, $store, resultContinuation) {
|
|
57142
|
-
this.
|
|
57143
|
-
this.
|
|
57143
|
+
this.a9p_1 = $operationsToWait;
|
|
57144
|
+
this.b9p_1 = $store;
|
|
57144
57145
|
CoroutineImpl.call(this, resultContinuation);
|
|
57145
57146
|
}
|
|
57146
57147
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).h29 = function ($this$launchDefault, $completion) {
|
|
@@ -57160,18 +57161,18 @@
|
|
|
57160
57161
|
switch (tmp) {
|
|
57161
57162
|
case 0:
|
|
57162
57163
|
this.s8_1 = 4;
|
|
57163
|
-
this.
|
|
57164
|
+
this.d9p_1 = this.a9p_1.l();
|
|
57164
57165
|
this.r8_1 = 1;
|
|
57165
57166
|
continue $sm;
|
|
57166
57167
|
case 1:
|
|
57167
|
-
if (!this.
|
|
57168
|
+
if (!this.d9p_1.m()) {
|
|
57168
57169
|
this.r8_1 = 3;
|
|
57169
57170
|
continue $sm;
|
|
57170
57171
|
}
|
|
57171
57172
|
|
|
57172
|
-
var element = this.
|
|
57173
|
+
var element = this.d9p_1.n();
|
|
57173
57174
|
this.r8_1 = 2;
|
|
57174
|
-
suspendResult = element.
|
|
57175
|
+
suspendResult = element.e9p(this);
|
|
57175
57176
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
57176
57177
|
return suspendResult;
|
|
57177
57178
|
}
|
|
@@ -57181,8 +57182,8 @@
|
|
|
57181
57182
|
this.r8_1 = 1;
|
|
57182
57183
|
continue $sm;
|
|
57183
57184
|
case 3:
|
|
57184
|
-
var tmp_0 = this.
|
|
57185
|
-
var tmp0_safe_receiver = this.
|
|
57185
|
+
var tmp_0 = this.b9p_1.dispatch;
|
|
57186
|
+
var tmp0_safe_receiver = this.b9p_1.state.t6v_1;
|
|
57186
57187
|
tmp_0(new ClearAction(tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y8e_1));
|
|
57187
57188
|
return Unit_instance;
|
|
57188
57189
|
case 4:
|
|
@@ -57200,8 +57201,8 @@
|
|
|
57200
57201
|
while (true);
|
|
57201
57202
|
};
|
|
57202
57203
|
protoOf(clearOnFinishMiddleware$o$handle$slambda).i29 = function ($this$launchDefault, completion) {
|
|
57203
|
-
var i = new clearOnFinishMiddleware$o$handle$slambda(this.
|
|
57204
|
-
i.
|
|
57204
|
+
var i = new clearOnFinishMiddleware$o$handle$slambda(this.a9p_1, this.b9p_1, completion);
|
|
57205
|
+
i.c9p_1 = $this$launchDefault;
|
|
57205
57206
|
return i;
|
|
57206
57207
|
};
|
|
57207
57208
|
function clearOnFinishMiddleware$o$handle$slambda_0($operationsToWait, $store, resultContinuation) {
|
|
@@ -57213,15 +57214,15 @@
|
|
|
57213
57214
|
return l;
|
|
57214
57215
|
}
|
|
57215
57216
|
function clearOnFinishMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $operationsToWait) {
|
|
57216
|
-
this.
|
|
57217
|
-
this.
|
|
57217
|
+
this.f9p_1 = $asyncProvider;
|
|
57218
|
+
this.g9p_1 = $operationsToWait;
|
|
57218
57219
|
}
|
|
57219
57220
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
57220
57221
|
return action instanceof FinishGameMechanicAction;
|
|
57221
57222
|
};
|
|
57222
57223
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).m6p = function (store, next, action) {
|
|
57223
57224
|
next(action instanceof FinishGameMechanicAction ? action : THROW_CCE());
|
|
57224
|
-
this.
|
|
57225
|
+
this.f9p_1.b6k(VOID, clearOnFinishMiddleware$o$handle$slambda_0(this.g9p_1, store, null));
|
|
57225
57226
|
};
|
|
57226
57227
|
protoOf(clearOnFinishMiddleware$$inlined$middlewareForActionType$1).w6n = function (store, next, action) {
|
|
57227
57228
|
return this.m6p(store, next, action);
|
|
@@ -57231,12 +57232,12 @@
|
|
|
57231
57232
|
return new sceneLifecycleMiddleware$$inlined$middlewareForActionType$1(asyncProvider, sceneFactory, router, sceneValidationInteractor);
|
|
57232
57233
|
}
|
|
57233
57234
|
function sceneLifecycleMiddleware$o$handle$slambda($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
57234
|
-
this.
|
|
57235
|
-
this.
|
|
57236
|
-
this.
|
|
57237
|
-
this.
|
|
57238
|
-
this.
|
|
57239
|
-
this.
|
|
57235
|
+
this.p9p_1 = $action;
|
|
57236
|
+
this.q9p_1 = $sceneFactory;
|
|
57237
|
+
this.r9p_1 = $table;
|
|
57238
|
+
this.s9p_1 = $router;
|
|
57239
|
+
this.t9p_1 = $store;
|
|
57240
|
+
this.u9p_1 = $sceneValidationInteractor;
|
|
57240
57241
|
CoroutineImpl.call(this, resultContinuation);
|
|
57241
57242
|
}
|
|
57242
57243
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).h29 = function ($this$launchDefault, $completion) {
|
|
@@ -57256,10 +57257,10 @@
|
|
|
57256
57257
|
switch (tmp) {
|
|
57257
57258
|
case 0:
|
|
57258
57259
|
this.s8_1 = 3;
|
|
57259
|
-
var tmp0_subject = this.
|
|
57260
|
+
var tmp0_subject = this.p9p_1;
|
|
57260
57261
|
if (tmp0_subject instanceof SceneStartedMechanicAction) {
|
|
57261
57262
|
this.r8_1 = 1;
|
|
57262
|
-
suspendResult = this.
|
|
57263
|
+
suspendResult = this.q9p_1.h9c(this.p9p_1.w9f_1, this.r9p_1, this);
|
|
57263
57264
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
57264
57265
|
return suspendResult;
|
|
57265
57266
|
}
|
|
@@ -57267,37 +57268,37 @@
|
|
|
57267
57268
|
} else {
|
|
57268
57269
|
if (tmp0_subject instanceof SceneEndedMechanicAction) {
|
|
57269
57270
|
var tmp_0 = this;
|
|
57270
|
-
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.
|
|
57271
|
+
var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.r9p_1.players));
|
|
57271
57272
|
var gameWinnerPlayerId = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.playerId;
|
|
57272
|
-
var nextSceneCommand = this.
|
|
57273
|
+
var nextSceneCommand = this.s9p_1.s9c(this.p9p_1.s9f_1, !(gameWinnerPlayerId == null), false, this.r9p_1.config);
|
|
57273
57274
|
var tmp_1;
|
|
57274
57275
|
if (nextSceneCommand instanceof MoveSceneNext) {
|
|
57275
57276
|
tmp_1 = listOf(new SceneStartedMechanicAction(nextSceneCommand.y9c_1));
|
|
57276
57277
|
} else {
|
|
57277
57278
|
noWhenBranchMatchedException();
|
|
57278
57279
|
}
|
|
57279
|
-
tmp_0.
|
|
57280
|
+
tmp_0.w9p_1 = tmp_1;
|
|
57280
57281
|
this.r8_1 = 2;
|
|
57281
57282
|
continue $sm;
|
|
57282
57283
|
} else {
|
|
57283
57284
|
if (tmp0_subject instanceof SceneActStartedMechanicAction) {
|
|
57284
57285
|
var tmp_2 = this;
|
|
57285
|
-
this.
|
|
57286
|
-
var mechanicAction = new SceneActMechanicAction(this.
|
|
57287
|
-
tmp_2.
|
|
57286
|
+
this.u9p_1.p9c(this.t9p_1.state.u6v_1, 'Timers are not empty before scene act ' + this.p9p_1.t9f_1 + ', ' + this.p9p_1.u9f_1);
|
|
57287
|
+
var mechanicAction = new SceneActMechanicAction(this.p9p_1.t9f_1, this.p9p_1.u9f_1, this.p9p_1.v9f_1);
|
|
57288
|
+
tmp_2.w9p_1 = listOf(mechanicAction);
|
|
57288
57289
|
this.r8_1 = 2;
|
|
57289
57290
|
continue $sm;
|
|
57290
57291
|
} else {
|
|
57291
57292
|
if (tmp0_subject instanceof SceneActEndedMechanicAction) {
|
|
57292
57293
|
var tmp_3 = this;
|
|
57293
|
-
var navigationCommand = this.
|
|
57294
|
+
var navigationCommand = this.s9p_1.u9c(this.p9p_1.x9f_1, this.r9p_1);
|
|
57294
57295
|
var tmp_4;
|
|
57295
57296
|
if (navigationCommand instanceof FinishActNext) {
|
|
57296
|
-
tmp_4 = listOf(new SceneEndedMechanicAction(this.
|
|
57297
|
+
tmp_4 = listOf(new SceneEndedMechanicAction(this.r9p_1.sceneInfo.p8c_1));
|
|
57297
57298
|
} else {
|
|
57298
57299
|
if (navigationCommand instanceof MoveActNext) {
|
|
57299
57300
|
var tmp9_actId = navigationCommand.a9d_1;
|
|
57300
|
-
var tmp0 = this.
|
|
57301
|
+
var tmp0 = this.r9p_1.sceneInfo.s8c_1;
|
|
57301
57302
|
var tmp$ret$2;
|
|
57302
57303
|
l$ret$3: do {
|
|
57303
57304
|
if (!(tmp0 == null) ? isInterface(tmp0, SceneData) : false) {
|
|
@@ -57309,13 +57310,13 @@
|
|
|
57309
57310
|
while (false);
|
|
57310
57311
|
var tmp10_sceneData = tmp$ret$2;
|
|
57311
57312
|
var tmp11_payload = navigationCommand.b9d_1;
|
|
57312
|
-
var actData = this.
|
|
57313
|
-
tmp_4 = listOf(new SceneActStartedMechanicAction(this.
|
|
57313
|
+
var actData = this.q9p_1.i9c(tmp9_actId, tmp10_sceneData, tmp11_payload, this.r9p_1);
|
|
57314
|
+
tmp_4 = listOf(new SceneActStartedMechanicAction(this.r9p_1.sceneInfo.p8c_1, navigationCommand.a9d_1, actData));
|
|
57314
57315
|
} else {
|
|
57315
57316
|
noWhenBranchMatchedException();
|
|
57316
57317
|
}
|
|
57317
57318
|
}
|
|
57318
|
-
tmp_3.
|
|
57319
|
+
tmp_3.w9p_1 = tmp_4;
|
|
57319
57320
|
this.r8_1 = 2;
|
|
57320
57321
|
continue $sm;
|
|
57321
57322
|
} else {
|
|
@@ -57329,19 +57330,19 @@
|
|
|
57329
57330
|
break;
|
|
57330
57331
|
case 1:
|
|
57331
57332
|
var sceneData = suspendResult;
|
|
57332
|
-
var navigationActCommand = this.
|
|
57333
|
+
var navigationActCommand = this.s9p_1.r9c(sceneData, this.r9p_1);
|
|
57333
57334
|
var tmp_6;
|
|
57334
57335
|
if (navigationActCommand == null) {
|
|
57335
57336
|
tmp_6 = null;
|
|
57336
57337
|
} else {
|
|
57337
57338
|
var tmp0_actId = navigationActCommand.a9d_1;
|
|
57338
57339
|
var tmp1_payload = navigationActCommand.b9d_1;
|
|
57339
|
-
tmp_6 = this.
|
|
57340
|
+
tmp_6 = this.q9p_1.i9c(tmp0_actId, sceneData, tmp1_payload, this.r9p_1);
|
|
57340
57341
|
}
|
|
57341
57342
|
|
|
57342
57343
|
var actData_0 = tmp_6;
|
|
57343
|
-
var state = this.
|
|
57344
|
-
this.
|
|
57344
|
+
var state = this.t9p_1.state;
|
|
57345
|
+
this.u9p_1.p9c(state.u6v_1, 'Timers are not empty before scene ' + this.p9p_1.w9f_1);
|
|
57345
57346
|
var tmp_7;
|
|
57346
57347
|
if (equals(state.t6w().config.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
|
|
57347
57348
|
var tmp2_safe_receiver = state.t6w().sceneInfo.t8c_1;
|
|
@@ -57367,18 +57368,18 @@
|
|
|
57367
57368
|
}
|
|
57368
57369
|
|
|
57369
57370
|
var currentTurnPlayerId = tmp_7;
|
|
57370
|
-
var tmp5_sceneId = this.
|
|
57371
|
+
var tmp5_sceneId = this.p9p_1.w9f_1;
|
|
57371
57372
|
var tmp6_actId = actData_0 == null ? null : actData_0.actId;
|
|
57372
57373
|
var mechanicAction_0 = new SceneMechanicAction(currentTurnPlayerId, tmp5_sceneId, tmp6_actId, sceneData, actData_0);
|
|
57373
|
-
this.
|
|
57374
|
+
this.w9p_1 = listOfNotNull_0(mechanicAction_0);
|
|
57374
57375
|
this.r8_1 = 2;
|
|
57375
57376
|
continue $sm;
|
|
57376
57377
|
case 2:
|
|
57377
|
-
var navigationActions = this.
|
|
57378
|
+
var navigationActions = this.w9p_1;
|
|
57378
57379
|
var _iterator__ex2g4s = navigationActions.l();
|
|
57379
57380
|
while (_iterator__ex2g4s.m()) {
|
|
57380
57381
|
var element = _iterator__ex2g4s.n();
|
|
57381
|
-
this.
|
|
57382
|
+
this.t9p_1.dispatch(element);
|
|
57382
57383
|
}
|
|
57383
57384
|
|
|
57384
57385
|
return Unit_instance;
|
|
@@ -57397,8 +57398,8 @@
|
|
|
57397
57398
|
while (true);
|
|
57398
57399
|
};
|
|
57399
57400
|
protoOf(sceneLifecycleMiddleware$o$handle$slambda).i29 = function ($this$launchDefault, completion) {
|
|
57400
|
-
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.
|
|
57401
|
-
i.
|
|
57401
|
+
var i = new sceneLifecycleMiddleware$o$handle$slambda(this.p9p_1, this.q9p_1, this.r9p_1, this.s9p_1, this.t9p_1, this.u9p_1, completion);
|
|
57402
|
+
i.v9p_1 = $this$launchDefault;
|
|
57402
57403
|
return i;
|
|
57403
57404
|
};
|
|
57404
57405
|
function sceneLifecycleMiddleware$o$handle$slambda_0($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
|
|
@@ -57410,10 +57411,10 @@
|
|
|
57410
57411
|
return l;
|
|
57411
57412
|
}
|
|
57412
57413
|
function sceneLifecycleMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $sceneFactory, $router, $sceneValidationInteractor) {
|
|
57413
|
-
this.
|
|
57414
|
-
this.
|
|
57415
|
-
this.
|
|
57416
|
-
this.
|
|
57414
|
+
this.x9p_1 = $asyncProvider;
|
|
57415
|
+
this.y9p_1 = $sceneFactory;
|
|
57416
|
+
this.z9p_1 = $router;
|
|
57417
|
+
this.a9q_1 = $sceneValidationInteractor;
|
|
57417
57418
|
}
|
|
57418
57419
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
57419
57420
|
return action instanceof SceneLifecycleAction;
|
|
@@ -57422,7 +57423,7 @@
|
|
|
57422
57423
|
var action_0 = action instanceof SceneLifecycleAction ? action : THROW_CCE();
|
|
57423
57424
|
var table = store.state.t6w();
|
|
57424
57425
|
next(action_0);
|
|
57425
|
-
this.
|
|
57426
|
+
this.x9p_1.b6k(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.y9p_1, table, this.z9p_1, store, this.a9q_1, null));
|
|
57426
57427
|
};
|
|
57427
57428
|
protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).w6n = function (store, next, action) {
|
|
57428
57429
|
return this.m6p(store, next, action);
|
|
@@ -57468,7 +57469,7 @@
|
|
|
57468
57469
|
return new checkBotsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
57469
57470
|
}
|
|
57470
57471
|
function checkBotsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57471
|
-
this.
|
|
57472
|
+
this.b9q_1 = $logger;
|
|
57472
57473
|
}
|
|
57473
57474
|
protoOf(checkBotsMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
57474
57475
|
return action instanceof SceneMechanicAction;
|
|
@@ -57516,7 +57517,7 @@
|
|
|
57516
57517
|
var tmp$ret$2 = to(tmp_0, tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.y6e_1);
|
|
57517
57518
|
destination.j(tmp$ret$2);
|
|
57518
57519
|
}
|
|
57519
|
-
this.
|
|
57520
|
+
this.b9q_1.w('Validation', 'CheckBotsMiddleware: Only bots are playing: ' + toString(destination));
|
|
57520
57521
|
}
|
|
57521
57522
|
}
|
|
57522
57523
|
next(action_0);
|
|
@@ -57529,7 +57530,7 @@
|
|
|
57529
57530
|
return new checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
57530
57531
|
}
|
|
57531
57532
|
function checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57532
|
-
this.
|
|
57533
|
+
this.c9q_1 = $logger;
|
|
57533
57534
|
}
|
|
57534
57535
|
protoOf(checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
57535
57536
|
return action instanceof PutCardMechanicAction;
|
|
@@ -57562,7 +57563,7 @@
|
|
|
57562
57563
|
var bribes = destination;
|
|
57563
57564
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
57564
57565
|
if (!bribes.q()) {
|
|
57565
|
-
this.
|
|
57566
|
+
this.c9q_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.b8b_1.toString() + ', bribes = ' + toString(bribes));
|
|
57566
57567
|
}
|
|
57567
57568
|
}
|
|
57568
57569
|
next(action_0);
|
|
@@ -57575,7 +57576,7 @@
|
|
|
57575
57576
|
return new checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
57576
57577
|
}
|
|
57577
57578
|
function checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57578
|
-
this.
|
|
57579
|
+
this.d9q_1 = $logger;
|
|
57579
57580
|
}
|
|
57580
57581
|
protoOf(checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
57581
57582
|
return action instanceof SceneMechanicAction;
|
|
@@ -57792,7 +57793,7 @@
|
|
|
57792
57793
|
}
|
|
57793
57794
|
var notValidMessage = tmp;
|
|
57794
57795
|
if (!(notValidMessage == null)) {
|
|
57795
|
-
this.
|
|
57796
|
+
this.d9q_1.w('Validation', toString_0(notValidMessage));
|
|
57796
57797
|
}
|
|
57797
57798
|
}
|
|
57798
57799
|
}
|
|
@@ -57883,7 +57884,7 @@
|
|
|
57883
57884
|
};
|
|
57884
57885
|
}
|
|
57885
57886
|
function checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57886
|
-
this.
|
|
57887
|
+
this.e9q_1 = $logger;
|
|
57887
57888
|
}
|
|
57888
57889
|
protoOf(checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
57889
57890
|
return action instanceof TimerTickAction;
|
|
@@ -57892,7 +57893,7 @@
|
|
|
57892
57893
|
var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
|
|
57893
57894
|
var tmp = action_0.t6n_1;
|
|
57894
57895
|
if (tmp instanceof GameIsNotFinishedTimerTag) {
|
|
57895
|
-
this.
|
|
57896
|
+
this.e9q_1.w('Validation', 'CheckGameISNotFinishedMiddleware: finish event is nor received');
|
|
57896
57897
|
store.dispatch(new FinishGameMechanicAction(store.state.c9d().x8e_1, store.state.t6w().isGameFinished));
|
|
57897
57898
|
}
|
|
57898
57899
|
next(action_0);
|
|
@@ -57958,7 +57959,7 @@
|
|
|
57958
57959
|
return new checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
57959
57960
|
}
|
|
57960
57961
|
function checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57961
|
-
this.
|
|
57962
|
+
this.f9q_1 = $logger;
|
|
57962
57963
|
}
|
|
57963
57964
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
57964
57965
|
return isInterface(action, FirstMechanicAction);
|
|
@@ -57966,7 +57967,7 @@
|
|
|
57966
57967
|
protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).m6p = function (store, next, action) {
|
|
57967
57968
|
var action_0 = isInterface(action, FirstMechanicAction) ? action : THROW_CCE();
|
|
57968
57969
|
if (action_0.config.pointsMode.equals(PointsMode_TEST_getInstance())) {
|
|
57969
|
-
this.
|
|
57970
|
+
this.f9q_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
|
|
57970
57971
|
}
|
|
57971
57972
|
next(action_0);
|
|
57972
57973
|
};
|
|
@@ -57982,7 +57983,7 @@
|
|
|
57982
57983
|
return new checkValidSceneActMiddleware$$inlined$middlewareForActionType$1(logger);
|
|
57983
57984
|
}
|
|
57984
57985
|
function checkValidSceneMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
57985
|
-
this.
|
|
57986
|
+
this.g9q_1 = $logger;
|
|
57986
57987
|
}
|
|
57987
57988
|
protoOf(checkValidSceneMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
57988
57989
|
return action instanceof SceneMechanicAction;
|
|
@@ -57993,7 +57994,7 @@
|
|
|
57993
57994
|
if (state.u6w()) {
|
|
57994
57995
|
var sceneInfo = state.t6w().sceneInfo;
|
|
57995
57996
|
if (!get_isWaitingScene(sceneInfo.p8c_1) && Companion_instance_5.b6x(sceneInfo.p8c_1, action_0.c8a_1) && equals(sceneInfo.s8c_1, action_0.sceneData)) {
|
|
57996
|
-
this.
|
|
57997
|
+
this.g9q_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
57997
57998
|
}
|
|
57998
57999
|
}
|
|
57999
58000
|
next(action_0);
|
|
@@ -58002,7 +58003,7 @@
|
|
|
58002
58003
|
return this.m6p(store, next, action);
|
|
58003
58004
|
};
|
|
58004
58005
|
function checkValidSceneActMiddleware$$inlined$middlewareForActionType$1($logger) {
|
|
58005
|
-
this.
|
|
58006
|
+
this.h9q_1 = $logger;
|
|
58006
58007
|
}
|
|
58007
58008
|
protoOf(checkValidSceneActMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
58008
58009
|
return action instanceof SceneActMechanicAction;
|
|
@@ -58013,7 +58014,7 @@
|
|
|
58013
58014
|
if (state.u6w()) {
|
|
58014
58015
|
var sceneInfo = state.t6w().sceneInfo;
|
|
58015
58016
|
if (Companion_instance_5.b6x(sceneInfo.p8c_1, action_0.g8a_1) && sceneInfo.r8c_1 === action_0.h8a_1 && equals(sceneInfo.t8c_1, action_0.i8a_1)) {
|
|
58016
|
-
this.
|
|
58017
|
+
this.h9q_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
|
|
58017
58018
|
}
|
|
58018
58019
|
}
|
|
58019
58020
|
next(action_0);
|
|
@@ -58073,7 +58074,7 @@
|
|
|
58073
58074
|
tmp(new ErrorToClientAction(tmp4_error, tmp3_deliveryPayload));
|
|
58074
58075
|
}
|
|
58075
58076
|
function FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
58076
|
-
this.
|
|
58077
|
+
this.i9q_1 = this$0;
|
|
58077
58078
|
}
|
|
58078
58079
|
protoOf(FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
58079
58080
|
return action instanceof FromClientAction;
|
|
@@ -58099,18 +58100,18 @@
|
|
|
58099
58100
|
var tmp$ret$1 = item.playerId;
|
|
58100
58101
|
destination.j(tmp$ret$1);
|
|
58101
58102
|
}
|
|
58102
|
-
this.
|
|
58103
|
+
this.i9q_1.j9i_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
58103
58104
|
break $l$block_3;
|
|
58104
58105
|
}
|
|
58105
58106
|
if (!get_isCreated(store.state)) {
|
|
58106
58107
|
if (table.sceneInfo.z7k()) {
|
|
58107
|
-
this.
|
|
58108
|
+
this.i9q_1.j9i_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
|
|
58108
58109
|
} else {
|
|
58109
58110
|
var message = 'Game is ' + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4);
|
|
58110
|
-
if (this.
|
|
58111
|
-
sendErrorToClient(this.
|
|
58111
|
+
if (this.i9q_1.l9i_1) {
|
|
58112
|
+
sendErrorToClient(this.i9q_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
|
|
58112
58113
|
}
|
|
58113
|
-
this.
|
|
58114
|
+
this.i9q_1.j9i_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
|
|
58114
58115
|
}
|
|
58115
58116
|
break $l$block_3;
|
|
58116
58117
|
}
|
|
@@ -58118,18 +58119,18 @@
|
|
|
58118
58119
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y6e_1;
|
|
58119
58120
|
if (!(connectionState == null) && !connectionState.isLive && !tmp4.fromBot) {
|
|
58120
58121
|
var message_0 = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
|
|
58121
|
-
if (this.
|
|
58122
|
-
sendErrorToClient(this.
|
|
58122
|
+
if (this.i9q_1.l9i_1) {
|
|
58123
|
+
sendErrorToClient(this.i9q_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
58123
58124
|
}
|
|
58124
|
-
this.
|
|
58125
|
+
this.i9q_1.j9i_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
58125
58126
|
break $l$block_3;
|
|
58126
58127
|
}
|
|
58127
|
-
if (this.
|
|
58128
|
+
if (this.i9q_1.k9i_1 && checkIfEventIsDuplicated(this.i9q_1, table, tmp4)) {
|
|
58128
58129
|
var message_1 = 'Player send duplicated event:' + ('playerId = ' + player.playerId);
|
|
58129
|
-
if (this.
|
|
58130
|
-
sendErrorToClient(this.
|
|
58130
|
+
if (this.i9q_1.l9i_1) {
|
|
58131
|
+
sendErrorToClient(this.i9q_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
|
|
58131
58132
|
}
|
|
58132
|
-
this.
|
|
58133
|
+
this.i9q_1.j9i_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
|
|
58133
58134
|
break $l$block_3;
|
|
58134
58135
|
}
|
|
58135
58136
|
next(tmp4);
|
|
@@ -58179,8 +58180,8 @@
|
|
|
58179
58180
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
58180
58181
|
}
|
|
58181
58182
|
function PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
58182
|
-
this.
|
|
58183
|
-
this.
|
|
58183
|
+
this.j9q_1 = $enableCheckWhen;
|
|
58184
|
+
this.k9q_1 = this$0;
|
|
58184
58185
|
}
|
|
58185
58186
|
protoOf(PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
58186
58187
|
return action instanceof PlayerConnectionUpdateAction;
|
|
@@ -58189,7 +58190,7 @@
|
|
|
58189
58190
|
var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
|
|
58190
58191
|
$l$block_1: {
|
|
58191
58192
|
var state = store.state;
|
|
58192
|
-
if (!isEnabledCheck(this.
|
|
58193
|
+
if (!isEnabledCheck(this.j9q_1, state, tmp4)) {
|
|
58193
58194
|
next(tmp4);
|
|
58194
58195
|
break $l$block_1;
|
|
58195
58196
|
}
|
|
@@ -58205,23 +58206,23 @@
|
|
|
58205
58206
|
var tmp$ret$1 = item.playerId;
|
|
58206
58207
|
destination.j(tmp$ret$1);
|
|
58207
58208
|
}
|
|
58208
|
-
this.
|
|
58209
|
+
this.k9q_1.r9i_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
|
|
58209
58210
|
break $l$block_1;
|
|
58210
58211
|
}
|
|
58211
58212
|
var table = store.state.t6w();
|
|
58212
58213
|
var player = getPlayer(table.players, tmp4.k9d_1);
|
|
58213
58214
|
var tmp0_safe_receiver = player.u6z_1.s6e_1;
|
|
58214
58215
|
var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y6e_1;
|
|
58215
|
-
var _destruct__k2r9zo = isDuplicateConnectionState(this.
|
|
58216
|
+
var _destruct__k2r9zo = isDuplicateConnectionState(this.k9q_1, connectionState, tmp4.j9d_1);
|
|
58216
58217
|
var duplicate = _destruct__k2r9zo.ne();
|
|
58217
58218
|
var report = _destruct__k2r9zo.oe();
|
|
58218
58219
|
if (!(connectionState == null) && duplicate) {
|
|
58219
58220
|
var message = 'Player connection state the same ' + connectionState.toString() + ':' + ('playerId = ' + player.playerId);
|
|
58220
58221
|
if (report) {
|
|
58221
|
-
if (this.
|
|
58222
|
-
sendErrorToClient_0(this.
|
|
58222
|
+
if (this.k9q_1.s9i_1) {
|
|
58223
|
+
sendErrorToClient_0(this.k9q_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
|
|
58223
58224
|
}
|
|
58224
|
-
this.
|
|
58225
|
+
this.k9q_1.r9i_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
|
|
58225
58226
|
}
|
|
58226
58227
|
break $l$block_1;
|
|
58227
58228
|
} else {
|
|
@@ -58237,13 +58238,13 @@
|
|
|
58237
58238
|
this.r9i_1 = logger;
|
|
58238
58239
|
this.s9i_1 = sendErrorToClient;
|
|
58239
58240
|
}
|
|
58240
|
-
protoOf(PlayerConnectionValidationMiddlewares).
|
|
58241
|
+
protoOf(PlayerConnectionValidationMiddlewares).l9q = function (enableCheckWhen) {
|
|
58241
58242
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
58242
58243
|
return new PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
58243
58244
|
};
|
|
58244
58245
|
protoOf(PlayerConnectionValidationMiddlewares).t9i = function (enableCheckWhen, $super) {
|
|
58245
58246
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
58246
|
-
return $super === VOID ? this.
|
|
58247
|
+
return $super === VOID ? this.l9q(enableCheckWhen) : $super.l9q.call(this, enableCheckWhen);
|
|
58247
58248
|
};
|
|
58248
58249
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this$0, $action, $table) {
|
|
58249
58250
|
return function () {
|
|
@@ -58388,8 +58389,8 @@
|
|
|
58388
58389
|
tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
|
|
58389
58390
|
}
|
|
58390
58391
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
58391
|
-
this.
|
|
58392
|
-
this.
|
|
58392
|
+
this.m9q_1 = $enableCheckWhen;
|
|
58393
|
+
this.n9q_1 = this$0;
|
|
58393
58394
|
}
|
|
58394
58395
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
58395
58396
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
@@ -58398,19 +58399,19 @@
|
|
|
58398
58399
|
var tmp4 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
58399
58400
|
$l$block_1: {
|
|
58400
58401
|
var state = store.state;
|
|
58401
|
-
if (!isEnabledCheck(this.
|
|
58402
|
+
if (!isEnabledCheck(this.m9q_1, state, tmp4)) {
|
|
58402
58403
|
next(tmp4);
|
|
58403
58404
|
break $l$block_1;
|
|
58404
58405
|
}
|
|
58405
58406
|
var table = state.t6w();
|
|
58406
58407
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
58407
58408
|
var player = getPlayer(table.players, tmp4.playerId);
|
|
58408
|
-
if (isWrongPlayerTurn(this.
|
|
58409
|
+
if (isWrongPlayerTurn(this.n9q_1, store, playersWithTurn, player, tmp4)) {
|
|
58409
58410
|
break $l$block_1;
|
|
58410
58411
|
}
|
|
58411
58412
|
var tmp;
|
|
58412
|
-
if (this.
|
|
58413
|
-
tmp = isWrongPlayerTurnTag$default(this.
|
|
58413
|
+
if (this.n9q_1.c9i_1.validateFromClientActionTags) {
|
|
58414
|
+
tmp = isWrongPlayerTurnTag$default(this.n9q_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.n9q_1, tmp4, table));
|
|
58414
58415
|
} else {
|
|
58415
58416
|
tmp = false;
|
|
58416
58417
|
}
|
|
@@ -58424,8 +58425,8 @@
|
|
|
58424
58425
|
return this.m6p(store, next, action);
|
|
58425
58426
|
};
|
|
58426
58427
|
function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
58427
|
-
this.
|
|
58428
|
-
this.
|
|
58428
|
+
this.o9q_1 = $enableCheckWhen;
|
|
58429
|
+
this.p9q_1 = this$0;
|
|
58429
58430
|
}
|
|
58430
58431
|
protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
58431
58432
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
@@ -58435,17 +58436,17 @@
|
|
|
58435
58436
|
$l$block_1: {
|
|
58436
58437
|
var table = store.state.t6w();
|
|
58437
58438
|
var player = getPlayerTurn(tmp4, table.players);
|
|
58438
|
-
if (player == null || !isEnabledCheck(this.
|
|
58439
|
+
if (player == null || !isEnabledCheck(this.o9q_1, store.state, tmp4)) {
|
|
58439
58440
|
next(tmp4);
|
|
58440
58441
|
break $l$block_1;
|
|
58441
58442
|
}
|
|
58442
58443
|
var playersWithTurn = filterPlayerTurn(table.players);
|
|
58443
|
-
if (isWrongPlayerTurn(this.
|
|
58444
|
+
if (isWrongPlayerTurn(this.p9q_1, store, playersWithTurn, player, tmp4)) {
|
|
58444
58445
|
break $l$block_1;
|
|
58445
58446
|
}
|
|
58446
58447
|
var tmp;
|
|
58447
|
-
if (this.
|
|
58448
|
-
tmp = isWrongPlayerTurnTag(this.
|
|
58448
|
+
if (this.p9q_1.c9i_1.validateFromClientActionTags) {
|
|
58449
|
+
tmp = isWrongPlayerTurnTag(this.p9q_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.p9q_1, tmp4, table), this.p9q_1.b9i_1);
|
|
58449
58450
|
} else {
|
|
58450
58451
|
tmp = false;
|
|
58451
58452
|
}
|
|
@@ -58459,8 +58460,8 @@
|
|
|
58459
58460
|
return this.m6p(store, next, action);
|
|
58460
58461
|
};
|
|
58461
58462
|
function PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
|
|
58462
|
-
this.
|
|
58463
|
-
this.
|
|
58463
|
+
this.q9q_1 = $enableCheckWhen;
|
|
58464
|
+
this.r9q_1 = this$0;
|
|
58464
58465
|
}
|
|
58465
58466
|
protoOf(PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
58466
58467
|
return isInterface(action, NextPlayerTurnAction);
|
|
@@ -58469,7 +58470,7 @@
|
|
|
58469
58470
|
var tmp4 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
58470
58471
|
$l$block_1: {
|
|
58471
58472
|
var state = store.state;
|
|
58472
|
-
if (!isEnabledCheck(this.
|
|
58473
|
+
if (!isEnabledCheck(this.q9q_1, state, tmp4)) {
|
|
58473
58474
|
next(tmp4);
|
|
58474
58475
|
break $l$block_1;
|
|
58475
58476
|
}
|
|
@@ -58504,7 +58505,7 @@
|
|
|
58504
58505
|
destination.j(tmp$ret$3);
|
|
58505
58506
|
}
|
|
58506
58507
|
var message = 'Player turn is already set: ' + ('expected = ' + toString(destination) + ', ') + ('actual = ' + toString(tmp4.i9f()));
|
|
58507
|
-
this.
|
|
58508
|
+
this.r9q_1.d9i_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
58508
58509
|
} else {
|
|
58509
58510
|
next(tmp4);
|
|
58510
58511
|
}
|
|
@@ -58532,23 +58533,23 @@
|
|
|
58532
58533
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
58533
58534
|
return new PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
58534
58535
|
};
|
|
58535
|
-
protoOf(PlayerTurnValidationMiddlewares).
|
|
58536
|
+
protoOf(PlayerTurnValidationMiddlewares).s9q = function (enableCheckWhen) {
|
|
58536
58537
|
// Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
|
|
58537
58538
|
return new PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
|
|
58538
58539
|
};
|
|
58539
58540
|
protoOf(PlayerTurnValidationMiddlewares).h9i = function (enableCheckWhen, $super) {
|
|
58540
58541
|
enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
|
|
58541
|
-
return $super === VOID ? this.
|
|
58542
|
+
return $super === VOID ? this.s9q(enableCheckWhen) : $super.s9q.call(this, enableCheckWhen);
|
|
58542
58543
|
};
|
|
58543
58544
|
function Companion_193() {
|
|
58544
|
-
this.
|
|
58545
|
+
this.t9q_1 = 50;
|
|
58545
58546
|
}
|
|
58546
58547
|
var Companion_instance_198;
|
|
58547
58548
|
function Companion_getInstance_200() {
|
|
58548
58549
|
return Companion_instance_198;
|
|
58549
58550
|
}
|
|
58550
58551
|
function ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
|
|
58551
|
-
this.
|
|
58552
|
+
this.u9q_1 = this$0;
|
|
58552
58553
|
}
|
|
58553
58554
|
protoOf(ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).x6n = function (action) {
|
|
58554
58555
|
return action instanceof MechanicAction;
|
|
@@ -58559,19 +58560,19 @@
|
|
|
58559
58560
|
var aid = tmp4.aid;
|
|
58560
58561
|
if (!store.state.u6w()) {
|
|
58561
58562
|
if (!(aid == null)) {
|
|
58562
|
-
this.
|
|
58563
|
+
this.u9q_1.o9i_1.nd(aid);
|
|
58563
58564
|
}
|
|
58564
58565
|
next(tmp4);
|
|
58565
58566
|
break $l$block_0;
|
|
58566
58567
|
}
|
|
58567
|
-
if (!(aid == null) && this.
|
|
58568
|
-
this.
|
|
58568
|
+
if (!(aid == null) && this.u9q_1.o9i_1.t1(aid)) {
|
|
58569
|
+
this.u9q_1.n9i_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
|
|
58569
58570
|
break $l$block_0;
|
|
58570
58571
|
}
|
|
58571
58572
|
if (!(aid == null)) {
|
|
58572
|
-
this.
|
|
58573
|
-
if (this.
|
|
58574
|
-
this.
|
|
58573
|
+
this.u9q_1.o9i_1.nd(aid);
|
|
58574
|
+
if (this.u9q_1.o9i_1.jd_1 > 50) {
|
|
58575
|
+
this.u9q_1.o9i_1.od();
|
|
58575
58576
|
}
|
|
58576
58577
|
}
|
|
58577
58578
|
next(tmp4);
|
|
@@ -58597,12 +58598,12 @@
|
|
|
58597
58598
|
protoOf(clearReducer$$inlined$reducerForActionType$1).x6n = function (action) {
|
|
58598
58599
|
return action instanceof ClearAction;
|
|
58599
58600
|
};
|
|
58600
|
-
protoOf(clearReducer$$inlined$reducerForActionType$1).
|
|
58601
|
+
protoOf(clearReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
|
|
58601
58602
|
action instanceof ClearAction || THROW_CCE();
|
|
58602
58603
|
return state.e9d(VOID, VOID, GameLifecycleState_FINISHED_getInstance());
|
|
58603
58604
|
};
|
|
58604
58605
|
protoOf(clearReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
|
|
58605
|
-
return this.
|
|
58606
|
+
return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
58606
58607
|
};
|
|
58607
58608
|
function fromClientReducer() {
|
|
58608
58609
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
@@ -58613,7 +58614,7 @@
|
|
|
58613
58614
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).x6n = function (action) {
|
|
58614
58615
|
return action instanceof FromClientAction;
|
|
58615
58616
|
};
|
|
58616
|
-
protoOf(fromClientReducer$$inlined$reducerForActionType$1).
|
|
58617
|
+
protoOf(fromClientReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
|
|
58617
58618
|
var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
|
|
58618
58619
|
var tmp;
|
|
58619
58620
|
var tmp_0;
|
|
@@ -58664,11 +58665,11 @@
|
|
|
58664
58665
|
return tmp;
|
|
58665
58666
|
};
|
|
58666
58667
|
protoOf(fromClientReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
|
|
58667
|
-
return this.
|
|
58668
|
+
return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
58668
58669
|
};
|
|
58669
58670
|
function MechanicReducers$reducer$o$reduce$lambda(this$0, $action) {
|
|
58670
58671
|
return function (tbl) {
|
|
58671
|
-
return this$0.h9h_1.
|
|
58672
|
+
return this$0.h9h_1.c9r(tbl, $action.c8a_1, $action.sceneData, $action.d8a_1, $action.e8a_1);
|
|
58672
58673
|
};
|
|
58673
58674
|
}
|
|
58674
58675
|
function MechanicReducers$reducer$o$reduce$lambda_0($action, this$0) {
|
|
@@ -58677,22 +58678,22 @@
|
|
|
58677
58678
|
if ($action.d8a_1 == null) {
|
|
58678
58679
|
tmp = tbl;
|
|
58679
58680
|
} else {
|
|
58680
|
-
tmp = this$0.i9h_1.
|
|
58681
|
+
tmp = this$0.i9h_1.d9r(tbl, $action);
|
|
58681
58682
|
}
|
|
58682
58683
|
return tmp;
|
|
58683
58684
|
};
|
|
58684
58685
|
}
|
|
58685
58686
|
function MechanicReducers$reducer$$inlined$reducerForActionType$1(this$0) {
|
|
58686
|
-
this.
|
|
58687
|
+
this.e9r_1 = this$0;
|
|
58687
58688
|
}
|
|
58688
58689
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).x6n = function (action) {
|
|
58689
58690
|
return action instanceof MechanicAction;
|
|
58690
58691
|
};
|
|
58691
|
-
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).
|
|
58692
|
+
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
|
|
58692
58693
|
var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
|
|
58693
|
-
if (this.
|
|
58694
|
+
if (this.e9r_1.j9h_1.validateIfMainThread) {
|
|
58694
58695
|
// Inline function 'games.logic.utils.runSafeOnProd' call
|
|
58695
|
-
var logger = this.
|
|
58696
|
+
var logger = this.e9r_1.k9h_1;
|
|
58696
58697
|
var tmp;
|
|
58697
58698
|
try {
|
|
58698
58699
|
assertIfMainThread('mechanicReducer is called from main thread for action = ' + toString(action_0));
|
|
@@ -58713,50 +58714,50 @@
|
|
|
58713
58714
|
}
|
|
58714
58715
|
var tmp_1;
|
|
58715
58716
|
if (action_0 instanceof StartGameMechanicAction) {
|
|
58716
|
-
tmp_1 = this.
|
|
58717
|
+
tmp_1 = this.e9r_1.b9h_1.h9s(state, action_0);
|
|
58717
58718
|
} else {
|
|
58718
58719
|
if (action_0 instanceof StartNewGameMechanicAction) {
|
|
58719
|
-
tmp_1 = this.
|
|
58720
|
+
tmp_1 = this.e9r_1.b9h_1.g9s(state, action_0);
|
|
58720
58721
|
} else {
|
|
58721
58722
|
if (action_0 instanceof ContinueGameMechanicAction) {
|
|
58722
|
-
tmp_1 = this.
|
|
58723
|
+
tmp_1 = this.e9r_1.b9h_1.f9s(state, action_0);
|
|
58723
58724
|
} else {
|
|
58724
58725
|
if (action_0 instanceof FinishingGameMechanicAction) {
|
|
58725
|
-
tmp_1 = this.
|
|
58726
|
+
tmp_1 = this.e9r_1.b9h_1.e9s(state, action_0);
|
|
58726
58727
|
} else {
|
|
58727
58728
|
if (action_0 instanceof FinishGameMechanicAction) {
|
|
58728
|
-
tmp_1 = this.
|
|
58729
|
+
tmp_1 = this.e9r_1.b9h_1.d9s(state, action_0);
|
|
58729
58730
|
} else {
|
|
58730
58731
|
if (action_0 instanceof RestartGameMechanicAction) {
|
|
58731
|
-
tmp_1 = this.
|
|
58732
|
+
tmp_1 = this.e9r_1.b9h_1.c9s(state, action_0);
|
|
58732
58733
|
} else {
|
|
58733
58734
|
if (action_0 instanceof ErrorAction) {
|
|
58734
|
-
tmp_1 = this.
|
|
58735
|
+
tmp_1 = this.e9r_1.b9h_1.b9s(state, action_0);
|
|
58735
58736
|
} else {
|
|
58736
58737
|
if (action_0 instanceof TeamsDataMechanicAction) {
|
|
58737
|
-
tmp_1 = state.e9d(state.t6w().copy(VOID, VOID, VOID, VOID, this.
|
|
58738
|
+
tmp_1 = state.e9d(state.t6w().copy(VOID, VOID, VOID, VOID, this.e9r_1.c9h_1.a9s(state.t6w().players, action_0)));
|
|
58738
58739
|
} else {
|
|
58739
58740
|
if (action_0 instanceof SuitChoiceMechanicAction) {
|
|
58740
|
-
tmp_1 = this.
|
|
58741
|
+
tmp_1 = this.e9r_1.d9h_1.z9r(state, action_0);
|
|
58741
58742
|
} else {
|
|
58742
58743
|
if (action_0 instanceof TrumpMechanicAction) {
|
|
58743
|
-
tmp_1 = this.
|
|
58744
|
+
tmp_1 = this.e9r_1.d9h_1.y9r(state, action_0);
|
|
58744
58745
|
} else {
|
|
58745
58746
|
if (action_0 instanceof CombinationChoiceMechanicAction) {
|
|
58746
|
-
tmp_1 = this.
|
|
58747
|
+
tmp_1 = this.e9r_1.f9h_1.v9r(state, action_0);
|
|
58747
58748
|
} else {
|
|
58748
58749
|
if (action_0 instanceof PutCardMechanicAction) {
|
|
58749
|
-
tmp_1 = this.
|
|
58750
|
+
tmp_1 = this.e9r_1.e9h_1.u9r(state, action_0);
|
|
58750
58751
|
} else {
|
|
58751
58752
|
if (action_0 instanceof PickUpBribeMechanicAction) {
|
|
58752
|
-
tmp_1 = this.
|
|
58753
|
+
tmp_1 = this.e9r_1.e9h_1.t9r(state, action_0);
|
|
58753
58754
|
} else {
|
|
58754
58755
|
if (action_0 instanceof WinnerCombinationsMechanicAction) {
|
|
58755
|
-
tmp_1 = this.
|
|
58756
|
+
tmp_1 = this.e9r_1.f9h_1.l9r(state, action_0);
|
|
58756
58757
|
} else {
|
|
58757
58758
|
if (action_0 instanceof SceneMechanicAction) {
|
|
58758
|
-
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.
|
|
58759
|
-
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.
|
|
58759
|
+
var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.e9r_1, action_0);
|
|
58760
|
+
var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.e9r_1)]);
|
|
58760
58761
|
// Inline function 'kotlin.collections.fold' call
|
|
58761
58762
|
var accumulator = state.t6w();
|
|
58762
58763
|
var _iterator__ex2g4s = tmp0.l();
|
|
@@ -58768,13 +58769,13 @@
|
|
|
58768
58769
|
tmp_1 = state.e9d(tmp$ret$3);
|
|
58769
58770
|
} else {
|
|
58770
58771
|
if (action_0 instanceof SceneActMechanicAction) {
|
|
58771
|
-
tmp_1 = state.e9d(this.
|
|
58772
|
+
tmp_1 = state.e9d(this.e9r_1.i9h_1.d9r(state.t6w(), action_0));
|
|
58772
58773
|
} else {
|
|
58773
58774
|
if (action_0 instanceof PlayerReadyMechanicAction) {
|
|
58774
|
-
tmp_1 = state.e9d(this.
|
|
58775
|
+
tmp_1 = state.e9d(this.e9r_1.g9h_1.f9r(state.t6w(), action_0));
|
|
58775
58776
|
} else {
|
|
58776
58777
|
if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
|
|
58777
|
-
tmp_1 = state.e9d(this.
|
|
58778
|
+
tmp_1 = state.e9d(this.e9r_1.g9h_1.l9a(state.t6w(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
|
|
58778
58779
|
} else {
|
|
58779
58780
|
if (action_0 instanceof MessageMechanicAction) {
|
|
58780
58781
|
tmp_1 = state;
|
|
@@ -58802,7 +58803,7 @@
|
|
|
58802
58803
|
return tmp_1;
|
|
58803
58804
|
};
|
|
58804
58805
|
protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
|
|
58805
|
-
return this.
|
|
58806
|
+
return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
58806
58807
|
};
|
|
58807
58808
|
function MechanicReducers(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer, engineLogicConfig, logger) {
|
|
58808
58809
|
this.b9h_1 = gameLifecycleReducer;
|
|
@@ -58829,7 +58830,7 @@
|
|
|
58829
58830
|
protoOf(timerReducer$$inlined$reducerForActionType$1).x6n = function (action) {
|
|
58830
58831
|
return action instanceof TimerAction;
|
|
58831
58832
|
};
|
|
58832
|
-
protoOf(timerReducer$$inlined$reducerForActionType$1).
|
|
58833
|
+
protoOf(timerReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
|
|
58833
58834
|
var action_0 = action instanceof TimerAction ? action : THROW_CCE();
|
|
58834
58835
|
var tmp;
|
|
58835
58836
|
if (action_0 instanceof StartTimerAction) {
|
|
@@ -58857,7 +58858,7 @@
|
|
|
58857
58858
|
return tmp;
|
|
58858
58859
|
};
|
|
58859
58860
|
protoOf(timerReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
|
|
58860
|
-
return this.
|
|
58861
|
+
return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
58861
58862
|
};
|
|
58862
58863
|
function playerTurnReducer($this, action, table) {
|
|
58863
58864
|
var tmp0 = action.actData;
|
|
@@ -58962,7 +58963,7 @@
|
|
|
58962
58963
|
}
|
|
58963
58964
|
function SceneActReducer() {
|
|
58964
58965
|
}
|
|
58965
|
-
protoOf(SceneActReducer).
|
|
58966
|
+
protoOf(SceneActReducer).d9r = function (table, action) {
|
|
58966
58967
|
var tmp;
|
|
58967
58968
|
if (action.actId === 'WAITING_ACT') {
|
|
58968
58969
|
tmp = table.copy(VOID, VOID, VOID, VOID, VOID, VOID, table.sceneInfo.m8z(VOID, VOID, action.actId, VOID, action.actData));
|
|
@@ -58999,47 +59000,47 @@
|
|
|
58999
59000
|
function MechanicLifecycleReducer() {
|
|
59000
59001
|
}
|
|
59001
59002
|
function BaseMechanicLifecycleReducer(tableLifecycleReducer, randomPoolProvider) {
|
|
59002
|
-
this.
|
|
59003
|
-
this.
|
|
59003
|
+
this.i9s_1 = tableLifecycleReducer;
|
|
59004
|
+
this.j9s_1 = randomPoolProvider;
|
|
59004
59005
|
}
|
|
59005
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
59006
|
+
protoOf(BaseMechanicLifecycleReducer).f9s = function (state, action) {
|
|
59006
59007
|
var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
|
|
59007
59008
|
var tmp1_tableOrNull = action.n89_1;
|
|
59008
59009
|
var tmp2_payload = action.p89_1;
|
|
59009
59010
|
return state.e9d(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
|
|
59010
59011
|
};
|
|
59011
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
59012
|
-
this.
|
|
59012
|
+
protoOf(BaseMechanicLifecycleReducer).g9s = function (state, action) {
|
|
59013
|
+
this.j9s_1.g5n(action.previousGameId);
|
|
59013
59014
|
return state;
|
|
59014
59015
|
};
|
|
59015
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
59016
|
+
protoOf(BaseMechanicLifecycleReducer).e9s = function (state, action) {
|
|
59016
59017
|
var tmp0_safe_receiver = state.r6v_1;
|
|
59017
59018
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
59018
59019
|
if (tmp1_safe_receiver == null)
|
|
59019
59020
|
null;
|
|
59020
59021
|
else {
|
|
59021
59022
|
// Inline function 'kotlin.apply' call
|
|
59022
|
-
this.
|
|
59023
|
+
this.j9s_1.g5n(tmp1_safe_receiver);
|
|
59023
59024
|
}
|
|
59024
59025
|
return state.e9d(VOID, VOID, GameLifecycleState_FINISHING_getInstance(), new TerminationState(action.r89_1, action.t89_1));
|
|
59025
59026
|
};
|
|
59026
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
59027
|
+
protoOf(BaseMechanicLifecycleReducer).d9s = function (state, action) {
|
|
59027
59028
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
59028
59029
|
var tmp0_safe_receiver = state.t6v_1;
|
|
59029
59030
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g9d(action.v89_1);
|
|
59030
59031
|
return state.e9d(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.v89_1) : tmp1_elvis_lhs);
|
|
59031
59032
|
};
|
|
59032
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
59033
|
-
return state.e9d(this.
|
|
59033
|
+
protoOf(BaseMechanicLifecycleReducer).c9s = function (state, action) {
|
|
59034
|
+
return state.e9d(this.i9s_1.k9s(state.t6w()));
|
|
59034
59035
|
};
|
|
59035
|
-
protoOf(BaseMechanicLifecycleReducer).
|
|
59036
|
+
protoOf(BaseMechanicLifecycleReducer).b9s = function (state, action) {
|
|
59036
59037
|
var tmp0_safe_receiver = state.r6v_1;
|
|
59037
59038
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
|
|
59038
59039
|
if (tmp1_safe_receiver == null)
|
|
59039
59040
|
null;
|
|
59040
59041
|
else {
|
|
59041
59042
|
// Inline function 'kotlin.apply' call
|
|
59042
|
-
this.
|
|
59043
|
+
this.j9s_1.g5n(tmp1_safe_receiver);
|
|
59043
59044
|
}
|
|
59044
59045
|
var tmp = GameLifecycleState_FINISHED_getInstance();
|
|
59045
59046
|
var tmp2_safe_receiver = state.t6v_1;
|
|
@@ -59059,19 +59060,19 @@
|
|
|
59059
59060
|
return value1.id === value2.id;
|
|
59060
59061
|
}
|
|
59061
59062
|
function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
|
|
59062
|
-
this.
|
|
59063
|
-
this.
|
|
59064
|
-
this.
|
|
59065
|
-
this.
|
|
59063
|
+
this.l9s_1 = pointsInteractor;
|
|
59064
|
+
this.m9s_1 = playerHappinessProvider;
|
|
59065
|
+
this.n9s_1 = logger;
|
|
59066
|
+
this.o9s_1 = dealerConfig;
|
|
59066
59067
|
}
|
|
59067
|
-
protoOf(PlayerHandReducer).
|
|
59068
|
+
protoOf(PlayerHandReducer).p9s = function (playerId, hand, cards, combinations, selectedTrump, config) {
|
|
59068
59069
|
// Inline function 'kotlin.collections.map' call
|
|
59069
59070
|
// Inline function 'kotlin.collections.mapTo' call
|
|
59070
59071
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
59071
59072
|
var _iterator__ex2g4s = combinations.l();
|
|
59072
59073
|
while (_iterator__ex2g4s.m()) {
|
|
59073
59074
|
var item = _iterator__ex2g4s.n();
|
|
59074
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
59075
|
+
var tmp$ret$0 = mapToRecord(item, this.l9s_1.d98(item));
|
|
59075
59076
|
destination.j(tmp$ret$0);
|
|
59076
59077
|
}
|
|
59077
59078
|
var combinationRecords = destination;
|
|
@@ -59106,8 +59107,8 @@
|
|
|
59106
59107
|
return hand.m78(VOID, VOID, plus(hand.p75_1, combinationRecords), plus(hand.q75_1, combinationRecords));
|
|
59107
59108
|
}
|
|
59108
59109
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
59109
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
59110
|
-
var tmp_0 = this.
|
|
59110
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.o9s_1.dealerStrategy : tmp0_elvis_lhs;
|
|
59111
|
+
var tmp_0 = this.l9s_1.c98(cards, selectedTrump, dealerStrategy);
|
|
59111
59112
|
// Inline function 'kotlin.collections.map' call
|
|
59112
59113
|
// Inline function 'kotlin.collections.mapTo' call
|
|
59113
59114
|
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinationRecords, 10));
|
|
@@ -59118,11 +59119,11 @@
|
|
|
59118
59119
|
destination_0.j(tmp$ret$5);
|
|
59119
59120
|
}
|
|
59120
59121
|
var value = tmp_0 + sum(destination_0);
|
|
59121
|
-
var luckyFactor = this.
|
|
59122
|
-
Companion_instance_194.b98(this.
|
|
59122
|
+
var luckyFactor = this.m9s_1.y91(value, config.playersMode, dealerStrategy);
|
|
59123
|
+
Companion_instance_194.b98(this.n9s_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.w75() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.o() + ', '));
|
|
59123
59124
|
return hand.m78(VOID, plus(hand.o75_1, listOf(Companion_instance_18.e78(luckyFactor, value))), plus(hand.p75_1, combinationRecords), plus(hand.q75_1, combinationRecords));
|
|
59124
59125
|
};
|
|
59125
|
-
protoOf(PlayerHandReducer).
|
|
59126
|
+
protoOf(PlayerHandReducer).q9s = function (hand, combinations) {
|
|
59126
59127
|
// Inline function 'kotlin.collections.map' call
|
|
59127
59128
|
var this_0 = filterWithFirstCardOrBela(combinations);
|
|
59128
59129
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59130,20 +59131,20 @@
|
|
|
59130
59131
|
var _iterator__ex2g4s = this_0.l();
|
|
59131
59132
|
while (_iterator__ex2g4s.m()) {
|
|
59132
59133
|
var item = _iterator__ex2g4s.n();
|
|
59133
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
59134
|
+
var tmp$ret$0 = mapToRecord(item, this.l9s_1.d98(item));
|
|
59134
59135
|
destination.j(tmp$ret$0);
|
|
59135
59136
|
}
|
|
59136
59137
|
var combinationRecords = destination;
|
|
59137
59138
|
var tmp = updateOrAddItems(hand.p75_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
|
|
59138
59139
|
return hand.m78(VOID, VOID, tmp, updateOrAddItems(hand.q75_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
|
|
59139
59140
|
};
|
|
59140
|
-
protoOf(PlayerHandReducer).
|
|
59141
|
+
protoOf(PlayerHandReducer).r9s = function (playerId, hand, updatedCombinations, config) {
|
|
59141
59142
|
if (updatedCombinations.q()) {
|
|
59142
59143
|
return hand;
|
|
59143
59144
|
}
|
|
59144
59145
|
var previousFactor = hand.z75();
|
|
59145
59146
|
if (previousFactor.y75_1 === 0.0) {
|
|
59146
|
-
return this.
|
|
59147
|
+
return this.q9s(hand, updatedCombinations);
|
|
59147
59148
|
}
|
|
59148
59149
|
// Inline function 'kotlin.collections.map' call
|
|
59149
59150
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59151,7 +59152,7 @@
|
|
|
59151
59152
|
var _iterator__ex2g4s = updatedCombinations.l();
|
|
59152
59153
|
while (_iterator__ex2g4s.m()) {
|
|
59153
59154
|
var item = _iterator__ex2g4s.n();
|
|
59154
|
-
var tmp$ret$0 = mapToRecord(item, this.
|
|
59155
|
+
var tmp$ret$0 = mapToRecord(item, this.l9s_1.d98(item));
|
|
59155
59156
|
destination.j(tmp$ret$0);
|
|
59156
59157
|
}
|
|
59157
59158
|
var updatedCombinationRecords = destination;
|
|
@@ -59211,9 +59212,9 @@
|
|
|
59211
59212
|
}
|
|
59212
59213
|
var updatedValue = tmp_0 + sum(destination_2);
|
|
59213
59214
|
var tmp0_elvis_lhs = config.dealerStrategy;
|
|
59214
|
-
var dealerStrategy = tmp0_elvis_lhs == null ? this.
|
|
59215
|
-
var updatedLuckyFactor = this.
|
|
59216
|
-
Companion_instance_194.b98(this.
|
|
59215
|
+
var dealerStrategy = tmp0_elvis_lhs == null ? this.o9s_1.dealerStrategy : tmp0_elvis_lhs;
|
|
59216
|
+
var updatedLuckyFactor = this.m9s_1.y91(updatedValue, config.playersMode, dealerStrategy);
|
|
59217
|
+
Companion_instance_194.b98(this.n9s_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.w75() + ', ') + ('value: ' + updatedValue + ', '));
|
|
59217
59218
|
// Inline function 'kotlin.collections.map' call
|
|
59218
59219
|
var this_0 = hand.o75_1;
|
|
59219
59220
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59243,7 +59244,7 @@
|
|
|
59243
59244
|
protoOf(PlayerSceneReducer).g9c = function (player, cards, whoShuffleCardsPlayerId) {
|
|
59244
59245
|
return player.c75(VOID, VOID, cards, player.w6z_1.h79(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
|
|
59245
59246
|
};
|
|
59246
|
-
protoOf(PlayerSceneReducer).
|
|
59247
|
+
protoOf(PlayerSceneReducer).s9s = function (player, distributedCards, combinations, config, players, selectedTrump) {
|
|
59247
59248
|
// Inline function 'kotlin.collections.map' call
|
|
59248
59249
|
// Inline function 'kotlin.collections.mapTo' call
|
|
59249
59250
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
|
|
@@ -59256,7 +59257,7 @@
|
|
|
59256
59257
|
}
|
|
59257
59258
|
var detailedCombinations = destination;
|
|
59258
59259
|
var cards = plus(player.v6z_1, distributedCards);
|
|
59259
|
-
var hand = this.f9c_1.
|
|
59260
|
+
var hand = this.f9c_1.p9s(player.playerId, player.x6z_1, cards, detailedCombinations, selectedTrump, config);
|
|
59260
59261
|
var tmp;
|
|
59261
59262
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
59262
59263
|
if (!combinations.q()) {
|
|
@@ -59267,7 +59268,7 @@
|
|
|
59267
59268
|
var tmp0_points = tmp;
|
|
59268
59269
|
return player.c75(VOID, VOID, cards, VOID, hand, tmp0_points);
|
|
59269
59270
|
};
|
|
59270
|
-
protoOf(PlayerSceneReducer).
|
|
59271
|
+
protoOf(PlayerSceneReducer).t9s = function (player, sceneData) {
|
|
59271
59272
|
// Inline function 'kotlin.collections.single' call
|
|
59272
59273
|
var single = null;
|
|
59273
59274
|
var found = false;
|
|
@@ -59309,7 +59310,7 @@
|
|
|
59309
59310
|
var tmp10_earnedPoints = playerPointsCell.e7b_1;
|
|
59310
59311
|
var tmp11_earnedCards = emptyList();
|
|
59311
59312
|
var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
|
|
59312
|
-
var tmp15_hand = this.f9c_1.
|
|
59313
|
+
var tmp15_hand = this.f9c_1.q9s(player.x6z_1, updatedCombinations);
|
|
59313
59314
|
return player.c75(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
|
|
59314
59315
|
};
|
|
59315
59316
|
function refreshStartFromTime($this, playerState, config) {
|
|
@@ -59354,7 +59355,7 @@
|
|
|
59354
59355
|
this.h9a_1 = gameHistoryReducer;
|
|
59355
59356
|
this.i9a_1 = engineLogicConfig;
|
|
59356
59357
|
}
|
|
59357
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
59358
|
+
protoOf(PlayerTurnMechanicReducer).u9s = function (table, model) {
|
|
59358
59359
|
// Inline function 'com.logic.utils.copy' call
|
|
59359
59360
|
var this_0 = table.players;
|
|
59360
59361
|
// Inline function 'kotlin.apply' call
|
|
@@ -59382,7 +59383,7 @@
|
|
|
59382
59383
|
this.g9a_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
|
|
59383
59384
|
return newTable;
|
|
59384
59385
|
};
|
|
59385
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
59386
|
+
protoOf(PlayerTurnMechanicReducer).v9s = function (table, model) {
|
|
59386
59387
|
var player = getPlayer(table.players, model.f6d());
|
|
59387
59388
|
if (player.u6z_1.r6e_1 == null) {
|
|
59388
59389
|
this.g9a_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.r76_1));
|
|
@@ -59393,11 +59394,11 @@
|
|
|
59393
59394
|
this.g9a_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
|
|
59394
59395
|
return newTable;
|
|
59395
59396
|
};
|
|
59396
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
59397
|
+
protoOf(PlayerTurnMechanicReducer).f9r = function (table, action) {
|
|
59397
59398
|
var player = getPlayer(table.players, action.o8a_1);
|
|
59398
59399
|
return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.c75(VOID, player.u6z_1.f6g(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
|
|
59399
59400
|
};
|
|
59400
|
-
protoOf(PlayerTurnMechanicReducer).
|
|
59401
|
+
protoOf(PlayerTurnMechanicReducer).w9s = function (table) {
|
|
59401
59402
|
// Inline function 'kotlin.collections.map' call
|
|
59402
59403
|
var this_0 = table.players;
|
|
59403
59404
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59433,7 +59434,7 @@
|
|
|
59433
59434
|
var tmp7_waitPlayerUntilTime = tmp_0;
|
|
59434
59435
|
tmp = tmp6_$this.f6g(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
|
|
59435
59436
|
}
|
|
59436
|
-
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.c75(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h9a_1.
|
|
59437
|
+
return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.c75(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.h9a_1.b9t(playerId, previousConnection, newPlayerConnection, table.gameHistory));
|
|
59437
59438
|
};
|
|
59438
59439
|
protoOf(PlayerTurnMechanicReducer).j9a = function (config) {
|
|
59439
59440
|
return getProgress(PlayerWaitingState_IN_PROGRESS_getInstance(), refreshTimeoutTimeWhenTurn(this, config), this.g9a_1);
|
|
@@ -59468,7 +59469,7 @@
|
|
|
59468
59469
|
var _iterator__ex2g4s = players.l();
|
|
59469
59470
|
while (_iterator__ex2g4s.m()) {
|
|
59470
59471
|
var item = _iterator__ex2g4s.n();
|
|
59471
|
-
var tmp$ret$1 = $this.
|
|
59472
|
+
var tmp$ret$1 = $this.w9q_1.g9c(item, getValue(scene.c7l_1, item.playerId), scene.g7l_1);
|
|
59472
59473
|
destination.j(tmp$ret$1);
|
|
59473
59474
|
}
|
|
59474
59475
|
|
|
@@ -59489,12 +59490,12 @@
|
|
|
59489
59490
|
}
|
|
59490
59491
|
|
|
59491
59492
|
var tmp7_requestedCardDecks = tmp_0;
|
|
59492
|
-
var tmp1_$this = $this.
|
|
59493
|
+
var tmp1_$this = $this.z9q_1;
|
|
59493
59494
|
var tmp2_gameHistory = table.gameHistory;
|
|
59494
59495
|
var tmp3_playersCards = scene.c7l_1;
|
|
59495
59496
|
var tmp4_whoShuffleCardsPlayerId = scene.g7l_1;
|
|
59496
59497
|
var tmp5_randomData = scene.d7l_1;
|
|
59497
|
-
var tmp8_gameHistory = tmp1_$this.
|
|
59498
|
+
var tmp8_gameHistory = tmp1_$this.c9t(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
|
|
59498
59499
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, sceneInfo, VOID, VOID, cardDeck, tmp7_requestedCardDecks, VOID, tmp8_gameHistory);
|
|
59499
59500
|
case 'EARN_POINTS':
|
|
59500
59501
|
var tmp$ret$5;
|
|
@@ -59512,7 +59513,7 @@
|
|
|
59512
59513
|
var tmp10_newPlayersCards = scene_0.i7l_1;
|
|
59513
59514
|
var tmp11_cardDeck = table.requireCardDeck;
|
|
59514
59515
|
var tmp12_config = table.config;
|
|
59515
|
-
var updatedCardDeck = $this.
|
|
59516
|
+
var updatedCardDeck = $this.d9t(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
|
|
59516
59517
|
// Inline function 'kotlin.collections.map' call
|
|
59517
59518
|
|
|
59518
59519
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59521,21 +59522,21 @@
|
|
|
59521
59522
|
var _iterator__ex2g4s_0 = players.l();
|
|
59522
59523
|
while (_iterator__ex2g4s_0.m()) {
|
|
59523
59524
|
var item_0 = _iterator__ex2g4s_0.n();
|
|
59524
|
-
var tmp2_$this = $this.
|
|
59525
|
+
var tmp2_$this = $this.w9q_1;
|
|
59525
59526
|
var tmp3_config = table.config;
|
|
59526
59527
|
var tmp4_distributedCards = getValue(scene_0.i7l_1, item_0.playerId);
|
|
59527
59528
|
var tmp0_safe_receiver = scene_0.j7l_1;
|
|
59528
59529
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2(item_0.playerId);
|
|
59529
59530
|
var tmp5_combinations = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
|
|
59530
59531
|
var tmp6_selectedTrump = table.gameInfo.round.selectedTrump;
|
|
59531
|
-
var tmp$ret$6 = tmp2_$this.
|
|
59532
|
+
var tmp$ret$6 = tmp2_$this.s9s(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
|
|
59532
59533
|
destination_0.j(tmp$ret$6);
|
|
59533
59534
|
}
|
|
59534
59535
|
|
|
59535
|
-
var tmp13_$this = $this.
|
|
59536
|
+
var tmp13_$this = $this.z9q_1;
|
|
59536
59537
|
var tmp14_gameHistory = table.gameHistory;
|
|
59537
59538
|
var tmp15_playersCards = scene_0.i7l_1;
|
|
59538
|
-
var tmp17_gameHistory = tmp13_$this.
|
|
59539
|
+
var tmp17_gameHistory = tmp13_$this.e9t(tmp15_playersCards, tmp14_gameHistory);
|
|
59539
59540
|
return table.copy(VOID, VOID, VOID, VOID, destination_0, VOID, sceneInfo, VOID, VOID, updatedCardDeck, VOID, VOID, tmp17_gameHistory);
|
|
59540
59541
|
case 'CALC_POINTS':
|
|
59541
59542
|
var tmp$ret$9;
|
|
@@ -59558,12 +59559,12 @@
|
|
|
59558
59559
|
var _iterator__ex2g4s_1 = players.l();
|
|
59559
59560
|
while (_iterator__ex2g4s_1.m()) {
|
|
59560
59561
|
var item_1 = _iterator__ex2g4s_1.n();
|
|
59561
|
-
var tmp$ret$10 = $this.
|
|
59562
|
+
var tmp$ret$10 = $this.w9q_1.t9s(item_1, calcPointsSceneData);
|
|
59562
59563
|
destination_1.j(tmp$ret$10);
|
|
59563
59564
|
}
|
|
59564
59565
|
|
|
59565
59566
|
var updatedPlayers = destination_1;
|
|
59566
|
-
var tmp19_$this = $this.
|
|
59567
|
+
var tmp19_$this = $this.z9q_1;
|
|
59567
59568
|
var tmp20_gameHistory = table.gameHistory;
|
|
59568
59569
|
var tmp21_points = calcPointsSceneData.x7k_1;
|
|
59569
59570
|
var tmp22_roundContractState = calcPointsSceneData.b7l(whoChoseSuitPlayerId);
|
|
@@ -59603,7 +59604,7 @@
|
|
|
59603
59604
|
|
|
59604
59605
|
var tmp26_playersGameAnalytics = tmp_3;
|
|
59605
59606
|
var tmp27_playersAchievements = calcPointsSceneData.y7k_1;
|
|
59606
|
-
var tmp28_gameHistory = tmp19_$this.
|
|
59607
|
+
var tmp28_gameHistory = tmp19_$this.f9t(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_gameWinners, tmp26_playersGameAnalytics, tmp27_playersAchievements);
|
|
59607
59608
|
return table.copy(VOID, VOID, VOID, VOID, updatedPlayers, VOID, sceneInfo, VOID, VOID, VOID, VOID, VOID, tmp28_gameHistory);
|
|
59608
59609
|
default:
|
|
59609
59610
|
throw new MechanicException("onCurrentScene: Can't support this scene " + sceneId);
|
|
@@ -59635,30 +59636,30 @@
|
|
|
59635
59636
|
}
|
|
59636
59637
|
function SceneReducer$onPreviousScene$lambda(this$0) {
|
|
59637
59638
|
return function (tbl) {
|
|
59638
|
-
return this$0.
|
|
59639
|
+
return this$0.x9q_1.w9s(tbl);
|
|
59639
59640
|
};
|
|
59640
59641
|
}
|
|
59641
59642
|
function SceneReducer$onPreviousScene$lambda_0(this$0) {
|
|
59642
59643
|
return function (tbl) {
|
|
59643
|
-
return this$0.
|
|
59644
|
+
return this$0.y9q_1.g9t(tbl);
|
|
59644
59645
|
};
|
|
59645
59646
|
}
|
|
59646
59647
|
function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
|
|
59647
|
-
this.
|
|
59648
|
-
this.
|
|
59649
|
-
this.
|
|
59650
|
-
this.
|
|
59651
|
-
this.
|
|
59652
|
-
this.
|
|
59653
|
-
}
|
|
59654
|
-
protoOf(SceneReducer).
|
|
59648
|
+
this.w9q_1 = playerSceneReducer;
|
|
59649
|
+
this.x9q_1 = playerTurnMechanicReducer;
|
|
59650
|
+
this.y9q_1 = tableLifecycleReducer;
|
|
59651
|
+
this.z9q_1 = gameHistoryReducer;
|
|
59652
|
+
this.a9r_1 = dealerReducer;
|
|
59653
|
+
this.b9r_1 = gameParamsProvider;
|
|
59654
|
+
}
|
|
59655
|
+
protoOf(SceneReducer).c9r = function (table, sceneId, sceneData, actId, actData) {
|
|
59655
59656
|
var previousSceneId = table.sceneInfo.p8c_1;
|
|
59656
59657
|
if (!(previousSceneId === 'WAITING') && equals(table.sceneInfo.s8c_1, sceneData)) {
|
|
59657
59658
|
throw new MechanicException('Payload was set twice');
|
|
59658
59659
|
}
|
|
59659
59660
|
return onCurrentScene(this, sceneId, sceneData, actId, actData, onPreviousScene(this, table, previousSceneId), previousSceneId);
|
|
59660
59661
|
};
|
|
59661
|
-
protoOf(SceneReducer).
|
|
59662
|
+
protoOf(SceneReducer).d9t = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
|
|
59662
59663
|
// Inline function 'kotlin.collections.map' call
|
|
59663
59664
|
// Inline function 'kotlin.collections.mapTo' call
|
|
59664
59665
|
var destination = ArrayList_init_$Create$(newPlayersCards.o());
|
|
@@ -59672,19 +59673,19 @@
|
|
|
59672
59673
|
// Inline function 'kotlin.let' call
|
|
59673
59674
|
var it = flatten(destination);
|
|
59674
59675
|
var tmp;
|
|
59675
|
-
if (this.
|
|
59676
|
-
tmp = this.
|
|
59676
|
+
if (this.b9r_1.z92(config)) {
|
|
59677
|
+
tmp = this.a9r_1.h5v(it, cardDeck.u7z_1);
|
|
59677
59678
|
} else {
|
|
59678
59679
|
tmp = it;
|
|
59679
59680
|
}
|
|
59680
59681
|
var playersCardsToRemove = tmp;
|
|
59681
59682
|
var cardsToRemove = plus(playersCardsToRemove, listOfNotNull_0(newTopOpenedCard));
|
|
59682
|
-
var cards = this.
|
|
59683
|
+
var cards = this.a9r_1.g5v(cardDeck.t7z_1, cardsToRemove);
|
|
59683
59684
|
return cardDeck.z8v(cards, VOID, newTopOpenedCard);
|
|
59684
59685
|
};
|
|
59685
59686
|
function TeamsMechanicReducer() {
|
|
59686
59687
|
}
|
|
59687
|
-
protoOf(TeamsMechanicReducer).
|
|
59688
|
+
protoOf(TeamsMechanicReducer).a9s = function (players, action) {
|
|
59688
59689
|
// Inline function 'kotlin.collections.map' call
|
|
59689
59690
|
var this_0 = action.k8a_1.k6g_1;
|
|
59690
59691
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -59724,10 +59725,10 @@
|
|
|
59724
59725
|
return destination_1;
|
|
59725
59726
|
};
|
|
59726
59727
|
function TradeMechanicReducer(logger, gameHistoryReducer) {
|
|
59727
|
-
this.
|
|
59728
|
-
this.
|
|
59728
|
+
this.w9r_1 = logger;
|
|
59729
|
+
this.x9r_1 = gameHistoryReducer;
|
|
59729
59730
|
}
|
|
59730
|
-
protoOf(TradeMechanicReducer).
|
|
59731
|
+
protoOf(TradeMechanicReducer).z9r = function (state, action) {
|
|
59731
59732
|
var table = state.t6w();
|
|
59732
59733
|
// Inline function 'kotlin.with' call
|
|
59733
59734
|
var player = getPlayer(table.players, action.s8a_1);
|
|
@@ -59735,7 +59736,7 @@
|
|
|
59735
59736
|
var it = player.w6z_1.f79();
|
|
59736
59737
|
var tmp;
|
|
59737
59738
|
if (it == null) {
|
|
59738
|
-
this.
|
|
59739
|
+
this.w9r_1.w(VOID, "Can't support this circle increment");
|
|
59739
59740
|
tmp = player.w6z_1.y74_1;
|
|
59740
59741
|
} else {
|
|
59741
59742
|
tmp = it;
|
|
@@ -59763,17 +59764,17 @@
|
|
|
59763
59764
|
destination.j(tmp$ret$2);
|
|
59764
59765
|
}
|
|
59765
59766
|
var tmp_2 = destination;
|
|
59766
|
-
var tmp0_$this = this.
|
|
59767
|
+
var tmp0_$this = this.x9r_1;
|
|
59767
59768
|
var tmp1_playerId = player.playerId;
|
|
59768
59769
|
var tmp2_suit = action.q8a_1;
|
|
59769
59770
|
var tmp3_gameHistory = table.gameHistory;
|
|
59770
59771
|
var tmp4_players = table.players;
|
|
59771
59772
|
var tmp5_playersMode = table.config.playersMode;
|
|
59772
|
-
tmp_0 = state.e9d(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.
|
|
59773
|
+
tmp_0 = state.e9d(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.h9t(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
|
|
59773
59774
|
}
|
|
59774
59775
|
return tmp_0;
|
|
59775
59776
|
};
|
|
59776
|
-
protoOf(TradeMechanicReducer).
|
|
59777
|
+
protoOf(TradeMechanicReducer).y9r = function (state, action) {
|
|
59777
59778
|
var table = state.t6w();
|
|
59778
59779
|
// Inline function 'kotlin.collections.map' call
|
|
59779
59780
|
var this_0 = table.players;
|
|
@@ -59791,13 +59792,13 @@
|
|
|
59791
59792
|
return valueToFind.h7a_1 === value.h7a_1;
|
|
59792
59793
|
}
|
|
59793
59794
|
function CombinationsMechanicReducer(teamsLogicProvider, combinationsInteractor, dealerReducer, playerHandReducer, gameHistoryReducer) {
|
|
59794
|
-
this.
|
|
59795
|
-
this.
|
|
59796
|
-
this.
|
|
59797
|
-
this.
|
|
59798
|
-
this.
|
|
59795
|
+
this.g9r_1 = teamsLogicProvider;
|
|
59796
|
+
this.h9r_1 = combinationsInteractor;
|
|
59797
|
+
this.i9r_1 = dealerReducer;
|
|
59798
|
+
this.j9r_1 = playerHandReducer;
|
|
59799
|
+
this.k9r_1 = gameHistoryReducer;
|
|
59799
59800
|
}
|
|
59800
|
-
protoOf(CombinationsMechanicReducer).
|
|
59801
|
+
protoOf(CombinationsMechanicReducer).i9t = function (whoGotBribePlayerId, playerCombinations, players, config) {
|
|
59801
59802
|
var bellaCombination = first(playerCombinations.h8x_1);
|
|
59802
59803
|
var player = getPlayer(players, playerCombinations.g8x_1);
|
|
59803
59804
|
if (bellaCombination.j7a_1.equals(CombinationState_NOT_ACCEPTED_getInstance())) {
|
|
@@ -59806,7 +59807,7 @@
|
|
|
59806
59807
|
var tmp;
|
|
59807
59808
|
if (config.rules.protectBella) {
|
|
59808
59809
|
var playerWithBellaGotBribe = player.playerId === whoGotBribePlayerId;
|
|
59809
|
-
var partnerGotBribe = config.playersMode.isTeamGame && this.
|
|
59810
|
+
var partnerGotBribe = config.playersMode.isTeamGame && this.g9r_1.n91(player.playerId, players).playerId === whoGotBribePlayerId;
|
|
59810
59811
|
var tmp_0;
|
|
59811
59812
|
if (playerWithBellaGotBribe || partnerGotBribe) {
|
|
59812
59813
|
tmp_0 = bellaCombination.t7a(VOID, VOID, CombinationState_ACCEPTED_getInstance());
|
|
@@ -59820,7 +59821,7 @@
|
|
|
59820
59821
|
return tmp;
|
|
59821
59822
|
}
|
|
59822
59823
|
};
|
|
59823
|
-
protoOf(CombinationsMechanicReducer).
|
|
59824
|
+
protoOf(CombinationsMechanicReducer).l9r = function (state, action) {
|
|
59824
59825
|
var table = state.t6w();
|
|
59825
59826
|
var players = table.players;
|
|
59826
59827
|
var config = table.config;
|
|
@@ -59851,7 +59852,7 @@
|
|
|
59851
59852
|
}
|
|
59852
59853
|
var passedPlayersCombinations = destination;
|
|
59853
59854
|
// Inline function 'kotlin.collections.filterNot' call
|
|
59854
|
-
var tmp0 = this.
|
|
59855
|
+
var tmp0 = this.h9r_1.n95(players);
|
|
59855
59856
|
// Inline function 'kotlin.collections.filterNotTo' call
|
|
59856
59857
|
var destination_1 = ArrayList_init_$Create$_0();
|
|
59857
59858
|
var _iterator__ex2g4s_1 = tmp0.l();
|
|
@@ -59898,10 +59899,10 @@
|
|
|
59898
59899
|
var tmp0_elvis_lhs_0 = rejectedPlayersCombinations.b2(item_1.playerId);
|
|
59899
59900
|
var tmp$ret$18 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
|
|
59900
59901
|
var updatedCombinations = plus(tmp_0, tmp$ret$18);
|
|
59901
|
-
var tmp0_$this = this.
|
|
59902
|
+
var tmp0_$this = this.j9r_1;
|
|
59902
59903
|
var tmp1_playerId = item_1.playerId;
|
|
59903
59904
|
var tmp2_hand = item_1.x6z_1;
|
|
59904
|
-
var tmp_1 = tmp0_$this.
|
|
59905
|
+
var tmp_1 = tmp0_$this.r9s(tmp1_playerId, tmp2_hand, updatedCombinations, config);
|
|
59905
59906
|
tmp = item_1.c75(VOID, VOID, VOID, VOID, tmp_1, item_1.y6z_1.j79(VOID, updateOrAddItems(item_1.y6z_1.b76_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
|
|
59906
59907
|
} else {
|
|
59907
59908
|
tmp = item_1;
|
|
@@ -59909,9 +59910,9 @@
|
|
|
59909
59910
|
var tmp$ret$19 = tmp;
|
|
59910
59911
|
destination_4.j(tmp$ret$19);
|
|
59911
59912
|
}
|
|
59912
|
-
return state.e9d(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
59913
|
+
return state.e9d(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.k9r_1.j9t(action.j8b_1, table.gameHistory)));
|
|
59913
59914
|
};
|
|
59914
|
-
protoOf(CombinationsMechanicReducer).
|
|
59915
|
+
protoOf(CombinationsMechanicReducer).v9r = function (state, action) {
|
|
59915
59916
|
var table = state.t6w();
|
|
59916
59917
|
var player = getPlayer(table.players, action.z8a_1);
|
|
59917
59918
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -59966,13 +59967,13 @@
|
|
|
59966
59967
|
// Inline function 'kotlin.let' call
|
|
59967
59968
|
|
|
59968
59969
|
var cards = player.v6z_1;
|
|
59969
|
-
var newCards = this.
|
|
59970
|
-
var tmp1_cards = this.
|
|
59970
|
+
var newCards = this.i9r_1.h5v(cards, trumpSevenCard);
|
|
59971
|
+
var tmp1_cards = this.i9r_1.i5v(newCards, trumpCard);
|
|
59971
59972
|
var tmp3_players = updateItem(table.players, player.c75(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
|
|
59972
|
-
var tmp4_gameHistory = this.
|
|
59973
|
+
var tmp4_gameHistory = this.k9r_1.k9t(player.playerId, listOf(announcedCombination.i7a_1), VOID, table.gameHistory);
|
|
59973
59974
|
return state.e9d(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
|
|
59974
59975
|
case 6:
|
|
59975
|
-
return state.e9d(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.c75(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.
|
|
59976
|
+
return state.e9d(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.c75(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.k9r_1.k9t(player.playerId, listOf(announcedCombination.i7a_1), VOID, table.gameHistory)));
|
|
59976
59977
|
default:
|
|
59977
59978
|
throw new MechanicException("Can't support this combination " + announcedCombination.toString());
|
|
59978
59979
|
}
|
|
@@ -60053,7 +60054,7 @@
|
|
|
60053
60054
|
destination.j(tmp$ret$1);
|
|
60054
60055
|
}
|
|
60055
60056
|
var updatedCombinations = destination;
|
|
60056
|
-
var tmp1_cards = $this.
|
|
60057
|
+
var tmp1_cards = $this.p9r_1.h5v(player.v6z_1, card);
|
|
60057
60058
|
var tmp2_points = player.y6z_1.j79(VOID, updatedCombinations);
|
|
60058
60059
|
var tmp3_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.round.selectedTrump);
|
|
60059
60060
|
return player.c75(VOID, VOID, tmp1_cards, VOID, tmp3_hand, tmp2_points);
|
|
@@ -60072,11 +60073,11 @@
|
|
|
60072
60073
|
}
|
|
60073
60074
|
var tmp2_combinations = tmp;
|
|
60074
60075
|
var tmp4_points = tmp0_$this.j79(VOID, tmp2_combinations, tmp1_earnedCards);
|
|
60075
|
-
var tmp5_hand = $this.
|
|
60076
|
+
var tmp5_hand = $this.r9r_1.q9s(player.x6z_1, combinations);
|
|
60076
60077
|
return player.c75(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
|
|
60077
60078
|
}
|
|
60078
60079
|
function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config) {
|
|
60079
|
-
var bellaCombination = $this.
|
|
60080
|
+
var bellaCombination = $this.o9r_1.m95(players);
|
|
60080
60081
|
// Inline function 'kotlin.collections.associate' call
|
|
60081
60082
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(players, 10)), 16);
|
|
60082
60083
|
// Inline function 'kotlin.collections.associateTo' call
|
|
@@ -60097,7 +60098,7 @@
|
|
|
60097
60098
|
var hasBellaCombination = !(bellaCombination == null) && bellaCombination.g8x_1 === player.playerId;
|
|
60098
60099
|
var tmp;
|
|
60099
60100
|
if (isGotLastBribe) {
|
|
60100
|
-
tmp = $this.
|
|
60101
|
+
tmp = $this.n9r_1.w79(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_179.d8w(CombinationType_BONUS_LAST_BRIBE_getInstance(), config));
|
|
60101
60102
|
} else {
|
|
60102
60103
|
tmp = null;
|
|
60103
60104
|
}
|
|
@@ -60117,7 +60118,7 @@
|
|
|
60117
60118
|
}
|
|
60118
60119
|
}
|
|
60119
60120
|
var tmp$ret$2 = tmp$ret$1;
|
|
60120
|
-
tmp_1 = $this.
|
|
60121
|
+
tmp_1 = $this.m9r_1.i9t(whoGotBribePlayerId, tmp$ret$2, players, config);
|
|
60121
60122
|
} else {
|
|
60122
60123
|
tmp_1 = null;
|
|
60123
60124
|
}
|
|
@@ -60182,15 +60183,15 @@
|
|
|
60182
60183
|
return value1.h7a_1 === value2.h7a_1;
|
|
60183
60184
|
}
|
|
60184
60185
|
function EarnPointsMechanicReducer(combinationsMechanicReducer, combinationsFactory, combinationsInteractor, dealerReducer, gameHistoryReducer, playerHandReducer, logger) {
|
|
60185
|
-
this.
|
|
60186
|
-
this.
|
|
60187
|
-
this.
|
|
60188
|
-
this.
|
|
60189
|
-
this.
|
|
60190
|
-
this.
|
|
60191
|
-
this.
|
|
60192
|
-
}
|
|
60193
|
-
protoOf(EarnPointsMechanicReducer).
|
|
60186
|
+
this.m9r_1 = combinationsMechanicReducer;
|
|
60187
|
+
this.n9r_1 = combinationsFactory;
|
|
60188
|
+
this.o9r_1 = combinationsInteractor;
|
|
60189
|
+
this.p9r_1 = dealerReducer;
|
|
60190
|
+
this.q9r_1 = gameHistoryReducer;
|
|
60191
|
+
this.r9r_1 = playerHandReducer;
|
|
60192
|
+
this.s9r_1 = logger;
|
|
60193
|
+
}
|
|
60194
|
+
protoOf(EarnPointsMechanicReducer).u9r = function (state, action) {
|
|
60194
60195
|
var table = state.t6w();
|
|
60195
60196
|
var player = getPlayer(table.players, action.d8b_1);
|
|
60196
60197
|
var cardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action.d8b_1, table.cardsOnTable.o(), action.b8b_1));
|
|
@@ -60212,13 +60213,13 @@
|
|
|
60212
60213
|
var tmp$ret$0 = item.u7j_1;
|
|
60213
60214
|
destination.j(tmp$ret$0);
|
|
60214
60215
|
}
|
|
60215
|
-
tmp = this.
|
|
60216
|
+
tmp = this.q9r_1.k9t(tmp_0, destination, VOID, table.gameHistory);
|
|
60216
60217
|
}
|
|
60217
60218
|
var tmp1_elvis_lhs = tmp;
|
|
60218
60219
|
var tmp4_gameHistory = tmp1_elvis_lhs == null ? table.gameHistory : tmp1_elvis_lhs;
|
|
60219
60220
|
return state.e9d(tmp2_$this.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, cardsOnTheTable, VOID, VOID, VOID, VOID, tmp4_gameHistory));
|
|
60220
60221
|
};
|
|
60221
|
-
protoOf(EarnPointsMechanicReducer).
|
|
60222
|
+
protoOf(EarnPointsMechanicReducer).t9r = function (state, action) {
|
|
60222
60223
|
var table = state.t6w();
|
|
60223
60224
|
var players = table.players;
|
|
60224
60225
|
var cardsOnTable = table.cardsOnTable;
|
|
@@ -60243,7 +60244,7 @@
|
|
|
60243
60244
|
destination_0.j(tmp$ret$3);
|
|
60244
60245
|
}
|
|
60245
60246
|
if (!(toSet(destination_0).o() === 1)) {
|
|
60246
|
-
this.
|
|
60247
|
+
this.s9r_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
|
|
60247
60248
|
}
|
|
60248
60249
|
var playersCombinations = addPlayersCombinationsWhenPickBribe(this, action.g8b_1, players, config);
|
|
60249
60250
|
var bribe = new Bribe(cardsOnTable);
|
|
@@ -60259,7 +60260,7 @@
|
|
|
60259
60260
|
destination_1.j(tmp$ret$6);
|
|
60260
60261
|
}
|
|
60261
60262
|
var tmp3_gameInfo = table.gameInfo.w8u(VOID, VOID, table.gameInfo.round.copy(VOID, action.h8b_1));
|
|
60262
|
-
var tmp4_gameHistory = this.
|
|
60263
|
+
var tmp4_gameHistory = this.q9r_1.l9t(action.g8b_1, bribe, action.h8b_1, playersCombinations, table.gameHistory);
|
|
60263
60264
|
return state.e9d(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, VOID, tmp1_cardsOnTable, tmp0_bribes, VOID, VOID, tmp3_gameInfo, tmp4_gameHistory));
|
|
60264
60265
|
};
|
|
60265
60266
|
function randomDataReducer($this, randomData, metadata) {
|
|
@@ -60267,7 +60268,7 @@
|
|
|
60267
60268
|
return metadata;
|
|
60268
60269
|
}
|
|
60269
60270
|
if (!(metadata.randomData == null) && (!(metadata.randomData.id === randomData.id) || !(metadata.randomData.signature == randomData.signature))) {
|
|
60270
|
-
$this.
|
|
60271
|
+
$this.a9t_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
|
|
60271
60272
|
}
|
|
60272
60273
|
var tmp0_safe_receiver = metadata.randomData;
|
|
60273
60274
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.indexes;
|
|
@@ -60279,12 +60280,12 @@
|
|
|
60279
60280
|
return _this__u8e3s4.copy(VOID, VOID, updateLastItem(_this__u8e3s4.rounds, roundHistory.copy(VOID, plus_1(roundHistory.items, items))));
|
|
60280
60281
|
}
|
|
60281
60282
|
function GameHistoryReducer(pointsInteractor, teamsLogicProvider, gameLogicConfig, logger) {
|
|
60282
|
-
this.
|
|
60283
|
-
this.
|
|
60284
|
-
this.
|
|
60285
|
-
this.
|
|
60283
|
+
this.x9s_1 = pointsInteractor;
|
|
60284
|
+
this.y9s_1 = teamsLogicProvider;
|
|
60285
|
+
this.z9s_1 = gameLogicConfig;
|
|
60286
|
+
this.a9t_1 = logger;
|
|
60286
60287
|
}
|
|
60287
|
-
protoOf(GameHistoryReducer).
|
|
60288
|
+
protoOf(GameHistoryReducer).m9t = function (gameHistory) {
|
|
60288
60289
|
var roundNumber = gameHistory.rounds.length;
|
|
60289
60290
|
var tmp0 = gameHistory.rounds;
|
|
60290
60291
|
// Inline function 'kotlin.collections.plus' call
|
|
@@ -60296,7 +60297,7 @@
|
|
|
60296
60297
|
var tmp$ret$4 = tmp0.concat(tmp$ret$3);
|
|
60297
60298
|
return gameHistory.copy(VOID, VOID, tmp$ret$4);
|
|
60298
60299
|
};
|
|
60299
|
-
protoOf(GameHistoryReducer).
|
|
60300
|
+
protoOf(GameHistoryReducer).c9t = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
|
|
60300
60301
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
60301
60302
|
var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.u7z_1, System_instance.ck());
|
|
60302
60303
|
// Inline function 'kotlin.collections.mapValues' call
|
|
@@ -60314,14 +60315,14 @@
|
|
|
60314
60315
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
60315
60316
|
return gameHistory.copy(VOID, VOID, tmp_1, VOID, randomDataReducer(this, randomData, tmp0_elvis_lhs == null ? Companion_instance_188.initial() : tmp0_elvis_lhs));
|
|
60316
60317
|
};
|
|
60317
|
-
protoOf(GameHistoryReducer).
|
|
60318
|
+
protoOf(GameHistoryReducer).h9t = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
|
|
60318
60319
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
60319
60320
|
var tmp;
|
|
60320
60321
|
if (playersMode.isTeamGame) {
|
|
60321
60322
|
// Inline function 'kotlin.arrayOf' call
|
|
60322
60323
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
60323
60324
|
// Inline function 'kotlin.js.asDynamic' call
|
|
60324
|
-
tmp = [playerId, this.
|
|
60325
|
+
tmp = [playerId, this.y9s_1.n91(playerId, players).playerId];
|
|
60325
60326
|
} else {
|
|
60326
60327
|
// Inline function 'kotlin.arrayOf' call
|
|
60327
60328
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -60331,7 +60332,7 @@
|
|
|
60331
60332
|
var roundCommitted = tmp;
|
|
60332
60333
|
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)));
|
|
60333
60334
|
};
|
|
60334
|
-
protoOf(GameHistoryReducer).
|
|
60335
|
+
protoOf(GameHistoryReducer).e9t = function (playersCards, gameHistory) {
|
|
60335
60336
|
// Inline function 'kotlin.collections.mapValues' call
|
|
60336
60337
|
// Inline function 'kotlin.collections.mapValuesTo' call
|
|
60337
60338
|
var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.o()));
|
|
@@ -60345,14 +60346,14 @@
|
|
|
60345
60346
|
}
|
|
60346
60347
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayersCardsItem(destination, 1, System_instance.ck())));
|
|
60347
60348
|
};
|
|
60348
|
-
protoOf(GameHistoryReducer).
|
|
60349
|
+
protoOf(GameHistoryReducer).n9t = function (playerId, combinations, combinationsStates, gameHistory) {
|
|
60349
60350
|
return addItemsToCurrentRound(this, gameHistory, listOf(new CombinationAnnounceItem(playerId, combinations, combinationsStates, System_instance.ck())));
|
|
60350
60351
|
};
|
|
60351
|
-
protoOf(GameHistoryReducer).
|
|
60352
|
+
protoOf(GameHistoryReducer).k9t = function (playerId, combinations, combinationsStates, gameHistory, $super) {
|
|
60352
60353
|
combinationsStates = combinationsStates === VOID ? null : combinationsStates;
|
|
60353
|
-
return $super === VOID ? this.
|
|
60354
|
+
return $super === VOID ? this.n9t(playerId, combinations, combinationsStates, gameHistory) : $super.n9t.call(this, playerId, combinations, combinationsStates, gameHistory);
|
|
60354
60355
|
};
|
|
60355
|
-
protoOf(GameHistoryReducer).
|
|
60356
|
+
protoOf(GameHistoryReducer).l9t = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
|
|
60356
60357
|
var tmp = listOf(new BribeItem(whoGotBribePlayerId, bribe.r7z_1, numberOfBribe, System_instance.ck()));
|
|
60357
60358
|
// Inline function 'kotlin.collections.mapNotNull' call
|
|
60358
60359
|
// Inline function 'kotlin.collections.mapNotNullTo' call
|
|
@@ -60411,7 +60412,7 @@
|
|
|
60411
60412
|
}
|
|
60412
60413
|
return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
|
|
60413
60414
|
};
|
|
60414
|
-
protoOf(GameHistoryReducer).
|
|
60415
|
+
protoOf(GameHistoryReducer).j9t = function (winnerCombinations, gameHistory) {
|
|
60415
60416
|
// Inline function 'kotlin.collections.map' call
|
|
60416
60417
|
// Inline function 'kotlin.collections.mapTo' call
|
|
60417
60418
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(winnerCombinations, 10));
|
|
@@ -60427,7 +60428,7 @@
|
|
|
60427
60428
|
}
|
|
60428
60429
|
return addItemsToCurrentRound(this, gameHistory, destination);
|
|
60429
60430
|
};
|
|
60430
|
-
protoOf(GameHistoryReducer).
|
|
60431
|
+
protoOf(GameHistoryReducer).b9t = function (playerId, previousConnection, playerConnection, gameHistory) {
|
|
60431
60432
|
if (playerConnection == null) {
|
|
60432
60433
|
return gameHistory;
|
|
60433
60434
|
}
|
|
@@ -60439,17 +60440,17 @@
|
|
|
60439
60440
|
tmp = false;
|
|
60440
60441
|
}
|
|
60441
60442
|
var isShortDisconnectState = tmp;
|
|
60442
|
-
if (isSupportedReason && !isShortDisconnectState || this.
|
|
60443
|
+
if (isSupportedReason && !isShortDisconnectState || this.z9s_1.verboseGameHistory) {
|
|
60443
60444
|
return addItemsToCurrentRound(this, gameHistory, listOf(new PlayerConnectionItem(playerId, playerConnection.y6e_1, playerConnection.g6f(), System_instance.ck())));
|
|
60444
60445
|
}
|
|
60445
60446
|
return gameHistory;
|
|
60446
60447
|
};
|
|
60447
|
-
protoOf(GameHistoryReducer).
|
|
60448
|
+
protoOf(GameHistoryReducer).f9t = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
|
|
60448
60449
|
var currentRoundHistory = last_0(gameHistory.rounds);
|
|
60449
60450
|
var tmp0_elvis_lhs = gameHistory.metadata;
|
|
60450
60451
|
var currentMetadata = tmp0_elvis_lhs == null ? Companion_instance_188.initial() : tmp0_elvis_lhs;
|
|
60451
60452
|
var tmp;
|
|
60452
|
-
if (this.
|
|
60453
|
+
if (this.z9s_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
|
|
60453
60454
|
// Inline function 'kotlin.collections.map' call
|
|
60454
60455
|
// Inline function 'kotlin.collections.mapTo' call
|
|
60455
60456
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(playersGameAnalytics, 10));
|
|
@@ -60464,7 +60465,7 @@
|
|
|
60464
60465
|
tmp = currentMetadata;
|
|
60465
60466
|
}
|
|
60466
60467
|
var updatedMetadata = tmp;
|
|
60467
|
-
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.
|
|
60468
|
+
var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.x9s_1.i99(points), System_instance.ck())));
|
|
60468
60469
|
var tmp2_rounds = updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, tmp1_items, roundCommitted, roundContractState, roundWinners));
|
|
60469
60470
|
return gameHistory.copy(VOID, VOID, tmp2_rounds, gameWinners, updatedMetadata);
|
|
60470
60471
|
};
|
|
@@ -60489,7 +60490,7 @@
|
|
|
60489
60490
|
tmp = cardDeck;
|
|
60490
60491
|
}
|
|
60491
60492
|
var newCardDeck = tmp;
|
|
60492
|
-
return new PreviousRound(bribes, newCardDeck, $this.
|
|
60493
|
+
return new PreviousRound(bribes, newCardDeck, $this.q9t_1.j99(players, config));
|
|
60493
60494
|
}
|
|
60494
60495
|
function roundFinishedGameInfoReducer($this, table) {
|
|
60495
60496
|
var gameInfo = table.gameInfo;
|
|
@@ -60542,10 +60543,10 @@
|
|
|
60542
60543
|
return points.i79(0, emptyList(), emptyList());
|
|
60543
60544
|
}
|
|
60544
60545
|
function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
|
|
60545
|
-
this.
|
|
60546
|
-
this.
|
|
60546
|
+
this.q9t_1 = pointsInteractor;
|
|
60547
|
+
this.r9t_1 = historyReducer;
|
|
60547
60548
|
}
|
|
60548
|
-
protoOf(TableLifecycleReducerImpl).
|
|
60549
|
+
protoOf(TableLifecycleReducerImpl).o9t = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
|
|
60549
60550
|
var tmp = Companion_instance_176;
|
|
60550
60551
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
60551
60552
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
@@ -60577,7 +60578,7 @@
|
|
|
60577
60578
|
}
|
|
60578
60579
|
return tmp.initial(tableId, gameId, version, config, tmp_1, destination_0);
|
|
60579
60580
|
};
|
|
60580
|
-
protoOf(TableLifecycleReducerImpl).
|
|
60581
|
+
protoOf(TableLifecycleReducerImpl).k9s = function (table) {
|
|
60581
60582
|
var tmp0_sceneInfo = new SceneInfo('WAITING');
|
|
60582
60583
|
// Inline function 'kotlin.collections.map' call
|
|
60583
60584
|
var this_0 = table.players;
|
|
@@ -60592,10 +60593,10 @@
|
|
|
60592
60593
|
var tmp2_cardsOnTable = emptyList();
|
|
60593
60594
|
var tmp3_bribes = emptyList();
|
|
60594
60595
|
var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
|
|
60595
|
-
var tmp5_gameHistory = this.
|
|
60596
|
+
var tmp5_gameHistory = this.r9t_1.m9t(table.gameHistory);
|
|
60596
60597
|
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, VOID, VOID, tmp4_gameInfo, tmp5_gameHistory);
|
|
60597
60598
|
};
|
|
60598
|
-
protoOf(TableLifecycleReducerImpl).
|
|
60599
|
+
protoOf(TableLifecycleReducerImpl).g9t = function (table) {
|
|
60599
60600
|
// Inline function 'kotlin.collections.map' call
|
|
60600
60601
|
var this_0 = table.players;
|
|
60601
60602
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -60606,9 +60607,9 @@
|
|
|
60606
60607
|
var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
|
|
60607
60608
|
destination.j(tmp$ret$0);
|
|
60608
60609
|
}
|
|
60609
|
-
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.
|
|
60610
|
+
return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.r9t_1.m9t(table.gameHistory));
|
|
60610
60611
|
};
|
|
60611
|
-
protoOf(TableLifecycleReducerImpl).
|
|
60612
|
+
protoOf(TableLifecycleReducerImpl).p9t = function (table, newGameId) {
|
|
60612
60613
|
// Inline function 'kotlin.collections.map' call
|
|
60613
60614
|
var this_0 = table.players;
|
|
60614
60615
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -60647,93 +60648,93 @@
|
|
|
60647
60648
|
return true;
|
|
60648
60649
|
}
|
|
60649
60650
|
function resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
60650
|
-
this.
|
|
60651
|
-
this.
|
|
60652
|
-
this.
|
|
60653
|
-
this.
|
|
60651
|
+
this.s9t_1 = $isEnableForPlayer;
|
|
60652
|
+
this.t9t_1 = $playerTurnInteractor;
|
|
60653
|
+
this.u9t_1 = $logger;
|
|
60654
|
+
this.v9t_1 = $playerTurnMechanicReducer;
|
|
60654
60655
|
}
|
|
60655
60656
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).x6n = function (action) {
|
|
60656
60657
|
return isInterface(action, PlayerAnswerFromClientAction);
|
|
60657
60658
|
};
|
|
60658
|
-
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).
|
|
60659
|
+
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
|
|
60659
60660
|
var tmp2 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
|
|
60660
60661
|
var tmp$ret$0;
|
|
60661
60662
|
$l$block: {
|
|
60662
60663
|
var table = state.t6w();
|
|
60663
60664
|
var player = getPlayer(table.players, tmp2.playerId);
|
|
60664
|
-
if (!this.
|
|
60665
|
+
if (!this.s9t_1(player)) {
|
|
60665
60666
|
tmp$ret$0 = state;
|
|
60666
60667
|
break $l$block;
|
|
60667
60668
|
}
|
|
60668
|
-
var turnModel = this.
|
|
60669
|
+
var turnModel = this.t9t_1.n9a(player, tmp2);
|
|
60669
60670
|
var tmp;
|
|
60670
60671
|
if (turnModel == null) {
|
|
60671
|
-
this.
|
|
60672
|
+
this.u9t_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
60672
60673
|
tmp = state;
|
|
60673
60674
|
} else {
|
|
60674
|
-
tmp = state.e9d(this.
|
|
60675
|
+
tmp = state.e9d(this.v9t_1.v9s(table, turnModel));
|
|
60675
60676
|
}
|
|
60676
60677
|
tmp$ret$0 = tmp;
|
|
60677
60678
|
}
|
|
60678
60679
|
return tmp$ret$0;
|
|
60679
60680
|
};
|
|
60680
60681
|
protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
|
|
60681
|
-
return this.
|
|
60682
|
+
return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
60682
60683
|
};
|
|
60683
60684
|
function resetPlayerTurnWhenAnswerReducer$lambda(it) {
|
|
60684
60685
|
return true;
|
|
60685
60686
|
}
|
|
60686
60687
|
function resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
|
|
60687
|
-
this.
|
|
60688
|
-
this.
|
|
60689
|
-
this.
|
|
60690
|
-
this.
|
|
60688
|
+
this.w9t_1 = $isEnableForPlayer;
|
|
60689
|
+
this.x9t_1 = $playerTurnInteractor;
|
|
60690
|
+
this.y9t_1 = $logger;
|
|
60691
|
+
this.z9t_1 = $playerTurnMechanicReducer;
|
|
60691
60692
|
}
|
|
60692
60693
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).x6n = function (action) {
|
|
60693
60694
|
return isInterface(action, PlayerTurnAnswerAction);
|
|
60694
60695
|
};
|
|
60695
|
-
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).
|
|
60696
|
+
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
|
|
60696
60697
|
var tmp2 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
|
|
60697
60698
|
var tmp$ret$0;
|
|
60698
60699
|
$l$block: {
|
|
60699
60700
|
var table = state.t6w();
|
|
60700
60701
|
var player = getPlayerTurn(tmp2, table.players);
|
|
60701
|
-
if (player == null || !this.
|
|
60702
|
+
if (player == null || !this.w9t_1(player)) {
|
|
60702
60703
|
tmp$ret$0 = state;
|
|
60703
60704
|
break $l$block;
|
|
60704
60705
|
}
|
|
60705
|
-
var turnModel = this.
|
|
60706
|
+
var turnModel = this.x9t_1.n9a(player, tmp2);
|
|
60706
60707
|
var tmp;
|
|
60707
60708
|
if (turnModel == null) {
|
|
60708
|
-
this.
|
|
60709
|
+
this.y9t_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
|
|
60709
60710
|
tmp = state;
|
|
60710
60711
|
} else {
|
|
60711
|
-
tmp = state.e9d(this.
|
|
60712
|
+
tmp = state.e9d(this.z9t_1.v9s(table, turnModel));
|
|
60712
60713
|
}
|
|
60713
60714
|
tmp$ret$0 = tmp;
|
|
60714
60715
|
}
|
|
60715
60716
|
return tmp$ret$0;
|
|
60716
60717
|
};
|
|
60717
60718
|
protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
|
|
60718
|
-
return this.
|
|
60719
|
+
return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
60719
60720
|
};
|
|
60720
60721
|
function setPlayerTurnReducer(playerTurnInteractor, playerTurnMechanicReducer) {
|
|
60721
60722
|
// Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
|
|
60722
60723
|
return new setPlayerTurnReducer$$inlined$reducerForActionType$1(playerTurnInteractor, playerTurnMechanicReducer);
|
|
60723
60724
|
}
|
|
60724
60725
|
function setPlayerTurnReducer$$inlined$reducerForActionType$1($playerTurnInteractor, $playerTurnMechanicReducer) {
|
|
60725
|
-
this.
|
|
60726
|
-
this.
|
|
60726
|
+
this.a9u_1 = $playerTurnInteractor;
|
|
60727
|
+
this.b9u_1 = $playerTurnMechanicReducer;
|
|
60727
60728
|
}
|
|
60728
60729
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).x6n = function (action) {
|
|
60729
60730
|
return isInterface(action, NextPlayerTurnAction);
|
|
60730
60731
|
};
|
|
60731
|
-
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).
|
|
60732
|
+
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).v9q = function (state, action) {
|
|
60732
60733
|
var tmp2 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
|
|
60733
60734
|
var tmp$ret$0;
|
|
60734
60735
|
$l$block: {
|
|
60735
60736
|
var table = state.t6w();
|
|
60736
|
-
var tmp0_elvis_lhs = this.
|
|
60737
|
+
var tmp0_elvis_lhs = this.a9u_1.m9a(tmp2, table);
|
|
60737
60738
|
var tmp;
|
|
60738
60739
|
if (tmp0_elvis_lhs == null) {
|
|
60739
60740
|
tmp$ret$0 = state;
|
|
@@ -60742,12 +60743,12 @@
|
|
|
60742
60743
|
tmp = tmp0_elvis_lhs;
|
|
60743
60744
|
}
|
|
60744
60745
|
var turnModel = tmp;
|
|
60745
|
-
tmp$ret$0 = state.e9d(this.
|
|
60746
|
+
tmp$ret$0 = state.e9d(this.b9u_1.u9s(table, turnModel));
|
|
60746
60747
|
}
|
|
60747
60748
|
return tmp$ret$0;
|
|
60748
60749
|
};
|
|
60749
60750
|
protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).n6p = function (state, action) {
|
|
60750
|
-
return this.
|
|
60751
|
+
return this.v9q((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
|
|
60751
60752
|
};
|
|
60752
60753
|
function get_isCreated(_this__u8e3s4) {
|
|
60753
60754
|
return _this__u8e3s4.gameLifecycleState.isCreated;
|
|
@@ -60763,7 +60764,7 @@
|
|
|
60763
60764
|
}
|
|
60764
60765
|
function Companion_194() {
|
|
60765
60766
|
}
|
|
60766
|
-
protoOf(Companion_194).
|
|
60767
|
+
protoOf(Companion_194).c9u = function (payload) {
|
|
60767
60768
|
var tmp;
|
|
60768
60769
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
60769
60770
|
tmp = toLoggerPayload_0(payload);
|
|
@@ -60795,27 +60796,27 @@
|
|
|
60795
60796
|
tmp = payloadMapper;
|
|
60796
60797
|
}
|
|
60797
60798
|
payloadMapper = tmp;
|
|
60798
|
-
this.
|
|
60799
|
-
this.
|
|
60799
|
+
this.d9u_1 = logger;
|
|
60800
|
+
this.e9u_1 = payloadMapper;
|
|
60800
60801
|
}
|
|
60801
60802
|
protoOf(CallbackWrapperLoggerOutput).l51 = function (tag, message, payload) {
|
|
60802
|
-
this.
|
|
60803
|
+
this.d9u_1.d(tag, message, this.e9u_1(payload));
|
|
60803
60804
|
};
|
|
60804
60805
|
protoOf(CallbackWrapperLoggerOutput).m51 = function (tag, message, exception, payload) {
|
|
60805
|
-
this.
|
|
60806
|
+
this.d9u_1.e(tag, message, exception, this.e9u_1(payload));
|
|
60806
60807
|
};
|
|
60807
60808
|
protoOf(CallbackWrapperLoggerOutput).p51 = function (tag, message, payload) {
|
|
60808
|
-
this.
|
|
60809
|
+
this.d9u_1.i(tag, message, this.e9u_1(payload));
|
|
60809
60810
|
};
|
|
60810
60811
|
protoOf(CallbackWrapperLoggerOutput).o51 = function (tag, message, exception, payload) {
|
|
60811
|
-
this.
|
|
60812
|
+
this.d9u_1.v(tag, message, exception, this.e9u_1(payload));
|
|
60812
60813
|
};
|
|
60813
60814
|
protoOf(CallbackWrapperLoggerOutput).n51 = function (tag, message, exception, payload) {
|
|
60814
|
-
this.
|
|
60815
|
+
this.d9u_1.w(tag, message, exception, this.e9u_1(payload));
|
|
60815
60816
|
};
|
|
60816
60817
|
function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
|
|
60817
|
-
this.
|
|
60818
|
-
this.
|
|
60818
|
+
this.n9u_1 = $$this$unsafeFlow;
|
|
60819
|
+
this.o9u_1 = $types;
|
|
60819
60820
|
CoroutineImpl.call(this, resultContinuation);
|
|
60820
60821
|
}
|
|
60821
60822
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).a2j = function (value, $completion) {
|
|
@@ -60836,15 +60837,15 @@
|
|
|
60836
60837
|
case 0:
|
|
60837
60838
|
this.s8_1 = 5;
|
|
60838
60839
|
var tmp_0 = this;
|
|
60839
|
-
tmp_0.
|
|
60840
|
+
tmp_0.r9u_1 = this.n9u_1;
|
|
60840
60841
|
var tmp_1 = this;
|
|
60841
|
-
tmp_1.
|
|
60842
|
+
tmp_1.q9u_1 = this.p9u_1;
|
|
60842
60843
|
this.r8_1 = 1;
|
|
60843
60844
|
continue $sm;
|
|
60844
60845
|
case 1:
|
|
60845
|
-
var $this$transform = this.
|
|
60846
|
-
var value = this.
|
|
60847
|
-
if (contains(this.
|
|
60846
|
+
var $this$transform = this.r9u_1;
|
|
60847
|
+
var value = this.q9u_1;
|
|
60848
|
+
if (contains(this.o9u_1, value.type)) {
|
|
60848
60849
|
this.r8_1 = 3;
|
|
60849
60850
|
suspendResult = $this$transform.g24(value, this);
|
|
60850
60851
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
@@ -60884,8 +60885,8 @@
|
|
|
60884
60885
|
while (true);
|
|
60885
60886
|
};
|
|
60886
60887
|
protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).b2j = function (value, completion) {
|
|
60887
|
-
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.
|
|
60888
|
-
i.
|
|
60888
|
+
var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.n9u_1, this.o9u_1, completion);
|
|
60889
|
+
i.p9u_1 = value;
|
|
60889
60890
|
return i;
|
|
60890
60891
|
};
|
|
60891
60892
|
function FileLoggerOutputImpl$observe$o$collect$slambda_0($$this$unsafeFlow, $types, resultContinuation) {
|
|
@@ -60898,8 +60899,8 @@
|
|
|
60898
60899
|
}
|
|
60899
60900
|
function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
|
|
60900
60901
|
CoroutineImpl.call(this, resultContinuation);
|
|
60901
|
-
this.
|
|
60902
|
-
this.
|
|
60902
|
+
this.a9v_1 = _this__u8e3s4;
|
|
60903
|
+
this.b9v_1 = collector;
|
|
60903
60904
|
}
|
|
60904
60905
|
protoOf($collectCOROUTINE$).z8 = function () {
|
|
60905
60906
|
var suspendResult = this.t8_1;
|
|
@@ -60909,10 +60910,10 @@
|
|
|
60909
60910
|
switch (tmp) {
|
|
60910
60911
|
case 0:
|
|
60911
60912
|
this.s8_1 = 2;
|
|
60912
|
-
var $this$unsafeFlow = this.
|
|
60913
|
+
var $this$unsafeFlow = this.b9v_1;
|
|
60913
60914
|
this.r8_1 = 1;
|
|
60914
|
-
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.
|
|
60915
|
-
suspendResult = this.
|
|
60915
|
+
var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.a9v_1.d9v_1, null);
|
|
60916
|
+
suspendResult = this.a9v_1.c9v_1.d23(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
|
|
60916
60917
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
60917
60918
|
return suspendResult;
|
|
60918
60919
|
}
|
|
@@ -60936,8 +60937,8 @@
|
|
|
60936
60937
|
};
|
|
60937
60938
|
function log($this, type, tag, message, payload, stackTrace) {
|
|
60938
60939
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
60939
|
-
$this.
|
|
60940
|
-
var tmp0_elvis_lhs = $this.
|
|
60940
|
+
$this.g9v_1;
|
|
60941
|
+
var tmp0_elvis_lhs = $this.e9v_1(payload);
|
|
60941
60942
|
var tmp;
|
|
60942
60943
|
if (tmp0_elvis_lhs == null) {
|
|
60943
60944
|
return Unit_instance;
|
|
@@ -60946,7 +60947,7 @@
|
|
|
60946
60947
|
}
|
|
60947
60948
|
var key = tmp;
|
|
60948
60949
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
60949
|
-
var this_0 = $this.
|
|
60950
|
+
var this_0 = $this.h9v_1;
|
|
60950
60951
|
var value = this_0.b2(key);
|
|
60951
60952
|
var tmp_0;
|
|
60952
60953
|
if (value == null) {
|
|
@@ -60958,7 +60959,7 @@
|
|
|
60958
60959
|
}
|
|
60959
60960
|
var logger = tmp_0;
|
|
60960
60961
|
var tmp1_key = key.i6t();
|
|
60961
|
-
logger.
|
|
60962
|
+
logger.i9v_1.o27(new LoggerOutputDataDto(type, tmp1_key, tag, message, stackTrace));
|
|
60962
60963
|
}
|
|
60963
60964
|
function log$default($this, type, tag, message, payload, stackTrace, $super) {
|
|
60964
60965
|
stackTrace = stackTrace === VOID ? null : stackTrace;
|
|
@@ -60968,35 +60969,35 @@
|
|
|
60968
60969
|
flow = flow === VOID ? MutableSharedFlow(10, 100, BufferOverflow_DROP_OLDEST_getInstance()) : flow;
|
|
60969
60970
|
controller = controller === VOID ? null : controller;
|
|
60970
60971
|
job = job === VOID ? null : job;
|
|
60971
|
-
this.
|
|
60972
|
-
this.
|
|
60973
|
-
this.
|
|
60972
|
+
this.i9v_1 = flow;
|
|
60973
|
+
this.j9v_1 = controller;
|
|
60974
|
+
this.k9v_1 = job;
|
|
60974
60975
|
}
|
|
60975
|
-
protoOf(LoggerModel).
|
|
60976
|
-
this.
|
|
60977
|
-
var tmp0_safe_receiver = this.
|
|
60976
|
+
protoOf(LoggerModel).l9v = function () {
|
|
60977
|
+
this.i9v_1.s27();
|
|
60978
|
+
var tmp0_safe_receiver = this.k9v_1;
|
|
60978
60979
|
if (tmp0_safe_receiver == null)
|
|
60979
60980
|
null;
|
|
60980
60981
|
else {
|
|
60981
60982
|
tmp0_safe_receiver.k1l();
|
|
60982
60983
|
}
|
|
60983
60984
|
};
|
|
60984
|
-
protoOf(LoggerModel).
|
|
60985
|
+
protoOf(LoggerModel).m9v = function (flow, controller, job) {
|
|
60985
60986
|
return new LoggerModel(flow, controller, job);
|
|
60986
60987
|
};
|
|
60987
|
-
protoOf(LoggerModel).
|
|
60988
|
-
flow = flow === VOID ? this.
|
|
60989
|
-
controller = controller === VOID ? this.
|
|
60990
|
-
job = job === VOID ? this.
|
|
60991
|
-
return $super === VOID ? this.
|
|
60988
|
+
protoOf(LoggerModel).n9v = function (flow, controller, job, $super) {
|
|
60989
|
+
flow = flow === VOID ? this.i9v_1 : flow;
|
|
60990
|
+
controller = controller === VOID ? this.j9v_1 : controller;
|
|
60991
|
+
job = job === VOID ? this.k9v_1 : job;
|
|
60992
|
+
return $super === VOID ? this.m9v(flow, controller, job) : $super.m9v.call(this, flow, controller, job);
|
|
60992
60993
|
};
|
|
60993
60994
|
protoOf(LoggerModel).toString = function () {
|
|
60994
|
-
return 'LoggerModel(flow=' + toString(this.
|
|
60995
|
+
return 'LoggerModel(flow=' + toString(this.i9v_1) + ', controller=' + toString_0(this.j9v_1) + ', job=' + toString_0(this.k9v_1) + ')';
|
|
60995
60996
|
};
|
|
60996
60997
|
protoOf(LoggerModel).hashCode = function () {
|
|
60997
|
-
var result = hashCode(this.
|
|
60998
|
-
result = imul(result, 31) + (this.i9v_1 == null ? 0 : hashCode(this.i9v_1)) | 0;
|
|
60998
|
+
var result = hashCode(this.i9v_1);
|
|
60999
60999
|
result = imul(result, 31) + (this.j9v_1 == null ? 0 : hashCode(this.j9v_1)) | 0;
|
|
61000
|
+
result = imul(result, 31) + (this.k9v_1 == null ? 0 : hashCode(this.k9v_1)) | 0;
|
|
61000
61001
|
return result;
|
|
61001
61002
|
};
|
|
61002
61003
|
protoOf(LoggerModel).equals = function (other) {
|
|
@@ -61004,18 +61005,18 @@
|
|
|
61004
61005
|
return true;
|
|
61005
61006
|
if (!(other instanceof LoggerModel))
|
|
61006
61007
|
return false;
|
|
61007
|
-
if (!equals(this.h9v_1, other.h9v_1))
|
|
61008
|
-
return false;
|
|
61009
61008
|
if (!equals(this.i9v_1, other.i9v_1))
|
|
61010
61009
|
return false;
|
|
61011
61010
|
if (!equals(this.j9v_1, other.j9v_1))
|
|
61012
61011
|
return false;
|
|
61012
|
+
if (!equals(this.k9v_1, other.k9v_1))
|
|
61013
|
+
return false;
|
|
61013
61014
|
return true;
|
|
61014
61015
|
};
|
|
61015
61016
|
function Companion_195() {
|
|
61016
|
-
this.
|
|
61017
|
+
this.o9v_1 = 1000;
|
|
61017
61018
|
}
|
|
61018
|
-
protoOf(Companion_195).
|
|
61019
|
+
protoOf(Companion_195).p9v = function (payload) {
|
|
61019
61020
|
var tmp;
|
|
61020
61021
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
61021
61022
|
tmp = payload.id;
|
|
@@ -61032,7 +61033,7 @@
|
|
|
61032
61033
|
}
|
|
61033
61034
|
return tmp;
|
|
61034
61035
|
};
|
|
61035
|
-
protoOf(Companion_195).
|
|
61036
|
+
protoOf(Companion_195).q9v = function (payload) {
|
|
61036
61037
|
var tmp;
|
|
61037
61038
|
if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
|
|
61038
61039
|
tmp = first(payload.users).u6d_1;
|
|
@@ -61050,13 +61051,13 @@
|
|
|
61050
61051
|
return Companion_instance_200;
|
|
61051
61052
|
}
|
|
61052
61053
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
61053
|
-
this.
|
|
61054
|
+
this.r9v_1 = function_0;
|
|
61054
61055
|
}
|
|
61055
61056
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).g24 = function (value, $completion) {
|
|
61056
|
-
return this.
|
|
61057
|
+
return this.r9v_1(value, $completion);
|
|
61057
61058
|
};
|
|
61058
61059
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).a3 = function () {
|
|
61059
|
-
return this.
|
|
61060
|
+
return this.r9v_1;
|
|
61060
61061
|
};
|
|
61061
61062
|
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
|
|
61062
61063
|
var tmp;
|
|
@@ -61080,8 +61081,8 @@
|
|
|
61080
61081
|
return null;
|
|
61081
61082
|
}
|
|
61082
61083
|
function FileLoggerOutputImpl$observe$$inlined$filter$1($this, $types) {
|
|
61083
|
-
this.
|
|
61084
|
-
this.
|
|
61084
|
+
this.c9v_1 = $this;
|
|
61085
|
+
this.d9v_1 = $types;
|
|
61085
61086
|
}
|
|
61086
61087
|
protoOf(FileLoggerOutputImpl$observe$$inlined$filter$1).h24 = function (collector, $completion) {
|
|
61087
61088
|
var tmp = new $collectCOROUTINE$(this, collector, $completion);
|
|
@@ -61101,26 +61102,26 @@
|
|
|
61101
61102
|
}
|
|
61102
61103
|
payloadToLoggerKeyMapper = tmp;
|
|
61103
61104
|
enabled = enabled === VOID ? true : enabled;
|
|
61104
|
-
this.
|
|
61105
|
-
this.
|
|
61105
|
+
this.e9v_1 = payloadToLoggerKeyMapper;
|
|
61106
|
+
this.f9v_1 = enabled;
|
|
61106
61107
|
var tmp_0 = this;
|
|
61107
61108
|
// Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
|
|
61108
|
-
tmp_0.
|
|
61109
|
+
tmp_0.g9v_1 = get_atomicfu$reentrantLock();
|
|
61109
61110
|
var tmp_1 = this;
|
|
61110
61111
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
61111
|
-
tmp_1.
|
|
61112
|
+
tmp_1.h9v_1 = LinkedHashMap_init_$Create$();
|
|
61112
61113
|
}
|
|
61113
61114
|
protoOf(FileLoggerOutputImpl).q51 = function (_set____db54di) {
|
|
61114
|
-
this.
|
|
61115
|
+
this.f9v_1 = _set____db54di;
|
|
61115
61116
|
};
|
|
61116
61117
|
protoOf(FileLoggerOutputImpl).r51 = function () {
|
|
61117
|
-
return this.
|
|
61118
|
+
return this.f9v_1;
|
|
61118
61119
|
};
|
|
61119
|
-
protoOf(FileLoggerOutputImpl).
|
|
61120
|
+
protoOf(FileLoggerOutputImpl).s9v = function (loggerKey, types) {
|
|
61120
61121
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
61121
|
-
this.
|
|
61122
|
+
this.g9v_1;
|
|
61122
61123
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
61123
|
-
var this_0 = this.
|
|
61124
|
+
var this_0 = this.h9v_1;
|
|
61124
61125
|
var value = this_0.b2(loggerKey);
|
|
61125
61126
|
var tmp;
|
|
61126
61127
|
if (value == null) {
|
|
@@ -61133,26 +61134,26 @@
|
|
|
61133
61134
|
var logger = tmp;
|
|
61134
61135
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
61135
61136
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
61136
|
-
var this_1 = logger.
|
|
61137
|
+
var this_1 = logger.i9v_1;
|
|
61137
61138
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
61138
61139
|
return new FileLoggerOutputImpl$observe$$inlined$filter$1(this_1, types);
|
|
61139
61140
|
};
|
|
61140
61141
|
protoOf(FileLoggerOutputImpl).d9l = function (loggerKey) {
|
|
61141
61142
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
61142
|
-
this.
|
|
61143
|
-
var tmp0_safe_receiver = this.
|
|
61143
|
+
this.g9v_1;
|
|
61144
|
+
var tmp0_safe_receiver = this.h9v_1.b2(loggerKey);
|
|
61144
61145
|
if (tmp0_safe_receiver == null)
|
|
61145
61146
|
null;
|
|
61146
61147
|
else {
|
|
61147
|
-
tmp0_safe_receiver.
|
|
61148
|
+
tmp0_safe_receiver.l9v();
|
|
61148
61149
|
}
|
|
61149
|
-
this.
|
|
61150
|
+
this.h9v_1.m2(loggerKey);
|
|
61150
61151
|
};
|
|
61151
61152
|
protoOf(FileLoggerOutputImpl).c9l = function (loggerKey, job, controller) {
|
|
61152
61153
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
61153
|
-
this.
|
|
61154
|
+
this.g9v_1;
|
|
61154
61155
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
61155
|
-
var this_0 = this.
|
|
61156
|
+
var this_0 = this.h9v_1;
|
|
61156
61157
|
var value = this_0.b2(loggerKey);
|
|
61157
61158
|
var tmp;
|
|
61158
61159
|
if (value == null) {
|
|
@@ -61162,30 +61163,30 @@
|
|
|
61162
61163
|
} else {
|
|
61163
61164
|
tmp = value;
|
|
61164
61165
|
}
|
|
61165
|
-
var updatedModel = tmp.
|
|
61166
|
+
var updatedModel = tmp.n9v(VOID, controller, job);
|
|
61166
61167
|
// Inline function 'kotlin.collections.set' call
|
|
61167
|
-
this.
|
|
61168
|
+
this.h9v_1.l2(loggerKey, updatedModel);
|
|
61168
61169
|
};
|
|
61169
61170
|
protoOf(FileLoggerOutputImpl).h2 = function () {
|
|
61170
61171
|
// Inline function 'kotlinx.atomicfu.locks.withLock' call
|
|
61171
|
-
this.
|
|
61172
|
+
this.g9v_1;
|
|
61172
61173
|
// Inline function 'kotlin.collections.forEach' call
|
|
61173
61174
|
// Inline function 'kotlin.collections.iterator' call
|
|
61174
|
-
var _iterator__ex2g4s = this.
|
|
61175
|
+
var _iterator__ex2g4s = this.h9v_1.u().l();
|
|
61175
61176
|
while (_iterator__ex2g4s.m()) {
|
|
61176
61177
|
var element = _iterator__ex2g4s.n();
|
|
61177
|
-
element.w().
|
|
61178
|
+
element.w().l9v();
|
|
61178
61179
|
}
|
|
61179
|
-
this.
|
|
61180
|
+
this.h9v_1.h2();
|
|
61180
61181
|
};
|
|
61181
61182
|
protoOf(FileLoggerOutputImpl).l51 = function (tag, message, payload) {
|
|
61182
|
-
if (!this.
|
|
61183
|
+
if (!this.f9v_1)
|
|
61183
61184
|
return Unit_instance;
|
|
61184
61185
|
var tmp0_type = LogType_DEBUG_getInstance();
|
|
61185
61186
|
log$default(this, tmp0_type, tag, message, payload);
|
|
61186
61187
|
};
|
|
61187
61188
|
protoOf(FileLoggerOutputImpl).m51 = function (tag, message, exception, payload) {
|
|
61188
|
-
if (!this.
|
|
61189
|
+
if (!this.f9v_1)
|
|
61189
61190
|
return Unit_instance;
|
|
61190
61191
|
var tmp4_type = LogType_ERROR_getInstance();
|
|
61191
61192
|
var tmp;
|
|
@@ -61200,13 +61201,13 @@
|
|
|
61200
61201
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
61201
61202
|
};
|
|
61202
61203
|
protoOf(FileLoggerOutputImpl).p51 = function (tag, message, payload) {
|
|
61203
|
-
if (!this.
|
|
61204
|
+
if (!this.f9v_1)
|
|
61204
61205
|
return Unit_instance;
|
|
61205
61206
|
var tmp0_type = LogType_INFO_getInstance();
|
|
61206
61207
|
log(this, tmp0_type, tag, message, payload, null);
|
|
61207
61208
|
};
|
|
61208
61209
|
protoOf(FileLoggerOutputImpl).o51 = function (tag, message, exception, payload) {
|
|
61209
|
-
if (!this.
|
|
61210
|
+
if (!this.f9v_1)
|
|
61210
61211
|
return Unit_instance;
|
|
61211
61212
|
var tmp4_type = LogType_VERBOSE_getInstance();
|
|
61212
61213
|
var tmp;
|
|
@@ -61221,7 +61222,7 @@
|
|
|
61221
61222
|
log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
|
|
61222
61223
|
};
|
|
61223
61224
|
protoOf(FileLoggerOutputImpl).n51 = function (tag, message, exception, payload) {
|
|
61224
|
-
if (!this.
|
|
61225
|
+
if (!this.f9v_1)
|
|
61225
61226
|
return Unit_instance;
|
|
61226
61227
|
var tmp4_type = LogType_WARN_getInstance();
|
|
61227
61228
|
var tmp1_elvis_lhs = exception == null ? null : exception.message;
|
|
@@ -61761,9 +61762,9 @@
|
|
|
61761
61762
|
}
|
|
61762
61763
|
}
|
|
61763
61764
|
function GameHelperImpl(logger) {
|
|
61764
|
-
this.
|
|
61765
|
+
this.w9v_1 = logger;
|
|
61765
61766
|
}
|
|
61766
|
-
protoOf(GameHelperImpl).
|
|
61767
|
+
protoOf(GameHelperImpl).t9v = function (store, playerIds, includeBots) {
|
|
61767
61768
|
var state = store.state;
|
|
61768
61769
|
var tmp;
|
|
61769
61770
|
if (!state.u6w()) {
|
|
@@ -61809,7 +61810,7 @@
|
|
|
61809
61810
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
61810
61811
|
return copyToArray(destination_1);
|
|
61811
61812
|
};
|
|
61812
|
-
protoOf(GameHelperImpl).
|
|
61813
|
+
protoOf(GameHelperImpl).u9v = function (store, playerIds, includeBots) {
|
|
61813
61814
|
var state = store.state;
|
|
61814
61815
|
var tmp;
|
|
61815
61816
|
if (!state.u6w()) {
|
|
@@ -61980,10 +61981,10 @@
|
|
|
61980
61981
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
61981
61982
|
return copyToArray(destination);
|
|
61982
61983
|
};
|
|
61983
|
-
protoOf(GameHelperImpl).
|
|
61984
|
+
protoOf(GameHelperImpl).v9v = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
|
|
61984
61985
|
var roomMode = mapToRoomMode(mode);
|
|
61985
61986
|
var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
|
|
61986
|
-
this.
|
|
61987
|
+
this.w9v_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
|
|
61987
61988
|
var options = Companion_instance_184.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
|
|
61988
61989
|
var playersMode = this.mapPlayers(players);
|
|
61989
61990
|
var pointsMode = this.mapPoints(points);
|
|
@@ -62418,40 +62419,40 @@
|
|
|
62418
62419
|
function getRandomAvatarData_0($this) {
|
|
62419
62420
|
var avatarSetNumber = Default_getInstance().ng(get_entries_6().o());
|
|
62420
62421
|
var avatarSet = get_entries_6().p(avatarSetNumber);
|
|
62421
|
-
return new AvatarData(Default_getInstance().ng(avatarSet.
|
|
62422
|
+
return new AvatarData(Default_getInstance().ng(avatarSet.a9w()), avatarSet);
|
|
62422
62423
|
}
|
|
62423
62424
|
function getAvatarUrlByIndex($this, data) {
|
|
62424
62425
|
return mapToPattern($this, data);
|
|
62425
62426
|
}
|
|
62426
62427
|
function getNicknameByIndex($this, data) {
|
|
62427
|
-
return data.
|
|
62428
|
+
return data.c9w_1.d9w(data.b9w_1);
|
|
62428
62429
|
}
|
|
62429
62430
|
function mapToPattern($this, data) {
|
|
62430
|
-
return 'debertz://raspberry.games/' + data.
|
|
62431
|
+
return 'debertz://raspberry.games/' + data.c9w_1.p2_1 + '/' + data.b9w_1;
|
|
62431
62432
|
}
|
|
62432
62433
|
function Companion_196() {
|
|
62433
62434
|
Companion_instance_201 = this;
|
|
62434
|
-
this.
|
|
62435
|
+
this.e9w_1 = 'debertz://raspberry.games';
|
|
62435
62436
|
var tmp = this;
|
|
62436
62437
|
// Inline function 'kotlin.arrayOf' call
|
|
62437
62438
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62438
62439
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62439
|
-
tmp.
|
|
62440
|
+
tmp.f9w_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
|
|
62440
62441
|
var tmp_0 = this;
|
|
62441
62442
|
// Inline function 'kotlin.arrayOf' call
|
|
62442
62443
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62443
62444
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62444
|
-
tmp_0.
|
|
62445
|
+
tmp_0.g9w_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'];
|
|
62445
62446
|
var tmp_1 = this;
|
|
62446
62447
|
// Inline function 'kotlin.arrayOf' call
|
|
62447
62448
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62448
62449
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62449
|
-
tmp_1.
|
|
62450
|
+
tmp_1.h9w_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
|
|
62450
62451
|
var tmp_2 = this;
|
|
62451
62452
|
// Inline function 'kotlin.arrayOf' call
|
|
62452
62453
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
62453
62454
|
// Inline function 'kotlin.js.asDynamic' call
|
|
62454
|
-
tmp_2.
|
|
62455
|
+
tmp_2.i9w_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'];
|
|
62455
62456
|
}
|
|
62456
62457
|
var Companion_instance_201;
|
|
62457
62458
|
function Companion_getInstance_203() {
|
|
@@ -62462,14 +62463,14 @@
|
|
|
62462
62463
|
function AvatarSet(name, ordinal) {
|
|
62463
62464
|
Enum.call(this, name, ordinal);
|
|
62464
62465
|
}
|
|
62465
|
-
protoOf(AvatarSet).
|
|
62466
|
+
protoOf(AvatarSet).a9w = function () {
|
|
62466
62467
|
var tmp;
|
|
62467
62468
|
switch (this.p2_1) {
|
|
62468
62469
|
case 0:
|
|
62469
|
-
tmp = Companion_getInstance_203().
|
|
62470
|
+
tmp = Companion_getInstance_203().g9w_1.length;
|
|
62470
62471
|
break;
|
|
62471
62472
|
case 1:
|
|
62472
|
-
tmp = Companion_getInstance_203().
|
|
62473
|
+
tmp = Companion_getInstance_203().i9w_1.length;
|
|
62473
62474
|
break;
|
|
62474
62475
|
default:
|
|
62475
62476
|
noWhenBranchMatchedException();
|
|
@@ -62477,14 +62478,14 @@
|
|
|
62477
62478
|
}
|
|
62478
62479
|
return tmp;
|
|
62479
62480
|
};
|
|
62480
|
-
protoOf(AvatarSet).
|
|
62481
|
+
protoOf(AvatarSet).d9w = function (index) {
|
|
62481
62482
|
var tmp;
|
|
62482
62483
|
switch (this.p2_1) {
|
|
62483
62484
|
case 0:
|
|
62484
|
-
tmp = Companion_getInstance_203().
|
|
62485
|
+
tmp = Companion_getInstance_203().g9w_1[index];
|
|
62485
62486
|
break;
|
|
62486
62487
|
case 1:
|
|
62487
|
-
tmp = Companion_getInstance_203().
|
|
62488
|
+
tmp = Companion_getInstance_203().i9w_1[index];
|
|
62488
62489
|
break;
|
|
62489
62490
|
default:
|
|
62490
62491
|
noWhenBranchMatchedException();
|
|
@@ -62493,8 +62494,8 @@
|
|
|
62493
62494
|
return tmp;
|
|
62494
62495
|
};
|
|
62495
62496
|
function AvatarData(index, avatarSet) {
|
|
62496
|
-
this.
|
|
62497
|
-
this.
|
|
62497
|
+
this.b9w_1 = index;
|
|
62498
|
+
this.c9w_1 = avatarSet;
|
|
62498
62499
|
}
|
|
62499
62500
|
function AvatarSet_ORIGIN_getInstance() {
|
|
62500
62501
|
AvatarSet_initEntries();
|
|
@@ -62507,7 +62508,7 @@
|
|
|
62507
62508
|
function GameResourcesImpl() {
|
|
62508
62509
|
Companion_getInstance_203();
|
|
62509
62510
|
}
|
|
62510
|
-
protoOf(GameResourcesImpl).
|
|
62511
|
+
protoOf(GameResourcesImpl).x9v = function (playerId, existingNicknames) {
|
|
62511
62512
|
return createUser(this, playerId, existingNicknames);
|
|
62512
62513
|
};
|
|
62513
62514
|
protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
|
|
@@ -62548,45 +62549,45 @@
|
|
|
62548
62549
|
}
|
|
62549
62550
|
var WARN;
|
|
62550
62551
|
function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
|
|
62551
|
-
this.
|
|
62552
|
+
this.j9w_1 = loggerCallback;
|
|
62552
62553
|
}
|
|
62553
62554
|
protoOf(LoggerCallbacksWrapperLoggerOutput).l51 = function (tag, message, payload) {
|
|
62554
|
-
this.
|
|
62555
|
+
this.j9w_1('debug', tag, message, null, payload);
|
|
62555
62556
|
};
|
|
62556
62557
|
protoOf(LoggerCallbacksWrapperLoggerOutput).m51 = function (tag, message, exception, payload) {
|
|
62557
|
-
this.
|
|
62558
|
+
this.j9w_1('error', tag, generateMsg(message, exception), exception, payload);
|
|
62558
62559
|
};
|
|
62559
62560
|
protoOf(LoggerCallbacksWrapperLoggerOutput).p51 = function (tag, message, payload) {
|
|
62560
|
-
this.
|
|
62561
|
+
this.j9w_1('debug', tag, message, null, payload);
|
|
62561
62562
|
};
|
|
62562
62563
|
protoOf(LoggerCallbacksWrapperLoggerOutput).o51 = function (tag, message, exception, payload) {
|
|
62563
|
-
this.
|
|
62564
|
+
this.j9w_1('debug', tag, generateMsg(message, exception), exception, payload);
|
|
62564
62565
|
};
|
|
62565
62566
|
protoOf(LoggerCallbacksWrapperLoggerOutput).n51 = function (tag, message, exception, payload) {
|
|
62566
|
-
this.
|
|
62567
|
+
this.j9w_1('warn', tag, generateMsg(message, exception), exception, payload);
|
|
62567
62568
|
};
|
|
62568
62569
|
function ParserHelper() {
|
|
62569
62570
|
}
|
|
62570
62571
|
function ParserHelperImpl(json, encoderDecoderProvider) {
|
|
62571
|
-
this.
|
|
62572
|
-
this.
|
|
62572
|
+
this.k9w_1 = json;
|
|
62573
|
+
this.l9w_1 = encoderDecoderProvider;
|
|
62573
62574
|
}
|
|
62574
62575
|
protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
|
|
62575
|
-
return this.
|
|
62576
|
+
return this.l9w_1.l92(mapToDto_23(action));
|
|
62576
62577
|
};
|
|
62577
62578
|
protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
|
|
62578
|
-
return mapFromDto_21(this.
|
|
62579
|
+
return mapFromDto_21(this.l9w_1.p92(json), fromPlayerId);
|
|
62579
62580
|
};
|
|
62580
62581
|
protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
|
|
62581
|
-
return this.
|
|
62582
|
+
return this.l9w_1.n92(mapToDto_100(action));
|
|
62582
62583
|
};
|
|
62583
62584
|
protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
|
|
62584
62585
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
62585
|
-
var this_0 = mapFromClientDtoListWithPayload(this.
|
|
62586
|
+
var this_0 = mapFromClientDtoListWithPayload(this.l9w_1.q92(json), playerId, engine);
|
|
62586
62587
|
return copyToArray(this_0);
|
|
62587
62588
|
};
|
|
62588
62589
|
protoOf(ParserHelperImpl).encodeGameRound = function (round) {
|
|
62589
|
-
var tmp0 = this.
|
|
62590
|
+
var tmp0 = this.k9w_1;
|
|
62590
62591
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62591
62592
|
var value = mapToDto_35(round);
|
|
62592
62593
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62597,7 +62598,7 @@
|
|
|
62597
62598
|
return tmp0.ep(tmp$ret$1, value);
|
|
62598
62599
|
};
|
|
62599
62600
|
protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
|
|
62600
|
-
var tmp0 = this.
|
|
62601
|
+
var tmp0 = this.k9w_1;
|
|
62601
62602
|
// Inline function 'kotlin.collections.map' call
|
|
62602
62603
|
var this_0 = round.items;
|
|
62603
62604
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -62619,7 +62620,7 @@
|
|
|
62619
62620
|
return tmp0.ep(tmp$ret$4, destination);
|
|
62620
62621
|
};
|
|
62621
62622
|
protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
|
|
62622
|
-
var tmp0 = this.
|
|
62623
|
+
var tmp0 = this.k9w_1;
|
|
62623
62624
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62624
62625
|
var value = mapToDto_36(metadata);
|
|
62625
62626
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62630,7 +62631,7 @@
|
|
|
62630
62631
|
return tmp0.ep(tmp$ret$1, value);
|
|
62631
62632
|
};
|
|
62632
62633
|
protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
|
|
62633
|
-
var tmp0 = this.
|
|
62634
|
+
var tmp0 = this.k9w_1;
|
|
62634
62635
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62635
62636
|
var value = mapToDto_84(config);
|
|
62636
62637
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62641,7 +62642,7 @@
|
|
|
62641
62642
|
return tmp0.ep(tmp$ret$1, value);
|
|
62642
62643
|
};
|
|
62643
62644
|
protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
|
|
62644
|
-
var tmp0 = this.
|
|
62645
|
+
var tmp0 = this.k9w_1;
|
|
62645
62646
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62646
62647
|
var value = mapToDto_121(transition);
|
|
62647
62648
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62653,7 +62654,7 @@
|
|
|
62653
62654
|
};
|
|
62654
62655
|
protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
|
|
62655
62656
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
62656
|
-
var this_0 = this.
|
|
62657
|
+
var this_0 = this.k9w_1;
|
|
62657
62658
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
62658
62659
|
var this_1 = this_0.ds();
|
|
62659
62660
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -62664,7 +62665,7 @@
|
|
|
62664
62665
|
};
|
|
62665
62666
|
protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
|
|
62666
62667
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
62667
|
-
var this_0 = this.
|
|
62668
|
+
var this_0 = this.k9w_1;
|
|
62668
62669
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
62669
62670
|
var this_1 = this_0.ds();
|
|
62670
62671
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -62674,7 +62675,7 @@
|
|
|
62674
62675
|
return mapFromDto_124(tmp$ret$2);
|
|
62675
62676
|
};
|
|
62676
62677
|
protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
|
|
62677
|
-
var tmp0 = this.
|
|
62678
|
+
var tmp0 = this.k9w_1;
|
|
62678
62679
|
// Inline function 'kotlinx.serialization.json.Json.encodeToString' call
|
|
62679
62680
|
var value = mapToDto_153(table);
|
|
62680
62681
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
@@ -62685,11 +62686,11 @@
|
|
|
62685
62686
|
return tmp0.ep(tmp$ret$1, value);
|
|
62686
62687
|
};
|
|
62687
62688
|
protoOf(ParserHelperImpl).decodeTableLite = function (json) {
|
|
62688
|
-
return mapFromDto_89(this.
|
|
62689
|
+
return mapFromDto_89(this.l9w_1.o92(json));
|
|
62689
62690
|
};
|
|
62690
62691
|
protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
|
|
62691
62692
|
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
62692
|
-
var this_0 = this.
|
|
62693
|
+
var this_0 = this.k9w_1;
|
|
62693
62694
|
// Inline function 'kotlinx.serialization.serializer' call
|
|
62694
62695
|
var this_1 = this_0.ds();
|
|
62695
62696
|
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
@@ -62702,16 +62703,16 @@
|
|
|
62702
62703
|
function RatingHelper() {
|
|
62703
62704
|
}
|
|
62704
62705
|
function RatingHelperImpl(userRatingInteractor) {
|
|
62705
|
-
this.
|
|
62706
|
+
this.m9w_1 = userRatingInteractor;
|
|
62706
62707
|
}
|
|
62707
62708
|
protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
|
|
62708
|
-
return this.
|
|
62709
|
+
return this.m9w_1.t99(league, rating);
|
|
62709
62710
|
};
|
|
62710
62711
|
protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
|
|
62711
|
-
return this.
|
|
62712
|
+
return this.m9w_1.v99(rating);
|
|
62712
62713
|
};
|
|
62713
62714
|
protoOf(RatingHelperImpl).getLeaguesConfig = function () {
|
|
62714
|
-
return this.
|
|
62715
|
+
return this.m9w_1.u99();
|
|
62715
62716
|
};
|
|
62716
62717
|
function engineHelpersModule() {
|
|
62717
62718
|
return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
|
|
@@ -62816,14 +62817,14 @@
|
|
|
62816
62817
|
return new GameResourcesImpl();
|
|
62817
62818
|
}
|
|
62818
62819
|
function _get_logger__rkp4sl_3($this) {
|
|
62819
|
-
var tmp0 = $this.
|
|
62820
|
+
var tmp0 = $this.o9w_1;
|
|
62820
62821
|
var tmp = KProperty1;
|
|
62821
62822
|
// Inline function 'kotlin.getValue' call
|
|
62822
62823
|
getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
|
|
62823
62824
|
return tmp0.w();
|
|
62824
62825
|
}
|
|
62825
62826
|
function _get_di__ndbzja($this) {
|
|
62826
|
-
var tmp0 = $this.
|
|
62827
|
+
var tmp0 = $this.p9w_1;
|
|
62827
62828
|
var tmp = KProperty1;
|
|
62828
62829
|
// Inline function 'kotlin.getValue' call
|
|
62829
62830
|
getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
|
|
@@ -62832,11 +62833,11 @@
|
|
|
62832
62833
|
function EngineHelpersFactory$logger$delegate$lambda(this$0) {
|
|
62833
62834
|
return function () {
|
|
62834
62835
|
var tmp;
|
|
62835
|
-
if (this$0.
|
|
62836
|
+
if (this$0.n9w_1 == null) {
|
|
62836
62837
|
tmp = null;
|
|
62837
62838
|
} else {
|
|
62838
62839
|
// Inline function 'kotlin.let' call
|
|
62839
|
-
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.
|
|
62840
|
+
tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.n9w_1)]));
|
|
62840
62841
|
}
|
|
62841
62842
|
var tmp1_elvis_lhs = tmp;
|
|
62842
62843
|
return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
|
|
@@ -62926,11 +62927,11 @@
|
|
|
62926
62927
|
}
|
|
62927
62928
|
function EngineHelpersFactory(loggerCallback) {
|
|
62928
62929
|
loggerCallback = loggerCallback === VOID ? null : loggerCallback;
|
|
62929
|
-
this.
|
|
62930
|
+
this.n9w_1 = loggerCallback;
|
|
62930
62931
|
var tmp = this;
|
|
62931
|
-
tmp.
|
|
62932
|
+
tmp.o9w_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
|
|
62932
62933
|
var tmp_0 = this;
|
|
62933
|
-
tmp_0.
|
|
62934
|
+
tmp_0.p9w_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
|
|
62934
62935
|
var tmp_1 = this;
|
|
62935
62936
|
// Inline function 'org.kodein.di.instance' call
|
|
62936
62937
|
var this_0 = _get_di__ndbzja(this);
|
|
@@ -62939,7 +62940,7 @@
|
|
|
62939
62940
|
var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
|
|
62940
62941
|
var tmp_3 = Instance(this_0, tmp$ret$0, null);
|
|
62941
62942
|
var tmp_4 = KProperty1;
|
|
62942
|
-
tmp_1.
|
|
62943
|
+
tmp_1.q9w_1 = tmp_3.c1h(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
|
|
62943
62944
|
var tmp_5 = this;
|
|
62944
62945
|
// Inline function 'org.kodein.di.instance' call
|
|
62945
62946
|
var this_1 = _get_di__ndbzja(this);
|
|
@@ -62948,7 +62949,7 @@
|
|
|
62948
62949
|
var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
|
|
62949
62950
|
var tmp_7 = Instance(this_1, tmp$ret$2, null);
|
|
62950
62951
|
var tmp_8 = KProperty1;
|
|
62951
|
-
tmp_5.
|
|
62952
|
+
tmp_5.r9w_1 = tmp_7.c1h(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
|
|
62952
62953
|
var tmp_9 = this;
|
|
62953
62954
|
// Inline function 'org.kodein.di.instance' call
|
|
62954
62955
|
var this_2 = _get_di__ndbzja(this);
|
|
@@ -62957,7 +62958,7 @@
|
|
|
62957
62958
|
var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
|
|
62958
62959
|
var tmp_11 = Instance(this_2, tmp$ret$4, null);
|
|
62959
62960
|
var tmp_12 = KProperty1;
|
|
62960
|
-
tmp_9.
|
|
62961
|
+
tmp_9.s9w_1 = tmp_11.c1h(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
|
|
62961
62962
|
var tmp_13 = this;
|
|
62962
62963
|
// Inline function 'org.kodein.di.instance' call
|
|
62963
62964
|
var this_3 = _get_di__ndbzja(this);
|
|
@@ -62966,31 +62967,31 @@
|
|
|
62966
62967
|
var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
|
|
62967
62968
|
var tmp_15 = Instance(this_3, tmp$ret$6, null);
|
|
62968
62969
|
var tmp_16 = KProperty1;
|
|
62969
|
-
tmp_13.
|
|
62970
|
+
tmp_13.t9w_1 = tmp_15.c1h(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
|
|
62970
62971
|
}
|
|
62971
|
-
protoOf(EngineHelpersFactory).
|
|
62972
|
-
var tmp0 = this.
|
|
62972
|
+
protoOf(EngineHelpersFactory).u9w = function () {
|
|
62973
|
+
var tmp0 = this.q9w_1;
|
|
62973
62974
|
var tmp = KProperty1;
|
|
62974
62975
|
// Inline function 'kotlin.getValue' call
|
|
62975
62976
|
getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
|
|
62976
62977
|
return tmp0.w();
|
|
62977
62978
|
};
|
|
62978
|
-
protoOf(EngineHelpersFactory).
|
|
62979
|
-
var tmp0 = this.
|
|
62979
|
+
protoOf(EngineHelpersFactory).v9w = function () {
|
|
62980
|
+
var tmp0 = this.r9w_1;
|
|
62980
62981
|
var tmp = KProperty1;
|
|
62981
62982
|
// Inline function 'kotlin.getValue' call
|
|
62982
62983
|
getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
|
|
62983
62984
|
return tmp0.w();
|
|
62984
62985
|
};
|
|
62985
|
-
protoOf(EngineHelpersFactory).
|
|
62986
|
-
var tmp0 = this.
|
|
62986
|
+
protoOf(EngineHelpersFactory).w9w = function () {
|
|
62987
|
+
var tmp0 = this.s9w_1;
|
|
62987
62988
|
var tmp = KProperty1;
|
|
62988
62989
|
// Inline function 'kotlin.getValue' call
|
|
62989
62990
|
getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
|
|
62990
62991
|
return tmp0.w();
|
|
62991
62992
|
};
|
|
62992
|
-
protoOf(EngineHelpersFactory).
|
|
62993
|
-
var tmp0 = this.
|
|
62993
|
+
protoOf(EngineHelpersFactory).x9w = function () {
|
|
62994
|
+
var tmp0 = this.t9w_1;
|
|
62994
62995
|
var tmp = KProperty1;
|
|
62995
62996
|
// Inline function 'kotlin.getValue' call
|
|
62996
62997
|
getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
|
|
@@ -63732,7 +63733,7 @@
|
|
|
63732
63733
|
protoOf(CallbackWrapperLoggerOutput).i = i;
|
|
63733
63734
|
protoOf(CallbackWrapperLoggerOutput).v = v;
|
|
63734
63735
|
protoOf(CallbackWrapperLoggerOutput).w = w;
|
|
63735
|
-
protoOf(FileLoggerOutputImpl).
|
|
63736
|
+
protoOf(FileLoggerOutputImpl).x9m = observe$default;
|
|
63736
63737
|
protoOf(FileLoggerOutputImpl).d = d;
|
|
63737
63738
|
protoOf(FileLoggerOutputImpl).e = e;
|
|
63738
63739
|
protoOf(FileLoggerOutputImpl).i = i;
|
|
@@ -63752,10 +63753,10 @@
|
|
|
63752
63753
|
protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
|
|
63753
63754
|
protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
|
|
63754
63755
|
protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
|
|
63755
|
-
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).
|
|
63756
|
-
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).
|
|
63757
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).
|
|
63758
|
-
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).
|
|
63756
|
+
defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).u9w);
|
|
63757
|
+
defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).v9w);
|
|
63758
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).w9w);
|
|
63759
|
+
defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).x9w);
|
|
63759
63760
|
//endregion
|
|
63760
63761
|
//region block: init
|
|
63761
63762
|
Companion_instance_5 = new Companion_0();
|