@zenwave360/json-schema-ref-parser-kmp 1.0.0-next.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.
@@ -0,0 +1,2497 @@
1
+ import {
2
+ protoOf180f3jzyo7rfj as protoOf,
3
+ objectCreate1ve4bgxiu4x98 as objectCreate,
4
+ initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
5
+ ensureNotNull1e947j3ixpazm as ensureNotNull,
6
+ toString1pkumu07cwy4m as toString,
7
+ IllegalArgumentException_init_$Create$3ewkh27kzt8z8 as IllegalArgumentException_init_$Create$,
8
+ Unit_instance1fbcbse1fwigr as Unit_instance,
9
+ arrayCopytctsywo3h7gj as arrayCopy,
10
+ IllegalStateException_init_$Create$2w9444nebyjns as IllegalStateException_init_$Create$,
11
+ IllegalArgumentException_init_$Create$3vjwoodhlckbo as IllegalArgumentException_init_$Create$_0,
12
+ initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
13
+ bitwiseOr1ita6dahwp8zb as bitwiseOr,
14
+ Long2qws0ah9gnpki as Long,
15
+ compare2uud5j30pw5xc as compare,
16
+ subtract16cg4lfi29fq9 as subtract,
17
+ VOID3gxj6tk5isa35 as VOID,
18
+ charArray2ujmm1qusno00 as charArray,
19
+ _Char___init__impl__6a9atx2js6krycynjoo as _Char___init__impl__6a9atx,
20
+ numberToChar93r9buh19yek as numberToChar,
21
+ concatToString3cxf0c1gqonpo as concatToString,
22
+ Char__toInt_impl_vasixd1agw9q2fuvclj as Char__toInt_impl_vasixd,
23
+ charArrayOf27f4r3dozbrk1 as charArrayOf,
24
+ concatToString2syawgu50khxi as concatToString_0,
25
+ contentHashCode25jw6rgkgywwr as contentHashCode,
26
+ THROW_CCE2g6jy02ryeudk as THROW_CCE,
27
+ copyOfRange3alro60z4hhf8 as copyOfRange,
28
+ substringiqarkczpya5m as substring,
29
+ replace3le3ie7l9k8aq as replace,
30
+ fromInt1lka3ktyu79a4 as fromInt,
31
+ numberToLong345n6tb1n1i71 as numberToLong,
32
+ add85si75olwt6n as add,
33
+ convertToIntofdoxh9bstof as convertToInt,
34
+ equalsLong28bsrfhwvd686 as equalsLong,
35
+ charCodeAt1yspne1d8erbm as charCodeAt,
36
+ toByte4i43936u611k as toByte,
37
+ AssertionError_init_$Create$3rpc0tgt37vn2 as AssertionError_init_$Create$,
38
+ isArray1hxjqtqy632bc as isArray,
39
+ initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
40
+ IndexOutOfBoundsException1qfr429iumro0 as IndexOutOfBoundsException,
41
+ IndexOutOfBoundsException_init_$Init$3rj4wwb4w6z4p as IndexOutOfBoundsException_init_$Init$,
42
+ captureStack1fzi4aczwc4hg as captureStack,
43
+ Exceptiondt2hlxn7j7vw as Exception,
44
+ Exception_init_$Init$393utbttlf2x4 as Exception_init_$Init$,
45
+ initMetadataForObject1cxne3s9w65el as initMetadataForObject,
46
+ } from './kotlin-kotlin-stdlib.mjs';
47
+ //region block: imports
48
+ var imul = Math.imul;
49
+ //endregion
50
+ //region block: pre-declaration
51
+ initMetadataForCompanion(Companion);
52
+ initMetadataForClass(Segment, 'Segment', Segment_init_$Create$);
53
+ initMetadataForCompanion(Companion_0);
54
+ initMetadataForClass(ByteString, 'ByteString');
55
+ initMetadataForClass(SegmentedByteString, 'SegmentedByteString', VOID, ByteString);
56
+ initMetadataForClass(UnsafeCursor, 'UnsafeCursor', UnsafeCursor);
57
+ initMetadataForInterface(BufferedSource, 'BufferedSource');
58
+ initMetadataForClass(Buffer, 'Buffer', Buffer, VOID, [BufferedSource]);
59
+ initMetadataForClass(ArrayIndexOutOfBoundsException, 'ArrayIndexOutOfBoundsException', VOID, IndexOutOfBoundsException);
60
+ initMetadataForClass(IOException, 'IOException', IOException_init_$Create$, Exception);
61
+ initMetadataForClass(EOFException, 'EOFException', EOFException_init_$Create$, IOException);
62
+ initMetadataForClass(RealBufferedSource, 'RealBufferedSource', VOID, VOID, [BufferedSource]);
63
+ initMetadataForObject(SegmentPool, 'SegmentPool');
64
+ //endregion
65
+ function buffer(_this__u8e3s4) {
66
+ return new RealBufferedSource(_this__u8e3s4);
67
+ }
68
+ function Segment_init_$Init$($this) {
69
+ Segment.call($this);
70
+ $this.zc_1 = new Int8Array(8192);
71
+ $this.dd_1 = true;
72
+ $this.cd_1 = false;
73
+ return $this;
74
+ }
75
+ function Segment_init_$Create$() {
76
+ return Segment_init_$Init$(objectCreate(protoOf(Segment)));
77
+ }
78
+ function Segment_init_$Init$_0(data, pos, limit, shared, owner, $this) {
79
+ Segment.call($this);
80
+ $this.zc_1 = data;
81
+ $this.ad_1 = pos;
82
+ $this.bd_1 = limit;
83
+ $this.cd_1 = shared;
84
+ $this.dd_1 = owner;
85
+ return $this;
86
+ }
87
+ function Segment_init_$Create$_0(data, pos, limit, shared, owner) {
88
+ return Segment_init_$Init$_0(data, pos, limit, shared, owner, objectCreate(protoOf(Segment)));
89
+ }
90
+ function Companion() {
91
+ this.gd_1 = 8192;
92
+ this.hd_1 = 1024;
93
+ }
94
+ var Companion_instance;
95
+ function Companion_getInstance() {
96
+ return Companion_instance;
97
+ }
98
+ protoOf(Segment).id = function () {
99
+ this.cd_1 = true;
100
+ return Segment_init_$Create$_0(this.zc_1, this.ad_1, this.bd_1, true, false);
101
+ };
102
+ protoOf(Segment).jd = function () {
103
+ var result = !(this.ed_1 === this) ? this.ed_1 : null;
104
+ ensureNotNull(this.fd_1).ed_1 = this.ed_1;
105
+ ensureNotNull(this.ed_1).fd_1 = this.fd_1;
106
+ this.ed_1 = null;
107
+ this.fd_1 = null;
108
+ return result;
109
+ };
110
+ protoOf(Segment).kd = function (segment) {
111
+ segment.fd_1 = this;
112
+ segment.ed_1 = this.ed_1;
113
+ ensureNotNull(this.ed_1).fd_1 = segment;
114
+ this.ed_1 = segment;
115
+ return segment;
116
+ };
117
+ protoOf(Segment).ld = function (byteCount) {
118
+ // Inline function 'kotlin.require' call
119
+ if (!(byteCount > 0 && byteCount <= (this.bd_1 - this.ad_1 | 0))) {
120
+ var message = 'byteCount out of range';
121
+ throw IllegalArgumentException_init_$Create$(toString(message));
122
+ }
123
+ var prefix;
124
+ if (byteCount >= 1024) {
125
+ prefix = this.id();
126
+ } else {
127
+ prefix = SegmentPool_instance.od();
128
+ var tmp0 = this.zc_1;
129
+ var tmp2 = prefix.zc_1;
130
+ var tmp4 = this.ad_1;
131
+ // Inline function 'kotlin.collections.copyInto' call
132
+ var endIndex = this.ad_1 + byteCount | 0;
133
+ // Inline function 'kotlin.js.unsafeCast' call
134
+ // Inline function 'kotlin.js.asDynamic' call
135
+ var tmp = tmp0;
136
+ // Inline function 'kotlin.js.unsafeCast' call
137
+ // Inline function 'kotlin.js.asDynamic' call
138
+ arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
139
+ }
140
+ prefix.bd_1 = prefix.ad_1 + byteCount | 0;
141
+ this.ad_1 = this.ad_1 + byteCount | 0;
142
+ ensureNotNull(this.fd_1).kd(prefix);
143
+ return prefix;
144
+ };
145
+ protoOf(Segment).pd = function () {
146
+ // Inline function 'kotlin.check' call
147
+ if (!!(this.fd_1 === this)) {
148
+ var message = 'cannot compact';
149
+ throw IllegalStateException_init_$Create$(toString(message));
150
+ }
151
+ if (!ensureNotNull(this.fd_1).dd_1)
152
+ return Unit_instance;
153
+ var byteCount = this.bd_1 - this.ad_1 | 0;
154
+ var availableByteCount = (8192 - ensureNotNull(this.fd_1).bd_1 | 0) + (ensureNotNull(this.fd_1).cd_1 ? 0 : ensureNotNull(this.fd_1).ad_1) | 0;
155
+ if (byteCount > availableByteCount)
156
+ return Unit_instance;
157
+ this.qd(ensureNotNull(this.fd_1), byteCount);
158
+ this.jd();
159
+ SegmentPool_instance.rd(this);
160
+ };
161
+ protoOf(Segment).qd = function (sink, byteCount) {
162
+ // Inline function 'kotlin.check' call
163
+ if (!sink.dd_1) {
164
+ var message = 'only owner can write';
165
+ throw IllegalStateException_init_$Create$(toString(message));
166
+ }
167
+ if ((sink.bd_1 + byteCount | 0) > 8192) {
168
+ if (sink.cd_1)
169
+ throw IllegalArgumentException_init_$Create$_0();
170
+ if (((sink.bd_1 + byteCount | 0) - sink.ad_1 | 0) > 8192)
171
+ throw IllegalArgumentException_init_$Create$_0();
172
+ var tmp0 = sink.zc_1;
173
+ var tmp2 = sink.zc_1;
174
+ var tmp4 = sink.ad_1;
175
+ // Inline function 'kotlin.collections.copyInto' call
176
+ var endIndex = sink.bd_1;
177
+ // Inline function 'kotlin.js.unsafeCast' call
178
+ // Inline function 'kotlin.js.asDynamic' call
179
+ var tmp = tmp0;
180
+ // Inline function 'kotlin.js.unsafeCast' call
181
+ // Inline function 'kotlin.js.asDynamic' call
182
+ arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
183
+ sink.bd_1 = sink.bd_1 - sink.ad_1 | 0;
184
+ sink.ad_1 = 0;
185
+ }
186
+ var tmp0_0 = this.zc_1;
187
+ var tmp2_0 = sink.zc_1;
188
+ var tmp4_0 = sink.bd_1;
189
+ var tmp6 = this.ad_1;
190
+ // Inline function 'kotlin.collections.copyInto' call
191
+ var endIndex_0 = this.ad_1 + byteCount | 0;
192
+ // Inline function 'kotlin.js.unsafeCast' call
193
+ // Inline function 'kotlin.js.asDynamic' call
194
+ var tmp_0 = tmp0_0;
195
+ // Inline function 'kotlin.js.unsafeCast' call
196
+ // Inline function 'kotlin.js.asDynamic' call
197
+ arrayCopy(tmp_0, tmp2_0, tmp4_0, tmp6, endIndex_0);
198
+ sink.bd_1 = sink.bd_1 + byteCount | 0;
199
+ this.ad_1 = this.ad_1 + byteCount | 0;
200
+ };
201
+ function Segment() {
202
+ this.ad_1 = 0;
203
+ this.bd_1 = 0;
204
+ this.cd_1 = false;
205
+ this.dd_1 = false;
206
+ this.ed_1 = null;
207
+ this.fd_1 = null;
208
+ }
209
+ var DEFAULT__new_UnsafeCursor;
210
+ function get_DEFAULT__ByteString_size() {
211
+ _init_properties_Util_kt__laey5a();
212
+ return DEFAULT__ByteString_size;
213
+ }
214
+ var DEFAULT__ByteString_size;
215
+ function resolveDefaultParameter(_this__u8e3s4, position) {
216
+ _init_properties_Util_kt__laey5a();
217
+ if (position === get_DEFAULT__ByteString_size())
218
+ return _this__u8e3s4.i();
219
+ return position;
220
+ }
221
+ function arrayRangeEquals(a, aOffset, b, bOffset, byteCount) {
222
+ _init_properties_Util_kt__laey5a();
223
+ var inductionVariable = 0;
224
+ if (inductionVariable < byteCount)
225
+ do {
226
+ var i = inductionVariable;
227
+ inductionVariable = inductionVariable + 1 | 0;
228
+ if (!(a[i + aOffset | 0] === b[i + bOffset | 0]))
229
+ return false;
230
+ }
231
+ while (inductionVariable < byteCount);
232
+ return true;
233
+ }
234
+ function checkOffsetAndCount(size, offset, byteCount) {
235
+ _init_properties_Util_kt__laey5a();
236
+ if (compare(bitwiseOr(offset, byteCount), new Long(0, 0)) < 0 || compare(offset, size) > 0 || compare(subtract(size, offset), byteCount) < 0) {
237
+ throw new ArrayIndexOutOfBoundsException('size=' + size.toString() + ' offset=' + offset.toString() + ' byteCount=' + byteCount.toString());
238
+ }
239
+ }
240
+ var properties_initialized_Util_kt_13atj0;
241
+ function _init_properties_Util_kt__laey5a() {
242
+ if (!properties_initialized_Util_kt_13atj0) {
243
+ properties_initialized_Util_kt_13atj0 = true;
244
+ DEFAULT__new_UnsafeCursor = new UnsafeCursor();
245
+ DEFAULT__ByteString_size = -1234567890;
246
+ }
247
+ }
248
+ function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
249
+ beginIndex = beginIndex === VOID ? 0 : beginIndex;
250
+ endIndex = endIndex === VOID ? _this__u8e3s4.length : endIndex;
251
+ if (beginIndex < 0 || endIndex > _this__u8e3s4.length || beginIndex > endIndex) {
252
+ throw new ArrayIndexOutOfBoundsException('size=' + _this__u8e3s4.length + ' beginIndex=' + beginIndex + ' endIndex=' + endIndex);
253
+ }
254
+ var chars = charArray(endIndex - beginIndex | 0);
255
+ var length = 0;
256
+ // Inline function 'okio.processUtf16Chars' call
257
+ var index = beginIndex;
258
+ while (index < endIndex) {
259
+ var b0 = _this__u8e3s4[index];
260
+ if (b0 >= 0) {
261
+ var c = numberToChar(b0);
262
+ var _unary__edvuaz = length;
263
+ length = _unary__edvuaz + 1 | 0;
264
+ chars[_unary__edvuaz] = c;
265
+ index = index + 1 | 0;
266
+ while (index < endIndex && _this__u8e3s4[index] >= 0) {
267
+ var _unary__edvuaz_0 = index;
268
+ index = _unary__edvuaz_0 + 1 | 0;
269
+ var c_0 = numberToChar(_this__u8e3s4[_unary__edvuaz_0]);
270
+ var _unary__edvuaz_1 = length;
271
+ length = _unary__edvuaz_1 + 1 | 0;
272
+ chars[_unary__edvuaz_1] = c_0;
273
+ }
274
+ } else {
275
+ // Inline function 'okio.shr' call
276
+ if (b0 >> 5 === -2) {
277
+ var tmp = index;
278
+ var tmp2 = index;
279
+ var tmp$ret$5;
280
+ $l$block_0: {
281
+ // Inline function 'okio.process2Utf8Bytes' call
282
+ if (endIndex <= (tmp2 + 1 | 0)) {
283
+ var c_1 = numberToChar(65533);
284
+ var _unary__edvuaz_2 = length;
285
+ length = _unary__edvuaz_2 + 1 | 0;
286
+ chars[_unary__edvuaz_2] = c_1;
287
+ tmp$ret$5 = 1;
288
+ break $l$block_0;
289
+ }
290
+ var b0_0 = _this__u8e3s4[tmp2];
291
+ var b1 = _this__u8e3s4[tmp2 + 1 | 0];
292
+ // Inline function 'okio.isUtf8Continuation' call
293
+ // Inline function 'okio.and' call
294
+ if (!((b1 & 192) === 128)) {
295
+ var c_2 = numberToChar(65533);
296
+ var _unary__edvuaz_3 = length;
297
+ length = _unary__edvuaz_3 + 1 | 0;
298
+ chars[_unary__edvuaz_3] = c_2;
299
+ tmp$ret$5 = 1;
300
+ break $l$block_0;
301
+ }
302
+ var codePoint = 3968 ^ b1 ^ b0_0 << 6;
303
+ if (codePoint < 128) {
304
+ var c_3 = numberToChar(65533);
305
+ var _unary__edvuaz_4 = length;
306
+ length = _unary__edvuaz_4 + 1 | 0;
307
+ chars[_unary__edvuaz_4] = c_3;
308
+ } else {
309
+ var c_4 = numberToChar(codePoint);
310
+ var _unary__edvuaz_5 = length;
311
+ length = _unary__edvuaz_5 + 1 | 0;
312
+ chars[_unary__edvuaz_5] = c_4;
313
+ }
314
+ tmp$ret$5 = 2;
315
+ }
316
+ index = tmp + tmp$ret$5 | 0;
317
+ } else {
318
+ // Inline function 'okio.shr' call
319
+ if (b0 >> 4 === -2) {
320
+ var tmp_0 = index;
321
+ var tmp2_0 = index;
322
+ var tmp$ret$19;
323
+ $l$block_4: {
324
+ // Inline function 'okio.process3Utf8Bytes' call
325
+ if (endIndex <= (tmp2_0 + 2 | 0)) {
326
+ var c_5 = numberToChar(65533);
327
+ var _unary__edvuaz_6 = length;
328
+ length = _unary__edvuaz_6 + 1 | 0;
329
+ chars[_unary__edvuaz_6] = c_5;
330
+ var tmp_1;
331
+ if (endIndex <= (tmp2_0 + 1 | 0)) {
332
+ tmp_1 = true;
333
+ } else {
334
+ // Inline function 'okio.isUtf8Continuation' call
335
+ // Inline function 'okio.and' call
336
+ tmp_1 = !((_this__u8e3s4[tmp2_0 + 1 | 0] & 192) === 128);
337
+ }
338
+ if (tmp_1) {
339
+ tmp$ret$19 = 1;
340
+ break $l$block_4;
341
+ } else {
342
+ tmp$ret$19 = 2;
343
+ break $l$block_4;
344
+ }
345
+ }
346
+ var b0_1 = _this__u8e3s4[tmp2_0];
347
+ var b1_0 = _this__u8e3s4[tmp2_0 + 1 | 0];
348
+ // Inline function 'okio.isUtf8Continuation' call
349
+ // Inline function 'okio.and' call
350
+ if (!((b1_0 & 192) === 128)) {
351
+ var c_6 = numberToChar(65533);
352
+ var _unary__edvuaz_7 = length;
353
+ length = _unary__edvuaz_7 + 1 | 0;
354
+ chars[_unary__edvuaz_7] = c_6;
355
+ tmp$ret$19 = 1;
356
+ break $l$block_4;
357
+ }
358
+ var b2 = _this__u8e3s4[tmp2_0 + 2 | 0];
359
+ // Inline function 'okio.isUtf8Continuation' call
360
+ // Inline function 'okio.and' call
361
+ if (!((b2 & 192) === 128)) {
362
+ var c_7 = numberToChar(65533);
363
+ var _unary__edvuaz_8 = length;
364
+ length = _unary__edvuaz_8 + 1 | 0;
365
+ chars[_unary__edvuaz_8] = c_7;
366
+ tmp$ret$19 = 2;
367
+ break $l$block_4;
368
+ }
369
+ var codePoint_0 = -123008 ^ b2 ^ b1_0 << 6 ^ b0_1 << 12;
370
+ if (codePoint_0 < 2048) {
371
+ var c_8 = numberToChar(65533);
372
+ var _unary__edvuaz_9 = length;
373
+ length = _unary__edvuaz_9 + 1 | 0;
374
+ chars[_unary__edvuaz_9] = c_8;
375
+ } else if (55296 <= codePoint_0 ? codePoint_0 <= 57343 : false) {
376
+ var c_9 = numberToChar(65533);
377
+ var _unary__edvuaz_10 = length;
378
+ length = _unary__edvuaz_10 + 1 | 0;
379
+ chars[_unary__edvuaz_10] = c_9;
380
+ } else {
381
+ var c_10 = numberToChar(codePoint_0);
382
+ var _unary__edvuaz_11 = length;
383
+ length = _unary__edvuaz_11 + 1 | 0;
384
+ chars[_unary__edvuaz_11] = c_10;
385
+ }
386
+ tmp$ret$19 = 3;
387
+ }
388
+ index = tmp_0 + tmp$ret$19 | 0;
389
+ } else {
390
+ // Inline function 'okio.shr' call
391
+ if (b0 >> 3 === -2) {
392
+ var tmp_2 = index;
393
+ var tmp2_1 = index;
394
+ var tmp$ret$41;
395
+ $l$block_10: {
396
+ // Inline function 'okio.process4Utf8Bytes' call
397
+ if (endIndex <= (tmp2_1 + 3 | 0)) {
398
+ if (!(65533 === 65533)) {
399
+ var c_11 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
400
+ var _unary__edvuaz_12 = length;
401
+ length = _unary__edvuaz_12 + 1 | 0;
402
+ chars[_unary__edvuaz_12] = c_11;
403
+ var c_12 = numberToChar((65533 & 1023) + 56320 | 0);
404
+ var _unary__edvuaz_13 = length;
405
+ length = _unary__edvuaz_13 + 1 | 0;
406
+ chars[_unary__edvuaz_13] = c_12;
407
+ } else {
408
+ var c_13 = _Char___init__impl__6a9atx(65533);
409
+ var _unary__edvuaz_14 = length;
410
+ length = _unary__edvuaz_14 + 1 | 0;
411
+ chars[_unary__edvuaz_14] = c_13;
412
+ }
413
+ var tmp_3;
414
+ if (endIndex <= (tmp2_1 + 1 | 0)) {
415
+ tmp_3 = true;
416
+ } else {
417
+ // Inline function 'okio.isUtf8Continuation' call
418
+ // Inline function 'okio.and' call
419
+ tmp_3 = !((_this__u8e3s4[tmp2_1 + 1 | 0] & 192) === 128);
420
+ }
421
+ if (tmp_3) {
422
+ tmp$ret$41 = 1;
423
+ break $l$block_10;
424
+ } else {
425
+ var tmp_4;
426
+ if (endIndex <= (tmp2_1 + 2 | 0)) {
427
+ tmp_4 = true;
428
+ } else {
429
+ // Inline function 'okio.isUtf8Continuation' call
430
+ // Inline function 'okio.and' call
431
+ tmp_4 = !((_this__u8e3s4[tmp2_1 + 2 | 0] & 192) === 128);
432
+ }
433
+ if (tmp_4) {
434
+ tmp$ret$41 = 2;
435
+ break $l$block_10;
436
+ } else {
437
+ tmp$ret$41 = 3;
438
+ break $l$block_10;
439
+ }
440
+ }
441
+ }
442
+ var b0_2 = _this__u8e3s4[tmp2_1];
443
+ var b1_1 = _this__u8e3s4[tmp2_1 + 1 | 0];
444
+ // Inline function 'okio.isUtf8Continuation' call
445
+ // Inline function 'okio.and' call
446
+ if (!((b1_1 & 192) === 128)) {
447
+ if (!(65533 === 65533)) {
448
+ var c_14 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
449
+ var _unary__edvuaz_15 = length;
450
+ length = _unary__edvuaz_15 + 1 | 0;
451
+ chars[_unary__edvuaz_15] = c_14;
452
+ var c_15 = numberToChar((65533 & 1023) + 56320 | 0);
453
+ var _unary__edvuaz_16 = length;
454
+ length = _unary__edvuaz_16 + 1 | 0;
455
+ chars[_unary__edvuaz_16] = c_15;
456
+ } else {
457
+ var c_16 = _Char___init__impl__6a9atx(65533);
458
+ var _unary__edvuaz_17 = length;
459
+ length = _unary__edvuaz_17 + 1 | 0;
460
+ chars[_unary__edvuaz_17] = c_16;
461
+ }
462
+ tmp$ret$41 = 1;
463
+ break $l$block_10;
464
+ }
465
+ var b2_0 = _this__u8e3s4[tmp2_1 + 2 | 0];
466
+ // Inline function 'okio.isUtf8Continuation' call
467
+ // Inline function 'okio.and' call
468
+ if (!((b2_0 & 192) === 128)) {
469
+ if (!(65533 === 65533)) {
470
+ var c_17 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
471
+ var _unary__edvuaz_18 = length;
472
+ length = _unary__edvuaz_18 + 1 | 0;
473
+ chars[_unary__edvuaz_18] = c_17;
474
+ var c_18 = numberToChar((65533 & 1023) + 56320 | 0);
475
+ var _unary__edvuaz_19 = length;
476
+ length = _unary__edvuaz_19 + 1 | 0;
477
+ chars[_unary__edvuaz_19] = c_18;
478
+ } else {
479
+ var c_19 = _Char___init__impl__6a9atx(65533);
480
+ var _unary__edvuaz_20 = length;
481
+ length = _unary__edvuaz_20 + 1 | 0;
482
+ chars[_unary__edvuaz_20] = c_19;
483
+ }
484
+ tmp$ret$41 = 2;
485
+ break $l$block_10;
486
+ }
487
+ var b3 = _this__u8e3s4[tmp2_1 + 3 | 0];
488
+ // Inline function 'okio.isUtf8Continuation' call
489
+ // Inline function 'okio.and' call
490
+ if (!((b3 & 192) === 128)) {
491
+ if (!(65533 === 65533)) {
492
+ var c_20 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
493
+ var _unary__edvuaz_21 = length;
494
+ length = _unary__edvuaz_21 + 1 | 0;
495
+ chars[_unary__edvuaz_21] = c_20;
496
+ var c_21 = numberToChar((65533 & 1023) + 56320 | 0);
497
+ var _unary__edvuaz_22 = length;
498
+ length = _unary__edvuaz_22 + 1 | 0;
499
+ chars[_unary__edvuaz_22] = c_21;
500
+ } else {
501
+ var c_22 = _Char___init__impl__6a9atx(65533);
502
+ var _unary__edvuaz_23 = length;
503
+ length = _unary__edvuaz_23 + 1 | 0;
504
+ chars[_unary__edvuaz_23] = c_22;
505
+ }
506
+ tmp$ret$41 = 3;
507
+ break $l$block_10;
508
+ }
509
+ var codePoint_1 = 3678080 ^ b3 ^ b2_0 << 6 ^ b1_1 << 12 ^ b0_2 << 18;
510
+ if (codePoint_1 > 1114111) {
511
+ if (!(65533 === 65533)) {
512
+ var c_23 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
513
+ var _unary__edvuaz_24 = length;
514
+ length = _unary__edvuaz_24 + 1 | 0;
515
+ chars[_unary__edvuaz_24] = c_23;
516
+ var c_24 = numberToChar((65533 & 1023) + 56320 | 0);
517
+ var _unary__edvuaz_25 = length;
518
+ length = _unary__edvuaz_25 + 1 | 0;
519
+ chars[_unary__edvuaz_25] = c_24;
520
+ } else {
521
+ var c_25 = _Char___init__impl__6a9atx(65533);
522
+ var _unary__edvuaz_26 = length;
523
+ length = _unary__edvuaz_26 + 1 | 0;
524
+ chars[_unary__edvuaz_26] = c_25;
525
+ }
526
+ } else if (55296 <= codePoint_1 ? codePoint_1 <= 57343 : false) {
527
+ if (!(65533 === 65533)) {
528
+ var c_26 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
529
+ var _unary__edvuaz_27 = length;
530
+ length = _unary__edvuaz_27 + 1 | 0;
531
+ chars[_unary__edvuaz_27] = c_26;
532
+ var c_27 = numberToChar((65533 & 1023) + 56320 | 0);
533
+ var _unary__edvuaz_28 = length;
534
+ length = _unary__edvuaz_28 + 1 | 0;
535
+ chars[_unary__edvuaz_28] = c_27;
536
+ } else {
537
+ var c_28 = _Char___init__impl__6a9atx(65533);
538
+ var _unary__edvuaz_29 = length;
539
+ length = _unary__edvuaz_29 + 1 | 0;
540
+ chars[_unary__edvuaz_29] = c_28;
541
+ }
542
+ } else if (codePoint_1 < 65536) {
543
+ if (!(65533 === 65533)) {
544
+ var c_29 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
545
+ var _unary__edvuaz_30 = length;
546
+ length = _unary__edvuaz_30 + 1 | 0;
547
+ chars[_unary__edvuaz_30] = c_29;
548
+ var c_30 = numberToChar((65533 & 1023) + 56320 | 0);
549
+ var _unary__edvuaz_31 = length;
550
+ length = _unary__edvuaz_31 + 1 | 0;
551
+ chars[_unary__edvuaz_31] = c_30;
552
+ } else {
553
+ var c_31 = _Char___init__impl__6a9atx(65533);
554
+ var _unary__edvuaz_32 = length;
555
+ length = _unary__edvuaz_32 + 1 | 0;
556
+ chars[_unary__edvuaz_32] = c_31;
557
+ }
558
+ } else {
559
+ if (!(codePoint_1 === 65533)) {
560
+ var c_32 = numberToChar((codePoint_1 >>> 10 | 0) + 55232 | 0);
561
+ var _unary__edvuaz_33 = length;
562
+ length = _unary__edvuaz_33 + 1 | 0;
563
+ chars[_unary__edvuaz_33] = c_32;
564
+ var c_33 = numberToChar((codePoint_1 & 1023) + 56320 | 0);
565
+ var _unary__edvuaz_34 = length;
566
+ length = _unary__edvuaz_34 + 1 | 0;
567
+ chars[_unary__edvuaz_34] = c_33;
568
+ } else {
569
+ var c_34 = _Char___init__impl__6a9atx(65533);
570
+ var _unary__edvuaz_35 = length;
571
+ length = _unary__edvuaz_35 + 1 | 0;
572
+ chars[_unary__edvuaz_35] = c_34;
573
+ }
574
+ }
575
+ tmp$ret$41 = 4;
576
+ }
577
+ index = tmp_2 + tmp$ret$41 | 0;
578
+ } else {
579
+ var c_35 = _Char___init__impl__6a9atx(65533);
580
+ var _unary__edvuaz_36 = length;
581
+ length = _unary__edvuaz_36 + 1 | 0;
582
+ chars[_unary__edvuaz_36] = c_35;
583
+ index = index + 1 | 0;
584
+ }
585
+ }
586
+ }
587
+ }
588
+ }
589
+ return concatToString(chars, 0, length);
590
+ }
591
+ function get_HEX_DIGIT_CHARS() {
592
+ _init_properties_ByteString_kt__sqjq7b();
593
+ return HEX_DIGIT_CHARS;
594
+ }
595
+ var HEX_DIGIT_CHARS;
596
+ function codePointIndexToCharIndex(s, codePointCount) {
597
+ _init_properties_ByteString_kt__sqjq7b();
598
+ var charCount = 0;
599
+ var j = 0;
600
+ // Inline function 'okio.processUtf8CodePoints' call
601
+ var endIndex = s.length;
602
+ var index = 0;
603
+ while (index < endIndex) {
604
+ var b0 = s[index];
605
+ if (b0 >= 0) {
606
+ var _unary__edvuaz = j;
607
+ j = _unary__edvuaz + 1 | 0;
608
+ if (_unary__edvuaz === codePointCount) {
609
+ return charCount;
610
+ }
611
+ var tmp;
612
+ var tmp_0;
613
+ var tmp_1;
614
+ // Inline function 'kotlin.code' call
615
+ var this_0 = _Char___init__impl__6a9atx(10);
616
+ if (!(b0 === Char__toInt_impl_vasixd(this_0))) {
617
+ // Inline function 'kotlin.code' call
618
+ var this_1 = _Char___init__impl__6a9atx(13);
619
+ tmp_1 = !(b0 === Char__toInt_impl_vasixd(this_1));
620
+ } else {
621
+ tmp_1 = false;
622
+ }
623
+ if (tmp_1) {
624
+ // Inline function 'okio.isIsoControl' call
625
+ tmp_0 = (0 <= b0 ? b0 <= 31 : false) || (127 <= b0 ? b0 <= 159 : false);
626
+ } else {
627
+ tmp_0 = false;
628
+ }
629
+ if (tmp_0) {
630
+ tmp = true;
631
+ } else {
632
+ tmp = b0 === 65533;
633
+ }
634
+ if (tmp) {
635
+ return -1;
636
+ }
637
+ charCount = charCount + (b0 < 65536 ? 1 : 2) | 0;
638
+ index = index + 1 | 0;
639
+ while (index < endIndex && s[index] >= 0) {
640
+ var _unary__edvuaz_0 = index;
641
+ index = _unary__edvuaz_0 + 1 | 0;
642
+ var c = s[_unary__edvuaz_0];
643
+ var _unary__edvuaz_1 = j;
644
+ j = _unary__edvuaz_1 + 1 | 0;
645
+ if (_unary__edvuaz_1 === codePointCount) {
646
+ return charCount;
647
+ }
648
+ var tmp_2;
649
+ var tmp_3;
650
+ var tmp_4;
651
+ // Inline function 'kotlin.code' call
652
+ var this_2 = _Char___init__impl__6a9atx(10);
653
+ if (!(c === Char__toInt_impl_vasixd(this_2))) {
654
+ // Inline function 'kotlin.code' call
655
+ var this_3 = _Char___init__impl__6a9atx(13);
656
+ tmp_4 = !(c === Char__toInt_impl_vasixd(this_3));
657
+ } else {
658
+ tmp_4 = false;
659
+ }
660
+ if (tmp_4) {
661
+ // Inline function 'okio.isIsoControl' call
662
+ tmp_3 = (0 <= c ? c <= 31 : false) || (127 <= c ? c <= 159 : false);
663
+ } else {
664
+ tmp_3 = false;
665
+ }
666
+ if (tmp_3) {
667
+ tmp_2 = true;
668
+ } else {
669
+ tmp_2 = c === 65533;
670
+ }
671
+ if (tmp_2) {
672
+ return -1;
673
+ }
674
+ charCount = charCount + (c < 65536 ? 1 : 2) | 0;
675
+ }
676
+ } else {
677
+ // Inline function 'okio.shr' call
678
+ if (b0 >> 5 === -2) {
679
+ var tmp_5 = index;
680
+ var tmp2 = index;
681
+ var tmp$ret$14;
682
+ $l$block_0: {
683
+ // Inline function 'okio.process2Utf8Bytes' call
684
+ if (endIndex <= (tmp2 + 1 | 0)) {
685
+ var _unary__edvuaz_2 = j;
686
+ j = _unary__edvuaz_2 + 1 | 0;
687
+ if (_unary__edvuaz_2 === codePointCount) {
688
+ return charCount;
689
+ }
690
+ var tmp_6;
691
+ var tmp_7;
692
+ var tmp_8;
693
+ // Inline function 'kotlin.code' call
694
+ var this_4 = _Char___init__impl__6a9atx(10);
695
+ if (!(65533 === Char__toInt_impl_vasixd(this_4))) {
696
+ // Inline function 'kotlin.code' call
697
+ var this_5 = _Char___init__impl__6a9atx(13);
698
+ tmp_8 = !(65533 === Char__toInt_impl_vasixd(this_5));
699
+ } else {
700
+ tmp_8 = false;
701
+ }
702
+ if (tmp_8) {
703
+ // Inline function 'okio.isIsoControl' call
704
+ tmp_7 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
705
+ } else {
706
+ tmp_7 = false;
707
+ }
708
+ if (tmp_7) {
709
+ tmp_6 = true;
710
+ } else {
711
+ tmp_6 = 65533 === 65533;
712
+ }
713
+ if (tmp_6) {
714
+ return -1;
715
+ }
716
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
717
+ tmp$ret$14 = 1;
718
+ break $l$block_0;
719
+ }
720
+ var b0_0 = s[tmp2];
721
+ var b1 = s[tmp2 + 1 | 0];
722
+ // Inline function 'okio.isUtf8Continuation' call
723
+ // Inline function 'okio.and' call
724
+ if (!((b1 & 192) === 128)) {
725
+ var _unary__edvuaz_3 = j;
726
+ j = _unary__edvuaz_3 + 1 | 0;
727
+ if (_unary__edvuaz_3 === codePointCount) {
728
+ return charCount;
729
+ }
730
+ var tmp_9;
731
+ var tmp_10;
732
+ var tmp_11;
733
+ // Inline function 'kotlin.code' call
734
+ var this_6 = _Char___init__impl__6a9atx(10);
735
+ if (!(65533 === Char__toInt_impl_vasixd(this_6))) {
736
+ // Inline function 'kotlin.code' call
737
+ var this_7 = _Char___init__impl__6a9atx(13);
738
+ tmp_11 = !(65533 === Char__toInt_impl_vasixd(this_7));
739
+ } else {
740
+ tmp_11 = false;
741
+ }
742
+ if (tmp_11) {
743
+ // Inline function 'okio.isIsoControl' call
744
+ tmp_10 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
745
+ } else {
746
+ tmp_10 = false;
747
+ }
748
+ if (tmp_10) {
749
+ tmp_9 = true;
750
+ } else {
751
+ tmp_9 = 65533 === 65533;
752
+ }
753
+ if (tmp_9) {
754
+ return -1;
755
+ }
756
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
757
+ tmp$ret$14 = 1;
758
+ break $l$block_0;
759
+ }
760
+ var codePoint = 3968 ^ b1 ^ b0_0 << 6;
761
+ if (codePoint < 128) {
762
+ var _unary__edvuaz_4 = j;
763
+ j = _unary__edvuaz_4 + 1 | 0;
764
+ if (_unary__edvuaz_4 === codePointCount) {
765
+ return charCount;
766
+ }
767
+ var tmp_12;
768
+ var tmp_13;
769
+ var tmp_14;
770
+ // Inline function 'kotlin.code' call
771
+ var this_8 = _Char___init__impl__6a9atx(10);
772
+ if (!(65533 === Char__toInt_impl_vasixd(this_8))) {
773
+ // Inline function 'kotlin.code' call
774
+ var this_9 = _Char___init__impl__6a9atx(13);
775
+ tmp_14 = !(65533 === Char__toInt_impl_vasixd(this_9));
776
+ } else {
777
+ tmp_14 = false;
778
+ }
779
+ if (tmp_14) {
780
+ // Inline function 'okio.isIsoControl' call
781
+ tmp_13 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
782
+ } else {
783
+ tmp_13 = false;
784
+ }
785
+ if (tmp_13) {
786
+ tmp_12 = true;
787
+ } else {
788
+ tmp_12 = 65533 === 65533;
789
+ }
790
+ if (tmp_12) {
791
+ return -1;
792
+ }
793
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
794
+ } else {
795
+ var _unary__edvuaz_5 = j;
796
+ j = _unary__edvuaz_5 + 1 | 0;
797
+ if (_unary__edvuaz_5 === codePointCount) {
798
+ return charCount;
799
+ }
800
+ var tmp_15;
801
+ var tmp_16;
802
+ var tmp_17;
803
+ // Inline function 'kotlin.code' call
804
+ var this_10 = _Char___init__impl__6a9atx(10);
805
+ if (!(codePoint === Char__toInt_impl_vasixd(this_10))) {
806
+ // Inline function 'kotlin.code' call
807
+ var this_11 = _Char___init__impl__6a9atx(13);
808
+ tmp_17 = !(codePoint === Char__toInt_impl_vasixd(this_11));
809
+ } else {
810
+ tmp_17 = false;
811
+ }
812
+ if (tmp_17) {
813
+ // Inline function 'okio.isIsoControl' call
814
+ tmp_16 = (0 <= codePoint ? codePoint <= 31 : false) || (127 <= codePoint ? codePoint <= 159 : false);
815
+ } else {
816
+ tmp_16 = false;
817
+ }
818
+ if (tmp_16) {
819
+ tmp_15 = true;
820
+ } else {
821
+ tmp_15 = codePoint === 65533;
822
+ }
823
+ if (tmp_15) {
824
+ return -1;
825
+ }
826
+ charCount = charCount + (codePoint < 65536 ? 1 : 2) | 0;
827
+ }
828
+ tmp$ret$14 = 2;
829
+ }
830
+ index = tmp_5 + tmp$ret$14 | 0;
831
+ } else {
832
+ // Inline function 'okio.shr' call
833
+ if (b0 >> 4 === -2) {
834
+ var tmp_18 = index;
835
+ var tmp2_0 = index;
836
+ var tmp$ret$40;
837
+ $l$block_4: {
838
+ // Inline function 'okio.process3Utf8Bytes' call
839
+ if (endIndex <= (tmp2_0 + 2 | 0)) {
840
+ var _unary__edvuaz_6 = j;
841
+ j = _unary__edvuaz_6 + 1 | 0;
842
+ if (_unary__edvuaz_6 === codePointCount) {
843
+ return charCount;
844
+ }
845
+ var tmp_19;
846
+ var tmp_20;
847
+ var tmp_21;
848
+ // Inline function 'kotlin.code' call
849
+ var this_12 = _Char___init__impl__6a9atx(10);
850
+ if (!(65533 === Char__toInt_impl_vasixd(this_12))) {
851
+ // Inline function 'kotlin.code' call
852
+ var this_13 = _Char___init__impl__6a9atx(13);
853
+ tmp_21 = !(65533 === Char__toInt_impl_vasixd(this_13));
854
+ } else {
855
+ tmp_21 = false;
856
+ }
857
+ if (tmp_21) {
858
+ // Inline function 'okio.isIsoControl' call
859
+ tmp_20 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
860
+ } else {
861
+ tmp_20 = false;
862
+ }
863
+ if (tmp_20) {
864
+ tmp_19 = true;
865
+ } else {
866
+ tmp_19 = 65533 === 65533;
867
+ }
868
+ if (tmp_19) {
869
+ return -1;
870
+ }
871
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
872
+ var tmp_22;
873
+ if (endIndex <= (tmp2_0 + 1 | 0)) {
874
+ tmp_22 = true;
875
+ } else {
876
+ // Inline function 'okio.isUtf8Continuation' call
877
+ // Inline function 'okio.and' call
878
+ tmp_22 = !((s[tmp2_0 + 1 | 0] & 192) === 128);
879
+ }
880
+ if (tmp_22) {
881
+ tmp$ret$40 = 1;
882
+ break $l$block_4;
883
+ } else {
884
+ tmp$ret$40 = 2;
885
+ break $l$block_4;
886
+ }
887
+ }
888
+ var b0_1 = s[tmp2_0];
889
+ var b1_0 = s[tmp2_0 + 1 | 0];
890
+ // Inline function 'okio.isUtf8Continuation' call
891
+ // Inline function 'okio.and' call
892
+ if (!((b1_0 & 192) === 128)) {
893
+ var _unary__edvuaz_7 = j;
894
+ j = _unary__edvuaz_7 + 1 | 0;
895
+ if (_unary__edvuaz_7 === codePointCount) {
896
+ return charCount;
897
+ }
898
+ var tmp_23;
899
+ var tmp_24;
900
+ var tmp_25;
901
+ // Inline function 'kotlin.code' call
902
+ var this_14 = _Char___init__impl__6a9atx(10);
903
+ if (!(65533 === Char__toInt_impl_vasixd(this_14))) {
904
+ // Inline function 'kotlin.code' call
905
+ var this_15 = _Char___init__impl__6a9atx(13);
906
+ tmp_25 = !(65533 === Char__toInt_impl_vasixd(this_15));
907
+ } else {
908
+ tmp_25 = false;
909
+ }
910
+ if (tmp_25) {
911
+ // Inline function 'okio.isIsoControl' call
912
+ tmp_24 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
913
+ } else {
914
+ tmp_24 = false;
915
+ }
916
+ if (tmp_24) {
917
+ tmp_23 = true;
918
+ } else {
919
+ tmp_23 = 65533 === 65533;
920
+ }
921
+ if (tmp_23) {
922
+ return -1;
923
+ }
924
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
925
+ tmp$ret$40 = 1;
926
+ break $l$block_4;
927
+ }
928
+ var b2 = s[tmp2_0 + 2 | 0];
929
+ // Inline function 'okio.isUtf8Continuation' call
930
+ // Inline function 'okio.and' call
931
+ if (!((b2 & 192) === 128)) {
932
+ var _unary__edvuaz_8 = j;
933
+ j = _unary__edvuaz_8 + 1 | 0;
934
+ if (_unary__edvuaz_8 === codePointCount) {
935
+ return charCount;
936
+ }
937
+ var tmp_26;
938
+ var tmp_27;
939
+ var tmp_28;
940
+ // Inline function 'kotlin.code' call
941
+ var this_16 = _Char___init__impl__6a9atx(10);
942
+ if (!(65533 === Char__toInt_impl_vasixd(this_16))) {
943
+ // Inline function 'kotlin.code' call
944
+ var this_17 = _Char___init__impl__6a9atx(13);
945
+ tmp_28 = !(65533 === Char__toInt_impl_vasixd(this_17));
946
+ } else {
947
+ tmp_28 = false;
948
+ }
949
+ if (tmp_28) {
950
+ // Inline function 'okio.isIsoControl' call
951
+ tmp_27 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
952
+ } else {
953
+ tmp_27 = false;
954
+ }
955
+ if (tmp_27) {
956
+ tmp_26 = true;
957
+ } else {
958
+ tmp_26 = 65533 === 65533;
959
+ }
960
+ if (tmp_26) {
961
+ return -1;
962
+ }
963
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
964
+ tmp$ret$40 = 2;
965
+ break $l$block_4;
966
+ }
967
+ var codePoint_0 = -123008 ^ b2 ^ b1_0 << 6 ^ b0_1 << 12;
968
+ if (codePoint_0 < 2048) {
969
+ var _unary__edvuaz_9 = j;
970
+ j = _unary__edvuaz_9 + 1 | 0;
971
+ if (_unary__edvuaz_9 === codePointCount) {
972
+ return charCount;
973
+ }
974
+ var tmp_29;
975
+ var tmp_30;
976
+ var tmp_31;
977
+ // Inline function 'kotlin.code' call
978
+ var this_18 = _Char___init__impl__6a9atx(10);
979
+ if (!(65533 === Char__toInt_impl_vasixd(this_18))) {
980
+ // Inline function 'kotlin.code' call
981
+ var this_19 = _Char___init__impl__6a9atx(13);
982
+ tmp_31 = !(65533 === Char__toInt_impl_vasixd(this_19));
983
+ } else {
984
+ tmp_31 = false;
985
+ }
986
+ if (tmp_31) {
987
+ // Inline function 'okio.isIsoControl' call
988
+ tmp_30 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
989
+ } else {
990
+ tmp_30 = false;
991
+ }
992
+ if (tmp_30) {
993
+ tmp_29 = true;
994
+ } else {
995
+ tmp_29 = 65533 === 65533;
996
+ }
997
+ if (tmp_29) {
998
+ return -1;
999
+ }
1000
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1001
+ } else if (55296 <= codePoint_0 ? codePoint_0 <= 57343 : false) {
1002
+ var _unary__edvuaz_10 = j;
1003
+ j = _unary__edvuaz_10 + 1 | 0;
1004
+ if (_unary__edvuaz_10 === codePointCount) {
1005
+ return charCount;
1006
+ }
1007
+ var tmp_32;
1008
+ var tmp_33;
1009
+ var tmp_34;
1010
+ // Inline function 'kotlin.code' call
1011
+ var this_20 = _Char___init__impl__6a9atx(10);
1012
+ if (!(65533 === Char__toInt_impl_vasixd(this_20))) {
1013
+ // Inline function 'kotlin.code' call
1014
+ var this_21 = _Char___init__impl__6a9atx(13);
1015
+ tmp_34 = !(65533 === Char__toInt_impl_vasixd(this_21));
1016
+ } else {
1017
+ tmp_34 = false;
1018
+ }
1019
+ if (tmp_34) {
1020
+ // Inline function 'okio.isIsoControl' call
1021
+ tmp_33 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1022
+ } else {
1023
+ tmp_33 = false;
1024
+ }
1025
+ if (tmp_33) {
1026
+ tmp_32 = true;
1027
+ } else {
1028
+ tmp_32 = 65533 === 65533;
1029
+ }
1030
+ if (tmp_32) {
1031
+ return -1;
1032
+ }
1033
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1034
+ } else {
1035
+ var _unary__edvuaz_11 = j;
1036
+ j = _unary__edvuaz_11 + 1 | 0;
1037
+ if (_unary__edvuaz_11 === codePointCount) {
1038
+ return charCount;
1039
+ }
1040
+ var tmp_35;
1041
+ var tmp_36;
1042
+ var tmp_37;
1043
+ // Inline function 'kotlin.code' call
1044
+ var this_22 = _Char___init__impl__6a9atx(10);
1045
+ if (!(codePoint_0 === Char__toInt_impl_vasixd(this_22))) {
1046
+ // Inline function 'kotlin.code' call
1047
+ var this_23 = _Char___init__impl__6a9atx(13);
1048
+ tmp_37 = !(codePoint_0 === Char__toInt_impl_vasixd(this_23));
1049
+ } else {
1050
+ tmp_37 = false;
1051
+ }
1052
+ if (tmp_37) {
1053
+ // Inline function 'okio.isIsoControl' call
1054
+ tmp_36 = (0 <= codePoint_0 ? codePoint_0 <= 31 : false) || (127 <= codePoint_0 ? codePoint_0 <= 159 : false);
1055
+ } else {
1056
+ tmp_36 = false;
1057
+ }
1058
+ if (tmp_36) {
1059
+ tmp_35 = true;
1060
+ } else {
1061
+ tmp_35 = codePoint_0 === 65533;
1062
+ }
1063
+ if (tmp_35) {
1064
+ return -1;
1065
+ }
1066
+ charCount = charCount + (codePoint_0 < 65536 ? 1 : 2) | 0;
1067
+ }
1068
+ tmp$ret$40 = 3;
1069
+ }
1070
+ index = tmp_18 + tmp$ret$40 | 0;
1071
+ } else {
1072
+ // Inline function 'okio.shr' call
1073
+ if (b0 >> 3 === -2) {
1074
+ var tmp_38 = index;
1075
+ var tmp2_1 = index;
1076
+ var tmp$ret$78;
1077
+ $l$block_10: {
1078
+ // Inline function 'okio.process4Utf8Bytes' call
1079
+ if (endIndex <= (tmp2_1 + 3 | 0)) {
1080
+ var _unary__edvuaz_12 = j;
1081
+ j = _unary__edvuaz_12 + 1 | 0;
1082
+ if (_unary__edvuaz_12 === codePointCount) {
1083
+ return charCount;
1084
+ }
1085
+ var tmp_39;
1086
+ var tmp_40;
1087
+ var tmp_41;
1088
+ // Inline function 'kotlin.code' call
1089
+ var this_24 = _Char___init__impl__6a9atx(10);
1090
+ if (!(65533 === Char__toInt_impl_vasixd(this_24))) {
1091
+ // Inline function 'kotlin.code' call
1092
+ var this_25 = _Char___init__impl__6a9atx(13);
1093
+ tmp_41 = !(65533 === Char__toInt_impl_vasixd(this_25));
1094
+ } else {
1095
+ tmp_41 = false;
1096
+ }
1097
+ if (tmp_41) {
1098
+ // Inline function 'okio.isIsoControl' call
1099
+ tmp_40 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1100
+ } else {
1101
+ tmp_40 = false;
1102
+ }
1103
+ if (tmp_40) {
1104
+ tmp_39 = true;
1105
+ } else {
1106
+ tmp_39 = 65533 === 65533;
1107
+ }
1108
+ if (tmp_39) {
1109
+ return -1;
1110
+ }
1111
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1112
+ var tmp_42;
1113
+ if (endIndex <= (tmp2_1 + 1 | 0)) {
1114
+ tmp_42 = true;
1115
+ } else {
1116
+ // Inline function 'okio.isUtf8Continuation' call
1117
+ // Inline function 'okio.and' call
1118
+ tmp_42 = !((s[tmp2_1 + 1 | 0] & 192) === 128);
1119
+ }
1120
+ if (tmp_42) {
1121
+ tmp$ret$78 = 1;
1122
+ break $l$block_10;
1123
+ } else {
1124
+ var tmp_43;
1125
+ if (endIndex <= (tmp2_1 + 2 | 0)) {
1126
+ tmp_43 = true;
1127
+ } else {
1128
+ // Inline function 'okio.isUtf8Continuation' call
1129
+ // Inline function 'okio.and' call
1130
+ tmp_43 = !((s[tmp2_1 + 2 | 0] & 192) === 128);
1131
+ }
1132
+ if (tmp_43) {
1133
+ tmp$ret$78 = 2;
1134
+ break $l$block_10;
1135
+ } else {
1136
+ tmp$ret$78 = 3;
1137
+ break $l$block_10;
1138
+ }
1139
+ }
1140
+ }
1141
+ var b0_2 = s[tmp2_1];
1142
+ var b1_1 = s[tmp2_1 + 1 | 0];
1143
+ // Inline function 'okio.isUtf8Continuation' call
1144
+ // Inline function 'okio.and' call
1145
+ if (!((b1_1 & 192) === 128)) {
1146
+ var _unary__edvuaz_13 = j;
1147
+ j = _unary__edvuaz_13 + 1 | 0;
1148
+ if (_unary__edvuaz_13 === codePointCount) {
1149
+ return charCount;
1150
+ }
1151
+ var tmp_44;
1152
+ var tmp_45;
1153
+ var tmp_46;
1154
+ // Inline function 'kotlin.code' call
1155
+ var this_26 = _Char___init__impl__6a9atx(10);
1156
+ if (!(65533 === Char__toInt_impl_vasixd(this_26))) {
1157
+ // Inline function 'kotlin.code' call
1158
+ var this_27 = _Char___init__impl__6a9atx(13);
1159
+ tmp_46 = !(65533 === Char__toInt_impl_vasixd(this_27));
1160
+ } else {
1161
+ tmp_46 = false;
1162
+ }
1163
+ if (tmp_46) {
1164
+ // Inline function 'okio.isIsoControl' call
1165
+ tmp_45 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1166
+ } else {
1167
+ tmp_45 = false;
1168
+ }
1169
+ if (tmp_45) {
1170
+ tmp_44 = true;
1171
+ } else {
1172
+ tmp_44 = 65533 === 65533;
1173
+ }
1174
+ if (tmp_44) {
1175
+ return -1;
1176
+ }
1177
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1178
+ tmp$ret$78 = 1;
1179
+ break $l$block_10;
1180
+ }
1181
+ var b2_0 = s[tmp2_1 + 2 | 0];
1182
+ // Inline function 'okio.isUtf8Continuation' call
1183
+ // Inline function 'okio.and' call
1184
+ if (!((b2_0 & 192) === 128)) {
1185
+ var _unary__edvuaz_14 = j;
1186
+ j = _unary__edvuaz_14 + 1 | 0;
1187
+ if (_unary__edvuaz_14 === codePointCount) {
1188
+ return charCount;
1189
+ }
1190
+ var tmp_47;
1191
+ var tmp_48;
1192
+ var tmp_49;
1193
+ // Inline function 'kotlin.code' call
1194
+ var this_28 = _Char___init__impl__6a9atx(10);
1195
+ if (!(65533 === Char__toInt_impl_vasixd(this_28))) {
1196
+ // Inline function 'kotlin.code' call
1197
+ var this_29 = _Char___init__impl__6a9atx(13);
1198
+ tmp_49 = !(65533 === Char__toInt_impl_vasixd(this_29));
1199
+ } else {
1200
+ tmp_49 = false;
1201
+ }
1202
+ if (tmp_49) {
1203
+ // Inline function 'okio.isIsoControl' call
1204
+ tmp_48 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1205
+ } else {
1206
+ tmp_48 = false;
1207
+ }
1208
+ if (tmp_48) {
1209
+ tmp_47 = true;
1210
+ } else {
1211
+ tmp_47 = 65533 === 65533;
1212
+ }
1213
+ if (tmp_47) {
1214
+ return -1;
1215
+ }
1216
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1217
+ tmp$ret$78 = 2;
1218
+ break $l$block_10;
1219
+ }
1220
+ var b3 = s[tmp2_1 + 3 | 0];
1221
+ // Inline function 'okio.isUtf8Continuation' call
1222
+ // Inline function 'okio.and' call
1223
+ if (!((b3 & 192) === 128)) {
1224
+ var _unary__edvuaz_15 = j;
1225
+ j = _unary__edvuaz_15 + 1 | 0;
1226
+ if (_unary__edvuaz_15 === codePointCount) {
1227
+ return charCount;
1228
+ }
1229
+ var tmp_50;
1230
+ var tmp_51;
1231
+ var tmp_52;
1232
+ // Inline function 'kotlin.code' call
1233
+ var this_30 = _Char___init__impl__6a9atx(10);
1234
+ if (!(65533 === Char__toInt_impl_vasixd(this_30))) {
1235
+ // Inline function 'kotlin.code' call
1236
+ var this_31 = _Char___init__impl__6a9atx(13);
1237
+ tmp_52 = !(65533 === Char__toInt_impl_vasixd(this_31));
1238
+ } else {
1239
+ tmp_52 = false;
1240
+ }
1241
+ if (tmp_52) {
1242
+ // Inline function 'okio.isIsoControl' call
1243
+ tmp_51 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1244
+ } else {
1245
+ tmp_51 = false;
1246
+ }
1247
+ if (tmp_51) {
1248
+ tmp_50 = true;
1249
+ } else {
1250
+ tmp_50 = 65533 === 65533;
1251
+ }
1252
+ if (tmp_50) {
1253
+ return -1;
1254
+ }
1255
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1256
+ tmp$ret$78 = 3;
1257
+ break $l$block_10;
1258
+ }
1259
+ var codePoint_1 = 3678080 ^ b3 ^ b2_0 << 6 ^ b1_1 << 12 ^ b0_2 << 18;
1260
+ if (codePoint_1 > 1114111) {
1261
+ var _unary__edvuaz_16 = j;
1262
+ j = _unary__edvuaz_16 + 1 | 0;
1263
+ if (_unary__edvuaz_16 === codePointCount) {
1264
+ return charCount;
1265
+ }
1266
+ var tmp_53;
1267
+ var tmp_54;
1268
+ var tmp_55;
1269
+ // Inline function 'kotlin.code' call
1270
+ var this_32 = _Char___init__impl__6a9atx(10);
1271
+ if (!(65533 === Char__toInt_impl_vasixd(this_32))) {
1272
+ // Inline function 'kotlin.code' call
1273
+ var this_33 = _Char___init__impl__6a9atx(13);
1274
+ tmp_55 = !(65533 === Char__toInt_impl_vasixd(this_33));
1275
+ } else {
1276
+ tmp_55 = false;
1277
+ }
1278
+ if (tmp_55) {
1279
+ // Inline function 'okio.isIsoControl' call
1280
+ tmp_54 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1281
+ } else {
1282
+ tmp_54 = false;
1283
+ }
1284
+ if (tmp_54) {
1285
+ tmp_53 = true;
1286
+ } else {
1287
+ tmp_53 = 65533 === 65533;
1288
+ }
1289
+ if (tmp_53) {
1290
+ return -1;
1291
+ }
1292
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1293
+ } else if (55296 <= codePoint_1 ? codePoint_1 <= 57343 : false) {
1294
+ var _unary__edvuaz_17 = j;
1295
+ j = _unary__edvuaz_17 + 1 | 0;
1296
+ if (_unary__edvuaz_17 === codePointCount) {
1297
+ return charCount;
1298
+ }
1299
+ var tmp_56;
1300
+ var tmp_57;
1301
+ var tmp_58;
1302
+ // Inline function 'kotlin.code' call
1303
+ var this_34 = _Char___init__impl__6a9atx(10);
1304
+ if (!(65533 === Char__toInt_impl_vasixd(this_34))) {
1305
+ // Inline function 'kotlin.code' call
1306
+ var this_35 = _Char___init__impl__6a9atx(13);
1307
+ tmp_58 = !(65533 === Char__toInt_impl_vasixd(this_35));
1308
+ } else {
1309
+ tmp_58 = false;
1310
+ }
1311
+ if (tmp_58) {
1312
+ // Inline function 'okio.isIsoControl' call
1313
+ tmp_57 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1314
+ } else {
1315
+ tmp_57 = false;
1316
+ }
1317
+ if (tmp_57) {
1318
+ tmp_56 = true;
1319
+ } else {
1320
+ tmp_56 = 65533 === 65533;
1321
+ }
1322
+ if (tmp_56) {
1323
+ return -1;
1324
+ }
1325
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1326
+ } else if (codePoint_1 < 65536) {
1327
+ var _unary__edvuaz_18 = j;
1328
+ j = _unary__edvuaz_18 + 1 | 0;
1329
+ if (_unary__edvuaz_18 === codePointCount) {
1330
+ return charCount;
1331
+ }
1332
+ var tmp_59;
1333
+ var tmp_60;
1334
+ var tmp_61;
1335
+ // Inline function 'kotlin.code' call
1336
+ var this_36 = _Char___init__impl__6a9atx(10);
1337
+ if (!(65533 === Char__toInt_impl_vasixd(this_36))) {
1338
+ // Inline function 'kotlin.code' call
1339
+ var this_37 = _Char___init__impl__6a9atx(13);
1340
+ tmp_61 = !(65533 === Char__toInt_impl_vasixd(this_37));
1341
+ } else {
1342
+ tmp_61 = false;
1343
+ }
1344
+ if (tmp_61) {
1345
+ // Inline function 'okio.isIsoControl' call
1346
+ tmp_60 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1347
+ } else {
1348
+ tmp_60 = false;
1349
+ }
1350
+ if (tmp_60) {
1351
+ tmp_59 = true;
1352
+ } else {
1353
+ tmp_59 = 65533 === 65533;
1354
+ }
1355
+ if (tmp_59) {
1356
+ return -1;
1357
+ }
1358
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1359
+ } else {
1360
+ var _unary__edvuaz_19 = j;
1361
+ j = _unary__edvuaz_19 + 1 | 0;
1362
+ if (_unary__edvuaz_19 === codePointCount) {
1363
+ return charCount;
1364
+ }
1365
+ var tmp_62;
1366
+ var tmp_63;
1367
+ var tmp_64;
1368
+ // Inline function 'kotlin.code' call
1369
+ var this_38 = _Char___init__impl__6a9atx(10);
1370
+ if (!(codePoint_1 === Char__toInt_impl_vasixd(this_38))) {
1371
+ // Inline function 'kotlin.code' call
1372
+ var this_39 = _Char___init__impl__6a9atx(13);
1373
+ tmp_64 = !(codePoint_1 === Char__toInt_impl_vasixd(this_39));
1374
+ } else {
1375
+ tmp_64 = false;
1376
+ }
1377
+ if (tmp_64) {
1378
+ // Inline function 'okio.isIsoControl' call
1379
+ tmp_63 = (0 <= codePoint_1 ? codePoint_1 <= 31 : false) || (127 <= codePoint_1 ? codePoint_1 <= 159 : false);
1380
+ } else {
1381
+ tmp_63 = false;
1382
+ }
1383
+ if (tmp_63) {
1384
+ tmp_62 = true;
1385
+ } else {
1386
+ tmp_62 = codePoint_1 === 65533;
1387
+ }
1388
+ if (tmp_62) {
1389
+ return -1;
1390
+ }
1391
+ charCount = charCount + (codePoint_1 < 65536 ? 1 : 2) | 0;
1392
+ }
1393
+ tmp$ret$78 = 4;
1394
+ }
1395
+ index = tmp_38 + tmp$ret$78 | 0;
1396
+ } else {
1397
+ var _unary__edvuaz_20 = j;
1398
+ j = _unary__edvuaz_20 + 1 | 0;
1399
+ if (_unary__edvuaz_20 === codePointCount) {
1400
+ return charCount;
1401
+ }
1402
+ var tmp_65;
1403
+ var tmp_66;
1404
+ var tmp_67;
1405
+ // Inline function 'kotlin.code' call
1406
+ var this_40 = _Char___init__impl__6a9atx(10);
1407
+ if (!(65533 === Char__toInt_impl_vasixd(this_40))) {
1408
+ // Inline function 'kotlin.code' call
1409
+ var this_41 = _Char___init__impl__6a9atx(13);
1410
+ tmp_67 = !(65533 === Char__toInt_impl_vasixd(this_41));
1411
+ } else {
1412
+ tmp_67 = false;
1413
+ }
1414
+ if (tmp_67) {
1415
+ // Inline function 'okio.isIsoControl' call
1416
+ tmp_66 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
1417
+ } else {
1418
+ tmp_66 = false;
1419
+ }
1420
+ if (tmp_66) {
1421
+ tmp_65 = true;
1422
+ } else {
1423
+ tmp_65 = 65533 === 65533;
1424
+ }
1425
+ if (tmp_65) {
1426
+ return -1;
1427
+ }
1428
+ charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
1429
+ index = index + 1 | 0;
1430
+ }
1431
+ }
1432
+ }
1433
+ }
1434
+ }
1435
+ return charCount;
1436
+ }
1437
+ function access$codePointIndexToCharIndex$tByteStringKt(s, codePointCount) {
1438
+ return codePointIndexToCharIndex(s, codePointCount);
1439
+ }
1440
+ var properties_initialized_ByteString_kt_8ybv8b;
1441
+ function _init_properties_ByteString_kt__sqjq7b() {
1442
+ if (!properties_initialized_ByteString_kt_8ybv8b) {
1443
+ properties_initialized_ByteString_kt_8ybv8b = true;
1444
+ // Inline function 'kotlin.charArrayOf' call
1445
+ HEX_DIGIT_CHARS = charArrayOf([_Char___init__impl__6a9atx(48), _Char___init__impl__6a9atx(49), _Char___init__impl__6a9atx(50), _Char___init__impl__6a9atx(51), _Char___init__impl__6a9atx(52), _Char___init__impl__6a9atx(53), _Char___init__impl__6a9atx(54), _Char___init__impl__6a9atx(55), _Char___init__impl__6a9atx(56), _Char___init__impl__6a9atx(57), _Char___init__impl__6a9atx(97), _Char___init__impl__6a9atx(98), _Char___init__impl__6a9atx(99), _Char___init__impl__6a9atx(100), _Char___init__impl__6a9atx(101), _Char___init__impl__6a9atx(102)]);
1446
+ }
1447
+ }
1448
+ function segment(_this__u8e3s4, pos) {
1449
+ var i = binarySearch(_this__u8e3s4.zd_1, pos + 1 | 0, 0, _this__u8e3s4.yd_1.length);
1450
+ return i >= 0 ? i : ~i;
1451
+ }
1452
+ function binarySearch(_this__u8e3s4, value, fromIndex, toIndex) {
1453
+ var left = fromIndex;
1454
+ var right = toIndex - 1 | 0;
1455
+ while (left <= right) {
1456
+ var mid = (left + right | 0) >>> 1 | 0;
1457
+ var midVal = _this__u8e3s4[mid];
1458
+ if (midVal < value)
1459
+ left = mid + 1 | 0;
1460
+ else if (midVal > value)
1461
+ right = mid - 1 | 0;
1462
+ else
1463
+ return mid;
1464
+ }
1465
+ return (-left | 0) - 1 | 0;
1466
+ }
1467
+ function Companion_0() {
1468
+ Companion_instance_0 = this;
1469
+ var tmp = this;
1470
+ // Inline function 'kotlin.byteArrayOf' call
1471
+ var tmp$ret$0 = new Int8Array([]);
1472
+ tmp.ae_1 = new ByteString(tmp$ret$0);
1473
+ }
1474
+ var Companion_instance_0;
1475
+ function Companion_getInstance_0() {
1476
+ if (Companion_instance_0 == null)
1477
+ new Companion_0();
1478
+ return Companion_instance_0;
1479
+ }
1480
+ function ByteString(data) {
1481
+ Companion_getInstance_0();
1482
+ this.sd_1 = data;
1483
+ this.td_1 = 0;
1484
+ this.ud_1 = null;
1485
+ }
1486
+ protoOf(ByteString).be = function (value) {
1487
+ };
1488
+ protoOf(ByteString).ce = function (value) {
1489
+ };
1490
+ protoOf(ByteString).de = function () {
1491
+ // Inline function 'okio.internal.commonUtf8' call
1492
+ var result = this.ud_1;
1493
+ if (result == null) {
1494
+ result = toUtf8String(this.ee());
1495
+ this.ce(result);
1496
+ }
1497
+ return result;
1498
+ };
1499
+ protoOf(ByteString).fe = function () {
1500
+ // Inline function 'okio.internal.commonHex' call
1501
+ var result = charArray(imul(this.sd_1.length, 2));
1502
+ var c = 0;
1503
+ var indexedObject = this.sd_1;
1504
+ var inductionVariable = 0;
1505
+ var last = indexedObject.length;
1506
+ while (inductionVariable < last) {
1507
+ var b = indexedObject[inductionVariable];
1508
+ inductionVariable = inductionVariable + 1 | 0;
1509
+ var _unary__edvuaz = c;
1510
+ c = _unary__edvuaz + 1 | 0;
1511
+ var tmp = get_HEX_DIGIT_CHARS();
1512
+ // Inline function 'okio.shr' call
1513
+ result[_unary__edvuaz] = tmp[b >> 4 & 15];
1514
+ var _unary__edvuaz_0 = c;
1515
+ c = _unary__edvuaz_0 + 1 | 0;
1516
+ var tmp_0 = get_HEX_DIGIT_CHARS();
1517
+ // Inline function 'okio.and' call
1518
+ result[_unary__edvuaz_0] = tmp_0[b & 15];
1519
+ }
1520
+ return concatToString_0(result);
1521
+ };
1522
+ protoOf(ByteString).ge = function (pos) {
1523
+ if (pos >= this.i() || pos < 0)
1524
+ throw new ArrayIndexOutOfBoundsException('size=' + this.i() + ' pos=' + pos);
1525
+ // Inline function 'okio.internal.commonGetByte' call
1526
+ return this.sd_1[pos];
1527
+ };
1528
+ protoOf(ByteString).n = function (index) {
1529
+ return this.ge(index);
1530
+ };
1531
+ protoOf(ByteString).i = function () {
1532
+ return this.he();
1533
+ };
1534
+ protoOf(ByteString).he = function () {
1535
+ // Inline function 'okio.internal.commonGetSize' call
1536
+ return this.sd_1.length;
1537
+ };
1538
+ protoOf(ByteString).ee = function () {
1539
+ // Inline function 'okio.internal.commonInternalArray' call
1540
+ return this.sd_1;
1541
+ };
1542
+ protoOf(ByteString).ie = function (offset, other, otherOffset, byteCount) {
1543
+ // Inline function 'okio.internal.commonRangeEquals' call
1544
+ return offset >= 0 && offset <= (this.sd_1.length - byteCount | 0) && otherOffset >= 0 && otherOffset <= (other.length - byteCount | 0) && arrayRangeEquals(this.sd_1, offset, other, otherOffset, byteCount);
1545
+ };
1546
+ protoOf(ByteString).equals = function (other) {
1547
+ // Inline function 'okio.internal.commonEquals' call
1548
+ var tmp;
1549
+ if (other === this) {
1550
+ tmp = true;
1551
+ } else {
1552
+ if (other instanceof ByteString) {
1553
+ tmp = (other.i() === this.sd_1.length && other.ie(0, this.sd_1, 0, this.sd_1.length));
1554
+ } else {
1555
+ tmp = false;
1556
+ }
1557
+ }
1558
+ return tmp;
1559
+ };
1560
+ protoOf(ByteString).hashCode = function () {
1561
+ var tmp$ret$0;
1562
+ $l$block: {
1563
+ // Inline function 'okio.internal.commonHashCode' call
1564
+ var result = this.td_1;
1565
+ if (!(result === 0)) {
1566
+ tmp$ret$0 = result;
1567
+ break $l$block;
1568
+ }
1569
+ // Inline function 'kotlin.also' call
1570
+ var this_0 = contentHashCode(this.sd_1);
1571
+ this.be(this_0);
1572
+ tmp$ret$0 = this_0;
1573
+ }
1574
+ return tmp$ret$0;
1575
+ };
1576
+ protoOf(ByteString).je = function (other) {
1577
+ var tmp$ret$3;
1578
+ $l$block_0: {
1579
+ // Inline function 'okio.internal.commonCompareTo' call
1580
+ var sizeA = this.i();
1581
+ var sizeB = other.i();
1582
+ var i = 0;
1583
+ // Inline function 'kotlin.comparisons.minOf' call
1584
+ var size = Math.min(sizeA, sizeB);
1585
+ $l$loop: while (i < size) {
1586
+ // Inline function 'okio.and' call
1587
+ var byteA = this.n(i) & 255;
1588
+ // Inline function 'okio.and' call
1589
+ var byteB = other.n(i) & 255;
1590
+ if (byteA === byteB) {
1591
+ i = i + 1 | 0;
1592
+ continue $l$loop;
1593
+ }
1594
+ tmp$ret$3 = byteA < byteB ? -1 : 1;
1595
+ break $l$block_0;
1596
+ }
1597
+ if (sizeA === sizeB) {
1598
+ tmp$ret$3 = 0;
1599
+ break $l$block_0;
1600
+ }
1601
+ tmp$ret$3 = sizeA < sizeB ? -1 : 1;
1602
+ }
1603
+ return tmp$ret$3;
1604
+ };
1605
+ protoOf(ByteString).f1 = function (other) {
1606
+ return this.je(other instanceof ByteString ? other : THROW_CCE());
1607
+ };
1608
+ protoOf(ByteString).toString = function () {
1609
+ var tmp$ret$1;
1610
+ $l$block_1: {
1611
+ // Inline function 'okio.internal.commonToString' call
1612
+ // Inline function 'kotlin.collections.isEmpty' call
1613
+ if (this.sd_1.length === 0) {
1614
+ tmp$ret$1 = '[size=0]';
1615
+ break $l$block_1;
1616
+ }
1617
+ var i = access$codePointIndexToCharIndex$tByteStringKt(this.sd_1, 64);
1618
+ if (i === -1) {
1619
+ var tmp;
1620
+ if (this.sd_1.length <= 64) {
1621
+ tmp = '[hex=' + this.fe() + ']';
1622
+ } else {
1623
+ var tmp_0 = this.sd_1.length;
1624
+ var tmp$ret$8;
1625
+ $l$block_0: {
1626
+ // Inline function 'okio.internal.commonSubstring' call
1627
+ var endIndex = resolveDefaultParameter(this, 64);
1628
+ // Inline function 'kotlin.require' call
1629
+ if (!(0 >= 0)) {
1630
+ var message = 'beginIndex < 0';
1631
+ throw IllegalArgumentException_init_$Create$(toString(message));
1632
+ }
1633
+ // Inline function 'kotlin.require' call
1634
+ if (!(endIndex <= this.sd_1.length)) {
1635
+ var message_0 = 'endIndex > length(' + this.sd_1.length + ')';
1636
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
1637
+ }
1638
+ var subLen = endIndex - 0 | 0;
1639
+ // Inline function 'kotlin.require' call
1640
+ if (!(subLen >= 0)) {
1641
+ var message_1 = 'endIndex < beginIndex';
1642
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
1643
+ }
1644
+ if (0 === 0 && endIndex === this.sd_1.length) {
1645
+ tmp$ret$8 = this;
1646
+ break $l$block_0;
1647
+ }
1648
+ tmp$ret$8 = new ByteString(copyOfRange(this.sd_1, 0, endIndex));
1649
+ }
1650
+ tmp = '[size=' + tmp_0 + ' hex=' + tmp$ret$8.fe() + '\u2026]';
1651
+ }
1652
+ tmp$ret$1 = tmp;
1653
+ break $l$block_1;
1654
+ }
1655
+ var text = this.de();
1656
+ var safeText = replace(replace(replace(substring(text, 0, i), '\\', '\\\\'), '\n', '\\n'), '\r', '\\r');
1657
+ var tmp_1;
1658
+ if (i < text.length) {
1659
+ tmp_1 = '[size=' + this.sd_1.length + ' text=' + safeText + '\u2026]';
1660
+ } else {
1661
+ tmp_1 = '[text=' + safeText + ']';
1662
+ }
1663
+ tmp$ret$1 = tmp_1;
1664
+ }
1665
+ return tmp$ret$1;
1666
+ };
1667
+ function toByteString($this) {
1668
+ return new ByteString($this.ke());
1669
+ }
1670
+ function SegmentedByteString(segments, directory) {
1671
+ ByteString.call(this, Companion_getInstance_0().ae_1.sd_1);
1672
+ this.yd_1 = segments;
1673
+ this.zd_1 = directory;
1674
+ }
1675
+ protoOf(SegmentedByteString).fe = function () {
1676
+ return toByteString(this).fe();
1677
+ };
1678
+ protoOf(SegmentedByteString).ge = function (pos) {
1679
+ // Inline function 'okio.internal.commonInternalGet' call
1680
+ checkOffsetAndCount(fromInt(this.zd_1[this.yd_1.length - 1 | 0]), fromInt(pos), new Long(1, 0));
1681
+ var segment_0 = segment(this, pos);
1682
+ var segmentOffset = segment_0 === 0 ? 0 : this.zd_1[segment_0 - 1 | 0];
1683
+ var segmentPos = this.zd_1[segment_0 + this.yd_1.length | 0];
1684
+ return this.yd_1[segment_0][(pos - segmentOffset | 0) + segmentPos | 0];
1685
+ };
1686
+ protoOf(SegmentedByteString).he = function () {
1687
+ // Inline function 'okio.internal.commonGetSize' call
1688
+ return this.zd_1[this.yd_1.length - 1 | 0];
1689
+ };
1690
+ protoOf(SegmentedByteString).ke = function () {
1691
+ // Inline function 'okio.internal.commonToByteArray' call
1692
+ var result = new Int8Array(this.i());
1693
+ var resultPos = 0;
1694
+ // Inline function 'okio.internal.forEachSegment' call
1695
+ var segmentCount = this.yd_1.length;
1696
+ var s = 0;
1697
+ var pos = 0;
1698
+ while (s < segmentCount) {
1699
+ var segmentPos = this.zd_1[segmentCount + s | 0];
1700
+ var nextSegmentOffset = this.zd_1[s];
1701
+ var tmp0 = this.yd_1[s];
1702
+ var byteCount = nextSegmentOffset - pos | 0;
1703
+ var tmp4 = resultPos;
1704
+ // Inline function 'kotlin.collections.copyInto' call
1705
+ var endIndex = segmentPos + byteCount | 0;
1706
+ // Inline function 'kotlin.js.unsafeCast' call
1707
+ // Inline function 'kotlin.js.asDynamic' call
1708
+ var tmp = tmp0;
1709
+ // Inline function 'kotlin.js.unsafeCast' call
1710
+ // Inline function 'kotlin.js.asDynamic' call
1711
+ arrayCopy(tmp, result, tmp4, segmentPos, endIndex);
1712
+ resultPos = resultPos + byteCount | 0;
1713
+ pos = nextSegmentOffset;
1714
+ s = s + 1 | 0;
1715
+ }
1716
+ return result;
1717
+ };
1718
+ protoOf(SegmentedByteString).le = function (offset, other, otherOffset, byteCount) {
1719
+ var tmp$ret$0;
1720
+ $l$block_0: {
1721
+ // Inline function 'okio.internal.commonRangeEquals' call
1722
+ if (offset < 0 || offset > (this.i() - byteCount | 0)) {
1723
+ tmp$ret$0 = false;
1724
+ break $l$block_0;
1725
+ }
1726
+ var otherOffset_0 = otherOffset;
1727
+ var endIndex = offset + byteCount | 0;
1728
+ var s = segment(this, offset);
1729
+ var pos = offset;
1730
+ while (pos < endIndex) {
1731
+ var segmentOffset = s === 0 ? 0 : this.zd_1[s - 1 | 0];
1732
+ var segmentSize = this.zd_1[s] - segmentOffset | 0;
1733
+ var segmentPos = this.zd_1[this.yd_1.length + s | 0];
1734
+ // Inline function 'kotlin.comparisons.minOf' call
1735
+ var b = segmentOffset + segmentSize | 0;
1736
+ var byteCount_0 = Math.min(endIndex, b) - pos | 0;
1737
+ var offset_0 = segmentPos + (pos - segmentOffset | 0) | 0;
1738
+ var data = this.yd_1[s];
1739
+ if (!other.ie(otherOffset_0, data, offset_0, byteCount_0)) {
1740
+ tmp$ret$0 = false;
1741
+ break $l$block_0;
1742
+ }
1743
+ otherOffset_0 = otherOffset_0 + byteCount_0 | 0;
1744
+ pos = pos + byteCount_0 | 0;
1745
+ s = s + 1 | 0;
1746
+ }
1747
+ tmp$ret$0 = true;
1748
+ }
1749
+ return tmp$ret$0;
1750
+ };
1751
+ protoOf(SegmentedByteString).ie = function (offset, other, otherOffset, byteCount) {
1752
+ var tmp$ret$0;
1753
+ $l$block_0: {
1754
+ // Inline function 'okio.internal.commonRangeEquals' call
1755
+ if (offset < 0 || offset > (this.i() - byteCount | 0) || otherOffset < 0 || otherOffset > (other.length - byteCount | 0)) {
1756
+ tmp$ret$0 = false;
1757
+ break $l$block_0;
1758
+ }
1759
+ var otherOffset_0 = otherOffset;
1760
+ var endIndex = offset + byteCount | 0;
1761
+ var s = segment(this, offset);
1762
+ var pos = offset;
1763
+ while (pos < endIndex) {
1764
+ var segmentOffset = s === 0 ? 0 : this.zd_1[s - 1 | 0];
1765
+ var segmentSize = this.zd_1[s] - segmentOffset | 0;
1766
+ var segmentPos = this.zd_1[this.yd_1.length + s | 0];
1767
+ // Inline function 'kotlin.comparisons.minOf' call
1768
+ var b = segmentOffset + segmentSize | 0;
1769
+ var byteCount_0 = Math.min(endIndex, b) - pos | 0;
1770
+ var offset_0 = segmentPos + (pos - segmentOffset | 0) | 0;
1771
+ var data = this.yd_1[s];
1772
+ if (!arrayRangeEquals(data, offset_0, other, otherOffset_0, byteCount_0)) {
1773
+ tmp$ret$0 = false;
1774
+ break $l$block_0;
1775
+ }
1776
+ otherOffset_0 = otherOffset_0 + byteCount_0 | 0;
1777
+ pos = pos + byteCount_0 | 0;
1778
+ s = s + 1 | 0;
1779
+ }
1780
+ tmp$ret$0 = true;
1781
+ }
1782
+ return tmp$ret$0;
1783
+ };
1784
+ protoOf(SegmentedByteString).ee = function () {
1785
+ return this.ke();
1786
+ };
1787
+ protoOf(SegmentedByteString).equals = function (other) {
1788
+ // Inline function 'okio.internal.commonEquals' call
1789
+ var tmp;
1790
+ if (other === this) {
1791
+ tmp = true;
1792
+ } else {
1793
+ if (other instanceof ByteString) {
1794
+ tmp = (other.i() === this.i() && this.le(0, other, 0, this.i()));
1795
+ } else {
1796
+ tmp = false;
1797
+ }
1798
+ }
1799
+ return tmp;
1800
+ };
1801
+ protoOf(SegmentedByteString).hashCode = function () {
1802
+ var tmp$ret$0;
1803
+ $l$block: {
1804
+ // Inline function 'okio.internal.commonHashCode' call
1805
+ var result = this.td_1;
1806
+ if (!(result === 0)) {
1807
+ tmp$ret$0 = result;
1808
+ break $l$block;
1809
+ }
1810
+ result = 1;
1811
+ // Inline function 'okio.internal.forEachSegment' call
1812
+ var segmentCount = this.yd_1.length;
1813
+ var s = 0;
1814
+ var pos = 0;
1815
+ while (s < segmentCount) {
1816
+ var segmentPos = this.zd_1[segmentCount + s | 0];
1817
+ var nextSegmentOffset = this.zd_1[s];
1818
+ var tmp0 = this.yd_1[s];
1819
+ var i = segmentPos;
1820
+ var limit = segmentPos + (nextSegmentOffset - pos | 0) | 0;
1821
+ while (i < limit) {
1822
+ result = imul(31, result) + tmp0[i] | 0;
1823
+ i = i + 1 | 0;
1824
+ }
1825
+ pos = nextSegmentOffset;
1826
+ s = s + 1 | 0;
1827
+ }
1828
+ this.be(result);
1829
+ tmp$ret$0 = result;
1830
+ }
1831
+ return tmp$ret$0;
1832
+ };
1833
+ protoOf(SegmentedByteString).toString = function () {
1834
+ return toByteString(this).toString();
1835
+ };
1836
+ function UnsafeCursor() {
1837
+ this.me_1 = null;
1838
+ this.ne_1 = false;
1839
+ this.oe_1 = null;
1840
+ this.pe_1 = new Long(-1, -1);
1841
+ this.qe_1 = null;
1842
+ this.re_1 = -1;
1843
+ this.se_1 = -1;
1844
+ }
1845
+ function Buffer() {
1846
+ this.te_1 = null;
1847
+ this.ue_1 = new Long(0, 0);
1848
+ }
1849
+ protoOf(Buffer).ve = function () {
1850
+ return this;
1851
+ };
1852
+ protoOf(Buffer).we = function (byteCount) {
1853
+ return compare(this.ue_1, byteCount) >= 0;
1854
+ };
1855
+ protoOf(Buffer).xe = function (pos) {
1856
+ var tmp$ret$0;
1857
+ $l$block_1: {
1858
+ // Inline function 'okio.internal.commonGet' call
1859
+ checkOffsetAndCount(this.ue_1, pos, new Long(1, 0));
1860
+ // Inline function 'okio.internal.seek' call
1861
+ var tmp0_elvis_lhs = this.te_1;
1862
+ var tmp;
1863
+ if (tmp0_elvis_lhs == null) {
1864
+ var offset = new Long(-1, -1);
1865
+ tmp$ret$0 = ensureNotNull(null).zc_1[convertToInt(subtract(add(numberToLong(null.ad_1), pos), offset))];
1866
+ break $l$block_1;
1867
+ } else {
1868
+ tmp = tmp0_elvis_lhs;
1869
+ }
1870
+ var s = tmp;
1871
+ if (compare(subtract(this.ue_1, pos), pos) < 0) {
1872
+ var offset_0 = this.ue_1;
1873
+ while (compare(offset_0, pos) > 0) {
1874
+ s = ensureNotNull(s.fd_1);
1875
+ offset_0 = subtract(offset_0, fromInt(s.bd_1 - s.ad_1 | 0));
1876
+ }
1877
+ var tmp0 = s;
1878
+ var offset_1 = offset_0;
1879
+ tmp$ret$0 = ensureNotNull(tmp0).zc_1[convertToInt(subtract(add(numberToLong(tmp0.ad_1), pos), offset_1))];
1880
+ break $l$block_1;
1881
+ } else {
1882
+ var offset_2 = new Long(0, 0);
1883
+ $l$loop: while (true) {
1884
+ var tmp0_0 = offset_2;
1885
+ // Inline function 'kotlin.Long.plus' call
1886
+ var other = s.bd_1 - s.ad_1 | 0;
1887
+ var nextOffset = add(tmp0_0, fromInt(other));
1888
+ if (compare(nextOffset, pos) > 0)
1889
+ break $l$loop;
1890
+ s = ensureNotNull(s.ed_1);
1891
+ offset_2 = nextOffset;
1892
+ }
1893
+ var tmp0_1 = s;
1894
+ var offset_3 = offset_2;
1895
+ tmp$ret$0 = ensureNotNull(tmp0_1).zc_1[convertToInt(subtract(add(numberToLong(tmp0_1.ad_1), pos), offset_3))];
1896
+ break $l$block_1;
1897
+ }
1898
+ }
1899
+ return tmp$ret$0;
1900
+ };
1901
+ protoOf(Buffer).ye = function (byteCount) {
1902
+ var tmp$ret$2;
1903
+ $l$block_0: {
1904
+ // Inline function 'okio.internal.commonReadUtf8' call
1905
+ // Inline function 'kotlin.require' call
1906
+ if (!(compare(byteCount, new Long(0, 0)) >= 0 && compare(byteCount, new Long(2147483647, 0)) <= 0)) {
1907
+ var message = 'byteCount: ' + byteCount.toString();
1908
+ throw IllegalArgumentException_init_$Create$(toString(message));
1909
+ }
1910
+ if (compare(this.ue_1, byteCount) < 0)
1911
+ throw EOFException_init_$Create$();
1912
+ if (equalsLong(byteCount, new Long(0, 0))) {
1913
+ tmp$ret$2 = '';
1914
+ break $l$block_0;
1915
+ }
1916
+ var s = ensureNotNull(this.te_1);
1917
+ if (compare(add(numberToLong(s.ad_1), byteCount), fromInt(s.bd_1)) > 0) {
1918
+ tmp$ret$2 = commonToUtf8String(this.ze(byteCount));
1919
+ break $l$block_0;
1920
+ }
1921
+ var result = commonToUtf8String(s.zc_1, s.ad_1, s.ad_1 + convertToInt(byteCount) | 0);
1922
+ s.ad_1 = s.ad_1 + convertToInt(byteCount) | 0;
1923
+ this.ue_1 = subtract(this.ue_1, byteCount);
1924
+ if (s.ad_1 === s.bd_1) {
1925
+ this.te_1 = s.jd();
1926
+ SegmentPool_instance.rd(s);
1927
+ }
1928
+ tmp$ret$2 = result;
1929
+ }
1930
+ return tmp$ret$2;
1931
+ };
1932
+ protoOf(Buffer).af = function () {
1933
+ // Inline function 'okio.internal.commonReadByteArray' call
1934
+ return this.ze(this.ue_1);
1935
+ };
1936
+ protoOf(Buffer).ze = function (byteCount) {
1937
+ // Inline function 'okio.internal.commonReadByteArray' call
1938
+ // Inline function 'kotlin.require' call
1939
+ if (!(compare(byteCount, new Long(0, 0)) >= 0 && compare(byteCount, new Long(2147483647, 0)) <= 0)) {
1940
+ var message = 'byteCount: ' + byteCount.toString();
1941
+ throw IllegalArgumentException_init_$Create$(toString(message));
1942
+ }
1943
+ if (compare(this.ue_1, byteCount) < 0)
1944
+ throw EOFException_init_$Create$();
1945
+ var result = new Int8Array(convertToInt(byteCount));
1946
+ this.bf(result);
1947
+ return result;
1948
+ };
1949
+ protoOf(Buffer).bf = function (sink) {
1950
+ // Inline function 'okio.internal.commonReadFully' call
1951
+ var offset = 0;
1952
+ while (offset < sink.length) {
1953
+ var read = this.cf(sink, offset, sink.length - offset | 0);
1954
+ if (read === -1)
1955
+ throw EOFException_init_$Create$();
1956
+ offset = offset + read | 0;
1957
+ }
1958
+ return Unit_instance;
1959
+ };
1960
+ protoOf(Buffer).cf = function (sink, offset, byteCount) {
1961
+ var tmp$ret$0;
1962
+ $l$block: {
1963
+ // Inline function 'okio.internal.commonRead' call
1964
+ checkOffsetAndCount(fromInt(sink.length), fromInt(offset), fromInt(byteCount));
1965
+ var tmp0_elvis_lhs = this.te_1;
1966
+ var tmp;
1967
+ if (tmp0_elvis_lhs == null) {
1968
+ tmp$ret$0 = -1;
1969
+ break $l$block;
1970
+ } else {
1971
+ tmp = tmp0_elvis_lhs;
1972
+ }
1973
+ var s = tmp;
1974
+ // Inline function 'kotlin.comparisons.minOf' call
1975
+ var b = s.bd_1 - s.ad_1 | 0;
1976
+ var toCopy = Math.min(byteCount, b);
1977
+ var tmp0 = s.zc_1;
1978
+ var tmp6 = s.ad_1;
1979
+ // Inline function 'kotlin.collections.copyInto' call
1980
+ var endIndex = s.ad_1 + toCopy | 0;
1981
+ // Inline function 'kotlin.js.unsafeCast' call
1982
+ // Inline function 'kotlin.js.asDynamic' call
1983
+ var tmp_0 = tmp0;
1984
+ // Inline function 'kotlin.js.unsafeCast' call
1985
+ // Inline function 'kotlin.js.asDynamic' call
1986
+ arrayCopy(tmp_0, sink, offset, tmp6, endIndex);
1987
+ s.ad_1 = s.ad_1 + toCopy | 0;
1988
+ this.ue_1 = subtract(this.ue_1, fromInt(toCopy));
1989
+ if (s.ad_1 === s.bd_1) {
1990
+ this.te_1 = s.jd();
1991
+ SegmentPool_instance.rd(s);
1992
+ }
1993
+ tmp$ret$0 = toCopy;
1994
+ }
1995
+ return tmp$ret$0;
1996
+ };
1997
+ protoOf(Buffer).df = function (minimumCapacity) {
1998
+ var tmp$ret$2;
1999
+ $l$block: {
2000
+ // Inline function 'okio.internal.commonWritableSegment' call
2001
+ // Inline function 'kotlin.require' call
2002
+ if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
2003
+ var message = 'unexpected capacity';
2004
+ throw IllegalArgumentException_init_$Create$(toString(message));
2005
+ }
2006
+ if (this.te_1 == null) {
2007
+ var result = SegmentPool_instance.od();
2008
+ this.te_1 = result;
2009
+ result.fd_1 = result;
2010
+ result.ed_1 = result;
2011
+ tmp$ret$2 = result;
2012
+ break $l$block;
2013
+ }
2014
+ var tail = ensureNotNull(this.te_1).fd_1;
2015
+ if ((ensureNotNull(tail).bd_1 + minimumCapacity | 0) > 8192 || !tail.dd_1) {
2016
+ tail = tail.kd(SegmentPool_instance.od());
2017
+ }
2018
+ tmp$ret$2 = tail;
2019
+ }
2020
+ return tmp$ret$2;
2021
+ };
2022
+ protoOf(Buffer).ef = function (string) {
2023
+ return this.ff(string, 0, string.length);
2024
+ };
2025
+ protoOf(Buffer).ff = function (string, beginIndex, endIndex) {
2026
+ // Inline function 'okio.internal.commonWriteUtf8' call
2027
+ // Inline function 'kotlin.require' call
2028
+ if (!(beginIndex >= 0)) {
2029
+ var message = 'beginIndex < 0: ' + beginIndex;
2030
+ throw IllegalArgumentException_init_$Create$(toString(message));
2031
+ }
2032
+ // Inline function 'kotlin.require' call
2033
+ if (!(endIndex >= beginIndex)) {
2034
+ var message_0 = 'endIndex < beginIndex: ' + endIndex + ' < ' + beginIndex;
2035
+ throw IllegalArgumentException_init_$Create$(toString(message_0));
2036
+ }
2037
+ // Inline function 'kotlin.require' call
2038
+ if (!(endIndex <= string.length)) {
2039
+ var message_1 = 'endIndex > string.length: ' + endIndex + ' > ' + string.length;
2040
+ throw IllegalArgumentException_init_$Create$(toString(message_1));
2041
+ }
2042
+ var i = beginIndex;
2043
+ while (i < endIndex) {
2044
+ // Inline function 'kotlin.code' call
2045
+ var this_0 = charCodeAt(string, i);
2046
+ var c = Char__toInt_impl_vasixd(this_0);
2047
+ if (c < 128) {
2048
+ var tail = this.df(1);
2049
+ var data = tail.zc_1;
2050
+ var segmentOffset = tail.bd_1 - i | 0;
2051
+ // Inline function 'kotlin.comparisons.minOf' call
2052
+ var b = 8192 - segmentOffset | 0;
2053
+ var runLimit = Math.min(endIndex, b);
2054
+ var _unary__edvuaz = i;
2055
+ i = _unary__edvuaz + 1 | 0;
2056
+ data[segmentOffset + _unary__edvuaz | 0] = toByte(c);
2057
+ $l$loop: while (i < runLimit) {
2058
+ // Inline function 'kotlin.code' call
2059
+ var this_1 = charCodeAt(string, i);
2060
+ c = Char__toInt_impl_vasixd(this_1);
2061
+ if (c >= 128)
2062
+ break $l$loop;
2063
+ var _unary__edvuaz_0 = i;
2064
+ i = _unary__edvuaz_0 + 1 | 0;
2065
+ data[segmentOffset + _unary__edvuaz_0 | 0] = toByte(c);
2066
+ }
2067
+ var runSize = (i + segmentOffset | 0) - tail.bd_1 | 0;
2068
+ tail.bd_1 = tail.bd_1 + runSize | 0;
2069
+ this.ue_1 = add(this.ue_1, fromInt(runSize));
2070
+ } else if (c < 2048) {
2071
+ var tail_0 = this.df(2);
2072
+ tail_0.zc_1[tail_0.bd_1] = toByte(c >> 6 | 192);
2073
+ tail_0.zc_1[tail_0.bd_1 + 1 | 0] = toByte(c & 63 | 128);
2074
+ tail_0.bd_1 = tail_0.bd_1 + 2 | 0;
2075
+ this.ue_1 = add(this.ue_1, new Long(2, 0));
2076
+ i = i + 1 | 0;
2077
+ } else if (c < 55296 || c > 57343) {
2078
+ var tail_1 = this.df(3);
2079
+ tail_1.zc_1[tail_1.bd_1] = toByte(c >> 12 | 224);
2080
+ tail_1.zc_1[tail_1.bd_1 + 1 | 0] = toByte(c >> 6 & 63 | 128);
2081
+ tail_1.zc_1[tail_1.bd_1 + 2 | 0] = toByte(c & 63 | 128);
2082
+ tail_1.bd_1 = tail_1.bd_1 + 3 | 0;
2083
+ this.ue_1 = add(this.ue_1, new Long(3, 0));
2084
+ i = i + 1 | 0;
2085
+ } else {
2086
+ var tmp;
2087
+ if ((i + 1 | 0) < endIndex) {
2088
+ // Inline function 'kotlin.code' call
2089
+ var this_2 = charCodeAt(string, i + 1 | 0);
2090
+ tmp = Char__toInt_impl_vasixd(this_2);
2091
+ } else {
2092
+ tmp = 0;
2093
+ }
2094
+ var low = tmp;
2095
+ if (c > 56319 || !(56320 <= low ? low <= 57343 : false)) {
2096
+ // Inline function 'kotlin.code' call
2097
+ var this_3 = _Char___init__impl__6a9atx(63);
2098
+ var tmp$ret$10 = Char__toInt_impl_vasixd(this_3);
2099
+ this.gf(tmp$ret$10);
2100
+ i = i + 1 | 0;
2101
+ } else {
2102
+ var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
2103
+ var tail_2 = this.df(4);
2104
+ tail_2.zc_1[tail_2.bd_1] = toByte(codePoint >> 18 | 240);
2105
+ tail_2.zc_1[tail_2.bd_1 + 1 | 0] = toByte(codePoint >> 12 & 63 | 128);
2106
+ tail_2.zc_1[tail_2.bd_1 + 2 | 0] = toByte(codePoint >> 6 & 63 | 128);
2107
+ tail_2.zc_1[tail_2.bd_1 + 3 | 0] = toByte(codePoint & 63 | 128);
2108
+ tail_2.bd_1 = tail_2.bd_1 + 4 | 0;
2109
+ this.ue_1 = add(this.ue_1, new Long(4, 0));
2110
+ i = i + 2 | 0;
2111
+ }
2112
+ }
2113
+ }
2114
+ return this;
2115
+ };
2116
+ protoOf(Buffer).gf = function (b) {
2117
+ // Inline function 'okio.internal.commonWriteByte' call
2118
+ var tail = this.df(1);
2119
+ var _unary__edvuaz = tail.bd_1;
2120
+ tail.bd_1 = _unary__edvuaz + 1 | 0;
2121
+ tail.zc_1[_unary__edvuaz] = toByte(b);
2122
+ this.ue_1 = add(this.ue_1, new Long(1, 0));
2123
+ return this;
2124
+ };
2125
+ protoOf(Buffer).hf = function (source, byteCount) {
2126
+ var tmp$ret$4;
2127
+ $l$block: {
2128
+ // Inline function 'okio.internal.commonWrite' call
2129
+ var byteCount_0 = byteCount;
2130
+ // Inline function 'kotlin.require' call
2131
+ if (!!(source === this)) {
2132
+ var message = 'source == this';
2133
+ throw IllegalArgumentException_init_$Create$(toString(message));
2134
+ }
2135
+ checkOffsetAndCount(source.ue_1, new Long(0, 0), byteCount_0);
2136
+ while (compare(byteCount_0, new Long(0, 0)) > 0) {
2137
+ if (compare(byteCount_0, fromInt(ensureNotNull(source.te_1).bd_1 - ensureNotNull(source.te_1).ad_1 | 0)) < 0) {
2138
+ var tail = !(this.te_1 == null) ? ensureNotNull(this.te_1).fd_1 : null;
2139
+ var tmp;
2140
+ if (!(tail == null) && tail.dd_1) {
2141
+ var tmp0 = byteCount_0;
2142
+ // Inline function 'kotlin.Long.plus' call
2143
+ var other = tail.bd_1;
2144
+ var tmp0_0 = add(tmp0, fromInt(other));
2145
+ // Inline function 'kotlin.Long.minus' call
2146
+ var other_0 = tail.cd_1 ? 0 : tail.ad_1;
2147
+ var tmp$ret$3 = subtract(tmp0_0, fromInt(other_0));
2148
+ tmp = compare(tmp$ret$3, new Long(8192, 0)) <= 0;
2149
+ } else {
2150
+ tmp = false;
2151
+ }
2152
+ if (tmp) {
2153
+ ensureNotNull(source.te_1).qd(tail, convertToInt(byteCount_0));
2154
+ source.ue_1 = subtract(source.ue_1, byteCount_0);
2155
+ this.ue_1 = add(this.ue_1, byteCount_0);
2156
+ tmp$ret$4 = Unit_instance;
2157
+ break $l$block;
2158
+ } else {
2159
+ source.te_1 = ensureNotNull(source.te_1).ld(convertToInt(byteCount_0));
2160
+ }
2161
+ }
2162
+ var segmentToMove = source.te_1;
2163
+ var movedByteCount = fromInt(ensureNotNull(segmentToMove).bd_1 - segmentToMove.ad_1 | 0);
2164
+ source.te_1 = segmentToMove.jd();
2165
+ if (this.te_1 == null) {
2166
+ this.te_1 = segmentToMove;
2167
+ segmentToMove.fd_1 = segmentToMove;
2168
+ segmentToMove.ed_1 = segmentToMove.fd_1;
2169
+ } else {
2170
+ var tail_0 = ensureNotNull(this.te_1).fd_1;
2171
+ tail_0 = ensureNotNull(tail_0).kd(segmentToMove);
2172
+ tail_0.pd();
2173
+ }
2174
+ source.ue_1 = subtract(source.ue_1, movedByteCount);
2175
+ this.ue_1 = add(this.ue_1, movedByteCount);
2176
+ byteCount_0 = subtract(byteCount_0, movedByteCount);
2177
+ }
2178
+ tmp$ret$4 = Unit_instance;
2179
+ }
2180
+ return tmp$ret$4;
2181
+ };
2182
+ protoOf(Buffer).if = function (sink, byteCount) {
2183
+ var tmp$ret$2;
2184
+ $l$block: {
2185
+ // Inline function 'okio.internal.commonRead' call
2186
+ var byteCount_0 = byteCount;
2187
+ // Inline function 'kotlin.require' call
2188
+ if (!(compare(byteCount_0, new Long(0, 0)) >= 0)) {
2189
+ var message = 'byteCount < 0: ' + byteCount_0.toString();
2190
+ throw IllegalArgumentException_init_$Create$(toString(message));
2191
+ }
2192
+ if (equalsLong(this.ue_1, new Long(0, 0))) {
2193
+ tmp$ret$2 = new Long(-1, -1);
2194
+ break $l$block;
2195
+ }
2196
+ if (compare(byteCount_0, this.ue_1) > 0)
2197
+ byteCount_0 = this.ue_1;
2198
+ sink.hf(this, byteCount_0);
2199
+ tmp$ret$2 = byteCount_0;
2200
+ }
2201
+ return tmp$ret$2;
2202
+ };
2203
+ protoOf(Buffer).jf = function () {
2204
+ return Unit_instance;
2205
+ };
2206
+ protoOf(Buffer).equals = function (other) {
2207
+ var tmp$ret$0;
2208
+ $l$block_3: {
2209
+ // Inline function 'okio.internal.commonEquals' call
2210
+ if (this === other) {
2211
+ tmp$ret$0 = true;
2212
+ break $l$block_3;
2213
+ }
2214
+ if (!(other instanceof Buffer)) {
2215
+ tmp$ret$0 = false;
2216
+ break $l$block_3;
2217
+ }
2218
+ if (!equalsLong(this.ue_1, other.ue_1)) {
2219
+ tmp$ret$0 = false;
2220
+ break $l$block_3;
2221
+ }
2222
+ if (equalsLong(this.ue_1, new Long(0, 0))) {
2223
+ tmp$ret$0 = true;
2224
+ break $l$block_3;
2225
+ }
2226
+ var sa = ensureNotNull(this.te_1);
2227
+ var sb = ensureNotNull(other.te_1);
2228
+ var posA = sa.ad_1;
2229
+ var posB = sb.ad_1;
2230
+ var pos = new Long(0, 0);
2231
+ var count;
2232
+ while (compare(pos, this.ue_1) < 0) {
2233
+ var tmp0 = sa.bd_1 - posA | 0;
2234
+ // Inline function 'kotlin.comparisons.minOf' call
2235
+ var b = sb.bd_1 - posB | 0;
2236
+ var tmp$ret$1 = Math.min(tmp0, b);
2237
+ count = fromInt(tmp$ret$1);
2238
+ var inductionVariable = new Long(0, 0);
2239
+ if (compare(inductionVariable, count) < 0)
2240
+ do {
2241
+ var i = inductionVariable;
2242
+ inductionVariable = add(inductionVariable, new Long(1, 0));
2243
+ var tmp = sa.zc_1;
2244
+ var _unary__edvuaz = posA;
2245
+ posA = _unary__edvuaz + 1 | 0;
2246
+ var tmp_0 = tmp[_unary__edvuaz];
2247
+ var tmp_1 = sb.zc_1;
2248
+ var _unary__edvuaz_0 = posB;
2249
+ posB = _unary__edvuaz_0 + 1 | 0;
2250
+ if (!(tmp_0 === tmp_1[_unary__edvuaz_0])) {
2251
+ tmp$ret$0 = false;
2252
+ break $l$block_3;
2253
+ }
2254
+ }
2255
+ while (compare(inductionVariable, count) < 0);
2256
+ if (posA === sa.bd_1) {
2257
+ sa = ensureNotNull(sa.ed_1);
2258
+ posA = sa.ad_1;
2259
+ }
2260
+ if (posB === sb.bd_1) {
2261
+ sb = ensureNotNull(sb.ed_1);
2262
+ posB = sb.ad_1;
2263
+ }
2264
+ pos = add(pos, count);
2265
+ }
2266
+ tmp$ret$0 = true;
2267
+ }
2268
+ return tmp$ret$0;
2269
+ };
2270
+ protoOf(Buffer).hashCode = function () {
2271
+ var tmp$ret$0;
2272
+ $l$block: {
2273
+ // Inline function 'okio.internal.commonHashCode' call
2274
+ var tmp0_elvis_lhs = this.te_1;
2275
+ var tmp;
2276
+ if (tmp0_elvis_lhs == null) {
2277
+ tmp$ret$0 = 0;
2278
+ break $l$block;
2279
+ } else {
2280
+ tmp = tmp0_elvis_lhs;
2281
+ }
2282
+ var s = tmp;
2283
+ var result = 1;
2284
+ do {
2285
+ var pos = s.ad_1;
2286
+ var limit = s.bd_1;
2287
+ while (pos < limit) {
2288
+ result = imul(31, result) + s.zc_1[pos] | 0;
2289
+ pos = pos + 1 | 0;
2290
+ }
2291
+ s = ensureNotNull(s.ed_1);
2292
+ }
2293
+ while (!(s === this.te_1));
2294
+ tmp$ret$0 = result;
2295
+ }
2296
+ return tmp$ret$0;
2297
+ };
2298
+ protoOf(Buffer).toString = function () {
2299
+ return this.kf().toString();
2300
+ };
2301
+ protoOf(Buffer).kf = function () {
2302
+ // Inline function 'okio.internal.commonSnapshot' call
2303
+ // Inline function 'kotlin.check' call
2304
+ if (!(compare(this.ue_1, new Long(2147483647, 0)) <= 0)) {
2305
+ var message = 'size > Int.MAX_VALUE: ' + this.ue_1.toString();
2306
+ throw IllegalStateException_init_$Create$(toString(message));
2307
+ }
2308
+ return this.lf(convertToInt(this.ue_1));
2309
+ };
2310
+ protoOf(Buffer).lf = function (byteCount) {
2311
+ var tmp$ret$0;
2312
+ $l$block: {
2313
+ // Inline function 'okio.internal.commonSnapshot' call
2314
+ if (byteCount === 0) {
2315
+ tmp$ret$0 = Companion_getInstance_0().ae_1;
2316
+ break $l$block;
2317
+ }
2318
+ checkOffsetAndCount(this.ue_1, new Long(0, 0), fromInt(byteCount));
2319
+ var offset = 0;
2320
+ var segmentCount = 0;
2321
+ var s = this.te_1;
2322
+ while (offset < byteCount) {
2323
+ if (ensureNotNull(s).bd_1 === s.ad_1) {
2324
+ throw AssertionError_init_$Create$('s.limit == s.pos');
2325
+ }
2326
+ offset = offset + (s.bd_1 - s.ad_1 | 0) | 0;
2327
+ segmentCount = segmentCount + 1 | 0;
2328
+ s = s.ed_1;
2329
+ }
2330
+ // Inline function 'kotlin.arrayOfNulls' call
2331
+ var size = segmentCount;
2332
+ var segments = Array(size);
2333
+ var directory = new Int32Array(imul(segmentCount, 2));
2334
+ offset = 0;
2335
+ segmentCount = 0;
2336
+ s = this.te_1;
2337
+ while (offset < byteCount) {
2338
+ segments[segmentCount] = ensureNotNull(s).zc_1;
2339
+ offset = offset + (s.bd_1 - s.ad_1 | 0) | 0;
2340
+ var tmp = segmentCount;
2341
+ // Inline function 'kotlin.comparisons.minOf' call
2342
+ var a = offset;
2343
+ directory[tmp] = Math.min(a, byteCount);
2344
+ directory[segmentCount + segments.length | 0] = s.ad_1;
2345
+ s.cd_1 = true;
2346
+ segmentCount = segmentCount + 1 | 0;
2347
+ s = s.ed_1;
2348
+ }
2349
+ tmp$ret$0 = new SegmentedByteString(isArray(segments) ? segments : THROW_CCE(), directory);
2350
+ }
2351
+ return tmp$ret$0;
2352
+ };
2353
+ function BufferedSource() {
2354
+ }
2355
+ function ArrayIndexOutOfBoundsException(message) {
2356
+ IndexOutOfBoundsException_init_$Init$(message, this);
2357
+ captureStack(this, ArrayIndexOutOfBoundsException);
2358
+ }
2359
+ function EOFException_init_$Init$($this) {
2360
+ EOFException.call($this, null);
2361
+ return $this;
2362
+ }
2363
+ function EOFException_init_$Create$() {
2364
+ var tmp = EOFException_init_$Init$(objectCreate(protoOf(EOFException)));
2365
+ captureStack(tmp, EOFException_init_$Create$);
2366
+ return tmp;
2367
+ }
2368
+ function EOFException(message) {
2369
+ IOException_init_$Init$(message, this);
2370
+ captureStack(this, EOFException);
2371
+ }
2372
+ function IOException_init_$Init$(message, $this) {
2373
+ IOException.call($this, message, null);
2374
+ return $this;
2375
+ }
2376
+ function IOException_init_$Init$_0($this) {
2377
+ IOException.call($this, null, null);
2378
+ return $this;
2379
+ }
2380
+ function IOException_init_$Create$() {
2381
+ var tmp = IOException_init_$Init$_0(objectCreate(protoOf(IOException)));
2382
+ captureStack(tmp, IOException_init_$Create$);
2383
+ return tmp;
2384
+ }
2385
+ function IOException(message, cause) {
2386
+ Exception_init_$Init$(message, cause, this);
2387
+ captureStack(this, IOException);
2388
+ }
2389
+ function toUtf8String(_this__u8e3s4) {
2390
+ return commonToUtf8String(_this__u8e3s4);
2391
+ }
2392
+ function RealBufferedSource(source) {
2393
+ this.mf_1 = source;
2394
+ this.nf_1 = false;
2395
+ this.of_1 = new Buffer();
2396
+ }
2397
+ protoOf(RealBufferedSource).ve = function () {
2398
+ return this.of_1;
2399
+ };
2400
+ protoOf(RealBufferedSource).if = function (sink, byteCount) {
2401
+ var tmp$ret$4;
2402
+ $l$block_0: {
2403
+ // Inline function 'okio.internal.commonRead' call
2404
+ // Inline function 'kotlin.require' call
2405
+ if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
2406
+ var message = 'byteCount < 0: ' + byteCount.toString();
2407
+ throw IllegalArgumentException_init_$Create$(toString(message));
2408
+ }
2409
+ // Inline function 'kotlin.check' call
2410
+ if (!!this.nf_1) {
2411
+ var message_0 = 'closed';
2412
+ throw IllegalStateException_init_$Create$(toString(message_0));
2413
+ }
2414
+ if (equalsLong(this.of_1.ue_1, new Long(0, 0))) {
2415
+ if (equalsLong(byteCount, new Long(0, 0))) {
2416
+ tmp$ret$4 = new Long(0, 0);
2417
+ break $l$block_0;
2418
+ }
2419
+ var read = this.mf_1.if(this.of_1, new Long(8192, 0));
2420
+ if (equalsLong(read, new Long(-1, -1))) {
2421
+ tmp$ret$4 = new Long(-1, -1);
2422
+ break $l$block_0;
2423
+ }
2424
+ }
2425
+ // Inline function 'kotlin.comparisons.minOf' call
2426
+ var b = this.of_1.ue_1;
2427
+ var toRead = compare(byteCount, b) <= 0 ? byteCount : b;
2428
+ tmp$ret$4 = this.of_1.if(sink, toRead);
2429
+ }
2430
+ return tmp$ret$4;
2431
+ };
2432
+ protoOf(RealBufferedSource).pf = function (byteCount) {
2433
+ // Inline function 'okio.internal.commonRequire' call
2434
+ if (!this.we(byteCount))
2435
+ throw EOFException_init_$Create$();
2436
+ return Unit_instance;
2437
+ };
2438
+ protoOf(RealBufferedSource).we = function (byteCount) {
2439
+ var tmp$ret$4;
2440
+ $l$block: {
2441
+ // Inline function 'okio.internal.commonRequest' call
2442
+ // Inline function 'kotlin.require' call
2443
+ if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
2444
+ var message = 'byteCount < 0: ' + byteCount.toString();
2445
+ throw IllegalArgumentException_init_$Create$(toString(message));
2446
+ }
2447
+ // Inline function 'kotlin.check' call
2448
+ if (!!this.nf_1) {
2449
+ var message_0 = 'closed';
2450
+ throw IllegalStateException_init_$Create$(toString(message_0));
2451
+ }
2452
+ while (compare(this.of_1.ue_1, byteCount) < 0) {
2453
+ if (equalsLong(this.mf_1.if(this.of_1, new Long(8192, 0)), new Long(-1, -1))) {
2454
+ tmp$ret$4 = false;
2455
+ break $l$block;
2456
+ }
2457
+ }
2458
+ tmp$ret$4 = true;
2459
+ }
2460
+ return tmp$ret$4;
2461
+ };
2462
+ protoOf(RealBufferedSource).ye = function (byteCount) {
2463
+ // Inline function 'okio.internal.commonReadUtf8' call
2464
+ this.pf(byteCount);
2465
+ return this.of_1.ye(byteCount);
2466
+ };
2467
+ protoOf(RealBufferedSource).toString = function () {
2468
+ // Inline function 'okio.internal.commonToString' call
2469
+ return 'buffer(' + toString(this.mf_1) + ')';
2470
+ };
2471
+ function SegmentPool() {
2472
+ this.md_1 = 0;
2473
+ this.nd_1 = 0;
2474
+ }
2475
+ protoOf(SegmentPool).od = function () {
2476
+ return Segment_init_$Create$();
2477
+ };
2478
+ protoOf(SegmentPool).rd = function (segment) {
2479
+ };
2480
+ var SegmentPool_instance;
2481
+ function SegmentPool_getInstance() {
2482
+ return SegmentPool_instance;
2483
+ }
2484
+ //region block: init
2485
+ Companion_instance = new Companion();
2486
+ SegmentPool_instance = new SegmentPool();
2487
+ //endregion
2488
+ //region block: exports
2489
+ export {
2490
+ BufferedSource as BufferedSource3ezj4539oep1e,
2491
+ Buffer as Buffer3384y49aj0pxr,
2492
+ IOException as IOException3fje1ukjwthwb,
2493
+ buffer as bufferbiiev5vr4b6f,
2494
+ };
2495
+ //endregion
2496
+
2497
+ //# sourceMappingURL=okio-parent-okio.mjs.map