client_plugin_logic_deb 1.8.225 → 1.8.243
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 +82 -82
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +735 -730
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1556 -1521
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-client_plugin.d.ts +59 -22
- package/Logic_Debertz-client_plugin.js +4714 -4696
- package/Logic_Debertz-client_plugin.js.map +1 -1
- package/Logic_Debertz-core.js +2117 -2097
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +18045 -17296
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.js +11311 -11053
- package/Logic_Debertz-game_client.js.map +1 -1
- package/Logic_Debertz-game_server.js +1574 -1124
- package/Logic_Debertz-game_server.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2360 -2623
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3158 -3164
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +976 -575
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2026 -2047
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1556 -1556
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +219 -219
- package/ktor-ktor-client-core.js +2533 -2533
- package/ktor-ktor-client-logging.js +553 -553
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +747 -747
- package/ktor-ktor-io.js +1650 -1650
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +273 -273
- package/ktor-ktor-serialization.js +131 -131
- package/ktor-ktor-utils.js +727 -727
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +60 -60
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +273 -273
- package/raspberry-cardgame-lib-logger.js +102 -102
- package/raspberry-cardgame-lib-random.js +1001 -1006
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +20 -20
- package/uuid.js +32 -32
|
@@ -53,49 +53,49 @@
|
|
|
53
53
|
//region block: imports
|
|
54
54
|
var imul = Math.imul;
|
|
55
55
|
var clz32 = Math.clz32;
|
|
56
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
57
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
58
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
56
|
+
var protoOf = kotlin_kotlin.$_$.uc;
|
|
57
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.ub;
|
|
58
|
+
var RuntimeException = kotlin_kotlin.$_$.rg;
|
|
59
59
|
var VOID = kotlin_kotlin.$_$.f;
|
|
60
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
61
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
62
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
63
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
64
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
65
|
-
var toString = kotlin_kotlin.$_$.
|
|
66
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
67
|
-
var equals = kotlin_kotlin.$_$.
|
|
68
|
-
var listOf = kotlin_kotlin.$_$.
|
|
69
|
-
var plus = kotlin_kotlin.$_$.
|
|
70
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
71
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
72
|
-
var toLong = kotlin_kotlin.$_$.
|
|
60
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.i2;
|
|
61
|
+
var captureStack = kotlin_kotlin.$_$.db;
|
|
62
|
+
var initMetadataForClass = kotlin_kotlin.$_$.tb;
|
|
63
|
+
var getStringHashCode = kotlin_kotlin.$_$.rb;
|
|
64
|
+
var THROW_CCE = kotlin_kotlin.$_$.sg;
|
|
65
|
+
var toString = kotlin_kotlin.$_$.yc;
|
|
66
|
+
var hashCode = kotlin_kotlin.$_$.sb;
|
|
67
|
+
var equals = kotlin_kotlin.$_$.lb;
|
|
68
|
+
var listOf = kotlin_kotlin.$_$.p8;
|
|
69
|
+
var plus = kotlin_kotlin.$_$.a9;
|
|
70
|
+
var emptyList = kotlin_kotlin.$_$.n7;
|
|
71
|
+
var defineProp = kotlin_kotlin.$_$.kb;
|
|
72
|
+
var toLong = kotlin_kotlin.$_$.wc;
|
|
73
73
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.c2;
|
|
74
74
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
|
|
75
75
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.u;
|
|
76
76
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y;
|
|
77
77
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
78
78
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.y1;
|
|
79
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
79
|
+
var initMetadataForObject = kotlin_kotlin.$_$.yb;
|
|
80
80
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.h2;
|
|
81
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
82
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
83
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
81
|
+
var Unit_instance = kotlin_kotlin.$_$.p5;
|
|
82
|
+
var objectCreate = kotlin_kotlin.$_$.tc;
|
|
83
|
+
var toString_0 = kotlin_kotlin.$_$.wh;
|
|
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;
|
|
87
87
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.o;
|
|
88
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
89
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
90
|
-
var getValue = kotlin_kotlin.$_$.
|
|
88
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.ob;
|
|
89
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.wb;
|
|
90
|
+
var getValue = kotlin_kotlin.$_$.a8;
|
|
91
91
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
92
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
92
|
+
var CoroutineImpl = kotlin_kotlin.$_$.va;
|
|
93
93
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
94
94
|
var url = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
95
95
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
96
96
|
var JsType_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
97
97
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
98
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
98
|
+
var arrayOf = kotlin_kotlin.$_$.gh;
|
|
99
99
|
var createKType = kotlin_kotlin.$_$.b;
|
|
100
100
|
var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
|
|
101
101
|
var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
@@ -103,40 +103,39 @@
|
|
|
103
103
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
104
104
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
|
|
105
105
|
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
106
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
106
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ga;
|
|
107
107
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
108
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
109
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
110
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
111
|
-
var Companion_getInstance_0 = kotlin_kotlin.$_$.
|
|
112
|
-
var Long = kotlin_kotlin.$_$.
|
|
108
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.vb;
|
|
109
|
+
var KtMap = kotlin_kotlin.$_$.a6;
|
|
110
|
+
var isInterface = kotlin_kotlin.$_$.hc;
|
|
111
|
+
var Companion_getInstance_0 = kotlin_kotlin.$_$.g5;
|
|
112
|
+
var Long = kotlin_kotlin.$_$.mg;
|
|
113
113
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
114
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
115
|
-
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.
|
|
116
|
-
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.
|
|
117
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
118
|
-
var toMutableMap = kotlin_kotlin.$_$.
|
|
119
|
-
var toMap = kotlin_kotlin.$_$.
|
|
120
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
121
|
-
var to = kotlin_kotlin.$_$.
|
|
122
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
123
|
-
var Result = kotlin_kotlin.$_$.
|
|
114
|
+
var toDuration = kotlin_kotlin.$_$.yf;
|
|
115
|
+
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.v2;
|
|
116
|
+
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.o2;
|
|
117
|
+
var emptyMap = kotlin_kotlin.$_$.o7;
|
|
118
|
+
var toMutableMap = kotlin_kotlin.$_$.x9;
|
|
119
|
+
var toMap = kotlin_kotlin.$_$.u9;
|
|
120
|
+
var get_lastIndex = kotlin_kotlin.$_$.i8;
|
|
121
|
+
var to = kotlin_kotlin.$_$.xh;
|
|
122
|
+
var mapOf = kotlin_kotlin.$_$.s8;
|
|
123
|
+
var Result = kotlin_kotlin.$_$.qg;
|
|
124
124
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o1;
|
|
125
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
126
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
127
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
125
|
+
var Companion_instance = kotlin_kotlin.$_$.k5;
|
|
126
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.f3;
|
|
127
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.xb;
|
|
128
128
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
129
129
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
130
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
130
|
+
var createFailure = kotlin_kotlin.$_$.ih;
|
|
131
131
|
var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a;
|
|
132
132
|
var withTimeout = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
133
|
-
var toDuration_0 = kotlin_kotlin.$_$.
|
|
134
|
-
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.
|
|
133
|
+
var toDuration_0 = kotlin_kotlin.$_$.zf;
|
|
134
|
+
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.n2;
|
|
135
135
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
136
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
136
|
+
var firstOrNull = kotlin_kotlin.$_$.s7;
|
|
137
137
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
|
|
138
138
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
139
|
-
var KtMutableMap = kotlin_kotlin.$_$.a6;
|
|
140
139
|
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
141
140
|
var Companion_instance_0 = kotlin_io_ktor_ktor_client_logging.$_$.b;
|
|
142
141
|
var get_DEFAULT = kotlin_io_ktor_ktor_client_logging.$_$.d;
|
|
@@ -147,10 +146,10 @@
|
|
|
147
146
|
var LogLevel_ALL_getInstance = kotlin_io_ktor_ktor_client_logging.$_$.a;
|
|
148
147
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
149
148
|
var SecRandomCopyException = kotlin_org_kotlincrypto_secure_random.$_$.a;
|
|
150
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
149
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
151
150
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
152
151
|
var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
|
|
153
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
152
|
+
var Default_getInstance = kotlin_kotlin.$_$.d5;
|
|
154
153
|
var Plugin_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
155
154
|
var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
156
155
|
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
@@ -202,7 +201,7 @@
|
|
|
202
201
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
203
202
|
signed = signed === VOID ? false : signed;
|
|
204
203
|
timeoutMillis = timeoutMillis === VOID ? new Long(7000, 0) : timeoutMillis;
|
|
205
|
-
return $super === VOID ? this.
|
|
204
|
+
return $super === VOID ? this.x5u(minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) : $super.x5u.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion);
|
|
206
205
|
}
|
|
207
206
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7]);
|
|
208
207
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
@@ -222,8 +221,8 @@
|
|
|
222
221
|
do {
|
|
223
222
|
var i = inductionVariable;
|
|
224
223
|
inductionVariable = inductionVariable + -1 | 0;
|
|
225
|
-
var j = this.
|
|
226
|
-
list.
|
|
224
|
+
var j = this.pg(0, i + 1 | 0);
|
|
225
|
+
list.b2(j, list.b2(i, list.o(j)));
|
|
227
226
|
}
|
|
228
227
|
while (1 <= inductionVariable);
|
|
229
228
|
return list;
|
|
@@ -233,7 +232,7 @@
|
|
|
233
232
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
234
233
|
//endregion
|
|
235
234
|
function Companion() {
|
|
236
|
-
this.
|
|
235
|
+
this.b5q_1 = 100001;
|
|
237
236
|
}
|
|
238
237
|
var Companion_instance_1;
|
|
239
238
|
function Companion_getInstance_2() {
|
|
@@ -244,31 +243,31 @@
|
|
|
244
243
|
cause = cause === VOID ? null : cause;
|
|
245
244
|
RuntimeException_init_$Init$(message, cause, this);
|
|
246
245
|
captureStack(this, RandomException);
|
|
247
|
-
this.
|
|
246
|
+
this.c5q_1 = code;
|
|
248
247
|
}
|
|
249
248
|
function CardDecksRequestUserData(id, count) {
|
|
250
249
|
this.id = id;
|
|
251
250
|
this.count = count;
|
|
252
251
|
}
|
|
253
|
-
protoOf(CardDecksRequestUserData).
|
|
252
|
+
protoOf(CardDecksRequestUserData).w5o = function () {
|
|
254
253
|
return this.id;
|
|
255
254
|
};
|
|
256
|
-
protoOf(CardDecksRequestUserData).
|
|
255
|
+
protoOf(CardDecksRequestUserData).d5q = function () {
|
|
257
256
|
return this.count;
|
|
258
257
|
};
|
|
259
|
-
protoOf(CardDecksRequestUserData).
|
|
258
|
+
protoOf(CardDecksRequestUserData).pe = function () {
|
|
260
259
|
return this.id;
|
|
261
260
|
};
|
|
262
|
-
protoOf(CardDecksRequestUserData).
|
|
261
|
+
protoOf(CardDecksRequestUserData).qe = function () {
|
|
263
262
|
return this.count;
|
|
264
263
|
};
|
|
265
|
-
protoOf(CardDecksRequestUserData).
|
|
264
|
+
protoOf(CardDecksRequestUserData).e5q = function (id, count) {
|
|
266
265
|
return new CardDecksRequestUserData(id, count);
|
|
267
266
|
};
|
|
268
267
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
269
268
|
id = id === VOID ? this.id : id;
|
|
270
269
|
count = count === VOID ? this.count : count;
|
|
271
|
-
return this.
|
|
270
|
+
return this.e5q(id, count);
|
|
272
271
|
};
|
|
273
272
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
274
273
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -294,25 +293,25 @@
|
|
|
294
293
|
this.players = players;
|
|
295
294
|
this.gameId = gameId;
|
|
296
295
|
}
|
|
297
|
-
protoOf(CardDeckRequestUserData).
|
|
296
|
+
protoOf(CardDeckRequestUserData).f5q = function () {
|
|
298
297
|
return this.players;
|
|
299
298
|
};
|
|
300
|
-
protoOf(CardDeckRequestUserData).
|
|
299
|
+
protoOf(CardDeckRequestUserData).g5q = function () {
|
|
301
300
|
return this.gameId;
|
|
302
301
|
};
|
|
303
|
-
protoOf(CardDeckRequestUserData).
|
|
302
|
+
protoOf(CardDeckRequestUserData).pe = function () {
|
|
304
303
|
return this.players;
|
|
305
304
|
};
|
|
306
|
-
protoOf(CardDeckRequestUserData).
|
|
305
|
+
protoOf(CardDeckRequestUserData).qe = function () {
|
|
307
306
|
return this.gameId;
|
|
308
307
|
};
|
|
309
|
-
protoOf(CardDeckRequestUserData).
|
|
308
|
+
protoOf(CardDeckRequestUserData).h5q = function (players, gameId) {
|
|
310
309
|
return new CardDeckRequestUserData(players, gameId);
|
|
311
310
|
};
|
|
312
311
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
313
312
|
players = players === VOID ? this.players : players;
|
|
314
313
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
315
|
-
return this.
|
|
314
|
+
return this.h5q(players, gameId);
|
|
316
315
|
};
|
|
317
316
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
318
317
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -338,25 +337,25 @@
|
|
|
338
337
|
this.id = id;
|
|
339
338
|
this.name = name;
|
|
340
339
|
}
|
|
341
|
-
protoOf(UserInfoData).
|
|
340
|
+
protoOf(UserInfoData).w5o = function () {
|
|
342
341
|
return this.id;
|
|
343
342
|
};
|
|
344
|
-
protoOf(UserInfoData).
|
|
343
|
+
protoOf(UserInfoData).o2 = function () {
|
|
345
344
|
return this.name;
|
|
346
345
|
};
|
|
347
|
-
protoOf(UserInfoData).
|
|
346
|
+
protoOf(UserInfoData).pe = function () {
|
|
348
347
|
return this.id;
|
|
349
348
|
};
|
|
350
|
-
protoOf(UserInfoData).
|
|
349
|
+
protoOf(UserInfoData).qe = function () {
|
|
351
350
|
return this.name;
|
|
352
351
|
};
|
|
353
|
-
protoOf(UserInfoData).
|
|
352
|
+
protoOf(UserInfoData).i5q = function (id, name) {
|
|
354
353
|
return new UserInfoData(id, name);
|
|
355
354
|
};
|
|
356
355
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
357
356
|
id = id === VOID ? this.id : id;
|
|
358
357
|
name = name === VOID ? this.name : name;
|
|
359
|
-
return this.
|
|
358
|
+
return this.i5q(id, name);
|
|
360
359
|
};
|
|
361
360
|
protoOf(UserInfoData).toString = function () {
|
|
362
361
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -379,19 +378,19 @@
|
|
|
379
378
|
return true;
|
|
380
379
|
};
|
|
381
380
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
385
|
-
this.
|
|
381
|
+
this.j5q_1 = cardDecks;
|
|
382
|
+
this.k5q_1 = responseText;
|
|
383
|
+
this.l5q_1 = id;
|
|
384
|
+
this.m5q_1 = signature;
|
|
386
385
|
}
|
|
387
386
|
protoOf(CardDeckResult).toString = function () {
|
|
388
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
387
|
+
return 'CardDeckResult(cardDecks=' + toString(this.j5q_1) + ', responseText=' + this.k5q_1 + ', id=' + this.l5q_1 + ', signature=' + this.m5q_1 + ')';
|
|
389
388
|
};
|
|
390
389
|
protoOf(CardDeckResult).hashCode = function () {
|
|
391
|
-
var result = hashCode(this.
|
|
392
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
393
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
394
|
-
result = imul(result, 31) + (this.
|
|
390
|
+
var result = hashCode(this.j5q_1);
|
|
391
|
+
result = imul(result, 31) + getStringHashCode(this.k5q_1) | 0;
|
|
392
|
+
result = imul(result, 31) + getStringHashCode(this.l5q_1) | 0;
|
|
393
|
+
result = imul(result, 31) + (this.m5q_1 == null ? 0 : getStringHashCode(this.m5q_1)) | 0;
|
|
395
394
|
return result;
|
|
396
395
|
};
|
|
397
396
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -400,20 +399,20 @@
|
|
|
400
399
|
if (!(other instanceof CardDeckResult))
|
|
401
400
|
return false;
|
|
402
401
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
403
|
-
if (!equals(this.
|
|
402
|
+
if (!equals(this.j5q_1, tmp0_other_with_cast.j5q_1))
|
|
404
403
|
return false;
|
|
405
|
-
if (!(this.
|
|
404
|
+
if (!(this.k5q_1 === tmp0_other_with_cast.k5q_1))
|
|
406
405
|
return false;
|
|
407
|
-
if (!(this.
|
|
406
|
+
if (!(this.l5q_1 === tmp0_other_with_cast.l5q_1))
|
|
408
407
|
return false;
|
|
409
|
-
if (!(this.
|
|
408
|
+
if (!(this.m5q_1 == tmp0_other_with_cast.m5q_1))
|
|
410
409
|
return false;
|
|
411
410
|
return true;
|
|
412
411
|
};
|
|
413
412
|
function Companion_0() {
|
|
414
413
|
}
|
|
415
|
-
protoOf(Companion_0).firstRound = function (
|
|
416
|
-
return new GameCardDecksRecord(
|
|
414
|
+
protoOf(Companion_0).firstRound = function (poolId, signature, newCardDeckData, userData) {
|
|
415
|
+
return new GameCardDecksRecord(poolId, signature, userData, listOf(newCardDeckData));
|
|
417
416
|
};
|
|
418
417
|
protoOf(Companion_0).newRound = function (gameCardDecksRecord, newCardDeckData) {
|
|
419
418
|
return gameCardDecksRecord.copy(VOID, VOID, VOID, plus(gameCardDecksRecord.rounds, newCardDeckData));
|
|
@@ -422,52 +421,52 @@
|
|
|
422
421
|
function Companion_getInstance_3() {
|
|
423
422
|
return Companion_instance_2;
|
|
424
423
|
}
|
|
425
|
-
function GameCardDecksRecord(
|
|
424
|
+
function GameCardDecksRecord(poolId, signature, userData, rounds) {
|
|
426
425
|
rounds = rounds === VOID ? emptyList() : rounds;
|
|
427
|
-
this.
|
|
426
|
+
this.poolId = poolId;
|
|
428
427
|
this.signature = signature;
|
|
429
428
|
this.userData = userData;
|
|
430
429
|
this.rounds = rounds;
|
|
431
430
|
}
|
|
432
|
-
protoOf(GameCardDecksRecord).
|
|
433
|
-
return this.
|
|
431
|
+
protoOf(GameCardDecksRecord).n5q = function () {
|
|
432
|
+
return this.poolId;
|
|
434
433
|
};
|
|
435
|
-
protoOf(GameCardDecksRecord).
|
|
434
|
+
protoOf(GameCardDecksRecord).o5q = function () {
|
|
436
435
|
return this.signature;
|
|
437
436
|
};
|
|
438
|
-
protoOf(GameCardDecksRecord).
|
|
437
|
+
protoOf(GameCardDecksRecord).p5q = function () {
|
|
439
438
|
return this.userData;
|
|
440
439
|
};
|
|
441
|
-
protoOf(GameCardDecksRecord).
|
|
440
|
+
protoOf(GameCardDecksRecord).q5q = function () {
|
|
442
441
|
return this.rounds;
|
|
443
442
|
};
|
|
444
|
-
protoOf(GameCardDecksRecord).
|
|
445
|
-
return this.
|
|
443
|
+
protoOf(GameCardDecksRecord).pe = function () {
|
|
444
|
+
return this.poolId;
|
|
446
445
|
};
|
|
447
|
-
protoOf(GameCardDecksRecord).
|
|
446
|
+
protoOf(GameCardDecksRecord).qe = function () {
|
|
448
447
|
return this.signature;
|
|
449
448
|
};
|
|
450
|
-
protoOf(GameCardDecksRecord).
|
|
449
|
+
protoOf(GameCardDecksRecord).hk = function () {
|
|
451
450
|
return this.userData;
|
|
452
451
|
};
|
|
453
|
-
protoOf(GameCardDecksRecord).
|
|
452
|
+
protoOf(GameCardDecksRecord).r5q = function () {
|
|
454
453
|
return this.rounds;
|
|
455
454
|
};
|
|
456
|
-
protoOf(GameCardDecksRecord).
|
|
457
|
-
return new GameCardDecksRecord(
|
|
455
|
+
protoOf(GameCardDecksRecord).s5q = function (poolId, signature, userData, rounds) {
|
|
456
|
+
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
458
457
|
};
|
|
459
|
-
protoOf(GameCardDecksRecord).copy = function (
|
|
460
|
-
|
|
458
|
+
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
459
|
+
poolId = poolId === VOID ? this.poolId : poolId;
|
|
461
460
|
signature = signature === VOID ? this.signature : signature;
|
|
462
461
|
userData = userData === VOID ? this.userData : userData;
|
|
463
462
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
464
|
-
return this.
|
|
463
|
+
return this.s5q(poolId, signature, userData, rounds);
|
|
465
464
|
};
|
|
466
465
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
467
|
-
return 'GameCardDecksRecord(
|
|
466
|
+
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
468
467
|
};
|
|
469
468
|
protoOf(GameCardDecksRecord).hashCode = function () {
|
|
470
|
-
var result = getStringHashCode(this.
|
|
469
|
+
var result = getStringHashCode(this.poolId);
|
|
471
470
|
result = imul(result, 31) + (this.signature == null ? 0 : getStringHashCode(this.signature)) | 0;
|
|
472
471
|
result = imul(result, 31) + this.userData.hashCode() | 0;
|
|
473
472
|
result = imul(result, 31) + hashCode(this.rounds) | 0;
|
|
@@ -479,7 +478,7 @@
|
|
|
479
478
|
if (!(other instanceof GameCardDecksRecord))
|
|
480
479
|
return false;
|
|
481
480
|
var tmp0_other_with_cast = other instanceof GameCardDecksRecord ? other : THROW_CCE();
|
|
482
|
-
if (!(this.
|
|
481
|
+
if (!(this.poolId === tmp0_other_with_cast.poolId))
|
|
483
482
|
return false;
|
|
484
483
|
if (!(this.signature == tmp0_other_with_cast.signature))
|
|
485
484
|
return false;
|
|
@@ -493,25 +492,25 @@
|
|
|
493
492
|
this.cardDeckIndex = cardDeckIndex;
|
|
494
493
|
this.cards = cards;
|
|
495
494
|
}
|
|
496
|
-
protoOf(GameCardDeckData).
|
|
495
|
+
protoOf(GameCardDeckData).t5q = function () {
|
|
497
496
|
return this.cardDeckIndex;
|
|
498
497
|
};
|
|
499
|
-
protoOf(GameCardDeckData).
|
|
498
|
+
protoOf(GameCardDeckData).u5q = function () {
|
|
500
499
|
return this.cards;
|
|
501
500
|
};
|
|
502
|
-
protoOf(GameCardDeckData).
|
|
501
|
+
protoOf(GameCardDeckData).pe = function () {
|
|
503
502
|
return this.cardDeckIndex;
|
|
504
503
|
};
|
|
505
|
-
protoOf(GameCardDeckData).
|
|
504
|
+
protoOf(GameCardDeckData).qe = function () {
|
|
506
505
|
return this.cards;
|
|
507
506
|
};
|
|
508
|
-
protoOf(GameCardDeckData).
|
|
507
|
+
protoOf(GameCardDeckData).v5q = function (cardDeckIndex, cards) {
|
|
509
508
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
510
509
|
};
|
|
511
510
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
512
511
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
513
512
|
cards = cards === VOID ? this.cards : cards;
|
|
514
|
-
return this.
|
|
513
|
+
return this.v5q(cardDeckIndex, cards);
|
|
515
514
|
};
|
|
516
515
|
protoOf(GameCardDeckData).toString = function () {
|
|
517
516
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -538,25 +537,25 @@
|
|
|
538
537
|
this.baseUrl = baseUrl;
|
|
539
538
|
this.timeoutMillis = timeoutMillis;
|
|
540
539
|
}
|
|
541
|
-
protoOf(HttpConfig).
|
|
540
|
+
protoOf(HttpConfig).w5q = function () {
|
|
542
541
|
return this.baseUrl;
|
|
543
542
|
};
|
|
544
|
-
protoOf(HttpConfig).
|
|
543
|
+
protoOf(HttpConfig).x5q = function () {
|
|
545
544
|
return this.timeoutMillis;
|
|
546
545
|
};
|
|
547
|
-
protoOf(HttpConfig).
|
|
546
|
+
protoOf(HttpConfig).pe = function () {
|
|
548
547
|
return this.baseUrl;
|
|
549
548
|
};
|
|
550
|
-
protoOf(HttpConfig).
|
|
549
|
+
protoOf(HttpConfig).qe = function () {
|
|
551
550
|
return this.timeoutMillis;
|
|
552
551
|
};
|
|
553
|
-
protoOf(HttpConfig).
|
|
552
|
+
protoOf(HttpConfig).e5q = function (baseUrl, timeoutMillis) {
|
|
554
553
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
555
554
|
};
|
|
556
555
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
557
556
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
558
557
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
559
|
-
return this.
|
|
558
|
+
return this.e5q(baseUrl, timeoutMillis);
|
|
560
559
|
};
|
|
561
560
|
protoOf(HttpConfig).toString = function () {
|
|
562
561
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -591,31 +590,31 @@
|
|
|
591
590
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
592
591
|
this.httpConfig = httpConfig;
|
|
593
592
|
}
|
|
594
|
-
protoOf(RandomOrgConfig).
|
|
593
|
+
protoOf(RandomOrgConfig).y5q = function () {
|
|
595
594
|
return this.apiKey;
|
|
596
595
|
};
|
|
597
|
-
protoOf(RandomOrgConfig).
|
|
596
|
+
protoOf(RandomOrgConfig).z5q = function () {
|
|
598
597
|
return this.poolSize;
|
|
599
598
|
};
|
|
600
|
-
protoOf(RandomOrgConfig).
|
|
599
|
+
protoOf(RandomOrgConfig).a5r = function () {
|
|
601
600
|
return this.thresholdForUsedPool;
|
|
602
601
|
};
|
|
603
|
-
protoOf(RandomOrgConfig).
|
|
602
|
+
protoOf(RandomOrgConfig).b5r = function () {
|
|
604
603
|
return this.httpConfig;
|
|
605
604
|
};
|
|
606
|
-
protoOf(RandomOrgConfig).
|
|
605
|
+
protoOf(RandomOrgConfig).pe = function () {
|
|
607
606
|
return this.apiKey;
|
|
608
607
|
};
|
|
609
|
-
protoOf(RandomOrgConfig).
|
|
608
|
+
protoOf(RandomOrgConfig).qe = function () {
|
|
610
609
|
return this.poolSize;
|
|
611
610
|
};
|
|
612
|
-
protoOf(RandomOrgConfig).
|
|
611
|
+
protoOf(RandomOrgConfig).hk = function () {
|
|
613
612
|
return this.thresholdForUsedPool;
|
|
614
613
|
};
|
|
615
|
-
protoOf(RandomOrgConfig).
|
|
614
|
+
protoOf(RandomOrgConfig).r5q = function () {
|
|
616
615
|
return this.httpConfig;
|
|
617
616
|
};
|
|
618
|
-
protoOf(RandomOrgConfig).
|
|
617
|
+
protoOf(RandomOrgConfig).c5r = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
619
618
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
620
619
|
};
|
|
621
620
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -623,7 +622,7 @@
|
|
|
623
622
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
624
623
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
625
624
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
626
|
-
return this.
|
|
625
|
+
return this.c5r(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
627
626
|
};
|
|
628
627
|
protoOf(RandomOrgConfig).toString = function () {
|
|
629
628
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -660,59 +659,59 @@
|
|
|
660
659
|
function $serializer() {
|
|
661
660
|
$serializer_instance = this;
|
|
662
661
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
663
|
-
tmp0_serialDesc.
|
|
664
|
-
tmp0_serialDesc.
|
|
665
|
-
this.
|
|
666
|
-
}
|
|
667
|
-
protoOf($serializer).
|
|
668
|
-
var tmp0_desc = this.
|
|
669
|
-
var tmp1_output = encoder.
|
|
670
|
-
tmp1_output.
|
|
671
|
-
tmp1_output.
|
|
672
|
-
tmp1_output.
|
|
673
|
-
};
|
|
674
|
-
protoOf($serializer).
|
|
675
|
-
return this.
|
|
676
|
-
};
|
|
677
|
-
protoOf($serializer).
|
|
678
|
-
var tmp0_desc = this.
|
|
662
|
+
tmp0_serialDesc.o4j('jsonrpc', false);
|
|
663
|
+
tmp0_serialDesc.o4j('error', false);
|
|
664
|
+
this.d5r_1 = tmp0_serialDesc;
|
|
665
|
+
}
|
|
666
|
+
protoOf($serializer).e5r = function (encoder, value) {
|
|
667
|
+
var tmp0_desc = this.d5r_1;
|
|
668
|
+
var tmp1_output = encoder.a4c(tmp0_desc);
|
|
669
|
+
tmp1_output.o4d(tmp0_desc, 0, value.f5r_1);
|
|
670
|
+
tmp1_output.s4d(tmp0_desc, 1, $serializer_getInstance_0(), value.g5r_1);
|
|
671
|
+
tmp1_output.b4c(tmp0_desc);
|
|
672
|
+
};
|
|
673
|
+
protoOf($serializer).n48 = function (encoder, value) {
|
|
674
|
+
return this.e5r(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
675
|
+
};
|
|
676
|
+
protoOf($serializer).o48 = function (decoder) {
|
|
677
|
+
var tmp0_desc = this.d5r_1;
|
|
679
678
|
var tmp1_flag = true;
|
|
680
679
|
var tmp2_index = 0;
|
|
681
680
|
var tmp3_bitMask0 = 0;
|
|
682
681
|
var tmp4_local0 = null;
|
|
683
682
|
var tmp5_local1 = null;
|
|
684
|
-
var tmp6_input = decoder.
|
|
685
|
-
if (tmp6_input.
|
|
686
|
-
tmp4_local0 = tmp6_input.
|
|
683
|
+
var tmp6_input = decoder.a4c(tmp0_desc);
|
|
684
|
+
if (tmp6_input.p4c()) {
|
|
685
|
+
tmp4_local0 = tmp6_input.k4c(tmp0_desc, 0);
|
|
687
686
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
688
|
-
tmp5_local1 = tmp6_input.
|
|
687
|
+
tmp5_local1 = tmp6_input.o4c(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
689
688
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
690
689
|
} else
|
|
691
690
|
while (tmp1_flag) {
|
|
692
|
-
tmp2_index = tmp6_input.
|
|
691
|
+
tmp2_index = tmp6_input.q4c(tmp0_desc);
|
|
693
692
|
switch (tmp2_index) {
|
|
694
693
|
case -1:
|
|
695
694
|
tmp1_flag = false;
|
|
696
695
|
break;
|
|
697
696
|
case 0:
|
|
698
|
-
tmp4_local0 = tmp6_input.
|
|
697
|
+
tmp4_local0 = tmp6_input.k4c(tmp0_desc, 0);
|
|
699
698
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
700
699
|
break;
|
|
701
700
|
case 1:
|
|
702
|
-
tmp5_local1 = tmp6_input.
|
|
701
|
+
tmp5_local1 = tmp6_input.o4c(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
703
702
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
704
703
|
break;
|
|
705
704
|
default:
|
|
706
705
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
707
706
|
}
|
|
708
707
|
}
|
|
709
|
-
tmp6_input.
|
|
708
|
+
tmp6_input.b4c(tmp0_desc);
|
|
710
709
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
711
710
|
};
|
|
712
|
-
protoOf($serializer).
|
|
713
|
-
return this.
|
|
711
|
+
protoOf($serializer).m48 = function () {
|
|
712
|
+
return this.d5r_1;
|
|
714
713
|
};
|
|
715
|
-
protoOf($serializer).
|
|
714
|
+
protoOf($serializer).d4k = function () {
|
|
716
715
|
// Inline function 'kotlin.arrayOf' call
|
|
717
716
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
718
717
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -726,25 +725,25 @@
|
|
|
726
725
|
}
|
|
727
726
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
728
727
|
if (!(3 === (3 & seen0))) {
|
|
729
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
728
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().d5r_1);
|
|
730
729
|
}
|
|
731
|
-
$this.
|
|
732
|
-
$this.
|
|
730
|
+
$this.f5r_1 = jsonrpc;
|
|
731
|
+
$this.g5r_1 = error;
|
|
733
732
|
return $this;
|
|
734
733
|
}
|
|
735
734
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
736
735
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
737
736
|
}
|
|
738
737
|
function ErrorResponseDto(jsonrpc, error) {
|
|
739
|
-
this.
|
|
740
|
-
this.
|
|
738
|
+
this.f5r_1 = jsonrpc;
|
|
739
|
+
this.g5r_1 = error;
|
|
741
740
|
}
|
|
742
741
|
protoOf(ErrorResponseDto).toString = function () {
|
|
743
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
742
|
+
return 'ErrorResponseDto(jsonrpc=' + this.f5r_1 + ', error=' + toString_0(this.g5r_1) + ')';
|
|
744
743
|
};
|
|
745
744
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
746
|
-
var result = getStringHashCode(this.
|
|
747
|
-
result = imul(result, 31) + (this.
|
|
745
|
+
var result = getStringHashCode(this.f5r_1);
|
|
746
|
+
result = imul(result, 31) + (this.g5r_1 == null ? 0 : this.g5r_1.hashCode()) | 0;
|
|
748
747
|
return result;
|
|
749
748
|
};
|
|
750
749
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -753,68 +752,68 @@
|
|
|
753
752
|
if (!(other instanceof ErrorResponseDto))
|
|
754
753
|
return false;
|
|
755
754
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
756
|
-
if (!(this.
|
|
755
|
+
if (!(this.f5r_1 === tmp0_other_with_cast.f5r_1))
|
|
757
756
|
return false;
|
|
758
|
-
if (!equals(this.
|
|
757
|
+
if (!equals(this.g5r_1, tmp0_other_with_cast.g5r_1))
|
|
759
758
|
return false;
|
|
760
759
|
return true;
|
|
761
760
|
};
|
|
762
761
|
function $serializer_0() {
|
|
763
762
|
$serializer_instance_0 = this;
|
|
764
763
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
765
|
-
tmp0_serialDesc.
|
|
766
|
-
tmp0_serialDesc.
|
|
767
|
-
this.
|
|
768
|
-
}
|
|
769
|
-
protoOf($serializer_0).
|
|
770
|
-
var tmp0_desc = this.
|
|
771
|
-
var tmp1_output = encoder.
|
|
772
|
-
tmp1_output.
|
|
773
|
-
tmp1_output.
|
|
774
|
-
tmp1_output.
|
|
775
|
-
};
|
|
776
|
-
protoOf($serializer_0).
|
|
777
|
-
return this.
|
|
778
|
-
};
|
|
779
|
-
protoOf($serializer_0).
|
|
780
|
-
var tmp0_desc = this.
|
|
764
|
+
tmp0_serialDesc.o4j('code', false);
|
|
765
|
+
tmp0_serialDesc.o4j('message', false);
|
|
766
|
+
this.h5r_1 = tmp0_serialDesc;
|
|
767
|
+
}
|
|
768
|
+
protoOf($serializer_0).i5r = function (encoder, value) {
|
|
769
|
+
var tmp0_desc = this.h5r_1;
|
|
770
|
+
var tmp1_output = encoder.a4c(tmp0_desc);
|
|
771
|
+
tmp1_output.s4d(tmp0_desc, 0, IntSerializer_getInstance(), value.j5r_1);
|
|
772
|
+
tmp1_output.s4d(tmp0_desc, 1, StringSerializer_getInstance(), value.k5r_1);
|
|
773
|
+
tmp1_output.b4c(tmp0_desc);
|
|
774
|
+
};
|
|
775
|
+
protoOf($serializer_0).n48 = function (encoder, value) {
|
|
776
|
+
return this.i5r(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
777
|
+
};
|
|
778
|
+
protoOf($serializer_0).o48 = function (decoder) {
|
|
779
|
+
var tmp0_desc = this.h5r_1;
|
|
781
780
|
var tmp1_flag = true;
|
|
782
781
|
var tmp2_index = 0;
|
|
783
782
|
var tmp3_bitMask0 = 0;
|
|
784
783
|
var tmp4_local0 = null;
|
|
785
784
|
var tmp5_local1 = null;
|
|
786
|
-
var tmp6_input = decoder.
|
|
787
|
-
if (tmp6_input.
|
|
788
|
-
tmp4_local0 = tmp6_input.
|
|
785
|
+
var tmp6_input = decoder.a4c(tmp0_desc);
|
|
786
|
+
if (tmp6_input.p4c()) {
|
|
787
|
+
tmp4_local0 = tmp6_input.o4c(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
789
788
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
790
|
-
tmp5_local1 = tmp6_input.
|
|
789
|
+
tmp5_local1 = tmp6_input.o4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
791
790
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
792
791
|
} else
|
|
793
792
|
while (tmp1_flag) {
|
|
794
|
-
tmp2_index = tmp6_input.
|
|
793
|
+
tmp2_index = tmp6_input.q4c(tmp0_desc);
|
|
795
794
|
switch (tmp2_index) {
|
|
796
795
|
case -1:
|
|
797
796
|
tmp1_flag = false;
|
|
798
797
|
break;
|
|
799
798
|
case 0:
|
|
800
|
-
tmp4_local0 = tmp6_input.
|
|
799
|
+
tmp4_local0 = tmp6_input.o4c(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
801
800
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
802
801
|
break;
|
|
803
802
|
case 1:
|
|
804
|
-
tmp5_local1 = tmp6_input.
|
|
803
|
+
tmp5_local1 = tmp6_input.o4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
805
804
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
806
805
|
break;
|
|
807
806
|
default:
|
|
808
807
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
809
808
|
}
|
|
810
809
|
}
|
|
811
|
-
tmp6_input.
|
|
810
|
+
tmp6_input.b4c(tmp0_desc);
|
|
812
811
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
813
812
|
};
|
|
814
|
-
protoOf($serializer_0).
|
|
815
|
-
return this.
|
|
813
|
+
protoOf($serializer_0).m48 = function () {
|
|
814
|
+
return this.h5r_1;
|
|
816
815
|
};
|
|
817
|
-
protoOf($serializer_0).
|
|
816
|
+
protoOf($serializer_0).d4k = function () {
|
|
818
817
|
// Inline function 'kotlin.arrayOf' call
|
|
819
818
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
820
819
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -828,10 +827,10 @@
|
|
|
828
827
|
}
|
|
829
828
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
830
829
|
if (!(3 === (3 & seen0))) {
|
|
831
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
830
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().h5r_1);
|
|
832
831
|
}
|
|
833
|
-
$this.
|
|
834
|
-
$this.
|
|
832
|
+
$this.j5r_1 = code;
|
|
833
|
+
$this.k5r_1 = message;
|
|
835
834
|
return $this;
|
|
836
835
|
}
|
|
837
836
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -840,11 +839,11 @@
|
|
|
840
839
|
function ErrorDto() {
|
|
841
840
|
}
|
|
842
841
|
protoOf(ErrorDto).toString = function () {
|
|
843
|
-
return 'ErrorDto(code=' + this.
|
|
842
|
+
return 'ErrorDto(code=' + this.j5r_1 + ', message=' + this.k5r_1 + ')';
|
|
844
843
|
};
|
|
845
844
|
protoOf(ErrorDto).hashCode = function () {
|
|
846
|
-
var result = this.
|
|
847
|
-
result = imul(result, 31) + (this.
|
|
845
|
+
var result = this.j5r_1 == null ? 0 : this.j5r_1;
|
|
846
|
+
result = imul(result, 31) + (this.k5r_1 == null ? 0 : getStringHashCode(this.k5r_1)) | 0;
|
|
848
847
|
return result;
|
|
849
848
|
};
|
|
850
849
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -853,15 +852,15 @@
|
|
|
853
852
|
if (!(other instanceof ErrorDto))
|
|
854
853
|
return false;
|
|
855
854
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
856
|
-
if (!(this.
|
|
855
|
+
if (!(this.j5r_1 == tmp0_other_with_cast.j5r_1))
|
|
857
856
|
return false;
|
|
858
|
-
if (!(this.
|
|
857
|
+
if (!(this.k5r_1 == tmp0_other_with_cast.k5r_1))
|
|
859
858
|
return false;
|
|
860
859
|
return true;
|
|
861
860
|
};
|
|
862
861
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
863
862
|
$serializer_1.call($this);
|
|
864
|
-
$this.
|
|
863
|
+
$this.m5r_1 = typeSerial0;
|
|
865
864
|
return $this;
|
|
866
865
|
}
|
|
867
866
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -870,17 +869,17 @@
|
|
|
870
869
|
function Companion_2() {
|
|
871
870
|
Companion_instance_4 = this;
|
|
872
871
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
873
|
-
tmp0_serialDesc.
|
|
874
|
-
tmp0_serialDesc.
|
|
875
|
-
tmp0_serialDesc.
|
|
876
|
-
tmp0_serialDesc.
|
|
877
|
-
this.
|
|
872
|
+
tmp0_serialDesc.o4j('jsonrpc', false);
|
|
873
|
+
tmp0_serialDesc.o4j('method', false);
|
|
874
|
+
tmp0_serialDesc.o4j('params', false);
|
|
875
|
+
tmp0_serialDesc.o4j('id', false);
|
|
876
|
+
this.n5r_1 = tmp0_serialDesc;
|
|
878
877
|
}
|
|
879
|
-
protoOf(Companion_2).
|
|
878
|
+
protoOf(Companion_2).o5r = function (typeSerial0) {
|
|
880
879
|
return $serializer_init_$Create$(typeSerial0);
|
|
881
880
|
};
|
|
882
|
-
protoOf(Companion_2).
|
|
883
|
-
return this.
|
|
881
|
+
protoOf(Companion_2).o4k = function (typeParamsSerializers) {
|
|
882
|
+
return this.o5r(typeParamsSerializers[0]);
|
|
884
883
|
};
|
|
885
884
|
var Companion_instance_4;
|
|
886
885
|
function Companion_getInstance_5() {
|
|
@@ -890,26 +889,26 @@
|
|
|
890
889
|
}
|
|
891
890
|
function $serializer_1() {
|
|
892
891
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
893
|
-
tmp0_serialDesc.
|
|
894
|
-
tmp0_serialDesc.
|
|
895
|
-
tmp0_serialDesc.
|
|
896
|
-
tmp0_serialDesc.
|
|
897
|
-
this.
|
|
898
|
-
}
|
|
899
|
-
protoOf($serializer_1).
|
|
900
|
-
var tmp0_desc = this.
|
|
901
|
-
var tmp1_output = encoder.
|
|
902
|
-
tmp1_output.
|
|
903
|
-
tmp1_output.
|
|
904
|
-
tmp1_output.
|
|
905
|
-
tmp1_output.
|
|
906
|
-
tmp1_output.
|
|
907
|
-
};
|
|
908
|
-
protoOf($serializer_1).
|
|
909
|
-
return this.
|
|
910
|
-
};
|
|
911
|
-
protoOf($serializer_1).
|
|
912
|
-
var tmp0_desc = this.
|
|
892
|
+
tmp0_serialDesc.o4j('jsonrpc', false);
|
|
893
|
+
tmp0_serialDesc.o4j('method', false);
|
|
894
|
+
tmp0_serialDesc.o4j('params', false);
|
|
895
|
+
tmp0_serialDesc.o4j('id', false);
|
|
896
|
+
this.l5r_1 = tmp0_serialDesc;
|
|
897
|
+
}
|
|
898
|
+
protoOf($serializer_1).p5r = function (encoder, value) {
|
|
899
|
+
var tmp0_desc = this.l5r_1;
|
|
900
|
+
var tmp1_output = encoder.a4c(tmp0_desc);
|
|
901
|
+
tmp1_output.o4d(tmp0_desc, 0, value.q5r_1);
|
|
902
|
+
tmp1_output.o4d(tmp0_desc, 1, value.r5r_1);
|
|
903
|
+
tmp1_output.q4d(tmp0_desc, 2, this.m5r_1, value.s5r_1);
|
|
904
|
+
tmp1_output.o4d(tmp0_desc, 3, value.t5r_1);
|
|
905
|
+
tmp1_output.b4c(tmp0_desc);
|
|
906
|
+
};
|
|
907
|
+
protoOf($serializer_1).n48 = function (encoder, value) {
|
|
908
|
+
return this.p5r(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
909
|
+
};
|
|
910
|
+
protoOf($serializer_1).o48 = function (decoder) {
|
|
911
|
+
var tmp0_desc = this.l5r_1;
|
|
913
912
|
var tmp1_flag = true;
|
|
914
913
|
var tmp2_index = 0;
|
|
915
914
|
var tmp3_bitMask0 = 0;
|
|
@@ -917,69 +916,69 @@
|
|
|
917
916
|
var tmp5_local1 = null;
|
|
918
917
|
var tmp6_local2 = null;
|
|
919
918
|
var tmp7_local3 = null;
|
|
920
|
-
var tmp8_input = decoder.
|
|
921
|
-
if (tmp8_input.
|
|
922
|
-
tmp4_local0 = tmp8_input.
|
|
919
|
+
var tmp8_input = decoder.a4c(tmp0_desc);
|
|
920
|
+
if (tmp8_input.p4c()) {
|
|
921
|
+
tmp4_local0 = tmp8_input.k4c(tmp0_desc, 0);
|
|
923
922
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
924
|
-
tmp5_local1 = tmp8_input.
|
|
923
|
+
tmp5_local1 = tmp8_input.k4c(tmp0_desc, 1);
|
|
925
924
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
926
|
-
tmp6_local2 = tmp8_input.
|
|
925
|
+
tmp6_local2 = tmp8_input.m4c(tmp0_desc, 2, this.m5r_1, tmp6_local2);
|
|
927
926
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
928
|
-
tmp7_local3 = tmp8_input.
|
|
927
|
+
tmp7_local3 = tmp8_input.k4c(tmp0_desc, 3);
|
|
929
928
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
930
929
|
} else
|
|
931
930
|
while (tmp1_flag) {
|
|
932
|
-
tmp2_index = tmp8_input.
|
|
931
|
+
tmp2_index = tmp8_input.q4c(tmp0_desc);
|
|
933
932
|
switch (tmp2_index) {
|
|
934
933
|
case -1:
|
|
935
934
|
tmp1_flag = false;
|
|
936
935
|
break;
|
|
937
936
|
case 0:
|
|
938
|
-
tmp4_local0 = tmp8_input.
|
|
937
|
+
tmp4_local0 = tmp8_input.k4c(tmp0_desc, 0);
|
|
939
938
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
940
939
|
break;
|
|
941
940
|
case 1:
|
|
942
|
-
tmp5_local1 = tmp8_input.
|
|
941
|
+
tmp5_local1 = tmp8_input.k4c(tmp0_desc, 1);
|
|
943
942
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
944
943
|
break;
|
|
945
944
|
case 2:
|
|
946
|
-
tmp6_local2 = tmp8_input.
|
|
945
|
+
tmp6_local2 = tmp8_input.m4c(tmp0_desc, 2, this.m5r_1, tmp6_local2);
|
|
947
946
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
948
947
|
break;
|
|
949
948
|
case 3:
|
|
950
|
-
tmp7_local3 = tmp8_input.
|
|
949
|
+
tmp7_local3 = tmp8_input.k4c(tmp0_desc, 3);
|
|
951
950
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
952
951
|
break;
|
|
953
952
|
default:
|
|
954
953
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
955
954
|
}
|
|
956
955
|
}
|
|
957
|
-
tmp8_input.
|
|
956
|
+
tmp8_input.b4c(tmp0_desc);
|
|
958
957
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
959
958
|
};
|
|
960
|
-
protoOf($serializer_1).
|
|
961
|
-
return this.
|
|
959
|
+
protoOf($serializer_1).m48 = function () {
|
|
960
|
+
return this.l5r_1;
|
|
962
961
|
};
|
|
963
|
-
protoOf($serializer_1).
|
|
962
|
+
protoOf($serializer_1).d4k = function () {
|
|
964
963
|
// Inline function 'kotlin.arrayOf' call
|
|
965
964
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
966
965
|
// Inline function 'kotlin.js.asDynamic' call
|
|
967
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
966
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.m5r_1, StringSerializer_getInstance()];
|
|
968
967
|
};
|
|
969
|
-
protoOf($serializer_1).
|
|
968
|
+
protoOf($serializer_1).e4k = function () {
|
|
970
969
|
// Inline function 'kotlin.arrayOf' call
|
|
971
970
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
972
971
|
// Inline function 'kotlin.js.asDynamic' call
|
|
973
|
-
return [this.
|
|
972
|
+
return [this.m5r_1];
|
|
974
973
|
};
|
|
975
974
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
976
975
|
if (!(15 === (15 & seen0))) {
|
|
977
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
976
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().n5r_1);
|
|
978
977
|
}
|
|
979
|
-
$this.
|
|
980
|
-
$this.
|
|
981
|
-
$this.
|
|
982
|
-
$this.
|
|
978
|
+
$this.q5r_1 = jsonrpc;
|
|
979
|
+
$this.r5r_1 = method;
|
|
980
|
+
$this.s5r_1 = params;
|
|
981
|
+
$this.t5r_1 = id;
|
|
983
982
|
return $this;
|
|
984
983
|
}
|
|
985
984
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -987,19 +986,19 @@
|
|
|
987
986
|
}
|
|
988
987
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
989
988
|
Companion_getInstance_5();
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
989
|
+
this.q5r_1 = jsonrpc;
|
|
990
|
+
this.r5r_1 = method;
|
|
991
|
+
this.s5r_1 = params;
|
|
992
|
+
this.t5r_1 = id;
|
|
994
993
|
}
|
|
995
994
|
protoOf(RandomRequestDto).toString = function () {
|
|
996
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
995
|
+
return 'RandomRequestDto(jsonrpc=' + this.q5r_1 + ', method=' + this.r5r_1 + ', params=' + toString(this.s5r_1) + ', id=' + this.t5r_1 + ')';
|
|
997
996
|
};
|
|
998
997
|
protoOf(RandomRequestDto).hashCode = function () {
|
|
999
|
-
var result = getStringHashCode(this.
|
|
1000
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1001
|
-
result = imul(result, 31) + hashCode(this.
|
|
1002
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
998
|
+
var result = getStringHashCode(this.q5r_1);
|
|
999
|
+
result = imul(result, 31) + getStringHashCode(this.r5r_1) | 0;
|
|
1000
|
+
result = imul(result, 31) + hashCode(this.s5r_1) | 0;
|
|
1001
|
+
result = imul(result, 31) + getStringHashCode(this.t5r_1) | 0;
|
|
1003
1002
|
return result;
|
|
1004
1003
|
};
|
|
1005
1004
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1008,13 +1007,13 @@
|
|
|
1008
1007
|
if (!(other instanceof RandomRequestDto))
|
|
1009
1008
|
return false;
|
|
1010
1009
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1011
|
-
if (!(this.
|
|
1010
|
+
if (!(this.q5r_1 === tmp0_other_with_cast.q5r_1))
|
|
1012
1011
|
return false;
|
|
1013
|
-
if (!(this.
|
|
1012
|
+
if (!(this.r5r_1 === tmp0_other_with_cast.r5r_1))
|
|
1014
1013
|
return false;
|
|
1015
|
-
if (!equals(this.
|
|
1014
|
+
if (!equals(this.s5r_1, tmp0_other_with_cast.s5r_1))
|
|
1016
1015
|
return false;
|
|
1017
|
-
if (!(this.
|
|
1016
|
+
if (!(this.t5r_1 === tmp0_other_with_cast.t5r_1))
|
|
1018
1017
|
return false;
|
|
1019
1018
|
return true;
|
|
1020
1019
|
};
|
|
@@ -1024,7 +1023,7 @@
|
|
|
1024
1023
|
// Inline function 'kotlin.arrayOf' call
|
|
1025
1024
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1026
1025
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1027
|
-
tmp.
|
|
1026
|
+
tmp.u5r_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1028
1027
|
}
|
|
1029
1028
|
var Companion_instance_5;
|
|
1030
1029
|
function Companion_getInstance_6() {
|
|
@@ -1035,35 +1034,35 @@
|
|
|
1035
1034
|
function $serializer_2() {
|
|
1036
1035
|
$serializer_instance_1 = this;
|
|
1037
1036
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1038
|
-
tmp0_serialDesc.
|
|
1039
|
-
tmp0_serialDesc.
|
|
1040
|
-
tmp0_serialDesc.
|
|
1041
|
-
tmp0_serialDesc.
|
|
1042
|
-
tmp0_serialDesc.
|
|
1043
|
-
tmp0_serialDesc.
|
|
1044
|
-
tmp0_serialDesc.
|
|
1045
|
-
tmp0_serialDesc.
|
|
1046
|
-
this.
|
|
1047
|
-
}
|
|
1048
|
-
protoOf($serializer_2).
|
|
1049
|
-
var tmp0_desc = this.
|
|
1050
|
-
var tmp1_output = encoder.
|
|
1051
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1052
|
-
tmp1_output.
|
|
1053
|
-
tmp1_output.
|
|
1054
|
-
tmp1_output.
|
|
1055
|
-
tmp1_output.
|
|
1056
|
-
tmp1_output.
|
|
1057
|
-
tmp1_output.
|
|
1058
|
-
tmp1_output.
|
|
1059
|
-
tmp1_output.
|
|
1060
|
-
tmp1_output.
|
|
1061
|
-
};
|
|
1062
|
-
protoOf($serializer_2).
|
|
1063
|
-
return this.
|
|
1064
|
-
};
|
|
1065
|
-
protoOf($serializer_2).
|
|
1066
|
-
var tmp0_desc = this.
|
|
1037
|
+
tmp0_serialDesc.o4j('apiKey', false);
|
|
1038
|
+
tmp0_serialDesc.o4j('n', false);
|
|
1039
|
+
tmp0_serialDesc.o4j('length', false);
|
|
1040
|
+
tmp0_serialDesc.o4j('min', false);
|
|
1041
|
+
tmp0_serialDesc.o4j('max', false);
|
|
1042
|
+
tmp0_serialDesc.o4j('replacement', false);
|
|
1043
|
+
tmp0_serialDesc.o4j('ticketId', false);
|
|
1044
|
+
tmp0_serialDesc.o4j('userData', false);
|
|
1045
|
+
this.v5r_1 = tmp0_serialDesc;
|
|
1046
|
+
}
|
|
1047
|
+
protoOf($serializer_2).w5r = function (encoder, value) {
|
|
1048
|
+
var tmp0_desc = this.v5r_1;
|
|
1049
|
+
var tmp1_output = encoder.a4c(tmp0_desc);
|
|
1050
|
+
var tmp2_cached = Companion_getInstance_6().u5r_1;
|
|
1051
|
+
tmp1_output.o4d(tmp0_desc, 0, value.x5r_1);
|
|
1052
|
+
tmp1_output.j4d(tmp0_desc, 1, value.y5r_1);
|
|
1053
|
+
tmp1_output.q4d(tmp0_desc, 2, tmp2_cached[2], value.z5r_1);
|
|
1054
|
+
tmp1_output.j4d(tmp0_desc, 3, value.a5s_1);
|
|
1055
|
+
tmp1_output.j4d(tmp0_desc, 4, value.b5s_1);
|
|
1056
|
+
tmp1_output.g4d(tmp0_desc, 5, value.c5s_1);
|
|
1057
|
+
tmp1_output.s4d(tmp0_desc, 6, StringSerializer_getInstance(), value.d5s_1);
|
|
1058
|
+
tmp1_output.s4d(tmp0_desc, 7, $serializer_getInstance_2(), value.e5s_1);
|
|
1059
|
+
tmp1_output.b4c(tmp0_desc);
|
|
1060
|
+
};
|
|
1061
|
+
protoOf($serializer_2).n48 = function (encoder, value) {
|
|
1062
|
+
return this.w5r(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1063
|
+
};
|
|
1064
|
+
protoOf($serializer_2).o48 = function (decoder) {
|
|
1065
|
+
var tmp0_desc = this.v5r_1;
|
|
1067
1066
|
var tmp1_flag = true;
|
|
1068
1067
|
var tmp2_index = 0;
|
|
1069
1068
|
var tmp3_bitMask0 = 0;
|
|
@@ -1075,76 +1074,76 @@
|
|
|
1075
1074
|
var tmp9_local5 = false;
|
|
1076
1075
|
var tmp10_local6 = null;
|
|
1077
1076
|
var tmp11_local7 = null;
|
|
1078
|
-
var tmp12_input = decoder.
|
|
1079
|
-
var tmp13_cached = Companion_getInstance_6().
|
|
1080
|
-
if (tmp12_input.
|
|
1081
|
-
tmp4_local0 = tmp12_input.
|
|
1077
|
+
var tmp12_input = decoder.a4c(tmp0_desc);
|
|
1078
|
+
var tmp13_cached = Companion_getInstance_6().u5r_1;
|
|
1079
|
+
if (tmp12_input.p4c()) {
|
|
1080
|
+
tmp4_local0 = tmp12_input.k4c(tmp0_desc, 0);
|
|
1082
1081
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1083
|
-
tmp5_local1 = tmp12_input.
|
|
1082
|
+
tmp5_local1 = tmp12_input.f4c(tmp0_desc, 1);
|
|
1084
1083
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1085
|
-
tmp6_local2 = tmp12_input.
|
|
1084
|
+
tmp6_local2 = tmp12_input.m4c(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1086
1085
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1087
|
-
tmp7_local3 = tmp12_input.
|
|
1086
|
+
tmp7_local3 = tmp12_input.f4c(tmp0_desc, 3);
|
|
1088
1087
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1089
|
-
tmp8_local4 = tmp12_input.
|
|
1088
|
+
tmp8_local4 = tmp12_input.f4c(tmp0_desc, 4);
|
|
1090
1089
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1091
|
-
tmp9_local5 = tmp12_input.
|
|
1090
|
+
tmp9_local5 = tmp12_input.c4c(tmp0_desc, 5);
|
|
1092
1091
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1093
|
-
tmp10_local6 = tmp12_input.
|
|
1092
|
+
tmp10_local6 = tmp12_input.o4c(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1094
1093
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1095
|
-
tmp11_local7 = tmp12_input.
|
|
1094
|
+
tmp11_local7 = tmp12_input.o4c(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1096
1095
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1097
1096
|
} else
|
|
1098
1097
|
while (tmp1_flag) {
|
|
1099
|
-
tmp2_index = tmp12_input.
|
|
1098
|
+
tmp2_index = tmp12_input.q4c(tmp0_desc);
|
|
1100
1099
|
switch (tmp2_index) {
|
|
1101
1100
|
case -1:
|
|
1102
1101
|
tmp1_flag = false;
|
|
1103
1102
|
break;
|
|
1104
1103
|
case 0:
|
|
1105
|
-
tmp4_local0 = tmp12_input.
|
|
1104
|
+
tmp4_local0 = tmp12_input.k4c(tmp0_desc, 0);
|
|
1106
1105
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1107
1106
|
break;
|
|
1108
1107
|
case 1:
|
|
1109
|
-
tmp5_local1 = tmp12_input.
|
|
1108
|
+
tmp5_local1 = tmp12_input.f4c(tmp0_desc, 1);
|
|
1110
1109
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1111
1110
|
break;
|
|
1112
1111
|
case 2:
|
|
1113
|
-
tmp6_local2 = tmp12_input.
|
|
1112
|
+
tmp6_local2 = tmp12_input.m4c(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1114
1113
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1115
1114
|
break;
|
|
1116
1115
|
case 3:
|
|
1117
|
-
tmp7_local3 = tmp12_input.
|
|
1116
|
+
tmp7_local3 = tmp12_input.f4c(tmp0_desc, 3);
|
|
1118
1117
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1119
1118
|
break;
|
|
1120
1119
|
case 4:
|
|
1121
|
-
tmp8_local4 = tmp12_input.
|
|
1120
|
+
tmp8_local4 = tmp12_input.f4c(tmp0_desc, 4);
|
|
1122
1121
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1123
1122
|
break;
|
|
1124
1123
|
case 5:
|
|
1125
|
-
tmp9_local5 = tmp12_input.
|
|
1124
|
+
tmp9_local5 = tmp12_input.c4c(tmp0_desc, 5);
|
|
1126
1125
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1127
1126
|
break;
|
|
1128
1127
|
case 6:
|
|
1129
|
-
tmp10_local6 = tmp12_input.
|
|
1128
|
+
tmp10_local6 = tmp12_input.o4c(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1130
1129
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1131
1130
|
break;
|
|
1132
1131
|
case 7:
|
|
1133
|
-
tmp11_local7 = tmp12_input.
|
|
1132
|
+
tmp11_local7 = tmp12_input.o4c(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1134
1133
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1135
1134
|
break;
|
|
1136
1135
|
default:
|
|
1137
1136
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1138
1137
|
}
|
|
1139
1138
|
}
|
|
1140
|
-
tmp12_input.
|
|
1139
|
+
tmp12_input.b4c(tmp0_desc);
|
|
1141
1140
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1142
1141
|
};
|
|
1143
|
-
protoOf($serializer_2).
|
|
1144
|
-
return this.
|
|
1142
|
+
protoOf($serializer_2).m48 = function () {
|
|
1143
|
+
return this.v5r_1;
|
|
1145
1144
|
};
|
|
1146
|
-
protoOf($serializer_2).
|
|
1147
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1145
|
+
protoOf($serializer_2).d4k = function () {
|
|
1146
|
+
var tmp0_cached = Companion_getInstance_6().u5r_1;
|
|
1148
1147
|
// Inline function 'kotlin.arrayOf' call
|
|
1149
1148
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1150
1149
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1158,16 +1157,16 @@
|
|
|
1158
1157
|
}
|
|
1159
1158
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1160
1159
|
if (!(255 === (255 & seen0))) {
|
|
1161
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1160
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().v5r_1);
|
|
1162
1161
|
}
|
|
1163
|
-
$this.
|
|
1164
|
-
$this.
|
|
1165
|
-
$this.
|
|
1166
|
-
$this.
|
|
1167
|
-
$this.
|
|
1168
|
-
$this.
|
|
1169
|
-
$this.
|
|
1170
|
-
$this.
|
|
1162
|
+
$this.x5r_1 = apiKey;
|
|
1163
|
+
$this.y5r_1 = n;
|
|
1164
|
+
$this.z5r_1 = length;
|
|
1165
|
+
$this.a5s_1 = min;
|
|
1166
|
+
$this.b5s_1 = max;
|
|
1167
|
+
$this.c5s_1 = replacement;
|
|
1168
|
+
$this.d5s_1 = ticketId;
|
|
1169
|
+
$this.e5s_1 = userData;
|
|
1171
1170
|
return $this;
|
|
1172
1171
|
}
|
|
1173
1172
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1175,27 +1174,27 @@
|
|
|
1175
1174
|
}
|
|
1176
1175
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1177
1176
|
Companion_getInstance_6();
|
|
1178
|
-
this.
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1177
|
+
this.x5r_1 = apiKey;
|
|
1178
|
+
this.y5r_1 = n;
|
|
1179
|
+
this.z5r_1 = length;
|
|
1180
|
+
this.a5s_1 = min;
|
|
1181
|
+
this.b5s_1 = max;
|
|
1182
|
+
this.c5s_1 = replacement;
|
|
1183
|
+
this.d5s_1 = ticketId;
|
|
1184
|
+
this.e5s_1 = userData;
|
|
1186
1185
|
}
|
|
1187
1186
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1188
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1187
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.x5r_1 + ', n=' + this.y5r_1 + ', length=' + toString(this.z5r_1) + ', min=' + this.a5s_1 + ', max=' + this.b5s_1 + ', replacement=' + this.c5s_1 + ', ticketId=' + this.d5s_1 + ', userData=' + toString_0(this.e5s_1) + ')';
|
|
1189
1188
|
};
|
|
1190
1189
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1191
|
-
var result = getStringHashCode(this.
|
|
1190
|
+
var result = getStringHashCode(this.x5r_1);
|
|
1191
|
+
result = imul(result, 31) + this.y5r_1 | 0;
|
|
1192
|
+
result = imul(result, 31) + hashCode(this.z5r_1) | 0;
|
|
1193
|
+
result = imul(result, 31) + this.a5s_1 | 0;
|
|
1192
1194
|
result = imul(result, 31) + this.b5s_1 | 0;
|
|
1193
|
-
result = imul(result, 31) +
|
|
1194
|
-
result = imul(result, 31) + this.d5s_1 | 0;
|
|
1195
|
-
result = imul(result, 31) + this.e5s_1 | 0;
|
|
1196
|
-
result = imul(result, 31) + getBooleanHashCode(this.f5s_1) | 0;
|
|
1197
|
-
result = imul(result, 31) + (this.g5s_1 == null ? 0 : getStringHashCode(this.g5s_1)) | 0;
|
|
1198
|
-
result = imul(result, 31) + (this.h5s_1 == null ? 0 : this.h5s_1.hashCode()) | 0;
|
|
1195
|
+
result = imul(result, 31) + getBooleanHashCode(this.c5s_1) | 0;
|
|
1196
|
+
result = imul(result, 31) + (this.d5s_1 == null ? 0 : getStringHashCode(this.d5s_1)) | 0;
|
|
1197
|
+
result = imul(result, 31) + (this.e5s_1 == null ? 0 : this.e5s_1.hashCode()) | 0;
|
|
1199
1198
|
return result;
|
|
1200
1199
|
};
|
|
1201
1200
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1204,21 +1203,21 @@
|
|
|
1204
1203
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1205
1204
|
return false;
|
|
1206
1205
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1207
|
-
if (!(this.
|
|
1206
|
+
if (!(this.x5r_1 === tmp0_other_with_cast.x5r_1))
|
|
1208
1207
|
return false;
|
|
1209
|
-
if (!(this.
|
|
1208
|
+
if (!(this.y5r_1 === tmp0_other_with_cast.y5r_1))
|
|
1210
1209
|
return false;
|
|
1211
|
-
if (!equals(this.
|
|
1210
|
+
if (!equals(this.z5r_1, tmp0_other_with_cast.z5r_1))
|
|
1212
1211
|
return false;
|
|
1213
|
-
if (!(this.
|
|
1212
|
+
if (!(this.a5s_1 === tmp0_other_with_cast.a5s_1))
|
|
1214
1213
|
return false;
|
|
1215
|
-
if (!(this.
|
|
1214
|
+
if (!(this.b5s_1 === tmp0_other_with_cast.b5s_1))
|
|
1216
1215
|
return false;
|
|
1217
|
-
if (!(this.
|
|
1216
|
+
if (!(this.c5s_1 === tmp0_other_with_cast.c5s_1))
|
|
1218
1217
|
return false;
|
|
1219
|
-
if (!(this.
|
|
1218
|
+
if (!(this.d5s_1 == tmp0_other_with_cast.d5s_1))
|
|
1220
1219
|
return false;
|
|
1221
|
-
if (!equals(this.
|
|
1220
|
+
if (!equals(this.e5s_1, tmp0_other_with_cast.e5s_1))
|
|
1222
1221
|
return false;
|
|
1223
1222
|
return true;
|
|
1224
1223
|
};
|
|
@@ -1231,59 +1230,59 @@
|
|
|
1231
1230
|
function $serializer_3() {
|
|
1232
1231
|
$serializer_instance_2 = this;
|
|
1233
1232
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1234
|
-
tmp0_serialDesc.
|
|
1235
|
-
tmp0_serialDesc.
|
|
1236
|
-
this.
|
|
1237
|
-
}
|
|
1238
|
-
protoOf($serializer_3).
|
|
1239
|
-
var tmp0_desc = this.
|
|
1240
|
-
var tmp1_output = encoder.
|
|
1241
|
-
tmp1_output.
|
|
1242
|
-
tmp1_output.
|
|
1243
|
-
tmp1_output.
|
|
1244
|
-
};
|
|
1245
|
-
protoOf($serializer_3).
|
|
1246
|
-
return this.
|
|
1247
|
-
};
|
|
1248
|
-
protoOf($serializer_3).
|
|
1249
|
-
var tmp0_desc = this.
|
|
1233
|
+
tmp0_serialDesc.o4j('id', false);
|
|
1234
|
+
tmp0_serialDesc.o4j('count', false);
|
|
1235
|
+
this.f5s_1 = tmp0_serialDesc;
|
|
1236
|
+
}
|
|
1237
|
+
protoOf($serializer_3).g5s = function (encoder, value) {
|
|
1238
|
+
var tmp0_desc = this.f5s_1;
|
|
1239
|
+
var tmp1_output = encoder.a4c(tmp0_desc);
|
|
1240
|
+
tmp1_output.o4d(tmp0_desc, 0, value.h5s_1);
|
|
1241
|
+
tmp1_output.j4d(tmp0_desc, 1, value.i5s_1);
|
|
1242
|
+
tmp1_output.b4c(tmp0_desc);
|
|
1243
|
+
};
|
|
1244
|
+
protoOf($serializer_3).n48 = function (encoder, value) {
|
|
1245
|
+
return this.g5s(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1246
|
+
};
|
|
1247
|
+
protoOf($serializer_3).o48 = function (decoder) {
|
|
1248
|
+
var tmp0_desc = this.f5s_1;
|
|
1250
1249
|
var tmp1_flag = true;
|
|
1251
1250
|
var tmp2_index = 0;
|
|
1252
1251
|
var tmp3_bitMask0 = 0;
|
|
1253
1252
|
var tmp4_local0 = null;
|
|
1254
1253
|
var tmp5_local1 = 0;
|
|
1255
|
-
var tmp6_input = decoder.
|
|
1256
|
-
if (tmp6_input.
|
|
1257
|
-
tmp4_local0 = tmp6_input.
|
|
1254
|
+
var tmp6_input = decoder.a4c(tmp0_desc);
|
|
1255
|
+
if (tmp6_input.p4c()) {
|
|
1256
|
+
tmp4_local0 = tmp6_input.k4c(tmp0_desc, 0);
|
|
1258
1257
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1259
|
-
tmp5_local1 = tmp6_input.
|
|
1258
|
+
tmp5_local1 = tmp6_input.f4c(tmp0_desc, 1);
|
|
1260
1259
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1261
1260
|
} else
|
|
1262
1261
|
while (tmp1_flag) {
|
|
1263
|
-
tmp2_index = tmp6_input.
|
|
1262
|
+
tmp2_index = tmp6_input.q4c(tmp0_desc);
|
|
1264
1263
|
switch (tmp2_index) {
|
|
1265
1264
|
case -1:
|
|
1266
1265
|
tmp1_flag = false;
|
|
1267
1266
|
break;
|
|
1268
1267
|
case 0:
|
|
1269
|
-
tmp4_local0 = tmp6_input.
|
|
1268
|
+
tmp4_local0 = tmp6_input.k4c(tmp0_desc, 0);
|
|
1270
1269
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1271
1270
|
break;
|
|
1272
1271
|
case 1:
|
|
1273
|
-
tmp5_local1 = tmp6_input.
|
|
1272
|
+
tmp5_local1 = tmp6_input.f4c(tmp0_desc, 1);
|
|
1274
1273
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1275
1274
|
break;
|
|
1276
1275
|
default:
|
|
1277
1276
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1278
1277
|
}
|
|
1279
1278
|
}
|
|
1280
|
-
tmp6_input.
|
|
1279
|
+
tmp6_input.b4c(tmp0_desc);
|
|
1281
1280
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1282
1281
|
};
|
|
1283
|
-
protoOf($serializer_3).
|
|
1284
|
-
return this.
|
|
1282
|
+
protoOf($serializer_3).m48 = function () {
|
|
1283
|
+
return this.f5s_1;
|
|
1285
1284
|
};
|
|
1286
|
-
protoOf($serializer_3).
|
|
1285
|
+
protoOf($serializer_3).d4k = function () {
|
|
1287
1286
|
// Inline function 'kotlin.arrayOf' call
|
|
1288
1287
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1289
1288
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1297,25 +1296,25 @@
|
|
|
1297
1296
|
}
|
|
1298
1297
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1299
1298
|
if (!(3 === (3 & seen0))) {
|
|
1300
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1299
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().f5s_1);
|
|
1301
1300
|
}
|
|
1302
|
-
$this.
|
|
1303
|
-
$this.
|
|
1301
|
+
$this.h5s_1 = id;
|
|
1302
|
+
$this.i5s_1 = count;
|
|
1304
1303
|
return $this;
|
|
1305
1304
|
}
|
|
1306
1305
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1307
1306
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1308
1307
|
}
|
|
1309
1308
|
function CardDecksUserDataDto(id, count) {
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1309
|
+
this.h5s_1 = id;
|
|
1310
|
+
this.i5s_1 = count;
|
|
1312
1311
|
}
|
|
1313
1312
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1314
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1313
|
+
return 'CardDecksUserDataDto(id=' + this.h5s_1 + ', count=' + this.i5s_1 + ')';
|
|
1315
1314
|
};
|
|
1316
1315
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1317
|
-
var result = getStringHashCode(this.
|
|
1318
|
-
result = imul(result, 31) + this.
|
|
1316
|
+
var result = getStringHashCode(this.h5s_1);
|
|
1317
|
+
result = imul(result, 31) + this.i5s_1 | 0;
|
|
1319
1318
|
return result;
|
|
1320
1319
|
};
|
|
1321
1320
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1324,15 +1323,15 @@
|
|
|
1324
1323
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1325
1324
|
return false;
|
|
1326
1325
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1327
|
-
if (!(this.
|
|
1326
|
+
if (!(this.h5s_1 === tmp0_other_with_cast.h5s_1))
|
|
1328
1327
|
return false;
|
|
1329
|
-
if (!(this.
|
|
1328
|
+
if (!(this.i5s_1 === tmp0_other_with_cast.i5s_1))
|
|
1330
1329
|
return false;
|
|
1331
1330
|
return true;
|
|
1332
1331
|
};
|
|
1333
1332
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1334
1333
|
$serializer_4.call($this);
|
|
1335
|
-
$this.
|
|
1334
|
+
$this.k5s_1 = typeSerial0;
|
|
1336
1335
|
return $this;
|
|
1337
1336
|
}
|
|
1338
1337
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1341,16 +1340,16 @@
|
|
|
1341
1340
|
function Companion_5() {
|
|
1342
1341
|
Companion_instance_7 = this;
|
|
1343
1342
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1344
|
-
tmp0_serialDesc.
|
|
1345
|
-
tmp0_serialDesc.
|
|
1346
|
-
tmp0_serialDesc.
|
|
1347
|
-
this.
|
|
1343
|
+
tmp0_serialDesc.o4j('jsonrpc', false);
|
|
1344
|
+
tmp0_serialDesc.o4j('result', false);
|
|
1345
|
+
tmp0_serialDesc.o4j('id', false);
|
|
1346
|
+
this.l5s_1 = tmp0_serialDesc;
|
|
1348
1347
|
}
|
|
1349
|
-
protoOf(Companion_5).
|
|
1348
|
+
protoOf(Companion_5).o5r = function (typeSerial0) {
|
|
1350
1349
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1351
1350
|
};
|
|
1352
|
-
protoOf(Companion_5).
|
|
1353
|
-
return this.
|
|
1351
|
+
protoOf(Companion_5).o4k = function (typeParamsSerializers) {
|
|
1352
|
+
return this.o5r(typeParamsSerializers[0]);
|
|
1354
1353
|
};
|
|
1355
1354
|
var Companion_instance_7;
|
|
1356
1355
|
function Companion_getInstance_8() {
|
|
@@ -1360,86 +1359,86 @@
|
|
|
1360
1359
|
}
|
|
1361
1360
|
function $serializer_4() {
|
|
1362
1361
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1363
|
-
tmp0_serialDesc.
|
|
1364
|
-
tmp0_serialDesc.
|
|
1365
|
-
tmp0_serialDesc.
|
|
1366
|
-
this.
|
|
1367
|
-
}
|
|
1368
|
-
protoOf($serializer_4).
|
|
1369
|
-
var tmp0_desc = this.
|
|
1370
|
-
var tmp1_output = encoder.
|
|
1371
|
-
tmp1_output.
|
|
1372
|
-
tmp1_output.
|
|
1373
|
-
tmp1_output.
|
|
1374
|
-
tmp1_output.
|
|
1375
|
-
};
|
|
1376
|
-
protoOf($serializer_4).
|
|
1377
|
-
return this.
|
|
1378
|
-
};
|
|
1379
|
-
protoOf($serializer_4).
|
|
1380
|
-
var tmp0_desc = this.
|
|
1362
|
+
tmp0_serialDesc.o4j('jsonrpc', false);
|
|
1363
|
+
tmp0_serialDesc.o4j('result', false);
|
|
1364
|
+
tmp0_serialDesc.o4j('id', false);
|
|
1365
|
+
this.j5s_1 = tmp0_serialDesc;
|
|
1366
|
+
}
|
|
1367
|
+
protoOf($serializer_4).m5s = function (encoder, value) {
|
|
1368
|
+
var tmp0_desc = this.j5s_1;
|
|
1369
|
+
var tmp1_output = encoder.a4c(tmp0_desc);
|
|
1370
|
+
tmp1_output.o4d(tmp0_desc, 0, value.n5s_1);
|
|
1371
|
+
tmp1_output.q4d(tmp0_desc, 1, this.k5s_1, value.o5s_1);
|
|
1372
|
+
tmp1_output.o4d(tmp0_desc, 2, value.p5s_1);
|
|
1373
|
+
tmp1_output.b4c(tmp0_desc);
|
|
1374
|
+
};
|
|
1375
|
+
protoOf($serializer_4).n48 = function (encoder, value) {
|
|
1376
|
+
return this.m5s(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1377
|
+
};
|
|
1378
|
+
protoOf($serializer_4).o48 = function (decoder) {
|
|
1379
|
+
var tmp0_desc = this.j5s_1;
|
|
1381
1380
|
var tmp1_flag = true;
|
|
1382
1381
|
var tmp2_index = 0;
|
|
1383
1382
|
var tmp3_bitMask0 = 0;
|
|
1384
1383
|
var tmp4_local0 = null;
|
|
1385
1384
|
var tmp5_local1 = null;
|
|
1386
1385
|
var tmp6_local2 = null;
|
|
1387
|
-
var tmp7_input = decoder.
|
|
1388
|
-
if (tmp7_input.
|
|
1389
|
-
tmp4_local0 = tmp7_input.
|
|
1386
|
+
var tmp7_input = decoder.a4c(tmp0_desc);
|
|
1387
|
+
if (tmp7_input.p4c()) {
|
|
1388
|
+
tmp4_local0 = tmp7_input.k4c(tmp0_desc, 0);
|
|
1390
1389
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1391
|
-
tmp5_local1 = tmp7_input.
|
|
1390
|
+
tmp5_local1 = tmp7_input.m4c(tmp0_desc, 1, this.k5s_1, tmp5_local1);
|
|
1392
1391
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1393
|
-
tmp6_local2 = tmp7_input.
|
|
1392
|
+
tmp6_local2 = tmp7_input.k4c(tmp0_desc, 2);
|
|
1394
1393
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1395
1394
|
} else
|
|
1396
1395
|
while (tmp1_flag) {
|
|
1397
|
-
tmp2_index = tmp7_input.
|
|
1396
|
+
tmp2_index = tmp7_input.q4c(tmp0_desc);
|
|
1398
1397
|
switch (tmp2_index) {
|
|
1399
1398
|
case -1:
|
|
1400
1399
|
tmp1_flag = false;
|
|
1401
1400
|
break;
|
|
1402
1401
|
case 0:
|
|
1403
|
-
tmp4_local0 = tmp7_input.
|
|
1402
|
+
tmp4_local0 = tmp7_input.k4c(tmp0_desc, 0);
|
|
1404
1403
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1405
1404
|
break;
|
|
1406
1405
|
case 1:
|
|
1407
|
-
tmp5_local1 = tmp7_input.
|
|
1406
|
+
tmp5_local1 = tmp7_input.m4c(tmp0_desc, 1, this.k5s_1, tmp5_local1);
|
|
1408
1407
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1409
1408
|
break;
|
|
1410
1409
|
case 2:
|
|
1411
|
-
tmp6_local2 = tmp7_input.
|
|
1410
|
+
tmp6_local2 = tmp7_input.k4c(tmp0_desc, 2);
|
|
1412
1411
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1413
1412
|
break;
|
|
1414
1413
|
default:
|
|
1415
1414
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1416
1415
|
}
|
|
1417
1416
|
}
|
|
1418
|
-
tmp7_input.
|
|
1417
|
+
tmp7_input.b4c(tmp0_desc);
|
|
1419
1418
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1420
1419
|
};
|
|
1421
|
-
protoOf($serializer_4).
|
|
1422
|
-
return this.
|
|
1420
|
+
protoOf($serializer_4).m48 = function () {
|
|
1421
|
+
return this.j5s_1;
|
|
1423
1422
|
};
|
|
1424
|
-
protoOf($serializer_4).
|
|
1423
|
+
protoOf($serializer_4).d4k = function () {
|
|
1425
1424
|
// Inline function 'kotlin.arrayOf' call
|
|
1426
1425
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1427
1426
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1428
|
-
return [StringSerializer_getInstance(), this.
|
|
1427
|
+
return [StringSerializer_getInstance(), this.k5s_1, StringSerializer_getInstance()];
|
|
1429
1428
|
};
|
|
1430
|
-
protoOf($serializer_4).
|
|
1429
|
+
protoOf($serializer_4).e4k = function () {
|
|
1431
1430
|
// Inline function 'kotlin.arrayOf' call
|
|
1432
1431
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1433
1432
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1434
|
-
return [this.
|
|
1433
|
+
return [this.k5s_1];
|
|
1435
1434
|
};
|
|
1436
1435
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1437
1436
|
if (!(7 === (7 & seen0))) {
|
|
1438
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1437
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().l5s_1);
|
|
1439
1438
|
}
|
|
1440
|
-
$this.
|
|
1441
|
-
$this.
|
|
1442
|
-
$this.
|
|
1439
|
+
$this.n5s_1 = jsonrpc;
|
|
1440
|
+
$this.o5s_1 = result;
|
|
1441
|
+
$this.p5s_1 = id;
|
|
1443
1442
|
return $this;
|
|
1444
1443
|
}
|
|
1445
1444
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1447,17 +1446,17 @@
|
|
|
1447
1446
|
}
|
|
1448
1447
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1449
1448
|
Companion_getInstance_8();
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1449
|
+
this.n5s_1 = jsonrpc;
|
|
1450
|
+
this.o5s_1 = result;
|
|
1451
|
+
this.p5s_1 = id;
|
|
1453
1452
|
}
|
|
1454
1453
|
protoOf(RandomResponseDto).toString = function () {
|
|
1455
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1454
|
+
return 'RandomResponseDto(jsonrpc=' + this.n5s_1 + ', result=' + toString(this.o5s_1) + ', id=' + this.p5s_1 + ')';
|
|
1456
1455
|
};
|
|
1457
1456
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1458
|
-
var result = getStringHashCode(this.
|
|
1459
|
-
result = imul(result, 31) + hashCode(this.
|
|
1460
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1457
|
+
var result = getStringHashCode(this.n5s_1);
|
|
1458
|
+
result = imul(result, 31) + hashCode(this.o5s_1) | 0;
|
|
1459
|
+
result = imul(result, 31) + getStringHashCode(this.p5s_1) | 0;
|
|
1461
1460
|
return result;
|
|
1462
1461
|
};
|
|
1463
1462
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1466,11 +1465,11 @@
|
|
|
1466
1465
|
if (!(other instanceof RandomResponseDto))
|
|
1467
1466
|
return false;
|
|
1468
1467
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1469
|
-
if (!(this.
|
|
1468
|
+
if (!(this.n5s_1 === tmp0_other_with_cast.n5s_1))
|
|
1470
1469
|
return false;
|
|
1471
|
-
if (!equals(this.
|
|
1470
|
+
if (!equals(this.o5s_1, tmp0_other_with_cast.o5s_1))
|
|
1472
1471
|
return false;
|
|
1473
|
-
if (!(this.
|
|
1472
|
+
if (!(this.p5s_1 === tmp0_other_with_cast.p5s_1))
|
|
1474
1473
|
return false;
|
|
1475
1474
|
return true;
|
|
1476
1475
|
};
|
|
@@ -1483,30 +1482,30 @@
|
|
|
1483
1482
|
function $serializer_5() {
|
|
1484
1483
|
$serializer_instance_3 = this;
|
|
1485
1484
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1486
|
-
tmp0_serialDesc.
|
|
1487
|
-
tmp0_serialDesc.
|
|
1488
|
-
tmp0_serialDesc.
|
|
1489
|
-
tmp0_serialDesc.
|
|
1490
|
-
tmp0_serialDesc.
|
|
1491
|
-
tmp0_serialDesc.
|
|
1492
|
-
this.
|
|
1493
|
-
}
|
|
1494
|
-
protoOf($serializer_5).
|
|
1495
|
-
var tmp0_desc = this.
|
|
1496
|
-
var tmp1_output = encoder.
|
|
1497
|
-
tmp1_output.
|
|
1498
|
-
tmp1_output.
|
|
1499
|
-
tmp1_output.
|
|
1500
|
-
tmp1_output.
|
|
1501
|
-
tmp1_output.
|
|
1502
|
-
tmp1_output.
|
|
1503
|
-
tmp1_output.
|
|
1504
|
-
};
|
|
1505
|
-
protoOf($serializer_5).
|
|
1506
|
-
return this.
|
|
1507
|
-
};
|
|
1508
|
-
protoOf($serializer_5).
|
|
1509
|
-
var tmp0_desc = this.
|
|
1485
|
+
tmp0_serialDesc.o4j('random', false);
|
|
1486
|
+
tmp0_serialDesc.o4j('signature', false);
|
|
1487
|
+
tmp0_serialDesc.o4j('bitsUsed', false);
|
|
1488
|
+
tmp0_serialDesc.o4j('bitsLeft', false);
|
|
1489
|
+
tmp0_serialDesc.o4j('requestsLeft', false);
|
|
1490
|
+
tmp0_serialDesc.o4j('advisoryDelay', false);
|
|
1491
|
+
this.q5s_1 = tmp0_serialDesc;
|
|
1492
|
+
}
|
|
1493
|
+
protoOf($serializer_5).r5s = function (encoder, value) {
|
|
1494
|
+
var tmp0_desc = this.q5s_1;
|
|
1495
|
+
var tmp1_output = encoder.a4c(tmp0_desc);
|
|
1496
|
+
tmp1_output.q4d(tmp0_desc, 0, $serializer_getInstance_4(), value.s5s_1);
|
|
1497
|
+
tmp1_output.s4d(tmp0_desc, 1, StringSerializer_getInstance(), value.t5s_1);
|
|
1498
|
+
tmp1_output.s4d(tmp0_desc, 2, IntSerializer_getInstance(), value.u5s_1);
|
|
1499
|
+
tmp1_output.s4d(tmp0_desc, 3, IntSerializer_getInstance(), value.v5s_1);
|
|
1500
|
+
tmp1_output.s4d(tmp0_desc, 4, IntSerializer_getInstance(), value.w5s_1);
|
|
1501
|
+
tmp1_output.s4d(tmp0_desc, 5, IntSerializer_getInstance(), value.x5s_1);
|
|
1502
|
+
tmp1_output.b4c(tmp0_desc);
|
|
1503
|
+
};
|
|
1504
|
+
protoOf($serializer_5).n48 = function (encoder, value) {
|
|
1505
|
+
return this.r5s(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1506
|
+
};
|
|
1507
|
+
protoOf($serializer_5).o48 = function (decoder) {
|
|
1508
|
+
var tmp0_desc = this.q5s_1;
|
|
1510
1509
|
var tmp1_flag = true;
|
|
1511
1510
|
var tmp2_index = 0;
|
|
1512
1511
|
var tmp3_bitMask0 = 0;
|
|
@@ -1516,62 +1515,62 @@
|
|
|
1516
1515
|
var tmp7_local3 = null;
|
|
1517
1516
|
var tmp8_local4 = null;
|
|
1518
1517
|
var tmp9_local5 = null;
|
|
1519
|
-
var tmp10_input = decoder.
|
|
1520
|
-
if (tmp10_input.
|
|
1521
|
-
tmp4_local0 = tmp10_input.
|
|
1518
|
+
var tmp10_input = decoder.a4c(tmp0_desc);
|
|
1519
|
+
if (tmp10_input.p4c()) {
|
|
1520
|
+
tmp4_local0 = tmp10_input.m4c(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1522
1521
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1523
|
-
tmp5_local1 = tmp10_input.
|
|
1522
|
+
tmp5_local1 = tmp10_input.o4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1524
1523
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1525
|
-
tmp6_local2 = tmp10_input.
|
|
1524
|
+
tmp6_local2 = tmp10_input.o4c(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1526
1525
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1527
|
-
tmp7_local3 = tmp10_input.
|
|
1526
|
+
tmp7_local3 = tmp10_input.o4c(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1528
1527
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1529
|
-
tmp8_local4 = tmp10_input.
|
|
1528
|
+
tmp8_local4 = tmp10_input.o4c(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1530
1529
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1531
|
-
tmp9_local5 = tmp10_input.
|
|
1530
|
+
tmp9_local5 = tmp10_input.o4c(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1532
1531
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1533
1532
|
} else
|
|
1534
1533
|
while (tmp1_flag) {
|
|
1535
|
-
tmp2_index = tmp10_input.
|
|
1534
|
+
tmp2_index = tmp10_input.q4c(tmp0_desc);
|
|
1536
1535
|
switch (tmp2_index) {
|
|
1537
1536
|
case -1:
|
|
1538
1537
|
tmp1_flag = false;
|
|
1539
1538
|
break;
|
|
1540
1539
|
case 0:
|
|
1541
|
-
tmp4_local0 = tmp10_input.
|
|
1540
|
+
tmp4_local0 = tmp10_input.m4c(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1542
1541
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1543
1542
|
break;
|
|
1544
1543
|
case 1:
|
|
1545
|
-
tmp5_local1 = tmp10_input.
|
|
1544
|
+
tmp5_local1 = tmp10_input.o4c(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1546
1545
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1547
1546
|
break;
|
|
1548
1547
|
case 2:
|
|
1549
|
-
tmp6_local2 = tmp10_input.
|
|
1548
|
+
tmp6_local2 = tmp10_input.o4c(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1550
1549
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1551
1550
|
break;
|
|
1552
1551
|
case 3:
|
|
1553
|
-
tmp7_local3 = tmp10_input.
|
|
1552
|
+
tmp7_local3 = tmp10_input.o4c(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1554
1553
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1555
1554
|
break;
|
|
1556
1555
|
case 4:
|
|
1557
|
-
tmp8_local4 = tmp10_input.
|
|
1556
|
+
tmp8_local4 = tmp10_input.o4c(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1558
1557
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1559
1558
|
break;
|
|
1560
1559
|
case 5:
|
|
1561
|
-
tmp9_local5 = tmp10_input.
|
|
1560
|
+
tmp9_local5 = tmp10_input.o4c(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1562
1561
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1563
1562
|
break;
|
|
1564
1563
|
default:
|
|
1565
1564
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1566
1565
|
}
|
|
1567
1566
|
}
|
|
1568
|
-
tmp10_input.
|
|
1567
|
+
tmp10_input.b4c(tmp0_desc);
|
|
1569
1568
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1570
1569
|
};
|
|
1571
|
-
protoOf($serializer_5).
|
|
1572
|
-
return this.
|
|
1570
|
+
protoOf($serializer_5).m48 = function () {
|
|
1571
|
+
return this.q5s_1;
|
|
1573
1572
|
};
|
|
1574
|
-
protoOf($serializer_5).
|
|
1573
|
+
protoOf($serializer_5).d4k = function () {
|
|
1575
1574
|
// Inline function 'kotlin.arrayOf' call
|
|
1576
1575
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1577
1576
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1585,37 +1584,37 @@
|
|
|
1585
1584
|
}
|
|
1586
1585
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1587
1586
|
if (!(63 === (63 & seen0))) {
|
|
1588
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1587
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().q5s_1);
|
|
1589
1588
|
}
|
|
1590
|
-
$this.
|
|
1591
|
-
$this.
|
|
1592
|
-
$this.
|
|
1593
|
-
$this.
|
|
1594
|
-
$this.
|
|
1595
|
-
$this.
|
|
1589
|
+
$this.s5s_1 = random;
|
|
1590
|
+
$this.t5s_1 = signature;
|
|
1591
|
+
$this.u5s_1 = bitsUsed;
|
|
1592
|
+
$this.v5s_1 = bitsLeft;
|
|
1593
|
+
$this.w5s_1 = requestsLeft;
|
|
1594
|
+
$this.x5s_1 = advisoryDelay;
|
|
1596
1595
|
return $this;
|
|
1597
1596
|
}
|
|
1598
1597
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1599
1598
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1600
1599
|
}
|
|
1601
1600
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1601
|
+
this.s5s_1 = random;
|
|
1602
|
+
this.t5s_1 = signature;
|
|
1603
|
+
this.u5s_1 = bitsUsed;
|
|
1604
|
+
this.v5s_1 = bitsLeft;
|
|
1605
|
+
this.w5s_1 = requestsLeft;
|
|
1606
|
+
this.x5s_1 = advisoryDelay;
|
|
1608
1607
|
}
|
|
1609
1608
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1610
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1609
|
+
return 'IntegerSequencesResultDto(random=' + this.s5s_1.toString() + ', signature=' + this.t5s_1 + ', bitsUsed=' + this.u5s_1 + ', bitsLeft=' + this.v5s_1 + ', requestsLeft=' + this.w5s_1 + ', advisoryDelay=' + this.x5s_1 + ')';
|
|
1611
1610
|
};
|
|
1612
1611
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1613
|
-
var result = this.
|
|
1614
|
-
result = imul(result, 31) + (this.
|
|
1612
|
+
var result = this.s5s_1.hashCode();
|
|
1613
|
+
result = imul(result, 31) + (this.t5s_1 == null ? 0 : getStringHashCode(this.t5s_1)) | 0;
|
|
1614
|
+
result = imul(result, 31) + (this.u5s_1 == null ? 0 : this.u5s_1) | 0;
|
|
1615
|
+
result = imul(result, 31) + (this.v5s_1 == null ? 0 : this.v5s_1) | 0;
|
|
1616
|
+
result = imul(result, 31) + (this.w5s_1 == null ? 0 : this.w5s_1) | 0;
|
|
1615
1617
|
result = imul(result, 31) + (this.x5s_1 == null ? 0 : this.x5s_1) | 0;
|
|
1616
|
-
result = imul(result, 31) + (this.y5s_1 == null ? 0 : this.y5s_1) | 0;
|
|
1617
|
-
result = imul(result, 31) + (this.z5s_1 == null ? 0 : this.z5s_1) | 0;
|
|
1618
|
-
result = imul(result, 31) + (this.a5t_1 == null ? 0 : this.a5t_1) | 0;
|
|
1619
1618
|
return result;
|
|
1620
1619
|
};
|
|
1621
1620
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1624,17 +1623,17 @@
|
|
|
1624
1623
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1625
1624
|
return false;
|
|
1626
1625
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1627
|
-
if (!this.
|
|
1626
|
+
if (!this.s5s_1.equals(tmp0_other_with_cast.s5s_1))
|
|
1628
1627
|
return false;
|
|
1629
|
-
if (!(this.
|
|
1628
|
+
if (!(this.t5s_1 == tmp0_other_with_cast.t5s_1))
|
|
1630
1629
|
return false;
|
|
1631
|
-
if (!(this.
|
|
1630
|
+
if (!(this.u5s_1 == tmp0_other_with_cast.u5s_1))
|
|
1632
1631
|
return false;
|
|
1633
|
-
if (!(this.
|
|
1632
|
+
if (!(this.v5s_1 == tmp0_other_with_cast.v5s_1))
|
|
1634
1633
|
return false;
|
|
1635
|
-
if (!(this.
|
|
1634
|
+
if (!(this.w5s_1 == tmp0_other_with_cast.w5s_1))
|
|
1636
1635
|
return false;
|
|
1637
|
-
if (!(this.
|
|
1636
|
+
if (!(this.x5s_1 == tmp0_other_with_cast.x5s_1))
|
|
1638
1637
|
return false;
|
|
1639
1638
|
return true;
|
|
1640
1639
|
};
|
|
@@ -1644,7 +1643,7 @@
|
|
|
1644
1643
|
// Inline function 'kotlin.arrayOf' call
|
|
1645
1644
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1646
1645
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1647
|
-
tmp.
|
|
1646
|
+
tmp.y5s_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1648
1647
|
}
|
|
1649
1648
|
var Companion_instance_9;
|
|
1650
1649
|
function Companion_getInstance_10() {
|
|
@@ -1655,74 +1654,74 @@
|
|
|
1655
1654
|
function $serializer_6() {
|
|
1656
1655
|
$serializer_instance_4 = this;
|
|
1657
1656
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1658
|
-
tmp0_serialDesc.
|
|
1659
|
-
tmp0_serialDesc.
|
|
1660
|
-
tmp0_serialDesc.
|
|
1661
|
-
this.
|
|
1662
|
-
}
|
|
1663
|
-
protoOf($serializer_6).
|
|
1664
|
-
var tmp0_desc = this.
|
|
1665
|
-
var tmp1_output = encoder.
|
|
1666
|
-
var tmp2_cached = Companion_getInstance_10().
|
|
1667
|
-
tmp1_output.
|
|
1668
|
-
tmp1_output.
|
|
1669
|
-
tmp1_output.
|
|
1670
|
-
tmp1_output.
|
|
1671
|
-
};
|
|
1672
|
-
protoOf($serializer_6).
|
|
1673
|
-
return this.
|
|
1674
|
-
};
|
|
1675
|
-
protoOf($serializer_6).
|
|
1676
|
-
var tmp0_desc = this.
|
|
1657
|
+
tmp0_serialDesc.o4j('data', false);
|
|
1658
|
+
tmp0_serialDesc.o4j('completionTime', false);
|
|
1659
|
+
tmp0_serialDesc.o4j('ticketId', false);
|
|
1660
|
+
this.z5s_1 = tmp0_serialDesc;
|
|
1661
|
+
}
|
|
1662
|
+
protoOf($serializer_6).a5t = function (encoder, value) {
|
|
1663
|
+
var tmp0_desc = this.z5s_1;
|
|
1664
|
+
var tmp1_output = encoder.a4c(tmp0_desc);
|
|
1665
|
+
var tmp2_cached = Companion_getInstance_10().y5s_1;
|
|
1666
|
+
tmp1_output.q4d(tmp0_desc, 0, tmp2_cached[0], value.b5t_1);
|
|
1667
|
+
tmp1_output.o4d(tmp0_desc, 1, value.c5t_1);
|
|
1668
|
+
tmp1_output.s4d(tmp0_desc, 2, StringSerializer_getInstance(), value.d5t_1);
|
|
1669
|
+
tmp1_output.b4c(tmp0_desc);
|
|
1670
|
+
};
|
|
1671
|
+
protoOf($serializer_6).n48 = function (encoder, value) {
|
|
1672
|
+
return this.a5t(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1673
|
+
};
|
|
1674
|
+
protoOf($serializer_6).o48 = function (decoder) {
|
|
1675
|
+
var tmp0_desc = this.z5s_1;
|
|
1677
1676
|
var tmp1_flag = true;
|
|
1678
1677
|
var tmp2_index = 0;
|
|
1679
1678
|
var tmp3_bitMask0 = 0;
|
|
1680
1679
|
var tmp4_local0 = null;
|
|
1681
1680
|
var tmp5_local1 = null;
|
|
1682
1681
|
var tmp6_local2 = null;
|
|
1683
|
-
var tmp7_input = decoder.
|
|
1684
|
-
var tmp8_cached = Companion_getInstance_10().
|
|
1685
|
-
if (tmp7_input.
|
|
1686
|
-
tmp4_local0 = tmp7_input.
|
|
1682
|
+
var tmp7_input = decoder.a4c(tmp0_desc);
|
|
1683
|
+
var tmp8_cached = Companion_getInstance_10().y5s_1;
|
|
1684
|
+
if (tmp7_input.p4c()) {
|
|
1685
|
+
tmp4_local0 = tmp7_input.m4c(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1687
1686
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1688
|
-
tmp5_local1 = tmp7_input.
|
|
1687
|
+
tmp5_local1 = tmp7_input.k4c(tmp0_desc, 1);
|
|
1689
1688
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1690
|
-
tmp6_local2 = tmp7_input.
|
|
1689
|
+
tmp6_local2 = tmp7_input.o4c(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1691
1690
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1692
1691
|
} else
|
|
1693
1692
|
while (tmp1_flag) {
|
|
1694
|
-
tmp2_index = tmp7_input.
|
|
1693
|
+
tmp2_index = tmp7_input.q4c(tmp0_desc);
|
|
1695
1694
|
switch (tmp2_index) {
|
|
1696
1695
|
case -1:
|
|
1697
1696
|
tmp1_flag = false;
|
|
1698
1697
|
break;
|
|
1699
1698
|
case 0:
|
|
1700
|
-
tmp4_local0 = tmp7_input.
|
|
1699
|
+
tmp4_local0 = tmp7_input.m4c(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1701
1700
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1702
1701
|
break;
|
|
1703
1702
|
case 1:
|
|
1704
|
-
tmp5_local1 = tmp7_input.
|
|
1703
|
+
tmp5_local1 = tmp7_input.k4c(tmp0_desc, 1);
|
|
1705
1704
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1706
1705
|
break;
|
|
1707
1706
|
case 2:
|
|
1708
|
-
tmp6_local2 = tmp7_input.
|
|
1707
|
+
tmp6_local2 = tmp7_input.o4c(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1709
1708
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1710
1709
|
break;
|
|
1711
1710
|
default:
|
|
1712
1711
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1713
1712
|
}
|
|
1714
1713
|
}
|
|
1715
|
-
tmp7_input.
|
|
1714
|
+
tmp7_input.b4c(tmp0_desc);
|
|
1716
1715
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1717
1716
|
};
|
|
1718
|
-
protoOf($serializer_6).
|
|
1719
|
-
return this.
|
|
1717
|
+
protoOf($serializer_6).m48 = function () {
|
|
1718
|
+
return this.z5s_1;
|
|
1720
1719
|
};
|
|
1721
|
-
protoOf($serializer_6).
|
|
1720
|
+
protoOf($serializer_6).d4k = function () {
|
|
1722
1721
|
// Inline function 'kotlin.arrayOf' call
|
|
1723
1722
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1724
1723
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1725
|
-
return [Companion_getInstance_10().
|
|
1724
|
+
return [Companion_getInstance_10().y5s_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1726
1725
|
};
|
|
1727
1726
|
var $serializer_instance_4;
|
|
1728
1727
|
function $serializer_getInstance_4() {
|
|
@@ -1732,11 +1731,11 @@
|
|
|
1732
1731
|
}
|
|
1733
1732
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1734
1733
|
if (!(7 === (7 & seen0))) {
|
|
1735
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1734
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().z5s_1);
|
|
1736
1735
|
}
|
|
1737
|
-
$this.
|
|
1738
|
-
$this.
|
|
1739
|
-
$this.
|
|
1736
|
+
$this.b5t_1 = data;
|
|
1737
|
+
$this.c5t_1 = completionTime;
|
|
1738
|
+
$this.d5t_1 = ticketId;
|
|
1740
1739
|
return $this;
|
|
1741
1740
|
}
|
|
1742
1741
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1745,12 +1744,12 @@
|
|
|
1745
1744
|
function IntegerSequencesDataDto() {
|
|
1746
1745
|
}
|
|
1747
1746
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1748
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1747
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.b5t_1) + ', completionTime=' + this.c5t_1 + ', ticketId=' + this.d5t_1 + ')';
|
|
1749
1748
|
};
|
|
1750
1749
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1751
|
-
var result = hashCode(this.
|
|
1752
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1753
|
-
result = imul(result, 31) + (this.
|
|
1750
|
+
var result = hashCode(this.b5t_1);
|
|
1751
|
+
result = imul(result, 31) + getStringHashCode(this.c5t_1) | 0;
|
|
1752
|
+
result = imul(result, 31) + (this.d5t_1 == null ? 0 : getStringHashCode(this.d5t_1)) | 0;
|
|
1754
1753
|
return result;
|
|
1755
1754
|
};
|
|
1756
1755
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1759,11 +1758,11 @@
|
|
|
1759
1758
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1760
1759
|
return false;
|
|
1761
1760
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1762
|
-
if (!equals(this.
|
|
1761
|
+
if (!equals(this.b5t_1, tmp0_other_with_cast.b5t_1))
|
|
1763
1762
|
return false;
|
|
1764
|
-
if (!(this.
|
|
1763
|
+
if (!(this.c5t_1 === tmp0_other_with_cast.c5t_1))
|
|
1765
1764
|
return false;
|
|
1766
|
-
if (!(this.
|
|
1765
|
+
if (!(this.d5t_1 == tmp0_other_with_cast.d5t_1))
|
|
1767
1766
|
return false;
|
|
1768
1767
|
return true;
|
|
1769
1768
|
};
|
|
@@ -1774,15 +1773,15 @@
|
|
|
1774
1773
|
}
|
|
1775
1774
|
function throwIfError($this, bodyAsJson, response, $completion) {
|
|
1776
1775
|
var tmp = new $throwIfErrorCOROUTINE$2($this, bodyAsJson, response, $completion);
|
|
1777
|
-
tmp.
|
|
1778
|
-
tmp.
|
|
1779
|
-
return tmp.
|
|
1776
|
+
tmp.g9_1 = Unit_instance;
|
|
1777
|
+
tmp.h9_1 = null;
|
|
1778
|
+
return tmp.m9();
|
|
1780
1779
|
}
|
|
1781
1780
|
function extractRandomResult($this, bodyAsJson) {
|
|
1782
1781
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1783
1782
|
}
|
|
1784
1783
|
function Companion_8() {
|
|
1785
|
-
this.
|
|
1784
|
+
this.r5t_1 = 52;
|
|
1786
1785
|
}
|
|
1787
1786
|
var Companion_instance_10;
|
|
1788
1787
|
function Companion_getInstance_11() {
|
|
@@ -1790,48 +1789,48 @@
|
|
|
1790
1789
|
}
|
|
1791
1790
|
function $getRandomCardDecksCOROUTINE$1(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1792
1791
|
CoroutineImpl.call(this, resultContinuation);
|
|
1793
|
-
this.
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1796
|
-
this.
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1799
|
-
this.
|
|
1800
|
-
}
|
|
1801
|
-
protoOf($getRandomCardDecksCOROUTINE$1).
|
|
1802
|
-
var suspendResult = this.
|
|
1792
|
+
this.a5u_1 = _this__u8e3s4;
|
|
1793
|
+
this.b5u_1 = min;
|
|
1794
|
+
this.c5u_1 = max;
|
|
1795
|
+
this.d5u_1 = decksCount;
|
|
1796
|
+
this.e5u_1 = cardsCount;
|
|
1797
|
+
this.f5u_1 = userData;
|
|
1798
|
+
this.g5u_1 = signed;
|
|
1799
|
+
}
|
|
1800
|
+
protoOf($getRandomCardDecksCOROUTINE$1).m9 = function () {
|
|
1801
|
+
var suspendResult = this.g9_1;
|
|
1803
1802
|
$sm: do
|
|
1804
1803
|
try {
|
|
1805
|
-
var tmp = this.
|
|
1804
|
+
var tmp = this.e9_1;
|
|
1806
1805
|
switch (tmp) {
|
|
1807
1806
|
case 0:
|
|
1808
|
-
this.
|
|
1809
|
-
this.
|
|
1807
|
+
this.f9_1 = 6;
|
|
1808
|
+
this.f9_1 = 5;
|
|
1810
1809
|
var tmp_0 = this;
|
|
1811
|
-
tmp_0.
|
|
1810
|
+
tmp_0.h5u_1 = this.a5u_1.q5u_1;
|
|
1812
1811
|
var tmp_1 = this;
|
|
1813
|
-
tmp_1.
|
|
1812
|
+
tmp_1.i5u_1 = this.h5u_1;
|
|
1814
1813
|
var tmp_2 = this;
|
|
1815
1814
|
var this_0 = new HttpRequestBuilder();
|
|
1816
1815
|
url(this_0, '/json-rpc/4/invoke');
|
|
1817
|
-
var tmp11_id = this.
|
|
1818
|
-
var tmp12_method = this.
|
|
1819
|
-
var tmp8_apiKey = this.
|
|
1820
|
-
var size = this.
|
|
1816
|
+
var tmp11_id = this.f5u_1.id;
|
|
1817
|
+
var tmp12_method = this.g5u_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1818
|
+
var tmp8_apiKey = this.a5u_1.r5u_1;
|
|
1819
|
+
var size = this.d5u_1;
|
|
1821
1820
|
var list = ArrayList_init_$Create$(size);
|
|
1822
1821
|
var inductionVariable = 0;
|
|
1823
1822
|
if (inductionVariable < size)
|
|
1824
1823
|
do {
|
|
1825
1824
|
var index = inductionVariable;
|
|
1826
1825
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1827
|
-
list.e(this.
|
|
1826
|
+
list.e(this.e5u_1);
|
|
1828
1827
|
}
|
|
1829
1828
|
while (inductionVariable < size);
|
|
1830
|
-
var tmp10_userData = this.
|
|
1831
|
-
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.
|
|
1829
|
+
var tmp10_userData = this.g5u_1 ? mapToDto(this.f5u_1) : null;
|
|
1830
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.d5u_1, list, this.b5u_1, this.c5u_1, false, null, tmp10_userData);
|
|
1832
1831
|
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1833
1832
|
if (body == null) {
|
|
1834
|
-
this_0.
|
|
1833
|
+
this_0.s2z_1 = NullBody_instance;
|
|
1835
1834
|
var tmp_3 = JsType_instance;
|
|
1836
1835
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1837
1836
|
var tmp_5;
|
|
@@ -1847,13 +1846,13 @@
|
|
|
1847
1846
|
}
|
|
1848
1847
|
tmp_5 = tmp_6;
|
|
1849
1848
|
}
|
|
1850
|
-
this_0.
|
|
1849
|
+
this_0.o35(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1851
1850
|
} else {
|
|
1852
1851
|
if (body instanceof OutgoingContent) {
|
|
1853
|
-
this_0.
|
|
1854
|
-
this_0.
|
|
1852
|
+
this_0.s2z_1 = body;
|
|
1853
|
+
this_0.o35(null);
|
|
1855
1854
|
} else {
|
|
1856
|
-
this_0.
|
|
1855
|
+
this_0.s2z_1 = body;
|
|
1857
1856
|
var tmp_7 = JsType_instance;
|
|
1858
1857
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1859
1858
|
var tmp_9;
|
|
@@ -1869,29 +1868,29 @@
|
|
|
1869
1868
|
}
|
|
1870
1869
|
tmp_9 = tmp_10;
|
|
1871
1870
|
}
|
|
1872
|
-
this_0.
|
|
1871
|
+
this_0.o35(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1873
1872
|
}
|
|
1874
1873
|
}
|
|
1875
1874
|
|
|
1876
|
-
tmp_2.
|
|
1877
|
-
this.
|
|
1875
|
+
tmp_2.j5u_1 = this_0;
|
|
1876
|
+
this.j5u_1.q2z_1 = Companion_getInstance().i2o_1;
|
|
1878
1877
|
var tmp_11 = this;
|
|
1879
|
-
tmp_11.
|
|
1878
|
+
tmp_11.k5u_1 = this.i5u_1;
|
|
1880
1879
|
var tmp_12 = this;
|
|
1881
|
-
tmp_12.
|
|
1882
|
-
this.
|
|
1883
|
-
suspendResult = (new HttpStatement(this.
|
|
1880
|
+
tmp_12.l5u_1 = this.j5u_1;
|
|
1881
|
+
this.e9_1 = 1;
|
|
1882
|
+
suspendResult = (new HttpStatement(this.l5u_1, this.k5u_1)).y3s(this);
|
|
1884
1883
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1885
1884
|
return suspendResult;
|
|
1886
1885
|
}
|
|
1887
1886
|
|
|
1888
1887
|
continue $sm;
|
|
1889
1888
|
case 1:
|
|
1890
|
-
this.
|
|
1889
|
+
this.m5u_1 = suspendResult;
|
|
1891
1890
|
var tmp_13 = this;
|
|
1892
|
-
tmp_13.
|
|
1893
|
-
this.
|
|
1894
|
-
var tmp_14 = this.
|
|
1891
|
+
tmp_13.n5u_1 = this.m5u_1;
|
|
1892
|
+
this.e9_1 = 2;
|
|
1893
|
+
var tmp_14 = this.n5u_1.x32();
|
|
1895
1894
|
var tmp_15 = JsType_instance;
|
|
1896
1895
|
var tmp_16 = getKClass(JsonObject);
|
|
1897
1896
|
var tmp_17;
|
|
@@ -1908,7 +1907,7 @@
|
|
|
1908
1907
|
tmp_17 = tmp_18;
|
|
1909
1908
|
}
|
|
1910
1909
|
|
|
1911
|
-
suspendResult = tmp_14.
|
|
1910
|
+
suspendResult = tmp_14.b32(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1912
1911
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1913
1912
|
return suspendResult;
|
|
1914
1913
|
}
|
|
@@ -1916,9 +1915,9 @@
|
|
|
1916
1915
|
continue $sm;
|
|
1917
1916
|
case 2:
|
|
1918
1917
|
var tmp_19 = this;
|
|
1919
|
-
tmp_19.
|
|
1920
|
-
this.
|
|
1921
|
-
suspendResult = throwIfError(this.
|
|
1918
|
+
tmp_19.o5u_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1919
|
+
this.e9_1 = 3;
|
|
1920
|
+
suspendResult = throwIfError(this.a5u_1, this.o5u_1, this.m5u_1, this);
|
|
1922
1921
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1923
1922
|
return suspendResult;
|
|
1924
1923
|
}
|
|
@@ -1926,9 +1925,9 @@
|
|
|
1926
1925
|
continue $sm;
|
|
1927
1926
|
case 3:
|
|
1928
1927
|
var tmp_20 = this;
|
|
1929
|
-
tmp_20.
|
|
1930
|
-
this.
|
|
1931
|
-
var tmp_21 = this.
|
|
1928
|
+
tmp_20.p5u_1 = this.m5u_1;
|
|
1929
|
+
this.e9_1 = 4;
|
|
1930
|
+
var tmp_21 = this.p5u_1.x32();
|
|
1932
1931
|
var tmp_22 = JsType_instance;
|
|
1933
1932
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1934
1933
|
var tmp_24;
|
|
@@ -1945,7 +1944,7 @@
|
|
|
1945
1944
|
tmp_24 = tmp_25;
|
|
1946
1945
|
}
|
|
1947
1946
|
|
|
1948
|
-
suspendResult = tmp_21.
|
|
1947
|
+
suspendResult = tmp_21.b32(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1949
1948
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1950
1949
|
return suspendResult;
|
|
1951
1950
|
}
|
|
@@ -1953,59 +1952,59 @@
|
|
|
1953
1952
|
continue $sm;
|
|
1954
1953
|
case 4:
|
|
1955
1954
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1956
|
-
var randomJson = extractRandomResult(this.
|
|
1957
|
-
var tmp14_cardDecks = responseDto.
|
|
1958
|
-
var tmp15_signature = responseDto.
|
|
1959
|
-
var tmp16_id = responseDto.
|
|
1955
|
+
var randomJson = extractRandomResult(this.a5u_1, this.o5u_1);
|
|
1956
|
+
var tmp14_cardDecks = responseDto.o5s_1.s5s_1.b5t_1;
|
|
1957
|
+
var tmp15_signature = responseDto.o5s_1.t5s_1;
|
|
1958
|
+
var tmp16_id = responseDto.p5s_1;
|
|
1960
1959
|
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1961
1960
|
case 5:
|
|
1962
|
-
this.
|
|
1963
|
-
var tmp_26 = this.
|
|
1961
|
+
this.f9_1 = 6;
|
|
1962
|
+
var tmp_26 = this.h9_1;
|
|
1964
1963
|
if (tmp_26 instanceof Error) {
|
|
1965
|
-
var error = this.
|
|
1964
|
+
var error = this.h9_1;
|
|
1966
1965
|
if (error instanceof RandomException)
|
|
1967
1966
|
throw error;
|
|
1968
1967
|
else {
|
|
1969
1968
|
throw new RandomException(100001, '[getRandomCardDeck] error, message = ' + error.message, error);
|
|
1970
1969
|
}
|
|
1971
1970
|
} else {
|
|
1972
|
-
throw this.
|
|
1971
|
+
throw this.h9_1;
|
|
1973
1972
|
}
|
|
1974
1973
|
|
|
1975
1974
|
case 6:
|
|
1976
|
-
throw this.
|
|
1975
|
+
throw this.h9_1;
|
|
1977
1976
|
}
|
|
1978
1977
|
} catch ($p) {
|
|
1979
1978
|
var e = $p;
|
|
1980
|
-
if (this.
|
|
1979
|
+
if (this.f9_1 === 6) {
|
|
1981
1980
|
throw e;
|
|
1982
1981
|
} else {
|
|
1983
|
-
this.
|
|
1984
|
-
this.
|
|
1982
|
+
this.e9_1 = this.f9_1;
|
|
1983
|
+
this.h9_1 = e;
|
|
1985
1984
|
}
|
|
1986
1985
|
}
|
|
1987
1986
|
while (true);
|
|
1988
1987
|
};
|
|
1989
1988
|
function $throwIfErrorCOROUTINE$2(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1990
1989
|
CoroutineImpl.call(this, resultContinuation);
|
|
1991
|
-
this.
|
|
1992
|
-
this.
|
|
1993
|
-
this.
|
|
1990
|
+
this.n5t_1 = _this__u8e3s4;
|
|
1991
|
+
this.o5t_1 = bodyAsJson;
|
|
1992
|
+
this.p5t_1 = response;
|
|
1994
1993
|
}
|
|
1995
|
-
protoOf($throwIfErrorCOROUTINE$2).
|
|
1996
|
-
var suspendResult = this.
|
|
1994
|
+
protoOf($throwIfErrorCOROUTINE$2).m9 = function () {
|
|
1995
|
+
var suspendResult = this.g9_1;
|
|
1997
1996
|
$sm: do
|
|
1998
1997
|
try {
|
|
1999
|
-
var tmp = this.
|
|
1998
|
+
var tmp = this.e9_1;
|
|
2000
1999
|
switch (tmp) {
|
|
2001
2000
|
case 0:
|
|
2002
|
-
this.
|
|
2003
|
-
var this_0 = this.
|
|
2004
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2001
|
+
this.f9_1 = 3;
|
|
2002
|
+
var this_0 = this.o5t_1;
|
|
2003
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).e2('error')) {
|
|
2005
2004
|
var tmp_0 = this;
|
|
2006
|
-
tmp_0.
|
|
2007
|
-
this.
|
|
2008
|
-
var tmp_1 = this.
|
|
2005
|
+
tmp_0.q5t_1 = this.p5t_1;
|
|
2006
|
+
this.e9_1 = 2;
|
|
2007
|
+
var tmp_1 = this.q5t_1.x32();
|
|
2009
2008
|
var tmp_2 = JsType_instance;
|
|
2010
2009
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2011
2010
|
var tmp_4;
|
|
@@ -2021,13 +2020,13 @@
|
|
|
2021
2020
|
}
|
|
2022
2021
|
tmp_4 = tmp_5;
|
|
2023
2022
|
}
|
|
2024
|
-
suspendResult = tmp_1.
|
|
2023
|
+
suspendResult = tmp_1.b32(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2025
2024
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2026
2025
|
return suspendResult;
|
|
2027
2026
|
}
|
|
2028
2027
|
continue $sm;
|
|
2029
2028
|
} else {
|
|
2030
|
-
this.
|
|
2029
|
+
this.e9_1 = 1;
|
|
2031
2030
|
continue $sm;
|
|
2032
2031
|
}
|
|
2033
2032
|
|
|
@@ -2035,33 +2034,33 @@
|
|
|
2035
2034
|
return Unit_instance;
|
|
2036
2035
|
case 2:
|
|
2037
2036
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2038
|
-
var tmp18_safe_receiver = errorResponseDto.
|
|
2039
|
-
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.
|
|
2040
|
-
var tmp19_safe_receiver = errorResponseDto.
|
|
2041
|
-
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.
|
|
2037
|
+
var tmp18_safe_receiver = errorResponseDto.g5r_1;
|
|
2038
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.j5r_1;
|
|
2039
|
+
var tmp19_safe_receiver = errorResponseDto.g5r_1;
|
|
2040
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.k5r_1);
|
|
2042
2041
|
case 3:
|
|
2043
|
-
throw this.
|
|
2042
|
+
throw this.h9_1;
|
|
2044
2043
|
}
|
|
2045
2044
|
} catch ($p) {
|
|
2046
2045
|
var e = $p;
|
|
2047
|
-
if (this.
|
|
2046
|
+
if (this.f9_1 === 3) {
|
|
2048
2047
|
throw e;
|
|
2049
2048
|
} else {
|
|
2050
|
-
this.
|
|
2051
|
-
this.
|
|
2049
|
+
this.e9_1 = this.f9_1;
|
|
2050
|
+
this.h9_1 = e;
|
|
2052
2051
|
}
|
|
2053
2052
|
}
|
|
2054
2053
|
while (true);
|
|
2055
2054
|
};
|
|
2056
2055
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2057
|
-
this.
|
|
2058
|
-
this.
|
|
2056
|
+
this.q5u_1 = client;
|
|
2057
|
+
this.r5u_1 = apiKey;
|
|
2059
2058
|
}
|
|
2060
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2059
|
+
protoOf(RandomOrgApiServiceImpl).e5t = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2061
2060
|
var tmp = new $getRandomCardDecksCOROUTINE$1(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2062
|
-
tmp.
|
|
2063
|
-
tmp.
|
|
2064
|
-
return tmp.
|
|
2061
|
+
tmp.g9_1 = Unit_instance;
|
|
2062
|
+
tmp.h9_1 = null;
|
|
2063
|
+
return tmp.m9();
|
|
2065
2064
|
};
|
|
2066
2065
|
function PoolParams(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown) {
|
|
2067
2066
|
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
@@ -2084,37 +2083,37 @@
|
|
|
2084
2083
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2085
2084
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2086
2085
|
}
|
|
2087
|
-
protoOf(PoolParams).
|
|
2086
|
+
protoOf(PoolParams).z5q = function () {
|
|
2088
2087
|
return this.poolSize;
|
|
2089
2088
|
};
|
|
2090
|
-
protoOf(PoolParams).
|
|
2089
|
+
protoOf(PoolParams).a5r = function () {
|
|
2091
2090
|
return this.thresholdForUsedPool;
|
|
2092
2091
|
};
|
|
2093
|
-
protoOf(PoolParams).
|
|
2092
|
+
protoOf(PoolParams).s5u = function () {
|
|
2094
2093
|
return this.requestDurationWarn;
|
|
2095
2094
|
};
|
|
2096
|
-
protoOf(PoolParams).
|
|
2095
|
+
protoOf(PoolParams).t5u = function () {
|
|
2097
2096
|
return this.failedRequestAttempts;
|
|
2098
2097
|
};
|
|
2099
|
-
protoOf(PoolParams).
|
|
2098
|
+
protoOf(PoolParams).u5u = function () {
|
|
2100
2099
|
return this.failedAttemptCooldown;
|
|
2101
2100
|
};
|
|
2102
|
-
protoOf(PoolParams).
|
|
2101
|
+
protoOf(PoolParams).pe = function () {
|
|
2103
2102
|
return this.poolSize;
|
|
2104
2103
|
};
|
|
2105
|
-
protoOf(PoolParams).
|
|
2104
|
+
protoOf(PoolParams).qe = function () {
|
|
2106
2105
|
return this.thresholdForUsedPool;
|
|
2107
2106
|
};
|
|
2108
|
-
protoOf(PoolParams).
|
|
2107
|
+
protoOf(PoolParams).hk = function () {
|
|
2109
2108
|
return this.requestDurationWarn;
|
|
2110
2109
|
};
|
|
2111
|
-
protoOf(PoolParams).
|
|
2110
|
+
protoOf(PoolParams).r5q = function () {
|
|
2112
2111
|
return this.failedRequestAttempts;
|
|
2113
2112
|
};
|
|
2114
|
-
protoOf(PoolParams).
|
|
2113
|
+
protoOf(PoolParams).v5u = function () {
|
|
2115
2114
|
return this.failedAttemptCooldown;
|
|
2116
2115
|
};
|
|
2117
|
-
protoOf(PoolParams).
|
|
2116
|
+
protoOf(PoolParams).w5u = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown) {
|
|
2118
2117
|
return new PoolParams(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2119
2118
|
};
|
|
2120
2119
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2123,7 +2122,7 @@
|
|
|
2123
2122
|
requestDurationWarn = requestDurationWarn === VOID ? this.requestDurationWarn : requestDurationWarn;
|
|
2124
2123
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2125
2124
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2126
|
-
return this.
|
|
2125
|
+
return this.w5u(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2127
2126
|
};
|
|
2128
2127
|
protoOf(PoolParams).toString = function () {
|
|
2129
2128
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', requestDurationWarn=' + this.requestDurationWarn + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2160,74 +2159,74 @@
|
|
|
2160
2159
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2161
2160
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2162
2161
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2166
|
-
this.
|
|
2162
|
+
this.a5v_1 = randomResult;
|
|
2163
|
+
this.b5v_1 = usedByGames;
|
|
2164
|
+
this.c5v_1 = reservedCardDecks;
|
|
2165
|
+
this.d5v_1 = isUsed;
|
|
2167
2166
|
}
|
|
2168
|
-
protoOf(RandomPoolValue).
|
|
2169
|
-
return this.
|
|
2167
|
+
protoOf(RandomPoolValue).e5v = function () {
|
|
2168
|
+
return this.a5v_1.j5q_1.m();
|
|
2170
2169
|
};
|
|
2171
|
-
protoOf(RandomPoolValue).
|
|
2172
|
-
if (this.
|
|
2170
|
+
protoOf(RandomPoolValue).f5v = function (minRoundsCount) {
|
|
2171
|
+
if (this.d5v_1) {
|
|
2173
2172
|
return false;
|
|
2174
2173
|
}
|
|
2175
|
-
var availableCount = this.
|
|
2174
|
+
var availableCount = this.e5v() - this.c5v_1 | 0;
|
|
2176
2175
|
return availableCount >= minRoundsCount;
|
|
2177
2176
|
};
|
|
2178
|
-
protoOf(RandomPoolValue).
|
|
2179
|
-
var lastReservedCardDeckIndex = this.
|
|
2177
|
+
protoOf(RandomPoolValue).g5v = function (gameId, reservedCardDecks, thresholdForUsedPool) {
|
|
2178
|
+
var lastReservedCardDeckIndex = this.c5v_1 - 1 | 0;
|
|
2180
2179
|
// Inline function 'kotlin.apply' call
|
|
2181
|
-
var this_0 = toMutableMap(this.
|
|
2180
|
+
var this_0 = toMutableMap(this.b5v_1);
|
|
2182
2181
|
// Inline function 'kotlin.contracts.contract' call
|
|
2183
2182
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2184
|
-
this_0.
|
|
2183
|
+
this_0.j2(gameId, lastReservedCardDeckIndex + 1 | 0);
|
|
2185
2184
|
var newNewUsedBy = toMap(this_0);
|
|
2186
|
-
var newReservedCardDecks = this.
|
|
2187
|
-
return this.
|
|
2185
|
+
var newReservedCardDecks = this.c5v_1 + reservedCardDecks | 0;
|
|
2186
|
+
return this.h5v(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > this.e5v());
|
|
2188
2187
|
};
|
|
2189
|
-
protoOf(RandomPoolValue).
|
|
2190
|
-
var currentCardDeckIndex = getValue(this.
|
|
2188
|
+
protoOf(RandomPoolValue).i5v = function (gameId) {
|
|
2189
|
+
var currentCardDeckIndex = getValue(this.b5v_1, gameId);
|
|
2191
2190
|
var tmp;
|
|
2192
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2191
|
+
if (currentCardDeckIndex === get_lastIndex(this.a5v_1.j5q_1)) {
|
|
2193
2192
|
tmp = 0;
|
|
2194
2193
|
} else {
|
|
2195
2194
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2196
2195
|
}
|
|
2197
2196
|
var newCardDeckIndex = tmp;
|
|
2198
2197
|
// Inline function 'kotlin.apply' call
|
|
2199
|
-
var this_0 = toMutableMap(this.
|
|
2198
|
+
var this_0 = toMutableMap(this.b5v_1);
|
|
2200
2199
|
// Inline function 'kotlin.contracts.contract' call
|
|
2201
2200
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2202
|
-
this_0.
|
|
2201
|
+
this_0.j2(gameId, newCardDeckIndex);
|
|
2203
2202
|
var newNewUsedBy = toMap(this_0);
|
|
2204
|
-
return this.
|
|
2203
|
+
return this.h5v(VOID, newNewUsedBy);
|
|
2205
2204
|
};
|
|
2206
|
-
protoOf(RandomPoolValue).
|
|
2207
|
-
return this.
|
|
2205
|
+
protoOf(RandomPoolValue).j5v = function (gameId, reservedCardDecks) {
|
|
2206
|
+
return this.h5v(VOID, mapOf(to(gameId, 0)), reservedCardDecks);
|
|
2208
2207
|
};
|
|
2209
|
-
protoOf(RandomPoolValue).
|
|
2210
|
-
var index = getValue(this.
|
|
2211
|
-
return new GameCardDeckData(index, this.
|
|
2208
|
+
protoOf(RandomPoolValue).k5v = function (gameId) {
|
|
2209
|
+
var index = getValue(this.b5v_1, gameId);
|
|
2210
|
+
return new GameCardDeckData(index, this.a5v_1.j5q_1.o(index));
|
|
2212
2211
|
};
|
|
2213
|
-
protoOf(RandomPoolValue).
|
|
2212
|
+
protoOf(RandomPoolValue).l5v = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2214
2213
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2215
2214
|
};
|
|
2216
|
-
protoOf(RandomPoolValue).
|
|
2217
|
-
randomResult = randomResult === VOID ? this.
|
|
2218
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2219
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2220
|
-
isUsed = isUsed === VOID ? this.
|
|
2221
|
-
return $super === VOID ? this.
|
|
2215
|
+
protoOf(RandomPoolValue).h5v = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2216
|
+
randomResult = randomResult === VOID ? this.a5v_1 : randomResult;
|
|
2217
|
+
usedByGames = usedByGames === VOID ? this.b5v_1 : usedByGames;
|
|
2218
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.c5v_1 : reservedCardDecks;
|
|
2219
|
+
isUsed = isUsed === VOID ? this.d5v_1 : isUsed;
|
|
2220
|
+
return $super === VOID ? this.l5v(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.l5v.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2222
2221
|
};
|
|
2223
2222
|
protoOf(RandomPoolValue).toString = function () {
|
|
2224
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2223
|
+
return 'RandomPoolValue(randomResult=' + this.a5v_1.toString() + ', usedByGames=' + toString(this.b5v_1) + ', reservedCardDecks=' + this.c5v_1 + ', isUsed=' + this.d5v_1 + ')';
|
|
2225
2224
|
};
|
|
2226
2225
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2227
|
-
var result = this.
|
|
2228
|
-
result = imul(result, 31) + hashCode(this.
|
|
2229
|
-
result = imul(result, 31) + this.
|
|
2230
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2226
|
+
var result = this.a5v_1.hashCode();
|
|
2227
|
+
result = imul(result, 31) + hashCode(this.b5v_1) | 0;
|
|
2228
|
+
result = imul(result, 31) + this.c5v_1 | 0;
|
|
2229
|
+
result = imul(result, 31) + getBooleanHashCode(this.d5v_1) | 0;
|
|
2231
2230
|
return result;
|
|
2232
2231
|
};
|
|
2233
2232
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2236,48 +2235,48 @@
|
|
|
2236
2235
|
if (!(other instanceof RandomPoolValue))
|
|
2237
2236
|
return false;
|
|
2238
2237
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2239
|
-
if (!this.
|
|
2238
|
+
if (!this.a5v_1.equals(tmp0_other_with_cast.a5v_1))
|
|
2240
2239
|
return false;
|
|
2241
|
-
if (!equals(this.
|
|
2240
|
+
if (!equals(this.b5v_1, tmp0_other_with_cast.b5v_1))
|
|
2242
2241
|
return false;
|
|
2243
|
-
if (!(this.
|
|
2242
|
+
if (!(this.c5v_1 === tmp0_other_with_cast.c5v_1))
|
|
2244
2243
|
return false;
|
|
2245
|
-
if (!(this.
|
|
2244
|
+
if (!(this.d5v_1 === tmp0_other_with_cast.d5v_1))
|
|
2246
2245
|
return false;
|
|
2247
2246
|
return true;
|
|
2248
2247
|
};
|
|
2249
2248
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2250
|
-
this.
|
|
2251
|
-
this.
|
|
2252
|
-
this.
|
|
2253
|
-
this.
|
|
2254
|
-
this.
|
|
2255
|
-
this.
|
|
2256
|
-
this.
|
|
2249
|
+
this.u5v_1 = this$0;
|
|
2250
|
+
this.v5v_1 = $minRoundsCountInPool;
|
|
2251
|
+
this.w5v_1 = $userData;
|
|
2252
|
+
this.x5v_1 = $min;
|
|
2253
|
+
this.y5v_1 = $max;
|
|
2254
|
+
this.z5v_1 = $cardsCount;
|
|
2255
|
+
this.a5w_1 = $signed;
|
|
2257
2256
|
CoroutineImpl.call(this, resultContinuation);
|
|
2258
2257
|
}
|
|
2259
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2260
|
-
var tmp = this.
|
|
2261
|
-
tmp.
|
|
2262
|
-
tmp.
|
|
2263
|
-
var tmp_0 = tmp.
|
|
2258
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).c5w = function ($this$withTimeout, $completion) {
|
|
2259
|
+
var tmp = this.f1f($this$withTimeout, $completion);
|
|
2260
|
+
tmp.g9_1 = Unit_instance;
|
|
2261
|
+
tmp.h9_1 = null;
|
|
2262
|
+
var tmp_0 = tmp.m9();
|
|
2264
2263
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2265
2264
|
return tmp_0;
|
|
2266
2265
|
return tmp_0;
|
|
2267
2266
|
};
|
|
2268
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2269
|
-
return this.
|
|
2267
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).w9 = function (p1, $completion) {
|
|
2268
|
+
return this.c5w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2270
2269
|
};
|
|
2271
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2272
|
-
var suspendResult = this.
|
|
2270
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).m9 = function () {
|
|
2271
|
+
var suspendResult = this.g9_1;
|
|
2273
2272
|
$sm: do
|
|
2274
2273
|
try {
|
|
2275
|
-
var tmp = this.
|
|
2274
|
+
var tmp = this.e9_1;
|
|
2276
2275
|
switch (tmp) {
|
|
2277
2276
|
case 0:
|
|
2278
|
-
this.
|
|
2279
|
-
this.
|
|
2280
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2277
|
+
this.f9_1 = 2;
|
|
2278
|
+
this.e9_1 = 1;
|
|
2279
|
+
suspendResult = getOrLoadGameCardDeckData(this.u5v_1, this.v5v_1, this.w5v_1, this.x5v_1, this.y5v_1, this.z5v_1, this.a5w_1, this);
|
|
2281
2280
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2282
2281
|
return suspendResult;
|
|
2283
2282
|
}
|
|
@@ -2287,43 +2286,43 @@
|
|
|
2287
2286
|
var cardDeckData = suspendResult;
|
|
2288
2287
|
return new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2289
2288
|
case 2:
|
|
2290
|
-
throw this.
|
|
2289
|
+
throw this.h9_1;
|
|
2291
2290
|
}
|
|
2292
2291
|
} catch ($p) {
|
|
2293
2292
|
var e = $p;
|
|
2294
|
-
if (this.
|
|
2293
|
+
if (this.f9_1 === 2) {
|
|
2295
2294
|
throw e;
|
|
2296
2295
|
} else {
|
|
2297
|
-
this.
|
|
2298
|
-
this.
|
|
2296
|
+
this.e9_1 = this.f9_1;
|
|
2297
|
+
this.h9_1 = e;
|
|
2299
2298
|
}
|
|
2300
2299
|
}
|
|
2301
2300
|
while (true);
|
|
2302
2301
|
};
|
|
2303
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).
|
|
2304
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.
|
|
2305
|
-
i.
|
|
2302
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).f1f = function ($this$withTimeout, completion) {
|
|
2303
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.u5v_1, this.v5v_1, this.w5v_1, this.x5v_1, this.y5v_1, this.z5v_1, this.a5w_1, completion);
|
|
2304
|
+
i.b5w_1 = $this$withTimeout;
|
|
2306
2305
|
return i;
|
|
2307
2306
|
};
|
|
2308
2307
|
function RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2309
2308
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2310
2309
|
var l = function ($this$withTimeout, $completion) {
|
|
2311
|
-
return i.
|
|
2310
|
+
return i.c5w($this$withTimeout, $completion);
|
|
2312
2311
|
};
|
|
2313
2312
|
l.$arity = 1;
|
|
2314
2313
|
return l;
|
|
2315
2314
|
}
|
|
2316
2315
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion) {
|
|
2317
2316
|
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$3($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion);
|
|
2318
|
-
tmp.
|
|
2319
|
-
tmp.
|
|
2320
|
-
return tmp.
|
|
2317
|
+
tmp.g9_1 = Unit_instance;
|
|
2318
|
+
tmp.h9_1 = null;
|
|
2319
|
+
return tmp.m9();
|
|
2321
2320
|
}
|
|
2322
2321
|
function requestNewCardDecks($this, min, max, cardsCount, signed, $completion) {
|
|
2323
|
-
return withContext($this.
|
|
2322
|
+
return withContext($this.w5w_1, RandomPoolProviderImpl$requestNewCardDecks$slambda_0($this, min, max, cardsCount, signed, null), $completion);
|
|
2324
2323
|
}
|
|
2325
2324
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2326
|
-
var existingCardDeck = $this.
|
|
2325
|
+
var existingCardDeck = $this.a5x_1.g2(userData.gameId);
|
|
2327
2326
|
var tmp;
|
|
2328
2327
|
if (!(existingCardDeck == null)) {
|
|
2329
2328
|
tmp = Companion_instance_2.newRound(existingCardDeck, cardDeckData);
|
|
@@ -2334,14 +2333,14 @@
|
|
|
2334
2333
|
}
|
|
2335
2334
|
function getPreparedRandomPoolValue($this, gameId, min, max, minRoundsCount, cardsCount, signed, $completion) {
|
|
2336
2335
|
var tmp = new $getPreparedRandomPoolValueCOROUTINE$4($this, gameId, min, max, minRoundsCount, cardsCount, signed, $completion);
|
|
2337
|
-
tmp.
|
|
2338
|
-
tmp.
|
|
2339
|
-
return tmp.
|
|
2336
|
+
tmp.g9_1 = Unit_instance;
|
|
2337
|
+
tmp.h9_1 = null;
|
|
2338
|
+
return tmp.m9();
|
|
2340
2339
|
}
|
|
2341
2340
|
function Companion_9() {
|
|
2342
|
-
this.
|
|
2343
|
-
this.
|
|
2344
|
-
this.
|
|
2341
|
+
this.u5x_1 = 100;
|
|
2342
|
+
this.v5x_1 = 3;
|
|
2343
|
+
this.w5x_1 = 3000;
|
|
2345
2344
|
}
|
|
2346
2345
|
var Companion_instance_11;
|
|
2347
2346
|
function Companion_getInstance_12() {
|
|
@@ -2351,181 +2350,181 @@
|
|
|
2351
2350
|
return uuid4().toString();
|
|
2352
2351
|
}
|
|
2353
2352
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2354
|
-
this.
|
|
2355
|
-
this.
|
|
2356
|
-
this.
|
|
2357
|
-
this.
|
|
2358
|
-
this.
|
|
2359
|
-
this.
|
|
2360
|
-
this.
|
|
2361
|
-
this.
|
|
2353
|
+
this.f5y_1 = this$0;
|
|
2354
|
+
this.g5y_1 = $timeoutMillis;
|
|
2355
|
+
this.h5y_1 = $minRoundsCountInPool;
|
|
2356
|
+
this.i5y_1 = $userData;
|
|
2357
|
+
this.j5y_1 = $min;
|
|
2358
|
+
this.k5y_1 = $max;
|
|
2359
|
+
this.l5y_1 = $cardsCount;
|
|
2360
|
+
this.m5y_1 = $signed;
|
|
2362
2361
|
CoroutineImpl.call(this, resultContinuation);
|
|
2363
2362
|
}
|
|
2364
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2365
|
-
var tmp = this.
|
|
2366
|
-
tmp.
|
|
2367
|
-
tmp.
|
|
2368
|
-
var tmp_0 = tmp.
|
|
2363
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).c5w = function ($this$withContext, $completion) {
|
|
2364
|
+
var tmp = this.f1f($this$withContext, $completion);
|
|
2365
|
+
tmp.g9_1 = Unit_instance;
|
|
2366
|
+
tmp.h9_1 = null;
|
|
2367
|
+
var tmp_0 = tmp.m9();
|
|
2369
2368
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2370
2369
|
return tmp_0;
|
|
2371
2370
|
return tmp_0;
|
|
2372
2371
|
};
|
|
2373
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2374
|
-
return this.
|
|
2372
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).w9 = function (p1, $completion) {
|
|
2373
|
+
return this.c5w((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2375
2374
|
};
|
|
2376
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2377
|
-
var suspendResult = this.
|
|
2375
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).m9 = function () {
|
|
2376
|
+
var suspendResult = this.g9_1;
|
|
2378
2377
|
$sm: do
|
|
2379
2378
|
try {
|
|
2380
|
-
var tmp = this.
|
|
2379
|
+
var tmp = this.e9_1;
|
|
2381
2380
|
switch (tmp) {
|
|
2382
2381
|
case 0:
|
|
2383
|
-
this.
|
|
2382
|
+
this.f9_1 = 11;
|
|
2384
2383
|
var tmp_0 = this;
|
|
2385
|
-
tmp_0.
|
|
2384
|
+
tmp_0.o5y_1 = this.f5y_1.y5w_1;
|
|
2386
2385
|
var tmp_1 = this;
|
|
2387
|
-
tmp_1.
|
|
2388
|
-
this.
|
|
2389
|
-
suspendResult = this.
|
|
2386
|
+
tmp_1.p5y_1 = null;
|
|
2387
|
+
this.e9_1 = 1;
|
|
2388
|
+
suspendResult = this.o5y_1.l1q(this.p5y_1, this);
|
|
2390
2389
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2391
2390
|
return suspendResult;
|
|
2392
2391
|
}
|
|
2393
2392
|
|
|
2394
2393
|
continue $sm;
|
|
2395
2394
|
case 1:
|
|
2396
|
-
this.
|
|
2397
|
-
this.
|
|
2395
|
+
this.q5y_1 = Unit_instance;
|
|
2396
|
+
this.e9_1 = 2;
|
|
2398
2397
|
continue $sm;
|
|
2399
2398
|
case 2:
|
|
2400
|
-
this.
|
|
2401
|
-
this.
|
|
2402
|
-
this.
|
|
2399
|
+
this.f9_1 = 10;
|
|
2400
|
+
this.r5y_1 = Unit_instance;
|
|
2401
|
+
this.e9_1 = 3;
|
|
2403
2402
|
continue $sm;
|
|
2404
2403
|
case 3:
|
|
2405
|
-
this.
|
|
2406
|
-
if (!(this.
|
|
2407
|
-
this.
|
|
2408
|
-
if (this.
|
|
2409
|
-
this.
|
|
2410
|
-
this.
|
|
2404
|
+
this.s5y_1 = this.f5y_1.b5x_1;
|
|
2405
|
+
if (!(this.s5y_1 == null) && this.f5y_1.c5x_1 >= this.f5y_1.t5w_1.failedRequestAttempts) {
|
|
2406
|
+
this.t5y_1 = this.s5y_1.e5p(this.f5y_1.t5w_1.failedAttemptCooldown);
|
|
2407
|
+
if (this.t5y_1.i5p(System_instance.q59()) > 0) {
|
|
2408
|
+
this.u5y_1 = new RandomException(VOID, 'getCardDeck cooldown ends in ' + this.t5y_1.toString());
|
|
2409
|
+
this.f5y_1.v5w_1.v('RandomPoolProvider', VOID, this.u5y_1);
|
|
2411
2410
|
var tmp_2 = this;
|
|
2412
|
-
var exception = this.
|
|
2413
|
-
tmp_2.
|
|
2414
|
-
this.
|
|
2411
|
+
var exception = this.u5y_1;
|
|
2412
|
+
tmp_2.r5y_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2413
|
+
this.e9_1 = 8;
|
|
2415
2414
|
continue $sm;
|
|
2416
2415
|
} else {
|
|
2417
|
-
this.
|
|
2416
|
+
this.e9_1 = 4;
|
|
2418
2417
|
continue $sm;
|
|
2419
2418
|
}
|
|
2420
2419
|
} else {
|
|
2421
|
-
this.
|
|
2420
|
+
this.e9_1 = 5;
|
|
2422
2421
|
continue $sm;
|
|
2423
2422
|
}
|
|
2424
2423
|
|
|
2425
2424
|
case 4:
|
|
2426
|
-
this.
|
|
2425
|
+
this.e9_1 = 5;
|
|
2427
2426
|
continue $sm;
|
|
2428
2427
|
case 5:
|
|
2429
|
-
this.
|
|
2430
|
-
this.
|
|
2431
|
-
suspendResult = withTimeout(this.
|
|
2428
|
+
this.f9_1 = 7;
|
|
2429
|
+
this.e9_1 = 6;
|
|
2430
|
+
suspendResult = withTimeout(this.g5y_1, RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this.f5y_1, this.h5y_1, this.i5y_1, this.j5y_1, this.k5y_1, this.l5y_1, this.m5y_1, null), this);
|
|
2432
2431
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2433
2432
|
return suspendResult;
|
|
2434
2433
|
}
|
|
2435
2434
|
|
|
2436
2435
|
continue $sm;
|
|
2437
2436
|
case 6:
|
|
2438
|
-
this.
|
|
2439
|
-
this.
|
|
2437
|
+
this.r5y_1 = suspendResult;
|
|
2438
|
+
this.e9_1 = 8;
|
|
2440
2439
|
continue $sm;
|
|
2441
2440
|
case 7:
|
|
2442
|
-
this.
|
|
2443
|
-
var tmp_3 = this.
|
|
2441
|
+
this.f9_1 = 10;
|
|
2442
|
+
var tmp_3 = this.h9_1;
|
|
2444
2443
|
if (tmp_3 instanceof Error) {
|
|
2445
|
-
var error = this.
|
|
2446
|
-
this.
|
|
2447
|
-
var _unary__edvuaz = this.
|
|
2448
|
-
this.
|
|
2444
|
+
var error = this.h9_1;
|
|
2445
|
+
this.f5y_1.b5x_1 = System_instance.q59();
|
|
2446
|
+
var _unary__edvuaz = this.f5y_1.c5x_1;
|
|
2447
|
+
this.f5y_1.c5x_1 = _unary__edvuaz + 1 | 0;
|
|
2449
2448
|
var exception_0 = new RandomException(VOID, 'createNewShuffledCardDeck error message = ' + error.message, error);
|
|
2450
|
-
this.
|
|
2449
|
+
this.f5y_1.v5w_1.v('RandomPoolProvider', VOID, exception_0);
|
|
2451
2450
|
var tmp_4 = this;
|
|
2452
|
-
tmp_4.
|
|
2453
|
-
this.
|
|
2451
|
+
tmp_4.r5y_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2452
|
+
this.e9_1 = 8;
|
|
2454
2453
|
continue $sm;
|
|
2455
2454
|
} else {
|
|
2456
|
-
throw this.
|
|
2455
|
+
throw this.h9_1;
|
|
2457
2456
|
}
|
|
2458
2457
|
|
|
2459
2458
|
case 8:
|
|
2460
|
-
this.
|
|
2461
|
-
this.
|
|
2462
|
-
this.
|
|
2459
|
+
this.q5y_1 = this.r5y_1;
|
|
2460
|
+
this.f9_1 = 11;
|
|
2461
|
+
this.e9_1 = 9;
|
|
2463
2462
|
continue $sm;
|
|
2464
2463
|
case 9:
|
|
2465
|
-
var tmp_5 = this.
|
|
2466
|
-
this.
|
|
2467
|
-
this.
|
|
2464
|
+
var tmp_5 = this.q5y_1;
|
|
2465
|
+
this.f9_1 = 11;
|
|
2466
|
+
this.o5y_1.w1p(this.p5y_1);
|
|
2468
2467
|
return tmp_5;
|
|
2469
2468
|
case 10:
|
|
2470
|
-
this.
|
|
2471
|
-
var t = this.
|
|
2472
|
-
this.
|
|
2469
|
+
this.f9_1 = 11;
|
|
2470
|
+
var t = this.h9_1;
|
|
2471
|
+
this.o5y_1.w1p(this.p5y_1);
|
|
2473
2472
|
throw t;
|
|
2474
2473
|
case 11:
|
|
2475
|
-
throw this.
|
|
2474
|
+
throw this.h9_1;
|
|
2476
2475
|
}
|
|
2477
2476
|
} catch ($p) {
|
|
2478
2477
|
var e = $p;
|
|
2479
|
-
if (this.
|
|
2478
|
+
if (this.f9_1 === 11) {
|
|
2480
2479
|
throw e;
|
|
2481
2480
|
} else {
|
|
2482
|
-
this.
|
|
2483
|
-
this.
|
|
2481
|
+
this.e9_1 = this.f9_1;
|
|
2482
|
+
this.h9_1 = e;
|
|
2484
2483
|
}
|
|
2485
2484
|
}
|
|
2486
2485
|
while (true);
|
|
2487
2486
|
};
|
|
2488
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2489
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2490
|
-
i.
|
|
2487
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).f1f = function ($this$withContext, completion) {
|
|
2488
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.f5y_1, this.g5y_1, this.h5y_1, this.i5y_1, this.j5y_1, this.k5y_1, this.l5y_1, this.m5y_1, completion);
|
|
2489
|
+
i.n5y_1 = $this$withContext;
|
|
2491
2490
|
return i;
|
|
2492
2491
|
};
|
|
2493
2492
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2494
2493
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2495
2494
|
var l = function ($this$withContext, $completion) {
|
|
2496
|
-
return i.
|
|
2495
|
+
return i.c5w($this$withContext, $completion);
|
|
2497
2496
|
};
|
|
2498
2497
|
l.$arity = 1;
|
|
2499
2498
|
return l;
|
|
2500
2499
|
}
|
|
2501
2500
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2502
|
-
this.
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2506
|
-
this.
|
|
2501
|
+
this.d5z_1 = this$0;
|
|
2502
|
+
this.e5z_1 = $min;
|
|
2503
|
+
this.f5z_1 = $max;
|
|
2504
|
+
this.g5z_1 = $cardsCount;
|
|
2505
|
+
this.h5z_1 = $signed;
|
|
2507
2506
|
CoroutineImpl.call(this, resultContinuation);
|
|
2508
2507
|
}
|
|
2509
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2510
|
-
var tmp = this.
|
|
2511
|
-
tmp.
|
|
2512
|
-
tmp.
|
|
2513
|
-
return tmp.
|
|
2508
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).k5z = function ($this$withContext, $completion) {
|
|
2509
|
+
var tmp = this.f1f($this$withContext, $completion);
|
|
2510
|
+
tmp.g9_1 = Unit_instance;
|
|
2511
|
+
tmp.h9_1 = null;
|
|
2512
|
+
return tmp.m9();
|
|
2514
2513
|
};
|
|
2515
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2516
|
-
return this.
|
|
2514
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).w9 = function (p1, $completion) {
|
|
2515
|
+
return this.k5z((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2517
2516
|
};
|
|
2518
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2519
|
-
var suspendResult = this.
|
|
2517
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).m9 = function () {
|
|
2518
|
+
var suspendResult = this.g9_1;
|
|
2520
2519
|
$sm: do
|
|
2521
2520
|
try {
|
|
2522
|
-
var tmp = this.
|
|
2521
|
+
var tmp = this.e9_1;
|
|
2523
2522
|
switch (tmp) {
|
|
2524
2523
|
case 0:
|
|
2525
|
-
this.
|
|
2526
|
-
this.
|
|
2527
|
-
this.
|
|
2528
|
-
suspendResult = this.
|
|
2524
|
+
this.f9_1 = 2;
|
|
2525
|
+
this.j5z_1 = System_instance.q59();
|
|
2526
|
+
this.e9_1 = 1;
|
|
2527
|
+
suspendResult = this.d5z_1.u5w_1.e5t(this.e5z_1, this.f5z_1, this.d5z_1.t5w_1.poolSize, this.g5z_1, new CardDecksRequestUserData(this.d5z_1.x5w_1(), this.d5z_1.t5w_1.poolSize), this.h5z_1, this);
|
|
2529
2528
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2530
2529
|
return suspendResult;
|
|
2531
2530
|
}
|
|
@@ -2533,64 +2532,64 @@
|
|
|
2533
2532
|
continue $sm;
|
|
2534
2533
|
case 1:
|
|
2535
2534
|
var result = suspendResult;
|
|
2536
|
-
var requestEndTime = System_instance.
|
|
2537
|
-
var requestDuration = requestEndTime.
|
|
2535
|
+
var requestEndTime = System_instance.q59();
|
|
2536
|
+
var requestDuration = requestEndTime.h5p(this.j5z_1);
|
|
2538
2537
|
Companion_getInstance_0();
|
|
2539
|
-
var this_0 = this.
|
|
2538
|
+
var this_0 = this.d5z_1.t5w_1.requestDurationWarn;
|
|
2540
2539
|
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration_0(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2541
|
-
this.
|
|
2540
|
+
this.d5z_1.v5w_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ') + ('expected = ' + this.d5z_1.t5w_1.requestDurationWarn));
|
|
2542
2541
|
}
|
|
2543
2542
|
|
|
2544
2543
|
var newCardDecksValue = new RandomPoolValue(result);
|
|
2545
2544
|
return newCardDecksValue;
|
|
2546
2545
|
case 2:
|
|
2547
|
-
throw this.
|
|
2546
|
+
throw this.h9_1;
|
|
2548
2547
|
}
|
|
2549
2548
|
} catch ($p) {
|
|
2550
2549
|
var e = $p;
|
|
2551
|
-
if (this.
|
|
2550
|
+
if (this.f9_1 === 2) {
|
|
2552
2551
|
throw e;
|
|
2553
2552
|
} else {
|
|
2554
|
-
this.
|
|
2555
|
-
this.
|
|
2553
|
+
this.e9_1 = this.f9_1;
|
|
2554
|
+
this.h9_1 = e;
|
|
2556
2555
|
}
|
|
2557
2556
|
}
|
|
2558
2557
|
while (true);
|
|
2559
2558
|
};
|
|
2560
|
-
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).
|
|
2561
|
-
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.
|
|
2562
|
-
i.
|
|
2559
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).f1f = function ($this$withContext, completion) {
|
|
2560
|
+
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.d5z_1, this.e5z_1, this.f5z_1, this.g5z_1, this.h5z_1, completion);
|
|
2561
|
+
i.i5z_1 = $this$withContext;
|
|
2563
2562
|
return i;
|
|
2564
2563
|
};
|
|
2565
2564
|
function RandomPoolProviderImpl$requestNewCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2566
2565
|
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2567
2566
|
var l = function ($this$withContext, $completion) {
|
|
2568
|
-
return i.
|
|
2567
|
+
return i.k5z($this$withContext, $completion);
|
|
2569
2568
|
};
|
|
2570
2569
|
l.$arity = 1;
|
|
2571
2570
|
return l;
|
|
2572
2571
|
}
|
|
2573
2572
|
function $getOrLoadGameCardDeckDataCOROUTINE$3(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, resultContinuation) {
|
|
2574
2573
|
CoroutineImpl.call(this, resultContinuation);
|
|
2575
|
-
this.
|
|
2576
|
-
this.
|
|
2577
|
-
this.
|
|
2578
|
-
this.
|
|
2579
|
-
this.
|
|
2580
|
-
this.
|
|
2581
|
-
this.
|
|
2582
|
-
}
|
|
2583
|
-
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).
|
|
2584
|
-
var suspendResult = this.
|
|
2574
|
+
this.l5w_1 = _this__u8e3s4;
|
|
2575
|
+
this.m5w_1 = minRoundsCountInPool;
|
|
2576
|
+
this.n5w_1 = userData;
|
|
2577
|
+
this.o5w_1 = min;
|
|
2578
|
+
this.p5w_1 = max;
|
|
2579
|
+
this.q5w_1 = cardsCount;
|
|
2580
|
+
this.r5w_1 = signed;
|
|
2581
|
+
}
|
|
2582
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).m9 = function () {
|
|
2583
|
+
var suspendResult = this.g9_1;
|
|
2585
2584
|
$sm: do
|
|
2586
2585
|
try {
|
|
2587
|
-
var tmp = this.
|
|
2586
|
+
var tmp = this.e9_1;
|
|
2588
2587
|
switch (tmp) {
|
|
2589
2588
|
case 0:
|
|
2590
|
-
this.
|
|
2591
|
-
this.
|
|
2592
|
-
this.
|
|
2593
|
-
suspendResult = getPreparedRandomPoolValue(this.
|
|
2589
|
+
this.f9_1 = 2;
|
|
2590
|
+
this.s5w_1 = this.n5w_1.gameId;
|
|
2591
|
+
this.e9_1 = 1;
|
|
2592
|
+
suspendResult = getPreparedRandomPoolValue(this.l5w_1, this.s5w_1, this.o5w_1, this.p5w_1, this.m5w_1, this.q5w_1, this.r5w_1, this);
|
|
2594
2593
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2595
2594
|
return suspendResult;
|
|
2596
2595
|
}
|
|
@@ -2598,85 +2597,85 @@
|
|
|
2598
2597
|
continue $sm;
|
|
2599
2598
|
case 1:
|
|
2600
2599
|
var randomPoolValue = suspendResult;
|
|
2601
|
-
var this_0 = this.
|
|
2602
|
-
var key = randomPoolValue.
|
|
2603
|
-
this_0.
|
|
2604
|
-
var cardDeckData = randomPoolValue.
|
|
2605
|
-
var tmp21_poolId = randomPoolValue.
|
|
2606
|
-
var tmp22_signature = randomPoolValue.
|
|
2607
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2608
|
-
var this_1 = this.
|
|
2609
|
-
var key_0 = this.
|
|
2610
|
-
this_1.
|
|
2600
|
+
var this_0 = this.l5w_1.z5w_1;
|
|
2601
|
+
var key = randomPoolValue.a5v_1.l5q_1;
|
|
2602
|
+
this_0.j2(key, randomPoolValue);
|
|
2603
|
+
var cardDeckData = randomPoolValue.k5v(this.n5w_1.gameId);
|
|
2604
|
+
var tmp21_poolId = randomPoolValue.a5v_1.l5q_1;
|
|
2605
|
+
var tmp22_signature = randomPoolValue.a5v_1.m5q_1;
|
|
2606
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.l5w_1, tmp21_poolId, tmp22_signature, cardDeckData, this.n5w_1);
|
|
2607
|
+
var this_1 = this.l5w_1.a5x_1;
|
|
2608
|
+
var key_0 = this.n5w_1.gameId;
|
|
2609
|
+
this_1.j2(key_0, cardDecksRecord);
|
|
2611
2610
|
return cardDeckData;
|
|
2612
2611
|
case 2:
|
|
2613
|
-
throw this.
|
|
2612
|
+
throw this.h9_1;
|
|
2614
2613
|
}
|
|
2615
2614
|
} catch ($p) {
|
|
2616
2615
|
var e = $p;
|
|
2617
|
-
if (this.
|
|
2616
|
+
if (this.f9_1 === 2) {
|
|
2618
2617
|
throw e;
|
|
2619
2618
|
} else {
|
|
2620
|
-
this.
|
|
2621
|
-
this.
|
|
2619
|
+
this.e9_1 = this.f9_1;
|
|
2620
|
+
this.h9_1 = e;
|
|
2622
2621
|
}
|
|
2623
2622
|
}
|
|
2624
2623
|
while (true);
|
|
2625
2624
|
};
|
|
2626
2625
|
function $getPreparedRandomPoolValueCOROUTINE$4(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, resultContinuation) {
|
|
2627
2626
|
CoroutineImpl.call(this, resultContinuation);
|
|
2628
|
-
this.
|
|
2629
|
-
this.
|
|
2630
|
-
this.
|
|
2631
|
-
this.
|
|
2632
|
-
this.
|
|
2633
|
-
this.
|
|
2634
|
-
this.
|
|
2635
|
-
}
|
|
2636
|
-
protoOf($getPreparedRandomPoolValueCOROUTINE$4).
|
|
2637
|
-
var suspendResult = this.
|
|
2627
|
+
this.l5x_1 = _this__u8e3s4;
|
|
2628
|
+
this.m5x_1 = gameId;
|
|
2629
|
+
this.n5x_1 = min;
|
|
2630
|
+
this.o5x_1 = max;
|
|
2631
|
+
this.p5x_1 = minRoundsCount;
|
|
2632
|
+
this.q5x_1 = cardsCount;
|
|
2633
|
+
this.r5x_1 = signed;
|
|
2634
|
+
}
|
|
2635
|
+
protoOf($getPreparedRandomPoolValueCOROUTINE$4).m9 = function () {
|
|
2636
|
+
var suspendResult = this.g9_1;
|
|
2638
2637
|
$sm: do
|
|
2639
2638
|
try {
|
|
2640
|
-
var tmp = this.
|
|
2639
|
+
var tmp = this.e9_1;
|
|
2641
2640
|
switch (tmp) {
|
|
2642
2641
|
case 0:
|
|
2643
|
-
this.
|
|
2642
|
+
this.f9_1 = 2;
|
|
2644
2643
|
var tmp_0 = this;
|
|
2645
|
-
var this_0 = this.
|
|
2644
|
+
var this_0 = this.l5x_1.z5w_1;
|
|
2646
2645
|
var destination = LinkedHashMap_init_$Create$();
|
|
2647
2646
|
var tmp0_iterator = this_0.s().j();
|
|
2648
2647
|
while (tmp0_iterator.k()) {
|
|
2649
2648
|
var element = tmp0_iterator.l();
|
|
2650
|
-
var this_1 = element.u().
|
|
2651
|
-
var key = this.
|
|
2652
|
-
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).
|
|
2653
|
-
destination.
|
|
2649
|
+
var this_1 = element.u().b5v_1;
|
|
2650
|
+
var key = this.m5x_1;
|
|
2651
|
+
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).e2(key)) {
|
|
2652
|
+
destination.j2(element.t(), element.u());
|
|
2654
2653
|
}
|
|
2655
2654
|
}
|
|
2656
2655
|
|
|
2657
|
-
tmp_0.
|
|
2658
|
-
if (!(this.
|
|
2659
|
-
return this.
|
|
2656
|
+
tmp_0.s5x_1 = firstOrNull(destination.s());
|
|
2657
|
+
if (!(this.s5x_1 == null)) {
|
|
2658
|
+
return this.s5x_1.u().i5v(this.m5x_1);
|
|
2660
2659
|
}
|
|
2661
2660
|
|
|
2662
2661
|
var tmp_1 = this;
|
|
2663
|
-
var this_2 = this.
|
|
2662
|
+
var this_2 = this.l5x_1.z5w_1;
|
|
2664
2663
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2665
2664
|
var tmp0_iterator_0 = this_2.s().j();
|
|
2666
2665
|
while (tmp0_iterator_0.k()) {
|
|
2667
2666
|
var element_0 = tmp0_iterator_0.l();
|
|
2668
|
-
if (element_0.u().
|
|
2669
|
-
destination_0.
|
|
2667
|
+
if (element_0.u().f5v(this.p5x_1)) {
|
|
2668
|
+
destination_0.j2(element_0.t(), element_0.u());
|
|
2670
2669
|
}
|
|
2671
2670
|
}
|
|
2672
2671
|
|
|
2673
|
-
tmp_1.
|
|
2674
|
-
if (!(this.
|
|
2675
|
-
return this.
|
|
2672
|
+
tmp_1.t5x_1 = firstOrNull(destination_0.s());
|
|
2673
|
+
if (!(this.t5x_1 == null)) {
|
|
2674
|
+
return this.t5x_1.u().g5v(this.m5x_1, this.p5x_1, this.l5x_1.t5w_1.thresholdForUsedPool);
|
|
2676
2675
|
}
|
|
2677
2676
|
|
|
2678
|
-
this.
|
|
2679
|
-
suspendResult = requestNewCardDecks(this.
|
|
2677
|
+
this.e9_1 = 1;
|
|
2678
|
+
suspendResult = requestNewCardDecks(this.l5x_1, this.n5x_1, this.o5x_1, this.q5x_1, this.r5x_1, this);
|
|
2680
2679
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2681
2680
|
return suspendResult;
|
|
2682
2681
|
}
|
|
@@ -2684,23 +2683,23 @@
|
|
|
2684
2683
|
continue $sm;
|
|
2685
2684
|
case 1:
|
|
2686
2685
|
var cardDecks = suspendResult;
|
|
2687
|
-
return cardDecks.
|
|
2686
|
+
return cardDecks.j5v(this.m5x_1, this.p5x_1);
|
|
2688
2687
|
case 2:
|
|
2689
|
-
throw this.
|
|
2688
|
+
throw this.h9_1;
|
|
2690
2689
|
}
|
|
2691
2690
|
} catch ($p) {
|
|
2692
2691
|
var e = $p;
|
|
2693
|
-
if (this.
|
|
2692
|
+
if (this.f9_1 === 2) {
|
|
2694
2693
|
throw e;
|
|
2695
2694
|
} else {
|
|
2696
|
-
this.
|
|
2697
|
-
this.
|
|
2695
|
+
this.e9_1 = this.f9_1;
|
|
2696
|
+
this.h9_1 = e;
|
|
2698
2697
|
}
|
|
2699
2698
|
}
|
|
2700
2699
|
while (true);
|
|
2701
2700
|
};
|
|
2702
2701
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2703
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2702
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().l10_1 : dispatcher;
|
|
2704
2703
|
var tmp;
|
|
2705
2704
|
if (idsProvider === VOID) {
|
|
2706
2705
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2708,91 +2707,86 @@
|
|
|
2708
2707
|
tmp = idsProvider;
|
|
2709
2708
|
}
|
|
2710
2709
|
idsProvider = tmp;
|
|
2711
|
-
this.
|
|
2712
|
-
this.
|
|
2713
|
-
this.
|
|
2714
|
-
this.
|
|
2715
|
-
this.
|
|
2716
|
-
this.
|
|
2710
|
+
this.t5w_1 = params;
|
|
2711
|
+
this.u5w_1 = randomOrgApiService;
|
|
2712
|
+
this.v5w_1 = logger;
|
|
2713
|
+
this.w5w_1 = dispatcher;
|
|
2714
|
+
this.x5w_1 = idsProvider;
|
|
2715
|
+
this.y5w_1 = Mutex();
|
|
2717
2716
|
var tmp_0 = this;
|
|
2718
2717
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2719
|
-
tmp_0.
|
|
2718
|
+
tmp_0.z5w_1 = LinkedHashMap_init_$Create$();
|
|
2720
2719
|
var tmp_1 = this;
|
|
2721
2720
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2722
|
-
tmp_1.
|
|
2723
|
-
this.
|
|
2724
|
-
this.
|
|
2721
|
+
tmp_1.a5x_1 = LinkedHashMap_init_$Create$();
|
|
2722
|
+
this.b5x_1 = null;
|
|
2723
|
+
this.c5x_1 = 0;
|
|
2725
2724
|
}
|
|
2726
|
-
protoOf(RandomPoolProviderImpl).
|
|
2727
|
-
var tmp = withContext(this.
|
|
2725
|
+
protoOf(RandomPoolProviderImpl).x5u = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) {
|
|
2726
|
+
var tmp = withContext(this.w5w_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, timeoutMillis, minRoundsCountInPool, userData, min, max, cardsCount, signed, null), $completion);
|
|
2728
2727
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2729
2728
|
return tmp;
|
|
2730
2729
|
return tmp;
|
|
2731
2730
|
};
|
|
2732
|
-
protoOf(RandomPoolProviderImpl).
|
|
2733
|
-
return this.
|
|
2731
|
+
protoOf(RandomPoolProviderImpl).l5z = function (gameId) {
|
|
2732
|
+
return this.a5x_1.g2(gameId);
|
|
2734
2733
|
};
|
|
2735
2734
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2736
|
-
return this.
|
|
2735
|
+
return this.l5z(gameId);
|
|
2737
2736
|
};
|
|
2738
|
-
protoOf(RandomPoolProviderImpl).
|
|
2739
|
-
return this.
|
|
2737
|
+
protoOf(RandomPoolProviderImpl).m5z = function (id) {
|
|
2738
|
+
return this.z5w_1.g2(id);
|
|
2740
2739
|
};
|
|
2741
2740
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2742
|
-
return this.
|
|
2741
|
+
return this.m5z(id);
|
|
2743
2742
|
};
|
|
2744
|
-
protoOf(RandomPoolProviderImpl).
|
|
2745
|
-
return this.
|
|
2743
|
+
protoOf(RandomPoolProviderImpl).n5z = function () {
|
|
2744
|
+
return this.z5w_1.m();
|
|
2746
2745
|
};
|
|
2747
2746
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2748
|
-
return this.
|
|
2747
|
+
return this.n5z();
|
|
2749
2748
|
};
|
|
2750
|
-
protoOf(RandomPoolProviderImpl).
|
|
2751
|
-
var gameCardDecksRecord = this.
|
|
2749
|
+
protoOf(RandomPoolProviderImpl).z5u = function (gameId) {
|
|
2750
|
+
var gameCardDecksRecord = this.a5x_1.g2(gameId);
|
|
2752
2751
|
if (!(gameCardDecksRecord == null)) {
|
|
2753
|
-
|
|
2754
|
-
var this_0 = this.c5x_1;
|
|
2755
|
-
var key = gameCardDecksRecord.signature;
|
|
2756
|
-
var randomPoolValue = (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).h2(key);
|
|
2752
|
+
var randomPoolValue = this.z5w_1.g2(gameCardDecksRecord.poolId);
|
|
2757
2753
|
if (!(randomPoolValue == null)) {
|
|
2758
2754
|
// Inline function 'kotlin.apply' call
|
|
2759
|
-
var
|
|
2755
|
+
var this_0 = toMutableMap(randomPoolValue.b5v_1);
|
|
2760
2756
|
// Inline function 'kotlin.contracts.contract' call
|
|
2761
2757
|
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolProviderImpl.setGameFinished.<anonymous>' call
|
|
2762
|
-
|
|
2763
|
-
var newPoolValue = randomPoolValue.
|
|
2764
|
-
if (newPoolValue.
|
|
2765
|
-
|
|
2766
|
-
var this_2 = this.c5x_1;
|
|
2767
|
-
var key_0 = gameCardDecksRecord.signature;
|
|
2768
|
-
(isInterface(this_2, KtMutableMap) ? this_2 : THROW_CCE()).l2(key_0);
|
|
2758
|
+
this_0.k2(gameId);
|
|
2759
|
+
var newPoolValue = randomPoolValue.h5v(VOID, toMap(this_0));
|
|
2760
|
+
if (newPoolValue.b5v_1.p()) {
|
|
2761
|
+
this.z5w_1.k2(gameCardDecksRecord.poolId);
|
|
2769
2762
|
} else {
|
|
2770
2763
|
// Inline function 'kotlin.collections.set' call
|
|
2771
|
-
var
|
|
2772
|
-
var
|
|
2773
|
-
|
|
2764
|
+
var this_1 = this.z5w_1;
|
|
2765
|
+
var key = gameCardDecksRecord.poolId;
|
|
2766
|
+
this_1.j2(key, newPoolValue);
|
|
2774
2767
|
}
|
|
2775
2768
|
}
|
|
2776
2769
|
}
|
|
2770
|
+
this.a5x_1.k2(gameId);
|
|
2777
2771
|
};
|
|
2778
2772
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2779
2773
|
return function ($this$defaultRequest) {
|
|
2780
2774
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2781
|
-
$this$defaultRequest.
|
|
2775
|
+
$this$defaultRequest.p38($url);
|
|
2782
2776
|
return Unit_instance;
|
|
2783
2777
|
};
|
|
2784
2778
|
}
|
|
2785
2779
|
function ApiCommonConfigs$setupLogging$1$1($externalLogger) {
|
|
2786
|
-
this.
|
|
2780
|
+
this.o5z_1 = $externalLogger;
|
|
2787
2781
|
}
|
|
2788
|
-
protoOf(ApiCommonConfigs$setupLogging$1$1).
|
|
2789
|
-
this.
|
|
2782
|
+
protoOf(ApiCommonConfigs$setupLogging$1$1).z3y = function (message) {
|
|
2783
|
+
this.o5z_1(message);
|
|
2790
2784
|
};
|
|
2791
2785
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2792
2786
|
return function ($this$install) {
|
|
2793
|
-
$this$install.
|
|
2794
|
-
$this$install.
|
|
2795
|
-
$this$install.
|
|
2787
|
+
$this$install.p40(get_DEFAULT(Companion_instance_0));
|
|
2788
|
+
$this$install.o40_1 = $config.r5z_1;
|
|
2789
|
+
$this$install.p40(new ApiCommonConfigs$setupLogging$1$1($externalLogger));
|
|
2796
2790
|
return Unit_instance;
|
|
2797
2791
|
};
|
|
2798
2792
|
}
|
|
@@ -2804,32 +2798,32 @@
|
|
|
2804
2798
|
}
|
|
2805
2799
|
function ApiCommonConfigs() {
|
|
2806
2800
|
}
|
|
2807
|
-
protoOf(ApiCommonConfigs).
|
|
2808
|
-
_this__u8e3s4.
|
|
2809
|
-
this.
|
|
2810
|
-
this.
|
|
2811
|
-
this.
|
|
2801
|
+
protoOf(ApiCommonConfigs).t5z = function (_this__u8e3s4, config, externalLogger) {
|
|
2802
|
+
_this__u8e3s4.b30_1 = true;
|
|
2803
|
+
this.u5z(_this__u8e3s4, config.p5z_1);
|
|
2804
|
+
this.v5z(_this__u8e3s4, config.s5z_1);
|
|
2805
|
+
this.w5z(_this__u8e3s4, config, externalLogger);
|
|
2812
2806
|
};
|
|
2813
|
-
protoOf(ApiCommonConfigs).
|
|
2807
|
+
protoOf(ApiCommonConfigs).u5z = function (_this__u8e3s4, url) {
|
|
2814
2808
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2815
2809
|
};
|
|
2816
|
-
protoOf(ApiCommonConfigs).
|
|
2810
|
+
protoOf(ApiCommonConfigs).w5z = function (_this__u8e3s4, config, externalLogger) {
|
|
2817
2811
|
var tmp = Companion_getInstance_1();
|
|
2818
|
-
_this__u8e3s4.
|
|
2812
|
+
_this__u8e3s4.w30(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2819
2813
|
};
|
|
2820
|
-
protoOf(ApiCommonConfigs).
|
|
2814
|
+
protoOf(ApiCommonConfigs).v5z = function (_this__u8e3s4, json) {
|
|
2821
2815
|
var tmp = Plugin_getInstance();
|
|
2822
|
-
_this__u8e3s4.
|
|
2816
|
+
_this__u8e3s4.w30(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2823
2817
|
};
|
|
2824
2818
|
var ApiCommonConfigs_instance;
|
|
2825
2819
|
function ApiCommonConfigs_getInstance() {
|
|
2826
2820
|
return ApiCommonConfigs_instance;
|
|
2827
2821
|
}
|
|
2828
2822
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2829
|
-
$this$Json.
|
|
2830
|
-
$this$Json.
|
|
2831
|
-
$this$Json.
|
|
2832
|
-
$this$Json.
|
|
2823
|
+
$this$Json.g4z_1 = true;
|
|
2824
|
+
$this$Json.f4z_1 = true;
|
|
2825
|
+
$this$Json.e4z_1 = true;
|
|
2826
|
+
$this$Json.d4z_1 = false;
|
|
2833
2827
|
return Unit_instance;
|
|
2834
2828
|
}
|
|
2835
2829
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2842,19 +2836,19 @@
|
|
|
2842
2836
|
tmp = json;
|
|
2843
2837
|
}
|
|
2844
2838
|
json = tmp;
|
|
2845
|
-
this.
|
|
2846
|
-
this.
|
|
2847
|
-
this.
|
|
2848
|
-
this.
|
|
2839
|
+
this.p5z_1 = baseUrl;
|
|
2840
|
+
this.q5z_1 = timeoutMillis;
|
|
2841
|
+
this.r5z_1 = loggingLevel;
|
|
2842
|
+
this.s5z_1 = json;
|
|
2849
2843
|
}
|
|
2850
2844
|
protoOf(HttpParams).toString = function () {
|
|
2851
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2845
|
+
return 'HttpParams(baseUrl=' + this.p5z_1 + ', timeoutMillis=' + this.q5z_1.toString() + ', loggingLevel=' + this.r5z_1.toString() + ', json=' + toString(this.s5z_1) + ')';
|
|
2852
2846
|
};
|
|
2853
2847
|
protoOf(HttpParams).hashCode = function () {
|
|
2854
|
-
var result = getStringHashCode(this.
|
|
2855
|
-
result = imul(result, 31) + this.
|
|
2856
|
-
result = imul(result, 31) + this.
|
|
2857
|
-
result = imul(result, 31) + hashCode(this.
|
|
2848
|
+
var result = getStringHashCode(this.p5z_1);
|
|
2849
|
+
result = imul(result, 31) + this.q5z_1.hashCode() | 0;
|
|
2850
|
+
result = imul(result, 31) + this.r5z_1.hashCode() | 0;
|
|
2851
|
+
result = imul(result, 31) + hashCode(this.s5z_1) | 0;
|
|
2858
2852
|
return result;
|
|
2859
2853
|
};
|
|
2860
2854
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2863,13 +2857,13 @@
|
|
|
2863
2857
|
if (!(other instanceof HttpParams))
|
|
2864
2858
|
return false;
|
|
2865
2859
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2866
|
-
if (!(this.
|
|
2860
|
+
if (!(this.p5z_1 === tmp0_other_with_cast.p5z_1))
|
|
2867
2861
|
return false;
|
|
2868
|
-
if (!this.
|
|
2862
|
+
if (!this.q5z_1.equals(tmp0_other_with_cast.q5z_1))
|
|
2869
2863
|
return false;
|
|
2870
|
-
if (!this.
|
|
2864
|
+
if (!this.r5z_1.equals(tmp0_other_with_cast.r5z_1))
|
|
2871
2865
|
return false;
|
|
2872
|
-
if (!equals(this.
|
|
2866
|
+
if (!equals(this.s5z_1, tmp0_other_with_cast.s5z_1))
|
|
2873
2867
|
return false;
|
|
2874
2868
|
return true;
|
|
2875
2869
|
};
|
|
@@ -2895,12 +2889,12 @@
|
|
|
2895
2889
|
}
|
|
2896
2890
|
function nextBytesCopyTo($this, bytes) {
|
|
2897
2891
|
try {
|
|
2898
|
-
$this.
|
|
2892
|
+
$this.z5z_1.x5p(bytes);
|
|
2899
2893
|
} catch ($p) {
|
|
2900
2894
|
if ($p instanceof SecRandomCopyException) {
|
|
2901
2895
|
var error = $p;
|
|
2902
|
-
$this.
|
|
2903
|
-
$this.
|
|
2896
|
+
$this.y5z_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2897
|
+
$this.a60_1.sg(bytes);
|
|
2904
2898
|
return Unit_instance;
|
|
2905
2899
|
} else {
|
|
2906
2900
|
throw $p;
|
|
@@ -2926,11 +2920,11 @@
|
|
|
2926
2920
|
}
|
|
2927
2921
|
function SecureRandom_0(logger) {
|
|
2928
2922
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2929
|
-
this.
|
|
2930
|
-
this.
|
|
2931
|
-
this.
|
|
2923
|
+
this.y5z_1 = logger;
|
|
2924
|
+
this.z5z_1 = new SecureRandom();
|
|
2925
|
+
this.a60_1 = Default_getInstance();
|
|
2932
2926
|
}
|
|
2933
|
-
protoOf(SecureRandom_0).
|
|
2927
|
+
protoOf(SecureRandom_0).pg = function (from, until) {
|
|
2934
2928
|
checkRangeBounds(this, from, until);
|
|
2935
2929
|
var n = until - from | 0;
|
|
2936
2930
|
if (n > 0 || n === -2147483648) {
|
|
@@ -2959,22 +2953,22 @@
|
|
|
2959
2953
|
};
|
|
2960
2954
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
2961
2955
|
return function ($this$install) {
|
|
2962
|
-
$this$install.
|
|
2963
|
-
$this$install.
|
|
2956
|
+
$this$install.n3k($config.q5z_1);
|
|
2957
|
+
$this$install.l3k($config.q5z_1);
|
|
2964
2958
|
return Unit_instance;
|
|
2965
2959
|
};
|
|
2966
2960
|
}
|
|
2967
2961
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
2968
2962
|
return function ($this$HttpClient) {
|
|
2969
2963
|
var tmp = Plugin_getInstance_0();
|
|
2970
|
-
$this$HttpClient.
|
|
2971
|
-
ApiCommonConfigs_instance.
|
|
2964
|
+
$this$HttpClient.w30(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
2965
|
+
ApiCommonConfigs_instance.t5z($this$HttpClient, $config, $externalLogger);
|
|
2972
2966
|
return Unit_instance;
|
|
2973
2967
|
};
|
|
2974
2968
|
}
|
|
2975
2969
|
function HttpFactory() {
|
|
2976
2970
|
}
|
|
2977
|
-
protoOf(HttpFactory).
|
|
2971
|
+
protoOf(HttpFactory).b60 = function (config, externalLogger) {
|
|
2978
2972
|
var tmp = Js_instance;
|
|
2979
2973
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
2980
2974
|
};
|
|
@@ -2983,14 +2977,14 @@
|
|
|
2983
2977
|
return HttpFactory_instance;
|
|
2984
2978
|
}
|
|
2985
2979
|
//region block: post-declaration
|
|
2986
|
-
protoOf($serializer).
|
|
2987
|
-
protoOf($serializer_0).
|
|
2988
|
-
protoOf($serializer_2).
|
|
2989
|
-
protoOf($serializer_3).
|
|
2990
|
-
protoOf($serializer_5).
|
|
2991
|
-
protoOf($serializer_6).
|
|
2992
|
-
protoOf(RandomPoolProviderImpl).
|
|
2993
|
-
protoOf(SecureRandom_0).
|
|
2980
|
+
protoOf($serializer).e4k = typeParametersSerializers;
|
|
2981
|
+
protoOf($serializer_0).e4k = typeParametersSerializers;
|
|
2982
|
+
protoOf($serializer_2).e4k = typeParametersSerializers;
|
|
2983
|
+
protoOf($serializer_3).e4k = typeParametersSerializers;
|
|
2984
|
+
protoOf($serializer_5).e4k = typeParametersSerializers;
|
|
2985
|
+
protoOf($serializer_6).e4k = typeParametersSerializers;
|
|
2986
|
+
protoOf(RandomPoolProviderImpl).y5u = getCardDeck$default;
|
|
2987
|
+
protoOf(SecureRandom_0).x5z = shuffle;
|
|
2994
2988
|
//endregion
|
|
2995
2989
|
//region block: init
|
|
2996
2990
|
Companion_instance_1 = new Companion();
|
|
@@ -3057,8 +3051,9 @@
|
|
|
3057
3051
|
_.$_$.g = RandomOrgApiService;
|
|
3058
3052
|
_.$_$.h = RandomPoolProviderImpl;
|
|
3059
3053
|
_.$_$.i = RandomPoolProvider;
|
|
3060
|
-
_.$_$.j =
|
|
3061
|
-
_.$_$.k =
|
|
3054
|
+
_.$_$.j = CustomRandom;
|
|
3055
|
+
_.$_$.k = SecureRandom_0;
|
|
3056
|
+
_.$_$.l = HttpFactory_instance;
|
|
3062
3057
|
//endregion
|
|
3063
3058
|
return _;
|
|
3064
3059
|
}));
|