game_client_logic_deb 1.8.69 → 1.8.70
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 +1363 -1162
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +9279 -9090
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +50 -7
- package/Logic_Debertz-game_client.js +3274 -3191
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +215 -214
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +268 -268
- 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 +1999 -1999
- 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
|
}
|
|
@@ -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;
|
|
@@ -769,13 +769,13 @@
|
|
|
769
769
|
captureStack(this, EOFException);
|
|
770
770
|
}
|
|
771
771
|
function SegmentPool() {
|
|
772
|
-
this.
|
|
773
|
-
this.
|
|
772
|
+
this.u1o_1 = 0;
|
|
773
|
+
this.v1o_1 = 0;
|
|
774
774
|
}
|
|
775
|
-
protoOf(SegmentPool).
|
|
775
|
+
protoOf(SegmentPool).y1o = function () {
|
|
776
776
|
return Segment_init_$Create$();
|
|
777
777
|
};
|
|
778
|
-
protoOf(SegmentPool).
|
|
778
|
+
protoOf(SegmentPool).w1o = function (segment) {
|
|
779
779
|
};
|
|
780
780
|
var SegmentPool_instance;
|
|
781
781
|
function SegmentPool_getInstance() {
|
|
@@ -811,7 +811,7 @@
|
|
|
811
811
|
function SystemFileSystem$1() {
|
|
812
812
|
SystemFileSystemImpl.call(this);
|
|
813
813
|
}
|
|
814
|
-
protoOf(SystemFileSystem$1).
|
|
814
|
+
protoOf(SystemFileSystem$1).m1p = function (path) {
|
|
815
815
|
// Inline function 'kotlin.check' call
|
|
816
816
|
// Inline function 'kotlin.contracts.contract' call
|
|
817
817
|
if (!(get_fs() !== null)) {
|
|
@@ -819,10 +819,10 @@
|
|
|
819
819
|
var message = "Module 'fs' was not found";
|
|
820
820
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
821
821
|
}
|
|
822
|
-
var tmp = get_fs().existsSync(path.
|
|
822
|
+
var tmp = get_fs().existsSync(path.v1p_1);
|
|
823
823
|
return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
|
|
824
824
|
};
|
|
825
|
-
protoOf(SystemFileSystem$1).
|
|
825
|
+
protoOf(SystemFileSystem$1).n1p = function (path, mustExist) {
|
|
826
826
|
// Inline function 'kotlin.check' call
|
|
827
827
|
// Inline function 'kotlin.contracts.contract' call
|
|
828
828
|
if (!(get_fs() !== null)) {
|
|
@@ -830,19 +830,19 @@
|
|
|
830
830
|
var message = "Module 'fs' was not found";
|
|
831
831
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
832
832
|
}
|
|
833
|
-
if (!this.
|
|
833
|
+
if (!this.m1p(path)) {
|
|
834
834
|
if (mustExist) {
|
|
835
|
-
throw new FileNotFoundException('File does not exist: ' + path.
|
|
835
|
+
throw new FileNotFoundException('File does not exist: ' + path.v1p_1);
|
|
836
836
|
}
|
|
837
837
|
return Unit_instance;
|
|
838
838
|
}
|
|
839
839
|
try {
|
|
840
|
-
var stats = get_fs().statSync(path.
|
|
840
|
+
var stats = get_fs().statSync(path.v1p_1);
|
|
841
841
|
var tmp = stats.isDirectory();
|
|
842
842
|
if ((!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE()) {
|
|
843
|
-
get_fs().rmdirSync(path.
|
|
843
|
+
get_fs().rmdirSync(path.v1p_1);
|
|
844
844
|
} else {
|
|
845
|
-
get_fs().rmSync(path.
|
|
845
|
+
get_fs().rmSync(path.v1p_1);
|
|
846
846
|
}
|
|
847
847
|
} catch ($p) {
|
|
848
848
|
if ($p instanceof Error) {
|
|
@@ -853,13 +853,13 @@
|
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
};
|
|
856
|
-
protoOf(SystemFileSystem$1).
|
|
857
|
-
var metadata = this.
|
|
856
|
+
protoOf(SystemFileSystem$1).p1p = function (path, mustCreate) {
|
|
857
|
+
var metadata = this.w1p(path);
|
|
858
858
|
if (!(metadata == null)) {
|
|
859
859
|
if (mustCreate) {
|
|
860
860
|
throw IOException_init_$Create$('Path already exists: ' + path);
|
|
861
861
|
}
|
|
862
|
-
if (metadata.
|
|
862
|
+
if (metadata.s1p_1) {
|
|
863
863
|
throw IOException_init_$Create$("Path already exists and it's a file: " + path);
|
|
864
864
|
}
|
|
865
865
|
return Unit_instance;
|
|
@@ -867,9 +867,9 @@
|
|
|
867
867
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
868
868
|
var parts = ArrayList_init_$Create$();
|
|
869
869
|
var p = path;
|
|
870
|
-
while (!(p == null) ? !this.
|
|
870
|
+
while (!(p == null) ? !this.m1p(p) : false) {
|
|
871
871
|
parts.s(p.toString());
|
|
872
|
-
p = p.
|
|
872
|
+
p = p.x1p();
|
|
873
873
|
}
|
|
874
874
|
// Inline function 'kotlin.collections.forEach' call
|
|
875
875
|
var tmp0_iterator = asReversed(parts).v();
|
|
@@ -879,7 +879,7 @@
|
|
|
879
879
|
get_fs().mkdirSync(element);
|
|
880
880
|
}
|
|
881
881
|
};
|
|
882
|
-
protoOf(SystemFileSystem$1).
|
|
882
|
+
protoOf(SystemFileSystem$1).w1p = function (path) {
|
|
883
883
|
// Inline function 'kotlin.check' call
|
|
884
884
|
// Inline function 'kotlin.contracts.contract' call
|
|
885
885
|
if (!(get_fs() !== null)) {
|
|
@@ -889,7 +889,7 @@
|
|
|
889
889
|
}
|
|
890
890
|
var tmp;
|
|
891
891
|
try {
|
|
892
|
-
var stat = get_fs().statSync(path.
|
|
892
|
+
var stat = get_fs().statSync(path.v1p_1);
|
|
893
893
|
var tmp_0 = stat.mode;
|
|
894
894
|
var mode = (!(tmp_0 == null) ? typeof tmp_0 === 'number' : false) ? tmp_0 : THROW_CCE();
|
|
895
895
|
var tmp_1 = get_fs().constants.S_IFMT;
|
|
@@ -908,7 +908,7 @@
|
|
|
908
908
|
var tmp_6;
|
|
909
909
|
if ($p instanceof Error) {
|
|
910
910
|
var t = $p;
|
|
911
|
-
if (this.
|
|
911
|
+
if (this.m1p(path))
|
|
912
912
|
throw new IOException('Stat failed for ' + path, t);
|
|
913
913
|
return null;
|
|
914
914
|
} else {
|
|
@@ -917,7 +917,7 @@
|
|
|
917
917
|
}
|
|
918
918
|
return tmp;
|
|
919
919
|
};
|
|
920
|
-
protoOf(SystemFileSystem$1).
|
|
920
|
+
protoOf(SystemFileSystem$1).r1p = function (path, append) {
|
|
921
921
|
// Inline function 'kotlin.check' call
|
|
922
922
|
// Inline function 'kotlin.contracts.contract' call
|
|
923
923
|
if (!(get_fs() !== null)) {
|
|
@@ -951,9 +951,9 @@
|
|
|
951
951
|
}
|
|
952
952
|
var SystemPathSeparator$delegate;
|
|
953
953
|
function Path_1(rawPath, any) {
|
|
954
|
-
this.
|
|
954
|
+
this.v1p_1 = removeTrailingSeparators(rawPath);
|
|
955
955
|
}
|
|
956
|
-
protoOf(Path_1).
|
|
956
|
+
protoOf(Path_1).x1p = function () {
|
|
957
957
|
// Inline function 'kotlin.check' call
|
|
958
958
|
// Inline function 'kotlin.contracts.contract' call
|
|
959
959
|
if (!(get_pathLib() !== null)) {
|
|
@@ -962,17 +962,17 @@
|
|
|
962
962
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
963
963
|
}
|
|
964
964
|
// Inline function 'kotlin.text.isEmpty' call
|
|
965
|
-
var this_0 = this.
|
|
965
|
+
var this_0 = this.v1p_1;
|
|
966
966
|
if (charSequenceLength(this_0) === 0)
|
|
967
967
|
return null;
|
|
968
968
|
if (get_isWindows()) {
|
|
969
|
-
if (!contains(this.
|
|
969
|
+
if (!contains(this.v1p_1, get_UnixPathSeparator()) ? !contains(this.v1p_1, get_WindowsPathSeparator()) : false) {
|
|
970
970
|
return null;
|
|
971
971
|
}
|
|
972
|
-
} else if (!contains(this.
|
|
972
|
+
} else if (!contains(this.v1p_1, get_SystemPathSeparator())) {
|
|
973
973
|
return null;
|
|
974
974
|
}
|
|
975
|
-
var tmp = get_pathLib().dirname(this.
|
|
975
|
+
var tmp = get_pathLib().dirname(this.v1p_1);
|
|
976
976
|
var p = (tmp == null ? true : typeof tmp === 'string') ? tmp : THROW_CCE();
|
|
977
977
|
var tmp_0;
|
|
978
978
|
// Inline function 'kotlin.text.isNullOrEmpty' call
|
|
@@ -980,7 +980,7 @@
|
|
|
980
980
|
if (p == null ? true : charSequenceLength(p) === 0) {
|
|
981
981
|
tmp_0 = null;
|
|
982
982
|
} else {
|
|
983
|
-
if (p === this.
|
|
983
|
+
if (p === this.v1p_1) {
|
|
984
984
|
tmp_0 = null;
|
|
985
985
|
} else {
|
|
986
986
|
tmp_0 = Path_2(p);
|
|
@@ -989,45 +989,45 @@
|
|
|
989
989
|
return tmp_0;
|
|
990
990
|
};
|
|
991
991
|
protoOf(Path_1).toString = function () {
|
|
992
|
-
return this.
|
|
992
|
+
return this.v1p_1;
|
|
993
993
|
};
|
|
994
994
|
protoOf(Path_1).equals = function (other) {
|
|
995
995
|
if (this === other)
|
|
996
996
|
return true;
|
|
997
997
|
if (!(other instanceof Path_1))
|
|
998
998
|
return false;
|
|
999
|
-
return this.
|
|
999
|
+
return this.v1p_1 === other.v1p_1;
|
|
1000
1000
|
};
|
|
1001
1001
|
protoOf(Path_1).hashCode = function () {
|
|
1002
|
-
return getStringHashCode(this.
|
|
1002
|
+
return getStringHashCode(this.v1p_1);
|
|
1003
1003
|
};
|
|
1004
1004
|
function open($this, path, append) {
|
|
1005
1005
|
var flags = append ? 'a' : 'w';
|
|
1006
1006
|
var tmp;
|
|
1007
1007
|
try {
|
|
1008
|
-
tmp = get_fs().openSync(path.
|
|
1008
|
+
tmp = get_fs().openSync(path.v1p_1, flags);
|
|
1009
1009
|
} catch ($p) {
|
|
1010
1010
|
var tmp_0;
|
|
1011
1011
|
if ($p instanceof Error) {
|
|
1012
1012
|
var e = $p;
|
|
1013
|
-
throw new IOException('Failed to open a file ' + path.
|
|
1013
|
+
throw new IOException('Failed to open a file ' + path.v1p_1 + '.', e);
|
|
1014
1014
|
} else {
|
|
1015
1015
|
throw $p;
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
var fd = tmp;
|
|
1019
1019
|
if (fd < 0)
|
|
1020
|
-
throw IOException_init_$Create$('Failed to open a file ' + path.
|
|
1020
|
+
throw IOException_init_$Create$('Failed to open a file ' + path.v1p_1 + '.');
|
|
1021
1021
|
return fd;
|
|
1022
1022
|
}
|
|
1023
1023
|
function FileSink(path, append) {
|
|
1024
|
-
this.
|
|
1025
|
-
this.
|
|
1024
|
+
this.y1p_1 = false;
|
|
1025
|
+
this.z1p_1 = open(this, path, append);
|
|
1026
1026
|
}
|
|
1027
|
-
protoOf(FileSink).
|
|
1027
|
+
protoOf(FileSink).a1p = function (source, byteCount) {
|
|
1028
1028
|
// Inline function 'kotlin.check' call
|
|
1029
1029
|
// Inline function 'kotlin.contracts.contract' call
|
|
1030
|
-
if (!!this.
|
|
1030
|
+
if (!!this.y1p_1) {
|
|
1031
1031
|
// Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
|
|
1032
1032
|
var message = 'Sink is closed.';
|
|
1033
1033
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1036,15 +1036,15 @@
|
|
|
1036
1036
|
return Unit_instance;
|
|
1037
1037
|
}
|
|
1038
1038
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1039
|
-
var b = source.
|
|
1039
|
+
var b = source.g1o_1;
|
|
1040
1040
|
var remainingBytes = byteCount.k8(b) <= 0 ? byteCount : b;
|
|
1041
1041
|
while (remainingBytes.k8(new Long(0, 0)) > 0) {
|
|
1042
|
-
var head = ensureNotNull(source.
|
|
1043
|
-
var segmentBytes = head.
|
|
1042
|
+
var head = ensureNotNull(source.f1o_1);
|
|
1043
|
+
var segmentBytes = head.n1o_1 - head.m1o_1 | 0;
|
|
1044
1044
|
var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
|
|
1045
|
-
buf.fill(head.
|
|
1045
|
+
buf.fill(head.l1o_1, head.m1o_1, segmentBytes);
|
|
1046
1046
|
try {
|
|
1047
|
-
get_fs().writeFileSync(this.
|
|
1047
|
+
get_fs().writeFileSync(this.z1p_1, buf);
|
|
1048
1048
|
} catch ($p) {
|
|
1049
1049
|
if ($p instanceof Error) {
|
|
1050
1050
|
var e = $p;
|
|
@@ -1053,15 +1053,15 @@
|
|
|
1053
1053
|
throw $p;
|
|
1054
1054
|
}
|
|
1055
1055
|
}
|
|
1056
|
-
source.
|
|
1056
|
+
source.s1o(toLong(segmentBytes));
|
|
1057
1057
|
// Inline function 'kotlin.Long.minus' call
|
|
1058
1058
|
remainingBytes = remainingBytes.p9(toLong(segmentBytes));
|
|
1059
1059
|
}
|
|
1060
1060
|
};
|
|
1061
|
-
protoOf(FileSink).
|
|
1062
|
-
if (!this.
|
|
1063
|
-
this.
|
|
1064
|
-
get_fs().closeSync(this.
|
|
1061
|
+
protoOf(FileSink).f1p = function () {
|
|
1062
|
+
if (!this.y1p_1) {
|
|
1063
|
+
this.y1p_1 = true;
|
|
1064
|
+
get_fs().closeSync(this.z1p_1);
|
|
1065
1065
|
}
|
|
1066
1066
|
};
|
|
1067
1067
|
function Path_2(path) {
|
|
@@ -1167,8 +1167,8 @@
|
|
|
1167
1167
|
return tmp;
|
|
1168
1168
|
}
|
|
1169
1169
|
//region block: post-declaration
|
|
1170
|
-
protoOf(SystemFileSystemImpl).
|
|
1171
|
-
protoOf(SystemFileSystemImpl).
|
|
1170
|
+
protoOf(SystemFileSystemImpl).o1p = delete$default;
|
|
1171
|
+
protoOf(SystemFileSystemImpl).q1p = createDirectories$default;
|
|
1172
1172
|
//endregion
|
|
1173
1173
|
//region block: init
|
|
1174
1174
|
Companion_instance = new Companion();
|