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