raspberry_games_server_game_logic 1.8.386 → 1.8.388
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 +53 -53
- package/Kosi-Kodein-kodein-di.js +516 -516
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1389 -1389
- package/Logic_Debertz-core.js +1147 -1147
- package/Logic_Debertz-engine.js +11461 -11299
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.js +1087 -1076
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +4 -4
- package/kotlinx-coroutines-core.js +1285 -1241
- package/kotlinx-coroutines-core.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +123 -123
- package/ktor-ktor-client-core.js +1431 -1431
- package/ktor-ktor-client-logging.js +269 -269
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +595 -595
- package/ktor-ktor-io.js +1208 -1208
- package/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/ktor-ktor-serialization-kotlinx.js +129 -129
- package/ktor-ktor-serialization.js +64 -64
- package/ktor-ktor-utils.js +477 -477
- package/ktor-ktor-websockets.js +40 -40
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +157 -157
- package/raspberry-cardgame-lib-random.js +586 -586
- package/uuid.js +11 -11
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
121
121
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
122
122
|
var Result = kotlin_kotlin.$_$.ih;
|
|
123
|
-
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
123
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
|
|
124
124
|
var Companion_instance = kotlin_kotlin.$_$.a5;
|
|
125
125
|
var createFailure = kotlin_kotlin.$_$.ai;
|
|
126
126
|
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.t2;
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.q;
|
|
130
130
|
var firstOrNull = kotlin_kotlin.$_$.i7;
|
|
131
131
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
132
|
-
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.
|
|
132
|
+
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.d1;
|
|
133
133
|
var toMutableMap = kotlin_kotlin.$_$.p9;
|
|
134
134
|
var toMap = kotlin_kotlin.$_$.m9;
|
|
135
135
|
var emptyMap = kotlin_kotlin.$_$.e7;
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
205
205
|
signed = signed === VOID ? false : signed;
|
|
206
206
|
requestDurationWarnMillis = requestDurationWarnMillis === VOID ? new Long(3000, 0) : requestDurationWarnMillis;
|
|
207
|
-
return $super === VOID ? this.
|
|
207
|
+
return $super === VOID ? this.k58(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) : $super.k58.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
208
208
|
}
|
|
209
209
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7, 5]);
|
|
210
210
|
initMetadataForCompanion(Companion_9);
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
240
240
|
//endregion
|
|
241
241
|
function Companion() {
|
|
242
|
-
this.
|
|
242
|
+
this.w53_1 = 100001;
|
|
243
243
|
}
|
|
244
244
|
var Companion_instance_1;
|
|
245
245
|
function Companion_getInstance_2() {
|
|
@@ -250,16 +250,16 @@
|
|
|
250
250
|
cause = cause === VOID ? null : cause;
|
|
251
251
|
RuntimeException_init_$Init$(message, cause, this);
|
|
252
252
|
captureStack(this, RandomException);
|
|
253
|
-
this.
|
|
253
|
+
this.x53_1 = code;
|
|
254
254
|
}
|
|
255
255
|
function CardDecksRequestUserData(id, count) {
|
|
256
256
|
this.id = id;
|
|
257
257
|
this.count = count;
|
|
258
258
|
}
|
|
259
|
-
protoOf(CardDecksRequestUserData).
|
|
259
|
+
protoOf(CardDecksRequestUserData).y53 = function () {
|
|
260
260
|
return this.id;
|
|
261
261
|
};
|
|
262
|
-
protoOf(CardDecksRequestUserData).
|
|
262
|
+
protoOf(CardDecksRequestUserData).z53 = function () {
|
|
263
263
|
return this.count;
|
|
264
264
|
};
|
|
265
265
|
protoOf(CardDecksRequestUserData).ne = function () {
|
|
@@ -268,13 +268,13 @@
|
|
|
268
268
|
protoOf(CardDecksRequestUserData).oe = function () {
|
|
269
269
|
return this.count;
|
|
270
270
|
};
|
|
271
|
-
protoOf(CardDecksRequestUserData).
|
|
271
|
+
protoOf(CardDecksRequestUserData).a54 = function (id, count) {
|
|
272
272
|
return new CardDecksRequestUserData(id, count);
|
|
273
273
|
};
|
|
274
274
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
275
275
|
id = id === VOID ? this.id : id;
|
|
276
276
|
count = count === VOID ? this.count : count;
|
|
277
|
-
return $super === VOID ? this.
|
|
277
|
+
return $super === VOID ? this.a54(id, count) : $super.a54.call(this, id, count);
|
|
278
278
|
};
|
|
279
279
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
280
280
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -300,10 +300,10 @@
|
|
|
300
300
|
this.players = players;
|
|
301
301
|
this.gameId = gameId;
|
|
302
302
|
}
|
|
303
|
-
protoOf(CardDeckRequestUserData).
|
|
303
|
+
protoOf(CardDeckRequestUserData).b54 = function () {
|
|
304
304
|
return this.players;
|
|
305
305
|
};
|
|
306
|
-
protoOf(CardDeckRequestUserData).
|
|
306
|
+
protoOf(CardDeckRequestUserData).c54 = function () {
|
|
307
307
|
return this.gameId;
|
|
308
308
|
};
|
|
309
309
|
protoOf(CardDeckRequestUserData).ne = function () {
|
|
@@ -312,13 +312,13 @@
|
|
|
312
312
|
protoOf(CardDeckRequestUserData).oe = function () {
|
|
313
313
|
return this.gameId;
|
|
314
314
|
};
|
|
315
|
-
protoOf(CardDeckRequestUserData).
|
|
315
|
+
protoOf(CardDeckRequestUserData).d54 = function (players, gameId) {
|
|
316
316
|
return new CardDeckRequestUserData(players, gameId);
|
|
317
317
|
};
|
|
318
318
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
319
319
|
players = players === VOID ? this.players : players;
|
|
320
320
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
321
|
-
return $super === VOID ? this.
|
|
321
|
+
return $super === VOID ? this.d54(players, gameId) : $super.d54.call(this, players, gameId);
|
|
322
322
|
};
|
|
323
323
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
324
324
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -344,7 +344,7 @@
|
|
|
344
344
|
this.id = id;
|
|
345
345
|
this.name = name;
|
|
346
346
|
}
|
|
347
|
-
protoOf(UserInfoData).
|
|
347
|
+
protoOf(UserInfoData).y53 = function () {
|
|
348
348
|
return this.id;
|
|
349
349
|
};
|
|
350
350
|
protoOf(UserInfoData).q2 = function () {
|
|
@@ -356,13 +356,13 @@
|
|
|
356
356
|
protoOf(UserInfoData).oe = function () {
|
|
357
357
|
return this.name;
|
|
358
358
|
};
|
|
359
|
-
protoOf(UserInfoData).
|
|
359
|
+
protoOf(UserInfoData).e54 = function (id, name) {
|
|
360
360
|
return new UserInfoData(id, name);
|
|
361
361
|
};
|
|
362
362
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
363
363
|
id = id === VOID ? this.id : id;
|
|
364
364
|
name = name === VOID ? this.name : name;
|
|
365
|
-
return $super === VOID ? this.
|
|
365
|
+
return $super === VOID ? this.e54(id, name) : $super.e54.call(this, id, name);
|
|
366
366
|
};
|
|
367
367
|
protoOf(UserInfoData).toString = function () {
|
|
368
368
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -385,19 +385,19 @@
|
|
|
385
385
|
return true;
|
|
386
386
|
};
|
|
387
387
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
388
|
-
this.
|
|
389
|
-
this.
|
|
390
|
-
this.
|
|
391
|
-
this.
|
|
388
|
+
this.f54_1 = cardDecks;
|
|
389
|
+
this.g54_1 = responseText;
|
|
390
|
+
this.h54_1 = id;
|
|
391
|
+
this.i54_1 = signature;
|
|
392
392
|
}
|
|
393
393
|
protoOf(CardDeckResult).toString = function () {
|
|
394
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
394
|
+
return 'CardDeckResult(cardDecks=' + toString(this.f54_1) + ', responseText=' + this.g54_1 + ', id=' + this.h54_1 + ', signature=' + this.i54_1 + ')';
|
|
395
395
|
};
|
|
396
396
|
protoOf(CardDeckResult).hashCode = function () {
|
|
397
|
-
var result = hashCode(this.
|
|
398
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
399
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
400
|
-
result = imul(result, 31) + (this.
|
|
397
|
+
var result = hashCode(this.f54_1);
|
|
398
|
+
result = imul(result, 31) + getStringHashCode(this.g54_1) | 0;
|
|
399
|
+
result = imul(result, 31) + getStringHashCode(this.h54_1) | 0;
|
|
400
|
+
result = imul(result, 31) + (this.i54_1 == null ? 0 : getStringHashCode(this.i54_1)) | 0;
|
|
401
401
|
return result;
|
|
402
402
|
};
|
|
403
403
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -406,13 +406,13 @@
|
|
|
406
406
|
if (!(other instanceof CardDeckResult))
|
|
407
407
|
return false;
|
|
408
408
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
409
|
-
if (!equals(this.
|
|
409
|
+
if (!equals(this.f54_1, tmp0_other_with_cast.f54_1))
|
|
410
410
|
return false;
|
|
411
|
-
if (!(this.
|
|
411
|
+
if (!(this.g54_1 === tmp0_other_with_cast.g54_1))
|
|
412
412
|
return false;
|
|
413
|
-
if (!(this.
|
|
413
|
+
if (!(this.h54_1 === tmp0_other_with_cast.h54_1))
|
|
414
414
|
return false;
|
|
415
|
-
if (!(this.
|
|
415
|
+
if (!(this.i54_1 == tmp0_other_with_cast.i54_1))
|
|
416
416
|
return false;
|
|
417
417
|
return true;
|
|
418
418
|
};
|
|
@@ -435,16 +435,16 @@
|
|
|
435
435
|
this.userData = userData;
|
|
436
436
|
this.rounds = rounds;
|
|
437
437
|
}
|
|
438
|
-
protoOf(GameCardDecksRecord).
|
|
438
|
+
protoOf(GameCardDecksRecord).j54 = function () {
|
|
439
439
|
return this.poolId;
|
|
440
440
|
};
|
|
441
|
-
protoOf(GameCardDecksRecord).
|
|
441
|
+
protoOf(GameCardDecksRecord).k54 = function () {
|
|
442
442
|
return this.signature;
|
|
443
443
|
};
|
|
444
|
-
protoOf(GameCardDecksRecord).
|
|
444
|
+
protoOf(GameCardDecksRecord).l54 = function () {
|
|
445
445
|
return this.userData;
|
|
446
446
|
};
|
|
447
|
-
protoOf(GameCardDecksRecord).
|
|
447
|
+
protoOf(GameCardDecksRecord).m54 = function () {
|
|
448
448
|
return this.rounds;
|
|
449
449
|
};
|
|
450
450
|
protoOf(GameCardDecksRecord).ne = function () {
|
|
@@ -456,10 +456,10 @@
|
|
|
456
456
|
protoOf(GameCardDecksRecord).xl = function () {
|
|
457
457
|
return this.userData;
|
|
458
458
|
};
|
|
459
|
-
protoOf(GameCardDecksRecord).
|
|
459
|
+
protoOf(GameCardDecksRecord).n54 = function () {
|
|
460
460
|
return this.rounds;
|
|
461
461
|
};
|
|
462
|
-
protoOf(GameCardDecksRecord).
|
|
462
|
+
protoOf(GameCardDecksRecord).o54 = function (poolId, signature, userData, rounds) {
|
|
463
463
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
464
464
|
};
|
|
465
465
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
signature = signature === VOID ? this.signature : signature;
|
|
468
468
|
userData = userData === VOID ? this.userData : userData;
|
|
469
469
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
470
|
-
return $super === VOID ? this.
|
|
470
|
+
return $super === VOID ? this.o54(poolId, signature, userData, rounds) : $super.o54.call(this, poolId, signature, userData, rounds);
|
|
471
471
|
};
|
|
472
472
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
473
473
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -499,10 +499,10 @@
|
|
|
499
499
|
this.cardDeckIndex = cardDeckIndex;
|
|
500
500
|
this.cards = cards;
|
|
501
501
|
}
|
|
502
|
-
protoOf(GameCardDeckData).
|
|
502
|
+
protoOf(GameCardDeckData).p54 = function () {
|
|
503
503
|
return this.cardDeckIndex;
|
|
504
504
|
};
|
|
505
|
-
protoOf(GameCardDeckData).
|
|
505
|
+
protoOf(GameCardDeckData).q54 = function () {
|
|
506
506
|
return this.cards;
|
|
507
507
|
};
|
|
508
508
|
protoOf(GameCardDeckData).ne = function () {
|
|
@@ -511,13 +511,13 @@
|
|
|
511
511
|
protoOf(GameCardDeckData).oe = function () {
|
|
512
512
|
return this.cards;
|
|
513
513
|
};
|
|
514
|
-
protoOf(GameCardDeckData).
|
|
514
|
+
protoOf(GameCardDeckData).r54 = function (cardDeckIndex, cards) {
|
|
515
515
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
516
516
|
};
|
|
517
517
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
518
518
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
519
519
|
cards = cards === VOID ? this.cards : cards;
|
|
520
|
-
return $super === VOID ? this.
|
|
520
|
+
return $super === VOID ? this.r54(cardDeckIndex, cards) : $super.r54.call(this, cardDeckIndex, cards);
|
|
521
521
|
};
|
|
522
522
|
protoOf(GameCardDeckData).toString = function () {
|
|
523
523
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -544,10 +544,10 @@
|
|
|
544
544
|
this.baseUrl = baseUrl;
|
|
545
545
|
this.timeoutMillis = timeoutMillis;
|
|
546
546
|
}
|
|
547
|
-
protoOf(HttpConfig).
|
|
547
|
+
protoOf(HttpConfig).s54 = function () {
|
|
548
548
|
return this.baseUrl;
|
|
549
549
|
};
|
|
550
|
-
protoOf(HttpConfig).
|
|
550
|
+
protoOf(HttpConfig).t54 = function () {
|
|
551
551
|
return this.timeoutMillis;
|
|
552
552
|
};
|
|
553
553
|
protoOf(HttpConfig).ne = function () {
|
|
@@ -556,13 +556,13 @@
|
|
|
556
556
|
protoOf(HttpConfig).oe = function () {
|
|
557
557
|
return this.timeoutMillis;
|
|
558
558
|
};
|
|
559
|
-
protoOf(HttpConfig).
|
|
559
|
+
protoOf(HttpConfig).a54 = function (baseUrl, timeoutMillis) {
|
|
560
560
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
561
561
|
};
|
|
562
562
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
563
563
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
564
564
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
565
|
-
return $super === VOID ? this.
|
|
565
|
+
return $super === VOID ? this.a54(baseUrl, timeoutMillis) : $super.a54.call(this, baseUrl, timeoutMillis);
|
|
566
566
|
};
|
|
567
567
|
protoOf(HttpConfig).toString = function () {
|
|
568
568
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -597,16 +597,16 @@
|
|
|
597
597
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
598
598
|
this.httpConfig = httpConfig;
|
|
599
599
|
}
|
|
600
|
-
protoOf(RandomOrgConfig).
|
|
600
|
+
protoOf(RandomOrgConfig).u54 = function () {
|
|
601
601
|
return this.apiKey;
|
|
602
602
|
};
|
|
603
|
-
protoOf(RandomOrgConfig).
|
|
603
|
+
protoOf(RandomOrgConfig).v54 = function () {
|
|
604
604
|
return this.poolSize;
|
|
605
605
|
};
|
|
606
|
-
protoOf(RandomOrgConfig).
|
|
606
|
+
protoOf(RandomOrgConfig).w54 = function () {
|
|
607
607
|
return this.thresholdForUsedPool;
|
|
608
608
|
};
|
|
609
|
-
protoOf(RandomOrgConfig).
|
|
609
|
+
protoOf(RandomOrgConfig).x54 = function () {
|
|
610
610
|
return this.httpConfig;
|
|
611
611
|
};
|
|
612
612
|
protoOf(RandomOrgConfig).ne = function () {
|
|
@@ -618,10 +618,10 @@
|
|
|
618
618
|
protoOf(RandomOrgConfig).xl = function () {
|
|
619
619
|
return this.thresholdForUsedPool;
|
|
620
620
|
};
|
|
621
|
-
protoOf(RandomOrgConfig).
|
|
621
|
+
protoOf(RandomOrgConfig).n54 = function () {
|
|
622
622
|
return this.httpConfig;
|
|
623
623
|
};
|
|
624
|
-
protoOf(RandomOrgConfig).
|
|
624
|
+
protoOf(RandomOrgConfig).y54 = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
625
625
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
626
626
|
};
|
|
627
627
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -629,7 +629,7 @@
|
|
|
629
629
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
630
630
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
631
631
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
632
|
-
return $super === VOID ? this.
|
|
632
|
+
return $super === VOID ? this.y54(apiKey, poolSize, thresholdForUsedPool, httpConfig) : $super.y54.call(this, apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
633
633
|
};
|
|
634
634
|
protoOf(RandomOrgConfig).toString = function () {
|
|
635
635
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -668,20 +668,20 @@
|
|
|
668
668
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
669
669
|
tmp0_serialDesc.gz('jsonrpc', false);
|
|
670
670
|
tmp0_serialDesc.gz('error', false);
|
|
671
|
-
this.
|
|
671
|
+
this.z54_1 = tmp0_serialDesc;
|
|
672
672
|
}
|
|
673
|
-
protoOf($serializer).
|
|
674
|
-
var tmp0_desc = this.
|
|
673
|
+
protoOf($serializer).a55 = function (encoder, value) {
|
|
674
|
+
var tmp0_desc = this.z54_1;
|
|
675
675
|
var tmp1_output = encoder.or(tmp0_desc);
|
|
676
|
-
tmp1_output.dt(tmp0_desc, 0, value.
|
|
677
|
-
tmp1_output.ht(tmp0_desc, 1, $serializer_getInstance_0(), value.
|
|
676
|
+
tmp1_output.dt(tmp0_desc, 0, value.b55_1);
|
|
677
|
+
tmp1_output.ht(tmp0_desc, 1, $serializer_getInstance_0(), value.c55_1);
|
|
678
678
|
tmp1_output.pr(tmp0_desc);
|
|
679
679
|
};
|
|
680
680
|
protoOf($serializer).co = function (encoder, value) {
|
|
681
|
-
return this.
|
|
681
|
+
return this.a55(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
682
682
|
};
|
|
683
683
|
protoOf($serializer).do = function (decoder) {
|
|
684
|
-
var tmp0_desc = this.
|
|
684
|
+
var tmp0_desc = this.z54_1;
|
|
685
685
|
var tmp1_flag = true;
|
|
686
686
|
var tmp2_index = 0;
|
|
687
687
|
var tmp3_bitMask0 = 0;
|
|
@@ -716,7 +716,7 @@
|
|
|
716
716
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
717
717
|
};
|
|
718
718
|
protoOf($serializer).bo = function () {
|
|
719
|
-
return this.
|
|
719
|
+
return this.z54_1;
|
|
720
720
|
};
|
|
721
721
|
protoOf($serializer).vz = function () {
|
|
722
722
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -732,25 +732,25 @@
|
|
|
732
732
|
}
|
|
733
733
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
734
734
|
if (!(3 === (3 & seen0))) {
|
|
735
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
735
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().z54_1);
|
|
736
736
|
}
|
|
737
|
-
$this.
|
|
738
|
-
$this.
|
|
737
|
+
$this.b55_1 = jsonrpc;
|
|
738
|
+
$this.c55_1 = error;
|
|
739
739
|
return $this;
|
|
740
740
|
}
|
|
741
741
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
742
742
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
743
743
|
}
|
|
744
744
|
function ErrorResponseDto(jsonrpc, error) {
|
|
745
|
-
this.
|
|
746
|
-
this.
|
|
745
|
+
this.b55_1 = jsonrpc;
|
|
746
|
+
this.c55_1 = error;
|
|
747
747
|
}
|
|
748
748
|
protoOf(ErrorResponseDto).toString = function () {
|
|
749
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
749
|
+
return 'ErrorResponseDto(jsonrpc=' + this.b55_1 + ', error=' + toString_0(this.c55_1) + ')';
|
|
750
750
|
};
|
|
751
751
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
752
|
-
var result = getStringHashCode(this.
|
|
753
|
-
result = imul(result, 31) + (this.
|
|
752
|
+
var result = getStringHashCode(this.b55_1);
|
|
753
|
+
result = imul(result, 31) + (this.c55_1 == null ? 0 : this.c55_1.hashCode()) | 0;
|
|
754
754
|
return result;
|
|
755
755
|
};
|
|
756
756
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -759,9 +759,9 @@
|
|
|
759
759
|
if (!(other instanceof ErrorResponseDto))
|
|
760
760
|
return false;
|
|
761
761
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
762
|
-
if (!(this.
|
|
762
|
+
if (!(this.b55_1 === tmp0_other_with_cast.b55_1))
|
|
763
763
|
return false;
|
|
764
|
-
if (!equals(this.
|
|
764
|
+
if (!equals(this.c55_1, tmp0_other_with_cast.c55_1))
|
|
765
765
|
return false;
|
|
766
766
|
return true;
|
|
767
767
|
};
|
|
@@ -770,20 +770,20 @@
|
|
|
770
770
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
771
771
|
tmp0_serialDesc.gz('code', false);
|
|
772
772
|
tmp0_serialDesc.gz('message', false);
|
|
773
|
-
this.
|
|
773
|
+
this.d55_1 = tmp0_serialDesc;
|
|
774
774
|
}
|
|
775
|
-
protoOf($serializer_0).
|
|
776
|
-
var tmp0_desc = this.
|
|
775
|
+
protoOf($serializer_0).e55 = function (encoder, value) {
|
|
776
|
+
var tmp0_desc = this.d55_1;
|
|
777
777
|
var tmp1_output = encoder.or(tmp0_desc);
|
|
778
|
-
tmp1_output.ht(tmp0_desc, 0, IntSerializer_getInstance(), value.
|
|
779
|
-
tmp1_output.ht(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
778
|
+
tmp1_output.ht(tmp0_desc, 0, IntSerializer_getInstance(), value.f55_1);
|
|
779
|
+
tmp1_output.ht(tmp0_desc, 1, StringSerializer_getInstance(), value.g55_1);
|
|
780
780
|
tmp1_output.pr(tmp0_desc);
|
|
781
781
|
};
|
|
782
782
|
protoOf($serializer_0).co = function (encoder, value) {
|
|
783
|
-
return this.
|
|
783
|
+
return this.e55(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
784
784
|
};
|
|
785
785
|
protoOf($serializer_0).do = function (decoder) {
|
|
786
|
-
var tmp0_desc = this.
|
|
786
|
+
var tmp0_desc = this.d55_1;
|
|
787
787
|
var tmp1_flag = true;
|
|
788
788
|
var tmp2_index = 0;
|
|
789
789
|
var tmp3_bitMask0 = 0;
|
|
@@ -818,7 +818,7 @@
|
|
|
818
818
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
819
819
|
};
|
|
820
820
|
protoOf($serializer_0).bo = function () {
|
|
821
|
-
return this.
|
|
821
|
+
return this.d55_1;
|
|
822
822
|
};
|
|
823
823
|
protoOf($serializer_0).vz = function () {
|
|
824
824
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -834,10 +834,10 @@
|
|
|
834
834
|
}
|
|
835
835
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
836
836
|
if (!(3 === (3 & seen0))) {
|
|
837
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
837
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().d55_1);
|
|
838
838
|
}
|
|
839
|
-
$this.
|
|
840
|
-
$this.
|
|
839
|
+
$this.f55_1 = code;
|
|
840
|
+
$this.g55_1 = message;
|
|
841
841
|
return $this;
|
|
842
842
|
}
|
|
843
843
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -846,11 +846,11 @@
|
|
|
846
846
|
function ErrorDto() {
|
|
847
847
|
}
|
|
848
848
|
protoOf(ErrorDto).toString = function () {
|
|
849
|
-
return 'ErrorDto(code=' + this.
|
|
849
|
+
return 'ErrorDto(code=' + this.f55_1 + ', message=' + this.g55_1 + ')';
|
|
850
850
|
};
|
|
851
851
|
protoOf(ErrorDto).hashCode = function () {
|
|
852
|
-
var result = this.
|
|
853
|
-
result = imul(result, 31) + (this.
|
|
852
|
+
var result = this.f55_1 == null ? 0 : this.f55_1;
|
|
853
|
+
result = imul(result, 31) + (this.g55_1 == null ? 0 : getStringHashCode(this.g55_1)) | 0;
|
|
854
854
|
return result;
|
|
855
855
|
};
|
|
856
856
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -859,15 +859,15 @@
|
|
|
859
859
|
if (!(other instanceof ErrorDto))
|
|
860
860
|
return false;
|
|
861
861
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
862
|
-
if (!(this.
|
|
862
|
+
if (!(this.f55_1 == tmp0_other_with_cast.f55_1))
|
|
863
863
|
return false;
|
|
864
|
-
if (!(this.
|
|
864
|
+
if (!(this.g55_1 == tmp0_other_with_cast.g55_1))
|
|
865
865
|
return false;
|
|
866
866
|
return true;
|
|
867
867
|
};
|
|
868
868
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
869
869
|
$serializer_1.call($this);
|
|
870
|
-
$this.
|
|
870
|
+
$this.i55_1 = typeSerial0;
|
|
871
871
|
return $this;
|
|
872
872
|
}
|
|
873
873
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -880,13 +880,13 @@
|
|
|
880
880
|
tmp0_serialDesc.gz('method', false);
|
|
881
881
|
tmp0_serialDesc.gz('params', false);
|
|
882
882
|
tmp0_serialDesc.gz('id', false);
|
|
883
|
-
this.
|
|
883
|
+
this.j55_1 = tmp0_serialDesc;
|
|
884
884
|
}
|
|
885
|
-
protoOf(Companion_2).
|
|
885
|
+
protoOf(Companion_2).k55 = function (typeSerial0) {
|
|
886
886
|
return $serializer_init_$Create$(typeSerial0);
|
|
887
887
|
};
|
|
888
888
|
protoOf(Companion_2).g10 = function (typeParamsSerializers) {
|
|
889
|
-
return this.
|
|
889
|
+
return this.k55(typeParamsSerializers[0]);
|
|
890
890
|
};
|
|
891
891
|
var Companion_instance_4;
|
|
892
892
|
function Companion_getInstance_5() {
|
|
@@ -900,22 +900,22 @@
|
|
|
900
900
|
tmp0_serialDesc.gz('method', false);
|
|
901
901
|
tmp0_serialDesc.gz('params', false);
|
|
902
902
|
tmp0_serialDesc.gz('id', false);
|
|
903
|
-
this.
|
|
903
|
+
this.h55_1 = tmp0_serialDesc;
|
|
904
904
|
}
|
|
905
|
-
protoOf($serializer_1).
|
|
906
|
-
var tmp0_desc = this.
|
|
905
|
+
protoOf($serializer_1).l55 = function (encoder, value) {
|
|
906
|
+
var tmp0_desc = this.h55_1;
|
|
907
907
|
var tmp1_output = encoder.or(tmp0_desc);
|
|
908
|
-
tmp1_output.dt(tmp0_desc, 0, value.
|
|
909
|
-
tmp1_output.dt(tmp0_desc, 1, value.
|
|
910
|
-
tmp1_output.ft(tmp0_desc, 2, this.
|
|
911
|
-
tmp1_output.dt(tmp0_desc, 3, value.
|
|
908
|
+
tmp1_output.dt(tmp0_desc, 0, value.m55_1);
|
|
909
|
+
tmp1_output.dt(tmp0_desc, 1, value.n55_1);
|
|
910
|
+
tmp1_output.ft(tmp0_desc, 2, this.i55_1, value.o55_1);
|
|
911
|
+
tmp1_output.dt(tmp0_desc, 3, value.p55_1);
|
|
912
912
|
tmp1_output.pr(tmp0_desc);
|
|
913
913
|
};
|
|
914
914
|
protoOf($serializer_1).co = function (encoder, value) {
|
|
915
|
-
return this.
|
|
915
|
+
return this.l55(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
916
916
|
};
|
|
917
917
|
protoOf($serializer_1).do = function (decoder) {
|
|
918
|
-
var tmp0_desc = this.
|
|
918
|
+
var tmp0_desc = this.h55_1;
|
|
919
919
|
var tmp1_flag = true;
|
|
920
920
|
var tmp2_index = 0;
|
|
921
921
|
var tmp3_bitMask0 = 0;
|
|
@@ -929,7 +929,7 @@
|
|
|
929
929
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
930
930
|
tmp5_local1 = tmp8_input.yr(tmp0_desc, 1);
|
|
931
931
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
932
|
-
tmp6_local2 = tmp8_input.as(tmp0_desc, 2, this.
|
|
932
|
+
tmp6_local2 = tmp8_input.as(tmp0_desc, 2, this.i55_1, tmp6_local2);
|
|
933
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
934
934
|
tmp7_local3 = tmp8_input.yr(tmp0_desc, 3);
|
|
935
935
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
@@ -949,7 +949,7 @@
|
|
|
949
949
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
950
950
|
break;
|
|
951
951
|
case 2:
|
|
952
|
-
tmp6_local2 = tmp8_input.as(tmp0_desc, 2, this.
|
|
952
|
+
tmp6_local2 = tmp8_input.as(tmp0_desc, 2, this.i55_1, tmp6_local2);
|
|
953
953
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
954
954
|
break;
|
|
955
955
|
case 3:
|
|
@@ -964,28 +964,28 @@
|
|
|
964
964
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
965
965
|
};
|
|
966
966
|
protoOf($serializer_1).bo = function () {
|
|
967
|
-
return this.
|
|
967
|
+
return this.h55_1;
|
|
968
968
|
};
|
|
969
969
|
protoOf($serializer_1).vz = function () {
|
|
970
970
|
// Inline function 'kotlin.arrayOf' call
|
|
971
971
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
972
972
|
// Inline function 'kotlin.js.asDynamic' call
|
|
973
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
973
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.i55_1, StringSerializer_getInstance()];
|
|
974
974
|
};
|
|
975
975
|
protoOf($serializer_1).wz = function () {
|
|
976
976
|
// Inline function 'kotlin.arrayOf' call
|
|
977
977
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
978
978
|
// Inline function 'kotlin.js.asDynamic' call
|
|
979
|
-
return [this.
|
|
979
|
+
return [this.i55_1];
|
|
980
980
|
};
|
|
981
981
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
982
982
|
if (!(15 === (15 & seen0))) {
|
|
983
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
983
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().j55_1);
|
|
984
984
|
}
|
|
985
|
-
$this.
|
|
986
|
-
$this.
|
|
987
|
-
$this.
|
|
988
|
-
$this.
|
|
985
|
+
$this.m55_1 = jsonrpc;
|
|
986
|
+
$this.n55_1 = method;
|
|
987
|
+
$this.o55_1 = params;
|
|
988
|
+
$this.p55_1 = id;
|
|
989
989
|
return $this;
|
|
990
990
|
}
|
|
991
991
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -993,19 +993,19 @@
|
|
|
993
993
|
}
|
|
994
994
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
995
995
|
Companion_getInstance_5();
|
|
996
|
-
this.
|
|
997
|
-
this.
|
|
998
|
-
this.
|
|
999
|
-
this.
|
|
996
|
+
this.m55_1 = jsonrpc;
|
|
997
|
+
this.n55_1 = method;
|
|
998
|
+
this.o55_1 = params;
|
|
999
|
+
this.p55_1 = id;
|
|
1000
1000
|
}
|
|
1001
1001
|
protoOf(RandomRequestDto).toString = function () {
|
|
1002
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
1002
|
+
return 'RandomRequestDto(jsonrpc=' + this.m55_1 + ', method=' + this.n55_1 + ', params=' + toString(this.o55_1) + ', id=' + this.p55_1 + ')';
|
|
1003
1003
|
};
|
|
1004
1004
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
1005
|
-
var result = getStringHashCode(this.
|
|
1006
|
-
result = imul(result, 31) + getStringHashCode(this.l55_1) | 0;
|
|
1007
|
-
result = imul(result, 31) + hashCode(this.m55_1) | 0;
|
|
1005
|
+
var result = getStringHashCode(this.m55_1);
|
|
1008
1006
|
result = imul(result, 31) + getStringHashCode(this.n55_1) | 0;
|
|
1007
|
+
result = imul(result, 31) + hashCode(this.o55_1) | 0;
|
|
1008
|
+
result = imul(result, 31) + getStringHashCode(this.p55_1) | 0;
|
|
1009
1009
|
return result;
|
|
1010
1010
|
};
|
|
1011
1011
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1014,13 +1014,13 @@
|
|
|
1014
1014
|
if (!(other instanceof RandomRequestDto))
|
|
1015
1015
|
return false;
|
|
1016
1016
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1017
|
-
if (!(this.
|
|
1017
|
+
if (!(this.m55_1 === tmp0_other_with_cast.m55_1))
|
|
1018
1018
|
return false;
|
|
1019
|
-
if (!(this.
|
|
1019
|
+
if (!(this.n55_1 === tmp0_other_with_cast.n55_1))
|
|
1020
1020
|
return false;
|
|
1021
|
-
if (!equals(this.
|
|
1021
|
+
if (!equals(this.o55_1, tmp0_other_with_cast.o55_1))
|
|
1022
1022
|
return false;
|
|
1023
|
-
if (!(this.
|
|
1023
|
+
if (!(this.p55_1 === tmp0_other_with_cast.p55_1))
|
|
1024
1024
|
return false;
|
|
1025
1025
|
return true;
|
|
1026
1026
|
};
|
|
@@ -1034,7 +1034,7 @@
|
|
|
1034
1034
|
// Inline function 'kotlin.arrayOf' call
|
|
1035
1035
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1036
1036
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1037
|
-
tmp.
|
|
1037
|
+
tmp.q55_1 = [null, null, lazy(tmp_0, RandomParamsDto$RandomIntegerSequencesParamsDto$Companion$$childSerializers$_anonymous__1scx7a), null, null, null, null, null];
|
|
1038
1038
|
}
|
|
1039
1039
|
var Companion_instance_5;
|
|
1040
1040
|
function Companion_getInstance_6() {
|
|
@@ -1053,27 +1053,27 @@
|
|
|
1053
1053
|
tmp0_serialDesc.gz('replacement', false);
|
|
1054
1054
|
tmp0_serialDesc.gz('ticketId', false);
|
|
1055
1055
|
tmp0_serialDesc.gz('userData', false);
|
|
1056
|
-
this.
|
|
1056
|
+
this.r55_1 = tmp0_serialDesc;
|
|
1057
1057
|
}
|
|
1058
|
-
protoOf($serializer_2).
|
|
1059
|
-
var tmp0_desc = this.
|
|
1058
|
+
protoOf($serializer_2).s55 = function (encoder, value) {
|
|
1059
|
+
var tmp0_desc = this.r55_1;
|
|
1060
1060
|
var tmp1_output = encoder.or(tmp0_desc);
|
|
1061
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1062
|
-
tmp1_output.dt(tmp0_desc, 0, value.
|
|
1063
|
-
tmp1_output.ys(tmp0_desc, 1, value.
|
|
1064
|
-
tmp1_output.ft(tmp0_desc, 2, tmp2_cached[2].w(), value.
|
|
1065
|
-
tmp1_output.ys(tmp0_desc, 3, value.
|
|
1066
|
-
tmp1_output.ys(tmp0_desc, 4, value.
|
|
1067
|
-
tmp1_output.vs(tmp0_desc, 5, value.
|
|
1068
|
-
tmp1_output.ht(tmp0_desc, 6, StringSerializer_getInstance(), value.
|
|
1069
|
-
tmp1_output.ht(tmp0_desc, 7, $serializer_getInstance_2(), value.
|
|
1061
|
+
var tmp2_cached = Companion_getInstance_6().q55_1;
|
|
1062
|
+
tmp1_output.dt(tmp0_desc, 0, value.t55_1);
|
|
1063
|
+
tmp1_output.ys(tmp0_desc, 1, value.u55_1);
|
|
1064
|
+
tmp1_output.ft(tmp0_desc, 2, tmp2_cached[2].w(), value.v55_1);
|
|
1065
|
+
tmp1_output.ys(tmp0_desc, 3, value.w55_1);
|
|
1066
|
+
tmp1_output.ys(tmp0_desc, 4, value.x55_1);
|
|
1067
|
+
tmp1_output.vs(tmp0_desc, 5, value.y55_1);
|
|
1068
|
+
tmp1_output.ht(tmp0_desc, 6, StringSerializer_getInstance(), value.z55_1);
|
|
1069
|
+
tmp1_output.ht(tmp0_desc, 7, $serializer_getInstance_2(), value.a56_1);
|
|
1070
1070
|
tmp1_output.pr(tmp0_desc);
|
|
1071
1071
|
};
|
|
1072
1072
|
protoOf($serializer_2).co = function (encoder, value) {
|
|
1073
|
-
return this.
|
|
1073
|
+
return this.s55(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1074
1074
|
};
|
|
1075
1075
|
protoOf($serializer_2).do = function (decoder) {
|
|
1076
|
-
var tmp0_desc = this.
|
|
1076
|
+
var tmp0_desc = this.r55_1;
|
|
1077
1077
|
var tmp1_flag = true;
|
|
1078
1078
|
var tmp2_index = 0;
|
|
1079
1079
|
var tmp3_bitMask0 = 0;
|
|
@@ -1086,7 +1086,7 @@
|
|
|
1086
1086
|
var tmp10_local6 = null;
|
|
1087
1087
|
var tmp11_local7 = null;
|
|
1088
1088
|
var tmp12_input = decoder.or(tmp0_desc);
|
|
1089
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1089
|
+
var tmp13_cached = Companion_getInstance_6().q55_1;
|
|
1090
1090
|
if (tmp12_input.es()) {
|
|
1091
1091
|
tmp4_local0 = tmp12_input.yr(tmp0_desc, 0);
|
|
1092
1092
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1151,10 +1151,10 @@
|
|
|
1151
1151
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1152
1152
|
};
|
|
1153
1153
|
protoOf($serializer_2).bo = function () {
|
|
1154
|
-
return this.
|
|
1154
|
+
return this.r55_1;
|
|
1155
1155
|
};
|
|
1156
1156
|
protoOf($serializer_2).vz = function () {
|
|
1157
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1157
|
+
var tmp0_cached = Companion_getInstance_6().q55_1;
|
|
1158
1158
|
// Inline function 'kotlin.arrayOf' call
|
|
1159
1159
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1160
1160
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1168,16 +1168,16 @@
|
|
|
1168
1168
|
}
|
|
1169
1169
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1170
1170
|
if (!(255 === (255 & seen0))) {
|
|
1171
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1171
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().r55_1);
|
|
1172
1172
|
}
|
|
1173
|
-
$this.
|
|
1174
|
-
$this.
|
|
1175
|
-
$this.
|
|
1176
|
-
$this.
|
|
1177
|
-
$this.
|
|
1178
|
-
$this.
|
|
1179
|
-
$this.
|
|
1180
|
-
$this.
|
|
1173
|
+
$this.t55_1 = apiKey;
|
|
1174
|
+
$this.u55_1 = n;
|
|
1175
|
+
$this.v55_1 = length;
|
|
1176
|
+
$this.w55_1 = min;
|
|
1177
|
+
$this.x55_1 = max;
|
|
1178
|
+
$this.y55_1 = replacement;
|
|
1179
|
+
$this.z55_1 = ticketId;
|
|
1180
|
+
$this.a56_1 = userData;
|
|
1181
1181
|
return $this;
|
|
1182
1182
|
}
|
|
1183
1183
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1185,27 +1185,27 @@
|
|
|
1185
1185
|
}
|
|
1186
1186
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1187
1187
|
Companion_getInstance_6();
|
|
1188
|
-
this.
|
|
1189
|
-
this.
|
|
1190
|
-
this.
|
|
1191
|
-
this.
|
|
1192
|
-
this.
|
|
1193
|
-
this.
|
|
1194
|
-
this.
|
|
1195
|
-
this.
|
|
1188
|
+
this.t55_1 = apiKey;
|
|
1189
|
+
this.u55_1 = n;
|
|
1190
|
+
this.v55_1 = length;
|
|
1191
|
+
this.w55_1 = min;
|
|
1192
|
+
this.x55_1 = max;
|
|
1193
|
+
this.y55_1 = replacement;
|
|
1194
|
+
this.z55_1 = ticketId;
|
|
1195
|
+
this.a56_1 = userData;
|
|
1196
1196
|
}
|
|
1197
1197
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1198
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1198
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.t55_1 + ', n=' + this.u55_1 + ', length=' + toString(this.v55_1) + ', min=' + this.w55_1 + ', max=' + this.x55_1 + ', replacement=' + this.y55_1 + ', ticketId=' + this.z55_1 + ', userData=' + toString_0(this.a56_1) + ')';
|
|
1199
1199
|
};
|
|
1200
1200
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1201
|
-
var result = getStringHashCode(this.
|
|
1202
|
-
result = imul(result, 31) + this.s55_1 | 0;
|
|
1203
|
-
result = imul(result, 31) + hashCode(this.t55_1) | 0;
|
|
1201
|
+
var result = getStringHashCode(this.t55_1);
|
|
1204
1202
|
result = imul(result, 31) + this.u55_1 | 0;
|
|
1205
|
-
result = imul(result, 31) + this.v55_1 | 0;
|
|
1206
|
-
result = imul(result, 31) +
|
|
1207
|
-
result = imul(result, 31) +
|
|
1208
|
-
result = imul(result, 31) + (this.y55_1
|
|
1203
|
+
result = imul(result, 31) + hashCode(this.v55_1) | 0;
|
|
1204
|
+
result = imul(result, 31) + this.w55_1 | 0;
|
|
1205
|
+
result = imul(result, 31) + this.x55_1 | 0;
|
|
1206
|
+
result = imul(result, 31) + getBooleanHashCode(this.y55_1) | 0;
|
|
1207
|
+
result = imul(result, 31) + (this.z55_1 == null ? 0 : getStringHashCode(this.z55_1)) | 0;
|
|
1208
|
+
result = imul(result, 31) + (this.a56_1 == null ? 0 : this.a56_1.hashCode()) | 0;
|
|
1209
1209
|
return result;
|
|
1210
1210
|
};
|
|
1211
1211
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1214,21 +1214,21 @@
|
|
|
1214
1214
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1215
1215
|
return false;
|
|
1216
1216
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1217
|
-
if (!(this.
|
|
1218
|
-
return false;
|
|
1219
|
-
if (!(this.s55_1 === tmp0_other_with_cast.s55_1))
|
|
1220
|
-
return false;
|
|
1221
|
-
if (!equals(this.t55_1, tmp0_other_with_cast.t55_1))
|
|
1217
|
+
if (!(this.t55_1 === tmp0_other_with_cast.t55_1))
|
|
1222
1218
|
return false;
|
|
1223
1219
|
if (!(this.u55_1 === tmp0_other_with_cast.u55_1))
|
|
1224
1220
|
return false;
|
|
1225
|
-
if (!(this.v55_1
|
|
1221
|
+
if (!equals(this.v55_1, tmp0_other_with_cast.v55_1))
|
|
1226
1222
|
return false;
|
|
1227
1223
|
if (!(this.w55_1 === tmp0_other_with_cast.w55_1))
|
|
1228
1224
|
return false;
|
|
1229
|
-
if (!(this.x55_1
|
|
1225
|
+
if (!(this.x55_1 === tmp0_other_with_cast.x55_1))
|
|
1226
|
+
return false;
|
|
1227
|
+
if (!(this.y55_1 === tmp0_other_with_cast.y55_1))
|
|
1228
|
+
return false;
|
|
1229
|
+
if (!(this.z55_1 == tmp0_other_with_cast.z55_1))
|
|
1230
1230
|
return false;
|
|
1231
|
-
if (!equals(this.
|
|
1231
|
+
if (!equals(this.a56_1, tmp0_other_with_cast.a56_1))
|
|
1232
1232
|
return false;
|
|
1233
1233
|
return true;
|
|
1234
1234
|
};
|
|
@@ -1243,20 +1243,20 @@
|
|
|
1243
1243
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1244
1244
|
tmp0_serialDesc.gz('id', false);
|
|
1245
1245
|
tmp0_serialDesc.gz('count', false);
|
|
1246
|
-
this.
|
|
1246
|
+
this.b56_1 = tmp0_serialDesc;
|
|
1247
1247
|
}
|
|
1248
|
-
protoOf($serializer_3).
|
|
1249
|
-
var tmp0_desc = this.
|
|
1248
|
+
protoOf($serializer_3).c56 = function (encoder, value) {
|
|
1249
|
+
var tmp0_desc = this.b56_1;
|
|
1250
1250
|
var tmp1_output = encoder.or(tmp0_desc);
|
|
1251
|
-
tmp1_output.dt(tmp0_desc, 0, value.
|
|
1252
|
-
tmp1_output.ys(tmp0_desc, 1, value.
|
|
1251
|
+
tmp1_output.dt(tmp0_desc, 0, value.d56_1);
|
|
1252
|
+
tmp1_output.ys(tmp0_desc, 1, value.e56_1);
|
|
1253
1253
|
tmp1_output.pr(tmp0_desc);
|
|
1254
1254
|
};
|
|
1255
1255
|
protoOf($serializer_3).co = function (encoder, value) {
|
|
1256
|
-
return this.
|
|
1256
|
+
return this.c56(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1257
1257
|
};
|
|
1258
1258
|
protoOf($serializer_3).do = function (decoder) {
|
|
1259
|
-
var tmp0_desc = this.
|
|
1259
|
+
var tmp0_desc = this.b56_1;
|
|
1260
1260
|
var tmp1_flag = true;
|
|
1261
1261
|
var tmp2_index = 0;
|
|
1262
1262
|
var tmp3_bitMask0 = 0;
|
|
@@ -1291,7 +1291,7 @@
|
|
|
1291
1291
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1292
1292
|
};
|
|
1293
1293
|
protoOf($serializer_3).bo = function () {
|
|
1294
|
-
return this.
|
|
1294
|
+
return this.b56_1;
|
|
1295
1295
|
};
|
|
1296
1296
|
protoOf($serializer_3).vz = function () {
|
|
1297
1297
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1307,25 +1307,25 @@
|
|
|
1307
1307
|
}
|
|
1308
1308
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1309
1309
|
if (!(3 === (3 & seen0))) {
|
|
1310
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1310
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().b56_1);
|
|
1311
1311
|
}
|
|
1312
|
-
$this.
|
|
1313
|
-
$this.
|
|
1312
|
+
$this.d56_1 = id;
|
|
1313
|
+
$this.e56_1 = count;
|
|
1314
1314
|
return $this;
|
|
1315
1315
|
}
|
|
1316
1316
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1317
1317
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1318
1318
|
}
|
|
1319
1319
|
function CardDecksUserDataDto(id, count) {
|
|
1320
|
-
this.
|
|
1321
|
-
this.
|
|
1320
|
+
this.d56_1 = id;
|
|
1321
|
+
this.e56_1 = count;
|
|
1322
1322
|
}
|
|
1323
1323
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1324
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1324
|
+
return 'CardDecksUserDataDto(id=' + this.d56_1 + ', count=' + this.e56_1 + ')';
|
|
1325
1325
|
};
|
|
1326
1326
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1327
|
-
var result = getStringHashCode(this.
|
|
1328
|
-
result = imul(result, 31) + this.
|
|
1327
|
+
var result = getStringHashCode(this.d56_1);
|
|
1328
|
+
result = imul(result, 31) + this.e56_1 | 0;
|
|
1329
1329
|
return result;
|
|
1330
1330
|
};
|
|
1331
1331
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1334,15 +1334,15 @@
|
|
|
1334
1334
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1335
1335
|
return false;
|
|
1336
1336
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1337
|
-
if (!(this.
|
|
1337
|
+
if (!(this.d56_1 === tmp0_other_with_cast.d56_1))
|
|
1338
1338
|
return false;
|
|
1339
|
-
if (!(this.
|
|
1339
|
+
if (!(this.e56_1 === tmp0_other_with_cast.e56_1))
|
|
1340
1340
|
return false;
|
|
1341
1341
|
return true;
|
|
1342
1342
|
};
|
|
1343
1343
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1344
1344
|
$serializer_4.call($this);
|
|
1345
|
-
$this.
|
|
1345
|
+
$this.g56_1 = typeSerial0;
|
|
1346
1346
|
return $this;
|
|
1347
1347
|
}
|
|
1348
1348
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1354,13 +1354,13 @@
|
|
|
1354
1354
|
tmp0_serialDesc.gz('jsonrpc', false);
|
|
1355
1355
|
tmp0_serialDesc.gz('result', false);
|
|
1356
1356
|
tmp0_serialDesc.gz('id', false);
|
|
1357
|
-
this.
|
|
1357
|
+
this.h56_1 = tmp0_serialDesc;
|
|
1358
1358
|
}
|
|
1359
|
-
protoOf(Companion_5).
|
|
1359
|
+
protoOf(Companion_5).k55 = function (typeSerial0) {
|
|
1360
1360
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1361
1361
|
};
|
|
1362
1362
|
protoOf(Companion_5).g10 = function (typeParamsSerializers) {
|
|
1363
|
-
return this.
|
|
1363
|
+
return this.k55(typeParamsSerializers[0]);
|
|
1364
1364
|
};
|
|
1365
1365
|
var Companion_instance_7;
|
|
1366
1366
|
function Companion_getInstance_8() {
|
|
@@ -1373,21 +1373,21 @@
|
|
|
1373
1373
|
tmp0_serialDesc.gz('jsonrpc', false);
|
|
1374
1374
|
tmp0_serialDesc.gz('result', false);
|
|
1375
1375
|
tmp0_serialDesc.gz('id', false);
|
|
1376
|
-
this.
|
|
1376
|
+
this.f56_1 = tmp0_serialDesc;
|
|
1377
1377
|
}
|
|
1378
|
-
protoOf($serializer_4).
|
|
1379
|
-
var tmp0_desc = this.
|
|
1378
|
+
protoOf($serializer_4).i56 = function (encoder, value) {
|
|
1379
|
+
var tmp0_desc = this.f56_1;
|
|
1380
1380
|
var tmp1_output = encoder.or(tmp0_desc);
|
|
1381
|
-
tmp1_output.dt(tmp0_desc, 0, value.
|
|
1382
|
-
tmp1_output.ft(tmp0_desc, 1, this.
|
|
1383
|
-
tmp1_output.dt(tmp0_desc, 2, value.
|
|
1381
|
+
tmp1_output.dt(tmp0_desc, 0, value.j56_1);
|
|
1382
|
+
tmp1_output.ft(tmp0_desc, 1, this.g56_1, value.k56_1);
|
|
1383
|
+
tmp1_output.dt(tmp0_desc, 2, value.l56_1);
|
|
1384
1384
|
tmp1_output.pr(tmp0_desc);
|
|
1385
1385
|
};
|
|
1386
1386
|
protoOf($serializer_4).co = function (encoder, value) {
|
|
1387
|
-
return this.
|
|
1387
|
+
return this.i56(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1388
1388
|
};
|
|
1389
1389
|
protoOf($serializer_4).do = function (decoder) {
|
|
1390
|
-
var tmp0_desc = this.
|
|
1390
|
+
var tmp0_desc = this.f56_1;
|
|
1391
1391
|
var tmp1_flag = true;
|
|
1392
1392
|
var tmp2_index = 0;
|
|
1393
1393
|
var tmp3_bitMask0 = 0;
|
|
@@ -1398,7 +1398,7 @@
|
|
|
1398
1398
|
if (tmp7_input.es()) {
|
|
1399
1399
|
tmp4_local0 = tmp7_input.yr(tmp0_desc, 0);
|
|
1400
1400
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1401
|
-
tmp5_local1 = tmp7_input.as(tmp0_desc, 1, this.
|
|
1401
|
+
tmp5_local1 = tmp7_input.as(tmp0_desc, 1, this.g56_1, tmp5_local1);
|
|
1402
1402
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1403
1403
|
tmp6_local2 = tmp7_input.yr(tmp0_desc, 2);
|
|
1404
1404
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
@@ -1414,7 +1414,7 @@
|
|
|
1414
1414
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1415
1415
|
break;
|
|
1416
1416
|
case 1:
|
|
1417
|
-
tmp5_local1 = tmp7_input.as(tmp0_desc, 1, this.
|
|
1417
|
+
tmp5_local1 = tmp7_input.as(tmp0_desc, 1, this.g56_1, tmp5_local1);
|
|
1418
1418
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1419
1419
|
break;
|
|
1420
1420
|
case 2:
|
|
@@ -1429,27 +1429,27 @@
|
|
|
1429
1429
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1430
1430
|
};
|
|
1431
1431
|
protoOf($serializer_4).bo = function () {
|
|
1432
|
-
return this.
|
|
1432
|
+
return this.f56_1;
|
|
1433
1433
|
};
|
|
1434
1434
|
protoOf($serializer_4).vz = function () {
|
|
1435
1435
|
// Inline function 'kotlin.arrayOf' call
|
|
1436
1436
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1437
1437
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1438
|
-
return [StringSerializer_getInstance(), this.
|
|
1438
|
+
return [StringSerializer_getInstance(), this.g56_1, StringSerializer_getInstance()];
|
|
1439
1439
|
};
|
|
1440
1440
|
protoOf($serializer_4).wz = function () {
|
|
1441
1441
|
// Inline function 'kotlin.arrayOf' call
|
|
1442
1442
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1443
1443
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1444
|
-
return [this.
|
|
1444
|
+
return [this.g56_1];
|
|
1445
1445
|
};
|
|
1446
1446
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1447
1447
|
if (!(7 === (7 & seen0))) {
|
|
1448
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1448
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().h56_1);
|
|
1449
1449
|
}
|
|
1450
|
-
$this.
|
|
1451
|
-
$this.
|
|
1452
|
-
$this.
|
|
1450
|
+
$this.j56_1 = jsonrpc;
|
|
1451
|
+
$this.k56_1 = result;
|
|
1452
|
+
$this.l56_1 = id;
|
|
1453
1453
|
return $this;
|
|
1454
1454
|
}
|
|
1455
1455
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1457,17 +1457,17 @@
|
|
|
1457
1457
|
}
|
|
1458
1458
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1459
1459
|
Companion_getInstance_8();
|
|
1460
|
-
this.
|
|
1461
|
-
this.
|
|
1462
|
-
this.
|
|
1460
|
+
this.j56_1 = jsonrpc;
|
|
1461
|
+
this.k56_1 = result;
|
|
1462
|
+
this.l56_1 = id;
|
|
1463
1463
|
}
|
|
1464
1464
|
protoOf(RandomResponseDto).toString = function () {
|
|
1465
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1465
|
+
return 'RandomResponseDto(jsonrpc=' + this.j56_1 + ', result=' + toString(this.k56_1) + ', id=' + this.l56_1 + ')';
|
|
1466
1466
|
};
|
|
1467
1467
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1468
|
-
var result = getStringHashCode(this.
|
|
1469
|
-
result = imul(result, 31) + hashCode(this.
|
|
1470
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1468
|
+
var result = getStringHashCode(this.j56_1);
|
|
1469
|
+
result = imul(result, 31) + hashCode(this.k56_1) | 0;
|
|
1470
|
+
result = imul(result, 31) + getStringHashCode(this.l56_1) | 0;
|
|
1471
1471
|
return result;
|
|
1472
1472
|
};
|
|
1473
1473
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1476,11 +1476,11 @@
|
|
|
1476
1476
|
if (!(other instanceof RandomResponseDto))
|
|
1477
1477
|
return false;
|
|
1478
1478
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1479
|
-
if (!(this.
|
|
1479
|
+
if (!(this.j56_1 === tmp0_other_with_cast.j56_1))
|
|
1480
1480
|
return false;
|
|
1481
|
-
if (!equals(this.
|
|
1481
|
+
if (!equals(this.k56_1, tmp0_other_with_cast.k56_1))
|
|
1482
1482
|
return false;
|
|
1483
|
-
if (!(this.
|
|
1483
|
+
if (!(this.l56_1 === tmp0_other_with_cast.l56_1))
|
|
1484
1484
|
return false;
|
|
1485
1485
|
return true;
|
|
1486
1486
|
};
|
|
@@ -1499,24 +1499,24 @@
|
|
|
1499
1499
|
tmp0_serialDesc.gz('bitsLeft', false);
|
|
1500
1500
|
tmp0_serialDesc.gz('requestsLeft', false);
|
|
1501
1501
|
tmp0_serialDesc.gz('advisoryDelay', false);
|
|
1502
|
-
this.
|
|
1502
|
+
this.m56_1 = tmp0_serialDesc;
|
|
1503
1503
|
}
|
|
1504
|
-
protoOf($serializer_5).
|
|
1505
|
-
var tmp0_desc = this.
|
|
1504
|
+
protoOf($serializer_5).n56 = function (encoder, value) {
|
|
1505
|
+
var tmp0_desc = this.m56_1;
|
|
1506
1506
|
var tmp1_output = encoder.or(tmp0_desc);
|
|
1507
|
-
tmp1_output.ft(tmp0_desc, 0, $serializer_getInstance_4(), value.
|
|
1508
|
-
tmp1_output.ht(tmp0_desc, 1, StringSerializer_getInstance(), value.
|
|
1509
|
-
tmp1_output.ht(tmp0_desc, 2, IntSerializer_getInstance(), value.
|
|
1510
|
-
tmp1_output.ht(tmp0_desc, 3, IntSerializer_getInstance(), value.
|
|
1511
|
-
tmp1_output.ht(tmp0_desc, 4, IntSerializer_getInstance(), value.
|
|
1512
|
-
tmp1_output.ht(tmp0_desc, 5, IntSerializer_getInstance(), value.
|
|
1507
|
+
tmp1_output.ft(tmp0_desc, 0, $serializer_getInstance_4(), value.o56_1);
|
|
1508
|
+
tmp1_output.ht(tmp0_desc, 1, StringSerializer_getInstance(), value.p56_1);
|
|
1509
|
+
tmp1_output.ht(tmp0_desc, 2, IntSerializer_getInstance(), value.q56_1);
|
|
1510
|
+
tmp1_output.ht(tmp0_desc, 3, IntSerializer_getInstance(), value.r56_1);
|
|
1511
|
+
tmp1_output.ht(tmp0_desc, 4, IntSerializer_getInstance(), value.s56_1);
|
|
1512
|
+
tmp1_output.ht(tmp0_desc, 5, IntSerializer_getInstance(), value.t56_1);
|
|
1513
1513
|
tmp1_output.pr(tmp0_desc);
|
|
1514
1514
|
};
|
|
1515
1515
|
protoOf($serializer_5).co = function (encoder, value) {
|
|
1516
|
-
return this.
|
|
1516
|
+
return this.n56(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1517
1517
|
};
|
|
1518
1518
|
protoOf($serializer_5).do = function (decoder) {
|
|
1519
|
-
var tmp0_desc = this.
|
|
1519
|
+
var tmp0_desc = this.m56_1;
|
|
1520
1520
|
var tmp1_flag = true;
|
|
1521
1521
|
var tmp2_index = 0;
|
|
1522
1522
|
var tmp3_bitMask0 = 0;
|
|
@@ -1579,7 +1579,7 @@
|
|
|
1579
1579
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1580
1580
|
};
|
|
1581
1581
|
protoOf($serializer_5).bo = function () {
|
|
1582
|
-
return this.
|
|
1582
|
+
return this.m56_1;
|
|
1583
1583
|
};
|
|
1584
1584
|
protoOf($serializer_5).vz = function () {
|
|
1585
1585
|
// Inline function 'kotlin.arrayOf' call
|
|
@@ -1595,37 +1595,37 @@
|
|
|
1595
1595
|
}
|
|
1596
1596
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1597
1597
|
if (!(63 === (63 & seen0))) {
|
|
1598
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1598
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().m56_1);
|
|
1599
1599
|
}
|
|
1600
|
-
$this.
|
|
1601
|
-
$this.
|
|
1602
|
-
$this.
|
|
1603
|
-
$this.
|
|
1604
|
-
$this.
|
|
1605
|
-
$this.
|
|
1600
|
+
$this.o56_1 = random;
|
|
1601
|
+
$this.p56_1 = signature;
|
|
1602
|
+
$this.q56_1 = bitsUsed;
|
|
1603
|
+
$this.r56_1 = bitsLeft;
|
|
1604
|
+
$this.s56_1 = requestsLeft;
|
|
1605
|
+
$this.t56_1 = advisoryDelay;
|
|
1606
1606
|
return $this;
|
|
1607
1607
|
}
|
|
1608
1608
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1609
1609
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1610
1610
|
}
|
|
1611
1611
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1612
|
+
this.o56_1 = random;
|
|
1613
|
+
this.p56_1 = signature;
|
|
1614
|
+
this.q56_1 = bitsUsed;
|
|
1615
|
+
this.r56_1 = bitsLeft;
|
|
1616
|
+
this.s56_1 = requestsLeft;
|
|
1617
|
+
this.t56_1 = advisoryDelay;
|
|
1618
1618
|
}
|
|
1619
1619
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1620
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1620
|
+
return 'IntegerSequencesResultDto(random=' + this.o56_1.toString() + ', signature=' + this.p56_1 + ', bitsUsed=' + this.q56_1 + ', bitsLeft=' + this.r56_1 + ', requestsLeft=' + this.s56_1 + ', advisoryDelay=' + this.t56_1 + ')';
|
|
1621
1621
|
};
|
|
1622
1622
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1623
|
-
var result = this.
|
|
1624
|
-
result = imul(result, 31) + (this.
|
|
1625
|
-
result = imul(result, 31) + (this.o56_1 == null ? 0 : this.o56_1) | 0;
|
|
1626
|
-
result = imul(result, 31) + (this.p56_1 == null ? 0 : this.p56_1) | 0;
|
|
1623
|
+
var result = this.o56_1.hashCode();
|
|
1624
|
+
result = imul(result, 31) + (this.p56_1 == null ? 0 : getStringHashCode(this.p56_1)) | 0;
|
|
1627
1625
|
result = imul(result, 31) + (this.q56_1 == null ? 0 : this.q56_1) | 0;
|
|
1628
1626
|
result = imul(result, 31) + (this.r56_1 == null ? 0 : this.r56_1) | 0;
|
|
1627
|
+
result = imul(result, 31) + (this.s56_1 == null ? 0 : this.s56_1) | 0;
|
|
1628
|
+
result = imul(result, 31) + (this.t56_1 == null ? 0 : this.t56_1) | 0;
|
|
1629
1629
|
return result;
|
|
1630
1630
|
};
|
|
1631
1631
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1634,11 +1634,7 @@
|
|
|
1634
1634
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1635
1635
|
return false;
|
|
1636
1636
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1637
|
-
if (!this.
|
|
1638
|
-
return false;
|
|
1639
|
-
if (!(this.n56_1 == tmp0_other_with_cast.n56_1))
|
|
1640
|
-
return false;
|
|
1641
|
-
if (!(this.o56_1 == tmp0_other_with_cast.o56_1))
|
|
1637
|
+
if (!this.o56_1.equals(tmp0_other_with_cast.o56_1))
|
|
1642
1638
|
return false;
|
|
1643
1639
|
if (!(this.p56_1 == tmp0_other_with_cast.p56_1))
|
|
1644
1640
|
return false;
|
|
@@ -1646,6 +1642,10 @@
|
|
|
1646
1642
|
return false;
|
|
1647
1643
|
if (!(this.r56_1 == tmp0_other_with_cast.r56_1))
|
|
1648
1644
|
return false;
|
|
1645
|
+
if (!(this.s56_1 == tmp0_other_with_cast.s56_1))
|
|
1646
|
+
return false;
|
|
1647
|
+
if (!(this.t56_1 == tmp0_other_with_cast.t56_1))
|
|
1648
|
+
return false;
|
|
1649
1649
|
return true;
|
|
1650
1650
|
};
|
|
1651
1651
|
function RandomDataDto$IntegerSequencesDataDto$Companion$$childSerializers$_anonymous__ummwez() {
|
|
@@ -1658,7 +1658,7 @@
|
|
|
1658
1658
|
// Inline function 'kotlin.arrayOf' call
|
|
1659
1659
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1660
1660
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1661
|
-
tmp.
|
|
1661
|
+
tmp.u56_1 = [lazy(tmp_0, RandomDataDto$IntegerSequencesDataDto$Companion$$childSerializers$_anonymous__ummwez), null, null];
|
|
1662
1662
|
}
|
|
1663
1663
|
var Companion_instance_9;
|
|
1664
1664
|
function Companion_getInstance_10() {
|
|
@@ -1672,22 +1672,22 @@
|
|
|
1672
1672
|
tmp0_serialDesc.gz('data', false);
|
|
1673
1673
|
tmp0_serialDesc.gz('completionTime', false);
|
|
1674
1674
|
tmp0_serialDesc.gz('ticketId', false);
|
|
1675
|
-
this.
|
|
1675
|
+
this.v56_1 = tmp0_serialDesc;
|
|
1676
1676
|
}
|
|
1677
|
-
protoOf($serializer_6).
|
|
1678
|
-
var tmp0_desc = this.
|
|
1677
|
+
protoOf($serializer_6).w56 = function (encoder, value) {
|
|
1678
|
+
var tmp0_desc = this.v56_1;
|
|
1679
1679
|
var tmp1_output = encoder.or(tmp0_desc);
|
|
1680
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1681
|
-
tmp1_output.ft(tmp0_desc, 0, tmp2_cached[0].w(), value.
|
|
1682
|
-
tmp1_output.dt(tmp0_desc, 1, value.
|
|
1683
|
-
tmp1_output.ht(tmp0_desc, 2, StringSerializer_getInstance(), value.
|
|
1680
|
+
var tmp2_cached = Companion_getInstance_10().u56_1;
|
|
1681
|
+
tmp1_output.ft(tmp0_desc, 0, tmp2_cached[0].w(), value.x56_1);
|
|
1682
|
+
tmp1_output.dt(tmp0_desc, 1, value.y56_1);
|
|
1683
|
+
tmp1_output.ht(tmp0_desc, 2, StringSerializer_getInstance(), value.z56_1);
|
|
1684
1684
|
tmp1_output.pr(tmp0_desc);
|
|
1685
1685
|
};
|
|
1686
1686
|
protoOf($serializer_6).co = function (encoder, value) {
|
|
1687
|
-
return this.
|
|
1687
|
+
return this.w56(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1688
1688
|
};
|
|
1689
1689
|
protoOf($serializer_6).do = function (decoder) {
|
|
1690
|
-
var tmp0_desc = this.
|
|
1690
|
+
var tmp0_desc = this.v56_1;
|
|
1691
1691
|
var tmp1_flag = true;
|
|
1692
1692
|
var tmp2_index = 0;
|
|
1693
1693
|
var tmp3_bitMask0 = 0;
|
|
@@ -1695,7 +1695,7 @@
|
|
|
1695
1695
|
var tmp5_local1 = null;
|
|
1696
1696
|
var tmp6_local2 = null;
|
|
1697
1697
|
var tmp7_input = decoder.or(tmp0_desc);
|
|
1698
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1698
|
+
var tmp8_cached = Companion_getInstance_10().u56_1;
|
|
1699
1699
|
if (tmp7_input.es()) {
|
|
1700
1700
|
tmp4_local0 = tmp7_input.as(tmp0_desc, 0, tmp8_cached[0].w(), tmp4_local0);
|
|
1701
1701
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1730,13 +1730,13 @@
|
|
|
1730
1730
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1731
1731
|
};
|
|
1732
1732
|
protoOf($serializer_6).bo = function () {
|
|
1733
|
-
return this.
|
|
1733
|
+
return this.v56_1;
|
|
1734
1734
|
};
|
|
1735
1735
|
protoOf($serializer_6).vz = function () {
|
|
1736
1736
|
// Inline function 'kotlin.arrayOf' call
|
|
1737
1737
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1738
1738
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1739
|
-
return [Companion_getInstance_10().
|
|
1739
|
+
return [Companion_getInstance_10().u56_1[0].w(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1740
1740
|
};
|
|
1741
1741
|
var $serializer_instance_4;
|
|
1742
1742
|
function $serializer_getInstance_4() {
|
|
@@ -1746,11 +1746,11 @@
|
|
|
1746
1746
|
}
|
|
1747
1747
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1748
1748
|
if (!(7 === (7 & seen0))) {
|
|
1749
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1749
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().v56_1);
|
|
1750
1750
|
}
|
|
1751
|
-
$this.
|
|
1752
|
-
$this.
|
|
1753
|
-
$this.
|
|
1751
|
+
$this.x56_1 = data;
|
|
1752
|
+
$this.y56_1 = completionTime;
|
|
1753
|
+
$this.z56_1 = ticketId;
|
|
1754
1754
|
return $this;
|
|
1755
1755
|
}
|
|
1756
1756
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1759,12 +1759,12 @@
|
|
|
1759
1759
|
function IntegerSequencesDataDto() {
|
|
1760
1760
|
}
|
|
1761
1761
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1762
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1762
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.x56_1) + ', completionTime=' + this.y56_1 + ', ticketId=' + this.z56_1 + ')';
|
|
1763
1763
|
};
|
|
1764
1764
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1765
|
-
var result = hashCode(this.
|
|
1766
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1767
|
-
result = imul(result, 31) + (this.
|
|
1765
|
+
var result = hashCode(this.x56_1);
|
|
1766
|
+
result = imul(result, 31) + getStringHashCode(this.y56_1) | 0;
|
|
1767
|
+
result = imul(result, 31) + (this.z56_1 == null ? 0 : getStringHashCode(this.z56_1)) | 0;
|
|
1768
1768
|
return result;
|
|
1769
1769
|
};
|
|
1770
1770
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1773,11 +1773,11 @@
|
|
|
1773
1773
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1774
1774
|
return false;
|
|
1775
1775
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1776
|
-
if (!equals(this.
|
|
1776
|
+
if (!equals(this.x56_1, tmp0_other_with_cast.x56_1))
|
|
1777
1777
|
return false;
|
|
1778
|
-
if (!(this.
|
|
1778
|
+
if (!(this.y56_1 === tmp0_other_with_cast.y56_1))
|
|
1779
1779
|
return false;
|
|
1780
|
-
if (!(this.
|
|
1780
|
+
if (!(this.z56_1 == tmp0_other_with_cast.z56_1))
|
|
1781
1781
|
return false;
|
|
1782
1782
|
return true;
|
|
1783
1783
|
};
|
|
@@ -1796,7 +1796,7 @@
|
|
|
1796
1796
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1797
1797
|
}
|
|
1798
1798
|
function Companion_8() {
|
|
1799
|
-
this.
|
|
1799
|
+
this.m57_1 = 52;
|
|
1800
1800
|
}
|
|
1801
1801
|
var Companion_instance_10;
|
|
1802
1802
|
function Companion_getInstance_11() {
|
|
@@ -1804,13 +1804,13 @@
|
|
|
1804
1804
|
}
|
|
1805
1805
|
function $getRandomCardDecksCOROUTINE$(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1806
1806
|
CoroutineImpl.call(this, resultContinuation);
|
|
1807
|
-
this.
|
|
1808
|
-
this.
|
|
1809
|
-
this.
|
|
1810
|
-
this.
|
|
1811
|
-
this.
|
|
1812
|
-
this.
|
|
1813
|
-
this.
|
|
1807
|
+
this.v57_1 = _this__u8e3s4;
|
|
1808
|
+
this.w57_1 = min;
|
|
1809
|
+
this.x57_1 = max;
|
|
1810
|
+
this.y57_1 = decksCount;
|
|
1811
|
+
this.z57_1 = cardsCount;
|
|
1812
|
+
this.a58_1 = userData;
|
|
1813
|
+
this.b58_1 = signed;
|
|
1814
1814
|
}
|
|
1815
1815
|
protoOf($getRandomCardDecksCOROUTINE$).z8 = function () {
|
|
1816
1816
|
var suspendResult = this.t8_1;
|
|
@@ -1821,27 +1821,27 @@
|
|
|
1821
1821
|
case 0:
|
|
1822
1822
|
this.s8_1 = 6;
|
|
1823
1823
|
this.s8_1 = 5;
|
|
1824
|
-
var tmp0 = this.
|
|
1824
|
+
var tmp0 = this.v57_1.e58_1;
|
|
1825
1825
|
var this_0 = new HttpRequestBuilder();
|
|
1826
1826
|
url(this_0, '/json-rpc/4/invoke');
|
|
1827
|
-
var tmp3_id = this.
|
|
1828
|
-
var tmp4_method = this.
|
|
1829
|
-
var tmp0_apiKey = this.
|
|
1830
|
-
var size = this.
|
|
1827
|
+
var tmp3_id = this.a58_1.id;
|
|
1828
|
+
var tmp4_method = this.b58_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1829
|
+
var tmp0_apiKey = this.v57_1.f58_1;
|
|
1830
|
+
var size = this.y57_1;
|
|
1831
1831
|
var list = ArrayList_init_$Create$(size);
|
|
1832
1832
|
var inductionVariable = 0;
|
|
1833
1833
|
if (inductionVariable < size)
|
|
1834
1834
|
do {
|
|
1835
1835
|
var index = inductionVariable;
|
|
1836
1836
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1837
|
-
list.j(this.
|
|
1837
|
+
list.j(this.z57_1);
|
|
1838
1838
|
}
|
|
1839
1839
|
while (inductionVariable < size);
|
|
1840
|
-
var tmp2_userData = this.
|
|
1841
|
-
var tmp5_params = new RandomIntegerSequencesParamsDto(tmp0_apiKey, this.
|
|
1840
|
+
var tmp2_userData = this.b58_1 ? mapToDto(this.a58_1) : null;
|
|
1841
|
+
var tmp5_params = new RandomIntegerSequencesParamsDto(tmp0_apiKey, this.y57_1, list, this.w57_1, this.x57_1, false, null, tmp2_userData);
|
|
1842
1842
|
var body = new RandomRequestDto('2.0', tmp4_method, tmp5_params, tmp3_id);
|
|
1843
1843
|
if (body == null) {
|
|
1844
|
-
this_0.
|
|
1844
|
+
this_0.o3s_1 = NullBody_instance;
|
|
1845
1845
|
var tmp_0 = JsType_instance;
|
|
1846
1846
|
var tmp_1 = getKClass(RandomRequestDto);
|
|
1847
1847
|
var tmp_2;
|
|
@@ -1857,13 +1857,13 @@
|
|
|
1857
1857
|
}
|
|
1858
1858
|
tmp_2 = tmp_3;
|
|
1859
1859
|
}
|
|
1860
|
-
this_0.
|
|
1860
|
+
this_0.a3y(typeInfoImpl(tmp_0, tmp_1, tmp_2));
|
|
1861
1861
|
} else {
|
|
1862
1862
|
if (body instanceof OutgoingContent) {
|
|
1863
|
-
this_0.
|
|
1864
|
-
this_0.
|
|
1863
|
+
this_0.o3s_1 = body;
|
|
1864
|
+
this_0.a3y(null);
|
|
1865
1865
|
} else {
|
|
1866
|
-
this_0.
|
|
1866
|
+
this_0.o3s_1 = body;
|
|
1867
1867
|
var tmp_4 = JsType_instance;
|
|
1868
1868
|
var tmp_5 = getKClass(RandomRequestDto);
|
|
1869
1869
|
var tmp_6;
|
|
@@ -1879,23 +1879,23 @@
|
|
|
1879
1879
|
}
|
|
1880
1880
|
tmp_6 = tmp_7;
|
|
1881
1881
|
}
|
|
1882
|
-
this_0.
|
|
1882
|
+
this_0.a3y(typeInfoImpl(tmp_4, tmp_5, tmp_6));
|
|
1883
1883
|
}
|
|
1884
1884
|
}
|
|
1885
1885
|
|
|
1886
|
-
this_0.
|
|
1886
|
+
this_0.m3s_1 = Companion_getInstance().o3j_1;
|
|
1887
1887
|
this.r8_1 = 1;
|
|
1888
|
-
suspendResult = (new HttpStatement(this_0, tmp0)).
|
|
1888
|
+
suspendResult = (new HttpStatement(this_0, tmp0)).b4j(this);
|
|
1889
1889
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1890
1890
|
return suspendResult;
|
|
1891
1891
|
}
|
|
1892
1892
|
|
|
1893
1893
|
continue $sm;
|
|
1894
1894
|
case 1:
|
|
1895
|
-
this.
|
|
1896
|
-
var this_1 = this.
|
|
1895
|
+
this.d58_1 = suspendResult;
|
|
1896
|
+
var this_1 = this.d58_1;
|
|
1897
1897
|
this.r8_1 = 2;
|
|
1898
|
-
var tmp_8 = this_1.
|
|
1898
|
+
var tmp_8 = this_1.p3v();
|
|
1899
1899
|
var tmp_9 = JsType_instance;
|
|
1900
1900
|
var tmp_10 = getKClass(JsonObject);
|
|
1901
1901
|
var tmp_11;
|
|
@@ -1912,7 +1912,7 @@
|
|
|
1912
1912
|
tmp_11 = tmp_12;
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
|
-
suspendResult = tmp_8.
|
|
1915
|
+
suspendResult = tmp_8.t3u(typeInfoImpl(tmp_9, tmp_10, tmp_11), this);
|
|
1916
1916
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1917
1917
|
return suspendResult;
|
|
1918
1918
|
}
|
|
@@ -1920,18 +1920,18 @@
|
|
|
1920
1920
|
continue $sm;
|
|
1921
1921
|
case 2:
|
|
1922
1922
|
var tmp_13 = this;
|
|
1923
|
-
tmp_13.
|
|
1923
|
+
tmp_13.c58_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1924
1924
|
this.r8_1 = 3;
|
|
1925
|
-
suspendResult = throwIfError(this.
|
|
1925
|
+
suspendResult = throwIfError(this.v57_1, this.c58_1, this.d58_1, this);
|
|
1926
1926
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1927
1927
|
return suspendResult;
|
|
1928
1928
|
}
|
|
1929
1929
|
|
|
1930
1930
|
continue $sm;
|
|
1931
1931
|
case 3:
|
|
1932
|
-
var this_2 = this.
|
|
1932
|
+
var this_2 = this.d58_1;
|
|
1933
1933
|
this.r8_1 = 4;
|
|
1934
|
-
var tmp_14 = this_2.
|
|
1934
|
+
var tmp_14 = this_2.p3v();
|
|
1935
1935
|
var tmp_15 = JsType_instance;
|
|
1936
1936
|
var tmp_16 = getKClass(RandomResponseDto);
|
|
1937
1937
|
var tmp_17;
|
|
@@ -1948,7 +1948,7 @@
|
|
|
1948
1948
|
tmp_17 = tmp_18;
|
|
1949
1949
|
}
|
|
1950
1950
|
|
|
1951
|
-
suspendResult = tmp_14.
|
|
1951
|
+
suspendResult = tmp_14.t3u(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1952
1952
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1953
1953
|
return suspendResult;
|
|
1954
1954
|
}
|
|
@@ -1956,10 +1956,10 @@
|
|
|
1956
1956
|
continue $sm;
|
|
1957
1957
|
case 4:
|
|
1958
1958
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1959
|
-
var randomJson = extractRandomResult(this.
|
|
1960
|
-
var tmp0_cardDecks = responseDto.
|
|
1961
|
-
var tmp1_signature = responseDto.
|
|
1962
|
-
var tmp2_id = responseDto.
|
|
1959
|
+
var randomJson = extractRandomResult(this.v57_1, this.c58_1);
|
|
1960
|
+
var tmp0_cardDecks = responseDto.k56_1.o56_1.x56_1;
|
|
1961
|
+
var tmp1_signature = responseDto.k56_1.p56_1;
|
|
1962
|
+
var tmp2_id = responseDto.l56_1;
|
|
1963
1963
|
return new CardDeckResult(tmp0_cardDecks, randomJson, tmp2_id, tmp1_signature);
|
|
1964
1964
|
case 5:
|
|
1965
1965
|
this.s8_1 = 6;
|
|
@@ -1991,9 +1991,9 @@
|
|
|
1991
1991
|
};
|
|
1992
1992
|
function $throwIfErrorCOROUTINE$(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1993
1993
|
CoroutineImpl.call(this, resultContinuation);
|
|
1994
|
-
this.
|
|
1995
|
-
this.
|
|
1996
|
-
this.
|
|
1994
|
+
this.j57_1 = _this__u8e3s4;
|
|
1995
|
+
this.k57_1 = bodyAsJson;
|
|
1996
|
+
this.l57_1 = response;
|
|
1997
1997
|
}
|
|
1998
1998
|
protoOf($throwIfErrorCOROUTINE$).z8 = function () {
|
|
1999
1999
|
var suspendResult = this.t8_1;
|
|
@@ -2003,11 +2003,11 @@
|
|
|
2003
2003
|
switch (tmp) {
|
|
2004
2004
|
case 0:
|
|
2005
2005
|
this.s8_1 = 3;
|
|
2006
|
-
var this_0 = this.
|
|
2006
|
+
var this_0 = this.k57_1;
|
|
2007
2007
|
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).z1('error')) {
|
|
2008
|
-
var this_1 = this.
|
|
2008
|
+
var this_1 = this.l57_1;
|
|
2009
2009
|
this.r8_1 = 2;
|
|
2010
|
-
var tmp_0 = this_1.
|
|
2010
|
+
var tmp_0 = this_1.p3v();
|
|
2011
2011
|
var tmp_1 = JsType_instance;
|
|
2012
2012
|
var tmp_2 = getKClass(ErrorResponseDto);
|
|
2013
2013
|
var tmp_3;
|
|
@@ -2023,7 +2023,7 @@
|
|
|
2023
2023
|
}
|
|
2024
2024
|
tmp_3 = tmp_4;
|
|
2025
2025
|
}
|
|
2026
|
-
suspendResult = tmp_0.
|
|
2026
|
+
suspendResult = tmp_0.t3u(typeInfoImpl(tmp_1, tmp_2, tmp_3), this);
|
|
2027
2027
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2028
2028
|
return suspendResult;
|
|
2029
2029
|
}
|
|
@@ -2037,10 +2037,10 @@
|
|
|
2037
2037
|
return Unit_instance;
|
|
2038
2038
|
case 2:
|
|
2039
2039
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2040
|
-
var tmp0_safe_receiver = errorResponseDto.
|
|
2041
|
-
var tmp_5 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2042
|
-
var tmp1_safe_receiver = errorResponseDto.
|
|
2043
|
-
throw new RandomException(tmp_5, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2040
|
+
var tmp0_safe_receiver = errorResponseDto.c55_1;
|
|
2041
|
+
var tmp_5 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f55_1;
|
|
2042
|
+
var tmp1_safe_receiver = errorResponseDto.c55_1;
|
|
2043
|
+
throw new RandomException(tmp_5, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g55_1);
|
|
2044
2044
|
case 3:
|
|
2045
2045
|
throw this.u8_1;
|
|
2046
2046
|
}
|
|
@@ -2056,10 +2056,10 @@
|
|
|
2056
2056
|
while (true);
|
|
2057
2057
|
};
|
|
2058
2058
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2059
|
-
this.
|
|
2060
|
-
this.
|
|
2059
|
+
this.e58_1 = client;
|
|
2060
|
+
this.f58_1 = apiKey;
|
|
2061
2061
|
}
|
|
2062
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2062
|
+
protoOf(RandomOrgApiServiceImpl).a57 = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2063
2063
|
var tmp = new $getRandomCardDecksCOROUTINE$(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2064
2064
|
tmp.t8_1 = Unit_instance;
|
|
2065
2065
|
tmp.u8_1 = null;
|
|
@@ -2084,16 +2084,16 @@
|
|
|
2084
2084
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2085
2085
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2086
2086
|
}
|
|
2087
|
-
protoOf(PoolParams).
|
|
2087
|
+
protoOf(PoolParams).v54 = function () {
|
|
2088
2088
|
return this.poolSize;
|
|
2089
2089
|
};
|
|
2090
|
-
protoOf(PoolParams).
|
|
2090
|
+
protoOf(PoolParams).w54 = function () {
|
|
2091
2091
|
return this.thresholdForUsedPool;
|
|
2092
2092
|
};
|
|
2093
|
-
protoOf(PoolParams).
|
|
2093
|
+
protoOf(PoolParams).g58 = function () {
|
|
2094
2094
|
return this.failedRequestAttempts;
|
|
2095
2095
|
};
|
|
2096
|
-
protoOf(PoolParams).
|
|
2096
|
+
protoOf(PoolParams).h58 = function () {
|
|
2097
2097
|
return this.failedAttemptCooldown;
|
|
2098
2098
|
};
|
|
2099
2099
|
protoOf(PoolParams).ne = function () {
|
|
@@ -2105,10 +2105,10 @@
|
|
|
2105
2105
|
protoOf(PoolParams).xl = function () {
|
|
2106
2106
|
return this.failedRequestAttempts;
|
|
2107
2107
|
};
|
|
2108
|
-
protoOf(PoolParams).
|
|
2108
|
+
protoOf(PoolParams).i58 = function () {
|
|
2109
2109
|
return this.failedAttemptCooldown;
|
|
2110
2110
|
};
|
|
2111
|
-
protoOf(PoolParams).
|
|
2111
|
+
protoOf(PoolParams).j58 = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2112
2112
|
return new PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2113
2113
|
};
|
|
2114
2114
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2116,7 +2116,7 @@
|
|
|
2116
2116
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2117
2117
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2118
2118
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2119
|
-
return $super === VOID ? this.
|
|
2119
|
+
return $super === VOID ? this.j58(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) : $super.j58.call(this, poolSize, thresholdForUsedPool, failedRequestAttempts, new Duration(failedAttemptCooldown));
|
|
2120
2120
|
};
|
|
2121
2121
|
protoOf(PoolParams).toString = function () {
|
|
2122
2122
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2148,10 +2148,10 @@
|
|
|
2148
2148
|
}
|
|
2149
2149
|
function getExceptionIfCooldown($this) {
|
|
2150
2150
|
var currentTime = System_instance.ck();
|
|
2151
|
-
if (!($this.
|
|
2152
|
-
var timeToWait = Duration__times_impl_sfuzvp($this.
|
|
2151
|
+
if (!($this.w58_1 == null) && $this.x58_1 >= $this.o58_1.failedRequestAttempts) {
|
|
2152
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.o58_1.failedAttemptCooldown, $this.x58_1);
|
|
2153
2153
|
// Inline function 'kotlin.requireNotNull' call
|
|
2154
|
-
var tmp0 = $this.
|
|
2154
|
+
var tmp0 = $this.w58_1;
|
|
2155
2155
|
var tmp$ret$1;
|
|
2156
2156
|
$l$block: {
|
|
2157
2157
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -2165,20 +2165,20 @@
|
|
|
2165
2165
|
}
|
|
2166
2166
|
var allowedRequestTime = tmp$ret$1.rk(timeToWait);
|
|
2167
2167
|
if (allowedRequestTime.uk(currentTime) > 0) {
|
|
2168
|
-
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.
|
|
2168
|
+
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.w58_1) + ', ') + ('currentTime = ' + currentTime.toString() + ', ') + ('failedRequestCount = ' + $this.x58_1));
|
|
2169
2169
|
return exception;
|
|
2170
2170
|
} else {
|
|
2171
|
-
$this.
|
|
2171
|
+
$this.w58_1 = null;
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
2174
|
return null;
|
|
2175
2175
|
}
|
|
2176
2176
|
function mapToRandomExceptionIfError($this, error) {
|
|
2177
|
-
$this.
|
|
2178
|
-
$this.
|
|
2179
|
-
var timeToWait = Duration__times_impl_sfuzvp($this.
|
|
2177
|
+
$this.w58_1 = System_instance.ck();
|
|
2178
|
+
$this.x58_1 = $this.x58_1 + 1 | 0;
|
|
2179
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.o58_1.failedAttemptCooldown, $this.x58_1);
|
|
2180
2180
|
// Inline function 'kotlin.requireNotNull' call
|
|
2181
|
-
var tmp0 = $this.
|
|
2181
|
+
var tmp0 = $this.w58_1;
|
|
2182
2182
|
var tmp$ret$1;
|
|
2183
2183
|
$l$block: {
|
|
2184
2184
|
// Inline function 'kotlin.requireNotNull' call
|
|
@@ -2191,8 +2191,8 @@
|
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
2193
|
var allowedRequestTime = tmp$ret$1.rk(timeToWait);
|
|
2194
|
-
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.
|
|
2195
|
-
$this.
|
|
2194
|
+
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.w58_1) + ', ') + ('currentTime = ' + System_instance.ck().toString() + ', ') + ('failedRequestCount = ' + $this.x58_1), error);
|
|
2195
|
+
$this.q58_1.w('RandomPoolProvider', VOID, randomException);
|
|
2196
2196
|
return randomException;
|
|
2197
2197
|
}
|
|
2198
2198
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
@@ -2202,7 +2202,7 @@
|
|
|
2202
2202
|
return tmp.z8();
|
|
2203
2203
|
}
|
|
2204
2204
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2205
|
-
var existingCardDeck = $this.
|
|
2205
|
+
var existingCardDeck = $this.v58_1.b2(userData.gameId);
|
|
2206
2206
|
var tmp;
|
|
2207
2207
|
if (!(existingCardDeck == null)) {
|
|
2208
2208
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2218,13 +2218,13 @@
|
|
|
2218
2218
|
return tmp.z8();
|
|
2219
2219
|
}
|
|
2220
2220
|
function requestNewPool($this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2221
|
-
return withContext($this.
|
|
2221
|
+
return withContext($this.r58_1, RandomPoolProviderImpl$requestNewPool$slambda_0($this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2222
2222
|
}
|
|
2223
2223
|
function Companion_9() {
|
|
2224
|
-
this.
|
|
2225
|
-
this.
|
|
2226
|
-
this.
|
|
2227
|
-
this.
|
|
2224
|
+
this.e5a_1 = 100;
|
|
2225
|
+
this.f5a_1 = 3;
|
|
2226
|
+
this.g5a_1 = 3000;
|
|
2227
|
+
this.h5a_1 = 10000;
|
|
2228
2228
|
}
|
|
2229
2229
|
var Companion_instance_11;
|
|
2230
2230
|
function Companion_getInstance_12() {
|
|
@@ -2234,18 +2234,18 @@
|
|
|
2234
2234
|
return uuid4().toString();
|
|
2235
2235
|
}
|
|
2236
2236
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2237
|
-
this.
|
|
2238
|
-
this.
|
|
2239
|
-
this.
|
|
2240
|
-
this.
|
|
2241
|
-
this.
|
|
2242
|
-
this.
|
|
2243
|
-
this.
|
|
2244
|
-
this.
|
|
2237
|
+
this.q5a_1 = this$0;
|
|
2238
|
+
this.r5a_1 = $minRoundsCountInPool;
|
|
2239
|
+
this.s5a_1 = $userData;
|
|
2240
|
+
this.t5a_1 = $min;
|
|
2241
|
+
this.u5a_1 = $max;
|
|
2242
|
+
this.v5a_1 = $cardsCount;
|
|
2243
|
+
this.w5a_1 = $signed;
|
|
2244
|
+
this.x5a_1 = $requestDurationWarnMillis;
|
|
2245
2245
|
CoroutineImpl.call(this, resultContinuation);
|
|
2246
2246
|
}
|
|
2247
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2248
|
-
var tmp = this.
|
|
2247
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).d5b = function ($this$withContext, $completion) {
|
|
2248
|
+
var tmp = this.c2d($this$withContext, $completion);
|
|
2249
2249
|
tmp.t8_1 = Unit_instance;
|
|
2250
2250
|
tmp.u8_1 = null;
|
|
2251
2251
|
var tmp_0 = tmp.z8();
|
|
@@ -2254,7 +2254,7 @@
|
|
|
2254
2254
|
return tmp_0;
|
|
2255
2255
|
};
|
|
2256
2256
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).h9 = function (p1, $completion) {
|
|
2257
|
-
return this.
|
|
2257
|
+
return this.d5b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2258
2258
|
};
|
|
2259
2259
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).z8 = function () {
|
|
2260
2260
|
var suspendResult = this.t8_1;
|
|
@@ -2264,30 +2264,30 @@
|
|
|
2264
2264
|
switch (tmp) {
|
|
2265
2265
|
case 0:
|
|
2266
2266
|
this.s8_1 = 10;
|
|
2267
|
-
this.
|
|
2267
|
+
this.a5b_1 = this.q5a_1.t58_1;
|
|
2268
2268
|
var tmp_0 = this;
|
|
2269
|
-
tmp_0.
|
|
2269
|
+
tmp_0.z5a_1 = null;
|
|
2270
2270
|
this.r8_1 = 1;
|
|
2271
|
-
suspendResult = this.
|
|
2271
|
+
suspendResult = this.a5b_1.d2m(this.z5a_1, this);
|
|
2272
2272
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2273
2273
|
return suspendResult;
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
2276
2276
|
continue $sm;
|
|
2277
2277
|
case 1:
|
|
2278
|
-
this.
|
|
2278
|
+
this.b5b_1 = Unit_instance;
|
|
2279
2279
|
this.r8_1 = 2;
|
|
2280
2280
|
continue $sm;
|
|
2281
2281
|
case 2:
|
|
2282
2282
|
this.s8_1 = 9;
|
|
2283
|
-
this.
|
|
2283
|
+
this.c5b_1 = Unit_instance;
|
|
2284
2284
|
this.r8_1 = 3;
|
|
2285
2285
|
continue $sm;
|
|
2286
2286
|
case 3:
|
|
2287
|
-
var randomException = getExceptionIfCooldown(this.
|
|
2287
|
+
var randomException = getExceptionIfCooldown(this.q5a_1);
|
|
2288
2288
|
if (!(randomException == null)) {
|
|
2289
2289
|
var tmp_1 = this;
|
|
2290
|
-
tmp_1.
|
|
2290
|
+
tmp_1.c5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(randomException)));
|
|
2291
2291
|
this.r8_1 = 7;
|
|
2292
2292
|
continue $sm;
|
|
2293
2293
|
} else {
|
|
@@ -2298,7 +2298,7 @@
|
|
|
2298
2298
|
case 4:
|
|
2299
2299
|
this.s8_1 = 6;
|
|
2300
2300
|
this.r8_1 = 5;
|
|
2301
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2301
|
+
suspendResult = getOrLoadGameCardDeckData(this.q5a_1, this.r5a_1, this.s5a_1, this.t5a_1, this.u5a_1, this.v5a_1, this.w5a_1, this.x5a_1, this);
|
|
2302
2302
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2303
2303
|
return suspendResult;
|
|
2304
2304
|
}
|
|
@@ -2307,7 +2307,7 @@
|
|
|
2307
2307
|
case 5:
|
|
2308
2308
|
var cardDeckData = suspendResult;
|
|
2309
2309
|
var tmp_2 = this;
|
|
2310
|
-
tmp_2.
|
|
2310
|
+
tmp_2.c5b_1 = new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2311
2311
|
this.r8_1 = 7;
|
|
2312
2312
|
continue $sm;
|
|
2313
2313
|
case 6:
|
|
@@ -2316,8 +2316,8 @@
|
|
|
2316
2316
|
if (tmp_3 instanceof Error) {
|
|
2317
2317
|
var error = this.u8_1;
|
|
2318
2318
|
var tmp_4 = this;
|
|
2319
|
-
var exception = mapToRandomExceptionIfError(this.
|
|
2320
|
-
tmp_4.
|
|
2319
|
+
var exception = mapToRandomExceptionIfError(this.q5a_1, error);
|
|
2320
|
+
tmp_4.c5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2321
2321
|
this.r8_1 = 7;
|
|
2322
2322
|
continue $sm;
|
|
2323
2323
|
} else {
|
|
@@ -2325,19 +2325,19 @@
|
|
|
2325
2325
|
}
|
|
2326
2326
|
|
|
2327
2327
|
case 7:
|
|
2328
|
-
this.
|
|
2328
|
+
this.b5b_1 = this.c5b_1;
|
|
2329
2329
|
this.s8_1 = 10;
|
|
2330
2330
|
this.r8_1 = 8;
|
|
2331
2331
|
continue $sm;
|
|
2332
2332
|
case 8:
|
|
2333
|
-
var tmp_5 = this.
|
|
2333
|
+
var tmp_5 = this.b5b_1;
|
|
2334
2334
|
this.s8_1 = 10;
|
|
2335
|
-
this.
|
|
2335
|
+
this.a5b_1.o2l(this.z5a_1);
|
|
2336
2336
|
return tmp_5;
|
|
2337
2337
|
case 9:
|
|
2338
2338
|
this.s8_1 = 10;
|
|
2339
2339
|
var t = this.u8_1;
|
|
2340
|
-
this.
|
|
2340
|
+
this.a5b_1.o2l(this.z5a_1);
|
|
2341
2341
|
throw t;
|
|
2342
2342
|
case 10:
|
|
2343
2343
|
throw this.u8_1;
|
|
@@ -2353,30 +2353,30 @@
|
|
|
2353
2353
|
}
|
|
2354
2354
|
while (true);
|
|
2355
2355
|
};
|
|
2356
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2357
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2358
|
-
i.
|
|
2356
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).c2d = function ($this$withContext, completion) {
|
|
2357
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.q5a_1, this.r5a_1, this.s5a_1, this.t5a_1, this.u5a_1, this.v5a_1, this.w5a_1, this.x5a_1, completion);
|
|
2358
|
+
i.y5a_1 = $this$withContext;
|
|
2359
2359
|
return i;
|
|
2360
2360
|
};
|
|
2361
2361
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2362
2362
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2363
2363
|
var l = function ($this$withContext, $completion) {
|
|
2364
|
-
return i.
|
|
2364
|
+
return i.d5b($this$withContext, $completion);
|
|
2365
2365
|
};
|
|
2366
2366
|
l.$arity = 1;
|
|
2367
2367
|
return l;
|
|
2368
2368
|
}
|
|
2369
2369
|
function RandomPoolProviderImpl$prefetchCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2370
|
-
this.
|
|
2371
|
-
this.
|
|
2372
|
-
this.
|
|
2373
|
-
this.
|
|
2374
|
-
this.
|
|
2375
|
-
this.
|
|
2370
|
+
this.m5b_1 = this$0;
|
|
2371
|
+
this.n5b_1 = $min;
|
|
2372
|
+
this.o5b_1 = $max;
|
|
2373
|
+
this.p5b_1 = $cardsCount;
|
|
2374
|
+
this.q5b_1 = $signed;
|
|
2375
|
+
this.r5b_1 = $requestDurationWarnMillis;
|
|
2376
2376
|
CoroutineImpl.call(this, resultContinuation);
|
|
2377
2377
|
}
|
|
2378
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2379
|
-
var tmp = this.
|
|
2378
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).x5b = function ($this$withContext, $completion) {
|
|
2379
|
+
var tmp = this.c2d($this$withContext, $completion);
|
|
2380
2380
|
tmp.t8_1 = Unit_instance;
|
|
2381
2381
|
tmp.u8_1 = null;
|
|
2382
2382
|
var tmp_0 = tmp.z8();
|
|
@@ -2385,7 +2385,7 @@
|
|
|
2385
2385
|
return tmp_0;
|
|
2386
2386
|
};
|
|
2387
2387
|
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).h9 = function (p1, $completion) {
|
|
2388
|
-
return this.
|
|
2388
|
+
return this.x5b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2389
2389
|
};
|
|
2390
2390
|
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).z8 = function () {
|
|
2391
2391
|
var suspendResult = this.t8_1;
|
|
@@ -2395,30 +2395,30 @@
|
|
|
2395
2395
|
switch (tmp) {
|
|
2396
2396
|
case 0:
|
|
2397
2397
|
this.s8_1 = 10;
|
|
2398
|
-
this.
|
|
2398
|
+
this.u5b_1 = this.m5b_1.t58_1;
|
|
2399
2399
|
var tmp_0 = this;
|
|
2400
|
-
tmp_0.
|
|
2400
|
+
tmp_0.t5b_1 = null;
|
|
2401
2401
|
this.r8_1 = 1;
|
|
2402
|
-
suspendResult = this.
|
|
2402
|
+
suspendResult = this.u5b_1.d2m(this.t5b_1, this);
|
|
2403
2403
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2404
2404
|
return suspendResult;
|
|
2405
2405
|
}
|
|
2406
2406
|
|
|
2407
2407
|
continue $sm;
|
|
2408
2408
|
case 1:
|
|
2409
|
-
this.
|
|
2409
|
+
this.v5b_1 = Unit_instance;
|
|
2410
2410
|
this.r8_1 = 2;
|
|
2411
2411
|
continue $sm;
|
|
2412
2412
|
case 2:
|
|
2413
2413
|
this.s8_1 = 9;
|
|
2414
|
-
this.
|
|
2414
|
+
this.w5b_1 = Unit_instance;
|
|
2415
2415
|
this.r8_1 = 3;
|
|
2416
2416
|
continue $sm;
|
|
2417
2417
|
case 3:
|
|
2418
|
-
var randomException = getExceptionIfCooldown(this.
|
|
2418
|
+
var randomException = getExceptionIfCooldown(this.m5b_1);
|
|
2419
2419
|
if (!(randomException == null)) {
|
|
2420
2420
|
var tmp_1 = this;
|
|
2421
|
-
tmp_1.
|
|
2421
|
+
tmp_1.w5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(randomException)));
|
|
2422
2422
|
this.r8_1 = 7;
|
|
2423
2423
|
continue $sm;
|
|
2424
2424
|
} else {
|
|
@@ -2429,7 +2429,7 @@
|
|
|
2429
2429
|
case 4:
|
|
2430
2430
|
this.s8_1 = 6;
|
|
2431
2431
|
this.r8_1 = 5;
|
|
2432
|
-
suspendResult = requestNewPool(this.
|
|
2432
|
+
suspendResult = requestNewPool(this.m5b_1, this.n5b_1, this.o5b_1, this.p5b_1, this.q5b_1, this.r5b_1, this);
|
|
2433
2433
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2434
2434
|
return suspendResult;
|
|
2435
2435
|
}
|
|
@@ -2437,13 +2437,13 @@
|
|
|
2437
2437
|
continue $sm;
|
|
2438
2438
|
case 5:
|
|
2439
2439
|
var randomPoolValue = suspendResult;
|
|
2440
|
-
var tmp0 = this.
|
|
2441
|
-
var key = randomPoolValue.
|
|
2440
|
+
var tmp0 = this.m5b_1.u58_1;
|
|
2441
|
+
var key = randomPoolValue.y5b_1.h54_1;
|
|
2442
2442
|
tmp0.e2(key, randomPoolValue);
|
|
2443
|
-
this.
|
|
2444
|
-
this.
|
|
2443
|
+
this.m5b_1.x58_1 = 0;
|
|
2444
|
+
this.m5b_1.w58_1 = null;
|
|
2445
2445
|
var tmp_2 = this;
|
|
2446
|
-
tmp_2.
|
|
2446
|
+
tmp_2.w5b_1 = new Result(_Result___init__impl__xyqfz8(Unit_instance));
|
|
2447
2447
|
this.r8_1 = 7;
|
|
2448
2448
|
continue $sm;
|
|
2449
2449
|
case 6:
|
|
@@ -2452,8 +2452,8 @@
|
|
|
2452
2452
|
if (tmp_3 instanceof Error) {
|
|
2453
2453
|
var error = this.u8_1;
|
|
2454
2454
|
var tmp_4 = this;
|
|
2455
|
-
var exception = mapToRandomExceptionIfError(this.
|
|
2456
|
-
tmp_4.
|
|
2455
|
+
var exception = mapToRandomExceptionIfError(this.m5b_1, error);
|
|
2456
|
+
tmp_4.w5b_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2457
2457
|
this.r8_1 = 7;
|
|
2458
2458
|
continue $sm;
|
|
2459
2459
|
} else {
|
|
@@ -2461,19 +2461,19 @@
|
|
|
2461
2461
|
}
|
|
2462
2462
|
|
|
2463
2463
|
case 7:
|
|
2464
|
-
this.
|
|
2464
|
+
this.v5b_1 = this.w5b_1;
|
|
2465
2465
|
this.s8_1 = 10;
|
|
2466
2466
|
this.r8_1 = 8;
|
|
2467
2467
|
continue $sm;
|
|
2468
2468
|
case 8:
|
|
2469
|
-
var tmp_5 = this.
|
|
2469
|
+
var tmp_5 = this.v5b_1;
|
|
2470
2470
|
this.s8_1 = 10;
|
|
2471
|
-
this.
|
|
2471
|
+
this.u5b_1.o2l(this.t5b_1);
|
|
2472
2472
|
return tmp_5;
|
|
2473
2473
|
case 9:
|
|
2474
2474
|
this.s8_1 = 10;
|
|
2475
2475
|
var t = this.u8_1;
|
|
2476
|
-
this.
|
|
2476
|
+
this.u5b_1.o2l(this.t5b_1);
|
|
2477
2477
|
throw t;
|
|
2478
2478
|
case 10:
|
|
2479
2479
|
throw this.u8_1;
|
|
@@ -2489,36 +2489,36 @@
|
|
|
2489
2489
|
}
|
|
2490
2490
|
while (true);
|
|
2491
2491
|
};
|
|
2492
|
-
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).
|
|
2493
|
-
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this.
|
|
2494
|
-
i.
|
|
2492
|
+
protoOf(RandomPoolProviderImpl$prefetchCardDecks$slambda).c2d = function ($this$withContext, completion) {
|
|
2493
|
+
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this.m5b_1, this.n5b_1, this.o5b_1, this.p5b_1, this.q5b_1, this.r5b_1, completion);
|
|
2494
|
+
i.s5b_1 = $this$withContext;
|
|
2495
2495
|
return i;
|
|
2496
2496
|
};
|
|
2497
2497
|
function RandomPoolProviderImpl$prefetchCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2498
2498
|
var i = new RandomPoolProviderImpl$prefetchCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2499
2499
|
var l = function ($this$withContext, $completion) {
|
|
2500
|
-
return i.
|
|
2500
|
+
return i.x5b($this$withContext, $completion);
|
|
2501
2501
|
};
|
|
2502
2502
|
l.$arity = 1;
|
|
2503
2503
|
return l;
|
|
2504
2504
|
}
|
|
2505
2505
|
function RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2506
|
-
this.
|
|
2507
|
-
this.
|
|
2508
|
-
this.
|
|
2509
|
-
this.
|
|
2510
|
-
this.
|
|
2511
|
-
this.
|
|
2506
|
+
this.k5c_1 = this$0;
|
|
2507
|
+
this.l5c_1 = $min;
|
|
2508
|
+
this.m5c_1 = $max;
|
|
2509
|
+
this.n5c_1 = $cardsCount;
|
|
2510
|
+
this.o5c_1 = $signed;
|
|
2511
|
+
this.p5c_1 = $requestDurationWarnMillis;
|
|
2512
2512
|
CoroutineImpl.call(this, resultContinuation);
|
|
2513
2513
|
}
|
|
2514
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2515
|
-
var tmp = this.
|
|
2514
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).s5c = function ($this$withContext, $completion) {
|
|
2515
|
+
var tmp = this.c2d($this$withContext, $completion);
|
|
2516
2516
|
tmp.t8_1 = Unit_instance;
|
|
2517
2517
|
tmp.u8_1 = null;
|
|
2518
2518
|
return tmp.z8();
|
|
2519
2519
|
};
|
|
2520
2520
|
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).h9 = function (p1, $completion) {
|
|
2521
|
-
return this.
|
|
2521
|
+
return this.s5c((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2522
2522
|
};
|
|
2523
2523
|
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).z8 = function () {
|
|
2524
2524
|
var suspendResult = this.t8_1;
|
|
@@ -2528,9 +2528,9 @@
|
|
|
2528
2528
|
switch (tmp) {
|
|
2529
2529
|
case 0:
|
|
2530
2530
|
this.s8_1 = 2;
|
|
2531
|
-
this.
|
|
2531
|
+
this.r5c_1 = System_instance.ck();
|
|
2532
2532
|
this.r8_1 = 1;
|
|
2533
|
-
suspendResult = this.
|
|
2533
|
+
suspendResult = this.k5c_1.p58_1.a57(this.l5c_1, this.m5c_1, this.k5c_1.o58_1.poolSize, this.n5c_1, new CardDecksRequestUserData(this.k5c_1.s58_1(), this.k5c_1.o58_1.poolSize), this.o5c_1, this);
|
|
2534
2534
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2535
2535
|
return suspendResult;
|
|
2536
2536
|
}
|
|
@@ -2539,14 +2539,14 @@
|
|
|
2539
2539
|
case 1:
|
|
2540
2540
|
var result = suspendResult;
|
|
2541
2541
|
var requestEndTime = System_instance.ck();
|
|
2542
|
-
var requestDuration = requestEndTime.tk(this.
|
|
2542
|
+
var requestDuration = requestEndTime.tk(this.r5c_1);
|
|
2543
2543
|
Companion_getInstance_0();
|
|
2544
|
-
var this_0 = this.
|
|
2544
|
+
var this_0 = this.p5c_1;
|
|
2545
2545
|
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2546
2546
|
var tmp_0 = 'actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ';
|
|
2547
2547
|
Companion_getInstance_0();
|
|
2548
|
-
var this_1 = this.
|
|
2549
|
-
this.
|
|
2548
|
+
var this_1 = this.p5c_1;
|
|
2549
|
+
this.k5c_1.q58_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + tmp_0 + ('expected = ' + Duration__toString_impl_8d916b(toDuration(this_1, DurationUnit_MILLISECONDS_getInstance()))));
|
|
2550
2550
|
}
|
|
2551
2551
|
|
|
2552
2552
|
return new RandomPoolValue(result);
|
|
@@ -2564,29 +2564,29 @@
|
|
|
2564
2564
|
}
|
|
2565
2565
|
while (true);
|
|
2566
2566
|
};
|
|
2567
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2568
|
-
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.
|
|
2569
|
-
i.
|
|
2567
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).c2d = function ($this$withContext, completion) {
|
|
2568
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.k5c_1, this.l5c_1, this.m5c_1, this.n5c_1, this.o5c_1, this.p5c_1, completion);
|
|
2569
|
+
i.q5c_1 = $this$withContext;
|
|
2570
2570
|
return i;
|
|
2571
2571
|
};
|
|
2572
2572
|
function RandomPoolProviderImpl$requestNewPool$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2573
2573
|
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2574
2574
|
var l = function ($this$withContext, $completion) {
|
|
2575
|
-
return i.
|
|
2575
|
+
return i.s5c($this$withContext, $completion);
|
|
2576
2576
|
};
|
|
2577
2577
|
l.$arity = 1;
|
|
2578
2578
|
return l;
|
|
2579
2579
|
}
|
|
2580
2580
|
function $getOrLoadGameCardDeckDataCOROUTINE$(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2581
2581
|
CoroutineImpl.call(this, resultContinuation);
|
|
2582
|
-
this.
|
|
2583
|
-
this.
|
|
2584
|
-
this.
|
|
2585
|
-
this.
|
|
2586
|
-
this.
|
|
2587
|
-
this.
|
|
2588
|
-
this.
|
|
2589
|
-
this.
|
|
2582
|
+
this.g59_1 = _this__u8e3s4;
|
|
2583
|
+
this.h59_1 = minRoundsCountInPool;
|
|
2584
|
+
this.i59_1 = userData;
|
|
2585
|
+
this.j59_1 = min;
|
|
2586
|
+
this.k59_1 = max;
|
|
2587
|
+
this.l59_1 = cardsCount;
|
|
2588
|
+
this.m59_1 = signed;
|
|
2589
|
+
this.n59_1 = requestDurationWarnMillis;
|
|
2590
2590
|
}
|
|
2591
2591
|
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).z8 = function () {
|
|
2592
2592
|
var suspendResult = this.t8_1;
|
|
@@ -2596,9 +2596,9 @@
|
|
|
2596
2596
|
switch (tmp) {
|
|
2597
2597
|
case 0:
|
|
2598
2598
|
this.s8_1 = 2;
|
|
2599
|
-
var tmp0_gameId = this.
|
|
2599
|
+
var tmp0_gameId = this.i59_1.gameId;
|
|
2600
2600
|
this.r8_1 = 1;
|
|
2601
|
-
suspendResult = getPreparedOrRequestPool(this.
|
|
2601
|
+
suspendResult = getPreparedOrRequestPool(this.g59_1, tmp0_gameId, this.j59_1, this.k59_1, this.h59_1, this.l59_1, this.m59_1, this.n59_1, this);
|
|
2602
2602
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2603
2603
|
return suspendResult;
|
|
2604
2604
|
}
|
|
@@ -2606,15 +2606,15 @@
|
|
|
2606
2606
|
continue $sm;
|
|
2607
2607
|
case 1:
|
|
2608
2608
|
var randomPoolValue = suspendResult;
|
|
2609
|
-
var tmp0 = this.
|
|
2610
|
-
var key = randomPoolValue.
|
|
2609
|
+
var tmp0 = this.g59_1.u58_1;
|
|
2610
|
+
var key = randomPoolValue.y5b_1.h54_1;
|
|
2611
2611
|
tmp0.e2(key, randomPoolValue);
|
|
2612
|
-
var cardDeckData = randomPoolValue.
|
|
2613
|
-
var tmp1_poolId = randomPoolValue.
|
|
2614
|
-
var tmp2_signature = randomPoolValue.
|
|
2615
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2616
|
-
var tmp0_0 = this.
|
|
2617
|
-
var key_0 = this.
|
|
2612
|
+
var cardDeckData = randomPoolValue.t5c(this.i59_1.gameId);
|
|
2613
|
+
var tmp1_poolId = randomPoolValue.y5b_1.h54_1;
|
|
2614
|
+
var tmp2_signature = randomPoolValue.y5b_1.i54_1;
|
|
2615
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.g59_1, tmp1_poolId, tmp2_signature, cardDeckData, this.i59_1);
|
|
2616
|
+
var tmp0_0 = this.g59_1.v58_1;
|
|
2617
|
+
var key_0 = this.i59_1.gameId;
|
|
2618
2618
|
tmp0_0.e2(key_0, cardDecksRecord);
|
|
2619
2619
|
return cardDeckData;
|
|
2620
2620
|
case 2:
|
|
@@ -2633,14 +2633,14 @@
|
|
|
2633
2633
|
};
|
|
2634
2634
|
function $getPreparedOrRequestPoolCOROUTINE$(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2635
2635
|
CoroutineImpl.call(this, resultContinuation);
|
|
2636
|
-
this.
|
|
2637
|
-
this.
|
|
2638
|
-
this.
|
|
2639
|
-
this.
|
|
2640
|
-
this.
|
|
2641
|
-
this.
|
|
2642
|
-
this.
|
|
2643
|
-
this.
|
|
2636
|
+
this.w59_1 = _this__u8e3s4;
|
|
2637
|
+
this.x59_1 = gameId;
|
|
2638
|
+
this.y59_1 = min;
|
|
2639
|
+
this.z59_1 = max;
|
|
2640
|
+
this.a5a_1 = minRoundsCount;
|
|
2641
|
+
this.b5a_1 = cardsCount;
|
|
2642
|
+
this.c5a_1 = signed;
|
|
2643
|
+
this.d5a_1 = requestDurationWarnMillis;
|
|
2644
2644
|
}
|
|
2645
2645
|
protoOf($getPreparedOrRequestPoolCOROUTINE$).z8 = function () {
|
|
2646
2646
|
var suspendResult = this.t8_1;
|
|
@@ -2650,13 +2650,13 @@
|
|
|
2650
2650
|
switch (tmp) {
|
|
2651
2651
|
case 0:
|
|
2652
2652
|
this.s8_1 = 2;
|
|
2653
|
-
var tmp0 = this.
|
|
2653
|
+
var tmp0 = this.w59_1.u58_1;
|
|
2654
2654
|
var destination = LinkedHashMap_init_$Create$();
|
|
2655
2655
|
var _iterator__ex2g4s = tmp0.u().l();
|
|
2656
2656
|
while (_iterator__ex2g4s.m()) {
|
|
2657
2657
|
var element = _iterator__ex2g4s.n();
|
|
2658
|
-
var tmp0_0 = element.w().
|
|
2659
|
-
var key = this.
|
|
2658
|
+
var tmp0_0 = element.w().z5b_1;
|
|
2659
|
+
var key = this.x59_1;
|
|
2660
2660
|
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).z1(key)) {
|
|
2661
2661
|
destination.e2(element.v(), element.w());
|
|
2662
2662
|
}
|
|
@@ -2664,26 +2664,26 @@
|
|
|
2664
2664
|
|
|
2665
2665
|
var usedResultEntry = firstOrNull(destination.u());
|
|
2666
2666
|
if (!(usedResultEntry == null)) {
|
|
2667
|
-
return usedResultEntry.w().
|
|
2667
|
+
return usedResultEntry.w().u5c(this.x59_1);
|
|
2668
2668
|
}
|
|
2669
2669
|
|
|
2670
|
-
var tmp0_1 = this.
|
|
2670
|
+
var tmp0_1 = this.w59_1.u58_1;
|
|
2671
2671
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2672
2672
|
var _iterator__ex2g4s_0 = tmp0_1.u().l();
|
|
2673
2673
|
while (_iterator__ex2g4s_0.m()) {
|
|
2674
2674
|
var element_0 = _iterator__ex2g4s_0.n();
|
|
2675
|
-
if (element_0.w().
|
|
2675
|
+
if (element_0.w().v5c(this.a5a_1)) {
|
|
2676
2676
|
destination_0.e2(element_0.v(), element_0.w());
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
2679
|
|
|
2680
2680
|
var availableResultEntry = firstOrNull(destination_0.u());
|
|
2681
2681
|
if (!(availableResultEntry == null)) {
|
|
2682
|
-
return availableResultEntry.w().
|
|
2682
|
+
return availableResultEntry.w().w5c(this.x59_1, this.a5a_1, this.w59_1.o58_1.thresholdForUsedPool);
|
|
2683
2683
|
}
|
|
2684
2684
|
|
|
2685
2685
|
this.r8_1 = 1;
|
|
2686
|
-
suspendResult = requestNewPool(this.
|
|
2686
|
+
suspendResult = requestNewPool(this.w59_1, this.y59_1, this.z59_1, this.b5a_1, this.c5a_1, this.d5a_1, this);
|
|
2687
2687
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2688
2688
|
return suspendResult;
|
|
2689
2689
|
}
|
|
@@ -2691,7 +2691,7 @@
|
|
|
2691
2691
|
continue $sm;
|
|
2692
2692
|
case 1:
|
|
2693
2693
|
var cardDecks = suspendResult;
|
|
2694
|
-
return cardDecks.
|
|
2694
|
+
return cardDecks.w5c(this.x59_1, this.a5a_1, this.w59_1.o58_1.thresholdForUsedPool);
|
|
2695
2695
|
case 2:
|
|
2696
2696
|
throw this.u8_1;
|
|
2697
2697
|
}
|
|
@@ -2715,137 +2715,137 @@
|
|
|
2715
2715
|
tmp = idsProvider;
|
|
2716
2716
|
}
|
|
2717
2717
|
idsProvider = tmp;
|
|
2718
|
-
this.
|
|
2719
|
-
this.
|
|
2720
|
-
this.
|
|
2721
|
-
this.
|
|
2722
|
-
this.
|
|
2723
|
-
this.
|
|
2718
|
+
this.o58_1 = params;
|
|
2719
|
+
this.p58_1 = randomOrgApiService;
|
|
2720
|
+
this.q58_1 = logger;
|
|
2721
|
+
this.r58_1 = dispatcher;
|
|
2722
|
+
this.s58_1 = idsProvider;
|
|
2723
|
+
this.t58_1 = Mutex();
|
|
2724
2724
|
var tmp_0 = this;
|
|
2725
2725
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2726
|
-
tmp_0.
|
|
2726
|
+
tmp_0.u58_1 = LinkedHashMap_init_$Create$();
|
|
2727
2727
|
var tmp_1 = this;
|
|
2728
2728
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2729
|
-
tmp_1.
|
|
2730
|
-
this.
|
|
2731
|
-
this.
|
|
2729
|
+
tmp_1.v58_1 = LinkedHashMap_init_$Create$();
|
|
2730
|
+
this.w58_1 = null;
|
|
2731
|
+
this.x58_1 = 0;
|
|
2732
2732
|
}
|
|
2733
|
-
protoOf(RandomPoolProviderImpl).
|
|
2734
|
-
var tmp = withContext(this.
|
|
2733
|
+
protoOf(RandomPoolProviderImpl).k58 = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2734
|
+
var tmp = withContext(this.r58_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2735
2735
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2736
2736
|
return tmp;
|
|
2737
2737
|
return tmp;
|
|
2738
2738
|
};
|
|
2739
|
-
protoOf(RandomPoolProviderImpl).
|
|
2740
|
-
var tmp = withContext(this.
|
|
2739
|
+
protoOf(RandomPoolProviderImpl).m58 = function (min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2740
|
+
var tmp = withContext(this.r58_1, RandomPoolProviderImpl$prefetchCardDecks$slambda_0(this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2741
2741
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2742
2742
|
return tmp;
|
|
2743
2743
|
return tmp;
|
|
2744
2744
|
};
|
|
2745
|
-
protoOf(RandomPoolProviderImpl).
|
|
2746
|
-
return this.
|
|
2745
|
+
protoOf(RandomPoolProviderImpl).x5c = function (gameId) {
|
|
2746
|
+
return this.v58_1.b2(gameId);
|
|
2747
2747
|
};
|
|
2748
2748
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2749
|
-
return this.
|
|
2749
|
+
return this.x5c(gameId);
|
|
2750
2750
|
};
|
|
2751
|
-
protoOf(RandomPoolProviderImpl).
|
|
2752
|
-
return this.
|
|
2751
|
+
protoOf(RandomPoolProviderImpl).y5c = function (id) {
|
|
2752
|
+
return this.u58_1.b2(id);
|
|
2753
2753
|
};
|
|
2754
2754
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2755
|
-
return this.
|
|
2755
|
+
return this.y5c(id);
|
|
2756
2756
|
};
|
|
2757
|
-
protoOf(RandomPoolProviderImpl).
|
|
2758
|
-
return this.
|
|
2757
|
+
protoOf(RandomPoolProviderImpl).z5c = function () {
|
|
2758
|
+
return this.u58_1.o();
|
|
2759
2759
|
};
|
|
2760
2760
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2761
|
-
return this.
|
|
2761
|
+
return this.z5c();
|
|
2762
2762
|
};
|
|
2763
|
-
protoOf(RandomPoolProviderImpl).
|
|
2764
|
-
var gameCardDecksRecord = this.
|
|
2763
|
+
protoOf(RandomPoolProviderImpl).n58 = function (gameId) {
|
|
2764
|
+
var gameCardDecksRecord = this.v58_1.b2(gameId);
|
|
2765
2765
|
if (!(gameCardDecksRecord == null)) {
|
|
2766
|
-
var randomPoolValue = this.
|
|
2766
|
+
var randomPoolValue = this.u58_1.b2(gameCardDecksRecord.poolId);
|
|
2767
2767
|
if (!(randomPoolValue == null)) {
|
|
2768
2768
|
// Inline function 'kotlin.apply' call
|
|
2769
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2769
|
+
var this_0 = toMutableMap(randomPoolValue.z5b_1);
|
|
2770
2770
|
this_0.f2(gameId);
|
|
2771
|
-
var newPoolValue = randomPoolValue.
|
|
2772
|
-
if (newPoolValue.
|
|
2773
|
-
this.
|
|
2771
|
+
var newPoolValue = randomPoolValue.a5d(VOID, toMap(this_0));
|
|
2772
|
+
if (newPoolValue.z5b_1.r()) {
|
|
2773
|
+
this.u58_1.f2(gameCardDecksRecord.poolId);
|
|
2774
2774
|
} else {
|
|
2775
|
-
var tmp0 = this.
|
|
2775
|
+
var tmp0 = this.u58_1;
|
|
2776
2776
|
// Inline function 'kotlin.collections.set' call
|
|
2777
2777
|
var key = gameCardDecksRecord.poolId;
|
|
2778
2778
|
tmp0.e2(key, newPoolValue);
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
2781
2781
|
}
|
|
2782
|
-
this.
|
|
2782
|
+
this.v58_1.f2(gameId);
|
|
2783
2783
|
};
|
|
2784
2784
|
function _get_cardDecksCount__ihvb5i($this) {
|
|
2785
|
-
return $this.
|
|
2785
|
+
return $this.y5b_1.f54_1.o();
|
|
2786
2786
|
}
|
|
2787
2787
|
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2788
2788
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2789
2789
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2790
2790
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2791
|
-
this.
|
|
2792
|
-
this.
|
|
2793
|
-
this.
|
|
2794
|
-
this.
|
|
2791
|
+
this.y5b_1 = randomResult;
|
|
2792
|
+
this.z5b_1 = usedByGames;
|
|
2793
|
+
this.a5c_1 = reservedCardDecks;
|
|
2794
|
+
this.b5c_1 = isUsed;
|
|
2795
2795
|
}
|
|
2796
|
-
protoOf(RandomPoolValue).
|
|
2797
|
-
if (this.
|
|
2796
|
+
protoOf(RandomPoolValue).v5c = function (minRoundsCount) {
|
|
2797
|
+
if (this.b5c_1) {
|
|
2798
2798
|
return false;
|
|
2799
2799
|
}
|
|
2800
|
-
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.
|
|
2800
|
+
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.a5c_1 | 0;
|
|
2801
2801
|
return availableCount >= minRoundsCount;
|
|
2802
2802
|
};
|
|
2803
|
-
protoOf(RandomPoolValue).
|
|
2804
|
-
var previousReservedCardDeckIndex = this.
|
|
2803
|
+
protoOf(RandomPoolValue).w5c = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2804
|
+
var previousReservedCardDeckIndex = this.a5c_1;
|
|
2805
2805
|
// Inline function 'kotlin.apply' call
|
|
2806
|
-
var this_0 = toMutableMap(this.
|
|
2806
|
+
var this_0 = toMutableMap(this.z5b_1);
|
|
2807
2807
|
this_0.e2(gameId, previousReservedCardDeckIndex);
|
|
2808
2808
|
var newNewUsedBy = toMap(this_0);
|
|
2809
2809
|
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2810
|
-
return this.
|
|
2810
|
+
return this.a5d(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2811
2811
|
};
|
|
2812
|
-
protoOf(RandomPoolValue).
|
|
2813
|
-
var currentCardDeckIndex = getValue(this.
|
|
2812
|
+
protoOf(RandomPoolValue).u5c = function (gameId) {
|
|
2813
|
+
var currentCardDeckIndex = getValue(this.z5b_1, gameId);
|
|
2814
2814
|
var tmp;
|
|
2815
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2815
|
+
if (currentCardDeckIndex === get_lastIndex(this.y5b_1.f54_1)) {
|
|
2816
2816
|
tmp = 0;
|
|
2817
2817
|
} else {
|
|
2818
2818
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2819
2819
|
}
|
|
2820
2820
|
var newCardDeckIndex = tmp;
|
|
2821
2821
|
// Inline function 'kotlin.apply' call
|
|
2822
|
-
var this_0 = toMutableMap(this.
|
|
2822
|
+
var this_0 = toMutableMap(this.z5b_1);
|
|
2823
2823
|
this_0.e2(gameId, newCardDeckIndex);
|
|
2824
2824
|
var newNewUsedBy = toMap(this_0);
|
|
2825
|
-
return this.
|
|
2825
|
+
return this.a5d(VOID, newNewUsedBy);
|
|
2826
2826
|
};
|
|
2827
|
-
protoOf(RandomPoolValue).
|
|
2828
|
-
var index = getValue(this.
|
|
2829
|
-
return new GameCardDeckData(index, this.
|
|
2827
|
+
protoOf(RandomPoolValue).t5c = function (gameId) {
|
|
2828
|
+
var index = getValue(this.z5b_1, gameId);
|
|
2829
|
+
return new GameCardDeckData(index, this.y5b_1.f54_1.p(index));
|
|
2830
2830
|
};
|
|
2831
|
-
protoOf(RandomPoolValue).
|
|
2831
|
+
protoOf(RandomPoolValue).b5d = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2832
2832
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2833
2833
|
};
|
|
2834
|
-
protoOf(RandomPoolValue).
|
|
2835
|
-
randomResult = randomResult === VOID ? this.
|
|
2836
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2837
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2838
|
-
isUsed = isUsed === VOID ? this.
|
|
2839
|
-
return $super === VOID ? this.
|
|
2834
|
+
protoOf(RandomPoolValue).a5d = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2835
|
+
randomResult = randomResult === VOID ? this.y5b_1 : randomResult;
|
|
2836
|
+
usedByGames = usedByGames === VOID ? this.z5b_1 : usedByGames;
|
|
2837
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.a5c_1 : reservedCardDecks;
|
|
2838
|
+
isUsed = isUsed === VOID ? this.b5c_1 : isUsed;
|
|
2839
|
+
return $super === VOID ? this.b5d(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.b5d.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2840
2840
|
};
|
|
2841
2841
|
protoOf(RandomPoolValue).toString = function () {
|
|
2842
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2842
|
+
return 'RandomPoolValue(randomResult=' + this.y5b_1.toString() + ', usedByGames=' + toString(this.z5b_1) + ', reservedCardDecks=' + this.a5c_1 + ', isUsed=' + this.b5c_1 + ')';
|
|
2843
2843
|
};
|
|
2844
2844
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2845
|
-
var result = this.
|
|
2846
|
-
result = imul(result, 31) + hashCode(this.
|
|
2847
|
-
result = imul(result, 31) + this.
|
|
2848
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2845
|
+
var result = this.y5b_1.hashCode();
|
|
2846
|
+
result = imul(result, 31) + hashCode(this.z5b_1) | 0;
|
|
2847
|
+
result = imul(result, 31) + this.a5c_1 | 0;
|
|
2848
|
+
result = imul(result, 31) + getBooleanHashCode(this.b5c_1) | 0;
|
|
2849
2849
|
return result;
|
|
2850
2850
|
};
|
|
2851
2851
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2854,34 +2854,34 @@
|
|
|
2854
2854
|
if (!(other instanceof RandomPoolValue))
|
|
2855
2855
|
return false;
|
|
2856
2856
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2857
|
-
if (!this.
|
|
2857
|
+
if (!this.y5b_1.equals(tmp0_other_with_cast.y5b_1))
|
|
2858
2858
|
return false;
|
|
2859
|
-
if (!equals(this.
|
|
2859
|
+
if (!equals(this.z5b_1, tmp0_other_with_cast.z5b_1))
|
|
2860
2860
|
return false;
|
|
2861
|
-
if (!(this.
|
|
2861
|
+
if (!(this.a5c_1 === tmp0_other_with_cast.a5c_1))
|
|
2862
2862
|
return false;
|
|
2863
|
-
if (!(this.
|
|
2863
|
+
if (!(this.b5c_1 === tmp0_other_with_cast.b5c_1))
|
|
2864
2864
|
return false;
|
|
2865
2865
|
return true;
|
|
2866
2866
|
};
|
|
2867
2867
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2868
2868
|
return function ($this$defaultRequest) {
|
|
2869
2869
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2870
|
-
$this$defaultRequest.
|
|
2870
|
+
$this$defaultRequest.x40($url);
|
|
2871
2871
|
return Unit_instance;
|
|
2872
2872
|
};
|
|
2873
2873
|
}
|
|
2874
2874
|
function ApiCommonConfigs$setupLogging$2$1($externalLogger) {
|
|
2875
|
-
this.
|
|
2875
|
+
this.c5d_1 = $externalLogger;
|
|
2876
2876
|
}
|
|
2877
|
-
protoOf(ApiCommonConfigs$setupLogging$2$1).
|
|
2878
|
-
this.
|
|
2877
|
+
protoOf(ApiCommonConfigs$setupLogging$2$1).q4o = function (message) {
|
|
2878
|
+
this.c5d_1(message);
|
|
2879
2879
|
};
|
|
2880
2880
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2881
2881
|
return function ($this$install) {
|
|
2882
|
-
$this$install.
|
|
2883
|
-
$this$install.
|
|
2884
|
-
$this$install.
|
|
2882
|
+
$this$install.g4q(get_DEFAULT(Companion_instance_0));
|
|
2883
|
+
$this$install.f4q_1 = $config.f5d_1;
|
|
2884
|
+
$this$install.g4q(new ApiCommonConfigs$setupLogging$2$1($externalLogger));
|
|
2885
2885
|
return Unit_instance;
|
|
2886
2886
|
};
|
|
2887
2887
|
}
|
|
@@ -2893,22 +2893,22 @@
|
|
|
2893
2893
|
}
|
|
2894
2894
|
function ApiCommonConfigs() {
|
|
2895
2895
|
}
|
|
2896
|
-
protoOf(ApiCommonConfigs).
|
|
2897
|
-
_this__u8e3s4.
|
|
2898
|
-
this.
|
|
2899
|
-
this.
|
|
2900
|
-
this.
|
|
2896
|
+
protoOf(ApiCommonConfigs).h5d = function (_this__u8e3s4, config, externalLogger) {
|
|
2897
|
+
_this__u8e3s4.x3s_1 = true;
|
|
2898
|
+
this.i5d(_this__u8e3s4, config.d5d_1);
|
|
2899
|
+
this.j5d(_this__u8e3s4, config.g5d_1);
|
|
2900
|
+
this.k5d(_this__u8e3s4, config, externalLogger);
|
|
2901
2901
|
};
|
|
2902
|
-
protoOf(ApiCommonConfigs).
|
|
2902
|
+
protoOf(ApiCommonConfigs).i5d = function (_this__u8e3s4, url) {
|
|
2903
2903
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2904
2904
|
};
|
|
2905
|
-
protoOf(ApiCommonConfigs).
|
|
2905
|
+
protoOf(ApiCommonConfigs).k5d = function (_this__u8e3s4, config, externalLogger) {
|
|
2906
2906
|
var tmp = Companion_getInstance_1();
|
|
2907
|
-
_this__u8e3s4.
|
|
2907
|
+
_this__u8e3s4.s3t(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2908
2908
|
};
|
|
2909
|
-
protoOf(ApiCommonConfigs).
|
|
2909
|
+
protoOf(ApiCommonConfigs).j5d = function (_this__u8e3s4, json) {
|
|
2910
2910
|
var tmp = Plugin_getInstance();
|
|
2911
|
-
_this__u8e3s4.
|
|
2911
|
+
_this__u8e3s4.s3t(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2912
2912
|
};
|
|
2913
2913
|
var ApiCommonConfigs_instance;
|
|
2914
2914
|
function ApiCommonConfigs_getInstance() {
|
|
@@ -2931,19 +2931,19 @@
|
|
|
2931
2931
|
tmp = json;
|
|
2932
2932
|
}
|
|
2933
2933
|
json = tmp;
|
|
2934
|
-
this.
|
|
2935
|
-
this.
|
|
2936
|
-
this.
|
|
2937
|
-
this.
|
|
2934
|
+
this.d5d_1 = baseUrl;
|
|
2935
|
+
this.e5d_1 = timeoutMillis;
|
|
2936
|
+
this.f5d_1 = loggingLevel;
|
|
2937
|
+
this.g5d_1 = json;
|
|
2938
2938
|
}
|
|
2939
2939
|
protoOf(HttpParams).toString = function () {
|
|
2940
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2940
|
+
return 'HttpParams(baseUrl=' + this.d5d_1 + ', timeoutMillis=' + this.e5d_1.toString() + ', loggingLevel=' + this.f5d_1.toString() + ', json=' + toString(this.g5d_1) + ')';
|
|
2941
2941
|
};
|
|
2942
2942
|
protoOf(HttpParams).hashCode = function () {
|
|
2943
|
-
var result = getStringHashCode(this.
|
|
2944
|
-
result = imul(result, 31) + this.
|
|
2945
|
-
result = imul(result, 31) + this.
|
|
2946
|
-
result = imul(result, 31) + hashCode(this.
|
|
2943
|
+
var result = getStringHashCode(this.d5d_1);
|
|
2944
|
+
result = imul(result, 31) + this.e5d_1.hashCode() | 0;
|
|
2945
|
+
result = imul(result, 31) + this.f5d_1.hashCode() | 0;
|
|
2946
|
+
result = imul(result, 31) + hashCode(this.g5d_1) | 0;
|
|
2947
2947
|
return result;
|
|
2948
2948
|
};
|
|
2949
2949
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2952,13 +2952,13 @@
|
|
|
2952
2952
|
if (!(other instanceof HttpParams))
|
|
2953
2953
|
return false;
|
|
2954
2954
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2955
|
-
if (!(this.
|
|
2955
|
+
if (!(this.d5d_1 === tmp0_other_with_cast.d5d_1))
|
|
2956
2956
|
return false;
|
|
2957
|
-
if (!equalsLong(this.
|
|
2957
|
+
if (!equalsLong(this.e5d_1, tmp0_other_with_cast.e5d_1))
|
|
2958
2958
|
return false;
|
|
2959
|
-
if (!this.
|
|
2959
|
+
if (!this.f5d_1.equals(tmp0_other_with_cast.f5d_1))
|
|
2960
2960
|
return false;
|
|
2961
|
-
if (!equals(this.
|
|
2961
|
+
if (!equals(this.g5d_1, tmp0_other_with_cast.g5d_1))
|
|
2962
2962
|
return false;
|
|
2963
2963
|
return true;
|
|
2964
2964
|
};
|
|
@@ -2982,12 +2982,12 @@
|
|
|
2982
2982
|
}
|
|
2983
2983
|
function nextBytesCopyTo($this, bytes) {
|
|
2984
2984
|
try {
|
|
2985
|
-
$this.
|
|
2985
|
+
$this.m5d_1.q1o(bytes);
|
|
2986
2986
|
} catch ($p) {
|
|
2987
2987
|
if ($p instanceof SecRandomCopyException) {
|
|
2988
2988
|
var error = $p;
|
|
2989
|
-
$this.
|
|
2990
|
-
$this.
|
|
2989
|
+
$this.l5d_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2990
|
+
$this.n5d_1.qg(bytes);
|
|
2991
2991
|
return Unit_instance;
|
|
2992
2992
|
} else {
|
|
2993
2993
|
throw $p;
|
|
@@ -3011,9 +3011,9 @@
|
|
|
3011
3011
|
}
|
|
3012
3012
|
function SecureRandom_0(logger) {
|
|
3013
3013
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
3014
|
-
this.
|
|
3015
|
-
this.
|
|
3016
|
-
this.
|
|
3014
|
+
this.l5d_1 = logger;
|
|
3015
|
+
this.m5d_1 = new SecureRandom();
|
|
3016
|
+
this.n5d_1 = Default_getInstance();
|
|
3017
3017
|
}
|
|
3018
3018
|
protoOf(SecureRandom_0).og = function (from, until) {
|
|
3019
3019
|
checkRangeBounds(this, from, until);
|
|
@@ -3042,7 +3042,7 @@
|
|
|
3042
3042
|
}
|
|
3043
3043
|
}
|
|
3044
3044
|
};
|
|
3045
|
-
protoOf(SecureRandom_0).
|
|
3045
|
+
protoOf(SecureRandom_0).p5d = function () {
|
|
3046
3046
|
return !(nextBits(this, 1) === 0);
|
|
3047
3047
|
};
|
|
3048
3048
|
function CustomRandom() {
|
|
@@ -3063,7 +3063,7 @@
|
|
|
3063
3063
|
while (pile.o() > 0) {
|
|
3064
3064
|
var tmp0 = pile.o();
|
|
3065
3065
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
3066
|
-
var b = 1 + random.
|
|
3066
|
+
var b = 1 + random.o5d(VOID, twentypc) | 0;
|
|
3067
3067
|
var cards = Math.min(tmp0, b);
|
|
3068
3068
|
pile2.j2(0, take(pile, cards));
|
|
3069
3069
|
// Inline function 'kotlin.repeat' call
|
|
@@ -3094,11 +3094,11 @@
|
|
|
3094
3094
|
inductionVariable = inductionVariable + 1 | 0;
|
|
3095
3095
|
var mid = deck.o() / 2 | 0;
|
|
3096
3096
|
var tenpc = mid / 10 | 0;
|
|
3097
|
-
var cut = (mid - tenpc | 0) + random.
|
|
3097
|
+
var cut = (mid - tenpc | 0) + random.o5d(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
3098
3098
|
var deck1 = toMutableList(take(pile, cut));
|
|
3099
3099
|
var deck2 = toMutableList(drop(pile, cut));
|
|
3100
3100
|
pile.h2();
|
|
3101
|
-
var fromTop = random.
|
|
3101
|
+
var fromTop = random.p5d();
|
|
3102
3102
|
while (deck1.o() > 0 && deck2.o() > 0) {
|
|
3103
3103
|
if (fromTop) {
|
|
3104
3104
|
pile.j(deck1.n2(0));
|
|
@@ -3120,22 +3120,22 @@
|
|
|
3120
3120
|
}
|
|
3121
3121
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
3122
3122
|
return function ($this$install) {
|
|
3123
|
-
$this$install.
|
|
3124
|
-
$this$install.
|
|
3123
|
+
$this$install.i4b($config.e5d_1);
|
|
3124
|
+
$this$install.g4b($config.e5d_1);
|
|
3125
3125
|
return Unit_instance;
|
|
3126
3126
|
};
|
|
3127
3127
|
}
|
|
3128
3128
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
3129
3129
|
return function ($this$HttpClient) {
|
|
3130
3130
|
var tmp = Plugin_getInstance_0();
|
|
3131
|
-
$this$HttpClient.
|
|
3132
|
-
ApiCommonConfigs_instance.
|
|
3131
|
+
$this$HttpClient.s3t(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
3132
|
+
ApiCommonConfigs_instance.h5d($this$HttpClient, $config, $externalLogger);
|
|
3133
3133
|
return Unit_instance;
|
|
3134
3134
|
};
|
|
3135
3135
|
}
|
|
3136
3136
|
function HttpFactory() {
|
|
3137
3137
|
}
|
|
3138
|
-
protoOf(HttpFactory).
|
|
3138
|
+
protoOf(HttpFactory).r5d = function (config, externalLogger) {
|
|
3139
3139
|
var tmp = Js_instance;
|
|
3140
3140
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
3141
3141
|
};
|
|
@@ -3150,9 +3150,9 @@
|
|
|
3150
3150
|
protoOf($serializer_3).wz = typeParametersSerializers;
|
|
3151
3151
|
protoOf($serializer_5).wz = typeParametersSerializers;
|
|
3152
3152
|
protoOf($serializer_6).wz = typeParametersSerializers;
|
|
3153
|
-
protoOf(RandomPoolProviderImpl).
|
|
3154
|
-
protoOf(SecureRandom_0).
|
|
3155
|
-
protoOf(SecureRandom_0).
|
|
3153
|
+
protoOf(RandomPoolProviderImpl).l58 = getCardDeck$default;
|
|
3154
|
+
protoOf(SecureRandom_0).o5d = nextInt$default;
|
|
3155
|
+
protoOf(SecureRandom_0).q5d = shuffle;
|
|
3156
3156
|
//endregion
|
|
3157
3157
|
//region block: init
|
|
3158
3158
|
Companion_instance_1 = new Companion();
|