game_client_logic_deb 1.8.380 → 1.8.382

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.
Files changed (34) hide show
  1. package/Kosi-Kaverit-kaverit.js +13 -13
  2. package/Kosi-Kodein-kodein-di.js +35 -35
  3. package/Kotlin-DateTime-library-kotlinx-datetime.js +91 -91
  4. package/Logic_Debertz-core.js +56 -56
  5. package/Logic_Debertz-engine.js +761 -694
  6. package/Logic_Debertz-engine.js.map +1 -1
  7. package/Logic_Debertz-game_client.d.ts +3 -3
  8. package/Logic_Debertz-game_client.js +2245 -2231
  9. package/Logic_Debertz-game_client.js.map +1 -1
  10. package/error-library-error.js +5 -5
  11. package/kotlin-kotlin-stdlib.js +283 -270
  12. package/kotlin-kotlin-stdlib.js.map +1 -1
  13. package/kotlinx-atomicfu.js +9 -9
  14. package/kotlinx-coroutines-core.js +71 -71
  15. package/kotlinx-io-kotlinx-io-core.js +30 -30
  16. package/kotlinx-serialization-kotlinx-serialization-core.js +77 -77
  17. package/kotlinx-serialization-kotlinx-serialization-json.js +89 -89
  18. package/ktor-ktor-client-content-negotiation.js +22 -22
  19. package/ktor-ktor-client-core.js +64 -64
  20. package/ktor-ktor-client-logging.js +23 -23
  21. package/ktor-ktor-events.js +5 -5
  22. package/ktor-ktor-http.js +70 -70
  23. package/ktor-ktor-io.js +50 -50
  24. package/ktor-ktor-serialization-kotlinx.js +15 -15
  25. package/ktor-ktor-serialization.js +15 -15
  26. package/ktor-ktor-utils.js +46 -46
  27. package/ktor-ktor-websockets.js +13 -13
  28. package/package.json +1 -1
  29. package/random-library-crypto-rand.js +11 -11
  30. package/random-library-secure-random.js +5 -5
  31. package/raspberry-cardgame-lib-core.js +35 -35
  32. package/raspberry-cardgame-lib-logger.js +13 -13
  33. package/raspberry-cardgame-lib-random.js +39 -39
  34. package/uuid.js +12 -12
@@ -43,106 +43,106 @@
43
43
  'use strict';
44
44
  //region block: imports
45
45
  var imul = Math.imul;
46
- var Long = kotlin_kotlin.$_$.eh;
47
- var protoOf = kotlin_kotlin.$_$.hd;
48
- var initMetadataForCompanion = kotlin_kotlin.$_$.ic;
46
+ var Long = kotlin_kotlin.$_$.fh;
47
+ var protoOf = kotlin_kotlin.$_$.id;
48
+ var initMetadataForCompanion = kotlin_kotlin.$_$.jc;
49
49
  var AsyncProvider = kotlin_io_raspberryapps_game_engine_core.$_$.r1;
50
- var getKClass = kotlin_kotlin.$_$.be;
51
- var arrayOf = kotlin_kotlin.$_$.yh;
52
- var createKType = kotlin_kotlin.$_$.zd;
50
+ var getKClass = kotlin_kotlin.$_$.ce;
51
+ var arrayOf = kotlin_kotlin.$_$.zh;
52
+ var createKType = kotlin_kotlin.$_$.ae;
53
53
  var typeToken = kotlin_org_kodein_type_kaverit.$_$.d;
54
- var THROW_CCE = kotlin_kotlin.$_$.kh;
54
+ var THROW_CCE = kotlin_kotlin.$_$.lh;
55
55
  var TypeToken = kotlin_org_kodein_type_kaverit.$_$.b;
56
- var isInterface = kotlin_kotlin.$_$.vc;
56
+ var isInterface = kotlin_kotlin.$_$.wc;
57
57
  var Instance = kotlin_org_kodein_di_kodein_di.$_$.f;
58
- var KProperty1 = kotlin_kotlin.$_$.fe;
59
- var getPropertyCallableRef = kotlin_kotlin.$_$.ec;
58
+ var KProperty1 = kotlin_kotlin.$_$.ge;
59
+ var getPropertyCallableRef = kotlin_kotlin.$_$.fc;
60
60
  var JobsProvider = kotlin_io_raspberryapps_game_engine_core.$_$.t1;
61
- var initMetadataForClass = kotlin_kotlin.$_$.hc;
61
+ var initMetadataForClass = kotlin_kotlin.$_$.ic;
62
62
  var VOID = kotlin_kotlin.$_$.b;
63
63
  var listOf = kotlin_kotlin.$_$.f8;
64
- var plus = kotlin_kotlin.$_$.p8;
64
+ var plus = kotlin_kotlin.$_$.q8;
65
65
  var copyToArray = kotlin_kotlin.$_$.y6;
66
66
  var combineReducers = kotlin_io_raspberryapps_game_engine_core.$_$.u2;
67
67
  var applyCatcher = kotlin_io_raspberryapps_game_engine_core.$_$.m2;
68
68
  var applyMiddleware = kotlin_io_raspberryapps_game_engine_core.$_$.n2;
69
69
  var compose = kotlin_io_raspberryapps_game_engine_core.$_$.x2;
70
70
  var createStore = kotlin_io_raspberryapps_game_engine_core.$_$.y2;
71
- var CoroutineImpl = kotlin_kotlin.$_$.na;
71
+ var CoroutineImpl = kotlin_kotlin.$_$.oa;
72
72
  var Unit_instance = kotlin_kotlin.$_$.f5;
73
73
  var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
74
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.y9;
75
- var initMetadataForLambda = kotlin_kotlin.$_$.lc;
74
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.z9;
75
+ var initMetadataForLambda = kotlin_kotlin.$_$.mc;
76
76
  var emptyList = kotlin_kotlin.$_$.d7;
77
77
  var RaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.g;
78
- var lazy = kotlin_kotlin.$_$.hi;
79
- var initMetadataForInterface = kotlin_kotlin.$_$.kc;
78
+ var lazy = kotlin_kotlin.$_$.ii;
79
+ var initMetadataForInterface = kotlin_kotlin.$_$.lc;
80
80
  var listOf_0 = kotlin_kotlin.$_$.g8;
81
81
  var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.s4;
82
- var createInvariantKTypeProjection = kotlin_kotlin.$_$.yd;
82
+ var createInvariantKTypeProjection = kotlin_kotlin.$_$.zd;
83
83
  var serializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c3;
84
84
  var KSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r2;
85
85
  var Logger_getInstance = kotlin_io_raspberryapps_cardgame_logger.$_$.m;
86
- var getKClassFromExpression = kotlin_kotlin.$_$.ae;
86
+ var getKClassFromExpression = kotlin_kotlin.$_$.be;
87
87
  var contentEquals = kotlin_kotlin.$_$.k6;
88
- var getBooleanHashCode = kotlin_kotlin.$_$.cc;
88
+ var getBooleanHashCode = kotlin_kotlin.$_$.dc;
89
89
  var contentHashCode = kotlin_kotlin.$_$.n6;
90
- var toString = kotlin_kotlin.$_$.kd;
91
- var defineProp = kotlin_kotlin.$_$.zb;
92
- var getNumberHashCode = kotlin_kotlin.$_$.dc;
93
- var equals = kotlin_kotlin.$_$.ac;
90
+ var toString = kotlin_kotlin.$_$.ld;
91
+ var defineProp = kotlin_kotlin.$_$.ac;
92
+ var getNumberHashCode = kotlin_kotlin.$_$.ec;
93
+ var equals = kotlin_kotlin.$_$.bc;
94
94
  var createSimpleEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
95
- var THROW_IAE = kotlin_kotlin.$_$.lh;
95
+ var THROW_IAE = kotlin_kotlin.$_$.mh;
96
96
  var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.e;
97
- var lazy_0 = kotlin_kotlin.$_$.gi;
97
+ var lazy_0 = kotlin_kotlin.$_$.hi;
98
98
  var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
99
- var Enum = kotlin_kotlin.$_$.zg;
100
- var FunctionAdapter = kotlin_kotlin.$_$.nb;
101
- var Comparator = kotlin_kotlin.$_$.wg;
102
- var hashCode = kotlin_kotlin.$_$.gc;
103
- var compareValues = kotlin_kotlin.$_$.w9;
104
- var toList = kotlin_kotlin.$_$.k9;
99
+ var Enum = kotlin_kotlin.$_$.ah;
100
+ var FunctionAdapter = kotlin_kotlin.$_$.ob;
101
+ var Comparator = kotlin_kotlin.$_$.xg;
102
+ var hashCode = kotlin_kotlin.$_$.hc;
103
+ var compareValues = kotlin_kotlin.$_$.x9;
104
+ var toList = kotlin_kotlin.$_$.l9;
105
105
  var collectionSizeOrDefault = kotlin_kotlin.$_$.i6;
106
106
  var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
107
- var sortedWith = kotlin_kotlin.$_$.b9;
107
+ var sortedWith = kotlin_kotlin.$_$.c9;
108
108
  var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.f2;
109
109
  var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.k2;
110
110
  var contentToString = kotlin_kotlin.$_$.o6;
111
- var Duration = kotlin_kotlin.$_$.ng;
112
- var getStringHashCode = kotlin_kotlin.$_$.fc;
113
- var enumEntries = kotlin_kotlin.$_$.pa;
111
+ var Duration = kotlin_kotlin.$_$.og;
112
+ var getStringHashCode = kotlin_kotlin.$_$.gc;
113
+ var enumEntries = kotlin_kotlin.$_$.qa;
114
114
  var previousToOrNull = kotlin_io_raspberryapps_game_engine_core.$_$.j3;
115
115
  var nextToOrNull = kotlin_io_raspberryapps_game_engine_core.$_$.h3;
116
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.ii;
116
+ var noWhenBranchMatchedException = kotlin_kotlin.$_$.ji;
117
117
  var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.w1;
118
118
  var System_instance = kotlin_kotlin.$_$.u4;
119
119
  var PlayerIdContract = kotlin_io_raspberryapps_game_engine_core.$_$.e;
120
- var toString_0 = kotlin_kotlin.$_$.oi;
121
- var Comparable = kotlin_kotlin.$_$.vg;
120
+ var toString_0 = kotlin_kotlin.$_$.pi;
121
+ var Comparable = kotlin_kotlin.$_$.wg;
122
122
  var listOfNotNull = kotlin_kotlin.$_$.e8;
123
123
  var joinToString = kotlin_kotlin.$_$.v7;
124
124
  var get_amountOfCards = kotlin_io_raspberryapps_game_engine_core.$_$.c;
125
125
  var Player = kotlin_io_raspberryapps_game_engine_core.$_$.i;
126
126
  var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
127
127
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.l1;
128
- var objectCreate = kotlin_kotlin.$_$.gd;
129
- var single = kotlin_kotlin.$_$.z8;
128
+ var objectCreate = kotlin_kotlin.$_$.hd;
129
+ var single = kotlin_kotlin.$_$.a9;
130
130
  var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
131
131
  var mapCapacity = kotlin_kotlin.$_$.h8;
132
132
  var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.p;
133
- var toMutableMap = kotlin_kotlin.$_$.o9;
133
+ var toMutableMap = kotlin_kotlin.$_$.p9;
134
134
  var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.c2;
135
- var toSet = kotlin_kotlin.$_$.q9;
136
- var sorted = kotlin_kotlin.$_$.c9;
135
+ var toSet = kotlin_kotlin.$_$.r9;
136
+ var sorted = kotlin_kotlin.$_$.d9;
137
137
  var createAnnotatedEnumSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
138
138
  var last = kotlin_kotlin.$_$.b8;
139
- var sum = kotlin_kotlin.$_$.d9;
139
+ var sum = kotlin_kotlin.$_$.e9;
140
140
  var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.p1;
141
141
  var first = kotlin_kotlin.$_$.k7;
142
142
  var first_0 = kotlin_kotlin.$_$.m7;
143
143
  var contains = kotlin_kotlin.$_$.j6;
144
144
  var Collection = kotlin_kotlin.$_$.h5;
145
- var initMetadataForObject = kotlin_kotlin.$_$.mc;
145
+ var initMetadataForObject = kotlin_kotlin.$_$.nc;
146
146
  var checkIndexOverflow = kotlin_kotlin.$_$.h6;
147
147
  var getPoint = kotlin_io_raspberryapps_game_engine_core.$_$.f1;
148
148
  var Toggles_instance = kotlin_io_raspberryapps_game_engine_core.$_$.d5;
@@ -150,20 +150,20 @@
150
150
  var MechanicException = kotlin_io_raspberryapps_game_engine_core.$_$.a;
151
151
  var asJsReadonlyArrayView = kotlin_kotlin.$_$.m5;
152
152
  var KtList = kotlin_kotlin.$_$.n5;
153
- var ensureNotNull = kotlin_kotlin.$_$.bi;
153
+ var ensureNotNull = kotlin_kotlin.$_$.ci;
154
154
  var GameCard = kotlin_io_raspberryapps_cardgame_core.$_$.r;
155
155
  var firstOrNull = kotlin_kotlin.$_$.h7;
156
156
  var Companion_instance = kotlin_io_raspberryapps_cardgame_core.$_$.n;
157
157
  var flatten = kotlin_kotlin.$_$.n7;
158
- var to = kotlin_kotlin.$_$.pi;
158
+ var to = kotlin_kotlin.$_$.qi;
159
159
  var mapOf = kotlin_kotlin.$_$.i8;
160
160
  var asSequence = kotlin_kotlin.$_$.c6;
161
- var filter = kotlin_kotlin.$_$.he;
162
- var map = kotlin_kotlin.$_$.le;
163
- var firstOrNull_0 = kotlin_kotlin.$_$.ie;
161
+ var filter = kotlin_kotlin.$_$.ie;
162
+ var map = kotlin_kotlin.$_$.me;
163
+ var firstOrNull_0 = kotlin_kotlin.$_$.je;
164
164
  var CardIndexComparator_instance = kotlin_io_raspberryapps_cardgame_core.$_$.l;
165
165
  var lastOrNull = kotlin_kotlin.$_$.a8;
166
- var toMap = kotlin_kotlin.$_$.m9;
166
+ var toMap = kotlin_kotlin.$_$.n9;
167
167
  var SealedClassSerializer_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.d;
168
168
  var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
169
169
  var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
@@ -199,17 +199,17 @@
199
199
  var getOrNull = kotlin_kotlin.$_$.p7;
200
200
  var getValue = kotlin_kotlin.$_$.q7;
201
201
  var _Duration___get_inWholeMilliseconds__impl__msfiry = kotlin_kotlin.$_$.g2;
202
- var equalsLong = kotlin_kotlin.$_$.bb;
203
- var coerceAtLeast = kotlin_kotlin.$_$.pd;
202
+ var equalsLong = kotlin_kotlin.$_$.cb;
203
+ var coerceAtLeast = kotlin_kotlin.$_$.qd;
204
204
  var Companion_getInstance_4 = kotlin_kotlin.$_$.v4;
205
205
  var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.c;
206
- var toDuration = kotlin_kotlin.$_$.qg;
207
- var toIntOrNull = kotlin_kotlin.$_$.ag;
206
+ var toDuration = kotlin_kotlin.$_$.rg;
207
+ var toIntOrNull = kotlin_kotlin.$_$.bg;
208
208
  var RulesDto = kotlin_io_raspberryapps_game_engine_core.$_$.a1;
209
209
  var Companion_instance_0 = kotlin_io_raspberryapps_game_engine_core.$_$.r4;
210
210
  var Companion_instance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.p4;
211
211
  var PlayerConnectionState_LIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.z3;
212
- var toDuration_0 = kotlin_kotlin.$_$.rg;
212
+ var toDuration_0 = kotlin_kotlin.$_$.sg;
213
213
  var PlayerConnectionState_LEFT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.y3;
214
214
  var mapFromDto_2 = kotlin_io_raspberryapps_game_engine_core.$_$.s;
215
215
  var mapToDto_2 = kotlin_io_raspberryapps_game_engine_core.$_$.x;
@@ -222,10 +222,10 @@
222
222
  var $serializer_getInstance_1 = kotlin_io_raspberryapps_game_engine_core.$_$.v4;
223
223
  var InstantSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
224
224
  var PlayerState = kotlin_io_raspberryapps_game_engine_core.$_$.h;
225
- var charSequenceLength = kotlin_kotlin.$_$.wb;
225
+ var charSequenceLength = kotlin_kotlin.$_$.xb;
226
226
  var LoggerPayload = kotlin_io_raspberryapps_cardgame_logger.$_$.e;
227
227
  var CardGrowthComparator = kotlin_io_raspberryapps_game_engine_core.$_$.c1;
228
- var take = kotlin_kotlin.$_$.f9;
228
+ var take = kotlin_kotlin.$_$.g9;
229
229
  var CardName_ACE_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.a;
230
230
  var CardName_KING_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.d;
231
231
  var CardName_QUEEN_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.f;
@@ -246,7 +246,7 @@
246
246
  var ProcessingReasonDto_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.w4;
247
247
  var filterByPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.l;
248
248
  var CardNumberComparator_instance = kotlin_io_raspberryapps_cardgame_core.$_$.m;
249
- var singleOrNull = kotlin_kotlin.$_$.y8;
249
+ var singleOrNull = kotlin_kotlin.$_$.z8;
250
250
  var addAll = kotlin_kotlin.$_$.w5;
251
251
  var Module_init_$Create$ = kotlin_org_kodein_di_kodein_di.$_$.a;
252
252
  var Json_0 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c;
@@ -260,43 +260,44 @@
260
260
  var CombinationsCheckerProvider = kotlin_io_raspberryapps_cardgame_core.$_$.a1;
261
261
  var CombinationsCheckerProviderImpl = kotlin_io_raspberryapps_cardgame_core.$_$.z;
262
262
  var MutableSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r;
263
- var toList_0 = kotlin_kotlin.$_$.j9;
264
- var plus_0 = kotlin_kotlin.$_$.q8;
263
+ var toList_0 = kotlin_kotlin.$_$.k9;
264
+ var plus_0 = kotlin_kotlin.$_$.r8;
265
265
  var listOfNotNull_0 = kotlin_kotlin.$_$.d8;
266
266
  var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.s;
267
- var toMutableSet = kotlin_kotlin.$_$.p9;
267
+ var toMutableSet = kotlin_kotlin.$_$.q9;
268
268
  var filterByCardName = kotlin_io_raspberryapps_cardgame_core.$_$.w;
269
269
  var first_1 = kotlin_kotlin.$_$.l7;
270
- var setOf = kotlin_kotlin.$_$.w8;
271
- var setOf_0 = kotlin_kotlin.$_$.x8;
270
+ var setOf = kotlin_kotlin.$_$.x8;
271
+ var setOf_0 = kotlin_kotlin.$_$.y8;
272
272
  var NoSuchElementException_init_$Create$_0 = kotlin_kotlin.$_$.u1;
273
- var compareTo = kotlin_kotlin.$_$.yb;
273
+ var compareTo = kotlin_kotlin.$_$.zb;
274
274
  var distributeCardsBottom = kotlin_io_raspberryapps_cardgame_core.$_$.u;
275
275
  var distributeCardsTop = kotlin_io_raspberryapps_cardgame_core.$_$.v;
276
- var toMutableList = kotlin_kotlin.$_$.n9;
276
+ var toMutableList = kotlin_kotlin.$_$.o9;
277
277
  var CardsRandomProvider_CUSTOM_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.i;
278
278
  var CardsRandomProvider_RANDOM_ORG_SIGNED_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.j;
279
279
  var CardsRandomProvider_RANDOM_ORG_getInstance = kotlin_io_raspberryapps_cardgame_core.$_$.k;
280
- var initMetadataForCoroutine = kotlin_kotlin.$_$.jc;
280
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.kc;
281
281
  var get_indices = kotlin_kotlin.$_$.u7;
282
- var abs = kotlin_kotlin.$_$.ld;
283
- var zip = kotlin_kotlin.$_$.t9;
282
+ var abs = kotlin_kotlin.$_$.md;
283
+ var zip = kotlin_kotlin.$_$.u9;
284
284
  var PlayerIdContractOrderComparator = kotlin_io_raspberryapps_game_engine_core.$_$.d;
285
285
  var Team = kotlin_io_raspberryapps_game_engine_core.$_$.j;
286
286
  var getValueInHand = kotlin_io_raspberryapps_game_engine_core.$_$.g1;
287
287
  var AgentType_BOT_NATIVE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.u3;
288
288
  var AgentType_BOT_REPLACEMENT_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.v3;
289
- var coerceIn = kotlin_kotlin.$_$.sd;
290
- var numberToInt = kotlin_kotlin.$_$.fd;
289
+ var coerceIn = kotlin_kotlin.$_$.td;
290
+ var maxOrNull = kotlin_kotlin.$_$.k8;
291
+ var numberToInt = kotlin_kotlin.$_$.gd;
291
292
  var checkCountOverflow = kotlin_kotlin.$_$.g6;
292
- var roundToInt = kotlin_kotlin.$_$.md;
293
+ var roundToInt = kotlin_kotlin.$_$.nd;
293
294
  var average = kotlin_kotlin.$_$.d6;
294
295
  var PlayerIdOrderComparator = kotlin_io_raspberryapps_game_engine_core.$_$.f;
295
296
  var nextToPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.q;
296
297
  var previousPlayerId = kotlin_io_raspberryapps_game_engine_core.$_$.r;
297
298
  var Companion_instance_2 = kotlin_io_raspberryapps_game_engine_core.$_$.z4;
298
- var contains_0 = kotlin_kotlin.$_$.oe;
299
- var split = kotlin_kotlin.$_$.pf;
299
+ var contains_0 = kotlin_kotlin.$_$.pe;
300
+ var split = kotlin_kotlin.$_$.qf;
300
301
  var UserInfoData = kotlin_io_raspberryapps_cardgame_random.$_$.c;
301
302
  var CardDeckRequestUserData = kotlin_io_raspberryapps_cardgame_random.$_$.a;
302
303
  var get_actionTag = kotlin_io_raspberryapps_game_engine_core.$_$.p2;
@@ -332,8 +333,8 @@
332
333
  var LoggerOutputDataDto = kotlin_io_raspberryapps_game_engine_core.$_$.a3;
333
334
  var Reason_FINISHED_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.g4;
334
335
  var GameFinishedReason = kotlin_io_raspberryapps_game_engine_core.$_$.k1;
335
- var fromInt = kotlin_kotlin.$_$.cb;
336
- var compare = kotlin_kotlin.$_$.wa;
336
+ var fromInt = kotlin_kotlin.$_$.db;
337
+ var compare = kotlin_kotlin.$_$.xa;
337
338
  var Default_getInstance = kotlin_kotlin.$_$.r4;
338
339
  var TimerType_DELAY_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.h4;
339
340
  var StartTimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.i2;
@@ -348,14 +349,14 @@
348
349
  var ArrayDeque_init_$Create$ = kotlin_kotlin.$_$.f;
349
350
  var Reducer = kotlin_io_raspberryapps_game_engine_core.$_$.s2;
350
351
  var TimerAction = kotlin_io_raspberryapps_game_engine_core.$_$.k2;
351
- var minus = kotlin_kotlin.$_$.k8;
352
+ var minus = kotlin_kotlin.$_$.l8;
352
353
  var updateOrAddItems = kotlin_io_raspberryapps_game_engine_core.$_$.o3;
353
354
  var get_byIdPlayerPredicate = kotlin_io_raspberryapps_game_engine_core.$_$.k;
354
355
  var updateItem = kotlin_io_raspberryapps_game_engine_core.$_$.m3;
355
- var toDuration_1 = kotlin_kotlin.$_$.pg;
356
+ var toDuration_1 = kotlin_kotlin.$_$.qg;
356
357
  var updated = kotlin_io_raspberryapps_game_engine_core.$_$.p3;
357
- var takeLast = kotlin_kotlin.$_$.e9;
358
- var plus_1 = kotlin_kotlin.$_$.m8;
358
+ var takeLast = kotlin_kotlin.$_$.f9;
359
+ var plus_1 = kotlin_kotlin.$_$.n8;
359
360
  var updateLastItem = kotlin_io_raspberryapps_game_engine_core.$_$.n3;
360
361
  var PlayerConnectionState_DISCONNECTING_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.x3;
361
362
  var d = kotlin_io_raspberryapps_cardgame_logger.$_$.h;
@@ -368,18 +369,18 @@
368
369
  var get_atomicfu$reentrantLock = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
369
370
  var LogType_DEBUG_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.i4;
370
371
  var LogType_ERROR_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.j4;
371
- var stackTraceToString = kotlin_kotlin.$_$.li;
372
- var take_0 = kotlin_kotlin.$_$.wf;
372
+ var stackTraceToString = kotlin_kotlin.$_$.mi;
373
+ var take_0 = kotlin_kotlin.$_$.xf;
373
374
  var LogType_INFO_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.k4;
374
375
  var LogType_VERBOSE_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.l4;
375
376
  var LogType_WARN_getInstance = kotlin_io_raspberryapps_game_engine_core.$_$.m4;
376
377
  var get_entries = kotlin_io_raspberryapps_game_engine_core.$_$.z2;
377
378
  var LoggerEnabledTrigger = kotlin_io_raspberryapps_cardgame_logger.$_$.d;
378
- var isArray = kotlin_kotlin.$_$.nc;
379
+ var isArray = kotlin_kotlin.$_$.oc;
379
380
  var mapOfObject = kotlin_io_raspberryapps_game_engine_core.$_$.g3;
380
381
  var GameUserInfo = kotlin_io_raspberryapps_game_engine_core.$_$.b;
381
382
  var generateMsg = kotlin_io_raspberryapps_cardgame_logger.$_$.b;
382
- var mutableListOf = kotlin_kotlin.$_$.l8;
383
+ var mutableListOf = kotlin_kotlin.$_$.m8;
383
384
  var CombinedRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.c;
384
385
  var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
385
386
  var Companion_instance_3 = kotlin_org_kodein_di_kodein_di.$_$.b;
@@ -1269,21 +1270,21 @@
1269
1270
  tmp = types;
1270
1271
  }
1271
1272
  types = tmp;
1272
- return $super === VOID ? this.m97(loggerKey, types) : $super.m97.call(this, loggerKey, types);
1273
+ return $super === VOID ? this.l97(loggerKey, types) : $super.l97.call(this, loggerKey, types);
1273
1274
  }
1274
1275
  initMetadataForInterface(FileLoggerOutput, 'FileLoggerOutput', VOID, VOID, [LoggerOutput, LoggerEnabledTrigger]);
1275
- initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', FileLoggerOutputImpl, VOID, [FileLoggerOutput]);
1276
+ initMetadataForClass(FileLoggerOutputImpl, 'FileLoggerOutputImpl', VOID, VOID, [FileLoggerOutput]);
1276
1277
  function filterLivePlayers(store, playerIds, includeBots, $super) {
1277
1278
  includeBots = includeBots === VOID ? false : includeBots;
1278
- return $super === VOID ? this.n97(store, playerIds, includeBots) : $super.n97.call(this, store, playerIds, includeBots);
1279
+ return $super === VOID ? this.m97(store, playerIds, includeBots) : $super.m97.call(this, store, playerIds, includeBots);
1279
1280
  }
1280
1281
  function filterLiveDuringGamePlayers(store, playerIds, includeBots, $super) {
1281
1282
  includeBots = includeBots === VOID ? false : includeBots;
1282
- return $super === VOID ? this.o97(store, playerIds, includeBots) : $super.o97.call(this, store, playerIds, includeBots);
1283
+ return $super === VOID ? this.n97(store, playerIds, includeBots) : $super.n97.call(this, store, playerIds, includeBots);
1283
1284
  }
1284
1285
  function createConfig(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league, $super) {
1285
1286
  league = league === VOID ? null : league;
1286
- return $super === VOID ? this.p97(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.p97.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
1287
+ return $super === VOID ? this.o97(mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) : $super.o97.call(this, mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league);
1287
1288
  }
1288
1289
  initMetadataForInterface(GameHelper, 'GameHelper');
1289
1290
  initMetadataForClass(GameHelperImpl, 'GameHelperImpl', VOID, VOID, [GameHelper]);
@@ -1296,7 +1297,7 @@
1296
1297
  tmp = existingNicknames;
1297
1298
  }
1298
1299
  existingNicknames = tmp;
1299
- return $super === VOID ? this.r97(playerId, existingNicknames) : $super.r97.call(this, playerId, existingNicknames);
1300
+ return $super === VOID ? this.q97(playerId, existingNicknames) : $super.q97.call(this, playerId, existingNicknames);
1300
1301
  }
1301
1302
  initMetadataForInterface(GameResources, 'GameResources');
1302
1303
  initMetadataForCompanion(Companion_167);
@@ -2207,23 +2208,23 @@
2207
2208
  return false;
2208
2209
  return true;
2209
2210
  };
