@solibo/home-api 1.1.21 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +713 -713
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +1842 -1798
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1333 -1333
- package/ktor-ktor-client-content-negotiation.mjs +125 -125
- package/ktor-ktor-client-core.mjs +1802 -1802
- package/ktor-ktor-events.mjs +5 -5
- package/ktor-ktor-http-cio.mjs +306 -306
- package/ktor-ktor-http.mjs +613 -613
- package/ktor-ktor-serialization-kotlinx-json.mjs +7 -7
- package/ktor-ktor-serialization-kotlinx.mjs +120 -120
- package/ktor-ktor-serialization.mjs +51 -51
- package/ktor-ktor-utils.mjs +494 -494
- package/ktor-ktor-websockets.mjs +324 -324
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.d.mts +181 -124
- package/solibo-sdk-sdk-home-api.mjs +48344 -47882
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
package/ktor-ktor-http-cio.mjs
CHANGED
|
@@ -142,12 +142,12 @@ initMetadataForClass(MutableRange, 'MutableRange');
|
|
|
142
142
|
//endregion
|
|
143
143
|
function CIOMultipartDataBase(coroutineContext, channel, contentType, contentLength, formFieldLimit) {
|
|
144
144
|
formFieldLimit = formFieldLimit === VOID ? 65536n : formFieldLimit;
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
147
|
-
this.
|
|
145
|
+
this.v2v_1 = coroutineContext;
|
|
146
|
+
this.w2v_1 = null;
|
|
147
|
+
this.x2v_1 = parseMultipart(this, channel, contentType, contentLength, formFieldLimit);
|
|
148
148
|
}
|
|
149
149
|
protoOf(CIOMultipartDataBase).cs = function () {
|
|
150
|
-
return this.
|
|
150
|
+
return this.v2v_1;
|
|
151
151
|
};
|
|
152
152
|
function get_IntArrayPool() {
|
|
153
153
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
@@ -160,103 +160,103 @@ function get_HeadersDataPool() {
|
|
|
160
160
|
}
|
|
161
161
|
var HeadersDataPool;
|
|
162
162
|
function thresholdReached($this) {
|
|
163
|
-
return $this.
|
|
163
|
+
return $this.z2v_1 >= $this.a2w_1 * 0.75;
|
|
164
164
|
}
|
|
165
165
|
function resize($this) {
|
|
166
|
-
var prevSize = $this.
|
|
167
|
-
var prevData = $this.
|
|
168
|
-
$this.
|
|
169
|
-
$this.
|
|
166
|
+
var prevSize = $this.z2v_1;
|
|
167
|
+
var prevData = $this.b2w_1;
|
|
168
|
+
$this.z2v_1 = 0;
|
|
169
|
+
$this.a2w_1 = imul($this.a2w_1, 2) | 128;
|
|
170
170
|
var tmp = $this;
|
|
171
171
|
// Inline function 'kotlin.apply' call
|
|
172
172
|
var this_0 = get_HeadersDataPool().l1r();
|
|
173
|
-
this_0.
|
|
174
|
-
tmp.
|
|
175
|
-
var _iterator__ex2g4s = prevData.
|
|
173
|
+
this_0.e2w(imul(prevData.d2w(), 2) | 1);
|
|
174
|
+
tmp.b2w_1 = this_0;
|
|
175
|
+
var _iterator__ex2g4s = prevData.f2w().t();
|
|
176
176
|
while (_iterator__ex2g4s.u()) {
|
|
177
177
|
var headerOffset = _iterator__ex2g4s.v();
|
|
178
|
-
$this.
|
|
178
|
+
$this.h2w(prevData.g2w(headerOffset + 1 | 0), prevData.g2w(headerOffset + 2 | 0), prevData.g2w(headerOffset + 3 | 0), prevData.g2w(headerOffset + 4 | 0));
|
|
179
179
|
}
|
|
180
180
|
get_HeadersDataPool().m1r(prevData);
|
|
181
181
|
// Inline function 'kotlin.require' call
|
|
182
182
|
// Inline function 'kotlin.require' call
|
|
183
|
-
if (!(prevSize === $this.
|
|
183
|
+
if (!(prevSize === $this.z2v_1)) {
|
|
184
184
|
var message = 'Failed requirement.';
|
|
185
185
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
function headerHasName($this, name, headerOffset) {
|
|
189
|
-
var nameStartIndex = $this.
|
|
190
|
-
var nameEndIndex = $this.
|
|
191
|
-
return equalsLowerCase($this.
|
|
189
|
+
var nameStartIndex = $this.b2w_1.g2w(headerOffset + 1 | 0);
|
|
190
|
+
var nameEndIndex = $this.b2w_1.g2w(headerOffset + 2 | 0);
|
|
191
|
+
return equalsLowerCase($this.y2v_1, nameStartIndex, nameEndIndex, name);
|
|
192
192
|
}
|
|
193
193
|
function HttpHeadersMap(builder) {
|
|
194
|
-
this.
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
197
|
-
this.
|
|
194
|
+
this.y2v_1 = builder;
|
|
195
|
+
this.z2v_1 = 0;
|
|
196
|
+
this.a2w_1 = 0;
|
|
197
|
+
this.b2w_1 = get_HeadersDataPool().l1r();
|
|
198
198
|
}
|
|
199
|
-
protoOf(HttpHeadersMap).
|
|
200
|
-
if (this.
|
|
199
|
+
protoOf(HttpHeadersMap).j2d = function (name) {
|
|
200
|
+
if (this.z2v_1 === 0)
|
|
201
201
|
return null;
|
|
202
202
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
203
203
|
var this_0 = hashCodeLowerCase(name);
|
|
204
204
|
var hash = abs(this_0);
|
|
205
|
-
var headerIndex = hash % this.
|
|
206
|
-
while (!(this.
|
|
205
|
+
var headerIndex = hash % this.a2w_1 | 0;
|
|
206
|
+
while (!(this.b2w_1.g2w(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
207
207
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
208
|
-
return this.
|
|
208
|
+
return this.i2w(imul(headerIndex, 6));
|
|
209
209
|
}
|
|
210
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
210
|
+
headerIndex = (headerIndex + 1 | 0) % this.a2w_1 | 0;
|
|
211
211
|
}
|
|
212
212
|
return null;
|
|
213
213
|
};
|
|
214
|
-
protoOf(HttpHeadersMap).
|
|
215
|
-
return this.
|
|
214
|
+
protoOf(HttpHeadersMap).j2w = function () {
|
|
215
|
+
return this.b2w_1.f2w();
|
|
216
216
|
};
|
|
217
|
-
protoOf(HttpHeadersMap).
|
|
217
|
+
protoOf(HttpHeadersMap).h2w = function (nameStartIndex, nameEndIndex, valueStartIndex, valueEndIndex) {
|
|
218
218
|
if (thresholdReached(this)) {
|
|
219
219
|
resize(this);
|
|
220
220
|
}
|
|
221
221
|
// Inline function 'kotlin.math.absoluteValue' call
|
|
222
|
-
var this_0 = hashCodeLowerCase(this.
|
|
222
|
+
var this_0 = hashCodeLowerCase(this.y2v_1, nameStartIndex, nameEndIndex);
|
|
223
223
|
var hash = abs(this_0);
|
|
224
|
-
var name = this.
|
|
225
|
-
var headerIndex = hash % this.
|
|
224
|
+
var name = this.y2v_1.c(nameStartIndex, nameEndIndex);
|
|
225
|
+
var headerIndex = hash % this.a2w_1 | 0;
|
|
226
226
|
var sameNameHeaderIndex = -1;
|
|
227
|
-
while (!(this.
|
|
227
|
+
while (!(this.b2w_1.g2w(imul(headerIndex, 6) + 0 | 0) === -1)) {
|
|
228
228
|
if (headerHasName(this, name, imul(headerIndex, 6))) {
|
|
229
229
|
sameNameHeaderIndex = headerIndex;
|
|
230
230
|
}
|
|
231
|
-
headerIndex = (headerIndex + 1 | 0) % this.
|
|
231
|
+
headerIndex = (headerIndex + 1 | 0) % this.a2w_1 | 0;
|
|
232
232
|
}
|
|
233
233
|
var headerOffset = imul(headerIndex, 6);
|
|
234
|
-
this.
|
|
235
|
-
this.
|
|
236
|
-
this.
|
|
237
|
-
this.
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
234
|
+
this.b2w_1.r2w(headerOffset + 0 | 0, hash);
|
|
235
|
+
this.b2w_1.r2w(headerOffset + 1 | 0, nameStartIndex);
|
|
236
|
+
this.b2w_1.r2w(headerOffset + 2 | 0, nameEndIndex);
|
|
237
|
+
this.b2w_1.r2w(headerOffset + 3 | 0, valueStartIndex);
|
|
238
|
+
this.b2w_1.r2w(headerOffset + 4 | 0, valueEndIndex);
|
|
239
|
+
this.b2w_1.r2w(headerOffset + 5 | 0, -1);
|
|
240
240
|
if (!(sameNameHeaderIndex === -1)) {
|
|
241
|
-
this.
|
|
241
|
+
this.b2w_1.r2w(imul(sameNameHeaderIndex, 6) + 5 | 0, headerIndex);
|
|
242
242
|
}
|
|
243
|
-
this.
|
|
243
|
+
this.z2v_1 = this.z2v_1 + 1 | 0;
|
|
244
244
|
};
|
|
245
|
-
protoOf(HttpHeadersMap).
|
|
246
|
-
var nameStartIndex = this.
|
|
247
|
-
var nameEndIndex = this.
|
|
248
|
-
return this.
|
|
245
|
+
protoOf(HttpHeadersMap).s2w = function (headerOffset) {
|
|
246
|
+
var nameStartIndex = this.b2w_1.g2w(headerOffset + 1 | 0);
|
|
247
|
+
var nameEndIndex = this.b2w_1.g2w(headerOffset + 2 | 0);
|
|
248
|
+
return this.y2v_1.c(nameStartIndex, nameEndIndex);
|
|
249
249
|
};
|
|
250
|
-
protoOf(HttpHeadersMap).
|
|
251
|
-
var valueStartIndex = this.
|
|
252
|
-
var valueEndIndex = this.
|
|
253
|
-
return this.
|
|
250
|
+
protoOf(HttpHeadersMap).i2w = function (headerOffset) {
|
|
251
|
+
var valueStartIndex = this.b2w_1.g2w(headerOffset + 3 | 0);
|
|
252
|
+
var valueEndIndex = this.b2w_1.g2w(headerOffset + 4 | 0);
|
|
253
|
+
return this.y2v_1.c(valueStartIndex, valueEndIndex);
|
|
254
254
|
};
|
|
255
|
-
protoOf(HttpHeadersMap).
|
|
256
|
-
this.
|
|
257
|
-
this.
|
|
258
|
-
get_HeadersDataPool().m1r(this.
|
|
259
|
-
this.
|
|
255
|
+
protoOf(HttpHeadersMap).t2w = function () {
|
|
256
|
+
this.z2v_1 = 0;
|
|
257
|
+
this.a2w_1 = 0;
|
|
258
|
+
get_HeadersDataPool().m1r(this.b2w_1);
|
|
259
|
+
this.b2w_1 = get_HeadersDataPool().l1r();
|
|
260
260
|
};
|
|
261
261
|
protoOf(HttpHeadersMap).toString = function () {
|
|
262
262
|
// Inline function 'kotlin.text.buildString' call
|
|
@@ -266,17 +266,17 @@ protoOf(HttpHeadersMap).toString = function () {
|
|
|
266
266
|
return this_0.toString();
|
|
267
267
|
};
|
|
268
268
|
function HeadersData$headersStarts$slambda(this$0, resultContinuation) {
|
|
269
|
-
this.
|
|
269
|
+
this.c2x_1 = this$0;
|
|
270
270
|
CoroutineImpl.call(this, resultContinuation);
|
|
271
271
|
}
|
|
272
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
273
|
-
var tmp = this.
|
|
272
|
+
protoOf(HeadersData$headersStarts$slambda).i2x = function ($this$sequence, $completion) {
|
|
273
|
+
var tmp = this.j2x($this$sequence, $completion);
|
|
274
274
|
tmp.l8_1 = Unit_instance;
|
|
275
275
|
tmp.m8_1 = null;
|
|
276
276
|
return tmp.r8();
|
|
277
277
|
};
|
|
278
278
|
protoOf(HeadersData$headersStarts$slambda).d9 = function (p1, $completion) {
|
|
279
|
-
return this.
|
|
279
|
+
return this.i2x(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
280
280
|
};
|
|
281
281
|
protoOf(HeadersData$headersStarts$slambda).r8 = function () {
|
|
282
282
|
var suspendResult = this.l8_1;
|
|
@@ -286,29 +286,29 @@ protoOf(HeadersData$headersStarts$slambda).r8 = function () {
|
|
|
286
286
|
switch (tmp) {
|
|
287
287
|
case 0:
|
|
288
288
|
this.k8_1 = 7;
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
289
|
+
this.e2x_1 = 0;
|
|
290
|
+
this.h2x_1 = this.c2x_1.c2w_1.t();
|
|
291
291
|
this.j8_1 = 1;
|
|
292
292
|
continue $sm;
|
|
293
293
|
case 1:
|
|
294
|
-
if (!this.
|
|
294
|
+
if (!this.h2x_1.u()) {
|
|
295
295
|
this.j8_1 = 6;
|
|
296
296
|
continue $sm;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
299
|
+
this.g2x_1 = this.h2x_1.v();
|
|
300
|
+
this.f2x_1 = 0;
|
|
301
301
|
this.j8_1 = 2;
|
|
302
302
|
continue $sm;
|
|
303
303
|
case 2:
|
|
304
|
-
if (!(this.
|
|
304
|
+
if (!(this.f2x_1 < this.g2x_1.length)) {
|
|
305
305
|
this.j8_1 = 5;
|
|
306
306
|
continue $sm;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
if (!(this.
|
|
309
|
+
if (!(this.c2x_1.g2w(this.e2x_1 + 0 | 0) === -1)) {
|
|
310
310
|
this.j8_1 = 3;
|
|
311
|
-
suspendResult = this.
|
|
311
|
+
suspendResult = this.d2x_1.xe(this.e2x_1, this);
|
|
312
312
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
313
313
|
return suspendResult;
|
|
314
314
|
}
|
|
@@ -322,8 +322,8 @@ protoOf(HeadersData$headersStarts$slambda).r8 = function () {
|
|
|
322
322
|
this.j8_1 = 4;
|
|
323
323
|
continue $sm;
|
|
324
324
|
case 4:
|
|
325
|
-
this.
|
|
326
|
-
this.
|
|
325
|
+
this.f2x_1 = this.f2x_1 + 6 | 0;
|
|
326
|
+
this.e2x_1 = this.e2x_1 + 6 | 0;
|
|
327
327
|
this.j8_1 = 2;
|
|
328
328
|
continue $sm;
|
|
329
329
|
case 5:
|
|
@@ -345,15 +345,15 @@ protoOf(HeadersData$headersStarts$slambda).r8 = function () {
|
|
|
345
345
|
}
|
|
346
346
|
while (true);
|
|
347
347
|
};
|
|
348
|
-
protoOf(HeadersData$headersStarts$slambda).
|
|
349
|
-
var i = new HeadersData$headersStarts$slambda(this.
|
|
350
|
-
i.
|
|
348
|
+
protoOf(HeadersData$headersStarts$slambda).j2x = function ($this$sequence, completion) {
|
|
349
|
+
var i = new HeadersData$headersStarts$slambda(this.c2x_1, completion);
|
|
350
|
+
i.d2x_1 = $this$sequence;
|
|
351
351
|
return i;
|
|
352
352
|
};
|
|
353
353
|
function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
354
354
|
var i = new HeadersData$headersStarts$slambda(this$0, resultContinuation);
|
|
355
355
|
var l = function ($this$sequence, $completion) {
|
|
356
|
-
return i.
|
|
356
|
+
return i.i2x($this$sequence, $completion);
|
|
357
357
|
};
|
|
358
358
|
l.$arity = 1;
|
|
359
359
|
return l;
|
|
@@ -361,48 +361,48 @@ function HeadersData$headersStarts$slambda_0(this$0, resultContinuation) {
|
|
|
361
361
|
function HeadersData() {
|
|
362
362
|
var tmp = this;
|
|
363
363
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
364
|
-
tmp.
|
|
364
|
+
tmp.c2w_1 = ArrayList_init_$Create$();
|
|
365
365
|
}
|
|
366
|
-
protoOf(HeadersData).
|
|
367
|
-
return this.
|
|
366
|
+
protoOf(HeadersData).d2w = function () {
|
|
367
|
+
return this.c2w_1.g1();
|
|
368
368
|
};
|
|
369
|
-
protoOf(HeadersData).
|
|
369
|
+
protoOf(HeadersData).e2w = function (subArraysCount) {
|
|
370
370
|
// Inline function 'kotlin.repeat' call
|
|
371
371
|
var inductionVariable = 0;
|
|
372
372
|
if (inductionVariable < subArraysCount)
|
|
373
373
|
do {
|
|
374
374
|
var index = inductionVariable;
|
|
375
375
|
inductionVariable = inductionVariable + 1 | 0;
|
|
376
|
-
this.
|
|
376
|
+
this.c2w_1.e1(get_IntArrayPool().l1r());
|
|
377
377
|
}
|
|
378
378
|
while (inductionVariable < subArraysCount);
|
|
379
379
|
};
|
|
380
|
-
protoOf(HeadersData).
|
|
381
|
-
return this.
|
|
380
|
+
protoOf(HeadersData).g2w = function (index) {
|
|
381
|
+
return this.c2w_1.h1(index / 768 | 0)[index % 768 | 0];
|
|
382
382
|
};
|
|
383
|
-
protoOf(HeadersData).
|
|
384
|
-
this.
|
|
383
|
+
protoOf(HeadersData).r2w = function (index, value) {
|
|
384
|
+
this.c2w_1.h1(index / 768 | 0)[index % 768 | 0] = value;
|
|
385
385
|
};
|
|
386
|
-
protoOf(HeadersData).
|
|
386
|
+
protoOf(HeadersData).f2w = function () {
|
|
387
387
|
return sequence(HeadersData$headersStarts$slambda_0(this, null));
|
|
388
388
|
};
|
|
389
|
-
protoOf(HeadersData).
|
|
390
|
-
var _iterator__ex2g4s = this.
|
|
389
|
+
protoOf(HeadersData).t2w = function () {
|
|
390
|
+
var _iterator__ex2g4s = this.c2w_1.t();
|
|
391
391
|
while (_iterator__ex2g4s.u()) {
|
|
392
392
|
var array = _iterator__ex2g4s.v();
|
|
393
393
|
get_IntArrayPool().m1r(array);
|
|
394
394
|
}
|
|
395
|
-
this.
|
|
395
|
+
this.c2w_1.n2();
|
|
396
396
|
};
|
|
397
397
|
function dumpTo(_this__u8e3s4, indent, out) {
|
|
398
398
|
_init_properties_HttpHeadersMap_kt__hwatby();
|
|
399
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
399
|
+
var _iterator__ex2g4s = _this__u8e3s4.j2w().t();
|
|
400
400
|
while (_iterator__ex2g4s.u()) {
|
|
401
401
|
var offset = _iterator__ex2g4s.v();
|
|
402
402
|
out.f1(indent);
|
|
403
|
-
out.f1(_this__u8e3s4.
|
|
403
|
+
out.f1(_this__u8e3s4.s2w(offset));
|
|
404
404
|
out.f1(' => ');
|
|
405
|
-
out.f1(_this__u8e3s4.
|
|
405
|
+
out.f1(_this__u8e3s4.i2w(offset));
|
|
406
406
|
out.f1('\n');
|
|
407
407
|
}
|
|
408
408
|
}
|
|
@@ -418,12 +418,12 @@ protoOf(IntArrayPool$1).e1r = function () {
|
|
|
418
418
|
}
|
|
419
419
|
return tmp_0;
|
|
420
420
|
};
|
|
421
|
-
protoOf(IntArrayPool$1).
|
|
421
|
+
protoOf(IntArrayPool$1).n2x = function (instance) {
|
|
422
422
|
fill(instance, -1);
|
|
423
423
|
return protoOf(DefaultPool).j1r.call(this, instance);
|
|
424
424
|
};
|
|
425
425
|
protoOf(IntArrayPool$1).j1r = function (instance) {
|
|
426
|
-
return this.
|
|
426
|
+
return this.n2x(isIntArray(instance) ? instance : THROW_CCE());
|
|
427
427
|
};
|
|
428
428
|
function HeadersDataPool$1() {
|
|
429
429
|
DefaultPool.call(this, 1000);
|
|
@@ -431,12 +431,12 @@ function HeadersDataPool$1() {
|
|
|
431
431
|
protoOf(HeadersDataPool$1).e1r = function () {
|
|
432
432
|
return new HeadersData();
|
|
433
433
|
};
|
|
434
|
-
protoOf(HeadersDataPool$1).
|
|
435
|
-
instance.
|
|
434
|
+
protoOf(HeadersDataPool$1).r2x = function (instance) {
|
|
435
|
+
instance.t2w();
|
|
436
436
|
return protoOf(DefaultPool).j1r.call(this, instance);
|
|
437
437
|
};
|
|
438
438
|
protoOf(HeadersDataPool$1).j1r = function (instance) {
|
|
439
|
-
return this.
|
|
439
|
+
return this.r2x(instance instanceof HeadersData ? instance : THROW_CCE());
|
|
440
440
|
};
|
|
441
441
|
var properties_initialized_HttpHeadersMap_kt_kotj4w;
|
|
442
442
|
function _init_properties_HttpHeadersMap_kt__hwatby() {
|
|
@@ -462,16 +462,16 @@ function parseHeaders(input, builder, range, $completion) {
|
|
|
462
462
|
}
|
|
463
463
|
function parseHeaderName(text, range) {
|
|
464
464
|
_init_properties_HttpParser_kt__gbdom1();
|
|
465
|
-
var index = range.
|
|
466
|
-
var end = range.
|
|
465
|
+
var index = range.f2y_1;
|
|
466
|
+
var end = range.g2y_1;
|
|
467
467
|
while (index < end) {
|
|
468
468
|
var ch = text.b(index);
|
|
469
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
470
|
-
range.
|
|
469
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.f2y_1)) {
|
|
470
|
+
range.f2y_1 = index + 1 | 0;
|
|
471
471
|
return index;
|
|
472
472
|
}
|
|
473
473
|
if (isDelimiter(ch)) {
|
|
474
|
-
parseHeaderNameFailed(text, index, range.
|
|
474
|
+
parseHeaderNameFailed(text, index, range.f2y_1, ch);
|
|
475
475
|
}
|
|
476
476
|
index = index + 1 | 0;
|
|
477
477
|
}
|
|
@@ -479,12 +479,12 @@ function parseHeaderName(text, range) {
|
|
|
479
479
|
}
|
|
480
480
|
function parseHeaderValue(text, range) {
|
|
481
481
|
_init_properties_HttpParser_kt__gbdom1();
|
|
482
|
-
var start = range.
|
|
483
|
-
var end = range.
|
|
482
|
+
var start = range.f2y_1;
|
|
483
|
+
var end = range.g2y_1;
|
|
484
484
|
var index = start;
|
|
485
485
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
486
486
|
if (index >= end) {
|
|
487
|
-
range.
|
|
487
|
+
range.f2y_1 = end;
|
|
488
488
|
return Unit_instance;
|
|
489
489
|
}
|
|
490
490
|
var valueStart = index;
|
|
@@ -498,8 +498,8 @@ function parseHeaderValue(text, range) {
|
|
|
498
498
|
valueLastIndex = index;
|
|
499
499
|
index = index + 1 | 0;
|
|
500
500
|
}
|
|
501
|
-
range.
|
|
502
|
-
range.
|
|
501
|
+
range.f2y_1 = valueStart;
|
|
502
|
+
range.g2y_1 = valueLastIndex + 1 | 0;
|
|
503
503
|
}
|
|
504
504
|
function validateHostHeader(host) {
|
|
505
505
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -540,9 +540,9 @@ function parseHeaderNameFailed(text, index, start, ch) {
|
|
|
540
540
|
}
|
|
541
541
|
function noColonFound(text, range) {
|
|
542
542
|
_init_properties_HttpParser_kt__gbdom1();
|
|
543
|
-
var tmp2 = range.
|
|
543
|
+
var tmp2 = range.f2y_1;
|
|
544
544
|
// Inline function 'kotlin.text.substring' call
|
|
545
|
-
var endIndex = range.
|
|
545
|
+
var endIndex = range.g2y_1;
|
|
546
546
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
547
547
|
throw new ParserException('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
548
548
|
}
|
|
@@ -558,9 +558,9 @@ function ParserException(message) {
|
|
|
558
558
|
}
|
|
559
559
|
function $parseHeadersCOROUTINE$(input, builder, range, resultContinuation) {
|
|
560
560
|
CoroutineImpl.call(this, resultContinuation);
|
|
561
|
-
this.
|
|
562
|
-
this.
|
|
563
|
-
this.
|
|
561
|
+
this.a2y_1 = input;
|
|
562
|
+
this.b2y_1 = builder;
|
|
563
|
+
this.c2y_1 = range;
|
|
564
564
|
}
|
|
565
565
|
protoOf($parseHeadersCOROUTINE$).r8 = function () {
|
|
566
566
|
var suspendResult = this.l8_1;
|
|
@@ -570,7 +570,7 @@ protoOf($parseHeadersCOROUTINE$).r8 = function () {
|
|
|
570
570
|
switch (tmp) {
|
|
571
571
|
case 0:
|
|
572
572
|
this.k8_1 = 7;
|
|
573
|
-
this.
|
|
573
|
+
this.d2y_1 = new HttpHeadersMap(this.b2y_1);
|
|
574
574
|
this.k8_1 = 6;
|
|
575
575
|
this.j8_1 = 1;
|
|
576
576
|
continue $sm;
|
|
@@ -581,7 +581,7 @@ protoOf($parseHeadersCOROUTINE$).r8 = function () {
|
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
this.j8_1 = 2;
|
|
584
|
-
suspendResult = readLineStrictTo(this.
|
|
584
|
+
suspendResult = readLineStrictTo(this.a2y_1, this.b2y_1, 8192n, VOID, this);
|
|
585
585
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
586
586
|
return suspendResult;
|
|
587
587
|
}
|
|
@@ -589,7 +589,7 @@ protoOf($parseHeadersCOROUTINE$).r8 = function () {
|
|
|
589
589
|
continue $sm;
|
|
590
590
|
case 2:
|
|
591
591
|
if (suspendResult === -1n) {
|
|
592
|
-
this.
|
|
592
|
+
this.d2y_1.t2w();
|
|
593
593
|
return null;
|
|
594
594
|
} else {
|
|
595
595
|
this.j8_1 = 3;
|
|
@@ -597,9 +597,9 @@ protoOf($parseHeadersCOROUTINE$).r8 = function () {
|
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
case 3:
|
|
600
|
-
this.
|
|
601
|
-
this.
|
|
602
|
-
if (this.
|
|
600
|
+
this.c2y_1.g2y_1 = this.b2y_1.q2w_1;
|
|
601
|
+
this.e2y_1 = this.c2y_1.g2y_1 - this.c2y_1.f2y_1 | 0;
|
|
602
|
+
if (this.e2y_1 === 0) {
|
|
603
603
|
this.j8_1 = 5;
|
|
604
604
|
continue $sm;
|
|
605
605
|
} else {
|
|
@@ -608,34 +608,34 @@ protoOf($parseHeadersCOROUTINE$).r8 = function () {
|
|
|
608
608
|
}
|
|
609
609
|
|
|
610
610
|
case 4:
|
|
611
|
-
if (this.
|
|
611
|
+
if (this.e2y_1 >= 8192) {
|
|
612
612
|
var message = 'Header line length limit exceeded';
|
|
613
613
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
614
614
|
}
|
|
615
615
|
|
|
616
|
-
var nameStart = this.
|
|
617
|
-
var nameEnd = parseHeaderName(this.
|
|
618
|
-
var headerEnd = this.
|
|
619
|
-
parseHeaderValue(this.
|
|
620
|
-
var valueStart = this.
|
|
621
|
-
var valueEnd = this.
|
|
622
|
-
this.
|
|
623
|
-
this.
|
|
616
|
+
var nameStart = this.c2y_1.f2y_1;
|
|
617
|
+
var nameEnd = parseHeaderName(this.b2y_1, this.c2y_1);
|
|
618
|
+
var headerEnd = this.c2y_1.g2y_1;
|
|
619
|
+
parseHeaderValue(this.b2y_1, this.c2y_1);
|
|
620
|
+
var valueStart = this.c2y_1.f2y_1;
|
|
621
|
+
var valueEnd = this.c2y_1.g2y_1;
|
|
622
|
+
this.c2y_1.f2y_1 = headerEnd;
|
|
623
|
+
this.d2y_1.h2w(nameStart, nameEnd, valueStart, valueEnd);
|
|
624
624
|
this.j8_1 = 1;
|
|
625
625
|
continue $sm;
|
|
626
626
|
case 5:
|
|
627
|
-
var host = this.
|
|
627
|
+
var host = this.d2y_1.j2d('Host');
|
|
628
628
|
if (!(host == null)) {
|
|
629
629
|
validateHostHeader(host);
|
|
630
630
|
}
|
|
631
631
|
|
|
632
|
-
return this.
|
|
632
|
+
return this.d2y_1;
|
|
633
633
|
case 6:
|
|
634
634
|
this.k8_1 = 7;
|
|
635
635
|
var tmp_0 = this.m8_1;
|
|
636
636
|
if (tmp_0 instanceof Error) {
|
|
637
637
|
var t = this.m8_1;
|
|
638
|
-
this.
|
|
638
|
+
this.d2y_1.t2w();
|
|
639
639
|
throw t;
|
|
640
640
|
} else {
|
|
641
641
|
throw this.m8_1;
|
|
@@ -661,7 +661,7 @@ function _init_properties_HttpParser_kt__gbdom1() {
|
|
|
661
661
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
662
662
|
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))]);
|
|
663
663
|
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance_0().q1q_1, Companion_getInstance_0().p1q_1);
|
|
664
|
-
versions = Companion_instance.
|
|
664
|
+
versions = Companion_instance.h2y(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
665
665
|
}
|
|
666
666
|
}
|
|
667
667
|
function get_CrLf() {
|
|
@@ -676,23 +676,23 @@ function get_PrefixString() {
|
|
|
676
676
|
var PrefixString;
|
|
677
677
|
function Preamble(body) {
|
|
678
678
|
MultipartEvent.call(this);
|
|
679
|
-
this.
|
|
679
|
+
this.i2y_1 = body;
|
|
680
680
|
}
|
|
681
681
|
function MultipartPart(headers, body) {
|
|
682
682
|
MultipartEvent.call(this);
|
|
683
|
-
this.
|
|
684
|
-
this.
|
|
683
|
+
this.j2y_1 = headers;
|
|
684
|
+
this.k2y_1 = body;
|
|
685
685
|
}
|
|
686
686
|
function Epilogue(body) {
|
|
687
687
|
MultipartEvent.call(this);
|
|
688
|
-
this.
|
|
688
|
+
this.l2y_1 = body;
|
|
689
689
|
}
|
|
690
690
|
function MultipartEvent() {
|
|
691
691
|
}
|
|
692
692
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
693
693
|
maxPartSize = maxPartSize === VOID ? 9223372036854775807n : maxPartSize;
|
|
694
694
|
_init_properties_Multipart_kt__ato98a();
|
|
695
|
-
if (!MultiPart_getInstance().
|
|
695
|
+
if (!MultiPart_getInstance().h2k(contentType)) {
|
|
696
696
|
throw new UnsupportedMediaTypeExceptionCIO('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
697
697
|
}
|
|
698
698
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
@@ -869,18 +869,18 @@ function parseBoundaryInternal$put(position, boundaryBytes, value) {
|
|
|
869
869
|
boundaryBytes[_unary__edvuaz] = value;
|
|
870
870
|
}
|
|
871
871
|
function parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation) {
|
|
872
|
-
this.
|
|
873
|
-
this.
|
|
872
|
+
this.f30_1 = $firstBoundary;
|
|
873
|
+
this.g30_1 = $countedInput;
|
|
874
874
|
CoroutineImpl.call(this, resultContinuation);
|
|
875
875
|
}
|
|
876
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
877
|
-
var tmp = this.
|
|
876
|
+
protoOf(parseMultipart$slambda$slambda).i30 = function ($this$writer, $completion) {
|
|
877
|
+
var tmp = this.j30($this$writer, $completion);
|
|
878
878
|
tmp.l8_1 = Unit_instance;
|
|
879
879
|
tmp.m8_1 = null;
|
|
880
880
|
return tmp.r8();
|
|
881
881
|
};
|
|
882
882
|
protoOf(parseMultipart$slambda$slambda).d9 = function (p1, $completion) {
|
|
883
|
-
return this.
|
|
883
|
+
return this.i30(p1 instanceof WriterScope ? p1 : THROW_CCE(), $completion);
|
|
884
884
|
};
|
|
885
885
|
protoOf(parseMultipart$slambda$slambda).r8 = function () {
|
|
886
886
|
var suspendResult = this.l8_1;
|
|
@@ -891,7 +891,7 @@ protoOf(parseMultipart$slambda$slambda).r8 = function () {
|
|
|
891
891
|
case 0:
|
|
892
892
|
this.k8_1 = 3;
|
|
893
893
|
this.j8_1 = 1;
|
|
894
|
-
suspendResult = parsePreambleImpl(this.
|
|
894
|
+
suspendResult = parsePreambleImpl(this.f30_1, this.g30_1, this.h30_1.q1o_1, 8193n, this);
|
|
895
895
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
896
896
|
return suspendResult;
|
|
897
897
|
}
|
|
@@ -899,7 +899,7 @@ protoOf(parseMultipart$slambda$slambda).r8 = function () {
|
|
|
899
899
|
continue $sm;
|
|
900
900
|
case 1:
|
|
901
901
|
this.j8_1 = 2;
|
|
902
|
-
suspendResult = this.
|
|
902
|
+
suspendResult = this.h30_1.q1o_1.c1h(this);
|
|
903
903
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
904
904
|
return suspendResult;
|
|
905
905
|
}
|
|
@@ -921,34 +921,34 @@ protoOf(parseMultipart$slambda$slambda).r8 = function () {
|
|
|
921
921
|
}
|
|
922
922
|
while (true);
|
|
923
923
|
};
|
|
924
|
-
protoOf(parseMultipart$slambda$slambda).
|
|
925
|
-
var i = new parseMultipart$slambda$slambda(this.
|
|
926
|
-
i.
|
|
924
|
+
protoOf(parseMultipart$slambda$slambda).j30 = function ($this$writer, completion) {
|
|
925
|
+
var i = new parseMultipart$slambda$slambda(this.f30_1, this.g30_1, completion);
|
|
926
|
+
i.h30_1 = $this$writer;
|
|
927
927
|
return i;
|
|
928
928
|
};
|
|
929
929
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
|
|
930
930
|
var i = new parseMultipart$slambda$slambda($firstBoundary, $countedInput, resultContinuation);
|
|
931
931
|
var l = function ($this$writer, $completion) {
|
|
932
|
-
return i.
|
|
932
|
+
return i.i30($this$writer, $completion);
|
|
933
933
|
};
|
|
934
934
|
l.$arity = 1;
|
|
935
935
|
return l;
|
|
936
936
|
}
|
|
937
937
|
function parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
938
|
-
this.
|
|
939
|
-
this.
|
|
940
|
-
this.
|
|
941
|
-
this.
|
|
938
|
+
this.s30_1 = $input;
|
|
939
|
+
this.t30_1 = $boundaryPrefixed;
|
|
940
|
+
this.u30_1 = $maxPartSize;
|
|
941
|
+
this.v30_1 = $totalLength;
|
|
942
942
|
CoroutineImpl.call(this, resultContinuation);
|
|
943
943
|
}
|
|
944
|
-
protoOf(parseMultipart$slambda).
|
|
945
|
-
var tmp = this.
|
|
944
|
+
protoOf(parseMultipart$slambda).e31 = function ($this$produce, $completion) {
|
|
945
|
+
var tmp = this.f31($this$produce, $completion);
|
|
946
946
|
tmp.l8_1 = Unit_instance;
|
|
947
947
|
tmp.m8_1 = null;
|
|
948
948
|
return tmp.r8();
|
|
949
949
|
};
|
|
950
950
|
protoOf(parseMultipart$slambda).d9 = function (p1, $completion) {
|
|
951
|
-
return this.
|
|
951
|
+
return this.e31((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
952
952
|
};
|
|
953
953
|
protoOf(parseMultipart$slambda).r8 = function () {
|
|
954
954
|
var suspendResult = this.l8_1;
|
|
@@ -958,11 +958,11 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
958
958
|
switch (tmp) {
|
|
959
959
|
case 0:
|
|
960
960
|
this.k8_1 = 25;
|
|
961
|
-
this.
|
|
962
|
-
this.
|
|
963
|
-
this.
|
|
961
|
+
this.x30_1 = counted(this.s30_1);
|
|
962
|
+
this.y30_1 = this.x30_1.n1q();
|
|
963
|
+
this.c31_1 = this.t30_1.jo(get_PrefixString().g1());
|
|
964
964
|
this.j8_1 = 1;
|
|
965
|
-
suspendResult = readRemaining(writer(this.
|
|
965
|
+
suspendResult = readRemaining(writer(this.w30_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.c31_1, this.x30_1, null)).o1o_1, this);
|
|
966
966
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
967
967
|
return suspendResult;
|
|
968
968
|
}
|
|
@@ -972,7 +972,7 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
972
972
|
var preambleData = suspendResult;
|
|
973
973
|
if (get_remaining(preambleData) > 0n) {
|
|
974
974
|
this.j8_1 = 2;
|
|
975
|
-
suspendResult = this.
|
|
975
|
+
suspendResult = this.w30_1.a19(new Preamble(preambleData), this);
|
|
976
976
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
977
977
|
return suspendResult;
|
|
978
978
|
}
|
|
@@ -989,31 +989,31 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
989
989
|
this.j8_1 = 4;
|
|
990
990
|
continue $sm;
|
|
991
991
|
case 4:
|
|
992
|
-
if (!this.
|
|
992
|
+
if (!this.x30_1.z1g()) {
|
|
993
993
|
this.j8_1 = 5;
|
|
994
|
-
suspendResult = skipIfFound(this.
|
|
994
|
+
suspendResult = skipIfFound(this.x30_1, get_PrefixString(), this);
|
|
995
995
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
996
996
|
return suspendResult;
|
|
997
997
|
}
|
|
998
998
|
continue $sm;
|
|
999
999
|
} else {
|
|
1000
|
-
this.
|
|
1000
|
+
this.d31_1 = false;
|
|
1001
1001
|
this.j8_1 = 6;
|
|
1002
1002
|
continue $sm;
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
1005
|
case 5:
|
|
1006
|
-
this.
|
|
1006
|
+
this.d31_1 = !suspendResult;
|
|
1007
1007
|
this.j8_1 = 6;
|
|
1008
1008
|
continue $sm;
|
|
1009
1009
|
case 6:
|
|
1010
|
-
if (!this.
|
|
1010
|
+
if (!this.d31_1) {
|
|
1011
1011
|
this.j8_1 = 15;
|
|
1012
1012
|
continue $sm;
|
|
1013
1013
|
}
|
|
1014
1014
|
|
|
1015
1015
|
this.j8_1 = 7;
|
|
1016
|
-
suspendResult = skipIfFound(this.
|
|
1016
|
+
suspendResult = skipIfFound(this.x30_1, get_CrLf(), this);
|
|
1017
1017
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1018
1018
|
return suspendResult;
|
|
1019
1019
|
}
|
|
@@ -1021,7 +1021,7 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
1021
1021
|
continue $sm;
|
|
1022
1022
|
case 7:
|
|
1023
1023
|
this.j8_1 = 8;
|
|
1024
|
-
suspendResult = skipIfFound(this.
|
|
1024
|
+
suspendResult = skipIfFound(this.x30_1, this.c31_1, this);
|
|
1025
1025
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1026
1026
|
return suspendResult;
|
|
1027
1027
|
}
|
|
@@ -1037,42 +1037,42 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
|
|
1039
1039
|
case 9:
|
|
1040
|
-
this.
|
|
1041
|
-
this.
|
|
1042
|
-
var part = new MultipartPart(this.
|
|
1040
|
+
this.z30_1 = new ByteChannel();
|
|
1041
|
+
this.b31_1 = CompletableDeferred();
|
|
1042
|
+
var part = new MultipartPart(this.b31_1, this.z30_1);
|
|
1043
1043
|
this.j8_1 = 10;
|
|
1044
|
-
suspendResult = this.
|
|
1044
|
+
suspendResult = this.w30_1.a19(part, this);
|
|
1045
1045
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1046
1046
|
return suspendResult;
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
1049
|
continue $sm;
|
|
1050
1050
|
case 10:
|
|
1051
|
-
this.
|
|
1051
|
+
this.a31_1 = null;
|
|
1052
1052
|
this.k8_1 = 14;
|
|
1053
1053
|
this.j8_1 = 11;
|
|
1054
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
1054
|
+
suspendResult = parsePartHeadersImpl(this.x30_1, this);
|
|
1055
1055
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1056
1056
|
return suspendResult;
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
1059
|
continue $sm;
|
|
1060
1060
|
case 11:
|
|
1061
|
-
this.
|
|
1062
|
-
if (!this.
|
|
1063
|
-
this.
|
|
1061
|
+
this.a31_1 = suspendResult;
|
|
1062
|
+
if (!this.b31_1.sy(this.a31_1)) {
|
|
1063
|
+
this.a31_1.t2w();
|
|
1064
1064
|
throw CancellationException_init_$Create$('Multipart processing has been cancelled');
|
|
1065
1065
|
}
|
|
1066
1066
|
|
|
1067
1067
|
this.j8_1 = 12;
|
|
1068
|
-
suspendResult = parsePartBodyImpl(this.
|
|
1068
|
+
suspendResult = parsePartBodyImpl(this.t30_1, this.x30_1, this.z30_1, this.a31_1, this.u30_1, this);
|
|
1069
1069
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1070
1070
|
return suspendResult;
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
1073
|
continue $sm;
|
|
1074
1074
|
case 12:
|
|
1075
|
-
this.
|
|
1075
|
+
this.z30_1.j4();
|
|
1076
1076
|
this.k8_1 = 25;
|
|
1077
1077
|
this.j8_1 = 13;
|
|
1078
1078
|
continue $sm;
|
|
@@ -1085,15 +1085,15 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
1085
1085
|
var tmp_0 = this.m8_1;
|
|
1086
1086
|
if (tmp_0 instanceof Error) {
|
|
1087
1087
|
var cause = this.m8_1;
|
|
1088
|
-
if (this.
|
|
1089
|
-
var tmp0_safe_receiver = this.
|
|
1088
|
+
if (this.b31_1.ty(cause)) {
|
|
1089
|
+
var tmp0_safe_receiver = this.a31_1;
|
|
1090
1090
|
if (tmp0_safe_receiver == null)
|
|
1091
1091
|
null;
|
|
1092
1092
|
else {
|
|
1093
|
-
tmp0_safe_receiver.
|
|
1093
|
+
tmp0_safe_receiver.t2w();
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
|
-
close(this.
|
|
1096
|
+
close(this.z30_1, cause);
|
|
1097
1097
|
throw cause;
|
|
1098
1098
|
} else {
|
|
1099
1099
|
throw this.m8_1;
|
|
@@ -1101,7 +1101,7 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
1101
1101
|
|
|
1102
1102
|
case 15:
|
|
1103
1103
|
this.j8_1 = 16;
|
|
1104
|
-
suspendResult = skipIfFound(this.
|
|
1104
|
+
suspendResult = skipIfFound(this.x30_1, get_CrLf(), this);
|
|
1105
1105
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1106
1106
|
return suspendResult;
|
|
1107
1107
|
}
|
|
@@ -1109,21 +1109,21 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
1109
1109
|
continue $sm;
|
|
1110
1110
|
case 16:
|
|
1111
1111
|
this.j8_1 = 17;
|
|
1112
|
-
suspendResult = skipIfFound(this.
|
|
1112
|
+
suspendResult = skipIfFound(this.x30_1, get_CrLf(), this);
|
|
1113
1113
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1114
1114
|
return suspendResult;
|
|
1115
1115
|
}
|
|
1116
1116
|
|
|
1117
1117
|
continue $sm;
|
|
1118
1118
|
case 17:
|
|
1119
|
-
if (!(this.
|
|
1120
|
-
var consumedExceptEpilogue = subtract(this.
|
|
1121
|
-
var size = subtract(this.
|
|
1119
|
+
if (!(this.v30_1 == null)) {
|
|
1120
|
+
var consumedExceptEpilogue = subtract(this.x30_1.n1q(), this.y30_1);
|
|
1121
|
+
var size = subtract(this.v30_1, consumedExceptEpilogue);
|
|
1122
1122
|
if (size > 2147483647n)
|
|
1123
1123
|
throw IOException_init_$Create$('Failed to parse multipart: prologue is too long');
|
|
1124
1124
|
if (size > 0n) {
|
|
1125
1125
|
this.j8_1 = 21;
|
|
1126
|
-
suspendResult = readPacket(this.
|
|
1126
|
+
suspendResult = readPacket(this.x30_1, convertToInt(size), this);
|
|
1127
1127
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1128
1128
|
return suspendResult;
|
|
1129
1129
|
}
|
|
@@ -1134,7 +1134,7 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
} else {
|
|
1136
1136
|
this.j8_1 = 18;
|
|
1137
|
-
suspendResult = readRemaining(this.
|
|
1137
|
+
suspendResult = readRemaining(this.x30_1, this);
|
|
1138
1138
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1139
1139
|
return suspendResult;
|
|
1140
1140
|
}
|
|
@@ -1145,7 +1145,7 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
1145
1145
|
var epilogueContent = suspendResult;
|
|
1146
1146
|
if (!epilogueContent.ro()) {
|
|
1147
1147
|
this.j8_1 = 19;
|
|
1148
|
-
suspendResult = this.
|
|
1148
|
+
suspendResult = this.w30_1.a19(new Epilogue(epilogueContent), this);
|
|
1149
1149
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1150
1150
|
return suspendResult;
|
|
1151
1151
|
}
|
|
@@ -1165,7 +1165,7 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
1165
1165
|
var ARGUMENT = suspendResult;
|
|
1166
1166
|
var ARGUMENT_0 = new Epilogue(ARGUMENT);
|
|
1167
1167
|
this.j8_1 = 22;
|
|
1168
|
-
suspendResult = this.
|
|
1168
|
+
suspendResult = this.w30_1.a19(ARGUMENT_0, this);
|
|
1169
1169
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1170
1170
|
return suspendResult;
|
|
1171
1171
|
}
|
|
@@ -1193,22 +1193,22 @@ protoOf(parseMultipart$slambda).r8 = function () {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
while (true);
|
|
1195
1195
|
};
|
|
1196
|
-
protoOf(parseMultipart$slambda).
|
|
1197
|
-
var i = new parseMultipart$slambda(this.
|
|
1198
|
-
i.
|
|
1196
|
+
protoOf(parseMultipart$slambda).f31 = function ($this$produce, completion) {
|
|
1197
|
+
var i = new parseMultipart$slambda(this.s30_1, this.t30_1, this.u30_1, this.v30_1, completion);
|
|
1198
|
+
i.w30_1 = $this$produce;
|
|
1199
1199
|
return i;
|
|
1200
1200
|
};
|
|
1201
1201
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
1202
1202
|
var i = new parseMultipart$slambda($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
|
|
1203
1203
|
var l = function ($this$produce, $completion) {
|
|
1204
|
-
return i.
|
|
1204
|
+
return i.e31($this$produce, $completion);
|
|
1205
1205
|
};
|
|
1206
1206
|
l.$arity = 1;
|
|
1207
1207
|
return l;
|
|
1208
1208
|
}
|
|
1209
1209
|
function $parsePartHeadersImplCOROUTINE$(input, resultContinuation) {
|
|
1210
1210
|
CoroutineImpl.call(this, resultContinuation);
|
|
1211
|
-
this.
|
|
1211
|
+
this.u2y_1 = input;
|
|
1212
1212
|
}
|
|
1213
1213
|
protoOf($parsePartHeadersImplCOROUTINE$).r8 = function () {
|
|
1214
1214
|
var suspendResult = this.l8_1;
|
|
@@ -1218,10 +1218,10 @@ protoOf($parsePartHeadersImplCOROUTINE$).r8 = function () {
|
|
|
1218
1218
|
switch (tmp) {
|
|
1219
1219
|
case 0:
|
|
1220
1220
|
this.k8_1 = 3;
|
|
1221
|
-
this.
|
|
1221
|
+
this.v2y_1 = new CharArrayBuilder();
|
|
1222
1222
|
this.k8_1 = 2;
|
|
1223
1223
|
this.j8_1 = 1;
|
|
1224
|
-
suspendResult = parseHeaders(this.
|
|
1224
|
+
suspendResult = parseHeaders(this.u2y_1, this.v2y_1, VOID, this);
|
|
1225
1225
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1226
1226
|
return suspendResult;
|
|
1227
1227
|
}
|
|
@@ -1242,7 +1242,7 @@ protoOf($parsePartHeadersImplCOROUTINE$).r8 = function () {
|
|
|
1242
1242
|
var tmp_1 = this.m8_1;
|
|
1243
1243
|
if (tmp_1 instanceof Error) {
|
|
1244
1244
|
var t = this.m8_1;
|
|
1245
|
-
this.
|
|
1245
|
+
this.v2y_1.t2w();
|
|
1246
1246
|
throw t;
|
|
1247
1247
|
} else {
|
|
1248
1248
|
throw this.m8_1;
|
|
@@ -1264,11 +1264,11 @@ protoOf($parsePartHeadersImplCOROUTINE$).r8 = function () {
|
|
|
1264
1264
|
};
|
|
1265
1265
|
function $parsePartBodyImplCOROUTINE$(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
|
|
1266
1266
|
CoroutineImpl.call(this, resultContinuation);
|
|
1267
|
-
this.
|
|
1268
|
-
this.
|
|
1269
|
-
this.
|
|
1270
|
-
this.
|
|
1271
|
-
this.
|
|
1267
|
+
this.e2z_1 = boundaryPrefixed;
|
|
1268
|
+
this.f2z_1 = input;
|
|
1269
|
+
this.g2z_1 = output;
|
|
1270
|
+
this.h2z_1 = headers;
|
|
1271
|
+
this.i2z_1 = limit;
|
|
1272
1272
|
}
|
|
1273
1273
|
protoOf($parsePartBodyImplCOROUTINE$).r8 = function () {
|
|
1274
1274
|
var suspendResult = this.l8_1;
|
|
@@ -1278,35 +1278,35 @@ protoOf($parsePartBodyImplCOROUTINE$).r8 = function () {
|
|
|
1278
1278
|
switch (tmp) {
|
|
1279
1279
|
case 0:
|
|
1280
1280
|
this.k8_1 = 6;
|
|
1281
|
-
var tmp0_safe_receiver = this.
|
|
1281
|
+
var tmp0_safe_receiver = this.h2z_1.j2d('Content-Length');
|
|
1282
1282
|
var contentLength = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
1283
1283
|
if (contentLength == null) {
|
|
1284
1284
|
this.j8_1 = 3;
|
|
1285
|
-
suspendResult = readUntil(this.
|
|
1285
|
+
suspendResult = readUntil(this.f2z_1, this.e2z_1, this.g2z_1, this.i2z_1, true, this);
|
|
1286
1286
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1287
1287
|
return suspendResult;
|
|
1288
1288
|
}
|
|
1289
1289
|
continue $sm;
|
|
1290
1290
|
} else {
|
|
1291
|
-
var containsUpper = this.
|
|
1291
|
+
var containsUpper = this.i2z_1;
|
|
1292
1292
|
if (0n <= contentLength ? contentLength <= containsUpper : false) {
|
|
1293
1293
|
this.j8_1 = 1;
|
|
1294
|
-
suspendResult = copyTo(this.
|
|
1294
|
+
suspendResult = copyTo(this.f2z_1, this.g2z_1, contentLength, this);
|
|
1295
1295
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1296
1296
|
return suspendResult;
|
|
1297
1297
|
}
|
|
1298
1298
|
continue $sm;
|
|
1299
1299
|
} else {
|
|
1300
1300
|
var tmp_0 = this;
|
|
1301
|
-
throwLimitExceeded(contentLength, this.
|
|
1301
|
+
throwLimitExceeded(contentLength, this.i2z_1);
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
1305
|
break;
|
|
1306
1306
|
case 1:
|
|
1307
|
-
this.
|
|
1307
|
+
this.l2z_1 = suspendResult;
|
|
1308
1308
|
this.j8_1 = 2;
|
|
1309
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
1309
|
+
suspendResult = skipIfFoundReadCount(this.f2z_1, this.e2z_1, this);
|
|
1310
1310
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1311
1311
|
return suspendResult;
|
|
1312
1312
|
}
|
|
@@ -1314,24 +1314,24 @@ protoOf($parsePartBodyImplCOROUTINE$).r8 = function () {
|
|
|
1314
1314
|
continue $sm;
|
|
1315
1315
|
case 2:
|
|
1316
1316
|
var ARGUMENT = suspendResult;
|
|
1317
|
-
this.
|
|
1317
|
+
this.k2z_1 = add(this.l2z_1, ARGUMENT);
|
|
1318
1318
|
this.j8_1 = 4;
|
|
1319
1319
|
continue $sm;
|
|
1320
1320
|
case 3:
|
|
1321
|
-
this.
|
|
1321
|
+
this.k2z_1 = suspendResult;
|
|
1322
1322
|
this.j8_1 = 4;
|
|
1323
1323
|
continue $sm;
|
|
1324
1324
|
case 4:
|
|
1325
|
-
this.
|
|
1325
|
+
this.j2z_1 = this.k2z_1;
|
|
1326
1326
|
this.j8_1 = 5;
|
|
1327
|
-
suspendResult = this.
|
|
1327
|
+
suspendResult = this.g2z_1.q1g(this);
|
|
1328
1328
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1329
1329
|
return suspendResult;
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
1332
|
continue $sm;
|
|
1333
1333
|
case 5:
|
|
1334
|
-
return this.
|
|
1334
|
+
return this.j2z_1;
|
|
1335
1335
|
case 6:
|
|
1336
1336
|
throw this.m8_1;
|
|
1337
1337
|
}
|
|
@@ -1348,8 +1348,8 @@ protoOf($parsePartBodyImplCOROUTINE$).r8 = function () {
|
|
|
1348
1348
|
};
|
|
1349
1349
|
function $skipIfFoundReadCountCOROUTINE$(_this__u8e3s4, prefix, resultContinuation) {
|
|
1350
1350
|
CoroutineImpl.call(this, resultContinuation);
|
|
1351
|
-
this.
|
|
1352
|
-
this.
|
|
1351
|
+
this.u2z_1 = _this__u8e3s4;
|
|
1352
|
+
this.v2z_1 = prefix;
|
|
1353
1353
|
}
|
|
1354
1354
|
protoOf($skipIfFoundReadCountCOROUTINE$).r8 = function () {
|
|
1355
1355
|
var suspendResult = this.l8_1;
|
|
@@ -1360,7 +1360,7 @@ protoOf($skipIfFoundReadCountCOROUTINE$).r8 = function () {
|
|
|
1360
1360
|
case 0:
|
|
1361
1361
|
this.k8_1 = 3;
|
|
1362
1362
|
this.j8_1 = 1;
|
|
1363
|
-
suspendResult = skipIfFound(this.
|
|
1363
|
+
suspendResult = skipIfFound(this.u2z_1, this.v2z_1, this);
|
|
1364
1364
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
1365
1365
|
return suspendResult;
|
|
1366
1366
|
}
|
|
@@ -1369,18 +1369,18 @@ protoOf($skipIfFoundReadCountCOROUTINE$).r8 = function () {
|
|
|
1369
1369
|
case 1:
|
|
1370
1370
|
if (suspendResult) {
|
|
1371
1371
|
var tmp_0 = this;
|
|
1372
|
-
tmp_0.
|
|
1372
|
+
tmp_0.w2z_1 = fromInt(this.v2z_1.g1());
|
|
1373
1373
|
this.j8_1 = 2;
|
|
1374
1374
|
continue $sm;
|
|
1375
1375
|
} else {
|
|
1376
1376
|
var tmp_1 = this;
|
|
1377
|
-
tmp_1.
|
|
1377
|
+
tmp_1.w2z_1 = 0n;
|
|
1378
1378
|
this.j8_1 = 2;
|
|
1379
1379
|
continue $sm;
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
1382
|
case 2:
|
|
1383
|
-
return this.
|
|
1383
|
+
return this.w2z_1;
|
|
1384
1384
|
case 3:
|
|
1385
1385
|
throw this.m8_1;
|
|
1386
1386
|
}
|
|
@@ -1468,16 +1468,16 @@ function AsciiCharTree$Companion$build$lambda_0(s, idx) {
|
|
|
1468
1468
|
return new Char(charSequenceGet(s, idx));
|
|
1469
1469
|
}
|
|
1470
1470
|
function Node(ch, exact, children) {
|
|
1471
|
-
this.
|
|
1472
|
-
this.
|
|
1473
|
-
this.
|
|
1471
|
+
this.g31_1 = ch;
|
|
1472
|
+
this.h31_1 = exact;
|
|
1473
|
+
this.i31_1 = children;
|
|
1474
1474
|
var tmp = this;
|
|
1475
1475
|
var tmp_0 = 0;
|
|
1476
1476
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
1477
1477
|
var tmp_1 = Array(256);
|
|
1478
1478
|
while (tmp_0 < 256) {
|
|
1479
1479
|
var tmp_2 = tmp_0;
|
|
1480
|
-
var tmp0 = this.
|
|
1480
|
+
var tmp0 = this.i31_1;
|
|
1481
1481
|
var tmp$ret$3;
|
|
1482
1482
|
$l$block_0: {
|
|
1483
1483
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
@@ -1487,7 +1487,7 @@ function Node(ch, exact, children) {
|
|
|
1487
1487
|
while (_iterator__ex2g4s.u()) {
|
|
1488
1488
|
var element = _iterator__ex2g4s.v();
|
|
1489
1489
|
// Inline function 'kotlin.code' call
|
|
1490
|
-
var this_0 = element.
|
|
1490
|
+
var this_0 = element.g31_1;
|
|
1491
1491
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
1492
1492
|
if (found) {
|
|
1493
1493
|
tmp$ret$3 = null;
|
|
@@ -1506,15 +1506,15 @@ function Node(ch, exact, children) {
|
|
|
1506
1506
|
tmp_1[tmp_2] = tmp$ret$3;
|
|
1507
1507
|
tmp_0 = tmp_0 + 1 | 0;
|
|
1508
1508
|
}
|
|
1509
|
-
tmp.
|
|
1509
|
+
tmp.j31_1 = tmp_1;
|
|
1510
1510
|
}
|
|
1511
1511
|
function Companion() {
|
|
1512
1512
|
}
|
|
1513
|
-
protoOf(Companion).
|
|
1513
|
+
protoOf(Companion).h2y = function (from) {
|
|
1514
1514
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
1515
|
-
return this.
|
|
1515
|
+
return this.k31(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
1516
1516
|
};
|
|
1517
|
-
protoOf(Companion).
|
|
1517
|
+
protoOf(Companion).k31 = function (from, length, charAt) {
|
|
1518
1518
|
var tmp$ret$0;
|
|
1519
1519
|
$l$block_0: {
|
|
1520
1520
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -1591,10 +1591,10 @@ function Companion_getInstance_1() {
|
|
|
1591
1591
|
return Companion_instance;
|
|
1592
1592
|
}
|
|
1593
1593
|
function AsciiCharTree(root) {
|
|
1594
|
-
this.
|
|
1594
|
+
this.l31_1 = root;
|
|
1595
1595
|
}
|
|
1596
1596
|
function getImpl($this, index) {
|
|
1597
|
-
return bufferForIndex($this, index)[index % ensureNotNull($this.
|
|
1597
|
+
return bufferForIndex($this, index)[index % ensureNotNull($this.m2w_1).length | 0];
|
|
1598
1598
|
}
|
|
1599
1599
|
function copy($this, startIndex, endIndex) {
|
|
1600
1600
|
if (startIndex === endIndex)
|
|
@@ -1623,27 +1623,27 @@ function copy($this, startIndex, endIndex) {
|
|
|
1623
1623
|
return builder;
|
|
1624
1624
|
}
|
|
1625
1625
|
function SubSequenceImpl($outer, start, end) {
|
|
1626
|
-
this.
|
|
1627
|
-
this.
|
|
1628
|
-
this.
|
|
1629
|
-
this.
|
|
1626
|
+
this.p31_1 = $outer;
|
|
1627
|
+
this.m31_1 = start;
|
|
1628
|
+
this.n31_1 = end;
|
|
1629
|
+
this.o31_1 = null;
|
|
1630
1630
|
}
|
|
1631
1631
|
protoOf(SubSequenceImpl).a = function () {
|
|
1632
|
-
return this.
|
|
1632
|
+
return this.n31_1 - this.m31_1 | 0;
|
|
1633
1633
|
};
|
|
1634
1634
|
protoOf(SubSequenceImpl).b = function (index) {
|
|
1635
|
-
var withOffset = index + this.
|
|
1635
|
+
var withOffset = index + this.m31_1 | 0;
|
|
1636
1636
|
// Inline function 'kotlin.require' call
|
|
1637
1637
|
if (!(index >= 0)) {
|
|
1638
1638
|
var message = 'index is negative: ' + index;
|
|
1639
1639
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1640
1640
|
}
|
|
1641
1641
|
// Inline function 'kotlin.require' call
|
|
1642
|
-
if (!(withOffset < this.
|
|
1642
|
+
if (!(withOffset < this.n31_1)) {
|
|
1643
1643
|
var message_0 = 'index (' + index + ') should be less than length (' + this.a() + ')';
|
|
1644
1644
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1645
1645
|
}
|
|
1646
|
-
return getImpl(this.
|
|
1646
|
+
return getImpl(this.p31_1, withOffset);
|
|
1647
1647
|
};
|
|
1648
1648
|
protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
1649
1649
|
// Inline function 'kotlin.require' call
|
|
@@ -1657,21 +1657,21 @@ protoOf(SubSequenceImpl).c = function (startIndex, endIndex) {
|
|
|
1657
1657
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1658
1658
|
}
|
|
1659
1659
|
// Inline function 'kotlin.require' call
|
|
1660
|
-
if (!(endIndex <= (this.
|
|
1660
|
+
if (!(endIndex <= (this.n31_1 - this.m31_1 | 0))) {
|
|
1661
1661
|
var message_1 = 'end should be less than length (' + this.a() + ')';
|
|
1662
1662
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1663
1663
|
}
|
|
1664
1664
|
if (startIndex === endIndex)
|
|
1665
1665
|
return '';
|
|
1666
|
-
return new SubSequenceImpl(this.
|
|
1666
|
+
return new SubSequenceImpl(this.p31_1, this.m31_1 + startIndex | 0, this.m31_1 + endIndex | 0);
|
|
1667
1667
|
};
|
|
1668
1668
|
protoOf(SubSequenceImpl).toString = function () {
|
|
1669
|
-
var tmp0_elvis_lhs = this.
|
|
1669
|
+
var tmp0_elvis_lhs = this.o31_1;
|
|
1670
1670
|
var tmp;
|
|
1671
1671
|
if (tmp0_elvis_lhs == null) {
|
|
1672
1672
|
// Inline function 'kotlin.also' call
|
|
1673
|
-
var this_0 = toString(copy(this.
|
|
1674
|
-
this.
|
|
1673
|
+
var this_0 = toString(copy(this.p31_1, this.m31_1, this.n31_1));
|
|
1674
|
+
this.o31_1 = this_0;
|
|
1675
1675
|
tmp = this_0;
|
|
1676
1676
|
} else {
|
|
1677
1677
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1683,20 +1683,20 @@ protoOf(SubSequenceImpl).equals = function (other) {
|
|
|
1683
1683
|
return false;
|
|
1684
1684
|
if (!(charSequenceLength(other) === this.a()))
|
|
1685
1685
|
return false;
|
|
1686
|
-
return rangeEqualsImpl(this.
|
|
1686
|
+
return rangeEqualsImpl(this.p31_1, this.m31_1, other, 0, this.a());
|
|
1687
1687
|
};
|
|
1688
1688
|
protoOf(SubSequenceImpl).hashCode = function () {
|
|
1689
|
-
var tmp0_safe_receiver = this.
|
|
1689
|
+
var tmp0_safe_receiver = this.o31_1;
|
|
1690
1690
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1691
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this.
|
|
1691
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this.p31_1, this.m31_1, this.n31_1) : tmp1_elvis_lhs;
|
|
1692
1692
|
};
|
|
1693
1693
|
function bufferForIndex($this, index) {
|
|
1694
|
-
var list = $this.
|
|
1694
|
+
var list = $this.l2w_1;
|
|
1695
1695
|
if (list == null) {
|
|
1696
1696
|
if (index >= 2048) {
|
|
1697
1697
|
throwSingleBuffer($this, index);
|
|
1698
1698
|
}
|
|
1699
|
-
var tmp0_elvis_lhs = $this.
|
|
1699
|
+
var tmp0_elvis_lhs = $this.m2w_1;
|
|
1700
1700
|
var tmp;
|
|
1701
1701
|
if (tmp0_elvis_lhs == null) {
|
|
1702
1702
|
throwSingleBuffer($this, index);
|
|
@@ -1705,29 +1705,29 @@ function bufferForIndex($this, index) {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
return tmp;
|
|
1707
1707
|
}
|
|
1708
|
-
return list.h1(index / ensureNotNull($this.
|
|
1708
|
+
return list.h1(index / ensureNotNull($this.m2w_1).length | 0);
|
|
1709
1709
|
}
|
|
1710
1710
|
function throwSingleBuffer($this, index) {
|
|
1711
|
-
if ($this.
|
|
1711
|
+
if ($this.o2w_1)
|
|
1712
1712
|
throw IllegalStateException_init_$Create$('Buffer is already released');
|
|
1713
1713
|
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in range [0; ' + currentPosition($this) + ')');
|
|
1714
1714
|
}
|
|
1715
1715
|
function nonFullBuffer($this) {
|
|
1716
|
-
return $this.
|
|
1716
|
+
return $this.p2w_1 === 0 ? appendNewArray($this) : ensureNotNull($this.m2w_1);
|
|
1717
1717
|
}
|
|
1718
1718
|
function appendNewArray($this) {
|
|
1719
|
-
var newBuffer = $this.
|
|
1720
|
-
var existing = $this.
|
|
1721
|
-
$this.
|
|
1722
|
-
$this.
|
|
1723
|
-
$this.
|
|
1719
|
+
var newBuffer = $this.k2w_1.l1r();
|
|
1720
|
+
var existing = $this.m2w_1;
|
|
1721
|
+
$this.m2w_1 = newBuffer;
|
|
1722
|
+
$this.p2w_1 = newBuffer.length;
|
|
1723
|
+
$this.o2w_1 = false;
|
|
1724
1724
|
if (!(existing == null)) {
|
|
1725
|
-
var tmp0_elvis_lhs = $this.
|
|
1725
|
+
var tmp0_elvis_lhs = $this.l2w_1;
|
|
1726
1726
|
var tmp;
|
|
1727
1727
|
if (tmp0_elvis_lhs == null) {
|
|
1728
1728
|
// Inline function 'kotlin.also' call
|
|
1729
1729
|
var this_0 = ArrayList_init_$Create$();
|
|
1730
|
-
$this.
|
|
1730
|
+
$this.l2w_1 = this_0;
|
|
1731
1731
|
this_0.e1(existing);
|
|
1732
1732
|
tmp = this_0;
|
|
1733
1733
|
} else {
|
|
@@ -1766,20 +1766,20 @@ function hashCodeImpl($this, start, end) {
|
|
|
1766
1766
|
return hc;
|
|
1767
1767
|
}
|
|
1768
1768
|
function currentPosition($this) {
|
|
1769
|
-
return ensureNotNull($this.
|
|
1769
|
+
return ensureNotNull($this.m2w_1).length - $this.p2w_1 | 0;
|
|
1770
1770
|
}
|
|
1771
1771
|
function CharArrayBuilder(pool) {
|
|
1772
1772
|
pool = pool === VOID ? get_CharArrayPool() : pool;
|
|
1773
|
-
this.
|
|
1774
|
-
this.
|
|
1775
|
-
this.
|
|
1776
|
-
this.
|
|
1777
|
-
this.
|
|
1778
|
-
this.
|
|
1779
|
-
this.
|
|
1773
|
+
this.k2w_1 = pool;
|
|
1774
|
+
this.l2w_1 = null;
|
|
1775
|
+
this.m2w_1 = null;
|
|
1776
|
+
this.n2w_1 = null;
|
|
1777
|
+
this.o2w_1 = false;
|
|
1778
|
+
this.p2w_1 = 0;
|
|
1779
|
+
this.q2w_1 = 0;
|
|
1780
1780
|
}
|
|
1781
1781
|
protoOf(CharArrayBuilder).a = function () {
|
|
1782
|
-
return this.
|
|
1782
|
+
return this.q2w_1;
|
|
1783
1783
|
};
|
|
1784
1784
|
protoOf(CharArrayBuilder).b = function (index) {
|
|
1785
1785
|
// Inline function 'kotlin.require' call
|
|
@@ -1788,8 +1788,8 @@ protoOf(CharArrayBuilder).b = function (index) {
|
|
|
1788
1788
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1789
1789
|
}
|
|
1790
1790
|
// Inline function 'kotlin.require' call
|
|
1791
|
-
if (!(index < this.
|
|
1792
|
-
var message_0 = 'index ' + index + ' is not in range [0, ' + this.
|
|
1791
|
+
if (!(index < this.q2w_1)) {
|
|
1792
|
+
var message_0 = 'index ' + index + ' is not in range [0, ' + this.q2w_1 + ')';
|
|
1793
1793
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1794
1794
|
}
|
|
1795
1795
|
return getImpl(this, index);
|
|
@@ -1806,19 +1806,19 @@ protoOf(CharArrayBuilder).c = function (startIndex, endIndex) {
|
|
|
1806
1806
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
1807
1807
|
}
|
|
1808
1808
|
// Inline function 'kotlin.require' call
|
|
1809
|
-
if (!(endIndex <= this.
|
|
1810
|
-
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.
|
|
1809
|
+
if (!(endIndex <= this.q2w_1)) {
|
|
1810
|
+
var message_1 = 'endIndex (' + endIndex + ') is greater than length (' + this.q2w_1 + ')';
|
|
1811
1811
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
1812
1812
|
}
|
|
1813
1813
|
return new SubSequenceImpl(this, startIndex, endIndex);
|
|
1814
1814
|
};
|
|
1815
1815
|
protoOf(CharArrayBuilder).toString = function () {
|
|
1816
|
-
var tmp0_elvis_lhs = this.
|
|
1816
|
+
var tmp0_elvis_lhs = this.n2w_1;
|
|
1817
1817
|
var tmp;
|
|
1818
1818
|
if (tmp0_elvis_lhs == null) {
|
|
1819
1819
|
// Inline function 'kotlin.also' call
|
|
1820
|
-
var this_0 = toString(copy(this, 0, this.
|
|
1821
|
-
this.
|
|
1820
|
+
var this_0 = toString(copy(this, 0, this.q2w_1));
|
|
1821
|
+
this.n2w_1 = this_0;
|
|
1822
1822
|
tmp = this_0;
|
|
1823
1823
|
} else {
|
|
1824
1824
|
tmp = tmp0_elvis_lhs;
|
|
@@ -1828,20 +1828,20 @@ protoOf(CharArrayBuilder).toString = function () {
|
|
|
1828
1828
|
protoOf(CharArrayBuilder).equals = function (other) {
|
|
1829
1829
|
if (!(!(other == null) ? isCharSequence(other) : false))
|
|
1830
1830
|
return false;
|
|
1831
|
-
if (!(this.
|
|
1831
|
+
if (!(this.q2w_1 === charSequenceLength(other)))
|
|
1832
1832
|
return false;
|
|
1833
|
-
return rangeEqualsImpl(this, 0, other, 0, this.
|
|
1833
|
+
return rangeEqualsImpl(this, 0, other, 0, this.q2w_1);
|
|
1834
1834
|
};
|
|
1835
1835
|
protoOf(CharArrayBuilder).hashCode = function () {
|
|
1836
|
-
var tmp0_safe_receiver = this.
|
|
1836
|
+
var tmp0_safe_receiver = this.n2w_1;
|
|
1837
1837
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
1838
|
-
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.
|
|
1838
|
+
return tmp1_elvis_lhs == null ? hashCodeImpl(this, 0, this.q2w_1) : tmp1_elvis_lhs;
|
|
1839
1839
|
};
|
|
1840
1840
|
protoOf(CharArrayBuilder).s = function (value) {
|
|
1841
|
-
nonFullBuffer(this)[ensureNotNull(this.
|
|
1842
|
-
this.
|
|
1843
|
-
this.
|
|
1844
|
-
this.
|
|
1841
|
+
nonFullBuffer(this)[ensureNotNull(this.m2w_1).length - this.p2w_1 | 0] = value;
|
|
1842
|
+
this.n2w_1 = null;
|
|
1843
|
+
this.p2w_1 = this.p2w_1 - 1 | 0;
|
|
1844
|
+
this.q2w_1 = this.q2w_1 + 1 | 0;
|
|
1845
1845
|
return this;
|
|
1846
1846
|
};
|
|
1847
1847
|
protoOf(CharArrayBuilder).wb = function (value, startIndex, endIndex) {
|
|
@@ -1850,10 +1850,10 @@ protoOf(CharArrayBuilder).wb = function (value, startIndex, endIndex) {
|
|
|
1850
1850
|
var current = startIndex;
|
|
1851
1851
|
while (current < endIndex) {
|
|
1852
1852
|
var buffer = nonFullBuffer(this);
|
|
1853
|
-
var offset = buffer.length - this.
|
|
1853
|
+
var offset = buffer.length - this.p2w_1 | 0;
|
|
1854
1854
|
var tmp0 = endIndex - current | 0;
|
|
1855
1855
|
// Inline function 'kotlin.math.min' call
|
|
1856
|
-
var b = this.
|
|
1856
|
+
var b = this.p2w_1;
|
|
1857
1857
|
var bytesToCopy = Math.min(tmp0, b);
|
|
1858
1858
|
var inductionVariable = 0;
|
|
1859
1859
|
if (inductionVariable < bytesToCopy)
|
|
@@ -1864,10 +1864,10 @@ protoOf(CharArrayBuilder).wb = function (value, startIndex, endIndex) {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
while (inductionVariable < bytesToCopy);
|
|
1866
1866
|
current = current + bytesToCopy | 0;
|
|
1867
|
-
this.
|
|
1867
|
+
this.p2w_1 = this.p2w_1 - bytesToCopy | 0;
|
|
1868
1868
|
}
|
|
1869
|
-
this.
|
|
1870
|
-
this.
|
|
1869
|
+
this.n2w_1 = null;
|
|
1870
|
+
this.q2w_1 = this.q2w_1 + (endIndex - startIndex | 0) | 0;
|
|
1871
1871
|
return this;
|
|
1872
1872
|
};
|
|
1873
1873
|
protoOf(CharArrayBuilder).f1 = function (value) {
|
|
@@ -1875,34 +1875,34 @@ protoOf(CharArrayBuilder).f1 = function (value) {
|
|
|
1875
1875
|
return this;
|
|
1876
1876
|
return this.wb(value, 0, charSequenceLength(value));
|
|
1877
1877
|
};
|
|
1878
|
-
protoOf(CharArrayBuilder).
|
|
1879
|
-
var list = this.
|
|
1878
|
+
protoOf(CharArrayBuilder).t2w = function () {
|
|
1879
|
+
var list = this.l2w_1;
|
|
1880
1880
|
if (!(list == null)) {
|
|
1881
|
-
this.
|
|
1881
|
+
this.m2w_1 = null;
|
|
1882
1882
|
var inductionVariable = 0;
|
|
1883
1883
|
var last = list.g1();
|
|
1884
1884
|
if (inductionVariable < last)
|
|
1885
1885
|
do {
|
|
1886
1886
|
var i = inductionVariable;
|
|
1887
1887
|
inductionVariable = inductionVariable + 1 | 0;
|
|
1888
|
-
this.
|
|
1888
|
+
this.k2w_1.m1r(list.h1(i));
|
|
1889
1889
|
}
|
|
1890
1890
|
while (inductionVariable < last);
|
|
1891
1891
|
} else {
|
|
1892
|
-
var tmp0_safe_receiver = this.
|
|
1892
|
+
var tmp0_safe_receiver = this.m2w_1;
|
|
1893
1893
|
if (tmp0_safe_receiver == null)
|
|
1894
1894
|
null;
|
|
1895
1895
|
else {
|
|
1896
1896
|
// Inline function 'kotlin.let' call
|
|
1897
|
-
this.
|
|
1897
|
+
this.k2w_1.m1r(tmp0_safe_receiver);
|
|
1898
1898
|
}
|
|
1899
|
-
this.
|
|
1899
|
+
this.m2w_1 = null;
|
|
1900
1900
|
}
|
|
1901
|
-
this.
|
|
1902
|
-
this.
|
|
1903
|
-
this.
|
|
1904
|
-
this.
|
|
1905
|
-
this.
|
|
1901
|
+
this.o2w_1 = true;
|
|
1902
|
+
this.l2w_1 = null;
|
|
1903
|
+
this.n2w_1 = null;
|
|
1904
|
+
this.q2w_1 = 0;
|
|
1905
|
+
this.p2w_1 = 0;
|
|
1906
1906
|
};
|
|
1907
1907
|
function get_CharArrayPool() {
|
|
1908
1908
|
_init_properties_CharArrayPool_kt__u4nq0d();
|
|
@@ -2109,20 +2109,20 @@ function numberFormatException_0(cs, idx) {
|
|
|
2109
2109
|
}
|
|
2110
2110
|
function DefaultHttpMethods$lambda(it) {
|
|
2111
2111
|
_init_properties_Chars_kt__d3i39x();
|
|
2112
|
-
return it.
|
|
2112
|
+
return it.c2q_1.length;
|
|
2113
2113
|
}
|
|
2114
2114
|
function DefaultHttpMethods$lambda_0(m, idx) {
|
|
2115
2115
|
_init_properties_Chars_kt__d3i39x();
|
|
2116
|
-
return new Char(charCodeAt(m.
|
|
2116
|
+
return new Char(charCodeAt(m.c2q_1, idx));
|
|
2117
2117
|
}
|
|
2118
2118
|
var properties_initialized_Chars_kt_phjfhp;
|
|
2119
2119
|
function _init_properties_Chars_kt__d3i39x() {
|
|
2120
2120
|
if (!properties_initialized_Chars_kt_phjfhp) {
|
|
2121
2121
|
properties_initialized_Chars_kt_phjfhp = true;
|
|
2122
2122
|
var tmp = Companion_instance;
|
|
2123
|
-
var tmp_0 = Companion_getInstance().
|
|
2123
|
+
var tmp_0 = Companion_getInstance().b2q_1;
|
|
2124
2124
|
var tmp_1 = DefaultHttpMethods$lambda;
|
|
2125
|
-
DefaultHttpMethods = tmp.
|
|
2125
|
+
DefaultHttpMethods = tmp.k31(tmp_0, tmp_1, DefaultHttpMethods$lambda_0);
|
|
2126
2126
|
// Inline function 'kotlin.collections.map' call
|
|
2127
2127
|
var this_0 = numberRangeToNumber(0, 255);
|
|
2128
2128
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -2223,11 +2223,11 @@ function UnsupportedMediaTypeExceptionCIO(message) {
|
|
|
2223
2223
|
captureStack(this, UnsupportedMediaTypeExceptionCIO);
|
|
2224
2224
|
}
|
|
2225
2225
|
function MutableRange(start, end) {
|
|
2226
|
-
this.
|
|
2227
|
-
this.
|
|
2226
|
+
this.f2y_1 = start;
|
|
2227
|
+
this.g2y_1 = end;
|
|
2228
2228
|
}
|
|
2229
2229
|
protoOf(MutableRange).toString = function () {
|
|
2230
|
-
return 'MutableRange(start=' + this.
|
|
2230
|
+
return 'MutableRange(start=' + this.f2y_1 + ', end=' + this.g2y_1 + ')';
|
|
2231
2231
|
};
|
|
2232
2232
|
function skipSpacesAndHorizontalTabs(text, start, end) {
|
|
2233
2233
|
var index = start;
|