raspberry_games_server_game_logic 1.8.431 → 1.8.433

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.
Files changed (36) hide show
  1. package/Kosi-Kaverit-kaverit.js +2 -2
  2. package/Kosi-Kodein-kodein-di.js +16 -16
  3. package/Kotlin-DateTime-library-kotlinx-datetime.js +151 -151
  4. package/Logic_Debertz-ai_module.js +193 -193
  5. package/Logic_Debertz-core.js +536 -536
  6. package/Logic_Debertz-engine.js +3710 -3649
  7. package/Logic_Debertz-engine.js.map +1 -1
  8. package/Logic_Debertz-game_server.d.ts +16 -0
  9. package/Logic_Debertz-game_server.js +1001 -1001
  10. package/kotlin-kotlin-stdlib.js +546 -540
  11. package/kotlin-kotlin-stdlib.js.map +1 -1
  12. package/kotlinx-atomicfu.js +13 -13
  13. package/kotlinx-coroutines-core.js +2160 -2160
  14. package/kotlinx-io-kotlinx-io-core.js +314 -314
  15. package/kotlinx-serialization-kotlinx-serialization-core.js +1739 -1739
  16. package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
  17. package/kotlinx-serialization-kotlinx-serialization-json.js +1316 -1316
  18. package/ktor-ktor-client-content-negotiation.js +123 -123
  19. package/ktor-ktor-client-core.js +1442 -1442
  20. package/ktor-ktor-client-logging.js +265 -265
  21. package/ktor-ktor-events.js +6 -6
  22. package/ktor-ktor-http.js +590 -590
  23. package/ktor-ktor-io.js +1241 -1241
  24. package/ktor-ktor-serialization-kotlinx-json.js +6 -6
  25. package/ktor-ktor-serialization-kotlinx.js +132 -132
  26. package/ktor-ktor-serialization.js +61 -61
  27. package/ktor-ktor-utils.js +483 -483
  28. package/ktor-ktor-websockets.js +42 -42
  29. package/package.json +1 -1
  30. package/random-library-crypto-rand.js +1 -1
  31. package/random-library-secure-random.js +2 -2
  32. package/raspberry-cardgame-lib-core.js +7 -7
  33. package/raspberry-cardgame-lib-logger.js +90 -90
  34. package/raspberry-cardgame-lib-random.js +794 -794
  35. package/raspberry-cardgame-lib-random.js.map +1 -1
  36. package/uuid.js +12 -12
@@ -72,10 +72,10 @@
72
72
  mustExist = mustExist === VOID ? true : mustExist;
73
73
  var tmp;
74
74
  if ($super === VOID) {
75
- this.d1o(path, mustExist);
75
+ this.e1o(path, mustExist);
76
76
  tmp = Unit_instance;
77
77
  } else {
78
- tmp = $super.d1o.call(this, path, mustExist);
78
+ tmp = $super.e1o.call(this, path, mustExist);
79
79
  }
80
80
  return tmp;
81
81
  }
@@ -83,10 +83,10 @@
83
83
  mustCreate = mustCreate === VOID ? false : mustCreate;
84
84
  var tmp;
85
85
  if ($super === VOID) {
86
- this.f1o(path, mustCreate);
86
+ this.g1o(path, mustCreate);
87
87
  tmp = Unit_instance;
88
88
  } else {
89
- tmp = $super.f1o.call(this, path, mustCreate);
89
+ tmp = $super.g1o.call(this, path, mustCreate);
90
90
  }
91
91
  return tmp;
92
92
  }
@@ -134,33 +134,33 @@
134
134
  }
135
135
  }
136
136
  function Buffer() {
137
- this.a1m_1 = null;
138
137
  this.b1m_1 = null;
139
- this.c1m_1 = new Long(0, 0);
138
+ this.c1m_1 = null;
139
+ this.d1m_1 = new Long(0, 0);
140
140
  }
141
141
  protoOf(Buffer).o = function () {
142
- return this.c1m_1;
142
+ return this.d1m_1;
143
143
  };
