mrs-toolbox-cli 0.0.1
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/88b0986a7186d029-atomicfu-js-ir.js +268 -0
- package/88b0986a7186d029-atomicfu-js-ir.js.hash +1 -0
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -0
- package/88b0986a7186d029-atomicfu-js-ir.js.map.hash +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js +8 -0
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.hash +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map +1 -0
- package/Kotlin-DateTime-library-kotlinx-datetime-js-ir.js.map.hash +1 -0
- package/clikt-clikt-js-ir.js +7044 -0
- package/clikt-clikt-js-ir.js.hash +1 -0
- package/clikt-clikt-js-ir.js.map +1 -0
- package/clikt-clikt-js-ir.js.map.hash +1 -0
- package/com.mrs.platform.configuration.dto.js +17100 -0
- package/com.mrs.platform.configuration.dto.js.hash +1 -0
- package/com.mrs.platform.configuration.dto.js.map +1 -0
- package/com.mrs.platform.configuration.dto.js.map.hash +1 -0
- package/kotlin-js.js +8 -0
- package/kotlin-js.js.hash +1 -0
- package/kotlin-js.js.map +1 -0
- package/kotlin-js.js.map.hash +1 -0
- package/kotlin-kotlin-stdlib-js-ir.js +15789 -0
- package/kotlin-kotlin-stdlib-js-ir.js.hash +1 -0
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -0
- package/kotlin-kotlin-stdlib-js-ir.js.map.hash +1 -0
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +8 -0
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.hash +1 -0
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -0
- package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map.hash +1 -0
- package/kotlin-logging-js-ir.js +274 -0
- package/kotlin-logging-js-ir.js.hash +1 -0
- package/kotlin-logging-js-ir.js.map +1 -0
- package/kotlin-logging-js-ir.js.map.hash +1 -0
- package/kotlin-node.js +20 -0
- package/kotlin-node.js.hash +1 -0
- package/kotlin-node.js.map +1 -0
- package/kotlin-node.js.map.hash +1 -0
- package/kotlin-web.js +8 -0
- package/kotlin-web.js.hash +1 -0
- package/kotlin-web.js.map +1 -0
- package/kotlin-web.js.map.hash +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js +6431 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.hash +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core-js-ir.js.map.hash +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js +5102 -0
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.hash +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-js-ir.js.map.hash +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +8964 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.hash +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map.hash +1 -0
- package/ktor-ktor-client-content-negotiation.js +690 -0
- package/ktor-ktor-client-content-negotiation.js.hash +1 -0
- package/ktor-ktor-client-content-negotiation.js.map +1 -0
- package/ktor-ktor-client-content-negotiation.js.map.hash +1 -0
- package/ktor-ktor-client-core.js +7572 -0
- package/ktor-ktor-client-core.js.hash +1 -0
- package/ktor-ktor-client-core.js.map +1 -0
- package/ktor-ktor-client-core.js.map.hash +1 -0
- package/ktor-ktor-events.js +88 -0
- package/ktor-ktor-events.js.hash +1 -0
- package/ktor-ktor-events.js.map +1 -0
- package/ktor-ktor-events.js.map.hash +1 -0
- package/ktor-ktor-http.js +3651 -0
- package/ktor-ktor-http.js.hash +1 -0
- package/ktor-ktor-http.js.map +1 -0
- package/ktor-ktor-http.js.map.hash +1 -0
- package/ktor-ktor-io.js +7053 -0
- package/ktor-ktor-io.js.hash +1 -0
- package/ktor-ktor-io.js.map +1 -0
- package/ktor-ktor-io.js.map.hash +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js +48 -0
- package/ktor-ktor-serialization-kotlinx-json.js.hash +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map.hash +1 -0
- package/ktor-ktor-serialization-kotlinx.js +845 -0
- package/ktor-ktor-serialization-kotlinx.js.hash +1 -0
- package/ktor-ktor-serialization-kotlinx.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx.js.map.hash +1 -0
- package/ktor-ktor-serialization.js +345 -0
- package/ktor-ktor-serialization.js.hash +1 -0
- package/ktor-ktor-serialization.js.map +1 -0
- package/ktor-ktor-serialization.js.map.hash +1 -0
- package/ktor-ktor-utils.js +2159 -0
- package/ktor-ktor-utils.js.hash +1 -0
- package/ktor-ktor-utils.js.map +1 -0
- package/ktor-ktor-utils.js.map.hash +1 -0
- package/ktor-ktor-websocket-serialization.js +8 -0
- package/ktor-ktor-websocket-serialization.js.hash +1 -0
- package/ktor-ktor-websocket-serialization.js.map +1 -0
- package/ktor-ktor-websocket-serialization.js.map.hash +1 -0
- package/ktor-ktor-websockets.js +466 -0
- package/ktor-ktor-websockets.js.hash +1 -0
- package/ktor-ktor-websockets.js.map +1 -0
- package/ktor-ktor-websockets.js.map.hash +1 -0
- package/mrs-toolbox-cli.d.ts +2587 -0
- package/mrs-toolbox-cli.d.ts.hash +1 -0
- package/mrs-toolbox-cli.js +389 -0
- package/mrs-toolbox-cli.js.hash +1 -0
- package/mrs-toolbox-cli.js.map +1 -0
- package/mrs-toolbox-cli.js.map.hash +1 -0
- package/package.json +25 -0
- package/static/access.query.txt +0 -0
- package/static/access.query.txt.hash +1 -0
- package/static/demo.test.ts.txt +26 -0
- package/static/demo.test.ts.txt.hash +1 -0
- package/static/git.ignore +5 -0
- package/static/git.ignore.hash +1 -0
- package/static/graph.query.txt +0 -0
- package/static/graph.query.txt.hash +1 -0
- package/static/hook.ts.txt +7 -0
- package/static/hook.ts.txt.hash +1 -0
- package/static/mrscconfig.json +15 -0
- package/static/mrscconfig.json.hash +1 -0
- package/static/readme.md +50 -0
- package/static/readme.md.hash +1 -0
- package/static/tsconfig.json.txt +8 -0
- package/static/tsconfig.json.txt.hash +1 -0
- package/toolbox.js +15864 -0
- package/toolbox.js.hash +1 -0
- package/toolbox.js.map +1 -0
- package/toolbox.js.map.hash +1 -0
|
@@ -0,0 +1,2159 @@
|
|
|
1
|
+
(function (_, kotlin_kotlin, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_org_jetbrains_kotlinx_atomicfu) {
|
|
2
|
+
'use strict';
|
|
3
|
+
//region block: imports
|
|
4
|
+
var imul = Math.imul;
|
|
5
|
+
var charSequenceLength = kotlin_kotlin.$_$.m9;
|
|
6
|
+
var Unit_getInstance = kotlin_kotlin.$_$.v4;
|
|
7
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.ua;
|
|
9
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.d;
|
|
10
|
+
var THROW_CCE = kotlin_kotlin.$_$.pe;
|
|
11
|
+
var getStringHashCode = kotlin_kotlin.$_$.v9;
|
|
12
|
+
var classMeta = kotlin_kotlin.$_$.o9;
|
|
13
|
+
var VOID = kotlin_kotlin.$_$.tf;
|
|
14
|
+
var setMetadataFor = kotlin_kotlin.$_$.va;
|
|
15
|
+
var interfaceMeta = kotlin_kotlin.$_$.x9;
|
|
16
|
+
var CoroutineImpl = kotlin_kotlin.$_$.c9;
|
|
17
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.o8;
|
|
18
|
+
var readBytes = kotlin_io_ktor_ktor_io.$_$.v;
|
|
19
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
20
|
+
var isObject = kotlin_kotlin.$_$.ia;
|
|
21
|
+
var equals = kotlin_kotlin.$_$.r9;
|
|
22
|
+
var hashCode = kotlin_kotlin.$_$.w9;
|
|
23
|
+
var MutableMap = kotlin_kotlin.$_$.i5;
|
|
24
|
+
var ensureNotNull = kotlin_kotlin.$_$.gf;
|
|
25
|
+
var Entry = kotlin_kotlin.$_$.e5;
|
|
26
|
+
var isInterface = kotlin_kotlin.$_$.ga;
|
|
27
|
+
var MutableEntry = kotlin_kotlin.$_$.h5;
|
|
28
|
+
var charArray = kotlin_kotlin.$_$.k9;
|
|
29
|
+
var charSequenceGet = kotlin_kotlin.$_$.l9;
|
|
30
|
+
var toString = kotlin_kotlin.$_$.n2;
|
|
31
|
+
var Char = kotlin_kotlin.$_$.zd;
|
|
32
|
+
var SupervisorJob = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
|
|
33
|
+
var AbstractCoroutineContextElement = kotlin_kotlin.$_$.r8;
|
|
34
|
+
var Key_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.i;
|
|
35
|
+
var get = kotlin_kotlin.$_$.y8;
|
|
36
|
+
var fold = kotlin_kotlin.$_$.x8;
|
|
37
|
+
var minusKey = kotlin_kotlin.$_$.z8;
|
|
38
|
+
var plus = kotlin_kotlin.$_$.b9;
|
|
39
|
+
var Element = kotlin_kotlin.$_$.a9;
|
|
40
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.p5;
|
|
41
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.i;
|
|
42
|
+
var Set = kotlin_kotlin.$_$.k5;
|
|
43
|
+
var toString_0 = kotlin_kotlin.$_$.za;
|
|
44
|
+
var MutableSet = kotlin_kotlin.$_$.j5;
|
|
45
|
+
var Enum = kotlin_kotlin.$_$.ee;
|
|
46
|
+
var objectMeta = kotlin_kotlin.$_$.ta;
|
|
47
|
+
var firstOrNull = kotlin_kotlin.$_$.j6;
|
|
48
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.j;
|
|
49
|
+
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.r;
|
|
50
|
+
var emptyMap = kotlin_kotlin.$_$.g6;
|
|
51
|
+
var to = kotlin_kotlin.$_$.sf;
|
|
52
|
+
var addAll = kotlin_kotlin.$_$.l5;
|
|
53
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.b1;
|
|
54
|
+
var get_lastIndex = kotlin_kotlin.$_$.mc;
|
|
55
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.g2;
|
|
56
|
+
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.k2;
|
|
57
|
+
var equals_0 = kotlin_kotlin.$_$.bc;
|
|
58
|
+
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
|
|
59
|
+
var Long = kotlin_kotlin.$_$.je;
|
|
60
|
+
var Comparable = kotlin_kotlin.$_$.be;
|
|
61
|
+
var isSuspendFunction = kotlin_kotlin.$_$.ka;
|
|
62
|
+
var MutableList = kotlin_kotlin.$_$.g5;
|
|
63
|
+
var objectCreate = kotlin_kotlin.$_$.sa;
|
|
64
|
+
var ArrayList = kotlin_kotlin.$_$.w4;
|
|
65
|
+
var emptyList = kotlin_kotlin.$_$.f6;
|
|
66
|
+
var get_lastIndex_0 = kotlin_kotlin.$_$.w6;
|
|
67
|
+
var last = kotlin_kotlin.$_$.z6;
|
|
68
|
+
var mutableListOf = kotlin_kotlin.$_$.g7;
|
|
69
|
+
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.x;
|
|
70
|
+
var extendThrowable = kotlin_kotlin.$_$.s9;
|
|
71
|
+
var captureStack = kotlin_kotlin.$_$.i9;
|
|
72
|
+
var recoverStackTrace = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.q;
|
|
73
|
+
var Companion_getInstance = kotlin_kotlin.$_$.q4;
|
|
74
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.o2;
|
|
75
|
+
var createFailure = kotlin_kotlin.$_$.ff;
|
|
76
|
+
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.p2;
|
|
77
|
+
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.q2;
|
|
78
|
+
var IntCompanionObject_getInstance = kotlin_kotlin.$_$.i4;
|
|
79
|
+
var Continuation = kotlin_kotlin.$_$.w8;
|
|
80
|
+
var fillArrayVal = kotlin_kotlin.$_$.t9;
|
|
81
|
+
var intercepted = kotlin_kotlin.$_$.q8;
|
|
82
|
+
var toList = kotlin_kotlin.$_$.a8;
|
|
83
|
+
var isNaN_0 = kotlin_kotlin.$_$.kf;
|
|
84
|
+
var numberToLong = kotlin_kotlin.$_$.ra;
|
|
85
|
+
var IllegalStateException = kotlin_kotlin.$_$.ie;
|
|
86
|
+
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.q1;
|
|
87
|
+
//endregion
|
|
88
|
+
//region block: pre-declaration
|
|
89
|
+
setMetadataFor(AttributeKey, 'AttributeKey', classMeta);
|
|
90
|
+
function get_0(key) {
|
|
91
|
+
var tmp0_elvis_lhs = this.l1k(key);
|
|
92
|
+
var tmp;
|
|
93
|
+
if (tmp0_elvis_lhs == null) {
|
|
94
|
+
throw IllegalStateException_init_$Create$('No instance for key ' + key);
|
|
95
|
+
} else {
|
|
96
|
+
tmp = tmp0_elvis_lhs;
|
|
97
|
+
}
|
|
98
|
+
return tmp;
|
|
99
|
+
}
|
|
100
|
+
setMetadataFor(Attributes, 'Attributes', interfaceMeta);
|
|
101
|
+
setMetadataFor($toByteArrayCOROUTINE$0, '$toByteArrayCOROUTINE$0', classMeta, CoroutineImpl);
|
|
102
|
+
setMetadataFor(CaseInsensitiveMap, 'CaseInsensitiveMap', classMeta, VOID, [MutableMap]);
|
|
103
|
+
setMetadataFor(Entry_0, 'Entry', classMeta, VOID, [MutableEntry]);
|
|
104
|
+
setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta, AbstractCoroutineContextElement, [AbstractCoroutineContextElement, Element]);
|
|
105
|
+
setMetadataFor(DelegatingMutableSet$iterator$1, VOID, classMeta);
|
|
106
|
+
setMetadataFor(DelegatingMutableSet, 'DelegatingMutableSet', classMeta, VOID, [MutableSet]);
|
|
107
|
+
setMetadataFor(Platform, 'Platform', classMeta, Enum);
|
|
108
|
+
setMetadataFor(PlatformUtils, 'PlatformUtils', objectMeta);
|
|
109
|
+
function get_1(name) {
|
|
110
|
+
var tmp0_safe_receiver = this.h1m(name);
|
|
111
|
+
return tmp0_safe_receiver == null ? null : firstOrNull(tmp0_safe_receiver);
|
|
112
|
+
}
|
|
113
|
+
function forEach(body) {
|
|
114
|
+
var tmp0_forEach = this.j1m();
|
|
115
|
+
var tmp0_iterator = tmp0_forEach.f();
|
|
116
|
+
while (tmp0_iterator.g()) {
|
|
117
|
+
var element = tmp0_iterator.h();
|
|
118
|
+
// Inline function 'io.ktor.util.StringValues.forEach.<anonymous>' call
|
|
119
|
+
var tmp$ret$0;
|
|
120
|
+
// Inline function 'kotlin.collections.component1' call
|
|
121
|
+
tmp$ret$0 = element.x();
|
|
122
|
+
var k = tmp$ret$0;
|
|
123
|
+
var tmp$ret$1;
|
|
124
|
+
// Inline function 'kotlin.collections.component2' call
|
|
125
|
+
tmp$ret$1 = element.y();
|
|
126
|
+
var v = tmp$ret$1;
|
|
127
|
+
body(k, v);
|
|
128
|
+
}
|
|
129
|
+
return Unit_getInstance();
|
|
130
|
+
}
|
|
131
|
+
setMetadataFor(StringValues, 'StringValues', interfaceMeta);
|
|
132
|
+
setMetadataFor(StringValuesBuilderImpl, 'StringValuesBuilderImpl', classMeta);
|
|
133
|
+
setMetadataFor(StringValuesImpl, 'StringValuesImpl', classMeta, VOID, [StringValues]);
|
|
134
|
+
setMetadataFor(CaseInsensitiveString, 'CaseInsensitiveString', classMeta);
|
|
135
|
+
setMetadataFor(CopyOnWriteHashMap, 'CopyOnWriteHashMap', classMeta);
|
|
136
|
+
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
137
|
+
setMetadataFor(GMTDate, 'GMTDate', classMeta, VOID, [Comparable]);
|
|
138
|
+
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
139
|
+
setMetadataFor(WeekDay, 'WeekDay', classMeta, Enum);
|
|
140
|
+
setMetadataFor(Companion_1, 'Companion', objectMeta);
|
|
141
|
+
setMetadataFor(Month, 'Month', classMeta, Enum);
|
|
142
|
+
setMetadataFor($proceedLoopCOROUTINE$1, '$proceedLoopCOROUTINE$1', classMeta, CoroutineImpl);
|
|
143
|
+
setMetadataFor(PipelineContext, 'PipelineContext', classMeta, VOID, [CoroutineScope], VOID, VOID, [1, 0]);
|
|
144
|
+
setMetadataFor(DebugPipelineContext, 'DebugPipelineContext', classMeta, PipelineContext, VOID, VOID, VOID, [1, 0]);
|
|
145
|
+
setMetadataFor(Companion_2, 'Companion', objectMeta);
|
|
146
|
+
setMetadataFor(PhaseContent, 'PhaseContent', classMeta);
|
|
147
|
+
setMetadataFor(Pipeline, 'Pipeline', classMeta, VOID, VOID, VOID, VOID, [2]);
|
|
148
|
+
setMetadataFor(PipelinePhase, 'PipelinePhase', classMeta);
|
|
149
|
+
setMetadataFor(InvalidPhaseException, 'InvalidPhaseException', classMeta, Error);
|
|
150
|
+
setMetadataFor(PipelinePhaseRelation, 'PipelinePhaseRelation', classMeta);
|
|
151
|
+
setMetadataFor(After, 'After', classMeta, PipelinePhaseRelation);
|
|
152
|
+
setMetadataFor(Before, 'Before', classMeta, PipelinePhaseRelation);
|
|
153
|
+
setMetadataFor(Last, 'Last', objectMeta, PipelinePhaseRelation);
|
|
154
|
+
setMetadataFor(SuspendFunctionGun$continuation$1, VOID, classMeta, VOID, [Continuation]);
|
|
155
|
+
setMetadataFor(SuspendFunctionGun, 'SuspendFunctionGun', classMeta, PipelineContext, VOID, VOID, VOID, [0, 1]);
|
|
156
|
+
setMetadataFor(TypeInfo, 'TypeInfo', classMeta);
|
|
157
|
+
setMetadataFor(AttributesJs, 'AttributesJs', classMeta, VOID, [Attributes]);
|
|
158
|
+
setMetadataFor(InvalidTimestampException, 'InvalidTimestampException', classMeta, IllegalStateException);
|
|
159
|
+
setMetadataFor(KtorSimpleLogger$1, VOID, classMeta);
|
|
160
|
+
setMetadataFor(JsType, 'JsType', objectMeta);
|
|
161
|
+
//endregion
|
|
162
|
+
function AttributeKey(name) {
|
|
163
|
+
this.j1k_1 = name;
|
|
164
|
+
var tmp$ret$0;
|
|
165
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
166
|
+
var tmp0_isEmpty = this.j1k_1;
|
|
167
|
+
tmp$ret$0 = charSequenceLength(tmp0_isEmpty) === 0;
|
|
168
|
+
if (tmp$ret$0) {
|
|
169
|
+
throw IllegalStateException_init_$Create$("Name can't be blank");
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
protoOf(AttributeKey).toString = function () {
|
|
173
|
+
return 'AttributeKey: ' + this.j1k_1;
|
|
174
|
+
};
|
|
175
|
+
protoOf(AttributeKey).equals = function (other) {
|
|
176
|
+
if (this === other)
|
|
177
|
+
return true;
|
|
178
|
+
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
179
|
+
return false;
|
|
180
|
+
if (other instanceof AttributeKey)
|
|
181
|
+
other;
|
|
182
|
+
else
|
|
183
|
+
THROW_CCE();
|
|
184
|
+
if (!(this.j1k_1 === other.j1k_1))
|
|
185
|
+
return false;
|
|
186
|
+
return true;
|
|
187
|
+
};
|
|
188
|
+
protoOf(AttributeKey).hashCode = function () {
|
|
189
|
+
return getStringHashCode(this.j1k_1);
|
|
190
|
+
};
|
|
191
|
+
function Attributes() {
|
|
192
|
+
}
|
|
193
|
+
function putAll(_this__u8e3s4, other) {
|
|
194
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
195
|
+
var tmp0_forEach = other.q1k();
|
|
196
|
+
var tmp0_iterator = tmp0_forEach.f();
|
|
197
|
+
while (tmp0_iterator.g()) {
|
|
198
|
+
var element = tmp0_iterator.h();
|
|
199
|
+
// Inline function 'io.ktor.util.putAll.<anonymous>' call
|
|
200
|
+
_this__u8e3s4.n1k(element instanceof AttributeKey ? element : THROW_CCE(), other.k1k(element));
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
function toByteArray(_this__u8e3s4, $completion) {
|
|
204
|
+
var tmp = new $toByteArrayCOROUTINE$0(_this__u8e3s4, $completion);
|
|
205
|
+
tmp.lk_1 = Unit_getInstance();
|
|
206
|
+
tmp.mk_1 = null;
|
|
207
|
+
return tmp.sk();
|
|
208
|
+
}
|
|
209
|
+
function $toByteArrayCOROUTINE$0(_this__u8e3s4, resultContinuation) {
|
|
210
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
211
|
+
this.z1k_1 = _this__u8e3s4;
|
|
212
|
+
}
|
|
213
|
+
protoOf($toByteArrayCOROUTINE$0).sk = function () {
|
|
214
|
+
var suspendResult = this.lk_1;
|
|
215
|
+
$sm: do
|
|
216
|
+
try {
|
|
217
|
+
var tmp = this.jk_1;
|
|
218
|
+
switch (tmp) {
|
|
219
|
+
case 0:
|
|
220
|
+
this.kk_1 = 2;
|
|
221
|
+
this.jk_1 = 1;
|
|
222
|
+
suspendResult = this.z1k_1.z1b(VOID, this);
|
|
223
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
224
|
+
return suspendResult;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
continue $sm;
|
|
228
|
+
case 1:
|
|
229
|
+
var ARGUMENT = suspendResult;
|
|
230
|
+
return readBytes(ARGUMENT);
|
|
231
|
+
case 2:
|
|
232
|
+
throw this.mk_1;
|
|
233
|
+
}
|
|
234
|
+
} catch ($p) {
|
|
235
|
+
var e = $p;
|
|
236
|
+
if (this.kk_1 === 2) {
|
|
237
|
+
throw e;
|
|
238
|
+
} else {
|
|
239
|
+
this.jk_1 = this.kk_1;
|
|
240
|
+
this.mk_1 = e;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
while (true);
|
|
244
|
+
};
|
|
245
|
+
function CaseInsensitiveMap$_get_keys_$lambda_ptzlqj($this$$receiver) {
|
|
246
|
+
return $this$$receiver.a1l_1;
|
|
247
|
+
}
|
|
248
|
+
function CaseInsensitiveMap$_get_keys_$lambda_ptzlqj_0($this$$receiver) {
|
|
249
|
+
return caseInsensitive($this$$receiver);
|
|
250
|
+
}
|
|
251
|
+
function CaseInsensitiveMap$_get_entries_$lambda_r32w19($this$$receiver) {
|
|
252
|
+
return new Entry_0($this$$receiver.x().a1l_1, $this$$receiver.y());
|
|
253
|
+
}
|
|
254
|
+
function CaseInsensitiveMap$_get_entries_$lambda_r32w19_0($this$$receiver) {
|
|
255
|
+
return new Entry_0(caseInsensitive($this$$receiver.x()), $this$$receiver.y());
|
|
256
|
+
}
|
|
257
|
+
function CaseInsensitiveMap() {
|
|
258
|
+
var tmp = this;
|
|
259
|
+
var tmp$ret$0;
|
|
260
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
261
|
+
tmp$ret$0 = LinkedHashMap_init_$Create$();
|
|
262
|
+
tmp.c1l_1 = tmp$ret$0;
|
|
263
|
+
}
|
|
264
|
+
protoOf(CaseInsensitiveMap).i = function () {
|
|
265
|
+
return this.c1l_1.i();
|
|
266
|
+
};
|
|
267
|
+
protoOf(CaseInsensitiveMap).d1l = function (key) {
|
|
268
|
+
return this.c1l_1.j2(new CaseInsensitiveString(key));
|
|
269
|
+
};
|
|
270
|
+
protoOf(CaseInsensitiveMap).j2 = function (key) {
|
|
271
|
+
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
272
|
+
return false;
|
|
273
|
+
return this.d1l((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
274
|
+
};
|
|
275
|
+
protoOf(CaseInsensitiveMap).e1l = function (value) {
|
|
276
|
+
return this.c1l_1.n2(value);
|
|
277
|
+
};
|
|
278
|
+
protoOf(CaseInsensitiveMap).n2 = function (value) {
|
|
279
|
+
if (!isObject(value))
|
|
280
|
+
return false;
|
|
281
|
+
return this.e1l(isObject(value) ? value : THROW_CCE());
|
|
282
|
+
};
|
|
283
|
+
protoOf(CaseInsensitiveMap).g9 = function (key) {
|
|
284
|
+
return this.c1l_1.p2(caseInsensitive(key));
|
|
285
|
+
};
|
|
286
|
+
protoOf(CaseInsensitiveMap).p2 = function (key) {
|
|
287
|
+
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
288
|
+
return null;
|
|
289
|
+
return this.g9((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
290
|
+
};
|
|
291
|
+
protoOf(CaseInsensitiveMap).l = function () {
|
|
292
|
+
return this.c1l_1.l();
|
|
293
|
+
};
|
|
294
|
+
protoOf(CaseInsensitiveMap).l3 = function () {
|
|
295
|
+
this.c1l_1.l3();
|
|
296
|
+
};
|
|
297
|
+
protoOf(CaseInsensitiveMap).f1l = function (key, value) {
|
|
298
|
+
return this.c1l_1.i4(caseInsensitive(key), value);
|
|
299
|
+
};
|
|
300
|
+
protoOf(CaseInsensitiveMap).i4 = function (key, value) {
|
|
301
|
+
var tmp = (!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE();
|
|
302
|
+
return this.f1l(tmp, isObject(value) ? value : THROW_CCE());
|
|
303
|
+
};
|
|
304
|
+
protoOf(CaseInsensitiveMap).g1l = function (from) {
|
|
305
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
306
|
+
var tmp$ret$0;
|
|
307
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
308
|
+
tmp$ret$0 = from.w().f();
|
|
309
|
+
var tmp0_iterator = tmp$ret$0;
|
|
310
|
+
while (tmp0_iterator.g()) {
|
|
311
|
+
var element = tmp0_iterator.h();
|
|
312
|
+
// Inline function 'io.ktor.util.CaseInsensitiveMap.putAll.<anonymous>' call
|
|
313
|
+
var tmp$ret$1;
|
|
314
|
+
// Inline function 'kotlin.collections.component1' call
|
|
315
|
+
tmp$ret$1 = element.x();
|
|
316
|
+
var key = tmp$ret$1;
|
|
317
|
+
var tmp$ret$2;
|
|
318
|
+
// Inline function 'kotlin.collections.component2' call
|
|
319
|
+
tmp$ret$2 = element.y();
|
|
320
|
+
var value = tmp$ret$2;
|
|
321
|
+
this.f1l(key, value);
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
protoOf(CaseInsensitiveMap).k4 = function (from) {
|
|
325
|
+
return this.g1l(from);
|
|
326
|
+
};
|
|
327
|
+
protoOf(CaseInsensitiveMap).h1l = function (key) {
|
|
328
|
+
return this.c1l_1.j4(caseInsensitive(key));
|
|
329
|
+
};
|
|
330
|
+
protoOf(CaseInsensitiveMap).j4 = function (key) {
|
|
331
|
+
if (!(!(key == null) ? typeof key === 'string' : false))
|
|
332
|
+
return null;
|
|
333
|
+
return this.h1l((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
|
|
334
|
+
};
|
|
335
|
+
protoOf(CaseInsensitiveMap).q2 = function () {
|
|
336
|
+
var tmp = this.c1l_1.q2();
|
|
337
|
+
var tmp_0 = CaseInsensitiveMap$_get_keys_$lambda_ptzlqj;
|
|
338
|
+
return new DelegatingMutableSet(tmp, tmp_0, CaseInsensitiveMap$_get_keys_$lambda_ptzlqj_0);
|
|
339
|
+
};
|
|
340
|
+
protoOf(CaseInsensitiveMap).w = function () {
|
|
341
|
+
var tmp = this.c1l_1.w();
|
|
342
|
+
var tmp_0 = CaseInsensitiveMap$_get_entries_$lambda_r32w19;
|
|
343
|
+
return new DelegatingMutableSet(tmp, tmp_0, CaseInsensitiveMap$_get_entries_$lambda_r32w19_0);
|
|
344
|
+
};
|
|
345
|
+
protoOf(CaseInsensitiveMap).r2 = function () {
|
|
346
|
+
return this.c1l_1.r2();
|
|
347
|
+
};
|
|
348
|
+
protoOf(CaseInsensitiveMap).equals = function (other) {
|
|
349
|
+
var tmp;
|
|
350
|
+
if (other == null) {
|
|
351
|
+
tmp = true;
|
|
352
|
+
} else {
|
|
353
|
+
tmp = !(other instanceof CaseInsensitiveMap);
|
|
354
|
+
}
|
|
355
|
+
if (tmp)
|
|
356
|
+
return false;
|
|
357
|
+
return equals(other.c1l_1, this.c1l_1);
|
|
358
|
+
};
|
|
359
|
+
protoOf(CaseInsensitiveMap).hashCode = function () {
|
|
360
|
+
return hashCode(this.c1l_1);
|
|
361
|
+
};
|
|
362
|
+
function Entry_0(key, value) {
|
|
363
|
+
this.i1l_1 = key;
|
|
364
|
+
this.j1l_1 = value;
|
|
365
|
+
}
|
|
366
|
+
protoOf(Entry_0).x = function () {
|
|
367
|
+
return this.i1l_1;
|
|
368
|
+
};
|
|
369
|
+
protoOf(Entry_0).y = function () {
|
|
370
|
+
return this.j1l_1;
|
|
371
|
+
};
|
|
372
|
+
protoOf(Entry_0).k1l = function (newValue) {
|
|
373
|
+
this.j1l_1 = newValue;
|
|
374
|
+
return this.j1l_1;
|
|
375
|
+
};
|
|
376
|
+
protoOf(Entry_0).kd = function (newValue) {
|
|
377
|
+
return this.k1l((newValue == null ? true : isObject(newValue)) ? newValue : THROW_CCE());
|
|
378
|
+
};
|
|
379
|
+
protoOf(Entry_0).hashCode = function () {
|
|
380
|
+
return (527 + hashCode(ensureNotNull(this.i1l_1)) | 0) + hashCode(ensureNotNull(this.j1l_1)) | 0;
|
|
381
|
+
};
|
|
382
|
+
protoOf(Entry_0).equals = function (other) {
|
|
383
|
+
var tmp;
|
|
384
|
+
if (other == null) {
|
|
385
|
+
tmp = true;
|
|
386
|
+
} else {
|
|
387
|
+
tmp = !(!(other == null) ? isInterface(other, Entry) : false);
|
|
388
|
+
}
|
|
389
|
+
if (tmp)
|
|
390
|
+
return false;
|
|
391
|
+
return equals(other.x(), this.i1l_1) ? equals(other.y(), this.j1l_1) : false;
|
|
392
|
+
};
|
|
393
|
+
protoOf(Entry_0).toString = function () {
|
|
394
|
+
return '' + this.i1l_1 + '=' + this.j1l_1;
|
|
395
|
+
};
|
|
396
|
+
function toCharArray(_this__u8e3s4) {
|
|
397
|
+
var tmp = 0;
|
|
398
|
+
var tmp_0 = _this__u8e3s4.length;
|
|
399
|
+
var tmp_1 = charArray(tmp_0);
|
|
400
|
+
while (tmp < tmp_0) {
|
|
401
|
+
var tmp_2 = tmp;
|
|
402
|
+
var tmp$ret$0;
|
|
403
|
+
// Inline function 'io.ktor.util.toCharArray.<anonymous>' call
|
|
404
|
+
tmp$ret$0 = charSequenceGet(_this__u8e3s4, tmp_2);
|
|
405
|
+
tmp_1[tmp_2] = tmp$ret$0;
|
|
406
|
+
tmp = tmp + 1 | 0;
|
|
407
|
+
}
|
|
408
|
+
return tmp_1;
|
|
409
|
+
}
|
|
410
|
+
function isLowerCase(_this__u8e3s4) {
|
|
411
|
+
var tmp$ret$3;
|
|
412
|
+
// Inline function 'kotlin.text.lowercaseChar' call
|
|
413
|
+
var tmp$ret$2;
|
|
414
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
415
|
+
var tmp$ret$1;
|
|
416
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
417
|
+
var tmp$ret$0;
|
|
418
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
419
|
+
var tmp0_asDynamic = toString(_this__u8e3s4);
|
|
420
|
+
tmp$ret$0 = tmp0_asDynamic;
|
|
421
|
+
var tmp1_unsafeCast = tmp$ret$0.toLowerCase();
|
|
422
|
+
tmp$ret$1 = tmp1_unsafeCast;
|
|
423
|
+
tmp$ret$2 = tmp$ret$1;
|
|
424
|
+
tmp$ret$3 = charSequenceGet(tmp$ret$2, 0);
|
|
425
|
+
return equals(new Char(tmp$ret$3), new Char(_this__u8e3s4));
|
|
426
|
+
}
|
|
427
|
+
function caseInsensitiveMap() {
|
|
428
|
+
return new CaseInsensitiveMap();
|
|
429
|
+
}
|
|
430
|
+
function SilentSupervisor(parent) {
|
|
431
|
+
parent = parent === VOID ? null : parent;
|
|
432
|
+
var tmp = SupervisorJob(parent);
|
|
433
|
+
var tmp$ret$0;
|
|
434
|
+
// Inline function 'kotlinx.coroutines.CoroutineExceptionHandler' call
|
|
435
|
+
tmp$ret$0 = new _no_name_provided__qut3iv();
|
|
436
|
+
return tmp.r6(tmp$ret$0);
|
|
437
|
+
}
|
|
438
|
+
function _no_name_provided__qut3iv() {
|
|
439
|
+
AbstractCoroutineContextElement.call(this, Key_getInstance());
|
|
440
|
+
}
|
|
441
|
+
protoOf(_no_name_provided__qut3iv).wr = function (context, exception) {
|
|
442
|
+
var tmp$ret$0;
|
|
443
|
+
// Inline function 'io.ktor.util.SilentSupervisor.<anonymous>' call
|
|
444
|
+
tmp$ret$0 = Unit_getInstance();
|
|
445
|
+
return tmp$ret$0;
|
|
446
|
+
};
|
|
447
|
+
function DelegatingMutableSet$iterator$1(this$0) {
|
|
448
|
+
this.n1l_1 = this$0;
|
|
449
|
+
this.m1l_1 = this$0.o1l_1.f();
|
|
450
|
+
}
|
|
451
|
+
protoOf(DelegatingMutableSet$iterator$1).g = function () {
|
|
452
|
+
return this.m1l_1.g();
|
|
453
|
+
};
|
|
454
|
+
protoOf(DelegatingMutableSet$iterator$1).h = function () {
|
|
455
|
+
return this.n1l_1.p1l_1(this.m1l_1.h());
|
|
456
|
+
};
|
|
457
|
+
protoOf(DelegatingMutableSet$iterator$1).w4 = function () {
|
|
458
|
+
return this.m1l_1.w4();
|
|
459
|
+
};
|
|
460
|
+
function DelegatingMutableSet(delegate, convertTo, convert) {
|
|
461
|
+
this.o1l_1 = delegate;
|
|
462
|
+
this.p1l_1 = convertTo;
|
|
463
|
+
this.q1l_1 = convert;
|
|
464
|
+
this.r1l_1 = this.o1l_1.i();
|
|
465
|
+
}
|
|
466
|
+
protoOf(DelegatingMutableSet).s1l = function (_this__u8e3s4) {
|
|
467
|
+
var tmp$ret$2;
|
|
468
|
+
// Inline function 'kotlin.collections.map' call
|
|
469
|
+
var tmp$ret$1;
|
|
470
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
471
|
+
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
|
|
472
|
+
var tmp0_iterator = _this__u8e3s4.f();
|
|
473
|
+
while (tmp0_iterator.g()) {
|
|
474
|
+
var item = tmp0_iterator.h();
|
|
475
|
+
var tmp$ret$0;
|
|
476
|
+
// Inline function 'io.ktor.util.DelegatingMutableSet.convert.<anonymous>' call
|
|
477
|
+
tmp$ret$0 = this.q1l_1(item);
|
|
478
|
+
tmp0_mapTo.a(tmp$ret$0);
|
|
479
|
+
}
|
|
480
|
+
tmp$ret$1 = tmp0_mapTo;
|
|
481
|
+
tmp$ret$2 = tmp$ret$1;
|
|
482
|
+
return tmp$ret$2;
|
|
483
|
+
};
|
|
484
|
+
protoOf(DelegatingMutableSet).t1l = function (_this__u8e3s4) {
|
|
485
|
+
var tmp$ret$2;
|
|
486
|
+
// Inline function 'kotlin.collections.map' call
|
|
487
|
+
var tmp$ret$1;
|
|
488
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
489
|
+
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
|
|
490
|
+
var tmp0_iterator = _this__u8e3s4.f();
|
|
491
|
+
while (tmp0_iterator.g()) {
|
|
492
|
+
var item = tmp0_iterator.h();
|
|
493
|
+
var tmp$ret$0;
|
|
494
|
+
// Inline function 'io.ktor.util.DelegatingMutableSet.convertTo.<anonymous>' call
|
|
495
|
+
tmp$ret$0 = this.p1l_1(item);
|
|
496
|
+
tmp0_mapTo.a(tmp$ret$0);
|
|
497
|
+
}
|
|
498
|
+
tmp$ret$1 = tmp0_mapTo;
|
|
499
|
+
tmp$ret$2 = tmp$ret$1;
|
|
500
|
+
return tmp$ret$2;
|
|
501
|
+
};
|
|
502
|
+
protoOf(DelegatingMutableSet).i = function () {
|
|
503
|
+
return this.r1l_1;
|
|
504
|
+
};
|
|
505
|
+
protoOf(DelegatingMutableSet).u1l = function (element) {
|
|
506
|
+
return this.o1l_1.a(this.q1l_1(element));
|
|
507
|
+
};
|
|
508
|
+
protoOf(DelegatingMutableSet).a = function (element) {
|
|
509
|
+
return this.u1l((element == null ? true : isObject(element)) ? element : THROW_CCE());
|
|
510
|
+
};
|
|
511
|
+
protoOf(DelegatingMutableSet).v1l = function (elements) {
|
|
512
|
+
return this.o1l_1.j(this.s1l(elements));
|
|
513
|
+
};
|
|
514
|
+
protoOf(DelegatingMutableSet).j = function (elements) {
|
|
515
|
+
return this.v1l(elements);
|
|
516
|
+
};
|
|
517
|
+
protoOf(DelegatingMutableSet).l3 = function () {
|
|
518
|
+
this.o1l_1.l3();
|
|
519
|
+
};
|
|
520
|
+
protoOf(DelegatingMutableSet).w1l = function (element) {
|
|
521
|
+
return this.o1l_1.uc(this.q1l_1(element));
|
|
522
|
+
};
|
|
523
|
+
protoOf(DelegatingMutableSet).uc = function (element) {
|
|
524
|
+
if (!(element == null ? true : isObject(element)))
|
|
525
|
+
return false;
|
|
526
|
+
return this.w1l((element == null ? true : isObject(element)) ? element : THROW_CCE());
|
|
527
|
+
};
|
|
528
|
+
protoOf(DelegatingMutableSet).x1l = function (elements) {
|
|
529
|
+
return this.o1l_1.k3(this.s1l(elements));
|
|
530
|
+
};
|
|
531
|
+
protoOf(DelegatingMutableSet).k3 = function (elements) {
|
|
532
|
+
return this.x1l(elements);
|
|
533
|
+
};
|
|
534
|
+
protoOf(DelegatingMutableSet).y1l = function (element) {
|
|
535
|
+
return this.o1l_1.m(this.q1l_1(element));
|
|
536
|
+
};
|
|
537
|
+
protoOf(DelegatingMutableSet).m = function (element) {
|
|
538
|
+
if (!(element == null ? true : isObject(element)))
|
|
539
|
+
return false;
|
|
540
|
+
return this.y1l((element == null ? true : isObject(element)) ? element : THROW_CCE());
|
|
541
|
+
};
|
|
542
|
+
protoOf(DelegatingMutableSet).z1l = function (elements) {
|
|
543
|
+
return this.o1l_1.l1(this.s1l(elements));
|
|
544
|
+
};
|
|
545
|
+
protoOf(DelegatingMutableSet).l1 = function (elements) {
|
|
546
|
+
return this.z1l(elements);
|
|
547
|
+
};
|
|
548
|
+
protoOf(DelegatingMutableSet).l = function () {
|
|
549
|
+
return this.o1l_1.l();
|
|
550
|
+
};
|
|
551
|
+
protoOf(DelegatingMutableSet).f = function () {
|
|
552
|
+
return new DelegatingMutableSet$iterator$1(this);
|
|
553
|
+
};
|
|
554
|
+
protoOf(DelegatingMutableSet).hashCode = function () {
|
|
555
|
+
return hashCode(this.o1l_1);
|
|
556
|
+
};
|
|
557
|
+
protoOf(DelegatingMutableSet).equals = function (other) {
|
|
558
|
+
var tmp;
|
|
559
|
+
if (other == null) {
|
|
560
|
+
tmp = true;
|
|
561
|
+
} else {
|
|
562
|
+
tmp = !(!(other == null) ? isInterface(other, Set) : false);
|
|
563
|
+
}
|
|
564
|
+
if (tmp)
|
|
565
|
+
return false;
|
|
566
|
+
var elements = this.t1l(this.o1l_1);
|
|
567
|
+
var tmp_0;
|
|
568
|
+
if (other.l1(elements)) {
|
|
569
|
+
var tmp$ret$0;
|
|
570
|
+
// Inline function 'kotlin.collections.containsAll' call
|
|
571
|
+
var tmp0_containsAll = other;
|
|
572
|
+
tmp$ret$0 = elements.l1(tmp0_containsAll);
|
|
573
|
+
tmp_0 = tmp$ret$0;
|
|
574
|
+
} else {
|
|
575
|
+
tmp_0 = false;
|
|
576
|
+
}
|
|
577
|
+
return tmp_0;
|
|
578
|
+
};
|
|
579
|
+
protoOf(DelegatingMutableSet).toString = function () {
|
|
580
|
+
return toString_0(this.t1l(this.o1l_1));
|
|
581
|
+
};
|
|
582
|
+
var Platform_Jvm_instance;
|
|
583
|
+
var Platform_Native_instance;
|
|
584
|
+
var Platform_Browser_instance;
|
|
585
|
+
var Platform_Node_instance;
|
|
586
|
+
var Platform_entriesInitialized;
|
|
587
|
+
function Platform_initEntries() {
|
|
588
|
+
if (Platform_entriesInitialized)
|
|
589
|
+
return Unit_getInstance();
|
|
590
|
+
Platform_entriesInitialized = true;
|
|
591
|
+
Platform_Jvm_instance = new Platform('Jvm', 0);
|
|
592
|
+
Platform_Native_instance = new Platform('Native', 1);
|
|
593
|
+
Platform_Browser_instance = new Platform('Browser', 2);
|
|
594
|
+
Platform_Node_instance = new Platform('Node', 3);
|
|
595
|
+
}
|
|
596
|
+
function Platform(name, ordinal) {
|
|
597
|
+
Enum.call(this, name, ordinal);
|
|
598
|
+
}
|
|
599
|
+
function PlatformUtils() {
|
|
600
|
+
PlatformUtils_instance = this;
|
|
601
|
+
this.a1m_1 = get_platform(this).equals(Platform_Browser_getInstance());
|
|
602
|
+
this.b1m_1 = get_platform(this).equals(Platform_Node_getInstance());
|
|
603
|
+
this.c1m_1 = get_platform(this).equals(Platform_Jvm_getInstance());
|
|
604
|
+
this.d1m_1 = get_platform(this).equals(Platform_Native_getInstance());
|
|
605
|
+
this.e1m_1 = get_isDevelopmentMode(this);
|
|
606
|
+
this.f1m_1 = get_isNewMemoryModel(this);
|
|
607
|
+
}
|
|
608
|
+
var PlatformUtils_instance;
|
|
609
|
+
function PlatformUtils_getInstance() {
|
|
610
|
+
if (PlatformUtils_instance == null)
|
|
611
|
+
new PlatformUtils();
|
|
612
|
+
return PlatformUtils_instance;
|
|
613
|
+
}
|
|
614
|
+
function Platform_Jvm_getInstance() {
|
|
615
|
+
Platform_initEntries();
|
|
616
|
+
return Platform_Jvm_instance;
|
|
617
|
+
}
|
|
618
|
+
function Platform_Native_getInstance() {
|
|
619
|
+
Platform_initEntries();
|
|
620
|
+
return Platform_Native_instance;
|
|
621
|
+
}
|
|
622
|
+
function Platform_Browser_getInstance() {
|
|
623
|
+
Platform_initEntries();
|
|
624
|
+
return Platform_Browser_instance;
|
|
625
|
+
}
|
|
626
|
+
function Platform_Node_getInstance() {
|
|
627
|
+
Platform_initEntries();
|
|
628
|
+
return Platform_Node_instance;
|
|
629
|
+
}
|
|
630
|
+
function StringValues() {
|
|
631
|
+
}
|
|
632
|
+
function ensureListForKey($this, name) {
|
|
633
|
+
var tmp0_elvis_lhs = $this.m1m_1.p2(name);
|
|
634
|
+
var tmp;
|
|
635
|
+
if (tmp0_elvis_lhs == null) {
|
|
636
|
+
var tmp$ret$1;
|
|
637
|
+
// Inline function 'kotlin.also' call
|
|
638
|
+
var tmp$ret$0;
|
|
639
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
640
|
+
tmp$ret$0 = ArrayList_init_$Create$_0();
|
|
641
|
+
var tmp0_also = tmp$ret$0;
|
|
642
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
643
|
+
// Inline function 'io.ktor.util.StringValuesBuilderImpl.ensureListForKey.<anonymous>' call
|
|
644
|
+
$this.n1m(name);
|
|
645
|
+
// Inline function 'kotlin.collections.set' call
|
|
646
|
+
var tmp0_set = $this.m1m_1;
|
|
647
|
+
tmp0_set.i4(name, tmp0_also);
|
|
648
|
+
tmp$ret$1 = tmp0_also;
|
|
649
|
+
tmp = tmp$ret$1;
|
|
650
|
+
} else {
|
|
651
|
+
tmp = tmp0_elvis_lhs;
|
|
652
|
+
}
|
|
653
|
+
return tmp;
|
|
654
|
+
}
|
|
655
|
+
function StringValuesBuilderImpl$appendAll$lambda(this$0) {
|
|
656
|
+
return function (name, values) {
|
|
657
|
+
this$0.o1m(name, values);
|
|
658
|
+
return Unit_getInstance();
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
function StringValuesBuilderImpl(caseInsensitiveName, size) {
|
|
662
|
+
caseInsensitiveName = caseInsensitiveName === VOID ? false : caseInsensitiveName;
|
|
663
|
+
size = size === VOID ? 8 : size;
|
|
664
|
+
this.l1m_1 = caseInsensitiveName;
|
|
665
|
+
this.m1m_1 = this.l1m_1 ? caseInsensitiveMap() : LinkedHashMap_init_$Create$_0(size);
|
|
666
|
+
}
|
|
667
|
+
protoOf(StringValuesBuilderImpl).g1m = function () {
|
|
668
|
+
return this.l1m_1;
|
|
669
|
+
};
|
|
670
|
+
protoOf(StringValuesBuilderImpl).h1m = function (name) {
|
|
671
|
+
return this.m1m_1.p2(name);
|
|
672
|
+
};
|
|
673
|
+
protoOf(StringValuesBuilderImpl).i1m = function () {
|
|
674
|
+
return this.m1m_1.q2();
|
|
675
|
+
};
|
|
676
|
+
protoOf(StringValuesBuilderImpl).l = function () {
|
|
677
|
+
return this.m1m_1.l();
|
|
678
|
+
};
|
|
679
|
+
protoOf(StringValuesBuilderImpl).j1m = function () {
|
|
680
|
+
return unmodifiable(this.m1m_1.w());
|
|
681
|
+
};
|
|
682
|
+
protoOf(StringValuesBuilderImpl).p1m = function (name, value) {
|
|
683
|
+
this.q1m(value);
|
|
684
|
+
var list = ensureListForKey(this, name);
|
|
685
|
+
list.l3();
|
|
686
|
+
list.a(value);
|
|
687
|
+
};
|
|
688
|
+
protoOf(StringValuesBuilderImpl).g9 = function (name) {
|
|
689
|
+
var tmp0_safe_receiver = this.h1m(name);
|
|
690
|
+
return tmp0_safe_receiver == null ? null : firstOrNull(tmp0_safe_receiver);
|
|
691
|
+
};
|
|
692
|
+
protoOf(StringValuesBuilderImpl).r1m = function (name, value) {
|
|
693
|
+
this.q1m(value);
|
|
694
|
+
ensureListForKey(this, name).a(value);
|
|
695
|
+
};
|
|
696
|
+
protoOf(StringValuesBuilderImpl).s1m = function (stringValues) {
|
|
697
|
+
stringValues.k1m(StringValuesBuilderImpl$appendAll$lambda(this));
|
|
698
|
+
};
|
|
699
|
+
protoOf(StringValuesBuilderImpl).o1m = function (name, values) {
|
|
700
|
+
var tmp$ret$0;
|
|
701
|
+
// Inline function 'kotlin.let' call
|
|
702
|
+
var tmp0_let = ensureListForKey(this, name);
|
|
703
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
704
|
+
var tmp0_iterator = values.f();
|
|
705
|
+
while (tmp0_iterator.g()) {
|
|
706
|
+
var element = tmp0_iterator.h();
|
|
707
|
+
// Inline function 'io.ktor.util.StringValuesBuilderImpl.appendAll.<anonymous>.<anonymous>' call
|
|
708
|
+
this.q1m(element);
|
|
709
|
+
tmp0_let.a(element);
|
|
710
|
+
}
|
|
711
|
+
tmp$ret$0 = Unit_getInstance();
|
|
712
|
+
};
|
|
713
|
+
protoOf(StringValuesBuilderImpl).t1m = function (name) {
|
|
714
|
+
this.m1m_1.j4(name);
|
|
715
|
+
};
|
|
716
|
+
protoOf(StringValuesBuilderImpl).l3 = function () {
|
|
717
|
+
this.m1m_1.l3();
|
|
718
|
+
};
|
|
719
|
+
protoOf(StringValuesBuilderImpl).n1m = function (name) {
|
|
720
|
+
};
|
|
721
|
+
protoOf(StringValuesBuilderImpl).q1m = function (value) {
|
|
722
|
+
};
|
|
723
|
+
function listForKey($this, name) {
|
|
724
|
+
return $this.v1m_1.p2(name);
|
|
725
|
+
}
|
|
726
|
+
function StringValuesImpl(caseInsensitiveName, values) {
|
|
727
|
+
caseInsensitiveName = caseInsensitiveName === VOID ? false : caseInsensitiveName;
|
|
728
|
+
values = values === VOID ? emptyMap() : values;
|
|
729
|
+
this.u1m_1 = caseInsensitiveName;
|
|
730
|
+
var tmp;
|
|
731
|
+
if (this.u1m_1) {
|
|
732
|
+
tmp = caseInsensitiveMap();
|
|
733
|
+
} else {
|
|
734
|
+
var tmp$ret$0;
|
|
735
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
736
|
+
tmp$ret$0 = LinkedHashMap_init_$Create$();
|
|
737
|
+
tmp = tmp$ret$0;
|
|
738
|
+
}
|
|
739
|
+
var newMap = tmp;
|
|
740
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
741
|
+
var tmp$ret$1;
|
|
742
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
743
|
+
tmp$ret$1 = values.w().f();
|
|
744
|
+
var tmp0_iterator = tmp$ret$1;
|
|
745
|
+
while (tmp0_iterator.g()) {
|
|
746
|
+
var element = tmp0_iterator.h();
|
|
747
|
+
// Inline function 'io.ktor.util.StringValuesImpl.<anonymous>' call
|
|
748
|
+
var tmp$ret$2;
|
|
749
|
+
// Inline function 'kotlin.collections.component1' call
|
|
750
|
+
tmp$ret$2 = element.x();
|
|
751
|
+
var key = tmp$ret$2;
|
|
752
|
+
var tmp$ret$3;
|
|
753
|
+
// Inline function 'kotlin.collections.component2' call
|
|
754
|
+
tmp$ret$3 = element.y();
|
|
755
|
+
var value = tmp$ret$3;
|
|
756
|
+
// Inline function 'kotlin.collections.set' call
|
|
757
|
+
var tmp$ret$6;
|
|
758
|
+
// Inline function 'kotlin.collections.List' call
|
|
759
|
+
var tmp0_List = value.i();
|
|
760
|
+
var tmp$ret$5;
|
|
761
|
+
// Inline function 'kotlin.collections.MutableList' call
|
|
762
|
+
var list = ArrayList_init_$Create$(tmp0_List);
|
|
763
|
+
// Inline function 'kotlin.repeat' call
|
|
764
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
765
|
+
var inductionVariable = 0;
|
|
766
|
+
if (inductionVariable < tmp0_List)
|
|
767
|
+
do {
|
|
768
|
+
var index = inductionVariable;
|
|
769
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
770
|
+
// Inline function 'kotlin.collections.MutableList.<anonymous>' call
|
|
771
|
+
var tmp$ret$4;
|
|
772
|
+
// Inline function 'io.ktor.util.StringValuesImpl.<anonymous>.<anonymous>' call
|
|
773
|
+
tmp$ret$4 = value.k(index);
|
|
774
|
+
list.a(tmp$ret$4);
|
|
775
|
+
}
|
|
776
|
+
while (inductionVariable < tmp0_List);
|
|
777
|
+
tmp$ret$5 = list;
|
|
778
|
+
tmp$ret$6 = tmp$ret$5;
|
|
779
|
+
var tmp1_set = tmp$ret$6;
|
|
780
|
+
newMap.i4(key, tmp1_set);
|
|
781
|
+
}
|
|
782
|
+
this.v1m_1 = newMap;
|
|
783
|
+
}
|
|
784
|
+
protoOf(StringValuesImpl).g1m = function () {
|
|
785
|
+
return this.u1m_1;
|
|
786
|
+
};
|
|
787
|
+
protoOf(StringValuesImpl).g9 = function (name) {
|
|
788
|
+
var tmp0_safe_receiver = listForKey(this, name);
|
|
789
|
+
return tmp0_safe_receiver == null ? null : firstOrNull(tmp0_safe_receiver);
|
|
790
|
+
};
|
|
791
|
+
protoOf(StringValuesImpl).h1m = function (name) {
|
|
792
|
+
return listForKey(this, name);
|
|
793
|
+
};
|
|
794
|
+
protoOf(StringValuesImpl).i1m = function () {
|
|
795
|
+
return unmodifiable(this.v1m_1.q2());
|
|
796
|
+
};
|
|
797
|
+
protoOf(StringValuesImpl).l = function () {
|
|
798
|
+
return this.v1m_1.l();
|
|
799
|
+
};
|
|
800
|
+
protoOf(StringValuesImpl).j1m = function () {
|
|
801
|
+
return unmodifiable(this.v1m_1.w());
|
|
802
|
+
};
|
|
803
|
+
protoOf(StringValuesImpl).k1m = function (body) {
|
|
804
|
+
var tmp$ret$0;
|
|
805
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
806
|
+
var tmp0_iterator = this.v1m_1;
|
|
807
|
+
tmp$ret$0 = tmp0_iterator.w().f();
|
|
808
|
+
var tmp0_iterator_0 = tmp$ret$0;
|
|
809
|
+
while (tmp0_iterator_0.g()) {
|
|
810
|
+
var tmp1_loop_parameter = tmp0_iterator_0.h();
|
|
811
|
+
var tmp$ret$1;
|
|
812
|
+
// Inline function 'kotlin.collections.component1' call
|
|
813
|
+
tmp$ret$1 = tmp1_loop_parameter.x();
|
|
814
|
+
var key = tmp$ret$1;
|
|
815
|
+
var tmp$ret$2;
|
|
816
|
+
// Inline function 'kotlin.collections.component2' call
|
|
817
|
+
tmp$ret$2 = tmp1_loop_parameter.y();
|
|
818
|
+
var value = tmp$ret$2;
|
|
819
|
+
body(key, value);
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
protoOf(StringValuesImpl).toString = function () {
|
|
823
|
+
return 'StringValues(case=' + !this.u1m_1 + ') ' + this.j1m();
|
|
824
|
+
};
|
|
825
|
+
protoOf(StringValuesImpl).equals = function (other) {
|
|
826
|
+
if (this === other)
|
|
827
|
+
return true;
|
|
828
|
+
if (!(!(other == null) ? isInterface(other, StringValues) : false))
|
|
829
|
+
return false;
|
|
830
|
+
if (!(this.u1m_1 === other.g1m()))
|
|
831
|
+
return false;
|
|
832
|
+
return entriesEquals(this.j1m(), other.j1m());
|
|
833
|
+
};
|
|
834
|
+
protoOf(StringValuesImpl).hashCode = function () {
|
|
835
|
+
return entriesHashCode(this.j1m(), imul(31, this.u1m_1 | 0));
|
|
836
|
+
};
|
|
837
|
+
function appendAll(_this__u8e3s4, builder) {
|
|
838
|
+
var tmp$ret$2;
|
|
839
|
+
// Inline function 'kotlin.apply' call
|
|
840
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
841
|
+
// Inline function 'io.ktor.util.appendAll.<anonymous>' call
|
|
842
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
843
|
+
var tmp0_forEach = builder.j1m();
|
|
844
|
+
var tmp0_iterator = tmp0_forEach.f();
|
|
845
|
+
while (tmp0_iterator.g()) {
|
|
846
|
+
var element = tmp0_iterator.h();
|
|
847
|
+
// Inline function 'io.ktor.util.appendAll.<anonymous>.<anonymous>' call
|
|
848
|
+
var tmp$ret$0;
|
|
849
|
+
// Inline function 'kotlin.collections.component1' call
|
|
850
|
+
tmp$ret$0 = element.x();
|
|
851
|
+
var name = tmp$ret$0;
|
|
852
|
+
var tmp$ret$1;
|
|
853
|
+
// Inline function 'kotlin.collections.component2' call
|
|
854
|
+
tmp$ret$1 = element.y();
|
|
855
|
+
var values = tmp$ret$1;
|
|
856
|
+
_this__u8e3s4.o1m(name, values);
|
|
857
|
+
}
|
|
858
|
+
tmp$ret$2 = _this__u8e3s4;
|
|
859
|
+
return tmp$ret$2;
|
|
860
|
+
}
|
|
861
|
+
function flattenEntries(_this__u8e3s4) {
|
|
862
|
+
var tmp$ret$5;
|
|
863
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
864
|
+
var tmp1_flatMap = _this__u8e3s4.j1m();
|
|
865
|
+
var tmp$ret$4;
|
|
866
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
867
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$_0();
|
|
868
|
+
var tmp0_iterator = tmp1_flatMap.f();
|
|
869
|
+
while (tmp0_iterator.g()) {
|
|
870
|
+
var element = tmp0_iterator.h();
|
|
871
|
+
var tmp$ret$3;
|
|
872
|
+
// Inline function 'io.ktor.util.flattenEntries.<anonymous>' call
|
|
873
|
+
var tmp$ret$2;
|
|
874
|
+
// Inline function 'kotlin.collections.map' call
|
|
875
|
+
var tmp1_map = element.y();
|
|
876
|
+
var tmp$ret$1;
|
|
877
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
878
|
+
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp1_map, 10));
|
|
879
|
+
var tmp0_iterator_0 = tmp1_map.f();
|
|
880
|
+
while (tmp0_iterator_0.g()) {
|
|
881
|
+
var item = tmp0_iterator_0.h();
|
|
882
|
+
var tmp$ret$0;
|
|
883
|
+
// Inline function 'io.ktor.util.flattenEntries.<anonymous>.<anonymous>' call
|
|
884
|
+
tmp$ret$0 = to(element.x(), item);
|
|
885
|
+
tmp0_mapTo.a(tmp$ret$0);
|
|
886
|
+
}
|
|
887
|
+
tmp$ret$1 = tmp0_mapTo;
|
|
888
|
+
tmp$ret$2 = tmp$ret$1;
|
|
889
|
+
tmp$ret$3 = tmp$ret$2;
|
|
890
|
+
var list = tmp$ret$3;
|
|
891
|
+
addAll(tmp0_flatMapTo, list);
|
|
892
|
+
}
|
|
893
|
+
tmp$ret$4 = tmp0_flatMapTo;
|
|
894
|
+
tmp$ret$5 = tmp$ret$4;
|
|
895
|
+
return tmp$ret$5;
|
|
896
|
+
}
|
|
897
|
+
function entriesEquals(a, b) {
|
|
898
|
+
return equals(a, b);
|
|
899
|
+
}
|
|
900
|
+
function entriesHashCode(entries, seed) {
|
|
901
|
+
return imul(seed, 31) + hashCode(entries) | 0;
|
|
902
|
+
}
|
|
903
|
+
function toLowerCasePreservingASCIIRules(_this__u8e3s4) {
|
|
904
|
+
var tmp$ret$1;
|
|
905
|
+
$l$block: {
|
|
906
|
+
// Inline function 'kotlin.text.indexOfFirst' call
|
|
907
|
+
var inductionVariable = 0;
|
|
908
|
+
var last = charSequenceLength(_this__u8e3s4) - 1 | 0;
|
|
909
|
+
if (inductionVariable <= last)
|
|
910
|
+
do {
|
|
911
|
+
var index = inductionVariable;
|
|
912
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
913
|
+
var tmp$ret$0;
|
|
914
|
+
// Inline function 'io.ktor.util.toLowerCasePreservingASCIIRules.<anonymous>' call
|
|
915
|
+
var tmp0__anonymous__q1qw7t = charSequenceGet(_this__u8e3s4, index);
|
|
916
|
+
tmp$ret$0 = !equals(new Char(toLowerCasePreservingASCII(tmp0__anonymous__q1qw7t)), new Char(tmp0__anonymous__q1qw7t));
|
|
917
|
+
if (tmp$ret$0) {
|
|
918
|
+
tmp$ret$1 = index;
|
|
919
|
+
break $l$block;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
while (inductionVariable <= last);
|
|
923
|
+
tmp$ret$1 = -1;
|
|
924
|
+
}
|
|
925
|
+
var firstIndex = tmp$ret$1;
|
|
926
|
+
if (firstIndex === -1) {
|
|
927
|
+
return _this__u8e3s4;
|
|
928
|
+
}
|
|
929
|
+
var original = _this__u8e3s4;
|
|
930
|
+
var tmp$ret$3;
|
|
931
|
+
// Inline function 'kotlin.text.buildString' call
|
|
932
|
+
var tmp2_buildString = _this__u8e3s4.length;
|
|
933
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
934
|
+
var tmp$ret$2;
|
|
935
|
+
// Inline function 'kotlin.apply' call
|
|
936
|
+
var tmp1_apply = StringBuilder_init_$Create$(tmp2_buildString);
|
|
937
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
938
|
+
// Inline function 'io.ktor.util.toLowerCasePreservingASCIIRules.<anonymous>' call
|
|
939
|
+
tmp1_apply.fh(original, 0, firstIndex);
|
|
940
|
+
var inductionVariable_0 = firstIndex;
|
|
941
|
+
var last_0 = get_lastIndex(original);
|
|
942
|
+
if (inductionVariable_0 <= last_0)
|
|
943
|
+
do {
|
|
944
|
+
var index_0 = inductionVariable_0;
|
|
945
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
946
|
+
tmp1_apply.s8(toLowerCasePreservingASCII(charSequenceGet(original, index_0)));
|
|
947
|
+
}
|
|
948
|
+
while (!(index_0 === last_0));
|
|
949
|
+
tmp$ret$2 = tmp1_apply;
|
|
950
|
+
tmp$ret$3 = tmp$ret$2.toString();
|
|
951
|
+
return tmp$ret$3;
|
|
952
|
+
}
|
|
953
|
+
function toLowerCasePreservingASCII(ch) {
|
|
954
|
+
var tmp0_subject = ch;
|
|
955
|
+
var tmp;
|
|
956
|
+
if (_Char___init__impl__6a9atx(65) <= tmp0_subject ? tmp0_subject <= _Char___init__impl__6a9atx(90) : false) {
|
|
957
|
+
tmp = Char__plus_impl_qi7pgj(ch, 32);
|
|
958
|
+
} else if (_Char___init__impl__6a9atx(0) <= tmp0_subject ? tmp0_subject <= _Char___init__impl__6a9atx(127) : false) {
|
|
959
|
+
tmp = ch;
|
|
960
|
+
} else {
|
|
961
|
+
var tmp$ret$3;
|
|
962
|
+
// Inline function 'kotlin.text.lowercaseChar' call
|
|
963
|
+
var tmp$ret$2;
|
|
964
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
965
|
+
var tmp$ret$1;
|
|
966
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
967
|
+
var tmp$ret$0;
|
|
968
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
969
|
+
var tmp0_asDynamic = toString(ch);
|
|
970
|
+
tmp$ret$0 = tmp0_asDynamic;
|
|
971
|
+
var tmp1_unsafeCast = tmp$ret$0.toLowerCase();
|
|
972
|
+
tmp$ret$1 = tmp1_unsafeCast;
|
|
973
|
+
tmp$ret$2 = tmp$ret$1;
|
|
974
|
+
tmp$ret$3 = charSequenceGet(tmp$ret$2, 0);
|
|
975
|
+
tmp = tmp$ret$3;
|
|
976
|
+
}
|
|
977
|
+
return tmp;
|
|
978
|
+
}
|
|
979
|
+
function CaseInsensitiveString(content) {
|
|
980
|
+
this.a1l_1 = content;
|
|
981
|
+
var tmp = this;
|
|
982
|
+
var tmp$ret$1;
|
|
983
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
984
|
+
var tmp0_lowercase = this.a1l_1;
|
|
985
|
+
var tmp$ret$0;
|
|
986
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
987
|
+
tmp$ret$0 = tmp0_lowercase;
|
|
988
|
+
tmp$ret$1 = tmp$ret$0.toLowerCase();
|
|
989
|
+
tmp.b1l_1 = getStringHashCode(tmp$ret$1);
|
|
990
|
+
}
|
|
991
|
+
protoOf(CaseInsensitiveString).equals = function (other) {
|
|
992
|
+
var tmp0_safe_receiver = other instanceof CaseInsensitiveString ? other : null;
|
|
993
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.a1l_1;
|
|
994
|
+
return (tmp1_safe_receiver == null ? null : equals_0(tmp1_safe_receiver, this.a1l_1, true)) === true;
|
|
995
|
+
};
|
|
996
|
+
protoOf(CaseInsensitiveString).hashCode = function () {
|
|
997
|
+
return this.b1l_1;
|
|
998
|
+
};
|
|
999
|
+
protoOf(CaseInsensitiveString).toString = function () {
|
|
1000
|
+
return this.a1l_1;
|
|
1001
|
+
};
|
|
1002
|
+
function caseInsensitive(_this__u8e3s4) {
|
|
1003
|
+
return new CaseInsensitiveString(_this__u8e3s4);
|
|
1004
|
+
}
|
|
1005
|
+
function CopyOnWriteHashMap() {
|
|
1006
|
+
this.w1m_1 = atomic$ref$1(emptyMap());
|
|
1007
|
+
}
|
|
1008
|
+
protoOf(CopyOnWriteHashMap).p2 = function (key) {
|
|
1009
|
+
return this.w1m_1.kotlinx$atomicfu$value.p2(key);
|
|
1010
|
+
};
|
|
1011
|
+
function Companion() {
|
|
1012
|
+
Companion_instance = this;
|
|
1013
|
+
this.x1m_1 = GMTDate_0(new Long(0, 0));
|
|
1014
|
+
}
|
|
1015
|
+
var Companion_instance;
|
|
1016
|
+
function Companion_getInstance_0() {
|
|
1017
|
+
if (Companion_instance == null)
|
|
1018
|
+
new Companion();
|
|
1019
|
+
return Companion_instance;
|
|
1020
|
+
}
|
|
1021
|
+
function GMTDate(seconds, minutes, hours, dayOfWeek, dayOfMonth, dayOfYear, month, year, timestamp) {
|
|
1022
|
+
Companion_getInstance_0();
|
|
1023
|
+
this.y1m_1 = seconds;
|
|
1024
|
+
this.z1m_1 = minutes;
|
|
1025
|
+
this.a1n_1 = hours;
|
|
1026
|
+
this.b1n_1 = dayOfWeek;
|
|
1027
|
+
this.c1n_1 = dayOfMonth;
|
|
1028
|
+
this.d1n_1 = dayOfYear;
|
|
1029
|
+
this.e1n_1 = month;
|
|
1030
|
+
this.f1n_1 = year;
|
|
1031
|
+
this.g1n_1 = timestamp;
|
|
1032
|
+
}
|
|
1033
|
+
protoOf(GMTDate).h1n = function (other) {
|
|
1034
|
+
return this.g1n_1.d1(other.g1n_1);
|
|
1035
|
+
};
|
|
1036
|
+
protoOf(GMTDate).t9 = function (other) {
|
|
1037
|
+
return this.h1n(other instanceof GMTDate ? other : THROW_CCE());
|
|
1038
|
+
};
|
|
1039
|
+
protoOf(GMTDate).toString = function () {
|
|
1040
|
+
return 'GMTDate(seconds=' + this.y1m_1 + ', minutes=' + this.z1m_1 + ', hours=' + this.a1n_1 + ', dayOfWeek=' + this.b1n_1 + ', dayOfMonth=' + this.c1n_1 + ', dayOfYear=' + this.d1n_1 + ', month=' + this.e1n_1 + ', year=' + this.f1n_1 + ', timestamp=' + toString_0(this.g1n_1) + ')';
|
|
1041
|
+
};
|
|
1042
|
+
protoOf(GMTDate).hashCode = function () {
|
|
1043
|
+
var result = this.y1m_1;
|
|
1044
|
+
result = imul(result, 31) + this.z1m_1 | 0;
|
|
1045
|
+
result = imul(result, 31) + this.a1n_1 | 0;
|
|
1046
|
+
result = imul(result, 31) + this.b1n_1.hashCode() | 0;
|
|
1047
|
+
result = imul(result, 31) + this.c1n_1 | 0;
|
|
1048
|
+
result = imul(result, 31) + this.d1n_1 | 0;
|
|
1049
|
+
result = imul(result, 31) + this.e1n_1.hashCode() | 0;
|
|
1050
|
+
result = imul(result, 31) + this.f1n_1 | 0;
|
|
1051
|
+
result = imul(result, 31) + this.g1n_1.hashCode() | 0;
|
|
1052
|
+
return result;
|
|
1053
|
+
};
|
|
1054
|
+
protoOf(GMTDate).equals = function (other) {
|
|
1055
|
+
if (this === other)
|
|
1056
|
+
return true;
|
|
1057
|
+
if (!(other instanceof GMTDate))
|
|
1058
|
+
return false;
|
|
1059
|
+
var tmp0_other_with_cast = other instanceof GMTDate ? other : THROW_CCE();
|
|
1060
|
+
if (!(this.y1m_1 === tmp0_other_with_cast.y1m_1))
|
|
1061
|
+
return false;
|
|
1062
|
+
if (!(this.z1m_1 === tmp0_other_with_cast.z1m_1))
|
|
1063
|
+
return false;
|
|
1064
|
+
if (!(this.a1n_1 === tmp0_other_with_cast.a1n_1))
|
|
1065
|
+
return false;
|
|
1066
|
+
if (!this.b1n_1.equals(tmp0_other_with_cast.b1n_1))
|
|
1067
|
+
return false;
|
|
1068
|
+
if (!(this.c1n_1 === tmp0_other_with_cast.c1n_1))
|
|
1069
|
+
return false;
|
|
1070
|
+
if (!(this.d1n_1 === tmp0_other_with_cast.d1n_1))
|
|
1071
|
+
return false;
|
|
1072
|
+
if (!this.e1n_1.equals(tmp0_other_with_cast.e1n_1))
|
|
1073
|
+
return false;
|
|
1074
|
+
if (!(this.f1n_1 === tmp0_other_with_cast.f1n_1))
|
|
1075
|
+
return false;
|
|
1076
|
+
if (!this.g1n_1.equals(tmp0_other_with_cast.g1n_1))
|
|
1077
|
+
return false;
|
|
1078
|
+
return true;
|
|
1079
|
+
};
|
|
1080
|
+
var WeekDay_MONDAY_instance;
|
|
1081
|
+
var WeekDay_TUESDAY_instance;
|
|
1082
|
+
var WeekDay_WEDNESDAY_instance;
|
|
1083
|
+
var WeekDay_THURSDAY_instance;
|
|
1084
|
+
var WeekDay_FRIDAY_instance;
|
|
1085
|
+
var WeekDay_SATURDAY_instance;
|
|
1086
|
+
var WeekDay_SUNDAY_instance;
|
|
1087
|
+
function Companion_0() {
|
|
1088
|
+
Companion_instance_0 = this;
|
|
1089
|
+
}
|
|
1090
|
+
protoOf(Companion_0).i1n = function (ordinal) {
|
|
1091
|
+
return values()[ordinal];
|
|
1092
|
+
};
|
|
1093
|
+
var Companion_instance_0;
|
|
1094
|
+
function Companion_getInstance_1() {
|
|
1095
|
+
WeekDay_initEntries();
|
|
1096
|
+
if (Companion_instance_0 == null)
|
|
1097
|
+
new Companion_0();
|
|
1098
|
+
return Companion_instance_0;
|
|
1099
|
+
}
|
|
1100
|
+
function values() {
|
|
1101
|
+
return [WeekDay_MONDAY_getInstance(), WeekDay_TUESDAY_getInstance(), WeekDay_WEDNESDAY_getInstance(), WeekDay_THURSDAY_getInstance(), WeekDay_FRIDAY_getInstance(), WeekDay_SATURDAY_getInstance(), WeekDay_SUNDAY_getInstance()];
|
|
1102
|
+
}
|
|
1103
|
+
var WeekDay_entriesInitialized;
|
|
1104
|
+
function WeekDay_initEntries() {
|
|
1105
|
+
if (WeekDay_entriesInitialized)
|
|
1106
|
+
return Unit_getInstance();
|
|
1107
|
+
WeekDay_entriesInitialized = true;
|
|
1108
|
+
WeekDay_MONDAY_instance = new WeekDay('MONDAY', 0, 'Mon');
|
|
1109
|
+
WeekDay_TUESDAY_instance = new WeekDay('TUESDAY', 1, 'Tue');
|
|
1110
|
+
WeekDay_WEDNESDAY_instance = new WeekDay('WEDNESDAY', 2, 'Wed');
|
|
1111
|
+
WeekDay_THURSDAY_instance = new WeekDay('THURSDAY', 3, 'Thu');
|
|
1112
|
+
WeekDay_FRIDAY_instance = new WeekDay('FRIDAY', 4, 'Fri');
|
|
1113
|
+
WeekDay_SATURDAY_instance = new WeekDay('SATURDAY', 5, 'Sat');
|
|
1114
|
+
WeekDay_SUNDAY_instance = new WeekDay('SUNDAY', 6, 'Sun');
|
|
1115
|
+
Companion_getInstance_1();
|
|
1116
|
+
}
|
|
1117
|
+
function WeekDay(name, ordinal, value) {
|
|
1118
|
+
Enum.call(this, name, ordinal);
|
|
1119
|
+
this.l1n_1 = value;
|
|
1120
|
+
}
|
|
1121
|
+
var Month_JANUARY_instance;
|
|
1122
|
+
var Month_FEBRUARY_instance;
|
|
1123
|
+
var Month_MARCH_instance;
|
|
1124
|
+
var Month_APRIL_instance;
|
|
1125
|
+
var Month_MAY_instance;
|
|
1126
|
+
var Month_JUNE_instance;
|
|
1127
|
+
var Month_JULY_instance;
|
|
1128
|
+
var Month_AUGUST_instance;
|
|
1129
|
+
var Month_SEPTEMBER_instance;
|
|
1130
|
+
var Month_OCTOBER_instance;
|
|
1131
|
+
var Month_NOVEMBER_instance;
|
|
1132
|
+
var Month_DECEMBER_instance;
|
|
1133
|
+
function Companion_1() {
|
|
1134
|
+
Companion_instance_1 = this;
|
|
1135
|
+
}
|
|
1136
|
+
protoOf(Companion_1).i1n = function (ordinal) {
|
|
1137
|
+
return values_0()[ordinal];
|
|
1138
|
+
};
|
|
1139
|
+
var Companion_instance_1;
|
|
1140
|
+
function Companion_getInstance_2() {
|
|
1141
|
+
Month_initEntries();
|
|
1142
|
+
if (Companion_instance_1 == null)
|
|
1143
|
+
new Companion_1();
|
|
1144
|
+
return Companion_instance_1;
|
|
1145
|
+
}
|
|
1146
|
+
function values_0() {
|
|
1147
|
+
return [Month_JANUARY_getInstance(), Month_FEBRUARY_getInstance(), Month_MARCH_getInstance(), Month_APRIL_getInstance(), Month_MAY_getInstance(), Month_JUNE_getInstance(), Month_JULY_getInstance(), Month_AUGUST_getInstance(), Month_SEPTEMBER_getInstance(), Month_OCTOBER_getInstance(), Month_NOVEMBER_getInstance(), Month_DECEMBER_getInstance()];
|
|
1148
|
+
}
|
|
1149
|
+
var Month_entriesInitialized;
|
|
1150
|
+
function Month_initEntries() {
|
|
1151
|
+
if (Month_entriesInitialized)
|
|
1152
|
+
return Unit_getInstance();
|
|
1153
|
+
Month_entriesInitialized = true;
|
|
1154
|
+
Month_JANUARY_instance = new Month('JANUARY', 0, 'Jan');
|
|
1155
|
+
Month_FEBRUARY_instance = new Month('FEBRUARY', 1, 'Feb');
|
|
1156
|
+
Month_MARCH_instance = new Month('MARCH', 2, 'Mar');
|
|
1157
|
+
Month_APRIL_instance = new Month('APRIL', 3, 'Apr');
|
|
1158
|
+
Month_MAY_instance = new Month('MAY', 4, 'May');
|
|
1159
|
+
Month_JUNE_instance = new Month('JUNE', 5, 'Jun');
|
|
1160
|
+
Month_JULY_instance = new Month('JULY', 6, 'Jul');
|
|
1161
|
+
Month_AUGUST_instance = new Month('AUGUST', 7, 'Aug');
|
|
1162
|
+
Month_SEPTEMBER_instance = new Month('SEPTEMBER', 8, 'Sep');
|
|
1163
|
+
Month_OCTOBER_instance = new Month('OCTOBER', 9, 'Oct');
|
|
1164
|
+
Month_NOVEMBER_instance = new Month('NOVEMBER', 10, 'Nov');
|
|
1165
|
+
Month_DECEMBER_instance = new Month('DECEMBER', 11, 'Dec');
|
|
1166
|
+
Companion_getInstance_2();
|
|
1167
|
+
}
|
|
1168
|
+
function Month(name, ordinal, value) {
|
|
1169
|
+
Enum.call(this, name, ordinal);
|
|
1170
|
+
this.o1n_1 = value;
|
|
1171
|
+
}
|
|
1172
|
+
function WeekDay_MONDAY_getInstance() {
|
|
1173
|
+
WeekDay_initEntries();
|
|
1174
|
+
return WeekDay_MONDAY_instance;
|
|
1175
|
+
}
|
|
1176
|
+
function WeekDay_TUESDAY_getInstance() {
|
|
1177
|
+
WeekDay_initEntries();
|
|
1178
|
+
return WeekDay_TUESDAY_instance;
|
|
1179
|
+
}
|
|
1180
|
+
function WeekDay_WEDNESDAY_getInstance() {
|
|
1181
|
+
WeekDay_initEntries();
|
|
1182
|
+
return WeekDay_WEDNESDAY_instance;
|
|
1183
|
+
}
|
|
1184
|
+
function WeekDay_THURSDAY_getInstance() {
|
|
1185
|
+
WeekDay_initEntries();
|
|
1186
|
+
return WeekDay_THURSDAY_instance;
|
|
1187
|
+
}
|
|
1188
|
+
function WeekDay_FRIDAY_getInstance() {
|
|
1189
|
+
WeekDay_initEntries();
|
|
1190
|
+
return WeekDay_FRIDAY_instance;
|
|
1191
|
+
}
|
|
1192
|
+
function WeekDay_SATURDAY_getInstance() {
|
|
1193
|
+
WeekDay_initEntries();
|
|
1194
|
+
return WeekDay_SATURDAY_instance;
|
|
1195
|
+
}
|
|
1196
|
+
function WeekDay_SUNDAY_getInstance() {
|
|
1197
|
+
WeekDay_initEntries();
|
|
1198
|
+
return WeekDay_SUNDAY_instance;
|
|
1199
|
+
}
|
|
1200
|
+
function Month_JANUARY_getInstance() {
|
|
1201
|
+
Month_initEntries();
|
|
1202
|
+
return Month_JANUARY_instance;
|
|
1203
|
+
}
|
|
1204
|
+
function Month_FEBRUARY_getInstance() {
|
|
1205
|
+
Month_initEntries();
|
|
1206
|
+
return Month_FEBRUARY_instance;
|
|
1207
|
+
}
|
|
1208
|
+
function Month_MARCH_getInstance() {
|
|
1209
|
+
Month_initEntries();
|
|
1210
|
+
return Month_MARCH_instance;
|
|
1211
|
+
}
|
|
1212
|
+
function Month_APRIL_getInstance() {
|
|
1213
|
+
Month_initEntries();
|
|
1214
|
+
return Month_APRIL_instance;
|
|
1215
|
+
}
|
|
1216
|
+
function Month_MAY_getInstance() {
|
|
1217
|
+
Month_initEntries();
|
|
1218
|
+
return Month_MAY_instance;
|
|
1219
|
+
}
|
|
1220
|
+
function Month_JUNE_getInstance() {
|
|
1221
|
+
Month_initEntries();
|
|
1222
|
+
return Month_JUNE_instance;
|
|
1223
|
+
}
|
|
1224
|
+
function Month_JULY_getInstance() {
|
|
1225
|
+
Month_initEntries();
|
|
1226
|
+
return Month_JULY_instance;
|
|
1227
|
+
}
|
|
1228
|
+
function Month_AUGUST_getInstance() {
|
|
1229
|
+
Month_initEntries();
|
|
1230
|
+
return Month_AUGUST_instance;
|
|
1231
|
+
}
|
|
1232
|
+
function Month_SEPTEMBER_getInstance() {
|
|
1233
|
+
Month_initEntries();
|
|
1234
|
+
return Month_SEPTEMBER_instance;
|
|
1235
|
+
}
|
|
1236
|
+
function Month_OCTOBER_getInstance() {
|
|
1237
|
+
Month_initEntries();
|
|
1238
|
+
return Month_OCTOBER_instance;
|
|
1239
|
+
}
|
|
1240
|
+
function Month_NOVEMBER_getInstance() {
|
|
1241
|
+
Month_initEntries();
|
|
1242
|
+
return Month_NOVEMBER_instance;
|
|
1243
|
+
}
|
|
1244
|
+
function Month_DECEMBER_getInstance() {
|
|
1245
|
+
Month_initEntries();
|
|
1246
|
+
return Month_DECEMBER_instance;
|
|
1247
|
+
}
|
|
1248
|
+
function proceedLoop($this, $completion) {
|
|
1249
|
+
var tmp = new $proceedLoopCOROUTINE$1($this, $completion);
|
|
1250
|
+
tmp.lk_1 = Unit_getInstance();
|
|
1251
|
+
tmp.mk_1 = null;
|
|
1252
|
+
return tmp.sk();
|
|
1253
|
+
}
|
|
1254
|
+
function $proceedLoopCOROUTINE$1(_this__u8e3s4, resultContinuation) {
|
|
1255
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
1256
|
+
this.x1n_1 = _this__u8e3s4;
|
|
1257
|
+
}
|
|
1258
|
+
protoOf($proceedLoopCOROUTINE$1).sk = function () {
|
|
1259
|
+
var suspendResult = this.lk_1;
|
|
1260
|
+
$sm: do
|
|
1261
|
+
try {
|
|
1262
|
+
var tmp = this.jk_1;
|
|
1263
|
+
switch (tmp) {
|
|
1264
|
+
case 0:
|
|
1265
|
+
this.kk_1 = 6;
|
|
1266
|
+
this.jk_1 = 1;
|
|
1267
|
+
continue $sm;
|
|
1268
|
+
case 1:
|
|
1269
|
+
this.y1n_1 = this.x1n_1.f1o_1;
|
|
1270
|
+
if (this.y1n_1 === -1) {
|
|
1271
|
+
this.jk_1 = 5;
|
|
1272
|
+
continue $sm;
|
|
1273
|
+
} else {
|
|
1274
|
+
this.jk_1 = 2;
|
|
1275
|
+
continue $sm;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
break;
|
|
1279
|
+
case 2:
|
|
1280
|
+
this.z1n_1 = this.x1n_1.c1o_1;
|
|
1281
|
+
if (this.y1n_1 >= this.z1n_1.i()) {
|
|
1282
|
+
this.x1n_1.g1o();
|
|
1283
|
+
this.jk_1 = 5;
|
|
1284
|
+
continue $sm;
|
|
1285
|
+
} else {
|
|
1286
|
+
this.jk_1 = 3;
|
|
1287
|
+
continue $sm;
|
|
1288
|
+
}
|
|
1289
|
+
|
|
1290
|
+
break;
|
|
1291
|
+
case 3:
|
|
1292
|
+
this.a1o_1 = this.z1n_1.k(this.y1n_1);
|
|
1293
|
+
this.x1n_1.f1o_1 = this.y1n_1 + 1 | 0;
|
|
1294
|
+
this.jk_1 = 4;
|
|
1295
|
+
var tmp_0 = this.a1o_1;
|
|
1296
|
+
suspendResult = (isSuspendFunction(tmp_0, 2) ? tmp_0 : THROW_CCE())(this.x1n_1, this.x1n_1.e1o_1, this);
|
|
1297
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1298
|
+
return suspendResult;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
continue $sm;
|
|
1302
|
+
case 4:
|
|
1303
|
+
{
|
|
1304
|
+
this.jk_1 = 1;
|
|
1305
|
+
continue $sm;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
this.jk_1 = 5;
|
|
1309
|
+
continue $sm;
|
|
1310
|
+
case 5:
|
|
1311
|
+
return this.x1n_1.e1o_1;
|
|
1312
|
+
case 6:
|
|
1313
|
+
throw this.mk_1;
|
|
1314
|
+
}
|
|
1315
|
+
} catch ($p) {
|
|
1316
|
+
var e = $p;
|
|
1317
|
+
if (this.kk_1 === 6) {
|
|
1318
|
+
throw e;
|
|
1319
|
+
} else {
|
|
1320
|
+
this.jk_1 = this.kk_1;
|
|
1321
|
+
this.mk_1 = e;
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
while (true);
|
|
1325
|
+
};
|
|
1326
|
+
function DebugPipelineContext(context, interceptors, subject, coroutineContext) {
|
|
1327
|
+
PipelineContext.call(this, context);
|
|
1328
|
+
this.c1o_1 = interceptors;
|
|
1329
|
+
this.d1o_1 = coroutineContext;
|
|
1330
|
+
this.e1o_1 = subject;
|
|
1331
|
+
this.f1o_1 = 0;
|
|
1332
|
+
}
|
|
1333
|
+
protoOf(DebugPipelineContext).sl = function () {
|
|
1334
|
+
return this.d1o_1;
|
|
1335
|
+
};
|
|
1336
|
+
protoOf(DebugPipelineContext).h1o = function () {
|
|
1337
|
+
return this.e1o_1;
|
|
1338
|
+
};
|
|
1339
|
+
protoOf(DebugPipelineContext).g1o = function () {
|
|
1340
|
+
this.f1o_1 = -1;
|
|
1341
|
+
};
|
|
1342
|
+
protoOf(DebugPipelineContext).i1o = function (subject, $completion) {
|
|
1343
|
+
this.e1o_1 = subject;
|
|
1344
|
+
var tmp0 = this.j1o($completion);
|
|
1345
|
+
return tmp0;
|
|
1346
|
+
};
|
|
1347
|
+
protoOf(DebugPipelineContext).j1o = function ($completion) {
|
|
1348
|
+
var index = this.f1o_1;
|
|
1349
|
+
if (index < 0)
|
|
1350
|
+
return this.e1o_1;
|
|
1351
|
+
if (index >= this.c1o_1.i()) {
|
|
1352
|
+
this.g1o();
|
|
1353
|
+
return this.e1o_1;
|
|
1354
|
+
}
|
|
1355
|
+
var tmp0 = proceedLoop(this, $completion);
|
|
1356
|
+
return tmp0;
|
|
1357
|
+
};
|
|
1358
|
+
protoOf(DebugPipelineContext).k1o = function (initial, $completion) {
|
|
1359
|
+
this.f1o_1 = 0;
|
|
1360
|
+
this.e1o_1 = initial;
|
|
1361
|
+
var tmp0 = this.j1o($completion);
|
|
1362
|
+
return tmp0;
|
|
1363
|
+
};
|
|
1364
|
+
function PhaseContent_init_$Init$(phase, relation, $this) {
|
|
1365
|
+
var tmp = Companion_getInstance_3().l1o_1;
|
|
1366
|
+
PhaseContent.call($this, phase, relation, isInterface(tmp, MutableList) ? tmp : THROW_CCE());
|
|
1367
|
+
// Inline function 'kotlin.check' call
|
|
1368
|
+
var tmp0_check = Companion_getInstance_3().l1o_1.l();
|
|
1369
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1370
|
+
if (!tmp0_check) {
|
|
1371
|
+
var tmp$ret$0;
|
|
1372
|
+
// Inline function 'io.ktor.util.pipeline.PhaseContent.<init>.<anonymous>' call
|
|
1373
|
+
tmp$ret$0 = 'The shared empty array list has been modified';
|
|
1374
|
+
var message = tmp$ret$0;
|
|
1375
|
+
throw IllegalStateException_init_$Create$(toString_0(message));
|
|
1376
|
+
}
|
|
1377
|
+
return $this;
|
|
1378
|
+
}
|
|
1379
|
+
function PhaseContent_init_$Create$(phase, relation) {
|
|
1380
|
+
return PhaseContent_init_$Init$(phase, relation, objectCreate(protoOf(PhaseContent)));
|
|
1381
|
+
}
|
|
1382
|
+
function copyInterceptors($this) {
|
|
1383
|
+
$this.o1o_1 = $this.q1o();
|
|
1384
|
+
$this.p1o_1 = false;
|
|
1385
|
+
}
|
|
1386
|
+
function Companion_2() {
|
|
1387
|
+
Companion_instance_2 = this;
|
|
1388
|
+
var tmp = this;
|
|
1389
|
+
var tmp$ret$0;
|
|
1390
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1391
|
+
tmp$ret$0 = ArrayList_init_$Create$_0();
|
|
1392
|
+
tmp.l1o_1 = tmp$ret$0;
|
|
1393
|
+
}
|
|
1394
|
+
var Companion_instance_2;
|
|
1395
|
+
function Companion_getInstance_3() {
|
|
1396
|
+
if (Companion_instance_2 == null)
|
|
1397
|
+
new Companion_2();
|
|
1398
|
+
return Companion_instance_2;
|
|
1399
|
+
}
|
|
1400
|
+
function PhaseContent(phase, relation, interceptors) {
|
|
1401
|
+
Companion_getInstance_3();
|
|
1402
|
+
this.m1o_1 = phase;
|
|
1403
|
+
this.n1o_1 = relation;
|
|
1404
|
+
this.o1o_1 = interceptors;
|
|
1405
|
+
this.p1o_1 = true;
|
|
1406
|
+
}
|
|
1407
|
+
protoOf(PhaseContent).t15 = function () {
|
|
1408
|
+
return this.o1o_1.l();
|
|
1409
|
+
};
|
|
1410
|
+
protoOf(PhaseContent).i = function () {
|
|
1411
|
+
return this.o1o_1.i();
|
|
1412
|
+
};
|
|
1413
|
+
protoOf(PhaseContent).r1o = function (interceptor) {
|
|
1414
|
+
if (this.p1o_1) {
|
|
1415
|
+
copyInterceptors(this);
|
|
1416
|
+
}
|
|
1417
|
+
this.o1o_1.a(interceptor);
|
|
1418
|
+
};
|
|
1419
|
+
protoOf(PhaseContent).s1o = function (destination) {
|
|
1420
|
+
var interceptors = this.o1o_1;
|
|
1421
|
+
if (destination instanceof ArrayList) {
|
|
1422
|
+
destination.rd(destination.i() + interceptors.i() | 0);
|
|
1423
|
+
}
|
|
1424
|
+
var inductionVariable = 0;
|
|
1425
|
+
var last = interceptors.i();
|
|
1426
|
+
if (inductionVariable < last)
|
|
1427
|
+
do {
|
|
1428
|
+
var index = inductionVariable;
|
|
1429
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1430
|
+
destination.a(interceptors.k(index));
|
|
1431
|
+
}
|
|
1432
|
+
while (inductionVariable < last);
|
|
1433
|
+
};
|
|
1434
|
+
protoOf(PhaseContent).t1o = function () {
|
|
1435
|
+
this.p1o_1 = true;
|
|
1436
|
+
return this.o1o_1;
|
|
1437
|
+
};
|
|
1438
|
+
protoOf(PhaseContent).q1o = function () {
|
|
1439
|
+
var tmp$ret$1;
|
|
1440
|
+
// Inline function 'kotlin.apply' call
|
|
1441
|
+
var tmp$ret$0;
|
|
1442
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1443
|
+
tmp$ret$0 = ArrayList_init_$Create$_0();
|
|
1444
|
+
var tmp0_apply = tmp$ret$0;
|
|
1445
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1446
|
+
// Inline function 'io.ktor.util.pipeline.PhaseContent.copiedInterceptors.<anonymous>' call
|
|
1447
|
+
tmp0_apply.j(this.o1o_1);
|
|
1448
|
+
tmp$ret$1 = tmp0_apply;
|
|
1449
|
+
return tmp$ret$1;
|
|
1450
|
+
};
|
|
1451
|
+
protoOf(PhaseContent).toString = function () {
|
|
1452
|
+
return 'Phase `' + this.m1o_1.u1o_1 + '`, ' + this.i() + ' handlers';
|
|
1453
|
+
};
|
|
1454
|
+
function _set_interceptors__wod97b($this, value) {
|
|
1455
|
+
$this.z1o_1.kotlinx$atomicfu$value = value;
|
|
1456
|
+
}
|
|
1457
|
+
function _get_interceptors__h4min7($this) {
|
|
1458
|
+
return $this.z1o_1.kotlinx$atomicfu$value;
|
|
1459
|
+
}
|
|
1460
|
+
function createContext($this, context, subject, coroutineContext) {
|
|
1461
|
+
return pipelineContextFor(context, sharedInterceptorsList($this), subject, coroutineContext, $this.c1p());
|
|
1462
|
+
}
|
|
1463
|
+
function findPhase($this, phase) {
|
|
1464
|
+
var phasesList = $this.x1o_1;
|
|
1465
|
+
var inductionVariable = 0;
|
|
1466
|
+
var last = phasesList.i();
|
|
1467
|
+
if (inductionVariable < last)
|
|
1468
|
+
do {
|
|
1469
|
+
var index = inductionVariable;
|
|
1470
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1471
|
+
var current = phasesList.k(index);
|
|
1472
|
+
if (current === phase) {
|
|
1473
|
+
var content = PhaseContent_init_$Create$(phase, Last_getInstance());
|
|
1474
|
+
phasesList.i3(index, content);
|
|
1475
|
+
return content;
|
|
1476
|
+
}
|
|
1477
|
+
var tmp;
|
|
1478
|
+
if (current instanceof PhaseContent) {
|
|
1479
|
+
tmp = current.m1o_1 === phase;
|
|
1480
|
+
} else {
|
|
1481
|
+
tmp = false;
|
|
1482
|
+
}
|
|
1483
|
+
if (tmp) {
|
|
1484
|
+
return current instanceof PhaseContent ? current : THROW_CCE();
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
while (inductionVariable < last);
|
|
1488
|
+
return null;
|
|
1489
|
+
}
|
|
1490
|
+
function findPhaseIndex($this, phase) {
|
|
1491
|
+
var phasesList = $this.x1o_1;
|
|
1492
|
+
var inductionVariable = 0;
|
|
1493
|
+
var last = phasesList.i();
|
|
1494
|
+
if (inductionVariable < last)
|
|
1495
|
+
do {
|
|
1496
|
+
var index = inductionVariable;
|
|
1497
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1498
|
+
var current = phasesList.k(index);
|
|
1499
|
+
var tmp;
|
|
1500
|
+
if (current === phase) {
|
|
1501
|
+
tmp = true;
|
|
1502
|
+
} else {
|
|
1503
|
+
var tmp_0;
|
|
1504
|
+
if (current instanceof PhaseContent) {
|
|
1505
|
+
tmp_0 = current.m1o_1 === phase;
|
|
1506
|
+
} else {
|
|
1507
|
+
tmp_0 = false;
|
|
1508
|
+
}
|
|
1509
|
+
tmp = tmp_0;
|
|
1510
|
+
}
|
|
1511
|
+
if (tmp) {
|
|
1512
|
+
return index;
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
while (inductionVariable < last);
|
|
1516
|
+
return -1;
|
|
1517
|
+
}
|
|
1518
|
+
function hasPhase($this, phase) {
|
|
1519
|
+
var phasesList = $this.x1o_1;
|
|
1520
|
+
var inductionVariable = 0;
|
|
1521
|
+
var last = phasesList.i();
|
|
1522
|
+
if (inductionVariable < last)
|
|
1523
|
+
do {
|
|
1524
|
+
var index = inductionVariable;
|
|
1525
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1526
|
+
var current = phasesList.k(index);
|
|
1527
|
+
var tmp;
|
|
1528
|
+
if (current === phase) {
|
|
1529
|
+
tmp = true;
|
|
1530
|
+
} else {
|
|
1531
|
+
var tmp_0;
|
|
1532
|
+
if (current instanceof PhaseContent) {
|
|
1533
|
+
tmp_0 = current.m1o_1 === phase;
|
|
1534
|
+
} else {
|
|
1535
|
+
tmp_0 = false;
|
|
1536
|
+
}
|
|
1537
|
+
tmp = tmp_0;
|
|
1538
|
+
}
|
|
1539
|
+
if (tmp) {
|
|
1540
|
+
return true;
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
while (inductionVariable < last);
|
|
1544
|
+
return false;
|
|
1545
|
+
}
|
|
1546
|
+
function cacheInterceptors($this) {
|
|
1547
|
+
var interceptorsQuantity = $this.y1o_1;
|
|
1548
|
+
if (interceptorsQuantity === 0) {
|
|
1549
|
+
notSharedInterceptorsList($this, emptyList());
|
|
1550
|
+
return emptyList();
|
|
1551
|
+
}
|
|
1552
|
+
var phases = $this.x1o_1;
|
|
1553
|
+
if (interceptorsQuantity === 1) {
|
|
1554
|
+
var inductionVariable = 0;
|
|
1555
|
+
var last = get_lastIndex_0(phases);
|
|
1556
|
+
if (inductionVariable <= last)
|
|
1557
|
+
$l$loop_0: do {
|
|
1558
|
+
var phaseIndex = inductionVariable;
|
|
1559
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1560
|
+
var tmp = phases.k(phaseIndex);
|
|
1561
|
+
var tmp1_elvis_lhs = tmp instanceof PhaseContent ? tmp : null;
|
|
1562
|
+
var tmp_0;
|
|
1563
|
+
if (tmp1_elvis_lhs == null) {
|
|
1564
|
+
continue $l$loop_0;
|
|
1565
|
+
} else {
|
|
1566
|
+
tmp_0 = tmp1_elvis_lhs;
|
|
1567
|
+
}
|
|
1568
|
+
var phaseContent = tmp_0;
|
|
1569
|
+
if (phaseContent.t15())
|
|
1570
|
+
continue $l$loop_0;
|
|
1571
|
+
var interceptors = phaseContent.t1o();
|
|
1572
|
+
setInterceptorsListFromPhase($this, phaseContent);
|
|
1573
|
+
return interceptors;
|
|
1574
|
+
}
|
|
1575
|
+
while (!(phaseIndex === last));
|
|
1576
|
+
}
|
|
1577
|
+
var tmp$ret$0;
|
|
1578
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1579
|
+
tmp$ret$0 = ArrayList_init_$Create$_0();
|
|
1580
|
+
var destination = tmp$ret$0;
|
|
1581
|
+
var inductionVariable_0 = 0;
|
|
1582
|
+
var last_0 = get_lastIndex_0(phases);
|
|
1583
|
+
if (inductionVariable_0 <= last_0)
|
|
1584
|
+
$l$loop_1: do {
|
|
1585
|
+
var phaseIndex_0 = inductionVariable_0;
|
|
1586
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1587
|
+
var tmp_1 = phases.k(phaseIndex_0);
|
|
1588
|
+
var tmp3_elvis_lhs = tmp_1 instanceof PhaseContent ? tmp_1 : null;
|
|
1589
|
+
var tmp_2;
|
|
1590
|
+
if (tmp3_elvis_lhs == null) {
|
|
1591
|
+
continue $l$loop_1;
|
|
1592
|
+
} else {
|
|
1593
|
+
tmp_2 = tmp3_elvis_lhs;
|
|
1594
|
+
}
|
|
1595
|
+
var phase = tmp_2;
|
|
1596
|
+
phase.s1o(destination);
|
|
1597
|
+
}
|
|
1598
|
+
while (!(phaseIndex_0 === last_0));
|
|
1599
|
+
notSharedInterceptorsList($this, destination);
|
|
1600
|
+
return destination;
|
|
1601
|
+
}
|
|
1602
|
+
function sharedInterceptorsList($this) {
|
|
1603
|
+
if (_get_interceptors__h4min7($this) == null) {
|
|
1604
|
+
cacheInterceptors($this);
|
|
1605
|
+
}
|
|
1606
|
+
$this.a1p_1 = true;
|
|
1607
|
+
return ensureNotNull(_get_interceptors__h4min7($this));
|
|
1608
|
+
}
|
|
1609
|
+
function resetInterceptorsList($this) {
|
|
1610
|
+
_set_interceptors__wod97b($this, null);
|
|
1611
|
+
$this.a1p_1 = false;
|
|
1612
|
+
$this.b1p_1 = null;
|
|
1613
|
+
}
|
|
1614
|
+
function notSharedInterceptorsList($this, list) {
|
|
1615
|
+
_set_interceptors__wod97b($this, list);
|
|
1616
|
+
$this.a1p_1 = false;
|
|
1617
|
+
$this.b1p_1 = null;
|
|
1618
|
+
}
|
|
1619
|
+
function setInterceptorsListFromPhase($this, phaseContent) {
|
|
1620
|
+
_set_interceptors__wod97b($this, phaseContent.t1o());
|
|
1621
|
+
$this.a1p_1 = false;
|
|
1622
|
+
$this.b1p_1 = phaseContent.m1o_1;
|
|
1623
|
+
}
|
|
1624
|
+
function tryAddToPhaseFastPath($this, phase, block) {
|
|
1625
|
+
var currentInterceptors = _get_interceptors__h4min7($this);
|
|
1626
|
+
if ($this.x1o_1.l() ? true : currentInterceptors == null) {
|
|
1627
|
+
return false;
|
|
1628
|
+
}
|
|
1629
|
+
var tmp;
|
|
1630
|
+
if ($this.a1p_1) {
|
|
1631
|
+
tmp = true;
|
|
1632
|
+
} else {
|
|
1633
|
+
tmp = !(!(currentInterceptors == null) ? isInterface(currentInterceptors, MutableList) : false);
|
|
1634
|
+
}
|
|
1635
|
+
if (tmp) {
|
|
1636
|
+
return false;
|
|
1637
|
+
}
|
|
1638
|
+
if (equals($this.b1p_1, phase)) {
|
|
1639
|
+
currentInterceptors.a(block);
|
|
1640
|
+
return true;
|
|
1641
|
+
}
|
|
1642
|
+
if (equals(phase, last($this.x1o_1)) ? true : findPhaseIndex($this, phase) === get_lastIndex_0($this.x1o_1)) {
|
|
1643
|
+
ensureNotNull(findPhase($this, phase)).r1o(block);
|
|
1644
|
+
currentInterceptors.a(block);
|
|
1645
|
+
return true;
|
|
1646
|
+
}
|
|
1647
|
+
return false;
|
|
1648
|
+
}
|
|
1649
|
+
function Pipeline(phases) {
|
|
1650
|
+
this.v1o_1 = AttributesJsFn(true);
|
|
1651
|
+
this.w1o_1 = false;
|
|
1652
|
+
this.x1o_1 = mutableListOf(phases.slice());
|
|
1653
|
+
this.y1o_1 = 0;
|
|
1654
|
+
this.z1o_1 = atomic$ref$1(null);
|
|
1655
|
+
this.a1p_1 = false;
|
|
1656
|
+
this.b1p_1 = null;
|
|
1657
|
+
}
|
|
1658
|
+
protoOf(Pipeline).c1p = function () {
|
|
1659
|
+
return this.w1o_1;
|
|
1660
|
+
};
|
|
1661
|
+
protoOf(Pipeline).d1p = function (context, subject, $completion) {
|
|
1662
|
+
var tmp$ret$0;
|
|
1663
|
+
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
1664
|
+
tmp$ret$0 = $completion.g6();
|
|
1665
|
+
var tmp0 = createContext(this, context, subject, tmp$ret$0).k1o(subject, $completion);
|
|
1666
|
+
return tmp0;
|
|
1667
|
+
};
|
|
1668
|
+
protoOf(Pipeline).f1p = function (reference, phase) {
|
|
1669
|
+
if (hasPhase(this, phase))
|
|
1670
|
+
return Unit_getInstance();
|
|
1671
|
+
var index = findPhaseIndex(this, reference);
|
|
1672
|
+
if (index === -1) {
|
|
1673
|
+
throw new InvalidPhaseException('Phase ' + reference + ' was not registered for this pipeline');
|
|
1674
|
+
}
|
|
1675
|
+
var lastRelatedPhaseIndex = index;
|
|
1676
|
+
var inductionVariable = index + 1 | 0;
|
|
1677
|
+
var last = get_lastIndex_0(this.x1o_1);
|
|
1678
|
+
if (inductionVariable <= last)
|
|
1679
|
+
$l$loop_0: do {
|
|
1680
|
+
var i = inductionVariable;
|
|
1681
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1682
|
+
var tmp = this.x1o_1.k(i);
|
|
1683
|
+
var tmp1_safe_receiver = tmp instanceof PhaseContent ? tmp : null;
|
|
1684
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.n1o_1;
|
|
1685
|
+
var tmp_0;
|
|
1686
|
+
if (tmp2_elvis_lhs == null) {
|
|
1687
|
+
break $l$loop_0;
|
|
1688
|
+
} else {
|
|
1689
|
+
tmp_0 = tmp2_elvis_lhs;
|
|
1690
|
+
}
|
|
1691
|
+
var relation = tmp_0;
|
|
1692
|
+
var tmp3_safe_receiver = relation instanceof After ? relation : null;
|
|
1693
|
+
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.g1p_1;
|
|
1694
|
+
var tmp_1;
|
|
1695
|
+
if (tmp4_elvis_lhs == null) {
|
|
1696
|
+
continue $l$loop_0;
|
|
1697
|
+
} else {
|
|
1698
|
+
tmp_1 = tmp4_elvis_lhs;
|
|
1699
|
+
}
|
|
1700
|
+
var relatedTo = tmp_1;
|
|
1701
|
+
lastRelatedPhaseIndex = equals(relatedTo, reference) ? i : lastRelatedPhaseIndex;
|
|
1702
|
+
}
|
|
1703
|
+
while (!(i === last));
|
|
1704
|
+
this.x1o_1.h3(lastRelatedPhaseIndex + 1 | 0, PhaseContent_init_$Create$(phase, new After(reference)));
|
|
1705
|
+
};
|
|
1706
|
+
protoOf(Pipeline).h1p = function (reference, phase) {
|
|
1707
|
+
if (hasPhase(this, phase))
|
|
1708
|
+
return Unit_getInstance();
|
|
1709
|
+
var index = findPhaseIndex(this, reference);
|
|
1710
|
+
if (index === -1) {
|
|
1711
|
+
throw new InvalidPhaseException('Phase ' + reference + ' was not registered for this pipeline');
|
|
1712
|
+
}
|
|
1713
|
+
this.x1o_1.h3(index, PhaseContent_init_$Create$(phase, new Before(reference)));
|
|
1714
|
+
};
|
|
1715
|
+
protoOf(Pipeline).i1p = function (phase, block) {
|
|
1716
|
+
var tmp0_elvis_lhs = findPhase(this, phase);
|
|
1717
|
+
var tmp;
|
|
1718
|
+
if (tmp0_elvis_lhs == null) {
|
|
1719
|
+
throw new InvalidPhaseException('Phase ' + phase + ' was not registered for this pipeline');
|
|
1720
|
+
} else {
|
|
1721
|
+
tmp = tmp0_elvis_lhs;
|
|
1722
|
+
}
|
|
1723
|
+
var phaseContent = tmp;
|
|
1724
|
+
if (typeof block === 'function')
|
|
1725
|
+
block;
|
|
1726
|
+
else
|
|
1727
|
+
THROW_CCE();
|
|
1728
|
+
if (tryAddToPhaseFastPath(this, phase, block)) {
|
|
1729
|
+
var tmp1_this = this;
|
|
1730
|
+
var tmp2 = tmp1_this.y1o_1;
|
|
1731
|
+
tmp1_this.y1o_1 = tmp2 + 1 | 0;
|
|
1732
|
+
return Unit_getInstance();
|
|
1733
|
+
}
|
|
1734
|
+
phaseContent.r1o(block);
|
|
1735
|
+
var tmp3_this = this;
|
|
1736
|
+
var tmp4 = tmp3_this.y1o_1;
|
|
1737
|
+
tmp3_this.y1o_1 = tmp4 + 1 | 0;
|
|
1738
|
+
resetInterceptorsList(this);
|
|
1739
|
+
this.j1p();
|
|
1740
|
+
};
|
|
1741
|
+
protoOf(Pipeline).j1p = function () {
|
|
1742
|
+
};
|
|
1743
|
+
function PipelineContext(context) {
|
|
1744
|
+
this.e1p_1 = context;
|
|
1745
|
+
}
|
|
1746
|
+
function pipelineContextFor(context, interceptors, subject, coroutineContext, debugMode) {
|
|
1747
|
+
debugMode = debugMode === VOID ? false : debugMode;
|
|
1748
|
+
var tmp;
|
|
1749
|
+
if (get_DISABLE_SFG() ? true : debugMode) {
|
|
1750
|
+
tmp = new DebugPipelineContext(context, interceptors, subject, coroutineContext);
|
|
1751
|
+
} else {
|
|
1752
|
+
tmp = new SuspendFunctionGun(subject, context, interceptors);
|
|
1753
|
+
}
|
|
1754
|
+
return tmp;
|
|
1755
|
+
}
|
|
1756
|
+
function PipelinePhase(name) {
|
|
1757
|
+
this.u1o_1 = name;
|
|
1758
|
+
}
|
|
1759
|
+
protoOf(PipelinePhase).toString = function () {
|
|
1760
|
+
return "Phase('" + this.u1o_1 + "')";
|
|
1761
|
+
};
|
|
1762
|
+
function InvalidPhaseException(message) {
|
|
1763
|
+
extendThrowable(this, message);
|
|
1764
|
+
captureStack(this, InvalidPhaseException);
|
|
1765
|
+
}
|
|
1766
|
+
function After(relativeTo) {
|
|
1767
|
+
PipelinePhaseRelation.call(this);
|
|
1768
|
+
this.g1p_1 = relativeTo;
|
|
1769
|
+
}
|
|
1770
|
+
function Before(relativeTo) {
|
|
1771
|
+
PipelinePhaseRelation.call(this);
|
|
1772
|
+
this.k1p_1 = relativeTo;
|
|
1773
|
+
}
|
|
1774
|
+
function Last() {
|
|
1775
|
+
Last_instance = this;
|
|
1776
|
+
PipelinePhaseRelation.call(this);
|
|
1777
|
+
}
|
|
1778
|
+
var Last_instance;
|
|
1779
|
+
function Last_getInstance() {
|
|
1780
|
+
if (Last_instance == null)
|
|
1781
|
+
new Last();
|
|
1782
|
+
return Last_instance;
|
|
1783
|
+
}
|
|
1784
|
+
function PipelinePhaseRelation() {
|
|
1785
|
+
}
|
|
1786
|
+
function recoverStackTraceBridge(exception, continuation) {
|
|
1787
|
+
var tmp;
|
|
1788
|
+
try {
|
|
1789
|
+
tmp = withCause(recoverStackTrace(exception, continuation), exception.cause);
|
|
1790
|
+
} catch ($p) {
|
|
1791
|
+
var tmp_0;
|
|
1792
|
+
if ($p instanceof Error) {
|
|
1793
|
+
var _ = $p;
|
|
1794
|
+
tmp_0 = exception;
|
|
1795
|
+
} else {
|
|
1796
|
+
throw $p;
|
|
1797
|
+
}
|
|
1798
|
+
tmp = tmp_0;
|
|
1799
|
+
}
|
|
1800
|
+
return tmp;
|
|
1801
|
+
}
|
|
1802
|
+
function loop($this, direct) {
|
|
1803
|
+
do {
|
|
1804
|
+
var currentIndex = $this.r1p_1;
|
|
1805
|
+
if (currentIndex === $this.m1p_1.i()) {
|
|
1806
|
+
if (!direct) {
|
|
1807
|
+
var tmp$ret$0;
|
|
1808
|
+
// Inline function 'kotlin.Companion.success' call
|
|
1809
|
+
var tmp0_success = Companion_getInstance();
|
|
1810
|
+
var tmp1_success = $this.o1p_1;
|
|
1811
|
+
tmp$ret$0 = _Result___init__impl__xyqfz8(tmp1_success);
|
|
1812
|
+
resumeRootWith($this, tmp$ret$0);
|
|
1813
|
+
return false;
|
|
1814
|
+
}
|
|
1815
|
+
return true;
|
|
1816
|
+
}
|
|
1817
|
+
$this.r1p_1 = currentIndex + 1 | 0;
|
|
1818
|
+
var next = $this.m1p_1.k(currentIndex);
|
|
1819
|
+
try {
|
|
1820
|
+
var result = next($this, $this.o1p_1, $this.n1p_1);
|
|
1821
|
+
if (result === get_COROUTINE_SUSPENDED())
|
|
1822
|
+
return false;
|
|
1823
|
+
} catch ($p) {
|
|
1824
|
+
if ($p instanceof Error) {
|
|
1825
|
+
var cause = $p;
|
|
1826
|
+
var tmp$ret$1;
|
|
1827
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
1828
|
+
var tmp2_failure = Companion_getInstance();
|
|
1829
|
+
tmp$ret$1 = _Result___init__impl__xyqfz8(createFailure(cause));
|
|
1830
|
+
resumeRootWith($this, tmp$ret$1);
|
|
1831
|
+
return false;
|
|
1832
|
+
} else {
|
|
1833
|
+
throw $p;
|
|
1834
|
+
}
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
while (true);
|
|
1838
|
+
}
|
|
1839
|
+
function resumeRootWith($this, result) {
|
|
1840
|
+
if ($this.q1p_1 < 0) {
|
|
1841
|
+
// Inline function 'kotlin.error' call
|
|
1842
|
+
throw IllegalStateException_init_$Create$('No more continuations to resume');
|
|
1843
|
+
}
|
|
1844
|
+
var next = ensureNotNull($this.p1p_1[$this.q1p_1]);
|
|
1845
|
+
var tmp0_this = $this;
|
|
1846
|
+
var tmp1 = tmp0_this.q1p_1;
|
|
1847
|
+
tmp0_this.q1p_1 = tmp1 - 1 | 0;
|
|
1848
|
+
$this.p1p_1[tmp1] = null;
|
|
1849
|
+
if (!_Result___get_isFailure__impl__jpiriv(result)) {
|
|
1850
|
+
next.h6(result);
|
|
1851
|
+
} else {
|
|
1852
|
+
var exception = recoverStackTraceBridge(ensureNotNull(Result__exceptionOrNull_impl_p6xea9(result)), next);
|
|
1853
|
+
var tmp$ret$1;
|
|
1854
|
+
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
1855
|
+
var tmp$ret$0;
|
|
1856
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
1857
|
+
var tmp0_failure = Companion_getInstance();
|
|
1858
|
+
tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
1859
|
+
next.h6(tmp$ret$0);
|
|
1860
|
+
tmp$ret$1 = Unit_getInstance();
|
|
1861
|
+
}
|
|
1862
|
+
}
|
|
1863
|
+
function discardLastRootContinuation($this) {
|
|
1864
|
+
if ($this.q1p_1 < 0)
|
|
1865
|
+
throw IllegalStateException_init_$Create$('No more continuations to resume');
|
|
1866
|
+
var tmp0_this = $this;
|
|
1867
|
+
var tmp1 = tmp0_this.q1p_1;
|
|
1868
|
+
tmp0_this.q1p_1 = tmp1 - 1 | 0;
|
|
1869
|
+
$this.p1p_1[tmp1] = null;
|
|
1870
|
+
}
|
|
1871
|
+
function addContinuation($this, continuation) {
|
|
1872
|
+
var tmp0_this = $this;
|
|
1873
|
+
tmp0_this.q1p_1 = tmp0_this.q1p_1 + 1 | 0;
|
|
1874
|
+
$this.p1p_1[tmp0_this.q1p_1] = continuation;
|
|
1875
|
+
}
|
|
1876
|
+
function SuspendFunctionGun$continuation$1(this$0) {
|
|
1877
|
+
this.t1p_1 = this$0;
|
|
1878
|
+
this.s1p_1 = IntCompanionObject_getInstance().MIN_VALUE;
|
|
1879
|
+
}
|
|
1880
|
+
protoOf(SuspendFunctionGun$continuation$1).g6 = function () {
|
|
1881
|
+
var tmp0_safe_receiver = this.t1p_1.p1p_1[this.t1p_1.q1p_1];
|
|
1882
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g6();
|
|
1883
|
+
var tmp;
|
|
1884
|
+
if (tmp1_elvis_lhs == null) {
|
|
1885
|
+
throw IllegalStateException_init_$Create$('Not started');
|
|
1886
|
+
} else {
|
|
1887
|
+
tmp = tmp1_elvis_lhs;
|
|
1888
|
+
}
|
|
1889
|
+
return tmp;
|
|
1890
|
+
};
|
|
1891
|
+
protoOf(SuspendFunctionGun$continuation$1).u1p = function (result) {
|
|
1892
|
+
if (_Result___get_isFailure__impl__jpiriv(result)) {
|
|
1893
|
+
var tmp$ret$0;
|
|
1894
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
1895
|
+
var tmp0_failure = Companion_getInstance();
|
|
1896
|
+
var tmp1_failure = ensureNotNull(Result__exceptionOrNull_impl_p6xea9(result));
|
|
1897
|
+
tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(tmp1_failure));
|
|
1898
|
+
resumeRootWith(this.t1p_1, tmp$ret$0);
|
|
1899
|
+
return Unit_getInstance();
|
|
1900
|
+
}
|
|
1901
|
+
loop(this.t1p_1, false);
|
|
1902
|
+
};
|
|
1903
|
+
protoOf(SuspendFunctionGun$continuation$1).h6 = function (result) {
|
|
1904
|
+
return this.u1p(result);
|
|
1905
|
+
};
|
|
1906
|
+
function SuspendFunctionGun(initial, context, blocks) {
|
|
1907
|
+
PipelineContext.call(this, context);
|
|
1908
|
+
this.m1p_1 = blocks;
|
|
1909
|
+
var tmp = this;
|
|
1910
|
+
tmp.n1p_1 = new SuspendFunctionGun$continuation$1(this);
|
|
1911
|
+
this.o1p_1 = initial;
|
|
1912
|
+
var tmp_0 = this;
|
|
1913
|
+
var tmp$ret$0;
|
|
1914
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
1915
|
+
var tmp0_arrayOfNulls = this.m1p_1.i();
|
|
1916
|
+
tmp$ret$0 = fillArrayVal(Array(tmp0_arrayOfNulls), null);
|
|
1917
|
+
tmp_0.p1p_1 = tmp$ret$0;
|
|
1918
|
+
this.q1p_1 = -1;
|
|
1919
|
+
this.r1p_1 = 0;
|
|
1920
|
+
}
|
|
1921
|
+
protoOf(SuspendFunctionGun).sl = function () {
|
|
1922
|
+
return this.n1p_1.g6();
|
|
1923
|
+
};
|
|
1924
|
+
protoOf(SuspendFunctionGun).h1o = function () {
|
|
1925
|
+
return this.o1p_1;
|
|
1926
|
+
};
|
|
1927
|
+
protoOf(SuspendFunctionGun).j1o = function ($completion) {
|
|
1928
|
+
var tmp$ret$0;
|
|
1929
|
+
$l$block_0: {
|
|
1930
|
+
// Inline function 'io.ktor.util.pipeline.SuspendFunctionGun.proceed.<anonymous>' call
|
|
1931
|
+
var tmp0__anonymous__q1qw7t = $completion;
|
|
1932
|
+
if (this.r1p_1 === this.m1p_1.i()) {
|
|
1933
|
+
tmp$ret$0 = this.o1p_1;
|
|
1934
|
+
break $l$block_0;
|
|
1935
|
+
}
|
|
1936
|
+
addContinuation(this, intercepted(tmp0__anonymous__q1qw7t));
|
|
1937
|
+
if (loop(this, true)) {
|
|
1938
|
+
discardLastRootContinuation(this);
|
|
1939
|
+
tmp$ret$0 = this.o1p_1;
|
|
1940
|
+
break $l$block_0;
|
|
1941
|
+
}
|
|
1942
|
+
tmp$ret$0 = get_COROUTINE_SUSPENDED();
|
|
1943
|
+
}
|
|
1944
|
+
var tmp0 = tmp$ret$0;
|
|
1945
|
+
return tmp0;
|
|
1946
|
+
};
|
|
1947
|
+
protoOf(SuspendFunctionGun).i1o = function (subject, $completion) {
|
|
1948
|
+
this.o1p_1 = subject;
|
|
1949
|
+
var tmp0 = this.j1o($completion);
|
|
1950
|
+
return tmp0;
|
|
1951
|
+
};
|
|
1952
|
+
protoOf(SuspendFunctionGun).k1o = function (initial, $completion) {
|
|
1953
|
+
this.r1p_1 = 0;
|
|
1954
|
+
if (this.r1p_1 === this.m1p_1.i())
|
|
1955
|
+
return initial;
|
|
1956
|
+
this.o1p_1 = initial;
|
|
1957
|
+
if (this.q1p_1 >= 0)
|
|
1958
|
+
throw IllegalStateException_init_$Create$('Already started');
|
|
1959
|
+
var tmp0 = this.j1o($completion);
|
|
1960
|
+
return tmp0;
|
|
1961
|
+
};
|
|
1962
|
+
function TypeInfo(type, reifiedType, kotlinType) {
|
|
1963
|
+
kotlinType = kotlinType === VOID ? null : kotlinType;
|
|
1964
|
+
this.v1p_1 = type;
|
|
1965
|
+
this.w1p_1 = reifiedType;
|
|
1966
|
+
this.x1p_1 = kotlinType;
|
|
1967
|
+
}
|
|
1968
|
+
protoOf(TypeInfo).toString = function () {
|
|
1969
|
+
return 'TypeInfo(type=' + this.v1p_1 + ', reifiedType=' + this.w1p_1 + ', kotlinType=' + this.x1p_1 + ')';
|
|
1970
|
+
};
|
|
1971
|
+
protoOf(TypeInfo).hashCode = function () {
|
|
1972
|
+
var result = this.v1p_1.hashCode();
|
|
1973
|
+
result = imul(result, 31) + hashCode(this.w1p_1) | 0;
|
|
1974
|
+
result = imul(result, 31) + (this.x1p_1 == null ? 0 : hashCode(this.x1p_1)) | 0;
|
|
1975
|
+
return result;
|
|
1976
|
+
};
|
|
1977
|
+
protoOf(TypeInfo).equals = function (other) {
|
|
1978
|
+
if (this === other)
|
|
1979
|
+
return true;
|
|
1980
|
+
if (!(other instanceof TypeInfo))
|
|
1981
|
+
return false;
|
|
1982
|
+
var tmp0_other_with_cast = other instanceof TypeInfo ? other : THROW_CCE();
|
|
1983
|
+
if (!this.v1p_1.equals(tmp0_other_with_cast.v1p_1))
|
|
1984
|
+
return false;
|
|
1985
|
+
if (!equals(this.w1p_1, tmp0_other_with_cast.w1p_1))
|
|
1986
|
+
return false;
|
|
1987
|
+
if (!equals(this.x1p_1, tmp0_other_with_cast.x1p_1))
|
|
1988
|
+
return false;
|
|
1989
|
+
return true;
|
|
1990
|
+
};
|
|
1991
|
+
function AttributesJsFn(concurrent) {
|
|
1992
|
+
concurrent = concurrent === VOID ? false : concurrent;
|
|
1993
|
+
return new AttributesJs();
|
|
1994
|
+
}
|
|
1995
|
+
function AttributesJs() {
|
|
1996
|
+
var tmp = this;
|
|
1997
|
+
var tmp$ret$0;
|
|
1998
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
1999
|
+
tmp$ret$0 = LinkedHashMap_init_$Create$();
|
|
2000
|
+
tmp.y1p_1 = tmp$ret$0;
|
|
2001
|
+
}
|
|
2002
|
+
protoOf(AttributesJs).l1k = function (key) {
|
|
2003
|
+
var tmp = this.y1p_1.p2(key);
|
|
2004
|
+
return (tmp == null ? true : isObject(tmp)) ? tmp : THROW_CCE();
|
|
2005
|
+
};
|
|
2006
|
+
protoOf(AttributesJs).m1k = function (key) {
|
|
2007
|
+
return this.y1p_1.j2(key);
|
|
2008
|
+
};
|
|
2009
|
+
protoOf(AttributesJs).n1k = function (key, value) {
|
|
2010
|
+
// Inline function 'kotlin.collections.set' call
|
|
2011
|
+
var tmp0_set = this.y1p_1;
|
|
2012
|
+
tmp0_set.i4(key, value);
|
|
2013
|
+
};
|
|
2014
|
+
protoOf(AttributesJs).o1k = function (key) {
|
|
2015
|
+
this.y1p_1.j4(key);
|
|
2016
|
+
};
|
|
2017
|
+
protoOf(AttributesJs).p1k = function (key, block) {
|
|
2018
|
+
var tmp0_safe_receiver = this.y1p_1.p2(key);
|
|
2019
|
+
if (tmp0_safe_receiver == null)
|
|
2020
|
+
null;
|
|
2021
|
+
else {
|
|
2022
|
+
var tmp$ret$0;
|
|
2023
|
+
// Inline function 'kotlin.let' call
|
|
2024
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2025
|
+
return isObject(tmp0_safe_receiver) ? tmp0_safe_receiver : THROW_CCE();
|
|
2026
|
+
}
|
|
2027
|
+
var tmp$ret$1;
|
|
2028
|
+
// Inline function 'kotlin.also' call
|
|
2029
|
+
var tmp0_also = block();
|
|
2030
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2031
|
+
// Inline function 'io.ktor.util.AttributesJs.computeIfAbsent.<anonymous>' call
|
|
2032
|
+
// Inline function 'kotlin.collections.set' call
|
|
2033
|
+
var tmp0_set = this.y1p_1;
|
|
2034
|
+
tmp0_set.i4(key, tmp0_also);
|
|
2035
|
+
tmp$ret$1 = tmp0_also;
|
|
2036
|
+
return tmp$ret$1;
|
|
2037
|
+
};
|
|
2038
|
+
protoOf(AttributesJs).q1k = function () {
|
|
2039
|
+
return toList(this.y1p_1.q2());
|
|
2040
|
+
};
|
|
2041
|
+
function unmodifiable(_this__u8e3s4) {
|
|
2042
|
+
return _this__u8e3s4;
|
|
2043
|
+
}
|
|
2044
|
+
function get_platform(_this__u8e3s4) {
|
|
2045
|
+
var tmp = typeof process !== 'undefined' && process.versions != null && process.versions.node != null || (typeof window !== 'undefined' && typeof window.process !== 'undefined' && window.process.versions != null && window.process.versions.node != null);
|
|
2046
|
+
var hasNodeApi = (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
|
|
2047
|
+
return hasNodeApi ? Platform_Node_getInstance() : Platform_Browser_getInstance();
|
|
2048
|
+
}
|
|
2049
|
+
function get_isDevelopmentMode(_this__u8e3s4) {
|
|
2050
|
+
return false;
|
|
2051
|
+
}
|
|
2052
|
+
function get_isNewMemoryModel(_this__u8e3s4) {
|
|
2053
|
+
return true;
|
|
2054
|
+
}
|
|
2055
|
+
function GMTDate_0(timestamp) {
|
|
2056
|
+
timestamp = timestamp === VOID ? null : timestamp;
|
|
2057
|
+
var tmp0_safe_receiver = timestamp;
|
|
2058
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tf();
|
|
2059
|
+
var tmp;
|
|
2060
|
+
if (tmp1_safe_receiver == null) {
|
|
2061
|
+
tmp = null;
|
|
2062
|
+
} else {
|
|
2063
|
+
var tmp$ret$1;
|
|
2064
|
+
// Inline function 'kotlin.let' call
|
|
2065
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2066
|
+
var tmp$ret$0;
|
|
2067
|
+
// Inline function 'io.ktor.util.date.GMTDate.<anonymous>' call
|
|
2068
|
+
tmp$ret$0 = new Date(tmp1_safe_receiver);
|
|
2069
|
+
tmp$ret$1 = tmp$ret$0;
|
|
2070
|
+
tmp = tmp$ret$1;
|
|
2071
|
+
}
|
|
2072
|
+
var tmp2_elvis_lhs = tmp;
|
|
2073
|
+
var date = tmp2_elvis_lhs == null ? new Date() : tmp2_elvis_lhs;
|
|
2074
|
+
if (isNaN_0(date.getTime()))
|
|
2075
|
+
throw new InvalidTimestampException(ensureNotNull(timestamp));
|
|
2076
|
+
var tmp$ret$2;
|
|
2077
|
+
// Inline function 'kotlin.with' call
|
|
2078
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
2079
|
+
var dayOfWeek = Companion_getInstance_1().i1n((date.getUTCDay() + 6 | 0) % 7 | 0);
|
|
2080
|
+
var month = Companion_getInstance_2().i1n(date.getUTCMonth());
|
|
2081
|
+
return new GMTDate(date.getUTCSeconds(), date.getUTCMinutes(), date.getUTCHours(), dayOfWeek, date.getUTCDate(), date.getUTCFullYear(), month, date.getUTCFullYear(), numberToLong(date.getTime()));
|
|
2082
|
+
}
|
|
2083
|
+
function InvalidTimestampException(timestamp) {
|
|
2084
|
+
IllegalStateException_init_$Init$('Invalid date timestamp exception: ' + toString_0(timestamp), this);
|
|
2085
|
+
captureStack(this, InvalidTimestampException);
|
|
2086
|
+
}
|
|
2087
|
+
function KtorSimpleLogger(name) {
|
|
2088
|
+
return new KtorSimpleLogger$1();
|
|
2089
|
+
}
|
|
2090
|
+
function KtorSimpleLogger$1() {
|
|
2091
|
+
}
|
|
2092
|
+
protoOf(KtorSimpleLogger$1).z1p = function (message) {
|
|
2093
|
+
console.debug('TRACE: ' + message);
|
|
2094
|
+
};
|
|
2095
|
+
function get_DISABLE_SFG() {
|
|
2096
|
+
return DISABLE_SFG;
|
|
2097
|
+
}
|
|
2098
|
+
var DISABLE_SFG;
|
|
2099
|
+
function withCause(_this__u8e3s4, cause) {
|
|
2100
|
+
return _this__u8e3s4;
|
|
2101
|
+
}
|
|
2102
|
+
function instanceOf(_this__u8e3s4, type) {
|
|
2103
|
+
return type.xf(_this__u8e3s4);
|
|
2104
|
+
}
|
|
2105
|
+
function typeInfoImpl(reifiedType, kClass, kType) {
|
|
2106
|
+
return new TypeInfo(kClass, reifiedType, kType);
|
|
2107
|
+
}
|
|
2108
|
+
function JsType() {
|
|
2109
|
+
JsType_instance = this;
|
|
2110
|
+
}
|
|
2111
|
+
var JsType_instance;
|
|
2112
|
+
function JsType_getInstance() {
|
|
2113
|
+
if (JsType_instance == null)
|
|
2114
|
+
new JsType();
|
|
2115
|
+
return JsType_instance;
|
|
2116
|
+
}
|
|
2117
|
+
//region block: post-declaration
|
|
2118
|
+
protoOf(_no_name_provided__qut3iv).k6 = get;
|
|
2119
|
+
protoOf(_no_name_provided__qut3iv).q6 = fold;
|
|
2120
|
+
protoOf(_no_name_provided__qut3iv).p6 = minusKey;
|
|
2121
|
+
protoOf(_no_name_provided__qut3iv).r6 = plus;
|
|
2122
|
+
protoOf(AttributesJs).k1k = get_0;
|
|
2123
|
+
//endregion
|
|
2124
|
+
//region block: init
|
|
2125
|
+
DISABLE_SFG = false;
|
|
2126
|
+
//endregion
|
|
2127
|
+
//region block: exports
|
|
2128
|
+
_.$_$ = _.$_$ || {};
|
|
2129
|
+
_.$_$.a = toByteArray;
|
|
2130
|
+
_.$_$.b = JsType_getInstance;
|
|
2131
|
+
_.$_$.c = PlatformUtils_getInstance;
|
|
2132
|
+
_.$_$.d = CopyOnWriteHashMap;
|
|
2133
|
+
_.$_$.e = GMTDate_0;
|
|
2134
|
+
_.$_$.f = KtorSimpleLogger;
|
|
2135
|
+
_.$_$.g = PipelineContext;
|
|
2136
|
+
_.$_$.h = PipelinePhase;
|
|
2137
|
+
_.$_$.i = Pipeline;
|
|
2138
|
+
_.$_$.j = instanceOf;
|
|
2139
|
+
_.$_$.k = typeInfoImpl;
|
|
2140
|
+
_.$_$.l = AttributeKey;
|
|
2141
|
+
_.$_$.m = AttributesJsFn;
|
|
2142
|
+
_.$_$.n = SilentSupervisor;
|
|
2143
|
+
_.$_$.o = forEach;
|
|
2144
|
+
_.$_$.p = get_1;
|
|
2145
|
+
_.$_$.q = StringValuesBuilderImpl;
|
|
2146
|
+
_.$_$.r = StringValuesImpl;
|
|
2147
|
+
_.$_$.s = StringValues;
|
|
2148
|
+
_.$_$.t = appendAll;
|
|
2149
|
+
_.$_$.u = flattenEntries;
|
|
2150
|
+
_.$_$.v = isLowerCase;
|
|
2151
|
+
_.$_$.w = get_platform;
|
|
2152
|
+
_.$_$.x = putAll;
|
|
2153
|
+
_.$_$.y = toCharArray;
|
|
2154
|
+
_.$_$.z = toLowerCasePreservingASCIIRules;
|
|
2155
|
+
//endregion
|
|
2156
|
+
return _;
|
|
2157
|
+
}(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./ktor-ktor-io.js'), require('./kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js'), require('./88b0986a7186d029-atomicfu-js-ir.js')));
|
|
2158
|
+
|
|
2159
|
+
//# sourceMappingURL=ktor-ktor-utils.js.map
|