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