@tuprolog/2p-full 2.0.4 → 2.0.9
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/2p-bdd.js +172 -172
- package/2p-bdd.js.map +1 -1
- package/2p-core.js +3593 -3366
- package/2p-core.js.map +1 -1
- package/2p-datalog.js.map +1 -1
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js.map +1 -1
- package/2p-dsl-theory.js.map +1 -1
- package/2p-dsl-unify.js.map +1 -1
- package/2p-full.js +17 -4
- package/2p-full.js.map +1 -1
- package/2p-gui-plp.js.map +1 -1
- package/2p-gui.js.map +1 -1
- package/2p-ide-web.js.map +1 -1
- package/2p-io-lib.js +3489 -5
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +3382 -5
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +616 -5
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +5636 -5
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +278 -5
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +533 -5
- package/2p-repl.js.map +1 -1
- package/2p-serialize-core.js.map +1 -1
- package/2p-serialize-theory.js.map +1 -1
- package/2p-solve-classic.js +1050 -1050
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve-concurrent.js.map +1 -1
- package/2p-solve-plp.js +3 -3
- package/2p-solve-plp.js.map +1 -1
- package/2p-solve-problog.js +1450 -1444
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-streams.js +1033 -1033
- package/2p-solve-streams.js.map +1 -1
- package/2p-solve.js +5581 -4491
- package/2p-solve.js.map +1 -1
- package/2p-test-dsl.js.map +1 -1
- package/2p-theory.js +1725 -1725
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +375 -375
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +546 -493
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-mordant.js +311 -5
- package/clikt-clikt-mordant.js.map +1 -1
- package/clikt-clikt.js +6672 -5
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +1654 -5
- package/colormath-root-colormath.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +5402 -2599
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlin-test.js.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -1
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kt-math.js +1622 -1614
- package/kt-math.js.map +1 -1
- package/mordant-mordant-omnibus.js.map +1 -1
- package/mordant-mordant.js +10375 -5
- package/mordant-mordant.js.map +1 -1
- package/okio-parent-okio-nodefilesystem.js +201 -5
- package/okio-parent-okio-nodefilesystem.js.map +1 -1
- package/okio-parent-okio.js +3863 -5
- package/okio-parent-okio.js.map +1 -1
- package/package.json +4 -4
package/okio-parent-okio.js
CHANGED
|
@@ -1,13 +1,3871 @@
|
|
|
1
1
|
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports'], factory);
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports);
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'okio-parent-okio'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'okio-parent-okio'.");
|
|
9
|
+
}
|
|
10
|
+
globalThis['okio-parent-okio'] = factory(typeof globalThis['okio-parent-okio'] === 'undefined' ? {} : globalThis['okio-parent-okio'], globalThis['kotlin-kotlin-stdlib']);
|
|
11
|
+
}
|
|
12
|
+
}(function (_, kotlin_kotlin) {
|
|
9
13
|
'use strict';
|
|
14
|
+
//region block: imports
|
|
15
|
+
var imul = Math.imul;
|
|
16
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
17
|
+
var emptyMap = kotlin_kotlin.$_$.k3;
|
|
18
|
+
var Unit_instance = kotlin_kotlin.$_$.r;
|
|
19
|
+
var toMap = kotlin_kotlin.$_$.t5;
|
|
20
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
21
|
+
var toString = kotlin_kotlin.$_$.u8;
|
|
22
|
+
var joinToString = kotlin_kotlin.$_$.t3;
|
|
23
|
+
var protoOf = kotlin_kotlin.$_$.r8;
|
|
24
|
+
var initMetadataForClass = kotlin_kotlin.$_$.a8;
|
|
25
|
+
var objectCreate = kotlin_kotlin.$_$.q8;
|
|
26
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.b8;
|
|
27
|
+
var ensureNotNull = kotlin_kotlin.$_$.me;
|
|
28
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
29
|
+
var arrayCopy = kotlin_kotlin.$_$.k2;
|
|
30
|
+
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
31
|
+
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.h1;
|
|
32
|
+
var subtract = kotlin_kotlin.$_$.d7;
|
|
33
|
+
var charArray = kotlin_kotlin.$_$.k7;
|
|
34
|
+
var concatToString = kotlin_kotlin.$_$.tb;
|
|
35
|
+
var charCodeAt = kotlin_kotlin.$_$.l7;
|
|
36
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.c;
|
|
37
|
+
var Char__compareTo_impl_ypi4mb = kotlin_kotlin.$_$.d;
|
|
38
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.g;
|
|
39
|
+
var toByte = kotlin_kotlin.$_$.s8;
|
|
40
|
+
var copyOf = kotlin_kotlin.$_$.d3;
|
|
41
|
+
var numberToChar = kotlin_kotlin.$_$.n8;
|
|
42
|
+
var concatToString_0 = kotlin_kotlin.$_$.ub;
|
|
43
|
+
var fromInt = kotlin_kotlin.$_$.v6;
|
|
44
|
+
var add = kotlin_kotlin.$_$.q6;
|
|
45
|
+
var numberToLong = kotlin_kotlin.$_$.z6;
|
|
46
|
+
var convertToInt = kotlin_kotlin.$_$.s6;
|
|
47
|
+
var charArrayOf = kotlin_kotlin.$_$.j7;
|
|
48
|
+
var equals = kotlin_kotlin.$_$.s7;
|
|
49
|
+
var removeLastOrNull = kotlin_kotlin.$_$.b5;
|
|
50
|
+
var last = kotlin_kotlin.$_$.a4;
|
|
51
|
+
var contentHashCode = kotlin_kotlin.$_$.a3;
|
|
52
|
+
var THROW_CCE = kotlin_kotlin.$_$.ge;
|
|
53
|
+
var copyOfRange = kotlin_kotlin.$_$.c3;
|
|
54
|
+
var substring = kotlin_kotlin.$_$.cd;
|
|
55
|
+
var replace = kotlin_kotlin.$_$.sc;
|
|
56
|
+
var Comparable = kotlin_kotlin.$_$.ud;
|
|
57
|
+
var AssertionError_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
58
|
+
var isArray = kotlin_kotlin.$_$.g8;
|
|
59
|
+
var captureStack = kotlin_kotlin.$_$.i7;
|
|
60
|
+
var Exception = kotlin_kotlin.$_$.xd;
|
|
61
|
+
var Exception_init_$Init$ = kotlin_kotlin.$_$.g1;
|
|
62
|
+
var IndexOutOfBoundsException = kotlin_kotlin.$_$.ae;
|
|
63
|
+
var IndexOutOfBoundsException_init_$Init$ = kotlin_kotlin.$_$.p1;
|
|
64
|
+
var initMetadataForObject = kotlin_kotlin.$_$.f8;
|
|
65
|
+
//endregion
|
|
10
66
|
//region block: pre-declaration
|
|
67
|
+
initMetadataForClass(FileMetadata, 'FileMetadata', FileMetadata);
|
|
68
|
+
initMetadataForCompanion(Companion);
|
|
69
|
+
initMetadataForClass(Segment, 'Segment', Segment_init_$Create$);
|
|
70
|
+
initMetadataForCompanion(Companion_0);
|
|
71
|
+
initMetadataForClass(FileSystem, 'FileSystem');
|
|
72
|
+
initMetadataForCompanion(Companion_1);
|
|
73
|
+
initMetadataForClass(ByteString, 'ByteString', VOID, VOID, [Comparable]);
|
|
74
|
+
initMetadataForClass(SegmentedByteString, 'SegmentedByteString', VOID, ByteString);
|
|
75
|
+
initMetadataForClass(Buffer, 'Buffer', Buffer);
|
|
76
|
+
initMetadataForClass(IOException, 'IOException', IOException_init_$Create$_0, Exception);
|
|
77
|
+
initMetadataForClass(FileNotFoundException, 'FileNotFoundException', VOID, IOException);
|
|
78
|
+
initMetadataForClass(ArrayIndexOutOfBoundsException, 'ArrayIndexOutOfBoundsException', VOID, IndexOutOfBoundsException);
|
|
79
|
+
initMetadataForClass(EOFException, 'EOFException', EOFException_init_$Create$, IOException);
|
|
80
|
+
initMetadataForCompanion(Companion_2);
|
|
81
|
+
initMetadataForClass(Path, 'Path', VOID, VOID, [Comparable]);
|
|
82
|
+
initMetadataForClass(RealBufferedSink, 'RealBufferedSink');
|
|
83
|
+
initMetadataForClass(RealBufferedSource, 'RealBufferedSource');
|
|
84
|
+
initMetadataForObject(SegmentPool, 'SegmentPool');
|
|
85
|
+
//endregion
|
|
86
|
+
function FileMetadata(isRegularFile, isDirectory, symlinkTarget, size, createdAtMillis, lastModifiedAtMillis, lastAccessedAtMillis, extras) {
|
|
87
|
+
isRegularFile = isRegularFile === VOID ? false : isRegularFile;
|
|
88
|
+
isDirectory = isDirectory === VOID ? false : isDirectory;
|
|
89
|
+
symlinkTarget = symlinkTarget === VOID ? null : symlinkTarget;
|
|
90
|
+
size = size === VOID ? null : size;
|
|
91
|
+
createdAtMillis = createdAtMillis === VOID ? null : createdAtMillis;
|
|
92
|
+
lastModifiedAtMillis = lastModifiedAtMillis === VOID ? null : lastModifiedAtMillis;
|
|
93
|
+
lastAccessedAtMillis = lastAccessedAtMillis === VOID ? null : lastAccessedAtMillis;
|
|
94
|
+
var tmp;
|
|
95
|
+
if (extras === VOID) {
|
|
96
|
+
// Inline function 'kotlin.collections.mapOf' call
|
|
97
|
+
tmp = emptyMap();
|
|
98
|
+
} else {
|
|
99
|
+
tmp = extras;
|
|
100
|
+
}
|
|
101
|
+
extras = tmp;
|
|
102
|
+
this.isRegularFile_1 = isRegularFile;
|
|
103
|
+
this.isDirectory_1 = isDirectory;
|
|
104
|
+
this.symlinkTarget_1 = symlinkTarget;
|
|
105
|
+
this.size_1 = size;
|
|
106
|
+
this.createdAtMillis_1 = createdAtMillis;
|
|
107
|
+
this.lastModifiedAtMillis_1 = lastModifiedAtMillis;
|
|
108
|
+
this.lastAccessedAtMillis_1 = lastAccessedAtMillis;
|
|
109
|
+
this.extras_1 = toMap(extras);
|
|
110
|
+
}
|
|
111
|
+
protoOf(FileMetadata).toString = function () {
|
|
112
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
113
|
+
var fields = ArrayList_init_$Create$();
|
|
114
|
+
if (this.isRegularFile_1) {
|
|
115
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
116
|
+
var element = 'isRegularFile';
|
|
117
|
+
fields.add_utx5q5_k$(element);
|
|
118
|
+
}
|
|
119
|
+
if (this.isDirectory_1) {
|
|
120
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
121
|
+
var element_0 = 'isDirectory';
|
|
122
|
+
fields.add_utx5q5_k$(element_0);
|
|
123
|
+
}
|
|
124
|
+
if (!(this.size_1 == null)) {
|
|
125
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
126
|
+
var element_1 = 'byteCount=' + this.size_1.toString();
|
|
127
|
+
fields.add_utx5q5_k$(element_1);
|
|
128
|
+
}
|
|
129
|
+
if (!(this.createdAtMillis_1 == null)) {
|
|
130
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
131
|
+
var element_2 = 'createdAt=' + this.createdAtMillis_1.toString();
|
|
132
|
+
fields.add_utx5q5_k$(element_2);
|
|
133
|
+
}
|
|
134
|
+
if (!(this.lastModifiedAtMillis_1 == null)) {
|
|
135
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
136
|
+
var element_3 = 'lastModifiedAt=' + this.lastModifiedAtMillis_1.toString();
|
|
137
|
+
fields.add_utx5q5_k$(element_3);
|
|
138
|
+
}
|
|
139
|
+
if (!(this.lastAccessedAtMillis_1 == null)) {
|
|
140
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
141
|
+
var element_4 = 'lastAccessedAt=' + this.lastAccessedAtMillis_1.toString();
|
|
142
|
+
fields.add_utx5q5_k$(element_4);
|
|
143
|
+
}
|
|
144
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
145
|
+
if (!this.extras_1.isEmpty_y1axqb_k$()) {
|
|
146
|
+
// Inline function 'kotlin.collections.plusAssign' call
|
|
147
|
+
var element_5 = 'extras=' + toString(this.extras_1);
|
|
148
|
+
fields.add_utx5q5_k$(element_5);
|
|
149
|
+
}
|
|
150
|
+
return joinToString(fields, ', ', 'FileMetadata(', ')');
|
|
151
|
+
};
|
|
152
|
+
function buffer(_this__u8e3s4) {
|
|
153
|
+
return new RealBufferedSource(_this__u8e3s4);
|
|
154
|
+
}
|
|
155
|
+
function buffer_0(_this__u8e3s4) {
|
|
156
|
+
return new RealBufferedSink(_this__u8e3s4);
|
|
157
|
+
}
|
|
158
|
+
function Segment_init_$Init$($this) {
|
|
159
|
+
Segment.call($this);
|
|
160
|
+
$this.data_1 = new Int8Array(8192);
|
|
161
|
+
$this.owner_1 = true;
|
|
162
|
+
$this.shared_1 = false;
|
|
163
|
+
return $this;
|
|
164
|
+
}
|
|
165
|
+
function Segment_init_$Create$() {
|
|
166
|
+
return Segment_init_$Init$(objectCreate(protoOf(Segment)));
|
|
167
|
+
}
|
|
168
|
+
function Segment_init_$Init$_0(data, pos, limit, shared, owner, $this) {
|
|
169
|
+
Segment.call($this);
|
|
170
|
+
$this.data_1 = data;
|
|
171
|
+
$this.pos_1 = pos;
|
|
172
|
+
$this.limit_1 = limit;
|
|
173
|
+
$this.shared_1 = shared;
|
|
174
|
+
$this.owner_1 = owner;
|
|
175
|
+
return $this;
|
|
176
|
+
}
|
|
177
|
+
function Segment_init_$Create$_0(data, pos, limit, shared, owner) {
|
|
178
|
+
return Segment_init_$Init$_0(data, pos, limit, shared, owner, objectCreate(protoOf(Segment)));
|
|
179
|
+
}
|
|
180
|
+
function Companion() {
|
|
181
|
+
this.SIZE_1 = 8192;
|
|
182
|
+
this.SHARE_MINIMUM_1 = 1024;
|
|
183
|
+
}
|
|
184
|
+
var Companion_instance;
|
|
185
|
+
function Companion_getInstance() {
|
|
186
|
+
return Companion_instance;
|
|
187
|
+
}
|
|
188
|
+
protoOf(Segment).sharedCopy_timhza_k$ = function () {
|
|
189
|
+
this.shared_1 = true;
|
|
190
|
+
return Segment_init_$Create$_0(this.data_1, this.pos_1, this.limit_1, true, false);
|
|
191
|
+
};
|
|
192
|
+
protoOf(Segment).pop_2dsh_k$ = function () {
|
|
193
|
+
var result = !(this.next_1 === this) ? this.next_1 : null;
|
|
194
|
+
ensureNotNull(this.prev_1).next_1 = this.next_1;
|
|
195
|
+
ensureNotNull(this.next_1).prev_1 = this.prev_1;
|
|
196
|
+
this.next_1 = null;
|
|
197
|
+
this.prev_1 = null;
|
|
198
|
+
return result;
|
|
199
|
+
};
|
|
200
|
+
protoOf(Segment).push_wd62e0_k$ = function (segment) {
|
|
201
|
+
segment.prev_1 = this;
|
|
202
|
+
segment.next_1 = this.next_1;
|
|
203
|
+
ensureNotNull(this.next_1).prev_1 = segment;
|
|
204
|
+
this.next_1 = segment;
|
|
205
|
+
return segment;
|
|
206
|
+
};
|
|
207
|
+
protoOf(Segment).split_cz4av2_k$ = function (byteCount) {
|
|
208
|
+
// Inline function 'kotlin.require' call
|
|
209
|
+
if (!(byteCount > 0 && byteCount <= (this.limit_1 - this.pos_1 | 0))) {
|
|
210
|
+
var message = 'byteCount out of range';
|
|
211
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
212
|
+
}
|
|
213
|
+
var prefix;
|
|
214
|
+
if (byteCount >= 1024) {
|
|
215
|
+
prefix = this.sharedCopy_timhza_k$();
|
|
216
|
+
} else {
|
|
217
|
+
prefix = SegmentPool_instance.take_2451j_k$();
|
|
218
|
+
var tmp0 = this.data_1;
|
|
219
|
+
var tmp2 = prefix.data_1;
|
|
220
|
+
var tmp5 = this.pos_1;
|
|
221
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
222
|
+
var endIndex = this.pos_1 + byteCount | 0;
|
|
223
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
224
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
225
|
+
var tmp = tmp0;
|
|
226
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
227
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
228
|
+
arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
|
|
229
|
+
}
|
|
230
|
+
prefix.limit_1 = prefix.pos_1 + byteCount | 0;
|
|
231
|
+
this.pos_1 = this.pos_1 + byteCount | 0;
|
|
232
|
+
ensureNotNull(this.prev_1).push_wd62e0_k$(prefix);
|
|
233
|
+
return prefix;
|
|
234
|
+
};
|
|
235
|
+
protoOf(Segment).compact_dawvql_k$ = function () {
|
|
236
|
+
// Inline function 'kotlin.check' call
|
|
237
|
+
if (!!(this.prev_1 === this)) {
|
|
238
|
+
var message = 'cannot compact';
|
|
239
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
240
|
+
}
|
|
241
|
+
if (!ensureNotNull(this.prev_1).owner_1)
|
|
242
|
+
return Unit_instance;
|
|
243
|
+
var byteCount = this.limit_1 - this.pos_1 | 0;
|
|
244
|
+
var availableByteCount = (8192 - ensureNotNull(this.prev_1).limit_1 | 0) + (ensureNotNull(this.prev_1).shared_1 ? 0 : ensureNotNull(this.prev_1).pos_1) | 0;
|
|
245
|
+
if (byteCount > availableByteCount)
|
|
246
|
+
return Unit_instance;
|
|
247
|
+
this.writeTo_yxwz0w_k$(ensureNotNull(this.prev_1), byteCount);
|
|
248
|
+
this.pop_2dsh_k$();
|
|
249
|
+
SegmentPool_instance.recycle_ipeoxr_k$(this);
|
|
250
|
+
};
|
|
251
|
+
protoOf(Segment).writeTo_yxwz0w_k$ = function (sink, byteCount) {
|
|
252
|
+
// Inline function 'kotlin.check' call
|
|
253
|
+
if (!sink.owner_1) {
|
|
254
|
+
var message = 'only owner can write';
|
|
255
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
256
|
+
}
|
|
257
|
+
if ((sink.limit_1 + byteCount | 0) > 8192) {
|
|
258
|
+
if (sink.shared_1)
|
|
259
|
+
throw IllegalArgumentException_init_$Create$_0();
|
|
260
|
+
if (((sink.limit_1 + byteCount | 0) - sink.pos_1 | 0) > 8192)
|
|
261
|
+
throw IllegalArgumentException_init_$Create$_0();
|
|
262
|
+
var tmp0 = sink.data_1;
|
|
263
|
+
var tmp2 = sink.data_1;
|
|
264
|
+
var tmp5 = sink.pos_1;
|
|
265
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
266
|
+
var endIndex = sink.limit_1;
|
|
267
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
268
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
269
|
+
var tmp = tmp0;
|
|
270
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
271
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
272
|
+
arrayCopy(tmp, tmp2, 0, tmp5, endIndex);
|
|
273
|
+
sink.limit_1 = sink.limit_1 - sink.pos_1 | 0;
|
|
274
|
+
sink.pos_1 = 0;
|
|
275
|
+
}
|
|
276
|
+
var tmp0_0 = this.data_1;
|
|
277
|
+
var tmp2_0 = sink.data_1;
|
|
278
|
+
var tmp4 = sink.limit_1;
|
|
279
|
+
var tmp6 = this.pos_1;
|
|
280
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
281
|
+
var endIndex_0 = this.pos_1 + byteCount | 0;
|
|
282
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
283
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
284
|
+
var tmp_0 = tmp0_0;
|
|
285
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
286
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
287
|
+
arrayCopy(tmp_0, tmp2_0, tmp4, tmp6, endIndex_0);
|
|
288
|
+
sink.limit_1 = sink.limit_1 + byteCount | 0;
|
|
289
|
+
this.pos_1 = this.pos_1 + byteCount | 0;
|
|
290
|
+
};
|
|
291
|
+
function Segment() {
|
|
292
|
+
this.pos_1 = 0;
|
|
293
|
+
this.limit_1 = 0;
|
|
294
|
+
this.shared_1 = false;
|
|
295
|
+
this.owner_1 = false;
|
|
296
|
+
this.next_1 = null;
|
|
297
|
+
this.prev_1 = null;
|
|
298
|
+
}
|
|
299
|
+
function checkOffsetAndCount(size, offset, byteCount) {
|
|
300
|
+
if ((offset | byteCount) < 0n || offset > size || subtract(size, offset) < byteCount) {
|
|
301
|
+
throw new ArrayIndexOutOfBoundsException('size=' + size.toString() + ' offset=' + offset.toString() + ' byteCount=' + byteCount.toString());
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
function arrayRangeEquals(a, aOffset, b, bOffset, byteCount) {
|
|
305
|
+
var inductionVariable = 0;
|
|
306
|
+
if (inductionVariable < byteCount)
|
|
307
|
+
do {
|
|
308
|
+
var i = inductionVariable;
|
|
309
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
310
|
+
if (!(a[i + aOffset | 0] === b[i + bOffset | 0]))
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
|
+
while (inductionVariable < byteCount);
|
|
314
|
+
return true;
|
|
315
|
+
}
|
|
316
|
+
function toHexString(_this__u8e3s4) {
|
|
317
|
+
var result = charArray(2);
|
|
318
|
+
var tmp = get_HEX_DIGIT_CHARS();
|
|
319
|
+
// Inline function 'okio.shr' call
|
|
320
|
+
result[0] = tmp[_this__u8e3s4 >> 4 & 15];
|
|
321
|
+
var tmp_0 = get_HEX_DIGIT_CHARS();
|
|
322
|
+
// Inline function 'okio.and' call
|
|
323
|
+
result[1] = tmp_0[_this__u8e3s4 & 15];
|
|
324
|
+
return concatToString(result);
|
|
325
|
+
}
|
|
326
|
+
function combineSurrogates(high, low) {
|
|
327
|
+
return 65536 + ((high & 1023) << 10 | low & 1023) | 0;
|
|
328
|
+
}
|
|
329
|
+
function commonAsUtf8ToByteArray(_this__u8e3s4) {
|
|
330
|
+
var bytes = new Int8Array(imul(4, _this__u8e3s4.length));
|
|
331
|
+
var inductionVariable = 0;
|
|
332
|
+
var last = _this__u8e3s4.length;
|
|
333
|
+
if (inductionVariable < last)
|
|
334
|
+
do {
|
|
335
|
+
var index = inductionVariable;
|
|
336
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
337
|
+
var b0 = charCodeAt(_this__u8e3s4, index);
|
|
338
|
+
if (Char__compareTo_impl_ypi4mb(b0, _Char___init__impl__6a9atx(128)) >= 0) {
|
|
339
|
+
var size = index;
|
|
340
|
+
// Inline function 'okio.processUtf8Bytes' call
|
|
341
|
+
var endIndex = _this__u8e3s4.length;
|
|
342
|
+
var index_0 = index;
|
|
343
|
+
while (index_0 < endIndex) {
|
|
344
|
+
var c = charCodeAt(_this__u8e3s4, index_0);
|
|
345
|
+
if (Char__compareTo_impl_ypi4mb(c, _Char___init__impl__6a9atx(128)) < 0) {
|
|
346
|
+
// Inline function 'kotlin.code' call
|
|
347
|
+
var tmp$ret$1 = Char__toInt_impl_vasixd(c);
|
|
348
|
+
var c_0 = toByte(tmp$ret$1);
|
|
349
|
+
var _unary__edvuaz = size;
|
|
350
|
+
size = _unary__edvuaz + 1 | 0;
|
|
351
|
+
bytes[_unary__edvuaz] = c_0;
|
|
352
|
+
index_0 = index_0 + 1 | 0;
|
|
353
|
+
while (index_0 < endIndex && Char__compareTo_impl_ypi4mb(charCodeAt(_this__u8e3s4, index_0), _Char___init__impl__6a9atx(128)) < 0) {
|
|
354
|
+
var _unary__edvuaz_0 = index_0;
|
|
355
|
+
index_0 = _unary__edvuaz_0 + 1 | 0;
|
|
356
|
+
// Inline function 'kotlin.code' call
|
|
357
|
+
var this_0 = charCodeAt(_this__u8e3s4, _unary__edvuaz_0);
|
|
358
|
+
var tmp$ret$3 = Char__toInt_impl_vasixd(this_0);
|
|
359
|
+
var c_1 = toByte(tmp$ret$3);
|
|
360
|
+
var _unary__edvuaz_1 = size;
|
|
361
|
+
size = _unary__edvuaz_1 + 1 | 0;
|
|
362
|
+
bytes[_unary__edvuaz_1] = c_1;
|
|
363
|
+
}
|
|
364
|
+
} else if (Char__compareTo_impl_ypi4mb(c, _Char___init__impl__6a9atx(2048)) < 0) {
|
|
365
|
+
// Inline function 'kotlin.code' call
|
|
366
|
+
var tmp$ret$5 = Char__toInt_impl_vasixd(c);
|
|
367
|
+
var c_2 = toByte(tmp$ret$5 >> 6 | 192);
|
|
368
|
+
var _unary__edvuaz_2 = size;
|
|
369
|
+
size = _unary__edvuaz_2 + 1 | 0;
|
|
370
|
+
bytes[_unary__edvuaz_2] = c_2;
|
|
371
|
+
// Inline function 'kotlin.code' call
|
|
372
|
+
var tmp$ret$7 = Char__toInt_impl_vasixd(c);
|
|
373
|
+
var c_3 = toByte(tmp$ret$7 & 63 | 128);
|
|
374
|
+
var _unary__edvuaz_3 = size;
|
|
375
|
+
size = _unary__edvuaz_3 + 1 | 0;
|
|
376
|
+
bytes[_unary__edvuaz_3] = c_3;
|
|
377
|
+
index_0 = index_0 + 1 | 0;
|
|
378
|
+
} else if (!(_Char___init__impl__6a9atx(55296) <= c ? c <= _Char___init__impl__6a9atx(57343) : false)) {
|
|
379
|
+
// Inline function 'kotlin.code' call
|
|
380
|
+
var tmp$ret$9 = Char__toInt_impl_vasixd(c);
|
|
381
|
+
var c_4 = toByte(tmp$ret$9 >> 12 | 224);
|
|
382
|
+
var _unary__edvuaz_4 = size;
|
|
383
|
+
size = _unary__edvuaz_4 + 1 | 0;
|
|
384
|
+
bytes[_unary__edvuaz_4] = c_4;
|
|
385
|
+
// Inline function 'kotlin.code' call
|
|
386
|
+
var tmp$ret$11 = Char__toInt_impl_vasixd(c);
|
|
387
|
+
var c_5 = toByte(tmp$ret$11 >> 6 & 63 | 128);
|
|
388
|
+
var _unary__edvuaz_5 = size;
|
|
389
|
+
size = _unary__edvuaz_5 + 1 | 0;
|
|
390
|
+
bytes[_unary__edvuaz_5] = c_5;
|
|
391
|
+
// Inline function 'kotlin.code' call
|
|
392
|
+
var tmp$ret$13 = Char__toInt_impl_vasixd(c);
|
|
393
|
+
var c_6 = toByte(tmp$ret$13 & 63 | 128);
|
|
394
|
+
var _unary__edvuaz_6 = size;
|
|
395
|
+
size = _unary__edvuaz_6 + 1 | 0;
|
|
396
|
+
bytes[_unary__edvuaz_6] = c_6;
|
|
397
|
+
index_0 = index_0 + 1 | 0;
|
|
398
|
+
} else {
|
|
399
|
+
var tmp;
|
|
400
|
+
if (Char__compareTo_impl_ypi4mb(c, _Char___init__impl__6a9atx(56319)) > 0 || endIndex <= (index_0 + 1 | 0)) {
|
|
401
|
+
tmp = true;
|
|
402
|
+
} else {
|
|
403
|
+
var containsArg = charCodeAt(_this__u8e3s4, index_0 + 1 | 0);
|
|
404
|
+
tmp = !(_Char___init__impl__6a9atx(56320) <= containsArg ? containsArg <= _Char___init__impl__6a9atx(57343) : false);
|
|
405
|
+
}
|
|
406
|
+
if (tmp) {
|
|
407
|
+
var _unary__edvuaz_7 = size;
|
|
408
|
+
size = _unary__edvuaz_7 + 1 | 0;
|
|
409
|
+
bytes[_unary__edvuaz_7] = 63;
|
|
410
|
+
index_0 = index_0 + 1 | 0;
|
|
411
|
+
} else {
|
|
412
|
+
// Inline function 'kotlin.code' call
|
|
413
|
+
var tmp_0 = Char__toInt_impl_vasixd(c) << 10;
|
|
414
|
+
// Inline function 'kotlin.code' call
|
|
415
|
+
var this_1 = charCodeAt(_this__u8e3s4, index_0 + 1 | 0);
|
|
416
|
+
var codePoint = (tmp_0 + Char__toInt_impl_vasixd(this_1) | 0) + -56613888 | 0;
|
|
417
|
+
var c_7 = toByte(codePoint >> 18 | 240);
|
|
418
|
+
var _unary__edvuaz_8 = size;
|
|
419
|
+
size = _unary__edvuaz_8 + 1 | 0;
|
|
420
|
+
bytes[_unary__edvuaz_8] = c_7;
|
|
421
|
+
var c_8 = toByte(codePoint >> 12 & 63 | 128);
|
|
422
|
+
var _unary__edvuaz_9 = size;
|
|
423
|
+
size = _unary__edvuaz_9 + 1 | 0;
|
|
424
|
+
bytes[_unary__edvuaz_9] = c_8;
|
|
425
|
+
var c_9 = toByte(codePoint >> 6 & 63 | 128);
|
|
426
|
+
var _unary__edvuaz_10 = size;
|
|
427
|
+
size = _unary__edvuaz_10 + 1 | 0;
|
|
428
|
+
bytes[_unary__edvuaz_10] = c_9;
|
|
429
|
+
var c_10 = toByte(codePoint & 63 | 128);
|
|
430
|
+
var _unary__edvuaz_11 = size;
|
|
431
|
+
size = _unary__edvuaz_11 + 1 | 0;
|
|
432
|
+
bytes[_unary__edvuaz_11] = c_10;
|
|
433
|
+
index_0 = index_0 + 2 | 0;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
return copyOf(bytes, size);
|
|
438
|
+
}
|
|
439
|
+
// Inline function 'kotlin.code' call
|
|
440
|
+
var tmp$ret$22 = Char__toInt_impl_vasixd(b0);
|
|
441
|
+
bytes[index] = toByte(tmp$ret$22);
|
|
442
|
+
}
|
|
443
|
+
while (inductionVariable < last);
|
|
444
|
+
return copyOf(bytes, _this__u8e3s4.length);
|
|
445
|
+
}
|
|
446
|
+
function commonToUtf8String(_this__u8e3s4, beginIndex, endIndex) {
|
|
447
|
+
beginIndex = beginIndex === VOID ? 0 : beginIndex;
|
|
448
|
+
endIndex = endIndex === VOID ? _this__u8e3s4.length : endIndex;
|
|
449
|
+
if (beginIndex < 0 || endIndex > _this__u8e3s4.length || beginIndex > endIndex) {
|
|
450
|
+
throw new ArrayIndexOutOfBoundsException('size=' + _this__u8e3s4.length + ' beginIndex=' + beginIndex + ' endIndex=' + endIndex);
|
|
451
|
+
}
|
|
452
|
+
var chars = charArray(endIndex - beginIndex | 0);
|
|
453
|
+
var length = 0;
|
|
454
|
+
// Inline function 'okio.processUtf16Chars' call
|
|
455
|
+
var index = beginIndex;
|
|
456
|
+
while (index < endIndex) {
|
|
457
|
+
var b0 = _this__u8e3s4[index];
|
|
458
|
+
if (b0 >= 0) {
|
|
459
|
+
var c = numberToChar(b0);
|
|
460
|
+
var _unary__edvuaz = length;
|
|
461
|
+
length = _unary__edvuaz + 1 | 0;
|
|
462
|
+
chars[_unary__edvuaz] = c;
|
|
463
|
+
index = index + 1 | 0;
|
|
464
|
+
while (index < endIndex && _this__u8e3s4[index] >= 0) {
|
|
465
|
+
var _unary__edvuaz_0 = index;
|
|
466
|
+
index = _unary__edvuaz_0 + 1 | 0;
|
|
467
|
+
var c_0 = numberToChar(_this__u8e3s4[_unary__edvuaz_0]);
|
|
468
|
+
var _unary__edvuaz_1 = length;
|
|
469
|
+
length = _unary__edvuaz_1 + 1 | 0;
|
|
470
|
+
chars[_unary__edvuaz_1] = c_0;
|
|
471
|
+
}
|
|
472
|
+
} else {
|
|
473
|
+
// Inline function 'okio.shr' call
|
|
474
|
+
if (b0 >> 5 === -2) {
|
|
475
|
+
var tmp = index;
|
|
476
|
+
var tmp2 = index;
|
|
477
|
+
var tmp$ret$4;
|
|
478
|
+
$l$block_0: {
|
|
479
|
+
// Inline function 'okio.process2Utf8Bytes' call
|
|
480
|
+
if (endIndex <= (tmp2 + 1 | 0)) {
|
|
481
|
+
var c_1 = numberToChar(65533);
|
|
482
|
+
var _unary__edvuaz_2 = length;
|
|
483
|
+
length = _unary__edvuaz_2 + 1 | 0;
|
|
484
|
+
chars[_unary__edvuaz_2] = c_1;
|
|
485
|
+
tmp$ret$4 = 1;
|
|
486
|
+
break $l$block_0;
|
|
487
|
+
}
|
|
488
|
+
var b0_0 = _this__u8e3s4[tmp2];
|
|
489
|
+
var b1 = _this__u8e3s4[tmp2 + 1 | 0];
|
|
490
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
491
|
+
// Inline function 'okio.and' call
|
|
492
|
+
if (!((b1 & 192) === 128)) {
|
|
493
|
+
var c_2 = numberToChar(65533);
|
|
494
|
+
var _unary__edvuaz_3 = length;
|
|
495
|
+
length = _unary__edvuaz_3 + 1 | 0;
|
|
496
|
+
chars[_unary__edvuaz_3] = c_2;
|
|
497
|
+
tmp$ret$4 = 1;
|
|
498
|
+
break $l$block_0;
|
|
499
|
+
}
|
|
500
|
+
var codePoint = 3968 ^ b1 ^ b0_0 << 6;
|
|
501
|
+
if (codePoint < 128) {
|
|
502
|
+
var c_3 = numberToChar(65533);
|
|
503
|
+
var _unary__edvuaz_4 = length;
|
|
504
|
+
length = _unary__edvuaz_4 + 1 | 0;
|
|
505
|
+
chars[_unary__edvuaz_4] = c_3;
|
|
506
|
+
} else {
|
|
507
|
+
var c_4 = numberToChar(codePoint);
|
|
508
|
+
var _unary__edvuaz_5 = length;
|
|
509
|
+
length = _unary__edvuaz_5 + 1 | 0;
|
|
510
|
+
chars[_unary__edvuaz_5] = c_4;
|
|
511
|
+
}
|
|
512
|
+
tmp$ret$4 = 2;
|
|
513
|
+
}
|
|
514
|
+
index = tmp + tmp$ret$4 | 0;
|
|
515
|
+
} else {
|
|
516
|
+
// Inline function 'okio.shr' call
|
|
517
|
+
if (b0 >> 4 === -2) {
|
|
518
|
+
var tmp_0 = index;
|
|
519
|
+
var tmp2_0 = index;
|
|
520
|
+
var tmp$ret$16;
|
|
521
|
+
$l$block_4: {
|
|
522
|
+
// Inline function 'okio.process3Utf8Bytes' call
|
|
523
|
+
if (endIndex <= (tmp2_0 + 2 | 0)) {
|
|
524
|
+
var c_5 = numberToChar(65533);
|
|
525
|
+
var _unary__edvuaz_6 = length;
|
|
526
|
+
length = _unary__edvuaz_6 + 1 | 0;
|
|
527
|
+
chars[_unary__edvuaz_6] = c_5;
|
|
528
|
+
var tmp_1;
|
|
529
|
+
if (endIndex <= (tmp2_0 + 1 | 0)) {
|
|
530
|
+
tmp_1 = true;
|
|
531
|
+
} else {
|
|
532
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
533
|
+
// Inline function 'okio.and' call
|
|
534
|
+
tmp_1 = !((_this__u8e3s4[tmp2_0 + 1 | 0] & 192) === 128);
|
|
535
|
+
}
|
|
536
|
+
if (tmp_1) {
|
|
537
|
+
tmp$ret$16 = 1;
|
|
538
|
+
break $l$block_4;
|
|
539
|
+
} else {
|
|
540
|
+
tmp$ret$16 = 2;
|
|
541
|
+
break $l$block_4;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
var b0_1 = _this__u8e3s4[tmp2_0];
|
|
545
|
+
var b1_0 = _this__u8e3s4[tmp2_0 + 1 | 0];
|
|
546
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
547
|
+
// Inline function 'okio.and' call
|
|
548
|
+
if (!((b1_0 & 192) === 128)) {
|
|
549
|
+
var c_6 = numberToChar(65533);
|
|
550
|
+
var _unary__edvuaz_7 = length;
|
|
551
|
+
length = _unary__edvuaz_7 + 1 | 0;
|
|
552
|
+
chars[_unary__edvuaz_7] = c_6;
|
|
553
|
+
tmp$ret$16 = 1;
|
|
554
|
+
break $l$block_4;
|
|
555
|
+
}
|
|
556
|
+
var b2 = _this__u8e3s4[tmp2_0 + 2 | 0];
|
|
557
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
558
|
+
// Inline function 'okio.and' call
|
|
559
|
+
if (!((b2 & 192) === 128)) {
|
|
560
|
+
var c_7 = numberToChar(65533);
|
|
561
|
+
var _unary__edvuaz_8 = length;
|
|
562
|
+
length = _unary__edvuaz_8 + 1 | 0;
|
|
563
|
+
chars[_unary__edvuaz_8] = c_7;
|
|
564
|
+
tmp$ret$16 = 2;
|
|
565
|
+
break $l$block_4;
|
|
566
|
+
}
|
|
567
|
+
var codePoint_0 = -123008 ^ b2 ^ b1_0 << 6 ^ b0_1 << 12;
|
|
568
|
+
if (codePoint_0 < 2048) {
|
|
569
|
+
var c_8 = numberToChar(65533);
|
|
570
|
+
var _unary__edvuaz_9 = length;
|
|
571
|
+
length = _unary__edvuaz_9 + 1 | 0;
|
|
572
|
+
chars[_unary__edvuaz_9] = c_8;
|
|
573
|
+
} else if (55296 <= codePoint_0 ? codePoint_0 <= 57343 : false) {
|
|
574
|
+
var c_9 = numberToChar(65533);
|
|
575
|
+
var _unary__edvuaz_10 = length;
|
|
576
|
+
length = _unary__edvuaz_10 + 1 | 0;
|
|
577
|
+
chars[_unary__edvuaz_10] = c_9;
|
|
578
|
+
} else {
|
|
579
|
+
var c_10 = numberToChar(codePoint_0);
|
|
580
|
+
var _unary__edvuaz_11 = length;
|
|
581
|
+
length = _unary__edvuaz_11 + 1 | 0;
|
|
582
|
+
chars[_unary__edvuaz_11] = c_10;
|
|
583
|
+
}
|
|
584
|
+
tmp$ret$16 = 3;
|
|
585
|
+
}
|
|
586
|
+
index = tmp_0 + tmp$ret$16 | 0;
|
|
587
|
+
} else {
|
|
588
|
+
// Inline function 'okio.shr' call
|
|
589
|
+
if (b0 >> 3 === -2) {
|
|
590
|
+
var tmp_2 = index;
|
|
591
|
+
var tmp2_1 = index;
|
|
592
|
+
var tmp$ret$36;
|
|
593
|
+
$l$block_10: {
|
|
594
|
+
// Inline function 'okio.process4Utf8Bytes' call
|
|
595
|
+
if (endIndex <= (tmp2_1 + 3 | 0)) {
|
|
596
|
+
if (!(65533 === 65533)) {
|
|
597
|
+
var c_11 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
|
|
598
|
+
var _unary__edvuaz_12 = length;
|
|
599
|
+
length = _unary__edvuaz_12 + 1 | 0;
|
|
600
|
+
chars[_unary__edvuaz_12] = c_11;
|
|
601
|
+
var c_12 = numberToChar((65533 & 1023) + 56320 | 0);
|
|
602
|
+
var _unary__edvuaz_13 = length;
|
|
603
|
+
length = _unary__edvuaz_13 + 1 | 0;
|
|
604
|
+
chars[_unary__edvuaz_13] = c_12;
|
|
605
|
+
} else {
|
|
606
|
+
var c_13 = _Char___init__impl__6a9atx(65533);
|
|
607
|
+
var _unary__edvuaz_14 = length;
|
|
608
|
+
length = _unary__edvuaz_14 + 1 | 0;
|
|
609
|
+
chars[_unary__edvuaz_14] = c_13;
|
|
610
|
+
}
|
|
611
|
+
var tmp_3;
|
|
612
|
+
if (endIndex <= (tmp2_1 + 1 | 0)) {
|
|
613
|
+
tmp_3 = true;
|
|
614
|
+
} else {
|
|
615
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
616
|
+
// Inline function 'okio.and' call
|
|
617
|
+
tmp_3 = !((_this__u8e3s4[tmp2_1 + 1 | 0] & 192) === 128);
|
|
618
|
+
}
|
|
619
|
+
if (tmp_3) {
|
|
620
|
+
tmp$ret$36 = 1;
|
|
621
|
+
break $l$block_10;
|
|
622
|
+
} else {
|
|
623
|
+
var tmp_4;
|
|
624
|
+
if (endIndex <= (tmp2_1 + 2 | 0)) {
|
|
625
|
+
tmp_4 = true;
|
|
626
|
+
} else {
|
|
627
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
628
|
+
// Inline function 'okio.and' call
|
|
629
|
+
tmp_4 = !((_this__u8e3s4[tmp2_1 + 2 | 0] & 192) === 128);
|
|
630
|
+
}
|
|
631
|
+
if (tmp_4) {
|
|
632
|
+
tmp$ret$36 = 2;
|
|
633
|
+
break $l$block_10;
|
|
634
|
+
} else {
|
|
635
|
+
tmp$ret$36 = 3;
|
|
636
|
+
break $l$block_10;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
var b0_2 = _this__u8e3s4[tmp2_1];
|
|
641
|
+
var b1_1 = _this__u8e3s4[tmp2_1 + 1 | 0];
|
|
642
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
643
|
+
// Inline function 'okio.and' call
|
|
644
|
+
if (!((b1_1 & 192) === 128)) {
|
|
645
|
+
if (!(65533 === 65533)) {
|
|
646
|
+
var c_14 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
|
|
647
|
+
var _unary__edvuaz_15 = length;
|
|
648
|
+
length = _unary__edvuaz_15 + 1 | 0;
|
|
649
|
+
chars[_unary__edvuaz_15] = c_14;
|
|
650
|
+
var c_15 = numberToChar((65533 & 1023) + 56320 | 0);
|
|
651
|
+
var _unary__edvuaz_16 = length;
|
|
652
|
+
length = _unary__edvuaz_16 + 1 | 0;
|
|
653
|
+
chars[_unary__edvuaz_16] = c_15;
|
|
654
|
+
} else {
|
|
655
|
+
var c_16 = _Char___init__impl__6a9atx(65533);
|
|
656
|
+
var _unary__edvuaz_17 = length;
|
|
657
|
+
length = _unary__edvuaz_17 + 1 | 0;
|
|
658
|
+
chars[_unary__edvuaz_17] = c_16;
|
|
659
|
+
}
|
|
660
|
+
tmp$ret$36 = 1;
|
|
661
|
+
break $l$block_10;
|
|
662
|
+
}
|
|
663
|
+
var b2_0 = _this__u8e3s4[tmp2_1 + 2 | 0];
|
|
664
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
665
|
+
// Inline function 'okio.and' call
|
|
666
|
+
if (!((b2_0 & 192) === 128)) {
|
|
667
|
+
if (!(65533 === 65533)) {
|
|
668
|
+
var c_17 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
|
|
669
|
+
var _unary__edvuaz_18 = length;
|
|
670
|
+
length = _unary__edvuaz_18 + 1 | 0;
|
|
671
|
+
chars[_unary__edvuaz_18] = c_17;
|
|
672
|
+
var c_18 = numberToChar((65533 & 1023) + 56320 | 0);
|
|
673
|
+
var _unary__edvuaz_19 = length;
|
|
674
|
+
length = _unary__edvuaz_19 + 1 | 0;
|
|
675
|
+
chars[_unary__edvuaz_19] = c_18;
|
|
676
|
+
} else {
|
|
677
|
+
var c_19 = _Char___init__impl__6a9atx(65533);
|
|
678
|
+
var _unary__edvuaz_20 = length;
|
|
679
|
+
length = _unary__edvuaz_20 + 1 | 0;
|
|
680
|
+
chars[_unary__edvuaz_20] = c_19;
|
|
681
|
+
}
|
|
682
|
+
tmp$ret$36 = 2;
|
|
683
|
+
break $l$block_10;
|
|
684
|
+
}
|
|
685
|
+
var b3 = _this__u8e3s4[tmp2_1 + 3 | 0];
|
|
686
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
687
|
+
// Inline function 'okio.and' call
|
|
688
|
+
if (!((b3 & 192) === 128)) {
|
|
689
|
+
if (!(65533 === 65533)) {
|
|
690
|
+
var c_20 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
|
|
691
|
+
var _unary__edvuaz_21 = length;
|
|
692
|
+
length = _unary__edvuaz_21 + 1 | 0;
|
|
693
|
+
chars[_unary__edvuaz_21] = c_20;
|
|
694
|
+
var c_21 = numberToChar((65533 & 1023) + 56320 | 0);
|
|
695
|
+
var _unary__edvuaz_22 = length;
|
|
696
|
+
length = _unary__edvuaz_22 + 1 | 0;
|
|
697
|
+
chars[_unary__edvuaz_22] = c_21;
|
|
698
|
+
} else {
|
|
699
|
+
var c_22 = _Char___init__impl__6a9atx(65533);
|
|
700
|
+
var _unary__edvuaz_23 = length;
|
|
701
|
+
length = _unary__edvuaz_23 + 1 | 0;
|
|
702
|
+
chars[_unary__edvuaz_23] = c_22;
|
|
703
|
+
}
|
|
704
|
+
tmp$ret$36 = 3;
|
|
705
|
+
break $l$block_10;
|
|
706
|
+
}
|
|
707
|
+
var codePoint_1 = 3678080 ^ b3 ^ b2_0 << 6 ^ b1_1 << 12 ^ b0_2 << 18;
|
|
708
|
+
if (codePoint_1 > 1114111) {
|
|
709
|
+
if (!(65533 === 65533)) {
|
|
710
|
+
var c_23 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
|
|
711
|
+
var _unary__edvuaz_24 = length;
|
|
712
|
+
length = _unary__edvuaz_24 + 1 | 0;
|
|
713
|
+
chars[_unary__edvuaz_24] = c_23;
|
|
714
|
+
var c_24 = numberToChar((65533 & 1023) + 56320 | 0);
|
|
715
|
+
var _unary__edvuaz_25 = length;
|
|
716
|
+
length = _unary__edvuaz_25 + 1 | 0;
|
|
717
|
+
chars[_unary__edvuaz_25] = c_24;
|
|
718
|
+
} else {
|
|
719
|
+
var c_25 = _Char___init__impl__6a9atx(65533);
|
|
720
|
+
var _unary__edvuaz_26 = length;
|
|
721
|
+
length = _unary__edvuaz_26 + 1 | 0;
|
|
722
|
+
chars[_unary__edvuaz_26] = c_25;
|
|
723
|
+
}
|
|
724
|
+
} else if (55296 <= codePoint_1 ? codePoint_1 <= 57343 : false) {
|
|
725
|
+
if (!(65533 === 65533)) {
|
|
726
|
+
var c_26 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
|
|
727
|
+
var _unary__edvuaz_27 = length;
|
|
728
|
+
length = _unary__edvuaz_27 + 1 | 0;
|
|
729
|
+
chars[_unary__edvuaz_27] = c_26;
|
|
730
|
+
var c_27 = numberToChar((65533 & 1023) + 56320 | 0);
|
|
731
|
+
var _unary__edvuaz_28 = length;
|
|
732
|
+
length = _unary__edvuaz_28 + 1 | 0;
|
|
733
|
+
chars[_unary__edvuaz_28] = c_27;
|
|
734
|
+
} else {
|
|
735
|
+
var c_28 = _Char___init__impl__6a9atx(65533);
|
|
736
|
+
var _unary__edvuaz_29 = length;
|
|
737
|
+
length = _unary__edvuaz_29 + 1 | 0;
|
|
738
|
+
chars[_unary__edvuaz_29] = c_28;
|
|
739
|
+
}
|
|
740
|
+
} else if (codePoint_1 < 65536) {
|
|
741
|
+
if (!(65533 === 65533)) {
|
|
742
|
+
var c_29 = numberToChar((65533 >>> 10 | 0) + 55232 | 0);
|
|
743
|
+
var _unary__edvuaz_30 = length;
|
|
744
|
+
length = _unary__edvuaz_30 + 1 | 0;
|
|
745
|
+
chars[_unary__edvuaz_30] = c_29;
|
|
746
|
+
var c_30 = numberToChar((65533 & 1023) + 56320 | 0);
|
|
747
|
+
var _unary__edvuaz_31 = length;
|
|
748
|
+
length = _unary__edvuaz_31 + 1 | 0;
|
|
749
|
+
chars[_unary__edvuaz_31] = c_30;
|
|
750
|
+
} else {
|
|
751
|
+
var c_31 = _Char___init__impl__6a9atx(65533);
|
|
752
|
+
var _unary__edvuaz_32 = length;
|
|
753
|
+
length = _unary__edvuaz_32 + 1 | 0;
|
|
754
|
+
chars[_unary__edvuaz_32] = c_31;
|
|
755
|
+
}
|
|
756
|
+
} else {
|
|
757
|
+
if (!(codePoint_1 === 65533)) {
|
|
758
|
+
var c_32 = numberToChar((codePoint_1 >>> 10 | 0) + 55232 | 0);
|
|
759
|
+
var _unary__edvuaz_33 = length;
|
|
760
|
+
length = _unary__edvuaz_33 + 1 | 0;
|
|
761
|
+
chars[_unary__edvuaz_33] = c_32;
|
|
762
|
+
var c_33 = numberToChar((codePoint_1 & 1023) + 56320 | 0);
|
|
763
|
+
var _unary__edvuaz_34 = length;
|
|
764
|
+
length = _unary__edvuaz_34 + 1 | 0;
|
|
765
|
+
chars[_unary__edvuaz_34] = c_33;
|
|
766
|
+
} else {
|
|
767
|
+
var c_34 = _Char___init__impl__6a9atx(65533);
|
|
768
|
+
var _unary__edvuaz_35 = length;
|
|
769
|
+
length = _unary__edvuaz_35 + 1 | 0;
|
|
770
|
+
chars[_unary__edvuaz_35] = c_34;
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
tmp$ret$36 = 4;
|
|
774
|
+
}
|
|
775
|
+
index = tmp_2 + tmp$ret$36 | 0;
|
|
776
|
+
} else {
|
|
777
|
+
var c_35 = _Char___init__impl__6a9atx(65533);
|
|
778
|
+
var _unary__edvuaz_36 = length;
|
|
779
|
+
length = _unary__edvuaz_36 + 1 | 0;
|
|
780
|
+
chars[_unary__edvuaz_36] = c_35;
|
|
781
|
+
index = index + 1 | 0;
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
return concatToString_0(chars, 0, length);
|
|
788
|
+
}
|
|
789
|
+
var HEX_DIGIT_BYTES;
|
|
790
|
+
var DigitCountToLargestValue;
|
|
791
|
+
function commonIndexOf(_this__u8e3s4, bytes, fromIndex, toIndex, bytesOffset, byteCount) {
|
|
792
|
+
toIndex = toIndex === VOID ? 9223372036854775807n : toIndex;
|
|
793
|
+
bytesOffset = bytesOffset === VOID ? 0 : bytesOffset;
|
|
794
|
+
byteCount = byteCount === VOID ? bytes.get_size_woubt6_k$() : byteCount;
|
|
795
|
+
_init_properties_Buffer_kt__ndcom8();
|
|
796
|
+
checkOffsetAndCount(fromInt(bytes.get_size_woubt6_k$()), fromInt(bytesOffset), fromInt(byteCount));
|
|
797
|
+
// Inline function 'kotlin.require' call
|
|
798
|
+
if (!(byteCount > 0)) {
|
|
799
|
+
var message = 'byteCount == 0';
|
|
800
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
801
|
+
}
|
|
802
|
+
// Inline function 'kotlin.require' call
|
|
803
|
+
if (!(fromIndex >= 0n)) {
|
|
804
|
+
var message_0 = 'fromIndex < 0: ' + fromIndex.toString();
|
|
805
|
+
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
806
|
+
}
|
|
807
|
+
// Inline function 'kotlin.require' call
|
|
808
|
+
if (!(fromIndex <= toIndex)) {
|
|
809
|
+
var message_1 = 'fromIndex > toIndex: ' + fromIndex.toString() + ' > ' + toIndex.toString();
|
|
810
|
+
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
811
|
+
}
|
|
812
|
+
var fromIndex_0 = fromIndex;
|
|
813
|
+
var toIndex_0 = toIndex;
|
|
814
|
+
if (toIndex_0 > _this__u8e3s4.size_1)
|
|
815
|
+
toIndex_0 = _this__u8e3s4.size_1;
|
|
816
|
+
if (fromIndex_0 === toIndex_0)
|
|
817
|
+
return -1n;
|
|
818
|
+
var tmp2 = fromIndex_0;
|
|
819
|
+
$l$block_1: {
|
|
820
|
+
// Inline function 'okio.internal.seek' call
|
|
821
|
+
var tmp0_elvis_lhs = _this__u8e3s4.head_1;
|
|
822
|
+
var tmp;
|
|
823
|
+
if (tmp0_elvis_lhs == null) {
|
|
824
|
+
var tmp_0;
|
|
825
|
+
if (null == null) {
|
|
826
|
+
return -1n;
|
|
827
|
+
} else {
|
|
828
|
+
tmp_0 = null;
|
|
829
|
+
}
|
|
830
|
+
var s = tmp_0;
|
|
831
|
+
var offset = -1n;
|
|
832
|
+
var targetByteArray = bytes.internalArray_nlkee4_k$();
|
|
833
|
+
var b0 = targetByteArray[bytesOffset];
|
|
834
|
+
var tmp0 = toIndex_0;
|
|
835
|
+
// Inline function 'kotlin.Long.minus' call
|
|
836
|
+
var this_0 = _this__u8e3s4.size_1;
|
|
837
|
+
var tmp$ret$8 = subtract(this_0, fromInt(byteCount));
|
|
838
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
839
|
+
var b = add(tmp$ret$8, 1n);
|
|
840
|
+
var resultLimit = tmp0 <= b ? tmp0 : b;
|
|
841
|
+
while (offset < resultLimit) {
|
|
842
|
+
var data = s.data_1;
|
|
843
|
+
var tmp0_0 = s.limit_1;
|
|
844
|
+
// Inline function 'okio.minOf' call
|
|
845
|
+
var b_0 = subtract(add(numberToLong(s.pos_1), resultLimit), offset);
|
|
846
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
847
|
+
var a = fromInt(tmp0_0);
|
|
848
|
+
var tmp$ret$10 = a <= b_0 ? a : b_0;
|
|
849
|
+
var segmentLimit = convertToInt(tmp$ret$10);
|
|
850
|
+
var inductionVariable = convertToInt(subtract(add(numberToLong(s.pos_1), fromIndex_0), offset));
|
|
851
|
+
if (inductionVariable < segmentLimit)
|
|
852
|
+
do {
|
|
853
|
+
var pos = inductionVariable;
|
|
854
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
855
|
+
if (data[pos] === b0 && rangeEquals(s, pos + 1 | 0, targetByteArray, bytesOffset + 1 | 0, byteCount)) {
|
|
856
|
+
return add(numberToLong(pos - s.pos_1 | 0), offset);
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
while (inductionVariable < segmentLimit);
|
|
860
|
+
offset = add(offset, fromInt(s.limit_1 - s.pos_1 | 0));
|
|
861
|
+
fromIndex_0 = offset;
|
|
862
|
+
s = ensureNotNull(s.next_1);
|
|
863
|
+
}
|
|
864
|
+
return -1n;
|
|
865
|
+
} else {
|
|
866
|
+
tmp = tmp0_elvis_lhs;
|
|
867
|
+
}
|
|
868
|
+
var s_0 = tmp;
|
|
869
|
+
if (subtract(_this__u8e3s4.size_1, tmp2) < tmp2) {
|
|
870
|
+
var offset_0 = _this__u8e3s4.size_1;
|
|
871
|
+
while (offset_0 > tmp2) {
|
|
872
|
+
s_0 = ensureNotNull(s_0.prev_1);
|
|
873
|
+
offset_0 = subtract(offset_0, fromInt(s_0.limit_1 - s_0.pos_1 | 0));
|
|
874
|
+
}
|
|
875
|
+
var tmp0_1 = s_0;
|
|
876
|
+
var offset_1 = offset_0;
|
|
877
|
+
var tmp_1;
|
|
878
|
+
if (tmp0_1 == null) {
|
|
879
|
+
return -1n;
|
|
880
|
+
} else {
|
|
881
|
+
tmp_1 = tmp0_1;
|
|
882
|
+
}
|
|
883
|
+
var s_1 = tmp_1;
|
|
884
|
+
var offset_2 = offset_1;
|
|
885
|
+
var targetByteArray_0 = bytes.internalArray_nlkee4_k$();
|
|
886
|
+
var b0_0 = targetByteArray_0[bytesOffset];
|
|
887
|
+
var tmp0_2 = toIndex_0;
|
|
888
|
+
// Inline function 'kotlin.Long.minus' call
|
|
889
|
+
var this_1 = _this__u8e3s4.size_1;
|
|
890
|
+
var tmp$ret$13 = subtract(this_1, fromInt(byteCount));
|
|
891
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
892
|
+
var b_1 = add(tmp$ret$13, 1n);
|
|
893
|
+
var resultLimit_0 = tmp0_2 <= b_1 ? tmp0_2 : b_1;
|
|
894
|
+
while (offset_2 < resultLimit_0) {
|
|
895
|
+
var data_0 = s_1.data_1;
|
|
896
|
+
var tmp0_3 = s_1.limit_1;
|
|
897
|
+
// Inline function 'okio.minOf' call
|
|
898
|
+
var b_2 = subtract(add(numberToLong(s_1.pos_1), resultLimit_0), offset_2);
|
|
899
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
900
|
+
var a_0 = fromInt(tmp0_3);
|
|
901
|
+
var tmp$ret$15 = a_0 <= b_2 ? a_0 : b_2;
|
|
902
|
+
var segmentLimit_0 = convertToInt(tmp$ret$15);
|
|
903
|
+
var inductionVariable_0 = convertToInt(subtract(add(numberToLong(s_1.pos_1), fromIndex_0), offset_2));
|
|
904
|
+
if (inductionVariable_0 < segmentLimit_0)
|
|
905
|
+
do {
|
|
906
|
+
var pos_0 = inductionVariable_0;
|
|
907
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
908
|
+
if (data_0[pos_0] === b0_0 && rangeEquals(s_1, pos_0 + 1 | 0, targetByteArray_0, bytesOffset + 1 | 0, byteCount)) {
|
|
909
|
+
return add(numberToLong(pos_0 - s_1.pos_1 | 0), offset_2);
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
while (inductionVariable_0 < segmentLimit_0);
|
|
913
|
+
offset_2 = add(offset_2, fromInt(s_1.limit_1 - s_1.pos_1 | 0));
|
|
914
|
+
fromIndex_0 = offset_2;
|
|
915
|
+
s_1 = ensureNotNull(s_1.next_1);
|
|
916
|
+
}
|
|
917
|
+
return -1n;
|
|
918
|
+
} else {
|
|
919
|
+
var offset_3 = 0n;
|
|
920
|
+
$l$loop: while (true) {
|
|
921
|
+
var tmp0_4 = offset_3;
|
|
922
|
+
// Inline function 'kotlin.Long.plus' call
|
|
923
|
+
var other = s_0.limit_1 - s_0.pos_1 | 0;
|
|
924
|
+
var nextOffset = add(tmp0_4, fromInt(other));
|
|
925
|
+
if (nextOffset > tmp2)
|
|
926
|
+
break $l$loop;
|
|
927
|
+
s_0 = ensureNotNull(s_0.next_1);
|
|
928
|
+
offset_3 = nextOffset;
|
|
929
|
+
}
|
|
930
|
+
var tmp0_5 = s_0;
|
|
931
|
+
var offset_4 = offset_3;
|
|
932
|
+
var tmp_2;
|
|
933
|
+
if (tmp0_5 == null) {
|
|
934
|
+
return -1n;
|
|
935
|
+
} else {
|
|
936
|
+
tmp_2 = tmp0_5;
|
|
937
|
+
}
|
|
938
|
+
var s_2 = tmp_2;
|
|
939
|
+
var offset_5 = offset_4;
|
|
940
|
+
var targetByteArray_1 = bytes.internalArray_nlkee4_k$();
|
|
941
|
+
var b0_1 = targetByteArray_1[bytesOffset];
|
|
942
|
+
var tmp0_6 = toIndex_0;
|
|
943
|
+
// Inline function 'kotlin.Long.minus' call
|
|
944
|
+
var this_2 = _this__u8e3s4.size_1;
|
|
945
|
+
var tmp$ret$19 = subtract(this_2, fromInt(byteCount));
|
|
946
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
947
|
+
var b_3 = add(tmp$ret$19, 1n);
|
|
948
|
+
var resultLimit_1 = tmp0_6 <= b_3 ? tmp0_6 : b_3;
|
|
949
|
+
while (offset_5 < resultLimit_1) {
|
|
950
|
+
var data_1 = s_2.data_1;
|
|
951
|
+
var tmp0_7 = s_2.limit_1;
|
|
952
|
+
// Inline function 'okio.minOf' call
|
|
953
|
+
var b_4 = subtract(add(numberToLong(s_2.pos_1), resultLimit_1), offset_5);
|
|
954
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
955
|
+
var a_1 = fromInt(tmp0_7);
|
|
956
|
+
var tmp$ret$21 = a_1 <= b_4 ? a_1 : b_4;
|
|
957
|
+
var segmentLimit_1 = convertToInt(tmp$ret$21);
|
|
958
|
+
var inductionVariable_1 = convertToInt(subtract(add(numberToLong(s_2.pos_1), fromIndex_0), offset_5));
|
|
959
|
+
if (inductionVariable_1 < segmentLimit_1)
|
|
960
|
+
do {
|
|
961
|
+
var pos_1 = inductionVariable_1;
|
|
962
|
+
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
963
|
+
if (data_1[pos_1] === b0_1 && rangeEquals(s_2, pos_1 + 1 | 0, targetByteArray_1, bytesOffset + 1 | 0, byteCount)) {
|
|
964
|
+
return add(numberToLong(pos_1 - s_2.pos_1 | 0), offset_5);
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
while (inductionVariable_1 < segmentLimit_1);
|
|
968
|
+
offset_5 = add(offset_5, fromInt(s_2.limit_1 - s_2.pos_1 | 0));
|
|
969
|
+
fromIndex_0 = offset_5;
|
|
970
|
+
s_2 = ensureNotNull(s_2.next_1);
|
|
971
|
+
}
|
|
972
|
+
return -1n;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
function rangeEquals(segment, segmentPos, bytes, bytesOffset, bytesLimit) {
|
|
977
|
+
_init_properties_Buffer_kt__ndcom8();
|
|
978
|
+
var segment_0 = segment;
|
|
979
|
+
var segmentPos_0 = segmentPos;
|
|
980
|
+
var segmentLimit = segment_0.limit_1;
|
|
981
|
+
var data = segment_0.data_1;
|
|
982
|
+
var i = bytesOffset;
|
|
983
|
+
while (i < bytesLimit) {
|
|
984
|
+
if (segmentPos_0 === segmentLimit) {
|
|
985
|
+
segment_0 = ensureNotNull(segment_0.next_1);
|
|
986
|
+
data = segment_0.data_1;
|
|
987
|
+
segmentPos_0 = segment_0.pos_1;
|
|
988
|
+
segmentLimit = segment_0.limit_1;
|
|
989
|
+
}
|
|
990
|
+
if (!(data[segmentPos_0] === bytes[i])) {
|
|
991
|
+
return false;
|
|
992
|
+
}
|
|
993
|
+
segmentPos_0 = segmentPos_0 + 1 | 0;
|
|
994
|
+
i = i + 1 | 0;
|
|
995
|
+
}
|
|
996
|
+
return true;
|
|
997
|
+
}
|
|
998
|
+
var properties_initialized_Buffer_kt_xv4xxe;
|
|
999
|
+
function _init_properties_Buffer_kt__ndcom8() {
|
|
1000
|
+
if (!properties_initialized_Buffer_kt_xv4xxe) {
|
|
1001
|
+
properties_initialized_Buffer_kt_xv4xxe = true;
|
|
1002
|
+
HEX_DIGIT_BYTES = asUtf8ToByteArray('0123456789abcdef');
|
|
1003
|
+
// Inline function 'kotlin.longArrayOf' call
|
|
1004
|
+
DigitCountToLargestValue = new BigInt64Array([-1n, 9n, 99n, 999n, 9999n, 99999n, 999999n, 9999999n, 99999999n, 999999999n, 9999999999n, 99999999999n, 999999999999n, 9999999999999n, 99999999999999n, 999999999999999n, 9999999999999999n, 99999999999999999n, 999999999999999999n, 9223372036854775807n]);
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
function get_HEX_DIGIT_CHARS() {
|
|
1008
|
+
_init_properties_ByteString_kt__sqjq7b();
|
|
1009
|
+
return HEX_DIGIT_CHARS;
|
|
1010
|
+
}
|
|
1011
|
+
var HEX_DIGIT_CHARS;
|
|
1012
|
+
function commonWrite(_this__u8e3s4, buffer, offset, byteCount) {
|
|
1013
|
+
_init_properties_ByteString_kt__sqjq7b();
|
|
1014
|
+
buffer.write_owzzlt_k$(_this__u8e3s4.data_1, offset, byteCount);
|
|
1015
|
+
}
|
|
1016
|
+
function codePointIndexToCharIndex(s, codePointCount) {
|
|
1017
|
+
_init_properties_ByteString_kt__sqjq7b();
|
|
1018
|
+
var charCount = 0;
|
|
1019
|
+
var j = 0;
|
|
1020
|
+
// Inline function 'okio.processUtf8CodePoints' call
|
|
1021
|
+
var endIndex = s.length;
|
|
1022
|
+
var index = 0;
|
|
1023
|
+
while (index < endIndex) {
|
|
1024
|
+
var b0 = s[index];
|
|
1025
|
+
if (b0 >= 0) {
|
|
1026
|
+
var _unary__edvuaz = j;
|
|
1027
|
+
j = _unary__edvuaz + 1 | 0;
|
|
1028
|
+
if (_unary__edvuaz === codePointCount) {
|
|
1029
|
+
return charCount;
|
|
1030
|
+
}
|
|
1031
|
+
var tmp;
|
|
1032
|
+
var tmp_0;
|
|
1033
|
+
var tmp_1;
|
|
1034
|
+
// Inline function 'kotlin.code' call
|
|
1035
|
+
var this_0 = _Char___init__impl__6a9atx(10);
|
|
1036
|
+
if (!(b0 === Char__toInt_impl_vasixd(this_0))) {
|
|
1037
|
+
// Inline function 'kotlin.code' call
|
|
1038
|
+
var this_1 = _Char___init__impl__6a9atx(13);
|
|
1039
|
+
tmp_1 = !(b0 === Char__toInt_impl_vasixd(this_1));
|
|
1040
|
+
} else {
|
|
1041
|
+
tmp_1 = false;
|
|
1042
|
+
}
|
|
1043
|
+
if (tmp_1) {
|
|
1044
|
+
// Inline function 'okio.isIsoControl' call
|
|
1045
|
+
tmp_0 = (0 <= b0 ? b0 <= 31 : false) || (127 <= b0 ? b0 <= 159 : false);
|
|
1046
|
+
} else {
|
|
1047
|
+
tmp_0 = false;
|
|
1048
|
+
}
|
|
1049
|
+
if (tmp_0) {
|
|
1050
|
+
tmp = true;
|
|
1051
|
+
} else {
|
|
1052
|
+
tmp = b0 === 65533;
|
|
1053
|
+
}
|
|
1054
|
+
if (tmp) {
|
|
1055
|
+
return -1;
|
|
1056
|
+
}
|
|
1057
|
+
charCount = charCount + (b0 < 65536 ? 1 : 2) | 0;
|
|
1058
|
+
index = index + 1 | 0;
|
|
1059
|
+
while (index < endIndex && s[index] >= 0) {
|
|
1060
|
+
var _unary__edvuaz_0 = index;
|
|
1061
|
+
index = _unary__edvuaz_0 + 1 | 0;
|
|
1062
|
+
var c = s[_unary__edvuaz_0];
|
|
1063
|
+
var _unary__edvuaz_1 = j;
|
|
1064
|
+
j = _unary__edvuaz_1 + 1 | 0;
|
|
1065
|
+
if (_unary__edvuaz_1 === codePointCount) {
|
|
1066
|
+
return charCount;
|
|
1067
|
+
}
|
|
1068
|
+
var tmp_2;
|
|
1069
|
+
var tmp_3;
|
|
1070
|
+
var tmp_4;
|
|
1071
|
+
// Inline function 'kotlin.code' call
|
|
1072
|
+
var this_2 = _Char___init__impl__6a9atx(10);
|
|
1073
|
+
if (!(c === Char__toInt_impl_vasixd(this_2))) {
|
|
1074
|
+
// Inline function 'kotlin.code' call
|
|
1075
|
+
var this_3 = _Char___init__impl__6a9atx(13);
|
|
1076
|
+
tmp_4 = !(c === Char__toInt_impl_vasixd(this_3));
|
|
1077
|
+
} else {
|
|
1078
|
+
tmp_4 = false;
|
|
1079
|
+
}
|
|
1080
|
+
if (tmp_4) {
|
|
1081
|
+
// Inline function 'okio.isIsoControl' call
|
|
1082
|
+
tmp_3 = (0 <= c ? c <= 31 : false) || (127 <= c ? c <= 159 : false);
|
|
1083
|
+
} else {
|
|
1084
|
+
tmp_3 = false;
|
|
1085
|
+
}
|
|
1086
|
+
if (tmp_3) {
|
|
1087
|
+
tmp_2 = true;
|
|
1088
|
+
} else {
|
|
1089
|
+
tmp_2 = c === 65533;
|
|
1090
|
+
}
|
|
1091
|
+
if (tmp_2) {
|
|
1092
|
+
return -1;
|
|
1093
|
+
}
|
|
1094
|
+
charCount = charCount + (c < 65536 ? 1 : 2) | 0;
|
|
1095
|
+
}
|
|
1096
|
+
} else {
|
|
1097
|
+
// Inline function 'okio.shr' call
|
|
1098
|
+
if (b0 >> 5 === -2) {
|
|
1099
|
+
var tmp_5 = index;
|
|
1100
|
+
var tmp2 = index;
|
|
1101
|
+
var tmp$ret$10;
|
|
1102
|
+
$l$block_0: {
|
|
1103
|
+
// Inline function 'okio.process2Utf8Bytes' call
|
|
1104
|
+
if (endIndex <= (tmp2 + 1 | 0)) {
|
|
1105
|
+
var _unary__edvuaz_2 = j;
|
|
1106
|
+
j = _unary__edvuaz_2 + 1 | 0;
|
|
1107
|
+
if (_unary__edvuaz_2 === codePointCount) {
|
|
1108
|
+
return charCount;
|
|
1109
|
+
}
|
|
1110
|
+
var tmp_6;
|
|
1111
|
+
var tmp_7;
|
|
1112
|
+
var tmp_8;
|
|
1113
|
+
// Inline function 'kotlin.code' call
|
|
1114
|
+
var this_4 = _Char___init__impl__6a9atx(10);
|
|
1115
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_4))) {
|
|
1116
|
+
// Inline function 'kotlin.code' call
|
|
1117
|
+
var this_5 = _Char___init__impl__6a9atx(13);
|
|
1118
|
+
tmp_8 = !(65533 === Char__toInt_impl_vasixd(this_5));
|
|
1119
|
+
} else {
|
|
1120
|
+
tmp_8 = false;
|
|
1121
|
+
}
|
|
1122
|
+
if (tmp_8) {
|
|
1123
|
+
// Inline function 'okio.isIsoControl' call
|
|
1124
|
+
tmp_7 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1125
|
+
} else {
|
|
1126
|
+
tmp_7 = false;
|
|
1127
|
+
}
|
|
1128
|
+
if (tmp_7) {
|
|
1129
|
+
tmp_6 = true;
|
|
1130
|
+
} else {
|
|
1131
|
+
tmp_6 = 65533 === 65533;
|
|
1132
|
+
}
|
|
1133
|
+
if (tmp_6) {
|
|
1134
|
+
return -1;
|
|
1135
|
+
}
|
|
1136
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1137
|
+
tmp$ret$10 = 1;
|
|
1138
|
+
break $l$block_0;
|
|
1139
|
+
}
|
|
1140
|
+
var b0_0 = s[tmp2];
|
|
1141
|
+
var b1 = s[tmp2 + 1 | 0];
|
|
1142
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
1143
|
+
// Inline function 'okio.and' call
|
|
1144
|
+
if (!((b1 & 192) === 128)) {
|
|
1145
|
+
var _unary__edvuaz_3 = j;
|
|
1146
|
+
j = _unary__edvuaz_3 + 1 | 0;
|
|
1147
|
+
if (_unary__edvuaz_3 === codePointCount) {
|
|
1148
|
+
return charCount;
|
|
1149
|
+
}
|
|
1150
|
+
var tmp_9;
|
|
1151
|
+
var tmp_10;
|
|
1152
|
+
var tmp_11;
|
|
1153
|
+
// Inline function 'kotlin.code' call
|
|
1154
|
+
var this_6 = _Char___init__impl__6a9atx(10);
|
|
1155
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_6))) {
|
|
1156
|
+
// Inline function 'kotlin.code' call
|
|
1157
|
+
var this_7 = _Char___init__impl__6a9atx(13);
|
|
1158
|
+
tmp_11 = !(65533 === Char__toInt_impl_vasixd(this_7));
|
|
1159
|
+
} else {
|
|
1160
|
+
tmp_11 = false;
|
|
1161
|
+
}
|
|
1162
|
+
if (tmp_11) {
|
|
1163
|
+
// Inline function 'okio.isIsoControl' call
|
|
1164
|
+
tmp_10 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1165
|
+
} else {
|
|
1166
|
+
tmp_10 = false;
|
|
1167
|
+
}
|
|
1168
|
+
if (tmp_10) {
|
|
1169
|
+
tmp_9 = true;
|
|
1170
|
+
} else {
|
|
1171
|
+
tmp_9 = 65533 === 65533;
|
|
1172
|
+
}
|
|
1173
|
+
if (tmp_9) {
|
|
1174
|
+
return -1;
|
|
1175
|
+
}
|
|
1176
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1177
|
+
tmp$ret$10 = 1;
|
|
1178
|
+
break $l$block_0;
|
|
1179
|
+
}
|
|
1180
|
+
var codePoint = 3968 ^ b1 ^ b0_0 << 6;
|
|
1181
|
+
if (codePoint < 128) {
|
|
1182
|
+
var _unary__edvuaz_4 = j;
|
|
1183
|
+
j = _unary__edvuaz_4 + 1 | 0;
|
|
1184
|
+
if (_unary__edvuaz_4 === codePointCount) {
|
|
1185
|
+
return charCount;
|
|
1186
|
+
}
|
|
1187
|
+
var tmp_12;
|
|
1188
|
+
var tmp_13;
|
|
1189
|
+
var tmp_14;
|
|
1190
|
+
// Inline function 'kotlin.code' call
|
|
1191
|
+
var this_8 = _Char___init__impl__6a9atx(10);
|
|
1192
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_8))) {
|
|
1193
|
+
// Inline function 'kotlin.code' call
|
|
1194
|
+
var this_9 = _Char___init__impl__6a9atx(13);
|
|
1195
|
+
tmp_14 = !(65533 === Char__toInt_impl_vasixd(this_9));
|
|
1196
|
+
} else {
|
|
1197
|
+
tmp_14 = false;
|
|
1198
|
+
}
|
|
1199
|
+
if (tmp_14) {
|
|
1200
|
+
// Inline function 'okio.isIsoControl' call
|
|
1201
|
+
tmp_13 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1202
|
+
} else {
|
|
1203
|
+
tmp_13 = false;
|
|
1204
|
+
}
|
|
1205
|
+
if (tmp_13) {
|
|
1206
|
+
tmp_12 = true;
|
|
1207
|
+
} else {
|
|
1208
|
+
tmp_12 = 65533 === 65533;
|
|
1209
|
+
}
|
|
1210
|
+
if (tmp_12) {
|
|
1211
|
+
return -1;
|
|
1212
|
+
}
|
|
1213
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1214
|
+
} else {
|
|
1215
|
+
var _unary__edvuaz_5 = j;
|
|
1216
|
+
j = _unary__edvuaz_5 + 1 | 0;
|
|
1217
|
+
if (_unary__edvuaz_5 === codePointCount) {
|
|
1218
|
+
return charCount;
|
|
1219
|
+
}
|
|
1220
|
+
var tmp_15;
|
|
1221
|
+
var tmp_16;
|
|
1222
|
+
var tmp_17;
|
|
1223
|
+
// Inline function 'kotlin.code' call
|
|
1224
|
+
var this_10 = _Char___init__impl__6a9atx(10);
|
|
1225
|
+
if (!(codePoint === Char__toInt_impl_vasixd(this_10))) {
|
|
1226
|
+
// Inline function 'kotlin.code' call
|
|
1227
|
+
var this_11 = _Char___init__impl__6a9atx(13);
|
|
1228
|
+
tmp_17 = !(codePoint === Char__toInt_impl_vasixd(this_11));
|
|
1229
|
+
} else {
|
|
1230
|
+
tmp_17 = false;
|
|
1231
|
+
}
|
|
1232
|
+
if (tmp_17) {
|
|
1233
|
+
// Inline function 'okio.isIsoControl' call
|
|
1234
|
+
tmp_16 = (0 <= codePoint ? codePoint <= 31 : false) || (127 <= codePoint ? codePoint <= 159 : false);
|
|
1235
|
+
} else {
|
|
1236
|
+
tmp_16 = false;
|
|
1237
|
+
}
|
|
1238
|
+
if (tmp_16) {
|
|
1239
|
+
tmp_15 = true;
|
|
1240
|
+
} else {
|
|
1241
|
+
tmp_15 = codePoint === 65533;
|
|
1242
|
+
}
|
|
1243
|
+
if (tmp_15) {
|
|
1244
|
+
return -1;
|
|
1245
|
+
}
|
|
1246
|
+
charCount = charCount + (codePoint < 65536 ? 1 : 2) | 0;
|
|
1247
|
+
}
|
|
1248
|
+
tmp$ret$10 = 2;
|
|
1249
|
+
}
|
|
1250
|
+
index = tmp_5 + tmp$ret$10 | 0;
|
|
1251
|
+
} else {
|
|
1252
|
+
// Inline function 'okio.shr' call
|
|
1253
|
+
if (b0 >> 4 === -2) {
|
|
1254
|
+
var tmp_18 = index;
|
|
1255
|
+
var tmp2_0 = index;
|
|
1256
|
+
var tmp$ret$34;
|
|
1257
|
+
$l$block_4: {
|
|
1258
|
+
// Inline function 'okio.process3Utf8Bytes' call
|
|
1259
|
+
if (endIndex <= (tmp2_0 + 2 | 0)) {
|
|
1260
|
+
var _unary__edvuaz_6 = j;
|
|
1261
|
+
j = _unary__edvuaz_6 + 1 | 0;
|
|
1262
|
+
if (_unary__edvuaz_6 === codePointCount) {
|
|
1263
|
+
return charCount;
|
|
1264
|
+
}
|
|
1265
|
+
var tmp_19;
|
|
1266
|
+
var tmp_20;
|
|
1267
|
+
var tmp_21;
|
|
1268
|
+
// Inline function 'kotlin.code' call
|
|
1269
|
+
var this_12 = _Char___init__impl__6a9atx(10);
|
|
1270
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_12))) {
|
|
1271
|
+
// Inline function 'kotlin.code' call
|
|
1272
|
+
var this_13 = _Char___init__impl__6a9atx(13);
|
|
1273
|
+
tmp_21 = !(65533 === Char__toInt_impl_vasixd(this_13));
|
|
1274
|
+
} else {
|
|
1275
|
+
tmp_21 = false;
|
|
1276
|
+
}
|
|
1277
|
+
if (tmp_21) {
|
|
1278
|
+
// Inline function 'okio.isIsoControl' call
|
|
1279
|
+
tmp_20 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1280
|
+
} else {
|
|
1281
|
+
tmp_20 = false;
|
|
1282
|
+
}
|
|
1283
|
+
if (tmp_20) {
|
|
1284
|
+
tmp_19 = true;
|
|
1285
|
+
} else {
|
|
1286
|
+
tmp_19 = 65533 === 65533;
|
|
1287
|
+
}
|
|
1288
|
+
if (tmp_19) {
|
|
1289
|
+
return -1;
|
|
1290
|
+
}
|
|
1291
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1292
|
+
var tmp_22;
|
|
1293
|
+
if (endIndex <= (tmp2_0 + 1 | 0)) {
|
|
1294
|
+
tmp_22 = true;
|
|
1295
|
+
} else {
|
|
1296
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
1297
|
+
// Inline function 'okio.and' call
|
|
1298
|
+
tmp_22 = !((s[tmp2_0 + 1 | 0] & 192) === 128);
|
|
1299
|
+
}
|
|
1300
|
+
if (tmp_22) {
|
|
1301
|
+
tmp$ret$34 = 1;
|
|
1302
|
+
break $l$block_4;
|
|
1303
|
+
} else {
|
|
1304
|
+
tmp$ret$34 = 2;
|
|
1305
|
+
break $l$block_4;
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
var b0_1 = s[tmp2_0];
|
|
1309
|
+
var b1_0 = s[tmp2_0 + 1 | 0];
|
|
1310
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
1311
|
+
// Inline function 'okio.and' call
|
|
1312
|
+
if (!((b1_0 & 192) === 128)) {
|
|
1313
|
+
var _unary__edvuaz_7 = j;
|
|
1314
|
+
j = _unary__edvuaz_7 + 1 | 0;
|
|
1315
|
+
if (_unary__edvuaz_7 === codePointCount) {
|
|
1316
|
+
return charCount;
|
|
1317
|
+
}
|
|
1318
|
+
var tmp_23;
|
|
1319
|
+
var tmp_24;
|
|
1320
|
+
var tmp_25;
|
|
1321
|
+
// Inline function 'kotlin.code' call
|
|
1322
|
+
var this_14 = _Char___init__impl__6a9atx(10);
|
|
1323
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_14))) {
|
|
1324
|
+
// Inline function 'kotlin.code' call
|
|
1325
|
+
var this_15 = _Char___init__impl__6a9atx(13);
|
|
1326
|
+
tmp_25 = !(65533 === Char__toInt_impl_vasixd(this_15));
|
|
1327
|
+
} else {
|
|
1328
|
+
tmp_25 = false;
|
|
1329
|
+
}
|
|
1330
|
+
if (tmp_25) {
|
|
1331
|
+
// Inline function 'okio.isIsoControl' call
|
|
1332
|
+
tmp_24 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1333
|
+
} else {
|
|
1334
|
+
tmp_24 = false;
|
|
1335
|
+
}
|
|
1336
|
+
if (tmp_24) {
|
|
1337
|
+
tmp_23 = true;
|
|
1338
|
+
} else {
|
|
1339
|
+
tmp_23 = 65533 === 65533;
|
|
1340
|
+
}
|
|
1341
|
+
if (tmp_23) {
|
|
1342
|
+
return -1;
|
|
1343
|
+
}
|
|
1344
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1345
|
+
tmp$ret$34 = 1;
|
|
1346
|
+
break $l$block_4;
|
|
1347
|
+
}
|
|
1348
|
+
var b2 = s[tmp2_0 + 2 | 0];
|
|
1349
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
1350
|
+
// Inline function 'okio.and' call
|
|
1351
|
+
if (!((b2 & 192) === 128)) {
|
|
1352
|
+
var _unary__edvuaz_8 = j;
|
|
1353
|
+
j = _unary__edvuaz_8 + 1 | 0;
|
|
1354
|
+
if (_unary__edvuaz_8 === codePointCount) {
|
|
1355
|
+
return charCount;
|
|
1356
|
+
}
|
|
1357
|
+
var tmp_26;
|
|
1358
|
+
var tmp_27;
|
|
1359
|
+
var tmp_28;
|
|
1360
|
+
// Inline function 'kotlin.code' call
|
|
1361
|
+
var this_16 = _Char___init__impl__6a9atx(10);
|
|
1362
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_16))) {
|
|
1363
|
+
// Inline function 'kotlin.code' call
|
|
1364
|
+
var this_17 = _Char___init__impl__6a9atx(13);
|
|
1365
|
+
tmp_28 = !(65533 === Char__toInt_impl_vasixd(this_17));
|
|
1366
|
+
} else {
|
|
1367
|
+
tmp_28 = false;
|
|
1368
|
+
}
|
|
1369
|
+
if (tmp_28) {
|
|
1370
|
+
// Inline function 'okio.isIsoControl' call
|
|
1371
|
+
tmp_27 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1372
|
+
} else {
|
|
1373
|
+
tmp_27 = false;
|
|
1374
|
+
}
|
|
1375
|
+
if (tmp_27) {
|
|
1376
|
+
tmp_26 = true;
|
|
1377
|
+
} else {
|
|
1378
|
+
tmp_26 = 65533 === 65533;
|
|
1379
|
+
}
|
|
1380
|
+
if (tmp_26) {
|
|
1381
|
+
return -1;
|
|
1382
|
+
}
|
|
1383
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1384
|
+
tmp$ret$34 = 2;
|
|
1385
|
+
break $l$block_4;
|
|
1386
|
+
}
|
|
1387
|
+
var codePoint_0 = -123008 ^ b2 ^ b1_0 << 6 ^ b0_1 << 12;
|
|
1388
|
+
if (codePoint_0 < 2048) {
|
|
1389
|
+
var _unary__edvuaz_9 = j;
|
|
1390
|
+
j = _unary__edvuaz_9 + 1 | 0;
|
|
1391
|
+
if (_unary__edvuaz_9 === codePointCount) {
|
|
1392
|
+
return charCount;
|
|
1393
|
+
}
|
|
1394
|
+
var tmp_29;
|
|
1395
|
+
var tmp_30;
|
|
1396
|
+
var tmp_31;
|
|
1397
|
+
// Inline function 'kotlin.code' call
|
|
1398
|
+
var this_18 = _Char___init__impl__6a9atx(10);
|
|
1399
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_18))) {
|
|
1400
|
+
// Inline function 'kotlin.code' call
|
|
1401
|
+
var this_19 = _Char___init__impl__6a9atx(13);
|
|
1402
|
+
tmp_31 = !(65533 === Char__toInt_impl_vasixd(this_19));
|
|
1403
|
+
} else {
|
|
1404
|
+
tmp_31 = false;
|
|
1405
|
+
}
|
|
1406
|
+
if (tmp_31) {
|
|
1407
|
+
// Inline function 'okio.isIsoControl' call
|
|
1408
|
+
tmp_30 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1409
|
+
} else {
|
|
1410
|
+
tmp_30 = false;
|
|
1411
|
+
}
|
|
1412
|
+
if (tmp_30) {
|
|
1413
|
+
tmp_29 = true;
|
|
1414
|
+
} else {
|
|
1415
|
+
tmp_29 = 65533 === 65533;
|
|
1416
|
+
}
|
|
1417
|
+
if (tmp_29) {
|
|
1418
|
+
return -1;
|
|
1419
|
+
}
|
|
1420
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1421
|
+
} else if (55296 <= codePoint_0 ? codePoint_0 <= 57343 : false) {
|
|
1422
|
+
var _unary__edvuaz_10 = j;
|
|
1423
|
+
j = _unary__edvuaz_10 + 1 | 0;
|
|
1424
|
+
if (_unary__edvuaz_10 === codePointCount) {
|
|
1425
|
+
return charCount;
|
|
1426
|
+
}
|
|
1427
|
+
var tmp_32;
|
|
1428
|
+
var tmp_33;
|
|
1429
|
+
var tmp_34;
|
|
1430
|
+
// Inline function 'kotlin.code' call
|
|
1431
|
+
var this_20 = _Char___init__impl__6a9atx(10);
|
|
1432
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_20))) {
|
|
1433
|
+
// Inline function 'kotlin.code' call
|
|
1434
|
+
var this_21 = _Char___init__impl__6a9atx(13);
|
|
1435
|
+
tmp_34 = !(65533 === Char__toInt_impl_vasixd(this_21));
|
|
1436
|
+
} else {
|
|
1437
|
+
tmp_34 = false;
|
|
1438
|
+
}
|
|
1439
|
+
if (tmp_34) {
|
|
1440
|
+
// Inline function 'okio.isIsoControl' call
|
|
1441
|
+
tmp_33 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1442
|
+
} else {
|
|
1443
|
+
tmp_33 = false;
|
|
1444
|
+
}
|
|
1445
|
+
if (tmp_33) {
|
|
1446
|
+
tmp_32 = true;
|
|
1447
|
+
} else {
|
|
1448
|
+
tmp_32 = 65533 === 65533;
|
|
1449
|
+
}
|
|
1450
|
+
if (tmp_32) {
|
|
1451
|
+
return -1;
|
|
1452
|
+
}
|
|
1453
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1454
|
+
} else {
|
|
1455
|
+
var _unary__edvuaz_11 = j;
|
|
1456
|
+
j = _unary__edvuaz_11 + 1 | 0;
|
|
1457
|
+
if (_unary__edvuaz_11 === codePointCount) {
|
|
1458
|
+
return charCount;
|
|
1459
|
+
}
|
|
1460
|
+
var tmp_35;
|
|
1461
|
+
var tmp_36;
|
|
1462
|
+
var tmp_37;
|
|
1463
|
+
// Inline function 'kotlin.code' call
|
|
1464
|
+
var this_22 = _Char___init__impl__6a9atx(10);
|
|
1465
|
+
if (!(codePoint_0 === Char__toInt_impl_vasixd(this_22))) {
|
|
1466
|
+
// Inline function 'kotlin.code' call
|
|
1467
|
+
var this_23 = _Char___init__impl__6a9atx(13);
|
|
1468
|
+
tmp_37 = !(codePoint_0 === Char__toInt_impl_vasixd(this_23));
|
|
1469
|
+
} else {
|
|
1470
|
+
tmp_37 = false;
|
|
1471
|
+
}
|
|
1472
|
+
if (tmp_37) {
|
|
1473
|
+
// Inline function 'okio.isIsoControl' call
|
|
1474
|
+
tmp_36 = (0 <= codePoint_0 ? codePoint_0 <= 31 : false) || (127 <= codePoint_0 ? codePoint_0 <= 159 : false);
|
|
1475
|
+
} else {
|
|
1476
|
+
tmp_36 = false;
|
|
1477
|
+
}
|
|
1478
|
+
if (tmp_36) {
|
|
1479
|
+
tmp_35 = true;
|
|
1480
|
+
} else {
|
|
1481
|
+
tmp_35 = codePoint_0 === 65533;
|
|
1482
|
+
}
|
|
1483
|
+
if (tmp_35) {
|
|
1484
|
+
return -1;
|
|
1485
|
+
}
|
|
1486
|
+
charCount = charCount + (codePoint_0 < 65536 ? 1 : 2) | 0;
|
|
1487
|
+
}
|
|
1488
|
+
tmp$ret$34 = 3;
|
|
1489
|
+
}
|
|
1490
|
+
index = tmp_18 + tmp$ret$34 | 0;
|
|
1491
|
+
} else {
|
|
1492
|
+
// Inline function 'okio.shr' call
|
|
1493
|
+
if (b0 >> 3 === -2) {
|
|
1494
|
+
var tmp_38 = index;
|
|
1495
|
+
var tmp2_1 = index;
|
|
1496
|
+
var tmp$ret$72;
|
|
1497
|
+
$l$block_10: {
|
|
1498
|
+
// Inline function 'okio.process4Utf8Bytes' call
|
|
1499
|
+
if (endIndex <= (tmp2_1 + 3 | 0)) {
|
|
1500
|
+
var _unary__edvuaz_12 = j;
|
|
1501
|
+
j = _unary__edvuaz_12 + 1 | 0;
|
|
1502
|
+
if (_unary__edvuaz_12 === codePointCount) {
|
|
1503
|
+
return charCount;
|
|
1504
|
+
}
|
|
1505
|
+
var tmp_39;
|
|
1506
|
+
var tmp_40;
|
|
1507
|
+
var tmp_41;
|
|
1508
|
+
// Inline function 'kotlin.code' call
|
|
1509
|
+
var this_24 = _Char___init__impl__6a9atx(10);
|
|
1510
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_24))) {
|
|
1511
|
+
// Inline function 'kotlin.code' call
|
|
1512
|
+
var this_25 = _Char___init__impl__6a9atx(13);
|
|
1513
|
+
tmp_41 = !(65533 === Char__toInt_impl_vasixd(this_25));
|
|
1514
|
+
} else {
|
|
1515
|
+
tmp_41 = false;
|
|
1516
|
+
}
|
|
1517
|
+
if (tmp_41) {
|
|
1518
|
+
// Inline function 'okio.isIsoControl' call
|
|
1519
|
+
tmp_40 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1520
|
+
} else {
|
|
1521
|
+
tmp_40 = false;
|
|
1522
|
+
}
|
|
1523
|
+
if (tmp_40) {
|
|
1524
|
+
tmp_39 = true;
|
|
1525
|
+
} else {
|
|
1526
|
+
tmp_39 = 65533 === 65533;
|
|
1527
|
+
}
|
|
1528
|
+
if (tmp_39) {
|
|
1529
|
+
return -1;
|
|
1530
|
+
}
|
|
1531
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1532
|
+
var tmp_42;
|
|
1533
|
+
if (endIndex <= (tmp2_1 + 1 | 0)) {
|
|
1534
|
+
tmp_42 = true;
|
|
1535
|
+
} else {
|
|
1536
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
1537
|
+
// Inline function 'okio.and' call
|
|
1538
|
+
tmp_42 = !((s[tmp2_1 + 1 | 0] & 192) === 128);
|
|
1539
|
+
}
|
|
1540
|
+
if (tmp_42) {
|
|
1541
|
+
tmp$ret$72 = 1;
|
|
1542
|
+
break $l$block_10;
|
|
1543
|
+
} else {
|
|
1544
|
+
var tmp_43;
|
|
1545
|
+
if (endIndex <= (tmp2_1 + 2 | 0)) {
|
|
1546
|
+
tmp_43 = true;
|
|
1547
|
+
} else {
|
|
1548
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
1549
|
+
// Inline function 'okio.and' call
|
|
1550
|
+
tmp_43 = !((s[tmp2_1 + 2 | 0] & 192) === 128);
|
|
1551
|
+
}
|
|
1552
|
+
if (tmp_43) {
|
|
1553
|
+
tmp$ret$72 = 2;
|
|
1554
|
+
break $l$block_10;
|
|
1555
|
+
} else {
|
|
1556
|
+
tmp$ret$72 = 3;
|
|
1557
|
+
break $l$block_10;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
var b0_2 = s[tmp2_1];
|
|
1562
|
+
var b1_1 = s[tmp2_1 + 1 | 0];
|
|
1563
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
1564
|
+
// Inline function 'okio.and' call
|
|
1565
|
+
if (!((b1_1 & 192) === 128)) {
|
|
1566
|
+
var _unary__edvuaz_13 = j;
|
|
1567
|
+
j = _unary__edvuaz_13 + 1 | 0;
|
|
1568
|
+
if (_unary__edvuaz_13 === codePointCount) {
|
|
1569
|
+
return charCount;
|
|
1570
|
+
}
|
|
1571
|
+
var tmp_44;
|
|
1572
|
+
var tmp_45;
|
|
1573
|
+
var tmp_46;
|
|
1574
|
+
// Inline function 'kotlin.code' call
|
|
1575
|
+
var this_26 = _Char___init__impl__6a9atx(10);
|
|
1576
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_26))) {
|
|
1577
|
+
// Inline function 'kotlin.code' call
|
|
1578
|
+
var this_27 = _Char___init__impl__6a9atx(13);
|
|
1579
|
+
tmp_46 = !(65533 === Char__toInt_impl_vasixd(this_27));
|
|
1580
|
+
} else {
|
|
1581
|
+
tmp_46 = false;
|
|
1582
|
+
}
|
|
1583
|
+
if (tmp_46) {
|
|
1584
|
+
// Inline function 'okio.isIsoControl' call
|
|
1585
|
+
tmp_45 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1586
|
+
} else {
|
|
1587
|
+
tmp_45 = false;
|
|
1588
|
+
}
|
|
1589
|
+
if (tmp_45) {
|
|
1590
|
+
tmp_44 = true;
|
|
1591
|
+
} else {
|
|
1592
|
+
tmp_44 = 65533 === 65533;
|
|
1593
|
+
}
|
|
1594
|
+
if (tmp_44) {
|
|
1595
|
+
return -1;
|
|
1596
|
+
}
|
|
1597
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1598
|
+
tmp$ret$72 = 1;
|
|
1599
|
+
break $l$block_10;
|
|
1600
|
+
}
|
|
1601
|
+
var b2_0 = s[tmp2_1 + 2 | 0];
|
|
1602
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
1603
|
+
// Inline function 'okio.and' call
|
|
1604
|
+
if (!((b2_0 & 192) === 128)) {
|
|
1605
|
+
var _unary__edvuaz_14 = j;
|
|
1606
|
+
j = _unary__edvuaz_14 + 1 | 0;
|
|
1607
|
+
if (_unary__edvuaz_14 === codePointCount) {
|
|
1608
|
+
return charCount;
|
|
1609
|
+
}
|
|
1610
|
+
var tmp_47;
|
|
1611
|
+
var tmp_48;
|
|
1612
|
+
var tmp_49;
|
|
1613
|
+
// Inline function 'kotlin.code' call
|
|
1614
|
+
var this_28 = _Char___init__impl__6a9atx(10);
|
|
1615
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_28))) {
|
|
1616
|
+
// Inline function 'kotlin.code' call
|
|
1617
|
+
var this_29 = _Char___init__impl__6a9atx(13);
|
|
1618
|
+
tmp_49 = !(65533 === Char__toInt_impl_vasixd(this_29));
|
|
1619
|
+
} else {
|
|
1620
|
+
tmp_49 = false;
|
|
1621
|
+
}
|
|
1622
|
+
if (tmp_49) {
|
|
1623
|
+
// Inline function 'okio.isIsoControl' call
|
|
1624
|
+
tmp_48 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1625
|
+
} else {
|
|
1626
|
+
tmp_48 = false;
|
|
1627
|
+
}
|
|
1628
|
+
if (tmp_48) {
|
|
1629
|
+
tmp_47 = true;
|
|
1630
|
+
} else {
|
|
1631
|
+
tmp_47 = 65533 === 65533;
|
|
1632
|
+
}
|
|
1633
|
+
if (tmp_47) {
|
|
1634
|
+
return -1;
|
|
1635
|
+
}
|
|
1636
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1637
|
+
tmp$ret$72 = 2;
|
|
1638
|
+
break $l$block_10;
|
|
1639
|
+
}
|
|
1640
|
+
var b3 = s[tmp2_1 + 3 | 0];
|
|
1641
|
+
// Inline function 'okio.isUtf8Continuation' call
|
|
1642
|
+
// Inline function 'okio.and' call
|
|
1643
|
+
if (!((b3 & 192) === 128)) {
|
|
1644
|
+
var _unary__edvuaz_15 = j;
|
|
1645
|
+
j = _unary__edvuaz_15 + 1 | 0;
|
|
1646
|
+
if (_unary__edvuaz_15 === codePointCount) {
|
|
1647
|
+
return charCount;
|
|
1648
|
+
}
|
|
1649
|
+
var tmp_50;
|
|
1650
|
+
var tmp_51;
|
|
1651
|
+
var tmp_52;
|
|
1652
|
+
// Inline function 'kotlin.code' call
|
|
1653
|
+
var this_30 = _Char___init__impl__6a9atx(10);
|
|
1654
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_30))) {
|
|
1655
|
+
// Inline function 'kotlin.code' call
|
|
1656
|
+
var this_31 = _Char___init__impl__6a9atx(13);
|
|
1657
|
+
tmp_52 = !(65533 === Char__toInt_impl_vasixd(this_31));
|
|
1658
|
+
} else {
|
|
1659
|
+
tmp_52 = false;
|
|
1660
|
+
}
|
|
1661
|
+
if (tmp_52) {
|
|
1662
|
+
// Inline function 'okio.isIsoControl' call
|
|
1663
|
+
tmp_51 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1664
|
+
} else {
|
|
1665
|
+
tmp_51 = false;
|
|
1666
|
+
}
|
|
1667
|
+
if (tmp_51) {
|
|
1668
|
+
tmp_50 = true;
|
|
1669
|
+
} else {
|
|
1670
|
+
tmp_50 = 65533 === 65533;
|
|
1671
|
+
}
|
|
1672
|
+
if (tmp_50) {
|
|
1673
|
+
return -1;
|
|
1674
|
+
}
|
|
1675
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1676
|
+
tmp$ret$72 = 3;
|
|
1677
|
+
break $l$block_10;
|
|
1678
|
+
}
|
|
1679
|
+
var codePoint_1 = 3678080 ^ b3 ^ b2_0 << 6 ^ b1_1 << 12 ^ b0_2 << 18;
|
|
1680
|
+
if (codePoint_1 > 1114111) {
|
|
1681
|
+
var _unary__edvuaz_16 = j;
|
|
1682
|
+
j = _unary__edvuaz_16 + 1 | 0;
|
|
1683
|
+
if (_unary__edvuaz_16 === codePointCount) {
|
|
1684
|
+
return charCount;
|
|
1685
|
+
}
|
|
1686
|
+
var tmp_53;
|
|
1687
|
+
var tmp_54;
|
|
1688
|
+
var tmp_55;
|
|
1689
|
+
// Inline function 'kotlin.code' call
|
|
1690
|
+
var this_32 = _Char___init__impl__6a9atx(10);
|
|
1691
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_32))) {
|
|
1692
|
+
// Inline function 'kotlin.code' call
|
|
1693
|
+
var this_33 = _Char___init__impl__6a9atx(13);
|
|
1694
|
+
tmp_55 = !(65533 === Char__toInt_impl_vasixd(this_33));
|
|
1695
|
+
} else {
|
|
1696
|
+
tmp_55 = false;
|
|
1697
|
+
}
|
|
1698
|
+
if (tmp_55) {
|
|
1699
|
+
// Inline function 'okio.isIsoControl' call
|
|
1700
|
+
tmp_54 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1701
|
+
} else {
|
|
1702
|
+
tmp_54 = false;
|
|
1703
|
+
}
|
|
1704
|
+
if (tmp_54) {
|
|
1705
|
+
tmp_53 = true;
|
|
1706
|
+
} else {
|
|
1707
|
+
tmp_53 = 65533 === 65533;
|
|
1708
|
+
}
|
|
1709
|
+
if (tmp_53) {
|
|
1710
|
+
return -1;
|
|
1711
|
+
}
|
|
1712
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1713
|
+
} else if (55296 <= codePoint_1 ? codePoint_1 <= 57343 : false) {
|
|
1714
|
+
var _unary__edvuaz_17 = j;
|
|
1715
|
+
j = _unary__edvuaz_17 + 1 | 0;
|
|
1716
|
+
if (_unary__edvuaz_17 === codePointCount) {
|
|
1717
|
+
return charCount;
|
|
1718
|
+
}
|
|
1719
|
+
var tmp_56;
|
|
1720
|
+
var tmp_57;
|
|
1721
|
+
var tmp_58;
|
|
1722
|
+
// Inline function 'kotlin.code' call
|
|
1723
|
+
var this_34 = _Char___init__impl__6a9atx(10);
|
|
1724
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_34))) {
|
|
1725
|
+
// Inline function 'kotlin.code' call
|
|
1726
|
+
var this_35 = _Char___init__impl__6a9atx(13);
|
|
1727
|
+
tmp_58 = !(65533 === Char__toInt_impl_vasixd(this_35));
|
|
1728
|
+
} else {
|
|
1729
|
+
tmp_58 = false;
|
|
1730
|
+
}
|
|
1731
|
+
if (tmp_58) {
|
|
1732
|
+
// Inline function 'okio.isIsoControl' call
|
|
1733
|
+
tmp_57 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1734
|
+
} else {
|
|
1735
|
+
tmp_57 = false;
|
|
1736
|
+
}
|
|
1737
|
+
if (tmp_57) {
|
|
1738
|
+
tmp_56 = true;
|
|
1739
|
+
} else {
|
|
1740
|
+
tmp_56 = 65533 === 65533;
|
|
1741
|
+
}
|
|
1742
|
+
if (tmp_56) {
|
|
1743
|
+
return -1;
|
|
1744
|
+
}
|
|
1745
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1746
|
+
} else if (codePoint_1 < 65536) {
|
|
1747
|
+
var _unary__edvuaz_18 = j;
|
|
1748
|
+
j = _unary__edvuaz_18 + 1 | 0;
|
|
1749
|
+
if (_unary__edvuaz_18 === codePointCount) {
|
|
1750
|
+
return charCount;
|
|
1751
|
+
}
|
|
1752
|
+
var tmp_59;
|
|
1753
|
+
var tmp_60;
|
|
1754
|
+
var tmp_61;
|
|
1755
|
+
// Inline function 'kotlin.code' call
|
|
1756
|
+
var this_36 = _Char___init__impl__6a9atx(10);
|
|
1757
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_36))) {
|
|
1758
|
+
// Inline function 'kotlin.code' call
|
|
1759
|
+
var this_37 = _Char___init__impl__6a9atx(13);
|
|
1760
|
+
tmp_61 = !(65533 === Char__toInt_impl_vasixd(this_37));
|
|
1761
|
+
} else {
|
|
1762
|
+
tmp_61 = false;
|
|
1763
|
+
}
|
|
1764
|
+
if (tmp_61) {
|
|
1765
|
+
// Inline function 'okio.isIsoControl' call
|
|
1766
|
+
tmp_60 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1767
|
+
} else {
|
|
1768
|
+
tmp_60 = false;
|
|
1769
|
+
}
|
|
1770
|
+
if (tmp_60) {
|
|
1771
|
+
tmp_59 = true;
|
|
1772
|
+
} else {
|
|
1773
|
+
tmp_59 = 65533 === 65533;
|
|
1774
|
+
}
|
|
1775
|
+
if (tmp_59) {
|
|
1776
|
+
return -1;
|
|
1777
|
+
}
|
|
1778
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1779
|
+
} else {
|
|
1780
|
+
var _unary__edvuaz_19 = j;
|
|
1781
|
+
j = _unary__edvuaz_19 + 1 | 0;
|
|
1782
|
+
if (_unary__edvuaz_19 === codePointCount) {
|
|
1783
|
+
return charCount;
|
|
1784
|
+
}
|
|
1785
|
+
var tmp_62;
|
|
1786
|
+
var tmp_63;
|
|
1787
|
+
var tmp_64;
|
|
1788
|
+
// Inline function 'kotlin.code' call
|
|
1789
|
+
var this_38 = _Char___init__impl__6a9atx(10);
|
|
1790
|
+
if (!(codePoint_1 === Char__toInt_impl_vasixd(this_38))) {
|
|
1791
|
+
// Inline function 'kotlin.code' call
|
|
1792
|
+
var this_39 = _Char___init__impl__6a9atx(13);
|
|
1793
|
+
tmp_64 = !(codePoint_1 === Char__toInt_impl_vasixd(this_39));
|
|
1794
|
+
} else {
|
|
1795
|
+
tmp_64 = false;
|
|
1796
|
+
}
|
|
1797
|
+
if (tmp_64) {
|
|
1798
|
+
// Inline function 'okio.isIsoControl' call
|
|
1799
|
+
tmp_63 = (0 <= codePoint_1 ? codePoint_1 <= 31 : false) || (127 <= codePoint_1 ? codePoint_1 <= 159 : false);
|
|
1800
|
+
} else {
|
|
1801
|
+
tmp_63 = false;
|
|
1802
|
+
}
|
|
1803
|
+
if (tmp_63) {
|
|
1804
|
+
tmp_62 = true;
|
|
1805
|
+
} else {
|
|
1806
|
+
tmp_62 = codePoint_1 === 65533;
|
|
1807
|
+
}
|
|
1808
|
+
if (tmp_62) {
|
|
1809
|
+
return -1;
|
|
1810
|
+
}
|
|
1811
|
+
charCount = charCount + (codePoint_1 < 65536 ? 1 : 2) | 0;
|
|
1812
|
+
}
|
|
1813
|
+
tmp$ret$72 = 4;
|
|
1814
|
+
}
|
|
1815
|
+
index = tmp_38 + tmp$ret$72 | 0;
|
|
1816
|
+
} else {
|
|
1817
|
+
var _unary__edvuaz_20 = j;
|
|
1818
|
+
j = _unary__edvuaz_20 + 1 | 0;
|
|
1819
|
+
if (_unary__edvuaz_20 === codePointCount) {
|
|
1820
|
+
return charCount;
|
|
1821
|
+
}
|
|
1822
|
+
var tmp_65;
|
|
1823
|
+
var tmp_66;
|
|
1824
|
+
var tmp_67;
|
|
1825
|
+
// Inline function 'kotlin.code' call
|
|
1826
|
+
var this_40 = _Char___init__impl__6a9atx(10);
|
|
1827
|
+
if (!(65533 === Char__toInt_impl_vasixd(this_40))) {
|
|
1828
|
+
// Inline function 'kotlin.code' call
|
|
1829
|
+
var this_41 = _Char___init__impl__6a9atx(13);
|
|
1830
|
+
tmp_67 = !(65533 === Char__toInt_impl_vasixd(this_41));
|
|
1831
|
+
} else {
|
|
1832
|
+
tmp_67 = false;
|
|
1833
|
+
}
|
|
1834
|
+
if (tmp_67) {
|
|
1835
|
+
// Inline function 'okio.isIsoControl' call
|
|
1836
|
+
tmp_66 = (0 <= 65533 ? 65533 <= 31 : false) || (127 <= 65533 ? 65533 <= 159 : false);
|
|
1837
|
+
} else {
|
|
1838
|
+
tmp_66 = false;
|
|
1839
|
+
}
|
|
1840
|
+
if (tmp_66) {
|
|
1841
|
+
tmp_65 = true;
|
|
1842
|
+
} else {
|
|
1843
|
+
tmp_65 = 65533 === 65533;
|
|
1844
|
+
}
|
|
1845
|
+
if (tmp_65) {
|
|
1846
|
+
return -1;
|
|
1847
|
+
}
|
|
1848
|
+
charCount = charCount + (65533 < 65536 ? 1 : 2) | 0;
|
|
1849
|
+
index = index + 1 | 0;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
return charCount;
|
|
1856
|
+
}
|
|
1857
|
+
function access$codePointIndexToCharIndex$tByteStringKt(s, codePointCount) {
|
|
1858
|
+
return codePointIndexToCharIndex(s, codePointCount);
|
|
1859
|
+
}
|
|
1860
|
+
var properties_initialized_ByteString_kt_8ybv8b;
|
|
1861
|
+
function _init_properties_ByteString_kt__sqjq7b() {
|
|
1862
|
+
if (!properties_initialized_ByteString_kt_8ybv8b) {
|
|
1863
|
+
properties_initialized_ByteString_kt_8ybv8b = true;
|
|
1864
|
+
// Inline function 'kotlin.charArrayOf' call
|
|
1865
|
+
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)]);
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
function commonExists(_this__u8e3s4, path) {
|
|
1869
|
+
return !(_this__u8e3s4.metadataOrNull_2dxp1m_k$(path) == null);
|
|
1870
|
+
}
|
|
1871
|
+
function get_SLASH() {
|
|
1872
|
+
_init_properties_Path_kt__cy3pvf();
|
|
1873
|
+
return SLASH;
|
|
1874
|
+
}
|
|
1875
|
+
var SLASH;
|
|
1876
|
+
function get_BACKSLASH() {
|
|
1877
|
+
_init_properties_Path_kt__cy3pvf();
|
|
1878
|
+
return BACKSLASH;
|
|
1879
|
+
}
|
|
1880
|
+
var BACKSLASH;
|
|
1881
|
+
function get_ANY_SLASH() {
|
|
1882
|
+
_init_properties_Path_kt__cy3pvf();
|
|
1883
|
+
return ANY_SLASH;
|
|
1884
|
+
}
|
|
1885
|
+
var ANY_SLASH;
|
|
1886
|
+
function get_DOT() {
|
|
1887
|
+
_init_properties_Path_kt__cy3pvf();
|
|
1888
|
+
return DOT;
|
|
1889
|
+
}
|
|
1890
|
+
var DOT;
|
|
1891
|
+
function get_DOT_DOT() {
|
|
1892
|
+
_init_properties_Path_kt__cy3pvf();
|
|
1893
|
+
return DOT_DOT;
|
|
1894
|
+
}
|
|
1895
|
+
var DOT_DOT;
|
|
1896
|
+
function commonToPath(_this__u8e3s4, normalize) {
|
|
1897
|
+
_init_properties_Path_kt__cy3pvf();
|
|
1898
|
+
return toPath((new Buffer()).writeUtf8_9rv3au_k$(_this__u8e3s4), normalize);
|
|
1899
|
+
}
|
|
1900
|
+
function toSlash(_this__u8e3s4) {
|
|
1901
|
+
_init_properties_Path_kt__cy3pvf();
|
|
1902
|
+
var tmp;
|
|
1903
|
+
switch (_this__u8e3s4) {
|
|
1904
|
+
case '/':
|
|
1905
|
+
tmp = get_SLASH();
|
|
1906
|
+
break;
|
|
1907
|
+
case '\\':
|
|
1908
|
+
tmp = get_BACKSLASH();
|
|
1909
|
+
break;
|
|
1910
|
+
default:
|
|
1911
|
+
throw IllegalArgumentException_init_$Create$('not a directory separator: ' + _this__u8e3s4);
|
|
1912
|
+
}
|
|
1913
|
+
return tmp;
|
|
1914
|
+
}
|
|
1915
|
+
function toPath(_this__u8e3s4, normalize) {
|
|
1916
|
+
_init_properties_Path_kt__cy3pvf();
|
|
1917
|
+
var slash = null;
|
|
1918
|
+
var result = new Buffer();
|
|
1919
|
+
var leadingSlashCount = 0;
|
|
1920
|
+
while (_this__u8e3s4.rangeEquals_gz1igj_k$(0n, get_SLASH()) || _this__u8e3s4.rangeEquals_gz1igj_k$(0n, get_BACKSLASH())) {
|
|
1921
|
+
var byte = _this__u8e3s4.readByte_ectjk2_k$();
|
|
1922
|
+
var tmp0_elvis_lhs = slash;
|
|
1923
|
+
slash = tmp0_elvis_lhs == null ? toSlash_0(byte) : tmp0_elvis_lhs;
|
|
1924
|
+
leadingSlashCount = leadingSlashCount + 1 | 0;
|
|
1925
|
+
}
|
|
1926
|
+
var windowsUncPath = leadingSlashCount >= 2 && equals(slash, get_BACKSLASH());
|
|
1927
|
+
if (windowsUncPath) {
|
|
1928
|
+
result.write_nkn6vw_k$(ensureNotNull(slash));
|
|
1929
|
+
result.write_nkn6vw_k$(slash);
|
|
1930
|
+
} else if (leadingSlashCount > 0) {
|
|
1931
|
+
result.write_nkn6vw_k$(ensureNotNull(slash));
|
|
1932
|
+
} else {
|
|
1933
|
+
var limit = _this__u8e3s4.indexOfElement_1qdoco_k$(get_ANY_SLASH());
|
|
1934
|
+
var tmp1_elvis_lhs = slash;
|
|
1935
|
+
var tmp;
|
|
1936
|
+
if (tmp1_elvis_lhs == null) {
|
|
1937
|
+
tmp = limit === -1n ? toSlash(Companion_getInstance_2().DIRECTORY_SEPARATOR_1) : toSlash_0(_this__u8e3s4.get_f9lzxq_k$(limit));
|
|
1938
|
+
} else {
|
|
1939
|
+
tmp = tmp1_elvis_lhs;
|
|
1940
|
+
}
|
|
1941
|
+
slash = tmp;
|
|
1942
|
+
if (startsWithVolumeLetterAndColon(_this__u8e3s4, slash)) {
|
|
1943
|
+
if (limit === 2n) {
|
|
1944
|
+
result.write_kzgu6x_k$(_this__u8e3s4, 3n);
|
|
1945
|
+
} else {
|
|
1946
|
+
result.write_kzgu6x_k$(_this__u8e3s4, 2n);
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
var absolute = result.size_1 > 0n;
|
|
1951
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1952
|
+
var canonicalParts = ArrayList_init_$Create$();
|
|
1953
|
+
while (!_this__u8e3s4.exhausted_p1jt55_k$()) {
|
|
1954
|
+
var limit_0 = _this__u8e3s4.indexOfElement_1qdoco_k$(get_ANY_SLASH());
|
|
1955
|
+
var part;
|
|
1956
|
+
if (limit_0 === -1n) {
|
|
1957
|
+
part = _this__u8e3s4.readByteString_nzt46n_k$();
|
|
1958
|
+
} else {
|
|
1959
|
+
part = _this__u8e3s4.readByteString_9cl897_k$(limit_0);
|
|
1960
|
+
_this__u8e3s4.readByte_ectjk2_k$();
|
|
1961
|
+
}
|
|
1962
|
+
if (part.equals(get_DOT_DOT())) {
|
|
1963
|
+
if (!absolute || !canonicalParts.isEmpty_y1axqb_k$())
|
|
1964
|
+
if (!normalize || (!absolute && (canonicalParts.isEmpty_y1axqb_k$() || last(canonicalParts).equals(get_DOT_DOT())))) {
|
|
1965
|
+
canonicalParts.add_utx5q5_k$(part);
|
|
1966
|
+
} else if (!windowsUncPath || canonicalParts.get_size_woubt6_k$() !== 1) {
|
|
1967
|
+
removeLastOrNull(canonicalParts);
|
|
1968
|
+
}
|
|
1969
|
+
} else if (!part.equals(get_DOT()) && !part.equals(Companion_getInstance_1().EMPTY_1)) {
|
|
1970
|
+
canonicalParts.add_utx5q5_k$(part);
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
var inductionVariable = 0;
|
|
1974
|
+
var last_0 = canonicalParts.get_size_woubt6_k$();
|
|
1975
|
+
if (inductionVariable < last_0)
|
|
1976
|
+
do {
|
|
1977
|
+
var i = inductionVariable;
|
|
1978
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1979
|
+
if (i > 0) {
|
|
1980
|
+
result.write_nkn6vw_k$(slash);
|
|
1981
|
+
}
|
|
1982
|
+
result.write_nkn6vw_k$(canonicalParts.get_c1px32_k$(i));
|
|
1983
|
+
}
|
|
1984
|
+
while (inductionVariable < last_0);
|
|
1985
|
+
if (result.size_1 === 0n) {
|
|
1986
|
+
result.write_nkn6vw_k$(get_DOT());
|
|
1987
|
+
}
|
|
1988
|
+
return new Path(result.readByteString_nzt46n_k$());
|
|
1989
|
+
}
|
|
1990
|
+
function toSlash_0(_this__u8e3s4) {
|
|
1991
|
+
_init_properties_Path_kt__cy3pvf();
|
|
1992
|
+
var tmp;
|
|
1993
|
+
// Inline function 'kotlin.code' call
|
|
1994
|
+
var this_0 = _Char___init__impl__6a9atx(47);
|
|
1995
|
+
if (_this__u8e3s4 === Char__toInt_impl_vasixd(this_0)) {
|
|
1996
|
+
tmp = get_SLASH();
|
|
1997
|
+
} else {
|
|
1998
|
+
// Inline function 'kotlin.code' call
|
|
1999
|
+
var this_1 = _Char___init__impl__6a9atx(92);
|
|
2000
|
+
if (_this__u8e3s4 === Char__toInt_impl_vasixd(this_1)) {
|
|
2001
|
+
tmp = get_BACKSLASH();
|
|
2002
|
+
} else {
|
|
2003
|
+
throw IllegalArgumentException_init_$Create$('not a directory separator: ' + _this__u8e3s4);
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
return tmp;
|
|
2007
|
+
}
|
|
2008
|
+
function startsWithVolumeLetterAndColon(_this__u8e3s4, slash) {
|
|
2009
|
+
_init_properties_Path_kt__cy3pvf();
|
|
2010
|
+
if (!slash.equals(get_BACKSLASH()))
|
|
2011
|
+
return false;
|
|
2012
|
+
if (_this__u8e3s4.size_1 < 2n)
|
|
2013
|
+
return false;
|
|
2014
|
+
var tmp = _this__u8e3s4.get_f9lzxq_k$(1n);
|
|
2015
|
+
// Inline function 'kotlin.code' call
|
|
2016
|
+
var this_0 = _Char___init__impl__6a9atx(58);
|
|
2017
|
+
var tmp$ret$0 = Char__toInt_impl_vasixd(this_0);
|
|
2018
|
+
if (!(tmp === toByte(tmp$ret$0)))
|
|
2019
|
+
return false;
|
|
2020
|
+
var b = numberToChar(_this__u8e3s4.get_f9lzxq_k$(0n));
|
|
2021
|
+
return (_Char___init__impl__6a9atx(97) <= b ? b <= _Char___init__impl__6a9atx(122) : false) || (_Char___init__impl__6a9atx(65) <= b ? b <= _Char___init__impl__6a9atx(90) : false);
|
|
2022
|
+
}
|
|
2023
|
+
var properties_initialized_Path_kt_a3g6iv;
|
|
2024
|
+
function _init_properties_Path_kt__cy3pvf() {
|
|
2025
|
+
if (!properties_initialized_Path_kt_a3g6iv) {
|
|
2026
|
+
properties_initialized_Path_kt_a3g6iv = true;
|
|
2027
|
+
SLASH = Companion_getInstance_1().encodeUtf8_5n709n_k$('/');
|
|
2028
|
+
BACKSLASH = Companion_getInstance_1().encodeUtf8_5n709n_k$('\\');
|
|
2029
|
+
ANY_SLASH = Companion_getInstance_1().encodeUtf8_5n709n_k$('/\\');
|
|
2030
|
+
DOT = Companion_getInstance_1().encodeUtf8_5n709n_k$('.');
|
|
2031
|
+
DOT_DOT = Companion_getInstance_1().encodeUtf8_5n709n_k$('..');
|
|
2032
|
+
}
|
|
2033
|
+
}
|
|
2034
|
+
function segment(_this__u8e3s4, pos) {
|
|
2035
|
+
var i = binarySearch(_this__u8e3s4.directory_1, pos + 1 | 0, 0, _this__u8e3s4.segments_1.length);
|
|
2036
|
+
return i >= 0 ? i : ~i;
|
|
2037
|
+
}
|
|
2038
|
+
function binarySearch(_this__u8e3s4, value, fromIndex, toIndex) {
|
|
2039
|
+
var left = fromIndex;
|
|
2040
|
+
var right = toIndex - 1 | 0;
|
|
2041
|
+
while (left <= right) {
|
|
2042
|
+
var mid = (left + right | 0) >>> 1 | 0;
|
|
2043
|
+
var midVal = _this__u8e3s4[mid];
|
|
2044
|
+
if (midVal < value)
|
|
2045
|
+
left = mid + 1 | 0;
|
|
2046
|
+
else if (midVal > value)
|
|
2047
|
+
right = mid - 1 | 0;
|
|
2048
|
+
else
|
|
2049
|
+
return mid;
|
|
2050
|
+
}
|
|
2051
|
+
return (-left | 0) - 1 | 0;
|
|
2052
|
+
}
|
|
2053
|
+
function Companion_0() {
|
|
2054
|
+
Companion_instance_0 = this;
|
|
2055
|
+
this.SYSTEM_TEMPORARY_DIRECTORY_1 = Companion_getInstance_2().toPath$default_vs59ry_k$(get_tmpdir());
|
|
2056
|
+
}
|
|
2057
|
+
var Companion_instance_0;
|
|
2058
|
+
function Companion_getInstance_0() {
|
|
2059
|
+
if (Companion_instance_0 == null)
|
|
2060
|
+
new Companion_0();
|
|
2061
|
+
return Companion_instance_0;
|
|
2062
|
+
}
|
|
2063
|
+
function FileSystem() {
|
|
2064
|
+
Companion_getInstance_0();
|
|
2065
|
+
}
|
|
2066
|
+
protoOf(FileSystem).exists_5zthzn_k$ = function (path) {
|
|
2067
|
+
return commonExists(this, path);
|
|
2068
|
+
};
|
|
2069
|
+
protoOf(FileSystem).close_yn9xrc_k$ = function () {
|
|
2070
|
+
};
|
|
2071
|
+
function get_tmpdir() {
|
|
2072
|
+
var tmp0_safe_receiver = get_os();
|
|
2073
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.tmpdir();
|
|
2074
|
+
var tmp1_elvis_lhs = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
|
|
2075
|
+
return tmp1_elvis_lhs == null ? '/tmp' : tmp1_elvis_lhs;
|
|
2076
|
+
}
|
|
2077
|
+
function get_os() {
|
|
2078
|
+
var tmp;
|
|
2079
|
+
try {
|
|
2080
|
+
tmp = require('os');
|
|
2081
|
+
} catch ($p) {
|
|
2082
|
+
var tmp_0;
|
|
2083
|
+
if ($p instanceof Error) {
|
|
2084
|
+
var t = $p;
|
|
2085
|
+
tmp_0 = null;
|
|
2086
|
+
} else {
|
|
2087
|
+
throw $p;
|
|
2088
|
+
}
|
|
2089
|
+
tmp = tmp_0;
|
|
2090
|
+
}
|
|
2091
|
+
return tmp;
|
|
2092
|
+
}
|
|
2093
|
+
function get_PLATFORM_DIRECTORY_SEPARATOR() {
|
|
2094
|
+
var tmp0_safe_receiver = get_path();
|
|
2095
|
+
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.sep;
|
|
2096
|
+
var tmp1_elvis_lhs = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
|
|
2097
|
+
return tmp1_elvis_lhs == null ? '/' : tmp1_elvis_lhs;
|
|
2098
|
+
}
|
|
2099
|
+
function get_path() {
|
|
2100
|
+
var tmp;
|
|
2101
|
+
try {
|
|
2102
|
+
tmp = require('path');
|
|
2103
|
+
} catch ($p) {
|
|
2104
|
+
var tmp_0;
|
|
2105
|
+
if ($p instanceof Error) {
|
|
2106
|
+
var t = $p;
|
|
2107
|
+
tmp_0 = null;
|
|
2108
|
+
} else {
|
|
2109
|
+
throw $p;
|
|
2110
|
+
}
|
|
2111
|
+
tmp = tmp_0;
|
|
2112
|
+
}
|
|
2113
|
+
return tmp;
|
|
2114
|
+
}
|
|
2115
|
+
function Companion_1() {
|
|
2116
|
+
Companion_instance_1 = this;
|
|
2117
|
+
var tmp = this;
|
|
2118
|
+
// Inline function 'kotlin.byteArrayOf' call
|
|
2119
|
+
var tmp$ret$0 = new Int8Array([]);
|
|
2120
|
+
tmp.EMPTY_1 = new ByteString(tmp$ret$0);
|
|
2121
|
+
}
|
|
2122
|
+
protoOf(Companion_1).encodeUtf8_5n709n_k$ = function (_this__u8e3s4) {
|
|
2123
|
+
// Inline function 'okio.internal.commonEncodeUtf8' call
|
|
2124
|
+
var byteString = new ByteString(asUtf8ToByteArray(_this__u8e3s4));
|
|
2125
|
+
byteString.set_utf8_1c2rfj_k$(_this__u8e3s4);
|
|
2126
|
+
return byteString;
|
|
2127
|
+
};
|
|
2128
|
+
var Companion_instance_1;
|
|
2129
|
+
function Companion_getInstance_1() {
|
|
2130
|
+
if (Companion_instance_1 == null)
|
|
2131
|
+
new Companion_1();
|
|
2132
|
+
return Companion_instance_1;
|
|
2133
|
+
}
|
|
2134
|
+
function ByteString(data) {
|
|
2135
|
+
Companion_getInstance_1();
|
|
2136
|
+
this.data_1 = data;
|
|
2137
|
+
this.hashCode_2 = 0;
|
|
2138
|
+
this.utf8__1 = null;
|
|
2139
|
+
}
|
|
2140
|
+
protoOf(ByteString).set_hashCode_j8f9eg_k$ = function (value) {
|
|
2141
|
+
};
|
|
2142
|
+
protoOf(ByteString).set_utf8_1c2rfj_k$ = function (value) {
|
|
2143
|
+
};
|
|
2144
|
+
protoOf(ByteString).utf8_255yp_k$ = function () {
|
|
2145
|
+
// Inline function 'okio.internal.commonUtf8' call
|
|
2146
|
+
var result = this.utf8__1;
|
|
2147
|
+
if (result == null) {
|
|
2148
|
+
result = toUtf8String(this.internalArray_nlkee4_k$());
|
|
2149
|
+
this.set_utf8_1c2rfj_k$(result);
|
|
2150
|
+
}
|
|
2151
|
+
return result;
|
|
2152
|
+
};
|
|
2153
|
+
protoOf(ByteString).hex_27mj_k$ = function () {
|
|
2154
|
+
// Inline function 'okio.internal.commonHex' call
|
|
2155
|
+
var result = charArray(imul(this.data_1.length, 2));
|
|
2156
|
+
var c = 0;
|
|
2157
|
+
var indexedObject = this.data_1;
|
|
2158
|
+
var inductionVariable = 0;
|
|
2159
|
+
var last = indexedObject.length;
|
|
2160
|
+
while (inductionVariable < last) {
|
|
2161
|
+
var b = indexedObject[inductionVariable];
|
|
2162
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2163
|
+
var _unary__edvuaz = c;
|
|
2164
|
+
c = _unary__edvuaz + 1 | 0;
|
|
2165
|
+
var tmp = get_HEX_DIGIT_CHARS();
|
|
2166
|
+
// Inline function 'okio.shr' call
|
|
2167
|
+
result[_unary__edvuaz] = tmp[b >> 4 & 15];
|
|
2168
|
+
var _unary__edvuaz_0 = c;
|
|
2169
|
+
c = _unary__edvuaz_0 + 1 | 0;
|
|
2170
|
+
var tmp_0 = get_HEX_DIGIT_CHARS();
|
|
2171
|
+
// Inline function 'okio.and' call
|
|
2172
|
+
result[_unary__edvuaz_0] = tmp_0[b & 15];
|
|
2173
|
+
}
|
|
2174
|
+
return concatToString(result);
|
|
2175
|
+
};
|
|
2176
|
+
protoOf(ByteString).internalGet_fjh713_k$ = function (pos) {
|
|
2177
|
+
if (pos >= this.get_size_woubt6_k$() || pos < 0)
|
|
2178
|
+
throw new ArrayIndexOutOfBoundsException('size=' + this.get_size_woubt6_k$() + ' pos=' + pos);
|
|
2179
|
+
// Inline function 'okio.internal.commonGetByte' call
|
|
2180
|
+
return this.data_1[pos];
|
|
2181
|
+
};
|
|
2182
|
+
protoOf(ByteString).get_c1px32_k$ = function (index) {
|
|
2183
|
+
return this.internalGet_fjh713_k$(index);
|
|
2184
|
+
};
|
|
2185
|
+
protoOf(ByteString).get_size_woubt6_k$ = function () {
|
|
2186
|
+
return this.getSize_eczypt_k$();
|
|
2187
|
+
};
|
|
2188
|
+
protoOf(ByteString).getSize_eczypt_k$ = function () {
|
|
2189
|
+
// Inline function 'okio.internal.commonGetSize' call
|
|
2190
|
+
return this.data_1.length;
|
|
2191
|
+
};
|
|
2192
|
+
protoOf(ByteString).internalArray_nlkee4_k$ = function () {
|
|
2193
|
+
// Inline function 'okio.internal.commonInternalArray' call
|
|
2194
|
+
return this.data_1;
|
|
2195
|
+
};
|
|
2196
|
+
protoOf(ByteString).write_ognmlh_k$ = function (buffer, offset, byteCount) {
|
|
2197
|
+
return commonWrite(this, buffer, offset, byteCount);
|
|
2198
|
+
};
|
|
2199
|
+
protoOf(ByteString).rangeEquals_4nzvj0_k$ = function (offset, other, otherOffset, byteCount) {
|
|
2200
|
+
// Inline function 'okio.internal.commonRangeEquals' call
|
|
2201
|
+
return offset >= 0 && offset <= (this.data_1.length - byteCount | 0) && otherOffset >= 0 && otherOffset <= (other.length - byteCount | 0) && arrayRangeEquals(this.data_1, offset, other, otherOffset, byteCount);
|
|
2202
|
+
};
|
|
2203
|
+
protoOf(ByteString).equals = function (other) {
|
|
2204
|
+
// Inline function 'okio.internal.commonEquals' call
|
|
2205
|
+
var tmp;
|
|
2206
|
+
if (other === this) {
|
|
2207
|
+
tmp = true;
|
|
2208
|
+
} else {
|
|
2209
|
+
if (other instanceof ByteString) {
|
|
2210
|
+
tmp = (other.get_size_woubt6_k$() === this.data_1.length && other.rangeEquals_4nzvj0_k$(0, this.data_1, 0, this.data_1.length));
|
|
2211
|
+
} else {
|
|
2212
|
+
tmp = false;
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
return tmp;
|
|
2216
|
+
};
|
|
2217
|
+
protoOf(ByteString).hashCode = function () {
|
|
2218
|
+
var tmp$ret$0;
|
|
2219
|
+
$l$block: {
|
|
2220
|
+
// Inline function 'okio.internal.commonHashCode' call
|
|
2221
|
+
var result = this.hashCode_2;
|
|
2222
|
+
if (!(result === 0)) {
|
|
2223
|
+
tmp$ret$0 = result;
|
|
2224
|
+
break $l$block;
|
|
2225
|
+
}
|
|
2226
|
+
// Inline function 'kotlin.also' call
|
|
2227
|
+
var this_0 = contentHashCode(this.data_1);
|
|
2228
|
+
this.set_hashCode_j8f9eg_k$(this_0);
|
|
2229
|
+
tmp$ret$0 = this_0;
|
|
2230
|
+
}
|
|
2231
|
+
return tmp$ret$0;
|
|
2232
|
+
};
|
|
2233
|
+
protoOf(ByteString).compareTo_5b1exn_k$ = function (other) {
|
|
2234
|
+
var tmp$ret$0;
|
|
2235
|
+
$l$block_0: {
|
|
2236
|
+
// Inline function 'okio.internal.commonCompareTo' call
|
|
2237
|
+
var sizeA = this.get_size_woubt6_k$();
|
|
2238
|
+
var sizeB = other.get_size_woubt6_k$();
|
|
2239
|
+
var i = 0;
|
|
2240
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2241
|
+
var size = Math.min(sizeA, sizeB);
|
|
2242
|
+
$l$loop: while (i < size) {
|
|
2243
|
+
// Inline function 'okio.and' call
|
|
2244
|
+
var byteA = this.get_c1px32_k$(i) & 255;
|
|
2245
|
+
// Inline function 'okio.and' call
|
|
2246
|
+
var byteB = other.get_c1px32_k$(i) & 255;
|
|
2247
|
+
if (byteA === byteB) {
|
|
2248
|
+
i = i + 1 | 0;
|
|
2249
|
+
continue $l$loop;
|
|
2250
|
+
}
|
|
2251
|
+
tmp$ret$0 = byteA < byteB ? -1 : 1;
|
|
2252
|
+
break $l$block_0;
|
|
2253
|
+
}
|
|
2254
|
+
if (sizeA === sizeB) {
|
|
2255
|
+
tmp$ret$0 = 0;
|
|
2256
|
+
break $l$block_0;
|
|
2257
|
+
}
|
|
2258
|
+
tmp$ret$0 = sizeA < sizeB ? -1 : 1;
|
|
2259
|
+
}
|
|
2260
|
+
return tmp$ret$0;
|
|
2261
|
+
};
|
|
2262
|
+
protoOf(ByteString).compareTo_hpufkf_k$ = function (other) {
|
|
2263
|
+
return this.compareTo_5b1exn_k$(other instanceof ByteString ? other : THROW_CCE());
|
|
2264
|
+
};
|
|
2265
|
+
protoOf(ByteString).toString = function () {
|
|
2266
|
+
var tmp$ret$0;
|
|
2267
|
+
$l$block_1: {
|
|
2268
|
+
// Inline function 'okio.internal.commonToString' call
|
|
2269
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
2270
|
+
if (this.data_1.length === 0) {
|
|
2271
|
+
tmp$ret$0 = '[size=0]';
|
|
2272
|
+
break $l$block_1;
|
|
2273
|
+
}
|
|
2274
|
+
var i = access$codePointIndexToCharIndex$tByteStringKt(this.data_1, 64);
|
|
2275
|
+
if (i === -1) {
|
|
2276
|
+
var tmp;
|
|
2277
|
+
if (this.data_1.length <= 64) {
|
|
2278
|
+
tmp = '[hex=' + this.hex_27mj_k$() + ']';
|
|
2279
|
+
} else {
|
|
2280
|
+
var tmp_0 = this.data_1.length;
|
|
2281
|
+
var tmp$ret$2;
|
|
2282
|
+
$l$block_0: {
|
|
2283
|
+
// Inline function 'okio.internal.commonSubstring' call
|
|
2284
|
+
// Inline function 'kotlin.require' call
|
|
2285
|
+
if (!(0 >= 0)) {
|
|
2286
|
+
var message = 'beginIndex < 0';
|
|
2287
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2288
|
+
}
|
|
2289
|
+
// Inline function 'kotlin.require' call
|
|
2290
|
+
if (!(64 <= this.data_1.length)) {
|
|
2291
|
+
var message_0 = 'endIndex > length(' + this.data_1.length + ')';
|
|
2292
|
+
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2293
|
+
}
|
|
2294
|
+
var subLen = 64 - 0 | 0;
|
|
2295
|
+
// Inline function 'kotlin.require' call
|
|
2296
|
+
if (!(subLen >= 0)) {
|
|
2297
|
+
var message_1 = 'endIndex < beginIndex';
|
|
2298
|
+
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2299
|
+
}
|
|
2300
|
+
if (0 === 0 && 64 === this.data_1.length) {
|
|
2301
|
+
tmp$ret$2 = this;
|
|
2302
|
+
break $l$block_0;
|
|
2303
|
+
}
|
|
2304
|
+
tmp$ret$2 = new ByteString(copyOfRange(this.data_1, 0, 64));
|
|
2305
|
+
}
|
|
2306
|
+
tmp = '[size=' + tmp_0 + ' hex=' + tmp$ret$2.hex_27mj_k$() + '\u2026]';
|
|
2307
|
+
}
|
|
2308
|
+
tmp$ret$0 = tmp;
|
|
2309
|
+
break $l$block_1;
|
|
2310
|
+
}
|
|
2311
|
+
var text = this.utf8_255yp_k$();
|
|
2312
|
+
var safeText = replace(replace(replace(substring(text, 0, i), '\\', '\\\\'), '\n', '\\n'), '\r', '\\r');
|
|
2313
|
+
var tmp_1;
|
|
2314
|
+
if (i < text.length) {
|
|
2315
|
+
tmp_1 = '[size=' + this.data_1.length + ' text=' + safeText + '\u2026]';
|
|
2316
|
+
} else {
|
|
2317
|
+
tmp_1 = '[text=' + safeText + ']';
|
|
2318
|
+
}
|
|
2319
|
+
tmp$ret$0 = tmp_1;
|
|
2320
|
+
}
|
|
2321
|
+
return tmp$ret$0;
|
|
2322
|
+
};
|
|
2323
|
+
function toByteString($this) {
|
|
2324
|
+
return new ByteString($this.toByteArray_qczt2u_k$());
|
|
2325
|
+
}
|
|
2326
|
+
function SegmentedByteString(segments, directory) {
|
|
2327
|
+
ByteString.call(this, Companion_getInstance_1().EMPTY_1.data_1);
|
|
2328
|
+
this.segments_1 = segments;
|
|
2329
|
+
this.directory_1 = directory;
|
|
2330
|
+
}
|
|
2331
|
+
protoOf(SegmentedByteString).hex_27mj_k$ = function () {
|
|
2332
|
+
return toByteString(this).hex_27mj_k$();
|
|
2333
|
+
};
|
|
2334
|
+
protoOf(SegmentedByteString).internalGet_fjh713_k$ = function (pos) {
|
|
2335
|
+
// Inline function 'okio.internal.commonInternalGet' call
|
|
2336
|
+
checkOffsetAndCount(fromInt(this.directory_1[this.segments_1.length - 1 | 0]), fromInt(pos), 1n);
|
|
2337
|
+
var segment_0 = segment(this, pos);
|
|
2338
|
+
var segmentOffset = segment_0 === 0 ? 0 : this.directory_1[segment_0 - 1 | 0];
|
|
2339
|
+
var segmentPos = this.directory_1[segment_0 + this.segments_1.length | 0];
|
|
2340
|
+
return this.segments_1[segment_0][(pos - segmentOffset | 0) + segmentPos | 0];
|
|
2341
|
+
};
|
|
2342
|
+
protoOf(SegmentedByteString).getSize_eczypt_k$ = function () {
|
|
2343
|
+
// Inline function 'okio.internal.commonGetSize' call
|
|
2344
|
+
return this.directory_1[this.segments_1.length - 1 | 0];
|
|
2345
|
+
};
|
|
2346
|
+
protoOf(SegmentedByteString).toByteArray_qczt2u_k$ = function () {
|
|
2347
|
+
// Inline function 'okio.internal.commonToByteArray' call
|
|
2348
|
+
var result = new Int8Array(this.get_size_woubt6_k$());
|
|
2349
|
+
var resultPos = 0;
|
|
2350
|
+
// Inline function 'okio.internal.forEachSegment' call
|
|
2351
|
+
var segmentCount = this.segments_1.length;
|
|
2352
|
+
var s = 0;
|
|
2353
|
+
var pos = 0;
|
|
2354
|
+
while (s < segmentCount) {
|
|
2355
|
+
var segmentPos = this.directory_1[segmentCount + s | 0];
|
|
2356
|
+
var nextSegmentOffset = this.directory_1[s];
|
|
2357
|
+
var tmp0 = this.segments_1[s];
|
|
2358
|
+
var byteCount = nextSegmentOffset - pos | 0;
|
|
2359
|
+
var tmp4 = resultPos;
|
|
2360
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2361
|
+
var endIndex = segmentPos + byteCount | 0;
|
|
2362
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2363
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2364
|
+
var tmp = tmp0;
|
|
2365
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2366
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2367
|
+
arrayCopy(tmp, result, tmp4, segmentPos, endIndex);
|
|
2368
|
+
resultPos = resultPos + byteCount | 0;
|
|
2369
|
+
pos = nextSegmentOffset;
|
|
2370
|
+
s = s + 1 | 0;
|
|
2371
|
+
}
|
|
2372
|
+
return result;
|
|
2373
|
+
};
|
|
2374
|
+
protoOf(SegmentedByteString).write_ognmlh_k$ = function (buffer, offset, byteCount) {
|
|
2375
|
+
// Inline function 'okio.internal.commonWrite' call
|
|
2376
|
+
var endIndex = offset + byteCount | 0;
|
|
2377
|
+
var s = segment(this, offset);
|
|
2378
|
+
var pos = offset;
|
|
2379
|
+
while (pos < endIndex) {
|
|
2380
|
+
var segmentOffset = s === 0 ? 0 : this.directory_1[s - 1 | 0];
|
|
2381
|
+
var segmentSize = this.directory_1[s] - segmentOffset | 0;
|
|
2382
|
+
var segmentPos = this.directory_1[this.segments_1.length + s | 0];
|
|
2383
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2384
|
+
var b = segmentOffset + segmentSize | 0;
|
|
2385
|
+
var byteCount_0 = Math.min(endIndex, b) - pos | 0;
|
|
2386
|
+
var offset_0 = segmentPos + (pos - segmentOffset | 0) | 0;
|
|
2387
|
+
var data = this.segments_1[s];
|
|
2388
|
+
var segment_0 = Segment_init_$Create$_0(data, offset_0, offset_0 + byteCount_0 | 0, true, false);
|
|
2389
|
+
if (buffer.head_1 == null) {
|
|
2390
|
+
segment_0.prev_1 = segment_0;
|
|
2391
|
+
segment_0.next_1 = segment_0.prev_1;
|
|
2392
|
+
buffer.head_1 = segment_0.next_1;
|
|
2393
|
+
} else {
|
|
2394
|
+
ensureNotNull(ensureNotNull(buffer.head_1).prev_1).push_wd62e0_k$(segment_0);
|
|
2395
|
+
}
|
|
2396
|
+
pos = pos + byteCount_0 | 0;
|
|
2397
|
+
s = s + 1 | 0;
|
|
2398
|
+
}
|
|
2399
|
+
var tmp = buffer;
|
|
2400
|
+
// Inline function 'kotlin.Long.plus' call
|
|
2401
|
+
var this_0 = buffer.size_1;
|
|
2402
|
+
tmp.size_1 = add(this_0, fromInt(byteCount));
|
|
2403
|
+
return Unit_instance;
|
|
2404
|
+
};
|
|
2405
|
+
protoOf(SegmentedByteString).rangeEquals_tjm4f3_k$ = function (offset, other, otherOffset, byteCount) {
|
|
2406
|
+
var tmp$ret$0;
|
|
2407
|
+
$l$block_0: {
|
|
2408
|
+
// Inline function 'okio.internal.commonRangeEquals' call
|
|
2409
|
+
if (offset < 0 || offset > (this.get_size_woubt6_k$() - byteCount | 0)) {
|
|
2410
|
+
tmp$ret$0 = false;
|
|
2411
|
+
break $l$block_0;
|
|
2412
|
+
}
|
|
2413
|
+
var otherOffset_0 = otherOffset;
|
|
2414
|
+
var endIndex = offset + byteCount | 0;
|
|
2415
|
+
var s = segment(this, offset);
|
|
2416
|
+
var pos = offset;
|
|
2417
|
+
while (pos < endIndex) {
|
|
2418
|
+
var segmentOffset = s === 0 ? 0 : this.directory_1[s - 1 | 0];
|
|
2419
|
+
var segmentSize = this.directory_1[s] - segmentOffset | 0;
|
|
2420
|
+
var segmentPos = this.directory_1[this.segments_1.length + s | 0];
|
|
2421
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2422
|
+
var b = segmentOffset + segmentSize | 0;
|
|
2423
|
+
var byteCount_0 = Math.min(endIndex, b) - pos | 0;
|
|
2424
|
+
var offset_0 = segmentPos + (pos - segmentOffset | 0) | 0;
|
|
2425
|
+
var data = this.segments_1[s];
|
|
2426
|
+
if (!other.rangeEquals_4nzvj0_k$(otherOffset_0, data, offset_0, byteCount_0)) {
|
|
2427
|
+
tmp$ret$0 = false;
|
|
2428
|
+
break $l$block_0;
|
|
2429
|
+
}
|
|
2430
|
+
otherOffset_0 = otherOffset_0 + byteCount_0 | 0;
|
|
2431
|
+
pos = pos + byteCount_0 | 0;
|
|
2432
|
+
s = s + 1 | 0;
|
|
2433
|
+
}
|
|
2434
|
+
tmp$ret$0 = true;
|
|
2435
|
+
}
|
|
2436
|
+
return tmp$ret$0;
|
|
2437
|
+
};
|
|
2438
|
+
protoOf(SegmentedByteString).rangeEquals_4nzvj0_k$ = function (offset, other, otherOffset, byteCount) {
|
|
2439
|
+
var tmp$ret$0;
|
|
2440
|
+
$l$block_0: {
|
|
2441
|
+
// Inline function 'okio.internal.commonRangeEquals' call
|
|
2442
|
+
if (offset < 0 || offset > (this.get_size_woubt6_k$() - byteCount | 0) || otherOffset < 0 || otherOffset > (other.length - byteCount | 0)) {
|
|
2443
|
+
tmp$ret$0 = false;
|
|
2444
|
+
break $l$block_0;
|
|
2445
|
+
}
|
|
2446
|
+
var otherOffset_0 = otherOffset;
|
|
2447
|
+
var endIndex = offset + byteCount | 0;
|
|
2448
|
+
var s = segment(this, offset);
|
|
2449
|
+
var pos = offset;
|
|
2450
|
+
while (pos < endIndex) {
|
|
2451
|
+
var segmentOffset = s === 0 ? 0 : this.directory_1[s - 1 | 0];
|
|
2452
|
+
var segmentSize = this.directory_1[s] - segmentOffset | 0;
|
|
2453
|
+
var segmentPos = this.directory_1[this.segments_1.length + s | 0];
|
|
2454
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2455
|
+
var b = segmentOffset + segmentSize | 0;
|
|
2456
|
+
var byteCount_0 = Math.min(endIndex, b) - pos | 0;
|
|
2457
|
+
var offset_0 = segmentPos + (pos - segmentOffset | 0) | 0;
|
|
2458
|
+
var data = this.segments_1[s];
|
|
2459
|
+
if (!arrayRangeEquals(data, offset_0, other, otherOffset_0, byteCount_0)) {
|
|
2460
|
+
tmp$ret$0 = false;
|
|
2461
|
+
break $l$block_0;
|
|
2462
|
+
}
|
|
2463
|
+
otherOffset_0 = otherOffset_0 + byteCount_0 | 0;
|
|
2464
|
+
pos = pos + byteCount_0 | 0;
|
|
2465
|
+
s = s + 1 | 0;
|
|
2466
|
+
}
|
|
2467
|
+
tmp$ret$0 = true;
|
|
2468
|
+
}
|
|
2469
|
+
return tmp$ret$0;
|
|
2470
|
+
};
|
|
2471
|
+
protoOf(SegmentedByteString).internalArray_nlkee4_k$ = function () {
|
|
2472
|
+
return this.toByteArray_qczt2u_k$();
|
|
2473
|
+
};
|
|
2474
|
+
protoOf(SegmentedByteString).equals = function (other) {
|
|
2475
|
+
// Inline function 'okio.internal.commonEquals' call
|
|
2476
|
+
var tmp;
|
|
2477
|
+
if (other === this) {
|
|
2478
|
+
tmp = true;
|
|
2479
|
+
} else {
|
|
2480
|
+
if (other instanceof ByteString) {
|
|
2481
|
+
tmp = (other.get_size_woubt6_k$() === this.get_size_woubt6_k$() && this.rangeEquals_tjm4f3_k$(0, other, 0, this.get_size_woubt6_k$()));
|
|
2482
|
+
} else {
|
|
2483
|
+
tmp = false;
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
return tmp;
|
|
2487
|
+
};
|
|
2488
|
+
protoOf(SegmentedByteString).hashCode = function () {
|
|
2489
|
+
var tmp$ret$0;
|
|
2490
|
+
$l$block: {
|
|
2491
|
+
// Inline function 'okio.internal.commonHashCode' call
|
|
2492
|
+
var result = this.hashCode_2;
|
|
2493
|
+
if (!(result === 0)) {
|
|
2494
|
+
tmp$ret$0 = result;
|
|
2495
|
+
break $l$block;
|
|
2496
|
+
}
|
|
2497
|
+
result = 1;
|
|
2498
|
+
// Inline function 'okio.internal.forEachSegment' call
|
|
2499
|
+
var segmentCount = this.segments_1.length;
|
|
2500
|
+
var s = 0;
|
|
2501
|
+
var pos = 0;
|
|
2502
|
+
while (s < segmentCount) {
|
|
2503
|
+
var segmentPos = this.directory_1[segmentCount + s | 0];
|
|
2504
|
+
var nextSegmentOffset = this.directory_1[s];
|
|
2505
|
+
var tmp0 = this.segments_1[s];
|
|
2506
|
+
var i = segmentPos;
|
|
2507
|
+
var limit = segmentPos + (nextSegmentOffset - pos | 0) | 0;
|
|
2508
|
+
while (i < limit) {
|
|
2509
|
+
result = imul(31, result) + tmp0[i] | 0;
|
|
2510
|
+
i = i + 1 | 0;
|
|
2511
|
+
}
|
|
2512
|
+
pos = nextSegmentOffset;
|
|
2513
|
+
s = s + 1 | 0;
|
|
2514
|
+
}
|
|
2515
|
+
this.set_hashCode_j8f9eg_k$(result);
|
|
2516
|
+
tmp$ret$0 = result;
|
|
2517
|
+
}
|
|
2518
|
+
return tmp$ret$0;
|
|
2519
|
+
};
|
|
2520
|
+
protoOf(SegmentedByteString).toString = function () {
|
|
2521
|
+
return toByteString(this).toString();
|
|
2522
|
+
};
|
|
2523
|
+
function Buffer() {
|
|
2524
|
+
this.head_1 = null;
|
|
2525
|
+
this.size_1 = 0n;
|
|
2526
|
+
}
|
|
2527
|
+
protoOf(Buffer).exhausted_p1jt55_k$ = function () {
|
|
2528
|
+
return this.size_1 === 0n;
|
|
2529
|
+
};
|
|
2530
|
+
protoOf(Buffer).get_f9lzxq_k$ = function (pos) {
|
|
2531
|
+
var tmp$ret$0;
|
|
2532
|
+
$l$block_3: {
|
|
2533
|
+
// Inline function 'okio.internal.commonGet' call
|
|
2534
|
+
checkOffsetAndCount(this.size_1, pos, 1n);
|
|
2535
|
+
$l$block_4: {
|
|
2536
|
+
// Inline function 'okio.internal.seek' call
|
|
2537
|
+
var tmp0_elvis_lhs = this.head_1;
|
|
2538
|
+
var tmp;
|
|
2539
|
+
if (tmp0_elvis_lhs == null) {
|
|
2540
|
+
tmp$ret$0 = ensureNotNull(null).data_1[convertToInt(subtract(add(numberToLong(null.pos_1), pos), -1n))];
|
|
2541
|
+
break $l$block_3;
|
|
2542
|
+
} else {
|
|
2543
|
+
tmp = tmp0_elvis_lhs;
|
|
2544
|
+
}
|
|
2545
|
+
var s = tmp;
|
|
2546
|
+
if (subtract(this.size_1, pos) < pos) {
|
|
2547
|
+
var offset = this.size_1;
|
|
2548
|
+
while (offset > pos) {
|
|
2549
|
+
s = ensureNotNull(s.prev_1);
|
|
2550
|
+
offset = subtract(offset, fromInt(s.limit_1 - s.pos_1 | 0));
|
|
2551
|
+
}
|
|
2552
|
+
var tmp0 = s;
|
|
2553
|
+
var offset_0 = offset;
|
|
2554
|
+
tmp$ret$0 = ensureNotNull(tmp0).data_1[convertToInt(subtract(add(numberToLong(tmp0.pos_1), pos), offset_0))];
|
|
2555
|
+
break $l$block_3;
|
|
2556
|
+
} else {
|
|
2557
|
+
var offset_1 = 0n;
|
|
2558
|
+
$l$loop: while (true) {
|
|
2559
|
+
var tmp0_0 = offset_1;
|
|
2560
|
+
// Inline function 'kotlin.Long.plus' call
|
|
2561
|
+
var other = s.limit_1 - s.pos_1 | 0;
|
|
2562
|
+
var nextOffset = add(tmp0_0, fromInt(other));
|
|
2563
|
+
if (nextOffset > pos)
|
|
2564
|
+
break $l$loop;
|
|
2565
|
+
s = ensureNotNull(s.next_1);
|
|
2566
|
+
offset_1 = nextOffset;
|
|
2567
|
+
}
|
|
2568
|
+
var tmp0_1 = s;
|
|
2569
|
+
var offset_2 = offset_1;
|
|
2570
|
+
tmp$ret$0 = ensureNotNull(tmp0_1).data_1[convertToInt(subtract(add(numberToLong(tmp0_1.pos_1), pos), offset_2))];
|
|
2571
|
+
break $l$block_3;
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
return tmp$ret$0;
|
|
2576
|
+
};
|
|
2577
|
+
protoOf(Buffer).completeSegmentByteCount_8y8ucz_k$ = function () {
|
|
2578
|
+
var tmp$ret$0;
|
|
2579
|
+
$l$block: {
|
|
2580
|
+
// Inline function 'okio.internal.commonCompleteSegmentByteCount' call
|
|
2581
|
+
var result = this.size_1;
|
|
2582
|
+
if (result === 0n) {
|
|
2583
|
+
tmp$ret$0 = 0n;
|
|
2584
|
+
break $l$block;
|
|
2585
|
+
}
|
|
2586
|
+
var tail = ensureNotNull(ensureNotNull(this.head_1).prev_1);
|
|
2587
|
+
if (tail.limit_1 < 8192 && tail.owner_1) {
|
|
2588
|
+
result = subtract(result, fromInt(tail.limit_1 - tail.pos_1 | 0));
|
|
2589
|
+
}
|
|
2590
|
+
tmp$ret$0 = result;
|
|
2591
|
+
}
|
|
2592
|
+
return tmp$ret$0;
|
|
2593
|
+
};
|
|
2594
|
+
protoOf(Buffer).readByte_ectjk2_k$ = function () {
|
|
2595
|
+
// Inline function 'okio.internal.commonReadByte' call
|
|
2596
|
+
if (this.size_1 === 0n)
|
|
2597
|
+
throw EOFException_init_$Create$();
|
|
2598
|
+
var segment = ensureNotNull(this.head_1);
|
|
2599
|
+
var pos = segment.pos_1;
|
|
2600
|
+
var limit = segment.limit_1;
|
|
2601
|
+
var data = segment.data_1;
|
|
2602
|
+
var _unary__edvuaz = pos;
|
|
2603
|
+
pos = _unary__edvuaz + 1 | 0;
|
|
2604
|
+
var b = data[_unary__edvuaz];
|
|
2605
|
+
this.size_1 = subtract(this.size_1, 1n);
|
|
2606
|
+
if (pos === limit) {
|
|
2607
|
+
this.head_1 = segment.pop_2dsh_k$();
|
|
2608
|
+
SegmentPool_instance.recycle_ipeoxr_k$(segment);
|
|
2609
|
+
} else {
|
|
2610
|
+
segment.pos_1 = pos;
|
|
2611
|
+
}
|
|
2612
|
+
return b;
|
|
2613
|
+
};
|
|
2614
|
+
protoOf(Buffer).readByteString_nzt46n_k$ = function () {
|
|
2615
|
+
// Inline function 'okio.internal.commonReadByteString' call
|
|
2616
|
+
return this.readByteString_9cl897_k$(this.size_1);
|
|
2617
|
+
};
|
|
2618
|
+
protoOf(Buffer).readByteString_9cl897_k$ = function (byteCount) {
|
|
2619
|
+
var tmp$ret$0;
|
|
2620
|
+
$l$block_0: {
|
|
2621
|
+
// Inline function 'okio.internal.commonReadByteString' call
|
|
2622
|
+
// Inline function 'kotlin.require' call
|
|
2623
|
+
if (!(byteCount >= 0n && byteCount <= 2147483647n)) {
|
|
2624
|
+
var message = 'byteCount: ' + byteCount.toString();
|
|
2625
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2626
|
+
}
|
|
2627
|
+
if (this.size_1 < byteCount)
|
|
2628
|
+
throw EOFException_init_$Create$();
|
|
2629
|
+
if (byteCount >= 4096n) {
|
|
2630
|
+
// Inline function 'kotlin.also' call
|
|
2631
|
+
var this_0 = this.snapshot_hwfoq4_k$(convertToInt(byteCount));
|
|
2632
|
+
this.skip_csbv9x_k$(byteCount);
|
|
2633
|
+
tmp$ret$0 = this_0;
|
|
2634
|
+
break $l$block_0;
|
|
2635
|
+
} else {
|
|
2636
|
+
tmp$ret$0 = new ByteString(this.readByteArray_e1odyh_k$(byteCount));
|
|
2637
|
+
break $l$block_0;
|
|
2638
|
+
}
|
|
2639
|
+
}
|
|
2640
|
+
return tmp$ret$0;
|
|
2641
|
+
};
|
|
2642
|
+
protoOf(Buffer).readUtf8_echivt_k$ = function () {
|
|
2643
|
+
return this.readUtf8_yzubzx_k$(this.size_1);
|
|
2644
|
+
};
|
|
2645
|
+
protoOf(Buffer).readUtf8_yzubzx_k$ = function (byteCount) {
|
|
2646
|
+
var tmp$ret$0;
|
|
2647
|
+
$l$block_0: {
|
|
2648
|
+
// Inline function 'okio.internal.commonReadUtf8' call
|
|
2649
|
+
// Inline function 'kotlin.require' call
|
|
2650
|
+
if (!(byteCount >= 0n && byteCount <= 2147483647n)) {
|
|
2651
|
+
var message = 'byteCount: ' + byteCount.toString();
|
|
2652
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2653
|
+
}
|
|
2654
|
+
if (this.size_1 < byteCount)
|
|
2655
|
+
throw EOFException_init_$Create$();
|
|
2656
|
+
if (byteCount === 0n) {
|
|
2657
|
+
tmp$ret$0 = '';
|
|
2658
|
+
break $l$block_0;
|
|
2659
|
+
}
|
|
2660
|
+
var s = ensureNotNull(this.head_1);
|
|
2661
|
+
if (add(numberToLong(s.pos_1), byteCount) > fromInt(s.limit_1)) {
|
|
2662
|
+
tmp$ret$0 = commonToUtf8String(this.readByteArray_e1odyh_k$(byteCount));
|
|
2663
|
+
break $l$block_0;
|
|
2664
|
+
}
|
|
2665
|
+
var result = commonToUtf8String(s.data_1, s.pos_1, s.pos_1 + convertToInt(byteCount) | 0);
|
|
2666
|
+
s.pos_1 = s.pos_1 + convertToInt(byteCount) | 0;
|
|
2667
|
+
this.size_1 = subtract(this.size_1, byteCount);
|
|
2668
|
+
if (s.pos_1 === s.limit_1) {
|
|
2669
|
+
this.head_1 = s.pop_2dsh_k$();
|
|
2670
|
+
SegmentPool_instance.recycle_ipeoxr_k$(s);
|
|
2671
|
+
}
|
|
2672
|
+
tmp$ret$0 = result;
|
|
2673
|
+
}
|
|
2674
|
+
return tmp$ret$0;
|
|
2675
|
+
};
|
|
2676
|
+
protoOf(Buffer).readUtf8CodePoint_brmg90_k$ = function () {
|
|
2677
|
+
var tmp$ret$0;
|
|
2678
|
+
$l$block_0: {
|
|
2679
|
+
// Inline function 'okio.internal.commonReadUtf8CodePoint' call
|
|
2680
|
+
if (this.size_1 === 0n)
|
|
2681
|
+
throw EOFException_init_$Create$();
|
|
2682
|
+
var b0 = this.get_f9lzxq_k$(0n);
|
|
2683
|
+
var codePoint;
|
|
2684
|
+
var byteCount;
|
|
2685
|
+
var min;
|
|
2686
|
+
// Inline function 'okio.and' call
|
|
2687
|
+
if ((b0 & 128) === 0) {
|
|
2688
|
+
// Inline function 'okio.and' call
|
|
2689
|
+
codePoint = b0 & 127;
|
|
2690
|
+
byteCount = 1;
|
|
2691
|
+
min = 0;
|
|
2692
|
+
} else {
|
|
2693
|
+
// Inline function 'okio.and' call
|
|
2694
|
+
if ((b0 & 224) === 192) {
|
|
2695
|
+
// Inline function 'okio.and' call
|
|
2696
|
+
codePoint = b0 & 31;
|
|
2697
|
+
byteCount = 2;
|
|
2698
|
+
min = 128;
|
|
2699
|
+
} else {
|
|
2700
|
+
// Inline function 'okio.and' call
|
|
2701
|
+
if ((b0 & 240) === 224) {
|
|
2702
|
+
// Inline function 'okio.and' call
|
|
2703
|
+
codePoint = b0 & 15;
|
|
2704
|
+
byteCount = 3;
|
|
2705
|
+
min = 2048;
|
|
2706
|
+
} else {
|
|
2707
|
+
// Inline function 'okio.and' call
|
|
2708
|
+
if ((b0 & 248) === 240) {
|
|
2709
|
+
// Inline function 'okio.and' call
|
|
2710
|
+
codePoint = b0 & 7;
|
|
2711
|
+
byteCount = 4;
|
|
2712
|
+
min = 65536;
|
|
2713
|
+
} else {
|
|
2714
|
+
this.skip_csbv9x_k$(1n);
|
|
2715
|
+
tmp$ret$0 = 65533;
|
|
2716
|
+
break $l$block_0;
|
|
2717
|
+
}
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
if (this.size_1 < fromInt(byteCount)) {
|
|
2722
|
+
throw new EOFException('size < ' + byteCount + ': ' + this.size_1.toString() + ' (to read code point prefixed 0x' + toHexString(b0) + ')');
|
|
2723
|
+
}
|
|
2724
|
+
var inductionVariable = 1;
|
|
2725
|
+
if (inductionVariable < byteCount)
|
|
2726
|
+
do {
|
|
2727
|
+
var i = inductionVariable;
|
|
2728
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2729
|
+
var b = this.get_f9lzxq_k$(fromInt(i));
|
|
2730
|
+
// Inline function 'okio.and' call
|
|
2731
|
+
if ((b & 192) === 128) {
|
|
2732
|
+
codePoint = codePoint << 6;
|
|
2733
|
+
var tmp = codePoint;
|
|
2734
|
+
// Inline function 'okio.and' call
|
|
2735
|
+
codePoint = tmp | b & 63;
|
|
2736
|
+
} else {
|
|
2737
|
+
this.skip_csbv9x_k$(fromInt(i));
|
|
2738
|
+
tmp$ret$0 = 65533;
|
|
2739
|
+
break $l$block_0;
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
while (inductionVariable < byteCount);
|
|
2743
|
+
this.skip_csbv9x_k$(fromInt(byteCount));
|
|
2744
|
+
var tmp_0;
|
|
2745
|
+
if (codePoint > 1114111) {
|
|
2746
|
+
tmp_0 = 65533;
|
|
2747
|
+
} else {
|
|
2748
|
+
// Inline function 'okio.internal.isSurrogate' call
|
|
2749
|
+
var this_0 = codePoint;
|
|
2750
|
+
if (55296 <= this_0 ? this_0 <= 57343 : false) {
|
|
2751
|
+
tmp_0 = 65533;
|
|
2752
|
+
} else {
|
|
2753
|
+
if (codePoint < min) {
|
|
2754
|
+
tmp_0 = 65533;
|
|
2755
|
+
} else {
|
|
2756
|
+
tmp_0 = codePoint;
|
|
2757
|
+
}
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
tmp$ret$0 = tmp_0;
|
|
2761
|
+
}
|
|
2762
|
+
return tmp$ret$0;
|
|
2763
|
+
};
|
|
2764
|
+
protoOf(Buffer).readByteArray_52wnjv_k$ = function () {
|
|
2765
|
+
// Inline function 'okio.internal.commonReadByteArray' call
|
|
2766
|
+
return this.readByteArray_e1odyh_k$(this.size_1);
|
|
2767
|
+
};
|
|
2768
|
+
protoOf(Buffer).readByteArray_e1odyh_k$ = function (byteCount) {
|
|
2769
|
+
// Inline function 'okio.internal.commonReadByteArray' call
|
|
2770
|
+
// Inline function 'kotlin.require' call
|
|
2771
|
+
if (!(byteCount >= 0n && byteCount <= 2147483647n)) {
|
|
2772
|
+
var message = 'byteCount: ' + byteCount.toString();
|
|
2773
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2774
|
+
}
|
|
2775
|
+
if (this.size_1 < byteCount)
|
|
2776
|
+
throw EOFException_init_$Create$();
|
|
2777
|
+
var result = new Int8Array(convertToInt(byteCount));
|
|
2778
|
+
this.readFully_qophy4_k$(result);
|
|
2779
|
+
return result;
|
|
2780
|
+
};
|
|
2781
|
+
protoOf(Buffer).readFully_qophy4_k$ = function (sink) {
|
|
2782
|
+
// Inline function 'okio.internal.commonReadFully' call
|
|
2783
|
+
var offset = 0;
|
|
2784
|
+
while (offset < sink.length) {
|
|
2785
|
+
var read = this.read_7zpyie_k$(sink, offset, sink.length - offset | 0);
|
|
2786
|
+
if (read === -1)
|
|
2787
|
+
throw EOFException_init_$Create$();
|
|
2788
|
+
offset = offset + read | 0;
|
|
2789
|
+
}
|
|
2790
|
+
return Unit_instance;
|
|
2791
|
+
};
|
|
2792
|
+
protoOf(Buffer).read_7zpyie_k$ = function (sink, offset, byteCount) {
|
|
2793
|
+
var tmp$ret$0;
|
|
2794
|
+
$l$block: {
|
|
2795
|
+
// Inline function 'okio.internal.commonRead' call
|
|
2796
|
+
checkOffsetAndCount(fromInt(sink.length), fromInt(offset), fromInt(byteCount));
|
|
2797
|
+
var tmp0_elvis_lhs = this.head_1;
|
|
2798
|
+
var tmp;
|
|
2799
|
+
if (tmp0_elvis_lhs == null) {
|
|
2800
|
+
tmp$ret$0 = -1;
|
|
2801
|
+
break $l$block;
|
|
2802
|
+
} else {
|
|
2803
|
+
tmp = tmp0_elvis_lhs;
|
|
2804
|
+
}
|
|
2805
|
+
var s = tmp;
|
|
2806
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2807
|
+
var b = s.limit_1 - s.pos_1 | 0;
|
|
2808
|
+
var toCopy = Math.min(byteCount, b);
|
|
2809
|
+
var tmp0 = s.data_1;
|
|
2810
|
+
var tmp6 = s.pos_1;
|
|
2811
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
2812
|
+
var endIndex = s.pos_1 + toCopy | 0;
|
|
2813
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2814
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2815
|
+
var tmp_0 = tmp0;
|
|
2816
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2817
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2818
|
+
arrayCopy(tmp_0, sink, offset, tmp6, endIndex);
|
|
2819
|
+
s.pos_1 = s.pos_1 + toCopy | 0;
|
|
2820
|
+
this.size_1 = subtract(this.size_1, fromInt(toCopy));
|
|
2821
|
+
if (s.pos_1 === s.limit_1) {
|
|
2822
|
+
this.head_1 = s.pop_2dsh_k$();
|
|
2823
|
+
SegmentPool_instance.recycle_ipeoxr_k$(s);
|
|
2824
|
+
}
|
|
2825
|
+
tmp$ret$0 = toCopy;
|
|
2826
|
+
}
|
|
2827
|
+
return tmp$ret$0;
|
|
2828
|
+
};
|
|
2829
|
+
protoOf(Buffer).clear_j9egeb_k$ = function () {
|
|
2830
|
+
// Inline function 'okio.internal.commonClear' call
|
|
2831
|
+
this.skip_csbv9x_k$(this.size_1);
|
|
2832
|
+
return Unit_instance;
|
|
2833
|
+
};
|
|
2834
|
+
protoOf(Buffer).skip_csbv9x_k$ = function (byteCount) {
|
|
2835
|
+
// Inline function 'okio.internal.commonSkip' call
|
|
2836
|
+
var byteCount_0 = byteCount;
|
|
2837
|
+
while (byteCount_0 > 0n) {
|
|
2838
|
+
var tmp0_elvis_lhs = this.head_1;
|
|
2839
|
+
var tmp;
|
|
2840
|
+
if (tmp0_elvis_lhs == null) {
|
|
2841
|
+
throw EOFException_init_$Create$();
|
|
2842
|
+
} else {
|
|
2843
|
+
tmp = tmp0_elvis_lhs;
|
|
2844
|
+
}
|
|
2845
|
+
var head = tmp;
|
|
2846
|
+
var tmp0 = byteCount_0;
|
|
2847
|
+
// Inline function 'okio.minOf' call
|
|
2848
|
+
var b = head.limit_1 - head.pos_1 | 0;
|
|
2849
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2850
|
+
var b_0 = fromInt(b);
|
|
2851
|
+
var tmp$ret$1 = tmp0 <= b_0 ? tmp0 : b_0;
|
|
2852
|
+
var toSkip = convertToInt(tmp$ret$1);
|
|
2853
|
+
this.size_1 = subtract(this.size_1, fromInt(toSkip));
|
|
2854
|
+
byteCount_0 = subtract(byteCount_0, fromInt(toSkip));
|
|
2855
|
+
head.pos_1 = head.pos_1 + toSkip | 0;
|
|
2856
|
+
if (head.pos_1 === head.limit_1) {
|
|
2857
|
+
this.head_1 = head.pop_2dsh_k$();
|
|
2858
|
+
SegmentPool_instance.recycle_ipeoxr_k$(head);
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
return Unit_instance;
|
|
2862
|
+
};
|
|
2863
|
+
protoOf(Buffer).write_nkn6vw_k$ = function (byteString) {
|
|
2864
|
+
// Inline function 'okio.internal.commonWrite' call
|
|
2865
|
+
var byteCount = byteString.get_size_woubt6_k$();
|
|
2866
|
+
byteString.write_ognmlh_k$(this, 0, byteCount);
|
|
2867
|
+
return this;
|
|
2868
|
+
};
|
|
2869
|
+
protoOf(Buffer).writableSegment_voedtv_k$ = function (minimumCapacity) {
|
|
2870
|
+
var tmp$ret$0;
|
|
2871
|
+
$l$block: {
|
|
2872
|
+
// Inline function 'okio.internal.commonWritableSegment' call
|
|
2873
|
+
// Inline function 'kotlin.require' call
|
|
2874
|
+
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
2875
|
+
var message = 'unexpected capacity';
|
|
2876
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2877
|
+
}
|
|
2878
|
+
if (this.head_1 == null) {
|
|
2879
|
+
var result = SegmentPool_instance.take_2451j_k$();
|
|
2880
|
+
this.head_1 = result;
|
|
2881
|
+
result.prev_1 = result;
|
|
2882
|
+
result.next_1 = result;
|
|
2883
|
+
tmp$ret$0 = result;
|
|
2884
|
+
break $l$block;
|
|
2885
|
+
}
|
|
2886
|
+
var tail = ensureNotNull(this.head_1).prev_1;
|
|
2887
|
+
if ((ensureNotNull(tail).limit_1 + minimumCapacity | 0) > 8192 || !tail.owner_1) {
|
|
2888
|
+
tail = tail.push_wd62e0_k$(SegmentPool_instance.take_2451j_k$());
|
|
2889
|
+
}
|
|
2890
|
+
tmp$ret$0 = tail;
|
|
2891
|
+
}
|
|
2892
|
+
return tmp$ret$0;
|
|
2893
|
+
};
|
|
2894
|
+
protoOf(Buffer).writeUtf8_9rv3au_k$ = function (string) {
|
|
2895
|
+
return this.writeUtf8_sgs1di_k$(string, 0, string.length);
|
|
2896
|
+
};
|
|
2897
|
+
protoOf(Buffer).writeUtf8_sgs1di_k$ = function (string, beginIndex, endIndex) {
|
|
2898
|
+
// Inline function 'okio.internal.commonWriteUtf8' call
|
|
2899
|
+
// Inline function 'kotlin.require' call
|
|
2900
|
+
if (!(beginIndex >= 0)) {
|
|
2901
|
+
var message = 'beginIndex < 0: ' + beginIndex;
|
|
2902
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
2903
|
+
}
|
|
2904
|
+
// Inline function 'kotlin.require' call
|
|
2905
|
+
if (!(endIndex >= beginIndex)) {
|
|
2906
|
+
var message_0 = 'endIndex < beginIndex: ' + endIndex + ' < ' + beginIndex;
|
|
2907
|
+
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
2908
|
+
}
|
|
2909
|
+
// Inline function 'kotlin.require' call
|
|
2910
|
+
if (!(endIndex <= string.length)) {
|
|
2911
|
+
var message_1 = 'endIndex > string.length: ' + endIndex + ' > ' + string.length;
|
|
2912
|
+
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
2913
|
+
}
|
|
2914
|
+
var i = beginIndex;
|
|
2915
|
+
while (i < endIndex) {
|
|
2916
|
+
// Inline function 'kotlin.code' call
|
|
2917
|
+
var this_0 = charCodeAt(string, i);
|
|
2918
|
+
var c = Char__toInt_impl_vasixd(this_0);
|
|
2919
|
+
if (c < 128) {
|
|
2920
|
+
var tail = this.writableSegment_voedtv_k$(1);
|
|
2921
|
+
var data = tail.data_1;
|
|
2922
|
+
var segmentOffset = tail.limit_1 - i | 0;
|
|
2923
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
2924
|
+
var b = 8192 - segmentOffset | 0;
|
|
2925
|
+
var runLimit = Math.min(endIndex, b);
|
|
2926
|
+
var _unary__edvuaz = i;
|
|
2927
|
+
i = _unary__edvuaz + 1 | 0;
|
|
2928
|
+
data[segmentOffset + _unary__edvuaz | 0] = toByte(c);
|
|
2929
|
+
$l$loop: while (i < runLimit) {
|
|
2930
|
+
// Inline function 'kotlin.code' call
|
|
2931
|
+
var this_1 = charCodeAt(string, i);
|
|
2932
|
+
c = Char__toInt_impl_vasixd(this_1);
|
|
2933
|
+
if (c >= 128)
|
|
2934
|
+
break $l$loop;
|
|
2935
|
+
var _unary__edvuaz_0 = i;
|
|
2936
|
+
i = _unary__edvuaz_0 + 1 | 0;
|
|
2937
|
+
data[segmentOffset + _unary__edvuaz_0 | 0] = toByte(c);
|
|
2938
|
+
}
|
|
2939
|
+
var runSize = (i + segmentOffset | 0) - tail.limit_1 | 0;
|
|
2940
|
+
tail.limit_1 = tail.limit_1 + runSize | 0;
|
|
2941
|
+
this.size_1 = add(this.size_1, fromInt(runSize));
|
|
2942
|
+
} else {
|
|
2943
|
+
if (c < 2048) {
|
|
2944
|
+
var tail_0 = this.writableSegment_voedtv_k$(2);
|
|
2945
|
+
tail_0.data_1[tail_0.limit_1] = toByte(c >> 6 | 192);
|
|
2946
|
+
tail_0.data_1[tail_0.limit_1 + 1 | 0] = toByte(c & 63 | 128);
|
|
2947
|
+
tail_0.limit_1 = tail_0.limit_1 + 2 | 0;
|
|
2948
|
+
this.size_1 = add(this.size_1, 2n);
|
|
2949
|
+
i = i + 1 | 0;
|
|
2950
|
+
} else {
|
|
2951
|
+
// Inline function 'okio.internal.isHighSurrogate' call
|
|
2952
|
+
var this_2 = c;
|
|
2953
|
+
if (55296 <= this_2 ? this_2 <= 56319 : false) {
|
|
2954
|
+
var tmp;
|
|
2955
|
+
if ((i + 1 | 0) < endIndex) {
|
|
2956
|
+
// Inline function 'kotlin.code' call
|
|
2957
|
+
var this_3 = charCodeAt(string, i + 1 | 0);
|
|
2958
|
+
tmp = Char__toInt_impl_vasixd(this_3);
|
|
2959
|
+
} else {
|
|
2960
|
+
tmp = 0;
|
|
2961
|
+
}
|
|
2962
|
+
var low = tmp;
|
|
2963
|
+
// Inline function 'okio.internal.isLowSurrogate' call
|
|
2964
|
+
if (!(56320 <= low ? low <= 57343 : false)) {
|
|
2965
|
+
// Inline function 'kotlin.code' call
|
|
2966
|
+
var this_4 = _Char___init__impl__6a9atx(63);
|
|
2967
|
+
var tmp$ret$13 = Char__toInt_impl_vasixd(this_4);
|
|
2968
|
+
this.writeByte_3m2t4h_k$(tmp$ret$13);
|
|
2969
|
+
i = i + 1 | 0;
|
|
2970
|
+
} else {
|
|
2971
|
+
var codePoint = combineSurrogates(c, low);
|
|
2972
|
+
var tail_1 = this.writableSegment_voedtv_k$(4);
|
|
2973
|
+
tail_1.data_1[tail_1.limit_1] = toByte(codePoint >> 18 | 240);
|
|
2974
|
+
tail_1.data_1[tail_1.limit_1 + 1 | 0] = toByte(codePoint >> 12 & 63 | 128);
|
|
2975
|
+
tail_1.data_1[tail_1.limit_1 + 2 | 0] = toByte(codePoint >> 6 & 63 | 128);
|
|
2976
|
+
tail_1.data_1[tail_1.limit_1 + 3 | 0] = toByte(codePoint & 63 | 128);
|
|
2977
|
+
tail_1.limit_1 = tail_1.limit_1 + 4 | 0;
|
|
2978
|
+
this.size_1 = add(this.size_1, 4n);
|
|
2979
|
+
i = i + 2 | 0;
|
|
2980
|
+
}
|
|
2981
|
+
} else {
|
|
2982
|
+
// Inline function 'okio.internal.isLowSurrogate' call
|
|
2983
|
+
var this_5 = c;
|
|
2984
|
+
if (56320 <= this_5 ? this_5 <= 57343 : false) {
|
|
2985
|
+
// Inline function 'kotlin.code' call
|
|
2986
|
+
var this_6 = _Char___init__impl__6a9atx(63);
|
|
2987
|
+
var tmp$ret$15 = Char__toInt_impl_vasixd(this_6);
|
|
2988
|
+
this.writeByte_3m2t4h_k$(tmp$ret$15);
|
|
2989
|
+
i = i + 1 | 0;
|
|
2990
|
+
} else {
|
|
2991
|
+
var tail_2 = this.writableSegment_voedtv_k$(3);
|
|
2992
|
+
tail_2.data_1[tail_2.limit_1] = toByte(c >> 12 | 224);
|
|
2993
|
+
tail_2.data_1[tail_2.limit_1 + 1 | 0] = toByte(c >> 6 & 63 | 128);
|
|
2994
|
+
tail_2.data_1[tail_2.limit_1 + 2 | 0] = toByte(c & 63 | 128);
|
|
2995
|
+
tail_2.limit_1 = tail_2.limit_1 + 3 | 0;
|
|
2996
|
+
this.size_1 = add(this.size_1, 3n);
|
|
2997
|
+
i = i + 1 | 0;
|
|
2998
|
+
}
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
return this;
|
|
3004
|
+
};
|
|
3005
|
+
protoOf(Buffer).write_owzzlt_k$ = function (source, offset, byteCount) {
|
|
3006
|
+
// Inline function 'okio.internal.commonWrite' call
|
|
3007
|
+
var offset_0 = offset;
|
|
3008
|
+
checkOffsetAndCount(fromInt(source.length), fromInt(offset_0), fromInt(byteCount));
|
|
3009
|
+
var limit = offset_0 + byteCount | 0;
|
|
3010
|
+
while (offset_0 < limit) {
|
|
3011
|
+
var tail = this.writableSegment_voedtv_k$(1);
|
|
3012
|
+
var tmp0 = limit - offset_0 | 0;
|
|
3013
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
3014
|
+
var b = 8192 - tail.limit_1 | 0;
|
|
3015
|
+
var toCopy = Math.min(tmp0, b);
|
|
3016
|
+
var tmp2 = tail.data_1;
|
|
3017
|
+
var tmp4 = tail.limit_1;
|
|
3018
|
+
var tmp6 = offset_0;
|
|
3019
|
+
// Inline function 'kotlin.collections.copyInto' call
|
|
3020
|
+
var endIndex = offset_0 + toCopy | 0;
|
|
3021
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3022
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3023
|
+
var tmp = source;
|
|
3024
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3025
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3026
|
+
arrayCopy(tmp, tmp2, tmp4, tmp6, endIndex);
|
|
3027
|
+
offset_0 = offset_0 + toCopy | 0;
|
|
3028
|
+
tail.limit_1 = tail.limit_1 + toCopy | 0;
|
|
3029
|
+
}
|
|
3030
|
+
this.size_1 = add(this.size_1, fromInt(byteCount));
|
|
3031
|
+
return this;
|
|
3032
|
+
};
|
|
3033
|
+
protoOf(Buffer).writeAll_goqmgy_k$ = function (source) {
|
|
3034
|
+
// Inline function 'okio.internal.commonWriteAll' call
|
|
3035
|
+
var totalBytesRead = 0n;
|
|
3036
|
+
$l$loop: while (true) {
|
|
3037
|
+
var readCount = source.read_iuuu3k_k$(this, 8192n);
|
|
3038
|
+
if (readCount === -1n)
|
|
3039
|
+
break $l$loop;
|
|
3040
|
+
totalBytesRead = add(totalBytesRead, readCount);
|
|
3041
|
+
}
|
|
3042
|
+
return totalBytesRead;
|
|
3043
|
+
};
|
|
3044
|
+
protoOf(Buffer).writeByte_3m2t4h_k$ = function (b) {
|
|
3045
|
+
// Inline function 'okio.internal.commonWriteByte' call
|
|
3046
|
+
var tail = this.writableSegment_voedtv_k$(1);
|
|
3047
|
+
var _unary__edvuaz = tail.limit_1;
|
|
3048
|
+
tail.limit_1 = _unary__edvuaz + 1 | 0;
|
|
3049
|
+
tail.data_1[_unary__edvuaz] = toByte(b);
|
|
3050
|
+
this.size_1 = add(this.size_1, 1n);
|
|
3051
|
+
return this;
|
|
3052
|
+
};
|
|
3053
|
+
protoOf(Buffer).write_kzgu6x_k$ = function (source, byteCount) {
|
|
3054
|
+
var tmp$ret$0;
|
|
3055
|
+
$l$block: {
|
|
3056
|
+
// Inline function 'okio.internal.commonWrite' call
|
|
3057
|
+
var byteCount_0 = byteCount;
|
|
3058
|
+
// Inline function 'kotlin.require' call
|
|
3059
|
+
if (!!(source === this)) {
|
|
3060
|
+
var message = 'source == this';
|
|
3061
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3062
|
+
}
|
|
3063
|
+
checkOffsetAndCount(source.size_1, 0n, byteCount_0);
|
|
3064
|
+
while (byteCount_0 > 0n) {
|
|
3065
|
+
if (byteCount_0 < fromInt(ensureNotNull(source.head_1).limit_1 - ensureNotNull(source.head_1).pos_1 | 0)) {
|
|
3066
|
+
var tail = !(this.head_1 == null) ? ensureNotNull(this.head_1).prev_1 : null;
|
|
3067
|
+
var tmp;
|
|
3068
|
+
if (!(tail == null) && tail.owner_1) {
|
|
3069
|
+
var tmp0 = byteCount_0;
|
|
3070
|
+
// Inline function 'kotlin.Long.plus' call
|
|
3071
|
+
var other = tail.limit_1;
|
|
3072
|
+
var tmp0_0 = add(tmp0, fromInt(other));
|
|
3073
|
+
// Inline function 'kotlin.Long.minus' call
|
|
3074
|
+
var other_0 = tail.shared_1 ? 0 : tail.pos_1;
|
|
3075
|
+
tmp = subtract(tmp0_0, fromInt(other_0)) <= 8192n;
|
|
3076
|
+
} else {
|
|
3077
|
+
tmp = false;
|
|
3078
|
+
}
|
|
3079
|
+
if (tmp) {
|
|
3080
|
+
ensureNotNull(source.head_1).writeTo_yxwz0w_k$(tail, convertToInt(byteCount_0));
|
|
3081
|
+
source.size_1 = subtract(source.size_1, byteCount_0);
|
|
3082
|
+
this.size_1 = add(this.size_1, byteCount_0);
|
|
3083
|
+
tmp$ret$0 = Unit_instance;
|
|
3084
|
+
break $l$block;
|
|
3085
|
+
} else {
|
|
3086
|
+
source.head_1 = ensureNotNull(source.head_1).split_cz4av2_k$(convertToInt(byteCount_0));
|
|
3087
|
+
}
|
|
3088
|
+
}
|
|
3089
|
+
var segmentToMove = source.head_1;
|
|
3090
|
+
var movedByteCount = fromInt(ensureNotNull(segmentToMove).limit_1 - segmentToMove.pos_1 | 0);
|
|
3091
|
+
source.head_1 = segmentToMove.pop_2dsh_k$();
|
|
3092
|
+
if (this.head_1 == null) {
|
|
3093
|
+
this.head_1 = segmentToMove;
|
|
3094
|
+
segmentToMove.prev_1 = segmentToMove;
|
|
3095
|
+
segmentToMove.next_1 = segmentToMove.prev_1;
|
|
3096
|
+
} else {
|
|
3097
|
+
var tail_0 = ensureNotNull(this.head_1).prev_1;
|
|
3098
|
+
tail_0 = ensureNotNull(tail_0).push_wd62e0_k$(segmentToMove);
|
|
3099
|
+
tail_0.compact_dawvql_k$();
|
|
3100
|
+
}
|
|
3101
|
+
source.size_1 = subtract(source.size_1, movedByteCount);
|
|
3102
|
+
this.size_1 = add(this.size_1, movedByteCount);
|
|
3103
|
+
byteCount_0 = subtract(byteCount_0, movedByteCount);
|
|
3104
|
+
}
|
|
3105
|
+
tmp$ret$0 = Unit_instance;
|
|
3106
|
+
}
|
|
3107
|
+
return tmp$ret$0;
|
|
3108
|
+
};
|
|
3109
|
+
protoOf(Buffer).read_iuuu3k_k$ = function (sink, byteCount) {
|
|
3110
|
+
var tmp$ret$0;
|
|
3111
|
+
$l$block: {
|
|
3112
|
+
// Inline function 'okio.internal.commonRead' call
|
|
3113
|
+
var byteCount_0 = byteCount;
|
|
3114
|
+
// Inline function 'kotlin.require' call
|
|
3115
|
+
if (!(byteCount_0 >= 0n)) {
|
|
3116
|
+
var message = 'byteCount < 0: ' + byteCount_0.toString();
|
|
3117
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3118
|
+
}
|
|
3119
|
+
if (this.size_1 === 0n) {
|
|
3120
|
+
tmp$ret$0 = -1n;
|
|
3121
|
+
break $l$block;
|
|
3122
|
+
}
|
|
3123
|
+
if (byteCount_0 > this.size_1)
|
|
3124
|
+
byteCount_0 = this.size_1;
|
|
3125
|
+
sink.write_kzgu6x_k$(this, byteCount_0);
|
|
3126
|
+
tmp$ret$0 = byteCount_0;
|
|
3127
|
+
}
|
|
3128
|
+
return tmp$ret$0;
|
|
3129
|
+
};
|
|
3130
|
+
protoOf(Buffer).indexOfElement_1qdoco_k$ = function (targetBytes) {
|
|
3131
|
+
return this.indexOfElement_nuae9o_k$(targetBytes, 0n);
|
|
3132
|
+
};
|
|
3133
|
+
protoOf(Buffer).indexOfElement_nuae9o_k$ = function (targetBytes, fromIndex) {
|
|
3134
|
+
var tmp$ret$0;
|
|
3135
|
+
$l$block_12: {
|
|
3136
|
+
// Inline function 'okio.internal.commonIndexOfElement' call
|
|
3137
|
+
var fromIndex_0 = fromIndex;
|
|
3138
|
+
// Inline function 'kotlin.require' call
|
|
3139
|
+
if (!(fromIndex_0 >= 0n)) {
|
|
3140
|
+
var message = 'fromIndex < 0: ' + fromIndex_0.toString();
|
|
3141
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3142
|
+
}
|
|
3143
|
+
var tmp2 = fromIndex_0;
|
|
3144
|
+
$l$block_13: {
|
|
3145
|
+
// Inline function 'okio.internal.seek' call
|
|
3146
|
+
var tmp0_elvis_lhs = this.head_1;
|
|
3147
|
+
var tmp;
|
|
3148
|
+
if (tmp0_elvis_lhs == null) {
|
|
3149
|
+
var tmp_0;
|
|
3150
|
+
if (null == null) {
|
|
3151
|
+
tmp$ret$0 = -1n;
|
|
3152
|
+
break $l$block_12;
|
|
3153
|
+
} else {
|
|
3154
|
+
tmp_0 = null;
|
|
3155
|
+
}
|
|
3156
|
+
var s = tmp_0;
|
|
3157
|
+
var offset = -1n;
|
|
3158
|
+
if (targetBytes.get_size_woubt6_k$() === 2) {
|
|
3159
|
+
var b0 = targetBytes.get_c1px32_k$(0);
|
|
3160
|
+
var b1 = targetBytes.get_c1px32_k$(1);
|
|
3161
|
+
while (offset < this.size_1) {
|
|
3162
|
+
var data = s.data_1;
|
|
3163
|
+
var pos = convertToInt(subtract(add(numberToLong(s.pos_1), fromIndex_0), offset));
|
|
3164
|
+
var limit = s.limit_1;
|
|
3165
|
+
while (pos < limit) {
|
|
3166
|
+
var b = data[pos];
|
|
3167
|
+
if (b === b0 || b === b1) {
|
|
3168
|
+
tmp$ret$0 = add(numberToLong(pos - s.pos_1 | 0), offset);
|
|
3169
|
+
break $l$block_12;
|
|
3170
|
+
}
|
|
3171
|
+
pos = pos + 1 | 0;
|
|
3172
|
+
}
|
|
3173
|
+
offset = add(offset, fromInt(s.limit_1 - s.pos_1 | 0));
|
|
3174
|
+
fromIndex_0 = offset;
|
|
3175
|
+
s = ensureNotNull(s.next_1);
|
|
3176
|
+
}
|
|
3177
|
+
} else {
|
|
3178
|
+
var targetByteArray = targetBytes.internalArray_nlkee4_k$();
|
|
3179
|
+
while (offset < this.size_1) {
|
|
3180
|
+
var data_0 = s.data_1;
|
|
3181
|
+
var pos_0 = convertToInt(subtract(add(numberToLong(s.pos_1), fromIndex_0), offset));
|
|
3182
|
+
var limit_0 = s.limit_1;
|
|
3183
|
+
while (pos_0 < limit_0) {
|
|
3184
|
+
var b_0 = data_0[pos_0];
|
|
3185
|
+
var inductionVariable = 0;
|
|
3186
|
+
var last = targetByteArray.length;
|
|
3187
|
+
while (inductionVariable < last) {
|
|
3188
|
+
var t = targetByteArray[inductionVariable];
|
|
3189
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3190
|
+
if (b_0 === t) {
|
|
3191
|
+
tmp$ret$0 = add(numberToLong(pos_0 - s.pos_1 | 0), offset);
|
|
3192
|
+
break $l$block_12;
|
|
3193
|
+
}
|
|
3194
|
+
}
|
|
3195
|
+
pos_0 = pos_0 + 1 | 0;
|
|
3196
|
+
}
|
|
3197
|
+
offset = add(offset, fromInt(s.limit_1 - s.pos_1 | 0));
|
|
3198
|
+
fromIndex_0 = offset;
|
|
3199
|
+
s = ensureNotNull(s.next_1);
|
|
3200
|
+
}
|
|
3201
|
+
}
|
|
3202
|
+
tmp$ret$0 = -1n;
|
|
3203
|
+
break $l$block_12;
|
|
3204
|
+
} else {
|
|
3205
|
+
tmp = tmp0_elvis_lhs;
|
|
3206
|
+
}
|
|
3207
|
+
var s_0 = tmp;
|
|
3208
|
+
if (subtract(this.size_1, tmp2) < tmp2) {
|
|
3209
|
+
var offset_0 = this.size_1;
|
|
3210
|
+
while (offset_0 > tmp2) {
|
|
3211
|
+
s_0 = ensureNotNull(s_0.prev_1);
|
|
3212
|
+
offset_0 = subtract(offset_0, fromInt(s_0.limit_1 - s_0.pos_1 | 0));
|
|
3213
|
+
}
|
|
3214
|
+
var tmp0 = s_0;
|
|
3215
|
+
var offset_1 = offset_0;
|
|
3216
|
+
var tmp_1;
|
|
3217
|
+
if (tmp0 == null) {
|
|
3218
|
+
tmp$ret$0 = -1n;
|
|
3219
|
+
break $l$block_12;
|
|
3220
|
+
} else {
|
|
3221
|
+
tmp_1 = tmp0;
|
|
3222
|
+
}
|
|
3223
|
+
var s_1 = tmp_1;
|
|
3224
|
+
var offset_2 = offset_1;
|
|
3225
|
+
if (targetBytes.get_size_woubt6_k$() === 2) {
|
|
3226
|
+
var b0_0 = targetBytes.get_c1px32_k$(0);
|
|
3227
|
+
var b1_0 = targetBytes.get_c1px32_k$(1);
|
|
3228
|
+
while (offset_2 < this.size_1) {
|
|
3229
|
+
var data_1 = s_1.data_1;
|
|
3230
|
+
var pos_1 = convertToInt(subtract(add(numberToLong(s_1.pos_1), fromIndex_0), offset_2));
|
|
3231
|
+
var limit_1 = s_1.limit_1;
|
|
3232
|
+
while (pos_1 < limit_1) {
|
|
3233
|
+
var b_1 = data_1[pos_1];
|
|
3234
|
+
if (b_1 === b0_0 || b_1 === b1_0) {
|
|
3235
|
+
tmp$ret$0 = add(numberToLong(pos_1 - s_1.pos_1 | 0), offset_2);
|
|
3236
|
+
break $l$block_12;
|
|
3237
|
+
}
|
|
3238
|
+
pos_1 = pos_1 + 1 | 0;
|
|
3239
|
+
}
|
|
3240
|
+
offset_2 = add(offset_2, fromInt(s_1.limit_1 - s_1.pos_1 | 0));
|
|
3241
|
+
fromIndex_0 = offset_2;
|
|
3242
|
+
s_1 = ensureNotNull(s_1.next_1);
|
|
3243
|
+
}
|
|
3244
|
+
} else {
|
|
3245
|
+
var targetByteArray_0 = targetBytes.internalArray_nlkee4_k$();
|
|
3246
|
+
while (offset_2 < this.size_1) {
|
|
3247
|
+
var data_2 = s_1.data_1;
|
|
3248
|
+
var pos_2 = convertToInt(subtract(add(numberToLong(s_1.pos_1), fromIndex_0), offset_2));
|
|
3249
|
+
var limit_2 = s_1.limit_1;
|
|
3250
|
+
while (pos_2 < limit_2) {
|
|
3251
|
+
var b_2 = data_2[pos_2];
|
|
3252
|
+
var inductionVariable_0 = 0;
|
|
3253
|
+
var last_0 = targetByteArray_0.length;
|
|
3254
|
+
while (inductionVariable_0 < last_0) {
|
|
3255
|
+
var t_0 = targetByteArray_0[inductionVariable_0];
|
|
3256
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
3257
|
+
if (b_2 === t_0) {
|
|
3258
|
+
tmp$ret$0 = add(numberToLong(pos_2 - s_1.pos_1 | 0), offset_2);
|
|
3259
|
+
break $l$block_12;
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
pos_2 = pos_2 + 1 | 0;
|
|
3263
|
+
}
|
|
3264
|
+
offset_2 = add(offset_2, fromInt(s_1.limit_1 - s_1.pos_1 | 0));
|
|
3265
|
+
fromIndex_0 = offset_2;
|
|
3266
|
+
s_1 = ensureNotNull(s_1.next_1);
|
|
3267
|
+
}
|
|
3268
|
+
}
|
|
3269
|
+
tmp$ret$0 = -1n;
|
|
3270
|
+
break $l$block_12;
|
|
3271
|
+
} else {
|
|
3272
|
+
var offset_3 = 0n;
|
|
3273
|
+
$l$loop: while (true) {
|
|
3274
|
+
var tmp0_0 = offset_3;
|
|
3275
|
+
// Inline function 'kotlin.Long.plus' call
|
|
3276
|
+
var other = s_0.limit_1 - s_0.pos_1 | 0;
|
|
3277
|
+
var nextOffset = add(tmp0_0, fromInt(other));
|
|
3278
|
+
if (nextOffset > tmp2)
|
|
3279
|
+
break $l$loop;
|
|
3280
|
+
s_0 = ensureNotNull(s_0.next_1);
|
|
3281
|
+
offset_3 = nextOffset;
|
|
3282
|
+
}
|
|
3283
|
+
var tmp0_1 = s_0;
|
|
3284
|
+
var offset_4 = offset_3;
|
|
3285
|
+
var tmp_2;
|
|
3286
|
+
if (tmp0_1 == null) {
|
|
3287
|
+
tmp$ret$0 = -1n;
|
|
3288
|
+
break $l$block_12;
|
|
3289
|
+
} else {
|
|
3290
|
+
tmp_2 = tmp0_1;
|
|
3291
|
+
}
|
|
3292
|
+
var s_2 = tmp_2;
|
|
3293
|
+
var offset_5 = offset_4;
|
|
3294
|
+
if (targetBytes.get_size_woubt6_k$() === 2) {
|
|
3295
|
+
var b0_1 = targetBytes.get_c1px32_k$(0);
|
|
3296
|
+
var b1_1 = targetBytes.get_c1px32_k$(1);
|
|
3297
|
+
while (offset_5 < this.size_1) {
|
|
3298
|
+
var data_3 = s_2.data_1;
|
|
3299
|
+
var pos_3 = convertToInt(subtract(add(numberToLong(s_2.pos_1), fromIndex_0), offset_5));
|
|
3300
|
+
var limit_3 = s_2.limit_1;
|
|
3301
|
+
while (pos_3 < limit_3) {
|
|
3302
|
+
var b_3 = data_3[pos_3];
|
|
3303
|
+
if (b_3 === b0_1 || b_3 === b1_1) {
|
|
3304
|
+
tmp$ret$0 = add(numberToLong(pos_3 - s_2.pos_1 | 0), offset_5);
|
|
3305
|
+
break $l$block_12;
|
|
3306
|
+
}
|
|
3307
|
+
pos_3 = pos_3 + 1 | 0;
|
|
3308
|
+
}
|
|
3309
|
+
offset_5 = add(offset_5, fromInt(s_2.limit_1 - s_2.pos_1 | 0));
|
|
3310
|
+
fromIndex_0 = offset_5;
|
|
3311
|
+
s_2 = ensureNotNull(s_2.next_1);
|
|
3312
|
+
}
|
|
3313
|
+
} else {
|
|
3314
|
+
var targetByteArray_1 = targetBytes.internalArray_nlkee4_k$();
|
|
3315
|
+
while (offset_5 < this.size_1) {
|
|
3316
|
+
var data_4 = s_2.data_1;
|
|
3317
|
+
var pos_4 = convertToInt(subtract(add(numberToLong(s_2.pos_1), fromIndex_0), offset_5));
|
|
3318
|
+
var limit_4 = s_2.limit_1;
|
|
3319
|
+
while (pos_4 < limit_4) {
|
|
3320
|
+
var b_4 = data_4[pos_4];
|
|
3321
|
+
var inductionVariable_1 = 0;
|
|
3322
|
+
var last_1 = targetByteArray_1.length;
|
|
3323
|
+
while (inductionVariable_1 < last_1) {
|
|
3324
|
+
var t_1 = targetByteArray_1[inductionVariable_1];
|
|
3325
|
+
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
3326
|
+
if (b_4 === t_1) {
|
|
3327
|
+
tmp$ret$0 = add(numberToLong(pos_4 - s_2.pos_1 | 0), offset_5);
|
|
3328
|
+
break $l$block_12;
|
|
3329
|
+
}
|
|
3330
|
+
}
|
|
3331
|
+
pos_4 = pos_4 + 1 | 0;
|
|
3332
|
+
}
|
|
3333
|
+
offset_5 = add(offset_5, fromInt(s_2.limit_1 - s_2.pos_1 | 0));
|
|
3334
|
+
fromIndex_0 = offset_5;
|
|
3335
|
+
s_2 = ensureNotNull(s_2.next_1);
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
tmp$ret$0 = -1n;
|
|
3339
|
+
break $l$block_12;
|
|
3340
|
+
}
|
|
3341
|
+
}
|
|
3342
|
+
}
|
|
3343
|
+
return tmp$ret$0;
|
|
3344
|
+
};
|
|
3345
|
+
protoOf(Buffer).rangeEquals_gz1igj_k$ = function (offset, bytes) {
|
|
3346
|
+
return this.rangeEquals_bxc2od_k$(offset, bytes, 0, bytes.get_size_woubt6_k$());
|
|
3347
|
+
};
|
|
3348
|
+
protoOf(Buffer).rangeEquals_bxc2od_k$ = function (offset, bytes, bytesOffset, byteCount) {
|
|
3349
|
+
var tmp$ret$0;
|
|
3350
|
+
$l$block_2: {
|
|
3351
|
+
// Inline function 'okio.internal.commonRangeEquals' call
|
|
3352
|
+
if (byteCount < 0) {
|
|
3353
|
+
tmp$ret$0 = false;
|
|
3354
|
+
break $l$block_2;
|
|
3355
|
+
}
|
|
3356
|
+
var tmp;
|
|
3357
|
+
if (offset < 0n) {
|
|
3358
|
+
tmp = true;
|
|
3359
|
+
} else {
|
|
3360
|
+
// Inline function 'kotlin.Long.plus' call
|
|
3361
|
+
tmp = add(offset, fromInt(byteCount)) > this.size_1;
|
|
3362
|
+
}
|
|
3363
|
+
if (tmp) {
|
|
3364
|
+
tmp$ret$0 = false;
|
|
3365
|
+
break $l$block_2;
|
|
3366
|
+
}
|
|
3367
|
+
if (bytesOffset < 0 || (bytesOffset + byteCount | 0) > bytes.get_size_woubt6_k$()) {
|
|
3368
|
+
tmp$ret$0 = false;
|
|
3369
|
+
break $l$block_2;
|
|
3370
|
+
}
|
|
3371
|
+
if (byteCount === 0) {
|
|
3372
|
+
tmp$ret$0 = true;
|
|
3373
|
+
break $l$block_2;
|
|
3374
|
+
}
|
|
3375
|
+
// Inline function 'kotlin.Long.plus' call
|
|
3376
|
+
var tmp0_toIndex = add(offset, fromInt(1));
|
|
3377
|
+
tmp$ret$0 = !(commonIndexOf(this, bytes, offset, tmp0_toIndex, bytesOffset, byteCount) === -1n);
|
|
3378
|
+
}
|
|
3379
|
+
return tmp$ret$0;
|
|
3380
|
+
};
|
|
3381
|
+
protoOf(Buffer).flush_shahbo_k$ = function () {
|
|
3382
|
+
return Unit_instance;
|
|
3383
|
+
};
|
|
3384
|
+
protoOf(Buffer).close_yn9xrc_k$ = function () {
|
|
3385
|
+
return Unit_instance;
|
|
3386
|
+
};
|
|
3387
|
+
protoOf(Buffer).equals = function (other) {
|
|
3388
|
+
var tmp$ret$0;
|
|
3389
|
+
$l$block_3: {
|
|
3390
|
+
// Inline function 'okio.internal.commonEquals' call
|
|
3391
|
+
if (this === other) {
|
|
3392
|
+
tmp$ret$0 = true;
|
|
3393
|
+
break $l$block_3;
|
|
3394
|
+
}
|
|
3395
|
+
if (!(other instanceof Buffer)) {
|
|
3396
|
+
tmp$ret$0 = false;
|
|
3397
|
+
break $l$block_3;
|
|
3398
|
+
}
|
|
3399
|
+
if (!(this.size_1 === other.size_1)) {
|
|
3400
|
+
tmp$ret$0 = false;
|
|
3401
|
+
break $l$block_3;
|
|
3402
|
+
}
|
|
3403
|
+
if (this.size_1 === 0n) {
|
|
3404
|
+
tmp$ret$0 = true;
|
|
3405
|
+
break $l$block_3;
|
|
3406
|
+
}
|
|
3407
|
+
var sa = ensureNotNull(this.head_1);
|
|
3408
|
+
var sb = ensureNotNull(other.head_1);
|
|
3409
|
+
var posA = sa.pos_1;
|
|
3410
|
+
var posB = sb.pos_1;
|
|
3411
|
+
var pos = 0n;
|
|
3412
|
+
var count;
|
|
3413
|
+
while (pos < this.size_1) {
|
|
3414
|
+
var tmp0 = sa.limit_1 - posA | 0;
|
|
3415
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
3416
|
+
var b = sb.limit_1 - posB | 0;
|
|
3417
|
+
var tmp$ret$1 = Math.min(tmp0, b);
|
|
3418
|
+
count = fromInt(tmp$ret$1);
|
|
3419
|
+
var inductionVariable = 0n;
|
|
3420
|
+
if (inductionVariable < count)
|
|
3421
|
+
do {
|
|
3422
|
+
var i = inductionVariable;
|
|
3423
|
+
inductionVariable = add(inductionVariable, 1n);
|
|
3424
|
+
var tmp = sa.data_1;
|
|
3425
|
+
var _unary__edvuaz = posA;
|
|
3426
|
+
posA = _unary__edvuaz + 1 | 0;
|
|
3427
|
+
var tmp_0 = tmp[_unary__edvuaz];
|
|
3428
|
+
var tmp_1 = sb.data_1;
|
|
3429
|
+
var _unary__edvuaz_0 = posB;
|
|
3430
|
+
posB = _unary__edvuaz_0 + 1 | 0;
|
|
3431
|
+
if (!(tmp_0 === tmp_1[_unary__edvuaz_0])) {
|
|
3432
|
+
tmp$ret$0 = false;
|
|
3433
|
+
break $l$block_3;
|
|
3434
|
+
}
|
|
3435
|
+
}
|
|
3436
|
+
while (inductionVariable < count);
|
|
3437
|
+
if (posA === sa.limit_1) {
|
|
3438
|
+
sa = ensureNotNull(sa.next_1);
|
|
3439
|
+
posA = sa.pos_1;
|
|
3440
|
+
}
|
|
3441
|
+
if (posB === sb.limit_1) {
|
|
3442
|
+
sb = ensureNotNull(sb.next_1);
|
|
3443
|
+
posB = sb.pos_1;
|
|
3444
|
+
}
|
|
3445
|
+
pos = add(pos, count);
|
|
3446
|
+
}
|
|
3447
|
+
tmp$ret$0 = true;
|
|
3448
|
+
}
|
|
3449
|
+
return tmp$ret$0;
|
|
3450
|
+
};
|
|
3451
|
+
protoOf(Buffer).hashCode = function () {
|
|
3452
|
+
var tmp$ret$0;
|
|
3453
|
+
$l$block: {
|
|
3454
|
+
// Inline function 'okio.internal.commonHashCode' call
|
|
3455
|
+
var tmp0_elvis_lhs = this.head_1;
|
|
3456
|
+
var tmp;
|
|
3457
|
+
if (tmp0_elvis_lhs == null) {
|
|
3458
|
+
tmp$ret$0 = 0;
|
|
3459
|
+
break $l$block;
|
|
3460
|
+
} else {
|
|
3461
|
+
tmp = tmp0_elvis_lhs;
|
|
3462
|
+
}
|
|
3463
|
+
var s = tmp;
|
|
3464
|
+
var result = 1;
|
|
3465
|
+
do {
|
|
3466
|
+
var pos = s.pos_1;
|
|
3467
|
+
var limit = s.limit_1;
|
|
3468
|
+
while (pos < limit) {
|
|
3469
|
+
result = imul(31, result) + s.data_1[pos] | 0;
|
|
3470
|
+
pos = pos + 1 | 0;
|
|
3471
|
+
}
|
|
3472
|
+
s = ensureNotNull(s.next_1);
|
|
3473
|
+
}
|
|
3474
|
+
while (!(s === this.head_1));
|
|
3475
|
+
tmp$ret$0 = result;
|
|
3476
|
+
}
|
|
3477
|
+
return tmp$ret$0;
|
|
3478
|
+
};
|
|
3479
|
+
protoOf(Buffer).toString = function () {
|
|
3480
|
+
return this.snapshot_4plubo_k$().toString();
|
|
3481
|
+
};
|
|
3482
|
+
protoOf(Buffer).snapshot_4plubo_k$ = function () {
|
|
3483
|
+
// Inline function 'okio.internal.commonSnapshot' call
|
|
3484
|
+
// Inline function 'kotlin.check' call
|
|
3485
|
+
if (!(this.size_1 <= 2147483647n)) {
|
|
3486
|
+
var message = 'size > Int.MAX_VALUE: ' + this.size_1.toString();
|
|
3487
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
3488
|
+
}
|
|
3489
|
+
return this.snapshot_hwfoq4_k$(convertToInt(this.size_1));
|
|
3490
|
+
};
|
|
3491
|
+
protoOf(Buffer).snapshot_hwfoq4_k$ = function (byteCount) {
|
|
3492
|
+
var tmp$ret$0;
|
|
3493
|
+
$l$block: {
|
|
3494
|
+
// Inline function 'okio.internal.commonSnapshot' call
|
|
3495
|
+
if (byteCount === 0) {
|
|
3496
|
+
tmp$ret$0 = Companion_getInstance_1().EMPTY_1;
|
|
3497
|
+
break $l$block;
|
|
3498
|
+
}
|
|
3499
|
+
checkOffsetAndCount(this.size_1, 0n, fromInt(byteCount));
|
|
3500
|
+
var offset = 0;
|
|
3501
|
+
var segmentCount = 0;
|
|
3502
|
+
var s = this.head_1;
|
|
3503
|
+
while (offset < byteCount) {
|
|
3504
|
+
if (ensureNotNull(s).limit_1 === s.pos_1) {
|
|
3505
|
+
throw AssertionError_init_$Create$('s.limit == s.pos');
|
|
3506
|
+
}
|
|
3507
|
+
offset = offset + (s.limit_1 - s.pos_1 | 0) | 0;
|
|
3508
|
+
segmentCount = segmentCount + 1 | 0;
|
|
3509
|
+
s = s.next_1;
|
|
3510
|
+
}
|
|
3511
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
3512
|
+
var size = segmentCount;
|
|
3513
|
+
var segments = Array(size);
|
|
3514
|
+
var directory = new Int32Array(imul(segmentCount, 2));
|
|
3515
|
+
offset = 0;
|
|
3516
|
+
segmentCount = 0;
|
|
3517
|
+
s = this.head_1;
|
|
3518
|
+
while (offset < byteCount) {
|
|
3519
|
+
segments[segmentCount] = ensureNotNull(s).data_1;
|
|
3520
|
+
offset = offset + (s.limit_1 - s.pos_1 | 0) | 0;
|
|
3521
|
+
var tmp = segmentCount;
|
|
3522
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
3523
|
+
var a = offset;
|
|
3524
|
+
directory[tmp] = Math.min(a, byteCount);
|
|
3525
|
+
directory[segmentCount + segments.length | 0] = s.pos_1;
|
|
3526
|
+
s.shared_1 = true;
|
|
3527
|
+
segmentCount = segmentCount + 1 | 0;
|
|
3528
|
+
s = s.next_1;
|
|
3529
|
+
}
|
|
3530
|
+
tmp$ret$0 = new SegmentedByteString(isArray(segments) ? segments : THROW_CCE(), directory);
|
|
3531
|
+
}
|
|
3532
|
+
return tmp$ret$0;
|
|
3533
|
+
};
|
|
3534
|
+
function IOException_init_$Init$(message, $this) {
|
|
3535
|
+
IOException.call($this, message, null);
|
|
3536
|
+
return $this;
|
|
3537
|
+
}
|
|
3538
|
+
function IOException_init_$Create$(message) {
|
|
3539
|
+
var tmp = IOException_init_$Init$(message, objectCreate(protoOf(IOException)));
|
|
3540
|
+
captureStack(tmp, IOException_init_$Create$);
|
|
3541
|
+
return tmp;
|
|
3542
|
+
}
|
|
3543
|
+
function IOException_init_$Init$_0($this) {
|
|
3544
|
+
IOException.call($this, null, null);
|
|
3545
|
+
return $this;
|
|
3546
|
+
}
|
|
3547
|
+
function IOException_init_$Create$_0() {
|
|
3548
|
+
var tmp = IOException_init_$Init$_0(objectCreate(protoOf(IOException)));
|
|
3549
|
+
captureStack(tmp, IOException_init_$Create$_0);
|
|
3550
|
+
return tmp;
|
|
3551
|
+
}
|
|
3552
|
+
function IOException(message, cause) {
|
|
3553
|
+
Exception_init_$Init$(message, cause, this);
|
|
3554
|
+
captureStack(this, IOException);
|
|
3555
|
+
}
|
|
3556
|
+
function FileNotFoundException(message) {
|
|
3557
|
+
IOException_init_$Init$(message, this);
|
|
3558
|
+
captureStack(this, FileNotFoundException);
|
|
3559
|
+
}
|
|
3560
|
+
function ArrayIndexOutOfBoundsException(message) {
|
|
3561
|
+
IndexOutOfBoundsException_init_$Init$(message, this);
|
|
3562
|
+
captureStack(this, ArrayIndexOutOfBoundsException);
|
|
3563
|
+
}
|
|
3564
|
+
function asUtf8ToByteArray(_this__u8e3s4) {
|
|
3565
|
+
return commonAsUtf8ToByteArray(_this__u8e3s4);
|
|
3566
|
+
}
|
|
3567
|
+
function EOFException_init_$Init$($this) {
|
|
3568
|
+
EOFException.call($this, null);
|
|
3569
|
+
return $this;
|
|
3570
|
+
}
|
|
3571
|
+
function EOFException_init_$Create$() {
|
|
3572
|
+
var tmp = EOFException_init_$Init$(objectCreate(protoOf(EOFException)));
|
|
3573
|
+
captureStack(tmp, EOFException_init_$Create$);
|
|
3574
|
+
return tmp;
|
|
3575
|
+
}
|
|
3576
|
+
function EOFException(message) {
|
|
3577
|
+
IOException_init_$Init$(message, this);
|
|
3578
|
+
captureStack(this, EOFException);
|
|
3579
|
+
}
|
|
3580
|
+
function toUtf8String(_this__u8e3s4) {
|
|
3581
|
+
return commonToUtf8String(_this__u8e3s4);
|
|
3582
|
+
}
|
|
3583
|
+
function Companion_2() {
|
|
3584
|
+
Companion_instance_2 = this;
|
|
3585
|
+
this.DIRECTORY_SEPARATOR_1 = get_PLATFORM_DIRECTORY_SEPARATOR();
|
|
3586
|
+
}
|
|
3587
|
+
protoOf(Companion_2).toPath_oj8tzb_k$ = function (_this__u8e3s4, normalize) {
|
|
3588
|
+
return commonToPath(_this__u8e3s4, normalize);
|
|
3589
|
+
};
|
|
3590
|
+
protoOf(Companion_2).toPath$default_vs59ry_k$ = function (_this__u8e3s4, normalize, $super) {
|
|
3591
|
+
normalize = normalize === VOID ? false : normalize;
|
|
3592
|
+
return $super === VOID ? this.toPath_oj8tzb_k$(_this__u8e3s4, normalize) : $super.toPath_oj8tzb_k$.call(this, _this__u8e3s4, normalize);
|
|
3593
|
+
};
|
|
3594
|
+
var Companion_instance_2;
|
|
3595
|
+
function Companion_getInstance_2() {
|
|
3596
|
+
if (Companion_instance_2 == null)
|
|
3597
|
+
new Companion_2();
|
|
3598
|
+
return Companion_instance_2;
|
|
3599
|
+
}
|
|
3600
|
+
function Path(bytes) {
|
|
3601
|
+
Companion_getInstance_2();
|
|
3602
|
+
this.bytes_1 = bytes;
|
|
3603
|
+
}
|
|
3604
|
+
protoOf(Path).compareTo_cw708f_k$ = function (other) {
|
|
3605
|
+
// Inline function 'okio.internal.commonCompareTo' call
|
|
3606
|
+
return this.bytes_1.compareTo_5b1exn_k$(other.bytes_1);
|
|
3607
|
+
};
|
|
3608
|
+
protoOf(Path).compareTo_hpufkf_k$ = function (other) {
|
|
3609
|
+
return this.compareTo_cw708f_k$(other instanceof Path ? other : THROW_CCE());
|
|
3610
|
+
};
|
|
3611
|
+
protoOf(Path).equals = function (other) {
|
|
3612
|
+
// Inline function 'okio.internal.commonEquals' call
|
|
3613
|
+
var tmp;
|
|
3614
|
+
if (other instanceof Path) {
|
|
3615
|
+
tmp = other.bytes_1.equals(this.bytes_1);
|
|
3616
|
+
} else {
|
|
3617
|
+
tmp = false;
|
|
3618
|
+
}
|
|
3619
|
+
return tmp;
|
|
3620
|
+
};
|
|
3621
|
+
protoOf(Path).hashCode = function () {
|
|
3622
|
+
// Inline function 'okio.internal.commonHashCode' call
|
|
3623
|
+
return this.bytes_1.hashCode();
|
|
3624
|
+
};
|
|
3625
|
+
protoOf(Path).toString = function () {
|
|
3626
|
+
// Inline function 'okio.internal.commonToString' call
|
|
3627
|
+
return this.bytes_1.utf8_255yp_k$();
|
|
3628
|
+
};
|
|
3629
|
+
function RealBufferedSink(sink) {
|
|
3630
|
+
this.sink_1 = sink;
|
|
3631
|
+
this.closed_1 = false;
|
|
3632
|
+
this.buffer_1 = new Buffer();
|
|
3633
|
+
}
|
|
3634
|
+
protoOf(RealBufferedSink).write_kzgu6x_k$ = function (source, byteCount) {
|
|
3635
|
+
// Inline function 'okio.internal.commonWrite' call
|
|
3636
|
+
// Inline function 'kotlin.check' call
|
|
3637
|
+
if (!!this.closed_1) {
|
|
3638
|
+
var message = 'closed';
|
|
3639
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
3640
|
+
}
|
|
3641
|
+
this.buffer_1.write_kzgu6x_k$(source, byteCount);
|
|
3642
|
+
this.emitCompleteSegments_5yum7g_k$();
|
|
3643
|
+
return Unit_instance;
|
|
3644
|
+
};
|
|
3645
|
+
protoOf(RealBufferedSink).writeUtf8_9rv3au_k$ = function (string) {
|
|
3646
|
+
// Inline function 'okio.internal.commonWriteUtf8' call
|
|
3647
|
+
// Inline function 'kotlin.check' call
|
|
3648
|
+
if (!!this.closed_1) {
|
|
3649
|
+
var message = 'closed';
|
|
3650
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
3651
|
+
}
|
|
3652
|
+
this.buffer_1.writeUtf8_9rv3au_k$(string);
|
|
3653
|
+
return this.emitCompleteSegments_5yum7g_k$();
|
|
3654
|
+
};
|
|
3655
|
+
protoOf(RealBufferedSink).emitCompleteSegments_5yum7g_k$ = function () {
|
|
3656
|
+
// Inline function 'okio.internal.commonEmitCompleteSegments' call
|
|
3657
|
+
// Inline function 'kotlin.check' call
|
|
3658
|
+
if (!!this.closed_1) {
|
|
3659
|
+
var message = 'closed';
|
|
3660
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
3661
|
+
}
|
|
3662
|
+
var byteCount = this.buffer_1.completeSegmentByteCount_8y8ucz_k$();
|
|
3663
|
+
if (byteCount > 0n) {
|
|
3664
|
+
this.sink_1.write_kzgu6x_k$(this.buffer_1, byteCount);
|
|
3665
|
+
}
|
|
3666
|
+
return this;
|
|
3667
|
+
};
|
|
3668
|
+
protoOf(RealBufferedSink).flush_shahbo_k$ = function () {
|
|
3669
|
+
// Inline function 'okio.internal.commonFlush' call
|
|
3670
|
+
// Inline function 'kotlin.check' call
|
|
3671
|
+
if (!!this.closed_1) {
|
|
3672
|
+
var message = 'closed';
|
|
3673
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
3674
|
+
}
|
|
3675
|
+
if (this.buffer_1.size_1 > 0n) {
|
|
3676
|
+
this.sink_1.write_kzgu6x_k$(this.buffer_1, this.buffer_1.size_1);
|
|
3677
|
+
}
|
|
3678
|
+
this.sink_1.flush_shahbo_k$();
|
|
3679
|
+
return Unit_instance;
|
|
3680
|
+
};
|
|
3681
|
+
protoOf(RealBufferedSink).close_yn9xrc_k$ = function () {
|
|
3682
|
+
var tmp$ret$0;
|
|
3683
|
+
$l$block: {
|
|
3684
|
+
// Inline function 'okio.internal.commonClose' call
|
|
3685
|
+
if (this.closed_1) {
|
|
3686
|
+
tmp$ret$0 = Unit_instance;
|
|
3687
|
+
break $l$block;
|
|
3688
|
+
}
|
|
3689
|
+
var thrown = null;
|
|
3690
|
+
try {
|
|
3691
|
+
if (this.buffer_1.size_1 > 0n) {
|
|
3692
|
+
this.sink_1.write_kzgu6x_k$(this.buffer_1, this.buffer_1.size_1);
|
|
3693
|
+
}
|
|
3694
|
+
} catch ($p) {
|
|
3695
|
+
if ($p instanceof Error) {
|
|
3696
|
+
var e = $p;
|
|
3697
|
+
thrown = e;
|
|
3698
|
+
} else {
|
|
3699
|
+
throw $p;
|
|
3700
|
+
}
|
|
3701
|
+
}
|
|
3702
|
+
try {
|
|
3703
|
+
this.sink_1.close_yn9xrc_k$();
|
|
3704
|
+
} catch ($p_0) {
|
|
3705
|
+
if ($p_0 instanceof Error) {
|
|
3706
|
+
var e_0 = $p_0;
|
|
3707
|
+
if (thrown == null)
|
|
3708
|
+
thrown = e_0;
|
|
3709
|
+
} else {
|
|
3710
|
+
throw $p_0;
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3713
|
+
this.closed_1 = true;
|
|
3714
|
+
if (!(thrown == null))
|
|
3715
|
+
throw thrown;
|
|
3716
|
+
tmp$ret$0 = Unit_instance;
|
|
3717
|
+
}
|
|
3718
|
+
return tmp$ret$0;
|
|
3719
|
+
};
|
|
3720
|
+
protoOf(RealBufferedSink).toString = function () {
|
|
3721
|
+
// Inline function 'okio.internal.commonToString' call
|
|
3722
|
+
return 'buffer(' + toString(this.sink_1) + ')';
|
|
3723
|
+
};
|
|
3724
|
+
function RealBufferedSource(source) {
|
|
3725
|
+
this.source_1 = source;
|
|
3726
|
+
this.closed_1 = false;
|
|
3727
|
+
this.buffer_1 = new Buffer();
|
|
3728
|
+
}
|
|
3729
|
+
protoOf(RealBufferedSource).read_iuuu3k_k$ = function (sink, byteCount) {
|
|
3730
|
+
var tmp$ret$0;
|
|
3731
|
+
$l$block_0: {
|
|
3732
|
+
// Inline function 'okio.internal.commonRead' call
|
|
3733
|
+
// Inline function 'kotlin.require' call
|
|
3734
|
+
if (!(byteCount >= 0n)) {
|
|
3735
|
+
var message = 'byteCount < 0: ' + byteCount.toString();
|
|
3736
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3737
|
+
}
|
|
3738
|
+
// Inline function 'kotlin.check' call
|
|
3739
|
+
if (!!this.closed_1) {
|
|
3740
|
+
var message_0 = 'closed';
|
|
3741
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
3742
|
+
}
|
|
3743
|
+
if (this.buffer_1.size_1 === 0n) {
|
|
3744
|
+
if (byteCount === 0n) {
|
|
3745
|
+
tmp$ret$0 = 0n;
|
|
3746
|
+
break $l$block_0;
|
|
3747
|
+
}
|
|
3748
|
+
var read = this.source_1.read_iuuu3k_k$(this.buffer_1, 8192n);
|
|
3749
|
+
if (read === -1n) {
|
|
3750
|
+
tmp$ret$0 = -1n;
|
|
3751
|
+
break $l$block_0;
|
|
3752
|
+
}
|
|
3753
|
+
}
|
|
3754
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
3755
|
+
var b = this.buffer_1.size_1;
|
|
3756
|
+
var toRead = byteCount <= b ? byteCount : b;
|
|
3757
|
+
tmp$ret$0 = this.buffer_1.read_iuuu3k_k$(sink, toRead);
|
|
3758
|
+
}
|
|
3759
|
+
return tmp$ret$0;
|
|
3760
|
+
};
|
|
3761
|
+
protoOf(RealBufferedSource).exhausted_p1jt55_k$ = function () {
|
|
3762
|
+
// Inline function 'okio.internal.commonExhausted' call
|
|
3763
|
+
// Inline function 'kotlin.check' call
|
|
3764
|
+
if (!!this.closed_1) {
|
|
3765
|
+
var message = 'closed';
|
|
3766
|
+
throw IllegalStateException_init_$Create$(toString(message));
|
|
3767
|
+
}
|
|
3768
|
+
return this.buffer_1.exhausted_p1jt55_k$() && this.source_1.read_iuuu3k_k$(this.buffer_1, 8192n) === -1n;
|
|
3769
|
+
};
|
|
3770
|
+
protoOf(RealBufferedSource).require_37jki9_k$ = function (byteCount) {
|
|
3771
|
+
// Inline function 'okio.internal.commonRequire' call
|
|
3772
|
+
if (!this.request_hj5jqj_k$(byteCount))
|
|
3773
|
+
throw EOFException_init_$Create$();
|
|
3774
|
+
return Unit_instance;
|
|
3775
|
+
};
|
|
3776
|
+
protoOf(RealBufferedSource).request_hj5jqj_k$ = function (byteCount) {
|
|
3777
|
+
var tmp$ret$0;
|
|
3778
|
+
$l$block: {
|
|
3779
|
+
// Inline function 'okio.internal.commonRequest' call
|
|
3780
|
+
// Inline function 'kotlin.require' call
|
|
3781
|
+
if (!(byteCount >= 0n)) {
|
|
3782
|
+
var message = 'byteCount < 0: ' + byteCount.toString();
|
|
3783
|
+
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
3784
|
+
}
|
|
3785
|
+
// Inline function 'kotlin.check' call
|
|
3786
|
+
if (!!this.closed_1) {
|
|
3787
|
+
var message_0 = 'closed';
|
|
3788
|
+
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
3789
|
+
}
|
|
3790
|
+
while (this.buffer_1.size_1 < byteCount) {
|
|
3791
|
+
if (this.source_1.read_iuuu3k_k$(this.buffer_1, 8192n) === -1n) {
|
|
3792
|
+
tmp$ret$0 = false;
|
|
3793
|
+
break $l$block;
|
|
3794
|
+
}
|
|
3795
|
+
}
|
|
3796
|
+
tmp$ret$0 = true;
|
|
3797
|
+
}
|
|
3798
|
+
return tmp$ret$0;
|
|
3799
|
+
};
|
|
3800
|
+
protoOf(RealBufferedSource).readByteArray_52wnjv_k$ = function () {
|
|
3801
|
+
// Inline function 'okio.internal.commonReadByteArray' call
|
|
3802
|
+
this.buffer_1.writeAll_goqmgy_k$(this.source_1);
|
|
3803
|
+
return this.buffer_1.readByteArray_52wnjv_k$();
|
|
3804
|
+
};
|
|
3805
|
+
protoOf(RealBufferedSource).readUtf8_echivt_k$ = function () {
|
|
3806
|
+
// Inline function 'okio.internal.commonReadUtf8' call
|
|
3807
|
+
this.buffer_1.writeAll_goqmgy_k$(this.source_1);
|
|
3808
|
+
return this.buffer_1.readUtf8_echivt_k$();
|
|
3809
|
+
};
|
|
3810
|
+
protoOf(RealBufferedSource).readUtf8CodePoint_brmg90_k$ = function () {
|
|
3811
|
+
// Inline function 'okio.internal.commonReadUtf8CodePoint' call
|
|
3812
|
+
this.require_37jki9_k$(1n);
|
|
3813
|
+
var b0 = this.buffer_1.get_f9lzxq_k$(0n);
|
|
3814
|
+
if ((b0 & 224) === 192) {
|
|
3815
|
+
this.require_37jki9_k$(2n);
|
|
3816
|
+
} else if ((b0 & 240) === 224) {
|
|
3817
|
+
this.require_37jki9_k$(3n);
|
|
3818
|
+
} else if ((b0 & 248) === 240) {
|
|
3819
|
+
this.require_37jki9_k$(4n);
|
|
3820
|
+
}
|
|
3821
|
+
return this.buffer_1.readUtf8CodePoint_brmg90_k$();
|
|
3822
|
+
};
|
|
3823
|
+
protoOf(RealBufferedSource).close_yn9xrc_k$ = function () {
|
|
3824
|
+
var tmp$ret$0;
|
|
3825
|
+
$l$block: {
|
|
3826
|
+
// Inline function 'okio.internal.commonClose' call
|
|
3827
|
+
if (this.closed_1) {
|
|
3828
|
+
tmp$ret$0 = Unit_instance;
|
|
3829
|
+
break $l$block;
|
|
3830
|
+
}
|
|
3831
|
+
this.closed_1 = true;
|
|
3832
|
+
this.source_1.close_yn9xrc_k$();
|
|
3833
|
+
this.buffer_1.clear_j9egeb_k$();
|
|
3834
|
+
tmp$ret$0 = Unit_instance;
|
|
3835
|
+
}
|
|
3836
|
+
return tmp$ret$0;
|
|
3837
|
+
};
|
|
3838
|
+
protoOf(RealBufferedSource).toString = function () {
|
|
3839
|
+
// Inline function 'okio.internal.commonToString' call
|
|
3840
|
+
return 'buffer(' + toString(this.source_1) + ')';
|
|
3841
|
+
};
|
|
3842
|
+
function SegmentPool() {
|
|
3843
|
+
this.MAX_SIZE_1 = 0;
|
|
3844
|
+
this.byteCount_1 = 0;
|
|
3845
|
+
}
|
|
3846
|
+
protoOf(SegmentPool).take_2451j_k$ = function () {
|
|
3847
|
+
return Segment_init_$Create$();
|
|
3848
|
+
};
|
|
3849
|
+
protoOf(SegmentPool).recycle_ipeoxr_k$ = function (segment) {
|
|
3850
|
+
};
|
|
3851
|
+
var SegmentPool_instance;
|
|
3852
|
+
function SegmentPool_getInstance() {
|
|
3853
|
+
return SegmentPool_instance;
|
|
3854
|
+
}
|
|
3855
|
+
//region block: init
|
|
3856
|
+
Companion_instance = new Companion();
|
|
3857
|
+
SegmentPool_instance = new SegmentPool();
|
|
3858
|
+
//endregion
|
|
3859
|
+
//region block: exports
|
|
3860
|
+
_.$_$ = _.$_$ || {};
|
|
3861
|
+
_.$_$.a = Companion_getInstance_2;
|
|
3862
|
+
_.$_$.b = IOException_init_$Create$;
|
|
3863
|
+
_.$_$.c = FileMetadata;
|
|
3864
|
+
_.$_$.d = FileNotFoundException;
|
|
3865
|
+
_.$_$.e = FileSystem;
|
|
3866
|
+
_.$_$.f = IOException;
|
|
3867
|
+
_.$_$.g = buffer;
|
|
3868
|
+
_.$_$.h = buffer_0;
|
|
11
3869
|
//endregion
|
|
12
3870
|
return _;
|
|
13
3871
|
}));
|