@solibo/solibo-sdk 1.61.3 → 1.62.0
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/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- package/ktor-ktor-websockets/io/ktor/websocket/WebSocketChannelsConfig.mjs +2 -2
- package/package.json +1 -1
- package/solibo-cycles/kotlinx-coroutines-core-18.mjs +1 -1
- package/solibo-cycles/solibo-sdk-sdk-core-55.mjs +9575 -821
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/DeviceClient.mjs +2 -215
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/HomeApiBase.mjs +1 -1
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/client/apis/AppStoresApi.mjs +2 -229
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/client/apis/AuthApi.mjs +2 -6601
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/client/apis/LanguageApi.mjs +2 -434
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/client/apis/UnsubscribeApi.mjs +2 -395
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/api/gen/infrastructure/HttpResponse.mjs +2 -1088
- package/solibo-sdk-sdk-core/no/solibo/oss/sdk/telemetry/SoliboOpenTelemetry.mjs +1 -1
|
@@ -1,1088 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { protoOf180f3jzyo7rfj as protoOf } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
4
|
-
import {
|
|
5
|
-
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
6
|
-
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
7
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
8
|
-
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
9
|
-
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
10
|
-
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
11
|
-
import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
|
|
12
|
-
import {
|
|
13
|
-
await3n7kedgocftsv as await_0,
|
|
14
|
-
promisify1z0ncraq1ipzh as promisify,
|
|
15
|
-
} from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
16
|
-
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
17
|
-
import { isSuccess1pokn37fdu56v as isSuccess } from '../../../../../../../../ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs';
|
|
18
|
-
import { jsIsFunction2h24qpa0gp5p3 as jsIsFunction } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/typeCheckUtils.mjs';
|
|
19
|
-
import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
|
|
20
|
-
import {
|
|
21
|
-
Base64ByteArray15zeye4j39p4v as Base64ByteArray,
|
|
22
|
-
Companion_getInstance18nqkl6o1avw3 as Companion_getInstance,
|
|
23
|
-
} from './Base64ByteArray.mjs';
|
|
24
|
-
import { constructCallableReference23y65rf941mch as constructCallableReference } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/js/reflectRuntime.mjs';
|
|
25
|
-
import {
|
|
26
|
-
OctetByteArray3ivq1lh0sblw9 as OctetByteArray,
|
|
27
|
-
Companion_getInstance2ecf0p2a51v12 as Companion_getInstance_0,
|
|
28
|
-
} from './OctetByteArray.mjs';
|
|
29
|
-
import { getKClass3t8tygqu4lcxf as getKClass } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/reflect/js/internal/reflection.mjs';
|
|
30
|
-
import { readRawBytesfstflas0z5ue as readRawBytes } from '../../../../../../../../ktor-ktor-client-core/io/ktor/client/statement/Readers.mjs';
|
|
31
|
-
import { contentType317fn4f991q9a as contentType } from '../../../../../../../../ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs';
|
|
32
|
-
import { Application_getInstance3vhi2qmce4cj0 as Application_getInstance } from '../../../../../../../../ktor-ktor-http/io/ktor/http/ContentTypes.mjs';
|
|
33
|
-
import { endsWith3cq61xxngobwh as endsWith } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs';
|
|
34
|
-
import { Default_getInstancevb13yk0g3h3e as Default_getInstance } from '../../../../../../../../kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs';
|
|
35
|
-
import { decodeToString1x4faah2liw2p as decodeToString } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs';
|
|
36
|
-
import { IllegalArgumentException2asla15b5jaob as IllegalArgumentException } from '../../../../../../../../kotlin-kotlin-stdlib/kotlin/exceptions.mjs';
|
|
37
|
-
import { __soliboBoundaryState, __soliboPatchField, __soliboRegisterLookup, __soliboRegisterOwnFields, __soliboToJs, __soliboToKt, __soliboWrapAccessor, __soliboWrapFunction, __soliboWrapMethod } from '../../../../../../../../solibo-boundary.mjs';
|
|
38
|
-
//region block: imports
|
|
39
|
-
//endregion
|
|
40
|
-
//region block: pre-declaration
|
|
41
|
-
//endregion
|
|
42
|
-
function mapEntries($this, $receiver) {
|
|
43
|
-
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
44
|
-
var result = LinkedHashMap_init_$Create$();
|
|
45
|
-
// Inline function 'kotlin.collections.forEach' call
|
|
46
|
-
var _iterator__ex2g4s = $receiver.entries_qbkxv4_k$().iterator_jk1svi_k$();
|
|
47
|
-
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
48
|
-
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
49
|
-
var tmp2 = element.get_key_18j28a_k$();
|
|
50
|
-
// Inline function 'kotlin.collections.set' call
|
|
51
|
-
var value = element.get_value_j01efc_k$();
|
|
52
|
-
result.put_4fpzoq_k$(tmp2, value);
|
|
53
|
-
}
|
|
54
|
-
return result;
|
|
55
|
-
}
|
|
56
|
-
var CompanionClass;
|
|
57
|
-
function Companion() {
|
|
58
|
-
if (CompanionClass === VOID) {
|
|
59
|
-
initMetadataForCompanion($);
|
|
60
|
-
function $() {
|
|
61
|
-
}
|
|
62
|
-
CompanionClass = $;
|
|
63
|
-
}
|
|
64
|
-
return CompanionClass;
|
|
65
|
-
}
|
|
66
|
-
var Companion_instance;
|
|
67
|
-
function Companion_getInstance_1() {
|
|
68
|
-
return Companion_instance;
|
|
69
|
-
}
|
|
70
|
-
var $body$suspendBridgeCOROUTINE$Class;
|
|
71
|
-
function $body$suspendBridgeCOROUTINE$() {
|
|
72
|
-
if ($body$suspendBridgeCOROUTINE$Class === VOID) {
|
|
73
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
74
|
-
function $(_this__u8e3s4, resultContinuation) {
|
|
75
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
76
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
77
|
-
}
|
|
78
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
79
|
-
var suspendResult = this.result_1;
|
|
80
|
-
$sm: do
|
|
81
|
-
try {
|
|
82
|
-
var tmp = this.state_1;
|
|
83
|
-
switch (tmp) {
|
|
84
|
-
case 0:
|
|
85
|
-
this.exceptionState_1 = 4;
|
|
86
|
-
if (this._this__u8e3s4__1.body === protoOf(HttpResponse()).body) {
|
|
87
|
-
this.state_1 = 2;
|
|
88
|
-
suspendResult = this._this__u8e3s4__1.body_7onco9_k$(this);
|
|
89
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
90
|
-
return suspendResult;
|
|
91
|
-
}
|
|
92
|
-
continue $sm;
|
|
93
|
-
} else {
|
|
94
|
-
this.state_1 = 1;
|
|
95
|
-
suspendResult = await_0(this._this__u8e3s4__1.body(), this);
|
|
96
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
97
|
-
return suspendResult;
|
|
98
|
-
}
|
|
99
|
-
continue $sm;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
case 1:
|
|
103
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
104
|
-
this.state_1 = 3;
|
|
105
|
-
continue $sm;
|
|
106
|
-
case 2:
|
|
107
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
108
|
-
this.state_1 = 3;
|
|
109
|
-
continue $sm;
|
|
110
|
-
case 3:
|
|
111
|
-
return this.WHEN_RESULT0__1;
|
|
112
|
-
case 4:
|
|
113
|
-
throw this.exception_1;
|
|
114
|
-
}
|
|
115
|
-
} catch ($p) {
|
|
116
|
-
var e = $p;
|
|
117
|
-
if (this.exceptionState_1 === 4) {
|
|
118
|
-
throw e;
|
|
119
|
-
} else {
|
|
120
|
-
this.state_1 = this.exceptionState_1;
|
|
121
|
-
this.exception_1 = e;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
while (true);
|
|
125
|
-
};
|
|
126
|
-
$body$suspendBridgeCOROUTINE$Class = $;
|
|
127
|
-
}
|
|
128
|
-
return $body$suspendBridgeCOROUTINE$Class;
|
|
129
|
-
}
|
|
130
|
-
var $typedBody$suspendBridgeCOROUTINE$Class;
|
|
131
|
-
function $typedBody$suspendBridgeCOROUTINE$() {
|
|
132
|
-
if ($typedBody$suspendBridgeCOROUTINE$Class === VOID) {
|
|
133
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
134
|
-
function $(_this__u8e3s4, type, resultContinuation) {
|
|
135
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
136
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
137
|
-
this.type_1 = type;
|
|
138
|
-
}
|
|
139
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
140
|
-
var suspendResult = this.result_1;
|
|
141
|
-
$sm: do
|
|
142
|
-
try {
|
|
143
|
-
var tmp = this.state_1;
|
|
144
|
-
switch (tmp) {
|
|
145
|
-
case 0:
|
|
146
|
-
this.exceptionState_1 = 4;
|
|
147
|
-
if (this._this__u8e3s4__1.typedBody === protoOf(HttpResponse()).typedBody) {
|
|
148
|
-
this.state_1 = 2;
|
|
149
|
-
suspendResult = this._this__u8e3s4__1.typedBody_o931n5_k$(this.type_1, this);
|
|
150
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
151
|
-
return suspendResult;
|
|
152
|
-
}
|
|
153
|
-
continue $sm;
|
|
154
|
-
} else {
|
|
155
|
-
this.state_1 = 1;
|
|
156
|
-
suspendResult = await_0(this._this__u8e3s4__1.typedBody(this.type_1), this);
|
|
157
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
158
|
-
return suspendResult;
|
|
159
|
-
}
|
|
160
|
-
continue $sm;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
case 1:
|
|
164
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
165
|
-
this.state_1 = 3;
|
|
166
|
-
continue $sm;
|
|
167
|
-
case 2:
|
|
168
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
169
|
-
this.state_1 = 3;
|
|
170
|
-
continue $sm;
|
|
171
|
-
case 3:
|
|
172
|
-
return this.WHEN_RESULT0__1;
|
|
173
|
-
case 4:
|
|
174
|
-
throw this.exception_1;
|
|
175
|
-
}
|
|
176
|
-
} catch ($p) {
|
|
177
|
-
var e = $p;
|
|
178
|
-
if (this.exceptionState_1 === 4) {
|
|
179
|
-
throw e;
|
|
180
|
-
} else {
|
|
181
|
-
this.state_1 = this.exceptionState_1;
|
|
182
|
-
this.exception_1 = e;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
while (true);
|
|
186
|
-
};
|
|
187
|
-
$typedBody$suspendBridgeCOROUTINE$Class = $;
|
|
188
|
-
}
|
|
189
|
-
return $typedBody$suspendBridgeCOROUTINE$Class;
|
|
190
|
-
}
|
|
191
|
-
var HttpResponseClass;
|
|
192
|
-
function HttpResponse() {
|
|
193
|
-
if (HttpResponseClass === VOID) {
|
|
194
|
-
initMetadataForClass($, 'HttpResponse', VOID, VOID, VOID, [0, 1]);
|
|
195
|
-
function $(response, provider) {
|
|
196
|
-
var __soliboProps = arguments.length === 1 && typeof response === 'object' && response !== null && response.constructor === Object;
|
|
197
|
-
var __soliboTmp, __soliboConverted = false;
|
|
198
|
-
if (__soliboProps) {
|
|
199
|
-
const props = response;
|
|
200
|
-
response = ('response' in props ? props.response : VOID);
|
|
201
|
-
provider = ('provider' in props ? props.provider : VOID);
|
|
202
|
-
}
|
|
203
|
-
this.response = response;
|
|
204
|
-
this.provider = provider;
|
|
205
|
-
this.status = this.response.get_status_jnf6d7_k$().value_1;
|
|
206
|
-
this.success = isSuccess(this.response.get_status_jnf6d7_k$());
|
|
207
|
-
this.headers = mapEntries(Companion_instance, this.response.get_headers_ef25jx_k$());
|
|
208
|
-
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
209
|
-
}
|
|
210
|
-
protoOf($).get_response_xlk07e_k$ = function () {
|
|
211
|
-
return this.response;
|
|
212
|
-
};
|
|
213
|
-
protoOf($).get_provider_mw8vcq_k$ = function () {
|
|
214
|
-
return this.provider;
|
|
215
|
-
};
|
|
216
|
-
protoOf($).get_status_jnf6d7_k$ = function () {
|
|
217
|
-
return this.status;
|
|
218
|
-
};
|
|
219
|
-
protoOf($).get_success_tm3zdy_k$ = function () {
|
|
220
|
-
return this.success;
|
|
221
|
-
};
|
|
222
|
-
protoOf($).get_headers_ef25jx_k$ = function () {
|
|
223
|
-
return this.headers;
|
|
224
|
-
};
|
|
225
|
-
protoOf($).body_7onco9_k$ = function ($completion) {
|
|
226
|
-
return body$virtualSuspendBridge(this.provider, this.response, $completion);
|
|
227
|
-
};
|
|
228
|
-
protoOf($).body = function () {
|
|
229
|
-
var tmp = this;
|
|
230
|
-
return promisify(function ($completion) {
|
|
231
|
-
return tmp.body_7onco9_k$($completion);
|
|
232
|
-
});
|
|
233
|
-
};
|
|
234
|
-
protoOf($).body$suspendBridge_a6dedm_k$ = function ($completion) {
|
|
235
|
-
var tmp = new ($body$suspendBridgeCOROUTINE$())(this, $completion);
|
|
236
|
-
tmp.result_1 = Unit_instance;
|
|
237
|
-
tmp.exception_1 = null;
|
|
238
|
-
return tmp.doResume_5yljmg_k$();
|
|
239
|
-
};
|
|
240
|
-
protoOf($).typedBody_o931n5_k$ = function (type, $completion) {
|
|
241
|
-
return typedBody$virtualSuspendBridge(this.provider, this.response, type, $completion);
|
|
242
|
-
};
|
|
243
|
-
protoOf($).typedBody = function (type) {
|
|
244
|
-
var tmp = this;
|
|
245
|
-
return promisify(function ($completion) {
|
|
246
|
-
return tmp.typedBody_o931n5_k$(type, $completion);
|
|
247
|
-
});
|
|
248
|
-
};
|
|
249
|
-
protoOf($).typedBody$suspendBridge_6mr5w0_k$ = function (type, $completion) {
|
|
250
|
-
var tmp = new ($typedBody$suspendBridgeCOROUTINE$())(this, type, $completion);
|
|
251
|
-
tmp.result_1 = Unit_instance;
|
|
252
|
-
tmp.exception_1 = null;
|
|
253
|
-
return tmp.doResume_5yljmg_k$();
|
|
254
|
-
};
|
|
255
|
-
/* Solibo boundary patches */
|
|
256
|
-
Object.defineProperty($, 'name', { value: "HttpResponse", configurable: true });
|
|
257
|
-
__soliboRegisterOwnFields($, {"headers":["map",null,["list",null]]});
|
|
258
|
-
__soliboWrapMethod($, "body", {"result":true});
|
|
259
|
-
__soliboWrapMethod($, "typedBody", {"result":true});
|
|
260
|
-
__soliboRegisterLookup("HttpResponse", () => $);
|
|
261
|
-
HttpResponseClass = $;
|
|
262
|
-
}
|
|
263
|
-
return HttpResponseClass;
|
|
264
|
-
}
|
|
265
|
-
function body$virtualSuspendBridge($this, response, $completion) {
|
|
266
|
-
var tmp = new ($body$virtualSuspendBridgeCOROUTINE$())($this, response, $completion);
|
|
267
|
-
tmp.result_1 = Unit_instance;
|
|
268
|
-
tmp.exception_1 = null;
|
|
269
|
-
return tmp.doResume_5yljmg_k$();
|
|
270
|
-
}
|
|
271
|
-
function typedBody$virtualSuspendBridge($this, response, type, $completion) {
|
|
272
|
-
var tmp = new ($typedBody$virtualSuspendBridgeCOROUTINE$())($this, response, type, $completion);
|
|
273
|
-
tmp.result_1 = Unit_instance;
|
|
274
|
-
tmp.exception_1 = null;
|
|
275
|
-
return tmp.doResume_5yljmg_k$();
|
|
276
|
-
}
|
|
277
|
-
var $body$virtualSuspendBridgeCOROUTINE$Class;
|
|
278
|
-
function $body$virtualSuspendBridgeCOROUTINE$() {
|
|
279
|
-
if ($body$virtualSuspendBridgeCOROUTINE$Class === VOID) {
|
|
280
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
281
|
-
function $($this, response, resultContinuation) {
|
|
282
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
283
|
-
this.$this_1 = $this;
|
|
284
|
-
this.response_1 = response;
|
|
285
|
-
}
|
|
286
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
287
|
-
var suspendResult = this.result_1;
|
|
288
|
-
$sm: do
|
|
289
|
-
try {
|
|
290
|
-
var tmp = this.state_1;
|
|
291
|
-
switch (tmp) {
|
|
292
|
-
case 0:
|
|
293
|
-
this.exceptionState_1 = 4;
|
|
294
|
-
if (jsIsFunction(this.$this_1.body$suspendBridge_wsw80i_k$)) {
|
|
295
|
-
this.state_1 = 2;
|
|
296
|
-
suspendResult = this.$this_1.body$suspendBridge_wsw80i_k$(this.response_1, this);
|
|
297
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
298
|
-
return suspendResult;
|
|
299
|
-
}
|
|
300
|
-
continue $sm;
|
|
301
|
-
} else {
|
|
302
|
-
this.state_1 = 1;
|
|
303
|
-
suspendResult = await_0(this.$this_1.body(this.response_1), this);
|
|
304
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
305
|
-
return suspendResult;
|
|
306
|
-
}
|
|
307
|
-
continue $sm;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
case 1:
|
|
311
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
312
|
-
this.state_1 = 3;
|
|
313
|
-
continue $sm;
|
|
314
|
-
case 2:
|
|
315
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
316
|
-
this.state_1 = 3;
|
|
317
|
-
continue $sm;
|
|
318
|
-
case 3:
|
|
319
|
-
return this.WHEN_RESULT0__1;
|
|
320
|
-
case 4:
|
|
321
|
-
throw this.exception_1;
|
|
322
|
-
}
|
|
323
|
-
} catch ($p) {
|
|
324
|
-
var e = $p;
|
|
325
|
-
if (this.exceptionState_1 === 4) {
|
|
326
|
-
throw e;
|
|
327
|
-
} else {
|
|
328
|
-
this.state_1 = this.exceptionState_1;
|
|
329
|
-
this.exception_1 = e;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
while (true);
|
|
333
|
-
};
|
|
334
|
-
$body$virtualSuspendBridgeCOROUTINE$Class = $;
|
|
335
|
-
}
|
|
336
|
-
return $body$virtualSuspendBridgeCOROUTINE$Class;
|
|
337
|
-
}
|
|
338
|
-
var $typedBody$virtualSuspendBridgeCOROUTINE$Class;
|
|
339
|
-
function $typedBody$virtualSuspendBridgeCOROUTINE$() {
|
|
340
|
-
if ($typedBody$virtualSuspendBridgeCOROUTINE$Class === VOID) {
|
|
341
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
342
|
-
function $($this, response, type, resultContinuation) {
|
|
343
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
344
|
-
this.$this_1 = $this;
|
|
345
|
-
this.response_1 = response;
|
|
346
|
-
this.type_1 = type;
|
|
347
|
-
}
|
|
348
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
349
|
-
var suspendResult = this.result_1;
|
|
350
|
-
$sm: do
|
|
351
|
-
try {
|
|
352
|
-
var tmp = this.state_1;
|
|
353
|
-
switch (tmp) {
|
|
354
|
-
case 0:
|
|
355
|
-
this.exceptionState_1 = 4;
|
|
356
|
-
if (jsIsFunction(this.$this_1.typedBody$suspendBridge_eo3zso_k$)) {
|
|
357
|
-
this.state_1 = 2;
|
|
358
|
-
suspendResult = this.$this_1.typedBody$suspendBridge_eo3zso_k$(this.response_1, this.type_1, this);
|
|
359
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
360
|
-
return suspendResult;
|
|
361
|
-
}
|
|
362
|
-
continue $sm;
|
|
363
|
-
} else {
|
|
364
|
-
this.state_1 = 1;
|
|
365
|
-
suspendResult = await_0(this.$this_1.typedBody(this.response_1, this.type_1), this);
|
|
366
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
367
|
-
return suspendResult;
|
|
368
|
-
}
|
|
369
|
-
continue $sm;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
case 1:
|
|
373
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
374
|
-
this.state_1 = 3;
|
|
375
|
-
continue $sm;
|
|
376
|
-
case 2:
|
|
377
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
378
|
-
this.state_1 = 3;
|
|
379
|
-
continue $sm;
|
|
380
|
-
case 3:
|
|
381
|
-
return this.WHEN_RESULT0__1;
|
|
382
|
-
case 4:
|
|
383
|
-
throw this.exception_1;
|
|
384
|
-
}
|
|
385
|
-
} catch ($p) {
|
|
386
|
-
var e = $p;
|
|
387
|
-
if (this.exceptionState_1 === 4) {
|
|
388
|
-
throw e;
|
|
389
|
-
} else {
|
|
390
|
-
this.state_1 = this.exceptionState_1;
|
|
391
|
-
this.exception_1 = e;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
while (true);
|
|
395
|
-
};
|
|
396
|
-
$typedBody$virtualSuspendBridgeCOROUTINE$Class = $;
|
|
397
|
-
}
|
|
398
|
-
return $typedBody$virtualSuspendBridgeCOROUTINE$Class;
|
|
399
|
-
}
|
|
400
|
-
function body$suspendBridge(response, $completion) {
|
|
401
|
-
}
|
|
402
|
-
function typedBody$suspendBridge(response, type, $completion) {
|
|
403
|
-
}
|
|
404
|
-
var BodyProviderClass;
|
|
405
|
-
function BodyProvider() {
|
|
406
|
-
if (BodyProviderClass === VOID) {
|
|
407
|
-
initMetadataForInterface($, 'BodyProvider', VOID, VOID, VOID, [1, 2, 3]);
|
|
408
|
-
function $() {
|
|
409
|
-
}
|
|
410
|
-
BodyProviderClass = $;
|
|
411
|
-
}
|
|
412
|
-
return BodyProviderClass;
|
|
413
|
-
}
|
|
414
|
-
var $bodyCOROUTINE$Class;
|
|
415
|
-
function $bodyCOROUTINE$() {
|
|
416
|
-
if ($bodyCOROUTINE$Class === VOID) {
|
|
417
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
418
|
-
function $(_this__u8e3s4, response, resultContinuation) {
|
|
419
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
420
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
421
|
-
this.response_1 = response;
|
|
422
|
-
}
|
|
423
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
424
|
-
var suspendResult = this.result_1;
|
|
425
|
-
$sm: do
|
|
426
|
-
try {
|
|
427
|
-
var tmp = this.state_1;
|
|
428
|
-
switch (tmp) {
|
|
429
|
-
case 0:
|
|
430
|
-
this.exceptionState_1 = 2;
|
|
431
|
-
this.state_1 = 1;
|
|
432
|
-
suspendResult = decodeBody(this.response_1, this._this__u8e3s4__1.type_1, this);
|
|
433
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
434
|
-
return suspendResult;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
continue $sm;
|
|
438
|
-
case 1:
|
|
439
|
-
return !(suspendResult == null) ? suspendResult : THROW_CCE();
|
|
440
|
-
case 2:
|
|
441
|
-
throw this.exception_1;
|
|
442
|
-
}
|
|
443
|
-
} catch ($p) {
|
|
444
|
-
var e = $p;
|
|
445
|
-
if (this.exceptionState_1 === 2) {
|
|
446
|
-
throw e;
|
|
447
|
-
} else {
|
|
448
|
-
this.state_1 = this.exceptionState_1;
|
|
449
|
-
this.exception_1 = e;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
while (true);
|
|
453
|
-
};
|
|
454
|
-
$bodyCOROUTINE$Class = $;
|
|
455
|
-
}
|
|
456
|
-
return $bodyCOROUTINE$Class;
|
|
457
|
-
}
|
|
458
|
-
var $body$suspendBridgeCOROUTINE$Class_0;
|
|
459
|
-
function $body$suspendBridgeCOROUTINE$_0() {
|
|
460
|
-
if ($body$suspendBridgeCOROUTINE$Class_0 === VOID) {
|
|
461
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
462
|
-
function $(_this__u8e3s4, response, resultContinuation) {
|
|
463
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
464
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
465
|
-
this.response_1 = response;
|
|
466
|
-
}
|
|
467
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
468
|
-
var suspendResult = this.result_1;
|
|
469
|
-
$sm: do
|
|
470
|
-
try {
|
|
471
|
-
var tmp = this.state_1;
|
|
472
|
-
switch (tmp) {
|
|
473
|
-
case 0:
|
|
474
|
-
this.exceptionState_1 = 4;
|
|
475
|
-
if (this._this__u8e3s4__1.body === protoOf(TypedBodyProvider()).body) {
|
|
476
|
-
this.state_1 = 2;
|
|
477
|
-
suspendResult = this._this__u8e3s4__1.body_a5jyb5_k$(this.response_1, this);
|
|
478
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
479
|
-
return suspendResult;
|
|
480
|
-
}
|
|
481
|
-
continue $sm;
|
|
482
|
-
} else {
|
|
483
|
-
this.state_1 = 1;
|
|
484
|
-
suspendResult = await_0(this._this__u8e3s4__1.body(this.response_1), this);
|
|
485
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
486
|
-
return suspendResult;
|
|
487
|
-
}
|
|
488
|
-
continue $sm;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
case 1:
|
|
492
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
493
|
-
this.state_1 = 3;
|
|
494
|
-
continue $sm;
|
|
495
|
-
case 2:
|
|
496
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
497
|
-
this.state_1 = 3;
|
|
498
|
-
continue $sm;
|
|
499
|
-
case 3:
|
|
500
|
-
return this.WHEN_RESULT0__1;
|
|
501
|
-
case 4:
|
|
502
|
-
throw this.exception_1;
|
|
503
|
-
}
|
|
504
|
-
} catch ($p) {
|
|
505
|
-
var e = $p;
|
|
506
|
-
if (this.exceptionState_1 === 4) {
|
|
507
|
-
throw e;
|
|
508
|
-
} else {
|
|
509
|
-
this.state_1 = this.exceptionState_1;
|
|
510
|
-
this.exception_1 = e;
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
while (true);
|
|
514
|
-
};
|
|
515
|
-
$body$suspendBridgeCOROUTINE$Class_0 = $;
|
|
516
|
-
}
|
|
517
|
-
return $body$suspendBridgeCOROUTINE$Class_0;
|
|
518
|
-
}
|
|
519
|
-
var $typedBodyCOROUTINE$Class;
|
|
520
|
-
function $typedBodyCOROUTINE$() {
|
|
521
|
-
if ($typedBodyCOROUTINE$Class === VOID) {
|
|
522
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
523
|
-
function $(_this__u8e3s4, response, type, resultContinuation) {
|
|
524
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
525
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
526
|
-
this.response_1 = response;
|
|
527
|
-
this.type_1 = type;
|
|
528
|
-
}
|
|
529
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
530
|
-
var suspendResult = this.result_1;
|
|
531
|
-
$sm: do
|
|
532
|
-
try {
|
|
533
|
-
var tmp = this.state_1;
|
|
534
|
-
switch (tmp) {
|
|
535
|
-
case 0:
|
|
536
|
-
this.exceptionState_1 = 2;
|
|
537
|
-
this.state_1 = 1;
|
|
538
|
-
suspendResult = decodeBody(this.response_1, this.type_1, this);
|
|
539
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
540
|
-
return suspendResult;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
continue $sm;
|
|
544
|
-
case 1:
|
|
545
|
-
return !(suspendResult == null) ? suspendResult : THROW_CCE();
|
|
546
|
-
case 2:
|
|
547
|
-
throw this.exception_1;
|
|
548
|
-
}
|
|
549
|
-
} catch ($p) {
|
|
550
|
-
var e = $p;
|
|
551
|
-
if (this.exceptionState_1 === 2) {
|
|
552
|
-
throw e;
|
|
553
|
-
} else {
|
|
554
|
-
this.state_1 = this.exceptionState_1;
|
|
555
|
-
this.exception_1 = e;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
while (true);
|
|
559
|
-
};
|
|
560
|
-
$typedBodyCOROUTINE$Class = $;
|
|
561
|
-
}
|
|
562
|
-
return $typedBodyCOROUTINE$Class;
|
|
563
|
-
}
|
|
564
|
-
var $typedBody$suspendBridgeCOROUTINE$Class_0;
|
|
565
|
-
function $typedBody$suspendBridgeCOROUTINE$_0() {
|
|
566
|
-
if ($typedBody$suspendBridgeCOROUTINE$Class_0 === VOID) {
|
|
567
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
568
|
-
function $(_this__u8e3s4, response, type, resultContinuation) {
|
|
569
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
570
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
571
|
-
this.response_1 = response;
|
|
572
|
-
this.type_1 = type;
|
|
573
|
-
}
|
|
574
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
575
|
-
var suspendResult = this.result_1;
|
|
576
|
-
$sm: do
|
|
577
|
-
try {
|
|
578
|
-
var tmp = this.state_1;
|
|
579
|
-
switch (tmp) {
|
|
580
|
-
case 0:
|
|
581
|
-
this.exceptionState_1 = 4;
|
|
582
|
-
if (this._this__u8e3s4__1.typedBody === protoOf(TypedBodyProvider()).typedBody) {
|
|
583
|
-
this.state_1 = 2;
|
|
584
|
-
suspendResult = this._this__u8e3s4__1.typedBody_4zdoqf_k$(this.response_1, this.type_1, this);
|
|
585
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
586
|
-
return suspendResult;
|
|
587
|
-
}
|
|
588
|
-
continue $sm;
|
|
589
|
-
} else {
|
|
590
|
-
this.state_1 = 1;
|
|
591
|
-
suspendResult = await_0(this._this__u8e3s4__1.typedBody(this.response_1, this.type_1), this);
|
|
592
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
593
|
-
return suspendResult;
|
|
594
|
-
}
|
|
595
|
-
continue $sm;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
case 1:
|
|
599
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
600
|
-
this.state_1 = 3;
|
|
601
|
-
continue $sm;
|
|
602
|
-
case 2:
|
|
603
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
604
|
-
this.state_1 = 3;
|
|
605
|
-
continue $sm;
|
|
606
|
-
case 3:
|
|
607
|
-
return this.WHEN_RESULT0__1;
|
|
608
|
-
case 4:
|
|
609
|
-
throw this.exception_1;
|
|
610
|
-
}
|
|
611
|
-
} catch ($p) {
|
|
612
|
-
var e = $p;
|
|
613
|
-
if (this.exceptionState_1 === 4) {
|
|
614
|
-
throw e;
|
|
615
|
-
} else {
|
|
616
|
-
this.state_1 = this.exceptionState_1;
|
|
617
|
-
this.exception_1 = e;
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
while (true);
|
|
621
|
-
};
|
|
622
|
-
$typedBody$suspendBridgeCOROUTINE$Class_0 = $;
|
|
623
|
-
}
|
|
624
|
-
return $typedBody$suspendBridgeCOROUTINE$Class_0;
|
|
625
|
-
}
|
|
626
|
-
var TypedBodyProviderClass;
|
|
627
|
-
function TypedBodyProvider() {
|
|
628
|
-
if (TypedBodyProviderClass === VOID) {
|
|
629
|
-
initMetadataForClass($, 'TypedBodyProvider', VOID, VOID, [BodyProvider()], [1, 2]);
|
|
630
|
-
function $(type) {
|
|
631
|
-
var __soliboProps = arguments.length === 1 && typeof type === 'object' && type !== null && type.constructor === Object;
|
|
632
|
-
var __soliboTmp, __soliboConverted = false;
|
|
633
|
-
if (__soliboProps) {
|
|
634
|
-
const props = type;
|
|
635
|
-
type = ('type' in props ? props.type : VOID);
|
|
636
|
-
}
|
|
637
|
-
this.type_1 = type;
|
|
638
|
-
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
639
|
-
}
|
|
640
|
-
protoOf($).body_a5jyb5_k$ = function (response, $completion) {
|
|
641
|
-
var tmp = new ($bodyCOROUTINE$())(this, response, $completion);
|
|
642
|
-
tmp.result_1 = Unit_instance;
|
|
643
|
-
tmp.exception_1 = null;
|
|
644
|
-
return tmp.doResume_5yljmg_k$();
|
|
645
|
-
};
|
|
646
|
-
protoOf($).body = function (response) {
|
|
647
|
-
var tmp = this;
|
|
648
|
-
return promisify(function ($completion) {
|
|
649
|
-
return tmp.body_a5jyb5_k$(response, $completion);
|
|
650
|
-
});
|
|
651
|
-
};
|
|
652
|
-
protoOf($).body$suspendBridge_wsw80i_k$ = function (response, $completion) {
|
|
653
|
-
var tmp = new ($body$suspendBridgeCOROUTINE$_0())(this, response, $completion);
|
|
654
|
-
tmp.result_1 = Unit_instance;
|
|
655
|
-
tmp.exception_1 = null;
|
|
656
|
-
return tmp.doResume_5yljmg_k$();
|
|
657
|
-
};
|
|
658
|
-
protoOf($).typedBody_4zdoqf_k$ = function (response, type, $completion) {
|
|
659
|
-
var tmp = new ($typedBodyCOROUTINE$())(this, response, type, $completion);
|
|
660
|
-
tmp.result_1 = Unit_instance;
|
|
661
|
-
tmp.exception_1 = null;
|
|
662
|
-
return tmp.doResume_5yljmg_k$();
|
|
663
|
-
};
|
|
664
|
-
protoOf($).typedBody = function (response, type) {
|
|
665
|
-
var tmp = this;
|
|
666
|
-
return promisify(function ($completion) {
|
|
667
|
-
return tmp.typedBody_4zdoqf_k$(response, type, $completion);
|
|
668
|
-
});
|
|
669
|
-
};
|
|
670
|
-
protoOf($).typedBody$suspendBridge_eo3zso_k$ = function (response, type, $completion) {
|
|
671
|
-
var tmp = new ($typedBody$suspendBridgeCOROUTINE$_0())(this, response, type, $completion);
|
|
672
|
-
tmp.result_1 = Unit_instance;
|
|
673
|
-
tmp.exception_1 = null;
|
|
674
|
-
return tmp.doResume_5yljmg_k$();
|
|
675
|
-
};
|
|
676
|
-
/* Solibo boundary patches */
|
|
677
|
-
Object.defineProperty($, 'name', { value: "TypedBodyProvider", configurable: true });
|
|
678
|
-
__soliboWrapMethod($, "body", {"result":true});
|
|
679
|
-
__soliboWrapMethod($, "typedBody", {"result":true});
|
|
680
|
-
__soliboRegisterLookup("TypedBodyProvider", () => $);
|
|
681
|
-
TypedBodyProviderClass = $;
|
|
682
|
-
}
|
|
683
|
-
return TypedBodyProviderClass;
|
|
684
|
-
}
|
|
685
|
-
var $bodyCOROUTINE$Class_0;
|
|
686
|
-
function $bodyCOROUTINE$_0() {
|
|
687
|
-
if ($bodyCOROUTINE$Class_0 === VOID) {
|
|
688
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
689
|
-
function $(_this__u8e3s4, response, resultContinuation) {
|
|
690
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
691
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
692
|
-
this.response_1 = response;
|
|
693
|
-
}
|
|
694
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
695
|
-
var suspendResult = this.result_1;
|
|
696
|
-
$sm: do
|
|
697
|
-
try {
|
|
698
|
-
var tmp = this.state_1;
|
|
699
|
-
switch (tmp) {
|
|
700
|
-
case 0:
|
|
701
|
-
this.exceptionState_1 = 2;
|
|
702
|
-
this.ARGUMENT0__1 = this._this__u8e3s4__1.block_1;
|
|
703
|
-
this.state_1 = 1;
|
|
704
|
-
suspendResult = body$virtualSuspendBridge(this._this__u8e3s4__1.provider_1, this.response_1, this);
|
|
705
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
706
|
-
return suspendResult;
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
continue $sm;
|
|
710
|
-
case 1:
|
|
711
|
-
var ARGUMENT = suspendResult;
|
|
712
|
-
return this.ARGUMENT0__1(ARGUMENT);
|
|
713
|
-
case 2:
|
|
714
|
-
throw this.exception_1;
|
|
715
|
-
}
|
|
716
|
-
} catch ($p) {
|
|
717
|
-
var e = $p;
|
|
718
|
-
if (this.exceptionState_1 === 2) {
|
|
719
|
-
throw e;
|
|
720
|
-
} else {
|
|
721
|
-
this.state_1 = this.exceptionState_1;
|
|
722
|
-
this.exception_1 = e;
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
while (true);
|
|
726
|
-
};
|
|
727
|
-
$bodyCOROUTINE$Class_0 = $;
|
|
728
|
-
}
|
|
729
|
-
return $bodyCOROUTINE$Class_0;
|
|
730
|
-
}
|
|
731
|
-
var $body$suspendBridgeCOROUTINE$Class_1;
|
|
732
|
-
function $body$suspendBridgeCOROUTINE$_1() {
|
|
733
|
-
if ($body$suspendBridgeCOROUTINE$Class_1 === VOID) {
|
|
734
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
735
|
-
function $(_this__u8e3s4, response, resultContinuation) {
|
|
736
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
737
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
738
|
-
this.response_1 = response;
|
|
739
|
-
}
|
|
740
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
741
|
-
var suspendResult = this.result_1;
|
|
742
|
-
$sm: do
|
|
743
|
-
try {
|
|
744
|
-
var tmp = this.state_1;
|
|
745
|
-
switch (tmp) {
|
|
746
|
-
case 0:
|
|
747
|
-
this.exceptionState_1 = 4;
|
|
748
|
-
if (this._this__u8e3s4__1.body === protoOf(MappedBodyProvider()).body) {
|
|
749
|
-
this.state_1 = 2;
|
|
750
|
-
suspendResult = this._this__u8e3s4__1.body_a5jyb5_k$(this.response_1, this);
|
|
751
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
752
|
-
return suspendResult;
|
|
753
|
-
}
|
|
754
|
-
continue $sm;
|
|
755
|
-
} else {
|
|
756
|
-
this.state_1 = 1;
|
|
757
|
-
suspendResult = await_0(this._this__u8e3s4__1.body(this.response_1), this);
|
|
758
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
759
|
-
return suspendResult;
|
|
760
|
-
}
|
|
761
|
-
continue $sm;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
case 1:
|
|
765
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
766
|
-
this.state_1 = 3;
|
|
767
|
-
continue $sm;
|
|
768
|
-
case 2:
|
|
769
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
770
|
-
this.state_1 = 3;
|
|
771
|
-
continue $sm;
|
|
772
|
-
case 3:
|
|
773
|
-
return this.WHEN_RESULT0__1;
|
|
774
|
-
case 4:
|
|
775
|
-
throw this.exception_1;
|
|
776
|
-
}
|
|
777
|
-
} catch ($p) {
|
|
778
|
-
var e = $p;
|
|
779
|
-
if (this.exceptionState_1 === 4) {
|
|
780
|
-
throw e;
|
|
781
|
-
} else {
|
|
782
|
-
this.state_1 = this.exceptionState_1;
|
|
783
|
-
this.exception_1 = e;
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
while (true);
|
|
787
|
-
};
|
|
788
|
-
$body$suspendBridgeCOROUTINE$Class_1 = $;
|
|
789
|
-
}
|
|
790
|
-
return $body$suspendBridgeCOROUTINE$Class_1;
|
|
791
|
-
}
|
|
792
|
-
var $typedBody$suspendBridgeCOROUTINE$Class_1;
|
|
793
|
-
function $typedBody$suspendBridgeCOROUTINE$_1() {
|
|
794
|
-
if ($typedBody$suspendBridgeCOROUTINE$Class_1 === VOID) {
|
|
795
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
796
|
-
function $(_this__u8e3s4, response, type, resultContinuation) {
|
|
797
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
798
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
799
|
-
this.response_1 = response;
|
|
800
|
-
this.type_1 = type;
|
|
801
|
-
}
|
|
802
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
803
|
-
var suspendResult = this.result_1;
|
|
804
|
-
$sm: do
|
|
805
|
-
try {
|
|
806
|
-
var tmp = this.state_1;
|
|
807
|
-
switch (tmp) {
|
|
808
|
-
case 0:
|
|
809
|
-
this.exceptionState_1 = 4;
|
|
810
|
-
if (this._this__u8e3s4__1.typedBody === protoOf(MappedBodyProvider()).typedBody) {
|
|
811
|
-
this.state_1 = 2;
|
|
812
|
-
suspendResult = this._this__u8e3s4__1.typedBody_4zdoqf_k$(this.response_1, this.type_1, this);
|
|
813
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
814
|
-
return suspendResult;
|
|
815
|
-
}
|
|
816
|
-
continue $sm;
|
|
817
|
-
} else {
|
|
818
|
-
this.state_1 = 1;
|
|
819
|
-
suspendResult = await_0(this._this__u8e3s4__1.typedBody(this.response_1, this.type_1), this);
|
|
820
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
821
|
-
return suspendResult;
|
|
822
|
-
}
|
|
823
|
-
continue $sm;
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
case 1:
|
|
827
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
828
|
-
this.state_1 = 3;
|
|
829
|
-
continue $sm;
|
|
830
|
-
case 2:
|
|
831
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
832
|
-
this.state_1 = 3;
|
|
833
|
-
continue $sm;
|
|
834
|
-
case 3:
|
|
835
|
-
return this.WHEN_RESULT0__1;
|
|
836
|
-
case 4:
|
|
837
|
-
throw this.exception_1;
|
|
838
|
-
}
|
|
839
|
-
} catch ($p) {
|
|
840
|
-
var e = $p;
|
|
841
|
-
if (this.exceptionState_1 === 4) {
|
|
842
|
-
throw e;
|
|
843
|
-
} else {
|
|
844
|
-
this.state_1 = this.exceptionState_1;
|
|
845
|
-
this.exception_1 = e;
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
while (true);
|
|
849
|
-
};
|
|
850
|
-
$typedBody$suspendBridgeCOROUTINE$Class_1 = $;
|
|
851
|
-
}
|
|
852
|
-
return $typedBody$suspendBridgeCOROUTINE$Class_1;
|
|
853
|
-
}
|
|
854
|
-
var MappedBodyProviderClass;
|
|
855
|
-
function MappedBodyProvider() {
|
|
856
|
-
if (MappedBodyProviderClass === VOID) {
|
|
857
|
-
initMetadataForClass($, 'MappedBodyProvider', VOID, VOID, [BodyProvider()], [1, 2]);
|
|
858
|
-
function $(provider, block) {
|
|
859
|
-
var __soliboProps = arguments.length === 1 && typeof provider === 'object' && provider !== null && provider.constructor === Object;
|
|
860
|
-
var __soliboTmp, __soliboConverted = false;
|
|
861
|
-
if (__soliboProps) {
|
|
862
|
-
const props = provider;
|
|
863
|
-
provider = ('provider' in props ? props.provider : VOID);
|
|
864
|
-
block = ('block' in props ? props.block : VOID);
|
|
865
|
-
}
|
|
866
|
-
if ((__soliboTmp = __soliboToKt(block, ["callback"])) !== block) { block = __soliboTmp; __soliboConverted = true; }
|
|
867
|
-
this.provider_1 = provider;
|
|
868
|
-
this.block_1 = block;
|
|
869
|
-
if (__soliboConverted && !__soliboBoundaryState.internalConstruction) return __soliboToJs(this);
|
|
870
|
-
}
|
|
871
|
-
protoOf($).body_a5jyb5_k$ = function (response, $completion) {
|
|
872
|
-
var tmp = new ($bodyCOROUTINE$_0())(this, response, $completion);
|
|
873
|
-
tmp.result_1 = Unit_instance;
|
|
874
|
-
tmp.exception_1 = null;
|
|
875
|
-
return tmp.doResume_5yljmg_k$();
|
|
876
|
-
};
|
|
877
|
-
protoOf($).body = function (response) {
|
|
878
|
-
var tmp = this;
|
|
879
|
-
return promisify(function ($completion) {
|
|
880
|
-
return tmp.body_a5jyb5_k$(response, $completion);
|
|
881
|
-
});
|
|
882
|
-
};
|
|
883
|
-
protoOf($).body$suspendBridge_wsw80i_k$ = function (response, $completion) {
|
|
884
|
-
var tmp = new ($body$suspendBridgeCOROUTINE$_1())(this, response, $completion);
|
|
885
|
-
tmp.result_1 = Unit_instance;
|
|
886
|
-
tmp.exception_1 = null;
|
|
887
|
-
return tmp.doResume_5yljmg_k$();
|
|
888
|
-
};
|
|
889
|
-
protoOf($).typedBody_4zdoqf_k$ = function (response, type, $completion) {
|
|
890
|
-
return typedBody$virtualSuspendBridge(this.provider_1, response, type, $completion);
|
|
891
|
-
};
|
|
892
|
-
protoOf($).typedBody = function (response, type) {
|
|
893
|
-
var tmp = this;
|
|
894
|
-
return promisify(function ($completion) {
|
|
895
|
-
return tmp.typedBody_4zdoqf_k$(response, type, $completion);
|
|
896
|
-
});
|
|
897
|
-
};
|
|
898
|
-
protoOf($).typedBody$suspendBridge_eo3zso_k$ = function (response, type, $completion) {
|
|
899
|
-
var tmp = new ($typedBody$suspendBridgeCOROUTINE$_1())(this, response, type, $completion);
|
|
900
|
-
tmp.result_1 = Unit_instance;
|
|
901
|
-
tmp.exception_1 = null;
|
|
902
|
-
return tmp.doResume_5yljmg_k$();
|
|
903
|
-
};
|
|
904
|
-
/* Solibo boundary patches */
|
|
905
|
-
Object.defineProperty($, 'name', { value: "MappedBodyProvider", configurable: true });
|
|
906
|
-
__soliboWrapMethod($, "body", {"result":true});
|
|
907
|
-
__soliboWrapMethod($, "typedBody", {"result":true});
|
|
908
|
-
__soliboRegisterLookup("MappedBodyProvider", () => $);
|
|
909
|
-
MappedBodyProviderClass = $;
|
|
910
|
-
}
|
|
911
|
-
return MappedBodyProviderClass;
|
|
912
|
-
}
|
|
913
|
-
function map(_this__u8e3s4, block) {
|
|
914
|
-
return new (HttpResponse())(_this__u8e3s4.response, new (MappedBodyProvider())(_this__u8e3s4.provider, block));
|
|
915
|
-
}
|
|
916
|
-
function decodeBody(_this__u8e3s4, type, $completion) {
|
|
917
|
-
var tmp = new ($decodeBodyCOROUTINE$())(_this__u8e3s4, type, $completion);
|
|
918
|
-
tmp.result_1 = Unit_instance;
|
|
919
|
-
tmp.exception_1 = null;
|
|
920
|
-
return tmp.doResume_5yljmg_k$();
|
|
921
|
-
}
|
|
922
|
-
function fileBody(_this__u8e3s4, serializer, raw, $completion) {
|
|
923
|
-
var tmp = new ($fileBodyCOROUTINE$())(_this__u8e3s4, serializer, raw, $completion);
|
|
924
|
-
tmp.result_1 = Unit_instance;
|
|
925
|
-
tmp.exception_1 = null;
|
|
926
|
-
return tmp.doResume_5yljmg_k$();
|
|
927
|
-
}
|
|
928
|
-
function Base64ByteArray$_init_$ref_e13pdp() {
|
|
929
|
-
return constructCallableReference(function (p0) {
|
|
930
|
-
return new (Base64ByteArray())(p0);
|
|
931
|
-
}, 1, 0, 120, '<init>');
|
|
932
|
-
}
|
|
933
|
-
function OctetByteArray$_init_$ref_xqpg5f() {
|
|
934
|
-
return constructCallableReference(function (p0) {
|
|
935
|
-
return new (OctetByteArray())(p0);
|
|
936
|
-
}, 1, 0, 121, '<init>');
|
|
937
|
-
}
|
|
938
|
-
var $decodeBodyCOROUTINE$Class;
|
|
939
|
-
function $decodeBodyCOROUTINE$() {
|
|
940
|
-
if ($decodeBodyCOROUTINE$Class === VOID) {
|
|
941
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
942
|
-
function $(_this__u8e3s4, type, resultContinuation) {
|
|
943
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
944
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
945
|
-
this.type_1 = type;
|
|
946
|
-
}
|
|
947
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
948
|
-
var suspendResult = this.result_1;
|
|
949
|
-
$sm: do
|
|
950
|
-
try {
|
|
951
|
-
var tmp = this.state_1;
|
|
952
|
-
switch (tmp) {
|
|
953
|
-
case 0:
|
|
954
|
-
this.exceptionState_1 = 5;
|
|
955
|
-
var tmp0_subject = this.type_1.type_1;
|
|
956
|
-
if (tmp0_subject.equals(getKClass(Base64ByteArray()))) {
|
|
957
|
-
this.state_1 = 3;
|
|
958
|
-
var tmp_0 = Companion_getInstance().serializer_9w0wvi_k$();
|
|
959
|
-
suspendResult = fileBody(this._this__u8e3s4__1, tmp_0, Base64ByteArray$_init_$ref_e13pdp(), this);
|
|
960
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
961
|
-
return suspendResult;
|
|
962
|
-
}
|
|
963
|
-
continue $sm;
|
|
964
|
-
} else {
|
|
965
|
-
if (tmp0_subject.equals(getKClass(OctetByteArray()))) {
|
|
966
|
-
this.state_1 = 2;
|
|
967
|
-
var tmp_1 = Companion_getInstance_0().serializer_9w0wvi_k$();
|
|
968
|
-
suspendResult = fileBody(this._this__u8e3s4__1, tmp_1, OctetByteArray$_init_$ref_xqpg5f(), this);
|
|
969
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
970
|
-
return suspendResult;
|
|
971
|
-
}
|
|
972
|
-
continue $sm;
|
|
973
|
-
} else {
|
|
974
|
-
this.state_1 = 1;
|
|
975
|
-
suspendResult = this._this__u8e3s4__1.get_call_wojxrb_k$().body_3ijhx3_k$(this.type_1, this);
|
|
976
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
977
|
-
return suspendResult;
|
|
978
|
-
}
|
|
979
|
-
continue $sm;
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
case 1:
|
|
984
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
985
|
-
this.state_1 = 4;
|
|
986
|
-
continue $sm;
|
|
987
|
-
case 2:
|
|
988
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
989
|
-
this.state_1 = 4;
|
|
990
|
-
continue $sm;
|
|
991
|
-
case 3:
|
|
992
|
-
this.WHEN_RESULT0__1 = suspendResult;
|
|
993
|
-
this.state_1 = 4;
|
|
994
|
-
continue $sm;
|
|
995
|
-
case 4:
|
|
996
|
-
return this.WHEN_RESULT0__1;
|
|
997
|
-
case 5:
|
|
998
|
-
throw this.exception_1;
|
|
999
|
-
}
|
|
1000
|
-
} catch ($p) {
|
|
1001
|
-
var e = $p;
|
|
1002
|
-
if (this.exceptionState_1 === 5) {
|
|
1003
|
-
throw e;
|
|
1004
|
-
} else {
|
|
1005
|
-
this.state_1 = this.exceptionState_1;
|
|
1006
|
-
this.exception_1 = e;
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
while (true);
|
|
1010
|
-
};
|
|
1011
|
-
$decodeBodyCOROUTINE$Class = $;
|
|
1012
|
-
}
|
|
1013
|
-
return $decodeBodyCOROUTINE$Class;
|
|
1014
|
-
}
|
|
1015
|
-
var $fileBodyCOROUTINE$Class;
|
|
1016
|
-
function $fileBodyCOROUTINE$() {
|
|
1017
|
-
if ($fileBodyCOROUTINE$Class === VOID) {
|
|
1018
|
-
initMetadataForCoroutine($, CoroutineImpl());
|
|
1019
|
-
function $(_this__u8e3s4, serializer, raw, resultContinuation) {
|
|
1020
|
-
CoroutineImpl().call(this, resultContinuation);
|
|
1021
|
-
this._this__u8e3s4__1 = _this__u8e3s4;
|
|
1022
|
-
this.serializer_1 = serializer;
|
|
1023
|
-
this.raw_1 = raw;
|
|
1024
|
-
}
|
|
1025
|
-
protoOf($).doResume_5yljmg_k$ = function () {
|
|
1026
|
-
var suspendResult = this.result_1;
|
|
1027
|
-
$sm: do
|
|
1028
|
-
try {
|
|
1029
|
-
var tmp = this.state_1;
|
|
1030
|
-
switch (tmp) {
|
|
1031
|
-
case 0:
|
|
1032
|
-
this.exceptionState_1 = 2;
|
|
1033
|
-
this.state_1 = 1;
|
|
1034
|
-
suspendResult = readRawBytes(this._this__u8e3s4__1, this);
|
|
1035
|
-
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1036
|
-
return suspendResult;
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
continue $sm;
|
|
1040
|
-
case 1:
|
|
1041
|
-
var bytes = suspendResult;
|
|
1042
|
-
var contentType_0 = contentType(this._this__u8e3s4__1);
|
|
1043
|
-
var json = !(contentType_0 == null) && (contentType_0.match_syvve3_k$(Application_getInstance().Json_1) || endsWith(contentType_0.contentSubtype_1, '+json'));
|
|
1044
|
-
if (json) {
|
|
1045
|
-
try {
|
|
1046
|
-
return Default_getInstance().decodeFromString_jwu9sq_k$(this.serializer_1, decodeToString(bytes));
|
|
1047
|
-
} catch ($p) {
|
|
1048
|
-
if ($p instanceof IllegalArgumentException()) {
|
|
1049
|
-
var e = $p;
|
|
1050
|
-
} else {
|
|
1051
|
-
throw $p;
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
return this.raw_1(bytes);
|
|
1057
|
-
case 2:
|
|
1058
|
-
throw this.exception_1;
|
|
1059
|
-
}
|
|
1060
|
-
} catch ($p_0) {
|
|
1061
|
-
var e_0 = $p_0;
|
|
1062
|
-
if (this.exceptionState_1 === 2) {
|
|
1063
|
-
throw e_0;
|
|
1064
|
-
} else {
|
|
1065
|
-
this.state_1 = this.exceptionState_1;
|
|
1066
|
-
this.exception_1 = e_0;
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
while (true);
|
|
1070
|
-
};
|
|
1071
|
-
$fileBodyCOROUTINE$Class = $;
|
|
1072
|
-
}
|
|
1073
|
-
return $fileBodyCOROUTINE$Class;
|
|
1074
|
-
}
|
|
1075
|
-
//region block: init
|
|
1076
|
-
Companion_instance = new (Companion())();
|
|
1077
|
-
//endregion
|
|
1078
|
-
//region block: exports
|
|
1079
|
-
export {
|
|
1080
|
-
Companion_getInstance_1 as Companion_getInstance22rky99bo6jsw,
|
|
1081
|
-
Companion as Companion23b3vf1mbac02,
|
|
1082
|
-
HttpResponse as HttpResponse53ki0v36vqo7,
|
|
1083
|
-
MappedBodyProvider as MappedBodyProvideri13u2l6q0qe9,
|
|
1084
|
-
TypedBodyProvider as TypedBodyProvider2ertybblisp23,
|
|
1085
|
-
map as map1gud2hobp4wg5,
|
|
1086
|
-
};
|
|
1087
|
-
//endregion
|
|
1088
|
-
|
|
1
|
+
// Collapsed into solibo-cycles/solibo-sdk-sdk-core-55.mjs with the rest of its import cycle (post-process-per-file.js).
|
|
2
|
+
export { Companion_getInstance22rky99bo6jsw, Companion23b3vf1mbac02, HttpResponse53ki0v36vqo7, MappedBodyProvideri13u2l6q0qe9, TypedBodyProvider2ertybblisp23, map1gud2hobp4wg5 } from '../../../../../../../../solibo-cycles/solibo-sdk-sdk-core-55.mjs';
|