game_client_logic_deb 1.8.208 → 1.8.225
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 +77 -77
- package/Kosi-Kaverit-kaverit.js.map +1 -1
- package/Kosi-Kodein-kodein-di.js +610 -610
- package/Kosi-Kodein-kodein-di.js.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1570 -1515
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -1
- package/Logic_Debertz-core.js +1621 -1475
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +13762 -13423
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +12 -2
- package/Logic_Debertz-game_client.js +5448 -4755
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +3179 -2354
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-kotlinx-atomicfu-runtime.js +3 -3
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +3 -3
- package/kotlinx-atomicfu.js +66 -66
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-coroutines-core.js +3827 -3784
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +3 -3
- package/kotlinx-io-kotlinx-io-core.js +277 -277
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +2296 -2209
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +2069 -1725
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +220 -220
- package/ktor-ktor-client-core.js +2532 -2504
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-js.js +3 -3
- package/ktor-ktor-client-logging.js +573 -549
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +16 -16
- package/ktor-ktor-http.js +748 -726
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +1637 -1640
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +14 -14
- package/ktor-ktor-serialization-kotlinx.js +314 -269
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +153 -128
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +702 -702
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websocket-serialization.js +3 -3
- package/ktor-ktor-websockets.js +61 -61
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +262 -233
- package/raspberry-cardgame-lib-core.js.map +1 -1
- package/raspberry-cardgame-lib-logger.js +104 -104
- package/raspberry-cardgame-lib-random.js +984 -984
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +21 -21
- package/secure-random-secure-random.js.map +1 -1
- package/uuid.js +30 -30
- package/uuid.js.map +1 -1
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
(function (
|
|
1
|
+
(function (factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
3
|
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
5
|
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
8
|
throw new Error("Error loading module 'kotlinx-io-kotlinx-io-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kotlinx-io-kotlinx-io-core'.");
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
globalThis['kotlinx-io-kotlinx-io-core'] = factory(typeof globalThis['kotlinx-io-kotlinx-io-core'] === 'undefined' ? {} : globalThis['kotlinx-io-kotlinx-io-core'], globalThis['kotlin-kotlin-stdlib']);
|
|
11
11
|
}
|
|
12
|
-
}(
|
|
12
|
+
}(function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
16
|
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.z1;
|
|
17
|
-
var Long = kotlin_kotlin.$_$.
|
|
17
|
+
var Long = kotlin_kotlin.$_$.ng;
|
|
18
18
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.r1;
|
|
19
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
20
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
21
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
19
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.v2;
|
|
20
|
+
var charArrayOf = kotlin_kotlin.$_$.cb;
|
|
21
|
+
var protoOf = kotlin_kotlin.$_$.sc;
|
|
22
22
|
var Unit_instance = kotlin_kotlin.$_$.n5;
|
|
23
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
24
|
-
var toLong = kotlin_kotlin.$_$.
|
|
25
|
-
var toString = kotlin_kotlin.$_$.
|
|
23
|
+
var ensureNotNull = kotlin_kotlin.$_$.kh;
|
|
24
|
+
var toLong = kotlin_kotlin.$_$.uc;
|
|
25
|
+
var toString = kotlin_kotlin.$_$.wc;
|
|
26
26
|
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.e1;
|
|
27
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
27
|
+
var initMetadataForClass = kotlin_kotlin.$_$.rb;
|
|
28
28
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
29
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
30
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
29
|
+
var objectCreate = kotlin_kotlin.$_$.rc;
|
|
30
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.sb;
|
|
31
31
|
var arrayCopy = kotlin_kotlin.$_$.f6;
|
|
32
32
|
var IllegalArgumentException_init_$Create$_0 = kotlin_kotlin.$_$.p1;
|
|
33
33
|
var VOID = kotlin_kotlin.$_$.f;
|
|
34
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
35
|
-
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.
|
|
36
|
-
var toByte = kotlin_kotlin.$_$.
|
|
37
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
38
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
34
|
+
var charSequenceGet = kotlin_kotlin.$_$.eb;
|
|
35
|
+
var Char__toInt_impl_vasixd = kotlin_kotlin.$_$.b3;
|
|
36
|
+
var toByte = kotlin_kotlin.$_$.tc;
|
|
37
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.ub;
|
|
38
|
+
var startsWith = kotlin_kotlin.$_$.af;
|
|
39
39
|
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.f1;
|
|
40
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
41
|
-
var endsWith = kotlin_kotlin.$_$.
|
|
42
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
43
|
-
var Exception = kotlin_kotlin.$_$.
|
|
40
|
+
var charSequenceLength = kotlin_kotlin.$_$.fb;
|
|
41
|
+
var endsWith = kotlin_kotlin.$_$.ae;
|
|
42
|
+
var captureStack = kotlin_kotlin.$_$.bb;
|
|
43
|
+
var Exception = kotlin_kotlin.$_$.kg;
|
|
44
44
|
var Exception_init_$Init$ = kotlin_kotlin.$_$.l1;
|
|
45
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
46
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
45
|
+
var initMetadataForObject = kotlin_kotlin.$_$.wb;
|
|
46
|
+
var THROW_CCE = kotlin_kotlin.$_$.tg;
|
|
47
47
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
48
48
|
var asReversed = kotlin_kotlin.$_$.h6;
|
|
49
|
-
var equals = kotlin_kotlin.$_$.
|
|
50
|
-
var contains = kotlin_kotlin.$_$.
|
|
51
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
52
|
-
var Char = kotlin_kotlin.$_$.
|
|
53
|
-
var KProperty0 = kotlin_kotlin.$_$.
|
|
54
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
55
|
-
var lazy = kotlin_kotlin.$_$.
|
|
49
|
+
var equals = kotlin_kotlin.$_$.jb;
|
|
50
|
+
var contains = kotlin_kotlin.$_$.xd;
|
|
51
|
+
var getStringHashCode = kotlin_kotlin.$_$.pb;
|
|
52
|
+
var Char = kotlin_kotlin.$_$.dg;
|
|
53
|
+
var KProperty0 = kotlin_kotlin.$_$.md;
|
|
54
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.ob;
|
|
55
|
+
var lazy = kotlin_kotlin.$_$.qh;
|
|
56
56
|
//endregion
|
|
57
57
|
//region block: pre-declaration
|
|
58
58
|
initMetadataForClass(Buffer, 'Buffer', Buffer);
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
mustExist = mustExist === VOID ? true : mustExist;
|
|
64
64
|
var tmp;
|
|
65
65
|
if ($super === VOID) {
|
|
66
|
-
this.
|
|
66
|
+
this.z63(path, mustExist);
|
|
67
67
|
tmp = Unit_instance;
|
|
68
68
|
} else {
|
|
69
|
-
tmp = $super.
|
|
69
|
+
tmp = $super.z63.call(this, path, mustExist);
|
|
70
70
|
}
|
|
71
71
|
return tmp;
|
|
72
72
|
}
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
mustCreate = mustCreate === VOID ? false : mustCreate;
|
|
75
75
|
var tmp;
|
|
76
76
|
if ($super === VOID) {
|
|
77
|
-
this.
|
|
77
|
+
this.b64(path, mustCreate);
|
|
78
78
|
tmp = Unit_instance;
|
|
79
79
|
} else {
|
|
80
|
-
tmp = $super.
|
|
80
|
+
tmp = $super.b64.call(this, path, mustCreate);
|
|
81
81
|
}
|
|
82
82
|
return tmp;
|
|
83
83
|
}
|
|
@@ -121,27 +121,27 @@
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
function Buffer() {
|
|
124
|
-
this.
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
124
|
+
this.t62_1 = null;
|
|
125
|
+
this.u62_1 = new Long(0, 0);
|
|
126
|
+
this.v62_1 = this;
|
|
127
127
|
}
|
|
128
|
-
protoOf(Buffer).
|
|
129
|
-
return this.
|
|
128
|
+
protoOf(Buffer).w62 = function () {
|
|
129
|
+
return this.v62_1;
|
|
130
130
|
};
|
|
131
|
-
protoOf(Buffer).
|
|
131
|
+
protoOf(Buffer).x62 = function () {
|
|
132
132
|
return Unit_instance;
|
|
133
133
|
};
|
|
134
|
-
protoOf(Buffer).
|
|
135
|
-
var result = this.
|
|
134
|
+
protoOf(Buffer).y62 = function () {
|
|
135
|
+
var result = this.u62_1;
|
|
136
136
|
if (result.equals(new Long(0, 0)))
|
|
137
137
|
return new Long(0, 0);
|
|
138
|
-
var tail = ensureNotNull(ensureNotNull(this.
|
|
139
|
-
if (tail.
|
|
140
|
-
result = result.x2(toLong(tail.
|
|
138
|
+
var tail = ensureNotNull(ensureNotNull(this.t62_1).f63_1);
|
|
139
|
+
if (tail.b63_1 < 8192 && tail.d63_1) {
|
|
140
|
+
result = result.x2(toLong(tail.b63_1 - tail.a63_1 | 0));
|
|
141
141
|
}
|
|
142
142
|
return result;
|
|
143
143
|
};
|
|
144
|
-
protoOf(Buffer).
|
|
144
|
+
protoOf(Buffer).g63 = function (byteCount) {
|
|
145
145
|
// Inline function 'kotlinx.io.checkByteCount' call
|
|
146
146
|
// Inline function 'kotlin.require' call
|
|
147
147
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
}
|
|
153
153
|
var remainingByteCount = byteCount;
|
|
154
154
|
while (remainingByteCount.z(new Long(0, 0)) > 0) {
|
|
155
|
-
var tmp0_elvis_lhs = this.
|
|
155
|
+
var tmp0_elvis_lhs = this.t62_1;
|
|
156
156
|
var tmp;
|
|
157
157
|
if (tmp0_elvis_lhs == null) {
|
|
158
158
|
throw new EOFException('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
|
|
@@ -162,20 +162,20 @@
|
|
|
162
162
|
var head = tmp;
|
|
163
163
|
// Inline function 'kotlinx.io.minOf' call
|
|
164
164
|
var a = remainingByteCount;
|
|
165
|
-
var b = head.
|
|
165
|
+
var b = head.b63_1 - head.a63_1 | 0;
|
|
166
166
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
167
167
|
var b_0 = toLong(b);
|
|
168
168
|
var toSkip = (a.z(b_0) <= 0 ? a : b_0).e1();
|
|
169
|
-
this.
|
|
169
|
+
this.u62_1 = this.u62_1.x2(toLong(toSkip));
|
|
170
170
|
remainingByteCount = remainingByteCount.x2(toLong(toSkip));
|
|
171
|
-
head.
|
|
172
|
-
if (head.
|
|
173
|
-
this.
|
|
174
|
-
SegmentPool_instance.
|
|
171
|
+
head.a63_1 = head.a63_1 + toSkip | 0;
|
|
172
|
+
if (head.a63_1 === head.b63_1) {
|
|
173
|
+
this.t62_1 = head.h63();
|
|
174
|
+
SegmentPool_instance.k63(head);
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
|
-
protoOf(Buffer).
|
|
178
|
+
protoOf(Buffer).l63 = function (minimumCapacity) {
|
|
179
179
|
// Inline function 'kotlin.require' call
|
|
180
180
|
// Inline function 'kotlin.contracts.contract' call
|
|
181
181
|
if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
|
|
@@ -183,20 +183,20 @@
|
|
|
183
183
|
var message = 'unexpected capacity';
|
|
184
184
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
185
185
|
}
|
|
186
|
-
if (this.
|
|
187
|
-
var result = SegmentPool_instance.
|
|
188
|
-
this.
|
|
189
|
-
result.
|
|
190
|
-
result.
|
|
186
|
+
if (this.t62_1 == null) {
|
|
187
|
+
var result = SegmentPool_instance.m63();
|
|
188
|
+
this.t62_1 = result;
|
|
189
|
+
result.f63_1 = result;
|
|
190
|
+
result.e63_1 = result;
|
|
191
191
|
return result;
|
|
192
192
|
}
|
|
193
|
-
var tail = ensureNotNull(this.
|
|
194
|
-
if ((ensureNotNull(tail).
|
|
195
|
-
tail = tail.
|
|
193
|
+
var tail = ensureNotNull(this.t62_1).f63_1;
|
|
194
|
+
if ((ensureNotNull(tail).b63_1 + minimumCapacity | 0) > 8192 || !tail.d63_1) {
|
|
195
|
+
tail = tail.n63(SegmentPool_instance.m63());
|
|
196
196
|
}
|
|
197
197
|
return tail;
|
|
198
198
|
};
|
|
199
|
-
protoOf(Buffer).
|
|
199
|
+
protoOf(Buffer).o63 = function (source, byteCount) {
|
|
200
200
|
// Inline function 'kotlin.require' call
|
|
201
201
|
// Inline function 'kotlin.contracts.contract' call
|
|
202
202
|
if (!!(source === this)) {
|
|
@@ -204,105 +204,105 @@
|
|
|
204
204
|
var message = 'source == this';
|
|
205
205
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
206
206
|
}
|
|
207
|
-
checkOffsetAndCount(source.
|
|
207
|
+
checkOffsetAndCount(source.u62_1, new Long(0, 0), byteCount);
|
|
208
208
|
var remainingByteCount = byteCount;
|
|
209
209
|
while (remainingByteCount.z(new Long(0, 0)) > 0) {
|
|
210
|
-
if (remainingByteCount.z(toLong(ensureNotNull(source.
|
|
211
|
-
var tail = !(this.
|
|
210
|
+
if (remainingByteCount.z(toLong(ensureNotNull(source.t62_1).b63_1 - ensureNotNull(source.t62_1).a63_1 | 0)) < 0) {
|
|
211
|
+
var tail = !(this.t62_1 == null) ? ensureNotNull(this.t62_1).f63_1 : null;
|
|
212
212
|
var tmp;
|
|
213
|
-
if (!(tail == null) && tail.
|
|
213
|
+
if (!(tail == null) && tail.d63_1) {
|
|
214
214
|
// Inline function 'kotlin.Long.minus' call
|
|
215
215
|
// Inline function 'kotlin.Long.plus' call
|
|
216
216
|
var this_0 = remainingByteCount;
|
|
217
|
-
var other = tail.
|
|
217
|
+
var other = tail.b63_1;
|
|
218
218
|
var this_1 = this_0.w2(toLong(other));
|
|
219
|
-
var other_0 = tail.
|
|
219
|
+
var other_0 = tail.c63_1 ? 0 : tail.a63_1;
|
|
220
220
|
tmp = this_1.x2(toLong(other_0)).z(new Long(8192, 0)) <= 0;
|
|
221
221
|
} else {
|
|
222
222
|
tmp = false;
|
|
223
223
|
}
|
|
224
224
|
if (tmp) {
|
|
225
|
-
ensureNotNull(source.
|
|
226
|
-
source.
|
|
227
|
-
this.
|
|
225
|
+
ensureNotNull(source.t62_1).q63(tail, remainingByteCount.e1());
|
|
226
|
+
source.u62_1 = source.u62_1.x2(remainingByteCount);
|
|
227
|
+
this.u62_1 = this.u62_1.w2(remainingByteCount);
|
|
228
228
|
return Unit_instance;
|
|
229
229
|
} else {
|
|
230
|
-
source.
|
|
230
|
+
source.t62_1 = ensureNotNull(source.t62_1).p63(remainingByteCount.e1());
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
var segmentToMove = source.
|
|
234
|
-
var movedByteCount = toLong(ensureNotNull(segmentToMove).
|
|
235
|
-
source.
|
|
236
|
-
if (this.
|
|
237
|
-
this.
|
|
238
|
-
segmentToMove.
|
|
239
|
-
segmentToMove.
|
|
233
|
+
var segmentToMove = source.t62_1;
|
|
234
|
+
var movedByteCount = toLong(ensureNotNull(segmentToMove).b63_1 - segmentToMove.a63_1 | 0);
|
|
235
|
+
source.t62_1 = segmentToMove.h63();
|
|
236
|
+
if (this.t62_1 == null) {
|
|
237
|
+
this.t62_1 = segmentToMove;
|
|
238
|
+
segmentToMove.f63_1 = segmentToMove;
|
|
239
|
+
segmentToMove.e63_1 = segmentToMove.f63_1;
|
|
240
240
|
} else {
|
|
241
|
-
var tail_0 = ensureNotNull(this.
|
|
242
|
-
tail_0 = ensureNotNull(tail_0).
|
|
243
|
-
tail_0.
|
|
241
|
+
var tail_0 = ensureNotNull(this.t62_1).f63_1;
|
|
242
|
+
tail_0 = ensureNotNull(tail_0).n63(segmentToMove);
|
|
243
|
+
tail_0.r63();
|
|
244
244
|
}
|
|
245
|
-
source.
|
|
246
|
-
this.
|
|
245
|
+
source.u62_1 = source.u62_1.x2(movedByteCount);
|
|
246
|
+
this.u62_1 = this.u62_1.w2(movedByteCount);
|
|
247
247
|
remainingByteCount = remainingByteCount.x2(movedByteCount);
|
|
248
248
|
}
|
|
249
249
|
};
|
|
250
|
-
protoOf(Buffer).
|
|
251
|
-
var tail = this.
|
|
252
|
-
var tmp1 = tail.
|
|
253
|
-
tail.
|
|
254
|
-
tail.
|
|
255
|
-
this.
|
|
250
|
+
protoOf(Buffer).o1y = function (byte) {
|
|
251
|
+
var tail = this.l63(1);
|
|
252
|
+
var tmp1 = tail.b63_1;
|
|
253
|
+
tail.b63_1 = tmp1 + 1 | 0;
|
|
254
|
+
tail.z62_1[tmp1] = byte;
|
|
255
|
+
this.u62_1 = this.u62_1.w2(new Long(1, 0));
|
|
256
256
|
};
|
|
257
|
-
protoOf(Buffer).
|
|
257
|
+
protoOf(Buffer).x1z = function () {
|
|
258
258
|
return Unit_instance;
|
|
259
259
|
};
|
|
260
260
|
protoOf(Buffer).toString = function () {
|
|
261
|
-
if (this.
|
|
261
|
+
if (this.u62_1.equals(new Long(0, 0)))
|
|
262
262
|
return 'Buffer(size=0)';
|
|
263
263
|
var maxPrintableBytes = 64;
|
|
264
264
|
// Inline function 'kotlinx.io.minOf' call
|
|
265
|
-
var b = this.
|
|
265
|
+
var b = this.u62_1;
|
|
266
266
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
267
267
|
var a = toLong(maxPrintableBytes);
|
|
268
268
|
var len = (a.z(b) <= 0 ? a : b).e1();
|
|
269
|
-
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.
|
|
270
|
-
var curr = ensureNotNull(this.
|
|
269
|
+
var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.u62_1.z(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
|
|
270
|
+
var curr = ensureNotNull(this.t62_1);
|
|
271
271
|
var bytesWritten = 0;
|
|
272
|
-
var pos = curr.
|
|
272
|
+
var pos = curr.a63_1;
|
|
273
273
|
while (bytesWritten < len) {
|
|
274
|
-
if (pos === curr.
|
|
275
|
-
curr = ensureNotNull(curr.
|
|
276
|
-
pos = curr.
|
|
274
|
+
if (pos === curr.b63_1) {
|
|
275
|
+
curr = ensureNotNull(curr.e63_1);
|
|
276
|
+
pos = curr.a63_1;
|
|
277
277
|
}
|
|
278
|
-
var tmp = curr.
|
|
278
|
+
var tmp = curr.z62_1;
|
|
279
279
|
var tmp0 = pos;
|
|
280
280
|
pos = tmp0 + 1 | 0;
|
|
281
281
|
var b_0 = tmp[tmp0];
|
|
282
282
|
bytesWritten = bytesWritten + 1 | 0;
|
|
283
|
-
builder.
|
|
283
|
+
builder.r8(get_HEX_DIGIT_CHARS()[b_0 >> 4 & 15]).r8(get_HEX_DIGIT_CHARS()[b_0 & 15]);
|
|
284
284
|
}
|
|
285
|
-
if (this.
|
|
286
|
-
builder.
|
|
285
|
+
if (this.u62_1.z(toLong(maxPrintableBytes)) > 0) {
|
|
286
|
+
builder.r8(_Char___init__impl__6a9atx(8230));
|
|
287
287
|
}
|
|
288
|
-
return 'Buffer(size=' + this.
|
|
288
|
+
return 'Buffer(size=' + this.u62_1.toString() + ' hex=' + builder.toString() + ')';
|
|
289
289
|
};
|
|
290
290
|
function buffered(_this__u8e3s4) {
|
|
291
291
|
return new RealSink(_this__u8e3s4);
|
|
292
292
|
}
|
|
293
293
|
function RealSink(sink) {
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
294
|
+
this.s63_1 = sink;
|
|
295
|
+
this.t63_1 = false;
|
|
296
|
+
this.u63_1 = new Buffer();
|
|
297
297
|
}
|
|
298
|
-
protoOf(RealSink).
|
|
299
|
-
return this.
|
|
298
|
+
protoOf(RealSink).w62 = function () {
|
|
299
|
+
return this.u63_1;
|
|
300
300
|
};
|
|
301
|
-
protoOf(RealSink).
|
|
301
|
+
protoOf(RealSink).o63 = function (source, byteCount) {
|
|
302
302
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
303
303
|
// Inline function 'kotlin.check' call
|
|
304
304
|
// Inline function 'kotlin.contracts.contract' call
|
|
305
|
-
if (!!this.
|
|
305
|
+
if (!!this.t63_1) {
|
|
306
306
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
|
|
307
307
|
var message = 'Sink is closed.';
|
|
308
308
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -314,30 +314,30 @@
|
|
|
314
314
|
var message_0 = 'byteCount: ' + byteCount.toString();
|
|
315
315
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
316
316
|
}
|
|
317
|
-
this.
|
|
318
|
-
this.
|
|
317
|
+
this.u63_1.o63(source, byteCount);
|
|
318
|
+
this.x62();
|
|
319
319
|
};
|
|
320
|
-
protoOf(RealSink).
|
|
320
|
+
protoOf(RealSink).x62 = function () {
|
|
321
321
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed' call
|
|
322
322
|
// Inline function 'kotlin.check' call
|
|
323
323
|
// Inline function 'kotlin.contracts.contract' call
|
|
324
|
-
if (!!this.
|
|
324
|
+
if (!!this.t63_1) {
|
|
325
325
|
// Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
|
|
326
326
|
var message = 'Sink is closed.';
|
|
327
327
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
328
328
|
}
|
|
329
|
-
var byteCount = this.
|
|
329
|
+
var byteCount = this.u63_1.y62();
|
|
330
330
|
if (byteCount.z(new Long(0, 0)) > 0) {
|
|
331
|
-
this.
|
|
331
|
+
this.s63_1.o63(this.u63_1, byteCount);
|
|
332
332
|
}
|
|
333
333
|
};
|
|
334
|
-
protoOf(RealSink).
|
|
335
|
-
if (this.
|
|
334
|
+
protoOf(RealSink).x1z = function () {
|
|
335
|
+
if (this.t63_1)
|
|
336
336
|
return Unit_instance;
|
|
337
337
|
var thrown = null;
|
|
338
338
|
try {
|
|
339
|
-
if (this.
|
|
340
|
-
this.
|
|
339
|
+
if (this.u63_1.u62_1.z(new Long(0, 0)) > 0) {
|
|
340
|
+
this.s63_1.o63(this.u63_1, this.u63_1.u62_1);
|
|
341
341
|
}
|
|
342
342
|
} catch ($p) {
|
|
343
343
|
if ($p instanceof Error) {
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
try {
|
|
351
|
-
this.
|
|
351
|
+
this.s63_1.x1z();
|
|
352
352
|
} catch ($p) {
|
|
353
353
|
if ($p instanceof Error) {
|
|
354
354
|
var e_0 = $p;
|
|
@@ -358,18 +358,18 @@
|
|
|
358
358
|
throw $p;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
this.
|
|
361
|
+
this.t63_1 = true;
|
|
362
362
|
if (!(thrown == null))
|
|
363
363
|
throw thrown;
|
|
364
364
|
};
|
|
365
365
|
protoOf(RealSink).toString = function () {
|
|
366
|
-
return 'buffered(' + toString(this.
|
|
366
|
+
return 'buffered(' + toString(this.s63_1) + ')';
|
|
367
367
|
};
|
|
368
368
|
function Segment_init_$Init$($this) {
|
|
369
369
|
Segment.call($this);
|
|
370
|
-
$this.
|
|
371
|
-
$this.
|
|
372
|
-
$this.
|
|
370
|
+
$this.z62_1 = new Int8Array(8192);
|
|
371
|
+
$this.d63_1 = true;
|
|
372
|
+
$this.c63_1 = false;
|
|
373
373
|
return $this;
|
|
374
374
|
}
|
|
375
375
|
function Segment_init_$Create$() {
|
|
@@ -377,61 +377,61 @@
|
|
|
377
377
|
}
|
|
378
378
|
function Segment_init_$Init$_0(data, pos, limit, shared, owner, $this) {
|
|
379
379
|
Segment.call($this);
|
|
380
|
-
$this.
|
|
381
|
-
$this.
|
|
382
|
-
$this.
|
|
383
|
-
$this.
|
|
384
|
-
$this.
|
|
380
|
+
$this.z62_1 = data;
|
|
381
|
+
$this.a63_1 = pos;
|
|
382
|
+
$this.b63_1 = limit;
|
|
383
|
+
$this.c63_1 = shared;
|
|
384
|
+
$this.d63_1 = owner;
|
|
385
385
|
return $this;
|
|
386
386
|
}
|
|
387
387
|
function Segment_init_$Create$_0(data, pos, limit, shared, owner) {
|
|
388
388
|
return Segment_init_$Init$_0(data, pos, limit, shared, owner, objectCreate(protoOf(Segment)));
|
|
389
389
|
}
|
|
390
390
|
function Companion() {
|
|
391
|
-
this.
|
|
392
|
-
this.
|
|
391
|
+
this.v63_1 = 8192;
|
|
392
|
+
this.w63_1 = 1024;
|
|
393
393
|
}
|
|
394
394
|
var Companion_instance;
|
|
395
395
|
function Companion_getInstance() {
|
|
396
396
|
return Companion_instance;
|
|
397
397
|
}
|
|
398
|
-
protoOf(Segment).
|
|
399
|
-
this.
|
|
400
|
-
return Segment_init_$Create$_0(this.
|
|
398
|
+
protoOf(Segment).x63 = function () {
|
|
399
|
+
this.c63_1 = true;
|
|
400
|
+
return Segment_init_$Create$_0(this.z62_1, this.a63_1, this.b63_1, true, false);
|
|
401
401
|
};
|
|
402
|
-
protoOf(Segment).
|
|
403
|
-
var result = !(this.
|
|
404
|
-
ensureNotNull(this.
|
|
405
|
-
ensureNotNull(this.
|
|
406
|
-
this.
|
|
407
|
-
this.
|
|
402
|
+
protoOf(Segment).h63 = function () {
|
|
403
|
+
var result = !(this.e63_1 === this) ? this.e63_1 : null;
|
|
404
|
+
ensureNotNull(this.f63_1).e63_1 = this.e63_1;
|
|
405
|
+
ensureNotNull(this.e63_1).f63_1 = this.f63_1;
|
|
406
|
+
this.e63_1 = null;
|
|
407
|
+
this.f63_1 = null;
|
|
408
408
|
return result;
|
|
409
409
|
};
|
|
410
|
-
protoOf(Segment).
|
|
411
|
-
segment.
|
|
412
|
-
segment.
|
|
413
|
-
ensureNotNull(this.
|
|
414
|
-
this.
|
|
410
|
+
protoOf(Segment).n63 = function (segment) {
|
|
411
|
+
segment.f63_1 = this;
|
|
412
|
+
segment.e63_1 = this.e63_1;
|
|
413
|
+
ensureNotNull(this.e63_1).f63_1 = segment;
|
|
414
|
+
this.e63_1 = segment;
|
|
415
415
|
return segment;
|
|
416
416
|
};
|
|
417
|
-
protoOf(Segment).
|
|
417
|
+
protoOf(Segment).p63 = function (byteCount) {
|
|
418
418
|
// Inline function 'kotlin.require' call
|
|
419
419
|
// Inline function 'kotlin.contracts.contract' call
|
|
420
|
-
if (!(byteCount > 0 && byteCount <= (this.
|
|
420
|
+
if (!(byteCount > 0 && byteCount <= (this.b63_1 - this.a63_1 | 0))) {
|
|
421
421
|
// Inline function 'kotlinx.io.Segment.split.<anonymous>' call
|
|
422
422
|
var message = 'byteCount out of range';
|
|
423
423
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
424
424
|
}
|
|
425
425
|
var prefix;
|
|
426
426
|
if (byteCount >= 1024) {
|
|
427
|
-
prefix = this.
|
|
427
|
+
prefix = this.x63();
|
|
428
428
|
} else {
|
|
429
|
-
prefix = SegmentPool_instance.
|
|
429
|
+
prefix = SegmentPool_instance.m63();
|
|
430
430
|
// Inline function 'kotlin.collections.copyInto' call
|
|
431
|
-
var this_0 = this.
|
|
432
|
-
var destination = prefix.
|
|
433
|
-
var startIndex = this.
|
|
434
|
-
var endIndex = this.
|
|
431
|
+
var this_0 = this.z62_1;
|
|
432
|
+
var destination = prefix.z62_1;
|
|
433
|
+
var startIndex = this.a63_1;
|
|
434
|
+
var endIndex = this.a63_1 + byteCount | 0;
|
|
435
435
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
436
436
|
// Inline function 'kotlin.js.asDynamic' call
|
|
437
437
|
var tmp = this_0;
|
|
@@ -439,86 +439,86 @@
|
|
|
439
439
|
// Inline function 'kotlin.js.asDynamic' call
|
|
440
440
|
arrayCopy(tmp, destination, 0, startIndex, endIndex);
|
|
441
441
|
}
|
|
442
|
-
prefix.
|
|
443
|
-
this.
|
|
444
|
-
ensureNotNull(this.
|
|
442
|
+
prefix.b63_1 = prefix.a63_1 + byteCount | 0;
|
|
443
|
+
this.a63_1 = this.a63_1 + byteCount | 0;
|
|
444
|
+
ensureNotNull(this.f63_1).n63(prefix);
|
|
445
445
|
return prefix;
|
|
446
446
|
};
|
|
447
|
-
protoOf(Segment).
|
|
447
|
+
protoOf(Segment).r63 = function () {
|
|
448
448
|
// Inline function 'kotlin.check' call
|
|
449
449
|
// Inline function 'kotlin.contracts.contract' call
|
|
450
|
-
if (!!(this.
|
|
450
|
+
if (!!(this.f63_1 === this)) {
|
|
451
451
|
// Inline function 'kotlinx.io.Segment.compact.<anonymous>' call
|
|
452
452
|
var message = 'cannot compact';
|
|
453
453
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
454
454
|
}
|
|
455
|
-
if (!ensureNotNull(this.
|
|
455
|
+
if (!ensureNotNull(this.f63_1).d63_1)
|
|
456
456
|
return Unit_instance;
|
|
457
|
-
var byteCount = this.
|
|
458
|
-
var availableByteCount = (8192 - ensureNotNull(this.
|
|
457
|
+
var byteCount = this.b63_1 - this.a63_1 | 0;
|
|
458
|
+
var availableByteCount = (8192 - ensureNotNull(this.f63_1).b63_1 | 0) + (ensureNotNull(this.f63_1).c63_1 ? 0 : ensureNotNull(this.f63_1).a63_1) | 0;
|
|
459
459
|
if (byteCount > availableByteCount)
|
|
460
460
|
return Unit_instance;
|
|
461
|
-
this.
|
|
462
|
-
this.
|
|
463
|
-
SegmentPool_instance.
|
|
461
|
+
this.q63(ensureNotNull(this.f63_1), byteCount);
|
|
462
|
+
this.h63();
|
|
463
|
+
SegmentPool_instance.k63(this);
|
|
464
464
|
};
|
|
465
|
-
protoOf(Segment).
|
|
465
|
+
protoOf(Segment).q63 = function (sink, byteCount) {
|
|
466
466
|
// Inline function 'kotlin.check' call
|
|
467
467
|
// Inline function 'kotlin.contracts.contract' call
|
|
468
|
-
if (!sink.
|
|
468
|
+
if (!sink.d63_1) {
|
|
469
469
|
// Inline function 'kotlinx.io.Segment.writeTo.<anonymous>' call
|
|
470
470
|
var message = 'only owner can write';
|
|
471
471
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
472
472
|
}
|
|
473
|
-
if ((sink.
|
|
474
|
-
if (sink.
|
|
473
|
+
if ((sink.b63_1 + byteCount | 0) > 8192) {
|
|
474
|
+
if (sink.c63_1)
|
|
475
475
|
throw IllegalArgumentException_init_$Create$_0();
|
|
476
|
-
if (((sink.
|
|
476
|
+
if (((sink.b63_1 + byteCount | 0) - sink.a63_1 | 0) > 8192)
|
|
477
477
|
throw IllegalArgumentException_init_$Create$_0();
|
|
478
478
|
// Inline function 'kotlin.collections.copyInto' call
|
|
479
|
-
var this_0 = sink.
|
|
480
|
-
var destination = sink.
|
|
481
|
-
var startIndex = sink.
|
|
482
|
-
var endIndex = sink.
|
|
479
|
+
var this_0 = sink.z62_1;
|
|
480
|
+
var destination = sink.z62_1;
|
|
481
|
+
var startIndex = sink.a63_1;
|
|
482
|
+
var endIndex = sink.b63_1;
|
|
483
483
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
484
484
|
// Inline function 'kotlin.js.asDynamic' call
|
|
485
485
|
var tmp = this_0;
|
|
486
486
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
487
487
|
// Inline function 'kotlin.js.asDynamic' call
|
|
488
488
|
arrayCopy(tmp, destination, 0, startIndex, endIndex);
|
|
489
|
-
sink.
|
|
490
|
-
sink.
|
|
489
|
+
sink.b63_1 = sink.b63_1 - sink.a63_1 | 0;
|
|
490
|
+
sink.a63_1 = 0;
|
|
491
491
|
}
|
|
492
492
|
// Inline function 'kotlin.collections.copyInto' call
|
|
493
|
-
var this_1 = this.
|
|
494
|
-
var destination_0 = sink.
|
|
495
|
-
var destinationOffset = sink.
|
|
496
|
-
var startIndex_0 = this.
|
|
497
|
-
var endIndex_0 = this.
|
|
493
|
+
var this_1 = this.z62_1;
|
|
494
|
+
var destination_0 = sink.z62_1;
|
|
495
|
+
var destinationOffset = sink.b63_1;
|
|
496
|
+
var startIndex_0 = this.a63_1;
|
|
497
|
+
var endIndex_0 = this.a63_1 + byteCount | 0;
|
|
498
498
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
499
499
|
// Inline function 'kotlin.js.asDynamic' call
|
|
500
500
|
var tmp_0 = this_1;
|
|
501
501
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
502
502
|
// Inline function 'kotlin.js.asDynamic' call
|
|
503
503
|
arrayCopy(tmp_0, destination_0, destinationOffset, startIndex_0, endIndex_0);
|
|
504
|
-
sink.
|
|
505
|
-
this.
|
|
504
|
+
sink.b63_1 = sink.b63_1 + byteCount | 0;
|
|
505
|
+
this.a63_1 = this.a63_1 + byteCount | 0;
|
|
506
506
|
};
|
|
507
507
|
function Segment() {
|
|
508
|
-
this.
|
|
509
|
-
this.
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
508
|
+
this.a63_1 = 0;
|
|
509
|
+
this.b63_1 = 0;
|
|
510
|
+
this.c63_1 = false;
|
|
511
|
+
this.d63_1 = false;
|
|
512
|
+
this.e63_1 = null;
|
|
513
|
+
this.f63_1 = null;
|
|
514
514
|
}
|
|
515
515
|
function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
516
516
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
517
517
|
endIndex = endIndex === VOID ? string.length : endIndex;
|
|
518
518
|
// Inline function 'kotlinx.io.writeString.<anonymous>' call
|
|
519
|
-
var it = _this__u8e3s4.
|
|
519
|
+
var it = _this__u8e3s4.w62();
|
|
520
520
|
commonWriteUtf8(it, string, startIndex, endIndex);
|
|
521
|
-
_this__u8e3s4.
|
|
521
|
+
_this__u8e3s4.x62();
|
|
522
522
|
return Unit_instance;
|
|
523
523
|
}
|
|
524
524
|
function commonWriteUtf8(_this__u8e3s4, string, beginIndex, endIndex) {
|
|
@@ -531,9 +531,9 @@
|
|
|
531
531
|
var this_0 = charSequenceGet(string, i);
|
|
532
532
|
var c = Char__toInt_impl_vasixd(this_0);
|
|
533
533
|
if (c < 128) {
|
|
534
|
-
var tail = _this__u8e3s4.
|
|
535
|
-
var data = tail.
|
|
536
|
-
var segmentOffset = tail.
|
|
534
|
+
var tail = _this__u8e3s4.l63(1);
|
|
535
|
+
var data = tail.z62_1;
|
|
536
|
+
var segmentOffset = tail.b63_1 - i | 0;
|
|
537
537
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
538
538
|
var b = 8192 - segmentOffset | 0;
|
|
539
539
|
var runLimit = Math.min(endIndex, b);
|
|
@@ -550,23 +550,23 @@
|
|
|
550
550
|
i = tmp1 + 1 | 0;
|
|
551
551
|
data[segmentOffset + tmp1 | 0] = toByte(c);
|
|
552
552
|
}
|
|
553
|
-
var runSize = (i + segmentOffset | 0) - tail.
|
|
554
|
-
tail.
|
|
555
|
-
_this__u8e3s4.
|
|
553
|
+
var runSize = (i + segmentOffset | 0) - tail.b63_1 | 0;
|
|
554
|
+
tail.b63_1 = tail.b63_1 + runSize | 0;
|
|
555
|
+
_this__u8e3s4.u62_1 = _this__u8e3s4.u62_1.w2(toLong(runSize));
|
|
556
556
|
} else if (c < 2048) {
|
|
557
|
-
var tail_0 = _this__u8e3s4.
|
|
558
|
-
tail_0.
|
|
559
|
-
tail_0.
|
|
560
|
-
tail_0.
|
|
561
|
-
_this__u8e3s4.
|
|
557
|
+
var tail_0 = _this__u8e3s4.l63(2);
|
|
558
|
+
tail_0.z62_1[tail_0.b63_1] = toByte(c >> 6 | 192);
|
|
559
|
+
tail_0.z62_1[tail_0.b63_1 + 1 | 0] = toByte(c & 63 | 128);
|
|
560
|
+
tail_0.b63_1 = tail_0.b63_1 + 2 | 0;
|
|
561
|
+
_this__u8e3s4.u62_1 = _this__u8e3s4.u62_1.w2(new Long(2, 0));
|
|
562
562
|
i = i + 1 | 0;
|
|
563
563
|
} else if (c < 55296 || c > 57343) {
|
|
564
|
-
var tail_1 = _this__u8e3s4.
|
|
565
|
-
tail_1.
|
|
566
|
-
tail_1.
|
|
567
|
-
tail_1.
|
|
568
|
-
tail_1.
|
|
569
|
-
_this__u8e3s4.
|
|
564
|
+
var tail_1 = _this__u8e3s4.l63(3);
|
|
565
|
+
tail_1.z62_1[tail_1.b63_1] = toByte(c >> 12 | 224);
|
|
566
|
+
tail_1.z62_1[tail_1.b63_1 + 1 | 0] = toByte(c >> 6 & 63 | 128);
|
|
567
|
+
tail_1.z62_1[tail_1.b63_1 + 2 | 0] = toByte(c & 63 | 128);
|
|
568
|
+
tail_1.b63_1 = tail_1.b63_1 + 3 | 0;
|
|
569
|
+
_this__u8e3s4.u62_1 = _this__u8e3s4.u62_1.w2(new Long(3, 0));
|
|
570
570
|
i = i + 1 | 0;
|
|
571
571
|
} else {
|
|
572
572
|
var tmp;
|
|
@@ -579,17 +579,17 @@
|
|
|
579
579
|
}
|
|
580
580
|
var low = tmp;
|
|
581
581
|
if (c > 56319 || !(56320 <= low ? low <= 57343 : false)) {
|
|
582
|
-
_this__u8e3s4.
|
|
582
|
+
_this__u8e3s4.o1y(63);
|
|
583
583
|
i = i + 1 | 0;
|
|
584
584
|
} else {
|
|
585
585
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
586
|
-
var tail_2 = _this__u8e3s4.
|
|
587
|
-
tail_2.
|
|
588
|
-
tail_2.
|
|
589
|
-
tail_2.
|
|
590
|
-
tail_2.
|
|
591
|
-
tail_2.
|
|
592
|
-
_this__u8e3s4.
|
|
586
|
+
var tail_2 = _this__u8e3s4.l63(4);
|
|
587
|
+
tail_2.z62_1[tail_2.b63_1] = toByte(codePoint >> 18 | 240);
|
|
588
|
+
tail_2.z62_1[tail_2.b63_1 + 1 | 0] = toByte(codePoint >> 12 & 63 | 128);
|
|
589
|
+
tail_2.z62_1[tail_2.b63_1 + 2 | 0] = toByte(codePoint >> 6 & 63 | 128);
|
|
590
|
+
tail_2.z62_1[tail_2.b63_1 + 3 | 0] = toByte(codePoint & 63 | 128);
|
|
591
|
+
tail_2.b63_1 = tail_2.b63_1 + 4 | 0;
|
|
592
|
+
_this__u8e3s4.u62_1 = _this__u8e3s4.u62_1.w2(new Long(4, 0));
|
|
593
593
|
i = i + 2 | 0;
|
|
594
594
|
}
|
|
595
595
|
}
|
|
@@ -603,9 +603,9 @@
|
|
|
603
603
|
isRegularFile = isRegularFile === VOID ? false : isRegularFile;
|
|
604
604
|
isDirectory = isDirectory === VOID ? false : isDirectory;
|
|
605
605
|
size = size === VOID ? new Long(0, 0) : size;
|
|
606
|
-
this.
|
|
607
|
-
this.
|
|
608
|
-
this.
|
|
606
|
+
this.e64_1 = isRegularFile;
|
|
607
|
+
this.f64_1 = isDirectory;
|
|
608
|
+
this.g64_1 = size;
|
|
609
609
|
}
|
|
610
610
|
function removeTrailingSeparators(path, isWindows_) {
|
|
611
611
|
isWindows_ = isWindows_ === VOID ? get_isWindows() : isWindows_;
|
|
@@ -677,7 +677,7 @@
|
|
|
677
677
|
var this_0 = StringBuilder_init_$Create$_0();
|
|
678
678
|
// Inline function 'kotlin.contracts.contract' call
|
|
679
679
|
// Inline function 'kotlinx.io.files.Path.<anonymous>' call
|
|
680
|
-
this_0.
|
|
680
|
+
this_0.q8(base);
|
|
681
681
|
// Inline function 'kotlin.collections.forEach' call
|
|
682
682
|
var inductionVariable = 0;
|
|
683
683
|
var last = parts.length;
|
|
@@ -693,9 +693,9 @@
|
|
|
693
693
|
tmp = false;
|
|
694
694
|
}
|
|
695
695
|
if (tmp) {
|
|
696
|
-
this_0.
|
|
696
|
+
this_0.r8(get_SystemPathSeparator());
|
|
697
697
|
}
|
|
698
|
-
this_0.
|
|
698
|
+
this_0.q8(element);
|
|
699
699
|
}
|
|
700
700
|
var tmp$ret$2 = this_0.toString();
|
|
701
701
|
return Path_1(tmp$ret$2);
|
|
@@ -736,13 +736,13 @@
|
|
|
736
736
|
captureStack(this, EOFException);
|
|
737
737
|
}
|
|
738
738
|
function SegmentPool() {
|
|
739
|
-
this.
|
|
740
|
-
this.
|
|
739
|
+
this.i63_1 = 0;
|
|
740
|
+
this.j63_1 = 0;
|
|
741
741
|
}
|
|
742
|
-
protoOf(SegmentPool).
|
|
742
|
+
protoOf(SegmentPool).m63 = function () {
|
|
743
743
|
return Segment_init_$Create$();
|
|
744
744
|
};
|
|
745
|
-
protoOf(SegmentPool).
|
|
745
|
+
protoOf(SegmentPool).k63 = function (segment) {
|
|
746
746
|
};
|
|
747
747
|
var SegmentPool_instance;
|
|
748
748
|
function SegmentPool_getInstance() {
|
|
@@ -778,7 +778,7 @@
|
|
|
778
778
|
function SystemFileSystem$1() {
|
|
779
779
|
SystemFileSystemImpl.call(this);
|
|
780
780
|
}
|
|
781
|
-
protoOf(SystemFileSystem$1).
|
|
781
|
+
protoOf(SystemFileSystem$1).y63 = function (path) {
|
|
782
782
|
// Inline function 'kotlin.check' call
|
|
783
783
|
// Inline function 'kotlin.contracts.contract' call
|
|
784
784
|
if (!(get_fs() !== null)) {
|
|
@@ -786,10 +786,10 @@
|
|
|
786
786
|
var message = "Module 'fs' was not found";
|
|
787
787
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
788
788
|
}
|
|
789
|
-
var tmp = get_fs().existsSync(path.
|
|
789
|
+
var tmp = get_fs().existsSync(path.h64_1);
|
|
790
790
|
return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
|
|
791
791
|
};
|
|
792
|
-
protoOf(SystemFileSystem$1).
|
|
792
|
+
protoOf(SystemFileSystem$1).z63 = function (path, mustExist) {
|
|
793
793
|
// Inline function 'kotlin.check' call
|
|
794
794
|
// Inline function 'kotlin.contracts.contract' call
|
|
795
795
|
if (!(get_fs() !== null)) {
|
|
@@ -797,19 +797,19 @@
|
|
|
797
797
|
var message = "Module 'fs' was not found";
|
|
798
798
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
799
799
|
}
|
|
800
|
-
if (!this.
|
|
800
|
+
if (!this.y63(path)) {
|
|
801
801
|
if (mustExist) {
|
|
802
|
-
throw new FileNotFoundException('File does not exist: ' + path.
|
|
802
|
+
throw new FileNotFoundException('File does not exist: ' + path.h64_1);
|
|
803
803
|
}
|
|
804
804
|
return Unit_instance;
|
|
805
805
|
}
|
|
806
806
|
try {
|
|
807
|
-
var stats = get_fs().statSync(path.
|
|
807
|
+
var stats = get_fs().statSync(path.h64_1);
|
|
808
808
|
var tmp = stats.isDirectory();
|
|
809
809
|
if ((!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE()) {
|
|
810
|
-
get_fs().rmdirSync(path.
|
|
810
|
+
get_fs().rmdirSync(path.h64_1);
|
|
811
811
|
} else {
|
|
812
|
-
get_fs().rmSync(path.
|
|
812
|
+
get_fs().rmSync(path.h64_1);
|
|
813
813
|
}
|
|
814
814
|
} catch ($p) {
|
|
815
815
|
if ($p instanceof Error) {
|
|
@@ -820,13 +820,13 @@
|
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
};
|
|
823
|
-
protoOf(SystemFileSystem$1).
|
|
824
|
-
var metadata = this.
|
|
823
|
+
protoOf(SystemFileSystem$1).b64 = function (path, mustCreate) {
|
|
824
|
+
var metadata = this.i64(path);
|
|
825
825
|
if (!(metadata == null)) {
|
|
826
826
|
if (mustCreate) {
|
|
827
827
|
throw IOException_init_$Create$('Path already exists: ' + path.toString());
|
|
828
828
|
}
|
|
829
|
-
if (metadata.
|
|
829
|
+
if (metadata.e64_1) {
|
|
830
830
|
throw IOException_init_$Create$("Path already exists and it's a file: " + path.toString());
|
|
831
831
|
}
|
|
832
832
|
return Unit_instance;
|
|
@@ -834,9 +834,9 @@
|
|
|
834
834
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
835
835
|
var parts = ArrayList_init_$Create$();
|
|
836
836
|
var p = path;
|
|
837
|
-
while (!(p == null) && !this.
|
|
837
|
+
while (!(p == null) && !this.y63(p)) {
|
|
838
838
|
parts.e(p.toString());
|
|
839
|
-
p = p.
|
|
839
|
+
p = p.ep();
|
|
840
840
|
}
|
|
841
841
|
// Inline function 'kotlin.collections.forEach' call
|
|
842
842
|
var tmp0_iterator = asReversed(parts).j();
|
|
@@ -846,7 +846,7 @@
|
|
|
846
846
|
get_fs().mkdirSync(element);
|
|
847
847
|
}
|
|
848
848
|
};
|
|
849
|
-
protoOf(SystemFileSystem$1).
|
|
849
|
+
protoOf(SystemFileSystem$1).i64 = function (path) {
|
|
850
850
|
// Inline function 'kotlin.check' call
|
|
851
851
|
// Inline function 'kotlin.contracts.contract' call
|
|
852
852
|
if (!(get_fs() !== null)) {
|
|
@@ -856,7 +856,7 @@
|
|
|
856
856
|
}
|
|
857
857
|
var tmp;
|
|
858
858
|
try {
|
|
859
|
-
var stat = get_fs().statSync(path.
|
|
859
|
+
var stat = get_fs().statSync(path.h64_1);
|
|
860
860
|
var tmp_0 = stat.mode;
|
|
861
861
|
var mode = (!(tmp_0 == null) ? typeof tmp_0 === 'number' : false) ? tmp_0 : THROW_CCE();
|
|
862
862
|
var tmp_1 = get_fs().constants.S_IFMT;
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
var tmp_6;
|
|
876
876
|
if ($p instanceof Error) {
|
|
877
877
|
var t = $p;
|
|
878
|
-
if (this.
|
|
878
|
+
if (this.y63(path))
|
|
879
879
|
throw new IOException('Stat failed for ' + path.toString(), t);
|
|
880
880
|
return null;
|
|
881
881
|
} else {
|
|
@@ -884,7 +884,7 @@
|
|
|
884
884
|
}
|
|
885
885
|
return tmp;
|
|
886
886
|
};
|
|
887
|
-
protoOf(SystemFileSystem$1).
|
|
887
|
+
protoOf(SystemFileSystem$1).d64 = function (path, append) {
|
|
888
888
|
// Inline function 'kotlin.check' call
|
|
889
889
|
// Inline function 'kotlin.contracts.contract' call
|
|
890
890
|
if (!(get_fs() !== null)) {
|
|
@@ -918,9 +918,9 @@
|
|
|
918
918
|
}
|
|
919
919
|
var SystemPathSeparator$delegate;
|
|
920
920
|
function Path_0(rawPath, any) {
|
|
921
|
-
this.
|
|
921
|
+
this.h64_1 = removeTrailingSeparators(rawPath);
|
|
922
922
|
}
|
|
923
|
-
protoOf(Path_0).
|
|
923
|
+
protoOf(Path_0).ep = function () {
|
|
924
924
|
// Inline function 'kotlin.check' call
|
|
925
925
|
// Inline function 'kotlin.contracts.contract' call
|
|
926
926
|
if (!(get_pathLib() !== null)) {
|
|
@@ -929,17 +929,17 @@
|
|
|
929
929
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
930
930
|
}
|
|
931
931
|
// Inline function 'kotlin.text.isEmpty' call
|
|
932
|
-
var this_0 = this.
|
|
932
|
+
var this_0 = this.h64_1;
|
|
933
933
|
if (charSequenceLength(this_0) === 0)
|
|
934
934
|
return null;
|
|
935
935
|
if (get_isWindows()) {
|
|
936
|
-
if (!contains(this.
|
|
936
|
+
if (!contains(this.h64_1, _Char___init__impl__6a9atx(47)) && !contains(this.h64_1, _Char___init__impl__6a9atx(92))) {
|
|
937
937
|
return null;
|
|
938
938
|
}
|
|
939
|
-
} else if (!contains(this.
|
|
939
|
+
} else if (!contains(this.h64_1, get_SystemPathSeparator())) {
|
|
940
940
|
return null;
|
|
941
941
|
}
|
|
942
|
-
var tmp = get_pathLib().dirname(this.
|
|
942
|
+
var tmp = get_pathLib().dirname(this.h64_1);
|
|
943
943
|
var p = (tmp == null ? true : typeof tmp === 'string') ? tmp : THROW_CCE();
|
|
944
944
|
var tmp_0;
|
|
945
945
|
// Inline function 'kotlin.text.isNullOrEmpty' call
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
if (p == null || charSequenceLength(p) === 0) {
|
|
948
948
|
tmp_0 = null;
|
|
949
949
|
} else {
|
|
950
|
-
if (p === this.
|
|
950
|
+
if (p === this.h64_1) {
|
|
951
951
|
tmp_0 = null;
|
|
952
952
|
} else {
|
|
953
953
|
tmp_0 = Path_1(p);
|
|
@@ -956,45 +956,45 @@
|
|
|
956
956
|
return tmp_0;
|
|
957
957
|
};
|
|
958
958
|
protoOf(Path_0).toString = function () {
|
|
959
|
-
return this.
|
|
959
|
+
return this.h64_1;
|
|
960
960
|
};
|
|
961
961
|
protoOf(Path_0).equals = function (other) {
|
|
962
962
|
if (this === other)
|
|
963
963
|
return true;
|
|
964
964
|
if (!(other instanceof Path_0))
|
|
965
965
|
return false;
|
|
966
|
-
return this.
|
|
966
|
+
return this.h64_1 === other.h64_1;
|
|
967
967
|
};
|
|
968
968
|
protoOf(Path_0).hashCode = function () {
|
|
969
|
-
return getStringHashCode(this.
|
|
969
|
+
return getStringHashCode(this.h64_1);
|
|
970
970
|
};
|
|
971
971
|
function open($this, path, append) {
|
|
972
972
|
var flags = append ? 'a' : 'w';
|
|
973
973
|
var tmp;
|
|
974
974
|
try {
|
|
975
|
-
tmp = get_fs().openSync(path.
|
|
975
|
+
tmp = get_fs().openSync(path.h64_1, flags);
|
|
976
976
|
} catch ($p) {
|
|
977
977
|
var tmp_0;
|
|
978
978
|
if ($p instanceof Error) {
|
|
979
979
|
var e = $p;
|
|
980
|
-
throw new IOException('Failed to open a file ' + path.
|
|
980
|
+
throw new IOException('Failed to open a file ' + path.h64_1 + '.', e);
|
|
981
981
|
} else {
|
|
982
982
|
throw $p;
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
var fd = tmp;
|
|
986
986
|
if (fd < 0)
|
|
987
|
-
throw IOException_init_$Create$('Failed to open a file ' + path.
|
|
987
|
+
throw IOException_init_$Create$('Failed to open a file ' + path.h64_1 + '.');
|
|
988
988
|
return fd;
|
|
989
989
|
}
|
|
990
990
|
function FileSink(path, append) {
|
|
991
|
-
this.
|
|
992
|
-
this.
|
|
991
|
+
this.j64_1 = false;
|
|
992
|
+
this.k64_1 = open(this, path, append);
|
|
993
993
|
}
|
|
994
|
-
protoOf(FileSink).
|
|
994
|
+
protoOf(FileSink).o63 = function (source, byteCount) {
|
|
995
995
|
// Inline function 'kotlin.check' call
|
|
996
996
|
// Inline function 'kotlin.contracts.contract' call
|
|
997
|
-
if (!!this.
|
|
997
|
+
if (!!this.j64_1) {
|
|
998
998
|
// Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
|
|
999
999
|
var message = 'Sink is closed.';
|
|
1000
1000
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -1003,15 +1003,15 @@
|
|
|
1003
1003
|
return Unit_instance;
|
|
1004
1004
|
}
|
|
1005
1005
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
1006
|
-
var b = source.
|
|
1006
|
+
var b = source.u62_1;
|
|
1007
1007
|
var remainingBytes = byteCount.z(b) <= 0 ? byteCount : b;
|
|
1008
1008
|
while (remainingBytes.z(new Long(0, 0)) > 0) {
|
|
1009
|
-
var head = ensureNotNull(source.
|
|
1010
|
-
var segmentBytes = head.
|
|
1009
|
+
var head = ensureNotNull(source.t62_1);
|
|
1010
|
+
var segmentBytes = head.b63_1 - head.a63_1 | 0;
|
|
1011
1011
|
var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
|
|
1012
|
-
buf.fill(head.
|
|
1012
|
+
buf.fill(head.z62_1, head.a63_1, segmentBytes);
|
|
1013
1013
|
try {
|
|
1014
|
-
get_fs().writeFileSync(this.
|
|
1014
|
+
get_fs().writeFileSync(this.k64_1, buf);
|
|
1015
1015
|
} catch ($p) {
|
|
1016
1016
|
if ($p instanceof Error) {
|
|
1017
1017
|
var e = $p;
|
|
@@ -1020,15 +1020,15 @@
|
|
|
1020
1020
|
throw $p;
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
source.
|
|
1023
|
+
source.g63(toLong(segmentBytes));
|
|
1024
1024
|
// Inline function 'kotlin.Long.minus' call
|
|
1025
1025
|
remainingBytes = remainingBytes.x2(toLong(segmentBytes));
|
|
1026
1026
|
}
|
|
1027
1027
|
};
|
|
1028
|
-
protoOf(FileSink).
|
|
1029
|
-
if (!this.
|
|
1030
|
-
this.
|
|
1031
|
-
get_fs().closeSync(this.
|
|
1028
|
+
protoOf(FileSink).x1z = function () {
|
|
1029
|
+
if (!this.j64_1) {
|
|
1030
|
+
this.j64_1 = true;
|
|
1031
|
+
get_fs().closeSync(this.k64_1);
|
|
1032
1032
|
}
|
|
1033
1033
|
};
|
|
1034
1034
|
function Path_1(path) {
|
|
@@ -1134,8 +1134,8 @@
|
|
|
1134
1134
|
return tmp;
|
|
1135
1135
|
}
|
|
1136
1136
|
//region block: post-declaration
|
|
1137
|
-
protoOf(SystemFileSystemImpl).
|
|
1138
|
-
protoOf(SystemFileSystemImpl).
|
|
1137
|
+
protoOf(SystemFileSystemImpl).a64 = delete$default;
|
|
1138
|
+
protoOf(SystemFileSystemImpl).c64 = createDirectories$default;
|
|
1139
1139
|
//endregion
|
|
1140
1140
|
//region block: init
|
|
1141
1141
|
Companion_instance = new Companion();
|