@doordeck/doordeck-headless-sdk 0.155.0 → 0.156.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kermit-kermit-core.js +5 -5
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +1 -1
- package/kotlin/doordeck-sdk.js +3768 -3768
- package/kotlin/kotlin-kotlin-stdlib.js +7 -7
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1671 -1671
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +306 -306
- package/kotlin/ktor-ktor-client-auth.js +52 -52
- package/kotlin/ktor-ktor-client-content-negotiation.js +43 -43
- package/kotlin/ktor-ktor-client-core.js +1568 -1578
- package/kotlin/ktor-ktor-client-logging.js +200 -200
- package/kotlin/ktor-ktor-events.js +5 -5
- package/kotlin/ktor-ktor-http-cio.js +314 -314
- package/kotlin/ktor-ktor-http.js +685 -683
- package/kotlin/ktor-ktor-io.js +468 -463
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +1 -1
- package/kotlin/ktor-ktor-serialization-kotlinx.js +17 -17
- package/kotlin/ktor-ktor-serialization.js +6 -6
- package/kotlin/ktor-ktor-utils.js +635 -635
- package/kotlin/ktor-ktor-websockets.js +36 -36
- package/package.json +2 -2
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
var ProducerScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.k;
|
|
57
57
|
var isInterface = kotlin_kotlin.$_$.ob;
|
|
58
58
|
var counted = kotlin_io_ktor_ktor_io.$_$.p1;
|
|
59
|
-
var writer = kotlin_io_ktor_ktor_io.$_$.
|
|
59
|
+
var writer = kotlin_io_ktor_ktor_io.$_$.t1;
|
|
60
60
|
var readRemaining = kotlin_io_ktor_ktor_io.$_$.f;
|
|
61
61
|
var get_remaining = kotlin_io_ktor_ktor_io.$_$.b1;
|
|
62
62
|
var compare = kotlin_kotlin.$_$.p9;
|
|
@@ -136,12 +136,12 @@
|
|
|
136
136
|
//endregion
|
|
137
137
|
function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
|
|
138
138
|
formFieldLimit = formFieldLimit === VOID ? new Long(65536, 0) : formFieldLimit;
|
|
139
|
-
this.
|
|
140
|
-
this.
|
|
141
|
-
this.
|
|
139
|
+
this.g34_1 = coroutineContext;
|
|
140
|
+
this.h34_1 = null;
|
|
141
|
+
this.i34_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
|
|
142
142
|
}
|
|
143
143
|
protoOf(CIOMultipartDataBase).ws = function () {
|
|
144
|
-
return this.
|
|
144
|
+
return this.g34_1;
|
|
145
145
|
};
|
|
146
146
|
function get_IntArrayPool() {
|
|
147
147
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
@@ -154,103 +154,103 @@
|
|
|
154
154
|
}
|
|
155
155
|
var HeadersDataPool;
|
|
156
156
|
function thresholdReached($this) {
|
|
157
|
-
return $this.
|
|
157
|
+
return $this.k34_1 >= $this.l34_1 * 0.75;
|
|
158
158
|
}
|
|
159
159
|
function resize($this) {
|
|
160
|
-
var prevSize = $this.
|
|
161
|
-
var prevData = $this.
|
|
162
|
-
$this.
|
|
163
|
-
$this.
|
|
160
|
+
var prevSize = $this.k34_1;
|
|
161
|
+
var prevData = $this.m34_1;
|
|
162
|
+
$this.k34_1 = 0;
|
|
163
|
+
$this.l34_1 = imul($this.l34_1, 2) | 128;
|
|
164
164
|
var tmp = $this;
|
|
165
165
|
// Inline function 'kotlin.apply' call
|
|
166
|
-
var this_0 = get_HeadersDataPool().
|
|
167
|
-
this_0.
|
|
168
|
-
tmp.
|
|
169
|
-
var _iterator__ex2g4s = prevData.
|
|
166
|
+
var this_0 = get_HeadersDataPool().t1w();
|
|
167
|
+
this_0.p34(imul(prevData.o34(), 2) | 1);
|
|
168
|
+
tmp.m34_1 = this_0;
|
|
169
|
+
var _iterator__ex2g4s = prevData.q34().r();
|
|
170
170
|
while (_iterator__ex2g4s.s()) {
|
|
171
171
|
var headerOffset = _iterator__ex2g4s.t();
|
|
172
|
-
$this.
|
|
172
|
+
$this.s34(prevData.r34(headerOffset + 1 | 0), prevData.r34(headerOffset + 2 | 0), prevData.r34(headerOffset + 3 | 0), prevData.r34(headerOffset + 4 | 0));
|
|
173
173
|
}
|
|
174
|
-
get_HeadersDataPool().
|
|
174
|
+
get_HeadersDataPool().u1w(prevData);
|
|
175
175
|
// Inline function 'kotlin.require' call
|
|
176
176
|
// Inline function 'kotlin.require' call
|
|
177
|
-
if (!(prevSize === $this.
|
|
177
|
+
if (!(prevSize === $this.k34_1)) {
|
|
178
178
|
var message = 'Failed requirement.';
|
|
179
179
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
function headerHasName($this, name, headerOffset) {
|
|
183
|
-
var nameStartIndex = $this.
|
|
184
|
-
var nameEndIndex = $this.
|
|
185
|
-
return equalsLowerCase($this.
|
|
183
|
+
var nameStartIndex = $this.m34_1.r34(headerOffset + 1 | 0);
|
|
184
|
+
var nameEndIndex = $this.m34_1.r34(headerOffset + 2 | 0);
|
|
185
|
+
return equalsLowerCase($this.j34_1, nameStartIndex, nameEndIndex, name);
|
|
186
186
|
}
|
|
187
187
|
function HttpHeadersMap(builder) {
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
190
|
-
this.
|
|
191
|
-
this.
|
|
188
|
+
this.j34_1 = builder;
|
|
189
|
+
this.k34_1 = 0;
|
|
190
|
+
this.l34_1 = 0;
|
|
191
|
+
this.m34_1 = get_HeadersDataPool().t1w();
|
|
192
192
|
}
|
|
193
|
-
protoOf(HttpHeadersMap).
|
|
194
|
-
if (this.
|
|
193
|
+
protoOf(HttpHeadersMap).r2k = function (name) {
|
|
194
|
+
if (this.k34_1 === 0)
|
|
195
195
|
return null;
|
|
196
196
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
197
197
|
var this_0 = hashCodeLowerCase(name);
|
|
198
198
|
var hash = abs(this_0);
|
|
199
|
-
var headerIndex = hash % this.
|
|
200
|
-
while (!(this.
|
|
199
|
+
var headerIndex = hash % this.l34_1 | 0;
|
|
200
|
+
while (!(this.m34_1.r34(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
201
201
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
202
|
-
return this.
|
|
202
|
+
return this.t34(imul(headerIndex, 6));
|
|
203
203
|
}
|
|
204
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
204
|
+
headerIndex = (headerIndex + 1 | 0) % this.l34_1 | 0;
|
|
205
205
|
}
|
|
206
206
|
return null;
|
|
207
207
|
};
|
|
208
|
-
protoOf(HttpHeadersMap).
|
|
209
|
-
return this.
|
|
208
|
+
protoOf(HttpHeadersMap).u34 = function () {
|
|
209
|
+
return this.m34_1.q34();
|
|
210
210
|
};
|
|
211
|
-
protoOf(HttpHeadersMap).
|
|
211
|
+
protoOf(HttpHeadersMap).s34 = function (nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
|
|
212
212
|
if (thresholdReached(this)) {
|
|
213
213
|
resize(this);
|
|
214
214
|
}
|
|
215
215
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
216
|
-
var this_0 = hashCodeLowerCase(this.
|
|
216
|
+
var this_0 = hashCodeLowerCase(this.j34_1, nameStartIndex, nameEndIndex);
|
|
217
217
|
var hash = abs(this_0);
|
|
218
|
-
var name = this.
|
|
219
|
-
var headerIndex = hash % this.
|
|
218
|
+
var name = this.j34_1.c(nameStartIndex, nameEndIndex);
|
|
219
|
+
var headerIndex = hash % this.l34_1 | 0;
|
|
220
220
|
var sameNameHeaderIndex = -1;
|
|
221
|
-
while (!(this.
|
|
221
|
+
while (!(this.m34_1.r34(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
222
222
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
223
223
|
sameNameHeaderIndex = headerIndex;
|
|
224
224
|
}
|
|
225
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
225
|
+
headerIndex = (headerIndex + 1 | 0) % this.l34_1 | 0;
|
|
226
226
|
}
|
|
227
227
|
var headerOffset = imul(headerIndex, 6);
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
230
|
-
this.
|
|
231
|
-
this.
|
|
232
|
-
this.
|
|
233
|
-
this.
|
|
228
|
+
this.m34_1.c35(headerOffset + 0 | 0, hash);
|
|
229
|
+
this.m34_1.c35(headerOffset + 1 | 0, nameStartIndex);
|
|
230
|
+
this.m34_1.c35(headerOffset + 2 | 0, nameEndIndex);
|
|
231
|
+
this.m34_1.c35(headerOffset + 3 | 0, valueStartIndex);
|
|
232
|
+
this.m34_1.c35(headerOffset + 4 | 0, valueEndIndex);
|
|
233
|
+
this.m34_1.c35(headerOffset + 5 | 0, -1);
|
|
234
234
|
if (!(sameNameHeaderIndex === -1)) {
|
|
235
|
-
this.
|
|
235
|
+
this.m34_1.c35(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
|
|
236
236
|
}
|
|
237
|
-
this.
|
|
237
|
+
this.k34_1 = this.k34_1 + 1 | 0;
|
|
238
238
|
};
|
|
239
|
-
protoOf(HttpHeadersMap).
|
|
240
|
-
var nameStartIndex = this.
|
|
241
|
-
var nameEndIndex = this.
|
|
242
|
-
return this.
|
|
239
|
+
protoOf(HttpHeadersMap).d35 = function (headerOffset) {
|
|
240
|
+
var nameStartIndex = this.m34_1.r34(headerOffset + 1 | 0);
|
|
241
|
+
var nameEndIndex = this.m34_1.r34(headerOffset + 2 | 0);
|
|
242
|
+
return this.j34_1.c(nameStartIndex, nameEndIndex);
|
|
243
243
|
};
|
|
244
|
-
protoOf(HttpHeadersMap).
|
|
245
|
-
var valueStartIndex = this.
|
|
246
|
-
var valueEndIndex = this.
|
|
247
|
-
return this.
|
|
244
|
+
protoOf(HttpHeadersMap).t34 = function (headerOffset) {
|
|
245
|
+
var valueStartIndex = this.m34_1.r34(headerOffset + 3 | 0);
|
|
246
|
+
var valueEndIndex = this.m34_1.r34(headerOffset + 4 | 0);
|
|
247
|
+
return this.j34_1.c(valueStartIndex, valueEndIndex);
|
|
248
248
|
};
|
|
249
249
|
protoOf(HttpHeadersMap).n1h = function () {
|
|
250
|
-
this.
|
|
251
|
-
this.
|
|
252
|
-
get_HeadersDataPool().
|
|
253
|
-
this.
|
|
250
|
+
this.k34_1 = 0;
|
|
251
|
+
this.l34_1 = 0;
|
|
252
|
+
get_HeadersDataPool().u1w(this.m34_1);
|
|
253
|
+
this.m34_1 = get_HeadersDataPool().t1w();
|
|
254
254
|
};
|
|
255
255
|
protoOf(HttpHeadersMap).toString = function () {
|
|
256
256
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -260,17 +260,17 @@
|
|
|
260
260
|
return this_0.toString();
|
|
261
261
|
};
|
|
262
262
|
function HeadersData$headersStarts$slambda(this$0, resultContinuation) {
|
|
263
|
-
this.
|
|
263
|
+
this.m35_1 = this$0;
|
|
264
264
|
CoroutineImpl.call(this, resultContinuation);
|
|
265
265
|
}
|
|
266
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
267
|
-
var tmp = this.
|
|
266
|
+
protoOf(HeadersData$headersStarts$slambda).s35 = function ($this$sequence, $completion) {
|
|
267
|
+
var tmp = this.t35($this$sequence, $completion);
|
|
268
268
|
tmp.w8_1 = Unit_instance;
|
|
269
269
|
tmp.x8_1 = null;
|
|
270
270
|
return tmp.c9();
|
|
271
271
|
};
|
|
272
272
|
protoOf(HeadersData$headersStarts$slambda).o9 = function (p1, $completion) {
|
|
273
|
-
return this.
|
|
273
|
+
return this.s35(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
274
274
|
};
|
|
275
275
|
protoOf(HeadersData$headersStarts$slambda).c9 = function () {
|
|
276
276
|
var suspendResult = this.w8_1;
|
|
@@ -280,29 +280,29 @@
|
|
|
280
280
|
switch (tmp) {
|
|
281
281
|
case 0:
|
|
282
282
|
this.v8_1 = 7;
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
283
|
+
this.o35_1 = 0;
|
|
284
|
+
this.r35_1 = this.m35_1.n34_1.r();
|
|
285
285
|
this.u8_1 = 1;
|
|
286
286
|
continue $sm;
|
|
287
287
|
case 1:
|
|
288
|
-
if (!this.
|
|
288
|
+
if (!this.r35_1.s()) {
|
|
289
289
|
this.u8_1 = 6;
|
|
290
290
|
continue $sm;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
293
|
+
this.q35_1 = this.r35_1.t();
|
|
294
|
+
this.p35_1 = 0;
|
|
295
295
|
this.u8_1 = 2;
|
|
296
296
|
continue $sm;
|
|
297
297
|
case 2:
|
|
298
|
-
if (!(this.
|
|
298
|
+
if (!(this.p35_1 < this.q35_1.length)) {
|
|
299
299
|
this.u8_1 = 5;
|
|
300
300
|
continue $sm;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
if (!(this.
|
|
303
|
+
if (!(this.m35_1.r34(this.o35_1 + 0 | 0) === -1)) {
|
|
304
304
|
this.u8_1 = 3;
|
|
305
|
-
suspendResult = this.
|
|
305
|
+
suspendResult = this.n35_1.og(this.o35_1, this);
|
|
306
306
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
307
307
|
return suspendResult;
|
|
308
308
|
}
|
|
@@ -316,8 +316,8 @@
|
|
|
316
316
|
this.u8_1 = 4;
|
|
317
317
|
continue $sm;
|
|
318
318
|
case 4:
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
319
|
+
this.p35_1 = this.p35_1 + 6 | 0;
|
|
320
|
+
this.o35_1 = this.o35_1 + 6 | 0;
|
|
321
321
|
this.u8_1 = 2;
|
|
322
322
|
continue $sm;
|
|
323
323
|
case 5:
|
|
@@ -339,15 +339,15 @@
|
|
|
339
339
|
}
|
|
340
340
|
while (true);
|
|
341
341
|
};
|
|
342
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
343
|
-
var i = new HeadersData$headersStarts$slambda(this.
|
|
344
|
-
i.
|
|
342
|
+
protoOf(HeadersData$headersStarts$slambda).t35 = function ($this$sequence, completion) {
|
|
343
|
+
var i = new HeadersData$headersStarts$slambda(this.m35_1, completion);
|
|
344
|
+
i.n35_1 = $this$sequence;
|
|
345
345
|
return i;
|
|
346
346
|
};
|
|
347
347
|
function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
348
348
|
var i = new HeadersData$headersStarts$slambda(this$0, resultContinuation);
|
|
349
349
|
var l = function ($this$sequence, $completion) {
|
|
350
|
-
return i.
|
|
350
|
+
return i.s35($this$sequence, $completion);
|
|
351
351
|
};
|
|
352
352
|
l.$arity = 1;
|
|
353
353
|
return l;
|
|
@@ -355,55 +355,55 @@
|
|
|
355
355
|
function HeadersData() {
|
|
356
356
|
var tmp = this;
|
|
357
357
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
358
|
-
tmp.
|
|
358
|
+
tmp.n34_1 = ArrayList_init_$Create$();
|
|
359
359
|
}
|
|
360
|
-
protoOf(HeadersData).
|
|
361
|
-
return this.
|
|
360
|
+
protoOf(HeadersData).o34 = function () {
|
|
361
|
+
return this.n34_1.u();
|
|
362
362
|
};
|
|
363
|
-
protoOf(HeadersData).
|
|
363
|
+
protoOf(HeadersData).p34 = function (subArraysCount) {
|
|
364
364
|
// Inline function 'kotlin.repeat' call
|
|
365
365
|
var inductionVariable = 0;
|
|
366
366
|
if (inductionVariable < subArraysCount)
|
|
367
367
|
do {
|
|
368
368
|
var index = inductionVariable;
|
|
369
369
|
inductionVariable = inductionVariable + 1 | 0;
|
|
370
|
-
this.
|
|
370
|
+
this.n34_1.p(get_IntArrayPool().t1w());
|
|
371
371
|
}
|
|
372
372
|
while (inductionVariable < subArraysCount);
|
|
373
373
|
};
|
|
374
|
-
protoOf(HeadersData).
|
|
375
|
-
return this.
|
|
374
|
+
protoOf(HeadersData).r34 = function (index) {
|
|
375
|
+
return this.n34_1.v(index / 768 | 0)[index % 768 | 0];
|
|
376
376
|
};
|
|
377
|
-
protoOf(HeadersData).
|
|
378
|
-
this.
|
|
377
|
+
protoOf(HeadersData).c35 = function (index, value) {
|
|
378
|
+
this.n34_1.v(index / 768 | 0)[index % 768 | 0] = value;
|
|
379
379
|
};
|
|
380
|
-
protoOf(HeadersData).
|
|
380
|
+
protoOf(HeadersData).q34 = function () {
|
|
381
381
|
return sequence(HeadersData$headersStarts$slambda_0(this, null));
|
|
382
382
|
};
|
|
383
383
|
protoOf(HeadersData).n1h = function () {
|
|
384
|
-
var _iterator__ex2g4s = this.
|
|
384
|
+
var _iterator__ex2g4s = this.n34_1.r();
|
|
385
385
|
while (_iterator__ex2g4s.s()) {
|
|
386
386
|
var array = _iterator__ex2g4s.t();
|
|
387
|
-
get_IntArrayPool().
|
|
387
|
+
get_IntArrayPool().u1w(array);
|
|
388
388
|
}
|
|
389
|
-
this.
|
|
389
|
+
this.n34_1.b2();
|
|
390
390
|
};
|
|
391
391
|
function dumpTo(_this__u8e3s4, indent, out) {
|
|
392
392
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
393
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
393
|
+
var _iterator__ex2g4s = _this__u8e3s4.u34().r();
|
|
394
394
|
while (_iterator__ex2g4s.s()) {
|
|
395
395
|
var offset = _iterator__ex2g4s.t();
|
|
396
396
|
out.q(indent);
|
|
397
|
-
out.q(_this__u8e3s4.
|
|
397
|
+
out.q(_this__u8e3s4.d35(offset));
|
|
398
398
|
out.q(' => ');
|
|
399
|
-
out.q(_this__u8e3s4.
|
|
399
|
+
out.q(_this__u8e3s4.t34(offset));
|
|
400
400
|
out.q('\n');
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
function IntArrayPool$1() {
|
|
404
404
|
DefaultPool.call(this, 1000);
|
|
405
405
|
}
|
|
406
|
-
protoOf(IntArrayPool$1).
|
|
406
|
+
protoOf(IntArrayPool$1).m1w = function () {
|
|
407
407
|
var tmp = 0;
|
|
408
408
|
var tmp_0 = new Int32Array(768);
|
|
409
409
|
while (tmp < 768) {
|
|
@@ -412,25 +412,25 @@
|
|
|
412
412
|
}
|
|
413
413
|
return tmp_0;
|
|
414
414
|
};
|
|
415
|
-
protoOf(IntArrayPool$1).
|
|
415
|
+
protoOf(IntArrayPool$1).x35 = function (instance) {
|
|
416
416
|
fill(instance, -1);
|
|
417
|
-
return protoOf(DefaultPool).
|
|
417
|
+
return protoOf(DefaultPool).r1w.call(this, instance);
|
|
418
418
|
};
|
|
419
|
-
protoOf(IntArrayPool$1).
|
|
420
|
-
return this.
|
|
419
|
+
protoOf(IntArrayPool$1).r1w = function (instance) {
|
|
420
|
+
return this.x35(isIntArray(instance) ? instance : THROW_CCE());
|
|
421
421
|
};
|
|
422
422
|
function HeadersDataPool$1() {
|
|
423
423
|
DefaultPool.call(this, 1000);
|
|
424
424
|
}
|
|
425
|
-
protoOf(HeadersDataPool$1).
|
|
425
|
+
protoOf(HeadersDataPool$1).m1w = function () {
|
|
426
426
|
return new HeadersData();
|
|
427
427
|
};
|
|
428
|
-
protoOf(HeadersDataPool$1).
|
|
428
|
+
protoOf(HeadersDataPool$1).b36 = function (instance) {
|
|
429
429
|
instance.n1h();
|
|
430
|
-
return protoOf(DefaultPool).
|
|
430
|
+
return protoOf(DefaultPool).r1w.call(this, instance);
|
|
431
431
|
};
|
|
432
|
-
protoOf(HeadersDataPool$1).
|
|
433
|
-
return this.
|
|
432
|
+
protoOf(HeadersDataPool$1).r1w = function (instance) {
|
|
433
|
+
return this.b36(instance instanceof HeadersData ? instance : THROW_CCE());
|
|
434
434
|
};
|
|
435
435
|
var properties_initialized_HttpHeadersMap_kt_kotj4w;
|
|
436
436
|
function _init_properties_HttpHeadersMap_kt__hwatby() {
|
|
@@ -460,16 +460,16 @@
|
|
|
460
460
|
}
|
|
461
461
|
function parseHeaderName(text, range) {
|
|
462
462
|
_init_properties_HttpParser_kt__gbdom1();
|
|
463
|
-
var index = range.
|
|
464
|
-
var end = range.
|
|
463
|
+
var index = range.p36_1;
|
|
464
|
+
var end = range.q36_1;
|
|
465
465
|
while (index < end) {
|
|
466
466
|
var ch = text.b(index);
|
|
467
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
468
|
-
range.
|
|
467
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.p36_1)) {
|
|
468
|
+
range.p36_1 = index + 1 | 0;
|
|
469
469
|
return index;
|
|
470
470
|
}
|
|
471
471
|
if (isDelimiter(ch)) {
|
|
472
|
-
parseHeaderNameFailed(text, index, range.
|
|
472
|
+
parseHeaderNameFailed(text, index, range.p36_1, ch);
|
|
473
473
|
}
|
|
474
474
|
index = index + 1 | 0;
|
|
475
475
|
}
|
|
@@ -477,12 +477,12 @@
|
|
|
477
477
|
}
|
|
478
478
|
function parseHeaderValue(text, range) {
|
|
479
479
|
_init_properties_HttpParser_kt__gbdom1();
|
|
480
|
-
var start = range.
|
|
481
|
-
var end = range.
|
|
480
|
+
var start = range.p36_1;
|
|
481
|
+
var end = range.q36_1;
|
|
482
482
|
var index = start;
|
|
483
483
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
484
484
|
if (index >= end) {
|
|
485
|
-
range.
|
|
485
|
+
range.p36_1 = end;
|
|
486
486
|
return Unit_instance;
|
|
487
487
|
}
|
|
488
488
|
var valueStart = index;
|
|
@@ -496,8 +496,8 @@
|
|
|
496
496
|
valueLastIndex = index;
|
|
497
497
|
index = index + 1 | 0;
|
|
498
498
|
}
|
|
499
|
-
range.
|
|
500
|
-
range.
|
|
499
|
+
range.p36_1 = valueStart;
|
|
500
|
+
range.q36_1 = valueLastIndex + 1 | 0;
|
|
501
501
|
}
|
|
502
502
|
function validateHostHeader(host) {
|
|
503
503
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -538,9 +538,9 @@
|
|
|
538
538
|
}
|
|
539
539
|
function noColonFound(text, range) {
|
|
540
540
|
_init_properties_HttpParser_kt__gbdom1();
|
|
541
|
-
var tmp2 = range.
|
|
541
|
+
var tmp2 = range.p36_1;
|
|
542
542
|
// Inline function 'kotlin.text.substring' call
|
|
543
|
-
var endIndex = range.
|
|
543
|
+
var endIndex = range.q36_1;
|
|
544
544
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
545
545
|
throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
546
546
|
}
|
|
@@ -556,9 +556,9 @@
|
|
|
556
556
|
}
|
|
557
557
|
function $parseHeadersCOROUTINE$(input, builder, range, resultContinuation) {
|
|
558
558
|
CoroutineImpl.call(this, resultContinuation);
|
|
559
|
-
this.
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
559
|
+
this.k36_1 = input;
|
|
560
|
+
this.l36_1 = builder;
|
|
561
|
+
this.m36_1 = range;
|
|
562
562
|
}
|
|
563
563
|
protoOf($parseHeadersCOROUTINE$).c9 = function () {
|
|
564
564
|
var suspendResult = this.w8_1;
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
switch (tmp) {
|
|
569
569
|
case 0:
|
|
570
570
|
this.v8_1 = 7;
|
|
571
|
-
this.
|
|
571
|
+
this.n36_1 = new HttpHeadersMap(this.l36_1);
|
|
572
572
|
this.v8_1 = 6;
|
|
573
573
|
this.u8_1 = 1;
|
|
574
574
|
continue $sm;
|
|
@@ -579,7 +579,7 @@
|
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
this.u8_1 = 2;
|
|
582
|
-
suspendResult = readUTF8LineTo(this.
|
|
582
|
+
suspendResult = readUTF8LineTo(this.k36_1, this.l36_1, 8192, get_httpLineEndings(), this);
|
|
583
583
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
584
584
|
return suspendResult;
|
|
585
585
|
}
|
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
continue $sm;
|
|
588
588
|
case 2:
|
|
589
589
|
if (!suspendResult) {
|
|
590
|
-
this.
|
|
590
|
+
this.n36_1.n1h();
|
|
591
591
|
return null;
|
|
592
592
|
} else {
|
|
593
593
|
this.u8_1 = 3;
|
|
@@ -595,9 +595,9 @@
|
|
|
595
595
|
}
|
|
596
596
|
|
|
597
597
|
case 3:
|
|
598
|
-
this.
|
|
599
|
-
this.
|
|
600
|
-
if (this.
|
|
598
|
+
this.m36_1.q36_1 = this.l36_1.b35_1;
|
|
599
|
+
this.o36_1 = this.m36_1.q36_1 - this.m36_1.p36_1 | 0;
|
|
600
|
+
if (this.o36_1 === 0) {
|
|
601
601
|
this.u8_1 = 5;
|
|
602
602
|
continue $sm;
|
|
603
603
|
} else {
|
|
@@ -606,34 +606,34 @@
|
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
case 4:
|
|
609
|
-
if (this.
|
|
609
|
+
if (this.o36_1 >= 8192) {
|
|
610
610
|
var message = 'Header line length limit exceeded';
|
|
611
611
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
612
612
|
}
|
|
613
613
|
|
|
614
|
-
var nameStart = this.
|
|
615
|
-
var nameEnd = parseHeaderName(this.
|
|
616
|
-
var headerEnd = this.
|
|
617
|
-
parseHeaderValue(this.
|
|
618
|
-
var valueStart = this.
|
|
619
|
-
var valueEnd = this.
|
|
620
|
-
this.
|
|
621
|
-
this.
|
|
614
|
+
var nameStart = this.m36_1.p36_1;
|
|
615
|
+
var nameEnd = parseHeaderName(this.l36_1, this.m36_1);
|
|
616
|
+
var headerEnd = this.m36_1.q36_1;
|
|
617
|
+
parseHeaderValue(this.l36_1, this.m36_1);
|
|
618
|
+
var valueStart = this.m36_1.p36_1;
|
|
619
|
+
var valueEnd = this.m36_1.q36_1;
|
|
620
|
+
this.m36_1.p36_1 = headerEnd;
|
|
621
|
+
this.n36_1.s34(nameStart, nameEnd, valueStart, valueEnd);
|
|
622
622
|
this.u8_1 = 1;
|
|
623
623
|
continue $sm;
|
|
624
624
|
case 5:
|
|
625
|
-
var host = this.
|
|
625
|
+
var host = this.n36_1.r2k(HttpHeaders_getInstance().p2u_1);
|
|
626
626
|
if (!(host == null)) {
|
|
627
627
|
validateHostHeader(host);
|
|
628
628
|
}
|
|
629
629
|
|
|
630
|
-
return this.
|
|
630
|
+
return this.n36_1;
|
|
631
631
|
case 6:
|
|
632
632
|
this.v8_1 = 7;
|
|
633
633
|
var tmp_0 = this.x8_1;
|
|
634
634
|
if (tmp_0 instanceof Error) {
|
|
635
635
|
var t = this.x8_1;
|
|
636
|
-
this.
|
|
636
|
+
this.n36_1.n1h();
|
|
637
637
|
throw t;
|
|
638
638
|
} else {
|
|
639
639
|
throw this.x8_1;
|
|
@@ -658,8 +658,8 @@
|
|
|
658
658
|
if (!properties_initialized_HttpParser_kt_uedryv) {
|
|
659
659
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
660
660
|
hostForbiddenSymbols = setOf([new Char(_Char___init__impl__6a9atx(47)), new Char(_Char___init__impl__6a9atx(63)), new Char(_Char___init__impl__6a9atx(35)), new Char(_Char___init__impl__6a9atx(64))]);
|
|
661
|
-
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().
|
|
662
|
-
versions = Companion_instance.
|
|
661
|
+
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().r1r_1, Companion_getInstance().q1r_1);
|
|
662
|
+
versions = Companion_instance.r36(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
function get_CrLf() {
|
|
@@ -674,23 +674,23 @@
|
|
|
674
674
|
var PrefixString;
|
|
675
675
|
function Preamble(body) {
|
|
676
676
|
MultipartEvent.call(this);
|
|
677
|
-
this.
|
|
677
|
+
this.s36_1 = body;
|
|
678
678
|
}
|
|
679
679
|
function MultipartPart(headers, body) {
|
|
680
680
|
MultipartEvent.call(this);
|
|
681
|
-
this.
|
|
682
|
-
this.
|
|
681
|
+
this.t36_1 = headers;
|
|
682
|
+
this.u36_1 = body;
|
|
683
683
|
}
|
|
684
684
|
function Epilogue(body) {
|
|
685
685
|
MultipartEvent.call(this);
|
|
686
|
-
this.
|
|
686
|
+
this.v36_1 = body;
|
|
687
687
|
}
|
|
688
688
|
function MultipartEvent() {
|
|
689
689
|
}
|
|
690
690
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
691
691
|
maxPartSize = maxPartSize === VOID ? new Long(-1, 2147483647) : maxPartSize;
|
|
692
692
|
_init_properties_Multipart_kt__ato98a();
|
|
693
|
-
if (!MultiPart_getInstance().
|
|
693
|
+
if (!MultiPart_getInstance().f2s(contentType)) {
|
|
694
694
|
throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
695
695
|
}
|
|
696
696
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
@@ -867,18 +867,18 @@
|
|
|
867
867
|
boundaryBytes[_unary__edvuaz] = value;
|
|
868
868
|
}
|
|
869
869
|
function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
|
|
870
|
-
this.
|
|
871
|
-
this.
|
|
870
|
+
this.p38_1 = $firstBoundary;
|
|
871
|
+
this.q38_1 = $countedInput;
|
|
872
872
|
CoroutineImpl.call(this, resultContinuation);
|
|
873
873
|
}
|
|
874
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
875
|
-
var tmp = this.
|
|
874
|
+
protoOf(parseMultipart$slambda$slambda).s38 = function ($this$writer, $completion) {
|
|
875
|
+
var tmp = this.t38($this$writer, $completion);
|
|
876
876
|
tmp.w8_1 = Unit_instance;
|
|
877
877
|
tmp.x8_1 = null;
|
|
878
878
|
return tmp.c9();
|
|
879
879
|
};
|
|
880
880
|
protoOf(parseMultipart$slambda$slambda).o9 = function (p1, $completion) {
|
|
881
|
-
return this.
|
|
881
|
+
return this.s38(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
882
882
|
};
|
|
883
883
|
protoOf(parseMultipart$slambda$slambda).c9 = function () {
|
|
884
884
|
var suspendResult = this.w8_1;
|
|
@@ -889,7 +889,7 @@
|
|
|
889
889
|
case 0:
|
|
890
890
|
this.v8_1 = 3;
|
|
891
891
|
this.u8_1 = 1;
|
|
892
|
-
suspendResult = parsePreambleImpl(this.
|
|
892
|
+
suspendResult = parsePreambleImpl(this.p38_1, this.q38_1, this.r38_1.d1u_1, new Long(8193, 0), this);
|
|
893
893
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
894
894
|
return suspendResult;
|
|
895
895
|
}
|
|
@@ -897,7 +897,7 @@
|
|
|
897
897
|
continue $sm;
|
|
898
898
|
case 1:
|
|
899
899
|
this.u8_1 = 2;
|
|
900
|
-
suspendResult = this.
|
|
900
|
+
suspendResult = this.r38_1.d1u_1.k1m(this);
|
|
901
901
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
902
902
|
return suspendResult;
|
|
903
903
|
}
|
|
@@ -919,34 +919,34 @@
|
|
|
919
919
|
}
|
|
920
920
|
while (true);
|
|
921
921
|
};
|
|
922
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
923
|
-
var i = new parseMultipart$slambda$slambda(this.
|
|
924
|
-
i.
|
|
922
|
+
protoOf(parseMultipart$slambda$slambda).t38 = function ($this$writer, completion) {
|
|
923
|
+
var i = new parseMultipart$slambda$slambda(this.p38_1, this.q38_1, completion);
|
|
924
|
+
i.r38_1 = $this$writer;
|
|
925
925
|
return i;
|
|
926
926
|
};
|
|
927
927
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
|
|
928
928
|
var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
|
|
929
929
|
var l = function ($this$writer, $completion) {
|
|
930
|
-
return i.
|
|
930
|
+
return i.s38($this$writer, $completion);
|
|
931
931
|
};
|
|
932
932
|
l.$arity = 1;
|
|
933
933
|
return l;
|
|
934
934
|
}
|
|
935
935
|
function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
936
|
-
this.
|
|
937
|
-
this.
|
|
938
|
-
this.
|
|
939
|
-
this.
|
|
936
|
+
this.c39_1 = $input;
|
|
937
|
+
this.d39_1 = $boundaryPrefixed;
|
|
938
|
+
this.e39_1 = $maxPartSize;
|
|
939
|
+
this.f39_1 = $totalLength;
|
|
940
940
|
CoroutineImpl.call(this, resultContinuation);
|
|
941
941
|
}
|
|
942
|
-
protoOf(parseMultipart$slambda).
|
|
943
|
-
var tmp = this.
|
|
942
|
+
protoOf(parseMultipart$slambda).o39 = function ($this$produce, $completion) {
|
|
943
|
+
var tmp = this.p39($this$produce, $completion);
|
|
944
944
|
tmp.w8_1 = Unit_instance;
|
|
945
945
|
tmp.x8_1 = null;
|
|
946
946
|
return tmp.c9();
|
|
947
947
|
};
|
|
948
948
|
protoOf(parseMultipart$slambda).o9 = function (p1, $completion) {
|
|
949
|
-
return this.
|
|
949
|
+
return this.o39((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
950
950
|
};
|
|
951
951
|
protoOf(parseMultipart$slambda).c9 = function () {
|
|
952
952
|
var suspendResult = this.w8_1;
|
|
@@ -956,11 +956,11 @@
|
|
|
956
956
|
switch (tmp) {
|
|
957
957
|
case 0:
|
|
958
958
|
this.v8_1 = 25;
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
959
|
+
this.h39_1 = counted(this.c39_1);
|
|
960
|
+
this.i39_1 = this.h39_1.a1w();
|
|
961
|
+
this.m39_1 = this.d39_1.dp(get_PrefixString().u());
|
|
962
962
|
this.u8_1 = 1;
|
|
963
|
-
suspendResult = readRemaining(writer(this.
|
|
963
|
+
suspendResult = readRemaining(writer(this.g39_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.m39_1, this.h39_1, null)).b1u_1, this);
|
|
964
964
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
965
965
|
return suspendResult;
|
|
966
966
|
}
|
|
@@ -970,7 +970,7 @@
|
|
|
970
970
|
var preambleData = suspendResult;
|
|
971
971
|
if (compare(get_remaining(preambleData), new Long(0, 0)) > 0) {
|
|
972
972
|
this.u8_1 = 2;
|
|
973
|
-
suspendResult = this.
|
|
973
|
+
suspendResult = this.g39_1.b1a(new Preamble(preambleData), this);
|
|
974
974
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
975
975
|
return suspendResult;
|
|
976
976
|
}
|
|
@@ -987,31 +987,31 @@
|
|
|
987
987
|
this.u8_1 = 4;
|
|
988
988
|
continue $sm;
|
|
989
989
|
case 4:
|
|
990
|
-
if (!this.
|
|
990
|
+
if (!this.h39_1.h1m()) {
|
|
991
991
|
this.u8_1 = 5;
|
|
992
|
-
suspendResult = skipIfFound(this.
|
|
992
|
+
suspendResult = skipIfFound(this.h39_1, get_PrefixString(), this);
|
|
993
993
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
994
994
|
return suspendResult;
|
|
995
995
|
}
|
|
996
996
|
continue $sm;
|
|
997
997
|
} else {
|
|
998
|
-
this.
|
|
998
|
+
this.n39_1 = false;
|
|
999
999
|
this.u8_1 = 6;
|
|
1000
1000
|
continue $sm;
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
1003
|
case 5:
|
|
1004
|
-
this.
|
|
1004
|
+
this.n39_1 = !suspendResult;
|
|
1005
1005
|
this.u8_1 = 6;
|
|
1006
1006
|
continue $sm;
|
|
1007
1007
|
case 6:
|
|
1008
|
-
if (!this.
|
|
1008
|
+
if (!this.n39_1) {
|
|
1009
1009
|
this.u8_1 = 15;
|
|
1010
1010
|
continue $sm;
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
1013
|
this.u8_1 = 7;
|
|
1014
|
-
suspendResult = skipIfFound(this.
|
|
1014
|
+
suspendResult = skipIfFound(this.h39_1, get_CrLf(), this);
|
|
1015
1015
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1016
1016
|
return suspendResult;
|
|
1017
1017
|
}
|
|
@@ -1019,7 +1019,7 @@
|
|
|
1019
1019
|
continue $sm;
|
|
1020
1020
|
case 7:
|
|
1021
1021
|
this.u8_1 = 8;
|
|
1022
|
-
suspendResult = skipIfFound(this.
|
|
1022
|
+
suspendResult = skipIfFound(this.h39_1, this.m39_1, this);
|
|
1023
1023
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1024
1024
|
return suspendResult;
|
|
1025
1025
|
}
|
|
@@ -1035,42 +1035,42 @@
|
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
1037
|
case 9:
|
|
1038
|
-
this.
|
|
1039
|
-
this.
|
|
1040
|
-
var part = new MultipartPart(this.
|
|
1038
|
+
this.j39_1 = new ByteChannel();
|
|
1039
|
+
this.l39_1 = CompletableDeferred();
|
|
1040
|
+
var part = new MultipartPart(this.l39_1, this.j39_1);
|
|
1041
1041
|
this.u8_1 = 10;
|
|
1042
|
-
suspendResult = this.
|
|
1042
|
+
suspendResult = this.g39_1.b1a(part, this);
|
|
1043
1043
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1044
1044
|
return suspendResult;
|
|
1045
1045
|
}
|
|
1046
1046
|
|
|
1047
1047
|
continue $sm;
|
|
1048
1048
|
case 10:
|
|
1049
|
-
this.
|
|
1049
|
+
this.k39_1 = null;
|
|
1050
1050
|
this.v8_1 = 14;
|
|
1051
1051
|
this.u8_1 = 11;
|
|
1052
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
1052
|
+
suspendResult = parsePartHeadersImpl(this.h39_1, this);
|
|
1053
1053
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1054
1054
|
return suspendResult;
|
|
1055
1055
|
}
|
|
1056
1056
|
|
|
1057
1057
|
continue $sm;
|
|
1058
1058
|
case 11:
|
|
1059
|
-
this.
|
|
1060
|
-
if (!this.
|
|
1061
|
-
this.
|
|
1059
|
+
this.k39_1 = suspendResult;
|
|
1060
|
+
if (!this.l39_1.e11(this.k39_1)) {
|
|
1061
|
+
this.k39_1.n1h();
|
|
1062
1062
|
throw CancellationException_init_$Create$('Multipart processing has been cancelled');
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
1065
|
this.u8_1 = 12;
|
|
1066
|
-
suspendResult = parsePartBodyImpl(this.
|
|
1066
|
+
suspendResult = parsePartBodyImpl(this.d39_1, this.h39_1, this.j39_1, this.k39_1, this.e39_1, this);
|
|
1067
1067
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1068
1068
|
return suspendResult;
|
|
1069
1069
|
}
|
|
1070
1070
|
|
|
1071
1071
|
continue $sm;
|
|
1072
1072
|
case 12:
|
|
1073
|
-
this.
|
|
1073
|
+
this.j39_1.b4();
|
|
1074
1074
|
this.v8_1 = 25;
|
|
1075
1075
|
this.u8_1 = 13;
|
|
1076
1076
|
continue $sm;
|
|
@@ -1083,15 +1083,15 @@
|
|
|
1083
1083
|
var tmp_0 = this.x8_1;
|
|
1084
1084
|
if (tmp_0 instanceof Error) {
|
|
1085
1085
|
var cause = this.x8_1;
|
|
1086
|
-
if (this.
|
|
1087
|
-
var tmp0_safe_receiver = this.
|
|
1086
|
+
if (this.l39_1.f11(cause)) {
|
|
1087
|
+
var tmp0_safe_receiver = this.k39_1;
|
|
1088
1088
|
if (tmp0_safe_receiver == null)
|
|
1089
1089
|
null;
|
|
1090
1090
|
else {
|
|
1091
1091
|
tmp0_safe_receiver.n1h();
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
|
-
close(this.
|
|
1094
|
+
close(this.j39_1, cause);
|
|
1095
1095
|
throw cause;
|
|
1096
1096
|
} else {
|
|
1097
1097
|
throw this.x8_1;
|
|
@@ -1099,7 +1099,7 @@
|
|
|
1099
1099
|
|
|
1100
1100
|
case 15:
|
|
1101
1101
|
this.u8_1 = 16;
|
|
1102
|
-
suspendResult = skipIfFound(this.
|
|
1102
|
+
suspendResult = skipIfFound(this.h39_1, get_CrLf(), this);
|
|
1103
1103
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1104
1104
|
return suspendResult;
|
|
1105
1105
|
}
|
|
@@ -1107,21 +1107,21 @@
|
|
|
1107
1107
|
continue $sm;
|
|
1108
1108
|
case 16:
|
|
1109
1109
|
this.u8_1 = 17;
|
|
1110
|
-
suspendResult = skipIfFound(this.
|
|
1110
|
+
suspendResult = skipIfFound(this.h39_1, get_CrLf(), this);
|
|
1111
1111
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1112
1112
|
return suspendResult;
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
1115
1115
|
continue $sm;
|
|
1116
1116
|
case 17:
|
|
1117
|
-
if (!(this.
|
|
1118
|
-
var consumedExceptEpilogue = subtract(this.
|
|
1119
|
-
var size = subtract(this.
|
|
1117
|
+
if (!(this.f39_1 == null)) {
|
|
1118
|
+
var consumedExceptEpilogue = subtract(this.h39_1.a1w(), this.i39_1);
|
|
1119
|
+
var size = subtract(this.f39_1, consumedExceptEpilogue);
|
|
1120
1120
|
if (compare(size, new Long(2147483647, 0)) > 0)
|
|
1121
1121
|
throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
|
|
1122
1122
|
if (compare(size, new Long(0, 0)) > 0) {
|
|
1123
1123
|
this.u8_1 = 21;
|
|
1124
|
-
suspendResult = readPacket(this.
|
|
1124
|
+
suspendResult = readPacket(this.h39_1, convertToInt(size), this);
|
|
1125
1125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1126
1126
|
return suspendResult;
|
|
1127
1127
|
}
|
|
@@ -1132,7 +1132,7 @@
|
|
|
1132
1132
|
}
|
|
1133
1133
|
} else {
|
|
1134
1134
|
this.u8_1 = 18;
|
|
1135
|
-
suspendResult = readRemaining(this.
|
|
1135
|
+
suspendResult = readRemaining(this.h39_1, this);
|
|
1136
1136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1137
1137
|
return suspendResult;
|
|
1138
1138
|
}
|
|
@@ -1143,7 +1143,7 @@
|
|
|
1143
1143
|
var epilogueContent = suspendResult;
|
|
1144
1144
|
if (!epilogueContent.lp()) {
|
|
1145
1145
|
this.u8_1 = 19;
|
|
1146
|
-
suspendResult = this.
|
|
1146
|
+
suspendResult = this.g39_1.b1a(new Epilogue(epilogueContent), this);
|
|
1147
1147
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1148
1148
|
return suspendResult;
|
|
1149
1149
|
}
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
var ARGUMENT = suspendResult;
|
|
1164
1164
|
var ARGUMENT_0 = new Epilogue(ARGUMENT);
|
|
1165
1165
|
this.u8_1 = 22;
|
|
1166
|
-
suspendResult = this.
|
|
1166
|
+
suspendResult = this.g39_1.b1a(ARGUMENT_0, this);
|
|
1167
1167
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1168
1168
|
return suspendResult;
|
|
1169
1169
|
}
|
|
@@ -1191,22 +1191,22 @@
|
|
|
1191
1191
|
}
|
|
1192
1192
|
while (true);
|
|
1193
1193
|
};
|
|
1194
|
-
protoOf(parseMultipart$slambda).
|
|
1195
|
-
var i = new parseMultipart$slambda(this.
|
|
1196
|
-
i.
|
|
1194
|
+
protoOf(parseMultipart$slambda).p39 = function ($this$produce, completion) {
|
|
1195
|
+
var i = new parseMultipart$slambda(this.c39_1, this.d39_1, this.e39_1, this.f39_1, completion);
|
|
1196
|
+
i.g39_1 = $this$produce;
|
|
1197
1197
|
return i;
|
|
1198
1198
|
};
|
|
1199
1199
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
1200
1200
|
var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
|
|
1201
1201
|
var l = function ($this$produce, $completion) {
|
|
1202
|
-
return i.
|
|
1202
|
+
return i.o39($this$produce, $completion);
|
|
1203
1203
|
};
|
|
1204
1204
|
l.$arity = 1;
|
|
1205
1205
|
return l;
|
|
1206
1206
|
}
|
|
1207
1207
|
function $parsePartHeadersImplCOROUTINE$(input, resultContinuation) {
|
|
1208
1208
|
CoroutineImpl.call(this, resultContinuation);
|
|
1209
|
-
this.
|
|
1209
|
+
this.e37_1 = input;
|
|
1210
1210
|
}
|
|
1211
1211
|
protoOf($parsePartHeadersImplCOROUTINE$).c9 = function () {
|
|
1212
1212
|
var suspendResult = this.w8_1;
|
|
@@ -1216,10 +1216,10 @@
|
|
|
1216
1216
|
switch (tmp) {
|
|
1217
1217
|
case 0:
|
|
1218
1218
|
this.v8_1 = 3;
|
|
1219
|
-
this.
|
|
1219
|
+
this.f37_1 = new CharArrayBuilder();
|
|
1220
1220
|
this.v8_1 = 2;
|
|
1221
1221
|
this.u8_1 = 1;
|
|
1222
|
-
suspendResult = parseHeaders(this.
|
|
1222
|
+
suspendResult = parseHeaders(this.e37_1, this.f37_1, VOID, this);
|
|
1223
1223
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1224
1224
|
return suspendResult;
|
|
1225
1225
|
}
|
|
@@ -1240,7 +1240,7 @@
|
|
|
1240
1240
|
var tmp_1 = this.x8_1;
|
|
1241
1241
|
if (tmp_1 instanceof Error) {
|
|
1242
1242
|
var t = this.x8_1;
|
|
1243
|
-
this.
|
|
1243
|
+
this.f37_1.n1h();
|
|
1244
1244
|
throw t;
|
|
1245
1245
|
} else {
|
|
1246
1246
|
throw this.x8_1;
|
|
@@ -1262,11 +1262,11 @@
|
|
|
1262
1262
|
};
|
|
1263
1263
|
function $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
|
|
1264
1264
|
CoroutineImpl.call(this, resultContinuation);
|
|
1265
|
-
this.
|
|
1266
|
-
this.
|
|
1267
|
-
this.
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1265
|
+
this.o37_1 = boundaryPrefixed;
|
|
1266
|
+
this.p37_1 = input;
|
|
1267
|
+
this.q37_1 = output;
|
|
1268
|
+
this.r37_1 = headers;
|
|
1269
|
+
this.s37_1 = limit;
|
|
1270
1270
|
}
|
|
1271
1271
|
protoOf($parsePartBodyImplCOROUTINE$).c9 = function () {
|
|
1272
1272
|
var suspendResult = this.w8_1;
|
|
@@ -1276,34 +1276,34 @@
|
|
|
1276
1276
|
switch (tmp) {
|
|
1277
1277
|
case 0:
|
|
1278
1278
|
this.v8_1 = 6;
|
|
1279
|
-
var tmp0_safe_receiver = this.
|
|
1279
|
+
var tmp0_safe_receiver = this.r37_1.r2k('Content-Length');
|
|
1280
1280
|
var contentLength = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
1281
1281
|
if (contentLength == null) {
|
|
1282
1282
|
this.u8_1 = 3;
|
|
1283
|
-
suspendResult = readUntil(this.
|
|
1283
|
+
suspendResult = readUntil(this.p37_1, this.o37_1, this.q37_1, this.s37_1, true, this);
|
|
1284
1284
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1285
1285
|
return suspendResult;
|
|
1286
1286
|
}
|
|
1287
1287
|
continue $sm;
|
|
1288
1288
|
} else {
|
|
1289
|
-
if (longRangeToLong(new Long(0, 0), this.
|
|
1289
|
+
if (longRangeToLong(new Long(0, 0), this.s37_1).xh(contentLength)) {
|
|
1290
1290
|
this.u8_1 = 1;
|
|
1291
|
-
suspendResult = copyTo(this.
|
|
1291
|
+
suspendResult = copyTo(this.p37_1, this.q37_1, contentLength, this);
|
|
1292
1292
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1293
1293
|
return suspendResult;
|
|
1294
1294
|
}
|
|
1295
1295
|
continue $sm;
|
|
1296
1296
|
} else {
|
|
1297
1297
|
var tmp_0 = this;
|
|
1298
|
-
throwLimitExceeded(contentLength, this.
|
|
1298
|
+
throwLimitExceeded(contentLength, this.s37_1);
|
|
1299
1299
|
}
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
1302
|
break;
|
|
1303
1303
|
case 1:
|
|
1304
|
-
this.
|
|
1304
|
+
this.v37_1 = suspendResult;
|
|
1305
1305
|
this.u8_1 = 2;
|
|
1306
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
1306
|
+
suspendResult = skipIfFoundReadCount(this.p37_1, this.o37_1, this);
|
|
1307
1307
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1308
1308
|
return suspendResult;
|
|
1309
1309
|
}
|
|
@@ -1311,24 +1311,24 @@
|
|
|
1311
1311
|
continue $sm;
|
|
1312
1312
|
case 2:
|
|
1313
1313
|
var ARGUMENT = suspendResult;
|
|
1314
|
-
this.
|
|
1314
|
+
this.u37_1 = add(this.v37_1, ARGUMENT);
|
|
1315
1315
|
this.u8_1 = 4;
|
|
1316
1316
|
continue $sm;
|
|
1317
1317
|
case 3:
|
|
1318
|
-
this.
|
|
1318
|
+
this.u37_1 = suspendResult;
|
|
1319
1319
|
this.u8_1 = 4;
|
|
1320
1320
|
continue $sm;
|
|
1321
1321
|
case 4:
|
|
1322
|
-
this.
|
|
1322
|
+
this.t37_1 = this.u37_1;
|
|
1323
1323
|
this.u8_1 = 5;
|
|
1324
|
-
suspendResult = this.
|
|
1324
|
+
suspendResult = this.q37_1.y1l(this);
|
|
1325
1325
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1326
1326
|
return suspendResult;
|
|
1327
1327
|
}
|
|
1328
1328
|
|
|
1329
1329
|
continue $sm;
|
|
1330
1330
|
case 5:
|
|
1331
|
-
return this.
|
|
1331
|
+
return this.t37_1;
|
|
1332
1332
|
case 6:
|
|
1333
1333
|
throw this.x8_1;
|
|
1334
1334
|
}
|
|
@@ -1345,8 +1345,8 @@
|
|
|
1345
1345
|
};
|
|
1346
1346
|
function $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, resultContinuation) {
|
|
1347
1347
|
CoroutineImpl.call(this, resultContinuation);
|
|
1348
|
-
this.
|
|
1349
|
-
this.
|
|
1348
|
+
this.e38_1 = _this__u8e3s4;
|
|
1349
|
+
this.f38_1 = prefix;
|
|
1350
1350
|
}
|
|
1351
1351
|
protoOf($skipIfFoundReadCountCOROUTINE$).c9 = function () {
|
|
1352
1352
|
var suspendResult = this.w8_1;
|
|
@@ -1357,7 +1357,7 @@
|
|
|
1357
1357
|
case 0:
|
|
1358
1358
|
this.v8_1 = 3;
|
|
1359
1359
|
this.u8_1 = 1;
|
|
1360
|
-
suspendResult = skipIfFound(this.
|
|
1360
|
+
suspendResult = skipIfFound(this.e38_1, this.f38_1, this);
|
|
1361
1361
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1362
1362
|
return suspendResult;
|
|
1363
1363
|
}
|
|
@@ -1366,18 +1366,18 @@
|
|
|
1366
1366
|
case 1:
|
|
1367
1367
|
if (suspendResult) {
|
|
1368
1368
|
var tmp_0 = this;
|
|
1369
|
-
tmp_0.
|
|
1369
|
+
tmp_0.g38_1 = fromInt(this.f38_1.u());
|
|
1370
1370
|
this.u8_1 = 2;
|
|
1371
1371
|
continue $sm;
|
|
1372
1372
|
} else {
|
|
1373
1373
|
var tmp_1 = this;
|
|
1374
|
-
tmp_1.
|
|
1374
|
+
tmp_1.g38_1 = new Long(0, 0);
|
|
1375
1375
|
this.u8_1 = 2;
|
|
1376
1376
|
continue $sm;
|
|
1377
1377
|
}
|
|
1378
1378
|
|
|
1379
1379
|
case 2:
|
|
1380
|
-
return this.
|
|
1380
|
+
return this.g38_1;
|
|
1381
1381
|
case 3:
|
|
1382
1382
|
throw this.x8_1;
|
|
1383
1383
|
}
|
|
@@ -1465,16 +1465,16 @@
|
|
|
1465
1465
|
return new Char(charSequenceGet(s, idx));
|
|
1466
1466
|
}
|
|
1467
1467
|
function Node(ch, exact, children) {
|
|
1468
|
-
this.
|
|
1469
|
-
this.
|
|
1470
|
-
this.
|
|
1468
|
+
this.q39_1 = ch;
|
|
1469
|
+
this.r39_1 = exact;
|
|
1470
|
+
this.s39_1 = children;
|
|
1471
1471
|
var tmp = this;
|
|
1472
1472
|
var tmp_0 = 0;
|
|
1473
1473
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1474
1474
|
var tmp_1 = Array(256);
|
|
1475
1475
|
while (tmp_0 < 256) {
|
|
1476
1476
|
var tmp_2 = tmp_0;
|
|
1477
|
-
var tmp0 = this.
|
|
1477
|
+
var tmp0 = this.s39_1;
|
|
1478
1478
|
var tmp$ret$3;
|
|
1479
1479
|
$l$block_0: {
|
|
1480
1480
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
@@ -1484,7 +1484,7 @@
|
|
|
1484
1484
|
while (_iterator__ex2g4s.s()) {
|
|
1485
1485
|
var element = _iterator__ex2g4s.t();
|
|
1486
1486
|
// Inline function 'kotlin.code' call
|
|
1487
|
-
var this_0 = element.
|
|
1487
|
+
var this_0 = element.q39_1;
|
|
1488
1488
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
1489
1489
|
if (found) {
|
|
1490
1490
|
tmp$ret$3 = null;
|
|
@@ -1503,15 +1503,15 @@
|
|
|
1503
1503
|
tmp_1[tmp_2] = tmp$ret$3;
|
|
1504
1504
|
tmp_0 = tmp_0 + 1 | 0;
|
|
1505
1505
|
}
|
|
1506
|
-
tmp.
|
|
1506
|
+
tmp.t39_1 = tmp_1;
|
|
1507
1507
|
}
|
|
1508
1508
|
function Companion() {
|
|
1509
1509
|
}
|
|
1510
|
-
protoOf(Companion).
|
|
1510
|
+
protoOf(Companion).r36 = function (from) {
|
|
1511
1511
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
1512
|
-
return this.
|
|
1512
|
+
return this.u39(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
1513
1513
|
};
|
|
1514
|
-
protoOf(Companion).
|
|
1514
|
+
protoOf(Companion).u39 = function (from, length, charAt) {
|
|
1515
1515
|
var tmp$ret$0;
|
|
1516
1516
|
$l$block_0: {
|
|
1517
1517
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -1588,10 +1588,10 @@
|
|
|
1588
1588
|
return Companion_instance;
|
|
1589
1589
|
}
|
|
1590
1590
|
function AsciiCharTree(root) {
|
|
1591
|
-
this.
|
|
1591
|
+
this.v39_1 = root;
|
|
1592
1592
|
}
|
|
1593
1593
|
function getImpl($this, index) {
|
|
1594
|
-
return bufferForIndex($this, index)[index % ensureNotNull($this.
|
|
1594
|
+
return bufferForIndex($this, index)[index % ensureNotNull($this.x34_1).length | 0];
|
|
1595
1595
|
}
|
|
1596
1596
|
function copy($this, startIndex, endIndex) {
|
|
1597
1597
|
if (startIndex === endIndex)
|
|
@@ -1620,27 +1620,27 @@
|
|
|
1620
1620
|
return builder;
|
|
1621
1621
|
}
|
|
1622
1622
|
function SubSequenceImpl($outer, start, end) {
|
|
1623
|
-
this.
|
|
1624
|
-
this.
|
|
1625
|
-
this.
|
|
1626
|
-
this.
|
|
1623
|
+
this.z39_1 = $outer;
|
|
1624
|
+
this.w39_1 = start;
|
|
1625
|
+
this.x39_1 = end;
|
|
1626
|
+
this.y39_1 = null;
|
|
1627
1627
|
}
|
|
1628
1628
|
protoOf(SubSequenceImpl).a = function () {
|
|
1629
|
-
return this.
|
|
1629
|
+
return this.x39_1 - this.w39_1 | 0;
|
|
1630
1630
|
};
|
|
1631
1631
|
protoOf(SubSequenceImpl).b = function (index) {
|
|
1632
|
-
var withOffset = index + this.
|
|
1632
|
+
var withOffset = index + this.w39_1 | 0;
|
|
1633
1633
|
// Inline function 'kotlin.require' call
|
|
1634
1634
|
if (!(index >= 0)) {
|
|
1635
1635
|
var message = 'index is negative: ' + index;
|
|
1636
1636
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1637
1637
|
}
|
|
1638
1638
|
// Inline function 'kotlin.require' call
|
|
1639
|
-
if (!(withOffset < this.
|
|
1639
|
+
if (!(withOffset < this.x39_1)) {
|
|
1640
1640
|
var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
|
|
1641
1641
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1642
1642
|
}
|
|
1643
|
-
return getImpl(this.
|
|
1643
|
+
return getImpl(this.z39_1, withOffset);
|
|
1644
1644
|
};
|
|
1645
1645
|
protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
1646
1646
|
// Inline function 'kotlin.require' call
|
|
@@ -1654,21 +1654,21 @@
|
|
|
1654
1654
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1655
1655
|
}
|
|
1656
1656
|
// Inline function 'kotlin.require' call
|
|
1657
|
-
if (!(endIndex <= (this.
|
|
1657
|
+
if (!(endIndex <= (this.x39_1 - this.w39_1 | 0))) {
|
|
1658
1658
|
var message_1 = 'end should be less than length (' + this.a() + ')';
|
|
1659
1659
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1660
1660
|
}
|
|
1661
1661
|
if (startIndex === endIndex)
|
|
1662
1662
|
return '';
|
|
1663
|
-
return new SubSequenceImpl(this.
|
|
1663
|
+
return new SubSequenceImpl(this.z39_1, this.w39_1 + startIndex | 0, this.w39_1 + endIndex | 0);
|
|
1664
1664
|
};
|
|
1665
1665
|
protoOf(SubSequenceImpl).toString = function () {
|
|
1666
|
-
var tmp0_elvis_lhs = this.
|
|
1666
|
+
var tmp0_elvis_lhs = this.y39_1;
|
|
1667
1667
|
var tmp;
|
|
1668
1668
|
if (tmp0_elvis_lhs == null) {
|
|
1669
1669
|
// Inline function 'kotlin.also' call
|
|
1670
|
-
var this_0 = toString(copy(this.
|
|
1671
|
-
this.
|
|
1670
|
+
var this_0 = toString(copy(this.z39_1, this.w39_1, this.x39_1));
|
|
1671
|
+
this.y39_1 = this_0;
|
|
1672
1672
|
tmp = this_0;
|
|
1673
1673
|
} else {
|
|
1674
1674
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1680,20 +1680,20 @@
|
|
|
1680
1680
|
return false;
|
|
1681
1681
|
if (!(charSequenceLength(other) === this.a()))
|
|
1682
1682
|
return false;
|
|
1683
|
-
return rangeEqualsImpl(this.
|
|
1683
|
+
return rangeEqualsImpl(this.z39_1, this.w39_1, other, 0, this.a());
|
|
1684
1684
|
};
|
|
1685
1685
|
protoOf(SubSequenceImpl).hashCode = function () {
|
|
1686
|
-
var tmp0_safe_receiver = this.
|
|
1686
|
+
var tmp0_safe_receiver = this.y39_1;
|
|
1687
1687
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1688
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this.
|
|
1688
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this.z39_1, this.w39_1, this.x39_1) : tmp1_elvis_lhs;
|
|
1689
1689
|
};
|
|
1690
1690
|
function bufferForIndex($this, index) {
|
|
1691
|
-
var list = $this.
|
|
1691
|
+
var list = $this.w34_1;
|
|
1692
1692
|
if (list == null) {
|
|
1693
1693
|
if (index >= 2048) {
|
|
1694
1694
|
throwSingleBuffer($this, index);
|
|
1695
1695
|
}
|
|
1696
|
-
var tmp0_elvis_lhs = $this.
|
|
1696
|
+
var tmp0_elvis_lhs = $this.x34_1;
|
|
1697
1697
|
var tmp;
|
|
1698
1698
|
if (tmp0_elvis_lhs == null) {
|
|
1699
1699
|
throwSingleBuffer($this, index);
|
|
@@ -1702,29 +1702,29 @@
|
|
|
1702
1702
|
}
|
|
1703
1703
|
return tmp;
|
|
1704
1704
|
}
|
|
1705
|
-
return list.v(index / ensureNotNull($this.
|
|
1705
|
+
return list.v(index / ensureNotNull($this.x34_1).length | 0);
|
|
1706
1706
|
}
|
|
1707
1707
|
function throwSingleBuffer($this, index) {
|
|
1708
|
-
if ($this.
|
|
1708
|
+
if ($this.z34_1)
|
|
1709
1709
|
throw IllegalStateException_init_$Create$('Buffer is already released');
|
|
1710
1710
|
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
|
|
1711
1711
|
}
|
|
1712
1712
|
function nonFullBuffer($this) {
|
|
1713
|
-
return $this.
|
|
1713
|
+
return $this.a35_1 === 0 ? appendNewArray($this) : ensureNotNull($this.x34_1);
|
|
1714
1714
|
}
|
|
1715
1715
|
function appendNewArray($this) {
|
|
1716
|
-
var newBuffer = $this.
|
|
1717
|
-
var existing = $this.
|
|
1718
|
-
$this.
|
|
1719
|
-
$this.
|
|
1720
|
-
$this.
|
|
1716
|
+
var newBuffer = $this.v34_1.t1w();
|
|
1717
|
+
var existing = $this.x34_1;
|
|
1718
|
+
$this.x34_1 = newBuffer;
|
|
1719
|
+
$this.a35_1 = newBuffer.length;
|
|
1720
|
+
$this.z34_1 = false;
|
|
1721
1721
|
if (!(existing == null)) {
|
|
1722
|
-
var tmp0_elvis_lhs = $this.
|
|
1722
|
+
var tmp0_elvis_lhs = $this.w34_1;
|
|
1723
1723
|
var tmp;
|
|
1724
1724
|
if (tmp0_elvis_lhs == null) {
|
|
1725
1725
|
// Inline function 'kotlin.also' call
|
|
1726
1726
|
var this_0 = ArrayList_init_$Create$();
|
|
1727
|
-
$this.
|
|
1727
|
+
$this.w34_1 = this_0;
|
|
1728
1728
|
this_0.p(existing);
|
|
1729
1729
|
tmp = this_0;
|
|
1730
1730
|
} else {
|
|
@@ -1763,20 +1763,20 @@
|
|
|
1763
1763
|
return hc;
|
|
1764
1764
|
}
|
|
1765
1765
|
function currentPosition($this) {
|
|
1766
|
-
return ensureNotNull($this.
|
|
1766
|
+
return ensureNotNull($this.x34_1).length - $this.a35_1 | 0;
|
|
1767
1767
|
}
|
|
1768
1768
|
function CharArrayBuilder(pool) {
|
|
1769
1769
|
pool = pool === VOID ? get_CharArrayPool() : pool;
|
|
1770
|
-
this.
|
|
1771
|
-
this.
|
|
1772
|
-
this.
|
|
1773
|
-
this.
|
|
1774
|
-
this.
|
|
1775
|
-
this.
|
|
1776
|
-
this.
|
|
1770
|
+
this.v34_1 = pool;
|
|
1771
|
+
this.w34_1 = null;
|
|
1772
|
+
this.x34_1 = null;
|
|
1773
|
+
this.y34_1 = null;
|
|
1774
|
+
this.z34_1 = false;
|
|
1775
|
+
this.a35_1 = 0;
|
|
1776
|
+
this.b35_1 = 0;
|
|
1777
1777
|
}
|
|
1778
1778
|
protoOf(CharArrayBuilder).a = function () {
|
|
1779
|
-
return this.
|
|
1779
|
+
return this.b35_1;
|
|
1780
1780
|
};
|
|
1781
1781
|
protoOf(CharArrayBuilder).b = function (index) {
|
|
1782
1782
|
// Inline function 'kotlin.require' call
|
|
@@ -1785,8 +1785,8 @@
|
|
|
1785
1785
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1786
1786
|
}
|
|
1787
1787
|
// Inline function 'kotlin.require' call
|
|
1788
|
-
if (!(index < this.
|
|
1789
|
-
var message_0 = 'index ' + index + ' is not in range [0, ' + this.
|
|
1788
|
+
if (!(index < this.b35_1)) {
|
|
1789
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.b35_1 + ')';
|
|
1790
1790
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1791
1791
|
}
|
|
1792
1792
|
return getImpl(this, index);
|
|
@@ -1803,19 +1803,19 @@
|
|
|
1803
1803
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1804
1804
|
}
|
|
1805
1805
|
// Inline function 'kotlin.require' call
|
|
1806
|
-
if (!(endIndex <= this.
|
|
1807
|
-
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.
|
|
1806
|
+
if (!(endIndex <= this.b35_1)) {
|
|
1807
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.b35_1 + ')';
|
|
1808
1808
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1809
1809
|
}
|
|
1810
1810
|
return new SubSequenceImpl(this, startIndex, endIndex);
|
|
1811
1811
|
};
|
|
1812
1812
|
protoOf(CharArrayBuilder).toString = function () {
|
|
1813
|
-
var tmp0_elvis_lhs = this.
|
|
1813
|
+
var tmp0_elvis_lhs = this.y34_1;
|
|
1814
1814
|
var tmp;
|
|
1815
1815
|
if (tmp0_elvis_lhs == null) {
|
|
1816
1816
|
// Inline function 'kotlin.also' call
|
|
1817
|
-
var this_0 = toString(copy(this, 0, this.
|
|
1818
|
-
this.
|
|
1817
|
+
var this_0 = toString(copy(this, 0, this.b35_1));
|
|
1818
|
+
this.y34_1 = this_0;
|
|
1819
1819
|
tmp = this_0;
|
|
1820
1820
|
} else {
|
|
1821
1821
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1825,20 +1825,20 @@
|
|
|
1825
1825
|
protoOf(CharArrayBuilder).equals = function (other) {
|
|
1826
1826
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
1827
1827
|
return false;
|
|
1828
|
-
if (!(this.
|
|
1828
|
+
if (!(this.b35_1 === charSequenceLength(other)))
|
|
1829
1829
|
return false;
|
|
1830
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
1830
|
+
return rangeEqualsImpl(this, 0, other, 0, this.b35_1);
|
|
1831
1831
|
};
|
|
1832
1832
|
protoOf(CharArrayBuilder).hashCode = function () {
|
|
1833
|
-
var tmp0_safe_receiver = this.
|
|
1833
|
+
var tmp0_safe_receiver = this.y34_1;
|
|
1834
1834
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1835
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.
|
|
1835
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.b35_1) : tmp1_elvis_lhs;
|
|
1836
1836
|
};
|
|
1837
1837
|
protoOf(CharArrayBuilder).g8 = function (value) {
|
|
1838
|
-
nonFullBuffer(this)[ensureNotNull(this.
|
|
1839
|
-
this.
|
|
1840
|
-
this.
|
|
1841
|
-
this.
|
|
1838
|
+
nonFullBuffer(this)[ensureNotNull(this.x34_1).length - this.a35_1 | 0] = value;
|
|
1839
|
+
this.y34_1 = null;
|
|
1840
|
+
this.a35_1 = this.a35_1 - 1 | 0;
|
|
1841
|
+
this.b35_1 = this.b35_1 + 1 | 0;
|
|
1842
1842
|
return this;
|
|
1843
1843
|
};
|
|
1844
1844
|
protoOf(CharArrayBuilder).mc = function (value, startIndex, endIndex) {
|
|
@@ -1847,10 +1847,10 @@
|
|
|
1847
1847
|
var current = startIndex;
|
|
1848
1848
|
while (current < endIndex) {
|
|
1849
1849
|
var buffer = nonFullBuffer(this);
|
|
1850
|
-
var offset = buffer.length - this.
|
|
1850
|
+
var offset = buffer.length - this.a35_1 | 0;
|
|
1851
1851
|
var tmp0 = endIndex - current | 0;
|
|
1852
1852
|
// Inline function 'kotlin.math.min' call
|
|
1853
|
-
var b = this.
|
|
1853
|
+
var b = this.a35_1;
|
|
1854
1854
|
var bytesToCopy = Math.min(tmp0, b);
|
|
1855
1855
|
var inductionVariable = 0;
|
|
1856
1856
|
if (inductionVariable < bytesToCopy)
|
|
@@ -1861,10 +1861,10 @@
|
|
|
1861
1861
|
}
|
|
1862
1862
|
while (inductionVariable < bytesToCopy);
|
|
1863
1863
|
current = current + bytesToCopy | 0;
|
|
1864
|
-
this.
|
|
1864
|
+
this.a35_1 = this.a35_1 - bytesToCopy | 0;
|
|
1865
1865
|
}
|
|
1866
|
-
this.
|
|
1867
|
-
this.
|
|
1866
|
+
this.y34_1 = null;
|
|
1867
|
+
this.b35_1 = this.b35_1 + (endIndex - startIndex | 0) | 0;
|
|
1868
1868
|
return this;
|
|
1869
1869
|
};
|
|
1870
1870
|
protoOf(CharArrayBuilder).q = function (value) {
|
|
@@ -1873,33 +1873,33 @@
|
|
|
1873
1873
|
return this.mc(value, 0, charSequenceLength(value));
|
|
1874
1874
|
};
|
|
1875
1875
|
protoOf(CharArrayBuilder).n1h = function () {
|
|
1876
|
-
var list = this.
|
|
1876
|
+
var list = this.w34_1;
|
|
1877
1877
|
if (!(list == null)) {
|
|
1878
|
-
this.
|
|
1878
|
+
this.x34_1 = null;
|
|
1879
1879
|
var inductionVariable = 0;
|
|
1880
1880
|
var last = list.u();
|
|
1881
1881
|
if (inductionVariable < last)
|
|
1882
1882
|
do {
|
|
1883
1883
|
var i = inductionVariable;
|
|
1884
1884
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1885
|
-
this.
|
|
1885
|
+
this.v34_1.u1w(list.v(i));
|
|
1886
1886
|
}
|
|
1887
1887
|
while (inductionVariable < last);
|
|
1888
1888
|
} else {
|
|
1889
|
-
var tmp0_safe_receiver = this.
|
|
1889
|
+
var tmp0_safe_receiver = this.x34_1;
|
|
1890
1890
|
if (tmp0_safe_receiver == null)
|
|
1891
1891
|
null;
|
|
1892
1892
|
else {
|
|
1893
1893
|
// Inline function 'kotlin.let' call
|
|
1894
|
-
this.
|
|
1894
|
+
this.v34_1.u1w(tmp0_safe_receiver);
|
|
1895
1895
|
}
|
|
1896
|
-
this.
|
|
1896
|
+
this.x34_1 = null;
|
|
1897
1897
|
}
|
|
1898
|
-
this.
|
|
1899
|
-
this.
|
|
1900
|
-
this.
|
|
1901
|
-
this.
|
|
1902
|
-
this.
|
|
1898
|
+
this.z34_1 = true;
|
|
1899
|
+
this.w34_1 = null;
|
|
1900
|
+
this.y34_1 = null;
|
|
1901
|
+
this.b35_1 = 0;
|
|
1902
|
+
this.a35_1 = 0;
|
|
1903
1903
|
};
|
|
1904
1904
|
function get_CharArrayPool() {
|
|
1905
1905
|
_init_properties_CharArrayPool_kt__u4nq0d();
|
|
@@ -1909,13 +1909,13 @@
|
|
|
1909
1909
|
function CharArrayPool$1() {
|
|
1910
1910
|
NoPoolImpl.call(this);
|
|
1911
1911
|
}
|
|
1912
|
-
protoOf(CharArrayPool$1).
|
|
1912
|
+
protoOf(CharArrayPool$1).t1w = function () {
|
|
1913
1913
|
return charArray(2048);
|
|
1914
1914
|
};
|
|
1915
1915
|
function CharArrayPool$2() {
|
|
1916
1916
|
DefaultPool.call(this, 4096);
|
|
1917
1917
|
}
|
|
1918
|
-
protoOf(CharArrayPool$2).
|
|
1918
|
+
protoOf(CharArrayPool$2).m1w = function () {
|
|
1919
1919
|
return charArray(2048);
|
|
1920
1920
|
};
|
|
1921
1921
|
var properties_initialized_CharArrayPool_kt_aq0u0f;
|
|
@@ -2106,20 +2106,20 @@
|
|
|
2106
2106
|
}
|
|
2107
2107
|
function DefaultHttpMethods$lambda(it) {
|
|
2108
2108
|
_init_properties_Chars_kt__d3i39x();
|
|
2109
|
-
return it.
|
|
2109
|
+
return it.y2x_1.length;
|
|
2110
2110
|
}
|
|
2111
2111
|
function DefaultHttpMethods$lambda_0(m, idx) {
|
|
2112
2112
|
_init_properties_Chars_kt__d3i39x();
|
|
2113
|
-
return new Char(charCodeAt(m.
|
|
2113
|
+
return new Char(charCodeAt(m.y2x_1, idx));
|
|
2114
2114
|
}
|
|
2115
2115
|
var properties_initialized_Chars_kt_phjfhp;
|
|
2116
2116
|
function _init_properties_Chars_kt__d3i39x() {
|
|
2117
2117
|
if (!properties_initialized_Chars_kt_phjfhp) {
|
|
2118
2118
|
properties_initialized_Chars_kt_phjfhp = true;
|
|
2119
2119
|
var tmp = Companion_instance;
|
|
2120
|
-
var tmp_0 = Companion_getInstance_0().
|
|
2120
|
+
var tmp_0 = Companion_getInstance_0().x2x_1;
|
|
2121
2121
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
2122
|
-
DefaultHttpMethods = tmp.
|
|
2122
|
+
DefaultHttpMethods = tmp.u39(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
|
|
2123
2123
|
// Inline function 'kotlin.collections.map' call
|
|
2124
2124
|
var this_0 = numberRangeToNumber(0, 255);
|
|
2125
2125
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2220,11 +2220,11 @@
|
|
|
2220
2220
|
captureStack(this, UnsupportedMediaTypeExceptionCIO);
|
|
2221
2221
|
}
|
|
2222
2222
|
function MutableRange(start, end) {
|
|
2223
|
-
this.
|
|
2224
|
-
this.
|
|
2223
|
+
this.p36_1 = start;
|
|
2224
|
+
this.q36_1 = end;
|
|
2225
2225
|
}
|
|
2226
2226
|
protoOf(MutableRange).toString = function () {
|
|
2227
|
-
return 'MutableRange(start=' + this.
|
|
2227
|
+
return 'MutableRange(start=' + this.p36_1 + ', end=' + this.q36_1 + ')';
|
|
2228
2228
|
};
|
|
2229
2229
|
function skipSpacesAndHorizontalTabs(text, start, end) {
|
|
2230
2230
|
var index = start;
|