game_client_logic_deb 1.8.181 → 1.8.208
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 +80 -80
- package/Kosi-Kodein-kodein-di.js +654 -654
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1536 -1536
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1956 -1758
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +17460 -15728
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +143 -53
- package/Logic_Debertz-game_client.js +4747 -4954
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +3281 -2516
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-coroutines-core.js +3702 -2670
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +297 -297
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2154 -2126
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1512 -1498
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +703 -5
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +7197 -5
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +1460 -11
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +87 -5
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http.js +3253 -5
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +6455 -5
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +57 -5
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +837 -5
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +359 -5
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +2645 -5
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +456 -5
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +562 -186
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +122 -106
- package/raspberry-cardgame-lib-logger.js.map +1 -1
- package/raspberry-cardgame-lib-random.js +2827 -164
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +163 -5
- package/secure-random-secure-random.js.map +1 -1
- package/uuid.js +36 -36
- package/uuid.js.map +1 -1
|
@@ -1,63 +1,325 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib.js', './ktor-ktor-client-
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-serialization-kotlinx-serialization-core.js', './kotlinx-serialization-kotlinx-serialization-json.js', './ktor-ktor-client-core.js', './ktor-ktor-utils.js', './ktor-ktor-http.js', './kotlinx-coroutines-core.js', './uuid.js', './Kotlin-DateTime-library-kotlinx-datetime.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('./ktor-ktor-client-
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js'), require('./kotlinx-serialization-kotlinx-serialization-json.js'), require('./ktor-ktor-client-core.js'), require('./ktor-ktor-utils.js'), require('./ktor-ktor-http.js'), require('./kotlinx-coroutines-core.js'), require('./uuid.js'), require('./Kotlin-DateTime-library-kotlinx-datetime.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 this['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'.");
|
|
9
9
|
}
|
|
10
|
-
if (typeof this['
|
|
11
|
-
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency '
|
|
10
|
+
if (typeof this['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlinx-serialization-kotlinx-serialization-core' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-core' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
12
12
|
}
|
|
13
13
|
if (typeof this['kotlinx-serialization-kotlinx-serialization-json'] === 'undefined') {
|
|
14
14
|
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'kotlinx-serialization-kotlinx-serialization-json' was not found. Please, check whether 'kotlinx-serialization-kotlinx-serialization-json' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
if (typeof this['ktor-ktor-client-core'] === 'undefined') {
|
|
17
|
+
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-client-core' was not found. Please, check whether 'ktor-ktor-client-core' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
18
|
+
}
|
|
19
|
+
if (typeof this['ktor-ktor-utils'] === 'undefined') {
|
|
20
|
+
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-utils' was not found. Please, check whether 'ktor-ktor-utils' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
21
|
+
}
|
|
22
|
+
if (typeof this['ktor-ktor-http'] === 'undefined') {
|
|
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
|
+
}
|
|
25
|
+
if (typeof this['kotlinx-coroutines-core'] === 'undefined') {
|
|
26
|
+
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
|
+
}
|
|
28
|
+
if (typeof uuid === 'undefined') {
|
|
29
|
+
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
|
+
}
|
|
31
|
+
if (typeof this['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
|
+
if (typeof this['ktor-ktor-client-logging'] === 'undefined') {
|
|
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
|
+
}
|
|
37
|
+
if (typeof this['ktor-ktor-serialization-kotlinx-json'] === 'undefined') {
|
|
38
|
+
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-serialization-kotlinx-json' was not found. Please, check whether 'ktor-ktor-serialization-kotlinx-json' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
39
|
+
}
|
|
40
|
+
if (typeof this['ktor-ktor-client-content-negotiation'] === 'undefined') {
|
|
41
|
+
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'ktor-ktor-client-content-negotiation' was not found. Please, check whether 'ktor-ktor-client-content-negotiation' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
42
|
+
}
|
|
43
|
+
if (typeof this['secure-random-secure-random'] === 'undefined') {
|
|
44
|
+
throw new Error("Error loading module 'raspberry-cardgame-lib-random'. Its dependency 'secure-random-secure-random' was not found. Please, check whether 'secure-random-secure-random' is loaded prior to 'raspberry-cardgame-lib-random'.");
|
|
45
|
+
}
|
|
46
|
+
if (typeof this['raspberry-cardgame-lib-logger'] === 'undefined') {
|
|
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
|
+
}
|
|
49
|
+
root['raspberry-cardgame-lib-random'] = factory(typeof this['raspberry-cardgame-lib-random'] === 'undefined' ? {} : this['raspberry-cardgame-lib-random'], this['kotlin-kotlin-stdlib'], this['kotlinx-serialization-kotlinx-serialization-core'], this['kotlinx-serialization-kotlinx-serialization-json'], this['ktor-ktor-client-core'], this['ktor-ktor-utils'], this['ktor-ktor-http'], this['kotlinx-coroutines-core'], uuid, this['Kotlin-DateTime-library-kotlinx-datetime'], this['ktor-ktor-client-logging'], this['ktor-ktor-serialization-kotlinx-json'], this['ktor-ktor-client-content-negotiation'], this['secure-random-secure-random'], this['raspberry-cardgame-lib-logger']);
|
|
17
50
|
}
|
|
18
|
-
}(globalThis, function (_, kotlin_kotlin, kotlin_io_ktor_ktor_client_logging,
|
|
51
|
+
}(globalThis, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core, kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_utils, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_com_benasher44_uuid, kotlin_org_jetbrains_kotlinx_kotlinx_datetime, 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) {
|
|
19
52
|
'use strict';
|
|
20
53
|
//region block: imports
|
|
21
54
|
var imul = Math.imul;
|
|
22
|
-
var
|
|
23
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var THROW_CCE = kotlin_kotlin.$_$.we;
|
|
27
|
-
var equals = kotlin_kotlin.$_$.ma;
|
|
28
|
-
var initMetadataForClass = kotlin_kotlin.$_$.ta;
|
|
29
|
-
var listOf = kotlin_kotlin.$_$.x7;
|
|
30
|
-
var plus = kotlin_kotlin.$_$.i8;
|
|
55
|
+
var clz32 = Math.clz32;
|
|
56
|
+
var protoOf = kotlin_kotlin.$_$.qc;
|
|
57
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.qb;
|
|
58
|
+
var RuntimeException = kotlin_kotlin.$_$.pg;
|
|
31
59
|
var VOID = kotlin_kotlin.$_$.f;
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
60
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.h2;
|
|
61
|
+
var captureStack = kotlin_kotlin.$_$.za;
|
|
62
|
+
var initMetadataForClass = kotlin_kotlin.$_$.pb;
|
|
63
|
+
var getStringHashCode = kotlin_kotlin.$_$.nb;
|
|
64
|
+
var THROW_CCE = kotlin_kotlin.$_$.qg;
|
|
65
|
+
var toString = kotlin_kotlin.$_$.uc;
|
|
66
|
+
var hashCode = kotlin_kotlin.$_$.ob;
|
|
67
|
+
var equals = kotlin_kotlin.$_$.hb;
|
|
68
|
+
var listOf = kotlin_kotlin.$_$.n8;
|
|
69
|
+
var plus = kotlin_kotlin.$_$.y8;
|
|
70
|
+
var emptyList = kotlin_kotlin.$_$.l7;
|
|
71
|
+
var defineProp = kotlin_kotlin.$_$.gb;
|
|
72
|
+
var toLong = kotlin_kotlin.$_$.sc;
|
|
73
|
+
var PluginGeneratedSerialDescriptor = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.a2;
|
|
74
|
+
var UnknownFieldException_init_$Create$ = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f;
|
|
75
|
+
var StringSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.s;
|
|
76
|
+
var get_nullable = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w;
|
|
77
|
+
var typeParametersSerializers = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.v1;
|
|
78
|
+
var GeneratedSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.w1;
|
|
79
|
+
var initMetadataForObject = kotlin_kotlin.$_$.ub;
|
|
80
|
+
var throwMissingFieldException = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.f2;
|
|
81
|
+
var Unit_instance = kotlin_kotlin.$_$.n5;
|
|
82
|
+
var objectCreate = kotlin_kotlin.$_$.pc;
|
|
83
|
+
var toString_0 = kotlin_kotlin.$_$.uh;
|
|
84
|
+
var IntSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.q;
|
|
85
|
+
var SerializerFactory = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.b2;
|
|
86
|
+
var ArrayListSerializer = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.t1;
|
|
87
|
+
var BooleanSerializer_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_core.$_$.n;
|
|
88
|
+
var getBooleanHashCode = kotlin_kotlin.$_$.kb;
|
|
89
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.sb;
|
|
90
|
+
var getValue = kotlin_kotlin.$_$.y7;
|
|
91
|
+
var get_jsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.d;
|
|
92
|
+
var CoroutineImpl = kotlin_kotlin.$_$.sa;
|
|
93
|
+
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
94
|
+
var url = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
95
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
96
|
+
var JsType_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
97
|
+
var getKClass = kotlin_kotlin.$_$.e;
|
|
98
|
+
var arrayOf = kotlin_kotlin.$_$.eh;
|
|
99
|
+
var createKType = kotlin_kotlin.$_$.b;
|
|
100
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.a;
|
|
101
|
+
var typeInfoImpl = kotlin_io_ktor_ktor_utils.$_$.l;
|
|
102
|
+
var OutgoingContent = kotlin_io_ktor_ktor_http.$_$.p;
|
|
103
|
+
var NullBody_instance = kotlin_io_ktor_ktor_http.$_$.a;
|
|
104
|
+
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.f;
|
|
105
|
+
var HttpStatement = kotlin_io_ktor_ktor_client_core.$_$.r;
|
|
106
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.ea;
|
|
107
|
+
var JsonObject = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.a;
|
|
108
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.rb;
|
|
109
|
+
var KtMap = kotlin_kotlin.$_$.y5;
|
|
110
|
+
var isInterface = kotlin_kotlin.$_$.dc;
|
|
111
|
+
var Companion_getInstance_0 = kotlin_kotlin.$_$.f5;
|
|
112
|
+
var Long = kotlin_kotlin.$_$.kg;
|
|
113
|
+
var DurationUnit_MILLISECONDS_getInstance = kotlin_kotlin.$_$.g;
|
|
114
|
+
var toDuration = kotlin_kotlin.$_$.xf;
|
|
115
|
+
var Duration__toString_impl_8d916b = kotlin_kotlin.$_$.u2;
|
|
116
|
+
var Duration__hashCode_impl_u4exz6 = kotlin_kotlin.$_$.n2;
|
|
117
|
+
var emptyMap = kotlin_kotlin.$_$.m7;
|
|
118
|
+
var toMutableMap = kotlin_kotlin.$_$.v9;
|
|
119
|
+
var toMap = kotlin_kotlin.$_$.s9;
|
|
120
|
+
var get_lastIndex = kotlin_kotlin.$_$.g8;
|
|
121
|
+
var to = kotlin_kotlin.$_$.vh;
|
|
122
|
+
var mapOf = kotlin_kotlin.$_$.q8;
|
|
123
|
+
var Result = kotlin_kotlin.$_$.og;
|
|
124
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f1;
|
|
125
|
+
var Companion_instance = kotlin_kotlin.$_$.i5;
|
|
126
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.e3;
|
|
127
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.tb;
|
|
128
|
+
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
129
|
+
var uuid4 = kotlin_com_benasher44_uuid.$_$.a;
|
|
130
|
+
var createFailure = kotlin_kotlin.$_$.gh;
|
|
131
|
+
var System_instance = kotlin_org_jetbrains_kotlinx_kotlinx_datetime.$_$.a;
|
|
132
|
+
var withTimeout = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
133
|
+
var toDuration_0 = kotlin_kotlin.$_$.yf;
|
|
134
|
+
var Duration__compareTo_impl_pchp0f = kotlin_kotlin.$_$.m2;
|
|
135
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.w;
|
|
136
|
+
var firstOrNull = kotlin_kotlin.$_$.q7;
|
|
137
|
+
var Dispatchers_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.m;
|
|
138
|
+
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.z;
|
|
139
|
+
var KtMutableMap = kotlin_kotlin.$_$.a6;
|
|
140
|
+
var header = kotlin_io_ktor_ktor_client_core.$_$.n;
|
|
141
|
+
var Companion_instance_0 = kotlin_io_ktor_ktor_client_logging.$_$.b;
|
|
142
|
+
var get_DEFAULT = kotlin_io_ktor_ktor_client_logging.$_$.d;
|
|
143
|
+
var json = kotlin_io_ktor_ktor_serialization_kotlinx_json.$_$.a;
|
|
144
|
+
var defaultRequest = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
145
|
+
var Companion_getInstance_1 = kotlin_io_ktor_ktor_client_logging.$_$.c;
|
|
146
|
+
var Plugin_getInstance = kotlin_io_ktor_ktor_client_content_negotiation.$_$.a;
|
|
38
147
|
var LogLevel_ALL_getInstance = kotlin_io_ktor_ktor_client_logging.$_$.a;
|
|
39
|
-
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.
|
|
148
|
+
var Json = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.b;
|
|
149
|
+
var SecRandomCopyException = kotlin_org_kotlincrypto_secure_random.$_$.a;
|
|
150
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
151
|
+
var PlatformRaspberryLogger = kotlin_io_raspberryapps_cardgame_logger.$_$.f;
|
|
152
|
+
var SecureRandom = kotlin_org_kotlincrypto_secure_random.$_$.b;
|
|
153
|
+
var Default_getInstance = kotlin_kotlin.$_$.c5;
|
|
154
|
+
var Plugin_getInstance_0 = kotlin_io_ktor_ktor_client_core.$_$.c;
|
|
155
|
+
var Js_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
156
|
+
var HttpClient = kotlin_io_ktor_ktor_client_core.$_$.s;
|
|
40
157
|
//endregion
|
|
41
158
|
//region block: pre-declaration
|
|
159
|
+
initMetadataForCompanion(Companion);
|
|
160
|
+
initMetadataForClass(RandomException, 'RandomException', VOID, RuntimeException);
|
|
161
|
+
initMetadataForClass(CardDecksRequestUserData, 'CardDecksRequestUserData');
|
|
42
162
|
initMetadataForClass(CardDeckRequestUserData, 'CardDeckRequestUserData');
|
|
43
163
|
initMetadataForClass(UserInfoData, 'UserInfoData');
|
|
44
|
-
|
|
164
|
+
initMetadataForClass(CardDeckResult, 'CardDeckResult');
|
|
165
|
+
initMetadataForCompanion(Companion_0);
|
|
45
166
|
initMetadataForClass(GameCardDecksRecord, 'GameCardDecksRecord');
|
|
46
167
|
initMetadataForClass(GameCardDeckData, 'GameCardDeckData');
|
|
47
|
-
initMetadataForClass(RandomOrgConfig, 'RandomOrgConfig', RandomOrgConfig);
|
|
48
|
-
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [5]);
|
|
49
168
|
initMetadataForClass(HttpConfig, 'HttpConfig');
|
|
169
|
+
initMetadataForClass(RandomOrgConfig, 'RandomOrgConfig', RandomOrgConfig);
|
|
170
|
+
initMetadataForCompanion(Companion_1);
|
|
171
|
+
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
172
|
+
initMetadataForClass(ErrorResponseDto, 'ErrorResponseDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
173
|
+
initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
174
|
+
initMetadataForClass(ErrorDto, 'ErrorDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
|
|
175
|
+
initMetadataForCompanion(Companion_2, VOID, [SerializerFactory]);
|
|
176
|
+
initMetadataForClass($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
177
|
+
initMetadataForClass(RandomRequestDto, 'RandomRequestDto', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_5});
|
|
178
|
+
initMetadataForCompanion(Companion_3);
|
|
179
|
+
initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
180
|
+
initMetadataForClass(RandomIntegerSequencesParamsDto, 'RandomIntegerSequencesParamsDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
|
|
181
|
+
initMetadataForCompanion(Companion_4);
|
|
182
|
+
initMetadataForObject($serializer_3, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
183
|
+
initMetadataForClass(CardDecksUserDataDto, 'CardDecksUserDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
|
|
184
|
+
initMetadataForCompanion(Companion_5, VOID, [SerializerFactory]);
|
|
185
|
+
initMetadataForClass($serializer_4, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
186
|
+
initMetadataForClass(RandomResponseDto, 'RandomResponseDto', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_8});
|
|
187
|
+
initMetadataForCompanion(Companion_6);
|
|
188
|
+
initMetadataForObject($serializer_5, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
189
|
+
initMetadataForClass(IntegerSequencesResultDto, 'IntegerSequencesResultDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_3});
|
|
190
|
+
initMetadataForCompanion(Companion_7);
|
|
191
|
+
initMetadataForObject($serializer_6, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
192
|
+
initMetadataForClass(IntegerSequencesDataDto, 'IntegerSequencesDataDto', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_4});
|
|
193
|
+
initMetadataForInterface(RandomOrgApiService, 'RandomOrgApiService', VOID, VOID, VOID, [5, 6]);
|
|
194
|
+
initMetadataForCompanion(Companion_8);
|
|
195
|
+
initMetadataForCoroutine($getRandomCardDecksCOROUTINE$1, CoroutineImpl);
|
|
196
|
+
initMetadataForCoroutine($throwIfErrorCOROUTINE$2, CoroutineImpl);
|
|
197
|
+
initMetadataForClass(RandomOrgApiServiceImpl, 'RandomOrgApiServiceImpl', VOID, VOID, [RandomOrgApiService], [5, 6, 2]);
|
|
198
|
+
initMetadataForClass(PoolParams, 'PoolParams', PoolParams);
|
|
199
|
+
function getCardDeck$default(minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion, $super) {
|
|
200
|
+
min = min === VOID ? 0 : min;
|
|
201
|
+
max = max === VOID ? 51 : max;
|
|
202
|
+
cardsCount = cardsCount === VOID ? 52 : cardsCount;
|
|
203
|
+
signed = signed === VOID ? false : signed;
|
|
204
|
+
timeoutMillis = timeoutMillis === VOID ? new Long(7000, 0) : timeoutMillis;
|
|
205
|
+
return $super === VOID ? this.q5n(minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) : $super.q5n.call(this, minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion);
|
|
206
|
+
}
|
|
207
|
+
initMetadataForInterface(RandomPoolProvider, 'RandomPoolProvider', VOID, VOID, VOID, [7]);
|
|
208
|
+
initMetadataForClass(RandomPoolValue, 'RandomPoolValue');
|
|
209
|
+
initMetadataForLambda(RandomPoolProviderImpl$getCardDeck$slambda$slambda, CoroutineImpl, VOID, [1]);
|
|
210
|
+
initMetadataForCompanion(Companion_9);
|
|
211
|
+
initMetadataForLambda(RandomPoolProviderImpl$getCardDeck$slambda, CoroutineImpl, VOID, [1]);
|
|
212
|
+
initMetadataForLambda(RandomPoolProviderImpl$requestNewCardDecks$slambda, CoroutineImpl, VOID, [1]);
|
|
213
|
+
initMetadataForCoroutine($getOrLoadGameCardDeckDataCOROUTINE$3, CoroutineImpl);
|
|
214
|
+
initMetadataForCoroutine($getPreparedRandomPoolValueCOROUTINE$4, CoroutineImpl);
|
|
215
|
+
initMetadataForClass(RandomPoolProviderImpl, 'RandomPoolProviderImpl', VOID, VOID, [RandomPoolProvider], [7, 6, 4]);
|
|
216
|
+
initMetadataForClass(ApiCommonConfigs$setupLogging$1$1);
|
|
217
|
+
initMetadataForObject(ApiCommonConfigs, 'ApiCommonConfigs');
|
|
218
|
+
initMetadataForClass(HttpParams, 'HttpParams');
|
|
219
|
+
function shuffle(list) {
|
|
220
|
+
var inductionVariable = get_lastIndex(list);
|
|
221
|
+
if (1 <= inductionVariable)
|
|
222
|
+
do {
|
|
223
|
+
var i = inductionVariable;
|
|
224
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
225
|
+
var j = this.q5s(0, i + 1 | 0);
|
|
226
|
+
list.c2(j, list.c2(i, list.o(j)));
|
|
227
|
+
}
|
|
228
|
+
while (1 <= inductionVariable);
|
|
229
|
+
return list;
|
|
230
|
+
}
|
|
231
|
+
initMetadataForInterface(CustomRandom, 'CustomRandom');
|
|
232
|
+
initMetadataForClass(SecureRandom_0, 'SecureRandom', SecureRandom_0, VOID, [CustomRandom]);
|
|
233
|
+
initMetadataForObject(HttpFactory, 'HttpFactory');
|
|
50
234
|
//endregion
|
|
235
|
+
function Companion() {
|
|
236
|
+
this.v5i_1 = 100001;
|
|
237
|
+
}
|
|
238
|
+
var Companion_instance_1;
|
|
239
|
+
function Companion_getInstance_2() {
|
|
240
|
+
return Companion_instance_1;
|
|
241
|
+
}
|
|
242
|
+
function RandomException(code, message, cause) {
|
|
243
|
+
code = code === VOID ? null : code;
|
|
244
|
+
cause = cause === VOID ? null : cause;
|
|
245
|
+
RuntimeException_init_$Init$(message, cause, this);
|
|
246
|
+
captureStack(this, RandomException);
|
|
247
|
+
this.w5i_1 = code;
|
|
248
|
+
}
|
|
249
|
+
function CardDecksRequestUserData(id, count) {
|
|
250
|
+
this.id = id;
|
|
251
|
+
this.count = count;
|
|
252
|
+
}
|
|
253
|
+
protoOf(CardDecksRequestUserData).q5h = function () {
|
|
254
|
+
return this.id;
|
|
255
|
+
};
|
|
256
|
+
protoOf(CardDecksRequestUserData).x5i = function () {
|
|
257
|
+
return this.count;
|
|
258
|
+
};
|
|
259
|
+
protoOf(CardDecksRequestUserData).me = function () {
|
|
260
|
+
return this.id;
|
|
261
|
+
};
|
|
262
|
+
protoOf(CardDecksRequestUserData).ne = function () {
|
|
263
|
+
return this.count;
|
|
264
|
+
};
|
|
265
|
+
protoOf(CardDecksRequestUserData).y5i = function (id, count) {
|
|
266
|
+
return new CardDecksRequestUserData(id, count);
|
|
267
|
+
};
|
|
268
|
+
protoOf(CardDecksRequestUserData).copy = function (id, count, $super) {
|
|
269
|
+
id = id === VOID ? this.id : id;
|
|
270
|
+
count = count === VOID ? this.count : count;
|
|
271
|
+
return this.y5i(id, count);
|
|
272
|
+
};
|
|
273
|
+
protoOf(CardDecksRequestUserData).toString = function () {
|
|
274
|
+
return 'CardDecksRequestUserData(id=' + this.id + ', count=' + this.count + ')';
|
|
275
|
+
};
|
|
276
|
+
protoOf(CardDecksRequestUserData).hashCode = function () {
|
|
277
|
+
var result = getStringHashCode(this.id);
|
|
278
|
+
result = imul(result, 31) + this.count | 0;
|
|
279
|
+
return result;
|
|
280
|
+
};
|
|
281
|
+
protoOf(CardDecksRequestUserData).equals = function (other) {
|
|
282
|
+
if (this === other)
|
|
283
|
+
return true;
|
|
284
|
+
if (!(other instanceof CardDecksRequestUserData))
|
|
285
|
+
return false;
|
|
286
|
+
var tmp0_other_with_cast = other instanceof CardDecksRequestUserData ? other : THROW_CCE();
|
|
287
|
+
if (!(this.id === tmp0_other_with_cast.id))
|
|
288
|
+
return false;
|
|
289
|
+
if (!(this.count === tmp0_other_with_cast.count))
|
|
290
|
+
return false;
|
|
291
|
+
return true;
|
|
292
|
+
};
|
|
51
293
|
function CardDeckRequestUserData(players, gameId) {
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
294
|
+
this.players = players;
|
|
295
|
+
this.gameId = gameId;
|
|
54
296
|
}
|
|
297
|
+
protoOf(CardDeckRequestUserData).z5i = function () {
|
|
298
|
+
return this.players;
|
|
299
|
+
};
|
|
300
|
+
protoOf(CardDeckRequestUserData).a5j = function () {
|
|
301
|
+
return this.gameId;
|
|
302
|
+
};
|
|
303
|
+
protoOf(CardDeckRequestUserData).me = function () {
|
|
304
|
+
return this.players;
|
|
305
|
+
};
|
|
306
|
+
protoOf(CardDeckRequestUserData).ne = function () {
|
|
307
|
+
return this.gameId;
|
|
308
|
+
};
|
|
309
|
+
protoOf(CardDeckRequestUserData).b5j = function (players, gameId) {
|
|
310
|
+
return new CardDeckRequestUserData(players, gameId);
|
|
311
|
+
};
|
|
312
|
+
protoOf(CardDeckRequestUserData).copy = function (players, gameId, $super) {
|
|
313
|
+
players = players === VOID ? this.players : players;
|
|
314
|
+
gameId = gameId === VOID ? this.gameId : gameId;
|
|
315
|
+
return this.b5j(players, gameId);
|
|
316
|
+
};
|
|
55
317
|
protoOf(CardDeckRequestUserData).toString = function () {
|
|
56
|
-
return 'CardDeckRequestUserData(players=' + toString(this.
|
|
318
|
+
return 'CardDeckRequestUserData(players=' + toString(this.players) + ', gameId=' + this.gameId + ')';
|
|
57
319
|
};
|
|
58
320
|
protoOf(CardDeckRequestUserData).hashCode = function () {
|
|
59
|
-
var result = hashCode(this.
|
|
60
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
321
|
+
var result = hashCode(this.players);
|
|
322
|
+
result = imul(result, 31) + getStringHashCode(this.gameId) | 0;
|
|
61
323
|
return result;
|
|
62
324
|
};
|
|
63
325
|
protoOf(CardDeckRequestUserData).equals = function (other) {
|
|
@@ -66,22 +328,42 @@
|
|
|
66
328
|
if (!(other instanceof CardDeckRequestUserData))
|
|
67
329
|
return false;
|
|
68
330
|
var tmp0_other_with_cast = other instanceof CardDeckRequestUserData ? other : THROW_CCE();
|
|
69
|
-
if (!equals(this.
|
|
331
|
+
if (!equals(this.players, tmp0_other_with_cast.players))
|
|
70
332
|
return false;
|
|
71
|
-
if (!(this.
|
|
333
|
+
if (!(this.gameId === tmp0_other_with_cast.gameId))
|
|
72
334
|
return false;
|
|
73
335
|
return true;
|
|
74
336
|
};
|
|
75
337
|
function UserInfoData(id, name) {
|
|
76
|
-
this.
|
|
77
|
-
this.
|
|
338
|
+
this.id = id;
|
|
339
|
+
this.name = name;
|
|
78
340
|
}
|
|
341
|
+
protoOf(UserInfoData).q5h = function () {
|
|
342
|
+
return this.id;
|
|
343
|
+
};
|
|
344
|
+
protoOf(UserInfoData).p2 = function () {
|
|
345
|
+
return this.name;
|
|
346
|
+
};
|
|
347
|
+
protoOf(UserInfoData).me = function () {
|
|
348
|
+
return this.id;
|
|
349
|
+
};
|
|
350
|
+
protoOf(UserInfoData).ne = function () {
|
|
351
|
+
return this.name;
|
|
352
|
+
};
|
|
353
|
+
protoOf(UserInfoData).c5j = function (id, name) {
|
|
354
|
+
return new UserInfoData(id, name);
|
|
355
|
+
};
|
|
356
|
+
protoOf(UserInfoData).copy = function (id, name, $super) {
|
|
357
|
+
id = id === VOID ? this.id : id;
|
|
358
|
+
name = name === VOID ? this.name : name;
|
|
359
|
+
return this.c5j(id, name);
|
|
360
|
+
};
|
|
79
361
|
protoOf(UserInfoData).toString = function () {
|
|
80
|
-
return 'UserInfoData(id=' + this.
|
|
362
|
+
return 'UserInfoData(id=' + this.id + ', name=' + this.name + ')';
|
|
81
363
|
};
|
|
82
364
|
protoOf(UserInfoData).hashCode = function () {
|
|
83
|
-
var result = getStringHashCode(this.
|
|
84
|
-
result = imul(result, 31) + getStringHashCode(this.
|
|
365
|
+
var result = getStringHashCode(this.id);
|
|
366
|
+
result = imul(result, 31) + getStringHashCode(this.name) | 0;
|
|
85
367
|
return result;
|
|
86
368
|
};
|
|
87
369
|
protoOf(UserInfoData).equals = function (other) {
|
|
@@ -90,62 +372,103 @@
|
|
|
90
372
|
if (!(other instanceof UserInfoData))
|
|
91
373
|
return false;
|
|
92
374
|
var tmp0_other_with_cast = other instanceof UserInfoData ? other : THROW_CCE();
|
|
93
|
-
if (!(this.
|
|
375
|
+
if (!(this.id === tmp0_other_with_cast.id))
|
|
94
376
|
return false;
|
|
95
|
-
if (!(this.
|
|
377
|
+
if (!(this.name === tmp0_other_with_cast.name))
|
|
96
378
|
return false;
|
|
97
379
|
return true;
|
|
98
380
|
};
|
|
99
|
-
function
|
|
381
|
+
function CardDeckResult(cardDecks, responseText, id, signature) {
|
|
382
|
+
this.d5j_1 = cardDecks;
|
|
383
|
+
this.e5j_1 = responseText;
|
|
384
|
+
this.f5j_1 = id;
|
|
385
|
+
this.g5j_1 = signature;
|
|
386
|
+
}
|
|
387
|
+
protoOf(CardDeckResult).toString = function () {
|
|
388
|
+
return 'CardDeckResult(cardDecks=' + toString(this.d5j_1) + ', responseText=' + this.e5j_1 + ', id=' + this.f5j_1 + ', signature=' + this.g5j_1 + ')';
|
|
389
|
+
};
|
|
390
|
+
protoOf(CardDeckResult).hashCode = function () {
|
|
391
|
+
var result = hashCode(this.d5j_1);
|
|
392
|
+
result = imul(result, 31) + getStringHashCode(this.e5j_1) | 0;
|
|
393
|
+
result = imul(result, 31) + getStringHashCode(this.f5j_1) | 0;
|
|
394
|
+
result = imul(result, 31) + (this.g5j_1 == null ? 0 : getStringHashCode(this.g5j_1)) | 0;
|
|
395
|
+
return result;
|
|
396
|
+
};
|
|
397
|
+
protoOf(CardDeckResult).equals = function (other) {
|
|
398
|
+
if (this === other)
|
|
399
|
+
return true;
|
|
400
|
+
if (!(other instanceof CardDeckResult))
|
|
401
|
+
return false;
|
|
402
|
+
var tmp0_other_with_cast = other instanceof CardDeckResult ? other : THROW_CCE();
|
|
403
|
+
if (!equals(this.d5j_1, tmp0_other_with_cast.d5j_1))
|
|
404
|
+
return false;
|
|
405
|
+
if (!(this.e5j_1 === tmp0_other_with_cast.e5j_1))
|
|
406
|
+
return false;
|
|
407
|
+
if (!(this.f5j_1 === tmp0_other_with_cast.f5j_1))
|
|
408
|
+
return false;
|
|
409
|
+
if (!(this.g5j_1 == tmp0_other_with_cast.g5j_1))
|
|
410
|
+
return false;
|
|
411
|
+
return true;
|
|
412
|
+
};
|
|
413
|
+
function Companion_0() {
|
|
100
414
|
}
|
|
101
|
-
protoOf(
|
|
102
|
-
return new GameCardDecksRecord(signature, userData, listOf(newCardDeckData));
|
|
415
|
+
protoOf(Companion_0).firstRound = function (id, signature, newCardDeckData, userData) {
|
|
416
|
+
return new GameCardDecksRecord(id, signature, userData, listOf(newCardDeckData));
|
|
103
417
|
};
|
|
104
|
-
protoOf(
|
|
105
|
-
return gameCardDecksRecord.copy(VOID, VOID, plus(gameCardDecksRecord.rounds, newCardDeckData));
|
|
418
|
+
protoOf(Companion_0).newRound = function (gameCardDecksRecord, newCardDeckData) {
|
|
419
|
+
return gameCardDecksRecord.copy(VOID, VOID, VOID, plus(gameCardDecksRecord.rounds, newCardDeckData));
|
|
106
420
|
};
|
|
107
|
-
var
|
|
108
|
-
function
|
|
109
|
-
return
|
|
421
|
+
var Companion_instance_2;
|
|
422
|
+
function Companion_getInstance_3() {
|
|
423
|
+
return Companion_instance_2;
|
|
110
424
|
}
|
|
111
|
-
function GameCardDecksRecord(signature, userData, rounds) {
|
|
425
|
+
function GameCardDecksRecord(id, signature, userData, rounds) {
|
|
112
426
|
rounds = rounds === VOID ? emptyList() : rounds;
|
|
427
|
+
this.id = id;
|
|
113
428
|
this.signature = signature;
|
|
114
429
|
this.userData = userData;
|
|
115
430
|
this.rounds = rounds;
|
|
116
431
|
}
|
|
117
|
-
protoOf(GameCardDecksRecord).
|
|
432
|
+
protoOf(GameCardDecksRecord).q5h = function () {
|
|
433
|
+
return this.id;
|
|
434
|
+
};
|
|
435
|
+
protoOf(GameCardDecksRecord).h5j = function () {
|
|
118
436
|
return this.signature;
|
|
119
437
|
};
|
|
120
|
-
protoOf(GameCardDecksRecord).
|
|
438
|
+
protoOf(GameCardDecksRecord).i5j = function () {
|
|
121
439
|
return this.userData;
|
|
122
440
|
};
|
|
123
|
-
protoOf(GameCardDecksRecord).
|
|
441
|
+
protoOf(GameCardDecksRecord).j5j = function () {
|
|
124
442
|
return this.rounds;
|
|
125
443
|
};
|
|
126
|
-
protoOf(GameCardDecksRecord).
|
|
444
|
+
protoOf(GameCardDecksRecord).me = function () {
|
|
445
|
+
return this.id;
|
|
446
|
+
};
|
|
447
|
+
protoOf(GameCardDecksRecord).ne = function () {
|
|
127
448
|
return this.signature;
|
|
128
449
|
};
|
|
129
|
-
protoOf(GameCardDecksRecord).
|
|
450
|
+
protoOf(GameCardDecksRecord).fj = function () {
|
|
130
451
|
return this.userData;
|
|
131
452
|
};
|
|
132
|
-
protoOf(GameCardDecksRecord).
|
|
453
|
+
protoOf(GameCardDecksRecord).k5j = function () {
|
|
133
454
|
return this.rounds;
|
|
134
455
|
};
|
|
135
|
-
protoOf(GameCardDecksRecord).
|
|
136
|
-
return new GameCardDecksRecord(signature, userData, rounds);
|
|
456
|
+
protoOf(GameCardDecksRecord).l5j = function (id, signature, userData, rounds) {
|
|
457
|
+
return new GameCardDecksRecord(id, signature, userData, rounds);
|
|
137
458
|
};
|
|
138
|
-
protoOf(GameCardDecksRecord).copy = function (signature, userData, rounds, $super) {
|
|
459
|
+
protoOf(GameCardDecksRecord).copy = function (id, signature, userData, rounds, $super) {
|
|
460
|
+
id = id === VOID ? this.id : id;
|
|
139
461
|
signature = signature === VOID ? this.signature : signature;
|
|
140
462
|
userData = userData === VOID ? this.userData : userData;
|
|
141
463
|
rounds = rounds === VOID ? this.rounds : rounds;
|
|
142
|
-
return this.
|
|
464
|
+
return this.l5j(id, signature, userData, rounds);
|
|
143
465
|
};
|
|
144
466
|
protoOf(GameCardDecksRecord).toString = function () {
|
|
145
|
-
return 'GameCardDecksRecord(signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
467
|
+
return 'GameCardDecksRecord(id=' + this.id + ', signature=' + this.signature + ', userData=' + this.userData.toString() + ', rounds=' + toString(this.rounds) + ')';
|
|
146
468
|
};
|
|
147
469
|
protoOf(GameCardDecksRecord).hashCode = function () {
|
|
148
|
-
var result = getStringHashCode(this.
|
|
470
|
+
var result = getStringHashCode(this.id);
|
|
471
|
+
result = imul(result, 31) + (this.signature == null ? 0 : getStringHashCode(this.signature)) | 0;
|
|
149
472
|
result = imul(result, 31) + this.userData.hashCode() | 0;
|
|
150
473
|
result = imul(result, 31) + hashCode(this.rounds) | 0;
|
|
151
474
|
return result;
|
|
@@ -156,7 +479,9 @@
|
|
|
156
479
|
if (!(other instanceof GameCardDecksRecord))
|
|
157
480
|
return false;
|
|
158
481
|
var tmp0_other_with_cast = other instanceof GameCardDecksRecord ? other : THROW_CCE();
|
|
159
|
-
if (!(this.
|
|
482
|
+
if (!(this.id === tmp0_other_with_cast.id))
|
|
483
|
+
return false;
|
|
484
|
+
if (!(this.signature == tmp0_other_with_cast.signature))
|
|
160
485
|
return false;
|
|
161
486
|
if (!this.userData.equals(tmp0_other_with_cast.userData))
|
|
162
487
|
return false;
|
|
@@ -168,25 +493,25 @@
|
|
|
168
493
|
this.cardDeckIndex = cardDeckIndex;
|
|
169
494
|
this.cards = cards;
|
|
170
495
|
}
|
|
171
|
-
protoOf(GameCardDeckData).
|
|
496
|
+
protoOf(GameCardDeckData).m5j = function () {
|
|
172
497
|
return this.cardDeckIndex;
|
|
173
498
|
};
|
|
174
|
-
protoOf(GameCardDeckData).
|
|
499
|
+
protoOf(GameCardDeckData).n5j = function () {
|
|
175
500
|
return this.cards;
|
|
176
501
|
};
|
|
177
|
-
protoOf(GameCardDeckData).
|
|
502
|
+
protoOf(GameCardDeckData).me = function () {
|
|
178
503
|
return this.cardDeckIndex;
|
|
179
504
|
};
|
|
180
|
-
protoOf(GameCardDeckData).
|
|
505
|
+
protoOf(GameCardDeckData).ne = function () {
|
|
181
506
|
return this.cards;
|
|
182
507
|
};
|
|
183
|
-
protoOf(GameCardDeckData).
|
|
508
|
+
protoOf(GameCardDeckData).o5j = function (cardDeckIndex, cards) {
|
|
184
509
|
return new GameCardDeckData(cardDeckIndex, cards);
|
|
185
510
|
};
|
|
186
511
|
protoOf(GameCardDeckData).copy = function (cardDeckIndex, cards, $super) {
|
|
187
512
|
cardDeckIndex = cardDeckIndex === VOID ? this.cardDeckIndex : cardDeckIndex;
|
|
188
513
|
cards = cards === VOID ? this.cards : cards;
|
|
189
|
-
return this.
|
|
514
|
+
return this.o5j(cardDeckIndex, cards);
|
|
190
515
|
};
|
|
191
516
|
protoOf(GameCardDeckData).toString = function () {
|
|
192
517
|
return 'GameCardDeckData(cardDeckIndex=' + this.cardDeckIndex + ', cards=' + toString(this.cards) + ')';
|
|
@@ -208,6 +533,54 @@
|
|
|
208
533
|
return false;
|
|
209
534
|
return true;
|
|
210
535
|
};
|
|
536
|
+
function HttpConfig(baseUrl, timeoutMillis) {
|
|
537
|
+
timeoutMillis = timeoutMillis === VOID ? 30000 : timeoutMillis;
|
|
538
|
+
this.baseUrl = baseUrl;
|
|
539
|
+
this.timeoutMillis = timeoutMillis;
|
|
540
|
+
}
|
|
541
|
+
protoOf(HttpConfig).p5j = function () {
|
|
542
|
+
return this.baseUrl;
|
|
543
|
+
};
|
|
544
|
+
protoOf(HttpConfig).q5j = function () {
|
|
545
|
+
return this.timeoutMillis;
|
|
546
|
+
};
|
|
547
|
+
protoOf(HttpConfig).me = function () {
|
|
548
|
+
return this.baseUrl;
|
|
549
|
+
};
|
|
550
|
+
protoOf(HttpConfig).ne = function () {
|
|
551
|
+
return this.timeoutMillis;
|
|
552
|
+
};
|
|
553
|
+
protoOf(HttpConfig).y5i = function (baseUrl, timeoutMillis) {
|
|
554
|
+
return new HttpConfig(baseUrl, timeoutMillis);
|
|
555
|
+
};
|
|
556
|
+
protoOf(HttpConfig).copy = function (baseUrl, timeoutMillis, $super) {
|
|
557
|
+
baseUrl = baseUrl === VOID ? this.baseUrl : baseUrl;
|
|
558
|
+
timeoutMillis = timeoutMillis === VOID ? this.timeoutMillis : timeoutMillis;
|
|
559
|
+
return this.y5i(baseUrl, timeoutMillis);
|
|
560
|
+
};
|
|
561
|
+
protoOf(HttpConfig).toString = function () {
|
|
562
|
+
return 'HttpConfig(baseUrl=' + this.baseUrl + ', timeoutMillis=' + this.timeoutMillis + ')';
|
|
563
|
+
};
|
|
564
|
+
protoOf(HttpConfig).hashCode = function () {
|
|
565
|
+
var result = getStringHashCode(this.baseUrl);
|
|
566
|
+
result = imul(result, 31) + this.timeoutMillis | 0;
|
|
567
|
+
return result;
|
|
568
|
+
};
|
|
569
|
+
protoOf(HttpConfig).equals = function (other) {
|
|
570
|
+
if (this === other)
|
|
571
|
+
return true;
|
|
572
|
+
if (!(other instanceof HttpConfig))
|
|
573
|
+
return false;
|
|
574
|
+
var tmp0_other_with_cast = other instanceof HttpConfig ? other : THROW_CCE();
|
|
575
|
+
if (!(this.baseUrl === tmp0_other_with_cast.baseUrl))
|
|
576
|
+
return false;
|
|
577
|
+
if (!(this.timeoutMillis === tmp0_other_with_cast.timeoutMillis))
|
|
578
|
+
return false;
|
|
579
|
+
return true;
|
|
580
|
+
};
|
|
581
|
+
function mapToParams(_this__u8e3s4) {
|
|
582
|
+
return new HttpParams(_this__u8e3s4.baseUrl, toLong(_this__u8e3s4.timeoutMillis));
|
|
583
|
+
}
|
|
211
584
|
function RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
212
585
|
apiKey = apiKey === VOID ? '68b344df-e962-4bf7-b77e-eea466b7f90a' : apiKey;
|
|
213
586
|
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
@@ -218,31 +591,31 @@
|
|
|
218
591
|
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
219
592
|
this.httpConfig = httpConfig;
|
|
220
593
|
}
|
|
221
|
-
protoOf(RandomOrgConfig).
|
|
594
|
+
protoOf(RandomOrgConfig).r5j = function () {
|
|
222
595
|
return this.apiKey;
|
|
223
596
|
};
|
|
224
|
-
protoOf(RandomOrgConfig).
|
|
597
|
+
protoOf(RandomOrgConfig).s5j = function () {
|
|
225
598
|
return this.poolSize;
|
|
226
599
|
};
|
|
227
|
-
protoOf(RandomOrgConfig).
|
|
600
|
+
protoOf(RandomOrgConfig).t5j = function () {
|
|
228
601
|
return this.thresholdForUsedPool;
|
|
229
602
|
};
|
|
230
|
-
protoOf(RandomOrgConfig).
|
|
603
|
+
protoOf(RandomOrgConfig).u5j = function () {
|
|
231
604
|
return this.httpConfig;
|
|
232
605
|
};
|
|
233
|
-
protoOf(RandomOrgConfig).
|
|
606
|
+
protoOf(RandomOrgConfig).me = function () {
|
|
234
607
|
return this.apiKey;
|
|
235
608
|
};
|
|
236
|
-
protoOf(RandomOrgConfig).
|
|
609
|
+
protoOf(RandomOrgConfig).ne = function () {
|
|
237
610
|
return this.poolSize;
|
|
238
611
|
};
|
|
239
|
-
protoOf(RandomOrgConfig).
|
|
612
|
+
protoOf(RandomOrgConfig).fj = function () {
|
|
240
613
|
return this.thresholdForUsedPool;
|
|
241
614
|
};
|
|
242
|
-
protoOf(RandomOrgConfig).
|
|
615
|
+
protoOf(RandomOrgConfig).k5j = function () {
|
|
243
616
|
return this.httpConfig;
|
|
244
617
|
};
|
|
245
|
-
protoOf(RandomOrgConfig).
|
|
618
|
+
protoOf(RandomOrgConfig).v5j = function (apiKey, poolSize, thresholdForUsedPool, httpConfig) {
|
|
246
619
|
return new RandomOrgConfig(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
247
620
|
};
|
|
248
621
|
protoOf(RandomOrgConfig).copy = function (apiKey, poolSize, thresholdForUsedPool, httpConfig, $super) {
|
|
@@ -250,7 +623,7 @@
|
|
|
250
623
|
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
251
624
|
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
252
625
|
httpConfig = httpConfig === VOID ? this.httpConfig : httpConfig;
|
|
253
|
-
return this.
|
|
626
|
+
return this.v5j(apiKey, poolSize, thresholdForUsedPool, httpConfig);
|
|
254
627
|
};
|
|
255
628
|
protoOf(RandomOrgConfig).toString = function () {
|
|
256
629
|
return 'RandomOrgConfig(apiKey=' + this.apiKey + ', poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', httpConfig=' + this.httpConfig.toString() + ')';
|
|
@@ -278,124 +651,2414 @@
|
|
|
278
651
|
return false;
|
|
279
652
|
return true;
|
|
280
653
|
};
|
|
281
|
-
function
|
|
654
|
+
function Companion_1() {
|
|
282
655
|
}
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
$this$Json.l22_1 = true;
|
|
287
|
-
$this$Json.k22_1 = false;
|
|
288
|
-
return Unit_instance;
|
|
656
|
+
var Companion_instance_3;
|
|
657
|
+
function Companion_getInstance_4() {
|
|
658
|
+
return Companion_instance_3;
|
|
289
659
|
}
|
|
290
|
-
function
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
660
|
+
function $serializer() {
|
|
661
|
+
$serializer_instance = this;
|
|
662
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorResponseDto', this, 2);
|
|
663
|
+
tmp0_serialDesc.y4c('jsonrpc', false);
|
|
664
|
+
tmp0_serialDesc.y4c('error', false);
|
|
665
|
+
this.w5j_1 = tmp0_serialDesc;
|
|
666
|
+
}
|
|
667
|
+
protoOf($serializer).x5j = function (encoder, value) {
|
|
668
|
+
var tmp0_desc = this.w5j_1;
|
|
669
|
+
var tmp1_output = encoder.m45(tmp0_desc);
|
|
670
|
+
tmp1_output.a47(tmp0_desc, 0, value.y5j_1);
|
|
671
|
+
tmp1_output.e47(tmp0_desc, 1, $serializer_getInstance_0(), value.z5j_1);
|
|
672
|
+
tmp1_output.n45(tmp0_desc);
|
|
673
|
+
};
|
|
674
|
+
protoOf($serializer).a42 = function (encoder, value) {
|
|
675
|
+
return this.x5j(encoder, value instanceof ErrorResponseDto ? value : THROW_CCE());
|
|
676
|
+
};
|
|
677
|
+
protoOf($serializer).b42 = function (decoder) {
|
|
678
|
+
var tmp0_desc = this.w5j_1;
|
|
679
|
+
var tmp1_flag = true;
|
|
680
|
+
var tmp2_index = 0;
|
|
681
|
+
var tmp3_bitMask0 = 0;
|
|
682
|
+
var tmp4_local0 = null;
|
|
683
|
+
var tmp5_local1 = null;
|
|
684
|
+
var tmp6_input = decoder.m45(tmp0_desc);
|
|
685
|
+
if (tmp6_input.b46()) {
|
|
686
|
+
tmp4_local0 = tmp6_input.w45(tmp0_desc, 0);
|
|
687
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
688
|
+
tmp5_local1 = tmp6_input.a46(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
689
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
690
|
+
} else
|
|
691
|
+
while (tmp1_flag) {
|
|
692
|
+
tmp2_index = tmp6_input.c46(tmp0_desc);
|
|
693
|
+
switch (tmp2_index) {
|
|
694
|
+
case -1:
|
|
695
|
+
tmp1_flag = false;
|
|
696
|
+
break;
|
|
697
|
+
case 0:
|
|
698
|
+
tmp4_local0 = tmp6_input.w45(tmp0_desc, 0);
|
|
699
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
700
|
+
break;
|
|
701
|
+
case 1:
|
|
702
|
+
tmp5_local1 = tmp6_input.a46(tmp0_desc, 1, $serializer_getInstance_0(), tmp5_local1);
|
|
703
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
704
|
+
break;
|
|
705
|
+
default:
|
|
706
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
tmp6_input.n45(tmp0_desc);
|
|
710
|
+
return ErrorResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
711
|
+
};
|
|
712
|
+
protoOf($serializer).z41 = function () {
|
|
713
|
+
return this.w5j_1;
|
|
714
|
+
};
|
|
715
|
+
protoOf($serializer).n4d = function () {
|
|
716
|
+
// Inline function 'kotlin.arrayOf' call
|
|
717
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
718
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
719
|
+
return [StringSerializer_getInstance(), get_nullable($serializer_getInstance_0())];
|
|
720
|
+
};
|
|
721
|
+
var $serializer_instance;
|
|
722
|
+
function $serializer_getInstance() {
|
|
723
|
+
if ($serializer_instance == null)
|
|
724
|
+
new $serializer();
|
|
725
|
+
return $serializer_instance;
|
|
726
|
+
}
|
|
727
|
+
function ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, $this) {
|
|
728
|
+
if (!(3 === (3 & seen0))) {
|
|
729
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance().w5j_1);
|
|
298
730
|
}
|
|
299
|
-
|
|
300
|
-
this.
|
|
301
|
-
this
|
|
302
|
-
this.loggingLevel = loggingLevel;
|
|
303
|
-
this.json = json;
|
|
731
|
+
$this.y5j_1 = jsonrpc;
|
|
732
|
+
$this.z5j_1 = error;
|
|
733
|
+
return $this;
|
|
304
734
|
}
|
|
305
|
-
|
|
306
|
-
return
|
|
735
|
+
function ErrorResponseDto_init_$Create$(seen0, jsonrpc, error, serializationConstructorMarker) {
|
|
736
|
+
return ErrorResponseDto_init_$Init$(seen0, jsonrpc, error, serializationConstructorMarker, objectCreate(protoOf(ErrorResponseDto)));
|
|
737
|
+
}
|
|
738
|
+
function ErrorResponseDto(jsonrpc, error) {
|
|
739
|
+
this.y5j_1 = jsonrpc;
|
|
740
|
+
this.z5j_1 = error;
|
|
741
|
+
}
|
|
742
|
+
protoOf(ErrorResponseDto).toString = function () {
|
|
743
|
+
return 'ErrorResponseDto(jsonrpc=' + this.y5j_1 + ', error=' + toString_0(this.z5j_1) + ')';
|
|
307
744
|
};
|
|
308
|
-
protoOf(
|
|
309
|
-
|
|
745
|
+
protoOf(ErrorResponseDto).hashCode = function () {
|
|
746
|
+
var result = getStringHashCode(this.y5j_1);
|
|
747
|
+
result = imul(result, 31) + (this.z5j_1 == null ? 0 : this.z5j_1.hashCode()) | 0;
|
|
748
|
+
return result;
|
|
749
|
+
};
|
|
750
|
+
protoOf(ErrorResponseDto).equals = function (other) {
|
|
751
|
+
if (this === other)
|
|
752
|
+
return true;
|
|
753
|
+
if (!(other instanceof ErrorResponseDto))
|
|
754
|
+
return false;
|
|
755
|
+
var tmp0_other_with_cast = other instanceof ErrorResponseDto ? other : THROW_CCE();
|
|
756
|
+
if (!(this.y5j_1 === tmp0_other_with_cast.y5j_1))
|
|
757
|
+
return false;
|
|
758
|
+
if (!equals(this.z5j_1, tmp0_other_with_cast.z5j_1))
|
|
759
|
+
return false;
|
|
760
|
+
return true;
|
|
310
761
|
};
|
|
311
|
-
|
|
312
|
-
|
|
762
|
+
function $serializer_0() {
|
|
763
|
+
$serializer_instance_0 = this;
|
|
764
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.ErrorDto', this, 2);
|
|
765
|
+
tmp0_serialDesc.y4c('code', false);
|
|
766
|
+
tmp0_serialDesc.y4c('message', false);
|
|
767
|
+
this.a5k_1 = tmp0_serialDesc;
|
|
768
|
+
}
|
|
769
|
+
protoOf($serializer_0).b5k = function (encoder, value) {
|
|
770
|
+
var tmp0_desc = this.a5k_1;
|
|
771
|
+
var tmp1_output = encoder.m45(tmp0_desc);
|
|
772
|
+
tmp1_output.e47(tmp0_desc, 0, IntSerializer_getInstance(), value.c5k_1);
|
|
773
|
+
tmp1_output.e47(tmp0_desc, 1, StringSerializer_getInstance(), value.d5k_1);
|
|
774
|
+
tmp1_output.n45(tmp0_desc);
|
|
313
775
|
};
|
|
314
|
-
protoOf(
|
|
315
|
-
return this.
|
|
776
|
+
protoOf($serializer_0).a42 = function (encoder, value) {
|
|
777
|
+
return this.b5k(encoder, value instanceof ErrorDto ? value : THROW_CCE());
|
|
316
778
|
};
|
|
317
|
-
protoOf(
|
|
318
|
-
|
|
779
|
+
protoOf($serializer_0).b42 = function (decoder) {
|
|
780
|
+
var tmp0_desc = this.a5k_1;
|
|
781
|
+
var tmp1_flag = true;
|
|
782
|
+
var tmp2_index = 0;
|
|
783
|
+
var tmp3_bitMask0 = 0;
|
|
784
|
+
var tmp4_local0 = null;
|
|
785
|
+
var tmp5_local1 = null;
|
|
786
|
+
var tmp6_input = decoder.m45(tmp0_desc);
|
|
787
|
+
if (tmp6_input.b46()) {
|
|
788
|
+
tmp4_local0 = tmp6_input.a46(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
789
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
790
|
+
tmp5_local1 = tmp6_input.a46(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
791
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
792
|
+
} else
|
|
793
|
+
while (tmp1_flag) {
|
|
794
|
+
tmp2_index = tmp6_input.c46(tmp0_desc);
|
|
795
|
+
switch (tmp2_index) {
|
|
796
|
+
case -1:
|
|
797
|
+
tmp1_flag = false;
|
|
798
|
+
break;
|
|
799
|
+
case 0:
|
|
800
|
+
tmp4_local0 = tmp6_input.a46(tmp0_desc, 0, IntSerializer_getInstance(), tmp4_local0);
|
|
801
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
802
|
+
break;
|
|
803
|
+
case 1:
|
|
804
|
+
tmp5_local1 = tmp6_input.a46(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
805
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
806
|
+
break;
|
|
807
|
+
default:
|
|
808
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
tmp6_input.n45(tmp0_desc);
|
|
812
|
+
return ErrorDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
319
813
|
};
|
|
320
|
-
protoOf(
|
|
321
|
-
return this.
|
|
814
|
+
protoOf($serializer_0).z41 = function () {
|
|
815
|
+
return this.a5k_1;
|
|
322
816
|
};
|
|
323
|
-
protoOf(
|
|
324
|
-
|
|
817
|
+
protoOf($serializer_0).n4d = function () {
|
|
818
|
+
// Inline function 'kotlin.arrayOf' call
|
|
819
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
820
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
821
|
+
return [get_nullable(IntSerializer_getInstance()), get_nullable(StringSerializer_getInstance())];
|
|
325
822
|
};
|
|
326
|
-
|
|
327
|
-
|
|
823
|
+
var $serializer_instance_0;
|
|
824
|
+
function $serializer_getInstance_0() {
|
|
825
|
+
if ($serializer_instance_0 == null)
|
|
826
|
+
new $serializer_0();
|
|
827
|
+
return $serializer_instance_0;
|
|
828
|
+
}
|
|
829
|
+
function ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, $this) {
|
|
830
|
+
if (!(3 === (3 & seen0))) {
|
|
831
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_0().a5k_1);
|
|
832
|
+
}
|
|
833
|
+
$this.c5k_1 = code;
|
|
834
|
+
$this.d5k_1 = message;
|
|
835
|
+
return $this;
|
|
836
|
+
}
|
|
837
|
+
function ErrorDto_init_$Create$(seen0, code, message, serializationConstructorMarker) {
|
|
838
|
+
return ErrorDto_init_$Init$(seen0, code, message, serializationConstructorMarker, objectCreate(protoOf(ErrorDto)));
|
|
839
|
+
}
|
|
840
|
+
function ErrorDto() {
|
|
841
|
+
}
|
|
842
|
+
protoOf(ErrorDto).toString = function () {
|
|
843
|
+
return 'ErrorDto(code=' + this.c5k_1 + ', message=' + this.d5k_1 + ')';
|
|
328
844
|
};
|
|
329
|
-
protoOf(
|
|
330
|
-
|
|
845
|
+
protoOf(ErrorDto).hashCode = function () {
|
|
846
|
+
var result = this.c5k_1 == null ? 0 : this.c5k_1;
|
|
847
|
+
result = imul(result, 31) + (this.d5k_1 == null ? 0 : getStringHashCode(this.d5k_1)) | 0;
|
|
848
|
+
return result;
|
|
331
849
|
};
|
|
332
|
-
protoOf(
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
850
|
+
protoOf(ErrorDto).equals = function (other) {
|
|
851
|
+
if (this === other)
|
|
852
|
+
return true;
|
|
853
|
+
if (!(other instanceof ErrorDto))
|
|
854
|
+
return false;
|
|
855
|
+
var tmp0_other_with_cast = other instanceof ErrorDto ? other : THROW_CCE();
|
|
856
|
+
if (!(this.c5k_1 == tmp0_other_with_cast.c5k_1))
|
|
857
|
+
return false;
|
|
858
|
+
if (!(this.d5k_1 == tmp0_other_with_cast.d5k_1))
|
|
859
|
+
return false;
|
|
860
|
+
return true;
|
|
338
861
|
};
|
|
339
|
-
|
|
340
|
-
|
|
862
|
+
function $serializer_init_$Init$(typeSerial0, $this) {
|
|
863
|
+
$serializer_1.call($this);
|
|
864
|
+
$this.f5k_1 = typeSerial0;
|
|
865
|
+
return $this;
|
|
866
|
+
}
|
|
867
|
+
function $serializer_init_$Create$(typeSerial0) {
|
|
868
|
+
return $serializer_init_$Init$(typeSerial0, objectCreate(protoOf($serializer_1)));
|
|
869
|
+
}
|
|
870
|
+
function Companion_2() {
|
|
871
|
+
Companion_instance_4 = this;
|
|
872
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', null, 4);
|
|
873
|
+
tmp0_serialDesc.y4c('jsonrpc', false);
|
|
874
|
+
tmp0_serialDesc.y4c('method', false);
|
|
875
|
+
tmp0_serialDesc.y4c('params', false);
|
|
876
|
+
tmp0_serialDesc.y4c('id', false);
|
|
877
|
+
this.g5k_1 = tmp0_serialDesc;
|
|
878
|
+
}
|
|
879
|
+
protoOf(Companion_2).h5k = function (typeSerial0) {
|
|
880
|
+
return $serializer_init_$Create$(typeSerial0);
|
|
341
881
|
};
|
|
342
|
-
protoOf(
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
882
|
+
protoOf(Companion_2).y4d = function (typeParamsSerializers) {
|
|
883
|
+
return this.h5k(typeParamsSerializers[0]);
|
|
884
|
+
};
|
|
885
|
+
var Companion_instance_4;
|
|
886
|
+
function Companion_getInstance_5() {
|
|
887
|
+
if (Companion_instance_4 == null)
|
|
888
|
+
new Companion_2();
|
|
889
|
+
return Companion_instance_4;
|
|
890
|
+
}
|
|
891
|
+
function $serializer_1() {
|
|
892
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomRequestDto', this, 4);
|
|
893
|
+
tmp0_serialDesc.y4c('jsonrpc', false);
|
|
894
|
+
tmp0_serialDesc.y4c('method', false);
|
|
895
|
+
tmp0_serialDesc.y4c('params', false);
|
|
896
|
+
tmp0_serialDesc.y4c('id', false);
|
|
897
|
+
this.e5k_1 = tmp0_serialDesc;
|
|
898
|
+
}
|
|
899
|
+
protoOf($serializer_1).i5k = function (encoder, value) {
|
|
900
|
+
var tmp0_desc = this.e5k_1;
|
|
901
|
+
var tmp1_output = encoder.m45(tmp0_desc);
|
|
902
|
+
tmp1_output.a47(tmp0_desc, 0, value.j5k_1);
|
|
903
|
+
tmp1_output.a47(tmp0_desc, 1, value.k5k_1);
|
|
904
|
+
tmp1_output.c47(tmp0_desc, 2, this.f5k_1, value.l5k_1);
|
|
905
|
+
tmp1_output.a47(tmp0_desc, 3, value.m5k_1);
|
|
906
|
+
tmp1_output.n45(tmp0_desc);
|
|
907
|
+
};
|
|
908
|
+
protoOf($serializer_1).a42 = function (encoder, value) {
|
|
909
|
+
return this.i5k(encoder, value instanceof RandomRequestDto ? value : THROW_CCE());
|
|
910
|
+
};
|
|
911
|
+
protoOf($serializer_1).b42 = function (decoder) {
|
|
912
|
+
var tmp0_desc = this.e5k_1;
|
|
913
|
+
var tmp1_flag = true;
|
|
914
|
+
var tmp2_index = 0;
|
|
915
|
+
var tmp3_bitMask0 = 0;
|
|
916
|
+
var tmp4_local0 = null;
|
|
917
|
+
var tmp5_local1 = null;
|
|
918
|
+
var tmp6_local2 = null;
|
|
919
|
+
var tmp7_local3 = null;
|
|
920
|
+
var tmp8_input = decoder.m45(tmp0_desc);
|
|
921
|
+
if (tmp8_input.b46()) {
|
|
922
|
+
tmp4_local0 = tmp8_input.w45(tmp0_desc, 0);
|
|
923
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
924
|
+
tmp5_local1 = tmp8_input.w45(tmp0_desc, 1);
|
|
925
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
926
|
+
tmp6_local2 = tmp8_input.y45(tmp0_desc, 2, this.f5k_1, tmp6_local2);
|
|
927
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
928
|
+
tmp7_local3 = tmp8_input.w45(tmp0_desc, 3);
|
|
929
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
930
|
+
} else
|
|
931
|
+
while (tmp1_flag) {
|
|
932
|
+
tmp2_index = tmp8_input.c46(tmp0_desc);
|
|
933
|
+
switch (tmp2_index) {
|
|
934
|
+
case -1:
|
|
935
|
+
tmp1_flag = false;
|
|
936
|
+
break;
|
|
937
|
+
case 0:
|
|
938
|
+
tmp4_local0 = tmp8_input.w45(tmp0_desc, 0);
|
|
939
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
940
|
+
break;
|
|
941
|
+
case 1:
|
|
942
|
+
tmp5_local1 = tmp8_input.w45(tmp0_desc, 1);
|
|
943
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
944
|
+
break;
|
|
945
|
+
case 2:
|
|
946
|
+
tmp6_local2 = tmp8_input.y45(tmp0_desc, 2, this.f5k_1, tmp6_local2);
|
|
947
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
948
|
+
break;
|
|
949
|
+
case 3:
|
|
950
|
+
tmp7_local3 = tmp8_input.w45(tmp0_desc, 3);
|
|
951
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
952
|
+
break;
|
|
953
|
+
default:
|
|
954
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
tmp8_input.n45(tmp0_desc);
|
|
958
|
+
return RandomRequestDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, null);
|
|
959
|
+
};
|
|
960
|
+
protoOf($serializer_1).z41 = function () {
|
|
961
|
+
return this.e5k_1;
|
|
962
|
+
};
|
|
963
|
+
protoOf($serializer_1).n4d = function () {
|
|
964
|
+
// Inline function 'kotlin.arrayOf' call
|
|
965
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
966
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
967
|
+
return [StringSerializer_getInstance(), StringSerializer_getInstance(), this.f5k_1, StringSerializer_getInstance()];
|
|
968
|
+
};
|
|
969
|
+
protoOf($serializer_1).o4d = function () {
|
|
970
|
+
// Inline function 'kotlin.arrayOf' call
|
|
971
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
972
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
973
|
+
return [this.f5k_1];
|
|
974
|
+
};
|
|
975
|
+
function RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, $this) {
|
|
976
|
+
if (!(15 === (15 & seen0))) {
|
|
977
|
+
throwMissingFieldException(seen0, 15, Companion_getInstance_5().g5k_1);
|
|
978
|
+
}
|
|
979
|
+
$this.j5k_1 = jsonrpc;
|
|
980
|
+
$this.k5k_1 = method;
|
|
981
|
+
$this.l5k_1 = params;
|
|
982
|
+
$this.m5k_1 = id;
|
|
983
|
+
return $this;
|
|
984
|
+
}
|
|
985
|
+
function RandomRequestDto_init_$Create$(seen0, jsonrpc, method, params, id, serializationConstructorMarker) {
|
|
986
|
+
return RandomRequestDto_init_$Init$(seen0, jsonrpc, method, params, id, serializationConstructorMarker, objectCreate(protoOf(RandomRequestDto)));
|
|
987
|
+
}
|
|
988
|
+
function RandomRequestDto(jsonrpc, method, params, id) {
|
|
989
|
+
Companion_getInstance_5();
|
|
990
|
+
this.j5k_1 = jsonrpc;
|
|
991
|
+
this.k5k_1 = method;
|
|
992
|
+
this.l5k_1 = params;
|
|
993
|
+
this.m5k_1 = id;
|
|
994
|
+
}
|
|
995
|
+
protoOf(RandomRequestDto).toString = function () {
|
|
996
|
+
return 'RandomRequestDto(jsonrpc=' + this.j5k_1 + ', method=' + this.k5k_1 + ', params=' + toString(this.l5k_1) + ', id=' + this.m5k_1 + ')';
|
|
997
|
+
};
|
|
998
|
+
protoOf(RandomRequestDto).hashCode = function () {
|
|
999
|
+
var result = getStringHashCode(this.j5k_1);
|
|
1000
|
+
result = imul(result, 31) + getStringHashCode(this.k5k_1) | 0;
|
|
1001
|
+
result = imul(result, 31) + hashCode(this.l5k_1) | 0;
|
|
1002
|
+
result = imul(result, 31) + getStringHashCode(this.m5k_1) | 0;
|
|
347
1003
|
return result;
|
|
348
1004
|
};
|
|
349
|
-
protoOf(
|
|
1005
|
+
protoOf(RandomRequestDto).equals = function (other) {
|
|
350
1006
|
if (this === other)
|
|
351
1007
|
return true;
|
|
352
|
-
if (!(other instanceof
|
|
1008
|
+
if (!(other instanceof RandomRequestDto))
|
|
353
1009
|
return false;
|
|
354
|
-
var tmp0_other_with_cast = other instanceof
|
|
355
|
-
if (!(this.
|
|
1010
|
+
var tmp0_other_with_cast = other instanceof RandomRequestDto ? other : THROW_CCE();
|
|
1011
|
+
if (!(this.j5k_1 === tmp0_other_with_cast.j5k_1))
|
|
356
1012
|
return false;
|
|
357
|
-
if (!this.
|
|
1013
|
+
if (!(this.k5k_1 === tmp0_other_with_cast.k5k_1))
|
|
358
1014
|
return false;
|
|
359
|
-
if (!this.
|
|
1015
|
+
if (!equals(this.l5k_1, tmp0_other_with_cast.l5k_1))
|
|
360
1016
|
return false;
|
|
361
|
-
if (!
|
|
1017
|
+
if (!(this.m5k_1 === tmp0_other_with_cast.m5k_1))
|
|
362
1018
|
return false;
|
|
363
1019
|
return true;
|
|
364
1020
|
};
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
var
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
1021
|
+
function Companion_3() {
|
|
1022
|
+
Companion_instance_5 = this;
|
|
1023
|
+
var tmp = this;
|
|
1024
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1025
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1026
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1027
|
+
tmp.n5k_1 = [null, null, new ArrayListSerializer(IntSerializer_getInstance()), null, null, null, null, null];
|
|
1028
|
+
}
|
|
1029
|
+
var Companion_instance_5;
|
|
1030
|
+
function Companion_getInstance_6() {
|
|
1031
|
+
if (Companion_instance_5 == null)
|
|
1032
|
+
new Companion_3();
|
|
1033
|
+
return Companion_instance_5;
|
|
1034
|
+
}
|
|
1035
|
+
function $serializer_2() {
|
|
1036
|
+
$serializer_instance_1 = this;
|
|
1037
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomParamsDto.RandomIntegerSequencesParamsDto', this, 8);
|
|
1038
|
+
tmp0_serialDesc.y4c('apiKey', false);
|
|
1039
|
+
tmp0_serialDesc.y4c('n', false);
|
|
1040
|
+
tmp0_serialDesc.y4c('length', false);
|
|
1041
|
+
tmp0_serialDesc.y4c('min', false);
|
|
1042
|
+
tmp0_serialDesc.y4c('max', false);
|
|
1043
|
+
tmp0_serialDesc.y4c('replacement', false);
|
|
1044
|
+
tmp0_serialDesc.y4c('ticketId', false);
|
|
1045
|
+
tmp0_serialDesc.y4c('userData', false);
|
|
1046
|
+
this.o5k_1 = tmp0_serialDesc;
|
|
1047
|
+
}
|
|
1048
|
+
protoOf($serializer_2).p5k = function (encoder, value) {
|
|
1049
|
+
var tmp0_desc = this.o5k_1;
|
|
1050
|
+
var tmp1_output = encoder.m45(tmp0_desc);
|
|
1051
|
+
var tmp2_cached = Companion_getInstance_6().n5k_1;
|
|
1052
|
+
tmp1_output.a47(tmp0_desc, 0, value.q5k_1);
|
|
1053
|
+
tmp1_output.v46(tmp0_desc, 1, value.r5k_1);
|
|
1054
|
+
tmp1_output.c47(tmp0_desc, 2, tmp2_cached[2], value.s5k_1);
|
|
1055
|
+
tmp1_output.v46(tmp0_desc, 3, value.t5k_1);
|
|
1056
|
+
tmp1_output.v46(tmp0_desc, 4, value.u5k_1);
|
|
1057
|
+
tmp1_output.s46(tmp0_desc, 5, value.v5k_1);
|
|
1058
|
+
tmp1_output.e47(tmp0_desc, 6, StringSerializer_getInstance(), value.w5k_1);
|
|
1059
|
+
tmp1_output.e47(tmp0_desc, 7, $serializer_getInstance_2(), value.x5k_1);
|
|
1060
|
+
tmp1_output.n45(tmp0_desc);
|
|
1061
|
+
};
|
|
1062
|
+
protoOf($serializer_2).a42 = function (encoder, value) {
|
|
1063
|
+
return this.p5k(encoder, value instanceof RandomIntegerSequencesParamsDto ? value : THROW_CCE());
|
|
1064
|
+
};
|
|
1065
|
+
protoOf($serializer_2).b42 = function (decoder) {
|
|
1066
|
+
var tmp0_desc = this.o5k_1;
|
|
1067
|
+
var tmp1_flag = true;
|
|
1068
|
+
var tmp2_index = 0;
|
|
1069
|
+
var tmp3_bitMask0 = 0;
|
|
1070
|
+
var tmp4_local0 = null;
|
|
1071
|
+
var tmp5_local1 = 0;
|
|
1072
|
+
var tmp6_local2 = null;
|
|
1073
|
+
var tmp7_local3 = 0;
|
|
1074
|
+
var tmp8_local4 = 0;
|
|
1075
|
+
var tmp9_local5 = false;
|
|
1076
|
+
var tmp10_local6 = null;
|
|
1077
|
+
var tmp11_local7 = null;
|
|
1078
|
+
var tmp12_input = decoder.m45(tmp0_desc);
|
|
1079
|
+
var tmp13_cached = Companion_getInstance_6().n5k_1;
|
|
1080
|
+
if (tmp12_input.b46()) {
|
|
1081
|
+
tmp4_local0 = tmp12_input.w45(tmp0_desc, 0);
|
|
1082
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1083
|
+
tmp5_local1 = tmp12_input.r45(tmp0_desc, 1);
|
|
1084
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1085
|
+
tmp6_local2 = tmp12_input.y45(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1086
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1087
|
+
tmp7_local3 = tmp12_input.r45(tmp0_desc, 3);
|
|
1088
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1089
|
+
tmp8_local4 = tmp12_input.r45(tmp0_desc, 4);
|
|
1090
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1091
|
+
tmp9_local5 = tmp12_input.o45(tmp0_desc, 5);
|
|
1092
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1093
|
+
tmp10_local6 = tmp12_input.a46(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1094
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1095
|
+
tmp11_local7 = tmp12_input.a46(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1096
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1097
|
+
} else
|
|
1098
|
+
while (tmp1_flag) {
|
|
1099
|
+
tmp2_index = tmp12_input.c46(tmp0_desc);
|
|
1100
|
+
switch (tmp2_index) {
|
|
1101
|
+
case -1:
|
|
1102
|
+
tmp1_flag = false;
|
|
1103
|
+
break;
|
|
1104
|
+
case 0:
|
|
1105
|
+
tmp4_local0 = tmp12_input.w45(tmp0_desc, 0);
|
|
1106
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1107
|
+
break;
|
|
1108
|
+
case 1:
|
|
1109
|
+
tmp5_local1 = tmp12_input.r45(tmp0_desc, 1);
|
|
1110
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1111
|
+
break;
|
|
1112
|
+
case 2:
|
|
1113
|
+
tmp6_local2 = tmp12_input.y45(tmp0_desc, 2, tmp13_cached[2], tmp6_local2);
|
|
1114
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1115
|
+
break;
|
|
1116
|
+
case 3:
|
|
1117
|
+
tmp7_local3 = tmp12_input.r45(tmp0_desc, 3);
|
|
1118
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1119
|
+
break;
|
|
1120
|
+
case 4:
|
|
1121
|
+
tmp8_local4 = tmp12_input.r45(tmp0_desc, 4);
|
|
1122
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1123
|
+
break;
|
|
1124
|
+
case 5:
|
|
1125
|
+
tmp9_local5 = tmp12_input.o45(tmp0_desc, 5);
|
|
1126
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1127
|
+
break;
|
|
1128
|
+
case 6:
|
|
1129
|
+
tmp10_local6 = tmp12_input.a46(tmp0_desc, 6, StringSerializer_getInstance(), tmp10_local6);
|
|
1130
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 64;
|
|
1131
|
+
break;
|
|
1132
|
+
case 7:
|
|
1133
|
+
tmp11_local7 = tmp12_input.a46(tmp0_desc, 7, $serializer_getInstance_2(), tmp11_local7);
|
|
1134
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 128;
|
|
1135
|
+
break;
|
|
1136
|
+
default:
|
|
1137
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
tmp12_input.n45(tmp0_desc);
|
|
1141
|
+
return RandomIntegerSequencesParamsDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, null);
|
|
1142
|
+
};
|
|
1143
|
+
protoOf($serializer_2).z41 = function () {
|
|
1144
|
+
return this.o5k_1;
|
|
1145
|
+
};
|
|
1146
|
+
protoOf($serializer_2).n4d = function () {
|
|
1147
|
+
var tmp0_cached = Companion_getInstance_6().n5k_1;
|
|
1148
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1149
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1150
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1151
|
+
return [StringSerializer_getInstance(), IntSerializer_getInstance(), tmp0_cached[2], IntSerializer_getInstance(), IntSerializer_getInstance(), BooleanSerializer_getInstance(), get_nullable(StringSerializer_getInstance()), get_nullable($serializer_getInstance_2())];
|
|
1152
|
+
};
|
|
1153
|
+
var $serializer_instance_1;
|
|
1154
|
+
function $serializer_getInstance_1() {
|
|
1155
|
+
if ($serializer_instance_1 == null)
|
|
1156
|
+
new $serializer_2();
|
|
1157
|
+
return $serializer_instance_1;
|
|
1158
|
+
}
|
|
1159
|
+
function RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, $this) {
|
|
1160
|
+
if (!(255 === (255 & seen0))) {
|
|
1161
|
+
throwMissingFieldException(seen0, 255, $serializer_getInstance_1().o5k_1);
|
|
1162
|
+
}
|
|
1163
|
+
$this.q5k_1 = apiKey;
|
|
1164
|
+
$this.r5k_1 = n;
|
|
1165
|
+
$this.s5k_1 = length;
|
|
1166
|
+
$this.t5k_1 = min;
|
|
1167
|
+
$this.u5k_1 = max;
|
|
1168
|
+
$this.v5k_1 = replacement;
|
|
1169
|
+
$this.w5k_1 = ticketId;
|
|
1170
|
+
$this.x5k_1 = userData;
|
|
1171
|
+
return $this;
|
|
1172
|
+
}
|
|
1173
|
+
function RandomIntegerSequencesParamsDto_init_$Create$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker) {
|
|
1174
|
+
return RandomIntegerSequencesParamsDto_init_$Init$(seen0, apiKey, n, length, min, max, replacement, ticketId, userData, serializationConstructorMarker, objectCreate(protoOf(RandomIntegerSequencesParamsDto)));
|
|
1175
|
+
}
|
|
1176
|
+
function RandomIntegerSequencesParamsDto(apiKey, n, length, min, max, replacement, ticketId, userData) {
|
|
1177
|
+
Companion_getInstance_6();
|
|
1178
|
+
this.q5k_1 = apiKey;
|
|
1179
|
+
this.r5k_1 = n;
|
|
1180
|
+
this.s5k_1 = length;
|
|
1181
|
+
this.t5k_1 = min;
|
|
1182
|
+
this.u5k_1 = max;
|
|
1183
|
+
this.v5k_1 = replacement;
|
|
1184
|
+
this.w5k_1 = ticketId;
|
|
1185
|
+
this.x5k_1 = userData;
|
|
1186
|
+
}
|
|
1187
|
+
protoOf(RandomIntegerSequencesParamsDto).toString = function () {
|
|
1188
|
+
return 'RandomIntegerSequencesParamsDto(apiKey=' + this.q5k_1 + ', n=' + this.r5k_1 + ', length=' + toString(this.s5k_1) + ', min=' + this.t5k_1 + ', max=' + this.u5k_1 + ', replacement=' + this.v5k_1 + ', ticketId=' + this.w5k_1 + ', userData=' + toString_0(this.x5k_1) + ')';
|
|
1189
|
+
};
|
|
1190
|
+
protoOf(RandomIntegerSequencesParamsDto).hashCode = function () {
|
|
1191
|
+
var result = getStringHashCode(this.q5k_1);
|
|
1192
|
+
result = imul(result, 31) + this.r5k_1 | 0;
|
|
1193
|
+
result = imul(result, 31) + hashCode(this.s5k_1) | 0;
|
|
1194
|
+
result = imul(result, 31) + this.t5k_1 | 0;
|
|
1195
|
+
result = imul(result, 31) + this.u5k_1 | 0;
|
|
1196
|
+
result = imul(result, 31) + getBooleanHashCode(this.v5k_1) | 0;
|
|
1197
|
+
result = imul(result, 31) + (this.w5k_1 == null ? 0 : getStringHashCode(this.w5k_1)) | 0;
|
|
1198
|
+
result = imul(result, 31) + (this.x5k_1 == null ? 0 : this.x5k_1.hashCode()) | 0;
|
|
1199
|
+
return result;
|
|
1200
|
+
};
|
|
1201
|
+
protoOf(RandomIntegerSequencesParamsDto).equals = function (other) {
|
|
1202
|
+
if (this === other)
|
|
1203
|
+
return true;
|
|
1204
|
+
if (!(other instanceof RandomIntegerSequencesParamsDto))
|
|
1205
|
+
return false;
|
|
1206
|
+
var tmp0_other_with_cast = other instanceof RandomIntegerSequencesParamsDto ? other : THROW_CCE();
|
|
1207
|
+
if (!(this.q5k_1 === tmp0_other_with_cast.q5k_1))
|
|
1208
|
+
return false;
|
|
1209
|
+
if (!(this.r5k_1 === tmp0_other_with_cast.r5k_1))
|
|
1210
|
+
return false;
|
|
1211
|
+
if (!equals(this.s5k_1, tmp0_other_with_cast.s5k_1))
|
|
1212
|
+
return false;
|
|
1213
|
+
if (!(this.t5k_1 === tmp0_other_with_cast.t5k_1))
|
|
1214
|
+
return false;
|
|
1215
|
+
if (!(this.u5k_1 === tmp0_other_with_cast.u5k_1))
|
|
1216
|
+
return false;
|
|
1217
|
+
if (!(this.v5k_1 === tmp0_other_with_cast.v5k_1))
|
|
1218
|
+
return false;
|
|
1219
|
+
if (!(this.w5k_1 == tmp0_other_with_cast.w5k_1))
|
|
1220
|
+
return false;
|
|
1221
|
+
if (!equals(this.x5k_1, tmp0_other_with_cast.x5k_1))
|
|
1222
|
+
return false;
|
|
1223
|
+
return true;
|
|
1224
|
+
};
|
|
1225
|
+
function Companion_4() {
|
|
1226
|
+
}
|
|
1227
|
+
var Companion_instance_6;
|
|
1228
|
+
function Companion_getInstance_7() {
|
|
1229
|
+
return Companion_instance_6;
|
|
1230
|
+
}
|
|
1231
|
+
function $serializer_3() {
|
|
1232
|
+
$serializer_instance_2 = this;
|
|
1233
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.CardDecksUserDataDto', this, 2);
|
|
1234
|
+
tmp0_serialDesc.y4c('id', false);
|
|
1235
|
+
tmp0_serialDesc.y4c('count', false);
|
|
1236
|
+
this.y5k_1 = tmp0_serialDesc;
|
|
1237
|
+
}
|
|
1238
|
+
protoOf($serializer_3).z5k = function (encoder, value) {
|
|
1239
|
+
var tmp0_desc = this.y5k_1;
|
|
1240
|
+
var tmp1_output = encoder.m45(tmp0_desc);
|
|
1241
|
+
tmp1_output.a47(tmp0_desc, 0, value.a5l_1);
|
|
1242
|
+
tmp1_output.v46(tmp0_desc, 1, value.b5l_1);
|
|
1243
|
+
tmp1_output.n45(tmp0_desc);
|
|
1244
|
+
};
|
|
1245
|
+
protoOf($serializer_3).a42 = function (encoder, value) {
|
|
1246
|
+
return this.z5k(encoder, value instanceof CardDecksUserDataDto ? value : THROW_CCE());
|
|
1247
|
+
};
|
|
1248
|
+
protoOf($serializer_3).b42 = function (decoder) {
|
|
1249
|
+
var tmp0_desc = this.y5k_1;
|
|
1250
|
+
var tmp1_flag = true;
|
|
1251
|
+
var tmp2_index = 0;
|
|
1252
|
+
var tmp3_bitMask0 = 0;
|
|
1253
|
+
var tmp4_local0 = null;
|
|
1254
|
+
var tmp5_local1 = 0;
|
|
1255
|
+
var tmp6_input = decoder.m45(tmp0_desc);
|
|
1256
|
+
if (tmp6_input.b46()) {
|
|
1257
|
+
tmp4_local0 = tmp6_input.w45(tmp0_desc, 0);
|
|
1258
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1259
|
+
tmp5_local1 = tmp6_input.r45(tmp0_desc, 1);
|
|
1260
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1261
|
+
} else
|
|
1262
|
+
while (tmp1_flag) {
|
|
1263
|
+
tmp2_index = tmp6_input.c46(tmp0_desc);
|
|
1264
|
+
switch (tmp2_index) {
|
|
1265
|
+
case -1:
|
|
1266
|
+
tmp1_flag = false;
|
|
1267
|
+
break;
|
|
1268
|
+
case 0:
|
|
1269
|
+
tmp4_local0 = tmp6_input.w45(tmp0_desc, 0);
|
|
1270
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1271
|
+
break;
|
|
1272
|
+
case 1:
|
|
1273
|
+
tmp5_local1 = tmp6_input.r45(tmp0_desc, 1);
|
|
1274
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1275
|
+
break;
|
|
1276
|
+
default:
|
|
1277
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
tmp6_input.n45(tmp0_desc);
|
|
1281
|
+
return CardDecksUserDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
1282
|
+
};
|
|
1283
|
+
protoOf($serializer_3).z41 = function () {
|
|
1284
|
+
return this.y5k_1;
|
|
1285
|
+
};
|
|
1286
|
+
protoOf($serializer_3).n4d = function () {
|
|
1287
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1288
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1289
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1290
|
+
return [StringSerializer_getInstance(), IntSerializer_getInstance()];
|
|
1291
|
+
};
|
|
1292
|
+
var $serializer_instance_2;
|
|
1293
|
+
function $serializer_getInstance_2() {
|
|
1294
|
+
if ($serializer_instance_2 == null)
|
|
1295
|
+
new $serializer_3();
|
|
1296
|
+
return $serializer_instance_2;
|
|
1297
|
+
}
|
|
1298
|
+
function CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, $this) {
|
|
1299
|
+
if (!(3 === (3 & seen0))) {
|
|
1300
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_2().y5k_1);
|
|
1301
|
+
}
|
|
1302
|
+
$this.a5l_1 = id;
|
|
1303
|
+
$this.b5l_1 = count;
|
|
1304
|
+
return $this;
|
|
1305
|
+
}
|
|
1306
|
+
function CardDecksUserDataDto_init_$Create$(seen0, id, count, serializationConstructorMarker) {
|
|
1307
|
+
return CardDecksUserDataDto_init_$Init$(seen0, id, count, serializationConstructorMarker, objectCreate(protoOf(CardDecksUserDataDto)));
|
|
1308
|
+
}
|
|
1309
|
+
function CardDecksUserDataDto(id, count) {
|
|
1310
|
+
this.a5l_1 = id;
|
|
1311
|
+
this.b5l_1 = count;
|
|
1312
|
+
}
|
|
1313
|
+
protoOf(CardDecksUserDataDto).toString = function () {
|
|
1314
|
+
return 'CardDecksUserDataDto(id=' + this.a5l_1 + ', count=' + this.b5l_1 + ')';
|
|
1315
|
+
};
|
|
1316
|
+
protoOf(CardDecksUserDataDto).hashCode = function () {
|
|
1317
|
+
var result = getStringHashCode(this.a5l_1);
|
|
1318
|
+
result = imul(result, 31) + this.b5l_1 | 0;
|
|
1319
|
+
return result;
|
|
1320
|
+
};
|
|
1321
|
+
protoOf(CardDecksUserDataDto).equals = function (other) {
|
|
1322
|
+
if (this === other)
|
|
1323
|
+
return true;
|
|
1324
|
+
if (!(other instanceof CardDecksUserDataDto))
|
|
1325
|
+
return false;
|
|
1326
|
+
var tmp0_other_with_cast = other instanceof CardDecksUserDataDto ? other : THROW_CCE();
|
|
1327
|
+
if (!(this.a5l_1 === tmp0_other_with_cast.a5l_1))
|
|
1328
|
+
return false;
|
|
1329
|
+
if (!(this.b5l_1 === tmp0_other_with_cast.b5l_1))
|
|
1330
|
+
return false;
|
|
1331
|
+
return true;
|
|
1332
|
+
};
|
|
1333
|
+
function $serializer_init_$Init$_0(typeSerial0, $this) {
|
|
1334
|
+
$serializer_4.call($this);
|
|
1335
|
+
$this.d5l_1 = typeSerial0;
|
|
1336
|
+
return $this;
|
|
1337
|
+
}
|
|
1338
|
+
function $serializer_init_$Create$_0(typeSerial0) {
|
|
1339
|
+
return $serializer_init_$Init$_0(typeSerial0, objectCreate(protoOf($serializer_4)));
|
|
1340
|
+
}
|
|
1341
|
+
function Companion_5() {
|
|
1342
|
+
Companion_instance_7 = this;
|
|
1343
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', null, 3);
|
|
1344
|
+
tmp0_serialDesc.y4c('jsonrpc', false);
|
|
1345
|
+
tmp0_serialDesc.y4c('result', false);
|
|
1346
|
+
tmp0_serialDesc.y4c('id', false);
|
|
1347
|
+
this.e5l_1 = tmp0_serialDesc;
|
|
1348
|
+
}
|
|
1349
|
+
protoOf(Companion_5).h5k = function (typeSerial0) {
|
|
1350
|
+
return $serializer_init_$Create$_0(typeSerial0);
|
|
1351
|
+
};
|
|
1352
|
+
protoOf(Companion_5).y4d = function (typeParamsSerializers) {
|
|
1353
|
+
return this.h5k(typeParamsSerializers[0]);
|
|
1354
|
+
};
|
|
1355
|
+
var Companion_instance_7;
|
|
1356
|
+
function Companion_getInstance_8() {
|
|
1357
|
+
if (Companion_instance_7 == null)
|
|
1358
|
+
new Companion_5();
|
|
1359
|
+
return Companion_instance_7;
|
|
1360
|
+
}
|
|
1361
|
+
function $serializer_4() {
|
|
1362
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResponseDto', this, 3);
|
|
1363
|
+
tmp0_serialDesc.y4c('jsonrpc', false);
|
|
1364
|
+
tmp0_serialDesc.y4c('result', false);
|
|
1365
|
+
tmp0_serialDesc.y4c('id', false);
|
|
1366
|
+
this.c5l_1 = tmp0_serialDesc;
|
|
1367
|
+
}
|
|
1368
|
+
protoOf($serializer_4).f5l = function (encoder, value) {
|
|
1369
|
+
var tmp0_desc = this.c5l_1;
|
|
1370
|
+
var tmp1_output = encoder.m45(tmp0_desc);
|
|
1371
|
+
tmp1_output.a47(tmp0_desc, 0, value.g5l_1);
|
|
1372
|
+
tmp1_output.c47(tmp0_desc, 1, this.d5l_1, value.h5l_1);
|
|
1373
|
+
tmp1_output.a47(tmp0_desc, 2, value.i5l_1);
|
|
1374
|
+
tmp1_output.n45(tmp0_desc);
|
|
1375
|
+
};
|
|
1376
|
+
protoOf($serializer_4).a42 = function (encoder, value) {
|
|
1377
|
+
return this.f5l(encoder, value instanceof RandomResponseDto ? value : THROW_CCE());
|
|
1378
|
+
};
|
|
1379
|
+
protoOf($serializer_4).b42 = function (decoder) {
|
|
1380
|
+
var tmp0_desc = this.c5l_1;
|
|
1381
|
+
var tmp1_flag = true;
|
|
1382
|
+
var tmp2_index = 0;
|
|
1383
|
+
var tmp3_bitMask0 = 0;
|
|
1384
|
+
var tmp4_local0 = null;
|
|
1385
|
+
var tmp5_local1 = null;
|
|
1386
|
+
var tmp6_local2 = null;
|
|
1387
|
+
var tmp7_input = decoder.m45(tmp0_desc);
|
|
1388
|
+
if (tmp7_input.b46()) {
|
|
1389
|
+
tmp4_local0 = tmp7_input.w45(tmp0_desc, 0);
|
|
1390
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1391
|
+
tmp5_local1 = tmp7_input.y45(tmp0_desc, 1, this.d5l_1, tmp5_local1);
|
|
1392
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1393
|
+
tmp6_local2 = tmp7_input.w45(tmp0_desc, 2);
|
|
1394
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1395
|
+
} else
|
|
1396
|
+
while (tmp1_flag) {
|
|
1397
|
+
tmp2_index = tmp7_input.c46(tmp0_desc);
|
|
1398
|
+
switch (tmp2_index) {
|
|
1399
|
+
case -1:
|
|
1400
|
+
tmp1_flag = false;
|
|
1401
|
+
break;
|
|
1402
|
+
case 0:
|
|
1403
|
+
tmp4_local0 = tmp7_input.w45(tmp0_desc, 0);
|
|
1404
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1405
|
+
break;
|
|
1406
|
+
case 1:
|
|
1407
|
+
tmp5_local1 = tmp7_input.y45(tmp0_desc, 1, this.d5l_1, tmp5_local1);
|
|
1408
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1409
|
+
break;
|
|
1410
|
+
case 2:
|
|
1411
|
+
tmp6_local2 = tmp7_input.w45(tmp0_desc, 2);
|
|
1412
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1413
|
+
break;
|
|
1414
|
+
default:
|
|
1415
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
tmp7_input.n45(tmp0_desc);
|
|
1419
|
+
return RandomResponseDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1420
|
+
};
|
|
1421
|
+
protoOf($serializer_4).z41 = function () {
|
|
1422
|
+
return this.c5l_1;
|
|
1423
|
+
};
|
|
1424
|
+
protoOf($serializer_4).n4d = function () {
|
|
1425
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1426
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1427
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1428
|
+
return [StringSerializer_getInstance(), this.d5l_1, StringSerializer_getInstance()];
|
|
1429
|
+
};
|
|
1430
|
+
protoOf($serializer_4).o4d = function () {
|
|
1431
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1432
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1433
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1434
|
+
return [this.d5l_1];
|
|
1435
|
+
};
|
|
1436
|
+
function RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, $this) {
|
|
1437
|
+
if (!(7 === (7 & seen0))) {
|
|
1438
|
+
throwMissingFieldException(seen0, 7, Companion_getInstance_8().e5l_1);
|
|
1439
|
+
}
|
|
1440
|
+
$this.g5l_1 = jsonrpc;
|
|
1441
|
+
$this.h5l_1 = result;
|
|
1442
|
+
$this.i5l_1 = id;
|
|
1443
|
+
return $this;
|
|
1444
|
+
}
|
|
1445
|
+
function RandomResponseDto_init_$Create$(seen0, jsonrpc, result, id, serializationConstructorMarker) {
|
|
1446
|
+
return RandomResponseDto_init_$Init$(seen0, jsonrpc, result, id, serializationConstructorMarker, objectCreate(protoOf(RandomResponseDto)));
|
|
1447
|
+
}
|
|
1448
|
+
function RandomResponseDto(jsonrpc, result, id) {
|
|
1449
|
+
Companion_getInstance_8();
|
|
1450
|
+
this.g5l_1 = jsonrpc;
|
|
1451
|
+
this.h5l_1 = result;
|
|
1452
|
+
this.i5l_1 = id;
|
|
1453
|
+
}
|
|
1454
|
+
protoOf(RandomResponseDto).toString = function () {
|
|
1455
|
+
return 'RandomResponseDto(jsonrpc=' + this.g5l_1 + ', result=' + toString(this.h5l_1) + ', id=' + this.i5l_1 + ')';
|
|
1456
|
+
};
|
|
1457
|
+
protoOf(RandomResponseDto).hashCode = function () {
|
|
1458
|
+
var result = getStringHashCode(this.g5l_1);
|
|
1459
|
+
result = imul(result, 31) + hashCode(this.h5l_1) | 0;
|
|
1460
|
+
result = imul(result, 31) + getStringHashCode(this.i5l_1) | 0;
|
|
1461
|
+
return result;
|
|
1462
|
+
};
|
|
1463
|
+
protoOf(RandomResponseDto).equals = function (other) {
|
|
1464
|
+
if (this === other)
|
|
1465
|
+
return true;
|
|
1466
|
+
if (!(other instanceof RandomResponseDto))
|
|
1467
|
+
return false;
|
|
1468
|
+
var tmp0_other_with_cast = other instanceof RandomResponseDto ? other : THROW_CCE();
|
|
1469
|
+
if (!(this.g5l_1 === tmp0_other_with_cast.g5l_1))
|
|
1470
|
+
return false;
|
|
1471
|
+
if (!equals(this.h5l_1, tmp0_other_with_cast.h5l_1))
|
|
1472
|
+
return false;
|
|
1473
|
+
if (!(this.i5l_1 === tmp0_other_with_cast.i5l_1))
|
|
1474
|
+
return false;
|
|
1475
|
+
return true;
|
|
1476
|
+
};
|
|
1477
|
+
function Companion_6() {
|
|
1478
|
+
}
|
|
1479
|
+
var Companion_instance_8;
|
|
1480
|
+
function Companion_getInstance_9() {
|
|
1481
|
+
return Companion_instance_8;
|
|
1482
|
+
}
|
|
1483
|
+
function $serializer_5() {
|
|
1484
|
+
$serializer_instance_3 = this;
|
|
1485
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomResultDto.IntegerSequencesResultDto', this, 6);
|
|
1486
|
+
tmp0_serialDesc.y4c('random', false);
|
|
1487
|
+
tmp0_serialDesc.y4c('signature', false);
|
|
1488
|
+
tmp0_serialDesc.y4c('bitsUsed', false);
|
|
1489
|
+
tmp0_serialDesc.y4c('bitsLeft', false);
|
|
1490
|
+
tmp0_serialDesc.y4c('requestsLeft', false);
|
|
1491
|
+
tmp0_serialDesc.y4c('advisoryDelay', false);
|
|
1492
|
+
this.j5l_1 = tmp0_serialDesc;
|
|
1493
|
+
}
|
|
1494
|
+
protoOf($serializer_5).k5l = function (encoder, value) {
|
|
1495
|
+
var tmp0_desc = this.j5l_1;
|
|
1496
|
+
var tmp1_output = encoder.m45(tmp0_desc);
|
|
1497
|
+
tmp1_output.c47(tmp0_desc, 0, $serializer_getInstance_4(), value.l5l_1);
|
|
1498
|
+
tmp1_output.e47(tmp0_desc, 1, StringSerializer_getInstance(), value.m5l_1);
|
|
1499
|
+
tmp1_output.e47(tmp0_desc, 2, IntSerializer_getInstance(), value.n5l_1);
|
|
1500
|
+
tmp1_output.e47(tmp0_desc, 3, IntSerializer_getInstance(), value.o5l_1);
|
|
1501
|
+
tmp1_output.e47(tmp0_desc, 4, IntSerializer_getInstance(), value.p5l_1);
|
|
1502
|
+
tmp1_output.e47(tmp0_desc, 5, IntSerializer_getInstance(), value.q5l_1);
|
|
1503
|
+
tmp1_output.n45(tmp0_desc);
|
|
1504
|
+
};
|
|
1505
|
+
protoOf($serializer_5).a42 = function (encoder, value) {
|
|
1506
|
+
return this.k5l(encoder, value instanceof IntegerSequencesResultDto ? value : THROW_CCE());
|
|
1507
|
+
};
|
|
1508
|
+
protoOf($serializer_5).b42 = function (decoder) {
|
|
1509
|
+
var tmp0_desc = this.j5l_1;
|
|
1510
|
+
var tmp1_flag = true;
|
|
1511
|
+
var tmp2_index = 0;
|
|
1512
|
+
var tmp3_bitMask0 = 0;
|
|
1513
|
+
var tmp4_local0 = null;
|
|
1514
|
+
var tmp5_local1 = null;
|
|
1515
|
+
var tmp6_local2 = null;
|
|
1516
|
+
var tmp7_local3 = null;
|
|
1517
|
+
var tmp8_local4 = null;
|
|
1518
|
+
var tmp9_local5 = null;
|
|
1519
|
+
var tmp10_input = decoder.m45(tmp0_desc);
|
|
1520
|
+
if (tmp10_input.b46()) {
|
|
1521
|
+
tmp4_local0 = tmp10_input.y45(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1522
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1523
|
+
tmp5_local1 = tmp10_input.a46(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1524
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1525
|
+
tmp6_local2 = tmp10_input.a46(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1526
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1527
|
+
tmp7_local3 = tmp10_input.a46(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1528
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1529
|
+
tmp8_local4 = tmp10_input.a46(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1530
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1531
|
+
tmp9_local5 = tmp10_input.a46(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1532
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1533
|
+
} else
|
|
1534
|
+
while (tmp1_flag) {
|
|
1535
|
+
tmp2_index = tmp10_input.c46(tmp0_desc);
|
|
1536
|
+
switch (tmp2_index) {
|
|
1537
|
+
case -1:
|
|
1538
|
+
tmp1_flag = false;
|
|
1539
|
+
break;
|
|
1540
|
+
case 0:
|
|
1541
|
+
tmp4_local0 = tmp10_input.y45(tmp0_desc, 0, $serializer_getInstance_4(), tmp4_local0);
|
|
1542
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1543
|
+
break;
|
|
1544
|
+
case 1:
|
|
1545
|
+
tmp5_local1 = tmp10_input.a46(tmp0_desc, 1, StringSerializer_getInstance(), tmp5_local1);
|
|
1546
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1547
|
+
break;
|
|
1548
|
+
case 2:
|
|
1549
|
+
tmp6_local2 = tmp10_input.a46(tmp0_desc, 2, IntSerializer_getInstance(), tmp6_local2);
|
|
1550
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1551
|
+
break;
|
|
1552
|
+
case 3:
|
|
1553
|
+
tmp7_local3 = tmp10_input.a46(tmp0_desc, 3, IntSerializer_getInstance(), tmp7_local3);
|
|
1554
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 8;
|
|
1555
|
+
break;
|
|
1556
|
+
case 4:
|
|
1557
|
+
tmp8_local4 = tmp10_input.a46(tmp0_desc, 4, IntSerializer_getInstance(), tmp8_local4);
|
|
1558
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 16;
|
|
1559
|
+
break;
|
|
1560
|
+
case 5:
|
|
1561
|
+
tmp9_local5 = tmp10_input.a46(tmp0_desc, 5, IntSerializer_getInstance(), tmp9_local5);
|
|
1562
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 32;
|
|
1563
|
+
break;
|
|
1564
|
+
default:
|
|
1565
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
tmp10_input.n45(tmp0_desc);
|
|
1569
|
+
return IntegerSequencesResultDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
1570
|
+
};
|
|
1571
|
+
protoOf($serializer_5).z41 = function () {
|
|
1572
|
+
return this.j5l_1;
|
|
1573
|
+
};
|
|
1574
|
+
protoOf($serializer_5).n4d = function () {
|
|
1575
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1576
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1577
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1578
|
+
return [$serializer_getInstance_4(), get_nullable(StringSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance()), get_nullable(IntSerializer_getInstance())];
|
|
1579
|
+
};
|
|
1580
|
+
var $serializer_instance_3;
|
|
1581
|
+
function $serializer_getInstance_3() {
|
|
1582
|
+
if ($serializer_instance_3 == null)
|
|
1583
|
+
new $serializer_5();
|
|
1584
|
+
return $serializer_instance_3;
|
|
1585
|
+
}
|
|
1586
|
+
function IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, $this) {
|
|
1587
|
+
if (!(63 === (63 & seen0))) {
|
|
1588
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance_3().j5l_1);
|
|
1589
|
+
}
|
|
1590
|
+
$this.l5l_1 = random;
|
|
1591
|
+
$this.m5l_1 = signature;
|
|
1592
|
+
$this.n5l_1 = bitsUsed;
|
|
1593
|
+
$this.o5l_1 = bitsLeft;
|
|
1594
|
+
$this.p5l_1 = requestsLeft;
|
|
1595
|
+
$this.q5l_1 = advisoryDelay;
|
|
1596
|
+
return $this;
|
|
1597
|
+
}
|
|
1598
|
+
function IntegerSequencesResultDto_init_$Create$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker) {
|
|
1599
|
+
return IntegerSequencesResultDto_init_$Init$(seen0, random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesResultDto)));
|
|
1600
|
+
}
|
|
1601
|
+
function IntegerSequencesResultDto(random, signature, bitsUsed, bitsLeft, requestsLeft, advisoryDelay) {
|
|
1602
|
+
this.l5l_1 = random;
|
|
1603
|
+
this.m5l_1 = signature;
|
|
1604
|
+
this.n5l_1 = bitsUsed;
|
|
1605
|
+
this.o5l_1 = bitsLeft;
|
|
1606
|
+
this.p5l_1 = requestsLeft;
|
|
1607
|
+
this.q5l_1 = advisoryDelay;
|
|
1608
|
+
}
|
|
1609
|
+
protoOf(IntegerSequencesResultDto).toString = function () {
|
|
1610
|
+
return 'IntegerSequencesResultDto(random=' + this.l5l_1.toString() + ', signature=' + this.m5l_1 + ', bitsUsed=' + this.n5l_1 + ', bitsLeft=' + this.o5l_1 + ', requestsLeft=' + this.p5l_1 + ', advisoryDelay=' + this.q5l_1 + ')';
|
|
1611
|
+
};
|
|
1612
|
+
protoOf(IntegerSequencesResultDto).hashCode = function () {
|
|
1613
|
+
var result = this.l5l_1.hashCode();
|
|
1614
|
+
result = imul(result, 31) + (this.m5l_1 == null ? 0 : getStringHashCode(this.m5l_1)) | 0;
|
|
1615
|
+
result = imul(result, 31) + (this.n5l_1 == null ? 0 : this.n5l_1) | 0;
|
|
1616
|
+
result = imul(result, 31) + (this.o5l_1 == null ? 0 : this.o5l_1) | 0;
|
|
1617
|
+
result = imul(result, 31) + (this.p5l_1 == null ? 0 : this.p5l_1) | 0;
|
|
1618
|
+
result = imul(result, 31) + (this.q5l_1 == null ? 0 : this.q5l_1) | 0;
|
|
1619
|
+
return result;
|
|
1620
|
+
};
|
|
1621
|
+
protoOf(IntegerSequencesResultDto).equals = function (other) {
|
|
1622
|
+
if (this === other)
|
|
1623
|
+
return true;
|
|
1624
|
+
if (!(other instanceof IntegerSequencesResultDto))
|
|
1625
|
+
return false;
|
|
1626
|
+
var tmp0_other_with_cast = other instanceof IntegerSequencesResultDto ? other : THROW_CCE();
|
|
1627
|
+
if (!this.l5l_1.equals(tmp0_other_with_cast.l5l_1))
|
|
1628
|
+
return false;
|
|
1629
|
+
if (!(this.m5l_1 == tmp0_other_with_cast.m5l_1))
|
|
1630
|
+
return false;
|
|
1631
|
+
if (!(this.n5l_1 == tmp0_other_with_cast.n5l_1))
|
|
1632
|
+
return false;
|
|
1633
|
+
if (!(this.o5l_1 == tmp0_other_with_cast.o5l_1))
|
|
1634
|
+
return false;
|
|
1635
|
+
if (!(this.p5l_1 == tmp0_other_with_cast.p5l_1))
|
|
1636
|
+
return false;
|
|
1637
|
+
if (!(this.q5l_1 == tmp0_other_with_cast.q5l_1))
|
|
1638
|
+
return false;
|
|
1639
|
+
return true;
|
|
1640
|
+
};
|
|
1641
|
+
function Companion_7() {
|
|
1642
|
+
Companion_instance_9 = this;
|
|
1643
|
+
var tmp = this;
|
|
1644
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1645
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1646
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1647
|
+
tmp.r5l_1 = [new ArrayListSerializer(new ArrayListSerializer(IntSerializer_getInstance())), null, null];
|
|
1648
|
+
}
|
|
1649
|
+
var Companion_instance_9;
|
|
1650
|
+
function Companion_getInstance_10() {
|
|
1651
|
+
if (Companion_instance_9 == null)
|
|
1652
|
+
new Companion_7();
|
|
1653
|
+
return Companion_instance_9;
|
|
1654
|
+
}
|
|
1655
|
+
function $serializer_6() {
|
|
1656
|
+
$serializer_instance_4 = this;
|
|
1657
|
+
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('games.raspberry.card_game.random.data.models.serializable.RandomDataDto.IntegerSequencesDataDto', this, 3);
|
|
1658
|
+
tmp0_serialDesc.y4c('data', false);
|
|
1659
|
+
tmp0_serialDesc.y4c('completionTime', false);
|
|
1660
|
+
tmp0_serialDesc.y4c('ticketId', false);
|
|
1661
|
+
this.s5l_1 = tmp0_serialDesc;
|
|
1662
|
+
}
|
|
1663
|
+
protoOf($serializer_6).t5l = function (encoder, value) {
|
|
1664
|
+
var tmp0_desc = this.s5l_1;
|
|
1665
|
+
var tmp1_output = encoder.m45(tmp0_desc);
|
|
1666
|
+
var tmp2_cached = Companion_getInstance_10().r5l_1;
|
|
1667
|
+
tmp1_output.c47(tmp0_desc, 0, tmp2_cached[0], value.u5l_1);
|
|
1668
|
+
tmp1_output.a47(tmp0_desc, 1, value.v5l_1);
|
|
1669
|
+
tmp1_output.e47(tmp0_desc, 2, StringSerializer_getInstance(), value.w5l_1);
|
|
1670
|
+
tmp1_output.n45(tmp0_desc);
|
|
1671
|
+
};
|
|
1672
|
+
protoOf($serializer_6).a42 = function (encoder, value) {
|
|
1673
|
+
return this.t5l(encoder, value instanceof IntegerSequencesDataDto ? value : THROW_CCE());
|
|
1674
|
+
};
|
|
1675
|
+
protoOf($serializer_6).b42 = function (decoder) {
|
|
1676
|
+
var tmp0_desc = this.s5l_1;
|
|
1677
|
+
var tmp1_flag = true;
|
|
1678
|
+
var tmp2_index = 0;
|
|
1679
|
+
var tmp3_bitMask0 = 0;
|
|
1680
|
+
var tmp4_local0 = null;
|
|
1681
|
+
var tmp5_local1 = null;
|
|
1682
|
+
var tmp6_local2 = null;
|
|
1683
|
+
var tmp7_input = decoder.m45(tmp0_desc);
|
|
1684
|
+
var tmp8_cached = Companion_getInstance_10().r5l_1;
|
|
1685
|
+
if (tmp7_input.b46()) {
|
|
1686
|
+
tmp4_local0 = tmp7_input.y45(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1687
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1688
|
+
tmp5_local1 = tmp7_input.w45(tmp0_desc, 1);
|
|
1689
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1690
|
+
tmp6_local2 = tmp7_input.a46(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1691
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1692
|
+
} else
|
|
1693
|
+
while (tmp1_flag) {
|
|
1694
|
+
tmp2_index = tmp7_input.c46(tmp0_desc);
|
|
1695
|
+
switch (tmp2_index) {
|
|
1696
|
+
case -1:
|
|
1697
|
+
tmp1_flag = false;
|
|
1698
|
+
break;
|
|
1699
|
+
case 0:
|
|
1700
|
+
tmp4_local0 = tmp7_input.y45(tmp0_desc, 0, tmp8_cached[0], tmp4_local0);
|
|
1701
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
1702
|
+
break;
|
|
1703
|
+
case 1:
|
|
1704
|
+
tmp5_local1 = tmp7_input.w45(tmp0_desc, 1);
|
|
1705
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
1706
|
+
break;
|
|
1707
|
+
case 2:
|
|
1708
|
+
tmp6_local2 = tmp7_input.a46(tmp0_desc, 2, StringSerializer_getInstance(), tmp6_local2);
|
|
1709
|
+
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
1710
|
+
break;
|
|
1711
|
+
default:
|
|
1712
|
+
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
tmp7_input.n45(tmp0_desc);
|
|
1716
|
+
return IntegerSequencesDataDto_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
1717
|
+
};
|
|
1718
|
+
protoOf($serializer_6).z41 = function () {
|
|
1719
|
+
return this.s5l_1;
|
|
1720
|
+
};
|
|
1721
|
+
protoOf($serializer_6).n4d = function () {
|
|
1722
|
+
// Inline function 'kotlin.arrayOf' call
|
|
1723
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1724
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1725
|
+
return [Companion_getInstance_10().r5l_1[0], StringSerializer_getInstance(), get_nullable(StringSerializer_getInstance())];
|
|
1726
|
+
};
|
|
1727
|
+
var $serializer_instance_4;
|
|
1728
|
+
function $serializer_getInstance_4() {
|
|
1729
|
+
if ($serializer_instance_4 == null)
|
|
1730
|
+
new $serializer_6();
|
|
1731
|
+
return $serializer_instance_4;
|
|
1732
|
+
}
|
|
1733
|
+
function IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, $this) {
|
|
1734
|
+
if (!(7 === (7 & seen0))) {
|
|
1735
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance_4().s5l_1);
|
|
1736
|
+
}
|
|
1737
|
+
$this.u5l_1 = data;
|
|
1738
|
+
$this.v5l_1 = completionTime;
|
|
1739
|
+
$this.w5l_1 = ticketId;
|
|
1740
|
+
return $this;
|
|
1741
|
+
}
|
|
1742
|
+
function IntegerSequencesDataDto_init_$Create$(seen0, data, completionTime, ticketId, serializationConstructorMarker) {
|
|
1743
|
+
return IntegerSequencesDataDto_init_$Init$(seen0, data, completionTime, ticketId, serializationConstructorMarker, objectCreate(protoOf(IntegerSequencesDataDto)));
|
|
1744
|
+
}
|
|
1745
|
+
function IntegerSequencesDataDto() {
|
|
1746
|
+
}
|
|
1747
|
+
protoOf(IntegerSequencesDataDto).toString = function () {
|
|
1748
|
+
return 'IntegerSequencesDataDto(data=' + toString(this.u5l_1) + ', completionTime=' + this.v5l_1 + ', ticketId=' + this.w5l_1 + ')';
|
|
1749
|
+
};
|
|
1750
|
+
protoOf(IntegerSequencesDataDto).hashCode = function () {
|
|
1751
|
+
var result = hashCode(this.u5l_1);
|
|
1752
|
+
result = imul(result, 31) + getStringHashCode(this.v5l_1) | 0;
|
|
1753
|
+
result = imul(result, 31) + (this.w5l_1 == null ? 0 : getStringHashCode(this.w5l_1)) | 0;
|
|
1754
|
+
return result;
|
|
1755
|
+
};
|
|
1756
|
+
protoOf(IntegerSequencesDataDto).equals = function (other) {
|
|
1757
|
+
if (this === other)
|
|
1758
|
+
return true;
|
|
1759
|
+
if (!(other instanceof IntegerSequencesDataDto))
|
|
1760
|
+
return false;
|
|
1761
|
+
var tmp0_other_with_cast = other instanceof IntegerSequencesDataDto ? other : THROW_CCE();
|
|
1762
|
+
if (!equals(this.u5l_1, tmp0_other_with_cast.u5l_1))
|
|
1763
|
+
return false;
|
|
1764
|
+
if (!(this.v5l_1 === tmp0_other_with_cast.v5l_1))
|
|
1765
|
+
return false;
|
|
1766
|
+
if (!(this.w5l_1 == tmp0_other_with_cast.w5l_1))
|
|
1767
|
+
return false;
|
|
1768
|
+
return true;
|
|
1769
|
+
};
|
|
1770
|
+
function mapToDto(_this__u8e3s4) {
|
|
1771
|
+
return new CardDecksUserDataDto(_this__u8e3s4.id, _this__u8e3s4.count);
|
|
1772
|
+
}
|
|
1773
|
+
function RandomOrgApiService() {
|
|
1774
|
+
}
|
|
1775
|
+
function throwIfError($this, bodyAsJson, response, $completion) {
|
|
1776
|
+
var tmp = new $throwIfErrorCOROUTINE$2($this, bodyAsJson, response, $completion);
|
|
1777
|
+
tmp.f9_1 = Unit_instance;
|
|
1778
|
+
tmp.g9_1 = null;
|
|
1779
|
+
return tmp.l9();
|
|
1780
|
+
}
|
|
1781
|
+
function extractRandomResult($this, bodyAsJson) {
|
|
1782
|
+
return toString(getValue(get_jsonObject(getValue(bodyAsJson, 'result')), 'random'));
|
|
1783
|
+
}
|
|
1784
|
+
function Companion_8() {
|
|
1785
|
+
this.k5m_1 = 52;
|
|
1786
|
+
}
|
|
1787
|
+
var Companion_instance_10;
|
|
1788
|
+
function Companion_getInstance_11() {
|
|
1789
|
+
return Companion_instance_10;
|
|
1790
|
+
}
|
|
1791
|
+
function $getRandomCardDecksCOROUTINE$1(_this__u8e3s4, min, max, decksCount, cardsCount, userData, signed, resultContinuation) {
|
|
1792
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1793
|
+
this.t5m_1 = _this__u8e3s4;
|
|
1794
|
+
this.u5m_1 = min;
|
|
1795
|
+
this.v5m_1 = max;
|
|
1796
|
+
this.w5m_1 = decksCount;
|
|
1797
|
+
this.x5m_1 = cardsCount;
|
|
1798
|
+
this.y5m_1 = userData;
|
|
1799
|
+
this.z5m_1 = signed;
|
|
1800
|
+
}
|
|
1801
|
+
protoOf($getRandomCardDecksCOROUTINE$1).l9 = function () {
|
|
1802
|
+
var suspendResult = this.f9_1;
|
|
1803
|
+
$sm: do
|
|
1804
|
+
try {
|
|
1805
|
+
var tmp = this.d9_1;
|
|
1806
|
+
switch (tmp) {
|
|
1807
|
+
case 0:
|
|
1808
|
+
this.e9_1 = 6;
|
|
1809
|
+
this.e9_1 = 5;
|
|
1810
|
+
var tmp_0 = this;
|
|
1811
|
+
tmp_0.a5n_1 = this.t5m_1.j5n_1;
|
|
1812
|
+
var tmp_1 = this;
|
|
1813
|
+
tmp_1.b5n_1 = this.a5n_1;
|
|
1814
|
+
var tmp_2 = this;
|
|
1815
|
+
var this_0 = new HttpRequestBuilder();
|
|
1816
|
+
url(this_0, '/json-rpc/4/invoke');
|
|
1817
|
+
var tmp11_id = this.y5m_1.id;
|
|
1818
|
+
var tmp12_method = this.z5m_1 ? 'generateSignedIntegerSequences' : 'generateIntegerSequences';
|
|
1819
|
+
var tmp8_apiKey = this.t5m_1.k5n_1;
|
|
1820
|
+
var size = this.w5m_1;
|
|
1821
|
+
var list = ArrayList_init_$Create$(size);
|
|
1822
|
+
var inductionVariable = 0;
|
|
1823
|
+
if (inductionVariable < size)
|
|
1824
|
+
do {
|
|
1825
|
+
var index = inductionVariable;
|
|
1826
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1827
|
+
list.e(this.x5m_1);
|
|
1828
|
+
}
|
|
1829
|
+
while (inductionVariable < size);
|
|
1830
|
+
var tmp10_userData = this.z5m_1 ? mapToDto(this.y5m_1) : null;
|
|
1831
|
+
var tmp13_params = new RandomIntegerSequencesParamsDto(tmp8_apiKey, this.w5m_1, list, this.u5m_1, this.v5m_1, false, null, tmp10_userData);
|
|
1832
|
+
var body = new RandomRequestDto('2.0', tmp12_method, tmp13_params, tmp11_id);
|
|
1833
|
+
if (body == null) {
|
|
1834
|
+
this_0.f2t_1 = NullBody_instance;
|
|
1835
|
+
var tmp_3 = JsType_instance;
|
|
1836
|
+
var tmp_4 = getKClass(RandomRequestDto);
|
|
1837
|
+
var tmp_5;
|
|
1838
|
+
try {
|
|
1839
|
+
tmp_5 = createKType(getKClass(RandomRequestDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(RandomIntegerSequencesParamsDto), arrayOf([]), false))]), false);
|
|
1840
|
+
} catch ($p) {
|
|
1841
|
+
var tmp_6;
|
|
1842
|
+
if ($p instanceof Error) {
|
|
1843
|
+
var cause = $p;
|
|
1844
|
+
tmp_6 = null;
|
|
1845
|
+
} else {
|
|
1846
|
+
throw $p;
|
|
1847
|
+
}
|
|
1848
|
+
tmp_5 = tmp_6;
|
|
1849
|
+
}
|
|
1850
|
+
this_0.b2z(typeInfoImpl(tmp_3, tmp_4, tmp_5));
|
|
1851
|
+
} else {
|
|
1852
|
+
if (body instanceof OutgoingContent) {
|
|
1853
|
+
this_0.f2t_1 = body;
|
|
1854
|
+
this_0.b2z(null);
|
|
1855
|
+
} else {
|
|
1856
|
+
this_0.f2t_1 = body;
|
|
1857
|
+
var tmp_7 = JsType_instance;
|
|
1858
|
+
var tmp_8 = getKClass(RandomRequestDto);
|
|
1859
|
+
var tmp_9;
|
|
1860
|
+
try {
|
|
1861
|
+
tmp_9 = createKType(getKClass(RandomRequestDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(RandomIntegerSequencesParamsDto), arrayOf([]), false))]), false);
|
|
1862
|
+
} catch ($p) {
|
|
1863
|
+
var tmp_10;
|
|
1864
|
+
if ($p instanceof Error) {
|
|
1865
|
+
var cause_0 = $p;
|
|
1866
|
+
tmp_10 = null;
|
|
1867
|
+
} else {
|
|
1868
|
+
throw $p;
|
|
1869
|
+
}
|
|
1870
|
+
tmp_9 = tmp_10;
|
|
1871
|
+
}
|
|
1872
|
+
this_0.b2z(typeInfoImpl(tmp_7, tmp_8, tmp_9));
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
tmp_2.c5n_1 = this_0;
|
|
1877
|
+
this.c5n_1.d2t_1 = Companion_getInstance().t2h_1;
|
|
1878
|
+
var tmp_11 = this;
|
|
1879
|
+
tmp_11.d5n_1 = this.b5n_1;
|
|
1880
|
+
var tmp_12 = this;
|
|
1881
|
+
tmp_12.e5n_1 = this.c5n_1;
|
|
1882
|
+
this.d9_1 = 1;
|
|
1883
|
+
suspendResult = (new HttpStatement(this.e5n_1, this.d5n_1)).l3m(this);
|
|
1884
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1885
|
+
return suspendResult;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
continue $sm;
|
|
1889
|
+
case 1:
|
|
1890
|
+
this.f5n_1 = suspendResult;
|
|
1891
|
+
var tmp_13 = this;
|
|
1892
|
+
tmp_13.g5n_1 = this.f5n_1;
|
|
1893
|
+
this.d9_1 = 2;
|
|
1894
|
+
var tmp_14 = this.g5n_1.k2w();
|
|
1895
|
+
var tmp_15 = JsType_instance;
|
|
1896
|
+
var tmp_16 = getKClass(JsonObject);
|
|
1897
|
+
var tmp_17;
|
|
1898
|
+
try {
|
|
1899
|
+
tmp_17 = createKType(getKClass(JsonObject), arrayOf([]), false);
|
|
1900
|
+
} catch ($p) {
|
|
1901
|
+
var tmp_18;
|
|
1902
|
+
if ($p instanceof Error) {
|
|
1903
|
+
var cause_1 = $p;
|
|
1904
|
+
tmp_18 = null;
|
|
1905
|
+
} else {
|
|
1906
|
+
throw $p;
|
|
1907
|
+
}
|
|
1908
|
+
tmp_17 = tmp_18;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
suspendResult = tmp_14.o2v(typeInfoImpl(tmp_15, tmp_16, tmp_17), this);
|
|
1912
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1913
|
+
return suspendResult;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
continue $sm;
|
|
1917
|
+
case 2:
|
|
1918
|
+
var tmp_19 = this;
|
|
1919
|
+
tmp_19.h5n_1 = suspendResult instanceof JsonObject ? suspendResult : THROW_CCE();
|
|
1920
|
+
this.d9_1 = 3;
|
|
1921
|
+
suspendResult = throwIfError(this.t5m_1, this.h5n_1, this.f5n_1, this);
|
|
1922
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1923
|
+
return suspendResult;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
continue $sm;
|
|
1927
|
+
case 3:
|
|
1928
|
+
var tmp_20 = this;
|
|
1929
|
+
tmp_20.i5n_1 = this.f5n_1;
|
|
1930
|
+
this.d9_1 = 4;
|
|
1931
|
+
var tmp_21 = this.i5n_1.k2w();
|
|
1932
|
+
var tmp_22 = JsType_instance;
|
|
1933
|
+
var tmp_23 = getKClass(RandomResponseDto);
|
|
1934
|
+
var tmp_24;
|
|
1935
|
+
try {
|
|
1936
|
+
tmp_24 = createKType(getKClass(RandomResponseDto), arrayOf([createInvariantKTypeProjection(createKType(getKClass(IntegerSequencesResultDto), arrayOf([]), false))]), false);
|
|
1937
|
+
} catch ($p) {
|
|
1938
|
+
var tmp_25;
|
|
1939
|
+
if ($p instanceof Error) {
|
|
1940
|
+
var cause_2 = $p;
|
|
1941
|
+
tmp_25 = null;
|
|
1942
|
+
} else {
|
|
1943
|
+
throw $p;
|
|
1944
|
+
}
|
|
1945
|
+
tmp_24 = tmp_25;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
suspendResult = tmp_21.o2v(typeInfoImpl(tmp_22, tmp_23, tmp_24), this);
|
|
1949
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1950
|
+
return suspendResult;
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
continue $sm;
|
|
1954
|
+
case 4:
|
|
1955
|
+
var responseDto = suspendResult instanceof RandomResponseDto ? suspendResult : THROW_CCE();
|
|
1956
|
+
var randomJson = extractRandomResult(this.t5m_1, this.h5n_1);
|
|
1957
|
+
var tmp14_cardDecks = responseDto.h5l_1.l5l_1.u5l_1;
|
|
1958
|
+
var tmp15_signature = responseDto.h5l_1.m5l_1;
|
|
1959
|
+
var tmp16_id = responseDto.i5l_1;
|
|
1960
|
+
return new CardDeckResult(tmp14_cardDecks, randomJson, tmp16_id, tmp15_signature);
|
|
1961
|
+
case 5:
|
|
1962
|
+
this.e9_1 = 6;
|
|
1963
|
+
var tmp_26 = this.g9_1;
|
|
1964
|
+
if (tmp_26 instanceof Error) {
|
|
1965
|
+
var error = this.g9_1;
|
|
1966
|
+
if (error instanceof RandomException)
|
|
1967
|
+
throw error;
|
|
1968
|
+
else {
|
|
1969
|
+
throw new RandomException(100001, '[getRandomCardDeck] error, message = ' + error.message, error);
|
|
1970
|
+
}
|
|
1971
|
+
} else {
|
|
1972
|
+
throw this.g9_1;
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
case 6:
|
|
1976
|
+
throw this.g9_1;
|
|
1977
|
+
}
|
|
1978
|
+
} catch ($p) {
|
|
1979
|
+
var e = $p;
|
|
1980
|
+
if (this.e9_1 === 6) {
|
|
1981
|
+
throw e;
|
|
1982
|
+
} else {
|
|
1983
|
+
this.d9_1 = this.e9_1;
|
|
1984
|
+
this.g9_1 = e;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
while (true);
|
|
1988
|
+
};
|
|
1989
|
+
function $throwIfErrorCOROUTINE$2(_this__u8e3s4, bodyAsJson, response, resultContinuation) {
|
|
1990
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1991
|
+
this.g5m_1 = _this__u8e3s4;
|
|
1992
|
+
this.h5m_1 = bodyAsJson;
|
|
1993
|
+
this.i5m_1 = response;
|
|
1994
|
+
}
|
|
1995
|
+
protoOf($throwIfErrorCOROUTINE$2).l9 = function () {
|
|
1996
|
+
var suspendResult = this.f9_1;
|
|
1997
|
+
$sm: do
|
|
1998
|
+
try {
|
|
1999
|
+
var tmp = this.d9_1;
|
|
2000
|
+
switch (tmp) {
|
|
2001
|
+
case 0:
|
|
2002
|
+
this.e9_1 = 3;
|
|
2003
|
+
var this_0 = this.h5m_1;
|
|
2004
|
+
if ((isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).f2('error')) {
|
|
2005
|
+
var tmp_0 = this;
|
|
2006
|
+
tmp_0.j5m_1 = this.i5m_1;
|
|
2007
|
+
this.d9_1 = 2;
|
|
2008
|
+
var tmp_1 = this.j5m_1.k2w();
|
|
2009
|
+
var tmp_2 = JsType_instance;
|
|
2010
|
+
var tmp_3 = getKClass(ErrorResponseDto);
|
|
2011
|
+
var tmp_4;
|
|
2012
|
+
try {
|
|
2013
|
+
tmp_4 = createKType(getKClass(ErrorResponseDto), arrayOf([]), false);
|
|
2014
|
+
} catch ($p) {
|
|
2015
|
+
var tmp_5;
|
|
2016
|
+
if ($p instanceof Error) {
|
|
2017
|
+
var cause = $p;
|
|
2018
|
+
tmp_5 = null;
|
|
2019
|
+
} else {
|
|
2020
|
+
throw $p;
|
|
2021
|
+
}
|
|
2022
|
+
tmp_4 = tmp_5;
|
|
2023
|
+
}
|
|
2024
|
+
suspendResult = tmp_1.o2v(typeInfoImpl(tmp_2, tmp_3, tmp_4), this);
|
|
2025
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2026
|
+
return suspendResult;
|
|
2027
|
+
}
|
|
2028
|
+
continue $sm;
|
|
2029
|
+
} else {
|
|
2030
|
+
this.d9_1 = 1;
|
|
2031
|
+
continue $sm;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
case 1:
|
|
2035
|
+
return Unit_instance;
|
|
2036
|
+
case 2:
|
|
2037
|
+
var errorResponseDto = suspendResult instanceof ErrorResponseDto ? suspendResult : THROW_CCE();
|
|
2038
|
+
var tmp18_safe_receiver = errorResponseDto.z5j_1;
|
|
2039
|
+
var tmp_6 = tmp18_safe_receiver == null ? null : tmp18_safe_receiver.c5k_1;
|
|
2040
|
+
var tmp19_safe_receiver = errorResponseDto.z5j_1;
|
|
2041
|
+
throw new RandomException(tmp_6, tmp19_safe_receiver == null ? null : tmp19_safe_receiver.d5k_1);
|
|
2042
|
+
case 3:
|
|
2043
|
+
throw this.g9_1;
|
|
2044
|
+
}
|
|
2045
|
+
} catch ($p) {
|
|
2046
|
+
var e = $p;
|
|
2047
|
+
if (this.e9_1 === 3) {
|
|
2048
|
+
throw e;
|
|
2049
|
+
} else {
|
|
2050
|
+
this.d9_1 = this.e9_1;
|
|
2051
|
+
this.g9_1 = e;
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
while (true);
|
|
2055
|
+
};
|
|
2056
|
+
function RandomOrgApiServiceImpl(client, apiKey) {
|
|
2057
|
+
this.j5n_1 = client;
|
|
2058
|
+
this.k5n_1 = apiKey;
|
|
2059
|
+
}
|
|
2060
|
+
protoOf(RandomOrgApiServiceImpl).x5l = function (min, max, decksCount, cardsCount, userData, signed, $completion) {
|
|
2061
|
+
var tmp = new $getRandomCardDecksCOROUTINE$1(this, min, max, decksCount, cardsCount, userData, signed, $completion);
|
|
2062
|
+
tmp.f9_1 = Unit_instance;
|
|
2063
|
+
tmp.g9_1 = null;
|
|
2064
|
+
return tmp.l9();
|
|
2065
|
+
};
|
|
2066
|
+
function PoolParams(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown) {
|
|
2067
|
+
poolSize = poolSize === VOID ? 100 : poolSize;
|
|
2068
|
+
thresholdForUsedPool = thresholdForUsedPool === VOID ? 3 : thresholdForUsedPool;
|
|
2069
|
+
requestDurationWarn = requestDurationWarn === VOID ? 3000 : requestDurationWarn;
|
|
2070
|
+
failedRequestAttempts = failedRequestAttempts === VOID ? 3 : failedRequestAttempts;
|
|
2071
|
+
var tmp;
|
|
2072
|
+
if (failedAttemptCooldown === VOID) {
|
|
2073
|
+
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
2074
|
+
Companion_getInstance_0();
|
|
2075
|
+
var this_0 = new Long(120000, 0);
|
|
2076
|
+
tmp = toDuration(this_0, DurationUnit_MILLISECONDS_getInstance());
|
|
2077
|
+
} else {
|
|
2078
|
+
tmp = failedAttemptCooldown;
|
|
2079
|
+
}
|
|
2080
|
+
failedAttemptCooldown = tmp;
|
|
2081
|
+
this.poolSize = poolSize;
|
|
2082
|
+
this.thresholdForUsedPool = thresholdForUsedPool;
|
|
2083
|
+
this.requestDurationWarn = requestDurationWarn;
|
|
2084
|
+
this.failedRequestAttempts = failedRequestAttempts;
|
|
2085
|
+
this.failedAttemptCooldown = failedAttemptCooldown;
|
|
2086
|
+
}
|
|
2087
|
+
protoOf(PoolParams).s5j = function () {
|
|
2088
|
+
return this.poolSize;
|
|
2089
|
+
};
|
|
2090
|
+
protoOf(PoolParams).t5j = function () {
|
|
2091
|
+
return this.thresholdForUsedPool;
|
|
2092
|
+
};
|
|
2093
|
+
protoOf(PoolParams).l5n = function () {
|
|
2094
|
+
return this.requestDurationWarn;
|
|
2095
|
+
};
|
|
2096
|
+
protoOf(PoolParams).m5n = function () {
|
|
2097
|
+
return this.failedRequestAttempts;
|
|
2098
|
+
};
|
|
2099
|
+
protoOf(PoolParams).n5n = function () {
|
|
2100
|
+
return this.failedAttemptCooldown;
|
|
2101
|
+
};
|
|
2102
|
+
protoOf(PoolParams).me = function () {
|
|
2103
|
+
return this.poolSize;
|
|
2104
|
+
};
|
|
2105
|
+
protoOf(PoolParams).ne = function () {
|
|
2106
|
+
return this.thresholdForUsedPool;
|
|
2107
|
+
};
|
|
2108
|
+
protoOf(PoolParams).fj = function () {
|
|
2109
|
+
return this.requestDurationWarn;
|
|
2110
|
+
};
|
|
2111
|
+
protoOf(PoolParams).k5j = function () {
|
|
2112
|
+
return this.failedRequestAttempts;
|
|
2113
|
+
};
|
|
2114
|
+
protoOf(PoolParams).o5n = function () {
|
|
2115
|
+
return this.failedAttemptCooldown;
|
|
2116
|
+
};
|
|
2117
|
+
protoOf(PoolParams).p5n = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown) {
|
|
2118
|
+
return new PoolParams(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2119
|
+
};
|
|
2120
|
+
protoOf(PoolParams).copy = function (poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown, $super) {
|
|
2121
|
+
poolSize = poolSize === VOID ? this.poolSize : poolSize;
|
|
2122
|
+
thresholdForUsedPool = thresholdForUsedPool === VOID ? this.thresholdForUsedPool : thresholdForUsedPool;
|
|
2123
|
+
requestDurationWarn = requestDurationWarn === VOID ? this.requestDurationWarn : requestDurationWarn;
|
|
2124
|
+
failedRequestAttempts = failedRequestAttempts === VOID ? this.failedRequestAttempts : failedRequestAttempts;
|
|
2125
|
+
failedAttemptCooldown = failedAttemptCooldown === VOID ? this.failedAttemptCooldown : failedAttemptCooldown;
|
|
2126
|
+
return this.p5n(poolSize, thresholdForUsedPool, requestDurationWarn, failedRequestAttempts, failedAttemptCooldown);
|
|
2127
|
+
};
|
|
2128
|
+
protoOf(PoolParams).toString = function () {
|
|
2129
|
+
return 'PoolParams(poolSize=' + this.poolSize + ', thresholdForUsedPool=' + this.thresholdForUsedPool + ', requestDurationWarn=' + this.requestDurationWarn + ', failedRequestAttempts=' + this.failedRequestAttempts + ', failedAttemptCooldown=' + Duration__toString_impl_8d916b(this.failedAttemptCooldown) + ')';
|
|
2130
|
+
};
|
|
2131
|
+
protoOf(PoolParams).hashCode = function () {
|
|
2132
|
+
var result = this.poolSize;
|
|
2133
|
+
result = imul(result, 31) + this.thresholdForUsedPool | 0;
|
|
2134
|
+
result = imul(result, 31) + this.requestDurationWarn | 0;
|
|
2135
|
+
result = imul(result, 31) + this.failedRequestAttempts | 0;
|
|
2136
|
+
result = imul(result, 31) + Duration__hashCode_impl_u4exz6(this.failedAttemptCooldown) | 0;
|
|
2137
|
+
return result;
|
|
2138
|
+
};
|
|
2139
|
+
protoOf(PoolParams).equals = function (other) {
|
|
2140
|
+
if (this === other)
|
|
2141
|
+
return true;
|
|
2142
|
+
if (!(other instanceof PoolParams))
|
|
2143
|
+
return false;
|
|
2144
|
+
var tmp0_other_with_cast = other instanceof PoolParams ? other : THROW_CCE();
|
|
2145
|
+
if (!(this.poolSize === tmp0_other_with_cast.poolSize))
|
|
2146
|
+
return false;
|
|
2147
|
+
if (!(this.thresholdForUsedPool === tmp0_other_with_cast.thresholdForUsedPool))
|
|
2148
|
+
return false;
|
|
2149
|
+
if (!(this.requestDurationWarn === tmp0_other_with_cast.requestDurationWarn))
|
|
2150
|
+
return false;
|
|
2151
|
+
if (!(this.failedRequestAttempts === tmp0_other_with_cast.failedRequestAttempts))
|
|
2152
|
+
return false;
|
|
2153
|
+
if (!equals(this.failedAttemptCooldown, tmp0_other_with_cast.failedAttemptCooldown))
|
|
2154
|
+
return false;
|
|
2155
|
+
return true;
|
|
2156
|
+
};
|
|
2157
|
+
function RandomPoolProvider() {
|
|
2158
|
+
}
|
|
2159
|
+
function RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2160
|
+
usedByGames = usedByGames === VOID ? emptyMap() : usedByGames;
|
|
2161
|
+
reservedCardDecks = reservedCardDecks === VOID ? 0 : reservedCardDecks;
|
|
2162
|
+
isUsed = isUsed === VOID ? false : isUsed;
|
|
2163
|
+
this.t5n_1 = randomResult;
|
|
2164
|
+
this.u5n_1 = usedByGames;
|
|
2165
|
+
this.v5n_1 = reservedCardDecks;
|
|
2166
|
+
this.w5n_1 = isUsed;
|
|
2167
|
+
}
|
|
2168
|
+
protoOf(RandomPoolValue).x5n = function () {
|
|
2169
|
+
return this.t5n_1.d5j_1.m();
|
|
2170
|
+
};
|
|
2171
|
+
protoOf(RandomPoolValue).y5n = function (minRoundsCount) {
|
|
2172
|
+
if (this.w5n_1) {
|
|
2173
|
+
return false;
|
|
2174
|
+
}
|
|
2175
|
+
var availableCount = this.x5n() - this.v5n_1 | 0;
|
|
2176
|
+
return availableCount >= minRoundsCount;
|
|
2177
|
+
};
|
|
2178
|
+
protoOf(RandomPoolValue).z5n = function (gameId, reservedCardDecks, thresholdForUsedPool) {
|
|
2179
|
+
var lastReservedCardDeckIndex = this.v5n_1 - 1 | 0;
|
|
2180
|
+
// Inline function 'kotlin.apply' call
|
|
2181
|
+
var this_0 = toMutableMap(this.u5n_1);
|
|
2182
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2183
|
+
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndAttachNewGame.<anonymous>' call
|
|
2184
|
+
this_0.k2(gameId, lastReservedCardDeckIndex + 1 | 0);
|
|
2185
|
+
var newNewUsedBy = toMap(this_0);
|
|
2186
|
+
var newReservedCardDecks = this.v5n_1 + reservedCardDecks | 0;
|
|
2187
|
+
return this.a5o(VOID, newNewUsedBy, newReservedCardDecks, (newReservedCardDecks + thresholdForUsedPool | 0) > this.x5n());
|
|
2188
|
+
};
|
|
2189
|
+
protoOf(RandomPoolValue).b5o = function (gameId) {
|
|
2190
|
+
var currentCardDeckIndex = getValue(this.u5n_1, gameId);
|
|
2191
|
+
var tmp;
|
|
2192
|
+
if (currentCardDeckIndex === get_lastIndex(this.t5n_1.d5j_1)) {
|
|
2193
|
+
tmp = 0;
|
|
2194
|
+
} else {
|
|
2195
|
+
tmp = currentCardDeckIndex + 1 | 0;
|
|
2196
|
+
}
|
|
2197
|
+
var newCardDeckIndex = tmp;
|
|
2198
|
+
// Inline function 'kotlin.apply' call
|
|
2199
|
+
var this_0 = toMutableMap(this.u5n_1);
|
|
2200
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2201
|
+
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolValue.copyAndMoveToNextRound.<anonymous>' call
|
|
2202
|
+
this_0.k2(gameId, newCardDeckIndex);
|
|
2203
|
+
var newNewUsedBy = toMap(this_0);
|
|
2204
|
+
return this.a5o(VOID, newNewUsedBy);
|
|
2205
|
+
};
|
|
2206
|
+
protoOf(RandomPoolValue).c5o = function (gameId, reservedCardDecks) {
|
|
2207
|
+
return this.a5o(VOID, mapOf(to(gameId, 0)), reservedCardDecks);
|
|
2208
|
+
};
|
|
2209
|
+
protoOf(RandomPoolValue).d5o = function (gameId) {
|
|
2210
|
+
var index = getValue(this.u5n_1, gameId);
|
|
2211
|
+
return new GameCardDeckData(index, this.t5n_1.d5j_1.o(index));
|
|
2212
|
+
};
|
|
2213
|
+
protoOf(RandomPoolValue).e5o = function (randomResult, usedByGames, reservedCardDecks, isUsed) {
|
|
2214
|
+
return new RandomPoolValue(randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2215
|
+
};
|
|
2216
|
+
protoOf(RandomPoolValue).a5o = function (randomResult, usedByGames, reservedCardDecks, isUsed, $super) {
|
|
2217
|
+
randomResult = randomResult === VOID ? this.t5n_1 : randomResult;
|
|
2218
|
+
usedByGames = usedByGames === VOID ? this.u5n_1 : usedByGames;
|
|
2219
|
+
reservedCardDecks = reservedCardDecks === VOID ? this.v5n_1 : reservedCardDecks;
|
|
2220
|
+
isUsed = isUsed === VOID ? this.w5n_1 : isUsed;
|
|
2221
|
+
return $super === VOID ? this.e5o(randomResult, usedByGames, reservedCardDecks, isUsed) : $super.e5o.call(this, randomResult, usedByGames, reservedCardDecks, isUsed);
|
|
2222
|
+
};
|
|
2223
|
+
protoOf(RandomPoolValue).toString = function () {
|
|
2224
|
+
return 'RandomPoolValue(randomResult=' + this.t5n_1.toString() + ', usedByGames=' + toString(this.u5n_1) + ', reservedCardDecks=' + this.v5n_1 + ', isUsed=' + this.w5n_1 + ')';
|
|
2225
|
+
};
|
|
2226
|
+
protoOf(RandomPoolValue).hashCode = function () {
|
|
2227
|
+
var result = this.t5n_1.hashCode();
|
|
2228
|
+
result = imul(result, 31) + hashCode(this.u5n_1) | 0;
|
|
2229
|
+
result = imul(result, 31) + this.v5n_1 | 0;
|
|
2230
|
+
result = imul(result, 31) + getBooleanHashCode(this.w5n_1) | 0;
|
|
2231
|
+
return result;
|
|
2232
|
+
};
|
|
2233
|
+
protoOf(RandomPoolValue).equals = function (other) {
|
|
2234
|
+
if (this === other)
|
|
2235
|
+
return true;
|
|
2236
|
+
if (!(other instanceof RandomPoolValue))
|
|
2237
|
+
return false;
|
|
2238
|
+
var tmp0_other_with_cast = other instanceof RandomPoolValue ? other : THROW_CCE();
|
|
2239
|
+
if (!this.t5n_1.equals(tmp0_other_with_cast.t5n_1))
|
|
2240
|
+
return false;
|
|
2241
|
+
if (!equals(this.u5n_1, tmp0_other_with_cast.u5n_1))
|
|
2242
|
+
return false;
|
|
2243
|
+
if (!(this.v5n_1 === tmp0_other_with_cast.v5n_1))
|
|
2244
|
+
return false;
|
|
2245
|
+
if (!(this.w5n_1 === tmp0_other_with_cast.w5n_1))
|
|
2246
|
+
return false;
|
|
2247
|
+
return true;
|
|
2248
|
+
};
|
|
2249
|
+
function RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2250
|
+
this.n5o_1 = this$0;
|
|
2251
|
+
this.o5o_1 = $minRoundsCountInPool;
|
|
2252
|
+
this.p5o_1 = $userData;
|
|
2253
|
+
this.q5o_1 = $min;
|
|
2254
|
+
this.r5o_1 = $max;
|
|
2255
|
+
this.s5o_1 = $cardsCount;
|
|
2256
|
+
this.t5o_1 = $signed;
|
|
2257
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2258
|
+
}
|
|
2259
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).v5o = function ($this$withTimeout, $completion) {
|
|
2260
|
+
var tmp = this.d1c($this$withTimeout, $completion);
|
|
2261
|
+
tmp.f9_1 = Unit_instance;
|
|
2262
|
+
tmp.g9_1 = null;
|
|
2263
|
+
var tmp_0 = tmp.l9();
|
|
2264
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2265
|
+
return tmp_0;
|
|
2266
|
+
return tmp_0;
|
|
2267
|
+
};
|
|
2268
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).ga = function (p1, $completion) {
|
|
2269
|
+
return this.v5o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2270
|
+
};
|
|
2271
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).l9 = function () {
|
|
2272
|
+
var suspendResult = this.f9_1;
|
|
2273
|
+
$sm: do
|
|
2274
|
+
try {
|
|
2275
|
+
var tmp = this.d9_1;
|
|
2276
|
+
switch (tmp) {
|
|
2277
|
+
case 0:
|
|
2278
|
+
this.e9_1 = 2;
|
|
2279
|
+
this.d9_1 = 1;
|
|
2280
|
+
suspendResult = getOrLoadGameCardDeckData(this.n5o_1, this.o5o_1, this.p5o_1, this.q5o_1, this.r5o_1, this.s5o_1, this.t5o_1, this);
|
|
2281
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2282
|
+
return suspendResult;
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
continue $sm;
|
|
2286
|
+
case 1:
|
|
2287
|
+
var cardDeckData = suspendResult;
|
|
2288
|
+
return new Result(_Result___init__impl__xyqfz8(cardDeckData));
|
|
2289
|
+
case 2:
|
|
2290
|
+
throw this.g9_1;
|
|
2291
|
+
}
|
|
2292
|
+
} catch ($p) {
|
|
2293
|
+
var e = $p;
|
|
2294
|
+
if (this.e9_1 === 2) {
|
|
2295
|
+
throw e;
|
|
2296
|
+
} else {
|
|
2297
|
+
this.d9_1 = this.e9_1;
|
|
2298
|
+
this.g9_1 = e;
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
while (true);
|
|
2302
|
+
};
|
|
2303
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda$slambda).d1c = function ($this$withTimeout, completion) {
|
|
2304
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this.n5o_1, this.o5o_1, this.p5o_1, this.q5o_1, this.r5o_1, this.s5o_1, this.t5o_1, completion);
|
|
2305
|
+
i.u5o_1 = $this$withTimeout;
|
|
2306
|
+
return i;
|
|
2307
|
+
};
|
|
2308
|
+
function RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2309
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda$slambda(this$0, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2310
|
+
var l = function ($this$withTimeout, $completion) {
|
|
2311
|
+
return i.v5o($this$withTimeout, $completion);
|
|
2312
|
+
};
|
|
2313
|
+
l.$arity = 1;
|
|
2314
|
+
return l;
|
|
2315
|
+
}
|
|
2316
|
+
function getOrLoadGameCardDeckData($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion) {
|
|
2317
|
+
var tmp = new $getOrLoadGameCardDeckDataCOROUTINE$3($this, minRoundsCountInPool, userData, min, max, cardsCount, signed, $completion);
|
|
2318
|
+
tmp.f9_1 = Unit_instance;
|
|
2319
|
+
tmp.g9_1 = null;
|
|
2320
|
+
return tmp.l9();
|
|
2321
|
+
}
|
|
2322
|
+
function requestNewCardDecks($this, min, max, cardsCount, signed, $completion) {
|
|
2323
|
+
return withContext($this.p5p_1, RandomPoolProviderImpl$requestNewCardDecks$slambda_0($this, min, max, cardsCount, signed, null), $completion);
|
|
2324
|
+
}
|
|
2325
|
+
function getPreparedGameCardDecksRecord($this, poolId, signature, cardDeckData, userData) {
|
|
2326
|
+
var existingCardDeck = $this.t5p_1.h2(userData.gameId);
|
|
2327
|
+
var tmp;
|
|
2328
|
+
if (!(existingCardDeck == null)) {
|
|
2329
|
+
tmp = Companion_instance_2.newRound(existingCardDeck, cardDeckData);
|
|
2330
|
+
} else {
|
|
2331
|
+
tmp = Companion_instance_2.firstRound(poolId, signature, cardDeckData, userData);
|
|
2332
|
+
}
|
|
2333
|
+
return tmp;
|
|
2334
|
+
}
|
|
2335
|
+
function getPreparedRandomPoolValue($this, gameId, min, max, minRoundsCount, cardsCount, signed, $completion) {
|
|
2336
|
+
var tmp = new $getPreparedRandomPoolValueCOROUTINE$4($this, gameId, min, max, minRoundsCount, cardsCount, signed, $completion);
|
|
2337
|
+
tmp.f9_1 = Unit_instance;
|
|
2338
|
+
tmp.g9_1 = null;
|
|
2339
|
+
return tmp.l9();
|
|
2340
|
+
}
|
|
2341
|
+
function Companion_9() {
|
|
2342
|
+
this.n5q_1 = 100;
|
|
2343
|
+
this.o5q_1 = 3;
|
|
2344
|
+
this.p5q_1 = 3000;
|
|
2345
|
+
}
|
|
2346
|
+
var Companion_instance_11;
|
|
2347
|
+
function Companion_getInstance_12() {
|
|
2348
|
+
return Companion_instance_11;
|
|
2349
|
+
}
|
|
2350
|
+
function RandomPoolProviderImpl$_init_$lambda_f6qzy3() {
|
|
2351
|
+
return uuid4().toString();
|
|
2352
|
+
}
|
|
2353
|
+
function RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2354
|
+
this.y5q_1 = this$0;
|
|
2355
|
+
this.z5q_1 = $timeoutMillis;
|
|
2356
|
+
this.a5r_1 = $minRoundsCountInPool;
|
|
2357
|
+
this.b5r_1 = $userData;
|
|
2358
|
+
this.c5r_1 = $min;
|
|
2359
|
+
this.d5r_1 = $max;
|
|
2360
|
+
this.e5r_1 = $cardsCount;
|
|
2361
|
+
this.f5r_1 = $signed;
|
|
2362
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2363
|
+
}
|
|
2364
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).v5o = function ($this$withContext, $completion) {
|
|
2365
|
+
var tmp = this.d1c($this$withContext, $completion);
|
|
2366
|
+
tmp.f9_1 = Unit_instance;
|
|
2367
|
+
tmp.g9_1 = null;
|
|
2368
|
+
var tmp_0 = tmp.l9();
|
|
2369
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
2370
|
+
return tmp_0;
|
|
2371
|
+
return tmp_0;
|
|
2372
|
+
};
|
|
2373
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).ga = function (p1, $completion) {
|
|
2374
|
+
return this.v5o((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2375
|
+
};
|
|
2376
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).l9 = function () {
|
|
2377
|
+
var suspendResult = this.f9_1;
|
|
2378
|
+
$sm: do
|
|
2379
|
+
try {
|
|
2380
|
+
var tmp = this.d9_1;
|
|
2381
|
+
switch (tmp) {
|
|
2382
|
+
case 0:
|
|
2383
|
+
this.e9_1 = 11;
|
|
2384
|
+
var tmp_0 = this;
|
|
2385
|
+
tmp_0.h5r_1 = this.y5q_1.r5p_1;
|
|
2386
|
+
var tmp_1 = this;
|
|
2387
|
+
tmp_1.i5r_1 = null;
|
|
2388
|
+
this.d9_1 = 1;
|
|
2389
|
+
suspendResult = this.h5r_1.z1j(this.i5r_1, this);
|
|
2390
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2391
|
+
return suspendResult;
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
continue $sm;
|
|
2395
|
+
case 1:
|
|
2396
|
+
this.j5r_1 = Unit_instance;
|
|
2397
|
+
this.d9_1 = 2;
|
|
2398
|
+
continue $sm;
|
|
2399
|
+
case 2:
|
|
2400
|
+
this.e9_1 = 10;
|
|
2401
|
+
this.k5r_1 = Unit_instance;
|
|
2402
|
+
this.d9_1 = 3;
|
|
2403
|
+
continue $sm;
|
|
2404
|
+
case 3:
|
|
2405
|
+
this.l5r_1 = this.y5q_1.u5p_1;
|
|
2406
|
+
if (!(this.l5r_1 == null) && this.y5q_1.v5p_1 >= this.y5q_1.m5p_1.failedRequestAttempts) {
|
|
2407
|
+
this.m5r_1 = this.l5r_1.y5h(this.y5q_1.m5p_1.failedAttemptCooldown);
|
|
2408
|
+
if (this.m5r_1.c5i(System_instance.k52()) > 0) {
|
|
2409
|
+
this.n5r_1 = new RandomException(VOID, 'getCardDeck cooldown ends in ' + this.m5r_1.toString());
|
|
2410
|
+
this.y5q_1.o5p_1.v('RandomPoolProvider', VOID, this.n5r_1);
|
|
2411
|
+
var tmp_2 = this;
|
|
2412
|
+
var exception = this.n5r_1;
|
|
2413
|
+
tmp_2.k5r_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception)));
|
|
2414
|
+
this.d9_1 = 8;
|
|
2415
|
+
continue $sm;
|
|
2416
|
+
} else {
|
|
2417
|
+
this.d9_1 = 4;
|
|
2418
|
+
continue $sm;
|
|
2419
|
+
}
|
|
2420
|
+
} else {
|
|
2421
|
+
this.d9_1 = 5;
|
|
2422
|
+
continue $sm;
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2425
|
+
case 4:
|
|
2426
|
+
this.d9_1 = 5;
|
|
2427
|
+
continue $sm;
|
|
2428
|
+
case 5:
|
|
2429
|
+
this.e9_1 = 7;
|
|
2430
|
+
this.d9_1 = 6;
|
|
2431
|
+
suspendResult = withTimeout(this.z5q_1, RandomPoolProviderImpl$getCardDeck$slambda$slambda_0(this.y5q_1, this.a5r_1, this.b5r_1, this.c5r_1, this.d5r_1, this.e5r_1, this.f5r_1, null), this);
|
|
2432
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2433
|
+
return suspendResult;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2436
|
+
continue $sm;
|
|
2437
|
+
case 6:
|
|
2438
|
+
this.k5r_1 = suspendResult;
|
|
2439
|
+
this.d9_1 = 8;
|
|
2440
|
+
continue $sm;
|
|
2441
|
+
case 7:
|
|
2442
|
+
this.e9_1 = 10;
|
|
2443
|
+
var tmp_3 = this.g9_1;
|
|
2444
|
+
if (tmp_3 instanceof Error) {
|
|
2445
|
+
var error = this.g9_1;
|
|
2446
|
+
this.y5q_1.u5p_1 = System_instance.k52();
|
|
2447
|
+
var _unary__edvuaz = this.y5q_1.v5p_1;
|
|
2448
|
+
this.y5q_1.v5p_1 = _unary__edvuaz + 1 | 0;
|
|
2449
|
+
var exception_0 = new RandomException(VOID, 'createNewShuffledCardDeck error message = ' + error.message, error);
|
|
2450
|
+
this.y5q_1.o5p_1.v('RandomPoolProvider', VOID, exception_0);
|
|
2451
|
+
var tmp_4 = this;
|
|
2452
|
+
tmp_4.k5r_1 = new Result(_Result___init__impl__xyqfz8(createFailure(exception_0)));
|
|
2453
|
+
this.d9_1 = 8;
|
|
2454
|
+
continue $sm;
|
|
2455
|
+
} else {
|
|
2456
|
+
throw this.g9_1;
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
case 8:
|
|
2460
|
+
this.j5r_1 = this.k5r_1;
|
|
2461
|
+
this.e9_1 = 11;
|
|
2462
|
+
this.d9_1 = 9;
|
|
2463
|
+
continue $sm;
|
|
2464
|
+
case 9:
|
|
2465
|
+
var tmp_5 = this.j5r_1;
|
|
2466
|
+
this.e9_1 = 11;
|
|
2467
|
+
this.h5r_1.k1j(this.i5r_1);
|
|
2468
|
+
return tmp_5;
|
|
2469
|
+
case 10:
|
|
2470
|
+
this.e9_1 = 11;
|
|
2471
|
+
var t = this.g9_1;
|
|
2472
|
+
this.h5r_1.k1j(this.i5r_1);
|
|
2473
|
+
throw t;
|
|
2474
|
+
case 11:
|
|
2475
|
+
throw this.g9_1;
|
|
2476
|
+
}
|
|
2477
|
+
} catch ($p) {
|
|
2478
|
+
var e = $p;
|
|
2479
|
+
if (this.e9_1 === 11) {
|
|
2480
|
+
throw e;
|
|
2481
|
+
} else {
|
|
2482
|
+
this.d9_1 = this.e9_1;
|
|
2483
|
+
this.g9_1 = e;
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
while (true);
|
|
2487
|
+
};
|
|
2488
|
+
protoOf(RandomPoolProviderImpl$getCardDeck$slambda).d1c = function ($this$withContext, completion) {
|
|
2489
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this.y5q_1, this.z5q_1, this.a5r_1, this.b5r_1, this.c5r_1, this.d5r_1, this.e5r_1, this.f5r_1, completion);
|
|
2490
|
+
i.g5r_1 = $this$withContext;
|
|
2491
|
+
return i;
|
|
2492
|
+
};
|
|
2493
|
+
function RandomPoolProviderImpl$getCardDeck$slambda_0(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2494
|
+
var i = new RandomPoolProviderImpl$getCardDeck$slambda(this$0, $timeoutMillis, $minRoundsCountInPool, $userData, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2495
|
+
var l = function ($this$withContext, $completion) {
|
|
2496
|
+
return i.v5o($this$withContext, $completion);
|
|
2497
|
+
};
|
|
2498
|
+
l.$arity = 1;
|
|
2499
|
+
return l;
|
|
2500
|
+
}
|
|
2501
|
+
function RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2502
|
+
this.w5r_1 = this$0;
|
|
2503
|
+
this.x5r_1 = $min;
|
|
2504
|
+
this.y5r_1 = $max;
|
|
2505
|
+
this.z5r_1 = $cardsCount;
|
|
2506
|
+
this.a5s_1 = $signed;
|
|
2507
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2508
|
+
}
|
|
2509
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).d5s = function ($this$withContext, $completion) {
|
|
2510
|
+
var tmp = this.d1c($this$withContext, $completion);
|
|
2511
|
+
tmp.f9_1 = Unit_instance;
|
|
2512
|
+
tmp.g9_1 = null;
|
|
2513
|
+
return tmp.l9();
|
|
2514
|
+
};
|
|
2515
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).ga = function (p1, $completion) {
|
|
2516
|
+
return this.d5s((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
2517
|
+
};
|
|
2518
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).l9 = function () {
|
|
2519
|
+
var suspendResult = this.f9_1;
|
|
2520
|
+
$sm: do
|
|
2521
|
+
try {
|
|
2522
|
+
var tmp = this.d9_1;
|
|
2523
|
+
switch (tmp) {
|
|
2524
|
+
case 0:
|
|
2525
|
+
this.e9_1 = 2;
|
|
2526
|
+
this.c5s_1 = System_instance.k52();
|
|
2527
|
+
this.d9_1 = 1;
|
|
2528
|
+
suspendResult = this.w5r_1.n5p_1.x5l(this.x5r_1, this.y5r_1, this.w5r_1.m5p_1.poolSize, this.z5r_1, new CardDecksRequestUserData(this.w5r_1.q5p_1(), this.w5r_1.m5p_1.poolSize), this.a5s_1, this);
|
|
2529
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2530
|
+
return suspendResult;
|
|
2531
|
+
}
|
|
2532
|
+
|
|
2533
|
+
continue $sm;
|
|
2534
|
+
case 1:
|
|
2535
|
+
var result = suspendResult;
|
|
2536
|
+
var requestEndTime = System_instance.k52();
|
|
2537
|
+
var requestDuration = requestEndTime.b5i(this.c5s_1);
|
|
2538
|
+
Companion_getInstance_0();
|
|
2539
|
+
var this_0 = this.w5r_1.m5p_1.requestDurationWarn;
|
|
2540
|
+
if (Duration__compareTo_impl_pchp0f(requestDuration, toDuration_0(this_0, DurationUnit_MILLISECONDS_getInstance())) > 0) {
|
|
2541
|
+
this.w5r_1.o5p_1.w('RandomPoolProvider', 'Card deck request took longer then expected: ' + ('actual = ' + Duration__toString_impl_8d916b(requestDuration) + ', ') + ('expected = ' + this.w5r_1.m5p_1.requestDurationWarn));
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
var newCardDecksValue = new RandomPoolValue(result);
|
|
2545
|
+
return newCardDecksValue;
|
|
2546
|
+
case 2:
|
|
2547
|
+
throw this.g9_1;
|
|
2548
|
+
}
|
|
2549
|
+
} catch ($p) {
|
|
2550
|
+
var e = $p;
|
|
2551
|
+
if (this.e9_1 === 2) {
|
|
2552
|
+
throw e;
|
|
2553
|
+
} else {
|
|
2554
|
+
this.d9_1 = this.e9_1;
|
|
2555
|
+
this.g9_1 = e;
|
|
2556
|
+
}
|
|
2557
|
+
}
|
|
2558
|
+
while (true);
|
|
2559
|
+
};
|
|
2560
|
+
protoOf(RandomPoolProviderImpl$requestNewCardDecks$slambda).d1c = function ($this$withContext, completion) {
|
|
2561
|
+
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this.w5r_1, this.x5r_1, this.y5r_1, this.z5r_1, this.a5s_1, completion);
|
|
2562
|
+
i.b5s_1 = $this$withContext;
|
|
2563
|
+
return i;
|
|
2564
|
+
};
|
|
2565
|
+
function RandomPoolProviderImpl$requestNewCardDecks$slambda_0(this$0, $min, $max, $cardsCount, $signed, resultContinuation) {
|
|
2566
|
+
var i = new RandomPoolProviderImpl$requestNewCardDecks$slambda(this$0, $min, $max, $cardsCount, $signed, resultContinuation);
|
|
2567
|
+
var l = function ($this$withContext, $completion) {
|
|
2568
|
+
return i.d5s($this$withContext, $completion);
|
|
2569
|
+
};
|
|
2570
|
+
l.$arity = 1;
|
|
2571
|
+
return l;
|
|
2572
|
+
}
|
|
2573
|
+
function $getOrLoadGameCardDeckDataCOROUTINE$3(_this__u8e3s4, minRoundsCountInPool, userData, min, max, cardsCount, signed, resultContinuation) {
|
|
2574
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2575
|
+
this.e5p_1 = _this__u8e3s4;
|
|
2576
|
+
this.f5p_1 = minRoundsCountInPool;
|
|
2577
|
+
this.g5p_1 = userData;
|
|
2578
|
+
this.h5p_1 = min;
|
|
2579
|
+
this.i5p_1 = max;
|
|
2580
|
+
this.j5p_1 = cardsCount;
|
|
2581
|
+
this.k5p_1 = signed;
|
|
2582
|
+
}
|
|
2583
|
+
protoOf($getOrLoadGameCardDeckDataCOROUTINE$3).l9 = function () {
|
|
2584
|
+
var suspendResult = this.f9_1;
|
|
2585
|
+
$sm: do
|
|
2586
|
+
try {
|
|
2587
|
+
var tmp = this.d9_1;
|
|
2588
|
+
switch (tmp) {
|
|
2589
|
+
case 0:
|
|
2590
|
+
this.e9_1 = 2;
|
|
2591
|
+
this.l5p_1 = this.g5p_1.gameId;
|
|
2592
|
+
this.d9_1 = 1;
|
|
2593
|
+
suspendResult = getPreparedRandomPoolValue(this.e5p_1, this.l5p_1, this.h5p_1, this.i5p_1, this.f5p_1, this.j5p_1, this.k5p_1, this);
|
|
2594
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2595
|
+
return suspendResult;
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
continue $sm;
|
|
2599
|
+
case 1:
|
|
2600
|
+
var randomPoolValue = suspendResult;
|
|
2601
|
+
var this_0 = this.e5p_1.s5p_1;
|
|
2602
|
+
var key = randomPoolValue.t5n_1.f5j_1;
|
|
2603
|
+
this_0.k2(key, randomPoolValue);
|
|
2604
|
+
var cardDeckData = randomPoolValue.d5o(this.g5p_1.gameId);
|
|
2605
|
+
var tmp21_poolId = randomPoolValue.t5n_1.f5j_1;
|
|
2606
|
+
var tmp22_signature = randomPoolValue.t5n_1.g5j_1;
|
|
2607
|
+
var cardDecksRecord = getPreparedGameCardDecksRecord(this.e5p_1, tmp21_poolId, tmp22_signature, cardDeckData, this.g5p_1);
|
|
2608
|
+
var this_1 = this.e5p_1.t5p_1;
|
|
2609
|
+
var key_0 = this.g5p_1.gameId;
|
|
2610
|
+
this_1.k2(key_0, cardDecksRecord);
|
|
2611
|
+
return cardDeckData;
|
|
2612
|
+
case 2:
|
|
2613
|
+
throw this.g9_1;
|
|
2614
|
+
}
|
|
2615
|
+
} catch ($p) {
|
|
2616
|
+
var e = $p;
|
|
2617
|
+
if (this.e9_1 === 2) {
|
|
2618
|
+
throw e;
|
|
2619
|
+
} else {
|
|
2620
|
+
this.d9_1 = this.e9_1;
|
|
2621
|
+
this.g9_1 = e;
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
while (true);
|
|
2625
|
+
};
|
|
2626
|
+
function $getPreparedRandomPoolValueCOROUTINE$4(_this__u8e3s4, gameId, min, max, minRoundsCount, cardsCount, signed, resultContinuation) {
|
|
2627
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
2628
|
+
this.e5q_1 = _this__u8e3s4;
|
|
2629
|
+
this.f5q_1 = gameId;
|
|
2630
|
+
this.g5q_1 = min;
|
|
2631
|
+
this.h5q_1 = max;
|
|
2632
|
+
this.i5q_1 = minRoundsCount;
|
|
2633
|
+
this.j5q_1 = cardsCount;
|
|
2634
|
+
this.k5q_1 = signed;
|
|
2635
|
+
}
|
|
2636
|
+
protoOf($getPreparedRandomPoolValueCOROUTINE$4).l9 = function () {
|
|
2637
|
+
var suspendResult = this.f9_1;
|
|
2638
|
+
$sm: do
|
|
2639
|
+
try {
|
|
2640
|
+
var tmp = this.d9_1;
|
|
2641
|
+
switch (tmp) {
|
|
2642
|
+
case 0:
|
|
2643
|
+
this.e9_1 = 2;
|
|
2644
|
+
var tmp_0 = this;
|
|
2645
|
+
var this_0 = this.e5q_1.s5p_1;
|
|
2646
|
+
var destination = LinkedHashMap_init_$Create$();
|
|
2647
|
+
var tmp0_iterator = this_0.s().j();
|
|
2648
|
+
while (tmp0_iterator.k()) {
|
|
2649
|
+
var element = tmp0_iterator.l();
|
|
2650
|
+
var this_1 = element.u().u5n_1;
|
|
2651
|
+
var key = this.f5q_1;
|
|
2652
|
+
if ((isInterface(this_1, KtMap) ? this_1 : THROW_CCE()).f2(key)) {
|
|
2653
|
+
destination.k2(element.t(), element.u());
|
|
2654
|
+
}
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
tmp_0.l5q_1 = firstOrNull(destination.s());
|
|
2658
|
+
if (!(this.l5q_1 == null)) {
|
|
2659
|
+
return this.l5q_1.u().b5o(this.f5q_1);
|
|
2660
|
+
}
|
|
2661
|
+
|
|
2662
|
+
var tmp_1 = this;
|
|
2663
|
+
var this_2 = this.e5q_1.s5p_1;
|
|
2664
|
+
var destination_0 = LinkedHashMap_init_$Create$();
|
|
2665
|
+
var tmp0_iterator_0 = this_2.s().j();
|
|
2666
|
+
while (tmp0_iterator_0.k()) {
|
|
2667
|
+
var element_0 = tmp0_iterator_0.l();
|
|
2668
|
+
if (element_0.u().y5n(this.i5q_1)) {
|
|
2669
|
+
destination_0.k2(element_0.t(), element_0.u());
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
tmp_1.m5q_1 = firstOrNull(destination_0.s());
|
|
2674
|
+
if (!(this.m5q_1 == null)) {
|
|
2675
|
+
return this.m5q_1.u().z5n(this.f5q_1, this.i5q_1, this.e5q_1.m5p_1.thresholdForUsedPool);
|
|
2676
|
+
}
|
|
2677
|
+
|
|
2678
|
+
this.d9_1 = 1;
|
|
2679
|
+
suspendResult = requestNewCardDecks(this.e5q_1, this.g5q_1, this.h5q_1, this.j5q_1, this.k5q_1, this);
|
|
2680
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
2681
|
+
return suspendResult;
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
continue $sm;
|
|
2685
|
+
case 1:
|
|
2686
|
+
var cardDecks = suspendResult;
|
|
2687
|
+
return cardDecks.c5o(this.f5q_1, this.i5q_1);
|
|
2688
|
+
case 2:
|
|
2689
|
+
throw this.g9_1;
|
|
2690
|
+
}
|
|
2691
|
+
} catch ($p) {
|
|
2692
|
+
var e = $p;
|
|
2693
|
+
if (this.e9_1 === 2) {
|
|
2694
|
+
throw e;
|
|
2695
|
+
} else {
|
|
2696
|
+
this.d9_1 = this.e9_1;
|
|
2697
|
+
this.g9_1 = e;
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
while (true);
|
|
2701
|
+
};
|
|
2702
|
+
function RandomPoolProviderImpl(params, randomOrgApiService, logger, dispatcher, idsProvider) {
|
|
2703
|
+
dispatcher = dispatcher === VOID ? Dispatchers_getInstance().az_1 : dispatcher;
|
|
2704
|
+
var tmp;
|
|
2705
|
+
if (idsProvider === VOID) {
|
|
2706
|
+
tmp = RandomPoolProviderImpl$_init_$lambda_f6qzy3;
|
|
2707
|
+
} else {
|
|
2708
|
+
tmp = idsProvider;
|
|
2709
|
+
}
|
|
2710
|
+
idsProvider = tmp;
|
|
2711
|
+
this.m5p_1 = params;
|
|
2712
|
+
this.n5p_1 = randomOrgApiService;
|
|
2713
|
+
this.o5p_1 = logger;
|
|
2714
|
+
this.p5p_1 = dispatcher;
|
|
2715
|
+
this.q5p_1 = idsProvider;
|
|
2716
|
+
this.r5p_1 = Mutex();
|
|
2717
|
+
var tmp_0 = this;
|
|
2718
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2719
|
+
tmp_0.s5p_1 = LinkedHashMap_init_$Create$();
|
|
2720
|
+
var tmp_1 = this;
|
|
2721
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
2722
|
+
tmp_1.t5p_1 = LinkedHashMap_init_$Create$();
|
|
2723
|
+
this.u5p_1 = null;
|
|
2724
|
+
this.v5p_1 = 0;
|
|
2725
|
+
}
|
|
2726
|
+
protoOf(RandomPoolProviderImpl).q5n = function (minRoundsCountInPool, userData, min, max, cardsCount, signed, timeoutMillis, $completion) {
|
|
2727
|
+
var tmp = withContext(this.p5p_1, RandomPoolProviderImpl$getCardDeck$slambda_0(this, timeoutMillis, minRoundsCountInPool, userData, min, max, cardsCount, signed, null), $completion);
|
|
2728
|
+
if (tmp === get_COROUTINE_SUSPENDED())
|
|
2729
|
+
return tmp;
|
|
2730
|
+
return tmp;
|
|
2731
|
+
};
|
|
2732
|
+
protoOf(RandomPoolProviderImpl).e5s = function (gameId) {
|
|
2733
|
+
return this.t5p_1.h2(gameId);
|
|
2734
|
+
};
|
|
2735
|
+
protoOf(RandomPoolProviderImpl).getGame = function (gameId) {
|
|
2736
|
+
return this.e5s(gameId);
|
|
2737
|
+
};
|
|
2738
|
+
protoOf(RandomPoolProviderImpl).f5s = function (id) {
|
|
2739
|
+
return this.s5p_1.h2(id);
|
|
2740
|
+
};
|
|
2741
|
+
protoOf(RandomPoolProviderImpl).getRandomPool = function (id) {
|
|
2742
|
+
return this.f5s(id);
|
|
2743
|
+
};
|
|
2744
|
+
protoOf(RandomPoolProviderImpl).g5s = function () {
|
|
2745
|
+
return this.s5p_1.m();
|
|
2746
|
+
};
|
|
2747
|
+
protoOf(RandomPoolProviderImpl).getRandomPoolsCount = function () {
|
|
2748
|
+
return this.g5s();
|
|
2749
|
+
};
|
|
2750
|
+
protoOf(RandomPoolProviderImpl).s5n = function (gameId) {
|
|
2751
|
+
var gameCardDecksRecord = this.t5p_1.h2(gameId);
|
|
2752
|
+
if (!(gameCardDecksRecord == null)) {
|
|
2753
|
+
// Inline function 'kotlin.collections.get' call
|
|
2754
|
+
var this_0 = this.s5p_1;
|
|
2755
|
+
var key = gameCardDecksRecord.signature;
|
|
2756
|
+
var randomPoolValue = (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).h2(key);
|
|
2757
|
+
if (!(randomPoolValue == null)) {
|
|
2758
|
+
// Inline function 'kotlin.apply' call
|
|
2759
|
+
var this_1 = toMutableMap(randomPoolValue.u5n_1);
|
|
2760
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2761
|
+
// Inline function 'games.raspberry.card_game.random.data.providers.RandomPoolProviderImpl.setGameFinished.<anonymous>' call
|
|
2762
|
+
this_1.l2(gameId);
|
|
2763
|
+
var newPoolValue = randomPoolValue.a5o(VOID, toMap(this_1));
|
|
2764
|
+
if (newPoolValue.u5n_1.p()) {
|
|
2765
|
+
// Inline function 'kotlin.collections.remove' call
|
|
2766
|
+
var this_2 = this.s5p_1;
|
|
2767
|
+
var key_0 = gameCardDecksRecord.signature;
|
|
2768
|
+
(isInterface(this_2, KtMutableMap) ? this_2 : THROW_CCE()).l2(key_0);
|
|
2769
|
+
} else {
|
|
2770
|
+
// Inline function 'kotlin.collections.set' call
|
|
2771
|
+
var this_3 = this.s5p_1;
|
|
2772
|
+
var key_1 = gameCardDecksRecord.id;
|
|
2773
|
+
this_3.k2(key_1, newPoolValue);
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
};
|
|
2778
|
+
function ApiCommonConfigs$setupJsonDefaultRequest$lambda($url) {
|
|
2779
|
+
return function ($this$defaultRequest) {
|
|
2780
|
+
header($this$defaultRequest, 'Content-Type', 'application/json');
|
|
2781
|
+
$this$defaultRequest.c32($url);
|
|
2782
|
+
return Unit_instance;
|
|
2783
|
+
};
|
|
2784
|
+
}
|
|
2785
|
+
function ApiCommonConfigs$setupLogging$1$1($externalLogger) {
|
|
2786
|
+
this.h5s_1 = $externalLogger;
|
|
2787
|
+
}
|
|
2788
|
+
protoOf(ApiCommonConfigs$setupLogging$1$1).m3s = function (message) {
|
|
2789
|
+
this.h5s_1(message);
|
|
2790
|
+
};
|
|
2791
|
+
function ApiCommonConfigs$setupLogging$lambda($config, $externalLogger) {
|
|
2792
|
+
return function ($this$install) {
|
|
2793
|
+
$this$install.c3u(get_DEFAULT(Companion_instance_0));
|
|
2794
|
+
$this$install.b3u_1 = $config.k5s_1;
|
|
2795
|
+
$this$install.c3u(new ApiCommonConfigs$setupLogging$1$1($externalLogger));
|
|
2796
|
+
return Unit_instance;
|
|
2797
|
+
};
|
|
2798
|
+
}
|
|
2799
|
+
function ApiCommonConfigs$setupContentNegotiation$lambda($json) {
|
|
2800
|
+
return function ($this$install) {
|
|
2801
|
+
json($this$install, $json);
|
|
2802
|
+
return Unit_instance;
|
|
2803
|
+
};
|
|
2804
|
+
}
|
|
2805
|
+
function ApiCommonConfigs() {
|
|
2806
|
+
}
|
|
2807
|
+
protoOf(ApiCommonConfigs).m5s = function (_this__u8e3s4, config, externalLogger) {
|
|
2808
|
+
_this__u8e3s4.o2t_1 = true;
|
|
2809
|
+
this.n5s(_this__u8e3s4, config.i5s_1);
|
|
2810
|
+
this.o5s(_this__u8e3s4, config.l5s_1);
|
|
2811
|
+
this.p5s(_this__u8e3s4, config, externalLogger);
|
|
2812
|
+
};
|
|
2813
|
+
protoOf(ApiCommonConfigs).n5s = function (_this__u8e3s4, url) {
|
|
2814
|
+
defaultRequest(_this__u8e3s4, ApiCommonConfigs$setupJsonDefaultRequest$lambda(url));
|
|
2815
|
+
};
|
|
2816
|
+
protoOf(ApiCommonConfigs).p5s = function (_this__u8e3s4, config, externalLogger) {
|
|
2817
|
+
var tmp = Companion_getInstance_1();
|
|
2818
|
+
_this__u8e3s4.j2u(tmp, ApiCommonConfigs$setupLogging$lambda(config, externalLogger));
|
|
2819
|
+
};
|
|
2820
|
+
protoOf(ApiCommonConfigs).o5s = function (_this__u8e3s4, json) {
|
|
2821
|
+
var tmp = Plugin_getInstance();
|
|
2822
|
+
_this__u8e3s4.j2u(tmp, ApiCommonConfigs$setupContentNegotiation$lambda(json));
|
|
2823
|
+
};
|
|
2824
|
+
var ApiCommonConfigs_instance;
|
|
2825
|
+
function ApiCommonConfigs_getInstance() {
|
|
2826
|
+
return ApiCommonConfigs_instance;
|
|
2827
|
+
}
|
|
2828
|
+
function HttpParams$_init_$lambda_l7stpf($this$Json) {
|
|
2829
|
+
$this$Json.o4s_1 = true;
|
|
2830
|
+
$this$Json.m4s_1 = true;
|
|
2831
|
+
$this$Json.l4s_1 = true;
|
|
2832
|
+
$this$Json.k4s_1 = false;
|
|
2833
|
+
return Unit_instance;
|
|
2834
|
+
}
|
|
2835
|
+
function HttpParams(baseUrl, timeoutMillis, loggingLevel, json) {
|
|
2836
|
+
timeoutMillis = timeoutMillis === VOID ? new Long(30000, 0) : timeoutMillis;
|
|
2837
|
+
loggingLevel = loggingLevel === VOID ? LogLevel_ALL_getInstance() : loggingLevel;
|
|
2838
|
+
var tmp;
|
|
2839
|
+
if (json === VOID) {
|
|
2840
|
+
tmp = Json(VOID, HttpParams$_init_$lambda_l7stpf);
|
|
2841
|
+
} else {
|
|
2842
|
+
tmp = json;
|
|
2843
|
+
}
|
|
2844
|
+
json = tmp;
|
|
2845
|
+
this.i5s_1 = baseUrl;
|
|
2846
|
+
this.j5s_1 = timeoutMillis;
|
|
2847
|
+
this.k5s_1 = loggingLevel;
|
|
2848
|
+
this.l5s_1 = json;
|
|
2849
|
+
}
|
|
2850
|
+
protoOf(HttpParams).toString = function () {
|
|
2851
|
+
return 'HttpParams(baseUrl=' + this.i5s_1 + ', timeoutMillis=' + this.j5s_1.toString() + ', loggingLevel=' + this.k5s_1.toString() + ', json=' + toString(this.l5s_1) + ')';
|
|
2852
|
+
};
|
|
2853
|
+
protoOf(HttpParams).hashCode = function () {
|
|
2854
|
+
var result = getStringHashCode(this.i5s_1);
|
|
2855
|
+
result = imul(result, 31) + this.j5s_1.hashCode() | 0;
|
|
2856
|
+
result = imul(result, 31) + this.k5s_1.hashCode() | 0;
|
|
2857
|
+
result = imul(result, 31) + hashCode(this.l5s_1) | 0;
|
|
2858
|
+
return result;
|
|
2859
|
+
};
|
|
2860
|
+
protoOf(HttpParams).equals = function (other) {
|
|
2861
|
+
if (this === other)
|
|
2862
|
+
return true;
|
|
2863
|
+
if (!(other instanceof HttpParams))
|
|
2864
|
+
return false;
|
|
2865
|
+
var tmp0_other_with_cast = other instanceof HttpParams ? other : THROW_CCE();
|
|
2866
|
+
if (!(this.i5s_1 === tmp0_other_with_cast.i5s_1))
|
|
2867
|
+
return false;
|
|
2868
|
+
if (!this.j5s_1.equals(tmp0_other_with_cast.j5s_1))
|
|
2869
|
+
return false;
|
|
2870
|
+
if (!this.k5s_1.equals(tmp0_other_with_cast.k5s_1))
|
|
2871
|
+
return false;
|
|
2872
|
+
if (!equals(this.l5s_1, tmp0_other_with_cast.l5s_1))
|
|
2873
|
+
return false;
|
|
2874
|
+
return true;
|
|
2875
|
+
};
|
|
2876
|
+
function CustomRandom() {
|
|
2877
|
+
}
|
|
2878
|
+
function nextInt($this) {
|
|
2879
|
+
return nextBits($this, 32);
|
|
2880
|
+
}
|
|
2881
|
+
function nextBits($this, numBits) {
|
|
2882
|
+
var numBytes = (numBits + 7 | 0) / 8 | 0;
|
|
2883
|
+
var b = new Int8Array(numBytes);
|
|
2884
|
+
var next = 0;
|
|
2885
|
+
nextBytesCopyTo($this, b);
|
|
2886
|
+
var inductionVariable = 0;
|
|
2887
|
+
if (inductionVariable < numBytes)
|
|
2888
|
+
do {
|
|
2889
|
+
var i = inductionVariable;
|
|
2890
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2891
|
+
next = (next << 8) + (b[i] & 255) | 0;
|
|
2892
|
+
}
|
|
2893
|
+
while (inductionVariable < numBytes);
|
|
2894
|
+
return next >>> (imul(numBytes, 8) - numBits | 0) | 0;
|
|
2895
|
+
}
|
|
2896
|
+
function nextBytesCopyTo($this, bytes) {
|
|
2897
|
+
try {
|
|
2898
|
+
$this.t5s_1.r5i(bytes);
|
|
2899
|
+
} catch ($p) {
|
|
2900
|
+
if ($p instanceof SecRandomCopyException) {
|
|
2901
|
+
var error = $p;
|
|
2902
|
+
$this.s5s_1.e('SecureGameRandom', 'nextBytesCopyTo error ' + error.toString());
|
|
2903
|
+
$this.u5s_1.ng(bytes);
|
|
2904
|
+
return Unit_instance;
|
|
2905
|
+
} else {
|
|
2906
|
+
throw $p;
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
function fastLog2($this, value) {
|
|
2911
|
+
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
2912
|
+
return 31 - clz32(value) | 0;
|
|
2913
|
+
}
|
|
2914
|
+
function checkRangeBounds($this, from, until) {
|
|
2915
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2916
|
+
var tmp;
|
|
2917
|
+
if (!(until > from)) {
|
|
2918
|
+
// Inline function 'games.raspberry.card_game.random.utils.random.SecureRandom.checkRangeBounds.<anonymous>' call
|
|
2919
|
+
var message = boundsErrorMessage($this, from, until);
|
|
2920
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2921
|
+
}
|
|
2922
|
+
return tmp;
|
|
2923
|
+
}
|
|
2924
|
+
function boundsErrorMessage($this, from, until) {
|
|
2925
|
+
return 'Random range is empty: [' + toString(from) + ', ' + toString(until) + ').';
|
|
2926
|
+
}
|
|
2927
|
+
function SecureRandom_0(logger) {
|
|
2928
|
+
logger = logger === VOID ? new PlatformRaspberryLogger() : logger;
|
|
2929
|
+
this.s5s_1 = logger;
|
|
2930
|
+
this.t5s_1 = new SecureRandom();
|
|
2931
|
+
this.u5s_1 = Default_getInstance();
|
|
2932
|
+
}
|
|
2933
|
+
protoOf(SecureRandom_0).q5s = function (from, until) {
|
|
2934
|
+
checkRangeBounds(this, from, until);
|
|
2935
|
+
var n = until - from | 0;
|
|
2936
|
+
if (n > 0 || n === -2147483648) {
|
|
2937
|
+
var tmp;
|
|
2938
|
+
if ((n & (-n | 0)) === n) {
|
|
2939
|
+
var bitCount = fastLog2(this, n);
|
|
2940
|
+
tmp = nextBits(this, bitCount);
|
|
2941
|
+
} else {
|
|
2942
|
+
var v;
|
|
2943
|
+
do {
|
|
2944
|
+
var bits = nextInt(this) >>> 1 | 0;
|
|
2945
|
+
v = bits % n | 0;
|
|
2946
|
+
}
|
|
2947
|
+
while (((bits - v | 0) + (n - 1 | 0) | 0) < 0);
|
|
2948
|
+
tmp = v;
|
|
2949
|
+
}
|
|
2950
|
+
var rnd = tmp;
|
|
2951
|
+
return from + rnd | 0;
|
|
2952
|
+
} else {
|
|
2953
|
+
while (true) {
|
|
2954
|
+
var rnd_0 = nextInt(this);
|
|
2955
|
+
if (from <= rnd_0 ? rnd_0 < until : false)
|
|
2956
|
+
return rnd_0;
|
|
2957
|
+
}
|
|
2958
|
+
}
|
|
2959
|
+
};
|
|
2960
|
+
function HttpFactory$provideHttpClient$lambda$lambda($config) {
|
|
2961
|
+
return function ($this$install) {
|
|
2962
|
+
$this$install.a3e($config.j5s_1);
|
|
2963
|
+
$this$install.y3d($config.j5s_1);
|
|
2964
|
+
return Unit_instance;
|
|
2965
|
+
};
|
|
2966
|
+
}
|
|
2967
|
+
function HttpFactory$provideHttpClient$lambda($config, $externalLogger) {
|
|
2968
|
+
return function ($this$HttpClient) {
|
|
2969
|
+
var tmp = Plugin_getInstance_0();
|
|
2970
|
+
$this$HttpClient.j2u(tmp, HttpFactory$provideHttpClient$lambda$lambda($config));
|
|
2971
|
+
ApiCommonConfigs_instance.m5s($this$HttpClient, $config, $externalLogger);
|
|
2972
|
+
return Unit_instance;
|
|
2973
|
+
};
|
|
2974
|
+
}
|
|
2975
|
+
function HttpFactory() {
|
|
2976
|
+
}
|
|
2977
|
+
protoOf(HttpFactory).v5s = function (config, externalLogger) {
|
|
2978
|
+
var tmp = Js_instance;
|
|
2979
|
+
return HttpClient(tmp, HttpFactory$provideHttpClient$lambda(config, externalLogger));
|
|
2980
|
+
};
|
|
2981
|
+
var HttpFactory_instance;
|
|
2982
|
+
function HttpFactory_getInstance() {
|
|
2983
|
+
return HttpFactory_instance;
|
|
2984
|
+
}
|
|
2985
|
+
//region block: post-declaration
|
|
2986
|
+
protoOf($serializer).o4d = typeParametersSerializers;
|
|
2987
|
+
protoOf($serializer_0).o4d = typeParametersSerializers;
|
|
2988
|
+
protoOf($serializer_2).o4d = typeParametersSerializers;
|
|
2989
|
+
protoOf($serializer_3).o4d = typeParametersSerializers;
|
|
2990
|
+
protoOf($serializer_5).o4d = typeParametersSerializers;
|
|
2991
|
+
protoOf($serializer_6).o4d = typeParametersSerializers;
|
|
2992
|
+
protoOf(RandomPoolProviderImpl).r5n = getCardDeck$default;
|
|
2993
|
+
protoOf(SecureRandom_0).r5s = shuffle;
|
|
2994
|
+
//endregion
|
|
2995
|
+
//region block: init
|
|
2996
|
+
Companion_instance_1 = new Companion();
|
|
2997
|
+
Companion_instance_2 = new Companion_0();
|
|
2998
|
+
Companion_instance_3 = new Companion_1();
|
|
2999
|
+
Companion_instance_6 = new Companion_4();
|
|
3000
|
+
Companion_instance_8 = new Companion_6();
|
|
3001
|
+
Companion_instance_10 = new Companion_8();
|
|
3002
|
+
Companion_instance_11 = new Companion_9();
|
|
3003
|
+
ApiCommonConfigs_instance = new ApiCommonConfigs();
|
|
3004
|
+
HttpFactory_instance = new HttpFactory();
|
|
3005
|
+
//endregion
|
|
3006
|
+
//region block: exports
|
|
3007
|
+
function $jsExportAll$(_) {
|
|
3008
|
+
var $games = _.games || (_.games = {});
|
|
3009
|
+
var $games$raspberry = $games.raspberry || ($games.raspberry = {});
|
|
3010
|
+
var $games$raspberry$card_game = $games$raspberry.card_game || ($games$raspberry.card_game = {});
|
|
3011
|
+
var $games$raspberry$card_game$random = $games$raspberry$card_game.random || ($games$raspberry$card_game.random = {});
|
|
3012
|
+
var $games$raspberry$card_game$random$data = $games$raspberry$card_game$random.data || ($games$raspberry$card_game$random.data = {});
|
|
3013
|
+
var $games$raspberry$card_game$random$data$models = $games$raspberry$card_game$random$data.models || ($games$raspberry$card_game$random$data.models = {});
|
|
3014
|
+
$games$raspberry$card_game$random$data$models.CardDecksRequestUserData = CardDecksRequestUserData;
|
|
3015
|
+
$games$raspberry$card_game$random$data$models.CardDeckRequestUserData = CardDeckRequestUserData;
|
|
3016
|
+
$games$raspberry$card_game$random$data$models.UserInfoData = UserInfoData;
|
|
3017
|
+
var $games = _.games || (_.games = {});
|
|
3018
|
+
var $games$raspberry = $games.raspberry || ($games.raspberry = {});
|
|
3019
|
+
var $games$raspberry$card_game = $games$raspberry.card_game || ($games$raspberry.card_game = {});
|
|
3020
|
+
var $games$raspberry$card_game$random = $games$raspberry$card_game.random || ($games$raspberry$card_game.random = {});
|
|
3021
|
+
var $games$raspberry$card_game$random$data = $games$raspberry$card_game$random.data || ($games$raspberry$card_game$random.data = {});
|
|
3022
|
+
var $games$raspberry$card_game$random$data$models = $games$raspberry$card_game$random$data.models || ($games$raspberry$card_game$random$data.models = {});
|
|
3023
|
+
$games$raspberry$card_game$random$data$models.GameCardDecksRecord = GameCardDecksRecord;
|
|
3024
|
+
defineProp($games$raspberry$card_game$random$data$models.GameCardDecksRecord, 'Companion', Companion_getInstance_3);
|
|
3025
|
+
$games$raspberry$card_game$random$data$models.GameCardDeckData = GameCardDeckData;
|
|
3026
|
+
var $games = _.games || (_.games = {});
|
|
3027
|
+
var $games$raspberry = $games.raspberry || ($games.raspberry = {});
|
|
3028
|
+
var $games$raspberry$card_game = $games$raspberry.card_game || ($games$raspberry.card_game = {});
|
|
3029
|
+
var $games$raspberry$card_game$random = $games$raspberry$card_game.random || ($games$raspberry$card_game.random = {});
|
|
3030
|
+
var $games$raspberry$card_game$random$data = $games$raspberry$card_game$random.data || ($games$raspberry$card_game$random.data = {});
|
|
3031
|
+
var $games$raspberry$card_game$random$data$models = $games$raspberry$card_game$random$data.models || ($games$raspberry$card_game$random$data.models = {});
|
|
3032
|
+
$games$raspberry$card_game$random$data$models.HttpConfig = HttpConfig;
|
|
3033
|
+
var $games = _.games || (_.games = {});
|
|
3034
|
+
var $games$raspberry = $games.raspberry || ($games.raspberry = {});
|
|
3035
|
+
var $games$raspberry$card_game = $games$raspberry.card_game || ($games$raspberry.card_game = {});
|
|
3036
|
+
var $games$raspberry$card_game$random = $games$raspberry$card_game.random || ($games$raspberry$card_game.random = {});
|
|
3037
|
+
var $games$raspberry$card_game$random$data = $games$raspberry$card_game$random.data || ($games$raspberry$card_game$random.data = {});
|
|
3038
|
+
var $games$raspberry$card_game$random$data$models = $games$raspberry$card_game$random$data.models || ($games$raspberry$card_game$random$data.models = {});
|
|
3039
|
+
$games$raspberry$card_game$random$data$models.RandomOrgConfig = RandomOrgConfig;
|
|
3040
|
+
var $games = _.games || (_.games = {});
|
|
3041
|
+
var $games$raspberry = $games.raspberry || ($games.raspberry = {});
|
|
3042
|
+
var $games$raspberry$card_game = $games$raspberry.card_game || ($games$raspberry.card_game = {});
|
|
3043
|
+
var $games$raspberry$card_game$random = $games$raspberry$card_game.random || ($games$raspberry$card_game.random = {});
|
|
3044
|
+
var $games$raspberry$card_game$random$data = $games$raspberry$card_game$random.data || ($games$raspberry$card_game$random.data = {});
|
|
3045
|
+
var $games$raspberry$card_game$random$data$providers = $games$raspberry$card_game$random$data.providers || ($games$raspberry$card_game$random$data.providers = {});
|
|
3046
|
+
$games$raspberry$card_game$random$data$providers.PoolParams = PoolParams;
|
|
392
3047
|
}
|
|
393
3048
|
$jsExportAll$(_);
|
|
394
3049
|
_.$jsExportAll$ = $jsExportAll$;
|
|
395
3050
|
_.$_$ = _.$_$ || {};
|
|
396
3051
|
_.$_$.a = CardDeckRequestUserData;
|
|
397
|
-
_.$_$.b =
|
|
398
|
-
_.$_$.c =
|
|
3052
|
+
_.$_$.b = RandomOrgConfig;
|
|
3053
|
+
_.$_$.c = UserInfoData;
|
|
3054
|
+
_.$_$.d = mapToParams;
|
|
3055
|
+
_.$_$.e = PoolParams;
|
|
3056
|
+
_.$_$.f = RandomOrgApiServiceImpl;
|
|
3057
|
+
_.$_$.g = RandomOrgApiService;
|
|
3058
|
+
_.$_$.h = RandomPoolProviderImpl;
|
|
3059
|
+
_.$_$.i = RandomPoolProvider;
|
|
3060
|
+
_.$_$.j = SecureRandom_0;
|
|
3061
|
+
_.$_$.k = HttpFactory_instance;
|
|
399
3062
|
//endregion
|
|
400
3063
|
return _;
|
|
401
3064
|
}));
|