raspberry_games_server_game_logic 1.8.303 → 1.8.305
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 +56 -56
- package/Kosi-Kodein-kodein-di.js +511 -511
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1377 -1377
- package/Logic_Debertz-core.js +1510 -1510
- package/Logic_Debertz-engine.js +14420 -14314
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +3 -3
- package/Logic_Debertz-game_server.js +1026 -954
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-coroutines-core.js +1448 -1602
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +316 -316
- package/kotlinx-serialization-kotlinx-serialization-core.js +1801 -1801
- package/kotlinx-serialization-kotlinx-serialization-json.js +1328 -1328
- package/ktor-ktor-client-content-negotiation.js +133 -133
- package/ktor-ktor-client-core.js +1536 -1536
- package/ktor-ktor-client-logging.js +287 -287
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +599 -599
- package/ktor-ktor-io.js +1255 -1255
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +139 -139
- package/ktor-ktor-serialization.js +65 -65
- package/ktor-ktor-utils.js +498 -498
- package/ktor-ktor-websockets.js +41 -41
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +193 -187
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +881 -908
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +5 -5
- package/uuid.js +11 -11
|
@@ -118,25 +118,21 @@
|
|
|
118
118
|
var toMutableMap = kotlin_kotlin.$_$.y9;
|
|
119
119
|
var toMap = kotlin_kotlin.$_$.v9;
|
|
120
120
|
var get_lastIndex = kotlin_kotlin.$_$.i8;
|
|
121
|
-
var to = kotlin_kotlin.$_$.xh;
|
|
122
|
-
var mapOf = kotlin_kotlin.$_$.s8;
|
|
123
|
-
var Result = kotlin_kotlin.$_$.qg;
|
|
124
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
125
|
-
var Companion_instance = kotlin_kotlin.$_$.k5;
|
|
126
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.f3;
|
|
127
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.yb;
|
|
128
121
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
129
122
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
123
|
+
var Result = kotlin_kotlin.$_$.qg;
|
|
124
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h1;
|
|
130
125
|
var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.b;
|
|
126
|
+
var Companion_instance = kotlin_kotlin.$_$.k5;
|
|
131
127
|
var createFailure = kotlin_kotlin.$_$.ih;
|
|
132
|
-
var
|
|
128
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.f3;
|
|
133
129
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
134
|
-
var
|
|
130
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.yb;
|
|
135
131
|
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.n2;
|
|
136
132
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
137
133
|
var firstOrNull = kotlin_kotlin.$_$.s7;
|
|
138
|
-
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
139
|
-
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
134
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
135
|
+
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
140
136
|
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
141
137
|
var Companion_instance_0 = kotlin_io_ktor_ktor_client_logging.$_$.b;
|
|
142
138
|
var get_DEFAULT = kotlin_io_ktor_ktor_client_logging.$_$.d;
|
|
@@ -200,23 +196,23 @@
|
|
|
200
196
|
initMetadataForCoroutine($throwIfErrorCOROUTINE$2, CoroutineImpl);
|
|
201
197
|
initMetadataForClass(RandomOrgApiServiceImpl, 'RandomOrgApiServiceImpl', VOID, VOID, [RandomOrgApiService], [5, 6, 2]);
|
|
202
198
|
initMetadataForClass(PoolParams, 'PoolParams', PoolParams);
|
|
203
|
-
function getCardDeck$default(minRoundsCountInPool, userData, min, max, cardsCount, signed,
|
|
199
|
+
function getCardDeck$default(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion, $super) {
|
|
204
200
|
min = min === VOID ? 0 : min;
|
|
205
201
|
max = max === VOID ? 51 : max;
|
|
206
202
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
207
203
|
signed = signed === VOID ? false : signed;
|
|
208
|
-
|
|
209
|
-
return $super === VOID ? this.
|
|
204
|
+
requestDurationWarnMillis = requestDurationWarnMillis === VOID ? new Long(3000, 0) : requestDurationWarnMillis;
|
|
205
|
+
return $super === VOID ? this.s5q(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) : $super.s5q.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
210
206
|
}
|
|
211
|
-
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7]);
|
|
207
|
+
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7, 5]);
|
|
212
208
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
213
|
-
initMetadataForLambda(RandomPoolProviderImpl$getCardDeck$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
214
209
|
initMetadataForCompanion(Companion_9);
|
|
215
210
|
initMetadataForLambda(RandomPoolProviderImpl$getCardDeck$slambda, CoroutineImpl, VOID, [1]);
|
|
216
|
-
initMetadataForLambda(RandomPoolProviderImpl$
|
|
217
|
-
initMetadataForCoroutine($
|
|
218
|
-
initMetadataForCoroutine($
|
|
219
|
-
|
|
211
|
+
initMetadataForLambda(RandomPoolProviderImpl$requestNewPool$slambda, CoroutineImpl, VOID, [1]);
|
|
212
|
+
initMetadataForCoroutine($prefetchCardDecksCOROUTINE$3, CoroutineImpl);
|
|
213
|
+
initMetadataForCoroutine($getOrLoadGameCardDeckDataCOROUTINE$4, CoroutineImpl);
|
|
214
|
+
initMetadataForCoroutine($getPreparedOrRequestPoolCOROUTINE$5, CoroutineImpl);
|
|
215
|
+
initMetadataForClass(RandomPoolProviderImpl, 'RandomPoolProviderImpl', VOID, VOID, [RandomPoolProvider], [7, 5]);
|
|
220
216
|
initMetadataForClass(ApiCommonConfigs$setupLogging$1$1);
|
|
221
217
|
initMetadataForObject(ApiCommonConfigs, 'ApiCommonConfigs');
|
|
222
218
|
initMetadataForClass(HttpParams, 'HttpParams');
|
|
@@ -241,7 +237,7 @@
|
|
|
241
237
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
242
238
|
//endregion
|
|
243
239
|
function Companion() {
|
|
244
|
-
this.
|
|
240
|
+
this.x5l_1 = 100001;
|
|
245
241
|
}
|
|
246
242
|
var Companion_instance_1;
|
|
247
243
|
function Companion_getInstance_2() {
|
|
@@ -252,16 +248,16 @@
|
|
|
252
248
|
cause = cause === VOID ? null : cause;
|
|
253
249
|
RuntimeException_init_$Init$(message, cause, this);
|
|
254
250
|
captureStack(this, RandomException);
|
|
255
|
-
this.
|
|
251
|
+
this.y5l_1 = code;
|
|
256
252
|
}
|
|
257
253
|
function CardDecksRequestUserData(id, count) {
|
|
258
254
|
this.id = id;
|
|
259
255
|
this.count = count;
|
|
260
256
|
}
|
|
261
|
-
protoOf(CardDecksRequestUserData).
|
|
257
|
+
protoOf(CardDecksRequestUserData).s5k = function () {
|
|
262
258
|
return this.id;
|
|
263
259
|
};
|
|
264
|
-
protoOf(CardDecksRequestUserData).
|
|
260
|
+
protoOf(CardDecksRequestUserData).z5l = function () {
|
|
265
261
|
return this.count;
|
|
266
262
|
};
|
|
267
263
|
protoOf(CardDecksRequestUserData).qe = function () {
|
|
@@ -270,13 +266,13 @@
|
|
|
270
266
|
protoOf(CardDecksRequestUserData).re = function () {
|
|
271
267
|
return this.count;
|
|
272
268
|
};
|
|
273
|
-
protoOf(CardDecksRequestUserData).
|
|
269
|
+
protoOf(CardDecksRequestUserData).a5m = function (id, count) {
|
|
274
270
|
return new CardDecksRequestUserData(id, count);
|
|
275
271
|
};
|
|
276
272
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
277
273
|
id = id === VOID ? this.id : id;
|
|
278
274
|
count = count === VOID ? this.count : count;
|
|
279
|
-
return this.
|
|
275
|
+
return this.a5m(id, count);
|
|
280
276
|
};
|
|
281
277
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
282
278
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -302,10 +298,10 @@
|
|
|
302
298
|
this.players = players;
|
|
303
299
|
this.gameId = gameId;
|
|
304
300
|
}
|
|
305
|
-
protoOf(CardDeckRequestUserData).
|
|
301
|
+
protoOf(CardDeckRequestUserData).b5m = function () {
|
|
306
302
|
return this.players;
|
|
307
303
|
};
|
|
308
|
-
protoOf(CardDeckRequestUserData).
|
|
304
|
+
protoOf(CardDeckRequestUserData).c5m = function () {
|
|
309
305
|
return this.gameId;
|
|
310
306
|
};
|
|
311
307
|
protoOf(CardDeckRequestUserData).qe = function () {
|
|
@@ -314,13 +310,13 @@
|
|
|
314
310
|
protoOf(CardDeckRequestUserData).re = function () {
|
|
315
311
|
return this.gameId;
|
|
316
312
|
};
|
|
317
|
-
protoOf(CardDeckRequestUserData).
|
|
313
|
+
protoOf(CardDeckRequestUserData).d5m = function (players, gameId) {
|
|
318
314
|
return new CardDeckRequestUserData(players, gameId);
|
|
319
315
|
};
|
|
320
316
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
321
317
|
players = players === VOID ? this.players : players;
|
|
322
318
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
323
|
-
return this.
|
|
319
|
+
return this.d5m(players, gameId);
|
|
324
320
|
};
|
|
325
321
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
326
322
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -346,7 +342,7 @@
|
|
|
346
342
|
this.id = id;
|
|
347
343
|
this.name = name;
|
|
348
344
|
}
|
|
349
|
-
protoOf(UserInfoData).
|
|
345
|
+
protoOf(UserInfoData).s5k = function () {
|
|
350
346
|
return this.id;
|
|
351
347
|
};
|
|
352
348
|
protoOf(UserInfoData).p2 = function () {
|
|
@@ -358,13 +354,13 @@
|
|
|
358
354
|
protoOf(UserInfoData).re = function () {
|
|
359
355
|
return this.name;
|
|
360
356
|
};
|
|
361
|
-
protoOf(UserInfoData).
|
|
357
|
+
protoOf(UserInfoData).e5m = function (id, name) {
|
|
362
358
|
return new UserInfoData(id, name);
|
|
363
359
|
};
|
|
364
360
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
365
361
|
id = id === VOID ? this.id : id;
|
|
366
362
|
name = name === VOID ? this.name : name;
|
|
367
|
-
return this.
|
|
363
|
+
return this.e5m(id, name);
|
|
368
364
|
};
|
|
369
365
|
protoOf(UserInfoData).toString = function () {
|
|
370
366
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -387,19 +383,19 @@
|
|
|
387
383
|
return true;
|
|
388
384
|
};
|
|
389
385
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
386
|
+
this.f5m_1 = cardDecks;
|
|
387
|
+
this.g5m_1 = responseText;
|
|
388
|
+
this.h5m_1 = id;
|
|
389
|
+
this.i5m_1 = signature;
|
|
394
390
|
}
|
|
395
391
|
protoOf(CardDeckResult).toString = function () {
|
|
396
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
392
|
+
return 'CardDeckResult(cardDecks=' + toString(this.f5m_1) + ', responseText=' + this.g5m_1 + ', id=' + this.h5m_1 + ', signature=' + this.i5m_1 + ')';
|
|
397
393
|
};
|
|
398
394
|
protoOf(CardDeckResult).hashCode = function () {
|
|
399
|
-
var result = hashCode(this.
|
|
400
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
401
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
402
|
-
result = imul(result, 31) + (this.
|
|
395
|
+
var result = hashCode(this.f5m_1);
|
|
396
|
+
result = imul(result, 31) + getStringHashCode(this.g5m_1) | 0;
|
|
397
|
+
result = imul(result, 31) + getStringHashCode(this.h5m_1) | 0;
|
|
398
|
+
result = imul(result, 31) + (this.i5m_1 == null ? 0 : getStringHashCode(this.i5m_1)) | 0;
|
|
403
399
|
return result;
|
|
404
400
|
};
|
|
405
401
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -408,13 +404,13 @@
|
|
|
408
404
|
if (!(other instanceof CardDeckResult))
|
|
409
405
|
return false;
|
|
410
406
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
411
|
-
if (!equals(this.
|
|
407
|
+
if (!equals(this.f5m_1, tmp0_other_with_cast.f5m_1))
|
|
412
408
|
return false;
|
|
413
|
-
if (!(this.
|
|
409
|
+
if (!(this.g5m_1 === tmp0_other_with_cast.g5m_1))
|
|
414
410
|
return false;
|
|
415
|
-
if (!(this.
|
|
411
|
+
if (!(this.h5m_1 === tmp0_other_with_cast.h5m_1))
|
|
416
412
|
return false;
|
|
417
|
-
if (!(this.
|
|
413
|
+
if (!(this.i5m_1 == tmp0_other_with_cast.i5m_1))
|
|
418
414
|
return false;
|
|
419
415
|
return true;
|
|
420
416
|
};
|
|
@@ -437,16 +433,16 @@
|
|
|
437
433
|
this.userData = userData;
|
|
438
434
|
this.rounds = rounds;
|
|
439
435
|
}
|
|
440
|
-
protoOf(GameCardDecksRecord).
|
|
436
|
+
protoOf(GameCardDecksRecord).j5m = function () {
|
|
441
437
|
return this.poolId;
|
|
442
438
|
};
|
|
443
|
-
protoOf(GameCardDecksRecord).
|
|
439
|
+
protoOf(GameCardDecksRecord).k5m = function () {
|
|
444
440
|
return this.signature;
|
|
445
441
|
};
|
|
446
|
-
protoOf(GameCardDecksRecord).
|
|
442
|
+
protoOf(GameCardDecksRecord).l5m = function () {
|
|
447
443
|
return this.userData;
|
|
448
444
|
};
|
|
449
|
-
protoOf(GameCardDecksRecord).
|
|
445
|
+
protoOf(GameCardDecksRecord).m5m = function () {
|
|
450
446
|
return this.rounds;
|
|
451
447
|
};
|
|
452
448
|
protoOf(GameCardDecksRecord).qe = function () {
|
|
@@ -458,10 +454,10 @@
|
|
|
458
454
|
protoOf(GameCardDecksRecord).ik = function () {
|
|
459
455
|
return this.userData;
|
|
460
456
|
};
|
|
461
|
-
protoOf(GameCardDecksRecord).
|
|
457
|
+
protoOf(GameCardDecksRecord).n5m = function () {
|
|
462
458
|
return this.rounds;
|
|
463
459
|
};
|
|
464
|
-
protoOf(GameCardDecksRecord).
|
|
460
|
+
protoOf(GameCardDecksRecord).o5m = function (poolId, signature, userData, rounds) {
|
|
465
461
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
466
462
|
};
|
|
467
463
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -469,7 +465,7 @@
|
|
|
469
465
|
signature = signature === VOID ? this.signature : signature;
|
|
470
466
|
userData = userData === VOID ? this.userData : userData;
|
|
471
467
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
472
|
-
return this.
|
|
468
|
+
return this.o5m(poolId, signature, userData, rounds);
|
|
473
469
|
};
|
|
474
470
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
475
471
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -501,10 +497,10 @@
|
|
|
501
497
|
this.cardDeckIndex = cardDeckIndex;
|
|
502
498
|
this.cards = cards;
|
|
503
499
|
}
|
|
504
|
-
protoOf(GameCardDeckData).
|
|
500
|
+
protoOf(GameCardDeckData).p5m = function () {
|
|
505
501
|
return this.cardDeckIndex;
|
|
506
502
|
};
|
|
507
|
-
protoOf(GameCardDeckData).
|
|
503
|
+
protoOf(GameCardDeckData).q5m = function () {
|
|
508
504
|
return this.cards;
|
|
509
505
|
};
|
|
510
506
|
protoOf(GameCardDeckData).qe = function () {
|
|
@@ -513,13 +509,13 @@
|
|
|
513
509
|
protoOf(GameCardDeckData).re = function () {
|
|
514
510
|
return this.cards;
|
|
515
511
|
};
|
|
516
|
-
protoOf(GameCardDeckData).
|
|
512
|
+
protoOf(GameCardDeckData).r5m = function (cardDeckIndex, cards) {
|
|
517
513
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
518
514
|
};
|
|
519
515
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
520
516
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
521
517
|
cards = cards === VOID ? this.cards : cards;
|
|
522
|
-
return this.
|
|
518
|
+
return this.r5m(cardDeckIndex, cards);
|
|
523
519
|
};
|
|
524
520
|
protoOf(GameCardDeckData).toString = function () {
|
|
525
521
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -546,10 +542,10 @@
|
|
|
546
542
|
this.baseUrl = baseUrl;
|
|
547
543
|
this.timeoutMillis = timeoutMillis;
|
|
548
544
|
}
|
|
549
|
-
protoOf(HttpConfig).
|
|
545
|
+
protoOf(HttpConfig).s5m = function () {
|
|
550
546
|
return this.baseUrl;
|
|
551
547
|
};
|
|
552
|
-
protoOf(HttpConfig).
|
|
548
|
+
protoOf(HttpConfig).t5m = function () {
|
|
553
549
|
return this.timeoutMillis;
|
|
554
550
|
};
|
|
555
551
|
protoOf(HttpConfig).qe = function () {
|
|
@@ -558,13 +554,13 @@
|
|
|
558
554
|
protoOf(HttpConfig).re = function () {
|
|
559
555
|
return this.timeoutMillis;
|
|
560
556
|
};
|
|
561
|
-
protoOf(HttpConfig).
|
|
557
|
+
protoOf(HttpConfig).a5m = function (baseUrl, timeoutMillis) {
|
|
562
558
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
563
559
|
};
|
|
564
560
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
565
561
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
566
562
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
567
|
-
return this.
|
|
563
|
+
return this.a5m(baseUrl, timeoutMillis);
|
|
568
564
|
};
|
|
569
565
|
protoOf(HttpConfig).toString = function () {
|
|
570
566
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -599,16 +595,16 @@
|
|
|
599
595
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
600
596
|
this.httpConfig = httpConfig;
|
|
601
597
|
}
|
|
602
|
-
protoOf(RandomOrgConfig).
|
|
598
|
+
protoOf(RandomOrgConfig).u5m = function () {
|
|
603
599
|
return this.apiKey;
|
|
604
600
|
};
|
|
605
|
-
protoOf(RandomOrgConfig).
|
|
601
|
+
protoOf(RandomOrgConfig).v5m = function () {
|
|
606
602
|
return this.poolSize;
|
|
607
603
|
};
|
|
608
|
-
protoOf(RandomOrgConfig).
|
|
604
|
+
protoOf(RandomOrgConfig).w5m = function () {
|
|
609
605
|
return this.thresholdForUsedPool;
|
|
610
606
|
};
|
|
611
|
-
protoOf(RandomOrgConfig).
|
|
607
|
+
protoOf(RandomOrgConfig).x5m = function () {
|
|
612
608
|
return this.httpConfig;
|
|
613
609
|
};
|
|
614
610
|
protoOf(RandomOrgConfig).qe = function () {
|
|
@@ -620,10 +616,10 @@
|
|
|
620
616
|
protoOf(RandomOrgConfig).ik = function () {
|
|
621
617
|
return this.thresholdForUsedPool;
|
|
622
618
|
};
|
|
623
|
-
protoOf(RandomOrgConfig).
|
|
619
|
+
protoOf(RandomOrgConfig).n5m = function () {
|
|
624
620
|
return this.httpConfig;
|
|
625
621
|
};
|
|
626
|
-
protoOf(RandomOrgConfig).
|
|
622
|
+
protoOf(RandomOrgConfig).y5m = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
627
623
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
628
624
|
};
|
|
629
625
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -631,7 +627,7 @@
|
|
|
631
627
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
632
628
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
633
629
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
634
|
-
return this.
|
|
630
|
+
return this.y5m(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
635
631
|
};
|
|
636
632
|
protoOf(RandomOrgConfig).toString = function () {
|
|
637
633
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -668,59 +664,59 @@
|
|
|
668
664
|
function $serializer() {
|
|
669
665
|
$serializer_instance = this;
|
|
670
666
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
671
|
-
tmp0_serialDesc.
|
|
672
|
-
tmp0_serialDesc.
|
|
673
|
-
this.
|
|
674
|
-
}
|
|
675
|
-
protoOf($serializer).
|
|
676
|
-
var tmp0_desc = this.
|
|
677
|
-
var tmp1_output = encoder.
|
|
678
|
-
tmp1_output.
|
|
679
|
-
tmp1_output.
|
|
680
|
-
tmp1_output.
|
|
681
|
-
};
|
|
682
|
-
protoOf($serializer).
|
|
683
|
-
return this.
|
|
684
|
-
};
|
|
685
|
-
protoOf($serializer).
|
|
686
|
-
var tmp0_desc = this.
|
|
667
|
+
tmp0_serialDesc.k4f('jsonrpc', false);
|
|
668
|
+
tmp0_serialDesc.k4f('error', false);
|
|
669
|
+
this.z5m_1 = tmp0_serialDesc;
|
|
670
|
+
}
|
|
671
|
+
protoOf($serializer).a5n = function (encoder, value) {
|
|
672
|
+
var tmp0_desc = this.z5m_1;
|
|
673
|
+
var tmp1_output = encoder.w47(tmp0_desc);
|
|
674
|
+
tmp1_output.k49(tmp0_desc, 0, value.b5n_1);
|
|
675
|
+
tmp1_output.o49(tmp0_desc, 1, $serializer_getInstance_0(), value.c5n_1);
|
|
676
|
+
tmp1_output.x47(tmp0_desc);
|
|
677
|
+
};
|
|
678
|
+
protoOf($serializer).j44 = function (encoder, value) {
|
|
679
|
+
return this.a5n(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
680
|
+
};
|
|
681
|
+
protoOf($serializer).k44 = function (decoder) {
|
|
682
|
+
var tmp0_desc = this.z5m_1;
|
|
687
683
|
var tmp1_flag = true;
|
|
688
684
|
var tmp2_index = 0;
|
|
689
685
|
var tmp3_bitMask0 = 0;
|
|
690
686
|
var tmp4_local0 = null;
|
|
691
687
|
var tmp5_local1 = null;
|
|
692
|
-
var tmp6_input = decoder.
|
|
693
|
-
if (tmp6_input.
|
|
694
|
-
tmp4_local0 = tmp6_input.
|
|
688
|
+
var tmp6_input = decoder.w47(tmp0_desc);
|
|
689
|
+
if (tmp6_input.l48()) {
|
|
690
|
+
tmp4_local0 = tmp6_input.g48(tmp0_desc, 0);
|
|
695
691
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
696
|
-
tmp5_local1 = tmp6_input.
|
|
692
|
+
tmp5_local1 = tmp6_input.k48(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
697
693
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
698
694
|
} else
|
|
699
695
|
while (tmp1_flag) {
|
|
700
|
-
tmp2_index = tmp6_input.
|
|
696
|
+
tmp2_index = tmp6_input.m48(tmp0_desc);
|
|
701
697
|
switch (tmp2_index) {
|
|
702
698
|
case -1:
|
|
703
699
|
tmp1_flag = false;
|
|
704
700
|
break;
|
|
705
701
|
case 0:
|
|
706
|
-
tmp4_local0 = tmp6_input.
|
|
702
|
+
tmp4_local0 = tmp6_input.g48(tmp0_desc, 0);
|
|
707
703
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
708
704
|
break;
|
|
709
705
|
case 1:
|
|
710
|
-
tmp5_local1 = tmp6_input.
|
|
706
|
+
tmp5_local1 = tmp6_input.k48(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
711
707
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
712
708
|
break;
|
|
713
709
|
default:
|
|
714
710
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
715
711
|
}
|
|
716
712
|
}
|
|
717
|
-
tmp6_input.
|
|
713
|
+
tmp6_input.x47(tmp0_desc);
|
|
718
714
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
719
715
|
};
|
|
720
|
-
protoOf($serializer).
|
|
721
|
-
return this.
|
|
716
|
+
protoOf($serializer).i44 = function () {
|
|
717
|
+
return this.z5m_1;
|
|
722
718
|
};
|
|
723
|
-
protoOf($serializer).
|
|
719
|
+
protoOf($serializer).z4f = function () {
|
|
724
720
|
// Inline function 'kotlin.arrayOf' call
|
|
725
721
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
726
722
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -734,25 +730,25 @@
|
|
|
734
730
|
}
|
|
735
731
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
736
732
|
if (!(3 === (3 & seen0))) {
|
|
737
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
733
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().z5m_1);
|
|
738
734
|
}
|
|
739
|
-
$this.
|
|
740
|
-
$this.
|
|
735
|
+
$this.b5n_1 = jsonrpc;
|
|
736
|
+
$this.c5n_1 = error;
|
|
741
737
|
return $this;
|
|
742
738
|
}
|
|
743
739
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
744
740
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
745
741
|
}
|
|
746
742
|
function ErrorResponseDto(jsonrpc, error) {
|
|
747
|
-
this.
|
|
748
|
-
this.
|
|
743
|
+
this.b5n_1 = jsonrpc;
|
|
744
|
+
this.c5n_1 = error;
|
|
749
745
|
}
|
|
750
746
|
protoOf(ErrorResponseDto).toString = function () {
|
|
751
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
747
|
+
return 'ErrorResponseDto(jsonrpc=' + this.b5n_1 + ', error=' + toString_0(this.c5n_1) + ')';
|
|
752
748
|
};
|
|
753
749
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
754
|
-
var result = getStringHashCode(this.
|
|
755
|
-
result = imul(result, 31) + (this.
|
|
750
|
+
var result = getStringHashCode(this.b5n_1);
|
|
751
|
+
result = imul(result, 31) + (this.c5n_1 == null ? 0 : this.c5n_1.hashCode()) | 0;
|
|
756
752
|
return result;
|
|
757
753
|
};
|
|
758
754
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -761,68 +757,68 @@
|
|
|
761
757
|
if (!(other instanceof ErrorResponseDto))
|
|
762
758
|
return false;
|
|
763
759
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
764
|
-
if (!(this.
|
|
760
|
+
if (!(this.b5n_1 === tmp0_other_with_cast.b5n_1))
|
|
765
761
|
return false;
|
|
766
|
-
if (!equals(this.
|
|
762
|
+
if (!equals(this.c5n_1, tmp0_other_with_cast.c5n_1))
|
|
767
763
|
return false;
|
|
768
764
|
return true;
|
|
769
765
|
};
|
|
770
766
|
function $serializer_0() {
|
|
771
767
|
$serializer_instance_0 = this;
|
|
772
768
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
773
|
-
tmp0_serialDesc.
|
|
774
|
-
tmp0_serialDesc.
|
|
775
|
-
this.
|
|
776
|
-
}
|
|
777
|
-
protoOf($serializer_0).
|
|
778
|
-
var tmp0_desc = this.
|
|
779
|
-
var tmp1_output = encoder.
|
|
780
|
-
tmp1_output.
|
|
781
|
-
tmp1_output.
|
|
782
|
-
tmp1_output.
|
|
783
|
-
};
|
|
784
|
-
protoOf($serializer_0).
|
|
785
|
-
return this.
|
|
786
|
-
};
|
|
787
|
-
protoOf($serializer_0).
|
|
788
|
-
var tmp0_desc = this.
|
|
769
|
+
tmp0_serialDesc.k4f('code', false);
|
|
770
|
+
tmp0_serialDesc.k4f('message', false);
|
|
771
|
+
this.d5n_1 = tmp0_serialDesc;
|
|
772
|
+
}
|
|
773
|
+
protoOf($serializer_0).e5n = function (encoder, value) {
|
|
774
|
+
var tmp0_desc = this.d5n_1;
|
|
775
|
+
var tmp1_output = encoder.w47(tmp0_desc);
|
|
776
|
+
tmp1_output.o49(tmp0_desc, 0, IntSerializer_getInstance(), value.f5n_1);
|
|
777
|
+
tmp1_output.o49(tmp0_desc, 1, StringSerializer_getInstance(), value.g5n_1);
|
|
778
|
+
tmp1_output.x47(tmp0_desc);
|
|
779
|
+
};
|
|
780
|
+
protoOf($serializer_0).j44 = function (encoder, value) {
|
|
781
|
+
return this.e5n(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
782
|
+
};
|
|
783
|
+
protoOf($serializer_0).k44 = function (decoder) {
|
|
784
|
+
var tmp0_desc = this.d5n_1;
|
|
789
785
|
var tmp1_flag = true;
|
|
790
786
|
var tmp2_index = 0;
|
|
791
787
|
var tmp3_bitMask0 = 0;
|
|
792
788
|
var tmp4_local0 = null;
|
|
793
789
|
var tmp5_local1 = null;
|
|
794
|
-
var tmp6_input = decoder.
|
|
795
|
-
if (tmp6_input.
|
|
796
|
-
tmp4_local0 = tmp6_input.
|
|
790
|
+
var tmp6_input = decoder.w47(tmp0_desc);
|
|
791
|
+
if (tmp6_input.l48()) {
|
|
792
|
+
tmp4_local0 = tmp6_input.k48(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
797
793
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
798
|
-
tmp5_local1 = tmp6_input.
|
|
794
|
+
tmp5_local1 = tmp6_input.k48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
799
795
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
800
796
|
} else
|
|
801
797
|
while (tmp1_flag) {
|
|
802
|
-
tmp2_index = tmp6_input.
|
|
798
|
+
tmp2_index = tmp6_input.m48(tmp0_desc);
|
|
803
799
|
switch (tmp2_index) {
|
|
804
800
|
case -1:
|
|
805
801
|
tmp1_flag = false;
|
|
806
802
|
break;
|
|
807
803
|
case 0:
|
|
808
|
-
tmp4_local0 = tmp6_input.
|
|
804
|
+
tmp4_local0 = tmp6_input.k48(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
809
805
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
810
806
|
break;
|
|
811
807
|
case 1:
|
|
812
|
-
tmp5_local1 = tmp6_input.
|
|
808
|
+
tmp5_local1 = tmp6_input.k48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
813
809
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
814
810
|
break;
|
|
815
811
|
default:
|
|
816
812
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
817
813
|
}
|
|
818
814
|
}
|
|
819
|
-
tmp6_input.
|
|
815
|
+
tmp6_input.x47(tmp0_desc);
|
|
820
816
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
821
817
|
};
|
|
822
|
-
protoOf($serializer_0).
|
|
823
|
-
return this.
|
|
818
|
+
protoOf($serializer_0).i44 = function () {
|
|
819
|
+
return this.d5n_1;
|
|
824
820
|
};
|
|
825
|
-
protoOf($serializer_0).
|
|
821
|
+
protoOf($serializer_0).z4f = function () {
|
|
826
822
|
// Inline function 'kotlin.arrayOf' call
|
|
827
823
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
828
824
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -836,10 +832,10 @@
|
|
|
836
832
|
}
|
|
837
833
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
838
834
|
if (!(3 === (3 & seen0))) {
|
|
839
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
835
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().d5n_1);
|
|
840
836
|
}
|
|
841
|
-
$this.
|
|
842
|
-
$this.
|
|
837
|
+
$this.f5n_1 = code;
|
|
838
|
+
$this.g5n_1 = message;
|
|
843
839
|
return $this;
|
|
844
840
|
}
|
|
845
841
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -848,11 +844,11 @@
|
|
|
848
844
|
function ErrorDto() {
|
|
849
845
|
}
|
|
850
846
|
protoOf(ErrorDto).toString = function () {
|
|
851
|
-
return 'ErrorDto(code=' + this.
|
|
847
|
+
return 'ErrorDto(code=' + this.f5n_1 + ', message=' + this.g5n_1 + ')';
|
|
852
848
|
};
|
|
853
849
|
protoOf(ErrorDto).hashCode = function () {
|
|
854
|
-
var result = this.
|
|
855
|
-
result = imul(result, 31) + (this.
|
|
850
|
+
var result = this.f5n_1 == null ? 0 : this.f5n_1;
|
|
851
|
+
result = imul(result, 31) + (this.g5n_1 == null ? 0 : getStringHashCode(this.g5n_1)) | 0;
|
|
856
852
|
return result;
|
|
857
853
|
};
|
|
858
854
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -861,15 +857,15 @@
|
|
|
861
857
|
if (!(other instanceof ErrorDto))
|
|
862
858
|
return false;
|
|
863
859
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
864
|
-
if (!(this.
|
|
860
|
+
if (!(this.f5n_1 == tmp0_other_with_cast.f5n_1))
|
|
865
861
|
return false;
|
|
866
|
-
if (!(this.
|
|
862
|
+
if (!(this.g5n_1 == tmp0_other_with_cast.g5n_1))
|
|
867
863
|
return false;
|
|
868
864
|
return true;
|
|
869
865
|
};
|
|
870
866
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
871
867
|
$serializer_1.call($this);
|
|
872
|
-
$this.
|
|
868
|
+
$this.i5n_1 = typeSerial0;
|
|
873
869
|
return $this;
|
|
874
870
|
}
|
|
875
871
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -878,17 +874,17 @@
|
|
|
878
874
|
function Companion_2() {
|
|
879
875
|
Companion_instance_4 = this;
|
|
880
876
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
881
|
-
tmp0_serialDesc.
|
|
882
|
-
tmp0_serialDesc.
|
|
883
|
-
tmp0_serialDesc.
|
|
884
|
-
tmp0_serialDesc.
|
|
885
|
-
this.
|
|
877
|
+
tmp0_serialDesc.k4f('jsonrpc', false);
|
|
878
|
+
tmp0_serialDesc.k4f('method', false);
|
|
879
|
+
tmp0_serialDesc.k4f('params', false);
|
|
880
|
+
tmp0_serialDesc.k4f('id', false);
|
|
881
|
+
this.j5n_1 = tmp0_serialDesc;
|
|
886
882
|
}
|
|
887
|
-
protoOf(Companion_2).
|
|
883
|
+
protoOf(Companion_2).k5n = function (typeSerial0) {
|
|
888
884
|
return $serializer_init_$Create$(typeSerial0);
|
|
889
885
|
};
|
|
890
|
-
protoOf(Companion_2).
|
|
891
|
-
return this.
|
|
886
|
+
protoOf(Companion_2).k4g = function (typeParamsSerializers) {
|
|
887
|
+
return this.k5n(typeParamsSerializers[0]);
|
|
892
888
|
};
|
|
893
889
|
var Companion_instance_4;
|
|
894
890
|
function Companion_getInstance_5() {
|
|
@@ -898,26 +894,26 @@
|
|
|
898
894
|
}
|
|
899
895
|
function $serializer_1() {
|
|
900
896
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
901
|
-
tmp0_serialDesc.
|
|
902
|
-
tmp0_serialDesc.
|
|
903
|
-
tmp0_serialDesc.
|
|
904
|
-
tmp0_serialDesc.
|
|
905
|
-
this.
|
|
906
|
-
}
|
|
907
|
-
protoOf($serializer_1).
|
|
908
|
-
var tmp0_desc = this.
|
|
909
|
-
var tmp1_output = encoder.
|
|
910
|
-
tmp1_output.
|
|
911
|
-
tmp1_output.
|
|
912
|
-
tmp1_output.
|
|
913
|
-
tmp1_output.
|
|
914
|
-
tmp1_output.
|
|
915
|
-
};
|
|
916
|
-
protoOf($serializer_1).
|
|
917
|
-
return this.
|
|
918
|
-
};
|
|
919
|
-
protoOf($serializer_1).
|
|
920
|
-
var tmp0_desc = this.
|
|
897
|
+
tmp0_serialDesc.k4f('jsonrpc', false);
|
|
898
|
+
tmp0_serialDesc.k4f('method', false);
|
|
899
|
+
tmp0_serialDesc.k4f('params', false);
|
|
900
|
+
tmp0_serialDesc.k4f('id', false);
|
|
901
|
+
this.h5n_1 = tmp0_serialDesc;
|
|
902
|
+
}
|
|
903
|
+
protoOf($serializer_1).l5n = function (encoder, value) {
|
|
904
|
+
var tmp0_desc = this.h5n_1;
|
|
905
|
+
var tmp1_output = encoder.w47(tmp0_desc);
|
|
906
|
+
tmp1_output.k49(tmp0_desc, 0, value.m5n_1);
|
|
907
|
+
tmp1_output.k49(tmp0_desc, 1, value.n5n_1);
|
|
908
|
+
tmp1_output.m49(tmp0_desc, 2, this.i5n_1, value.o5n_1);
|
|
909
|
+
tmp1_output.k49(tmp0_desc, 3, value.p5n_1);
|
|
910
|
+
tmp1_output.x47(tmp0_desc);
|
|
911
|
+
};
|
|
912
|
+
protoOf($serializer_1).j44 = function (encoder, value) {
|
|
913
|
+
return this.l5n(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
914
|
+
};
|
|
915
|
+
protoOf($serializer_1).k44 = function (decoder) {
|
|
916
|
+
var tmp0_desc = this.h5n_1;
|
|
921
917
|
var tmp1_flag = true;
|
|
922
918
|
var tmp2_index = 0;
|
|
923
919
|
var tmp3_bitMask0 = 0;
|
|
@@ -925,69 +921,69 @@
|
|
|
925
921
|
var tmp5_local1 = null;
|
|
926
922
|
var tmp6_local2 = null;
|
|
927
923
|
var tmp7_local3 = null;
|
|
928
|
-
var tmp8_input = decoder.
|
|
929
|
-
if (tmp8_input.
|
|
930
|
-
tmp4_local0 = tmp8_input.
|
|
924
|
+
var tmp8_input = decoder.w47(tmp0_desc);
|
|
925
|
+
if (tmp8_input.l48()) {
|
|
926
|
+
tmp4_local0 = tmp8_input.g48(tmp0_desc, 0);
|
|
931
927
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
932
|
-
tmp5_local1 = tmp8_input.
|
|
928
|
+
tmp5_local1 = tmp8_input.g48(tmp0_desc, 1);
|
|
933
929
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
934
|
-
tmp6_local2 = tmp8_input.
|
|
930
|
+
tmp6_local2 = tmp8_input.i48(tmp0_desc, 2, this.i5n_1, tmp6_local2);
|
|
935
931
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
936
|
-
tmp7_local3 = tmp8_input.
|
|
932
|
+
tmp7_local3 = tmp8_input.g48(tmp0_desc, 3);
|
|
937
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
938
934
|
} else
|
|
939
935
|
while (tmp1_flag) {
|
|
940
|
-
tmp2_index = tmp8_input.
|
|
936
|
+
tmp2_index = tmp8_input.m48(tmp0_desc);
|
|
941
937
|
switch (tmp2_index) {
|
|
942
938
|
case -1:
|
|
943
939
|
tmp1_flag = false;
|
|
944
940
|
break;
|
|
945
941
|
case 0:
|
|
946
|
-
tmp4_local0 = tmp8_input.
|
|
942
|
+
tmp4_local0 = tmp8_input.g48(tmp0_desc, 0);
|
|
947
943
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
948
944
|
break;
|
|
949
945
|
case 1:
|
|
950
|
-
tmp5_local1 = tmp8_input.
|
|
946
|
+
tmp5_local1 = tmp8_input.g48(tmp0_desc, 1);
|
|
951
947
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
952
948
|
break;
|
|
953
949
|
case 2:
|
|
954
|
-
tmp6_local2 = tmp8_input.
|
|
950
|
+
tmp6_local2 = tmp8_input.i48(tmp0_desc, 2, this.i5n_1, tmp6_local2);
|
|
955
951
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
956
952
|
break;
|
|
957
953
|
case 3:
|
|
958
|
-
tmp7_local3 = tmp8_input.
|
|
954
|
+
tmp7_local3 = tmp8_input.g48(tmp0_desc, 3);
|
|
959
955
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
960
956
|
break;
|
|
961
957
|
default:
|
|
962
958
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
963
959
|
}
|
|
964
960
|
}
|
|
965
|
-
tmp8_input.
|
|
961
|
+
tmp8_input.x47(tmp0_desc);
|
|
966
962
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
967
963
|
};
|
|
968
|
-
protoOf($serializer_1).
|
|
969
|
-
return this.
|
|
964
|
+
protoOf($serializer_1).i44 = function () {
|
|
965
|
+
return this.h5n_1;
|
|
970
966
|
};
|
|
971
|
-
protoOf($serializer_1).
|
|
967
|
+
protoOf($serializer_1).z4f = function () {
|
|
972
968
|
// Inline function 'kotlin.arrayOf' call
|
|
973
969
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
974
970
|
// Inline function 'kotlin.js.asDynamic' call
|
|
975
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
971
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.i5n_1, StringSerializer_getInstance()];
|
|
976
972
|
};
|
|
977
|
-
protoOf($serializer_1).
|
|
973
|
+
protoOf($serializer_1).a4g = function () {
|
|
978
974
|
// Inline function 'kotlin.arrayOf' call
|
|
979
975
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
980
976
|
// Inline function 'kotlin.js.asDynamic' call
|
|
981
|
-
return [this.
|
|
977
|
+
return [this.i5n_1];
|
|
982
978
|
};
|
|
983
979
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
984
980
|
if (!(15 === (15 & seen0))) {
|
|
985
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
981
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().j5n_1);
|
|
986
982
|
}
|
|
987
|
-
$this.
|
|
988
|
-
$this.
|
|
989
|
-
$this.
|
|
990
|
-
$this.
|
|
983
|
+
$this.m5n_1 = jsonrpc;
|
|
984
|
+
$this.n5n_1 = method;
|
|
985
|
+
$this.o5n_1 = params;
|
|
986
|
+
$this.p5n_1 = id;
|
|
991
987
|
return $this;
|
|
992
988
|
}
|
|
993
989
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -995,19 +991,19 @@
|
|
|
995
991
|
}
|
|
996
992
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
997
993
|
Companion_getInstance_5();
|
|
998
|
-
this.
|
|
999
|
-
this.
|
|
1000
|
-
this.
|
|
1001
|
-
this.
|
|
994
|
+
this.m5n_1 = jsonrpc;
|
|
995
|
+
this.n5n_1 = method;
|
|
996
|
+
this.o5n_1 = params;
|
|
997
|
+
this.p5n_1 = id;
|
|
1002
998
|
}
|
|
1003
999
|
protoOf(RandomRequestDto).toString = function () {
|
|
1004
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
1000
|
+
return 'RandomRequestDto(jsonrpc=' + this.m5n_1 + ', method=' + this.n5n_1 + ', params=' + toString(this.o5n_1) + ', id=' + this.p5n_1 + ')';
|
|
1005
1001
|
};
|
|
1006
1002
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
1007
|
-
var result = getStringHashCode(this.
|
|
1008
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1009
|
-
result = imul(result, 31) + hashCode(this.
|
|
1010
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1003
|
+
var result = getStringHashCode(this.m5n_1);
|
|
1004
|
+
result = imul(result, 31) + getStringHashCode(this.n5n_1) | 0;
|
|
1005
|
+
result = imul(result, 31) + hashCode(this.o5n_1) | 0;
|
|
1006
|
+
result = imul(result, 31) + getStringHashCode(this.p5n_1) | 0;
|
|
1011
1007
|
return result;
|
|
1012
1008
|
};
|
|
1013
1009
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1016,13 +1012,13 @@
|
|
|
1016
1012
|
if (!(other instanceof RandomRequestDto))
|
|
1017
1013
|
return false;
|
|
1018
1014
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1019
|
-
if (!(this.
|
|
1015
|
+
if (!(this.m5n_1 === tmp0_other_with_cast.m5n_1))
|
|
1020
1016
|
return false;
|
|
1021
|
-
if (!(this.
|
|
1017
|
+
if (!(this.n5n_1 === tmp0_other_with_cast.n5n_1))
|
|
1022
1018
|
return false;
|
|
1023
|
-
if (!equals(this.
|
|
1019
|
+
if (!equals(this.o5n_1, tmp0_other_with_cast.o5n_1))
|
|
1024
1020
|
return false;
|
|
1025
|
-
if (!(this.
|
|
1021
|
+
if (!(this.p5n_1 === tmp0_other_with_cast.p5n_1))
|
|
1026
1022
|
return false;
|
|
1027
1023
|
return true;
|
|
1028
1024
|
};
|
|
@@ -1032,7 +1028,7 @@
|
|
|
1032
1028
|
// Inline function 'kotlin.arrayOf' call
|
|
1033
1029
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1034
1030
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1035
|
-
tmp.
|
|
1031
|
+
tmp.q5n_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1036
1032
|
}
|
|
1037
1033
|
var Companion_instance_5;
|
|
1038
1034
|
function Companion_getInstance_6() {
|
|
@@ -1043,35 +1039,35 @@
|
|
|
1043
1039
|
function $serializer_2() {
|
|
1044
1040
|
$serializer_instance_1 = this;
|
|
1045
1041
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1046
|
-
tmp0_serialDesc.
|
|
1047
|
-
tmp0_serialDesc.
|
|
1048
|
-
tmp0_serialDesc.
|
|
1049
|
-
tmp0_serialDesc.
|
|
1050
|
-
tmp0_serialDesc.
|
|
1051
|
-
tmp0_serialDesc.
|
|
1052
|
-
tmp0_serialDesc.
|
|
1053
|
-
tmp0_serialDesc.
|
|
1054
|
-
this.
|
|
1055
|
-
}
|
|
1056
|
-
protoOf($serializer_2).
|
|
1057
|
-
var tmp0_desc = this.
|
|
1058
|
-
var tmp1_output = encoder.
|
|
1059
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1060
|
-
tmp1_output.
|
|
1061
|
-
tmp1_output.
|
|
1062
|
-
tmp1_output.
|
|
1063
|
-
tmp1_output.
|
|
1064
|
-
tmp1_output.
|
|
1065
|
-
tmp1_output.
|
|
1066
|
-
tmp1_output.
|
|
1067
|
-
tmp1_output.
|
|
1068
|
-
tmp1_output.
|
|
1069
|
-
};
|
|
1070
|
-
protoOf($serializer_2).
|
|
1071
|
-
return this.
|
|
1072
|
-
};
|
|
1073
|
-
protoOf($serializer_2).
|
|
1074
|
-
var tmp0_desc = this.
|
|
1042
|
+
tmp0_serialDesc.k4f('apiKey', false);
|
|
1043
|
+
tmp0_serialDesc.k4f('n', false);
|
|
1044
|
+
tmp0_serialDesc.k4f('length', false);
|
|
1045
|
+
tmp0_serialDesc.k4f('min', false);
|
|
1046
|
+
tmp0_serialDesc.k4f('max', false);
|
|
1047
|
+
tmp0_serialDesc.k4f('replacement', false);
|
|
1048
|
+
tmp0_serialDesc.k4f('ticketId', false);
|
|
1049
|
+
tmp0_serialDesc.k4f('userData', false);
|
|
1050
|
+
this.r5n_1 = tmp0_serialDesc;
|
|
1051
|
+
}
|
|
1052
|
+
protoOf($serializer_2).s5n = function (encoder, value) {
|
|
1053
|
+
var tmp0_desc = this.r5n_1;
|
|
1054
|
+
var tmp1_output = encoder.w47(tmp0_desc);
|
|
1055
|
+
var tmp2_cached = Companion_getInstance_6().q5n_1;
|
|
1056
|
+
tmp1_output.k49(tmp0_desc, 0, value.t5n_1);
|
|
1057
|
+
tmp1_output.f49(tmp0_desc, 1, value.u5n_1);
|
|
1058
|
+
tmp1_output.m49(tmp0_desc, 2, tmp2_cached[2], value.v5n_1);
|
|
1059
|
+
tmp1_output.f49(tmp0_desc, 3, value.w5n_1);
|
|
1060
|
+
tmp1_output.f49(tmp0_desc, 4, value.x5n_1);
|
|
1061
|
+
tmp1_output.c49(tmp0_desc, 5, value.y5n_1);
|
|
1062
|
+
tmp1_output.o49(tmp0_desc, 6, StringSerializer_getInstance(), value.z5n_1);
|
|
1063
|
+
tmp1_output.o49(tmp0_desc, 7, $serializer_getInstance_2(), value.a5o_1);
|
|
1064
|
+
tmp1_output.x47(tmp0_desc);
|
|
1065
|
+
};
|
|
1066
|
+
protoOf($serializer_2).j44 = function (encoder, value) {
|
|
1067
|
+
return this.s5n(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1068
|
+
};
|
|
1069
|
+
protoOf($serializer_2).k44 = function (decoder) {
|
|
1070
|
+
var tmp0_desc = this.r5n_1;
|
|
1075
1071
|
var tmp1_flag = true;
|
|
1076
1072
|
var tmp2_index = 0;
|
|
1077
1073
|
var tmp3_bitMask0 = 0;
|
|
@@ -1083,76 +1079,76 @@
|
|
|
1083
1079
|
var tmp9_local5 = false;
|
|
1084
1080
|
var tmp10_local6 = null;
|
|
1085
1081
|
var tmp11_local7 = null;
|
|
1086
|
-
var tmp12_input = decoder.
|
|
1087
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1088
|
-
if (tmp12_input.
|
|
1089
|
-
tmp4_local0 = tmp12_input.
|
|
1082
|
+
var tmp12_input = decoder.w47(tmp0_desc);
|
|
1083
|
+
var tmp13_cached = Companion_getInstance_6().q5n_1;
|
|
1084
|
+
if (tmp12_input.l48()) {
|
|
1085
|
+
tmp4_local0 = tmp12_input.g48(tmp0_desc, 0);
|
|
1090
1086
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1091
|
-
tmp5_local1 = tmp12_input.
|
|
1087
|
+
tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
|
|
1092
1088
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1093
|
-
tmp6_local2 = tmp12_input.
|
|
1089
|
+
tmp6_local2 = tmp12_input.i48(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1094
1090
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1095
|
-
tmp7_local3 = tmp12_input.
|
|
1091
|
+
tmp7_local3 = tmp12_input.b48(tmp0_desc, 3);
|
|
1096
1092
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1097
|
-
tmp8_local4 = tmp12_input.
|
|
1093
|
+
tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
|
|
1098
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1099
|
-
tmp9_local5 = tmp12_input.
|
|
1095
|
+
tmp9_local5 = tmp12_input.y47(tmp0_desc, 5);
|
|
1100
1096
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1101
|
-
tmp10_local6 = tmp12_input.
|
|
1097
|
+
tmp10_local6 = tmp12_input.k48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1102
1098
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1103
|
-
tmp11_local7 = tmp12_input.
|
|
1099
|
+
tmp11_local7 = tmp12_input.k48(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1104
1100
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1105
1101
|
} else
|
|
1106
1102
|
while (tmp1_flag) {
|
|
1107
|
-
tmp2_index = tmp12_input.
|
|
1103
|
+
tmp2_index = tmp12_input.m48(tmp0_desc);
|
|
1108
1104
|
switch (tmp2_index) {
|
|
1109
1105
|
case -1:
|
|
1110
1106
|
tmp1_flag = false;
|
|
1111
1107
|
break;
|
|
1112
1108
|
case 0:
|
|
1113
|
-
tmp4_local0 = tmp12_input.
|
|
1109
|
+
tmp4_local0 = tmp12_input.g48(tmp0_desc, 0);
|
|
1114
1110
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1115
1111
|
break;
|
|
1116
1112
|
case 1:
|
|
1117
|
-
tmp5_local1 = tmp12_input.
|
|
1113
|
+
tmp5_local1 = tmp12_input.b48(tmp0_desc, 1);
|
|
1118
1114
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1119
1115
|
break;
|
|
1120
1116
|
case 2:
|
|
1121
|
-
tmp6_local2 = tmp12_input.
|
|
1117
|
+
tmp6_local2 = tmp12_input.i48(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1122
1118
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1123
1119
|
break;
|
|
1124
1120
|
case 3:
|
|
1125
|
-
tmp7_local3 = tmp12_input.
|
|
1121
|
+
tmp7_local3 = tmp12_input.b48(tmp0_desc, 3);
|
|
1126
1122
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1127
1123
|
break;
|
|
1128
1124
|
case 4:
|
|
1129
|
-
tmp8_local4 = tmp12_input.
|
|
1125
|
+
tmp8_local4 = tmp12_input.b48(tmp0_desc, 4);
|
|
1130
1126
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1131
1127
|
break;
|
|
1132
1128
|
case 5:
|
|
1133
|
-
tmp9_local5 = tmp12_input.
|
|
1129
|
+
tmp9_local5 = tmp12_input.y47(tmp0_desc, 5);
|
|
1134
1130
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1135
1131
|
break;
|
|
1136
1132
|
case 6:
|
|
1137
|
-
tmp10_local6 = tmp12_input.
|
|
1133
|
+
tmp10_local6 = tmp12_input.k48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1138
1134
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1139
1135
|
break;
|
|
1140
1136
|
case 7:
|
|
1141
|
-
tmp11_local7 = tmp12_input.
|
|
1137
|
+
tmp11_local7 = tmp12_input.k48(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1142
1138
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1143
1139
|
break;
|
|
1144
1140
|
default:
|
|
1145
1141
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1146
1142
|
}
|
|
1147
1143
|
}
|
|
1148
|
-
tmp12_input.
|
|
1144
|
+
tmp12_input.x47(tmp0_desc);
|
|
1149
1145
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1150
1146
|
};
|
|
1151
|
-
protoOf($serializer_2).
|
|
1152
|
-
return this.
|
|
1147
|
+
protoOf($serializer_2).i44 = function () {
|
|
1148
|
+
return this.r5n_1;
|
|
1153
1149
|
};
|
|
1154
|
-
protoOf($serializer_2).
|
|
1155
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1150
|
+
protoOf($serializer_2).z4f = function () {
|
|
1151
|
+
var tmp0_cached = Companion_getInstance_6().q5n_1;
|
|
1156
1152
|
// Inline function 'kotlin.arrayOf' call
|
|
1157
1153
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1158
1154
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1166,16 +1162,16 @@
|
|
|
1166
1162
|
}
|
|
1167
1163
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1168
1164
|
if (!(255 === (255 & seen0))) {
|
|
1169
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1165
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().r5n_1);
|
|
1170
1166
|
}
|
|
1171
|
-
$this.
|
|
1172
|
-
$this.
|
|
1173
|
-
$this.
|
|
1174
|
-
$this.
|
|
1175
|
-
$this.
|
|
1176
|
-
$this.
|
|
1177
|
-
$this.
|
|
1178
|
-
$this.
|
|
1167
|
+
$this.t5n_1 = apiKey;
|
|
1168
|
+
$this.u5n_1 = n;
|
|
1169
|
+
$this.v5n_1 = length;
|
|
1170
|
+
$this.w5n_1 = min;
|
|
1171
|
+
$this.x5n_1 = max;
|
|
1172
|
+
$this.y5n_1 = replacement;
|
|
1173
|
+
$this.z5n_1 = ticketId;
|
|
1174
|
+
$this.a5o_1 = userData;
|
|
1179
1175
|
return $this;
|
|
1180
1176
|
}
|
|
1181
1177
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1183,27 +1179,27 @@
|
|
|
1183
1179
|
}
|
|
1184
1180
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1185
1181
|
Companion_getInstance_6();
|
|
1186
|
-
this.
|
|
1187
|
-
this.
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1182
|
+
this.t5n_1 = apiKey;
|
|
1183
|
+
this.u5n_1 = n;
|
|
1184
|
+
this.v5n_1 = length;
|
|
1185
|
+
this.w5n_1 = min;
|
|
1186
|
+
this.x5n_1 = max;
|
|
1187
|
+
this.y5n_1 = replacement;
|
|
1188
|
+
this.z5n_1 = ticketId;
|
|
1189
|
+
this.a5o_1 = userData;
|
|
1194
1190
|
}
|
|
1195
1191
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1196
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1192
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.t5n_1 + ', n=' + this.u5n_1 + ', length=' + toString(this.v5n_1) + ', min=' + this.w5n_1 + ', max=' + this.x5n_1 + ', replacement=' + this.y5n_1 + ', ticketId=' + this.z5n_1 + ', userData=' + toString_0(this.a5o_1) + ')';
|
|
1197
1193
|
};
|
|
1198
1194
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1199
|
-
var result = getStringHashCode(this.
|
|
1200
|
-
result = imul(result, 31) + this.
|
|
1201
|
-
result = imul(result, 31) + hashCode(this.
|
|
1202
|
-
result = imul(result, 31) + this.
|
|
1203
|
-
result = imul(result, 31) + this.
|
|
1204
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1205
|
-
result = imul(result, 31) + (this.
|
|
1206
|
-
result = imul(result, 31) + (this.
|
|
1195
|
+
var result = getStringHashCode(this.t5n_1);
|
|
1196
|
+
result = imul(result, 31) + this.u5n_1 | 0;
|
|
1197
|
+
result = imul(result, 31) + hashCode(this.v5n_1) | 0;
|
|
1198
|
+
result = imul(result, 31) + this.w5n_1 | 0;
|
|
1199
|
+
result = imul(result, 31) + this.x5n_1 | 0;
|
|
1200
|
+
result = imul(result, 31) + getBooleanHashCode(this.y5n_1) | 0;
|
|
1201
|
+
result = imul(result, 31) + (this.z5n_1 == null ? 0 : getStringHashCode(this.z5n_1)) | 0;
|
|
1202
|
+
result = imul(result, 31) + (this.a5o_1 == null ? 0 : this.a5o_1.hashCode()) | 0;
|
|
1207
1203
|
return result;
|
|
1208
1204
|
};
|
|
1209
1205
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1212,21 +1208,21 @@
|
|
|
1212
1208
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1213
1209
|
return false;
|
|
1214
1210
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1215
|
-
if (!(this.
|
|
1211
|
+
if (!(this.t5n_1 === tmp0_other_with_cast.t5n_1))
|
|
1216
1212
|
return false;
|
|
1217
|
-
if (!(this.
|
|
1213
|
+
if (!(this.u5n_1 === tmp0_other_with_cast.u5n_1))
|
|
1218
1214
|
return false;
|
|
1219
|
-
if (!equals(this.
|
|
1215
|
+
if (!equals(this.v5n_1, tmp0_other_with_cast.v5n_1))
|
|
1220
1216
|
return false;
|
|
1221
|
-
if (!(this.
|
|
1217
|
+
if (!(this.w5n_1 === tmp0_other_with_cast.w5n_1))
|
|
1222
1218
|
return false;
|
|
1223
|
-
if (!(this.
|
|
1219
|
+
if (!(this.x5n_1 === tmp0_other_with_cast.x5n_1))
|
|
1224
1220
|
return false;
|
|
1225
|
-
if (!(this.
|
|
1221
|
+
if (!(this.y5n_1 === tmp0_other_with_cast.y5n_1))
|
|
1226
1222
|
return false;
|
|
1227
|
-
if (!(this.
|
|
1223
|
+
if (!(this.z5n_1 == tmp0_other_with_cast.z5n_1))
|
|
1228
1224
|
return false;
|
|
1229
|
-
if (!equals(this.
|
|
1225
|
+
if (!equals(this.a5o_1, tmp0_other_with_cast.a5o_1))
|
|
1230
1226
|
return false;
|
|
1231
1227
|
return true;
|
|
1232
1228
|
};
|
|
@@ -1239,59 +1235,59 @@
|
|
|
1239
1235
|
function $serializer_3() {
|
|
1240
1236
|
$serializer_instance_2 = this;
|
|
1241
1237
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1242
|
-
tmp0_serialDesc.
|
|
1243
|
-
tmp0_serialDesc.
|
|
1244
|
-
this.
|
|
1245
|
-
}
|
|
1246
|
-
protoOf($serializer_3).
|
|
1247
|
-
var tmp0_desc = this.
|
|
1248
|
-
var tmp1_output = encoder.
|
|
1249
|
-
tmp1_output.
|
|
1250
|
-
tmp1_output.
|
|
1251
|
-
tmp1_output.
|
|
1252
|
-
};
|
|
1253
|
-
protoOf($serializer_3).
|
|
1254
|
-
return this.
|
|
1255
|
-
};
|
|
1256
|
-
protoOf($serializer_3).
|
|
1257
|
-
var tmp0_desc = this.
|
|
1238
|
+
tmp0_serialDesc.k4f('id', false);
|
|
1239
|
+
tmp0_serialDesc.k4f('count', false);
|
|
1240
|
+
this.b5o_1 = tmp0_serialDesc;
|
|
1241
|
+
}
|
|
1242
|
+
protoOf($serializer_3).c5o = function (encoder, value) {
|
|
1243
|
+
var tmp0_desc = this.b5o_1;
|
|
1244
|
+
var tmp1_output = encoder.w47(tmp0_desc);
|
|
1245
|
+
tmp1_output.k49(tmp0_desc, 0, value.d5o_1);
|
|
1246
|
+
tmp1_output.f49(tmp0_desc, 1, value.e5o_1);
|
|
1247
|
+
tmp1_output.x47(tmp0_desc);
|
|
1248
|
+
};
|
|
1249
|
+
protoOf($serializer_3).j44 = function (encoder, value) {
|
|
1250
|
+
return this.c5o(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1251
|
+
};
|
|
1252
|
+
protoOf($serializer_3).k44 = function (decoder) {
|
|
1253
|
+
var tmp0_desc = this.b5o_1;
|
|
1258
1254
|
var tmp1_flag = true;
|
|
1259
1255
|
var tmp2_index = 0;
|
|
1260
1256
|
var tmp3_bitMask0 = 0;
|
|
1261
1257
|
var tmp4_local0 = null;
|
|
1262
1258
|
var tmp5_local1 = 0;
|
|
1263
|
-
var tmp6_input = decoder.
|
|
1264
|
-
if (tmp6_input.
|
|
1265
|
-
tmp4_local0 = tmp6_input.
|
|
1259
|
+
var tmp6_input = decoder.w47(tmp0_desc);
|
|
1260
|
+
if (tmp6_input.l48()) {
|
|
1261
|
+
tmp4_local0 = tmp6_input.g48(tmp0_desc, 0);
|
|
1266
1262
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1267
|
-
tmp5_local1 = tmp6_input.
|
|
1263
|
+
tmp5_local1 = tmp6_input.b48(tmp0_desc, 1);
|
|
1268
1264
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1269
1265
|
} else
|
|
1270
1266
|
while (tmp1_flag) {
|
|
1271
|
-
tmp2_index = tmp6_input.
|
|
1267
|
+
tmp2_index = tmp6_input.m48(tmp0_desc);
|
|
1272
1268
|
switch (tmp2_index) {
|
|
1273
1269
|
case -1:
|
|
1274
1270
|
tmp1_flag = false;
|
|
1275
1271
|
break;
|
|
1276
1272
|
case 0:
|
|
1277
|
-
tmp4_local0 = tmp6_input.
|
|
1273
|
+
tmp4_local0 = tmp6_input.g48(tmp0_desc, 0);
|
|
1278
1274
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1279
1275
|
break;
|
|
1280
1276
|
case 1:
|
|
1281
|
-
tmp5_local1 = tmp6_input.
|
|
1277
|
+
tmp5_local1 = tmp6_input.b48(tmp0_desc, 1);
|
|
1282
1278
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1283
1279
|
break;
|
|
1284
1280
|
default:
|
|
1285
1281
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1286
1282
|
}
|
|
1287
1283
|
}
|
|
1288
|
-
tmp6_input.
|
|
1284
|
+
tmp6_input.x47(tmp0_desc);
|
|
1289
1285
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1290
1286
|
};
|
|
1291
|
-
protoOf($serializer_3).
|
|
1292
|
-
return this.
|
|
1287
|
+
protoOf($serializer_3).i44 = function () {
|
|
1288
|
+
return this.b5o_1;
|
|
1293
1289
|
};
|
|
1294
|
-
protoOf($serializer_3).
|
|
1290
|
+
protoOf($serializer_3).z4f = function () {
|
|
1295
1291
|
// Inline function 'kotlin.arrayOf' call
|
|
1296
1292
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1297
1293
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1305,25 +1301,25 @@
|
|
|
1305
1301
|
}
|
|
1306
1302
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1307
1303
|
if (!(3 === (3 & seen0))) {
|
|
1308
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1304
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().b5o_1);
|
|
1309
1305
|
}
|
|
1310
|
-
$this.
|
|
1311
|
-
$this.
|
|
1306
|
+
$this.d5o_1 = id;
|
|
1307
|
+
$this.e5o_1 = count;
|
|
1312
1308
|
return $this;
|
|
1313
1309
|
}
|
|
1314
1310
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1315
1311
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1316
1312
|
}
|
|
1317
1313
|
function CardDecksUserDataDto(id, count) {
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1314
|
+
this.d5o_1 = id;
|
|
1315
|
+
this.e5o_1 = count;
|
|
1320
1316
|
}
|
|
1321
1317
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1322
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1318
|
+
return 'CardDecksUserDataDto(id=' + this.d5o_1 + ', count=' + this.e5o_1 + ')';
|
|
1323
1319
|
};
|
|
1324
1320
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1325
|
-
var result = getStringHashCode(this.
|
|
1326
|
-
result = imul(result, 31) + this.
|
|
1321
|
+
var result = getStringHashCode(this.d5o_1);
|
|
1322
|
+
result = imul(result, 31) + this.e5o_1 | 0;
|
|
1327
1323
|
return result;
|
|
1328
1324
|
};
|
|
1329
1325
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1332,15 +1328,15 @@
|
|
|
1332
1328
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1333
1329
|
return false;
|
|
1334
1330
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1335
|
-
if (!(this.
|
|
1331
|
+
if (!(this.d5o_1 === tmp0_other_with_cast.d5o_1))
|
|
1336
1332
|
return false;
|
|
1337
|
-
if (!(this.
|
|
1333
|
+
if (!(this.e5o_1 === tmp0_other_with_cast.e5o_1))
|
|
1338
1334
|
return false;
|
|
1339
1335
|
return true;
|
|
1340
1336
|
};
|
|
1341
1337
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1342
1338
|
$serializer_4.call($this);
|
|
1343
|
-
$this.
|
|
1339
|
+
$this.g5o_1 = typeSerial0;
|
|
1344
1340
|
return $this;
|
|
1345
1341
|
}
|
|
1346
1342
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1349,16 +1345,16 @@
|
|
|
1349
1345
|
function Companion_5() {
|
|
1350
1346
|
Companion_instance_7 = this;
|
|
1351
1347
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1352
|
-
tmp0_serialDesc.
|
|
1353
|
-
tmp0_serialDesc.
|
|
1354
|
-
tmp0_serialDesc.
|
|
1355
|
-
this.
|
|
1348
|
+
tmp0_serialDesc.k4f('jsonrpc', false);
|
|
1349
|
+
tmp0_serialDesc.k4f('result', false);
|
|
1350
|
+
tmp0_serialDesc.k4f('id', false);
|
|
1351
|
+
this.h5o_1 = tmp0_serialDesc;
|
|
1356
1352
|
}
|
|
1357
|
-
protoOf(Companion_5).
|
|
1353
|
+
protoOf(Companion_5).k5n = function (typeSerial0) {
|
|
1358
1354
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1359
1355
|
};
|
|
1360
|
-
protoOf(Companion_5).
|
|
1361
|
-
return this.
|
|
1356
|
+
protoOf(Companion_5).k4g = function (typeParamsSerializers) {
|
|
1357
|
+
return this.k5n(typeParamsSerializers[0]);
|
|
1362
1358
|
};
|
|
1363
1359
|
var Companion_instance_7;
|
|
1364
1360
|
function Companion_getInstance_8() {
|
|
@@ -1368,86 +1364,86 @@
|
|
|
1368
1364
|
}
|
|
1369
1365
|
function $serializer_4() {
|
|
1370
1366
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1371
|
-
tmp0_serialDesc.
|
|
1372
|
-
tmp0_serialDesc.
|
|
1373
|
-
tmp0_serialDesc.
|
|
1374
|
-
this.
|
|
1375
|
-
}
|
|
1376
|
-
protoOf($serializer_4).
|
|
1377
|
-
var tmp0_desc = this.
|
|
1378
|
-
var tmp1_output = encoder.
|
|
1379
|
-
tmp1_output.
|
|
1380
|
-
tmp1_output.
|
|
1381
|
-
tmp1_output.
|
|
1382
|
-
tmp1_output.
|
|
1383
|
-
};
|
|
1384
|
-
protoOf($serializer_4).
|
|
1385
|
-
return this.
|
|
1386
|
-
};
|
|
1387
|
-
protoOf($serializer_4).
|
|
1388
|
-
var tmp0_desc = this.
|
|
1367
|
+
tmp0_serialDesc.k4f('jsonrpc', false);
|
|
1368
|
+
tmp0_serialDesc.k4f('result', false);
|
|
1369
|
+
tmp0_serialDesc.k4f('id', false);
|
|
1370
|
+
this.f5o_1 = tmp0_serialDesc;
|
|
1371
|
+
}
|
|
1372
|
+
protoOf($serializer_4).i5o = function (encoder, value) {
|
|
1373
|
+
var tmp0_desc = this.f5o_1;
|
|
1374
|
+
var tmp1_output = encoder.w47(tmp0_desc);
|
|
1375
|
+
tmp1_output.k49(tmp0_desc, 0, value.j5o_1);
|
|
1376
|
+
tmp1_output.m49(tmp0_desc, 1, this.g5o_1, value.k5o_1);
|
|
1377
|
+
tmp1_output.k49(tmp0_desc, 2, value.l5o_1);
|
|
1378
|
+
tmp1_output.x47(tmp0_desc);
|
|
1379
|
+
};
|
|
1380
|
+
protoOf($serializer_4).j44 = function (encoder, value) {
|
|
1381
|
+
return this.i5o(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1382
|
+
};
|
|
1383
|
+
protoOf($serializer_4).k44 = function (decoder) {
|
|
1384
|
+
var tmp0_desc = this.f5o_1;
|
|
1389
1385
|
var tmp1_flag = true;
|
|
1390
1386
|
var tmp2_index = 0;
|
|
1391
1387
|
var tmp3_bitMask0 = 0;
|
|
1392
1388
|
var tmp4_local0 = null;
|
|
1393
1389
|
var tmp5_local1 = null;
|
|
1394
1390
|
var tmp6_local2 = null;
|
|
1395
|
-
var tmp7_input = decoder.
|
|
1396
|
-
if (tmp7_input.
|
|
1397
|
-
tmp4_local0 = tmp7_input.
|
|
1391
|
+
var tmp7_input = decoder.w47(tmp0_desc);
|
|
1392
|
+
if (tmp7_input.l48()) {
|
|
1393
|
+
tmp4_local0 = tmp7_input.g48(tmp0_desc, 0);
|
|
1398
1394
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1399
|
-
tmp5_local1 = tmp7_input.
|
|
1395
|
+
tmp5_local1 = tmp7_input.i48(tmp0_desc, 1, this.g5o_1, tmp5_local1);
|
|
1400
1396
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1401
|
-
tmp6_local2 = tmp7_input.
|
|
1397
|
+
tmp6_local2 = tmp7_input.g48(tmp0_desc, 2);
|
|
1402
1398
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1403
1399
|
} else
|
|
1404
1400
|
while (tmp1_flag) {
|
|
1405
|
-
tmp2_index = tmp7_input.
|
|
1401
|
+
tmp2_index = tmp7_input.m48(tmp0_desc);
|
|
1406
1402
|
switch (tmp2_index) {
|
|
1407
1403
|
case -1:
|
|
1408
1404
|
tmp1_flag = false;
|
|
1409
1405
|
break;
|
|
1410
1406
|
case 0:
|
|
1411
|
-
tmp4_local0 = tmp7_input.
|
|
1407
|
+
tmp4_local0 = tmp7_input.g48(tmp0_desc, 0);
|
|
1412
1408
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1413
1409
|
break;
|
|
1414
1410
|
case 1:
|
|
1415
|
-
tmp5_local1 = tmp7_input.
|
|
1411
|
+
tmp5_local1 = tmp7_input.i48(tmp0_desc, 1, this.g5o_1, tmp5_local1);
|
|
1416
1412
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1417
1413
|
break;
|
|
1418
1414
|
case 2:
|
|
1419
|
-
tmp6_local2 = tmp7_input.
|
|
1415
|
+
tmp6_local2 = tmp7_input.g48(tmp0_desc, 2);
|
|
1420
1416
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1421
1417
|
break;
|
|
1422
1418
|
default:
|
|
1423
1419
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1424
1420
|
}
|
|
1425
1421
|
}
|
|
1426
|
-
tmp7_input.
|
|
1422
|
+
tmp7_input.x47(tmp0_desc);
|
|
1427
1423
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1428
1424
|
};
|
|
1429
|
-
protoOf($serializer_4).
|
|
1430
|
-
return this.
|
|
1425
|
+
protoOf($serializer_4).i44 = function () {
|
|
1426
|
+
return this.f5o_1;
|
|
1431
1427
|
};
|
|
1432
|
-
protoOf($serializer_4).
|
|
1428
|
+
protoOf($serializer_4).z4f = function () {
|
|
1433
1429
|
// Inline function 'kotlin.arrayOf' call
|
|
1434
1430
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1435
1431
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1436
|
-
return [StringSerializer_getInstance(), this.
|
|
1432
|
+
return [StringSerializer_getInstance(), this.g5o_1, StringSerializer_getInstance()];
|
|
1437
1433
|
};
|
|
1438
|
-
protoOf($serializer_4).
|
|
1434
|
+
protoOf($serializer_4).a4g = function () {
|
|
1439
1435
|
// Inline function 'kotlin.arrayOf' call
|
|
1440
1436
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1441
1437
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1442
|
-
return [this.
|
|
1438
|
+
return [this.g5o_1];
|
|
1443
1439
|
};
|
|
1444
1440
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1445
1441
|
if (!(7 === (7 & seen0))) {
|
|
1446
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1442
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().h5o_1);
|
|
1447
1443
|
}
|
|
1448
|
-
$this.
|
|
1449
|
-
$this.
|
|
1450
|
-
$this.
|
|
1444
|
+
$this.j5o_1 = jsonrpc;
|
|
1445
|
+
$this.k5o_1 = result;
|
|
1446
|
+
$this.l5o_1 = id;
|
|
1451
1447
|
return $this;
|
|
1452
1448
|
}
|
|
1453
1449
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1455,17 +1451,17 @@
|
|
|
1455
1451
|
}
|
|
1456
1452
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1457
1453
|
Companion_getInstance_8();
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1454
|
+
this.j5o_1 = jsonrpc;
|
|
1455
|
+
this.k5o_1 = result;
|
|
1456
|
+
this.l5o_1 = id;
|
|
1461
1457
|
}
|
|
1462
1458
|
protoOf(RandomResponseDto).toString = function () {
|
|
1463
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1459
|
+
return 'RandomResponseDto(jsonrpc=' + this.j5o_1 + ', result=' + toString(this.k5o_1) + ', id=' + this.l5o_1 + ')';
|
|
1464
1460
|
};
|
|
1465
1461
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1466
|
-
var result = getStringHashCode(this.
|
|
1467
|
-
result = imul(result, 31) + hashCode(this.
|
|
1468
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1462
|
+
var result = getStringHashCode(this.j5o_1);
|
|
1463
|
+
result = imul(result, 31) + hashCode(this.k5o_1) | 0;
|
|
1464
|
+
result = imul(result, 31) + getStringHashCode(this.l5o_1) | 0;
|
|
1469
1465
|
return result;
|
|
1470
1466
|
};
|
|
1471
1467
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1474,11 +1470,11 @@
|
|
|
1474
1470
|
if (!(other instanceof RandomResponseDto))
|
|
1475
1471
|
return false;
|
|
1476
1472
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1477
|
-
if (!(this.
|
|
1473
|
+
if (!(this.j5o_1 === tmp0_other_with_cast.j5o_1))
|
|
1478
1474
|
return false;
|
|
1479
|
-
if (!equals(this.
|
|
1475
|
+
if (!equals(this.k5o_1, tmp0_other_with_cast.k5o_1))
|
|
1480
1476
|
return false;
|
|
1481
|
-
if (!(this.
|
|
1477
|
+
if (!(this.l5o_1 === tmp0_other_with_cast.l5o_1))
|
|
1482
1478
|
return false;
|
|
1483
1479
|
return true;
|
|
1484
1480
|
};
|
|
@@ -1491,30 +1487,30 @@
|
|
|
1491
1487
|
function $serializer_5() {
|
|
1492
1488
|
$serializer_instance_3 = this;
|
|
1493
1489
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1494
|
-
tmp0_serialDesc.
|
|
1495
|
-
tmp0_serialDesc.
|
|
1496
|
-
tmp0_serialDesc.
|
|
1497
|
-
tmp0_serialDesc.
|
|
1498
|
-
tmp0_serialDesc.
|
|
1499
|
-
tmp0_serialDesc.
|
|
1500
|
-
this.
|
|
1501
|
-
}
|
|
1502
|
-
protoOf($serializer_5).
|
|
1503
|
-
var tmp0_desc = this.
|
|
1504
|
-
var tmp1_output = encoder.
|
|
1505
|
-
tmp1_output.
|
|
1506
|
-
tmp1_output.
|
|
1507
|
-
tmp1_output.
|
|
1508
|
-
tmp1_output.
|
|
1509
|
-
tmp1_output.
|
|
1510
|
-
tmp1_output.
|
|
1511
|
-
tmp1_output.
|
|
1512
|
-
};
|
|
1513
|
-
protoOf($serializer_5).
|
|
1514
|
-
return this.
|
|
1515
|
-
};
|
|
1516
|
-
protoOf($serializer_5).
|
|
1517
|
-
var tmp0_desc = this.
|
|
1490
|
+
tmp0_serialDesc.k4f('random', false);
|
|
1491
|
+
tmp0_serialDesc.k4f('signature', false);
|
|
1492
|
+
tmp0_serialDesc.k4f('bitsUsed', false);
|
|
1493
|
+
tmp0_serialDesc.k4f('bitsLeft', false);
|
|
1494
|
+
tmp0_serialDesc.k4f('requestsLeft', false);
|
|
1495
|
+
tmp0_serialDesc.k4f('advisoryDelay', false);
|
|
1496
|
+
this.m5o_1 = tmp0_serialDesc;
|
|
1497
|
+
}
|
|
1498
|
+
protoOf($serializer_5).n5o = function (encoder, value) {
|
|
1499
|
+
var tmp0_desc = this.m5o_1;
|
|
1500
|
+
var tmp1_output = encoder.w47(tmp0_desc);
|
|
1501
|
+
tmp1_output.m49(tmp0_desc, 0, $serializer_getInstance_4(), value.o5o_1);
|
|
1502
|
+
tmp1_output.o49(tmp0_desc, 1, StringSerializer_getInstance(), value.p5o_1);
|
|
1503
|
+
tmp1_output.o49(tmp0_desc, 2, IntSerializer_getInstance(), value.q5o_1);
|
|
1504
|
+
tmp1_output.o49(tmp0_desc, 3, IntSerializer_getInstance(), value.r5o_1);
|
|
1505
|
+
tmp1_output.o49(tmp0_desc, 4, IntSerializer_getInstance(), value.s5o_1);
|
|
1506
|
+
tmp1_output.o49(tmp0_desc, 5, IntSerializer_getInstance(), value.t5o_1);
|
|
1507
|
+
tmp1_output.x47(tmp0_desc);
|
|
1508
|
+
};
|
|
1509
|
+
protoOf($serializer_5).j44 = function (encoder, value) {
|
|
1510
|
+
return this.n5o(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1511
|
+
};
|
|
1512
|
+
protoOf($serializer_5).k44 = function (decoder) {
|
|
1513
|
+
var tmp0_desc = this.m5o_1;
|
|
1518
1514
|
var tmp1_flag = true;
|
|
1519
1515
|
var tmp2_index = 0;
|
|
1520
1516
|
var tmp3_bitMask0 = 0;
|
|
@@ -1524,62 +1520,62 @@
|
|
|
1524
1520
|
var tmp7_local3 = null;
|
|
1525
1521
|
var tmp8_local4 = null;
|
|
1526
1522
|
var tmp9_local5 = null;
|
|
1527
|
-
var tmp10_input = decoder.
|
|
1528
|
-
if (tmp10_input.
|
|
1529
|
-
tmp4_local0 = tmp10_input.
|
|
1523
|
+
var tmp10_input = decoder.w47(tmp0_desc);
|
|
1524
|
+
if (tmp10_input.l48()) {
|
|
1525
|
+
tmp4_local0 = tmp10_input.i48(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1530
1526
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1531
|
-
tmp5_local1 = tmp10_input.
|
|
1527
|
+
tmp5_local1 = tmp10_input.k48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1532
1528
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1533
|
-
tmp6_local2 = tmp10_input.
|
|
1529
|
+
tmp6_local2 = tmp10_input.k48(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1534
1530
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1535
|
-
tmp7_local3 = tmp10_input.
|
|
1531
|
+
tmp7_local3 = tmp10_input.k48(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1536
1532
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1537
|
-
tmp8_local4 = tmp10_input.
|
|
1533
|
+
tmp8_local4 = tmp10_input.k48(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1538
1534
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1539
|
-
tmp9_local5 = tmp10_input.
|
|
1535
|
+
tmp9_local5 = tmp10_input.k48(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1540
1536
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1541
1537
|
} else
|
|
1542
1538
|
while (tmp1_flag) {
|
|
1543
|
-
tmp2_index = tmp10_input.
|
|
1539
|
+
tmp2_index = tmp10_input.m48(tmp0_desc);
|
|
1544
1540
|
switch (tmp2_index) {
|
|
1545
1541
|
case -1:
|
|
1546
1542
|
tmp1_flag = false;
|
|
1547
1543
|
break;
|
|
1548
1544
|
case 0:
|
|
1549
|
-
tmp4_local0 = tmp10_input.
|
|
1545
|
+
tmp4_local0 = tmp10_input.i48(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1550
1546
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1551
1547
|
break;
|
|
1552
1548
|
case 1:
|
|
1553
|
-
tmp5_local1 = tmp10_input.
|
|
1549
|
+
tmp5_local1 = tmp10_input.k48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1554
1550
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1555
1551
|
break;
|
|
1556
1552
|
case 2:
|
|
1557
|
-
tmp6_local2 = tmp10_input.
|
|
1553
|
+
tmp6_local2 = tmp10_input.k48(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1558
1554
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1559
1555
|
break;
|
|
1560
1556
|
case 3:
|
|
1561
|
-
tmp7_local3 = tmp10_input.
|
|
1557
|
+
tmp7_local3 = tmp10_input.k48(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1562
1558
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1563
1559
|
break;
|
|
1564
1560
|
case 4:
|
|
1565
|
-
tmp8_local4 = tmp10_input.
|
|
1561
|
+
tmp8_local4 = tmp10_input.k48(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1566
1562
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1567
1563
|
break;
|
|
1568
1564
|
case 5:
|
|
1569
|
-
tmp9_local5 = tmp10_input.
|
|
1565
|
+
tmp9_local5 = tmp10_input.k48(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1570
1566
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1571
1567
|
break;
|
|
1572
1568
|
default:
|
|
1573
1569
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1574
1570
|
}
|
|
1575
1571
|
}
|
|
1576
|
-
tmp10_input.
|
|
1572
|
+
tmp10_input.x47(tmp0_desc);
|
|
1577
1573
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1578
1574
|
};
|
|
1579
|
-
protoOf($serializer_5).
|
|
1580
|
-
return this.
|
|
1575
|
+
protoOf($serializer_5).i44 = function () {
|
|
1576
|
+
return this.m5o_1;
|
|
1581
1577
|
};
|
|
1582
|
-
protoOf($serializer_5).
|
|
1578
|
+
protoOf($serializer_5).z4f = function () {
|
|
1583
1579
|
// Inline function 'kotlin.arrayOf' call
|
|
1584
1580
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1585
1581
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1593,37 +1589,37 @@
|
|
|
1593
1589
|
}
|
|
1594
1590
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1595
1591
|
if (!(63 === (63 & seen0))) {
|
|
1596
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1592
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().m5o_1);
|
|
1597
1593
|
}
|
|
1598
|
-
$this.
|
|
1599
|
-
$this.
|
|
1600
|
-
$this.
|
|
1601
|
-
$this.
|
|
1602
|
-
$this.
|
|
1603
|
-
$this.
|
|
1594
|
+
$this.o5o_1 = random;
|
|
1595
|
+
$this.p5o_1 = signature;
|
|
1596
|
+
$this.q5o_1 = bitsUsed;
|
|
1597
|
+
$this.r5o_1 = bitsLeft;
|
|
1598
|
+
$this.s5o_1 = requestsLeft;
|
|
1599
|
+
$this.t5o_1 = advisoryDelay;
|
|
1604
1600
|
return $this;
|
|
1605
1601
|
}
|
|
1606
1602
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1607
1603
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1608
1604
|
}
|
|
1609
1605
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1606
|
+
this.o5o_1 = random;
|
|
1607
|
+
this.p5o_1 = signature;
|
|
1608
|
+
this.q5o_1 = bitsUsed;
|
|
1609
|
+
this.r5o_1 = bitsLeft;
|
|
1610
|
+
this.s5o_1 = requestsLeft;
|
|
1611
|
+
this.t5o_1 = advisoryDelay;
|
|
1616
1612
|
}
|
|
1617
1613
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1618
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1614
|
+
return 'IntegerSequencesResultDto(random=' + this.o5o_1.toString() + ', signature=' + this.p5o_1 + ', bitsUsed=' + this.q5o_1 + ', bitsLeft=' + this.r5o_1 + ', requestsLeft=' + this.s5o_1 + ', advisoryDelay=' + this.t5o_1 + ')';
|
|
1619
1615
|
};
|
|
1620
1616
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1621
|
-
var result = this.
|
|
1622
|
-
result = imul(result, 31) + (this.
|
|
1623
|
-
result = imul(result, 31) + (this.
|
|
1624
|
-
result = imul(result, 31) + (this.
|
|
1625
|
-
result = imul(result, 31) + (this.
|
|
1626
|
-
result = imul(result, 31) + (this.
|
|
1617
|
+
var result = this.o5o_1.hashCode();
|
|
1618
|
+
result = imul(result, 31) + (this.p5o_1 == null ? 0 : getStringHashCode(this.p5o_1)) | 0;
|
|
1619
|
+
result = imul(result, 31) + (this.q5o_1 == null ? 0 : this.q5o_1) | 0;
|
|
1620
|
+
result = imul(result, 31) + (this.r5o_1 == null ? 0 : this.r5o_1) | 0;
|
|
1621
|
+
result = imul(result, 31) + (this.s5o_1 == null ? 0 : this.s5o_1) | 0;
|
|
1622
|
+
result = imul(result, 31) + (this.t5o_1 == null ? 0 : this.t5o_1) | 0;
|
|
1627
1623
|
return result;
|
|
1628
1624
|
};
|
|
1629
1625
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1632,17 +1628,17 @@
|
|
|
1632
1628
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1633
1629
|
return false;
|
|
1634
1630
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1635
|
-
if (!this.
|
|
1631
|
+
if (!this.o5o_1.equals(tmp0_other_with_cast.o5o_1))
|
|
1636
1632
|
return false;
|
|
1637
|
-
if (!(this.
|
|
1633
|
+
if (!(this.p5o_1 == tmp0_other_with_cast.p5o_1))
|
|
1638
1634
|
return false;
|
|
1639
|
-
if (!(this.
|
|
1635
|
+
if (!(this.q5o_1 == tmp0_other_with_cast.q5o_1))
|
|
1640
1636
|
return false;
|
|
1641
|
-
if (!(this.
|
|
1637
|
+
if (!(this.r5o_1 == tmp0_other_with_cast.r5o_1))
|
|
1642
1638
|
return false;
|
|
1643
|
-
if (!(this.
|
|
1639
|
+
if (!(this.s5o_1 == tmp0_other_with_cast.s5o_1))
|
|
1644
1640
|
return false;
|
|
1645
|
-
if (!(this.
|
|
1641
|
+
if (!(this.t5o_1 == tmp0_other_with_cast.t5o_1))
|
|
1646
1642
|
return false;
|
|
1647
1643
|
return true;
|
|
1648
1644
|
};
|
|
@@ -1652,7 +1648,7 @@
|
|
|
1652
1648
|
// Inline function 'kotlin.arrayOf' call
|
|
1653
1649
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1654
1650
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1655
|
-
tmp.
|
|
1651
|
+
tmp.u5o_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1656
1652
|
}
|
|
1657
1653
|
var Companion_instance_9;
|
|
1658
1654
|
function Companion_getInstance_10() {
|
|
@@ -1663,74 +1659,74 @@
|
|
|
1663
1659
|
function $serializer_6() {
|
|
1664
1660
|
$serializer_instance_4 = this;
|
|
1665
1661
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1666
|
-
tmp0_serialDesc.
|
|
1667
|
-
tmp0_serialDesc.
|
|
1668
|
-
tmp0_serialDesc.
|
|
1669
|
-
this.
|
|
1670
|
-
}
|
|
1671
|
-
protoOf($serializer_6).
|
|
1672
|
-
var tmp0_desc = this.
|
|
1673
|
-
var tmp1_output = encoder.
|
|
1674
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1675
|
-
tmp1_output.
|
|
1676
|
-
tmp1_output.
|
|
1677
|
-
tmp1_output.
|
|
1678
|
-
tmp1_output.
|
|
1679
|
-
};
|
|
1680
|
-
protoOf($serializer_6).
|
|
1681
|
-
return this.
|
|
1682
|
-
};
|
|
1683
|
-
protoOf($serializer_6).
|
|
1684
|
-
var tmp0_desc = this.
|
|
1662
|
+
tmp0_serialDesc.k4f('data', false);
|
|
1663
|
+
tmp0_serialDesc.k4f('completionTime', false);
|
|
1664
|
+
tmp0_serialDesc.k4f('ticketId', false);
|
|
1665
|
+
this.v5o_1 = tmp0_serialDesc;
|
|
1666
|
+
}
|
|
1667
|
+
protoOf($serializer_6).w5o = function (encoder, value) {
|
|
1668
|
+
var tmp0_desc = this.v5o_1;
|
|
1669
|
+
var tmp1_output = encoder.w47(tmp0_desc);
|
|
1670
|
+
var tmp2_cached = Companion_getInstance_10().u5o_1;
|
|
1671
|
+
tmp1_output.m49(tmp0_desc, 0, tmp2_cached[0], value.x5o_1);
|
|
1672
|
+
tmp1_output.k49(tmp0_desc, 1, value.y5o_1);
|
|
1673
|
+
tmp1_output.o49(tmp0_desc, 2, StringSerializer_getInstance(), value.z5o_1);
|
|
1674
|
+
tmp1_output.x47(tmp0_desc);
|
|
1675
|
+
};
|
|
1676
|
+
protoOf($serializer_6).j44 = function (encoder, value) {
|
|
1677
|
+
return this.w5o(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1678
|
+
};
|
|
1679
|
+
protoOf($serializer_6).k44 = function (decoder) {
|
|
1680
|
+
var tmp0_desc = this.v5o_1;
|
|
1685
1681
|
var tmp1_flag = true;
|
|
1686
1682
|
var tmp2_index = 0;
|
|
1687
1683
|
var tmp3_bitMask0 = 0;
|
|
1688
1684
|
var tmp4_local0 = null;
|
|
1689
1685
|
var tmp5_local1 = null;
|
|
1690
1686
|
var tmp6_local2 = null;
|
|
1691
|
-
var tmp7_input = decoder.
|
|
1692
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1693
|
-
if (tmp7_input.
|
|
1694
|
-
tmp4_local0 = tmp7_input.
|
|
1687
|
+
var tmp7_input = decoder.w47(tmp0_desc);
|
|
1688
|
+
var tmp8_cached = Companion_getInstance_10().u5o_1;
|
|
1689
|
+
if (tmp7_input.l48()) {
|
|
1690
|
+
tmp4_local0 = tmp7_input.i48(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1695
1691
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1696
|
-
tmp5_local1 = tmp7_input.
|
|
1692
|
+
tmp5_local1 = tmp7_input.g48(tmp0_desc, 1);
|
|
1697
1693
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1698
|
-
tmp6_local2 = tmp7_input.
|
|
1694
|
+
tmp6_local2 = tmp7_input.k48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1699
1695
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1700
1696
|
} else
|
|
1701
1697
|
while (tmp1_flag) {
|
|
1702
|
-
tmp2_index = tmp7_input.
|
|
1698
|
+
tmp2_index = tmp7_input.m48(tmp0_desc);
|
|
1703
1699
|
switch (tmp2_index) {
|
|
1704
1700
|
case -1:
|
|
1705
1701
|
tmp1_flag = false;
|
|
1706
1702
|
break;
|
|
1707
1703
|
case 0:
|
|
1708
|
-
tmp4_local0 = tmp7_input.
|
|
1704
|
+
tmp4_local0 = tmp7_input.i48(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1709
1705
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1710
1706
|
break;
|
|
1711
1707
|
case 1:
|
|
1712
|
-
tmp5_local1 = tmp7_input.
|
|
1708
|
+
tmp5_local1 = tmp7_input.g48(tmp0_desc, 1);
|
|
1713
1709
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1714
1710
|
break;
|
|
1715
1711
|
case 2:
|
|
1716
|
-
tmp6_local2 = tmp7_input.
|
|
1712
|
+
tmp6_local2 = tmp7_input.k48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1717
1713
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1718
1714
|
break;
|
|
1719
1715
|
default:
|
|
1720
1716
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1721
1717
|
}
|
|
1722
1718
|
}
|
|
1723
|
-
tmp7_input.
|
|
1719
|
+
tmp7_input.x47(tmp0_desc);
|
|
1724
1720
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1725
1721
|
};
|
|
1726
|
-
protoOf($serializer_6).
|
|
1727
|
-
return this.
|
|
1722
|
+
protoOf($serializer_6).i44 = function () {
|
|
1723
|
+
return this.v5o_1;
|
|
1728
1724
|
};
|
|
1729
|
-
protoOf($serializer_6).
|
|
1725
|
+
protoOf($serializer_6).z4f = function () {
|
|
1730
1726
|
// Inline function 'kotlin.arrayOf' call
|
|
1731
1727
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1732
1728
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1733
|
-
return [Companion_getInstance_10().
|
|
1729
|
+
return [Companion_getInstance_10().u5o_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1734
1730
|
};
|
|
1735
1731
|
var $serializer_instance_4;
|
|
1736
1732
|
function $serializer_getInstance_4() {
|
|
@@ -1740,11 +1736,11 @@
|
|
|
1740
1736
|
}
|
|
1741
1737
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1742
1738
|
if (!(7 === (7 & seen0))) {
|
|
1743
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1739
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().v5o_1);
|
|
1744
1740
|
}
|
|
1745
|
-
$this.
|
|
1746
|
-
$this.
|
|
1747
|
-
$this.
|
|
1741
|
+
$this.x5o_1 = data;
|
|
1742
|
+
$this.y5o_1 = completionTime;
|
|
1743
|
+
$this.z5o_1 = ticketId;
|
|
1748
1744
|
return $this;
|
|
1749
1745
|
}
|
|
1750
1746
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1753,12 +1749,12 @@
|
|
|
1753
1749
|
function IntegerSequencesDataDto() {
|
|
1754
1750
|
}
|
|
1755
1751
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1756
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1752
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.x5o_1) + ', completionTime=' + this.y5o_1 + ', ticketId=' + this.z5o_1 + ')';
|
|
1757
1753
|
};
|
|
1758
1754
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1759
|
-
var result = hashCode(this.
|
|
1760
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1761
|
-
result = imul(result, 31) + (this.
|
|
1755
|
+
var result = hashCode(this.x5o_1);
|
|
1756
|
+
result = imul(result, 31) + getStringHashCode(this.y5o_1) | 0;
|
|
1757
|
+
result = imul(result, 31) + (this.z5o_1 == null ? 0 : getStringHashCode(this.z5o_1)) | 0;
|
|
1762
1758
|
return result;
|
|
1763
1759
|
};
|
|
1764
1760
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1767,11 +1763,11 @@
|
|
|
1767
1763
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1768
1764
|
return false;
|
|
1769
1765
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1770
|
-
if (!equals(this.
|
|
1766
|
+
if (!equals(this.x5o_1, tmp0_other_with_cast.x5o_1))
|
|
1771
1767
|
return false;
|
|
1772
|
-
if (!(this.
|
|
1768
|
+
if (!(this.y5o_1 === tmp0_other_with_cast.y5o_1))
|
|
1773
1769
|
return false;
|
|
1774
|
-
if (!(this.
|
|
1770
|
+
if (!(this.z5o_1 == tmp0_other_with_cast.z5o_1))
|
|
1775
1771
|
return false;
|
|
1776
1772
|
return true;
|
|
1777
1773
|
};
|
|
@@ -1790,7 +1786,7 @@
|
|
|
1790
1786
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1791
1787
|
}
|
|
1792
1788
|
function Companion_8() {
|
|
1793
|
-
this.
|
|
1789
|
+
this.n5p_1 = 52;
|
|
1794
1790
|
}
|
|
1795
1791
|
var Companion_instance_10;
|
|
1796
1792
|
function Companion_getInstance_11() {
|
|
@@ -1798,13 +1794,13 @@
|
|
|
1798
1794
|
}
|
|
1799
1795
|
function $getRandomCardDecksCOROUTINE$1(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1800
1796
|
CoroutineImpl.call(this, resultContinuation);
|
|
1801
|
-
this.
|
|
1802
|
-
this.
|
|
1803
|
-
this.
|
|
1804
|
-
this.
|
|
1805
|
-
this.
|
|
1806
|
-
this.
|
|
1807
|
-
this.
|
|
1797
|
+
this.w5p_1 = _this__u8e3s4;
|
|
1798
|
+
this.x5p_1 = min;
|
|
1799
|
+
this.y5p_1 = max;
|
|
1800
|
+
this.z5p_1 = decksCount;
|
|
1801
|
+
this.a5q_1 = cardsCount;
|
|
1802
|
+
this.b5q_1 = userData;
|
|
1803
|
+
this.c5q_1 = signed;
|
|
1808
1804
|
}
|
|
1809
1805
|
protoOf($getRandomCardDecksCOROUTINE$1).n9 = function () {
|
|
1810
1806
|
var suspendResult = this.h9_1;
|
|
@@ -1816,30 +1812,30 @@
|
|
|
1816
1812
|
this.g9_1 = 6;
|
|
1817
1813
|
this.g9_1 = 5;
|
|
1818
1814
|
var tmp_0 = this;
|
|
1819
|
-
tmp_0.
|
|
1815
|
+
tmp_0.d5q_1 = this.w5p_1.m5q_1;
|
|
1820
1816
|
var tmp_1 = this;
|
|
1821
|
-
tmp_1.
|
|
1817
|
+
tmp_1.e5q_1 = this.d5q_1;
|
|
1822
1818
|
var tmp_2 = this;
|
|
1823
1819
|
var this_0 = new HttpRequestBuilder();
|
|
1824
1820
|
url(this_0, '/json-rpc/4/invoke');
|
|
1825
|
-
var tmp11_id = this.
|
|
1826
|
-
var tmp12_method = this.
|
|
1827
|
-
var tmp8_apiKey = this.
|
|
1828
|
-
var size = this.
|
|
1821
|
+
var tmp11_id = this.b5q_1.id;
|
|
1822
|
+
var tmp12_method = this.c5q_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1823
|
+
var tmp8_apiKey = this.w5p_1.n5q_1;
|
|
1824
|
+
var size = this.z5p_1;
|
|
1829
1825
|
var list = ArrayList_init_$Create$(size);
|
|
1830
1826
|
var inductionVariable = 0;
|
|
1831
1827
|
if (inductionVariable < size)
|
|
1832
1828
|
do {
|
|
1833
1829
|
var index = inductionVariable;
|
|
1834
1830
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1835
|
-
list.e(this.
|
|
1831
|
+
list.e(this.a5q_1);
|
|
1836
1832
|
}
|
|
1837
1833
|
while (inductionVariable < size);
|
|
1838
|
-
var tmp10_userData = this.
|
|
1839
|
-
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.
|
|
1834
|
+
var tmp10_userData = this.c5q_1 ? mapToDto(this.b5q_1) : null;
|
|
1835
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.z5p_1, list, this.x5p_1, this.y5p_1, false, null, tmp10_userData);
|
|
1840
1836
|
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1841
1837
|
if (body == null) {
|
|
1842
|
-
this_0.
|
|
1838
|
+
this_0.o2v_1 = NullBody_instance;
|
|
1843
1839
|
var tmp_3 = JsType_instance;
|
|
1844
1840
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1845
1841
|
var tmp_5;
|
|
@@ -1855,13 +1851,13 @@
|
|
|
1855
1851
|
}
|
|
1856
1852
|
tmp_5 = tmp_6;
|
|
1857
1853
|
}
|
|
1858
|
-
this_0.
|
|
1854
|
+
this_0.k31(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1859
1855
|
} else {
|
|
1860
1856
|
if (body instanceof OutgoingContent) {
|
|
1861
|
-
this_0.
|
|
1862
|
-
this_0.
|
|
1857
|
+
this_0.o2v_1 = body;
|
|
1858
|
+
this_0.k31(null);
|
|
1863
1859
|
} else {
|
|
1864
|
-
this_0.
|
|
1860
|
+
this_0.o2v_1 = body;
|
|
1865
1861
|
var tmp_7 = JsType_instance;
|
|
1866
1862
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1867
1863
|
var tmp_9;
|
|
@@ -1877,29 +1873,29 @@
|
|
|
1877
1873
|
}
|
|
1878
1874
|
tmp_9 = tmp_10;
|
|
1879
1875
|
}
|
|
1880
|
-
this_0.
|
|
1876
|
+
this_0.k31(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1881
1877
|
}
|
|
1882
1878
|
}
|
|
1883
1879
|
|
|
1884
|
-
tmp_2.
|
|
1885
|
-
this.
|
|
1880
|
+
tmp_2.f5q_1 = this_0;
|
|
1881
|
+
this.f5q_1.m2v_1 = Companion_getInstance().e2k_1;
|
|
1886
1882
|
var tmp_11 = this;
|
|
1887
|
-
tmp_11.
|
|
1883
|
+
tmp_11.g5q_1 = this.e5q_1;
|
|
1888
1884
|
var tmp_12 = this;
|
|
1889
|
-
tmp_12.
|
|
1885
|
+
tmp_12.h5q_1 = this.f5q_1;
|
|
1890
1886
|
this.f9_1 = 1;
|
|
1891
|
-
suspendResult = (new HttpStatement(this.
|
|
1887
|
+
suspendResult = (new HttpStatement(this.h5q_1, this.g5q_1)).u3o(this);
|
|
1892
1888
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1893
1889
|
return suspendResult;
|
|
1894
1890
|
}
|
|
1895
1891
|
|
|
1896
1892
|
continue $sm;
|
|
1897
1893
|
case 1:
|
|
1898
|
-
this.
|
|
1894
|
+
this.i5q_1 = suspendResult;
|
|
1899
1895
|
var tmp_13 = this;
|
|
1900
|
-
tmp_13.
|
|
1896
|
+
tmp_13.j5q_1 = this.i5q_1;
|
|
1901
1897
|
this.f9_1 = 2;
|
|
1902
|
-
var tmp_14 = this.
|
|
1898
|
+
var tmp_14 = this.j5q_1.t2y();
|
|
1903
1899
|
var tmp_15 = JsType_instance;
|
|
1904
1900
|
var tmp_16 = getKClass(JsonObject);
|
|
1905
1901
|
var tmp_17;
|
|
@@ -1916,7 +1912,7 @@
|
|
|
1916
1912
|
tmp_17 = tmp_18;
|
|
1917
1913
|
}
|
|
1918
1914
|
|
|
1919
|
-
suspendResult = tmp_14.
|
|
1915
|
+
suspendResult = tmp_14.x2x(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1920
1916
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1921
1917
|
return suspendResult;
|
|
1922
1918
|
}
|
|
@@ -1924,9 +1920,9 @@
|
|
|
1924
1920
|
continue $sm;
|
|
1925
1921
|
case 2:
|
|
1926
1922
|
var tmp_19 = this;
|
|
1927
|
-
tmp_19.
|
|
1923
|
+
tmp_19.k5q_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1928
1924
|
this.f9_1 = 3;
|
|
1929
|
-
suspendResult = throwIfError(this.
|
|
1925
|
+
suspendResult = throwIfError(this.w5p_1, this.k5q_1, this.i5q_1, this);
|
|
1930
1926
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1931
1927
|
return suspendResult;
|
|
1932
1928
|
}
|
|
@@ -1934,9 +1930,9 @@
|
|
|
1934
1930
|
continue $sm;
|
|
1935
1931
|
case 3:
|
|
1936
1932
|
var tmp_20 = this;
|
|
1937
|
-
tmp_20.
|
|
1933
|
+
tmp_20.l5q_1 = this.i5q_1;
|
|
1938
1934
|
this.f9_1 = 4;
|
|
1939
|
-
var tmp_21 = this.
|
|
1935
|
+
var tmp_21 = this.l5q_1.t2y();
|
|
1940
1936
|
var tmp_22 = JsType_instance;
|
|
1941
1937
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1942
1938
|
var tmp_24;
|
|
@@ -1953,7 +1949,7 @@
|
|
|
1953
1949
|
tmp_24 = tmp_25;
|
|
1954
1950
|
}
|
|
1955
1951
|
|
|
1956
|
-
suspendResult = tmp_21.
|
|
1952
|
+
suspendResult = tmp_21.x2x(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1957
1953
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1958
1954
|
return suspendResult;
|
|
1959
1955
|
}
|
|
@@ -1961,10 +1957,10 @@
|
|
|
1961
1957
|
continue $sm;
|
|
1962
1958
|
case 4:
|
|
1963
1959
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1964
|
-
var randomJson = extractRandomResult(this.
|
|
1965
|
-
var tmp14_cardDecks = responseDto.
|
|
1966
|
-
var tmp15_signature = responseDto.
|
|
1967
|
-
var tmp16_id = responseDto.
|
|
1960
|
+
var randomJson = extractRandomResult(this.w5p_1, this.k5q_1);
|
|
1961
|
+
var tmp14_cardDecks = responseDto.k5o_1.o5o_1.x5o_1;
|
|
1962
|
+
var tmp15_signature = responseDto.k5o_1.p5o_1;
|
|
1963
|
+
var tmp16_id = responseDto.l5o_1;
|
|
1968
1964
|
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1969
1965
|
case 5:
|
|
1970
1966
|
this.g9_1 = 6;
|
|
@@ -1996,9 +1992,9 @@
|
|
|
1996
1992
|
};
|
|
1997
1993
|
function $throwIfErrorCOROUTINE$2(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1998
1994
|
CoroutineImpl.call(this, resultContinuation);
|
|
1999
|
-
this.
|
|
2000
|
-
this.
|
|
2001
|
-
this.
|
|
1995
|
+
this.j5p_1 = _this__u8e3s4;
|
|
1996
|
+
this.k5p_1 = bodyAsJson;
|
|
1997
|
+
this.l5p_1 = response;
|
|
2002
1998
|
}
|
|
2003
1999
|
protoOf($throwIfErrorCOROUTINE$2).n9 = function () {
|
|
2004
2000
|
var suspendResult = this.h9_1;
|
|
@@ -2008,12 +2004,12 @@
|
|
|
2008
2004
|
switch (tmp) {
|
|
2009
2005
|
case 0:
|
|
2010
2006
|
this.g9_1 = 3;
|
|
2011
|
-
var this_0 = this.
|
|
2007
|
+
var this_0 = this.k5p_1;
|
|
2012
2008
|
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).f2('error')) {
|
|
2013
2009
|
var tmp_0 = this;
|
|
2014
|
-
tmp_0.
|
|
2010
|
+
tmp_0.m5p_1 = this.l5p_1;
|
|
2015
2011
|
this.f9_1 = 2;
|
|
2016
|
-
var tmp_1 = this.
|
|
2012
|
+
var tmp_1 = this.m5p_1.t2y();
|
|
2017
2013
|
var tmp_2 = JsType_instance;
|
|
2018
2014
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2019
2015
|
var tmp_4;
|
|
@@ -2029,7 +2025,7 @@
|
|
|
2029
2025
|
}
|
|
2030
2026
|
tmp_4 = tmp_5;
|
|
2031
2027
|
}
|
|
2032
|
-
suspendResult = tmp_1.
|
|
2028
|
+
suspendResult = tmp_1.x2x(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2033
2029
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2034
2030
|
return suspendResult;
|
|
2035
2031
|
}
|
|
@@ -2043,10 +2039,10 @@
|
|
|
2043
2039
|
return Unit_instance;
|
|
2044
2040
|
case 2:
|
|
2045
2041
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2046
|
-
var tmp18_safe_receiver = errorResponseDto.
|
|
2047
|
-
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.
|
|
2048
|
-
var tmp19_safe_receiver = errorResponseDto.
|
|
2049
|
-
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
2042
|
+
var tmp18_safe_receiver = errorResponseDto.c5n_1;
|
|
2043
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.f5n_1;
|
|
2044
|
+
var tmp19_safe_receiver = errorResponseDto.c5n_1;
|
|
2045
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.g5n_1);
|
|
2050
2046
|
case 3:
|
|
2051
2047
|
throw this.i9_1;
|
|
2052
2048
|
}
|
|
@@ -2062,19 +2058,18 @@
|
|
|
2062
2058
|
while (true);
|
|
2063
2059
|
};
|
|
2064
2060
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2065
|
-
this.
|
|
2066
|
-
this.
|
|
2061
|
+
this.m5q_1 = client;
|
|
2062
|
+
this.n5q_1 = apiKey;
|
|
2067
2063
|
}
|
|
2068
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2064
|
+
protoOf(RandomOrgApiServiceImpl).a5p = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2069
2065
|
var tmp = new $getRandomCardDecksCOROUTINE$1(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2070
2066
|
tmp.h9_1 = Unit_instance;
|
|
2071
2067
|
tmp.i9_1 = null;
|
|
2072
2068
|
return tmp.n9();
|
|
2073
2069
|
};
|
|
2074
|
-
function PoolParams(poolSize, thresholdForUsedPool,
|
|
2070
|
+
function PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2075
2071
|
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
2076
2072
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? 3 : thresholdForUsedPool;
|
|
2077
|
-
requestDurationWarn = requestDurationWarn === VOID ? 3000 : requestDurationWarn;
|
|
2078
2073
|
failedRequestAttempts = failedRequestAttempts === VOID ? 3 : failedRequestAttempts;
|
|
2079
2074
|
var tmp;
|
|
2080
2075
|
if (failedAttemptCooldown === VOID) {
|
|
@@ -2088,23 +2083,19 @@
|
|
|
2088
2083
|
failedAttemptCooldown = tmp;
|
|
2089
2084
|
this.poolSize = poolSize;
|
|
2090
2085
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
2091
|
-
this.requestDurationWarn = requestDurationWarn;
|
|
2092
2086
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2093
2087
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2094
2088
|
}
|
|
2095
|
-
protoOf(PoolParams).
|
|
2089
|
+
protoOf(PoolParams).v5m = function () {
|
|
2096
2090
|
return this.poolSize;
|
|
2097
2091
|
};
|
|
2098
|
-
protoOf(PoolParams).
|
|
2092
|
+
protoOf(PoolParams).w5m = function () {
|
|
2099
2093
|
return this.thresholdForUsedPool;
|
|
2100
2094
|
};
|
|
2101
|
-
protoOf(PoolParams).
|
|
2102
|
-
return this.requestDurationWarn;
|
|
2103
|
-
};
|
|
2104
|
-
protoOf(PoolParams).c5r = function () {
|
|
2095
|
+
protoOf(PoolParams).o5q = function () {
|
|
2105
2096
|
return this.failedRequestAttempts;
|
|
2106
2097
|
};
|
|
2107
|
-
protoOf(PoolParams).
|
|
2098
|
+
protoOf(PoolParams).p5q = function () {
|
|
2108
2099
|
return this.failedAttemptCooldown;
|
|
2109
2100
|
};
|
|
2110
2101
|
protoOf(PoolParams).qe = function () {
|
|
@@ -2114,32 +2105,27 @@
|
|
|
2114
2105
|
return this.thresholdForUsedPool;
|
|
2115
2106
|
};
|
|
2116
2107
|
protoOf(PoolParams).ik = function () {
|
|
2117
|
-
return this.requestDurationWarn;
|
|
2118
|
-
};
|
|
2119
|
-
protoOf(PoolParams).a5n = function () {
|
|
2120
2108
|
return this.failedRequestAttempts;
|
|
2121
2109
|
};
|
|
2122
|
-
protoOf(PoolParams).
|
|
2110
|
+
protoOf(PoolParams).q5q = function () {
|
|
2123
2111
|
return this.failedAttemptCooldown;
|
|
2124
2112
|
};
|
|
2125
|
-
protoOf(PoolParams).
|
|
2126
|
-
return new PoolParams(poolSize, thresholdForUsedPool,
|
|
2113
|
+
protoOf(PoolParams).r5q = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2114
|
+
return new PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2127
2115
|
};
|
|
2128
|
-
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool,
|
|
2116
|
+
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
2129
2117
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
2130
2118
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2131
|
-
requestDurationWarn = requestDurationWarn === VOID ? this.requestDurationWarn : requestDurationWarn;
|
|
2132
2119
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2133
2120
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2134
|
-
return this.
|
|
2121
|
+
return this.r5q(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2135
2122
|
};
|
|
2136
2123
|
protoOf(PoolParams).toString = function () {
|
|
2137
|
-
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ',
|
|
2124
|
+
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
2138
2125
|
};
|
|
2139
2126
|
protoOf(PoolParams).hashCode = function () {
|
|
2140
2127
|
var result = this.poolSize;
|
|
2141
2128
|
result = imul(result, 31) + this.thresholdForUsedPool | 0;
|
|
2142
|
-
result = imul(result, 31) + this.requestDurationWarn | 0;
|
|
2143
2129
|
result = imul(result, 31) + this.failedRequestAttempts | 0;
|
|
2144
2130
|
result = imul(result, 31) + Duration__hashCode_impl_u4exz6(this.failedAttemptCooldown) | 0;
|
|
2145
2131
|
return result;
|
|
@@ -2154,8 +2140,6 @@
|
|
|
2154
2140
|
return false;
|
|
2155
2141
|
if (!(this.thresholdForUsedPool === tmp0_other_with_cast.thresholdForUsedPool))
|
|
2156
2142
|
return false;
|
|
2157
|
-
if (!(this.requestDurationWarn === tmp0_other_with_cast.requestDurationWarn))
|
|
2158
|
-
return false;
|
|
2159
2143
|
if (!(this.failedRequestAttempts === tmp0_other_with_cast.failedRequestAttempts))
|
|
2160
2144
|
return false;
|
|
2161
2145
|
if (!equals(this.failedAttemptCooldown, tmp0_other_with_cast.failedAttemptCooldown))
|
|
@@ -2164,78 +2148,75 @@
|
|
|
2164
2148
|
};
|
|
2165
2149
|
function RandomPoolProvider() {
|
|
2166
2150
|
}
|
|
2151
|
+
function _get_cardDecksCount__ihvb5i($this) {
|
|
2152
|
+
return $this.w5q_1.f5m_1.m();
|
|
2153
|
+
}
|
|
2167
2154
|
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2168
2155
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2169
2156
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2170
2157
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2171
|
-
this.
|
|
2172
|
-
this.
|
|
2173
|
-
this.
|
|
2174
|
-
this.
|
|
2158
|
+
this.w5q_1 = randomResult;
|
|
2159
|
+
this.x5q_1 = usedByGames;
|
|
2160
|
+
this.y5q_1 = reservedCardDecks;
|
|
2161
|
+
this.z5q_1 = isUsed;
|
|
2175
2162
|
}
|
|
2176
|
-
protoOf(RandomPoolValue).
|
|
2177
|
-
|
|
2178
|
-
};
|
|
2179
|
-
protoOf(RandomPoolValue).o5r = function (minRoundsCount) {
|
|
2180
|
-
if (this.m5r_1) {
|
|
2163
|
+
protoOf(RandomPoolValue).a5r = function (minRoundsCount) {
|
|
2164
|
+
if (this.z5q_1) {
|
|
2181
2165
|
return false;
|
|
2182
2166
|
}
|
|
2183
|
-
var availableCount = this
|
|
2167
|
+
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.y5q_1 | 0;
|
|
2184
2168
|
return availableCount >= minRoundsCount;
|
|
2185
2169
|
};
|
|
2186
|
-
protoOf(RandomPoolValue).
|
|
2187
|
-
var
|
|
2170
|
+
protoOf(RandomPoolValue).b5r = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2171
|
+
var previousReservedCardDeckIndex = this.y5q_1;
|
|
2188
2172
|
// Inline function 'kotlin.apply' call
|
|
2189
|
-
var this_0 = toMutableMap(this.
|
|
2173
|
+
var this_0 = toMutableMap(this.x5q_1);
|
|
2190
2174
|
// Inline function 'kotlin.contracts.contract' call
|
|
2191
2175
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2192
|
-
this_0.k2(gameId,
|
|
2176
|
+
this_0.k2(gameId, previousReservedCardDeckIndex);
|
|
2193
2177
|
var newNewUsedBy = toMap(this_0);
|
|
2194
|
-
var newReservedCardDecks =
|
|
2195
|
-
return this.
|
|
2178
|
+
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2179
|
+
return this.c5r(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2196
2180
|
};
|
|
2197
|
-
protoOf(RandomPoolValue).
|
|
2198
|
-
var currentCardDeckIndex = getValue(this.
|
|
2181
|
+
protoOf(RandomPoolValue).d5r = function (gameId) {
|
|
2182
|
+
var currentCardDeckIndex = getValue(this.x5q_1, gameId);
|
|
2199
2183
|
var tmp;
|
|
2200
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2184
|
+
if (currentCardDeckIndex === get_lastIndex(this.w5q_1.f5m_1)) {
|
|
2201
2185
|
tmp = 0;
|
|
2202
2186
|
} else {
|
|
2203
2187
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2204
2188
|
}
|
|
2205
2189
|
var newCardDeckIndex = tmp;
|
|
2206
2190
|
// Inline function 'kotlin.apply' call
|
|
2207
|
-
var this_0 = toMutableMap(this.
|
|
2191
|
+
var this_0 = toMutableMap(this.x5q_1);
|
|
2208
2192
|
// Inline function 'kotlin.contracts.contract' call
|
|
2209
2193
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2210
2194
|
this_0.k2(gameId, newCardDeckIndex);
|
|
2211
2195
|
var newNewUsedBy = toMap(this_0);
|
|
2212
|
-
return this.
|
|
2196
|
+
return this.c5r(VOID, newNewUsedBy);
|
|
2213
2197
|
};
|
|
2214
|
-
protoOf(RandomPoolValue).
|
|
2215
|
-
|
|
2198
|
+
protoOf(RandomPoolValue).e5r = function (gameId) {
|
|
2199
|
+
var index = getValue(this.x5q_1, gameId);
|
|
2200
|
+
return new GameCardDeckData(index, this.w5q_1.f5m_1.o(index));
|
|
2216
2201
|
};
|
|
2217
|
-
protoOf(RandomPoolValue).
|
|
2218
|
-
var index = getValue(this.k5r_1, gameId);
|
|
2219
|
-
return new GameCardDeckData(index, this.j5r_1.s5m_1.o(index));
|
|
2220
|
-
};
|
|
2221
|
-
protoOf(RandomPoolValue).u5r = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2202
|
+
protoOf(RandomPoolValue).f5r = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2222
2203
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2223
2204
|
};
|
|
2224
|
-
protoOf(RandomPoolValue).
|
|
2225
|
-
randomResult = randomResult === VOID ? this.
|
|
2226
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2227
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2228
|
-
isUsed = isUsed === VOID ? this.
|
|
2229
|
-
return $super === VOID ? this.
|
|
2205
|
+
protoOf(RandomPoolValue).c5r = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2206
|
+
randomResult = randomResult === VOID ? this.w5q_1 : randomResult;
|
|
2207
|
+
usedByGames = usedByGames === VOID ? this.x5q_1 : usedByGames;
|
|
2208
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.y5q_1 : reservedCardDecks;
|
|
2209
|
+
isUsed = isUsed === VOID ? this.z5q_1 : isUsed;
|
|
2210
|
+
return $super === VOID ? this.f5r(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.f5r.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2230
2211
|
};
|
|
2231
2212
|
protoOf(RandomPoolValue).toString = function () {
|
|
2232
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2213
|
+
return 'RandomPoolValue(randomResult=' + this.w5q_1.toString() + ', usedByGames=' + toString(this.x5q_1) + ', reservedCardDecks=' + this.y5q_1 + ', isUsed=' + this.z5q_1 + ')';
|
|
2233
2214
|
};
|
|
2234
2215
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2235
|
-
var result = this.
|
|
2236
|
-
result = imul(result, 31) + hashCode(this.
|
|
2237
|
-
result = imul(result, 31) + this.
|
|
2238
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2216
|
+
var result = this.w5q_1.hashCode();
|
|
2217
|
+
result = imul(result, 31) + hashCode(this.x5q_1) | 0;
|
|
2218
|
+
result = imul(result, 31) + this.y5q_1 | 0;
|
|
2219
|
+
result = imul(result, 31) + getBooleanHashCode(this.z5q_1) | 0;
|
|
2239
2220
|
return result;
|
|
2240
2221
|
};
|
|
2241
2222
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2244,94 +2225,24 @@
|
|
|
2244
2225
|
if (!(other instanceof RandomPoolValue))
|
|
2245
2226
|
return false;
|
|
2246
2227
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2247
|
-
if (!this.
|
|
2228
|
+
if (!this.w5q_1.equals(tmp0_other_with_cast.w5q_1))
|
|
2248
2229
|
return false;
|
|
2249
|
-
if (!equals(this.
|
|
2230
|
+
if (!equals(this.x5q_1, tmp0_other_with_cast.x5q_1))
|
|
2250
2231
|
return false;
|
|
2251
|
-
if (!(this.
|
|
2232
|
+
if (!(this.y5q_1 === tmp0_other_with_cast.y5q_1))
|
|
2252
2233
|
return false;
|
|
2253
|
-
if (!(this.
|
|
2234
|
+
if (!(this.z5q_1 === tmp0_other_with_cast.z5q_1))
|
|
2254
2235
|
return false;
|
|
2255
2236
|
return true;
|
|
2256
2237
|
};
|
|
2257
|
-
function
|
|
2258
|
-
|
|
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;
|
|
2265
|
-
CoroutineImpl.call(this, resultContinuation);
|
|
2266
|
-
}
|
|
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();
|
|
2272
|
-
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2273
|
-
return tmp_0;
|
|
2274
|
-
return tmp_0;
|
|
2275
|
-
};
|
|
2276
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).x9 = function (p1, $completion) {
|
|
2277
|
-
return this.l5s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2278
|
-
};
|
|
2279
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).n9 = function () {
|
|
2280
|
-
var suspendResult = this.h9_1;
|
|
2281
|
-
$sm: do
|
|
2282
|
-
try {
|
|
2283
|
-
var tmp = this.f9_1;
|
|
2284
|
-
switch (tmp) {
|
|
2285
|
-
case 0:
|
|
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);
|
|
2289
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2290
|
-
return suspendResult;
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
continue $sm;
|
|
2294
|
-
case 1:
|
|
2295
|
-
var cardDeckData = suspendResult;
|
|
2296
|
-
return new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2297
|
-
case 2:
|
|
2298
|
-
throw this.i9_1;
|
|
2299
|
-
}
|
|
2300
|
-
} catch ($p) {
|
|
2301
|
-
var e = $p;
|
|
2302
|
-
if (this.g9_1 === 2) {
|
|
2303
|
-
throw e;
|
|
2304
|
-
} else {
|
|
2305
|
-
this.f9_1 = this.g9_1;
|
|
2306
|
-
this.i9_1 = e;
|
|
2307
|
-
}
|
|
2308
|
-
}
|
|
2309
|
-
while (true);
|
|
2310
|
-
};
|
|
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;
|
|
2314
|
-
return i;
|
|
2315
|
-
};
|
|
2316
|
-
function RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2317
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2318
|
-
var l = function ($this$withTimeout, $completion) {
|
|
2319
|
-
return i.l5s($this$withTimeout, $completion);
|
|
2320
|
-
};
|
|
2321
|
-
l.$arity = 1;
|
|
2322
|
-
return l;
|
|
2323
|
-
}
|
|
2324
|
-
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion) {
|
|
2325
|
-
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$3($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion);
|
|
2238
|
+
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2239
|
+
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$4($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2326
2240
|
tmp.h9_1 = Unit_instance;
|
|
2327
2241
|
tmp.i9_1 = null;
|
|
2328
2242
|
return tmp.n9();
|
|
2329
2243
|
}
|
|
2330
|
-
function requestNewCardDecks($this, min, max, cardsCount, signed, $completion) {
|
|
2331
|
-
return withContext($this.f5t_1, RandomPoolProviderImpl$requestNewCardDecks$slambda_0($this, min, max, cardsCount, signed, null), $completion);
|
|
2332
|
-
}
|
|
2333
2244
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2334
|
-
var existingCardDeck = $this.
|
|
2245
|
+
var existingCardDeck = $this.e5s_1.h2(userData.gameId);
|
|
2335
2246
|
var tmp;
|
|
2336
2247
|
if (!(existingCardDeck == null)) {
|
|
2337
2248
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2340,16 +2251,20 @@
|
|
|
2340
2251
|
}
|
|
2341
2252
|
return tmp;
|
|
2342
2253
|
}
|
|
2343
|
-
function
|
|
2344
|
-
var tmp = new $
|
|
2254
|
+
function getPreparedOrRequestPool($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2255
|
+
var tmp = new $getPreparedOrRequestPoolCOROUTINE$5($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2345
2256
|
tmp.h9_1 = Unit_instance;
|
|
2346
2257
|
tmp.i9_1 = null;
|
|
2347
2258
|
return tmp.n9();
|
|
2348
2259
|
}
|
|
2260
|
+
function requestNewPool($this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2261
|
+
return withContext($this.a5s_1, RandomPoolProviderImpl$requestNewPool$slambda_0($this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2262
|
+
}
|
|
2349
2263
|
function Companion_9() {
|
|
2350
|
-
this.
|
|
2351
|
-
this.
|
|
2352
|
-
this.
|
|
2264
|
+
this.z5s_1 = 100;
|
|
2265
|
+
this.a5t_1 = 3;
|
|
2266
|
+
this.b5t_1 = 3000;
|
|
2267
|
+
this.c5t_1 = 10000;
|
|
2353
2268
|
}
|
|
2354
2269
|
var Companion_instance_11;
|
|
2355
2270
|
function Companion_getInstance_12() {
|
|
@@ -2358,19 +2273,19 @@
|
|
|
2358
2273
|
function RandomPoolProviderImpl$_init_$lambda_f6qzy3() {
|
|
2359
2274
|
return uuid4().toString();
|
|
2360
2275
|
}
|
|
2361
|
-
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $
|
|
2362
|
-
this.
|
|
2363
|
-
this.
|
|
2364
|
-
this.
|
|
2365
|
-
this.
|
|
2366
|
-
this.
|
|
2367
|
-
this.
|
|
2368
|
-
this.
|
|
2369
|
-
this.
|
|
2276
|
+
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2277
|
+
this.l5t_1 = this$0;
|
|
2278
|
+
this.m5t_1 = $minRoundsCountInPool;
|
|
2279
|
+
this.n5t_1 = $userData;
|
|
2280
|
+
this.o5t_1 = $min;
|
|
2281
|
+
this.p5t_1 = $max;
|
|
2282
|
+
this.q5t_1 = $cardsCount;
|
|
2283
|
+
this.r5t_1 = $signed;
|
|
2284
|
+
this.s5t_1 = $requestDurationWarnMillis;
|
|
2370
2285
|
CoroutineImpl.call(this, resultContinuation);
|
|
2371
2286
|
}
|
|
2372
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2373
|
-
var tmp = this.
|
|
2287
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).c5u = function ($this$withContext, $completion) {
|
|
2288
|
+
var tmp = this.z1d($this$withContext, $completion);
|
|
2374
2289
|
tmp.h9_1 = Unit_instance;
|
|
2375
2290
|
tmp.i9_1 = null;
|
|
2376
2291
|
var tmp_0 = tmp.n9();
|
|
@@ -2379,7 +2294,7 @@
|
|
|
2379
2294
|
return tmp_0;
|
|
2380
2295
|
};
|
|
2381
2296
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).x9 = function (p1, $completion) {
|
|
2382
|
-
return this.
|
|
2297
|
+
return this.c5u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2383
2298
|
};
|
|
2384
2299
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).n9 = function () {
|
|
2385
2300
|
var suspendResult = this.h9_1;
|
|
@@ -2390,40 +2305,40 @@
|
|
|
2390
2305
|
case 0:
|
|
2391
2306
|
this.g9_1 = 11;
|
|
2392
2307
|
var tmp_0 = this;
|
|
2393
|
-
tmp_0.
|
|
2308
|
+
tmp_0.u5t_1 = this.l5t_1.c5s_1;
|
|
2394
2309
|
var tmp_1 = this;
|
|
2395
|
-
tmp_1.
|
|
2310
|
+
tmp_1.v5t_1 = null;
|
|
2396
2311
|
this.f9_1 = 1;
|
|
2397
|
-
suspendResult = this.
|
|
2312
|
+
suspendResult = this.u5t_1.g1m(this.v5t_1, this);
|
|
2398
2313
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2399
2314
|
return suspendResult;
|
|
2400
2315
|
}
|
|
2401
2316
|
|
|
2402
2317
|
continue $sm;
|
|
2403
2318
|
case 1:
|
|
2404
|
-
this.
|
|
2319
|
+
this.w5t_1 = Unit_instance;
|
|
2405
2320
|
this.f9_1 = 2;
|
|
2406
2321
|
continue $sm;
|
|
2407
2322
|
case 2:
|
|
2408
2323
|
this.g9_1 = 10;
|
|
2409
|
-
this.
|
|
2324
|
+
this.x5t_1 = Unit_instance;
|
|
2410
2325
|
this.f9_1 = 3;
|
|
2411
2326
|
continue $sm;
|
|
2412
2327
|
case 3:
|
|
2413
|
-
this.
|
|
2414
|
-
this.
|
|
2415
|
-
if (!(this.
|
|
2416
|
-
this.
|
|
2417
|
-
if (this.
|
|
2418
|
-
this.
|
|
2328
|
+
this.y5t_1 = this.l5t_1.f5s_1;
|
|
2329
|
+
this.z5t_1 = System_instance.m55();
|
|
2330
|
+
if (!(this.y5t_1 == null) && this.l5t_1.g5s_1 >= this.l5t_1.x5r_1.failedRequestAttempts) {
|
|
2331
|
+
this.a5u_1 = this.y5t_1.a5l(this.l5t_1.x5r_1.failedAttemptCooldown);
|
|
2332
|
+
if (this.a5u_1.e5l(this.z5t_1) > 0) {
|
|
2333
|
+
this.b5u_1 = new RandomException(VOID, 'getCardDeck: cooldown ends in ' + this.a5u_1.toString() + ', ' + ('failedAttemptTime = ' + toString_0(this.y5t_1) + ', ') + ('currentTime = ' + this.z5t_1.toString()));
|
|
2419
2334
|
var tmp_2 = this;
|
|
2420
|
-
var exception = this.
|
|
2421
|
-
tmp_2.
|
|
2335
|
+
var exception = this.b5u_1;
|
|
2336
|
+
tmp_2.x5t_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2422
2337
|
this.f9_1 = 8;
|
|
2423
2338
|
continue $sm;
|
|
2424
2339
|
} else {
|
|
2425
|
-
this.
|
|
2426
|
-
this.
|
|
2340
|
+
this.l5t_1.f5s_1 = null;
|
|
2341
|
+
this.l5t_1.g5s_1 = 0;
|
|
2427
2342
|
this.f9_1 = 4;
|
|
2428
2343
|
continue $sm;
|
|
2429
2344
|
}
|
|
@@ -2438,26 +2353,28 @@
|
|
|
2438
2353
|
case 5:
|
|
2439
2354
|
this.g9_1 = 7;
|
|
2440
2355
|
this.f9_1 = 6;
|
|
2441
|
-
suspendResult =
|
|
2356
|
+
suspendResult = getOrLoadGameCardDeckData(this.l5t_1, this.m5t_1, this.n5t_1, this.o5t_1, this.p5t_1, this.q5t_1, this.r5t_1, this.s5t_1, this);
|
|
2442
2357
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2443
2358
|
return suspendResult;
|
|
2444
2359
|
}
|
|
2445
2360
|
|
|
2446
2361
|
continue $sm;
|
|
2447
2362
|
case 6:
|
|
2448
|
-
|
|
2363
|
+
var cardDeckData = suspendResult;
|
|
2364
|
+
var tmp_3 = this;
|
|
2365
|
+
tmp_3.x5t_1 = new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2449
2366
|
this.f9_1 = 8;
|
|
2450
2367
|
continue $sm;
|
|
2451
2368
|
case 7:
|
|
2452
2369
|
this.g9_1 = 10;
|
|
2453
|
-
var
|
|
2454
|
-
if (
|
|
2370
|
+
var tmp_4 = this.i9_1;
|
|
2371
|
+
if (tmp_4 instanceof Error) {
|
|
2455
2372
|
var error = this.i9_1;
|
|
2456
|
-
this.
|
|
2457
|
-
var _unary__edvuaz = this.
|
|
2458
|
-
this.
|
|
2459
|
-
var
|
|
2460
|
-
var value = this.
|
|
2373
|
+
this.l5t_1.f5s_1 = this.z5t_1;
|
|
2374
|
+
var _unary__edvuaz = this.l5t_1.g5s_1;
|
|
2375
|
+
this.l5t_1.g5s_1 = _unary__edvuaz + 1 | 0;
|
|
2376
|
+
var tmp_5 = 'getCardDeck: error message = ' + error.message + ', ';
|
|
2377
|
+
var value = this.l5t_1.f5s_1;
|
|
2461
2378
|
var tmp$ret$2 = Unit_instance;
|
|
2462
2379
|
l$ret$3: do {
|
|
2463
2380
|
if (value == null) {
|
|
@@ -2469,10 +2386,10 @@
|
|
|
2469
2386
|
}
|
|
2470
2387
|
}
|
|
2471
2388
|
while (false);
|
|
2472
|
-
var exception_0 = new RandomException(VOID,
|
|
2473
|
-
this.
|
|
2474
|
-
var
|
|
2475
|
-
|
|
2389
|
+
var exception_0 = new RandomException(VOID, tmp_5 + ('cooldown ends in ' + tmp$ret$2.a5l(this.l5t_1.x5r_1.failedAttemptCooldown).toString() + ', ') + ('failedAttemptTime = ' + toString_0(this.y5t_1) + ', ') + ('currentTime = ' + this.z5t_1.toString()), error);
|
|
2390
|
+
this.l5t_1.z5r_1.w('RandomPoolProvider', VOID, exception_0);
|
|
2391
|
+
var tmp_6 = this;
|
|
2392
|
+
tmp_6.x5t_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2476
2393
|
this.f9_1 = 8;
|
|
2477
2394
|
continue $sm;
|
|
2478
2395
|
} else {
|
|
@@ -2480,19 +2397,19 @@
|
|
|
2480
2397
|
}
|
|
2481
2398
|
|
|
2482
2399
|
case 8:
|
|
2483
|
-
this.
|
|
2400
|
+
this.w5t_1 = this.x5t_1;
|
|
2484
2401
|
this.g9_1 = 11;
|
|
2485
2402
|
this.f9_1 = 9;
|
|
2486
2403
|
continue $sm;
|
|
2487
2404
|
case 9:
|
|
2488
|
-
var
|
|
2405
|
+
var tmp_7 = this.w5t_1;
|
|
2489
2406
|
this.g9_1 = 11;
|
|
2490
|
-
this.
|
|
2491
|
-
return
|
|
2407
|
+
this.u5t_1.r1l(this.v5t_1);
|
|
2408
|
+
return tmp_7;
|
|
2492
2409
|
case 10:
|
|
2493
2410
|
this.g9_1 = 11;
|
|
2494
2411
|
var t = this.i9_1;
|
|
2495
|
-
this.
|
|
2412
|
+
this.u5t_1.r1l(this.v5t_1);
|
|
2496
2413
|
throw t;
|
|
2497
2414
|
case 11:
|
|
2498
2415
|
throw this.i9_1;
|
|
@@ -2508,37 +2425,38 @@
|
|
|
2508
2425
|
}
|
|
2509
2426
|
while (true);
|
|
2510
2427
|
};
|
|
2511
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2512
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2513
|
-
i.
|
|
2428
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).z1d = function ($this$withContext, completion) {
|
|
2429
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.l5t_1, this.m5t_1, this.n5t_1, this.o5t_1, this.p5t_1, this.q5t_1, this.r5t_1, this.s5t_1, completion);
|
|
2430
|
+
i.t5t_1 = $this$withContext;
|
|
2514
2431
|
return i;
|
|
2515
2432
|
};
|
|
2516
|
-
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $
|
|
2517
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $
|
|
2433
|
+
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2434
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2518
2435
|
var l = function ($this$withContext, $completion) {
|
|
2519
|
-
return i.
|
|
2436
|
+
return i.c5u($this$withContext, $completion);
|
|
2520
2437
|
};
|
|
2521
2438
|
l.$arity = 1;
|
|
2522
2439
|
return l;
|
|
2523
2440
|
}
|
|
2524
|
-
function RandomPoolProviderImpl$
|
|
2525
|
-
this.
|
|
2526
|
-
this.
|
|
2527
|
-
this.
|
|
2528
|
-
this.
|
|
2529
|
-
this.
|
|
2441
|
+
function RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2442
|
+
this.l5u_1 = this$0;
|
|
2443
|
+
this.m5u_1 = $min;
|
|
2444
|
+
this.n5u_1 = $max;
|
|
2445
|
+
this.o5u_1 = $cardsCount;
|
|
2446
|
+
this.p5u_1 = $signed;
|
|
2447
|
+
this.q5u_1 = $requestDurationWarnMillis;
|
|
2530
2448
|
CoroutineImpl.call(this, resultContinuation);
|
|
2531
2449
|
}
|
|
2532
|
-
protoOf(RandomPoolProviderImpl$
|
|
2533
|
-
var tmp = this.
|
|
2450
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).t5u = function ($this$withContext, $completion) {
|
|
2451
|
+
var tmp = this.z1d($this$withContext, $completion);
|
|
2534
2452
|
tmp.h9_1 = Unit_instance;
|
|
2535
2453
|
tmp.i9_1 = null;
|
|
2536
2454
|
return tmp.n9();
|
|
2537
2455
|
};
|
|
2538
|
-
protoOf(RandomPoolProviderImpl$
|
|
2539
|
-
return this.
|
|
2456
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).x9 = function (p1, $completion) {
|
|
2457
|
+
return this.t5u((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2540
2458
|
};
|
|
2541
|
-
protoOf(RandomPoolProviderImpl$
|
|
2459
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).n9 = function () {
|
|
2542
2460
|
var suspendResult = this.h9_1;
|
|
2543
2461
|
$sm: do
|
|
2544
2462
|
try {
|
|
@@ -2546,9 +2464,9 @@
|
|
|
2546
2464
|
switch (tmp) {
|
|
2547
2465
|
case 0:
|
|
2548
2466
|
this.g9_1 = 2;
|
|
2549
|
-
this.
|
|
2467
|
+
this.s5u_1 = System_instance.m55();
|
|
2550
2468
|
this.f9_1 = 1;
|
|
2551
|
-
suspendResult = this.
|
|
2469
|
+
suspendResult = this.l5u_1.y5r_1.a5p(this.m5u_1, this.n5u_1, this.l5u_1.x5r_1.poolSize, this.o5u_1, new CardDecksRequestUserData(this.l5u_1.b5s_1(), this.l5u_1.x5r_1.poolSize), this.p5u_1, this);
|
|
2552
2470
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2553
2471
|
return suspendResult;
|
|
2554
2472
|
}
|
|
@@ -2556,12 +2474,15 @@
|
|
|
2556
2474
|
continue $sm;
|
|
2557
2475
|
case 1:
|
|
2558
2476
|
var result = suspendResult;
|
|
2559
|
-
var requestEndTime = System_instance.
|
|
2560
|
-
var requestDuration = requestEndTime.
|
|
2477
|
+
var requestEndTime = System_instance.m55();
|
|
2478
|
+
var requestDuration = requestEndTime.d5l(this.s5u_1);
|
|
2561
2479
|
Companion_getInstance_0();
|
|
2562
|
-
var this_0 = this.
|
|
2563
|
-
if (Duration__compareTo_impl_pchp0f(requestDuration,
|
|
2564
|
-
|
|
2480
|
+
var this_0 = this.q5u_1;
|
|
2481
|
+
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2482
|
+
var tmp_0 = 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ');
|
|
2483
|
+
Companion_getInstance_0();
|
|
2484
|
+
var this_1 = this.q5u_1;
|
|
2485
|
+
this.l5u_1.z5r_1.w('RandomPoolProvider', tmp_0 + ('expected = ' + Duration__toString_impl_8d916b(toDuration(this_1, DurationUnit_MILLISECONDS_getInstance()))));
|
|
2565
2486
|
}
|
|
2566
2487
|
|
|
2567
2488
|
var newCardDecksValue = new RandomPoolValue(result);
|
|
@@ -2580,30 +2501,29 @@
|
|
|
2580
2501
|
}
|
|
2581
2502
|
while (true);
|
|
2582
2503
|
};
|
|
2583
|
-
protoOf(RandomPoolProviderImpl$
|
|
2584
|
-
var i = new RandomPoolProviderImpl$
|
|
2585
|
-
i.
|
|
2504
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).z1d = function ($this$withContext, completion) {
|
|
2505
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.l5u_1, this.m5u_1, this.n5u_1, this.o5u_1, this.p5u_1, this.q5u_1, completion);
|
|
2506
|
+
i.r5u_1 = $this$withContext;
|
|
2586
2507
|
return i;
|
|
2587
2508
|
};
|
|
2588
|
-
function RandomPoolProviderImpl$
|
|
2589
|
-
var i = new RandomPoolProviderImpl$
|
|
2509
|
+
function RandomPoolProviderImpl$requestNewPool$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2510
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2590
2511
|
var l = function ($this$withContext, $completion) {
|
|
2591
|
-
return i.
|
|
2512
|
+
return i.t5u($this$withContext, $completion);
|
|
2592
2513
|
};
|
|
2593
2514
|
l.$arity = 1;
|
|
2594
2515
|
return l;
|
|
2595
2516
|
}
|
|
2596
|
-
function $
|
|
2517
|
+
function $prefetchCardDecksCOROUTINE$3(_this__u8e3s4, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2597
2518
|
CoroutineImpl.call(this, resultContinuation);
|
|
2598
|
-
this.
|
|
2599
|
-
this.
|
|
2600
|
-
this.
|
|
2601
|
-
this.
|
|
2602
|
-
this.
|
|
2603
|
-
this.
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).n9 = function () {
|
|
2519
|
+
this.c5v_1 = _this__u8e3s4;
|
|
2520
|
+
this.d5v_1 = min;
|
|
2521
|
+
this.e5v_1 = max;
|
|
2522
|
+
this.f5v_1 = cardsCount;
|
|
2523
|
+
this.g5v_1 = signed;
|
|
2524
|
+
this.h5v_1 = requestDurationWarnMillis;
|
|
2525
|
+
}
|
|
2526
|
+
protoOf($prefetchCardDecksCOROUTINE$3).n9 = function () {
|
|
2607
2527
|
var suspendResult = this.h9_1;
|
|
2608
2528
|
$sm: do
|
|
2609
2529
|
try {
|
|
@@ -2611,9 +2531,8 @@
|
|
|
2611
2531
|
switch (tmp) {
|
|
2612
2532
|
case 0:
|
|
2613
2533
|
this.g9_1 = 2;
|
|
2614
|
-
this.b5t_1 = this.w5s_1.gameId;
|
|
2615
2534
|
this.f9_1 = 1;
|
|
2616
|
-
suspendResult =
|
|
2535
|
+
suspendResult = requestNewPool(this.c5v_1, this.d5v_1, this.e5v_1, this.f5v_1, this.g5v_1, this.h5v_1, this);
|
|
2617
2536
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2618
2537
|
return suspendResult;
|
|
2619
2538
|
}
|
|
@@ -2621,15 +2540,62 @@
|
|
|
2621
2540
|
continue $sm;
|
|
2622
2541
|
case 1:
|
|
2623
2542
|
var randomPoolValue = suspendResult;
|
|
2624
|
-
var this_0 = this.
|
|
2625
|
-
var key = randomPoolValue.
|
|
2543
|
+
var this_0 = this.c5v_1.d5s_1;
|
|
2544
|
+
var key = randomPoolValue.w5q_1.h5m_1;
|
|
2626
2545
|
this_0.k2(key, randomPoolValue);
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2546
|
+
return Unit_instance;
|
|
2547
|
+
case 2:
|
|
2548
|
+
throw this.i9_1;
|
|
2549
|
+
}
|
|
2550
|
+
} catch ($p) {
|
|
2551
|
+
var e = $p;
|
|
2552
|
+
if (this.g9_1 === 2) {
|
|
2553
|
+
throw e;
|
|
2554
|
+
} else {
|
|
2555
|
+
this.f9_1 = this.g9_1;
|
|
2556
|
+
this.i9_1 = e;
|
|
2557
|
+
}
|
|
2558
|
+
}
|
|
2559
|
+
while (true);
|
|
2560
|
+
};
|
|
2561
|
+
function $getOrLoadGameCardDeckDataCOROUTINE$4(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2562
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2563
|
+
this.o5r_1 = _this__u8e3s4;
|
|
2564
|
+
this.p5r_1 = minRoundsCountInPool;
|
|
2565
|
+
this.q5r_1 = userData;
|
|
2566
|
+
this.r5r_1 = min;
|
|
2567
|
+
this.s5r_1 = max;
|
|
2568
|
+
this.t5r_1 = cardsCount;
|
|
2569
|
+
this.u5r_1 = signed;
|
|
2570
|
+
this.v5r_1 = requestDurationWarnMillis;
|
|
2571
|
+
}
|
|
2572
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$4).n9 = function () {
|
|
2573
|
+
var suspendResult = this.h9_1;
|
|
2574
|
+
$sm: do
|
|
2575
|
+
try {
|
|
2576
|
+
var tmp = this.f9_1;
|
|
2577
|
+
switch (tmp) {
|
|
2578
|
+
case 0:
|
|
2579
|
+
this.g9_1 = 2;
|
|
2580
|
+
this.w5r_1 = this.q5r_1.gameId;
|
|
2581
|
+
this.f9_1 = 1;
|
|
2582
|
+
suspendResult = getPreparedOrRequestPool(this.o5r_1, this.w5r_1, this.r5r_1, this.s5r_1, this.p5r_1, this.t5r_1, this.u5r_1, this.v5r_1, this);
|
|
2583
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2584
|
+
return suspendResult;
|
|
2585
|
+
}
|
|
2586
|
+
|
|
2587
|
+
continue $sm;
|
|
2588
|
+
case 1:
|
|
2589
|
+
var randomPoolValue = suspendResult;
|
|
2590
|
+
var this_0 = this.o5r_1.d5s_1;
|
|
2591
|
+
var key = randomPoolValue.w5q_1.h5m_1;
|
|
2592
|
+
this_0.k2(key, randomPoolValue);
|
|
2593
|
+
var cardDeckData = randomPoolValue.e5r(this.q5r_1.gameId);
|
|
2594
|
+
var tmp21_poolId = randomPoolValue.w5q_1.h5m_1;
|
|
2595
|
+
var tmp22_signature = randomPoolValue.w5q_1.i5m_1;
|
|
2596
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.o5r_1, tmp21_poolId, tmp22_signature, cardDeckData, this.q5r_1);
|
|
2597
|
+
var this_1 = this.o5r_1.e5s_1;
|
|
2598
|
+
var key_0 = this.q5r_1.gameId;
|
|
2633
2599
|
this_1.k2(key_0, cardDecksRecord);
|
|
2634
2600
|
return cardDeckData;
|
|
2635
2601
|
case 2:
|
|
@@ -2646,17 +2612,18 @@
|
|
|
2646
2612
|
}
|
|
2647
2613
|
while (true);
|
|
2648
2614
|
};
|
|
2649
|
-
function $
|
|
2615
|
+
function $getPreparedOrRequestPoolCOROUTINE$5(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2650
2616
|
CoroutineImpl.call(this, resultContinuation);
|
|
2651
|
-
this.
|
|
2652
|
-
this.
|
|
2653
|
-
this.
|
|
2654
|
-
this.
|
|
2655
|
-
this.
|
|
2656
|
-
this.
|
|
2657
|
-
this.
|
|
2658
|
-
|
|
2659
|
-
|
|
2617
|
+
this.p5s_1 = _this__u8e3s4;
|
|
2618
|
+
this.q5s_1 = gameId;
|
|
2619
|
+
this.r5s_1 = min;
|
|
2620
|
+
this.s5s_1 = max;
|
|
2621
|
+
this.t5s_1 = minRoundsCount;
|
|
2622
|
+
this.u5s_1 = cardsCount;
|
|
2623
|
+
this.v5s_1 = signed;
|
|
2624
|
+
this.w5s_1 = requestDurationWarnMillis;
|
|
2625
|
+
}
|
|
2626
|
+
protoOf($getPreparedOrRequestPoolCOROUTINE$5).n9 = function () {
|
|
2660
2627
|
var suspendResult = this.h9_1;
|
|
2661
2628
|
$sm: do
|
|
2662
2629
|
try {
|
|
@@ -2665,41 +2632,41 @@
|
|
|
2665
2632
|
case 0:
|
|
2666
2633
|
this.g9_1 = 2;
|
|
2667
2634
|
var tmp_0 = this;
|
|
2668
|
-
var this_0 = this.
|
|
2635
|
+
var this_0 = this.p5s_1.d5s_1;
|
|
2669
2636
|
var destination = LinkedHashMap_init_$Create$();
|
|
2670
2637
|
var tmp0_iterator = this_0.s().j();
|
|
2671
2638
|
while (tmp0_iterator.k()) {
|
|
2672
2639
|
var element = tmp0_iterator.l();
|
|
2673
|
-
var this_1 = element.u().
|
|
2674
|
-
var key = this.
|
|
2640
|
+
var this_1 = element.u().x5q_1;
|
|
2641
|
+
var key = this.q5s_1;
|
|
2675
2642
|
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).f2(key)) {
|
|
2676
2643
|
destination.k2(element.t(), element.u());
|
|
2677
2644
|
}
|
|
2678
2645
|
}
|
|
2679
2646
|
|
|
2680
|
-
tmp_0.
|
|
2681
|
-
if (!(this.
|
|
2682
|
-
return this.
|
|
2647
|
+
tmp_0.x5s_1 = firstOrNull(destination.s());
|
|
2648
|
+
if (!(this.x5s_1 == null)) {
|
|
2649
|
+
return this.x5s_1.u().d5r(this.q5s_1);
|
|
2683
2650
|
}
|
|
2684
2651
|
|
|
2685
2652
|
var tmp_1 = this;
|
|
2686
|
-
var this_2 = this.
|
|
2653
|
+
var this_2 = this.p5s_1.d5s_1;
|
|
2687
2654
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2688
2655
|
var tmp0_iterator_0 = this_2.s().j();
|
|
2689
2656
|
while (tmp0_iterator_0.k()) {
|
|
2690
2657
|
var element_0 = tmp0_iterator_0.l();
|
|
2691
|
-
if (element_0.u().
|
|
2658
|
+
if (element_0.u().a5r(this.t5s_1)) {
|
|
2692
2659
|
destination_0.k2(element_0.t(), element_0.u());
|
|
2693
2660
|
}
|
|
2694
2661
|
}
|
|
2695
2662
|
|
|
2696
|
-
tmp_1.
|
|
2697
|
-
if (!(this.
|
|
2698
|
-
return this.
|
|
2663
|
+
tmp_1.y5s_1 = firstOrNull(destination_0.s());
|
|
2664
|
+
if (!(this.y5s_1 == null)) {
|
|
2665
|
+
return this.y5s_1.u().b5r(this.q5s_1, this.t5s_1, this.p5s_1.x5r_1.thresholdForUsedPool);
|
|
2699
2666
|
}
|
|
2700
2667
|
|
|
2701
2668
|
this.f9_1 = 1;
|
|
2702
|
-
suspendResult =
|
|
2669
|
+
suspendResult = requestNewPool(this.p5s_1, this.r5s_1, this.s5s_1, this.u5s_1, this.v5s_1, this.w5s_1, this);
|
|
2703
2670
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2704
2671
|
return suspendResult;
|
|
2705
2672
|
}
|
|
@@ -2707,7 +2674,7 @@
|
|
|
2707
2674
|
continue $sm;
|
|
2708
2675
|
case 1:
|
|
2709
2676
|
var cardDecks = suspendResult;
|
|
2710
|
-
return cardDecks.
|
|
2677
|
+
return cardDecks.b5r(this.q5s_1, this.t5s_1, this.p5s_1.x5r_1.thresholdForUsedPool);
|
|
2711
2678
|
case 2:
|
|
2712
2679
|
throw this.i9_1;
|
|
2713
2680
|
}
|
|
@@ -2723,7 +2690,7 @@
|
|
|
2723
2690
|
while (true);
|
|
2724
2691
|
};
|
|
2725
2692
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2726
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2693
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().f10_1 : dispatcher;
|
|
2727
2694
|
var tmp;
|
|
2728
2695
|
if (idsProvider === VOID) {
|
|
2729
2696
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2731,86 +2698,92 @@
|
|
|
2731
2698
|
tmp = idsProvider;
|
|
2732
2699
|
}
|
|
2733
2700
|
idsProvider = tmp;
|
|
2734
|
-
this.
|
|
2735
|
-
this.
|
|
2736
|
-
this.
|
|
2737
|
-
this.
|
|
2738
|
-
this.
|
|
2739
|
-
this.
|
|
2701
|
+
this.x5r_1 = params;
|
|
2702
|
+
this.y5r_1 = randomOrgApiService;
|
|
2703
|
+
this.z5r_1 = logger;
|
|
2704
|
+
this.a5s_1 = dispatcher;
|
|
2705
|
+
this.b5s_1 = idsProvider;
|
|
2706
|
+
this.c5s_1 = Mutex();
|
|
2740
2707
|
var tmp_0 = this;
|
|
2741
2708
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2742
|
-
tmp_0.
|
|
2709
|
+
tmp_0.d5s_1 = LinkedHashMap_init_$Create$();
|
|
2743
2710
|
var tmp_1 = this;
|
|
2744
2711
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2745
|
-
tmp_1.
|
|
2746
|
-
this.
|
|
2747
|
-
this.
|
|
2712
|
+
tmp_1.e5s_1 = LinkedHashMap_init_$Create$();
|
|
2713
|
+
this.f5s_1 = null;
|
|
2714
|
+
this.g5s_1 = 0;
|
|
2748
2715
|
}
|
|
2749
|
-
protoOf(RandomPoolProviderImpl).
|
|
2750
|
-
var tmp = withContext(this.
|
|
2716
|
+
protoOf(RandomPoolProviderImpl).s5q = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2717
|
+
var tmp = withContext(this.a5s_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2751
2718
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2752
2719
|
return tmp;
|
|
2753
2720
|
return tmp;
|
|
2754
2721
|
};
|
|
2755
|
-
protoOf(RandomPoolProviderImpl).
|
|
2756
|
-
|
|
2722
|
+
protoOf(RandomPoolProviderImpl).u5q = function (min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2723
|
+
var tmp = new $prefetchCardDecksCOROUTINE$3(this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2724
|
+
tmp.h9_1 = Unit_instance;
|
|
2725
|
+
tmp.i9_1 = null;
|
|
2726
|
+
return tmp.n9();
|
|
2727
|
+
};
|
|
2728
|
+
protoOf(RandomPoolProviderImpl).i5v = function (gameId) {
|
|
2729
|
+
return this.e5s_1.h2(gameId);
|
|
2757
2730
|
};
|
|
2758
2731
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2759
|
-
return this.
|
|
2732
|
+
return this.i5v(gameId);
|
|
2760
2733
|
};
|
|
2761
|
-
protoOf(RandomPoolProviderImpl).
|
|
2762
|
-
return this.
|
|
2734
|
+
protoOf(RandomPoolProviderImpl).j5v = function (id) {
|
|
2735
|
+
return this.d5s_1.h2(id);
|
|
2763
2736
|
};
|
|
2764
2737
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2765
|
-
return this.
|
|
2738
|
+
return this.j5v(id);
|
|
2766
2739
|
};
|
|
2767
|
-
protoOf(RandomPoolProviderImpl).
|
|
2768
|
-
return this.
|
|
2740
|
+
protoOf(RandomPoolProviderImpl).k5v = function () {
|
|
2741
|
+
return this.d5s_1.m();
|
|
2769
2742
|
};
|
|
2770
2743
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2771
|
-
return this.
|
|
2744
|
+
return this.k5v();
|
|
2772
2745
|
};
|
|
2773
|
-
protoOf(RandomPoolProviderImpl).
|
|
2774
|
-
var gameCardDecksRecord = this.
|
|
2746
|
+
protoOf(RandomPoolProviderImpl).v5q = function (gameId) {
|
|
2747
|
+
var gameCardDecksRecord = this.e5s_1.h2(gameId);
|
|
2775
2748
|
if (!(gameCardDecksRecord == null)) {
|
|
2776
|
-
var randomPoolValue = this.
|
|
2749
|
+
var randomPoolValue = this.d5s_1.h2(gameCardDecksRecord.poolId);
|
|
2777
2750
|
if (!(randomPoolValue == null)) {
|
|
2778
2751
|
// Inline function 'kotlin.apply' call
|
|
2779
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2752
|
+
var this_0 = toMutableMap(randomPoolValue.x5q_1);
|
|
2780
2753
|
// Inline function 'kotlin.contracts.contract' call
|
|
2781
2754
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolProviderImpl.setGameFinished.<anonymous>' call
|
|
2782
2755
|
this_0.l2(gameId);
|
|
2783
|
-
var newPoolValue = randomPoolValue.
|
|
2784
|
-
if (newPoolValue.
|
|
2785
|
-
this.
|
|
2756
|
+
var newPoolValue = randomPoolValue.c5r(VOID, toMap(this_0));
|
|
2757
|
+
if (newPoolValue.x5q_1.p()) {
|
|
2758
|
+
this.d5s_1.l2(gameCardDecksRecord.poolId);
|
|
2786
2759
|
} else {
|
|
2787
2760
|
// Inline function 'kotlin.collections.set' call
|
|
2788
|
-
var this_1 = this.
|
|
2761
|
+
var this_1 = this.d5s_1;
|
|
2789
2762
|
var key = gameCardDecksRecord.poolId;
|
|
2790
2763
|
this_1.k2(key, newPoolValue);
|
|
2791
2764
|
}
|
|
2792
2765
|
}
|
|
2793
2766
|
}
|
|
2794
|
-
this.
|
|
2767
|
+
this.e5s_1.l2(gameId);
|
|
2795
2768
|
};
|
|
2796
2769
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2797
2770
|
return function ($this$defaultRequest) {
|
|
2798
2771
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2799
|
-
$this$defaultRequest.
|
|
2772
|
+
$this$defaultRequest.l34($url);
|
|
2800
2773
|
return Unit_instance;
|
|
2801
2774
|
};
|
|
2802
2775
|
}
|
|
2803
2776
|
function ApiCommonConfigs$setupLogging$1$1($externalLogger) {
|
|
2804
|
-
this.
|
|
2777
|
+
this.l5v_1 = $externalLogger;
|
|
2805
2778
|
}
|
|
2806
|
-
protoOf(ApiCommonConfigs$setupLogging$1$1).
|
|
2807
|
-
this.
|
|
2779
|
+
protoOf(ApiCommonConfigs$setupLogging$1$1).v3u = function (message) {
|
|
2780
|
+
this.l5v_1(message);
|
|
2808
2781
|
};
|
|
2809
2782
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2810
2783
|
return function ($this$install) {
|
|
2811
|
-
$this$install.
|
|
2812
|
-
$this$install.
|
|
2813
|
-
$this$install.
|
|
2784
|
+
$this$install.l3w(get_DEFAULT(Companion_instance_0));
|
|
2785
|
+
$this$install.k3w_1 = $config.o5v_1;
|
|
2786
|
+
$this$install.l3w(new ApiCommonConfigs$setupLogging$1$1($externalLogger));
|
|
2814
2787
|
return Unit_instance;
|
|
2815
2788
|
};
|
|
2816
2789
|
}
|
|
@@ -2822,32 +2795,32 @@
|
|
|
2822
2795
|
}
|
|
2823
2796
|
function ApiCommonConfigs() {
|
|
2824
2797
|
}
|
|
2825
|
-
protoOf(ApiCommonConfigs).
|
|
2826
|
-
_this__u8e3s4.
|
|
2827
|
-
this.
|
|
2828
|
-
this.
|
|
2829
|
-
this.
|
|
2798
|
+
protoOf(ApiCommonConfigs).q5v = function (_this__u8e3s4, config, externalLogger) {
|
|
2799
|
+
_this__u8e3s4.x2v_1 = true;
|
|
2800
|
+
this.r5v(_this__u8e3s4, config.m5v_1);
|
|
2801
|
+
this.s5v(_this__u8e3s4, config.p5v_1);
|
|
2802
|
+
this.t5v(_this__u8e3s4, config, externalLogger);
|
|
2830
2803
|
};
|
|
2831
|
-
protoOf(ApiCommonConfigs).
|
|
2804
|
+
protoOf(ApiCommonConfigs).r5v = function (_this__u8e3s4, url) {
|
|
2832
2805
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2833
2806
|
};
|
|
2834
|
-
protoOf(ApiCommonConfigs).
|
|
2807
|
+
protoOf(ApiCommonConfigs).t5v = function (_this__u8e3s4, config, externalLogger) {
|
|
2835
2808
|
var tmp = Companion_getInstance_1();
|
|
2836
|
-
_this__u8e3s4.
|
|
2809
|
+
_this__u8e3s4.s2w(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2837
2810
|
};
|
|
2838
|
-
protoOf(ApiCommonConfigs).
|
|
2811
|
+
protoOf(ApiCommonConfigs).s5v = function (_this__u8e3s4, json) {
|
|
2839
2812
|
var tmp = Plugin_getInstance();
|
|
2840
|
-
_this__u8e3s4.
|
|
2813
|
+
_this__u8e3s4.s2w(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2841
2814
|
};
|
|
2842
2815
|
var ApiCommonConfigs_instance;
|
|
2843
2816
|
function ApiCommonConfigs_getInstance() {
|
|
2844
2817
|
return ApiCommonConfigs_instance;
|
|
2845
2818
|
}
|
|
2846
2819
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2847
|
-
$this$Json.
|
|
2848
|
-
$this$Json.
|
|
2849
|
-
$this$Json.
|
|
2850
|
-
$this$Json.
|
|
2820
|
+
$this$Json.c4v_1 = true;
|
|
2821
|
+
$this$Json.b4v_1 = true;
|
|
2822
|
+
$this$Json.a4v_1 = true;
|
|
2823
|
+
$this$Json.z4u_1 = false;
|
|
2851
2824
|
return Unit_instance;
|
|
2852
2825
|
}
|
|
2853
2826
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2860,19 +2833,19 @@
|
|
|
2860
2833
|
tmp = json;
|
|
2861
2834
|
}
|
|
2862
2835
|
json = tmp;
|
|
2863
|
-
this.
|
|
2864
|
-
this.
|
|
2865
|
-
this.
|
|
2866
|
-
this.
|
|
2836
|
+
this.m5v_1 = baseUrl;
|
|
2837
|
+
this.n5v_1 = timeoutMillis;
|
|
2838
|
+
this.o5v_1 = loggingLevel;
|
|
2839
|
+
this.p5v_1 = json;
|
|
2867
2840
|
}
|
|
2868
2841
|
protoOf(HttpParams).toString = function () {
|
|
2869
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2842
|
+
return 'HttpParams(baseUrl=' + this.m5v_1 + ', timeoutMillis=' + this.n5v_1.toString() + ', loggingLevel=' + this.o5v_1.toString() + ', json=' + toString(this.p5v_1) + ')';
|
|
2870
2843
|
};
|
|
2871
2844
|
protoOf(HttpParams).hashCode = function () {
|
|
2872
|
-
var result = getStringHashCode(this.
|
|
2873
|
-
result = imul(result, 31) + this.
|
|
2874
|
-
result = imul(result, 31) + this.
|
|
2875
|
-
result = imul(result, 31) + hashCode(this.
|
|
2845
|
+
var result = getStringHashCode(this.m5v_1);
|
|
2846
|
+
result = imul(result, 31) + this.n5v_1.hashCode() | 0;
|
|
2847
|
+
result = imul(result, 31) + this.o5v_1.hashCode() | 0;
|
|
2848
|
+
result = imul(result, 31) + hashCode(this.p5v_1) | 0;
|
|
2876
2849
|
return result;
|
|
2877
2850
|
};
|
|
2878
2851
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2881,13 +2854,13 @@
|
|
|
2881
2854
|
if (!(other instanceof HttpParams))
|
|
2882
2855
|
return false;
|
|
2883
2856
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2884
|
-
if (!(this.
|
|
2857
|
+
if (!(this.m5v_1 === tmp0_other_with_cast.m5v_1))
|
|
2885
2858
|
return false;
|
|
2886
|
-
if (!this.
|
|
2859
|
+
if (!this.n5v_1.equals(tmp0_other_with_cast.n5v_1))
|
|
2887
2860
|
return false;
|
|
2888
|
-
if (!this.
|
|
2861
|
+
if (!this.o5v_1.equals(tmp0_other_with_cast.o5v_1))
|
|
2889
2862
|
return false;
|
|
2890
|
-
if (!equals(this.
|
|
2863
|
+
if (!equals(this.p5v_1, tmp0_other_with_cast.p5v_1))
|
|
2891
2864
|
return false;
|
|
2892
2865
|
return true;
|
|
2893
2866
|
};
|
|
@@ -2911,12 +2884,12 @@
|
|
|
2911
2884
|
}
|
|
2912
2885
|
function nextBytesCopyTo($this, bytes) {
|
|
2913
2886
|
try {
|
|
2914
|
-
$this.
|
|
2887
|
+
$this.v5v_1.t5l(bytes);
|
|
2915
2888
|
} catch ($p) {
|
|
2916
2889
|
if ($p instanceof SecRandomCopyException) {
|
|
2917
2890
|
var error = $p;
|
|
2918
|
-
$this.
|
|
2919
|
-
$this.
|
|
2891
|
+
$this.u5v_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2892
|
+
$this.w5v_1.tg(bytes);
|
|
2920
2893
|
return Unit_instance;
|
|
2921
2894
|
} else {
|
|
2922
2895
|
throw $p;
|
|
@@ -2942,9 +2915,9 @@
|
|
|
2942
2915
|
}
|
|
2943
2916
|
function SecureRandom_0(logger) {
|
|
2944
2917
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2945
|
-
this.
|
|
2946
|
-
this.
|
|
2947
|
-
this.
|
|
2918
|
+
this.u5v_1 = logger;
|
|
2919
|
+
this.v5v_1 = new SecureRandom();
|
|
2920
|
+
this.w5v_1 = Default_getInstance();
|
|
2948
2921
|
}
|
|
2949
2922
|
protoOf(SecureRandom_0).qg = function (from, until) {
|
|
2950
2923
|
checkRangeBounds(this, from, until);
|
|
@@ -2973,7 +2946,7 @@
|
|
|
2973
2946
|
}
|
|
2974
2947
|
}
|
|
2975
2948
|
};
|
|
2976
|
-
protoOf(SecureRandom_0).
|
|
2949
|
+
protoOf(SecureRandom_0).y5v = function () {
|
|
2977
2950
|
return !(nextBits(this, 1) === 0);
|
|
2978
2951
|
};
|
|
2979
2952
|
function CustomRandom() {
|
|
@@ -2996,7 +2969,7 @@
|
|
|
2996
2969
|
while (pile.m() > 0) {
|
|
2997
2970
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2998
2971
|
var a = pile.m();
|
|
2999
|
-
var b = 1 + random.
|
|
2972
|
+
var b = 1 + random.x5v(VOID, twentypc) | 0;
|
|
3000
2973
|
var cards = Math.min(a, b);
|
|
3001
2974
|
pile2.b2(0, take(pile, cards));
|
|
3002
2975
|
// Inline function 'kotlin.repeat' call
|
|
@@ -3031,11 +3004,11 @@
|
|
|
3031
3004
|
// Inline function 'games.raspberry.card_game.random.utils.random.riffle.<anonymous>' call
|
|
3032
3005
|
var mid = deck.m() / 2 | 0;
|
|
3033
3006
|
var tenpc = mid / 10 | 0;
|
|
3034
|
-
var cut = (mid - tenpc | 0) + random.
|
|
3007
|
+
var cut = (mid - tenpc | 0) + random.x5v(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
3035
3008
|
var deck1 = toMutableList(take(pile, cut));
|
|
3036
3009
|
var deck2 = toMutableList(drop(pile, cut));
|
|
3037
3010
|
pile.a2();
|
|
3038
|
-
var fromTop = random.
|
|
3011
|
+
var fromTop = random.y5v();
|
|
3039
3012
|
while (deck1.m() > 0 && deck2.m() > 0) {
|
|
3040
3013
|
if (fromTop) {
|
|
3041
3014
|
pile.e(deck1.e2(0));
|
|
@@ -3057,22 +3030,22 @@
|
|
|
3057
3030
|
}
|
|
3058
3031
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
3059
3032
|
return function ($this$install) {
|
|
3060
|
-
$this$install.
|
|
3061
|
-
$this$install.
|
|
3033
|
+
$this$install.j3g($config.n5v_1);
|
|
3034
|
+
$this$install.h3g($config.n5v_1);
|
|
3062
3035
|
return Unit_instance;
|
|
3063
3036
|
};
|
|
3064
3037
|
}
|
|
3065
3038
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
3066
3039
|
return function ($this$HttpClient) {
|
|
3067
3040
|
var tmp = Plugin_getInstance_0();
|
|
3068
|
-
$this$HttpClient.
|
|
3069
|
-
ApiCommonConfigs_instance.
|
|
3041
|
+
$this$HttpClient.s2w(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
3042
|
+
ApiCommonConfigs_instance.q5v($this$HttpClient, $config, $externalLogger);
|
|
3070
3043
|
return Unit_instance;
|
|
3071
3044
|
};
|
|
3072
3045
|
}
|
|
3073
3046
|
function HttpFactory() {
|
|
3074
3047
|
}
|
|
3075
|
-
protoOf(HttpFactory).
|
|
3048
|
+
protoOf(HttpFactory).a5w = function (config, externalLogger) {
|
|
3076
3049
|
var tmp = Js_instance;
|
|
3077
3050
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
3078
3051
|
};
|
|
@@ -3081,15 +3054,15 @@
|
|
|
3081
3054
|
return HttpFactory_instance;
|
|
3082
3055
|
}
|
|
3083
3056
|
//region block: post-declaration
|
|
3084
|
-
protoOf($serializer).
|
|
3085
|
-
protoOf($serializer_0).
|
|
3086
|
-
protoOf($serializer_2).
|
|
3087
|
-
protoOf($serializer_3).
|
|
3088
|
-
protoOf($serializer_5).
|
|
3089
|
-
protoOf($serializer_6).
|
|
3090
|
-
protoOf(RandomPoolProviderImpl).
|
|
3091
|
-
protoOf(SecureRandom_0).
|
|
3092
|
-
protoOf(SecureRandom_0).
|
|
3057
|
+
protoOf($serializer).a4g = typeParametersSerializers;
|
|
3058
|
+
protoOf($serializer_0).a4g = typeParametersSerializers;
|
|
3059
|
+
protoOf($serializer_2).a4g = typeParametersSerializers;
|
|
3060
|
+
protoOf($serializer_3).a4g = typeParametersSerializers;
|
|
3061
|
+
protoOf($serializer_5).a4g = typeParametersSerializers;
|
|
3062
|
+
protoOf($serializer_6).a4g = typeParametersSerializers;
|
|
3063
|
+
protoOf(RandomPoolProviderImpl).t5q = getCardDeck$default;
|
|
3064
|
+
protoOf(SecureRandom_0).x5v = nextInt$default;
|
|
3065
|
+
protoOf(SecureRandom_0).z5v = shuffle;
|
|
3093
3066
|
//endregion
|
|
3094
3067
|
//region block: init
|
|
3095
3068
|
Companion_instance_1 = new Companion();
|