raspberry_games_server_game_logic 1.8.291 → 1.8.293
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +71 -71
- package/Kosi-Kodein-kodein-di.js +629 -629
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1444 -1444
- package/Logic_Debertz-core.js +1871 -1895
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +15790 -15741
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +11 -6
- package/Logic_Debertz-game_server.js +1406 -1406
- package/kotlin-kotlin-stdlib.js +2291 -2110
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-coroutines-core.js +2885 -2879
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +354 -354
- package/kotlinx-serialization-kotlinx-serialization-core.js +1882 -1882
- package/kotlinx-serialization-kotlinx-serialization-json.js +1517 -1517
- package/ktor-ktor-client-content-negotiation.js +213 -213
- package/ktor-ktor-client-core.js +2494 -2494
- package/ktor-ktor-client-logging.js +547 -547
- package/ktor-ktor-events.js +11 -11
- package/ktor-ktor-http.js +721 -721
- package/ktor-ktor-io.js +1624 -1624
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +261 -261
- package/ktor-ktor-serialization.js +129 -129
- package/ktor-ktor-utils.js +699 -699
- package/ktor-ktor-websockets.js +57 -57
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +257 -243
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +97 -97
- package/raspberry-cardgame-lib-random.js +1056 -964
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +17 -17
- package/uuid.js +23 -23
|
@@ -53,49 +53,49 @@
|
|
|
53
53
|
//region block: imports
|
|
54
54
|
var imul = Math.imul;
|
|
55
55
|
var clz32 = Math.clz32;
|
|
56
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
57
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
58
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
56
|
+
var protoOf = kotlin_kotlin.$_$.vc;
|
|
57
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.vb;
|
|
58
|
+
var RuntimeException = kotlin_kotlin.$_$.rg;
|
|
59
59
|
var VOID = kotlin_kotlin.$_$.f;
|
|
60
60
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.i2;
|
|
61
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
62
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
63
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
64
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
65
|
-
var toString = kotlin_kotlin.$_$.
|
|
66
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
67
|
-
var equals = kotlin_kotlin.$_$.
|
|
61
|
+
var captureStack = kotlin_kotlin.$_$.eb;
|
|
62
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ub;
|
|
63
|
+
var getStringHashCode = kotlin_kotlin.$_$.sb;
|
|
64
|
+
var THROW_CCE = kotlin_kotlin.$_$.sg;
|
|
65
|
+
var toString = kotlin_kotlin.$_$.zc;
|
|
66
|
+
var hashCode = kotlin_kotlin.$_$.tb;
|
|
67
|
+
var equals = kotlin_kotlin.$_$.mb;
|
|
68
68
|
var listOf = kotlin_kotlin.$_$.p8;
|
|
69
69
|
var plus = kotlin_kotlin.$_$.a9;
|
|
70
70
|
var emptyList = kotlin_kotlin.$_$.n7;
|
|
71
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
72
|
-
var toLong = kotlin_kotlin.$_$.
|
|
71
|
+
var defineProp = kotlin_kotlin.$_$.lb;
|
|
72
|
+
var toLong = kotlin_kotlin.$_$.xc;
|
|
73
73
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
74
74
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
|
|
75
75
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
76
76
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x;
|
|
77
77
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
|
|
78
78
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
79
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
79
|
+
var initMetadataForObject = kotlin_kotlin.$_$.zb;
|
|
80
80
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g2;
|
|
81
81
|
var Unit_instance = kotlin_kotlin.$_$.p5;
|
|
82
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
83
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
82
|
+
var objectCreate = kotlin_kotlin.$_$.uc;
|
|
83
|
+
var toString_0 = kotlin_kotlin.$_$.wh;
|
|
84
84
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.r;
|
|
85
85
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
86
86
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u1;
|
|
87
87
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
88
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
89
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
88
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.pb;
|
|
89
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.xb;
|
|
90
90
|
var getValue = kotlin_kotlin.$_$.a8;
|
|
91
91
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
92
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
92
|
+
var CoroutineImpl = kotlin_kotlin.$_$.wa;
|
|
93
93
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
94
94
|
var url = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
95
95
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
96
96
|
var JsType_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
97
97
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
98
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
98
|
+
var arrayOf = kotlin_kotlin.$_$.gh;
|
|
99
99
|
var createKType = kotlin_kotlin.$_$.b;
|
|
100
100
|
var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
|
|
101
101
|
var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
@@ -103,35 +103,35 @@
|
|
|
103
103
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
104
104
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
|
|
105
105
|
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
106
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
106
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ha;
|
|
107
107
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
108
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
108
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.wb;
|
|
109
109
|
var KtMap = kotlin_kotlin.$_$.a6;
|
|
110
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
110
|
+
var isInterface = kotlin_kotlin.$_$.ic;
|
|
111
111
|
var Companion_getInstance_0 = kotlin_kotlin.$_$.g5;
|
|
112
|
-
var Long = kotlin_kotlin.$_$.
|
|
112
|
+
var Long = kotlin_kotlin.$_$.ng;
|
|
113
113
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
114
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
114
|
+
var toDuration = kotlin_kotlin.$_$.zf;
|
|
115
115
|
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.v2;
|
|
116
116
|
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.o2;
|
|
117
117
|
var emptyMap = kotlin_kotlin.$_$.o7;
|
|
118
|
-
var toMutableMap = kotlin_kotlin.$_$.
|
|
119
|
-
var toMap = kotlin_kotlin.$_$.
|
|
118
|
+
var toMutableMap = kotlin_kotlin.$_$.y9;
|
|
119
|
+
var toMap = kotlin_kotlin.$_$.v9;
|
|
120
120
|
var get_lastIndex = kotlin_kotlin.$_$.i8;
|
|
121
|
-
var to = kotlin_kotlin.$_$.
|
|
121
|
+
var to = kotlin_kotlin.$_$.xh;
|
|
122
122
|
var mapOf = kotlin_kotlin.$_$.s8;
|
|
123
|
-
var Result = kotlin_kotlin.$_$.
|
|
123
|
+
var Result = kotlin_kotlin.$_$.qg;
|
|
124
124
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
125
125
|
var Companion_instance = kotlin_kotlin.$_$.k5;
|
|
126
126
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.f3;
|
|
127
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
127
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.yb;
|
|
128
128
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
129
129
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
130
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
130
|
+
var createFailure = kotlin_kotlin.$_$.ih;
|
|
131
131
|
var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
132
132
|
var withTimeout = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
133
133
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
134
|
-
var toDuration_0 = kotlin_kotlin.$_$.
|
|
134
|
+
var toDuration_0 = kotlin_kotlin.$_$.ag;
|
|
135
135
|
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.n2;
|
|
136
136
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
137
137
|
var firstOrNull = kotlin_kotlin.$_$.s7;
|
|
@@ -150,6 +150,11 @@
|
|
|
150
150
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
151
151
|
var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
|
|
152
152
|
var Default_getInstance = kotlin_kotlin.$_$.d5;
|
|
153
|
+
var toMutableList = kotlin_kotlin.$_$.x9;
|
|
154
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.n;
|
|
155
|
+
var take = kotlin_kotlin.$_$.p9;
|
|
156
|
+
var drop = kotlin_kotlin.$_$.m7;
|
|
157
|
+
var reverse = kotlin_kotlin.$_$.f9;
|
|
153
158
|
var Plugin_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
154
159
|
var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
155
160
|
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
@@ -201,7 +206,7 @@
|
|
|
201
206
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
202
207
|
signed = signed === VOID ? false : signed;
|
|
203
208
|
timeoutMillis = timeoutMillis === VOID ? new Long(7000, 0) : timeoutMillis;
|
|
204
|
-
return $super === VOID ? this.
|
|
209
|
+
return $super === VOID ? this.g5r(minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) : $super.g5r.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion);
|
|
205
210
|
}
|
|
206
211
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7]);
|
|
207
212
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
@@ -215,14 +220,18 @@
|
|
|
215
220
|
initMetadataForClass(ApiCommonConfigs$setupLogging$1$1);
|
|
216
221
|
initMetadataForObject(ApiCommonConfigs, 'ApiCommonConfigs');
|
|
217
222
|
initMetadataForClass(HttpParams, 'HttpParams');
|
|
223
|
+
function nextInt$default(from, until, $super) {
|
|
224
|
+
from = from === VOID ? 0 : from;
|
|
225
|
+
return $super === VOID ? this.qg(from, until) : $super.qg.call(this, from, until);
|
|
226
|
+
}
|
|
218
227
|
function shuffle(list) {
|
|
219
228
|
var inductionVariable = get_lastIndex(list);
|
|
220
229
|
if (1 <= inductionVariable)
|
|
221
230
|
do {
|
|
222
231
|
var i = inductionVariable;
|
|
223
232
|
inductionVariable = inductionVariable + -1 | 0;
|
|
224
|
-
var j = this.
|
|
225
|
-
list.
|
|
233
|
+
var j = this.qg(0, i + 1 | 0);
|
|
234
|
+
list.c2(j, list.c2(i, list.o(j)));
|
|
226
235
|
}
|
|
227
236
|
while (1 <= inductionVariable);
|
|
228
237
|
return list;
|
|
@@ -232,7 +241,7 @@
|
|
|
232
241
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
233
242
|
//endregion
|
|
234
243
|
function Companion() {
|
|
235
|
-
this.
|
|
244
|
+
this.k5m_1 = 100001;
|
|
236
245
|
}
|
|
237
246
|
var Companion_instance_1;
|
|
238
247
|
function Companion_getInstance_2() {
|
|
@@ -243,31 +252,31 @@
|
|
|
243
252
|
cause = cause === VOID ? null : cause;
|
|
244
253
|
RuntimeException_init_$Init$(message, cause, this);
|
|
245
254
|
captureStack(this, RandomException);
|
|
246
|
-
this.
|
|
255
|
+
this.l5m_1 = code;
|
|
247
256
|
}
|
|
248
257
|
function CardDecksRequestUserData(id, count) {
|
|
249
258
|
this.id = id;
|
|
250
259
|
this.count = count;
|
|
251
260
|
}
|
|
252
|
-
protoOf(CardDecksRequestUserData).
|
|
261
|
+
protoOf(CardDecksRequestUserData).f5l = function () {
|
|
253
262
|
return this.id;
|
|
254
263
|
};
|
|
255
|
-
protoOf(CardDecksRequestUserData).
|
|
264
|
+
protoOf(CardDecksRequestUserData).m5m = function () {
|
|
256
265
|
return this.count;
|
|
257
266
|
};
|
|
258
|
-
protoOf(CardDecksRequestUserData).
|
|
267
|
+
protoOf(CardDecksRequestUserData).qe = function () {
|
|
259
268
|
return this.id;
|
|
260
269
|
};
|
|
261
|
-
protoOf(CardDecksRequestUserData).
|
|
270
|
+
protoOf(CardDecksRequestUserData).re = function () {
|
|
262
271
|
return this.count;
|
|
263
272
|
};
|
|
264
|
-
protoOf(CardDecksRequestUserData).
|
|
273
|
+
protoOf(CardDecksRequestUserData).n5m = function (id, count) {
|
|
265
274
|
return new CardDecksRequestUserData(id, count);
|
|
266
275
|
};
|
|
267
276
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
268
277
|
id = id === VOID ? this.id : id;
|
|
269
278
|
count = count === VOID ? this.count : count;
|
|
270
|
-
return this.
|
|
279
|
+
return this.n5m(id, count);
|
|
271
280
|
};
|
|
272
281
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
273
282
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -293,25 +302,25 @@
|
|
|
293
302
|
this.players = players;
|
|
294
303
|
this.gameId = gameId;
|
|
295
304
|
}
|
|
296
|
-
protoOf(CardDeckRequestUserData).
|
|
305
|
+
protoOf(CardDeckRequestUserData).o5m = function () {
|
|
297
306
|
return this.players;
|
|
298
307
|
};
|
|
299
|
-
protoOf(CardDeckRequestUserData).
|
|
308
|
+
protoOf(CardDeckRequestUserData).p5m = function () {
|
|
300
309
|
return this.gameId;
|
|
301
310
|
};
|
|
302
|
-
protoOf(CardDeckRequestUserData).
|
|
311
|
+
protoOf(CardDeckRequestUserData).qe = function () {
|
|
303
312
|
return this.players;
|
|
304
313
|
};
|
|
305
|
-
protoOf(CardDeckRequestUserData).
|
|
314
|
+
protoOf(CardDeckRequestUserData).re = function () {
|
|
306
315
|
return this.gameId;
|
|
307
316
|
};
|
|
308
|
-
protoOf(CardDeckRequestUserData).
|
|
317
|
+
protoOf(CardDeckRequestUserData).q5m = function (players, gameId) {
|
|
309
318
|
return new CardDeckRequestUserData(players, gameId);
|
|
310
319
|
};
|
|
311
320
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
312
321
|
players = players === VOID ? this.players : players;
|
|
313
322
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
314
|
-
return this.
|
|
323
|
+
return this.q5m(players, gameId);
|
|
315
324
|
};
|
|
316
325
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
317
326
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -337,25 +346,25 @@
|
|
|
337
346
|
this.id = id;
|
|
338
347
|
this.name = name;
|
|
339
348
|
}
|
|
340
|
-
protoOf(UserInfoData).
|
|
349
|
+
protoOf(UserInfoData).f5l = function () {
|
|
341
350
|
return this.id;
|
|
342
351
|
};
|
|
343
|
-
protoOf(UserInfoData).
|
|
352
|
+
protoOf(UserInfoData).p2 = function () {
|
|
344
353
|
return this.name;
|
|
345
354
|
};
|
|
346
|
-
protoOf(UserInfoData).
|
|
355
|
+
protoOf(UserInfoData).qe = function () {
|
|
347
356
|
return this.id;
|
|
348
357
|
};
|
|
349
|
-
protoOf(UserInfoData).
|
|
358
|
+
protoOf(UserInfoData).re = function () {
|
|
350
359
|
return this.name;
|
|
351
360
|
};
|
|
352
|
-
protoOf(UserInfoData).
|
|
361
|
+
protoOf(UserInfoData).r5m = function (id, name) {
|
|
353
362
|
return new UserInfoData(id, name);
|
|
354
363
|
};
|
|
355
364
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
356
365
|
id = id === VOID ? this.id : id;
|
|
357
366
|
name = name === VOID ? this.name : name;
|
|
358
|
-
return this.
|
|
367
|
+
return this.r5m(id, name);
|
|
359
368
|
};
|
|
360
369
|
protoOf(UserInfoData).toString = function () {
|
|
361
370
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -378,19 +387,19 @@
|
|
|
378
387
|
return true;
|
|
379
388
|
};
|
|
380
389
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
390
|
+
this.s5m_1 = cardDecks;
|
|
391
|
+
this.t5m_1 = responseText;
|
|
392
|
+
this.u5m_1 = id;
|
|
393
|
+
this.v5m_1 = signature;
|
|
385
394
|
}
|
|
386
395
|
protoOf(CardDeckResult).toString = function () {
|
|
387
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
396
|
+
return 'CardDeckResult(cardDecks=' + toString(this.s5m_1) + ', responseText=' + this.t5m_1 + ', id=' + this.u5m_1 + ', signature=' + this.v5m_1 + ')';
|
|
388
397
|
};
|
|
389
398
|
protoOf(CardDeckResult).hashCode = function () {
|
|
390
|
-
var result = hashCode(this.
|
|
391
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
392
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
393
|
-
result = imul(result, 31) + (this.
|
|
399
|
+
var result = hashCode(this.s5m_1);
|
|
400
|
+
result = imul(result, 31) + getStringHashCode(this.t5m_1) | 0;
|
|
401
|
+
result = imul(result, 31) + getStringHashCode(this.u5m_1) | 0;
|
|
402
|
+
result = imul(result, 31) + (this.v5m_1 == null ? 0 : getStringHashCode(this.v5m_1)) | 0;
|
|
394
403
|
return result;
|
|
395
404
|
};
|
|
396
405
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -399,13 +408,13 @@
|
|
|
399
408
|
if (!(other instanceof CardDeckResult))
|
|
400
409
|
return false;
|
|
401
410
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
402
|
-
if (!equals(this.
|
|
411
|
+
if (!equals(this.s5m_1, tmp0_other_with_cast.s5m_1))
|
|
403
412
|
return false;
|
|
404
|
-
if (!(this.
|
|
413
|
+
if (!(this.t5m_1 === tmp0_other_with_cast.t5m_1))
|
|
405
414
|
return false;
|
|
406
|
-
if (!(this.
|
|
415
|
+
if (!(this.u5m_1 === tmp0_other_with_cast.u5m_1))
|
|
407
416
|
return false;
|
|
408
|
-
if (!(this.
|
|
417
|
+
if (!(this.v5m_1 == tmp0_other_with_cast.v5m_1))
|
|
409
418
|
return false;
|
|
410
419
|
return true;
|
|
411
420
|
};
|
|
@@ -428,31 +437,31 @@
|
|
|
428
437
|
this.userData = userData;
|
|
429
438
|
this.rounds = rounds;
|
|
430
439
|
}
|
|
431
|
-
protoOf(GameCardDecksRecord).
|
|
440
|
+
protoOf(GameCardDecksRecord).w5m = function () {
|
|
432
441
|
return this.poolId;
|
|
433
442
|
};
|
|
434
|
-
protoOf(GameCardDecksRecord).
|
|
443
|
+
protoOf(GameCardDecksRecord).x5m = function () {
|
|
435
444
|
return this.signature;
|
|
436
445
|
};
|
|
437
|
-
protoOf(GameCardDecksRecord).
|
|
446
|
+
protoOf(GameCardDecksRecord).y5m = function () {
|
|
438
447
|
return this.userData;
|
|
439
448
|
};
|
|
440
|
-
protoOf(GameCardDecksRecord).
|
|
449
|
+
protoOf(GameCardDecksRecord).z5m = function () {
|
|
441
450
|
return this.rounds;
|
|
442
451
|
};
|
|
443
|
-
protoOf(GameCardDecksRecord).
|
|
452
|
+
protoOf(GameCardDecksRecord).qe = function () {
|
|
444
453
|
return this.poolId;
|
|
445
454
|
};
|
|
446
|
-
protoOf(GameCardDecksRecord).
|
|
455
|
+
protoOf(GameCardDecksRecord).re = function () {
|
|
447
456
|
return this.signature;
|
|
448
457
|
};
|
|
449
|
-
protoOf(GameCardDecksRecord).
|
|
458
|
+
protoOf(GameCardDecksRecord).ik = function () {
|
|
450
459
|
return this.userData;
|
|
451
460
|
};
|
|
452
|
-
protoOf(GameCardDecksRecord).
|
|
461
|
+
protoOf(GameCardDecksRecord).a5n = function () {
|
|
453
462
|
return this.rounds;
|
|
454
463
|
};
|
|
455
|
-
protoOf(GameCardDecksRecord).
|
|
464
|
+
protoOf(GameCardDecksRecord).b5n = function (poolId, signature, userData, rounds) {
|
|
456
465
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
457
466
|
};
|
|
458
467
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -460,7 +469,7 @@
|
|
|
460
469
|
signature = signature === VOID ? this.signature : signature;
|
|
461
470
|
userData = userData === VOID ? this.userData : userData;
|
|
462
471
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
463
|
-
return this.
|
|
472
|
+
return this.b5n(poolId, signature, userData, rounds);
|
|
464
473
|
};
|
|
465
474
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
466
475
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -492,25 +501,25 @@
|
|
|
492
501
|
this.cardDeckIndex = cardDeckIndex;
|
|
493
502
|
this.cards = cards;
|
|
494
503
|
}
|
|
495
|
-
protoOf(GameCardDeckData).
|
|
504
|
+
protoOf(GameCardDeckData).c5n = function () {
|
|
496
505
|
return this.cardDeckIndex;
|
|
497
506
|
};
|
|
498
|
-
protoOf(GameCardDeckData).
|
|
507
|
+
protoOf(GameCardDeckData).d5n = function () {
|
|
499
508
|
return this.cards;
|
|
500
509
|
};
|
|
501
|
-
protoOf(GameCardDeckData).
|
|
510
|
+
protoOf(GameCardDeckData).qe = function () {
|
|
502
511
|
return this.cardDeckIndex;
|
|
503
512
|
};
|
|
504
|
-
protoOf(GameCardDeckData).
|
|
513
|
+
protoOf(GameCardDeckData).re = function () {
|
|
505
514
|
return this.cards;
|
|
506
515
|
};
|
|
507
|
-
protoOf(GameCardDeckData).
|
|
516
|
+
protoOf(GameCardDeckData).e5n = function (cardDeckIndex, cards) {
|
|
508
517
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
509
518
|
};
|
|
510
519
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
511
520
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
512
521
|
cards = cards === VOID ? this.cards : cards;
|
|
513
|
-
return this.
|
|
522
|
+
return this.e5n(cardDeckIndex, cards);
|
|
514
523
|
};
|
|
515
524
|
protoOf(GameCardDeckData).toString = function () {
|
|
516
525
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -537,25 +546,25 @@
|
|
|
537
546
|
this.baseUrl = baseUrl;
|
|
538
547
|
this.timeoutMillis = timeoutMillis;
|
|
539
548
|
}
|
|
540
|
-
protoOf(HttpConfig).
|
|
549
|
+
protoOf(HttpConfig).f5n = function () {
|
|
541
550
|
return this.baseUrl;
|
|
542
551
|
};
|
|
543
|
-
protoOf(HttpConfig).
|
|
552
|
+
protoOf(HttpConfig).g5n = function () {
|
|
544
553
|
return this.timeoutMillis;
|
|
545
554
|
};
|
|
546
|
-
protoOf(HttpConfig).
|
|
555
|
+
protoOf(HttpConfig).qe = function () {
|
|
547
556
|
return this.baseUrl;
|
|
548
557
|
};
|
|
549
|
-
protoOf(HttpConfig).
|
|
558
|
+
protoOf(HttpConfig).re = function () {
|
|
550
559
|
return this.timeoutMillis;
|
|
551
560
|
};
|
|
552
|
-
protoOf(HttpConfig).
|
|
561
|
+
protoOf(HttpConfig).n5m = function (baseUrl, timeoutMillis) {
|
|
553
562
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
554
563
|
};
|
|
555
564
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
556
565
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
557
566
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
558
|
-
return this.
|
|
567
|
+
return this.n5m(baseUrl, timeoutMillis);
|
|
559
568
|
};
|
|
560
569
|
protoOf(HttpConfig).toString = function () {
|
|
561
570
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -590,31 +599,31 @@
|
|
|
590
599
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
591
600
|
this.httpConfig = httpConfig;
|
|
592
601
|
}
|
|
593
|
-
protoOf(RandomOrgConfig).
|
|
602
|
+
protoOf(RandomOrgConfig).h5n = function () {
|
|
594
603
|
return this.apiKey;
|
|
595
604
|
};
|
|
596
|
-
protoOf(RandomOrgConfig).
|
|
605
|
+
protoOf(RandomOrgConfig).i5n = function () {
|
|
597
606
|
return this.poolSize;
|
|
598
607
|
};
|
|
599
|
-
protoOf(RandomOrgConfig).
|
|
608
|
+
protoOf(RandomOrgConfig).j5n = function () {
|
|
600
609
|
return this.thresholdForUsedPool;
|
|
601
610
|
};
|
|
602
|
-
protoOf(RandomOrgConfig).
|
|
611
|
+
protoOf(RandomOrgConfig).k5n = function () {
|
|
603
612
|
return this.httpConfig;
|
|
604
613
|
};
|
|
605
|
-
protoOf(RandomOrgConfig).
|
|
614
|
+
protoOf(RandomOrgConfig).qe = function () {
|
|
606
615
|
return this.apiKey;
|
|
607
616
|
};
|
|
608
|
-
protoOf(RandomOrgConfig).
|
|
617
|
+
protoOf(RandomOrgConfig).re = function () {
|
|
609
618
|
return this.poolSize;
|
|
610
619
|
};
|
|
611
|
-
protoOf(RandomOrgConfig).
|
|
620
|
+
protoOf(RandomOrgConfig).ik = function () {
|
|
612
621
|
return this.thresholdForUsedPool;
|
|
613
622
|
};
|
|
614
|
-
protoOf(RandomOrgConfig).
|
|
623
|
+
protoOf(RandomOrgConfig).a5n = function () {
|
|
615
624
|
return this.httpConfig;
|
|
616
625
|
};
|
|
617
|
-
protoOf(RandomOrgConfig).
|
|
626
|
+
protoOf(RandomOrgConfig).l5n = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
618
627
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
619
628
|
};
|
|
620
629
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -622,7 +631,7 @@
|
|
|
622
631
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
623
632
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
624
633
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
625
|
-
return this.
|
|
634
|
+
return this.l5n(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
626
635
|
};
|
|
627
636
|
protoOf(RandomOrgConfig).toString = function () {
|
|
628
637
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -659,59 +668,59 @@
|
|
|
659
668
|
function $serializer() {
|
|
660
669
|
$serializer_instance = this;
|
|
661
670
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
662
|
-
tmp0_serialDesc.
|
|
663
|
-
tmp0_serialDesc.
|
|
664
|
-
this.
|
|
665
|
-
}
|
|
666
|
-
protoOf($serializer).
|
|
667
|
-
var tmp0_desc = this.
|
|
668
|
-
var tmp1_output = encoder.
|
|
669
|
-
tmp1_output.
|
|
670
|
-
tmp1_output.
|
|
671
|
-
tmp1_output.
|
|
672
|
-
};
|
|
673
|
-
protoOf($serializer).
|
|
674
|
-
return this.
|
|
675
|
-
};
|
|
676
|
-
protoOf($serializer).
|
|
677
|
-
var tmp0_desc = this.
|
|
671
|
+
tmp0_serialDesc.x4f('jsonrpc', false);
|
|
672
|
+
tmp0_serialDesc.x4f('error', false);
|
|
673
|
+
this.m5n_1 = tmp0_serialDesc;
|
|
674
|
+
}
|
|
675
|
+
protoOf($serializer).n5n = function (encoder, value) {
|
|
676
|
+
var tmp0_desc = this.m5n_1;
|
|
677
|
+
var tmp1_output = encoder.j48(tmp0_desc);
|
|
678
|
+
tmp1_output.x49(tmp0_desc, 0, value.o5n_1);
|
|
679
|
+
tmp1_output.b4a(tmp0_desc, 1, $serializer_getInstance_0(), value.p5n_1);
|
|
680
|
+
tmp1_output.k48(tmp0_desc);
|
|
681
|
+
};
|
|
682
|
+
protoOf($serializer).w44 = function (encoder, value) {
|
|
683
|
+
return this.n5n(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
684
|
+
};
|
|
685
|
+
protoOf($serializer).x44 = function (decoder) {
|
|
686
|
+
var tmp0_desc = this.m5n_1;
|
|
678
687
|
var tmp1_flag = true;
|
|
679
688
|
var tmp2_index = 0;
|
|
680
689
|
var tmp3_bitMask0 = 0;
|
|
681
690
|
var tmp4_local0 = null;
|
|
682
691
|
var tmp5_local1 = null;
|
|
683
|
-
var tmp6_input = decoder.
|
|
684
|
-
if (tmp6_input.
|
|
685
|
-
tmp4_local0 = tmp6_input.
|
|
692
|
+
var tmp6_input = decoder.j48(tmp0_desc);
|
|
693
|
+
if (tmp6_input.y48()) {
|
|
694
|
+
tmp4_local0 = tmp6_input.t48(tmp0_desc, 0);
|
|
686
695
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
687
|
-
tmp5_local1 = tmp6_input.
|
|
696
|
+
tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
688
697
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
689
698
|
} else
|
|
690
699
|
while (tmp1_flag) {
|
|
691
|
-
tmp2_index = tmp6_input.
|
|
700
|
+
tmp2_index = tmp6_input.z48(tmp0_desc);
|
|
692
701
|
switch (tmp2_index) {
|
|
693
702
|
case -1:
|
|
694
703
|
tmp1_flag = false;
|
|
695
704
|
break;
|
|
696
705
|
case 0:
|
|
697
|
-
tmp4_local0 = tmp6_input.
|
|
706
|
+
tmp4_local0 = tmp6_input.t48(tmp0_desc, 0);
|
|
698
707
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
699
708
|
break;
|
|
700
709
|
case 1:
|
|
701
|
-
tmp5_local1 = tmp6_input.
|
|
710
|
+
tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
702
711
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
703
712
|
break;
|
|
704
713
|
default:
|
|
705
714
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
706
715
|
}
|
|
707
716
|
}
|
|
708
|
-
tmp6_input.
|
|
717
|
+
tmp6_input.k48(tmp0_desc);
|
|
709
718
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
710
719
|
};
|
|
711
|
-
protoOf($serializer).
|
|
712
|
-
return this.
|
|
720
|
+
protoOf($serializer).v44 = function () {
|
|
721
|
+
return this.m5n_1;
|
|
713
722
|
};
|
|
714
|
-
protoOf($serializer).
|
|
723
|
+
protoOf($serializer).m4g = function () {
|
|
715
724
|
// Inline function 'kotlin.arrayOf' call
|
|
716
725
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
717
726
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -725,25 +734,25 @@
|
|
|
725
734
|
}
|
|
726
735
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
727
736
|
if (!(3 === (3 & seen0))) {
|
|
728
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
737
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().m5n_1);
|
|
729
738
|
}
|
|
730
|
-
$this.
|
|
731
|
-
$this.
|
|
739
|
+
$this.o5n_1 = jsonrpc;
|
|
740
|
+
$this.p5n_1 = error;
|
|
732
741
|
return $this;
|
|
733
742
|
}
|
|
734
743
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
735
744
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
736
745
|
}
|
|
737
746
|
function ErrorResponseDto(jsonrpc, error) {
|
|
738
|
-
this.
|
|
739
|
-
this.
|
|
747
|
+
this.o5n_1 = jsonrpc;
|
|
748
|
+
this.p5n_1 = error;
|
|
740
749
|
}
|
|
741
750
|
protoOf(ErrorResponseDto).toString = function () {
|
|
742
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
751
|
+
return 'ErrorResponseDto(jsonrpc=' + this.o5n_1 + ', error=' + toString_0(this.p5n_1) + ')';
|
|
743
752
|
};
|
|
744
753
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
745
|
-
var result = getStringHashCode(this.
|
|
746
|
-
result = imul(result, 31) + (this.
|
|
754
|
+
var result = getStringHashCode(this.o5n_1);
|
|
755
|
+
result = imul(result, 31) + (this.p5n_1 == null ? 0 : this.p5n_1.hashCode()) | 0;
|
|
747
756
|
return result;
|
|
748
757
|
};
|
|
749
758
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -752,68 +761,68 @@
|
|
|
752
761
|
if (!(other instanceof ErrorResponseDto))
|
|
753
762
|
return false;
|
|
754
763
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
755
|
-
if (!(this.
|
|
764
|
+
if (!(this.o5n_1 === tmp0_other_with_cast.o5n_1))
|
|
756
765
|
return false;
|
|
757
|
-
if (!equals(this.
|
|
766
|
+
if (!equals(this.p5n_1, tmp0_other_with_cast.p5n_1))
|
|
758
767
|
return false;
|
|
759
768
|
return true;
|
|
760
769
|
};
|
|
761
770
|
function $serializer_0() {
|
|
762
771
|
$serializer_instance_0 = this;
|
|
763
772
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
764
|
-
tmp0_serialDesc.
|
|
765
|
-
tmp0_serialDesc.
|
|
766
|
-
this.
|
|
767
|
-
}
|
|
768
|
-
protoOf($serializer_0).
|
|
769
|
-
var tmp0_desc = this.
|
|
770
|
-
var tmp1_output = encoder.
|
|
771
|
-
tmp1_output.
|
|
772
|
-
tmp1_output.
|
|
773
|
-
tmp1_output.
|
|
774
|
-
};
|
|
775
|
-
protoOf($serializer_0).
|
|
776
|
-
return this.
|
|
777
|
-
};
|
|
778
|
-
protoOf($serializer_0).
|
|
779
|
-
var tmp0_desc = this.
|
|
773
|
+
tmp0_serialDesc.x4f('code', false);
|
|
774
|
+
tmp0_serialDesc.x4f('message', false);
|
|
775
|
+
this.q5n_1 = tmp0_serialDesc;
|
|
776
|
+
}
|
|
777
|
+
protoOf($serializer_0).r5n = function (encoder, value) {
|
|
778
|
+
var tmp0_desc = this.q5n_1;
|
|
779
|
+
var tmp1_output = encoder.j48(tmp0_desc);
|
|
780
|
+
tmp1_output.b4a(tmp0_desc, 0, IntSerializer_getInstance(), value.s5n_1);
|
|
781
|
+
tmp1_output.b4a(tmp0_desc, 1, StringSerializer_getInstance(), value.t5n_1);
|
|
782
|
+
tmp1_output.k48(tmp0_desc);
|
|
783
|
+
};
|
|
784
|
+
protoOf($serializer_0).w44 = function (encoder, value) {
|
|
785
|
+
return this.r5n(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
786
|
+
};
|
|
787
|
+
protoOf($serializer_0).x44 = function (decoder) {
|
|
788
|
+
var tmp0_desc = this.q5n_1;
|
|
780
789
|
var tmp1_flag = true;
|
|
781
790
|
var tmp2_index = 0;
|
|
782
791
|
var tmp3_bitMask0 = 0;
|
|
783
792
|
var tmp4_local0 = null;
|
|
784
793
|
var tmp5_local1 = null;
|
|
785
|
-
var tmp6_input = decoder.
|
|
786
|
-
if (tmp6_input.
|
|
787
|
-
tmp4_local0 = tmp6_input.
|
|
794
|
+
var tmp6_input = decoder.j48(tmp0_desc);
|
|
795
|
+
if (tmp6_input.y48()) {
|
|
796
|
+
tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
788
797
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
789
|
-
tmp5_local1 = tmp6_input.
|
|
798
|
+
tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
790
799
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
791
800
|
} else
|
|
792
801
|
while (tmp1_flag) {
|
|
793
|
-
tmp2_index = tmp6_input.
|
|
802
|
+
tmp2_index = tmp6_input.z48(tmp0_desc);
|
|
794
803
|
switch (tmp2_index) {
|
|
795
804
|
case -1:
|
|
796
805
|
tmp1_flag = false;
|
|
797
806
|
break;
|
|
798
807
|
case 0:
|
|
799
|
-
tmp4_local0 = tmp6_input.
|
|
808
|
+
tmp4_local0 = tmp6_input.x48(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
800
809
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
801
810
|
break;
|
|
802
811
|
case 1:
|
|
803
|
-
tmp5_local1 = tmp6_input.
|
|
812
|
+
tmp5_local1 = tmp6_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
804
813
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
805
814
|
break;
|
|
806
815
|
default:
|
|
807
816
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
808
817
|
}
|
|
809
818
|
}
|
|
810
|
-
tmp6_input.
|
|
819
|
+
tmp6_input.k48(tmp0_desc);
|
|
811
820
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
812
821
|
};
|
|
813
|
-
protoOf($serializer_0).
|
|
814
|
-
return this.
|
|
822
|
+
protoOf($serializer_0).v44 = function () {
|
|
823
|
+
return this.q5n_1;
|
|
815
824
|
};
|
|
816
|
-
protoOf($serializer_0).
|
|
825
|
+
protoOf($serializer_0).m4g = function () {
|
|
817
826
|
// Inline function 'kotlin.arrayOf' call
|
|
818
827
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
819
828
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -827,10 +836,10 @@
|
|
|
827
836
|
}
|
|
828
837
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
829
838
|
if (!(3 === (3 & seen0))) {
|
|
830
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
839
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().q5n_1);
|
|
831
840
|
}
|
|
832
|
-
$this.
|
|
833
|
-
$this.
|
|
841
|
+
$this.s5n_1 = code;
|
|
842
|
+
$this.t5n_1 = message;
|
|
834
843
|
return $this;
|
|
835
844
|
}
|
|
836
845
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -839,11 +848,11 @@
|
|
|
839
848
|
function ErrorDto() {
|
|
840
849
|
}
|
|
841
850
|
protoOf(ErrorDto).toString = function () {
|
|
842
|
-
return 'ErrorDto(code=' + this.
|
|
851
|
+
return 'ErrorDto(code=' + this.s5n_1 + ', message=' + this.t5n_1 + ')';
|
|
843
852
|
};
|
|
844
853
|
protoOf(ErrorDto).hashCode = function () {
|
|
845
|
-
var result = this.
|
|
846
|
-
result = imul(result, 31) + (this.
|
|
854
|
+
var result = this.s5n_1 == null ? 0 : this.s5n_1;
|
|
855
|
+
result = imul(result, 31) + (this.t5n_1 == null ? 0 : getStringHashCode(this.t5n_1)) | 0;
|
|
847
856
|
return result;
|
|
848
857
|
};
|
|
849
858
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -852,15 +861,15 @@
|
|
|
852
861
|
if (!(other instanceof ErrorDto))
|
|
853
862
|
return false;
|
|
854
863
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
855
|
-
if (!(this.
|
|
864
|
+
if (!(this.s5n_1 == tmp0_other_with_cast.s5n_1))
|
|
856
865
|
return false;
|
|
857
|
-
if (!(this.
|
|
866
|
+
if (!(this.t5n_1 == tmp0_other_with_cast.t5n_1))
|
|
858
867
|
return false;
|
|
859
868
|
return true;
|
|
860
869
|
};
|
|
861
870
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
862
871
|
$serializer_1.call($this);
|
|
863
|
-
$this.
|
|
872
|
+
$this.v5n_1 = typeSerial0;
|
|
864
873
|
return $this;
|
|
865
874
|
}
|
|
866
875
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -869,17 +878,17 @@
|
|
|
869
878
|
function Companion_2() {
|
|
870
879
|
Companion_instance_4 = this;
|
|
871
880
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
872
|
-
tmp0_serialDesc.
|
|
873
|
-
tmp0_serialDesc.
|
|
874
|
-
tmp0_serialDesc.
|
|
875
|
-
tmp0_serialDesc.
|
|
876
|
-
this.
|
|
881
|
+
tmp0_serialDesc.x4f('jsonrpc', false);
|
|
882
|
+
tmp0_serialDesc.x4f('method', false);
|
|
883
|
+
tmp0_serialDesc.x4f('params', false);
|
|
884
|
+
tmp0_serialDesc.x4f('id', false);
|
|
885
|
+
this.w5n_1 = tmp0_serialDesc;
|
|
877
886
|
}
|
|
878
|
-
protoOf(Companion_2).
|
|
887
|
+
protoOf(Companion_2).x5n = function (typeSerial0) {
|
|
879
888
|
return $serializer_init_$Create$(typeSerial0);
|
|
880
889
|
};
|
|
881
|
-
protoOf(Companion_2).
|
|
882
|
-
return this.
|
|
890
|
+
protoOf(Companion_2).x4g = function (typeParamsSerializers) {
|
|
891
|
+
return this.x5n(typeParamsSerializers[0]);
|
|
883
892
|
};
|
|
884
893
|
var Companion_instance_4;
|
|
885
894
|
function Companion_getInstance_5() {
|
|
@@ -889,26 +898,26 @@
|
|
|
889
898
|
}
|
|
890
899
|
function $serializer_1() {
|
|
891
900
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
892
|
-
tmp0_serialDesc.
|
|
893
|
-
tmp0_serialDesc.
|
|
894
|
-
tmp0_serialDesc.
|
|
895
|
-
tmp0_serialDesc.
|
|
896
|
-
this.
|
|
897
|
-
}
|
|
898
|
-
protoOf($serializer_1).
|
|
899
|
-
var tmp0_desc = this.
|
|
900
|
-
var tmp1_output = encoder.
|
|
901
|
-
tmp1_output.
|
|
902
|
-
tmp1_output.
|
|
903
|
-
tmp1_output.
|
|
904
|
-
tmp1_output.
|
|
905
|
-
tmp1_output.
|
|
906
|
-
};
|
|
907
|
-
protoOf($serializer_1).
|
|
908
|
-
return this.
|
|
909
|
-
};
|
|
910
|
-
protoOf($serializer_1).
|
|
911
|
-
var tmp0_desc = this.
|
|
901
|
+
tmp0_serialDesc.x4f('jsonrpc', false);
|
|
902
|
+
tmp0_serialDesc.x4f('method', false);
|
|
903
|
+
tmp0_serialDesc.x4f('params', false);
|
|
904
|
+
tmp0_serialDesc.x4f('id', false);
|
|
905
|
+
this.u5n_1 = tmp0_serialDesc;
|
|
906
|
+
}
|
|
907
|
+
protoOf($serializer_1).y5n = function (encoder, value) {
|
|
908
|
+
var tmp0_desc = this.u5n_1;
|
|
909
|
+
var tmp1_output = encoder.j48(tmp0_desc);
|
|
910
|
+
tmp1_output.x49(tmp0_desc, 0, value.z5n_1);
|
|
911
|
+
tmp1_output.x49(tmp0_desc, 1, value.a5o_1);
|
|
912
|
+
tmp1_output.z49(tmp0_desc, 2, this.v5n_1, value.b5o_1);
|
|
913
|
+
tmp1_output.x49(tmp0_desc, 3, value.c5o_1);
|
|
914
|
+
tmp1_output.k48(tmp0_desc);
|
|
915
|
+
};
|
|
916
|
+
protoOf($serializer_1).w44 = function (encoder, value) {
|
|
917
|
+
return this.y5n(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
918
|
+
};
|
|
919
|
+
protoOf($serializer_1).x44 = function (decoder) {
|
|
920
|
+
var tmp0_desc = this.u5n_1;
|
|
912
921
|
var tmp1_flag = true;
|
|
913
922
|
var tmp2_index = 0;
|
|
914
923
|
var tmp3_bitMask0 = 0;
|
|
@@ -916,69 +925,69 @@
|
|
|
916
925
|
var tmp5_local1 = null;
|
|
917
926
|
var tmp6_local2 = null;
|
|
918
927
|
var tmp7_local3 = null;
|
|
919
|
-
var tmp8_input = decoder.
|
|
920
|
-
if (tmp8_input.
|
|
921
|
-
tmp4_local0 = tmp8_input.
|
|
928
|
+
var tmp8_input = decoder.j48(tmp0_desc);
|
|
929
|
+
if (tmp8_input.y48()) {
|
|
930
|
+
tmp4_local0 = tmp8_input.t48(tmp0_desc, 0);
|
|
922
931
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
923
|
-
tmp5_local1 = tmp8_input.
|
|
932
|
+
tmp5_local1 = tmp8_input.t48(tmp0_desc, 1);
|
|
924
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
925
|
-
tmp6_local2 = tmp8_input.
|
|
934
|
+
tmp6_local2 = tmp8_input.v48(tmp0_desc, 2, this.v5n_1, tmp6_local2);
|
|
926
935
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
927
|
-
tmp7_local3 = tmp8_input.
|
|
936
|
+
tmp7_local3 = tmp8_input.t48(tmp0_desc, 3);
|
|
928
937
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
929
938
|
} else
|
|
930
939
|
while (tmp1_flag) {
|
|
931
|
-
tmp2_index = tmp8_input.
|
|
940
|
+
tmp2_index = tmp8_input.z48(tmp0_desc);
|
|
932
941
|
switch (tmp2_index) {
|
|
933
942
|
case -1:
|
|
934
943
|
tmp1_flag = false;
|
|
935
944
|
break;
|
|
936
945
|
case 0:
|
|
937
|
-
tmp4_local0 = tmp8_input.
|
|
946
|
+
tmp4_local0 = tmp8_input.t48(tmp0_desc, 0);
|
|
938
947
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
939
948
|
break;
|
|
940
949
|
case 1:
|
|
941
|
-
tmp5_local1 = tmp8_input.
|
|
950
|
+
tmp5_local1 = tmp8_input.t48(tmp0_desc, 1);
|
|
942
951
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
943
952
|
break;
|
|
944
953
|
case 2:
|
|
945
|
-
tmp6_local2 = tmp8_input.
|
|
954
|
+
tmp6_local2 = tmp8_input.v48(tmp0_desc, 2, this.v5n_1, tmp6_local2);
|
|
946
955
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
947
956
|
break;
|
|
948
957
|
case 3:
|
|
949
|
-
tmp7_local3 = tmp8_input.
|
|
958
|
+
tmp7_local3 = tmp8_input.t48(tmp0_desc, 3);
|
|
950
959
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
951
960
|
break;
|
|
952
961
|
default:
|
|
953
962
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
954
963
|
}
|
|
955
964
|
}
|
|
956
|
-
tmp8_input.
|
|
965
|
+
tmp8_input.k48(tmp0_desc);
|
|
957
966
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
958
967
|
};
|
|
959
|
-
protoOf($serializer_1).
|
|
960
|
-
return this.
|
|
968
|
+
protoOf($serializer_1).v44 = function () {
|
|
969
|
+
return this.u5n_1;
|
|
961
970
|
};
|
|
962
|
-
protoOf($serializer_1).
|
|
971
|
+
protoOf($serializer_1).m4g = function () {
|
|
963
972
|
// Inline function 'kotlin.arrayOf' call
|
|
964
973
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
965
974
|
// Inline function 'kotlin.js.asDynamic' call
|
|
966
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
975
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.v5n_1, StringSerializer_getInstance()];
|
|
967
976
|
};
|
|
968
|
-
protoOf($serializer_1).
|
|
977
|
+
protoOf($serializer_1).n4g = function () {
|
|
969
978
|
// Inline function 'kotlin.arrayOf' call
|
|
970
979
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
971
980
|
// Inline function 'kotlin.js.asDynamic' call
|
|
972
|
-
return [this.
|
|
981
|
+
return [this.v5n_1];
|
|
973
982
|
};
|
|
974
983
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
975
984
|
if (!(15 === (15 & seen0))) {
|
|
976
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
985
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().w5n_1);
|
|
977
986
|
}
|
|
978
|
-
$this.
|
|
979
|
-
$this.
|
|
980
|
-
$this.
|
|
981
|
-
$this.
|
|
987
|
+
$this.z5n_1 = jsonrpc;
|
|
988
|
+
$this.a5o_1 = method;
|
|
989
|
+
$this.b5o_1 = params;
|
|
990
|
+
$this.c5o_1 = id;
|
|
982
991
|
return $this;
|
|
983
992
|
}
|
|
984
993
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -986,19 +995,19 @@
|
|
|
986
995
|
}
|
|
987
996
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
988
997
|
Companion_getInstance_5();
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
998
|
+
this.z5n_1 = jsonrpc;
|
|
999
|
+
this.a5o_1 = method;
|
|
1000
|
+
this.b5o_1 = params;
|
|
1001
|
+
this.c5o_1 = id;
|
|
993
1002
|
}
|
|
994
1003
|
protoOf(RandomRequestDto).toString = function () {
|
|
995
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
1004
|
+
return 'RandomRequestDto(jsonrpc=' + this.z5n_1 + ', method=' + this.a5o_1 + ', params=' + toString(this.b5o_1) + ', id=' + this.c5o_1 + ')';
|
|
996
1005
|
};
|
|
997
1006
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
998
|
-
var result = getStringHashCode(this.
|
|
999
|
-
result = imul(result, 31) + getStringHashCode(this.y5n_1) | 0;
|
|
1000
|
-
result = imul(result, 31) + hashCode(this.z5n_1) | 0;
|
|
1007
|
+
var result = getStringHashCode(this.z5n_1);
|
|
1001
1008
|
result = imul(result, 31) + getStringHashCode(this.a5o_1) | 0;
|
|
1009
|
+
result = imul(result, 31) + hashCode(this.b5o_1) | 0;
|
|
1010
|
+
result = imul(result, 31) + getStringHashCode(this.c5o_1) | 0;
|
|
1002
1011
|
return result;
|
|
1003
1012
|
};
|
|
1004
1013
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1007,13 +1016,13 @@
|
|
|
1007
1016
|
if (!(other instanceof RandomRequestDto))
|
|
1008
1017
|
return false;
|
|
1009
1018
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1010
|
-
if (!(this.
|
|
1019
|
+
if (!(this.z5n_1 === tmp0_other_with_cast.z5n_1))
|
|
1011
1020
|
return false;
|
|
1012
|
-
if (!(this.
|
|
1021
|
+
if (!(this.a5o_1 === tmp0_other_with_cast.a5o_1))
|
|
1013
1022
|
return false;
|
|
1014
|
-
if (!equals(this.
|
|
1023
|
+
if (!equals(this.b5o_1, tmp0_other_with_cast.b5o_1))
|
|
1015
1024
|
return false;
|
|
1016
|
-
if (!(this.
|
|
1025
|
+
if (!(this.c5o_1 === tmp0_other_with_cast.c5o_1))
|
|
1017
1026
|
return false;
|
|
1018
1027
|
return true;
|
|
1019
1028
|
};
|
|
@@ -1023,7 +1032,7 @@
|
|
|
1023
1032
|
// Inline function 'kotlin.arrayOf' call
|
|
1024
1033
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1025
1034
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1026
|
-
tmp.
|
|
1035
|
+
tmp.d5o_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1027
1036
|
}
|
|
1028
1037
|
var Companion_instance_5;
|
|
1029
1038
|
function Companion_getInstance_6() {
|
|
@@ -1034,35 +1043,35 @@
|
|
|
1034
1043
|
function $serializer_2() {
|
|
1035
1044
|
$serializer_instance_1 = this;
|
|
1036
1045
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1037
|
-
tmp0_serialDesc.
|
|
1038
|
-
tmp0_serialDesc.
|
|
1039
|
-
tmp0_serialDesc.
|
|
1040
|
-
tmp0_serialDesc.
|
|
1041
|
-
tmp0_serialDesc.
|
|
1042
|
-
tmp0_serialDesc.
|
|
1043
|
-
tmp0_serialDesc.
|
|
1044
|
-
tmp0_serialDesc.
|
|
1045
|
-
this.
|
|
1046
|
-
}
|
|
1047
|
-
protoOf($serializer_2).
|
|
1048
|
-
var tmp0_desc = this.
|
|
1049
|
-
var tmp1_output = encoder.
|
|
1050
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1051
|
-
tmp1_output.
|
|
1052
|
-
tmp1_output.
|
|
1053
|
-
tmp1_output.
|
|
1054
|
-
tmp1_output.
|
|
1055
|
-
tmp1_output.
|
|
1056
|
-
tmp1_output.
|
|
1057
|
-
tmp1_output.
|
|
1058
|
-
tmp1_output.
|
|
1059
|
-
tmp1_output.
|
|
1060
|
-
};
|
|
1061
|
-
protoOf($serializer_2).
|
|
1062
|
-
return this.
|
|
1063
|
-
};
|
|
1064
|
-
protoOf($serializer_2).
|
|
1065
|
-
var tmp0_desc = this.
|
|
1046
|
+
tmp0_serialDesc.x4f('apiKey', false);
|
|
1047
|
+
tmp0_serialDesc.x4f('n', false);
|
|
1048
|
+
tmp0_serialDesc.x4f('length', false);
|
|
1049
|
+
tmp0_serialDesc.x4f('min', false);
|
|
1050
|
+
tmp0_serialDesc.x4f('max', false);
|
|
1051
|
+
tmp0_serialDesc.x4f('replacement', false);
|
|
1052
|
+
tmp0_serialDesc.x4f('ticketId', false);
|
|
1053
|
+
tmp0_serialDesc.x4f('userData', false);
|
|
1054
|
+
this.e5o_1 = tmp0_serialDesc;
|
|
1055
|
+
}
|
|
1056
|
+
protoOf($serializer_2).f5o = function (encoder, value) {
|
|
1057
|
+
var tmp0_desc = this.e5o_1;
|
|
1058
|
+
var tmp1_output = encoder.j48(tmp0_desc);
|
|
1059
|
+
var tmp2_cached = Companion_getInstance_6().d5o_1;
|
|
1060
|
+
tmp1_output.x49(tmp0_desc, 0, value.g5o_1);
|
|
1061
|
+
tmp1_output.s49(tmp0_desc, 1, value.h5o_1);
|
|
1062
|
+
tmp1_output.z49(tmp0_desc, 2, tmp2_cached[2], value.i5o_1);
|
|
1063
|
+
tmp1_output.s49(tmp0_desc, 3, value.j5o_1);
|
|
1064
|
+
tmp1_output.s49(tmp0_desc, 4, value.k5o_1);
|
|
1065
|
+
tmp1_output.p49(tmp0_desc, 5, value.l5o_1);
|
|
1066
|
+
tmp1_output.b4a(tmp0_desc, 6, StringSerializer_getInstance(), value.m5o_1);
|
|
1067
|
+
tmp1_output.b4a(tmp0_desc, 7, $serializer_getInstance_2(), value.n5o_1);
|
|
1068
|
+
tmp1_output.k48(tmp0_desc);
|
|
1069
|
+
};
|
|
1070
|
+
protoOf($serializer_2).w44 = function (encoder, value) {
|
|
1071
|
+
return this.f5o(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1072
|
+
};
|
|
1073
|
+
protoOf($serializer_2).x44 = function (decoder) {
|
|
1074
|
+
var tmp0_desc = this.e5o_1;
|
|
1066
1075
|
var tmp1_flag = true;
|
|
1067
1076
|
var tmp2_index = 0;
|
|
1068
1077
|
var tmp3_bitMask0 = 0;
|
|
@@ -1074,76 +1083,76 @@
|
|
|
1074
1083
|
var tmp9_local5 = false;
|
|
1075
1084
|
var tmp10_local6 = null;
|
|
1076
1085
|
var tmp11_local7 = null;
|
|
1077
|
-
var tmp12_input = decoder.
|
|
1078
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1079
|
-
if (tmp12_input.
|
|
1080
|
-
tmp4_local0 = tmp12_input.
|
|
1086
|
+
var tmp12_input = decoder.j48(tmp0_desc);
|
|
1087
|
+
var tmp13_cached = Companion_getInstance_6().d5o_1;
|
|
1088
|
+
if (tmp12_input.y48()) {
|
|
1089
|
+
tmp4_local0 = tmp12_input.t48(tmp0_desc, 0);
|
|
1081
1090
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1082
|
-
tmp5_local1 = tmp12_input.
|
|
1091
|
+
tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
|
|
1083
1092
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1084
|
-
tmp6_local2 = tmp12_input.
|
|
1093
|
+
tmp6_local2 = tmp12_input.v48(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1085
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1086
|
-
tmp7_local3 = tmp12_input.
|
|
1095
|
+
tmp7_local3 = tmp12_input.o48(tmp0_desc, 3);
|
|
1087
1096
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1088
|
-
tmp8_local4 = tmp12_input.
|
|
1097
|
+
tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
|
|
1089
1098
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1090
|
-
tmp9_local5 = tmp12_input.
|
|
1099
|
+
tmp9_local5 = tmp12_input.l48(tmp0_desc, 5);
|
|
1091
1100
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1092
|
-
tmp10_local6 = tmp12_input.
|
|
1101
|
+
tmp10_local6 = tmp12_input.x48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1093
1102
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1094
|
-
tmp11_local7 = tmp12_input.
|
|
1103
|
+
tmp11_local7 = tmp12_input.x48(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1095
1104
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1096
1105
|
} else
|
|
1097
1106
|
while (tmp1_flag) {
|
|
1098
|
-
tmp2_index = tmp12_input.
|
|
1107
|
+
tmp2_index = tmp12_input.z48(tmp0_desc);
|
|
1099
1108
|
switch (tmp2_index) {
|
|
1100
1109
|
case -1:
|
|
1101
1110
|
tmp1_flag = false;
|
|
1102
1111
|
break;
|
|
1103
1112
|
case 0:
|
|
1104
|
-
tmp4_local0 = tmp12_input.
|
|
1113
|
+
tmp4_local0 = tmp12_input.t48(tmp0_desc, 0);
|
|
1105
1114
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1106
1115
|
break;
|
|
1107
1116
|
case 1:
|
|
1108
|
-
tmp5_local1 = tmp12_input.
|
|
1117
|
+
tmp5_local1 = tmp12_input.o48(tmp0_desc, 1);
|
|
1109
1118
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1110
1119
|
break;
|
|
1111
1120
|
case 2:
|
|
1112
|
-
tmp6_local2 = tmp12_input.
|
|
1121
|
+
tmp6_local2 = tmp12_input.v48(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1113
1122
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1114
1123
|
break;
|
|
1115
1124
|
case 3:
|
|
1116
|
-
tmp7_local3 = tmp12_input.
|
|
1125
|
+
tmp7_local3 = tmp12_input.o48(tmp0_desc, 3);
|
|
1117
1126
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1118
1127
|
break;
|
|
1119
1128
|
case 4:
|
|
1120
|
-
tmp8_local4 = tmp12_input.
|
|
1129
|
+
tmp8_local4 = tmp12_input.o48(tmp0_desc, 4);
|
|
1121
1130
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1122
1131
|
break;
|
|
1123
1132
|
case 5:
|
|
1124
|
-
tmp9_local5 = tmp12_input.
|
|
1133
|
+
tmp9_local5 = tmp12_input.l48(tmp0_desc, 5);
|
|
1125
1134
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1126
1135
|
break;
|
|
1127
1136
|
case 6:
|
|
1128
|
-
tmp10_local6 = tmp12_input.
|
|
1137
|
+
tmp10_local6 = tmp12_input.x48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1129
1138
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1130
1139
|
break;
|
|
1131
1140
|
case 7:
|
|
1132
|
-
tmp11_local7 = tmp12_input.
|
|
1141
|
+
tmp11_local7 = tmp12_input.x48(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1133
1142
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1134
1143
|
break;
|
|
1135
1144
|
default:
|
|
1136
1145
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1137
1146
|
}
|
|
1138
1147
|
}
|
|
1139
|
-
tmp12_input.
|
|
1148
|
+
tmp12_input.k48(tmp0_desc);
|
|
1140
1149
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1141
1150
|
};
|
|
1142
|
-
protoOf($serializer_2).
|
|
1143
|
-
return this.
|
|
1151
|
+
protoOf($serializer_2).v44 = function () {
|
|
1152
|
+
return this.e5o_1;
|
|
1144
1153
|
};
|
|
1145
|
-
protoOf($serializer_2).
|
|
1146
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1154
|
+
protoOf($serializer_2).m4g = function () {
|
|
1155
|
+
var tmp0_cached = Companion_getInstance_6().d5o_1;
|
|
1147
1156
|
// Inline function 'kotlin.arrayOf' call
|
|
1148
1157
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1149
1158
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1157,16 +1166,16 @@
|
|
|
1157
1166
|
}
|
|
1158
1167
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1159
1168
|
if (!(255 === (255 & seen0))) {
|
|
1160
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1169
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().e5o_1);
|
|
1161
1170
|
}
|
|
1162
|
-
$this.
|
|
1163
|
-
$this.
|
|
1164
|
-
$this.
|
|
1165
|
-
$this.
|
|
1166
|
-
$this.
|
|
1167
|
-
$this.
|
|
1168
|
-
$this.
|
|
1169
|
-
$this.
|
|
1171
|
+
$this.g5o_1 = apiKey;
|
|
1172
|
+
$this.h5o_1 = n;
|
|
1173
|
+
$this.i5o_1 = length;
|
|
1174
|
+
$this.j5o_1 = min;
|
|
1175
|
+
$this.k5o_1 = max;
|
|
1176
|
+
$this.l5o_1 = replacement;
|
|
1177
|
+
$this.m5o_1 = ticketId;
|
|
1178
|
+
$this.n5o_1 = userData;
|
|
1170
1179
|
return $this;
|
|
1171
1180
|
}
|
|
1172
1181
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1174,27 +1183,27 @@
|
|
|
1174
1183
|
}
|
|
1175
1184
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1176
1185
|
Companion_getInstance_6();
|
|
1177
|
-
this.
|
|
1178
|
-
this.
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1186
|
+
this.g5o_1 = apiKey;
|
|
1187
|
+
this.h5o_1 = n;
|
|
1188
|
+
this.i5o_1 = length;
|
|
1189
|
+
this.j5o_1 = min;
|
|
1190
|
+
this.k5o_1 = max;
|
|
1191
|
+
this.l5o_1 = replacement;
|
|
1192
|
+
this.m5o_1 = ticketId;
|
|
1193
|
+
this.n5o_1 = userData;
|
|
1185
1194
|
}
|
|
1186
1195
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1187
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1196
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.g5o_1 + ', n=' + this.h5o_1 + ', length=' + toString(this.i5o_1) + ', min=' + this.j5o_1 + ', max=' + this.k5o_1 + ', replacement=' + this.l5o_1 + ', ticketId=' + this.m5o_1 + ', userData=' + toString_0(this.n5o_1) + ')';
|
|
1188
1197
|
};
|
|
1189
1198
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1190
|
-
var result = getStringHashCode(this.
|
|
1191
|
-
result = imul(result, 31) + this.f5o_1 | 0;
|
|
1192
|
-
result = imul(result, 31) + hashCode(this.g5o_1) | 0;
|
|
1199
|
+
var result = getStringHashCode(this.g5o_1);
|
|
1193
1200
|
result = imul(result, 31) + this.h5o_1 | 0;
|
|
1194
|
-
result = imul(result, 31) + this.i5o_1 | 0;
|
|
1195
|
-
result = imul(result, 31) +
|
|
1196
|
-
result = imul(result, 31) +
|
|
1197
|
-
result = imul(result, 31) + (this.l5o_1
|
|
1201
|
+
result = imul(result, 31) + hashCode(this.i5o_1) | 0;
|
|
1202
|
+
result = imul(result, 31) + this.j5o_1 | 0;
|
|
1203
|
+
result = imul(result, 31) + this.k5o_1 | 0;
|
|
1204
|
+
result = imul(result, 31) + getBooleanHashCode(this.l5o_1) | 0;
|
|
1205
|
+
result = imul(result, 31) + (this.m5o_1 == null ? 0 : getStringHashCode(this.m5o_1)) | 0;
|
|
1206
|
+
result = imul(result, 31) + (this.n5o_1 == null ? 0 : this.n5o_1.hashCode()) | 0;
|
|
1198
1207
|
return result;
|
|
1199
1208
|
};
|
|
1200
1209
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1203,21 +1212,21 @@
|
|
|
1203
1212
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1204
1213
|
return false;
|
|
1205
1214
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1206
|
-
if (!(this.
|
|
1207
|
-
return false;
|
|
1208
|
-
if (!(this.f5o_1 === tmp0_other_with_cast.f5o_1))
|
|
1209
|
-
return false;
|
|
1210
|
-
if (!equals(this.g5o_1, tmp0_other_with_cast.g5o_1))
|
|
1215
|
+
if (!(this.g5o_1 === tmp0_other_with_cast.g5o_1))
|
|
1211
1216
|
return false;
|
|
1212
1217
|
if (!(this.h5o_1 === tmp0_other_with_cast.h5o_1))
|
|
1213
1218
|
return false;
|
|
1214
|
-
if (!(this.i5o_1
|
|
1219
|
+
if (!equals(this.i5o_1, tmp0_other_with_cast.i5o_1))
|
|
1215
1220
|
return false;
|
|
1216
1221
|
if (!(this.j5o_1 === tmp0_other_with_cast.j5o_1))
|
|
1217
1222
|
return false;
|
|
1218
|
-
if (!(this.k5o_1
|
|
1223
|
+
if (!(this.k5o_1 === tmp0_other_with_cast.k5o_1))
|
|
1224
|
+
return false;
|
|
1225
|
+
if (!(this.l5o_1 === tmp0_other_with_cast.l5o_1))
|
|
1226
|
+
return false;
|
|
1227
|
+
if (!(this.m5o_1 == tmp0_other_with_cast.m5o_1))
|
|
1219
1228
|
return false;
|
|
1220
|
-
if (!equals(this.
|
|
1229
|
+
if (!equals(this.n5o_1, tmp0_other_with_cast.n5o_1))
|
|
1221
1230
|
return false;
|
|
1222
1231
|
return true;
|
|
1223
1232
|
};
|
|
@@ -1230,59 +1239,59 @@
|
|
|
1230
1239
|
function $serializer_3() {
|
|
1231
1240
|
$serializer_instance_2 = this;
|
|
1232
1241
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1233
|
-
tmp0_serialDesc.
|
|
1234
|
-
tmp0_serialDesc.
|
|
1235
|
-
this.
|
|
1236
|
-
}
|
|
1237
|
-
protoOf($serializer_3).
|
|
1238
|
-
var tmp0_desc = this.
|
|
1239
|
-
var tmp1_output = encoder.
|
|
1240
|
-
tmp1_output.
|
|
1241
|
-
tmp1_output.
|
|
1242
|
-
tmp1_output.
|
|
1243
|
-
};
|
|
1244
|
-
protoOf($serializer_3).
|
|
1245
|
-
return this.
|
|
1246
|
-
};
|
|
1247
|
-
protoOf($serializer_3).
|
|
1248
|
-
var tmp0_desc = this.
|
|
1242
|
+
tmp0_serialDesc.x4f('id', false);
|
|
1243
|
+
tmp0_serialDesc.x4f('count', false);
|
|
1244
|
+
this.o5o_1 = tmp0_serialDesc;
|
|
1245
|
+
}
|
|
1246
|
+
protoOf($serializer_3).p5o = function (encoder, value) {
|
|
1247
|
+
var tmp0_desc = this.o5o_1;
|
|
1248
|
+
var tmp1_output = encoder.j48(tmp0_desc);
|
|
1249
|
+
tmp1_output.x49(tmp0_desc, 0, value.q5o_1);
|
|
1250
|
+
tmp1_output.s49(tmp0_desc, 1, value.r5o_1);
|
|
1251
|
+
tmp1_output.k48(tmp0_desc);
|
|
1252
|
+
};
|
|
1253
|
+
protoOf($serializer_3).w44 = function (encoder, value) {
|
|
1254
|
+
return this.p5o(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1255
|
+
};
|
|
1256
|
+
protoOf($serializer_3).x44 = function (decoder) {
|
|
1257
|
+
var tmp0_desc = this.o5o_1;
|
|
1249
1258
|
var tmp1_flag = true;
|
|
1250
1259
|
var tmp2_index = 0;
|
|
1251
1260
|
var tmp3_bitMask0 = 0;
|
|
1252
1261
|
var tmp4_local0 = null;
|
|
1253
1262
|
var tmp5_local1 = 0;
|
|
1254
|
-
var tmp6_input = decoder.
|
|
1255
|
-
if (tmp6_input.
|
|
1256
|
-
tmp4_local0 = tmp6_input.
|
|
1263
|
+
var tmp6_input = decoder.j48(tmp0_desc);
|
|
1264
|
+
if (tmp6_input.y48()) {
|
|
1265
|
+
tmp4_local0 = tmp6_input.t48(tmp0_desc, 0);
|
|
1257
1266
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1258
|
-
tmp5_local1 = tmp6_input.
|
|
1267
|
+
tmp5_local1 = tmp6_input.o48(tmp0_desc, 1);
|
|
1259
1268
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1260
1269
|
} else
|
|
1261
1270
|
while (tmp1_flag) {
|
|
1262
|
-
tmp2_index = tmp6_input.
|
|
1271
|
+
tmp2_index = tmp6_input.z48(tmp0_desc);
|
|
1263
1272
|
switch (tmp2_index) {
|
|
1264
1273
|
case -1:
|
|
1265
1274
|
tmp1_flag = false;
|
|
1266
1275
|
break;
|
|
1267
1276
|
case 0:
|
|
1268
|
-
tmp4_local0 = tmp6_input.
|
|
1277
|
+
tmp4_local0 = tmp6_input.t48(tmp0_desc, 0);
|
|
1269
1278
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1270
1279
|
break;
|
|
1271
1280
|
case 1:
|
|
1272
|
-
tmp5_local1 = tmp6_input.
|
|
1281
|
+
tmp5_local1 = tmp6_input.o48(tmp0_desc, 1);
|
|
1273
1282
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1274
1283
|
break;
|
|
1275
1284
|
default:
|
|
1276
1285
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1277
1286
|
}
|
|
1278
1287
|
}
|
|
1279
|
-
tmp6_input.
|
|
1288
|
+
tmp6_input.k48(tmp0_desc);
|
|
1280
1289
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1281
1290
|
};
|
|
1282
|
-
protoOf($serializer_3).
|
|
1283
|
-
return this.
|
|
1291
|
+
protoOf($serializer_3).v44 = function () {
|
|
1292
|
+
return this.o5o_1;
|
|
1284
1293
|
};
|
|
1285
|
-
protoOf($serializer_3).
|
|
1294
|
+
protoOf($serializer_3).m4g = function () {
|
|
1286
1295
|
// Inline function 'kotlin.arrayOf' call
|
|
1287
1296
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1288
1297
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1296,25 +1305,25 @@
|
|
|
1296
1305
|
}
|
|
1297
1306
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1298
1307
|
if (!(3 === (3 & seen0))) {
|
|
1299
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1308
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().o5o_1);
|
|
1300
1309
|
}
|
|
1301
|
-
$this.
|
|
1302
|
-
$this.
|
|
1310
|
+
$this.q5o_1 = id;
|
|
1311
|
+
$this.r5o_1 = count;
|
|
1303
1312
|
return $this;
|
|
1304
1313
|
}
|
|
1305
1314
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1306
1315
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1307
1316
|
}
|
|
1308
1317
|
function CardDecksUserDataDto(id, count) {
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1318
|
+
this.q5o_1 = id;
|
|
1319
|
+
this.r5o_1 = count;
|
|
1311
1320
|
}
|
|
1312
1321
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1313
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1322
|
+
return 'CardDecksUserDataDto(id=' + this.q5o_1 + ', count=' + this.r5o_1 + ')';
|
|
1314
1323
|
};
|
|
1315
1324
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1316
|
-
var result = getStringHashCode(this.
|
|
1317
|
-
result = imul(result, 31) + this.
|
|
1325
|
+
var result = getStringHashCode(this.q5o_1);
|
|
1326
|
+
result = imul(result, 31) + this.r5o_1 | 0;
|
|
1318
1327
|
return result;
|
|
1319
1328
|
};
|
|
1320
1329
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1323,15 +1332,15 @@
|
|
|
1323
1332
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1324
1333
|
return false;
|
|
1325
1334
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1326
|
-
if (!(this.
|
|
1335
|
+
if (!(this.q5o_1 === tmp0_other_with_cast.q5o_1))
|
|
1327
1336
|
return false;
|
|
1328
|
-
if (!(this.
|
|
1337
|
+
if (!(this.r5o_1 === tmp0_other_with_cast.r5o_1))
|
|
1329
1338
|
return false;
|
|
1330
1339
|
return true;
|
|
1331
1340
|
};
|
|
1332
1341
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1333
1342
|
$serializer_4.call($this);
|
|
1334
|
-
$this.
|
|
1343
|
+
$this.t5o_1 = typeSerial0;
|
|
1335
1344
|
return $this;
|
|
1336
1345
|
}
|
|
1337
1346
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1340,16 +1349,16 @@
|
|
|
1340
1349
|
function Companion_5() {
|
|
1341
1350
|
Companion_instance_7 = this;
|
|
1342
1351
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1343
|
-
tmp0_serialDesc.
|
|
1344
|
-
tmp0_serialDesc.
|
|
1345
|
-
tmp0_serialDesc.
|
|
1346
|
-
this.
|
|
1352
|
+
tmp0_serialDesc.x4f('jsonrpc', false);
|
|
1353
|
+
tmp0_serialDesc.x4f('result', false);
|
|
1354
|
+
tmp0_serialDesc.x4f('id', false);
|
|
1355
|
+
this.u5o_1 = tmp0_serialDesc;
|
|
1347
1356
|
}
|
|
1348
|
-
protoOf(Companion_5).
|
|
1357
|
+
protoOf(Companion_5).x5n = function (typeSerial0) {
|
|
1349
1358
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1350
1359
|
};
|
|
1351
|
-
protoOf(Companion_5).
|
|
1352
|
-
return this.
|
|
1360
|
+
protoOf(Companion_5).x4g = function (typeParamsSerializers) {
|
|
1361
|
+
return this.x5n(typeParamsSerializers[0]);
|
|
1353
1362
|
};
|
|
1354
1363
|
var Companion_instance_7;
|
|
1355
1364
|
function Companion_getInstance_8() {
|
|
@@ -1359,86 +1368,86 @@
|
|
|
1359
1368
|
}
|
|
1360
1369
|
function $serializer_4() {
|
|
1361
1370
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1362
|
-
tmp0_serialDesc.
|
|
1363
|
-
tmp0_serialDesc.
|
|
1364
|
-
tmp0_serialDesc.
|
|
1365
|
-
this.
|
|
1366
|
-
}
|
|
1367
|
-
protoOf($serializer_4).
|
|
1368
|
-
var tmp0_desc = this.
|
|
1369
|
-
var tmp1_output = encoder.
|
|
1370
|
-
tmp1_output.
|
|
1371
|
-
tmp1_output.
|
|
1372
|
-
tmp1_output.
|
|
1373
|
-
tmp1_output.
|
|
1374
|
-
};
|
|
1375
|
-
protoOf($serializer_4).
|
|
1376
|
-
return this.
|
|
1377
|
-
};
|
|
1378
|
-
protoOf($serializer_4).
|
|
1379
|
-
var tmp0_desc = this.
|
|
1371
|
+
tmp0_serialDesc.x4f('jsonrpc', false);
|
|
1372
|
+
tmp0_serialDesc.x4f('result', false);
|
|
1373
|
+
tmp0_serialDesc.x4f('id', false);
|
|
1374
|
+
this.s5o_1 = tmp0_serialDesc;
|
|
1375
|
+
}
|
|
1376
|
+
protoOf($serializer_4).v5o = function (encoder, value) {
|
|
1377
|
+
var tmp0_desc = this.s5o_1;
|
|
1378
|
+
var tmp1_output = encoder.j48(tmp0_desc);
|
|
1379
|
+
tmp1_output.x49(tmp0_desc, 0, value.w5o_1);
|
|
1380
|
+
tmp1_output.z49(tmp0_desc, 1, this.t5o_1, value.x5o_1);
|
|
1381
|
+
tmp1_output.x49(tmp0_desc, 2, value.y5o_1);
|
|
1382
|
+
tmp1_output.k48(tmp0_desc);
|
|
1383
|
+
};
|
|
1384
|
+
protoOf($serializer_4).w44 = function (encoder, value) {
|
|
1385
|
+
return this.v5o(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1386
|
+
};
|
|
1387
|
+
protoOf($serializer_4).x44 = function (decoder) {
|
|
1388
|
+
var tmp0_desc = this.s5o_1;
|
|
1380
1389
|
var tmp1_flag = true;
|
|
1381
1390
|
var tmp2_index = 0;
|
|
1382
1391
|
var tmp3_bitMask0 = 0;
|
|
1383
1392
|
var tmp4_local0 = null;
|
|
1384
1393
|
var tmp5_local1 = null;
|
|
1385
1394
|
var tmp6_local2 = null;
|
|
1386
|
-
var tmp7_input = decoder.
|
|
1387
|
-
if (tmp7_input.
|
|
1388
|
-
tmp4_local0 = tmp7_input.
|
|
1395
|
+
var tmp7_input = decoder.j48(tmp0_desc);
|
|
1396
|
+
if (tmp7_input.y48()) {
|
|
1397
|
+
tmp4_local0 = tmp7_input.t48(tmp0_desc, 0);
|
|
1389
1398
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1390
|
-
tmp5_local1 = tmp7_input.
|
|
1399
|
+
tmp5_local1 = tmp7_input.v48(tmp0_desc, 1, this.t5o_1, tmp5_local1);
|
|
1391
1400
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1392
|
-
tmp6_local2 = tmp7_input.
|
|
1401
|
+
tmp6_local2 = tmp7_input.t48(tmp0_desc, 2);
|
|
1393
1402
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1394
1403
|
} else
|
|
1395
1404
|
while (tmp1_flag) {
|
|
1396
|
-
tmp2_index = tmp7_input.
|
|
1405
|
+
tmp2_index = tmp7_input.z48(tmp0_desc);
|
|
1397
1406
|
switch (tmp2_index) {
|
|
1398
1407
|
case -1:
|
|
1399
1408
|
tmp1_flag = false;
|
|
1400
1409
|
break;
|
|
1401
1410
|
case 0:
|
|
1402
|
-
tmp4_local0 = tmp7_input.
|
|
1411
|
+
tmp4_local0 = tmp7_input.t48(tmp0_desc, 0);
|
|
1403
1412
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1404
1413
|
break;
|
|
1405
1414
|
case 1:
|
|
1406
|
-
tmp5_local1 = tmp7_input.
|
|
1415
|
+
tmp5_local1 = tmp7_input.v48(tmp0_desc, 1, this.t5o_1, tmp5_local1);
|
|
1407
1416
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1408
1417
|
break;
|
|
1409
1418
|
case 2:
|
|
1410
|
-
tmp6_local2 = tmp7_input.
|
|
1419
|
+
tmp6_local2 = tmp7_input.t48(tmp0_desc, 2);
|
|
1411
1420
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1412
1421
|
break;
|
|
1413
1422
|
default:
|
|
1414
1423
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1415
1424
|
}
|
|
1416
1425
|
}
|
|
1417
|
-
tmp7_input.
|
|
1426
|
+
tmp7_input.k48(tmp0_desc);
|
|
1418
1427
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1419
1428
|
};
|
|
1420
|
-
protoOf($serializer_4).
|
|
1421
|
-
return this.
|
|
1429
|
+
protoOf($serializer_4).v44 = function () {
|
|
1430
|
+
return this.s5o_1;
|
|
1422
1431
|
};
|
|
1423
|
-
protoOf($serializer_4).
|
|
1432
|
+
protoOf($serializer_4).m4g = function () {
|
|
1424
1433
|
// Inline function 'kotlin.arrayOf' call
|
|
1425
1434
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1426
1435
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1427
|
-
return [StringSerializer_getInstance(), this.
|
|
1436
|
+
return [StringSerializer_getInstance(), this.t5o_1, StringSerializer_getInstance()];
|
|
1428
1437
|
};
|
|
1429
|
-
protoOf($serializer_4).
|
|
1438
|
+
protoOf($serializer_4).n4g = function () {
|
|
1430
1439
|
// Inline function 'kotlin.arrayOf' call
|
|
1431
1440
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1432
1441
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1433
|
-
return [this.
|
|
1442
|
+
return [this.t5o_1];
|
|
1434
1443
|
};
|
|
1435
1444
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1436
1445
|
if (!(7 === (7 & seen0))) {
|
|
1437
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1446
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().u5o_1);
|
|
1438
1447
|
}
|
|
1439
|
-
$this.
|
|
1440
|
-
$this.
|
|
1441
|
-
$this.
|
|
1448
|
+
$this.w5o_1 = jsonrpc;
|
|
1449
|
+
$this.x5o_1 = result;
|
|
1450
|
+
$this.y5o_1 = id;
|
|
1442
1451
|
return $this;
|
|
1443
1452
|
}
|
|
1444
1453
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1446,17 +1455,17 @@
|
|
|
1446
1455
|
}
|
|
1447
1456
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1448
1457
|
Companion_getInstance_8();
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1458
|
+
this.w5o_1 = jsonrpc;
|
|
1459
|
+
this.x5o_1 = result;
|
|
1460
|
+
this.y5o_1 = id;
|
|
1452
1461
|
}
|
|
1453
1462
|
protoOf(RandomResponseDto).toString = function () {
|
|
1454
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1463
|
+
return 'RandomResponseDto(jsonrpc=' + this.w5o_1 + ', result=' + toString(this.x5o_1) + ', id=' + this.y5o_1 + ')';
|
|
1455
1464
|
};
|
|
1456
1465
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1457
|
-
var result = getStringHashCode(this.
|
|
1458
|
-
result = imul(result, 31) + hashCode(this.
|
|
1459
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1466
|
+
var result = getStringHashCode(this.w5o_1);
|
|
1467
|
+
result = imul(result, 31) + hashCode(this.x5o_1) | 0;
|
|
1468
|
+
result = imul(result, 31) + getStringHashCode(this.y5o_1) | 0;
|
|
1460
1469
|
return result;
|
|
1461
1470
|
};
|
|
1462
1471
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1465,11 +1474,11 @@
|
|
|
1465
1474
|
if (!(other instanceof RandomResponseDto))
|
|
1466
1475
|
return false;
|
|
1467
1476
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1468
|
-
if (!(this.
|
|
1477
|
+
if (!(this.w5o_1 === tmp0_other_with_cast.w5o_1))
|
|
1469
1478
|
return false;
|
|
1470
|
-
if (!equals(this.
|
|
1479
|
+
if (!equals(this.x5o_1, tmp0_other_with_cast.x5o_1))
|
|
1471
1480
|
return false;
|
|
1472
|
-
if (!(this.
|
|
1481
|
+
if (!(this.y5o_1 === tmp0_other_with_cast.y5o_1))
|
|
1473
1482
|
return false;
|
|
1474
1483
|
return true;
|
|
1475
1484
|
};
|
|
@@ -1482,30 +1491,30 @@
|
|
|
1482
1491
|
function $serializer_5() {
|
|
1483
1492
|
$serializer_instance_3 = this;
|
|
1484
1493
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1485
|
-
tmp0_serialDesc.
|
|
1486
|
-
tmp0_serialDesc.
|
|
1487
|
-
tmp0_serialDesc.
|
|
1488
|
-
tmp0_serialDesc.
|
|
1489
|
-
tmp0_serialDesc.
|
|
1490
|
-
tmp0_serialDesc.
|
|
1491
|
-
this.
|
|
1492
|
-
}
|
|
1493
|
-
protoOf($serializer_5).
|
|
1494
|
-
var tmp0_desc = this.
|
|
1495
|
-
var tmp1_output = encoder.
|
|
1496
|
-
tmp1_output.
|
|
1497
|
-
tmp1_output.
|
|
1498
|
-
tmp1_output.
|
|
1499
|
-
tmp1_output.
|
|
1500
|
-
tmp1_output.
|
|
1501
|
-
tmp1_output.
|
|
1502
|
-
tmp1_output.
|
|
1503
|
-
};
|
|
1504
|
-
protoOf($serializer_5).
|
|
1505
|
-
return this.
|
|
1506
|
-
};
|
|
1507
|
-
protoOf($serializer_5).
|
|
1508
|
-
var tmp0_desc = this.
|
|
1494
|
+
tmp0_serialDesc.x4f('random', false);
|
|
1495
|
+
tmp0_serialDesc.x4f('signature', false);
|
|
1496
|
+
tmp0_serialDesc.x4f('bitsUsed', false);
|
|
1497
|
+
tmp0_serialDesc.x4f('bitsLeft', false);
|
|
1498
|
+
tmp0_serialDesc.x4f('requestsLeft', false);
|
|
1499
|
+
tmp0_serialDesc.x4f('advisoryDelay', false);
|
|
1500
|
+
this.z5o_1 = tmp0_serialDesc;
|
|
1501
|
+
}
|
|
1502
|
+
protoOf($serializer_5).a5p = function (encoder, value) {
|
|
1503
|
+
var tmp0_desc = this.z5o_1;
|
|
1504
|
+
var tmp1_output = encoder.j48(tmp0_desc);
|
|
1505
|
+
tmp1_output.z49(tmp0_desc, 0, $serializer_getInstance_4(), value.b5p_1);
|
|
1506
|
+
tmp1_output.b4a(tmp0_desc, 1, StringSerializer_getInstance(), value.c5p_1);
|
|
1507
|
+
tmp1_output.b4a(tmp0_desc, 2, IntSerializer_getInstance(), value.d5p_1);
|
|
1508
|
+
tmp1_output.b4a(tmp0_desc, 3, IntSerializer_getInstance(), value.e5p_1);
|
|
1509
|
+
tmp1_output.b4a(tmp0_desc, 4, IntSerializer_getInstance(), value.f5p_1);
|
|
1510
|
+
tmp1_output.b4a(tmp0_desc, 5, IntSerializer_getInstance(), value.g5p_1);
|
|
1511
|
+
tmp1_output.k48(tmp0_desc);
|
|
1512
|
+
};
|
|
1513
|
+
protoOf($serializer_5).w44 = function (encoder, value) {
|
|
1514
|
+
return this.a5p(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1515
|
+
};
|
|
1516
|
+
protoOf($serializer_5).x44 = function (decoder) {
|
|
1517
|
+
var tmp0_desc = this.z5o_1;
|
|
1509
1518
|
var tmp1_flag = true;
|
|
1510
1519
|
var tmp2_index = 0;
|
|
1511
1520
|
var tmp3_bitMask0 = 0;
|
|
@@ -1515,62 +1524,62 @@
|
|
|
1515
1524
|
var tmp7_local3 = null;
|
|
1516
1525
|
var tmp8_local4 = null;
|
|
1517
1526
|
var tmp9_local5 = null;
|
|
1518
|
-
var tmp10_input = decoder.
|
|
1519
|
-
if (tmp10_input.
|
|
1520
|
-
tmp4_local0 = tmp10_input.
|
|
1527
|
+
var tmp10_input = decoder.j48(tmp0_desc);
|
|
1528
|
+
if (tmp10_input.y48()) {
|
|
1529
|
+
tmp4_local0 = tmp10_input.v48(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1521
1530
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1522
|
-
tmp5_local1 = tmp10_input.
|
|
1531
|
+
tmp5_local1 = tmp10_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1523
1532
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1524
|
-
tmp6_local2 = tmp10_input.
|
|
1533
|
+
tmp6_local2 = tmp10_input.x48(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1525
1534
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1526
|
-
tmp7_local3 = tmp10_input.
|
|
1535
|
+
tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1527
1536
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1528
|
-
tmp8_local4 = tmp10_input.
|
|
1537
|
+
tmp8_local4 = tmp10_input.x48(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1529
1538
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1530
|
-
tmp9_local5 = tmp10_input.
|
|
1539
|
+
tmp9_local5 = tmp10_input.x48(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1531
1540
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1532
1541
|
} else
|
|
1533
1542
|
while (tmp1_flag) {
|
|
1534
|
-
tmp2_index = tmp10_input.
|
|
1543
|
+
tmp2_index = tmp10_input.z48(tmp0_desc);
|
|
1535
1544
|
switch (tmp2_index) {
|
|
1536
1545
|
case -1:
|
|
1537
1546
|
tmp1_flag = false;
|
|
1538
1547
|
break;
|
|
1539
1548
|
case 0:
|
|
1540
|
-
tmp4_local0 = tmp10_input.
|
|
1549
|
+
tmp4_local0 = tmp10_input.v48(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1541
1550
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1542
1551
|
break;
|
|
1543
1552
|
case 1:
|
|
1544
|
-
tmp5_local1 = tmp10_input.
|
|
1553
|
+
tmp5_local1 = tmp10_input.x48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1545
1554
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1546
1555
|
break;
|
|
1547
1556
|
case 2:
|
|
1548
|
-
tmp6_local2 = tmp10_input.
|
|
1557
|
+
tmp6_local2 = tmp10_input.x48(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1549
1558
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1550
1559
|
break;
|
|
1551
1560
|
case 3:
|
|
1552
|
-
tmp7_local3 = tmp10_input.
|
|
1561
|
+
tmp7_local3 = tmp10_input.x48(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1553
1562
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1554
1563
|
break;
|
|
1555
1564
|
case 4:
|
|
1556
|
-
tmp8_local4 = tmp10_input.
|
|
1565
|
+
tmp8_local4 = tmp10_input.x48(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1557
1566
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1558
1567
|
break;
|
|
1559
1568
|
case 5:
|
|
1560
|
-
tmp9_local5 = tmp10_input.
|
|
1569
|
+
tmp9_local5 = tmp10_input.x48(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1561
1570
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1562
1571
|
break;
|
|
1563
1572
|
default:
|
|
1564
1573
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1565
1574
|
}
|
|
1566
1575
|
}
|
|
1567
|
-
tmp10_input.
|
|
1576
|
+
tmp10_input.k48(tmp0_desc);
|
|
1568
1577
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1569
1578
|
};
|
|
1570
|
-
protoOf($serializer_5).
|
|
1571
|
-
return this.
|
|
1579
|
+
protoOf($serializer_5).v44 = function () {
|
|
1580
|
+
return this.z5o_1;
|
|
1572
1581
|
};
|
|
1573
|
-
protoOf($serializer_5).
|
|
1582
|
+
protoOf($serializer_5).m4g = function () {
|
|
1574
1583
|
// Inline function 'kotlin.arrayOf' call
|
|
1575
1584
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1576
1585
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1584,37 +1593,37 @@
|
|
|
1584
1593
|
}
|
|
1585
1594
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1586
1595
|
if (!(63 === (63 & seen0))) {
|
|
1587
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1596
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().z5o_1);
|
|
1588
1597
|
}
|
|
1589
|
-
$this.
|
|
1590
|
-
$this.
|
|
1591
|
-
$this.
|
|
1592
|
-
$this.
|
|
1593
|
-
$this.
|
|
1594
|
-
$this.
|
|
1598
|
+
$this.b5p_1 = random;
|
|
1599
|
+
$this.c5p_1 = signature;
|
|
1600
|
+
$this.d5p_1 = bitsUsed;
|
|
1601
|
+
$this.e5p_1 = bitsLeft;
|
|
1602
|
+
$this.f5p_1 = requestsLeft;
|
|
1603
|
+
$this.g5p_1 = advisoryDelay;
|
|
1595
1604
|
return $this;
|
|
1596
1605
|
}
|
|
1597
1606
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1598
1607
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1599
1608
|
}
|
|
1600
1609
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1610
|
+
this.b5p_1 = random;
|
|
1611
|
+
this.c5p_1 = signature;
|
|
1612
|
+
this.d5p_1 = bitsUsed;
|
|
1613
|
+
this.e5p_1 = bitsLeft;
|
|
1614
|
+
this.f5p_1 = requestsLeft;
|
|
1615
|
+
this.g5p_1 = advisoryDelay;
|
|
1607
1616
|
}
|
|
1608
1617
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1609
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1618
|
+
return 'IntegerSequencesResultDto(random=' + this.b5p_1.toString() + ', signature=' + this.c5p_1 + ', bitsUsed=' + this.d5p_1 + ', bitsLeft=' + this.e5p_1 + ', requestsLeft=' + this.f5p_1 + ', advisoryDelay=' + this.g5p_1 + ')';
|
|
1610
1619
|
};
|
|
1611
1620
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1612
|
-
var result = this.
|
|
1613
|
-
result = imul(result, 31) + (this.
|
|
1614
|
-
result = imul(result, 31) + (this.b5p_1 == null ? 0 : this.b5p_1) | 0;
|
|
1615
|
-
result = imul(result, 31) + (this.c5p_1 == null ? 0 : this.c5p_1) | 0;
|
|
1621
|
+
var result = this.b5p_1.hashCode();
|
|
1622
|
+
result = imul(result, 31) + (this.c5p_1 == null ? 0 : getStringHashCode(this.c5p_1)) | 0;
|
|
1616
1623
|
result = imul(result, 31) + (this.d5p_1 == null ? 0 : this.d5p_1) | 0;
|
|
1617
1624
|
result = imul(result, 31) + (this.e5p_1 == null ? 0 : this.e5p_1) | 0;
|
|
1625
|
+
result = imul(result, 31) + (this.f5p_1 == null ? 0 : this.f5p_1) | 0;
|
|
1626
|
+
result = imul(result, 31) + (this.g5p_1 == null ? 0 : this.g5p_1) | 0;
|
|
1618
1627
|
return result;
|
|
1619
1628
|
};
|
|
1620
1629
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1623,11 +1632,7 @@
|
|
|
1623
1632
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1624
1633
|
return false;
|
|
1625
1634
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1626
|
-
if (!this.
|
|
1627
|
-
return false;
|
|
1628
|
-
if (!(this.a5p_1 == tmp0_other_with_cast.a5p_1))
|
|
1629
|
-
return false;
|
|
1630
|
-
if (!(this.b5p_1 == tmp0_other_with_cast.b5p_1))
|
|
1635
|
+
if (!this.b5p_1.equals(tmp0_other_with_cast.b5p_1))
|
|
1631
1636
|
return false;
|
|
1632
1637
|
if (!(this.c5p_1 == tmp0_other_with_cast.c5p_1))
|
|
1633
1638
|
return false;
|
|
@@ -1635,6 +1640,10 @@
|
|
|
1635
1640
|
return false;
|
|
1636
1641
|
if (!(this.e5p_1 == tmp0_other_with_cast.e5p_1))
|
|
1637
1642
|
return false;
|
|
1643
|
+
if (!(this.f5p_1 == tmp0_other_with_cast.f5p_1))
|
|
1644
|
+
return false;
|
|
1645
|
+
if (!(this.g5p_1 == tmp0_other_with_cast.g5p_1))
|
|
1646
|
+
return false;
|
|
1638
1647
|
return true;
|
|
1639
1648
|
};
|
|
1640
1649
|
function Companion_7() {
|
|
@@ -1643,7 +1652,7 @@
|
|
|
1643
1652
|
// Inline function 'kotlin.arrayOf' call
|
|
1644
1653
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1645
1654
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1646
|
-
tmp.
|
|
1655
|
+
tmp.h5p_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1647
1656
|
}
|
|
1648
1657
|
var Companion_instance_9;
|
|
1649
1658
|
function Companion_getInstance_10() {
|
|
@@ -1654,74 +1663,74 @@
|
|
|
1654
1663
|
function $serializer_6() {
|
|
1655
1664
|
$serializer_instance_4 = this;
|
|
1656
1665
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1657
|
-
tmp0_serialDesc.
|
|
1658
|
-
tmp0_serialDesc.
|
|
1659
|
-
tmp0_serialDesc.
|
|
1660
|
-
this.
|
|
1661
|
-
}
|
|
1662
|
-
protoOf($serializer_6).
|
|
1663
|
-
var tmp0_desc = this.
|
|
1664
|
-
var tmp1_output = encoder.
|
|
1665
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1666
|
-
tmp1_output.
|
|
1667
|
-
tmp1_output.
|
|
1668
|
-
tmp1_output.
|
|
1669
|
-
tmp1_output.
|
|
1670
|
-
};
|
|
1671
|
-
protoOf($serializer_6).
|
|
1672
|
-
return this.
|
|
1673
|
-
};
|
|
1674
|
-
protoOf($serializer_6).
|
|
1675
|
-
var tmp0_desc = this.
|
|
1666
|
+
tmp0_serialDesc.x4f('data', false);
|
|
1667
|
+
tmp0_serialDesc.x4f('completionTime', false);
|
|
1668
|
+
tmp0_serialDesc.x4f('ticketId', false);
|
|
1669
|
+
this.i5p_1 = tmp0_serialDesc;
|
|
1670
|
+
}
|
|
1671
|
+
protoOf($serializer_6).j5p = function (encoder, value) {
|
|
1672
|
+
var tmp0_desc = this.i5p_1;
|
|
1673
|
+
var tmp1_output = encoder.j48(tmp0_desc);
|
|
1674
|
+
var tmp2_cached = Companion_getInstance_10().h5p_1;
|
|
1675
|
+
tmp1_output.z49(tmp0_desc, 0, tmp2_cached[0], value.k5p_1);
|
|
1676
|
+
tmp1_output.x49(tmp0_desc, 1, value.l5p_1);
|
|
1677
|
+
tmp1_output.b4a(tmp0_desc, 2, StringSerializer_getInstance(), value.m5p_1);
|
|
1678
|
+
tmp1_output.k48(tmp0_desc);
|
|
1679
|
+
};
|
|
1680
|
+
protoOf($serializer_6).w44 = function (encoder, value) {
|
|
1681
|
+
return this.j5p(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1682
|
+
};
|
|
1683
|
+
protoOf($serializer_6).x44 = function (decoder) {
|
|
1684
|
+
var tmp0_desc = this.i5p_1;
|
|
1676
1685
|
var tmp1_flag = true;
|
|
1677
1686
|
var tmp2_index = 0;
|
|
1678
1687
|
var tmp3_bitMask0 = 0;
|
|
1679
1688
|
var tmp4_local0 = null;
|
|
1680
1689
|
var tmp5_local1 = null;
|
|
1681
1690
|
var tmp6_local2 = null;
|
|
1682
|
-
var tmp7_input = decoder.
|
|
1683
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1684
|
-
if (tmp7_input.
|
|
1685
|
-
tmp4_local0 = tmp7_input.
|
|
1691
|
+
var tmp7_input = decoder.j48(tmp0_desc);
|
|
1692
|
+
var tmp8_cached = Companion_getInstance_10().h5p_1;
|
|
1693
|
+
if (tmp7_input.y48()) {
|
|
1694
|
+
tmp4_local0 = tmp7_input.v48(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1686
1695
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1687
|
-
tmp5_local1 = tmp7_input.
|
|
1696
|
+
tmp5_local1 = tmp7_input.t48(tmp0_desc, 1);
|
|
1688
1697
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1689
|
-
tmp6_local2 = tmp7_input.
|
|
1698
|
+
tmp6_local2 = tmp7_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1690
1699
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1691
1700
|
} else
|
|
1692
1701
|
while (tmp1_flag) {
|
|
1693
|
-
tmp2_index = tmp7_input.
|
|
1702
|
+
tmp2_index = tmp7_input.z48(tmp0_desc);
|
|
1694
1703
|
switch (tmp2_index) {
|
|
1695
1704
|
case -1:
|
|
1696
1705
|
tmp1_flag = false;
|
|
1697
1706
|
break;
|
|
1698
1707
|
case 0:
|
|
1699
|
-
tmp4_local0 = tmp7_input.
|
|
1708
|
+
tmp4_local0 = tmp7_input.v48(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1700
1709
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1701
1710
|
break;
|
|
1702
1711
|
case 1:
|
|
1703
|
-
tmp5_local1 = tmp7_input.
|
|
1712
|
+
tmp5_local1 = tmp7_input.t48(tmp0_desc, 1);
|
|
1704
1713
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1705
1714
|
break;
|
|
1706
1715
|
case 2:
|
|
1707
|
-
tmp6_local2 = tmp7_input.
|
|
1716
|
+
tmp6_local2 = tmp7_input.x48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1708
1717
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1709
1718
|
break;
|
|
1710
1719
|
default:
|
|
1711
1720
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1712
1721
|
}
|
|
1713
1722
|
}
|
|
1714
|
-
tmp7_input.
|
|
1723
|
+
tmp7_input.k48(tmp0_desc);
|
|
1715
1724
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1716
1725
|
};
|
|
1717
|
-
protoOf($serializer_6).
|
|
1718
|
-
return this.
|
|
1726
|
+
protoOf($serializer_6).v44 = function () {
|
|
1727
|
+
return this.i5p_1;
|
|
1719
1728
|
};
|
|
1720
|
-
protoOf($serializer_6).
|
|
1729
|
+
protoOf($serializer_6).m4g = function () {
|
|
1721
1730
|
// Inline function 'kotlin.arrayOf' call
|
|
1722
1731
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1723
1732
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1724
|
-
return [Companion_getInstance_10().
|
|
1733
|
+
return [Companion_getInstance_10().h5p_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1725
1734
|
};
|
|
1726
1735
|
var $serializer_instance_4;
|
|
1727
1736
|
function $serializer_getInstance_4() {
|
|
@@ -1731,11 +1740,11 @@
|
|
|
1731
1740
|
}
|
|
1732
1741
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1733
1742
|
if (!(7 === (7 & seen0))) {
|
|
1734
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1743
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().i5p_1);
|
|
1735
1744
|
}
|
|
1736
|
-
$this.
|
|
1737
|
-
$this.
|
|
1738
|
-
$this.
|
|
1745
|
+
$this.k5p_1 = data;
|
|
1746
|
+
$this.l5p_1 = completionTime;
|
|
1747
|
+
$this.m5p_1 = ticketId;
|
|
1739
1748
|
return $this;
|
|
1740
1749
|
}
|
|
1741
1750
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1744,12 +1753,12 @@
|
|
|
1744
1753
|
function IntegerSequencesDataDto() {
|
|
1745
1754
|
}
|
|
1746
1755
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1747
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1756
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.k5p_1) + ', completionTime=' + this.l5p_1 + ', ticketId=' + this.m5p_1 + ')';
|
|
1748
1757
|
};
|
|
1749
1758
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1750
|
-
var result = hashCode(this.
|
|
1751
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1752
|
-
result = imul(result, 31) + (this.
|
|
1759
|
+
var result = hashCode(this.k5p_1);
|
|
1760
|
+
result = imul(result, 31) + getStringHashCode(this.l5p_1) | 0;
|
|
1761
|
+
result = imul(result, 31) + (this.m5p_1 == null ? 0 : getStringHashCode(this.m5p_1)) | 0;
|
|
1753
1762
|
return result;
|
|
1754
1763
|
};
|
|
1755
1764
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1758,11 +1767,11 @@
|
|
|
1758
1767
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1759
1768
|
return false;
|
|
1760
1769
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1761
|
-
if (!equals(this.
|
|
1770
|
+
if (!equals(this.k5p_1, tmp0_other_with_cast.k5p_1))
|
|
1762
1771
|
return false;
|
|
1763
|
-
if (!(this.
|
|
1772
|
+
if (!(this.l5p_1 === tmp0_other_with_cast.l5p_1))
|
|
1764
1773
|
return false;
|
|
1765
|
-
if (!(this.
|
|
1774
|
+
if (!(this.m5p_1 == tmp0_other_with_cast.m5p_1))
|
|
1766
1775
|
return false;
|
|
1767
1776
|
return true;
|
|
1768
1777
|
};
|
|
@@ -1773,15 +1782,15 @@
|
|
|
1773
1782
|
}
|
|
1774
1783
|
function throwIfError($this, bodyAsJson, response, $completion) {
|
|
1775
1784
|
var tmp = new $throwIfErrorCOROUTINE$2($this, bodyAsJson, response, $completion);
|
|
1776
|
-
tmp.
|
|
1777
|
-
tmp.
|
|
1778
|
-
return tmp.
|
|
1785
|
+
tmp.h9_1 = Unit_instance;
|
|
1786
|
+
tmp.i9_1 = null;
|
|
1787
|
+
return tmp.n9();
|
|
1779
1788
|
}
|
|
1780
1789
|
function extractRandomResult($this, bodyAsJson) {
|
|
1781
1790
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1782
1791
|
}
|
|
1783
1792
|
function Companion_8() {
|
|
1784
|
-
this.
|
|
1793
|
+
this.a5q_1 = 52;
|
|
1785
1794
|
}
|
|
1786
1795
|
var Companion_instance_10;
|
|
1787
1796
|
function Companion_getInstance_11() {
|
|
@@ -1789,48 +1798,48 @@
|
|
|
1789
1798
|
}
|
|
1790
1799
|
function $getRandomCardDecksCOROUTINE$1(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1791
1800
|
CoroutineImpl.call(this, resultContinuation);
|
|
1792
|
-
this.
|
|
1793
|
-
this.
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1796
|
-
this.
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1799
|
-
}
|
|
1800
|
-
protoOf($getRandomCardDecksCOROUTINE$1).
|
|
1801
|
-
var suspendResult = this.
|
|
1801
|
+
this.j5q_1 = _this__u8e3s4;
|
|
1802
|
+
this.k5q_1 = min;
|
|
1803
|
+
this.l5q_1 = max;
|
|
1804
|
+
this.m5q_1 = decksCount;
|
|
1805
|
+
this.n5q_1 = cardsCount;
|
|
1806
|
+
this.o5q_1 = userData;
|
|
1807
|
+
this.p5q_1 = signed;
|
|
1808
|
+
}
|
|
1809
|
+
protoOf($getRandomCardDecksCOROUTINE$1).n9 = function () {
|
|
1810
|
+
var suspendResult = this.h9_1;
|
|
1802
1811
|
$sm: do
|
|
1803
1812
|
try {
|
|
1804
|
-
var tmp = this.
|
|
1813
|
+
var tmp = this.f9_1;
|
|
1805
1814
|
switch (tmp) {
|
|
1806
1815
|
case 0:
|
|
1807
|
-
this.
|
|
1808
|
-
this.
|
|
1816
|
+
this.g9_1 = 6;
|
|
1817
|
+
this.g9_1 = 5;
|
|
1809
1818
|
var tmp_0 = this;
|
|
1810
|
-
tmp_0.
|
|
1819
|
+
tmp_0.q5q_1 = this.j5q_1.z5q_1;
|
|
1811
1820
|
var tmp_1 = this;
|
|
1812
|
-
tmp_1.
|
|
1821
|
+
tmp_1.r5q_1 = this.q5q_1;
|
|
1813
1822
|
var tmp_2 = this;
|
|
1814
1823
|
var this_0 = new HttpRequestBuilder();
|
|
1815
1824
|
url(this_0, '/json-rpc/4/invoke');
|
|
1816
|
-
var tmp11_id = this.
|
|
1817
|
-
var tmp12_method = this.
|
|
1818
|
-
var tmp8_apiKey = this.
|
|
1819
|
-
var size = this.
|
|
1825
|
+
var tmp11_id = this.o5q_1.id;
|
|
1826
|
+
var tmp12_method = this.p5q_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1827
|
+
var tmp8_apiKey = this.j5q_1.a5r_1;
|
|
1828
|
+
var size = this.m5q_1;
|
|
1820
1829
|
var list = ArrayList_init_$Create$(size);
|
|
1821
1830
|
var inductionVariable = 0;
|
|
1822
1831
|
if (inductionVariable < size)
|
|
1823
1832
|
do {
|
|
1824
1833
|
var index = inductionVariable;
|
|
1825
1834
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1826
|
-
list.e(this.
|
|
1835
|
+
list.e(this.n5q_1);
|
|
1827
1836
|
}
|
|
1828
1837
|
while (inductionVariable < size);
|
|
1829
|
-
var tmp10_userData = this.
|
|
1830
|
-
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.
|
|
1838
|
+
var tmp10_userData = this.p5q_1 ? mapToDto(this.o5q_1) : null;
|
|
1839
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.m5q_1, list, this.k5q_1, this.l5q_1, false, null, tmp10_userData);
|
|
1831
1840
|
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1832
1841
|
if (body == null) {
|
|
1833
|
-
this_0.
|
|
1842
|
+
this_0.b2w_1 = NullBody_instance;
|
|
1834
1843
|
var tmp_3 = JsType_instance;
|
|
1835
1844
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1836
1845
|
var tmp_5;
|
|
@@ -1846,13 +1855,13 @@
|
|
|
1846
1855
|
}
|
|
1847
1856
|
tmp_5 = tmp_6;
|
|
1848
1857
|
}
|
|
1849
|
-
this_0.
|
|
1858
|
+
this_0.x31(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1850
1859
|
} else {
|
|
1851
1860
|
if (body instanceof OutgoingContent) {
|
|
1852
|
-
this_0.
|
|
1853
|
-
this_0.
|
|
1861
|
+
this_0.b2w_1 = body;
|
|
1862
|
+
this_0.x31(null);
|
|
1854
1863
|
} else {
|
|
1855
|
-
this_0.
|
|
1864
|
+
this_0.b2w_1 = body;
|
|
1856
1865
|
var tmp_7 = JsType_instance;
|
|
1857
1866
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1858
1867
|
var tmp_9;
|
|
@@ -1868,29 +1877,29 @@
|
|
|
1868
1877
|
}
|
|
1869
1878
|
tmp_9 = tmp_10;
|
|
1870
1879
|
}
|
|
1871
|
-
this_0.
|
|
1880
|
+
this_0.x31(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1872
1881
|
}
|
|
1873
1882
|
}
|
|
1874
1883
|
|
|
1875
|
-
tmp_2.
|
|
1876
|
-
this.
|
|
1884
|
+
tmp_2.s5q_1 = this_0;
|
|
1885
|
+
this.s5q_1.z2v_1 = Companion_getInstance().r2k_1;
|
|
1877
1886
|
var tmp_11 = this;
|
|
1878
|
-
tmp_11.
|
|
1887
|
+
tmp_11.t5q_1 = this.r5q_1;
|
|
1879
1888
|
var tmp_12 = this;
|
|
1880
|
-
tmp_12.
|
|
1881
|
-
this.
|
|
1882
|
-
suspendResult = (new HttpStatement(this.
|
|
1889
|
+
tmp_12.u5q_1 = this.s5q_1;
|
|
1890
|
+
this.f9_1 = 1;
|
|
1891
|
+
suspendResult = (new HttpStatement(this.u5q_1, this.t5q_1)).h3p(this);
|
|
1883
1892
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1884
1893
|
return suspendResult;
|
|
1885
1894
|
}
|
|
1886
1895
|
|
|
1887
1896
|
continue $sm;
|
|
1888
1897
|
case 1:
|
|
1889
|
-
this.
|
|
1898
|
+
this.v5q_1 = suspendResult;
|
|
1890
1899
|
var tmp_13 = this;
|
|
1891
|
-
tmp_13.
|
|
1892
|
-
this.
|
|
1893
|
-
var tmp_14 = this.
|
|
1900
|
+
tmp_13.w5q_1 = this.v5q_1;
|
|
1901
|
+
this.f9_1 = 2;
|
|
1902
|
+
var tmp_14 = this.w5q_1.g2z();
|
|
1894
1903
|
var tmp_15 = JsType_instance;
|
|
1895
1904
|
var tmp_16 = getKClass(JsonObject);
|
|
1896
1905
|
var tmp_17;
|
|
@@ -1907,7 +1916,7 @@
|
|
|
1907
1916
|
tmp_17 = tmp_18;
|
|
1908
1917
|
}
|
|
1909
1918
|
|
|
1910
|
-
suspendResult = tmp_14.
|
|
1919
|
+
suspendResult = tmp_14.k2y(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1911
1920
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1912
1921
|
return suspendResult;
|
|
1913
1922
|
}
|
|
@@ -1915,9 +1924,9 @@
|
|
|
1915
1924
|
continue $sm;
|
|
1916
1925
|
case 2:
|
|
1917
1926
|
var tmp_19 = this;
|
|
1918
|
-
tmp_19.
|
|
1919
|
-
this.
|
|
1920
|
-
suspendResult = throwIfError(this.
|
|
1927
|
+
tmp_19.x5q_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1928
|
+
this.f9_1 = 3;
|
|
1929
|
+
suspendResult = throwIfError(this.j5q_1, this.x5q_1, this.v5q_1, this);
|
|
1921
1930
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1922
1931
|
return suspendResult;
|
|
1923
1932
|
}
|
|
@@ -1925,9 +1934,9 @@
|
|
|
1925
1934
|
continue $sm;
|
|
1926
1935
|
case 3:
|
|
1927
1936
|
var tmp_20 = this;
|
|
1928
|
-
tmp_20.
|
|
1929
|
-
this.
|
|
1930
|
-
var tmp_21 = this.
|
|
1937
|
+
tmp_20.y5q_1 = this.v5q_1;
|
|
1938
|
+
this.f9_1 = 4;
|
|
1939
|
+
var tmp_21 = this.y5q_1.g2z();
|
|
1931
1940
|
var tmp_22 = JsType_instance;
|
|
1932
1941
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1933
1942
|
var tmp_24;
|
|
@@ -1944,7 +1953,7 @@
|
|
|
1944
1953
|
tmp_24 = tmp_25;
|
|
1945
1954
|
}
|
|
1946
1955
|
|
|
1947
|
-
suspendResult = tmp_21.
|
|
1956
|
+
suspendResult = tmp_21.k2y(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1948
1957
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1949
1958
|
return suspendResult;
|
|
1950
1959
|
}
|
|
@@ -1952,59 +1961,59 @@
|
|
|
1952
1961
|
continue $sm;
|
|
1953
1962
|
case 4:
|
|
1954
1963
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1955
|
-
var randomJson = extractRandomResult(this.
|
|
1956
|
-
var tmp14_cardDecks = responseDto.
|
|
1957
|
-
var tmp15_signature = responseDto.
|
|
1958
|
-
var tmp16_id = responseDto.
|
|
1964
|
+
var randomJson = extractRandomResult(this.j5q_1, this.x5q_1);
|
|
1965
|
+
var tmp14_cardDecks = responseDto.x5o_1.b5p_1.k5p_1;
|
|
1966
|
+
var tmp15_signature = responseDto.x5o_1.c5p_1;
|
|
1967
|
+
var tmp16_id = responseDto.y5o_1;
|
|
1959
1968
|
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1960
1969
|
case 5:
|
|
1961
|
-
this.
|
|
1962
|
-
var tmp_26 = this.
|
|
1970
|
+
this.g9_1 = 6;
|
|
1971
|
+
var tmp_26 = this.i9_1;
|
|
1963
1972
|
if (tmp_26 instanceof Error) {
|
|
1964
|
-
var error = this.
|
|
1973
|
+
var error = this.i9_1;
|
|
1965
1974
|
if (error instanceof RandomException)
|
|
1966
1975
|
throw error;
|
|
1967
1976
|
else {
|
|
1968
1977
|
throw new RandomException(100001, '[getRandomCardDeck] error, message = ' + error.message, error);
|
|
1969
1978
|
}
|
|
1970
1979
|
} else {
|
|
1971
|
-
throw this.
|
|
1980
|
+
throw this.i9_1;
|
|
1972
1981
|
}
|
|
1973
1982
|
|
|
1974
1983
|
case 6:
|
|
1975
|
-
throw this.
|
|
1984
|
+
throw this.i9_1;
|
|
1976
1985
|
}
|
|
1977
1986
|
} catch ($p) {
|
|
1978
1987
|
var e = $p;
|
|
1979
|
-
if (this.
|
|
1988
|
+
if (this.g9_1 === 6) {
|
|
1980
1989
|
throw e;
|
|
1981
1990
|
} else {
|
|
1982
|
-
this.
|
|
1983
|
-
this.
|
|
1991
|
+
this.f9_1 = this.g9_1;
|
|
1992
|
+
this.i9_1 = e;
|
|
1984
1993
|
}
|
|
1985
1994
|
}
|
|
1986
1995
|
while (true);
|
|
1987
1996
|
};
|
|
1988
1997
|
function $throwIfErrorCOROUTINE$2(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1989
1998
|
CoroutineImpl.call(this, resultContinuation);
|
|
1990
|
-
this.
|
|
1991
|
-
this.
|
|
1992
|
-
this.
|
|
1999
|
+
this.w5p_1 = _this__u8e3s4;
|
|
2000
|
+
this.x5p_1 = bodyAsJson;
|
|
2001
|
+
this.y5p_1 = response;
|
|
1993
2002
|
}
|
|
1994
|
-
protoOf($throwIfErrorCOROUTINE$2).
|
|
1995
|
-
var suspendResult = this.
|
|
2003
|
+
protoOf($throwIfErrorCOROUTINE$2).n9 = function () {
|
|
2004
|
+
var suspendResult = this.h9_1;
|
|
1996
2005
|
$sm: do
|
|
1997
2006
|
try {
|
|
1998
|
-
var tmp = this.
|
|
2007
|
+
var tmp = this.f9_1;
|
|
1999
2008
|
switch (tmp) {
|
|
2000
2009
|
case 0:
|
|
2001
|
-
this.
|
|
2002
|
-
var this_0 = this.
|
|
2003
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2010
|
+
this.g9_1 = 3;
|
|
2011
|
+
var this_0 = this.x5p_1;
|
|
2012
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).f2('error')) {
|
|
2004
2013
|
var tmp_0 = this;
|
|
2005
|
-
tmp_0.
|
|
2006
|
-
this.
|
|
2007
|
-
var tmp_1 = this.
|
|
2014
|
+
tmp_0.z5p_1 = this.y5p_1;
|
|
2015
|
+
this.f9_1 = 2;
|
|
2016
|
+
var tmp_1 = this.z5p_1.g2z();
|
|
2008
2017
|
var tmp_2 = JsType_instance;
|
|
2009
2018
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2010
2019
|
var tmp_4;
|
|
@@ -2020,13 +2029,13 @@
|
|
|
2020
2029
|
}
|
|
2021
2030
|
tmp_4 = tmp_5;
|
|
2022
2031
|
}
|
|
2023
|
-
suspendResult = tmp_1.
|
|
2032
|
+
suspendResult = tmp_1.k2y(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2024
2033
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2025
2034
|
return suspendResult;
|
|
2026
2035
|
}
|
|
2027
2036
|
continue $sm;
|
|
2028
2037
|
} else {
|
|
2029
|
-
this.
|
|
2038
|
+
this.f9_1 = 1;
|
|
2030
2039
|
continue $sm;
|
|
2031
2040
|
}
|
|
2032
2041
|
|
|
@@ -2034,33 +2043,33 @@
|
|
|
2034
2043
|
return Unit_instance;
|
|
2035
2044
|
case 2:
|
|
2036
2045
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2037
|
-
var tmp18_safe_receiver = errorResponseDto.
|
|
2038
|
-
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.
|
|
2039
|
-
var tmp19_safe_receiver = errorResponseDto.
|
|
2040
|
-
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
2046
|
+
var tmp18_safe_receiver = errorResponseDto.p5n_1;
|
|
2047
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.s5n_1;
|
|
2048
|
+
var tmp19_safe_receiver = errorResponseDto.p5n_1;
|
|
2049
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.t5n_1);
|
|
2041
2050
|
case 3:
|
|
2042
|
-
throw this.
|
|
2051
|
+
throw this.i9_1;
|
|
2043
2052
|
}
|
|
2044
2053
|
} catch ($p) {
|
|
2045
2054
|
var e = $p;
|
|
2046
|
-
if (this.
|
|
2055
|
+
if (this.g9_1 === 3) {
|
|
2047
2056
|
throw e;
|
|
2048
2057
|
} else {
|
|
2049
|
-
this.
|
|
2050
|
-
this.
|
|
2058
|
+
this.f9_1 = this.g9_1;
|
|
2059
|
+
this.i9_1 = e;
|
|
2051
2060
|
}
|
|
2052
2061
|
}
|
|
2053
2062
|
while (true);
|
|
2054
2063
|
};
|
|
2055
2064
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2056
|
-
this.
|
|
2057
|
-
this.
|
|
2065
|
+
this.z5q_1 = client;
|
|
2066
|
+
this.a5r_1 = apiKey;
|
|
2058
2067
|
}
|
|
2059
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2068
|
+
protoOf(RandomOrgApiServiceImpl).n5p = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2060
2069
|
var tmp = new $getRandomCardDecksCOROUTINE$1(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2061
|
-
tmp.
|
|
2062
|
-
tmp.
|
|
2063
|
-
return tmp.
|
|
2070
|
+
tmp.h9_1 = Unit_instance;
|
|
2071
|
+
tmp.i9_1 = null;
|
|
2072
|
+
return tmp.n9();
|
|
2064
2073
|
};
|
|
2065
2074
|
function PoolParams(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown) {
|
|
2066
2075
|
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
@@ -2083,37 +2092,37 @@
|
|
|
2083
2092
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2084
2093
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2085
2094
|
}
|
|
2086
|
-
protoOf(PoolParams).
|
|
2095
|
+
protoOf(PoolParams).i5n = function () {
|
|
2087
2096
|
return this.poolSize;
|
|
2088
2097
|
};
|
|
2089
|
-
protoOf(PoolParams).
|
|
2098
|
+
protoOf(PoolParams).j5n = function () {
|
|
2090
2099
|
return this.thresholdForUsedPool;
|
|
2091
2100
|
};
|
|
2092
|
-
protoOf(PoolParams).
|
|
2101
|
+
protoOf(PoolParams).b5r = function () {
|
|
2093
2102
|
return this.requestDurationWarn;
|
|
2094
2103
|
};
|
|
2095
|
-
protoOf(PoolParams).
|
|
2104
|
+
protoOf(PoolParams).c5r = function () {
|
|
2096
2105
|
return this.failedRequestAttempts;
|
|
2097
2106
|
};
|
|
2098
|
-
protoOf(PoolParams).
|
|
2107
|
+
protoOf(PoolParams).d5r = function () {
|
|
2099
2108
|
return this.failedAttemptCooldown;
|
|
2100
2109
|
};
|
|
2101
|
-
protoOf(PoolParams).
|
|
2110
|
+
protoOf(PoolParams).qe = function () {
|
|
2102
2111
|
return this.poolSize;
|
|
2103
2112
|
};
|
|
2104
|
-
protoOf(PoolParams).
|
|
2113
|
+
protoOf(PoolParams).re = function () {
|
|
2105
2114
|
return this.thresholdForUsedPool;
|
|
2106
2115
|
};
|
|
2107
|
-
protoOf(PoolParams).
|
|
2116
|
+
protoOf(PoolParams).ik = function () {
|
|
2108
2117
|
return this.requestDurationWarn;
|
|
2109
2118
|
};
|
|
2110
|
-
protoOf(PoolParams).
|
|
2119
|
+
protoOf(PoolParams).a5n = function () {
|
|
2111
2120
|
return this.failedRequestAttempts;
|
|
2112
2121
|
};
|
|
2113
|
-
protoOf(PoolParams).
|
|
2122
|
+
protoOf(PoolParams).e5r = function () {
|
|
2114
2123
|
return this.failedAttemptCooldown;
|
|
2115
2124
|
};
|
|
2116
|
-
protoOf(PoolParams).
|
|
2125
|
+
protoOf(PoolParams).f5r = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown) {
|
|
2117
2126
|
return new PoolParams(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2118
2127
|
};
|
|
2119
2128
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2122,7 +2131,7 @@
|
|
|
2122
2131
|
requestDurationWarn = requestDurationWarn === VOID ? this.requestDurationWarn : requestDurationWarn;
|
|
2123
2132
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2124
2133
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2125
|
-
return this.
|
|
2134
|
+
return this.f5r(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2126
2135
|
};
|
|
2127
2136
|
protoOf(PoolParams).toString = function () {
|
|
2128
2137
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', requestDurationWarn=' + this.requestDurationWarn + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2159,74 +2168,74 @@
|
|
|
2159
2168
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2160
2169
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2161
2170
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2171
|
+
this.j5r_1 = randomResult;
|
|
2172
|
+
this.k5r_1 = usedByGames;
|
|
2173
|
+
this.l5r_1 = reservedCardDecks;
|
|
2174
|
+
this.m5r_1 = isUsed;
|
|
2166
2175
|
}
|
|
2167
|
-
protoOf(RandomPoolValue).
|
|
2168
|
-
return this.
|
|
2176
|
+
protoOf(RandomPoolValue).n5r = function () {
|
|
2177
|
+
return this.j5r_1.s5m_1.m();
|
|
2169
2178
|
};
|
|
2170
|
-
protoOf(RandomPoolValue).
|
|
2171
|
-
if (this.
|
|
2179
|
+
protoOf(RandomPoolValue).o5r = function (minRoundsCount) {
|
|
2180
|
+
if (this.m5r_1) {
|
|
2172
2181
|
return false;
|
|
2173
2182
|
}
|
|
2174
|
-
var availableCount = this.
|
|
2183
|
+
var availableCount = this.n5r() - this.l5r_1 | 0;
|
|
2175
2184
|
return availableCount >= minRoundsCount;
|
|
2176
2185
|
};
|
|
2177
|
-
protoOf(RandomPoolValue).
|
|
2178
|
-
var lastReservedCardDeckIndex = this.
|
|
2186
|
+
protoOf(RandomPoolValue).p5r = function (gameId, reservedCardDecks, thresholdForUsedPool) {
|
|
2187
|
+
var lastReservedCardDeckIndex = this.l5r_1 - 1 | 0;
|
|
2179
2188
|
// Inline function 'kotlin.apply' call
|
|
2180
|
-
var this_0 = toMutableMap(this.
|
|
2189
|
+
var this_0 = toMutableMap(this.k5r_1);
|
|
2181
2190
|
// Inline function 'kotlin.contracts.contract' call
|
|
2182
2191
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2183
|
-
this_0.
|
|
2192
|
+
this_0.k2(gameId, lastReservedCardDeckIndex + 1 | 0);
|
|
2184
2193
|
var newNewUsedBy = toMap(this_0);
|
|
2185
|
-
var newReservedCardDecks = this.
|
|
2186
|
-
return this.
|
|
2194
|
+
var newReservedCardDecks = this.l5r_1 + reservedCardDecks | 0;
|
|
2195
|
+
return this.q5r(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > this.n5r());
|
|
2187
2196
|
};
|
|
2188
|
-
protoOf(RandomPoolValue).
|
|
2189
|
-
var currentCardDeckIndex = getValue(this.
|
|
2197
|
+
protoOf(RandomPoolValue).r5r = function (gameId) {
|
|
2198
|
+
var currentCardDeckIndex = getValue(this.k5r_1, gameId);
|
|
2190
2199
|
var tmp;
|
|
2191
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2200
|
+
if (currentCardDeckIndex === get_lastIndex(this.j5r_1.s5m_1)) {
|
|
2192
2201
|
tmp = 0;
|
|
2193
2202
|
} else {
|
|
2194
2203
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2195
2204
|
}
|
|
2196
2205
|
var newCardDeckIndex = tmp;
|
|
2197
2206
|
// Inline function 'kotlin.apply' call
|
|
2198
|
-
var this_0 = toMutableMap(this.
|
|
2207
|
+
var this_0 = toMutableMap(this.k5r_1);
|
|
2199
2208
|
// Inline function 'kotlin.contracts.contract' call
|
|
2200
2209
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2201
|
-
this_0.
|
|
2210
|
+
this_0.k2(gameId, newCardDeckIndex);
|
|
2202
2211
|
var newNewUsedBy = toMap(this_0);
|
|
2203
|
-
return this.
|
|
2212
|
+
return this.q5r(VOID, newNewUsedBy);
|
|
2204
2213
|
};
|
|
2205
|
-
protoOf(RandomPoolValue).
|
|
2206
|
-
return this.
|
|
2214
|
+
protoOf(RandomPoolValue).s5r = function (gameId, reservedCardDecks) {
|
|
2215
|
+
return this.q5r(VOID, mapOf(to(gameId, 0)), reservedCardDecks);
|
|
2207
2216
|
};
|
|
2208
|
-
protoOf(RandomPoolValue).
|
|
2209
|
-
var index = getValue(this.
|
|
2210
|
-
return new GameCardDeckData(index, this.
|
|
2217
|
+
protoOf(RandomPoolValue).t5r = function (gameId) {
|
|
2218
|
+
var index = getValue(this.k5r_1, gameId);
|
|
2219
|
+
return new GameCardDeckData(index, this.j5r_1.s5m_1.o(index));
|
|
2211
2220
|
};
|
|
2212
|
-
protoOf(RandomPoolValue).
|
|
2221
|
+
protoOf(RandomPoolValue).u5r = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2213
2222
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2214
2223
|
};
|
|
2215
|
-
protoOf(RandomPoolValue).
|
|
2216
|
-
randomResult = randomResult === VOID ? this.
|
|
2217
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2218
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2219
|
-
isUsed = isUsed === VOID ? this.
|
|
2220
|
-
return $super === VOID ? this.
|
|
2224
|
+
protoOf(RandomPoolValue).q5r = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2225
|
+
randomResult = randomResult === VOID ? this.j5r_1 : randomResult;
|
|
2226
|
+
usedByGames = usedByGames === VOID ? this.k5r_1 : usedByGames;
|
|
2227
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.l5r_1 : reservedCardDecks;
|
|
2228
|
+
isUsed = isUsed === VOID ? this.m5r_1 : isUsed;
|
|
2229
|
+
return $super === VOID ? this.u5r(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.u5r.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2221
2230
|
};
|
|
2222
2231
|
protoOf(RandomPoolValue).toString = function () {
|
|
2223
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2232
|
+
return 'RandomPoolValue(randomResult=' + this.j5r_1.toString() + ', usedByGames=' + toString(this.k5r_1) + ', reservedCardDecks=' + this.l5r_1 + ', isUsed=' + this.m5r_1 + ')';
|
|
2224
2233
|
};
|
|
2225
2234
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2226
|
-
var result = this.
|
|
2227
|
-
result = imul(result, 31) + hashCode(this.
|
|
2228
|
-
result = imul(result, 31) + this.
|
|
2229
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2235
|
+
var result = this.j5r_1.hashCode();
|
|
2236
|
+
result = imul(result, 31) + hashCode(this.k5r_1) | 0;
|
|
2237
|
+
result = imul(result, 31) + this.l5r_1 | 0;
|
|
2238
|
+
result = imul(result, 31) + getBooleanHashCode(this.m5r_1) | 0;
|
|
2230
2239
|
return result;
|
|
2231
2240
|
};
|
|
2232
2241
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2235,48 +2244,48 @@
|
|
|
2235
2244
|
if (!(other instanceof RandomPoolValue))
|
|
2236
2245
|
return false;
|
|
2237
2246
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2238
|
-
if (!this.
|
|
2247
|
+
if (!this.j5r_1.equals(tmp0_other_with_cast.j5r_1))
|
|
2239
2248
|
return false;
|
|
2240
|
-
if (!equals(this.
|
|
2249
|
+
if (!equals(this.k5r_1, tmp0_other_with_cast.k5r_1))
|
|
2241
2250
|
return false;
|
|
2242
|
-
if (!(this.
|
|
2251
|
+
if (!(this.l5r_1 === tmp0_other_with_cast.l5r_1))
|
|
2243
2252
|
return false;
|
|
2244
|
-
if (!(this.
|
|
2253
|
+
if (!(this.m5r_1 === tmp0_other_with_cast.m5r_1))
|
|
2245
2254
|
return false;
|
|
2246
2255
|
return true;
|
|
2247
2256
|
};
|
|
2248
2257
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2249
|
-
this.
|
|
2250
|
-
this.
|
|
2251
|
-
this.
|
|
2252
|
-
this.
|
|
2253
|
-
this.
|
|
2254
|
-
this.
|
|
2255
|
-
this.
|
|
2258
|
+
this.d5s_1 = this$0;
|
|
2259
|
+
this.e5s_1 = $minRoundsCountInPool;
|
|
2260
|
+
this.f5s_1 = $userData;
|
|
2261
|
+
this.g5s_1 = $min;
|
|
2262
|
+
this.h5s_1 = $max;
|
|
2263
|
+
this.i5s_1 = $cardsCount;
|
|
2264
|
+
this.j5s_1 = $signed;
|
|
2256
2265
|
CoroutineImpl.call(this, resultContinuation);
|
|
2257
2266
|
}
|
|
2258
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2259
|
-
var tmp = this.
|
|
2260
|
-
tmp.
|
|
2261
|
-
tmp.
|
|
2262
|
-
var tmp_0 = tmp.
|
|
2267
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).l5s = function ($this$withTimeout, $completion) {
|
|
2268
|
+
var tmp = this.m1e($this$withTimeout, $completion);
|
|
2269
|
+
tmp.h9_1 = Unit_instance;
|
|
2270
|
+
tmp.i9_1 = null;
|
|
2271
|
+
var tmp_0 = tmp.n9();
|
|
2263
2272
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2264
2273
|
return tmp_0;
|
|
2265
2274
|
return tmp_0;
|
|
2266
2275
|
};
|
|
2267
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2268
|
-
return this.
|
|
2276
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).x9 = function (p1, $completion) {
|
|
2277
|
+
return this.l5s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2269
2278
|
};
|
|
2270
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2271
|
-
var suspendResult = this.
|
|
2279
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).n9 = function () {
|
|
2280
|
+
var suspendResult = this.h9_1;
|
|
2272
2281
|
$sm: do
|
|
2273
2282
|
try {
|
|
2274
|
-
var tmp = this.
|
|
2283
|
+
var tmp = this.f9_1;
|
|
2275
2284
|
switch (tmp) {
|
|
2276
2285
|
case 0:
|
|
2277
|
-
this.
|
|
2278
|
-
this.
|
|
2279
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2286
|
+
this.g9_1 = 2;
|
|
2287
|
+
this.f9_1 = 1;
|
|
2288
|
+
suspendResult = getOrLoadGameCardDeckData(this.d5s_1, this.e5s_1, this.f5s_1, this.g5s_1, this.h5s_1, this.i5s_1, this.j5s_1, this);
|
|
2280
2289
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2281
2290
|
return suspendResult;
|
|
2282
2291
|
}
|
|
@@ -2286,43 +2295,43 @@
|
|
|
2286
2295
|
var cardDeckData = suspendResult;
|
|
2287
2296
|
return new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2288
2297
|
case 2:
|
|
2289
|
-
throw this.
|
|
2298
|
+
throw this.i9_1;
|
|
2290
2299
|
}
|
|
2291
2300
|
} catch ($p) {
|
|
2292
2301
|
var e = $p;
|
|
2293
|
-
if (this.
|
|
2302
|
+
if (this.g9_1 === 2) {
|
|
2294
2303
|
throw e;
|
|
2295
2304
|
} else {
|
|
2296
|
-
this.
|
|
2297
|
-
this.
|
|
2305
|
+
this.f9_1 = this.g9_1;
|
|
2306
|
+
this.i9_1 = e;
|
|
2298
2307
|
}
|
|
2299
2308
|
}
|
|
2300
2309
|
while (true);
|
|
2301
2310
|
};
|
|
2302
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2303
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.
|
|
2304
|
-
i.
|
|
2311
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).m1e = function ($this$withTimeout, completion) {
|
|
2312
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.d5s_1, this.e5s_1, this.f5s_1, this.g5s_1, this.h5s_1, this.i5s_1, this.j5s_1, completion);
|
|
2313
|
+
i.k5s_1 = $this$withTimeout;
|
|
2305
2314
|
return i;
|
|
2306
2315
|
};
|
|
2307
2316
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2308
2317
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2309
2318
|
var l = function ($this$withTimeout, $completion) {
|
|
2310
|
-
return i.
|
|
2319
|
+
return i.l5s($this$withTimeout, $completion);
|
|
2311
2320
|
};
|
|
2312
2321
|
l.$arity = 1;
|
|
2313
2322
|
return l;
|
|
2314
2323
|
}
|
|
2315
2324
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion) {
|
|
2316
2325
|
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$3($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion);
|
|
2317
|
-
tmp.
|
|
2318
|
-
tmp.
|
|
2319
|
-
return tmp.
|
|
2326
|
+
tmp.h9_1 = Unit_instance;
|
|
2327
|
+
tmp.i9_1 = null;
|
|
2328
|
+
return tmp.n9();
|
|
2320
2329
|
}
|
|
2321
2330
|
function requestNewCardDecks($this, min, max, cardsCount, signed, $completion) {
|
|
2322
|
-
return withContext($this.
|
|
2331
|
+
return withContext($this.f5t_1, RandomPoolProviderImpl$requestNewCardDecks$slambda_0($this, min, max, cardsCount, signed, null), $completion);
|
|
2323
2332
|
}
|
|
2324
2333
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2325
|
-
var existingCardDeck = $this.
|
|
2334
|
+
var existingCardDeck = $this.j5t_1.h2(userData.gameId);
|
|
2326
2335
|
var tmp;
|
|
2327
2336
|
if (!(existingCardDeck == null)) {
|
|
2328
2337
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2333,14 +2342,14 @@
|
|
|
2333
2342
|
}
|
|
2334
2343
|
function getPreparedRandomPoolValueOrRequest($this, gameId, min, max, minRoundsCount, cardsCount, signed, $completion) {
|
|
2335
2344
|
var tmp = new $getPreparedRandomPoolValueOrRequestCOROUTINE$4($this, gameId, min, max, minRoundsCount, cardsCount, signed, $completion);
|
|
2336
|
-
tmp.
|
|
2337
|
-
tmp.
|
|
2338
|
-
return tmp.
|
|
2345
|
+
tmp.h9_1 = Unit_instance;
|
|
2346
|
+
tmp.i9_1 = null;
|
|
2347
|
+
return tmp.n9();
|
|
2339
2348
|
}
|
|
2340
2349
|
function Companion_9() {
|
|
2341
|
-
this.
|
|
2342
|
-
this.
|
|
2343
|
-
this.
|
|
2350
|
+
this.d5u_1 = 100;
|
|
2351
|
+
this.e5u_1 = 3;
|
|
2352
|
+
this.f5u_1 = 3000;
|
|
2344
2353
|
}
|
|
2345
2354
|
var Companion_instance_11;
|
|
2346
2355
|
function Companion_getInstance_12() {
|
|
@@ -2350,102 +2359,102 @@
|
|
|
2350
2359
|
return uuid4().toString();
|
|
2351
2360
|
}
|
|
2352
2361
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2353
|
-
this.
|
|
2354
|
-
this.
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2357
|
-
this.
|
|
2358
|
-
this.
|
|
2359
|
-
this.
|
|
2360
|
-
this.
|
|
2362
|
+
this.o5u_1 = this$0;
|
|
2363
|
+
this.p5u_1 = $timeoutMillis;
|
|
2364
|
+
this.q5u_1 = $minRoundsCountInPool;
|
|
2365
|
+
this.r5u_1 = $userData;
|
|
2366
|
+
this.s5u_1 = $min;
|
|
2367
|
+
this.t5u_1 = $max;
|
|
2368
|
+
this.u5u_1 = $cardsCount;
|
|
2369
|
+
this.v5u_1 = $signed;
|
|
2361
2370
|
CoroutineImpl.call(this, resultContinuation);
|
|
2362
2371
|
}
|
|
2363
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2364
|
-
var tmp = this.
|
|
2365
|
-
tmp.
|
|
2366
|
-
tmp.
|
|
2367
|
-
var tmp_0 = tmp.
|
|
2372
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).l5s = function ($this$withContext, $completion) {
|
|
2373
|
+
var tmp = this.m1e($this$withContext, $completion);
|
|
2374
|
+
tmp.h9_1 = Unit_instance;
|
|
2375
|
+
tmp.i9_1 = null;
|
|
2376
|
+
var tmp_0 = tmp.n9();
|
|
2368
2377
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2369
2378
|
return tmp_0;
|
|
2370
2379
|
return tmp_0;
|
|
2371
2380
|
};
|
|
2372
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2373
|
-
return this.
|
|
2381
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).x9 = function (p1, $completion) {
|
|
2382
|
+
return this.l5s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2374
2383
|
};
|
|
2375
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2376
|
-
var suspendResult = this.
|
|
2384
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).n9 = function () {
|
|
2385
|
+
var suspendResult = this.h9_1;
|
|
2377
2386
|
$sm: do
|
|
2378
2387
|
try {
|
|
2379
|
-
var tmp = this.
|
|
2388
|
+
var tmp = this.f9_1;
|
|
2380
2389
|
switch (tmp) {
|
|
2381
2390
|
case 0:
|
|
2382
|
-
this.
|
|
2391
|
+
this.g9_1 = 11;
|
|
2383
2392
|
var tmp_0 = this;
|
|
2384
|
-
tmp_0.
|
|
2393
|
+
tmp_0.x5u_1 = this.o5u_1.h5t_1;
|
|
2385
2394
|
var tmp_1 = this;
|
|
2386
|
-
tmp_1.
|
|
2387
|
-
this.
|
|
2388
|
-
suspendResult = this.
|
|
2395
|
+
tmp_1.y5u_1 = null;
|
|
2396
|
+
this.f9_1 = 1;
|
|
2397
|
+
suspendResult = this.x5u_1.t1m(this.y5u_1, this);
|
|
2389
2398
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2390
2399
|
return suspendResult;
|
|
2391
2400
|
}
|
|
2392
2401
|
|
|
2393
2402
|
continue $sm;
|
|
2394
2403
|
case 1:
|
|
2395
|
-
this.
|
|
2396
|
-
this.
|
|
2404
|
+
this.z5u_1 = Unit_instance;
|
|
2405
|
+
this.f9_1 = 2;
|
|
2397
2406
|
continue $sm;
|
|
2398
2407
|
case 2:
|
|
2399
|
-
this.
|
|
2400
|
-
this.
|
|
2401
|
-
this.
|
|
2408
|
+
this.g9_1 = 10;
|
|
2409
|
+
this.a5v_1 = Unit_instance;
|
|
2410
|
+
this.f9_1 = 3;
|
|
2402
2411
|
continue $sm;
|
|
2403
2412
|
case 3:
|
|
2404
|
-
this.
|
|
2405
|
-
if (!(this.
|
|
2406
|
-
this.
|
|
2407
|
-
if (this.
|
|
2408
|
-
this.
|
|
2413
|
+
this.b5v_1 = this.o5u_1.k5t_1;
|
|
2414
|
+
if (!(this.b5v_1 == null) && this.o5u_1.l5t_1 >= this.o5u_1.c5t_1.failedRequestAttempts) {
|
|
2415
|
+
this.c5v_1 = this.b5v_1.n5l(this.o5u_1.c5t_1.failedAttemptCooldown);
|
|
2416
|
+
if (this.c5v_1.r5l(System_instance.z55()) > 0) {
|
|
2417
|
+
this.d5v_1 = new RandomException(VOID, 'getCardDeck cooldown ends in ' + this.c5v_1.toString());
|
|
2409
2418
|
var tmp_2 = this;
|
|
2410
|
-
var exception = this.
|
|
2411
|
-
tmp_2.
|
|
2412
|
-
this.
|
|
2419
|
+
var exception = this.d5v_1;
|
|
2420
|
+
tmp_2.a5v_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2421
|
+
this.f9_1 = 8;
|
|
2413
2422
|
continue $sm;
|
|
2414
2423
|
} else {
|
|
2415
|
-
this.
|
|
2424
|
+
this.f9_1 = 4;
|
|
2416
2425
|
continue $sm;
|
|
2417
2426
|
}
|
|
2418
2427
|
} else {
|
|
2419
|
-
this.
|
|
2428
|
+
this.f9_1 = 5;
|
|
2420
2429
|
continue $sm;
|
|
2421
2430
|
}
|
|
2422
2431
|
|
|
2423
2432
|
case 4:
|
|
2424
|
-
this.
|
|
2433
|
+
this.f9_1 = 5;
|
|
2425
2434
|
continue $sm;
|
|
2426
2435
|
case 5:
|
|
2427
|
-
this.
|
|
2428
|
-
this.
|
|
2429
|
-
suspendResult = withTimeout(this.
|
|
2436
|
+
this.g9_1 = 7;
|
|
2437
|
+
this.f9_1 = 6;
|
|
2438
|
+
suspendResult = withTimeout(this.p5u_1, RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this.o5u_1, this.q5u_1, this.r5u_1, this.s5u_1, this.t5u_1, this.u5u_1, this.v5u_1, null), this);
|
|
2430
2439
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2431
2440
|
return suspendResult;
|
|
2432
2441
|
}
|
|
2433
2442
|
|
|
2434
2443
|
continue $sm;
|
|
2435
2444
|
case 6:
|
|
2436
|
-
this.
|
|
2437
|
-
this.
|
|
2445
|
+
this.a5v_1 = suspendResult;
|
|
2446
|
+
this.f9_1 = 8;
|
|
2438
2447
|
continue $sm;
|
|
2439
2448
|
case 7:
|
|
2440
|
-
this.
|
|
2441
|
-
var tmp_3 = this.
|
|
2449
|
+
this.g9_1 = 10;
|
|
2450
|
+
var tmp_3 = this.i9_1;
|
|
2442
2451
|
if (tmp_3 instanceof Error) {
|
|
2443
|
-
var error = this.
|
|
2444
|
-
this.
|
|
2445
|
-
var _unary__edvuaz = this.
|
|
2446
|
-
this.
|
|
2452
|
+
var error = this.i9_1;
|
|
2453
|
+
this.o5u_1.k5t_1 = System_instance.z55();
|
|
2454
|
+
var _unary__edvuaz = this.o5u_1.l5t_1;
|
|
2455
|
+
this.o5u_1.l5t_1 = _unary__edvuaz + 1 | 0;
|
|
2447
2456
|
var tmp_4 = 'createNewShuffledCardDeck error message = ' + error.message + ', ';
|
|
2448
|
-
var value = this.
|
|
2457
|
+
var value = this.o5u_1.k5t_1;
|
|
2449
2458
|
var tmp$ret$2 = Unit_instance;
|
|
2450
2459
|
l$ret$3: do {
|
|
2451
2460
|
if (value == null) {
|
|
@@ -2457,86 +2466,86 @@
|
|
|
2457
2466
|
}
|
|
2458
2467
|
}
|
|
2459
2468
|
while (false);
|
|
2460
|
-
var exception_0 = new RandomException(VOID, tmp_4 + ('cooldown ends in ' + tmp$ret$2.
|
|
2461
|
-
this.
|
|
2469
|
+
var exception_0 = new RandomException(VOID, tmp_4 + ('cooldown ends in ' + tmp$ret$2.n5l(this.o5u_1.c5t_1.failedAttemptCooldown).toString()), error);
|
|
2470
|
+
this.o5u_1.e5t_1.w('RandomPoolProvider', VOID, exception_0);
|
|
2462
2471
|
var tmp_5 = this;
|
|
2463
|
-
tmp_5.
|
|
2464
|
-
this.
|
|
2472
|
+
tmp_5.a5v_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2473
|
+
this.f9_1 = 8;
|
|
2465
2474
|
continue $sm;
|
|
2466
2475
|
} else {
|
|
2467
|
-
throw this.
|
|
2476
|
+
throw this.i9_1;
|
|
2468
2477
|
}
|
|
2469
2478
|
|
|
2470
2479
|
case 8:
|
|
2471
|
-
this.
|
|
2472
|
-
this.
|
|
2473
|
-
this.
|
|
2480
|
+
this.z5u_1 = this.a5v_1;
|
|
2481
|
+
this.g9_1 = 11;
|
|
2482
|
+
this.f9_1 = 9;
|
|
2474
2483
|
continue $sm;
|
|
2475
2484
|
case 9:
|
|
2476
|
-
var tmp_6 = this.
|
|
2477
|
-
this.
|
|
2478
|
-
this.
|
|
2485
|
+
var tmp_6 = this.z5u_1;
|
|
2486
|
+
this.g9_1 = 11;
|
|
2487
|
+
this.x5u_1.e1m(this.y5u_1);
|
|
2479
2488
|
return tmp_6;
|
|
2480
2489
|
case 10:
|
|
2481
|
-
this.
|
|
2482
|
-
var t = this.
|
|
2483
|
-
this.
|
|
2490
|
+
this.g9_1 = 11;
|
|
2491
|
+
var t = this.i9_1;
|
|
2492
|
+
this.x5u_1.e1m(this.y5u_1);
|
|
2484
2493
|
throw t;
|
|
2485
2494
|
case 11:
|
|
2486
|
-
throw this.
|
|
2495
|
+
throw this.i9_1;
|
|
2487
2496
|
}
|
|
2488
2497
|
} catch ($p) {
|
|
2489
2498
|
var e = $p;
|
|
2490
|
-
if (this.
|
|
2499
|
+
if (this.g9_1 === 11) {
|
|
2491
2500
|
throw e;
|
|
2492
2501
|
} else {
|
|
2493
|
-
this.
|
|
2494
|
-
this.
|
|
2502
|
+
this.f9_1 = this.g9_1;
|
|
2503
|
+
this.i9_1 = e;
|
|
2495
2504
|
}
|
|
2496
2505
|
}
|
|
2497
2506
|
while (true);
|
|
2498
2507
|
};
|
|
2499
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2500
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2501
|
-
i.
|
|
2508
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).m1e = function ($this$withContext, completion) {
|
|
2509
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.o5u_1, this.p5u_1, this.q5u_1, this.r5u_1, this.s5u_1, this.t5u_1, this.u5u_1, this.v5u_1, completion);
|
|
2510
|
+
i.w5u_1 = $this$withContext;
|
|
2502
2511
|
return i;
|
|
2503
2512
|
};
|
|
2504
2513
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2505
2514
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2506
2515
|
var l = function ($this$withContext, $completion) {
|
|
2507
|
-
return i.
|
|
2516
|
+
return i.l5s($this$withContext, $completion);
|
|
2508
2517
|
};
|
|
2509
2518
|
l.$arity = 1;
|
|
2510
2519
|
return l;
|
|
2511
2520
|
}
|
|
2512
2521
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2513
|
-
this.
|
|
2514
|
-
this.
|
|
2515
|
-
this.
|
|
2516
|
-
this.
|
|
2517
|
-
this.
|
|
2522
|
+
this.m5v_1 = this$0;
|
|
2523
|
+
this.n5v_1 = $min;
|
|
2524
|
+
this.o5v_1 = $max;
|
|
2525
|
+
this.p5v_1 = $cardsCount;
|
|
2526
|
+
this.q5v_1 = $signed;
|
|
2518
2527
|
CoroutineImpl.call(this, resultContinuation);
|
|
2519
2528
|
}
|
|
2520
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2521
|
-
var tmp = this.
|
|
2522
|
-
tmp.
|
|
2523
|
-
tmp.
|
|
2524
|
-
return tmp.
|
|
2529
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).t5v = function ($this$withContext, $completion) {
|
|
2530
|
+
var tmp = this.m1e($this$withContext, $completion);
|
|
2531
|
+
tmp.h9_1 = Unit_instance;
|
|
2532
|
+
tmp.i9_1 = null;
|
|
2533
|
+
return tmp.n9();
|
|
2525
2534
|
};
|
|
2526
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2527
|
-
return this.
|
|
2535
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).x9 = function (p1, $completion) {
|
|
2536
|
+
return this.t5v((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2528
2537
|
};
|
|
2529
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2530
|
-
var suspendResult = this.
|
|
2538
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).n9 = function () {
|
|
2539
|
+
var suspendResult = this.h9_1;
|
|
2531
2540
|
$sm: do
|
|
2532
2541
|
try {
|
|
2533
|
-
var tmp = this.
|
|
2542
|
+
var tmp = this.f9_1;
|
|
2534
2543
|
switch (tmp) {
|
|
2535
2544
|
case 0:
|
|
2536
|
-
this.
|
|
2537
|
-
this.
|
|
2538
|
-
this.
|
|
2539
|
-
suspendResult = this.
|
|
2545
|
+
this.g9_1 = 2;
|
|
2546
|
+
this.s5v_1 = System_instance.z55();
|
|
2547
|
+
this.f9_1 = 1;
|
|
2548
|
+
suspendResult = this.m5v_1.d5t_1.n5p(this.n5v_1, this.o5v_1, this.m5v_1.c5t_1.poolSize, this.p5v_1, new CardDecksRequestUserData(this.m5v_1.g5t_1(), this.m5v_1.c5t_1.poolSize), this.q5v_1, this);
|
|
2540
2549
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2541
2550
|
return suspendResult;
|
|
2542
2551
|
}
|
|
@@ -2544,64 +2553,64 @@
|
|
|
2544
2553
|
continue $sm;
|
|
2545
2554
|
case 1:
|
|
2546
2555
|
var result = suspendResult;
|
|
2547
|
-
var requestEndTime = System_instance.
|
|
2548
|
-
var requestDuration = requestEndTime.
|
|
2556
|
+
var requestEndTime = System_instance.z55();
|
|
2557
|
+
var requestDuration = requestEndTime.q5l(this.s5v_1);
|
|
2549
2558
|
Companion_getInstance_0();
|
|
2550
|
-
var this_0 = this.
|
|
2559
|
+
var this_0 = this.m5v_1.c5t_1.requestDurationWarn;
|
|
2551
2560
|
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration_0(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2552
|
-
this.
|
|
2561
|
+
this.m5v_1.e5t_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ') + ('expected = ' + this.m5v_1.c5t_1.requestDurationWarn));
|
|
2553
2562
|
}
|
|
2554
2563
|
|
|
2555
2564
|
var newCardDecksValue = new RandomPoolValue(result);
|
|
2556
2565
|
return newCardDecksValue;
|
|
2557
2566
|
case 2:
|
|
2558
|
-
throw this.
|
|
2567
|
+
throw this.i9_1;
|
|
2559
2568
|
}
|
|
2560
2569
|
} catch ($p) {
|
|
2561
2570
|
var e = $p;
|
|
2562
|
-
if (this.
|
|
2571
|
+
if (this.g9_1 === 2) {
|
|
2563
2572
|
throw e;
|
|
2564
2573
|
} else {
|
|
2565
|
-
this.
|
|
2566
|
-
this.
|
|
2574
|
+
this.f9_1 = this.g9_1;
|
|
2575
|
+
this.i9_1 = e;
|
|
2567
2576
|
}
|
|
2568
2577
|
}
|
|
2569
2578
|
while (true);
|
|
2570
2579
|
};
|
|
2571
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2572
|
-
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.
|
|
2573
|
-
i.
|
|
2580
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).m1e = function ($this$withContext, completion) {
|
|
2581
|
+
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.m5v_1, this.n5v_1, this.o5v_1, this.p5v_1, this.q5v_1, completion);
|
|
2582
|
+
i.r5v_1 = $this$withContext;
|
|
2574
2583
|
return i;
|
|
2575
2584
|
};
|
|
2576
2585
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2577
2586
|
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2578
2587
|
var l = function ($this$withContext, $completion) {
|
|
2579
|
-
return i.
|
|
2588
|
+
return i.t5v($this$withContext, $completion);
|
|
2580
2589
|
};
|
|
2581
2590
|
l.$arity = 1;
|
|
2582
2591
|
return l;
|
|
2583
2592
|
}
|
|
2584
2593
|
function $getOrLoadGameCardDeckDataCOROUTINE$3(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, resultContinuation) {
|
|
2585
2594
|
CoroutineImpl.call(this, resultContinuation);
|
|
2586
|
-
this.
|
|
2587
|
-
this.
|
|
2588
|
-
this.
|
|
2589
|
-
this.
|
|
2590
|
-
this.
|
|
2591
|
-
this.
|
|
2592
|
-
this.
|
|
2593
|
-
}
|
|
2594
|
-
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).
|
|
2595
|
-
var suspendResult = this.
|
|
2595
|
+
this.u5s_1 = _this__u8e3s4;
|
|
2596
|
+
this.v5s_1 = minRoundsCountInPool;
|
|
2597
|
+
this.w5s_1 = userData;
|
|
2598
|
+
this.x5s_1 = min;
|
|
2599
|
+
this.y5s_1 = max;
|
|
2600
|
+
this.z5s_1 = cardsCount;
|
|
2601
|
+
this.a5t_1 = signed;
|
|
2602
|
+
}
|
|
2603
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).n9 = function () {
|
|
2604
|
+
var suspendResult = this.h9_1;
|
|
2596
2605
|
$sm: do
|
|
2597
2606
|
try {
|
|
2598
|
-
var tmp = this.
|
|
2607
|
+
var tmp = this.f9_1;
|
|
2599
2608
|
switch (tmp) {
|
|
2600
2609
|
case 0:
|
|
2601
|
-
this.
|
|
2602
|
-
this.
|
|
2603
|
-
this.
|
|
2604
|
-
suspendResult = getPreparedRandomPoolValueOrRequest(this.
|
|
2610
|
+
this.g9_1 = 2;
|
|
2611
|
+
this.b5t_1 = this.w5s_1.gameId;
|
|
2612
|
+
this.f9_1 = 1;
|
|
2613
|
+
suspendResult = getPreparedRandomPoolValueOrRequest(this.u5s_1, this.b5t_1, this.x5s_1, this.y5s_1, this.v5s_1, this.z5s_1, this.a5t_1, this);
|
|
2605
2614
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2606
2615
|
return suspendResult;
|
|
2607
2616
|
}
|
|
@@ -2609,85 +2618,85 @@
|
|
|
2609
2618
|
continue $sm;
|
|
2610
2619
|
case 1:
|
|
2611
2620
|
var randomPoolValue = suspendResult;
|
|
2612
|
-
var this_0 = this.
|
|
2613
|
-
var key = randomPoolValue.
|
|
2614
|
-
this_0.
|
|
2615
|
-
var cardDeckData = randomPoolValue.
|
|
2616
|
-
var tmp21_poolId = randomPoolValue.
|
|
2617
|
-
var tmp22_signature = randomPoolValue.
|
|
2618
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2619
|
-
var this_1 = this.
|
|
2620
|
-
var key_0 = this.
|
|
2621
|
-
this_1.
|
|
2621
|
+
var this_0 = this.u5s_1.i5t_1;
|
|
2622
|
+
var key = randomPoolValue.j5r_1.u5m_1;
|
|
2623
|
+
this_0.k2(key, randomPoolValue);
|
|
2624
|
+
var cardDeckData = randomPoolValue.t5r(this.w5s_1.gameId);
|
|
2625
|
+
var tmp21_poolId = randomPoolValue.j5r_1.u5m_1;
|
|
2626
|
+
var tmp22_signature = randomPoolValue.j5r_1.v5m_1;
|
|
2627
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.u5s_1, tmp21_poolId, tmp22_signature, cardDeckData, this.w5s_1);
|
|
2628
|
+
var this_1 = this.u5s_1.j5t_1;
|
|
2629
|
+
var key_0 = this.w5s_1.gameId;
|
|
2630
|
+
this_1.k2(key_0, cardDecksRecord);
|
|
2622
2631
|
return cardDeckData;
|
|
2623
2632
|
case 2:
|
|
2624
|
-
throw this.
|
|
2633
|
+
throw this.i9_1;
|
|
2625
2634
|
}
|
|
2626
2635
|
} catch ($p) {
|
|
2627
2636
|
var e = $p;
|
|
2628
|
-
if (this.
|
|
2637
|
+
if (this.g9_1 === 2) {
|
|
2629
2638
|
throw e;
|
|
2630
2639
|
} else {
|
|
2631
|
-
this.
|
|
2632
|
-
this.
|
|
2640
|
+
this.f9_1 = this.g9_1;
|
|
2641
|
+
this.i9_1 = e;
|
|
2633
2642
|
}
|
|
2634
2643
|
}
|
|
2635
2644
|
while (true);
|
|
2636
2645
|
};
|
|
2637
2646
|
function $getPreparedRandomPoolValueOrRequestCOROUTINE$4(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, resultContinuation) {
|
|
2638
2647
|
CoroutineImpl.call(this, resultContinuation);
|
|
2639
|
-
this.
|
|
2640
|
-
this.
|
|
2641
|
-
this.
|
|
2642
|
-
this.
|
|
2643
|
-
this.
|
|
2644
|
-
this.
|
|
2645
|
-
this.
|
|
2646
|
-
}
|
|
2647
|
-
protoOf($getPreparedRandomPoolValueOrRequestCOROUTINE$4).
|
|
2648
|
-
var suspendResult = this.
|
|
2648
|
+
this.u5t_1 = _this__u8e3s4;
|
|
2649
|
+
this.v5t_1 = gameId;
|
|
2650
|
+
this.w5t_1 = min;
|
|
2651
|
+
this.x5t_1 = max;
|
|
2652
|
+
this.y5t_1 = minRoundsCount;
|
|
2653
|
+
this.z5t_1 = cardsCount;
|
|
2654
|
+
this.a5u_1 = signed;
|
|
2655
|
+
}
|
|
2656
|
+
protoOf($getPreparedRandomPoolValueOrRequestCOROUTINE$4).n9 = function () {
|
|
2657
|
+
var suspendResult = this.h9_1;
|
|
2649
2658
|
$sm: do
|
|
2650
2659
|
try {
|
|
2651
|
-
var tmp = this.
|
|
2660
|
+
var tmp = this.f9_1;
|
|
2652
2661
|
switch (tmp) {
|
|
2653
2662
|
case 0:
|
|
2654
|
-
this.
|
|
2663
|
+
this.g9_1 = 2;
|
|
2655
2664
|
var tmp_0 = this;
|
|
2656
|
-
var this_0 = this.
|
|
2665
|
+
var this_0 = this.u5t_1.i5t_1;
|
|
2657
2666
|
var destination = LinkedHashMap_init_$Create$();
|
|
2658
2667
|
var tmp0_iterator = this_0.s().j();
|
|
2659
2668
|
while (tmp0_iterator.k()) {
|
|
2660
2669
|
var element = tmp0_iterator.l();
|
|
2661
|
-
var this_1 = element.u().
|
|
2662
|
-
var key = this.
|
|
2663
|
-
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).
|
|
2664
|
-
destination.
|
|
2670
|
+
var this_1 = element.u().k5r_1;
|
|
2671
|
+
var key = this.v5t_1;
|
|
2672
|
+
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).f2(key)) {
|
|
2673
|
+
destination.k2(element.t(), element.u());
|
|
2665
2674
|
}
|
|
2666
2675
|
}
|
|
2667
2676
|
|
|
2668
|
-
tmp_0.
|
|
2669
|
-
if (!(this.
|
|
2670
|
-
return this.
|
|
2677
|
+
tmp_0.b5u_1 = firstOrNull(destination.s());
|
|
2678
|
+
if (!(this.b5u_1 == null)) {
|
|
2679
|
+
return this.b5u_1.u().r5r(this.v5t_1);
|
|
2671
2680
|
}
|
|
2672
2681
|
|
|
2673
2682
|
var tmp_1 = this;
|
|
2674
|
-
var this_2 = this.
|
|
2683
|
+
var this_2 = this.u5t_1.i5t_1;
|
|
2675
2684
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2676
2685
|
var tmp0_iterator_0 = this_2.s().j();
|
|
2677
2686
|
while (tmp0_iterator_0.k()) {
|
|
2678
2687
|
var element_0 = tmp0_iterator_0.l();
|
|
2679
|
-
if (element_0.u().
|
|
2680
|
-
destination_0.
|
|
2688
|
+
if (element_0.u().o5r(this.y5t_1)) {
|
|
2689
|
+
destination_0.k2(element_0.t(), element_0.u());
|
|
2681
2690
|
}
|
|
2682
2691
|
}
|
|
2683
2692
|
|
|
2684
|
-
tmp_1.
|
|
2685
|
-
if (!(this.
|
|
2686
|
-
return this.
|
|
2693
|
+
tmp_1.c5u_1 = firstOrNull(destination_0.s());
|
|
2694
|
+
if (!(this.c5u_1 == null)) {
|
|
2695
|
+
return this.c5u_1.u().p5r(this.v5t_1, this.y5t_1, this.u5t_1.c5t_1.thresholdForUsedPool);
|
|
2687
2696
|
}
|
|
2688
2697
|
|
|
2689
|
-
this.
|
|
2690
|
-
suspendResult = requestNewCardDecks(this.
|
|
2698
|
+
this.f9_1 = 1;
|
|
2699
|
+
suspendResult = requestNewCardDecks(this.u5t_1, this.w5t_1, this.x5t_1, this.z5t_1, this.a5u_1, this);
|
|
2691
2700
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2692
2701
|
return suspendResult;
|
|
2693
2702
|
}
|
|
@@ -2695,23 +2704,23 @@
|
|
|
2695
2704
|
continue $sm;
|
|
2696
2705
|
case 1:
|
|
2697
2706
|
var cardDecks = suspendResult;
|
|
2698
|
-
return cardDecks.
|
|
2707
|
+
return cardDecks.s5r(this.v5t_1, this.y5t_1);
|
|
2699
2708
|
case 2:
|
|
2700
|
-
throw this.
|
|
2709
|
+
throw this.i9_1;
|
|
2701
2710
|
}
|
|
2702
2711
|
} catch ($p) {
|
|
2703
2712
|
var e = $p;
|
|
2704
|
-
if (this.
|
|
2713
|
+
if (this.g9_1 === 2) {
|
|
2705
2714
|
throw e;
|
|
2706
2715
|
} else {
|
|
2707
|
-
this.
|
|
2708
|
-
this.
|
|
2716
|
+
this.f9_1 = this.g9_1;
|
|
2717
|
+
this.i9_1 = e;
|
|
2709
2718
|
}
|
|
2710
2719
|
}
|
|
2711
2720
|
while (true);
|
|
2712
2721
|
};
|
|
2713
2722
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2714
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2723
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().m10_1 : dispatcher;
|
|
2715
2724
|
var tmp;
|
|
2716
2725
|
if (idsProvider === VOID) {
|
|
2717
2726
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2719,86 +2728,86 @@
|
|
|
2719
2728
|
tmp = idsProvider;
|
|
2720
2729
|
}
|
|
2721
2730
|
idsProvider = tmp;
|
|
2722
|
-
this.
|
|
2723
|
-
this.
|
|
2724
|
-
this.
|
|
2725
|
-
this.
|
|
2726
|
-
this.
|
|
2727
|
-
this.
|
|
2731
|
+
this.c5t_1 = params;
|
|
2732
|
+
this.d5t_1 = randomOrgApiService;
|
|
2733
|
+
this.e5t_1 = logger;
|
|
2734
|
+
this.f5t_1 = dispatcher;
|
|
2735
|
+
this.g5t_1 = idsProvider;
|
|
2736
|
+
this.h5t_1 = Mutex();
|
|
2728
2737
|
var tmp_0 = this;
|
|
2729
2738
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2730
|
-
tmp_0.
|
|
2739
|
+
tmp_0.i5t_1 = LinkedHashMap_init_$Create$();
|
|
2731
2740
|
var tmp_1 = this;
|
|
2732
2741
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2733
|
-
tmp_1.
|
|
2734
|
-
this.
|
|
2735
|
-
this.
|
|
2742
|
+
tmp_1.j5t_1 = LinkedHashMap_init_$Create$();
|
|
2743
|
+
this.k5t_1 = null;
|
|
2744
|
+
this.l5t_1 = 0;
|
|
2736
2745
|
}
|
|
2737
|
-
protoOf(RandomPoolProviderImpl).
|
|
2738
|
-
var tmp = withContext(this.
|
|
2746
|
+
protoOf(RandomPoolProviderImpl).g5r = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) {
|
|
2747
|
+
var tmp = withContext(this.f5t_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, timeoutMillis, minRoundsCountInPool, userData, min, max, cardsCount, signed, null), $completion);
|
|
2739
2748
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2740
2749
|
return tmp;
|
|
2741
2750
|
return tmp;
|
|
2742
2751
|
};
|
|
2743
|
-
protoOf(RandomPoolProviderImpl).
|
|
2744
|
-
return this.
|
|
2752
|
+
protoOf(RandomPoolProviderImpl).u5v = function (gameId) {
|
|
2753
|
+
return this.j5t_1.h2(gameId);
|
|
2745
2754
|
};
|
|
2746
2755
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2747
|
-
return this.
|
|
2756
|
+
return this.u5v(gameId);
|
|
2748
2757
|
};
|
|
2749
|
-
protoOf(RandomPoolProviderImpl).
|
|
2750
|
-
return this.
|
|
2758
|
+
protoOf(RandomPoolProviderImpl).v5v = function (id) {
|
|
2759
|
+
return this.i5t_1.h2(id);
|
|
2751
2760
|
};
|
|
2752
2761
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2753
|
-
return this.
|
|
2762
|
+
return this.v5v(id);
|
|
2754
2763
|
};
|
|
2755
|
-
protoOf(RandomPoolProviderImpl).
|
|
2756
|
-
return this.
|
|
2764
|
+
protoOf(RandomPoolProviderImpl).w5v = function () {
|
|
2765
|
+
return this.i5t_1.m();
|
|
2757
2766
|
};
|
|
2758
2767
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2759
|
-
return this.
|
|
2768
|
+
return this.w5v();
|
|
2760
2769
|
};
|
|
2761
|
-
protoOf(RandomPoolProviderImpl).
|
|
2762
|
-
var gameCardDecksRecord = this.
|
|
2770
|
+
protoOf(RandomPoolProviderImpl).i5r = function (gameId) {
|
|
2771
|
+
var gameCardDecksRecord = this.j5t_1.h2(gameId);
|
|
2763
2772
|
if (!(gameCardDecksRecord == null)) {
|
|
2764
|
-
var randomPoolValue = this.
|
|
2773
|
+
var randomPoolValue = this.i5t_1.h2(gameCardDecksRecord.poolId);
|
|
2765
2774
|
if (!(randomPoolValue == null)) {
|
|
2766
2775
|
// Inline function 'kotlin.apply' call
|
|
2767
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2776
|
+
var this_0 = toMutableMap(randomPoolValue.k5r_1);
|
|
2768
2777
|
// Inline function 'kotlin.contracts.contract' call
|
|
2769
2778
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolProviderImpl.setGameFinished.<anonymous>' call
|
|
2770
|
-
this_0.
|
|
2771
|
-
var newPoolValue = randomPoolValue.
|
|
2772
|
-
if (newPoolValue.
|
|
2773
|
-
this.
|
|
2779
|
+
this_0.l2(gameId);
|
|
2780
|
+
var newPoolValue = randomPoolValue.q5r(VOID, toMap(this_0));
|
|
2781
|
+
if (newPoolValue.k5r_1.p()) {
|
|
2782
|
+
this.i5t_1.l2(gameCardDecksRecord.poolId);
|
|
2774
2783
|
} else {
|
|
2775
2784
|
// Inline function 'kotlin.collections.set' call
|
|
2776
|
-
var this_1 = this.
|
|
2785
|
+
var this_1 = this.i5t_1;
|
|
2777
2786
|
var key = gameCardDecksRecord.poolId;
|
|
2778
|
-
this_1.
|
|
2787
|
+
this_1.k2(key, newPoolValue);
|
|
2779
2788
|
}
|
|
2780
2789
|
}
|
|
2781
2790
|
}
|
|
2782
|
-
this.
|
|
2791
|
+
this.j5t_1.l2(gameId);
|
|
2783
2792
|
};
|
|
2784
2793
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2785
2794
|
return function ($this$defaultRequest) {
|
|
2786
2795
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2787
|
-
$this$defaultRequest.
|
|
2796
|
+
$this$defaultRequest.y34($url);
|
|
2788
2797
|
return Unit_instance;
|
|
2789
2798
|
};
|
|
2790
2799
|
}
|
|
2791
2800
|
function ApiCommonConfigs$setupLogging$1$1($externalLogger) {
|
|
2792
|
-
this.
|
|
2801
|
+
this.x5v_1 = $externalLogger;
|
|
2793
2802
|
}
|
|
2794
|
-
protoOf(ApiCommonConfigs$setupLogging$1$1).
|
|
2795
|
-
this.
|
|
2803
|
+
protoOf(ApiCommonConfigs$setupLogging$1$1).i3v = function (message) {
|
|
2804
|
+
this.x5v_1(message);
|
|
2796
2805
|
};
|
|
2797
2806
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2798
2807
|
return function ($this$install) {
|
|
2799
|
-
$this$install.
|
|
2800
|
-
$this$install.
|
|
2801
|
-
$this$install.
|
|
2808
|
+
$this$install.y3w(get_DEFAULT(Companion_instance_0));
|
|
2809
|
+
$this$install.x3w_1 = $config.a5w_1;
|
|
2810
|
+
$this$install.y3w(new ApiCommonConfigs$setupLogging$1$1($externalLogger));
|
|
2802
2811
|
return Unit_instance;
|
|
2803
2812
|
};
|
|
2804
2813
|
}
|
|
@@ -2810,32 +2819,32 @@
|
|
|
2810
2819
|
}
|
|
2811
2820
|
function ApiCommonConfigs() {
|
|
2812
2821
|
}
|
|
2813
|
-
protoOf(ApiCommonConfigs).
|
|
2814
|
-
_this__u8e3s4.
|
|
2815
|
-
this.
|
|
2816
|
-
this.
|
|
2817
|
-
this.
|
|
2822
|
+
protoOf(ApiCommonConfigs).c5w = function (_this__u8e3s4, config, externalLogger) {
|
|
2823
|
+
_this__u8e3s4.k2w_1 = true;
|
|
2824
|
+
this.d5w(_this__u8e3s4, config.y5v_1);
|
|
2825
|
+
this.e5w(_this__u8e3s4, config.b5w_1);
|
|
2826
|
+
this.f5w(_this__u8e3s4, config, externalLogger);
|
|
2818
2827
|
};
|
|
2819
|
-
protoOf(ApiCommonConfigs).
|
|
2828
|
+
protoOf(ApiCommonConfigs).d5w = function (_this__u8e3s4, url) {
|
|
2820
2829
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2821
2830
|
};
|
|
2822
|
-
protoOf(ApiCommonConfigs).
|
|
2831
|
+
protoOf(ApiCommonConfigs).f5w = function (_this__u8e3s4, config, externalLogger) {
|
|
2823
2832
|
var tmp = Companion_getInstance_1();
|
|
2824
|
-
_this__u8e3s4.
|
|
2833
|
+
_this__u8e3s4.f2x(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2825
2834
|
};
|
|
2826
|
-
protoOf(ApiCommonConfigs).
|
|
2835
|
+
protoOf(ApiCommonConfigs).e5w = function (_this__u8e3s4, json) {
|
|
2827
2836
|
var tmp = Plugin_getInstance();
|
|
2828
|
-
_this__u8e3s4.
|
|
2837
|
+
_this__u8e3s4.f2x(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2829
2838
|
};
|
|
2830
2839
|
var ApiCommonConfigs_instance;
|
|
2831
2840
|
function ApiCommonConfigs_getInstance() {
|
|
2832
2841
|
return ApiCommonConfigs_instance;
|
|
2833
2842
|
}
|
|
2834
2843
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2844
|
+
$this$Json.p4v_1 = true;
|
|
2845
|
+
$this$Json.o4v_1 = true;
|
|
2835
2846
|
$this$Json.n4v_1 = true;
|
|
2836
|
-
$this$Json.m4v_1 =
|
|
2837
|
-
$this$Json.l4v_1 = true;
|
|
2838
|
-
$this$Json.k4v_1 = false;
|
|
2847
|
+
$this$Json.m4v_1 = false;
|
|
2839
2848
|
return Unit_instance;
|
|
2840
2849
|
}
|
|
2841
2850
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2848,19 +2857,19 @@
|
|
|
2848
2857
|
tmp = json;
|
|
2849
2858
|
}
|
|
2850
2859
|
json = tmp;
|
|
2851
|
-
this.
|
|
2852
|
-
this.
|
|
2853
|
-
this.
|
|
2854
|
-
this.
|
|
2860
|
+
this.y5v_1 = baseUrl;
|
|
2861
|
+
this.z5v_1 = timeoutMillis;
|
|
2862
|
+
this.a5w_1 = loggingLevel;
|
|
2863
|
+
this.b5w_1 = json;
|
|
2855
2864
|
}
|
|
2856
2865
|
protoOf(HttpParams).toString = function () {
|
|
2857
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2866
|
+
return 'HttpParams(baseUrl=' + this.y5v_1 + ', timeoutMillis=' + this.z5v_1.toString() + ', loggingLevel=' + this.a5w_1.toString() + ', json=' + toString(this.b5w_1) + ')';
|
|
2858
2867
|
};
|
|
2859
2868
|
protoOf(HttpParams).hashCode = function () {
|
|
2860
|
-
var result = getStringHashCode(this.
|
|
2861
|
-
result = imul(result, 31) + this.
|
|
2862
|
-
result = imul(result, 31) + this.
|
|
2863
|
-
result = imul(result, 31) + hashCode(this.
|
|
2869
|
+
var result = getStringHashCode(this.y5v_1);
|
|
2870
|
+
result = imul(result, 31) + this.z5v_1.hashCode() | 0;
|
|
2871
|
+
result = imul(result, 31) + this.a5w_1.hashCode() | 0;
|
|
2872
|
+
result = imul(result, 31) + hashCode(this.b5w_1) | 0;
|
|
2864
2873
|
return result;
|
|
2865
2874
|
};
|
|
2866
2875
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2869,13 +2878,13 @@
|
|
|
2869
2878
|
if (!(other instanceof HttpParams))
|
|
2870
2879
|
return false;
|
|
2871
2880
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2872
|
-
if (!(this.
|
|
2881
|
+
if (!(this.y5v_1 === tmp0_other_with_cast.y5v_1))
|
|
2873
2882
|
return false;
|
|
2874
|
-
if (!this.
|
|
2883
|
+
if (!this.z5v_1.equals(tmp0_other_with_cast.z5v_1))
|
|
2875
2884
|
return false;
|
|
2876
|
-
if (!this.
|
|
2885
|
+
if (!this.a5w_1.equals(tmp0_other_with_cast.a5w_1))
|
|
2877
2886
|
return false;
|
|
2878
|
-
if (!equals(this.
|
|
2887
|
+
if (!equals(this.b5w_1, tmp0_other_with_cast.b5w_1))
|
|
2879
2888
|
return false;
|
|
2880
2889
|
return true;
|
|
2881
2890
|
};
|
|
@@ -2899,12 +2908,12 @@
|
|
|
2899
2908
|
}
|
|
2900
2909
|
function nextBytesCopyTo($this, bytes) {
|
|
2901
2910
|
try {
|
|
2902
|
-
$this.
|
|
2911
|
+
$this.h5w_1.g5m(bytes);
|
|
2903
2912
|
} catch ($p) {
|
|
2904
2913
|
if ($p instanceof SecRandomCopyException) {
|
|
2905
2914
|
var error = $p;
|
|
2906
|
-
$this.
|
|
2907
|
-
$this.
|
|
2915
|
+
$this.g5w_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2916
|
+
$this.i5w_1.tg(bytes);
|
|
2908
2917
|
return Unit_instance;
|
|
2909
2918
|
} else {
|
|
2910
2919
|
throw $p;
|
|
@@ -2930,11 +2939,11 @@
|
|
|
2930
2939
|
}
|
|
2931
2940
|
function SecureRandom_0(logger) {
|
|
2932
2941
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2933
|
-
this.
|
|
2934
|
-
this.
|
|
2935
|
-
this.
|
|
2942
|
+
this.g5w_1 = logger;
|
|
2943
|
+
this.h5w_1 = new SecureRandom();
|
|
2944
|
+
this.i5w_1 = Default_getInstance();
|
|
2936
2945
|
}
|
|
2937
|
-
protoOf(SecureRandom_0).
|
|
2946
|
+
protoOf(SecureRandom_0).qg = function (from, until) {
|
|
2938
2947
|
checkRangeBounds(this, from, until);
|
|
2939
2948
|
var n = until - from | 0;
|
|
2940
2949
|
if (n > 0 || n === -2147483648) {
|
|
@@ -2961,26 +2970,106 @@
|
|
|
2961
2970
|
}
|
|
2962
2971
|
}
|
|
2963
2972
|
};
|
|
2973
|
+
protoOf(SecureRandom_0).k5w = function () {
|
|
2974
|
+
return !(nextBits(this, 1) === 0);
|
|
2975
|
+
};
|
|
2964
2976
|
function CustomRandom() {
|
|
2965
2977
|
}
|
|
2978
|
+
function overhand(_this__u8e3s4, iterations, random) {
|
|
2979
|
+
random = random === VOID ? new SecureRandom_0() : random;
|
|
2980
|
+
var deck = _this__u8e3s4;
|
|
2981
|
+
var pile = toMutableList(deck);
|
|
2982
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
2983
|
+
var pile2 = ArrayList_init_$Create$_0();
|
|
2984
|
+
var twentypc = deck.m() / 5 | 0;
|
|
2985
|
+
// Inline function 'kotlin.repeat' call
|
|
2986
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2987
|
+
var inductionVariable = 0;
|
|
2988
|
+
if (inductionVariable < iterations)
|
|
2989
|
+
do {
|
|
2990
|
+
var index = inductionVariable;
|
|
2991
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2992
|
+
// Inline function 'games.raspberry.card_game.random.utils.random.overhand.<anonymous>' call
|
|
2993
|
+
while (pile.m() > 0) {
|
|
2994
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2995
|
+
var a = pile.m();
|
|
2996
|
+
var b = 1 + random.j5w(VOID, twentypc) | 0;
|
|
2997
|
+
var cards = Math.min(a, b);
|
|
2998
|
+
pile2.b2(0, take(pile, cards));
|
|
2999
|
+
// Inline function 'kotlin.repeat' call
|
|
3000
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3001
|
+
var inductionVariable_0 = 0;
|
|
3002
|
+
if (inductionVariable_0 < cards)
|
|
3003
|
+
do {
|
|
3004
|
+
var index_0 = inductionVariable_0;
|
|
3005
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
3006
|
+
// Inline function 'games.raspberry.card_game.random.utils.random.overhand.<anonymous>.<anonymous>' call
|
|
3007
|
+
pile.e2(0);
|
|
3008
|
+
}
|
|
3009
|
+
while (inductionVariable_0 < cards);
|
|
3010
|
+
}
|
|
3011
|
+
pile.n(pile2);
|
|
3012
|
+
pile2.a2();
|
|
3013
|
+
}
|
|
3014
|
+
while (inductionVariable < iterations);
|
|
3015
|
+
return pile;
|
|
3016
|
+
}
|
|
3017
|
+
function riffle(_this__u8e3s4, iterations, random) {
|
|
3018
|
+
random = random === VOID ? new SecureRandom_0() : random;
|
|
3019
|
+
var deck = _this__u8e3s4;
|
|
3020
|
+
var pile = toMutableList(deck);
|
|
3021
|
+
// Inline function 'kotlin.repeat' call
|
|
3022
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
3023
|
+
var inductionVariable = 0;
|
|
3024
|
+
if (inductionVariable < iterations)
|
|
3025
|
+
do {
|
|
3026
|
+
var index = inductionVariable;
|
|
3027
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3028
|
+
// Inline function 'games.raspberry.card_game.random.utils.random.riffle.<anonymous>' call
|
|
3029
|
+
var mid = deck.m() / 2 | 0;
|
|
3030
|
+
var tenpc = mid / 10 | 0;
|
|
3031
|
+
var cut = (mid - tenpc | 0) + random.j5w(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
3032
|
+
var deck1 = toMutableList(take(pile, cut));
|
|
3033
|
+
var deck2 = toMutableList(drop(pile, cut));
|
|
3034
|
+
pile.a2();
|
|
3035
|
+
var fromTop = random.k5w();
|
|
3036
|
+
while (deck1.m() > 0 && deck2.m() > 0) {
|
|
3037
|
+
if (fromTop) {
|
|
3038
|
+
pile.e(deck1.e2(0));
|
|
3039
|
+
pile.e(deck2.e2(0));
|
|
3040
|
+
} else {
|
|
3041
|
+
pile.e(deck1.e2(get_lastIndex(deck1)));
|
|
3042
|
+
pile.e(deck2.e2(get_lastIndex(deck2)));
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
if (deck1.m() > 0) {
|
|
3046
|
+
pile.n(deck1);
|
|
3047
|
+
} else if (deck2.m() > 0) {
|
|
3048
|
+
pile.n(deck2);
|
|
3049
|
+
}
|
|
3050
|
+
reverse(pile);
|
|
3051
|
+
}
|
|
3052
|
+
while (inductionVariable < iterations);
|
|
3053
|
+
return pile;
|
|
3054
|
+
}
|
|
2966
3055
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
2967
3056
|
return function ($this$install) {
|
|
2968
|
-
$this$install.
|
|
2969
|
-
$this$install.
|
|
3057
|
+
$this$install.w3g($config.z5v_1);
|
|
3058
|
+
$this$install.u3g($config.z5v_1);
|
|
2970
3059
|
return Unit_instance;
|
|
2971
3060
|
};
|
|
2972
3061
|
}
|
|
2973
3062
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
2974
3063
|
return function ($this$HttpClient) {
|
|
2975
3064
|
var tmp = Plugin_getInstance_0();
|
|
2976
|
-
$this$HttpClient.
|
|
2977
|
-
ApiCommonConfigs_instance.
|
|
3065
|
+
$this$HttpClient.f2x(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
3066
|
+
ApiCommonConfigs_instance.c5w($this$HttpClient, $config, $externalLogger);
|
|
2978
3067
|
return Unit_instance;
|
|
2979
3068
|
};
|
|
2980
3069
|
}
|
|
2981
3070
|
function HttpFactory() {
|
|
2982
3071
|
}
|
|
2983
|
-
protoOf(HttpFactory).
|
|
3072
|
+
protoOf(HttpFactory).m5w = function (config, externalLogger) {
|
|
2984
3073
|
var tmp = Js_instance;
|
|
2985
3074
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
2986
3075
|
};
|
|
@@ -2989,14 +3078,15 @@
|
|
|
2989
3078
|
return HttpFactory_instance;
|
|
2990
3079
|
}
|
|
2991
3080
|
//region block: post-declaration
|
|
2992
|
-
protoOf($serializer).
|
|
2993
|
-
protoOf($serializer_0).
|
|
2994
|
-
protoOf($serializer_2).
|
|
2995
|
-
protoOf($serializer_3).
|
|
2996
|
-
protoOf($serializer_5).
|
|
2997
|
-
protoOf($serializer_6).
|
|
2998
|
-
protoOf(RandomPoolProviderImpl).
|
|
2999
|
-
protoOf(SecureRandom_0).
|
|
3081
|
+
protoOf($serializer).n4g = typeParametersSerializers;
|
|
3082
|
+
protoOf($serializer_0).n4g = typeParametersSerializers;
|
|
3083
|
+
protoOf($serializer_2).n4g = typeParametersSerializers;
|
|
3084
|
+
protoOf($serializer_3).n4g = typeParametersSerializers;
|
|
3085
|
+
protoOf($serializer_5).n4g = typeParametersSerializers;
|
|
3086
|
+
protoOf($serializer_6).n4g = typeParametersSerializers;
|
|
3087
|
+
protoOf(RandomPoolProviderImpl).h5r = getCardDeck$default;
|
|
3088
|
+
protoOf(SecureRandom_0).j5w = nextInt$default;
|
|
3089
|
+
protoOf(SecureRandom_0).l5w = shuffle;
|
|
3000
3090
|
//endregion
|
|
3001
3091
|
//region block: init
|
|
3002
3092
|
Companion_instance_1 = new Companion();
|
|
@@ -3064,7 +3154,9 @@
|
|
|
3064
3154
|
_.$_$.h = RandomPoolProviderImpl;
|
|
3065
3155
|
_.$_$.i = RandomPoolProvider;
|
|
3066
3156
|
_.$_$.j = SecureRandom_0;
|
|
3067
|
-
_.$_$.k =
|
|
3157
|
+
_.$_$.k = overhand;
|
|
3158
|
+
_.$_$.l = riffle;
|
|
3159
|
+
_.$_$.m = HttpFactory_instance;
|
|
3068
3160
|
//endregion
|
|
3069
3161
|
return _;
|
|
3070
3162
|
}));
|