144
- protoOf(Buffer).d1m = function () {
144
+ protoOf(Buffer).e1m = function () {
145
145
  return this;
146
146
  };
147
- protoOf(Buffer).e1m = function () {
147
+ protoOf(Buffer).f1m = function () {
148
148
  return equalsLong(this.o(), new Long(0, 0));
149
149
  };
150
- protoOf(Buffer).f1m = function () {
150
+ protoOf(Buffer).g1m = function () {
151
151
  return Unit_instance;
152
152
  };
153
- protoOf(Buffer).g1m = function () {
153
+ protoOf(Buffer).h1m = function () {
154
154
  var result = this.o();
155
155
  if (equalsLong(result, new Long(0, 0)))
156
156
  return new Long(0, 0);
157
- var tail = ensureNotNull(this.b1m_1);
158
- if (tail.j1m_1 < 8192 && tail.l1m_1) {
159
- result = subtract(result, fromInt(tail.j1m_1 - tail.i1m_1 | 0));
157
+ var tail = ensureNotNull(this.c1m_1);
158
+ if (tail.k1m_1 < 8192 && tail.m1m_1) {
159
+ result = subtract(result, fromInt(tail.k1m_1 - tail.j1m_1 | 0));
160
160
  }
161
161
  return result;
162
162
  };
163
- protoOf(Buffer).o1m = function (byteCount) {
163
+ protoOf(Buffer).p1m = function (byteCount) {
164
164
  // Inline function 'kotlinx.io.checkByteCount' call
165
165
  // Inline function 'kotlin.require' call
166
166
  if (!(compare(byteCount, new Long(0, 0)) >= 0)) {
@@ -169,7 +169,7 @@
169
169
  }
170
170
  var remainingByteCount = byteCount;
171
171
  while (compare(remainingByteCount, new Long(0, 0)) > 0) {
172
- var tmp0_elvis_lhs = this.a1m_1;
172
+ var tmp0_elvis_lhs = this.b1m_1;
173
173
  var tmp;
174
174
  if (tmp0_elvis_lhs == null) {
175
175
  throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
@@ -179,100 +179,100 @@
179
179
  var head = tmp;
180
180
  var tmp0 = remainingByteCount;
181
181
  // Inline function 'kotlinx.io.minOf' call
182
- var b = head.j1m_1 - head.i1m_1 | 0;
182
+ var b = head.k1m_1 - head.j1m_1 | 0;
183
183
  // Inline function 'kotlin.comparisons.minOf' call
184
184
  var b_0 = fromInt(b);
185
185
  var tmp$ret$4 = compare(tmp0, b_0) <= 0 ? tmp0 : b_0;
186
186
  var toSkip = convertToInt(tmp$ret$4);
187
- this.c1m_1 = subtract(this.c1m_1, fromInt(toSkip));
187
+ this.d1m_1 = subtract(this.d1m_1, fromInt(toSkip));
188
188
  remainingByteCount = subtract(remainingByteCount, fromInt(toSkip));
189
- head.i1m_1 = head.i1m_1 + toSkip | 0;
190
- if (head.i1m_1 === head.j1m_1) {
191
- this.p1m();
189
+ head.j1m_1 = head.j1m_1 + toSkip | 0;
190
+ if (head.j1m_1 === head.k1m_1) {
191
+ this.q1m();
192
192
  }
193
193
  }
194
194
  };
195
- protoOf(Buffer).q1m = function (minimumCapacity) {
195
+ protoOf(Buffer).r1m = function (minimumCapacity) {
196
196
  // Inline function 'kotlin.require' call
197
197
  if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
198
198
  var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
199
199
  throw IllegalArgumentException_init_$Create$(toString(message));
200
200
  }
201
- if (this.b1m_1 == null) {
202
- var result = SegmentPool_instance.t1m();
203
- this.a1m_1 = result;
201
+ if (this.c1m_1 == null) {
202
+ var result = SegmentPool_instance.u1m();
204
203
  this.b1m_1 = result;
204
+ this.c1m_1 = result;
205
205
  return result;
206
206
  }
207
- var t = ensureNotNull(this.b1m_1);
208
- if ((t.j1m_1 + minimumCapacity | 0) > 8192 || !t.l1m_1) {
209
- var newTail = t.u1m(SegmentPool_instance.t1m());
210
- this.b1m_1 = newTail;
207
+ var t = ensureNotNull(this.c1m_1);
208
+ if ((t.k1m_1 + minimumCapacity | 0) > 8192 || !t.m1m_1) {
209
+ var newTail = t.v1m(SegmentPool_instance.u1m());
210
+ this.c1m_1 = newTail;
211
211
  return newTail;
212
212
  }
213
213
  return t;
214
214
  };
215
- protoOf(Buffer).v1m = function (source, byteCount) {
215
+ protoOf(Buffer).w1m = function (source, byteCount) {
216
216
  // Inline function 'kotlin.require' call
217
217
  if (!!(source === this)) {
218
218
  var message = 'source == this';
219
219
  throw IllegalArgumentException_init_$Create$(toString(message));
220
220
  }
221
- checkOffsetAndCount(source.c1m_1, new Long(0, 0), byteCount);
221
+ checkOffsetAndCount(source.d1m_1, new Long(0, 0), byteCount);
222
222
  var remainingByteCount = byteCount;
223
223
  while (compare(remainingByteCount, new Long(0, 0)) > 0) {
224
- if (compare(remainingByteCount, fromInt(ensureNotNull(source.a1m_1).o())) < 0) {
225
- var tail = this.b1m_1;
224
+ if (compare(remainingByteCount, fromInt(ensureNotNull(source.b1m_1).o())) < 0) {
225
+ var tail = this.c1m_1;
226
226
  var tmp;
227
- if (!(tail == null) && tail.l1m_1) {
227
+ if (!(tail == null) && tail.m1m_1) {
228
228
  var tmp0 = remainingByteCount;
229
229
  // Inline function 'kotlin.Long.plus' call
230
- var other = tail.j1m_1;
230
+ var other = tail.k1m_1;
231
231
  var tmp0_0 = add(tmp0, fromInt(other));
232
232
  // Inline function 'kotlin.Long.minus' call
233
- var other_0 = tail.w1m() ? 0 : tail.i1m_1;
233
+ var other_0 = tail.x1m() ? 0 : tail.j1m_1;
234
234
  var tmp$ret$3 = subtract(tmp0_0, fromInt(other_0));
235
235
  tmp = compare(tmp$ret$3, new Long(8192, 0)) <= 0;
236
236
  } else {
237
237
  tmp = false;
238
238
  }
239
239
  if (tmp) {
240
- ensureNotNull(source.a1m_1).y1m(tail, convertToInt(remainingByteCount));
241
- source.c1m_1 = subtract(source.c1m_1, remainingByteCount);
242
- this.c1m_1 = add(this.c1m_1, remainingByteCount);
240
+ ensureNotNull(source.b1m_1).z1m(tail, convertToInt(remainingByteCount));
241
+ source.d1m_1 = subtract(source.d1m_1, remainingByteCount);
242
+ this.d1m_1 = add(this.d1m_1, remainingByteCount);
243
243
  return Unit_instance;
244
244
  } else {
245
- source.a1m_1 = ensureNotNull(source.a1m_1).x1m(convertToInt(remainingByteCount));
245
+ source.b1m_1 = ensureNotNull(source.b1m_1).y1m(convertToInt(remainingByteCount));
246
246
  }
247
247
  }
248
- var segmentToMove = ensureNotNull(source.a1m_1);
248
+ var segmentToMove = ensureNotNull(source.b1m_1);
249
249
  var movedByteCount = fromInt(segmentToMove.o());
250
- source.a1m_1 = segmentToMove.z1m();
251
- if (source.a1m_1 == null) {
252
- source.b1m_1 = null;
250
+ source.b1m_1 = segmentToMove.a1n();
251
+ if (source.b1m_1 == null) {
252
+ source.c1m_1 = null;
253
253
  }
254
254
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
255
- if (this.a1m_1 == null) {
256
- this.a1m_1 = segmentToMove;
255
+ if (this.b1m_1 == null) {
257
256
  this.b1m_1 = segmentToMove;
257
+ this.c1m_1 = segmentToMove;
258
258
  } else if (true) {
259
- this.b1m_1 = ensureNotNull(this.b1m_1).u1m(segmentToMove).a1n();
260
- if (ensureNotNull(this.b1m_1).n1m_1 == null) {
261
- this.a1m_1 = this.b1m_1;
259
+ this.c1m_1 = ensureNotNull(this.c1m_1).v1m(segmentToMove).b1n();
260
+ if (ensureNotNull(this.c1m_1).o1m_1 == null) {
261
+ this.b1m_1 = this.c1m_1;
262
262
  }
263
263
  } else {
264
- this.b1m_1 = ensureNotNull(this.b1m_1).u1m(segmentToMove);
264
+ this.c1m_1 = ensureNotNull(this.c1m_1).v1m(segmentToMove);
265
265
  }
266
- source.c1m_1 = subtract(source.c1m_1, movedByteCount);
267
- this.c1m_1 = add(this.c1m_1, movedByteCount);
266
+ source.d1m_1 = subtract(source.d1m_1, movedByteCount);
267
+ this.d1m_1 = add(this.d1m_1, movedByteCount);
268
268
  remainingByteCount = subtract(remainingByteCount, movedByteCount);
269
269
  }
270
270
  };
271
- protoOf(Buffer).b1n = function (byte) {
272
- this.q1m(1).c1n(byte);
273
- this.c1m_1 = add(this.c1m_1, new Long(1, 0));
271
+ protoOf(Buffer).c1n = function (byte) {
272
+ this.r1m(1).d1n(byte);
273
+ this.d1m_1 = add(this.d1m_1, new Long(1, 0));
274
274
  };
275
- protoOf(Buffer).d1n = function () {
275
+ protoOf(Buffer).e1n = function () {
276
276
  return Unit_instance;
277
277
  };
278
278
  protoOf(Buffer).toString = function () {
@@ -288,7 +288,7 @@
288
288
  var builder = StringBuilder_init_$Create$(imul(len, 2) + (compare(this.o(), fromInt(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
289
289
  var bytesWritten = 0;
290
290
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
291
- var curr = this.a1m_1;
291
+ var curr = this.b1m_1;
292
292
  while (!(curr == null)) {
293
293
  var tmp0 = get_SegmentReadContextImpl();
294
294
  var segment = curr;
@@ -296,7 +296,7 @@
296
296
  while (bytesWritten < len && idx < segment.o()) {
297
297
  var _unary__edvuaz = idx;
298
298
  idx = _unary__edvuaz + 1 | 0;
299
- var b_0 = tmp0.e1n(segment, _unary__edvuaz);
299
+ var b_0 = tmp0.f1n(segment, _unary__edvuaz);
300
300
  bytesWritten = bytesWritten + 1 | 0;
301
301
  var tmp = get_HEX_DIGIT_CHARS();
302
302
  // Inline function 'kotlinx.io.shr' call
@@ -307,52 +307,52 @@
307
307
  var tmp$ret$3 = b_0 & 15;
308
308
  tmp_0.e8(tmp_1[tmp$ret$3]);
309
309
  }
310
- curr = curr.m1m_1;
310
+ curr = curr.n1m_1;
311
311
  }
312
312
  if (compare(this.o(), fromInt(maxPrintableBytes)) > 0) {
313
313
  builder.e8(_Char___init__impl__6a9atx(8230));
314
314
  }
315
315
  return 'Buffer(size=' + this.o().toString() + ' hex=' + builder.toString() + ')';
316
316
  };
317
- protoOf(Buffer).p1m = function () {
318
- var oldHead = ensureNotNull(this.a1m_1);
319
- var nextHead = oldHead.m1m_1;
320
- this.a1m_1 = nextHead;
317
+ protoOf(Buffer).q1m = function () {
318
+ var oldHead = ensureNotNull(this.b1m_1);
319
+ var nextHead = oldHead.n1m_1;
320
+ this.b1m_1 = nextHead;
321
321
  if (nextHead == null) {
322
- this.b1m_1 = null;
322
+ this.c1m_1 = null;
323
323
  } else {
324
- nextHead.n1m_1 = null;
324
+ nextHead.o1m_1 = null;
325
325
  }
326
- oldHead.m1m_1 = null;
327
- SegmentPool_instance.f1n(oldHead);
326
+ oldHead.n1m_1 = null;
327
+ SegmentPool_instance.g1n(oldHead);
328
328
  };
329
- protoOf(Buffer).g1n = function () {
330
- var oldTail = ensureNotNull(this.b1m_1);
331
- var newTail = oldTail.n1m_1;
332
- this.b1m_1 = newTail;
329
+ protoOf(Buffer).h1n = function () {
330
+ var oldTail = ensureNotNull(this.c1m_1);
331
+ var newTail = oldTail.o1m_1;
332
+ this.c1m_1 = newTail;
333
333
  if (newTail == null) {
334
- this.a1m_1 = null;
334
+ this.b1m_1 = null;
335
335
  } else {
336
- newTail.m1m_1 = null;
336
+ newTail.n1m_1 = null;
337
337
  }
338
- oldTail.n1m_1 = null;
339
- SegmentPool_instance.f1n(oldTail);
338
+ oldTail.o1m_1 = null;
339
+ SegmentPool_instance.g1n(oldTail);
340
340
  };
341
341
  function buffered(_this__u8e3s4) {
342
342
  return new RealSink(_this__u8e3s4);
343
343
  }
344
344
  function RealSink(sink) {
345
- this.h1n_1 = sink;
346
- this.i1n_1 = false;
347
- this.j1n_1 = new Buffer();
345
+ this.i1n_1 = sink;
346
+ this.j1n_1 = false;
347
+ this.k1n_1 = new Buffer();
348
348
  }
349
- protoOf(RealSink).d1m = function () {
350
- return this.j1n_1;
349
+ protoOf(RealSink).e1m = function () {
350
+ return this.k1n_1;
351
351
  };
352
- protoOf(RealSink).v1m = function (source, byteCount) {
352
+ protoOf(RealSink).w1m = function (source, byteCount) {
353
353
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
354
354
  // Inline function 'kotlin.check' call
355
- if (!!this.i1n_1) {
355
+ if (!!this.j1n_1) {
356
356
  var message = 'Sink is closed.';
357
357
  throw IllegalStateException_init_$Create$(toString(message));
358
358
  }
@@ -361,28 +361,28 @@
361
361
  var message_0 = 'byteCount: ' + byteCount.toString();
362
362
  throw IllegalArgumentException_init_$Create$(toString(message_0));
363
363
  }
364
- this.j1n_1.v1m(source, byteCount);
365
- this.f1m();
364
+ this.k1n_1.w1m(source, byteCount);
365
+ this.g1m();
366
366
  };
367
- protoOf(RealSink).f1m = function () {
367
+ protoOf(RealSink).g1m = function () {
368
368
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
369
369
  // Inline function 'kotlin.check' call
370
- if (!!this.i1n_1) {
370
+ if (!!this.j1n_1) {
371
371
  var message = 'Sink is closed.';
372
372
  throw IllegalStateException_init_$Create$(toString(message));
373
373
  }
374
- var byteCount = this.j1n_1.g1m();
374
+ var byteCount = this.k1n_1.h1m();
375
375
  if (compare(byteCount, new Long(0, 0)) > 0) {
376
- this.h1n_1.v1m(this.j1n_1, byteCount);
376
+ this.i1n_1.w1m(this.k1n_1, byteCount);
377
377
  }
378
378
  };
379
- protoOf(RealSink).d1n = function () {
380
- if (this.i1n_1)
379
+ protoOf(RealSink).e1n = function () {
380
+ if (this.j1n_1)
381
381
  return Unit_instance;
382
382
  var thrown = null;
383
383
  try {
384
- if (compare(this.j1n_1.o(), new Long(0, 0)) > 0) {
385
- this.h1n_1.v1m(this.j1n_1, this.j1n_1.o());
384
+ if (compare(this.k1n_1.o(), new Long(0, 0)) > 0) {
385
+ this.i1n_1.w1m(this.k1n_1, this.k1n_1.o());
386
386
  }
387
387
  } catch ($p) {
388
388
  if ($p instanceof Error) {
@@ -393,7 +393,7 @@
393
393
  }
394
394
  }
395
395
  try {
396
- this.h1n_1.d1n();
396
+ this.i1n_1.e1n();
397
397
  } catch ($p) {
398
398
  if ($p instanceof Error) {
399
399
  var e_0 = $p;
@@ -403,18 +403,18 @@
403
403
  throw $p;
404
404
  }
405
405
  }
406
- this.i1n_1 = true;
406
+ this.j1n_1 = true;
407
407
  if (!(thrown == null))
408
408
  throw thrown;
409
409
  };
410
410
  protoOf(RealSink).toString = function () {
411
- return 'buffered(' + toString(this.h1n_1) + ')';
411
+ return 'buffered(' + toString(this.i1n_1) + ')';
412
412
  };
413
413
  function Segment_init_$Init$($this) {
414
414
  Segment.call($this);
415
- $this.h1m_1 = new Int8Array(8192);
416
- $this.l1m_1 = true;
417
- $this.k1m_1 = null;
415
+ $this.i1m_1 = new Int8Array(8192);
416
+ $this.m1m_1 = true;
417
+ $this.l1m_1 = null;
418
418
  return $this;
419
419
  }
420
420
  function Segment_init_$Create$() {
@@ -422,87 +422,87 @@
422
422
  }
423
423
  function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
424
424
  Segment.call($this);
425
- $this.h1m_1 = data;
426
- $this.i1m_1 = pos;
427
- $this.j1m_1 = limit;
428
- $this.k1m_1 = shareToken;
429
- $this.l1m_1 = owner;
425
+ $this.i1m_1 = data;
426
+ $this.j1m_1 = pos;
427
+ $this.k1m_1 = limit;
428
+ $this.l1m_1 = shareToken;
429
+ $this.m1m_1 = owner;
430
430
  return $this;
431
431
  }
432
432
  function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
433
433
  return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
434
434
  }
435
435
  function Companion() {
436
- this.k1n_1 = 8192;
437
- this.l1n_1 = 1024;
436
+ this.l1n_1 = 8192;
437
+ this.m1n_1 = 1024;
438
438
  }
439
- protoOf(Companion).m1n = function () {
439
+ protoOf(Companion).n1n = function () {
440
440
  return Segment_init_$Create$();
441
441
  };
442
442
  var Companion_instance;
443
443
  function Companion_getInstance() {
444
444
  return Companion_instance;
445
445
  }
446
- protoOf(Segment).w1m = function () {
447
- var tmp0_safe_receiver = this.k1m_1;
448
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.n1n();
446
+ protoOf(Segment).x1m = function () {
447
+ var tmp0_safe_receiver = this.l1m_1;
448
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o1n();
449
449
  return tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
450
450
  };
451
- protoOf(Segment).o1n = function () {
452
- var tmp0_elvis_lhs = this.k1m_1;
451
+ protoOf(Segment).p1n = function () {
452
+ var tmp0_elvis_lhs = this.l1m_1;
453
453
  var tmp;
454
454
  if (tmp0_elvis_lhs == null) {
455
455
  // Inline function 'kotlin.also' call
456
- var this_0 = SegmentPool_instance.p1n();
457
- this.k1m_1 = this_0;
456
+ var this_0 = SegmentPool_instance.q1n();
457
+ this.l1m_1 = this_0;
458
458
  tmp = this_0;
459
459
  } else {
460
460
  tmp = tmp0_elvis_lhs;
461
461
  }
462
462
  var t = tmp;
463
- var tmp_0 = this.i1m_1;
464
- var tmp_1 = this.j1m_1;
463
+ var tmp_0 = this.j1m_1;
464
+ var tmp_1 = this.k1m_1;
465
465
  // Inline function 'kotlin.also' call
466
- t.q1n();
467
- return Segment_init_$Create$_0(this.h1m_1, tmp_0, tmp_1, t, false);
466
+ t.r1n();
467
+ return Segment_init_$Create$_0(this.i1m_1, tmp_0, tmp_1, t, false);
468
468
  };
469
- protoOf(Segment).z1m = function () {
470
- var result = this.m1m_1;
471
- if (!(this.n1m_1 == null)) {
472
- ensureNotNull(this.n1m_1).m1m_1 = this.m1m_1;
469
+ protoOf(Segment).a1n = function () {
470
+ var result = this.n1m_1;
471
+ if (!(this.o1m_1 == null)) {
472
+ ensureNotNull(this.o1m_1).n1m_1 = this.n1m_1;
473
473
  }
474
- if (!(this.m1m_1 == null)) {
475
- ensureNotNull(this.m1m_1).n1m_1 = this.n1m_1;
474
+ if (!(this.n1m_1 == null)) {
475
+ ensureNotNull(this.n1m_1).o1m_1 = this.o1m_1;
476
476
  }
477
- this.m1m_1 = null;
478
477
  this.n1m_1 = null;
478
+ this.o1m_1 = null;
479
479
  return result;
480
480
  };
481
- protoOf(Segment).u1m = function (segment) {
482
- segment.n1m_1 = this;
483
- segment.m1m_1 = this.m1m_1;
484
- if (!(this.m1m_1 == null)) {
485
- ensureNotNull(this.m1m_1).n1m_1 = segment;
481
+ protoOf(Segment).v1m = function (segment) {
482
+ segment.o1m_1 = this;
483
+ segment.n1m_1 = this.n1m_1;
484
+ if (!(this.n1m_1 == null)) {
485
+ ensureNotNull(this.n1m_1).o1m_1 = segment;
486
486
  }
487
- this.m1m_1 = segment;
487
+ this.n1m_1 = segment;
488
488
  return segment;
489
489
  };
490
- protoOf(Segment).x1m = function (byteCount) {
490
+ protoOf(Segment).y1m = function (byteCount) {
491
491
  // Inline function 'kotlin.require' call
492
- if (!(byteCount > 0 && byteCount <= (this.j1m_1 - this.i1m_1 | 0))) {
492
+ if (!(byteCount > 0 && byteCount <= (this.k1m_1 - this.j1m_1 | 0))) {
493
493
  var message = 'byteCount out of range';
494
494
  throw IllegalArgumentException_init_$Create$(toString(message));
495
495
  }
496
496
  var prefix;
497
497
  if (byteCount >= 1024) {
498
- prefix = this.o1n();
498
+ prefix = this.p1n();
499
499
  } else {
500
- prefix = SegmentPool_instance.t1m();
501
- var tmp0 = this.h1m_1;
502
- var tmp2 = prefix.h1m_1;
503
- var tmp4 = this.i1m_1;
500
+ prefix = SegmentPool_instance.u1m();
501
+ var tmp0 = this.i1m_1;
502
+ var tmp2 = prefix.i1m_1;
503
+ var tmp4 = this.j1m_1;
504
504
  // Inline function 'kotlin.collections.copyInto' call
505
- var endIndex = this.i1m_1 + byteCount | 0;
505
+ var endIndex = this.j1m_1 + byteCount | 0;
506
506
  // Inline function 'kotlin.js.unsafeCast' call
507
507
  // Inline function 'kotlin.js.asDynamic' call
508
508
  var tmp = tmp0;
@@ -510,126 +510,126 @@
510
510
  // Inline function 'kotlin.js.asDynamic' call
511
511
  arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
512
512
  }
513
- prefix.j1m_1 = prefix.i1m_1 + byteCount | 0;
514
- this.i1m_1 = this.i1m_1 + byteCount | 0;
515
- if (!(this.n1m_1 == null)) {
516
- ensureNotNull(this.n1m_1).u1m(prefix);
513
+ prefix.k1m_1 = prefix.j1m_1 + byteCount | 0;
514
+ this.j1m_1 = this.j1m_1 + byteCount | 0;
515
+ if (!(this.o1m_1 == null)) {
516
+ ensureNotNull(this.o1m_1).v1m(prefix);
517
517
  } else {
518
- prefix.m1m_1 = this;
519
- this.n1m_1 = prefix;
518
+ prefix.n1m_1 = this;
519
+ this.o1m_1 = prefix;
520
520
  }
521
521
  return prefix;
522
522
  };
523
- protoOf(Segment).a1n = function () {
523
+ protoOf(Segment).b1n = function () {
524
524
  // Inline function 'kotlin.check' call
525
- if (!!(this.n1m_1 == null)) {
525
+ if (!!(this.o1m_1 == null)) {
526
526
  var message = 'cannot compact';
527
527
  throw IllegalStateException_init_$Create$(toString(message));
528
528
  }
529
- if (!ensureNotNull(this.n1m_1).l1m_1)
529
+ if (!ensureNotNull(this.o1m_1).m1m_1)
530
530
  return this;
531
- var byteCount = this.j1m_1 - this.i1m_1 | 0;
532
- var availableByteCount = (8192 - ensureNotNull(this.n1m_1).j1m_1 | 0) + (ensureNotNull(this.n1m_1).w1m() ? 0 : ensureNotNull(this.n1m_1).i1m_1) | 0;
531
+ var byteCount = this.k1m_1 - this.j1m_1 | 0;
532
+ var availableByteCount = (8192 - ensureNotNull(this.o1m_1).k1m_1 | 0) + (ensureNotNull(this.o1m_1).x1m() ? 0 : ensureNotNull(this.o1m_1).j1m_1) | 0;
533
533
  if (byteCount > availableByteCount)
534
534
  return this;
535
- var predecessor = this.n1m_1;
536
- this.y1m(ensureNotNull(predecessor), byteCount);
537
- var successor = this.z1m();
535
+ var predecessor = this.o1m_1;
536
+ this.z1m(ensureNotNull(predecessor), byteCount);
537
+ var successor = this.a1n();
538
538
  // Inline function 'kotlin.check' call
539
539
  if (!(successor == null)) {
540
540
  throw IllegalStateException_init_$Create$('Check failed.');
541
541
  }
542
- SegmentPool_instance.f1n(this);
542
+ SegmentPool_instance.g1n(this);
543
543
  return predecessor;
544
544
  };
545
- protoOf(Segment).c1n = function (byte) {
546
- var _unary__edvuaz = this.j1m_1;
547
- this.j1m_1 = _unary__edvuaz + 1 | 0;
548
- this.h1m_1[_unary__edvuaz] = byte;
545
+ protoOf(Segment).d1n = function (byte) {
546
+ var _unary__edvuaz = this.k1m_1;
547
+ this.k1m_1 = _unary__edvuaz + 1 | 0;
548
+ this.i1m_1[_unary__edvuaz] = byte;
549
549
  };
550
- protoOf(Segment).y1m = function (sink, byteCount) {
550
+ protoOf(Segment).z1m = function (sink, byteCount) {
551
551
  // Inline function 'kotlin.check' call
552
- if (!sink.l1m_1) {
552
+ if (!sink.m1m_1) {
553
553
  var message = 'only owner can write';
554
554
  throw IllegalStateException_init_$Create$(toString(message));
555
555
  }
556
- if ((sink.j1m_1 + byteCount | 0) > 8192) {
557
- if (sink.w1m())
556
+ if ((sink.k1m_1 + byteCount | 0) > 8192) {
557
+ if (sink.x1m())
558
558
  throw IllegalArgumentException_init_$Create$_0();
559
- if (((sink.j1m_1 + byteCount | 0) - sink.i1m_1 | 0) > 8192)
559
+ if (((sink.k1m_1 + byteCount | 0) - sink.j1m_1 | 0) > 8192)
560
560
  throw IllegalArgumentException_init_$Create$_0();
561
- var tmp0 = sink.h1m_1;
562
- var tmp2 = sink.h1m_1;
563
- var tmp4 = sink.i1m_1;
561
+ var tmp0 = sink.i1m_1;
562
+ var tmp2 = sink.i1m_1;
563
+ var tmp4 = sink.j1m_1;
564
564
  // Inline function 'kotlin.collections.copyInto' call
565
- var endIndex = sink.j1m_1;
565
+ var endIndex = sink.k1m_1;
566
566
  // Inline function 'kotlin.js.unsafeCast' call
567
567
  // Inline function 'kotlin.js.asDynamic' call
568
568
  var tmp = tmp0;
569
569
  // Inline function 'kotlin.js.unsafeCast' call
570
570
  // Inline function 'kotlin.js.asDynamic' call
571
571
  arrayCopy(tmp, tmp2, 0, tmp4, endIndex);
572
- sink.j1m_1 = sink.j1m_1 - sink.i1m_1 | 0;
573
- sink.i1m_1 = 0;
572
+ sink.k1m_1 = sink.k1m_1 - sink.j1m_1 | 0;
573
+ sink.j1m_1 = 0;
574
574
  }
575
- var tmp0_0 = this.h1m_1;
576
- var tmp2_0 = sink.h1m_1;
577
- var tmp4_0 = sink.j1m_1;
578
- var tmp6 = this.i1m_1;
575
+ var tmp0_0 = this.i1m_1;
576
+ var tmp2_0 = sink.i1m_1;
577
+ var tmp4_0 = sink.k1m_1;
578
+ var tmp6 = this.j1m_1;
579
579
  // Inline function 'kotlin.collections.copyInto' call
580
- var endIndex_0 = this.i1m_1 + byteCount | 0;
580
+ var endIndex_0 = this.j1m_1 + byteCount | 0;
581
581
  // Inline function 'kotlin.js.unsafeCast' call
582
582
  // Inline function 'kotlin.js.asDynamic' call
583
583
  var tmp_0 = tmp0_0;
584
584
  // Inline function 'kotlin.js.unsafeCast' call
585
585
  // Inline function 'kotlin.js.asDynamic' call
586
586
  arrayCopy(tmp_0, tmp2_0, tmp4_0, tmp6, endIndex_0);
587
- sink.j1m_1 = sink.j1m_1 + byteCount | 0;
588
- this.i1m_1 = this.i1m_1 + byteCount | 0;
587
+ sink.k1m_1 = sink.k1m_1 + byteCount | 0;
588
+ this.j1m_1 = this.j1m_1 + byteCount | 0;
589
589
  };
590
590
  protoOf(Segment).o = function () {
591
- return this.j1m_1 - this.i1m_1 | 0;
591
+ return this.k1m_1 - this.j1m_1 | 0;
592
592
  };
593
- protoOf(Segment).r1n = function () {
594
- return this.h1m_1.length - this.j1m_1 | 0;
593
+ protoOf(Segment).s1n = function () {
594
+ return this.i1m_1.length - this.k1m_1 | 0;
595
595
  };
596
- protoOf(Segment).s1n = function (readOnly) {
597
- return this.h1m_1;
596
+ protoOf(Segment).t1n = function (readOnly) {
597
+ return this.i1m_1;
598
598
  };
599
- protoOf(Segment).t1n = function (index) {
600
- return this.h1m_1[this.i1m_1 + index | 0];
599
+ protoOf(Segment).u1n = function (index) {
600
+ return this.i1m_1[this.j1m_1 + index | 0];
601
601
  };
602
- protoOf(Segment).u1n = function (index, value) {
603
- this.h1m_1[this.j1m_1 + index | 0] = value;
602
+ protoOf(Segment).v1n = function (index, value) {
603
+ this.i1m_1[this.k1m_1 + index | 0] = value;
604
604
  };
605
- protoOf(Segment).v1n = function (index, b0, b1) {
606
- var d = this.h1m_1;
607
- var l = this.j1m_1;
605
+ protoOf(Segment).w1n = function (index, b0, b1) {
606
+ var d = this.i1m_1;
607
+ var l = this.k1m_1;
608
608
  d[l + index | 0] = b0;
609
609
  d[(l + index | 0) + 1 | 0] = b1;
610
610
  };
611
- protoOf(Segment).w1n = function (index, b0, b1, b2) {
612
- var d = this.h1m_1;
613
- var l = this.j1m_1;
611
+ protoOf(Segment).x1n = function (index, b0, b1, b2) {
612
+ var d = this.i1m_1;
613
+ var l = this.k1m_1;
614
614
  d[l + index | 0] = b0;
615
615
  d[(l + index | 0) + 1 | 0] = b1;
616
616
  d[(l + index | 0) + 2 | 0] = b2;
617
617
  };
618
- protoOf(Segment).x1n = function (index, b0, b1, b2, b3) {
619
- var d = this.h1m_1;
620
- var l = this.j1m_1;
618
+ protoOf(Segment).y1n = function (index, b0, b1, b2, b3) {
619
+ var d = this.i1m_1;
620
+ var l = this.k1m_1;
621
621
  d[l + index | 0] = b0;
622
622
  d[(l + index | 0) + 1 | 0] = b1;
623
623
  d[(l + index | 0) + 2 | 0] = b2;
624
624
  d[(l + index | 0) + 3 | 0] = b3;
625
625
  };
626
626
  function Segment() {
627
- this.i1m_1 = 0;
628
627
  this.j1m_1 = 0;
629
- this.k1m_1 = null;
630
- this.l1m_1 = false;
631
- this.m1m_1 = null;
628
+ this.k1m_1 = 0;
629
+ this.l1m_1 = null;
630
+ this.m1m_1 = false;
632
631
  this.n1m_1 = null;
632
+ this.o1m_1 = null;
633
633
  }
634
634
  function SegmentCopyTracker() {
635
635
  }
@@ -640,10 +640,10 @@
640
640
  AlwaysSharedCopyTracker_instance = this;
641
641
  SegmentCopyTracker.call(this);
642
642
  }
643
- protoOf(AlwaysSharedCopyTracker).n1n = function () {
643
+ protoOf(AlwaysSharedCopyTracker).o1n = function () {
644
644
  return true;
645
645
  };
646
- protoOf(AlwaysSharedCopyTracker).q1n = function () {
646
+ protoOf(AlwaysSharedCopyTracker).r1n = function () {
647
647
  return Unit_instance;
648
648
  };
649
649
  var AlwaysSharedCopyTracker_instance;
@@ -660,7 +660,7 @@
660
660
  checkBounds(fromInt(size), fromInt(startIndex), fromInt(endIndex));
661
661
  // Inline function 'kotlinx.io.writeToInternalBuffer' call
662
662
  // Inline function 'kotlinx.io.commonWriteUtf8' call
663
- var this_0 = _this__u8e3s4.d1m();
663
+ var this_0 = _this__u8e3s4.e1m();
664
664
  var i = startIndex;
665
665
  while (i < endIndex) {
666
666
  var p0 = i;
@@ -670,15 +670,15 @@
670
670
  if (c < 128) {
671
671
  $l$block_0: {
672
672
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
673
- var tail = this_0.q1m(1);
673
+ var tail = this_0.r1m(1);
674
674
  var ctx = get_SegmentWriteContextImpl();
675
675
  var segmentOffset = -i | 0;
676
676
  // Inline function 'kotlin.comparisons.minOf' call
677
- var b = i + tail.r1n() | 0;
677
+ var b = i + tail.s1n() | 0;
678
678
  var runLimit = Math.min(endIndex, b);
679
679
  var _unary__edvuaz = i;
680
680
  i = _unary__edvuaz + 1 | 0;
681
- ctx.b1o(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
681
+ ctx.c1o(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
682
682
  $l$loop: while (i < runLimit) {
683
683
  var p0_0 = i;
684
684
  // Inline function 'kotlin.code' call
@@ -688,95 +688,95 @@
688
688
  break $l$loop;
689
689
  var _unary__edvuaz_0 = i;
690
690
  i = _unary__edvuaz_0 + 1 | 0;
691
- ctx.b1o(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
691
+ ctx.c1o(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
692
692
  }
693
693
  var bytesWritten = i + segmentOffset | 0;
694
694
  if (bytesWritten === 1) {
695
- tail.j1m_1 = tail.j1m_1 + bytesWritten | 0;
695
+ tail.k1m_1 = tail.k1m_1 + bytesWritten | 0;
696
696
  var tmp = this_0;
697
697
  // Inline function 'kotlin.Long.plus' call
698
- var this_3 = this_0.c1m_1;
699
- tmp.c1m_1 = add(this_3, fromInt(bytesWritten));
698
+ var this_3 = this_0.d1m_1;
699
+ tmp.d1m_1 = add(this_3, fromInt(bytesWritten));
700
700
  break $l$block_0;
701
701
  }
702
702
  // Inline function 'kotlin.check' call
703
- if (!(0 <= bytesWritten ? bytesWritten <= tail.r1n() : false)) {
704
- var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.r1n();
703
+ if (!(0 <= bytesWritten ? bytesWritten <= tail.s1n() : false)) {
704
+ var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.s1n();
705
705
  throw IllegalStateException_init_$Create$(toString(message));
706
706
  }
707
707
  if (!(bytesWritten === 0)) {
708
- tail.j1m_1 = tail.j1m_1 + bytesWritten | 0;
708
+ tail.k1m_1 = tail.k1m_1 + bytesWritten | 0;
709
709
  var tmp_0 = this_0;
710
710
  // Inline function 'kotlin.Long.plus' call
711
- var this_4 = this_0.c1m_1;
712
- tmp_0.c1m_1 = add(this_4, fromInt(bytesWritten));
711
+ var this_4 = this_0.d1m_1;
712
+ tmp_0.d1m_1 = add(this_4, fromInt(bytesWritten));
713
713
  break $l$block_0;
714
714
  }
715
715
  if (isEmpty(tail)) {
716
- this_0.g1n();
716
+ this_0.h1n();
717
717
  }
718
718
  }
719
719
  } else if (c < 2048) {
720
720
  $l$block_2: {
721
721
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
722
- var tail_0 = this_0.q1m(2);
723
- get_SegmentWriteContextImpl().a1o(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
722
+ var tail_0 = this_0.r1m(2);
723
+ get_SegmentWriteContextImpl().b1o(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
724
724
  var bytesWritten_0 = 2;
725
725
  if (bytesWritten_0 === 2) {
726
- tail_0.j1m_1 = tail_0.j1m_1 + bytesWritten_0 | 0;
726
+ tail_0.k1m_1 = tail_0.k1m_1 + bytesWritten_0 | 0;
727
727
  var tmp_1 = this_0;
728
728
  // Inline function 'kotlin.Long.plus' call
729
- var this_5 = this_0.c1m_1;
730
- tmp_1.c1m_1 = add(this_5, fromInt(bytesWritten_0));
729
+ var this_5 = this_0.d1m_1;
730
+ tmp_1.d1m_1 = add(this_5, fromInt(bytesWritten_0));
731
731
  break $l$block_2;
732
732
  }
733
733
  // Inline function 'kotlin.check' call
734
- if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.r1n() : false)) {
735
- var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.r1n();
734
+ if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.s1n() : false)) {
735
+ var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.s1n();
736
736
  throw IllegalStateException_init_$Create$(toString(message_0));
737
737
  }
738
738
  if (!(bytesWritten_0 === 0)) {
739
- tail_0.j1m_1 = tail_0.j1m_1 + bytesWritten_0 | 0;
739
+ tail_0.k1m_1 = tail_0.k1m_1 + bytesWritten_0 | 0;
740
740
  var tmp_2 = this_0;
741
741
  // Inline function 'kotlin.Long.plus' call
742
- var this_6 = this_0.c1m_1;
743
- tmp_2.c1m_1 = add(this_6, fromInt(bytesWritten_0));
742
+ var this_6 = this_0.d1m_1;
743
+ tmp_2.d1m_1 = add(this_6, fromInt(bytesWritten_0));
744
744
  break $l$block_2;
745
745
  }
746
746
  if (isEmpty(tail_0)) {
747
- this_0.g1n();
747
+ this_0.h1n();
748
748
  }
749
749
  }
750
750
  i = i + 1 | 0;
751
751
  } else if (c < 55296 || c > 57343) {
752
752
  $l$block_4: {
753
753
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
754
- var tail_1 = this_0.q1m(3);
755
- get_SegmentWriteContextImpl().z1n(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
754
+ var tail_1 = this_0.r1m(3);
755
+ get_SegmentWriteContextImpl().a1o(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
756
756
  var bytesWritten_1 = 3;
757
757
  if (bytesWritten_1 === 3) {
758
- tail_1.j1m_1 = tail_1.j1m_1 + bytesWritten_1 | 0;
758
+ tail_1.k1m_1 = tail_1.k1m_1 + bytesWritten_1 | 0;
759
759
  var tmp_3 = this_0;
760
760
  // Inline function 'kotlin.Long.plus' call
761
- var this_7 = this_0.c1m_1;
762
- tmp_3.c1m_1 = add(this_7, fromInt(bytesWritten_1));
761
+ var this_7 = this_0.d1m_1;
762
+ tmp_3.d1m_1 = add(this_7, fromInt(bytesWritten_1));
763
763
  break $l$block_4;
764
764
  }
765
765
  // Inline function 'kotlin.check' call
766
- if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.r1n() : false)) {
767
- var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.r1n();
766
+ if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.s1n() : false)) {
767
+ var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.s1n();
768
768
  throw IllegalStateException_init_$Create$(toString(message_1));
769
769
  }
770
770
  if (!(bytesWritten_1 === 0)) {
771
- tail_1.j1m_1 = tail_1.j1m_1 + bytesWritten_1 | 0;
771
+ tail_1.k1m_1 = tail_1.k1m_1 + bytesWritten_1 | 0;
772
772
  var tmp_4 = this_0;
773
773
  // Inline function 'kotlin.Long.plus' call
774
- var this_8 = this_0.c1m_1;
775
- tmp_4.c1m_1 = add(this_8, fromInt(bytesWritten_1));
774
+ var this_8 = this_0.d1m_1;
775
+ tmp_4.d1m_1 = add(this_8, fromInt(bytesWritten_1));
776
776
  break $l$block_4;
777
777
  }
778
778
  if (isEmpty(tail_1)) {
779
- this_0.g1n();
779
+ this_0.h1n();
780
780
  }
781
781
  }
782
782
  i = i + 1 | 0;
@@ -795,45 +795,45 @@
795
795
  // Inline function 'kotlin.code' call
796
796
  var this_10 = _Char___init__impl__6a9atx(63);
797
797
  var tmp$ret$26 = Char__toInt_impl_vasixd(this_10);
798
- this_0.b1n(toByte(tmp$ret$26));
798
+ this_0.c1n(toByte(tmp$ret$26));
799
799
  i = i + 1 | 0;
800
800
  } else {
801
801
  var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
802
802
  $l$block_6: {
803
803
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
804
- var tail_2 = this_0.q1m(4);
805
- get_SegmentWriteContextImpl().y1n(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
804
+ var tail_2 = this_0.r1m(4);
805
+ get_SegmentWriteContextImpl().z1n(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
806
806
  var bytesWritten_2 = 4;
807
807
  if (bytesWritten_2 === 4) {
808
- tail_2.j1m_1 = tail_2.j1m_1 + bytesWritten_2 | 0;
808
+ tail_2.k1m_1 = tail_2.k1m_1 + bytesWritten_2 | 0;
809
809
  var tmp_6 = this_0;
810
810
  // Inline function 'kotlin.Long.plus' call
811
- var this_11 = this_0.c1m_1;
812
- tmp_6.c1m_1 = add(this_11, fromInt(bytesWritten_2));
811
+ var this_11 = this_0.d1m_1;
812
+ tmp_6.d1m_1 = add(this_11, fromInt(bytesWritten_2));
813
813
  break $l$block_6;
814
814
  }
815
815
  // Inline function 'kotlin.check' call
816
- if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.r1n() : false)) {
817
- var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.r1n();
816
+ if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.s1n() : false)) {
817
+ var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.s1n();
818
818
  throw IllegalStateException_init_$Create$(toString(message_2));
819
819
  }
820
820
  if (!(bytesWritten_2 === 0)) {
821
- tail_2.j1m_1 = tail_2.j1m_1 + bytesWritten_2 | 0;
821
+ tail_2.k1m_1 = tail_2.k1m_1 + bytesWritten_2 | 0;
822
822
  var tmp_7 = this_0;
823
823
  // Inline function 'kotlin.Long.plus' call
824
- var this_12 = this_0.c1m_1;
825
- tmp_7.c1m_1 = add(this_12, fromInt(bytesWritten_2));
824
+ var this_12 = this_0.d1m_1;
825
+ tmp_7.d1m_1 = add(this_12, fromInt(bytesWritten_2));
826
826
  break $l$block_6;
827
827
  }
828
828
  if (isEmpty(tail_2)) {
829
- this_0.g1n();
829
+ this_0.h1n();
830
830
  }
831
831
  }
832
832
  i = i + 2 | 0;
833
833
  }
834
834
  }
835
835
  }
836
- _this__u8e3s4.f1m();
836
+ _this__u8e3s4.g1m();
837
837
  }
838
838
  function FileSystem() {
839
839
  }
@@ -843,9 +843,9 @@
843
843
  isRegularFile = isRegularFile === VOID ? false : isRegularFile;
844
844
  isDirectory = isDirectory === VOID ? false : isDirectory;
845
845
  size = size === VOID ? new Long(0, 0) : size;
846
- this.i1o_1 = isRegularFile;
847
- this.j1o_1 = isDirectory;
848
- this.k1o_1 = size;
846
+ this.j1o_1 = isRegularFile;
847
+ this.k1o_1 = isDirectory;
848
+ this.l1o_1 = size;
849
849
  }
850
850
  function removeTrailingSeparators(path, isWindows_) {
851
851
  isWindows_ = isWindows_ === VOID ? get_isWindows() : isWindows_;
@@ -946,27 +946,27 @@
946
946
  }
947
947
  function SegmentReadContextImpl$1() {
948
948
  }
949
- protoOf(SegmentReadContextImpl$1).e1n = function (segment, offset) {
950
- return segment.t1n(offset);
949
+ protoOf(SegmentReadContextImpl$1).f1n = function (segment, offset) {
950
+ return segment.u1n(offset);
951
951
  };
952
952
  function SegmentWriteContextImpl$1() {
953
953
  }
954
- protoOf(SegmentWriteContextImpl$1).b1o = function (segment, offset, value) {
955
- segment.u1n(offset, value);
954
+ protoOf(SegmentWriteContextImpl$1).c1o = function (segment, offset, value) {
955
+ segment.v1n(offset, value);
956
956
  };
957
- protoOf(SegmentWriteContextImpl$1).a1o = function (segment, offset, b0, b1) {
958
- segment.v1n(offset, b0, b1);
957
+ protoOf(SegmentWriteContextImpl$1).b1o = function (segment, offset, b0, b1) {
958
+ segment.w1n(offset, b0, b1);
959
959
  };
960
- protoOf(SegmentWriteContextImpl$1).z1n = function (segment, offset, b0, b1, b2) {
961
- segment.w1n(offset, b0, b1, b2);
960
+ protoOf(SegmentWriteContextImpl$1).a1o = function (segment, offset, b0, b1, b2) {
961
+ segment.x1n(offset, b0, b1, b2);
962
962
  };
963
- protoOf(SegmentWriteContextImpl$1).y1n = function (segment, offset, b0, b1, b2, b3) {
964
- segment.x1n(offset, b0, b1, b2, b3);
963
+ protoOf(SegmentWriteContextImpl$1).z1n = function (segment, offset, b0, b1, b2, b3) {
964
+ segment.y1n(offset, b0, b1, b2, b3);
965
965
  };
966
966
  function BufferIterationContextImpl$1() {
967
967
  }
968
- protoOf(BufferIterationContextImpl$1).e1n = function (segment, offset) {
969
- return get_SegmentReadContextImpl().e1n(segment, offset);
968
+ protoOf(BufferIterationContextImpl$1).f1n = function (segment, offset) {
969
+ return get_SegmentReadContextImpl().f1n(segment, offset);
970
970
  };
971
971
  var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
972
972
  function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
@@ -1047,15 +1047,15 @@
1047
1047
  captureStack(this, EOFException);
1048
1048
  }
1049
1049
  function SegmentPool() {
1050
- this.r1m_1 = 0;
1051
1050
  this.s1m_1 = 0;
1051
+ this.t1m_1 = 0;
1052
1052
  }
1053
- protoOf(SegmentPool).t1m = function () {
1054
- return Companion_instance.m1n();
1053
+ protoOf(SegmentPool).u1m = function () {
1054
+ return Companion_instance.n1n();
1055
1055
  };
1056
- protoOf(SegmentPool).f1n = function (segment) {
1056
+ protoOf(SegmentPool).g1n = function (segment) {
1057
1057
  };
1058
- protoOf(SegmentPool).p1n = function () {
1058
+ protoOf(SegmentPool).q1n = function () {
1059
1059
  return AlwaysSharedCopyTracker_getInstance();
1060
1060
  };
1061
1061
  var SegmentPool_instance;
@@ -1213,7 +1213,7 @@
1213
1213
  }
1214
1214
  function SystemFileSystem$o$delete$lambda($path) {
1215
1215
  return function () {
1216
- var tmp0_elvis_lhs = get_fs().statSync($path.l1o_1);
1216
+ var tmp0_elvis_lhs = get_fs().statSync($path.m1o_1);
1217
1217
  var tmp;
1218
1218
  if (tmp0_elvis_lhs == null) {
1219
1219
  throw new FileNotFoundException('File does not exist: ' + $path.toString());
@@ -1223,10 +1223,10 @@
1223
1223
  var stats = tmp;
1224
1224
  var tmp_0;
1225
1225
  if (stats.isDirectory()) {
1226
- get_fs().rmdirSync($path.l1o_1);
1226
+ get_fs().rmdirSync($path.m1o_1);
1227
1227
  tmp_0 = Unit_instance;
1228
1228
  } else {
1229
- get_fs().rmSync($path.l1o_1);
1229
+ get_fs().rmSync($path.m1o_1);
1230
1230
  tmp_0 = Unit_instance;
1231
1231
  }
1232
1232
  return Unit_instance;
@@ -1234,7 +1234,7 @@
1234
1234
  }
1235
1235
  function SystemFileSystem$o$metadataOrNull$lambda($path, $metadata) {
1236
1236
  return function () {
1237
- var tmp0_elvis_lhs = get_fs().statSync($path.l1o_1);
1237
+ var tmp0_elvis_lhs = get_fs().statSync($path.m1o_1);
1238
1238
  var tmp;
1239
1239
  if (tmp0_elvis_lhs == null) {
1240
1240
  return Unit_instance;
@@ -1251,11 +1251,11 @@
1251
1251
  function SystemFileSystem$1() {
1252
1252
  SystemFileSystemImpl.call(this);
1253
1253
  }
1254
- protoOf(SystemFileSystem$1).c1o = function (path) {
1255
- return get_fs().existsSync(path.l1o_1);
1254
+ protoOf(SystemFileSystem$1).d1o = function (path) {
1255
+ return get_fs().existsSync(path.m1o_1);
1256
1256
  };
1257
- protoOf(SystemFileSystem$1).d1o = function (path, mustExist) {
1258
- if (!this.c1o(path)) {
1257
+ protoOf(SystemFileSystem$1).e1o = function (path, mustExist) {
1258
+ if (!this.d1o(path)) {
1259
1259
  if (mustExist) {
1260
1260
  throw new FileNotFoundException('File does not exist: ' + path.toString());
1261
1261
  }
@@ -1269,13 +1269,13 @@
1269
1269
  throw IOException_init_$Create$_1('Delete failed for ' + path.toString(), tmp0_safe_receiver);
1270
1270
  }
1271
1271
  };
1272
- protoOf(SystemFileSystem$1).f1o = function (path, mustCreate) {
1273
- var metadata = this.m1o(path);
1272
+ protoOf(SystemFileSystem$1).g1o = function (path, mustCreate) {
1273
+ var metadata = this.n1o(path);
1274
1274
  if (!(metadata == null)) {
1275
1275
  if (mustCreate) {
1276
1276
  throw IOException_init_$Create$_0('Path already exists: ' + path.toString());
1277
1277
  }
1278
- if (metadata.i1o_1) {
1278
+ if (metadata.j1o_1) {
1279
1279
  throw IOException_init_$Create$_0("Path already exists and it's a file: " + path.toString());
1280
1280
  }
1281
1281
  return Unit_instance;
@@ -1283,9 +1283,9 @@
1283
1283
  // Inline function 'kotlin.collections.arrayListOf' call
1284
1284
  var parts = ArrayList_init_$Create$();
1285
1285
  var p = path;
1286
- while (!(p == null) && !this.c1o(p)) {
1286
+ while (!(p == null) && !this.d1o(p)) {
1287
1287
  parts.j(p.toString());
1288
- p = p.n1o();
1288
+ p = p.o1o();
1289
1289
  }
1290
1290
  // Inline function 'kotlin.collections.forEach' call
1291
1291
  var _iterator__ex2g4s = asReversed(parts).l();
@@ -1294,8 +1294,8 @@
1294
1294
  get_fs().mkdirSync(element);
1295
1295
  }
1296
1296
  };
1297
- protoOf(SystemFileSystem$1).m1o = function (path) {
1298
- if (!this.c1o(path))
1297
+ protoOf(SystemFileSystem$1).n1o = function (path) {
1298
+ if (!this.d1o(path))
1299
1299
  return null;
1300
1300
  var metadata = {_v: null};
1301
1301
  var tmp0_safe_receiver = withCaughtException(SystemFileSystem$o$metadataOrNull$lambda(path, metadata));
@@ -1307,7 +1307,7 @@
1307
1307
  }
1308
1308
  return metadata._v;
1309
1309
  };
1310
- protoOf(SystemFileSystem$1).h1o = function (path, append) {
1310
+ protoOf(SystemFileSystem$1).i1o = function (path, append) {
1311
1311
  return new FileSink(path, append);
1312
1312
  };
1313
1313
  var properties_initialized_FileSystemNodeJs_kt_vmmd20;
@@ -1328,27 +1328,27 @@
1328
1328
  }
1329
1329
  var SystemPathSeparator$delegate;
1330
1330
  function Path_0(rawPath, any) {
1331
- this.l1o_1 = removeTrailingSeparators(rawPath);
1331
+ this.m1o_1 = removeTrailingSeparators(rawPath);
1332
1332
  }
1333
- protoOf(Path_0).n1o = function () {
1333
+ protoOf(Path_0).o1o = function () {
1334
1334
  // Inline function 'kotlin.text.isEmpty' call
1335
- var this_0 = this.l1o_1;
1335
+ var this_0 = this.m1o_1;
1336
1336
  if (charSequenceLength(this_0) === 0)
1337
1337
  return null;
1338
1338
  if (get_isWindows()) {
1339
- if (!contains(this.l1o_1, _Char___init__impl__6a9atx(47)) && !contains(this.l1o_1, _Char___init__impl__6a9atx(92))) {
1339
+ if (!contains(this.m1o_1, _Char___init__impl__6a9atx(47)) && !contains(this.m1o_1, _Char___init__impl__6a9atx(92))) {
1340
1340
  return null;
1341
1341
  }
1342
- } else if (!contains(this.l1o_1, get_SystemPathSeparator())) {
1342
+ } else if (!contains(this.m1o_1, get_SystemPathSeparator())) {
1343
1343
  return null;
1344
1344
  }
1345
- var p = get_path().dirname(this.l1o_1);
1345
+ var p = get_path().dirname(this.m1o_1);
1346
1346
  var tmp;
1347
1347
  // Inline function 'kotlin.text.isEmpty' call
1348
1348
  if (charSequenceLength(p) === 0) {
1349
1349
  tmp = null;
1350
1350
  } else {
1351
- if (p === this.l1o_1) {
1351
+ if (p === this.m1o_1) {
1352
1352
  tmp = null;
1353
1353
  } else {
1354
1354
  tmp = Path_1(p);
@@ -1357,17 +1357,17 @@
1357
1357
  return tmp;
1358
1358
  };
1359
1359
  protoOf(Path_0).toString = function () {
1360
- return this.l1o_1;
1360
+ return this.m1o_1;
1361
1361
  };
1362
1362
  protoOf(Path_0).equals = function (other) {
1363
1363
  if (this === other)
1364
1364
  return true;
1365
1365
  if (!(other instanceof Path_0))
1366
1366
  return false;
1367
- return this.l1o_1 === other.l1o_1;
1367
+ return this.m1o_1 === other.m1o_1;
1368
1368
  };
1369
1369
  protoOf(Path_0).hashCode = function () {
1370
- return getStringHashCode(this.l1o_1);
1370
+ return getStringHashCode(this.m1o_1);
1371
1371
  };
1372
1372
  function open($this, path, append) {
1373
1373
  var flags = append ? 'a' : 'w';
@@ -1377,31 +1377,31 @@
1377
1377
  null;
1378
1378
  else {
1379
1379
  // Inline function 'kotlin.also' call
1380
- throw IOException_init_$Create$_1('Failed to open a file ' + path.l1o_1 + '.', tmp0_safe_receiver);
1380
+ throw IOException_init_$Create$_1('Failed to open a file ' + path.m1o_1 + '.', tmp0_safe_receiver);
1381
1381
  }
1382
1382
  if (fd._v < 0)
1383
- throw IOException_init_$Create$_0('Failed to open a file ' + path.l1o_1 + '.');
1383
+ throw IOException_init_$Create$_0('Failed to open a file ' + path.m1o_1 + '.');
1384
1384
  return fd._v;
1385
1385
  }
1386
1386
  function FileSink$open$lambda($fd, $path, $flags) {
1387
1387
  return function () {
1388
- $fd._v = get_fs().openSync($path.l1o_1, $flags);
1388
+ $fd._v = get_fs().openSync($path.m1o_1, $flags);
1389
1389
  return Unit_instance;
1390
1390
  };
1391
1391
  }
1392
1392
  function FileSink$write$lambda(this$0, $buf) {
1393
1393
  return function () {
1394
- get_fs().writeFileSync(this$0.p1o_1, $buf);
1394
+ get_fs().writeFileSync(this$0.q1o_1, $buf);
1395
1395
  return Unit_instance;
1396
1396
  };
1397
1397
  }
1398
1398
  function FileSink(path, append) {
1399
- this.o1o_1 = false;
1400
- this.p1o_1 = open(this, path, append);
1399
+ this.p1o_1 = false;
1400
+ this.q1o_1 = open(this, path, append);
1401
1401
  }
1402
- protoOf(FileSink).v1m = function (source, byteCount) {
1402
+ protoOf(FileSink).w1m = function (source, byteCount) {
1403
1403
  // Inline function 'kotlin.check' call
1404
- if (!!this.o1o_1) {
1404
+ if (!!this.p1o_1) {
1405
1405
  var message = 'Sink is closed.';
1406
1406
  throw IllegalStateException_init_$Create$(toString(message));
1407
1407
  }
@@ -1415,14 +1415,14 @@
1415
1415
  var segmentBytes = 0;
1416
1416
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead' call
1417
1417
  // Inline function 'kotlin.require' call
1418
- if (!!source.e1m()) {
1418
+ if (!!source.f1m()) {
1419
1419
  var message_0 = 'Buffer is empty';
1420
1420
  throw IllegalArgumentException_init_$Create$(toString(message_0));
1421
1421
  }
1422
- var head = ensureNotNull(source.a1m_1);
1423
- var tmp0 = head.s1n(true);
1424
- var tmp2 = head.i1m_1;
1425
- segmentBytes = head.j1m_1 - tmp2 | 0;
1422
+ var head = ensureNotNull(source.b1m_1);
1423
+ var tmp0 = head.t1n(true);
1424
+ var tmp2 = head.j1m_1;
1425
+ segmentBytes = head.k1m_1 - tmp2 | 0;
1426
1426
  var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
1427
1427
  var inductionVariable = 0;
1428
1428
  var last = segmentBytes;
@@ -1446,7 +1446,7 @@
1446
1446
  throw IllegalStateException_init_$Create$('Returned negative read bytes count');
1447
1447
  if (bytesRead > head.o())
1448
1448
  throw IllegalStateException_init_$Create$('Returned too many bytes');
1449
- source.o1m(fromInt(bytesRead));
1449
+ source.p1m(fromInt(bytesRead));
1450
1450
  }
1451
1451
  var tmp0_0 = remainingBytes;
1452
1452
  // Inline function 'kotlin.Long.minus' call
@@ -1454,10 +1454,10 @@
1454
1454
  remainingBytes = subtract(tmp0_0, fromInt(other));
1455
1455
  }
1456
1456
  };
1457
- protoOf(FileSink).d1n = function () {
1458
- if (!this.o1o_1) {
1459
- this.o1o_1 = true;
1460
- get_fs().closeSync(this.p1o_1);
1457
+ protoOf(FileSink).e1n = function () {
1458
+ if (!this.p1o_1) {
1459
+ this.p1o_1 = true;
1460
+ get_fs().closeSync(this.q1o_1);
1461
1461
  }
1462
1462
  };
1463
1463
  function Path_1(path) {
@@ -1486,8 +1486,8 @@
1486
1486
  }
1487
1487
  }
1488
1488
  //region block: post-declaration
1489
- protoOf(SystemFileSystemImpl).e1o = delete$default;
1490
- protoOf(SystemFileSystemImpl).g1o = createDirectories$default;
1489
+ protoOf(SystemFileSystemImpl).f1o = delete$default;
1490
+ protoOf(SystemFileSystemImpl).h1o = createDirectories$default;
1491
1491
  //endregion
1492
1492
  //region block: init
1493
1493
  Companion_instance = new Companion();