game_client_logic_deb 1.8.347 → 1.8.349
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 +78 -78
- package/Kosi-Kodein-kodein-di.js +653 -653
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1760 -1760
- package/Logic_Debertz-core.js +1706 -1706
- package/Logic_Debertz-engine.js +14599 -14593
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +1 -0
- package/Logic_Debertz-game_client.js +4950 -4933
- package/Logic_Debertz-game_client.js.map +1 -1
- package/error-library-error.js +53 -0
- package/error-library-error.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +3043 -2809
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +24 -24
- package/kotlinx-coroutines-core.js +2887 -2887
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +356 -356
- package/kotlinx-serialization-kotlinx-serialization-core.js +2044 -2044
- package/kotlinx-serialization-kotlinx-serialization-json.js +1583 -1583
- package/ktor-ktor-client-content-negotiation.js +221 -221
- package/ktor-ktor-client-core.js +2549 -2549
- package/ktor-ktor-client-logging.js +559 -559
- package/ktor-ktor-events.js +12 -12
- package/ktor-ktor-http.js +765 -765
- package/ktor-ktor-io.js +1645 -1645
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +279 -279
- package/ktor-ktor-serialization.js +134 -134
- package/ktor-ktor-utils.js +743 -743
- package/ktor-ktor-websockets.js +59 -59
- package/package.json +1 -1
- package/random-library-crypto-rand.js +251 -0
- package/random-library-crypto-rand.js.map +1 -0
- package/random-library-secure-random.js +93 -0
- package/random-library-secure-random.js.map +1 -0
- package/raspberry-cardgame-lib-core.js +296 -296
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +107 -107
- package/raspberry-cardgame-lib-random.js +1045 -981
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/uuid.js +33 -33
- package/secure-random-secure-random.js +0 -174
- package/secure-random-secure-random.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './kotlinx-coroutines-core.js', './uuid.js', './ktor-ktor-client-logging.js', './ktor-ktor-serialization-kotlinx-json.js', './ktor-ktor-client-content-negotiation.js', './
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './kotlinx-coroutines-core.js', './uuid.js', './ktor-ktor-client-logging.js', './ktor-ktor-serialization-kotlinx-json.js', './ktor-ktor-client-content-negotiation.js', './random-library-secure-random.js', './raspberry-cardgame-lib-logger.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./uuid.js'), require('./ktor-ktor-client-logging.js'), require('./ktor-ktor-serialization-kotlinx-json.js'), require('./ktor-ktor-client-content-negotiation.js'), require('./
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./uuid.js'), require('./ktor-ktor-client-logging.js'), require('./ktor-ktor-serialization-kotlinx-json.js'), require('./ktor-ktor-client-content-negotiation.js'), require('./random-library-secure-random.js'), require('./raspberry-cardgame-lib-logger.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
@@ -37,62 +37,64 @@
|
|
|
37
37
|
if (typeof globalThis['ktor-ktor-client-content-negotiation'] === 'undefined') {
|
|
38
38
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-client-content-negotiation' was not found. Please, check whether 'ktor-ktor-client-content-negotiation' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
39
39
|
}
|
|
40
|
-
if (typeof globalThis['
|
|
41
|
-
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency '
|
|
40
|
+
if (typeof globalThis['random-library-secure-random'] === 'undefined') {
|
|
41
|
+
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'random-library-secure-random' was not found. Please, check whether 'random-library-secure-random' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
42
42
|
}
|
|
43
43
|
if (typeof globalThis['raspberry-cardgame-lib-logger'] === 'undefined') {
|
|
44
44
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'raspberry-cardgame-lib-logger' was not found. Please, check whether 'raspberry-cardgame-lib-logger' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
45
45
|
}
|
|
46
|
-
globalThis['raspberry-cardgame-lib-random'] = factory(typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-random'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-http'], globalThis['kotlinx-coroutines-core'], uuid, globalThis['ktor-ktor-client-logging'], globalThis['ktor-ktor-serialization-kotlinx-json'], globalThis['ktor-ktor-client-content-negotiation'], globalThis['
|
|
46
|
+
globalThis['raspberry-cardgame-lib-random'] = factory(typeof globalThis['raspberry-cardgame-lib-random'] === 'undefined' ? {} : globalThis['raspberry-cardgame-lib-random'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlinx-serialization-kotlinx-serialization-json'], globalThis['ktor-ktor-client-core'], globalThis['ktor-ktor-utils'], globalThis['ktor-ktor-http'], globalThis['kotlinx-coroutines-core'], uuid, globalThis['ktor-ktor-client-logging'], globalThis['ktor-ktor-serialization-kotlinx-json'], globalThis['ktor-ktor-client-content-negotiation'], globalThis['random-library-secure-random'], globalThis['raspberry-cardgame-lib-logger']);
|
|
47
47
|
}
|
|
48
48
|
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_benasher44_uuid, kotlin_io_ktor_ktor_client_logging, kotlin_io_ktor_ktor_serialization_kotlinx_json, kotlin_io_ktor_ktor_client_content_negotiation, kotlin_org_kotlincrypto_secure_random, kotlin_io_raspberryapps_cardgame_logger) {
|
|
49
49
|
'use strict';
|
|
50
50
|
//region block: imports
|
|
51
51
|
var imul = Math.imul;
|
|
52
52
|
var clz32 = Math.clz32;
|
|
53
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
54
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
55
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
53
|
+
var protoOf = kotlin_kotlin.$_$.qc;
|
|
54
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.qb;
|
|
55
|
+
var RuntimeException = kotlin_kotlin.$_$.og;
|
|
56
56
|
var VOID = kotlin_kotlin.$_$.f;
|
|
57
57
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.d2;
|
|
58
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
59
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
60
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
61
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
62
|
-
var toString = kotlin_kotlin.$_$.
|
|
63
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
64
|
-
var equals = kotlin_kotlin.$_$.
|
|
65
|
-
var listOf = kotlin_kotlin.$_$.
|
|
66
|
-
var plus = kotlin_kotlin.$_$.
|
|
67
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
68
|
-
var defineProp = kotlin_kotlin.$_$.
|
|
69
|
-
var toLong = kotlin_kotlin.$_$.
|
|
58
|
+
var captureStack = kotlin_kotlin.$_$.za;
|
|
59
|
+
var initMetadataForClass = kotlin_kotlin.$_$.pb;
|
|
60
|
+
var getStringHashCode = kotlin_kotlin.$_$.nb;
|
|
61
|
+
var THROW_CCE = kotlin_kotlin.$_$.pg;
|
|
62
|
+
var toString = kotlin_kotlin.$_$.uc;
|
|
63
|
+
var hashCode = kotlin_kotlin.$_$.ob;
|
|
64
|
+
var equals = kotlin_kotlin.$_$.ib;
|
|
65
|
+
var listOf = kotlin_kotlin.$_$.j8;
|
|
66
|
+
var plus = kotlin_kotlin.$_$.u8;
|
|
67
|
+
var emptyList = kotlin_kotlin.$_$.h7;
|
|
68
|
+
var defineProp = kotlin_kotlin.$_$.hb;
|
|
69
|
+
var toLong = kotlin_kotlin.$_$.sc;
|
|
70
70
|
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.e2;
|
|
71
71
|
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.g;
|
|
72
72
|
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v;
|
|
73
73
|
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z;
|
|
74
74
|
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.z1;
|
|
75
75
|
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
76
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
76
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ub;
|
|
77
77
|
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.j2;
|
|
78
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
79
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
80
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
78
|
+
var Unit_instance = kotlin_kotlin.$_$.j5;
|
|
79
|
+
var objectCreate = kotlin_kotlin.$_$.pc;
|
|
80
|
+
var toString_0 = kotlin_kotlin.$_$.th;
|
|
81
81
|
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t;
|
|
82
82
|
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
83
83
|
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.x1;
|
|
84
|
+
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.i;
|
|
85
|
+
var lazy = kotlin_kotlin.$_$.lh;
|
|
84
86
|
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.p;
|
|
85
|
-
var getBooleanHashCode = kotlin_kotlin.$_$.
|
|
86
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
87
|
-
var getValue = kotlin_kotlin.$_$.
|
|
87
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.kb;
|
|
88
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.sb;
|
|
89
|
+
var getValue = kotlin_kotlin.$_$.u7;
|
|
88
90
|
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
89
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
91
|
+
var CoroutineImpl = kotlin_kotlin.$_$.ra;
|
|
90
92
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
91
93
|
var url = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
92
94
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k;
|
|
93
95
|
var JsType_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
94
96
|
var getKClass = kotlin_kotlin.$_$.e;
|
|
95
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
97
|
+
var arrayOf = kotlin_kotlin.$_$.dh;
|
|
96
98
|
var createKType = kotlin_kotlin.$_$.b;
|
|
97
99
|
var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
|
|
98
100
|
var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
@@ -100,33 +102,36 @@
|
|
|
100
102
|
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
101
103
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
|
|
102
104
|
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
103
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
105
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ca;
|
|
104
106
|
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
105
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
106
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
107
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
108
|
-
var Companion_getInstance_0 = kotlin_kotlin.$_$.
|
|
109
|
-
var Long = kotlin_kotlin.$_$.
|
|
107
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.rb;
|
|
108
|
+
var KtMap = kotlin_kotlin.$_$.u5;
|
|
109
|
+
var isInterface = kotlin_kotlin.$_$.dc;
|
|
110
|
+
var Companion_getInstance_0 = kotlin_kotlin.$_$.z4;
|
|
111
|
+
var Long = kotlin_kotlin.$_$.jg;
|
|
110
112
|
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
111
|
-
var toDuration = kotlin_kotlin.$_$.
|
|
112
|
-
var Duration = kotlin_kotlin.$_$.
|
|
113
|
-
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.
|
|
114
|
-
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.
|
|
115
|
-
var emptyMap = kotlin_kotlin.$_$.
|
|
116
|
-
var toMutableMap = kotlin_kotlin.$_$.
|
|
117
|
-
var toMap = kotlin_kotlin.$_$.
|
|
118
|
-
var get_lastIndex = kotlin_kotlin.$_$.
|
|
119
|
-
var
|
|
113
|
+
var toDuration = kotlin_kotlin.$_$.vf;
|
|
114
|
+
var Duration = kotlin_kotlin.$_$.sf;
|
|
115
|
+
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.o2;
|
|
116
|
+
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.j2;
|
|
117
|
+
var emptyMap = kotlin_kotlin.$_$.i7;
|
|
118
|
+
var toMutableMap = kotlin_kotlin.$_$.s9;
|
|
119
|
+
var toMap = kotlin_kotlin.$_$.p9;
|
|
120
|
+
var get_lastIndex = kotlin_kotlin.$_$.c8;
|
|
121
|
+
var System_instance = kotlin_kotlin.$_$.y4;
|
|
122
|
+
var Duration__times_impl_sfuzvp = kotlin_kotlin.$_$.m2;
|
|
123
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
120
124
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
121
125
|
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
122
|
-
var Result = kotlin_kotlin.$_$.
|
|
126
|
+
var Result = kotlin_kotlin.$_$.ng;
|
|
123
127
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
|
|
124
|
-
var Companion_instance = kotlin_kotlin.$_$.
|
|
125
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
126
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
127
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
128
|
+
var Companion_instance = kotlin_kotlin.$_$.e5;
|
|
129
|
+
var createFailure = kotlin_kotlin.$_$.fh;
|
|
130
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.x2;
|
|
131
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.tb;
|
|
132
|
+
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.i2;
|
|
128
133
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
129
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
134
|
+
var firstOrNull = kotlin_kotlin.$_$.m7;
|
|
130
135
|
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
131
136
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
|
|
132
137
|
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
@@ -139,15 +144,14 @@
|
|
|
139
144
|
var LogLevel_ALL_getInstance = kotlin_io_ktor_ktor_client_logging.$_$.a;
|
|
140
145
|
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
141
146
|
var SecRandomCopyException = kotlin_org_kotlincrypto_secure_random.$_$.a;
|
|
142
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
143
147
|
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
144
148
|
var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
|
|
145
|
-
var Default_getInstance = kotlin_kotlin.$_$.
|
|
146
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
149
|
+
var Default_getInstance = kotlin_kotlin.$_$.v4;
|
|
150
|
+
var toMutableList = kotlin_kotlin.$_$.r9;
|
|
147
151
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.l;
|
|
148
|
-
var take = kotlin_kotlin.$_$.
|
|
149
|
-
var drop = kotlin_kotlin.$_$.
|
|
150
|
-
var reverse = kotlin_kotlin.$_$.
|
|
152
|
+
var take = kotlin_kotlin.$_$.j9;
|
|
153
|
+
var drop = kotlin_kotlin.$_$.g7;
|
|
154
|
+
var reverse = kotlin_kotlin.$_$.z8;
|
|
151
155
|
var Plugin_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
152
156
|
var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
153
157
|
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
@@ -199,7 +203,7 @@
|
|
|
199
203
|
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
200
204
|
signed = signed === VOID ? false : signed;
|
|
201
205
|
requestDurationWarnMillis = requestDurationWarnMillis === VOID ? new Long(3000, 0) : requestDurationWarnMillis;
|
|
202
|
-
return $super === VOID ? this.
|
|
206
|
+
return $super === VOID ? this.i5v(minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) : $super.i5v.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
203
207
|
}
|
|
204
208
|
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7, 5]);
|
|
205
209
|
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
@@ -214,7 +218,7 @@
|
|
|
214
218
|
initMetadataForClass(HttpParams, 'HttpParams');
|
|
215
219
|
function nextInt$default(from, until, $super) {
|
|
216
220
|
from = from === VOID ? 0 : from;
|
|
217
|
-
return $super === VOID ? this.
|
|
221
|
+
return $super === VOID ? this.lh(from, until) : $super.lh.call(this, from, until);
|
|
218
222
|
}
|
|
219
223
|
function shuffle(list) {
|
|
220
224
|
var inductionVariable = get_lastIndex(list);
|
|
@@ -222,8 +226,8 @@
|
|
|
222
226
|
do {
|
|
223
227
|
var i = inductionVariable;
|
|
224
228
|
inductionVariable = inductionVariable + -1 | 0;
|
|
225
|
-
var j = this.
|
|
226
|
-
list.
|
|
229
|
+
var j = this.lh(0, i + 1 | 0);
|
|
230
|
+
list.f2(j, list.f2(i, list.o(j)));
|
|
227
231
|
}
|
|
228
232
|
while (1 <= inductionVariable);
|
|
229
233
|
return list;
|
|
@@ -233,7 +237,7 @@
|
|
|
233
237
|
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
234
238
|
//endregion
|
|
235
239
|
function Companion() {
|
|
236
|
-
this.
|
|
240
|
+
this.f5q_1 = 100001;
|
|
237
241
|
}
|
|
238
242
|
var Companion_instance_1;
|
|
239
243
|
function Companion_getInstance_2() {
|
|
@@ -244,31 +248,31 @@
|
|
|
244
248
|
cause = cause === VOID ? null : cause;
|
|
245
249
|
RuntimeException_init_$Init$(message, cause, this);
|
|
246
250
|
captureStack(this, RandomException);
|
|
247
|
-
this.
|
|
251
|
+
this.g5q_1 = code;
|
|
248
252
|
}
|
|
249
253
|
function CardDecksRequestUserData(id, count) {
|
|
250
254
|
this.id = id;
|
|
251
255
|
this.count = count;
|
|
252
256
|
}
|
|
253
|
-
protoOf(CardDecksRequestUserData).
|
|
257
|
+
protoOf(CardDecksRequestUserData).h5o = function () {
|
|
254
258
|
return this.id;
|
|
255
259
|
};
|
|
256
|
-
protoOf(CardDecksRequestUserData).
|
|
260
|
+
protoOf(CardDecksRequestUserData).h5q = function () {
|
|
257
261
|
return this.count;
|
|
258
262
|
};
|
|
259
|
-
protoOf(CardDecksRequestUserData).
|
|
263
|
+
protoOf(CardDecksRequestUserData).kf = function () {
|
|
260
264
|
return this.id;
|
|
261
265
|
};
|
|
262
|
-
protoOf(CardDecksRequestUserData).
|
|
266
|
+
protoOf(CardDecksRequestUserData).lf = function () {
|
|
263
267
|
return this.count;
|
|
264
268
|
};
|
|
265
|
-
protoOf(CardDecksRequestUserData).
|
|
269
|
+
protoOf(CardDecksRequestUserData).i5q = function (id, count) {
|
|
266
270
|
return new CardDecksRequestUserData(id, count);
|
|
267
271
|
};
|
|
268
272
|
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
269
273
|
id = id === VOID ? this.id : id;
|
|
270
274
|
count = count === VOID ? this.count : count;
|
|
271
|
-
return $super === VOID ? this.
|
|
275
|
+
return $super === VOID ? this.i5q(id, count) : $super.i5q.call(this, id, count);
|
|
272
276
|
};
|
|
273
277
|
protoOf(CardDecksRequestUserData).toString = function () {
|
|
274
278
|
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
@@ -294,25 +298,25 @@
|
|
|
294
298
|
this.players = players;
|
|
295
299
|
this.gameId = gameId;
|
|
296
300
|
}
|
|
297
|
-
protoOf(CardDeckRequestUserData).
|
|
301
|
+
protoOf(CardDeckRequestUserData).j5q = function () {
|
|
298
302
|
return this.players;
|
|
299
303
|
};
|
|
300
|
-
protoOf(CardDeckRequestUserData).
|
|
304
|
+
protoOf(CardDeckRequestUserData).k5q = function () {
|
|
301
305
|
return this.gameId;
|
|
302
306
|
};
|
|
303
|
-
protoOf(CardDeckRequestUserData).
|
|
307
|
+
protoOf(CardDeckRequestUserData).kf = function () {
|
|
304
308
|
return this.players;
|
|
305
309
|
};
|
|
306
|
-
protoOf(CardDeckRequestUserData).
|
|
310
|
+
protoOf(CardDeckRequestUserData).lf = function () {
|
|
307
311
|
return this.gameId;
|
|
308
312
|
};
|
|
309
|
-
protoOf(CardDeckRequestUserData).
|
|
313
|
+
protoOf(CardDeckRequestUserData).l5q = function (players, gameId) {
|
|
310
314
|
return new CardDeckRequestUserData(players, gameId);
|
|
311
315
|
};
|
|
312
316
|
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
313
317
|
players = players === VOID ? this.players : players;
|
|
314
318
|
gameId = gameId === VOID ? this.gameId : gameId;
|
|
315
|
-
return $super === VOID ? this.
|
|
319
|
+
return $super === VOID ? this.l5q(players, gameId) : $super.l5q.call(this, players, gameId);
|
|
316
320
|
};
|
|
317
321
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
318
322
|
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
@@ -338,25 +342,25 @@
|
|
|
338
342
|
this.id = id;
|
|
339
343
|
this.name = name;
|
|
340
344
|
}
|
|
341
|
-
protoOf(UserInfoData).
|
|
345
|
+
protoOf(UserInfoData).h5o = function () {
|
|
342
346
|
return this.id;
|
|
343
347
|
};
|
|
344
|
-
protoOf(UserInfoData).
|
|
348
|
+
protoOf(UserInfoData).s2 = function () {
|
|
345
349
|
return this.name;
|
|
346
350
|
};
|
|
347
|
-
protoOf(UserInfoData).
|
|
351
|
+
protoOf(UserInfoData).kf = function () {
|
|
348
352
|
return this.id;
|
|
349
353
|
};
|
|
350
|
-
protoOf(UserInfoData).
|
|
354
|
+
protoOf(UserInfoData).lf = function () {
|
|
351
355
|
return this.name;
|
|
352
356
|
};
|
|
353
|
-
protoOf(UserInfoData).
|
|
357
|
+
protoOf(UserInfoData).m5q = function (id, name) {
|
|
354
358
|
return new UserInfoData(id, name);
|
|
355
359
|
};
|
|
356
360
|
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
357
361
|
id = id === VOID ? this.id : id;
|
|
358
362
|
name = name === VOID ? this.name : name;
|
|
359
|
-
return $super === VOID ? this.
|
|
363
|
+
return $super === VOID ? this.m5q(id, name) : $super.m5q.call(this, id, name);
|
|
360
364
|
};
|
|
361
365
|
protoOf(UserInfoData).toString = function () {
|
|
362
366
|
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
@@ -379,19 +383,19 @@
|
|
|
379
383
|
return true;
|
|
380
384
|
};
|
|
381
385
|
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
382
|
-
this.
|
|
383
|
-
this.
|
|
384
|
-
this.
|
|
385
|
-
this.
|
|
386
|
+
this.n5q_1 = cardDecks;
|
|
387
|
+
this.o5q_1 = responseText;
|
|
388
|
+
this.p5q_1 = id;
|
|
389
|
+
this.q5q_1 = signature;
|
|
386
390
|
}
|
|
387
391
|
protoOf(CardDeckResult).toString = function () {
|
|
388
|
-
return 'CardDeckResult(cardDecks=' + toString(this.
|
|
392
|
+
return 'CardDeckResult(cardDecks=' + toString(this.n5q_1) + ', responseText=' + this.o5q_1 + ', id=' + this.p5q_1 + ', signature=' + this.q5q_1 + ')';
|
|
389
393
|
};
|
|
390
394
|
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.
|
|
395
|
+
var result = hashCode(this.n5q_1);
|
|
396
|
+
result = imul(result, 31) + getStringHashCode(this.o5q_1) | 0;
|
|
397
|
+
result = imul(result, 31) + getStringHashCode(this.p5q_1) | 0;
|
|
398
|
+
result = imul(result, 31) + (this.q5q_1 == null ? 0 : getStringHashCode(this.q5q_1)) | 0;
|
|
395
399
|
return result;
|
|
396
400
|
};
|
|
397
401
|
protoOf(CardDeckResult).equals = function (other) {
|
|
@@ -400,13 +404,13 @@
|
|
|
400
404
|
if (!(other instanceof CardDeckResult))
|
|
401
405
|
return false;
|
|
402
406
|
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
403
|
-
if (!equals(this.
|
|
407
|
+
if (!equals(this.n5q_1, tmp0_other_with_cast.n5q_1))
|
|
404
408
|
return false;
|
|
405
|
-
if (!(this.
|
|
409
|
+
if (!(this.o5q_1 === tmp0_other_with_cast.o5q_1))
|
|
406
410
|
return false;
|
|
407
|
-
if (!(this.
|
|
411
|
+
if (!(this.p5q_1 === tmp0_other_with_cast.p5q_1))
|
|
408
412
|
return false;
|
|
409
|
-
if (!(this.
|
|
413
|
+
if (!(this.q5q_1 == tmp0_other_with_cast.q5q_1))
|
|
410
414
|
return false;
|
|
411
415
|
return true;
|
|
412
416
|
};
|
|
@@ -429,31 +433,31 @@
|
|
|
429
433
|
this.userData = userData;
|
|
430
434
|
this.rounds = rounds;
|
|
431
435
|
}
|
|
432
|
-
protoOf(GameCardDecksRecord).
|
|
436
|
+
protoOf(GameCardDecksRecord).r5q = function () {
|
|
433
437
|
return this.poolId;
|
|
434
438
|
};
|
|
435
|
-
protoOf(GameCardDecksRecord).
|
|
439
|
+
protoOf(GameCardDecksRecord).s5q = function () {
|
|
436
440
|
return this.signature;
|
|
437
441
|
};
|
|
438
|
-
protoOf(GameCardDecksRecord).
|
|
442
|
+
protoOf(GameCardDecksRecord).t5q = function () {
|
|
439
443
|
return this.userData;
|
|
440
444
|
};
|
|
441
|
-
protoOf(GameCardDecksRecord).
|
|
445
|
+
protoOf(GameCardDecksRecord).u5q = function () {
|
|
442
446
|
return this.rounds;
|
|
443
447
|
};
|
|
444
|
-
protoOf(GameCardDecksRecord).
|
|
448
|
+
protoOf(GameCardDecksRecord).kf = function () {
|
|
445
449
|
return this.poolId;
|
|
446
450
|
};
|
|
447
|
-
protoOf(GameCardDecksRecord).
|
|
451
|
+
protoOf(GameCardDecksRecord).lf = function () {
|
|
448
452
|
return this.signature;
|
|
449
453
|
};
|
|
450
|
-
protoOf(GameCardDecksRecord).
|
|
454
|
+
protoOf(GameCardDecksRecord).um = function () {
|
|
451
455
|
return this.userData;
|
|
452
456
|
};
|
|
453
|
-
protoOf(GameCardDecksRecord).
|
|
457
|
+
protoOf(GameCardDecksRecord).v5q = function () {
|
|
454
458
|
return this.rounds;
|
|
455
459
|
};
|
|
456
|
-
protoOf(GameCardDecksRecord).
|
|
460
|
+
protoOf(GameCardDecksRecord).w5q = function (poolId, signature, userData, rounds) {
|
|
457
461
|
return new GameCardDecksRecord(poolId, signature, userData, rounds);
|
|
458
462
|
};
|
|
459
463
|
protoOf(GameCardDecksRecord).copy = function (poolId, signature, userData, rounds, $super) {
|
|
@@ -461,7 +465,7 @@
|
|
|
461
465
|
signature = signature === VOID ? this.signature : signature;
|
|
462
466
|
userData = userData === VOID ? this.userData : userData;
|
|
463
467
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
464
|
-
return $super === VOID ? this.
|
|
468
|
+
return $super === VOID ? this.w5q(poolId, signature, userData, rounds) : $super.w5q.call(this, poolId, signature, userData, rounds);
|
|
465
469
|
};
|
|
466
470
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
467
471
|
return 'GameCardDecksRecord(poolId=' + this.poolId + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
@@ -493,25 +497,25 @@
|
|
|
493
497
|
this.cardDeckIndex = cardDeckIndex;
|
|
494
498
|
this.cards = cards;
|
|
495
499
|
}
|
|
496
|
-
protoOf(GameCardDeckData).
|
|
500
|
+
protoOf(GameCardDeckData).x5q = function () {
|
|
497
501
|
return this.cardDeckIndex;
|
|
498
502
|
};
|
|
499
|
-
protoOf(GameCardDeckData).
|
|
503
|
+
protoOf(GameCardDeckData).y5q = function () {
|
|
500
504
|
return this.cards;
|
|
501
505
|
};
|
|
502
|
-
protoOf(GameCardDeckData).
|
|
506
|
+
protoOf(GameCardDeckData).kf = function () {
|
|
503
507
|
return this.cardDeckIndex;
|
|
504
508
|
};
|
|
505
|
-
protoOf(GameCardDeckData).
|
|
509
|
+
protoOf(GameCardDeckData).lf = function () {
|
|
506
510
|
return this.cards;
|
|
507
511
|
};
|
|
508
|
-
protoOf(GameCardDeckData).
|
|
512
|
+
protoOf(GameCardDeckData).z5q = function (cardDeckIndex, cards) {
|
|
509
513
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
510
514
|
};
|
|
511
515
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
512
516
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
513
517
|
cards = cards === VOID ? this.cards : cards;
|
|
514
|
-
return $super === VOID ? this.
|
|
518
|
+
return $super === VOID ? this.z5q(cardDeckIndex, cards) : $super.z5q.call(this, cardDeckIndex, cards);
|
|
515
519
|
};
|
|
516
520
|
protoOf(GameCardDeckData).toString = function () {
|
|
517
521
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -538,25 +542,25 @@
|
|
|
538
542
|
this.baseUrl = baseUrl;
|
|
539
543
|
this.timeoutMillis = timeoutMillis;
|
|
540
544
|
}
|
|
541
|
-
protoOf(HttpConfig).
|
|
545
|
+
protoOf(HttpConfig).a5r = function () {
|
|
542
546
|
return this.baseUrl;
|
|
543
547
|
};
|
|
544
|
-
protoOf(HttpConfig).
|
|
548
|
+
protoOf(HttpConfig).b5r = function () {
|
|
545
549
|
return this.timeoutMillis;
|
|
546
550
|
};
|
|
547
|
-
protoOf(HttpConfig).
|
|
551
|
+
protoOf(HttpConfig).kf = function () {
|
|
548
552
|
return this.baseUrl;
|
|
549
553
|
};
|
|
550
|
-
protoOf(HttpConfig).
|
|
554
|
+
protoOf(HttpConfig).lf = function () {
|
|
551
555
|
return this.timeoutMillis;
|
|
552
556
|
};
|
|
553
|
-
protoOf(HttpConfig).
|
|
557
|
+
protoOf(HttpConfig).i5q = function (baseUrl, timeoutMillis) {
|
|
554
558
|
return new HttpConfig(baseUrl, timeoutMillis);
|
|
555
559
|
};
|
|
556
560
|
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
557
561
|
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
558
562
|
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
559
|
-
return $super === VOID ? this.
|
|
563
|
+
return $super === VOID ? this.i5q(baseUrl, timeoutMillis) : $super.i5q.call(this, baseUrl, timeoutMillis);
|
|
560
564
|
};
|
|
561
565
|
protoOf(HttpConfig).toString = function () {
|
|
562
566
|
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
@@ -591,31 +595,31 @@
|
|
|
591
595
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
592
596
|
this.httpConfig = httpConfig;
|
|
593
597
|
}
|
|
594
|
-
protoOf(RandomOrgConfig).
|
|
598
|
+
protoOf(RandomOrgConfig).c5r = function () {
|
|
595
599
|
return this.apiKey;
|
|
596
600
|
};
|
|
597
|
-
protoOf(RandomOrgConfig).
|
|
601
|
+
protoOf(RandomOrgConfig).d5r = function () {
|
|
598
602
|
return this.poolSize;
|
|
599
603
|
};
|
|
600
|
-
protoOf(RandomOrgConfig).
|
|
604
|
+
protoOf(RandomOrgConfig).e5r = function () {
|
|
601
605
|
return this.thresholdForUsedPool;
|
|
602
606
|
};
|
|
603
|
-
protoOf(RandomOrgConfig).
|
|
607
|
+
protoOf(RandomOrgConfig).f5r = function () {
|
|
604
608
|
return this.httpConfig;
|
|
605
609
|
};
|
|
606
|
-
protoOf(RandomOrgConfig).
|
|
610
|
+
protoOf(RandomOrgConfig).kf = function () {
|
|
607
611
|
return this.apiKey;
|
|
608
612
|
};
|
|
609
|
-
protoOf(RandomOrgConfig).
|
|
613
|
+
protoOf(RandomOrgConfig).lf = function () {
|
|
610
614
|
return this.poolSize;
|
|
611
615
|
};
|
|
612
|
-
protoOf(RandomOrgConfig).
|
|
616
|
+
protoOf(RandomOrgConfig).um = function () {
|
|
613
617
|
return this.thresholdForUsedPool;
|
|
614
618
|
};
|
|
615
|
-
protoOf(RandomOrgConfig).
|
|
619
|
+
protoOf(RandomOrgConfig).v5q = function () {
|
|
616
620
|
return this.httpConfig;
|
|
617
621
|
};
|
|
618
|
-
protoOf(RandomOrgConfig).
|
|
622
|
+
protoOf(RandomOrgConfig).g5r = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
619
623
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
620
624
|
};
|
|
621
625
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -623,7 +627,7 @@
|
|
|
623
627
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
624
628
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
625
629
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
626
|
-
return $super === VOID ? this.
|
|
630
|
+
return $super === VOID ? this.g5r(apiKey, poolSize, thresholdForUsedPool, httpConfig) : $super.g5r.call(this, apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
627
631
|
};
|
|
628
632
|
protoOf(RandomOrgConfig).toString = function () {
|
|
629
633
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -660,59 +664,59 @@
|
|
|
660
664
|
function $serializer() {
|
|
661
665
|
$serializer_instance = this;
|
|
662
666
|
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.
|
|
667
|
+
tmp0_serialDesc.s4i('jsonrpc', false);
|
|
668
|
+
tmp0_serialDesc.s4i('error', false);
|
|
669
|
+
this.h5r_1 = tmp0_serialDesc;
|
|
670
|
+
}
|
|
671
|
+
protoOf($serializer).i5r = function (encoder, value) {
|
|
672
|
+
var tmp0_desc = this.h5r_1;
|
|
673
|
+
var tmp1_output = encoder.b4b(tmp0_desc);
|
|
674
|
+
tmp1_output.q4c(tmp0_desc, 0, value.j5r_1);
|
|
675
|
+
tmp1_output.u4c(tmp0_desc, 1, $serializer_getInstance_0(), value.k5r_1);
|
|
676
|
+
tmp1_output.c4b(tmp0_desc);
|
|
677
|
+
};
|
|
678
|
+
protoOf($serializer).p47 = function (encoder, value) {
|
|
679
|
+
return this.i5r(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
680
|
+
};
|
|
681
|
+
protoOf($serializer).q47 = function (decoder) {
|
|
682
|
+
var tmp0_desc = this.h5r_1;
|
|
679
683
|
var tmp1_flag = true;
|
|
680
684
|
var tmp2_index = 0;
|
|
681
685
|
var tmp3_bitMask0 = 0;
|
|
682
686
|
var tmp4_local0 = null;
|
|
683
687
|
var tmp5_local1 = null;
|
|
684
|
-
var tmp6_input = decoder.
|
|
685
|
-
if (tmp6_input.
|
|
686
|
-
tmp4_local0 = tmp6_input.
|
|
688
|
+
var tmp6_input = decoder.b4b(tmp0_desc);
|
|
689
|
+
if (tmp6_input.r4b()) {
|
|
690
|
+
tmp4_local0 = tmp6_input.l4b(tmp0_desc, 0);
|
|
687
691
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
688
|
-
tmp5_local1 = tmp6_input.
|
|
692
|
+
tmp5_local1 = tmp6_input.p4b(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
689
693
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
690
694
|
} else
|
|
691
695
|
while (tmp1_flag) {
|
|
692
|
-
tmp2_index = tmp6_input.
|
|
696
|
+
tmp2_index = tmp6_input.s4b(tmp0_desc);
|
|
693
697
|
switch (tmp2_index) {
|
|
694
698
|
case -1:
|
|
695
699
|
tmp1_flag = false;
|
|
696
700
|
break;
|
|
697
701
|
case 0:
|
|
698
|
-
tmp4_local0 = tmp6_input.
|
|
702
|
+
tmp4_local0 = tmp6_input.l4b(tmp0_desc, 0);
|
|
699
703
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
700
704
|
break;
|
|
701
705
|
case 1:
|
|
702
|
-
tmp5_local1 = tmp6_input.
|
|
706
|
+
tmp5_local1 = tmp6_input.p4b(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
703
707
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
704
708
|
break;
|
|
705
709
|
default:
|
|
706
710
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
707
711
|
}
|
|
708
712
|
}
|
|
709
|
-
tmp6_input.
|
|
713
|
+
tmp6_input.c4b(tmp0_desc);
|
|
710
714
|
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
711
715
|
};
|
|
712
|
-
protoOf($serializer).
|
|
713
|
-
return this.
|
|
716
|
+
protoOf($serializer).o47 = function () {
|
|
717
|
+
return this.h5r_1;
|
|
714
718
|
};
|
|
715
|
-
protoOf($serializer).
|
|
719
|
+
protoOf($serializer).h4j = function () {
|
|
716
720
|
// Inline function 'kotlin.arrayOf' call
|
|
717
721
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
718
722
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -726,25 +730,25 @@
|
|
|
726
730
|
}
|
|
727
731
|
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
728
732
|
if (!(3 === (3 & seen0))) {
|
|
729
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance().
|
|
733
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().h5r_1);
|
|
730
734
|
}
|
|
731
|
-
$this.
|
|
732
|
-
$this.
|
|
735
|
+
$this.j5r_1 = jsonrpc;
|
|
736
|
+
$this.k5r_1 = error;
|
|
733
737
|
return $this;
|
|
734
738
|
}
|
|
735
739
|
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
736
740
|
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
737
741
|
}
|
|
738
742
|
function ErrorResponseDto(jsonrpc, error) {
|
|
739
|
-
this.
|
|
740
|
-
this.
|
|
743
|
+
this.j5r_1 = jsonrpc;
|
|
744
|
+
this.k5r_1 = error;
|
|
741
745
|
}
|
|
742
746
|
protoOf(ErrorResponseDto).toString = function () {
|
|
743
|
-
return 'ErrorResponseDto(jsonrpc=' + this.
|
|
747
|
+
return 'ErrorResponseDto(jsonrpc=' + this.j5r_1 + ', error=' + toString_0(this.k5r_1) + ')';
|
|
744
748
|
};
|
|
745
749
|
protoOf(ErrorResponseDto).hashCode = function () {
|
|
746
|
-
var result = getStringHashCode(this.
|
|
747
|
-
result = imul(result, 31) + (this.
|
|
750
|
+
var result = getStringHashCode(this.j5r_1);
|
|
751
|
+
result = imul(result, 31) + (this.k5r_1 == null ? 0 : this.k5r_1.hashCode()) | 0;
|
|
748
752
|
return result;
|
|
749
753
|
};
|
|
750
754
|
protoOf(ErrorResponseDto).equals = function (other) {
|
|
@@ -753,68 +757,68 @@
|
|
|
753
757
|
if (!(other instanceof ErrorResponseDto))
|
|
754
758
|
return false;
|
|
755
759
|
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
756
|
-
if (!(this.
|
|
760
|
+
if (!(this.j5r_1 === tmp0_other_with_cast.j5r_1))
|
|
757
761
|
return false;
|
|
758
|
-
if (!equals(this.
|
|
762
|
+
if (!equals(this.k5r_1, tmp0_other_with_cast.k5r_1))
|
|
759
763
|
return false;
|
|
760
764
|
return true;
|
|
761
765
|
};
|
|
762
766
|
function $serializer_0() {
|
|
763
767
|
$serializer_instance_0 = this;
|
|
764
768
|
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.
|
|
769
|
+
tmp0_serialDesc.s4i('code', false);
|
|
770
|
+
tmp0_serialDesc.s4i('message', false);
|
|
771
|
+
this.l5r_1 = tmp0_serialDesc;
|
|
772
|
+
}
|
|
773
|
+
protoOf($serializer_0).m5r = function (encoder, value) {
|
|
774
|
+
var tmp0_desc = this.l5r_1;
|
|
775
|
+
var tmp1_output = encoder.b4b(tmp0_desc);
|
|
776
|
+
tmp1_output.u4c(tmp0_desc, 0, IntSerializer_getInstance(), value.n5r_1);
|
|
777
|
+
tmp1_output.u4c(tmp0_desc, 1, StringSerializer_getInstance(), value.o5r_1);
|
|
778
|
+
tmp1_output.c4b(tmp0_desc);
|
|
779
|
+
};
|
|
780
|
+
protoOf($serializer_0).p47 = function (encoder, value) {
|
|
781
|
+
return this.m5r(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
782
|
+
};
|
|
783
|
+
protoOf($serializer_0).q47 = function (decoder) {
|
|
784
|
+
var tmp0_desc = this.l5r_1;
|
|
781
785
|
var tmp1_flag = true;
|
|
782
786
|
var tmp2_index = 0;
|
|
783
787
|
var tmp3_bitMask0 = 0;
|
|
784
788
|
var tmp4_local0 = null;
|
|
785
789
|
var tmp5_local1 = null;
|
|
786
|
-
var tmp6_input = decoder.
|
|
787
|
-
if (tmp6_input.
|
|
788
|
-
tmp4_local0 = tmp6_input.
|
|
790
|
+
var tmp6_input = decoder.b4b(tmp0_desc);
|
|
791
|
+
if (tmp6_input.r4b()) {
|
|
792
|
+
tmp4_local0 = tmp6_input.p4b(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
789
793
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
790
|
-
tmp5_local1 = tmp6_input.
|
|
794
|
+
tmp5_local1 = tmp6_input.p4b(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
791
795
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
792
796
|
} else
|
|
793
797
|
while (tmp1_flag) {
|
|
794
|
-
tmp2_index = tmp6_input.
|
|
798
|
+
tmp2_index = tmp6_input.s4b(tmp0_desc);
|
|
795
799
|
switch (tmp2_index) {
|
|
796
800
|
case -1:
|
|
797
801
|
tmp1_flag = false;
|
|
798
802
|
break;
|
|
799
803
|
case 0:
|
|
800
|
-
tmp4_local0 = tmp6_input.
|
|
804
|
+
tmp4_local0 = tmp6_input.p4b(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
801
805
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
802
806
|
break;
|
|
803
807
|
case 1:
|
|
804
|
-
tmp5_local1 = tmp6_input.
|
|
808
|
+
tmp5_local1 = tmp6_input.p4b(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
805
809
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
806
810
|
break;
|
|
807
811
|
default:
|
|
808
812
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
809
813
|
}
|
|
810
814
|
}
|
|
811
|
-
tmp6_input.
|
|
815
|
+
tmp6_input.c4b(tmp0_desc);
|
|
812
816
|
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
813
817
|
};
|
|
814
|
-
protoOf($serializer_0).
|
|
815
|
-
return this.
|
|
818
|
+
protoOf($serializer_0).o47 = function () {
|
|
819
|
+
return this.l5r_1;
|
|
816
820
|
};
|
|
817
|
-
protoOf($serializer_0).
|
|
821
|
+
protoOf($serializer_0).h4j = function () {
|
|
818
822
|
// Inline function 'kotlin.arrayOf' call
|
|
819
823
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
820
824
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -828,10 +832,10 @@
|
|
|
828
832
|
}
|
|
829
833
|
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
830
834
|
if (!(3 === (3 & seen0))) {
|
|
831
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().
|
|
835
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().l5r_1);
|
|
832
836
|
}
|
|
833
|
-
$this.
|
|
834
|
-
$this.
|
|
837
|
+
$this.n5r_1 = code;
|
|
838
|
+
$this.o5r_1 = message;
|
|
835
839
|
return $this;
|
|
836
840
|
}
|
|
837
841
|
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
@@ -840,11 +844,11 @@
|
|
|
840
844
|
function ErrorDto() {
|
|
841
845
|
}
|
|
842
846
|
protoOf(ErrorDto).toString = function () {
|
|
843
|
-
return 'ErrorDto(code=' + this.
|
|
847
|
+
return 'ErrorDto(code=' + this.n5r_1 + ', message=' + this.o5r_1 + ')';
|
|
844
848
|
};
|
|
845
849
|
protoOf(ErrorDto).hashCode = function () {
|
|
846
|
-
var result = this.
|
|
847
|
-
result = imul(result, 31) + (this.
|
|
850
|
+
var result = this.n5r_1 == null ? 0 : this.n5r_1;
|
|
851
|
+
result = imul(result, 31) + (this.o5r_1 == null ? 0 : getStringHashCode(this.o5r_1)) | 0;
|
|
848
852
|
return result;
|
|
849
853
|
};
|
|
850
854
|
protoOf(ErrorDto).equals = function (other) {
|
|
@@ -853,15 +857,15 @@
|
|
|
853
857
|
if (!(other instanceof ErrorDto))
|
|
854
858
|
return false;
|
|
855
859
|
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
856
|
-
if (!(this.
|
|
860
|
+
if (!(this.n5r_1 == tmp0_other_with_cast.n5r_1))
|
|
857
861
|
return false;
|
|
858
|
-
if (!(this.
|
|
862
|
+
if (!(this.o5r_1 == tmp0_other_with_cast.o5r_1))
|
|
859
863
|
return false;
|
|
860
864
|
return true;
|
|
861
865
|
};
|
|
862
866
|
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
863
867
|
$serializer_1.call($this);
|
|
864
|
-
$this.
|
|
868
|
+
$this.q5r_1 = typeSerial0;
|
|
865
869
|
return $this;
|
|
866
870
|
}
|
|
867
871
|
function $serializer_init_$Create$(typeSerial0) {
|
|
@@ -870,17 +874,17 @@
|
|
|
870
874
|
function Companion_2() {
|
|
871
875
|
Companion_instance_4 = this;
|
|
872
876
|
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.
|
|
877
|
+
tmp0_serialDesc.s4i('jsonrpc', false);
|
|
878
|
+
tmp0_serialDesc.s4i('method', false);
|
|
879
|
+
tmp0_serialDesc.s4i('params', false);
|
|
880
|
+
tmp0_serialDesc.s4i('id', false);
|
|
881
|
+
this.r5r_1 = tmp0_serialDesc;
|
|
878
882
|
}
|
|
879
|
-
protoOf(Companion_2).
|
|
883
|
+
protoOf(Companion_2).s5r = function (typeSerial0) {
|
|
880
884
|
return $serializer_init_$Create$(typeSerial0);
|
|
881
885
|
};
|
|
882
|
-
protoOf(Companion_2).
|
|
883
|
-
return this.
|
|
886
|
+
protoOf(Companion_2).s4j = function (typeParamsSerializers) {
|
|
887
|
+
return this.s5r(typeParamsSerializers[0]);
|
|
884
888
|
};
|
|
885
889
|
var Companion_instance_4;
|
|
886
890
|
function Companion_getInstance_5() {
|
|
@@ -890,26 +894,26 @@
|
|
|
890
894
|
}
|
|
891
895
|
function $serializer_1() {
|
|
892
896
|
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.
|
|
897
|
+
tmp0_serialDesc.s4i('jsonrpc', false);
|
|
898
|
+
tmp0_serialDesc.s4i('method', false);
|
|
899
|
+
tmp0_serialDesc.s4i('params', false);
|
|
900
|
+
tmp0_serialDesc.s4i('id', false);
|
|
901
|
+
this.p5r_1 = tmp0_serialDesc;
|
|
902
|
+
}
|
|
903
|
+
protoOf($serializer_1).t5r = function (encoder, value) {
|
|
904
|
+
var tmp0_desc = this.p5r_1;
|
|
905
|
+
var tmp1_output = encoder.b4b(tmp0_desc);
|
|
906
|
+
tmp1_output.q4c(tmp0_desc, 0, value.u5r_1);
|
|
907
|
+
tmp1_output.q4c(tmp0_desc, 1, value.v5r_1);
|
|
908
|
+
tmp1_output.s4c(tmp0_desc, 2, this.q5r_1, value.w5r_1);
|
|
909
|
+
tmp1_output.q4c(tmp0_desc, 3, value.x5r_1);
|
|
910
|
+
tmp1_output.c4b(tmp0_desc);
|
|
911
|
+
};
|
|
912
|
+
protoOf($serializer_1).p47 = function (encoder, value) {
|
|
913
|
+
return this.t5r(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
914
|
+
};
|
|
915
|
+
protoOf($serializer_1).q47 = function (decoder) {
|
|
916
|
+
var tmp0_desc = this.p5r_1;
|
|
913
917
|
var tmp1_flag = true;
|
|
914
918
|
var tmp2_index = 0;
|
|
915
919
|
var tmp3_bitMask0 = 0;
|
|
@@ -917,69 +921,69 @@
|
|
|
917
921
|
var tmp5_local1 = null;
|
|
918
922
|
var tmp6_local2 = null;
|
|
919
923
|
var tmp7_local3 = null;
|
|
920
|
-
var tmp8_input = decoder.
|
|
921
|
-
if (tmp8_input.
|
|
922
|
-
tmp4_local0 = tmp8_input.
|
|
924
|
+
var tmp8_input = decoder.b4b(tmp0_desc);
|
|
925
|
+
if (tmp8_input.r4b()) {
|
|
926
|
+
tmp4_local0 = tmp8_input.l4b(tmp0_desc, 0);
|
|
923
927
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
924
|
-
tmp5_local1 = tmp8_input.
|
|
928
|
+
tmp5_local1 = tmp8_input.l4b(tmp0_desc, 1);
|
|
925
929
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
926
|
-
tmp6_local2 = tmp8_input.
|
|
930
|
+
tmp6_local2 = tmp8_input.n4b(tmp0_desc, 2, this.q5r_1, tmp6_local2);
|
|
927
931
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
928
|
-
tmp7_local3 = tmp8_input.
|
|
932
|
+
tmp7_local3 = tmp8_input.l4b(tmp0_desc, 3);
|
|
929
933
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
930
934
|
} else
|
|
931
935
|
while (tmp1_flag) {
|
|
932
|
-
tmp2_index = tmp8_input.
|
|
936
|
+
tmp2_index = tmp8_input.s4b(tmp0_desc);
|
|
933
937
|
switch (tmp2_index) {
|
|
934
938
|
case -1:
|
|
935
939
|
tmp1_flag = false;
|
|
936
940
|
break;
|
|
937
941
|
case 0:
|
|
938
|
-
tmp4_local0 = tmp8_input.
|
|
942
|
+
tmp4_local0 = tmp8_input.l4b(tmp0_desc, 0);
|
|
939
943
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
940
944
|
break;
|
|
941
945
|
case 1:
|
|
942
|
-
tmp5_local1 = tmp8_input.
|
|
946
|
+
tmp5_local1 = tmp8_input.l4b(tmp0_desc, 1);
|
|
943
947
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
944
948
|
break;
|
|
945
949
|
case 2:
|
|
946
|
-
tmp6_local2 = tmp8_input.
|
|
950
|
+
tmp6_local2 = tmp8_input.n4b(tmp0_desc, 2, this.q5r_1, tmp6_local2);
|
|
947
951
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
948
952
|
break;
|
|
949
953
|
case 3:
|
|
950
|
-
tmp7_local3 = tmp8_input.
|
|
954
|
+
tmp7_local3 = tmp8_input.l4b(tmp0_desc, 3);
|
|
951
955
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
952
956
|
break;
|
|
953
957
|
default:
|
|
954
958
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
955
959
|
}
|
|
956
960
|
}
|
|
957
|
-
tmp8_input.
|
|
961
|
+
tmp8_input.c4b(tmp0_desc);
|
|
958
962
|
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
959
963
|
};
|
|
960
|
-
protoOf($serializer_1).
|
|
961
|
-
return this.
|
|
964
|
+
protoOf($serializer_1).o47 = function () {
|
|
965
|
+
return this.p5r_1;
|
|
962
966
|
};
|
|
963
|
-
protoOf($serializer_1).
|
|
967
|
+
protoOf($serializer_1).h4j = function () {
|
|
964
968
|
// Inline function 'kotlin.arrayOf' call
|
|
965
969
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
966
970
|
// Inline function 'kotlin.js.asDynamic' call
|
|
967
|
-
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.
|
|
971
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.q5r_1, StringSerializer_getInstance()];
|
|
968
972
|
};
|
|
969
|
-
protoOf($serializer_1).
|
|
973
|
+
protoOf($serializer_1).i4j = function () {
|
|
970
974
|
// Inline function 'kotlin.arrayOf' call
|
|
971
975
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
972
976
|
// Inline function 'kotlin.js.asDynamic' call
|
|
973
|
-
return [this.
|
|
977
|
+
return [this.q5r_1];
|
|
974
978
|
};
|
|
975
979
|
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
976
980
|
if (!(15 === (15 & seen0))) {
|
|
977
|
-
throwMissingFieldException(seen0, 15, Companion_getInstance_5().
|
|
981
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().r5r_1);
|
|
978
982
|
}
|
|
979
|
-
$this.
|
|
980
|
-
$this.
|
|
981
|
-
$this.
|
|
982
|
-
$this.
|
|
983
|
+
$this.u5r_1 = jsonrpc;
|
|
984
|
+
$this.v5r_1 = method;
|
|
985
|
+
$this.w5r_1 = params;
|
|
986
|
+
$this.x5r_1 = id;
|
|
983
987
|
return $this;
|
|
984
988
|
}
|
|
985
989
|
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
@@ -987,19 +991,19 @@
|
|
|
987
991
|
}
|
|
988
992
|
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
989
993
|
Companion_getInstance_5();
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
994
|
+
this.u5r_1 = jsonrpc;
|
|
995
|
+
this.v5r_1 = method;
|
|
996
|
+
this.w5r_1 = params;
|
|
997
|
+
this.x5r_1 = id;
|
|
994
998
|
}
|
|
995
999
|
protoOf(RandomRequestDto).toString = function () {
|
|
996
|
-
return 'RandomRequestDto(jsonrpc=' + this.
|
|
1000
|
+
return 'RandomRequestDto(jsonrpc=' + this.u5r_1 + ', method=' + this.v5r_1 + ', params=' + toString(this.w5r_1) + ', id=' + this.x5r_1 + ')';
|
|
997
1001
|
};
|
|
998
1002
|
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.
|
|
1003
|
+
var result = getStringHashCode(this.u5r_1);
|
|
1004
|
+
result = imul(result, 31) + getStringHashCode(this.v5r_1) | 0;
|
|
1005
|
+
result = imul(result, 31) + hashCode(this.w5r_1) | 0;
|
|
1006
|
+
result = imul(result, 31) + getStringHashCode(this.x5r_1) | 0;
|
|
1003
1007
|
return result;
|
|
1004
1008
|
};
|
|
1005
1009
|
protoOf(RandomRequestDto).equals = function (other) {
|
|
@@ -1008,23 +1012,27 @@
|
|
|
1008
1012
|
if (!(other instanceof RandomRequestDto))
|
|
1009
1013
|
return false;
|
|
1010
1014
|
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1011
|
-
if (!(this.
|
|
1015
|
+
if (!(this.u5r_1 === tmp0_other_with_cast.u5r_1))
|
|
1012
1016
|
return false;
|
|
1013
|
-
if (!(this.
|
|
1017
|
+
if (!(this.v5r_1 === tmp0_other_with_cast.v5r_1))
|
|
1014
1018
|
return false;
|
|
1015
|
-
if (!equals(this.
|
|
1019
|
+
if (!equals(this.w5r_1, tmp0_other_with_cast.w5r_1))
|
|
1016
1020
|
return false;
|
|
1017
|
-
if (!(this.
|
|
1021
|
+
if (!(this.x5r_1 === tmp0_other_with_cast.x5r_1))
|
|
1018
1022
|
return false;
|
|
1019
1023
|
return true;
|
|
1020
1024
|
};
|
|
1025
|
+
function RandomParamsDto$RandomIntegerSequencesParamsDto$Companion$$childSerializers$_anonymous__1scx7a() {
|
|
1026
|
+
return new ArrayListSerializer(IntSerializer_getInstance());
|
|
1027
|
+
}
|
|
1021
1028
|
function Companion_3() {
|
|
1022
1029
|
Companion_instance_5 = this;
|
|
1023
1030
|
var tmp = this;
|
|
1031
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1024
1032
|
// Inline function 'kotlin.arrayOf' call
|
|
1025
1033
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1026
1034
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1027
|
-
tmp.
|
|
1035
|
+
tmp.y5r_1 = [null, null, lazy(tmp_0, RandomParamsDto$RandomIntegerSequencesParamsDto$Companion$$childSerializers$_anonymous__1scx7a), null, null, null, null, null];
|
|
1028
1036
|
}
|
|
1029
1037
|
var Companion_instance_5;
|
|
1030
1038
|
function Companion_getInstance_6() {
|
|
@@ -1035,35 +1043,35 @@
|
|
|
1035
1043
|
function $serializer_2() {
|
|
1036
1044
|
$serializer_instance_1 = this;
|
|
1037
1045
|
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.
|
|
1046
|
+
tmp0_serialDesc.s4i('apiKey', false);
|
|
1047
|
+
tmp0_serialDesc.s4i('n', false);
|
|
1048
|
+
tmp0_serialDesc.s4i('length', false);
|
|
1049
|
+
tmp0_serialDesc.s4i('min', false);
|
|
1050
|
+
tmp0_serialDesc.s4i('max', false);
|
|
1051
|
+
tmp0_serialDesc.s4i('replacement', false);
|
|
1052
|
+
tmp0_serialDesc.s4i('ticketId', false);
|
|
1053
|
+
tmp0_serialDesc.s4i('userData', false);
|
|
1054
|
+
this.z5r_1 = tmp0_serialDesc;
|
|
1055
|
+
}
|
|
1056
|
+
protoOf($serializer_2).a5s = function (encoder, value) {
|
|
1057
|
+
var tmp0_desc = this.z5r_1;
|
|
1058
|
+
var tmp1_output = encoder.b4b(tmp0_desc);
|
|
1059
|
+
var tmp2_cached = Companion_getInstance_6().y5r_1;
|
|
1060
|
+
tmp1_output.q4c(tmp0_desc, 0, value.b5s_1);
|
|
1061
|
+
tmp1_output.l4c(tmp0_desc, 1, value.c5s_1);
|
|
1062
|
+
tmp1_output.s4c(tmp0_desc, 2, tmp2_cached[2].u(), value.d5s_1);
|
|
1063
|
+
tmp1_output.l4c(tmp0_desc, 3, value.e5s_1);
|
|
1064
|
+
tmp1_output.l4c(tmp0_desc, 4, value.f5s_1);
|
|
1065
|
+
tmp1_output.i4c(tmp0_desc, 5, value.g5s_1);
|
|
1066
|
+
tmp1_output.u4c(tmp0_desc, 6, StringSerializer_getInstance(), value.h5s_1);
|
|
1067
|
+
tmp1_output.u4c(tmp0_desc, 7, $serializer_getInstance_2(), value.i5s_1);
|
|
1068
|
+
tmp1_output.c4b(tmp0_desc);
|
|
1069
|
+
};
|
|
1070
|
+
protoOf($serializer_2).p47 = function (encoder, value) {
|
|
1071
|
+
return this.a5s(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1072
|
+
};
|
|
1073
|
+
protoOf($serializer_2).q47 = function (decoder) {
|
|
1074
|
+
var tmp0_desc = this.z5r_1;
|
|
1067
1075
|
var tmp1_flag = true;
|
|
1068
1076
|
var tmp2_index = 0;
|
|
1069
1077
|
var tmp3_bitMask0 = 0;
|
|
@@ -1075,80 +1083,80 @@
|
|
|
1075
1083
|
var tmp9_local5 = false;
|
|
1076
1084
|
var tmp10_local6 = null;
|
|
1077
1085
|
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.
|
|
1086
|
+
var tmp12_input = decoder.b4b(tmp0_desc);
|
|
1087
|
+
var tmp13_cached = Companion_getInstance_6().y5r_1;
|
|
1088
|
+
if (tmp12_input.r4b()) {
|
|
1089
|
+
tmp4_local0 = tmp12_input.l4b(tmp0_desc, 0);
|
|
1082
1090
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1083
|
-
tmp5_local1 = tmp12_input.
|
|
1091
|
+
tmp5_local1 = tmp12_input.g4b(tmp0_desc, 1);
|
|
1084
1092
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1085
|
-
tmp6_local2 = tmp12_input.
|
|
1093
|
+
tmp6_local2 = tmp12_input.n4b(tmp0_desc, 2, tmp13_cached[2].u(), tmp6_local2);
|
|
1086
1094
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1087
|
-
tmp7_local3 = tmp12_input.
|
|
1095
|
+
tmp7_local3 = tmp12_input.g4b(tmp0_desc, 3);
|
|
1088
1096
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1089
|
-
tmp8_local4 = tmp12_input.
|
|
1097
|
+
tmp8_local4 = tmp12_input.g4b(tmp0_desc, 4);
|
|
1090
1098
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1091
|
-
tmp9_local5 = tmp12_input.
|
|
1099
|
+
tmp9_local5 = tmp12_input.d4b(tmp0_desc, 5);
|
|
1092
1100
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1093
|
-
tmp10_local6 = tmp12_input.
|
|
1101
|
+
tmp10_local6 = tmp12_input.p4b(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1094
1102
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1095
|
-
tmp11_local7 = tmp12_input.
|
|
1103
|
+
tmp11_local7 = tmp12_input.p4b(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1096
1104
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1097
1105
|
} else
|
|
1098
1106
|
while (tmp1_flag) {
|
|
1099
|
-
tmp2_index = tmp12_input.
|
|
1107
|
+
tmp2_index = tmp12_input.s4b(tmp0_desc);
|
|
1100
1108
|
switch (tmp2_index) {
|
|
1101
1109
|
case -1:
|
|
1102
1110
|
tmp1_flag = false;
|
|
1103
1111
|
break;
|
|
1104
1112
|
case 0:
|
|
1105
|
-
tmp4_local0 = tmp12_input.
|
|
1113
|
+
tmp4_local0 = tmp12_input.l4b(tmp0_desc, 0);
|
|
1106
1114
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1107
1115
|
break;
|
|
1108
1116
|
case 1:
|
|
1109
|
-
tmp5_local1 = tmp12_input.
|
|
1117
|
+
tmp5_local1 = tmp12_input.g4b(tmp0_desc, 1);
|
|
1110
1118
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1111
1119
|
break;
|
|
1112
1120
|
case 2:
|
|
1113
|
-
tmp6_local2 = tmp12_input.
|
|
1121
|
+
tmp6_local2 = tmp12_input.n4b(tmp0_desc, 2, tmp13_cached[2].u(), tmp6_local2);
|
|
1114
1122
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1115
1123
|
break;
|
|
1116
1124
|
case 3:
|
|
1117
|
-
tmp7_local3 = tmp12_input.
|
|
1125
|
+
tmp7_local3 = tmp12_input.g4b(tmp0_desc, 3);
|
|
1118
1126
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1119
1127
|
break;
|
|
1120
1128
|
case 4:
|
|
1121
|
-
tmp8_local4 = tmp12_input.
|
|
1129
|
+
tmp8_local4 = tmp12_input.g4b(tmp0_desc, 4);
|
|
1122
1130
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1123
1131
|
break;
|
|
1124
1132
|
case 5:
|
|
1125
|
-
tmp9_local5 = tmp12_input.
|
|
1133
|
+
tmp9_local5 = tmp12_input.d4b(tmp0_desc, 5);
|
|
1126
1134
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1127
1135
|
break;
|
|
1128
1136
|
case 6:
|
|
1129
|
-
tmp10_local6 = tmp12_input.
|
|
1137
|
+
tmp10_local6 = tmp12_input.p4b(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1130
1138
|
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1131
1139
|
break;
|
|
1132
1140
|
case 7:
|
|
1133
|
-
tmp11_local7 = tmp12_input.
|
|
1141
|
+
tmp11_local7 = tmp12_input.p4b(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1134
1142
|
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1135
1143
|
break;
|
|
1136
1144
|
default:
|
|
1137
1145
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1138
1146
|
}
|
|
1139
1147
|
}
|
|
1140
|
-
tmp12_input.
|
|
1148
|
+
tmp12_input.c4b(tmp0_desc);
|
|
1141
1149
|
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1142
1150
|
};
|
|
1143
|
-
protoOf($serializer_2).
|
|
1144
|
-
return this.
|
|
1151
|
+
protoOf($serializer_2).o47 = function () {
|
|
1152
|
+
return this.z5r_1;
|
|
1145
1153
|
};
|
|
1146
|
-
protoOf($serializer_2).
|
|
1147
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1154
|
+
protoOf($serializer_2).h4j = function () {
|
|
1155
|
+
var tmp0_cached = Companion_getInstance_6().y5r_1;
|
|
1148
1156
|
// Inline function 'kotlin.arrayOf' call
|
|
1149
1157
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1150
1158
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1151
|
-
return [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2], IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2())];
|
|
1159
|
+
return [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2].u(), IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2())];
|
|
1152
1160
|
};
|
|
1153
1161
|
var $serializer_instance_1;
|
|
1154
1162
|
function $serializer_getInstance_1() {
|
|
@@ -1158,16 +1166,16 @@
|
|
|
1158
1166
|
}
|
|
1159
1167
|
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1160
1168
|
if (!(255 === (255 & seen0))) {
|
|
1161
|
-
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().
|
|
1169
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().z5r_1);
|
|
1162
1170
|
}
|
|
1163
|
-
$this.
|
|
1164
|
-
$this.
|
|
1165
|
-
$this.
|
|
1166
|
-
$this.
|
|
1167
|
-
$this.
|
|
1168
|
-
$this.
|
|
1169
|
-
$this.
|
|
1170
|
-
$this.
|
|
1171
|
+
$this.b5s_1 = apiKey;
|
|
1172
|
+
$this.c5s_1 = n;
|
|
1173
|
+
$this.d5s_1 = length;
|
|
1174
|
+
$this.e5s_1 = min;
|
|
1175
|
+
$this.f5s_1 = max;
|
|
1176
|
+
$this.g5s_1 = replacement;
|
|
1177
|
+
$this.h5s_1 = ticketId;
|
|
1178
|
+
$this.i5s_1 = userData;
|
|
1171
1179
|
return $this;
|
|
1172
1180
|
}
|
|
1173
1181
|
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
@@ -1175,27 +1183,27 @@
|
|
|
1175
1183
|
}
|
|
1176
1184
|
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1177
1185
|
Companion_getInstance_6();
|
|
1178
|
-
this.
|
|
1179
|
-
this.
|
|
1180
|
-
this.
|
|
1181
|
-
this.
|
|
1182
|
-
this.
|
|
1183
|
-
this.
|
|
1184
|
-
this.
|
|
1185
|
-
this.
|
|
1186
|
+
this.b5s_1 = apiKey;
|
|
1187
|
+
this.c5s_1 = n;
|
|
1188
|
+
this.d5s_1 = length;
|
|
1189
|
+
this.e5s_1 = min;
|
|
1190
|
+
this.f5s_1 = max;
|
|
1191
|
+
this.g5s_1 = replacement;
|
|
1192
|
+
this.h5s_1 = ticketId;
|
|
1193
|
+
this.i5s_1 = userData;
|
|
1186
1194
|
}
|
|
1187
1195
|
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1188
|
-
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.
|
|
1196
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.b5s_1 + ', n=' + this.c5s_1 + ', length=' + toString(this.d5s_1) + ', min=' + this.e5s_1 + ', max=' + this.f5s_1 + ', replacement=' + this.g5s_1 + ', ticketId=' + this.h5s_1 + ', userData=' + toString_0(this.i5s_1) + ')';
|
|
1189
1197
|
};
|
|
1190
1198
|
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1191
|
-
var result = getStringHashCode(this.
|
|
1192
|
-
result = imul(result, 31) + this.
|
|
1193
|
-
result = imul(result, 31) + hashCode(this.
|
|
1194
|
-
result = imul(result, 31) + this.
|
|
1195
|
-
result = imul(result, 31) + this.
|
|
1196
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
1197
|
-
result = imul(result, 31) + (this.
|
|
1198
|
-
result = imul(result, 31) + (this.
|
|
1199
|
+
var result = getStringHashCode(this.b5s_1);
|
|
1200
|
+
result = imul(result, 31) + this.c5s_1 | 0;
|
|
1201
|
+
result = imul(result, 31) + hashCode(this.d5s_1) | 0;
|
|
1202
|
+
result = imul(result, 31) + this.e5s_1 | 0;
|
|
1203
|
+
result = imul(result, 31) + this.f5s_1 | 0;
|
|
1204
|
+
result = imul(result, 31) + getBooleanHashCode(this.g5s_1) | 0;
|
|
1205
|
+
result = imul(result, 31) + (this.h5s_1 == null ? 0 : getStringHashCode(this.h5s_1)) | 0;
|
|
1206
|
+
result = imul(result, 31) + (this.i5s_1 == null ? 0 : this.i5s_1.hashCode()) | 0;
|
|
1199
1207
|
return result;
|
|
1200
1208
|
};
|
|
1201
1209
|
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
@@ -1204,21 +1212,21 @@
|
|
|
1204
1212
|
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1205
1213
|
return false;
|
|
1206
1214
|
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1207
|
-
if (!(this.
|
|
1215
|
+
if (!(this.b5s_1 === tmp0_other_with_cast.b5s_1))
|
|
1208
1216
|
return false;
|
|
1209
|
-
if (!(this.
|
|
1217
|
+
if (!(this.c5s_1 === tmp0_other_with_cast.c5s_1))
|
|
1210
1218
|
return false;
|
|
1211
|
-
if (!equals(this.
|
|
1219
|
+
if (!equals(this.d5s_1, tmp0_other_with_cast.d5s_1))
|
|
1212
1220
|
return false;
|
|
1213
|
-
if (!(this.
|
|
1221
|
+
if (!(this.e5s_1 === tmp0_other_with_cast.e5s_1))
|
|
1214
1222
|
return false;
|
|
1215
|
-
if (!(this.
|
|
1223
|
+
if (!(this.f5s_1 === tmp0_other_with_cast.f5s_1))
|
|
1216
1224
|
return false;
|
|
1217
|
-
if (!(this.
|
|
1225
|
+
if (!(this.g5s_1 === tmp0_other_with_cast.g5s_1))
|
|
1218
1226
|
return false;
|
|
1219
|
-
if (!(this.
|
|
1227
|
+
if (!(this.h5s_1 == tmp0_other_with_cast.h5s_1))
|
|
1220
1228
|
return false;
|
|
1221
|
-
if (!equals(this.
|
|
1229
|
+
if (!equals(this.i5s_1, tmp0_other_with_cast.i5s_1))
|
|
1222
1230
|
return false;
|
|
1223
1231
|
return true;
|
|
1224
1232
|
};
|
|
@@ -1231,59 +1239,59 @@
|
|
|
1231
1239
|
function $serializer_3() {
|
|
1232
1240
|
$serializer_instance_2 = this;
|
|
1233
1241
|
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.
|
|
1242
|
+
tmp0_serialDesc.s4i('id', false);
|
|
1243
|
+
tmp0_serialDesc.s4i('count', false);
|
|
1244
|
+
this.j5s_1 = tmp0_serialDesc;
|
|
1245
|
+
}
|
|
1246
|
+
protoOf($serializer_3).k5s = function (encoder, value) {
|
|
1247
|
+
var tmp0_desc = this.j5s_1;
|
|
1248
|
+
var tmp1_output = encoder.b4b(tmp0_desc);
|
|
1249
|
+
tmp1_output.q4c(tmp0_desc, 0, value.l5s_1);
|
|
1250
|
+
tmp1_output.l4c(tmp0_desc, 1, value.m5s_1);
|
|
1251
|
+
tmp1_output.c4b(tmp0_desc);
|
|
1252
|
+
};
|
|
1253
|
+
protoOf($serializer_3).p47 = function (encoder, value) {
|
|
1254
|
+
return this.k5s(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1255
|
+
};
|
|
1256
|
+
protoOf($serializer_3).q47 = function (decoder) {
|
|
1257
|
+
var tmp0_desc = this.j5s_1;
|
|
1250
1258
|
var tmp1_flag = true;
|
|
1251
1259
|
var tmp2_index = 0;
|
|
1252
1260
|
var tmp3_bitMask0 = 0;
|
|
1253
1261
|
var tmp4_local0 = null;
|
|
1254
1262
|
var tmp5_local1 = 0;
|
|
1255
|
-
var tmp6_input = decoder.
|
|
1256
|
-
if (tmp6_input.
|
|
1257
|
-
tmp4_local0 = tmp6_input.
|
|
1263
|
+
var tmp6_input = decoder.b4b(tmp0_desc);
|
|
1264
|
+
if (tmp6_input.r4b()) {
|
|
1265
|
+
tmp4_local0 = tmp6_input.l4b(tmp0_desc, 0);
|
|
1258
1266
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1259
|
-
tmp5_local1 = tmp6_input.
|
|
1267
|
+
tmp5_local1 = tmp6_input.g4b(tmp0_desc, 1);
|
|
1260
1268
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1261
1269
|
} else
|
|
1262
1270
|
while (tmp1_flag) {
|
|
1263
|
-
tmp2_index = tmp6_input.
|
|
1271
|
+
tmp2_index = tmp6_input.s4b(tmp0_desc);
|
|
1264
1272
|
switch (tmp2_index) {
|
|
1265
1273
|
case -1:
|
|
1266
1274
|
tmp1_flag = false;
|
|
1267
1275
|
break;
|
|
1268
1276
|
case 0:
|
|
1269
|
-
tmp4_local0 = tmp6_input.
|
|
1277
|
+
tmp4_local0 = tmp6_input.l4b(tmp0_desc, 0);
|
|
1270
1278
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1271
1279
|
break;
|
|
1272
1280
|
case 1:
|
|
1273
|
-
tmp5_local1 = tmp6_input.
|
|
1281
|
+
tmp5_local1 = tmp6_input.g4b(tmp0_desc, 1);
|
|
1274
1282
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1275
1283
|
break;
|
|
1276
1284
|
default:
|
|
1277
1285
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1278
1286
|
}
|
|
1279
1287
|
}
|
|
1280
|
-
tmp6_input.
|
|
1288
|
+
tmp6_input.c4b(tmp0_desc);
|
|
1281
1289
|
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1282
1290
|
};
|
|
1283
|
-
protoOf($serializer_3).
|
|
1284
|
-
return this.
|
|
1291
|
+
protoOf($serializer_3).o47 = function () {
|
|
1292
|
+
return this.j5s_1;
|
|
1285
1293
|
};
|
|
1286
|
-
protoOf($serializer_3).
|
|
1294
|
+
protoOf($serializer_3).h4j = function () {
|
|
1287
1295
|
// Inline function 'kotlin.arrayOf' call
|
|
1288
1296
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1289
1297
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1297,25 +1305,25 @@
|
|
|
1297
1305
|
}
|
|
1298
1306
|
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1299
1307
|
if (!(3 === (3 & seen0))) {
|
|
1300
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().
|
|
1308
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().j5s_1);
|
|
1301
1309
|
}
|
|
1302
|
-
$this.
|
|
1303
|
-
$this.
|
|
1310
|
+
$this.l5s_1 = id;
|
|
1311
|
+
$this.m5s_1 = count;
|
|
1304
1312
|
return $this;
|
|
1305
1313
|
}
|
|
1306
1314
|
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1307
1315
|
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1308
1316
|
}
|
|
1309
1317
|
function CardDecksUserDataDto(id, count) {
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1318
|
+
this.l5s_1 = id;
|
|
1319
|
+
this.m5s_1 = count;
|
|
1312
1320
|
}
|
|
1313
1321
|
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1314
|
-
return 'CardDecksUserDataDto(id=' + this.
|
|
1322
|
+
return 'CardDecksUserDataDto(id=' + this.l5s_1 + ', count=' + this.m5s_1 + ')';
|
|
1315
1323
|
};
|
|
1316
1324
|
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1317
|
-
var result = getStringHashCode(this.
|
|
1318
|
-
result = imul(result, 31) + this.
|
|
1325
|
+
var result = getStringHashCode(this.l5s_1);
|
|
1326
|
+
result = imul(result, 31) + this.m5s_1 | 0;
|
|
1319
1327
|
return result;
|
|
1320
1328
|
};
|
|
1321
1329
|
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
@@ -1324,15 +1332,15 @@
|
|
|
1324
1332
|
if (!(other instanceof CardDecksUserDataDto))
|
|
1325
1333
|
return false;
|
|
1326
1334
|
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1327
|
-
if (!(this.
|
|
1335
|
+
if (!(this.l5s_1 === tmp0_other_with_cast.l5s_1))
|
|
1328
1336
|
return false;
|
|
1329
|
-
if (!(this.
|
|
1337
|
+
if (!(this.m5s_1 === tmp0_other_with_cast.m5s_1))
|
|
1330
1338
|
return false;
|
|
1331
1339
|
return true;
|
|
1332
1340
|
};
|
|
1333
1341
|
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1334
1342
|
$serializer_4.call($this);
|
|
1335
|
-
$this.
|
|
1343
|
+
$this.o5s_1 = typeSerial0;
|
|
1336
1344
|
return $this;
|
|
1337
1345
|
}
|
|
1338
1346
|
function $serializer_init_$Create$_0(typeSerial0) {
|
|
@@ -1341,16 +1349,16 @@
|
|
|
1341
1349
|
function Companion_5() {
|
|
1342
1350
|
Companion_instance_7 = this;
|
|
1343
1351
|
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.
|
|
1352
|
+
tmp0_serialDesc.s4i('jsonrpc', false);
|
|
1353
|
+
tmp0_serialDesc.s4i('result', false);
|
|
1354
|
+
tmp0_serialDesc.s4i('id', false);
|
|
1355
|
+
this.p5s_1 = tmp0_serialDesc;
|
|
1348
1356
|
}
|
|
1349
|
-
protoOf(Companion_5).
|
|
1357
|
+
protoOf(Companion_5).s5r = function (typeSerial0) {
|
|
1350
1358
|
return $serializer_init_$Create$_0(typeSerial0);
|
|
1351
1359
|
};
|
|
1352
|
-
protoOf(Companion_5).
|
|
1353
|
-
return this.
|
|
1360
|
+
protoOf(Companion_5).s4j = function (typeParamsSerializers) {
|
|
1361
|
+
return this.s5r(typeParamsSerializers[0]);
|
|
1354
1362
|
};
|
|
1355
1363
|
var Companion_instance_7;
|
|
1356
1364
|
function Companion_getInstance_8() {
|
|
@@ -1360,86 +1368,86 @@
|
|
|
1360
1368
|
}
|
|
1361
1369
|
function $serializer_4() {
|
|
1362
1370
|
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.
|
|
1371
|
+
tmp0_serialDesc.s4i('jsonrpc', false);
|
|
1372
|
+
tmp0_serialDesc.s4i('result', false);
|
|
1373
|
+
tmp0_serialDesc.s4i('id', false);
|
|
1374
|
+
this.n5s_1 = tmp0_serialDesc;
|
|
1375
|
+
}
|
|
1376
|
+
protoOf($serializer_4).q5s = function (encoder, value) {
|
|
1377
|
+
var tmp0_desc = this.n5s_1;
|
|
1378
|
+
var tmp1_output = encoder.b4b(tmp0_desc);
|
|
1379
|
+
tmp1_output.q4c(tmp0_desc, 0, value.r5s_1);
|
|
1380
|
+
tmp1_output.s4c(tmp0_desc, 1, this.o5s_1, value.s5s_1);
|
|
1381
|
+
tmp1_output.q4c(tmp0_desc, 2, value.t5s_1);
|
|
1382
|
+
tmp1_output.c4b(tmp0_desc);
|
|
1383
|
+
};
|
|
1384
|
+
protoOf($serializer_4).p47 = function (encoder, value) {
|
|
1385
|
+
return this.q5s(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1386
|
+
};
|
|
1387
|
+
protoOf($serializer_4).q47 = function (decoder) {
|
|
1388
|
+
var tmp0_desc = this.n5s_1;
|
|
1381
1389
|
var tmp1_flag = true;
|
|
1382
1390
|
var tmp2_index = 0;
|
|
1383
1391
|
var tmp3_bitMask0 = 0;
|
|
1384
1392
|
var tmp4_local0 = null;
|
|
1385
1393
|
var tmp5_local1 = null;
|
|
1386
1394
|
var tmp6_local2 = null;
|
|
1387
|
-
var tmp7_input = decoder.
|
|
1388
|
-
if (tmp7_input.
|
|
1389
|
-
tmp4_local0 = tmp7_input.
|
|
1395
|
+
var tmp7_input = decoder.b4b(tmp0_desc);
|
|
1396
|
+
if (tmp7_input.r4b()) {
|
|
1397
|
+
tmp4_local0 = tmp7_input.l4b(tmp0_desc, 0);
|
|
1390
1398
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1391
|
-
tmp5_local1 = tmp7_input.
|
|
1399
|
+
tmp5_local1 = tmp7_input.n4b(tmp0_desc, 1, this.o5s_1, tmp5_local1);
|
|
1392
1400
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1393
|
-
tmp6_local2 = tmp7_input.
|
|
1401
|
+
tmp6_local2 = tmp7_input.l4b(tmp0_desc, 2);
|
|
1394
1402
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1395
1403
|
} else
|
|
1396
1404
|
while (tmp1_flag) {
|
|
1397
|
-
tmp2_index = tmp7_input.
|
|
1405
|
+
tmp2_index = tmp7_input.s4b(tmp0_desc);
|
|
1398
1406
|
switch (tmp2_index) {
|
|
1399
1407
|
case -1:
|
|
1400
1408
|
tmp1_flag = false;
|
|
1401
1409
|
break;
|
|
1402
1410
|
case 0:
|
|
1403
|
-
tmp4_local0 = tmp7_input.
|
|
1411
|
+
tmp4_local0 = tmp7_input.l4b(tmp0_desc, 0);
|
|
1404
1412
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1405
1413
|
break;
|
|
1406
1414
|
case 1:
|
|
1407
|
-
tmp5_local1 = tmp7_input.
|
|
1415
|
+
tmp5_local1 = tmp7_input.n4b(tmp0_desc, 1, this.o5s_1, tmp5_local1);
|
|
1408
1416
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1409
1417
|
break;
|
|
1410
1418
|
case 2:
|
|
1411
|
-
tmp6_local2 = tmp7_input.
|
|
1419
|
+
tmp6_local2 = tmp7_input.l4b(tmp0_desc, 2);
|
|
1412
1420
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1413
1421
|
break;
|
|
1414
1422
|
default:
|
|
1415
1423
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1416
1424
|
}
|
|
1417
1425
|
}
|
|
1418
|
-
tmp7_input.
|
|
1426
|
+
tmp7_input.c4b(tmp0_desc);
|
|
1419
1427
|
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1420
1428
|
};
|
|
1421
|
-
protoOf($serializer_4).
|
|
1422
|
-
return this.
|
|
1429
|
+
protoOf($serializer_4).o47 = function () {
|
|
1430
|
+
return this.n5s_1;
|
|
1423
1431
|
};
|
|
1424
|
-
protoOf($serializer_4).
|
|
1432
|
+
protoOf($serializer_4).h4j = function () {
|
|
1425
1433
|
// Inline function 'kotlin.arrayOf' call
|
|
1426
1434
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1427
1435
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1428
|
-
return [StringSerializer_getInstance(), this.
|
|
1436
|
+
return [StringSerializer_getInstance(), this.o5s_1, StringSerializer_getInstance()];
|
|
1429
1437
|
};
|
|
1430
|
-
protoOf($serializer_4).
|
|
1438
|
+
protoOf($serializer_4).i4j = function () {
|
|
1431
1439
|
// Inline function 'kotlin.arrayOf' call
|
|
1432
1440
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1433
1441
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1434
|
-
return [this.
|
|
1442
|
+
return [this.o5s_1];
|
|
1435
1443
|
};
|
|
1436
1444
|
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1437
1445
|
if (!(7 === (7 & seen0))) {
|
|
1438
|
-
throwMissingFieldException(seen0, 7, Companion_getInstance_8().
|
|
1446
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().p5s_1);
|
|
1439
1447
|
}
|
|
1440
|
-
$this.
|
|
1441
|
-
$this.
|
|
1442
|
-
$this.
|
|
1448
|
+
$this.r5s_1 = jsonrpc;
|
|
1449
|
+
$this.s5s_1 = result;
|
|
1450
|
+
$this.t5s_1 = id;
|
|
1443
1451
|
return $this;
|
|
1444
1452
|
}
|
|
1445
1453
|
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
@@ -1447,17 +1455,17 @@
|
|
|
1447
1455
|
}
|
|
1448
1456
|
function RandomResponseDto(jsonrpc, result, id) {
|
|
1449
1457
|
Companion_getInstance_8();
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1458
|
+
this.r5s_1 = jsonrpc;
|
|
1459
|
+
this.s5s_1 = result;
|
|
1460
|
+
this.t5s_1 = id;
|
|
1453
1461
|
}
|
|
1454
1462
|
protoOf(RandomResponseDto).toString = function () {
|
|
1455
|
-
return 'RandomResponseDto(jsonrpc=' + this.
|
|
1463
|
+
return 'RandomResponseDto(jsonrpc=' + this.r5s_1 + ', result=' + toString(this.s5s_1) + ', id=' + this.t5s_1 + ')';
|
|
1456
1464
|
};
|
|
1457
1465
|
protoOf(RandomResponseDto).hashCode = function () {
|
|
1458
|
-
var result = getStringHashCode(this.
|
|
1459
|
-
result = imul(result, 31) + hashCode(this.
|
|
1460
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1466
|
+
var result = getStringHashCode(this.r5s_1);
|
|
1467
|
+
result = imul(result, 31) + hashCode(this.s5s_1) | 0;
|
|
1468
|
+
result = imul(result, 31) + getStringHashCode(this.t5s_1) | 0;
|
|
1461
1469
|
return result;
|
|
1462
1470
|
};
|
|
1463
1471
|
protoOf(RandomResponseDto).equals = function (other) {
|
|
@@ -1466,11 +1474,11 @@
|
|
|
1466
1474
|
if (!(other instanceof RandomResponseDto))
|
|
1467
1475
|
return false;
|
|
1468
1476
|
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1469
|
-
if (!(this.
|
|
1477
|
+
if (!(this.r5s_1 === tmp0_other_with_cast.r5s_1))
|
|
1470
1478
|
return false;
|
|
1471
|
-
if (!equals(this.
|
|
1479
|
+
if (!equals(this.s5s_1, tmp0_other_with_cast.s5s_1))
|
|
1472
1480
|
return false;
|
|
1473
|
-
if (!(this.
|
|
1481
|
+
if (!(this.t5s_1 === tmp0_other_with_cast.t5s_1))
|
|
1474
1482
|
return false;
|
|
1475
1483
|
return true;
|
|
1476
1484
|
};
|
|
@@ -1483,30 +1491,30 @@
|
|
|
1483
1491
|
function $serializer_5() {
|
|
1484
1492
|
$serializer_instance_3 = this;
|
|
1485
1493
|
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.
|
|
1494
|
+
tmp0_serialDesc.s4i('random', false);
|
|
1495
|
+
tmp0_serialDesc.s4i('signature', false);
|
|
1496
|
+
tmp0_serialDesc.s4i('bitsUsed', false);
|
|
1497
|
+
tmp0_serialDesc.s4i('bitsLeft', false);
|
|
1498
|
+
tmp0_serialDesc.s4i('requestsLeft', false);
|
|
1499
|
+
tmp0_serialDesc.s4i('advisoryDelay', false);
|
|
1500
|
+
this.u5s_1 = tmp0_serialDesc;
|
|
1501
|
+
}
|
|
1502
|
+
protoOf($serializer_5).v5s = function (encoder, value) {
|
|
1503
|
+
var tmp0_desc = this.u5s_1;
|
|
1504
|
+
var tmp1_output = encoder.b4b(tmp0_desc);
|
|
1505
|
+
tmp1_output.s4c(tmp0_desc, 0, $serializer_getInstance_4(), value.w5s_1);
|
|
1506
|
+
tmp1_output.u4c(tmp0_desc, 1, StringSerializer_getInstance(), value.x5s_1);
|
|
1507
|
+
tmp1_output.u4c(tmp0_desc, 2, IntSerializer_getInstance(), value.y5s_1);
|
|
1508
|
+
tmp1_output.u4c(tmp0_desc, 3, IntSerializer_getInstance(), value.z5s_1);
|
|
1509
|
+
tmp1_output.u4c(tmp0_desc, 4, IntSerializer_getInstance(), value.a5t_1);
|
|
1510
|
+
tmp1_output.u4c(tmp0_desc, 5, IntSerializer_getInstance(), value.b5t_1);
|
|
1511
|
+
tmp1_output.c4b(tmp0_desc);
|
|
1512
|
+
};
|
|
1513
|
+
protoOf($serializer_5).p47 = function (encoder, value) {
|
|
1514
|
+
return this.v5s(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1515
|
+
};
|
|
1516
|
+
protoOf($serializer_5).q47 = function (decoder) {
|
|
1517
|
+
var tmp0_desc = this.u5s_1;
|
|
1510
1518
|
var tmp1_flag = true;
|
|
1511
1519
|
var tmp2_index = 0;
|
|
1512
1520
|
var tmp3_bitMask0 = 0;
|
|
@@ -1516,62 +1524,62 @@
|
|
|
1516
1524
|
var tmp7_local3 = null;
|
|
1517
1525
|
var tmp8_local4 = null;
|
|
1518
1526
|
var tmp9_local5 = null;
|
|
1519
|
-
var tmp10_input = decoder.
|
|
1520
|
-
if (tmp10_input.
|
|
1521
|
-
tmp4_local0 = tmp10_input.
|
|
1527
|
+
var tmp10_input = decoder.b4b(tmp0_desc);
|
|
1528
|
+
if (tmp10_input.r4b()) {
|
|
1529
|
+
tmp4_local0 = tmp10_input.n4b(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1522
1530
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1523
|
-
tmp5_local1 = tmp10_input.
|
|
1531
|
+
tmp5_local1 = tmp10_input.p4b(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1524
1532
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1525
|
-
tmp6_local2 = tmp10_input.
|
|
1533
|
+
tmp6_local2 = tmp10_input.p4b(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1526
1534
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1527
|
-
tmp7_local3 = tmp10_input.
|
|
1535
|
+
tmp7_local3 = tmp10_input.p4b(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1528
1536
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1529
|
-
tmp8_local4 = tmp10_input.
|
|
1537
|
+
tmp8_local4 = tmp10_input.p4b(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1530
1538
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1531
|
-
tmp9_local5 = tmp10_input.
|
|
1539
|
+
tmp9_local5 = tmp10_input.p4b(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1532
1540
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1533
1541
|
} else
|
|
1534
1542
|
while (tmp1_flag) {
|
|
1535
|
-
tmp2_index = tmp10_input.
|
|
1543
|
+
tmp2_index = tmp10_input.s4b(tmp0_desc);
|
|
1536
1544
|
switch (tmp2_index) {
|
|
1537
1545
|
case -1:
|
|
1538
1546
|
tmp1_flag = false;
|
|
1539
1547
|
break;
|
|
1540
1548
|
case 0:
|
|
1541
|
-
tmp4_local0 = tmp10_input.
|
|
1549
|
+
tmp4_local0 = tmp10_input.n4b(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1542
1550
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1543
1551
|
break;
|
|
1544
1552
|
case 1:
|
|
1545
|
-
tmp5_local1 = tmp10_input.
|
|
1553
|
+
tmp5_local1 = tmp10_input.p4b(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1546
1554
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1547
1555
|
break;
|
|
1548
1556
|
case 2:
|
|
1549
|
-
tmp6_local2 = tmp10_input.
|
|
1557
|
+
tmp6_local2 = tmp10_input.p4b(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1550
1558
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1551
1559
|
break;
|
|
1552
1560
|
case 3:
|
|
1553
|
-
tmp7_local3 = tmp10_input.
|
|
1561
|
+
tmp7_local3 = tmp10_input.p4b(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1554
1562
|
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1555
1563
|
break;
|
|
1556
1564
|
case 4:
|
|
1557
|
-
tmp8_local4 = tmp10_input.
|
|
1565
|
+
tmp8_local4 = tmp10_input.p4b(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1558
1566
|
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1559
1567
|
break;
|
|
1560
1568
|
case 5:
|
|
1561
|
-
tmp9_local5 = tmp10_input.
|
|
1569
|
+
tmp9_local5 = tmp10_input.p4b(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1562
1570
|
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1563
1571
|
break;
|
|
1564
1572
|
default:
|
|
1565
1573
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1566
1574
|
}
|
|
1567
1575
|
}
|
|
1568
|
-
tmp10_input.
|
|
1576
|
+
tmp10_input.c4b(tmp0_desc);
|
|
1569
1577
|
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1570
1578
|
};
|
|
1571
|
-
protoOf($serializer_5).
|
|
1572
|
-
return this.
|
|
1579
|
+
protoOf($serializer_5).o47 = function () {
|
|
1580
|
+
return this.u5s_1;
|
|
1573
1581
|
};
|
|
1574
|
-
protoOf($serializer_5).
|
|
1582
|
+
protoOf($serializer_5).h4j = function () {
|
|
1575
1583
|
// Inline function 'kotlin.arrayOf' call
|
|
1576
1584
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1577
1585
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1585,37 +1593,37 @@
|
|
|
1585
1593
|
}
|
|
1586
1594
|
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1587
1595
|
if (!(63 === (63 & seen0))) {
|
|
1588
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().
|
|
1596
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().u5s_1);
|
|
1589
1597
|
}
|
|
1590
|
-
$this.
|
|
1591
|
-
$this.
|
|
1592
|
-
$this.
|
|
1593
|
-
$this.
|
|
1594
|
-
$this.
|
|
1595
|
-
$this.
|
|
1598
|
+
$this.w5s_1 = random;
|
|
1599
|
+
$this.x5s_1 = signature;
|
|
1600
|
+
$this.y5s_1 = bitsUsed;
|
|
1601
|
+
$this.z5s_1 = bitsLeft;
|
|
1602
|
+
$this.a5t_1 = requestsLeft;
|
|
1603
|
+
$this.b5t_1 = advisoryDelay;
|
|
1596
1604
|
return $this;
|
|
1597
1605
|
}
|
|
1598
1606
|
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1599
1607
|
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1600
1608
|
}
|
|
1601
1609
|
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1610
|
+
this.w5s_1 = random;
|
|
1611
|
+
this.x5s_1 = signature;
|
|
1612
|
+
this.y5s_1 = bitsUsed;
|
|
1613
|
+
this.z5s_1 = bitsLeft;
|
|
1614
|
+
this.a5t_1 = requestsLeft;
|
|
1615
|
+
this.b5t_1 = advisoryDelay;
|
|
1608
1616
|
}
|
|
1609
1617
|
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1610
|
-
return 'IntegerSequencesResultDto(random=' + this.
|
|
1618
|
+
return 'IntegerSequencesResultDto(random=' + this.w5s_1.toString() + ', signature=' + this.x5s_1 + ', bitsUsed=' + this.y5s_1 + ', bitsLeft=' + this.z5s_1 + ', requestsLeft=' + this.a5t_1 + ', advisoryDelay=' + this.b5t_1 + ')';
|
|
1611
1619
|
};
|
|
1612
1620
|
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1613
|
-
var result = this.
|
|
1614
|
-
result = imul(result, 31) + (this.
|
|
1615
|
-
result = imul(result, 31) + (this.
|
|
1616
|
-
result = imul(result, 31) + (this.
|
|
1617
|
-
result = imul(result, 31) + (this.
|
|
1618
|
-
result = imul(result, 31) + (this.
|
|
1621
|
+
var result = this.w5s_1.hashCode();
|
|
1622
|
+
result = imul(result, 31) + (this.x5s_1 == null ? 0 : getStringHashCode(this.x5s_1)) | 0;
|
|
1623
|
+
result = imul(result, 31) + (this.y5s_1 == null ? 0 : this.y5s_1) | 0;
|
|
1624
|
+
result = imul(result, 31) + (this.z5s_1 == null ? 0 : this.z5s_1) | 0;
|
|
1625
|
+
result = imul(result, 31) + (this.a5t_1 == null ? 0 : this.a5t_1) | 0;
|
|
1626
|
+
result = imul(result, 31) + (this.b5t_1 == null ? 0 : this.b5t_1) | 0;
|
|
1619
1627
|
return result;
|
|
1620
1628
|
};
|
|
1621
1629
|
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
@@ -1624,27 +1632,31 @@
|
|
|
1624
1632
|
if (!(other instanceof IntegerSequencesResultDto))
|
|
1625
1633
|
return false;
|
|
1626
1634
|
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1627
|
-
if (!this.
|
|
1635
|
+
if (!this.w5s_1.equals(tmp0_other_with_cast.w5s_1))
|
|
1628
1636
|
return false;
|
|
1629
|
-
if (!(this.
|
|
1637
|
+
if (!(this.x5s_1 == tmp0_other_with_cast.x5s_1))
|
|
1630
1638
|
return false;
|
|
1631
|
-
if (!(this.
|
|
1639
|
+
if (!(this.y5s_1 == tmp0_other_with_cast.y5s_1))
|
|
1632
1640
|
return false;
|
|
1633
|
-
if (!(this.
|
|
1641
|
+
if (!(this.z5s_1 == tmp0_other_with_cast.z5s_1))
|
|
1634
1642
|
return false;
|
|
1635
|
-
if (!(this.
|
|
1643
|
+
if (!(this.a5t_1 == tmp0_other_with_cast.a5t_1))
|
|
1636
1644
|
return false;
|
|
1637
|
-
if (!(this.
|
|
1645
|
+
if (!(this.b5t_1 == tmp0_other_with_cast.b5t_1))
|
|
1638
1646
|
return false;
|
|
1639
1647
|
return true;
|
|
1640
1648
|
};
|
|
1649
|
+
function RandomDataDto$IntegerSequencesDataDto$Companion$$childSerializers$_anonymous__ummwez() {
|
|
1650
|
+
return new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance()));
|
|
1651
|
+
}
|
|
1641
1652
|
function Companion_7() {
|
|
1642
1653
|
Companion_instance_9 = this;
|
|
1643
1654
|
var tmp = this;
|
|
1655
|
+
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
1644
1656
|
// Inline function 'kotlin.arrayOf' call
|
|
1645
1657
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1646
1658
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1647
|
-
tmp.
|
|
1659
|
+
tmp.c5t_1 = [lazy(tmp_0, RandomDataDto$IntegerSequencesDataDto$Companion$$childSerializers$_anonymous__ummwez), null, null];
|
|
1648
1660
|
}
|
|
1649
1661
|
var Companion_instance_9;
|
|
1650
1662
|
function Companion_getInstance_10() {
|
|
@@ -1655,74 +1667,74 @@
|
|
|
1655
1667
|
function $serializer_6() {
|
|
1656
1668
|
$serializer_instance_4 = this;
|
|
1657
1669
|
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.
|
|
1670
|
+
tmp0_serialDesc.s4i('data', false);
|
|
1671
|
+
tmp0_serialDesc.s4i('completionTime', false);
|
|
1672
|
+
tmp0_serialDesc.s4i('ticketId', false);
|
|
1673
|
+
this.d5t_1 = tmp0_serialDesc;
|
|
1674
|
+
}
|
|
1675
|
+
protoOf($serializer_6).e5t = function (encoder, value) {
|
|
1676
|
+
var tmp0_desc = this.d5t_1;
|
|
1677
|
+
var tmp1_output = encoder.b4b(tmp0_desc);
|
|
1678
|
+
var tmp2_cached = Companion_getInstance_10().c5t_1;
|
|
1679
|
+
tmp1_output.s4c(tmp0_desc, 0, tmp2_cached[0].u(), value.f5t_1);
|
|
1680
|
+
tmp1_output.q4c(tmp0_desc, 1, value.g5t_1);
|
|
1681
|
+
tmp1_output.u4c(tmp0_desc, 2, StringSerializer_getInstance(), value.h5t_1);
|
|
1682
|
+
tmp1_output.c4b(tmp0_desc);
|
|
1683
|
+
};
|
|
1684
|
+
protoOf($serializer_6).p47 = function (encoder, value) {
|
|
1685
|
+
return this.e5t(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1686
|
+
};
|
|
1687
|
+
protoOf($serializer_6).q47 = function (decoder) {
|
|
1688
|
+
var tmp0_desc = this.d5t_1;
|
|
1677
1689
|
var tmp1_flag = true;
|
|
1678
1690
|
var tmp2_index = 0;
|
|
1679
1691
|
var tmp3_bitMask0 = 0;
|
|
1680
1692
|
var tmp4_local0 = null;
|
|
1681
1693
|
var tmp5_local1 = null;
|
|
1682
1694
|
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.
|
|
1695
|
+
var tmp7_input = decoder.b4b(tmp0_desc);
|
|
1696
|
+
var tmp8_cached = Companion_getInstance_10().c5t_1;
|
|
1697
|
+
if (tmp7_input.r4b()) {
|
|
1698
|
+
tmp4_local0 = tmp7_input.n4b(tmp0_desc, 0, tmp8_cached[0].u(), tmp4_local0);
|
|
1687
1699
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1688
|
-
tmp5_local1 = tmp7_input.
|
|
1700
|
+
tmp5_local1 = tmp7_input.l4b(tmp0_desc, 1);
|
|
1689
1701
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1690
|
-
tmp6_local2 = tmp7_input.
|
|
1702
|
+
tmp6_local2 = tmp7_input.p4b(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1691
1703
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1692
1704
|
} else
|
|
1693
1705
|
while (tmp1_flag) {
|
|
1694
|
-
tmp2_index = tmp7_input.
|
|
1706
|
+
tmp2_index = tmp7_input.s4b(tmp0_desc);
|
|
1695
1707
|
switch (tmp2_index) {
|
|
1696
1708
|
case -1:
|
|
1697
1709
|
tmp1_flag = false;
|
|
1698
1710
|
break;
|
|
1699
1711
|
case 0:
|
|
1700
|
-
tmp4_local0 = tmp7_input.
|
|
1712
|
+
tmp4_local0 = tmp7_input.n4b(tmp0_desc, 0, tmp8_cached[0].u(), tmp4_local0);
|
|
1701
1713
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1702
1714
|
break;
|
|
1703
1715
|
case 1:
|
|
1704
|
-
tmp5_local1 = tmp7_input.
|
|
1716
|
+
tmp5_local1 = tmp7_input.l4b(tmp0_desc, 1);
|
|
1705
1717
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1706
1718
|
break;
|
|
1707
1719
|
case 2:
|
|
1708
|
-
tmp6_local2 = tmp7_input.
|
|
1720
|
+
tmp6_local2 = tmp7_input.p4b(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1709
1721
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1710
1722
|
break;
|
|
1711
1723
|
default:
|
|
1712
1724
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1713
1725
|
}
|
|
1714
1726
|
}
|
|
1715
|
-
tmp7_input.
|
|
1727
|
+
tmp7_input.c4b(tmp0_desc);
|
|
1716
1728
|
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1717
1729
|
};
|
|
1718
|
-
protoOf($serializer_6).
|
|
1719
|
-
return this.
|
|
1730
|
+
protoOf($serializer_6).o47 = function () {
|
|
1731
|
+
return this.d5t_1;
|
|
1720
1732
|
};
|
|
1721
|
-
protoOf($serializer_6).
|
|
1733
|
+
protoOf($serializer_6).h4j = function () {
|
|
1722
1734
|
// Inline function 'kotlin.arrayOf' call
|
|
1723
1735
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1724
1736
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1725
|
-
return [Companion_getInstance_10().
|
|
1737
|
+
return [Companion_getInstance_10().c5t_1[0].u(), StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1726
1738
|
};
|
|
1727
1739
|
var $serializer_instance_4;
|
|
1728
1740
|
function $serializer_getInstance_4() {
|
|
@@ -1732,11 +1744,11 @@
|
|
|
1732
1744
|
}
|
|
1733
1745
|
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1734
1746
|
if (!(7 === (7 & seen0))) {
|
|
1735
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().
|
|
1747
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().d5t_1);
|
|
1736
1748
|
}
|
|
1737
|
-
$this.
|
|
1738
|
-
$this.
|
|
1739
|
-
$this.
|
|
1749
|
+
$this.f5t_1 = data;
|
|
1750
|
+
$this.g5t_1 = completionTime;
|
|
1751
|
+
$this.h5t_1 = ticketId;
|
|
1740
1752
|
return $this;
|
|
1741
1753
|
}
|
|
1742
1754
|
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
@@ -1745,12 +1757,12 @@
|
|
|
1745
1757
|
function IntegerSequencesDataDto() {
|
|
1746
1758
|
}
|
|
1747
1759
|
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1748
|
-
return 'IntegerSequencesDataDto(data=' + toString(this.
|
|
1760
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.f5t_1) + ', completionTime=' + this.g5t_1 + ', ticketId=' + this.h5t_1 + ')';
|
|
1749
1761
|
};
|
|
1750
1762
|
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1751
|
-
var result = hashCode(this.
|
|
1752
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
1753
|
-
result = imul(result, 31) + (this.
|
|
1763
|
+
var result = hashCode(this.f5t_1);
|
|
1764
|
+
result = imul(result, 31) + getStringHashCode(this.g5t_1) | 0;
|
|
1765
|
+
result = imul(result, 31) + (this.h5t_1 == null ? 0 : getStringHashCode(this.h5t_1)) | 0;
|
|
1754
1766
|
return result;
|
|
1755
1767
|
};
|
|
1756
1768
|
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
@@ -1759,11 +1771,11 @@
|
|
|
1759
1771
|
if (!(other instanceof IntegerSequencesDataDto))
|
|
1760
1772
|
return false;
|
|
1761
1773
|
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1762
|
-
if (!equals(this.
|
|
1774
|
+
if (!equals(this.f5t_1, tmp0_other_with_cast.f5t_1))
|
|
1763
1775
|
return false;
|
|
1764
|
-
if (!(this.
|
|
1776
|
+
if (!(this.g5t_1 === tmp0_other_with_cast.g5t_1))
|
|
1765
1777
|
return false;
|
|
1766
|
-
if (!(this.
|
|
1778
|
+
if (!(this.h5t_1 == tmp0_other_with_cast.h5t_1))
|
|
1767
1779
|
return false;
|
|
1768
1780
|
return true;
|
|
1769
1781
|
};
|
|
@@ -1774,15 +1786,15 @@
|
|
|
1774
1786
|
}
|
|
1775
1787
|
function throwIfError($this, bodyAsJson, response, $completion) {
|
|
1776
1788
|
var tmp = new $throwIfErrorCOROUTINE$($this, bodyAsJson, response, $completion);
|
|
1777
|
-
tmp.
|
|
1778
|
-
tmp.
|
|
1779
|
-
return tmp.
|
|
1789
|
+
tmp.n9_1 = Unit_instance;
|
|
1790
|
+
tmp.o9_1 = null;
|
|
1791
|
+
return tmp.t9();
|
|
1780
1792
|
}
|
|
1781
1793
|
function extractRandomResult($this, bodyAsJson) {
|
|
1782
1794
|
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1783
1795
|
}
|
|
1784
1796
|
function Companion_8() {
|
|
1785
|
-
this.
|
|
1797
|
+
this.w5t_1 = 52;
|
|
1786
1798
|
}
|
|
1787
1799
|
var Companion_instance_10;
|
|
1788
1800
|
function Companion_getInstance_11() {
|
|
@@ -1790,49 +1802,49 @@
|
|
|
1790
1802
|
}
|
|
1791
1803
|
function $getRandomCardDecksCOROUTINE$(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1792
1804
|
CoroutineImpl.call(this, resultContinuation);
|
|
1793
|
-
this.
|
|
1794
|
-
this.
|
|
1795
|
-
this.
|
|
1796
|
-
this.
|
|
1797
|
-
this.
|
|
1798
|
-
this.
|
|
1799
|
-
this.
|
|
1800
|
-
}
|
|
1801
|
-
protoOf($getRandomCardDecksCOROUTINE$).
|
|
1802
|
-
var suspendResult = this.
|
|
1805
|
+
this.f5u_1 = _this__u8e3s4;
|
|
1806
|
+
this.g5u_1 = min;
|
|
1807
|
+
this.h5u_1 = max;
|
|
1808
|
+
this.i5u_1 = decksCount;
|
|
1809
|
+
this.j5u_1 = cardsCount;
|
|
1810
|
+
this.k5u_1 = userData;
|
|
1811
|
+
this.l5u_1 = signed;
|
|
1812
|
+
}
|
|
1813
|
+
protoOf($getRandomCardDecksCOROUTINE$).t9 = function () {
|
|
1814
|
+
var suspendResult = this.n9_1;
|
|
1803
1815
|
$sm: do
|
|
1804
1816
|
try {
|
|
1805
|
-
var tmp = this.
|
|
1817
|
+
var tmp = this.l9_1;
|
|
1806
1818
|
switch (tmp) {
|
|
1807
1819
|
case 0:
|
|
1808
|
-
this.
|
|
1809
|
-
this.
|
|
1820
|
+
this.m9_1 = 6;
|
|
1821
|
+
this.m9_1 = 5;
|
|
1810
1822
|
var tmp_0 = this;
|
|
1811
|
-
tmp_0.
|
|
1812
|
-
this.
|
|
1823
|
+
tmp_0.m5u_1 = this.f5u_1.c5v_1;
|
|
1824
|
+
this.n5u_1 = this.m5u_1;
|
|
1813
1825
|
var tmp_1 = this;
|
|
1814
|
-
tmp_1.
|
|
1826
|
+
tmp_1.o5u_1 = this.n5u_1;
|
|
1815
1827
|
var tmp_2 = this;
|
|
1816
1828
|
var this_0 = new HttpRequestBuilder();
|
|
1817
1829
|
url(this_0, '/json-rpc/4/invoke');
|
|
1818
|
-
var
|
|
1819
|
-
var
|
|
1820
|
-
var
|
|
1821
|
-
var size = this.
|
|
1830
|
+
var tmp3_id = this.k5u_1.id;
|
|
1831
|
+
var tmp4_method = this.l5u_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1832
|
+
var tmp0_apiKey = this.f5u_1.d5v_1;
|
|
1833
|
+
var size = this.i5u_1;
|
|
1822
1834
|
var list = ArrayList_init_$Create$(size);
|
|
1823
1835
|
var inductionVariable = 0;
|
|
1824
1836
|
if (inductionVariable < size)
|
|
1825
1837
|
do {
|
|
1826
1838
|
var index = inductionVariable;
|
|
1827
1839
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1828
|
-
list.e(this.
|
|
1840
|
+
list.e(this.j5u_1);
|
|
1829
1841
|
}
|
|
1830
1842
|
while (inductionVariable < size);
|
|
1831
|
-
var
|
|
1832
|
-
var
|
|
1833
|
-
var body = new RandomRequestDto('2.0',
|
|
1843
|
+
var tmp2_userData = this.l5u_1 ? mapToDto(this.k5u_1) : null;
|
|
1844
|
+
var tmp5_params = new RandomIntegerSequencesParamsDto(tmp0_apiKey, this.i5u_1, list, this.g5u_1, this.h5u_1, false, null, tmp2_userData);
|
|
1845
|
+
var body = new RandomRequestDto('2.0', tmp4_method, tmp5_params, tmp3_id);
|
|
1834
1846
|
if (body == null) {
|
|
1835
|
-
this_0.
|
|
1847
|
+
this_0.v2x_1 = NullBody_instance;
|
|
1836
1848
|
var tmp_3 = JsType_instance;
|
|
1837
1849
|
var tmp_4 = getKClass(RandomRequestDto);
|
|
1838
1850
|
var tmp_5;
|
|
@@ -1848,13 +1860,13 @@
|
|
|
1848
1860
|
}
|
|
1849
1861
|
tmp_5 = tmp_6;
|
|
1850
1862
|
}
|
|
1851
|
-
this_0.
|
|
1863
|
+
this_0.r33(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1852
1864
|
} else {
|
|
1853
1865
|
if (body instanceof OutgoingContent) {
|
|
1854
|
-
this_0.
|
|
1855
|
-
this_0.
|
|
1866
|
+
this_0.v2x_1 = body;
|
|
1867
|
+
this_0.r33(null);
|
|
1856
1868
|
} else {
|
|
1857
|
-
this_0.
|
|
1869
|
+
this_0.v2x_1 = body;
|
|
1858
1870
|
var tmp_7 = JsType_instance;
|
|
1859
1871
|
var tmp_8 = getKClass(RandomRequestDto);
|
|
1860
1872
|
var tmp_9;
|
|
@@ -1870,34 +1882,34 @@
|
|
|
1870
1882
|
}
|
|
1871
1883
|
tmp_9 = tmp_10;
|
|
1872
1884
|
}
|
|
1873
|
-
this_0.
|
|
1885
|
+
this_0.r33(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1874
1886
|
}
|
|
1875
1887
|
}
|
|
1876
1888
|
|
|
1877
|
-
tmp_2.
|
|
1878
|
-
this.
|
|
1879
|
-
this.
|
|
1880
|
-
this.
|
|
1889
|
+
tmp_2.p5u_1 = this_0;
|
|
1890
|
+
this.q5u_1 = this.o5u_1;
|
|
1891
|
+
this.r5u_1 = this.p5u_1;
|
|
1892
|
+
this.r5u_1.t2x_1 = Companion_getInstance().f2m_1;
|
|
1881
1893
|
var tmp_11 = this;
|
|
1882
|
-
tmp_11.
|
|
1894
|
+
tmp_11.s5u_1 = this.q5u_1;
|
|
1883
1895
|
var tmp_12 = this;
|
|
1884
|
-
tmp_12.
|
|
1885
|
-
this.
|
|
1886
|
-
this.
|
|
1887
|
-
this.
|
|
1888
|
-
suspendResult = (new HttpStatement(this.
|
|
1896
|
+
tmp_12.t5u_1 = this.r5u_1;
|
|
1897
|
+
this.u5u_1 = this.s5u_1;
|
|
1898
|
+
this.v5u_1 = this.t5u_1;
|
|
1899
|
+
this.l9_1 = 1;
|
|
1900
|
+
suspendResult = (new HttpStatement(this.v5u_1, this.u5u_1)).n3r(this);
|
|
1889
1901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1890
1902
|
return suspendResult;
|
|
1891
1903
|
}
|
|
1892
1904
|
|
|
1893
1905
|
continue $sm;
|
|
1894
1906
|
case 1:
|
|
1895
|
-
this.
|
|
1907
|
+
this.w5u_1 = suspendResult;
|
|
1896
1908
|
var tmp_13 = this;
|
|
1897
|
-
tmp_13.
|
|
1898
|
-
this.
|
|
1899
|
-
this.
|
|
1900
|
-
var tmp_14 = this.
|
|
1909
|
+
tmp_13.x5u_1 = this.w5u_1;
|
|
1910
|
+
this.y5u_1 = this.x5u_1;
|
|
1911
|
+
this.l9_1 = 2;
|
|
1912
|
+
var tmp_14 = this.y5u_1.a31();
|
|
1901
1913
|
var tmp_15 = JsType_instance;
|
|
1902
1914
|
var tmp_16 = getKClass(JsonObject);
|
|
1903
1915
|
var tmp_17;
|
|
@@ -1914,7 +1926,7 @@
|
|
|
1914
1926
|
tmp_17 = tmp_18;
|
|
1915
1927
|
}
|
|
1916
1928
|
|
|
1917
|
-
suspendResult = tmp_14.
|
|
1929
|
+
suspendResult = tmp_14.e30(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1918
1930
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1919
1931
|
return suspendResult;
|
|
1920
1932
|
}
|
|
@@ -1922,9 +1934,9 @@
|
|
|
1922
1934
|
continue $sm;
|
|
1923
1935
|
case 2:
|
|
1924
1936
|
var tmp_19 = this;
|
|
1925
|
-
tmp_19.
|
|
1926
|
-
this.
|
|
1927
|
-
suspendResult = throwIfError(this.
|
|
1937
|
+
tmp_19.z5u_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1938
|
+
this.l9_1 = 3;
|
|
1939
|
+
suspendResult = throwIfError(this.f5u_1, this.z5u_1, this.w5u_1, this);
|
|
1928
1940
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1929
1941
|
return suspendResult;
|
|
1930
1942
|
}
|
|
@@ -1932,10 +1944,10 @@
|
|
|
1932
1944
|
continue $sm;
|
|
1933
1945
|
case 3:
|
|
1934
1946
|
var tmp_20 = this;
|
|
1935
|
-
tmp_20.
|
|
1936
|
-
this.
|
|
1937
|
-
this.
|
|
1938
|
-
var tmp_21 = this.
|
|
1947
|
+
tmp_20.a5v_1 = this.w5u_1;
|
|
1948
|
+
this.b5v_1 = this.a5v_1;
|
|
1949
|
+
this.l9_1 = 4;
|
|
1950
|
+
var tmp_21 = this.b5v_1.a31();
|
|
1939
1951
|
var tmp_22 = JsType_instance;
|
|
1940
1952
|
var tmp_23 = getKClass(RandomResponseDto);
|
|
1941
1953
|
var tmp_24;
|
|
@@ -1952,7 +1964,7 @@
|
|
|
1952
1964
|
tmp_24 = tmp_25;
|
|
1953
1965
|
}
|
|
1954
1966
|
|
|
1955
|
-
suspendResult = tmp_21.
|
|
1967
|
+
suspendResult = tmp_21.e30(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1956
1968
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1957
1969
|
return suspendResult;
|
|
1958
1970
|
}
|
|
@@ -1960,60 +1972,60 @@
|
|
|
1960
1972
|
continue $sm;
|
|
1961
1973
|
case 4:
|
|
1962
1974
|
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1963
|
-
var randomJson = extractRandomResult(this.
|
|
1964
|
-
var
|
|
1965
|
-
var
|
|
1966
|
-
var
|
|
1967
|
-
return new CardDeckResult(
|
|
1975
|
+
var randomJson = extractRandomResult(this.f5u_1, this.z5u_1);
|
|
1976
|
+
var tmp0_cardDecks = responseDto.s5s_1.w5s_1.f5t_1;
|
|
1977
|
+
var tmp1_signature = responseDto.s5s_1.x5s_1;
|
|
1978
|
+
var tmp2_id = responseDto.t5s_1;
|
|
1979
|
+
return new CardDeckResult(tmp0_cardDecks, randomJson, tmp2_id, tmp1_signature);
|
|
1968
1980
|
case 5:
|
|
1969
|
-
this.
|
|
1970
|
-
var tmp_26 = this.
|
|
1981
|
+
this.m9_1 = 6;
|
|
1982
|
+
var tmp_26 = this.o9_1;
|
|
1971
1983
|
if (tmp_26 instanceof Error) {
|
|
1972
|
-
var error = this.
|
|
1984
|
+
var error = this.o9_1;
|
|
1973
1985
|
if (error instanceof RandomException)
|
|
1974
1986
|
throw error;
|
|
1975
1987
|
else {
|
|
1976
1988
|
throw new RandomException(100001, '[getRandomCardDeck] error, message = ' + error.message, error);
|
|
1977
1989
|
}
|
|
1978
1990
|
} else {
|
|
1979
|
-
throw this.
|
|
1991
|
+
throw this.o9_1;
|
|
1980
1992
|
}
|
|
1981
1993
|
|
|
1982
1994
|
case 6:
|
|
1983
|
-
throw this.
|
|
1995
|
+
throw this.o9_1;
|
|
1984
1996
|
}
|
|
1985
1997
|
} catch ($p) {
|
|
1986
1998
|
var e = $p;
|
|
1987
|
-
if (this.
|
|
1999
|
+
if (this.m9_1 === 6) {
|
|
1988
2000
|
throw e;
|
|
1989
2001
|
} else {
|
|
1990
|
-
this.
|
|
1991
|
-
this.
|
|
2002
|
+
this.l9_1 = this.m9_1;
|
|
2003
|
+
this.o9_1 = e;
|
|
1992
2004
|
}
|
|
1993
2005
|
}
|
|
1994
2006
|
while (true);
|
|
1995
2007
|
};
|
|
1996
2008
|
function $throwIfErrorCOROUTINE$(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1997
2009
|
CoroutineImpl.call(this, resultContinuation);
|
|
1998
|
-
this.
|
|
1999
|
-
this.
|
|
2000
|
-
this.
|
|
2010
|
+
this.r5t_1 = _this__u8e3s4;
|
|
2011
|
+
this.s5t_1 = bodyAsJson;
|
|
2012
|
+
this.t5t_1 = response;
|
|
2001
2013
|
}
|
|
2002
|
-
protoOf($throwIfErrorCOROUTINE$).
|
|
2003
|
-
var suspendResult = this.
|
|
2014
|
+
protoOf($throwIfErrorCOROUTINE$).t9 = function () {
|
|
2015
|
+
var suspendResult = this.n9_1;
|
|
2004
2016
|
$sm: do
|
|
2005
2017
|
try {
|
|
2006
|
-
var tmp = this.
|
|
2018
|
+
var tmp = this.l9_1;
|
|
2007
2019
|
switch (tmp) {
|
|
2008
2020
|
case 0:
|
|
2009
|
-
this.
|
|
2010
|
-
var this_0 = this.
|
|
2011
|
-
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
2021
|
+
this.m9_1 = 3;
|
|
2022
|
+
var this_0 = this.s5t_1;
|
|
2023
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).i2('error')) {
|
|
2012
2024
|
var tmp_0 = this;
|
|
2013
|
-
tmp_0.
|
|
2014
|
-
this.
|
|
2015
|
-
this.
|
|
2016
|
-
var tmp_1 = this.
|
|
2025
|
+
tmp_0.u5t_1 = this.t5t_1;
|
|
2026
|
+
this.v5t_1 = this.u5t_1;
|
|
2027
|
+
this.l9_1 = 2;
|
|
2028
|
+
var tmp_1 = this.v5t_1.a31();
|
|
2017
2029
|
var tmp_2 = JsType_instance;
|
|
2018
2030
|
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2019
2031
|
var tmp_4;
|
|
@@ -2029,13 +2041,13 @@
|
|
|
2029
2041
|
}
|
|
2030
2042
|
tmp_4 = tmp_5;
|
|
2031
2043
|
}
|
|
2032
|
-
suspendResult = tmp_1.
|
|
2044
|
+
suspendResult = tmp_1.e30(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2033
2045
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2034
2046
|
return suspendResult;
|
|
2035
2047
|
}
|
|
2036
2048
|
continue $sm;
|
|
2037
2049
|
} else {
|
|
2038
|
-
this.
|
|
2050
|
+
this.l9_1 = 1;
|
|
2039
2051
|
continue $sm;
|
|
2040
2052
|
}
|
|
2041
2053
|
|
|
@@ -2043,33 +2055,33 @@
|
|
|
2043
2055
|
return Unit_instance;
|
|
2044
2056
|
case 2:
|
|
2045
2057
|
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2046
|
-
var
|
|
2047
|
-
var tmp_6 =
|
|
2048
|
-
var
|
|
2049
|
-
throw new RandomException(tmp_6,
|
|
2058
|
+
var tmp0_safe_receiver = errorResponseDto.k5r_1;
|
|
2059
|
+
var tmp_6 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n5r_1;
|
|
2060
|
+
var tmp1_safe_receiver = errorResponseDto.k5r_1;
|
|
2061
|
+
throw new RandomException(tmp_6, tmp1_safe_receiver == null ? null : tmp1_safe_receiver.o5r_1);
|
|
2050
2062
|
case 3:
|
|
2051
|
-
throw this.
|
|
2063
|
+
throw this.o9_1;
|
|
2052
2064
|
}
|
|
2053
2065
|
} catch ($p) {
|
|
2054
2066
|
var e = $p;
|
|
2055
|
-
if (this.
|
|
2067
|
+
if (this.m9_1 === 3) {
|
|
2056
2068
|
throw e;
|
|
2057
2069
|
} else {
|
|
2058
|
-
this.
|
|
2059
|
-
this.
|
|
2070
|
+
this.l9_1 = this.m9_1;
|
|
2071
|
+
this.o9_1 = e;
|
|
2060
2072
|
}
|
|
2061
2073
|
}
|
|
2062
2074
|
while (true);
|
|
2063
2075
|
};
|
|
2064
2076
|
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2065
|
-
this.
|
|
2066
|
-
this.
|
|
2077
|
+
this.c5v_1 = client;
|
|
2078
|
+
this.d5v_1 = apiKey;
|
|
2067
2079
|
}
|
|
2068
|
-
protoOf(RandomOrgApiServiceImpl).
|
|
2080
|
+
protoOf(RandomOrgApiServiceImpl).i5t = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2069
2081
|
var tmp = new $getRandomCardDecksCOROUTINE$(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2070
|
-
tmp.
|
|
2071
|
-
tmp.
|
|
2072
|
-
return tmp.
|
|
2082
|
+
tmp.n9_1 = Unit_instance;
|
|
2083
|
+
tmp.o9_1 = null;
|
|
2084
|
+
return tmp.t9();
|
|
2073
2085
|
};
|
|
2074
2086
|
function PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2075
2087
|
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
@@ -2090,31 +2102,31 @@
|
|
|
2090
2102
|
this.failedRequestAttempts = failedRequestAttempts;
|
|
2091
2103
|
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2092
2104
|
}
|
|
2093
|
-
protoOf(PoolParams).
|
|
2105
|
+
protoOf(PoolParams).d5r = function () {
|
|
2094
2106
|
return this.poolSize;
|
|
2095
2107
|
};
|
|
2096
|
-
protoOf(PoolParams).
|
|
2108
|
+
protoOf(PoolParams).e5r = function () {
|
|
2097
2109
|
return this.thresholdForUsedPool;
|
|
2098
2110
|
};
|
|
2099
|
-
protoOf(PoolParams).
|
|
2111
|
+
protoOf(PoolParams).e5v = function () {
|
|
2100
2112
|
return this.failedRequestAttempts;
|
|
2101
2113
|
};
|
|
2102
|
-
protoOf(PoolParams).
|
|
2114
|
+
protoOf(PoolParams).f5v = function () {
|
|
2103
2115
|
return this.failedAttemptCooldown;
|
|
2104
2116
|
};
|
|
2105
|
-
protoOf(PoolParams).
|
|
2117
|
+
protoOf(PoolParams).kf = function () {
|
|
2106
2118
|
return this.poolSize;
|
|
2107
2119
|
};
|
|
2108
|
-
protoOf(PoolParams).
|
|
2120
|
+
protoOf(PoolParams).lf = function () {
|
|
2109
2121
|
return this.thresholdForUsedPool;
|
|
2110
2122
|
};
|
|
2111
|
-
protoOf(PoolParams).
|
|
2123
|
+
protoOf(PoolParams).um = function () {
|
|
2112
2124
|
return this.failedRequestAttempts;
|
|
2113
2125
|
};
|
|
2114
|
-
protoOf(PoolParams).
|
|
2126
|
+
protoOf(PoolParams).g5v = function () {
|
|
2115
2127
|
return this.failedAttemptCooldown;
|
|
2116
2128
|
};
|
|
2117
|
-
protoOf(PoolParams).
|
|
2129
|
+
protoOf(PoolParams).h5v = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) {
|
|
2118
2130
|
return new PoolParams(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown);
|
|
2119
2131
|
};
|
|
2120
2132
|
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
@@ -2122,7 +2134,7 @@
|
|
|
2122
2134
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2123
2135
|
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2124
2136
|
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2125
|
-
return $super === VOID ? this.
|
|
2137
|
+
return $super === VOID ? this.h5v(poolSize, thresholdForUsedPool, failedRequestAttempts, failedAttemptCooldown) : $super.h5v.call(this, poolSize, thresholdForUsedPool, failedRequestAttempts, new Duration(failedAttemptCooldown));
|
|
2126
2138
|
};
|
|
2127
2139
|
protoOf(PoolParams).toString = function () {
|
|
2128
2140
|
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
@@ -2153,70 +2165,70 @@
|
|
|
2153
2165
|
function RandomPoolProvider() {
|
|
2154
2166
|
}
|
|
2155
2167
|
function _get_cardDecksCount__ihvb5i($this) {
|
|
2156
|
-
return $this.
|
|
2168
|
+
return $this.l5v_1.n5q_1.m();
|
|
2157
2169
|
}
|
|
2158
2170
|
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2159
2171
|
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2160
2172
|
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2161
2173
|
isUsed = isUsed === VOID ? false : isUsed;
|
|
2162
|
-
this.
|
|
2163
|
-
this.
|
|
2164
|
-
this.
|
|
2165
|
-
this.
|
|
2174
|
+
this.l5v_1 = randomResult;
|
|
2175
|
+
this.m5v_1 = usedByGames;
|
|
2176
|
+
this.n5v_1 = reservedCardDecks;
|
|
2177
|
+
this.o5v_1 = isUsed;
|
|
2166
2178
|
}
|
|
2167
|
-
protoOf(RandomPoolValue).
|
|
2168
|
-
if (this.
|
|
2179
|
+
protoOf(RandomPoolValue).p5v = function (minRoundsCount) {
|
|
2180
|
+
if (this.o5v_1) {
|
|
2169
2181
|
return false;
|
|
2170
2182
|
}
|
|
2171
|
-
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.
|
|
2183
|
+
var availableCount = _get_cardDecksCount__ihvb5i(this) - this.n5v_1 | 0;
|
|
2172
2184
|
return availableCount >= minRoundsCount;
|
|
2173
2185
|
};
|
|
2174
|
-
protoOf(RandomPoolValue).
|
|
2175
|
-
var previousReservedCardDeckIndex = this.
|
|
2186
|
+
protoOf(RandomPoolValue).q5v = function (gameId, requestedCardDecks, thresholdForUsedPool) {
|
|
2187
|
+
var previousReservedCardDeckIndex = this.n5v_1;
|
|
2176
2188
|
// Inline function 'kotlin.apply' call
|
|
2177
|
-
var this_0 = toMutableMap(this.
|
|
2178
|
-
this_0.
|
|
2189
|
+
var this_0 = toMutableMap(this.m5v_1);
|
|
2190
|
+
this_0.n2(gameId, previousReservedCardDeckIndex);
|
|
2179
2191
|
var newNewUsedBy = toMap(this_0);
|
|
2180
2192
|
var newReservedCardDecks = previousReservedCardDeckIndex + requestedCardDecks | 0;
|
|
2181
|
-
return this.
|
|
2193
|
+
return this.r5v(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > _get_cardDecksCount__ihvb5i(this));
|
|
2182
2194
|
};
|
|
2183
|
-
protoOf(RandomPoolValue).
|
|
2184
|
-
var currentCardDeckIndex = getValue(this.
|
|
2195
|
+
protoOf(RandomPoolValue).s5v = function (gameId) {
|
|
2196
|
+
var currentCardDeckIndex = getValue(this.m5v_1, gameId);
|
|
2185
2197
|
var tmp;
|
|
2186
|
-
if (currentCardDeckIndex === get_lastIndex(this.
|
|
2198
|
+
if (currentCardDeckIndex === get_lastIndex(this.l5v_1.n5q_1)) {
|
|
2187
2199
|
tmp = 0;
|
|
2188
2200
|
} else {
|
|
2189
2201
|
tmp = currentCardDeckIndex + 1 | 0;
|
|
2190
2202
|
}
|
|
2191
2203
|
var newCardDeckIndex = tmp;
|
|
2192
2204
|
// Inline function 'kotlin.apply' call
|
|
2193
|
-
var this_0 = toMutableMap(this.
|
|
2194
|
-
this_0.
|
|
2205
|
+
var this_0 = toMutableMap(this.m5v_1);
|
|
2206
|
+
this_0.n2(gameId, newCardDeckIndex);
|
|
2195
2207
|
var newNewUsedBy = toMap(this_0);
|
|
2196
|
-
return this.
|
|
2208
|
+
return this.r5v(VOID, newNewUsedBy);
|
|
2197
2209
|
};
|
|
2198
|
-
protoOf(RandomPoolValue).
|
|
2199
|
-
var index = getValue(this.
|
|
2200
|
-
return new GameCardDeckData(index, this.
|
|
2210
|
+
protoOf(RandomPoolValue).t5v = function (gameId) {
|
|
2211
|
+
var index = getValue(this.m5v_1, gameId);
|
|
2212
|
+
return new GameCardDeckData(index, this.l5v_1.n5q_1.o(index));
|
|
2201
2213
|
};
|
|
2202
|
-
protoOf(RandomPoolValue).
|
|
2214
|
+
protoOf(RandomPoolValue).u5v = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2203
2215
|
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2204
2216
|
};
|
|
2205
|
-
protoOf(RandomPoolValue).
|
|
2206
|
-
randomResult = randomResult === VOID ? this.
|
|
2207
|
-
usedByGames = usedByGames === VOID ? this.
|
|
2208
|
-
reservedCardDecks = reservedCardDecks === VOID ? this.
|
|
2209
|
-
isUsed = isUsed === VOID ? this.
|
|
2210
|
-
return $super === VOID ? this.
|
|
2217
|
+
protoOf(RandomPoolValue).r5v = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2218
|
+
randomResult = randomResult === VOID ? this.l5v_1 : randomResult;
|
|
2219
|
+
usedByGames = usedByGames === VOID ? this.m5v_1 : usedByGames;
|
|
2220
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.n5v_1 : reservedCardDecks;
|
|
2221
|
+
isUsed = isUsed === VOID ? this.o5v_1 : isUsed;
|
|
2222
|
+
return $super === VOID ? this.u5v(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.u5v.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2211
2223
|
};
|
|
2212
2224
|
protoOf(RandomPoolValue).toString = function () {
|
|
2213
|
-
return 'RandomPoolValue(randomResult=' + this.
|
|
2225
|
+
return 'RandomPoolValue(randomResult=' + this.l5v_1.toString() + ', usedByGames=' + toString(this.m5v_1) + ', reservedCardDecks=' + this.n5v_1 + ', isUsed=' + this.o5v_1 + ')';
|
|
2214
2226
|
};
|
|
2215
2227
|
protoOf(RandomPoolValue).hashCode = function () {
|
|
2216
|
-
var result = this.
|
|
2217
|
-
result = imul(result, 31) + hashCode(this.
|
|
2218
|
-
result = imul(result, 31) + this.
|
|
2219
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
2228
|
+
var result = this.l5v_1.hashCode();
|
|
2229
|
+
result = imul(result, 31) + hashCode(this.m5v_1) | 0;
|
|
2230
|
+
result = imul(result, 31) + this.n5v_1 | 0;
|
|
2231
|
+
result = imul(result, 31) + getBooleanHashCode(this.o5v_1) | 0;
|
|
2220
2232
|
return result;
|
|
2221
2233
|
};
|
|
2222
2234
|
protoOf(RandomPoolValue).equals = function (other) {
|
|
@@ -2225,32 +2237,73 @@
|
|
|
2225
2237
|
if (!(other instanceof RandomPoolValue))
|
|
2226
2238
|
return false;
|
|
2227
2239
|
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2228
|
-
if (!this.
|
|
2240
|
+
if (!this.l5v_1.equals(tmp0_other_with_cast.l5v_1))
|
|
2229
2241
|
return false;
|
|
2230
|
-
if (!equals(this.
|
|
2242
|
+
if (!equals(this.m5v_1, tmp0_other_with_cast.m5v_1))
|
|
2231
2243
|
return false;
|
|
2232
|
-
if (!(this.
|
|
2244
|
+
if (!(this.n5v_1 === tmp0_other_with_cast.n5v_1))
|
|
2233
2245
|
return false;
|
|
2234
|
-
if (!(this.
|
|
2246
|
+
if (!(this.o5v_1 === tmp0_other_with_cast.o5v_1))
|
|
2235
2247
|
return false;
|
|
2236
2248
|
return true;
|
|
2237
2249
|
};
|
|
2238
2250
|
function getExceptionIfCooldown($this) {
|
|
2239
|
-
var currentTime;
|
|
2240
|
-
|
|
2241
|
-
|
|
2251
|
+
var currentTime = System_instance.zk();
|
|
2252
|
+
if (!($this.d5w_1 == null) && $this.e5w_1 >= $this.v5v_1.failedRequestAttempts) {
|
|
2253
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.v5v_1.failedAttemptCooldown, $this.e5w_1);
|
|
2254
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2255
|
+
var tmp0 = $this.d5w_1;
|
|
2256
|
+
var tmp$ret$1;
|
|
2257
|
+
$l$block: {
|
|
2258
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2259
|
+
if (tmp0 == null) {
|
|
2260
|
+
var message = 'Required value was null.';
|
|
2261
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2262
|
+
} else {
|
|
2263
|
+
tmp$ret$1 = tmp0;
|
|
2264
|
+
break $l$block;
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
var allowedRequestTime = tmp$ret$1.ol(timeToWait);
|
|
2268
|
+
if (allowedRequestTime.rl(currentTime) > 0) {
|
|
2269
|
+
var exception = new RandomException(VOID, 'getExceptionIfCooldown: ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.d5w_1) + ', ') + ('currentTime = ' + currentTime.toString() + ', ') + ('failedRequestCount = ' + $this.e5w_1));
|
|
2270
|
+
return exception;
|
|
2271
|
+
} else {
|
|
2272
|
+
$this.d5w_1 = null;
|
|
2273
|
+
}
|
|
2274
|
+
}
|
|
2275
|
+
return null;
|
|
2242
2276
|
}
|
|
2243
2277
|
function mapToRandomExceptionIfError($this, error) {
|
|
2244
|
-
|
|
2278
|
+
$this.d5w_1 = System_instance.zk();
|
|
2279
|
+
$this.e5w_1 = $this.e5w_1 + 1 | 0;
|
|
2280
|
+
var timeToWait = Duration__times_impl_sfuzvp($this.v5v_1.failedAttemptCooldown, $this.e5w_1);
|
|
2281
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2282
|
+
var tmp0 = $this.d5w_1;
|
|
2283
|
+
var tmp$ret$1;
|
|
2284
|
+
$l$block: {
|
|
2285
|
+
// Inline function 'kotlin.requireNotNull' call
|
|
2286
|
+
if (tmp0 == null) {
|
|
2287
|
+
var message = 'Required value was null.';
|
|
2288
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2289
|
+
} else {
|
|
2290
|
+
tmp$ret$1 = tmp0;
|
|
2291
|
+
break $l$block;
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
var allowedRequestTime = tmp$ret$1.ol(timeToWait);
|
|
2295
|
+
var randomException = new RandomException(VOID, 'mapToRandomExceptionIfError: error message = ' + error.message + ', ' + ('cooldown ends in ' + allowedRequestTime.toString() + ', ') + ('latestFailedAttemptTime = ' + toString_0($this.d5w_1) + ', ') + ('currentTime = ' + System_instance.zk().toString() + ', ') + ('failedRequestCount = ' + $this.e5w_1), error);
|
|
2296
|
+
$this.x5v_1.w('RandomPoolProvider', VOID, randomException);
|
|
2297
|
+
return randomException;
|
|
2245
2298
|
}
|
|
2246
2299
|
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2247
2300
|
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2248
|
-
tmp.
|
|
2249
|
-
tmp.
|
|
2250
|
-
return tmp.
|
|
2301
|
+
tmp.n9_1 = Unit_instance;
|
|
2302
|
+
tmp.o9_1 = null;
|
|
2303
|
+
return tmp.t9();
|
|
2251
2304
|
}
|
|
2252
2305
|
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2253
|
-
var existingCardDeck = $this.
|
|
2306
|
+
var existingCardDeck = $this.c5w_1.k2(userData.gameId);
|
|
2254
2307
|
var tmp;
|
|
2255
2308
|
if (!(existingCardDeck == null)) {
|
|
2256
2309
|
tmp = Companion_instance_2.nextRound(existingCardDeck, cardDeckData);
|
|
@@ -2261,18 +2314,18 @@
|
|
|
2261
2314
|
}
|
|
2262
2315
|
function getPreparedOrRequestPool($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2263
2316
|
var tmp = new $getPreparedOrRequestPoolCOROUTINE$($this, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, $completion);
|
|
2264
|
-
tmp.
|
|
2265
|
-
tmp.
|
|
2266
|
-
return tmp.
|
|
2317
|
+
tmp.n9_1 = Unit_instance;
|
|
2318
|
+
tmp.o9_1 = null;
|
|
2319
|
+
return tmp.t9();
|
|
2267
2320
|
}
|
|
2268
2321
|
function requestNewPool($this, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2269
|
-
return withContext($this.
|
|
2322
|
+
return withContext($this.y5v_1, RandomPoolProviderImpl$requestNewPool$slambda_0($this, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2270
2323
|
}
|
|
2271
2324
|
function Companion_9() {
|
|
2272
|
-
this.
|
|
2273
|
-
this.
|
|
2274
|
-
this.
|
|
2275
|
-
this.
|
|
2325
|
+
this.o5x_1 = 100;
|
|
2326
|
+
this.p5x_1 = 3;
|
|
2327
|
+
this.q5x_1 = 3000;
|
|
2328
|
+
this.r5x_1 = 10000;
|
|
2276
2329
|
}
|
|
2277
2330
|
var Companion_instance_11;
|
|
2278
2331
|
function Companion_getInstance_12() {
|
|
@@ -2282,74 +2335,74 @@
|
|
|
2282
2335
|
return uuid4().toString();
|
|
2283
2336
|
}
|
|
2284
2337
|
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2285
|
-
this.
|
|
2286
|
-
this.
|
|
2287
|
-
this.
|
|
2288
|
-
this.
|
|
2289
|
-
this.
|
|
2290
|
-
this.
|
|
2291
|
-
this.
|
|
2292
|
-
this.
|
|
2338
|
+
this.a5y_1 = this$0;
|
|
2339
|
+
this.b5y_1 = $minRoundsCountInPool;
|
|
2340
|
+
this.c5y_1 = $userData;
|
|
2341
|
+
this.d5y_1 = $min;
|
|
2342
|
+
this.e5y_1 = $max;
|
|
2343
|
+
this.f5y_1 = $cardsCount;
|
|
2344
|
+
this.g5y_1 = $signed;
|
|
2345
|
+
this.h5y_1 = $requestDurationWarnMillis;
|
|
2293
2346
|
CoroutineImpl.call(this, resultContinuation);
|
|
2294
2347
|
}
|
|
2295
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2296
|
-
var tmp = this.
|
|
2297
|
-
tmp.
|
|
2298
|
-
tmp.
|
|
2299
|
-
var tmp_0 = tmp.
|
|
2348
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).p5y = function ($this$withContext, $completion) {
|
|
2349
|
+
var tmp = this.d1g($this$withContext, $completion);
|
|
2350
|
+
tmp.n9_1 = Unit_instance;
|
|
2351
|
+
tmp.o9_1 = null;
|
|
2352
|
+
var tmp_0 = tmp.t9();
|
|
2300
2353
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2301
2354
|
return tmp_0;
|
|
2302
2355
|
return tmp_0;
|
|
2303
2356
|
};
|
|
2304
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2305
|
-
return this.
|
|
2357
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).da = function (p1, $completion) {
|
|
2358
|
+
return this.p5y((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2306
2359
|
};
|
|
2307
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2308
|
-
var suspendResult = this.
|
|
2360
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).t9 = function () {
|
|
2361
|
+
var suspendResult = this.n9_1;
|
|
2309
2362
|
$sm: do
|
|
2310
2363
|
try {
|
|
2311
|
-
var tmp = this.
|
|
2364
|
+
var tmp = this.l9_1;
|
|
2312
2365
|
switch (tmp) {
|
|
2313
2366
|
case 0:
|
|
2314
|
-
this.
|
|
2367
|
+
this.m9_1 = 10;
|
|
2315
2368
|
var tmp_0 = this;
|
|
2316
|
-
tmp_0.
|
|
2317
|
-
this.
|
|
2369
|
+
tmp_0.j5y_1 = this.a5y_1.a5w_1;
|
|
2370
|
+
this.k5y_1 = this.j5y_1;
|
|
2318
2371
|
var tmp_1 = this;
|
|
2319
|
-
tmp_1.
|
|
2320
|
-
this.
|
|
2321
|
-
suspendResult = this.
|
|
2372
|
+
tmp_1.l5y_1 = null;
|
|
2373
|
+
this.l9_1 = 1;
|
|
2374
|
+
suspendResult = this.k5y_1.f1o(this.l5y_1, this);
|
|
2322
2375
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2323
2376
|
return suspendResult;
|
|
2324
2377
|
}
|
|
2325
2378
|
|
|
2326
2379
|
continue $sm;
|
|
2327
2380
|
case 1:
|
|
2328
|
-
this.
|
|
2329
|
-
this.
|
|
2381
|
+
this.m5y_1 = Unit_instance;
|
|
2382
|
+
this.l9_1 = 2;
|
|
2330
2383
|
continue $sm;
|
|
2331
2384
|
case 2:
|
|
2332
|
-
this.
|
|
2333
|
-
this.
|
|
2334
|
-
this.
|
|
2385
|
+
this.m9_1 = 9;
|
|
2386
|
+
this.n5y_1 = Unit_instance;
|
|
2387
|
+
this.l9_1 = 3;
|
|
2335
2388
|
continue $sm;
|
|
2336
2389
|
case 3:
|
|
2337
|
-
this.
|
|
2338
|
-
if (!(this.
|
|
2390
|
+
this.o5y_1 = getExceptionIfCooldown(this.a5y_1);
|
|
2391
|
+
if (!(this.o5y_1 == null)) {
|
|
2339
2392
|
var tmp_2 = this;
|
|
2340
|
-
var exception = this.
|
|
2341
|
-
tmp_2.
|
|
2342
|
-
this.
|
|
2393
|
+
var exception = this.o5y_1;
|
|
2394
|
+
tmp_2.n5y_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2395
|
+
this.l9_1 = 7;
|
|
2343
2396
|
continue $sm;
|
|
2344
2397
|
} else {
|
|
2345
|
-
this.
|
|
2398
|
+
this.l9_1 = 4;
|
|
2346
2399
|
continue $sm;
|
|
2347
2400
|
}
|
|
2348
2401
|
|
|
2349
2402
|
case 4:
|
|
2350
|
-
this.
|
|
2351
|
-
this.
|
|
2352
|
-
suspendResult = getOrLoadGameCardDeckData(this.
|
|
2403
|
+
this.m9_1 = 6;
|
|
2404
|
+
this.l9_1 = 5;
|
|
2405
|
+
suspendResult = getOrLoadGameCardDeckData(this.a5y_1, this.b5y_1, this.c5y_1, this.d5y_1, this.e5y_1, this.f5y_1, this.g5y_1, this.h5y_1, this);
|
|
2353
2406
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2354
2407
|
return suspendResult;
|
|
2355
2408
|
}
|
|
@@ -2358,93 +2411,94 @@
|
|
|
2358
2411
|
case 5:
|
|
2359
2412
|
var cardDeckData = suspendResult;
|
|
2360
2413
|
var tmp_3 = this;
|
|
2361
|
-
tmp_3.
|
|
2362
|
-
this.
|
|
2414
|
+
tmp_3.n5y_1 = new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2415
|
+
this.l9_1 = 7;
|
|
2363
2416
|
continue $sm;
|
|
2364
2417
|
case 6:
|
|
2365
|
-
this.
|
|
2366
|
-
var tmp_4 = this.
|
|
2418
|
+
this.m9_1 = 9;
|
|
2419
|
+
var tmp_4 = this.o9_1;
|
|
2367
2420
|
if (tmp_4 instanceof Error) {
|
|
2368
|
-
var error = this.
|
|
2421
|
+
var error = this.o9_1;
|
|
2369
2422
|
var tmp_5 = this;
|
|
2370
|
-
var exception_0 = mapToRandomExceptionIfError(this.
|
|
2371
|
-
tmp_5.
|
|
2372
|
-
this.
|
|
2423
|
+
var exception_0 = mapToRandomExceptionIfError(this.a5y_1, error);
|
|
2424
|
+
tmp_5.n5y_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2425
|
+
this.l9_1 = 7;
|
|
2373
2426
|
continue $sm;
|
|
2374
2427
|
} else {
|
|
2375
|
-
throw this.
|
|
2428
|
+
throw this.o9_1;
|
|
2376
2429
|
}
|
|
2377
2430
|
|
|
2378
2431
|
case 7:
|
|
2379
|
-
this.
|
|
2380
|
-
this.
|
|
2381
|
-
this.
|
|
2432
|
+
this.m5y_1 = this.n5y_1;
|
|
2433
|
+
this.m9_1 = 10;
|
|
2434
|
+
this.l9_1 = 8;
|
|
2382
2435
|
continue $sm;
|
|
2383
2436
|
case 8:
|
|
2384
|
-
var tmp_6 = this.
|
|
2385
|
-
this.
|
|
2386
|
-
this.
|
|
2437
|
+
var tmp_6 = this.m5y_1;
|
|
2438
|
+
this.m9_1 = 10;
|
|
2439
|
+
this.k5y_1.q1n(this.l5y_1);
|
|
2387
2440
|
return tmp_6;
|
|
2388
2441
|
case 9:
|
|
2389
|
-
this.
|
|
2390
|
-
var t = this.
|
|
2391
|
-
this.
|
|
2442
|
+
this.m9_1 = 10;
|
|
2443
|
+
var t = this.o9_1;
|
|
2444
|
+
this.k5y_1.q1n(this.l5y_1);
|
|
2392
2445
|
throw t;
|
|
2393
2446
|
case 10:
|
|
2394
|
-
throw this.
|
|
2447
|
+
throw this.o9_1;
|
|
2395
2448
|
}
|
|
2396
2449
|
} catch ($p) {
|
|
2397
2450
|
var e = $p;
|
|
2398
|
-
if (this.
|
|
2451
|
+
if (this.m9_1 === 10) {
|
|
2399
2452
|
throw e;
|
|
2400
2453
|
} else {
|
|
2401
|
-
this.
|
|
2402
|
-
this.
|
|
2454
|
+
this.l9_1 = this.m9_1;
|
|
2455
|
+
this.o9_1 = e;
|
|
2403
2456
|
}
|
|
2404
2457
|
}
|
|
2405
2458
|
while (true);
|
|
2406
2459
|
};
|
|
2407
|
-
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).
|
|
2408
|
-
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.
|
|
2409
|
-
i.
|
|
2460
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).d1g = function ($this$withContext, completion) {
|
|
2461
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.a5y_1, this.b5y_1, this.c5y_1, this.d5y_1, this.e5y_1, this.f5y_1, this.g5y_1, this.h5y_1, completion);
|
|
2462
|
+
i.i5y_1 = $this$withContext;
|
|
2410
2463
|
return i;
|
|
2411
2464
|
};
|
|
2412
2465
|
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2413
2466
|
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2414
2467
|
var l = function ($this$withContext, $completion) {
|
|
2415
|
-
return i.
|
|
2468
|
+
return i.p5y($this$withContext, $completion);
|
|
2416
2469
|
};
|
|
2417
2470
|
l.$arity = 1;
|
|
2418
2471
|
return l;
|
|
2419
2472
|
}
|
|
2420
2473
|
function RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2421
|
-
this.
|
|
2422
|
-
this.
|
|
2423
|
-
this.
|
|
2424
|
-
this.
|
|
2425
|
-
this.
|
|
2426
|
-
this.
|
|
2474
|
+
this.y5y_1 = this$0;
|
|
2475
|
+
this.z5y_1 = $min;
|
|
2476
|
+
this.a5z_1 = $max;
|
|
2477
|
+
this.b5z_1 = $cardsCount;
|
|
2478
|
+
this.c5z_1 = $signed;
|
|
2479
|
+
this.d5z_1 = $requestDurationWarnMillis;
|
|
2427
2480
|
CoroutineImpl.call(this, resultContinuation);
|
|
2428
2481
|
}
|
|
2429
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2430
|
-
var tmp = this.
|
|
2431
|
-
tmp.
|
|
2432
|
-
tmp.
|
|
2433
|
-
return tmp.
|
|
2482
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).g5z = function ($this$withContext, $completion) {
|
|
2483
|
+
var tmp = this.d1g($this$withContext, $completion);
|
|
2484
|
+
tmp.n9_1 = Unit_instance;
|
|
2485
|
+
tmp.o9_1 = null;
|
|
2486
|
+
return tmp.t9();
|
|
2434
2487
|
};
|
|
2435
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2436
|
-
return this.
|
|
2488
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).da = function (p1, $completion) {
|
|
2489
|
+
return this.g5z((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2437
2490
|
};
|
|
2438
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2439
|
-
var suspendResult = this.
|
|
2491
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).t9 = function () {
|
|
2492
|
+
var suspendResult = this.n9_1;
|
|
2440
2493
|
$sm: do
|
|
2441
2494
|
try {
|
|
2442
|
-
var tmp = this.
|
|
2495
|
+
var tmp = this.l9_1;
|
|
2443
2496
|
switch (tmp) {
|
|
2444
2497
|
case 0:
|
|
2445
|
-
this.
|
|
2446
|
-
this.
|
|
2447
|
-
|
|
2498
|
+
this.m9_1 = 2;
|
|
2499
|
+
this.f5z_1 = System_instance.zk();
|
|
2500
|
+
this.l9_1 = 1;
|
|
2501
|
+
suspendResult = this.y5y_1.w5v_1.i5t(this.z5y_1, this.a5z_1, this.y5y_1.v5v_1.poolSize, this.b5z_1, new CardDecksRequestUserData(this.y5y_1.z5v_1(), this.y5y_1.v5v_1.poolSize), this.c5z_1, this);
|
|
2448
2502
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2449
2503
|
return suspendResult;
|
|
2450
2504
|
}
|
|
@@ -2452,58 +2506,67 @@
|
|
|
2452
2506
|
continue $sm;
|
|
2453
2507
|
case 1:
|
|
2454
2508
|
var result = suspendResult;
|
|
2455
|
-
var requestEndTime;
|
|
2456
|
-
|
|
2457
|
-
|
|
2509
|
+
var requestEndTime = System_instance.zk();
|
|
2510
|
+
var requestDuration = requestEndTime.ql(this.f5z_1);
|
|
2511
|
+
Companion_getInstance_0();
|
|
2512
|
+
var this_0 = this.d5z_1;
|
|
2513
|
+
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2514
|
+
var tmp_0 = 'actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ';
|
|
2515
|
+
Companion_getInstance_0();
|
|
2516
|
+
var this_1 = this.d5z_1;
|
|
2517
|
+
this.y5y_1.x5v_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + tmp_0 + ('expected = ' + Duration__toString_impl_8d916b(toDuration(this_1, DurationUnit_MILLISECONDS_getInstance()))));
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
return new RandomPoolValue(result);
|
|
2458
2521
|
case 2:
|
|
2459
|
-
throw this.
|
|
2522
|
+
throw this.o9_1;
|
|
2460
2523
|
}
|
|
2461
2524
|
} catch ($p) {
|
|
2462
2525
|
var e = $p;
|
|
2463
|
-
if (this.
|
|
2526
|
+
if (this.m9_1 === 2) {
|
|
2464
2527
|
throw e;
|
|
2465
2528
|
} else {
|
|
2466
|
-
this.
|
|
2467
|
-
this.
|
|
2529
|
+
this.l9_1 = this.m9_1;
|
|
2530
|
+
this.o9_1 = e;
|
|
2468
2531
|
}
|
|
2469
2532
|
}
|
|
2470
2533
|
while (true);
|
|
2471
2534
|
};
|
|
2472
|
-
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).
|
|
2473
|
-
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.
|
|
2474
|
-
i.
|
|
2535
|
+
protoOf(RandomPoolProviderImpl$requestNewPool$slambda).d1g = function ($this$withContext, completion) {
|
|
2536
|
+
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this.y5y_1, this.z5y_1, this.a5z_1, this.b5z_1, this.c5z_1, this.d5z_1, completion);
|
|
2537
|
+
i.e5z_1 = $this$withContext;
|
|
2475
2538
|
return i;
|
|
2476
2539
|
};
|
|
2477
2540
|
function RandomPoolProviderImpl$requestNewPool$slambda_0(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation) {
|
|
2478
2541
|
var i = new RandomPoolProviderImpl$requestNewPool$slambda(this$0, $min, $max, $cardsCount, $signed, $requestDurationWarnMillis, resultContinuation);
|
|
2479
2542
|
var l = function ($this$withContext, $completion) {
|
|
2480
|
-
return i.
|
|
2543
|
+
return i.g5z($this$withContext, $completion);
|
|
2481
2544
|
};
|
|
2482
2545
|
l.$arity = 1;
|
|
2483
2546
|
return l;
|
|
2484
2547
|
}
|
|
2485
2548
|
function $getOrLoadGameCardDeckDataCOROUTINE$(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2486
2549
|
CoroutineImpl.call(this, resultContinuation);
|
|
2487
|
-
this.
|
|
2488
|
-
this.
|
|
2489
|
-
this.
|
|
2490
|
-
this.
|
|
2491
|
-
this.
|
|
2492
|
-
this.
|
|
2493
|
-
this.
|
|
2494
|
-
this.
|
|
2495
|
-
}
|
|
2496
|
-
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).
|
|
2497
|
-
var suspendResult = this.
|
|
2550
|
+
this.n5w_1 = _this__u8e3s4;
|
|
2551
|
+
this.o5w_1 = minRoundsCountInPool;
|
|
2552
|
+
this.p5w_1 = userData;
|
|
2553
|
+
this.q5w_1 = min;
|
|
2554
|
+
this.r5w_1 = max;
|
|
2555
|
+
this.s5w_1 = cardsCount;
|
|
2556
|
+
this.t5w_1 = signed;
|
|
2557
|
+
this.u5w_1 = requestDurationWarnMillis;
|
|
2558
|
+
}
|
|
2559
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$).t9 = function () {
|
|
2560
|
+
var suspendResult = this.n9_1;
|
|
2498
2561
|
$sm: do
|
|
2499
2562
|
try {
|
|
2500
|
-
var tmp = this.
|
|
2563
|
+
var tmp = this.l9_1;
|
|
2501
2564
|
switch (tmp) {
|
|
2502
2565
|
case 0:
|
|
2503
|
-
this.
|
|
2504
|
-
this.
|
|
2505
|
-
this.
|
|
2506
|
-
suspendResult = getPreparedOrRequestPool(this.
|
|
2566
|
+
this.m9_1 = 2;
|
|
2567
|
+
this.v5w_1 = this.p5w_1.gameId;
|
|
2568
|
+
this.l9_1 = 1;
|
|
2569
|
+
suspendResult = getPreparedOrRequestPool(this.n5w_1, this.v5w_1, this.q5w_1, this.r5w_1, this.o5w_1, this.s5w_1, this.t5w_1, this.u5w_1, this);
|
|
2507
2570
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2508
2571
|
return suspendResult;
|
|
2509
2572
|
}
|
|
@@ -2511,86 +2574,86 @@
|
|
|
2511
2574
|
continue $sm;
|
|
2512
2575
|
case 1:
|
|
2513
2576
|
var randomPoolValue = suspendResult;
|
|
2514
|
-
var tmp0 = this.
|
|
2515
|
-
var key = randomPoolValue.
|
|
2516
|
-
tmp0.
|
|
2517
|
-
var cardDeckData = randomPoolValue.
|
|
2518
|
-
var
|
|
2519
|
-
var
|
|
2520
|
-
var cardDecksRecord = getPreparedGameCardDecksRecord(this.
|
|
2521
|
-
var tmp0_0 = this.
|
|
2522
|
-
var key_0 = this.
|
|
2523
|
-
tmp0_0.
|
|
2577
|
+
var tmp0 = this.n5w_1.b5w_1;
|
|
2578
|
+
var key = randomPoolValue.l5v_1.p5q_1;
|
|
2579
|
+
tmp0.n2(key, randomPoolValue);
|
|
2580
|
+
var cardDeckData = randomPoolValue.t5v(this.p5w_1.gameId);
|
|
2581
|
+
var tmp1_poolId = randomPoolValue.l5v_1.p5q_1;
|
|
2582
|
+
var tmp2_signature = randomPoolValue.l5v_1.q5q_1;
|
|
2583
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.n5w_1, tmp1_poolId, tmp2_signature, cardDeckData, this.p5w_1);
|
|
2584
|
+
var tmp0_0 = this.n5w_1.c5w_1;
|
|
2585
|
+
var key_0 = this.p5w_1.gameId;
|
|
2586
|
+
tmp0_0.n2(key_0, cardDecksRecord);
|
|
2524
2587
|
return cardDeckData;
|
|
2525
2588
|
case 2:
|
|
2526
|
-
throw this.
|
|
2589
|
+
throw this.o9_1;
|
|
2527
2590
|
}
|
|
2528
2591
|
} catch ($p) {
|
|
2529
2592
|
var e = $p;
|
|
2530
|
-
if (this.
|
|
2593
|
+
if (this.m9_1 === 2) {
|
|
2531
2594
|
throw e;
|
|
2532
2595
|
} else {
|
|
2533
|
-
this.
|
|
2534
|
-
this.
|
|
2596
|
+
this.l9_1 = this.m9_1;
|
|
2597
|
+
this.o9_1 = e;
|
|
2535
2598
|
}
|
|
2536
2599
|
}
|
|
2537
2600
|
while (true);
|
|
2538
2601
|
};
|
|
2539
2602
|
function $getPreparedOrRequestPoolCOROUTINE$(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, requestDurationWarnMillis, resultContinuation) {
|
|
2540
2603
|
CoroutineImpl.call(this, resultContinuation);
|
|
2541
|
-
this.
|
|
2542
|
-
this.
|
|
2543
|
-
this.
|
|
2544
|
-
this.
|
|
2545
|
-
this.
|
|
2546
|
-
this.
|
|
2547
|
-
this.
|
|
2548
|
-
this.
|
|
2549
|
-
}
|
|
2550
|
-
protoOf($getPreparedOrRequestPoolCOROUTINE$).
|
|
2551
|
-
var suspendResult = this.
|
|
2604
|
+
this.e5x_1 = _this__u8e3s4;
|
|
2605
|
+
this.f5x_1 = gameId;
|
|
2606
|
+
this.g5x_1 = min;
|
|
2607
|
+
this.h5x_1 = max;
|
|
2608
|
+
this.i5x_1 = minRoundsCount;
|
|
2609
|
+
this.j5x_1 = cardsCount;
|
|
2610
|
+
this.k5x_1 = signed;
|
|
2611
|
+
this.l5x_1 = requestDurationWarnMillis;
|
|
2612
|
+
}
|
|
2613
|
+
protoOf($getPreparedOrRequestPoolCOROUTINE$).t9 = function () {
|
|
2614
|
+
var suspendResult = this.n9_1;
|
|
2552
2615
|
$sm: do
|
|
2553
2616
|
try {
|
|
2554
|
-
var tmp = this.
|
|
2617
|
+
var tmp = this.l9_1;
|
|
2555
2618
|
switch (tmp) {
|
|
2556
2619
|
case 0:
|
|
2557
|
-
this.
|
|
2620
|
+
this.m9_1 = 2;
|
|
2558
2621
|
var tmp_0 = this;
|
|
2559
|
-
var tmp0 = this.
|
|
2622
|
+
var tmp0 = this.e5x_1.b5w_1;
|
|
2560
2623
|
var destination = LinkedHashMap_init_$Create$();
|
|
2561
2624
|
var _iterator__ex2g4s = tmp0.s().j();
|
|
2562
2625
|
while (_iterator__ex2g4s.k()) {
|
|
2563
2626
|
var element = _iterator__ex2g4s.l();
|
|
2564
|
-
var tmp0_0 = element.u().
|
|
2565
|
-
var key = this.
|
|
2566
|
-
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).
|
|
2567
|
-
destination.
|
|
2627
|
+
var tmp0_0 = element.u().m5v_1;
|
|
2628
|
+
var key = this.f5x_1;
|
|
2629
|
+
if ((isInterface(tmp0_0, KtMap) ? tmp0_0 : THROW_CCE()).i2(key)) {
|
|
2630
|
+
destination.n2(element.t(), element.u());
|
|
2568
2631
|
}
|
|
2569
2632
|
}
|
|
2570
2633
|
|
|
2571
|
-
tmp_0.
|
|
2572
|
-
if (!(this.
|
|
2573
|
-
return this.
|
|
2634
|
+
tmp_0.m5x_1 = firstOrNull(destination.s());
|
|
2635
|
+
if (!(this.m5x_1 == null)) {
|
|
2636
|
+
return this.m5x_1.u().s5v(this.f5x_1);
|
|
2574
2637
|
}
|
|
2575
2638
|
|
|
2576
2639
|
var tmp_1 = this;
|
|
2577
|
-
var tmp0_1 = this.
|
|
2640
|
+
var tmp0_1 = this.e5x_1.b5w_1;
|
|
2578
2641
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2579
2642
|
var _iterator__ex2g4s_0 = tmp0_1.s().j();
|
|
2580
2643
|
while (_iterator__ex2g4s_0.k()) {
|
|
2581
2644
|
var element_0 = _iterator__ex2g4s_0.l();
|
|
2582
|
-
if (element_0.u().
|
|
2583
|
-
destination_0.
|
|
2645
|
+
if (element_0.u().p5v(this.i5x_1)) {
|
|
2646
|
+
destination_0.n2(element_0.t(), element_0.u());
|
|
2584
2647
|
}
|
|
2585
2648
|
}
|
|
2586
2649
|
|
|
2587
|
-
tmp_1.
|
|
2588
|
-
if (!(this.
|
|
2589
|
-
return this.
|
|
2650
|
+
tmp_1.n5x_1 = firstOrNull(destination_0.s());
|
|
2651
|
+
if (!(this.n5x_1 == null)) {
|
|
2652
|
+
return this.n5x_1.u().q5v(this.f5x_1, this.i5x_1, this.e5x_1.v5v_1.thresholdForUsedPool);
|
|
2590
2653
|
}
|
|
2591
2654
|
|
|
2592
|
-
this.
|
|
2593
|
-
suspendResult = requestNewPool(this.
|
|
2655
|
+
this.l9_1 = 1;
|
|
2656
|
+
suspendResult = requestNewPool(this.e5x_1, this.g5x_1, this.h5x_1, this.j5x_1, this.k5x_1, this.l5x_1, this);
|
|
2594
2657
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2595
2658
|
return suspendResult;
|
|
2596
2659
|
}
|
|
@@ -2598,23 +2661,23 @@
|
|
|
2598
2661
|
continue $sm;
|
|
2599
2662
|
case 1:
|
|
2600
2663
|
var cardDecks = suspendResult;
|
|
2601
|
-
return cardDecks.
|
|
2664
|
+
return cardDecks.q5v(this.f5x_1, this.i5x_1, this.e5x_1.v5v_1.thresholdForUsedPool);
|
|
2602
2665
|
case 2:
|
|
2603
|
-
throw this.
|
|
2666
|
+
throw this.o9_1;
|
|
2604
2667
|
}
|
|
2605
2668
|
} catch ($p) {
|
|
2606
2669
|
var e = $p;
|
|
2607
|
-
if (this.
|
|
2670
|
+
if (this.m9_1 === 2) {
|
|
2608
2671
|
throw e;
|
|
2609
2672
|
} else {
|
|
2610
|
-
this.
|
|
2611
|
-
this.
|
|
2673
|
+
this.l9_1 = this.m9_1;
|
|
2674
|
+
this.o9_1 = e;
|
|
2612
2675
|
}
|
|
2613
2676
|
}
|
|
2614
2677
|
while (true);
|
|
2615
2678
|
};
|
|
2616
2679
|
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2617
|
-
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().
|
|
2680
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().p12_1 : dispatcher;
|
|
2618
2681
|
var tmp;
|
|
2619
2682
|
if (idsProvider === VOID) {
|
|
2620
2683
|
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
@@ -2622,83 +2685,84 @@
|
|
|
2622
2685
|
tmp = idsProvider;
|
|
2623
2686
|
}
|
|
2624
2687
|
idsProvider = tmp;
|
|
2625
|
-
this.
|
|
2626
|
-
this.
|
|
2627
|
-
this.
|
|
2628
|
-
this.
|
|
2629
|
-
this.
|
|
2630
|
-
this.
|
|
2688
|
+
this.v5v_1 = params;
|
|
2689
|
+
this.w5v_1 = randomOrgApiService;
|
|
2690
|
+
this.x5v_1 = logger;
|
|
2691
|
+
this.y5v_1 = dispatcher;
|
|
2692
|
+
this.z5v_1 = idsProvider;
|
|
2693
|
+
this.a5w_1 = Mutex();
|
|
2631
2694
|
var tmp_0 = this;
|
|
2632
2695
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2633
|
-
tmp_0.
|
|
2696
|
+
tmp_0.b5w_1 = LinkedHashMap_init_$Create$();
|
|
2634
2697
|
var tmp_1 = this;
|
|
2635
2698
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2636
|
-
tmp_1.
|
|
2637
|
-
this.
|
|
2699
|
+
tmp_1.c5w_1 = LinkedHashMap_init_$Create$();
|
|
2700
|
+
this.d5w_1 = null;
|
|
2701
|
+
this.e5w_1 = 0;
|
|
2638
2702
|
}
|
|
2639
|
-
protoOf(RandomPoolProviderImpl).
|
|
2640
|
-
var tmp = withContext(this.
|
|
2703
|
+
protoOf(RandomPoolProviderImpl).i5v = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, $completion) {
|
|
2704
|
+
var tmp = withContext(this.y5v_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, requestDurationWarnMillis, null), $completion);
|
|
2641
2705
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2642
2706
|
return tmp;
|
|
2643
2707
|
return tmp;
|
|
2644
2708
|
};
|
|
2645
|
-
protoOf(RandomPoolProviderImpl).
|
|
2646
|
-
return this.
|
|
2709
|
+
protoOf(RandomPoolProviderImpl).h5z = function (gameId) {
|
|
2710
|
+
return this.c5w_1.k2(gameId);
|
|
2647
2711
|
};
|
|
2648
2712
|
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2649
|
-
return this.
|
|
2713
|
+
return this.h5z(gameId);
|
|
2650
2714
|
};
|
|
2651
|
-
protoOf(RandomPoolProviderImpl).
|
|
2652
|
-
return this.
|
|
2715
|
+
protoOf(RandomPoolProviderImpl).i5z = function (id) {
|
|
2716
|
+
return this.b5w_1.k2(id);
|
|
2653
2717
|
};
|
|
2654
2718
|
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2655
|
-
return this.
|
|
2719
|
+
return this.i5z(id);
|
|
2656
2720
|
};
|
|
2657
|
-
protoOf(RandomPoolProviderImpl).
|
|
2658
|
-
return this.
|
|
2721
|
+
protoOf(RandomPoolProviderImpl).j5z = function () {
|
|
2722
|
+
return this.b5w_1.m();
|
|
2659
2723
|
};
|
|
2660
2724
|
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2661
|
-
return this.
|
|
2725
|
+
return this.j5z();
|
|
2662
2726
|
};
|
|
2663
|
-
protoOf(RandomPoolProviderImpl).
|
|
2664
|
-
var gameCardDecksRecord = this.
|
|
2727
|
+
protoOf(RandomPoolProviderImpl).k5v = function (gameId) {
|
|
2728
|
+
var gameCardDecksRecord = this.c5w_1.k2(gameId);
|
|
2665
2729
|
if (!(gameCardDecksRecord == null)) {
|
|
2666
|
-
var randomPoolValue = this.
|
|
2730
|
+
var randomPoolValue = this.b5w_1.k2(gameCardDecksRecord.poolId);
|
|
2667
2731
|
if (!(randomPoolValue == null)) {
|
|
2668
2732
|
// Inline function 'kotlin.apply' call
|
|
2669
|
-
var this_0 = toMutableMap(randomPoolValue.
|
|
2670
|
-
this_0.
|
|
2671
|
-
var newPoolValue = randomPoolValue.
|
|
2672
|
-
if (newPoolValue.
|
|
2673
|
-
this.
|
|
2733
|
+
var this_0 = toMutableMap(randomPoolValue.m5v_1);
|
|
2734
|
+
this_0.o2(gameId);
|
|
2735
|
+
var newPoolValue = randomPoolValue.r5v(VOID, toMap(this_0));
|
|
2736
|
+
if (newPoolValue.m5v_1.p()) {
|
|
2737
|
+
this.b5w_1.o2(gameCardDecksRecord.poolId);
|
|
2674
2738
|
} else {
|
|
2675
|
-
var tmp0 = this.
|
|
2739
|
+
var tmp0 = this.b5w_1;
|
|
2676
2740
|
// Inline function 'kotlin.collections.set' call
|
|
2677
2741
|
var key = gameCardDecksRecord.poolId;
|
|
2678
|
-
tmp0.
|
|
2742
|
+
tmp0.n2(key, newPoolValue);
|
|
2679
2743
|
}
|
|
2680
2744
|
}
|
|
2681
2745
|
}
|
|
2682
|
-
this.
|
|
2746
|
+
this.c5w_1.o2(gameId);
|
|
2683
2747
|
};
|
|
2684
2748
|
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2685
2749
|
return function ($this$defaultRequest) {
|
|
2686
2750
|
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2687
|
-
$this$defaultRequest.
|
|
2751
|
+
$this$defaultRequest.s36($url);
|
|
2688
2752
|
return Unit_instance;
|
|
2689
2753
|
};
|
|
2690
2754
|
}
|
|
2691
2755
|
function ApiCommonConfigs$setupLogging$2$1($externalLogger) {
|
|
2692
|
-
this.
|
|
2756
|
+
this.k5z_1 = $externalLogger;
|
|
2693
2757
|
}
|
|
2694
|
-
protoOf(ApiCommonConfigs$setupLogging$2$1).
|
|
2695
|
-
this.
|
|
2758
|
+
protoOf(ApiCommonConfigs$setupLogging$2$1).t3x = function (message) {
|
|
2759
|
+
this.k5z_1(message);
|
|
2696
2760
|
};
|
|
2697
2761
|
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2698
2762
|
return function ($this$install) {
|
|
2699
|
-
$this$install.
|
|
2700
|
-
$this$install.
|
|
2701
|
-
$this$install.
|
|
2763
|
+
$this$install.j3z(get_DEFAULT(Companion_instance_0));
|
|
2764
|
+
$this$install.i3z_1 = $config.n5z_1;
|
|
2765
|
+
$this$install.j3z(new ApiCommonConfigs$setupLogging$2$1($externalLogger));
|
|
2702
2766
|
return Unit_instance;
|
|
2703
2767
|
};
|
|
2704
2768
|
}
|
|
@@ -2710,32 +2774,32 @@
|
|
|
2710
2774
|
}
|
|
2711
2775
|
function ApiCommonConfigs() {
|
|
2712
2776
|
}
|
|
2713
|
-
protoOf(ApiCommonConfigs).
|
|
2714
|
-
_this__u8e3s4.
|
|
2715
|
-
this.
|
|
2716
|
-
this.
|
|
2717
|
-
this.
|
|
2777
|
+
protoOf(ApiCommonConfigs).p5z = function (_this__u8e3s4, config, externalLogger) {
|
|
2778
|
+
_this__u8e3s4.e2y_1 = true;
|
|
2779
|
+
this.q5z(_this__u8e3s4, config.l5z_1);
|
|
2780
|
+
this.r5z(_this__u8e3s4, config.o5z_1);
|
|
2781
|
+
this.s5z(_this__u8e3s4, config, externalLogger);
|
|
2718
2782
|
};
|
|
2719
|
-
protoOf(ApiCommonConfigs).
|
|
2783
|
+
protoOf(ApiCommonConfigs).q5z = function (_this__u8e3s4, url) {
|
|
2720
2784
|
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2721
2785
|
};
|
|
2722
|
-
protoOf(ApiCommonConfigs).
|
|
2786
|
+
protoOf(ApiCommonConfigs).s5z = function (_this__u8e3s4, config, externalLogger) {
|
|
2723
2787
|
var tmp = Companion_getInstance_1();
|
|
2724
|
-
_this__u8e3s4.
|
|
2788
|
+
_this__u8e3s4.z2y(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2725
2789
|
};
|
|
2726
|
-
protoOf(ApiCommonConfigs).
|
|
2790
|
+
protoOf(ApiCommonConfigs).r5z = function (_this__u8e3s4, json) {
|
|
2727
2791
|
var tmp = Plugin_getInstance();
|
|
2728
|
-
_this__u8e3s4.
|
|
2792
|
+
_this__u8e3s4.z2y(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2729
2793
|
};
|
|
2730
2794
|
var ApiCommonConfigs_instance;
|
|
2731
2795
|
function ApiCommonConfigs_getInstance() {
|
|
2732
2796
|
return ApiCommonConfigs_instance;
|
|
2733
2797
|
}
|
|
2734
2798
|
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2735
|
-
$this$Json.
|
|
2736
|
-
$this$Json.
|
|
2737
|
-
$this$Json.
|
|
2738
|
-
$this$Json.
|
|
2799
|
+
$this$Json.s4y_1 = true;
|
|
2800
|
+
$this$Json.r4y_1 = true;
|
|
2801
|
+
$this$Json.q4y_1 = true;
|
|
2802
|
+
$this$Json.p4y_1 = false;
|
|
2739
2803
|
return Unit_instance;
|
|
2740
2804
|
}
|
|
2741
2805
|
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
@@ -2748,19 +2812,19 @@
|
|
|
2748
2812
|
tmp = json;
|
|
2749
2813
|
}
|
|
2750
2814
|
json = tmp;
|
|
2751
|
-
this.
|
|
2752
|
-
this.
|
|
2753
|
-
this.
|
|
2754
|
-
this.
|
|
2815
|
+
this.l5z_1 = baseUrl;
|
|
2816
|
+
this.m5z_1 = timeoutMillis;
|
|
2817
|
+
this.n5z_1 = loggingLevel;
|
|
2818
|
+
this.o5z_1 = json;
|
|
2755
2819
|
}
|
|
2756
2820
|
protoOf(HttpParams).toString = function () {
|
|
2757
|
-
return 'HttpParams(baseUrl=' + this.
|
|
2821
|
+
return 'HttpParams(baseUrl=' + this.l5z_1 + ', timeoutMillis=' + this.m5z_1.toString() + ', loggingLevel=' + this.n5z_1.toString() + ', json=' + toString(this.o5z_1) + ')';
|
|
2758
2822
|
};
|
|
2759
2823
|
protoOf(HttpParams).hashCode = function () {
|
|
2760
|
-
var result = getStringHashCode(this.
|
|
2761
|
-
result = imul(result, 31) + this.
|
|
2762
|
-
result = imul(result, 31) + this.
|
|
2763
|
-
result = imul(result, 31) + hashCode(this.
|
|
2824
|
+
var result = getStringHashCode(this.l5z_1);
|
|
2825
|
+
result = imul(result, 31) + this.m5z_1.hashCode() | 0;
|
|
2826
|
+
result = imul(result, 31) + this.n5z_1.hashCode() | 0;
|
|
2827
|
+
result = imul(result, 31) + hashCode(this.o5z_1) | 0;
|
|
2764
2828
|
return result;
|
|
2765
2829
|
};
|
|
2766
2830
|
protoOf(HttpParams).equals = function (other) {
|
|
@@ -2769,13 +2833,13 @@
|
|
|
2769
2833
|
if (!(other instanceof HttpParams))
|
|
2770
2834
|
return false;
|
|
2771
2835
|
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2772
|
-
if (!(this.
|
|
2836
|
+
if (!(this.l5z_1 === tmp0_other_with_cast.l5z_1))
|
|
2773
2837
|
return false;
|
|
2774
|
-
if (!this.
|
|
2838
|
+
if (!this.m5z_1.equals(tmp0_other_with_cast.m5z_1))
|
|
2775
2839
|
return false;
|
|
2776
|
-
if (!this.
|
|
2840
|
+
if (!this.n5z_1.equals(tmp0_other_with_cast.n5z_1))
|
|
2777
2841
|
return false;
|
|
2778
|
-
if (!equals(this.
|
|
2842
|
+
if (!equals(this.o5z_1, tmp0_other_with_cast.o5z_1))
|
|
2779
2843
|
return false;
|
|
2780
2844
|
return true;
|
|
2781
2845
|
};
|
|
@@ -2801,12 +2865,12 @@
|
|
|
2801
2865
|
}
|
|
2802
2866
|
function nextBytesCopyTo($this, bytes) {
|
|
2803
2867
|
try {
|
|
2804
|
-
$this.
|
|
2868
|
+
$this.x5z_1.b5q(bytes);
|
|
2805
2869
|
} catch ($p) {
|
|
2806
2870
|
if ($p instanceof SecRandomCopyException) {
|
|
2807
2871
|
var error = $p;
|
|
2808
|
-
$this.
|
|
2809
|
-
$this.
|
|
2872
|
+
$this.w5z_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2873
|
+
$this.y5z_1.nh(bytes);
|
|
2810
2874
|
return Unit_instance;
|
|
2811
2875
|
} else {
|
|
2812
2876
|
throw $p;
|
|
@@ -2830,11 +2894,11 @@
|
|
|
2830
2894
|
}
|
|
2831
2895
|
function SecureRandom_0(logger) {
|
|
2832
2896
|
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2833
|
-
this.
|
|
2834
|
-
this.
|
|
2835
|
-
this.
|
|
2897
|
+
this.w5z_1 = logger;
|
|
2898
|
+
this.x5z_1 = new SecureRandom();
|
|
2899
|
+
this.y5z_1 = Default_getInstance();
|
|
2836
2900
|
}
|
|
2837
|
-
protoOf(SecureRandom_0).
|
|
2901
|
+
protoOf(SecureRandom_0).lh = function (from, until) {
|
|
2838
2902
|
checkRangeBounds(this, from, until);
|
|
2839
2903
|
var n = until - from | 0;
|
|
2840
2904
|
if (n > 0 || n === -2147483648) {
|
|
@@ -2861,7 +2925,7 @@
|
|
|
2861
2925
|
}
|
|
2862
2926
|
}
|
|
2863
2927
|
};
|
|
2864
|
-
protoOf(SecureRandom_0).
|
|
2928
|
+
protoOf(SecureRandom_0).u5z = function () {
|
|
2865
2929
|
return !(nextBits(this, 1) === 0);
|
|
2866
2930
|
};
|
|
2867
2931
|
function overhand(_this__u8e3s4, iterations, random) {
|
|
@@ -2880,21 +2944,21 @@
|
|
|
2880
2944
|
while (pile.m() > 0) {
|
|
2881
2945
|
var tmp0 = pile.m();
|
|
2882
2946
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
2883
|
-
var b = 1 + random.
|
|
2947
|
+
var b = 1 + random.t5z(VOID, twentypc) | 0;
|
|
2884
2948
|
var cards = Math.min(tmp0, b);
|
|
2885
|
-
pile2.
|
|
2949
|
+
pile2.e2(0, take(pile, cards));
|
|
2886
2950
|
// Inline function 'kotlin.repeat' call
|
|
2887
2951
|
var inductionVariable_0 = 0;
|
|
2888
2952
|
if (inductionVariable_0 < cards)
|
|
2889
2953
|
do {
|
|
2890
2954
|
var index_0 = inductionVariable_0;
|
|
2891
2955
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
2892
|
-
pile.
|
|
2956
|
+
pile.h2(0);
|
|
2893
2957
|
}
|
|
2894
2958
|
while (inductionVariable_0 < cards);
|
|
2895
2959
|
}
|
|
2896
2960
|
pile.n(pile2);
|
|
2897
|
-
pile2.
|
|
2961
|
+
pile2.d2();
|
|
2898
2962
|
}
|
|
2899
2963
|
while (inductionVariable < iterations);
|
|
2900
2964
|
return pile;
|
|
@@ -2911,18 +2975,18 @@
|
|
|
2911
2975
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2912
2976
|
var mid = deck.m() / 2 | 0;
|
|
2913
2977
|
var tenpc = mid / 10 | 0;
|
|
2914
|
-
var cut = (mid - tenpc | 0) + random.
|
|
2978
|
+
var cut = (mid - tenpc | 0) + random.t5z(VOID, imul(2, tenpc) + 1 | 0) | 0;
|
|
2915
2979
|
var deck1 = toMutableList(take(pile, cut));
|
|
2916
2980
|
var deck2 = toMutableList(drop(pile, cut));
|
|
2917
|
-
pile.
|
|
2918
|
-
var fromTop = random.
|
|
2981
|
+
pile.d2();
|
|
2982
|
+
var fromTop = random.u5z();
|
|
2919
2983
|
while (deck1.m() > 0 && deck2.m() > 0) {
|
|
2920
2984
|
if (fromTop) {
|
|
2921
|
-
pile.e(deck1.
|
|
2922
|
-
pile.e(deck2.
|
|
2985
|
+
pile.e(deck1.h2(0));
|
|
2986
|
+
pile.e(deck2.h2(0));
|
|
2923
2987
|
} else {
|
|
2924
|
-
pile.e(deck1.
|
|
2925
|
-
pile.e(deck2.
|
|
2988
|
+
pile.e(deck1.h2(get_lastIndex(deck1)));
|
|
2989
|
+
pile.e(deck2.h2(get_lastIndex(deck2)));
|
|
2926
2990
|
}
|
|
2927
2991
|
}
|
|
2928
2992
|
if (deck1.m() > 0) {
|
|
@@ -2937,22 +3001,22 @@
|
|
|
2937
3001
|
}
|
|
2938
3002
|
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
2939
3003
|
return function ($this$install) {
|
|
2940
|
-
$this$install.
|
|
2941
|
-
$this$install.
|
|
3004
|
+
$this$install.v3i($config.m5z_1);
|
|
3005
|
+
$this$install.t3i($config.m5z_1);
|
|
2942
3006
|
return Unit_instance;
|
|
2943
3007
|
};
|
|
2944
3008
|
}
|
|
2945
3009
|
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
2946
3010
|
return function ($this$HttpClient) {
|
|
2947
3011
|
var tmp = Plugin_getInstance_0();
|
|
2948
|
-
$this$HttpClient.
|
|
2949
|
-
ApiCommonConfigs_instance.
|
|
3012
|
+
$this$HttpClient.z2y(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
3013
|
+
ApiCommonConfigs_instance.p5z($this$HttpClient, $config, $externalLogger);
|
|
2950
3014
|
return Unit_instance;
|
|
2951
3015
|
};
|
|
2952
3016
|
}
|
|
2953
3017
|
function HttpFactory() {
|
|
2954
3018
|
}
|
|
2955
|
-
protoOf(HttpFactory).
|
|
3019
|
+
protoOf(HttpFactory).z5z = function (config, externalLogger) {
|
|
2956
3020
|
var tmp = Js_instance;
|
|
2957
3021
|
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
2958
3022
|
};
|
|
@@ -2961,15 +3025,15 @@
|
|
|
2961
3025
|
return HttpFactory_instance;
|
|
2962
3026
|
}
|
|
2963
3027
|
//region block: post-declaration
|
|
2964
|
-
protoOf($serializer).
|
|
2965
|
-
protoOf($serializer_0).
|
|
2966
|
-
protoOf($serializer_2).
|
|
2967
|
-
protoOf($serializer_3).
|
|
2968
|
-
protoOf($serializer_5).
|
|
2969
|
-
protoOf($serializer_6).
|
|
2970
|
-
protoOf(RandomPoolProviderImpl).
|
|
2971
|
-
protoOf(SecureRandom_0).
|
|
2972
|
-
protoOf(SecureRandom_0).
|
|
3028
|
+
protoOf($serializer).i4j = typeParametersSerializers;
|
|
3029
|
+
protoOf($serializer_0).i4j = typeParametersSerializers;
|
|
3030
|
+
protoOf($serializer_2).i4j = typeParametersSerializers;
|
|
3031
|
+
protoOf($serializer_3).i4j = typeParametersSerializers;
|
|
3032
|
+
protoOf($serializer_5).i4j = typeParametersSerializers;
|
|
3033
|
+
protoOf($serializer_6).i4j = typeParametersSerializers;
|
|
3034
|
+
protoOf(RandomPoolProviderImpl).j5v = getCardDeck$default;
|
|
3035
|
+
protoOf(SecureRandom_0).t5z = nextInt$default;
|
|
3036
|
+
protoOf(SecureRandom_0).v5z = shuffle;
|
|
2973
3037
|
//endregion
|
|
2974
3038
|
//region block: init
|
|
2975
3039
|
Companion_instance_1 = new Companion();
|