@icure/cardinal-sdk 2.0.0-PREVIEW-10 → 2.0.0-PREVIEW-13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kermit-kermit-core.mjs +42 -42
- package/Kermit-kermit.mjs +8 -8
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +3919 -3777
- package/KotlinBigInteger-bignum.mjs +1434 -1470
- package/api/AnonymousHealthcarePartyApi.d.mts +2 -2
- package/cardinal-sdk-ts.d.mts +338 -100
- package/cardinal-sdk-ts.mjs +56590 -56248
- package/cardinal-sdk.mjs +126945 -106218
- package/kerberus.mjs +381 -381
- package/kotlin-kotlin-stdlib.mjs +3412 -2764
- package/kotlinx-atomicfu.mjs +14 -14
- package/kotlinx-coroutines-core.mjs +2690 -2687
- package/kotlinx-io-kotlinx-io-bytestring.mjs +47 -47
- package/kotlinx-io-kotlinx-io-core.mjs +539 -539
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2149 -2111
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +2047 -2029
- package/kryptom-lib.mjs +2065 -2081
- package/ktor-ktor-client-content-negotiation.mjs +217 -217
- package/ktor-ktor-client-core.mjs +2997 -2993
- package/ktor-ktor-events.mjs +8 -8
- package/ktor-ktor-http-cio.mjs +538 -537
- package/ktor-ktor-http.mjs +799 -927
- package/ktor-ktor-io.mjs +1079 -1079
- package/ktor-ktor-serialization-kotlinx-json.mjs +10 -10
- package/ktor-ktor-serialization-kotlinx.mjs +270 -270
- package/ktor-ktor-serialization.mjs +129 -129
- package/ktor-ktor-utils.mjs +614 -600
- package/ktor-ktor-websockets.mjs +751 -750
- package/model.d.mts +0 -1
- package/model.mjs +0 -1
- package/package.json +2 -3
- package/ktor-ktor-client-ktor-client-core.mjs +0 -8986
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.mjs +0 -756
- package/ktor-ktor-client-ktor-client-plugins-ktor-client-websockets.mjs +0 -2
- package/ktor-ktor-http-ktor-http-cio.mjs +0 -1996
- package/ktor-ktor-shared-ktor-events.mjs +0 -79
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.mjs +0 -44
- package/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.mjs +0 -857
- package/ktor-ktor-shared-ktor-serialization.mjs +0 -371
- package/ktor-ktor-shared-ktor-sse.mjs +0 -2
- package/ktor-ktor-shared-ktor-websocket-serialization.mjs +0 -2
- package/ktor-ktor-shared-ktor-websockets.mjs +0 -2334
- package/model/UserAndHealthcareParty.d.mts +0 -7
- package/model/UserAndHealthcareParty.mjs +0 -6
package/ktor-ktor-http.mjs
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
StringBuilder_init_$Create$
|
|
4
|
-
|
|
2
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
3
|
+
StringBuilder_init_$Create$2qsge4ydj6bin as StringBuilder_init_$Create$,
|
|
4
|
+
Unit_instance1fbcbse1fwigr as Unit_instance,
|
|
5
5
|
charArray2ujmm1qusno00 as charArray,
|
|
6
|
-
|
|
6
|
+
_Char___init__impl__6a9atx2js6krycynjoo as _Char___init__impl__6a9atx,
|
|
7
7
|
concatToString2syawgu50khxi as concatToString,
|
|
8
|
-
|
|
8
|
+
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
9
|
+
substringiqarkczpya5m as substring,
|
|
9
10
|
toString1pkumu07cwy4m as toString,
|
|
10
11
|
Char19o2r8palgjof as Char,
|
|
11
12
|
isSurrogatewe8xicw8z84n as isSurrogate,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
StringBuilder_init_$Create$
|
|
13
|
+
Char__plus_impl_qi7pgj3akekecdud2w6 as Char__plus_impl_qi7pgj,
|
|
14
|
+
Char__minus_impl_a2frrh3t0v4pviuv4om as Char__minus_impl_a2frrh,
|
|
15
|
+
StringBuilder_init_$Create$2ujvu6cqvzuyn as StringBuilder_init_$Create$_0,
|
|
16
|
+
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
15
17
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
16
18
|
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
17
|
-
|
|
19
|
+
toString3o7ifthqydp6e as toString_0,
|
|
18
20
|
toByte4i43936u611k as toByte,
|
|
19
21
|
decodeToString1dbzcjd620q25 as decodeToString,
|
|
20
22
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
21
|
-
Exception_init_$Init$
|
|
23
|
+
Exception_init_$Init$33ewqhqmjrfx6 as Exception_init_$Init$,
|
|
22
24
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
23
25
|
protoOf180f3jzyo7rfj as protoOf,
|
|
24
26
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
Char__minus_impl_a2frrh3548ixwefqxih as Char__minus_impl_a2frrh_0,
|
|
28
|
+
Char__toInt_impl_vasixd1agw9q2fuvclj as Char__toInt_impl_vasixd,
|
|
27
29
|
numberToChar93r9buh19yek as numberToChar,
|
|
28
|
-
|
|
30
|
+
Char__rangeTo_impl_tkncvp2wb70up86k2i2 as Char__rangeTo_impl_tkncvp,
|
|
29
31
|
plus39kp8wyage607 as plus,
|
|
30
32
|
plus310ted5e4i90h as plus_0,
|
|
31
33
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
32
|
-
ArrayList_init_$Create$
|
|
34
|
+
ArrayList_init_$Create$3bxttkj3v1mea as ArrayList_init_$Create$,
|
|
33
35
|
toSet2orjxp16sotqu as toSet,
|
|
34
36
|
setOf45ia9pnfhe90 as setOf,
|
|
35
37
|
plus1ogy4liedzq5j as plus_1,
|
|
@@ -45,6 +47,7 @@ import {
|
|
|
45
47
|
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
46
48
|
isCharSequence1ju9jr1w86plq as isCharSequence,
|
|
47
49
|
trim11nh7r46at6sx as trim,
|
|
50
|
+
substring3saq8ornu0luv as substring_0,
|
|
48
51
|
contains2el4s70rdq4ld as contains,
|
|
49
52
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
50
53
|
startsWith38d3sbg25w0lx as startsWith,
|
|
@@ -62,25 +65,25 @@ import {
|
|
|
62
65
|
emptyMapr06gerzljqtm as emptyMap,
|
|
63
66
|
listOfvhqybd2zx248 as listOf_0,
|
|
64
67
|
toDoubleOrNullkxwozihadygj as toDoubleOrNull,
|
|
65
|
-
|
|
68
|
+
LazyThreadSafetyMode_NONE_getInstance2ezxh11hvaa3w as LazyThreadSafetyMode_NONE_getInstance,
|
|
66
69
|
lazy1261dae0bgscp as lazy,
|
|
67
70
|
to2cs3ny02qtbcb as to,
|
|
68
71
|
sortedWith2csnbbb21k0lg as sortedWith,
|
|
69
72
|
FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
|
|
70
73
|
Comparator2b3maoeh98xtg as Comparator,
|
|
71
|
-
ArrayList_init_$Create$
|
|
74
|
+
ArrayList_init_$Create$149jv2ovkkvnt as ArrayList_init_$Create$_0,
|
|
72
75
|
compareValues1n2ayl87ihzfk as compareValues,
|
|
73
76
|
asList2ho2pewtsfvv as asList,
|
|
74
|
-
|
|
75
|
-
IllegalArgumentException_init_$Init$
|
|
77
|
+
Char__compareTo_impl_ypi4mbdrkik40uwhqc as Char__compareTo_impl_ypi4mb,
|
|
78
|
+
IllegalArgumentException_init_$Init$1ke5df1bctk2y as IllegalArgumentException_init_$Init$,
|
|
76
79
|
toLongkk4waq8msp1k as toLong,
|
|
77
80
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
78
81
|
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
79
|
-
LinkedHashMap_init_$Create$
|
|
82
|
+
LinkedHashMap_init_$Create$23uxki4opd0pn as LinkedHashMap_init_$Create$,
|
|
80
83
|
Comparable198qfk8pnblz0 as Comparable,
|
|
81
84
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
82
85
|
isWhitespace25occ8z1ed1s9 as isWhitespace,
|
|
83
|
-
IllegalArgumentException_init_$Create$
|
|
86
|
+
IllegalArgumentException_init_$Create$3ewkh27kzt8z8 as IllegalArgumentException_init_$Create$,
|
|
84
87
|
startsWith1bgirhbedtv2y as startsWith_0,
|
|
85
88
|
charArrayOf27f4r3dozbrk1 as charArrayOf,
|
|
86
89
|
split3d3yeauc4rm2n as split,
|
|
@@ -93,21 +96,21 @@ import {
|
|
|
93
96
|
dropLast1vpiyky649o34 as dropLast,
|
|
94
97
|
indexOfAny2ijjuuzpljsyd as indexOfAny,
|
|
95
98
|
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
96
|
-
IllegalStateException_init_$Init$
|
|
99
|
+
IllegalStateException_init_$Init$3ccqbeatlpw5c as IllegalStateException_init_$Init$,
|
|
97
100
|
indexOfwa4w6635jewi as indexOf_0,
|
|
98
101
|
toInt2q8uldh7sc951 as toInt,
|
|
99
102
|
startsWith26w8qjqapeeq6 as startsWith_1,
|
|
100
103
|
joinTo3lkanfaxbzac2 as joinTo,
|
|
101
104
|
toString30pk9tzaqopn as toString_1,
|
|
102
105
|
lazy2hsh8ze7j6ikd as lazy_0,
|
|
103
|
-
getKClassFromExpression3vpejubogshaw as getKClassFromExpression,
|
|
104
106
|
KProperty1ca4yb4wlo496 as KProperty1,
|
|
105
107
|
getPropertyCallableRef1ajb9in178r5r as getPropertyCallableRef,
|
|
108
|
+
getKClassFromExpression3vpejubogshaw as getKClassFromExpression,
|
|
106
109
|
toLongw1zpgk99d84b as toLong_0,
|
|
107
110
|
take9j4462mea726 as take,
|
|
108
111
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
109
112
|
import {
|
|
110
|
-
|
|
113
|
+
Charsets_getInstanceqs70pvl4noow as Charsets_getInstance,
|
|
111
114
|
encode35e4rpnc94tb5 as encode,
|
|
112
115
|
takeWhile34751tcfg6owx as takeWhile,
|
|
113
116
|
canRead1guo8vbveth0f as canRead,
|
|
@@ -126,10 +129,10 @@ import {
|
|
|
126
129
|
toLowerCasePreservingASCIIRulesa2d90zyoc6kw as toLowerCasePreservingASCIIRules,
|
|
127
130
|
isLowerCase2jodys5jo7d58 as isLowerCase,
|
|
128
131
|
appendAlltwnjnu28pmtx as appendAll,
|
|
129
|
-
|
|
132
|
+
PlatformUtils_getInstance350nj2wi6ds9r as PlatformUtils_getInstance,
|
|
130
133
|
} from './ktor-ktor-utils.mjs';
|
|
131
134
|
import {
|
|
132
|
-
|
|
135
|
+
STRING_getInstance2ou4lro9xn2qn as STRING_getInstance,
|
|
133
136
|
PrimitiveSerialDescriptor3egfp53lutxj2 as PrimitiveSerialDescriptor,
|
|
134
137
|
KSerializerzf77vz1967fq as KSerializer,
|
|
135
138
|
} from './kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
@@ -227,26 +230,26 @@ function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
|
227
230
|
// Inline function 'kotlin.text.buildString' call
|
|
228
231
|
// Inline function 'kotlin.apply' call
|
|
229
232
|
var this_0 = StringBuilder_init_$Create$();
|
|
230
|
-
var content = encode(Charsets_getInstance().
|
|
233
|
+
var content = encode(Charsets_getInstance().j21_1.m21(), _this__u8e3s4);
|
|
231
234
|
forEach_0(content, encodeURLParameter$lambda(this_0, spaceToPlus));
|
|
232
235
|
return this_0.toString();
|
|
233
236
|
}
|
|
234
237
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
235
238
|
start = start === VOID ? 0 : start;
|
|
236
239
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
237
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
240
|
+
charset = charset === VOID ? Charsets_getInstance().j21_1 : charset;
|
|
238
241
|
_init_properties_Codecs_kt__fudxxf();
|
|
239
242
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
240
243
|
}
|
|
241
244
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
242
245
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
243
246
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
244
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
247
|
+
charset = charset === VOID ? Charsets_getInstance().j21_1 : charset;
|
|
245
248
|
_init_properties_Codecs_kt__fudxxf();
|
|
246
249
|
// Inline function 'kotlin.text.buildString' call
|
|
247
250
|
// Inline function 'kotlin.apply' call
|
|
248
251
|
var this_0 = StringBuilder_init_$Create$();
|
|
249
|
-
var content = encode(charset.
|
|
252
|
+
var content = encode(charset.m21(), _this__u8e3s4);
|
|
250
253
|
forEach_0(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
|
|
251
254
|
return this_0.toString();
|
|
252
255
|
}
|
|
@@ -254,7 +257,7 @@ function decodeURLQueryComponent(_this__u8e3s4, start, end, plusIsSpace, charset
|
|
|
254
257
|
start = start === VOID ? 0 : start;
|
|
255
258
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
256
259
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
257
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
260
|
+
charset = charset === VOID ? Charsets_getInstance().j21_1 : charset;
|
|
258
261
|
_init_properties_Codecs_kt__fudxxf();
|
|
259
262
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
260
263
|
}
|
|
@@ -282,21 +285,13 @@ function decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset) {
|
|
|
282
285
|
do {
|
|
283
286
|
var index = inductionVariable;
|
|
284
287
|
inductionVariable = inductionVariable + 1 | 0;
|
|
285
|
-
var ch =
|
|
288
|
+
var ch = charCodeAt(_this__u8e3s4, index);
|
|
286
289
|
if (ch === _Char___init__impl__6a9atx(37) || (plusIsSpace && ch === _Char___init__impl__6a9atx(43))) {
|
|
287
290
|
return decodeImpl(_this__u8e3s4, start, end, index, plusIsSpace, charset);
|
|
288
291
|
}
|
|
289
292
|
}
|
|
290
293
|
while (inductionVariable < end);
|
|
291
|
-
|
|
292
|
-
if (start === 0 && end === _this__u8e3s4.length) {
|
|
293
|
-
tmp = toString(_this__u8e3s4);
|
|
294
|
-
} else {
|
|
295
|
-
// Inline function 'kotlin.text.substring' call
|
|
296
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
297
|
-
tmp = _this__u8e3s4.substring(start, end);
|
|
298
|
-
}
|
|
299
|
-
return tmp;
|
|
294
|
+
return start === 0 && end === _this__u8e3s4.length ? toString(_this__u8e3s4) : substring(_this__u8e3s4, start, end);
|
|
300
295
|
}
|
|
301
296
|
function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
302
297
|
encodeSlash = encodeSlash === VOID ? false : encodeSlash;
|
|
@@ -305,24 +300,24 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
305
300
|
// Inline function 'kotlin.text.buildString' call
|
|
306
301
|
// Inline function 'kotlin.apply' call
|
|
307
302
|
var this_0 = StringBuilder_init_$Create$();
|
|
308
|
-
var charset = Charsets_getInstance().
|
|
303
|
+
var charset = Charsets_getInstance().j21_1;
|
|
309
304
|
var index = 0;
|
|
310
305
|
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
311
|
-
var current =
|
|
306
|
+
var current = charCodeAt(_this__u8e3s4, index);
|
|
312
307
|
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET_CHARS().x(new Char(current)) || get_VALID_PATH_PART().x(new Char(current))) {
|
|
313
|
-
this_0.
|
|
308
|
+
this_0.t8(current);
|
|
314
309
|
index = index + 1 | 0;
|
|
315
310
|
continue $l$loop_0;
|
|
316
311
|
}
|
|
317
|
-
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().x(new Char(
|
|
318
|
-
this_0.
|
|
319
|
-
this_0.
|
|
320
|
-
this_0.
|
|
312
|
+
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().x(new Char(charCodeAt(_this__u8e3s4, index + 1 | 0))) && get_HEX_ALPHABET().x(new Char(charCodeAt(_this__u8e3s4, index + 2 | 0)))) {
|
|
313
|
+
this_0.t8(current);
|
|
314
|
+
this_0.t8(charCodeAt(_this__u8e3s4, index + 1 | 0));
|
|
315
|
+
this_0.t8(charCodeAt(_this__u8e3s4, index + 2 | 0));
|
|
321
316
|
index = index + 3 | 0;
|
|
322
317
|
continue $l$loop_0;
|
|
323
318
|
}
|
|
324
319
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
325
|
-
var tmp = encode(charset.
|
|
320
|
+
var tmp = encode(charset.m21(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
326
321
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
327
322
|
index = index + symbolSize | 0;
|
|
328
323
|
}
|
|
@@ -338,14 +333,14 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
|
|
|
338
333
|
var sbSize = length > 255 ? length / 3 | 0 : length;
|
|
339
334
|
var sb = StringBuilder_init_$Create$_0(sbSize);
|
|
340
335
|
if (prefixEnd > start) {
|
|
341
|
-
sb.
|
|
336
|
+
sb.jd(_this__u8e3s4, start, prefixEnd);
|
|
342
337
|
}
|
|
343
338
|
var index = prefixEnd;
|
|
344
339
|
var bytes = null;
|
|
345
340
|
while (index < end) {
|
|
346
341
|
var c = charSequenceGet(_this__u8e3s4, index);
|
|
347
342
|
if (plusIsSpace && c === _Char___init__impl__6a9atx(43)) {
|
|
348
|
-
sb.
|
|
343
|
+
sb.t8(_Char___init__impl__6a9atx(32));
|
|
349
344
|
index = index + 1 | 0;
|
|
350
345
|
} else if (c === _Char___init__impl__6a9atx(37)) {
|
|
351
346
|
if (bytes == null) {
|
|
@@ -371,9 +366,9 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
|
|
|
371
366
|
tmp[_unary__edvuaz] = toByte(imul(digit1, 16) + digit2 | 0);
|
|
372
367
|
index = index + 3 | 0;
|
|
373
368
|
}
|
|
374
|
-
sb.
|
|
369
|
+
sb.s8(decodeToString(bytes, 0, 0 + count | 0));
|
|
375
370
|
} else {
|
|
376
|
-
sb.
|
|
371
|
+
sb.t8(c);
|
|
377
372
|
index = index + 1 | 0;
|
|
378
373
|
}
|
|
379
374
|
}
|
|
@@ -394,7 +389,7 @@ function encodeURLParameterValue(_this__u8e3s4) {
|
|
|
394
389
|
function encodeURLParameter$lambda($$this$buildString, $spaceToPlus) {
|
|
395
390
|
return function (it) {
|
|
396
391
|
if (get_URL_ALPHABET().x(it) || get_SPECIAL_SYMBOLS().x(it))
|
|
397
|
-
$$this$buildString.
|
|
392
|
+
$$this$buildString.t8(numberToChar(it));
|
|
398
393
|
else {
|
|
399
394
|
var tmp;
|
|
400
395
|
if ($spaceToPlus) {
|
|
@@ -407,9 +402,9 @@ function encodeURLParameter$lambda($$this$buildString, $spaceToPlus) {
|
|
|
407
402
|
tmp = false;
|
|
408
403
|
}
|
|
409
404
|
if (tmp)
|
|
410
|
-
$$this$buildString.
|
|
405
|
+
$$this$buildString.t8(_Char___init__impl__6a9atx(43));
|
|
411
406
|
else {
|
|
412
|
-
$$this$buildString.
|
|
407
|
+
$$this$buildString.s8(percentEncode(it));
|
|
413
408
|
}
|
|
414
409
|
}
|
|
415
410
|
return Unit_instance;
|
|
@@ -423,14 +418,14 @@ function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encod
|
|
|
423
418
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
424
419
|
if (tmp === toByte(tmp$ret$0))
|
|
425
420
|
if ($spaceToPlus)
|
|
426
|
-
$$this$buildString.
|
|
421
|
+
$$this$buildString.t8(_Char___init__impl__6a9atx(43));
|
|
427
422
|
else
|
|
428
|
-
$$this$buildString.
|
|
423
|
+
$$this$buildString.s8('%20');
|
|
429
424
|
else {
|
|
430
425
|
if (get_URL_ALPHABET().x(it) || (!$encodeFull && get_URL_PROTOCOL_PART().x(it)))
|
|
431
|
-
$$this$buildString.
|
|
426
|
+
$$this$buildString.t8(numberToChar(it));
|
|
432
427
|
else {
|
|
433
|
-
$$this$buildString.
|
|
428
|
+
$$this$buildString.s8(percentEncode(it));
|
|
434
429
|
}
|
|
435
430
|
}
|
|
436
431
|
return Unit_instance;
|
|
@@ -439,14 +434,14 @@ function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encod
|
|
|
439
434
|
function forEach$lambda($block) {
|
|
440
435
|
return function (buffer) {
|
|
441
436
|
while (canRead(buffer)) {
|
|
442
|
-
$block(buffer.
|
|
437
|
+
$block(buffer.p1m());
|
|
443
438
|
}
|
|
444
439
|
return true;
|
|
445
440
|
};
|
|
446
441
|
}
|
|
447
442
|
function encodeURLPath$lambda($$this$buildString) {
|
|
448
443
|
return function (it) {
|
|
449
|
-
$$this$buildString.
|
|
444
|
+
$$this$buildString.s8(percentEncode(it));
|
|
450
445
|
return Unit_instance;
|
|
451
446
|
};
|
|
452
447
|
}
|
|
@@ -512,24 +507,24 @@ function ContentType_init_$Create$(contentType, contentSubtype, parameters) {
|
|
|
512
507
|
}
|
|
513
508
|
function hasParameter($this, name, value) {
|
|
514
509
|
var tmp;
|
|
515
|
-
switch ($this.
|
|
510
|
+
switch ($this.s2u_1.t()) {
|
|
516
511
|
case 0:
|
|
517
512
|
tmp = false;
|
|
518
513
|
break;
|
|
519
514
|
case 1:
|
|
520
515
|
// Inline function 'kotlin.let' call
|
|
521
516
|
|
|
522
|
-
var it = $this.
|
|
523
|
-
tmp = (equals(it.
|
|
517
|
+
var it = $this.s2u_1.v(0);
|
|
518
|
+
tmp = (equals(it.t2u_1, name, true) && equals(it.u2u_1, value, true));
|
|
524
519
|
break;
|
|
525
520
|
default:
|
|
526
|
-
var
|
|
521
|
+
var tmp0 = $this.s2u_1;
|
|
527
522
|
var tmp$ret$2;
|
|
528
523
|
$l$block_0: {
|
|
529
524
|
// Inline function 'kotlin.collections.any' call
|
|
530
525
|
var tmp_0;
|
|
531
|
-
if (isInterface(
|
|
532
|
-
tmp_0 =
|
|
526
|
+
if (isInterface(tmp0, Collection)) {
|
|
527
|
+
tmp_0 = tmp0.h();
|
|
533
528
|
} else {
|
|
534
529
|
tmp_0 = false;
|
|
535
530
|
}
|
|
@@ -537,10 +532,10 @@ function hasParameter($this, name, value) {
|
|
|
537
532
|
tmp$ret$2 = false;
|
|
538
533
|
break $l$block_0;
|
|
539
534
|
}
|
|
540
|
-
var _iterator__ex2g4s =
|
|
535
|
+
var _iterator__ex2g4s = tmp0.q();
|
|
541
536
|
while (_iterator__ex2g4s.r()) {
|
|
542
537
|
var element = _iterator__ex2g4s.s();
|
|
543
|
-
if (equals(element.
|
|
538
|
+
if (equals(element.t2u_1, name, true) && equals(element.u2u_1, value, true)) {
|
|
544
539
|
tmp$ret$2 = true;
|
|
545
540
|
break $l$block_0;
|
|
546
541
|
}
|
|
@@ -555,36 +550,31 @@ function hasParameter($this, name, value) {
|
|
|
555
550
|
}
|
|
556
551
|
function Companion() {
|
|
557
552
|
Companion_instance = this;
|
|
558
|
-
this.
|
|
553
|
+
this.w2u_1 = ContentType_init_$Create$('*', '*');
|
|
559
554
|
}
|
|
560
|
-
protoOf(Companion).
|
|
555
|
+
protoOf(Companion).io = function (value) {
|
|
561
556
|
if (isBlank(value))
|
|
562
|
-
return this.
|
|
557
|
+
return this.w2u_1;
|
|
563
558
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
564
559
|
var headerValue = last(parseHeaderValue(value));
|
|
565
|
-
var
|
|
566
|
-
var parameters = headerValue.
|
|
567
|
-
var slash = indexOf(
|
|
560
|
+
var tmp0 = headerValue.x2u_1;
|
|
561
|
+
var parameters = headerValue.y2u_1;
|
|
562
|
+
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
568
563
|
if (slash === -1) {
|
|
569
564
|
// Inline function 'kotlin.text.trim' call
|
|
570
|
-
if (toString(trim(isCharSequence(
|
|
571
|
-
return Companion_getInstance().
|
|
565
|
+
if (toString(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
566
|
+
return Companion_getInstance().w2u_1;
|
|
572
567
|
throw new BadContentTypeFormatException(value);
|
|
573
568
|
}
|
|
574
|
-
// Inline function 'kotlin.text.substring' call
|
|
575
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
576
569
|
// Inline function 'kotlin.text.trim' call
|
|
577
|
-
var this_0 =
|
|
570
|
+
var this_0 = substring(tmp0, 0, slash);
|
|
578
571
|
var type = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
579
572
|
// Inline function 'kotlin.text.isEmpty' call
|
|
580
573
|
if (charSequenceLength(type) === 0) {
|
|
581
574
|
throw new BadContentTypeFormatException(value);
|
|
582
575
|
}
|
|
583
|
-
// Inline function 'kotlin.text.substring' call
|
|
584
|
-
var startIndex = slash + 1 | 0;
|
|
585
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
586
576
|
// Inline function 'kotlin.text.trim' call
|
|
587
|
-
var this_1 =
|
|
577
|
+
var this_1 = substring_0(tmp0, slash + 1 | 0);
|
|
588
578
|
var subtype = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()));
|
|
589
579
|
if (contains(type, _Char___init__impl__6a9atx(32)) || contains(subtype, _Char___init__impl__6a9atx(32))) {
|
|
590
580
|
throw new BadContentTypeFormatException(value);
|
|
@@ -609,32 +599,32 @@ function Companion_getInstance() {
|
|
|
609
599
|
}
|
|
610
600
|
function Application() {
|
|
611
601
|
Application_instance = this;
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
}
|
|
637
|
-
protoOf(Application).
|
|
602
|
+
this.a2v_1 = 'application';
|
|
603
|
+
this.b2v_1 = ContentType_init_$Create$('application', '*');
|
|
604
|
+
this.c2v_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
605
|
+
this.d2v_1 = ContentType_init_$Create$('application', 'cbor');
|
|
606
|
+
this.e2v_1 = ContentType_init_$Create$('application', 'json');
|
|
607
|
+
this.f2v_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
608
|
+
this.g2v_1 = ContentType_init_$Create$('application', 'javascript');
|
|
609
|
+
this.h2v_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
610
|
+
this.i2v_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
611
|
+
this.j2v_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
612
|
+
this.k2v_1 = ContentType_init_$Create$('application', 'xml');
|
|
613
|
+
this.l2v_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
614
|
+
this.m2v_1 = ContentType_init_$Create$('application', 'yaml');
|
|
615
|
+
this.n2v_1 = ContentType_init_$Create$('application', 'zip');
|
|
616
|
+
this.o2v_1 = ContentType_init_$Create$('application', 'gzip');
|
|
617
|
+
this.p2v_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
618
|
+
this.q2v_1 = ContentType_init_$Create$('application', 'pdf');
|
|
619
|
+
this.r2v_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
620
|
+
this.s2v_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
621
|
+
this.t2v_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
622
|
+
this.u2v_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
623
|
+
this.v2v_1 = ContentType_init_$Create$('application', 'wasm');
|
|
624
|
+
this.w2v_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
625
|
+
this.x2v_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
626
|
+
}
|
|
627
|
+
protoOf(Application).y2v = function (contentType) {
|
|
638
628
|
return startsWith(contentType, 'application/', true);
|
|
639
629
|
};
|
|
640
630
|
var Application_instance;
|
|
@@ -645,17 +635,17 @@ function Application_getInstance() {
|
|
|
645
635
|
}
|
|
646
636
|
function MultiPart() {
|
|
647
637
|
MultiPart_instance = this;
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
650
|
-
this.
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
}
|
|
658
|
-
protoOf(MultiPart).
|
|
638
|
+
this.z2v_1 = 'multipart';
|
|
639
|
+
this.a2w_1 = ContentType_init_$Create$('multipart', '*');
|
|
640
|
+
this.b2w_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
641
|
+
this.c2w_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
642
|
+
this.d2w_1 = ContentType_init_$Create$('multipart', 'related');
|
|
643
|
+
this.e2w_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
644
|
+
this.f2w_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
645
|
+
this.g2w_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
646
|
+
this.h2w_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
647
|
+
}
|
|
648
|
+
protoOf(MultiPart).y2v = function (contentType) {
|
|
659
649
|
return startsWith(contentType, 'multipart/', true);
|
|
660
650
|
};
|
|
661
651
|
var MultiPart_instance;
|
|
@@ -666,16 +656,16 @@ function MultiPart_getInstance() {
|
|
|
666
656
|
}
|
|
667
657
|
function Text() {
|
|
668
658
|
Text_instance = this;
|
|
669
|
-
this.
|
|
670
|
-
this.
|
|
671
|
-
this.
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
674
|
-
this.
|
|
675
|
-
this.
|
|
676
|
-
this.
|
|
677
|
-
this.
|
|
678
|
-
this.
|
|
659
|
+
this.i2w_1 = 'text';
|
|
660
|
+
this.j2w_1 = ContentType_init_$Create$('text', '*');
|
|
661
|
+
this.k2w_1 = ContentType_init_$Create$('text', 'plain');
|
|
662
|
+
this.l2w_1 = ContentType_init_$Create$('text', 'css');
|
|
663
|
+
this.m2w_1 = ContentType_init_$Create$('text', 'csv');
|
|
664
|
+
this.n2w_1 = ContentType_init_$Create$('text', 'html');
|
|
665
|
+
this.o2w_1 = ContentType_init_$Create$('text', 'javascript');
|
|
666
|
+
this.p2w_1 = ContentType_init_$Create$('text', 'vcard');
|
|
667
|
+
this.q2w_1 = ContentType_init_$Create$('text', 'xml');
|
|
668
|
+
this.r2w_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
679
669
|
}
|
|
680
670
|
var Text_instance;
|
|
681
671
|
function Text_getInstance() {
|
|
@@ -687,36 +677,36 @@ function ContentType(contentType, contentSubtype, existingContent, parameters) {
|
|
|
687
677
|
Companion_getInstance();
|
|
688
678
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
689
679
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
690
|
-
this.
|
|
691
|
-
this.
|
|
680
|
+
this.u2w_1 = contentType;
|
|
681
|
+
this.v2w_1 = contentSubtype;
|
|
692
682
|
}
|
|
693
|
-
protoOf(ContentType).
|
|
683
|
+
protoOf(ContentType).w2w = function (name, value) {
|
|
694
684
|
if (hasParameter(this, name, value))
|
|
695
685
|
return this;
|
|
696
|
-
return new ContentType(this.
|
|
686
|
+
return new ContentType(this.u2w_1, this.v2w_1, this.r2u_1, plus_2(this.s2u_1, HeaderValueParam_init_$Create$(name, value)));
|
|
697
687
|
};
|
|
698
|
-
protoOf(ContentType).
|
|
699
|
-
return this.
|
|
688
|
+
protoOf(ContentType).x2w = function () {
|
|
689
|
+
return this.s2u_1.h() ? this : ContentType_init_$Create$(this.u2w_1, this.v2w_1);
|
|
700
690
|
};
|
|
701
|
-
protoOf(ContentType).
|
|
702
|
-
if (!(pattern.
|
|
691
|
+
protoOf(ContentType).y2w = function (pattern) {
|
|
692
|
+
if (!(pattern.u2w_1 === '*') && !equals(pattern.u2w_1, this.u2w_1, true)) {
|
|
703
693
|
return false;
|
|
704
694
|
}
|
|
705
|
-
if (!(pattern.
|
|
695
|
+
if (!(pattern.v2w_1 === '*') && !equals(pattern.v2w_1, this.v2w_1, true)) {
|
|
706
696
|
return false;
|
|
707
697
|
}
|
|
708
|
-
var _iterator__ex2g4s = pattern.
|
|
698
|
+
var _iterator__ex2g4s = pattern.s2u_1.q();
|
|
709
699
|
while (_iterator__ex2g4s.r()) {
|
|
710
700
|
var _destruct__k2r9zo = _iterator__ex2g4s.s();
|
|
711
|
-
var patternName = _destruct__k2r9zo.
|
|
712
|
-
var patternValue = _destruct__k2r9zo.
|
|
701
|
+
var patternName = _destruct__k2r9zo.pb();
|
|
702
|
+
var patternValue = _destruct__k2r9zo.qb();
|
|
713
703
|
var tmp;
|
|
714
704
|
if (patternName === '*') {
|
|
715
705
|
var tmp_0;
|
|
716
706
|
if (patternValue === '*') {
|
|
717
707
|
tmp_0 = true;
|
|
718
708
|
} else {
|
|
719
|
-
var tmp0 = this.
|
|
709
|
+
var tmp0 = this.s2u_1;
|
|
720
710
|
var tmp$ret$0;
|
|
721
711
|
$l$block_0: {
|
|
722
712
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -733,7 +723,7 @@ protoOf(ContentType).w2v = function (pattern) {
|
|
|
733
723
|
var _iterator__ex2g4s_0 = tmp0.q();
|
|
734
724
|
while (_iterator__ex2g4s_0.r()) {
|
|
735
725
|
var element = _iterator__ex2g4s_0.s();
|
|
736
|
-
if (equals(element.
|
|
726
|
+
if (equals(element.u2u_1, patternValue, true)) {
|
|
737
727
|
tmp$ret$0 = true;
|
|
738
728
|
break $l$block_0;
|
|
739
729
|
}
|
|
@@ -744,7 +734,7 @@ protoOf(ContentType).w2v = function (pattern) {
|
|
|
744
734
|
}
|
|
745
735
|
tmp = tmp_0;
|
|
746
736
|
} else {
|
|
747
|
-
var value = this.
|
|
737
|
+
var value = this.z2w(patternName);
|
|
748
738
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
749
739
|
}
|
|
750
740
|
var matches = tmp;
|
|
@@ -759,17 +749,17 @@ protoOf(ContentType).equals = function (other) {
|
|
|
759
749
|
var tmp_0;
|
|
760
750
|
var tmp_1;
|
|
761
751
|
if (other instanceof ContentType) {
|
|
762
|
-
tmp_1 = equals(this.
|
|
752
|
+
tmp_1 = equals(this.u2w_1, other.u2w_1, true);
|
|
763
753
|
} else {
|
|
764
754
|
tmp_1 = false;
|
|
765
755
|
}
|
|
766
756
|
if (tmp_1) {
|
|
767
|
-
tmp_0 = equals(this.
|
|
757
|
+
tmp_0 = equals(this.v2w_1, other.v2w_1, true);
|
|
768
758
|
} else {
|
|
769
759
|
tmp_0 = false;
|
|
770
760
|
}
|
|
771
761
|
if (tmp_0) {
|
|
772
|
-
tmp = equals_0(this.
|
|
762
|
+
tmp = equals_0(this.s2u_1, other.s2u_1);
|
|
773
763
|
} else {
|
|
774
764
|
tmp = false;
|
|
775
765
|
}
|
|
@@ -778,15 +768,15 @@ protoOf(ContentType).equals = function (other) {
|
|
|
778
768
|
protoOf(ContentType).hashCode = function () {
|
|
779
769
|
// Inline function 'kotlin.text.lowercase' call
|
|
780
770
|
// Inline function 'kotlin.js.asDynamic' call
|
|
781
|
-
var tmp$ret$1 = this.
|
|
771
|
+
var tmp$ret$1 = this.u2w_1.toLowerCase();
|
|
782
772
|
var result = getStringHashCode(tmp$ret$1);
|
|
783
773
|
var tmp = result;
|
|
784
774
|
var tmp_0 = imul(31, result);
|
|
785
775
|
// Inline function 'kotlin.text.lowercase' call
|
|
786
776
|
// Inline function 'kotlin.js.asDynamic' call
|
|
787
|
-
var tmp$ret$3 = this.
|
|
777
|
+
var tmp$ret$3 = this.v2w_1.toLowerCase();
|
|
788
778
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
789
|
-
result = result + imul(31, hashCode(this.
|
|
779
|
+
result = result + imul(31, hashCode(this.s2u_1)) | 0;
|
|
790
780
|
return result;
|
|
791
781
|
};
|
|
792
782
|
function BadContentTypeFormatException(value) {
|
|
@@ -794,7 +784,7 @@ function BadContentTypeFormatException(value) {
|
|
|
794
784
|
captureStack(this, BadContentTypeFormatException);
|
|
795
785
|
}
|
|
796
786
|
function charset(_this__u8e3s4) {
|
|
797
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
787
|
+
var tmp0_safe_receiver = _this__u8e3s4.z2w('charset');
|
|
798
788
|
var tmp;
|
|
799
789
|
if (tmp0_safe_receiver == null) {
|
|
800
790
|
tmp = null;
|
|
@@ -818,16 +808,16 @@ function charset(_this__u8e3s4) {
|
|
|
818
808
|
return tmp;
|
|
819
809
|
}
|
|
820
810
|
function withCharset(_this__u8e3s4, charset) {
|
|
821
|
-
return _this__u8e3s4.
|
|
811
|
+
return _this__u8e3s4.w2w('charset', get_name(charset));
|
|
822
812
|
}
|
|
823
813
|
function withCharsetIfNeeded(_this__u8e3s4, charset) {
|
|
824
814
|
var tmp;
|
|
825
815
|
// Inline function 'kotlin.text.lowercase' call
|
|
826
816
|
// Inline function 'kotlin.js.asDynamic' call
|
|
827
|
-
if (!(_this__u8e3s4.
|
|
817
|
+
if (!(_this__u8e3s4.u2w_1.toLowerCase() === 'text')) {
|
|
828
818
|
tmp = _this__u8e3s4;
|
|
829
819
|
} else {
|
|
830
|
-
tmp = _this__u8e3s4.
|
|
820
|
+
tmp = _this__u8e3s4.w2w('charset', get_name(charset));
|
|
831
821
|
}
|
|
832
822
|
return tmp;
|
|
833
823
|
}
|
|
@@ -844,19 +834,19 @@ function Companion_getInstance_0() {
|
|
|
844
834
|
}
|
|
845
835
|
function HeaderValueWithParameters(content, parameters) {
|
|
846
836
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
847
|
-
this.
|
|
848
|
-
this.
|
|
837
|
+
this.r2u_1 = content;
|
|
838
|
+
this.s2u_1 = parameters;
|
|
849
839
|
}
|
|
850
|
-
protoOf(HeaderValueWithParameters).
|
|
840
|
+
protoOf(HeaderValueWithParameters).z2w = function (name) {
|
|
851
841
|
var inductionVariable = 0;
|
|
852
|
-
var last = get_lastIndex(this.
|
|
842
|
+
var last = get_lastIndex(this.s2u_1);
|
|
853
843
|
if (inductionVariable <= last)
|
|
854
844
|
do {
|
|
855
845
|
var index = inductionVariable;
|
|
856
846
|
inductionVariable = inductionVariable + 1 | 0;
|
|
857
|
-
var parameter = this.
|
|
858
|
-
if (equals(parameter.
|
|
859
|
-
return parameter.
|
|
847
|
+
var parameter = this.s2u_1.v(index);
|
|
848
|
+
if (equals(parameter.t2u_1, name, true)) {
|
|
849
|
+
return parameter.u2u_1;
|
|
860
850
|
}
|
|
861
851
|
}
|
|
862
852
|
while (!(index === last));
|
|
@@ -864,38 +854,38 @@ protoOf(HeaderValueWithParameters).x2v = function (name) {
|
|
|
864
854
|
};
|
|
865
855
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
866
856
|
var tmp;
|
|
867
|
-
if (this.
|
|
868
|
-
tmp = this.
|
|
857
|
+
if (this.s2u_1.h()) {
|
|
858
|
+
tmp = this.r2u_1;
|
|
869
859
|
} else {
|
|
870
|
-
var tmp_0 = this.
|
|
860
|
+
var tmp_0 = this.r2u_1.length;
|
|
871
861
|
// Inline function 'kotlin.collections.sumOf' call
|
|
872
862
|
var sum = 0;
|
|
873
|
-
var _iterator__ex2g4s = this.
|
|
863
|
+
var _iterator__ex2g4s = this.s2u_1.q();
|
|
874
864
|
while (_iterator__ex2g4s.r()) {
|
|
875
865
|
var element = _iterator__ex2g4s.s();
|
|
876
866
|
var tmp_1 = sum;
|
|
877
|
-
sum = tmp_1 + ((element.
|
|
867
|
+
sum = tmp_1 + ((element.t2u_1.length + element.u2u_1.length | 0) + 3 | 0) | 0;
|
|
878
868
|
}
|
|
879
869
|
var size = tmp_0 + sum | 0;
|
|
880
870
|
// Inline function 'kotlin.apply' call
|
|
881
871
|
var this_0 = StringBuilder_init_$Create$_0(size);
|
|
882
|
-
this_0.
|
|
872
|
+
this_0.s8(this.r2u_1);
|
|
883
873
|
var inductionVariable = 0;
|
|
884
|
-
var last = get_lastIndex(this.
|
|
874
|
+
var last = get_lastIndex(this.s2u_1);
|
|
885
875
|
if (inductionVariable <= last)
|
|
886
876
|
do {
|
|
887
877
|
var index = inductionVariable;
|
|
888
878
|
inductionVariable = inductionVariable + 1 | 0;
|
|
889
|
-
var element_0 = this.
|
|
890
|
-
this_0.
|
|
891
|
-
this_0.
|
|
892
|
-
this_0.
|
|
879
|
+
var element_0 = this.s2u_1.v(index);
|
|
880
|
+
this_0.s8('; ');
|
|
881
|
+
this_0.s8(element_0.t2u_1);
|
|
882
|
+
this_0.s8('=');
|
|
893
883
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
894
|
-
var this_1 = element_0.
|
|
884
|
+
var this_1 = element_0.u2u_1;
|
|
895
885
|
if (needQuotes(this_1))
|
|
896
|
-
this_0.
|
|
886
|
+
this_0.s8(quote(this_1));
|
|
897
887
|
else
|
|
898
|
-
this_0.
|
|
888
|
+
this_0.s8(this_1);
|
|
899
889
|
}
|
|
900
890
|
while (!(index === last));
|
|
901
891
|
tmp = this_0.toString();
|
|
@@ -912,7 +902,7 @@ function needQuotes(_this__u8e3s4) {
|
|
|
912
902
|
var inductionVariable = 0;
|
|
913
903
|
var last = _this__u8e3s4.length;
|
|
914
904
|
while (inductionVariable < last) {
|
|
915
|
-
var element =
|
|
905
|
+
var element = charCodeAt(_this__u8e3s4, inductionVariable);
|
|
916
906
|
inductionVariable = inductionVariable + 1 | 0;
|
|
917
907
|
if (get_HeaderFieldValueSeparators().x(new Char(element)))
|
|
918
908
|
return true;
|
|
@@ -943,7 +933,7 @@ function isQuoted(_this__u8e3s4) {
|
|
|
943
933
|
}
|
|
944
934
|
var slashesCount = 0;
|
|
945
935
|
var slashIndex = index - 1 | 0;
|
|
946
|
-
while (
|
|
936
|
+
while (charCodeAt(_this__u8e3s4, slashIndex) === _Char___init__impl__6a9atx(92)) {
|
|
947
937
|
slashesCount = slashesCount + 1 | 0;
|
|
948
938
|
slashIndex = slashIndex - 1 | 0;
|
|
949
939
|
}
|
|
@@ -957,27 +947,27 @@ function isQuoted(_this__u8e3s4) {
|
|
|
957
947
|
}
|
|
958
948
|
function quoteTo(_this__u8e3s4, out) {
|
|
959
949
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
960
|
-
out.
|
|
950
|
+
out.s8('"');
|
|
961
951
|
var inductionVariable = 0;
|
|
962
952
|
var last = _this__u8e3s4.length;
|
|
963
953
|
while (inductionVariable < last) {
|
|
964
|
-
var element =
|
|
954
|
+
var element = charCodeAt(_this__u8e3s4, inductionVariable);
|
|
965
955
|
inductionVariable = inductionVariable + 1 | 0;
|
|
966
956
|
var ch = element;
|
|
967
957
|
if (ch === _Char___init__impl__6a9atx(92))
|
|
968
|
-
out.
|
|
958
|
+
out.s8('\\\\');
|
|
969
959
|
else if (ch === _Char___init__impl__6a9atx(10))
|
|
970
|
-
out.
|
|
960
|
+
out.s8('\\n');
|
|
971
961
|
else if (ch === _Char___init__impl__6a9atx(13))
|
|
972
|
-
out.
|
|
962
|
+
out.s8('\\r');
|
|
973
963
|
else if (ch === _Char___init__impl__6a9atx(9))
|
|
974
|
-
out.
|
|
964
|
+
out.s8('\\t');
|
|
975
965
|
else if (ch === _Char___init__impl__6a9atx(34))
|
|
976
|
-
out.
|
|
966
|
+
out.s8('\\"');
|
|
977
967
|
else
|
|
978
|
-
out.
|
|
968
|
+
out.t8(ch);
|
|
979
969
|
}
|
|
980
|
-
out.
|
|
970
|
+
out.s8('"');
|
|
981
971
|
}
|
|
982
972
|
var properties_initialized_HeaderValueWithParameters_kt_yu5xg;
|
|
983
973
|
function _init_properties_HeaderValueWithParameters_kt__z6luvy() {
|
|
@@ -988,7 +978,7 @@ function _init_properties_HeaderValueWithParameters_kt__z6luvy() {
|
|
|
988
978
|
}
|
|
989
979
|
function Companion_1() {
|
|
990
980
|
Companion_instance_1 = this;
|
|
991
|
-
this.
|
|
981
|
+
this.a2x_1 = EmptyHeaders_instance;
|
|
992
982
|
}
|
|
993
983
|
var Companion_instance_1;
|
|
994
984
|
function Companion_getInstance_1() {
|
|
@@ -1000,33 +990,33 @@ function HeadersBuilder(size) {
|
|
|
1000
990
|
size = size === VOID ? 8 : size;
|
|
1001
991
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1002
992
|
}
|
|
1003
|
-
protoOf(HeadersBuilder).
|
|
1004
|
-
return new HeadersImpl(this.
|
|
993
|
+
protoOf(HeadersBuilder).d2x = function () {
|
|
994
|
+
return new HeadersImpl(this.m2q_1);
|
|
1005
995
|
};
|
|
1006
|
-
protoOf(HeadersBuilder).
|
|
1007
|
-
protoOf(StringValuesBuilderImpl).
|
|
1008
|
-
HttpHeaders_getInstance().
|
|
996
|
+
protoOf(HeadersBuilder).n2q = function (name) {
|
|
997
|
+
protoOf(StringValuesBuilderImpl).n2q.call(this, name);
|
|
998
|
+
HttpHeaders_getInstance().a31(name);
|
|
1009
999
|
};
|
|
1010
|
-
protoOf(HeadersBuilder).
|
|
1011
|
-
protoOf(StringValuesBuilderImpl).
|
|
1012
|
-
HttpHeaders_getInstance().
|
|
1000
|
+
protoOf(HeadersBuilder).q2q = function (value) {
|
|
1001
|
+
protoOf(StringValuesBuilderImpl).q2q.call(this, value);
|
|
1002
|
+
HttpHeaders_getInstance().b31(value);
|
|
1013
1003
|
};
|
|
1014
1004
|
function EmptyHeaders() {
|
|
1015
1005
|
}
|
|
1016
|
-
protoOf(EmptyHeaders).
|
|
1006
|
+
protoOf(EmptyHeaders).g2q = function () {
|
|
1017
1007
|
return true;
|
|
1018
1008
|
};
|
|
1019
|
-
protoOf(EmptyHeaders).
|
|
1009
|
+
protoOf(EmptyHeaders).h2q = function (name) {
|
|
1020
1010
|
return null;
|
|
1021
1011
|
};
|
|
1022
|
-
protoOf(EmptyHeaders).
|
|
1012
|
+
protoOf(EmptyHeaders).i2q = function () {
|
|
1023
1013
|
return emptySet();
|
|
1024
1014
|
};
|
|
1025
|
-
protoOf(EmptyHeaders).
|
|
1015
|
+
protoOf(EmptyHeaders).j2q = function () {
|
|
1026
1016
|
return emptySet();
|
|
1027
1017
|
};
|
|
1028
1018
|
protoOf(EmptyHeaders).toString = function () {
|
|
1029
|
-
return 'Headers ' + toString(this.
|
|
1019
|
+
return 'Headers ' + toString(this.j2q());
|
|
1030
1020
|
};
|
|
1031
1021
|
var EmptyHeaders_instance;
|
|
1032
1022
|
function EmptyHeaders_getInstance() {
|
|
@@ -1037,7 +1027,7 @@ function HeadersImpl(values) {
|
|
|
1037
1027
|
StringValuesImpl.call(this, true, values);
|
|
1038
1028
|
}
|
|
1039
1029
|
protoOf(HeadersImpl).toString = function () {
|
|
1040
|
-
return 'Headers ' + toString(this.
|
|
1030
|
+
return 'Headers ' + toString(this.j2q());
|
|
1041
1031
|
};
|
|
1042
1032
|
function headersOf(name, value) {
|
|
1043
1033
|
return new HeadersSingleImpl(name, listOf_0(value));
|
|
@@ -1046,7 +1036,7 @@ function HeadersSingleImpl(name, values) {
|
|
|
1046
1036
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1047
1037
|
}
|
|
1048
1038
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1049
|
-
return 'Headers ' + toString(this.
|
|
1039
|
+
return 'Headers ' + toString(this.j2q());
|
|
1050
1040
|
};
|
|
1051
1041
|
function headers(builder) {
|
|
1052
1042
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
@@ -1054,7 +1044,7 @@ function headers(builder) {
|
|
|
1054
1044
|
// Inline function 'kotlin.apply' call
|
|
1055
1045
|
var this_0 = new HeadersBuilder();
|
|
1056
1046
|
builder(this_0);
|
|
1057
|
-
return this_0.
|
|
1047
|
+
return this_0.d2x();
|
|
1058
1048
|
}
|
|
1059
1049
|
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1060
1050
|
HeaderValueParam.call($this, name, value, false);
|
|
@@ -1064,20 +1054,20 @@ function HeaderValueParam_init_$Create$(name, value) {
|
|
|
1064
1054
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1065
1055
|
}
|
|
1066
1056
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1067
|
-
this.
|
|
1068
|
-
this.
|
|
1069
|
-
this.
|
|
1057
|
+
this.t2u_1 = name;
|
|
1058
|
+
this.u2u_1 = value;
|
|
1059
|
+
this.v2u_1 = escapeValue;
|
|
1070
1060
|
}
|
|
1071
1061
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1072
1062
|
var tmp;
|
|
1073
1063
|
var tmp_0;
|
|
1074
1064
|
if (other instanceof HeaderValueParam) {
|
|
1075
|
-
tmp_0 = equals(other.
|
|
1065
|
+
tmp_0 = equals(other.t2u_1, this.t2u_1, true);
|
|
1076
1066
|
} else {
|
|
1077
1067
|
tmp_0 = false;
|
|
1078
1068
|
}
|
|
1079
1069
|
if (tmp_0) {
|
|
1080
|
-
tmp = equals(other.
|
|
1070
|
+
tmp = equals(other.u2u_1, this.u2u_1, true);
|
|
1081
1071
|
} else {
|
|
1082
1072
|
tmp = false;
|
|
1083
1073
|
}
|
|
@@ -1086,38 +1076,38 @@ protoOf(HeaderValueParam).equals = function (other) {
|
|
|
1086
1076
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1087
1077
|
// Inline function 'kotlin.text.lowercase' call
|
|
1088
1078
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1089
|
-
var tmp$ret$1 = this.
|
|
1079
|
+
var tmp$ret$1 = this.t2u_1.toLowerCase();
|
|
1090
1080
|
var result = getStringHashCode(tmp$ret$1);
|
|
1091
1081
|
var tmp = result;
|
|
1092
1082
|
var tmp_0 = imul(31, result);
|
|
1093
1083
|
// Inline function 'kotlin.text.lowercase' call
|
|
1094
1084
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1095
|
-
var tmp$ret$3 = this.
|
|
1085
|
+
var tmp$ret$3 = this.u2u_1.toLowerCase();
|
|
1096
1086
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
1097
1087
|
return result;
|
|
1098
1088
|
};
|
|
1099
|
-
protoOf(HeaderValueParam).ob = function () {
|
|
1100
|
-
return this.r2t_1;
|
|
1101
|
-
};
|
|
1102
1089
|
protoOf(HeaderValueParam).pb = function () {
|
|
1103
|
-
return this.
|
|
1090
|
+
return this.t2u_1;
|
|
1091
|
+
};
|
|
1092
|
+
protoOf(HeaderValueParam).qb = function () {
|
|
1093
|
+
return this.u2u_1;
|
|
1104
1094
|
};
|
|
1105
1095
|
protoOf(HeaderValueParam).toString = function () {
|
|
1106
|
-
return 'HeaderValueParam(name=' + this.
|
|
1096
|
+
return 'HeaderValueParam(name=' + this.t2u_1 + ', value=' + this.u2u_1 + ', escapeValue=' + this.v2u_1 + ')';
|
|
1107
1097
|
};
|
|
1108
1098
|
function HeaderValue(value, params) {
|
|
1109
1099
|
params = params === VOID ? emptyList() : params;
|
|
1110
|
-
this.
|
|
1111
|
-
this.
|
|
1100
|
+
this.x2u_1 = value;
|
|
1101
|
+
this.y2u_1 = params;
|
|
1112
1102
|
var tmp = this;
|
|
1113
|
-
var tmp0 = this.
|
|
1103
|
+
var tmp0 = this.y2u_1;
|
|
1114
1104
|
var tmp$ret$1;
|
|
1115
1105
|
$l$block: {
|
|
1116
1106
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1117
1107
|
var _iterator__ex2g4s = tmp0.q();
|
|
1118
1108
|
while (_iterator__ex2g4s.r()) {
|
|
1119
1109
|
var element = _iterator__ex2g4s.s();
|
|
1120
|
-
if (element.
|
|
1110
|
+
if (element.t2u_1 === 'q') {
|
|
1121
1111
|
tmp$ret$1 = element;
|
|
1122
1112
|
break $l$block;
|
|
1123
1113
|
}
|
|
@@ -1125,7 +1115,7 @@ function HeaderValue(value, params) {
|
|
|
1125
1115
|
tmp$ret$1 = null;
|
|
1126
1116
|
}
|
|
1127
1117
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
1128
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1118
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u2u_1;
|
|
1129
1119
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1130
1120
|
var tmp_0;
|
|
1131
1121
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1141,17 +1131,17 @@ function HeaderValue(value, params) {
|
|
|
1141
1131
|
tmp_0 = tmp_1;
|
|
1142
1132
|
}
|
|
1143
1133
|
var tmp3_elvis_lhs = tmp_0;
|
|
1144
|
-
tmp.
|
|
1134
|
+
tmp.z2u_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1145
1135
|
}
|
|
1146
|
-
protoOf(HeaderValue).
|
|
1147
|
-
return this.
|
|
1136
|
+
protoOf(HeaderValue).pb = function () {
|
|
1137
|
+
return this.x2u_1;
|
|
1148
1138
|
};
|
|
1149
1139
|
protoOf(HeaderValue).toString = function () {
|
|
1150
|
-
return 'HeaderValue(value=' + this.
|
|
1140
|
+
return 'HeaderValue(value=' + this.x2u_1 + ', params=' + toString(this.y2u_1) + ')';
|
|
1151
1141
|
};
|
|
1152
1142
|
protoOf(HeaderValue).hashCode = function () {
|
|
1153
|
-
var result = getStringHashCode(this.
|
|
1154
|
-
result = imul(result, 31) + hashCode(this.
|
|
1143
|
+
var result = getStringHashCode(this.x2u_1);
|
|
1144
|
+
result = imul(result, 31) + hashCode(this.y2u_1) | 0;
|
|
1155
1145
|
return result;
|
|
1156
1146
|
};
|
|
1157
1147
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1160,9 +1150,9 @@ protoOf(HeaderValue).equals = function (other) {
|
|
|
1160
1150
|
if (!(other instanceof HeaderValue))
|
|
1161
1151
|
return false;
|
|
1162
1152
|
var tmp0_other_with_cast = other instanceof HeaderValue ? other : THROW_CCE();
|
|
1163
|
-
if (!(this.
|
|
1153
|
+
if (!(this.x2u_1 === tmp0_other_with_cast.x2u_1))
|
|
1164
1154
|
return false;
|
|
1165
|
-
if (!equals_0(this.
|
|
1155
|
+
if (!equals_0(this.y2u_1, tmp0_other_with_cast.y2u_1))
|
|
1166
1156
|
return false;
|
|
1167
1157
|
return true;
|
|
1168
1158
|
};
|
|
@@ -1187,7 +1177,7 @@ function parseHeaderValueItem(text, start, items, parametersOnly) {
|
|
|
1187
1177
|
var parameters = lazy(tmp, parseHeaderValueItem$lambda);
|
|
1188
1178
|
var valueEnd = parametersOnly ? position : null;
|
|
1189
1179
|
while (position <= get_lastIndex_0(text)) {
|
|
1190
|
-
var tmp0_subject =
|
|
1180
|
+
var tmp0_subject = charCodeAt(text, position);
|
|
1191
1181
|
if (tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
1192
1182
|
var tmp_0 = items.c1();
|
|
1193
1183
|
var tmp1_elvis_lhs = valueEnd;
|
|
@@ -1213,23 +1203,21 @@ function parseHeaderValueItem(text, start, items, parametersOnly) {
|
|
|
1213
1203
|
return position;
|
|
1214
1204
|
}
|
|
1215
1205
|
function valueOrEmpty(_this__u8e3s4) {
|
|
1216
|
-
return _this__u8e3s4.
|
|
1206
|
+
return _this__u8e3s4.ao() ? _this__u8e3s4.c1() : emptyList();
|
|
1217
1207
|
}
|
|
1218
1208
|
function subtrim(_this__u8e3s4, start, end) {
|
|
1219
|
-
// Inline function 'kotlin.text.substring' call
|
|
1220
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1221
1209
|
// Inline function 'kotlin.text.trim' call
|
|
1222
|
-
var this_0 =
|
|
1210
|
+
var this_0 = substring(_this__u8e3s4, start, end);
|
|
1223
1211
|
return toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
1224
1212
|
}
|
|
1225
1213
|
function parseHeaderValueParameter(text, start, parameters) {
|
|
1226
1214
|
var position = start;
|
|
1227
1215
|
while (position <= get_lastIndex_0(text)) {
|
|
1228
|
-
var tmp0_subject =
|
|
1216
|
+
var tmp0_subject = charCodeAt(text, position);
|
|
1229
1217
|
if (tmp0_subject === _Char___init__impl__6a9atx(61)) {
|
|
1230
1218
|
var _destruct__k2r9zo = parseHeaderValueParameterValue(text, position + 1 | 0);
|
|
1231
|
-
var paramEnd = _destruct__k2r9zo.
|
|
1232
|
-
var paramValue = _destruct__k2r9zo.
|
|
1219
|
+
var paramEnd = _destruct__k2r9zo.pb();
|
|
1220
|
+
var paramValue = _destruct__k2r9zo.qb();
|
|
1233
1221
|
parseHeaderValueParameter$addParam(parameters, text, start, position, paramValue);
|
|
1234
1222
|
return paramEnd;
|
|
1235
1223
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(59) || tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
@@ -1247,11 +1235,11 @@ function parseHeaderValueParameterValue(value, start) {
|
|
|
1247
1235
|
return to(start, '');
|
|
1248
1236
|
}
|
|
1249
1237
|
var position = start;
|
|
1250
|
-
if (
|
|
1238
|
+
if (charCodeAt(value, start) === _Char___init__impl__6a9atx(34)) {
|
|
1251
1239
|
return parseHeaderValueParameterValueQuoted(value, position + 1 | 0);
|
|
1252
1240
|
}
|
|
1253
1241
|
while (position <= get_lastIndex_0(value)) {
|
|
1254
|
-
var tmp0_subject =
|
|
1242
|
+
var tmp0_subject = charCodeAt(value, position);
|
|
1255
1243
|
if (tmp0_subject === _Char___init__impl__6a9atx(59) || tmp0_subject === _Char___init__impl__6a9atx(44))
|
|
1256
1244
|
return to(position, subtrim(value, start, position));
|
|
1257
1245
|
else {
|
|
@@ -1264,15 +1252,15 @@ function parseHeaderValueParameterValueQuoted(value, start) {
|
|
|
1264
1252
|
var position = start;
|
|
1265
1253
|
var builder = StringBuilder_init_$Create$();
|
|
1266
1254
|
loop: while (position <= get_lastIndex_0(value)) {
|
|
1267
|
-
var currentChar =
|
|
1255
|
+
var currentChar = charCodeAt(value, position);
|
|
1268
1256
|
if (currentChar === _Char___init__impl__6a9atx(34) && nextIsDelimiterOrEnd(value, position)) {
|
|
1269
1257
|
return to(position + 1 | 0, builder.toString());
|
|
1270
1258
|
} else if (currentChar === _Char___init__impl__6a9atx(92) && position < (get_lastIndex_0(value) - 2 | 0)) {
|
|
1271
|
-
builder.
|
|
1259
|
+
builder.t8(charCodeAt(value, position + 1 | 0));
|
|
1272
1260
|
position = position + 2 | 0;
|
|
1273
1261
|
continue loop;
|
|
1274
1262
|
}
|
|
1275
|
-
builder.
|
|
1263
|
+
builder.t8(currentChar);
|
|
1276
1264
|
position = position + 1 | 0;
|
|
1277
1265
|
}
|
|
1278
1266
|
var tmp = position;
|
|
@@ -1284,10 +1272,10 @@ function parseHeaderValueParameterValueQuoted(value, start) {
|
|
|
1284
1272
|
}
|
|
1285
1273
|
function nextIsDelimiterOrEnd(_this__u8e3s4, start) {
|
|
1286
1274
|
var position = start + 1 | 0;
|
|
1287
|
-
loop: while (position < _this__u8e3s4.length &&
|
|
1275
|
+
loop: while (position < _this__u8e3s4.length && charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(32)) {
|
|
1288
1276
|
position = position + 1 | 0;
|
|
1289
1277
|
}
|
|
1290
|
-
return position === _this__u8e3s4.length ||
|
|
1278
|
+
return position === _this__u8e3s4.length || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(59) || charCodeAt(_this__u8e3s4, position) === _Char___init__impl__6a9atx(44);
|
|
1291
1279
|
}
|
|
1292
1280
|
function parseAndSortHeader(header) {
|
|
1293
1281
|
// Inline function 'kotlin.collections.sortedByDescending' call
|
|
@@ -1298,23 +1286,23 @@ function parseAndSortHeader(header) {
|
|
|
1298
1286
|
return sortedWith(this_0, tmp$ret$0);
|
|
1299
1287
|
}
|
|
1300
1288
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1301
|
-
this.
|
|
1289
|
+
this.c31_1 = function_0;
|
|
1302
1290
|
}
|
|
1303
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1304
|
-
return this.
|
|
1291
|
+
protoOf(sam$kotlin_Comparator$0).zd = function (a, b) {
|
|
1292
|
+
return this.c31_1(a, b);
|
|
1305
1293
|
};
|
|
1306
1294
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1307
|
-
return this.
|
|
1295
|
+
return this.zd(a, b);
|
|
1308
1296
|
};
|
|
1309
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
1310
|
-
return this.
|
|
1297
|
+
protoOf(sam$kotlin_Comparator$0).w3 = function () {
|
|
1298
|
+
return this.c31_1;
|
|
1311
1299
|
};
|
|
1312
1300
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1313
1301
|
var tmp;
|
|
1314
1302
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1315
1303
|
var tmp_0;
|
|
1316
1304
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1317
|
-
tmp_0 = equals_0(this.
|
|
1305
|
+
tmp_0 = equals_0(this.w3(), other.w3());
|
|
1318
1306
|
} else {
|
|
1319
1307
|
tmp_0 = false;
|
|
1320
1308
|
}
|
|
@@ -1325,7 +1313,7 @@ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
|
1325
1313
|
return tmp;
|
|
1326
1314
|
};
|
|
1327
1315
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
1328
|
-
return hashCode(this.
|
|
1316
|
+
return hashCode(this.w3());
|
|
1329
1317
|
};
|
|
1330
1318
|
function parseHeaderValueParameter$addParam($parameters, text, start, end, value) {
|
|
1331
1319
|
var name = subtrim(text, start, end);
|
|
@@ -1345,118 +1333,118 @@ function parseHeaderValueItem$lambda() {
|
|
|
1345
1333
|
}
|
|
1346
1334
|
function parseAndSortHeader$lambda(a, b) {
|
|
1347
1335
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1348
|
-
var tmp = b.
|
|
1349
|
-
var tmp$ret$1 = a.
|
|
1336
|
+
var tmp = b.z2u_1;
|
|
1337
|
+
var tmp$ret$1 = a.z2u_1;
|
|
1350
1338
|
return compareValues(tmp, tmp$ret$1);
|
|
1351
1339
|
}
|
|
1352
1340
|
function HttpHeaders() {
|
|
1353
1341
|
HttpHeaders_instance = this;
|
|
1354
|
-
this.
|
|
1355
|
-
this.
|
|
1356
|
-
this.
|
|
1357
|
-
this.
|
|
1358
|
-
this.
|
|
1359
|
-
this.
|
|
1360
|
-
this.
|
|
1361
|
-
this.
|
|
1362
|
-
this.
|
|
1363
|
-
this.
|
|
1364
|
-
this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
this.
|
|
1401
|
-
this.
|
|
1402
|
-
this.
|
|
1403
|
-
this.
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1409
|
-
this.
|
|
1410
|
-
this.
|
|
1411
|
-
this.
|
|
1412
|
-
this.
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1434
|
-
this.
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1444
|
-
this.
|
|
1445
|
-
this.
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1342
|
+
this.e2x_1 = 'Accept';
|
|
1343
|
+
this.f2x_1 = 'Accept-Charset';
|
|
1344
|
+
this.g2x_1 = 'Accept-Encoding';
|
|
1345
|
+
this.h2x_1 = 'Accept-Language';
|
|
1346
|
+
this.i2x_1 = 'Accept-Ranges';
|
|
1347
|
+
this.j2x_1 = 'Age';
|
|
1348
|
+
this.k2x_1 = 'Allow';
|
|
1349
|
+
this.l2x_1 = 'ALPN';
|
|
1350
|
+
this.m2x_1 = 'Authentication-Info';
|
|
1351
|
+
this.n2x_1 = 'Authorization';
|
|
1352
|
+
this.o2x_1 = 'Cache-Control';
|
|
1353
|
+
this.p2x_1 = 'Connection';
|
|
1354
|
+
this.q2x_1 = 'Content-Disposition';
|
|
1355
|
+
this.r2x_1 = 'Content-Encoding';
|
|
1356
|
+
this.s2x_1 = 'Content-Language';
|
|
1357
|
+
this.t2x_1 = 'Content-Length';
|
|
1358
|
+
this.u2x_1 = 'Content-Location';
|
|
1359
|
+
this.v2x_1 = 'Content-Range';
|
|
1360
|
+
this.w2x_1 = 'Content-Type';
|
|
1361
|
+
this.x2x_1 = 'Cookie';
|
|
1362
|
+
this.y2x_1 = 'DASL';
|
|
1363
|
+
this.z2x_1 = 'Date';
|
|
1364
|
+
this.a2y_1 = 'DAV';
|
|
1365
|
+
this.b2y_1 = 'Depth';
|
|
1366
|
+
this.c2y_1 = 'Destination';
|
|
1367
|
+
this.d2y_1 = 'ETag';
|
|
1368
|
+
this.e2y_1 = 'Expect';
|
|
1369
|
+
this.f2y_1 = 'Expires';
|
|
1370
|
+
this.g2y_1 = 'From';
|
|
1371
|
+
this.h2y_1 = 'Forwarded';
|
|
1372
|
+
this.i2y_1 = 'Host';
|
|
1373
|
+
this.j2y_1 = 'HTTP2-Settings';
|
|
1374
|
+
this.k2y_1 = 'If';
|
|
1375
|
+
this.l2y_1 = 'If-Match';
|
|
1376
|
+
this.m2y_1 = 'If-Modified-Since';
|
|
1377
|
+
this.n2y_1 = 'If-None-Match';
|
|
1378
|
+
this.o2y_1 = 'If-Range';
|
|
1379
|
+
this.p2y_1 = 'If-Schedule-Tag-Match';
|
|
1380
|
+
this.q2y_1 = 'If-Unmodified-Since';
|
|
1381
|
+
this.r2y_1 = 'Last-Modified';
|
|
1382
|
+
this.s2y_1 = 'Location';
|
|
1383
|
+
this.t2y_1 = 'Lock-Token';
|
|
1384
|
+
this.u2y_1 = 'Link';
|
|
1385
|
+
this.v2y_1 = 'Max-Forwards';
|
|
1386
|
+
this.w2y_1 = 'MIME-Version';
|
|
1387
|
+
this.x2y_1 = 'Ordering-Type';
|
|
1388
|
+
this.y2y_1 = 'Origin';
|
|
1389
|
+
this.z2y_1 = 'Overwrite';
|
|
1390
|
+
this.a2z_1 = 'Position';
|
|
1391
|
+
this.b2z_1 = 'Pragma';
|
|
1392
|
+
this.c2z_1 = 'Prefer';
|
|
1393
|
+
this.d2z_1 = 'Preference-Applied';
|
|
1394
|
+
this.e2z_1 = 'Proxy-Authenticate';
|
|
1395
|
+
this.f2z_1 = 'Proxy-Authentication-Info';
|
|
1396
|
+
this.g2z_1 = 'Proxy-Authorization';
|
|
1397
|
+
this.h2z_1 = 'Public-Key-Pins';
|
|
1398
|
+
this.i2z_1 = 'Public-Key-Pins-Report-Only';
|
|
1399
|
+
this.j2z_1 = 'Range';
|
|
1400
|
+
this.k2z_1 = 'Referer';
|
|
1401
|
+
this.l2z_1 = 'Retry-After';
|
|
1402
|
+
this.m2z_1 = 'Schedule-Reply';
|
|
1403
|
+
this.n2z_1 = 'Schedule-Tag';
|
|
1404
|
+
this.o2z_1 = 'Sec-WebSocket-Accept';
|
|
1405
|
+
this.p2z_1 = 'Sec-WebSocket-Extensions';
|
|
1406
|
+
this.q2z_1 = 'Sec-WebSocket-Key';
|
|
1407
|
+
this.r2z_1 = 'Sec-WebSocket-Protocol';
|
|
1408
|
+
this.s2z_1 = 'Sec-WebSocket-Version';
|
|
1409
|
+
this.t2z_1 = 'Server';
|
|
1410
|
+
this.u2z_1 = 'Set-Cookie';
|
|
1411
|
+
this.v2z_1 = 'SLUG';
|
|
1412
|
+
this.w2z_1 = 'Strict-Transport-Security';
|
|
1413
|
+
this.x2z_1 = 'TE';
|
|
1414
|
+
this.y2z_1 = 'Timeout';
|
|
1415
|
+
this.z2z_1 = 'Trailer';
|
|
1416
|
+
this.a30_1 = 'Transfer-Encoding';
|
|
1417
|
+
this.b30_1 = 'Upgrade';
|
|
1418
|
+
this.c30_1 = 'User-Agent';
|
|
1419
|
+
this.d30_1 = 'Vary';
|
|
1420
|
+
this.e30_1 = 'Via';
|
|
1421
|
+
this.f30_1 = 'Warning';
|
|
1422
|
+
this.g30_1 = 'WWW-Authenticate';
|
|
1423
|
+
this.h30_1 = 'Access-Control-Allow-Origin';
|
|
1424
|
+
this.i30_1 = 'Access-Control-Allow-Methods';
|
|
1425
|
+
this.j30_1 = 'Access-Control-Allow-Credentials';
|
|
1426
|
+
this.k30_1 = 'Access-Control-Allow-Headers';
|
|
1427
|
+
this.l30_1 = 'Access-Control-Request-Method';
|
|
1428
|
+
this.m30_1 = 'Access-Control-Request-Headers';
|
|
1429
|
+
this.n30_1 = 'Access-Control-Expose-Headers';
|
|
1430
|
+
this.o30_1 = 'Access-Control-Max-Age';
|
|
1431
|
+
this.p30_1 = 'X-Http-Method-Override';
|
|
1432
|
+
this.q30_1 = 'X-Forwarded-Host';
|
|
1433
|
+
this.r30_1 = 'X-Forwarded-Server';
|
|
1434
|
+
this.s30_1 = 'X-Forwarded-Proto';
|
|
1435
|
+
this.t30_1 = 'X-Forwarded-For';
|
|
1436
|
+
this.u30_1 = 'X-Forwarded-Port';
|
|
1437
|
+
this.v30_1 = 'X-Request-ID';
|
|
1438
|
+
this.w30_1 = 'X-Correlation-ID';
|
|
1439
|
+
this.x30_1 = 'X-Total-Count';
|
|
1452
1440
|
var tmp = this;
|
|
1453
1441
|
// Inline function 'kotlin.arrayOf' call
|
|
1454
1442
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1455
1443
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1456
|
-
tmp.
|
|
1457
|
-
this.
|
|
1444
|
+
tmp.y30_1 = [this.a30_1, this.b30_1];
|
|
1445
|
+
this.z30_1 = asList(this.y30_1);
|
|
1458
1446
|
}
|
|
1459
|
-
protoOf(HttpHeaders).
|
|
1447
|
+
protoOf(HttpHeaders).a31 = function (name) {
|
|
1460
1448
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1461
1449
|
var index = 0;
|
|
1462
1450
|
var inductionVariable = 0;
|
|
@@ -1470,7 +1458,7 @@ protoOf(HttpHeaders).y2z = function (name) {
|
|
|
1470
1458
|
}
|
|
1471
1459
|
}
|
|
1472
1460
|
};
|
|
1473
|
-
protoOf(HttpHeaders).
|
|
1461
|
+
protoOf(HttpHeaders).b31 = function (value) {
|
|
1474
1462
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1475
1463
|
var index = 0;
|
|
1476
1464
|
var inductionVariable = 0;
|
|
@@ -1494,31 +1482,31 @@ function isDelimiter(ch) {
|
|
|
1494
1482
|
return contains('"(),/:;<=>?@[\\]{}', ch);
|
|
1495
1483
|
}
|
|
1496
1484
|
function IllegalHeaderNameException(headerName, position) {
|
|
1497
|
-
var tmp = "Header name '" + headerName + "' contains illegal character '" + toString_0(
|
|
1485
|
+
var tmp = "Header name '" + headerName + "' contains illegal character '" + toString_0(charCodeAt(headerName, position)) + "'";
|
|
1498
1486
|
// Inline function 'kotlin.code' call
|
|
1499
|
-
var this_0 =
|
|
1487
|
+
var this_0 = charCodeAt(headerName, position);
|
|
1500
1488
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1501
1489
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1502
1490
|
captureStack(this, IllegalHeaderNameException);
|
|
1503
|
-
this.
|
|
1504
|
-
this.
|
|
1491
|
+
this.d31_1 = headerName;
|
|
1492
|
+
this.e31_1 = position;
|
|
1505
1493
|
}
|
|
1506
1494
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1507
|
-
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(
|
|
1495
|
+
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charCodeAt(headerValue, position)) + "'";
|
|
1508
1496
|
// Inline function 'kotlin.code' call
|
|
1509
|
-
var this_0 =
|
|
1497
|
+
var this_0 = charCodeAt(headerValue, position);
|
|
1510
1498
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1511
1499
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1512
1500
|
captureStack(this, IllegalHeaderValueException);
|
|
1513
|
-
this.
|
|
1514
|
-
this.
|
|
1501
|
+
this.f31_1 = headerValue;
|
|
1502
|
+
this.g31_1 = position;
|
|
1515
1503
|
}
|
|
1516
1504
|
function UnsafeHeaderException(header) {
|
|
1517
1505
|
IllegalArgumentException_init_$Init$('Header(s) ' + header + ' are controlled by the engine and ' + 'cannot be set explicitly', this);
|
|
1518
1506
|
captureStack(this, UnsafeHeaderException);
|
|
1519
1507
|
}
|
|
1520
1508
|
function contentLength(_this__u8e3s4) {
|
|
1521
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1509
|
+
var tmp0_safe_receiver = _this__u8e3s4.h31().b2p(HttpHeaders_getInstance().t2x_1);
|
|
1522
1510
|
return tmp0_safe_receiver == null ? null : toLong(tmp0_safe_receiver);
|
|
1523
1511
|
}
|
|
1524
1512
|
function charset_0(_this__u8e3s4) {
|
|
@@ -1526,27 +1514,27 @@ function charset_0(_this__u8e3s4) {
|
|
|
1526
1514
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1527
1515
|
}
|
|
1528
1516
|
function contentType(_this__u8e3s4) {
|
|
1529
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1517
|
+
var tmp0_safe_receiver = _this__u8e3s4.h31().b2p(HttpHeaders_getInstance().w2x_1);
|
|
1530
1518
|
var tmp;
|
|
1531
1519
|
if (tmp0_safe_receiver == null) {
|
|
1532
1520
|
tmp = null;
|
|
1533
1521
|
} else {
|
|
1534
1522
|
// Inline function 'kotlin.let' call
|
|
1535
|
-
tmp = Companion_getInstance().
|
|
1523
|
+
tmp = Companion_getInstance().io(tmp0_safe_receiver);
|
|
1536
1524
|
}
|
|
1537
1525
|
return tmp;
|
|
1538
1526
|
}
|
|
1539
1527
|
function contentType_0(_this__u8e3s4, type) {
|
|
1540
|
-
return _this__u8e3s4.
|
|
1528
|
+
return _this__u8e3s4.h31().p2q(HttpHeaders_getInstance().w2x_1, type.toString());
|
|
1541
1529
|
}
|
|
1542
1530
|
function contentType_1(_this__u8e3s4) {
|
|
1543
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1531
|
+
var tmp0_safe_receiver = _this__u8e3s4.h31().b2p(HttpHeaders_getInstance().w2x_1);
|
|
1544
1532
|
var tmp;
|
|
1545
1533
|
if (tmp0_safe_receiver == null) {
|
|
1546
1534
|
tmp = null;
|
|
1547
1535
|
} else {
|
|
1548
1536
|
// Inline function 'kotlin.let' call
|
|
1549
|
-
tmp = Companion_getInstance().
|
|
1537
|
+
tmp = Companion_getInstance().io(tmp0_safe_receiver);
|
|
1550
1538
|
}
|
|
1551
1539
|
return tmp;
|
|
1552
1540
|
}
|
|
@@ -1557,14 +1545,14 @@ function get_REQUESTS_WITHOUT_BODY() {
|
|
|
1557
1545
|
var REQUESTS_WITHOUT_BODY;
|
|
1558
1546
|
function Companion_2() {
|
|
1559
1547
|
Companion_instance_2 = this;
|
|
1560
|
-
this.
|
|
1561
|
-
this.
|
|
1562
|
-
this.
|
|
1563
|
-
this.
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1567
|
-
this.
|
|
1548
|
+
this.i31_1 = new HttpMethod('GET');
|
|
1549
|
+
this.j31_1 = new HttpMethod('POST');
|
|
1550
|
+
this.k31_1 = new HttpMethod('PUT');
|
|
1551
|
+
this.l31_1 = new HttpMethod('PATCH');
|
|
1552
|
+
this.m31_1 = new HttpMethod('DELETE');
|
|
1553
|
+
this.n31_1 = new HttpMethod('HEAD');
|
|
1554
|
+
this.o31_1 = new HttpMethod('OPTIONS');
|
|
1555
|
+
this.p31_1 = listOf([this.i31_1, this.j31_1, this.k31_1, this.l31_1, this.m31_1, this.n31_1, this.o31_1]);
|
|
1568
1556
|
}
|
|
1569
1557
|
var Companion_instance_2;
|
|
1570
1558
|
function Companion_getInstance_2() {
|
|
@@ -1574,13 +1562,13 @@ function Companion_getInstance_2() {
|
|
|
1574
1562
|
}
|
|
1575
1563
|
function HttpMethod(value) {
|
|
1576
1564
|
Companion_getInstance_2();
|
|
1577
|
-
this.
|
|
1565
|
+
this.q31_1 = value;
|
|
1578
1566
|
}
|
|
1579
1567
|
protoOf(HttpMethod).toString = function () {
|
|
1580
|
-
return this.
|
|
1568
|
+
return this.q31_1;
|
|
1581
1569
|
};
|
|
1582
1570
|
protoOf(HttpMethod).hashCode = function () {
|
|
1583
|
-
return getStringHashCode(this.
|
|
1571
|
+
return getStringHashCode(this.q31_1);
|
|
1584
1572
|
};
|
|
1585
1573
|
protoOf(HttpMethod).equals = function (other) {
|
|
1586
1574
|
if (this === other)
|
|
@@ -1588,7 +1576,7 @@ protoOf(HttpMethod).equals = function (other) {
|
|
|
1588
1576
|
if (!(other instanceof HttpMethod))
|
|
1589
1577
|
return false;
|
|
1590
1578
|
var tmp0_other_with_cast = other instanceof HttpMethod ? other : THROW_CCE();
|
|
1591
|
-
if (!(this.
|
|
1579
|
+
if (!(this.q31_1 === tmp0_other_with_cast.q31_1))
|
|
1592
1580
|
return false;
|
|
1593
1581
|
return true;
|
|
1594
1582
|
};
|
|
@@ -1600,16 +1588,16 @@ var properties_initialized_HttpMethod_kt_ogor3f;
|
|
|
1600
1588
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1601
1589
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1602
1590
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1603
|
-
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().
|
|
1591
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_2().i31_1, Companion_getInstance_2().n31_1, Companion_getInstance_2().o31_1, new HttpMethod('TRACE')]);
|
|
1604
1592
|
}
|
|
1605
1593
|
}
|
|
1606
1594
|
function Companion_3() {
|
|
1607
1595
|
Companion_instance_3 = this;
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1596
|
+
this.r31_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1597
|
+
this.s31_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1598
|
+
this.t31_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1599
|
+
this.u31_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1600
|
+
this.v31_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1613
1601
|
}
|
|
1614
1602
|
var Companion_instance_3;
|
|
1615
1603
|
function Companion_getInstance_3() {
|
|
@@ -1619,17 +1607,17 @@ function Companion_getInstance_3() {
|
|
|
1619
1607
|
}
|
|
1620
1608
|
function HttpProtocolVersion(name, major, minor) {
|
|
1621
1609
|
Companion_getInstance_3();
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1610
|
+
this.w31_1 = name;
|
|
1611
|
+
this.x31_1 = major;
|
|
1612
|
+
this.y31_1 = minor;
|
|
1625
1613
|
}
|
|
1626
1614
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1627
|
-
return this.
|
|
1615
|
+
return this.w31_1 + '/' + this.x31_1 + '.' + this.y31_1;
|
|
1628
1616
|
};
|
|
1629
1617
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1630
|
-
var result = getStringHashCode(this.
|
|
1631
|
-
result = imul(result, 31) + this.
|
|
1632
|
-
result = imul(result, 31) + this.
|
|
1618
|
+
var result = getStringHashCode(this.w31_1);
|
|
1619
|
+
result = imul(result, 31) + this.x31_1 | 0;
|
|
1620
|
+
result = imul(result, 31) + this.y31_1 | 0;
|
|
1633
1621
|
return result;
|
|
1634
1622
|
};
|
|
1635
1623
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1638,83 +1626,83 @@ protoOf(HttpProtocolVersion).equals = function (other) {
|
|
|
1638
1626
|
if (!(other instanceof HttpProtocolVersion))
|
|
1639
1627
|
return false;
|
|
1640
1628
|
var tmp0_other_with_cast = other instanceof HttpProtocolVersion ? other : THROW_CCE();
|
|
1641
|
-
if (!(this.
|
|
1629
|
+
if (!(this.w31_1 === tmp0_other_with_cast.w31_1))
|
|
1642
1630
|
return false;
|
|
1643
|
-
if (!(this.
|
|
1631
|
+
if (!(this.x31_1 === tmp0_other_with_cast.x31_1))
|
|
1644
1632
|
return false;
|
|
1645
|
-
if (!(this.
|
|
1633
|
+
if (!(this.y31_1 === tmp0_other_with_cast.y31_1))
|
|
1646
1634
|
return false;
|
|
1647
1635
|
return true;
|
|
1648
1636
|
};
|
|
1649
1637
|
function Companion_4() {
|
|
1650
1638
|
Companion_instance_4 = this;
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
this.
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1676
|
-
this.
|
|
1677
|
-
this.
|
|
1678
|
-
this.
|
|
1679
|
-
this.
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1683
|
-
this.
|
|
1684
|
-
this.
|
|
1685
|
-
this.
|
|
1686
|
-
this.
|
|
1687
|
-
this.
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1691
|
-
this.
|
|
1692
|
-
this.
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1696
|
-
this.
|
|
1697
|
-
this.
|
|
1698
|
-
this.
|
|
1699
|
-
this.
|
|
1700
|
-
this.
|
|
1701
|
-
this.
|
|
1702
|
-
this.
|
|
1703
|
-
this.
|
|
1704
|
-
this.
|
|
1639
|
+
this.z31_1 = new HttpStatusCode(100, 'Continue');
|
|
1640
|
+
this.a32_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1641
|
+
this.b32_1 = new HttpStatusCode(102, 'Processing');
|
|
1642
|
+
this.c32_1 = new HttpStatusCode(200, 'OK');
|
|
1643
|
+
this.d32_1 = new HttpStatusCode(201, 'Created');
|
|
1644
|
+
this.e32_1 = new HttpStatusCode(202, 'Accepted');
|
|
1645
|
+
this.f32_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1646
|
+
this.g32_1 = new HttpStatusCode(204, 'No Content');
|
|
1647
|
+
this.h32_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1648
|
+
this.i32_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1649
|
+
this.j32_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1650
|
+
this.k32_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1651
|
+
this.l32_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1652
|
+
this.m32_1 = new HttpStatusCode(302, 'Found');
|
|
1653
|
+
this.n32_1 = new HttpStatusCode(303, 'See Other');
|
|
1654
|
+
this.o32_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1655
|
+
this.p32_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1656
|
+
this.q32_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1657
|
+
this.r32_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1658
|
+
this.s32_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1659
|
+
this.t32_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1660
|
+
this.u32_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1661
|
+
this.v32_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1662
|
+
this.w32_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1663
|
+
this.x32_1 = new HttpStatusCode(404, 'Not Found');
|
|
1664
|
+
this.y32_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1665
|
+
this.z32_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1666
|
+
this.a33_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1667
|
+
this.b33_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1668
|
+
this.c33_1 = new HttpStatusCode(409, 'Conflict');
|
|
1669
|
+
this.d33_1 = new HttpStatusCode(410, 'Gone');
|
|
1670
|
+
this.e33_1 = new HttpStatusCode(411, 'Length Required');
|
|
1671
|
+
this.f33_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1672
|
+
this.g33_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1673
|
+
this.h33_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1674
|
+
this.i33_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1675
|
+
this.j33_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1676
|
+
this.k33_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1677
|
+
this.l33_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1678
|
+
this.m33_1 = new HttpStatusCode(423, 'Locked');
|
|
1679
|
+
this.n33_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1680
|
+
this.o33_1 = new HttpStatusCode(425, 'Too Early');
|
|
1681
|
+
this.p33_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1682
|
+
this.q33_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1683
|
+
this.r33_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1684
|
+
this.s33_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1685
|
+
this.t33_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1686
|
+
this.u33_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1687
|
+
this.v33_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1688
|
+
this.w33_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1689
|
+
this.x33_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1690
|
+
this.y33_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1691
|
+
this.z33_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1692
|
+
this.a34_1 = allStatusCodes();
|
|
1705
1693
|
var tmp = this;
|
|
1706
1694
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1707
|
-
var this_0 = this.
|
|
1695
|
+
var this_0 = this.a34_1;
|
|
1708
1696
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1709
1697
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1710
1698
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1711
1699
|
var _iterator__ex2g4s = this_0.q();
|
|
1712
1700
|
while (_iterator__ex2g4s.r()) {
|
|
1713
1701
|
var element = _iterator__ex2g4s.s();
|
|
1714
|
-
var tmp$ret$0 = element.
|
|
1702
|
+
var tmp$ret$0 = element.c34_1;
|
|
1715
1703
|
destination.s2(tmp$ret$0, element);
|
|
1716
1704
|
}
|
|
1717
|
-
tmp.
|
|
1705
|
+
tmp.b34_1 = destination;
|
|
1718
1706
|
}
|
|
1719
1707
|
var Companion_instance_4;
|
|
1720
1708
|
function Companion_getInstance_4() {
|
|
@@ -1724,40 +1712,40 @@ function Companion_getInstance_4() {
|
|
|
1724
1712
|
}
|
|
1725
1713
|
function HttpStatusCode(value, description) {
|
|
1726
1714
|
Companion_getInstance_4();
|
|
1727
|
-
this.
|
|
1728
|
-
this.
|
|
1715
|
+
this.c34_1 = value;
|
|
1716
|
+
this.d34_1 = description;
|
|
1729
1717
|
}
|
|
1730
1718
|
protoOf(HttpStatusCode).toString = function () {
|
|
1731
|
-
return '' + this.
|
|
1719
|
+
return '' + this.c34_1 + ' ' + this.d34_1;
|
|
1732
1720
|
};
|
|
1733
1721
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1734
1722
|
var tmp;
|
|
1735
1723
|
if (other instanceof HttpStatusCode) {
|
|
1736
|
-
tmp = other.
|
|
1724
|
+
tmp = other.c34_1 === this.c34_1;
|
|
1737
1725
|
} else {
|
|
1738
1726
|
tmp = false;
|
|
1739
1727
|
}
|
|
1740
1728
|
return tmp;
|
|
1741
1729
|
};
|
|
1742
1730
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1743
|
-
return this.
|
|
1731
|
+
return this.c34_1;
|
|
1744
1732
|
};
|
|
1745
|
-
protoOf(HttpStatusCode).
|
|
1746
|
-
return this.
|
|
1733
|
+
protoOf(HttpStatusCode).e34 = function (other) {
|
|
1734
|
+
return this.c34_1 - other.c34_1 | 0;
|
|
1747
1735
|
};
|
|
1748
1736
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1749
|
-
return this.
|
|
1737
|
+
return this.e34(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1750
1738
|
};
|
|
1751
1739
|
function allStatusCodes() {
|
|
1752
|
-
return listOf([Companion_getInstance_4().
|
|
1740
|
+
return listOf([Companion_getInstance_4().z31_1, Companion_getInstance_4().a32_1, Companion_getInstance_4().b32_1, Companion_getInstance_4().c32_1, Companion_getInstance_4().d32_1, Companion_getInstance_4().e32_1, Companion_getInstance_4().f32_1, Companion_getInstance_4().g32_1, Companion_getInstance_4().h32_1, Companion_getInstance_4().i32_1, Companion_getInstance_4().j32_1, Companion_getInstance_4().k32_1, Companion_getInstance_4().l32_1, Companion_getInstance_4().m32_1, Companion_getInstance_4().n32_1, Companion_getInstance_4().o32_1, Companion_getInstance_4().p32_1, Companion_getInstance_4().q32_1, Companion_getInstance_4().r32_1, Companion_getInstance_4().s32_1, Companion_getInstance_4().t32_1, Companion_getInstance_4().u32_1, Companion_getInstance_4().v32_1, Companion_getInstance_4().w32_1, Companion_getInstance_4().x32_1, Companion_getInstance_4().y32_1, Companion_getInstance_4().z32_1, Companion_getInstance_4().a33_1, Companion_getInstance_4().b33_1, Companion_getInstance_4().c33_1, Companion_getInstance_4().d33_1, Companion_getInstance_4().e33_1, Companion_getInstance_4().f33_1, Companion_getInstance_4().g33_1, Companion_getInstance_4().h33_1, Companion_getInstance_4().i33_1, Companion_getInstance_4().j33_1, Companion_getInstance_4().k33_1, Companion_getInstance_4().l33_1, Companion_getInstance_4().m33_1, Companion_getInstance_4().n33_1, Companion_getInstance_4().o33_1, Companion_getInstance_4().p33_1, Companion_getInstance_4().q33_1, Companion_getInstance_4().r33_1, Companion_getInstance_4().s33_1, Companion_getInstance_4().t33_1, Companion_getInstance_4().u33_1, Companion_getInstance_4().v33_1, Companion_getInstance_4().w33_1, Companion_getInstance_4().x33_1, Companion_getInstance_4().y33_1, Companion_getInstance_4().z33_1]);
|
|
1753
1741
|
}
|
|
1754
1742
|
function isSuccess(_this__u8e3s4) {
|
|
1755
|
-
var containsArg = _this__u8e3s4.
|
|
1743
|
+
var containsArg = _this__u8e3s4.c34_1;
|
|
1756
1744
|
return 200 <= containsArg ? containsArg < 300 : false;
|
|
1757
1745
|
}
|
|
1758
1746
|
function Companion_5() {
|
|
1759
1747
|
Companion_instance_5 = this;
|
|
1760
|
-
this.
|
|
1748
|
+
this.f34_1 = EmptyParameters_instance;
|
|
1761
1749
|
}
|
|
1762
1750
|
var Companion_instance_5;
|
|
1763
1751
|
function Companion_getInstance_5() {
|
|
@@ -1769,23 +1757,23 @@ function Parameters() {
|
|
|
1769
1757
|
}
|
|
1770
1758
|
function EmptyParameters() {
|
|
1771
1759
|
}
|
|
1772
|
-
protoOf(EmptyParameters).
|
|
1760
|
+
protoOf(EmptyParameters).g2q = function () {
|
|
1773
1761
|
return true;
|
|
1774
1762
|
};
|
|
1775
|
-
protoOf(EmptyParameters).
|
|
1763
|
+
protoOf(EmptyParameters).h2q = function (name) {
|
|
1776
1764
|
return null;
|
|
1777
1765
|
};
|
|
1778
|
-
protoOf(EmptyParameters).
|
|
1766
|
+
protoOf(EmptyParameters).i2q = function () {
|
|
1779
1767
|
return emptySet();
|
|
1780
1768
|
};
|
|
1781
|
-
protoOf(EmptyParameters).
|
|
1769
|
+
protoOf(EmptyParameters).j2q = function () {
|
|
1782
1770
|
return emptySet();
|
|
1783
1771
|
};
|
|
1784
1772
|
protoOf(EmptyParameters).h = function () {
|
|
1785
1773
|
return true;
|
|
1786
1774
|
};
|
|
1787
1775
|
protoOf(EmptyParameters).toString = function () {
|
|
1788
|
-
return 'Parameters ' + toString(this.
|
|
1776
|
+
return 'Parameters ' + toString(this.j2q());
|
|
1789
1777
|
};
|
|
1790
1778
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1791
1779
|
var tmp;
|
|
@@ -1808,15 +1796,15 @@ function ParametersBuilderImpl(size) {
|
|
|
1808
1796
|
size = size === VOID ? 8 : size;
|
|
1809
1797
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1810
1798
|
}
|
|
1811
|
-
protoOf(ParametersBuilderImpl).
|
|
1812
|
-
return new ParametersImpl(this.
|
|
1799
|
+
protoOf(ParametersBuilderImpl).d2x = function () {
|
|
1800
|
+
return new ParametersImpl(this.m2q_1);
|
|
1813
1801
|
};
|
|
1814
1802
|
function ParametersImpl(values) {
|
|
1815
1803
|
values = values === VOID ? emptyMap() : values;
|
|
1816
1804
|
StringValuesImpl.call(this, true, values);
|
|
1817
1805
|
}
|
|
1818
1806
|
protoOf(ParametersImpl).toString = function () {
|
|
1819
|
-
return 'Parameters ' + toString(this.
|
|
1807
|
+
return 'Parameters ' + toString(this.j2q());
|
|
1820
1808
|
};
|
|
1821
1809
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1822
1810
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1824,14 +1812,14 @@ function parseQueryString(query, startIndex, limit, decode) {
|
|
|
1824
1812
|
decode = decode === VOID ? true : decode;
|
|
1825
1813
|
var tmp;
|
|
1826
1814
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1827
|
-
tmp = Companion_getInstance_5().
|
|
1815
|
+
tmp = Companion_getInstance_5().f34_1;
|
|
1828
1816
|
} else {
|
|
1829
1817
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1830
1818
|
Companion_getInstance_5();
|
|
1831
1819
|
// Inline function 'kotlin.apply' call
|
|
1832
1820
|
var this_0 = ParametersBuilder();
|
|
1833
1821
|
parse(this_0, query, startIndex, limit, decode);
|
|
1834
|
-
tmp = this_0.
|
|
1822
|
+
tmp = this_0.d2x();
|
|
1835
1823
|
}
|
|
1836
1824
|
return tmp;
|
|
1837
1825
|
}
|
|
@@ -1848,7 +1836,7 @@ function parse(_this__u8e3s4, query, startIndex, limit, decode) {
|
|
|
1848
1836
|
if (count === limit) {
|
|
1849
1837
|
return Unit_instance;
|
|
1850
1838
|
}
|
|
1851
|
-
var tmp0_subject =
|
|
1839
|
+
var tmp0_subject = charCodeAt(query, index);
|
|
1852
1840
|
if (tmp0_subject === _Char___init__impl__6a9atx(38)) {
|
|
1853
1841
|
appendParam(_this__u8e3s4, query, nameIndex, equalIndex, index, decode);
|
|
1854
1842
|
nameIndex = index + 1 | 0;
|
|
@@ -1871,43 +1859,19 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1871
1859
|
var spaceNameIndex = trimStart(nameIndex, endIndex, query);
|
|
1872
1860
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1873
1861
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1874
|
-
var
|
|
1875
|
-
|
|
1876
|
-
tmp = decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex);
|
|
1877
|
-
} else {
|
|
1878
|
-
// Inline function 'kotlin.text.substring' call
|
|
1879
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1880
|
-
tmp = query.substring(spaceNameIndex, spaceEndIndex);
|
|
1881
|
-
}
|
|
1882
|
-
var name = tmp;
|
|
1883
|
-
_this__u8e3s4.m2p(name, emptyList());
|
|
1862
|
+
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1863
|
+
_this__u8e3s4.o2q(name, emptyList());
|
|
1884
1864
|
}
|
|
1885
1865
|
return Unit_instance;
|
|
1886
1866
|
}
|
|
1887
1867
|
var spaceNameIndex_0 = trimStart(nameIndex, equalIndex, query);
|
|
1888
1868
|
var spaceEqualIndex = trimEnd(spaceNameIndex_0, equalIndex, query);
|
|
1889
1869
|
if (spaceEqualIndex > spaceNameIndex_0) {
|
|
1890
|
-
var
|
|
1891
|
-
if (decode) {
|
|
1892
|
-
tmp_0 = decodeURLQueryComponent(query, spaceNameIndex_0, spaceEqualIndex);
|
|
1893
|
-
} else {
|
|
1894
|
-
// Inline function 'kotlin.text.substring' call
|
|
1895
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1896
|
-
tmp_0 = query.substring(spaceNameIndex_0, spaceEqualIndex);
|
|
1897
|
-
}
|
|
1898
|
-
var name_0 = tmp_0;
|
|
1870
|
+
var name_0 = decode ? decodeURLQueryComponent(query, spaceNameIndex_0, spaceEqualIndex) : substring(query, spaceNameIndex_0, spaceEqualIndex);
|
|
1899
1871
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1900
1872
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1901
|
-
var
|
|
1902
|
-
|
|
1903
|
-
tmp_1 = decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true);
|
|
1904
|
-
} else {
|
|
1905
|
-
// Inline function 'kotlin.text.substring' call
|
|
1906
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1907
|
-
tmp_1 = query.substring(spaceValueIndex, spaceEndIndex_0);
|
|
1908
|
-
}
|
|
1909
|
-
var value = tmp_1;
|
|
1910
|
-
_this__u8e3s4.p2p(name_0, value);
|
|
1873
|
+
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1874
|
+
_this__u8e3s4.r2q(name_0, value);
|
|
1911
1875
|
}
|
|
1912
1876
|
}
|
|
1913
1877
|
function trimStart(start, end, query) {
|
|
@@ -1927,25 +1891,25 @@ function trimEnd(start, end, text) {
|
|
|
1927
1891
|
function applyOrigin($this) {
|
|
1928
1892
|
var tmp;
|
|
1929
1893
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1930
|
-
var this_0 = $this.
|
|
1894
|
+
var this_0 = $this.i34_1;
|
|
1931
1895
|
if (charSequenceLength(this_0) > 0) {
|
|
1932
1896
|
tmp = true;
|
|
1933
1897
|
} else {
|
|
1934
|
-
tmp = $this.
|
|
1898
|
+
tmp = $this.u34().s34_1 === 'file';
|
|
1935
1899
|
}
|
|
1936
1900
|
if (tmp)
|
|
1937
1901
|
return Unit_instance;
|
|
1938
|
-
$this.
|
|
1939
|
-
if ($this.
|
|
1940
|
-
$this.
|
|
1941
|
-
if ($this.
|
|
1942
|
-
$this.
|
|
1902
|
+
$this.i34_1 = Companion_getInstance_6().o35_1.v34_1;
|
|
1903
|
+
if ($this.l34_1 == null)
|
|
1904
|
+
$this.l34_1 = Companion_getInstance_6().o35_1.g35_1;
|
|
1905
|
+
if ($this.k34_1 === 0) {
|
|
1906
|
+
$this.q35(Companion_getInstance_6().o35_1.w34_1);
|
|
1943
1907
|
}
|
|
1944
1908
|
}
|
|
1945
1909
|
function Companion_6() {
|
|
1946
1910
|
Companion_instance_6 = this;
|
|
1947
|
-
this.
|
|
1948
|
-
this.
|
|
1911
|
+
this.o35_1 = Url(get_origin(this));
|
|
1912
|
+
this.p35_1 = 256;
|
|
1949
1913
|
}
|
|
1950
1914
|
var Companion_instance_6;
|
|
1951
1915
|
function Companion_getInstance_6() {
|
|
@@ -1961,18 +1925,18 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1961
1925
|
user = user === VOID ? null : user;
|
|
1962
1926
|
password = password === VOID ? null : password;
|
|
1963
1927
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1964
|
-
parameters = parameters === VOID ? Companion_getInstance_5().
|
|
1928
|
+
parameters = parameters === VOID ? Companion_getInstance_5().f34_1 : parameters;
|
|
1965
1929
|
fragment = fragment === VOID ? '' : fragment;
|
|
1966
1930
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1967
|
-
this.
|
|
1968
|
-
this.
|
|
1969
|
-
this.
|
|
1970
|
-
this.
|
|
1931
|
+
this.i34_1 = host;
|
|
1932
|
+
this.j34_1 = trailingQuery;
|
|
1933
|
+
this.k34_1 = port;
|
|
1934
|
+
this.l34_1 = protocol;
|
|
1971
1935
|
var tmp = this;
|
|
1972
|
-
tmp.
|
|
1936
|
+
tmp.m34_1 = user == null ? null : encodeURLParameter(user);
|
|
1973
1937
|
var tmp_0 = this;
|
|
1974
|
-
tmp_0.
|
|
1975
|
-
this.
|
|
1938
|
+
tmp_0.n34_1 = password == null ? null : encodeURLParameter(password);
|
|
1939
|
+
this.o34_1 = encodeURLQueryComponent(fragment);
|
|
1976
1940
|
var tmp_1 = this;
|
|
1977
1941
|
// Inline function 'kotlin.collections.map' call
|
|
1978
1942
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1983,43 +1947,43 @@ function URLBuilder(protocol, host, port, user, password, pathSegments, paramete
|
|
|
1983
1947
|
var tmp$ret$0 = encodeURLPathPart(item);
|
|
1984
1948
|
destination.k(tmp$ret$0);
|
|
1985
1949
|
}
|
|
1986
|
-
tmp_1.
|
|
1987
|
-
this.
|
|
1988
|
-
this.
|
|
1950
|
+
tmp_1.p34_1 = destination;
|
|
1951
|
+
this.q34_1 = encodeParameters(parameters);
|
|
1952
|
+
this.r34_1 = new UrlDecodedParametersBuilder(this.q34_1);
|
|
1989
1953
|
}
|
|
1990
|
-
protoOf(URLBuilder).
|
|
1954
|
+
protoOf(URLBuilder).q35 = function (value) {
|
|
1991
1955
|
// Inline function 'kotlin.require' call
|
|
1992
1956
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1993
1957
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1994
1958
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1995
1959
|
}
|
|
1996
|
-
this.
|
|
1960
|
+
this.k34_1 = value;
|
|
1997
1961
|
};
|
|
1998
|
-
protoOf(URLBuilder).
|
|
1999
|
-
this.
|
|
1962
|
+
protoOf(URLBuilder).r35 = function (value) {
|
|
1963
|
+
this.l34_1 = value;
|
|
2000
1964
|
};
|
|
2001
|
-
protoOf(URLBuilder).
|
|
2002
|
-
var tmp0_elvis_lhs = this.
|
|
2003
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_7().
|
|
1965
|
+
protoOf(URLBuilder).u34 = function () {
|
|
1966
|
+
var tmp0_elvis_lhs = this.l34_1;
|
|
1967
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().s35_1 : tmp0_elvis_lhs;
|
|
2004
1968
|
};
|
|
2005
|
-
protoOf(URLBuilder).
|
|
1969
|
+
protoOf(URLBuilder).y35 = function (value) {
|
|
2006
1970
|
var tmp = this;
|
|
2007
|
-
tmp.
|
|
1971
|
+
tmp.m34_1 = value == null ? null : encodeURLParameter(value);
|
|
2008
1972
|
};
|
|
2009
|
-
protoOf(URLBuilder).
|
|
2010
|
-
var tmp0_safe_receiver = this.
|
|
1973
|
+
protoOf(URLBuilder).z35 = function () {
|
|
1974
|
+
var tmp0_safe_receiver = this.m34_1;
|
|
2011
1975
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
2012
1976
|
};
|
|
2013
|
-
protoOf(URLBuilder).
|
|
2014
|
-
var tmp0_safe_receiver = this.
|
|
1977
|
+
protoOf(URLBuilder).a36 = function () {
|
|
1978
|
+
var tmp0_safe_receiver = this.n34_1;
|
|
2015
1979
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
2016
1980
|
};
|
|
2017
|
-
protoOf(URLBuilder).
|
|
2018
|
-
return decodeURLQueryComponent(this.
|
|
1981
|
+
protoOf(URLBuilder).b36 = function () {
|
|
1982
|
+
return decodeURLQueryComponent(this.o34_1);
|
|
2019
1983
|
};
|
|
2020
|
-
protoOf(URLBuilder).
|
|
1984
|
+
protoOf(URLBuilder).c36 = function () {
|
|
2021
1985
|
// Inline function 'kotlin.collections.map' call
|
|
2022
|
-
var this_0 = this.
|
|
1986
|
+
var this_0 = this.p34_1;
|
|
2023
1987
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2024
1988
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2025
1989
|
var _iterator__ex2g4s = this_0.q();
|
|
@@ -2030,60 +1994,60 @@ protoOf(URLBuilder).a35 = function () {
|
|
|
2030
1994
|
}
|
|
2031
1995
|
return destination;
|
|
2032
1996
|
};
|
|
2033
|
-
protoOf(URLBuilder).
|
|
2034
|
-
this.
|
|
2035
|
-
this.
|
|
1997
|
+
protoOf(URLBuilder).d36 = function (value) {
|
|
1998
|
+
this.q34_1 = value;
|
|
1999
|
+
this.r34_1 = new UrlDecodedParametersBuilder(value);
|
|
2036
2000
|
};
|
|
2037
|
-
protoOf(URLBuilder).
|
|
2001
|
+
protoOf(URLBuilder).e36 = function () {
|
|
2038
2002
|
applyOrigin(this);
|
|
2039
2003
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2040
2004
|
};
|
|
2041
2005
|
protoOf(URLBuilder).toString = function () {
|
|
2042
2006
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2043
2007
|
};
|
|
2044
|
-
protoOf(URLBuilder).
|
|
2008
|
+
protoOf(URLBuilder).d2x = function () {
|
|
2045
2009
|
applyOrigin(this);
|
|
2046
|
-
return new Url_0(this.
|
|
2010
|
+
return new Url_0(this.l34_1, this.i34_1, this.k34_1, this.c36(), this.r34_1.d2x(), this.b36(), this.z35(), this.a36(), this.j34_1, this.e36());
|
|
2047
2011
|
};
|
|
2048
2012
|
function get_authority(_this__u8e3s4) {
|
|
2049
2013
|
// Inline function 'kotlin.text.buildString' call
|
|
2050
2014
|
// Inline function 'kotlin.apply' call
|
|
2051
2015
|
var this_0 = StringBuilder_init_$Create$();
|
|
2052
|
-
this_0.
|
|
2053
|
-
this_0.
|
|
2054
|
-
if (!(_this__u8e3s4.
|
|
2055
|
-
this_0.
|
|
2056
|
-
this_0.
|
|
2016
|
+
this_0.s8(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2017
|
+
this_0.s8(_this__u8e3s4.i34_1);
|
|
2018
|
+
if (!(_this__u8e3s4.k34_1 === 0) && !(_this__u8e3s4.k34_1 === _this__u8e3s4.u34().t34_1)) {
|
|
2019
|
+
this_0.s8(':');
|
|
2020
|
+
this_0.s8(_this__u8e3s4.k34_1.toString());
|
|
2057
2021
|
}
|
|
2058
2022
|
return this_0.toString();
|
|
2059
2023
|
}
|
|
2060
2024
|
function appendTo(_this__u8e3s4, out) {
|
|
2061
|
-
out.o(_this__u8e3s4.
|
|
2062
|
-
switch (_this__u8e3s4.
|
|
2025
|
+
out.o(_this__u8e3s4.u34().s34_1);
|
|
2026
|
+
switch (_this__u8e3s4.u34().s34_1) {
|
|
2063
2027
|
case 'file':
|
|
2064
|
-
appendFile(out, _this__u8e3s4.
|
|
2028
|
+
appendFile(out, _this__u8e3s4.i34_1, get_encodedPath(_this__u8e3s4));
|
|
2065
2029
|
return out;
|
|
2066
2030
|
case 'mailto':
|
|
2067
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2031
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.i34_1);
|
|
2068
2032
|
return out;
|
|
2069
2033
|
case 'about':
|
|
2070
|
-
appendPayload(out, _this__u8e3s4.
|
|
2034
|
+
appendPayload(out, _this__u8e3s4.i34_1);
|
|
2071
2035
|
return out;
|
|
2072
2036
|
case 'tel':
|
|
2073
|
-
appendPayload(out, _this__u8e3s4.
|
|
2037
|
+
appendPayload(out, _this__u8e3s4.i34_1);
|
|
2074
2038
|
return out;
|
|
2075
2039
|
case 'data':
|
|
2076
|
-
appendPayload(out, _this__u8e3s4.
|
|
2040
|
+
appendPayload(out, _this__u8e3s4.i34_1);
|
|
2077
2041
|
return out;
|
|
2078
2042
|
}
|
|
2079
2043
|
out.o('://');
|
|
2080
2044
|
out.o(get_authority(_this__u8e3s4));
|
|
2081
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2045
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.q34_1, _this__u8e3s4.j34_1);
|
|
2082
2046
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2083
|
-
var this_0 = _this__u8e3s4.
|
|
2047
|
+
var this_0 = _this__u8e3s4.o34_1;
|
|
2084
2048
|
if (charSequenceLength(this_0) > 0) {
|
|
2085
|
-
out.
|
|
2086
|
-
out.o(_this__u8e3s4.
|
|
2049
|
+
out.t8(_Char___init__impl__6a9atx(35));
|
|
2050
|
+
out.o(_this__u8e3s4.o34_1);
|
|
2087
2051
|
}
|
|
2088
2052
|
return out;
|
|
2089
2053
|
}
|
|
@@ -2091,22 +2055,22 @@ function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
|
2091
2055
|
// Inline function 'kotlin.text.buildString' call
|
|
2092
2056
|
// Inline function 'kotlin.apply' call
|
|
2093
2057
|
var this_0 = StringBuilder_init_$Create$();
|
|
2094
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2058
|
+
appendUserAndPassword(this_0, _this__u8e3s4.m34_1, _this__u8e3s4.n34_1);
|
|
2095
2059
|
return this_0.toString();
|
|
2096
2060
|
}
|
|
2097
2061
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
2098
2062
|
_this__u8e3s4.o('://');
|
|
2099
2063
|
_this__u8e3s4.o(host);
|
|
2100
2064
|
if (!startsWith_0(encodedPath, _Char___init__impl__6a9atx(47))) {
|
|
2101
|
-
_this__u8e3s4.
|
|
2065
|
+
_this__u8e3s4.t8(_Char___init__impl__6a9atx(47));
|
|
2102
2066
|
}
|
|
2103
2067
|
_this__u8e3s4.o(encodedPath);
|
|
2104
2068
|
}
|
|
2105
2069
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2106
|
-
_this__u8e3s4.
|
|
2070
|
+
_this__u8e3s4.p34_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2107
2071
|
}
|
|
2108
2072
|
function get_encodedPath(_this__u8e3s4) {
|
|
2109
|
-
return joinPath(_this__u8e3s4.
|
|
2073
|
+
return joinPath(_this__u8e3s4.p34_1);
|
|
2110
2074
|
}
|
|
2111
2075
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2112
2076
|
_this__u8e3s4.o(':');
|
|
@@ -2167,9 +2131,9 @@ function appendPathSegments_0(_this__u8e3s4, segments, encodeSlash) {
|
|
|
2167
2131
|
function appendEncodedPathSegments(_this__u8e3s4, segments) {
|
|
2168
2132
|
var tmp;
|
|
2169
2133
|
var tmp_0;
|
|
2170
|
-
if (_this__u8e3s4.
|
|
2134
|
+
if (_this__u8e3s4.p34_1.t() > 1) {
|
|
2171
2135
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2172
|
-
var this_0 = last(_this__u8e3s4.
|
|
2136
|
+
var this_0 = last(_this__u8e3s4.p34_1);
|
|
2173
2137
|
tmp_0 = charSequenceLength(this_0) === 0;
|
|
2174
2138
|
} else {
|
|
2175
2139
|
tmp_0 = false;
|
|
@@ -2192,12 +2156,12 @@ function appendEncodedPathSegments(_this__u8e3s4, segments) {
|
|
|
2192
2156
|
}
|
|
2193
2157
|
if (tmp_2) {
|
|
2194
2158
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
2195
|
-
tmp_1 = !_this__u8e3s4.
|
|
2159
|
+
tmp_1 = !_this__u8e3s4.p34_1.h();
|
|
2196
2160
|
} else {
|
|
2197
2161
|
tmp_1 = false;
|
|
2198
2162
|
}
|
|
2199
2163
|
var startWithSlash = tmp_1;
|
|
2200
|
-
_this__u8e3s4.
|
|
2164
|
+
_this__u8e3s4.p34_1 = endsWithSlash && startWithSlash ? plus_0(dropLast(_this__u8e3s4.p34_1, 1), drop(segments, 1)) : endsWithSlash ? plus_0(dropLast(_this__u8e3s4.p34_1, 1), segments) : startWithSlash ? plus_0(_this__u8e3s4.p34_1, drop(segments, 1)) : plus_0(_this__u8e3s4.p34_1, segments);
|
|
2201
2165
|
return _this__u8e3s4;
|
|
2202
2166
|
}
|
|
2203
2167
|
function set(_this__u8e3s4, scheme, host, port, path, block) {
|
|
@@ -2213,12 +2177,12 @@ function set(_this__u8e3s4, scheme, host, port, path, block) {
|
|
|
2213
2177
|
}
|
|
2214
2178
|
block = tmp;
|
|
2215
2179
|
if (!(scheme == null)) {
|
|
2216
|
-
_this__u8e3s4.
|
|
2180
|
+
_this__u8e3s4.r35(Companion_getInstance_7().f36(scheme));
|
|
2217
2181
|
}
|
|
2218
2182
|
if (!(host == null))
|
|
2219
|
-
_this__u8e3s4.
|
|
2183
|
+
_this__u8e3s4.i34_1 = host;
|
|
2220
2184
|
if (!(port == null)) {
|
|
2221
|
-
_this__u8e3s4.
|
|
2185
|
+
_this__u8e3s4.q35(port);
|
|
2222
2186
|
}
|
|
2223
2187
|
if (!(path == null)) {
|
|
2224
2188
|
set_encodedPath(_this__u8e3s4, path);
|
|
@@ -2292,29 +2256,21 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2292
2256
|
var endIndex = tmp$ret$3 + 1 | 0;
|
|
2293
2257
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2294
2258
|
if (schemeLength > 0) {
|
|
2295
|
-
var
|
|
2296
|
-
|
|
2297
|
-
var endIndex_0 = startIndex + schemeLength | 0;
|
|
2298
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2299
|
-
var scheme = urlString.substring(tmp5, endIndex_0);
|
|
2300
|
-
_this__u8e3s4.p34(Companion_getInstance_7().d35(scheme));
|
|
2259
|
+
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2260
|
+
_this__u8e3s4.r35(Companion_getInstance_7().f36(scheme));
|
|
2301
2261
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2302
2262
|
}
|
|
2303
|
-
if (_this__u8e3s4.
|
|
2304
|
-
|
|
2305
|
-
// Inline function 'kotlin.text.substring' call
|
|
2306
|
-
var startIndex_0 = startIndex;
|
|
2307
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2308
|
-
tmp.g33_1 = urlString.substring(startIndex_0, endIndex);
|
|
2263
|
+
if (_this__u8e3s4.u34().s34_1 === 'data') {
|
|
2264
|
+
_this__u8e3s4.i34_1 = substring(urlString, startIndex, endIndex);
|
|
2309
2265
|
return _this__u8e3s4;
|
|
2310
2266
|
}
|
|
2311
2267
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2312
2268
|
startIndex = startIndex + slashCount | 0;
|
|
2313
|
-
if (_this__u8e3s4.
|
|
2269
|
+
if (_this__u8e3s4.u34().s34_1 === 'file') {
|
|
2314
2270
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2315
2271
|
return _this__u8e3s4;
|
|
2316
2272
|
}
|
|
2317
|
-
if (_this__u8e3s4.
|
|
2273
|
+
if (_this__u8e3s4.u34().s34_1 === 'mailto') {
|
|
2318
2274
|
// Inline function 'kotlin.require' call
|
|
2319
2275
|
// Inline function 'kotlin.require' call
|
|
2320
2276
|
if (!(slashCount === 0)) {
|
|
@@ -2324,65 +2280,45 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2324
2280
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2325
2281
|
return _this__u8e3s4;
|
|
2326
2282
|
}
|
|
2327
|
-
if (_this__u8e3s4.
|
|
2283
|
+
if (_this__u8e3s4.u34().s34_1 === 'about') {
|
|
2328
2284
|
// Inline function 'kotlin.require' call
|
|
2329
2285
|
// Inline function 'kotlin.require' call
|
|
2330
2286
|
if (!(slashCount === 0)) {
|
|
2331
2287
|
var message_0 = 'Failed requirement.';
|
|
2332
2288
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2333
2289
|
}
|
|
2334
|
-
|
|
2335
|
-
// Inline function 'kotlin.text.substring' call
|
|
2336
|
-
var startIndex_1 = startIndex;
|
|
2337
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2338
|
-
tmp_0.g33_1 = urlString.substring(startIndex_1, endIndex);
|
|
2290
|
+
_this__u8e3s4.i34_1 = substring(urlString, startIndex, endIndex);
|
|
2339
2291
|
return _this__u8e3s4;
|
|
2340
2292
|
}
|
|
2341
|
-
if (_this__u8e3s4.
|
|
2293
|
+
if (_this__u8e3s4.u34().s34_1 === 'tel') {
|
|
2342
2294
|
// Inline function 'kotlin.require' call
|
|
2343
2295
|
// Inline function 'kotlin.require' call
|
|
2344
2296
|
if (!(slashCount === 0)) {
|
|
2345
2297
|
var message_1 = 'Failed requirement.';
|
|
2346
2298
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2347
2299
|
}
|
|
2348
|
-
|
|
2349
|
-
// Inline function 'kotlin.text.substring' call
|
|
2350
|
-
var startIndex_2 = startIndex;
|
|
2351
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2352
|
-
tmp_1.g33_1 = urlString.substring(startIndex_2, endIndex);
|
|
2300
|
+
_this__u8e3s4.i34_1 = substring(urlString, startIndex, endIndex);
|
|
2353
2301
|
return _this__u8e3s4;
|
|
2354
2302
|
}
|
|
2355
2303
|
if (slashCount >= 2) {
|
|
2356
2304
|
loop: while (true) {
|
|
2357
2305
|
// Inline function 'kotlin.takeIf' call
|
|
2358
2306
|
var this_0 = indexOfAny(urlString, toCharArray('@/\\?#'), startIndex);
|
|
2359
|
-
var
|
|
2307
|
+
var tmp;
|
|
2360
2308
|
if (this_0 > 0) {
|
|
2361
|
-
|
|
2309
|
+
tmp = this_0;
|
|
2362
2310
|
} else {
|
|
2363
|
-
|
|
2311
|
+
tmp = null;
|
|
2364
2312
|
}
|
|
2365
|
-
var tmp0_elvis_lhs =
|
|
2313
|
+
var tmp0_elvis_lhs = tmp;
|
|
2366
2314
|
var delimiter = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2367
|
-
if (delimiter < endIndex &&
|
|
2315
|
+
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2368
2316
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2369
2317
|
if (!(passwordIndex === -1)) {
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
var startIndex_3 = startIndex;
|
|
2373
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2374
|
-
tmp_3.k33_1 = urlString.substring(startIndex_3, passwordIndex);
|
|
2375
|
-
var tmp_4 = _this__u8e3s4;
|
|
2376
|
-
// Inline function 'kotlin.text.substring' call
|
|
2377
|
-
var startIndex_4 = passwordIndex + 1 | 0;
|
|
2378
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2379
|
-
tmp_4.l33_1 = urlString.substring(startIndex_4, delimiter);
|
|
2318
|
+
_this__u8e3s4.m34_1 = substring(urlString, startIndex, passwordIndex);
|
|
2319
|
+
_this__u8e3s4.n34_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2380
2320
|
} else {
|
|
2381
|
-
|
|
2382
|
-
// Inline function 'kotlin.text.substring' call
|
|
2383
|
-
var startIndex_5 = startIndex;
|
|
2384
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2385
|
-
tmp_5.k33_1 = urlString.substring(startIndex_5, delimiter);
|
|
2321
|
+
_this__u8e3s4.m34_1 = substring(urlString, startIndex, delimiter);
|
|
2386
2322
|
}
|
|
2387
2323
|
startIndex = delimiter + 1 | 0;
|
|
2388
2324
|
} else {
|
|
@@ -2393,53 +2329,50 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2393
2329
|
}
|
|
2394
2330
|
}
|
|
2395
2331
|
if (startIndex >= endIndex) {
|
|
2396
|
-
_this__u8e3s4.
|
|
2332
|
+
_this__u8e3s4.p34_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2397
2333
|
return _this__u8e3s4;
|
|
2398
2334
|
}
|
|
2399
|
-
var
|
|
2400
|
-
var
|
|
2335
|
+
var tmp_0 = _this__u8e3s4;
|
|
2336
|
+
var tmp_1;
|
|
2401
2337
|
if (slashCount === 0) {
|
|
2402
|
-
|
|
2338
|
+
tmp_1 = dropLast(_this__u8e3s4.p34_1, 1);
|
|
2403
2339
|
} else {
|
|
2404
|
-
|
|
2340
|
+
tmp_1 = emptyList();
|
|
2405
2341
|
}
|
|
2406
|
-
|
|
2342
|
+
tmp_0.p34_1 = tmp_1;
|
|
2407
2343
|
// Inline function 'kotlin.takeIf' call
|
|
2408
2344
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2409
|
-
var
|
|
2345
|
+
var tmp_2;
|
|
2410
2346
|
if (this_1 > 0) {
|
|
2411
|
-
|
|
2347
|
+
tmp_2 = this_1;
|
|
2412
2348
|
} else {
|
|
2413
|
-
|
|
2349
|
+
tmp_2 = null;
|
|
2414
2350
|
}
|
|
2415
|
-
var tmp1_elvis_lhs =
|
|
2351
|
+
var tmp1_elvis_lhs = tmp_2;
|
|
2416
2352
|
var pathEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
|
|
2417
2353
|
if (pathEnd > startIndex) {
|
|
2418
|
-
|
|
2419
|
-
var
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
var tmp_9;
|
|
2423
|
-
var tmp_10;
|
|
2424
|
-
if (_this__u8e3s4.n33_1.t() === 1) {
|
|
2354
|
+
var rawPath = substring(urlString, startIndex, pathEnd);
|
|
2355
|
+
var tmp_3;
|
|
2356
|
+
var tmp_4;
|
|
2357
|
+
if (_this__u8e3s4.p34_1.t() === 1) {
|
|
2425
2358
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2426
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2427
|
-
|
|
2359
|
+
var this_2 = first_0(_this__u8e3s4.p34_1);
|
|
2360
|
+
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2428
2361
|
} else {
|
|
2429
|
-
|
|
2362
|
+
tmp_4 = false;
|
|
2430
2363
|
}
|
|
2431
|
-
if (
|
|
2432
|
-
|
|
2364
|
+
if (tmp_4) {
|
|
2365
|
+
tmp_3 = emptyList();
|
|
2433
2366
|
} else {
|
|
2434
|
-
|
|
2367
|
+
tmp_3 = _this__u8e3s4.p34_1;
|
|
2435
2368
|
}
|
|
2436
|
-
var basePath =
|
|
2369
|
+
var basePath = tmp_3;
|
|
2437
2370
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2438
2371
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
2439
|
-
_this__u8e3s4.
|
|
2372
|
+
_this__u8e3s4.p34_1 = plus_0(basePath, relativePath);
|
|
2440
2373
|
startIndex = pathEnd;
|
|
2441
2374
|
}
|
|
2442
|
-
if (startIndex < endIndex &&
|
|
2375
|
+
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
2443
2376
|
startIndex = parseQuery(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2444
2377
|
}
|
|
2445
2378
|
parseFragment(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
@@ -2453,12 +2386,12 @@ function findScheme(urlString, startIndex, endIndex) {
|
|
|
2453
2386
|
_init_properties_URLParser_kt__sf11to();
|
|
2454
2387
|
var current = startIndex;
|
|
2455
2388
|
var incorrectSchemePosition = -1;
|
|
2456
|
-
var firstChar =
|
|
2389
|
+
var firstChar = charCodeAt(urlString, current);
|
|
2457
2390
|
if (!(_Char___init__impl__6a9atx(97) <= firstChar ? firstChar <= _Char___init__impl__6a9atx(122) : false) && !(_Char___init__impl__6a9atx(65) <= firstChar ? firstChar <= _Char___init__impl__6a9atx(90) : false)) {
|
|
2458
2391
|
incorrectSchemePosition = current;
|
|
2459
2392
|
}
|
|
2460
2393
|
while (current < endIndex) {
|
|
2461
|
-
var char =
|
|
2394
|
+
var char = charCodeAt(urlString, current);
|
|
2462
2395
|
if (char === _Char___init__impl__6a9atx(58)) {
|
|
2463
2396
|
if (!(incorrectSchemePosition === -1)) {
|
|
2464
2397
|
throw IllegalArgumentException_init_$Create$('Illegal character in scheme at position ' + incorrectSchemePosition);
|
|
@@ -2477,7 +2410,7 @@ function findScheme(urlString, startIndex, endIndex) {
|
|
|
2477
2410
|
function count(urlString, startIndex, endIndex, char) {
|
|
2478
2411
|
_init_properties_URLParser_kt__sf11to();
|
|
2479
2412
|
var result = 0;
|
|
2480
|
-
$l$loop: while ((startIndex + result | 0) < endIndex &&
|
|
2413
|
+
$l$loop: while ((startIndex + result | 0) < endIndex && charCodeAt(urlString, startIndex + result | 0) === char) {
|
|
2481
2414
|
result = result + 1 | 0;
|
|
2482
2415
|
}
|
|
2483
2416
|
return result;
|
|
@@ -2486,45 +2419,22 @@ function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
|
2486
2419
|
_init_properties_URLParser_kt__sf11to();
|
|
2487
2420
|
switch (slashCount) {
|
|
2488
2421
|
case 1:
|
|
2489
|
-
_this__u8e3s4.
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2493
|
-
|
|
2494
|
-
var tmp$ret$1 = urlString.substring(startIndex, endIndex);
|
|
2495
|
-
set_encodedPath(_this__u8e3s4, tmp$ret$1);
|
|
2422
|
+
_this__u8e3s4.i34_1 = '';
|
|
2423
|
+
set_encodedPath(_this__u8e3s4, substring(urlString, startIndex, endIndex));
|
|
2496
2424
|
break;
|
|
2497
2425
|
case 2:
|
|
2498
2426
|
var nextSlash = indexOf(urlString, _Char___init__impl__6a9atx(47), startIndex);
|
|
2499
2427
|
if (nextSlash === -1 || nextSlash === endIndex) {
|
|
2500
|
-
|
|
2501
|
-
// Inline function 'kotlin.text.substring' call
|
|
2502
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2503
|
-
tmp.g33_1 = urlString.substring(startIndex, endIndex);
|
|
2428
|
+
_this__u8e3s4.i34_1 = substring(urlString, startIndex, endIndex);
|
|
2504
2429
|
return Unit_instance;
|
|
2505
2430
|
}
|
|
2506
2431
|
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2511
|
-
|
|
2512
|
-
tmp_0.g33_1 = urlString.substring(startIndex, nextSlash);
|
|
2513
|
-
// Inline function 'kotlin.text.substring' call
|
|
2514
|
-
|
|
2515
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2516
|
-
|
|
2517
|
-
var tmp$ret$7 = urlString.substring(nextSlash, endIndex);
|
|
2518
|
-
set_encodedPath(_this__u8e3s4, tmp$ret$7);
|
|
2432
|
+
_this__u8e3s4.i34_1 = substring(urlString, startIndex, nextSlash);
|
|
2433
|
+
set_encodedPath(_this__u8e3s4, substring(urlString, nextSlash, endIndex));
|
|
2519
2434
|
break;
|
|
2520
2435
|
case 3:
|
|
2521
|
-
_this__u8e3s4.
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2525
|
-
|
|
2526
|
-
var tmp$ret$9 = urlString.substring(startIndex, endIndex);
|
|
2527
|
-
set_encodedPath(_this__u8e3s4, '/' + tmp$ret$9);
|
|
2436
|
+
_this__u8e3s4.i34_1 = '';
|
|
2437
|
+
set_encodedPath(_this__u8e3s4, '/' + substring(urlString, startIndex, endIndex));
|
|
2528
2438
|
break;
|
|
2529
2439
|
default:
|
|
2530
2440
|
throw IllegalArgumentException_init_$Create$('Invalid file url: ' + urlString);
|
|
@@ -2536,15 +2446,8 @@ function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2536
2446
|
if (delimiter === -1) {
|
|
2537
2447
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2538
2448
|
}
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
var tmp$ret$1 = urlString.substring(startIndex, delimiter);
|
|
2542
|
-
_this__u8e3s4.w34(decodeURLPart(tmp$ret$1));
|
|
2543
|
-
var tmp = _this__u8e3s4;
|
|
2544
|
-
// Inline function 'kotlin.text.substring' call
|
|
2545
|
-
var startIndex_0 = delimiter + 1 | 0;
|
|
2546
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2547
|
-
tmp.g33_1 = urlString.substring(startIndex_0, endIndex);
|
|
2449
|
+
_this__u8e3s4.y35(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2450
|
+
_this__u8e3s4.i34_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2548
2451
|
}
|
|
2549
2452
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2550
2453
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2554,7 +2457,7 @@ function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
|
2554
2457
|
do {
|
|
2555
2458
|
var index = inductionVariable;
|
|
2556
2459
|
inductionVariable = inductionVariable + 1 | 0;
|
|
2557
|
-
var tmp0_subject =
|
|
2460
|
+
var tmp0_subject = charCodeAt(_this__u8e3s4, index);
|
|
2558
2461
|
if (tmp0_subject === _Char___init__impl__6a9atx(91))
|
|
2559
2462
|
skip = true;
|
|
2560
2463
|
else if (tmp0_subject === _Char___init__impl__6a9atx(93))
|
|
@@ -2578,26 +2481,19 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2578
2481
|
}
|
|
2579
2482
|
var tmp0_elvis_lhs = tmp;
|
|
2580
2483
|
var colonIndex = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2584
|
-
tmp_0.g33_1 = urlString.substring(startIndex, colonIndex);
|
|
2585
|
-
var tmp_1;
|
|
2484
|
+
_this__u8e3s4.i34_1 = substring(urlString, startIndex, colonIndex);
|
|
2485
|
+
var tmp_0;
|
|
2586
2486
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2587
|
-
|
|
2588
|
-
var startIndex_0 = colonIndex + 1 | 0;
|
|
2589
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2590
|
-
var tmp$ret$5 = urlString.substring(startIndex_0, endIndex);
|
|
2591
|
-
tmp_1 = toInt(tmp$ret$5);
|
|
2487
|
+
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2592
2488
|
} else {
|
|
2593
|
-
|
|
2489
|
+
tmp_0 = 0;
|
|
2594
2490
|
}
|
|
2595
|
-
_this__u8e3s4.
|
|
2491
|
+
_this__u8e3s4.q35(tmp_0);
|
|
2596
2492
|
}
|
|
2597
2493
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2598
2494
|
_init_properties_URLParser_kt__sf11to();
|
|
2599
2495
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2600
|
-
_this__u8e3s4.
|
|
2496
|
+
_this__u8e3s4.j34_1 = true;
|
|
2601
2497
|
return endIndex;
|
|
2602
2498
|
}
|
|
2603
2499
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2610,27 +2506,19 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2610
2506
|
}
|
|
2611
2507
|
var tmp0_elvis_lhs = tmp;
|
|
2612
2508
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2616
|
-
var tmp$ret$3 = urlString.substring(startIndex_0, fragmentStart);
|
|
2617
|
-
var rawParameters = parseQueryString(tmp$ret$3, VOID, VOID, false);
|
|
2618
|
-
rawParameters.i2p(parseQuery$lambda(_this__u8e3s4));
|
|
2509
|
+
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2510
|
+
rawParameters.k2q(parseQuery$lambda(_this__u8e3s4));
|
|
2619
2511
|
return fragmentStart;
|
|
2620
2512
|
}
|
|
2621
2513
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2622
2514
|
_init_properties_URLParser_kt__sf11to();
|
|
2623
|
-
if (startIndex < endIndex &&
|
|
2624
|
-
|
|
2625
|
-
// Inline function 'kotlin.text.substring' call
|
|
2626
|
-
var startIndex_0 = startIndex + 1 | 0;
|
|
2627
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2628
|
-
tmp.m33_1 = urlString.substring(startIndex_0, endIndex);
|
|
2515
|
+
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2516
|
+
_this__u8e3s4.o34_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2629
2517
|
}
|
|
2630
2518
|
}
|
|
2631
2519
|
function parseQuery$lambda($this_parseQuery) {
|
|
2632
2520
|
return function (key, values) {
|
|
2633
|
-
$this_parseQuery.
|
|
2521
|
+
$this_parseQuery.q34_1.o2q(key, values);
|
|
2634
2522
|
return Unit_instance;
|
|
2635
2523
|
};
|
|
2636
2524
|
}
|
|
@@ -2643,29 +2531,29 @@ function _init_properties_URLParser_kt__sf11to() {
|
|
|
2643
2531
|
}
|
|
2644
2532
|
function Companion_7() {
|
|
2645
2533
|
Companion_instance_7 = this;
|
|
2646
|
-
this.
|
|
2647
|
-
this.
|
|
2648
|
-
this.
|
|
2649
|
-
this.
|
|
2650
|
-
this.
|
|
2534
|
+
this.s35_1 = new URLProtocol('http', 80);
|
|
2535
|
+
this.t35_1 = new URLProtocol('https', 443);
|
|
2536
|
+
this.u35_1 = new URLProtocol('ws', 80);
|
|
2537
|
+
this.v35_1 = new URLProtocol('wss', 443);
|
|
2538
|
+
this.w35_1 = new URLProtocol('socks', 1080);
|
|
2651
2539
|
var tmp = this;
|
|
2652
2540
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2653
|
-
var this_0 = listOf([this.
|
|
2541
|
+
var this_0 = listOf([this.s35_1, this.t35_1, this.u35_1, this.v35_1, this.w35_1]);
|
|
2654
2542
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2655
2543
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2656
2544
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2657
2545
|
var _iterator__ex2g4s = this_0.q();
|
|
2658
2546
|
while (_iterator__ex2g4s.r()) {
|
|
2659
2547
|
var element = _iterator__ex2g4s.s();
|
|
2660
|
-
var tmp$ret$0 = element.
|
|
2548
|
+
var tmp$ret$0 = element.s34_1;
|
|
2661
2549
|
destination.s2(tmp$ret$0, element);
|
|
2662
2550
|
}
|
|
2663
|
-
tmp.
|
|
2551
|
+
tmp.x35_1 = destination;
|
|
2664
2552
|
}
|
|
2665
|
-
protoOf(Companion_7).
|
|
2553
|
+
protoOf(Companion_7).f36 = function (name) {
|
|
2666
2554
|
// Inline function 'kotlin.let' call
|
|
2667
2555
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2668
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2556
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().x35_1.p2(it);
|
|
2669
2557
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2670
2558
|
};
|
|
2671
2559
|
var Companion_instance_7;
|
|
@@ -2676,9 +2564,9 @@ function Companion_getInstance_7() {
|
|
|
2676
2564
|
}
|
|
2677
2565
|
function URLProtocol(name, defaultPort) {
|
|
2678
2566
|
Companion_getInstance_7();
|
|
2679
|
-
this.
|
|
2680
|
-
this.
|
|
2681
|
-
var tmp0 = this.
|
|
2567
|
+
this.s34_1 = name;
|
|
2568
|
+
this.t34_1 = defaultPort;
|
|
2569
|
+
var tmp0 = this.s34_1;
|
|
2682
2570
|
var tmp$ret$1;
|
|
2683
2571
|
$l$block: {
|
|
2684
2572
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2700,11 +2588,11 @@ function URLProtocol(name, defaultPort) {
|
|
|
2700
2588
|
}
|
|
2701
2589
|
}
|
|
2702
2590
|
protoOf(URLProtocol).toString = function () {
|
|
2703
|
-
return 'URLProtocol(name=' + this.
|
|
2591
|
+
return 'URLProtocol(name=' + this.s34_1 + ', defaultPort=' + this.t34_1 + ')';
|
|
2704
2592
|
};
|
|
2705
2593
|
protoOf(URLProtocol).hashCode = function () {
|
|
2706
|
-
var result = getStringHashCode(this.
|
|
2707
|
-
result = imul(result, 31) + this.
|
|
2594
|
+
var result = getStringHashCode(this.s34_1);
|
|
2595
|
+
result = imul(result, 31) + this.t34_1 | 0;
|
|
2708
2596
|
return result;
|
|
2709
2597
|
};
|
|
2710
2598
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2713,50 +2601,50 @@ protoOf(URLProtocol).equals = function (other) {
|
|
|
2713
2601
|
if (!(other instanceof URLProtocol))
|
|
2714
2602
|
return false;
|
|
2715
2603
|
var tmp0_other_with_cast = other instanceof URLProtocol ? other : THROW_CCE();
|
|
2716
|
-
if (!(this.
|
|
2604
|
+
if (!(this.s34_1 === tmp0_other_with_cast.s34_1))
|
|
2717
2605
|
return false;
|
|
2718
|
-
if (!(this.
|
|
2606
|
+
if (!(this.t34_1 === tmp0_other_with_cast.t34_1))
|
|
2719
2607
|
return false;
|
|
2720
2608
|
return true;
|
|
2721
2609
|
};
|
|
2722
2610
|
function isSecure(_this__u8e3s4) {
|
|
2723
|
-
return _this__u8e3s4.
|
|
2611
|
+
return _this__u8e3s4.s34_1 === 'https' || _this__u8e3s4.s34_1 === 'wss';
|
|
2724
2612
|
}
|
|
2725
2613
|
function isWebsocket(_this__u8e3s4) {
|
|
2726
|
-
return _this__u8e3s4.
|
|
2614
|
+
return _this__u8e3s4.s34_1 === 'ws' || _this__u8e3s4.s34_1 === 'wss';
|
|
2727
2615
|
}
|
|
2728
2616
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2729
|
-
_this__u8e3s4.
|
|
2730
|
-
_this__u8e3s4.
|
|
2731
|
-
_this__u8e3s4.
|
|
2732
|
-
_this__u8e3s4.
|
|
2733
|
-
_this__u8e3s4.
|
|
2734
|
-
_this__u8e3s4.
|
|
2617
|
+
_this__u8e3s4.l34_1 = url.l34_1;
|
|
2618
|
+
_this__u8e3s4.i34_1 = url.i34_1;
|
|
2619
|
+
_this__u8e3s4.q35(url.k34_1);
|
|
2620
|
+
_this__u8e3s4.p34_1 = url.p34_1;
|
|
2621
|
+
_this__u8e3s4.m34_1 = url.m34_1;
|
|
2622
|
+
_this__u8e3s4.n34_1 = url.n34_1;
|
|
2735
2623
|
// Inline function 'kotlin.apply' call
|
|
2736
2624
|
var this_0 = ParametersBuilder();
|
|
2737
|
-
appendAll(this_0, url.
|
|
2738
|
-
_this__u8e3s4.
|
|
2739
|
-
_this__u8e3s4.
|
|
2740
|
-
_this__u8e3s4.
|
|
2625
|
+
appendAll(this_0, url.q34_1);
|
|
2626
|
+
_this__u8e3s4.d36(this_0);
|
|
2627
|
+
_this__u8e3s4.o34_1 = url.o34_1;
|
|
2628
|
+
_this__u8e3s4.j34_1 = url.j34_1;
|
|
2741
2629
|
return _this__u8e3s4;
|
|
2742
2630
|
}
|
|
2743
2631
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2744
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2745
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2632
|
+
var tmp0_subject = _this__u8e3s4.w34_1;
|
|
2633
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.h35_1.t34_1 ? _this__u8e3s4.v34_1 : get_hostWithPort(_this__u8e3s4);
|
|
2746
2634
|
}
|
|
2747
2635
|
function Url(urlString) {
|
|
2748
|
-
return URLBuilder_0(urlString).
|
|
2636
|
+
return URLBuilder_0(urlString).d2x();
|
|
2749
2637
|
}
|
|
2750
2638
|
function appendUserAndPassword(_this__u8e3s4, encodedUser, encodedPassword) {
|
|
2751
2639
|
if (encodedUser == null) {
|
|
2752
2640
|
return Unit_instance;
|
|
2753
2641
|
}
|
|
2754
|
-
_this__u8e3s4.
|
|
2642
|
+
_this__u8e3s4.s8(encodedUser);
|
|
2755
2643
|
if (!(encodedPassword == null)) {
|
|
2756
|
-
_this__u8e3s4.
|
|
2757
|
-
_this__u8e3s4.
|
|
2644
|
+
_this__u8e3s4.t8(_Char___init__impl__6a9atx(58));
|
|
2645
|
+
_this__u8e3s4.s8(encodedPassword);
|
|
2758
2646
|
}
|
|
2759
|
-
_this__u8e3s4.
|
|
2647
|
+
_this__u8e3s4.s8('@');
|
|
2760
2648
|
}
|
|
2761
2649
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2762
2650
|
var tmp;
|
|
@@ -2767,14 +2655,14 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2767
2655
|
tmp = false;
|
|
2768
2656
|
}
|
|
2769
2657
|
if (tmp) {
|
|
2770
|
-
_this__u8e3s4.
|
|
2658
|
+
_this__u8e3s4.t8(_Char___init__impl__6a9atx(47));
|
|
2771
2659
|
}
|
|
2772
2660
|
_this__u8e3s4.o(encodedPath);
|
|
2773
2661
|
if (!encodedQueryParameters.h() || trailingQuery) {
|
|
2774
2662
|
_this__u8e3s4.o('?');
|
|
2775
2663
|
}
|
|
2776
2664
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2777
|
-
var tmp0 = encodedQueryParameters.
|
|
2665
|
+
var tmp0 = encodedQueryParameters.j2q();
|
|
2778
2666
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2779
2667
|
var destination = ArrayList_init_$Create$_0();
|
|
2780
2668
|
var _iterator__ex2g4s = tmp0.q();
|
|
@@ -2806,18 +2694,18 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2806
2694
|
joinTo(tmp_1, _this__u8e3s4, '&', VOID, VOID, VOID, VOID, appendUrlFullPath$lambda);
|
|
2807
2695
|
}
|
|
2808
2696
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2809
|
-
return _this__u8e3s4.
|
|
2697
|
+
return _this__u8e3s4.v34_1 + ':' + _this__u8e3s4.g36();
|
|
2810
2698
|
}
|
|
2811
2699
|
function URLBuilder_0(urlString) {
|
|
2812
2700
|
return takeFrom(new URLBuilder(), urlString);
|
|
2813
2701
|
}
|
|
2814
2702
|
function appendUrlFullPath$lambda(it) {
|
|
2815
|
-
var key = it.
|
|
2703
|
+
var key = it.nb_1;
|
|
2816
2704
|
var tmp;
|
|
2817
|
-
if (it.
|
|
2705
|
+
if (it.ob_1 == null) {
|
|
2818
2706
|
tmp = key;
|
|
2819
2707
|
} else {
|
|
2820
|
-
var value = toString_1(it.
|
|
2708
|
+
var value = toString_1(it.ob_1);
|
|
2821
2709
|
tmp = key + '=' + value;
|
|
2822
2710
|
}
|
|
2823
2711
|
return tmp;
|
|
@@ -2867,154 +2755,146 @@ function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
|
2867
2755
|
if ($pathSegments.h()) {
|
|
2868
2756
|
return '';
|
|
2869
2757
|
}
|
|
2870
|
-
var pathStartIndex = indexOf(this$0.
|
|
2758
|
+
var pathStartIndex = indexOf(this$0.c35_1, _Char___init__impl__6a9atx(47), this$0.h35_1.s34_1.length + 3 | 0);
|
|
2871
2759
|
var tmp_0;
|
|
2872
2760
|
if (pathStartIndex === -1) {
|
|
2873
2761
|
return '';
|
|
2874
2762
|
}
|
|
2875
2763
|
// Inline function 'kotlin.charArrayOf' call
|
|
2876
2764
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2877
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2765
|
+
var pathEndIndex = indexOfAny(this$0.c35_1, tmp$ret$0, pathStartIndex);
|
|
2878
2766
|
var tmp_1;
|
|
2879
2767
|
if (pathEndIndex === -1) {
|
|
2880
|
-
|
|
2881
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2882
|
-
return this$0.a34_1.substring(pathStartIndex);
|
|
2768
|
+
return substring_0(this$0.c35_1, pathStartIndex);
|
|
2883
2769
|
}
|
|
2884
|
-
|
|
2885
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2886
|
-
return this$0.a34_1.substring(pathStartIndex, pathEndIndex);
|
|
2770
|
+
return substring(this$0.c35_1, pathStartIndex, pathEndIndex);
|
|
2887
2771
|
};
|
|
2888
2772
|
}
|
|
2889
2773
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2890
2774
|
return function () {
|
|
2891
|
-
var queryStart = indexOf(this$0.
|
|
2775
|
+
var queryStart = indexOf(this$0.c35_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2892
2776
|
var tmp;
|
|
2893
2777
|
if (queryStart === 0) {
|
|
2894
2778
|
return '';
|
|
2895
2779
|
}
|
|
2896
|
-
var queryEnd = indexOf(this$0.
|
|
2780
|
+
var queryEnd = indexOf(this$0.c35_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2897
2781
|
var tmp_0;
|
|
2898
2782
|
if (queryEnd === -1) {
|
|
2899
|
-
|
|
2900
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2901
|
-
return this$0.a34_1.substring(queryStart);
|
|
2783
|
+
return substring_0(this$0.c35_1, queryStart);
|
|
2902
2784
|
}
|
|
2903
|
-
|
|
2904
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2905
|
-
return this$0.a34_1.substring(queryStart, queryEnd);
|
|
2785
|
+
return substring(this$0.c35_1, queryStart, queryEnd);
|
|
2906
2786
|
};
|
|
2907
2787
|
}
|
|
2908
2788
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2909
2789
|
return function () {
|
|
2910
|
-
var pathStart = indexOf(this$0.
|
|
2790
|
+
var pathStart = indexOf(this$0.c35_1, _Char___init__impl__6a9atx(47), this$0.h35_1.s34_1.length + 3 | 0);
|
|
2911
2791
|
var tmp;
|
|
2912
2792
|
if (pathStart === -1) {
|
|
2913
2793
|
return '';
|
|
2914
2794
|
}
|
|
2915
|
-
var queryEnd = indexOf(this$0.
|
|
2795
|
+
var queryEnd = indexOf(this$0.c35_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2916
2796
|
var tmp_0;
|
|
2917
2797
|
if (queryEnd === -1) {
|
|
2918
|
-
|
|
2919
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2920
|
-
return this$0.a34_1.substring(pathStart);
|
|
2798
|
+
return substring_0(this$0.c35_1, pathStart);
|
|
2921
2799
|
}
|
|
2922
|
-
|
|
2923
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2924
|
-
return this$0.a34_1.substring(pathStart, queryEnd);
|
|
2800
|
+
return substring(this$0.c35_1, pathStart, queryEnd);
|
|
2925
2801
|
};
|
|
2926
2802
|
}
|
|
2927
2803
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2928
2804
|
return function () {
|
|
2929
2805
|
var tmp;
|
|
2930
|
-
if (this$0.
|
|
2806
|
+
if (this$0.z34_1 == null) {
|
|
2931
2807
|
return null;
|
|
2932
2808
|
}
|
|
2933
2809
|
var tmp_0;
|
|
2934
2810
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2935
|
-
var this_0 = this$0.
|
|
2811
|
+
var this_0 = this$0.z34_1;
|
|
2936
2812
|
if (charSequenceLength(this_0) === 0) {
|
|
2937
2813
|
return '';
|
|
2938
2814
|
}
|
|
2939
|
-
var usernameStart = this$0.
|
|
2815
|
+
var usernameStart = this$0.h35_1.s34_1.length + 3 | 0;
|
|
2940
2816
|
// Inline function 'kotlin.charArrayOf' call
|
|
2941
2817
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2942
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2818
|
+
var usernameEnd = indexOfAny(this$0.c35_1, tmp$ret$1, usernameStart);
|
|
2819
|
+
return substring(this$0.c35_1, usernameStart, usernameEnd);
|
|
2820
|
+
};
|
|
2821
|
+
}
|
|
2822
|
+
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2823
|
+
return function (p0) {
|
|
2824
|
+
return p0.h36();
|
|
2946
2825
|
};
|
|
2947
2826
|
}
|
|
2948
2827
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2949
2828
|
return function () {
|
|
2950
2829
|
var tmp;
|
|
2951
|
-
if (this$0.
|
|
2830
|
+
if (this$0.a35_1 == null) {
|
|
2952
2831
|
return null;
|
|
2953
2832
|
}
|
|
2954
2833
|
var tmp_0;
|
|
2955
2834
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2956
|
-
var this_0 = this$0.
|
|
2835
|
+
var this_0 = this$0.a35_1;
|
|
2957
2836
|
if (charSequenceLength(this_0) === 0) {
|
|
2958
2837
|
return '';
|
|
2959
2838
|
}
|
|
2960
|
-
var passwordStart = indexOf(this$0.
|
|
2961
|
-
var passwordEnd = indexOf(this$0.
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2839
|
+
var passwordStart = indexOf(this$0.c35_1, _Char___init__impl__6a9atx(58), this$0.h35_1.s34_1.length + 3 | 0) + 1 | 0;
|
|
2840
|
+
var passwordEnd = indexOf(this$0.c35_1, _Char___init__impl__6a9atx(64));
|
|
2841
|
+
return substring(this$0.c35_1, passwordStart, passwordEnd);
|
|
2842
|
+
};
|
|
2843
|
+
}
|
|
2844
|
+
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2845
|
+
return function (p0) {
|
|
2846
|
+
return p0.i36();
|
|
2965
2847
|
};
|
|
2966
2848
|
}
|
|
2967
2849
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2968
2850
|
return function () {
|
|
2969
|
-
var fragmentStart = indexOf(this$0.
|
|
2851
|
+
var fragmentStart = indexOf(this$0.c35_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2970
2852
|
var tmp;
|
|
2971
2853
|
if (fragmentStart === 0) {
|
|
2972
2854
|
return '';
|
|
2973
2855
|
}
|
|
2974
|
-
|
|
2975
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
2976
|
-
return this$0.a34_1.substring(fragmentStart);
|
|
2856
|
+
return substring_0(this$0.c35_1, fragmentStart);
|
|
2977
2857
|
};
|
|
2978
2858
|
}
|
|
2979
2859
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2980
|
-
this.
|
|
2981
|
-
this.
|
|
2982
|
-
this.
|
|
2983
|
-
this.
|
|
2984
|
-
this.
|
|
2985
|
-
this.
|
|
2986
|
-
this.
|
|
2987
|
-
this.
|
|
2988
|
-
var containsArg = this.
|
|
2860
|
+
this.v34_1 = host;
|
|
2861
|
+
this.w34_1 = specifiedPort;
|
|
2862
|
+
this.x34_1 = parameters;
|
|
2863
|
+
this.y34_1 = fragment;
|
|
2864
|
+
this.z34_1 = user;
|
|
2865
|
+
this.a35_1 = password;
|
|
2866
|
+
this.b35_1 = trailingQuery;
|
|
2867
|
+
this.c35_1 = urlString;
|
|
2868
|
+
var containsArg = this.w34_1;
|
|
2989
2869
|
// Inline function 'kotlin.require' call
|
|
2990
2870
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2991
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2871
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.w34_1;
|
|
2992
2872
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2993
2873
|
}
|
|
2994
|
-
this.
|
|
2995
|
-
this.
|
|
2874
|
+
this.d35_1 = pathSegments;
|
|
2875
|
+
this.e35_1 = pathSegments;
|
|
2996
2876
|
var tmp = this;
|
|
2997
|
-
tmp.
|
|
2998
|
-
this.
|
|
2877
|
+
tmp.f35_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2878
|
+
this.g35_1 = protocol;
|
|
2999
2879
|
var tmp_0 = this;
|
|
3000
|
-
var tmp0_elvis_lhs = this.
|
|
3001
|
-
tmp_0.
|
|
2880
|
+
var tmp0_elvis_lhs = this.g35_1;
|
|
2881
|
+
tmp_0.h35_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().s35_1 : tmp0_elvis_lhs;
|
|
3002
2882
|
var tmp_1 = this;
|
|
3003
|
-
tmp_1.
|
|
2883
|
+
tmp_1.i35_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
3004
2884
|
var tmp_2 = this;
|
|
3005
|
-
tmp_2.
|
|
2885
|
+
tmp_2.j35_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
3006
2886
|
var tmp_3 = this;
|
|
3007
|
-
tmp_3.
|
|
2887
|
+
tmp_3.k35_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
3008
2888
|
var tmp_4 = this;
|
|
3009
|
-
tmp_4.
|
|
2889
|
+
tmp_4.l35_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
3010
2890
|
var tmp_5 = this;
|
|
3011
|
-
tmp_5.
|
|
2891
|
+
tmp_5.m35_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
3012
2892
|
var tmp_6 = this;
|
|
3013
|
-
tmp_6.
|
|
2893
|
+
tmp_6.n35_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
3014
2894
|
}
|
|
3015
|
-
protoOf(Url_0).
|
|
2895
|
+
protoOf(Url_0).g36 = function () {
|
|
3016
2896
|
// Inline function 'kotlin.takeUnless' call
|
|
3017
|
-
var this_0 = this.
|
|
2897
|
+
var this_0 = this.w34_1;
|
|
3018
2898
|
var tmp;
|
|
3019
2899
|
if (!(this_0 === 0)) {
|
|
3020
2900
|
tmp = this_0;
|
|
@@ -3022,22 +2902,24 @@ protoOf(Url_0).e35 = function () {
|
|
|
3022
2902
|
tmp = null;
|
|
3023
2903
|
}
|
|
3024
2904
|
var tmp0_elvis_lhs = tmp;
|
|
3025
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2905
|
+
return tmp0_elvis_lhs == null ? this.h35_1.t34_1 : tmp0_elvis_lhs;
|
|
3026
2906
|
};
|
|
3027
|
-
protoOf(Url_0).
|
|
3028
|
-
var tmp0 = this.
|
|
2907
|
+
protoOf(Url_0).h36 = function () {
|
|
2908
|
+
var tmp0 = this.l35_1;
|
|
2909
|
+
var tmp = KProperty1;
|
|
3029
2910
|
// Inline function 'kotlin.getValue' call
|
|
3030
|
-
encodedUser$
|
|
2911
|
+
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
3031
2912
|
return tmp0.c1();
|
|
3032
2913
|
};
|
|
3033
|
-
protoOf(Url_0).
|
|
3034
|
-
var tmp0 = this.
|
|
2914
|
+
protoOf(Url_0).i36 = function () {
|
|
2915
|
+
var tmp0 = this.m35_1;
|
|
2916
|
+
var tmp = KProperty1;
|
|
3035
2917
|
// Inline function 'kotlin.getValue' call
|
|
3036
|
-
encodedPassword$
|
|
2918
|
+
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
3037
2919
|
return tmp0.c1();
|
|
3038
2920
|
};
|
|
3039
2921
|
protoOf(Url_0).toString = function () {
|
|
3040
|
-
return this.
|
|
2922
|
+
return this.c35_1;
|
|
3041
2923
|
};
|
|
3042
2924
|
protoOf(Url_0).equals = function (other) {
|
|
3043
2925
|
if (this === other)
|
|
@@ -3046,34 +2928,34 @@ protoOf(Url_0).equals = function (other) {
|
|
|
3046
2928
|
return false;
|
|
3047
2929
|
if (!(other instanceof Url_0))
|
|
3048
2930
|
THROW_CCE();
|
|
3049
|
-
return this.
|
|
2931
|
+
return this.c35_1 === other.c35_1;
|
|
3050
2932
|
};
|
|
3051
2933
|
protoOf(Url_0).hashCode = function () {
|
|
3052
|
-
return getStringHashCode(this.
|
|
2934
|
+
return getStringHashCode(this.c35_1);
|
|
3053
2935
|
};
|
|
3054
2936
|
function get_authority_0(_this__u8e3s4) {
|
|
3055
2937
|
// Inline function 'kotlin.text.buildString' call
|
|
3056
2938
|
// Inline function 'kotlin.apply' call
|
|
3057
2939
|
var this_0 = StringBuilder_init_$Create$();
|
|
3058
|
-
this_0.
|
|
3059
|
-
this_0.
|
|
2940
|
+
this_0.s8(get_encodedUserAndPassword_0(_this__u8e3s4));
|
|
2941
|
+
this_0.s8(get_hostWithPortIfSpecified(_this__u8e3s4));
|
|
3060
2942
|
return this_0.toString();
|
|
3061
2943
|
}
|
|
3062
2944
|
function UrlSerializer() {
|
|
3063
2945
|
UrlSerializer_instance = this;
|
|
3064
|
-
this.
|
|
2946
|
+
this.j36_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
3065
2947
|
}
|
|
3066
|
-
protoOf(UrlSerializer).
|
|
3067
|
-
return this.
|
|
2948
|
+
protoOf(UrlSerializer).m22 = function () {
|
|
2949
|
+
return this.j36_1;
|
|
3068
2950
|
};
|
|
3069
|
-
protoOf(UrlSerializer).
|
|
3070
|
-
return Url(decoder.
|
|
2951
|
+
protoOf(UrlSerializer).o22 = function (decoder) {
|
|
2952
|
+
return Url(decoder.s25());
|
|
3071
2953
|
};
|
|
3072
|
-
protoOf(UrlSerializer).
|
|
3073
|
-
encoder.
|
|
2954
|
+
protoOf(UrlSerializer).k36 = function (encoder, value) {
|
|
2955
|
+
encoder.c27(value.toString());
|
|
3074
2956
|
};
|
|
3075
|
-
protoOf(UrlSerializer).
|
|
3076
|
-
return this.
|
|
2957
|
+
protoOf(UrlSerializer).n22 = function (encoder, value) {
|
|
2958
|
+
return this.k36(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
3077
2959
|
};
|
|
3078
2960
|
var UrlSerializer_instance;
|
|
3079
2961
|
function UrlSerializer_getInstance() {
|
|
@@ -3085,31 +2967,21 @@ function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
|
3085
2967
|
// Inline function 'kotlin.text.buildString' call
|
|
3086
2968
|
// Inline function 'kotlin.apply' call
|
|
3087
2969
|
var this_0 = StringBuilder_init_$Create$();
|
|
3088
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2970
|
+
appendUserAndPassword(this_0, _this__u8e3s4.h36(), _this__u8e3s4.i36());
|
|
3089
2971
|
return this_0.toString();
|
|
3090
2972
|
}
|
|
3091
|
-
function encodedUser$factory() {
|
|
3092
|
-
return getPropertyCallableRef('encodedUser', 1, KProperty1, function (receiver) {
|
|
3093
|
-
return receiver.f35();
|
|
3094
|
-
}, null);
|
|
3095
|
-
}
|
|
3096
|
-
function encodedPassword$factory() {
|
|
3097
|
-
return getPropertyCallableRef('encodedPassword', 1, KProperty1, function (receiver) {
|
|
3098
|
-
return receiver.g35();
|
|
3099
|
-
}, null);
|
|
3100
|
-
}
|
|
3101
2973
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
3102
|
-
this.
|
|
3103
|
-
this.
|
|
2974
|
+
this.l36_1 = encodedParametersBuilder;
|
|
2975
|
+
this.m36_1 = this.l36_1.g2q();
|
|
3104
2976
|
}
|
|
3105
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3106
|
-
return decodeParameters(this.
|
|
2977
|
+
protoOf(UrlDecodedParametersBuilder).d2x = function () {
|
|
2978
|
+
return decodeParameters(this.l36_1);
|
|
3107
2979
|
};
|
|
3108
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3109
|
-
return this.
|
|
2980
|
+
protoOf(UrlDecodedParametersBuilder).g2q = function () {
|
|
2981
|
+
return this.m36_1;
|
|
3110
2982
|
};
|
|
3111
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3112
|
-
var tmp0_safe_receiver = this.
|
|
2983
|
+
protoOf(UrlDecodedParametersBuilder).h2q = function (name) {
|
|
2984
|
+
var tmp0_safe_receiver = this.l36_1.h2q(encodeURLParameter(name));
|
|
3113
2985
|
var tmp;
|
|
3114
2986
|
if (tmp0_safe_receiver == null) {
|
|
3115
2987
|
tmp = null;
|
|
@@ -3127,9 +2999,9 @@ protoOf(UrlDecodedParametersBuilder).f2p = function (name) {
|
|
|
3127
2999
|
}
|
|
3128
3000
|
return tmp;
|
|
3129
3001
|
};
|
|
3130
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3002
|
+
protoOf(UrlDecodedParametersBuilder).i2q = function () {
|
|
3131
3003
|
// Inline function 'kotlin.collections.map' call
|
|
3132
|
-
var this_0 = this.
|
|
3004
|
+
var this_0 = this.l36_1.i2q();
|
|
3133
3005
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3134
3006
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3135
3007
|
var _iterator__ex2g4s = this_0.q();
|
|
@@ -3141,15 +3013,15 @@ protoOf(UrlDecodedParametersBuilder).g2p = function () {
|
|
|
3141
3013
|
return toSet(destination);
|
|
3142
3014
|
};
|
|
3143
3015
|
protoOf(UrlDecodedParametersBuilder).h = function () {
|
|
3144
|
-
return this.
|
|
3016
|
+
return this.l36_1.h();
|
|
3145
3017
|
};
|
|
3146
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3147
|
-
return decodeParameters(this.
|
|
3018
|
+
protoOf(UrlDecodedParametersBuilder).j2q = function () {
|
|
3019
|
+
return decodeParameters(this.l36_1).j2q();
|
|
3148
3020
|
};
|
|
3149
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3150
|
-
return this.
|
|
3021
|
+
protoOf(UrlDecodedParametersBuilder).r2q = function (name, value) {
|
|
3022
|
+
return this.l36_1.r2q(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
3151
3023
|
};
|
|
3152
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3024
|
+
protoOf(UrlDecodedParametersBuilder).o2q = function (name, values) {
|
|
3153
3025
|
var tmp = encodeURLParameter(name);
|
|
3154
3026
|
// Inline function 'kotlin.collections.map' call
|
|
3155
3027
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3160,10 +3032,10 @@ protoOf(UrlDecodedParametersBuilder).m2p = function (name, values) {
|
|
|
3160
3032
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3161
3033
|
destination.k(tmp$ret$0);
|
|
3162
3034
|
}
|
|
3163
|
-
return this.
|
|
3035
|
+
return this.l36_1.o2q(tmp, destination);
|
|
3164
3036
|
};
|
|
3165
3037
|
protoOf(UrlDecodedParametersBuilder).j2 = function () {
|
|
3166
|
-
return this.
|
|
3038
|
+
return this.l36_1.j2();
|
|
3167
3039
|
};
|
|
3168
3040
|
function encodeParameters(parameters) {
|
|
3169
3041
|
// Inline function 'kotlin.apply' call
|
|
@@ -3175,14 +3047,14 @@ function decodeParameters(parameters) {
|
|
|
3175
3047
|
// Inline function 'kotlin.apply' call
|
|
3176
3048
|
var this_0 = ParametersBuilder();
|
|
3177
3049
|
appendAllDecoded(this_0, parameters);
|
|
3178
|
-
return this_0.
|
|
3050
|
+
return this_0.d2x();
|
|
3179
3051
|
}
|
|
3180
3052
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
3181
3053
|
// Inline function 'kotlin.collections.forEach' call
|
|
3182
|
-
var _iterator__ex2g4s = parameters.
|
|
3054
|
+
var _iterator__ex2g4s = parameters.i2q().q();
|
|
3183
3055
|
while (_iterator__ex2g4s.r()) {
|
|
3184
3056
|
var element = _iterator__ex2g4s.s();
|
|
3185
|
-
var tmp0_elvis_lhs = parameters.
|
|
3057
|
+
var tmp0_elvis_lhs = parameters.h2q(element);
|
|
3186
3058
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3187
3059
|
var tmp = encodeURLParameter(element);
|
|
3188
3060
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3194,15 +3066,15 @@ function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
|
3194
3066
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3195
3067
|
destination.k(tmp$ret$0);
|
|
3196
3068
|
}
|
|
3197
|
-
_this__u8e3s4.
|
|
3069
|
+
_this__u8e3s4.o2q(tmp, destination);
|
|
3198
3070
|
}
|
|
3199
3071
|
}
|
|
3200
3072
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
3201
3073
|
// Inline function 'kotlin.collections.forEach' call
|
|
3202
|
-
var _iterator__ex2g4s = parameters.
|
|
3074
|
+
var _iterator__ex2g4s = parameters.i2q().q();
|
|
3203
3075
|
while (_iterator__ex2g4s.r()) {
|
|
3204
3076
|
var element = _iterator__ex2g4s.s();
|
|
3205
|
-
var tmp0_elvis_lhs = parameters.
|
|
3077
|
+
var tmp0_elvis_lhs = parameters.h2q(element);
|
|
3206
3078
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3207
3079
|
var tmp = decodeURLQueryComponent(element);
|
|
3208
3080
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3214,25 +3086,25 @@ function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
|
3214
3086
|
var tmp$ret$0 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3215
3087
|
destination.k(tmp$ret$0);
|
|
3216
3088
|
}
|
|
3217
|
-
_this__u8e3s4.
|
|
3089
|
+
_this__u8e3s4.o2q(tmp, destination);
|
|
3218
3090
|
}
|
|
3219
3091
|
}
|
|
3220
3092
|
function ByteArrayContent(bytes, contentType, status) {
|
|
3221
3093
|
contentType = contentType === VOID ? null : contentType;
|
|
3222
3094
|
status = status === VOID ? null : status;
|
|
3223
3095
|
ByteArrayContent_0.call(this);
|
|
3224
|
-
this.
|
|
3225
|
-
this.
|
|
3226
|
-
this.
|
|
3096
|
+
this.o36_1 = bytes;
|
|
3097
|
+
this.p36_1 = contentType;
|
|
3098
|
+
this.q36_1 = status;
|
|
3227
3099
|
}
|
|
3228
|
-
protoOf(ByteArrayContent).
|
|
3229
|
-
return this.
|
|
3100
|
+
protoOf(ByteArrayContent).r36 = function () {
|
|
3101
|
+
return this.p36_1;
|
|
3230
3102
|
};
|
|
3231
|
-
protoOf(ByteArrayContent).
|
|
3232
|
-
return toLong_0(this.
|
|
3103
|
+
protoOf(ByteArrayContent).s36 = function () {
|
|
3104
|
+
return toLong_0(this.o36_1.length);
|
|
3233
3105
|
};
|
|
3234
|
-
protoOf(ByteArrayContent).
|
|
3235
|
-
return this.
|
|
3106
|
+
protoOf(ByteArrayContent).t36 = function () {
|
|
3107
|
+
return this.o36_1;
|
|
3236
3108
|
};
|
|
3237
3109
|
function MultiPartData() {
|
|
3238
3110
|
}
|
|
@@ -3251,20 +3123,20 @@ function ProtocolUpgrade() {
|
|
|
3251
3123
|
}
|
|
3252
3124
|
function ContentWrapper() {
|
|
3253
3125
|
}
|
|
3254
|
-
protoOf(ContentWrapper).
|
|
3255
|
-
return this.
|
|
3126
|
+
protoOf(ContentWrapper).c37 = function () {
|
|
3127
|
+
return this.b37_1;
|
|
3256
3128
|
};
|
|
3257
3129
|
function OutgoingContent() {
|
|
3258
|
-
this.
|
|
3130
|
+
this.u36_1 = null;
|
|
3259
3131
|
}
|
|
3260
|
-
protoOf(OutgoingContent).
|
|
3132
|
+
protoOf(OutgoingContent).r36 = function () {
|
|
3261
3133
|
return null;
|
|
3262
3134
|
};
|
|
3263
|
-
protoOf(OutgoingContent).
|
|
3135
|
+
protoOf(OutgoingContent).s36 = function () {
|
|
3264
3136
|
return null;
|
|
3265
3137
|
};
|
|
3266
|
-
protoOf(OutgoingContent).
|
|
3267
|
-
return Companion_getInstance_1().
|
|
3138
|
+
protoOf(OutgoingContent).h31 = function () {
|
|
3139
|
+
return Companion_getInstance_1().a2x_1;
|
|
3268
3140
|
};
|
|
3269
3141
|
function NullBody() {
|
|
3270
3142
|
}
|
|
@@ -3278,7 +3150,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3278
3150
|
tmp = true;
|
|
3279
3151
|
} else {
|
|
3280
3152
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3281
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3153
|
+
tmp = isEmpty(_this__u8e3s4.c37());
|
|
3282
3154
|
} else {
|
|
3283
3155
|
tmp = false;
|
|
3284
3156
|
}
|
|
@@ -3288,27 +3160,27 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3288
3160
|
function TextContent(text, contentType, status) {
|
|
3289
3161
|
status = status === VOID ? null : status;
|
|
3290
3162
|
ByteArrayContent_0.call(this);
|
|
3291
|
-
this.
|
|
3292
|
-
this.
|
|
3293
|
-
this.
|
|
3163
|
+
this.e37_1 = text;
|
|
3164
|
+
this.f37_1 = contentType;
|
|
3165
|
+
this.g37_1 = status;
|
|
3294
3166
|
var tmp = this;
|
|
3295
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3296
|
-
tmp.
|
|
3167
|
+
var tmp0_elvis_lhs = charset(this.f37_1);
|
|
3168
|
+
tmp.h37_1 = toByteArray(this.e37_1, tmp0_elvis_lhs == null ? Charsets_getInstance().j21_1 : tmp0_elvis_lhs);
|
|
3297
3169
|
}
|
|
3298
|
-
protoOf(TextContent).
|
|
3299
|
-
return this.
|
|
3170
|
+
protoOf(TextContent).r36 = function () {
|
|
3171
|
+
return this.f37_1;
|
|
3300
3172
|
};
|
|
3301
|
-
protoOf(TextContent).
|
|
3302
|
-
return toLong_0(this.
|
|
3173
|
+
protoOf(TextContent).s36 = function () {
|
|
3174
|
+
return toLong_0(this.h37_1.length);
|
|
3303
3175
|
};
|
|
3304
|
-
protoOf(TextContent).
|
|
3305
|
-
return this.
|
|
3176
|
+
protoOf(TextContent).t36 = function () {
|
|
3177
|
+
return this.h37_1;
|
|
3306
3178
|
};
|
|
3307
3179
|
protoOf(TextContent).toString = function () {
|
|
3308
|
-
return 'TextContent[' + this.
|
|
3180
|
+
return 'TextContent[' + this.f37_1.toString() + '] "' + take(this.e37_1, 30) + '"';
|
|
3309
3181
|
};
|
|
3310
3182
|
function get_origin(_this__u8e3s4) {
|
|
3311
|
-
return PlatformUtils_getInstance().
|
|
3183
|
+
return PlatformUtils_getInstance().y2p_1 ? locationOrigin() : 'http://localhost';
|
|
3312
3184
|
}
|
|
3313
3185
|
function locationOrigin() {
|
|
3314
3186
|
return function () {
|
|
@@ -3326,9 +3198,9 @@ function locationOrigin() {
|
|
|
3326
3198
|
}();
|
|
3327
3199
|
}
|
|
3328
3200
|
//region block: post-declaration
|
|
3329
|
-
protoOf(EmptyHeaders).
|
|
3330
|
-
protoOf(EmptyHeaders).
|
|
3331
|
-
protoOf(EmptyParameters).
|
|
3201
|
+
protoOf(EmptyHeaders).b2p = get;
|
|
3202
|
+
protoOf(EmptyHeaders).k2q = forEach;
|
|
3203
|
+
protoOf(EmptyParameters).k2q = forEach;
|
|
3332
3204
|
//endregion
|
|
3333
3205
|
//region block: init
|
|
3334
3206
|
Companion_instance_0 = new Companion_0();
|
|
@@ -3339,16 +3211,16 @@ NullBody_instance = new NullBody();
|
|
|
3339
3211
|
//endregion
|
|
3340
3212
|
//region block: exports
|
|
3341
3213
|
export {
|
|
3342
|
-
NullBody_instance as
|
|
3343
|
-
Application_getInstance as
|
|
3344
|
-
Companion_getInstance as
|
|
3345
|
-
MultiPart_getInstance as
|
|
3346
|
-
Text_getInstance as
|
|
3347
|
-
Companion_getInstance_1 as
|
|
3348
|
-
HttpHeaders_getInstance as
|
|
3349
|
-
Companion_getInstance_2 as
|
|
3350
|
-
Companion_getInstance_3 as
|
|
3351
|
-
Companion_getInstance_4 as
|
|
3214
|
+
NullBody_instance as NullBody_instance2i6w0hfghwfg0,
|
|
3215
|
+
Application_getInstance as Application_getInstanceq87g3bor693u,
|
|
3216
|
+
Companion_getInstance as Companion_getInstancecf9b3ybko8sp,
|
|
3217
|
+
MultiPart_getInstance as MultiPart_getInstance1zzge3g94afj6,
|
|
3218
|
+
Text_getInstance as Text_getInstance1qa6l8g2r3h9g,
|
|
3219
|
+
Companion_getInstance_1 as Companion_getInstance2krh5pmq7pw0k,
|
|
3220
|
+
HttpHeaders_getInstance as HttpHeaders_getInstanceelogg8fjd54u,
|
|
3221
|
+
Companion_getInstance_2 as Companion_getInstance1p3cpld7r1jz3,
|
|
3222
|
+
Companion_getInstance_3 as Companion_getInstance312jiahuid5ey,
|
|
3223
|
+
Companion_getInstance_4 as Companion_getInstanceud97dyzf471m,
|
|
3352
3224
|
ByteArrayContent as ByteArrayContent9zol65b22hp0,
|
|
3353
3225
|
MultiPartData as MultiPartData57syw40llxls,
|
|
3354
3226
|
NullBody as NullBody1903zz7riiwr0,
|