@doordeck/doordeck-headless-sdk 0.105.0 → 0.106.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +316 -0
- package/kotlin/Kermit-kermit.js +51 -0
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1400 -1400
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +17 -17
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +10 -10
- package/kotlin/doordeck-sdk.d.ts +4 -2
- package/kotlin/doordeck-sdk.js +9905 -9672
- package/kotlin/kotlin-kotlin-stdlib.js +173 -164
- package/kotlin/kotlinx-atomicfu.js +13 -13
- package/kotlin/kotlinx-coroutines-core.js +2087 -1905
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlin/kotlinx-io-kotlinx-io-core.js +427 -427
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1738 -1738
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1346 -1346
- package/kotlin/ktor-ktor-client-ktor-client-core.js +2314 -1913
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +254 -254
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +151 -151
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +3131 -2
- package/kotlin/ktor-ktor-http-ktor-http-cio.js +350 -350
- package/kotlin/ktor-ktor-http.js +730 -715
- package/kotlin/ktor-ktor-io.js +805 -630
- package/kotlin/ktor-ktor-shared-ktor-events.js +9 -9
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +146 -146
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +68 -68
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +40 -40
- package/kotlin/ktor-ktor-utils.js +1182 -577
- package/package.json +1 -1
package/kotlin/ktor-ktor-http.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.h;
|
|
6
6
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
7
|
-
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.
|
|
8
|
-
var encode = kotlin_io_ktor_ktor_io.$_$.
|
|
7
|
+
var Charsets_getInstance = kotlin_io_ktor_ktor_io.$_$.o;
|
|
8
|
+
var encode = kotlin_io_ktor_ktor_io.$_$.t;
|
|
9
9
|
var Unit_instance = kotlin_kotlin.$_$.k5;
|
|
10
|
-
var takeWhile = kotlin_io_ktor_ktor_io.$_$.
|
|
10
|
+
var takeWhile = kotlin_io_ktor_ktor_io.$_$.e1;
|
|
11
11
|
var charArray = kotlin_kotlin.$_$.fa;
|
|
12
12
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.t2;
|
|
13
13
|
var concatToString = kotlin_kotlin.$_$.qc;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
var Char__minus_impl_a2frrh_0 = kotlin_kotlin.$_$.v2;
|
|
32
32
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.z2;
|
|
33
33
|
var numberToChar = kotlin_kotlin.$_$.pb;
|
|
34
|
-
var canRead = kotlin_io_ktor_ktor_io.$_$.
|
|
34
|
+
var canRead = kotlin_io_ktor_ktor_io.$_$.z;
|
|
35
35
|
var Char__rangeTo_impl_tkncvp = kotlin_kotlin.$_$.y2;
|
|
36
36
|
var plus = kotlin_kotlin.$_$.b8;
|
|
37
37
|
var plus_0 = kotlin_kotlin.$_$.c8;
|
|
@@ -60,22 +60,23 @@
|
|
|
60
60
|
var equals_0 = kotlin_kotlin.$_$.la;
|
|
61
61
|
var getStringHashCode = kotlin_kotlin.$_$.qa;
|
|
62
62
|
var hashCode = kotlin_kotlin.$_$.ra;
|
|
63
|
-
var forName = kotlin_io_ktor_ktor_io.$_$.
|
|
63
|
+
var forName = kotlin_io_ktor_ktor_io.$_$.u;
|
|
64
64
|
var IllegalArgumentException = kotlin_kotlin.$_$.kf;
|
|
65
|
-
var get_name = kotlin_io_ktor_ktor_io.$_$.
|
|
65
|
+
var get_name = kotlin_io_ktor_ktor_io.$_$.w;
|
|
66
66
|
var get_lastIndex = kotlin_kotlin.$_$.s7;
|
|
67
67
|
var first = kotlin_kotlin.$_$.bd;
|
|
68
68
|
var last_0 = kotlin_kotlin.$_$.kd;
|
|
69
69
|
var get_lastIndex_0 = kotlin_kotlin.$_$.id;
|
|
70
|
-
var StringValuesBuilderImpl = kotlin_io_ktor_ktor_utils.$_$.
|
|
70
|
+
var StringValuesBuilderImpl = kotlin_io_ktor_ktor_utils.$_$.v;
|
|
71
71
|
var emptySet = kotlin_kotlin.$_$.b7;
|
|
72
|
-
var get = kotlin_io_ktor_ktor_utils.$_$.
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
72
|
+
var get = kotlin_io_ktor_ktor_utils.$_$.u;
|
|
73
|
+
var contains_0 = kotlin_io_ktor_ktor_utils.$_$.s;
|
|
74
|
+
var forEach = kotlin_io_ktor_ktor_utils.$_$.t;
|
|
75
|
+
var StringValues = kotlin_io_ktor_ktor_utils.$_$.y;
|
|
76
|
+
var StringValuesImpl = kotlin_io_ktor_ktor_utils.$_$.w;
|
|
76
77
|
var emptyMap = kotlin_kotlin.$_$.a7;
|
|
77
78
|
var listOf_0 = kotlin_kotlin.$_$.v7;
|
|
78
|
-
var StringValuesSingleImpl = kotlin_io_ktor_ktor_utils.$_$.
|
|
79
|
+
var StringValuesSingleImpl = kotlin_io_ktor_ktor_utils.$_$.x;
|
|
79
80
|
var toDoubleOrNull = kotlin_kotlin.$_$.he;
|
|
80
81
|
var LazyThreadSafetyMode_NONE_getInstance = kotlin_kotlin.$_$.k;
|
|
81
82
|
var lazy = kotlin_kotlin.$_$.pg;
|
|
@@ -102,16 +103,16 @@
|
|
|
102
103
|
var first_0 = kotlin_kotlin.$_$.g7;
|
|
103
104
|
var joinToString = kotlin_kotlin.$_$.p7;
|
|
104
105
|
var startsWith_0 = kotlin_kotlin.$_$.wd;
|
|
105
|
-
var toCharArray = kotlin_io_ktor_ktor_utils.$_$.
|
|
106
|
+
var toCharArray = kotlin_io_ktor_ktor_utils.$_$.i1;
|
|
106
107
|
var indexOfAny = kotlin_kotlin.$_$.cd;
|
|
107
108
|
var dropLast = kotlin_kotlin.$_$.x6;
|
|
108
109
|
var IllegalStateException = kotlin_kotlin.$_$.lf;
|
|
109
110
|
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.b2;
|
|
110
111
|
var indexOf_0 = kotlin_kotlin.$_$.dd;
|
|
111
112
|
var toInt = kotlin_kotlin.$_$.ke;
|
|
112
|
-
var toLowerCasePreservingASCIIRules = kotlin_io_ktor_ktor_utils.$_$.
|
|
113
|
-
var isLowerCase = kotlin_io_ktor_ktor_utils.$_$.
|
|
114
|
-
var appendAll = kotlin_io_ktor_ktor_utils.$_$.
|
|
113
|
+
var toLowerCasePreservingASCIIRules = kotlin_io_ktor_ktor_utils.$_$.k1;
|
|
114
|
+
var isLowerCase = kotlin_io_ktor_ktor_utils.$_$.f1;
|
|
115
|
+
var appendAll = kotlin_io_ktor_ktor_utils.$_$.z;
|
|
115
116
|
var startsWith_1 = kotlin_kotlin.$_$.vd;
|
|
116
117
|
var addAll = kotlin_kotlin.$_$.z5;
|
|
117
118
|
var joinTo = kotlin_kotlin.$_$.q7;
|
|
@@ -125,7 +126,7 @@
|
|
|
125
126
|
var getPropertyCallableRef = kotlin_kotlin.$_$.pa;
|
|
126
127
|
var Enum = kotlin_kotlin.$_$.hf;
|
|
127
128
|
var noWhenBranchMatchedException = kotlin_kotlin.$_$.rg;
|
|
128
|
-
var Hash_instance = kotlin_io_ktor_ktor_utils.$_$.
|
|
129
|
+
var Hash_instance = kotlin_io_ktor_ktor_utils.$_$.b;
|
|
129
130
|
var until = kotlin_kotlin.$_$.hc;
|
|
130
131
|
var substring = kotlin_kotlin.$_$.be;
|
|
131
132
|
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.y;
|
|
@@ -133,11 +134,11 @@
|
|
|
133
134
|
var takeLast = kotlin_kotlin.$_$.ce;
|
|
134
135
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.h1;
|
|
135
136
|
var toLong_0 = kotlin_kotlin.$_$.wb;
|
|
136
|
-
var toByteArray = kotlin_io_ktor_ktor_io.$_$.
|
|
137
|
+
var toByteArray = kotlin_io_ktor_ktor_io.$_$.f1;
|
|
137
138
|
var take = kotlin_kotlin.$_$.de;
|
|
138
139
|
var IllegalArgumentException_init_$Init$_0 = kotlin_kotlin.$_$.x1;
|
|
139
140
|
var defineProp = kotlin_kotlin.$_$.ka;
|
|
140
|
-
var PlatformUtils_getInstance = kotlin_io_ktor_ktor_utils.$_$.
|
|
141
|
+
var PlatformUtils_getInstance = kotlin_io_ktor_ktor_utils.$_$.c;
|
|
141
142
|
//endregion
|
|
142
143
|
//region block: pre-declaration
|
|
143
144
|
initMetadataForClass(URLDecodeException, 'URLDecodeException', VOID, Exception);
|
|
@@ -178,7 +179,7 @@
|
|
|
178
179
|
initMetadataForCompanion(Companion_7);
|
|
179
180
|
initMetadataForClass(URLProtocol, 'URLProtocol');
|
|
180
181
|
initMetadataForCompanion(Companion_8);
|
|
181
|
-
initMetadataForClass(
|
|
182
|
+
initMetadataForClass(Url_1, 'Url', VOID, VOID, VOID, VOID, VOID, {0: UrlSerializer_getInstance});
|
|
182
183
|
initMetadataForObject(UrlSerializer, 'UrlSerializer', VOID, VOID, [KSerializer]);
|
|
183
184
|
initMetadataForClass(UrlDecodedParametersBuilder, 'UrlDecodedParametersBuilder');
|
|
184
185
|
initMetadataForClass(HeaderValueEncoding, 'HeaderValueEncoding', VOID, Enum);
|
|
@@ -236,26 +237,26 @@
|
|
|
236
237
|
// Inline function 'kotlin.text.buildString' call
|
|
237
238
|
// Inline function 'kotlin.apply' call
|
|
238
239
|
var this_0 = StringBuilder_init_$Create$();
|
|
239
|
-
var content = encode(Charsets_getInstance().
|
|
240
|
+
var content = encode(Charsets_getInstance().q1x_1.t1x(), _this__u8e3s4);
|
|
240
241
|
forEach_0(content, encodeURLParameter$lambda(this_0, spaceToPlus));
|
|
241
242
|
return this_0.toString();
|
|
242
243
|
}
|
|
243
244
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
244
245
|
start = start === VOID ? 0 : start;
|
|
245
246
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
246
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
247
|
+
charset = charset === VOID ? Charsets_getInstance().q1x_1 : charset;
|
|
247
248
|
_init_properties_Codecs_kt__fudxxf();
|
|
248
249
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
249
250
|
}
|
|
250
251
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
251
252
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
252
253
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
253
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
254
|
+
charset = charset === VOID ? Charsets_getInstance().q1x_1 : charset;
|
|
254
255
|
_init_properties_Codecs_kt__fudxxf();
|
|
255
256
|
// Inline function 'kotlin.text.buildString' call
|
|
256
257
|
// Inline function 'kotlin.apply' call
|
|
257
258
|
var this_0 = StringBuilder_init_$Create$();
|
|
258
|
-
var content = encode(charset.
|
|
259
|
+
var content = encode(charset.t1x(), _this__u8e3s4);
|
|
259
260
|
forEach_0(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
|
|
260
261
|
return this_0.toString();
|
|
261
262
|
}
|
|
@@ -263,7 +264,7 @@
|
|
|
263
264
|
start = start === VOID ? 0 : start;
|
|
264
265
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
265
266
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
266
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
267
|
+
charset = charset === VOID ? Charsets_getInstance().q1x_1 : charset;
|
|
267
268
|
_init_properties_Codecs_kt__fudxxf();
|
|
268
269
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
269
270
|
}
|
|
@@ -314,7 +315,7 @@
|
|
|
314
315
|
// Inline function 'kotlin.text.buildString' call
|
|
315
316
|
// Inline function 'kotlin.apply' call
|
|
316
317
|
var this_0 = StringBuilder_init_$Create$();
|
|
317
|
-
var charset = Charsets_getInstance().
|
|
318
|
+
var charset = Charsets_getInstance().q1x_1;
|
|
318
319
|
var index = 0;
|
|
319
320
|
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
320
321
|
var current = charSequenceGet(_this__u8e3s4, index);
|
|
@@ -331,7 +332,7 @@
|
|
|
331
332
|
continue $l$loop_0;
|
|
332
333
|
}
|
|
333
334
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
334
|
-
var tmp = encode(charset.
|
|
335
|
+
var tmp = encode(charset.t1x(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
335
336
|
forEach_0(tmp, encodeURLPath$lambda(this_0));
|
|
336
337
|
index = index + symbolSize | 0;
|
|
337
338
|
}
|
|
@@ -448,7 +449,7 @@
|
|
|
448
449
|
function forEach$lambda($block) {
|
|
449
450
|
return function (buffer) {
|
|
450
451
|
while (canRead(buffer)) {
|
|
451
|
-
$block(buffer.
|
|
452
|
+
$block(buffer.q1h());
|
|
452
453
|
}
|
|
453
454
|
return true;
|
|
454
455
|
};
|
|
@@ -521,18 +522,18 @@
|
|
|
521
522
|
}
|
|
522
523
|
function hasParameter($this, name, value) {
|
|
523
524
|
var tmp;
|
|
524
|
-
switch ($this.
|
|
525
|
+
switch ($this.i2s_1.s()) {
|
|
525
526
|
case 0:
|
|
526
527
|
tmp = false;
|
|
527
528
|
break;
|
|
528
529
|
case 1:
|
|
529
530
|
// Inline function 'kotlin.let' call
|
|
530
531
|
|
|
531
|
-
var it = $this.
|
|
532
|
-
tmp = (equals(it.
|
|
532
|
+
var it = $this.i2s_1.u(0);
|
|
533
|
+
tmp = (equals(it.j2s_1, name, true) && equals(it.k2s_1, value, true));
|
|
533
534
|
break;
|
|
534
535
|
default:
|
|
535
|
-
var tmp2 = $this.
|
|
536
|
+
var tmp2 = $this.i2s_1;
|
|
536
537
|
var tmp$ret$2;
|
|
537
538
|
$l$block_0: {
|
|
538
539
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -549,7 +550,7 @@
|
|
|
549
550
|
var _iterator__ex2g4s = tmp2.p();
|
|
550
551
|
while (_iterator__ex2g4s.q()) {
|
|
551
552
|
var element = _iterator__ex2g4s.r();
|
|
552
|
-
if (equals(element.
|
|
553
|
+
if (equals(element.j2s_1, name, true) && equals(element.k2s_1, value, true)) {
|
|
553
554
|
tmp$ret$2 = true;
|
|
554
555
|
break $l$block_0;
|
|
555
556
|
}
|
|
@@ -564,20 +565,20 @@
|
|
|
564
565
|
}
|
|
565
566
|
function Companion() {
|
|
566
567
|
Companion_instance = this;
|
|
567
|
-
this.
|
|
568
|
+
this.m2s_1 = ContentType_init_$Create$('*', '*');
|
|
568
569
|
}
|
|
569
|
-
protoOf(Companion).
|
|
570
|
+
protoOf(Companion).vl = function (value) {
|
|
570
571
|
if (isBlank(value))
|
|
571
|
-
return this.
|
|
572
|
+
return this.m2s_1;
|
|
572
573
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
573
574
|
var headerValue = last(parseHeaderValue(value));
|
|
574
|
-
var tmp2 = headerValue.
|
|
575
|
-
var parameters = headerValue.
|
|
575
|
+
var tmp2 = headerValue.n2s_1;
|
|
576
|
+
var parameters = headerValue.o2s_1;
|
|
576
577
|
var slash = indexOf(tmp2, _Char___init__impl__6a9atx(47));
|
|
577
578
|
if (slash === -1) {
|
|
578
579
|
// Inline function 'kotlin.text.trim' call
|
|
579
580
|
if (toString(trim(isCharSequence(tmp2) ? tmp2 : THROW_CCE())) === '*')
|
|
580
|
-
return Companion_getInstance().
|
|
581
|
+
return Companion_getInstance().m2s_1;
|
|
581
582
|
throw new BadContentTypeFormatException(value);
|
|
582
583
|
}
|
|
583
584
|
// Inline function 'kotlin.text.substring' call
|
|
@@ -618,32 +619,32 @@
|
|
|
618
619
|
}
|
|
619
620
|
function Application() {
|
|
620
621
|
Application_instance = this;
|
|
621
|
-
this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
624
|
-
this.
|
|
625
|
-
this.
|
|
626
|
-
this.
|
|
627
|
-
this.
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
633
|
-
this.
|
|
634
|
-
this.
|
|
635
|
-
this.
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
639
|
-
this.
|
|
640
|
-
this.
|
|
641
|
-
this.
|
|
642
|
-
this.
|
|
643
|
-
this.
|
|
644
|
-
this.
|
|
645
|
-
}
|
|
646
|
-
protoOf(Application).
|
|
622
|
+
this.q2s_1 = 'application';
|
|
623
|
+
this.r2s_1 = ContentType_init_$Create$('application', '*');
|
|
624
|
+
this.s2s_1 = ContentType_init_$Create$('application', 'atom+xml');
|
|
625
|
+
this.t2s_1 = ContentType_init_$Create$('application', 'cbor');
|
|
626
|
+
this.u2s_1 = ContentType_init_$Create$('application', 'json');
|
|
627
|
+
this.v2s_1 = ContentType_init_$Create$('application', 'hal+json');
|
|
628
|
+
this.w2s_1 = ContentType_init_$Create$('application', 'javascript');
|
|
629
|
+
this.x2s_1 = ContentType_init_$Create$('application', 'octet-stream');
|
|
630
|
+
this.y2s_1 = ContentType_init_$Create$('application', 'rss+xml');
|
|
631
|
+
this.z2s_1 = ContentType_init_$Create$('application', 'soap+xml');
|
|
632
|
+
this.a2t_1 = ContentType_init_$Create$('application', 'xml');
|
|
633
|
+
this.b2t_1 = ContentType_init_$Create$('application', 'xml-dtd');
|
|
634
|
+
this.c2t_1 = ContentType_init_$Create$('application', 'yaml');
|
|
635
|
+
this.d2t_1 = ContentType_init_$Create$('application', 'zip');
|
|
636
|
+
this.e2t_1 = ContentType_init_$Create$('application', 'gzip');
|
|
637
|
+
this.f2t_1 = ContentType_init_$Create$('application', 'x-www-form-urlencoded');
|
|
638
|
+
this.g2t_1 = ContentType_init_$Create$('application', 'pdf');
|
|
639
|
+
this.h2t_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
640
|
+
this.i2t_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
641
|
+
this.j2t_1 = ContentType_init_$Create$('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
642
|
+
this.k2t_1 = ContentType_init_$Create$('application', 'protobuf');
|
|
643
|
+
this.l2t_1 = ContentType_init_$Create$('application', 'wasm');
|
|
644
|
+
this.m2t_1 = ContentType_init_$Create$('application', 'problem+json');
|
|
645
|
+
this.n2t_1 = ContentType_init_$Create$('application', 'problem+xml');
|
|
646
|
+
}
|
|
647
|
+
protoOf(Application).o2t = function (contentType) {
|
|
647
648
|
return startsWith(contentType, 'application/', true);
|
|
648
649
|
};
|
|
649
650
|
var Application_instance;
|
|
@@ -654,17 +655,17 @@
|
|
|
654
655
|
}
|
|
655
656
|
function MultiPart() {
|
|
656
657
|
MultiPart_instance = this;
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
663
|
-
this.
|
|
664
|
-
this.
|
|
665
|
-
this.
|
|
666
|
-
}
|
|
667
|
-
protoOf(MultiPart).
|
|
658
|
+
this.p2t_1 = 'multipart';
|
|
659
|
+
this.q2t_1 = ContentType_init_$Create$('multipart', '*');
|
|
660
|
+
this.r2t_1 = ContentType_init_$Create$('multipart', 'mixed');
|
|
661
|
+
this.s2t_1 = ContentType_init_$Create$('multipart', 'alternative');
|
|
662
|
+
this.t2t_1 = ContentType_init_$Create$('multipart', 'related');
|
|
663
|
+
this.u2t_1 = ContentType_init_$Create$('multipart', 'form-data');
|
|
664
|
+
this.v2t_1 = ContentType_init_$Create$('multipart', 'signed');
|
|
665
|
+
this.w2t_1 = ContentType_init_$Create$('multipart', 'encrypted');
|
|
666
|
+
this.x2t_1 = ContentType_init_$Create$('multipart', 'byteranges');
|
|
667
|
+
}
|
|
668
|
+
protoOf(MultiPart).o2t = function (contentType) {
|
|
668
669
|
return startsWith(contentType, 'multipart/', true);
|
|
669
670
|
};
|
|
670
671
|
var MultiPart_instance;
|
|
@@ -675,16 +676,16 @@
|
|
|
675
676
|
}
|
|
676
677
|
function Text() {
|
|
677
678
|
Text_instance = this;
|
|
678
|
-
this.
|
|
679
|
-
this.
|
|
680
|
-
this.
|
|
681
|
-
this.
|
|
682
|
-
this.
|
|
683
|
-
this.
|
|
684
|
-
this.
|
|
685
|
-
this.
|
|
686
|
-
this.
|
|
687
|
-
this.
|
|
679
|
+
this.y2t_1 = 'text';
|
|
680
|
+
this.z2t_1 = ContentType_init_$Create$('text', '*');
|
|
681
|
+
this.a2u_1 = ContentType_init_$Create$('text', 'plain');
|
|
682
|
+
this.b2u_1 = ContentType_init_$Create$('text', 'css');
|
|
683
|
+
this.c2u_1 = ContentType_init_$Create$('text', 'csv');
|
|
684
|
+
this.d2u_1 = ContentType_init_$Create$('text', 'html');
|
|
685
|
+
this.e2u_1 = ContentType_init_$Create$('text', 'javascript');
|
|
686
|
+
this.f2u_1 = ContentType_init_$Create$('text', 'vcard');
|
|
687
|
+
this.g2u_1 = ContentType_init_$Create$('text', 'xml');
|
|
688
|
+
this.h2u_1 = ContentType_init_$Create$('text', 'event-stream');
|
|
688
689
|
}
|
|
689
690
|
var Text_instance;
|
|
690
691
|
function Text_getInstance() {
|
|
@@ -696,25 +697,25 @@
|
|
|
696
697
|
Companion_getInstance();
|
|
697
698
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
698
699
|
HeaderValueWithParameters.call(this, existingContent, parameters);
|
|
699
|
-
this.
|
|
700
|
-
this.
|
|
700
|
+
this.k2u_1 = contentType;
|
|
701
|
+
this.l2u_1 = contentSubtype;
|
|
701
702
|
}
|
|
702
|
-
protoOf(ContentType).
|
|
703
|
+
protoOf(ContentType).m2u = function (name, value) {
|
|
703
704
|
if (hasParameter(this, name, value))
|
|
704
705
|
return this;
|
|
705
|
-
return new ContentType(this.
|
|
706
|
+
return new ContentType(this.k2u_1, this.l2u_1, this.h2s_1, plus_2(this.i2s_1, HeaderValueParam_init_$Create$(name, value)));
|
|
706
707
|
};
|
|
707
|
-
protoOf(ContentType).
|
|
708
|
-
return this.
|
|
708
|
+
protoOf(ContentType).n2u = function () {
|
|
709
|
+
return this.i2s_1.h() ? this : ContentType_init_$Create$(this.k2u_1, this.l2u_1);
|
|
709
710
|
};
|
|
710
|
-
protoOf(ContentType).
|
|
711
|
-
if (!(pattern.
|
|
711
|
+
protoOf(ContentType).o2u = function (pattern) {
|
|
712
|
+
if (!(pattern.k2u_1 === '*') && !equals(pattern.k2u_1, this.k2u_1, true)) {
|
|
712
713
|
return false;
|
|
713
714
|
}
|
|
714
|
-
if (!(pattern.
|
|
715
|
+
if (!(pattern.l2u_1 === '*') && !equals(pattern.l2u_1, this.l2u_1, true)) {
|
|
715
716
|
return false;
|
|
716
717
|
}
|
|
717
|
-
var _iterator__ex2g4s = pattern.
|
|
718
|
+
var _iterator__ex2g4s = pattern.i2s_1.p();
|
|
718
719
|
while (_iterator__ex2g4s.q()) {
|
|
719
720
|
var _destruct__k2r9zo = _iterator__ex2g4s.r();
|
|
720
721
|
var patternName = _destruct__k2r9zo.tg();
|
|
@@ -725,7 +726,7 @@
|
|
|
725
726
|
if (patternValue === '*') {
|
|
726
727
|
tmp_0 = true;
|
|
727
728
|
} else {
|
|
728
|
-
var tmp0 = this.
|
|
729
|
+
var tmp0 = this.i2s_1;
|
|
729
730
|
var tmp$ret$0;
|
|
730
731
|
$l$block_0: {
|
|
731
732
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -742,7 +743,7 @@
|
|
|
742
743
|
var _iterator__ex2g4s_0 = tmp0.p();
|
|
743
744
|
while (_iterator__ex2g4s_0.q()) {
|
|
744
745
|
var element = _iterator__ex2g4s_0.r();
|
|
745
|
-
if (equals(element.
|
|
746
|
+
if (equals(element.k2s_1, patternValue, true)) {
|
|
746
747
|
tmp$ret$0 = true;
|
|
747
748
|
break $l$block_0;
|
|
748
749
|
}
|
|
@@ -753,7 +754,7 @@
|
|
|
753
754
|
}
|
|
754
755
|
tmp = tmp_0;
|
|
755
756
|
} else {
|
|
756
|
-
var value = this.
|
|
757
|
+
var value = this.p2u(patternName);
|
|
757
758
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
758
759
|
}
|
|
759
760
|
var matches = tmp;
|
|
@@ -768,17 +769,17 @@
|
|
|
768
769
|
var tmp_0;
|
|
769
770
|
var tmp_1;
|
|
770
771
|
if (other instanceof ContentType) {
|
|
771
|
-
tmp_1 = equals(this.
|
|
772
|
+
tmp_1 = equals(this.k2u_1, other.k2u_1, true);
|
|
772
773
|
} else {
|
|
773
774
|
tmp_1 = false;
|
|
774
775
|
}
|
|
775
776
|
if (tmp_1) {
|
|
776
|
-
tmp_0 = equals(this.
|
|
777
|
+
tmp_0 = equals(this.l2u_1, other.l2u_1, true);
|
|
777
778
|
} else {
|
|
778
779
|
tmp_0 = false;
|
|
779
780
|
}
|
|
780
781
|
if (tmp_0) {
|
|
781
|
-
tmp = equals_0(this.
|
|
782
|
+
tmp = equals_0(this.i2s_1, other.i2s_1);
|
|
782
783
|
} else {
|
|
783
784
|
tmp = false;
|
|
784
785
|
}
|
|
@@ -787,15 +788,15 @@
|
|
|
787
788
|
protoOf(ContentType).hashCode = function () {
|
|
788
789
|
// Inline function 'kotlin.text.lowercase' call
|
|
789
790
|
// Inline function 'kotlin.js.asDynamic' call
|
|
790
|
-
var tmp$ret$1 = this.
|
|
791
|
+
var tmp$ret$1 = this.k2u_1.toLowerCase();
|
|
791
792
|
var result = getStringHashCode(tmp$ret$1);
|
|
792
793
|
var tmp = result;
|
|
793
794
|
var tmp_0 = imul(31, result);
|
|
794
795
|
// Inline function 'kotlin.text.lowercase' call
|
|
795
796
|
// Inline function 'kotlin.js.asDynamic' call
|
|
796
|
-
var tmp$ret$3 = this.
|
|
797
|
+
var tmp$ret$3 = this.l2u_1.toLowerCase();
|
|
797
798
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
798
|
-
result = result + imul(31, hashCode(this.
|
|
799
|
+
result = result + imul(31, hashCode(this.i2s_1)) | 0;
|
|
799
800
|
return result;
|
|
800
801
|
};
|
|
801
802
|
function BadContentTypeFormatException(value) {
|
|
@@ -803,7 +804,7 @@
|
|
|
803
804
|
captureStack(this, BadContentTypeFormatException);
|
|
804
805
|
}
|
|
805
806
|
function charset(_this__u8e3s4) {
|
|
806
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
807
|
+
var tmp0_safe_receiver = _this__u8e3s4.p2u('charset');
|
|
807
808
|
var tmp;
|
|
808
809
|
if (tmp0_safe_receiver == null) {
|
|
809
810
|
tmp = null;
|
|
@@ -827,16 +828,16 @@
|
|
|
827
828
|
return tmp;
|
|
828
829
|
}
|
|
829
830
|
function withCharset(_this__u8e3s4, charset) {
|
|
830
|
-
return _this__u8e3s4.
|
|
831
|
+
return _this__u8e3s4.m2u('charset', get_name(charset));
|
|
831
832
|
}
|
|
832
833
|
function withCharsetIfNeeded(_this__u8e3s4, charset) {
|
|
833
834
|
var tmp;
|
|
834
835
|
// Inline function 'kotlin.text.lowercase' call
|
|
835
836
|
// Inline function 'kotlin.js.asDynamic' call
|
|
836
|
-
if (!(_this__u8e3s4.
|
|
837
|
+
if (!(_this__u8e3s4.k2u_1.toLowerCase() === 'text')) {
|
|
837
838
|
tmp = _this__u8e3s4;
|
|
838
839
|
} else {
|
|
839
|
-
tmp = _this__u8e3s4.
|
|
840
|
+
tmp = _this__u8e3s4.m2u('charset', get_name(charset));
|
|
840
841
|
}
|
|
841
842
|
return tmp;
|
|
842
843
|
}
|
|
@@ -856,19 +857,19 @@
|
|
|
856
857
|
}
|
|
857
858
|
function HeaderValueWithParameters(content, parameters) {
|
|
858
859
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
859
|
-
this.
|
|
860
|
-
this.
|
|
860
|
+
this.h2s_1 = content;
|
|
861
|
+
this.i2s_1 = parameters;
|
|
861
862
|
}
|
|
862
|
-
protoOf(HeaderValueWithParameters).
|
|
863
|
+
protoOf(HeaderValueWithParameters).p2u = function (name) {
|
|
863
864
|
var inductionVariable = 0;
|
|
864
|
-
var last = get_lastIndex(this.
|
|
865
|
+
var last = get_lastIndex(this.i2s_1);
|
|
865
866
|
if (inductionVariable <= last)
|
|
866
867
|
do {
|
|
867
868
|
var index = inductionVariable;
|
|
868
869
|
inductionVariable = inductionVariable + 1 | 0;
|
|
869
|
-
var parameter = this.
|
|
870
|
-
if (equals(parameter.
|
|
871
|
-
return parameter.
|
|
870
|
+
var parameter = this.i2s_1.u(index);
|
|
871
|
+
if (equals(parameter.j2s_1, name, true)) {
|
|
872
|
+
return parameter.k2s_1;
|
|
872
873
|
}
|
|
873
874
|
}
|
|
874
875
|
while (!(index === last));
|
|
@@ -876,34 +877,34 @@
|
|
|
876
877
|
};
|
|
877
878
|
protoOf(HeaderValueWithParameters).toString = function () {
|
|
878
879
|
var tmp;
|
|
879
|
-
if (this.
|
|
880
|
-
tmp = this.
|
|
880
|
+
if (this.i2s_1.h()) {
|
|
881
|
+
tmp = this.h2s_1;
|
|
881
882
|
} else {
|
|
882
|
-
var tmp_0 = this.
|
|
883
|
+
var tmp_0 = this.h2s_1.length;
|
|
883
884
|
// Inline function 'kotlin.collections.sumOf' call
|
|
884
885
|
var sum = 0;
|
|
885
|
-
var _iterator__ex2g4s = this.
|
|
886
|
+
var _iterator__ex2g4s = this.i2s_1.p();
|
|
886
887
|
while (_iterator__ex2g4s.q()) {
|
|
887
888
|
var element = _iterator__ex2g4s.r();
|
|
888
889
|
var tmp_1 = sum;
|
|
889
|
-
sum = tmp_1 + ((element.
|
|
890
|
+
sum = tmp_1 + ((element.j2s_1.length + element.k2s_1.length | 0) + 3 | 0) | 0;
|
|
890
891
|
}
|
|
891
892
|
var size = tmp_0 + sum | 0;
|
|
892
893
|
// Inline function 'kotlin.apply' call
|
|
893
894
|
var this_0 = StringBuilder_init_$Create$_0(size);
|
|
894
|
-
this_0.r8(this.
|
|
895
|
+
this_0.r8(this.h2s_1);
|
|
895
896
|
var inductionVariable = 0;
|
|
896
|
-
var last = get_lastIndex(this.
|
|
897
|
+
var last = get_lastIndex(this.i2s_1);
|
|
897
898
|
if (inductionVariable <= last)
|
|
898
899
|
do {
|
|
899
900
|
var index = inductionVariable;
|
|
900
901
|
inductionVariable = inductionVariable + 1 | 0;
|
|
901
|
-
var element_0 = this.
|
|
902
|
+
var element_0 = this.i2s_1.u(index);
|
|
902
903
|
this_0.r8('; ');
|
|
903
|
-
this_0.r8(element_0.
|
|
904
|
+
this_0.r8(element_0.j2s_1);
|
|
904
905
|
this_0.r8('=');
|
|
905
906
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
906
|
-
var this_1 = element_0.
|
|
907
|
+
var this_1 = element_0.k2s_1;
|
|
907
908
|
if (needQuotes(this_1))
|
|
908
909
|
this_0.r8(quote(this_1));
|
|
909
910
|
else
|
|
@@ -993,7 +994,7 @@
|
|
|
993
994
|
}
|
|
994
995
|
function append(_this__u8e3s4, name, value) {
|
|
995
996
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
996
|
-
_this__u8e3s4.
|
|
997
|
+
_this__u8e3s4.z2n(name, value.toString());
|
|
997
998
|
}
|
|
998
999
|
function escapeIfNeeded(_this__u8e3s4) {
|
|
999
1000
|
_init_properties_HeaderValueWithParameters_kt__z6luvy();
|
|
@@ -1008,7 +1009,7 @@
|
|
|
1008
1009
|
}
|
|
1009
1010
|
function Companion_1() {
|
|
1010
1011
|
Companion_instance_1 = this;
|
|
1011
|
-
this.
|
|
1012
|
+
this.q2u_1 = EmptyHeaders_instance;
|
|
1012
1013
|
}
|
|
1013
1014
|
var Companion_instance_1;
|
|
1014
1015
|
function Companion_getInstance_1() {
|
|
@@ -1020,33 +1021,33 @@
|
|
|
1020
1021
|
size = size === VOID ? 8 : size;
|
|
1021
1022
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1022
1023
|
}
|
|
1023
|
-
protoOf(HeadersBuilder).
|
|
1024
|
-
return new HeadersImpl(this.
|
|
1024
|
+
protoOf(HeadersBuilder).t2u = function () {
|
|
1025
|
+
return new HeadersImpl(this.u2n_1);
|
|
1025
1026
|
};
|
|
1026
|
-
protoOf(HeadersBuilder).
|
|
1027
|
-
protoOf(StringValuesBuilderImpl).
|
|
1028
|
-
HttpHeaders_getInstance().
|
|
1027
|
+
protoOf(HeadersBuilder).v2n = function (name) {
|
|
1028
|
+
protoOf(StringValuesBuilderImpl).v2n.call(this, name);
|
|
1029
|
+
HttpHeaders_getInstance().q2y(name);
|
|
1029
1030
|
};
|
|
1030
|
-
protoOf(HeadersBuilder).
|
|
1031
|
-
protoOf(StringValuesBuilderImpl).
|
|
1032
|
-
HttpHeaders_getInstance().
|
|
1031
|
+
protoOf(HeadersBuilder).y2n = function (value) {
|
|
1032
|
+
protoOf(StringValuesBuilderImpl).y2n.call(this, value);
|
|
1033
|
+
HttpHeaders_getInstance().r2y(value);
|
|
1033
1034
|
};
|
|
1034
1035
|
function EmptyHeaders() {
|
|
1035
1036
|
}
|
|
1036
|
-
protoOf(EmptyHeaders).
|
|
1037
|
+
protoOf(EmptyHeaders).n2n = function () {
|
|
1037
1038
|
return true;
|
|
1038
1039
|
};
|
|
1039
|
-
protoOf(EmptyHeaders).
|
|
1040
|
+
protoOf(EmptyHeaders).o2n = function (name) {
|
|
1040
1041
|
return null;
|
|
1041
1042
|
};
|
|
1042
|
-
protoOf(EmptyHeaders).
|
|
1043
|
+
protoOf(EmptyHeaders).p2n = function () {
|
|
1043
1044
|
return emptySet();
|
|
1044
1045
|
};
|
|
1045
|
-
protoOf(EmptyHeaders).
|
|
1046
|
+
protoOf(EmptyHeaders).q2n = function () {
|
|
1046
1047
|
return emptySet();
|
|
1047
1048
|
};
|
|
1048
1049
|
protoOf(EmptyHeaders).toString = function () {
|
|
1049
|
-
return 'Headers ' + toString(this.
|
|
1050
|
+
return 'Headers ' + toString(this.q2n());
|
|
1050
1051
|
};
|
|
1051
1052
|
var EmptyHeaders_instance;
|
|
1052
1053
|
function EmptyHeaders_getInstance() {
|
|
@@ -1057,7 +1058,7 @@
|
|
|
1057
1058
|
StringValuesImpl.call(this, true, values);
|
|
1058
1059
|
}
|
|
1059
1060
|
protoOf(HeadersImpl).toString = function () {
|
|
1060
|
-
return 'Headers ' + toString(this.
|
|
1061
|
+
return 'Headers ' + toString(this.q2n());
|
|
1061
1062
|
};
|
|
1062
1063
|
function headersOf(name, value) {
|
|
1063
1064
|
return new HeadersSingleImpl(name, listOf_0(value));
|
|
@@ -1066,7 +1067,7 @@
|
|
|
1066
1067
|
StringValuesSingleImpl.call(this, true, name, values);
|
|
1067
1068
|
}
|
|
1068
1069
|
protoOf(HeadersSingleImpl).toString = function () {
|
|
1069
|
-
return 'Headers ' + toString(this.
|
|
1070
|
+
return 'Headers ' + toString(this.q2n());
|
|
1070
1071
|
};
|
|
1071
1072
|
function HeaderValueParam_init_$Init$(name, value, $this) {
|
|
1072
1073
|
HeaderValueParam.call($this, name, value, false);
|
|
@@ -1076,20 +1077,20 @@
|
|
|
1076
1077
|
return HeaderValueParam_init_$Init$(name, value, objectCreate(protoOf(HeaderValueParam)));
|
|
1077
1078
|
}
|
|
1078
1079
|
function HeaderValueParam(name, value, escapeValue) {
|
|
1079
|
-
this.
|
|
1080
|
-
this.
|
|
1081
|
-
this.
|
|
1080
|
+
this.j2s_1 = name;
|
|
1081
|
+
this.k2s_1 = value;
|
|
1082
|
+
this.l2s_1 = escapeValue;
|
|
1082
1083
|
}
|
|
1083
1084
|
protoOf(HeaderValueParam).equals = function (other) {
|
|
1084
1085
|
var tmp;
|
|
1085
1086
|
var tmp_0;
|
|
1086
1087
|
if (other instanceof HeaderValueParam) {
|
|
1087
|
-
tmp_0 = equals(other.
|
|
1088
|
+
tmp_0 = equals(other.j2s_1, this.j2s_1, true);
|
|
1088
1089
|
} else {
|
|
1089
1090
|
tmp_0 = false;
|
|
1090
1091
|
}
|
|
1091
1092
|
if (tmp_0) {
|
|
1092
|
-
tmp = equals(other.
|
|
1093
|
+
tmp = equals(other.k2s_1, this.k2s_1, true);
|
|
1093
1094
|
} else {
|
|
1094
1095
|
tmp = false;
|
|
1095
1096
|
}
|
|
@@ -1098,38 +1099,38 @@
|
|
|
1098
1099
|
protoOf(HeaderValueParam).hashCode = function () {
|
|
1099
1100
|
// Inline function 'kotlin.text.lowercase' call
|
|
1100
1101
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1101
|
-
var tmp$ret$1 = this.
|
|
1102
|
+
var tmp$ret$1 = this.j2s_1.toLowerCase();
|
|
1102
1103
|
var result = getStringHashCode(tmp$ret$1);
|
|
1103
1104
|
var tmp = result;
|
|
1104
1105
|
var tmp_0 = imul(31, result);
|
|
1105
1106
|
// Inline function 'kotlin.text.lowercase' call
|
|
1106
1107
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1107
|
-
var tmp$ret$3 = this.
|
|
1108
|
+
var tmp$ret$3 = this.k2s_1.toLowerCase();
|
|
1108
1109
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
1109
1110
|
return result;
|
|
1110
1111
|
};
|
|
1111
1112
|
protoOf(HeaderValueParam).tg = function () {
|
|
1112
|
-
return this.
|
|
1113
|
+
return this.j2s_1;
|
|
1113
1114
|
};
|
|
1114
1115
|
protoOf(HeaderValueParam).ug = function () {
|
|
1115
|
-
return this.
|
|
1116
|
+
return this.k2s_1;
|
|
1116
1117
|
};
|
|
1117
1118
|
protoOf(HeaderValueParam).toString = function () {
|
|
1118
|
-
return 'HeaderValueParam(name=' + this.
|
|
1119
|
+
return 'HeaderValueParam(name=' + this.j2s_1 + ', value=' + this.k2s_1 + ', escapeValue=' + this.l2s_1 + ')';
|
|
1119
1120
|
};
|
|
1120
1121
|
function HeaderValue(value, params) {
|
|
1121
1122
|
params = params === VOID ? emptyList() : params;
|
|
1122
|
-
this.
|
|
1123
|
-
this.
|
|
1123
|
+
this.n2s_1 = value;
|
|
1124
|
+
this.o2s_1 = params;
|
|
1124
1125
|
var tmp = this;
|
|
1125
|
-
var tmp0 = this.
|
|
1126
|
+
var tmp0 = this.o2s_1;
|
|
1126
1127
|
var tmp$ret$1;
|
|
1127
1128
|
$l$block: {
|
|
1128
1129
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
1129
1130
|
var _iterator__ex2g4s = tmp0.p();
|
|
1130
1131
|
while (_iterator__ex2g4s.q()) {
|
|
1131
1132
|
var element = _iterator__ex2g4s.r();
|
|
1132
|
-
if (element.
|
|
1133
|
+
if (element.j2s_1 === 'q') {
|
|
1133
1134
|
tmp$ret$1 = element;
|
|
1134
1135
|
break $l$block;
|
|
1135
1136
|
}
|
|
@@ -1137,7 +1138,7 @@
|
|
|
1137
1138
|
tmp$ret$1 = null;
|
|
1138
1139
|
}
|
|
1139
1140
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
1140
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
1141
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k2s_1;
|
|
1141
1142
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : toDoubleOrNull(tmp1_safe_receiver);
|
|
1142
1143
|
var tmp_0;
|
|
1143
1144
|
if (tmp2_safe_receiver == null) {
|
|
@@ -1153,17 +1154,17 @@
|
|
|
1153
1154
|
tmp_0 = tmp_1;
|
|
1154
1155
|
}
|
|
1155
1156
|
var tmp3_elvis_lhs = tmp_0;
|
|
1156
|
-
tmp.
|
|
1157
|
+
tmp.p2s_1 = tmp3_elvis_lhs == null ? 1.0 : tmp3_elvis_lhs;
|
|
1157
1158
|
}
|
|
1158
1159
|
protoOf(HeaderValue).tg = function () {
|
|
1159
|
-
return this.
|
|
1160
|
+
return this.n2s_1;
|
|
1160
1161
|
};
|
|
1161
1162
|
protoOf(HeaderValue).toString = function () {
|
|
1162
|
-
return 'HeaderValue(value=' + this.
|
|
1163
|
+
return 'HeaderValue(value=' + this.n2s_1 + ', params=' + toString(this.o2s_1) + ')';
|
|
1163
1164
|
};
|
|
1164
1165
|
protoOf(HeaderValue).hashCode = function () {
|
|
1165
|
-
var result = getStringHashCode(this.
|
|
1166
|
-
result = imul(result, 31) + hashCode(this.
|
|
1166
|
+
var result = getStringHashCode(this.n2s_1);
|
|
1167
|
+
result = imul(result, 31) + hashCode(this.o2s_1) | 0;
|
|
1167
1168
|
return result;
|
|
1168
1169
|
};
|
|
1169
1170
|
protoOf(HeaderValue).equals = function (other) {
|
|
@@ -1172,9 +1173,9 @@
|
|
|
1172
1173
|
if (!(other instanceof HeaderValue))
|
|
1173
1174
|
return false;
|
|
1174
1175
|
var tmp0_other_with_cast = other instanceof HeaderValue ? other : THROW_CCE();
|
|
1175
|
-
if (!(this.
|
|
1176
|
+
if (!(this.n2s_1 === tmp0_other_with_cast.n2s_1))
|
|
1176
1177
|
return false;
|
|
1177
|
-
if (!equals_0(this.
|
|
1178
|
+
if (!equals_0(this.o2s_1, tmp0_other_with_cast.o2s_1))
|
|
1178
1179
|
return false;
|
|
1179
1180
|
return true;
|
|
1180
1181
|
};
|
|
@@ -1310,16 +1311,16 @@
|
|
|
1310
1311
|
return sortedWith(this_0, tmp$ret$0);
|
|
1311
1312
|
}
|
|
1312
1313
|
function sam$kotlin_Comparator$0(function_0) {
|
|
1313
|
-
this.
|
|
1314
|
+
this.s2y_1 = function_0;
|
|
1314
1315
|
}
|
|
1315
1316
|
protoOf(sam$kotlin_Comparator$0).ne = function (a, b) {
|
|
1316
|
-
return this.
|
|
1317
|
+
return this.s2y_1(a, b);
|
|
1317
1318
|
};
|
|
1318
1319
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
1319
1320
|
return this.ne(a, b);
|
|
1320
1321
|
};
|
|
1321
1322
|
protoOf(sam$kotlin_Comparator$0).s3 = function () {
|
|
1322
|
-
return this.
|
|
1323
|
+
return this.s2y_1;
|
|
1323
1324
|
};
|
|
1324
1325
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
1325
1326
|
var tmp;
|
|
@@ -1357,118 +1358,118 @@
|
|
|
1357
1358
|
}
|
|
1358
1359
|
function parseAndSortHeader$lambda(a, b) {
|
|
1359
1360
|
// Inline function 'kotlin.comparisons.compareValuesBy' call
|
|
1360
|
-
var tmp = b.
|
|
1361
|
-
var tmp$ret$1 = a.
|
|
1361
|
+
var tmp = b.p2s_1;
|
|
1362
|
+
var tmp$ret$1 = a.p2s_1;
|
|
1362
1363
|
return compareValues(tmp, tmp$ret$1);
|
|
1363
1364
|
}
|
|
1364
1365
|
function HttpHeaders() {
|
|
1365
1366
|
HttpHeaders_instance = this;
|
|
1366
|
-
this.
|
|
1367
|
-
this.
|
|
1368
|
-
this.
|
|
1369
|
-
this.
|
|
1370
|
-
this.
|
|
1371
|
-
this.
|
|
1372
|
-
this.
|
|
1373
|
-
this.
|
|
1374
|
-
this.
|
|
1375
|
-
this.
|
|
1376
|
-
this.
|
|
1377
|
-
this.
|
|
1378
|
-
this.
|
|
1379
|
-
this.
|
|
1380
|
-
this.
|
|
1381
|
-
this.
|
|
1382
|
-
this.
|
|
1383
|
-
this.
|
|
1384
|
-
this.
|
|
1385
|
-
this.
|
|
1386
|
-
this.
|
|
1387
|
-
this.
|
|
1388
|
-
this.
|
|
1389
|
-
this.
|
|
1390
|
-
this.
|
|
1391
|
-
this.
|
|
1392
|
-
this.
|
|
1393
|
-
this.
|
|
1394
|
-
this.
|
|
1395
|
-
this.
|
|
1396
|
-
this.
|
|
1397
|
-
this.
|
|
1398
|
-
this.
|
|
1399
|
-
this.
|
|
1400
|
-
this.
|
|
1401
|
-
this.
|
|
1402
|
-
this.
|
|
1403
|
-
this.
|
|
1404
|
-
this.
|
|
1405
|
-
this.
|
|
1406
|
-
this.
|
|
1407
|
-
this.
|
|
1408
|
-
this.
|
|
1409
|
-
this.
|
|
1410
|
-
this.
|
|
1411
|
-
this.
|
|
1412
|
-
this.
|
|
1413
|
-
this.
|
|
1414
|
-
this.
|
|
1415
|
-
this.
|
|
1416
|
-
this.
|
|
1417
|
-
this.
|
|
1418
|
-
this.
|
|
1419
|
-
this.
|
|
1420
|
-
this.
|
|
1421
|
-
this.
|
|
1422
|
-
this.
|
|
1423
|
-
this.
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1427
|
-
this.
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.
|
|
1431
|
-
this.
|
|
1432
|
-
this.
|
|
1433
|
-
this.
|
|
1434
|
-
this.
|
|
1435
|
-
this.
|
|
1436
|
-
this.
|
|
1437
|
-
this.
|
|
1438
|
-
this.
|
|
1439
|
-
this.
|
|
1440
|
-
this.
|
|
1441
|
-
this.
|
|
1442
|
-
this.
|
|
1443
|
-
this.
|
|
1444
|
-
this.
|
|
1445
|
-
this.
|
|
1446
|
-
this.
|
|
1447
|
-
this.
|
|
1448
|
-
this.
|
|
1449
|
-
this.
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1455
|
-
this.
|
|
1456
|
-
this.
|
|
1457
|
-
this.
|
|
1458
|
-
this.
|
|
1459
|
-
this.
|
|
1460
|
-
this.
|
|
1461
|
-
this.
|
|
1462
|
-
this.
|
|
1463
|
-
this.
|
|
1367
|
+
this.u2u_1 = 'Accept';
|
|
1368
|
+
this.v2u_1 = 'Accept-Charset';
|
|
1369
|
+
this.w2u_1 = 'Accept-Encoding';
|
|
1370
|
+
this.x2u_1 = 'Accept-Language';
|
|
1371
|
+
this.y2u_1 = 'Accept-Ranges';
|
|
1372
|
+
this.z2u_1 = 'Age';
|
|
1373
|
+
this.a2v_1 = 'Allow';
|
|
1374
|
+
this.b2v_1 = 'ALPN';
|
|
1375
|
+
this.c2v_1 = 'Authentication-Info';
|
|
1376
|
+
this.d2v_1 = 'Authorization';
|
|
1377
|
+
this.e2v_1 = 'Cache-Control';
|
|
1378
|
+
this.f2v_1 = 'Connection';
|
|
1379
|
+
this.g2v_1 = 'Content-Disposition';
|
|
1380
|
+
this.h2v_1 = 'Content-Encoding';
|
|
1381
|
+
this.i2v_1 = 'Content-Language';
|
|
1382
|
+
this.j2v_1 = 'Content-Length';
|
|
1383
|
+
this.k2v_1 = 'Content-Location';
|
|
1384
|
+
this.l2v_1 = 'Content-Range';
|
|
1385
|
+
this.m2v_1 = 'Content-Type';
|
|
1386
|
+
this.n2v_1 = 'Cookie';
|
|
1387
|
+
this.o2v_1 = 'DASL';
|
|
1388
|
+
this.p2v_1 = 'Date';
|
|
1389
|
+
this.q2v_1 = 'DAV';
|
|
1390
|
+
this.r2v_1 = 'Depth';
|
|
1391
|
+
this.s2v_1 = 'Destination';
|
|
1392
|
+
this.t2v_1 = 'ETag';
|
|
1393
|
+
this.u2v_1 = 'Expect';
|
|
1394
|
+
this.v2v_1 = 'Expires';
|
|
1395
|
+
this.w2v_1 = 'From';
|
|
1396
|
+
this.x2v_1 = 'Forwarded';
|
|
1397
|
+
this.y2v_1 = 'Host';
|
|
1398
|
+
this.z2v_1 = 'HTTP2-Settings';
|
|
1399
|
+
this.a2w_1 = 'If';
|
|
1400
|
+
this.b2w_1 = 'If-Match';
|
|
1401
|
+
this.c2w_1 = 'If-Modified-Since';
|
|
1402
|
+
this.d2w_1 = 'If-None-Match';
|
|
1403
|
+
this.e2w_1 = 'If-Range';
|
|
1404
|
+
this.f2w_1 = 'If-Schedule-Tag-Match';
|
|
1405
|
+
this.g2w_1 = 'If-Unmodified-Since';
|
|
1406
|
+
this.h2w_1 = 'Last-Modified';
|
|
1407
|
+
this.i2w_1 = 'Location';
|
|
1408
|
+
this.j2w_1 = 'Lock-Token';
|
|
1409
|
+
this.k2w_1 = 'Link';
|
|
1410
|
+
this.l2w_1 = 'Max-Forwards';
|
|
1411
|
+
this.m2w_1 = 'MIME-Version';
|
|
1412
|
+
this.n2w_1 = 'Ordering-Type';
|
|
1413
|
+
this.o2w_1 = 'Origin';
|
|
1414
|
+
this.p2w_1 = 'Overwrite';
|
|
1415
|
+
this.q2w_1 = 'Position';
|
|
1416
|
+
this.r2w_1 = 'Pragma';
|
|
1417
|
+
this.s2w_1 = 'Prefer';
|
|
1418
|
+
this.t2w_1 = 'Preference-Applied';
|
|
1419
|
+
this.u2w_1 = 'Proxy-Authenticate';
|
|
1420
|
+
this.v2w_1 = 'Proxy-Authentication-Info';
|
|
1421
|
+
this.w2w_1 = 'Proxy-Authorization';
|
|
1422
|
+
this.x2w_1 = 'Public-Key-Pins';
|
|
1423
|
+
this.y2w_1 = 'Public-Key-Pins-Report-Only';
|
|
1424
|
+
this.z2w_1 = 'Range';
|
|
1425
|
+
this.a2x_1 = 'Referer';
|
|
1426
|
+
this.b2x_1 = 'Retry-After';
|
|
1427
|
+
this.c2x_1 = 'Schedule-Reply';
|
|
1428
|
+
this.d2x_1 = 'Schedule-Tag';
|
|
1429
|
+
this.e2x_1 = 'Sec-WebSocket-Accept';
|
|
1430
|
+
this.f2x_1 = 'Sec-WebSocket-Extensions';
|
|
1431
|
+
this.g2x_1 = 'Sec-WebSocket-Key';
|
|
1432
|
+
this.h2x_1 = 'Sec-WebSocket-Protocol';
|
|
1433
|
+
this.i2x_1 = 'Sec-WebSocket-Version';
|
|
1434
|
+
this.j2x_1 = 'Server';
|
|
1435
|
+
this.k2x_1 = 'Set-Cookie';
|
|
1436
|
+
this.l2x_1 = 'SLUG';
|
|
1437
|
+
this.m2x_1 = 'Strict-Transport-Security';
|
|
1438
|
+
this.n2x_1 = 'TE';
|
|
1439
|
+
this.o2x_1 = 'Timeout';
|
|
1440
|
+
this.p2x_1 = 'Trailer';
|
|
1441
|
+
this.q2x_1 = 'Transfer-Encoding';
|
|
1442
|
+
this.r2x_1 = 'Upgrade';
|
|
1443
|
+
this.s2x_1 = 'User-Agent';
|
|
1444
|
+
this.t2x_1 = 'Vary';
|
|
1445
|
+
this.u2x_1 = 'Via';
|
|
1446
|
+
this.v2x_1 = 'Warning';
|
|
1447
|
+
this.w2x_1 = 'WWW-Authenticate';
|
|
1448
|
+
this.x2x_1 = 'Access-Control-Allow-Origin';
|
|
1449
|
+
this.y2x_1 = 'Access-Control-Allow-Methods';
|
|
1450
|
+
this.z2x_1 = 'Access-Control-Allow-Credentials';
|
|
1451
|
+
this.a2y_1 = 'Access-Control-Allow-Headers';
|
|
1452
|
+
this.b2y_1 = 'Access-Control-Request-Method';
|
|
1453
|
+
this.c2y_1 = 'Access-Control-Request-Headers';
|
|
1454
|
+
this.d2y_1 = 'Access-Control-Expose-Headers';
|
|
1455
|
+
this.e2y_1 = 'Access-Control-Max-Age';
|
|
1456
|
+
this.f2y_1 = 'X-Http-Method-Override';
|
|
1457
|
+
this.g2y_1 = 'X-Forwarded-Host';
|
|
1458
|
+
this.h2y_1 = 'X-Forwarded-Server';
|
|
1459
|
+
this.i2y_1 = 'X-Forwarded-Proto';
|
|
1460
|
+
this.j2y_1 = 'X-Forwarded-For';
|
|
1461
|
+
this.k2y_1 = 'X-Forwarded-Port';
|
|
1462
|
+
this.l2y_1 = 'X-Request-ID';
|
|
1463
|
+
this.m2y_1 = 'X-Correlation-ID';
|
|
1464
|
+
this.n2y_1 = 'X-Total-Count';
|
|
1464
1465
|
var tmp = this;
|
|
1465
1466
|
// Inline function 'kotlin.arrayOf' call
|
|
1466
1467
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1467
1468
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1468
|
-
tmp.
|
|
1469
|
-
this.
|
|
1469
|
+
tmp.o2y_1 = [this.q2x_1, this.r2x_1];
|
|
1470
|
+
this.p2y_1 = asList(this.o2y_1);
|
|
1470
1471
|
}
|
|
1471
|
-
protoOf(HttpHeaders).
|
|
1472
|
+
protoOf(HttpHeaders).q2y = function (name) {
|
|
1472
1473
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1473
1474
|
var index = 0;
|
|
1474
1475
|
var inductionVariable = 0;
|
|
@@ -1482,7 +1483,7 @@
|
|
|
1482
1483
|
}
|
|
1483
1484
|
}
|
|
1484
1485
|
};
|
|
1485
|
-
protoOf(HttpHeaders).
|
|
1486
|
+
protoOf(HttpHeaders).r2y = function (value) {
|
|
1486
1487
|
// Inline function 'kotlin.text.forEachIndexed' call
|
|
1487
1488
|
var index = 0;
|
|
1488
1489
|
var inductionVariable = 0;
|
|
@@ -1512,8 +1513,8 @@
|
|
|
1512
1513
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1513
1514
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1514
1515
|
captureStack(this, IllegalHeaderNameException);
|
|
1515
|
-
this.
|
|
1516
|
-
this.
|
|
1516
|
+
this.t2y_1 = headerName;
|
|
1517
|
+
this.u2y_1 = position;
|
|
1517
1518
|
}
|
|
1518
1519
|
function IllegalHeaderValueException(headerValue, position) {
|
|
1519
1520
|
var tmp = "Header value '" + headerValue + "' contains illegal character '" + toString_0(charSequenceGet(headerValue, position)) + "'";
|
|
@@ -1522,15 +1523,15 @@
|
|
|
1522
1523
|
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
1523
1524
|
IllegalArgumentException_init_$Init$(tmp + (' (code ' + (tmp$ret$0 & 255) + ')'), this);
|
|
1524
1525
|
captureStack(this, IllegalHeaderValueException);
|
|
1525
|
-
this.
|
|
1526
|
-
this.
|
|
1526
|
+
this.v2y_1 = headerValue;
|
|
1527
|
+
this.w2y_1 = position;
|
|
1527
1528
|
}
|
|
1528
1529
|
function UnsafeHeaderException(header) {
|
|
1529
1530
|
IllegalArgumentException_init_$Init$('Header(s) ' + header + ' are controlled by the engine and ' + 'cannot be set explicitly', this);
|
|
1530
1531
|
captureStack(this, UnsafeHeaderException);
|
|
1531
1532
|
}
|
|
1532
1533
|
function contentLength(_this__u8e3s4) {
|
|
1533
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1534
|
+
var tmp0_safe_receiver = _this__u8e3s4.x2y().h2m(HttpHeaders_getInstance().j2v_1);
|
|
1534
1535
|
return tmp0_safe_receiver == null ? null : toLong(tmp0_safe_receiver);
|
|
1535
1536
|
}
|
|
1536
1537
|
function charset_0(_this__u8e3s4) {
|
|
@@ -1538,37 +1539,37 @@
|
|
|
1538
1539
|
return tmp0_safe_receiver == null ? null : charset(tmp0_safe_receiver);
|
|
1539
1540
|
}
|
|
1540
1541
|
function contentType(_this__u8e3s4) {
|
|
1541
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1542
|
+
var tmp0_safe_receiver = _this__u8e3s4.x2y().h2m(HttpHeaders_getInstance().m2v_1);
|
|
1542
1543
|
var tmp;
|
|
1543
1544
|
if (tmp0_safe_receiver == null) {
|
|
1544
1545
|
tmp = null;
|
|
1545
1546
|
} else {
|
|
1546
1547
|
// Inline function 'kotlin.let' call
|
|
1547
|
-
tmp = Companion_getInstance().
|
|
1548
|
+
tmp = Companion_getInstance().vl(tmp0_safe_receiver);
|
|
1548
1549
|
}
|
|
1549
1550
|
return tmp;
|
|
1550
1551
|
}
|
|
1551
1552
|
function contentType_0(_this__u8e3s4) {
|
|
1552
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
1553
|
+
var tmp0_safe_receiver = _this__u8e3s4.x2y().h2m(HttpHeaders_getInstance().m2v_1);
|
|
1553
1554
|
var tmp;
|
|
1554
1555
|
if (tmp0_safe_receiver == null) {
|
|
1555
1556
|
tmp = null;
|
|
1556
1557
|
} else {
|
|
1557
1558
|
// Inline function 'kotlin.let' call
|
|
1558
|
-
tmp = Companion_getInstance().
|
|
1559
|
+
tmp = Companion_getInstance().vl(tmp0_safe_receiver);
|
|
1559
1560
|
}
|
|
1560
1561
|
return tmp;
|
|
1561
1562
|
}
|
|
1562
1563
|
function Companion_2() {
|
|
1563
1564
|
Companion_instance_2 = this;
|
|
1564
|
-
this.
|
|
1565
|
-
this.
|
|
1566
|
-
this.
|
|
1567
|
-
this.
|
|
1568
|
-
this.
|
|
1569
|
-
this.
|
|
1570
|
-
this.
|
|
1571
|
-
this.
|
|
1565
|
+
this.y2y_1 = new HttpMethod('GET');
|
|
1566
|
+
this.z2y_1 = new HttpMethod('POST');
|
|
1567
|
+
this.a2z_1 = new HttpMethod('PUT');
|
|
1568
|
+
this.b2z_1 = new HttpMethod('PATCH');
|
|
1569
|
+
this.c2z_1 = new HttpMethod('DELETE');
|
|
1570
|
+
this.d2z_1 = new HttpMethod('HEAD');
|
|
1571
|
+
this.e2z_1 = new HttpMethod('OPTIONS');
|
|
1572
|
+
this.f2z_1 = listOf([this.y2y_1, this.z2y_1, this.a2z_1, this.b2z_1, this.c2z_1, this.d2z_1, this.e2z_1]);
|
|
1572
1573
|
}
|
|
1573
1574
|
var Companion_instance_2;
|
|
1574
1575
|
function Companion_getInstance_2() {
|
|
@@ -1578,13 +1579,13 @@
|
|
|
1578
1579
|
}
|
|
1579
1580
|
function HttpMethod(value) {
|
|
1580
1581
|
Companion_getInstance_2();
|
|
1581
|
-
this.
|
|
1582
|
+
this.g2z_1 = value;
|
|
1582
1583
|
}
|
|
1583
1584
|
protoOf(HttpMethod).toString = function () {
|
|
1584
|
-
return this.
|
|
1585
|
+
return this.g2z_1;
|
|
1585
1586
|
};
|
|
1586
1587
|
protoOf(HttpMethod).hashCode = function () {
|
|
1587
|
-
return getStringHashCode(this.
|
|
1588
|
+
return getStringHashCode(this.g2z_1);
|
|
1588
1589
|
};
|
|
1589
1590
|
protoOf(HttpMethod).equals = function (other) {
|
|
1590
1591
|
if (this === other)
|
|
@@ -1592,17 +1593,17 @@
|
|
|
1592
1593
|
if (!(other instanceof HttpMethod))
|
|
1593
1594
|
return false;
|
|
1594
1595
|
var tmp0_other_with_cast = other instanceof HttpMethod ? other : THROW_CCE();
|
|
1595
|
-
if (!(this.
|
|
1596
|
+
if (!(this.g2z_1 === tmp0_other_with_cast.g2z_1))
|
|
1596
1597
|
return false;
|
|
1597
1598
|
return true;
|
|
1598
1599
|
};
|
|
1599
1600
|
function Companion_3() {
|
|
1600
1601
|
Companion_instance_3 = this;
|
|
1601
|
-
this.
|
|
1602
|
-
this.
|
|
1603
|
-
this.
|
|
1604
|
-
this.
|
|
1605
|
-
this.
|
|
1602
|
+
this.h2z_1 = new HttpProtocolVersion('HTTP', 2, 0);
|
|
1603
|
+
this.i2z_1 = new HttpProtocolVersion('HTTP', 1, 1);
|
|
1604
|
+
this.j2z_1 = new HttpProtocolVersion('HTTP', 1, 0);
|
|
1605
|
+
this.k2z_1 = new HttpProtocolVersion('SPDY', 3, 0);
|
|
1606
|
+
this.l2z_1 = new HttpProtocolVersion('QUIC', 1, 0);
|
|
1606
1607
|
}
|
|
1607
1608
|
var Companion_instance_3;
|
|
1608
1609
|
function Companion_getInstance_3() {
|
|
@@ -1612,17 +1613,17 @@
|
|
|
1612
1613
|
}
|
|
1613
1614
|
function HttpProtocolVersion(name, major, minor) {
|
|
1614
1615
|
Companion_getInstance_3();
|
|
1615
|
-
this.
|
|
1616
|
-
this.
|
|
1617
|
-
this.
|
|
1616
|
+
this.m2z_1 = name;
|
|
1617
|
+
this.n2z_1 = major;
|
|
1618
|
+
this.o2z_1 = minor;
|
|
1618
1619
|
}
|
|
1619
1620
|
protoOf(HttpProtocolVersion).toString = function () {
|
|
1620
|
-
return this.
|
|
1621
|
+
return this.m2z_1 + '/' + this.n2z_1 + '.' + this.o2z_1;
|
|
1621
1622
|
};
|
|
1622
1623
|
protoOf(HttpProtocolVersion).hashCode = function () {
|
|
1623
|
-
var result = getStringHashCode(this.
|
|
1624
|
-
result = imul(result, 31) + this.
|
|
1625
|
-
result = imul(result, 31) + this.
|
|
1624
|
+
var result = getStringHashCode(this.m2z_1);
|
|
1625
|
+
result = imul(result, 31) + this.n2z_1 | 0;
|
|
1626
|
+
result = imul(result, 31) + this.o2z_1 | 0;
|
|
1626
1627
|
return result;
|
|
1627
1628
|
};
|
|
1628
1629
|
protoOf(HttpProtocolVersion).equals = function (other) {
|
|
@@ -1631,83 +1632,83 @@
|
|
|
1631
1632
|
if (!(other instanceof HttpProtocolVersion))
|
|
1632
1633
|
return false;
|
|
1633
1634
|
var tmp0_other_with_cast = other instanceof HttpProtocolVersion ? other : THROW_CCE();
|
|
1634
|
-
if (!(this.
|
|
1635
|
+
if (!(this.m2z_1 === tmp0_other_with_cast.m2z_1))
|
|
1635
1636
|
return false;
|
|
1636
|
-
if (!(this.
|
|
1637
|
+
if (!(this.n2z_1 === tmp0_other_with_cast.n2z_1))
|
|
1637
1638
|
return false;
|
|
1638
|
-
if (!(this.
|
|
1639
|
+
if (!(this.o2z_1 === tmp0_other_with_cast.o2z_1))
|
|
1639
1640
|
return false;
|
|
1640
1641
|
return true;
|
|
1641
1642
|
};
|
|
1642
1643
|
function Companion_4() {
|
|
1643
1644
|
Companion_instance_4 = this;
|
|
1644
|
-
this.
|
|
1645
|
-
this.
|
|
1646
|
-
this.
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1658
|
-
this.
|
|
1659
|
-
this.
|
|
1660
|
-
this.
|
|
1661
|
-
this.
|
|
1662
|
-
this.
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
this.
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1668
|
-
this.
|
|
1669
|
-
this.
|
|
1670
|
-
this.
|
|
1671
|
-
this.
|
|
1672
|
-
this.
|
|
1673
|
-
this.
|
|
1674
|
-
this.
|
|
1675
|
-
this.
|
|
1676
|
-
this.
|
|
1677
|
-
this.
|
|
1678
|
-
this.
|
|
1679
|
-
this.
|
|
1680
|
-
this.
|
|
1681
|
-
this.
|
|
1682
|
-
this.
|
|
1683
|
-
this.
|
|
1684
|
-
this.
|
|
1685
|
-
this.
|
|
1686
|
-
this.
|
|
1687
|
-
this.
|
|
1688
|
-
this.
|
|
1689
|
-
this.
|
|
1690
|
-
this.
|
|
1691
|
-
this.
|
|
1692
|
-
this.
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1695
|
-
this.
|
|
1696
|
-
this.
|
|
1697
|
-
this.
|
|
1645
|
+
this.p2z_1 = new HttpStatusCode(100, 'Continue');
|
|
1646
|
+
this.q2z_1 = new HttpStatusCode(101, 'Switching Protocols');
|
|
1647
|
+
this.r2z_1 = new HttpStatusCode(102, 'Processing');
|
|
1648
|
+
this.s2z_1 = new HttpStatusCode(200, 'OK');
|
|
1649
|
+
this.t2z_1 = new HttpStatusCode(201, 'Created');
|
|
1650
|
+
this.u2z_1 = new HttpStatusCode(202, 'Accepted');
|
|
1651
|
+
this.v2z_1 = new HttpStatusCode(203, 'Non-Authoritative Information');
|
|
1652
|
+
this.w2z_1 = new HttpStatusCode(204, 'No Content');
|
|
1653
|
+
this.x2z_1 = new HttpStatusCode(205, 'Reset Content');
|
|
1654
|
+
this.y2z_1 = new HttpStatusCode(206, 'Partial Content');
|
|
1655
|
+
this.z2z_1 = new HttpStatusCode(207, 'Multi-Status');
|
|
1656
|
+
this.a30_1 = new HttpStatusCode(300, 'Multiple Choices');
|
|
1657
|
+
this.b30_1 = new HttpStatusCode(301, 'Moved Permanently');
|
|
1658
|
+
this.c30_1 = new HttpStatusCode(302, 'Found');
|
|
1659
|
+
this.d30_1 = new HttpStatusCode(303, 'See Other');
|
|
1660
|
+
this.e30_1 = new HttpStatusCode(304, 'Not Modified');
|
|
1661
|
+
this.f30_1 = new HttpStatusCode(305, 'Use Proxy');
|
|
1662
|
+
this.g30_1 = new HttpStatusCode(306, 'Switch Proxy');
|
|
1663
|
+
this.h30_1 = new HttpStatusCode(307, 'Temporary Redirect');
|
|
1664
|
+
this.i30_1 = new HttpStatusCode(308, 'Permanent Redirect');
|
|
1665
|
+
this.j30_1 = new HttpStatusCode(400, 'Bad Request');
|
|
1666
|
+
this.k30_1 = new HttpStatusCode(401, 'Unauthorized');
|
|
1667
|
+
this.l30_1 = new HttpStatusCode(402, 'Payment Required');
|
|
1668
|
+
this.m30_1 = new HttpStatusCode(403, 'Forbidden');
|
|
1669
|
+
this.n30_1 = new HttpStatusCode(404, 'Not Found');
|
|
1670
|
+
this.o30_1 = new HttpStatusCode(405, 'Method Not Allowed');
|
|
1671
|
+
this.p30_1 = new HttpStatusCode(406, 'Not Acceptable');
|
|
1672
|
+
this.q30_1 = new HttpStatusCode(407, 'Proxy Authentication Required');
|
|
1673
|
+
this.r30_1 = new HttpStatusCode(408, 'Request Timeout');
|
|
1674
|
+
this.s30_1 = new HttpStatusCode(409, 'Conflict');
|
|
1675
|
+
this.t30_1 = new HttpStatusCode(410, 'Gone');
|
|
1676
|
+
this.u30_1 = new HttpStatusCode(411, 'Length Required');
|
|
1677
|
+
this.v30_1 = new HttpStatusCode(412, 'Precondition Failed');
|
|
1678
|
+
this.w30_1 = new HttpStatusCode(413, 'Payload Too Large');
|
|
1679
|
+
this.x30_1 = new HttpStatusCode(414, 'Request-URI Too Long');
|
|
1680
|
+
this.y30_1 = new HttpStatusCode(415, 'Unsupported Media Type');
|
|
1681
|
+
this.z30_1 = new HttpStatusCode(416, 'Requested Range Not Satisfiable');
|
|
1682
|
+
this.a31_1 = new HttpStatusCode(417, 'Expectation Failed');
|
|
1683
|
+
this.b31_1 = new HttpStatusCode(422, 'Unprocessable Entity');
|
|
1684
|
+
this.c31_1 = new HttpStatusCode(423, 'Locked');
|
|
1685
|
+
this.d31_1 = new HttpStatusCode(424, 'Failed Dependency');
|
|
1686
|
+
this.e31_1 = new HttpStatusCode(425, 'Too Early');
|
|
1687
|
+
this.f31_1 = new HttpStatusCode(426, 'Upgrade Required');
|
|
1688
|
+
this.g31_1 = new HttpStatusCode(429, 'Too Many Requests');
|
|
1689
|
+
this.h31_1 = new HttpStatusCode(431, 'Request Header Fields Too Large');
|
|
1690
|
+
this.i31_1 = new HttpStatusCode(500, 'Internal Server Error');
|
|
1691
|
+
this.j31_1 = new HttpStatusCode(501, 'Not Implemented');
|
|
1692
|
+
this.k31_1 = new HttpStatusCode(502, 'Bad Gateway');
|
|
1693
|
+
this.l31_1 = new HttpStatusCode(503, 'Service Unavailable');
|
|
1694
|
+
this.m31_1 = new HttpStatusCode(504, 'Gateway Timeout');
|
|
1695
|
+
this.n31_1 = new HttpStatusCode(505, 'HTTP Version Not Supported');
|
|
1696
|
+
this.o31_1 = new HttpStatusCode(506, 'Variant Also Negotiates');
|
|
1697
|
+
this.p31_1 = new HttpStatusCode(507, 'Insufficient Storage');
|
|
1698
|
+
this.q31_1 = allStatusCodes();
|
|
1698
1699
|
var tmp = this;
|
|
1699
1700
|
// Inline function 'kotlin.collections.associateBy' call
|
|
1700
|
-
var this_0 = this.
|
|
1701
|
+
var this_0 = this.q31_1;
|
|
1701
1702
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
1702
1703
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
1703
1704
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
1704
1705
|
var _iterator__ex2g4s = this_0.p();
|
|
1705
1706
|
while (_iterator__ex2g4s.q()) {
|
|
1706
1707
|
var element = _iterator__ex2g4s.r();
|
|
1707
|
-
var tmp$ret$0 = element.
|
|
1708
|
+
var tmp$ret$0 = element.s31_1;
|
|
1708
1709
|
destination.n2(tmp$ret$0, element);
|
|
1709
1710
|
}
|
|
1710
|
-
tmp.
|
|
1711
|
+
tmp.r31_1 = destination;
|
|
1711
1712
|
}
|
|
1712
1713
|
var Companion_instance_4;
|
|
1713
1714
|
function Companion_getInstance_4() {
|
|
@@ -1717,36 +1718,36 @@
|
|
|
1717
1718
|
}
|
|
1718
1719
|
function HttpStatusCode(value, description) {
|
|
1719
1720
|
Companion_getInstance_4();
|
|
1720
|
-
this.
|
|
1721
|
-
this.
|
|
1721
|
+
this.s31_1 = value;
|
|
1722
|
+
this.t31_1 = description;
|
|
1722
1723
|
}
|
|
1723
1724
|
protoOf(HttpStatusCode).toString = function () {
|
|
1724
|
-
return '' + this.
|
|
1725
|
+
return '' + this.s31_1 + ' ' + this.t31_1;
|
|
1725
1726
|
};
|
|
1726
1727
|
protoOf(HttpStatusCode).equals = function (other) {
|
|
1727
1728
|
var tmp;
|
|
1728
1729
|
if (other instanceof HttpStatusCode) {
|
|
1729
|
-
tmp = other.
|
|
1730
|
+
tmp = other.s31_1 === this.s31_1;
|
|
1730
1731
|
} else {
|
|
1731
1732
|
tmp = false;
|
|
1732
1733
|
}
|
|
1733
1734
|
return tmp;
|
|
1734
1735
|
};
|
|
1735
1736
|
protoOf(HttpStatusCode).hashCode = function () {
|
|
1736
|
-
return this.
|
|
1737
|
+
return this.s31_1;
|
|
1737
1738
|
};
|
|
1738
|
-
protoOf(HttpStatusCode).
|
|
1739
|
-
return this.
|
|
1739
|
+
protoOf(HttpStatusCode).u31 = function (other) {
|
|
1740
|
+
return this.s31_1 - other.s31_1 | 0;
|
|
1740
1741
|
};
|
|
1741
1742
|
protoOf(HttpStatusCode).d = function (other) {
|
|
1742
|
-
return this.
|
|
1743
|
+
return this.u31(other instanceof HttpStatusCode ? other : THROW_CCE());
|
|
1743
1744
|
};
|
|
1744
1745
|
function allStatusCodes() {
|
|
1745
|
-
return listOf([Companion_getInstance_4().
|
|
1746
|
+
return listOf([Companion_getInstance_4().p2z_1, Companion_getInstance_4().q2z_1, Companion_getInstance_4().r2z_1, Companion_getInstance_4().s2z_1, Companion_getInstance_4().t2z_1, Companion_getInstance_4().u2z_1, Companion_getInstance_4().v2z_1, Companion_getInstance_4().w2z_1, Companion_getInstance_4().x2z_1, Companion_getInstance_4().y2z_1, Companion_getInstance_4().z2z_1, Companion_getInstance_4().a30_1, Companion_getInstance_4().b30_1, Companion_getInstance_4().c30_1, Companion_getInstance_4().d30_1, Companion_getInstance_4().e30_1, Companion_getInstance_4().f30_1, Companion_getInstance_4().g30_1, Companion_getInstance_4().h30_1, Companion_getInstance_4().i30_1, Companion_getInstance_4().j30_1, Companion_getInstance_4().k30_1, Companion_getInstance_4().l30_1, Companion_getInstance_4().m30_1, Companion_getInstance_4().n30_1, Companion_getInstance_4().o30_1, Companion_getInstance_4().p30_1, Companion_getInstance_4().q30_1, Companion_getInstance_4().r30_1, Companion_getInstance_4().s30_1, Companion_getInstance_4().t30_1, Companion_getInstance_4().u30_1, Companion_getInstance_4().v30_1, Companion_getInstance_4().w30_1, Companion_getInstance_4().x30_1, Companion_getInstance_4().y30_1, Companion_getInstance_4().z30_1, Companion_getInstance_4().a31_1, Companion_getInstance_4().b31_1, Companion_getInstance_4().c31_1, Companion_getInstance_4().d31_1, Companion_getInstance_4().e31_1, Companion_getInstance_4().f31_1, Companion_getInstance_4().g31_1, Companion_getInstance_4().h31_1, Companion_getInstance_4().i31_1, Companion_getInstance_4().j31_1, Companion_getInstance_4().k31_1, Companion_getInstance_4().l31_1, Companion_getInstance_4().m31_1, Companion_getInstance_4().n31_1, Companion_getInstance_4().o31_1, Companion_getInstance_4().p31_1]);
|
|
1746
1747
|
}
|
|
1747
1748
|
function Companion_5() {
|
|
1748
1749
|
Companion_instance_5 = this;
|
|
1749
|
-
this.
|
|
1750
|
+
this.v31_1 = EmptyParameters_instance;
|
|
1750
1751
|
}
|
|
1751
1752
|
var Companion_instance_5;
|
|
1752
1753
|
function Companion_getInstance_5() {
|
|
@@ -1758,23 +1759,23 @@
|
|
|
1758
1759
|
}
|
|
1759
1760
|
function EmptyParameters() {
|
|
1760
1761
|
}
|
|
1761
|
-
protoOf(EmptyParameters).
|
|
1762
|
+
protoOf(EmptyParameters).n2n = function () {
|
|
1762
1763
|
return true;
|
|
1763
1764
|
};
|
|
1764
|
-
protoOf(EmptyParameters).
|
|
1765
|
+
protoOf(EmptyParameters).o2n = function (name) {
|
|
1765
1766
|
return null;
|
|
1766
1767
|
};
|
|
1767
|
-
protoOf(EmptyParameters).
|
|
1768
|
+
protoOf(EmptyParameters).p2n = function () {
|
|
1768
1769
|
return emptySet();
|
|
1769
1770
|
};
|
|
1770
|
-
protoOf(EmptyParameters).
|
|
1771
|
+
protoOf(EmptyParameters).q2n = function () {
|
|
1771
1772
|
return emptySet();
|
|
1772
1773
|
};
|
|
1773
1774
|
protoOf(EmptyParameters).h = function () {
|
|
1774
1775
|
return true;
|
|
1775
1776
|
};
|
|
1776
1777
|
protoOf(EmptyParameters).toString = function () {
|
|
1777
|
-
return 'Parameters ' + toString(this.
|
|
1778
|
+
return 'Parameters ' + toString(this.q2n());
|
|
1778
1779
|
};
|
|
1779
1780
|
protoOf(EmptyParameters).equals = function (other) {
|
|
1780
1781
|
var tmp;
|
|
@@ -1797,15 +1798,15 @@
|
|
|
1797
1798
|
size = size === VOID ? 8 : size;
|
|
1798
1799
|
StringValuesBuilderImpl.call(this, true, size);
|
|
1799
1800
|
}
|
|
1800
|
-
protoOf(ParametersBuilderImpl).
|
|
1801
|
-
return new ParametersImpl(this.
|
|
1801
|
+
protoOf(ParametersBuilderImpl).t2u = function () {
|
|
1802
|
+
return new ParametersImpl(this.u2n_1);
|
|
1802
1803
|
};
|
|
1803
1804
|
function ParametersImpl(values) {
|
|
1804
1805
|
values = values === VOID ? emptyMap() : values;
|
|
1805
1806
|
StringValuesImpl.call(this, true, values);
|
|
1806
1807
|
}
|
|
1807
1808
|
protoOf(ParametersImpl).toString = function () {
|
|
1808
|
-
return 'Parameters ' + toString(this.
|
|
1809
|
+
return 'Parameters ' + toString(this.q2n());
|
|
1809
1810
|
};
|
|
1810
1811
|
function parseQueryString(query, startIndex, limit, decode) {
|
|
1811
1812
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -1813,14 +1814,14 @@
|
|
|
1813
1814
|
decode = decode === VOID ? true : decode;
|
|
1814
1815
|
var tmp;
|
|
1815
1816
|
if (startIndex > get_lastIndex_0(query)) {
|
|
1816
|
-
tmp = Companion_getInstance_5().
|
|
1817
|
+
tmp = Companion_getInstance_5().v31_1;
|
|
1817
1818
|
} else {
|
|
1818
1819
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
1819
1820
|
Companion_getInstance_5();
|
|
1820
1821
|
// Inline function 'kotlin.apply' call
|
|
1821
1822
|
var this_0 = ParametersBuilder();
|
|
1822
1823
|
parse(this_0, query, startIndex, limit, decode);
|
|
1823
|
-
tmp = this_0.
|
|
1824
|
+
tmp = this_0.t2u();
|
|
1824
1825
|
}
|
|
1825
1826
|
return tmp;
|
|
1826
1827
|
}
|
|
@@ -1869,7 +1870,7 @@
|
|
|
1869
1870
|
tmp = query.substring(spaceNameIndex, spaceEndIndex);
|
|
1870
1871
|
}
|
|
1871
1872
|
var name = tmp;
|
|
1872
|
-
_this__u8e3s4.
|
|
1873
|
+
_this__u8e3s4.w2n(name, emptyList());
|
|
1873
1874
|
}
|
|
1874
1875
|
return Unit_instance;
|
|
1875
1876
|
}
|
|
@@ -1896,7 +1897,7 @@
|
|
|
1896
1897
|
tmp_1 = query.substring(spaceValueIndex, spaceEndIndex_0);
|
|
1897
1898
|
}
|
|
1898
1899
|
var value = tmp_1;
|
|
1899
|
-
_this__u8e3s4.
|
|
1900
|
+
_this__u8e3s4.z2n(name_0, value);
|
|
1900
1901
|
}
|
|
1901
1902
|
}
|
|
1902
1903
|
function trimStart(start, end, query) {
|
|
@@ -1916,25 +1917,25 @@
|
|
|
1916
1917
|
function applyOrigin($this) {
|
|
1917
1918
|
var tmp;
|
|
1918
1919
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
1919
|
-
var this_0 = $this.
|
|
1920
|
+
var this_0 = $this.y31_1;
|
|
1920
1921
|
if (charSequenceLength(this_0) > 0) {
|
|
1921
1922
|
tmp = true;
|
|
1922
1923
|
} else {
|
|
1923
|
-
tmp = $this.
|
|
1924
|
+
tmp = $this.k32().i32_1 === 'file';
|
|
1924
1925
|
}
|
|
1925
1926
|
if (tmp)
|
|
1926
1927
|
return Unit_instance;
|
|
1927
|
-
$this.
|
|
1928
|
-
if ($this.
|
|
1929
|
-
$this.
|
|
1930
|
-
if ($this.
|
|
1931
|
-
$this.
|
|
1928
|
+
$this.y31_1 = Companion_getInstance_6().e33_1.l32_1;
|
|
1929
|
+
if ($this.b32_1 == null)
|
|
1930
|
+
$this.b32_1 = Companion_getInstance_6().e33_1.w32_1;
|
|
1931
|
+
if ($this.a32_1 === 0) {
|
|
1932
|
+
$this.g33(Companion_getInstance_6().e33_1.m32_1);
|
|
1932
1933
|
}
|
|
1933
1934
|
}
|
|
1934
1935
|
function Companion_6() {
|
|
1935
1936
|
Companion_instance_6 = this;
|
|
1936
|
-
this.
|
|
1937
|
-
this.
|
|
1937
|
+
this.e33_1 = Url_0(get_origin(this));
|
|
1938
|
+
this.f33_1 = 256;
|
|
1938
1939
|
}
|
|
1939
1940
|
var Companion_instance_6;
|
|
1940
1941
|
function Companion_getInstance_6() {
|
|
@@ -1950,18 +1951,18 @@
|
|
|
1950
1951
|
user = user === VOID ? null : user;
|
|
1951
1952
|
password = password === VOID ? null : password;
|
|
1952
1953
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
1953
|
-
parameters = parameters === VOID ? Companion_getInstance_5().
|
|
1954
|
+
parameters = parameters === VOID ? Companion_getInstance_5().v31_1 : parameters;
|
|
1954
1955
|
fragment = fragment === VOID ? '' : fragment;
|
|
1955
1956
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
1956
|
-
this.
|
|
1957
|
-
this.
|
|
1958
|
-
this.
|
|
1959
|
-
this.
|
|
1957
|
+
this.y31_1 = host;
|
|
1958
|
+
this.z31_1 = trailingQuery;
|
|
1959
|
+
this.a32_1 = port;
|
|
1960
|
+
this.b32_1 = protocol;
|
|
1960
1961
|
var tmp = this;
|
|
1961
|
-
tmp.
|
|
1962
|
+
tmp.c32_1 = user == null ? null : encodeURLParameter(user);
|
|
1962
1963
|
var tmp_0 = this;
|
|
1963
|
-
tmp_0.
|
|
1964
|
-
this.
|
|
1964
|
+
tmp_0.d32_1 = password == null ? null : encodeURLParameter(password);
|
|
1965
|
+
this.e32_1 = encodeURLQueryComponent(fragment);
|
|
1965
1966
|
var tmp_1 = this;
|
|
1966
1967
|
// Inline function 'kotlin.collections.map' call
|
|
1967
1968
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -1972,43 +1973,43 @@
|
|
|
1972
1973
|
var tmp$ret$0 = encodeURLPathPart(item);
|
|
1973
1974
|
destination.k(tmp$ret$0);
|
|
1974
1975
|
}
|
|
1975
|
-
tmp_1.
|
|
1976
|
-
this.
|
|
1977
|
-
this.
|
|
1976
|
+
tmp_1.f32_1 = destination;
|
|
1977
|
+
this.g32_1 = encodeParameters(parameters);
|
|
1978
|
+
this.h32_1 = new UrlDecodedParametersBuilder(this.g32_1);
|
|
1978
1979
|
}
|
|
1979
|
-
protoOf(URLBuilder).
|
|
1980
|
+
protoOf(URLBuilder).g33 = function (value) {
|
|
1980
1981
|
// Inline function 'kotlin.require' call
|
|
1981
1982
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
1982
1983
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
1983
1984
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1984
1985
|
}
|
|
1985
|
-
this.
|
|
1986
|
+
this.a32_1 = value;
|
|
1986
1987
|
};
|
|
1987
|
-
protoOf(URLBuilder).
|
|
1988
|
-
this.
|
|
1988
|
+
protoOf(URLBuilder).h33 = function (value) {
|
|
1989
|
+
this.b32_1 = value;
|
|
1989
1990
|
};
|
|
1990
|
-
protoOf(URLBuilder).
|
|
1991
|
-
var tmp0_elvis_lhs = this.
|
|
1992
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_7().
|
|
1991
|
+
protoOf(URLBuilder).k32 = function () {
|
|
1992
|
+
var tmp0_elvis_lhs = this.b32_1;
|
|
1993
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_7().i33_1 : tmp0_elvis_lhs;
|
|
1993
1994
|
};
|
|
1994
|
-
protoOf(URLBuilder).
|
|
1995
|
+
protoOf(URLBuilder).o33 = function (value) {
|
|
1995
1996
|
var tmp = this;
|
|
1996
|
-
tmp.
|
|
1997
|
+
tmp.c32_1 = value == null ? null : encodeURLParameter(value);
|
|
1997
1998
|
};
|
|
1998
|
-
protoOf(URLBuilder).
|
|
1999
|
-
var tmp0_safe_receiver = this.
|
|
1999
|
+
protoOf(URLBuilder).p33 = function () {
|
|
2000
|
+
var tmp0_safe_receiver = this.c32_1;
|
|
2000
2001
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
2001
2002
|
};
|
|
2002
|
-
protoOf(URLBuilder).
|
|
2003
|
-
var tmp0_safe_receiver = this.
|
|
2003
|
+
protoOf(URLBuilder).q33 = function () {
|
|
2004
|
+
var tmp0_safe_receiver = this.d32_1;
|
|
2004
2005
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
2005
2006
|
};
|
|
2006
|
-
protoOf(URLBuilder).
|
|
2007
|
-
return decodeURLQueryComponent(this.
|
|
2007
|
+
protoOf(URLBuilder).r33 = function () {
|
|
2008
|
+
return decodeURLQueryComponent(this.e32_1);
|
|
2008
2009
|
};
|
|
2009
|
-
protoOf(URLBuilder).
|
|
2010
|
+
protoOf(URLBuilder).s33 = function () {
|
|
2010
2011
|
// Inline function 'kotlin.collections.map' call
|
|
2011
|
-
var this_0 = this.
|
|
2012
|
+
var this_0 = this.f32_1;
|
|
2012
2013
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2013
2014
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
2014
2015
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -2019,63 +2020,63 @@
|
|
|
2019
2020
|
}
|
|
2020
2021
|
return destination;
|
|
2021
2022
|
};
|
|
2022
|
-
protoOf(URLBuilder).
|
|
2023
|
-
this.
|
|
2024
|
-
this.
|
|
2023
|
+
protoOf(URLBuilder).t33 = function (value) {
|
|
2024
|
+
this.g32_1 = value;
|
|
2025
|
+
this.h32_1 = new UrlDecodedParametersBuilder(value);
|
|
2025
2026
|
};
|
|
2026
|
-
protoOf(URLBuilder).
|
|
2027
|
+
protoOf(URLBuilder).u33 = function () {
|
|
2027
2028
|
applyOrigin(this);
|
|
2028
2029
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2029
2030
|
};
|
|
2030
2031
|
protoOf(URLBuilder).toString = function () {
|
|
2031
2032
|
return appendTo(this, StringBuilder_init_$Create$_0(256)).toString();
|
|
2032
2033
|
};
|
|
2033
|
-
protoOf(URLBuilder).
|
|
2034
|
+
protoOf(URLBuilder).t2u = function () {
|
|
2034
2035
|
applyOrigin(this);
|
|
2035
|
-
return new
|
|
2036
|
+
return new Url_1(this.b32_1, this.y31_1, this.a32_1, this.s33(), this.h32_1.t2u(), this.r33(), this.p33(), this.q33(), this.z31_1, this.u33());
|
|
2036
2037
|
};
|
|
2037
2038
|
function get_authority(_this__u8e3s4) {
|
|
2038
2039
|
// Inline function 'kotlin.text.buildString' call
|
|
2039
2040
|
// Inline function 'kotlin.apply' call
|
|
2040
2041
|
var this_0 = StringBuilder_init_$Create$();
|
|
2041
2042
|
this_0.r8(get_encodedUserAndPassword(_this__u8e3s4));
|
|
2042
|
-
this_0.r8(_this__u8e3s4.
|
|
2043
|
-
if (!(_this__u8e3s4.
|
|
2043
|
+
this_0.r8(_this__u8e3s4.y31_1);
|
|
2044
|
+
if (!(_this__u8e3s4.a32_1 === 0) && !(_this__u8e3s4.a32_1 === _this__u8e3s4.k32().j32_1)) {
|
|
2044
2045
|
this_0.r8(':');
|
|
2045
|
-
this_0.r8(_this__u8e3s4.
|
|
2046
|
+
this_0.r8(_this__u8e3s4.a32_1.toString());
|
|
2046
2047
|
}
|
|
2047
2048
|
return this_0.toString();
|
|
2048
2049
|
}
|
|
2049
2050
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
2050
|
-
_this__u8e3s4.
|
|
2051
|
+
_this__u8e3s4.f32_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
2051
2052
|
}
|
|
2052
2053
|
function get_encodedPath(_this__u8e3s4) {
|
|
2053
|
-
return joinPath(_this__u8e3s4.
|
|
2054
|
+
return joinPath(_this__u8e3s4.f32_1);
|
|
2054
2055
|
}
|
|
2055
2056
|
function appendTo(_this__u8e3s4, out) {
|
|
2056
|
-
out.l(_this__u8e3s4.
|
|
2057
|
-
switch (_this__u8e3s4.
|
|
2057
|
+
out.l(_this__u8e3s4.k32().i32_1);
|
|
2058
|
+
switch (_this__u8e3s4.k32().i32_1) {
|
|
2058
2059
|
case 'file':
|
|
2059
|
-
appendFile(out, _this__u8e3s4.
|
|
2060
|
+
appendFile(out, _this__u8e3s4.y31_1, get_encodedPath(_this__u8e3s4));
|
|
2060
2061
|
return out;
|
|
2061
2062
|
case 'mailto':
|
|
2062
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
2063
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.y31_1);
|
|
2063
2064
|
return out;
|
|
2064
2065
|
case 'about':
|
|
2065
|
-
appendAbout(out, _this__u8e3s4.
|
|
2066
|
+
appendAbout(out, _this__u8e3s4.y31_1);
|
|
2066
2067
|
return out;
|
|
2067
2068
|
case 'tel':
|
|
2068
|
-
appendTel(out, _this__u8e3s4.
|
|
2069
|
+
appendTel(out, _this__u8e3s4.y31_1);
|
|
2069
2070
|
return out;
|
|
2070
2071
|
}
|
|
2071
2072
|
out.l('://');
|
|
2072
2073
|
out.l(get_authority(_this__u8e3s4));
|
|
2073
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
2074
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.g32_1, _this__u8e3s4.z31_1);
|
|
2074
2075
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
2075
|
-
var this_0 = _this__u8e3s4.
|
|
2076
|
+
var this_0 = _this__u8e3s4.e32_1;
|
|
2076
2077
|
if (charSequenceLength(this_0) > 0) {
|
|
2077
2078
|
out.s8(_Char___init__impl__6a9atx(35));
|
|
2078
|
-
out.l(_this__u8e3s4.
|
|
2079
|
+
out.l(_this__u8e3s4.e32_1);
|
|
2079
2080
|
}
|
|
2080
2081
|
return out;
|
|
2081
2082
|
}
|
|
@@ -2083,7 +2084,7 @@
|
|
|
2083
2084
|
// Inline function 'kotlin.text.buildString' call
|
|
2084
2085
|
// Inline function 'kotlin.apply' call
|
|
2085
2086
|
var this_0 = StringBuilder_init_$Create$();
|
|
2086
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
2087
|
+
appendUserAndPassword(this_0, _this__u8e3s4.c32_1, _this__u8e3s4.d32_1);
|
|
2087
2088
|
return this_0.toString();
|
|
2088
2089
|
}
|
|
2089
2090
|
function joinPath(_this__u8e3s4) {
|
|
@@ -2188,16 +2189,16 @@
|
|
|
2188
2189
|
var endIndex_0 = startIndex + schemeLength | 0;
|
|
2189
2190
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2190
2191
|
var scheme = urlString.substring(tmp5, endIndex_0);
|
|
2191
|
-
_this__u8e3s4.
|
|
2192
|
+
_this__u8e3s4.h33(Companion_getInstance_7().v33(scheme));
|
|
2192
2193
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
2193
2194
|
}
|
|
2194
2195
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
2195
2196
|
startIndex = startIndex + slashCount | 0;
|
|
2196
|
-
if (_this__u8e3s4.
|
|
2197
|
+
if (_this__u8e3s4.k32().i32_1 === 'file') {
|
|
2197
2198
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
2198
2199
|
return _this__u8e3s4;
|
|
2199
2200
|
}
|
|
2200
|
-
if (_this__u8e3s4.
|
|
2201
|
+
if (_this__u8e3s4.k32().i32_1 === 'mailto') {
|
|
2201
2202
|
// Inline function 'kotlin.require' call
|
|
2202
2203
|
// Inline function 'kotlin.require' call
|
|
2203
2204
|
if (!(slashCount === 0)) {
|
|
@@ -2207,7 +2208,7 @@
|
|
|
2207
2208
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
2208
2209
|
return _this__u8e3s4;
|
|
2209
2210
|
}
|
|
2210
|
-
if (_this__u8e3s4.
|
|
2211
|
+
if (_this__u8e3s4.k32().i32_1 === 'about') {
|
|
2211
2212
|
// Inline function 'kotlin.require' call
|
|
2212
2213
|
// Inline function 'kotlin.require' call
|
|
2213
2214
|
if (!(slashCount === 0)) {
|
|
@@ -2218,10 +2219,10 @@
|
|
|
2218
2219
|
// Inline function 'kotlin.text.substring' call
|
|
2219
2220
|
var startIndex_0 = startIndex;
|
|
2220
2221
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2221
|
-
tmp.
|
|
2222
|
+
tmp.y31_1 = urlString.substring(startIndex_0, endIndex);
|
|
2222
2223
|
return _this__u8e3s4;
|
|
2223
2224
|
}
|
|
2224
|
-
if (_this__u8e3s4.
|
|
2225
|
+
if (_this__u8e3s4.k32().i32_1 === 'tel') {
|
|
2225
2226
|
// Inline function 'kotlin.require' call
|
|
2226
2227
|
// Inline function 'kotlin.require' call
|
|
2227
2228
|
if (!(slashCount === 0)) {
|
|
@@ -2232,7 +2233,7 @@
|
|
|
2232
2233
|
// Inline function 'kotlin.text.substring' call
|
|
2233
2234
|
var startIndex_1 = startIndex;
|
|
2234
2235
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2235
|
-
tmp_0.
|
|
2236
|
+
tmp_0.y31_1 = urlString.substring(startIndex_1, endIndex);
|
|
2236
2237
|
return _this__u8e3s4;
|
|
2237
2238
|
}
|
|
2238
2239
|
if (slashCount >= 2) {
|
|
@@ -2254,18 +2255,18 @@
|
|
|
2254
2255
|
// Inline function 'kotlin.text.substring' call
|
|
2255
2256
|
var startIndex_2 = startIndex;
|
|
2256
2257
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2257
|
-
tmp_2.
|
|
2258
|
+
tmp_2.c32_1 = urlString.substring(startIndex_2, passwordIndex);
|
|
2258
2259
|
var tmp_3 = _this__u8e3s4;
|
|
2259
2260
|
// Inline function 'kotlin.text.substring' call
|
|
2260
2261
|
var startIndex_3 = passwordIndex + 1 | 0;
|
|
2261
2262
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2262
|
-
tmp_3.
|
|
2263
|
+
tmp_3.d32_1 = urlString.substring(startIndex_3, delimiter);
|
|
2263
2264
|
} else {
|
|
2264
2265
|
var tmp_4 = _this__u8e3s4;
|
|
2265
2266
|
// Inline function 'kotlin.text.substring' call
|
|
2266
2267
|
var startIndex_4 = startIndex;
|
|
2267
2268
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2268
|
-
tmp_4.
|
|
2269
|
+
tmp_4.c32_1 = urlString.substring(startIndex_4, delimiter);
|
|
2269
2270
|
}
|
|
2270
2271
|
startIndex = delimiter + 1 | 0;
|
|
2271
2272
|
} else {
|
|
@@ -2276,17 +2277,17 @@
|
|
|
2276
2277
|
}
|
|
2277
2278
|
}
|
|
2278
2279
|
if (startIndex >= endIndex) {
|
|
2279
|
-
_this__u8e3s4.
|
|
2280
|
+
_this__u8e3s4.f32_1 = charSequenceGet(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
2280
2281
|
return _this__u8e3s4;
|
|
2281
2282
|
}
|
|
2282
2283
|
var tmp_5 = _this__u8e3s4;
|
|
2283
2284
|
var tmp_6;
|
|
2284
2285
|
if (slashCount === 0) {
|
|
2285
|
-
tmp_6 = dropLast(_this__u8e3s4.
|
|
2286
|
+
tmp_6 = dropLast(_this__u8e3s4.f32_1, 1);
|
|
2286
2287
|
} else {
|
|
2287
2288
|
tmp_6 = emptyList();
|
|
2288
2289
|
}
|
|
2289
|
-
tmp_5.
|
|
2290
|
+
tmp_5.f32_1 = tmp_6;
|
|
2290
2291
|
// Inline function 'kotlin.takeIf' call
|
|
2291
2292
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
2292
2293
|
var tmp_7;
|
|
@@ -2304,9 +2305,9 @@
|
|
|
2304
2305
|
var rawPath = urlString.substring(startIndex_5, pathEnd);
|
|
2305
2306
|
var tmp_8;
|
|
2306
2307
|
var tmp_9;
|
|
2307
|
-
if (_this__u8e3s4.
|
|
2308
|
+
if (_this__u8e3s4.f32_1.s() === 1) {
|
|
2308
2309
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2309
|
-
var this_2 = first_0(_this__u8e3s4.
|
|
2310
|
+
var this_2 = first_0(_this__u8e3s4.f32_1);
|
|
2310
2311
|
tmp_9 = charSequenceLength(this_2) === 0;
|
|
2311
2312
|
} else {
|
|
2312
2313
|
tmp_9 = false;
|
|
@@ -2314,12 +2315,12 @@
|
|
|
2314
2315
|
if (tmp_9) {
|
|
2315
2316
|
tmp_8 = emptyList();
|
|
2316
2317
|
} else {
|
|
2317
|
-
tmp_8 = _this__u8e3s4.
|
|
2318
|
+
tmp_8 = _this__u8e3s4.f32_1;
|
|
2318
2319
|
}
|
|
2319
2320
|
var basePath = tmp_8;
|
|
2320
2321
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
2321
2322
|
var relativePath = plus_0(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
2322
|
-
_this__u8e3s4.
|
|
2323
|
+
_this__u8e3s4.f32_1 = plus_0(basePath, relativePath);
|
|
2323
2324
|
startIndex = pathEnd;
|
|
2324
2325
|
}
|
|
2325
2326
|
if (startIndex < endIndex && charSequenceGet(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
@@ -2369,7 +2370,7 @@
|
|
|
2369
2370
|
_init_properties_URLParser_kt__sf11to();
|
|
2370
2371
|
switch (slashCount) {
|
|
2371
2372
|
case 1:
|
|
2372
|
-
_this__u8e3s4.
|
|
2373
|
+
_this__u8e3s4.y31_1 = '';
|
|
2373
2374
|
// Inline function 'kotlin.text.substring' call
|
|
2374
2375
|
|
|
2375
2376
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2383,7 +2384,7 @@
|
|
|
2383
2384
|
var tmp = _this__u8e3s4;
|
|
2384
2385
|
// Inline function 'kotlin.text.substring' call
|
|
2385
2386
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2386
|
-
tmp.
|
|
2387
|
+
tmp.y31_1 = urlString.substring(startIndex, endIndex);
|
|
2387
2388
|
return Unit_instance;
|
|
2388
2389
|
}
|
|
2389
2390
|
|
|
@@ -2392,7 +2393,7 @@
|
|
|
2392
2393
|
|
|
2393
2394
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2394
2395
|
|
|
2395
|
-
tmp_0.
|
|
2396
|
+
tmp_0.y31_1 = urlString.substring(startIndex, nextSlash);
|
|
2396
2397
|
// Inline function 'kotlin.text.substring' call
|
|
2397
2398
|
|
|
2398
2399
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2401,7 +2402,7 @@
|
|
|
2401
2402
|
set_encodedPath(_this__u8e3s4, tmp$ret$7);
|
|
2402
2403
|
break;
|
|
2403
2404
|
case 3:
|
|
2404
|
-
_this__u8e3s4.
|
|
2405
|
+
_this__u8e3s4.y31_1 = '';
|
|
2405
2406
|
// Inline function 'kotlin.text.substring' call
|
|
2406
2407
|
|
|
2407
2408
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2422,12 +2423,12 @@
|
|
|
2422
2423
|
// Inline function 'kotlin.text.substring' call
|
|
2423
2424
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2424
2425
|
var tmp$ret$1 = urlString.substring(startIndex, delimiter);
|
|
2425
|
-
_this__u8e3s4.
|
|
2426
|
+
_this__u8e3s4.o33(decodeURLPart(tmp$ret$1));
|
|
2426
2427
|
var tmp = _this__u8e3s4;
|
|
2427
2428
|
// Inline function 'kotlin.text.substring' call
|
|
2428
2429
|
var startIndex_0 = delimiter + 1 | 0;
|
|
2429
2430
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2430
|
-
tmp.
|
|
2431
|
+
tmp.y31_1 = urlString.substring(startIndex_0, endIndex);
|
|
2431
2432
|
}
|
|
2432
2433
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
2433
2434
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -2464,7 +2465,7 @@
|
|
|
2464
2465
|
var tmp_0 = _this__u8e3s4;
|
|
2465
2466
|
// Inline function 'kotlin.text.substring' call
|
|
2466
2467
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2467
|
-
tmp_0.
|
|
2468
|
+
tmp_0.y31_1 = urlString.substring(startIndex, colonIndex);
|
|
2468
2469
|
var tmp_1;
|
|
2469
2470
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
2470
2471
|
// Inline function 'kotlin.text.substring' call
|
|
@@ -2475,12 +2476,12 @@
|
|
|
2475
2476
|
} else {
|
|
2476
2477
|
tmp_1 = 0;
|
|
2477
2478
|
}
|
|
2478
|
-
_this__u8e3s4.
|
|
2479
|
+
_this__u8e3s4.g33(tmp_1);
|
|
2479
2480
|
}
|
|
2480
2481
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
2481
2482
|
_init_properties_URLParser_kt__sf11to();
|
|
2482
2483
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
2483
|
-
_this__u8e3s4.
|
|
2484
|
+
_this__u8e3s4.z31_1 = true;
|
|
2484
2485
|
return endIndex;
|
|
2485
2486
|
}
|
|
2486
2487
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -2498,7 +2499,7 @@
|
|
|
2498
2499
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2499
2500
|
var tmp$ret$3 = urlString.substring(startIndex_0, fragmentStart);
|
|
2500
2501
|
var rawParameters = parseQueryString(tmp$ret$3, VOID, VOID, false);
|
|
2501
|
-
rawParameters.
|
|
2502
|
+
rawParameters.s2n(parseQuery$lambda(_this__u8e3s4));
|
|
2502
2503
|
return fragmentStart;
|
|
2503
2504
|
}
|
|
2504
2505
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
@@ -2508,12 +2509,12 @@
|
|
|
2508
2509
|
// Inline function 'kotlin.text.substring' call
|
|
2509
2510
|
var startIndex_0 = startIndex + 1 | 0;
|
|
2510
2511
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2511
|
-
tmp.
|
|
2512
|
+
tmp.e32_1 = urlString.substring(startIndex_0, endIndex);
|
|
2512
2513
|
}
|
|
2513
2514
|
}
|
|
2514
2515
|
function parseQuery$lambda($this_parseQuery) {
|
|
2515
2516
|
return function (key, values) {
|
|
2516
|
-
$this_parseQuery.
|
|
2517
|
+
$this_parseQuery.g32_1.w2n(key, values);
|
|
2517
2518
|
return Unit_instance;
|
|
2518
2519
|
};
|
|
2519
2520
|
}
|
|
@@ -2526,29 +2527,29 @@
|
|
|
2526
2527
|
}
|
|
2527
2528
|
function Companion_7() {
|
|
2528
2529
|
Companion_instance_7 = this;
|
|
2529
|
-
this.
|
|
2530
|
-
this.
|
|
2531
|
-
this.
|
|
2532
|
-
this.
|
|
2533
|
-
this.
|
|
2530
|
+
this.i33_1 = new URLProtocol('http', 80);
|
|
2531
|
+
this.j33_1 = new URLProtocol('https', 443);
|
|
2532
|
+
this.k33_1 = new URLProtocol('ws', 80);
|
|
2533
|
+
this.l33_1 = new URLProtocol('wss', 443);
|
|
2534
|
+
this.m33_1 = new URLProtocol('socks', 1080);
|
|
2534
2535
|
var tmp = this;
|
|
2535
2536
|
// Inline function 'kotlin.collections.associateBy' call
|
|
2536
|
-
var this_0 = listOf([this.
|
|
2537
|
+
var this_0 = listOf([this.i33_1, this.j33_1, this.k33_1, this.l33_1, this.m33_1]);
|
|
2537
2538
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
2538
2539
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
2539
2540
|
var destination = LinkedHashMap_init_$Create$(capacity);
|
|
2540
2541
|
var _iterator__ex2g4s = this_0.p();
|
|
2541
2542
|
while (_iterator__ex2g4s.q()) {
|
|
2542
2543
|
var element = _iterator__ex2g4s.r();
|
|
2543
|
-
var tmp$ret$0 = element.
|
|
2544
|
+
var tmp$ret$0 = element.i32_1;
|
|
2544
2545
|
destination.n2(tmp$ret$0, element);
|
|
2545
2546
|
}
|
|
2546
|
-
tmp.
|
|
2547
|
+
tmp.n33_1 = destination;
|
|
2547
2548
|
}
|
|
2548
|
-
protoOf(Companion_7).
|
|
2549
|
+
protoOf(Companion_7).v33 = function (name) {
|
|
2549
2550
|
// Inline function 'kotlin.let' call
|
|
2550
2551
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
2551
|
-
var tmp0_elvis_lhs = Companion_getInstance_7().
|
|
2552
|
+
var tmp0_elvis_lhs = Companion_getInstance_7().n33_1.k2(it);
|
|
2552
2553
|
return tmp0_elvis_lhs == null ? new URLProtocol(it, 0) : tmp0_elvis_lhs;
|
|
2553
2554
|
};
|
|
2554
2555
|
var Companion_instance_7;
|
|
@@ -2559,9 +2560,9 @@
|
|
|
2559
2560
|
}
|
|
2560
2561
|
function URLProtocol(name, defaultPort) {
|
|
2561
2562
|
Companion_getInstance_7();
|
|
2562
|
-
this.
|
|
2563
|
-
this.
|
|
2564
|
-
var tmp0 = this.
|
|
2563
|
+
this.i32_1 = name;
|
|
2564
|
+
this.j32_1 = defaultPort;
|
|
2565
|
+
var tmp0 = this.i32_1;
|
|
2565
2566
|
var tmp$ret$1;
|
|
2566
2567
|
$l$block: {
|
|
2567
2568
|
// Inline function 'kotlin.text.all' call
|
|
@@ -2583,11 +2584,11 @@
|
|
|
2583
2584
|
}
|
|
2584
2585
|
}
|
|
2585
2586
|
protoOf(URLProtocol).toString = function () {
|
|
2586
|
-
return 'URLProtocol(name=' + this.
|
|
2587
|
+
return 'URLProtocol(name=' + this.i32_1 + ', defaultPort=' + this.j32_1 + ')';
|
|
2587
2588
|
};
|
|
2588
2589
|
protoOf(URLProtocol).hashCode = function () {
|
|
2589
|
-
var result = getStringHashCode(this.
|
|
2590
|
-
result = imul(result, 31) + this.
|
|
2590
|
+
var result = getStringHashCode(this.i32_1);
|
|
2591
|
+
result = imul(result, 31) + this.j32_1 | 0;
|
|
2591
2592
|
return result;
|
|
2592
2593
|
};
|
|
2593
2594
|
protoOf(URLProtocol).equals = function (other) {
|
|
@@ -2596,39 +2597,42 @@
|
|
|
2596
2597
|
if (!(other instanceof URLProtocol))
|
|
2597
2598
|
return false;
|
|
2598
2599
|
var tmp0_other_with_cast = other instanceof URLProtocol ? other : THROW_CCE();
|
|
2599
|
-
if (!(this.
|
|
2600
|
+
if (!(this.i32_1 === tmp0_other_with_cast.i32_1))
|
|
2600
2601
|
return false;
|
|
2601
|
-
if (!(this.
|
|
2602
|
+
if (!(this.j32_1 === tmp0_other_with_cast.j32_1))
|
|
2602
2603
|
return false;
|
|
2603
2604
|
return true;
|
|
2604
2605
|
};
|
|
2605
2606
|
function isSecure(_this__u8e3s4) {
|
|
2606
|
-
return _this__u8e3s4.
|
|
2607
|
+
return _this__u8e3s4.i32_1 === 'https' || _this__u8e3s4.i32_1 === 'wss';
|
|
2607
2608
|
}
|
|
2608
2609
|
function isWebsocket(_this__u8e3s4) {
|
|
2609
|
-
return _this__u8e3s4.
|
|
2610
|
+
return _this__u8e3s4.i32_1 === 'ws' || _this__u8e3s4.i32_1 === 'wss';
|
|
2610
2611
|
}
|
|
2611
2612
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
2612
|
-
_this__u8e3s4.
|
|
2613
|
-
_this__u8e3s4.
|
|
2614
|
-
_this__u8e3s4.
|
|
2615
|
-
_this__u8e3s4.
|
|
2616
|
-
_this__u8e3s4.
|
|
2617
|
-
_this__u8e3s4.
|
|
2613
|
+
_this__u8e3s4.b32_1 = url.b32_1;
|
|
2614
|
+
_this__u8e3s4.y31_1 = url.y31_1;
|
|
2615
|
+
_this__u8e3s4.g33(url.a32_1);
|
|
2616
|
+
_this__u8e3s4.f32_1 = url.f32_1;
|
|
2617
|
+
_this__u8e3s4.c32_1 = url.c32_1;
|
|
2618
|
+
_this__u8e3s4.d32_1 = url.d32_1;
|
|
2618
2619
|
// Inline function 'kotlin.apply' call
|
|
2619
2620
|
var this_0 = ParametersBuilder();
|
|
2620
|
-
appendAll(this_0, url.
|
|
2621
|
-
_this__u8e3s4.
|
|
2622
|
-
_this__u8e3s4.
|
|
2623
|
-
_this__u8e3s4.
|
|
2621
|
+
appendAll(this_0, url.g32_1);
|
|
2622
|
+
_this__u8e3s4.t33(this_0);
|
|
2623
|
+
_this__u8e3s4.e32_1 = url.e32_1;
|
|
2624
|
+
_this__u8e3s4.z31_1 = url.z31_1;
|
|
2624
2625
|
return _this__u8e3s4;
|
|
2625
2626
|
}
|
|
2627
|
+
function Url(builder) {
|
|
2628
|
+
return takeFrom_0(new URLBuilder(), builder).t2u();
|
|
2629
|
+
}
|
|
2626
2630
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
2627
|
-
var tmp0_subject = _this__u8e3s4.
|
|
2628
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.
|
|
2631
|
+
var tmp0_subject = _this__u8e3s4.m32_1;
|
|
2632
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.x32_1.j32_1 ? _this__u8e3s4.l32_1 : get_hostWithPort(_this__u8e3s4);
|
|
2629
2633
|
}
|
|
2630
|
-
function
|
|
2631
|
-
return URLBuilder_0(urlString).
|
|
2634
|
+
function Url_0(urlString) {
|
|
2635
|
+
return URLBuilder_0(urlString).t2u();
|
|
2632
2636
|
}
|
|
2633
2637
|
function appendUserAndPassword(_this__u8e3s4, encodedUser, encodedPassword) {
|
|
2634
2638
|
if (encodedUser == null) {
|
|
@@ -2657,7 +2661,7 @@
|
|
|
2657
2661
|
_this__u8e3s4.l('?');
|
|
2658
2662
|
}
|
|
2659
2663
|
// Inline function 'kotlin.collections.flatMap' call
|
|
2660
|
-
var tmp0 = encodedQueryParameters.
|
|
2664
|
+
var tmp0 = encodedQueryParameters.q2n();
|
|
2661
2665
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
2662
2666
|
var destination = ArrayList_init_$Create$_0();
|
|
2663
2667
|
var _iterator__ex2g4s = tmp0.p();
|
|
@@ -2689,7 +2693,7 @@
|
|
|
2689
2693
|
joinTo(tmp_1, _this__u8e3s4, '&', VOID, VOID, VOID, VOID, appendUrlFullPath$lambda);
|
|
2690
2694
|
}
|
|
2691
2695
|
function get_hostWithPort(_this__u8e3s4) {
|
|
2692
|
-
return _this__u8e3s4.
|
|
2696
|
+
return _this__u8e3s4.l32_1 + ':' + _this__u8e3s4.w33();
|
|
2693
2697
|
}
|
|
2694
2698
|
function URLBuilder_0(urlString) {
|
|
2695
2699
|
return takeFrom(new URLBuilder(), urlString);
|
|
@@ -2698,18 +2702,18 @@
|
|
|
2698
2702
|
return takeFrom_1(new URLBuilder(), url);
|
|
2699
2703
|
}
|
|
2700
2704
|
function takeFrom_1(_this__u8e3s4, url) {
|
|
2701
|
-
_this__u8e3s4.
|
|
2702
|
-
_this__u8e3s4.
|
|
2703
|
-
_this__u8e3s4.
|
|
2704
|
-
set_encodedPath(_this__u8e3s4, url.
|
|
2705
|
-
_this__u8e3s4.
|
|
2706
|
-
_this__u8e3s4.
|
|
2705
|
+
_this__u8e3s4.b32_1 = url.w32_1;
|
|
2706
|
+
_this__u8e3s4.y31_1 = url.l32_1;
|
|
2707
|
+
_this__u8e3s4.g33(url.w33());
|
|
2708
|
+
set_encodedPath(_this__u8e3s4, url.x33());
|
|
2709
|
+
_this__u8e3s4.c32_1 = url.y33();
|
|
2710
|
+
_this__u8e3s4.d32_1 = url.z33();
|
|
2707
2711
|
// Inline function 'kotlin.apply' call
|
|
2708
2712
|
var this_0 = ParametersBuilder();
|
|
2709
|
-
this_0.
|
|
2710
|
-
_this__u8e3s4.
|
|
2711
|
-
_this__u8e3s4.
|
|
2712
|
-
_this__u8e3s4.
|
|
2713
|
+
this_0.a2o(parseQueryString(url.a34(), VOID, VOID, false));
|
|
2714
|
+
_this__u8e3s4.t33(this_0);
|
|
2715
|
+
_this__u8e3s4.e32_1 = url.b34();
|
|
2716
|
+
_this__u8e3s4.z31_1 = url.r32_1;
|
|
2713
2717
|
return _this__u8e3s4;
|
|
2714
2718
|
}
|
|
2715
2719
|
function appendUrlFullPath$lambda(it) {
|
|
@@ -2768,154 +2772,154 @@
|
|
|
2768
2772
|
if ($pathSegments.h()) {
|
|
2769
2773
|
return '';
|
|
2770
2774
|
}
|
|
2771
|
-
var pathStartIndex = indexOf(this$0.
|
|
2775
|
+
var pathStartIndex = indexOf(this$0.s32_1, _Char___init__impl__6a9atx(47), this$0.x32_1.i32_1.length + 3 | 0);
|
|
2772
2776
|
var tmp_0;
|
|
2773
2777
|
if (pathStartIndex === -1) {
|
|
2774
2778
|
return '';
|
|
2775
2779
|
}
|
|
2776
2780
|
// Inline function 'kotlin.charArrayOf' call
|
|
2777
2781
|
var tmp$ret$0 = charArrayOf([_Char___init__impl__6a9atx(63), _Char___init__impl__6a9atx(35)]);
|
|
2778
|
-
var pathEndIndex = indexOfAny(this$0.
|
|
2782
|
+
var pathEndIndex = indexOfAny(this$0.s32_1, tmp$ret$0, pathStartIndex);
|
|
2779
2783
|
var tmp_1;
|
|
2780
2784
|
if (pathEndIndex === -1) {
|
|
2781
2785
|
// Inline function 'kotlin.text.substring' call
|
|
2782
2786
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2783
|
-
return this$0.
|
|
2787
|
+
return this$0.s32_1.substring(pathStartIndex);
|
|
2784
2788
|
}
|
|
2785
2789
|
// Inline function 'kotlin.text.substring' call
|
|
2786
2790
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2787
|
-
return this$0.
|
|
2791
|
+
return this$0.s32_1.substring(pathStartIndex, pathEndIndex);
|
|
2788
2792
|
};
|
|
2789
2793
|
}
|
|
2790
2794
|
function Url$encodedQuery$delegate$lambda(this$0) {
|
|
2791
2795
|
return function () {
|
|
2792
|
-
var queryStart = indexOf(this$0.
|
|
2796
|
+
var queryStart = indexOf(this$0.s32_1, _Char___init__impl__6a9atx(63)) + 1 | 0;
|
|
2793
2797
|
var tmp;
|
|
2794
2798
|
if (queryStart === 0) {
|
|
2795
2799
|
return '';
|
|
2796
2800
|
}
|
|
2797
|
-
var queryEnd = indexOf(this$0.
|
|
2801
|
+
var queryEnd = indexOf(this$0.s32_1, _Char___init__impl__6a9atx(35), queryStart);
|
|
2798
2802
|
var tmp_0;
|
|
2799
2803
|
if (queryEnd === -1) {
|
|
2800
2804
|
// Inline function 'kotlin.text.substring' call
|
|
2801
2805
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2802
|
-
return this$0.
|
|
2806
|
+
return this$0.s32_1.substring(queryStart);
|
|
2803
2807
|
}
|
|
2804
2808
|
// Inline function 'kotlin.text.substring' call
|
|
2805
2809
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2806
|
-
return this$0.
|
|
2810
|
+
return this$0.s32_1.substring(queryStart, queryEnd);
|
|
2807
2811
|
};
|
|
2808
2812
|
}
|
|
2809
2813
|
function Url$encodedPathAndQuery$delegate$lambda(this$0) {
|
|
2810
2814
|
return function () {
|
|
2811
|
-
var pathStart = indexOf(this$0.
|
|
2815
|
+
var pathStart = indexOf(this$0.s32_1, _Char___init__impl__6a9atx(47), this$0.x32_1.i32_1.length + 3 | 0);
|
|
2812
2816
|
var tmp;
|
|
2813
2817
|
if (pathStart === -1) {
|
|
2814
2818
|
return '';
|
|
2815
2819
|
}
|
|
2816
|
-
var queryEnd = indexOf(this$0.
|
|
2820
|
+
var queryEnd = indexOf(this$0.s32_1, _Char___init__impl__6a9atx(35), pathStart);
|
|
2817
2821
|
var tmp_0;
|
|
2818
2822
|
if (queryEnd === -1) {
|
|
2819
2823
|
// Inline function 'kotlin.text.substring' call
|
|
2820
2824
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2821
|
-
return this$0.
|
|
2825
|
+
return this$0.s32_1.substring(pathStart);
|
|
2822
2826
|
}
|
|
2823
2827
|
// Inline function 'kotlin.text.substring' call
|
|
2824
2828
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2825
|
-
return this$0.
|
|
2829
|
+
return this$0.s32_1.substring(pathStart, queryEnd);
|
|
2826
2830
|
};
|
|
2827
2831
|
}
|
|
2828
2832
|
function Url$encodedUser$delegate$lambda(this$0) {
|
|
2829
2833
|
return function () {
|
|
2830
2834
|
var tmp;
|
|
2831
|
-
if (this$0.
|
|
2835
|
+
if (this$0.p32_1 == null) {
|
|
2832
2836
|
return null;
|
|
2833
2837
|
}
|
|
2834
2838
|
var tmp_0;
|
|
2835
2839
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2836
|
-
var this_0 = this$0.
|
|
2840
|
+
var this_0 = this$0.p32_1;
|
|
2837
2841
|
if (charSequenceLength(this_0) === 0) {
|
|
2838
2842
|
return '';
|
|
2839
2843
|
}
|
|
2840
|
-
var usernameStart = this$0.
|
|
2844
|
+
var usernameStart = this$0.x32_1.i32_1.length + 3 | 0;
|
|
2841
2845
|
// Inline function 'kotlin.charArrayOf' call
|
|
2842
2846
|
var tmp$ret$1 = charArrayOf([_Char___init__impl__6a9atx(58), _Char___init__impl__6a9atx(64)]);
|
|
2843
|
-
var usernameEnd = indexOfAny(this$0.
|
|
2847
|
+
var usernameEnd = indexOfAny(this$0.s32_1, tmp$ret$1, usernameStart);
|
|
2844
2848
|
// Inline function 'kotlin.text.substring' call
|
|
2845
2849
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2846
|
-
return this$0.
|
|
2850
|
+
return this$0.s32_1.substring(usernameStart, usernameEnd);
|
|
2847
2851
|
};
|
|
2848
2852
|
}
|
|
2849
2853
|
function Url$encodedPassword$delegate$lambda(this$0) {
|
|
2850
2854
|
return function () {
|
|
2851
2855
|
var tmp;
|
|
2852
|
-
if (this$0.
|
|
2856
|
+
if (this$0.q32_1 == null) {
|
|
2853
2857
|
return null;
|
|
2854
2858
|
}
|
|
2855
2859
|
var tmp_0;
|
|
2856
2860
|
// Inline function 'kotlin.text.isEmpty' call
|
|
2857
|
-
var this_0 = this$0.
|
|
2861
|
+
var this_0 = this$0.q32_1;
|
|
2858
2862
|
if (charSequenceLength(this_0) === 0) {
|
|
2859
2863
|
return '';
|
|
2860
2864
|
}
|
|
2861
|
-
var passwordStart = indexOf(this$0.
|
|
2862
|
-
var passwordEnd = indexOf(this$0.
|
|
2865
|
+
var passwordStart = indexOf(this$0.s32_1, _Char___init__impl__6a9atx(58), this$0.x32_1.i32_1.length + 3 | 0) + 1 | 0;
|
|
2866
|
+
var passwordEnd = indexOf(this$0.s32_1, _Char___init__impl__6a9atx(64));
|
|
2863
2867
|
// Inline function 'kotlin.text.substring' call
|
|
2864
2868
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2865
|
-
return this$0.
|
|
2869
|
+
return this$0.s32_1.substring(passwordStart, passwordEnd);
|
|
2866
2870
|
};
|
|
2867
2871
|
}
|
|
2868
2872
|
function Url$encodedFragment$delegate$lambda(this$0) {
|
|
2869
2873
|
return function () {
|
|
2870
|
-
var fragmentStart = indexOf(this$0.
|
|
2874
|
+
var fragmentStart = indexOf(this$0.s32_1, _Char___init__impl__6a9atx(35)) + 1 | 0;
|
|
2871
2875
|
var tmp;
|
|
2872
2876
|
if (fragmentStart === 0) {
|
|
2873
2877
|
return '';
|
|
2874
2878
|
}
|
|
2875
2879
|
// Inline function 'kotlin.text.substring' call
|
|
2876
2880
|
// Inline function 'kotlin.js.asDynamic' call
|
|
2877
|
-
return this$0.
|
|
2881
|
+
return this$0.s32_1.substring(fragmentStart);
|
|
2878
2882
|
};
|
|
2879
2883
|
}
|
|
2880
|
-
function
|
|
2881
|
-
this.
|
|
2882
|
-
this.
|
|
2883
|
-
this.
|
|
2884
|
-
this.
|
|
2885
|
-
this.
|
|
2886
|
-
this.
|
|
2887
|
-
this.
|
|
2888
|
-
this.
|
|
2889
|
-
var containsArg = this.
|
|
2884
|
+
function Url_1(protocol, host, specifiedPort, pathSegments, parameters, fragment, user, password, trailingQuery, urlString) {
|
|
2885
|
+
this.l32_1 = host;
|
|
2886
|
+
this.m32_1 = specifiedPort;
|
|
2887
|
+
this.n32_1 = parameters;
|
|
2888
|
+
this.o32_1 = fragment;
|
|
2889
|
+
this.p32_1 = user;
|
|
2890
|
+
this.q32_1 = password;
|
|
2891
|
+
this.r32_1 = trailingQuery;
|
|
2892
|
+
this.s32_1 = urlString;
|
|
2893
|
+
var containsArg = this.m32_1;
|
|
2890
2894
|
// Inline function 'kotlin.require' call
|
|
2891
2895
|
if (!(0 <= containsArg ? containsArg <= 65535 : false)) {
|
|
2892
|
-
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.
|
|
2896
|
+
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + this.m32_1;
|
|
2893
2897
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2894
2898
|
}
|
|
2895
|
-
this.
|
|
2896
|
-
this.
|
|
2899
|
+
this.t32_1 = pathSegments;
|
|
2900
|
+
this.u32_1 = pathSegments;
|
|
2897
2901
|
var tmp = this;
|
|
2898
|
-
tmp.
|
|
2899
|
-
this.
|
|
2902
|
+
tmp.v32_1 = lazy_0(Url$segments$delegate$lambda(pathSegments));
|
|
2903
|
+
this.w32_1 = protocol;
|
|
2900
2904
|
var tmp_0 = this;
|
|
2901
|
-
var tmp0_elvis_lhs = this.
|
|
2902
|
-
tmp_0.
|
|
2905
|
+
var tmp0_elvis_lhs = this.w32_1;
|
|
2906
|
+
tmp_0.x32_1 = tmp0_elvis_lhs == null ? Companion_getInstance_7().i33_1 : tmp0_elvis_lhs;
|
|
2903
2907
|
var tmp_1 = this;
|
|
2904
|
-
tmp_1.
|
|
2908
|
+
tmp_1.y32_1 = lazy_0(Url$encodedPath$delegate$lambda(pathSegments, this));
|
|
2905
2909
|
var tmp_2 = this;
|
|
2906
|
-
tmp_2.
|
|
2910
|
+
tmp_2.z32_1 = lazy_0(Url$encodedQuery$delegate$lambda(this));
|
|
2907
2911
|
var tmp_3 = this;
|
|
2908
|
-
tmp_3.
|
|
2912
|
+
tmp_3.a33_1 = lazy_0(Url$encodedPathAndQuery$delegate$lambda(this));
|
|
2909
2913
|
var tmp_4 = this;
|
|
2910
|
-
tmp_4.
|
|
2914
|
+
tmp_4.b33_1 = lazy_0(Url$encodedUser$delegate$lambda(this));
|
|
2911
2915
|
var tmp_5 = this;
|
|
2912
|
-
tmp_5.
|
|
2916
|
+
tmp_5.c33_1 = lazy_0(Url$encodedPassword$delegate$lambda(this));
|
|
2913
2917
|
var tmp_6 = this;
|
|
2914
|
-
tmp_6.
|
|
2918
|
+
tmp_6.d33_1 = lazy_0(Url$encodedFragment$delegate$lambda(this));
|
|
2915
2919
|
}
|
|
2916
|
-
protoOf(
|
|
2920
|
+
protoOf(Url_1).w33 = function () {
|
|
2917
2921
|
// Inline function 'kotlin.takeUnless' call
|
|
2918
|
-
var this_0 = this.
|
|
2922
|
+
var this_0 = this.m32_1;
|
|
2919
2923
|
var tmp;
|
|
2920
2924
|
if (!(this_0 === 0)) {
|
|
2921
2925
|
tmp = this_0;
|
|
@@ -2923,52 +2927,52 @@
|
|
|
2923
2927
|
tmp = null;
|
|
2924
2928
|
}
|
|
2925
2929
|
var tmp0_elvis_lhs = tmp;
|
|
2926
|
-
return tmp0_elvis_lhs == null ? this.
|
|
2930
|
+
return tmp0_elvis_lhs == null ? this.x32_1.j32_1 : tmp0_elvis_lhs;
|
|
2927
2931
|
};
|
|
2928
|
-
protoOf(
|
|
2929
|
-
var tmp0 = this.
|
|
2932
|
+
protoOf(Url_1).x33 = function () {
|
|
2933
|
+
var tmp0 = this.y32_1;
|
|
2930
2934
|
// Inline function 'kotlin.getValue' call
|
|
2931
2935
|
encodedPath$factory();
|
|
2932
2936
|
return tmp0.z();
|
|
2933
2937
|
};
|
|
2934
|
-
protoOf(
|
|
2935
|
-
var tmp0 = this.
|
|
2938
|
+
protoOf(Url_1).a34 = function () {
|
|
2939
|
+
var tmp0 = this.z32_1;
|
|
2936
2940
|
// Inline function 'kotlin.getValue' call
|
|
2937
2941
|
encodedQuery$factory();
|
|
2938
2942
|
return tmp0.z();
|
|
2939
2943
|
};
|
|
2940
|
-
protoOf(
|
|
2941
|
-
var tmp0 = this.
|
|
2944
|
+
protoOf(Url_1).y33 = function () {
|
|
2945
|
+
var tmp0 = this.b33_1;
|
|
2942
2946
|
// Inline function 'kotlin.getValue' call
|
|
2943
2947
|
encodedUser$factory();
|
|
2944
2948
|
return tmp0.z();
|
|
2945
2949
|
};
|
|
2946
|
-
protoOf(
|
|
2947
|
-
var tmp0 = this.
|
|
2950
|
+
protoOf(Url_1).z33 = function () {
|
|
2951
|
+
var tmp0 = this.c33_1;
|
|
2948
2952
|
// Inline function 'kotlin.getValue' call
|
|
2949
2953
|
encodedPassword$factory();
|
|
2950
2954
|
return tmp0.z();
|
|
2951
2955
|
};
|
|
2952
|
-
protoOf(
|
|
2953
|
-
var tmp0 = this.
|
|
2956
|
+
protoOf(Url_1).b34 = function () {
|
|
2957
|
+
var tmp0 = this.d33_1;
|
|
2954
2958
|
// Inline function 'kotlin.getValue' call
|
|
2955
2959
|
encodedFragment$factory();
|
|
2956
2960
|
return tmp0.z();
|
|
2957
2961
|
};
|
|
2958
|
-
protoOf(
|
|
2959
|
-
return this.
|
|
2962
|
+
protoOf(Url_1).toString = function () {
|
|
2963
|
+
return this.s32_1;
|
|
2960
2964
|
};
|
|
2961
|
-
protoOf(
|
|
2965
|
+
protoOf(Url_1).equals = function (other) {
|
|
2962
2966
|
if (this === other)
|
|
2963
2967
|
return true;
|
|
2964
2968
|
if (other == null || !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
2965
2969
|
return false;
|
|
2966
|
-
if (!(other instanceof
|
|
2970
|
+
if (!(other instanceof Url_1))
|
|
2967
2971
|
THROW_CCE();
|
|
2968
|
-
return this.
|
|
2972
|
+
return this.s32_1 === other.s32_1;
|
|
2969
2973
|
};
|
|
2970
|
-
protoOf(
|
|
2971
|
-
return getStringHashCode(this.
|
|
2974
|
+
protoOf(Url_1).hashCode = function () {
|
|
2975
|
+
return getStringHashCode(this.s32_1);
|
|
2972
2976
|
};
|
|
2973
2977
|
function get_authority_0(_this__u8e3s4) {
|
|
2974
2978
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -2980,19 +2984,19 @@
|
|
|
2980
2984
|
}
|
|
2981
2985
|
function UrlSerializer() {
|
|
2982
2986
|
UrlSerializer_instance = this;
|
|
2983
|
-
this.
|
|
2987
|
+
this.c34_1 = PrimitiveSerialDescriptor('io.ktor.http.Url', STRING_getInstance());
|
|
2984
2988
|
}
|
|
2985
|
-
protoOf(UrlSerializer).
|
|
2986
|
-
return this.
|
|
2989
|
+
protoOf(UrlSerializer).t1y = function () {
|
|
2990
|
+
return this.c34_1;
|
|
2987
2991
|
};
|
|
2988
|
-
protoOf(UrlSerializer).
|
|
2989
|
-
return
|
|
2992
|
+
protoOf(UrlSerializer).v1y = function (decoder) {
|
|
2993
|
+
return Url_0(decoder.b22());
|
|
2990
2994
|
};
|
|
2991
|
-
protoOf(UrlSerializer).
|
|
2992
|
-
encoder.
|
|
2995
|
+
protoOf(UrlSerializer).d34 = function (encoder, value) {
|
|
2996
|
+
encoder.k23(value.toString());
|
|
2993
2997
|
};
|
|
2994
|
-
protoOf(UrlSerializer).
|
|
2995
|
-
return this.
|
|
2998
|
+
protoOf(UrlSerializer).u1y = function (encoder, value) {
|
|
2999
|
+
return this.d34(encoder, value instanceof Url_1 ? value : THROW_CCE());
|
|
2996
3000
|
};
|
|
2997
3001
|
var UrlSerializer_instance;
|
|
2998
3002
|
function UrlSerializer_getInstance() {
|
|
@@ -3004,46 +3008,46 @@
|
|
|
3004
3008
|
// Inline function 'kotlin.text.buildString' call
|
|
3005
3009
|
// Inline function 'kotlin.apply' call
|
|
3006
3010
|
var this_0 = StringBuilder_init_$Create$();
|
|
3007
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
3011
|
+
appendUserAndPassword(this_0, _this__u8e3s4.y33(), _this__u8e3s4.z33());
|
|
3008
3012
|
return this_0.toString();
|
|
3009
3013
|
}
|
|
3010
3014
|
function encodedPath$factory() {
|
|
3011
3015
|
return getPropertyCallableRef('encodedPath', 1, KProperty1, function (receiver) {
|
|
3012
|
-
return receiver.
|
|
3016
|
+
return receiver.x33();
|
|
3013
3017
|
}, null);
|
|
3014
3018
|
}
|
|
3015
3019
|
function encodedQuery$factory() {
|
|
3016
3020
|
return getPropertyCallableRef('encodedQuery', 1, KProperty1, function (receiver) {
|
|
3017
|
-
return receiver.
|
|
3021
|
+
return receiver.a34();
|
|
3018
3022
|
}, null);
|
|
3019
3023
|
}
|
|
3020
3024
|
function encodedUser$factory() {
|
|
3021
3025
|
return getPropertyCallableRef('encodedUser', 1, KProperty1, function (receiver) {
|
|
3022
|
-
return receiver.
|
|
3026
|
+
return receiver.y33();
|
|
3023
3027
|
}, null);
|
|
3024
3028
|
}
|
|
3025
3029
|
function encodedPassword$factory() {
|
|
3026
3030
|
return getPropertyCallableRef('encodedPassword', 1, KProperty1, function (receiver) {
|
|
3027
|
-
return receiver.
|
|
3031
|
+
return receiver.z33();
|
|
3028
3032
|
}, null);
|
|
3029
3033
|
}
|
|
3030
3034
|
function encodedFragment$factory() {
|
|
3031
3035
|
return getPropertyCallableRef('encodedFragment', 1, KProperty1, function (receiver) {
|
|
3032
|
-
return receiver.
|
|
3036
|
+
return receiver.b34();
|
|
3033
3037
|
}, null);
|
|
3034
3038
|
}
|
|
3035
3039
|
function UrlDecodedParametersBuilder(encodedParametersBuilder) {
|
|
3036
|
-
this.
|
|
3037
|
-
this.
|
|
3040
|
+
this.e34_1 = encodedParametersBuilder;
|
|
3041
|
+
this.f34_1 = this.e34_1.n2n();
|
|
3038
3042
|
}
|
|
3039
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3040
|
-
return decodeParameters(this.
|
|
3043
|
+
protoOf(UrlDecodedParametersBuilder).t2u = function () {
|
|
3044
|
+
return decodeParameters(this.e34_1);
|
|
3041
3045
|
};
|
|
3042
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3043
|
-
return this.
|
|
3046
|
+
protoOf(UrlDecodedParametersBuilder).n2n = function () {
|
|
3047
|
+
return this.f34_1;
|
|
3044
3048
|
};
|
|
3045
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3046
|
-
var tmp0_safe_receiver = this.
|
|
3049
|
+
protoOf(UrlDecodedParametersBuilder).o2n = function (name) {
|
|
3050
|
+
var tmp0_safe_receiver = this.e34_1.o2n(encodeURLParameter(name));
|
|
3047
3051
|
var tmp;
|
|
3048
3052
|
if (tmp0_safe_receiver == null) {
|
|
3049
3053
|
tmp = null;
|
|
@@ -3061,12 +3065,12 @@
|
|
|
3061
3065
|
}
|
|
3062
3066
|
return tmp;
|
|
3063
3067
|
};
|
|
3064
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3065
|
-
return this.
|
|
3068
|
+
protoOf(UrlDecodedParametersBuilder).r2n = function (name) {
|
|
3069
|
+
return this.e34_1.r2n(encodeURLParameter(name));
|
|
3066
3070
|
};
|
|
3067
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3071
|
+
protoOf(UrlDecodedParametersBuilder).p2n = function () {
|
|
3068
3072
|
// Inline function 'kotlin.collections.map' call
|
|
3069
|
-
var this_0 = this.
|
|
3073
|
+
var this_0 = this.e34_1.p2n();
|
|
3070
3074
|
// Inline function 'kotlin.collections.mapTo' call
|
|
3071
3075
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
3072
3076
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -3078,18 +3082,18 @@
|
|
|
3078
3082
|
return toSet(destination);
|
|
3079
3083
|
};
|
|
3080
3084
|
protoOf(UrlDecodedParametersBuilder).h = function () {
|
|
3081
|
-
return this.
|
|
3085
|
+
return this.e34_1.h();
|
|
3082
3086
|
};
|
|
3083
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3084
|
-
return decodeParameters(this.
|
|
3087
|
+
protoOf(UrlDecodedParametersBuilder).q2n = function () {
|
|
3088
|
+
return decodeParameters(this.e34_1).q2n();
|
|
3085
3089
|
};
|
|
3086
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3087
|
-
return this.
|
|
3090
|
+
protoOf(UrlDecodedParametersBuilder).z2n = function (name, value) {
|
|
3091
|
+
return this.e34_1.z2n(encodeURLParameter(name), encodeURLParameterValue(value));
|
|
3088
3092
|
};
|
|
3089
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3090
|
-
return appendAllEncoded(this.
|
|
3093
|
+
protoOf(UrlDecodedParametersBuilder).a2o = function (stringValues) {
|
|
3094
|
+
return appendAllEncoded(this.e34_1, stringValues);
|
|
3091
3095
|
};
|
|
3092
|
-
protoOf(UrlDecodedParametersBuilder).
|
|
3096
|
+
protoOf(UrlDecodedParametersBuilder).w2n = function (name, values) {
|
|
3093
3097
|
var tmp = encodeURLParameter(name);
|
|
3094
3098
|
// Inline function 'kotlin.collections.map' call
|
|
3095
3099
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -3100,10 +3104,10 @@
|
|
|
3100
3104
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3101
3105
|
destination.k(tmp$ret$0);
|
|
3102
3106
|
}
|
|
3103
|
-
return this.
|
|
3107
|
+
return this.e34_1.w2n(tmp, destination);
|
|
3104
3108
|
};
|
|
3105
3109
|
protoOf(UrlDecodedParametersBuilder).e2 = function () {
|
|
3106
|
-
return this.
|
|
3110
|
+
return this.e34_1.e2();
|
|
3107
3111
|
};
|
|
3108
3112
|
function encodeParameters(parameters) {
|
|
3109
3113
|
// Inline function 'kotlin.apply' call
|
|
@@ -3115,14 +3119,14 @@
|
|
|
3115
3119
|
// Inline function 'kotlin.apply' call
|
|
3116
3120
|
var this_0 = ParametersBuilder();
|
|
3117
3121
|
appendAllDecoded(this_0, parameters);
|
|
3118
|
-
return this_0.
|
|
3122
|
+
return this_0.t2u();
|
|
3119
3123
|
}
|
|
3120
3124
|
function appendAllEncoded(_this__u8e3s4, parameters) {
|
|
3121
3125
|
// Inline function 'kotlin.collections.forEach' call
|
|
3122
|
-
var _iterator__ex2g4s = parameters.
|
|
3126
|
+
var _iterator__ex2g4s = parameters.p2n().p();
|
|
3123
3127
|
while (_iterator__ex2g4s.q()) {
|
|
3124
3128
|
var element = _iterator__ex2g4s.r();
|
|
3125
|
-
var tmp0_elvis_lhs = parameters.
|
|
3129
|
+
var tmp0_elvis_lhs = parameters.o2n(element);
|
|
3126
3130
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3127
3131
|
var tmp = encodeURLParameter(element);
|
|
3128
3132
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3134,15 +3138,15 @@
|
|
|
3134
3138
|
var tmp$ret$0 = encodeURLParameterValue(item);
|
|
3135
3139
|
destination.k(tmp$ret$0);
|
|
3136
3140
|
}
|
|
3137
|
-
_this__u8e3s4.
|
|
3141
|
+
_this__u8e3s4.w2n(tmp, destination);
|
|
3138
3142
|
}
|
|
3139
3143
|
}
|
|
3140
3144
|
function appendAllDecoded(_this__u8e3s4, parameters) {
|
|
3141
3145
|
// Inline function 'kotlin.collections.forEach' call
|
|
3142
|
-
var _iterator__ex2g4s = parameters.
|
|
3146
|
+
var _iterator__ex2g4s = parameters.p2n().p();
|
|
3143
3147
|
while (_iterator__ex2g4s.q()) {
|
|
3144
3148
|
var element = _iterator__ex2g4s.r();
|
|
3145
|
-
var tmp0_elvis_lhs = parameters.
|
|
3149
|
+
var tmp0_elvis_lhs = parameters.o2n(element);
|
|
3146
3150
|
var values = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
3147
3151
|
var tmp = decodeURLQueryComponent(element);
|
|
3148
3152
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -3154,7 +3158,7 @@
|
|
|
3154
3158
|
var tmp$ret$0 = decodeURLQueryComponent(item, VOID, VOID, true);
|
|
3155
3159
|
destination.k(tmp$ret$0);
|
|
3156
3160
|
}
|
|
3157
|
-
_this__u8e3s4.
|
|
3161
|
+
_this__u8e3s4.w2n(tmp, destination);
|
|
3158
3162
|
}
|
|
3159
3163
|
}
|
|
3160
3164
|
var HeaderValueEncoding_QUOTED_WHEN_REQUIRED_instance;
|
|
@@ -3234,71 +3238,71 @@
|
|
|
3234
3238
|
}
|
|
3235
3239
|
function HttpAuthHeader$Parameterized$render$lambda(this$0, $encoding) {
|
|
3236
3240
|
return function (it) {
|
|
3237
|
-
return it.
|
|
3241
|
+
return it.j2s_1 + '=' + encode_0(this$0, it.k2s_1, $encoding);
|
|
3238
3242
|
};
|
|
3239
3243
|
}
|
|
3240
3244
|
function Single(authScheme, blob) {
|
|
3241
3245
|
HttpAuthHeader.call(this, authScheme);
|
|
3242
|
-
this.
|
|
3243
|
-
var tmp0 = this.
|
|
3246
|
+
this.h34_1 = blob;
|
|
3247
|
+
var tmp0 = this.h34_1;
|
|
3244
3248
|
// Inline function 'kotlin.text.matches' call
|
|
3245
3249
|
if (!get_token68Pattern().ud(tmp0)) {
|
|
3246
3250
|
throw new ParseException('Invalid blob value: it should be token68');
|
|
3247
3251
|
}
|
|
3248
3252
|
}
|
|
3249
|
-
protoOf(Single).
|
|
3250
|
-
return this.
|
|
3253
|
+
protoOf(Single).i34 = function () {
|
|
3254
|
+
return this.j34_1 + ' ' + this.h34_1;
|
|
3251
3255
|
};
|
|
3252
3256
|
protoOf(Single).equals = function (other) {
|
|
3253
3257
|
if (!(other instanceof Single))
|
|
3254
3258
|
return false;
|
|
3255
|
-
return equals(other.
|
|
3259
|
+
return equals(other.j34_1, this.j34_1, true) && equals(other.h34_1, this.h34_1, true);
|
|
3256
3260
|
};
|
|
3257
3261
|
protoOf(Single).hashCode = function () {
|
|
3258
3262
|
var tmp = Hash_instance;
|
|
3259
3263
|
// Inline function 'kotlin.text.lowercase' call
|
|
3260
3264
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3261
|
-
var tmp_0 = this.
|
|
3265
|
+
var tmp_0 = this.j34_1.toLowerCase();
|
|
3262
3266
|
// Inline function 'kotlin.text.lowercase' call
|
|
3263
3267
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3264
|
-
var tmp$ret$3 = this.
|
|
3265
|
-
return tmp.
|
|
3268
|
+
var tmp$ret$3 = this.h34_1.toLowerCase();
|
|
3269
|
+
return tmp.c2n([tmp_0, tmp$ret$3]);
|
|
3266
3270
|
};
|
|
3267
3271
|
function Parameterized(authScheme, parameters, encoding) {
|
|
3268
3272
|
encoding = encoding === VOID ? HeaderValueEncoding_QUOTED_WHEN_REQUIRED_getInstance() : encoding;
|
|
3269
3273
|
HttpAuthHeader.call(this, authScheme);
|
|
3270
|
-
this.
|
|
3271
|
-
this.
|
|
3274
|
+
this.l34_1 = parameters;
|
|
3275
|
+
this.m34_1 = encoding;
|
|
3272
3276
|
// Inline function 'kotlin.collections.forEach' call
|
|
3273
|
-
var _iterator__ex2g4s = this.
|
|
3277
|
+
var _iterator__ex2g4s = this.l34_1.p();
|
|
3274
3278
|
while (_iterator__ex2g4s.q()) {
|
|
3275
3279
|
var element = _iterator__ex2g4s.r();
|
|
3276
|
-
var tmp0 = element.
|
|
3280
|
+
var tmp0 = element.j2s_1;
|
|
3277
3281
|
// Inline function 'kotlin.text.matches' call
|
|
3278
3282
|
if (!get_token68Pattern().ud(tmp0)) {
|
|
3279
3283
|
throw new ParseException('Parameter name should be a token');
|
|
3280
3284
|
}
|
|
3281
3285
|
}
|
|
3282
3286
|
}
|
|
3283
|
-
protoOf(Parameterized).
|
|
3287
|
+
protoOf(Parameterized).n34 = function (encoding) {
|
|
3284
3288
|
var tmp;
|
|
3285
|
-
if (this.
|
|
3286
|
-
tmp = this.
|
|
3289
|
+
if (this.l34_1.h()) {
|
|
3290
|
+
tmp = this.j34_1;
|
|
3287
3291
|
} else {
|
|
3288
|
-
var tmp_0 = this.
|
|
3289
|
-
tmp = joinToString(this.
|
|
3292
|
+
var tmp_0 = this.j34_1 + ' ';
|
|
3293
|
+
tmp = joinToString(this.l34_1, ', ', tmp_0, VOID, VOID, VOID, HttpAuthHeader$Parameterized$render$lambda(this, encoding));
|
|
3290
3294
|
}
|
|
3291
3295
|
return tmp;
|
|
3292
3296
|
};
|
|
3293
|
-
protoOf(Parameterized).
|
|
3294
|
-
var tmp0 = this.
|
|
3297
|
+
protoOf(Parameterized).p2u = function (name) {
|
|
3298
|
+
var tmp0 = this.l34_1;
|
|
3295
3299
|
var tmp$ret$1;
|
|
3296
3300
|
$l$block: {
|
|
3297
3301
|
// Inline function 'kotlin.collections.firstOrNull' call
|
|
3298
3302
|
var _iterator__ex2g4s = tmp0.p();
|
|
3299
3303
|
while (_iterator__ex2g4s.q()) {
|
|
3300
3304
|
var element = _iterator__ex2g4s.r();
|
|
3301
|
-
if (element.
|
|
3305
|
+
if (element.j2s_1 === name) {
|
|
3302
3306
|
tmp$ret$1 = element;
|
|
3303
3307
|
break $l$block;
|
|
3304
3308
|
}
|
|
@@ -3306,22 +3310,22 @@
|
|
|
3306
3310
|
tmp$ret$1 = null;
|
|
3307
3311
|
}
|
|
3308
3312
|
var tmp0_safe_receiver = tmp$ret$1;
|
|
3309
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
3313
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.k2s_1;
|
|
3310
3314
|
};
|
|
3311
|
-
protoOf(Parameterized).
|
|
3312
|
-
return this.
|
|
3315
|
+
protoOf(Parameterized).i34 = function () {
|
|
3316
|
+
return this.n34(this.m34_1);
|
|
3313
3317
|
};
|
|
3314
3318
|
protoOf(Parameterized).equals = function (other) {
|
|
3315
3319
|
if (!(other instanceof Parameterized))
|
|
3316
3320
|
return false;
|
|
3317
|
-
return equals(other.
|
|
3321
|
+
return equals(other.j34_1, this.j34_1, true) && equals_0(other.l34_1, this.l34_1);
|
|
3318
3322
|
};
|
|
3319
3323
|
protoOf(Parameterized).hashCode = function () {
|
|
3320
3324
|
var tmp = Hash_instance;
|
|
3321
3325
|
// Inline function 'kotlin.text.lowercase' call
|
|
3322
3326
|
// Inline function 'kotlin.js.asDynamic' call
|
|
3323
|
-
var tmp$ret$1 = this.
|
|
3324
|
-
return tmp.
|
|
3327
|
+
var tmp$ret$1 = this.j34_1.toLowerCase();
|
|
3328
|
+
return tmp.c2n([tmp$ret$1, this.l34_1]);
|
|
3325
3329
|
};
|
|
3326
3330
|
function Companion_9() {
|
|
3327
3331
|
}
|
|
@@ -3330,15 +3334,15 @@
|
|
|
3330
3334
|
return Companion_instance_9;
|
|
3331
3335
|
}
|
|
3332
3336
|
function HttpAuthHeader(authScheme) {
|
|
3333
|
-
this.
|
|
3334
|
-
var tmp0 = this.
|
|
3337
|
+
this.j34_1 = authScheme;
|
|
3338
|
+
var tmp0 = this.j34_1;
|
|
3335
3339
|
// Inline function 'kotlin.text.matches' call
|
|
3336
3340
|
if (!get_token68Pattern().ud(tmp0)) {
|
|
3337
|
-
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.
|
|
3341
|
+
throw new ParseException('Invalid authScheme value: it should be token, but instead it is ' + this.j34_1);
|
|
3338
3342
|
}
|
|
3339
3343
|
}
|
|
3340
3344
|
protoOf(HttpAuthHeader).toString = function () {
|
|
3341
|
-
return this.
|
|
3345
|
+
return this.i34();
|
|
3342
3346
|
};
|
|
3343
3347
|
function parseAuthorizationHeaders(headerValue) {
|
|
3344
3348
|
_init_properties_HttpAuthHeader_kt__axcd0d();
|
|
@@ -3526,18 +3530,21 @@
|
|
|
3526
3530
|
contentType = contentType === VOID ? null : contentType;
|
|
3527
3531
|
status = status === VOID ? null : status;
|
|
3528
3532
|
ByteArrayContent_0.call(this);
|
|
3529
|
-
this.
|
|
3530
|
-
this.
|
|
3531
|
-
this.
|
|
3533
|
+
this.p34_1 = bytes;
|
|
3534
|
+
this.q34_1 = contentType;
|
|
3535
|
+
this.r34_1 = status;
|
|
3532
3536
|
}
|
|
3533
|
-
protoOf(ByteArrayContent).
|
|
3534
|
-
return this.
|
|
3537
|
+
protoOf(ByteArrayContent).s34 = function () {
|
|
3538
|
+
return this.q34_1;
|
|
3539
|
+
};
|
|
3540
|
+
protoOf(ByteArrayContent).t34 = function () {
|
|
3541
|
+
return this.r34_1;
|
|
3535
3542
|
};
|
|
3536
|
-
protoOf(ByteArrayContent).
|
|
3537
|
-
return toLong_0(this.
|
|
3543
|
+
protoOf(ByteArrayContent).u34 = function () {
|
|
3544
|
+
return toLong_0(this.p34_1.length);
|
|
3538
3545
|
};
|
|
3539
|
-
protoOf(ByteArrayContent).
|
|
3540
|
-
return this.
|
|
3546
|
+
protoOf(ByteArrayContent).v34 = function () {
|
|
3547
|
+
return this.p34_1;
|
|
3541
3548
|
};
|
|
3542
3549
|
function MultiPartData() {
|
|
3543
3550
|
}
|
|
@@ -3556,20 +3563,23 @@
|
|
|
3556
3563
|
}
|
|
3557
3564
|
function ContentWrapper() {
|
|
3558
3565
|
}
|
|
3559
|
-
protoOf(ContentWrapper).
|
|
3560
|
-
return this.
|
|
3566
|
+
protoOf(ContentWrapper).e35 = function () {
|
|
3567
|
+
return this.d35_1;
|
|
3561
3568
|
};
|
|
3562
3569
|
function OutgoingContent() {
|
|
3563
|
-
this.
|
|
3570
|
+
this.w34_1 = null;
|
|
3564
3571
|
}
|
|
3565
|
-
protoOf(OutgoingContent).
|
|
3572
|
+
protoOf(OutgoingContent).s34 = function () {
|
|
3566
3573
|
return null;
|
|
3567
3574
|
};
|
|
3568
|
-
protoOf(OutgoingContent).
|
|
3575
|
+
protoOf(OutgoingContent).u34 = function () {
|
|
3569
3576
|
return null;
|
|
3570
3577
|
};
|
|
3571
|
-
protoOf(OutgoingContent).
|
|
3572
|
-
return
|
|
3578
|
+
protoOf(OutgoingContent).t34 = function () {
|
|
3579
|
+
return null;
|
|
3580
|
+
};
|
|
3581
|
+
protoOf(OutgoingContent).x2y = function () {
|
|
3582
|
+
return Companion_getInstance_1().q2u_1;
|
|
3573
3583
|
};
|
|
3574
3584
|
function NullBody() {
|
|
3575
3585
|
}
|
|
@@ -3580,40 +3590,43 @@
|
|
|
3580
3590
|
function TextContent(text, contentType, status) {
|
|
3581
3591
|
status = status === VOID ? null : status;
|
|
3582
3592
|
ByteArrayContent_0.call(this);
|
|
3583
|
-
this.
|
|
3584
|
-
this.
|
|
3585
|
-
this.
|
|
3593
|
+
this.h35_1 = text;
|
|
3594
|
+
this.i35_1 = contentType;
|
|
3595
|
+
this.j35_1 = status;
|
|
3586
3596
|
var tmp = this;
|
|
3587
|
-
var tmp0_elvis_lhs = charset(this.
|
|
3588
|
-
tmp.
|
|
3597
|
+
var tmp0_elvis_lhs = charset(this.i35_1);
|
|
3598
|
+
tmp.k35_1 = toByteArray(this.h35_1, tmp0_elvis_lhs == null ? Charsets_getInstance().q1x_1 : tmp0_elvis_lhs);
|
|
3589
3599
|
}
|
|
3590
|
-
protoOf(TextContent).
|
|
3591
|
-
return this.
|
|
3600
|
+
protoOf(TextContent).s34 = function () {
|
|
3601
|
+
return this.i35_1;
|
|
3602
|
+
};
|
|
3603
|
+
protoOf(TextContent).t34 = function () {
|
|
3604
|
+
return this.j35_1;
|
|
3592
3605
|
};
|
|
3593
|
-
protoOf(TextContent).
|
|
3594
|
-
return toLong_0(this.
|
|
3606
|
+
protoOf(TextContent).u34 = function () {
|
|
3607
|
+
return toLong_0(this.k35_1.length);
|
|
3595
3608
|
};
|
|
3596
|
-
protoOf(TextContent).
|
|
3597
|
-
return this.
|
|
3609
|
+
protoOf(TextContent).v34 = function () {
|
|
3610
|
+
return this.k35_1;
|
|
3598
3611
|
};
|
|
3599
3612
|
protoOf(TextContent).toString = function () {
|
|
3600
|
-
return 'TextContent[' + this.
|
|
3613
|
+
return 'TextContent[' + this.i35_1.toString() + '] "' + take(this.h35_1, 30) + '"';
|
|
3601
3614
|
};
|
|
3602
3615
|
function ParseException(message, cause) {
|
|
3603
3616
|
cause = cause === VOID ? null : cause;
|
|
3604
3617
|
IllegalArgumentException_init_$Init$_0(message, cause, this);
|
|
3605
3618
|
captureStack(this, ParseException);
|
|
3606
|
-
this.
|
|
3607
|
-
this.
|
|
3619
|
+
this.l35_1 = message;
|
|
3620
|
+
this.m35_1 = cause;
|
|
3608
3621
|
}
|
|
3609
3622
|
protoOf(ParseException).aa = function () {
|
|
3610
|
-
return this.
|
|
3623
|
+
return this.l35_1;
|
|
3611
3624
|
};
|
|
3612
3625
|
protoOf(ParseException).ba = function () {
|
|
3613
|
-
return this.
|
|
3626
|
+
return this.m35_1;
|
|
3614
3627
|
};
|
|
3615
3628
|
function get_origin(_this__u8e3s4) {
|
|
3616
|
-
return PlatformUtils_getInstance().
|
|
3629
|
+
return PlatformUtils_getInstance().f2n_1 ? locationOrigin() : 'http://localhost';
|
|
3617
3630
|
}
|
|
3618
3631
|
function locationOrigin() {
|
|
3619
3632
|
return function () {
|
|
@@ -3631,9 +3644,10 @@
|
|
|
3631
3644
|
}();
|
|
3632
3645
|
}
|
|
3633
3646
|
//region block: post-declaration
|
|
3634
|
-
protoOf(EmptyHeaders).
|
|
3635
|
-
protoOf(EmptyHeaders).
|
|
3636
|
-
protoOf(
|
|
3647
|
+
protoOf(EmptyHeaders).h2m = get;
|
|
3648
|
+
protoOf(EmptyHeaders).r2n = contains_0;
|
|
3649
|
+
protoOf(EmptyHeaders).s2n = forEach;
|
|
3650
|
+
protoOf(EmptyParameters).s2n = forEach;
|
|
3637
3651
|
defineProp(protoOf(ParseException), 'message', function () {
|
|
3638
3652
|
return this.aa();
|
|
3639
3653
|
});
|
|
@@ -3682,23 +3696,24 @@
|
|
|
3682
3696
|
_.$_$.c1 = URLBuilder_1;
|
|
3683
3697
|
_.$_$.d1 = URLBuilder;
|
|
3684
3698
|
_.$_$.e1 = UnsafeHeaderException;
|
|
3685
|
-
_.$_$.f1 =
|
|
3686
|
-
_.$_$.g1 =
|
|
3687
|
-
_.$_$.h1 =
|
|
3688
|
-
_.$_$.i1 =
|
|
3689
|
-
_.$_$.j1 =
|
|
3690
|
-
_.$_$.k1 =
|
|
3691
|
-
_.$_$.l1 =
|
|
3692
|
-
_.$_$.m1 =
|
|
3693
|
-
_.$_$.n1 =
|
|
3694
|
-
_.$_$.o1 =
|
|
3695
|
-
_.$_$.p1 =
|
|
3696
|
-
_.$_$.q1 =
|
|
3697
|
-
_.$_$.r1 =
|
|
3698
|
-
_.$_$.s1 =
|
|
3699
|
-
_.$_$.t1 =
|
|
3700
|
-
_.$_$.u1 =
|
|
3701
|
-
_.$_$.v1 =
|
|
3699
|
+
_.$_$.f1 = Url;
|
|
3700
|
+
_.$_$.g1 = append;
|
|
3701
|
+
_.$_$.h1 = get_authority;
|
|
3702
|
+
_.$_$.i1 = get_authority_0;
|
|
3703
|
+
_.$_$.j1 = charset_0;
|
|
3704
|
+
_.$_$.k1 = charset;
|
|
3705
|
+
_.$_$.l1 = contentLength;
|
|
3706
|
+
_.$_$.m1 = contentType;
|
|
3707
|
+
_.$_$.n1 = contentType_0;
|
|
3708
|
+
_.$_$.o1 = get_encodedPath;
|
|
3709
|
+
_.$_$.p1 = headersOf;
|
|
3710
|
+
_.$_$.q1 = isSecure;
|
|
3711
|
+
_.$_$.r1 = isWebsocket;
|
|
3712
|
+
_.$_$.s1 = parseAndSortHeader;
|
|
3713
|
+
_.$_$.t1 = takeFrom_0;
|
|
3714
|
+
_.$_$.u1 = takeFrom;
|
|
3715
|
+
_.$_$.v1 = withCharsetIfNeeded;
|
|
3716
|
+
_.$_$.w1 = withCharset;
|
|
3702
3717
|
//endregion
|
|
3703
3718
|
return _;
|
|
3704
3719
|
}(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./ktor-ktor-io.js'), require('./ktor-ktor-utils.js'), require('./kotlinx-serialization-kotlinx-serialization-core.js')));
|