raspberry_games_server_game_logic 1.8.282 → 1.8.283
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kosi-Kaverit-kaverit.js +56 -56
- package/Kosi-Kodein-kodein-di.js +526 -526
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1355 -1355
- package/Logic_Debertz-core.js +1510 -1510
- package/Logic_Debertz-engine.js +14655 -14595
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_server.d.ts +1 -1
- package/Logic_Debertz-game_server.js +941 -939
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +10 -10
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2189 -2189
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +311 -311
- package/kotlinx-serialization-kotlinx-serialization-core.js +1720 -1720
- package/kotlinx-serialization-kotlinx-serialization-json.js +1306 -1306
- package/ktor-ktor-client-content-negotiation.js +133 -133
- package/ktor-ktor-client-core.js +1515 -1515
- package/ktor-ktor-client-logging.js +278 -278
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +584 -584
- package/ktor-ktor-io.js +1246 -1246
- package/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/ktor-ktor-serialization-kotlinx.js +136 -136
- package/ktor-ktor-serialization.js +62 -62
- package/ktor-ktor-utils.js +489 -489
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +159 -159
- package/raspberry-cardgame-lib-logger.js +13 -24
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +773 -773
- package/secure-random-secure-random.js +5 -5
- package/uuid.js +11 -11
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
202
202
|
signed = signed === VOID ? false : signed;
|
|
203
203
|
timeoutMillis = timeoutMillis === VOID ? new Long(7000, 0) : timeoutMillis;
|
|
204
|
-
return $super === VOID ? this.
|
|
204
|
+
return $super === VOID ? this.e5r(minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) : $super.e5r.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion);
|
|
205
205
|
}
|
|
206
206
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7]);
|
|
207
207
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
233
233
|
//endregion
|
|
234
234
|
function Companion() {
|
|
235
|
-
this.
|
|
235
|
+
this.i5m_1 = 100001;
|
|
236
236
|
}
|
|
237
237
|
var Companion_instance_1;
|
|
238
238
|
function Companion_getInstance_2() {
|
|
@@ -243,16 +243,16 @@
|
|
|
243
243
|
cause = cause === VOID ? null : cause;
|
|
244
244
|
RuntimeException_init_$Init$(message, cause, this);
|
|
245
245
|
captureStack(this, RandomException);
|
|
246
|
-
this.
|
|
246
|
+
this.j5m_1 = code;
|
|
247
247
|
}
|
|
248
248
|
function CardDecksRequestUserData(id, count) {
|
|
249
249
|
this.id = id;
|
|
250
250
|
this.count = count;
|
|
251
251
|
}
|
|
252
|
-
protoOf(CardDecksRequestUserData).
|
|
252
|
+
protoOf(CardDecksRequestUserData).d5l = function () {
|
|
253
253
|
return this.id;
|
|
254
254
|
};
|
|
255
|
-
protoOf(CardDecksRequestUserData).
|
|
255
|
+
protoOf(CardDecksRequestUserData).k5m = function () {
|
|
256
256
|
return this.count;
|
|
257
257
|
};
|
|
258
258
|
protoOf(CardDecksRequestUserData).pe = function () {
|
|
@@ -261,13 +261,13 @@
|
|
|
261
261
|
protoOf(CardDecksRequestUserData).qe = function () {
|
|
262
262
|
return this.count;
|
|
263
263
|
};
|
|
264
|
-
protoOf(CardDecksRequestUserData).
|
|
264
|
+
protoOf(CardDecksRequestUserData).l5m = function (id, count) {
|
|
265
265
|
return new CardDecksRequestUserData(id, count);
|
|
266
266
|
};
|
|
267
267
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
268
268
|
id = id === VOID ? this.id : id;
|
|
269
269
|
count = count === VOID ? this.count : count;
|
|
270
|
-
return this.
|
|
270
|
+
return this.l5m(id, count);
|
|
271
271
|
};
|
|
272
272
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
273
273
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -293,10 +293,10 @@
|
|
|
293
293
|
this.players = players;
|
|
294
294
|
this.gameId = gameId;
|
|
295
295
|
}
|
|
296
|
-
protoOf(CardDeckRequestUserData).
|
|
296
|
+
protoOf(CardDeckRequestUserData).m5m = function () {
|
|
297
297
|
return this.players;
|
|
298
298
|
};
|
|
299
|
-
protoOf(CardDeckRequestUserData).
|
|
299
|
+
protoOf(CardDeckRequestUserData).n5m = function () {
|
|
300
300
|
return this.gameId;
|
|
301
301
|
};
|
|
302
302
|
protoOf(CardDeckRequestUserData).pe = function () {
|
|
@@ -305,13 +305,13 @@
|
|
|
305
305
|
protoOf(CardDeckRequestUserData).qe = function () {
|
|
306
306
|
return this.gameId;
|
|
307
307
|
};
|
|
308
|
-
protoOf(CardDeckRequestUserData).
|
|
308
|
+
protoOf(CardDeckRequestUserData).o5m = function (players, gameId) {
|
|
309
309
|
return new CardDeckRequestUserData(players, gameId);
|
|
310
310
|
};
|
|
311
311
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
312
312
|
players = players === VOID ? this.players : players;
|
|
313
313
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
314
|
-
return this.
|
|
314
|
+
return this.o5m(players, gameId);
|
|
315
315
|
};
|
|
316
316
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
317
317
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
this.id = id;
|
|
338
338
|
this.name = name;
|
|
339
339
|
}
|
|
340
|
-
protoOf(UserInfoData).
|
|
340
|
+
protoOf(UserInfoData).d5l = function () {
|
|
341
341
|
return this.id;
|
|
342
342
|
};
|
|
343
343
|
protoOf(UserInfoData).o2 = function () {
|
|
@@ -349,13 +349,13 @@
|
|
|
349
349
|
protoOf(UserInfoData).qe = function () {
|
|
350
350
|
return this.name;
|
|
351
351
|
};
|
|
352
|
-
protoOf(UserInfoData).
|
|
352
|
+
protoOf(UserInfoData).p5m = function (id, name) {
|
|
353
353
|
return new UserInfoData(id, name);
|
|
354
354
|
};
|
|
355
355
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
356
356
|
id = id === VOID ? this.id : id;
|
|
357
357
|
name = name === VOID ? this.name : name;
|
|
358
|
-
return this.
|
|
358
|
+
return this.p5m(id, name);
|
|
359
359
|
};
|
|
360
360
|
protoOf(UserInfoData).toString = function () {
|
|
361
361
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -378,19 +378,19 @@
|
|
|
378
378
|
return true;
|
|
379
379
|
};
|
|
380
380
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
381
|
+
this.q5m_1 = cardDecks;
|
|
382
|
+
this.r5m_1 = responseText;
|
|
383
|
+
this.s5m_1 = id;
|
|
384
|
+
this.t5m_1 = signature;
|
|
385
385
|
}
|
|
386
386
|
protoOf(CardDeckResult).toString = function () {
|
|
387
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
387
|
+
return 'CardDeckResult(cardDecks=' + toString(this.q5m_1) + ', responseText=' + this.r5m_1 + ', id=' + this.s5m_1 + ', signature=' + this.t5m_1 + ')';
|
|
388
388
|
};
|
|
389
389
|
protoOf(CardDeckResult).hashCode = function () {
|
|
390
|
-
var result = hashCode(this.
|
|
390
|
+
var result = hashCode(this.q5m_1);
|
|
391
|
+
result = imul(result, 31) + getStringHashCode(this.r5m_1) | 0;
|
|
391
392
|
result = imul(result, 31) + getStringHashCode(this.s5m_1) | 0;
|
|
392
|
-
result = imul(result, 31) + getStringHashCode(this.t5m_1) | 0;
|
|
393
|
-
result = imul(result, 31) + (this.u5m_1 == null ? 0 : getStringHashCode(this.u5m_1)) | 0;
|
|
393
|
+
result = imul(result, 31) + (this.t5m_1 == null ? 0 : getStringHashCode(this.t5m_1)) | 0;
|
|
394
394
|
return result;
|
|
395
395
|
};
|
|
396
396
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -399,13 +399,13 @@
|
|
|
399
399
|
if (!(other instanceof CardDeckResult))
|
|
400
400
|
return false;
|
|
401
401
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
402
|
-
if (!equals(this.
|
|
402
|
+
if (!equals(this.q5m_1, tmp0_other_with_cast.q5m_1))
|
|
403
403
|
return false;
|
|
404
|
-
if (!(this.
|
|
404
|
+
if (!(this.r5m_1 === tmp0_other_with_cast.r5m_1))
|
|
405
405
|
return false;
|
|
406
|
-
if (!(this.
|
|
406
|
+
if (!(this.s5m_1 === tmp0_other_with_cast.s5m_1))
|
|
407
407
|
return false;
|
|
408
|
-
if (!(this.
|
|
408
|
+
if (!(this.t5m_1 == tmp0_other_with_cast.t5m_1))
|
|
409
409
|
return false;
|
|
410
410
|
return true;
|
|
411
411
|
};
|
|
@@ -428,16 +428,16 @@
|
|
|
428
428
|
this.userData = userData;
|
|
429
429
|
this.rounds = rounds;
|
|
430
430
|
}
|
|
431
|
-
protoOf(GameCardDecksRecord).
|
|
431
|
+
protoOf(GameCardDecksRecord).u5m = function () {
|
|
432
432
|
return this.poolId;
|
|
433
433
|
};
|
|
434
|
-
protoOf(GameCardDecksRecord).
|
|
434
|
+
protoOf(GameCardDecksRecord).v5m = function () {
|
|
435
435
|
return this.signature;
|
|
436
436
|
};
|
|
437
|
-
protoOf(GameCardDecksRecord).
|
|
437
|
+
protoOf(GameCardDecksRecord).w5m = function () {
|
|
438
438
|
return this.userData;
|
|
439
439
|
};
|
|
440
|
-
protoOf(GameCardDecksRecord).
|
|
440
|
+
protoOf(GameCardDecksRecord).x5m = function () {
|
|
441
441
|
return this.rounds;
|
|
442
442
|
};
|
|
443
443
|
protoOf(GameCardDecksRecord).pe = function () {
|
|
@@ -449,10 +449,10 @@
|
|
|
449
449
|
protoOf(GameCardDecksRecord).hk = function () {
|
|
450
450
|
return this.userData;
|
|
451
451
|
};
|
|
452
|
-
protoOf(GameCardDecksRecord).
|
|
452
|
+
protoOf(GameCardDecksRecord).y5m = function () {
|
|
453
453
|
return this.rounds;
|
|
454
454
|
};
|
|
455
|
-
protoOf(GameCardDecksRecord).
|
|
455
|
+
protoOf(GameCardDecksRecord).z5m = function (poolId, signature, userData, rounds) {
|
|
456
456
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
457
457
|
};
|
|
458
458
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
signature = signature === VOID ? this.signature : signature;
|
|
461
461
|
userData = userData === VOID ? this.userData : userData;
|
|
462
462
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
463
|
-
return this.
|
|
463
|
+
return this.z5m(poolId, signature, userData, rounds);
|
|
464
464
|
};
|
|
465
465
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
466
466
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -492,10 +492,10 @@
|
|
|
492
492
|
this.cardDeckIndex = cardDeckIndex;
|
|
493
493
|
this.cards = cards;
|
|
494
494
|
}
|
|
495
|
-
protoOf(GameCardDeckData).
|
|
495
|
+
protoOf(GameCardDeckData).a5n = function () {
|
|
496
496
|
return this.cardDeckIndex;
|
|
497
497
|
};
|
|
498
|
-
protoOf(GameCardDeckData).
|
|
498
|
+
protoOf(GameCardDeckData).b5n = function () {
|
|
499
499
|
return this.cards;
|
|
500
500
|
};
|
|
501
501
|
protoOf(GameCardDeckData).pe = function () {
|
|
@@ -504,13 +504,13 @@
|
|
|
504
504
|
protoOf(GameCardDeckData).qe = function () {
|
|
505
505
|
return this.cards;
|
|
506
506
|
};
|
|
507
|
-
protoOf(GameCardDeckData).
|
|
507
|
+
protoOf(GameCardDeckData).c5n = function (cardDeckIndex, cards) {
|
|
508
508
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
509
509
|
};
|
|
510
510
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
511
511
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
512
512
|
cards = cards === VOID ? this.cards : cards;
|
|
513
|
-
return this.
|
|
513
|
+
return this.c5n(cardDeckIndex, cards);
|
|
514
514
|
};
|
|
515
515
|
protoOf(GameCardDeckData).toString = function () {
|
|
516
516
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -537,10 +537,10 @@
|
|
|
537
537
|
this.baseUrl = baseUrl;
|
|
538
538
|
this.timeoutMillis = timeoutMillis;
|
|
539
539
|
}
|
|
540
|
-
protoOf(HttpConfig).
|
|
540
|
+
protoOf(HttpConfig).d5n = function () {
|
|
541
541
|
return this.baseUrl;
|
|
542
542
|
};
|
|
543
|
-
protoOf(HttpConfig).
|
|
543
|
+
protoOf(HttpConfig).e5n = function () {
|
|
544
544
|
return this.timeoutMillis;
|
|
545
545
|
};
|
|
546
546
|
protoOf(HttpConfig).pe = function () {
|
|
@@ -549,13 +549,13 @@
|
|
|
549
549
|
protoOf(HttpConfig).qe = function () {
|
|
550
550
|
return this.timeoutMillis;
|
|
551
551
|
};
|
|
552
|
-
protoOf(HttpConfig).
|
|
552
|
+
protoOf(HttpConfig).l5m = function (baseUrl, timeoutMillis) {
|
|
553
553
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
554
554
|
};
|
|
555
555
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
556
556
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
557
557
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
558
|
-
return this.
|
|
558
|
+
return this.l5m(baseUrl, timeoutMillis);
|
|
559
559
|
};
|
|
560
560
|
protoOf(HttpConfig).toString = function () {
|
|
561
561
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -590,16 +590,16 @@
|
|
|
590
590
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
591
591
|
this.httpConfig = httpConfig;
|
|
592
592
|
}
|
|
593
|
-
protoOf(RandomOrgConfig).
|
|
593
|
+
protoOf(RandomOrgConfig).f5n = function () {
|
|
594
594
|
return this.apiKey;
|
|
595
595
|
};
|
|
596
|
-
protoOf(RandomOrgConfig).
|
|
596
|
+
protoOf(RandomOrgConfig).g5n = function () {
|
|
597
597
|
return this.poolSize;
|
|
598
598
|
};
|
|
599
|
-
protoOf(RandomOrgConfig).
|
|
599
|
+
protoOf(RandomOrgConfig).h5n = function () {
|
|
600
600
|
return this.thresholdForUsedPool;
|
|
601
601
|
};
|
|
602
|
-
protoOf(RandomOrgConfig).
|
|
602
|
+
protoOf(RandomOrgConfig).i5n = function () {
|
|
603
603
|
return this.httpConfig;
|
|
604
604
|
};
|
|
605
605
|
protoOf(RandomOrgConfig).pe = function () {
|
|
@@ -611,10 +611,10 @@
|
|
|
611
611
|
protoOf(RandomOrgConfig).hk = function () {
|
|
612
612
|
return this.thresholdForUsedPool;
|
|
613
613
|
};
|
|
614
|
-
protoOf(RandomOrgConfig).
|
|
614
|
+
protoOf(RandomOrgConfig).y5m = function () {
|
|
615
615
|
return this.httpConfig;
|
|
616
616
|
};
|
|
617
|
-
protoOf(RandomOrgConfig).
|
|
617
|
+
protoOf(RandomOrgConfig).j5n = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
618
618
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
619
619
|
};
|
|
620
620
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
623
623
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
624
624
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
625
|
-
return this.
|
|
625
|
+
return this.j5n(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
626
626
|
};
|
|
627
627
|
protoOf(RandomOrgConfig).toString = function () {
|
|
628
628
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -659,59 +659,59 @@
|
|
|
659
659
|
function $serializer() {
|
|
660
660
|
$serializer_instance = this;
|
|
661
661
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
662
|
-
tmp0_serialDesc.
|
|
663
|
-
tmp0_serialDesc.
|
|
664
|
-
this.
|
|
665
|
-
}
|
|
666
|
-
protoOf($serializer).
|
|
667
|
-
var tmp0_desc = this.
|
|
668
|
-
var tmp1_output = encoder.
|
|
669
|
-
tmp1_output.
|
|
670
|
-
tmp1_output.
|
|
671
|
-
tmp1_output.
|
|
672
|
-
};
|
|
673
|
-
protoOf($serializer).
|
|
674
|
-
return this.
|
|
675
|
-
};
|
|
676
|
-
protoOf($serializer).
|
|
677
|
-
var tmp0_desc = this.
|
|
662
|
+
tmp0_serialDesc.v4f('jsonrpc', false);
|
|
663
|
+
tmp0_serialDesc.v4f('error', false);
|
|
664
|
+
this.k5n_1 = tmp0_serialDesc;
|
|
665
|
+
}
|
|
666
|
+
protoOf($serializer).l5n = function (encoder, value) {
|
|
667
|
+
var tmp0_desc = this.k5n_1;
|
|
668
|
+
var tmp1_output = encoder.h48(tmp0_desc);
|
|
669
|
+
tmp1_output.v49(tmp0_desc, 0, value.m5n_1);
|
|
670
|
+
tmp1_output.z49(tmp0_desc, 1, $serializer_getInstance_0(), value.n5n_1);
|
|
671
|
+
tmp1_output.i48(tmp0_desc);
|
|
672
|
+
};
|
|
673
|
+
protoOf($serializer).u44 = function (encoder, value) {
|
|
674
|
+
return this.l5n(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
675
|
+
};
|
|
676
|
+
protoOf($serializer).v44 = function (decoder) {
|
|
677
|
+
var tmp0_desc = this.k5n_1;
|
|
678
678
|
var tmp1_flag = true;
|
|
679
679
|
var tmp2_index = 0;
|
|
680
680
|
var tmp3_bitMask0 = 0;
|
|
681
681
|
var tmp4_local0 = null;
|
|
682
682
|
var tmp5_local1 = null;
|
|
683
|
-
var tmp6_input = decoder.
|
|
684
|
-
if (tmp6_input.
|
|
685
|
-
tmp4_local0 = tmp6_input.
|
|
683
|
+
var tmp6_input = decoder.h48(tmp0_desc);
|
|
684
|
+
if (tmp6_input.w48()) {
|
|
685
|
+
tmp4_local0 = tmp6_input.r48(tmp0_desc, 0);
|
|
686
686
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
687
|
-
tmp5_local1 = tmp6_input.
|
|
687
|
+
tmp5_local1 = tmp6_input.v48(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
688
688
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
689
689
|
} else
|
|
690
690
|
while (tmp1_flag) {
|
|
691
|
-
tmp2_index = tmp6_input.
|
|
691
|
+
tmp2_index = tmp6_input.x48(tmp0_desc);
|
|
692
692
|
switch (tmp2_index) {
|
|
693
693
|
case -1:
|
|
694
694
|
tmp1_flag = false;
|
|
695
695
|
break;
|
|
696
696
|
case 0:
|
|
697
|
-
tmp4_local0 = tmp6_input.
|
|
697
|
+
tmp4_local0 = tmp6_input.r48(tmp0_desc, 0);
|
|
698
698
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
699
699
|
break;
|
|
700
700
|
case 1:
|
|
701
|
-
tmp5_local1 = tmp6_input.
|
|
701
|
+
tmp5_local1 = tmp6_input.v48(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
702
702
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
703
703
|
break;
|
|
704
704
|
default:
|
|
705
705
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
tmp6_input.
|
|
708
|
+
tmp6_input.i48(tmp0_desc);
|
|
709
709
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
710
710
|
};
|
|
711
|
-
protoOf($serializer).
|
|
712
|
-
return this.
|
|
711
|
+
protoOf($serializer).t44 = function () {
|
|
712
|
+
return this.k5n_1;
|
|
713
713
|
};
|
|
714
|
-
protoOf($serializer).
|
|
714
|
+
protoOf($serializer).k4g = function () {
|
|
715
715
|
// Inline function 'kotlin.arrayOf' call
|
|
716
716
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
717
717
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -725,25 +725,25 @@
|
|
|
725
725
|
}
|
|
726
726
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
727
727
|
if (!(3 === (3 & seen0))) {
|
|
728
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
728
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().k5n_1);
|
|
729
729
|
}
|
|
730
|
-
$this.
|
|
731
|
-
$this.
|
|
730
|
+
$this.m5n_1 = jsonrpc;
|
|
731
|
+
$this.n5n_1 = error;
|
|
732
732
|
return $this;
|
|
733
733
|
}
|
|
734
734
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
735
735
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
736
736
|
}
|
|
737
737
|
function ErrorResponseDto(jsonrpc, error) {
|
|
738
|
-
this.
|
|
739
|
-
this.
|
|
738
|
+
this.m5n_1 = jsonrpc;
|
|
739
|
+
this.n5n_1 = error;
|
|
740
740
|
}
|
|
741
741
|
protoOf(ErrorResponseDto).toString = function () {
|
|
742
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
742
|
+
return 'ErrorResponseDto(jsonrpc=' + this.m5n_1 + ', error=' + toString_0(this.n5n_1) + ')';
|
|
743
743
|
};
|
|
744
744
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
745
|
-
var result = getStringHashCode(this.
|
|
746
|
-
result = imul(result, 31) + (this.
|
|
745
|
+
var result = getStringHashCode(this.m5n_1);
|
|
746
|
+
result = imul(result, 31) + (this.n5n_1 == null ? 0 : this.n5n_1.hashCode()) | 0;
|
|
747
747
|
return result;
|
|
748
748
|
};
|
|
749
749
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -752,68 +752,68 @@
|
|
|
752
752
|
if (!(other instanceof ErrorResponseDto))
|
|
753
753
|
return false;
|
|
754
754
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
755
|
-
if (!(this.
|
|
755
|
+
if (!(this.m5n_1 === tmp0_other_with_cast.m5n_1))
|
|
756
756
|
return false;
|
|
757
|
-
if (!equals(this.
|
|
757
|
+
if (!equals(this.n5n_1, tmp0_other_with_cast.n5n_1))
|
|
758
758
|
return false;
|
|
759
759
|
return true;
|
|
760
760
|
};
|
|
761
761
|
function $serializer_0() {
|
|
762
762
|
$serializer_instance_0 = this;
|
|
763
763
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
764
|
-
tmp0_serialDesc.
|
|
765
|
-
tmp0_serialDesc.
|
|
766
|
-
this.
|
|
767
|
-
}
|
|
768
|
-
protoOf($serializer_0).
|
|
769
|
-
var tmp0_desc = this.
|
|
770
|
-
var tmp1_output = encoder.
|
|
771
|
-
tmp1_output.
|
|
772
|
-
tmp1_output.
|
|
773
|
-
tmp1_output.
|
|
774
|
-
};
|
|
775
|
-
protoOf($serializer_0).
|
|
776
|
-
return this.
|
|
777
|
-
};
|
|
778
|
-
protoOf($serializer_0).
|
|
779
|
-
var tmp0_desc = this.
|
|
764
|
+
tmp0_serialDesc.v4f('code', false);
|
|
765
|
+
tmp0_serialDesc.v4f('message', false);
|
|
766
|
+
this.o5n_1 = tmp0_serialDesc;
|
|
767
|
+
}
|
|
768
|
+
protoOf($serializer_0).p5n = function (encoder, value) {
|
|
769
|
+
var tmp0_desc = this.o5n_1;
|
|
770
|
+
var tmp1_output = encoder.h48(tmp0_desc);
|
|
771
|
+
tmp1_output.z49(tmp0_desc, 0, IntSerializer_getInstance(), value.q5n_1);
|
|
772
|
+
tmp1_output.z49(tmp0_desc, 1, StringSerializer_getInstance(), value.r5n_1);
|
|
773
|
+
tmp1_output.i48(tmp0_desc);
|
|
774
|
+
};
|
|
775
|
+
protoOf($serializer_0).u44 = function (encoder, value) {
|
|
776
|
+
return this.p5n(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
777
|
+
};
|
|
778
|
+
protoOf($serializer_0).v44 = function (decoder) {
|
|
779
|
+
var tmp0_desc = this.o5n_1;
|
|
780
780
|
var tmp1_flag = true;
|
|
781
781
|
var tmp2_index = 0;
|
|
782
782
|
var tmp3_bitMask0 = 0;
|
|
783
783
|
var tmp4_local0 = null;
|
|
784
784
|
var tmp5_local1 = null;
|
|
785
|
-
var tmp6_input = decoder.
|
|
786
|
-
if (tmp6_input.
|
|
787
|
-
tmp4_local0 = tmp6_input.
|
|
785
|
+
var tmp6_input = decoder.h48(tmp0_desc);
|
|
786
|
+
if (tmp6_input.w48()) {
|
|
787
|
+
tmp4_local0 = tmp6_input.v48(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
788
788
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
789
|
-
tmp5_local1 = tmp6_input.
|
|
789
|
+
tmp5_local1 = tmp6_input.v48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
790
790
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
791
791
|
} else
|
|
792
792
|
while (tmp1_flag) {
|
|
793
|
-
tmp2_index = tmp6_input.
|
|
793
|
+
tmp2_index = tmp6_input.x48(tmp0_desc);
|
|
794
794
|
switch (tmp2_index) {
|
|
795
795
|
case -1:
|
|
796
796
|
tmp1_flag = false;
|
|
797
797
|
break;
|
|
798
798
|
case 0:
|
|
799
|
-
tmp4_local0 = tmp6_input.
|
|
799
|
+
tmp4_local0 = tmp6_input.v48(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
800
800
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
801
801
|
break;
|
|
802
802
|
case 1:
|
|
803
|
-
tmp5_local1 = tmp6_input.
|
|
803
|
+
tmp5_local1 = tmp6_input.v48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
804
804
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
805
805
|
break;
|
|
806
806
|
default:
|
|
807
807
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
808
808
|
}
|
|
809
809
|
}
|
|
810
|
-
tmp6_input.
|
|
810
|
+
tmp6_input.i48(tmp0_desc);
|
|
811
811
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
812
812
|
};
|
|
813
|
-
protoOf($serializer_0).
|
|
814
|
-
return this.
|
|
813
|
+
protoOf($serializer_0).t44 = function () {
|
|
814
|
+
return this.o5n_1;
|
|
815
815
|
};
|
|
816
|
-
protoOf($serializer_0).
|
|
816
|
+
protoOf($serializer_0).k4g = function () {
|
|
817
817
|
// Inline function 'kotlin.arrayOf' call
|
|
818
818
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
819
819
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -827,10 +827,10 @@
|
|
|
827
827
|
}
|
|
828
828
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
829
829
|
if (!(3 === (3 & seen0))) {
|
|
830
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
830
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().o5n_1);
|
|
831
831
|
}
|
|
832
|
-
$this.
|
|
833
|
-
$this.
|
|
832
|
+
$this.q5n_1 = code;
|
|
833
|
+
$this.r5n_1 = message;
|
|
834
834
|
return $this;
|
|
835
835
|
}
|
|
836
836
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -839,11 +839,11 @@
|
|
|
839
839
|
function ErrorDto() {
|
|
840
840
|
}
|
|
841
841
|
protoOf(ErrorDto).toString = function () {
|
|
842
|
-
return 'ErrorDto(code=' + this.
|
|
842
|
+
return 'ErrorDto(code=' + this.q5n_1 + ', message=' + this.r5n_1 + ')';
|
|
843
843
|
};
|
|
844
844
|
protoOf(ErrorDto).hashCode = function () {
|
|
845
|
-
var result = this.
|
|
846
|
-
result = imul(result, 31) + (this.
|
|
845
|
+
var result = this.q5n_1 == null ? 0 : this.q5n_1;
|
|
846
|
+
result = imul(result, 31) + (this.r5n_1 == null ? 0 : getStringHashCode(this.r5n_1)) | 0;
|
|
847
847
|
return result;
|
|
848
848
|
};
|
|
849
849
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -852,15 +852,15 @@
|
|
|
852
852
|
if (!(other instanceof ErrorDto))
|
|
853
853
|
return false;
|
|
854
854
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
855
|
-
if (!(this.
|
|
855
|
+
if (!(this.q5n_1 == tmp0_other_with_cast.q5n_1))
|
|
856
856
|
return false;
|
|
857
|
-
if (!(this.
|
|
857
|
+
if (!(this.r5n_1 == tmp0_other_with_cast.r5n_1))
|
|
858
858
|
return false;
|
|
859
859
|
return true;
|
|
860
860
|
};
|
|
861
861
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
862
862
|
$serializer_1.call($this);
|
|
863
|
-
$this.
|
|
863
|
+
$this.t5n_1 = typeSerial0;
|
|
864
864
|
return $this;
|
|
865
865
|
}
|
|
866
866
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -869,17 +869,17 @@
|
|
|
869
869
|
function Companion_2() {
|
|
870
870
|
Companion_instance_4 = this;
|
|
871
871
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
872
|
-
tmp0_serialDesc.
|
|
873
|
-
tmp0_serialDesc.
|
|
874
|
-
tmp0_serialDesc.
|
|
875
|
-
tmp0_serialDesc.
|
|
876
|
-
this.
|
|
872
|
+
tmp0_serialDesc.v4f('jsonrpc', false);
|
|
873
|
+
tmp0_serialDesc.v4f('method', false);
|
|
874
|
+
tmp0_serialDesc.v4f('params', false);
|
|
875
|
+
tmp0_serialDesc.v4f('id', false);
|
|
876
|
+
this.u5n_1 = tmp0_serialDesc;
|
|
877
877
|
}
|
|
878
|
-
protoOf(Companion_2).
|
|
878
|
+
protoOf(Companion_2).v5n = function (typeSerial0) {
|
|
879
879
|
return $serializer_init_$Create$(typeSerial0);
|
|
880
880
|
};
|
|
881
|
-
protoOf(Companion_2).
|
|
882
|
-
return this.
|
|
881
|
+
protoOf(Companion_2).v4g = function (typeParamsSerializers) {
|
|
882
|
+
return this.v5n(typeParamsSerializers[0]);
|
|
883
883
|
};
|
|
884
884
|
var Companion_instance_4;
|
|
885
885
|
function Companion_getInstance_5() {
|
|
@@ -889,26 +889,26 @@
|
|
|
889
889
|
}
|
|
890
890
|
function $serializer_1() {
|
|
891
891
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
892
|
-
tmp0_serialDesc.
|
|
893
|
-
tmp0_serialDesc.
|
|
894
|
-
tmp0_serialDesc.
|
|
895
|
-
tmp0_serialDesc.
|
|
896
|
-
this.
|
|
897
|
-
}
|
|
898
|
-
protoOf($serializer_1).
|
|
899
|
-
var tmp0_desc = this.
|
|
900
|
-
var tmp1_output = encoder.
|
|
901
|
-
tmp1_output.
|
|
902
|
-
tmp1_output.
|
|
903
|
-
tmp1_output.
|
|
904
|
-
tmp1_output.
|
|
905
|
-
tmp1_output.
|
|
906
|
-
};
|
|
907
|
-
protoOf($serializer_1).
|
|
908
|
-
return this.
|
|
909
|
-
};
|
|
910
|
-
protoOf($serializer_1).
|
|
911
|
-
var tmp0_desc = this.
|
|
892
|
+
tmp0_serialDesc.v4f('jsonrpc', false);
|
|
893
|
+
tmp0_serialDesc.v4f('method', false);
|
|
894
|
+
tmp0_serialDesc.v4f('params', false);
|
|
895
|
+
tmp0_serialDesc.v4f('id', false);
|
|
896
|
+
this.s5n_1 = tmp0_serialDesc;
|
|
897
|
+
}
|
|
898
|
+
protoOf($serializer_1).w5n = function (encoder, value) {
|
|
899
|
+
var tmp0_desc = this.s5n_1;
|
|
900
|
+
var tmp1_output = encoder.h48(tmp0_desc);
|
|
901
|
+
tmp1_output.v49(tmp0_desc, 0, value.x5n_1);
|
|
902
|
+
tmp1_output.v49(tmp0_desc, 1, value.y5n_1);
|
|
903
|
+
tmp1_output.x49(tmp0_desc, 2, this.t5n_1, value.z5n_1);
|
|
904
|
+
tmp1_output.v49(tmp0_desc, 3, value.a5o_1);
|
|
905
|
+
tmp1_output.i48(tmp0_desc);
|
|
906
|
+
};
|
|
907
|
+
protoOf($serializer_1).u44 = function (encoder, value) {
|
|
908
|
+
return this.w5n(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
909
|
+
};
|
|
910
|
+
protoOf($serializer_1).v44 = function (decoder) {
|
|
911
|
+
var tmp0_desc = this.s5n_1;
|
|
912
912
|
var tmp1_flag = true;
|
|
913
913
|
var tmp2_index = 0;
|
|
914
914
|
var tmp3_bitMask0 = 0;
|
|
@@ -916,69 +916,69 @@
|
|
|
916
916
|
var tmp5_local1 = null;
|
|
917
917
|
var tmp6_local2 = null;
|
|
918
918
|
var tmp7_local3 = null;
|
|
919
|
-
var tmp8_input = decoder.
|
|
920
|
-
if (tmp8_input.
|
|
921
|
-
tmp4_local0 = tmp8_input.
|
|
919
|
+
var tmp8_input = decoder.h48(tmp0_desc);
|
|
920
|
+
if (tmp8_input.w48()) {
|
|
921
|
+
tmp4_local0 = tmp8_input.r48(tmp0_desc, 0);
|
|
922
922
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
923
|
-
tmp5_local1 = tmp8_input.
|
|
923
|
+
tmp5_local1 = tmp8_input.r48(tmp0_desc, 1);
|
|
924
924
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
925
|
-
tmp6_local2 = tmp8_input.
|
|
925
|
+
tmp6_local2 = tmp8_input.t48(tmp0_desc, 2, this.t5n_1, tmp6_local2);
|
|
926
926
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
927
|
-
tmp7_local3 = tmp8_input.
|
|
927
|
+
tmp7_local3 = tmp8_input.r48(tmp0_desc, 3);
|
|
928
928
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
929
929
|
} else
|
|
930
930
|
while (tmp1_flag) {
|
|
931
|
-
tmp2_index = tmp8_input.
|
|
931
|
+
tmp2_index = tmp8_input.x48(tmp0_desc);
|
|
932
932
|
switch (tmp2_index) {
|
|
933
933
|
case -1:
|
|
934
934
|
tmp1_flag = false;
|
|
935
935
|
break;
|
|
936
936
|
case 0:
|
|
937
|
-
tmp4_local0 = tmp8_input.
|
|
937
|
+
tmp4_local0 = tmp8_input.r48(tmp0_desc, 0);
|
|
938
938
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
939
939
|
break;
|
|
940
940
|
case 1:
|
|
941
|
-
tmp5_local1 = tmp8_input.
|
|
941
|
+
tmp5_local1 = tmp8_input.r48(tmp0_desc, 1);
|
|
942
942
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
943
943
|
break;
|
|
944
944
|
case 2:
|
|
945
|
-
tmp6_local2 = tmp8_input.
|
|
945
|
+
tmp6_local2 = tmp8_input.t48(tmp0_desc, 2, this.t5n_1, tmp6_local2);
|
|
946
946
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
947
947
|
break;
|
|
948
948
|
case 3:
|
|
949
|
-
tmp7_local3 = tmp8_input.
|
|
949
|
+
tmp7_local3 = tmp8_input.r48(tmp0_desc, 3);
|
|
950
950
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
951
951
|
break;
|
|
952
952
|
default:
|
|
953
953
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
tmp8_input.
|
|
956
|
+
tmp8_input.i48(tmp0_desc);
|
|
957
957
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
958
958
|
};
|
|
959
|
-
protoOf($serializer_1).
|
|
960
|
-
return this.
|
|
959
|
+
protoOf($serializer_1).t44 = function () {
|
|
960
|
+
return this.s5n_1;
|
|
961
961
|
};
|
|
962
|
-
protoOf($serializer_1).
|
|
962
|
+
protoOf($serializer_1).k4g = function () {
|
|
963
963
|
// Inline function 'kotlin.arrayOf' call
|
|
964
964
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
965
965
|
// Inline function 'kotlin.js.asDynamic' call
|
|
966
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
966
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.t5n_1, StringSerializer_getInstance()];
|
|
967
967
|
};
|
|
968
|
-
protoOf($serializer_1).
|
|
968
|
+
protoOf($serializer_1).l4g = function () {
|
|
969
969
|
// Inline function 'kotlin.arrayOf' call
|
|
970
970
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
971
971
|
// Inline function 'kotlin.js.asDynamic' call
|
|
972
|
-
return [this.
|
|
972
|
+
return [this.t5n_1];
|
|
973
973
|
};
|
|
974
974
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
975
975
|
if (!(15 === (15 & seen0))) {
|
|
976
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
976
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().u5n_1);
|
|
977
977
|
}
|
|
978
|
-
$this.
|
|
979
|
-
$this.
|
|
980
|
-
$this.
|
|
981
|
-
$this.
|
|
978
|
+
$this.x5n_1 = jsonrpc;
|
|
979
|
+
$this.y5n_1 = method;
|
|
980
|
+
$this.z5n_1 = params;
|
|
981
|
+
$this.a5o_1 = id;
|
|
982
982
|
return $this;
|
|
983
983
|
}
|
|
984
984
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -986,19 +986,19 @@
|
|
|
986
986
|
}
|
|
987
987
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
988
988
|
Companion_getInstance_5();
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
989
|
+
this.x5n_1 = jsonrpc;
|
|
990
|
+
this.y5n_1 = method;
|
|
991
|
+
this.z5n_1 = params;
|
|
992
|
+
this.a5o_1 = id;
|
|
993
993
|
}
|
|
994
994
|
protoOf(RandomRequestDto).toString = function () {
|
|
995
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
995
|
+
return 'RandomRequestDto(jsonrpc=' + this.x5n_1 + ', method=' + this.y5n_1 + ', params=' + toString(this.z5n_1) + ', id=' + this.a5o_1 + ')';
|
|
996
996
|
};
|
|
997
997
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
998
|
-
var result = getStringHashCode(this.
|
|
999
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1000
|
-
result = imul(result, 31) + hashCode(this.
|
|
1001
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
998
|
+
var result = getStringHashCode(this.x5n_1);
|
|
999
|
+
result = imul(result, 31) + getStringHashCode(this.y5n_1) | 0;
|
|
1000
|
+
result = imul(result, 31) + hashCode(this.z5n_1) | 0;
|
|
1001
|
+
result = imul(result, 31) + getStringHashCode(this.a5o_1) | 0;
|
|
1002
1002
|
return result;
|
|
1003
1003
|
};
|
|
1004
1004
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1007,13 +1007,13 @@
|
|
|
1007
1007
|
if (!(other instanceof RandomRequestDto))
|
|
1008
1008
|
return false;
|
|
1009
1009
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1010
|
-
if (!(this.
|
|
1010
|
+
if (!(this.x5n_1 === tmp0_other_with_cast.x5n_1))
|
|
1011
1011
|
return false;
|
|
1012
|
-
if (!(this.
|
|
1012
|
+
if (!(this.y5n_1 === tmp0_other_with_cast.y5n_1))
|
|
1013
1013
|
return false;
|
|
1014
|
-
if (!equals(this.
|
|
1014
|
+
if (!equals(this.z5n_1, tmp0_other_with_cast.z5n_1))
|
|
1015
1015
|
return false;
|
|
1016
|
-
if (!(this.
|
|
1016
|
+
if (!(this.a5o_1 === tmp0_other_with_cast.a5o_1))
|
|
1017
1017
|
return false;
|
|
1018
1018
|
return true;
|
|
1019
1019
|
};
|
|
@@ -1023,7 +1023,7 @@
|
|
|
1023
1023
|
// Inline function 'kotlin.arrayOf' call
|
|
1024
1024
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1025
1025
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1026
|
-
tmp.
|
|
1026
|
+
tmp.b5o_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1027
1027
|
}
|
|
1028
1028
|
var Companion_instance_5;
|
|
1029
1029
|
function Companion_getInstance_6() {
|
|
@@ -1034,35 +1034,35 @@
|
|
|
1034
1034
|
function $serializer_2() {
|
|
1035
1035
|
$serializer_instance_1 = this;
|
|
1036
1036
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1037
|
-
tmp0_serialDesc.
|
|
1038
|
-
tmp0_serialDesc.
|
|
1039
|
-
tmp0_serialDesc.
|
|
1040
|
-
tmp0_serialDesc.
|
|
1041
|
-
tmp0_serialDesc.
|
|
1042
|
-
tmp0_serialDesc.
|
|
1043
|
-
tmp0_serialDesc.
|
|
1044
|
-
tmp0_serialDesc.
|
|
1045
|
-
this.
|
|
1046
|
-
}
|
|
1047
|
-
protoOf($serializer_2).
|
|
1048
|
-
var tmp0_desc = this.
|
|
1049
|
-
var tmp1_output = encoder.
|
|
1050
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1051
|
-
tmp1_output.
|
|
1052
|
-
tmp1_output.
|
|
1053
|
-
tmp1_output.
|
|
1054
|
-
tmp1_output.
|
|
1055
|
-
tmp1_output.
|
|
1056
|
-
tmp1_output.
|
|
1057
|
-
tmp1_output.
|
|
1058
|
-
tmp1_output.
|
|
1059
|
-
tmp1_output.
|
|
1060
|
-
};
|
|
1061
|
-
protoOf($serializer_2).
|
|
1062
|
-
return this.
|
|
1063
|
-
};
|
|
1064
|
-
protoOf($serializer_2).
|
|
1065
|
-
var tmp0_desc = this.
|
|
1037
|
+
tmp0_serialDesc.v4f('apiKey', false);
|
|
1038
|
+
tmp0_serialDesc.v4f('n', false);
|
|
1039
|
+
tmp0_serialDesc.v4f('length', false);
|
|
1040
|
+
tmp0_serialDesc.v4f('min', false);
|
|
1041
|
+
tmp0_serialDesc.v4f('max', false);
|
|
1042
|
+
tmp0_serialDesc.v4f('replacement', false);
|
|
1043
|
+
tmp0_serialDesc.v4f('ticketId', false);
|
|
1044
|
+
tmp0_serialDesc.v4f('userData', false);
|
|
1045
|
+
this.c5o_1 = tmp0_serialDesc;
|
|
1046
|
+
}
|
|
1047
|
+
protoOf($serializer_2).d5o = function (encoder, value) {
|
|
1048
|
+
var tmp0_desc = this.c5o_1;
|
|
1049
|
+
var tmp1_output = encoder.h48(tmp0_desc);
|
|
1050
|
+
var tmp2_cached = Companion_getInstance_6().b5o_1;
|
|
1051
|
+
tmp1_output.v49(tmp0_desc, 0, value.e5o_1);
|
|
1052
|
+
tmp1_output.q49(tmp0_desc, 1, value.f5o_1);
|
|
1053
|
+
tmp1_output.x49(tmp0_desc, 2, tmp2_cached[2], value.g5o_1);
|
|
1054
|
+
tmp1_output.q49(tmp0_desc, 3, value.h5o_1);
|
|
1055
|
+
tmp1_output.q49(tmp0_desc, 4, value.i5o_1);
|
|
1056
|
+
tmp1_output.n49(tmp0_desc, 5, value.j5o_1);
|
|
1057
|
+
tmp1_output.z49(tmp0_desc, 6, StringSerializer_getInstance(), value.k5o_1);
|
|
1058
|
+
tmp1_output.z49(tmp0_desc, 7, $serializer_getInstance_2(), value.l5o_1);
|
|
1059
|
+
tmp1_output.i48(tmp0_desc);
|
|
1060
|
+
};
|
|
1061
|
+
protoOf($serializer_2).u44 = function (encoder, value) {
|
|
1062
|
+
return this.d5o(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1063
|
+
};
|
|
1064
|
+
protoOf($serializer_2).v44 = function (decoder) {
|
|
1065
|
+
var tmp0_desc = this.c5o_1;
|
|
1066
1066
|
var tmp1_flag = true;
|
|
1067
1067
|
var tmp2_index = 0;
|
|
1068
1068
|
var tmp3_bitMask0 = 0;
|
|
@@ -1074,76 +1074,76 @@
|
|
|
1074
1074
|
var tmp9_local5 = false;
|
|
1075
1075
|
var tmp10_local6 = null;
|
|
1076
1076
|
var tmp11_local7 = null;
|
|
1077
|
-
var tmp12_input = decoder.
|
|
1078
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1079
|
-
if (tmp12_input.
|
|
1080
|
-
tmp4_local0 = tmp12_input.
|
|
1077
|
+
var tmp12_input = decoder.h48(tmp0_desc);
|
|
1078
|
+
var tmp13_cached = Companion_getInstance_6().b5o_1;
|
|
1079
|
+
if (tmp12_input.w48()) {
|
|
1080
|
+
tmp4_local0 = tmp12_input.r48(tmp0_desc, 0);
|
|
1081
1081
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1082
|
-
tmp5_local1 = tmp12_input.
|
|
1082
|
+
tmp5_local1 = tmp12_input.m48(tmp0_desc, 1);
|
|
1083
1083
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1084
|
-
tmp6_local2 = tmp12_input.
|
|
1084
|
+
tmp6_local2 = tmp12_input.t48(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1085
1085
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1086
|
-
tmp7_local3 = tmp12_input.
|
|
1086
|
+
tmp7_local3 = tmp12_input.m48(tmp0_desc, 3);
|
|
1087
1087
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1088
|
-
tmp8_local4 = tmp12_input.
|
|
1088
|
+
tmp8_local4 = tmp12_input.m48(tmp0_desc, 4);
|
|
1089
1089
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1090
|
-
tmp9_local5 = tmp12_input.
|
|
1090
|
+
tmp9_local5 = tmp12_input.j48(tmp0_desc, 5);
|
|
1091
1091
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1092
|
-
tmp10_local6 = tmp12_input.
|
|
1092
|
+
tmp10_local6 = tmp12_input.v48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1093
1093
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1094
|
-
tmp11_local7 = tmp12_input.
|
|
1094
|
+
tmp11_local7 = tmp12_input.v48(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1095
1095
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1096
1096
|
} else
|
|
1097
1097
|
while (tmp1_flag) {
|
|
1098
|
-
tmp2_index = tmp12_input.
|
|
1098
|
+
tmp2_index = tmp12_input.x48(tmp0_desc);
|
|
1099
1099
|
switch (tmp2_index) {
|
|
1100
1100
|
case -1:
|
|
1101
1101
|
tmp1_flag = false;
|
|
1102
1102
|
break;
|
|
1103
1103
|
case 0:
|
|
1104
|
-
tmp4_local0 = tmp12_input.
|
|
1104
|
+
tmp4_local0 = tmp12_input.r48(tmp0_desc, 0);
|
|
1105
1105
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1106
1106
|
break;
|
|
1107
1107
|
case 1:
|
|
1108
|
-
tmp5_local1 = tmp12_input.
|
|
1108
|
+
tmp5_local1 = tmp12_input.m48(tmp0_desc, 1);
|
|
1109
1109
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1110
1110
|
break;
|
|
1111
1111
|
case 2:
|
|
1112
|
-
tmp6_local2 = tmp12_input.
|
|
1112
|
+
tmp6_local2 = tmp12_input.t48(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1113
1113
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1114
1114
|
break;
|
|
1115
1115
|
case 3:
|
|
1116
|
-
tmp7_local3 = tmp12_input.
|
|
1116
|
+
tmp7_local3 = tmp12_input.m48(tmp0_desc, 3);
|
|
1117
1117
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1118
1118
|
break;
|
|
1119
1119
|
case 4:
|
|
1120
|
-
tmp8_local4 = tmp12_input.
|
|
1120
|
+
tmp8_local4 = tmp12_input.m48(tmp0_desc, 4);
|
|
1121
1121
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1122
1122
|
break;
|
|
1123
1123
|
case 5:
|
|
1124
|
-
tmp9_local5 = tmp12_input.
|
|
1124
|
+
tmp9_local5 = tmp12_input.j48(tmp0_desc, 5);
|
|
1125
1125
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1126
1126
|
break;
|
|
1127
1127
|
case 6:
|
|
1128
|
-
tmp10_local6 = tmp12_input.
|
|
1128
|
+
tmp10_local6 = tmp12_input.v48(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1129
1129
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1130
1130
|
break;
|
|
1131
1131
|
case 7:
|
|
1132
|
-
tmp11_local7 = tmp12_input.
|
|
1132
|
+
tmp11_local7 = tmp12_input.v48(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1133
1133
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1134
1134
|
break;
|
|
1135
1135
|
default:
|
|
1136
1136
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
|
-
tmp12_input.
|
|
1139
|
+
tmp12_input.i48(tmp0_desc);
|
|
1140
1140
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1141
1141
|
};
|
|
1142
|
-
protoOf($serializer_2).
|
|
1143
|
-
return this.
|
|
1142
|
+
protoOf($serializer_2).t44 = function () {
|
|
1143
|
+
return this.c5o_1;
|
|
1144
1144
|
};
|
|
1145
|
-
protoOf($serializer_2).
|
|
1146
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1145
|
+
protoOf($serializer_2).k4g = function () {
|
|
1146
|
+
var tmp0_cached = Companion_getInstance_6().b5o_1;
|
|
1147
1147
|
// Inline function 'kotlin.arrayOf' call
|
|
1148
1148
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1149
1149
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1157,16 +1157,16 @@
|
|
|
1157
1157
|
}
|
|
1158
1158
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1159
1159
|
if (!(255 === (255 & seen0))) {
|
|
1160
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1160
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().c5o_1);
|
|
1161
1161
|
}
|
|
1162
|
-
$this.
|
|
1163
|
-
$this.
|
|
1164
|
-
$this.
|
|
1165
|
-
$this.
|
|
1166
|
-
$this.
|
|
1167
|
-
$this.
|
|
1168
|
-
$this.
|
|
1169
|
-
$this.
|
|
1162
|
+
$this.e5o_1 = apiKey;
|
|
1163
|
+
$this.f5o_1 = n;
|
|
1164
|
+
$this.g5o_1 = length;
|
|
1165
|
+
$this.h5o_1 = min;
|
|
1166
|
+
$this.i5o_1 = max;
|
|
1167
|
+
$this.j5o_1 = replacement;
|
|
1168
|
+
$this.k5o_1 = ticketId;
|
|
1169
|
+
$this.l5o_1 = userData;
|
|
1170
1170
|
return $this;
|
|
1171
1171
|
}
|
|
1172
1172
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1174,27 +1174,27 @@
|
|
|
1174
1174
|
}
|
|
1175
1175
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1176
1176
|
Companion_getInstance_6();
|
|
1177
|
-
this.
|
|
1178
|
-
this.
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1177
|
+
this.e5o_1 = apiKey;
|
|
1178
|
+
this.f5o_1 = n;
|
|
1179
|
+
this.g5o_1 = length;
|
|
1180
|
+
this.h5o_1 = min;
|
|
1181
|
+
this.i5o_1 = max;
|
|
1182
|
+
this.j5o_1 = replacement;
|
|
1183
|
+
this.k5o_1 = ticketId;
|
|
1184
|
+
this.l5o_1 = userData;
|
|
1185
1185
|
}
|
|
1186
1186
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1187
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1187
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.e5o_1 + ', n=' + this.f5o_1 + ', length=' + toString(this.g5o_1) + ', min=' + this.h5o_1 + ', max=' + this.i5o_1 + ', replacement=' + this.j5o_1 + ', ticketId=' + this.k5o_1 + ', userData=' + toString_0(this.l5o_1) + ')';
|
|
1188
1188
|
};
|
|
1189
1189
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1190
|
-
var result = getStringHashCode(this.
|
|
1191
|
-
result = imul(result, 31) + this.
|
|
1192
|
-
result = imul(result, 31) + hashCode(this.
|
|
1190
|
+
var result = getStringHashCode(this.e5o_1);
|
|
1191
|
+
result = imul(result, 31) + this.f5o_1 | 0;
|
|
1192
|
+
result = imul(result, 31) + hashCode(this.g5o_1) | 0;
|
|
1193
|
+
result = imul(result, 31) + this.h5o_1 | 0;
|
|
1193
1194
|
result = imul(result, 31) + this.i5o_1 | 0;
|
|
1194
|
-
result = imul(result, 31) + this.j5o_1 | 0;
|
|
1195
|
-
result = imul(result, 31) +
|
|
1196
|
-
result = imul(result, 31) + (this.l5o_1 == null ? 0 :
|
|
1197
|
-
result = imul(result, 31) + (this.m5o_1 == null ? 0 : this.m5o_1.hashCode()) | 0;
|
|
1195
|
+
result = imul(result, 31) + getBooleanHashCode(this.j5o_1) | 0;
|
|
1196
|
+
result = imul(result, 31) + (this.k5o_1 == null ? 0 : getStringHashCode(this.k5o_1)) | 0;
|
|
1197
|
+
result = imul(result, 31) + (this.l5o_1 == null ? 0 : this.l5o_1.hashCode()) | 0;
|
|
1198
1198
|
return result;
|
|
1199
1199
|
};
|
|
1200
1200
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1203,21 +1203,21 @@
|
|
|
1203
1203
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1204
1204
|
return false;
|
|
1205
1205
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1206
|
+
if (!(this.e5o_1 === tmp0_other_with_cast.e5o_1))
|
|
1207
|
+
return false;
|
|
1206
1208
|
if (!(this.f5o_1 === tmp0_other_with_cast.f5o_1))
|
|
1207
1209
|
return false;
|
|
1208
|
-
if (!(this.g5o_1
|
|
1210
|
+
if (!equals(this.g5o_1, tmp0_other_with_cast.g5o_1))
|
|
1209
1211
|
return false;
|
|
1210
|
-
if (!
|
|
1212
|
+
if (!(this.h5o_1 === tmp0_other_with_cast.h5o_1))
|
|
1211
1213
|
return false;
|
|
1212
1214
|
if (!(this.i5o_1 === tmp0_other_with_cast.i5o_1))
|
|
1213
1215
|
return false;
|
|
1214
1216
|
if (!(this.j5o_1 === tmp0_other_with_cast.j5o_1))
|
|
1215
1217
|
return false;
|
|
1216
|
-
if (!(this.k5o_1
|
|
1217
|
-
return false;
|
|
1218
|
-
if (!(this.l5o_1 == tmp0_other_with_cast.l5o_1))
|
|
1218
|
+
if (!(this.k5o_1 == tmp0_other_with_cast.k5o_1))
|
|
1219
1219
|
return false;
|
|
1220
|
-
if (!equals(this.
|
|
1220
|
+
if (!equals(this.l5o_1, tmp0_other_with_cast.l5o_1))
|
|
1221
1221
|
return false;
|
|
1222
1222
|
return true;
|
|
1223
1223
|
};
|
|
@@ -1230,59 +1230,59 @@
|
|
|
1230
1230
|
function $serializer_3() {
|
|
1231
1231
|
$serializer_instance_2 = this;
|
|
1232
1232
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1233
|
-
tmp0_serialDesc.
|
|
1234
|
-
tmp0_serialDesc.
|
|
1235
|
-
this.
|
|
1236
|
-
}
|
|
1237
|
-
protoOf($serializer_3).
|
|
1238
|
-
var tmp0_desc = this.
|
|
1239
|
-
var tmp1_output = encoder.
|
|
1240
|
-
tmp1_output.
|
|
1241
|
-
tmp1_output.
|
|
1242
|
-
tmp1_output.
|
|
1243
|
-
};
|
|
1244
|
-
protoOf($serializer_3).
|
|
1245
|
-
return this.
|
|
1246
|
-
};
|
|
1247
|
-
protoOf($serializer_3).
|
|
1248
|
-
var tmp0_desc = this.
|
|
1233
|
+
tmp0_serialDesc.v4f('id', false);
|
|
1234
|
+
tmp0_serialDesc.v4f('count', false);
|
|
1235
|
+
this.m5o_1 = tmp0_serialDesc;
|
|
1236
|
+
}
|
|
1237
|
+
protoOf($serializer_3).n5o = function (encoder, value) {
|
|
1238
|
+
var tmp0_desc = this.m5o_1;
|
|
1239
|
+
var tmp1_output = encoder.h48(tmp0_desc);
|
|
1240
|
+
tmp1_output.v49(tmp0_desc, 0, value.o5o_1);
|
|
1241
|
+
tmp1_output.q49(tmp0_desc, 1, value.p5o_1);
|
|
1242
|
+
tmp1_output.i48(tmp0_desc);
|
|
1243
|
+
};
|
|
1244
|
+
protoOf($serializer_3).u44 = function (encoder, value) {
|
|
1245
|
+
return this.n5o(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1246
|
+
};
|
|
1247
|
+
protoOf($serializer_3).v44 = function (decoder) {
|
|
1248
|
+
var tmp0_desc = this.m5o_1;
|
|
1249
1249
|
var tmp1_flag = true;
|
|
1250
1250
|
var tmp2_index = 0;
|
|
1251
1251
|
var tmp3_bitMask0 = 0;
|
|
1252
1252
|
var tmp4_local0 = null;
|
|
1253
1253
|
var tmp5_local1 = 0;
|
|
1254
|
-
var tmp6_input = decoder.
|
|
1255
|
-
if (tmp6_input.
|
|
1256
|
-
tmp4_local0 = tmp6_input.
|
|
1254
|
+
var tmp6_input = decoder.h48(tmp0_desc);
|
|
1255
|
+
if (tmp6_input.w48()) {
|
|
1256
|
+
tmp4_local0 = tmp6_input.r48(tmp0_desc, 0);
|
|
1257
1257
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1258
|
-
tmp5_local1 = tmp6_input.
|
|
1258
|
+
tmp5_local1 = tmp6_input.m48(tmp0_desc, 1);
|
|
1259
1259
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1260
1260
|
} else
|
|
1261
1261
|
while (tmp1_flag) {
|
|
1262
|
-
tmp2_index = tmp6_input.
|
|
1262
|
+
tmp2_index = tmp6_input.x48(tmp0_desc);
|
|
1263
1263
|
switch (tmp2_index) {
|
|
1264
1264
|
case -1:
|
|
1265
1265
|
tmp1_flag = false;
|
|
1266
1266
|
break;
|
|
1267
1267
|
case 0:
|
|
1268
|
-
tmp4_local0 = tmp6_input.
|
|
1268
|
+
tmp4_local0 = tmp6_input.r48(tmp0_desc, 0);
|
|
1269
1269
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1270
1270
|
break;
|
|
1271
1271
|
case 1:
|
|
1272
|
-
tmp5_local1 = tmp6_input.
|
|
1272
|
+
tmp5_local1 = tmp6_input.m48(tmp0_desc, 1);
|
|
1273
1273
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1274
1274
|
break;
|
|
1275
1275
|
default:
|
|
1276
1276
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
|
-
tmp6_input.
|
|
1279
|
+
tmp6_input.i48(tmp0_desc);
|
|
1280
1280
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1281
1281
|
};
|
|
1282
|
-
protoOf($serializer_3).
|
|
1283
|
-
return this.
|
|
1282
|
+
protoOf($serializer_3).t44 = function () {
|
|
1283
|
+
return this.m5o_1;
|
|
1284
1284
|
};
|
|
1285
|
-
protoOf($serializer_3).
|
|
1285
|
+
protoOf($serializer_3).k4g = function () {
|
|
1286
1286
|
// Inline function 'kotlin.arrayOf' call
|
|
1287
1287
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1288
1288
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1296,25 +1296,25 @@
|
|
|
1296
1296
|
}
|
|
1297
1297
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1298
1298
|
if (!(3 === (3 & seen0))) {
|
|
1299
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1299
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().m5o_1);
|
|
1300
1300
|
}
|
|
1301
|
-
$this.
|
|
1302
|
-
$this.
|
|
1301
|
+
$this.o5o_1 = id;
|
|
1302
|
+
$this.p5o_1 = count;
|
|
1303
1303
|
return $this;
|
|
1304
1304
|
}
|
|
1305
1305
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1306
1306
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1307
1307
|
}
|
|
1308
1308
|
function CardDecksUserDataDto(id, count) {
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1309
|
+
this.o5o_1 = id;
|
|
1310
|
+
this.p5o_1 = count;
|
|
1311
1311
|
}
|
|
1312
1312
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1313
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1313
|
+
return 'CardDecksUserDataDto(id=' + this.o5o_1 + ', count=' + this.p5o_1 + ')';
|
|
1314
1314
|
};
|
|
1315
1315
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1316
|
-
var result = getStringHashCode(this.
|
|
1317
|
-
result = imul(result, 31) + this.
|
|
1316
|
+
var result = getStringHashCode(this.o5o_1);
|
|
1317
|
+
result = imul(result, 31) + this.p5o_1 | 0;
|
|
1318
1318
|
return result;
|
|
1319
1319
|
};
|
|
1320
1320
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1323,15 +1323,15 @@
|
|
|
1323
1323
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1324
1324
|
return false;
|
|
1325
1325
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1326
|
-
if (!(this.
|
|
1326
|
+
if (!(this.o5o_1 === tmp0_other_with_cast.o5o_1))
|
|
1327
1327
|
return false;
|
|
1328
|
-
if (!(this.
|
|
1328
|
+
if (!(this.p5o_1 === tmp0_other_with_cast.p5o_1))
|
|
1329
1329
|
return false;
|
|
1330
1330
|
return true;
|
|
1331
1331
|
};
|
|
1332
1332
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1333
1333
|
$serializer_4.call($this);
|
|
1334
|
-
$this.
|
|
1334
|
+
$this.r5o_1 = typeSerial0;
|
|
1335
1335
|
return $this;
|
|
1336
1336
|
}
|
|
1337
1337
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1340,16 +1340,16 @@
|
|
|
1340
1340
|
function Companion_5() {
|
|
1341
1341
|
Companion_instance_7 = this;
|
|
1342
1342
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1343
|
-
tmp0_serialDesc.
|
|
1344
|
-
tmp0_serialDesc.
|
|
1345
|
-
tmp0_serialDesc.
|
|
1346
|
-
this.
|
|
1343
|
+
tmp0_serialDesc.v4f('jsonrpc', false);
|
|
1344
|
+
tmp0_serialDesc.v4f('result', false);
|
|
1345
|
+
tmp0_serialDesc.v4f('id', false);
|
|
1346
|
+
this.s5o_1 = tmp0_serialDesc;
|
|
1347
1347
|
}
|
|
1348
|
-
protoOf(Companion_5).
|
|
1348
|
+
protoOf(Companion_5).v5n = function (typeSerial0) {
|
|
1349
1349
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1350
1350
|
};
|
|
1351
|
-
protoOf(Companion_5).
|
|
1352
|
-
return this.
|
|
1351
|
+
protoOf(Companion_5).v4g = function (typeParamsSerializers) {
|
|
1352
|
+
return this.v5n(typeParamsSerializers[0]);
|
|
1353
1353
|
};
|
|
1354
1354
|
var Companion_instance_7;
|
|
1355
1355
|
function Companion_getInstance_8() {
|
|
@@ -1359,86 +1359,86 @@
|
|
|
1359
1359
|
}
|
|
1360
1360
|
function $serializer_4() {
|
|
1361
1361
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1362
|
-
tmp0_serialDesc.
|
|
1363
|
-
tmp0_serialDesc.
|
|
1364
|
-
tmp0_serialDesc.
|
|
1365
|
-
this.
|
|
1366
|
-
}
|
|
1367
|
-
protoOf($serializer_4).
|
|
1368
|
-
var tmp0_desc = this.
|
|
1369
|
-
var tmp1_output = encoder.
|
|
1370
|
-
tmp1_output.
|
|
1371
|
-
tmp1_output.
|
|
1372
|
-
tmp1_output.
|
|
1373
|
-
tmp1_output.
|
|
1374
|
-
};
|
|
1375
|
-
protoOf($serializer_4).
|
|
1376
|
-
return this.
|
|
1377
|
-
};
|
|
1378
|
-
protoOf($serializer_4).
|
|
1379
|
-
var tmp0_desc = this.
|
|
1362
|
+
tmp0_serialDesc.v4f('jsonrpc', false);
|
|
1363
|
+
tmp0_serialDesc.v4f('result', false);
|
|
1364
|
+
tmp0_serialDesc.v4f('id', false);
|
|
1365
|
+
this.q5o_1 = tmp0_serialDesc;
|
|
1366
|
+
}
|
|
1367
|
+
protoOf($serializer_4).t5o = function (encoder, value) {
|
|
1368
|
+
var tmp0_desc = this.q5o_1;
|
|
1369
|
+
var tmp1_output = encoder.h48(tmp0_desc);
|
|
1370
|
+
tmp1_output.v49(tmp0_desc, 0, value.u5o_1);
|
|
1371
|
+
tmp1_output.x49(tmp0_desc, 1, this.r5o_1, value.v5o_1);
|
|
1372
|
+
tmp1_output.v49(tmp0_desc, 2, value.w5o_1);
|
|
1373
|
+
tmp1_output.i48(tmp0_desc);
|
|
1374
|
+
};
|
|
1375
|
+
protoOf($serializer_4).u44 = function (encoder, value) {
|
|
1376
|
+
return this.t5o(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1377
|
+
};
|
|
1378
|
+
protoOf($serializer_4).v44 = function (decoder) {
|
|
1379
|
+
var tmp0_desc = this.q5o_1;
|
|
1380
1380
|
var tmp1_flag = true;
|
|
1381
1381
|
var tmp2_index = 0;
|
|
1382
1382
|
var tmp3_bitMask0 = 0;
|
|
1383
1383
|
var tmp4_local0 = null;
|
|
1384
1384
|
var tmp5_local1 = null;
|
|
1385
1385
|
var tmp6_local2 = null;
|
|
1386
|
-
var tmp7_input = decoder.
|
|
1387
|
-
if (tmp7_input.
|
|
1388
|
-
tmp4_local0 = tmp7_input.
|
|
1386
|
+
var tmp7_input = decoder.h48(tmp0_desc);
|
|
1387
|
+
if (tmp7_input.w48()) {
|
|
1388
|
+
tmp4_local0 = tmp7_input.r48(tmp0_desc, 0);
|
|
1389
1389
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1390
|
-
tmp5_local1 = tmp7_input.
|
|
1390
|
+
tmp5_local1 = tmp7_input.t48(tmp0_desc, 1, this.r5o_1, tmp5_local1);
|
|
1391
1391
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1392
|
-
tmp6_local2 = tmp7_input.
|
|
1392
|
+
tmp6_local2 = tmp7_input.r48(tmp0_desc, 2);
|
|
1393
1393
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1394
1394
|
} else
|
|
1395
1395
|
while (tmp1_flag) {
|
|
1396
|
-
tmp2_index = tmp7_input.
|
|
1396
|
+
tmp2_index = tmp7_input.x48(tmp0_desc);
|
|
1397
1397
|
switch (tmp2_index) {
|
|
1398
1398
|
case -1:
|
|
1399
1399
|
tmp1_flag = false;
|
|
1400
1400
|
break;
|
|
1401
1401
|
case 0:
|
|
1402
|
-
tmp4_local0 = tmp7_input.
|
|
1402
|
+
tmp4_local0 = tmp7_input.r48(tmp0_desc, 0);
|
|
1403
1403
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1404
1404
|
break;
|
|
1405
1405
|
case 1:
|
|
1406
|
-
tmp5_local1 = tmp7_input.
|
|
1406
|
+
tmp5_local1 = tmp7_input.t48(tmp0_desc, 1, this.r5o_1, tmp5_local1);
|
|
1407
1407
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1408
1408
|
break;
|
|
1409
1409
|
case 2:
|
|
1410
|
-
tmp6_local2 = tmp7_input.
|
|
1410
|
+
tmp6_local2 = tmp7_input.r48(tmp0_desc, 2);
|
|
1411
1411
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1412
1412
|
break;
|
|
1413
1413
|
default:
|
|
1414
1414
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
|
-
tmp7_input.
|
|
1417
|
+
tmp7_input.i48(tmp0_desc);
|
|
1418
1418
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1419
1419
|
};
|
|
1420
|
-
protoOf($serializer_4).
|
|
1421
|
-
return this.
|
|
1420
|
+
protoOf($serializer_4).t44 = function () {
|
|
1421
|
+
return this.q5o_1;
|
|
1422
1422
|
};
|
|
1423
|
-
protoOf($serializer_4).
|
|
1423
|
+
protoOf($serializer_4).k4g = function () {
|
|
1424
1424
|
// Inline function 'kotlin.arrayOf' call
|
|
1425
1425
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1426
1426
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1427
|
-
return [StringSerializer_getInstance(), this.
|
|
1427
|
+
return [StringSerializer_getInstance(), this.r5o_1, StringSerializer_getInstance()];
|
|
1428
1428
|
};
|
|
1429
|
-
protoOf($serializer_4).
|
|
1429
|
+
protoOf($serializer_4).l4g = function () {
|
|
1430
1430
|
// Inline function 'kotlin.arrayOf' call
|
|
1431
1431
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1432
1432
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1433
|
-
return [this.
|
|
1433
|
+
return [this.r5o_1];
|
|
1434
1434
|
};
|
|
1435
1435
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1436
1436
|
if (!(7 === (7 & seen0))) {
|
|
1437
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1437
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().s5o_1);
|
|
1438
1438
|
}
|
|
1439
|
-
$this.
|
|
1440
|
-
$this.
|
|
1441
|
-
$this.
|
|
1439
|
+
$this.u5o_1 = jsonrpc;
|
|
1440
|
+
$this.v5o_1 = result;
|
|
1441
|
+
$this.w5o_1 = id;
|
|
1442
1442
|
return $this;
|
|
1443
1443
|
}
|
|
1444
1444
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1446,17 +1446,17 @@
|
|
|
1446
1446
|
}
|
|
1447
1447
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1448
1448
|
Companion_getInstance_8();
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1449
|
+
this.u5o_1 = jsonrpc;
|
|
1450
|
+
this.v5o_1 = result;
|
|
1451
|
+
this.w5o_1 = id;
|
|
1452
1452
|
}
|
|
1453
1453
|
protoOf(RandomResponseDto).toString = function () {
|
|
1454
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1454
|
+
return 'RandomResponseDto(jsonrpc=' + this.u5o_1 + ', result=' + toString(this.v5o_1) + ', id=' + this.w5o_1 + ')';
|
|
1455
1455
|
};
|
|
1456
1456
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1457
|
-
var result = getStringHashCode(this.
|
|
1458
|
-
result = imul(result, 31) + hashCode(this.
|
|
1459
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1457
|
+
var result = getStringHashCode(this.u5o_1);
|
|
1458
|
+
result = imul(result, 31) + hashCode(this.v5o_1) | 0;
|
|
1459
|
+
result = imul(result, 31) + getStringHashCode(this.w5o_1) | 0;
|
|
1460
1460
|
return result;
|
|
1461
1461
|
};
|
|
1462
1462
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1465,11 +1465,11 @@
|
|
|
1465
1465
|
if (!(other instanceof RandomResponseDto))
|
|
1466
1466
|
return false;
|
|
1467
1467
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1468
|
-
if (!(this.
|
|
1468
|
+
if (!(this.u5o_1 === tmp0_other_with_cast.u5o_1))
|
|
1469
1469
|
return false;
|
|
1470
|
-
if (!equals(this.
|
|
1470
|
+
if (!equals(this.v5o_1, tmp0_other_with_cast.v5o_1))
|
|
1471
1471
|
return false;
|
|
1472
|
-
if (!(this.
|
|
1472
|
+
if (!(this.w5o_1 === tmp0_other_with_cast.w5o_1))
|
|
1473
1473
|
return false;
|
|
1474
1474
|
return true;
|
|
1475
1475
|
};
|
|
@@ -1482,30 +1482,30 @@
|
|
|
1482
1482
|
function $serializer_5() {
|
|
1483
1483
|
$serializer_instance_3 = this;
|
|
1484
1484
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1485
|
-
tmp0_serialDesc.
|
|
1486
|
-
tmp0_serialDesc.
|
|
1487
|
-
tmp0_serialDesc.
|
|
1488
|
-
tmp0_serialDesc.
|
|
1489
|
-
tmp0_serialDesc.
|
|
1490
|
-
tmp0_serialDesc.
|
|
1491
|
-
this.
|
|
1492
|
-
}
|
|
1493
|
-
protoOf($serializer_5).
|
|
1494
|
-
var tmp0_desc = this.
|
|
1495
|
-
var tmp1_output = encoder.
|
|
1496
|
-
tmp1_output.
|
|
1497
|
-
tmp1_output.
|
|
1498
|
-
tmp1_output.
|
|
1499
|
-
tmp1_output.
|
|
1500
|
-
tmp1_output.
|
|
1501
|
-
tmp1_output.
|
|
1502
|
-
tmp1_output.
|
|
1503
|
-
};
|
|
1504
|
-
protoOf($serializer_5).
|
|
1505
|
-
return this.
|
|
1506
|
-
};
|
|
1507
|
-
protoOf($serializer_5).
|
|
1508
|
-
var tmp0_desc = this.
|
|
1485
|
+
tmp0_serialDesc.v4f('random', false);
|
|
1486
|
+
tmp0_serialDesc.v4f('signature', false);
|
|
1487
|
+
tmp0_serialDesc.v4f('bitsUsed', false);
|
|
1488
|
+
tmp0_serialDesc.v4f('bitsLeft', false);
|
|
1489
|
+
tmp0_serialDesc.v4f('requestsLeft', false);
|
|
1490
|
+
tmp0_serialDesc.v4f('advisoryDelay', false);
|
|
1491
|
+
this.x5o_1 = tmp0_serialDesc;
|
|
1492
|
+
}
|
|
1493
|
+
protoOf($serializer_5).y5o = function (encoder, value) {
|
|
1494
|
+
var tmp0_desc = this.x5o_1;
|
|
1495
|
+
var tmp1_output = encoder.h48(tmp0_desc);
|
|
1496
|
+
tmp1_output.x49(tmp0_desc, 0, $serializer_getInstance_4(), value.z5o_1);
|
|
1497
|
+
tmp1_output.z49(tmp0_desc, 1, StringSerializer_getInstance(), value.a5p_1);
|
|
1498
|
+
tmp1_output.z49(tmp0_desc, 2, IntSerializer_getInstance(), value.b5p_1);
|
|
1499
|
+
tmp1_output.z49(tmp0_desc, 3, IntSerializer_getInstance(), value.c5p_1);
|
|
1500
|
+
tmp1_output.z49(tmp0_desc, 4, IntSerializer_getInstance(), value.d5p_1);
|
|
1501
|
+
tmp1_output.z49(tmp0_desc, 5, IntSerializer_getInstance(), value.e5p_1);
|
|
1502
|
+
tmp1_output.i48(tmp0_desc);
|
|
1503
|
+
};
|
|
1504
|
+
protoOf($serializer_5).u44 = function (encoder, value) {
|
|
1505
|
+
return this.y5o(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1506
|
+
};
|
|
1507
|
+
protoOf($serializer_5).v44 = function (decoder) {
|
|
1508
|
+
var tmp0_desc = this.x5o_1;
|
|
1509
1509
|
var tmp1_flag = true;
|
|
1510
1510
|
var tmp2_index = 0;
|
|
1511
1511
|
var tmp3_bitMask0 = 0;
|
|
@@ -1515,62 +1515,62 @@
|
|
|
1515
1515
|
var tmp7_local3 = null;
|
|
1516
1516
|
var tmp8_local4 = null;
|
|
1517
1517
|
var tmp9_local5 = null;
|
|
1518
|
-
var tmp10_input = decoder.
|
|
1519
|
-
if (tmp10_input.
|
|
1520
|
-
tmp4_local0 = tmp10_input.
|
|
1518
|
+
var tmp10_input = decoder.h48(tmp0_desc);
|
|
1519
|
+
if (tmp10_input.w48()) {
|
|
1520
|
+
tmp4_local0 = tmp10_input.t48(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1521
1521
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1522
|
-
tmp5_local1 = tmp10_input.
|
|
1522
|
+
tmp5_local1 = tmp10_input.v48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1523
1523
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1524
|
-
tmp6_local2 = tmp10_input.
|
|
1524
|
+
tmp6_local2 = tmp10_input.v48(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1525
1525
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1526
|
-
tmp7_local3 = tmp10_input.
|
|
1526
|
+
tmp7_local3 = tmp10_input.v48(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1527
1527
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1528
|
-
tmp8_local4 = tmp10_input.
|
|
1528
|
+
tmp8_local4 = tmp10_input.v48(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1529
1529
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1530
|
-
tmp9_local5 = tmp10_input.
|
|
1530
|
+
tmp9_local5 = tmp10_input.v48(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1531
1531
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1532
1532
|
} else
|
|
1533
1533
|
while (tmp1_flag) {
|
|
1534
|
-
tmp2_index = tmp10_input.
|
|
1534
|
+
tmp2_index = tmp10_input.x48(tmp0_desc);
|
|
1535
1535
|
switch (tmp2_index) {
|
|
1536
1536
|
case -1:
|
|
1537
1537
|
tmp1_flag = false;
|
|
1538
1538
|
break;
|
|
1539
1539
|
case 0:
|
|
1540
|
-
tmp4_local0 = tmp10_input.
|
|
1540
|
+
tmp4_local0 = tmp10_input.t48(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1541
1541
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1542
1542
|
break;
|
|
1543
1543
|
case 1:
|
|
1544
|
-
tmp5_local1 = tmp10_input.
|
|
1544
|
+
tmp5_local1 = tmp10_input.v48(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1545
1545
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1546
1546
|
break;
|
|
1547
1547
|
case 2:
|
|
1548
|
-
tmp6_local2 = tmp10_input.
|
|
1548
|
+
tmp6_local2 = tmp10_input.v48(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1549
1549
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1550
1550
|
break;
|
|
1551
1551
|
case 3:
|
|
1552
|
-
tmp7_local3 = tmp10_input.
|
|
1552
|
+
tmp7_local3 = tmp10_input.v48(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1553
1553
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1554
1554
|
break;
|
|
1555
1555
|
case 4:
|
|
1556
|
-
tmp8_local4 = tmp10_input.
|
|
1556
|
+
tmp8_local4 = tmp10_input.v48(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1557
1557
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1558
1558
|
break;
|
|
1559
1559
|
case 5:
|
|
1560
|
-
tmp9_local5 = tmp10_input.
|
|
1560
|
+
tmp9_local5 = tmp10_input.v48(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1561
1561
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1562
1562
|
break;
|
|
1563
1563
|
default:
|
|
1564
1564
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
tmp10_input.
|
|
1567
|
+
tmp10_input.i48(tmp0_desc);
|
|
1568
1568
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1569
1569
|
};
|
|
1570
|
-
protoOf($serializer_5).
|
|
1571
|
-
return this.
|
|
1570
|
+
protoOf($serializer_5).t44 = function () {
|
|
1571
|
+
return this.x5o_1;
|
|
1572
1572
|
};
|
|
1573
|
-
protoOf($serializer_5).
|
|
1573
|
+
protoOf($serializer_5).k4g = function () {
|
|
1574
1574
|
// Inline function 'kotlin.arrayOf' call
|
|
1575
1575
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1576
1576
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1584,37 +1584,37 @@
|
|
|
1584
1584
|
}
|
|
1585
1585
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1586
1586
|
if (!(63 === (63 & seen0))) {
|
|
1587
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1587
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().x5o_1);
|
|
1588
1588
|
}
|
|
1589
|
-
$this.
|
|
1590
|
-
$this.
|
|
1591
|
-
$this.
|
|
1592
|
-
$this.
|
|
1593
|
-
$this.
|
|
1594
|
-
$this.
|
|
1589
|
+
$this.z5o_1 = random;
|
|
1590
|
+
$this.a5p_1 = signature;
|
|
1591
|
+
$this.b5p_1 = bitsUsed;
|
|
1592
|
+
$this.c5p_1 = bitsLeft;
|
|
1593
|
+
$this.d5p_1 = requestsLeft;
|
|
1594
|
+
$this.e5p_1 = advisoryDelay;
|
|
1595
1595
|
return $this;
|
|
1596
1596
|
}
|
|
1597
1597
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1598
1598
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1599
1599
|
}
|
|
1600
1600
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1601
|
+
this.z5o_1 = random;
|
|
1602
|
+
this.a5p_1 = signature;
|
|
1603
|
+
this.b5p_1 = bitsUsed;
|
|
1604
|
+
this.c5p_1 = bitsLeft;
|
|
1605
|
+
this.d5p_1 = requestsLeft;
|
|
1606
|
+
this.e5p_1 = advisoryDelay;
|
|
1607
1607
|
}
|
|
1608
1608
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1609
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1609
|
+
return 'IntegerSequencesResultDto(random=' + this.z5o_1.toString() + ', signature=' + this.a5p_1 + ', bitsUsed=' + this.b5p_1 + ', bitsLeft=' + this.c5p_1 + ', requestsLeft=' + this.d5p_1 + ', advisoryDelay=' + this.e5p_1 + ')';
|
|
1610
1610
|
};
|
|
1611
1611
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1612
|
-
var result = this.
|
|
1613
|
-
result = imul(result, 31) + (this.
|
|
1612
|
+
var result = this.z5o_1.hashCode();
|
|
1613
|
+
result = imul(result, 31) + (this.a5p_1 == null ? 0 : getStringHashCode(this.a5p_1)) | 0;
|
|
1614
|
+
result = imul(result, 31) + (this.b5p_1 == null ? 0 : this.b5p_1) | 0;
|
|
1614
1615
|
result = imul(result, 31) + (this.c5p_1 == null ? 0 : this.c5p_1) | 0;
|
|
1615
1616
|
result = imul(result, 31) + (this.d5p_1 == null ? 0 : this.d5p_1) | 0;
|
|
1616
1617
|
result = imul(result, 31) + (this.e5p_1 == null ? 0 : this.e5p_1) | 0;
|
|
1617
|
-
result = imul(result, 31) + (this.f5p_1 == null ? 0 : this.f5p_1) | 0;
|
|
1618
1618
|
return result;
|
|
1619
1619
|
};
|
|
1620
1620
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1623,7 +1623,9 @@
|
|
|
1623
1623
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1624
1624
|
return false;
|
|
1625
1625
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1626
|
-
if (!this.
|
|
1626
|
+
if (!this.z5o_1.equals(tmp0_other_with_cast.z5o_1))
|
|
1627
|
+
return false;
|
|
1628
|
+
if (!(this.a5p_1 == tmp0_other_with_cast.a5p_1))
|
|
1627
1629
|
return false;
|
|
1628
1630
|
if (!(this.b5p_1 == tmp0_other_with_cast.b5p_1))
|
|
1629
1631
|
return false;
|
|
@@ -1633,8 +1635,6 @@
|
|
|
1633
1635
|
return false;
|
|
1634
1636
|
if (!(this.e5p_1 == tmp0_other_with_cast.e5p_1))
|
|
1635
1637
|
return false;
|
|
1636
|
-
if (!(this.f5p_1 == tmp0_other_with_cast.f5p_1))
|
|
1637
|
-
return false;
|
|
1638
1638
|
return true;
|
|
1639
1639
|
};
|
|
1640
1640
|
function Companion_7() {
|
|
@@ -1643,7 +1643,7 @@
|
|
|
1643
1643
|
// Inline function 'kotlin.arrayOf' call
|
|
1644
1644
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1645
1645
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1646
|
-
tmp.
|
|
1646
|
+
tmp.f5p_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1647
1647
|
}
|
|
1648
1648
|
var Companion_instance_9;
|
|
1649
1649
|
function Companion_getInstance_10() {
|
|
@@ -1654,74 +1654,74 @@
|
|
|
1654
1654
|
function $serializer_6() {
|
|
1655
1655
|
$serializer_instance_4 = this;
|
|
1656
1656
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1657
|
-
tmp0_serialDesc.
|
|
1658
|
-
tmp0_serialDesc.
|
|
1659
|
-
tmp0_serialDesc.
|
|
1660
|
-
this.
|
|
1661
|
-
}
|
|
1662
|
-
protoOf($serializer_6).
|
|
1663
|
-
var tmp0_desc = this.
|
|
1664
|
-
var tmp1_output = encoder.
|
|
1665
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1666
|
-
tmp1_output.
|
|
1667
|
-
tmp1_output.
|
|
1668
|
-
tmp1_output.
|
|
1669
|
-
tmp1_output.
|
|
1670
|
-
};
|
|
1671
|
-
protoOf($serializer_6).
|
|
1672
|
-
return this.
|
|
1673
|
-
};
|
|
1674
|
-
protoOf($serializer_6).
|
|
1675
|
-
var tmp0_desc = this.
|
|
1657
|
+
tmp0_serialDesc.v4f('data', false);
|
|
1658
|
+
tmp0_serialDesc.v4f('completionTime', false);
|
|
1659
|
+
tmp0_serialDesc.v4f('ticketId', false);
|
|
1660
|
+
this.g5p_1 = tmp0_serialDesc;
|
|
1661
|
+
}
|
|
1662
|
+
protoOf($serializer_6).h5p = function (encoder, value) {
|
|
1663
|
+
var tmp0_desc = this.g5p_1;
|
|
1664
|
+
var tmp1_output = encoder.h48(tmp0_desc);
|
|
1665
|
+
var tmp2_cached = Companion_getInstance_10().f5p_1;
|
|
1666
|
+
tmp1_output.x49(tmp0_desc, 0, tmp2_cached[0], value.i5p_1);
|
|
1667
|
+
tmp1_output.v49(tmp0_desc, 1, value.j5p_1);
|
|
1668
|
+
tmp1_output.z49(tmp0_desc, 2, StringSerializer_getInstance(), value.k5p_1);
|
|
1669
|
+
tmp1_output.i48(tmp0_desc);
|
|
1670
|
+
};
|
|
1671
|
+
protoOf($serializer_6).u44 = function (encoder, value) {
|
|
1672
|
+
return this.h5p(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1673
|
+
};
|
|
1674
|
+
protoOf($serializer_6).v44 = function (decoder) {
|
|
1675
|
+
var tmp0_desc = this.g5p_1;
|
|
1676
1676
|
var tmp1_flag = true;
|
|
1677
1677
|
var tmp2_index = 0;
|
|
1678
1678
|
var tmp3_bitMask0 = 0;
|
|
1679
1679
|
var tmp4_local0 = null;
|
|
1680
1680
|
var tmp5_local1 = null;
|
|
1681
1681
|
var tmp6_local2 = null;
|
|
1682
|
-
var tmp7_input = decoder.
|
|
1683
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1684
|
-
if (tmp7_input.
|
|
1685
|
-
tmp4_local0 = tmp7_input.
|
|
1682
|
+
var tmp7_input = decoder.h48(tmp0_desc);
|
|
1683
|
+
var tmp8_cached = Companion_getInstance_10().f5p_1;
|
|
1684
|
+
if (tmp7_input.w48()) {
|
|
1685
|
+
tmp4_local0 = tmp7_input.t48(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1686
1686
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1687
|
-
tmp5_local1 = tmp7_input.
|
|
1687
|
+
tmp5_local1 = tmp7_input.r48(tmp0_desc, 1);
|
|
1688
1688
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1689
|
-
tmp6_local2 = tmp7_input.
|
|
1689
|
+
tmp6_local2 = tmp7_input.v48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1690
1690
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1691
1691
|
} else
|
|
1692
1692
|
while (tmp1_flag) {
|
|
1693
|
-
tmp2_index = tmp7_input.
|
|
1693
|
+
tmp2_index = tmp7_input.x48(tmp0_desc);
|
|
1694
1694
|
switch (tmp2_index) {
|
|
1695
1695
|
case -1:
|
|
1696
1696
|
tmp1_flag = false;
|
|
1697
1697
|
break;
|
|
1698
1698
|
case 0:
|
|
1699
|
-
tmp4_local0 = tmp7_input.
|
|
1699
|
+
tmp4_local0 = tmp7_input.t48(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1700
1700
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1701
1701
|
break;
|
|
1702
1702
|
case 1:
|
|
1703
|
-
tmp5_local1 = tmp7_input.
|
|
1703
|
+
tmp5_local1 = tmp7_input.r48(tmp0_desc, 1);
|
|
1704
1704
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1705
1705
|
break;
|
|
1706
1706
|
case 2:
|
|
1707
|
-
tmp6_local2 = tmp7_input.
|
|
1707
|
+
tmp6_local2 = tmp7_input.v48(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1708
1708
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1709
1709
|
break;
|
|
1710
1710
|
default:
|
|
1711
1711
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
|
-
tmp7_input.
|
|
1714
|
+
tmp7_input.i48(tmp0_desc);
|
|
1715
1715
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1716
1716
|
};
|
|
1717
|
-
protoOf($serializer_6).
|
|
1718
|
-
return this.
|
|
1717
|
+
protoOf($serializer_6).t44 = function () {
|
|
1718
|
+
return this.g5p_1;
|
|
1719
1719
|
};
|
|
1720
|
-
protoOf($serializer_6).
|
|
1720
|
+
protoOf($serializer_6).k4g = function () {
|
|
1721
1721
|
// Inline function 'kotlin.arrayOf' call
|
|
1722
1722
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1723
1723
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1724
|
-
return [Companion_getInstance_10().
|
|
1724
|
+
return [Companion_getInstance_10().f5p_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1725
1725
|
};
|
|
1726
1726
|
var $serializer_instance_4;
|
|
1727
1727
|
function $serializer_getInstance_4() {
|
|
@@ -1731,11 +1731,11 @@
|
|
|
1731
1731
|
}
|
|
1732
1732
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1733
1733
|
if (!(7 === (7 & seen0))) {
|
|
1734
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1734
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().g5p_1);
|
|
1735
1735
|
}
|
|
1736
|
-
$this.
|
|
1737
|
-
$this.
|
|
1738
|
-
$this.
|
|
1736
|
+
$this.i5p_1 = data;
|
|
1737
|
+
$this.j5p_1 = completionTime;
|
|
1738
|
+
$this.k5p_1 = ticketId;
|
|
1739
1739
|
return $this;
|
|
1740
1740
|
}
|
|
1741
1741
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1744,12 +1744,12 @@
|
|
|
1744
1744
|
function IntegerSequencesDataDto() {
|
|
1745
1745
|
}
|
|
1746
1746
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1747
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1747
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.i5p_1) + ', completionTime=' + this.j5p_1 + ', ticketId=' + this.k5p_1 + ')';
|
|
1748
1748
|
};
|
|
1749
1749
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1750
|
-
var result = hashCode(this.
|
|
1751
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1752
|
-
result = imul(result, 31) + (this.
|
|
1750
|
+
var result = hashCode(this.i5p_1);
|
|
1751
|
+
result = imul(result, 31) + getStringHashCode(this.j5p_1) | 0;
|
|
1752
|
+
result = imul(result, 31) + (this.k5p_1 == null ? 0 : getStringHashCode(this.k5p_1)) | 0;
|
|
1753
1753
|
return result;
|
|
1754
1754
|
};
|
|
1755
1755
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1758,11 +1758,11 @@
|
|
|
1758
1758
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1759
1759
|
return false;
|
|
1760
1760
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1761
|
-
if (!equals(this.
|
|
1761
|
+
if (!equals(this.i5p_1, tmp0_other_with_cast.i5p_1))
|
|
1762
1762
|
return false;
|
|
1763
|
-
if (!(this.
|
|
1763
|
+
if (!(this.j5p_1 === tmp0_other_with_cast.j5p_1))
|
|
1764
1764
|
return false;
|
|
1765
|
-
if (!(this.
|
|
1765
|
+
if (!(this.k5p_1 == tmp0_other_with_cast.k5p_1))
|
|
1766
1766
|
return false;
|
|
1767
1767
|
return true;
|
|
1768
1768
|
};
|
|
@@ -1781,7 +1781,7 @@
|
|
|
1781
1781
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1782
1782
|
}
|
|
1783
1783
|
function Companion_8() {
|
|
1784
|
-
this.
|
|
1784
|
+
this.y5p_1 = 52;
|
|
1785
1785
|
}
|
|
1786
1786
|
var Companion_instance_10;
|
|
1787
1787
|
function Companion_getInstance_11() {
|
|
@@ -1789,13 +1789,13 @@
|
|
|
1789
1789
|
}
|
|
1790
1790
|
function $getRandomCardDecksCOROUTINE$1(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1791
1791
|
CoroutineImpl.call(this, resultContinuation);
|
|
1792
|
-
this.
|
|
1793
|
-
this.
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1796
|
-
this.
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1792
|
+
this.h5q_1 = _this__u8e3s4;
|
|
1793
|
+
this.i5q_1 = min;
|
|
1794
|
+
this.j5q_1 = max;
|
|
1795
|
+
this.k5q_1 = decksCount;
|
|
1796
|
+
this.l5q_1 = cardsCount;
|
|
1797
|
+
this.m5q_1 = userData;
|
|
1798
|
+
this.n5q_1 = signed;
|
|
1799
1799
|
}
|
|
1800
1800
|
protoOf($getRandomCardDecksCOROUTINE$1).m9 = function () {
|
|
1801
1801
|
var suspendResult = this.g9_1;
|
|
@@ -1807,30 +1807,30 @@
|
|
|
1807
1807
|
this.f9_1 = 6;
|
|
1808
1808
|
this.f9_1 = 5;
|
|
1809
1809
|
var tmp_0 = this;
|
|
1810
|
-
tmp_0.
|
|
1810
|
+
tmp_0.o5q_1 = this.h5q_1.x5q_1;
|
|
1811
1811
|
var tmp_1 = this;
|
|
1812
|
-
tmp_1.
|
|
1812
|
+
tmp_1.p5q_1 = this.o5q_1;
|
|
1813
1813
|
var tmp_2 = this;
|
|
1814
1814
|
var this_0 = new HttpRequestBuilder();
|
|
1815
1815
|
url(this_0, '/json-rpc/4/invoke');
|
|
1816
|
-
var tmp11_id = this.
|
|
1817
|
-
var tmp12_method = this.
|
|
1818
|
-
var tmp8_apiKey = this.
|
|
1819
|
-
var size = this.
|
|
1816
|
+
var tmp11_id = this.m5q_1.id;
|
|
1817
|
+
var tmp12_method = this.n5q_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1818
|
+
var tmp8_apiKey = this.h5q_1.y5q_1;
|
|
1819
|
+
var size = this.k5q_1;
|
|
1820
1820
|
var list = ArrayList_init_$Create$(size);
|
|
1821
1821
|
var inductionVariable = 0;
|
|
1822
1822
|
if (inductionVariable < size)
|
|
1823
1823
|
do {
|
|
1824
1824
|
var index = inductionVariable;
|
|
1825
1825
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1826
|
-
list.e(this.
|
|
1826
|
+
list.e(this.l5q_1);
|
|
1827
1827
|
}
|
|
1828
1828
|
while (inductionVariable < size);
|
|
1829
|
-
var tmp10_userData = this.
|
|
1830
|
-
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.
|
|
1829
|
+
var tmp10_userData = this.n5q_1 ? mapToDto(this.m5q_1) : null;
|
|
1830
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.k5q_1, list, this.i5q_1, this.j5q_1, false, null, tmp10_userData);
|
|
1831
1831
|
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1832
1832
|
if (body == null) {
|
|
1833
|
-
this_0.
|
|
1833
|
+
this_0.z2v_1 = NullBody_instance;
|
|
1834
1834
|
var tmp_3 = JsType_instance;
|
|
1835
1835
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1836
1836
|
var tmp_5;
|
|
@@ -1846,13 +1846,13 @@
|
|
|
1846
1846
|
}
|
|
1847
1847
|
tmp_5 = tmp_6;
|
|
1848
1848
|
}
|
|
1849
|
-
this_0.
|
|
1849
|
+
this_0.v31(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1850
1850
|
} else {
|
|
1851
1851
|
if (body instanceof OutgoingContent) {
|
|
1852
|
-
this_0.
|
|
1853
|
-
this_0.
|
|
1852
|
+
this_0.z2v_1 = body;
|
|
1853
|
+
this_0.v31(null);
|
|
1854
1854
|
} else {
|
|
1855
|
-
this_0.
|
|
1855
|
+
this_0.z2v_1 = body;
|
|
1856
1856
|
var tmp_7 = JsType_instance;
|
|
1857
1857
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1858
1858
|
var tmp_9;
|
|
@@ -1868,29 +1868,29 @@
|
|
|
1868
1868
|
}
|
|
1869
1869
|
tmp_9 = tmp_10;
|
|
1870
1870
|
}
|
|
1871
|
-
this_0.
|
|
1871
|
+
this_0.v31(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
|
|
1875
|
-
tmp_2.
|
|
1876
|
-
this.
|
|
1875
|
+
tmp_2.q5q_1 = this_0;
|
|
1876
|
+
this.q5q_1.x2v_1 = Companion_getInstance().p2k_1;
|
|
1877
1877
|
var tmp_11 = this;
|
|
1878
|
-
tmp_11.
|
|
1878
|
+
tmp_11.r5q_1 = this.p5q_1;
|
|
1879
1879
|
var tmp_12 = this;
|
|
1880
|
-
tmp_12.
|
|
1880
|
+
tmp_12.s5q_1 = this.q5q_1;
|
|
1881
1881
|
this.e9_1 = 1;
|
|
1882
|
-
suspendResult = (new HttpStatement(this.
|
|
1882
|
+
suspendResult = (new HttpStatement(this.s5q_1, this.r5q_1)).f3p(this);
|
|
1883
1883
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1884
1884
|
return suspendResult;
|
|
1885
1885
|
}
|
|
1886
1886
|
|
|
1887
1887
|
continue $sm;
|
|
1888
1888
|
case 1:
|
|
1889
|
-
this.
|
|
1889
|
+
this.t5q_1 = suspendResult;
|
|
1890
1890
|
var tmp_13 = this;
|
|
1891
|
-
tmp_13.
|
|
1891
|
+
tmp_13.u5q_1 = this.t5q_1;
|
|
1892
1892
|
this.e9_1 = 2;
|
|
1893
|
-
var tmp_14 = this.
|
|
1893
|
+
var tmp_14 = this.u5q_1.e2z();
|
|
1894
1894
|
var tmp_15 = JsType_instance;
|
|
1895
1895
|
var tmp_16 = getKClass(JsonObject);
|
|
1896
1896
|
var tmp_17;
|
|
@@ -1907,7 +1907,7 @@
|
|
|
1907
1907
|
tmp_17 = tmp_18;
|
|
1908
1908
|
}
|
|
1909
1909
|
|
|
1910
|
-
suspendResult = tmp_14.
|
|
1910
|
+
suspendResult = tmp_14.i2y(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1911
1911
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1912
1912
|
return suspendResult;
|
|
1913
1913
|
}
|
|
@@ -1915,9 +1915,9 @@
|
|
|
1915
1915
|
continue $sm;
|
|
1916
1916
|
case 2:
|
|
1917
1917
|
var tmp_19 = this;
|
|
1918
|
-
tmp_19.
|
|
1918
|
+
tmp_19.v5q_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1919
1919
|
this.e9_1 = 3;
|
|
1920
|
-
suspendResult = throwIfError(this.
|
|
1920
|
+
suspendResult = throwIfError(this.h5q_1, this.v5q_1, this.t5q_1, this);
|
|
1921
1921
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1922
1922
|
return suspendResult;
|
|
1923
1923
|
}
|
|
@@ -1925,9 +1925,9 @@
|
|
|
1925
1925
|
continue $sm;
|
|
1926
1926
|
case 3:
|
|
1927
1927
|
var tmp_20 = this;
|
|
1928
|
-
tmp_20.
|
|
1928
|
+
tmp_20.w5q_1 = this.t5q_1;
|
|
1929
1929
|
this.e9_1 = 4;
|
|
1930
|
-
var tmp_21 = this.
|
|
1930
|
+
var tmp_21 = this.w5q_1.e2z();
|
|
1931
1931
|
var tmp_22 = JsType_instance;
|
|
1932
1932
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1933
1933
|
var tmp_24;
|
|
@@ -1944,7 +1944,7 @@
|
|
|
1944
1944
|
tmp_24 = tmp_25;
|
|
1945
1945
|
}
|
|
1946
1946
|
|
|
1947
|
-
suspendResult = tmp_21.
|
|
1947
|
+
suspendResult = tmp_21.i2y(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1948
1948
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1949
1949
|
return suspendResult;
|
|
1950
1950
|
}
|
|
@@ -1952,10 +1952,10 @@
|
|
|
1952
1952
|
continue $sm;
|
|
1953
1953
|
case 4:
|
|
1954
1954
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1955
|
-
var randomJson = extractRandomResult(this.
|
|
1956
|
-
var tmp14_cardDecks = responseDto.
|
|
1957
|
-
var tmp15_signature = responseDto.
|
|
1958
|
-
var tmp16_id = responseDto.
|
|
1955
|
+
var randomJson = extractRandomResult(this.h5q_1, this.v5q_1);
|
|
1956
|
+
var tmp14_cardDecks = responseDto.v5o_1.z5o_1.i5p_1;
|
|
1957
|
+
var tmp15_signature = responseDto.v5o_1.a5p_1;
|
|
1958
|
+
var tmp16_id = responseDto.w5o_1;
|
|
1959
1959
|
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1960
1960
|
case 5:
|
|
1961
1961
|
this.f9_1 = 6;
|
|
@@ -1987,9 +1987,9 @@
|
|
|
1987
1987
|
};
|
|
1988
1988
|
function $throwIfErrorCOROUTINE$2(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1989
1989
|
CoroutineImpl.call(this, resultContinuation);
|
|
1990
|
-
this.
|
|
1991
|
-
this.
|
|
1992
|
-
this.
|
|
1990
|
+
this.u5p_1 = _this__u8e3s4;
|
|
1991
|
+
this.v5p_1 = bodyAsJson;
|
|
1992
|
+
this.w5p_1 = response;
|
|
1993
1993
|
}
|
|
1994
1994
|
protoOf($throwIfErrorCOROUTINE$2).m9 = function () {
|
|
1995
1995
|
var suspendResult = this.g9_1;
|
|
@@ -1999,12 +1999,12 @@
|
|
|
1999
1999
|
switch (tmp) {
|
|
2000
2000
|
case 0:
|
|
2001
2001
|
this.f9_1 = 3;
|
|
2002
|
-
var this_0 = this.
|
|
2002
|
+
var this_0 = this.v5p_1;
|
|
2003
2003
|
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).e2('error')) {
|
|
2004
2004
|
var tmp_0 = this;
|
|
2005
|
-
tmp_0.
|
|
2005
|
+
tmp_0.x5p_1 = this.w5p_1;
|
|
2006
2006
|
this.e9_1 = 2;
|
|
2007
|
-
var tmp_1 = this.
|
|
2007
|
+
var tmp_1 = this.x5p_1.e2z();
|
|
2008
2008
|
var tmp_2 = JsType_instance;
|
|
2009
2009
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2010
2010
|
var tmp_4;
|
|
@@ -2020,7 +2020,7 @@
|
|
|
2020
2020
|
}
|
|
2021
2021
|
tmp_4 = tmp_5;
|
|
2022
2022
|
}
|
|
2023
|
-
suspendResult = tmp_1.
|
|
2023
|
+
suspendResult = tmp_1.i2y(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2024
2024
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2025
2025
|
return suspendResult;
|
|
2026
2026
|
}
|
|
@@ -2034,10 +2034,10 @@
|
|
|
2034
2034
|
return Unit_instance;
|
|
2035
2035
|
case 2:
|
|
2036
2036
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2037
|
-
var tmp18_safe_receiver = errorResponseDto.
|
|
2038
|
-
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.
|
|
2039
|
-
var tmp19_safe_receiver = errorResponseDto.
|
|
2040
|
-
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
2037
|
+
var tmp18_safe_receiver = errorResponseDto.n5n_1;
|
|
2038
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.q5n_1;
|
|
2039
|
+
var tmp19_safe_receiver = errorResponseDto.n5n_1;
|
|
2040
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.r5n_1);
|
|
2041
2041
|
case 3:
|
|
2042
2042
|
throw this.h9_1;
|
|
2043
2043
|
}
|
|
@@ -2053,10 +2053,10 @@
|
|
|
2053
2053
|
while (true);
|
|
2054
2054
|
};
|
|
2055
2055
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2056
|
-
this.
|
|
2057
|
-
this.
|
|
2056
|
+
this.x5q_1 = client;
|
|
2057
|
+
this.y5q_1 = apiKey;
|
|
2058
2058
|
}
|
|
2059
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2059
|
+
protoOf(RandomOrgApiServiceImpl).l5p = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2060
2060
|
var tmp = new $getRandomCardDecksCOROUTINE$1(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2061
2061
|
tmp.g9_1 = Unit_instance;
|
|
2062
2062
|
tmp.h9_1 = null;
|
|
@@ -2083,19 +2083,19 @@
|
|
|
2083
2083
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2084
2084
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2085
2085
|
}
|
|
2086
|
-
protoOf(PoolParams).
|
|
2086
|
+
protoOf(PoolParams).g5n = function () {
|
|
2087
2087
|
return this.poolSize;
|
|
2088
2088
|
};
|
|
2089
|
-
protoOf(PoolParams).
|
|
2089
|
+
protoOf(PoolParams).h5n = function () {
|
|
2090
2090
|
return this.thresholdForUsedPool;
|
|
2091
2091
|
};
|
|
2092
|
-
protoOf(PoolParams).
|
|
2092
|
+
protoOf(PoolParams).z5q = function () {
|
|
2093
2093
|
return this.requestDurationWarn;
|
|
2094
2094
|
};
|
|
2095
|
-
protoOf(PoolParams).
|
|
2095
|
+
protoOf(PoolParams).a5r = function () {
|
|
2096
2096
|
return this.failedRequestAttempts;
|
|
2097
2097
|
};
|
|
2098
|
-
protoOf(PoolParams).
|
|
2098
|
+
protoOf(PoolParams).b5r = function () {
|
|
2099
2099
|
return this.failedAttemptCooldown;
|
|
2100
2100
|
};
|
|
2101
2101
|
protoOf(PoolParams).pe = function () {
|
|
@@ -2107,13 +2107,13 @@
|
|
|
2107
2107
|
protoOf(PoolParams).hk = function () {
|
|
2108
2108
|
return this.requestDurationWarn;
|
|
2109
2109
|
};
|
|
2110
|
-
protoOf(PoolParams).
|
|
2110
|
+
protoOf(PoolParams).y5m = function () {
|
|
2111
2111
|
return this.failedRequestAttempts;
|
|
2112
2112
|
};
|
|
2113
|
-
protoOf(PoolParams).
|
|
2113
|
+
protoOf(PoolParams).c5r = function () {
|
|
2114
2114
|
return this.failedAttemptCooldown;
|
|
2115
2115
|
};
|
|
2116
|
-
protoOf(PoolParams).
|
|
2116
|
+
protoOf(PoolParams).d5r = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown) {
|
|
2117
2117
|
return new PoolParams(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2118
2118
|
};
|
|
2119
2119
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2122,7 +2122,7 @@
|
|
|
2122
2122
|
requestDurationWarn = requestDurationWarn === VOID ? this.requestDurationWarn : requestDurationWarn;
|
|
2123
2123
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2124
2124
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2125
|
-
return this.
|
|
2125
|
+
return this.d5r(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2126
2126
|
};
|
|
2127
2127
|
protoOf(PoolParams).toString = function () {
|
|
2128
2128
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', requestDurationWarn=' + this.requestDurationWarn + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2159,74 +2159,74 @@
|
|
|
2159
2159
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2160
2160
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2161
2161
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2162
|
+
this.h5r_1 = randomResult;
|
|
2163
|
+
this.i5r_1 = usedByGames;
|
|
2164
|
+
this.j5r_1 = reservedCardDecks;
|
|
2165
|
+
this.k5r_1 = isUsed;
|
|
2166
2166
|
}
|
|
2167
|
-
protoOf(RandomPoolValue).
|
|
2168
|
-
return this.
|
|
2167
|
+
protoOf(RandomPoolValue).l5r = function () {
|
|
2168
|
+
return this.h5r_1.q5m_1.m();
|
|
2169
2169
|
};
|
|
2170
|
-
protoOf(RandomPoolValue).
|
|
2171
|
-
if (this.
|
|
2170
|
+
protoOf(RandomPoolValue).m5r = function (minRoundsCount) {
|
|
2171
|
+
if (this.k5r_1) {
|
|
2172
2172
|
return false;
|
|
2173
2173
|
}
|
|
2174
|
-
var availableCount = this.
|
|
2174
|
+
var availableCount = this.l5r() - this.j5r_1 | 0;
|
|
2175
2175
|
return availableCount >= minRoundsCount;
|
|
2176
2176
|
};
|
|
2177
|
-
protoOf(RandomPoolValue).
|
|
2178
|
-
var lastReservedCardDeckIndex = this.
|
|
2177
|
+
protoOf(RandomPoolValue).n5r = function (gameId, reservedCardDecks, thresholdForUsedPool) {
|
|
2178
|
+
var lastReservedCardDeckIndex = this.j5r_1 - 1 | 0;
|
|
2179
2179
|
// Inline function 'kotlin.apply' call
|
|
2180
|
-
var this_0 = toMutableMap(this.
|
|
2180
|
+
var this_0 = toMutableMap(this.i5r_1);
|
|
2181
2181
|
// Inline function 'kotlin.contracts.contract' call
|
|
2182
2182
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2183
2183
|
this_0.j2(gameId, lastReservedCardDeckIndex + 1 | 0);
|
|
2184
2184
|
var newNewUsedBy = toMap(this_0);
|
|
2185
|
-
var newReservedCardDecks = this.
|
|
2186
|
-
return this.
|
|
2185
|
+
var newReservedCardDecks = this.j5r_1 + reservedCardDecks | 0;
|
|
2186
|
+
return this.o5r(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > this.l5r());
|
|
2187
2187
|
};
|
|
2188
|
-
protoOf(RandomPoolValue).
|
|
2189
|
-
var currentCardDeckIndex = getValue(this.
|
|
2188
|
+
protoOf(RandomPoolValue).p5r = function (gameId) {
|
|
2189
|
+
var currentCardDeckIndex = getValue(this.i5r_1, gameId);
|
|
2190
2190
|
var tmp;
|
|
2191
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2191
|
+
if (currentCardDeckIndex === get_lastIndex(this.h5r_1.q5m_1)) {
|
|
2192
2192
|
tmp = 0;
|
|
2193
2193
|
} else {
|
|
2194
2194
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2195
2195
|
}
|
|
2196
2196
|
var newCardDeckIndex = tmp;
|
|
2197
2197
|
// Inline function 'kotlin.apply' call
|
|
2198
|
-
var this_0 = toMutableMap(this.
|
|
2198
|
+
var this_0 = toMutableMap(this.i5r_1);
|
|
2199
2199
|
// Inline function 'kotlin.contracts.contract' call
|
|
2200
2200
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2201
2201
|
this_0.j2(gameId, newCardDeckIndex);
|
|
2202
2202
|
var newNewUsedBy = toMap(this_0);
|
|
2203
|
-
return this.
|
|
2203
|
+
return this.o5r(VOID, newNewUsedBy);
|
|
2204
2204
|
};
|
|
2205
|
-
protoOf(RandomPoolValue).
|
|
2206
|
-
return this.
|
|
2205
|
+
protoOf(RandomPoolValue).q5r = function (gameId, reservedCardDecks) {
|
|
2206
|
+
return this.o5r(VOID, mapOf(to(gameId, 0)), reservedCardDecks);
|
|
2207
2207
|
};
|
|
2208
|
-
protoOf(RandomPoolValue).
|
|
2209
|
-
var index = getValue(this.
|
|
2210
|
-
return new GameCardDeckData(index, this.
|
|
2208
|
+
protoOf(RandomPoolValue).r5r = function (gameId) {
|
|
2209
|
+
var index = getValue(this.i5r_1, gameId);
|
|
2210
|
+
return new GameCardDeckData(index, this.h5r_1.q5m_1.o(index));
|
|
2211
2211
|
};
|
|
2212
|
-
protoOf(RandomPoolValue).
|
|
2212
|
+
protoOf(RandomPoolValue).s5r = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2213
2213
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2214
2214
|
};
|
|
2215
|
-
protoOf(RandomPoolValue).
|
|
2216
|
-
randomResult = randomResult === VOID ? this.
|
|
2217
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2218
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2219
|
-
isUsed = isUsed === VOID ? this.
|
|
2220
|
-
return $super === VOID ? this.
|
|
2215
|
+
protoOf(RandomPoolValue).o5r = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2216
|
+
randomResult = randomResult === VOID ? this.h5r_1 : randomResult;
|
|
2217
|
+
usedByGames = usedByGames === VOID ? this.i5r_1 : usedByGames;
|
|
2218
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.j5r_1 : reservedCardDecks;
|
|
2219
|
+
isUsed = isUsed === VOID ? this.k5r_1 : isUsed;
|
|
2220
|
+
return $super === VOID ? this.s5r(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.s5r.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2221
2221
|
};
|
|
2222
2222
|
protoOf(RandomPoolValue).toString = function () {
|
|
2223
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2223
|
+
return 'RandomPoolValue(randomResult=' + this.h5r_1.toString() + ', usedByGames=' + toString(this.i5r_1) + ', reservedCardDecks=' + this.j5r_1 + ', isUsed=' + this.k5r_1 + ')';
|
|
2224
2224
|
};
|
|
2225
2225
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2226
|
-
var result = this.
|
|
2227
|
-
result = imul(result, 31) + hashCode(this.
|
|
2228
|
-
result = imul(result, 31) + this.
|
|
2229
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2226
|
+
var result = this.h5r_1.hashCode();
|
|
2227
|
+
result = imul(result, 31) + hashCode(this.i5r_1) | 0;
|
|
2228
|
+
result = imul(result, 31) + this.j5r_1 | 0;
|
|
2229
|
+
result = imul(result, 31) + getBooleanHashCode(this.k5r_1) | 0;
|
|
2230
2230
|
return result;
|
|
2231
2231
|
};
|
|
2232
2232
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2235,28 +2235,28 @@
|
|
|
2235
2235
|
if (!(other instanceof RandomPoolValue))
|
|
2236
2236
|
return false;
|
|
2237
2237
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2238
|
-
if (!this.
|
|
2238
|
+
if (!this.h5r_1.equals(tmp0_other_with_cast.h5r_1))
|
|
2239
2239
|
return false;
|
|
2240
|
-
if (!equals(this.
|
|
2240
|
+
if (!equals(this.i5r_1, tmp0_other_with_cast.i5r_1))
|
|
2241
2241
|
return false;
|
|
2242
|
-
if (!(this.
|
|
2242
|
+
if (!(this.j5r_1 === tmp0_other_with_cast.j5r_1))
|
|
2243
2243
|
return false;
|
|
2244
|
-
if (!(this.
|
|
2244
|
+
if (!(this.k5r_1 === tmp0_other_with_cast.k5r_1))
|
|
2245
2245
|
return false;
|
|
2246
2246
|
return true;
|
|
2247
2247
|
};
|
|
2248
2248
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2249
|
-
this.
|
|
2250
|
-
this.
|
|
2251
|
-
this.
|
|
2252
|
-
this.
|
|
2253
|
-
this.
|
|
2254
|
-
this.
|
|
2255
|
-
this.
|
|
2249
|
+
this.b5s_1 = this$0;
|
|
2250
|
+
this.c5s_1 = $minRoundsCountInPool;
|
|
2251
|
+
this.d5s_1 = $userData;
|
|
2252
|
+
this.e5s_1 = $min;
|
|
2253
|
+
this.f5s_1 = $max;
|
|
2254
|
+
this.g5s_1 = $cardsCount;
|
|
2255
|
+
this.h5s_1 = $signed;
|
|
2256
2256
|
CoroutineImpl.call(this, resultContinuation);
|
|
2257
2257
|
}
|
|
2258
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2259
|
-
var tmp = this.
|
|
2258
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).j5s = function ($this$withTimeout, $completion) {
|
|
2259
|
+
var tmp = this.l1e($this$withTimeout, $completion);
|
|
2260
2260
|
tmp.g9_1 = Unit_instance;
|
|
2261
2261
|
tmp.h9_1 = null;
|
|
2262
2262
|
var tmp_0 = tmp.m9();
|
|
@@ -2265,7 +2265,7 @@
|
|
|
2265
2265
|
return tmp_0;
|
|
2266
2266
|
};
|
|
2267
2267
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).w9 = function (p1, $completion) {
|
|
2268
|
-
return this.
|
|
2268
|
+
return this.j5s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2269
2269
|
};
|
|
2270
2270
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).m9 = function () {
|
|
2271
2271
|
var suspendResult = this.g9_1;
|
|
@@ -2276,7 +2276,7 @@
|
|
|
2276
2276
|
case 0:
|
|
2277
2277
|
this.f9_1 = 2;
|
|
2278
2278
|
this.e9_1 = 1;
|
|
2279
|
-
suspendResult = getOrLoadGameCardDeckData(this.c5s_1, this.d5s_1, this.e5s_1, this.f5s_1, this.g5s_1, this.h5s_1, this
|
|
2279
|
+
suspendResult = getOrLoadGameCardDeckData(this.b5s_1, this.c5s_1, this.d5s_1, this.e5s_1, this.f5s_1, this.g5s_1, this.h5s_1, this);
|
|
2280
2280
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2281
2281
|
return suspendResult;
|
|
2282
2282
|
}
|
|
@@ -2299,15 +2299,15 @@
|
|
|
2299
2299
|
}
|
|
2300
2300
|
while (true);
|
|
2301
2301
|
};
|
|
2302
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2303
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.c5s_1, this.d5s_1, this.e5s_1, this.f5s_1, this.g5s_1, this.h5s_1,
|
|
2304
|
-
i.
|
|
2302
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).l1e = function ($this$withTimeout, completion) {
|
|
2303
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.b5s_1, this.c5s_1, this.d5s_1, this.e5s_1, this.f5s_1, this.g5s_1, this.h5s_1, completion);
|
|
2304
|
+
i.i5s_1 = $this$withTimeout;
|
|
2305
2305
|
return i;
|
|
2306
2306
|
};
|
|
2307
2307
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2308
2308
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2309
2309
|
var l = function ($this$withTimeout, $completion) {
|
|
2310
|
-
return i.
|
|
2310
|
+
return i.j5s($this$withTimeout, $completion);
|
|
2311
2311
|
};
|
|
2312
2312
|
l.$arity = 1;
|
|
2313
2313
|
return l;
|
|
@@ -2319,10 +2319,10 @@
|
|
|
2319
2319
|
return tmp.m9();
|
|
2320
2320
|
}
|
|
2321
2321
|
function requestNewCardDecks($this, min, max, cardsCount, signed, $completion) {
|
|
2322
|
-
return withContext($this.
|
|
2322
|
+
return withContext($this.d5t_1, RandomPoolProviderImpl$requestNewCardDecks$slambda_0($this, min, max, cardsCount, signed, null), $completion);
|
|
2323
2323
|
}
|
|
2324
2324
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2325
|
-
var existingCardDeck = $this.
|
|
2325
|
+
var existingCardDeck = $this.h5t_1.g2(userData.gameId);
|
|
2326
2326
|
var tmp;
|
|
2327
2327
|
if (!(existingCardDeck == null)) {
|
|
2328
2328
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2338,9 +2338,9 @@
|
|
|
2338
2338
|
return tmp.m9();
|
|
2339
2339
|
}
|
|
2340
2340
|
function Companion_9() {
|
|
2341
|
-
this.
|
|
2342
|
-
this.
|
|
2343
|
-
this.
|
|
2341
|
+
this.b5u_1 = 100;
|
|
2342
|
+
this.c5u_1 = 3;
|
|
2343
|
+
this.d5u_1 = 3000;
|
|
2344
2344
|
}
|
|
2345
2345
|
var Companion_instance_11;
|
|
2346
2346
|
function Companion_getInstance_12() {
|
|
@@ -2350,18 +2350,18 @@
|
|
|
2350
2350
|
return uuid4().toString();
|
|
2351
2351
|
}
|
|
2352
2352
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2353
|
-
this.
|
|
2354
|
-
this.
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2357
|
-
this.
|
|
2358
|
-
this.
|
|
2359
|
-
this.
|
|
2360
|
-
this.
|
|
2353
|
+
this.m5u_1 = this$0;
|
|
2354
|
+
this.n5u_1 = $timeoutMillis;
|
|
2355
|
+
this.o5u_1 = $minRoundsCountInPool;
|
|
2356
|
+
this.p5u_1 = $userData;
|
|
2357
|
+
this.q5u_1 = $min;
|
|
2358
|
+
this.r5u_1 = $max;
|
|
2359
|
+
this.s5u_1 = $cardsCount;
|
|
2360
|
+
this.t5u_1 = $signed;
|
|
2361
2361
|
CoroutineImpl.call(this, resultContinuation);
|
|
2362
2362
|
}
|
|
2363
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2364
|
-
var tmp = this.
|
|
2363
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).j5s = function ($this$withContext, $completion) {
|
|
2364
|
+
var tmp = this.l1e($this$withContext, $completion);
|
|
2365
2365
|
tmp.g9_1 = Unit_instance;
|
|
2366
2366
|
tmp.h9_1 = null;
|
|
2367
2367
|
var tmp_0 = tmp.m9();
|
|
@@ -2370,7 +2370,7 @@
|
|
|
2370
2370
|
return tmp_0;
|
|
2371
2371
|
};
|
|
2372
2372
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).w9 = function (p1, $completion) {
|
|
2373
|
-
return this.
|
|
2373
|
+
return this.j5s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2374
2374
|
};
|
|
2375
2375
|
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).m9 = function () {
|
|
2376
2376
|
var suspendResult = this.g9_1;
|
|
@@ -2381,34 +2381,34 @@
|
|
|
2381
2381
|
case 0:
|
|
2382
2382
|
this.f9_1 = 11;
|
|
2383
2383
|
var tmp_0 = this;
|
|
2384
|
-
tmp_0.
|
|
2384
|
+
tmp_0.v5u_1 = this.m5u_1.f5t_1;
|
|
2385
2385
|
var tmp_1 = this;
|
|
2386
|
-
tmp_1.
|
|
2386
|
+
tmp_1.w5u_1 = null;
|
|
2387
2387
|
this.e9_1 = 1;
|
|
2388
|
-
suspendResult = this.
|
|
2388
|
+
suspendResult = this.v5u_1.s1m(this.w5u_1, this);
|
|
2389
2389
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2390
2390
|
return suspendResult;
|
|
2391
2391
|
}
|
|
2392
2392
|
|
|
2393
2393
|
continue $sm;
|
|
2394
2394
|
case 1:
|
|
2395
|
-
this.
|
|
2395
|
+
this.x5u_1 = Unit_instance;
|
|
2396
2396
|
this.e9_1 = 2;
|
|
2397
2397
|
continue $sm;
|
|
2398
2398
|
case 2:
|
|
2399
2399
|
this.f9_1 = 10;
|
|
2400
|
-
this.
|
|
2400
|
+
this.y5u_1 = Unit_instance;
|
|
2401
2401
|
this.e9_1 = 3;
|
|
2402
2402
|
continue $sm;
|
|
2403
2403
|
case 3:
|
|
2404
|
-
this.
|
|
2405
|
-
if (!(this.
|
|
2406
|
-
this.
|
|
2407
|
-
if (this.
|
|
2408
|
-
this.
|
|
2404
|
+
this.z5u_1 = this.m5u_1.i5t_1;
|
|
2405
|
+
if (!(this.z5u_1 == null) && this.m5u_1.j5t_1 >= this.m5u_1.a5t_1.failedRequestAttempts) {
|
|
2406
|
+
this.a5v_1 = this.z5u_1.l5l(this.m5u_1.a5t_1.failedAttemptCooldown);
|
|
2407
|
+
if (this.a5v_1.p5l(System_instance.x55()) > 0) {
|
|
2408
|
+
this.b5v_1 = new RandomException(VOID, 'getCardDeck cooldown ends in ' + this.a5v_1.toString());
|
|
2409
2409
|
var tmp_2 = this;
|
|
2410
|
-
var exception = this.
|
|
2411
|
-
tmp_2.
|
|
2410
|
+
var exception = this.b5v_1;
|
|
2411
|
+
tmp_2.y5u_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2412
2412
|
this.e9_1 = 8;
|
|
2413
2413
|
continue $sm;
|
|
2414
2414
|
} else {
|
|
@@ -2426,14 +2426,14 @@
|
|
|
2426
2426
|
case 5:
|
|
2427
2427
|
this.f9_1 = 7;
|
|
2428
2428
|
this.e9_1 = 6;
|
|
2429
|
-
suspendResult = withTimeout(this.
|
|
2429
|
+
suspendResult = withTimeout(this.n5u_1, RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this.m5u_1, this.o5u_1, this.p5u_1, this.q5u_1, this.r5u_1, this.s5u_1, this.t5u_1, null), this);
|
|
2430
2430
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2431
2431
|
return suspendResult;
|
|
2432
2432
|
}
|
|
2433
2433
|
|
|
2434
2434
|
continue $sm;
|
|
2435
2435
|
case 6:
|
|
2436
|
-
this.
|
|
2436
|
+
this.y5u_1 = suspendResult;
|
|
2437
2437
|
this.e9_1 = 8;
|
|
2438
2438
|
continue $sm;
|
|
2439
2439
|
case 7:
|
|
@@ -2441,11 +2441,11 @@
|
|
|
2441
2441
|
var tmp_3 = this.h9_1;
|
|
2442
2442
|
if (tmp_3 instanceof Error) {
|
|
2443
2443
|
var error = this.h9_1;
|
|
2444
|
-
this.
|
|
2445
|
-
var _unary__edvuaz = this.
|
|
2446
|
-
this.
|
|
2444
|
+
this.m5u_1.i5t_1 = System_instance.x55();
|
|
2445
|
+
var _unary__edvuaz = this.m5u_1.j5t_1;
|
|
2446
|
+
this.m5u_1.j5t_1 = _unary__edvuaz + 1 | 0;
|
|
2447
2447
|
var tmp_4 = 'createNewShuffledCardDeck error message = ' + error.message + ', ';
|
|
2448
|
-
var value = this.
|
|
2448
|
+
var value = this.m5u_1.i5t_1;
|
|
2449
2449
|
var tmp$ret$2 = Unit_instance;
|
|
2450
2450
|
l$ret$3: do {
|
|
2451
2451
|
if (value == null) {
|
|
@@ -2457,10 +2457,10 @@
|
|
|
2457
2457
|
}
|
|
2458
2458
|
}
|
|
2459
2459
|
while (false);
|
|
2460
|
-
var exception_0 = new RandomException(VOID, tmp_4 + ('cooldown ends in ' + tmp$ret$2.
|
|
2461
|
-
this.
|
|
2460
|
+
var exception_0 = new RandomException(VOID, tmp_4 + ('cooldown ends in ' + tmp$ret$2.l5l(this.m5u_1.a5t_1.failedAttemptCooldown).toString()), error);
|
|
2461
|
+
this.m5u_1.c5t_1.w('RandomPoolProvider', VOID, exception_0);
|
|
2462
2462
|
var tmp_5 = this;
|
|
2463
|
-
tmp_5.
|
|
2463
|
+
tmp_5.y5u_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2464
2464
|
this.e9_1 = 8;
|
|
2465
2465
|
continue $sm;
|
|
2466
2466
|
} else {
|
|
@@ -2468,19 +2468,19 @@
|
|
|
2468
2468
|
}
|
|
2469
2469
|
|
|
2470
2470
|
case 8:
|
|
2471
|
-
this.
|
|
2471
|
+
this.x5u_1 = this.y5u_1;
|
|
2472
2472
|
this.f9_1 = 11;
|
|
2473
2473
|
this.e9_1 = 9;
|
|
2474
2474
|
continue $sm;
|
|
2475
2475
|
case 9:
|
|
2476
|
-
var tmp_6 = this.
|
|
2476
|
+
var tmp_6 = this.x5u_1;
|
|
2477
2477
|
this.f9_1 = 11;
|
|
2478
|
-
this.
|
|
2478
|
+
this.v5u_1.d1m(this.w5u_1);
|
|
2479
2479
|
return tmp_6;
|
|
2480
2480
|
case 10:
|
|
2481
2481
|
this.f9_1 = 11;
|
|
2482
2482
|
var t = this.h9_1;
|
|
2483
|
-
this.
|
|
2483
|
+
this.v5u_1.d1m(this.w5u_1);
|
|
2484
2484
|
throw t;
|
|
2485
2485
|
case 11:
|
|
2486
2486
|
throw this.h9_1;
|
|
@@ -2496,35 +2496,35 @@
|
|
|
2496
2496
|
}
|
|
2497
2497
|
while (true);
|
|
2498
2498
|
};
|
|
2499
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2500
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.n5u_1, this.o5u_1, this.p5u_1, this.q5u_1, this.r5u_1, this.s5u_1, this.t5u_1,
|
|
2501
|
-
i.
|
|
2499
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).l1e = function ($this$withContext, completion) {
|
|
2500
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.m5u_1, this.n5u_1, this.o5u_1, this.p5u_1, this.q5u_1, this.r5u_1, this.s5u_1, this.t5u_1, completion);
|
|
2501
|
+
i.u5u_1 = $this$withContext;
|
|
2502
2502
|
return i;
|
|
2503
2503
|
};
|
|
2504
2504
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2505
2505
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2506
2506
|
var l = function ($this$withContext, $completion) {
|
|
2507
|
-
return i.
|
|
2507
|
+
return i.j5s($this$withContext, $completion);
|
|
2508
2508
|
};
|
|
2509
2509
|
l.$arity = 1;
|
|
2510
2510
|
return l;
|
|
2511
2511
|
}
|
|
2512
2512
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2513
|
-
this.
|
|
2514
|
-
this.
|
|
2515
|
-
this.
|
|
2516
|
-
this.
|
|
2517
|
-
this.
|
|
2513
|
+
this.k5v_1 = this$0;
|
|
2514
|
+
this.l5v_1 = $min;
|
|
2515
|
+
this.m5v_1 = $max;
|
|
2516
|
+
this.n5v_1 = $cardsCount;
|
|
2517
|
+
this.o5v_1 = $signed;
|
|
2518
2518
|
CoroutineImpl.call(this, resultContinuation);
|
|
2519
2519
|
}
|
|
2520
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2521
|
-
var tmp = this.
|
|
2520
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).r5v = function ($this$withContext, $completion) {
|
|
2521
|
+
var tmp = this.l1e($this$withContext, $completion);
|
|
2522
2522
|
tmp.g9_1 = Unit_instance;
|
|
2523
2523
|
tmp.h9_1 = null;
|
|
2524
2524
|
return tmp.m9();
|
|
2525
2525
|
};
|
|
2526
2526
|
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).w9 = function (p1, $completion) {
|
|
2527
|
-
return this.
|
|
2527
|
+
return this.r5v((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2528
2528
|
};
|
|
2529
2529
|
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).m9 = function () {
|
|
2530
2530
|
var suspendResult = this.g9_1;
|
|
@@ -2534,9 +2534,9 @@
|
|
|
2534
2534
|
switch (tmp) {
|
|
2535
2535
|
case 0:
|
|
2536
2536
|
this.f9_1 = 2;
|
|
2537
|
-
this.
|
|
2537
|
+
this.q5v_1 = System_instance.x55();
|
|
2538
2538
|
this.e9_1 = 1;
|
|
2539
|
-
suspendResult = this.
|
|
2539
|
+
suspendResult = this.k5v_1.b5t_1.l5p(this.l5v_1, this.m5v_1, this.k5v_1.a5t_1.poolSize, this.n5v_1, new CardDecksRequestUserData(this.k5v_1.e5t_1(), this.k5v_1.a5t_1.poolSize), this.o5v_1, this);
|
|
2540
2540
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2541
2541
|
return suspendResult;
|
|
2542
2542
|
}
|
|
@@ -2544,12 +2544,12 @@
|
|
|
2544
2544
|
continue $sm;
|
|
2545
2545
|
case 1:
|
|
2546
2546
|
var result = suspendResult;
|
|
2547
|
-
var requestEndTime = System_instance.
|
|
2548
|
-
var requestDuration = requestEndTime.
|
|
2547
|
+
var requestEndTime = System_instance.x55();
|
|
2548
|
+
var requestDuration = requestEndTime.o5l(this.q5v_1);
|
|
2549
2549
|
Companion_getInstance_0();
|
|
2550
|
-
var this_0 = this.
|
|
2550
|
+
var this_0 = this.k5v_1.a5t_1.requestDurationWarn;
|
|
2551
2551
|
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration_0(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2552
|
-
this.
|
|
2552
|
+
this.k5v_1.c5t_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ') + ('expected = ' + this.k5v_1.a5t_1.requestDurationWarn));
|
|
2553
2553
|
}
|
|
2554
2554
|
|
|
2555
2555
|
var newCardDecksValue = new RandomPoolValue(result);
|
|
@@ -2568,28 +2568,28 @@
|
|
|
2568
2568
|
}
|
|
2569
2569
|
while (true);
|
|
2570
2570
|
};
|
|
2571
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2572
|
-
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.l5v_1, this.m5v_1, this.n5v_1, this.o5v_1,
|
|
2573
|
-
i.
|
|
2571
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).l1e = function ($this$withContext, completion) {
|
|
2572
|
+
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.k5v_1, this.l5v_1, this.m5v_1, this.n5v_1, this.o5v_1, completion);
|
|
2573
|
+
i.p5v_1 = $this$withContext;
|
|
2574
2574
|
return i;
|
|
2575
2575
|
};
|
|
2576
2576
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2577
2577
|
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2578
2578
|
var l = function ($this$withContext, $completion) {
|
|
2579
|
-
return i.
|
|
2579
|
+
return i.r5v($this$withContext, $completion);
|
|
2580
2580
|
};
|
|
2581
2581
|
l.$arity = 1;
|
|
2582
2582
|
return l;
|
|
2583
2583
|
}
|
|
2584
2584
|
function $getOrLoadGameCardDeckDataCOROUTINE$3(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, resultContinuation) {
|
|
2585
2585
|
CoroutineImpl.call(this, resultContinuation);
|
|
2586
|
-
this.
|
|
2587
|
-
this.
|
|
2588
|
-
this.
|
|
2589
|
-
this.
|
|
2590
|
-
this.
|
|
2591
|
-
this.
|
|
2592
|
-
this.
|
|
2586
|
+
this.s5s_1 = _this__u8e3s4;
|
|
2587
|
+
this.t5s_1 = minRoundsCountInPool;
|
|
2588
|
+
this.u5s_1 = userData;
|
|
2589
|
+
this.v5s_1 = min;
|
|
2590
|
+
this.w5s_1 = max;
|
|
2591
|
+
this.x5s_1 = cardsCount;
|
|
2592
|
+
this.y5s_1 = signed;
|
|
2593
2593
|
}
|
|
2594
2594
|
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).m9 = function () {
|
|
2595
2595
|
var suspendResult = this.g9_1;
|
|
@@ -2599,9 +2599,9 @@
|
|
|
2599
2599
|
switch (tmp) {
|
|
2600
2600
|
case 0:
|
|
2601
2601
|
this.f9_1 = 2;
|
|
2602
|
-
this.
|
|
2602
|
+
this.z5s_1 = this.u5s_1.gameId;
|
|
2603
2603
|
this.e9_1 = 1;
|
|
2604
|
-
suspendResult = getPreparedRandomPoolValueOrRequest(this.
|
|
2604
|
+
suspendResult = getPreparedRandomPoolValueOrRequest(this.s5s_1, this.z5s_1, this.v5s_1, this.w5s_1, this.t5s_1, this.x5s_1, this.y5s_1, this);
|
|
2605
2605
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2606
2606
|
return suspendResult;
|
|
2607
2607
|
}
|
|
@@ -2609,15 +2609,15 @@
|
|
|
2609
2609
|
continue $sm;
|
|
2610
2610
|
case 1:
|
|
2611
2611
|
var randomPoolValue = suspendResult;
|
|
2612
|
-
var this_0 = this.
|
|
2613
|
-
var key = randomPoolValue.
|
|
2612
|
+
var this_0 = this.s5s_1.g5t_1;
|
|
2613
|
+
var key = randomPoolValue.h5r_1.s5m_1;
|
|
2614
2614
|
this_0.j2(key, randomPoolValue);
|
|
2615
|
-
var cardDeckData = randomPoolValue.
|
|
2616
|
-
var tmp21_poolId = randomPoolValue.
|
|
2617
|
-
var tmp22_signature = randomPoolValue.
|
|
2618
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2619
|
-
var this_1 = this.
|
|
2620
|
-
var key_0 = this.
|
|
2615
|
+
var cardDeckData = randomPoolValue.r5r(this.u5s_1.gameId);
|
|
2616
|
+
var tmp21_poolId = randomPoolValue.h5r_1.s5m_1;
|
|
2617
|
+
var tmp22_signature = randomPoolValue.h5r_1.t5m_1;
|
|
2618
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.s5s_1, tmp21_poolId, tmp22_signature, cardDeckData, this.u5s_1);
|
|
2619
|
+
var this_1 = this.s5s_1.h5t_1;
|
|
2620
|
+
var key_0 = this.u5s_1.gameId;
|
|
2621
2621
|
this_1.j2(key_0, cardDecksRecord);
|
|
2622
2622
|
return cardDeckData;
|
|
2623
2623
|
case 2:
|
|
@@ -2636,13 +2636,13 @@
|
|
|
2636
2636
|
};
|
|
2637
2637
|
function $getPreparedRandomPoolValueOrRequestCOROUTINE$4(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, resultContinuation) {
|
|
2638
2638
|
CoroutineImpl.call(this, resultContinuation);
|
|
2639
|
-
this.
|
|
2640
|
-
this.
|
|
2641
|
-
this.
|
|
2642
|
-
this.
|
|
2643
|
-
this.
|
|
2644
|
-
this.
|
|
2645
|
-
this.
|
|
2639
|
+
this.s5t_1 = _this__u8e3s4;
|
|
2640
|
+
this.t5t_1 = gameId;
|
|
2641
|
+
this.u5t_1 = min;
|
|
2642
|
+
this.v5t_1 = max;
|
|
2643
|
+
this.w5t_1 = minRoundsCount;
|
|
2644
|
+
this.x5t_1 = cardsCount;
|
|
2645
|
+
this.y5t_1 = signed;
|
|
2646
2646
|
}
|
|
2647
2647
|
protoOf($getPreparedRandomPoolValueOrRequestCOROUTINE$4).m9 = function () {
|
|
2648
2648
|
var suspendResult = this.g9_1;
|
|
@@ -2653,41 +2653,41 @@
|
|
|
2653
2653
|
case 0:
|
|
2654
2654
|
this.f9_1 = 2;
|
|
2655
2655
|
var tmp_0 = this;
|
|
2656
|
-
var this_0 = this.
|
|
2656
|
+
var this_0 = this.s5t_1.g5t_1;
|
|
2657
2657
|
var destination = LinkedHashMap_init_$Create$();
|
|
2658
2658
|
var tmp0_iterator = this_0.s().j();
|
|
2659
2659
|
while (tmp0_iterator.k()) {
|
|
2660
2660
|
var element = tmp0_iterator.l();
|
|
2661
|
-
var this_1 = element.u().
|
|
2662
|
-
var key = this.
|
|
2661
|
+
var this_1 = element.u().i5r_1;
|
|
2662
|
+
var key = this.t5t_1;
|
|
2663
2663
|
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).e2(key)) {
|
|
2664
2664
|
destination.j2(element.t(), element.u());
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
2667
|
|
|
2668
|
-
tmp_0.
|
|
2669
|
-
if (!(this.
|
|
2670
|
-
return this.
|
|
2668
|
+
tmp_0.z5t_1 = firstOrNull(destination.s());
|
|
2669
|
+
if (!(this.z5t_1 == null)) {
|
|
2670
|
+
return this.z5t_1.u().p5r(this.t5t_1);
|
|
2671
2671
|
}
|
|
2672
2672
|
|
|
2673
2673
|
var tmp_1 = this;
|
|
2674
|
-
var this_2 = this.
|
|
2674
|
+
var this_2 = this.s5t_1.g5t_1;
|
|
2675
2675
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2676
2676
|
var tmp0_iterator_0 = this_2.s().j();
|
|
2677
2677
|
while (tmp0_iterator_0.k()) {
|
|
2678
2678
|
var element_0 = tmp0_iterator_0.l();
|
|
2679
|
-
if (element_0.u().
|
|
2679
|
+
if (element_0.u().m5r(this.w5t_1)) {
|
|
2680
2680
|
destination_0.j2(element_0.t(), element_0.u());
|
|
2681
2681
|
}
|
|
2682
2682
|
}
|
|
2683
2683
|
|
|
2684
|
-
tmp_1.
|
|
2685
|
-
if (!(this.
|
|
2686
|
-
return this.
|
|
2684
|
+
tmp_1.a5u_1 = firstOrNull(destination_0.s());
|
|
2685
|
+
if (!(this.a5u_1 == null)) {
|
|
2686
|
+
return this.a5u_1.u().n5r(this.t5t_1, this.w5t_1, this.s5t_1.a5t_1.thresholdForUsedPool);
|
|
2687
2687
|
}
|
|
2688
2688
|
|
|
2689
2689
|
this.e9_1 = 1;
|
|
2690
|
-
suspendResult = requestNewCardDecks(this.
|
|
2690
|
+
suspendResult = requestNewCardDecks(this.s5t_1, this.u5t_1, this.v5t_1, this.x5t_1, this.y5t_1, this);
|
|
2691
2691
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2692
2692
|
return suspendResult;
|
|
2693
2693
|
}
|
|
@@ -2695,7 +2695,7 @@
|
|
|
2695
2695
|
continue $sm;
|
|
2696
2696
|
case 1:
|
|
2697
2697
|
var cardDecks = suspendResult;
|
|
2698
|
-
return cardDecks.
|
|
2698
|
+
return cardDecks.q5r(this.t5t_1, this.w5t_1);
|
|
2699
2699
|
case 2:
|
|
2700
2700
|
throw this.h9_1;
|
|
2701
2701
|
}
|
|
@@ -2711,7 +2711,7 @@
|
|
|
2711
2711
|
while (true);
|
|
2712
2712
|
};
|
|
2713
2713
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2714
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2714
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().l10_1 : dispatcher;
|
|
2715
2715
|
var tmp;
|
|
2716
2716
|
if (idsProvider === VOID) {
|
|
2717
2717
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2719,86 +2719,86 @@
|
|
|
2719
2719
|
tmp = idsProvider;
|
|
2720
2720
|
}
|
|
2721
2721
|
idsProvider = tmp;
|
|
2722
|
-
this.
|
|
2723
|
-
this.
|
|
2724
|
-
this.
|
|
2725
|
-
this.
|
|
2726
|
-
this.
|
|
2727
|
-
this.
|
|
2722
|
+
this.a5t_1 = params;
|
|
2723
|
+
this.b5t_1 = randomOrgApiService;
|
|
2724
|
+
this.c5t_1 = logger;
|
|
2725
|
+
this.d5t_1 = dispatcher;
|
|
2726
|
+
this.e5t_1 = idsProvider;
|
|
2727
|
+
this.f5t_1 = Mutex();
|
|
2728
2728
|
var tmp_0 = this;
|
|
2729
2729
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2730
|
-
tmp_0.
|
|
2730
|
+
tmp_0.g5t_1 = LinkedHashMap_init_$Create$();
|
|
2731
2731
|
var tmp_1 = this;
|
|
2732
2732
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2733
|
-
tmp_1.
|
|
2734
|
-
this.
|
|
2735
|
-
this.
|
|
2733
|
+
tmp_1.h5t_1 = LinkedHashMap_init_$Create$();
|
|
2734
|
+
this.i5t_1 = null;
|
|
2735
|
+
this.j5t_1 = 0;
|
|
2736
2736
|
}
|
|
2737
|
-
protoOf(RandomPoolProviderImpl).
|
|
2738
|
-
var tmp = withContext(this.
|
|
2737
|
+
protoOf(RandomPoolProviderImpl).e5r = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) {
|
|
2738
|
+
var tmp = withContext(this.d5t_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, timeoutMillis, minRoundsCountInPool, userData, min, max, cardsCount, signed, null), $completion);
|
|
2739
2739
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2740
2740
|
return tmp;
|
|
2741
2741
|
return tmp;
|
|
2742
2742
|
};
|
|
2743
|
-
protoOf(RandomPoolProviderImpl).
|
|
2744
|
-
return this.
|
|
2743
|
+
protoOf(RandomPoolProviderImpl).s5v = function (gameId) {
|
|
2744
|
+
return this.h5t_1.g2(gameId);
|
|
2745
2745
|
};
|
|
2746
2746
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2747
|
-
return this.
|
|
2747
|
+
return this.s5v(gameId);
|
|
2748
2748
|
};
|
|
2749
|
-
protoOf(RandomPoolProviderImpl).
|
|
2750
|
-
return this.
|
|
2749
|
+
protoOf(RandomPoolProviderImpl).t5v = function (id) {
|
|
2750
|
+
return this.g5t_1.g2(id);
|
|
2751
2751
|
};
|
|
2752
2752
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2753
|
-
return this.
|
|
2753
|
+
return this.t5v(id);
|
|
2754
2754
|
};
|
|
2755
|
-
protoOf(RandomPoolProviderImpl).
|
|
2756
|
-
return this.
|
|
2755
|
+
protoOf(RandomPoolProviderImpl).u5v = function () {
|
|
2756
|
+
return this.g5t_1.m();
|
|
2757
2757
|
};
|
|
2758
2758
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2759
|
-
return this.
|
|
2759
|
+
return this.u5v();
|
|
2760
2760
|
};
|
|
2761
|
-
protoOf(RandomPoolProviderImpl).
|
|
2762
|
-
var gameCardDecksRecord = this.
|
|
2761
|
+
protoOf(RandomPoolProviderImpl).g5r = function (gameId) {
|
|
2762
|
+
var gameCardDecksRecord = this.h5t_1.g2(gameId);
|
|
2763
2763
|
if (!(gameCardDecksRecord == null)) {
|
|
2764
|
-
var randomPoolValue = this.
|
|
2764
|
+
var randomPoolValue = this.g5t_1.g2(gameCardDecksRecord.poolId);
|
|
2765
2765
|
if (!(randomPoolValue == null)) {
|
|
2766
2766
|
// Inline function 'kotlin.apply' call
|
|
2767
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2767
|
+
var this_0 = toMutableMap(randomPoolValue.i5r_1);
|
|
2768
2768
|
// Inline function 'kotlin.contracts.contract' call
|
|
2769
2769
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolProviderImpl.setGameFinished.<anonymous>' call
|
|
2770
2770
|
this_0.k2(gameId);
|
|
2771
|
-
var newPoolValue = randomPoolValue.
|
|
2772
|
-
if (newPoolValue.
|
|
2773
|
-
this.
|
|
2771
|
+
var newPoolValue = randomPoolValue.o5r(VOID, toMap(this_0));
|
|
2772
|
+
if (newPoolValue.i5r_1.p()) {
|
|
2773
|
+
this.g5t_1.k2(gameCardDecksRecord.poolId);
|
|
2774
2774
|
} else {
|
|
2775
2775
|
// Inline function 'kotlin.collections.set' call
|
|
2776
|
-
var this_1 = this.
|
|
2776
|
+
var this_1 = this.g5t_1;
|
|
2777
2777
|
var key = gameCardDecksRecord.poolId;
|
|
2778
2778
|
this_1.j2(key, newPoolValue);
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
2781
2781
|
}
|
|
2782
|
-
this.
|
|
2782
|
+
this.h5t_1.k2(gameId);
|
|
2783
2783
|
};
|
|
2784
2784
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2785
2785
|
return function ($this$defaultRequest) {
|
|
2786
2786
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2787
|
-
$this$defaultRequest.
|
|
2787
|
+
$this$defaultRequest.w34($url);
|
|
2788
2788
|
return Unit_instance;
|
|
2789
2789
|
};
|
|
2790
2790
|
}
|
|
2791
2791
|
function ApiCommonConfigs$setupLogging$1$1($externalLogger) {
|
|
2792
|
-
this.
|
|
2792
|
+
this.v5v_1 = $externalLogger;
|
|
2793
2793
|
}
|
|
2794
|
-
protoOf(ApiCommonConfigs$setupLogging$1$1).
|
|
2795
|
-
this.
|
|
2794
|
+
protoOf(ApiCommonConfigs$setupLogging$1$1).g3v = function (message) {
|
|
2795
|
+
this.v5v_1(message);
|
|
2796
2796
|
};
|
|
2797
2797
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2798
2798
|
return function ($this$install) {
|
|
2799
|
-
$this$install.
|
|
2800
|
-
$this$install.
|
|
2801
|
-
$this$install.
|
|
2799
|
+
$this$install.w3w(get_DEFAULT(Companion_instance_0));
|
|
2800
|
+
$this$install.v3w_1 = $config.y5v_1;
|
|
2801
|
+
$this$install.w3w(new ApiCommonConfigs$setupLogging$1$1($externalLogger));
|
|
2802
2802
|
return Unit_instance;
|
|
2803
2803
|
};
|
|
2804
2804
|
}
|
|
@@ -2810,32 +2810,32 @@
|
|
|
2810
2810
|
}
|
|
2811
2811
|
function ApiCommonConfigs() {
|
|
2812
2812
|
}
|
|
2813
|
-
protoOf(ApiCommonConfigs).
|
|
2814
|
-
_this__u8e3s4.
|
|
2815
|
-
this.
|
|
2816
|
-
this.
|
|
2817
|
-
this.
|
|
2813
|
+
protoOf(ApiCommonConfigs).a5w = function (_this__u8e3s4, config, externalLogger) {
|
|
2814
|
+
_this__u8e3s4.i2w_1 = true;
|
|
2815
|
+
this.b5w(_this__u8e3s4, config.w5v_1);
|
|
2816
|
+
this.c5w(_this__u8e3s4, config.z5v_1);
|
|
2817
|
+
this.d5w(_this__u8e3s4, config, externalLogger);
|
|
2818
2818
|
};
|
|
2819
|
-
protoOf(ApiCommonConfigs).
|
|
2819
|
+
protoOf(ApiCommonConfigs).b5w = function (_this__u8e3s4, url) {
|
|
2820
2820
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2821
2821
|
};
|
|
2822
|
-
protoOf(ApiCommonConfigs).
|
|
2822
|
+
protoOf(ApiCommonConfigs).d5w = function (_this__u8e3s4, config, externalLogger) {
|
|
2823
2823
|
var tmp = Companion_getInstance_1();
|
|
2824
|
-
_this__u8e3s4.
|
|
2824
|
+
_this__u8e3s4.d2x(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2825
2825
|
};
|
|
2826
|
-
protoOf(ApiCommonConfigs).
|
|
2826
|
+
protoOf(ApiCommonConfigs).c5w = function (_this__u8e3s4, json) {
|
|
2827
2827
|
var tmp = Plugin_getInstance();
|
|
2828
|
-
_this__u8e3s4.
|
|
2828
|
+
_this__u8e3s4.d2x(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2829
2829
|
};
|
|
2830
2830
|
var ApiCommonConfigs_instance;
|
|
2831
2831
|
function ApiCommonConfigs_getInstance() {
|
|
2832
2832
|
return ApiCommonConfigs_instance;
|
|
2833
2833
|
}
|
|
2834
2834
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2835
|
-
$this$Json.o4v_1 = true;
|
|
2836
2835
|
$this$Json.n4v_1 = true;
|
|
2837
2836
|
$this$Json.m4v_1 = true;
|
|
2838
|
-
$this$Json.l4v_1 =
|
|
2837
|
+
$this$Json.l4v_1 = true;
|
|
2838
|
+
$this$Json.k4v_1 = false;
|
|
2839
2839
|
return Unit_instance;
|
|
2840
2840
|
}
|
|
2841
2841
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2848,19 +2848,19 @@
|
|
|
2848
2848
|
tmp = json;
|
|
2849
2849
|
}
|
|
2850
2850
|
json = tmp;
|
|
2851
|
-
this.
|
|
2852
|
-
this.
|
|
2853
|
-
this.
|
|
2854
|
-
this.
|
|
2851
|
+
this.w5v_1 = baseUrl;
|
|
2852
|
+
this.x5v_1 = timeoutMillis;
|
|
2853
|
+
this.y5v_1 = loggingLevel;
|
|
2854
|
+
this.z5v_1 = json;
|
|
2855
2855
|
}
|
|
2856
2856
|
protoOf(HttpParams).toString = function () {
|
|
2857
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2857
|
+
return 'HttpParams(baseUrl=' + this.w5v_1 + ', timeoutMillis=' + this.x5v_1.toString() + ', loggingLevel=' + this.y5v_1.toString() + ', json=' + toString(this.z5v_1) + ')';
|
|
2858
2858
|
};
|
|
2859
2859
|
protoOf(HttpParams).hashCode = function () {
|
|
2860
|
-
var result = getStringHashCode(this.
|
|
2860
|
+
var result = getStringHashCode(this.w5v_1);
|
|
2861
|
+
result = imul(result, 31) + this.x5v_1.hashCode() | 0;
|
|
2861
2862
|
result = imul(result, 31) + this.y5v_1.hashCode() | 0;
|
|
2862
|
-
result = imul(result, 31) + this.z5v_1
|
|
2863
|
-
result = imul(result, 31) + hashCode(this.a5w_1) | 0;
|
|
2863
|
+
result = imul(result, 31) + hashCode(this.z5v_1) | 0;
|
|
2864
2864
|
return result;
|
|
2865
2865
|
};
|
|
2866
2866
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2869,13 +2869,13 @@
|
|
|
2869
2869
|
if (!(other instanceof HttpParams))
|
|
2870
2870
|
return false;
|
|
2871
2871
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2872
|
-
if (!(this.
|
|
2872
|
+
if (!(this.w5v_1 === tmp0_other_with_cast.w5v_1))
|
|
2873
2873
|
return false;
|
|
2874
|
-
if (!this.
|
|
2874
|
+
if (!this.x5v_1.equals(tmp0_other_with_cast.x5v_1))
|
|
2875
2875
|
return false;
|
|
2876
|
-
if (!this.
|
|
2876
|
+
if (!this.y5v_1.equals(tmp0_other_with_cast.y5v_1))
|
|
2877
2877
|
return false;
|
|
2878
|
-
if (!equals(this.
|
|
2878
|
+
if (!equals(this.z5v_1, tmp0_other_with_cast.z5v_1))
|
|
2879
2879
|
return false;
|
|
2880
2880
|
return true;
|
|
2881
2881
|
};
|
|
@@ -2899,12 +2899,12 @@
|
|
|
2899
2899
|
}
|
|
2900
2900
|
function nextBytesCopyTo($this, bytes) {
|
|
2901
2901
|
try {
|
|
2902
|
-
$this.
|
|
2902
|
+
$this.f5w_1.e5m(bytes);
|
|
2903
2903
|
} catch ($p) {
|
|
2904
2904
|
if ($p instanceof SecRandomCopyException) {
|
|
2905
2905
|
var error = $p;
|
|
2906
|
-
$this.
|
|
2907
|
-
$this.
|
|
2906
|
+
$this.e5w_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2907
|
+
$this.g5w_1.sg(bytes);
|
|
2908
2908
|
return Unit_instance;
|
|
2909
2909
|
} else {
|
|
2910
2910
|
throw $p;
|
|
@@ -2930,9 +2930,9 @@
|
|
|
2930
2930
|
}
|
|
2931
2931
|
function SecureRandom_0(logger) {
|
|
2932
2932
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2933
|
-
this.
|
|
2934
|
-
this.
|
|
2935
|
-
this.
|
|
2933
|
+
this.e5w_1 = logger;
|
|
2934
|
+
this.f5w_1 = new SecureRandom();
|
|
2935
|
+
this.g5w_1 = Default_getInstance();
|
|
2936
2936
|
}
|
|
2937
2937
|
protoOf(SecureRandom_0).pg = function (from, until) {
|
|
2938
2938
|
checkRangeBounds(this, from, until);
|
|
@@ -2965,22 +2965,22 @@
|
|
|
2965
2965
|
}
|
|
2966
2966
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
2967
2967
|
return function ($this$install) {
|
|
2968
|
-
$this$install.
|
|
2969
|
-
$this$install.
|
|
2968
|
+
$this$install.u3g($config.x5v_1);
|
|
2969
|
+
$this$install.s3g($config.x5v_1);
|
|
2970
2970
|
return Unit_instance;
|
|
2971
2971
|
};
|
|
2972
2972
|
}
|
|
2973
2973
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
2974
2974
|
return function ($this$HttpClient) {
|
|
2975
2975
|
var tmp = Plugin_getInstance_0();
|
|
2976
|
-
$this$HttpClient.
|
|
2977
|
-
ApiCommonConfigs_instance.
|
|
2976
|
+
$this$HttpClient.d2x(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
2977
|
+
ApiCommonConfigs_instance.a5w($this$HttpClient, $config, $externalLogger);
|
|
2978
2978
|
return Unit_instance;
|
|
2979
2979
|
};
|
|
2980
2980
|
}
|
|
2981
2981
|
function HttpFactory() {
|
|
2982
2982
|
}
|
|
2983
|
-
protoOf(HttpFactory).
|
|
2983
|
+
protoOf(HttpFactory).i5w = function (config, externalLogger) {
|
|
2984
2984
|
var tmp = Js_instance;
|
|
2985
2985
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
2986
2986
|
};
|
|
@@ -2989,14 +2989,14 @@
|
|
|
2989
2989
|
return HttpFactory_instance;
|
|
2990
2990
|
}
|
|
2991
2991
|
//region block: post-declaration
|
|
2992
|
-
protoOf($serializer).
|
|
2993
|
-
protoOf($serializer_0).
|
|
2994
|
-
protoOf($serializer_2).
|
|
2995
|
-
protoOf($serializer_3).
|
|
2996
|
-
protoOf($serializer_5).
|
|
2997
|
-
protoOf($serializer_6).
|
|
2998
|
-
protoOf(RandomPoolProviderImpl).
|
|
2999
|
-
protoOf(SecureRandom_0).
|
|
2992
|
+
protoOf($serializer).l4g = typeParametersSerializers;
|
|
2993
|
+
protoOf($serializer_0).l4g = typeParametersSerializers;
|
|
2994
|
+
protoOf($serializer_2).l4g = typeParametersSerializers;
|
|
2995
|
+
protoOf($serializer_3).l4g = typeParametersSerializers;
|
|
2996
|
+
protoOf($serializer_5).l4g = typeParametersSerializers;
|
|
2997
|
+
protoOf($serializer_6).l4g = typeParametersSerializers;
|
|
2998
|
+
protoOf(RandomPoolProviderImpl).f5r = getCardDeck$default;
|
|
2999
|
+
protoOf(SecureRandom_0).h5w = shuffle;
|
|
3000
3000
|
//endregion
|
|
3001
3001
|
//region block: init
|
|
3002
3002
|
Companion_instance_1 = new Companion();
|