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