@doordeck/doordeck-headless-sdk 0.201.0 → 0.203.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/kotlin/Kermit-kermit-core.js +58 -58
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +22 -22
- package/kotlin/doordeck-sdk.d.ts +1 -0
- package/kotlin/doordeck-sdk.js +12764 -12709
- package/kotlin/kotlin-kotlin-stdlib.js +2784 -2211
- package/kotlin/kotlinx-atomicfu.js +21 -21
- package/kotlin/kotlinx-coroutines-core.js +2830 -2752
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +50 -50
- package/kotlin/kotlinx-io-kotlinx-io-core.js +487 -487
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1918 -1918
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1540 -1540
- package/kotlin/ktor-ktor-client-auth.js +461 -461
- package/kotlin/ktor-ktor-client-content-negotiation.js +217 -217
- package/kotlin/ktor-ktor-client-core.js +3364 -3349
- package/kotlin/ktor-ktor-client-logging.js +1128 -1128
- package/kotlin/ktor-ktor-events.js +11 -11
- package/kotlin/ktor-ktor-http-cio.js +548 -548
- package/kotlin/ktor-ktor-http.js +834 -832
- package/kotlin/ktor-ktor-io.js +1373 -1181
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-serialization-kotlinx.js +327 -254
- package/kotlin/ktor-ktor-serialization.js +119 -119
- package/kotlin/ktor-ktor-utils.js +1169 -1134
- package/kotlin/ktor-ktor-websockets.js +790 -792
- package/package.json +1 -1
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_client_core, kotlin_io_ktor_ktor_http, kotlin_org_jetbrains_kotlinx_atomicfu, kotlin_io_ktor_ktor_utils, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
4
|
+
var CoroutineImpl = kotlin_kotlin.$_$.s9;
|
|
5
5
|
var Unit_instance = kotlin_kotlin.$_$.a1;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.gc;
|
|
7
|
+
var THROW_CCE = kotlin_kotlin.$_$.hg;
|
|
8
8
|
var HttpResponse = kotlin_io_ktor_ktor_client_core.$_$.k1;
|
|
9
9
|
var Companion_getInstance = kotlin_io_ktor_ktor_http.$_$.j;
|
|
10
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
10
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.ob;
|
|
11
11
|
var VOID = kotlin_kotlin.$_$.c;
|
|
12
12
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k1;
|
|
13
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
13
|
+
var initMetadataForClass = kotlin_kotlin.$_$.jb;
|
|
14
14
|
var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.e;
|
|
15
|
-
var toList = kotlin_kotlin.$_$.
|
|
15
|
+
var toList = kotlin_kotlin.$_$.n8;
|
|
16
16
|
var ConcurrentMap = kotlin_io_ktor_ktor_utils.$_$.e;
|
|
17
|
-
var KtMutableMap = kotlin_kotlin.$_$.
|
|
18
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
19
|
-
var arrayOf = kotlin_kotlin.$_$.
|
|
20
|
-
var createKType = kotlin_kotlin.$_$.
|
|
21
|
-
var createInvariantKTypeProjection = kotlin_kotlin.$_$.
|
|
17
|
+
var KtMutableMap = kotlin_kotlin.$_$.u5;
|
|
18
|
+
var getKClass = kotlin_kotlin.$_$.yc;
|
|
19
|
+
var arrayOf = kotlin_kotlin.$_$.vg;
|
|
20
|
+
var createKType = kotlin_kotlin.$_$.wc;
|
|
21
|
+
var createInvariantKTypeProjection = kotlin_kotlin.$_$.uc;
|
|
22
22
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.o;
|
|
23
|
-
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.
|
|
24
|
-
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.
|
|
23
|
+
var TypeInfo = kotlin_io_ktor_ktor_utils.$_$.o;
|
|
24
|
+
var AttributeKey = kotlin_io_ktor_ktor_utils.$_$.q;
|
|
25
25
|
var Send_instance = kotlin_io_ktor_ktor_client_core.$_$.a;
|
|
26
26
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
27
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
27
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.b6;
|
|
28
28
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j1;
|
|
29
29
|
var parseAuthorizationHeaders = kotlin_io_ktor_ktor_http.$_$.l;
|
|
30
|
-
var flatten = kotlin_kotlin.$_$.
|
|
31
|
-
var emptyList = kotlin_kotlin.$_$.
|
|
32
|
-
var to = kotlin_kotlin.$_$.
|
|
33
|
-
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.
|
|
34
|
-
var first = kotlin_kotlin.$_$.
|
|
30
|
+
var flatten = kotlin_kotlin.$_$.g7;
|
|
31
|
+
var emptyList = kotlin_kotlin.$_$.w6;
|
|
32
|
+
var to = kotlin_kotlin.$_$.lh;
|
|
33
|
+
var get_isTraceEnabled = kotlin_io_ktor_ktor_utils.$_$.k;
|
|
34
|
+
var first = kotlin_kotlin.$_$.f7;
|
|
35
35
|
var OnRequestContext = kotlin_io_ktor_ktor_client_core.$_$.k;
|
|
36
36
|
var HttpRequestBuilder = kotlin_io_ktor_ktor_client_core.$_$.d1;
|
|
37
|
-
var toString = kotlin_kotlin.$_$.
|
|
38
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
37
|
+
var toString = kotlin_kotlin.$_$.jc;
|
|
38
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b9;
|
|
39
39
|
var Sender = kotlin_io_ktor_ktor_client_core.$_$.l;
|
|
40
40
|
var HashSet_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
41
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
42
|
-
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.
|
|
43
|
-
var Unit = kotlin_kotlin.$_$.
|
|
41
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.lb;
|
|
42
|
+
var KtorSimpleLogger = kotlin_io_ktor_ktor_utils.$_$.j;
|
|
43
|
+
var Unit = kotlin_kotlin.$_$.sg;
|
|
44
44
|
var createClientPlugin = kotlin_io_ktor_ktor_client_core.$_$.o;
|
|
45
|
-
var KtList = kotlin_kotlin.$_$.
|
|
46
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
47
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
48
|
-
var get = kotlin_kotlin.$_$.
|
|
49
|
-
var fold = kotlin_kotlin.$_$.
|
|
50
|
-
var minusKey = kotlin_kotlin.$_$.
|
|
51
|
-
var plus = kotlin_kotlin.$_$.
|
|
52
|
-
var Element = kotlin_kotlin.$_$.
|
|
45
|
+
var KtList = kotlin_kotlin.$_$.n5;
|
|
46
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.nb;
|
|
47
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.kb;
|
|
48
|
+
var get = kotlin_kotlin.$_$.o9;
|
|
49
|
+
var fold = kotlin_kotlin.$_$.n9;
|
|
50
|
+
var minusKey = kotlin_kotlin.$_$.p9;
|
|
51
|
+
var plus = kotlin_kotlin.$_$.r9;
|
|
52
|
+
var Element = kotlin_kotlin.$_$.q9;
|
|
53
53
|
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.r1;
|
|
54
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
55
|
-
var equals = kotlin_kotlin.$_$.
|
|
54
|
+
var isInterface = kotlin_kotlin.$_$.yb;
|
|
55
|
+
var equals = kotlin_kotlin.$_$.bb;
|
|
56
56
|
var Mutex = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i1;
|
|
57
57
|
var NonCancellable_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.f;
|
|
58
58
|
var withContext = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
|
|
59
59
|
var headers = kotlin_io_ktor_ktor_client_core.$_$.g1;
|
|
60
|
-
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.
|
|
60
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.t2;
|
|
61
61
|
var Parameterized = kotlin_io_ktor_ktor_http.$_$.k;
|
|
62
62
|
//endregion
|
|
63
63
|
//region block: pre-declaration
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
initMetadataForCoroutine($invoke$refreshTokenIfNeededCOROUTINE$, CoroutineImpl);
|
|
70
70
|
initMetadataForCoroutine($invoke$executeWithNewTokenCOROUTINE$, CoroutineImpl);
|
|
71
71
|
function sendWithoutRequest(request) {
|
|
72
|
-
return this.
|
|
72
|
+
return this.m54();
|
|
73
73
|
}
|
|
74
74
|
function addRequestHeaders$default(request, authHeader, $completion, $super) {
|
|
75
75
|
authHeader = authHeader === VOID ? null : authHeader;
|
|
76
|
-
return $super === VOID ? this.
|
|
76
|
+
return $super === VOID ? this.l54(request, authHeader, $completion) : $super.l54.call(this, request, authHeader, $completion);
|
|
77
77
|
}
|
|
78
78
|
function refreshToken(response, $completion) {
|
|
79
79
|
return true;
|
|
@@ -117,25 +117,25 @@
|
|
|
117
117
|
function AuthConfig$isUnauthorizedResponse$slambda(resultContinuation) {
|
|
118
118
|
CoroutineImpl.call(this, resultContinuation);
|
|
119
119
|
}
|
|
120
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
121
|
-
var tmp = this.
|
|
122
|
-
tmp.
|
|
123
|
-
tmp.
|
|
124
|
-
return tmp.
|
|
120
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).s51 = function (it, $completion) {
|
|
121
|
+
var tmp = this.n40(it, $completion);
|
|
122
|
+
tmp.f9_1 = Unit_instance;
|
|
123
|
+
tmp.g9_1 = null;
|
|
124
|
+
return tmp.l9();
|
|
125
125
|
};
|
|
126
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
127
|
-
return this.
|
|
126
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).y9 = function (p1, $completion) {
|
|
127
|
+
return this.s51(p1 instanceof HttpResponse ? p1 : THROW_CCE(), $completion);
|
|
128
128
|
};
|
|
129
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
130
|
-
var suspendResult = this.
|
|
129
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).l9 = function () {
|
|
130
|
+
var suspendResult = this.f9_1;
|
|
131
131
|
$sm: do
|
|
132
132
|
try {
|
|
133
|
-
var tmp = this.
|
|
133
|
+
var tmp = this.d9_1;
|
|
134
134
|
if (tmp === 0) {
|
|
135
|
-
this.
|
|
136
|
-
return this.
|
|
135
|
+
this.e9_1 = 1;
|
|
136
|
+
return this.r51_1.o37().equals(Companion_getInstance().f33_1);
|
|
137
137
|
} else if (tmp === 1) {
|
|
138
|
-
throw this.
|
|
138
|
+
throw this.g9_1;
|
|
139
139
|
}
|
|
140
140
|
} catch ($p) {
|
|
141
141
|
var e = $p;
|
|
@@ -143,15 +143,15 @@
|
|
|
143
143
|
}
|
|
144
144
|
while (true);
|
|
145
145
|
};
|
|
146
|
-
protoOf(AuthConfig$isUnauthorizedResponse$slambda).
|
|
146
|
+
protoOf(AuthConfig$isUnauthorizedResponse$slambda).n40 = function (it, completion) {
|
|
147
147
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(completion);
|
|
148
|
-
i.
|
|
148
|
+
i.r51_1 = it;
|
|
149
149
|
return i;
|
|
150
150
|
};
|
|
151
151
|
function AuthConfig$isUnauthorizedResponse$slambda_0(resultContinuation) {
|
|
152
152
|
var i = new AuthConfig$isUnauthorizedResponse$slambda(resultContinuation);
|
|
153
153
|
var l = function (it, $completion) {
|
|
154
|
-
return i.
|
|
154
|
+
return i.s51(it, $completion);
|
|
155
155
|
};
|
|
156
156
|
l.$arity = 1;
|
|
157
157
|
return l;
|
|
@@ -159,12 +159,12 @@
|
|
|
159
159
|
function AuthConfig() {
|
|
160
160
|
var tmp = this;
|
|
161
161
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
162
|
-
tmp.
|
|
162
|
+
tmp.t51_1 = ArrayList_init_$Create$();
|
|
163
163
|
var tmp_0 = this;
|
|
164
|
-
tmp_0.
|
|
164
|
+
tmp_0.u51_1 = AuthConfig$isUnauthorizedResponse$slambda_0(null);
|
|
165
165
|
}
|
|
166
166
|
function AtomicCounter() {
|
|
167
|
-
this.
|
|
167
|
+
this.v51_1 = atomic$int$1(0);
|
|
168
168
|
}
|
|
169
169
|
function AuthConfig$_init_$ref_ms3pb9() {
|
|
170
170
|
var l = function () {
|
|
@@ -175,8 +175,8 @@
|
|
|
175
175
|
}
|
|
176
176
|
function Auth$lambda($this$createClientPlugin) {
|
|
177
177
|
_init_properties_Auth_kt__9ob1dk();
|
|
178
|
-
var providers = toList($this$createClientPlugin.
|
|
179
|
-
$this$createClientPlugin.
|
|
178
|
+
var providers = toList($this$createClientPlugin.n3z_1.t51_1);
|
|
179
|
+
$this$createClientPlugin.m3z_1.m3p_1.v2k(get_AuthProvidersKey(), providers);
|
|
180
180
|
var tokenVersions = new ConcurrentMap();
|
|
181
181
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
182
182
|
var name = 'ProviderVersionAttributeKey';
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
186
186
|
var tmp_0;
|
|
187
187
|
try {
|
|
188
|
-
tmp_0 = createKType(getKClass(KtMutableMap), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AuthProvider), arrayOf([]), false)), createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().
|
|
188
|
+
tmp_0 = createKType(getKClass(KtMutableMap), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AuthProvider), arrayOf([]), false)), createInvariantKTypeProjection(createKType(PrimitiveClasses_getInstance().zb(), arrayOf([]), false))]), false);
|
|
189
189
|
} catch ($p) {
|
|
190
190
|
var tmp_1;
|
|
191
191
|
if ($p instanceof Error) {
|
|
@@ -199,9 +199,9 @@
|
|
|
199
199
|
var tmp$ret$2 = tmp_0;
|
|
200
200
|
var tmp$ret$1 = new TypeInfo(tmp, tmp$ret$2);
|
|
201
201
|
var tokenVersionsAttributeKey = new AttributeKey(name, tmp$ret$1);
|
|
202
|
-
$this$createClientPlugin.
|
|
202
|
+
$this$createClientPlugin.n4e(Auth$lambda$slambda_0(providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
203
203
|
var tmp_2 = Send_instance;
|
|
204
|
-
$this$createClientPlugin.
|
|
204
|
+
$this$createClientPlugin.q3z(tmp_2, Auth$lambda$slambda_2($this$createClientPlugin, providers, tokenVersions, tokenVersionsAttributeKey, null));
|
|
205
205
|
return Unit_instance;
|
|
206
206
|
}
|
|
207
207
|
function Auth$lambda$refreshTokenIfNeeded$lambda() {
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
return LinkedHashMap_init_$Create$();
|
|
215
215
|
}
|
|
216
216
|
function invoke$findProvider(call, candidateProviders) {
|
|
217
|
-
var headerValues = call.
|
|
217
|
+
var headerValues = call.n3q().p31().j2p('WWW-Authenticate');
|
|
218
218
|
var tmp;
|
|
219
219
|
if (headerValues == null) {
|
|
220
220
|
tmp = null;
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
var _iterator__ex2g4s_0 = authHeaders.t();
|
|
243
243
|
while (_iterator__ex2g4s_0.u()) {
|
|
244
244
|
var element = _iterator__ex2g4s_0.v();
|
|
245
|
-
if (provider.
|
|
245
|
+
if (provider.w51(element)) {
|
|
246
246
|
tmp$ret$3 = element;
|
|
247
247
|
break $l$block;
|
|
248
248
|
}
|
|
@@ -255,8 +255,8 @@
|
|
|
255
255
|
// Inline function 'io.ktor.util.logging.trace' call
|
|
256
256
|
var this_0 = get_LOGGER();
|
|
257
257
|
if (get_isTraceEnabled(this_0)) {
|
|
258
|
-
var tmp$ret$6 = 'Unauthorized response ' + call.
|
|
259
|
-
this_0.
|
|
258
|
+
var tmp$ret$6 = 'Unauthorized response ' + call.v3s().e3t().toString() + ' has no or empty "WWW-Authenticate" header. ' + 'Can not add or refresh token';
|
|
259
|
+
this_0.f2u(tmp$ret$6);
|
|
260
260
|
}
|
|
261
261
|
tmp_0 = null;
|
|
262
262
|
} else {
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
var _iterator__ex2g4s_2 = candidateProviders.t();
|
|
274
274
|
while (_iterator__ex2g4s_2.u()) {
|
|
275
275
|
var element_1 = _iterator__ex2g4s_2.v();
|
|
276
|
-
if (element_1.
|
|
276
|
+
if (element_1.w51(element_0)) {
|
|
277
277
|
tmp$ret$10 = element_1;
|
|
278
278
|
break $l$block_0;
|
|
279
279
|
}
|
|
@@ -302,15 +302,15 @@
|
|
|
302
302
|
}
|
|
303
303
|
function invoke$refreshTokenIfNeeded(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion) {
|
|
304
304
|
var tmp = new $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, $completion);
|
|
305
|
-
tmp.
|
|
306
|
-
tmp.
|
|
307
|
-
return tmp.
|
|
305
|
+
tmp.f9_1 = Unit_instance;
|
|
306
|
+
tmp.g9_1 = null;
|
|
307
|
+
return tmp.l9();
|
|
308
308
|
}
|
|
309
309
|
function invoke$executeWithNewToken(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion) {
|
|
310
310
|
var tmp = new $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, $completion);
|
|
311
|
-
tmp.
|
|
312
|
-
tmp.
|
|
313
|
-
return tmp.
|
|
311
|
+
tmp.f9_1 = Unit_instance;
|
|
312
|
+
tmp.g9_1 = null;
|
|
313
|
+
return tmp.l9();
|
|
314
314
|
}
|
|
315
315
|
function Auth$lambda$slambda$lambda() {
|
|
316
316
|
return new AtomicCounter();
|
|
@@ -320,136 +320,136 @@
|
|
|
320
320
|
return LinkedHashMap_init_$Create$();
|
|
321
321
|
}
|
|
322
322
|
function Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
325
|
-
this.
|
|
323
|
+
this.i53_1 = $providers;
|
|
324
|
+
this.j53_1 = $tokenVersions;
|
|
325
|
+
this.k53_1 = $tokenVersionsAttributeKey;
|
|
326
326
|
CoroutineImpl.call(this, resultContinuation);
|
|
327
327
|
}
|
|
328
|
-
protoOf(Auth$lambda$slambda).
|
|
329
|
-
var tmp = this.
|
|
330
|
-
tmp.
|
|
331
|
-
tmp.
|
|
332
|
-
return tmp.
|
|
328
|
+
protoOf(Auth$lambda$slambda).b4f = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
329
|
+
var tmp = this.c4f($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
330
|
+
tmp.f9_1 = Unit_instance;
|
|
331
|
+
tmp.g9_1 = null;
|
|
332
|
+
return tmp.l9();
|
|
333
333
|
};
|
|
334
|
-
protoOf(Auth$lambda$slambda).
|
|
334
|
+
protoOf(Auth$lambda$slambda).d4f = function (p1, p2, p3, $completion) {
|
|
335
335
|
var tmp = p1 instanceof OnRequestContext ? p1 : THROW_CCE();
|
|
336
336
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
337
|
-
return this.
|
|
337
|
+
return this.b4f(tmp, tmp_0, !(p3 == null) ? p3 : THROW_CCE(), $completion);
|
|
338
338
|
};
|
|
339
|
-
protoOf(Auth$lambda$slambda).
|
|
340
|
-
var suspendResult = this.
|
|
339
|
+
protoOf(Auth$lambda$slambda).l9 = function () {
|
|
340
|
+
var suspendResult = this.f9_1;
|
|
341
341
|
$sm: do
|
|
342
342
|
try {
|
|
343
|
-
var tmp = this.
|
|
343
|
+
var tmp = this.d9_1;
|
|
344
344
|
switch (tmp) {
|
|
345
345
|
case 0:
|
|
346
|
-
this.
|
|
347
|
-
var tmp0 = this.
|
|
346
|
+
this.e9_1 = 4;
|
|
347
|
+
var tmp0 = this.i53_1;
|
|
348
348
|
var destination = ArrayList_init_$Create$();
|
|
349
349
|
var _iterator__ex2g4s = tmp0.t();
|
|
350
350
|
while (_iterator__ex2g4s.u()) {
|
|
351
351
|
var element = _iterator__ex2g4s.v();
|
|
352
|
-
if (element.
|
|
352
|
+
if (element.p53(this.m53_1)) {
|
|
353
353
|
destination.j1(element);
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
this.
|
|
358
|
-
this.
|
|
357
|
+
this.o53_1 = destination.t();
|
|
358
|
+
this.d9_1 = 1;
|
|
359
359
|
continue $sm;
|
|
360
360
|
case 1:
|
|
361
|
-
if (!this.
|
|
362
|
-
this.
|
|
361
|
+
if (!this.o53_1.u()) {
|
|
362
|
+
this.d9_1 = 3;
|
|
363
363
|
continue $sm;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
var element_0 = this.
|
|
366
|
+
var element_0 = this.o53_1.v();
|
|
367
367
|
var this_0 = get_LOGGER();
|
|
368
368
|
if (get_isTraceEnabled(this_0)) {
|
|
369
|
-
this_0.
|
|
369
|
+
this_0.f2u('Adding auth headers for ' + this.m53_1.n3r_1.toString() + ' from provider ' + toString(element_0));
|
|
370
370
|
}
|
|
371
371
|
|
|
372
|
-
var tokenVersion = this.
|
|
373
|
-
var requestTokenVersions = this.
|
|
374
|
-
var value = tokenVersion.
|
|
372
|
+
var tokenVersion = this.j53_1.u2t(element_0, Auth$lambda$slambda$lambda);
|
|
373
|
+
var requestTokenVersions = this.m53_1.s3r_1.y2k(this.k53_1, Auth$lambda$slambda$lambda_0);
|
|
374
|
+
var value = tokenVersion.v51_1.kotlinx$atomicfu$value;
|
|
375
375
|
requestTokenVersions.y2(element_0, value);
|
|
376
|
-
this.
|
|
377
|
-
suspendResult = element_0.
|
|
376
|
+
this.d9_1 = 2;
|
|
377
|
+
suspendResult = element_0.q53(this.m53_1, VOID, this);
|
|
378
378
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
379
379
|
return suspendResult;
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
continue $sm;
|
|
383
383
|
case 2:
|
|
384
|
-
this.
|
|
384
|
+
this.d9_1 = 1;
|
|
385
385
|
continue $sm;
|
|
386
386
|
case 3:
|
|
387
387
|
return Unit_instance;
|
|
388
388
|
case 4:
|
|
389
|
-
throw this.
|
|
389
|
+
throw this.g9_1;
|
|
390
390
|
}
|
|
391
391
|
} catch ($p) {
|
|
392
392
|
var e = $p;
|
|
393
|
-
if (this.
|
|
393
|
+
if (this.e9_1 === 4) {
|
|
394
394
|
throw e;
|
|
395
395
|
} else {
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
396
|
+
this.d9_1 = this.e9_1;
|
|
397
|
+
this.g9_1 = e;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
while (true);
|
|
401
401
|
};
|
|
402
|
-
protoOf(Auth$lambda$slambda).
|
|
403
|
-
var i = new Auth$lambda$slambda(this.
|
|
404
|
-
i.
|
|
405
|
-
i.
|
|
406
|
-
i.
|
|
402
|
+
protoOf(Auth$lambda$slambda).c4f = function ($this$onRequest, request, _unused_var__etf5q3, completion) {
|
|
403
|
+
var i = new Auth$lambda$slambda(this.i53_1, this.j53_1, this.k53_1, completion);
|
|
404
|
+
i.l53_1 = $this$onRequest;
|
|
405
|
+
i.m53_1 = request;
|
|
406
|
+
i.n53_1 = _unused_var__etf5q3;
|
|
407
407
|
return i;
|
|
408
408
|
};
|
|
409
409
|
function Auth$lambda$slambda_0($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
410
410
|
var i = new Auth$lambda$slambda($providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
411
411
|
var l = function ($this$onRequest, request, _unused_var__etf5q3, $completion) {
|
|
412
|
-
return i.
|
|
412
|
+
return i.b4f($this$onRequest, request, _unused_var__etf5q3, $completion);
|
|
413
413
|
};
|
|
414
414
|
l.$arity = 3;
|
|
415
415
|
return l;
|
|
416
416
|
}
|
|
417
417
|
function Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
418
|
-
this.
|
|
419
|
-
this.
|
|
420
|
-
this.
|
|
421
|
-
this.
|
|
418
|
+
this.z53_1 = $this_createClientPlugin;
|
|
419
|
+
this.a54_1 = $providers;
|
|
420
|
+
this.b54_1 = $tokenVersions;
|
|
421
|
+
this.c54_1 = $tokenVersionsAttributeKey;
|
|
422
422
|
CoroutineImpl.call(this, resultContinuation);
|
|
423
423
|
}
|
|
424
|
-
protoOf(Auth$lambda$slambda_1).
|
|
425
|
-
var tmp = this.
|
|
426
|
-
tmp.
|
|
427
|
-
tmp.
|
|
428
|
-
return tmp.
|
|
424
|
+
protoOf(Auth$lambda$slambda_1).r46 = function ($this$on, originalRequest, $completion) {
|
|
425
|
+
var tmp = this.s46($this$on, originalRequest, $completion);
|
|
426
|
+
tmp.f9_1 = Unit_instance;
|
|
427
|
+
tmp.g9_1 = null;
|
|
428
|
+
return tmp.l9();
|
|
429
429
|
};
|
|
430
|
-
protoOf(Auth$lambda$slambda_1).
|
|
430
|
+
protoOf(Auth$lambda$slambda_1).z9 = function (p1, p2, $completion) {
|
|
431
431
|
var tmp = p1 instanceof Sender ? p1 : THROW_CCE();
|
|
432
|
-
return this.
|
|
432
|
+
return this.r46(tmp, p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE(), $completion);
|
|
433
433
|
};
|
|
434
|
-
protoOf(Auth$lambda$slambda_1).
|
|
435
|
-
var suspendResult = this.
|
|
434
|
+
protoOf(Auth$lambda$slambda_1).l9 = function () {
|
|
435
|
+
var suspendResult = this.f9_1;
|
|
436
436
|
$sm: do
|
|
437
437
|
try {
|
|
438
|
-
var tmp = this.
|
|
438
|
+
var tmp = this.d9_1;
|
|
439
439
|
switch (tmp) {
|
|
440
440
|
case 0:
|
|
441
|
-
this.
|
|
442
|
-
this.
|
|
443
|
-
suspendResult = this.
|
|
441
|
+
this.e9_1 = 10;
|
|
442
|
+
this.d9_1 = 1;
|
|
443
|
+
suspendResult = this.d54_1.v46(this.e54_1, this);
|
|
444
444
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
445
445
|
return suspendResult;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
continue $sm;
|
|
449
449
|
case 1:
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
452
|
-
suspendResult = this.
|
|
450
|
+
this.j54_1 = suspendResult;
|
|
451
|
+
this.d9_1 = 2;
|
|
452
|
+
suspendResult = this.z53_1.n3z_1.u51_1(this.j54_1.n3q(), this);
|
|
453
453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
454
454
|
return suspendResult;
|
|
455
455
|
}
|
|
@@ -457,22 +457,22 @@
|
|
|
457
457
|
continue $sm;
|
|
458
458
|
case 2:
|
|
459
459
|
if (!suspendResult) {
|
|
460
|
-
return this.
|
|
460
|
+
return this.j54_1;
|
|
461
461
|
} else {
|
|
462
|
-
this.
|
|
462
|
+
this.d9_1 = 3;
|
|
463
463
|
continue $sm;
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
case 3:
|
|
467
|
-
if (this.
|
|
468
|
-
return this.
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
471
|
-
this.
|
|
467
|
+
if (this.j54_1.v3s().w3s().u2k(get_AuthCircuitBreaker()))
|
|
468
|
+
return this.j54_1;
|
|
469
|
+
this.f54_1 = this.j54_1;
|
|
470
|
+
this.i54_1 = HashSet_init_$Create$(this.a54_1);
|
|
471
|
+
this.d9_1 = 4;
|
|
472
472
|
continue $sm;
|
|
473
473
|
case 4:
|
|
474
|
-
this.
|
|
475
|
-
suspendResult = this.
|
|
474
|
+
this.d9_1 = 5;
|
|
475
|
+
suspendResult = this.z53_1.n3z_1.u51_1(this.f54_1.n3q(), this);
|
|
476
476
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
477
477
|
return suspendResult;
|
|
478
478
|
}
|
|
@@ -480,39 +480,39 @@
|
|
|
480
480
|
continue $sm;
|
|
481
481
|
case 5:
|
|
482
482
|
if (!suspendResult) {
|
|
483
|
-
this.
|
|
483
|
+
this.d9_1 = 9;
|
|
484
484
|
continue $sm;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
var this_0 = get_LOGGER();
|
|
488
488
|
if (get_isTraceEnabled(this_0)) {
|
|
489
|
-
this_0.
|
|
489
|
+
this_0.f2u('Unauthorized response for ' + this.f54_1.v3s().e3t().toString());
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
var tmp0_elvis_lhs = invoke$findProvider(this.
|
|
492
|
+
var tmp0_elvis_lhs = invoke$findProvider(this.f54_1, this.i54_1);
|
|
493
493
|
var tmp_0;
|
|
494
494
|
if (tmp0_elvis_lhs == null) {
|
|
495
|
-
this.
|
|
495
|
+
this.d54_1;
|
|
496
496
|
var this_1 = get_LOGGER();
|
|
497
497
|
if (get_isTraceEnabled(this_1)) {
|
|
498
|
-
this_1.
|
|
498
|
+
this_1.f2u('Can not find auth provider for ' + this.f54_1.v3s().e3t().toString());
|
|
499
499
|
}
|
|
500
|
-
return this.
|
|
500
|
+
return this.f54_1;
|
|
501
501
|
} else {
|
|
502
502
|
tmp_0 = tmp0_elvis_lhs;
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
var _destruct__k2r9zo = tmp_0;
|
|
506
|
-
this.
|
|
507
|
-
this.
|
|
506
|
+
this.h54_1 = _destruct__k2r9zo.fg();
|
|
507
|
+
this.g54_1 = _destruct__k2r9zo.gg();
|
|
508
508
|
var this_2 = get_LOGGER();
|
|
509
509
|
if (get_isTraceEnabled(this_2)) {
|
|
510
|
-
this_2.
|
|
510
|
+
this_2.f2u('Using provider ' + toString(this.h54_1) + ' for ' + this.f54_1.v3s().e3t().toString());
|
|
511
511
|
}
|
|
512
512
|
|
|
513
|
-
this.
|
|
514
|
-
this.
|
|
515
|
-
suspendResult = invoke$refreshTokenIfNeeded(this.
|
|
513
|
+
this.i54_1.i3(this.h54_1);
|
|
514
|
+
this.d9_1 = 6;
|
|
515
|
+
suspendResult = invoke$refreshTokenIfNeeded(this.b54_1, this.c54_1, this.f54_1, this.h54_1, this.e54_1, this);
|
|
516
516
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
517
517
|
return suspendResult;
|
|
518
518
|
}
|
|
@@ -520,88 +520,88 @@
|
|
|
520
520
|
continue $sm;
|
|
521
521
|
case 6:
|
|
522
522
|
if (!suspendResult) {
|
|
523
|
-
return this.
|
|
523
|
+
return this.f54_1;
|
|
524
524
|
} else {
|
|
525
|
-
this.
|
|
525
|
+
this.d9_1 = 7;
|
|
526
526
|
continue $sm;
|
|
527
527
|
}
|
|
528
528
|
|
|
529
529
|
case 7:
|
|
530
|
-
this.
|
|
531
|
-
suspendResult = invoke$executeWithNewToken(this.
|
|
530
|
+
this.d9_1 = 8;
|
|
531
|
+
suspendResult = invoke$executeWithNewToken(this.d54_1, this.f54_1, this.h54_1, this.e54_1, this.g54_1, this);
|
|
532
532
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
533
533
|
return suspendResult;
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
continue $sm;
|
|
537
537
|
case 8:
|
|
538
|
-
this.
|
|
539
|
-
this.
|
|
538
|
+
this.f54_1 = suspendResult;
|
|
539
|
+
this.d9_1 = 4;
|
|
540
540
|
continue $sm;
|
|
541
541
|
case 9:
|
|
542
|
-
return this.
|
|
542
|
+
return this.f54_1;
|
|
543
543
|
case 10:
|
|
544
|
-
throw this.
|
|
544
|
+
throw this.g9_1;
|
|
545
545
|
}
|
|
546
546
|
} catch ($p) {
|
|
547
547
|
var e = $p;
|
|
548
|
-
if (this.
|
|
548
|
+
if (this.e9_1 === 10) {
|
|
549
549
|
throw e;
|
|
550
550
|
} else {
|
|
551
|
-
this.
|
|
552
|
-
this.
|
|
551
|
+
this.d9_1 = this.e9_1;
|
|
552
|
+
this.g9_1 = e;
|
|
553
553
|
}
|
|
554
554
|
}
|
|
555
555
|
while (true);
|
|
556
556
|
};
|
|
557
|
-
protoOf(Auth$lambda$slambda_1).
|
|
558
|
-
var i = new Auth$lambda$slambda_1(this.
|
|
559
|
-
i.
|
|
560
|
-
i.
|
|
557
|
+
protoOf(Auth$lambda$slambda_1).s46 = function ($this$on, originalRequest, completion) {
|
|
558
|
+
var i = new Auth$lambda$slambda_1(this.z53_1, this.a54_1, this.b54_1, this.c54_1, completion);
|
|
559
|
+
i.d54_1 = $this$on;
|
|
560
|
+
i.e54_1 = originalRequest;
|
|
561
561
|
return i;
|
|
562
562
|
};
|
|
563
563
|
function Auth$lambda$slambda_2($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation) {
|
|
564
564
|
var i = new Auth$lambda$slambda_1($this_createClientPlugin, $providers, $tokenVersions, $tokenVersionsAttributeKey, resultContinuation);
|
|
565
565
|
var l = function ($this$on, originalRequest, $completion) {
|
|
566
|
-
return i.
|
|
566
|
+
return i.r46($this$on, originalRequest, $completion);
|
|
567
567
|
};
|
|
568
568
|
l.$arity = 2;
|
|
569
569
|
return l;
|
|
570
570
|
}
|
|
571
571
|
function $invoke$refreshTokenIfNeededCOROUTINE$(tokenVersions, tokenVersionsAttributeKey, call, provider, request, resultContinuation) {
|
|
572
572
|
CoroutineImpl.call(this, resultContinuation);
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
this.
|
|
577
|
-
this.
|
|
573
|
+
this.f52_1 = tokenVersions;
|
|
574
|
+
this.g52_1 = tokenVersionsAttributeKey;
|
|
575
|
+
this.h52_1 = call;
|
|
576
|
+
this.i52_1 = provider;
|
|
577
|
+
this.j52_1 = request;
|
|
578
578
|
}
|
|
579
|
-
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).
|
|
580
|
-
var suspendResult = this.
|
|
579
|
+
protoOf($invoke$refreshTokenIfNeededCOROUTINE$).l9 = function () {
|
|
580
|
+
var suspendResult = this.f9_1;
|
|
581
581
|
$sm: do
|
|
582
582
|
try {
|
|
583
|
-
var tmp = this.
|
|
583
|
+
var tmp = this.d9_1;
|
|
584
584
|
switch (tmp) {
|
|
585
585
|
case 0:
|
|
586
|
-
this.
|
|
586
|
+
this.e9_1 = 4;
|
|
587
587
|
var tmp_0 = this;
|
|
588
|
-
tmp_0.
|
|
588
|
+
tmp_0.k52_1 = this.f52_1.u2t(this.i52_1, Auth$lambda$refreshTokenIfNeeded$lambda);
|
|
589
589
|
var tmp_1 = this;
|
|
590
|
-
tmp_1.
|
|
591
|
-
var requestTokenVersion = this.
|
|
592
|
-
if (!(requestTokenVersion == null) && requestTokenVersion >= this.
|
|
590
|
+
tmp_1.l52_1 = this.j52_1.s3r_1.y2k(this.g52_1, Auth$lambda$refreshTokenIfNeeded$lambda_0);
|
|
591
|
+
var requestTokenVersion = this.l52_1.g3(this.i52_1);
|
|
592
|
+
if (!(requestTokenVersion == null) && requestTokenVersion >= this.k52_1.v51_1.kotlinx$atomicfu$value) {
|
|
593
593
|
var this_0 = get_LOGGER();
|
|
594
594
|
if (get_isTraceEnabled(this_0)) {
|
|
595
|
-
this_0.
|
|
595
|
+
this_0.f2u('Refreshing token for ' + this.h52_1.v3s().e3t().toString());
|
|
596
596
|
}
|
|
597
|
-
this.
|
|
598
|
-
suspendResult = this.
|
|
597
|
+
this.d9_1 = 1;
|
|
598
|
+
suspendResult = this.i52_1.k54(this.h52_1.n3q(), this);
|
|
599
599
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
600
600
|
return suspendResult;
|
|
601
601
|
}
|
|
602
602
|
continue $sm;
|
|
603
603
|
} else {
|
|
604
|
-
this.
|
|
604
|
+
this.d9_1 = 3;
|
|
605
605
|
continue $sm;
|
|
606
606
|
}
|
|
607
607
|
|
|
@@ -609,71 +609,71 @@
|
|
|
609
609
|
if (!suspendResult) {
|
|
610
610
|
var this_1 = get_LOGGER();
|
|
611
611
|
if (get_isTraceEnabled(this_1)) {
|
|
612
|
-
this_1.
|
|
612
|
+
this_1.f2u('Refreshing token failed for ' + this.h52_1.v3s().e3t().toString());
|
|
613
613
|
}
|
|
614
614
|
return false;
|
|
615
615
|
} else {
|
|
616
|
-
var tmp0 = this.
|
|
617
|
-
var tmp2 = this.
|
|
618
|
-
var value = this.
|
|
616
|
+
var tmp0 = this.l52_1;
|
|
617
|
+
var tmp2 = this.i52_1;
|
|
618
|
+
var value = this.k52_1.v51_1.atomicfu$incrementAndGet();
|
|
619
619
|
tmp0.y2(tmp2, value);
|
|
620
|
-
this.
|
|
620
|
+
this.d9_1 = 2;
|
|
621
621
|
continue $sm;
|
|
622
622
|
}
|
|
623
623
|
|
|
624
624
|
case 2:
|
|
625
|
-
this.
|
|
625
|
+
this.d9_1 = 3;
|
|
626
626
|
continue $sm;
|
|
627
627
|
case 3:
|
|
628
628
|
return true;
|
|
629
629
|
case 4:
|
|
630
|
-
throw this.
|
|
630
|
+
throw this.g9_1;
|
|
631
631
|
}
|
|
632
632
|
} catch ($p) {
|
|
633
633
|
var e = $p;
|
|
634
|
-
if (this.
|
|
634
|
+
if (this.e9_1 === 4) {
|
|
635
635
|
throw e;
|
|
636
636
|
} else {
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
637
|
+
this.d9_1 = this.e9_1;
|
|
638
|
+
this.g9_1 = e;
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
641
|
while (true);
|
|
642
642
|
};
|
|
643
643
|
function $invoke$executeWithNewTokenCOROUTINE$(_this__u8e3s4, call, provider, oldRequest, authHeader, resultContinuation) {
|
|
644
644
|
CoroutineImpl.call(this, resultContinuation);
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
645
|
+
this.u52_1 = _this__u8e3s4;
|
|
646
|
+
this.v52_1 = call;
|
|
647
|
+
this.w52_1 = provider;
|
|
648
|
+
this.x52_1 = oldRequest;
|
|
649
|
+
this.y52_1 = authHeader;
|
|
650
650
|
}
|
|
651
|
-
protoOf($invoke$executeWithNewTokenCOROUTINE$).
|
|
652
|
-
var suspendResult = this.
|
|
651
|
+
protoOf($invoke$executeWithNewTokenCOROUTINE$).l9 = function () {
|
|
652
|
+
var suspendResult = this.f9_1;
|
|
653
653
|
$sm: do
|
|
654
654
|
try {
|
|
655
|
-
var tmp = this.
|
|
655
|
+
var tmp = this.d9_1;
|
|
656
656
|
switch (tmp) {
|
|
657
657
|
case 0:
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
661
|
-
this.
|
|
662
|
-
suspendResult = this.
|
|
658
|
+
this.e9_1 = 3;
|
|
659
|
+
this.z52_1 = new HttpRequestBuilder();
|
|
660
|
+
this.z52_1.g3x(this.x52_1);
|
|
661
|
+
this.d9_1 = 1;
|
|
662
|
+
suspendResult = this.w52_1.l54(this.z52_1, this.y52_1, this);
|
|
663
663
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
664
664
|
return suspendResult;
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
continue $sm;
|
|
668
668
|
case 1:
|
|
669
|
-
this.
|
|
669
|
+
this.z52_1.s3r_1.v2k(get_AuthCircuitBreaker(), Unit_instance);
|
|
670
670
|
var this_0 = get_LOGGER();
|
|
671
671
|
if (get_isTraceEnabled(this_0)) {
|
|
672
|
-
this_0.
|
|
672
|
+
this_0.f2u('Sending new request to ' + this.v52_1.v3s().e3t().toString());
|
|
673
673
|
}
|
|
674
674
|
|
|
675
|
-
this.
|
|
676
|
-
suspendResult = this.
|
|
675
|
+
this.d9_1 = 2;
|
|
676
|
+
suspendResult = this.u52_1.v46(this.z52_1, this);
|
|
677
677
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
678
678
|
return suspendResult;
|
|
679
679
|
}
|
|
@@ -682,15 +682,15 @@
|
|
|
682
682
|
case 2:
|
|
683
683
|
return suspendResult;
|
|
684
684
|
case 3:
|
|
685
|
-
throw this.
|
|
685
|
+
throw this.g9_1;
|
|
686
686
|
}
|
|
687
687
|
} catch ($p) {
|
|
688
688
|
var e = $p;
|
|
689
|
-
if (this.
|
|
689
|
+
if (this.e9_1 === 3) {
|
|
690
690
|
throw e;
|
|
691
691
|
} else {
|
|
692
|
-
this.
|
|
693
|
-
this.
|
|
692
|
+
this.d9_1 = this.e9_1;
|
|
693
|
+
this.g9_1 = e;
|
|
694
694
|
}
|
|
695
695
|
}
|
|
696
696
|
while (true);
|
|
@@ -760,143 +760,143 @@
|
|
|
760
760
|
return Companion_instance;
|
|
761
761
|
};
|
|
762
762
|
function AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
|
|
763
|
-
this.
|
|
764
|
-
this.
|
|
765
|
-
this.
|
|
766
|
-
this.
|
|
763
|
+
this.v54_1 = this$0;
|
|
764
|
+
this.w54_1 = $prevValue;
|
|
765
|
+
this.x54_1 = $lockedByLoad;
|
|
766
|
+
this.y54_1 = $block;
|
|
767
767
|
CoroutineImpl.call(this, resultContinuation);
|
|
768
768
|
}
|
|
769
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
770
|
-
var tmp = this.
|
|
771
|
-
tmp.
|
|
772
|
-
tmp.
|
|
773
|
-
return tmp.
|
|
769
|
+
protoOf(AuthTokenHolder$setToken$slambda).d55 = function ($this$withContext, $completion) {
|
|
770
|
+
var tmp = this.w1x($this$withContext, $completion);
|
|
771
|
+
tmp.f9_1 = Unit_instance;
|
|
772
|
+
tmp.g9_1 = null;
|
|
773
|
+
return tmp.l9();
|
|
774
774
|
};
|
|
775
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
776
|
-
return this.
|
|
775
|
+
protoOf(AuthTokenHolder$setToken$slambda).y9 = function (p1, $completion) {
|
|
776
|
+
return this.d55((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
777
777
|
};
|
|
778
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
779
|
-
var suspendResult = this.
|
|
778
|
+
protoOf(AuthTokenHolder$setToken$slambda).l9 = function () {
|
|
779
|
+
var suspendResult = this.f9_1;
|
|
780
780
|
$sm: do
|
|
781
781
|
try {
|
|
782
|
-
var tmp = this.
|
|
782
|
+
var tmp = this.d9_1;
|
|
783
783
|
switch (tmp) {
|
|
784
784
|
case 0:
|
|
785
|
-
this.
|
|
786
|
-
this.
|
|
787
|
-
this.
|
|
788
|
-
this.
|
|
789
|
-
suspendResult = this.
|
|
785
|
+
this.e9_1 = 7;
|
|
786
|
+
this.b55_1 = this.v54_1.i55_1;
|
|
787
|
+
this.a55_1 = null;
|
|
788
|
+
this.d9_1 = 1;
|
|
789
|
+
suspendResult = this.b55_1.b1k(this.a55_1, this);
|
|
790
790
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
791
791
|
return suspendResult;
|
|
792
792
|
}
|
|
793
793
|
|
|
794
794
|
continue $sm;
|
|
795
795
|
case 1:
|
|
796
|
-
this.
|
|
797
|
-
this.
|
|
796
|
+
this.c55_1 = Unit_instance;
|
|
797
|
+
this.d9_1 = 2;
|
|
798
798
|
continue $sm;
|
|
799
799
|
case 2:
|
|
800
|
-
this.
|
|
801
|
-
if (equals(this.
|
|
802
|
-
this.
|
|
803
|
-
suspendResult = this.
|
|
800
|
+
this.e9_1 = 6;
|
|
801
|
+
if (equals(this.w54_1, this.v54_1.g55_1) || this.x54_1) {
|
|
802
|
+
this.d9_1 = 3;
|
|
803
|
+
suspendResult = this.y54_1(this);
|
|
804
804
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
805
805
|
return suspendResult;
|
|
806
806
|
}
|
|
807
807
|
continue $sm;
|
|
808
808
|
} else {
|
|
809
|
-
this.
|
|
809
|
+
this.d9_1 = 4;
|
|
810
810
|
continue $sm;
|
|
811
811
|
}
|
|
812
812
|
|
|
813
813
|
case 3:
|
|
814
814
|
var ARGUMENT = suspendResult;
|
|
815
|
-
this.
|
|
816
|
-
this.
|
|
815
|
+
this.v54_1.g55_1 = ARGUMENT;
|
|
816
|
+
this.d9_1 = 4;
|
|
817
817
|
continue $sm;
|
|
818
818
|
case 4:
|
|
819
|
-
this.
|
|
820
|
-
this.
|
|
821
|
-
this.
|
|
819
|
+
this.c55_1 = this.v54_1.g55_1;
|
|
820
|
+
this.e9_1 = 7;
|
|
821
|
+
this.d9_1 = 5;
|
|
822
822
|
continue $sm;
|
|
823
823
|
case 5:
|
|
824
|
-
var tmp_0 = this.
|
|
825
|
-
this.
|
|
826
|
-
this.
|
|
824
|
+
var tmp_0 = this.c55_1;
|
|
825
|
+
this.e9_1 = 7;
|
|
826
|
+
this.b55_1.n1j(this.a55_1);
|
|
827
827
|
return tmp_0;
|
|
828
828
|
case 6:
|
|
829
|
-
this.
|
|
830
|
-
var t = this.
|
|
831
|
-
this.
|
|
829
|
+
this.e9_1 = 7;
|
|
830
|
+
var t = this.g9_1;
|
|
831
|
+
this.b55_1.n1j(this.a55_1);
|
|
832
832
|
throw t;
|
|
833
833
|
case 7:
|
|
834
|
-
throw this.
|
|
834
|
+
throw this.g9_1;
|
|
835
835
|
}
|
|
836
836
|
} catch ($p) {
|
|
837
837
|
var e = $p;
|
|
838
|
-
if (this.
|
|
838
|
+
if (this.e9_1 === 7) {
|
|
839
839
|
throw e;
|
|
840
840
|
} else {
|
|
841
|
-
this.
|
|
842
|
-
this.
|
|
841
|
+
this.d9_1 = this.e9_1;
|
|
842
|
+
this.g9_1 = e;
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
while (true);
|
|
846
846
|
};
|
|
847
|
-
protoOf(AuthTokenHolder$setToken$slambda).
|
|
848
|
-
var i = new AuthTokenHolder$setToken$slambda(this.
|
|
849
|
-
i.
|
|
847
|
+
protoOf(AuthTokenHolder$setToken$slambda).w1x = function ($this$withContext, completion) {
|
|
848
|
+
var i = new AuthTokenHolder$setToken$slambda(this.v54_1, this.w54_1, this.x54_1, this.y54_1, completion);
|
|
849
|
+
i.z54_1 = $this$withContext;
|
|
850
850
|
return i;
|
|
851
851
|
};
|
|
852
852
|
function AuthTokenHolder$setToken$slambda_0(this$0, $prevValue, $lockedByLoad, $block, resultContinuation) {
|
|
853
853
|
var i = new AuthTokenHolder$setToken$slambda(this$0, $prevValue, $lockedByLoad, $block, resultContinuation);
|
|
854
854
|
var l = function ($this$withContext, $completion) {
|
|
855
|
-
return i.
|
|
855
|
+
return i.d55($this$withContext, $completion);
|
|
856
856
|
};
|
|
857
857
|
l.$arity = 1;
|
|
858
858
|
return l;
|
|
859
859
|
}
|
|
860
860
|
function $loadTokenCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
861
861
|
CoroutineImpl.call(this, resultContinuation);
|
|
862
|
-
this.
|
|
862
|
+
this.s55_1 = _this__u8e3s4;
|
|
863
863
|
}
|
|
864
|
-
protoOf($loadTokenCOROUTINE$).
|
|
865
|
-
var suspendResult = this.
|
|
864
|
+
protoOf($loadTokenCOROUTINE$).l9 = function () {
|
|
865
|
+
var suspendResult = this.f9_1;
|
|
866
866
|
$sm: do
|
|
867
867
|
try {
|
|
868
|
-
var tmp = this.
|
|
868
|
+
var tmp = this.d9_1;
|
|
869
869
|
switch (tmp) {
|
|
870
870
|
case 0:
|
|
871
|
-
this.
|
|
872
|
-
if (!this.
|
|
873
|
-
this.
|
|
874
|
-
suspendResult = this.
|
|
871
|
+
this.e9_1 = 14;
|
|
872
|
+
if (!this.s55_1.f55_1) {
|
|
873
|
+
this.d9_1 = 13;
|
|
874
|
+
suspendResult = this.s55_1.e55_1(this);
|
|
875
875
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
876
876
|
return suspendResult;
|
|
877
877
|
}
|
|
878
878
|
continue $sm;
|
|
879
879
|
} else {
|
|
880
|
-
this.
|
|
880
|
+
this.d9_1 = 1;
|
|
881
881
|
continue $sm;
|
|
882
882
|
}
|
|
883
883
|
|
|
884
884
|
case 1:
|
|
885
|
-
if (!(this.
|
|
886
|
-
return this.
|
|
887
|
-
this.
|
|
888
|
-
if (!(this.
|
|
889
|
-
this.
|
|
890
|
-
suspendResult = this.
|
|
885
|
+
if (!(this.s55_1.g55_1 == null))
|
|
886
|
+
return this.s55_1.g55_1;
|
|
887
|
+
this.x55_1 = this.s55_1.g55_1;
|
|
888
|
+
if (!(this.j9().q9(Companion_instance) == null)) {
|
|
889
|
+
this.d9_1 = 11;
|
|
890
|
+
suspendResult = this.s55_1.e55_1(this);
|
|
891
891
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
892
892
|
return suspendResult;
|
|
893
893
|
}
|
|
894
894
|
continue $sm;
|
|
895
895
|
} else {
|
|
896
|
-
this.
|
|
897
|
-
this.
|
|
898
|
-
this.
|
|
899
|
-
suspendResult = this.
|
|
896
|
+
this.v55_1 = this.s55_1.i55_1;
|
|
897
|
+
this.u55_1 = null;
|
|
898
|
+
this.d9_1 = 2;
|
|
899
|
+
suspendResult = this.v55_1.b1k(this.u55_1, this);
|
|
900
900
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
901
901
|
return suspendResult;
|
|
902
902
|
}
|
|
@@ -904,109 +904,109 @@
|
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
case 2:
|
|
907
|
-
this.
|
|
908
|
-
this.
|
|
907
|
+
this.w55_1 = Unit_instance;
|
|
908
|
+
this.d9_1 = 3;
|
|
909
909
|
continue $sm;
|
|
910
910
|
case 3:
|
|
911
|
-
this.
|
|
912
|
-
this.
|
|
913
|
-
this.
|
|
911
|
+
this.e9_1 = 10;
|
|
912
|
+
this.s55_1.h55_1 = true;
|
|
913
|
+
this.d9_1 = 4;
|
|
914
914
|
continue $sm;
|
|
915
915
|
case 4:
|
|
916
|
-
this.
|
|
917
|
-
if (equals(this.
|
|
918
|
-
this.
|
|
919
|
-
suspendResult = this.
|
|
916
|
+
this.e9_1 = 9;
|
|
917
|
+
if (equals(this.x55_1, this.s55_1.g55_1)) {
|
|
918
|
+
this.d9_1 = 5;
|
|
919
|
+
suspendResult = this.s55_1.e55_1(this);
|
|
920
920
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
921
921
|
return suspendResult;
|
|
922
922
|
}
|
|
923
923
|
continue $sm;
|
|
924
924
|
} else {
|
|
925
|
-
this.
|
|
925
|
+
this.d9_1 = 6;
|
|
926
926
|
continue $sm;
|
|
927
927
|
}
|
|
928
928
|
|
|
929
929
|
case 5:
|
|
930
930
|
var ARGUMENT = suspendResult;
|
|
931
|
-
this.
|
|
932
|
-
this.
|
|
931
|
+
this.s55_1.g55_1 = ARGUMENT;
|
|
932
|
+
this.d9_1 = 6;
|
|
933
933
|
continue $sm;
|
|
934
934
|
case 6:
|
|
935
|
-
this.
|
|
935
|
+
this.d9_1 = 7;
|
|
936
936
|
continue $sm;
|
|
937
937
|
case 7:
|
|
938
|
-
this.
|
|
939
|
-
this.
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
942
|
-
this.
|
|
938
|
+
this.e9_1 = 10;
|
|
939
|
+
this.s55_1.h55_1 = false;
|
|
940
|
+
this.w55_1 = this.s55_1.g55_1;
|
|
941
|
+
this.e9_1 = 14;
|
|
942
|
+
this.d9_1 = 8;
|
|
943
943
|
continue $sm;
|
|
944
944
|
case 8:
|
|
945
|
-
var tmp_0 = this.
|
|
946
|
-
this.
|
|
947
|
-
this.
|
|
948
|
-
this.
|
|
949
|
-
this.
|
|
945
|
+
var tmp_0 = this.w55_1;
|
|
946
|
+
this.e9_1 = 14;
|
|
947
|
+
this.v55_1.n1j(this.u55_1);
|
|
948
|
+
this.t55_1 = tmp_0;
|
|
949
|
+
this.d9_1 = 12;
|
|
950
950
|
continue $sm;
|
|
951
951
|
case 9:
|
|
952
|
-
this.
|
|
953
|
-
var t = this.
|
|
954
|
-
this.
|
|
952
|
+
this.e9_1 = 10;
|
|
953
|
+
var t = this.g9_1;
|
|
954
|
+
this.s55_1.h55_1 = false;
|
|
955
955
|
throw t;
|
|
956
956
|
case 10:
|
|
957
|
-
this.
|
|
958
|
-
var t_0 = this.
|
|
959
|
-
this.
|
|
957
|
+
this.e9_1 = 14;
|
|
958
|
+
var t_0 = this.g9_1;
|
|
959
|
+
this.v55_1.n1j(this.u55_1);
|
|
960
960
|
throw t_0;
|
|
961
961
|
case 11:
|
|
962
962
|
var ARGUMENT_0 = suspendResult;
|
|
963
|
-
this.
|
|
964
|
-
this.
|
|
965
|
-
this.
|
|
963
|
+
this.s55_1.g55_1 = ARGUMENT_0;
|
|
964
|
+
this.t55_1 = this.s55_1.g55_1;
|
|
965
|
+
this.d9_1 = 12;
|
|
966
966
|
continue $sm;
|
|
967
967
|
case 12:
|
|
968
|
-
return this.
|
|
968
|
+
return this.t55_1;
|
|
969
969
|
case 13:
|
|
970
970
|
return suspendResult;
|
|
971
971
|
case 14:
|
|
972
|
-
throw this.
|
|
972
|
+
throw this.g9_1;
|
|
973
973
|
}
|
|
974
974
|
} catch ($p) {
|
|
975
975
|
var e = $p;
|
|
976
|
-
if (this.
|
|
976
|
+
if (this.e9_1 === 14) {
|
|
977
977
|
throw e;
|
|
978
978
|
} else {
|
|
979
|
-
this.
|
|
980
|
-
this.
|
|
979
|
+
this.d9_1 = this.e9_1;
|
|
980
|
+
this.g9_1 = e;
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
983
|
while (true);
|
|
984
984
|
};
|
|
985
985
|
function AuthTokenHolder(loadTokens, cacheTokens) {
|
|
986
986
|
cacheTokens = cacheTokens === VOID ? true : cacheTokens;
|
|
987
|
-
this.
|
|
988
|
-
this.
|
|
989
|
-
this.
|
|
990
|
-
this.
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
987
|
+
this.e55_1 = loadTokens;
|
|
988
|
+
this.f55_1 = cacheTokens;
|
|
989
|
+
this.g55_1 = null;
|
|
990
|
+
this.h55_1 = false;
|
|
991
|
+
this.i55_1 = Mutex();
|
|
992
|
+
this.j55_1 = new SetTokenContext();
|
|
993
993
|
}
|
|
994
|
-
protoOf(AuthTokenHolder).
|
|
994
|
+
protoOf(AuthTokenHolder).y55 = function ($completion) {
|
|
995
995
|
var tmp = new $loadTokenCOROUTINE$(this, $completion);
|
|
996
|
-
tmp.
|
|
997
|
-
tmp.
|
|
998
|
-
return tmp.
|
|
996
|
+
tmp.f9_1 = Unit_instance;
|
|
997
|
+
tmp.g9_1 = null;
|
|
998
|
+
return tmp.l9();
|
|
999
999
|
};
|
|
1000
|
-
protoOf(AuthTokenHolder).
|
|
1001
|
-
var prevValue = this.
|
|
1002
|
-
var lockedByLoad = this.
|
|
1000
|
+
protoOf(AuthTokenHolder).z55 = function (nonCancellable, block, $completion) {
|
|
1001
|
+
var prevValue = this.g55_1;
|
|
1002
|
+
var lockedByLoad = this.h55_1;
|
|
1003
1003
|
var tmp;
|
|
1004
1004
|
if (nonCancellable) {
|
|
1005
1005
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1006
|
-
tmp = $completion.
|
|
1006
|
+
tmp = $completion.j9().ch(NonCancellable_getInstance()).ch(this.j55_1);
|
|
1007
1007
|
} else {
|
|
1008
1008
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1009
|
-
tmp = $completion.
|
|
1009
|
+
tmp = $completion.j9().ch(this.j55_1);
|
|
1010
1010
|
}
|
|
1011
1011
|
var context = tmp;
|
|
1012
1012
|
return withContext(context, AuthTokenHolder$setToken$slambda_0(this, prevValue, lockedByLoad, block, null), $completion);
|
|
@@ -1016,30 +1016,30 @@
|
|
|
1016
1016
|
var this_0 = new BearerAuthConfig();
|
|
1017
1017
|
block(this_0);
|
|
1018
1018
|
// Inline function 'kotlin.with' call
|
|
1019
|
-
_this__u8e3s4.
|
|
1019
|
+
_this__u8e3s4.t51_1.j1(new BearerAuthProvider(this_0.a56_1, this_0.b56_1, this_0.c56_1, this_0.d56_1, this_0.e56_1, this_0.f56_1));
|
|
1020
1020
|
}
|
|
1021
1021
|
function BearerAuthConfig$refreshTokens$slambda(resultContinuation) {
|
|
1022
1022
|
CoroutineImpl.call(this, resultContinuation);
|
|
1023
1023
|
}
|
|
1024
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1025
|
-
var tmp = this.
|
|
1026
|
-
tmp.
|
|
1027
|
-
tmp.
|
|
1028
|
-
return tmp.
|
|
1024
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).p56 = function (_this__u8e3s4, $completion) {
|
|
1025
|
+
var tmp = this.q56(_this__u8e3s4, $completion);
|
|
1026
|
+
tmp.f9_1 = Unit_instance;
|
|
1027
|
+
tmp.g9_1 = null;
|
|
1028
|
+
return tmp.l9();
|
|
1029
1029
|
};
|
|
1030
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1031
|
-
return this.
|
|
1030
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).y9 = function (p1, $completion) {
|
|
1031
|
+
return this.p56(p1 instanceof RefreshTokensParams ? p1 : THROW_CCE(), $completion);
|
|
1032
1032
|
};
|
|
1033
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1034
|
-
var suspendResult = this.
|
|
1033
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).l9 = function () {
|
|
1034
|
+
var suspendResult = this.f9_1;
|
|
1035
1035
|
$sm: do
|
|
1036
1036
|
try {
|
|
1037
|
-
var tmp = this.
|
|
1037
|
+
var tmp = this.d9_1;
|
|
1038
1038
|
if (tmp === 0) {
|
|
1039
|
-
this.
|
|
1039
|
+
this.e9_1 = 1;
|
|
1040
1040
|
return null;
|
|
1041
1041
|
} else if (tmp === 1) {
|
|
1042
|
-
throw this.
|
|
1042
|
+
throw this.g9_1;
|
|
1043
1043
|
}
|
|
1044
1044
|
} catch ($p) {
|
|
1045
1045
|
var e = $p;
|
|
@@ -1047,15 +1047,15 @@
|
|
|
1047
1047
|
}
|
|
1048
1048
|
while (true);
|
|
1049
1049
|
};
|
|
1050
|
-
protoOf(BearerAuthConfig$refreshTokens$slambda).
|
|
1050
|
+
protoOf(BearerAuthConfig$refreshTokens$slambda).q56 = function (_this__u8e3s4, completion) {
|
|
1051
1051
|
var i = new BearerAuthConfig$refreshTokens$slambda(completion);
|
|
1052
|
-
i.
|
|
1052
|
+
i.o56_1 = _this__u8e3s4;
|
|
1053
1053
|
return i;
|
|
1054
1054
|
};
|
|
1055
1055
|
function BearerAuthConfig$refreshTokens$slambda_0(resultContinuation) {
|
|
1056
1056
|
var i = new BearerAuthConfig$refreshTokens$slambda(resultContinuation);
|
|
1057
1057
|
var l = function (_this__u8e3s4, $completion) {
|
|
1058
|
-
return i.
|
|
1058
|
+
return i.p56(_this__u8e3s4, $completion);
|
|
1059
1059
|
};
|
|
1060
1060
|
l.$arity = 1;
|
|
1061
1061
|
return l;
|
|
@@ -1063,25 +1063,25 @@
|
|
|
1063
1063
|
function BearerAuthConfig$loadTokens$slambda(resultContinuation) {
|
|
1064
1064
|
CoroutineImpl.call(this, resultContinuation);
|
|
1065
1065
|
}
|
|
1066
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1067
|
-
var tmp = this.
|
|
1068
|
-
tmp.
|
|
1069
|
-
tmp.
|
|
1070
|
-
return tmp.
|
|
1066
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).z56 = function ($completion) {
|
|
1067
|
+
var tmp = this.r2u($completion);
|
|
1068
|
+
tmp.f9_1 = Unit_instance;
|
|
1069
|
+
tmp.g9_1 = null;
|
|
1070
|
+
return tmp.l9();
|
|
1071
1071
|
};
|
|
1072
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1073
|
-
return this.
|
|
1072
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).x9 = function ($completion) {
|
|
1073
|
+
return this.z56($completion);
|
|
1074
1074
|
};
|
|
1075
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1076
|
-
var suspendResult = this.
|
|
1075
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).l9 = function () {
|
|
1076
|
+
var suspendResult = this.f9_1;
|
|
1077
1077
|
$sm: do
|
|
1078
1078
|
try {
|
|
1079
|
-
var tmp = this.
|
|
1079
|
+
var tmp = this.d9_1;
|
|
1080
1080
|
if (tmp === 0) {
|
|
1081
|
-
this.
|
|
1081
|
+
this.e9_1 = 1;
|
|
1082
1082
|
return null;
|
|
1083
1083
|
} else if (tmp === 1) {
|
|
1084
|
-
throw this.
|
|
1084
|
+
throw this.g9_1;
|
|
1085
1085
|
}
|
|
1086
1086
|
} catch ($p) {
|
|
1087
1087
|
var e = $p;
|
|
@@ -1089,13 +1089,13 @@
|
|
|
1089
1089
|
}
|
|
1090
1090
|
while (true);
|
|
1091
1091
|
};
|
|
1092
|
-
protoOf(BearerAuthConfig$loadTokens$slambda).
|
|
1092
|
+
protoOf(BearerAuthConfig$loadTokens$slambda).r2u = function (completion) {
|
|
1093
1093
|
return new BearerAuthConfig$loadTokens$slambda(completion);
|
|
1094
1094
|
};
|
|
1095
1095
|
function BearerAuthConfig$loadTokens$slambda_0(resultContinuation) {
|
|
1096
1096
|
var i = new BearerAuthConfig$loadTokens$slambda(resultContinuation);
|
|
1097
1097
|
var l = function ($completion) {
|
|
1098
|
-
return i.
|
|
1098
|
+
return i.z56($completion);
|
|
1099
1099
|
};
|
|
1100
1100
|
l.$arity = 0;
|
|
1101
1101
|
return l;
|
|
@@ -1105,75 +1105,75 @@
|
|
|
1105
1105
|
}
|
|
1106
1106
|
function BearerAuthConfig() {
|
|
1107
1107
|
var tmp = this;
|
|
1108
|
-
tmp.
|
|
1108
|
+
tmp.a56_1 = BearerAuthConfig$refreshTokens$slambda_0(null);
|
|
1109
1109
|
var tmp_0 = this;
|
|
1110
|
-
tmp_0.
|
|
1110
|
+
tmp_0.b56_1 = BearerAuthConfig$loadTokens$slambda_0(null);
|
|
1111
1111
|
var tmp_1 = this;
|
|
1112
|
-
tmp_1.
|
|
1113
|
-
this.
|
|
1114
|
-
this.
|
|
1115
|
-
this.
|
|
1112
|
+
tmp_1.c56_1 = BearerAuthConfig$sendWithoutRequest$lambda;
|
|
1113
|
+
this.d56_1 = null;
|
|
1114
|
+
this.e56_1 = true;
|
|
1115
|
+
this.f56_1 = false;
|
|
1116
1116
|
}
|
|
1117
|
-
protoOf(BearerAuthConfig).
|
|
1118
|
-
this.
|
|
1117
|
+
protoOf(BearerAuthConfig).a57 = function (block) {
|
|
1118
|
+
this.a56_1 = block;
|
|
1119
1119
|
};
|
|
1120
1120
|
function RefreshTokensParams(client, response, oldTokens) {
|
|
1121
|
-
this.
|
|
1122
|
-
this.
|
|
1123
|
-
this.
|
|
1121
|
+
this.b57_1 = client;
|
|
1122
|
+
this.c57_1 = response;
|
|
1123
|
+
this.d57_1 = oldTokens;
|
|
1124
1124
|
}
|
|
1125
|
-
protoOf(RefreshTokensParams).
|
|
1126
|
-
_this__u8e3s4.
|
|
1125
|
+
protoOf(RefreshTokensParams).e57 = function (_this__u8e3s4) {
|
|
1126
|
+
_this__u8e3s4.s3r_1.v2k(get_AuthCircuitBreaker(), Unit_instance);
|
|
1127
1127
|
};
|
|
1128
1128
|
function BearerTokens(accessToken, refreshToken) {
|
|
1129
|
-
this.
|
|
1130
|
-
this.
|
|
1129
|
+
this.f57_1 = accessToken;
|
|
1130
|
+
this.g57_1 = refreshToken;
|
|
1131
1131
|
}
|
|
1132
1132
|
function BearerAuthProvider$_init_$lambda_lcdiwf(it) {
|
|
1133
1133
|
return true;
|
|
1134
1134
|
}
|
|
1135
1135
|
function BearerAuthProvider$addRequestHeaders$lambda($token, $request) {
|
|
1136
1136
|
return function ($this$headers) {
|
|
1137
|
-
var tokenValue = 'Bearer ' + $token.
|
|
1137
|
+
var tokenValue = 'Bearer ' + $token.f57_1;
|
|
1138
1138
|
var tmp;
|
|
1139
|
-
if ($this$headers.
|
|
1140
|
-
$this$headers.
|
|
1139
|
+
if ($this$headers.b2o('Authorization')) {
|
|
1140
|
+
$this$headers.t2p('Authorization');
|
|
1141
1141
|
tmp = Unit_instance;
|
|
1142
1142
|
}
|
|
1143
1143
|
var tmp_0;
|
|
1144
|
-
if (!$request.
|
|
1145
|
-
$this$headers.
|
|
1144
|
+
if (!$request.s3r_1.u2k(get_AuthCircuitBreaker())) {
|
|
1145
|
+
$this$headers.f2p('Authorization', tokenValue);
|
|
1146
1146
|
tmp_0 = Unit_instance;
|
|
1147
1147
|
}
|
|
1148
1148
|
return Unit_instance;
|
|
1149
1149
|
};
|
|
1150
1150
|
}
|
|
1151
1151
|
function BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation) {
|
|
1152
|
-
this.
|
|
1153
|
-
this.
|
|
1152
|
+
this.p57_1 = this$0;
|
|
1153
|
+
this.q57_1 = $response;
|
|
1154
1154
|
CoroutineImpl.call(this, resultContinuation);
|
|
1155
1155
|
}
|
|
1156
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1157
|
-
var tmp = this.
|
|
1158
|
-
tmp.
|
|
1159
|
-
tmp.
|
|
1160
|
-
return tmp.
|
|
1156
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).z56 = function ($completion) {
|
|
1157
|
+
var tmp = this.r2u($completion);
|
|
1158
|
+
tmp.f9_1 = Unit_instance;
|
|
1159
|
+
tmp.g9_1 = null;
|
|
1160
|
+
return tmp.l9();
|
|
1161
1161
|
};
|
|
1162
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1163
|
-
return this.
|
|
1162
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).x9 = function ($completion) {
|
|
1163
|
+
return this.z56($completion);
|
|
1164
1164
|
};
|
|
1165
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1166
|
-
var suspendResult = this.
|
|
1165
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).l9 = function () {
|
|
1166
|
+
var suspendResult = this.f9_1;
|
|
1167
1167
|
$sm: do
|
|
1168
1168
|
try {
|
|
1169
|
-
var tmp = this.
|
|
1169
|
+
var tmp = this.d9_1;
|
|
1170
1170
|
switch (tmp) {
|
|
1171
1171
|
case 0:
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1176
|
-
suspendResult = this.
|
|
1172
|
+
this.e9_1 = 3;
|
|
1173
|
+
this.r57_1 = this.p57_1.t57_1;
|
|
1174
|
+
this.s57_1 = this.q57_1.c3t().i3q_1;
|
|
1175
|
+
this.d9_1 = 1;
|
|
1176
|
+
suspendResult = this.p57_1.x57_1.y55(this);
|
|
1177
1177
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1178
1178
|
return suspendResult;
|
|
1179
1179
|
}
|
|
@@ -1181,9 +1181,9 @@
|
|
|
1181
1181
|
continue $sm;
|
|
1182
1182
|
case 1:
|
|
1183
1183
|
var ARGUMENT = suspendResult;
|
|
1184
|
-
var ARGUMENT_0 = new RefreshTokensParams(this.
|
|
1185
|
-
this.
|
|
1186
|
-
suspendResult = this.
|
|
1184
|
+
var ARGUMENT_0 = new RefreshTokensParams(this.s57_1, this.q57_1, ARGUMENT);
|
|
1185
|
+
this.d9_1 = 2;
|
|
1186
|
+
suspendResult = this.r57_1(ARGUMENT_0, this);
|
|
1187
1187
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1188
1188
|
return suspendResult;
|
|
1189
1189
|
}
|
|
@@ -1192,46 +1192,46 @@
|
|
|
1192
1192
|
case 2:
|
|
1193
1193
|
return suspendResult;
|
|
1194
1194
|
case 3:
|
|
1195
|
-
throw this.
|
|
1195
|
+
throw this.g9_1;
|
|
1196
1196
|
}
|
|
1197
1197
|
} catch ($p) {
|
|
1198
1198
|
var e = $p;
|
|
1199
|
-
if (this.
|
|
1199
|
+
if (this.e9_1 === 3) {
|
|
1200
1200
|
throw e;
|
|
1201
1201
|
} else {
|
|
1202
|
-
this.
|
|
1203
|
-
this.
|
|
1202
|
+
this.d9_1 = this.e9_1;
|
|
1203
|
+
this.g9_1 = e;
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
1206
|
while (true);
|
|
1207
1207
|
};
|
|
1208
|
-
protoOf(BearerAuthProvider$refreshToken$slambda).
|
|
1209
|
-
return new BearerAuthProvider$refreshToken$slambda(this.
|
|
1208
|
+
protoOf(BearerAuthProvider$refreshToken$slambda).r2u = function (completion) {
|
|
1209
|
+
return new BearerAuthProvider$refreshToken$slambda(this.p57_1, this.q57_1, completion);
|
|
1210
1210
|
};
|
|
1211
1211
|
function BearerAuthProvider$refreshToken$slambda_0(this$0, $response, resultContinuation) {
|
|
1212
1212
|
var i = new BearerAuthProvider$refreshToken$slambda(this$0, $response, resultContinuation);
|
|
1213
1213
|
var l = function ($completion) {
|
|
1214
|
-
return i.
|
|
1214
|
+
return i.z56($completion);
|
|
1215
1215
|
};
|
|
1216
1216
|
l.$arity = 0;
|
|
1217
1217
|
return l;
|
|
1218
1218
|
}
|
|
1219
1219
|
function $addRequestHeadersCOROUTINE$(_this__u8e3s4, request, authHeader, resultContinuation) {
|
|
1220
1220
|
CoroutineImpl.call(this, resultContinuation);
|
|
1221
|
-
this.
|
|
1222
|
-
this.
|
|
1223
|
-
this.
|
|
1221
|
+
this.g58_1 = _this__u8e3s4;
|
|
1222
|
+
this.h58_1 = request;
|
|
1223
|
+
this.i58_1 = authHeader;
|
|
1224
1224
|
}
|
|
1225
|
-
protoOf($addRequestHeadersCOROUTINE$).
|
|
1226
|
-
var suspendResult = this.
|
|
1225
|
+
protoOf($addRequestHeadersCOROUTINE$).l9 = function () {
|
|
1226
|
+
var suspendResult = this.f9_1;
|
|
1227
1227
|
$sm: do
|
|
1228
1228
|
try {
|
|
1229
|
-
var tmp = this.
|
|
1229
|
+
var tmp = this.d9_1;
|
|
1230
1230
|
switch (tmp) {
|
|
1231
1231
|
case 0:
|
|
1232
|
-
this.
|
|
1233
|
-
this.
|
|
1234
|
-
suspendResult = this.
|
|
1232
|
+
this.e9_1 = 2;
|
|
1233
|
+
this.d9_1 = 1;
|
|
1234
|
+
suspendResult = this.g58_1.x57_1.y55(this);
|
|
1235
1235
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1236
1236
|
return suspendResult;
|
|
1237
1237
|
}
|
|
@@ -1247,37 +1247,37 @@
|
|
|
1247
1247
|
}
|
|
1248
1248
|
|
|
1249
1249
|
var token = tmp_0;
|
|
1250
|
-
headers(this.
|
|
1250
|
+
headers(this.h58_1, BearerAuthProvider$addRequestHeaders$lambda(token, this.h58_1));
|
|
1251
1251
|
return Unit_instance;
|
|
1252
1252
|
case 2:
|
|
1253
|
-
throw this.
|
|
1253
|
+
throw this.g9_1;
|
|
1254
1254
|
}
|
|
1255
1255
|
} catch ($p) {
|
|
1256
1256
|
var e = $p;
|
|
1257
|
-
if (this.
|
|
1257
|
+
if (this.e9_1 === 2) {
|
|
1258
1258
|
throw e;
|
|
1259
1259
|
} else {
|
|
1260
|
-
this.
|
|
1261
|
-
this.
|
|
1260
|
+
this.d9_1 = this.e9_1;
|
|
1261
|
+
this.g9_1 = e;
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
1264
|
while (true);
|
|
1265
1265
|
};
|
|
1266
1266
|
function $refreshTokenCOROUTINE$(_this__u8e3s4, response, resultContinuation) {
|
|
1267
1267
|
CoroutineImpl.call(this, resultContinuation);
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1268
|
+
this.r58_1 = _this__u8e3s4;
|
|
1269
|
+
this.s58_1 = response;
|
|
1270
1270
|
}
|
|
1271
|
-
protoOf($refreshTokenCOROUTINE$).
|
|
1272
|
-
var suspendResult = this.
|
|
1271
|
+
protoOf($refreshTokenCOROUTINE$).l9 = function () {
|
|
1272
|
+
var suspendResult = this.f9_1;
|
|
1273
1273
|
$sm: do
|
|
1274
1274
|
try {
|
|
1275
|
-
var tmp = this.
|
|
1275
|
+
var tmp = this.d9_1;
|
|
1276
1276
|
switch (tmp) {
|
|
1277
1277
|
case 0:
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1280
|
-
suspendResult = this.
|
|
1278
|
+
this.e9_1 = 2;
|
|
1279
|
+
this.d9_1 = 1;
|
|
1280
|
+
suspendResult = this.r58_1.x57_1.z55(this.r58_1.w57_1, BearerAuthProvider$refreshToken$slambda_0(this.r58_1, this.s58_1, null), this);
|
|
1281
1281
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1282
1282
|
return suspendResult;
|
|
1283
1283
|
}
|
|
@@ -1287,15 +1287,15 @@
|
|
|
1287
1287
|
var newToken = suspendResult;
|
|
1288
1288
|
return !(newToken == null);
|
|
1289
1289
|
case 2:
|
|
1290
|
-
throw this.
|
|
1290
|
+
throw this.g9_1;
|
|
1291
1291
|
}
|
|
1292
1292
|
} catch ($p) {
|
|
1293
1293
|
var e = $p;
|
|
1294
|
-
if (this.
|
|
1294
|
+
if (this.e9_1 === 2) {
|
|
1295
1295
|
throw e;
|
|
1296
1296
|
} else {
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1297
|
+
this.d9_1 = this.e9_1;
|
|
1298
|
+
this.g9_1 = e;
|
|
1299
1299
|
}
|
|
1300
1300
|
}
|
|
1301
1301
|
while (true);
|
|
@@ -1310,59 +1310,59 @@
|
|
|
1310
1310
|
sendWithoutRequestCallback = tmp;
|
|
1311
1311
|
cacheTokens = cacheTokens === VOID ? true : cacheTokens;
|
|
1312
1312
|
nonCancellableRefresh = nonCancellableRefresh === VOID ? false : nonCancellableRefresh;
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1317
|
-
this.
|
|
1313
|
+
this.t57_1 = refreshTokens;
|
|
1314
|
+
this.u57_1 = sendWithoutRequestCallback;
|
|
1315
|
+
this.v57_1 = realm;
|
|
1316
|
+
this.w57_1 = nonCancellableRefresh;
|
|
1317
|
+
this.x57_1 = new AuthTokenHolder(loadTokens, cacheTokens);
|
|
1318
1318
|
}
|
|
1319
|
-
protoOf(BearerAuthProvider).
|
|
1319
|
+
protoOf(BearerAuthProvider).m54 = function () {
|
|
1320
1320
|
// Inline function 'kotlin.error' call
|
|
1321
1321
|
var message = 'Deprecated';
|
|
1322
1322
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1323
1323
|
};
|
|
1324
|
-
protoOf(BearerAuthProvider).
|
|
1325
|
-
return this.
|
|
1324
|
+
protoOf(BearerAuthProvider).p53 = function (request) {
|
|
1325
|
+
return this.u57_1(request);
|
|
1326
1326
|
};
|
|
1327
|
-
protoOf(BearerAuthProvider).
|
|
1328
|
-
if (!(auth.
|
|
1329
|
-
get_LOGGER().
|
|
1327
|
+
protoOf(BearerAuthProvider).w51 = function (auth) {
|
|
1328
|
+
if (!(auth.e37_1 === 'Bearer')) {
|
|
1329
|
+
get_LOGGER().f2u('Bearer Auth Provider is not applicable for ' + auth.toString());
|
|
1330
1330
|
return false;
|
|
1331
1331
|
}
|
|
1332
1332
|
var tmp;
|
|
1333
|
-
if (this.
|
|
1333
|
+
if (this.v57_1 == null) {
|
|
1334
1334
|
tmp = true;
|
|
1335
1335
|
} else {
|
|
1336
1336
|
if (!(auth instanceof Parameterized)) {
|
|
1337
1337
|
tmp = false;
|
|
1338
1338
|
} else {
|
|
1339
|
-
tmp = auth.
|
|
1339
|
+
tmp = auth.e2x('realm') == this.v57_1;
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
1342
|
var isSameRealm = tmp;
|
|
1343
1343
|
if (!isSameRealm) {
|
|
1344
|
-
get_LOGGER().
|
|
1344
|
+
get_LOGGER().f2u('Bearer Auth Provider is not applicable for this realm');
|
|
1345
1345
|
}
|
|
1346
1346
|
return isSameRealm;
|
|
1347
1347
|
};
|
|
1348
|
-
protoOf(BearerAuthProvider).
|
|
1348
|
+
protoOf(BearerAuthProvider).l54 = function (request, authHeader, $completion) {
|
|
1349
1349
|
var tmp = new $addRequestHeadersCOROUTINE$(this, request, authHeader, $completion);
|
|
1350
|
-
tmp.
|
|
1351
|
-
tmp.
|
|
1352
|
-
return tmp.
|
|
1350
|
+
tmp.f9_1 = Unit_instance;
|
|
1351
|
+
tmp.g9_1 = null;
|
|
1352
|
+
return tmp.l9();
|
|
1353
1353
|
};
|
|
1354
|
-
protoOf(BearerAuthProvider).
|
|
1354
|
+
protoOf(BearerAuthProvider).k54 = function (response, $completion) {
|
|
1355
1355
|
var tmp = new $refreshTokenCOROUTINE$(this, response, $completion);
|
|
1356
|
-
tmp.
|
|
1357
|
-
tmp.
|
|
1358
|
-
return tmp.
|
|
1356
|
+
tmp.f9_1 = Unit_instance;
|
|
1357
|
+
tmp.g9_1 = null;
|
|
1358
|
+
return tmp.l9();
|
|
1359
1359
|
};
|
|
1360
1360
|
//region block: post-declaration
|
|
1361
|
-
protoOf(SetTokenContext).
|
|
1362
|
-
protoOf(SetTokenContext).
|
|
1363
|
-
protoOf(SetTokenContext).
|
|
1364
|
-
protoOf(SetTokenContext).
|
|
1365
|
-
protoOf(BearerAuthProvider).
|
|
1361
|
+
protoOf(SetTokenContext).q9 = get;
|
|
1362
|
+
protoOf(SetTokenContext).bh = fold;
|
|
1363
|
+
protoOf(SetTokenContext).ah = minusKey;
|
|
1364
|
+
protoOf(SetTokenContext).ch = plus;
|
|
1365
|
+
protoOf(BearerAuthProvider).q53 = addRequestHeaders$default;
|
|
1366
1366
|
//endregion
|
|
1367
1367
|
//region block: init
|
|
1368
1368
|
Companion_instance = new Companion();
|