2210
- function RatingConfig(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease, ffaMaxRatingDecreaseFraction) {
2211
+ function RatingConfig(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease) {
2211
2212
  defaultFactor = defaultFactor === VOID ? 30 : defaultFactor;
2212
2213
  eloScaleH2H = eloScaleH2H === VOID ? 400.0 : eloScaleH2H;
2213
2214
  eloScaleFfa = eloScaleFfa === VOID ? 700.0 : eloScaleFfa;
2214
2215
  h2hCloseLossThresholdRatio = h2hCloseLossThresholdRatio === VOID ? 0.9 : h2hCloseLossThresholdRatio;
2215
2216
  ffaMovEnabled = ffaMovEnabled === VOID ? true : ffaMovEnabled;
2217
+ ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction === VOID ? 0.8 : ffaMaxRatingDecreaseFraction;
2216
2218
  botNativeUpdatesRating = botNativeUpdatesRating === VOID ? true : botNativeUpdatesRating;
2217
2219
  replacementForcedDecrease = replacementForcedDecrease === VOID ? true : replacementForcedDecrease;
2218
- ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction === VOID ? 0.8 : ffaMaxRatingDecreaseFraction;
2219
2220
  this.defaultFactor = defaultFactor;
2220
2221
  this.eloScaleH2H = eloScaleH2H;
2221
2222
  this.eloScaleFfa = eloScaleFfa;
2222
2223
  this.h2hCloseLossThresholdRatio = h2hCloseLossThresholdRatio;
2223
2224
  this.ffaMovEnabled = ffaMovEnabled;
2225
+ this.ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction;
2224
2226
  this.botNativeUpdatesRating = botNativeUpdatesRating;
2225
2227
  this.replacementForcedDecrease = replacementForcedDecrease;
2226
- this.ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction;
2227
2228
  }
2228
2229
  protoOf(RatingConfig).q6k = function () {
2229
2230
  return this.defaultFactor;
@@ -2241,13 +2242,13 @@
2241
2242
  return this.ffaMovEnabled;
2242
2243
  };
2243
2244
  protoOf(RatingConfig).v6k = function () {
2244
- return this.botNativeUpdatesRating;
2245
+ return this.ffaMaxRatingDecreaseFraction;
2245
2246
  };
2246
2247
  protoOf(RatingConfig).w6k = function () {
2247
- return this.replacementForcedDecrease;
2248
+ return this.botNativeUpdatesRating;
2248
2249
  };
2249
2250
  protoOf(RatingConfig).x6k = function () {
2250
- return this.ffaMaxRatingDecreaseFraction;
2251
+ return this.replacementForcedDecrease;
2251
2252
  };
2252
2253
  protoOf(RatingConfig).ne = function () {
2253
2254
  return this.defaultFactor;
@@ -2265,30 +2266,30 @@
2265
2266
  return this.ffaMovEnabled;
2266
2267
  };
2267
2268
  protoOf(RatingConfig).w64 = function () {
2268
- return this.botNativeUpdatesRating;
2269
+ return this.ffaMaxRatingDecreaseFraction;
2269
2270
  };
2270
2271
  protoOf(RatingConfig).x64 = function () {
2271
- return this.replacementForcedDecrease;
2272
+ return this.botNativeUpdatesRating;
2272
2273
  };
2273
2274
  protoOf(RatingConfig).u6j = function () {
2274
- return this.ffaMaxRatingDecreaseFraction;
2275
+ return this.replacementForcedDecrease;
2275
2276
  };
2276
- protoOf(RatingConfig).y6k = function (defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease, ffaMaxRatingDecreaseFraction) {
2277
- return new RatingConfig(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease, ffaMaxRatingDecreaseFraction);
2277
+ protoOf(RatingConfig).y6k = function (defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease) {
2278
+ return new RatingConfig(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease);
2278
2279
  };
2279
- protoOf(RatingConfig).copy = function (defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease, ffaMaxRatingDecreaseFraction, $super) {
2280
+ protoOf(RatingConfig).copy = function (defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease, $super) {
2280
2281
  defaultFactor = defaultFactor === VOID ? this.defaultFactor : defaultFactor;
2281
2282
  eloScaleH2H = eloScaleH2H === VOID ? this.eloScaleH2H : eloScaleH2H;
2282
2283
  eloScaleFfa = eloScaleFfa === VOID ? this.eloScaleFfa : eloScaleFfa;
2283
2284
  h2hCloseLossThresholdRatio = h2hCloseLossThresholdRatio === VOID ? this.h2hCloseLossThresholdRatio : h2hCloseLossThresholdRatio;
2284
2285
  ffaMovEnabled = ffaMovEnabled === VOID ? this.ffaMovEnabled : ffaMovEnabled;
2286
+ ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction === VOID ? this.ffaMaxRatingDecreaseFraction : ffaMaxRatingDecreaseFraction;
2285
2287
  botNativeUpdatesRating = botNativeUpdatesRating === VOID ? this.botNativeUpdatesRating : botNativeUpdatesRating;
2286
2288
  replacementForcedDecrease = replacementForcedDecrease === VOID ? this.replacementForcedDecrease : replacementForcedDecrease;
2287
- ffaMaxRatingDecreaseFraction = ffaMaxRatingDecreaseFraction === VOID ? this.ffaMaxRatingDecreaseFraction : ffaMaxRatingDecreaseFraction;
2288
- return $super === VOID ? this.y6k(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease, ffaMaxRatingDecreaseFraction) : $super.y6k.call(this, defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, botNativeUpdatesRating, replacementForcedDecrease, ffaMaxRatingDecreaseFraction);
2289
+ return $super === VOID ? this.y6k(defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease) : $super.y6k.call(this, defaultFactor, eloScaleH2H, eloScaleFfa, h2hCloseLossThresholdRatio, ffaMovEnabled, ffaMaxRatingDecreaseFraction, botNativeUpdatesRating, replacementForcedDecrease);
2289
2290
  };
2290
2291
  protoOf(RatingConfig).toString = function () {
2291
- return 'RatingConfig(defaultFactor=' + this.defaultFactor + ', eloScaleH2H=' + this.eloScaleH2H + ', eloScaleFfa=' + this.eloScaleFfa + ', h2hCloseLossThresholdRatio=' + this.h2hCloseLossThresholdRatio + ', ffaMovEnabled=' + this.ffaMovEnabled + ', botNativeUpdatesRating=' + this.botNativeUpdatesRating + ', replacementForcedDecrease=' + this.replacementForcedDecrease + ', ffaMaxRatingDecreaseFraction=' + this.ffaMaxRatingDecreaseFraction + ')';
2292
+ return 'RatingConfig(defaultFactor=' + this.defaultFactor + ', eloScaleH2H=' + this.eloScaleH2H + ', eloScaleFfa=' + this.eloScaleFfa + ', h2hCloseLossThresholdRatio=' + this.h2hCloseLossThresholdRatio + ', ffaMovEnabled=' + this.ffaMovEnabled + ', ffaMaxRatingDecreaseFraction=' + this.ffaMaxRatingDecreaseFraction + ', botNativeUpdatesRating=' + this.botNativeUpdatesRating + ', replacementForcedDecrease=' + this.replacementForcedDecrease + ')';
2292
2293
  };
2293
2294
  protoOf(RatingConfig).hashCode = function () {
2294
2295
  var result = getNumberHashCode(this.defaultFactor);
@@ -2296,9 +2297,9 @@
2296
2297
  result = imul(result, 31) + getNumberHashCode(this.eloScaleFfa) | 0;
2297
2298
  result = imul(result, 31) + getNumberHashCode(this.h2hCloseLossThresholdRatio) | 0;
2298
2299
  result = imul(result, 31) + getBooleanHashCode(this.ffaMovEnabled) | 0;
2300
+ result = imul(result, 31) + getNumberHashCode(this.ffaMaxRatingDecreaseFraction) | 0;
2299
2301
  result = imul(result, 31) + getBooleanHashCode(this.botNativeUpdatesRating) | 0;
2300
2302
  result = imul(result, 31) + getBooleanHashCode(this.replacementForcedDecrease) | 0;
2301
- result = imul(result, 31) + getNumberHashCode(this.ffaMaxRatingDecreaseFraction) | 0;
2302
2303
  return result;
2303
2304
  };
2304
2305
  protoOf(RatingConfig).equals = function (other) {
@@ -2316,12 +2317,12 @@
2316
2317
  return false;
2317
2318
  if (!(this.ffaMovEnabled === other.ffaMovEnabled))
2318
2319
  return false;
2320
+ if (!equals(this.ffaMaxRatingDecreaseFraction, other.ffaMaxRatingDecreaseFraction))
2321
+ return false;
2319
2322
  if (!(this.botNativeUpdatesRating === other.botNativeUpdatesRating))
2320
2323
  return false;
2321
2324
  if (!(this.replacementForcedDecrease === other.replacementForcedDecrease))
2322
2325
  return false;
2323
- if (!equals(this.ffaMaxRatingDecreaseFraction, other.ffaMaxRatingDecreaseFraction))
2324
- return false;
2325
2326
  return true;
2326
2327
  };
2327
2328
  function Companion_4() {
@@ -42625,16 +42626,18 @@
42625
42626
  var opponent = tmp$ret$2;
42626
42627
  var expected = pBeats($this, item.h6x_1, opponent.h6x_1, cfg.eloScaleH2H);
42627
42628
  var effectivePoints = getEffectivePoints($this, item, cfg);
42628
- var actual = effectivePoints >= maxScore ? 1.0 : 0.0;
42629
- var kFactor = baseK($this, item.l6x_1, gameComplexityCoefficient, cfg);
42629
+ var opponentEffectivePoints = getEffectivePoints($this, opponent, cfg);
42630
42630
  var tmp;
42631
- if (actual === 0.0 && effectivePoints >= maxScore * cfg.h2hCloseLossThresholdRatio) {
42632
- tmp = calculateScoreFactor($this, maxScore, effectivePoints, cfg.h2hCloseLossThresholdRatio);
42631
+ if (effectivePoints >= maxScore && opponentEffectivePoints >= maxScore) {
42632
+ tmp = calculateProportionalResult($this, effectivePoints, maxScore);
42633
42633
  } else {
42634
- tmp = 1.0;
42634
+ tmp = effectivePoints >= maxScore ? 1.0 : 0.0;
42635
42635
  }
42636
- var scoreFactor = tmp;
42637
- var ratingChange = kFactor * scoreFactor * (actual - expected);
42636
+ var actual = tmp;
42637
+ var kFactor = baseK($this, item.l6x_1, gameComplexityCoefficient, cfg);
42638
+ var baseRatingChange = kFactor * (actual - expected);
42639
+ var scoreFactor = calculateCloseLossProtection($this, effectivePoints, maxScore, baseRatingChange, cfg);
42640
+ var ratingChange = baseRatingChange * scoreFactor;
42638
42641
  var newRating = clampAndRound($this, item.h6x_1 + ratingChange, minUserRating, maxUserRating);
42639
42642
  if (item.j6x_1 && newRating < item.h6x_1 && !(item.k6x_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && cfg.replacementForcedDecrease)) {
42640
42643
  newRating = item.h6x_1;
@@ -42657,38 +42660,52 @@
42657
42660
  var _iterator__ex2g4s = ratingList.l();
42658
42661
  while (_iterator__ex2g4s.m()) {
42659
42662
  var item = _iterator__ex2g4s.n();
42660
- var tmp$ret$2;
42663
+ var tmp$ret$2 = getEffectivePoints($this, item, cfg);
42664
+ destination.j(tmp$ret$2);
42665
+ }
42666
+ var playerScores = destination;
42667
+ var dynamicMaxScore = calculateDynamicMaxScore($this, maxScore, playerScores);
42668
+ // Inline function 'kotlin.collections.map' call
42669
+ // Inline function 'kotlin.collections.mapTo' call
42670
+ var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(ratingList, 10));
42671
+ var _iterator__ex2g4s_0 = ratingList.l();
42672
+ while (_iterator__ex2g4s_0.m()) {
42673
+ var item_0 = _iterator__ex2g4s_0.n();
42674
+ var tmp$ret$5;
42661
42675
  $l$block: {
42662
- if (item.k6x_1.equals(AgentType_BOT_NATIVE_getInstance()) && !cfg.botNativeUpdatesRating) {
42663
- tmp$ret$2 = frozenOutput($this, item);
42676
+ if (item_0.k6x_1.equals(AgentType_BOT_NATIVE_getInstance()) && !cfg.botNativeUpdatesRating) {
42677
+ tmp$ret$5 = frozenOutput($this, item_0);
42664
42678
  break $l$block;
42665
42679
  }
42666
42680
  // Inline function 'kotlin.collections.filter' call
42667
42681
  // Inline function 'kotlin.collections.filterTo' call
42668
- var destination_0 = ArrayList_init_$Create$_0();
42669
- var _iterator__ex2g4s_0 = ratingList.l();
42670
- while (_iterator__ex2g4s_0.m()) {
42671
- var element = _iterator__ex2g4s_0.n();
42672
- if (!(element.g6x_1 === item.g6x_1)) {
42673
- destination_0.j(element);
42682
+ var destination_1 = ArrayList_init_$Create$_0();
42683
+ var _iterator__ex2g4s_1 = ratingList.l();
42684
+ while (_iterator__ex2g4s_1.m()) {
42685
+ var element = _iterator__ex2g4s_1.n();
42686
+ if (!(element.g6x_1 === item_0.g6x_1)) {
42687
+ destination_1.j(element);
42674
42688
  }
42675
42689
  }
42676
- var opponents = destination_0;
42690
+ var opponents = destination_1;
42677
42691
  var totalExpected = 0.0;
42678
42692
  var totalActual = 0.0;
42679
42693
  // Inline function 'kotlin.collections.forEach' call
42680
- var _iterator__ex2g4s_1 = opponents.l();
42681
- while (_iterator__ex2g4s_1.m()) {
42682
- var element_0 = _iterator__ex2g4s_1.n();
42683
- var expected = pBeats($this, item.h6x_1, element_0.h6x_1, cfg.eloScaleFfa);
42684
- var actual = calculatePairwiseResult($this, item, element_0, maxScore, cfg);
42694
+ var _iterator__ex2g4s_2 = opponents.l();
42695
+ while (_iterator__ex2g4s_2.m()) {
42696
+ var element_0 = _iterator__ex2g4s_2.n();
42697
+ var expected = pBeats($this, item_0.h6x_1, element_0.h6x_1, cfg.eloScaleFfa);
42698
+ var actual = calculateFfaPairwiseResult($this, item_0, element_0, playerScores, maxScore, cfg);
42685
42699
  totalExpected = totalExpected + expected;
42686
42700
  totalActual = totalActual + actual;
42687
42701
  }
42688
- var baseKFactor = baseK($this, item.l6x_1, gameComplexityCoefficient, cfg);
42702
+ var baseKFactor = baseK($this, item_0.l6x_1, gameComplexityCoefficient, cfg);
42689
42703
  var ffaScaling = calculateFfaScaling($this, ratingList.o(), cfg);
42690
42704
  var effectiveKFactor = baseKFactor * ffaScaling;
42691
- var ratingChange = effectiveKFactor * (totalActual - totalExpected);
42705
+ var baseRatingChange = effectiveKFactor * (totalActual - totalExpected);
42706
+ var playerEffectivePoints = getEffectivePoints($this, item_0, cfg);
42707
+ var scoreFactor = calculateCloseLossProtection($this, playerEffectivePoints, maxScore, baseRatingChange, cfg);
42708
+ var ratingChange = baseRatingChange * scoreFactor;
42692
42709
  var theoreticalMaxGain = effectiveKFactor * (ratingList.o() - 1 | 0);
42693
42710
  var maxRatingDecrease = theoreticalMaxGain / ratingList.o() * cfg.ffaMaxRatingDecreaseFraction;
42694
42711
  var tmp;
@@ -42698,33 +42715,95 @@
42698
42715
  tmp = ratingChange;
42699
42716
  }
42700
42717
  var limitedRatingChange = tmp;
42701
- var newRating = clampAndRound($this, item.h6x_1 + limitedRatingChange, minUserRating, maxUserRating);
42702
- if (item.j6x_1 && newRating < item.h6x_1 && !(item.k6x_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && cfg.replacementForcedDecrease)) {
42703
- newRating = item.h6x_1;
42718
+ var newRating = clampAndRound($this, item_0.h6x_1 + limitedRatingChange, minUserRating, maxUserRating);
42719
+ if (item_0.j6x_1 && newRating < item_0.h6x_1 && !(item_0.k6x_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && cfg.replacementForcedDecrease)) {
42720
+ newRating = item_0.h6x_1;
42704
42721
  }
42705
- tmp$ret$2 = new PlayerRatingOutput(item.g6x_1, item.h6x_1, newRating, item.j6x_1);
42722
+ tmp$ret$5 = new PlayerRatingOutput(item_0.g6x_1, item_0.h6x_1, newRating, item_0.j6x_1);
42706
42723
  }
42707
- destination.j(tmp$ret$2);
42724
+ destination_0.j(tmp$ret$5);
42708
42725
  }
42709
- return destination;
42726
+ return destination_0;
42710
42727
  }
42711
- function calculatePairwiseResult($this, player, opponent, maxScore, cfg) {
42728
+ function calculateFfaPairwiseResult($this, player, opponent, allPlayerScores, maxScore, cfg) {
42712
42729
  var playerEffectivePoints = getEffectivePoints($this, player, cfg);
42713
42730
  var opponentEffectivePoints = getEffectivePoints($this, opponent, cfg);
42714
42731
  var tmp;
42715
42732
  if (cfg.ffaMovEnabled) {
42716
- tmp = calculateMarginAwarePairwiseResult($this, playerEffectivePoints, opponentEffectivePoints, maxScore);
42733
+ tmp = calculateFfaAdaptivePairwiseResult($this, playerEffectivePoints, opponentEffectivePoints, allPlayerScores, maxScore);
42734
+ } else {
42735
+ tmp = calculateProportionalPairwiseResult($this, playerEffectivePoints, opponentEffectivePoints, maxScore);
42736
+ }
42737
+ return tmp;
42738
+ }
42739
+ function calculateProportionalPairwiseResult($this, playerPoints, opponentPoints, maxScore) {
42740
+ var tmp;
42741
+ if (maxScore > 0) {
42742
+ // Inline function 'kotlin.math.max' call
42743
+ var b = playerPoints / maxScore;
42744
+ var playerProportion = Math.max(0.0, b);
42745
+ // Inline function 'kotlin.math.max' call
42746
+ var b_0 = opponentPoints / maxScore;
42747
+ var opponentProportion = Math.max(0.0, b_0);
42748
+ var tmp_0;
42749
+ if (playerProportion > opponentProportion) {
42750
+ var tmp_1 = playerProportion - opponentProportion;
42751
+ // Inline function 'kotlin.math.max' call
42752
+ tmp_0 = 0.5 + 0.5 * (tmp_1 / Math.max(playerProportion, opponentProportion));
42753
+ } else if (playerProportion < opponentProportion) {
42754
+ var tmp_2 = opponentProportion - playerProportion;
42755
+ // Inline function 'kotlin.math.max' call
42756
+ tmp_0 = 0.5 - 0.5 * (tmp_2 / Math.max(playerProportion, opponentProportion));
42757
+ } else {
42758
+ tmp_0 = 0.5;
42759
+ }
42760
+ tmp = tmp_0;
42717
42761
  } else {
42718
- tmp = playerEffectivePoints > opponentEffectivePoints ? 1.0 : playerEffectivePoints < opponentEffectivePoints ? 0.0 : 0.5;
42762
+ tmp = playerPoints > opponentPoints ? 1.0 : playerPoints < opponentPoints ? 0.0 : 0.5;
42719
42763
  }
42720
42764
  return tmp;
42721
42765
  }
42722
- function calculateMarginAwarePairwiseResult($this, playerPoints, opponentPoints, maxScore) {
42766
+ function calculateFfaAdaptivePairwiseResult($this, playerPoints, opponentPoints, allPlayerScores, maxScore) {
42723
42767
  var scoreDiff = playerPoints - opponentPoints | 0;
42724
- var maxPossibleDiff = maxScore;
42725
- var normalizedDiff = coerceIn(scoreDiff / maxPossibleDiff, -1.0, 1.0);
42768
+ var sortedScores = sorted(allPlayerScores);
42769
+ var tmp;
42770
+ if (sortedScores.o() >= 2) {
42771
+ // Inline function 'kotlin.math.max' call
42772
+ var a = last(sortedScores) - sortedScores.p(sortedScores.o() - 2 | 0) | 0;
42773
+ tmp = Math.max(a, 50);
42774
+ } else {
42775
+ tmp = maxScore;
42776
+ }
42777
+ var competitiveRange = tmp;
42778
+ var normalizedDiff = coerceIn(scoreDiff / competitiveRange, -1.0, 1.0);
42726
42779
  return 0.5 + 0.5 * normalizedDiff;
42727
42780
  }
42781
+ function calculateDynamicMaxScore($this, maxScore, playerScores) {
42782
+ var tmp0_elvis_lhs = maxOrNull(playerScores);
42783
+ var maxActualScore = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
42784
+ // Inline function 'kotlin.math.max' call
42785
+ return Math.max(maxScore, maxActualScore);
42786
+ }
42787
+ function calculateProportionalResult($this, playerScore, dynamicMaxScore) {
42788
+ var tmp;
42789
+ if (dynamicMaxScore > 0) {
42790
+ // Inline function 'kotlin.math.max' call
42791
+ var b = playerScore / dynamicMaxScore;
42792
+ tmp = Math.max(0.0, b);
42793
+ } else {
42794
+ tmp = 0.0;
42795
+ }
42796
+ return tmp;
42797
+ }
42798
+ function calculateCloseLossProtection($this, playerScore, originalMaxScore, baseRatingChange, cfg) {
42799
+ var tmp;
42800
+ if (playerScore >= originalMaxScore * cfg.h2hCloseLossThresholdRatio && baseRatingChange < 0) {
42801
+ tmp = calculateScoreFactor($this, originalMaxScore, playerScore, cfg.h2hCloseLossThresholdRatio);
42802
+ } else {
42803
+ tmp = 1.0;
42804
+ }
42805
+ return tmp;
42806
+ }
42728
42807
  function calculateFfaScaling($this, playerCount, cfg) {
42729
42808
  switch (playerCount) {
42730
42809
  case 3:
@@ -42960,8 +43039,19 @@
42960
43039
  destination_2.j(tmp$ret$17);
42961
43040
  }
42962
43041
  var teamAvgLoser = average(destination_2);
42963
- var winnerTeamWon = winnerTeamOriginalScore >= maxScore;
42964
- var loserTeamWon = loserTeamOriginalScore >= maxScore;
43042
+ var winnerActual;
43043
+ var loserActual;
43044
+ if (winnerTeamOriginalScore >= maxScore && loserTeamOriginalScore >= maxScore) {
43045
+ var rawWinnerActual = calculateProportionalResult(this, winnerTeamScore, maxScore);
43046
+ var rawLoserActual = calculateProportionalResult(this, loserTeamScore, maxScore);
43047
+ winnerActual = rawWinnerActual;
43048
+ // Inline function 'kotlin.math.min' call
43049
+ var b = rawWinnerActual * 0.95;
43050
+ loserActual = Math.min(rawLoserActual, b);
43051
+ } else {
43052
+ winnerActual = winnerTeamOriginalScore >= maxScore ? 1.0 : 0.0;
43053
+ loserActual = loserTeamOriginalScore >= maxScore ? 1.0 : 0.0;
43054
+ }
42965
43055
  // Inline function 'kotlin.collections.mutableListOf' call
42966
43056
  var results = ArrayList_init_$Create$_0();
42967
43057
  // Inline function 'kotlin.collections.forEach' call
@@ -42972,23 +43062,18 @@
42972
43062
  results.j(frozenOutput(this, element_5));
42973
43063
  } else {
42974
43064
  var expected = pBeats(this, element_5.h6x_1, teamAvgLoser, ratingConfig.eloScaleH2H);
42975
- var actual = winnerTeamOriginalScore >= maxScore ? 1.0 : 0.0;
42976
43065
  var tmp_3;
42977
43066
  if (element_5.k6x_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && ratingConfig.replacementForcedDecrease) {
42978
43067
  tmp_3 = 0.0;
42979
43068
  } else {
42980
- tmp_3 = actual;
43069
+ tmp_3 = winnerActual;
42981
43070
  }
42982
43071
  var effectiveActual = tmp_3;
42983
43072
  var kFactor = baseK(this, element_5.l6x_1, gameComplexityCoefficient, ratingConfig);
42984
- var tmp_4;
42985
- if (effectiveActual === 0.0 && loserTeamOriginalScore >= maxScore * ratingConfig.h2hCloseLossThresholdRatio) {
42986
- tmp_4 = calculateScoreFactor(this, maxScore, loserTeamOriginalScore, ratingConfig.h2hCloseLossThresholdRatio);
42987
- } else {
42988
- tmp_4 = 1.0;
42989
- }
42990
- var scoreFactor = tmp_4;
42991
- var ratingChange = kFactor * scoreFactor * (effectiveActual - expected);
43073
+ var baseRatingChange = kFactor * (effectiveActual - expected);
43074
+ var playerEffectivePoints = getEffectivePoints(this, element_5, ratingConfig);
43075
+ var scoreFactor = calculateCloseLossProtection(this, playerEffectivePoints, maxScore, baseRatingChange, ratingConfig);
43076
+ var ratingChange = baseRatingChange * scoreFactor;
42992
43077
  var newRating = clampAndRound(this, element_5.h6x_1 + ratingChange, minUserRating, maxUserRating);
42993
43078
  if (element_5.j6x_1 && newRating < element_5.h6x_1 && !(element_5.k6x_1.equals(AgentType_BOT_REPLACEMENT_getInstance()) && ratingConfig.replacementForcedDecrease)) {
42994
43079
  newRating = element_5.h6x_1;
@@ -43004,16 +43089,19 @@
43004
43089
  results.j(frozenOutput(this, element_6));
43005
43090
  } else {
43006
43091
  var expected_0 = pBeats(this, element_6.h6x_1, teamAvgWinner, ratingConfig.eloScaleH2H);
43007
- var actual_0 = loserTeamOriginalScore >= maxScore ? 1.0 : 0.0;
43008
43092
  var kFactor_0 = baseK(this, element_6.l6x_1, gameComplexityCoefficient, ratingConfig);
43009
- var tmp_5;
43010
- if (actual_0 === 0.0 && loserTeamOriginalScore >= maxScore * ratingConfig.h2hCloseLossThresholdRatio) {
43011
- tmp_5 = calculateScoreFactor(this, maxScore, loserTeamOriginalScore, ratingConfig.h2hCloseLossThresholdRatio);
43012
- } else {
43013
- tmp_5 = 1.0;
43014
- }
43015
- var scoreFactor_0 = tmp_5;
43016
- var ratingChange_0 = kFactor_0 * scoreFactor_0 * (actual_0 - expected_0);
43093
+ var baseRatingChange_0 = kFactor_0 * (loserActual - expected_0);
43094
+ // Inline function 'kotlin.collections.sumOf' call
43095
+ var sum_3 = 0;
43096
+ var _iterator__ex2g4s_9 = losers.l();
43097
+ while (_iterator__ex2g4s_9.m()) {
43098
+ var element_7 = _iterator__ex2g4s_9.n();
43099
+ var tmp_4 = sum_3;
43100
+ sum_3 = tmp_4 + getEffectivePoints(this, element_7, ratingConfig) | 0;
43101
+ }
43102
+ var teamTotalScore = sum_3;
43103
+ var scoreFactor_0 = calculateCloseLossProtection(this, teamTotalScore, maxScore, baseRatingChange_0, ratingConfig);
43104
+ var ratingChange_0 = baseRatingChange_0 * scoreFactor_0;
43017
43105
  var newRating_0 = clampAndRound(this, element_6.h6x_1 + ratingChange_0, minUserRating, maxUserRating);
43018
43106
  results.j(new PlayerRatingOutput(element_6.g6x_1, element_6.h6x_1, newRating_0, element_6.j6x_1));
43019
43107
  }
@@ -49285,19 +49373,18 @@
49285
49373
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
49286
49374
  return hashCode(this.a3());
49287
49375
  };
49288
- function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, $loggerKey, resultContinuation) {
49376
+ function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation) {
49289
49377
  this.h8z_1 = $controller;
49290
- this.i8z_1 = $loggerKey;
49291
49378
  CoroutineImpl.call(this, resultContinuation);
49292
49379
  }
49293
- protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).k8z = function (it, $completion) {
49294
- var tmp = this.l8z(it, $completion);
49380
+ protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).j8z = function (it, $completion) {
49381
+ var tmp = this.k8z(it, $completion);
49295
49382
  tmp.t8_1 = Unit_instance;
49296
49383
  tmp.u8_1 = null;
49297
49384
  return tmp.z8();
49298
49385
  };
49299
49386
  protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).h9 = function (p1, $completion) {
49300
- return this.k8z(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
49387
+ return this.j8z(p1 instanceof LoggerOutputDataDto ? p1 : THROW_CCE(), $completion);
49301
49388
  };
49302
49389
  protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).z8 = function () {
49303
49390
  var suspendResult = this.t8_1;
@@ -49307,9 +49394,9 @@
49307
49394
  switch (tmp) {
49308
49395
  case 0:
49309
49396
  this.s8_1 = 2;
49310
- var log = this.j8z_1.toMessageLog();
49397
+ var log = this.i8z_1.toMessageLog();
49311
49398
  this.r8_1 = 1;
49312
- suspendResult = this.h8z_1.b6d('key:' + this.i8z_1.t6g() + ' ' + log, this);
49399
+ suspendResult = this.h8z_1.b6d(log, this);
49313
49400
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
49314
49401
  return suspendResult;
49315
49402
  }
@@ -49331,23 +49418,23 @@
49331
49418
  }
49332
49419
  while (true);
49333
49420
  };
49334
- protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).l8z = function (it, completion) {
49335
- var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.h8z_1, this.i8z_1, completion);
49336
- i.j8z_1 = it;
49421
+ protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j).k8z = function (it, completion) {
49422
+ var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j(this.h8z_1, completion);
49423
+ i.i8z_1 = it;
49337
49424
  return i;
49338
49425
  };
49339
- function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, $loggerKey, resultContinuation) {
49340
- var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, $loggerKey, resultContinuation);
49426
+ function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0($controller, resultContinuation) {
49427
+ var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j($controller, resultContinuation);
49341
49428
  var l = function (it, $completion) {
49342
- return i.k8z(it, $completion);
49429
+ return i.j8z(it, $completion);
49343
49430
  };
49344
49431
  l.$arity = 1;
49345
49432
  return l;
49346
49433
  }
49347
49434
  function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1($controller, $$loggerOutput, $loggerKey, resultContinuation) {
49348
- this.u8z_1 = $controller;
49349
- this.v8z_1 = $$loggerOutput;
49350
- this.w8z_1 = $loggerKey;
49435
+ this.t8z_1 = $controller;
49436
+ this.u8z_1 = $$loggerOutput;
49437
+ this.v8z_1 = $loggerKey;
49351
49438
  CoroutineImpl.call(this, resultContinuation);
49352
49439
  }
49353
49440
  protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).h2d = function ($this$launchDefault, $completion) {
@@ -49368,7 +49455,7 @@
49368
49455
  case 0:
49369
49456
  this.s8_1 = 3;
49370
49457
  this.r8_1 = 1;
49371
- suspendResult = this.u8z_1.a6d(this);
49458
+ suspendResult = this.t8z_1.a6d(this);
49372
49459
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
49373
49460
  return suspendResult;
49374
49461
  }
@@ -49376,8 +49463,8 @@
49376
49463
  continue $sm;
49377
49464
  case 1:
49378
49465
  this.r8_1 = 2;
49379
- var tmp_0 = this.v8z_1.y8z(this.w8z_1);
49380
- var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.u8z_1, this.w8z_1, null);
49466
+ var tmp_0 = this.u8z_1.x8z(this.v8z_1);
49467
+ var tmp_1 = fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda$slambda_e9887j_0(this.t8z_1, null);
49381
49468
  suspendResult = tmp_0.j27(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
49382
49469
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
49383
49470
  return suspendResult;
@@ -49401,8 +49488,8 @@
49401
49488
  while (true);
49402
49489
  };
49403
49490
  protoOf(fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1).i2d = function ($this$launchDefault, completion) {
49404
- var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.u8z_1, this.v8z_1, this.w8z_1, completion);
49405
- i.x8z_1 = $this$launchDefault;
49491
+ var i = new fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1(this.t8z_1, this.u8z_1, this.v8z_1, completion);
49492
+ i.w8z_1 = $this$launchDefault;
49406
49493
  return i;
49407
49494
  };
