@icure/cardinal-sdk 2.0.0-PREVIEW-10 → 2.0.0-PREVIEW-13
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/Kermit-kermit-core.mjs +42 -42
- package/Kermit-kermit.mjs +8 -8
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +3919 -3777
- package/KotlinBigInteger-bignum.mjs +1434 -1470
- package/api/AnonymousHealthcarePartyApi.d.mts +2 -2
- package/cardinal-sdk-ts.d.mts +338 -100
- package/cardinal-sdk-ts.mjs +56590 -56248
- package/cardinal-sdk.mjs +126945 -106218
- package/kerberus.mjs +381 -381
- package/kotlin-kotlin-stdlib.mjs +3412 -2764
- package/kotlinx-atomicfu.mjs +14 -14
- package/kotlinx-coroutines-core.mjs +2690 -2687
- package/kotlinx-io-kotlinx-io-bytestring.mjs +47 -47
- package/kotlinx-io-kotlinx-io-core.mjs +539 -539
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2149 -2111
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +2047 -2029
- package/kryptom-lib.mjs +2065 -2081
- package/ktor-ktor-client-content-negotiation.mjs +217 -217
- package/ktor-ktor-client-core.mjs +2997 -2993
- package/ktor-ktor-events.mjs +8 -8
- package/ktor-ktor-http-cio.mjs +538 -537
- package/ktor-ktor-http.mjs +799 -927
- package/ktor-ktor-io.mjs +1079 -1079
- package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
- package/ktor-ktor-serialization-kotlinx.mjs +270 -270
- package/ktor-ktor-serialization.mjs +129 -129
- package/ktor-ktor-utils.mjs +614 -600
- package/ktor-ktor-websockets.mjs +751 -750
- package/model.d.mts +0 -1
- package/model.mjs +0 -1
- package/package.json +2 -3
- package/ktor-ktor-client-ktor-client-core.mjs +0 -8986
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.mjs +0 -756
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-websockets.mjs +0 -2
- package/ktor-ktor-http-ktor-http-cio.mjs +0 -1996
- package/ktor-ktor-shared-ktor-events.mjs +0 -79
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.mjs +0 -44
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.mjs +0 -857
- package/ktor-ktor-shared-ktor-serialization.mjs +0 -371
- package/ktor-ktor-shared-ktor-sse.mjs +0 -2
- package/ktor-ktor-shared-ktor-websocket-serialization.mjs +0 -2
- package/ktor-ktor-shared-ktor-websockets.mjs +0 -2334
- package/model/UserAndHealthcareParty.d.mts +0 -7
- package/model/UserAndHealthcareParty.mjs +0 -6
package/kerberus.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
StringSerializer_getInstance2wffkbpdux3h9 as StringSerializer_getInstance,
|
|
3
3
|
ArrayListSerializer7k5wnrulb3y6 as ArrayListSerializer,
|
|
4
4
|
PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
|
|
5
|
-
UnknownFieldException_init_$Create$
|
|
6
|
-
|
|
5
|
+
UnknownFieldException_init_$Create$hprktcyan42n as UnknownFieldException_init_$Create$,
|
|
6
|
+
IntSerializer_getInstance2q7s8kvk1il5u as IntSerializer_getInstance,
|
|
7
7
|
typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
|
|
8
8
|
GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
|
|
9
9
|
throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
14
14
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
15
15
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
17
|
+
Unit_instance1fbcbse1fwigr as Unit_instance,
|
|
18
18
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
19
19
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
20
20
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
21
|
-
ArrayList_init_$Create$
|
|
21
|
+
ArrayList_init_$Create$3bxttkj3v1mea as ArrayList_init_$Create$,
|
|
22
22
|
encodeToByteArray1onwao0uakjfh as encodeToByteArray,
|
|
23
23
|
primitiveArrayConcatwxgknw08pmlb as primitiveArrayConcat,
|
|
24
24
|
toLongw1zpgk99d84b as toLong,
|
|
@@ -42,9 +42,9 @@ import {
|
|
|
42
42
|
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
43
43
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
44
44
|
import {
|
|
45
|
-
BigInteger_init_$Create$
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
BigInteger_init_$Create$27qjyyan5p5rb as BigInteger_init_$Create$,
|
|
46
|
+
Companion_getInstance2w7hx6d9ls97h as Companion_getInstance,
|
|
47
|
+
Sign_POSITIVE_getInstance1znoktsikj284 as Sign_POSITIVE_getInstance,
|
|
48
48
|
} from './KotlinBigInteger-bignum.mjs';
|
|
49
49
|
import {
|
|
50
50
|
get_defaultCryptoService3se6h24t6bp5v as get_defaultCryptoService,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
} from './kryptom-lib.mjs';
|
|
53
53
|
import {
|
|
54
54
|
CoroutineScopefcb5f5dwqcas as CoroutineScope,
|
|
55
|
-
|
|
55
|
+
GlobalScope_instance1sfulufhd2ijt as GlobalScope_instance,
|
|
56
56
|
launch1c91vkjzdi9sd as launch,
|
|
57
57
|
} from './kotlinx-coroutines-core.mjs';
|
|
58
58
|
//region block: imports
|
|
@@ -62,13 +62,13 @@ initMetadataForCompanion(Companion);
|
|
|
62
62
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
63
63
|
initMetadataForClass(Challenge, 'Challenge', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
64
64
|
initMetadataForCompanion(Companion_0);
|
|
65
|
-
initMetadataForCoroutine($scoreCOROUTINE
|
|
66
|
-
initMetadataForCoroutine($calculateCOROUTINE
|
|
67
|
-
initMetadataForCoroutine($resolveCOROUTINE
|
|
68
|
-
initMetadataForCoroutine($validateCOROUTINE
|
|
65
|
+
initMetadataForCoroutine($scoreCOROUTINE$, CoroutineImpl);
|
|
66
|
+
initMetadataForCoroutine($calculateCOROUTINE$, CoroutineImpl);
|
|
67
|
+
initMetadataForCoroutine($resolveCOROUTINE$, CoroutineImpl);
|
|
68
|
+
initMetadataForCoroutine($validateCOROUTINE$, CoroutineImpl);
|
|
69
69
|
initMetadataForClass(ChallengePieceResolver, 'ChallengePieceResolver', VOID, VOID, VOID, [1, 2]);
|
|
70
|
-
initMetadataForCoroutine($resolveChallengeCOROUTINE
|
|
71
|
-
initMetadataForCoroutine($validateSolutionCOROUTINE
|
|
70
|
+
initMetadataForCoroutine($resolveChallengeCOROUTINE$, CoroutineImpl);
|
|
71
|
+
initMetadataForCoroutine($validateSolutionCOROUTINE$, CoroutineImpl);
|
|
72
72
|
initMetadataForCompanion(Companion_1);
|
|
73
73
|
initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
74
74
|
initMetadataForClass(ProofOfWork, 'ProofOfWork', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
|
|
@@ -84,7 +84,7 @@ function Companion() {
|
|
|
84
84
|
// Inline function 'kotlin.arrayOf' call
|
|
85
85
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
86
86
|
// Inline function 'kotlin.js.asDynamic' call
|
|
87
|
-
tmp.
|
|
87
|
+
tmp.f7c_1 = [null, new ArrayListSerializer(StringSerializer_getInstance()), null];
|
|
88
88
|
}
|
|
89
89
|
var Companion_instance;
|
|
90
90
|
function Companion_getInstance_0() {
|
|
@@ -95,71 +95,71 @@ function Companion_getInstance_0() {
|
|
|
95
95
|
function $serializer() {
|
|
96
96
|
$serializer_instance = this;
|
|
97
97
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.icure.kerberus.Challenge', this, 3);
|
|
98
|
-
tmp0_serialDesc.
|
|
99
|
-
tmp0_serialDesc.
|
|
100
|
-
tmp0_serialDesc.
|
|
101
|
-
this.
|
|
98
|
+
tmp0_serialDesc.m2d('id', false);
|
|
99
|
+
tmp0_serialDesc.m2d('salts', false);
|
|
100
|
+
tmp0_serialDesc.m2d('difficultyFactor', false);
|
|
101
|
+
this.g7c_1 = tmp0_serialDesc;
|
|
102
102
|
}
|
|
103
|
-
protoOf($serializer).
|
|
104
|
-
var tmp0_desc = this.
|
|
105
|
-
var tmp1_output = encoder.
|
|
106
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
107
|
-
tmp1_output.
|
|
108
|
-
tmp1_output.
|
|
109
|
-
tmp1_output.
|
|
110
|
-
tmp1_output.
|
|
103
|
+
protoOf($serializer).h7c = function (encoder, value) {
|
|
104
|
+
var tmp0_desc = this.g7c_1;
|
|
105
|
+
var tmp1_output = encoder.x25(tmp0_desc);
|
|
106
|
+
var tmp2_cached = Companion_getInstance_0().f7c_1;
|
|
107
|
+
tmp1_output.n27(tmp0_desc, 0, value.i7c_1);
|
|
108
|
+
tmp1_output.p27(tmp0_desc, 1, tmp2_cached[1], value.j7c_1);
|
|
109
|
+
tmp1_output.i27(tmp0_desc, 2, value.k7c_1);
|
|
110
|
+
tmp1_output.y25(tmp0_desc);
|
|
111
111
|
};
|
|
112
|
-
protoOf($serializer).
|
|
113
|
-
return this.
|
|
112
|
+
protoOf($serializer).n22 = function (encoder, value) {
|
|
113
|
+
return this.h7c(encoder, value instanceof Challenge ? value : THROW_CCE());
|
|
114
114
|
};
|
|
115
|
-
protoOf($serializer).
|
|
116
|
-
var tmp0_desc = this.
|
|
115
|
+
protoOf($serializer).o22 = function (decoder) {
|
|
116
|
+
var tmp0_desc = this.g7c_1;
|
|
117
117
|
var tmp1_flag = true;
|
|
118
118
|
var tmp2_index = 0;
|
|
119
119
|
var tmp3_bitMask0 = 0;
|
|
120
120
|
var tmp4_local0 = null;
|
|
121
121
|
var tmp5_local1 = null;
|
|
122
122
|
var tmp6_local2 = 0;
|
|
123
|
-
var tmp7_input = decoder.
|
|
124
|
-
var tmp8_cached = Companion_getInstance_0().
|
|
125
|
-
if (tmp7_input.
|
|
126
|
-
tmp4_local0 = tmp7_input.
|
|
123
|
+
var tmp7_input = decoder.x25(tmp0_desc);
|
|
124
|
+
var tmp8_cached = Companion_getInstance_0().f7c_1;
|
|
125
|
+
if (tmp7_input.o26()) {
|
|
126
|
+
tmp4_local0 = tmp7_input.h26(tmp0_desc, 0);
|
|
127
127
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
128
|
-
tmp5_local1 = tmp7_input.
|
|
128
|
+
tmp5_local1 = tmp7_input.j26(tmp0_desc, 1, tmp8_cached[1], tmp5_local1);
|
|
129
129
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
130
|
-
tmp6_local2 = tmp7_input.
|
|
130
|
+
tmp6_local2 = tmp7_input.c26(tmp0_desc, 2);
|
|
131
131
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
132
132
|
} else
|
|
133
133
|
while (tmp1_flag) {
|
|
134
|
-
tmp2_index = tmp7_input.
|
|
134
|
+
tmp2_index = tmp7_input.p26(tmp0_desc);
|
|
135
135
|
switch (tmp2_index) {
|
|
136
136
|
case -1:
|
|
137
137
|
tmp1_flag = false;
|
|
138
138
|
break;
|
|
139
139
|
case 0:
|
|
140
|
-
tmp4_local0 = tmp7_input.
|
|
140
|
+
tmp4_local0 = tmp7_input.h26(tmp0_desc, 0);
|
|
141
141
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
142
142
|
break;
|
|
143
143
|
case 1:
|
|
144
|
-
tmp5_local1 = tmp7_input.
|
|
144
|
+
tmp5_local1 = tmp7_input.j26(tmp0_desc, 1, tmp8_cached[1], tmp5_local1);
|
|
145
145
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
146
146
|
break;
|
|
147
147
|
case 2:
|
|
148
|
-
tmp6_local2 = tmp7_input.
|
|
148
|
+
tmp6_local2 = tmp7_input.c26(tmp0_desc, 2);
|
|
149
149
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
150
150
|
break;
|
|
151
151
|
default:
|
|
152
152
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
tmp7_input.
|
|
155
|
+
tmp7_input.y25(tmp0_desc);
|
|
156
156
|
return Challenge_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
157
157
|
};
|
|
158
|
-
protoOf($serializer).
|
|
159
|
-
return this.
|
|
158
|
+
protoOf($serializer).m22 = function () {
|
|
159
|
+
return this.g7c_1;
|
|
160
160
|
};
|
|
161
|
-
protoOf($serializer).
|
|
162
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
161
|
+
protoOf($serializer).f2e = function () {
|
|
162
|
+
var tmp0_cached = Companion_getInstance_0().f7c_1;
|
|
163
163
|
// Inline function 'kotlin.arrayOf' call
|
|
164
164
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
165
165
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -173,11 +173,11 @@ function $serializer_getInstance() {
|
|
|
173
173
|
}
|
|
174
174
|
function Challenge_init_$Init$(seen0, id, salts, difficultyFactor, serializationConstructorMarker, $this) {
|
|
175
175
|
if (!(7 === (7 & seen0))) {
|
|
176
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance().
|
|
176
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance().g7c_1);
|
|
177
177
|
}
|
|
178
|
-
$this.
|
|
179
|
-
$this.
|
|
180
|
-
$this.
|
|
178
|
+
$this.i7c_1 = id;
|
|
179
|
+
$this.j7c_1 = salts;
|
|
180
|
+
$this.k7c_1 = difficultyFactor;
|
|
181
181
|
return $this;
|
|
182
182
|
}
|
|
183
183
|
function Challenge_init_$Create$(seen0, id, salts, difficultyFactor, serializationConstructorMarker) {
|
|
@@ -185,24 +185,24 @@ function Challenge_init_$Create$(seen0, id, salts, difficultyFactor, serializati
|
|
|
185
185
|
}
|
|
186
186
|
function Challenge(id, salts, difficultyFactor) {
|
|
187
187
|
Companion_getInstance_0();
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
190
|
-
this.
|
|
188
|
+
this.i7c_1 = id;
|
|
189
|
+
this.j7c_1 = salts;
|
|
190
|
+
this.k7c_1 = difficultyFactor;
|
|
191
191
|
}
|
|
192
192
|
function Companion_0() {
|
|
193
193
|
Companion_instance_0 = this;
|
|
194
|
-
this.
|
|
195
|
-
this.
|
|
194
|
+
this.l7c_1 = BigInteger_init_$Create$(2).e78(128).t77(Companion_getInstance().y72_1);
|
|
195
|
+
this.m7c_1 = this.l7c_1.i78(false);
|
|
196
196
|
}
|
|
197
|
-
protoOf(Companion_0).
|
|
197
|
+
protoOf(Companion_0).n7c = function (config, serializedInput, cryptoService) {
|
|
198
198
|
// Inline function 'kotlin.collections.map' call
|
|
199
|
-
var this_0 = config.
|
|
199
|
+
var this_0 = config.j7c_1;
|
|
200
200
|
// Inline function 'kotlin.collections.mapTo' call
|
|
201
201
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
202
202
|
var _iterator__ex2g4s = this_0.q();
|
|
203
203
|
while (_iterator__ex2g4s.r()) {
|
|
204
204
|
var item = _iterator__ex2g4s.s();
|
|
205
|
-
var tmp$ret$0 = new ChallengePieceResolver(item, serializedInput, config.
|
|
205
|
+
var tmp$ret$0 = new ChallengePieceResolver(item, serializedInput, config.k7c_1, cryptoService.b63());
|
|
206
206
|
destination.k(tmp$ret$0);
|
|
207
207
|
}
|
|
208
208
|
return destination;
|
|
@@ -214,55 +214,55 @@ function Companion_getInstance_1() {
|
|
|
214
214
|
return Companion_instance_0;
|
|
215
215
|
}
|
|
216
216
|
function _get_prefix__wiwq7t($this) {
|
|
217
|
-
var tmp0 = encodeToByteArray($this.
|
|
217
|
+
var tmp0 = encodeToByteArray($this.o7c_1);
|
|
218
218
|
// Inline function 'kotlin.collections.plus' call
|
|
219
|
-
var elements = encodeToByteArray($this.
|
|
219
|
+
var elements = encodeToByteArray($this.p7c_1);
|
|
220
220
|
return primitiveArrayConcat([tmp0, elements]);
|
|
221
221
|
}
|
|
222
222
|
function _get_difficulty__gn5kuo($this) {
|
|
223
|
-
var maxValue = Companion_getInstance_1().
|
|
224
|
-
return maxValue.
|
|
223
|
+
var maxValue = Companion_getInstance_1().l7c_1;
|
|
224
|
+
return maxValue.t77(maxValue.z77(Companion_getInstance().m74(toLong($this.q7c_1))));
|
|
225
225
|
}
|
|
226
226
|
function firstBytesAsBigInteger($this, bytes) {
|
|
227
227
|
var first16Bytes = sliceArray(bytes, until(0, 16));
|
|
228
|
-
return Companion_getInstance().
|
|
228
|
+
return Companion_getInstance().t76(first16Bytes, Sign_POSITIVE_getInstance());
|
|
229
229
|
}
|
|
230
230
|
function sha256($this, input, $completion) {
|
|
231
|
-
return $this.
|
|
231
|
+
return $this.r7c_1.a6b(input, $completion);
|
|
232
232
|
}
|
|
233
233
|
function score($this, prefixHash, nonce, $completion) {
|
|
234
|
-
var tmp = new $scoreCOROUTINE$
|
|
235
|
-
tmp.
|
|
236
|
-
tmp.
|
|
237
|
-
return tmp.
|
|
234
|
+
var tmp = new $scoreCOROUTINE$($this, prefixHash, nonce, $completion);
|
|
235
|
+
tmp.n9_1 = Unit_instance;
|
|
236
|
+
tmp.o9_1 = null;
|
|
237
|
+
return tmp.t9();
|
|
238
238
|
}
|
|
239
239
|
function calculate($this, nonce, $completion) {
|
|
240
|
-
var tmp = new $calculateCOROUTINE$
|
|
241
|
-
tmp.
|
|
242
|
-
tmp.
|
|
243
|
-
return tmp.
|
|
240
|
+
var tmp = new $calculateCOROUTINE$($this, nonce, $completion);
|
|
241
|
+
tmp.n9_1 = Unit_instance;
|
|
242
|
+
tmp.o9_1 = null;
|
|
243
|
+
return tmp.t9();
|
|
244
244
|
}
|
|
245
|
-
function $scoreCOROUTINE$
|
|
245
|
+
function $scoreCOROUTINE$(_this__u8e3s4, prefixHash, nonce, resultContinuation) {
|
|
246
246
|
CoroutineImpl.call(this, resultContinuation);
|
|
247
|
-
this.
|
|
248
|
-
this.
|
|
249
|
-
this.
|
|
247
|
+
this.a7d_1 = _this__u8e3s4;
|
|
248
|
+
this.b7d_1 = prefixHash;
|
|
249
|
+
this.c7d_1 = nonce;
|
|
250
250
|
}
|
|
251
|
-
protoOf($scoreCOROUTINE$
|
|
252
|
-
var suspendResult = this.
|
|
251
|
+
protoOf($scoreCOROUTINE$).t9 = function () {
|
|
252
|
+
var suspendResult = this.n9_1;
|
|
253
253
|
$sm: do
|
|
254
254
|
try {
|
|
255
|
-
var tmp = this.
|
|
255
|
+
var tmp = this.l9_1;
|
|
256
256
|
switch (tmp) {
|
|
257
257
|
case 0:
|
|
258
|
-
this.
|
|
259
|
-
this.
|
|
258
|
+
this.m9_1 = 2;
|
|
259
|
+
this.d7d_1 = encodeToByteArray(this.c7d_1.toString());
|
|
260
260
|
var tmp_0 = this;
|
|
261
|
-
var tmp0 = this.
|
|
262
|
-
var elements = this.
|
|
263
|
-
tmp_0.
|
|
264
|
-
this.
|
|
265
|
-
suspendResult = sha256(this.
|
|
261
|
+
var tmp0 = this.b7d_1;
|
|
262
|
+
var elements = this.d7d_1;
|
|
263
|
+
tmp_0.e7d_1 = primitiveArrayConcat([tmp0, elements]);
|
|
264
|
+
this.l9_1 = 1;
|
|
265
|
+
suspendResult = sha256(this.a7d_1, this.e7d_1, this);
|
|
266
266
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
267
267
|
return suspendResult;
|
|
268
268
|
}
|
|
@@ -270,45 +270,45 @@ protoOf($scoreCOROUTINE$0).s9 = function () {
|
|
|
270
270
|
continue $sm;
|
|
271
271
|
case 1:
|
|
272
272
|
var hash = suspendResult;
|
|
273
|
-
return firstBytesAsBigInteger(this.
|
|
273
|
+
return firstBytesAsBigInteger(this.a7d_1, hash);
|
|
274
274
|
case 2:
|
|
275
|
-
throw this.
|
|
275
|
+
throw this.o9_1;
|
|
276
276
|
}
|
|
277
277
|
} catch ($p) {
|
|
278
278
|
var e = $p;
|
|
279
|
-
if (this.
|
|
279
|
+
if (this.m9_1 === 2) {
|
|
280
280
|
throw e;
|
|
281
281
|
} else {
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
282
|
+
this.l9_1 = this.m9_1;
|
|
283
|
+
this.o9_1 = e;
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
while (true);
|
|
287
287
|
};
|
|
288
|
-
function $calculateCOROUTINE$
|
|
288
|
+
function $calculateCOROUTINE$(_this__u8e3s4, nonce, resultContinuation) {
|
|
289
289
|
CoroutineImpl.call(this, resultContinuation);
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
290
|
+
this.n7d_1 = _this__u8e3s4;
|
|
291
|
+
this.o7d_1 = nonce;
|
|
292
292
|
}
|
|
293
|
-
protoOf($calculateCOROUTINE$
|
|
294
|
-
var suspendResult = this.
|
|
293
|
+
protoOf($calculateCOROUTINE$).t9 = function () {
|
|
294
|
+
var suspendResult = this.n9_1;
|
|
295
295
|
$sm: do
|
|
296
296
|
try {
|
|
297
|
-
var tmp = this.
|
|
297
|
+
var tmp = this.l9_1;
|
|
298
298
|
switch (tmp) {
|
|
299
299
|
case 0:
|
|
300
|
-
this.
|
|
301
|
-
this.
|
|
302
|
-
suspendResult = sha256(this.
|
|
300
|
+
this.m9_1 = 3;
|
|
301
|
+
this.l9_1 = 1;
|
|
302
|
+
suspendResult = sha256(this.n7d_1, _get_prefix__wiwq7t(this.n7d_1), this);
|
|
303
303
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
304
304
|
return suspendResult;
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
continue $sm;
|
|
308
308
|
case 1:
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
311
|
-
suspendResult = score(this.
|
|
309
|
+
this.p7d_1 = suspendResult;
|
|
310
|
+
this.l9_1 = 2;
|
|
311
|
+
suspendResult = score(this.n7d_1, this.p7d_1, this.o7d_1, this);
|
|
312
312
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
313
313
|
return suspendResult;
|
|
314
314
|
}
|
|
@@ -317,99 +317,99 @@ protoOf($calculateCOROUTINE$1).s9 = function () {
|
|
|
317
317
|
case 2:
|
|
318
318
|
return suspendResult;
|
|
319
319
|
case 3:
|
|
320
|
-
throw this.
|
|
320
|
+
throw this.o9_1;
|
|
321
321
|
}
|
|
322
322
|
} catch ($p) {
|
|
323
323
|
var e = $p;
|
|
324
|
-
if (this.
|
|
324
|
+
if (this.m9_1 === 3) {
|
|
325
325
|
throw e;
|
|
326
326
|
} else {
|
|
327
|
-
this.
|
|
328
|
-
this.
|
|
327
|
+
this.l9_1 = this.m9_1;
|
|
328
|
+
this.o9_1 = e;
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
while (true);
|
|
332
332
|
};
|
|
333
|
-
function $resolveCOROUTINE$
|
|
333
|
+
function $resolveCOROUTINE$(_this__u8e3s4, onProgress, resultContinuation) {
|
|
334
334
|
CoroutineImpl.call(this, resultContinuation);
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
335
|
+
this.y7d_1 = _this__u8e3s4;
|
|
336
|
+
this.z7d_1 = onProgress;
|
|
337
337
|
}
|
|
338
|
-
protoOf($resolveCOROUTINE$
|
|
339
|
-
var suspendResult = this.
|
|
338
|
+
protoOf($resolveCOROUTINE$).t9 = function () {
|
|
339
|
+
var suspendResult = this.n9_1;
|
|
340
340
|
$sm: do
|
|
341
341
|
try {
|
|
342
|
-
var tmp = this.
|
|
342
|
+
var tmp = this.l9_1;
|
|
343
343
|
switch (tmp) {
|
|
344
344
|
case 0:
|
|
345
|
-
this.
|
|
346
|
-
this.
|
|
347
|
-
suspendResult = sha256(this.
|
|
345
|
+
this.m9_1 = 5;
|
|
346
|
+
this.l9_1 = 1;
|
|
347
|
+
suspendResult = sha256(this.y7d_1, _get_prefix__wiwq7t(this.y7d_1), this);
|
|
348
348
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
349
349
|
return suspendResult;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
continue $sm;
|
|
353
353
|
case 1:
|
|
354
|
-
this.
|
|
355
|
-
this.
|
|
356
|
-
this.
|
|
357
|
-
this.
|
|
358
|
-
this.
|
|
359
|
-
this.
|
|
354
|
+
this.a7e_1 = suspendResult;
|
|
355
|
+
this.b7e_1 = _get_difficulty__gn5kuo(this.y7d_1).i78(false) / Companion_getInstance_1().m7c_1;
|
|
356
|
+
this.c7e_1 = 1.0;
|
|
357
|
+
this.d7e_1 = new Long(0, 0);
|
|
358
|
+
this.e7e_1 = Companion_getInstance().x72_1;
|
|
359
|
+
this.l9_1 = 2;
|
|
360
360
|
continue $sm;
|
|
361
361
|
case 2:
|
|
362
|
-
if (!(this.
|
|
363
|
-
this.
|
|
362
|
+
if (!(this.e7e_1.n75(_get_difficulty__gn5kuo(this.y7d_1)) < 0)) {
|
|
363
|
+
this.l9_1 = 4;
|
|
364
364
|
continue $sm;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
var tmp_0 = this;
|
|
368
|
-
tmp_0.
|
|
369
|
-
this.
|
|
370
|
-
suspendResult = score(this.
|
|
368
|
+
tmp_0.d7e_1 = this.d7e_1.c3(toLong(1));
|
|
369
|
+
this.l9_1 = 3;
|
|
370
|
+
suspendResult = score(this.y7d_1, this.a7e_1, this.d7e_1, this);
|
|
371
371
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
372
372
|
return suspendResult;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
375
|
continue $sm;
|
|
376
376
|
case 3:
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
377
|
+
this.e7e_1 = suspendResult;
|
|
378
|
+
this.c7e_1 = this.c7e_1 * this.b7e_1;
|
|
379
|
+
this.z7d_1(1 - this.c7e_1);
|
|
380
|
+
this.l9_1 = 2;
|
|
381
381
|
continue $sm;
|
|
382
382
|
case 4:
|
|
383
|
-
return new ProofOfWork(this.
|
|
383
|
+
return new ProofOfWork(this.d7e_1.toString());
|
|
384
384
|
case 5:
|
|
385
|
-
throw this.
|
|
385
|
+
throw this.o9_1;
|
|
386
386
|
}
|
|
387
387
|
} catch ($p) {
|
|
388
388
|
var e = $p;
|
|
389
|
-
if (this.
|
|
389
|
+
if (this.m9_1 === 5) {
|
|
390
390
|
throw e;
|
|
391
391
|
} else {
|
|
392
|
-
this.
|
|
393
|
-
this.
|
|
392
|
+
this.l9_1 = this.m9_1;
|
|
393
|
+
this.o9_1 = e;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
while (true);
|
|
397
397
|
};
|
|
398
|
-
function $validateCOROUTINE$
|
|
398
|
+
function $validateCOROUTINE$(_this__u8e3s4, nonce, resultContinuation) {
|
|
399
399
|
CoroutineImpl.call(this, resultContinuation);
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
400
|
+
this.n7e_1 = _this__u8e3s4;
|
|
401
|
+
this.o7e_1 = nonce;
|
|
402
402
|
}
|
|
403
|
-
protoOf($validateCOROUTINE$
|
|
404
|
-
var suspendResult = this.
|
|
403
|
+
protoOf($validateCOROUTINE$).t9 = function () {
|
|
404
|
+
var suspendResult = this.n9_1;
|
|
405
405
|
$sm: do
|
|
406
406
|
try {
|
|
407
|
-
var tmp = this.
|
|
407
|
+
var tmp = this.l9_1;
|
|
408
408
|
switch (tmp) {
|
|
409
409
|
case 0:
|
|
410
|
-
this.
|
|
411
|
-
this.
|
|
412
|
-
suspendResult = calculate(this.
|
|
410
|
+
this.m9_1 = 2;
|
|
411
|
+
this.l9_1 = 1;
|
|
412
|
+
suspendResult = calculate(this.n7e_1, this.o7e_1, this);
|
|
413
413
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
414
414
|
return suspendResult;
|
|
415
415
|
}
|
|
@@ -417,39 +417,39 @@ protoOf($validateCOROUTINE$3).s9 = function () {
|
|
|
417
417
|
continue $sm;
|
|
418
418
|
case 1:
|
|
419
419
|
var calculatedResult = suspendResult;
|
|
420
|
-
return calculatedResult.
|
|
420
|
+
return calculatedResult.n75(_get_difficulty__gn5kuo(this.n7e_1)) >= 0;
|
|
421
421
|
case 2:
|
|
422
|
-
throw this.
|
|
422
|
+
throw this.o9_1;
|
|
423
423
|
}
|
|
424
424
|
} catch ($p) {
|
|
425
425
|
var e = $p;
|
|
426
|
-
if (this.
|
|
426
|
+
if (this.m9_1 === 2) {
|
|
427
427
|
throw e;
|
|
428
428
|
} else {
|
|
429
|
-
this.
|
|
430
|
-
this.
|
|
429
|
+
this.l9_1 = this.m9_1;
|
|
430
|
+
this.o9_1 = e;
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
while (true);
|
|
434
434
|
};
|
|
435
435
|
function ChallengePieceResolver(salt, serializedInput, difficultyFactor, digestService) {
|
|
436
436
|
Companion_getInstance_1();
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
437
|
+
this.o7c_1 = salt;
|
|
438
|
+
this.p7c_1 = serializedInput;
|
|
439
|
+
this.q7c_1 = difficultyFactor;
|
|
440
|
+
this.r7c_1 = digestService;
|
|
441
441
|
}
|
|
442
|
-
protoOf(ChallengePieceResolver).
|
|
443
|
-
var tmp = new $resolveCOROUTINE$
|
|
444
|
-
tmp.
|
|
445
|
-
tmp.
|
|
446
|
-
return tmp.
|
|
442
|
+
protoOf(ChallengePieceResolver).p7e = function (onProgress, $completion) {
|
|
443
|
+
var tmp = new $resolveCOROUTINE$(this, onProgress, $completion);
|
|
444
|
+
tmp.n9_1 = Unit_instance;
|
|
445
|
+
tmp.o9_1 = null;
|
|
446
|
+
return tmp.t9();
|
|
447
447
|
};
|
|
448
|
-
protoOf(ChallengePieceResolver).
|
|
449
|
-
var tmp = new $validateCOROUTINE$
|
|
450
|
-
tmp.
|
|
451
|
-
tmp.
|
|
452
|
-
return tmp.
|
|
448
|
+
protoOf(ChallengePieceResolver).q7e = function (nonce, $completion) {
|
|
449
|
+
var tmp = new $validateCOROUTINE$(this, nonce, $completion);
|
|
450
|
+
tmp.n9_1 = Unit_instance;
|
|
451
|
+
tmp.o9_1 = null;
|
|
452
|
+
return tmp.t9();
|
|
453
453
|
};
|
|
454
454
|
function resolveChallenge(config, serializedInput, cryptoService, onProgress, $completion) {
|
|
455
455
|
cryptoService = cryptoService === VOID ? null : cryptoService;
|
|
@@ -460,17 +460,17 @@ function resolveChallenge(config, serializedInput, cryptoService, onProgress, $c
|
|
|
460
460
|
tmp = onProgress;
|
|
461
461
|
}
|
|
462
462
|
onProgress = tmp;
|
|
463
|
-
var tmp_0 = new $resolveChallengeCOROUTINE$
|
|
464
|
-
tmp_0.
|
|
465
|
-
tmp_0.
|
|
466
|
-
return tmp_0.
|
|
463
|
+
var tmp_0 = new $resolveChallengeCOROUTINE$(config, serializedInput, cryptoService, onProgress, $completion);
|
|
464
|
+
tmp_0.n9_1 = Unit_instance;
|
|
465
|
+
tmp_0.o9_1 = null;
|
|
466
|
+
return tmp_0.t9();
|
|
467
467
|
}
|
|
468
468
|
function validateSolution(config, result, serializedInput, cryptoService, $completion) {
|
|
469
469
|
cryptoService = cryptoService === VOID ? null : cryptoService;
|
|
470
|
-
var tmp = new $validateSolutionCOROUTINE$
|
|
471
|
-
tmp.
|
|
472
|
-
tmp.
|
|
473
|
-
return tmp.
|
|
470
|
+
var tmp = new $validateSolutionCOROUTINE$(config, result, serializedInput, cryptoService, $completion);
|
|
471
|
+
tmp.n9_1 = Unit_instance;
|
|
472
|
+
tmp.o9_1 = null;
|
|
473
|
+
return tmp.t9();
|
|
474
474
|
}
|
|
475
475
|
function resolveChallenge$lambda(it) {
|
|
476
476
|
return Unit_instance;
|
|
@@ -486,57 +486,57 @@ function resolveChallenge$lambda_0($index, $challenges, $lastSentProgress, $onPr
|
|
|
486
486
|
return Unit_instance;
|
|
487
487
|
};
|
|
488
488
|
}
|
|
489
|
-
function $resolveChallengeCOROUTINE$
|
|
489
|
+
function $resolveChallengeCOROUTINE$(config, serializedInput, cryptoService, onProgress, resultContinuation) {
|
|
490
490
|
CoroutineImpl.call(this, resultContinuation);
|
|
491
|
-
this.
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
494
|
-
this.
|
|
491
|
+
this.z7e_1 = config;
|
|
492
|
+
this.a7f_1 = serializedInput;
|
|
493
|
+
this.b7f_1 = cryptoService;
|
|
494
|
+
this.c7f_1 = onProgress;
|
|
495
495
|
}
|
|
496
|
-
protoOf($resolveChallengeCOROUTINE$
|
|
497
|
-
var suspendResult = this.
|
|
496
|
+
protoOf($resolveChallengeCOROUTINE$).t9 = function () {
|
|
497
|
+
var suspendResult = this.n9_1;
|
|
498
498
|
$sm: do
|
|
499
499
|
try {
|
|
500
|
-
var tmp = this.
|
|
500
|
+
var tmp = this.l9_1;
|
|
501
501
|
switch (tmp) {
|
|
502
502
|
case 0:
|
|
503
|
-
this.
|
|
503
|
+
this.m9_1 = 4;
|
|
504
504
|
var tmp_0 = this;
|
|
505
505
|
var tmp_1 = Companion_getInstance_1();
|
|
506
|
-
var tmp0_elvis_lhs = this.
|
|
507
|
-
tmp_0.
|
|
508
|
-
this.
|
|
509
|
-
this.
|
|
506
|
+
var tmp0_elvis_lhs = this.b7f_1;
|
|
507
|
+
tmp_0.d7f_1 = tmp_1.n7c(this.z7e_1, this.a7f_1, tmp0_elvis_lhs == null ? get_defaultCryptoService() : tmp0_elvis_lhs);
|
|
508
|
+
this.e7f_1 = {_v: 0.0};
|
|
509
|
+
this.f7f_1 = this.z7e_1.i7c_1;
|
|
510
510
|
var tmp_2 = this;
|
|
511
|
-
tmp_2.
|
|
512
|
-
this.
|
|
511
|
+
tmp_2.g7f_1 = this.d7f_1;
|
|
512
|
+
this.h7f_1 = this.g7f_1;
|
|
513
513
|
var tmp_3 = this;
|
|
514
|
-
tmp_3.
|
|
514
|
+
tmp_3.i7f_1 = this.h7f_1;
|
|
515
515
|
var tmp_4 = this;
|
|
516
|
-
tmp_4.
|
|
516
|
+
tmp_4.j7f_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this.h7f_1, 10));
|
|
517
|
+
this.k7f_1 = this.i7f_1;
|
|
517
518
|
this.l7f_1 = this.j7f_1;
|
|
518
|
-
this.m7f_1 =
|
|
519
|
-
this.n7f_1 =
|
|
520
|
-
this.
|
|
521
|
-
this.k9_1 = 1;
|
|
519
|
+
this.m7f_1 = 0;
|
|
520
|
+
this.n7f_1 = this.k7f_1.q();
|
|
521
|
+
this.l9_1 = 1;
|
|
522
522
|
continue $sm;
|
|
523
523
|
case 1:
|
|
524
|
-
if (!this.
|
|
525
|
-
this.
|
|
524
|
+
if (!this.n7f_1.r()) {
|
|
525
|
+
this.l9_1 = 3;
|
|
526
526
|
continue $sm;
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
-
this.
|
|
529
|
+
this.o7f_1 = this.n7f_1.s();
|
|
530
530
|
var tmp_5 = this;
|
|
531
|
-
var _unary__edvuaz = this.
|
|
532
|
-
this.
|
|
533
|
-
tmp_5.
|
|
531
|
+
var _unary__edvuaz = this.m7f_1;
|
|
532
|
+
this.m7f_1 = _unary__edvuaz + 1 | 0;
|
|
533
|
+
tmp_5.p7f_1 = checkIndexOverflow(_unary__edvuaz);
|
|
534
534
|
var tmp_6 = this;
|
|
535
|
-
tmp_6.
|
|
535
|
+
tmp_6.q7f_1 = this.o7f_1;
|
|
536
|
+
this.r7f_1 = this.p7f_1;
|
|
536
537
|
this.s7f_1 = this.q7f_1;
|
|
537
|
-
this.
|
|
538
|
-
this.
|
|
539
|
-
suspendResult = this.t7f_1.q7e(resolveChallenge$lambda_0(this.s7f_1, this.e7f_1, this.f7f_1, this.d7f_1), this);
|
|
538
|
+
this.l9_1 = 2;
|
|
539
|
+
suspendResult = this.s7f_1.p7e(resolveChallenge$lambda_0(this.r7f_1, this.d7f_1, this.e7f_1, this.c7f_1), this);
|
|
540
540
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
541
541
|
return suspendResult;
|
|
542
542
|
}
|
|
@@ -544,97 +544,97 @@ protoOf($resolveChallengeCOROUTINE$4).s9 = function () {
|
|
|
544
544
|
continue $sm;
|
|
545
545
|
case 2:
|
|
546
546
|
var ARGUMENT = suspendResult;
|
|
547
|
-
this.
|
|
548
|
-
this.
|
|
547
|
+
this.l7f_1.k(ARGUMENT);
|
|
548
|
+
this.l9_1 = 1;
|
|
549
549
|
continue $sm;
|
|
550
550
|
case 3:
|
|
551
|
-
var this_0 = this.
|
|
551
|
+
var this_0 = this.l7f_1;
|
|
552
552
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
553
553
|
var _iterator__ex2g4s = this_0.q();
|
|
554
554
|
while (_iterator__ex2g4s.r()) {
|
|
555
555
|
var item = _iterator__ex2g4s.s();
|
|
556
|
-
destination.k(item.
|
|
556
|
+
destination.k(item.p7g_1);
|
|
557
557
|
}
|
|
558
558
|
|
|
559
559
|
var ARGUMENT_0 = destination;
|
|
560
560
|
var ARGUMENT_1 = toList(ARGUMENT_0);
|
|
561
|
-
var this_1 = new Solution(this.
|
|
562
|
-
this.
|
|
561
|
+
var this_1 = new Solution(this.f7f_1, ARGUMENT_1);
|
|
562
|
+
this.c7f_1(1.0);
|
|
563
563
|
return this_1;
|
|
564
564
|
case 4:
|
|
565
|
-
throw this.
|
|
565
|
+
throw this.o9_1;
|
|
566
566
|
}
|
|
567
567
|
} catch ($p) {
|
|
568
568
|
var e = $p;
|
|
569
|
-
if (this.
|
|
569
|
+
if (this.m9_1 === 4) {
|
|
570
570
|
throw e;
|
|
571
571
|
} else {
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
572
|
+
this.l9_1 = this.m9_1;
|
|
573
|
+
this.o9_1 = e;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
while (true);
|
|
577
577
|
};
|
|
578
|
-
function $validateSolutionCOROUTINE$
|
|
578
|
+
function $validateSolutionCOROUTINE$(config, result, serializedInput, cryptoService, resultContinuation) {
|
|
579
579
|
CoroutineImpl.call(this, resultContinuation);
|
|
580
|
-
this.
|
|
581
|
-
this.
|
|
582
|
-
this.
|
|
583
|
-
this.
|
|
580
|
+
this.b7g_1 = config;
|
|
581
|
+
this.c7g_1 = result;
|
|
582
|
+
this.d7g_1 = serializedInput;
|
|
583
|
+
this.e7g_1 = cryptoService;
|
|
584
584
|
}
|
|
585
|
-
protoOf($validateSolutionCOROUTINE$
|
|
586
|
-
var suspendResult = this.
|
|
585
|
+
protoOf($validateSolutionCOROUTINE$).t9 = function () {
|
|
586
|
+
var suspendResult = this.n9_1;
|
|
587
587
|
$sm: do
|
|
588
588
|
try {
|
|
589
|
-
var tmp = this.
|
|
589
|
+
var tmp = this.l9_1;
|
|
590
590
|
switch (tmp) {
|
|
591
591
|
case 0:
|
|
592
|
-
this.
|
|
592
|
+
this.m9_1 = 7;
|
|
593
593
|
var tmp_0 = this;
|
|
594
594
|
var tmp_1 = Companion_getInstance_1();
|
|
595
|
-
var tmp0_elvis_lhs = this.
|
|
596
|
-
tmp_0.
|
|
595
|
+
var tmp0_elvis_lhs = this.e7g_1;
|
|
596
|
+
tmp_0.f7g_1 = tmp_1.n7c(this.b7g_1, this.d7g_1, tmp0_elvis_lhs == null ? get_defaultCryptoService() : tmp0_elvis_lhs);
|
|
597
597
|
var tmp_2 = this;
|
|
598
|
-
tmp_2.
|
|
599
|
-
this.
|
|
598
|
+
tmp_2.g7g_1 = withIndex(this.f7g_1);
|
|
599
|
+
this.l9_1 = 1;
|
|
600
600
|
continue $sm;
|
|
601
601
|
case 1:
|
|
602
|
-
this.
|
|
602
|
+
this.i7g_1 = this.g7g_1;
|
|
603
603
|
var tmp_3;
|
|
604
|
-
var tmp_4 = this.
|
|
604
|
+
var tmp_4 = this.i7g_1;
|
|
605
605
|
if (isInterface(tmp_4, Collection)) {
|
|
606
|
-
tmp_3 = this.
|
|
606
|
+
tmp_3 = this.i7g_1.h();
|
|
607
607
|
} else {
|
|
608
608
|
tmp_3 = false;
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
if (tmp_3) {
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
612
|
+
this.h7g_1 = true;
|
|
613
|
+
this.l9_1 = 8;
|
|
614
614
|
continue $sm;
|
|
615
615
|
} else {
|
|
616
|
-
this.
|
|
616
|
+
this.l9_1 = 2;
|
|
617
617
|
continue $sm;
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
case 2:
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
621
|
+
this.j7g_1 = this.i7g_1.q();
|
|
622
|
+
this.l9_1 = 3;
|
|
623
623
|
continue $sm;
|
|
624
624
|
case 3:
|
|
625
|
-
if (!this.
|
|
626
|
-
this.
|
|
625
|
+
if (!this.j7g_1.r()) {
|
|
626
|
+
this.l9_1 = 6;
|
|
627
627
|
continue $sm;
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
this.
|
|
630
|
+
this.k7g_1 = this.j7g_1.s();
|
|
631
631
|
var tmp_5 = this;
|
|
632
|
-
tmp_5.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
suspendResult = this.
|
|
632
|
+
tmp_5.l7g_1 = this.k7g_1;
|
|
633
|
+
this.m7g_1 = this.l7g_1;
|
|
634
|
+
this.n7g_1 = this.m7g_1.pb();
|
|
635
|
+
this.o7g_1 = this.m7g_1.qb();
|
|
636
|
+
this.l9_1 = 4;
|
|
637
|
+
suspendResult = this.o7g_1.q7e(toLong_0(this.c7g_1.r7g_1.v(this.n7g_1)), this);
|
|
638
638
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
639
639
|
return suspendResult;
|
|
640
640
|
}
|
|
@@ -643,38 +643,38 @@ protoOf($validateSolutionCOROUTINE$5).s9 = function () {
|
|
|
643
643
|
case 4:
|
|
644
644
|
var ARGUMENT = suspendResult;
|
|
645
645
|
if (!ARGUMENT) {
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
646
|
+
this.h7g_1 = false;
|
|
647
|
+
this.l9_1 = 8;
|
|
648
648
|
continue $sm;
|
|
649
649
|
} else {
|
|
650
|
-
this.
|
|
650
|
+
this.l9_1 = 5;
|
|
651
651
|
continue $sm;
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
case 5:
|
|
655
|
-
this.
|
|
655
|
+
this.l9_1 = 3;
|
|
656
656
|
continue $sm;
|
|
657
657
|
case 6:
|
|
658
|
-
this.
|
|
658
|
+
this.h7g_1 = true;
|
|
659
659
|
if (false) {
|
|
660
|
-
this.
|
|
660
|
+
this.l9_1 = 1;
|
|
661
661
|
continue $sm;
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
-
this.
|
|
664
|
+
this.l9_1 = 8;
|
|
665
665
|
continue $sm;
|
|
666
666
|
case 7:
|
|
667
|
-
throw this.
|
|
667
|
+
throw this.o9_1;
|
|
668
668
|
case 8:
|
|
669
|
-
return this.
|
|
669
|
+
return this.h7g_1;
|
|
670
670
|
}
|
|
671
671
|
} catch ($p) {
|
|
672
672
|
var e = $p;
|
|
673
|
-
if (this.
|
|
673
|
+
if (this.m9_1 === 7) {
|
|
674
674
|
throw e;
|
|
675
675
|
} else {
|
|
676
|
-
this.
|
|
677
|
-
this.
|
|
676
|
+
this.l9_1 = this.m9_1;
|
|
677
|
+
this.o9_1 = e;
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
while (true);
|
|
@@ -688,50 +688,50 @@ function Companion_getInstance_2() {
|
|
|
688
688
|
function $serializer_0() {
|
|
689
689
|
$serializer_instance_0 = this;
|
|
690
690
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.icure.kerberus.ProofOfWork', this, 1);
|
|
691
|
-
tmp0_serialDesc.
|
|
692
|
-
this.
|
|
691
|
+
tmp0_serialDesc.m2d('nonce', false);
|
|
692
|
+
this.s7g_1 = tmp0_serialDesc;
|
|
693
693
|
}
|
|
694
|
-
protoOf($serializer_0).
|
|
695
|
-
var tmp0_desc = this.
|
|
696
|
-
var tmp1_output = encoder.
|
|
697
|
-
tmp1_output.
|
|
698
|
-
tmp1_output.
|
|
694
|
+
protoOf($serializer_0).t7g = function (encoder, value) {
|
|
695
|
+
var tmp0_desc = this.s7g_1;
|
|
696
|
+
var tmp1_output = encoder.x25(tmp0_desc);
|
|
697
|
+
tmp1_output.n27(tmp0_desc, 0, value.p7g_1);
|
|
698
|
+
tmp1_output.y25(tmp0_desc);
|
|
699
699
|
};
|
|
700
|
-
protoOf($serializer_0).
|
|
701
|
-
return this.
|
|
700
|
+
protoOf($serializer_0).n22 = function (encoder, value) {
|
|
701
|
+
return this.t7g(encoder, value instanceof ProofOfWork ? value : THROW_CCE());
|
|
702
702
|
};
|
|
703
|
-
protoOf($serializer_0).
|
|
704
|
-
var tmp0_desc = this.
|
|
703
|
+
protoOf($serializer_0).o22 = function (decoder) {
|
|
704
|
+
var tmp0_desc = this.s7g_1;
|
|
705
705
|
var tmp1_flag = true;
|
|
706
706
|
var tmp2_index = 0;
|
|
707
707
|
var tmp3_bitMask0 = 0;
|
|
708
708
|
var tmp4_local0 = null;
|
|
709
|
-
var tmp5_input = decoder.
|
|
710
|
-
if (tmp5_input.
|
|
711
|
-
tmp4_local0 = tmp5_input.
|
|
709
|
+
var tmp5_input = decoder.x25(tmp0_desc);
|
|
710
|
+
if (tmp5_input.o26()) {
|
|
711
|
+
tmp4_local0 = tmp5_input.h26(tmp0_desc, 0);
|
|
712
712
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
713
713
|
} else
|
|
714
714
|
while (tmp1_flag) {
|
|
715
|
-
tmp2_index = tmp5_input.
|
|
715
|
+
tmp2_index = tmp5_input.p26(tmp0_desc);
|
|
716
716
|
switch (tmp2_index) {
|
|
717
717
|
case -1:
|
|
718
718
|
tmp1_flag = false;
|
|
719
719
|
break;
|
|
720
720
|
case 0:
|
|
721
|
-
tmp4_local0 = tmp5_input.
|
|
721
|
+
tmp4_local0 = tmp5_input.h26(tmp0_desc, 0);
|
|
722
722
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
723
723
|
break;
|
|
724
724
|
default:
|
|
725
725
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
tmp5_input.
|
|
728
|
+
tmp5_input.y25(tmp0_desc);
|
|
729
729
|
return ProofOfWork_init_$Create$(tmp3_bitMask0, tmp4_local0, null);
|
|
730
730
|
};
|
|
731
|
-
protoOf($serializer_0).
|
|
732
|
-
return this.
|
|
731
|
+
protoOf($serializer_0).m22 = function () {
|
|
732
|
+
return this.s7g_1;
|
|
733
733
|
};
|
|
734
|
-
protoOf($serializer_0).
|
|
734
|
+
protoOf($serializer_0).f2e = function () {
|
|
735
735
|
// Inline function 'kotlin.arrayOf' call
|
|
736
736
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
737
737
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -745,22 +745,22 @@ function $serializer_getInstance_0() {
|
|
|
745
745
|
}
|
|
746
746
|
function ProofOfWork_init_$Init$(seen0, nonce, serializationConstructorMarker, $this) {
|
|
747
747
|
if (!(1 === (1 & seen0))) {
|
|
748
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
748
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().s7g_1);
|
|
749
749
|
}
|
|
750
|
-
$this.
|
|
750
|
+
$this.p7g_1 = nonce;
|
|
751
751
|
return $this;
|
|
752
752
|
}
|
|
753
753
|
function ProofOfWork_init_$Create$(seen0, nonce, serializationConstructorMarker) {
|
|
754
754
|
return ProofOfWork_init_$Init$(seen0, nonce, serializationConstructorMarker, objectCreate(protoOf(ProofOfWork)));
|
|
755
755
|
}
|
|
756
756
|
function ProofOfWork(nonce) {
|
|
757
|
-
this.
|
|
757
|
+
this.p7g_1 = nonce;
|
|
758
758
|
}
|
|
759
759
|
protoOf(ProofOfWork).toString = function () {
|
|
760
|
-
return 'ProofOfWork(nonce=' + this.
|
|
760
|
+
return 'ProofOfWork(nonce=' + this.p7g_1 + ')';
|
|
761
761
|
};
|
|
762
762
|
protoOf(ProofOfWork).hashCode = function () {
|
|
763
|
-
return getStringHashCode(this.
|
|
763
|
+
return getStringHashCode(this.p7g_1);
|
|
764
764
|
};
|
|
765
765
|
protoOf(ProofOfWork).equals = function (other) {
|
|
766
766
|
if (this === other)
|
|
@@ -768,7 +768,7 @@ protoOf(ProofOfWork).equals = function (other) {
|
|
|
768
768
|
if (!(other instanceof ProofOfWork))
|
|
769
769
|
return false;
|
|
770
770
|
var tmp0_other_with_cast = other instanceof ProofOfWork ? other : THROW_CCE();
|
|
771
|
-
if (!(this.
|
|
771
|
+
if (!(this.p7g_1 === tmp0_other_with_cast.p7g_1))
|
|
772
772
|
return false;
|
|
773
773
|
return true;
|
|
774
774
|
};
|
|
@@ -778,7 +778,7 @@ function Companion_2() {
|
|
|
778
778
|
// Inline function 'kotlin.arrayOf' call
|
|
779
779
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
780
780
|
// Inline function 'kotlin.js.asDynamic' call
|
|
781
|
-
tmp.
|
|
781
|
+
tmp.u7g_1 = [null, new ArrayListSerializer(StringSerializer_getInstance())];
|
|
782
782
|
}
|
|
783
783
|
var Companion_instance_2;
|
|
784
784
|
function Companion_getInstance_3() {
|
|
@@ -789,62 +789,62 @@ function Companion_getInstance_3() {
|
|
|
789
789
|
function $serializer_1() {
|
|
790
790
|
$serializer_instance_1 = this;
|
|
791
791
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('com.icure.kerberus.Solution', this, 2);
|
|
792
|
-
tmp0_serialDesc.
|
|
793
|
-
tmp0_serialDesc.
|
|
794
|
-
this.
|
|
792
|
+
tmp0_serialDesc.m2d('id', false);
|
|
793
|
+
tmp0_serialDesc.m2d('nonces', false);
|
|
794
|
+
this.v7g_1 = tmp0_serialDesc;
|
|
795
795
|
}
|
|
796
|
-
protoOf($serializer_1).
|
|
797
|
-
var tmp0_desc = this.
|
|
798
|
-
var tmp1_output = encoder.
|
|
799
|
-
var tmp2_cached = Companion_getInstance_3().
|
|
800
|
-
tmp1_output.
|
|
801
|
-
tmp1_output.
|
|
802
|
-
tmp1_output.
|
|
796
|
+
protoOf($serializer_1).w7g = function (encoder, value) {
|
|
797
|
+
var tmp0_desc = this.v7g_1;
|
|
798
|
+
var tmp1_output = encoder.x25(tmp0_desc);
|
|
799
|
+
var tmp2_cached = Companion_getInstance_3().u7g_1;
|
|
800
|
+
tmp1_output.n27(tmp0_desc, 0, value.q7g_1);
|
|
801
|
+
tmp1_output.p27(tmp0_desc, 1, tmp2_cached[1], value.r7g_1);
|
|
802
|
+
tmp1_output.y25(tmp0_desc);
|
|
803
803
|
};
|
|
804
|
-
protoOf($serializer_1).
|
|
805
|
-
return this.
|
|
804
|
+
protoOf($serializer_1).n22 = function (encoder, value) {
|
|
805
|
+
return this.w7g(encoder, value instanceof Solution ? value : THROW_CCE());
|
|
806
806
|
};
|
|
807
|
-
protoOf($serializer_1).
|
|
808
|
-
var tmp0_desc = this.
|
|
807
|
+
protoOf($serializer_1).o22 = function (decoder) {
|
|
808
|
+
var tmp0_desc = this.v7g_1;
|
|
809
809
|
var tmp1_flag = true;
|
|
810
810
|
var tmp2_index = 0;
|
|
811
811
|
var tmp3_bitMask0 = 0;
|
|
812
812
|
var tmp4_local0 = null;
|
|
813
813
|
var tmp5_local1 = null;
|
|
814
|
-
var tmp6_input = decoder.
|
|
815
|
-
var tmp7_cached = Companion_getInstance_3().
|
|
816
|
-
if (tmp6_input.
|
|
817
|
-
tmp4_local0 = tmp6_input.
|
|
814
|
+
var tmp6_input = decoder.x25(tmp0_desc);
|
|
815
|
+
var tmp7_cached = Companion_getInstance_3().u7g_1;
|
|
816
|
+
if (tmp6_input.o26()) {
|
|
817
|
+
tmp4_local0 = tmp6_input.h26(tmp0_desc, 0);
|
|
818
818
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
819
|
-
tmp5_local1 = tmp6_input.
|
|
819
|
+
tmp5_local1 = tmp6_input.j26(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
|
|
820
820
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
821
821
|
} else
|
|
822
822
|
while (tmp1_flag) {
|
|
823
|
-
tmp2_index = tmp6_input.
|
|
823
|
+
tmp2_index = tmp6_input.p26(tmp0_desc);
|
|
824
824
|
switch (tmp2_index) {
|
|
825
825
|
case -1:
|
|
826
826
|
tmp1_flag = false;
|
|
827
827
|
break;
|
|
828
828
|
case 0:
|
|
829
|
-
tmp4_local0 = tmp6_input.
|
|
829
|
+
tmp4_local0 = tmp6_input.h26(tmp0_desc, 0);
|
|
830
830
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
831
831
|
break;
|
|
832
832
|
case 1:
|
|
833
|
-
tmp5_local1 = tmp6_input.
|
|
833
|
+
tmp5_local1 = tmp6_input.j26(tmp0_desc, 1, tmp7_cached[1], tmp5_local1);
|
|
834
834
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
835
835
|
break;
|
|
836
836
|
default:
|
|
837
837
|
throw UnknownFieldException_init_$Create$(tmp2_index);
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
|
-
tmp6_input.
|
|
840
|
+
tmp6_input.y25(tmp0_desc);
|
|
841
841
|
return Solution_init_$Create$(tmp3_bitMask0, tmp4_local0, tmp5_local1, null);
|
|
842
842
|
};
|
|
843
|
-
protoOf($serializer_1).
|
|
844
|
-
return this.
|
|
843
|
+
protoOf($serializer_1).m22 = function () {
|
|
844
|
+
return this.v7g_1;
|
|
845
845
|
};
|
|
846
|
-
protoOf($serializer_1).
|
|
847
|
-
var tmp0_cached = Companion_getInstance_3().
|
|
846
|
+
protoOf($serializer_1).f2e = function () {
|
|
847
|
+
var tmp0_cached = Companion_getInstance_3().u7g_1;
|
|
848
848
|
// Inline function 'kotlin.arrayOf' call
|
|
849
849
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
850
850
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -858,10 +858,10 @@ function $serializer_getInstance_1() {
|
|
|
858
858
|
}
|
|
859
859
|
function Solution_init_$Init$(seen0, id, nonces, serializationConstructorMarker, $this) {
|
|
860
860
|
if (!(3 === (3 & seen0))) {
|
|
861
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().
|
|
861
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().v7g_1);
|
|
862
862
|
}
|
|
863
|
-
$this.
|
|
864
|
-
$this.
|
|
863
|
+
$this.q7g_1 = id;
|
|
864
|
+
$this.r7g_1 = nonces;
|
|
865
865
|
return $this;
|
|
866
866
|
}
|
|
867
867
|
function Solution_init_$Create$(seen0, id, nonces, serializationConstructorMarker) {
|
|
@@ -869,8 +869,8 @@ function Solution_init_$Create$(seen0, id, nonces, serializationConstructorMarke
|
|
|
869
869
|
}
|
|
870
870
|
function Solution(id, nonces) {
|
|
871
871
|
Companion_getInstance_3();
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
872
|
+
this.q7g_1 = id;
|
|
873
|
+
this.r7g_1 = nonces;
|
|
874
874
|
}
|
|
875
875
|
function resolveChallenge_0(config, serializedInput, cryptoService, onProgress) {
|
|
876
876
|
cryptoService = cryptoService === VOID ? null : cryptoService;
|
|
@@ -888,9 +888,9 @@ function validateSolution_0(config, result, serializedInput, cryptoService) {
|
|
|
888
888
|
return new Promise(validateSolutionJs$lambda(config, result, serializedInput, cryptoService));
|
|
889
889
|
}
|
|
890
890
|
function toSolutionJs(_this__u8e3s4) {
|
|
891
|
-
var tmp = to('id', _this__u8e3s4.
|
|
891
|
+
var tmp = to('id', _this__u8e3s4.q7g_1);
|
|
892
892
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
893
|
-
var this_0 = _this__u8e3s4.
|
|
893
|
+
var this_0 = _this__u8e3s4.r7g_1;
|
|
894
894
|
var tmp$ret$0 = copyToArray(this_0);
|
|
895
895
|
var tmp_0 = json([tmp, to('nonces', tmp$ret$0)]);
|
|
896
896
|
return !(tmp_0 == null) ? tmp_0 : THROW_CCE();
|
|
@@ -905,33 +905,33 @@ function resolveChallengeJs$lambda(it) {
|
|
|
905
905
|
return Unit_instance;
|
|
906
906
|
}
|
|
907
907
|
function resolveChallengeJs$lambda$slambda($resolve, $config, $serializedInput, $cryptoService, $onProgress, resultContinuation) {
|
|
908
|
-
this.
|
|
909
|
-
this.
|
|
910
|
-
this.
|
|
911
|
-
this.
|
|
912
|
-
this.
|
|
908
|
+
this.f7h_1 = $resolve;
|
|
909
|
+
this.g7h_1 = $config;
|
|
910
|
+
this.h7h_1 = $serializedInput;
|
|
911
|
+
this.i7h_1 = $cryptoService;
|
|
912
|
+
this.j7h_1 = $onProgress;
|
|
913
913
|
CoroutineImpl.call(this, resultContinuation);
|
|
914
914
|
}
|
|
915
|
-
protoOf(resolveChallengeJs$lambda$slambda).
|
|
916
|
-
var tmp = this.
|
|
917
|
-
tmp.
|
|
918
|
-
tmp.
|
|
919
|
-
return tmp.
|
|
915
|
+
protoOf(resolveChallengeJs$lambda$slambda).o20 = function ($this$launch, $completion) {
|
|
916
|
+
var tmp = this.p20($this$launch, $completion);
|
|
917
|
+
tmp.n9_1 = Unit_instance;
|
|
918
|
+
tmp.o9_1 = null;
|
|
919
|
+
return tmp.t9();
|
|
920
920
|
};
|
|
921
|
-
protoOf(resolveChallengeJs$lambda$slambda).
|
|
922
|
-
return this.
|
|
921
|
+
protoOf(resolveChallengeJs$lambda$slambda).ha = function (p1, $completion) {
|
|
922
|
+
return this.o20((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
923
923
|
};
|
|
924
|
-
protoOf(resolveChallengeJs$lambda$slambda).
|
|
925
|
-
var suspendResult = this.
|
|
924
|
+
protoOf(resolveChallengeJs$lambda$slambda).t9 = function () {
|
|
925
|
+
var suspendResult = this.n9_1;
|
|
926
926
|
$sm: do
|
|
927
927
|
try {
|
|
928
|
-
var tmp = this.
|
|
928
|
+
var tmp = this.l9_1;
|
|
929
929
|
switch (tmp) {
|
|
930
930
|
case 0:
|
|
931
|
-
this.
|
|
932
|
-
this.
|
|
933
|
-
var tmp_0 = toConfig(this.
|
|
934
|
-
var tmp0_safe_receiver = this.
|
|
931
|
+
this.m9_1 = 2;
|
|
932
|
+
this.l9_1 = 1;
|
|
933
|
+
var tmp_0 = toConfig(this.g7h_1);
|
|
934
|
+
var tmp0_safe_receiver = this.i7h_1;
|
|
935
935
|
var tmp_1;
|
|
936
936
|
if (tmp0_safe_receiver == null) {
|
|
937
937
|
tmp_1 = null;
|
|
@@ -940,7 +940,7 @@ protoOf(resolveChallengeJs$lambda$slambda).s9 = function () {
|
|
|
940
940
|
}
|
|
941
941
|
|
|
942
942
|
var tmp1_elvis_lhs = tmp_1;
|
|
943
|
-
suspendResult = resolveChallenge(tmp_0, this.
|
|
943
|
+
suspendResult = resolveChallenge(tmp_0, this.h7h_1, tmp1_elvis_lhs == null ? get_defaultCryptoService() : tmp1_elvis_lhs, this.j7h_1, this);
|
|
944
944
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
945
945
|
return suspendResult;
|
|
946
946
|
}
|
|
@@ -949,31 +949,31 @@ protoOf(resolveChallengeJs$lambda$slambda).s9 = function () {
|
|
|
949
949
|
case 1:
|
|
950
950
|
var ARGUMENT = suspendResult;
|
|
951
951
|
var ARGUMENT_0 = toSolutionJs(ARGUMENT);
|
|
952
|
-
this.
|
|
952
|
+
this.f7h_1(ARGUMENT_0);
|
|
953
953
|
return Unit_instance;
|
|
954
954
|
case 2:
|
|
955
|
-
throw this.
|
|
955
|
+
throw this.o9_1;
|
|
956
956
|
}
|
|
957
957
|
} catch ($p) {
|
|
958
958
|
var e = $p;
|
|
959
|
-
if (this.
|
|
959
|
+
if (this.m9_1 === 2) {
|
|
960
960
|
throw e;
|
|
961
961
|
} else {
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
962
|
+
this.l9_1 = this.m9_1;
|
|
963
|
+
this.o9_1 = e;
|
|
964
964
|
}
|
|
965
965
|
}
|
|
966
966
|
while (true);
|
|
967
967
|
};
|
|
968
|
-
protoOf(resolveChallengeJs$lambda$slambda).
|
|
969
|
-
var i = new resolveChallengeJs$lambda$slambda(this.g7h_1, this.h7h_1, this.i7h_1, this.j7h_1,
|
|
970
|
-
i.
|
|
968
|
+
protoOf(resolveChallengeJs$lambda$slambda).p20 = function ($this$launch, completion) {
|
|
969
|
+
var i = new resolveChallengeJs$lambda$slambda(this.f7h_1, this.g7h_1, this.h7h_1, this.i7h_1, this.j7h_1, completion);
|
|
970
|
+
i.k7h_1 = $this$launch;
|
|
971
971
|
return i;
|
|
972
972
|
};
|
|
973
973
|
function resolveChallengeJs$lambda$slambda_0($resolve, $config, $serializedInput, $cryptoService, $onProgress, resultContinuation) {
|
|
974
974
|
var i = new resolveChallengeJs$lambda$slambda($resolve, $config, $serializedInput, $cryptoService, $onProgress, resultContinuation);
|
|
975
975
|
var l = function ($this$launch, $completion) {
|
|
976
|
-
return i.
|
|
976
|
+
return i.o20($this$launch, $completion);
|
|
977
977
|
};
|
|
978
978
|
l.$arity = 1;
|
|
979
979
|
return l;
|
|
@@ -986,34 +986,34 @@ function resolveChallengeJs$lambda_0($config, $serializedInput, $cryptoService,
|
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
988
|
function validateSolutionJs$lambda$slambda($resolve, $config, $result, $serializedInput, $cryptoService, resultContinuation) {
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
993
|
-
this.
|
|
989
|
+
this.t7h_1 = $resolve;
|
|
990
|
+
this.u7h_1 = $config;
|
|
991
|
+
this.v7h_1 = $result;
|
|
992
|
+
this.w7h_1 = $serializedInput;
|
|
993
|
+
this.x7h_1 = $cryptoService;
|
|
994
994
|
CoroutineImpl.call(this, resultContinuation);
|
|
995
995
|
}
|
|
996
|
-
protoOf(validateSolutionJs$lambda$slambda).
|
|
997
|
-
var tmp = this.
|
|
998
|
-
tmp.
|
|
999
|
-
tmp.
|
|
1000
|
-
return tmp.
|
|
996
|
+
protoOf(validateSolutionJs$lambda$slambda).o20 = function ($this$launch, $completion) {
|
|
997
|
+
var tmp = this.p20($this$launch, $completion);
|
|
998
|
+
tmp.n9_1 = Unit_instance;
|
|
999
|
+
tmp.o9_1 = null;
|
|
1000
|
+
return tmp.t9();
|
|
1001
1001
|
};
|
|
1002
|
-
protoOf(validateSolutionJs$lambda$slambda).
|
|
1003
|
-
return this.
|
|
1002
|
+
protoOf(validateSolutionJs$lambda$slambda).ha = function (p1, $completion) {
|
|
1003
|
+
return this.o20((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
1004
1004
|
};
|
|
1005
|
-
protoOf(validateSolutionJs$lambda$slambda).
|
|
1006
|
-
var suspendResult = this.
|
|
1005
|
+
protoOf(validateSolutionJs$lambda$slambda).t9 = function () {
|
|
1006
|
+
var suspendResult = this.n9_1;
|
|
1007
1007
|
$sm: do
|
|
1008
1008
|
try {
|
|
1009
|
-
var tmp = this.
|
|
1009
|
+
var tmp = this.l9_1;
|
|
1010
1010
|
switch (tmp) {
|
|
1011
1011
|
case 0:
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1014
|
-
var tmp_0 = toConfig(this.
|
|
1015
|
-
var tmp_1 = toSolution(this.
|
|
1016
|
-
var tmp0_safe_receiver = this.
|
|
1012
|
+
this.m9_1 = 2;
|
|
1013
|
+
this.l9_1 = 1;
|
|
1014
|
+
var tmp_0 = toConfig(this.u7h_1);
|
|
1015
|
+
var tmp_1 = toSolution(this.v7h_1);
|
|
1016
|
+
var tmp0_safe_receiver = this.x7h_1;
|
|
1017
1017
|
var tmp_2;
|
|
1018
1018
|
if (tmp0_safe_receiver == null) {
|
|
1019
1019
|
tmp_2 = null;
|
|
@@ -1022,7 +1022,7 @@ protoOf(validateSolutionJs$lambda$slambda).s9 = function () {
|
|
|
1022
1022
|
}
|
|
1023
1023
|
|
|
1024
1024
|
var tmp1_elvis_lhs = tmp_2;
|
|
1025
|
-
suspendResult = validateSolution(tmp_0, tmp_1, this.
|
|
1025
|
+
suspendResult = validateSolution(tmp_0, tmp_1, this.w7h_1, tmp1_elvis_lhs == null ? get_defaultCryptoService() : tmp1_elvis_lhs, this);
|
|
1026
1026
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1027
1027
|
return suspendResult;
|
|
1028
1028
|
}
|
|
@@ -1030,31 +1030,31 @@ protoOf(validateSolutionJs$lambda$slambda).s9 = function () {
|
|
|
1030
1030
|
continue $sm;
|
|
1031
1031
|
case 1:
|
|
1032
1032
|
var ARGUMENT = suspendResult;
|
|
1033
|
-
this.
|
|
1033
|
+
this.t7h_1(ARGUMENT);
|
|
1034
1034
|
return Unit_instance;
|
|
1035
1035
|
case 2:
|
|
1036
|
-
throw this.
|
|
1036
|
+
throw this.o9_1;
|
|
1037
1037
|
}
|
|
1038
1038
|
} catch ($p) {
|
|
1039
1039
|
var e = $p;
|
|
1040
|
-
if (this.
|
|
1040
|
+
if (this.m9_1 === 2) {
|
|
1041
1041
|
throw e;
|
|
1042
1042
|
} else {
|
|
1043
|
-
this.
|
|
1044
|
-
this.
|
|
1043
|
+
this.l9_1 = this.m9_1;
|
|
1044
|
+
this.o9_1 = e;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
while (true);
|
|
1048
1048
|
};
|
|
1049
|
-
protoOf(validateSolutionJs$lambda$slambda).
|
|
1050
|
-
var i = new validateSolutionJs$lambda$slambda(this.u7h_1, this.v7h_1, this.w7h_1, this.x7h_1,
|
|
1051
|
-
i.
|
|
1049
|
+
protoOf(validateSolutionJs$lambda$slambda).p20 = function ($this$launch, completion) {
|
|
1050
|
+
var i = new validateSolutionJs$lambda$slambda(this.t7h_1, this.u7h_1, this.v7h_1, this.w7h_1, this.x7h_1, completion);
|
|
1051
|
+
i.y7h_1 = $this$launch;
|
|
1052
1052
|
return i;
|
|
1053
1053
|
};
|
|
1054
1054
|
function validateSolutionJs$lambda$slambda_0($resolve, $config, $result, $serializedInput, $cryptoService, resultContinuation) {
|
|
1055
1055
|
var i = new validateSolutionJs$lambda$slambda($resolve, $config, $result, $serializedInput, $cryptoService, resultContinuation);
|
|
1056
1056
|
var l = function ($this$launch, $completion) {
|
|
1057
|
-
return i.
|
|
1057
|
+
return i.o20($this$launch, $completion);
|
|
1058
1058
|
};
|
|
1059
1059
|
l.$arity = 1;
|
|
1060
1060
|
return l;
|
|
@@ -1067,9 +1067,9 @@ function validateSolutionJs$lambda($config, $result, $serializedInput, $cryptoSe
|
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
1069
|
//region block: post-declaration
|
|
1070
|
-
protoOf($serializer).
|
|
1071
|
-
protoOf($serializer_0).
|
|
1072
|
-
protoOf($serializer_1).
|
|
1070
|
+
protoOf($serializer).g2e = typeParametersSerializers;
|
|
1071
|
+
protoOf($serializer_0).g2e = typeParametersSerializers;
|
|
1072
|
+
protoOf($serializer_1).g2e = typeParametersSerializers;
|
|
1073
1073
|
//endregion
|
|
1074
1074
|
//region block: init
|
|
1075
1075
|
Companion_instance_1 = new Companion_1();
|
|
@@ -1082,6 +1082,6 @@ export {
|
|
|
1082
1082
|
export {
|
|
1083
1083
|
Challenge as Challenge4lodadd2dc9x,
|
|
1084
1084
|
Solution as Solution3a9kygahi3ko,
|
|
1085
|
-
resolveChallenge as
|
|
1085
|
+
resolveChallenge as resolveChallenge3glxc82x05tnk,
|
|
1086
1086
|
};
|
|
1087
1087
|
//endregion
|