game_client_logic_deb 1.8.71 → 1.8.76
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/Kosi-Kaverit-kaverit.js +75 -75
- package/Kosi-Kodein-kodein-di.js +618 -618
- package/Kotlin-DateTime-library-kotlinx-datetime.js +143 -143
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1737 -2678
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +12497 -12201
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +137 -54
- package/Logic_Debertz-game_client.js +4441 -4437
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2066 -1979
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/{88b0986a7186d029-atomicfu-js-ir.js → kotlinx-atomicfu.js} +29 -29
- package/kotlinx-atomicfu.js.map +1 -0
- package/{kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js → kotlinx-coroutines-core.js} +2713 -2676
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kotlinx-io-kotlinx-io-core.js +292 -292
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +1885 -1885
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +1405 -1405
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +1184 -0
- package/raspberry-cardgame-lib-core.js.map +1 -0
- package/secure-random-secure-random.js +15 -0
- package/secure-random-secure-random.js.map +1 -0
- package/uuid.js +32 -32
- package/88b0986a7186d029-atomicfu-js-ir.js.map +0 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +0 -1
|
@@ -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.$_$.sd;
|
|
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.$_$.r9;
|
|
21
|
+
var protoOf = kotlin_kotlin.$_$.za;
|
|
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.$_$.pe;
|
|
24
|
+
var toLong = kotlin_kotlin.$_$.cb;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.eb;
|
|
26
26
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.d1;
|
|
27
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
28
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
27
|
+
var classMeta = kotlin_kotlin.$_$.w9;
|
|
28
|
+
var setMetadataFor = kotlin_kotlin.$_$.ab;
|
|
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.$_$.xa;
|
|
32
|
+
var objectMeta = kotlin_kotlin.$_$.ya;
|
|
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.$_$.t9;
|
|
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.$_$.bb;
|
|
38
|
+
var interfaceMeta = kotlin_kotlin.$_$.ga;
|
|
39
39
|
var toString_0 = kotlin_kotlin.$_$.p2;
|
|
40
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
40
|
+
var startsWith = kotlin_kotlin.$_$.nc;
|
|
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.$_$.u9;
|
|
43
|
+
var endsWith = kotlin_kotlin.$_$.bc;
|
|
44
|
+
var captureStack = kotlin_kotlin.$_$.q9;
|
|
45
|
+
var Exception = kotlin_kotlin.$_$.pd;
|
|
46
46
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.i1;
|
|
47
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
47
|
+
var THROW_CCE = kotlin_kotlin.$_$.yd;
|
|
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.$_$.z9;
|
|
51
|
+
var contains = kotlin_kotlin.$_$.ac;
|
|
52
|
+
var getStringHashCode = kotlin_kotlin.$_$.ea;
|
|
53
|
+
var Char = kotlin_kotlin.$_$.id;
|
|
54
|
+
var KProperty0 = kotlin_kotlin.$_$.pb;
|
|
55
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.da;
|
|
56
|
+
var lazy = kotlin_kotlin.$_$.ue;
|
|
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.a2k(path, mustExist);
|
|
68
68
|
tmp = Unit_instance;
|
|
69
69
|
} else {
|
|
70
|
-
tmp = $super.
|
|
70
|
+
tmp = $super.a2k.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.c2k(path, mustCreate);
|
|
79
79
|
tmp = Unit_instance;
|
|
80
80
|
} else {
|
|
81
|
-
tmp = $super.
|
|
81
|
+
tmp = $super.c2k.call(this, path, mustCreate);
|
|
82
82
|
}
|
|
83
83
|
return tmp;
|
|
84
84
|
}
|
|
@@ -100,16 +100,16 @@
|
|
|
100
100
|
var HEX_DIGIT_CHARS;
|
|
101
101
|
function checkBounds(size, startIndex, endIndex) {
|
|
102
102
|
_init_properties__Util_kt__g8tcl9();
|
|
103
|
-
if (startIndex.
|
|
103
|
+
if (startIndex.m8(new Long(0, 0)) < 0 ? true : endIndex.m8(size) > 0) {
|
|
104
104
|
throw IndexOutOfBoundsException_init_$Create$('startIndex (' + startIndex.toString() + ') and endIndex (' + endIndex.toString() + ') are not within the range [0..size(' + size.toString() + '))');
|
|
105
105
|
}
|
|
106
|
-
if (startIndex.
|
|
106
|
+
if (startIndex.m8(endIndex) > 0) {
|
|
107
107
|
throw IllegalArgumentException_init_$Create$('startIndex (' + startIndex.toString() + ') > endIndex (' + endIndex.toString() + ')');
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
function checkOffsetAndCount(size, offset, byteCount) {
|
|
111
111
|
_init_properties__Util_kt__g8tcl9();
|
|
112
|
-
if (((offset.
|
|
112
|
+
if (((offset.m8(new Long(0, 0)) < 0 ? true : offset.m8(size) > 0) ? true : size.r9(offset).m8(byteCount) < 0) ? true : byteCount.m8(new Long(0, 0)) < 0) {
|
|
113
113
|
throw IllegalArgumentException_init_$Create$('offset (' + offset.toString() + ') and byteCount (' + byteCount.toString() + ') are not within the range [0..size(' + size.toString() + '))');
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -122,45 +122,45 @@
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
function Buffer() {
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
127
|
-
this.
|
|
125
|
+
this.s2i_1 = null;
|
|
126
|
+
this.t2i_1 = new Long(0, 0);
|
|
127
|
+
this.u2i_1 = this;
|
|
128
128
|
}
|
|
129
|
-
protoOf(Buffer).
|
|
130
|
-
return this.
|
|
129
|
+
protoOf(Buffer).v2i = function () {
|
|
130
|
+
return this.u2i_1;
|
|
131
131
|
};
|
|
132
|
-
protoOf(Buffer).
|
|
132
|
+
protoOf(Buffer).w2i = function () {
|
|
133
133
|
return Unit_instance;
|
|
134
134
|
};
|
|
135
|
-
protoOf(Buffer).
|
|
136
|
-
var result = this.
|
|
135
|
+
protoOf(Buffer).x2i = function () {
|
|
136
|
+
var result = this.t2i_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.s2i_1).e2j_1);
|
|
140
140
|
var tmp;
|
|
141
|
-
var tmp_0 = tail.
|
|
141
|
+
var tmp_0 = tail.a2j_1;
|
|
142
142
|
if (tmp_0 < 8192) {
|
|
143
|
-
tmp = tail.
|
|
143
|
+
tmp = tail.c2j_1;
|
|
144
144
|
} else {
|
|
145
145
|
tmp = false;
|
|
146
146
|
}
|
|
147
147
|
if (tmp) {
|
|
148
|
-
result = result.
|
|
148
|
+
result = result.r9(toLong(tail.a2j_1 - tail.z2i_1 | 0));
|
|
149
149
|
}
|
|
150
150
|
return result;
|
|
151
151
|
};
|
|
152
|
-
protoOf(Buffer).
|
|
152
|
+
protoOf(Buffer).f2j = 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
|
|
156
|
-
if (!(byteCount.
|
|
156
|
+
if (!(byteCount.m8(new Long(0, 0)) >= 0)) {
|
|
157
157
|
// Inline function 'kotlinx.io.checkByteCount.<anonymous>' call
|
|
158
158
|
var message = 'byteCount (' + byteCount.toString() + ') < 0';
|
|
159
159
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
160
160
|
}
|
|
161
161
|
var remainingByteCount = byteCount;
|
|
162
|
-
while (remainingByteCount.
|
|
163
|
-
var tmp0_elvis_lhs = this.
|
|
162
|
+
while (remainingByteCount.m8(new Long(0, 0)) > 0) {
|
|
163
|
+
var tmp0_elvis_lhs = this.s2i_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.a2j_1 - head.z2i_1 | 0;
|
|
174
174
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
175
175
|
var b_0 = toLong(b);
|
|
176
|
-
var toSkip = (a.
|
|
177
|
-
this.
|
|
178
|
-
remainingByteCount = remainingByteCount.
|
|
179
|
-
head.
|
|
180
|
-
if (head.
|
|
181
|
-
this.
|
|
182
|
-
SegmentPool_instance.
|
|
176
|
+
var toSkip = (a.m8(b_0) <= 0 ? a : b_0).u8();
|
|
177
|
+
this.t2i_1 = this.t2i_1.r9(toLong(toSkip));
|
|
178
|
+
remainingByteCount = remainingByteCount.r9(toLong(toSkip));
|
|
179
|
+
head.z2i_1 = head.z2i_1 + toSkip | 0;
|
|
180
|
+
if (head.z2i_1 === head.a2j_1) {
|
|
181
|
+
this.s2i_1 = head.g2j();
|
|
182
|
+
SegmentPool_instance.j2j(head);
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
|
-
protoOf(Buffer).
|
|
186
|
+
protoOf(Buffer).k2j = 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.s2i_1 == null) {
|
|
201
|
+
var result = SegmentPool_instance.l2j();
|
|
202
|
+
this.s2i_1 = result;
|
|
203
|
+
result.e2j_1 = result;
|
|
204
|
+
result.d2j_1 = result;
|
|
205
205
|
return result;
|
|
206
206
|
}
|
|
207
|
-
var tail = ensureNotNull(this.
|
|
207
|
+
var tail = ensureNotNull(this.s2i_1).e2j_1;
|
|
208
208
|
var tmp_0;
|
|
209
|
-
var tmp_1 = ensureNotNull(tail).
|
|
209
|
+
var tmp_1 = ensureNotNull(tail).a2j_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.c2j_1;
|
|
214
214
|
}
|
|
215
215
|
if (tmp_0) {
|
|
216
|
-
tail = tail.
|
|
216
|
+
tail = tail.m2j(SegmentPool_instance.l2j());
|
|
217
217
|
}
|
|
218
218
|
return tail;
|
|
219
219
|
};
|
|
220
|
-
protoOf(Buffer).
|
|
220
|
+
protoOf(Buffer).n2j = function (source, byteCount) {
|
|
221
221
|
// Inline function 'kotlin.require' call
|
|
222
222
|
// Inline function 'kotlin.contracts.contract' call
|
|
223
223
|
if (!!(source === this)) {
|
|
@@ -225,141 +225,141 @@
|
|
|
225
225
|
var message = 'source == this';
|
|
226
226
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
227
227
|
}
|
|
228
|
-
checkOffsetAndCount(source.
|
|
228
|
+
checkOffsetAndCount(source.t2i_1, new Long(0, 0), byteCount);
|
|
229
229
|
var remainingByteCount = byteCount;
|
|
230
|
-
while (remainingByteCount.
|
|
231
|
-
if (remainingByteCount.
|
|
232
|
-
var tail = !(this.
|
|
230
|
+
while (remainingByteCount.m8(new Long(0, 0)) > 0) {
|
|
231
|
+
if (remainingByteCount.m8(toLong(ensureNotNull(source.s2i_1).a2j_1 - ensureNotNull(source.s2i_1).z2i_1 | 0)) < 0) {
|
|
232
|
+
var tail = !(this.s2i_1 == null) ? ensureNotNull(this.s2i_1).e2j_1 : null;
|
|
233
233
|
var tmp;
|
|
234
|
-
if (!(tail == null) ? tail.
|
|
234
|
+
if (!(tail == null) ? tail.c2j_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.
|
|
239
|
-
var this_1 = this_0.
|
|
240
|
-
var other_0 = tail.
|
|
241
|
-
var tmp_0 = this_1.
|
|
242
|
-
tmp = tmp_0.
|
|
238
|
+
var other = tail.a2j_1;
|
|
239
|
+
var this_1 = this_0.q9(toLong(other));
|
|
240
|
+
var other_0 = tail.b2j_1 ? 0 : tail.z2i_1;
|
|
241
|
+
var tmp_0 = this_1.r9(toLong(other_0));
|
|
242
|
+
tmp = tmp_0.m8(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.s2i_1).p2j(tail, remainingByteCount.u8());
|
|
248
|
+
source.t2i_1 = source.t2i_1.r9(remainingByteCount);
|
|
249
|
+
this.t2i_1 = this.t2i_1.q9(remainingByteCount);
|
|
250
250
|
return Unit_instance;
|
|
251
251
|
} else {
|
|
252
|
-
source.
|
|
252
|
+
source.s2i_1 = ensureNotNull(source.s2i_1).o2j(remainingByteCount.u8());
|
|
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.s2i_1;
|
|
256
|
+
var movedByteCount = toLong(ensureNotNull(segmentToMove).a2j_1 - segmentToMove.z2i_1 | 0);
|
|
257
|
+
source.s2i_1 = segmentToMove.g2j();
|
|
258
|
+
if (this.s2i_1 == null) {
|
|
259
|
+
this.s2i_1 = segmentToMove;
|
|
260
|
+
segmentToMove.e2j_1 = segmentToMove;
|
|
261
|
+
segmentToMove.d2j_1 = segmentToMove.e2j_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.s2i_1).e2j_1;
|
|
264
|
+
tail_0 = ensureNotNull(tail_0).m2j(segmentToMove);
|
|
265
|
+
tail_0.q2j();
|
|
266
266
|
}
|
|
267
|
-
source.
|
|
268
|
-
this.
|
|
269
|
-
remainingByteCount = remainingByteCount.
|
|
267
|
+
source.t2i_1 = source.t2i_1.r9(movedByteCount);
|
|
268
|
+
this.t2i_1 = this.t2i_1.q9(movedByteCount);
|
|
269
|
+
remainingByteCount = remainingByteCount.r9(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).r2j = function (byte) {
|
|
273
|
+
var tail = this.k2j(1);
|
|
274
|
+
var tmp1 = tail.a2j_1;
|
|
275
|
+
tail.a2j_1 = tmp1 + 1 | 0;
|
|
276
|
+
tail.y2i_1[tmp1] = byte;
|
|
277
|
+
this.t2i_1 = this.t2i_1.q9(new Long(1, 0));
|
|
278
278
|
};
|
|
279
|
-
protoOf(Buffer).
|
|
279
|
+
protoOf(Buffer).s2j = function () {
|
|
280
280
|
return Unit_instance;
|
|
281
281
|
};
|
|
282
282
|
protoOf(Buffer).toString = function () {
|
|
283
|
-
if (this.
|
|
283
|
+
if (this.t2i_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.t2i_1;
|
|
288
288
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
289
289
|
var a = toLong(maxPrintableBytes);
|
|
290
|
-
var len = (a.
|
|
291
|
-
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.
|
|
292
|
-
var curr = ensureNotNull(this.
|
|
290
|
+
var len = (a.m8(b) <= 0 ? a : b).u8();
|
|
291
|
+
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.t2i_1.m8(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
292
|
+
var curr = ensureNotNull(this.s2i_1);
|
|
293
293
|
var bytesWritten = 0;
|
|
294
|
-
var pos = curr.
|
|
294
|
+
var pos = curr.z2i_1;
|
|
295
295
|
while (bytesWritten < len) {
|
|
296
|
-
if (pos === curr.
|
|
297
|
-
curr = ensureNotNull(curr.
|
|
298
|
-
pos = curr.
|
|
296
|
+
if (pos === curr.a2j_1) {
|
|
297
|
+
curr = ensureNotNull(curr.d2j_1);
|
|
298
|
+
pos = curr.z2i_1;
|
|
299
299
|
}
|
|
300
|
-
var tmp = curr.
|
|
300
|
+
var tmp = curr.y2i_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
|
-
builder.
|
|
305
|
+
builder.h5(get_HEX_DIGIT_CHARS()[b_0 >> 4 & 15]).h5(get_HEX_DIGIT_CHARS()[b_0 & 15]);
|
|
306
306
|
}
|
|
307
|
-
if (this.
|
|
308
|
-
builder.
|
|
307
|
+
if (this.t2i_1.m8(toLong(maxPrintableBytes)) > 0) {
|
|
308
|
+
builder.h5(_Char___init__impl__6a9atx(8230));
|
|
309
309
|
}
|
|
310
|
-
return 'Buffer(size=' + this.
|
|
310
|
+
return 'Buffer(size=' + this.t2i_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.t2j_1 = sink;
|
|
317
|
+
this.u2j_1 = false;
|
|
318
|
+
this.v2j_1 = new Buffer();
|
|
319
319
|
}
|
|
320
|
-
protoOf(RealSink).
|
|
321
|
-
return this.
|
|
320
|
+
protoOf(RealSink).v2i = function () {
|
|
321
|
+
return this.v2j_1;
|
|
322
322
|
};
|
|
323
|
-
protoOf(RealSink).
|
|
323
|
+
protoOf(RealSink).n2j = 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.u2j_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));
|
|
331
331
|
}
|
|
332
332
|
// Inline function 'kotlin.require' call
|
|
333
333
|
// Inline function 'kotlin.contracts.contract' call
|
|
334
|
-
if (!(byteCount.
|
|
334
|
+
if (!(byteCount.m8(new Long(0, 0)) >= 0)) {
|
|
335
335
|
// Inline function 'kotlinx.io.RealSink.write.<anonymous>' call
|
|
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.v2j_1.n2j(source, byteCount);
|
|
340
|
+
this.w2i();
|
|
341
341
|
};
|
|
342
|
-
protoOf(RealSink).
|
|
342
|
+
protoOf(RealSink).w2i = 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.u2j_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.
|
|
352
|
-
if (byteCount.
|
|
353
|
-
this.
|
|
351
|
+
var byteCount = this.v2j_1.x2i();
|
|
352
|
+
if (byteCount.m8(new Long(0, 0)) > 0) {
|
|
353
|
+
this.t2j_1.n2j(this.v2j_1, byteCount);
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
|
-
protoOf(RealSink).
|
|
357
|
-
if (this.
|
|
356
|
+
protoOf(RealSink).s2j = function () {
|
|
357
|
+
if (this.u2j_1)
|
|
358
358
|
return Unit_instance;
|
|
359
359
|
var thrown = null;
|
|
360
360
|
try {
|
|
361
|
-
if (this.
|
|
362
|
-
this.
|
|
361
|
+
if (this.v2j_1.t2i_1.m8(new Long(0, 0)) > 0) {
|
|
362
|
+
this.t2j_1.n2j(this.v2j_1, this.v2j_1.t2i_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.t2j_1.s2j();
|
|
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.u2j_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.t2j_1 + ')';
|
|
389
389
|
};
|
|
390
390
|
function Segment_init_$Init$($this) {
|
|
391
391
|
Segment.call($this);
|
|
392
|
-
$this.
|
|
393
|
-
$this.
|
|
394
|
-
$this.
|
|
392
|
+
$this.y2i_1 = new Int8Array(8192);
|
|
393
|
+
$this.c2j_1 = true;
|
|
394
|
+
$this.b2j_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.y2i_1 = data;
|
|
403
|
+
$this.z2i_1 = pos;
|
|
404
|
+
$this.a2j_1 = limit;
|
|
405
|
+
$this.b2j_1 = shared;
|
|
406
|
+
$this.c2j_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.w2j_1 = 8192;
|
|
414
|
+
this.x2j_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).y2j = function () {
|
|
421
|
+
this.b2j_1 = true;
|
|
422
|
+
return Segment_init_$Create$_0(this.y2i_1, this.z2i_1, this.a2j_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).g2j = function () {
|
|
425
|
+
var result = !(this.d2j_1 === this) ? this.d2j_1 : null;
|
|
426
|
+
ensureNotNull(this.e2j_1).d2j_1 = this.d2j_1;
|
|
427
|
+
ensureNotNull(this.d2j_1).e2j_1 = this.e2j_1;
|
|
428
|
+
this.d2j_1 = null;
|
|
429
|
+
this.e2j_1 = null;
|
|
430
430
|
return result;
|
|
431
431
|
};
|
|
432
|
-
protoOf(Segment).
|
|
433
|
-
segment.
|
|
434
|
-
segment.
|
|
435
|
-
ensureNotNull(this.
|
|
436
|
-
this.
|
|
432
|
+
protoOf(Segment).m2j = function (segment) {
|
|
433
|
+
segment.e2j_1 = this;
|
|
434
|
+
segment.d2j_1 = this.d2j_1;
|
|
435
|
+
ensureNotNull(this.d2j_1).e2j_1 = segment;
|
|
436
|
+
this.d2j_1 = segment;
|
|
437
437
|
return segment;
|
|
438
438
|
};
|
|
439
|
-
protoOf(Segment).
|
|
439
|
+
protoOf(Segment).o2j = 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.a2j_1 - this.z2i_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.y2j();
|
|
450
450
|
} else {
|
|
451
|
-
prefix = SegmentPool_instance.
|
|
451
|
+
prefix = SegmentPool_instance.l2j();
|
|
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.y2i_1;
|
|
454
|
+
var destination = prefix.y2i_1;
|
|
455
|
+
var startIndex = this.z2i_1;
|
|
456
|
+
var endIndex = this.z2i_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.a2j_1 = prefix.z2i_1 + byteCount | 0;
|
|
465
|
+
this.z2i_1 = this.z2i_1 + byteCount | 0;
|
|
466
|
+
ensureNotNull(this.e2j_1).m2j(prefix);
|
|
467
467
|
return prefix;
|
|
468
468
|
};
|
|
469
|
-
protoOf(Segment).
|
|
469
|
+
protoOf(Segment).q2j = function () {
|
|
470
470
|
// Inline function 'kotlin.check' call
|
|
471
471
|
// Inline function 'kotlin.contracts.contract' call
|
|
472
|
-
if (!!(this.
|
|
472
|
+
if (!!(this.e2j_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.e2j_1).c2j_1)
|
|
478
478
|
return Unit_instance;
|
|
479
|
-
var byteCount = this.
|
|
480
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
479
|
+
var byteCount = this.a2j_1 - this.z2i_1 | 0;
|
|
480
|
+
var availableByteCount = (8192 - ensureNotNull(this.e2j_1).a2j_1 | 0) + (ensureNotNull(this.e2j_1).b2j_1 ? 0 : ensureNotNull(this.e2j_1).z2i_1) | 0;
|
|
481
481
|
if (byteCount > availableByteCount)
|
|
482
482
|
return Unit_instance;
|
|
483
|
-
this.
|
|
484
|
-
this.
|
|
485
|
-
SegmentPool_instance.
|
|
483
|
+
this.p2j(ensureNotNull(this.e2j_1), byteCount);
|
|
484
|
+
this.g2j();
|
|
485
|
+
SegmentPool_instance.j2j(this);
|
|
486
486
|
};
|
|
487
|
-
protoOf(Segment).
|
|
487
|
+
protoOf(Segment).p2j = function (sink, byteCount) {
|
|
488
488
|
// Inline function 'kotlin.check' call
|
|
489
489
|
// Inline function 'kotlin.contracts.contract' call
|
|
490
|
-
if (!sink.
|
|
490
|
+
if (!sink.c2j_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.a2j_1 + byteCount | 0) > 8192) {
|
|
496
|
+
if (sink.b2j_1)
|
|
497
497
|
throw IllegalArgumentException_init_$Create$_0();
|
|
498
|
-
if (((sink.
|
|
498
|
+
if (((sink.a2j_1 + byteCount | 0) - sink.z2i_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.y2i_1;
|
|
502
|
+
var destination = sink.y2i_1;
|
|
503
|
+
var startIndex = sink.z2i_1;
|
|
504
|
+
var endIndex = sink.a2j_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.a2j_1 = sink.a2j_1 - sink.z2i_1 | 0;
|
|
512
|
+
sink.z2i_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.y2i_1;
|
|
516
|
+
var destination_0 = sink.y2i_1;
|
|
517
|
+
var destinationOffset = sink.a2j_1;
|
|
518
|
+
var startIndex_0 = this.z2i_1;
|
|
519
|
+
var endIndex_0 = this.z2i_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.a2j_1 = sink.a2j_1 + byteCount | 0;
|
|
527
|
+
this.z2i_1 = this.z2i_1 + byteCount | 0;
|
|
528
528
|
};
|
|
529
529
|
function Segment() {
|
|
530
|
-
this.
|
|
531
|
-
this.
|
|
532
|
-
this.
|
|
533
|
-
this.
|
|
534
|
-
this.
|
|
535
|
-
this.
|
|
530
|
+
this.z2i_1 = 0;
|
|
531
|
+
this.a2j_1 = 0;
|
|
532
|
+
this.b2j_1 = false;
|
|
533
|
+
this.c2j_1 = false;
|
|
534
|
+
this.d2j_1 = null;
|
|
535
|
+
this.e2j_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.v2i();
|
|
542
542
|
commonWriteUtf8(it, string, startIndex, endIndex);
|
|
543
|
-
_this__u8e3s4.
|
|
543
|
+
_this__u8e3s4.w2i();
|
|
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.k2j(1);
|
|
557
|
+
var data = tail.y2i_1;
|
|
558
|
+
var segmentOffset = tail.a2j_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.a2j_1 | 0;
|
|
576
|
+
tail.a2j_1 = tail.a2j_1 + runSize | 0;
|
|
577
|
+
_this__u8e3s4.t2i_1 = _this__u8e3s4.t2i_1.q9(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.k2j(2);
|
|
580
|
+
tail_0.y2i_1[tail_0.a2j_1] = toByte(c >> 6 | 192);
|
|
581
|
+
tail_0.y2i_1[tail_0.a2j_1 + 1 | 0] = toByte(c & 63 | 128);
|
|
582
|
+
tail_0.a2j_1 = tail_0.a2j_1 + 2 | 0;
|
|
583
|
+
_this__u8e3s4.t2i_1 = _this__u8e3s4.t2i_1.q9(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.k2j(3);
|
|
587
|
+
tail_1.y2i_1[tail_1.a2j_1] = toByte(c >> 12 | 224);
|
|
588
|
+
tail_1.y2i_1[tail_1.a2j_1 + 1 | 0] = toByte(c >> 6 & 63 | 128);
|
|
589
|
+
tail_1.y2i_1[tail_1.a2j_1 + 2 | 0] = toByte(c & 63 | 128);
|
|
590
|
+
tail_1.a2j_1 = tail_1.a2j_1 + 3 | 0;
|
|
591
|
+
_this__u8e3s4.t2i_1 = _this__u8e3s4.t2i_1.q9(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.r2j(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.k2j(4);
|
|
609
|
+
tail_2.y2i_1[tail_2.a2j_1] = toByte(codePoint >> 18 | 240);
|
|
610
|
+
tail_2.y2i_1[tail_2.a2j_1 + 1 | 0] = toByte(codePoint >> 12 & 63 | 128);
|
|
611
|
+
tail_2.y2i_1[tail_2.a2j_1 + 2 | 0] = toByte(codePoint >> 6 & 63 | 128);
|
|
612
|
+
tail_2.y2i_1[tail_2.a2j_1 + 3 | 0] = toByte(codePoint & 63 | 128);
|
|
613
|
+
tail_2.a2j_1 = tail_2.a2j_1 + 4 | 0;
|
|
614
|
+
_this__u8e3s4.t2i_1 = _this__u8e3s4.t2i_1.q9(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.f2k_1 = isRegularFile;
|
|
629
|
+
this.g2k_1 = isDirectory;
|
|
630
|
+
this.h2k_1 = size;
|
|
631
631
|
}
|
|
632
632
|
function get_UnixPathSeparator() {
|
|
633
633
|
return UnixPathSeparator;
|
|
@@ -707,7 +707,7 @@
|
|
|
707
707
|
var this_0 = StringBuilder_init_$Create$_0();
|
|
708
708
|
// Inline function 'kotlin.contracts.contract' call
|
|
709
709
|
// Inline function 'kotlinx.io.files.Path.<anonymous>' call
|
|
710
|
-
this_0.
|
|
710
|
+
this_0.g5(base);
|
|
711
711
|
// Inline function 'kotlin.collections.forEach' call
|
|
712
712
|
var inductionVariable = 0;
|
|
713
713
|
var last = parts.length;
|
|
@@ -723,9 +723,9 @@
|
|
|
723
723
|
tmp = false;
|
|
724
724
|
}
|
|
725
725
|
if (tmp) {
|
|
726
|
-
this_0.
|
|
726
|
+
this_0.h5(get_SystemPathSeparator());
|
|
727
727
|
}
|
|
728
|
-
this_0.
|
|
728
|
+
this_0.g5(element);
|
|
729
729
|
}
|
|
730
730
|
var tmp$ret$2 = this_0.toString();
|
|
731
731
|
return Path_1(tmp$ret$2);
|
|
@@ -766,13 +766,13 @@
|
|
|
766
766
|
captureStack(this, EOFException);
|
|
767
767
|
}
|
|
768
768
|
function SegmentPool() {
|
|
769
|
-
this.
|
|
770
|
-
this.
|
|
769
|
+
this.h2j_1 = 0;
|
|
770
|
+
this.i2j_1 = 0;
|
|
771
771
|
}
|
|
772
|
-
protoOf(SegmentPool).
|
|
772
|
+
protoOf(SegmentPool).l2j = function () {
|
|
773
773
|
return Segment_init_$Create$();
|
|
774
774
|
};
|
|
775
|
-
protoOf(SegmentPool).
|
|
775
|
+
protoOf(SegmentPool).j2j = function (segment) {
|
|
776
776
|
};
|
|
777
777
|
var SegmentPool_instance;
|
|
778
778
|
function SegmentPool_getInstance() {
|
|
@@ -808,7 +808,7 @@
|
|
|
808
808
|
function SystemFileSystem$1() {
|
|
809
809
|
SystemFileSystemImpl.call(this);
|
|
810
810
|
}
|
|
811
|
-
protoOf(SystemFileSystem$1).
|
|
811
|
+
protoOf(SystemFileSystem$1).z2j = function (path) {
|
|
812
812
|
// Inline function 'kotlin.check' call
|
|
813
813
|
// Inline function 'kotlin.contracts.contract' call
|
|
814
814
|
if (!(get_fs() !== null)) {
|
|
@@ -816,10 +816,10 @@
|
|
|
816
816
|
var message = "Module 'fs' was not found";
|
|
817
817
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
818
818
|
}
|
|
819
|
-
var tmp = get_fs().existsSync(path.
|
|
819
|
+
var tmp = get_fs().existsSync(path.i2k_1);
|
|
820
820
|
return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
|
|
821
821
|
};
|
|
822
|
-
protoOf(SystemFileSystem$1).
|
|
822
|
+
protoOf(SystemFileSystem$1).a2k = function (path, mustExist) {
|
|
823
823
|
// Inline function 'kotlin.check' call
|
|
824
824
|
// Inline function 'kotlin.contracts.contract' call
|
|
825
825
|
if (!(get_fs() !== null)) {
|
|
@@ -827,19 +827,19 @@
|
|
|
827
827
|
var message = "Module 'fs' was not found";
|
|
828
828
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
829
829
|
}
|
|
830
|
-
if (!this.
|
|
830
|
+
if (!this.z2j(path)) {
|
|
831
831
|
if (mustExist) {
|
|
832
|
-
throw new FileNotFoundException('File does not exist: ' + path.
|
|
832
|
+
throw new FileNotFoundException('File does not exist: ' + path.i2k_1);
|
|
833
833
|
}
|
|
834
834
|
return Unit_instance;
|
|
835
835
|
}
|
|
836
836
|
try {
|
|
837
|
-
var stats = get_fs().statSync(path.
|
|
837
|
+
var stats = get_fs().statSync(path.i2k_1);
|
|
838
838
|
var tmp = stats.isDirectory();
|
|
839
839
|
if ((!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE()) {
|
|
840
|
-
get_fs().rmdirSync(path.
|
|
840
|
+
get_fs().rmdirSync(path.i2k_1);
|
|
841
841
|
} else {
|
|
842
|
-
get_fs().rmSync(path.
|
|
842
|
+
get_fs().rmSync(path.i2k_1);
|
|
843
843
|
}
|
|
844
844
|
} catch ($p) {
|
|
845
845
|
if ($p instanceof Error) {
|
|
@@ -850,13 +850,13 @@
|
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
852
|
};
|
|
853
|
-
protoOf(SystemFileSystem$1).
|
|
854
|
-
var metadata = this.
|
|
853
|
+
protoOf(SystemFileSystem$1).c2k = function (path, mustCreate) {
|
|
854
|
+
var metadata = this.j2k(path);
|
|
855
855
|
if (!(metadata == null)) {
|
|
856
856
|
if (mustCreate) {
|
|
857
857
|
throw IOException_init_$Create$('Path already exists: ' + path);
|
|
858
858
|
}
|
|
859
|
-
if (metadata.
|
|
859
|
+
if (metadata.f2k_1) {
|
|
860
860
|
throw IOException_init_$Create$("Path already exists and it's a file: " + path);
|
|
861
861
|
}
|
|
862
862
|
return Unit_instance;
|
|
@@ -864,9 +864,9 @@
|
|
|
864
864
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
865
865
|
var parts = ArrayList_init_$Create$();
|
|
866
866
|
var p = path;
|
|
867
|
-
while (!(p == null) ? !this.
|
|
867
|
+
while (!(p == null) ? !this.z2j(p) : false) {
|
|
868
868
|
parts.s(p.toString());
|
|
869
|
-
p = p.
|
|
869
|
+
p = p.bl();
|
|
870
870
|
}
|
|
871
871
|
// Inline function 'kotlin.collections.forEach' call
|
|
872
872
|
var tmp0_iterator = asReversed(parts).v();
|
|
@@ -876,7 +876,7 @@
|
|
|
876
876
|
get_fs().mkdirSync(element);
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
|
-
protoOf(SystemFileSystem$1).
|
|
879
|
+
protoOf(SystemFileSystem$1).j2k = function (path) {
|
|
880
880
|
// Inline function 'kotlin.check' call
|
|
881
881
|
// Inline function 'kotlin.contracts.contract' call
|
|
882
882
|
if (!(get_fs() !== null)) {
|
|
@@ -886,7 +886,7 @@
|
|
|
886
886
|
}
|
|
887
887
|
var tmp;
|
|
888
888
|
try {
|
|
889
|
-
var stat = get_fs().statSync(path.
|
|
889
|
+
var stat = get_fs().statSync(path.i2k_1);
|
|
890
890
|
var tmp_0 = stat.mode;
|
|
891
891
|
var mode = (!(tmp_0 == null) ? typeof tmp_0 === 'number' : false) ? tmp_0 : THROW_CCE();
|
|
892
892
|
var tmp_1 = get_fs().constants.S_IFMT;
|
|
@@ -905,7 +905,7 @@
|
|
|
905
905
|
var tmp_6;
|
|
906
906
|
if ($p instanceof Error) {
|
|
907
907
|
var t = $p;
|
|
908
|
-
if (this.
|
|
908
|
+
if (this.z2j(path))
|
|
909
909
|
throw new IOException('Stat failed for ' + path, t);
|
|
910
910
|
return null;
|
|
911
911
|
} else {
|
|
@@ -914,7 +914,7 @@
|
|
|
914
914
|
}
|
|
915
915
|
return tmp;
|
|
916
916
|
};
|
|
917
|
-
protoOf(SystemFileSystem$1).
|
|
917
|
+
protoOf(SystemFileSystem$1).e2k = function (path, append) {
|
|
918
918
|
// Inline function 'kotlin.check' call
|
|
919
919
|
// Inline function 'kotlin.contracts.contract' call
|
|
920
920
|
if (!(get_fs() !== null)) {
|
|
@@ -944,13 +944,13 @@
|
|
|
944
944
|
// Inline function 'kotlin.getValue' call
|
|
945
945
|
var this_0 = SystemPathSeparator$delegate;
|
|
946
946
|
SystemPathSeparator$factory();
|
|
947
|
-
return this_0.o2().
|
|
947
|
+
return this_0.o2().w8_1;
|
|
948
948
|
}
|
|
949
949
|
var SystemPathSeparator$delegate;
|
|
950
950
|
function Path_0(rawPath, any) {
|
|
951
|
-
this.
|
|
951
|
+
this.i2k_1 = removeTrailingSeparators(rawPath);
|
|
952
952
|
}
|
|
953
|
-
protoOf(Path_0).
|
|
953
|
+
protoOf(Path_0).bl = function () {
|
|
954
954
|
// Inline function 'kotlin.check' call
|
|
955
955
|
// Inline function 'kotlin.contracts.contract' call
|
|
956
956
|
if (!(get_pathLib() !== null)) {
|
|
@@ -959,17 +959,17 @@
|
|
|
959
959
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
960
960
|
}
|
|
961
961
|
// Inline function 'kotlin.text.isEmpty' call
|
|
962
|
-
var this_0 = this.
|
|
962
|
+
var this_0 = this.i2k_1;
|
|
963
963
|
if (charSequenceLength(this_0) === 0)
|
|
964
964
|
return null;
|
|
965
965
|
if (get_isWindows()) {
|
|
966
|
-
if (!contains(this.
|
|
966
|
+
if (!contains(this.i2k_1, get_UnixPathSeparator()) ? !contains(this.i2k_1, get_WindowsPathSeparator()) : false) {
|
|
967
967
|
return null;
|
|
968
968
|
}
|
|
969
|
-
} else if (!contains(this.
|
|
969
|
+
} else if (!contains(this.i2k_1, get_SystemPathSeparator())) {
|
|
970
970
|
return null;
|
|
971
971
|
}
|
|
972
|
-
var tmp = get_pathLib().dirname(this.
|
|
972
|
+
var tmp = get_pathLib().dirname(this.i2k_1);
|
|
973
973
|
var p = (tmp == null ? true : typeof tmp === 'string') ? tmp : THROW_CCE();
|
|
974
974
|
var tmp_0;
|
|
975
975
|
// Inline function 'kotlin.text.isNullOrEmpty' call
|
|
@@ -977,7 +977,7 @@
|
|
|
977
977
|
if (p == null ? true : charSequenceLength(p) === 0) {
|
|
978
978
|
tmp_0 = null;
|
|
979
979
|
} else {
|
|
980
|
-
if (p === this.
|
|
980
|
+
if (p === this.i2k_1) {
|
|
981
981
|
tmp_0 = null;
|
|
982
982
|
} else {
|
|
983
983
|
tmp_0 = Path_1(p);
|
|
@@ -986,45 +986,45 @@
|
|
|
986
986
|
return tmp_0;
|
|
987
987
|
};
|
|
988
988
|
protoOf(Path_0).toString = function () {
|
|
989
|
-
return this.
|
|
989
|
+
return this.i2k_1;
|
|
990
990
|
};
|
|
991
991
|
protoOf(Path_0).equals = function (other) {
|
|
992
992
|
if (this === other)
|
|
993
993
|
return true;
|
|
994
994
|
if (!(other instanceof Path_0))
|
|
995
995
|
return false;
|
|
996
|
-
return this.
|
|
996
|
+
return this.i2k_1 === other.i2k_1;
|
|
997
997
|
};
|
|
998
998
|
protoOf(Path_0).hashCode = function () {
|
|
999
|
-
return getStringHashCode(this.
|
|
999
|
+
return getStringHashCode(this.i2k_1);
|
|
1000
1000
|
};
|
|
1001
1001
|
function open($this, path, append) {
|
|
1002
1002
|
var flags = append ? 'a' : 'w';
|
|
1003
1003
|
var tmp;
|
|
1004
1004
|
try {
|
|
1005
|
-
tmp = get_fs().openSync(path.
|
|
1005
|
+
tmp = get_fs().openSync(path.i2k_1, flags);
|
|
1006
1006
|
} catch ($p) {
|
|
1007
1007
|
var tmp_0;
|
|
1008
1008
|
if ($p instanceof Error) {
|
|
1009
1009
|
var e = $p;
|
|
1010
|
-
throw new IOException('Failed to open a file ' + path.
|
|
1010
|
+
throw new IOException('Failed to open a file ' + path.i2k_1 + '.', e);
|
|
1011
1011
|
} else {
|
|
1012
1012
|
throw $p;
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
1015
|
var fd = tmp;
|
|
1016
1016
|
if (fd < 0)
|
|
1017
|
-
throw IOException_init_$Create$('Failed to open a file ' + path.
|
|
1017
|
+
throw IOException_init_$Create$('Failed to open a file ' + path.i2k_1 + '.');
|
|
1018
1018
|
return fd;
|
|
1019
1019
|
}
|
|
1020
1020
|
function FileSink(path, append) {
|
|
1021
|
-
this.
|
|
1022
|
-
this.
|
|
1021
|
+
this.k2k_1 = false;
|
|
1022
|
+
this.l2k_1 = open(this, path, append);
|
|
1023
1023
|
}
|
|
1024
|
-
protoOf(FileSink).
|
|
1024
|
+
protoOf(FileSink).n2j = function (source, byteCount) {
|
|
1025
1025
|
// Inline function 'kotlin.check' call
|
|
1026
1026
|
// Inline function 'kotlin.contracts.contract' call
|
|
1027
|
-
if (!!this.
|
|
1027
|
+
if (!!this.k2k_1) {
|
|
1028
1028
|
// Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
|
|
1029
1029
|
var message = 'Sink is closed.';
|
|
1030
1030
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1033,15 +1033,15 @@
|
|
|
1033
1033
|
return Unit_instance;
|
|
1034
1034
|
}
|
|
1035
1035
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1036
|
-
var b = source.
|
|
1037
|
-
var remainingBytes = byteCount.
|
|
1038
|
-
while (remainingBytes.
|
|
1039
|
-
var head = ensureNotNull(source.
|
|
1040
|
-
var segmentBytes = head.
|
|
1036
|
+
var b = source.t2i_1;
|
|
1037
|
+
var remainingBytes = byteCount.m8(b) <= 0 ? byteCount : b;
|
|
1038
|
+
while (remainingBytes.m8(new Long(0, 0)) > 0) {
|
|
1039
|
+
var head = ensureNotNull(source.s2i_1);
|
|
1040
|
+
var segmentBytes = head.a2j_1 - head.z2i_1 | 0;
|
|
1041
1041
|
var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
|
|
1042
|
-
buf.fill(head.
|
|
1042
|
+
buf.fill(head.y2i_1, head.z2i_1, segmentBytes);
|
|
1043
1043
|
try {
|
|
1044
|
-
get_fs().writeFileSync(this.
|
|
1044
|
+
get_fs().writeFileSync(this.l2k_1, buf);
|
|
1045
1045
|
} catch ($p) {
|
|
1046
1046
|
if ($p instanceof Error) {
|
|
1047
1047
|
var e = $p;
|
|
@@ -1050,15 +1050,15 @@
|
|
|
1050
1050
|
throw $p;
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
source.
|
|
1053
|
+
source.f2j(toLong(segmentBytes));
|
|
1054
1054
|
// Inline function 'kotlin.Long.minus' call
|
|
1055
|
-
remainingBytes = remainingBytes.
|
|
1055
|
+
remainingBytes = remainingBytes.r9(toLong(segmentBytes));
|
|
1056
1056
|
}
|
|
1057
1057
|
};
|
|
1058
|
-
protoOf(FileSink).
|
|
1059
|
-
if (!this.
|
|
1060
|
-
this.
|
|
1061
|
-
get_fs().closeSync(this.
|
|
1058
|
+
protoOf(FileSink).s2j = function () {
|
|
1059
|
+
if (!this.k2k_1) {
|
|
1060
|
+
this.k2k_1 = true;
|
|
1061
|
+
get_fs().closeSync(this.l2k_1);
|
|
1062
1062
|
}
|
|
1063
1063
|
};
|
|
1064
1064
|
function Path_1(path) {
|
|
@@ -1164,8 +1164,8 @@
|
|
|
1164
1164
|
return tmp;
|
|
1165
1165
|
}
|
|
1166
1166
|
//region block: post-declaration
|
|
1167
|
-
protoOf(SystemFileSystemImpl).
|
|
1168
|
-
protoOf(SystemFileSystemImpl).
|
|
1167
|
+
protoOf(SystemFileSystemImpl).b2k = delete$default;
|
|
1168
|
+
protoOf(SystemFileSystemImpl).d2k = createDirectories$default;
|
|
1169
1169
|
//endregion
|
|
1170
1170
|
//region block: init
|
|
1171
1171
|
Companion_instance = new Companion();
|