49408
49495
  function fileLoggerByGameIdMiddleware$_anonymous_$createLogger$slambda_pziup1_0($controller, $$loggerOutput, $loggerKey, resultContinuation) {
@@ -49521,20 +49608,20 @@
49521
49608
  return null;
49522
49609
  }
49523
49610
  function sceneRouterMiddleware$$inlined$middlewareForActionType$1($engineLogicConfig, $logger, $sceneRouter, $idsProvider, $playerConnectionInteractor) {
49524
- this.z8z_1 = $engineLogicConfig;
49525
- this.a90_1 = $logger;
49526
- this.b90_1 = $sceneRouter;
49527
- this.c90_1 = $idsProvider;
49528
- this.d90_1 = $playerConnectionInteractor;
49611
+ this.y8z_1 = $engineLogicConfig;
49612
+ this.z8z_1 = $logger;
49613
+ this.a90_1 = $sceneRouter;
49614
+ this.b90_1 = $idsProvider;
49615
+ this.c90_1 = $playerConnectionInteractor;
49529
49616
  }
49530
49617
  protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
49531
49618
  return action instanceof MechanicAction;
49532
49619
  };
49533
49620
  protoOf(sceneRouterMiddleware$$inlined$middlewareForActionType$1).f6f = function (store, next, action) {
49534
49621
  var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
49535
- if (this.z8z_1.validateIfMainThread) {
49622
+ if (this.y8z_1.validateIfMainThread) {
49536
49623
  // Inline function 'games.logic.utils.runSafeOnProd' call
49537
- var logger = this.a90_1;
49624
+ var logger = this.z8z_1;
49538
49625
  var tmp;
49539
49626
  try {
49540
49627
  assertIfMainThread('sceneRouterMiddleware is called from main thread for action = ' + toString(action_0));
@@ -49561,22 +49648,22 @@
49561
49648
  if (equals(action_0.d8r_1.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
49562
49649
  tmp_2 = listOf(createHostDealerAct(action_0.g8r_1));
49563
49650
  } else {
49564
- tmp_2 = listOf(new SceneStartedMechanicAction(this.b90_1.t8o(action_0.d8r_1, true).g8p_1));
49651
+ tmp_2 = listOf(new SceneStartedMechanicAction(this.a90_1.t8o(action_0.d8r_1, true).g8p_1));
49565
49652
  }
49566
49653
  tmp_1 = tmp_2;
49567
49654
  } else {
49568
49655
  if (action_0 instanceof StartNewGameMechanicAction) {
49569
- tmp_1 = listOf(new SceneStartedMechanicAction(this.b90_1.t8o(state.n6i().config, false).g8p_1));
49656
+ tmp_1 = listOf(new SceneStartedMechanicAction(this.a90_1.t8o(state.n6i().config, false).g8p_1));
49570
49657
  } else {
49571
49658
  if (action_0 instanceof RestartGameMechanicAction) {
49572
49659
  var tmp1_config = state.n6i().config;
49573
- tmp_1 = listOf(new SceneStartedMechanicAction(this.b90_1.u8o(tmp1_config, false, false).g8p_1));
49660
+ tmp_1 = listOf(new SceneStartedMechanicAction(this.a90_1.u8o(tmp1_config, false, false).g8p_1));
49574
49661
  } else {
49575
49662
  if (action_0 instanceof TeamsDataMechanicAction) {
49576
49663
  tmp_1 = listOf(new SceneEndedMechanicAction(state.n6i().sceneInfo.r7p_1));
49577
49664
  } else {
49578
49665
  if (action_0 instanceof PlayerReadyMechanicAction) {
49579
- tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.n6i(), this.c90_1, this.z8z_1, this.d90_1, this.a90_1));
49666
+ tmp_1 = listOfNotNull_0(onPlayerReadyAction(action_0.playerId, state.n6i(), this.b90_1, this.y8z_1, this.c90_1, this.z8z_1));
49580
49667
  } else {
49581
49668
  if (action_0 instanceof SuitChoiceMechanicAction) {
49582
49669
  var tmp_3;
@@ -49714,9 +49801,9 @@
49714
49801
  }
49715
49802
  function PlayerTurnTimerTag(playersIds, tag, afterReconnection) {
49716
49803
  afterReconnection = afterReconnection === VOID ? false : afterReconnection;
49717
- this.e90_1 = playersIds;
49718
- this.f90_1 = tag;
49719
- this.g90_1 = afterReconnection;
49804
+ this.d90_1 = playersIds;
49805
+ this.e90_1 = tag;
49806
+ this.f90_1 = afterReconnection;
49720
49807
  }
49721
49808
  protoOf(PlayerTurnTimerTag).equals = function (other) {
49722
49809
  if (this === other)
@@ -49725,13 +49812,13 @@
49725
49812
  return false;
49726
49813
  if (!(other instanceof PlayerTurnTimerTag))
49727
49814
  THROW_CCE();
49728
- return equals(this.e90_1, other.e90_1);
49815
+ return equals(this.d90_1, other.d90_1);
49729
49816
  };
49730
49817
  protoOf(PlayerTurnTimerTag).hashCode = function () {
49731
- return hashCode(this.e90_1);
49818
+ return hashCode(this.d90_1);
49732
49819
  };
49733
49820
  protoOf(PlayerTurnTimerTag).toString = function () {
49734
- return 'PlayerTurnTimerTag(playersIds=' + toString(this.e90_1) + ', tag=' + this.f90_1 + ', afterReconnection=' + this.g90_1 + ')';
49821
+ return 'PlayerTurnTimerTag(playersIds=' + toString(this.d90_1) + ', tag=' + this.e90_1 + ', afterReconnection=' + this.f90_1 + ')';
49735
49822
  };
49736
49823
  function getInitialPlayerTurnTimerDelayMillis(player, config, isDelayForBot, random) {
49737
49824
  isDelayForBot = isDelayForBot === VOID ? false : isDelayForBot;
@@ -49774,10 +49861,10 @@
49774
49861
  return tmp;
49775
49862
  }
49776
49863
  function playerStartTimerMiddleware$$inlined$middlewareForActionType$1($isEnableTimerForPlayer, $playerTurnInteractor, $botConfig, $mergeTimers) {
49777
- this.h90_1 = $isEnableTimerForPlayer;
49778
- this.i90_1 = $playerTurnInteractor;
49779
- this.j90_1 = $botConfig;
49780
- this.k90_1 = $mergeTimers;
49864
+ this.g90_1 = $isEnableTimerForPlayer;
49865
+ this.h90_1 = $playerTurnInteractor;
49866
+ this.i90_1 = $botConfig;
49867
+ this.j90_1 = $mergeTimers;
49781
49868
  }
49782
49869
  protoOf(playerStartTimerMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
49783
49870
  return isInterface(action, NextPlayerTurnAction);
@@ -49793,14 +49880,14 @@
49793
49880
  var _iterator__ex2g4s = tmp0.l();
49794
49881
  while (_iterator__ex2g4s.m()) {
49795
49882
  var element = _iterator__ex2g4s.n();
49796
- if (this.h90_1(element)) {
49883
+ if (this.g90_1(element)) {
49797
49884
  destination.j(element);
49798
49885
  }
49799
49886
  }
49800
49887
  var startTimerForPlayers = destination;
49801
49888
  // Inline function 'kotlin.collections.isNotEmpty' call
49802
49889
  if (!startTimerForPlayers.r()) {
49803
- var playerTurnModel = this.i90_1.y8l(action_0, table);
49890
+ var playerTurnModel = this.h90_1.y8l(action_0, table);
49804
49891
  if (!(playerTurnModel == null)) {
49805
49892
  // Inline function 'kotlin.collections.map' call
49806
49893
  // Inline function 'kotlin.collections.mapTo' call
@@ -49808,11 +49895,11 @@
49808
49895
  var _iterator__ex2g4s_0 = startTimerForPlayers.l();
49809
49896
  while (_iterator__ex2g4s_0.m()) {
49810
49897
  var item = _iterator__ex2g4s_0.n();
49811
- var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.j90_1.isDelayForBot, this.j90_1.simulateBotThinkingDelay ? Default_getInstance() : null));
49898
+ var tmp$ret$4 = to(item, getInitialPlayerTurnTimerDelayMillis(getPlayer(table.players, item), table.config, this.i90_1.isDelayForBot, this.i90_1.simulateBotThinkingDelay ? Default_getInstance() : null));
49812
49899
  destination_0.j(tmp$ret$4);
49813
49900
  }
49814
49901
  var timeForPlayers = destination_0;
49815
- if (this.k90_1) {
49902
+ if (this.j90_1) {
49816
49903
  // Inline function 'kotlin.collections.groupBy' call
49817
49904
  // Inline function 'kotlin.collections.groupByTo' call
49818
49905
  var destination_1 = LinkedHashMap_init_$Create$();
@@ -49886,14 +49973,14 @@
49886
49973
  return this.f6f(store, next, action);
49887
49974
  };
49888
49975
  function playerStopTimerMiddleware$$inlined$middlewareForActionType$1($isEnableBotForPlayer) {
49889
- this.l90_1 = $isEnableBotForPlayer;
49976
+ this.k90_1 = $isEnableBotForPlayer;
49890
49977
  }
49891
49978
  protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
49892
49979
  return isInterface(action, PlayerAnswerFromClientAction);
49893
49980
  };
49894
49981
  protoOf(playerStopTimerMiddleware$$inlined$middlewareForActionType$1).f6f = function (store, next, action) {
49895
49982
  var action_0 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
49896
- if (this.l90_1(action_0.playerId)) {
49983
+ if (this.k90_1(action_0.playerId)) {
49897
49984
  var table = store.state.n6i();
49898
49985
  var player = getPlayer(table.players, action_0.playerId);
49899
49986
  // Inline function 'games.jass.logic.redux.AppState.findTimer' call
@@ -49914,7 +50001,7 @@
49914
50001
  var _iterator__ex2g4s_0 = destination.l();
49915
50002
  while (_iterator__ex2g4s_0.m()) {
49916
50003
  var element_0 = _iterator__ex2g4s_0.n();
49917
- if (element_0.e90_1.t1(action_0.playerId) && element_0.f90_1 === player.b6q_1.c67()) {
50004
+ if (element_0.d90_1.t1(action_0.playerId) && element_0.e90_1 === player.b6q_1.c67()) {
49918
50005
  tmp$ret$3 = element_0;
49919
50006
  break $l$block;
49920
50007
  }
@@ -49936,8 +50023,8 @@
49936
50023
  return new playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1(asyncProvider);
49937
50024
  }
49938
50025
  function playerTurnTimeoutMiddleware$o$handle$slambda($store, $timerTag, resultContinuation) {
49939
- this.u90_1 = $store;
49940
- this.v90_1 = $timerTag;
50026
+ this.t90_1 = $store;
50027
+ this.u90_1 = $timerTag;
49941
50028
  CoroutineImpl.call(this, resultContinuation);
49942
50029
  }
49943
50030
  protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).h2d = function ($this$launchDefaultWithLock, $completion) {
@@ -49956,7 +50043,7 @@
49956
50043
  var tmp = this.r8_1;
49957
50044
  if (tmp === 0) {
49958
50045
  this.s8_1 = 1;
49959
- this.u90_1.dispatch(new AskBotAction(this.v90_1.e90_1, 'PlayerTurn'));
50046
+ this.t90_1.dispatch(new AskBotAction(this.u90_1.d90_1, 'PlayerTurn'));
49960
50047
  return Unit_instance;
49961
50048
  } else if (tmp === 1) {
49962
50049
  throw this.u8_1;
@@ -49968,8 +50055,8 @@
49968
50055
  while (true);
49969
50056
  };
49970
50057
  protoOf(playerTurnTimeoutMiddleware$o$handle$slambda).i2d = function ($this$launchDefaultWithLock, completion) {
49971
- var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.u90_1, this.v90_1, completion);
49972
- i.w90_1 = $this$launchDefaultWithLock;
50058
+ var i = new playerTurnTimeoutMiddleware$o$handle$slambda(this.t90_1, this.u90_1, completion);
50059
+ i.v90_1 = $this$launchDefaultWithLock;
49973
50060
  return i;
49974
50061
  };
49975
50062
  function playerTurnTimeoutMiddleware$o$handle$slambda_0($store, $timerTag, resultContinuation) {
@@ -49981,7 +50068,7 @@
49981
50068
  return l;
49982
50069
  }
49983
50070
  function playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1($asyncProvider) {
49984
- this.x90_1 = $asyncProvider;
50071
+ this.w90_1 = $asyncProvider;
49985
50072
  }
49986
50073
  protoOf(playerTurnTimeoutMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
49987
50074
  return action instanceof TimerTickAction;
@@ -49990,7 +50077,7 @@
49990
50077
  var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
49991
50078
  var timerTag = action_0.l6d_1;
49992
50079
  if (timerTag instanceof PlayerTurnTimerTag) {
49993
- this.x90_1.n6a(VOID, playerTurnTimeoutMiddleware$o$handle$slambda_0(store, timerTag, null));
50080
+ this.w90_1.n6a(VOID, playerTurnTimeoutMiddleware$o$handle$slambda_0(store, timerTag, null));
49994
50081
  }
49995
50082
  next(action_0);
49996
50083
  };
@@ -50002,12 +50089,12 @@
50002
50089
  return new sceneLifecycleMiddleware$$inlined$middlewareForActionType$1(asyncProvider, sceneFactory, router, sceneValidationInteractor);
50003
50090
  }
50004
50091
  function sceneLifecycleMiddleware$o$handle$slambda($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
50005
- this.g91_1 = $action;
50006
- this.h91_1 = $sceneFactory;
50007
- this.i91_1 = $table;
50008
- this.j91_1 = $router;
50009
- this.k91_1 = $store;
50010
- this.l91_1 = $sceneValidationInteractor;
50092
+ this.f91_1 = $action;
50093
+ this.g91_1 = $sceneFactory;
50094
+ this.h91_1 = $table;
50095
+ this.i91_1 = $router;
50096
+ this.j91_1 = $store;
50097
+ this.k91_1 = $sceneValidationInteractor;
50011
50098
  CoroutineImpl.call(this, resultContinuation);
50012
50099
  }
50013
50100
  protoOf(sceneLifecycleMiddleware$o$handle$slambda).h2d = function ($this$launchDefault, $completion) {
@@ -50027,10 +50114,10 @@
50027
50114
  switch (tmp) {
50028
50115
  case 0:
50029
50116
  this.s8_1 = 3;
50030
- var tmp0_subject = this.g91_1;
50117
+ var tmp0_subject = this.f91_1;
50031
50118
  if (tmp0_subject instanceof SceneStartedMechanicAction) {
50032
50119
  this.r8_1 = 1;
50033
- suspendResult = this.h91_1.p8o(this.g91_1.k8t_1, this.i91_1, this);
50120
+ suspendResult = this.g91_1.p8o(this.f91_1.k8t_1, this.h91_1, this);
50034
50121
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
50035
50122
  return suspendResult;
50036
50123
  }
@@ -50038,37 +50125,37 @@
50038
50125
  } else {
50039
50126
  if (tmp0_subject instanceof SceneEndedMechanicAction) {
50040
50127
  var tmp_0 = this;
50041
- var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.i91_1.players));
50128
+ var tmp7_safe_receiver = firstOrNull(filterByGameWinner(this.h91_1.players));
50042
50129
  var gameWinnerPlayerId = tmp7_safe_receiver == null ? null : tmp7_safe_receiver.playerId;
50043
- var nextSceneCommand = this.j91_1.a8p(this.g91_1.l8t_1, !(gameWinnerPlayerId == null), false, this.i91_1.config);
50130
+ var nextSceneCommand = this.i91_1.a8p(this.f91_1.l8t_1, !(gameWinnerPlayerId == null), false, this.h91_1.config);
50044
50131
  var tmp_1;
50045
50132
  if (nextSceneCommand instanceof MoveSceneNext) {
50046
50133
  tmp_1 = listOf(new SceneStartedMechanicAction(nextSceneCommand.g8p_1));
50047
50134
  } else {
50048
50135
  noWhenBranchMatchedException();
50049
50136
  }
50050
- tmp_0.n91_1 = tmp_1;
50137
+ tmp_0.m91_1 = tmp_1;
50051
50138
  this.r8_1 = 2;
50052
50139
  continue $sm;
50053
50140
  } else {
50054
50141
  if (tmp0_subject instanceof SceneActStartedMechanicAction) {
50055
50142
  var tmp_2 = this;
50056
- this.l91_1.x8o(this.k91_1.state.a6i_1, 'Timers are not empty before scene act ' + this.g91_1.m8t_1 + ', ' + this.g91_1.n8t_1);
50057
- var mechanicAction = new SceneActMechanicAction(this.g91_1.m8t_1, this.g91_1.n8t_1, this.g91_1.o8t_1);
50058
- tmp_2.n91_1 = listOf(mechanicAction);
50143
+ this.k91_1.x8o(this.j91_1.state.a6i_1, 'Timers are not empty before scene act ' + this.f91_1.m8t_1 + ', ' + this.f91_1.n8t_1);
50144
+ var mechanicAction = new SceneActMechanicAction(this.f91_1.m8t_1, this.f91_1.n8t_1, this.f91_1.o8t_1);
50145
+ tmp_2.m91_1 = listOf(mechanicAction);
50059
50146
  this.r8_1 = 2;
50060
50147
  continue $sm;
50061
50148
  } else {
50062
50149
  if (tmp0_subject instanceof SceneActEndedMechanicAction) {
50063
50150
  var tmp_3 = this;
50064
- var navigationCommand = this.j91_1.c8p(this.g91_1.p8t_1, this.i91_1);
50151
+ var navigationCommand = this.i91_1.c8p(this.f91_1.p8t_1, this.h91_1);
50065
50152
  var tmp_4;
50066
50153
  if (navigationCommand instanceof FinishActNext) {
50067
- tmp_4 = listOf(new SceneEndedMechanicAction(this.i91_1.sceneInfo.r7p_1));
50154
+ tmp_4 = listOf(new SceneEndedMechanicAction(this.h91_1.sceneInfo.r7p_1));
50068
50155
  } else {
50069
50156
  if (navigationCommand instanceof MoveActNext) {
50070
50157
  var tmp9_actId = navigationCommand.i8p_1;
50071
- var tmp0 = this.i91_1.sceneInfo.u7p_1;
50158
+ var tmp0 = this.h91_1.sceneInfo.u7p_1;
50072
50159
  var tmp$ret$2;
50073
50160
  l$ret$3: do {
50074
50161
  if (!(tmp0 == null) ? isInterface(tmp0, SceneData) : false) {
@@ -50080,13 +50167,13 @@
50080
50167
  while (false);
50081
50168
  var tmp10_sceneData = tmp$ret$2;
50082
50169
  var tmp11_payload = navigationCommand.j8p_1;
50083
- var actData = this.h91_1.q8o(tmp9_actId, tmp10_sceneData, tmp11_payload, this.i91_1);
50084
- tmp_4 = listOf(new SceneActStartedMechanicAction(this.i91_1.sceneInfo.r7p_1, navigationCommand.i8p_1, actData));
50170
+ var actData = this.g91_1.q8o(tmp9_actId, tmp10_sceneData, tmp11_payload, this.h91_1);
50171
+ tmp_4 = listOf(new SceneActStartedMechanicAction(this.h91_1.sceneInfo.r7p_1, navigationCommand.i8p_1, actData));
50085
50172
  } else {
50086
50173
  noWhenBranchMatchedException();
50087
50174
  }
50088
50175
  }
50089
- tmp_3.n91_1 = tmp_4;
50176
+ tmp_3.m91_1 = tmp_4;
50090
50177
  this.r8_1 = 2;
50091
50178
  continue $sm;
50092
50179
  } else {
@@ -50100,19 +50187,19 @@
50100
50187
  break;
50101
50188
  case 1:
50102
50189
  var sceneData = suspendResult;
50103
- var navigationActCommand = this.j91_1.z8o(sceneData, this.i91_1);
50190
+ var navigationActCommand = this.i91_1.z8o(sceneData, this.h91_1);
50104
50191
  var tmp_6;
50105
50192
  if (navigationActCommand == null) {
50106
50193
  tmp_6 = null;
50107
50194
  } else {
50108
50195
  var tmp0_actId = navigationActCommand.i8p_1;
50109
50196
  var tmp1_payload = navigationActCommand.j8p_1;
50110
- tmp_6 = this.h91_1.q8o(tmp0_actId, sceneData, tmp1_payload, this.i91_1);
50197
+ tmp_6 = this.g91_1.q8o(tmp0_actId, sceneData, tmp1_payload, this.h91_1);
50111
50198
  }
50112
50199
 
50113
50200
  var actData_0 = tmp_6;
50114
- var state = this.k91_1.state;
50115
- this.l91_1.x8o(state.a6i_1, 'Timers are not empty before scene ' + this.g91_1.k8t_1);
50201
+ var state = this.j91_1.state;
50202
+ this.k91_1.x8o(state.a6i_1, 'Timers are not empty before scene ' + this.f91_1.k8t_1);
50116
50203
  var tmp_7;
50117
50204
  if (equals(state.n6i().config.dealerStrategy, DealerStrategy_REQUEST_HOST_STANDARD_getInstance())) {
50118
50205
  var tmp2_safe_receiver = state.n6i().sceneInfo.v7p_1;
@@ -50138,18 +50225,18 @@
50138
50225
  }
50139
50226
 
50140
50227
  var currentTurnPlayerId = tmp_7;
50141
- var tmp5_sceneId = this.g91_1.k8t_1;
50228
+ var tmp5_sceneId = this.f91_1.k8t_1;
50142
50229
  var tmp6_actId = actData_0 == null ? null : actData_0.actId;
50143
50230
  var mechanicAction_0 = new SceneMechanicAction(currentTurnPlayerId, tmp5_sceneId, tmp6_actId, sceneData, actData_0);
50144
- this.n91_1 = listOfNotNull_0(mechanicAction_0);
50231
+ this.m91_1 = listOfNotNull_0(mechanicAction_0);
50145
50232
  this.r8_1 = 2;
50146
50233
  continue $sm;
50147
50234
  case 2:
50148
- var navigationActions = this.n91_1;
50235
+ var navigationActions = this.m91_1;
50149
50236
  var _iterator__ex2g4s = navigationActions.l();
50150
50237
  while (_iterator__ex2g4s.m()) {
50151
50238
  var element = _iterator__ex2g4s.n();
50152
- this.k91_1.dispatch(element);
50239
+ this.j91_1.dispatch(element);
50153
50240
  }
50154
50241
 
50155
50242
  return Unit_instance;
@@ -50168,8 +50255,8 @@
50168
50255
  while (true);
50169
50256
  };
50170
50257
  protoOf(sceneLifecycleMiddleware$o$handle$slambda).i2d = function ($this$launchDefault, completion) {
50171
- var i = new sceneLifecycleMiddleware$o$handle$slambda(this.g91_1, this.h91_1, this.i91_1, this.j91_1, this.k91_1, this.l91_1, completion);
50172
- i.m91_1 = $this$launchDefault;
50258
+ var i = new sceneLifecycleMiddleware$o$handle$slambda(this.f91_1, this.g91_1, this.h91_1, this.i91_1, this.j91_1, this.k91_1, completion);
50259
+ i.l91_1 = $this$launchDefault;
50173
50260
  return i;
50174
50261
  };
50175
50262
  function sceneLifecycleMiddleware$o$handle$slambda_0($action, $sceneFactory, $table, $router, $store, $sceneValidationInteractor, resultContinuation) {
@@ -50181,10 +50268,10 @@
50181
50268
  return l;
50182
50269
  }
50183
50270
  function sceneLifecycleMiddleware$$inlined$middlewareForActionType$1($asyncProvider, $sceneFactory, $router, $sceneValidationInteractor) {
50184
- this.o91_1 = $asyncProvider;
50185
- this.p91_1 = $sceneFactory;
50186
- this.q91_1 = $router;
50187
- this.r91_1 = $sceneValidationInteractor;
50271
+ this.n91_1 = $asyncProvider;
50272
+ this.o91_1 = $sceneFactory;
50273
+ this.p91_1 = $router;
50274
+ this.q91_1 = $sceneValidationInteractor;
50188
50275
  }
50189
50276
  protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
50190
50277
  return action instanceof SceneLifecycleAction;
@@ -50193,7 +50280,7 @@
50193
50280
  var action_0 = action instanceof SceneLifecycleAction ? action : THROW_CCE();
50194
50281
  var table = store.state.n6i();
50195
50282
  next(action_0);
50196
- this.o91_1.l6a(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.p91_1, table, this.q91_1, store, this.r91_1, null));
50283
+ this.n91_1.l6a(VOID, sceneLifecycleMiddleware$o$handle$slambda_0(action_0, this.o91_1, table, this.p91_1, store, this.q91_1, null));
50197
50284
  };
50198
50285
  protoOf(sceneLifecycleMiddleware$$inlined$middlewareForActionType$1).p6d = function (store, next, action) {
50199
50286
  return this.f6f(store, next, action);
@@ -50239,7 +50326,7 @@
50239
50326
  return new checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1(logger);
50240
50327
  }
50241
50328
  function checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1($logger) {
50242
- this.s91_1 = $logger;
50329
+ this.r91_1 = $logger;
50243
50330
  }
50244
50331
  protoOf(checkCardDuplicatesForBribesMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
50245
50332
  return action instanceof PutCardMechanicAction;
@@ -50272,7 +50359,7 @@
50272
50359
  var bribes = destination;
50273
50360
  // Inline function 'kotlin.collections.isNotEmpty' call
50274
50361
  if (!bribes.r()) {
50275
- this.s91_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.r8m_1.toString() + ', bribes = ' + toString(bribes));
50362
+ this.r91_1.w('Validation', 'Card already exists in previous bribes, card = ' + action_0.r8m_1.toString() + ', bribes = ' + toString(bribes));
50276
50363
  }
50277
50364
  }
50278
50365
  next(action_0);
@@ -50285,7 +50372,7 @@
50285
50372
  return new checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1(logger);
50286
50373
  }
50287
50374
  function checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1($logger) {
50288
- this.t91_1 = $logger;
50375
+ this.s91_1 = $logger;
50289
50376
  }
50290
50377
  protoOf(checkCardDuplicatesForScenesMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
50291
50378
  return action instanceof SceneMechanicAction;
@@ -50502,7 +50589,7 @@
50502
50589
  }
50503
50590
  var notValidMessage = tmp;
50504
50591
  if (!(notValidMessage == null)) {
50505
- this.t91_1.w('Validation', toString_0(notValidMessage));
50592
+ this.s91_1.w('Validation', toString_0(notValidMessage));
50506
50593
  }
50507
50594
  }
50508
50595
  }
@@ -50593,7 +50680,7 @@
50593
50680
  };
50594
50681
  }
50595
50682
  function checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1($logger) {
50596
- this.u91_1 = $logger;
50683
+ this.t91_1 = $logger;
50597
50684
  }
50598
50685
  protoOf(checkGameIsFinishedTimerTickMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
50599
50686
  return action instanceof TimerTickAction;
@@ -50602,7 +50689,7 @@
50602
50689
  var action_0 = action instanceof TimerTickAction ? action : THROW_CCE();
50603
50690
  var tmp = action_0.l6d_1;
50604
50691
  if (tmp instanceof GameIsNotFinishedTimerTag) {
50605
- this.u91_1.w('Validation', 'CheckGameISNotFinishedMiddleware: finish event is nor received');
50692
+ this.t91_1.w('Validation', 'CheckGameISNotFinishedMiddleware: finish event is nor received');
50606
50693
  store.dispatch(new FinishGameMechanicAction(store.state.k8p().n8p_1, store.state.n6i().isGameFinished));
50607
50694
  }
50608
50695
  next(action_0);
@@ -50668,7 +50755,7 @@
50668
50755
  return new checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1(logger);
50669
50756
  }
50670
50757
  function checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1($logger) {
50671
- this.v91_1 = $logger;
50758
+ this.u91_1 = $logger;
50672
50759
  }
50673
50760
  protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
50674
50761
  return isInterface(action, FirstMechanicAction);
@@ -50676,7 +50763,7 @@
50676
50763
  protoOf(checkGameTestPointsMiddleware$$inlined$middlewareForActionType$1).f6f = function (store, next, action) {
50677
50764
  var action_0 = isInterface(action, FirstMechanicAction) ? action : THROW_CCE();
50678
50765
  if (action_0.config.pointsMode.equals(PointsMode_TEST_getInstance())) {
50679
- this.v91_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
50766
+ this.u91_1.e(VOID, "checkGameTestPointsMiddleware: can't start game with the test mode points");
50680
50767
  }
50681
50768
  next(action_0);
50682
50769
  };
@@ -50692,7 +50779,7 @@
50692
50779
  return new checkValidSceneActMiddleware$$inlined$middlewareForActionType$1(logger);
50693
50780
  }
50694
50781
  function checkValidSceneMiddleware$$inlined$middlewareForActionType$1($logger) {
50695
- this.w91_1 = $logger;
50782
+ this.v91_1 = $logger;
50696
50783
  }
50697
50784
  protoOf(checkValidSceneMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
50698
50785
  return action instanceof SceneMechanicAction;
@@ -50703,7 +50790,7 @@
50703
50790
  if (state.o6i()) {
50704
50791
  var sceneInfo = state.n6i().sceneInfo;
50705
50792
  if (!get_isWaitingScene(sceneInfo.r7p_1) && Companion_instance_5.v6i(sceneInfo.r7p_1, action_0.i8m_1) && equals(sceneInfo.u7p_1, action_0.sceneData)) {
50706
- this.w91_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
50793
+ this.v91_1.e('Validation', 'CheckValidSceneMiddleware', new MechanicException('Scene is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
50707
50794
  }
50708
50795
  }
50709
50796
  next(action_0);
@@ -50712,7 +50799,7 @@
50712
50799
  return this.f6f(store, next, action);
50713
50800
  };
50714
50801
  function checkValidSceneActMiddleware$$inlined$middlewareForActionType$1($logger) {
50715
- this.x91_1 = $logger;
50802
+ this.w91_1 = $logger;
50716
50803
  }
50717
50804
  protoOf(checkValidSceneActMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
50718
50805
  return action instanceof SceneActMechanicAction;
@@ -50723,7 +50810,7 @@
50723
50810
  if (state.o6i()) {
50724
50811
  var sceneInfo = state.n6i().sceneInfo;
50725
50812
  if (Companion_instance_5.v6i(sceneInfo.r7p_1, action_0.a8m_1) && sceneInfo.t7p_1 === action_0.b8m_1 && equals(sceneInfo.v7p_1, action_0.c8m_1)) {
50726
- this.x91_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
50813
+ this.w91_1.e('Validation', 'CheckValidSceneActMiddleware', new MechanicException('SceneAct is already set: ' + ('expected = ' + sceneInfo.toString() + ', ') + ('actual = ' + action_0.toString())));
50727
50814
  }
50728
50815
  }
50729
50816
  next(action_0);
@@ -50783,7 +50870,7 @@
50783
50870
  tmp(new ErrorToClientAction(tmp4_error, tmp3_deliveryPayload));
50784
50871
  }
50785
50872
  function FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
50786
- this.y91_1 = this$0;
50873
+ this.x91_1 = this$0;
50787
50874
  }
50788
50875
  protoOf(FromClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).q6d = function (action) {
50789
50876
  return action instanceof FromClientAction;
@@ -50809,18 +50896,18 @@
50809
50896
  var tmp$ret$1 = item.playerId;
50810
50897
  destination.j(tmp$ret$1);
50811
50898
  }
50812
- this.y91_1.b8w_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
50899
+ this.x91_1.b8w_1.w(VOID, 'checkEventFromCorrectPlayerMiddleware: ' + tmp + ('expected = ' + toString(destination)));
50813
50900
  break $l$block_3;
50814
50901
  }
50815
50902
  if (!get_isCreated(store.state)) {
50816
50903
  if (table.sceneInfo.l76()) {
50817
- this.y91_1.b8w_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
50904
+ this.x91_1.b8w_1.d('Validation', "Player sends ready for next game but it's finished already, state: " + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4));
50818
50905
  } else {
50819
50906
  var message = 'Game is ' + store.state.gameLifecycleState.toString() + ', action: ' + toString(tmp4);
50820
- if (this.y91_1.d8w_1) {
50821
- sendErrorToClient(this.y91_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
50907
+ if (this.x91_1.d8w_1) {
50908
+ sendErrorToClient(this.x91_1, store, player.playerId, message, Reason_GAME_NOT_EXISTS_getInstance());
50822
50909
  }
50823
- this.y91_1.b8w_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
50910
+ this.x91_1.b8w_1.w('Validation', message, VOID, new GameErrorReason(Reason_GAME_NOT_EXISTS_getInstance()));
50824
50911
  }
50825
50912
  break $l$block_3;
50826
50913
  }
@@ -50828,18 +50915,18 @@
50828
50915
  var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t65_1;
50829
50916
  if (!(connectionState == null) && !connectionState.isLive && !tmp4.fromBot) {
50830
50917
  var message_0 = 'Player connection state is not alive:' + ('playerId = ' + player.playerId);
50831
- if (this.y91_1.d8w_1) {
50832
- sendErrorToClient(this.y91_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
50918
+ if (this.x91_1.d8w_1) {
50919
+ sendErrorToClient(this.x91_1, store, player.playerId, message_0, Reason_PLAYER_DISCONNECTED_getInstance());
50833
50920
  }
50834
- this.y91_1.b8w_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
50921
+ this.x91_1.b8w_1.w('Validation', message_0 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
50835
50922
  break $l$block_3;
50836
50923
  }
50837
- if (this.y91_1.c8w_1 && checkIfEventIsDuplicated(this.y91_1, table, tmp4)) {
50924
+ if (this.x91_1.c8w_1 && checkIfEventIsDuplicated(this.x91_1, table, tmp4)) {
50838
50925
  var message_1 = 'Player send duplicated event:' + ('playerId = ' + player.playerId);
50839
- if (this.y91_1.d8w_1) {
50840
- sendErrorToClient(this.y91_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
50926
+ if (this.x91_1.d8w_1) {
50927
+ sendErrorToClient(this.x91_1, store, player.playerId, message_1, Reason_DUPLICATED_PLAYER_ANSWER_getInstance());
50841
50928
  }
50842
- this.y91_1.b8w_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
50929
+ this.x91_1.b8w_1.w('Validation', message_1 + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_DUPLICATED_PLAYER_ANSWER_getInstance()));
50843
50930
  break $l$block_3;
50844
50931
  }
50845
50932
  next(tmp4);
@@ -50889,8 +50976,8 @@
50889
50976
  tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
50890
50977
  }
50891
50978
  function PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
50892
- this.z91_1 = $enableCheckWhen;
50893
- this.a92_1 = this$0;
50979
+ this.y91_1 = $enableCheckWhen;
50980
+ this.z91_1 = this$0;
50894
50981
  }
50895
50982
  protoOf(PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1).q6d = function (action) {
50896
50983
  return action instanceof PlayerConnectionUpdateAction;
@@ -50899,7 +50986,7 @@
50899
50986
  var tmp4 = action instanceof PlayerConnectionUpdateAction ? action : THROW_CCE();
50900
50987
  $l$block_1: {
50901
50988
  var state = store.state;
50902
- if (!isEnabledCheck(this.z91_1, state, tmp4)) {
50989
+ if (!isEnabledCheck(this.y91_1, state, tmp4)) {
50903
50990
  next(tmp4);
50904
50991
  break $l$block_1;
50905
50992
  }
@@ -50915,23 +51002,23 @@
50915
51002
  var tmp$ret$1 = item.playerId;
50916
51003
  destination.j(tmp$ret$1);
50917
51004
  }
50918
- this.a92_1.j8w_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
51005
+ this.z91_1.j8w_1.w(VOID, 'checkValidPlayerConnectionUpdateMiddleware: ' + tmp + ('expected = ' + toString(destination)));
50919
51006
  break $l$block_1;
50920
51007
  }
50921
51008
  var table = store.state.n6i();
50922
51009
  var player = getPlayer(table.players, tmp4.u8p_1);
50923
51010
  var tmp0_safe_receiver = player.b6q_1.n65_1;
50924
51011
  var connectionState = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.t65_1;
50925
- var _destruct__k2r9zo = isDuplicateConnectionState(this.a92_1, connectionState, tmp4.t8p_1);
51012
+ var _destruct__k2r9zo = isDuplicateConnectionState(this.z91_1, connectionState, tmp4.t8p_1);
50926
51013
  var duplicate = _destruct__k2r9zo.ne();
50927
51014
  var report = _destruct__k2r9zo.oe();
50928
51015
  if (!(connectionState == null) && duplicate) {
50929
51016
  var message = 'Player connection state the same ' + connectionState.toString() + ':' + ('playerId = ' + player.playerId);
50930
51017
  if (report) {
50931
- if (this.a92_1.k8w_1) {
50932
- sendErrorToClient_0(this.a92_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
51018
+ if (this.z91_1.k8w_1) {
51019
+ sendErrorToClient_0(this.z91_1, store, player.playerId, message, Reason_PLAYER_DISCONNECTED_getInstance());
50933
51020
  }
50934
- this.a92_1.j8w_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
51021
+ this.z91_1.j8w_1.w('Validation', message + ', action: ' + tmp4.toString(), VOID, new GameErrorReason(Reason_PLAYER_DISCONNECTED_getInstance()));
50935
51022
  }
50936
51023
  break $l$block_1;
50937
51024
  } else {
@@ -50947,13 +51034,13 @@
50947
51034
  this.j8w_1 = logger;
50948
51035
  this.k8w_1 = sendErrorToClient;
50949
51036
  }
50950
- protoOf(PlayerConnectionValidationMiddlewares).b92 = function (enableCheckWhen) {
51037
+ protoOf(PlayerConnectionValidationMiddlewares).a92 = function (enableCheckWhen) {
50951
51038
  // Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
50952
51039
  return new PlayerConnectionValidationMiddlewares$middleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
50953
51040
  };
50954
51041
  protoOf(PlayerConnectionValidationMiddlewares).l8w = function (enableCheckWhen, $super) {
50955
51042
  enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
50956
- return $super === VOID ? this.b92(enableCheckWhen) : $super.b92.call(this, enableCheckWhen);
51043
+ return $super === VOID ? this.a92(enableCheckWhen) : $super.a92.call(this, enableCheckWhen);
50957
51044
  };
50958
51045
  function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this$0, $action, $table) {
50959
51046
  return function () {
@@ -51098,8 +51185,8 @@
51098
51185
  tmp(new ErrorToClientAction(tmp1_error, tmp0_deliveryPayload));
51099
51186
  }
51100
51187
  function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
51101
- this.c92_1 = $enableCheckWhen;
51102
- this.d92_1 = this$0;
51188
+ this.b92_1 = $enableCheckWhen;
51189
+ this.c92_1 = this$0;
51103
51190
  }
51104
51191
  protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
51105
51192
  return isInterface(action, PlayerAnswerFromClientAction);
@@ -51108,19 +51195,19 @@
51108
51195
  var tmp4 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
51109
51196
  $l$block_1: {
51110
51197
  var state = store.state;
51111
- if (!isEnabledCheck(this.c92_1, state, tmp4)) {
51198
+ if (!isEnabledCheck(this.b92_1, state, tmp4)) {
51112
51199
  next(tmp4);
51113
51200
  break $l$block_1;
51114
51201
  }
51115
51202
  var table = state.n6i();
51116
51203
  var playersWithTurn = filterPlayerTurn(table.players);
51117
51204
  var player = getPlayer(table.players, tmp4.playerId);
51118
- if (isWrongPlayerTurn(this.d92_1, store, playersWithTurn, player, tmp4)) {
51205
+ if (isWrongPlayerTurn(this.c92_1, store, playersWithTurn, player, tmp4)) {
51119
51206
  break $l$block_1;
51120
51207
  }
51121
51208
  var tmp;
51122
- if (this.d92_1.u8v_1.validateFromClientActionTags) {
51123
- tmp = isWrongPlayerTurnTag$default(this.d92_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.d92_1, tmp4, table));
51209
+ if (this.c92_1.u8v_1.validateFromClientActionTags) {
51210
+ tmp = isWrongPlayerTurnTag$default(this.c92_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerFromClientMiddleware$o$handle$lambda(this.c92_1, tmp4, table));
51124
51211
  } else {
51125
51212
  tmp = false;
51126
51213
  }
@@ -51134,8 +51221,8 @@
51134
51221
  return this.f6f(store, next, action);
51135
51222
  };
51136
51223
  function PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
51137
- this.e92_1 = $enableCheckWhen;
51138
- this.f92_1 = this$0;
51224
+ this.d92_1 = $enableCheckWhen;
51225
+ this.e92_1 = this$0;
51139
51226
  }
51140
51227
  protoOf(PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
51141
51228
  return isInterface(action, PlayerTurnAnswerAction);
@@ -51145,17 +51232,17 @@
51145
51232
  $l$block_1: {
51146
51233
  var table = store.state.n6i();
51147
51234
  var player = getPlayerTurn(tmp4, table.players);
51148
- if (player == null || !isEnabledCheck(this.e92_1, store.state, tmp4)) {
51235
+ if (player == null || !isEnabledCheck(this.d92_1, store.state, tmp4)) {
51149
51236
  next(tmp4);
51150
51237
  break $l$block_1;
51151
51238
  }
51152
51239
  var playersWithTurn = filterPlayerTurn(table.players);
51153
- if (isWrongPlayerTurn(this.f92_1, store, playersWithTurn, player, tmp4)) {
51240
+ if (isWrongPlayerTurn(this.e92_1, store, playersWithTurn, player, tmp4)) {
51154
51241
  break $l$block_1;
51155
51242
  }
51156
51243
  var tmp;
51157
- if (this.f92_1.u8v_1.validateFromClientActionTags) {
51158
- tmp = isWrongPlayerTurnTag(this.f92_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.f92_1, tmp4, table), this.f92_1.t8v_1);
51244
+ if (this.e92_1.u8v_1.validateFromClientActionTags) {
51245
+ tmp = isWrongPlayerTurnTag(this.e92_1, store, playersWithTurn, player, tmp4, PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$o$handle$lambda(this.e92_1, tmp4, table), this.e92_1.t8v_1);
51159
51246
  } else {
51160
51247
  tmp = false;
51161
51248
  }
@@ -51169,8 +51256,8 @@
51169
51256
  return this.f6f(store, next, action);
51170
51257
  };
51171
51258
  function PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1($enableCheckWhen, this$0) {
51172
- this.g92_1 = $enableCheckWhen;
51173
- this.h92_1 = this$0;
51259
+ this.f92_1 = $enableCheckWhen;
51260
+ this.g92_1 = this$0;
51174
51261
  }
51175
51262
  protoOf(PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1).q6d = function (action) {
51176
51263
  return isInterface(action, NextPlayerTurnAction);
@@ -51179,7 +51266,7 @@
51179
51266
  var tmp4 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
51180
51267
  $l$block_1: {
51181
51268
  var state = store.state;
51182
- if (!isEnabledCheck(this.g92_1, state, tmp4)) {
51269
+ if (!isEnabledCheck(this.f92_1, state, tmp4)) {
51183
51270
  next(tmp4);
51184
51271
  break $l$block_1;
51185
51272
  }
@@ -51214,7 +51301,7 @@
51214
51301
  destination.j(tmp$ret$3);
51215
51302
  }
51216
51303
  var message = 'Player turn is already set: ' + ('expected = ' + toString(destination) + ', ') + ('actual = ' + toString(tmp4.d8s()));
51217
- this.h92_1.v8v_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
51304
+ this.g92_1.v8v_1.w('Validation', message + ', action: ' + toString(tmp4), VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
51218
51305
  } else {
51219
51306
  next(tmp4);
51220
51307
  }
@@ -51242,23 +51329,23 @@
51242
51329
  // Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
51243
51330
  return new PlayerTurnValidationMiddlewares$checkValidTurnWhenAnswerMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
51244
51331
  };
51245
- protoOf(PlayerTurnValidationMiddlewares).i92 = function (enableCheckWhen) {
51332
+ protoOf(PlayerTurnValidationMiddlewares).h92 = function (enableCheckWhen) {
51246
51333
  // Inline function 'com.logic.redux.store.definitions.middlewareForActionType' call
51247
51334
  return new PlayerTurnValidationMiddlewares$checkValidNextPlayerTurnMiddleware$$inlined$middlewareForActionType$1(enableCheckWhen, this);
51248
51335
  };
51249
51336
  protoOf(PlayerTurnValidationMiddlewares).z8v = function (enableCheckWhen, $super) {
51250
51337
  enableCheckWhen = enableCheckWhen === VOID ? emptyList() : enableCheckWhen;
51251
- return $super === VOID ? this.i92(enableCheckWhen) : $super.i92.call(this, enableCheckWhen);
51338
+ return $super === VOID ? this.h92(enableCheckWhen) : $super.h92.call(this, enableCheckWhen);
51252
51339
  };
51253
51340
  function Companion_164() {
51254
- this.j92_1 = 50;
51341
+ this.i92_1 = 50;
51255
51342
  }
51256
51343
  var Companion_instance_169;
51257
51344
  function Companion_getInstance_171() {
51258
51345
  return Companion_instance_169;
51259
51346
  }
51260
51347
  function ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1(this$0) {
51261
- this.k92_1 = this$0;
51348
+ this.j92_1 = this$0;
51262
51349
  }
51263
51350
  protoOf(ToClientValidationMiddleware$middleware$$inlined$middlewareForActionType$1).q6d = function (action) {
51264
51351
  return action instanceof MechanicAction;
@@ -51269,19 +51356,19 @@
51269
51356
  var aid = tmp4.aid;
51270
51357
  if (!store.state.o6i()) {
51271
51358
  if (!(aid == null)) {
51272
- this.k92_1.g8w_1.nd(aid);
51359
+ this.j92_1.g8w_1.nd(aid);
51273
51360
  }
51274
51361
  next(tmp4);
51275
51362
  break $l$block_0;
51276
51363
  }
51277
- if (!(aid == null) && this.k92_1.g8w_1.t1(aid)) {
51278
- this.k92_1.f8w_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
51364
+ if (!(aid == null) && this.j92_1.g8w_1.t1(aid)) {
51365
+ this.j92_1.f8w_1.w(VOID, 'ToClientValidationMiddleware: duplicated action from server, action = ' + parseActionName(tmp4) + ', aid = ' + tmp4.aid);
51279
51366
  break $l$block_0;
51280
51367
  }
51281
51368
  if (!(aid == null)) {
51282
- this.k92_1.g8w_1.nd(aid);
51283
- if (this.k92_1.g8w_1.jd_1 > 50) {
51284
- this.k92_1.g8w_1.od();
51369
+ this.j92_1.g8w_1.nd(aid);
51370
+ if (this.j92_1.g8w_1.jd_1 > 50) {
51371
+ this.j92_1.g8w_1.od();
51285
51372
  }
51286
51373
  }
51287
51374
  next(tmp4);
@@ -51307,12 +51394,12 @@
51307
51394
  protoOf(clearReducer$$inlined$reducerForActionType$1).q6d = function (action) {
51308
51395
  return action instanceof ClearAction;
51309
51396
  };
51310
- protoOf(clearReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
51397
+ protoOf(clearReducer$$inlined$reducerForActionType$1).k92 = function (state, action) {
51311
51398
  action instanceof ClearAction || THROW_CCE();
51312
51399
  return state.m8p(VOID, VOID, GameLifecycleState_FINISHED_getInstance());
51313
51400
  };
51314
51401
  protoOf(clearReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
51315
- return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
51402
+ return this.k92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
51316
51403
  };
51317
51404
  function fromClientReducer() {
51318
51405
  // Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
@@ -51323,7 +51410,7 @@
51323
51410
  protoOf(fromClientReducer$$inlined$reducerForActionType$1).q6d = function (action) {
51324
51411
  return action instanceof FromClientAction;
51325
51412
  };
51326
- protoOf(fromClientReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
51413
+ protoOf(fromClientReducer$$inlined$reducerForActionType$1).k92 = function (state, action) {
51327
51414
  var action_0 = action instanceof FromClientAction ? action : THROW_CCE();
51328
51415
  var tmp;
51329
51416
  var tmp_0;
@@ -51374,11 +51461,11 @@
51374
51461
  return tmp;
51375
51462
  };
51376
51463
  protoOf(fromClientReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
51377
- return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
51464
+ return this.k92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
51378
51465
  };
51379
51466
  function MechanicReducers$reducer$o$reduce$lambda(this$0, $action) {
51380
51467
  return function (tbl) {
51381
- return this$0.z8u_1.s92(tbl, $action.i8m_1, $action.sceneData, $action.j8m_1, $action.k8m_1);
51468
+ return this$0.z8u_1.r92(tbl, $action.i8m_1, $action.sceneData, $action.j8m_1, $action.k8m_1);
51382
51469
  };
51383
51470
  }
51384
51471
  function MechanicReducers$reducer$o$reduce$lambda_0($action, this$0) {
@@ -51387,22 +51474,22 @@
51387
51474
  if ($action.j8m_1 == null) {
51388
51475
  tmp = tbl;
51389
51476
  } else {
51390
- tmp = this$0.a8v_1.t92(tbl, $action);
51477
+ tmp = this$0.a8v_1.s92(tbl, $action);
51391
51478
  }
51392
51479
  return tmp;
51393
51480
  };
51394
51481
  }
51395
51482
  function MechanicReducers$reducer$$inlined$reducerForActionType$1(this$0) {
51396
- this.u92_1 = this$0;
51483
+ this.t92_1 = this$0;
51397
51484
  }
51398
51485
  protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).q6d = function (action) {
51399
51486
  return action instanceof MechanicAction;
51400
51487
  };
51401
- protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
51488
+ protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).k92 = function (state, action) {
51402
51489
  var action_0 = action instanceof MechanicAction ? action : THROW_CCE();
51403
- if (this.u92_1.b8v_1.validateIfMainThread) {
51490
+ if (this.t92_1.b8v_1.validateIfMainThread) {
51404
51491
  // Inline function 'games.logic.utils.runSafeOnProd' call
51405
- var logger = this.u92_1.c8v_1;
51492
+ var logger = this.t92_1.c8v_1;
51406
51493
  var tmp;
51407
51494
  try {
51408
51495
  assertIfMainThread('mechanicReducer is called from main thread for action = ' + toString(action_0));
@@ -51423,50 +51510,50 @@
51423
51510
  }
51424
51511
  var tmp_1;
51425
51512
  if (action_0 instanceof StartGameMechanicAction) {
51426
- tmp_1 = this.u92_1.t8u_1.b94(state, action_0);
51513
+ tmp_1 = this.t92_1.t8u_1.a94(state, action_0);
51427
51514
  } else {
51428
51515
  if (action_0 instanceof StartNewGameMechanicAction) {
51429
- tmp_1 = this.u92_1.t8u_1.a94(state, action_0);
51516
+ tmp_1 = this.t92_1.t8u_1.z93(state, action_0);
51430
51517
  } else {
51431
51518
  if (action_0 instanceof ContinueGameMechanicAction) {
51432
- tmp_1 = this.u92_1.t8u_1.z93(state, action_0);
51519
+ tmp_1 = this.t92_1.t8u_1.y93(state, action_0);
51433
51520
  } else {
51434
51521
  if (action_0 instanceof FinishingGameMechanicAction) {
51435
- tmp_1 = this.u92_1.t8u_1.y93(state, action_0);
51522
+ tmp_1 = this.t92_1.t8u_1.x93(state, action_0);
51436
51523
  } else {
51437
51524
  if (action_0 instanceof FinishGameMechanicAction) {
51438
- tmp_1 = this.u92_1.t8u_1.x93(state, action_0);
51525
+ tmp_1 = this.t92_1.t8u_1.w93(state, action_0);
51439
51526
  } else {
51440
51527
  if (action_0 instanceof RestartGameMechanicAction) {
51441
- tmp_1 = this.u92_1.t8u_1.w93(state, action_0);
51528
+ tmp_1 = this.t92_1.t8u_1.v93(state, action_0);
51442
51529
  } else {
51443
51530
  if (action_0 instanceof ErrorAction) {
51444
- tmp_1 = this.u92_1.t8u_1.v93(state, action_0);
51531
+ tmp_1 = this.t92_1.t8u_1.u93(state, action_0);
51445
51532
  } else {
51446
51533
  if (action_0 instanceof TeamsDataMechanicAction) {
51447
- tmp_1 = state.m8p(state.n6i().copy(VOID, VOID, VOID, VOID, this.u92_1.u8u_1.u93(state.n6i().players, action_0)));
51534
+ tmp_1 = state.m8p(state.n6i().copy(VOID, VOID, VOID, VOID, this.t92_1.u8u_1.t93(state.n6i().players, action_0)));
51448
51535
  } else {
51449
51536
  if (action_0 instanceof SuitChoiceMechanicAction) {
51450
- tmp_1 = this.u92_1.v8u_1.t93(state, action_0);
51537
+ tmp_1 = this.t92_1.v8u_1.s93(state, action_0);
51451
51538
  } else {
51452
51539
  if (action_0 instanceof TrumpMechanicAction) {
51453
- tmp_1 = this.u92_1.v8u_1.s93(state, action_0);
51540
+ tmp_1 = this.t92_1.v8u_1.r93(state, action_0);
51454
51541
  } else {
51455
51542
  if (action_0 instanceof CombinationChoiceMechanicAction) {
51456
- tmp_1 = this.u92_1.x8u_1.p93(state, action_0);
51543
+ tmp_1 = this.t92_1.x8u_1.o93(state, action_0);
51457
51544
  } else {
51458
51545
  if (action_0 instanceof PutCardMechanicAction) {
51459
- tmp_1 = this.u92_1.w8u_1.o93(state, action_0);
51546
+ tmp_1 = this.t92_1.w8u_1.n93(state, action_0);
51460
51547
  } else {
51461
51548
  if (action_0 instanceof PickUpBribeMechanicAction) {
51462
- tmp_1 = this.u92_1.w8u_1.n93(state, action_0);
51549
+ tmp_1 = this.t92_1.w8u_1.m93(state, action_0);
51463
51550
  } else {
51464
51551
  if (action_0 instanceof WinnerCombinationsMechanicAction) {
51465
- tmp_1 = this.u92_1.x8u_1.f93(state, action_0);
51552
+ tmp_1 = this.t92_1.x8u_1.e93(state, action_0);
51466
51553
  } else {
51467
51554
  if (action_0 instanceof SceneMechanicAction) {
51468
- var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.u92_1, action_0);
51469
- var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.u92_1)]);
51555
+ var tmp_2 = MechanicReducers$reducer$o$reduce$lambda(this.t92_1, action_0);
51556
+ var tmp0 = listOf_0([tmp_2, MechanicReducers$reducer$o$reduce$lambda_0(action_0, this.t92_1)]);
51470
51557
  // Inline function 'kotlin.collections.fold' call
51471
51558
  var accumulator = state.n6i();
51472
51559
  var _iterator__ex2g4s = tmp0.l();
@@ -51478,13 +51565,13 @@
51478
51565
  tmp_1 = state.m8p(tmp$ret$3);
51479
51566
  } else {
51480
51567
  if (action_0 instanceof SceneActMechanicAction) {
51481
- tmp_1 = state.m8p(this.u92_1.a8v_1.t92(state.n6i(), action_0));
51568
+ tmp_1 = state.m8p(this.t92_1.a8v_1.s92(state.n6i(), action_0));
51482
51569
  } else {
51483
51570
  if (action_0 instanceof PlayerReadyMechanicAction) {
51484
- tmp_1 = state.m8p(this.u92_1.y8u_1.z92(state.n6i(), action_0));
51571
+ tmp_1 = state.m8p(this.t92_1.y8u_1.y92(state.n6i(), action_0));
51485
51572
  } else {
51486
51573
  if (action_0 instanceof PlayerConnectionChangedMechanicAction) {
51487
- tmp_1 = state.m8p(this.u92_1.y8u_1.y92(state.n6i(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
51574
+ tmp_1 = state.m8p(this.t92_1.y8u_1.x92(state.n6i(), action_0.playerId, action_0.state, action_0.reconnectUntilTime));
51488
51575
  } else {
51489
51576
  if (action_0 instanceof MessageMechanicAction) {
51490
51577
  tmp_1 = state;
@@ -51512,7 +51599,7 @@
51512
51599
  return tmp_1;
51513
51600
  };
51514
51601
  protoOf(MechanicReducers$reducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
51515
- return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
51602
+ return this.k92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
51516
51603
  };
51517
51604
  function MechanicReducers(gameLifecycleReducer, teamsMechanicReducer, tradeMechanicReducer, earnPointsMechanicReducer, combinationsMechanicReducer, playerTurnMechanicReducer, sceneReducer, sceneActReducer, engineLogicConfig, logger) {
51518
51605
  this.t8u_1 = gameLifecycleReducer;
@@ -51539,7 +51626,7 @@
51539
51626
  protoOf(timerReducer$$inlined$reducerForActionType$1).q6d = function (action) {
51540
51627
  return action instanceof TimerAction;
51541
51628
  };
51542
- protoOf(timerReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
51629
+ protoOf(timerReducer$$inlined$reducerForActionType$1).k92 = function (state, action) {
51543
51630
  var action_0 = action instanceof TimerAction ? action : THROW_CCE();
51544
51631
  var tmp;
51545
51632
  if (action_0 instanceof StartTimerAction) {
@@ -51567,7 +51654,7 @@
51567
51654
  return tmp;
51568
51655
  };
51569
51656
  protoOf(timerReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
51570
- return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
51657
+ return this.k92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
51571
51658
  };
51572
51659
  function playerTurnReducer($this, action, table) {
51573
51660
  var tmp0 = action.actData;
@@ -51672,7 +51759,7 @@
51672
51759
  }
51673
51760
  function SceneActReducer() {
51674
51761
  }
51675
- protoOf(SceneActReducer).t92 = function (table, action) {
51762
+ protoOf(SceneActReducer).s92 = function (table, action) {
51676
51763
  var tmp;
51677
51764
  if (action.actId === 'WAITING_ACT') {
51678
51765
  tmp = table.copy(VOID, VOID, VOID, VOID, VOID, VOID, table.sceneInfo.j8b(VOID, VOID, action.actId, VOID, action.actData));
@@ -51709,47 +51796,47 @@
51709
51796
  function MechanicLifecycleReducer() {
51710
51797
  }
51711
51798
  function BaseMechanicLifecycleReducer(tableLifecycleReducer, randomPoolProvider) {
51712
- this.c94_1 = tableLifecycleReducer;
51713
- this.d94_1 = randomPoolProvider;
51799
+ this.b94_1 = tableLifecycleReducer;
51800
+ this.c94_1 = randomPoolProvider;
51714
51801
  }
51715
- protoOf(BaseMechanicLifecycleReducer).z93 = function (state, action) {
51802
+ protoOf(BaseMechanicLifecycleReducer).y93 = function (state, action) {
51716
51803
  var tmp0_gameLifecycleState = GameLifecycleState_CREATED_getInstance();
51717
51804
  var tmp1_tableOrNull = action.l8s_1;
51718
51805
  var tmp2_payload = action.n8s_1;
51719
51806
  return state.m8p(tmp1_tableOrNull, tmp2_payload, tmp0_gameLifecycleState, null);
51720
51807
  };
51721
- protoOf(BaseMechanicLifecycleReducer).a94 = function (state, action) {
51722
- this.d94_1.j57(action.previousGameId);
51808
+ protoOf(BaseMechanicLifecycleReducer).z93 = function (state, action) {
51809
+ this.c94_1.j57(action.previousGameId);
51723
51810
  return state;
51724
51811
  };
51725
- protoOf(BaseMechanicLifecycleReducer).y93 = function (state, action) {
51812
+ protoOf(BaseMechanicLifecycleReducer).x93 = function (state, action) {
51726
51813
  var tmp0_safe_receiver = state.x6h_1;
51727
51814
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
51728
51815
  if (tmp1_safe_receiver == null)
51729
51816
  null;
51730
51817
  else {
51731
51818
  // Inline function 'kotlin.apply' call
51732
- this.d94_1.j57(tmp1_safe_receiver);
51819
+ this.c94_1.j57(tmp1_safe_receiver);
51733
51820
  }
51734
51821
  return state.m8p(VOID, VOID, GameLifecycleState_FINISHING_getInstance(), new TerminationState(action.o8r_1, action.q8r_1));
51735
51822
  };
51736
- protoOf(BaseMechanicLifecycleReducer).x93 = function (state, action) {
51823
+ protoOf(BaseMechanicLifecycleReducer).w93 = function (state, action) {
51737
51824
  var tmp = GameLifecycleState_FINISHED_getInstance();
51738
51825
  var tmp0_safe_receiver = state.z6h_1;
51739
51826
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q8p(action.v8r_1);
51740
51827
  return state.m8p(VOID, VOID, tmp, tmp1_elvis_lhs == null ? new TerminationState(action.v8r_1) : tmp1_elvis_lhs);
51741
51828
  };
51742
- protoOf(BaseMechanicLifecycleReducer).w93 = function (state, action) {
51743
- return state.m8p(this.c94_1.e94(state.n6i()));
51744
- };
51745
51829
  protoOf(BaseMechanicLifecycleReducer).v93 = function (state, action) {
51830
+ return state.m8p(this.b94_1.d94(state.n6i()));
51831
+ };
51832
+ protoOf(BaseMechanicLifecycleReducer).u93 = function (state, action) {
51746
51833
  var tmp0_safe_receiver = state.x6h_1;
51747
51834
  var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.gameId;
51748
51835
  if (tmp1_safe_receiver == null)
51749
51836
  null;
51750
51837
  else {
51751
51838
  // Inline function 'kotlin.apply' call
51752
- this.d94_1.j57(tmp1_safe_receiver);
51839
+ this.c94_1.j57(tmp1_safe_receiver);
51753
51840
  }
51754
51841
  var tmp = GameLifecycleState_FINISHED_getInstance();
51755
51842
  var tmp2_safe_receiver = state.z6h_1;
@@ -51769,19 +51856,19 @@
51769
51856
  return value1.id === value2.id;
51770
51857
  }
51771
51858
  function PlayerHandReducer(pointsInteractor, playerHappinessProvider, logger, dealerConfig) {
51772
- this.f94_1 = pointsInteractor;
51773
- this.g94_1 = playerHappinessProvider;
51774
- this.h94_1 = logger;
51775
- this.i94_1 = dealerConfig;
51859
+ this.e94_1 = pointsInteractor;
51860
+ this.f94_1 = playerHappinessProvider;
51861
+ this.g94_1 = logger;
51862
+ this.h94_1 = dealerConfig;
51776
51863
  }
51777
- protoOf(PlayerHandReducer).j94 = function (playerId, hand, cards, combinations, selectedTrump, config) {
51864
+ protoOf(PlayerHandReducer).i94 = function (playerId, hand, cards, combinations, selectedTrump, config) {
51778
51865
  // Inline function 'kotlin.collections.map' call
51779
51866
  // Inline function 'kotlin.collections.mapTo' call
51780
51867
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
51781
51868
  var _iterator__ex2g4s = combinations.l();
51782
51869
  while (_iterator__ex2g4s.m()) {
51783
51870
  var item = _iterator__ex2g4s.n();
51784
- var tmp$ret$0 = mapToRecord(item, this.f94_1.x8j(item));
51871
+ var tmp$ret$0 = mapToRecord(item, this.e94_1.x8j(item));
51785
51872
  destination.j(tmp$ret$0);
51786
51873
  }
51787
51874
  var combinationRecords = destination;
@@ -51816,8 +51903,8 @@
51816
51903
  return hand.f6u(VOID, VOID, plus(hand.c6r_1, combinationRecords), plus(hand.d6r_1, combinationRecords));
51817
51904
  }
51818
51905
  var tmp0_elvis_lhs = config.dealerStrategy;
51819
- var dealerStrategy = tmp0_elvis_lhs == null ? this.i94_1.dealerStrategy : tmp0_elvis_lhs;
51820
- var tmp_0 = this.f94_1.w8j(cards, selectedTrump, dealerStrategy);
51906
+ var dealerStrategy = tmp0_elvis_lhs == null ? this.h94_1.dealerStrategy : tmp0_elvis_lhs;
51907
+ var tmp_0 = this.e94_1.w8j(cards, selectedTrump, dealerStrategy);
51821
51908
  // Inline function 'kotlin.collections.map' call
51822
51909
  // Inline function 'kotlin.collections.mapTo' call
51823
51910
  var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(combinationRecords, 10));
@@ -51828,11 +51915,11 @@
51828
51915
  destination_0.j(tmp$ret$5);
51829
51916
  }
51830
51917
  var value = tmp_0 + sum(destination_0);
51831
- var luckyFactor = this.g94_1.v8d(value, config.playersMode, dealerStrategy);
51832
- Companion_instance_165.v8j(this.h94_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.k6r() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.o() + ', '));
51918
+ var luckyFactor = this.f94_1.v8d(value, config.playersMode, dealerStrategy);
51919
+ Companion_instance_165.v8j(this.g94_1, 'equalise: earn points for = ' + playerId + ' ' + ('factor: ' + luckyFactor + ', ') + ('currentFactor: ' + hand.k6r() + ', ') + ('value: ' + value + ', ') + ('combinations: ' + combinations.o() + ', '));
51833
51920
  return hand.f6u(VOID, plus(hand.b6r_1, listOf(Companion_instance_18.x6t(luckyFactor, value))), plus(hand.c6r_1, combinationRecords), plus(hand.d6r_1, combinationRecords));
51834
51921
  };
51835
- protoOf(PlayerHandReducer).k94 = function (hand, combinations) {
51922
+ protoOf(PlayerHandReducer).j94 = function (hand, combinations) {
51836
51923
  // Inline function 'kotlin.collections.map' call
51837
51924
  var this_0 = filterWithFirstCardOrBela(combinations);
51838
51925
  // Inline function 'kotlin.collections.mapTo' call
@@ -51840,20 +51927,20 @@
51840
51927
  var _iterator__ex2g4s = this_0.l();
51841
51928
  while (_iterator__ex2g4s.m()) {
51842
51929
  var item = _iterator__ex2g4s.n();
51843
- var tmp$ret$0 = mapToRecord(item, this.f94_1.x8j(item));
51930
+ var tmp$ret$0 = mapToRecord(item, this.e94_1.x8j(item));
51844
51931
  destination.j(tmp$ret$0);
51845
51932
  }
51846
51933
  var combinationRecords = destination;
51847
51934
  var tmp = updateOrAddItems(hand.c6r_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda);
51848
51935
  return hand.f6u(VOID, VOID, tmp, updateOrAddItems(hand.d6r_1, combinationRecords, PlayerHandReducer$playerHandCombinationsReducer$lambda_0));
51849
51936
  };
51850
- protoOf(PlayerHandReducer).l94 = function (playerId, hand, updatedCombinations, config) {
51937
+ protoOf(PlayerHandReducer).k94 = function (playerId, hand, updatedCombinations, config) {
51851
51938
  if (updatedCombinations.r()) {
51852
51939
  return hand;
51853
51940
  }
51854
51941
  var previousFactor = hand.t6r();
51855
51942
  if (previousFactor.s6r_1 === 0.0) {
51856
- return this.k94(hand, updatedCombinations);
51943
+ return this.j94(hand, updatedCombinations);
51857
51944
  }
51858
51945
  // Inline function 'kotlin.collections.map' call
51859
51946
  // Inline function 'kotlin.collections.mapTo' call
@@ -51861,7 +51948,7 @@
51861
51948
  var _iterator__ex2g4s = updatedCombinations.l();
51862
51949
  while (_iterator__ex2g4s.m()) {
51863
51950
  var item = _iterator__ex2g4s.n();
51864
- var tmp$ret$0 = mapToRecord(item, this.f94_1.x8j(item));
51951
+ var tmp$ret$0 = mapToRecord(item, this.e94_1.x8j(item));
51865
51952
  destination.j(tmp$ret$0);
51866
51953
  }
51867
51954
  var updatedCombinationRecords = destination;
@@ -51921,9 +52008,9 @@
51921
52008
  }
51922
52009
  var updatedValue = tmp_0 + sum(destination_2);
51923
52010
  var tmp0_elvis_lhs = config.dealerStrategy;
51924
- var dealerStrategy = tmp0_elvis_lhs == null ? this.i94_1.dealerStrategy : tmp0_elvis_lhs;
51925
- var updatedLuckyFactor = this.g94_1.v8d(updatedValue, config.playersMode, dealerStrategy);
51926
- Companion_instance_165.v8j(this.h94_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.k6r() + ', ') + ('value: ' + updatedValue + ', '));
52011
+ var dealerStrategy = tmp0_elvis_lhs == null ? this.h94_1.dealerStrategy : tmp0_elvis_lhs;
52012
+ var updatedLuckyFactor = this.f94_1.v8d(updatedValue, config.playersMode, dealerStrategy);
52013
+ Companion_instance_165.v8j(this.g94_1, 'playerHand: update combinations value for = ' + playerId + ' ' + ('factor: ' + updatedLuckyFactor + ', ') + ('currentFactor: ' + hand.k6r() + ', ') + ('value: ' + updatedValue + ', '));
51927
52014
  // Inline function 'kotlin.collections.map' call
51928
52015
  var this_0 = hand.b6r_1;
51929
52016
  // Inline function 'kotlin.collections.mapTo' call
@@ -51953,7 +52040,7 @@
51953
52040
  protoOf(PlayerSceneReducer).o8o = function (player, cards, whoShuffleCardsPlayerId) {
51954
52041
  return player.v6q(VOID, VOID, cards, player.d6q_1.a6v(VOID, VOID, VOID, player.playerId === whoShuffleCardsPlayerId));
51955
52042
  };
51956
- protoOf(PlayerSceneReducer).m94 = function (player, distributedCards, combinations, config, players, selectedTrump) {
52043
+ protoOf(PlayerSceneReducer).l94 = function (player, distributedCards, combinations, config, players, selectedTrump) {
51957
52044
  // Inline function 'kotlin.collections.map' call
51958
52045
  // Inline function 'kotlin.collections.mapTo' call
51959
52046
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(combinations, 10));
@@ -51966,7 +52053,7 @@
51966
52053
  }
51967
52054
  var detailedCombinations = destination;
51968
52055
  var cards = plus(player.c6q_1, distributedCards);
51969
- var hand = this.n8o_1.j94(player.playerId, player.e6q_1, cards, detailedCombinations, selectedTrump, config);
52056
+ var hand = this.n8o_1.i94(player.playerId, player.e6q_1, cards, detailedCombinations, selectedTrump, config);
51970
52057
  var tmp;
51971
52058
  // Inline function 'kotlin.collections.isNotEmpty' call
51972
52059
  if (!combinations.r()) {
@@ -51977,7 +52064,7 @@
51977
52064
  var tmp0_points = tmp;
51978
52065
  return player.v6q(VOID, VOID, cards, VOID, hand, tmp0_points);
51979
52066
  };
51980
- protoOf(PlayerSceneReducer).n94 = function (player, sceneData) {
52067
+ protoOf(PlayerSceneReducer).m94 = function (player, sceneData) {
51981
52068
  // Inline function 'kotlin.collections.single' call
51982
52069
  var single = null;
51983
52070
  var found = false;
@@ -52019,7 +52106,7 @@
52019
52106
  var tmp10_earnedPoints = playerPointsCell.x6w_1;
52020
52107
  var tmp11_earnedCards = emptyList();
52021
52108
  var tmp14_points = new PlayerPoints(tmp10_earnedPoints, updatedCombinations, tmp11_earnedCards);
52022
- var tmp15_hand = this.n8o_1.k94(player.e6q_1, updatedCombinations);
52109
+ var tmp15_hand = this.n8o_1.j94(player.e6q_1, updatedCombinations);
52023
52110
  return player.v6q(tmp12_userInfo, VOID, VOID, tmp13_options, tmp15_hand, tmp14_points);
52024
52111
  };
52025
52112
  function refreshStartFromTime($this, playerState, config) {
@@ -52049,7 +52136,7 @@
52049
52136
  var tmp = System_instance.ck();
52050
52137
  Companion_getInstance_4();
52051
52138
  // Inline function 'kotlin.time.Companion.milliseconds' call
52052
- var this_0 = config.timeoutTimeMillis * $this.x92_1.playerTimeoutFactorToFinishStep;
52139
+ var this_0 = config.timeoutTimeMillis * $this.w92_1.playerTimeoutFactorToFinishStep;
52053
52140
  var tmp$ret$0 = toDuration_1(this_0, DurationUnit_MILLISECONDS_getInstance());
52054
52141
  return tmp.rk(tmp$ret$0);
52055
52142
  }
@@ -52060,11 +52147,11 @@
52060
52147
  return it.playerId;
52061
52148
  }
52062
52149
  function PlayerTurnMechanicReducer(logger, gameHistoryReducer, engineLogicConfig) {
52063
- this.v92_1 = logger;
52064
- this.w92_1 = gameHistoryReducer;
52065
- this.x92_1 = engineLogicConfig;
52150
+ this.u92_1 = logger;
52151
+ this.v92_1 = gameHistoryReducer;
52152
+ this.w92_1 = engineLogicConfig;
52066
52153
  }
52067
- protoOf(PlayerTurnMechanicReducer).o94 = function (table, model) {
52154
+ protoOf(PlayerTurnMechanicReducer).n94 = function (table, model) {
52068
52155
  // Inline function 'com.logic.utils.copy' call
52069
52156
  var this_0 = table.players;
52070
52157
  // Inline function 'kotlin.apply' call
@@ -52075,7 +52162,7 @@
52075
52162
  var element = _iterator__ex2g4s.n();
52076
52163
  var player = getPlayer(table.players, element);
52077
52164
  if (!(player.b6q_1.m65_1 == null)) {
52078
- this.v92_1.w(VOID, 'PlayerTurnMechanicReducer.onPlayerTurn: already ' + ('has a tag: ' + player.b6q_1.m65_1 + ', ') + ('new tag: ' + model.k6s_1));
52165
+ this.u92_1.w(VOID, 'PlayerTurnMechanicReducer.onPlayerTurn: already ' + ('has a tag: ' + player.b6q_1.m65_1 + ', ') + ('new tag: ' + model.k6s_1));
52079
52166
  }
52080
52167
  var tmp = Companion_instance_0;
52081
52168
  var tmp_0 = System_instance.ck();
@@ -52089,25 +52176,25 @@
52089
52176
  var newTable = table.copy(VOID, VOID, VOID, VOID, this_1);
52090
52177
  var tmp_1 = 'onPlayerTurn: ' + model.toString() + ', ';
52091
52178
  var tmp_2 = filterPlayerTurn(table.players);
52092
- this.v92_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
52179
+ this.u92_1.d('PlayerTurn', tmp_1 + ('currentTurn = ' + joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onPlayerTurn$lambda)));
52093
52180
  return newTable;
52094
52181
  };
52095
- protoOf(PlayerTurnMechanicReducer).p94 = function (table, model) {
52182
+ protoOf(PlayerTurnMechanicReducer).o94 = function (table, model) {
52096
52183
  var player = getPlayer(table.players, model.a64());
52097
52184
  if (player.b6q_1.m65_1 == null) {
52098
- this.v92_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.k6s_1));
52185
+ this.u92_1.w(VOID, 'PlayerTurnMechanicReducer.onResetPlayerTurn: has no tag, ' + ('tag: ' + model.k6s_1));
52099
52186
  }
52100
52187
  var newTable = table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.v6q(VOID, Companion_instance_0.x66(player.b6q_1)), get_byIdPlayerPredicate()(player.playerId)));
52101
52188
  var tmp = 'onResetPlayerTurn: ' + model.toString() + ', ';
52102
52189
  var tmp_0 = filterPlayerTurn(table.players);
52103
- this.v92_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
52190
+ this.u92_1.d('PlayerTurn', tmp + ('currentTurn = ' + joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PlayerTurnMechanicReducer$onResetPlayerTurn$lambda)));
52104
52191
  return newTable;
52105
52192
  };
52106
- protoOf(PlayerTurnMechanicReducer).z92 = function (table, action) {
52193
+ protoOf(PlayerTurnMechanicReducer).y92 = function (table, action) {
52107
52194
  var player = getPlayer(table.players, action.w8s_1);
52108
52195
  return table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.v6q(VOID, player.b6q_1.y66(VOID, VOID, VOID, VOID, true)), get_byIdPlayerPredicate()(player.playerId)));
52109
52196
  };
52110
- protoOf(PlayerTurnMechanicReducer).q94 = function (table) {
52197
+ protoOf(PlayerTurnMechanicReducer).p94 = function (table) {
52111
52198
  // Inline function 'kotlin.collections.map' call
52112
52199
  var this_0 = table.players;
52113
52200
  // Inline function 'kotlin.collections.mapTo' call
@@ -52120,7 +52207,7 @@
52120
52207
  }
52121
52208
  return table.copy(VOID, VOID, VOID, VOID, destination);
52122
52209
  };
52123
- protoOf(PlayerTurnMechanicReducer).y92 = function (table, playerId, newConnectionState, reconnectUntilTime) {
52210
+ protoOf(PlayerTurnMechanicReducer).x92 = function (table, playerId, newConnectionState, reconnectUntilTime) {
52124
52211
  var players = table.players;
52125
52212
  var player = getPlayer(players, playerId);
52126
52213
  var previousConnection = player.b6q_1.n65_1;
@@ -52143,7 +52230,7 @@
52143
52230
  var tmp7_waitPlayerUntilTime = tmp_0;
52144
52231
  tmp = tmp6_$this.y66(VOID, VOID, tmp7_waitPlayerUntilTime, VOID, VOID, VOID, newPlayerConnection);
52145
52232
  }
52146
- return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.v6q(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.w92_1.v94(playerId, previousConnection, newPlayerConnection, table.gameHistory));
52233
+ return table.copy(VOID, VOID, VOID, VOID, updateItem(players, player.v6q(VOID, tmp), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.v92_1.u94(playerId, previousConnection, newPlayerConnection, table.gameHistory));
52147
52234
  };
52148
52235
  function onCurrentScene($this, sceneId, sceneData, actId, actData, table, previousSceneId) {
52149
52236
  var sceneInfo = new SceneInfo(sceneId, previousSceneId, actId, sceneData, actData);
@@ -52175,7 +52262,7 @@
52175
52262
  var _iterator__ex2g4s = players.l();
52176
52263
  while (_iterator__ex2g4s.m()) {
52177
52264
  var item = _iterator__ex2g4s.n();
52178
- var tmp$ret$1 = $this.m92_1.o8o(item, getValue(scene.p76_1, item.playerId), scene.t76_1);
52265
+ var tmp$ret$1 = $this.l92_1.o8o(item, getValue(scene.p76_1, item.playerId), scene.t76_1);
52179
52266
  destination.j(tmp$ret$1);
52180
52267
  }
52181
52268
 
@@ -52196,12 +52283,12 @@
52196
52283
  }
52197
52284
 
52198
52285
  var tmp7_requestedCardDecks = tmp_0;
52199
- var tmp1_$this = $this.p92_1;
52286
+ var tmp1_$this = $this.o92_1;
52200
52287
  var tmp2_gameHistory = table.gameHistory;
52201
52288
  var tmp3_playersCards = scene.p76_1;
52202
52289
  var tmp4_whoShuffleCardsPlayerId = scene.t76_1;
52203
52290
  var tmp5_randomData = scene.q76_1;
52204
- var tmp8_gameHistory = tmp1_$this.w94(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
52291
+ var tmp8_gameHistory = tmp1_$this.v94(cardDeck, tmp5_randomData, tmp4_whoShuffleCardsPlayerId, tmp3_playersCards, tmp2_gameHistory);
52205
52292
  return table.copy(VOID, VOID, VOID, VOID, destination, VOID, sceneInfo, VOID, VOID, cardDeck, tmp7_requestedCardDecks, VOID, tmp8_gameHistory);
52206
52293
  case 'EARN_POINTS':
52207
52294
  var tmp$ret$5;
@@ -52219,7 +52306,7 @@
52219
52306
  var tmp10_newPlayersCards = scene_0.u76_1;
52220
52307
  var tmp11_cardDeck = table.requireCardDeck;
52221
52308
  var tmp12_config = table.config;
52222
- var updatedCardDeck = $this.x94(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
52309
+ var updatedCardDeck = $this.w94(tmp11_cardDeck, tmp10_newPlayersCards, tmp12_config, tmp9_newTopOpenedCard);
52223
52310
  // Inline function 'kotlin.collections.map' call
52224
52311
 
52225
52312
  // Inline function 'kotlin.collections.mapTo' call
@@ -52228,21 +52315,21 @@
52228
52315
  var _iterator__ex2g4s_0 = players.l();
52229
52316
  while (_iterator__ex2g4s_0.m()) {
52230
52317
  var item_0 = _iterator__ex2g4s_0.n();
52231
- var tmp2_$this = $this.m92_1;
52318
+ var tmp2_$this = $this.l92_1;
52232
52319
  var tmp3_config = table.config;
52233
52320
  var tmp4_distributedCards = getValue(scene_0.u76_1, item_0.playerId);
52234
52321
  var tmp0_safe_receiver = scene_0.v76_1;
52235
52322
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b2(item_0.playerId);
52236
52323
  var tmp5_combinations = tmp1_elvis_lhs == null ? emptyList() : tmp1_elvis_lhs;
52237
52324
  var tmp6_selectedTrump = table.gameInfo.round.selectedTrump;
52238
- var tmp$ret$6 = tmp2_$this.m94(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
52325
+ var tmp$ret$6 = tmp2_$this.l94(item_0, tmp4_distributedCards, tmp5_combinations, tmp3_config, players, tmp6_selectedTrump);
52239
52326
  destination_0.j(tmp$ret$6);
52240
52327
  }
52241
52328
 
52242
- var tmp13_$this = $this.p92_1;
52329
+ var tmp13_$this = $this.o92_1;
52243
52330
  var tmp14_gameHistory = table.gameHistory;
52244
52331
  var tmp15_playersCards = scene_0.u76_1;
52245
- var tmp17_gameHistory = tmp13_$this.y94(tmp15_playersCards, tmp14_gameHistory);
52332
+ var tmp17_gameHistory = tmp13_$this.x94(tmp15_playersCards, tmp14_gameHistory);
52246
52333
  return table.copy(VOID, VOID, VOID, VOID, destination_0, VOID, sceneInfo, VOID, VOID, updatedCardDeck, VOID, VOID, tmp17_gameHistory);
52247
52334
  case 'CALC_POINTS':
52248
52335
  var tmp$ret$9;
@@ -52265,12 +52352,12 @@
52265
52352
  var _iterator__ex2g4s_1 = players.l();
52266
52353
  while (_iterator__ex2g4s_1.m()) {
52267
52354
  var item_1 = _iterator__ex2g4s_1.n();
52268
- var tmp$ret$10 = $this.m92_1.n94(item_1, calcPointsSceneData);
52355
+ var tmp$ret$10 = $this.l92_1.m94(item_1, calcPointsSceneData);
52269
52356
  destination_1.j(tmp$ret$10);
52270
52357
  }
52271
52358
 
52272
52359
  var updatedPlayers = destination_1;
52273
- var tmp19_$this = $this.p92_1;
52360
+ var tmp19_$this = $this.o92_1;
52274
52361
  var tmp20_gameHistory = table.gameHistory;
52275
52362
  var tmp21_points = calcPointsSceneData.j76_1;
52276
52363
  var tmp22_roundContractState = calcPointsSceneData.n76(whoChoseSuitPlayerId);
@@ -52310,7 +52397,7 @@
52310
52397
 
52311
52398
  var tmp26_playersGameAnalytics = tmp_3;
52312
52399
  var tmp27_playersAchievements = calcPointsSceneData.k76_1;
52313
- var tmp28_gameHistory = tmp19_$this.z94(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_gameWinners, tmp26_playersGameAnalytics, tmp27_playersAchievements);
52400
+ var tmp28_gameHistory = tmp19_$this.y94(tmp21_points, tmp20_gameHistory, tmp22_roundContractState, tmp23_roundCommitted, tmp24_roundWinners, tmp25_gameWinners, tmp26_playersGameAnalytics, tmp27_playersAchievements);
52314
52401
  return table.copy(VOID, VOID, VOID, VOID, updatedPlayers, VOID, sceneInfo, VOID, VOID, VOID, VOID, VOID, tmp28_gameHistory);
52315
52402
  default:
52316
52403
  throw new MechanicException("onCurrentScene: Can't support this scene " + sceneId);
@@ -52342,30 +52429,30 @@
52342
52429
  }
52343
52430
  function SceneReducer$onPreviousScene$lambda(this$0) {
52344
52431
  return function (tbl) {
52345
- return this$0.n92_1.q94(tbl);
52432
+ return this$0.m92_1.p94(tbl);
52346
52433
  };
52347
52434
  }
52348
52435
  function SceneReducer$onPreviousScene$lambda_0(this$0) {
52349
52436
  return function (tbl) {
52350
- return this$0.o92_1.a95(tbl);
52437
+ return this$0.n92_1.z94(tbl);
52351
52438
  };
52352
52439
  }
52353
52440
  function SceneReducer(playerSceneReducer, playerTurnMechanicReducer, tableLifecycleReducer, gameHistoryReducer, dealerReducer, gameParamsProvider) {
52354
- this.m92_1 = playerSceneReducer;
52355
- this.n92_1 = playerTurnMechanicReducer;
52356
- this.o92_1 = tableLifecycleReducer;
52357
- this.p92_1 = gameHistoryReducer;
52358
- this.q92_1 = dealerReducer;
52359
- this.r92_1 = gameParamsProvider;
52360
- }
52361
- protoOf(SceneReducer).s92 = function (table, sceneId, sceneData, actId, actData) {
52441
+ this.l92_1 = playerSceneReducer;
52442
+ this.m92_1 = playerTurnMechanicReducer;
52443
+ this.n92_1 = tableLifecycleReducer;
52444
+ this.o92_1 = gameHistoryReducer;
52445
+ this.p92_1 = dealerReducer;
52446
+ this.q92_1 = gameParamsProvider;
52447
+ }
52448
+ protoOf(SceneReducer).r92 = function (table, sceneId, sceneData, actId, actData) {
52362
52449
  var previousSceneId = table.sceneInfo.r7p_1;
52363
52450
  if (!(previousSceneId === 'WAITING') && equals(table.sceneInfo.u7p_1, sceneData)) {
52364
52451
  throw new MechanicException('Payload was set twice');
52365
52452
  }
52366
52453
  return onCurrentScene(this, sceneId, sceneData, actId, actData, onPreviousScene(this, table, previousSceneId), previousSceneId);
52367
52454
  };
52368
- protoOf(SceneReducer).x94 = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
52455
+ protoOf(SceneReducer).w94 = function (cardDeck, newPlayersCards, config, newTopOpenedCard) {
52369
52456
  // Inline function 'kotlin.collections.map' call
52370
52457
  // Inline function 'kotlin.collections.mapTo' call
52371
52458
  var destination = ArrayList_init_$Create$(newPlayersCards.o());
@@ -52379,19 +52466,19 @@
52379
52466
  // Inline function 'kotlin.let' call
52380
52467
  var it = flatten(destination);
52381
52468
  var tmp;
52382
- if (this.r92_1.u8e(config)) {
52383
- tmp = this.q92_1.q5e(it, cardDeck.d7f_1);
52469
+ if (this.q92_1.u8e(config)) {
52470
+ tmp = this.p92_1.q5e(it, cardDeck.d7f_1);
52384
52471
  } else {
52385
52472
  tmp = it;
52386
52473
  }
52387
52474
  var playersCardsToRemove = tmp;
52388
52475
  var cardsToRemove = plus(playersCardsToRemove, listOfNotNull_0(newTopOpenedCard));
52389
- var cards = this.q92_1.p5e(cardDeck.c7f_1, cardsToRemove);
52476
+ var cards = this.p92_1.p5e(cardDeck.c7f_1, cardsToRemove);
52390
52477
  return cardDeck.w87(cards, VOID, newTopOpenedCard);
52391
52478
  };
52392
52479
  function TeamsMechanicReducer() {
52393
52480
  }
52394
- protoOf(TeamsMechanicReducer).u93 = function (players, action) {
52481
+ protoOf(TeamsMechanicReducer).t93 = function (players, action) {
52395
52482
  // Inline function 'kotlin.collections.map' call
52396
52483
  var this_0 = action.r8s_1.e67_1;
52397
52484
  // Inline function 'kotlin.collections.mapTo' call
@@ -52431,10 +52518,10 @@
52431
52518
  return destination_1;
52432
52519
  };
52433
52520
  function TradeMechanicReducer(logger, gameHistoryReducer) {
52434
- this.q93_1 = logger;
52435
- this.r93_1 = gameHistoryReducer;
52521
+ this.p93_1 = logger;
52522
+ this.q93_1 = gameHistoryReducer;
52436
52523
  }
52437
- protoOf(TradeMechanicReducer).t93 = function (state, action) {
52524
+ protoOf(TradeMechanicReducer).s93 = function (state, action) {
52438
52525
  var table = state.n6i();
52439
52526
  // Inline function 'kotlin.with' call
52440
52527
  var player = getPlayer(table.players, action.o8m_1);
@@ -52442,7 +52529,7 @@
52442
52529
  var it = player.d6q_1.y6u();
52443
52530
  var tmp;
52444
52531
  if (it == null) {
52445
- this.q93_1.w(VOID, "Can't support this circle increment");
52532
+ this.p93_1.w(VOID, "Can't support this circle increment");
52446
52533
  tmp = player.d6q_1.r6q_1;
52447
52534
  } else {
52448
52535
  tmp = it;
@@ -52470,17 +52557,17 @@
52470
52557
  destination.j(tmp$ret$2);
52471
52558
  }
52472
52559
  var tmp_2 = destination;
52473
- var tmp0_$this = this.r93_1;
52560
+ var tmp0_$this = this.q93_1;
52474
52561
  var tmp1_playerId = player.playerId;
52475
52562
  var tmp2_suit = action.m8m_1;
52476
52563
  var tmp3_gameHistory = table.gameHistory;
52477
52564
  var tmp4_players = table.players;
52478
52565
  var tmp5_playersMode = table.config.playersMode;
52479
- tmp_0 = state.m8p(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.b95(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
52566
+ tmp_0 = state.m8p(table.copy(VOID, VOID, VOID, VOID, tmp_2, VOID, VOID, VOID, VOID, VOID, VOID, VOID, tmp0_$this.a95(tmp1_playerId, tmp2_suit, newNumberOfCircle, tmp3_gameHistory, tmp5_playersMode, tmp4_players)));
52480
52567
  }
52481
52568
  return tmp_0;
52482
52569
  };
52483
- protoOf(TradeMechanicReducer).s93 = function (state, action) {
52570
+ protoOf(TradeMechanicReducer).r93 = function (state, action) {
52484
52571
  var table = state.n6i();
52485
52572
  // Inline function 'kotlin.collections.map' call
52486
52573
  var this_0 = table.players;
@@ -52498,13 +52585,13 @@
52498
52585
  return valueToFind.v6v_1 === value.v6v_1;
52499
52586
  }
52500
52587
  function CombinationsMechanicReducer(teamsLogicProvider, combinationsInteractor, dealerReducer, playerHandReducer, gameHistoryReducer) {
52501
- this.a93_1 = teamsLogicProvider;
52502
- this.b93_1 = combinationsInteractor;
52503
- this.c93_1 = dealerReducer;
52504
- this.d93_1 = playerHandReducer;
52505
- this.e93_1 = gameHistoryReducer;
52588
+ this.z92_1 = teamsLogicProvider;
52589
+ this.a93_1 = combinationsInteractor;
52590
+ this.b93_1 = dealerReducer;
52591
+ this.c93_1 = playerHandReducer;
52592
+ this.d93_1 = gameHistoryReducer;
52506
52593
  }
52507
- protoOf(CombinationsMechanicReducer).c95 = function (whoGotBribePlayerId, playerCombinations, players, config) {
52594
+ protoOf(CombinationsMechanicReducer).b95 = function (whoGotBribePlayerId, playerCombinations, players, config) {
52508
52595
  var bellaCombination = first(playerCombinations.e89_1);
52509
52596
  var player = getPlayer(players, playerCombinations.d89_1);
52510
52597
  if (bellaCombination.x6v_1.equals(CombinationState_NOT_ACCEPTED_getInstance())) {
@@ -52513,7 +52600,7 @@
52513
52600
  var tmp;
52514
52601
  if (config.rules.protectBella) {
52515
52602
  var playerWithBellaGotBribe = player.playerId === whoGotBribePlayerId;
52516
- var partnerGotBribe = config.playersMode.isTeamGame && this.a93_1.k8d(player.playerId, players).playerId === whoGotBribePlayerId;
52603
+ var partnerGotBribe = config.playersMode.isTeamGame && this.z92_1.k8d(player.playerId, players).playerId === whoGotBribePlayerId;
52517
52604
  var tmp_0;
52518
52605
  if (playerWithBellaGotBribe || partnerGotBribe) {
52519
52606
  tmp_0 = bellaCombination.h6w(VOID, VOID, CombinationState_ACCEPTED_getInstance());
@@ -52527,7 +52614,7 @@
52527
52614
  return tmp;
52528
52615
  }
52529
52616
  };
52530
- protoOf(CombinationsMechanicReducer).f93 = function (state, action) {
52617
+ protoOf(CombinationsMechanicReducer).e93 = function (state, action) {
52531
52618
  var table = state.n6i();
52532
52619
  var players = table.players;
52533
52620
  var config = table.config;
@@ -52558,7 +52645,7 @@
52558
52645
  }
52559
52646
  var passedPlayersCombinations = destination;
52560
52647
  // Inline function 'kotlin.collections.filterNot' call
52561
- var tmp0 = this.b93_1.h8h(players);
52648
+ var tmp0 = this.a93_1.h8h(players);
52562
52649
  // Inline function 'kotlin.collections.filterNotTo' call
52563
52650
  var destination_1 = ArrayList_init_$Create$_0();
52564
52651
  var _iterator__ex2g4s_1 = tmp0.l();
@@ -52605,10 +52692,10 @@
52605
52692
  var tmp0_elvis_lhs_0 = rejectedPlayersCombinations.b2(item_1.playerId);
52606
52693
  var tmp$ret$18 = tmp0_elvis_lhs_0 == null ? emptyList() : tmp0_elvis_lhs_0;
52607
52694
  var updatedCombinations = plus(tmp_0, tmp$ret$18);
52608
- var tmp0_$this = this.d93_1;
52695
+ var tmp0_$this = this.c93_1;
52609
52696
  var tmp1_playerId = item_1.playerId;
52610
52697
  var tmp2_hand = item_1.e6q_1;
52611
- var tmp_1 = tmp0_$this.l94(tmp1_playerId, tmp2_hand, updatedCombinations, config);
52698
+ var tmp_1 = tmp0_$this.k94(tmp1_playerId, tmp2_hand, updatedCombinations, config);
52612
52699
  tmp = item_1.v6q(VOID, VOID, VOID, VOID, tmp_1, item_1.f6q_1.c6v(VOID, updateOrAddItems(item_1.f6q_1.v6r_1, updatedCombinations, CombinationsMechanicReducer$onWinnerCombinations$lambda)));
52613
52700
  } else {
52614
52701
  tmp = item_1;
@@ -52616,9 +52703,9 @@
52616
52703
  var tmp$ret$19 = tmp;
52617
52704
  destination_4.j(tmp$ret$19);
52618
52705
  }
52619
- return state.m8p(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e93_1.d95(action.e8t_1, table.gameHistory)));
52706
+ return state.m8p(table.copy(VOID, VOID, VOID, VOID, destination_4, VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.d93_1.c95(action.e8t_1, table.gameHistory)));
52620
52707
  };
52621
- protoOf(CombinationsMechanicReducer).p93 = function (state, action) {
52708
+ protoOf(CombinationsMechanicReducer).o93 = function (state, action) {
52622
52709
  var table = state.n6i();
52623
52710
  var player = getPlayer(table.players, action.c8t_1);
52624
52711
  // Inline function 'kotlin.collections.map' call
@@ -52673,13 +52760,13 @@
52673
52760
  // Inline function 'kotlin.let' call
52674
52761
 
52675
52762
  var cards = player.c6q_1;
52676
- var newCards = this.c93_1.q5e(cards, trumpSevenCard);
52677
- var tmp1_cards = this.c93_1.r5e(newCards, trumpCard);
52763
+ var newCards = this.b93_1.q5e(cards, trumpSevenCard);
52764
+ var tmp1_cards = this.b93_1.r5e(newCards, trumpCard);
52678
52765
  var tmp3_players = updateItem(table.players, player.v6q(VOID, VOID, tmp1_cards, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId));
52679
- var tmp4_gameHistory = this.e93_1.e95(player.playerId, listOf(announcedCombination.w6v_1), VOID, table.gameHistory);
52766
+ var tmp4_gameHistory = this.d93_1.d95(player.playerId, listOf(announcedCombination.w6v_1), VOID, table.gameHistory);
52680
52767
  return state.m8p(table.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, VOID, VOID, tmp2_cardDeck, VOID, VOID, tmp4_gameHistory));
52681
52768
  case 6:
52682
- return state.m8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.v6q(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.e93_1.e95(player.playerId, listOf(announcedCombination.w6v_1), VOID, table.gameHistory)));
52769
+ return state.m8p(table.copy(VOID, VOID, VOID, VOID, updateItem(table.players, player.v6q(VOID, VOID, VOID, VOID, VOID, updatedPoints), get_byIdPlayerPredicate()(player.playerId)), VOID, VOID, VOID, VOID, VOID, VOID, VOID, this.d93_1.d95(player.playerId, listOf(announcedCombination.w6v_1), VOID, table.gameHistory)));
52683
52770
  default:
52684
52771
  throw new MechanicException("Can't support this combination " + announcedCombination.toString());
52685
52772
  }
@@ -52760,7 +52847,7 @@
52760
52847
  destination.j(tmp$ret$1);
52761
52848
  }
52762
52849
  var updatedCombinations = destination;
52763
- var tmp1_cards = $this.j93_1.q5e(player.c6q_1, card);
52850
+ var tmp1_cards = $this.i93_1.q5e(player.c6q_1, card);
52764
52851
  var tmp2_points = player.f6q_1.c6v(VOID, updatedCombinations);
52765
52852
  var tmp3_hand = updatePlayerHand($this, player, cardsOnTheTable, table.gameInfo.round.selectedTrump);
52766
52853
  return player.v6q(VOID, VOID, tmp1_cards, VOID, tmp3_hand, tmp2_points);
@@ -52779,11 +52866,11 @@
52779
52866
  }
52780
52867
  var tmp2_combinations = tmp;
52781
52868
  var tmp4_points = tmp0_$this.c6v(VOID, tmp2_combinations, tmp1_earnedCards);
52782
- var tmp5_hand = $this.l93_1.k94(player.e6q_1, combinations);
52869
+ var tmp5_hand = $this.k93_1.j94(player.e6q_1, combinations);
52783
52870
  return player.v6q(VOID, VOID, VOID, tmp3_options, tmp5_hand, tmp4_points);
52784
52871
  }
52785
52872
  function addPlayersCombinationsWhenPickBribe($this, whoGotBribePlayerId, players, config) {
52786
- var bellaCombination = $this.i93_1.g8h(players);
52873
+ var bellaCombination = $this.h93_1.g8h(players);
52787
52874
  // Inline function 'kotlin.collections.associate' call
52788
52875
  var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(players, 10)), 16);
52789
52876
  // Inline function 'kotlin.collections.associateTo' call
@@ -52804,7 +52891,7 @@
52804
52891
  var hasBellaCombination = !(bellaCombination == null) && bellaCombination.d89_1 === player.playerId;
52805
52892
  var tmp;
52806
52893
  if (isGotLastBribe) {
52807
- tmp = $this.h93_1.k6v(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_150.a88(CombinationType_BONUS_LAST_BRIBE_getInstance(), config));
52894
+ tmp = $this.g93_1.k6v(CombinationType_BONUS_LAST_BRIBE_getInstance(), CombinationState_ACCEPTED_getInstance(), Companion_instance_150.a88(CombinationType_BONUS_LAST_BRIBE_getInstance(), config));
52808
52895
  } else {
52809
52896
  tmp = null;
52810
52897
  }
@@ -52824,7 +52911,7 @@
52824
52911
  }
52825
52912
  }
52826
52913
  var tmp$ret$2 = tmp$ret$1;
52827
- tmp_1 = $this.g93_1.c95(whoGotBribePlayerId, tmp$ret$2, players, config);
52914
+ tmp_1 = $this.f93_1.b95(whoGotBribePlayerId, tmp$ret$2, players, config);
52828
52915
  } else {
52829
52916
  tmp_1 = null;
52830
52917
  }
@@ -52889,15 +52976,15 @@
52889
52976
  return value1.v6v_1 === value2.v6v_1;
52890
52977
  }
52891
52978
  function EarnPointsMechanicReducer(combinationsMechanicReducer, combinationsFactory, combinationsInteractor, dealerReducer, gameHistoryReducer, playerHandReducer, logger) {
52892
- this.g93_1 = combinationsMechanicReducer;
52893
- this.h93_1 = combinationsFactory;
52894
- this.i93_1 = combinationsInteractor;
52895
- this.j93_1 = dealerReducer;
52896
- this.k93_1 = gameHistoryReducer;
52897
- this.l93_1 = playerHandReducer;
52898
- this.m93_1 = logger;
52899
- }
52900
- protoOf(EarnPointsMechanicReducer).o93 = function (state, action) {
52979
+ this.f93_1 = combinationsMechanicReducer;
52980
+ this.g93_1 = combinationsFactory;
52981
+ this.h93_1 = combinationsInteractor;
52982
+ this.i93_1 = dealerReducer;
52983
+ this.j93_1 = gameHistoryReducer;
52984
+ this.k93_1 = playerHandReducer;
52985
+ this.l93_1 = logger;
52986
+ }
52987
+ protoOf(EarnPointsMechanicReducer).n93 = function (state, action) {
52901
52988
  var table = state.n6i();
52902
52989
  var player = getPlayer(table.players, action.t8m_1);
52903
52990
  var cardsOnTheTable = plus_0(table.cardsOnTable, new CardOnTable(action.t8m_1, table.cardsOnTable.o(), action.r8m_1));
@@ -52919,13 +53006,13 @@
52919
53006
  var tmp$ret$0 = item.k75_1;
52920
53007
  destination.j(tmp$ret$0);
52921
53008
  }
52922
- tmp = this.k93_1.e95(tmp_0, destination, VOID, table.gameHistory);
53009
+ tmp = this.j93_1.d95(tmp_0, destination, VOID, table.gameHistory);
52923
53010
  }
52924
53011
  var tmp1_elvis_lhs = tmp;
52925
53012
  var tmp4_gameHistory = tmp1_elvis_lhs == null ? table.gameHistory : tmp1_elvis_lhs;
52926
53013
  return state.m8p(tmp2_$this.copy(VOID, VOID, VOID, VOID, tmp3_players, VOID, VOID, cardsOnTheTable, VOID, VOID, VOID, VOID, tmp4_gameHistory));
52927
53014
  };
52928
- protoOf(EarnPointsMechanicReducer).n93 = function (state, action) {
53015
+ protoOf(EarnPointsMechanicReducer).m93 = function (state, action) {
52929
53016
  var table = state.n6i();
52930
53017
  var players = table.players;
52931
53018
  var cardsOnTable = table.cardsOnTable;
@@ -52950,7 +53037,7 @@
52950
53037
  destination_0.j(tmp$ret$3);
52951
53038
  }
52952
53039
  if (!(toSet(destination_0).o() === 1)) {
52953
- this.m93_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
53040
+ this.l93_1.w('Validation', 'EarnPointsMechanicReducer.onPickBribe: Some of players have different cards count: ' + toString(playersCards));
52954
53041
  }
52955
53042
  var playersCombinations = addPlayersCombinationsWhenPickBribe(this, action.w8m_1, players, config);
52956
53043
  var bribe = new Bribe(cardsOnTable);
@@ -52966,7 +53053,7 @@
52966
53053
  destination_1.j(tmp$ret$6);
52967
53054
  }
52968
53055
  var tmp3_gameInfo = table.gameInfo.t86(VOID, VOID, table.gameInfo.round.copy(VOID, action.x8m_1));
52969
- var tmp4_gameHistory = this.k93_1.f95(action.w8m_1, bribe, action.x8m_1, playersCombinations, table.gameHistory);
53056
+ var tmp4_gameHistory = this.j93_1.e95(action.w8m_1, bribe, action.x8m_1, playersCombinations, table.gameHistory);
52970
53057
  return state.m8p(table.copy(VOID, VOID, VOID, VOID, destination_1, VOID, VOID, tmp1_cardsOnTable, tmp0_bribes, VOID, VOID, tmp3_gameInfo, tmp4_gameHistory));
52971
53058
  };
52972
53059
  function randomDataReducer($this, randomData, metadata) {
@@ -52974,7 +53061,7 @@
52974
53061
  return metadata;
52975
53062
  }
52976
53063
  if (!(metadata.randomData == null) && (!(metadata.randomData.id === randomData.id) || !(metadata.randomData.signature == randomData.signature))) {
52977
- $this.u94_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
53064
+ $this.t94_1.w('GameHistory', 'Random data is different for previous, ' + metadata.randomData.toString() + ', ' + randomData.toString());
52978
53065
  }
52979
53066
  var tmp0_safe_receiver = metadata.randomData;
52980
53067
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.indexes;
@@ -52986,12 +53073,12 @@
52986
53073
  return _this__u8e3s4.copy(VOID, VOID, updateLastItem(_this__u8e3s4.rounds, roundHistory.copy(VOID, plus_1(roundHistory.items, items))));
52987
53074
  }
52988
53075
  function GameHistoryReducer(pointsInteractor, teamsLogicProvider, gameLogicConfig, logger) {
52989
- this.r94_1 = pointsInteractor;
52990
- this.s94_1 = teamsLogicProvider;
52991
- this.t94_1 = gameLogicConfig;
52992
- this.u94_1 = logger;
53076
+ this.q94_1 = pointsInteractor;
53077
+ this.r94_1 = teamsLogicProvider;
53078
+ this.s94_1 = gameLogicConfig;
53079
+ this.t94_1 = logger;
52993
53080
  }
52994
- protoOf(GameHistoryReducer).g95 = function (gameHistory) {
53081
+ protoOf(GameHistoryReducer).f95 = function (gameHistory) {
52995
53082
  var roundNumber = gameHistory.rounds.length;
52996
53083
  var tmp0 = gameHistory.rounds;
52997
53084
  // Inline function 'kotlin.collections.plus' call
@@ -53003,7 +53090,7 @@
53003
53090
  var tmp$ret$4 = tmp0.concat(tmp$ret$3);
53004
53091
  return gameHistory.copy(VOID, VOID, tmp$ret$4);
53005
53092
  };
53006
- protoOf(GameHistoryReducer).w94 = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
53093
+ protoOf(GameHistoryReducer).v94 = function (cardDeck, randomData, whoShuffleCardsPlayerId, playersCards, gameHistory) {
53007
53094
  var currentRoundHistory = last_0(gameHistory.rounds);
53008
53095
  var tmp = new WhoShuffleCardsItem(whoShuffleCardsPlayerId, cardDeck.d7f_1, System_instance.ck());
53009
53096
  // Inline function 'kotlin.collections.mapValues' call
@@ -53021,14 +53108,14 @@
53021
53108
  var tmp0_elvis_lhs = gameHistory.metadata;
53022
53109
  return gameHistory.copy(VOID, VOID, tmp_1, VOID, randomDataReducer(this, randomData, tmp0_elvis_lhs == null ? Companion_instance_159.initial() : tmp0_elvis_lhs));
53023
53110
  };
53024
- protoOf(GameHistoryReducer).b95 = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
53111
+ protoOf(GameHistoryReducer).a95 = function (playerId, suit, numberOfCircle, gameHistory, playersMode, players) {
53025
53112
  var currentRoundHistory = last_0(gameHistory.rounds);
53026
53113
  var tmp;
53027
53114
  if (playersMode.isTeamGame) {
53028
53115
  // Inline function 'kotlin.arrayOf' call
53029
53116
  // Inline function 'kotlin.js.unsafeCast' call
53030
53117
  // Inline function 'kotlin.js.asDynamic' call
53031
- tmp = [playerId, this.s94_1.k8d(playerId, players).playerId];
53118
+ tmp = [playerId, this.r94_1.k8d(playerId, players).playerId];
53032
53119
  } else {
53033
53120
  // Inline function 'kotlin.arrayOf' call
53034
53121
  // Inline function 'kotlin.js.unsafeCast' call
@@ -53038,7 +53125,7 @@
53038
53125
  var roundCommitted = tmp;
53039
53126
  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)));
53040
53127
  };
53041
- protoOf(GameHistoryReducer).y94 = function (playersCards, gameHistory) {
53128
+ protoOf(GameHistoryReducer).x94 = function (playersCards, gameHistory) {
53042
53129
  // Inline function 'kotlin.collections.mapValues' call
53043
53130
  // Inline function 'kotlin.collections.mapValuesTo' call
53044
53131
  var destination = LinkedHashMap_init_$Create$_0(mapCapacity(playersCards.o()));
@@ -53052,14 +53139,14 @@
53052
53139
  }
53053
53140
  return addItemsToCurrentRound(this, gameHistory, listOf(new PlayersCardsItem(destination, 1, System_instance.ck())));
53054
53141
  };
53055
- protoOf(GameHistoryReducer).h95 = function (playerId, combinations, combinationsStates, gameHistory) {
53142
+ protoOf(GameHistoryReducer).g95 = function (playerId, combinations, combinationsStates, gameHistory) {
53056
53143
  return addItemsToCurrentRound(this, gameHistory, listOf(new CombinationAnnounceItem(playerId, combinations, combinationsStates, System_instance.ck())));
53057
53144
  };
53058
- protoOf(GameHistoryReducer).e95 = function (playerId, combinations, combinationsStates, gameHistory, $super) {
53145
+ protoOf(GameHistoryReducer).d95 = function (playerId, combinations, combinationsStates, gameHistory, $super) {
53059
53146
  combinationsStates = combinationsStates === VOID ? null : combinationsStates;
53060
- return $super === VOID ? this.h95(playerId, combinations, combinationsStates, gameHistory) : $super.h95.call(this, playerId, combinations, combinationsStates, gameHistory);
53147
+ return $super === VOID ? this.g95(playerId, combinations, combinationsStates, gameHistory) : $super.g95.call(this, playerId, combinations, combinationsStates, gameHistory);
53061
53148
  };
53062
- protoOf(GameHistoryReducer).f95 = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
53149
+ protoOf(GameHistoryReducer).e95 = function (whoGotBribePlayerId, bribe, numberOfBribe, playersCombinations, gameHistory) {
53063
53150
  var tmp = listOf(new BribeItem(whoGotBribePlayerId, bribe.u7e_1, numberOfBribe, System_instance.ck()));
53064
53151
  // Inline function 'kotlin.collections.mapNotNull' call
53065
53152
  // Inline function 'kotlin.collections.mapNotNullTo' call
@@ -53118,7 +53205,7 @@
53118
53205
  }
53119
53206
  return addItemsToCurrentRound(this, gameHistory, plus(tmp, destination));
53120
53207
  };
53121
- protoOf(GameHistoryReducer).d95 = function (winnerCombinations, gameHistory) {
53208
+ protoOf(GameHistoryReducer).c95 = function (winnerCombinations, gameHistory) {
53122
53209
  // Inline function 'kotlin.collections.map' call
53123
53210
  // Inline function 'kotlin.collections.mapTo' call
53124
53211
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(winnerCombinations, 10));
@@ -53134,7 +53221,7 @@
53134
53221
  }
53135
53222
  return addItemsToCurrentRound(this, gameHistory, destination);
53136
53223
  };
53137
- protoOf(GameHistoryReducer).v94 = function (playerId, previousConnection, playerConnection, gameHistory) {
53224
+ protoOf(GameHistoryReducer).u94 = function (playerId, previousConnection, playerConnection, gameHistory) {
53138
53225
  if (playerConnection == null) {
53139
53226
  return gameHistory;
53140
53227
  }
@@ -53146,17 +53233,17 @@
53146
53233
  tmp = false;
53147
53234
  }
53148
53235
  var isShortDisconnectState = tmp;
53149
- if (isSupportedReason && !isShortDisconnectState || this.t94_1.verboseGameHistory) {
53236
+ if (isSupportedReason && !isShortDisconnectState || this.s94_1.verboseGameHistory) {
53150
53237
  return addItemsToCurrentRound(this, gameHistory, listOf(new PlayerConnectionItem(playerId, playerConnection.t65_1, playerConnection.a66(), System_instance.ck())));
53151
53238
  }
53152
53239
  return gameHistory;
53153
53240
  };
53154
- protoOf(GameHistoryReducer).z94 = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
53241
+ protoOf(GameHistoryReducer).y94 = function (points, gameHistory, roundContractState, roundCommitted, roundWinners, gameWinners, playersGameAnalytics, playersAchievements) {
53155
53242
  var currentRoundHistory = last_0(gameHistory.rounds);
53156
53243
  var tmp0_elvis_lhs = gameHistory.metadata;
53157
53244
  var currentMetadata = tmp0_elvis_lhs == null ? Companion_instance_159.initial() : tmp0_elvis_lhs;
53158
53245
  var tmp;
53159
- if (this.t94_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
53246
+ if (this.s94_1.gameHistoryMetadata && !(playersGameAnalytics == null)) {
53160
53247
  // Inline function 'kotlin.collections.map' call
53161
53248
  // Inline function 'kotlin.collections.mapTo' call
53162
53249
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(playersGameAnalytics, 10));
@@ -53171,7 +53258,7 @@
53171
53258
  tmp = currentMetadata;
53172
53259
  }
53173
53260
  var updatedMetadata = tmp;
53174
- var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.r94_1.c8l(points), System_instance.ck())));
53261
+ var tmp1_items = plus_1(currentRoundHistory.items, listOfNotNull_0(new PointsItem(this.q94_1.c8l(points), System_instance.ck())));
53175
53262
  var tmp2_rounds = updateLastItem(gameHistory.rounds, currentRoundHistory.copy(VOID, tmp1_items, roundCommitted, roundContractState, roundWinners));
53176
53263
  return gameHistory.copy(VOID, VOID, tmp2_rounds, gameWinners, updatedMetadata);
53177
53264
  };
@@ -53196,7 +53283,7 @@
53196
53283
  tmp = cardDeck;
53197
53284
  }
53198
53285
  var newCardDeck = tmp;
53199
- return new PreviousRound(bribes, newCardDeck, $this.k95_1.d8l(players, config));
53286
+ return new PreviousRound(bribes, newCardDeck, $this.j95_1.d8l(players, config));
53200
53287
  }
53201
53288
  function roundFinishedGameInfoReducer($this, table) {
53202
53289
  var gameInfo = table.gameInfo;
@@ -53249,10 +53336,10 @@
53249
53336
  return points.b6v(0, emptyList(), emptyList());
53250
53337
  }
53251
53338
  function TableLifecycleReducerImpl(pointsInteractor, historyReducer) {
53252
- this.k95_1 = pointsInteractor;
53253
- this.l95_1 = historyReducer;
53339
+ this.j95_1 = pointsInteractor;
53340
+ this.k95_1 = historyReducer;
53254
53341
  }
53255
- protoOf(TableLifecycleReducerImpl).i95 = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
53342
+ protoOf(TableLifecycleReducerImpl).h95 = function (tableId, gameId, config, version, users, spectators, gameCreatorPlayerId, playerStateReducer) {
53256
53343
  var tmp = Companion_instance_147;
53257
53344
  // Inline function 'kotlin.collections.mapIndexed' call
53258
53345
  // Inline function 'kotlin.collections.mapIndexedTo' call
@@ -53284,7 +53371,7 @@
53284
53371
  }
53285
53372
  return tmp.initial(tableId, gameId, version, config, tmp_1, destination_0);
53286
53373
  };
53287
- protoOf(TableLifecycleReducerImpl).e94 = function (table) {
53374
+ protoOf(TableLifecycleReducerImpl).d94 = function (table) {
53288
53375
  var tmp0_sceneInfo = new SceneInfo('WAITING');
53289
53376
  // Inline function 'kotlin.collections.map' call
53290
53377
  var this_0 = table.players;
@@ -53299,10 +53386,10 @@
53299
53386
  var tmp2_cardsOnTable = emptyList();
53300
53387
  var tmp3_bribes = emptyList();
53301
53388
  var tmp4_gameInfo = roundFinishedGameInfoReducer(this, table);
53302
- var tmp5_gameHistory = this.l95_1.g95(table.gameHistory);
53389
+ var tmp5_gameHistory = this.k95_1.f95(table.gameHistory);
53303
53390
  return table.copy(VOID, VOID, VOID, VOID, destination, VOID, tmp0_sceneInfo, tmp2_cardsOnTable, tmp3_bribes, VOID, VOID, tmp4_gameInfo, tmp5_gameHistory);
53304
53391
  };
53305
- protoOf(TableLifecycleReducerImpl).a95 = function (table) {
53392
+ protoOf(TableLifecycleReducerImpl).z94 = function (table) {
53306
53393
  // Inline function 'kotlin.collections.map' call
53307
53394
  var this_0 = table.players;
53308
53395
  // Inline function 'kotlin.collections.mapTo' call
@@ -53313,9 +53400,9 @@
53313
53400
  var tmp$ret$0 = roundFinishedPlayerReducer(this, item);
53314
53401
  destination.j(tmp$ret$0);
53315
53402
  }
53316
- return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.l95_1.g95(table.gameHistory));
53403
+ return table.copy(VOID, VOID, VOID, VOID, destination, VOID, VOID, emptyList(), emptyList(), null, VOID, roundFinishedGameInfoReducer(this, table), this.k95_1.f95(table.gameHistory));
53317
53404
  };
53318
- protoOf(TableLifecycleReducerImpl).j95 = function (table, newGameId) {
53405
+ protoOf(TableLifecycleReducerImpl).i95 = function (table, newGameId) {
53319
53406
  // Inline function 'kotlin.collections.map' call
53320
53407
  var this_0 = table.players;
53321
53408
  // Inline function 'kotlin.collections.mapTo' call
@@ -53354,93 +53441,93 @@
53354
53441
  return true;
53355
53442
  }
53356
53443
  function resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
53357
- this.m95_1 = $isEnableForPlayer;
53358
- this.n95_1 = $playerTurnInteractor;
53359
- this.o95_1 = $logger;
53360
- this.p95_1 = $playerTurnMechanicReducer;
53444
+ this.l95_1 = $isEnableForPlayer;
53445
+ this.m95_1 = $playerTurnInteractor;
53446
+ this.n95_1 = $logger;
53447
+ this.o95_1 = $playerTurnMechanicReducer;
53361
53448
  }
53362
53449
  protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).q6d = function (action) {
53363
53450
  return isInterface(action, PlayerAnswerFromClientAction);
53364
53451
  };
53365
- protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
53452
+ protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).k92 = function (state, action) {
53366
53453
  var tmp2 = isInterface(action, PlayerAnswerFromClientAction) ? action : THROW_CCE();
53367
53454
  var tmp$ret$0;
53368
53455
  $l$block: {
53369
53456
  var table = state.n6i();
53370
53457
  var player = getPlayer(table.players, tmp2.playerId);
53371
- if (!this.m95_1(player)) {
53458
+ if (!this.l95_1(player)) {
53372
53459
  tmp$ret$0 = state;
53373
53460
  break $l$block;
53374
53461
  }
53375
- var turnModel = this.n95_1.z8l(player, tmp2);
53462
+ var turnModel = this.m95_1.z8l(player, tmp2);
53376
53463
  var tmp;
53377
53464
  if (turnModel == null) {
53378
- this.o95_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
53465
+ this.n95_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
53379
53466
  tmp = state;
53380
53467
  } else {
53381
- tmp = state.m8p(this.p95_1.p94(table, turnModel));
53468
+ tmp = state.m8p(this.o95_1.o94(table, turnModel));
53382
53469
  }
53383
53470
  tmp$ret$0 = tmp;
53384
53471
  }
53385
53472
  return tmp$ret$0;
53386
53473
  };
53387
53474
  protoOf(resetPlayerTurnWhenAnswerFromActionReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
53388
- return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
53475
+ return this.k92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
53389
53476
  };
53390
53477
  function resetPlayerTurnWhenAnswerReducer$lambda(it) {
53391
53478
  return true;
53392
53479
  }
53393
53480
  function resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1($isEnableForPlayer, $playerTurnInteractor, $logger, $playerTurnMechanicReducer) {
53394
- this.q95_1 = $isEnableForPlayer;
53395
- this.r95_1 = $playerTurnInteractor;
53396
- this.s95_1 = $logger;
53397
- this.t95_1 = $playerTurnMechanicReducer;
53481
+ this.p95_1 = $isEnableForPlayer;
53482
+ this.q95_1 = $playerTurnInteractor;
53483
+ this.r95_1 = $logger;
53484
+ this.s95_1 = $playerTurnMechanicReducer;
53398
53485
  }
53399
53486
  protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).q6d = function (action) {
53400
53487
  return isInterface(action, PlayerTurnAnswerAction);
53401
53488
  };
53402
- protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
53489
+ protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).k92 = function (state, action) {
53403
53490
  var tmp2 = isInterface(action, PlayerTurnAnswerAction) ? action : THROW_CCE();
53404
53491
  var tmp$ret$0;
53405
53492
  $l$block: {
53406
53493
  var table = state.n6i();
53407
53494
  var player = getPlayerTurn(tmp2, table.players);
53408
- if (player == null || !this.q95_1(player)) {
53495
+ if (player == null || !this.p95_1(player)) {
53409
53496
  tmp$ret$0 = state;
53410
53497
  break $l$block;
53411
53498
  }
53412
- var turnModel = this.r95_1.z8l(player, tmp2);
53499
+ var turnModel = this.q95_1.z8l(player, tmp2);
53413
53500
  var tmp;
53414
53501
  if (turnModel == null) {
53415
- this.s95_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
53502
+ this.r95_1.w(VOID, 'TAG is null, action: ' + toString(tmp2) + ', playerId: ' + player.playerId, VOID, new GameErrorReason(Reason_WRONG_PLAYER_TURN_getInstance()));
53416
53503
  tmp = state;
53417
53504
  } else {
53418
- tmp = state.m8p(this.t95_1.p94(table, turnModel));
53505
+ tmp = state.m8p(this.s95_1.o94(table, turnModel));
53419
53506
  }
53420
53507
  tmp$ret$0 = tmp;
53421
53508
  }
53422
53509
  return tmp$ret$0;
53423
53510
  };
53424
53511
  protoOf(resetPlayerTurnWhenAnswerReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
53425
- return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
53512
+ return this.k92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
53426
53513
  };
53427
53514
  function setPlayerTurnReducer(playerTurnInteractor, playerTurnMechanicReducer) {
53428
53515
  // Inline function 'com.logic.redux.store.definitions.reducerForActionType' call
53429
53516
  return new setPlayerTurnReducer$$inlined$reducerForActionType$1(playerTurnInteractor, playerTurnMechanicReducer);
53430
53517
  }
53431
53518
  function setPlayerTurnReducer$$inlined$reducerForActionType$1($playerTurnInteractor, $playerTurnMechanicReducer) {
53432
- this.u95_1 = $playerTurnInteractor;
53433
- this.v95_1 = $playerTurnMechanicReducer;
53519
+ this.t95_1 = $playerTurnInteractor;
53520
+ this.u95_1 = $playerTurnMechanicReducer;
53434
53521
  }
53435
53522
  protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).q6d = function (action) {
53436
53523
  return isInterface(action, NextPlayerTurnAction);
53437
53524
  };
53438
- protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).l92 = function (state, action) {
53525
+ protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).k92 = function (state, action) {
53439
53526
  var tmp2 = isInterface(action, NextPlayerTurnAction) ? action : THROW_CCE();
53440
53527
  var tmp$ret$0;
53441
53528
  $l$block: {
53442
53529
  var table = state.n6i();
53443
- var tmp0_elvis_lhs = this.u95_1.y8l(tmp2, table);
53530
+ var tmp0_elvis_lhs = this.t95_1.y8l(tmp2, table);
53444
53531
  var tmp;
53445
53532
  if (tmp0_elvis_lhs == null) {
53446
53533
  tmp$ret$0 = state;
@@ -53449,12 +53536,12 @@
53449
53536
  tmp = tmp0_elvis_lhs;
53450
53537
  }
53451
53538
  var turnModel = tmp;
53452
- tmp$ret$0 = state.m8p(this.v95_1.o94(table, turnModel));
53539
+ tmp$ret$0 = state.m8p(this.u95_1.n94(table, turnModel));
53453
53540
  }
53454
53541
  return tmp$ret$0;
53455
53542
  };
53456
53543
  protoOf(setPlayerTurnReducer$$inlined$reducerForActionType$1).g6f = function (state, action) {
53457
- return this.l92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
53544
+ return this.k92((state == null ? true : !(state == null)) ? state : THROW_CCE(), action);
53458
53545
  };
53459
53546
  function get_isCreated(_this__u8e3s4) {
53460
53547
  return _this__u8e3s4.gameLifecycleState.isCreated;
@@ -53467,7 +53554,7 @@
53467
53554
  }
53468
53555
  function Companion_165() {
53469
53556
  }
53470
- protoOf(Companion_165).w95 = function (payload) {
53557
+ protoOf(Companion_165).v95 = function (payload) {
53471
53558
  var tmp;
53472
53559
  if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
53473
53560
  tmp = toLoggerPayload_0(payload);
@@ -53488,38 +53575,28 @@
53488
53575
  function Companion_getInstance_172() {
53489
53576
  return Companion_instance_170;
53490
53577
  }
53491
- function CallbackWrapperLoggerOutput$_init_$lambda_hgxyzw(it) {
53492
- return null;
53493
- }
53494
53578
  function CallbackWrapperLoggerOutput(logger, payloadMapper) {
53495
- var tmp;
53496
- if (payloadMapper === VOID) {
53497
- tmp = CallbackWrapperLoggerOutput$_init_$lambda_hgxyzw;
53498
- } else {
53499
- tmp = payloadMapper;
53500
- }
53501
- payloadMapper = tmp;
53502
- this.x95_1 = logger;
53503
- this.y95_1 = payloadMapper;
53579
+ this.w95_1 = logger;
53580
+ this.x95_1 = payloadMapper;
53504
53581
  }
53505
53582
  protoOf(CallbackWrapperLoggerOutput).x1k = function (tag, message, payload) {
53506
- this.x95_1.d(tag, message, this.y95_1(payload));
53583
+ this.w95_1.d(tag, message, this.x95_1(payload));
53507
53584
  };
53508
53585
  protoOf(CallbackWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
53509
- this.x95_1.e(tag, message, exception, this.y95_1(payload));
53586
+ this.w95_1.e(tag, message, exception, this.x95_1(payload));
53510
53587
  };
53511
53588
  protoOf(CallbackWrapperLoggerOutput).b1l = function (tag, message, payload) {
53512
- this.x95_1.i(tag, message, this.y95_1(payload));
53589
+ this.w95_1.i(tag, message, this.x95_1(payload));
53513
53590
  };
53514
53591
  protoOf(CallbackWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
53515
- this.x95_1.v(tag, message, exception, this.y95_1(payload));
53592
+ this.w95_1.v(tag, message, exception, this.x95_1(payload));
53516
53593
  };
53517
53594
  protoOf(CallbackWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
53518
- this.x95_1.w(tag, message, exception, this.y95_1(payload));
53595
+ this.w95_1.w(tag, message, exception, this.x95_1(payload));
53519
53596
  };
53520
53597
  function FileLoggerOutputImpl$observe$o$collect$slambda($$this$unsafeFlow, $types, resultContinuation) {
53521
- this.h96_1 = $$this$unsafeFlow;
53522
- this.i96_1 = $types;
53598
+ this.g96_1 = $$this$unsafeFlow;
53599
+ this.h96_1 = $types;
53523
53600
  CoroutineImpl.call(this, resultContinuation);
53524
53601
  }
53525
53602
  protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).s4u = function (value, $completion) {
@@ -53540,15 +53617,15 @@
53540
53617
  case 0:
53541
53618
  this.s8_1 = 5;
53542
53619
  var tmp_0 = this;
53543
- tmp_0.l96_1 = this.h96_1;
53620
+ tmp_0.k96_1 = this.g96_1;
53544
53621
  var tmp_1 = this;
53545
- tmp_1.k96_1 = this.j96_1;
53622
+ tmp_1.j96_1 = this.i96_1;
53546
53623
  this.r8_1 = 1;
53547
53624
  continue $sm;
53548
53625
  case 1:
53549
- var $this$transform = this.l96_1;
53550
- var value = this.k96_1;
53551
- if (contains(this.i96_1, value.type)) {
53626
+ var $this$transform = this.k96_1;
53627
+ var value = this.j96_1;
53628
+ if (contains(this.h96_1, value.type)) {
53552
53629
  this.r8_1 = 3;
53553
53630
  suspendResult = $this$transform.x27(value, this);
53554
53631
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
@@ -53588,8 +53665,8 @@
53588
53665
  while (true);
53589
53666
  };
53590
53667
  protoOf(FileLoggerOutputImpl$observe$o$collect$slambda).t4u = function (value, completion) {
53591
- var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.h96_1, this.i96_1, completion);
53592
- i.j96_1 = value;
53668
+ var i = new FileLoggerOutputImpl$observe$o$collect$slambda(this.g96_1, this.h96_1, completion);
53669
+ i.i96_1 = value;
53593
53670
  return i;
53594
53671
  };
53595
53672
  function FileLoggerOutputImpl$observe$o$collect$slambda_0($$this$unsafeFlow, $types, resultContinuation) {
@@ -53602,8 +53679,8 @@
53602
53679
  }
53603
53680
  function $collectCOROUTINE$(_this__u8e3s4, collector, resultContinuation) {
53604
53681
  CoroutineImpl.call(this, resultContinuation);
53605
- this.u96_1 = _this__u8e3s4;
53606
- this.v96_1 = collector;
53682
+ this.t96_1 = _this__u8e3s4;
53683
+ this.u96_1 = collector;
53607
53684
  }
53608
53685
  protoOf($collectCOROUTINE$).z8 = function () {
53609
53686
  var suspendResult = this.t8_1;
@@ -53613,10 +53690,10 @@
53613
53690
  switch (tmp) {
53614
53691
  case 0:
53615
53692
  this.s8_1 = 2;
53616
- var $this$unsafeFlow = this.v96_1;
53693
+ var $this$unsafeFlow = this.u96_1;
53617
53694
  this.r8_1 = 1;
53618
- var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.u96_1.x96_1, null);
53619
- suspendResult = this.u96_1.w96_1.j27(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
53695
+ var tmp_0 = FileLoggerOutputImpl$observe$o$collect$slambda_0($this$unsafeFlow, this.t96_1.w96_1, null);
53696
+ suspendResult = this.t96_1.v96_1.j27(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp_0), this);
53620
53697
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
53621
53698
  return suspendResult;
53622
53699
  }
@@ -53640,8 +53717,8 @@
53640
53717
  };
53641
53718
  function log($this, type, tag, message, payload, stackTrace) {
53642
53719
  // Inline function 'kotlinx.atomicfu.locks.withLock' call
53643
- $this.a97_1;
53644
- var tmp0_elvis_lhs = $this.y96_1(payload);
53720
+ $this.z96_1;
53721
+ var tmp0_elvis_lhs = $this.x96_1(payload);
53645
53722
  var tmp;
53646
53723
  if (tmp0_elvis_lhs == null) {
53647
53724
  return Unit_instance;
@@ -53650,7 +53727,7 @@
53650
53727
  }
53651
53728
  var key = tmp;
53652
53729
  // Inline function 'kotlin.collections.getOrPut' call
53653
- var this_0 = $this.b97_1;
53730
+ var this_0 = $this.a97_1;
53654
53731
  var value = this_0.b2(key);
53655
53732
  var tmp_0;
53656
53733
  if (value == null) {
@@ -53662,7 +53739,7 @@
53662
53739
  }
53663
53740
  var logger = tmp_0;
53664
53741
  var tmp1_key = key.t6g();
53665
- logger.c97_1.d2a(new LoggerOutputDataDto(type, tmp1_key, tag, message, stackTrace));
53742
+ logger.b97_1.d2a(new LoggerOutputDataDto(type, tmp1_key, tag, message, stackTrace));
53666
53743
  }
53667
53744
  function log$default($this, type, tag, message, payload, stackTrace, $super) {
53668
53745
  stackTrace = stackTrace === VOID ? null : stackTrace;
@@ -53672,35 +53749,35 @@
53672
53749
  flow = flow === VOID ? MutableSharedFlow(10, 100, BufferOverflow_DROP_OLDEST_getInstance()) : flow;
53673
53750
  controller = controller === VOID ? null : controller;
53674
53751
  job = job === VOID ? null : job;
53675
- this.c97_1 = flow;
53676
- this.d97_1 = controller;
53677
- this.e97_1 = job;
53752
+ this.b97_1 = flow;
53753
+ this.c97_1 = controller;
53754
+ this.d97_1 = job;
53678
53755
  }
53679
- protoOf(LoggerModel).f97 = function () {
53680
- this.c97_1.h2a();
53681
- var tmp0_safe_receiver = this.e97_1;
53756
+ protoOf(LoggerModel).e97 = function () {
53757
+ this.b97_1.h2a();
53758
+ var tmp0_safe_receiver = this.d97_1;
53682
53759
  if (tmp0_safe_receiver == null)
53683
53760
  null;
53684
53761
  else {
53685
53762
  tmp0_safe_receiver.n1q();
53686
53763
  }
53687
53764
  };
53688
- protoOf(LoggerModel).g97 = function (flow, controller, job) {
53765
+ protoOf(LoggerModel).f97 = function (flow, controller, job) {
53689
53766
  return new LoggerModel(flow, controller, job);
53690
53767
  };
53691
- protoOf(LoggerModel).h97 = function (flow, controller, job, $super) {
53692
- flow = flow === VOID ? this.c97_1 : flow;
53693
- controller = controller === VOID ? this.d97_1 : controller;
53694
- job = job === VOID ? this.e97_1 : job;
53695
- return $super === VOID ? this.g97(flow, controller, job) : $super.g97.call(this, flow, controller, job);
53768
+ protoOf(LoggerModel).g97 = function (flow, controller, job, $super) {
53769
+ flow = flow === VOID ? this.b97_1 : flow;
53770
+ controller = controller === VOID ? this.c97_1 : controller;
53771
+ job = job === VOID ? this.d97_1 : job;
53772
+ return $super === VOID ? this.f97(flow, controller, job) : $super.f97.call(this, flow, controller, job);
53696
53773
  };
53697
53774
  protoOf(LoggerModel).toString = function () {
53698
- return 'LoggerModel(flow=' + toString(this.c97_1) + ', controller=' + toString_0(this.d97_1) + ', job=' + toString_0(this.e97_1) + ')';
53775
+ return 'LoggerModel(flow=' + toString(this.b97_1) + ', controller=' + toString_0(this.c97_1) + ', job=' + toString_0(this.d97_1) + ')';
53699
53776
  };
53700
53777
  protoOf(LoggerModel).hashCode = function () {
53701
- var result = hashCode(this.c97_1);
53778
+ var result = hashCode(this.b97_1);
53779
+ result = imul(result, 31) + (this.c97_1 == null ? 0 : hashCode(this.c97_1)) | 0;
53702
53780
  result = imul(result, 31) + (this.d97_1 == null ? 0 : hashCode(this.d97_1)) | 0;
53703
- result = imul(result, 31) + (this.e97_1 == null ? 0 : hashCode(this.e97_1)) | 0;
53704
53781
  return result;
53705
53782
  };
53706
53783
  protoOf(LoggerModel).equals = function (other) {
@@ -53708,18 +53785,18 @@
53708
53785
  return true;
53709
53786
  if (!(other instanceof LoggerModel))
53710
53787
  return false;
53788
+ if (!equals(this.b97_1, other.b97_1))
53789
+ return false;
53711
53790
  if (!equals(this.c97_1, other.c97_1))
53712
53791
  return false;
53713
53792
  if (!equals(this.d97_1, other.d97_1))
53714
53793
  return false;
53715
- if (!equals(this.e97_1, other.e97_1))
53716
- return false;
53717
53794
  return true;
53718
53795
  };
53719
53796
  function Companion_166() {
53720
- this.i97_1 = 1000;
53797
+ this.h97_1 = 1000;
53721
53798
  }
53722
- protoOf(Companion_166).j97 = function (payload) {
53799
+ protoOf(Companion_166).i97 = function (payload) {
53723
53800
  var tmp;
53724
53801
  if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
53725
53802
  tmp = payload.id;
@@ -53736,7 +53813,7 @@
53736
53813
  }
53737
53814
  return tmp;
53738
53815
  };
53739
- protoOf(Companion_166).k97 = function (payload) {
53816
+ protoOf(Companion_166).j97 = function (payload) {
53740
53817
  var tmp;
53741
53818
  if (!(payload == null) ? isInterface(payload, FirstMechanicAction) : false) {
53742
53819
  tmp = first(payload.users).p64_1;
@@ -53754,13 +53831,13 @@
53754
53831
  return Companion_instance_171;
53755
53832
  }
53756
53833
  function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
53757
- this.l97_1 = function_0;
53834
+ this.k97_1 = function_0;
53758
53835
  }
53759
53836
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).x27 = function (value, $completion) {
53760
- return this.l97_1(value, $completion);
53837
+ return this.k97_1(value, $completion);
53761
53838
  };
53762
53839
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).a3 = function () {
53763
- return this.l97_1;
53840
+ return this.k97_1;
53764
53841
  };
53765
53842
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).equals = function (other) {
53766
53843
  var tmp;
@@ -53780,12 +53857,9 @@
53780
53857
  protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).hashCode = function () {
53781
53858
  return hashCode(this.a3());
53782
53859
  };
53783
- function FileLoggerOutputImpl$_init_$lambda_sdog02(it) {
53784
- return null;
53785
- }
53786
53860
  function FileLoggerOutputImpl$observe$$inlined$filter$1($this, $types) {
53787
- this.w96_1 = $this;
53788
- this.x96_1 = $types;
53861
+ this.v96_1 = $this;
53862
+ this.w96_1 = $types;
53789
53863
  }
53790
53864
  protoOf(FileLoggerOutputImpl$observe$$inlined$filter$1).y27 = function (collector, $completion) {
53791
53865
  var tmp = new $collectCOROUTINE$(this, collector, $completion);
@@ -53797,34 +53871,27 @@
53797
53871
  return this.y27(collector, $completion);
53798
53872
  };
53799
53873
  function FileLoggerOutputImpl(payloadToLoggerKeyMapper, enabled) {
53800
- var tmp;
53801
- if (payloadToLoggerKeyMapper === VOID) {
53802
- tmp = FileLoggerOutputImpl$_init_$lambda_sdog02;
53803
- } else {
53804
- tmp = payloadToLoggerKeyMapper;
53805
- }
53806
- payloadToLoggerKeyMapper = tmp;
53807
53874
  enabled = enabled === VOID ? true : enabled;
53808
- this.y96_1 = payloadToLoggerKeyMapper;
53809
- this.z96_1 = enabled;
53810
- var tmp_0 = this;
53875
+ this.x96_1 = payloadToLoggerKeyMapper;
53876
+ this.y96_1 = enabled;
53877
+ var tmp = this;
53811
53878
  // Inline function 'kotlinx.atomicfu.locks.reentrantLock' call
53812
- tmp_0.a97_1 = get_atomicfu$reentrantLock();
53813
- var tmp_1 = this;
53879
+ tmp.z96_1 = get_atomicfu$reentrantLock();
53880
+ var tmp_0 = this;
53814
53881
  // Inline function 'kotlin.collections.mutableMapOf' call
53815
- tmp_1.b97_1 = LinkedHashMap_init_$Create$();
53882
+ tmp_0.a97_1 = LinkedHashMap_init_$Create$();
53816
53883
  }
53817
53884
  protoOf(FileLoggerOutputImpl).c1l = function (_set____db54di) {
53818
- this.z96_1 = _set____db54di;
53885
+ this.y96_1 = _set____db54di;
53819
53886
  };
53820
53887
  protoOf(FileLoggerOutputImpl).d1l = function () {
53821
- return this.z96_1;
53888
+ return this.y96_1;
53822
53889
  };
53823
- protoOf(FileLoggerOutputImpl).m97 = function (loggerKey, types) {
53890
+ protoOf(FileLoggerOutputImpl).l97 = function (loggerKey, types) {
53824
53891
  // Inline function 'kotlinx.atomicfu.locks.withLock' call
53825
- this.a97_1;
53892
+ this.z96_1;
53826
53893
  // Inline function 'kotlin.collections.getOrPut' call
53827
- var this_0 = this.b97_1;
53894
+ var this_0 = this.a97_1;
53828
53895
  var value = this_0.b2(loggerKey);
53829
53896
  var tmp;
53830
53897
  if (value == null) {
@@ -53837,26 +53904,26 @@
53837
53904
  var logger = tmp;
53838
53905
  // Inline function 'kotlinx.coroutines.flow.filter' call
53839
53906
  // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
53840
- var this_1 = logger.c97_1;
53907
+ var this_1 = logger.b97_1;
53841
53908
  // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
53842
53909
  return new FileLoggerOutputImpl$observe$$inlined$filter$1(this_1, types);
53843
53910
  };
53844
53911
  protoOf(FileLoggerOutputImpl).e8y = function (loggerKey) {
53845
53912
  // Inline function 'kotlinx.atomicfu.locks.withLock' call
53846
- this.a97_1;
53847
- var tmp0_safe_receiver = this.b97_1.b2(loggerKey);
53913
+ this.z96_1;
53914
+ var tmp0_safe_receiver = this.a97_1.b2(loggerKey);
53848
53915
  if (tmp0_safe_receiver == null)
53849
53916
  null;
53850
53917
  else {
53851
- tmp0_safe_receiver.f97();
53918
+ tmp0_safe_receiver.e97();
53852
53919
  }
53853
- this.b97_1.f2(loggerKey);
53920
+ this.a97_1.f2(loggerKey);
53854
53921
  };
53855
53922
  protoOf(FileLoggerOutputImpl).d8y = function (loggerKey, job, controller) {
53856
53923
  // Inline function 'kotlinx.atomicfu.locks.withLock' call
53857
- this.a97_1;
53924
+ this.z96_1;
53858
53925
  // Inline function 'kotlin.collections.getOrPut' call
53859
- var this_0 = this.b97_1;
53926
+ var this_0 = this.a97_1;
53860
53927
  var value = this_0.b2(loggerKey);
53861
53928
  var tmp;
53862
53929
  if (value == null) {
@@ -53866,30 +53933,30 @@
53866
53933
  } else {
53867
53934
  tmp = value;
53868
53935
  }
53869
- var updatedModel = tmp.h97(VOID, controller, job);
53936
+ var updatedModel = tmp.g97(VOID, controller, job);
53870
53937
  // Inline function 'kotlin.collections.set' call
53871
- this.b97_1.e2(loggerKey, updatedModel);
53938
+ this.a97_1.e2(loggerKey, updatedModel);
53872
53939
  };
53873
53940
  protoOf(FileLoggerOutputImpl).h2 = function () {
53874
53941
  // Inline function 'kotlinx.atomicfu.locks.withLock' call
53875
- this.a97_1;
53942
+ this.z96_1;
53876
53943
  // Inline function 'kotlin.collections.forEach' call
53877
53944
  // Inline function 'kotlin.collections.iterator' call
53878
- var _iterator__ex2g4s = this.b97_1.u().l();
53945
+ var _iterator__ex2g4s = this.a97_1.u().l();
53879
53946
  while (_iterator__ex2g4s.m()) {
53880
53947
  var element = _iterator__ex2g4s.n();
53881
- element.w().f97();
53948
+ element.w().e97();
53882
53949
  }
53883
- this.b97_1.h2();
53950
+ this.a97_1.h2();
53884
53951
  };
53885
53952
  protoOf(FileLoggerOutputImpl).x1k = function (tag, message, payload) {
53886
- if (!this.z96_1)
53953
+ if (!this.y96_1)
53887
53954
  return Unit_instance;
53888
53955
  var tmp0_type = LogType_DEBUG_getInstance();
53889
53956
  log$default(this, tmp0_type, tag, message, payload);
53890
53957
  };
53891
53958
  protoOf(FileLoggerOutputImpl).y1k = function (tag, message, exception, payload) {
53892
- if (!this.z96_1)
53959
+ if (!this.y96_1)
53893
53960
  return Unit_instance;
53894
53961
  var tmp4_type = LogType_ERROR_getInstance();
53895
53962
  var tmp;
@@ -53904,13 +53971,13 @@
53904
53971
  log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
53905
53972
  };
53906
53973
  protoOf(FileLoggerOutputImpl).b1l = function (tag, message, payload) {
53907
- if (!this.z96_1)
53974
+ if (!this.y96_1)
53908
53975
  return Unit_instance;
53909
53976
  var tmp0_type = LogType_INFO_getInstance();
53910
53977
  log(this, tmp0_type, tag, message, payload, null);
53911
53978
  };
53912
53979
  protoOf(FileLoggerOutputImpl).a1l = function (tag, message, exception, payload) {
53913
- if (!this.z96_1)
53980
+ if (!this.y96_1)
53914
53981
  return Unit_instance;
53915
53982
  var tmp4_type = LogType_VERBOSE_getInstance();
53916
53983
  var tmp;
@@ -53925,7 +53992,7 @@
53925
53992
  log(this, tmp4_type, tag, tmp5_message, payload, tmp6_stackTrace);
53926
53993
  };
53927
53994
  protoOf(FileLoggerOutputImpl).z1k = function (tag, message, exception, payload) {
53928
- if (!this.z96_1)
53995
+ if (!this.y96_1)
53929
53996
  return Unit_instance;
53930
53997
  var tmp4_type = LogType_WARN_getInstance();
53931
53998
  var tmp1_elvis_lhs = exception == null ? null : exception.message;
@@ -54465,9 +54532,9 @@
54465
54532
  }
54466
54533
  }
54467
54534
  function GameHelperImpl(logger) {
54468
- this.q97_1 = logger;
54535
+ this.p97_1 = logger;
54469
54536
  }
54470
- protoOf(GameHelperImpl).n97 = function (store, playerIds, includeBots) {
54537
+ protoOf(GameHelperImpl).m97 = function (store, playerIds, includeBots) {
54471
54538
  var state = store.state;
54472
54539
  var tmp;
54473
54540
  if (!state.o6i()) {
@@ -54513,7 +54580,7 @@
54513
54580
  // Inline function 'kotlin.collections.toTypedArray' call
54514
54581
  return copyToArray(destination_1);
54515
54582
  };
54516
- protoOf(GameHelperImpl).o97 = function (store, playerIds, includeBots) {
54583
+ protoOf(GameHelperImpl).n97 = function (store, playerIds, includeBots) {
54517
54584
  var state = store.state;
54518
54585
  var tmp;
54519
54586
  if (!state.o6i()) {
@@ -54684,10 +54751,10 @@
54684
54751
  // Inline function 'kotlin.collections.toTypedArray' call
54685
54752
  return copyToArray(destination);
54686
54753
  };
54687
- protoOf(GameHelperImpl).p97 = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
54754
+ protoOf(GameHelperImpl).o97 = function (mode, points, players, timeoutTimeMillis, rulesSetType, rules, isEnableChat, isBotsEnabled, isPrivate, dealerStrategy, transition, league) {
54688
54755
  var roomMode = mapToRoomMode(mode);
54689
54756
  var isEnableChoosePartnerScreen = (transition == null || transition.isEnableChoosePartnerScreen) && roomMode.isEnableChoosePartnerScreen;
54690
- this.q97_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
54757
+ this.p97_1.v(VOID, 'createConfig: ' + ('mode = ' + roomMode.toString() + ', ') + ('transition = ' + toString_0(transition) + ', ') + ('isPrivate = ' + isPrivate + ', ') + ('dealerStrategy = ' + dealerStrategy + ', ') + ('league = ' + league + ', ') + ('isEnableChoosePartnerScreen = ' + isEnableChoosePartnerScreen + ' '));
54691
54758
  var options = Companion_instance_155.getServerOptions(isEnableChat, isBotsEnabled, isEnableChoosePartnerScreen);
54692
54759
  var playersMode = this.mapPlayers(players);
54693
54760
  var pointsMode = this.mapPoints(points);
@@ -55122,40 +55189,40 @@
55122
55189
  function getRandomAvatarData_0($this) {
55123
55190
  var avatarSetNumber = Default_getInstance().ng(get_entries_6().o());
55124
55191
  var avatarSet = get_entries_6().p(avatarSetNumber);
55125
- return new AvatarData(Default_getInstance().ng(avatarSet.u97()), avatarSet);
55192
+ return new AvatarData(Default_getInstance().ng(avatarSet.t97()), avatarSet);
55126
55193
  }
55127
55194
  function getAvatarUrlByIndex($this, data) {
55128
55195
  return mapToPattern($this, data);
55129
55196
  }
55130
55197
  function getNicknameByIndex($this, data) {
55131
- return data.w97_1.x97(data.v97_1);
55198
+ return data.v97_1.w97(data.u97_1);
55132
55199
  }
55133
55200
  function mapToPattern($this, data) {
55134
- return 'debertz://raspberry.games/' + data.w97_1.p2_1 + '/' + data.v97_1;
55201
+ return 'debertz://raspberry.games/' + data.v97_1.p2_1 + '/' + data.u97_1;
55135
55202
  }
55136
55203
  function Companion_167() {
55137
55204
  Companion_instance_172 = this;
55138
- this.y97_1 = 'debertz://raspberry.games';
55205
+ this.x97_1 = 'debertz://raspberry.games';
55139
55206
  var tmp = this;
55140
55207
  // Inline function 'kotlin.arrayOf' call
55141
55208
  // Inline function 'kotlin.js.unsafeCast' call
55142
55209
  // Inline function 'kotlin.js.asDynamic' call
55143
- tmp.z97_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
55210
+ tmp.y97_1 = ['Helen', 'Kelvin', 'Josh', 'Cler', 'Anna', 'Emily', 'Tom', 'Peter', 'Kate', 'Lucy', 'Bob', 'Holly', 'Alex', 'Mark', 'Sarah', 'Naomi'];
55144
55211
  var tmp_0 = this;
55145
55212
  // Inline function 'kotlin.arrayOf' call
55146
55213
  // Inline function 'kotlin.js.unsafeCast' call
55147
55214
  // Inline function 'kotlin.js.asDynamic' call
55148
- tmp_0.a98_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'];
55215
+ tmp_0.z97_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'];
55149
55216
  var tmp_1 = this;
55150
55217
  // Inline function 'kotlin.arrayOf' call
55151
55218
  // Inline function 'kotlin.js.unsafeCast' call
55152
55219
  // Inline function 'kotlin.js.asDynamic' call
55153
- tmp_1.b98_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
55220
+ tmp_1.a98_1 = ['Fedya', 'Shurik', 'Student', 'Student girl', 'District policeman', 'George', 'Zina', 'Shuller', 'Tanya', 'Katerina', 'Innocent', 'Lyolik', 'Nina', 'Experienced', 'Jigid', 'Just a Tsar'];
55154
55221
  var tmp_2 = this;
55155
55222
  // Inline function 'kotlin.arrayOf' call
55156
55223
  // Inline function 'kotlin.js.unsafeCast' call
55157
55224
  // Inline function 'kotlin.js.asDynamic' call
55158
- tmp_2.c98_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'];
55225
+ tmp_2.b98_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'];
55159
55226
  }
55160
55227
  var Companion_instance_172;
55161
55228
  function Companion_getInstance_174() {
@@ -55166,14 +55233,14 @@
55166
55233
  function AvatarSet(name, ordinal) {
55167
55234
  Enum.call(this, name, ordinal);
55168
55235
  }
55169
- protoOf(AvatarSet).u97 = function () {
55236
+ protoOf(AvatarSet).t97 = function () {
55170
55237
  var tmp;
55171
55238
  switch (this.p2_1) {
55172
55239
  case 0:
55173
- tmp = Companion_getInstance_174().a98_1.length;
55240
+ tmp = Companion_getInstance_174().z97_1.length;
55174
55241
  break;
55175
55242
  case 1:
55176
- tmp = Companion_getInstance_174().c98_1.length;
55243
+ tmp = Companion_getInstance_174().b98_1.length;
55177
55244
  break;
55178
55245
  default:
55179
55246
  noWhenBranchMatchedException();
@@ -55181,14 +55248,14 @@
55181
55248
  }
55182
55249
  return tmp;
55183
55250
  };
55184
- protoOf(AvatarSet).x97 = function (index) {
55251
+ protoOf(AvatarSet).w97 = function (index) {
55185
55252
  var tmp;
55186
55253
  switch (this.p2_1) {
55187
55254
  case 0:
55188
- tmp = Companion_getInstance_174().a98_1[index];
55255
+ tmp = Companion_getInstance_174().z97_1[index];
55189
55256
  break;
55190
55257
  case 1:
55191
- tmp = Companion_getInstance_174().c98_1[index];
55258
+ tmp = Companion_getInstance_174().b98_1[index];
55192
55259
  break;
55193
55260
  default:
55194
55261
  noWhenBranchMatchedException();
@@ -55197,8 +55264,8 @@
55197
55264
  return tmp;
55198
55265
  };
55199
55266
  function AvatarData(index, avatarSet) {
55200
- this.v97_1 = index;
55201
- this.w97_1 = avatarSet;
55267
+ this.u97_1 = index;
55268
+ this.v97_1 = avatarSet;
55202
55269
  }
55203
55270
  function AvatarSet_ORIGIN_getInstance() {
55204
55271
  AvatarSet_initEntries();
@@ -55211,7 +55278,7 @@
55211
55278
  function GameResourcesImpl() {
55212
55279
  Companion_getInstance_174();
55213
55280
  }
55214
- protoOf(GameResourcesImpl).r97 = function (playerId, existingNicknames) {
55281
+ protoOf(GameResourcesImpl).q97 = function (playerId, existingNicknames) {
55215
55282
  return createUser(this, playerId, existingNicknames);
55216
55283
  };
55217
55284
  protoOf(GameResourcesImpl).createBotUsers = function (playerIds) {
@@ -55252,45 +55319,45 @@
55252
55319
  }
55253
55320
  var WARN;
55254
55321
  function LoggerCallbacksWrapperLoggerOutput(loggerCallback) {
55255
- this.d98_1 = loggerCallback;
55322
+ this.c98_1 = loggerCallback;
55256
55323
  }
55257
55324
  protoOf(LoggerCallbacksWrapperLoggerOutput).x1k = function (tag, message, payload) {
55258
- this.d98_1('debug', tag, message, null, payload);
55325
+ this.c98_1('debug', tag, message, null, payload);
55259
55326
  };
55260
55327
  protoOf(LoggerCallbacksWrapperLoggerOutput).y1k = function (tag, message, exception, payload) {
55261
- this.d98_1('error', tag, generateMsg(message, exception), exception, payload);
55328
+ this.c98_1('error', tag, generateMsg(message, exception), exception, payload);
55262
55329
  };
55263
55330
  protoOf(LoggerCallbacksWrapperLoggerOutput).b1l = function (tag, message, payload) {
55264
- this.d98_1('debug', tag, message, null, payload);
55331
+ this.c98_1('debug', tag, message, null, payload);
55265
55332
  };
55266
55333
  protoOf(LoggerCallbacksWrapperLoggerOutput).a1l = function (tag, message, exception, payload) {
55267
- this.d98_1('debug', tag, generateMsg(message, exception), exception, payload);
55334
+ this.c98_1('debug', tag, generateMsg(message, exception), exception, payload);
55268
55335
  };
55269
55336
  protoOf(LoggerCallbacksWrapperLoggerOutput).z1k = function (tag, message, exception, payload) {
55270
- this.d98_1('warn', tag, generateMsg(message, exception), exception, payload);
55337
+ this.c98_1('warn', tag, generateMsg(message, exception), exception, payload);
55271
55338
  };
55272
55339
  function ParserHelper() {
55273
55340
  }
55274
55341
  function ParserHelperImpl(json, encoderDecoderProvider) {
55275
- this.e98_1 = json;
55276
- this.f98_1 = encoderDecoderProvider;
55342
+ this.d98_1 = json;
55343
+ this.e98_1 = encoderDecoderProvider;
55277
55344
  }
55278
55345
  protoOf(ParserHelperImpl).encodeFromClientEvent = function (action) {
55279
- return this.f98_1.h8e(mapToDto_20(action));
55346
+ return this.e98_1.h8e(mapToDto_20(action));
55280
55347
  };
55281
55348
  protoOf(ParserHelperImpl).decodeFromClientEvent = function (fromPlayerId, json) {
55282
- return mapFromDto_16(this.f98_1.k8e(json), fromPlayerId);
55349
+ return mapFromDto_16(this.e98_1.k8e(json), fromPlayerId);
55283
55350
  };
55284
55351
  protoOf(ParserHelperImpl).encodeToClientEvent = function (action) {
55285
- return this.f98_1.i8e(mapToDto_74(action));
55352
+ return this.e98_1.i8e(mapToDto_74(action));
55286
55353
  };
55287
55354
  protoOf(ParserHelperImpl).decodeToClientEventToMechanicActions = function (playerId, engine, json) {
55288
55355
  // Inline function 'kotlin.collections.toTypedArray' call
55289
- var this_0 = mapFromClientDtoListWithPayload(this.f98_1.l8e(json), playerId, engine);
55356
+ var this_0 = mapFromClientDtoListWithPayload(this.e98_1.l8e(json), playerId, engine);
55290
55357
  return copyToArray(this_0);
55291
55358
  };
55292
55359
  protoOf(ParserHelperImpl).encodeGameRound = function (round) {
55293
- var tmp0 = this.e98_1;
55360
+ var tmp0 = this.d98_1;
55294
55361
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
55295
55362
  var value = mapToDto_31(round);
55296
55363
  // Inline function 'kotlinx.serialization.serializer' call
@@ -55301,7 +55368,7 @@
55301
55368
  return tmp0.ep(tmp$ret$1, value);
55302
55369
  };
55303
55370
  protoOf(ParserHelperImpl).encodeGameRoundItems = function (round) {
55304
- var tmp0 = this.e98_1;
55371
+ var tmp0 = this.d98_1;
55305
55372
  // Inline function 'kotlin.collections.map' call
55306
55373
  var this_0 = round.items;
55307
55374
  // Inline function 'kotlin.collections.mapTo' call
@@ -55323,7 +55390,7 @@
55323
55390
  return tmp0.ep(tmp$ret$4, destination);
55324
55391
  };
55325
55392
  protoOf(ParserHelperImpl).encodeGameMetadata = function (metadata) {
55326
- var tmp0 = this.e98_1;
55393
+ var tmp0 = this.d98_1;
55327
55394
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
55328
55395
  var value = mapToDto_33(metadata);
55329
55396
  // Inline function 'kotlinx.serialization.serializer' call
@@ -55334,7 +55401,7 @@
55334
55401
  return tmp0.ep(tmp$ret$1, value);
55335
55402
  };
55336
55403
  protoOf(ParserHelperImpl).encodeRoomConfig = function (config) {
55337
- var tmp0 = this.e98_1;
55404
+ var tmp0 = this.d98_1;
55338
55405
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
55339
55406
  var value = mapToDto_59(config);
55340
55407
  // Inline function 'kotlinx.serialization.serializer' call
@@ -55345,7 +55412,7 @@
55345
55412
  return tmp0.ep(tmp$ret$1, value);
55346
55413
  };
55347
55414
  protoOf(ParserHelperImpl).encodeGameToRoomTransition = function (transition) {
55348
- var tmp0 = this.e98_1;
55415
+ var tmp0 = this.d98_1;
55349
55416
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
55350
55417
  var value = mapToDto_95(transition);
55351
55418
  // Inline function 'kotlinx.serialization.serializer' call
@@ -55357,7 +55424,7 @@
55357
55424
  };
55358
55425
  protoOf(ParserHelperImpl).decodeGameToRoomTransition = function (json) {
55359
55426
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
55360
- var this_0 = this.e98_1;
55427
+ var this_0 = this.d98_1;
55361
55428
  // Inline function 'kotlinx.serialization.serializer' call
55362
55429
  var this_1 = this_0.ds();
55363
55430
  // Inline function 'kotlinx.serialization.internal.cast' call
@@ -55368,7 +55435,7 @@
55368
55435
  };
55369
55436
  protoOf(ParserHelperImpl).decodeTableStateWithActions = function (json) {
55370
55437
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
55371
- var this_0 = this.e98_1;
55438
+ var this_0 = this.d98_1;
55372
55439
  // Inline function 'kotlinx.serialization.serializer' call
55373
55440
  var this_1 = this_0.ds();
55374
55441
  // Inline function 'kotlinx.serialization.internal.cast' call
@@ -55378,7 +55445,7 @@
55378
55445
  return mapFromDto_97(tmp$ret$2);
55379
55446
  };
55380
55447
  protoOf(ParserHelperImpl).encodeTableStateWithActions = function (table) {
55381
- var tmp0 = this.e98_1;
55448
+ var tmp0 = this.d98_1;
55382
55449
  // Inline function 'kotlinx.serialization.json.Json.encodeToString' call
55383
55450
  var value = mapToDto_126(table);
55384
55451
  // Inline function 'kotlinx.serialization.serializer' call
@@ -55389,11 +55456,11 @@
55389
55456
  return tmp0.ep(tmp$ret$1, value);
55390
55457
  };
55391
55458
  protoOf(ParserHelperImpl).decodeTableLite = function (json) {
55392
- return mapFromDto_63(this.f98_1.j8e(json));
55459
+ return mapFromDto_63(this.e98_1.j8e(json));
55393
55460
  };
55394
55461
  protoOf(ParserHelperImpl).decodeFullGameHistoryToTableLite = function (json, round) {
55395
55462
  // Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
55396
- var this_0 = this.e98_1;
55463
+ var this_0 = this.d98_1;
55397
55464
  // Inline function 'kotlinx.serialization.serializer' call
55398
55465
  var this_1 = this_0.ds();
55399
55466
  // Inline function 'kotlinx.serialization.internal.cast' call
@@ -55406,16 +55473,16 @@
55406
55473
  function RatingHelper() {
55407
55474
  }
55408
55475
  function RatingHelperImpl(userRatingInteractor) {
55409
- this.g98_1 = userRatingInteractor;
55476
+ this.f98_1 = userRatingInteractor;
55410
55477
  }
55411
55478
  protoOf(RatingHelperImpl).isValidRatingForLeague = function (league, rating) {
55412
- return this.g98_1.n8l(league, rating);
55479
+ return this.f98_1.n8l(league, rating);
55413
55480
  };
55414
55481
  protoOf(RatingHelperImpl).mapRatingToLeague = function (rating) {
55415
- return this.g98_1.p8l(rating);
55482
+ return this.f98_1.p8l(rating);
55416
55483
  };
55417
55484
  protoOf(RatingHelperImpl).getLeaguesConfig = function () {
55418
- return this.g98_1.o8l();
55485
+ return this.f98_1.o8l();
55419
55486
  };
55420
55487
  function engineHelpersModule() {
55421
55488
  return Module_init_$Create$('Engine helpers Module', VOID, VOID, engineHelpersModule$lambda);
@@ -55520,14 +55587,14 @@
55520
55587
  return new GameResourcesImpl();
55521
55588
  }
55522
55589
  function _get_logger__rkp4sl_3($this) {
55523
- var tmp0 = $this.i98_1;
55590
+ var tmp0 = $this.h98_1;
55524
55591
  var tmp = KProperty1;
55525
55592
  // Inline function 'kotlin.getValue' call
55526
55593
  getPropertyCallableRef('logger', 1, tmp, EngineHelpersFactory$_get_logger_$ref_np7wt5(), null);
55527
55594
  return tmp0.w();
55528
55595
  }
55529
55596
  function _get_di__ndbzja($this) {
55530
- var tmp0 = $this.j98_1;
55597
+ var tmp0 = $this.i98_1;
55531
55598
  var tmp = KProperty1;
55532
55599
  // Inline function 'kotlin.getValue' call
55533
55600
  getPropertyCallableRef('di', 1, tmp, EngineHelpersFactory$_get_di_$ref_w4qz4i(), null);
@@ -55536,11 +55603,11 @@
55536
55603
  function EngineHelpersFactory$logger$delegate$lambda(this$0) {
55537
55604
  return function () {
55538
55605
  var tmp;
55539
- if (this$0.h98_1 == null) {
55606
+ if (this$0.g98_1 == null) {
55540
55607
  tmp = null;
55541
55608
  } else {
55542
55609
  // Inline function 'kotlin.let' call
55543
- tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.h98_1)]));
55610
+ tmp = new CombinedRaspberryLogger(mutableListOf([new LoggerCallbacksWrapperLoggerOutput(this$0.g98_1)]));
55544
55611
  }
55545
55612
  var tmp1_elvis_lhs = tmp;
55546
55613
  return tmp1_elvis_lhs == null ? new PlatformRaspberryLogger() : tmp1_elvis_lhs;
@@ -55630,11 +55697,11 @@
55630
55697
  }
55631
55698
  function EngineHelpersFactory(loggerCallback) {
55632
55699
  loggerCallback = loggerCallback === VOID ? null : loggerCallback;
55633
- this.h98_1 = loggerCallback;
55700
+ this.g98_1 = loggerCallback;
55634
55701
  var tmp = this;
55635
- tmp.i98_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
55702
+ tmp.h98_1 = lazy(EngineHelpersFactory$logger$delegate$lambda(this));
55636
55703
  var tmp_0 = this;
55637
- tmp_0.j98_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
55704
+ tmp_0.i98_1 = lazy(EngineHelpersFactory$di$delegate$lambda(this));
55638
55705
  var tmp_1 = this;
55639
55706
  // Inline function 'org.kodein.di.instance' call
55640
55707
  var this_0 = _get_di__ndbzja(this);
@@ -55643,7 +55710,7 @@
55643
55710
  var tmp$ret$0 = isInterface(tmp_2, TypeToken) ? tmp_2 : THROW_CCE();
55644
55711
  var tmp_3 = Instance(this_0, tmp$ret$0, null);
55645
55712
  var tmp_4 = KProperty1;
55646
- tmp_1.k98_1 = tmp_3.a63(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
55713
+ tmp_1.j98_1 = tmp_3.a63(this, getPropertyCallableRef('ratingHelper', 1, tmp_4, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks(), null));
55647
55714
  var tmp_5 = this;
55648
55715
  // Inline function 'org.kodein.di.instance' call
55649
55716
  var this_1 = _get_di__ndbzja(this);
@@ -55652,7 +55719,7 @@
55652
55719
  var tmp$ret$2 = isInterface(tmp_6, TypeToken) ? tmp_6 : THROW_CCE();
55653
55720
  var tmp_7 = Instance(this_1, tmp$ret$2, null);
55654
55721
  var tmp_8 = KProperty1;
55655
- tmp_5.l98_1 = tmp_7.a63(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
55722
+ tmp_5.k98_1 = tmp_7.a63(this, getPropertyCallableRef('parserHelper', 1, tmp_8, EngineHelpersFactory$_get_parserHelper_$ref_egvg46(), null));
55656
55723
  var tmp_9 = this;
55657
55724
  // Inline function 'org.kodein.di.instance' call
55658
55725
  var this_2 = _get_di__ndbzja(this);
@@ -55661,7 +55728,7 @@
55661
55728
  var tmp$ret$4 = isInterface(tmp_10, TypeToken) ? tmp_10 : THROW_CCE();
55662
55729
  var tmp_11 = Instance(this_2, tmp$ret$4, null);
55663
55730
  var tmp_12 = KProperty1;
55664
- tmp_9.m98_1 = tmp_11.a63(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
55731
+ tmp_9.l98_1 = tmp_11.a63(this, getPropertyCallableRef('gameHelper', 1, tmp_12, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93(), null));
55665
55732
  var tmp_13 = this;
55666
55733
  // Inline function 'org.kodein.di.instance' call
55667
55734
  var this_3 = _get_di__ndbzja(this);
@@ -55670,31 +55737,31 @@
55670
55737
  var tmp$ret$6 = isInterface(tmp_14, TypeToken) ? tmp_14 : THROW_CCE();
55671
55738
  var tmp_15 = Instance(this_3, tmp$ret$6, null);
55672
55739
  var tmp_16 = KProperty1;
55673
- tmp_13.n98_1 = tmp_15.a63(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
55740
+ tmp_13.m98_1 = tmp_15.a63(this, getPropertyCallableRef('gameResources', 1, tmp_16, EngineHelpersFactory$_get_gameResources_$ref_kynd2o(), null));
55674
55741
  }
55675
- protoOf(EngineHelpersFactory).o98 = function () {
55676
- var tmp0 = this.k98_1;
55742
+ protoOf(EngineHelpersFactory).n98 = function () {
55743
+ var tmp0 = this.j98_1;
55677
55744
  var tmp = KProperty1;
55678
55745
  // Inline function 'kotlin.getValue' call
55679
55746
  getPropertyCallableRef('ratingHelper', 1, tmp, EngineHelpersFactory$_get_ratingHelper_$ref_pl08ks_0(), null);
55680
55747
  return tmp0.w();
55681
55748
  };
55682
- protoOf(EngineHelpersFactory).p98 = function () {
55683
- var tmp0 = this.l98_1;
55749
+ protoOf(EngineHelpersFactory).o98 = function () {
55750
+ var tmp0 = this.k98_1;
55684
55751
  var tmp = KProperty1;
55685
55752
  // Inline function 'kotlin.getValue' call
55686
55753
  getPropertyCallableRef('parserHelper', 1, tmp, EngineHelpersFactory$_get_parserHelper_$ref_egvg46_0(), null);
55687
55754
  return tmp0.w();
55688
55755
  };
55689
- protoOf(EngineHelpersFactory).q98 = function () {
55690
- var tmp0 = this.m98_1;
55756
+ protoOf(EngineHelpersFactory).p98 = function () {
55757
+ var tmp0 = this.l98_1;
55691
55758
  var tmp = KProperty1;
55692
55759
  // Inline function 'kotlin.getValue' call
55693
55760
  getPropertyCallableRef('gameHelper', 1, tmp, EngineHelpersFactory$_get_gameHelper_$ref_7u8j93_0(), null);
55694
55761
  return tmp0.w();
55695
55762
  };
55696
- protoOf(EngineHelpersFactory).r98 = function () {
55697
- var tmp0 = this.n98_1;
55763
+ protoOf(EngineHelpersFactory).q98 = function () {
55764
+ var tmp0 = this.m98_1;
55698
55765
  var tmp = KProperty1;
55699
55766
  // Inline function 'kotlin.getValue' call
55700
55767
  getPropertyCallableRef('gameResources', 1, tmp, EngineHelpersFactory$_get_gameResources_$ref_kynd2o_0(), null);
@@ -56346,7 +56413,7 @@
56346
56413
  protoOf(CallbackWrapperLoggerOutput).i = i;
56347
56414
  protoOf(CallbackWrapperLoggerOutput).v = v;
56348
56415
  protoOf(CallbackWrapperLoggerOutput).w = w;
56349
- protoOf(FileLoggerOutputImpl).y8z = observe$default;
56416
+ protoOf(FileLoggerOutputImpl).x8z = observe$default;
56350
56417
  protoOf(FileLoggerOutputImpl).d = d;
56351
56418
  protoOf(FileLoggerOutputImpl).e = e;
56352
56419
  protoOf(FileLoggerOutputImpl).i = i;
@@ -56366,10 +56433,10 @@
56366
56433
  protoOf(LoggerCallbacksWrapperLoggerOutput).i = i;
56367
56434
  protoOf(LoggerCallbacksWrapperLoggerOutput).v = v;
56368
56435
  protoOf(LoggerCallbacksWrapperLoggerOutput).w = w;
56369
- defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).o98);
56370
- defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).p98);
56371
- defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).q98);
56372
- defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).r98);
56436
+ defineProp(protoOf(EngineHelpersFactory), 'ratingHelper', protoOf(EngineHelpersFactory).n98);
56437
+ defineProp(protoOf(EngineHelpersFactory), 'parserHelper', protoOf(EngineHelpersFactory).o98);
56438
+ defineProp(protoOf(EngineHelpersFactory), 'gameHelper', protoOf(EngineHelpersFactory).p98);
56439
+ defineProp(protoOf(EngineHelpersFactory), 'gameResources', protoOf(EngineHelpersFactory).q98);
56373
56440
  //endregion
56374
56441
  //region block: init
56375
56442
  Companion_instance_5 = new Companion_0();