@dmarket/p2p-tracker-core 1.0.2-beta → 1.0.4-SNAPSHOT-development.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +4 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/VERSION +6 -6
- package/dmarket-p2p-tracker-core-domain.mjs +4797 -4060
- package/dmarket-p2p-tracker-core-domain.mjs.map +1 -1
- package/kotlin-kotlin-stdlib.mjs +2376 -2234
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +13 -13
- package/kotlinx-atomicfu.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +2489 -2489
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.mjs +32 -32
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +455 -455
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1967 -1967
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1543 -1512
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/ktor-ktor-client-core.mjs +3359 -3245
- package/ktor-ktor-client-core.mjs.map +1 -1
- package/ktor-ktor-events.mjs +6 -6
- package/ktor-ktor-events.mjs.map +1 -1
- package/ktor-ktor-http-cio.mjs +484 -484
- package/ktor-ktor-http-cio.mjs.map +1 -1
- package/ktor-ktor-http.mjs +1118 -1010
- package/ktor-ktor-http.mjs.map +1 -1
- package/ktor-ktor-io.mjs +1062 -1113
- package/ktor-ktor-io.mjs.map +1 -1
- package/ktor-ktor-openapi-schema.mjs +4 -0
- package/ktor-ktor-openapi-schema.mjs.map +1 -0
- package/ktor-ktor-utils.mjs +977 -765
- package/ktor-ktor-utils.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +759 -748
- package/ktor-ktor-websockets.mjs.map +1 -1
- package/p2p-tracker-core.d.mts +9 -6
- package/p2p-tracker-core.mjs +21290 -18539
- package/p2p-tracker-core.mjs.map +1 -1
- package/package.json +1 -1
- package/pkg/client_wasm.js +11 -3
- package/pkg/client_wasm_bg.wasm +0 -0
package/ktor-ktor-http.mjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
shiftRightUnsigned1kzopyqvwpisb as shiftRightUnsigned,
|
|
3
|
+
Long2qws0ah9gnpki as Long,
|
|
4
|
+
bitwiseAnd2g7wmsfd45l12 as bitwiseAnd,
|
|
5
|
+
equalsLong28bsrfhwvd686 as equalsLong,
|
|
6
|
+
Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
|
|
7
|
+
toString336ienavfnzn0 as toString,
|
|
8
|
+
toString1pkumu07cwy4m as toString_0,
|
|
9
|
+
IllegalArgumentException_init_$Create$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
|
|
4
10
|
Unit_instance3vdlo4e4f5ggx as Unit_instance,
|
|
11
|
+
shiftLeft1ck77p6vapyra as shiftLeft,
|
|
12
|
+
bitwiseOr1ita6dahwp8zb as bitwiseOr,
|
|
13
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
14
|
+
asIterable3syp9x858o4em as asIterable,
|
|
15
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
16
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
17
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
18
|
+
StringBuilder_init_$Create$3q4yitjcnfjo as StringBuilder_init_$Create$,
|
|
5
19
|
_Char___init__impl__6a9atx2yltdocdrxs4d as _Char___init__impl__6a9atx,
|
|
20
|
+
toByte4i43936u611k as toByte,
|
|
21
|
+
numberToChar93r9buh19yek as numberToChar,
|
|
6
22
|
Char__plus_impl_qi7pgj1h8009bm3fa2t as Char__plus_impl_qi7pgj,
|
|
7
23
|
Char__minus_impl_a2frrh3216wnsvv1j3k as Char__minus_impl_a2frrh,
|
|
8
|
-
|
|
9
|
-
concatToString2syawgu50khxi as concatToString,
|
|
24
|
+
StringBuilder_init_$Create$3pb07k1b5jr7z as StringBuilder_init_$Create$_0,
|
|
10
25
|
charCodeAt1yspne1d8erbm as charCodeAt,
|
|
11
|
-
substringiqarkczpya5m as substring,
|
|
12
|
-
toString1pkumu07cwy4m as toString,
|
|
13
|
-
Char19o2r8palgjof as Char,
|
|
14
26
|
isSurrogatewe8xicw8z84n as isSurrogate,
|
|
15
|
-
|
|
27
|
+
substringiqarkczpya5m as substring,
|
|
16
28
|
charSequenceGet1vxk1y5n17t1z as charSequenceGet,
|
|
17
29
|
charSequenceLength3278n89t01tmv as charSequenceLength,
|
|
18
30
|
charSequenceSubSequence1iwpdba8s3jc7 as charSequenceSubSequence,
|
|
19
|
-
toString336ienavfnzn0 as toString_0,
|
|
20
|
-
toByte4i43936u611k as toByte,
|
|
21
31
|
decodeToString1dbzcjd620q25 as decodeToString,
|
|
22
32
|
Exceptiondt2hlxn7j7vw as Exception,
|
|
23
33
|
Exception_init_$Init$1ksq2fk0jxaag as Exception_init_$Init$,
|
|
24
34
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
25
|
-
protoOf180f3jzyo7rfj as protoOf,
|
|
26
|
-
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
27
35
|
Char__minus_impl_a2frrh370khreoakmi6 as Char__minus_impl_a2frrh_0,
|
|
28
|
-
Char__toInt_impl_vasixd1ka89vowck9tn as Char__toInt_impl_vasixd,
|
|
29
|
-
numberToChar93r9buh19yek as numberToChar,
|
|
30
36
|
Char__rangeTo_impl_tkncvp39f1k6qse2e6h as Char__rangeTo_impl_tkncvp,
|
|
31
37
|
plus39kp8wyage607 as plus,
|
|
32
38
|
plus310ted5e4i90h as plus_0,
|
|
33
|
-
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
34
|
-
ArrayList_init_$Create$3o344dm0ee4ws as ArrayList_init_$Create$,
|
|
35
|
-
toSet2orjxp16sotqu as toSet,
|
|
36
|
-
setOf45ia9pnfhe90 as setOf,
|
|
37
|
-
plus1ogy4liedzq5j as plus_1,
|
|
38
|
-
listOf1jh22dvmctj1r as listOf,
|
|
39
39
|
emptyList1g2z5xcrvp2zy as emptyList,
|
|
40
40
|
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
41
41
|
equals2v6cggk171b6e as equals,
|
|
@@ -50,14 +50,16 @@ import {
|
|
|
50
50
|
take9j4462mea726 as take,
|
|
51
51
|
substring3saq8ornu0luv as substring_0,
|
|
52
52
|
contains2el4s70rdq4ld as contains,
|
|
53
|
-
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
54
53
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
55
54
|
startsWith38d3sbg25w0lx as startsWith,
|
|
56
|
-
plus20p0vtfmu0596 as
|
|
55
|
+
plus20p0vtfmu0596 as plus_1,
|
|
57
56
|
equals2au1ep9vhcato as equals_0,
|
|
58
57
|
getStringHashCode26igk1bx568vk as getStringHashCode,
|
|
59
58
|
hashCodeq5arwsb9dgti as hashCode,
|
|
60
59
|
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
|
|
60
|
+
setOf45ia9pnfhe90 as setOf,
|
|
61
|
+
IllegalStateException_init_$Create$3394faf8tdm0h as IllegalStateException_init_$Create$,
|
|
62
|
+
listOf1jh22dvmctj1r as listOf,
|
|
61
63
|
get_lastIndex1yw0x4k50k51w as get_lastIndex,
|
|
62
64
|
first3kg261hmihapu as first,
|
|
63
65
|
last2n4gf5az1lkn4 as last_0,
|
|
@@ -69,21 +71,22 @@ import {
|
|
|
69
71
|
LazyThreadSafetyMode_NONE_getInstance2o5dw3dzszhgg as LazyThreadSafetyMode_NONE_getInstance,
|
|
70
72
|
lazy1261dae0bgscp as lazy,
|
|
71
73
|
to2cs3ny02qtbcb as to,
|
|
72
|
-
ArrayList_init_$Create$1z3aa4voswqq as ArrayList_init_$Create
|
|
74
|
+
ArrayList_init_$Create$1z3aa4voswqq as ArrayList_init_$Create$,
|
|
73
75
|
asList2ho2pewtsfvv as asList,
|
|
74
76
|
Char__compareTo_impl_ypi4mb1yxpplfe5vmm as Char__compareTo_impl_ypi4mb,
|
|
75
77
|
IllegalArgumentException_init_$Init$2il8idvytc2u5 as IllegalArgumentException_init_$Init$,
|
|
76
78
|
toLongOrNullutqivezb0wx1 as toLongOrNull,
|
|
79
|
+
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
77
80
|
mapCapacity1h45rc3eh9p2l as mapCapacity,
|
|
78
81
|
coerceAtLeast2bkz8m9ik7hep as coerceAtLeast,
|
|
79
82
|
LinkedHashMap_init_$Create$1gaaqjdgvat9g as LinkedHashMap_init_$Create$,
|
|
80
83
|
Comparable198qfk8pnblz0 as Comparable,
|
|
84
|
+
ArrayList_init_$Create$3o344dm0ee4ws as ArrayList_init_$Create$_0,
|
|
81
85
|
addAll1k27qatfgp3k5 as addAll,
|
|
82
86
|
joinTo3lkanfaxbzac2 as joinTo,
|
|
83
87
|
toString30pk9tzaqopn as toString_1,
|
|
84
88
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
85
89
|
isWhitespace25occ8z1ed1s9 as isWhitespace,
|
|
86
|
-
IllegalArgumentException_init_$Create$1mgk48flhjim3 as IllegalArgumentException_init_$Create$,
|
|
87
90
|
startsWith1bgirhbedtv2y as startsWith_0,
|
|
88
91
|
charArrayOf27f4r3dozbrk1 as charArrayOf,
|
|
89
92
|
split3d3yeauc4rm2n as split,
|
|
@@ -102,18 +105,21 @@ import {
|
|
|
102
105
|
KProperty1ca4yb4wlo496 as KProperty1,
|
|
103
106
|
getPropertyCallableRef3hckxc0xueiaj as getPropertyCallableRef,
|
|
104
107
|
getKClassFromExpression348iqjl4fnx2f as getKClassFromExpression,
|
|
108
|
+
toSet2orjxp16sotqu as toSet,
|
|
105
109
|
fromInt1lka3ktyu79a4 as fromInt,
|
|
106
110
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
107
111
|
import {
|
|
108
112
|
Charsets_getInstance3jooo7e4x0j2x as Charsets_getInstance,
|
|
113
|
+
toByteArray1i3ns5jnoqlv6 as toByteArray,
|
|
109
114
|
encode35e4rpnc94tb5 as encode,
|
|
110
115
|
takeWhile34751tcfg6owx as takeWhile,
|
|
111
116
|
canRead1guo8vbveth0f as canRead,
|
|
112
117
|
forName2faodmskqnoz5 as forName,
|
|
113
118
|
get_name2f11g4r0d5pxp as get_name,
|
|
114
|
-
toByteArray1i3ns5jnoqlv6 as toByteArray,
|
|
115
119
|
} from './ktor-ktor-io.mjs';
|
|
116
120
|
import {
|
|
121
|
+
GMTDateParser2n3dcykk4v76n as GMTDateParser,
|
|
122
|
+
InvalidDateStringException32oxg8bbalei2 as InvalidDateStringException,
|
|
117
123
|
StringValuesBuilderImpl3ey9etj3bwnqf as StringValuesBuilderImpl,
|
|
118
124
|
StringValuesImpl2l95y9du7b61t as StringValuesImpl,
|
|
119
125
|
StringValuesjqid5a6cuday as StringValues,
|
|
@@ -136,43 +142,45 @@ import {
|
|
|
136
142
|
var imul = Math.imul;
|
|
137
143
|
//endregion
|
|
138
144
|
//region block: pre-declaration
|
|
139
|
-
initMetadataForClass(URLDecodeException, 'URLDecodeException', VOID, Exception);
|
|
140
145
|
initMetadataForCompanion(Companion);
|
|
146
|
+
initMetadataForClass(AsciiBitSet, 'AsciiBitSet');
|
|
147
|
+
initMetadataForClass(URLDecodeException, 'URLDecodeException', VOID, Exception);
|
|
148
|
+
initMetadataForCompanion(Companion_0);
|
|
141
149
|
initMetadataForObject(Application, 'Application');
|
|
142
150
|
initMetadataForObject(MultiPart, 'MultiPart');
|
|
143
151
|
initMetadataForObject(Text, 'Text');
|
|
144
152
|
initMetadataForClass(HeaderValueWithParameters, 'HeaderValueWithParameters');
|
|
145
153
|
initMetadataForClass(ContentType, 'ContentType', VOID, HeaderValueWithParameters);
|
|
146
154
|
initMetadataForClass(BadContentTypeFormatException, 'BadContentTypeFormatException', VOID, Exception);
|
|
147
|
-
initMetadataForCompanion(Companion_0);
|
|
148
|
-
initMetadataForClass(HeadersBuilder, 'HeadersBuilder', HeadersBuilder, StringValuesBuilderImpl);
|
|
149
155
|
initMetadataForCompanion(Companion_1);
|
|
156
|
+
initMetadataForClass(HeadersBuilder, 'HeadersBuilder', HeadersBuilder, StringValuesBuilderImpl);
|
|
157
|
+
initMetadataForCompanion(Companion_2);
|
|
150
158
|
initMetadataForClass(HeadersImpl, 'HeadersImpl', HeadersImpl, StringValuesImpl, [StringValues]);
|
|
151
159
|
initMetadataForObject(EmptyHeaders, 'EmptyHeaders', VOID, VOID, [StringValues]);
|
|
152
160
|
initMetadataForClass(HeadersSingleImpl, 'HeadersSingleImpl', VOID, StringValuesSingleImpl, [StringValues]);
|
|
153
|
-
initMetadataForClass(HeaderValueParam, 'HeaderValueParam');
|
|
154
161
|
initMetadataForClass(HeaderValue, 'HeaderValue');
|
|
162
|
+
initMetadataForClass(HeaderValueParam, 'HeaderValueParam');
|
|
155
163
|
initMetadataForObject(HttpHeaders, 'HttpHeaders');
|
|
156
164
|
initMetadataForClass(UnsafeHeaderException, 'UnsafeHeaderException', VOID, IllegalArgumentException);
|
|
157
165
|
initMetadataForClass(IllegalHeaderNameException, 'IllegalHeaderNameException', VOID, IllegalArgumentException);
|
|
158
166
|
initMetadataForClass(IllegalHeaderValueException, 'IllegalHeaderValueException', VOID, IllegalArgumentException);
|
|
159
|
-
initMetadataForCompanion(Companion_2);
|
|
160
|
-
initMetadataForClass(HttpMethod, 'HttpMethod');
|
|
161
167
|
initMetadataForCompanion(Companion_3);
|
|
162
|
-
initMetadataForClass(
|
|
168
|
+
initMetadataForClass(HttpMethod, 'HttpMethod');
|
|
163
169
|
initMetadataForCompanion(Companion_4);
|
|
164
|
-
initMetadataForClass(
|
|
170
|
+
initMetadataForClass(HttpProtocolVersion, 'HttpProtocolVersion');
|
|
165
171
|
initMetadataForCompanion(Companion_5);
|
|
172
|
+
initMetadataForClass(HttpStatusCode, 'HttpStatusCode', VOID, VOID, [Comparable]);
|
|
173
|
+
initMetadataForCompanion(Companion_6);
|
|
166
174
|
initMetadataForInterface(Parameters, 'Parameters', VOID, VOID, [StringValues]);
|
|
167
175
|
initMetadataForObject(EmptyParameters, 'EmptyParameters', VOID, VOID, [Parameters]);
|
|
168
176
|
initMetadataForClass(ParametersBuilderImpl, 'ParametersBuilderImpl', ParametersBuilderImpl, StringValuesBuilderImpl);
|
|
169
177
|
initMetadataForClass(ParametersImpl, 'ParametersImpl', ParametersImpl, StringValuesImpl, [Parameters]);
|
|
170
|
-
initMetadataForCompanion(
|
|
178
|
+
initMetadataForCompanion(Companion_7);
|
|
171
179
|
initMetadataForClass(URLBuilder, 'URLBuilder', URLBuilder);
|
|
172
180
|
initMetadataForClass(URLParserException, 'URLParserException', VOID, IllegalStateException);
|
|
173
|
-
initMetadataForCompanion(Companion_7);
|
|
174
|
-
initMetadataForClass(URLProtocol, 'URLProtocol');
|
|
175
181
|
initMetadataForCompanion(Companion_8);
|
|
182
|
+
initMetadataForClass(URLProtocol, 'URLProtocol');
|
|
183
|
+
initMetadataForCompanion(Companion_9);
|
|
176
184
|
initMetadataForClass(Url_0, 'Url', VOID, VOID, VOID, VOID, VOID, {0: UrlSerializer_getInstance});
|
|
177
185
|
initMetadataForObject(UrlSerializer, 'UrlSerializer', VOID, VOID, [KSerializer]);
|
|
178
186
|
initMetadataForClass(UrlDecodedParametersBuilder, 'UrlDecodedParametersBuilder');
|
|
@@ -187,16 +195,61 @@ initMetadataForClass(ContentWrapper, 'ContentWrapper', VOID, OutgoingContent);
|
|
|
187
195
|
initMetadataForObject(NullBody, 'NullBody');
|
|
188
196
|
initMetadataForClass(TextContent, 'TextContent', VOID, ByteArrayContent);
|
|
189
197
|
//endregion
|
|
198
|
+
function containsCode($this, code) {
|
|
199
|
+
if (!((code >>> 7 | 0) === 0))
|
|
200
|
+
return false;
|
|
201
|
+
var bits = code < 64 ? $this.i45_1 : $this.j45_1;
|
|
202
|
+
return equalsLong(bitwiseAnd(shiftRightUnsigned(bits, code), new Long(1, 0)), new Long(1, 0));
|
|
203
|
+
}
|
|
204
|
+
function Companion() {
|
|
205
|
+
}
|
|
206
|
+
protoOf(Companion).k45 = function (chars) {
|
|
207
|
+
var low = new Long(0, 0);
|
|
208
|
+
var high = new Long(0, 0);
|
|
209
|
+
var _iterator__ex2g4s = chars.t();
|
|
210
|
+
while (_iterator__ex2g4s.u()) {
|
|
211
|
+
var char = _iterator__ex2g4s.v().a2_1;
|
|
212
|
+
// Inline function 'kotlin.code' call
|
|
213
|
+
var code = Char__toInt_impl_vasixd(char);
|
|
214
|
+
// Inline function 'kotlin.require' call
|
|
215
|
+
if (!(code < 128)) {
|
|
216
|
+
var message = "Only ASCII characters are supported, got '" + toString(char) + "' (code " + code + ')';
|
|
217
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
218
|
+
}
|
|
219
|
+
if (code < 64)
|
|
220
|
+
low = bitwiseOr(low, shiftLeft(new Long(1, 0), code));
|
|
221
|
+
else
|
|
222
|
+
high = bitwiseOr(high, shiftLeft(new Long(1, 0), code));
|
|
223
|
+
}
|
|
224
|
+
return new AsciiBitSet(low, high);
|
|
225
|
+
};
|
|
226
|
+
protoOf(Companion).l45 = function (chars) {
|
|
227
|
+
return this.k45(asIterable(chars));
|
|
228
|
+
};
|
|
229
|
+
var Companion_instance;
|
|
230
|
+
function Companion_getInstance() {
|
|
231
|
+
return Companion_instance;
|
|
232
|
+
}
|
|
233
|
+
function AsciiBitSet(low, high) {
|
|
234
|
+
this.i45_1 = low;
|
|
235
|
+
this.j45_1 = high;
|
|
236
|
+
}
|
|
237
|
+
protoOf(AsciiBitSet).gk = function (char) {
|
|
238
|
+
// Inline function 'kotlin.code' call
|
|
239
|
+
var tmp$ret$0 = Char__toInt_impl_vasixd(char);
|
|
240
|
+
return containsCode(this, tmp$ret$0);
|
|
241
|
+
};
|
|
242
|
+
protoOf(AsciiBitSet).m45 = function (byte) {
|
|
243
|
+
return containsCode(this, byte);
|
|
244
|
+
};
|
|
245
|
+
protoOf(AsciiBitSet).n45 = function (other) {
|
|
246
|
+
return new AsciiBitSet(bitwiseOr(this.i45_1, other.i45_1), bitwiseOr(this.j45_1, other.j45_1));
|
|
247
|
+
};
|
|
190
248
|
function get_URL_ALPHABET() {
|
|
191
249
|
_init_properties_Codecs_kt__fudxxf();
|
|
192
250
|
return URL_ALPHABET;
|
|
193
251
|
}
|
|
194
252
|
var URL_ALPHABET;
|
|
195
|
-
function get_URL_ALPHABET_CHARS() {
|
|
196
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
197
|
-
return URL_ALPHABET_CHARS;
|
|
198
|
-
}
|
|
199
|
-
var URL_ALPHABET_CHARS;
|
|
200
253
|
function get_HEX_ALPHABET() {
|
|
201
254
|
_init_properties_Codecs_kt__fudxxf();
|
|
202
255
|
return HEX_ALPHABET;
|
|
@@ -213,45 +266,103 @@ function get_VALID_PATH_PART() {
|
|
|
213
266
|
}
|
|
214
267
|
var VALID_PATH_PART;
|
|
215
268
|
var ATTRIBUTE_CHARACTERS;
|
|
216
|
-
function
|
|
269
|
+
function get_URL_PARAMETER_CHARS() {
|
|
217
270
|
_init_properties_Codecs_kt__fudxxf();
|
|
218
|
-
return
|
|
271
|
+
return URL_PARAMETER_CHARS;
|
|
219
272
|
}
|
|
220
|
-
var
|
|
273
|
+
var URL_PARAMETER_CHARS;
|
|
221
274
|
function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
222
275
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
223
276
|
_init_properties_Codecs_kt__fudxxf();
|
|
277
|
+
var content = toByteArray(_this__u8e3s4, Charsets_getInstance().i3w_1);
|
|
224
278
|
// Inline function 'kotlin.text.buildString' call
|
|
279
|
+
var capacity = content.length;
|
|
225
280
|
// Inline function 'kotlin.apply' call
|
|
226
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
227
|
-
var
|
|
228
|
-
|
|
281
|
+
var this_0 = StringBuilder_init_$Create$(capacity);
|
|
282
|
+
var inductionVariable = 0;
|
|
283
|
+
var last = content.length;
|
|
284
|
+
while (inductionVariable < last) {
|
|
285
|
+
var byte = content[inductionVariable];
|
|
286
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
287
|
+
if (get_URL_PARAMETER_CHARS().m45(byte))
|
|
288
|
+
this_0.s(numberToChar(byte));
|
|
289
|
+
else {
|
|
290
|
+
var tmp;
|
|
291
|
+
if (spaceToPlus) {
|
|
292
|
+
var tmp_0 = byte;
|
|
293
|
+
// Inline function 'kotlin.code' call
|
|
294
|
+
var this_1 = _Char___init__impl__6a9atx(32);
|
|
295
|
+
var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
|
|
296
|
+
tmp = tmp_0 === toByte(tmp$ret$3);
|
|
297
|
+
} else {
|
|
298
|
+
tmp = false;
|
|
299
|
+
}
|
|
300
|
+
if (tmp)
|
|
301
|
+
this_0.s(_Char___init__impl__6a9atx(43));
|
|
302
|
+
else {
|
|
303
|
+
appendPercentEncoded(this_0, byte);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
229
307
|
return this_0.toString();
|
|
230
308
|
}
|
|
309
|
+
function appendPercentEncoded(_this__u8e3s4, byte) {
|
|
310
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
311
|
+
var code = byte & 255;
|
|
312
|
+
_this__u8e3s4.s(_Char___init__impl__6a9atx(37));
|
|
313
|
+
_this__u8e3s4.s(hexDigitToChar(code >> 4));
|
|
314
|
+
_this__u8e3s4.s(hexDigitToChar(code & 15));
|
|
315
|
+
}
|
|
316
|
+
function hexDigitToChar(digit) {
|
|
317
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
318
|
+
return (0 <= digit ? digit <= 9 : false) ? Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(48), digit) : Char__minus_impl_a2frrh(Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(65), digit), 10);
|
|
319
|
+
}
|
|
231
320
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
232
321
|
start = start === VOID ? 0 : start;
|
|
233
322
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
234
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
323
|
+
charset = charset === VOID ? Charsets_getInstance().i3w_1 : charset;
|
|
235
324
|
_init_properties_Codecs_kt__fudxxf();
|
|
236
325
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
237
326
|
}
|
|
238
327
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
239
328
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
240
329
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
241
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
330
|
+
charset = charset === VOID ? Charsets_getInstance().i3w_1 : charset;
|
|
242
331
|
_init_properties_Codecs_kt__fudxxf();
|
|
332
|
+
var content = toByteArray(_this__u8e3s4, charset);
|
|
243
333
|
// Inline function 'kotlin.text.buildString' call
|
|
334
|
+
var capacity = content.length;
|
|
244
335
|
// Inline function 'kotlin.apply' call
|
|
245
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
246
|
-
var
|
|
247
|
-
|
|
336
|
+
var this_0 = StringBuilder_init_$Create$(capacity);
|
|
337
|
+
var inductionVariable = 0;
|
|
338
|
+
var last = content.length;
|
|
339
|
+
while (inductionVariable < last) {
|
|
340
|
+
var byte = content[inductionVariable];
|
|
341
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
342
|
+
var tmp = byte;
|
|
343
|
+
// Inline function 'kotlin.code' call
|
|
344
|
+
var this_1 = _Char___init__impl__6a9atx(32);
|
|
345
|
+
var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
|
|
346
|
+
if (tmp === toByte(tmp$ret$3))
|
|
347
|
+
if (spaceToPlus)
|
|
348
|
+
this_0.s(_Char___init__impl__6a9atx(43));
|
|
349
|
+
else
|
|
350
|
+
this_0.q('%20');
|
|
351
|
+
else {
|
|
352
|
+
if (get_URL_ALPHABET().m45(byte) || (!encodeFull && get_URL_PROTOCOL_PART().m45(byte)))
|
|
353
|
+
this_0.s(numberToChar(byte));
|
|
354
|
+
else {
|
|
355
|
+
appendPercentEncoded(this_0, byte);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
248
359
|
return this_0.toString();
|
|
249
360
|
}
|
|
250
361
|
function decodeURLQueryComponent(_this__u8e3s4, start, end, plusIsSpace, charset) {
|
|
251
362
|
start = start === VOID ? 0 : start;
|
|
252
363
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
253
364
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
254
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
365
|
+
charset = charset === VOID ? Charsets_getInstance().i3w_1 : charset;
|
|
255
366
|
_init_properties_Codecs_kt__fudxxf();
|
|
256
367
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
257
368
|
}
|
|
@@ -259,79 +370,74 @@ function encodeURLPathPart(_this__u8e3s4) {
|
|
|
259
370
|
_init_properties_Codecs_kt__fudxxf();
|
|
260
371
|
return encodeURLPath(_this__u8e3s4, true);
|
|
261
372
|
}
|
|
262
|
-
function encodeURLParameterValue(_this__u8e3s4) {
|
|
263
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
264
|
-
return encodeURLParameter(_this__u8e3s4, true);
|
|
265
|
-
}
|
|
266
|
-
function hexDigitToChar(digit) {
|
|
267
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
268
|
-
return (0 <= digit ? digit <= 9 : false) ? Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(48), digit) : Char__minus_impl_a2frrh(Char__plus_impl_qi7pgj(_Char___init__impl__6a9atx(65), digit), 10);
|
|
269
|
-
}
|
|
270
|
-
function forEach_0(_this__u8e3s4, block) {
|
|
271
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
272
|
-
takeWhile(_this__u8e3s4, forEach$lambda(block));
|
|
273
|
-
}
|
|
274
|
-
function percentEncode(_this__u8e3s4) {
|
|
275
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
276
|
-
var code = _this__u8e3s4 & 255;
|
|
277
|
-
var array = charArray(3);
|
|
278
|
-
array[0] = _Char___init__impl__6a9atx(37);
|
|
279
|
-
array[1] = hexDigitToChar(code >> 4);
|
|
280
|
-
array[2] = hexDigitToChar(code & 15);
|
|
281
|
-
return concatToString(array);
|
|
282
|
-
}
|
|
283
|
-
function decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset) {
|
|
284
|
-
_init_properties_Codecs_kt__fudxxf();
|
|
285
|
-
var inductionVariable = start;
|
|
286
|
-
if (inductionVariable < end)
|
|
287
|
-
do {
|
|
288
|
-
var index = inductionVariable;
|
|
289
|
-
inductionVariable = inductionVariable + 1 | 0;
|
|
290
|
-
var ch = charCodeAt(_this__u8e3s4, index);
|
|
291
|
-
if (ch === _Char___init__impl__6a9atx(37) || (plusIsSpace && ch === _Char___init__impl__6a9atx(43))) {
|
|
292
|
-
return decodeImpl(_this__u8e3s4, start, end, index, plusIsSpace, charset);
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
while (inductionVariable < end);
|
|
296
|
-
return start === 0 && end === _this__u8e3s4.length ? toString(_this__u8e3s4) : substring(_this__u8e3s4, start, end);
|
|
297
|
-
}
|
|
298
373
|
function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
299
374
|
encodeSlash = encodeSlash === VOID ? false : encodeSlash;
|
|
300
375
|
encodeEncoded = encodeEncoded === VOID ? true : encodeEncoded;
|
|
301
376
|
_init_properties_Codecs_kt__fudxxf();
|
|
302
377
|
// Inline function 'kotlin.text.buildString' call
|
|
303
378
|
// Inline function 'kotlin.apply' call
|
|
304
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
305
|
-
var charset = Charsets_getInstance().
|
|
379
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
380
|
+
var charset = Charsets_getInstance().i3w_1;
|
|
306
381
|
var index = 0;
|
|
307
|
-
$l$
|
|
382
|
+
$l$loop_1: while (index < _this__u8e3s4.length) {
|
|
308
383
|
var current = charCodeAt(_this__u8e3s4, index);
|
|
309
|
-
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) ||
|
|
384
|
+
if (!encodeSlash && current === _Char___init__impl__6a9atx(47) || get_URL_ALPHABET().gk(current) || get_VALID_PATH_PART().gk(current)) {
|
|
310
385
|
this_0.s(current);
|
|
311
386
|
index = index + 1 | 0;
|
|
312
|
-
continue $l$
|
|
387
|
+
continue $l$loop_1;
|
|
313
388
|
}
|
|
314
|
-
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().
|
|
389
|
+
if (!encodeEncoded && current === _Char___init__impl__6a9atx(37) && (index + 2 | 0) < _this__u8e3s4.length && get_HEX_ALPHABET().gk(charCodeAt(_this__u8e3s4, index + 1 | 0)) && get_HEX_ALPHABET().gk(charCodeAt(_this__u8e3s4, index + 2 | 0))) {
|
|
315
390
|
this_0.s(current);
|
|
316
391
|
this_0.s(charCodeAt(_this__u8e3s4, index + 1 | 0));
|
|
317
392
|
this_0.s(charCodeAt(_this__u8e3s4, index + 2 | 0));
|
|
318
393
|
index = index + 3 | 0;
|
|
319
|
-
continue $l$
|
|
394
|
+
continue $l$loop_1;
|
|
395
|
+
}
|
|
396
|
+
// Inline function 'kotlin.code' call
|
|
397
|
+
if (Char__toInt_impl_vasixd(current) < 128) {
|
|
398
|
+
// Inline function 'kotlin.code' call
|
|
399
|
+
var tmp$ret$4 = Char__toInt_impl_vasixd(current);
|
|
400
|
+
appendPercentEncoded(this_0, toByte(tmp$ret$4));
|
|
401
|
+
index = index + 1 | 0;
|
|
402
|
+
continue $l$loop_1;
|
|
320
403
|
}
|
|
321
404
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
322
|
-
var tmp = encode(charset.
|
|
405
|
+
var tmp = encode(charset.l3w(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
323
406
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
324
407
|
index = index + symbolSize | 0;
|
|
325
408
|
}
|
|
326
409
|
return this_0.toString();
|
|
327
410
|
}
|
|
411
|
+
function encodeURLParameterValue(_this__u8e3s4) {
|
|
412
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
413
|
+
return encodeURLParameter(_this__u8e3s4, true);
|
|
414
|
+
}
|
|
415
|
+
function decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset) {
|
|
416
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
417
|
+
var inductionVariable = start;
|
|
418
|
+
if (inductionVariable < end)
|
|
419
|
+
do {
|
|
420
|
+
var index = inductionVariable;
|
|
421
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
422
|
+
var ch = charCodeAt(_this__u8e3s4, index);
|
|
423
|
+
if (ch === _Char___init__impl__6a9atx(37) || (plusIsSpace && ch === _Char___init__impl__6a9atx(43))) {
|
|
424
|
+
return decodeImpl(_this__u8e3s4, start, end, index, plusIsSpace, charset);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
while (inductionVariable < end);
|
|
428
|
+
return start === 0 && end === _this__u8e3s4.length ? toString_0(_this__u8e3s4) : substring(_this__u8e3s4, start, end);
|
|
429
|
+
}
|
|
430
|
+
function forEach_0(_this__u8e3s4, block) {
|
|
431
|
+
_init_properties_Codecs_kt__fudxxf();
|
|
432
|
+
takeWhile(_this__u8e3s4, forEach$lambda(block));
|
|
433
|
+
}
|
|
328
434
|
function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset) {
|
|
329
435
|
_init_properties_Codecs_kt__fudxxf();
|
|
330
436
|
var length = end - start | 0;
|
|
331
437
|
var sbSize = length > 255 ? length / 3 | 0 : length;
|
|
332
|
-
var sb = StringBuilder_init_$Create$
|
|
438
|
+
var sb = StringBuilder_init_$Create$(sbSize);
|
|
333
439
|
if (prefixEnd > start) {
|
|
334
|
-
sb.
|
|
440
|
+
sb.kc(_this__u8e3s4, start, prefixEnd);
|
|
335
441
|
}
|
|
336
442
|
var index = prefixEnd;
|
|
337
443
|
var bytes = null;
|
|
@@ -350,13 +456,13 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
|
|
|
350
456
|
// Inline function 'kotlin.text.substring' call
|
|
351
457
|
var startIndex = index;
|
|
352
458
|
var endIndex = charSequenceLength(_this__u8e3s4);
|
|
353
|
-
var tmp$ret$0 =
|
|
354
|
-
throw new URLDecodeException('Incomplete trailing HEX escape: ' + tmp$ret$0 + ', in ' +
|
|
459
|
+
var tmp$ret$0 = toString_0(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex));
|
|
460
|
+
throw new URLDecodeException('Incomplete trailing HEX escape: ' + tmp$ret$0 + ', in ' + toString_0(_this__u8e3s4) + ' at ' + index);
|
|
355
461
|
}
|
|
356
462
|
var digit1 = charToHexDigit(charSequenceGet(_this__u8e3s4, index + 1 | 0));
|
|
357
463
|
var digit2 = charToHexDigit(charSequenceGet(_this__u8e3s4, index + 2 | 0));
|
|
358
464
|
if (digit1 === -1 || digit2 === -1) {
|
|
359
|
-
throw new URLDecodeException('Wrong HEX escape: %' +
|
|
465
|
+
throw new URLDecodeException('Wrong HEX escape: %' + toString(charSequenceGet(_this__u8e3s4, index + 1 | 0)) + toString(charSequenceGet(_this__u8e3s4, index + 2 | 0)) + ', in ' + toString_0(_this__u8e3s4) + ', at ' + index);
|
|
360
466
|
}
|
|
361
467
|
var tmp = bytes;
|
|
362
468
|
var _unary__edvuaz = count;
|
|
@@ -380,115 +486,30 @@ function charToHexDigit(c2) {
|
|
|
380
486
|
_init_properties_Codecs_kt__fudxxf();
|
|
381
487
|
return (_Char___init__impl__6a9atx(48) <= c2 ? c2 <= _Char___init__impl__6a9atx(57) : false) ? Char__minus_impl_a2frrh_0(c2, _Char___init__impl__6a9atx(48)) : (_Char___init__impl__6a9atx(65) <= c2 ? c2 <= _Char___init__impl__6a9atx(70) : false) ? Char__minus_impl_a2frrh_0(c2, _Char___init__impl__6a9atx(65)) + 10 | 0 : (_Char___init__impl__6a9atx(97) <= c2 ? c2 <= _Char___init__impl__6a9atx(102) : false) ? Char__minus_impl_a2frrh_0(c2, _Char___init__impl__6a9atx(97)) + 10 | 0 : -1;
|
|
382
488
|
}
|
|
383
|
-
function
|
|
384
|
-
return function (it) {
|
|
385
|
-
if (get_URL_ALPHABET().d1(it) || get_SPECIAL_SYMBOLS().d1(it))
|
|
386
|
-
$$this$buildString.s(numberToChar(it));
|
|
387
|
-
else {
|
|
388
|
-
var tmp;
|
|
389
|
-
if ($spaceToPlus) {
|
|
390
|
-
var tmp_0 = it;
|
|
391
|
-
// Inline function 'kotlin.code' call
|
|
392
|
-
var this_0 = _Char___init__impl__6a9atx(32);
|
|
393
|
-
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
394
|
-
tmp = tmp_0 === toByte(tmp$ret$0);
|
|
395
|
-
} else {
|
|
396
|
-
tmp = false;
|
|
397
|
-
}
|
|
398
|
-
if (tmp)
|
|
399
|
-
$$this$buildString.s(_Char___init__impl__6a9atx(43));
|
|
400
|
-
else {
|
|
401
|
-
$$this$buildString.q(percentEncode(it));
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
return Unit_instance;
|
|
405
|
-
};
|
|
406
|
-
}
|
|
407
|
-
function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encodeFull) {
|
|
489
|
+
function encodeURLPath$lambda($$this$buildString) {
|
|
408
490
|
return function (it) {
|
|
409
|
-
|
|
410
|
-
// Inline function 'kotlin.code' call
|
|
411
|
-
var this_0 = _Char___init__impl__6a9atx(32);
|
|
412
|
-
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
413
|
-
if (tmp === toByte(tmp$ret$0))
|
|
414
|
-
if ($spaceToPlus)
|
|
415
|
-
$$this$buildString.s(_Char___init__impl__6a9atx(43));
|
|
416
|
-
else
|
|
417
|
-
$$this$buildString.q('%20');
|
|
418
|
-
else {
|
|
419
|
-
if (get_URL_ALPHABET().d1(it) || (!$encodeFull && get_URL_PROTOCOL_PART().d1(it)))
|
|
420
|
-
$$this$buildString.s(numberToChar(it));
|
|
421
|
-
else {
|
|
422
|
-
$$this$buildString.q(percentEncode(it));
|
|
423
|
-
}
|
|
424
|
-
}
|
|
491
|
+
appendPercentEncoded($$this$buildString, it);
|
|
425
492
|
return Unit_instance;
|
|
426
493
|
};
|
|
427
494
|
}
|
|
428
495
|
function forEach$lambda($block) {
|
|
429
496
|
return function (buffer) {
|
|
430
497
|
while (canRead(buffer)) {
|
|
431
|
-
$block(buffer.
|
|
498
|
+
$block(buffer.e3i());
|
|
432
499
|
}
|
|
433
500
|
return true;
|
|
434
501
|
};
|
|
435
502
|
}
|
|
436
|
-
function encodeURLPath$lambda($$this$buildString) {
|
|
437
|
-
return function (it) {
|
|
438
|
-
$$this$buildString.q(percentEncode(it));
|
|
439
|
-
return Unit_instance;
|
|
440
|
-
};
|
|
441
|
-
}
|
|
442
503
|
var properties_initialized_Codecs_kt_hkj9s1;
|
|
443
504
|
function _init_properties_Codecs_kt__fudxxf() {
|
|
444
505
|
if (!properties_initialized_Codecs_kt_hkj9s1) {
|
|
445
506
|
properties_initialized_Codecs_kt_hkj9s1 = true;
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
var item = _iterator__ex2g4s.v();
|
|
453
|
-
// Inline function 'kotlin.code' call
|
|
454
|
-
var this_1 = item.z1_1;
|
|
455
|
-
var tmp$ret$3 = Char__toInt_impl_vasixd(this_1);
|
|
456
|
-
var tmp$ret$2 = toByte(tmp$ret$3);
|
|
457
|
-
destination.b1(tmp$ret$2);
|
|
458
|
-
}
|
|
459
|
-
URL_ALPHABET = toSet(destination);
|
|
460
|
-
URL_ALPHABET_CHARS = toSet(plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(122)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(90))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))));
|
|
461
|
-
HEX_ALPHABET = toSet(plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(102)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(70))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))));
|
|
462
|
-
// Inline function 'kotlin.collections.map' call
|
|
463
|
-
var this_2 = setOf([new Char(_Char___init__impl__6a9atx(58)), new Char(_Char___init__impl__6a9atx(47)), new Char(_Char___init__impl__6a9atx(63)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(91)), new Char(_Char___init__impl__6a9atx(93)), new Char(_Char___init__impl__6a9atx(64)), new Char(_Char___init__impl__6a9atx(33)), new Char(_Char___init__impl__6a9atx(36)), new Char(_Char___init__impl__6a9atx(38)), new Char(_Char___init__impl__6a9atx(39)), new Char(_Char___init__impl__6a9atx(40)), new Char(_Char___init__impl__6a9atx(41)), new Char(_Char___init__impl__6a9atx(42)), new Char(_Char___init__impl__6a9atx(44)), new Char(_Char___init__impl__6a9atx(59)), new Char(_Char___init__impl__6a9atx(61)), new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(126)), new Char(_Char___init__impl__6a9atx(43))]);
|
|
464
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
465
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_2, 10));
|
|
466
|
-
var _iterator__ex2g4s_0 = this_2.t();
|
|
467
|
-
while (_iterator__ex2g4s_0.u()) {
|
|
468
|
-
var item_0 = _iterator__ex2g4s_0.v();
|
|
469
|
-
// Inline function 'kotlin.code' call
|
|
470
|
-
var this_3 = item_0.z1_1;
|
|
471
|
-
var tmp$ret$3_0 = Char__toInt_impl_vasixd(this_3);
|
|
472
|
-
var tmp$ret$2_0 = toByte(tmp$ret$3_0);
|
|
473
|
-
destination_0.b1(tmp$ret$2_0);
|
|
474
|
-
}
|
|
475
|
-
URL_PROTOCOL_PART = destination_0;
|
|
476
|
-
VALID_PATH_PART = setOf([new Char(_Char___init__impl__6a9atx(58)), new Char(_Char___init__impl__6a9atx(64)), new Char(_Char___init__impl__6a9atx(33)), new Char(_Char___init__impl__6a9atx(36)), new Char(_Char___init__impl__6a9atx(38)), new Char(_Char___init__impl__6a9atx(39)), new Char(_Char___init__impl__6a9atx(40)), new Char(_Char___init__impl__6a9atx(41)), new Char(_Char___init__impl__6a9atx(42)), new Char(_Char___init__impl__6a9atx(43)), new Char(_Char___init__impl__6a9atx(44)), new Char(_Char___init__impl__6a9atx(59)), new Char(_Char___init__impl__6a9atx(61)), new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(126))]);
|
|
477
|
-
ATTRIBUTE_CHARACTERS = plus_1(get_URL_ALPHABET_CHARS(), setOf([new Char(_Char___init__impl__6a9atx(33)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(36)), new Char(_Char___init__impl__6a9atx(38)), new Char(_Char___init__impl__6a9atx(43)), new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(94)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(96)), new Char(_Char___init__impl__6a9atx(124)), new Char(_Char___init__impl__6a9atx(126))]));
|
|
478
|
-
// Inline function 'kotlin.collections.map' call
|
|
479
|
-
var this_4 = listOf([new Char(_Char___init__impl__6a9atx(45)), new Char(_Char___init__impl__6a9atx(46)), new Char(_Char___init__impl__6a9atx(95)), new Char(_Char___init__impl__6a9atx(126))]);
|
|
480
|
-
// Inline function 'kotlin.collections.mapTo' call
|
|
481
|
-
var destination_1 = ArrayList_init_$Create$(collectionSizeOrDefault(this_4, 10));
|
|
482
|
-
var _iterator__ex2g4s_1 = this_4.t();
|
|
483
|
-
while (_iterator__ex2g4s_1.u()) {
|
|
484
|
-
var item_1 = _iterator__ex2g4s_1.v();
|
|
485
|
-
// Inline function 'kotlin.code' call
|
|
486
|
-
var this_5 = item_1.z1_1;
|
|
487
|
-
var tmp$ret$3_1 = Char__toInt_impl_vasixd(this_5);
|
|
488
|
-
var tmp$ret$2_1 = toByte(tmp$ret$3_1);
|
|
489
|
-
destination_1.b1(tmp$ret$2_1);
|
|
490
|
-
}
|
|
491
|
-
SPECIAL_SYMBOLS = destination_1;
|
|
507
|
+
URL_ALPHABET = Companion_instance.k45(plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(122)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(90))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))));
|
|
508
|
+
HEX_ALPHABET = Companion_instance.k45(plus_0(plus(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(102)), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(65), _Char___init__impl__6a9atx(70))), Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(57))));
|
|
509
|
+
URL_PROTOCOL_PART = Companion_instance.l45(":/?#[]@!$&'()*,;=-._~+");
|
|
510
|
+
VALID_PATH_PART = Companion_instance.l45(":@!$&'()*+,;=-._~");
|
|
511
|
+
ATTRIBUTE_CHARACTERS = get_URL_ALPHABET().n45(Companion_instance.l45('!#$&+-.^_`|~'));
|
|
512
|
+
URL_PARAMETER_CHARS = get_URL_ALPHABET().n45(Companion_instance.l45('-._~'));
|
|
492
513
|
}
|
|
493
514
|
}
|
|
494
515
|
var textSubTypes;
|
|
@@ -502,18 +523,18 @@ function ContentType_init_$Create$(contentType, contentSubtype, parameters) {
|
|
|
502
523
|
}
|
|
503
524
|
function hasParameter($this, name, value) {
|
|
504
525
|
var tmp;
|
|
505
|
-
switch ($this.
|
|
526
|
+
switch ($this.p45_1.e1()) {
|
|
506
527
|
case 0:
|
|
507
528
|
tmp = false;
|
|
508
529
|
break;
|
|
509
530
|
case 1:
|
|
510
531
|
// Inline function 'kotlin.let' call
|
|
511
532
|
|
|
512
|
-
var it = $this.
|
|
513
|
-
tmp = (equals(it.
|
|
533
|
+
var it = $this.p45_1.f1(0);
|
|
534
|
+
tmp = (equals(it.q45_1, name, true) && equals(it.r45_1, value, true));
|
|
514
535
|
break;
|
|
515
536
|
default:
|
|
516
|
-
var tmp0 = $this.
|
|
537
|
+
var tmp0 = $this.p45_1;
|
|
517
538
|
var tmp$ret$2;
|
|
518
539
|
$l$block_0: {
|
|
519
540
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -530,7 +551,7 @@ function hasParameter($this, name, value) {
|
|
|
530
551
|
var _iterator__ex2g4s = tmp0.t();
|
|
531
552
|
while (_iterator__ex2g4s.u()) {
|
|
532
553
|
var element = _iterator__ex2g4s.v();
|
|
533
|
-
if (equals(element.
|
|
554
|
+
if (equals(element.q45_1, name, true) && equals(element.r45_1, value, true)) {
|
|
534
555
|
tmp$ret$2 = true;
|
|
535
556
|
break $l$block_0;
|
|
536
557
|
}
|
|
@@ -543,34 +564,34 @@ function hasParameter($this, name, value) {
|
|
|
543
564
|
}
|
|
544
565
|
return tmp;
|
|
545
566
|
}
|
|
546
|
-
function
|
|
547
|
-
|
|
548
|
-
this.
|
|
567
|
+
function Companion_0() {
|
|
568
|
+
Companion_instance_0 = this;
|
|
569
|
+
this.t45_1 = ContentType_init_$Create$('*', '*');
|
|
549
570
|
}
|
|
550
|
-
protoOf(
|
|
571
|
+
protoOf(Companion_0).lo = function (value) {
|
|
551
572
|
if (isBlank(value))
|
|
552
|
-
return this.
|
|
573
|
+
return this.t45_1;
|
|
553
574
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
554
575
|
var headerValue = last(parseHeaderValue(value));
|
|
555
|
-
var tmp0 = headerValue.
|
|
556
|
-
var parameters = headerValue.
|
|
576
|
+
var tmp0 = headerValue.u45_1;
|
|
577
|
+
var parameters = headerValue.v45_1;
|
|
557
578
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
558
579
|
if (slash === -1) {
|
|
559
580
|
// Inline function 'kotlin.text.trim' call
|
|
560
|
-
if (
|
|
561
|
-
return
|
|
581
|
+
if (toString_0(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
582
|
+
return Companion_getInstance_0().t45_1;
|
|
562
583
|
throw new BadContentTypeFormatException(value);
|
|
563
584
|
}
|
|
564
585
|
// Inline function 'kotlin.text.trim' call
|
|
565
586
|
var this_0 = take(tmp0, slash);
|
|
566
|
-
var type =
|
|
587
|
+
var type = toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
567
588
|
// Inline function 'kotlin.text.isEmpty' call
|
|
568
589
|
if (charSequenceLength(type) === 0) {
|
|
569
590
|
throw new BadContentTypeFormatException(value);
|
|
570
591
|
}
|
|
571
592
|
// Inline function 'kotlin.text.trim' call
|
|
572
593
|
var this_1 = substring_0(tmp0, slash + 1 | 0);
|
|
573
|
-
var subtype =
|
|
594
|
+
var subtype = toString_0(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()));
|
|
574
595
|
if (contains(type, _Char___init__impl__6a9atx(32)) || contains(subtype, _Char___init__impl__6a9atx(32))) {
|
|
575
596
|
throw new BadContentTypeFormatException(value);
|
|
576
597
|
}
|
|
@@ -586,38 +607,38 @@ protoOf(Companion).ho = function (value) {
|
|
|
586
607
|
}
|
|
587
608
|
return ContentType_init_$Create$(type, subtype, parameters);
|
|
588
609
|
};
|
|
589
|
-
var
|
|
590
|
-
function
|
|
591
|
-
if (
|
|
592
|
-
new
|
|
593
|
-
return
|
|
610
|
+
var Companion_instance_0;
|
|
611
|
+
function Companion_getInstance_0() {
|
|
612
|
+
if (Companion_instance_0 == null)
|
|
613
|
+
new Companion_0();
|
|
614
|
+
return Companion_instance_0;
|
|
594
615
|
}
|
|
595
616
|
function Application() {
|
|
596
617
|
Application_instance = this;
|
|
597
|
-
this.
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
604
|
-
this.
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
617
|
-
this.
|
|
618
|
-
this.
|
|
619
|
-
this.
|
|
620
|
-
this.
|
|
618
|
+
this.x45_1 = 'application';
|
|
619
|
+
this.y45_1 = ContentType_init_$Create$('application', '*');
|
|
620
|
+
this.z45_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
621
|
+
this.a46_1 = ContentType_init_$Create$('application', 'cbor');
|
|
622
|
+
this.b46_1 = ContentType_init_$Create$('application', 'json');
|
|
623
|
+
this.c46_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
624
|
+
this.d46_1 = ContentType_init_$Create$('application', 'javascript');
|
|
625
|
+
this.e46_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
626
|
+
this.f46_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
627
|
+
this.g46_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
628
|
+
this.h46_1 = ContentType_init_$Create$('application', 'xml');
|
|
629
|
+
this.i46_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
630
|
+
this.j46_1 = ContentType_init_$Create$('application', 'yaml');
|
|
631
|
+
this.k46_1 = ContentType_init_$Create$('application', 'zip');
|
|
632
|
+
this.l46_1 = ContentType_init_$Create$('application', 'gzip');
|
|
633
|
+
this.m46_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
634
|
+
this.n46_1 = ContentType_init_$Create$('application', 'pdf');
|
|
635
|
+
this.o46_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
636
|
+
this.p46_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
637
|
+
this.q46_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
638
|
+
this.r46_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
639
|
+
this.s46_1 = ContentType_init_$Create$('application', 'wasm');
|
|
640
|
+
this.t46_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
641
|
+
this.u46_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
621
642
|
}
|
|
622
643
|
var Application_instance;
|
|
623
644
|
function Application_getInstance() {
|
|
@@ -627,17 +648,17 @@ function Application_getInstance() {
|
|
|
627
648
|
}
|
|
628
649
|
function MultiPart() {
|
|
629
650
|
MultiPart_instance = this;
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
639
|
-
}
|
|
640
|
-
protoOf(MultiPart).
|
|
651
|
+
this.v46_1 = 'multipart';
|
|
652
|
+
this.w46_1 = ContentType_init_$Create$('multipart', '*');
|
|
653
|
+
this.x46_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
654
|
+
this.y46_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
655
|
+
this.z46_1 = ContentType_init_$Create$('multipart', 'related');
|
|
656
|
+
this.a47_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
657
|
+
this.b47_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
658
|
+
this.c47_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
659
|
+
this.d47_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
660
|
+
}
|
|
661
|
+
protoOf(MultiPart).e47 = function (contentType) {
|
|
641
662
|
return startsWith(contentType, 'multipart/', true);
|
|
642
663
|
};
|
|
643
664
|
var MultiPart_instance;
|
|
@@ -648,16 +669,17 @@ function MultiPart_getInstance() {
|
|
|
648
669
|
}
|
|
649
670
|
function Text() {
|
|
650
671
|
Text_instance = this;
|
|
651
|
-
this.
|
|
652
|
-
this.
|
|
653
|
-
this.
|
|
654
|
-
this.
|
|
655
|
-
this.
|
|
656
|
-
this.
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
672
|
+
this.f47_1 = 'text';
|
|
673
|
+
this.g47_1 = ContentType_init_$Create$('text', '*');
|
|
674
|
+
this.h47_1 = ContentType_init_$Create$('text', 'plain');
|
|
675
|
+
this.i47_1 = ContentType_init_$Create$('text', 'css');
|
|
676
|
+
this.j47_1 = ContentType_init_$Create$('text', 'csv');
|
|
677
|
+
this.k47_1 = ContentType_init_$Create$('text', 'html');
|
|
678
|
+
this.l47_1 = ContentType_init_$Create$('text', 'javascript');
|
|
679
|
+
this.m47_1 = ContentType_init_$Create$('text', 'markdown');
|
|
680
|
+
this.n47_1 = ContentType_init_$Create$('text', 'vcard');
|
|
681
|
+
this.o47_1 = ContentType_init_$Create$('text', 'xml');
|
|
682
|
+
this.p47_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
661
683
|
}
|
|
662
684
|
var Text_instance;
|
|
663
685
|
function Text_getInstance() {
|
|
@@ -666,36 +688,36 @@ function Text_getInstance() {
|
|
|
666
688
|
return Text_instance;
|
|
667
689
|
}
|
|
668
690
|
function ContentType(contentType, contentSubtype, existingContent, parameters) {
|
|
669
|
-
|
|
691
|
+
Companion_getInstance_0();
|
|
670
692
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
671
693
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
672
|
-
this.
|
|
673
|
-
this.
|
|
694
|
+
this.s47_1 = contentType;
|
|
695
|
+
this.t47_1 = contentSubtype;
|
|
674
696
|
}
|
|
675
|
-
protoOf(ContentType).
|
|
697
|
+
protoOf(ContentType).u47 = function (name, value) {
|
|
676
698
|
if (hasParameter(this, name, value))
|
|
677
699
|
return this;
|
|
678
|
-
return new ContentType(this.
|
|
700
|
+
return new ContentType(this.s47_1, this.t47_1, this.o45_1, plus_1(this.p45_1, HeaderValueParam_init_$Create$(name, value)));
|
|
679
701
|
};
|
|
680
|
-
protoOf(ContentType).
|
|
681
|
-
if (!(pattern.
|
|
702
|
+
protoOf(ContentType).v47 = function (pattern) {
|
|
703
|
+
if (!(pattern.s47_1 === '*') && !equals(pattern.s47_1, this.s47_1, true)) {
|
|
682
704
|
return false;
|
|
683
705
|
}
|
|
684
|
-
if (!(pattern.
|
|
706
|
+
if (!(pattern.t47_1 === '*') && !equals(pattern.t47_1, this.t47_1, true)) {
|
|
685
707
|
return false;
|
|
686
708
|
}
|
|
687
|
-
var _iterator__ex2g4s = pattern.
|
|
709
|
+
var _iterator__ex2g4s = pattern.p45_1.t();
|
|
688
710
|
while (_iterator__ex2g4s.u()) {
|
|
689
711
|
var _destruct__k2r9zo = _iterator__ex2g4s.v();
|
|
690
|
-
var patternName = _destruct__k2r9zo.
|
|
691
|
-
var patternValue = _destruct__k2r9zo.
|
|
712
|
+
var patternName = _destruct__k2r9zo.pg();
|
|
713
|
+
var patternValue = _destruct__k2r9zo.qg();
|
|
692
714
|
var tmp;
|
|
693
715
|
if (patternName === '*') {
|
|
694
716
|
var tmp_0;
|
|
695
717
|
if (patternValue === '*') {
|
|
696
718
|
tmp_0 = true;
|
|
697
719
|
} else {
|
|
698
|
-
var tmp0 = this.
|
|
720
|
+
var tmp0 = this.p45_1;
|
|
699
721
|
var tmp$ret$0;
|
|
700
722
|
$l$block_0: {
|
|
701
723
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -712,7 +734,7 @@ protoOf(ContentType).z44 = function (pattern) {
|
|
|
712
734
|
var _iterator__ex2g4s_0 = tmp0.t();
|
|
713
735
|
while (_iterator__ex2g4s_0.u()) {
|
|
714
736
|
var element = _iterator__ex2g4s_0.v();
|
|
715
|
-
if (equals(element.
|
|
737
|
+
if (equals(element.r45_1, patternValue, true)) {
|
|
716
738
|
tmp$ret$0 = true;
|
|
717
739
|
break $l$block_0;
|
|
718
740
|
}
|
|
@@ -723,7 +745,7 @@ protoOf(ContentType).z44 = function (pattern) {
|
|
|
723
745
|
}
|
|
724
746
|
tmp = tmp_0;
|
|
725
747
|
} else {
|
|
726
|
-
var value = this.
|
|
748
|
+
var value = this.w47(patternName);
|
|
727
749
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
728
750
|
}
|
|
729
751
|
var matches = tmp;
|
|
@@ -738,17 +760,17 @@ protoOf(ContentType).equals = function (other) {
|
|
|
738
760
|
var tmp_0;
|
|
739
761
|
var tmp_1;
|
|
740
762
|
if (other instanceof ContentType) {
|
|
741
|
-
tmp_1 = equals(this.
|
|
763
|
+
tmp_1 = equals(this.s47_1, other.s47_1, true);
|
|
742
764
|
} else {
|
|
743
765
|
tmp_1 = false;
|
|
744
766
|
}
|
|
745
767
|
if (tmp_1) {
|
|
746
|
-
tmp_0 = equals(this.
|
|
768
|
+
tmp_0 = equals(this.t47_1, other.t47_1, true);
|
|
747
769
|
} else {
|
|
748
770
|
tmp_0 = false;
|
|
749
771
|
}
|
|
750
772
|
if (tmp_0) {
|
|
751
|
-
tmp = equals_0(this.
|
|
773
|
+
tmp = equals_0(this.p45_1, other.p45_1);
|
|
752
774
|
} else {
|
|
753
775
|
tmp = false;
|
|
754
776
|
}
|
|
@@ -757,20 +779,20 @@ protoOf(ContentType).equals = function (other) {
|
|
|
757
779
|
protoOf(ContentType).hashCode = function () {
|
|
758
780
|
// Inline function 'kotlin.text.lowercase' call
|
|
759
781
|
// Inline function 'kotlin.js.asDynamic' call
|
|
760
|
-
var tmp$ret$0 = this.
|
|
782
|
+
var tmp$ret$0 = this.s47_1.toLowerCase();
|
|
761
783
|
var result = getStringHashCode(tmp$ret$0);
|
|
762
784
|
var tmp = result;
|
|
763
785
|
var tmp_0 = imul(31, result);
|
|
764
786
|
// Inline function 'kotlin.text.lowercase' call
|
|
765
787
|
// Inline function 'kotlin.js.asDynamic' call
|
|
766
|
-
var tmp$ret$2 = this.
|
|
788
|
+
var tmp$ret$2 = this.t47_1.toLowerCase();
|
|
767
789
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
768
|
-
result = result + imul(31, hashCode(this.
|
|
790
|
+
result = result + imul(31, hashCode(this.p45_1)) | 0;
|
|
769
791
|
return result;
|
|
770
792
|
};
|
|
771
793
|
function charset(_this__u8e3s4) {
|
|
772
794
|
_init_properties_ContentTypes_kt__i9dj34();
|
|
773
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
795
|
+
var tmp0_safe_receiver = _this__u8e3s4.w47('charset');
|
|
774
796
|
var tmp;
|
|
775
797
|
if (tmp0_safe_receiver == null) {
|
|
776
798
|
tmp = null;
|
|
@@ -793,14 +815,14 @@ function charset(_this__u8e3s4) {
|
|
|
793
815
|
}
|
|
794
816
|
return tmp;
|
|
795
817
|
}
|
|
796
|
-
function withCharset(_this__u8e3s4, charset) {
|
|
797
|
-
_init_properties_ContentTypes_kt__i9dj34();
|
|
798
|
-
return _this__u8e3s4.y44('charset', get_name(charset));
|
|
799
|
-
}
|
|
800
818
|
function BadContentTypeFormatException(value) {
|
|
801
819
|
Exception_init_$Init$('Bad Content-Type format: ' + value, this);
|
|
802
820
|
captureStack(this, BadContentTypeFormatException);
|
|
803
821
|
}
|
|
822
|
+
function withCharset(_this__u8e3s4, charset) {
|
|
823
|
+
_init_properties_ContentTypes_kt__i9dj34();
|
|
824
|
+
return _this__u8e3s4.u47('charset', get_name(charset));
|
|
825
|
+
}
|
|
804
826
|
var properties_initialized_ContentTypes_kt_1k2nnm;
|
|
805
827
|
function _init_properties_ContentTypes_kt__i9dj34() {
|
|
806
828
|
if (!properties_initialized_ContentTypes_kt_1k2nnm) {
|
|
@@ -808,32 +830,67 @@ function _init_properties_ContentTypes_kt__i9dj34() {
|
|
|
808
830
|
textSubTypes = setOf(['json', 'ld+json', 'xml', 'xhtml+xml', 'rss+xml', 'atom+xml', 'x-www-form-urlencoded', 'svg+xml']);
|
|
809
831
|
}
|
|
810
832
|
}
|
|
833
|
+
function get_HTTP_DATE_FORMATS() {
|
|
834
|
+
_init_properties_DateUtils_kt__b7z3g1();
|
|
835
|
+
return HTTP_DATE_FORMATS;
|
|
836
|
+
}
|
|
837
|
+
var HTTP_DATE_FORMATS;
|
|
838
|
+
function fromHttpToGmtDate(_this__u8e3s4) {
|
|
839
|
+
_init_properties_DateUtils_kt__b7z3g1();
|
|
840
|
+
// Inline function 'kotlin.text.trim' call
|
|
841
|
+
// Inline function 'kotlin.with' call
|
|
842
|
+
var $this$with = toString_0(trim(isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE()));
|
|
843
|
+
var _iterator__ex2g4s = get_HTTP_DATE_FORMATS().t();
|
|
844
|
+
while (_iterator__ex2g4s.u()) {
|
|
845
|
+
var format = _iterator__ex2g4s.v();
|
|
846
|
+
try {
|
|
847
|
+
var parser = new GMTDateParser(format);
|
|
848
|
+
return parser.lo(_this__u8e3s4);
|
|
849
|
+
} catch ($p) {
|
|
850
|
+
if ($p instanceof InvalidDateStringException) {
|
|
851
|
+
var _unused_var__etf5q3 = $p;
|
|
852
|
+
} else {
|
|
853
|
+
throw $p;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
// Inline function 'kotlin.error' call
|
|
858
|
+
var message = 'Failed to parse date: ' + $this$with;
|
|
859
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
860
|
+
}
|
|
861
|
+
var properties_initialized_DateUtils_kt_j3k3il;
|
|
862
|
+
function _init_properties_DateUtils_kt__b7z3g1() {
|
|
863
|
+
if (!properties_initialized_DateUtils_kt_j3k3il) {
|
|
864
|
+
properties_initialized_DateUtils_kt_j3k3il = true;
|
|
865
|
+
HTTP_DATE_FORMATS = listOf(['***, dd MMM YYYY hh:mm:ss zzz', '****, dd-MMM-YYYY hh:mm:ss zzz', '*** MMM d hh:mm:ss YYYY', '***, dd-MMM-YYYY hh:mm:ss zzz', '***, dd-MMM-YYYY hh-mm-ss zzz', '***, dd MMM YYYY hh:mm:ss zzz', '*** dd-MMM-YYYY hh:mm:ss zzz', '*** dd MMM YYYY hh:mm:ss zzz', '*** dd-MMM-YYYY hh-mm-ss zzz', '***,dd-MMM-YYYY hh:mm:ss zzz', '*** MMM d YYYY hh:mm:ss zzz']);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
811
868
|
function get_HeaderFieldValueSeparators() {
|
|
812
869
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
813
870
|
return HeaderFieldValueSeparators;
|
|
814
871
|
}
|
|
815
872
|
var HeaderFieldValueSeparators;
|
|
816
|
-
function
|
|
873
|
+
function Companion_1() {
|
|
817
874
|
}
|
|
818
|
-
var
|
|
819
|
-
function
|
|
820
|
-
return
|
|
875
|
+
var Companion_instance_1;
|
|
876
|
+
function Companion_getInstance_1() {
|
|
877
|
+
return Companion_instance_1;
|
|
821
878
|
}
|
|
822
879
|
function HeaderValueWithParameters(content, parameters) {
|
|
823
880
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
824
|
-
this.
|
|
825
|
-
this.
|
|
881
|
+
this.o45_1 = content;
|
|
882
|
+
this.p45_1 = parameters;
|
|
826
883
|
}
|
|
827
|
-
protoOf(HeaderValueWithParameters).
|
|
884
|
+
protoOf(HeaderValueWithParameters).w47 = function (name) {
|
|
828
885
|
var inductionVariable = 0;
|
|
829
|
-
var last = get_lastIndex(this.
|
|
886
|
+
var last = get_lastIndex(this.p45_1);
|
|
830
887
|
if (inductionVariable <= last)
|
|
831
888
|
do {
|
|
832
889
|
var index = inductionVariable;
|
|
833
890
|
inductionVariable = inductionVariable + 1 | 0;
|
|
834
|
-
var parameter = this.
|
|
835
|
-
if (equals(parameter.
|
|
836
|
-
return parameter.
|
|
891
|
+
var parameter = this.p45_1.f1(index);
|
|
892
|
+
if (equals(parameter.q45_1, name, true)) {
|
|
893
|
+
return parameter.r45_1;
|
|
837
894
|
}
|
|
838
895
|
}
|
|
839
896
|
while (!(index === last));
|
|
@@ -841,34 +898,34 @@ protoOf(HeaderValueWithParameters).a45 = function (name) {
|
|
|
841
898
|
};
|
|
842
899
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
843
900
|
var tmp;
|
|
844
|
-
if (this.
|
|
845
|
-
tmp = this.
|
|
901
|
+
if (this.p45_1.r()) {
|
|
902
|
+
tmp = this.o45_1;
|
|
846
903
|
} else {
|
|
847
|
-
var tmp_0 = this.
|
|
904
|
+
var tmp_0 = this.o45_1.length;
|
|
848
905
|
// Inline function 'kotlin.collections.sumOf' call
|
|
849
906
|
var sum = 0;
|
|
850
|
-
var _iterator__ex2g4s = this.
|
|
907
|
+
var _iterator__ex2g4s = this.p45_1.t();
|
|
851
908
|
while (_iterator__ex2g4s.u()) {
|
|
852
909
|
var element = _iterator__ex2g4s.v();
|
|
853
910
|
var tmp_1 = sum;
|
|
854
|
-
sum = tmp_1 + ((element.
|
|
911
|
+
sum = tmp_1 + ((element.q45_1.length + element.r45_1.length | 0) + 3 | 0) | 0;
|
|
855
912
|
}
|
|
856
913
|
var size = tmp_0 + sum | 0;
|
|
857
914
|
// Inline function 'kotlin.apply' call
|
|
858
|
-
var this_0 = StringBuilder_init_$Create$
|
|
859
|
-
this_0.q(this.
|
|
915
|
+
var this_0 = StringBuilder_init_$Create$(size);
|
|
916
|
+
this_0.q(this.o45_1);
|
|
860
917
|
var inductionVariable = 0;
|
|
861
|
-
var last = get_lastIndex(this.
|
|
918
|
+
var last = get_lastIndex(this.p45_1);
|
|
862
919
|
if (inductionVariable <= last)
|
|
863
920
|
do {
|
|
864
921
|
var index = inductionVariable;
|
|
865
922
|
inductionVariable = inductionVariable + 1 | 0;
|
|
866
|
-
var element_0 = this.
|
|
923
|
+
var element_0 = this.p45_1.f1(index);
|
|
867
924
|
this_0.q('; ');
|
|
868
|
-
this_0.q(element_0.
|
|
925
|
+
this_0.q(element_0.q45_1);
|
|
869
926
|
this_0.q('=');
|
|
870
927
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
871
|
-
var this_1 = element_0.
|
|
928
|
+
var this_1 = element_0.r45_1;
|
|
872
929
|
if (needQuotes(this_1))
|
|
873
930
|
this_0.q(quote(this_1));
|
|
874
931
|
else
|
|
@@ -891,7 +948,7 @@ function needQuotes(_this__u8e3s4) {
|
|
|
891
948
|
while (inductionVariable < last) {
|
|
892
949
|
var element = charCodeAt(_this__u8e3s4, inductionVariable);
|
|
893
950
|
inductionVariable = inductionVariable + 1 | 0;
|
|
894
|
-
if (get_HeaderFieldValueSeparators().
|
|
951
|
+
if (get_HeaderFieldValueSeparators().gk(element))
|
|
895
952
|
return true;
|
|
896
953
|
}
|
|
897
954
|
return false;
|
|
@@ -900,7 +957,7 @@ function quote(_this__u8e3s4) {
|
|
|
900
957
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
901
958
|
// Inline function 'kotlin.text.buildString' call
|
|
902
959
|
// Inline function 'kotlin.apply' call
|
|
903
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
960
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
904
961
|
quoteTo(_this__u8e3s4, this_0);
|
|
905
962
|
return this_0.toString();
|
|
906
963
|
}
|
|
@@ -960,33 +1017,33 @@ var properties_initialized_HeaderValueWithParameters_kt_yu5xg;
|
|
|
960
1017
|
function _init_properties_HeaderValueWithParameters_kt__z6luvy() {
|
|
961
1018
|
if (!properties_initialized_HeaderValueWithParameters_kt_yu5xg) {
|
|
962
1019
|
properties_initialized_HeaderValueWithParameters_kt_yu5xg = true;
|
|
963
|
-
HeaderFieldValueSeparators =
|
|
1020
|
+
HeaderFieldValueSeparators = Companion_instance.l45('()<>@,;:\\"/[]?={} \t\n\r');
|
|
964
1021
|
}
|
|
965
1022
|
}
|
|
966
1023
|
function HeadersBuilder(size) {
|
|
967
1024
|
size = size === VOID ? 8 : size;
|
|
968
1025
|
StringValuesBuilderImpl.call(this, true, size);
|
|
969
1026
|
}
|
|
970
|
-
protoOf(HeadersBuilder).
|
|
971
|
-
return new HeadersImpl(this.
|
|
1027
|
+
protoOf(HeadersBuilder).b42 = function () {
|
|
1028
|
+
return new HeadersImpl(this.q3z_1);
|
|
972
1029
|
};
|
|
973
|
-
protoOf(HeadersBuilder).
|
|
974
|
-
protoOf(StringValuesBuilderImpl).
|
|
975
|
-
HttpHeaders_getInstance().
|
|
1030
|
+
protoOf(HeadersBuilder).r3z = function (name) {
|
|
1031
|
+
protoOf(StringValuesBuilderImpl).r3z.call(this, name);
|
|
1032
|
+
HttpHeaders_getInstance().y4b(name);
|
|
976
1033
|
};
|
|
977
|
-
protoOf(HeadersBuilder).
|
|
978
|
-
protoOf(StringValuesBuilderImpl).
|
|
979
|
-
HttpHeaders_getInstance().
|
|
1034
|
+
protoOf(HeadersBuilder).w3z = function (value) {
|
|
1035
|
+
protoOf(StringValuesBuilderImpl).w3z.call(this, value);
|
|
1036
|
+
HttpHeaders_getInstance().z4b(value);
|
|
980
1037
|
};
|
|
981
|
-
function
|
|
982
|
-
|
|
983
|
-
this.
|
|
1038
|
+
function Companion_2() {
|
|
1039
|
+
Companion_instance_2 = this;
|
|
1040
|
+
this.a4c_1 = EmptyHeaders_instance;
|
|
984
1041
|
}
|
|
985
|
-
var
|
|
986
|
-
function
|
|
987
|
-
if (
|
|
988
|
-
new
|
|
989
|
-
return
|
|
1042
|
+
var Companion_instance_2;
|
|
1043
|
+
function Companion_getInstance_2() {
|
|
1044
|
+
if (Companion_instance_2 == null)
|
|
1045
|
+
new Companion_2();
|
|
1046
|
+
return Companion_instance_2;
|
|
990
1047
|
}
|
|
991
1048
|
function headersOf(name, value) {
|
|
992
1049
|
return new HeadersSingleImpl(name, listOf_0(value));
|
|
@@ -996,27 +1053,27 @@ function HeadersImpl(values) {
|
|
|
996
1053
|
StringValuesImpl.call(this, true, values);
|
|
997
1054
|
}
|
|
998
1055
|
protoOf(HeadersImpl).toString = function () {
|
|
999
|
-
return 'Headers ' +
|
|
1056
|
+
return 'Headers ' + toString_0(this.n3z());
|
|
1000
1057
|
};
|
|
1001
1058
|
function EmptyHeaders() {
|
|
1002
1059
|
}
|
|
1003
|
-
protoOf(EmptyHeaders).
|
|
1060
|
+
protoOf(EmptyHeaders).s3z = function () {
|
|
1004
1061
|
return true;
|
|
1005
1062
|
};
|
|
1006
|
-
protoOf(EmptyHeaders).
|
|
1063
|
+
protoOf(EmptyHeaders).t3z = function (name) {
|
|
1007
1064
|
return null;
|
|
1008
1065
|
};
|
|
1009
|
-
protoOf(EmptyHeaders).
|
|
1066
|
+
protoOf(EmptyHeaders).u3z = function () {
|
|
1010
1067
|
return emptySet();
|
|
1011
1068
|
};
|
|
1012
|
-
protoOf(EmptyHeaders).
|
|
1069
|
+
protoOf(EmptyHeaders).n3z = function () {
|
|
1013
1070
|
return emptySet();
|
|
1014
1071
|
};
|
|
1015
1072
|
protoOf(EmptyHeaders).r = function () {
|
|
1016
1073
|
return true;
|
|
1017
1074
|
};
|
|
1018
1075
|
protoOf(EmptyHeaders).toString = function () {
|
|
1019
|
-
return 'Headers ' +
|
|
1076
|
+
return 'Headers ' + toString_0(this.n3z());
|
|
1020
1077
|
};
|
|
1021
1078
|
var EmptyHeaders_instance;
|
|
1022
1079
|
function EmptyHeaders_getInstance() {
|
|
@@ -1026,70 +1083,21 @@ function HeadersSingleImpl(name, values) {
|
|
|
1026
1083
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1027
1084
|
}
|
|
1028
1085
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1029
|
-
return 'Headers ' +
|
|
1030
|
-
};
|
|
1031
|
-
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1032
|
-
HeaderValueParam.call($this, name, value, false);
|
|
1033
|
-
return $this;
|
|
1034
|
-
}
|
|
1035
|
-
function HeaderValueParam_init_$Create$(name, value) {
|
|
1036
|
-
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1037
|
-
}
|
|
1038
|
-
function HeaderValueParam(name, value, escapeValue) {
|
|
1039
|
-
this.v42_1 = name;
|
|
1040
|
-
this.w42_1 = value;
|
|
1041
|
-
this.x42_1 = escapeValue;
|
|
1042
|
-
}
|
|
1043
|
-
protoOf(HeaderValueParam).equals = function (other) {
|
|
1044
|
-
var tmp;
|
|
1045
|
-
var tmp_0;
|
|
1046
|
-
if (other instanceof HeaderValueParam) {
|
|
1047
|
-
tmp_0 = equals(other.v42_1, this.v42_1, true);
|
|
1048
|
-
} else {
|
|
1049
|
-
tmp_0 = false;
|
|
1050
|
-
}
|
|
1051
|
-
if (tmp_0) {
|
|
1052
|
-
tmp = equals(other.w42_1, this.w42_1, true);
|
|
1053
|
-
} else {
|
|
1054
|
-
tmp = false;
|
|
1055
|
-
}
|
|
1056
|
-
return tmp;
|
|
1057
|
-
};
|
|
1058
|
-
protoOf(HeaderValueParam).hashCode = function () {
|
|
1059
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
1060
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1061
|
-
var tmp$ret$0 = this.v42_1.toLowerCase();
|
|
1062
|
-
var result = getStringHashCode(tmp$ret$0);
|
|
1063
|
-
var tmp = result;
|
|
1064
|
-
var tmp_0 = imul(31, result);
|
|
1065
|
-
// Inline function 'kotlin.text.lowercase' call
|
|
1066
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
1067
|
-
var tmp$ret$2 = this.w42_1.toLowerCase();
|
|
1068
|
-
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
1069
|
-
return result;
|
|
1070
|
-
};
|
|
1071
|
-
protoOf(HeaderValueParam).xg = function () {
|
|
1072
|
-
return this.v42_1;
|
|
1073
|
-
};
|
|
1074
|
-
protoOf(HeaderValueParam).yg = function () {
|
|
1075
|
-
return this.w42_1;
|
|
1076
|
-
};
|
|
1077
|
-
protoOf(HeaderValueParam).toString = function () {
|
|
1078
|
-
return 'HeaderValueParam(name=' + this.v42_1 + ', value=' + this.w42_1 + ', escapeValue=' + this.x42_1 + ')';
|
|
1086
|
+
return 'Headers ' + toString_0(this.n3z());
|
|
1079
1087
|
};
|
|
1080
1088
|
function HeaderValue(value, params) {
|
|
1081
1089
|
params = params === VOID ? emptyList() : params;
|
|
1082
|
-
this.
|
|
1083
|
-
this.
|
|
1090
|
+
this.u45_1 = value;
|
|
1091
|
+
this.v45_1 = params;
|
|
1084
1092
|
var tmp = this;
|
|
1085
|
-
var tmp0 = this.
|
|
1093
|
+
var tmp0 = this.v45_1;
|
|
1086
1094
|
var tmp$ret$0;
|
|
1087
1095
|
$l$block: {
|
|
1088
1096
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1089
1097
|
var _iterator__ex2g4s = tmp0.t();
|
|
1090
1098
|
while (_iterator__ex2g4s.u()) {
|
|
1091
1099
|
var element = _iterator__ex2g4s.v();
|
|
1092
|
-
if (element.
|
|
1100
|
+
if (equals(element.q45_1, 'q', true)) {
|
|
1093
1101
|
tmp$ret$0 = element;
|
|
1094
1102
|
break $l$block;
|
|
1095
1103
|
}
|
|
@@ -1097,7 +1105,7 @@ function HeaderValue(value, params) {
|
|
|
1097
1105
|
tmp$ret$0 = null;
|
|
1098
1106
|
}
|
|
1099
1107
|
var tmp0_safe_receiver = tmp$ret$0;
|
|
1100
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1108
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.r45_1;
|
|
1101
1109
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1102
1110
|
var tmp_0;
|
|
1103
1111
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1113,14 +1121,14 @@ function HeaderValue(value, params) {
|
|
|
1113
1121
|
tmp_0 = tmp_1;
|
|
1114
1122
|
}
|
|
1115
1123
|
var tmp3_elvis_lhs = tmp_0;
|
|
1116
|
-
tmp.
|
|
1124
|
+
tmp.w45_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1117
1125
|
}
|
|
1118
1126
|
protoOf(HeaderValue).toString = function () {
|
|
1119
|
-
return 'HeaderValue(value=' + this.
|
|
1127
|
+
return 'HeaderValue(value=' + this.u45_1 + ', params=' + toString_0(this.v45_1) + ')';
|
|
1120
1128
|
};
|
|
1121
1129
|
protoOf(HeaderValue).hashCode = function () {
|
|
1122
|
-
var result = getStringHashCode(this.
|
|
1123
|
-
result = imul(result, 31) + hashCode(this.
|
|
1130
|
+
var result = getStringHashCode(this.u45_1);
|
|
1131
|
+
result = imul(result, 31) + hashCode(this.v45_1) | 0;
|
|
1124
1132
|
return result;
|
|
1125
1133
|
};
|
|
1126
1134
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1128,15 +1136,64 @@ protoOf(HeaderValue).equals = function (other) {
|
|
|
1128
1136
|
return true;
|
|
1129
1137
|
if (!(other instanceof HeaderValue))
|
|
1130
1138
|
return false;
|
|
1131
|
-
if (!(this.
|
|
1139
|
+
if (!(this.u45_1 === other.u45_1))
|
|
1132
1140
|
return false;
|
|
1133
|
-
if (!equals_0(this.
|
|
1141
|
+
if (!equals_0(this.v45_1, other.v45_1))
|
|
1134
1142
|
return false;
|
|
1135
1143
|
return true;
|
|
1136
1144
|
};
|
|
1137
1145
|
function parseHeaderValue(text) {
|
|
1138
1146
|
return parseHeaderValue_0(text, false);
|
|
1139
1147
|
}
|
|
1148
|
+
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1149
|
+
HeaderValueParam.call($this, name, value, false);
|
|
1150
|
+
return $this;
|
|
1151
|
+
}
|
|
1152
|
+
function HeaderValueParam_init_$Create$(name, value) {
|
|
1153
|
+
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1154
|
+
}
|
|
1155
|
+
function HeaderValueParam(name, value, escapeValue) {
|
|
1156
|
+
this.q45_1 = name;
|
|
1157
|
+
this.r45_1 = value;
|
|
1158
|
+
this.s45_1 = escapeValue;
|
|
1159
|
+
}
|
|
1160
|
+
protoOf(HeaderValueParam).equals = function (other) {
|
|
1161
|
+
var tmp;
|
|
1162
|
+
var tmp_0;
|
|
1163
|
+
if (other instanceof HeaderValueParam) {
|
|
1164
|
+
tmp_0 = equals(other.q45_1, this.q45_1, true);
|
|
1165
|
+
} else {
|
|
1166
|
+
tmp_0 = false;
|
|
1167
|
+
}
|
|
1168
|
+
if (tmp_0) {
|
|
1169
|
+
tmp = equals(other.r45_1, this.r45_1, true);
|
|
1170
|
+
} else {
|
|
1171
|
+
tmp = false;
|
|
1172
|
+
}
|
|
1173
|
+
return tmp;
|
|
1174
|
+
};
|
|
1175
|
+
protoOf(HeaderValueParam).hashCode = function () {
|
|
1176
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1177
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1178
|
+
var tmp$ret$0 = this.q45_1.toLowerCase();
|
|
1179
|
+
var result = getStringHashCode(tmp$ret$0);
|
|
1180
|
+
var tmp = result;
|
|
1181
|
+
var tmp_0 = imul(31, result);
|
|
1182
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
1183
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1184
|
+
var tmp$ret$2 = this.r45_1.toLowerCase();
|
|
1185
|
+
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$2) | 0) | 0;
|
|
1186
|
+
return result;
|
|
1187
|
+
};
|
|
1188
|
+
protoOf(HeaderValueParam).pg = function () {
|
|
1189
|
+
return this.q45_1;
|
|
1190
|
+
};
|
|
1191
|
+
protoOf(HeaderValueParam).qg = function () {
|
|
1192
|
+
return this.r45_1;
|
|
1193
|
+
};
|
|
1194
|
+
protoOf(HeaderValueParam).toString = function () {
|
|
1195
|
+
return 'HeaderValueParam(name=' + this.q45_1 + ', value=' + this.r45_1 + ', escapeValue=' + this.s45_1 + ')';
|
|
1196
|
+
};
|
|
1140
1197
|
function parseHeaderValue_0(text, parametersOnly) {
|
|
1141
1198
|
if (text == null) {
|
|
1142
1199
|
return emptyList();
|
|
@@ -1181,12 +1238,12 @@ function parseHeaderValueItem(text, start, items, parametersOnly) {
|
|
|
1181
1238
|
return position;
|
|
1182
1239
|
}
|
|
1183
1240
|
function valueOrEmpty(_this__u8e3s4) {
|
|
1184
|
-
return _this__u8e3s4.
|
|
1241
|
+
return _this__u8e3s4.fo() ? _this__u8e3s4.p1() : emptyList();
|
|
1185
1242
|
}
|
|
1186
1243
|
function subtrim(_this__u8e3s4, start, end) {
|
|
1187
1244
|
// Inline function 'kotlin.text.trim' call
|
|
1188
1245
|
var this_0 = substring(_this__u8e3s4, start, end);
|
|
1189
|
-
return
|
|
1246
|
+
return toString_0(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
1190
1247
|
}
|
|
1191
1248
|
function parseHeaderValueParameter(text, start, parameters) {
|
|
1192
1249
|
var position = start;
|
|
@@ -1194,8 +1251,8 @@ function parseHeaderValueParameter(text, start, parameters) {
|
|
|
1194
1251
|
var tmp0_subject = charCodeAt(text, position);
|
|
1195
1252
|
if (tmp0_subject === _Char___init__impl__6a9atx(61)) {
|
|
1196
1253
|
var _destruct__k2r9zo = parseHeaderValueParameterValue(text, position + 1 | 0);
|
|
1197
|
-
var paramEnd = _destruct__k2r9zo.
|
|
1198
|
-
var paramValue = _destruct__k2r9zo.
|
|
1254
|
+
var paramEnd = _destruct__k2r9zo.pg();
|
|
1255
|
+
var paramValue = _destruct__k2r9zo.qg();
|
|
1199
1256
|
parseHeaderValueParameter$addParam(parameters, text, start, position, paramValue);
|
|
1200
1257
|
return paramEnd;
|
|
1201
1258
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(59) || tmp0_subject === _Char___init__impl__6a9atx(44)) {
|
|
@@ -1228,12 +1285,12 @@ function parseHeaderValueParameterValue(value, start) {
|
|
|
1228
1285
|
}
|
|
1229
1286
|
function parseHeaderValueParameterValueQuoted(value, start) {
|
|
1230
1287
|
var position = start;
|
|
1231
|
-
var builder = StringBuilder_init_$Create$();
|
|
1288
|
+
var builder = StringBuilder_init_$Create$_0();
|
|
1232
1289
|
loop: while (position <= get_lastIndex_0(value)) {
|
|
1233
1290
|
var currentChar = charCodeAt(value, position);
|
|
1234
1291
|
if (currentChar === _Char___init__impl__6a9atx(34) && nextIsDelimiterOrEnd(value, position)) {
|
|
1235
1292
|
return to(position + 1 | 0, builder.toString());
|
|
1236
|
-
} else if (currentChar === _Char___init__impl__6a9atx(92) && position <
|
|
1293
|
+
} else if (currentChar === _Char___init__impl__6a9atx(92) && position < get_lastIndex_0(value)) {
|
|
1237
1294
|
builder.s(charCodeAt(value, position + 1 | 0));
|
|
1238
1295
|
position = position + 2 | 0;
|
|
1239
1296
|
continue loop;
|
|
@@ -1241,12 +1298,7 @@ function parseHeaderValueParameterValueQuoted(value, start) {
|
|
|
1241
1298
|
builder.s(currentChar);
|
|
1242
1299
|
position = position + 1 | 0;
|
|
1243
1300
|
}
|
|
1244
|
-
|
|
1245
|
-
var tmp0 = _Char___init__impl__6a9atx(34);
|
|
1246
|
-
// Inline function 'kotlin.text.plus' call
|
|
1247
|
-
var other = builder.toString();
|
|
1248
|
-
var tmp$ret$0 = toString_0(tmp0) + other;
|
|
1249
|
-
return to(tmp, tmp$ret$0);
|
|
1301
|
+
return to(position, substring(value, start - 1 | 0, position));
|
|
1250
1302
|
}
|
|
1251
1303
|
function nextIsDelimiterOrEnd(_this__u8e3s4, start) {
|
|
1252
1304
|
var position = start + 1 | 0;
|
|
@@ -1257,11 +1309,11 @@ function nextIsDelimiterOrEnd(_this__u8e3s4, start) {
|
|
|
1257
1309
|
}
|
|
1258
1310
|
function parseHeaderValue$lambda() {
|
|
1259
1311
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1260
|
-
return ArrayList_init_$Create$
|
|
1312
|
+
return ArrayList_init_$Create$();
|
|
1261
1313
|
}
|
|
1262
1314
|
function parseHeaderValueItem$lambda() {
|
|
1263
1315
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
1264
|
-
return ArrayList_init_$Create$
|
|
1316
|
+
return ArrayList_init_$Create$();
|
|
1265
1317
|
}
|
|
1266
1318
|
function parseHeaderValueParameter$addParam($parameters, text, start, end, value) {
|
|
1267
1319
|
var name = subtrim(text, start, end);
|
|
@@ -1271,117 +1323,122 @@ function parseHeaderValueParameter$addParam($parameters, text, start, end, value
|
|
|
1271
1323
|
}
|
|
1272
1324
|
$parameters.p1().b1(HeaderValueParam_init_$Create$(name, value));
|
|
1273
1325
|
}
|
|
1326
|
+
function get_ILLEGAL_HEADER_NAME_CHARS() {
|
|
1327
|
+
_init_properties_HttpHeaders_kt__8vtb1o();
|
|
1328
|
+
return ILLEGAL_HEADER_NAME_CHARS;
|
|
1329
|
+
}
|
|
1330
|
+
var ILLEGAL_HEADER_NAME_CHARS;
|
|
1274
1331
|
function HttpHeaders() {
|
|
1275
1332
|
HttpHeaders_instance = this;
|
|
1276
|
-
this.
|
|
1277
|
-
this.
|
|
1278
|
-
this.
|
|
1279
|
-
this.
|
|
1280
|
-
this.
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1283
|
-
this.
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1286
|
-
this.
|
|
1287
|
-
this.
|
|
1288
|
-
this.
|
|
1289
|
-
this.
|
|
1290
|
-
this.
|
|
1291
|
-
this.
|
|
1292
|
-
this.
|
|
1293
|
-
this.
|
|
1294
|
-
this.
|
|
1295
|
-
this.
|
|
1296
|
-
this.
|
|
1297
|
-
this.
|
|
1298
|
-
this.
|
|
1299
|
-
this.
|
|
1300
|
-
this.
|
|
1301
|
-
this.
|
|
1302
|
-
this.
|
|
1303
|
-
this.
|
|
1304
|
-
this.
|
|
1305
|
-
this.
|
|
1306
|
-
this.
|
|
1307
|
-
this.
|
|
1308
|
-
this.
|
|
1309
|
-
this.
|
|
1310
|
-
this.
|
|
1311
|
-
this.
|
|
1312
|
-
this.
|
|
1313
|
-
this.
|
|
1314
|
-
this.
|
|
1315
|
-
this.
|
|
1316
|
-
this.
|
|
1317
|
-
this.
|
|
1318
|
-
this.
|
|
1319
|
-
this.
|
|
1320
|
-
this.
|
|
1321
|
-
this.
|
|
1322
|
-
this.
|
|
1323
|
-
this.
|
|
1324
|
-
this.
|
|
1325
|
-
this.
|
|
1326
|
-
this.
|
|
1327
|
-
this.
|
|
1328
|
-
this.
|
|
1329
|
-
this.
|
|
1330
|
-
this.
|
|
1331
|
-
this.
|
|
1332
|
-
this.
|
|
1333
|
-
this.
|
|
1334
|
-
this.
|
|
1335
|
-
this.
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1341
|
-
this.
|
|
1342
|
-
this.
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1353
|
-
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.
|
|
1333
|
+
this.z47_1 = 'Accept';
|
|
1334
|
+
this.a48_1 = 'Accept-Charset';
|
|
1335
|
+
this.b48_1 = 'Accept-Encoding';
|
|
1336
|
+
this.c48_1 = 'Accept-Language';
|
|
1337
|
+
this.d48_1 = 'Accept-Ranges';
|
|
1338
|
+
this.e48_1 = 'Age';
|
|
1339
|
+
this.f48_1 = 'Allow';
|
|
1340
|
+
this.g48_1 = 'ALPN';
|
|
1341
|
+
this.h48_1 = 'Authentication-Info';
|
|
1342
|
+
this.i48_1 = 'Authorization';
|
|
1343
|
+
this.j48_1 = 'Cache-Control';
|
|
1344
|
+
this.k48_1 = 'Connection';
|
|
1345
|
+
this.l48_1 = 'Content-Disposition';
|
|
1346
|
+
this.m48_1 = 'Content-Encoding';
|
|
1347
|
+
this.n48_1 = 'Content-Language';
|
|
1348
|
+
this.o48_1 = 'Content-Length';
|
|
1349
|
+
this.p48_1 = 'Content-Location';
|
|
1350
|
+
this.q48_1 = 'Content-Range';
|
|
1351
|
+
this.r48_1 = 'Content-Type';
|
|
1352
|
+
this.s48_1 = 'Cookie';
|
|
1353
|
+
this.t48_1 = 'DASL';
|
|
1354
|
+
this.u48_1 = 'Date';
|
|
1355
|
+
this.v48_1 = 'DAV';
|
|
1356
|
+
this.w48_1 = 'Depth';
|
|
1357
|
+
this.x48_1 = 'Destination';
|
|
1358
|
+
this.y48_1 = 'ETag';
|
|
1359
|
+
this.z48_1 = 'Expect';
|
|
1360
|
+
this.a49_1 = 'Expires';
|
|
1361
|
+
this.b49_1 = 'From';
|
|
1362
|
+
this.c49_1 = 'Forwarded';
|
|
1363
|
+
this.d49_1 = 'Host';
|
|
1364
|
+
this.e49_1 = 'HTTP2-Settings';
|
|
1365
|
+
this.f49_1 = 'If';
|
|
1366
|
+
this.g49_1 = 'If-Match';
|
|
1367
|
+
this.h49_1 = 'If-Modified-Since';
|
|
1368
|
+
this.i49_1 = 'If-None-Match';
|
|
1369
|
+
this.j49_1 = 'If-Range';
|
|
1370
|
+
this.k49_1 = 'If-Schedule-Tag-Match';
|
|
1371
|
+
this.l49_1 = 'If-Unmodified-Since';
|
|
1372
|
+
this.m49_1 = 'Last-Modified';
|
|
1373
|
+
this.n49_1 = 'Location';
|
|
1374
|
+
this.o49_1 = 'Lock-Token';
|
|
1375
|
+
this.p49_1 = 'Link';
|
|
1376
|
+
this.q49_1 = 'Max-Forwards';
|
|
1377
|
+
this.r49_1 = 'MIME-Version';
|
|
1378
|
+
this.s49_1 = 'Ordering-Type';
|
|
1379
|
+
this.t49_1 = 'Origin';
|
|
1380
|
+
this.u49_1 = 'Overwrite';
|
|
1381
|
+
this.v49_1 = 'Position';
|
|
1382
|
+
this.w49_1 = 'Pragma';
|
|
1383
|
+
this.x49_1 = 'Prefer';
|
|
1384
|
+
this.y49_1 = 'Preference-Applied';
|
|
1385
|
+
this.z49_1 = 'Proxy-Authenticate';
|
|
1386
|
+
this.a4a_1 = 'Proxy-Authentication-Info';
|
|
1387
|
+
this.b4a_1 = 'Proxy-Authorization';
|
|
1388
|
+
this.c4a_1 = 'Public-Key-Pins';
|
|
1389
|
+
this.d4a_1 = 'Public-Key-Pins-Report-Only';
|
|
1390
|
+
this.e4a_1 = 'Range';
|
|
1391
|
+
this.f4a_1 = 'Referer';
|
|
1392
|
+
this.g4a_1 = 'Retry-After';
|
|
1393
|
+
this.h4a_1 = 'Schedule-Reply';
|
|
1394
|
+
this.i4a_1 = 'Schedule-Tag';
|
|
1395
|
+
this.j4a_1 = 'Sec-WebSocket-Accept';
|
|
1396
|
+
this.k4a_1 = 'Sec-WebSocket-Extensions';
|
|
1397
|
+
this.l4a_1 = 'Sec-WebSocket-Key';
|
|
1398
|
+
this.m4a_1 = 'Sec-WebSocket-Protocol';
|
|
1399
|
+
this.n4a_1 = 'Sec-WebSocket-Version';
|
|
1400
|
+
this.o4a_1 = 'Server';
|
|
1401
|
+
this.p4a_1 = 'Set-Cookie';
|
|
1402
|
+
this.q4a_1 = 'SLUG';
|
|
1403
|
+
this.r4a_1 = 'Strict-Transport-Security';
|
|
1404
|
+
this.s4a_1 = 'TE';
|
|
1405
|
+
this.t4a_1 = 'Timeout';
|
|
1406
|
+
this.u4a_1 = 'Trailer';
|
|
1407
|
+
this.v4a_1 = 'Transfer-Encoding';
|
|
1408
|
+
this.w4a_1 = 'Upgrade';
|
|
1409
|
+
this.x4a_1 = 'User-Agent';
|
|
1410
|
+
this.y4a_1 = 'Vary';
|
|
1411
|
+
this.z4a_1 = 'Via';
|
|
1412
|
+
this.a4b_1 = 'Warning';
|
|
1413
|
+
this.b4b_1 = 'WWW-Authenticate';
|
|
1414
|
+
this.c4b_1 = 'Access-Control-Allow-Origin';
|
|
1415
|
+
this.d4b_1 = 'Access-Control-Allow-Methods';
|
|
1416
|
+
this.e4b_1 = 'Access-Control-Allow-Credentials';
|
|
1417
|
+
this.f4b_1 = 'Access-Control-Allow-Headers';
|
|
1418
|
+
this.g4b_1 = 'Access-Control-Request-Method';
|
|
1419
|
+
this.h4b_1 = 'Access-Control-Request-Headers';
|
|
1420
|
+
this.i4b_1 = 'Access-Control-Expose-Headers';
|
|
1421
|
+
this.j4b_1 = 'Access-Control-Max-Age';
|
|
1422
|
+
this.k4b_1 = 'X-Http-Method-Override';
|
|
1423
|
+
this.l4b_1 = 'X-Forwarded-Host';
|
|
1424
|
+
this.m4b_1 = 'X-Forwarded-Server';
|
|
1425
|
+
this.n4b_1 = 'X-Forwarded-Proto';
|
|
1426
|
+
this.o4b_1 = 'X-Forwarded-For';
|
|
1427
|
+
this.p4b_1 = 'X-Forwarded-Port';
|
|
1428
|
+
this.q4b_1 = 'X-Request-ID';
|
|
1429
|
+
this.r4b_1 = 'X-Correlation-ID';
|
|
1430
|
+
this.s4b_1 = 'X-Total-Count';
|
|
1431
|
+
this.t4b_1 = 'Last-Event-ID';
|
|
1432
|
+
this.u4b_1 = 'TDM-Reservation';
|
|
1433
|
+
this.v4b_1 = 'TDM-Policy';
|
|
1377
1434
|
var tmp = this;
|
|
1378
1435
|
// Inline function 'kotlin.arrayOf' call
|
|
1379
1436
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1380
1437
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1381
|
-
tmp.
|
|
1382
|
-
this.
|
|
1438
|
+
tmp.w4b_1 = ['Transfer-Encoding', 'Upgrade'];
|
|
1439
|
+
this.x4b_1 = asList(this.w4b_1);
|
|
1383
1440
|
}
|
|
1384
|
-
protoOf(HttpHeaders).
|
|
1441
|
+
protoOf(HttpHeaders).y4b = function (name) {
|
|
1385
1442
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1386
1443
|
var index = 0;
|
|
1387
1444
|
var inductionVariable = 0;
|
|
@@ -1390,12 +1447,12 @@ protoOf(HttpHeaders).d49 = function (name) {
|
|
|
1390
1447
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1391
1448
|
var _unary__edvuaz = index;
|
|
1392
1449
|
index = _unary__edvuaz + 1 | 0;
|
|
1393
|
-
if (
|
|
1450
|
+
if (get_ILLEGAL_HEADER_NAME_CHARS().gk(item)) {
|
|
1394
1451
|
throw new IllegalHeaderNameException(name, _unary__edvuaz);
|
|
1395
1452
|
}
|
|
1396
1453
|
}
|
|
1397
1454
|
};
|
|
1398
|
-
protoOf(HttpHeaders).
|
|
1455
|
+
protoOf(HttpHeaders).z4b = function (value) {
|
|
1399
1456
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1400
1457
|
var index = 0;
|
|
1401
1458
|
var inductionVariable = 0;
|
|
@@ -1419,53 +1476,57 @@ function UnsafeHeaderException(header) {
|
|
|
1419
1476
|
IllegalArgumentException_init_$Init$('Header(s) ' + header + ' are controlled by the engine and ' + 'cannot be set explicitly', this);
|
|
1420
1477
|
captureStack(this, UnsafeHeaderException);
|
|
1421
1478
|
}
|
|
1422
|
-
function isDelimiter(ch) {
|
|
1423
|
-
return contains('"(),/:;<=>?@[\\]{}', ch);
|
|
1424
|
-
}
|
|
1425
1479
|
function IllegalHeaderNameException(headerName, position) {
|
|
1426
|
-
var tmp = "Header name '" + headerName + "' contains illegal character '" +
|
|
1480
|
+
var tmp = "Header name '" + headerName + "' contains illegal character '" + toString(charCodeAt(headerName, position)) + "'";
|
|
1427
1481
|
// Inline function 'kotlin.code' call
|
|
1428
1482
|
var this_0 = charCodeAt(headerName, position);
|
|
1429
1483
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1430
1484
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1431
1485
|
captureStack(this, IllegalHeaderNameException);
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1486
|
+
this.b4c_1 = headerName;
|
|
1487
|
+
this.c4c_1 = position;
|
|
1434
1488
|
}
|
|
1435
1489
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1436
|
-
var tmp = "Header value '" + headerValue + "' contains illegal character '" +
|
|
1490
|
+
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString(charCodeAt(headerValue, position)) + "'";
|
|
1437
1491
|
// Inline function 'kotlin.code' call
|
|
1438
1492
|
var this_0 = charCodeAt(headerValue, position);
|
|
1439
1493
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1440
1494
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1441
1495
|
captureStack(this, IllegalHeaderValueException);
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1496
|
+
this.d4c_1 = headerValue;
|
|
1497
|
+
this.e4c_1 = position;
|
|
1498
|
+
}
|
|
1499
|
+
var properties_initialized_HttpHeaders_kt_3d6wem;
|
|
1500
|
+
function _init_properties_HttpHeaders_kt__8vtb1o() {
|
|
1501
|
+
if (!properties_initialized_HttpHeaders_kt_3d6wem) {
|
|
1502
|
+
properties_initialized_HttpHeaders_kt_3d6wem = true;
|
|
1503
|
+
ILLEGAL_HEADER_NAME_CHARS = Companion_instance.k45(Char__rangeTo_impl_tkncvp(_Char___init__impl__6a9atx(0), _Char___init__impl__6a9atx(32))).n45(Companion_instance.l45('"(),/:;<=>?@[\\]{}'));
|
|
1504
|
+
}
|
|
1444
1505
|
}
|
|
1445
1506
|
function contentType(_this__u8e3s4) {
|
|
1446
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1507
|
+
var tmp0_safe_receiver = _this__u8e3s4.f4c().td('Content-Type');
|
|
1447
1508
|
var tmp;
|
|
1448
1509
|
if (tmp0_safe_receiver == null) {
|
|
1449
1510
|
tmp = null;
|
|
1450
1511
|
} else {
|
|
1451
1512
|
// Inline function 'kotlin.let' call
|
|
1452
|
-
tmp =
|
|
1513
|
+
tmp = Companion_getInstance_0().lo(tmp0_safe_receiver);
|
|
1453
1514
|
}
|
|
1454
1515
|
return tmp;
|
|
1455
1516
|
}
|
|
1456
1517
|
function contentType_0(_this__u8e3s4) {
|
|
1457
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1518
|
+
var tmp0_safe_receiver = _this__u8e3s4.f4c().td('Content-Type');
|
|
1458
1519
|
var tmp;
|
|
1459
1520
|
if (tmp0_safe_receiver == null) {
|
|
1460
1521
|
tmp = null;
|
|
1461
1522
|
} else {
|
|
1462
1523
|
// Inline function 'kotlin.let' call
|
|
1463
|
-
tmp =
|
|
1524
|
+
tmp = Companion_getInstance_0().lo(tmp0_safe_receiver);
|
|
1464
1525
|
}
|
|
1465
1526
|
return tmp;
|
|
1466
1527
|
}
|
|
1467
1528
|
function contentLength(_this__u8e3s4) {
|
|
1468
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1529
|
+
var tmp0_safe_receiver = _this__u8e3s4.f4c().td('Content-Length');
|
|
1469
1530
|
return tmp0_safe_receiver == null ? null : toLongOrNull(tmp0_safe_receiver);
|
|
1470
1531
|
}
|
|
1471
1532
|
function charset_0(_this__u8e3s4) {
|
|
@@ -1473,48 +1534,48 @@ function charset_0(_this__u8e3s4) {
|
|
|
1473
1534
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1474
1535
|
}
|
|
1475
1536
|
function contentType_1(_this__u8e3s4, type) {
|
|
1476
|
-
return _this__u8e3s4.
|
|
1537
|
+
return _this__u8e3s4.f4c().v3z('Content-Type', type.toString());
|
|
1477
1538
|
}
|
|
1478
1539
|
function get_REQUESTS_WITHOUT_BODY() {
|
|
1479
1540
|
_init_properties_HttpMethod_kt__cbus5z();
|
|
1480
1541
|
return REQUESTS_WITHOUT_BODY;
|
|
1481
1542
|
}
|
|
1482
1543
|
var REQUESTS_WITHOUT_BODY;
|
|
1483
|
-
function
|
|
1484
|
-
|
|
1485
|
-
this.
|
|
1486
|
-
this.
|
|
1487
|
-
this.
|
|
1488
|
-
this.
|
|
1489
|
-
this.
|
|
1490
|
-
this.
|
|
1491
|
-
this.
|
|
1492
|
-
this.
|
|
1493
|
-
this.
|
|
1494
|
-
this.
|
|
1544
|
+
function Companion_3() {
|
|
1545
|
+
Companion_instance_3 = this;
|
|
1546
|
+
this.g4c_1 = new HttpMethod('GET');
|
|
1547
|
+
this.h4c_1 = new HttpMethod('POST');
|
|
1548
|
+
this.i4c_1 = new HttpMethod('PUT');
|
|
1549
|
+
this.j4c_1 = new HttpMethod('PATCH');
|
|
1550
|
+
this.k4c_1 = new HttpMethod('DELETE');
|
|
1551
|
+
this.l4c_1 = new HttpMethod('HEAD');
|
|
1552
|
+
this.m4c_1 = new HttpMethod('OPTIONS');
|
|
1553
|
+
this.n4c_1 = new HttpMethod('TRACE');
|
|
1554
|
+
this.o4c_1 = new HttpMethod('QUERY');
|
|
1555
|
+
this.p4c_1 = listOf([this.g4c_1, this.h4c_1, this.i4c_1, this.j4c_1, this.k4c_1, this.l4c_1, this.m4c_1]);
|
|
1495
1556
|
}
|
|
1496
|
-
var
|
|
1497
|
-
function
|
|
1498
|
-
if (
|
|
1499
|
-
new
|
|
1500
|
-
return
|
|
1557
|
+
var Companion_instance_3;
|
|
1558
|
+
function Companion_getInstance_3() {
|
|
1559
|
+
if (Companion_instance_3 == null)
|
|
1560
|
+
new Companion_3();
|
|
1561
|
+
return Companion_instance_3;
|
|
1501
1562
|
}
|
|
1502
1563
|
function HttpMethod(value) {
|
|
1503
|
-
|
|
1504
|
-
this.
|
|
1564
|
+
Companion_getInstance_3();
|
|
1565
|
+
this.q4c_1 = value;
|
|
1505
1566
|
}
|
|
1506
1567
|
protoOf(HttpMethod).toString = function () {
|
|
1507
|
-
return this.
|
|
1568
|
+
return this.q4c_1;
|
|
1508
1569
|
};
|
|
1509
1570
|
protoOf(HttpMethod).hashCode = function () {
|
|
1510
|
-
return getStringHashCode(this.
|
|
1571
|
+
return getStringHashCode(this.q4c_1);
|
|
1511
1572
|
};
|
|
1512
1573
|
protoOf(HttpMethod).equals = function (other) {
|
|
1513
1574
|
if (this === other)
|
|
1514
1575
|
return true;
|
|
1515
1576
|
if (!(other instanceof HttpMethod))
|
|
1516
1577
|
return false;
|
|
1517
|
-
if (!(this.
|
|
1578
|
+
if (!(this.q4c_1 === other.q4c_1))
|
|
1518
1579
|
return false;
|
|
1519
1580
|
return true;
|
|
1520
1581
|
};
|
|
@@ -1526,37 +1587,37 @@ var properties_initialized_HttpMethod_kt_ogor3f;
|
|
|
1526
1587
|
function _init_properties_HttpMethod_kt__cbus5z() {
|
|
1527
1588
|
if (!properties_initialized_HttpMethod_kt_ogor3f) {
|
|
1528
1589
|
properties_initialized_HttpMethod_kt_ogor3f = true;
|
|
1529
|
-
REQUESTS_WITHOUT_BODY = setOf([
|
|
1590
|
+
REQUESTS_WITHOUT_BODY = setOf([Companion_getInstance_3().g4c_1, Companion_getInstance_3().l4c_1, Companion_getInstance_3().m4c_1, Companion_getInstance_3().n4c_1]);
|
|
1530
1591
|
}
|
|
1531
1592
|
}
|
|
1532
|
-
function
|
|
1533
|
-
|
|
1534
|
-
this.
|
|
1535
|
-
this.
|
|
1536
|
-
this.
|
|
1537
|
-
this.
|
|
1538
|
-
this.
|
|
1539
|
-
this.
|
|
1593
|
+
function Companion_4() {
|
|
1594
|
+
Companion_instance_4 = this;
|
|
1595
|
+
this.r4c_1 = new HttpProtocolVersion('HTTP', 3, 0);
|
|
1596
|
+
this.s4c_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1597
|
+
this.t4c_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1598
|
+
this.u4c_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1599
|
+
this.v4c_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1600
|
+
this.w4c_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1540
1601
|
}
|
|
1541
|
-
var
|
|
1542
|
-
function
|
|
1543
|
-
if (
|
|
1544
|
-
new
|
|
1545
|
-
return
|
|
1602
|
+
var Companion_instance_4;
|
|
1603
|
+
function Companion_getInstance_4() {
|
|
1604
|
+
if (Companion_instance_4 == null)
|
|
1605
|
+
new Companion_4();
|
|
1606
|
+
return Companion_instance_4;
|
|
1546
1607
|
}
|
|
1547
1608
|
function HttpProtocolVersion(name, major, minor) {
|
|
1548
|
-
|
|
1549
|
-
this.
|
|
1550
|
-
this.
|
|
1551
|
-
this.
|
|
1609
|
+
Companion_getInstance_4();
|
|
1610
|
+
this.x4c_1 = name;
|
|
1611
|
+
this.y4c_1 = major;
|
|
1612
|
+
this.z4c_1 = minor;
|
|
1552
1613
|
}
|
|
1553
1614
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1554
|
-
return this.
|
|
1615
|
+
return this.x4c_1 + '/' + this.y4c_1 + '.' + this.z4c_1;
|
|
1555
1616
|
};
|
|
1556
1617
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1557
|
-
var result = getStringHashCode(this.
|
|
1558
|
-
result = imul(result, 31) + this.
|
|
1559
|
-
result = imul(result, 31) + this.
|
|
1618
|
+
var result = getStringHashCode(this.x4c_1);
|
|
1619
|
+
result = imul(result, 31) + this.y4c_1 | 0;
|
|
1620
|
+
result = imul(result, 31) + this.z4c_1 | 0;
|
|
1560
1621
|
return result;
|
|
1561
1622
|
};
|
|
1562
1623
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1564,131 +1625,132 @@ protoOf(HttpProtocolVersion).equals = function (other) {
|
|
|
1564
1625
|
return true;
|
|
1565
1626
|
if (!(other instanceof HttpProtocolVersion))
|
|
1566
1627
|
return false;
|
|
1567
|
-
if (!(this.
|
|
1628
|
+
if (!(this.x4c_1 === other.x4c_1))
|
|
1568
1629
|
return false;
|
|
1569
|
-
if (!(this.
|
|
1630
|
+
if (!(this.y4c_1 === other.y4c_1))
|
|
1570
1631
|
return false;
|
|
1571
|
-
if (!(this.
|
|
1632
|
+
if (!(this.z4c_1 === other.z4c_1))
|
|
1572
1633
|
return false;
|
|
1573
1634
|
return true;
|
|
1574
1635
|
};
|
|
1575
|
-
function
|
|
1576
|
-
|
|
1577
|
-
this.
|
|
1578
|
-
this.
|
|
1579
|
-
this.
|
|
1580
|
-
this.
|
|
1581
|
-
this.
|
|
1582
|
-
this.
|
|
1583
|
-
this.
|
|
1584
|
-
this.
|
|
1585
|
-
this.
|
|
1586
|
-
this.
|
|
1587
|
-
this.
|
|
1588
|
-
this.
|
|
1589
|
-
this.
|
|
1590
|
-
this.
|
|
1591
|
-
this.
|
|
1592
|
-
this.
|
|
1593
|
-
this.
|
|
1594
|
-
this.
|
|
1595
|
-
this.
|
|
1596
|
-
this.
|
|
1597
|
-
this.
|
|
1598
|
-
this.
|
|
1599
|
-
this.
|
|
1600
|
-
this.
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1606
|
-
this.
|
|
1607
|
-
this.
|
|
1608
|
-
this.
|
|
1609
|
-
this.
|
|
1610
|
-
this.
|
|
1611
|
-
this.
|
|
1612
|
-
this.
|
|
1613
|
-
this.
|
|
1614
|
-
this.
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1618
|
-
this.
|
|
1619
|
-
this.
|
|
1620
|
-
this.
|
|
1621
|
-
this.
|
|
1622
|
-
this.
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1629
|
-
this.
|
|
1630
|
-
this.
|
|
1636
|
+
function Companion_5() {
|
|
1637
|
+
Companion_instance_5 = this;
|
|
1638
|
+
this.a4d_1 = new HttpStatusCode(100, 'Continue');
|
|
1639
|
+
this.b4d_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1640
|
+
this.c4d_1 = new HttpStatusCode(102, 'Processing');
|
|
1641
|
+
this.d4d_1 = new HttpStatusCode(200, 'OK');
|
|
1642
|
+
this.e4d_1 = new HttpStatusCode(201, 'Created');
|
|
1643
|
+
this.f4d_1 = new HttpStatusCode(202, 'Accepted');
|
|
1644
|
+
this.g4d_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1645
|
+
this.h4d_1 = new HttpStatusCode(204, 'No Content');
|
|
1646
|
+
this.i4d_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1647
|
+
this.j4d_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1648
|
+
this.k4d_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1649
|
+
this.l4d_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1650
|
+
this.m4d_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1651
|
+
this.n4d_1 = new HttpStatusCode(302, 'Found');
|
|
1652
|
+
this.o4d_1 = new HttpStatusCode(303, 'See Other');
|
|
1653
|
+
this.p4d_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1654
|
+
this.q4d_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1655
|
+
this.r4d_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1656
|
+
this.s4d_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1657
|
+
this.t4d_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1658
|
+
this.u4d_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1659
|
+
this.v4d_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1660
|
+
this.w4d_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1661
|
+
this.x4d_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1662
|
+
this.y4d_1 = new HttpStatusCode(404, 'Not Found');
|
|
1663
|
+
this.z4d_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1664
|
+
this.a4e_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1665
|
+
this.b4e_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1666
|
+
this.c4e_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1667
|
+
this.d4e_1 = new HttpStatusCode(409, 'Conflict');
|
|
1668
|
+
this.e4e_1 = new HttpStatusCode(410, 'Gone');
|
|
1669
|
+
this.f4e_1 = new HttpStatusCode(411, 'Length Required');
|
|
1670
|
+
this.g4e_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1671
|
+
this.h4e_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1672
|
+
this.i4e_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1673
|
+
this.j4e_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1674
|
+
this.k4e_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1675
|
+
this.l4e_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1676
|
+
this.m4e_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1677
|
+
this.n4e_1 = new HttpStatusCode(423, 'Locked');
|
|
1678
|
+
this.o4e_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1679
|
+
this.p4e_1 = new HttpStatusCode(425, 'Too Early');
|
|
1680
|
+
this.q4e_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1681
|
+
this.r4e_1 = new HttpStatusCode(428, 'Precondition Required');
|
|
1682
|
+
this.s4e_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1683
|
+
this.t4e_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1684
|
+
this.u4e_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1685
|
+
this.v4e_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1686
|
+
this.w4e_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1687
|
+
this.x4e_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1688
|
+
this.y4e_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1689
|
+
this.z4e_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1690
|
+
this.a4f_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1691
|
+
this.b4f_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1692
|
+
this.c4f_1 = allStatusCodes();
|
|
1631
1693
|
var tmp = this;
|
|
1632
1694
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1633
|
-
var this_0 = this.
|
|
1695
|
+
var this_0 = this.c4f_1;
|
|
1634
1696
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1635
1697
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1636
1698
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1637
1699
|
var _iterator__ex2g4s = this_0.t();
|
|
1638
1700
|
while (_iterator__ex2g4s.u()) {
|
|
1639
1701
|
var element = _iterator__ex2g4s.v();
|
|
1640
|
-
var tmp$ret$2 = element.
|
|
1641
|
-
destination.
|
|
1702
|
+
var tmp$ret$2 = element.e4f_1;
|
|
1703
|
+
destination.c3(tmp$ret$2, element);
|
|
1642
1704
|
}
|
|
1643
|
-
tmp.
|
|
1705
|
+
tmp.d4f_1 = destination;
|
|
1644
1706
|
}
|
|
1645
|
-
var
|
|
1646
|
-
function
|
|
1647
|
-
if (
|
|
1648
|
-
new
|
|
1649
|
-
return
|
|
1707
|
+
var Companion_instance_5;
|
|
1708
|
+
function Companion_getInstance_5() {
|
|
1709
|
+
if (Companion_instance_5 == null)
|
|
1710
|
+
new Companion_5();
|
|
1711
|
+
return Companion_instance_5;
|
|
1650
1712
|
}
|
|
1651
1713
|
function HttpStatusCode(value, description) {
|
|
1652
|
-
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1714
|
+
Companion_getInstance_5();
|
|
1715
|
+
this.e4f_1 = value;
|
|
1716
|
+
this.f4f_1 = description;
|
|
1655
1717
|
}
|
|
1656
1718
|
protoOf(HttpStatusCode).toString = function () {
|
|
1657
|
-
return '' + this.
|
|
1719
|
+
return '' + this.e4f_1 + ' ' + this.f4f_1;
|
|
1658
1720
|
};
|
|
1659
1721
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1660
1722
|
var tmp;
|
|
1661
1723
|
if (other instanceof HttpStatusCode) {
|
|
1662
|
-
tmp = other.
|
|
1724
|
+
tmp = other.e4f_1 === this.e4f_1;
|
|
1663
1725
|
} else {
|
|
1664
1726
|
tmp = false;
|
|
1665
1727
|
}
|
|
1666
1728
|
return tmp;
|
|
1667
1729
|
};
|
|
1668
1730
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1669
|
-
return this.
|
|
1731
|
+
return this.e4f_1;
|
|
1670
1732
|
};
|
|
1671
|
-
protoOf(HttpStatusCode).
|
|
1672
|
-
return this.
|
|
1733
|
+
protoOf(HttpStatusCode).g4f = function (other) {
|
|
1734
|
+
return this.e4f_1 - other.e4f_1 | 0;
|
|
1673
1735
|
};
|
|
1674
1736
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1675
|
-
return this.
|
|
1737
|
+
return this.g4f(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1676
1738
|
};
|
|
1677
1739
|
function allStatusCodes() {
|
|
1678
|
-
return listOf([
|
|
1740
|
+
return listOf([Companion_getInstance_5().a4d_1, Companion_getInstance_5().b4d_1, Companion_getInstance_5().c4d_1, Companion_getInstance_5().d4d_1, Companion_getInstance_5().e4d_1, Companion_getInstance_5().f4d_1, Companion_getInstance_5().g4d_1, Companion_getInstance_5().h4d_1, Companion_getInstance_5().i4d_1, Companion_getInstance_5().j4d_1, Companion_getInstance_5().k4d_1, Companion_getInstance_5().l4d_1, Companion_getInstance_5().m4d_1, Companion_getInstance_5().n4d_1, Companion_getInstance_5().o4d_1, Companion_getInstance_5().p4d_1, Companion_getInstance_5().q4d_1, Companion_getInstance_5().r4d_1, Companion_getInstance_5().s4d_1, Companion_getInstance_5().t4d_1, Companion_getInstance_5().u4d_1, Companion_getInstance_5().v4d_1, Companion_getInstance_5().w4d_1, Companion_getInstance_5().x4d_1, Companion_getInstance_5().y4d_1, Companion_getInstance_5().z4d_1, Companion_getInstance_5().a4e_1, Companion_getInstance_5().b4e_1, Companion_getInstance_5().c4e_1, Companion_getInstance_5().d4e_1, Companion_getInstance_5().e4e_1, Companion_getInstance_5().f4e_1, Companion_getInstance_5().g4e_1, Companion_getInstance_5().r4e_1, Companion_getInstance_5().h4e_1, Companion_getInstance_5().i4e_1, Companion_getInstance_5().j4e_1, Companion_getInstance_5().k4e_1, Companion_getInstance_5().l4e_1, Companion_getInstance_5().m4e_1, Companion_getInstance_5().n4e_1, Companion_getInstance_5().o4e_1, Companion_getInstance_5().p4e_1, Companion_getInstance_5().q4e_1, Companion_getInstance_5().s4e_1, Companion_getInstance_5().t4e_1, Companion_getInstance_5().u4e_1, Companion_getInstance_5().v4e_1, Companion_getInstance_5().w4e_1, Companion_getInstance_5().x4e_1, Companion_getInstance_5().y4e_1, Companion_getInstance_5().z4e_1, Companion_getInstance_5().a4f_1, Companion_getInstance_5().b4f_1]);
|
|
1679
1741
|
}
|
|
1680
1742
|
function formUrlEncode(_this__u8e3s4) {
|
|
1681
1743
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1682
|
-
var tmp0 = _this__u8e3s4.
|
|
1744
|
+
var tmp0 = _this__u8e3s4.n3z();
|
|
1683
1745
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1684
|
-
var destination = ArrayList_init_$Create$
|
|
1746
|
+
var destination = ArrayList_init_$Create$();
|
|
1685
1747
|
var _iterator__ex2g4s = tmp0.t();
|
|
1686
1748
|
while (_iterator__ex2g4s.u()) {
|
|
1687
1749
|
var element = _iterator__ex2g4s.v();
|
|
1688
1750
|
// Inline function 'kotlin.collections.map' call
|
|
1689
1751
|
var this_0 = element.p1();
|
|
1690
1752
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1691
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
1753
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1692
1754
|
var _iterator__ex2g4s_0 = this_0.t();
|
|
1693
1755
|
while (_iterator__ex2g4s_0.u()) {
|
|
1694
1756
|
var item = _iterator__ex2g4s_0.v();
|
|
@@ -1703,7 +1765,7 @@ function formUrlEncode(_this__u8e3s4) {
|
|
|
1703
1765
|
function formUrlEncode_0(_this__u8e3s4) {
|
|
1704
1766
|
// Inline function 'kotlin.text.buildString' call
|
|
1705
1767
|
// Inline function 'kotlin.apply' call
|
|
1706
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
1768
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
1707
1769
|
formUrlEncodeTo(_this__u8e3s4, this_0);
|
|
1708
1770
|
return this_0.toString();
|
|
1709
1771
|
}
|
|
@@ -1711,47 +1773,47 @@ function formUrlEncodeTo(_this__u8e3s4, out) {
|
|
|
1711
1773
|
joinTo(_this__u8e3s4, out, '&', VOID, VOID, VOID, VOID, formUrlEncodeTo$lambda);
|
|
1712
1774
|
}
|
|
1713
1775
|
function formUrlEncodeTo$lambda(it) {
|
|
1714
|
-
var key = encodeURLParameter(it.
|
|
1776
|
+
var key = encodeURLParameter(it.vg_1, true);
|
|
1715
1777
|
var tmp;
|
|
1716
|
-
if (it.
|
|
1778
|
+
if (it.wg_1 == null) {
|
|
1717
1779
|
tmp = key;
|
|
1718
1780
|
} else {
|
|
1719
|
-
var value = encodeURLParameterValue(toString_1(it.
|
|
1781
|
+
var value = encodeURLParameterValue(toString_1(it.wg_1));
|
|
1720
1782
|
tmp = key + '=' + value;
|
|
1721
1783
|
}
|
|
1722
1784
|
return tmp;
|
|
1723
1785
|
}
|
|
1724
|
-
function
|
|
1725
|
-
|
|
1726
|
-
this.
|
|
1786
|
+
function Companion_6() {
|
|
1787
|
+
Companion_instance_6 = this;
|
|
1788
|
+
this.h4f_1 = EmptyParameters_instance;
|
|
1727
1789
|
}
|
|
1728
|
-
var
|
|
1729
|
-
function
|
|
1730
|
-
if (
|
|
1731
|
-
new
|
|
1732
|
-
return
|
|
1790
|
+
var Companion_instance_6;
|
|
1791
|
+
function Companion_getInstance_6() {
|
|
1792
|
+
if (Companion_instance_6 == null)
|
|
1793
|
+
new Companion_6();
|
|
1794
|
+
return Companion_instance_6;
|
|
1733
1795
|
}
|
|
1734
1796
|
function Parameters() {
|
|
1735
1797
|
}
|
|
1736
1798
|
function EmptyParameters() {
|
|
1737
1799
|
}
|
|
1738
|
-
protoOf(EmptyParameters).
|
|
1800
|
+
protoOf(EmptyParameters).s3z = function () {
|
|
1739
1801
|
return true;
|
|
1740
1802
|
};
|
|
1741
|
-
protoOf(EmptyParameters).
|
|
1803
|
+
protoOf(EmptyParameters).t3z = function (name) {
|
|
1742
1804
|
return null;
|
|
1743
1805
|
};
|
|
1744
|
-
protoOf(EmptyParameters).
|
|
1806
|
+
protoOf(EmptyParameters).u3z = function () {
|
|
1745
1807
|
return emptySet();
|
|
1746
1808
|
};
|
|
1747
|
-
protoOf(EmptyParameters).
|
|
1809
|
+
protoOf(EmptyParameters).n3z = function () {
|
|
1748
1810
|
return emptySet();
|
|
1749
1811
|
};
|
|
1750
1812
|
protoOf(EmptyParameters).r = function () {
|
|
1751
1813
|
return true;
|
|
1752
1814
|
};
|
|
1753
1815
|
protoOf(EmptyParameters).toString = function () {
|
|
1754
|
-
return 'Parameters ' +
|
|
1816
|
+
return 'Parameters ' + toString_0(this.n3z());
|
|
1755
1817
|
};
|
|
1756
1818
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1757
1819
|
var tmp;
|
|
@@ -1774,23 +1836,23 @@ function ParametersBuilderImpl(size) {
|
|
|
1774
1836
|
size = size === VOID ? 8 : size;
|
|
1775
1837
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1776
1838
|
}
|
|
1777
|
-
protoOf(ParametersBuilderImpl).
|
|
1778
|
-
return new ParametersImpl(this.
|
|
1839
|
+
protoOf(ParametersBuilderImpl).b42 = function () {
|
|
1840
|
+
return new ParametersImpl(this.q3z_1);
|
|
1779
1841
|
};
|
|
1780
1842
|
function ParametersImpl(values) {
|
|
1781
1843
|
values = values === VOID ? emptyMap() : values;
|
|
1782
1844
|
StringValuesImpl.call(this, true, values);
|
|
1783
1845
|
}
|
|
1784
1846
|
protoOf(ParametersImpl).toString = function () {
|
|
1785
|
-
return 'Parameters ' +
|
|
1847
|
+
return 'Parameters ' + toString_0(this.n3z());
|
|
1786
1848
|
};
|
|
1787
1849
|
function parameters(builder) {
|
|
1788
1850
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1789
|
-
|
|
1851
|
+
Companion_getInstance_6();
|
|
1790
1852
|
// Inline function 'kotlin.apply' call
|
|
1791
1853
|
var this_0 = ParametersBuilder();
|
|
1792
1854
|
builder(this_0);
|
|
1793
|
-
return this_0.
|
|
1855
|
+
return this_0.b42();
|
|
1794
1856
|
}
|
|
1795
1857
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1796
1858
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1798,14 +1860,14 @@ function parseQueryString(query, startIndex, limit, decode) {
|
|
|
1798
1860
|
decode = decode === VOID ? true : decode;
|
|
1799
1861
|
var tmp;
|
|
1800
1862
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1801
|
-
tmp =
|
|
1863
|
+
tmp = Companion_getInstance_6().h4f_1;
|
|
1802
1864
|
} else {
|
|
1803
1865
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1804
|
-
|
|
1866
|
+
Companion_getInstance_6();
|
|
1805
1867
|
// Inline function 'kotlin.apply' call
|
|
1806
1868
|
var this_0 = ParametersBuilder();
|
|
1807
1869
|
parse(this_0, query, startIndex, limit, decode);
|
|
1808
|
-
tmp = this_0.
|
|
1870
|
+
tmp = this_0.b42();
|
|
1809
1871
|
}
|
|
1810
1872
|
return tmp;
|
|
1811
1873
|
}
|
|
@@ -1846,7 +1908,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1846
1908
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
1847
1909
|
if (spaceEndIndex > spaceNameIndex) {
|
|
1848
1910
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
1849
|
-
_this__u8e3s4.
|
|
1911
|
+
_this__u8e3s4.o3z(name, emptyList());
|
|
1850
1912
|
}
|
|
1851
1913
|
return Unit_instance;
|
|
1852
1914
|
}
|
|
@@ -1857,7 +1919,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
1857
1919
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
1858
1920
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
1859
1921
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
1860
|
-
_this__u8e3s4.
|
|
1922
|
+
_this__u8e3s4.x3z(name_0, value);
|
|
1861
1923
|
}
|
|
1862
1924
|
}
|
|
1863
1925
|
function trimStart(start, end, query) {
|
|
@@ -1877,101 +1939,101 @@ function trimEnd(start, end, text) {
|
|
|
1877
1939
|
function applyOrigin($this) {
|
|
1878
1940
|
var tmp;
|
|
1879
1941
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1880
|
-
var this_0 = $this.
|
|
1942
|
+
var this_0 = $this.k4f_1;
|
|
1881
1943
|
if (charSequenceLength(this_0) > 0) {
|
|
1882
1944
|
tmp = true;
|
|
1883
1945
|
} else {
|
|
1884
|
-
tmp = $this.
|
|
1946
|
+
tmp = $this.w4f().u4f_1 === 'file';
|
|
1885
1947
|
}
|
|
1886
1948
|
if (tmp)
|
|
1887
1949
|
return Unit_instance;
|
|
1888
|
-
$this.
|
|
1889
|
-
if ($this.
|
|
1890
|
-
$this.
|
|
1891
|
-
if ($this.
|
|
1892
|
-
$this.
|
|
1950
|
+
$this.k4f_1 = Companion_getInstance_7().q4g_1.x4f_1;
|
|
1951
|
+
if ($this.n4f_1 == null)
|
|
1952
|
+
$this.n4f_1 = Companion_getInstance_7().q4g_1.i4g_1;
|
|
1953
|
+
if ($this.m4f_1 === 0) {
|
|
1954
|
+
$this.s4g(Companion_getInstance_7().q4g_1.y4f_1);
|
|
1893
1955
|
}
|
|
1894
1956
|
}
|
|
1895
|
-
function
|
|
1896
|
-
|
|
1897
|
-
this.
|
|
1898
|
-
this.
|
|
1957
|
+
function Companion_7() {
|
|
1958
|
+
Companion_instance_7 = this;
|
|
1959
|
+
this.q4g_1 = Url(get_origin(this));
|
|
1960
|
+
this.r4g_1 = 256;
|
|
1899
1961
|
}
|
|
1900
|
-
var
|
|
1901
|
-
function
|
|
1902
|
-
if (
|
|
1903
|
-
new
|
|
1904
|
-
return
|
|
1962
|
+
var Companion_instance_7;
|
|
1963
|
+
function Companion_getInstance_7() {
|
|
1964
|
+
if (Companion_instance_7 == null)
|
|
1965
|
+
new Companion_7();
|
|
1966
|
+
return Companion_instance_7;
|
|
1905
1967
|
}
|
|
1906
1968
|
function URLBuilder(protocol, host, port, user, password, pathSegments, parameters, fragment, trailingQuery) {
|
|
1907
|
-
|
|
1969
|
+
Companion_getInstance_7();
|
|
1908
1970
|
protocol = protocol === VOID ? null : protocol;
|
|
1909
1971
|
host = host === VOID ? '' : host;
|
|
1910
1972
|
port = port === VOID ? 0 : port;
|
|
1911
1973
|
user = user === VOID ? null : user;
|
|
1912
1974
|
password = password === VOID ? null : password;
|
|
1913
1975
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1914
|
-
parameters = parameters === VOID ?
|
|
1976
|
+
parameters = parameters === VOID ? Companion_getInstance_6().h4f_1 : parameters;
|
|
1915
1977
|
fragment = fragment === VOID ? '' : fragment;
|
|
1916
1978
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1917
|
-
this.
|
|
1918
|
-
this.
|
|
1919
|
-
this.
|
|
1920
|
-
this.
|
|
1979
|
+
this.k4f_1 = host;
|
|
1980
|
+
this.l4f_1 = trailingQuery;
|
|
1981
|
+
this.m4f_1 = port;
|
|
1982
|
+
this.n4f_1 = protocol;
|
|
1921
1983
|
var tmp = this;
|
|
1922
|
-
tmp.
|
|
1984
|
+
tmp.o4f_1 = user == null ? null : encodeURLParameter(user);
|
|
1923
1985
|
var tmp_0 = this;
|
|
1924
|
-
tmp_0.
|
|
1925
|
-
this.
|
|
1986
|
+
tmp_0.p4f_1 = password == null ? null : encodeURLParameter(password);
|
|
1987
|
+
this.q4f_1 = encodeURLQueryComponent(fragment);
|
|
1926
1988
|
var tmp_1 = this;
|
|
1927
1989
|
// Inline function 'kotlin.collections.map' call
|
|
1928
1990
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1929
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(pathSegments, 10));
|
|
1991
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(pathSegments, 10));
|
|
1930
1992
|
var _iterator__ex2g4s = pathSegments.t();
|
|
1931
1993
|
while (_iterator__ex2g4s.u()) {
|
|
1932
1994
|
var item = _iterator__ex2g4s.v();
|
|
1933
1995
|
var tmp$ret$2 = encodeURLPathPart(item);
|
|
1934
1996
|
destination.b1(tmp$ret$2);
|
|
1935
1997
|
}
|
|
1936
|
-
tmp_1.
|
|
1937
|
-
this.
|
|
1938
|
-
this.
|
|
1998
|
+
tmp_1.r4f_1 = destination;
|
|
1999
|
+
this.s4f_1 = encodeParameters(parameters);
|
|
2000
|
+
this.t4f_1 = new UrlDecodedParametersBuilder(this.s4f_1);
|
|
1939
2001
|
}
|
|
1940
|
-
protoOf(URLBuilder).
|
|
2002
|
+
protoOf(URLBuilder).s4g = function (value) {
|
|
1941
2003
|
// Inline function 'kotlin.require' call
|
|
1942
2004
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1943
2005
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1944
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2006
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
1945
2007
|
}
|
|
1946
|
-
this.
|
|
2008
|
+
this.m4f_1 = value;
|
|
1947
2009
|
};
|
|
1948
|
-
protoOf(URLBuilder).
|
|
1949
|
-
this.
|
|
2010
|
+
protoOf(URLBuilder).t4g = function (value) {
|
|
2011
|
+
this.n4f_1 = value;
|
|
1950
2012
|
};
|
|
1951
|
-
protoOf(URLBuilder).
|
|
1952
|
-
var tmp0_elvis_lhs = this.
|
|
1953
|
-
return tmp0_elvis_lhs == null ?
|
|
2013
|
+
protoOf(URLBuilder).w4f = function () {
|
|
2014
|
+
var tmp0_elvis_lhs = this.n4f_1;
|
|
2015
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_8().u4g_1 : tmp0_elvis_lhs;
|
|
1954
2016
|
};
|
|
1955
|
-
protoOf(URLBuilder).
|
|
2017
|
+
protoOf(URLBuilder).a4h = function (value) {
|
|
1956
2018
|
var tmp = this;
|
|
1957
|
-
tmp.
|
|
2019
|
+
tmp.o4f_1 = value == null ? null : encodeURLParameter(value);
|
|
1958
2020
|
};
|
|
1959
|
-
protoOf(URLBuilder).
|
|
1960
|
-
var tmp0_safe_receiver = this.
|
|
2021
|
+
protoOf(URLBuilder).b4h = function () {
|
|
2022
|
+
var tmp0_safe_receiver = this.o4f_1;
|
|
1961
2023
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1962
2024
|
};
|
|
1963
|
-
protoOf(URLBuilder).
|
|
1964
|
-
var tmp0_safe_receiver = this.
|
|
2025
|
+
protoOf(URLBuilder).c4h = function () {
|
|
2026
|
+
var tmp0_safe_receiver = this.p4f_1;
|
|
1965
2027
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
1966
2028
|
};
|
|
1967
|
-
protoOf(URLBuilder).
|
|
1968
|
-
return decodeURLQueryComponent(this.
|
|
2029
|
+
protoOf(URLBuilder).d4h = function () {
|
|
2030
|
+
return decodeURLQueryComponent(this.q4f_1);
|
|
1969
2031
|
};
|
|
1970
|
-
protoOf(URLBuilder).
|
|
2032
|
+
protoOf(URLBuilder).e4h = function () {
|
|
1971
2033
|
// Inline function 'kotlin.collections.map' call
|
|
1972
|
-
var this_0 = this.
|
|
2034
|
+
var this_0 = this.r4f_1;
|
|
1973
2035
|
// Inline function 'kotlin.collections.mapTo' call
|
|
1974
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2036
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
1975
2037
|
var _iterator__ex2g4s = this_0.t();
|
|
1976
2038
|
while (_iterator__ex2g4s.u()) {
|
|
1977
2039
|
var item = _iterator__ex2g4s.v();
|
|
@@ -1980,68 +2042,71 @@ protoOf(URLBuilder).i4e = function () {
|
|
|
1980
2042
|
}
|
|
1981
2043
|
return destination;
|
|
1982
2044
|
};
|
|
1983
|
-
protoOf(URLBuilder).
|
|
1984
|
-
this.
|
|
1985
|
-
this.
|
|
2045
|
+
protoOf(URLBuilder).f4h = function (value) {
|
|
2046
|
+
this.s4f_1 = value;
|
|
2047
|
+
this.t4f_1 = new UrlDecodedParametersBuilder(value);
|
|
1986
2048
|
};
|
|
1987
|
-
protoOf(URLBuilder).
|
|
2049
|
+
protoOf(URLBuilder).g4h = function () {
|
|
1988
2050
|
applyOrigin(this);
|
|
1989
|
-
return appendTo(this, StringBuilder_init_$Create$
|
|
2051
|
+
return appendTo(this, StringBuilder_init_$Create$(256)).toString();
|
|
1990
2052
|
};
|
|
1991
2053
|
protoOf(URLBuilder).toString = function () {
|
|
1992
|
-
return appendTo(this, StringBuilder_init_$Create$
|
|
2054
|
+
return appendTo(this, StringBuilder_init_$Create$(256)).toString();
|
|
1993
2055
|
};
|
|
1994
|
-
protoOf(URLBuilder).
|
|
2056
|
+
protoOf(URLBuilder).b42 = function () {
|
|
1995
2057
|
applyOrigin(this);
|
|
1996
|
-
return new Url_0(this.
|
|
2058
|
+
return new Url_0(this.n4f_1, this.k4f_1, this.m4f_1, this.e4h(), this.t4f_1.b42(), this.d4h(), this.b4h(), this.c4h(), this.l4f_1, this.g4h());
|
|
1997
2059
|
};
|
|
1998
2060
|
function get_authority(_this__u8e3s4) {
|
|
1999
2061
|
// Inline function 'kotlin.text.buildString' call
|
|
2000
2062
|
// Inline function 'kotlin.apply' call
|
|
2001
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2063
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2002
2064
|
this_0.q(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2003
|
-
this_0.q(_this__u8e3s4.
|
|
2004
|
-
if (!(_this__u8e3s4.
|
|
2065
|
+
this_0.q(_this__u8e3s4.k4f_1);
|
|
2066
|
+
if (!(_this__u8e3s4.m4f_1 === 0) && !(_this__u8e3s4.m4f_1 === _this__u8e3s4.w4f().v4f_1)) {
|
|
2005
2067
|
this_0.q(':');
|
|
2006
|
-
this_0.q(_this__u8e3s4.
|
|
2068
|
+
this_0.q(_this__u8e3s4.m4f_1.toString());
|
|
2007
2069
|
}
|
|
2008
2070
|
return this_0.toString();
|
|
2009
2071
|
}
|
|
2010
2072
|
function appendTo(_this__u8e3s4, out) {
|
|
2011
|
-
out.c1(_this__u8e3s4.
|
|
2012
|
-
switch (_this__u8e3s4.
|
|
2073
|
+
out.c1(_this__u8e3s4.w4f().u4f_1);
|
|
2074
|
+
switch (_this__u8e3s4.w4f().u4f_1) {
|
|
2013
2075
|
case 'file':
|
|
2014
|
-
appendFile(out, _this__u8e3s4.
|
|
2015
|
-
|
|
2076
|
+
appendFile(out, _this__u8e3s4.k4f_1, get_encodedPath(_this__u8e3s4));
|
|
2077
|
+
appendUrlFullPath(out, '', _this__u8e3s4.s4f_1, _this__u8e3s4.l4f_1);
|
|
2078
|
+
break;
|
|
2016
2079
|
case 'mailto':
|
|
2017
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2080
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.k4f_1);
|
|
2018
2081
|
return out;
|
|
2019
2082
|
case 'about':
|
|
2020
|
-
appendPayload(out, _this__u8e3s4.
|
|
2083
|
+
appendPayload(out, _this__u8e3s4.k4f_1);
|
|
2021
2084
|
return out;
|
|
2022
2085
|
case 'tel':
|
|
2023
|
-
appendPayload(out, _this__u8e3s4.
|
|
2086
|
+
appendPayload(out, _this__u8e3s4.k4f_1);
|
|
2024
2087
|
return out;
|
|
2025
2088
|
case 'data':
|
|
2026
|
-
appendPayload(out, _this__u8e3s4.
|
|
2089
|
+
appendPayload(out, _this__u8e3s4.k4f_1);
|
|
2027
2090
|
return out;
|
|
2091
|
+
default:
|
|
2092
|
+
out.c1('://');
|
|
2093
|
+
out.c1(get_authority(_this__u8e3s4));
|
|
2094
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.s4f_1, _this__u8e3s4.l4f_1);
|
|
2095
|
+
break;
|
|
2028
2096
|
}
|
|
2029
|
-
out.c1('://');
|
|
2030
|
-
out.c1(get_authority(_this__u8e3s4));
|
|
2031
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.w4c_1, _this__u8e3s4.p4c_1);
|
|
2032
2097
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2033
|
-
var this_0 = _this__u8e3s4.
|
|
2098
|
+
var this_0 = _this__u8e3s4.q4f_1;
|
|
2034
2099
|
if (charSequenceLength(this_0) > 0) {
|
|
2035
2100
|
out.s(_Char___init__impl__6a9atx(35));
|
|
2036
|
-
out.c1(_this__u8e3s4.
|
|
2101
|
+
out.c1(_this__u8e3s4.q4f_1);
|
|
2037
2102
|
}
|
|
2038
2103
|
return out;
|
|
2039
2104
|
}
|
|
2040
2105
|
function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
2041
2106
|
// Inline function 'kotlin.text.buildString' call
|
|
2042
2107
|
// Inline function 'kotlin.apply' call
|
|
2043
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2044
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2108
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2109
|
+
appendUserAndPassword(this_0, _this__u8e3s4.o4f_1, _this__u8e3s4.p4f_1);
|
|
2045
2110
|
return this_0.toString();
|
|
2046
2111
|
}
|
|
2047
2112
|
function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
@@ -2053,10 +2118,10 @@ function appendFile(_this__u8e3s4, host, encodedPath) {
|
|
|
2053
2118
|
_this__u8e3s4.c1(encodedPath);
|
|
2054
2119
|
}
|
|
2055
2120
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2056
|
-
_this__u8e3s4.
|
|
2121
|
+
_this__u8e3s4.r4f_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2057
2122
|
}
|
|
2058
2123
|
function get_encodedPath(_this__u8e3s4) {
|
|
2059
|
-
return joinPath(_this__u8e3s4.
|
|
2124
|
+
return joinPath(_this__u8e3s4.r4f_1);
|
|
2060
2125
|
}
|
|
2061
2126
|
function appendMailto(_this__u8e3s4, encodedUser, host) {
|
|
2062
2127
|
_this__u8e3s4.c1(':');
|
|
@@ -2144,47 +2209,47 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2144
2209
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
2145
2210
|
if (schemeLength > 0) {
|
|
2146
2211
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
2147
|
-
_this__u8e3s4.
|
|
2212
|
+
_this__u8e3s4.t4g(Companion_getInstance_8().h4h(scheme));
|
|
2148
2213
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2149
2214
|
}
|
|
2150
|
-
if (_this__u8e3s4.
|
|
2151
|
-
_this__u8e3s4.
|
|
2215
|
+
if (_this__u8e3s4.w4f().u4f_1 === 'data') {
|
|
2216
|
+
_this__u8e3s4.k4f_1 = substring(urlString, startIndex, endIndex);
|
|
2152
2217
|
return _this__u8e3s4;
|
|
2153
2218
|
}
|
|
2154
2219
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2155
2220
|
startIndex = startIndex + slashCount | 0;
|
|
2156
|
-
if (_this__u8e3s4.
|
|
2221
|
+
if (_this__u8e3s4.w4f().u4f_1 === 'file') {
|
|
2157
2222
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2158
2223
|
return _this__u8e3s4;
|
|
2159
2224
|
}
|
|
2160
|
-
if (_this__u8e3s4.
|
|
2225
|
+
if (_this__u8e3s4.w4f().u4f_1 === 'mailto') {
|
|
2161
2226
|
// Inline function 'kotlin.require' call
|
|
2162
2227
|
// Inline function 'kotlin.require' call
|
|
2163
2228
|
if (!(slashCount === 0)) {
|
|
2164
2229
|
var message = 'Failed requirement.';
|
|
2165
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2230
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2166
2231
|
}
|
|
2167
2232
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2168
2233
|
return _this__u8e3s4;
|
|
2169
2234
|
}
|
|
2170
|
-
if (_this__u8e3s4.
|
|
2235
|
+
if (_this__u8e3s4.w4f().u4f_1 === 'about') {
|
|
2171
2236
|
// Inline function 'kotlin.require' call
|
|
2172
2237
|
// Inline function 'kotlin.require' call
|
|
2173
2238
|
if (!(slashCount === 0)) {
|
|
2174
2239
|
var message_0 = 'Failed requirement.';
|
|
2175
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2240
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
2176
2241
|
}
|
|
2177
|
-
_this__u8e3s4.
|
|
2242
|
+
_this__u8e3s4.k4f_1 = substring(urlString, startIndex, endIndex);
|
|
2178
2243
|
return _this__u8e3s4;
|
|
2179
2244
|
}
|
|
2180
|
-
if (_this__u8e3s4.
|
|
2245
|
+
if (_this__u8e3s4.w4f().u4f_1 === 'tel') {
|
|
2181
2246
|
// Inline function 'kotlin.require' call
|
|
2182
2247
|
// Inline function 'kotlin.require' call
|
|
2183
2248
|
if (!(slashCount === 0)) {
|
|
2184
2249
|
var message_1 = 'Failed requirement.';
|
|
2185
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2250
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message_1));
|
|
2186
2251
|
}
|
|
2187
|
-
_this__u8e3s4.
|
|
2252
|
+
_this__u8e3s4.k4f_1 = substring(urlString, startIndex, endIndex);
|
|
2188
2253
|
return _this__u8e3s4;
|
|
2189
2254
|
}
|
|
2190
2255
|
if (slashCount >= 2) {
|
|
@@ -2202,10 +2267,10 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2202
2267
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
2203
2268
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
2204
2269
|
if (!(passwordIndex === -1)) {
|
|
2205
|
-
_this__u8e3s4.
|
|
2206
|
-
_this__u8e3s4.
|
|
2270
|
+
_this__u8e3s4.o4f_1 = substring(urlString, startIndex, passwordIndex);
|
|
2271
|
+
_this__u8e3s4.p4f_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
2207
2272
|
} else {
|
|
2208
|
-
_this__u8e3s4.
|
|
2273
|
+
_this__u8e3s4.o4f_1 = substring(urlString, startIndex, delimiter);
|
|
2209
2274
|
}
|
|
2210
2275
|
startIndex = delimiter + 1 | 0;
|
|
2211
2276
|
} else {
|
|
@@ -2216,34 +2281,34 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2216
2281
|
}
|
|
2217
2282
|
}
|
|
2218
2283
|
if (startIndex >= endIndex) {
|
|
2219
|
-
_this__u8e3s4.
|
|
2284
|
+
_this__u8e3s4.r4f_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2220
2285
|
return _this__u8e3s4;
|
|
2221
2286
|
}
|
|
2222
|
-
var tmp_0 = _this__u8e3s4;
|
|
2223
|
-
var tmp_1;
|
|
2224
|
-
if (slashCount === 0) {
|
|
2225
|
-
tmp_1 = dropLast(_this__u8e3s4.v4c_1, 1);
|
|
2226
|
-
} else {
|
|
2227
|
-
tmp_1 = emptyList();
|
|
2228
|
-
}
|
|
2229
|
-
tmp_0.v4c_1 = tmp_1;
|
|
2230
2287
|
// Inline function 'kotlin.takeIf' call
|
|
2231
2288
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2232
|
-
var
|
|
2233
|
-
if (this_1
|
|
2234
|
-
|
|
2289
|
+
var tmp_0;
|
|
2290
|
+
if (this_1 >= 0) {
|
|
2291
|
+
tmp_0 = this_1;
|
|
2235
2292
|
} else {
|
|
2236
|
-
|
|
2293
|
+
tmp_0 = null;
|
|
2237
2294
|
}
|
|
2238
|
-
var tmp1_elvis_lhs =
|
|
2295
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
2239
2296
|
var pathEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
|
|
2240
2297
|
if (pathEnd > startIndex) {
|
|
2241
|
-
var
|
|
2298
|
+
var tmp_1 = _this__u8e3s4;
|
|
2299
|
+
var tmp_2;
|
|
2300
|
+
if (slashCount === 0) {
|
|
2301
|
+
tmp_2 = dropLast(_this__u8e3s4.r4f_1, 1);
|
|
2302
|
+
} else {
|
|
2303
|
+
tmp_2 = emptyList();
|
|
2304
|
+
}
|
|
2305
|
+
tmp_1.r4f_1 = tmp_2;
|
|
2306
|
+
var encodedPath = encodeURLPath(substring(urlString, startIndex, pathEnd), VOID, false);
|
|
2242
2307
|
var tmp_3;
|
|
2243
2308
|
var tmp_4;
|
|
2244
|
-
if (_this__u8e3s4.
|
|
2309
|
+
if (_this__u8e3s4.r4f_1.e1() === 1) {
|
|
2245
2310
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2246
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2311
|
+
var this_2 = first_0(_this__u8e3s4.r4f_1);
|
|
2247
2312
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
2248
2313
|
} else {
|
|
2249
2314
|
tmp_4 = false;
|
|
@@ -2251,13 +2316,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
2251
2316
|
if (tmp_4) {
|
|
2252
2317
|
tmp_3 = emptyList();
|
|
2253
2318
|
} else {
|
|
2254
|
-
tmp_3 = _this__u8e3s4.
|
|
2319
|
+
tmp_3 = _this__u8e3s4.r4f_1;
|
|
2255
2320
|
}
|
|
2256
2321
|
var basePath = tmp_3;
|
|
2257
|
-
var
|
|
2258
|
-
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(),
|
|
2259
|
-
_this__u8e3s4.
|
|
2322
|
+
var encodedChunks = encodedPath === '/' ? get_ROOT_PATH() : split(encodedPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2323
|
+
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), encodedChunks);
|
|
2324
|
+
_this__u8e3s4.r4f_1 = plus_0(basePath, relativePath);
|
|
2260
2325
|
startIndex = pathEnd;
|
|
2326
|
+
} else if (slashCount === 0 && _this__u8e3s4.r4f_1.r() && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
2327
|
+
_this__u8e3s4.r4f_1 = get_ROOT_PATH();
|
|
2328
|
+
} else if (slashCount > 0) {
|
|
2329
|
+
_this__u8e3s4.r4f_1 = emptyList();
|
|
2261
2330
|
}
|
|
2262
2331
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
2263
2332
|
startIndex = parseQuery(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
@@ -2304,28 +2373,53 @@ function count(urlString, startIndex, endIndex, char) {
|
|
|
2304
2373
|
}
|
|
2305
2374
|
function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
2306
2375
|
_init_properties_URLParser_kt__sf11to();
|
|
2376
|
+
var tmp;
|
|
2307
2377
|
switch (slashCount) {
|
|
2308
2378
|
case 1:
|
|
2309
|
-
_this__u8e3s4.
|
|
2310
|
-
|
|
2379
|
+
_this__u8e3s4.k4f_1 = '';
|
|
2380
|
+
tmp = startIndex;
|
|
2311
2381
|
break;
|
|
2312
2382
|
case 2:
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2383
|
+
// Inline function 'kotlin.takeIf' call
|
|
2384
|
+
|
|
2385
|
+
var this_0 = indexOfAny(urlString, toCharArray('/?#'), startIndex);
|
|
2386
|
+
var tmp_0;
|
|
2387
|
+
if (startIndex <= this_0 ? this_0 < endIndex : false) {
|
|
2388
|
+
tmp_0 = this_0;
|
|
2389
|
+
} else {
|
|
2390
|
+
tmp_0 = null;
|
|
2317
2391
|
}
|
|
2318
2392
|
|
|
2319
|
-
|
|
2320
|
-
|
|
2393
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
2394
|
+
var hostEnd = tmp1_elvis_lhs == null ? endIndex : tmp1_elvis_lhs;
|
|
2395
|
+
_this__u8e3s4.k4f_1 = substring(urlString, startIndex, hostEnd);
|
|
2396
|
+
tmp = hostEnd;
|
|
2321
2397
|
break;
|
|
2322
2398
|
case 3:
|
|
2323
|
-
_this__u8e3s4.
|
|
2324
|
-
|
|
2399
|
+
_this__u8e3s4.k4f_1 = '';
|
|
2400
|
+
tmp = startIndex;
|
|
2325
2401
|
break;
|
|
2326
2402
|
default:
|
|
2327
2403
|
throw IllegalArgumentException_init_$Create$('Invalid file url: ' + urlString);
|
|
2328
2404
|
}
|
|
2405
|
+
var pathStart = tmp;
|
|
2406
|
+
// Inline function 'kotlin.takeIf' call
|
|
2407
|
+
var this_1 = indexOfAny(urlString, toCharArray('?#'), pathStart);
|
|
2408
|
+
var tmp_1;
|
|
2409
|
+
if (this_1 >= 0) {
|
|
2410
|
+
tmp_1 = this_1;
|
|
2411
|
+
} else {
|
|
2412
|
+
tmp_1 = null;
|
|
2413
|
+
}
|
|
2414
|
+
var tmp2_elvis_lhs = tmp_1;
|
|
2415
|
+
var pathEnd = tmp2_elvis_lhs == null ? endIndex : tmp2_elvis_lhs;
|
|
2416
|
+
var path = encodeURLPath(substring(urlString, pathStart, pathEnd), VOID, false);
|
|
2417
|
+
set_encodedPath(_this__u8e3s4, slashCount === 3 ? '/' + path : path);
|
|
2418
|
+
var nextPartStart = pathEnd;
|
|
2419
|
+
if (nextPartStart < endIndex && charCodeAt(urlString, nextPartStart) === _Char___init__impl__6a9atx(63)) {
|
|
2420
|
+
nextPartStart = parseQuery(_this__u8e3s4, urlString, nextPartStart, endIndex);
|
|
2421
|
+
}
|
|
2422
|
+
parseFragment(_this__u8e3s4, urlString, nextPartStart, endIndex);
|
|
2329
2423
|
}
|
|
2330
2424
|
function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2331
2425
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2333,8 +2427,8 @@ function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2333
2427
|
if (delimiter === -1) {
|
|
2334
2428
|
throw IllegalArgumentException_init_$Create$('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
2335
2429
|
}
|
|
2336
|
-
_this__u8e3s4.
|
|
2337
|
-
_this__u8e3s4.
|
|
2430
|
+
_this__u8e3s4.a4h(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
2431
|
+
_this__u8e3s4.k4f_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
2338
2432
|
}
|
|
2339
2433
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2340
2434
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2386,21 +2480,21 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2386
2480
|
// Inline function 'kotlin.require' call
|
|
2387
2481
|
if (!tmp$ret$2) {
|
|
2388
2482
|
var message = 'Host cannot contain whitespace characters: "' + hostValue + '"';
|
|
2389
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2483
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2390
2484
|
}
|
|
2391
|
-
_this__u8e3s4.
|
|
2485
|
+
_this__u8e3s4.k4f_1 = hostValue;
|
|
2392
2486
|
var tmp_0;
|
|
2393
2487
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2394
2488
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
2395
2489
|
} else {
|
|
2396
2490
|
tmp_0 = 0;
|
|
2397
2491
|
}
|
|
2398
|
-
_this__u8e3s4.
|
|
2492
|
+
_this__u8e3s4.s4g(tmp_0);
|
|
2399
2493
|
}
|
|
2400
2494
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2401
2495
|
_init_properties_URLParser_kt__sf11to();
|
|
2402
2496
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2403
|
-
_this__u8e3s4.
|
|
2497
|
+
_this__u8e3s4.l4f_1 = true;
|
|
2404
2498
|
return endIndex;
|
|
2405
2499
|
}
|
|
2406
2500
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2414,18 +2508,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
2414
2508
|
var tmp0_elvis_lhs = tmp;
|
|
2415
2509
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
2416
2510
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
2417
|
-
rawParameters.
|
|
2511
|
+
rawParameters.z3z(parseQuery$lambda(_this__u8e3s4));
|
|
2418
2512
|
return fragmentStart;
|
|
2419
2513
|
}
|
|
2420
2514
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2421
2515
|
_init_properties_URLParser_kt__sf11to();
|
|
2422
2516
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
2423
|
-
_this__u8e3s4.
|
|
2517
|
+
_this__u8e3s4.q4f_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
2424
2518
|
}
|
|
2425
2519
|
}
|
|
2426
2520
|
function parseQuery$lambda($this_parseQuery) {
|
|
2427
2521
|
return function (key, values) {
|
|
2428
|
-
$this_parseQuery.
|
|
2522
|
+
$this_parseQuery.s4f_1.o3z(key, values);
|
|
2429
2523
|
return Unit_instance;
|
|
2430
2524
|
};
|
|
2431
2525
|
}
|
|
@@ -2436,44 +2530,44 @@ function _init_properties_URLParser_kt__sf11to() {
|
|
|
2436
2530
|
ROOT_PATH = listOf_0('');
|
|
2437
2531
|
}
|
|
2438
2532
|
}
|
|
2439
|
-
function
|
|
2440
|
-
|
|
2441
|
-
this.
|
|
2442
|
-
this.
|
|
2443
|
-
this.
|
|
2444
|
-
this.
|
|
2445
|
-
this.
|
|
2533
|
+
function Companion_8() {
|
|
2534
|
+
Companion_instance_8 = this;
|
|
2535
|
+
this.u4g_1 = new URLProtocol('http', 80);
|
|
2536
|
+
this.v4g_1 = new URLProtocol('https', 443);
|
|
2537
|
+
this.w4g_1 = new URLProtocol('ws', 80);
|
|
2538
|
+
this.x4g_1 = new URLProtocol('wss', 443);
|
|
2539
|
+
this.y4g_1 = new URLProtocol('socks', 1080);
|
|
2446
2540
|
var tmp = this;
|
|
2447
2541
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2448
|
-
var this_0 = listOf([this.
|
|
2542
|
+
var this_0 = listOf([this.u4g_1, this.v4g_1, this.w4g_1, this.x4g_1, this.y4g_1]);
|
|
2449
2543
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2450
2544
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2451
2545
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2452
2546
|
var _iterator__ex2g4s = this_0.t();
|
|
2453
2547
|
while (_iterator__ex2g4s.u()) {
|
|
2454
2548
|
var element = _iterator__ex2g4s.v();
|
|
2455
|
-
var tmp$ret$2 = element.
|
|
2456
|
-
destination.
|
|
2549
|
+
var tmp$ret$2 = element.u4f_1;
|
|
2550
|
+
destination.c3(tmp$ret$2, element);
|
|
2457
2551
|
}
|
|
2458
|
-
tmp.
|
|
2552
|
+
tmp.z4g_1 = destination;
|
|
2459
2553
|
}
|
|
2460
|
-
protoOf(
|
|
2554
|
+
protoOf(Companion_8).h4h = function (name) {
|
|
2461
2555
|
// Inline function 'kotlin.let' call
|
|
2462
2556
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2463
|
-
var tmp0_elvis_lhs =
|
|
2557
|
+
var tmp0_elvis_lhs = Companion_getInstance_8().z4g_1.t2(it);
|
|
2464
2558
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2465
2559
|
};
|
|
2466
|
-
var
|
|
2467
|
-
function
|
|
2468
|
-
if (
|
|
2469
|
-
new
|
|
2470
|
-
return
|
|
2560
|
+
var Companion_instance_8;
|
|
2561
|
+
function Companion_getInstance_8() {
|
|
2562
|
+
if (Companion_instance_8 == null)
|
|
2563
|
+
new Companion_8();
|
|
2564
|
+
return Companion_instance_8;
|
|
2471
2565
|
}
|
|
2472
2566
|
function URLProtocol(name, defaultPort) {
|
|
2473
|
-
|
|
2474
|
-
this.
|
|
2475
|
-
this.
|
|
2476
|
-
var tmp0 = this.
|
|
2567
|
+
Companion_getInstance_8();
|
|
2568
|
+
this.u4f_1 = name;
|
|
2569
|
+
this.v4f_1 = defaultPort;
|
|
2570
|
+
var tmp0 = this.u4f_1;
|
|
2477
2571
|
var tmp$ret$0;
|
|
2478
2572
|
$l$block: {
|
|
2479
2573
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2491,15 +2585,15 @@ function URLProtocol(name, defaultPort) {
|
|
|
2491
2585
|
// Inline function 'kotlin.require' call
|
|
2492
2586
|
if (!tmp$ret$0) {
|
|
2493
2587
|
var message = 'All characters should be lower case';
|
|
2494
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2588
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2495
2589
|
}
|
|
2496
2590
|
}
|
|
2497
2591
|
protoOf(URLProtocol).toString = function () {
|
|
2498
|
-
return 'URLProtocol(name=' + this.
|
|
2592
|
+
return 'URLProtocol(name=' + this.u4f_1 + ', defaultPort=' + this.v4f_1 + ')';
|
|
2499
2593
|
};
|
|
2500
2594
|
protoOf(URLProtocol).hashCode = function () {
|
|
2501
|
-
var result = getStringHashCode(this.
|
|
2502
|
-
result = imul(result, 31) + this.
|
|
2595
|
+
var result = getStringHashCode(this.u4f_1);
|
|
2596
|
+
result = imul(result, 31) + this.v4f_1 | 0;
|
|
2503
2597
|
return result;
|
|
2504
2598
|
};
|
|
2505
2599
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2507,35 +2601,38 @@ protoOf(URLProtocol).equals = function (other) {
|
|
|
2507
2601
|
return true;
|
|
2508
2602
|
if (!(other instanceof URLProtocol))
|
|
2509
2603
|
return false;
|
|
2510
|
-
if (!(this.
|
|
2604
|
+
if (!(this.u4f_1 === other.u4f_1))
|
|
2511
2605
|
return false;
|
|
2512
|
-
if (!(this.
|
|
2606
|
+
if (!(this.v4f_1 === other.v4f_1))
|
|
2513
2607
|
return false;
|
|
2514
2608
|
return true;
|
|
2515
2609
|
};
|
|
2516
2610
|
function isSecure(_this__u8e3s4) {
|
|
2517
|
-
return _this__u8e3s4.
|
|
2611
|
+
return _this__u8e3s4.u4f_1 === 'https' || _this__u8e3s4.u4f_1 === 'wss';
|
|
2518
2612
|
}
|
|
2519
2613
|
function isWebsocket(_this__u8e3s4) {
|
|
2520
|
-
return _this__u8e3s4.
|
|
2614
|
+
return _this__u8e3s4.u4f_1 === 'ws' || _this__u8e3s4.u4f_1 === 'wss';
|
|
2521
2615
|
}
|
|
2522
2616
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2523
|
-
_this__u8e3s4.
|
|
2524
|
-
_this__u8e3s4.
|
|
2525
|
-
_this__u8e3s4.
|
|
2526
|
-
_this__u8e3s4.
|
|
2527
|
-
_this__u8e3s4.
|
|
2528
|
-
_this__u8e3s4.
|
|
2617
|
+
_this__u8e3s4.n4f_1 = url.n4f_1;
|
|
2618
|
+
_this__u8e3s4.k4f_1 = url.k4f_1;
|
|
2619
|
+
_this__u8e3s4.s4g(url.m4f_1);
|
|
2620
|
+
_this__u8e3s4.r4f_1 = url.r4f_1;
|
|
2621
|
+
_this__u8e3s4.o4f_1 = url.o4f_1;
|
|
2622
|
+
_this__u8e3s4.p4f_1 = url.p4f_1;
|
|
2529
2623
|
// Inline function 'kotlin.apply' call
|
|
2530
2624
|
var this_0 = ParametersBuilder();
|
|
2531
|
-
appendAll(this_0, url.
|
|
2532
|
-
_this__u8e3s4.
|
|
2533
|
-
_this__u8e3s4.
|
|
2534
|
-
_this__u8e3s4.
|
|
2625
|
+
appendAll(this_0, url.s4f_1);
|
|
2626
|
+
_this__u8e3s4.f4h(this_0);
|
|
2627
|
+
_this__u8e3s4.q4f_1 = url.q4f_1;
|
|
2628
|
+
_this__u8e3s4.l4f_1 = url.l4f_1;
|
|
2535
2629
|
return _this__u8e3s4;
|
|
2536
2630
|
}
|
|
2631
|
+
function get_hostWithPort(_this__u8e3s4) {
|
|
2632
|
+
return _this__u8e3s4.x4f_1 + ':' + _this__u8e3s4.i4h();
|
|
2633
|
+
}
|
|
2537
2634
|
function Url(urlString) {
|
|
2538
|
-
return URLBuilder_0(urlString).
|
|
2635
|
+
return URLBuilder_0(urlString).b42();
|
|
2539
2636
|
}
|
|
2540
2637
|
function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, trailingQuery) {
|
|
2541
2638
|
var tmp;
|
|
@@ -2553,9 +2650,9 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2553
2650
|
_this__u8e3s4.c1('?');
|
|
2554
2651
|
}
|
|
2555
2652
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2556
|
-
var tmp0 = encodedQueryParameters.
|
|
2653
|
+
var tmp0 = encodedQueryParameters.n3z();
|
|
2557
2654
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2558
|
-
var destination = ArrayList_init_$Create$
|
|
2655
|
+
var destination = ArrayList_init_$Create$();
|
|
2559
2656
|
var _iterator__ex2g4s = tmp0.t();
|
|
2560
2657
|
while (_iterator__ex2g4s.u()) {
|
|
2561
2658
|
var element = _iterator__ex2g4s.v();
|
|
@@ -2569,7 +2666,7 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
2569
2666
|
} else {
|
|
2570
2667
|
// Inline function 'kotlin.collections.map' call
|
|
2571
2668
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2572
|
-
var destination_0 = ArrayList_init_$Create$(collectionSizeOrDefault(value, 10));
|
|
2669
|
+
var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(value, 10));
|
|
2573
2670
|
var _iterator__ex2g4s_0 = value.t();
|
|
2574
2671
|
while (_iterator__ex2g4s_0.u()) {
|
|
2575
2672
|
var item = _iterator__ex2g4s_0.v();
|
|
@@ -2599,28 +2696,25 @@ function URLBuilder_0(urlString) {
|
|
|
2599
2696
|
return takeFrom(new URLBuilder(), urlString);
|
|
2600
2697
|
}
|
|
2601
2698
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2602
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2603
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2604
|
-
}
|
|
2605
|
-
function get_hostWithPort(_this__u8e3s4) {
|
|
2606
|
-
return _this__u8e3s4.b4d_1 + ':' + _this__u8e3s4.m4e();
|
|
2699
|
+
var tmp0_subject = _this__u8e3s4.y4f_1;
|
|
2700
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.j4g_1.v4f_1 ? _this__u8e3s4.x4f_1 : get_hostWithPort(_this__u8e3s4);
|
|
2607
2701
|
}
|
|
2608
2702
|
function appendUrlFullPath$lambda(it) {
|
|
2609
|
-
var key = it.
|
|
2703
|
+
var key = it.vg_1;
|
|
2610
2704
|
var tmp;
|
|
2611
|
-
if (it.
|
|
2705
|
+
if (it.wg_1 == null) {
|
|
2612
2706
|
tmp = key;
|
|
2613
2707
|
} else {
|
|
2614
|
-
var value = toString_1(it.
|
|
2708
|
+
var value = toString_1(it.wg_1);
|
|
2615
2709
|
tmp = key + '=' + value;
|
|
2616
2710
|
}
|
|
2617
2711
|
return tmp;
|
|
2618
2712
|
}
|
|
2619
|
-
function
|
|
2713
|
+
function Companion_9() {
|
|
2620
2714
|
}
|
|
2621
|
-
var
|
|
2622
|
-
function
|
|
2623
|
-
return
|
|
2715
|
+
var Companion_instance_9;
|
|
2716
|
+
function Companion_getInstance_9() {
|
|
2717
|
+
return Companion_instance_9;
|
|
2624
2718
|
}
|
|
2625
2719
|
function Url$segments$delegate$lambda($pathSegments) {
|
|
2626
2720
|
return function () {
|
|
@@ -2652,7 +2746,7 @@ function Url$segments$delegate$lambda($pathSegments) {
|
|
|
2652
2746
|
tmp_2 = get_lastIndex($pathSegments) + 1 | 0;
|
|
2653
2747
|
}
|
|
2654
2748
|
var end = tmp_2;
|
|
2655
|
-
return $pathSegments.
|
|
2749
|
+
return $pathSegments.q2(start, end);
|
|
2656
2750
|
};
|
|
2657
2751
|
}
|
|
2658
2752
|
function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
@@ -2661,146 +2755,151 @@ function Url$encodedPath$delegate$lambda($pathSegments, this$0) {
|
|
|
2661
2755
|
if ($pathSegments.r()) {
|
|
2662
2756
|
return '';
|
|
2663
2757
|
}
|
|
2664
|
-
var pathStartIndex = indexOf(this$0.
|
|
2758
|
+
var pathStartIndex = indexOf(this$0.e4g_1, _Char___init__impl__6a9atx(47), this$0.j4g_1.u4f_1.length + 3 | 0);
|
|
2665
2759
|
var tmp_0;
|
|
2666
2760
|
if (pathStartIndex === -1) {
|
|
2667
2761
|
return '';
|
|
2668
2762
|
}
|
|
2669
2763
|
// Inline function 'kotlin.charArrayOf' call
|
|
2670
2764
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2671
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2765
|
+
var pathEndIndex = indexOfAny(this$0.e4g_1, tmp$ret$0, pathStartIndex);
|
|
2672
2766
|
var tmp_1;
|
|
2673
2767
|
if (pathEndIndex === -1) {
|
|
2674
|
-
return substring_0(this$0.
|
|
2768
|
+
return substring_0(this$0.e4g_1, pathStartIndex);
|
|
2675
2769
|
}
|
|
2676
|
-
return substring(this$0.
|
|
2770
|
+
return substring(this$0.e4g_1, pathStartIndex, pathEndIndex);
|
|
2677
2771
|
};
|
|
2678
2772
|
}
|
|
2679
2773
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2680
2774
|
return function () {
|
|
2681
|
-
var queryStart = indexOf(this$0.
|
|
2775
|
+
var queryStart = indexOf(this$0.e4g_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2682
2776
|
var tmp;
|
|
2683
2777
|
if (queryStart === 0) {
|
|
2684
2778
|
return '';
|
|
2685
2779
|
}
|
|
2686
|
-
var queryEnd = indexOf(this$0.
|
|
2780
|
+
var queryEnd = indexOf(this$0.e4g_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2687
2781
|
var tmp_0;
|
|
2688
2782
|
if (queryEnd === -1) {
|
|
2689
|
-
return substring_0(this$0.
|
|
2783
|
+
return substring_0(this$0.e4g_1, queryStart);
|
|
2690
2784
|
}
|
|
2691
|
-
return substring(this$0.
|
|
2785
|
+
return substring(this$0.e4g_1, queryStart, queryEnd);
|
|
2692
2786
|
};
|
|
2693
2787
|
}
|
|
2694
2788
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2695
2789
|
return function () {
|
|
2696
|
-
var pathStart = indexOf(this$0.
|
|
2790
|
+
var pathStart = indexOf(this$0.e4g_1, _Char___init__impl__6a9atx(47), this$0.j4g_1.u4f_1.length + 3 | 0);
|
|
2697
2791
|
var tmp;
|
|
2698
2792
|
if (pathStart === -1) {
|
|
2699
2793
|
return '';
|
|
2700
2794
|
}
|
|
2701
|
-
var queryEnd = indexOf(this$0.
|
|
2795
|
+
var queryEnd = indexOf(this$0.e4g_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2702
2796
|
var tmp_0;
|
|
2703
2797
|
if (queryEnd === -1) {
|
|
2704
|
-
return substring_0(this$0.
|
|
2798
|
+
return substring_0(this$0.e4g_1, pathStart);
|
|
2705
2799
|
}
|
|
2706
|
-
return substring(this$0.
|
|
2800
|
+
return substring(this$0.e4g_1, pathStart, queryEnd);
|
|
2707
2801
|
};
|
|
2708
2802
|
}
|
|
2803
|
+
function Url$_get_encodedPathAndQuery_$ref_sf10sn() {
|
|
2804
|
+
return constructCallableReference(function (p0) {
|
|
2805
|
+
return p0.j4h();
|
|
2806
|
+
}, 1, 0, 21);
|
|
2807
|
+
}
|
|
2709
2808
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2710
2809
|
return function () {
|
|
2711
2810
|
var tmp;
|
|
2712
|
-
if (this$0.
|
|
2811
|
+
if (this$0.b4g_1 == null) {
|
|
2713
2812
|
return null;
|
|
2714
2813
|
}
|
|
2715
2814
|
var tmp_0;
|
|
2716
2815
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2717
|
-
var this_0 = this$0.
|
|
2816
|
+
var this_0 = this$0.b4g_1;
|
|
2718
2817
|
if (charSequenceLength(this_0) === 0) {
|
|
2719
2818
|
return '';
|
|
2720
2819
|
}
|
|
2721
|
-
var usernameStart = this$0.
|
|
2820
|
+
var usernameStart = this$0.j4g_1.u4f_1.length + 3 | 0;
|
|
2722
2821
|
// Inline function 'kotlin.charArrayOf' call
|
|
2723
2822
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2724
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2725
|
-
return substring(this$0.
|
|
2823
|
+
var usernameEnd = indexOfAny(this$0.e4g_1, tmp$ret$1, usernameStart);
|
|
2824
|
+
return substring(this$0.e4g_1, usernameStart, usernameEnd);
|
|
2726
2825
|
};
|
|
2727
2826
|
}
|
|
2728
2827
|
function Url$_get_encodedUser_$ref_3lb9bi() {
|
|
2729
2828
|
return constructCallableReference(function (p0) {
|
|
2730
|
-
return p0.
|
|
2731
|
-
}, 1, 0,
|
|
2829
|
+
return p0.k4h();
|
|
2830
|
+
}, 1, 0, 22);
|
|
2732
2831
|
}
|
|
2733
2832
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2734
2833
|
return function () {
|
|
2735
2834
|
var tmp;
|
|
2736
|
-
if (this$0.
|
|
2835
|
+
if (this$0.c4g_1 == null) {
|
|
2737
2836
|
return null;
|
|
2738
2837
|
}
|
|
2739
2838
|
var tmp_0;
|
|
2740
2839
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2741
|
-
var this_0 = this$0.
|
|
2840
|
+
var this_0 = this$0.c4g_1;
|
|
2742
2841
|
if (charSequenceLength(this_0) === 0) {
|
|
2743
2842
|
return '';
|
|
2744
2843
|
}
|
|
2745
|
-
var passwordStart = indexOf(this$0.
|
|
2746
|
-
var passwordEnd = indexOf(this$0.
|
|
2747
|
-
return substring(this$0.
|
|
2844
|
+
var passwordStart = indexOf(this$0.e4g_1, _Char___init__impl__6a9atx(58), this$0.j4g_1.u4f_1.length + 3 | 0) + 1 | 0;
|
|
2845
|
+
var passwordEnd = indexOf(this$0.e4g_1, _Char___init__impl__6a9atx(64));
|
|
2846
|
+
return substring(this$0.e4g_1, passwordStart, passwordEnd);
|
|
2748
2847
|
};
|
|
2749
2848
|
}
|
|
2750
2849
|
function Url$_get_encodedPassword_$ref_25ixc2() {
|
|
2751
2850
|
return constructCallableReference(function (p0) {
|
|
2752
|
-
return p0.
|
|
2753
|
-
}, 1, 0,
|
|
2851
|
+
return p0.l4h();
|
|
2852
|
+
}, 1, 0, 23);
|
|
2754
2853
|
}
|
|
2755
2854
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2756
2855
|
return function () {
|
|
2757
|
-
var fragmentStart = indexOf(this$0.
|
|
2856
|
+
var fragmentStart = indexOf(this$0.e4g_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2758
2857
|
var tmp;
|
|
2759
2858
|
if (fragmentStart === 0) {
|
|
2760
2859
|
return '';
|
|
2761
2860
|
}
|
|
2762
|
-
return substring_0(this$0.
|
|
2861
|
+
return substring_0(this$0.e4g_1, fragmentStart);
|
|
2763
2862
|
};
|
|
2764
2863
|
}
|
|
2765
2864
|
function Url_0(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2766
|
-
this.
|
|
2767
|
-
this.
|
|
2768
|
-
this.
|
|
2769
|
-
this.
|
|
2770
|
-
this.
|
|
2771
|
-
this.
|
|
2772
|
-
this.
|
|
2773
|
-
this.
|
|
2774
|
-
var containsArg = this.
|
|
2865
|
+
this.x4f_1 = host;
|
|
2866
|
+
this.y4f_1 = specifiedPort;
|
|
2867
|
+
this.z4f_1 = parameters;
|
|
2868
|
+
this.a4g_1 = fragment;
|
|
2869
|
+
this.b4g_1 = user;
|
|
2870
|
+
this.c4g_1 = password;
|
|
2871
|
+
this.d4g_1 = trailingQuery;
|
|
2872
|
+
this.e4g_1 = urlString;
|
|
2873
|
+
var containsArg = this.y4f_1;
|
|
2775
2874
|
// Inline function 'kotlin.require' call
|
|
2776
2875
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2777
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2778
|
-
throw IllegalArgumentException_init_$Create$(
|
|
2876
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.y4f_1;
|
|
2877
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2779
2878
|
}
|
|
2780
|
-
this.
|
|
2781
|
-
this.
|
|
2879
|
+
this.f4g_1 = pathSegments;
|
|
2880
|
+
this.g4g_1 = pathSegments;
|
|
2782
2881
|
var tmp = this;
|
|
2783
|
-
tmp.
|
|
2784
|
-
this.
|
|
2882
|
+
tmp.h4g_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2883
|
+
this.i4g_1 = protocol;
|
|
2785
2884
|
var tmp_0 = this;
|
|
2786
|
-
var tmp0_elvis_lhs = this.
|
|
2787
|
-
tmp_0.
|
|
2885
|
+
var tmp0_elvis_lhs = this.i4g_1;
|
|
2886
|
+
tmp_0.j4g_1 = tmp0_elvis_lhs == null ? Companion_getInstance_8().u4g_1 : tmp0_elvis_lhs;
|
|
2788
2887
|
var tmp_1 = this;
|
|
2789
|
-
tmp_1.
|
|
2888
|
+
tmp_1.k4g_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2790
2889
|
var tmp_2 = this;
|
|
2791
|
-
tmp_2.
|
|
2890
|
+
tmp_2.l4g_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2792
2891
|
var tmp_3 = this;
|
|
2793
|
-
tmp_3.
|
|
2892
|
+
tmp_3.m4g_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2794
2893
|
var tmp_4 = this;
|
|
2795
|
-
tmp_4.
|
|
2894
|
+
tmp_4.n4g_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2796
2895
|
var tmp_5 = this;
|
|
2797
|
-
tmp_5.
|
|
2896
|
+
tmp_5.o4g_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2798
2897
|
var tmp_6 = this;
|
|
2799
|
-
tmp_6.
|
|
2898
|
+
tmp_6.p4g_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2800
2899
|
}
|
|
2801
|
-
protoOf(Url_0).
|
|
2900
|
+
protoOf(Url_0).i4h = function () {
|
|
2802
2901
|
// Inline function 'kotlin.takeUnless' call
|
|
2803
|
-
var this_0 = this.
|
|
2902
|
+
var this_0 = this.y4f_1;
|
|
2804
2903
|
var tmp;
|
|
2805
2904
|
if (!(this_0 === 0)) {
|
|
2806
2905
|
tmp = this_0;
|
|
@@ -2808,24 +2907,31 @@ protoOf(Url_0).m4e = function () {
|
|
|
2808
2907
|
tmp = null;
|
|
2809
2908
|
}
|
|
2810
2909
|
var tmp0_elvis_lhs = tmp;
|
|
2811
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2910
|
+
return tmp0_elvis_lhs == null ? this.j4g_1.v4f_1 : tmp0_elvis_lhs;
|
|
2911
|
+
};
|
|
2912
|
+
protoOf(Url_0).j4h = function () {
|
|
2913
|
+
var tmp0 = this.m4g_1;
|
|
2914
|
+
var tmp = KProperty1;
|
|
2915
|
+
// Inline function 'kotlin.getValue' call
|
|
2916
|
+
getPropertyCallableRef('encodedPathAndQuery', 1, tmp, Url$_get_encodedPathAndQuery_$ref_sf10sn(), null);
|
|
2917
|
+
return tmp0.p1();
|
|
2812
2918
|
};
|
|
2813
|
-
protoOf(Url_0).
|
|
2814
|
-
var tmp0 = this.
|
|
2919
|
+
protoOf(Url_0).k4h = function () {
|
|
2920
|
+
var tmp0 = this.n4g_1;
|
|
2815
2921
|
var tmp = KProperty1;
|
|
2816
2922
|
// Inline function 'kotlin.getValue' call
|
|
2817
2923
|
getPropertyCallableRef('encodedUser', 1, tmp, Url$_get_encodedUser_$ref_3lb9bi(), null);
|
|
2818
2924
|
return tmp0.p1();
|
|
2819
2925
|
};
|
|
2820
|
-
protoOf(Url_0).
|
|
2821
|
-
var tmp0 = this.
|
|
2926
|
+
protoOf(Url_0).l4h = function () {
|
|
2927
|
+
var tmp0 = this.o4g_1;
|
|
2822
2928
|
var tmp = KProperty1;
|
|
2823
2929
|
// Inline function 'kotlin.getValue' call
|
|
2824
2930
|
getPropertyCallableRef('encodedPassword', 1, tmp, Url$_get_encodedPassword_$ref_25ixc2(), null);
|
|
2825
2931
|
return tmp0.p1();
|
|
2826
2932
|
};
|
|
2827
2933
|
protoOf(Url_0).toString = function () {
|
|
2828
|
-
return this.
|
|
2934
|
+
return this.e4g_1;
|
|
2829
2935
|
};
|
|
2830
2936
|
protoOf(Url_0).equals = function (other) {
|
|
2831
2937
|
if (this === other)
|
|
@@ -2834,34 +2940,34 @@ protoOf(Url_0).equals = function (other) {
|
|
|
2834
2940
|
return false;
|
|
2835
2941
|
if (!(other instanceof Url_0))
|
|
2836
2942
|
THROW_CCE();
|
|
2837
|
-
return this.
|
|
2943
|
+
return this.e4g_1 === other.e4g_1;
|
|
2838
2944
|
};
|
|
2839
2945
|
protoOf(Url_0).hashCode = function () {
|
|
2840
|
-
return getStringHashCode(this.
|
|
2946
|
+
return getStringHashCode(this.e4g_1);
|
|
2841
2947
|
};
|
|
2842
2948
|
function get_authority_0(_this__u8e3s4) {
|
|
2843
2949
|
// Inline function 'kotlin.text.buildString' call
|
|
2844
2950
|
// Inline function 'kotlin.apply' call
|
|
2845
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2951
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2846
2952
|
this_0.q(get_encodedUserAndPassword_0(_this__u8e3s4));
|
|
2847
2953
|
this_0.q(get_hostWithPortIfSpecified(_this__u8e3s4));
|
|
2848
2954
|
return this_0.toString();
|
|
2849
2955
|
}
|
|
2850
2956
|
function UrlSerializer() {
|
|
2851
2957
|
UrlSerializer_instance = this;
|
|
2852
|
-
this.
|
|
2958
|
+
this.m4h_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2853
2959
|
}
|
|
2854
|
-
protoOf(UrlSerializer).
|
|
2855
|
-
return this.
|
|
2960
|
+
protoOf(UrlSerializer).kq = function () {
|
|
2961
|
+
return this.m4h_1;
|
|
2856
2962
|
};
|
|
2857
|
-
protoOf(UrlSerializer).
|
|
2858
|
-
return Url(decoder.
|
|
2963
|
+
protoOf(UrlSerializer).mq = function (decoder) {
|
|
2964
|
+
return Url(decoder.ht());
|
|
2859
2965
|
};
|
|
2860
|
-
protoOf(UrlSerializer).
|
|
2861
|
-
encoder.
|
|
2966
|
+
protoOf(UrlSerializer).n4h = function (encoder, value) {
|
|
2967
|
+
encoder.qu(value.toString());
|
|
2862
2968
|
};
|
|
2863
|
-
protoOf(UrlSerializer).
|
|
2864
|
-
return this.
|
|
2969
|
+
protoOf(UrlSerializer).lq = function (encoder, value) {
|
|
2970
|
+
return this.n4h(encoder, value instanceof Url_0 ? value : THROW_CCE());
|
|
2865
2971
|
};
|
|
2866
2972
|
var UrlSerializer_instance;
|
|
2867
2973
|
function UrlSerializer_getInstance() {
|
|
@@ -2872,29 +2978,29 @@ function UrlSerializer_getInstance() {
|
|
|
2872
2978
|
function get_encodedUserAndPassword_0(_this__u8e3s4) {
|
|
2873
2979
|
// Inline function 'kotlin.text.buildString' call
|
|
2874
2980
|
// Inline function 'kotlin.apply' call
|
|
2875
|
-
var this_0 = StringBuilder_init_$Create$();
|
|
2876
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2981
|
+
var this_0 = StringBuilder_init_$Create$_0();
|
|
2982
|
+
appendUserAndPassword(this_0, _this__u8e3s4.k4h(), _this__u8e3s4.l4h());
|
|
2877
2983
|
return this_0.toString();
|
|
2878
2984
|
}
|
|
2879
2985
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
2880
|
-
this.
|
|
2881
|
-
this.
|
|
2986
|
+
this.o4h_1 = encodedParametersBuilder;
|
|
2987
|
+
this.p4h_1 = this.o4h_1.s3z();
|
|
2882
2988
|
}
|
|
2883
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2884
|
-
return decodeParameters(this.
|
|
2989
|
+
protoOf(UrlDecodedParametersBuilder).b42 = function () {
|
|
2990
|
+
return decodeParameters(this.o4h_1);
|
|
2885
2991
|
};
|
|
2886
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2887
|
-
return this.
|
|
2992
|
+
protoOf(UrlDecodedParametersBuilder).s3z = function () {
|
|
2993
|
+
return this.p4h_1;
|
|
2888
2994
|
};
|
|
2889
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2890
|
-
var tmp0_safe_receiver = this.
|
|
2995
|
+
protoOf(UrlDecodedParametersBuilder).t3z = function (name) {
|
|
2996
|
+
var tmp0_safe_receiver = this.o4h_1.t3z(encodeURLParameter(name));
|
|
2891
2997
|
var tmp;
|
|
2892
2998
|
if (tmp0_safe_receiver == null) {
|
|
2893
2999
|
tmp = null;
|
|
2894
3000
|
} else {
|
|
2895
3001
|
// Inline function 'kotlin.collections.map' call
|
|
2896
3002
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2897
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
3003
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_safe_receiver, 10));
|
|
2898
3004
|
var _iterator__ex2g4s = tmp0_safe_receiver.t();
|
|
2899
3005
|
while (_iterator__ex2g4s.u()) {
|
|
2900
3006
|
var item = _iterator__ex2g4s.v();
|
|
@@ -2905,11 +3011,11 @@ protoOf(UrlDecodedParametersBuilder).y3x = function (name) {
|
|
|
2905
3011
|
}
|
|
2906
3012
|
return tmp;
|
|
2907
3013
|
};
|
|
2908
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3014
|
+
protoOf(UrlDecodedParametersBuilder).u3z = function () {
|
|
2909
3015
|
// Inline function 'kotlin.collections.map' call
|
|
2910
|
-
var this_0 = this.
|
|
3016
|
+
var this_0 = this.o4h_1.u3z();
|
|
2911
3017
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2912
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3018
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
2913
3019
|
var _iterator__ex2g4s = this_0.t();
|
|
2914
3020
|
while (_iterator__ex2g4s.u()) {
|
|
2915
3021
|
var item = _iterator__ex2g4s.v();
|
|
@@ -2919,32 +3025,32 @@ protoOf(UrlDecodedParametersBuilder).z3x = function () {
|
|
|
2919
3025
|
return toSet(destination);
|
|
2920
3026
|
};
|
|
2921
3027
|
protoOf(UrlDecodedParametersBuilder).r = function () {
|
|
2922
|
-
return this.
|
|
3028
|
+
return this.o4h_1.r();
|
|
2923
3029
|
};
|
|
2924
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2925
|
-
return decodeParameters(this.
|
|
3030
|
+
protoOf(UrlDecodedParametersBuilder).n3z = function () {
|
|
3031
|
+
return decodeParameters(this.o4h_1).n3z();
|
|
2926
3032
|
};
|
|
2927
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2928
|
-
return this.
|
|
3033
|
+
protoOf(UrlDecodedParametersBuilder).x3z = function (name, value) {
|
|
3034
|
+
return this.o4h_1.x3z(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
2929
3035
|
};
|
|
2930
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2931
|
-
return appendAllEncoded(this.
|
|
3036
|
+
protoOf(UrlDecodedParametersBuilder).y3z = function (stringValues) {
|
|
3037
|
+
return appendAllEncoded(this.o4h_1, stringValues);
|
|
2932
3038
|
};
|
|
2933
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3039
|
+
protoOf(UrlDecodedParametersBuilder).o3z = function (name, values) {
|
|
2934
3040
|
var tmp = encodeURLParameter(name);
|
|
2935
3041
|
// Inline function 'kotlin.collections.map' call
|
|
2936
3042
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2937
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3043
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(values, 10));
|
|
2938
3044
|
var _iterator__ex2g4s = values.t();
|
|
2939
3045
|
while (_iterator__ex2g4s.u()) {
|
|
2940
3046
|
var item = _iterator__ex2g4s.v();
|
|
2941
3047
|
var tmp$ret$2 = encodeURLParameterValue(item);
|
|
2942
3048
|
destination.b1(tmp$ret$2);
|
|
2943
3049
|
}
|
|
2944
|
-
return this.
|
|
3050
|
+
return this.o4h_1.o3z(tmp, destination);
|
|
2945
3051
|
};
|
|
2946
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
2947
|
-
return this.
|
|
3052
|
+
protoOf(UrlDecodedParametersBuilder).x2 = function () {
|
|
3053
|
+
return this.o4h_1.x2();
|
|
2948
3054
|
};
|
|
2949
3055
|
function encodeParameters(parameters) {
|
|
2950
3056
|
// Inline function 'kotlin.apply' call
|
|
@@ -2956,46 +3062,46 @@ function decodeParameters(parameters) {
|
|
|
2956
3062
|
// Inline function 'kotlin.apply' call
|
|
2957
3063
|
var this_0 = ParametersBuilder();
|
|
2958
3064
|
appendAllDecoded(this_0, parameters);
|
|
2959
|
-
return this_0.
|
|
3065
|
+
return this_0.b42();
|
|
2960
3066
|
}
|
|
2961
3067
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
2962
3068
|
// Inline function 'kotlin.collections.forEach' call
|
|
2963
|
-
var _iterator__ex2g4s = parameters.
|
|
3069
|
+
var _iterator__ex2g4s = parameters.u3z().t();
|
|
2964
3070
|
while (_iterator__ex2g4s.u()) {
|
|
2965
3071
|
var element = _iterator__ex2g4s.v();
|
|
2966
|
-
var tmp0_elvis_lhs = parameters.
|
|
3072
|
+
var tmp0_elvis_lhs = parameters.t3z(element);
|
|
2967
3073
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2968
3074
|
var tmp = encodeURLParameter(element);
|
|
2969
3075
|
// Inline function 'kotlin.collections.map' call
|
|
2970
3076
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2971
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3077
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(values, 10));
|
|
2972
3078
|
var _iterator__ex2g4s_0 = values.t();
|
|
2973
3079
|
while (_iterator__ex2g4s_0.u()) {
|
|
2974
3080
|
var item = _iterator__ex2g4s_0.v();
|
|
2975
3081
|
var tmp$ret$4 = encodeURLParameterValue(item);
|
|
2976
3082
|
destination.b1(tmp$ret$4);
|
|
2977
3083
|
}
|
|
2978
|
-
_this__u8e3s4.
|
|
3084
|
+
_this__u8e3s4.o3z(tmp, destination);
|
|
2979
3085
|
}
|
|
2980
3086
|
}
|
|
2981
3087
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
2982
3088
|
// Inline function 'kotlin.collections.forEach' call
|
|
2983
|
-
var _iterator__ex2g4s = parameters.
|
|
3089
|
+
var _iterator__ex2g4s = parameters.u3z().t();
|
|
2984
3090
|
while (_iterator__ex2g4s.u()) {
|
|
2985
3091
|
var element = _iterator__ex2g4s.v();
|
|
2986
|
-
var tmp0_elvis_lhs = parameters.
|
|
3092
|
+
var tmp0_elvis_lhs = parameters.t3z(element);
|
|
2987
3093
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
2988
3094
|
var tmp = decodeURLQueryComponent(element);
|
|
2989
3095
|
// Inline function 'kotlin.collections.map' call
|
|
2990
3096
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2991
|
-
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(values, 10));
|
|
3097
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(values, 10));
|
|
2992
3098
|
var _iterator__ex2g4s_0 = values.t();
|
|
2993
3099
|
while (_iterator__ex2g4s_0.u()) {
|
|
2994
3100
|
var item = _iterator__ex2g4s_0.v();
|
|
2995
3101
|
var tmp$ret$4 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
2996
3102
|
destination.b1(tmp$ret$4);
|
|
2997
3103
|
}
|
|
2998
|
-
_this__u8e3s4.
|
|
3104
|
+
_this__u8e3s4.o3z(tmp, destination);
|
|
2999
3105
|
}
|
|
3000
3106
|
}
|
|
3001
3107
|
function MultiPartData() {
|
|
@@ -3015,20 +3121,20 @@ function ProtocolUpgrade() {
|
|
|
3015
3121
|
}
|
|
3016
3122
|
function ContentWrapper() {
|
|
3017
3123
|
}
|
|
3018
|
-
protoOf(ContentWrapper).
|
|
3019
|
-
return this.
|
|
3124
|
+
protoOf(ContentWrapper).b4i = function () {
|
|
3125
|
+
return this.a4i_1;
|
|
3020
3126
|
};
|
|
3021
3127
|
function OutgoingContent() {
|
|
3022
|
-
this.
|
|
3128
|
+
this.q4h_1 = null;
|
|
3023
3129
|
}
|
|
3024
|
-
protoOf(OutgoingContent).
|
|
3130
|
+
protoOf(OutgoingContent).r4h = function () {
|
|
3025
3131
|
return null;
|
|
3026
3132
|
};
|
|
3027
|
-
protoOf(OutgoingContent).
|
|
3133
|
+
protoOf(OutgoingContent).s4h = function () {
|
|
3028
3134
|
return null;
|
|
3029
3135
|
};
|
|
3030
|
-
protoOf(OutgoingContent).
|
|
3031
|
-
return
|
|
3136
|
+
protoOf(OutgoingContent).f4c = function () {
|
|
3137
|
+
return Companion_getInstance_2().a4c_1;
|
|
3032
3138
|
};
|
|
3033
3139
|
function NullBody() {
|
|
3034
3140
|
}
|
|
@@ -3042,7 +3148,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3042
3148
|
tmp = true;
|
|
3043
3149
|
} else {
|
|
3044
3150
|
if (_this__u8e3s4 instanceof ContentWrapper) {
|
|
3045
|
-
tmp = isEmpty(_this__u8e3s4.
|
|
3151
|
+
tmp = isEmpty(_this__u8e3s4.b4i());
|
|
3046
3152
|
} else {
|
|
3047
3153
|
tmp = false;
|
|
3048
3154
|
}
|
|
@@ -3052,27 +3158,27 @@ function isEmpty(_this__u8e3s4) {
|
|
|
3052
3158
|
function TextContent(text, contentType, status) {
|
|
3053
3159
|
status = status === VOID ? null : status;
|
|
3054
3160
|
ByteArrayContent.call(this);
|
|
3055
|
-
this.
|
|
3056
|
-
this.
|
|
3057
|
-
this.
|
|
3161
|
+
this.d4i_1 = text;
|
|
3162
|
+
this.e4i_1 = contentType;
|
|
3163
|
+
this.f4i_1 = status;
|
|
3058
3164
|
var tmp = this;
|
|
3059
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3060
|
-
tmp.
|
|
3165
|
+
var tmp0_elvis_lhs = charset(this.e4i_1);
|
|
3166
|
+
tmp.g4i_1 = toByteArray(this.d4i_1, tmp0_elvis_lhs == null ? Charsets_getInstance().i3w_1 : tmp0_elvis_lhs);
|
|
3061
3167
|
}
|
|
3062
|
-
protoOf(TextContent).
|
|
3063
|
-
return this.
|
|
3168
|
+
protoOf(TextContent).r4h = function () {
|
|
3169
|
+
return this.e4i_1;
|
|
3064
3170
|
};
|
|
3065
|
-
protoOf(TextContent).
|
|
3066
|
-
return fromInt(this.
|
|
3171
|
+
protoOf(TextContent).s4h = function () {
|
|
3172
|
+
return fromInt(this.g4i_1.length);
|
|
3067
3173
|
};
|
|
3068
|
-
protoOf(TextContent).
|
|
3069
|
-
return this.
|
|
3174
|
+
protoOf(TextContent).y4h = function () {
|
|
3175
|
+
return this.g4i_1;
|
|
3070
3176
|
};
|
|
3071
3177
|
protoOf(TextContent).toString = function () {
|
|
3072
|
-
return 'TextContent[' + this.
|
|
3178
|
+
return 'TextContent[' + this.e4i_1.toString() + '] "' + take(this.d4i_1, 30) + '"';
|
|
3073
3179
|
};
|
|
3074
3180
|
function get_origin(_this__u8e3s4) {
|
|
3075
|
-
return PlatformUtils_getInstance().
|
|
3181
|
+
return PlatformUtils_getInstance().f3z_1 ? locationOrigin() : 'http://localhost';
|
|
3076
3182
|
}
|
|
3077
3183
|
function locationOrigin() {
|
|
3078
3184
|
return function () {
|
|
@@ -3090,31 +3196,32 @@ function locationOrigin() {
|
|
|
3090
3196
|
}();
|
|
3091
3197
|
}
|
|
3092
3198
|
//region block: post-declaration
|
|
3093
|
-
protoOf(EmptyHeaders).
|
|
3094
|
-
protoOf(EmptyHeaders).
|
|
3095
|
-
protoOf(EmptyParameters).
|
|
3096
|
-
protoOf(EmptyParameters).
|
|
3199
|
+
protoOf(EmptyHeaders).td = get;
|
|
3200
|
+
protoOf(EmptyHeaders).z3z = forEach;
|
|
3201
|
+
protoOf(EmptyParameters).td = get;
|
|
3202
|
+
protoOf(EmptyParameters).z3z = forEach;
|
|
3097
3203
|
//endregion
|
|
3098
3204
|
//region block: init
|
|
3099
|
-
|
|
3205
|
+
Companion_instance = new Companion();
|
|
3206
|
+
Companion_instance_1 = new Companion_1();
|
|
3100
3207
|
EmptyHeaders_instance = new EmptyHeaders();
|
|
3101
3208
|
EmptyParameters_instance = new EmptyParameters();
|
|
3102
|
-
|
|
3209
|
+
Companion_instance_9 = new Companion_9();
|
|
3103
3210
|
NullBody_instance = new NullBody();
|
|
3104
3211
|
//endregion
|
|
3105
3212
|
//region block: exports
|
|
3106
3213
|
export {
|
|
3107
3214
|
NullBody_instance as NullBody_instanceyfq32eqie90j,
|
|
3108
3215
|
Application_getInstance as Application_getInstance17ubdrb0i0ohu,
|
|
3109
|
-
|
|
3216
|
+
Companion_getInstance_0 as Companion_getInstance3eu9tsw6r4gc4,
|
|
3110
3217
|
MultiPart_getInstance as MultiPart_getInstance1k6b6wx1k1sjr,
|
|
3111
3218
|
Text_getInstance as Text_getInstancecnzpw4phsgym,
|
|
3112
|
-
|
|
3219
|
+
Companion_getInstance_2 as Companion_getInstance37paccmlttr9s,
|
|
3113
3220
|
HttpHeaders_getInstance as HttpHeaders_getInstance3m47m69p49qfb,
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3221
|
+
Companion_getInstance_3 as Companion_getInstance1pptfj8vjmgsz,
|
|
3222
|
+
Companion_getInstance_4 as Companion_getInstance222gjh8cwt6g7,
|
|
3223
|
+
Companion_getInstance_5 as Companion_getInstance2192nrpo98q6y,
|
|
3224
|
+
Companion_getInstance_6 as Companion_getInstance2z7k6aavckkrm,
|
|
3118
3225
|
MultiPartData as MultiPartData57syw40llxls,
|
|
3119
3226
|
NullBody as NullBody1903zz7riiwr0,
|
|
3120
3227
|
ByteArrayContent as ByteArrayContent2n0wb43y6ugs1,
|
|
@@ -3139,6 +3246,7 @@ export {
|
|
|
3139
3246
|
contentType_1 as contentType1lwcfjsjo0z8g,
|
|
3140
3247
|
encodeURLPath as encodeURLPath2fwba5way5jjt,
|
|
3141
3248
|
formUrlEncode as formUrlEncode1cs6tvna5e1qw,
|
|
3249
|
+
fromHttpToGmtDate as fromHttpToGmtDate33lhlvsspfa5v,
|
|
3142
3250
|
headersOf as headersOf2tgdoojg8tifn,
|
|
3143
3251
|
isSecure as isSecurex1qiiavqi0xu,
|
|
3144
3252
|
isWebsocket as isWebsocket1w1xog9vfgwm1,
|