game_client_logic_deb 1.8.69 → 1.8.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/88b0986a7186d029-atomicfu-js-ir.js +20 -20
- package/Kosi-Kaverit-kaverit.js +65 -65
- package/Kosi-Kodein-kodein-di.js +550 -550
- package/Kotlin-DateTime-library-kotlinx-datetime.js +111 -111
- package/Logic_Debertz-core.js +1632 -1399
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +10672 -10457
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +61 -7
- package/Logic_Debertz-game_client.js +3363 -3312
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +377 -376
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +280 -283
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +850 -773
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1114 -1114
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +1998 -1998
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +1 -1
- package/uuid.js +25 -25
|
@@ -14,46 +14,46 @@
|
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.s1;
|
|
17
|
-
var Long = kotlin_kotlin.$_$.
|
|
17
|
+
var Long = kotlin_kotlin.$_$.od;
|
|
18
18
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.n1;
|
|
19
19
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.l2;
|
|
20
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
21
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
20
|
+
var charArrayOf = kotlin_kotlin.$_$.n9;
|
|
21
|
+
var protoOf = kotlin_kotlin.$_$.va;
|
|
22
22
|
var Unit_instance = kotlin_kotlin.$_$.y4;
|
|
23
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
24
|
-
var toLong = kotlin_kotlin.$_$.
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
23
|
+
var ensureNotNull = kotlin_kotlin.$_$.le;
|
|
24
|
+
var toLong = kotlin_kotlin.$_$.ya;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.ab;
|
|
26
26
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
27
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
28
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
27
|
+
var classMeta = kotlin_kotlin.$_$.s9;
|
|
28
|
+
var setMetadataFor = kotlin_kotlin.$_$.wa;
|
|
29
29
|
var VOID = kotlin_kotlin.$_$.f;
|
|
30
30
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.q1;
|
|
31
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
32
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
31
|
+
var objectCreate = kotlin_kotlin.$_$.ta;
|
|
32
|
+
var objectMeta = kotlin_kotlin.$_$.ua;
|
|
33
33
|
var arrayCopy = kotlin_kotlin.$_$.n5;
|
|
34
34
|
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.l1;
|
|
35
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
35
|
+
var charSequenceGet = kotlin_kotlin.$_$.p9;
|
|
36
36
|
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.o2;
|
|
37
|
-
var toByte = kotlin_kotlin.$_$.
|
|
38
|
-
var interfaceMeta = kotlin_kotlin.$_$.
|
|
37
|
+
var toByte = kotlin_kotlin.$_$.xa;
|
|
38
|
+
var interfaceMeta = kotlin_kotlin.$_$.ca;
|
|
39
39
|
var toString_0 = kotlin_kotlin.$_$.p2;
|
|
40
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
40
|
+
var startsWith = kotlin_kotlin.$_$.jc;
|
|
41
41
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.e1;
|
|
42
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
43
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
44
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
45
|
-
var Exception = kotlin_kotlin.$_$.
|
|
42
|
+
var charSequenceLength = kotlin_kotlin.$_$.q9;
|
|
43
|
+
var endsWith = kotlin_kotlin.$_$.xb;
|
|
44
|
+
var captureStack = kotlin_kotlin.$_$.m9;
|
|
45
|
+
var Exception = kotlin_kotlin.$_$.ld;
|
|
46
46
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.i1;
|
|
47
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
47
|
+
var THROW_CCE = kotlin_kotlin.$_$.ud;
|
|
48
48
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.m;
|
|
49
49
|
var asReversed = kotlin_kotlin.$_$.p5;
|
|
50
|
-
var equals = kotlin_kotlin.$_$.
|
|
51
|
-
var contains = kotlin_kotlin.$_$.
|
|
52
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
53
|
-
var Char = kotlin_kotlin.$_$.
|
|
54
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
55
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
56
|
-
var lazy = kotlin_kotlin.$_$.
|
|
50
|
+
var equals = kotlin_kotlin.$_$.v9;
|
|
51
|
+
var contains = kotlin_kotlin.$_$.wb;
|
|
52
|
+
var getStringHashCode = kotlin_kotlin.$_$.aa;
|
|
53
|
+
var Char = kotlin_kotlin.$_$.ed;
|
|
54
|
+
var KProperty0 = kotlin_kotlin.$_$.lb;
|
|
55
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.z9;
|
|
56
|
+
var lazy = kotlin_kotlin.$_$.qe;
|
|
57
57
|
//endregion
|
|
58
58
|
//region block: pre-declaration
|
|
59
59
|
setMetadataFor(Buffer, 'Buffer', classMeta, VOID, VOID, Buffer);
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
mustExist = mustExist === VOID ? true : mustExist;
|
|
65
65
|
var tmp;
|
|
66
66
|
if ($super === VOID) {
|
|
67
|
-
this.
|
|
67
|
+
this.n1p(path, mustExist);
|
|
68
68
|
tmp = Unit_instance;
|
|
69
69
|
} else {
|
|
70
|
-
tmp = $super.
|
|
70
|
+
tmp = $super.n1p.call(this, path, mustExist);
|
|
71
71
|
}
|
|
72
72
|
return tmp;
|
|
73
73
|
}
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
mustCreate = mustCreate === VOID ? false : mustCreate;
|
|
76
76
|
var tmp;
|
|
77
77
|
if ($super === VOID) {
|
|
78
|
-
this.
|
|
78
|
+
this.p1p(path, mustCreate);
|
|
79
79
|
tmp = Unit_instance;
|
|
80
80
|
} else {
|
|
81
|
-
tmp = $super.
|
|
81
|
+
tmp = $super.p1p.call(this, path, mustCreate);
|
|
82
82
|
}
|
|
83
83
|
return tmp;
|
|
84
84
|
}
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
setMetadataFor(SegmentPool, 'SegmentPool', objectMeta);
|
|
91
91
|
setMetadataFor(FileNotFoundException, 'FileNotFoundException', classMeta, IOException);
|
|
92
92
|
setMetadataFor(SystemFileSystem$1, VOID, classMeta, SystemFileSystemImpl);
|
|
93
|
-
setMetadataFor(
|
|
93
|
+
setMetadataFor(Path_0, 'Path', classMeta);
|
|
94
94
|
setMetadataFor(FileSink, 'FileSink', classMeta);
|
|
95
95
|
//endregion
|
|
96
96
|
function get_HEX_DIGIT_CHARS() {
|
|
@@ -122,34 +122,34 @@
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function Buffer() {
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
125
|
+
this.f1o_1 = null;
|
|
126
|
+
this.g1o_1 = new Long(0, 0);
|
|
127
|
+
this.h1o_1 = this;
|
|
128
128
|
}
|
|
129
|
-
protoOf(Buffer).
|
|
130
|
-
return this.
|
|
129
|
+
protoOf(Buffer).i1o = function () {
|
|
130
|
+
return this.h1o_1;
|
|
131
131
|
};
|
|
132
|
-
protoOf(Buffer).
|
|
132
|
+
protoOf(Buffer).j1o = function () {
|
|
133
133
|
return Unit_instance;
|
|
134
134
|
};
|
|
135
|
-
protoOf(Buffer).
|
|
136
|
-
var result = this.
|
|
135
|
+
protoOf(Buffer).k1o = function () {
|
|
136
|
+
var result = this.g1o_1;
|
|
137
137
|
if (result.equals(new Long(0, 0)))
|
|
138
138
|
return new Long(0, 0);
|
|
139
|
-
var tail = ensureNotNull(ensureNotNull(this.
|
|
139
|
+
var tail = ensureNotNull(ensureNotNull(this.f1o_1).r1o_1);
|
|
140
140
|
var tmp;
|
|
141
|
-
var tmp_0 = tail.
|
|
141
|
+
var tmp_0 = tail.n1o_1;
|
|
142
142
|
if (tmp_0 < 8192) {
|
|
143
|
-
tmp = tail.
|
|
143
|
+
tmp = tail.p1o_1;
|
|
144
144
|
} else {
|
|
145
145
|
tmp = false;
|
|
146
146
|
}
|
|
147
147
|
if (tmp) {
|
|
148
|
-
result = result.p9(toLong(tail.
|
|
148
|
+
result = result.p9(toLong(tail.n1o_1 - tail.m1o_1 | 0));
|
|
149
149
|
}
|
|
150
150
|
return result;
|
|
151
151
|
};
|
|
152
|
-
protoOf(Buffer).
|
|
152
|
+
protoOf(Buffer).s1o = function (byteCount) {
|
|
153
153
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
154
154
|
// Inline function 'kotlin.require' call
|
|
155
155
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -160,7 +160,7 @@
|
|
|
160
160
|
}
|
|
161
161
|
var remainingByteCount = byteCount;
|
|
162
162
|
while (remainingByteCount.k8(new Long(0, 0)) > 0) {
|
|
163
|
-
var tmp0_elvis_lhs = this.
|
|
163
|
+
var tmp0_elvis_lhs = this.f1o_1;
|
|
164
164
|
var tmp;
|
|
165
165
|
if (tmp0_elvis_lhs == null) {
|
|
166
166
|
throw new EOFException('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -170,20 +170,20 @@
|
|
|
170
170
|
var head = tmp;
|
|
171
171
|
// Inline function 'kotlinx.io.minOf' call
|
|
172
172
|
var a = remainingByteCount;
|
|
173
|
-
var b = head.
|
|
173
|
+
var b = head.n1o_1 - head.m1o_1 | 0;
|
|
174
174
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
175
175
|
var b_0 = toLong(b);
|
|
176
176
|
var toSkip = (a.k8(b_0) <= 0 ? a : b_0).s8();
|
|
177
|
-
this.
|
|
177
|
+
this.g1o_1 = this.g1o_1.p9(toLong(toSkip));
|
|
178
178
|
remainingByteCount = remainingByteCount.p9(toLong(toSkip));
|
|
179
|
-
head.
|
|
180
|
-
if (head.
|
|
181
|
-
this.
|
|
182
|
-
SegmentPool_instance.
|
|
179
|
+
head.m1o_1 = head.m1o_1 + toSkip | 0;
|
|
180
|
+
if (head.m1o_1 === head.n1o_1) {
|
|
181
|
+
this.f1o_1 = head.t1o();
|
|
182
|
+
SegmentPool_instance.w1o(head);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
|
-
protoOf(Buffer).
|
|
186
|
+
protoOf(Buffer).x1o = function (minimumCapacity) {
|
|
187
187
|
// Inline function 'kotlin.require' call
|
|
188
188
|
var tmp;
|
|
189
189
|
if (minimumCapacity >= 1) {
|
|
@@ -197,27 +197,27 @@
|
|
|
197
197
|
var message = 'unexpected capacity';
|
|
198
198
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
199
199
|
}
|
|
200
|
-
if (this.
|
|
201
|
-
var result = SegmentPool_instance.
|
|
202
|
-
this.
|
|
203
|
-
result.
|
|
204
|
-
result.
|
|
200
|
+
if (this.f1o_1 == null) {
|
|
201
|
+
var result = SegmentPool_instance.y1o();
|
|
202
|
+
this.f1o_1 = result;
|
|
203
|
+
result.r1o_1 = result;
|
|
204
|
+
result.q1o_1 = result;
|
|
205
205
|
return result;
|
|
206
206
|
}
|
|
207
|
-
var tail = ensureNotNull(this.
|
|
207
|
+
var tail = ensureNotNull(this.f1o_1).r1o_1;
|
|
208
208
|
var tmp_0;
|
|
209
|
-
var tmp_1 = ensureNotNull(tail).
|
|
209
|
+
var tmp_1 = ensureNotNull(tail).n1o_1 + minimumCapacity | 0;
|
|
210
210
|
if (tmp_1 > 8192) {
|
|
211
211
|
tmp_0 = true;
|
|
212
212
|
} else {
|
|
213
|
-
tmp_0 = !tail.
|
|
213
|
+
tmp_0 = !tail.p1o_1;
|
|
214
214
|
}
|
|
215
215
|
if (tmp_0) {
|
|
216
|
-
tail = tail.
|
|
216
|
+
tail = tail.z1o(SegmentPool_instance.y1o());
|
|
217
217
|
}
|
|
218
218
|
return tail;
|
|
219
219
|
};
|
|
220
|
-
protoOf(Buffer).
|
|
220
|
+
protoOf(Buffer).a1p = function (source, byteCount) {
|
|
221
221
|
// Inline function 'kotlin.require' call
|
|
222
222
|
// Inline function 'kotlin.contracts.contract' call
|
|
223
223
|
if (!!(source === this)) {
|
|
@@ -225,106 +225,106 @@
|
|
|
225
225
|
var message = 'source == this';
|
|
226
226
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
227
227
|
}
|
|
228
|
-
checkOffsetAndCount(source.
|
|
228
|
+
checkOffsetAndCount(source.g1o_1, new Long(0, 0), byteCount);
|
|
229
229
|
var remainingByteCount = byteCount;
|
|
230
230
|
while (remainingByteCount.k8(new Long(0, 0)) > 0) {
|
|
231
|
-
if (remainingByteCount.k8(toLong(ensureNotNull(source.
|
|
232
|
-
var tail = !(this.
|
|
231
|
+
if (remainingByteCount.k8(toLong(ensureNotNull(source.f1o_1).n1o_1 - ensureNotNull(source.f1o_1).m1o_1 | 0)) < 0) {
|
|
232
|
+
var tail = !(this.f1o_1 == null) ? ensureNotNull(this.f1o_1).r1o_1 : null;
|
|
233
233
|
var tmp;
|
|
234
|
-
if (!(tail == null) ? tail.
|
|
234
|
+
if (!(tail == null) ? tail.p1o_1 : false) {
|
|
235
235
|
// Inline function 'kotlin.Long.minus' call
|
|
236
236
|
// Inline function 'kotlin.Long.plus' call
|
|
237
237
|
var this_0 = remainingByteCount;
|
|
238
|
-
var other = tail.
|
|
238
|
+
var other = tail.n1o_1;
|
|
239
239
|
var this_1 = this_0.o9(toLong(other));
|
|
240
|
-
var other_0 = tail.
|
|
240
|
+
var other_0 = tail.o1o_1 ? 0 : tail.m1o_1;
|
|
241
241
|
var tmp_0 = this_1.p9(toLong(other_0));
|
|
242
242
|
tmp = tmp_0.k8(toLong(8192)) <= 0;
|
|
243
243
|
} else {
|
|
244
244
|
tmp = false;
|
|
245
245
|
}
|
|
246
246
|
if (tmp) {
|
|
247
|
-
ensureNotNull(source.
|
|
248
|
-
source.
|
|
249
|
-
this.
|
|
247
|
+
ensureNotNull(source.f1o_1).c1p(tail, remainingByteCount.s8());
|
|
248
|
+
source.g1o_1 = source.g1o_1.p9(remainingByteCount);
|
|
249
|
+
this.g1o_1 = this.g1o_1.o9(remainingByteCount);
|
|
250
250
|
return Unit_instance;
|
|
251
251
|
} else {
|
|
252
|
-
source.
|
|
252
|
+
source.f1o_1 = ensureNotNull(source.f1o_1).b1p(remainingByteCount.s8());
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
var segmentToMove = source.
|
|
256
|
-
var movedByteCount = toLong(ensureNotNull(segmentToMove).
|
|
257
|
-
source.
|
|
258
|
-
if (this.
|
|
259
|
-
this.
|
|
260
|
-
segmentToMove.
|
|
261
|
-
segmentToMove.
|
|
255
|
+
var segmentToMove = source.f1o_1;
|
|
256
|
+
var movedByteCount = toLong(ensureNotNull(segmentToMove).n1o_1 - segmentToMove.m1o_1 | 0);
|
|
257
|
+
source.f1o_1 = segmentToMove.t1o();
|
|
258
|
+
if (this.f1o_1 == null) {
|
|
259
|
+
this.f1o_1 = segmentToMove;
|
|
260
|
+
segmentToMove.r1o_1 = segmentToMove;
|
|
261
|
+
segmentToMove.q1o_1 = segmentToMove.r1o_1;
|
|
262
262
|
} else {
|
|
263
|
-
var tail_0 = ensureNotNull(this.
|
|
264
|
-
tail_0 = ensureNotNull(tail_0).
|
|
265
|
-
tail_0.
|
|
263
|
+
var tail_0 = ensureNotNull(this.f1o_1).r1o_1;
|
|
264
|
+
tail_0 = ensureNotNull(tail_0).z1o(segmentToMove);
|
|
265
|
+
tail_0.d1p();
|
|
266
266
|
}
|
|
267
|
-
source.
|
|
268
|
-
this.
|
|
267
|
+
source.g1o_1 = source.g1o_1.p9(movedByteCount);
|
|
268
|
+
this.g1o_1 = this.g1o_1.o9(movedByteCount);
|
|
269
269
|
remainingByteCount = remainingByteCount.p9(movedByteCount);
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
|
-
protoOf(Buffer).
|
|
273
|
-
var tail = this.
|
|
274
|
-
var tmp1 = tail.
|
|
275
|
-
tail.
|
|
276
|
-
tail.
|
|
277
|
-
this.
|
|
272
|
+
protoOf(Buffer).e1p = function (byte) {
|
|
273
|
+
var tail = this.x1o(1);
|
|
274
|
+
var tmp1 = tail.n1o_1;
|
|
275
|
+
tail.n1o_1 = tmp1 + 1 | 0;
|
|
276
|
+
tail.l1o_1[tmp1] = byte;
|
|
277
|
+
this.g1o_1 = this.g1o_1.o9(new Long(1, 0));
|
|
278
278
|
};
|
|
279
|
-
protoOf(Buffer).
|
|
279
|
+
protoOf(Buffer).f1p = function () {
|
|
280
280
|
return Unit_instance;
|
|
281
281
|
};
|
|
282
282
|
protoOf(Buffer).toString = function () {
|
|
283
|
-
if (this.
|
|
283
|
+
if (this.g1o_1.equals(new Long(0, 0)))
|
|
284
284
|
return 'Buffer(size=0)';
|
|
285
285
|
var maxPrintableBytes = 64;
|
|
286
286
|
// Inline function 'kotlinx.io.minOf' call
|
|
287
|
-
var b = this.
|
|
287
|
+
var b = this.g1o_1;
|
|
288
288
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
289
289
|
var a = toLong(maxPrintableBytes);
|
|
290
290
|
var len = (a.k8(b) <= 0 ? a : b).s8();
|
|
291
|
-
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.
|
|
292
|
-
var curr = ensureNotNull(this.
|
|
291
|
+
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.g1o_1.k8(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
292
|
+
var curr = ensureNotNull(this.f1o_1);
|
|
293
293
|
var bytesWritten = 0;
|
|
294
|
-
var pos = curr.
|
|
294
|
+
var pos = curr.m1o_1;
|
|
295
295
|
while (bytesWritten < len) {
|
|
296
|
-
if (pos === curr.
|
|
297
|
-
curr = ensureNotNull(curr.
|
|
298
|
-
pos = curr.
|
|
296
|
+
if (pos === curr.n1o_1) {
|
|
297
|
+
curr = ensureNotNull(curr.q1o_1);
|
|
298
|
+
pos = curr.m1o_1;
|
|
299
299
|
}
|
|
300
|
-
var tmp = curr.
|
|
300
|
+
var tmp = curr.l1o_1;
|
|
301
301
|
var tmp0 = pos;
|
|
302
302
|
pos = tmp0 + 1 | 0;
|
|
303
303
|
var b_0 = tmp[tmp0];
|
|
304
304
|
bytesWritten = bytesWritten + 1 | 0;
|
|
305
305
|
builder.f5(get_HEX_DIGIT_CHARS()[b_0 >> 4 & 15]).f5(get_HEX_DIGIT_CHARS()[b_0 & 15]);
|
|
306
306
|
}
|
|
307
|
-
if (this.
|
|
307
|
+
if (this.g1o_1.k8(toLong(maxPrintableBytes)) > 0) {
|
|
308
308
|
builder.f5(_Char___init__impl__6a9atx(8230));
|
|
309
309
|
}
|
|
310
|
-
return 'Buffer(size=' + this.
|
|
310
|
+
return 'Buffer(size=' + this.g1o_1.toString() + ' hex=' + builder + ')';
|
|
311
311
|
};
|
|
312
312
|
function buffered(_this__u8e3s4) {
|
|
313
313
|
return new RealSink(_this__u8e3s4);
|
|
314
314
|
}
|
|
315
315
|
function RealSink(sink) {
|
|
316
|
-
this.
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
316
|
+
this.g1p_1 = sink;
|
|
317
|
+
this.h1p_1 = false;
|
|
318
|
+
this.i1p_1 = new Buffer();
|
|
319
319
|
}
|
|
320
|
-
protoOf(RealSink).
|
|
321
|
-
return this.
|
|
320
|
+
protoOf(RealSink).i1o = function () {
|
|
321
|
+
return this.i1p_1;
|
|
322
322
|
};
|
|
323
|
-
protoOf(RealSink).
|
|
323
|
+
protoOf(RealSink).a1p = function (source, byteCount) {
|
|
324
324
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
325
325
|
// Inline function 'kotlin.check' call
|
|
326
326
|
// Inline function 'kotlin.contracts.contract' call
|
|
327
|
-
if (!!this.
|
|
327
|
+
if (!!this.h1p_1) {
|
|
328
328
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
|
|
329
329
|
var message = 'Sink is closed.';
|
|
330
330
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -336,30 +336,30 @@
|
|
|
336
336
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
337
337
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
338
338
|
}
|
|
339
|
-
this.
|
|
340
|
-
this.
|
|
339
|
+
this.i1p_1.a1p(source, byteCount);
|
|
340
|
+
this.j1o();
|
|
341
341
|
};
|
|
342
|
-
protoOf(RealSink).
|
|
342
|
+
protoOf(RealSink).j1o = function () {
|
|
343
343
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
344
344
|
// Inline function 'kotlin.check' call
|
|
345
345
|
// Inline function 'kotlin.contracts.contract' call
|
|
346
|
-
if (!!this.
|
|
346
|
+
if (!!this.h1p_1) {
|
|
347
347
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
|
|
348
348
|
var message = 'Sink is closed.';
|
|
349
349
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
350
350
|
}
|
|
351
|
-
var byteCount = this.
|
|
351
|
+
var byteCount = this.i1p_1.k1o();
|
|
352
352
|
if (byteCount.k8(new Long(0, 0)) > 0) {
|
|
353
|
-
this.
|
|
353
|
+
this.g1p_1.a1p(this.i1p_1, byteCount);
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
|
-
protoOf(RealSink).
|
|
357
|
-
if (this.
|
|
356
|
+
protoOf(RealSink).f1p = function () {
|
|
357
|
+
if (this.h1p_1)
|
|
358
358
|
return Unit_instance;
|
|
359
359
|
var thrown = null;
|
|
360
360
|
try {
|
|
361
|
-
if (this.
|
|
362
|
-
this.
|
|
361
|
+
if (this.i1p_1.g1o_1.k8(new Long(0, 0)) > 0) {
|
|
362
|
+
this.g1p_1.a1p(this.i1p_1, this.i1p_1.g1o_1);
|
|
363
363
|
}
|
|
364
364
|
} catch ($p) {
|
|
365
365
|
if ($p instanceof Error) {
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
try {
|
|
373
|
-
this.
|
|
373
|
+
this.g1p_1.f1p();
|
|
374
374
|
} catch ($p) {
|
|
375
375
|
if ($p instanceof Error) {
|
|
376
376
|
var e_0 = $p;
|
|
@@ -380,18 +380,18 @@
|
|
|
380
380
|
throw $p;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
this.
|
|
383
|
+
this.h1p_1 = true;
|
|
384
384
|
if (!(thrown == null))
|
|
385
385
|
throw thrown;
|
|
386
386
|
};
|
|
387
387
|
protoOf(RealSink).toString = function () {
|
|
388
|
-
return 'buffered(' + this.
|
|
388
|
+
return 'buffered(' + this.g1p_1 + ')';
|
|
389
389
|
};
|
|
390
390
|
function Segment_init_$Init$($this) {
|
|
391
391
|
Segment.call($this);
|
|
392
|
-
$this.
|
|
393
|
-
$this.
|
|
394
|
-
$this.
|
|
392
|
+
$this.l1o_1 = new Int8Array(8192);
|
|
393
|
+
$this.p1o_1 = true;
|
|
394
|
+
$this.o1o_1 = false;
|
|
395
395
|
return $this;
|
|
396
396
|
}
|
|
397
397
|
function Segment_init_$Create$() {
|
|
@@ -399,61 +399,61 @@
|
|
|
399
399
|
}
|
|
400
400
|
function Segment_init_$Init$_0(data, pos, limit, shared, owner, $this) {
|
|
401
401
|
Segment.call($this);
|
|
402
|
-
$this.
|
|
403
|
-
$this.
|
|
404
|
-
$this.
|
|
405
|
-
$this.
|
|
406
|
-
$this.
|
|
402
|
+
$this.l1o_1 = data;
|
|
403
|
+
$this.m1o_1 = pos;
|
|
404
|
+
$this.n1o_1 = limit;
|
|
405
|
+
$this.o1o_1 = shared;
|
|
406
|
+
$this.p1o_1 = owner;
|
|
407
407
|
return $this;
|
|
408
408
|
}
|
|
409
409
|
function Segment_init_$Create$_0(data, pos, limit, shared, owner) {
|
|
410
410
|
return Segment_init_$Init$_0(data, pos, limit, shared, owner, objectCreate(protoOf(Segment)));
|
|
411
411
|
}
|
|
412
412
|
function Companion() {
|
|
413
|
-
this.
|
|
414
|
-
this.
|
|
413
|
+
this.j1p_1 = 8192;
|
|
414
|
+
this.k1p_1 = 1024;
|
|
415
415
|
}
|
|
416
416
|
var Companion_instance;
|
|
417
417
|
function Companion_getInstance() {
|
|
418
418
|
return Companion_instance;
|
|
419
419
|
}
|
|
420
|
-
protoOf(Segment).
|
|
421
|
-
this.
|
|
422
|
-
return Segment_init_$Create$_0(this.
|
|
420
|
+
protoOf(Segment).l1p = function () {
|
|
421
|
+
this.o1o_1 = true;
|
|
422
|
+
return Segment_init_$Create$_0(this.l1o_1, this.m1o_1, this.n1o_1, true, false);
|
|
423
423
|
};
|
|
424
|
-
protoOf(Segment).
|
|
425
|
-
var result = !(this.
|
|
426
|
-
ensureNotNull(this.
|
|
427
|
-
ensureNotNull(this.
|
|
428
|
-
this.
|
|
429
|
-
this.
|
|
424
|
+
protoOf(Segment).t1o = function () {
|
|
425
|
+
var result = !(this.q1o_1 === this) ? this.q1o_1 : null;
|
|
426
|
+
ensureNotNull(this.r1o_1).q1o_1 = this.q1o_1;
|
|
427
|
+
ensureNotNull(this.q1o_1).r1o_1 = this.r1o_1;
|
|
428
|
+
this.q1o_1 = null;
|
|
429
|
+
this.r1o_1 = null;
|
|
430
430
|
return result;
|
|
431
431
|
};
|
|
432
|
-
protoOf(Segment).
|
|
433
|
-
segment.
|
|
434
|
-
segment.
|
|
435
|
-
ensureNotNull(this.
|
|
436
|
-
this.
|
|
432
|
+
protoOf(Segment).z1o = function (segment) {
|
|
433
|
+
segment.r1o_1 = this;
|
|
434
|
+
segment.q1o_1 = this.q1o_1;
|
|
435
|
+
ensureNotNull(this.q1o_1).r1o_1 = segment;
|
|
436
|
+
this.q1o_1 = segment;
|
|
437
437
|
return segment;
|
|
438
438
|
};
|
|
439
|
-
protoOf(Segment).
|
|
439
|
+
protoOf(Segment).b1p = function (byteCount) {
|
|
440
440
|
// Inline function 'kotlin.require' call
|
|
441
441
|
// Inline function 'kotlin.contracts.contract' call
|
|
442
|
-
if (!(byteCount > 0 ? byteCount <= (this.
|
|
442
|
+
if (!(byteCount > 0 ? byteCount <= (this.n1o_1 - this.m1o_1 | 0) : false)) {
|
|
443
443
|
// Inline function 'kotlinx.io.Segment.split.<anonymous>' call
|
|
444
444
|
var message = 'byteCount out of range';
|
|
445
445
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
446
446
|
}
|
|
447
447
|
var prefix;
|
|
448
448
|
if (byteCount >= 1024) {
|
|
449
|
-
prefix = this.
|
|
449
|
+
prefix = this.l1p();
|
|
450
450
|
} else {
|
|
451
|
-
prefix = SegmentPool_instance.
|
|
451
|
+
prefix = SegmentPool_instance.y1o();
|
|
452
452
|
// Inline function 'kotlin.collections.copyInto' call
|
|
453
|
-
var this_0 = this.
|
|
454
|
-
var destination = prefix.
|
|
455
|
-
var startIndex = this.
|
|
456
|
-
var endIndex = this.
|
|
453
|
+
var this_0 = this.l1o_1;
|
|
454
|
+
var destination = prefix.l1o_1;
|
|
455
|
+
var startIndex = this.m1o_1;
|
|
456
|
+
var endIndex = this.m1o_1 + byteCount | 0;
|
|
457
457
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
458
458
|
// Inline function 'kotlin.js.asDynamic' call
|
|
459
459
|
var tmp = this_0;
|
|
@@ -461,86 +461,86 @@
|
|
|
461
461
|
// Inline function 'kotlin.js.asDynamic' call
|
|
462
462
|
arrayCopy(tmp, destination, 0, startIndex, endIndex);
|
|
463
463
|
}
|
|
464
|
-
prefix.
|
|
465
|
-
this.
|
|
466
|
-
ensureNotNull(this.
|
|
464
|
+
prefix.n1o_1 = prefix.m1o_1 + byteCount | 0;
|
|
465
|
+
this.m1o_1 = this.m1o_1 + byteCount | 0;
|
|
466
|
+
ensureNotNull(this.r1o_1).z1o(prefix);
|
|
467
467
|
return prefix;
|
|
468
468
|
};
|
|
469
|
-
protoOf(Segment).
|
|
469
|
+
protoOf(Segment).d1p = function () {
|
|
470
470
|
// Inline function 'kotlin.check' call
|
|
471
471
|
// Inline function 'kotlin.contracts.contract' call
|
|
472
|
-
if (!!(this.
|
|
472
|
+
if (!!(this.r1o_1 === this)) {
|
|
473
473
|
// Inline function 'kotlinx.io.Segment.compact.<anonymous>' call
|
|
474
474
|
var message = 'cannot compact';
|
|
475
475
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
476
476
|
}
|
|
477
|
-
if (!ensureNotNull(this.
|
|
477
|
+
if (!ensureNotNull(this.r1o_1).p1o_1)
|
|
478
478
|
return Unit_instance;
|
|
479
|
-
var byteCount = this.
|
|
480
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
479
|
+
var byteCount = this.n1o_1 - this.m1o_1 | 0;
|
|
480
|
+
var availableByteCount = (8192 - ensureNotNull(this.r1o_1).n1o_1 | 0) + (ensureNotNull(this.r1o_1).o1o_1 ? 0 : ensureNotNull(this.r1o_1).m1o_1) | 0;
|
|
481
481
|
if (byteCount > availableByteCount)
|
|
482
482
|
return Unit_instance;
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
SegmentPool_instance.
|
|
483
|
+
this.c1p(ensureNotNull(this.r1o_1), byteCount);
|
|
484
|
+
this.t1o();
|
|
485
|
+
SegmentPool_instance.w1o(this);
|
|
486
486
|
};
|
|
487
|
-
protoOf(Segment).
|
|
487
|
+
protoOf(Segment).c1p = function (sink, byteCount) {
|
|
488
488
|
// Inline function 'kotlin.check' call
|
|
489
489
|
// Inline function 'kotlin.contracts.contract' call
|
|
490
|
-
if (!sink.
|
|
490
|
+
if (!sink.p1o_1) {
|
|
491
491
|
// Inline function 'kotlinx.io.Segment.writeTo.<anonymous>' call
|
|
492
492
|
var message = 'only owner can write';
|
|
493
493
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
494
494
|
}
|
|
495
|
-
if ((sink.
|
|
496
|
-
if (sink.
|
|
495
|
+
if ((sink.n1o_1 + byteCount | 0) > 8192) {
|
|
496
|
+
if (sink.o1o_1)
|
|
497
497
|
throw IllegalArgumentException_init_$Create$_0();
|
|
498
|
-
if (((sink.
|
|
498
|
+
if (((sink.n1o_1 + byteCount | 0) - sink.m1o_1 | 0) > 8192)
|
|
499
499
|
throw IllegalArgumentException_init_$Create$_0();
|
|
500
500
|
// Inline function 'kotlin.collections.copyInto' call
|
|
501
|
-
var this_0 = sink.
|
|
502
|
-
var destination = sink.
|
|
503
|
-
var startIndex = sink.
|
|
504
|
-
var endIndex = sink.
|
|
501
|
+
var this_0 = sink.l1o_1;
|
|
502
|
+
var destination = sink.l1o_1;
|
|
503
|
+
var startIndex = sink.m1o_1;
|
|
504
|
+
var endIndex = sink.n1o_1;
|
|
505
505
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
506
506
|
// Inline function 'kotlin.js.asDynamic' call
|
|
507
507
|
var tmp = this_0;
|
|
508
508
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
509
509
|
// Inline function 'kotlin.js.asDynamic' call
|
|
510
510
|
arrayCopy(tmp, destination, 0, startIndex, endIndex);
|
|
511
|
-
sink.
|
|
512
|
-
sink.
|
|
511
|
+
sink.n1o_1 = sink.n1o_1 - sink.m1o_1 | 0;
|
|
512
|
+
sink.m1o_1 = 0;
|
|
513
513
|
}
|
|
514
514
|
// Inline function 'kotlin.collections.copyInto' call
|
|
515
|
-
var this_1 = this.
|
|
516
|
-
var destination_0 = sink.
|
|
517
|
-
var destinationOffset = sink.
|
|
518
|
-
var startIndex_0 = this.
|
|
519
|
-
var endIndex_0 = this.
|
|
515
|
+
var this_1 = this.l1o_1;
|
|
516
|
+
var destination_0 = sink.l1o_1;
|
|
517
|
+
var destinationOffset = sink.n1o_1;
|
|
518
|
+
var startIndex_0 = this.m1o_1;
|
|
519
|
+
var endIndex_0 = this.m1o_1 + byteCount | 0;
|
|
520
520
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
521
521
|
// Inline function 'kotlin.js.asDynamic' call
|
|
522
522
|
var tmp_0 = this_1;
|
|
523
523
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
524
524
|
// Inline function 'kotlin.js.asDynamic' call
|
|
525
525
|
arrayCopy(tmp_0, destination_0, destinationOffset, startIndex_0, endIndex_0);
|
|
526
|
-
sink.
|
|
527
|
-
this.
|
|
526
|
+
sink.n1o_1 = sink.n1o_1 + byteCount | 0;
|
|
527
|
+
this.m1o_1 = this.m1o_1 + byteCount | 0;
|
|
528
528
|
};
|
|
529
529
|
function Segment() {
|
|
530
|
-
this.
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
530
|
+
this.m1o_1 = 0;
|
|
531
|
+
this.n1o_1 = 0;
|
|
532
|
+
this.o1o_1 = false;
|
|
533
|
+
this.p1o_1 = false;
|
|
534
|
+
this.q1o_1 = null;
|
|
535
|
+
this.r1o_1 = null;
|
|
536
536
|
}
|
|
537
537
|
function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
538
538
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
539
539
|
endIndex = endIndex === VOID ? string.length : endIndex;
|
|
540
540
|
// Inline function 'kotlinx.io.writeString.<anonymous>' call
|
|
541
|
-
var it = _this__u8e3s4.
|
|
541
|
+
var it = _this__u8e3s4.i1o();
|
|
542
542
|
commonWriteUtf8(it, string, startIndex, endIndex);
|
|
543
|
-
_this__u8e3s4.
|
|
543
|
+
_this__u8e3s4.j1o();
|
|
544
544
|
return Unit_instance;
|
|
545
545
|
}
|
|
546
546
|
function commonWriteUtf8(_this__u8e3s4, string, beginIndex, endIndex) {
|
|
@@ -553,9 +553,9 @@
|
|
|
553
553
|
var this_0 = charSequenceGet(string, i);
|
|
554
554
|
var c = Char__toInt_impl_vasixd(this_0);
|
|
555
555
|
if (c < 128) {
|
|
556
|
-
var tail = _this__u8e3s4.
|
|
557
|
-
var data = tail.
|
|
558
|
-
var segmentOffset = tail.
|
|
556
|
+
var tail = _this__u8e3s4.x1o(1);
|
|
557
|
+
var data = tail.l1o_1;
|
|
558
|
+
var segmentOffset = tail.n1o_1 - i | 0;
|
|
559
559
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
560
560
|
var b = 8192 - segmentOffset | 0;
|
|
561
561
|
var runLimit = Math.min(endIndex, b);
|
|
@@ -572,23 +572,23 @@
|
|
|
572
572
|
i = tmp1 + 1 | 0;
|
|
573
573
|
data[segmentOffset + tmp1 | 0] = toByte(c);
|
|
574
574
|
}
|
|
575
|
-
var runSize = (i + segmentOffset | 0) - tail.
|
|
576
|
-
tail.
|
|
577
|
-
_this__u8e3s4.
|
|
575
|
+
var runSize = (i + segmentOffset | 0) - tail.n1o_1 | 0;
|
|
576
|
+
tail.n1o_1 = tail.n1o_1 + runSize | 0;
|
|
577
|
+
_this__u8e3s4.g1o_1 = _this__u8e3s4.g1o_1.o9(toLong(runSize));
|
|
578
578
|
} else if (c < 2048) {
|
|
579
|
-
var tail_0 = _this__u8e3s4.
|
|
580
|
-
tail_0.
|
|
581
|
-
tail_0.
|
|
582
|
-
tail_0.
|
|
583
|
-
_this__u8e3s4.
|
|
579
|
+
var tail_0 = _this__u8e3s4.x1o(2);
|
|
580
|
+
tail_0.l1o_1[tail_0.n1o_1] = toByte(c >> 6 | 192);
|
|
581
|
+
tail_0.l1o_1[tail_0.n1o_1 + 1 | 0] = toByte(c & 63 | 128);
|
|
582
|
+
tail_0.n1o_1 = tail_0.n1o_1 + 2 | 0;
|
|
583
|
+
_this__u8e3s4.g1o_1 = _this__u8e3s4.g1o_1.o9(new Long(2, 0));
|
|
584
584
|
i = i + 1 | 0;
|
|
585
585
|
} else if (c < 55296 ? true : c > 57343) {
|
|
586
|
-
var tail_1 = _this__u8e3s4.
|
|
587
|
-
tail_1.
|
|
588
|
-
tail_1.
|
|
589
|
-
tail_1.
|
|
590
|
-
tail_1.
|
|
591
|
-
_this__u8e3s4.
|
|
586
|
+
var tail_1 = _this__u8e3s4.x1o(3);
|
|
587
|
+
tail_1.l1o_1[tail_1.n1o_1] = toByte(c >> 12 | 224);
|
|
588
|
+
tail_1.l1o_1[tail_1.n1o_1 + 1 | 0] = toByte(c >> 6 & 63 | 128);
|
|
589
|
+
tail_1.l1o_1[tail_1.n1o_1 + 2 | 0] = toByte(c & 63 | 128);
|
|
590
|
+
tail_1.n1o_1 = tail_1.n1o_1 + 3 | 0;
|
|
591
|
+
_this__u8e3s4.g1o_1 = _this__u8e3s4.g1o_1.o9(new Long(3, 0));
|
|
592
592
|
i = i + 1 | 0;
|
|
593
593
|
} else {
|
|
594
594
|
var tmp;
|
|
@@ -601,17 +601,17 @@
|
|
|
601
601
|
}
|
|
602
602
|
var low = tmp;
|
|
603
603
|
if (c > 56319 ? true : !(56320 <= low ? low <= 57343 : false)) {
|
|
604
|
-
_this__u8e3s4.
|
|
604
|
+
_this__u8e3s4.e1p(63);
|
|
605
605
|
i = i + 1 | 0;
|
|
606
606
|
} else {
|
|
607
607
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
608
|
-
var tail_2 = _this__u8e3s4.
|
|
609
|
-
tail_2.
|
|
610
|
-
tail_2.
|
|
611
|
-
tail_2.
|
|
612
|
-
tail_2.
|
|
613
|
-
tail_2.
|
|
614
|
-
_this__u8e3s4.
|
|
608
|
+
var tail_2 = _this__u8e3s4.x1o(4);
|
|
609
|
+
tail_2.l1o_1[tail_2.n1o_1] = toByte(codePoint >> 18 | 240);
|
|
610
|
+
tail_2.l1o_1[tail_2.n1o_1 + 1 | 0] = toByte(codePoint >> 12 & 63 | 128);
|
|
611
|
+
tail_2.l1o_1[tail_2.n1o_1 + 2 | 0] = toByte(codePoint >> 6 & 63 | 128);
|
|
612
|
+
tail_2.l1o_1[tail_2.n1o_1 + 3 | 0] = toByte(codePoint & 63 | 128);
|
|
613
|
+
tail_2.n1o_1 = tail_2.n1o_1 + 4 | 0;
|
|
614
|
+
_this__u8e3s4.g1o_1 = _this__u8e3s4.g1o_1.o9(new Long(4, 0));
|
|
615
615
|
i = i + 2 | 0;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
@@ -625,9 +625,9 @@
|
|
|
625
625
|
isRegularFile = isRegularFile === VOID ? false : isRegularFile;
|
|
626
626
|
isDirectory = isDirectory === VOID ? false : isDirectory;
|
|
627
627
|
size = size === VOID ? new Long(0, 0) : size;
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
630
|
-
this.
|
|
628
|
+
this.s1p_1 = isRegularFile;
|
|
629
|
+
this.t1p_1 = isDirectory;
|
|
630
|
+
this.u1p_1 = size;
|
|
631
631
|
}
|
|
632
632
|
function get_UnixPathSeparator() {
|
|
633
633
|
return UnixPathSeparator;
|
|
@@ -701,9 +701,6 @@
|
|
|
701
701
|
return path.substring(0, endIndex);
|
|
702
702
|
}
|
|
703
703
|
function Path(base, parts) {
|
|
704
|
-
return Path_0(base.toString(), parts.slice());
|
|
705
|
-
}
|
|
706
|
-
function Path_0(base, parts) {
|
|
707
704
|
// Inline function 'kotlin.text.buildString' call
|
|
708
705
|
// Inline function 'kotlin.contracts.contract' call
|
|
709
706
|
// Inline function 'kotlin.apply' call
|
|
@@ -731,7 +728,7 @@
|
|
|
731
728
|
this_0.e5(element);
|
|
732
729
|
}
|
|
733
730
|
var tmp$ret$2 = this_0.toString();
|
|
734
|
-
return
|
|
731
|
+
return Path_1(tmp$ret$2);
|
|
735
732
|
}
|
|
736
733
|
function IOException_init_$Init$(message, $this) {
|
|
737
734
|
IOException.call($this, message, null);
|
|
@@ -769,13 +766,13 @@
|
|
|
769
766
|
captureStack(this, EOFException);
|
|
770
767
|
}
|
|
771
768
|
function SegmentPool() {
|
|
772
|
-
this.
|
|
773
|
-
this.
|
|
769
|
+
this.u1o_1 = 0;
|
|
770
|
+
this.v1o_1 = 0;
|
|
774
771
|
}
|
|
775
|
-
protoOf(SegmentPool).
|
|
772
|
+
protoOf(SegmentPool).y1o = function () {
|
|
776
773
|
return Segment_init_$Create$();
|
|
777
774
|
};
|
|
778
|
-
protoOf(SegmentPool).
|
|
775
|
+
protoOf(SegmentPool).w1o = function (segment) {
|
|
779
776
|
};
|
|
780
777
|
var SegmentPool_instance;
|
|
781
778
|
function SegmentPool_getInstance() {
|
|
@@ -806,12 +803,12 @@
|
|
|
806
803
|
}
|
|
807
804
|
var tmp = get_os().tmpdir();
|
|
808
805
|
var tmp0_elvis_lhs = (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
|
|
809
|
-
return
|
|
806
|
+
return Path_1(tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
|
|
810
807
|
}
|
|
811
808
|
function SystemFileSystem$1() {
|
|
812
809
|
SystemFileSystemImpl.call(this);
|
|
813
810
|
}
|
|
814
|
-
protoOf(SystemFileSystem$1).
|
|
811
|
+
protoOf(SystemFileSystem$1).m1p = function (path) {
|
|
815
812
|
// Inline function 'kotlin.check' call
|
|
816
813
|
// Inline function 'kotlin.contracts.contract' call
|
|
817
814
|
if (!(get_fs() !== null)) {
|
|
@@ -819,10 +816,10 @@
|
|
|
819
816
|
var message = "Module 'fs' was not found";
|
|
820
817
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
821
818
|
}
|
|
822
|
-
var tmp = get_fs().existsSync(path.
|
|
819
|
+
var tmp = get_fs().existsSync(path.v1p_1);
|
|
823
820
|
return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
|
|
824
821
|
};
|
|
825
|
-
protoOf(SystemFileSystem$1).
|
|
822
|
+
protoOf(SystemFileSystem$1).n1p = function (path, mustExist) {
|
|
826
823
|
// Inline function 'kotlin.check' call
|
|
827
824
|
// Inline function 'kotlin.contracts.contract' call
|
|
828
825
|
if (!(get_fs() !== null)) {
|
|
@@ -830,19 +827,19 @@
|
|
|
830
827
|
var message = "Module 'fs' was not found";
|
|
831
828
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
832
829
|
}
|
|
833
|
-
if (!this.
|
|
830
|
+
if (!this.m1p(path)) {
|
|
834
831
|
if (mustExist) {
|
|
835
|
-
throw new FileNotFoundException('File does not exist: ' + path.
|
|
832
|
+
throw new FileNotFoundException('File does not exist: ' + path.v1p_1);
|
|
836
833
|
}
|
|
837
834
|
return Unit_instance;
|
|
838
835
|
}
|
|
839
836
|
try {
|
|
840
|
-
var stats = get_fs().statSync(path.
|
|
837
|
+
var stats = get_fs().statSync(path.v1p_1);
|
|
841
838
|
var tmp = stats.isDirectory();
|
|
842
839
|
if ((!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE()) {
|
|
843
|
-
get_fs().rmdirSync(path.
|
|
840
|
+
get_fs().rmdirSync(path.v1p_1);
|
|
844
841
|
} else {
|
|
845
|
-
get_fs().rmSync(path.
|
|
842
|
+
get_fs().rmSync(path.v1p_1);
|
|
846
843
|
}
|
|
847
844
|
} catch ($p) {
|
|
848
845
|
if ($p instanceof Error) {
|
|
@@ -853,13 +850,13 @@
|
|
|
853
850
|
}
|
|
854
851
|
}
|
|
855
852
|
};
|
|
856
|
-
protoOf(SystemFileSystem$1).
|
|
857
|
-
var metadata = this.
|
|
853
|
+
protoOf(SystemFileSystem$1).p1p = function (path, mustCreate) {
|
|
854
|
+
var metadata = this.w1p(path);
|
|
858
855
|
if (!(metadata == null)) {
|
|
859
856
|
if (mustCreate) {
|
|
860
857
|
throw IOException_init_$Create$('Path already exists: ' + path);
|
|
861
858
|
}
|
|
862
|
-
if (metadata.
|
|
859
|
+
if (metadata.s1p_1) {
|
|
863
860
|
throw IOException_init_$Create$("Path already exists and it's a file: " + path);
|
|
864
861
|
}
|
|
865
862
|
return Unit_instance;
|
|
@@ -867,9 +864,9 @@
|
|
|
867
864
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
868
865
|
var parts = ArrayList_init_$Create$();
|
|
869
866
|
var p = path;
|
|
870
|
-
while (!(p == null) ? !this.
|
|
867
|
+
while (!(p == null) ? !this.m1p(p) : false) {
|
|
871
868
|
parts.s(p.toString());
|
|
872
|
-
p = p.
|
|
869
|
+
p = p.x1p();
|
|
873
870
|
}
|
|
874
871
|
// Inline function 'kotlin.collections.forEach' call
|
|
875
872
|
var tmp0_iterator = asReversed(parts).v();
|
|
@@ -879,7 +876,7 @@
|
|
|
879
876
|
get_fs().mkdirSync(element);
|
|
880
877
|
}
|
|
881
878
|
};
|
|
882
|
-
protoOf(SystemFileSystem$1).
|
|
879
|
+
protoOf(SystemFileSystem$1).w1p = function (path) {
|
|
883
880
|
// Inline function 'kotlin.check' call
|
|
884
881
|
// Inline function 'kotlin.contracts.contract' call
|
|
885
882
|
if (!(get_fs() !== null)) {
|
|
@@ -889,7 +886,7 @@
|
|
|
889
886
|
}
|
|
890
887
|
var tmp;
|
|
891
888
|
try {
|
|
892
|
-
var stat = get_fs().statSync(path.
|
|
889
|
+
var stat = get_fs().statSync(path.v1p_1);
|
|
893
890
|
var tmp_0 = stat.mode;
|
|
894
891
|
var mode = (!(tmp_0 == null) ? typeof tmp_0 === 'number' : false) ? tmp_0 : THROW_CCE();
|
|
895
892
|
var tmp_1 = get_fs().constants.S_IFMT;
|
|
@@ -908,7 +905,7 @@
|
|
|
908
905
|
var tmp_6;
|
|
909
906
|
if ($p instanceof Error) {
|
|
910
907
|
var t = $p;
|
|
911
|
-
if (this.
|
|
908
|
+
if (this.m1p(path))
|
|
912
909
|
throw new IOException('Stat failed for ' + path, t);
|
|
913
910
|
return null;
|
|
914
911
|
} else {
|
|
@@ -917,7 +914,7 @@
|
|
|
917
914
|
}
|
|
918
915
|
return tmp;
|
|
919
916
|
};
|
|
920
|
-
protoOf(SystemFileSystem$1).
|
|
917
|
+
protoOf(SystemFileSystem$1).r1p = function (path, append) {
|
|
921
918
|
// Inline function 'kotlin.check' call
|
|
922
919
|
// Inline function 'kotlin.contracts.contract' call
|
|
923
920
|
if (!(get_fs() !== null)) {
|
|
@@ -950,10 +947,10 @@
|
|
|
950
947
|
return this_0.o2().u8_1;
|
|
951
948
|
}
|
|
952
949
|
var SystemPathSeparator$delegate;
|
|
953
|
-
function
|
|
954
|
-
this.
|
|
950
|
+
function Path_0(rawPath, any) {
|
|
951
|
+
this.v1p_1 = removeTrailingSeparators(rawPath);
|
|
955
952
|
}
|
|
956
|
-
protoOf(
|
|
953
|
+
protoOf(Path_0).x1p = function () {
|
|
957
954
|
// Inline function 'kotlin.check' call
|
|
958
955
|
// Inline function 'kotlin.contracts.contract' call
|
|
959
956
|
if (!(get_pathLib() !== null)) {
|
|
@@ -962,17 +959,17 @@
|
|
|
962
959
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
963
960
|
}
|
|
964
961
|
// Inline function 'kotlin.text.isEmpty' call
|
|
965
|
-
var this_0 = this.
|
|
962
|
+
var this_0 = this.v1p_1;
|
|
966
963
|
if (charSequenceLength(this_0) === 0)
|
|
967
964
|
return null;
|
|
968
965
|
if (get_isWindows()) {
|
|
969
|
-
if (!contains(this.
|
|
966
|
+
if (!contains(this.v1p_1, get_UnixPathSeparator()) ? !contains(this.v1p_1, get_WindowsPathSeparator()) : false) {
|
|
970
967
|
return null;
|
|
971
968
|
}
|
|
972
|
-
} else if (!contains(this.
|
|
969
|
+
} else if (!contains(this.v1p_1, get_SystemPathSeparator())) {
|
|
973
970
|
return null;
|
|
974
971
|
}
|
|
975
|
-
var tmp = get_pathLib().dirname(this.
|
|
972
|
+
var tmp = get_pathLib().dirname(this.v1p_1);
|
|
976
973
|
var p = (tmp == null ? true : typeof tmp === 'string') ? tmp : THROW_CCE();
|
|
977
974
|
var tmp_0;
|
|
978
975
|
// Inline function 'kotlin.text.isNullOrEmpty' call
|
|
@@ -980,54 +977,54 @@
|
|
|
980
977
|
if (p == null ? true : charSequenceLength(p) === 0) {
|
|
981
978
|
tmp_0 = null;
|
|
982
979
|
} else {
|
|
983
|
-
if (p === this.
|
|
980
|
+
if (p === this.v1p_1) {
|
|
984
981
|
tmp_0 = null;
|
|
985
982
|
} else {
|
|
986
|
-
tmp_0 =
|
|
983
|
+
tmp_0 = Path_1(p);
|
|
987
984
|
}
|
|
988
985
|
}
|
|
989
986
|
return tmp_0;
|
|
990
987
|
};
|
|
991
|
-
protoOf(
|
|
992
|
-
return this.
|
|
988
|
+
protoOf(Path_0).toString = function () {
|
|
989
|
+
return this.v1p_1;
|
|
993
990
|
};
|
|
994
|
-
protoOf(
|
|
991
|
+
protoOf(Path_0).equals = function (other) {
|
|
995
992
|
if (this === other)
|
|
996
993
|
return true;
|
|
997
|
-
if (!(other instanceof
|
|
994
|
+
if (!(other instanceof Path_0))
|
|
998
995
|
return false;
|
|
999
|
-
return this.
|
|
996
|
+
return this.v1p_1 === other.v1p_1;
|
|
1000
997
|
};
|
|
1001
|
-
protoOf(
|
|
1002
|
-
return getStringHashCode(this.
|
|
998
|
+
protoOf(Path_0).hashCode = function () {
|
|
999
|
+
return getStringHashCode(this.v1p_1);
|
|
1003
1000
|
};
|
|
1004
1001
|
function open($this, path, append) {
|
|
1005
1002
|
var flags = append ? 'a' : 'w';
|
|
1006
1003
|
var tmp;
|
|
1007
1004
|
try {
|
|
1008
|
-
tmp = get_fs().openSync(path.
|
|
1005
|
+
tmp = get_fs().openSync(path.v1p_1, flags);
|
|
1009
1006
|
} catch ($p) {
|
|
1010
1007
|
var tmp_0;
|
|
1011
1008
|
if ($p instanceof Error) {
|
|
1012
1009
|
var e = $p;
|
|
1013
|
-
throw new IOException('Failed to open a file ' + path.
|
|
1010
|
+
throw new IOException('Failed to open a file ' + path.v1p_1 + '.', e);
|
|
1014
1011
|
} else {
|
|
1015
1012
|
throw $p;
|
|
1016
1013
|
}
|
|
1017
1014
|
}
|
|
1018
1015
|
var fd = tmp;
|
|
1019
1016
|
if (fd < 0)
|
|
1020
|
-
throw IOException_init_$Create$('Failed to open a file ' + path.
|
|
1017
|
+
throw IOException_init_$Create$('Failed to open a file ' + path.v1p_1 + '.');
|
|
1021
1018
|
return fd;
|
|
1022
1019
|
}
|
|
1023
1020
|
function FileSink(path, append) {
|
|
1024
|
-
this.
|
|
1025
|
-
this.
|
|
1021
|
+
this.y1p_1 = false;
|
|
1022
|
+
this.z1p_1 = open(this, path, append);
|
|
1026
1023
|
}
|
|
1027
|
-
protoOf(FileSink).
|
|
1024
|
+
protoOf(FileSink).a1p = function (source, byteCount) {
|
|
1028
1025
|
// Inline function 'kotlin.check' call
|
|
1029
1026
|
// Inline function 'kotlin.contracts.contract' call
|
|
1030
|
-
if (!!this.
|
|
1027
|
+
if (!!this.y1p_1) {
|
|
1031
1028
|
// Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
|
|
1032
1029
|
var message = 'Sink is closed.';
|
|
1033
1030
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1036,15 +1033,15 @@
|
|
|
1036
1033
|
return Unit_instance;
|
|
1037
1034
|
}
|
|
1038
1035
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1039
|
-
var b = source.
|
|
1036
|
+
var b = source.g1o_1;
|
|
1040
1037
|
var remainingBytes = byteCount.k8(b) <= 0 ? byteCount : b;
|
|
1041
1038
|
while (remainingBytes.k8(new Long(0, 0)) > 0) {
|
|
1042
|
-
var head = ensureNotNull(source.
|
|
1043
|
-
var segmentBytes = head.
|
|
1039
|
+
var head = ensureNotNull(source.f1o_1);
|
|
1040
|
+
var segmentBytes = head.n1o_1 - head.m1o_1 | 0;
|
|
1044
1041
|
var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
|
|
1045
|
-
buf.fill(head.
|
|
1042
|
+
buf.fill(head.l1o_1, head.m1o_1, segmentBytes);
|
|
1046
1043
|
try {
|
|
1047
|
-
get_fs().writeFileSync(this.
|
|
1044
|
+
get_fs().writeFileSync(this.z1p_1, buf);
|
|
1048
1045
|
} catch ($p) {
|
|
1049
1046
|
if ($p instanceof Error) {
|
|
1050
1047
|
var e = $p;
|
|
@@ -1053,20 +1050,20 @@
|
|
|
1053
1050
|
throw $p;
|
|
1054
1051
|
}
|
|
1055
1052
|
}
|
|
1056
|
-
source.
|
|
1053
|
+
source.s1o(toLong(segmentBytes));
|
|
1057
1054
|
// Inline function 'kotlin.Long.minus' call
|
|
1058
1055
|
remainingBytes = remainingBytes.p9(toLong(segmentBytes));
|
|
1059
1056
|
}
|
|
1060
1057
|
};
|
|
1061
|
-
protoOf(FileSink).
|
|
1062
|
-
if (!this.
|
|
1063
|
-
this.
|
|
1064
|
-
get_fs().closeSync(this.
|
|
1058
|
+
protoOf(FileSink).f1p = function () {
|
|
1059
|
+
if (!this.y1p_1) {
|
|
1060
|
+
this.y1p_1 = true;
|
|
1061
|
+
get_fs().closeSync(this.z1p_1);
|
|
1065
1062
|
}
|
|
1066
1063
|
};
|
|
1067
|
-
function
|
|
1064
|
+
function Path_1(path) {
|
|
1068
1065
|
_init_properties_PathsJs_kt__cx5uqj();
|
|
1069
|
-
return new
|
|
1066
|
+
return new Path_0(path, null);
|
|
1070
1067
|
}
|
|
1071
1068
|
function SystemPathSeparator$delegate$lambda() {
|
|
1072
1069
|
_init_properties_PathsJs_kt__cx5uqj();
|
|
@@ -1167,8 +1164,8 @@
|
|
|
1167
1164
|
return tmp;
|
|
1168
1165
|
}
|
|
1169
1166
|
//region block: post-declaration
|
|
1170
|
-
protoOf(SystemFileSystemImpl).
|
|
1171
|
-
protoOf(SystemFileSystemImpl).
|
|
1167
|
+
protoOf(SystemFileSystemImpl).o1p = delete$default;
|
|
1168
|
+
protoOf(SystemFileSystemImpl).q1p = createDirectories$default;
|
|
1172
1169
|
//endregion
|
|
1173
1170
|
//region block: init
|
|
1174
1171
|
Companion_instance = new Companion();
|
|
@@ -1179,7 +1176,7 @@
|
|
|
1179
1176
|
//region block: exports
|
|
1180
1177
|
_.$_$ = _.$_$ || {};
|
|
1181
1178
|
_.$_$.a = Path;
|
|
1182
|
-
_.$_$.b =
|
|
1179
|
+
_.$_$.b = Path_1;
|
|
1183
1180
|
_.$_$.c = get_SystemFileSystem;
|
|
1184
1181
|
_.$_$.d = get_SystemTemporaryDirectory;
|
|
1185
1182
|
_.$_$.e = buffered;
|