@flock/wirespec 0.14.3 → 0.14.5

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.
@@ -57,7 +57,7 @@ initMetadataForClass(SegmentCopyTracker, 'SegmentCopyTracker');
57
57
  initMetadataForObject(AlwaysSharedCopyTracker, 'AlwaysSharedCopyTracker', VOID, SegmentCopyTracker);
58
58
  function sink$default(path, append, $super) {
59
59
  append = append === VOID ? false : append;
60
- return $super === VOID ? this.s2i(path, append) : $super.s2i.call(this, path, append);
60
+ return $super === VOID ? this.r2i(path, append) : $super.r2i.call(this, path, append);
61
61
  }
62
62
  initMetadataForInterface(FileSystem, 'FileSystem');
63
63
  initMetadataForClass(SystemFileSystemImpl, 'SystemFileSystemImpl', VOID, VOID, [FileSystem]);
@@ -104,20 +104,20 @@ function _init_properties__Util_kt__g8tcl9() {
104
104
  }
105
105
  }
106
106
  function Buffer() {
107
+ this.g2g_1 = null;
107
108
  this.h2g_1 = null;
108
- this.i2g_1 = null;
109
- this.j2g_1 = new Long(0, 0);
109
+ this.i2g_1 = new Long(0, 0);
110
110
  }
111
111
  protoOf(Buffer).j = function () {
112
- return this.j2g_1;
112
+ return this.i2g_1;
113
113
  };
114
- protoOf(Buffer).k2g = function () {
114
+ protoOf(Buffer).j2g = function () {
115
115
  return this;
116
116
  };
117
- protoOf(Buffer).l2g = function () {
117
+ protoOf(Buffer).k2g = function () {
118
118
  return this.j().equals(new Long(0, 0));
119
119
  };
120
- protoOf(Buffer).m2g = function (byteCount) {
120
+ protoOf(Buffer).l2g = function (byteCount) {
121
121
  // Inline function 'kotlin.require' call
122
122
  if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
123
123
  // Inline function 'kotlinx.io.Buffer.require.<anonymous>' call
@@ -128,7 +128,7 @@ protoOf(Buffer).m2g = function (byteCount) {
128
128
  throw EOFException_init_$Create$_0("Buffer doesn't contain required number of bytes (size: " + this.j().toString() + ', required: ' + byteCount.toString() + ')');
129
129
  }
130
130
  };
131
- protoOf(Buffer).n2g = function (byteCount) {
131
+ protoOf(Buffer).m2g = function (byteCount) {
132
132
  // Inline function 'kotlin.require' call
133
133
  if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
134
134
  // Inline function 'kotlinx.io.Buffer.request.<anonymous>' call
@@ -137,23 +137,23 @@ protoOf(Buffer).n2g = function (byteCount) {
137
137
  }
138
138
  return this.j().j1(byteCount) >= 0;
139
139
  };
140
- protoOf(Buffer).o2g = function () {
140
+ protoOf(Buffer).n2g = function () {
141
141
  return Unit_instance;
142
142
  };
143
143
  protoOf(Buffer).r8 = function () {
144
144
  return Unit_instance;
145
145
  };
146
- protoOf(Buffer).p2g = function () {
146
+ protoOf(Buffer).o2g = function () {
147
147
  var result = this.j();
148
148
  if (result.equals(new Long(0, 0)))
149
149
  return new Long(0, 0);
150
- var tail = ensureNotNull(this.i2g_1);
151
- if (tail.s2g_1 < 8192 && tail.u2g_1) {
152
- result = result.a3(toLong(tail.s2g_1 - tail.r2g_1 | 0));
150
+ var tail = ensureNotNull(this.h2g_1);
151
+ if (tail.r2g_1 < 8192 && tail.t2g_1) {
152
+ result = result.a3(toLong(tail.r2g_1 - tail.q2g_1 | 0));
153
153
  }
154
154
  return result;
155
155
  };
156
- protoOf(Buffer).x2g = function (byteCount) {
156
+ protoOf(Buffer).w2g = function (byteCount) {
157
157
  // Inline function 'kotlinx.io.checkByteCount' call
158
158
  // Inline function 'kotlin.require' call
159
159
  if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
@@ -163,7 +163,7 @@ protoOf(Buffer).x2g = function (byteCount) {
163
163
  }
164
164
  var remainingByteCount = byteCount;
165
165
  while (remainingByteCount.j1(new Long(0, 0)) > 0) {
166
- var tmp0_elvis_lhs = this.h2g_1;
166
+ var tmp0_elvis_lhs = this.g2g_1;
167
167
  var tmp;
168
168
  if (tmp0_elvis_lhs == null) {
169
169
  throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
@@ -173,23 +173,23 @@ protoOf(Buffer).x2g = function (byteCount) {
173
173
  var head = tmp;
174
174
  var tmp1 = remainingByteCount;
175
175
  // Inline function 'kotlinx.io.minOf' call
176
- var b = head.s2g_1 - head.r2g_1 | 0;
176
+ var b = head.r2g_1 - head.q2g_1 | 0;
177
177
  // Inline function 'kotlin.comparisons.minOf' call
178
178
  var b_0 = toLong(b);
179
179
  var toSkip = (tmp1.j1(b_0) <= 0 ? tmp1 : b_0).l1();
180
- this.j2g_1 = this.j2g_1.a3(toLong(toSkip));
180
+ this.i2g_1 = this.i2g_1.a3(toLong(toSkip));
181
181
  remainingByteCount = remainingByteCount.a3(toLong(toSkip));
182
- head.r2g_1 = head.r2g_1 + toSkip | 0;
183
- if (head.r2g_1 === head.s2g_1) {
184
- this.y2g();
182
+ head.q2g_1 = head.q2g_1 + toSkip | 0;
183
+ if (head.q2g_1 === head.r2g_1) {
184
+ this.x2g();
185
185
  }
186
186
  }
187
187
  };
188
- protoOf(Buffer).z2g = function (sink, startIndex, endIndex) {
188
+ protoOf(Buffer).y2g = function (sink, startIndex, endIndex) {
189
189
  // Inline function 'kotlinx.io.checkBounds' call
190
190
  var size = sink.length;
191
191
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
192
- var tmp0_elvis_lhs = this.h2g_1;
192
+ var tmp0_elvis_lhs = this.g2g_1;
193
193
  var tmp;
194
194
  if (tmp0_elvis_lhs == null) {
195
195
  return -1;
@@ -201,14 +201,14 @@ protoOf(Buffer).z2g = function (sink, startIndex, endIndex) {
201
201
  // Inline function 'kotlin.comparisons.minOf' call
202
202
  var b = s.j();
203
203
  var toCopy = Math.min(tmp3, b);
204
- s.a2h(sink, startIndex, startIndex + toCopy | 0);
205
- this.j2g_1 = this.j2g_1.a3(toLong(toCopy));
204
+ s.z2g(sink, startIndex, startIndex + toCopy | 0);
205
+ this.i2g_1 = this.i2g_1.a3(toLong(toCopy));
206
206
  if (isEmpty(s)) {
207
- this.y2g();
207
+ this.x2g();
208
208
  }
209
209
  return toCopy;
210
210
  };
211
- protoOf(Buffer).b2h = function (sink, byteCount) {
211
+ protoOf(Buffer).a2h = function (sink, byteCount) {
212
212
  // Inline function 'kotlinx.io.checkByteCount' call
213
213
  // Inline function 'kotlin.require' call
214
214
  if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
@@ -219,89 +219,89 @@ protoOf(Buffer).b2h = function (sink, byteCount) {
219
219
  if (this.j().equals(new Long(0, 0)))
220
220
  return new Long(-1, -1);
221
221
  var bytesWritten = byteCount.j1(this.j()) > 0 ? this.j() : byteCount;
222
- sink.c2h(this, bytesWritten);
222
+ sink.b2h(this, bytesWritten);
223
223
  return bytesWritten;
224
224
  };
225
- protoOf(Buffer).d2h = function (minimumCapacity) {
225
+ protoOf(Buffer).c2h = function (minimumCapacity) {
226
226
  // Inline function 'kotlin.require' call
227
227
  if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
228
228
  // Inline function 'kotlinx.io.Buffer.writableSegment.<anonymous>' call
229
229
  var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
230
230
  throw IllegalArgumentException_init_$Create$(toString(message));
231
231
  }
232
- if (this.i2g_1 == null) {
233
- var result = SegmentPool_instance.g2h();
232
+ if (this.h2g_1 == null) {
233
+ var result = SegmentPool_instance.f2h();
234
+ this.g2g_1 = result;
234
235
  this.h2g_1 = result;
235
- this.i2g_1 = result;
236
236
  return result;
237
237
  }
238
- var t = ensureNotNull(this.i2g_1);
239
- if ((t.s2g_1 + minimumCapacity | 0) > 8192 || !t.u2g_1) {
240
- var newTail = t.h2h(SegmentPool_instance.g2h());
241
- this.i2g_1 = newTail;
238
+ var t = ensureNotNull(this.h2g_1);
239
+ if ((t.r2g_1 + minimumCapacity | 0) > 8192 || !t.t2g_1) {
240
+ var newTail = t.g2h(SegmentPool_instance.f2h());
241
+ this.h2g_1 = newTail;
242
242
  return newTail;
243
243
  }
244
244
  return t;
245
245
  };
246
- protoOf(Buffer).c2h = function (source, byteCount) {
246
+ protoOf(Buffer).b2h = function (source, byteCount) {
247
247
  // Inline function 'kotlin.require' call
248
248
  if (!!(source === this)) {
249
249
  // Inline function 'kotlinx.io.Buffer.write.<anonymous>' call
250
250
  var message = 'source == this';
251
251
  throw IllegalArgumentException_init_$Create$(toString(message));
252
252
  }
253
- checkOffsetAndCount(source.j2g_1, new Long(0, 0), byteCount);
253
+ checkOffsetAndCount(source.i2g_1, new Long(0, 0), byteCount);
254
254
  var remainingByteCount = byteCount;
255
255
  while (remainingByteCount.j1(new Long(0, 0)) > 0) {
256
- if (remainingByteCount.j1(toLong(ensureNotNull(source.h2g_1).j())) < 0) {
257
- var tail = this.i2g_1;
256
+ if (remainingByteCount.j1(toLong(ensureNotNull(source.g2g_1).j())) < 0) {
257
+ var tail = this.h2g_1;
258
258
  var tmp;
259
- if (!(tail == null) && tail.u2g_1) {
259
+ if (!(tail == null) && tail.t2g_1) {
260
260
  var tmp1 = remainingByteCount;
261
261
  // Inline function 'kotlin.Long.plus' call
262
- var other = tail.s2g_1;
262
+ var other = tail.r2g_1;
263
263
  var tmp3 = tmp1.z2(toLong(other));
264
264
  // Inline function 'kotlin.Long.minus' call
265
- var other_0 = tail.i2h() ? 0 : tail.r2g_1;
265
+ var other_0 = tail.h2h() ? 0 : tail.q2g_1;
266
266
  tmp = tmp3.a3(toLong(other_0)).j1(new Long(8192, 0)) <= 0;
267
267
  } else {
268
268
  tmp = false;
269
269
  }
270
270
  if (tmp) {
271
- ensureNotNull(source.h2g_1).k2h(tail, remainingByteCount.l1());
272
- source.j2g_1 = source.j2g_1.a3(remainingByteCount);
273
- this.j2g_1 = this.j2g_1.z2(remainingByteCount);
271
+ ensureNotNull(source.g2g_1).j2h(tail, remainingByteCount.l1());
272
+ source.i2g_1 = source.i2g_1.a3(remainingByteCount);
273
+ this.i2g_1 = this.i2g_1.z2(remainingByteCount);
274
274
  return Unit_instance;
275
275
  } else {
276
- source.h2g_1 = ensureNotNull(source.h2g_1).j2h(remainingByteCount.l1());
276
+ source.g2g_1 = ensureNotNull(source.g2g_1).i2h(remainingByteCount.l1());
277
277
  }
278
278
  }
279
- var segmentToMove = ensureNotNull(source.h2g_1);
279
+ var segmentToMove = ensureNotNull(source.g2g_1);
280
280
  var movedByteCount = toLong(segmentToMove.j());
281
- source.h2g_1 = segmentToMove.l2h();
282
- if (source.h2g_1 == null) {
283
- source.i2g_1 = null;
281
+ source.g2g_1 = segmentToMove.k2h();
282
+ if (source.g2g_1 == null) {
283
+ source.h2g_1 = null;
284
284
  }
285
285
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
286
- if (this.h2g_1 == null) {
286
+ if (this.g2g_1 == null) {
287
+ this.g2g_1 = segmentToMove;
287
288
  this.h2g_1 = segmentToMove;
288
- this.i2g_1 = segmentToMove;
289
289
  } else if (true) {
290
- this.i2g_1 = ensureNotNull(this.i2g_1).h2h(segmentToMove).m2h();
291
- if (ensureNotNull(this.i2g_1).w2g_1 == null) {
292
- this.h2g_1 = this.i2g_1;
290
+ this.h2g_1 = ensureNotNull(this.h2g_1).g2h(segmentToMove).l2h();
291
+ if (ensureNotNull(this.h2g_1).v2g_1 == null) {
292
+ this.g2g_1 = this.h2g_1;
293
293
  }
294
294
  } else {
295
- this.i2g_1 = ensureNotNull(this.i2g_1).h2h(segmentToMove);
295
+ this.h2g_1 = ensureNotNull(this.h2g_1).g2h(segmentToMove);
296
296
  }
297
- source.j2g_1 = source.j2g_1.a3(movedByteCount);
298
- this.j2g_1 = this.j2g_1.z2(movedByteCount);
297
+ source.i2g_1 = source.i2g_1.a3(movedByteCount);
298
+ this.i2g_1 = this.i2g_1.z2(movedByteCount);
299
299
  remainingByteCount = remainingByteCount.a3(movedByteCount);
300
300
  }
301
301
  };
302
- protoOf(Buffer).n2h = function (byte) {
303
- this.d2h(1).o2h(byte);
304
- this.j2g_1 = this.j2g_1.z2(new Long(1, 0));
302
+ protoOf(Buffer).m2h = function (byte) {
303
+ this.c2h(1).n2h(byte);
304
+ this.i2g_1 = this.i2g_1.z2(new Long(1, 0));
305
305
  };
306
306
  protoOf(Buffer).toString = function () {
307
307
  if (this.j().equals(new Long(0, 0)))
@@ -315,7 +315,7 @@ protoOf(Buffer).toString = function () {
315
315
  var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.j().j1(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
316
316
  var bytesWritten = 0;
317
317
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
318
- var curr = this.h2g_1;
318
+ var curr = this.g2g_1;
319
319
  while (!(curr == null)) {
320
320
  var tmp4 = get_SegmentReadContextImpl();
321
321
  // Inline function 'kotlinx.io.Buffer.toString.<anonymous>' call
@@ -324,7 +324,7 @@ protoOf(Buffer).toString = function () {
324
324
  while (bytesWritten < len && idx < segment.j()) {
325
325
  var _unary__edvuaz = idx;
326
326
  idx = _unary__edvuaz + 1 | 0;
327
- var b_0 = tmp4.p2h(segment, _unary__edvuaz);
327
+ var b_0 = tmp4.o2h(segment, _unary__edvuaz);
328
328
  bytesWritten = bytesWritten + 1 | 0;
329
329
  var tmp = get_HEX_DIGIT_CHARS();
330
330
  // Inline function 'kotlinx.io.shr' call
@@ -335,36 +335,36 @@ protoOf(Buffer).toString = function () {
335
335
  var tmp$ret$3 = b_0 & 15;
336
336
  tmp_0.c8(tmp_1[tmp$ret$3]);
337
337
  }
338
- curr = curr.v2g_1;
338
+ curr = curr.u2g_1;
339
339
  }
340
340
  if (this.j().j1(toLong(maxPrintableBytes)) > 0) {
341
341
  builder.c8(_Char___init__impl__6a9atx(8230));
342
342
  }
343
343
  return 'Buffer(size=' + this.j().toString() + ' hex=' + builder.toString() + ')';
344
344
  };
345
- protoOf(Buffer).y2g = function () {
346
- var oldHead = ensureNotNull(this.h2g_1);
347
- var nextHead = oldHead.v2g_1;
348
- this.h2g_1 = nextHead;
345
+ protoOf(Buffer).x2g = function () {
346
+ var oldHead = ensureNotNull(this.g2g_1);
347
+ var nextHead = oldHead.u2g_1;
348
+ this.g2g_1 = nextHead;
349
349
  if (nextHead == null) {
350
- this.i2g_1 = null;
350
+ this.h2g_1 = null;
351
351
  } else {
352
- nextHead.w2g_1 = null;
352
+ nextHead.v2g_1 = null;
353
353
  }
354
- oldHead.v2g_1 = null;
355
- SegmentPool_instance.q2h(oldHead);
354
+ oldHead.u2g_1 = null;
355
+ SegmentPool_instance.p2h(oldHead);
356
356
  };
357
- protoOf(Buffer).r2h = function () {
358
- var oldTail = ensureNotNull(this.i2g_1);
359
- var newTail = oldTail.w2g_1;
360
- this.i2g_1 = newTail;
357
+ protoOf(Buffer).q2h = function () {
358
+ var oldTail = ensureNotNull(this.h2g_1);
359
+ var newTail = oldTail.v2g_1;
360
+ this.h2g_1 = newTail;
361
361
  if (newTail == null) {
362
- this.h2g_1 = null;
362
+ this.g2g_1 = null;
363
363
  } else {
364
- newTail.v2g_1 = null;
364
+ newTail.u2g_1 = null;
365
365
  }
366
- oldTail.w2g_1 = null;
367
- SegmentPool_instance.q2h(oldTail);
366
+ oldTail.v2g_1 = null;
367
+ SegmentPool_instance.p2h(oldTail);
368
368
  };
369
369
  function buffered(_this__u8e3s4) {
370
370
  return new RealSource(_this__u8e3s4);
@@ -373,17 +373,17 @@ function buffered_0(_this__u8e3s4) {
373
373
  return new RealSink(_this__u8e3s4);
374
374
  }
375
375
  function RealSink(sink) {
376
- this.s2h_1 = sink;
377
- this.t2h_1 = false;
378
- this.u2h_1 = new Buffer();
376
+ this.r2h_1 = sink;
377
+ this.s2h_1 = false;
378
+ this.t2h_1 = new Buffer();
379
379
  }
380
- protoOf(RealSink).k2g = function () {
381
- return this.u2h_1;
380
+ protoOf(RealSink).j2g = function () {
381
+ return this.t2h_1;
382
382
  };
383
- protoOf(RealSink).c2h = function (source, byteCount) {
383
+ protoOf(RealSink).b2h = function (source, byteCount) {
384
384
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
385
385
  // Inline function 'kotlin.check' call
386
- if (!!this.t2h_1) {
386
+ if (!!this.s2h_1) {
387
387
  // Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
388
388
  var message = 'Sink is closed.';
389
389
  throw IllegalStateException_init_$Create$(toString(message));
@@ -394,50 +394,50 @@ protoOf(RealSink).c2h = function (source, byteCount) {
394
394
  var message_0 = 'byteCount: ' + byteCount.toString();
395
395
  throw IllegalArgumentException_init_$Create$(toString(message_0));
396
396
  }
397
- this.u2h_1.c2h(source, byteCount);
398
- this.o2g();
397
+ this.t2h_1.b2h(source, byteCount);
398
+ this.n2g();
399
399
  };
400
- protoOf(RealSink).o2g = function () {
400
+ protoOf(RealSink).n2g = function () {
401
401
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
402
402
  // Inline function 'kotlin.check' call
403
- if (!!this.t2h_1) {
403
+ if (!!this.s2h_1) {
404
404
  // Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
405
405
  var message = 'Sink is closed.';
406
406
  throw IllegalStateException_init_$Create$(toString(message));
407
407
  }
408
- var byteCount = this.u2h_1.p2g();
408
+ var byteCount = this.t2h_1.o2g();
409
409
  if (byteCount.j1(new Long(0, 0)) > 0) {
410
- this.s2h_1.c2h(this.u2h_1, byteCount);
410
+ this.r2h_1.b2h(this.t2h_1, byteCount);
411
411
  }
412
412
  };
413
413
  protoOf(RealSink).r8 = function () {
414
414
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
415
415
  // Inline function 'kotlin.check' call
416
- if (!!this.t2h_1) {
416
+ if (!!this.s2h_1) {
417
417
  // Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
418
418
  var message = 'Sink is closed.';
419
419
  throw IllegalStateException_init_$Create$(toString(message));
420
420
  }
421
- if (this.u2h_1.j().j1(new Long(0, 0)) > 0) {
422
- this.s2h_1.c2h(this.u2h_1, this.u2h_1.j());
421
+ if (this.t2h_1.j().j1(new Long(0, 0)) > 0) {
422
+ this.r2h_1.b2h(this.t2h_1, this.t2h_1.j());
423
423
  }
424
- this.s2h_1.r8();
424
+ this.r2h_1.r8();
425
425
  };
426
426
  protoOf(RealSink).toString = function () {
427
- return 'buffered(' + toString(this.s2h_1) + ')';
427
+ return 'buffered(' + toString(this.r2h_1) + ')';
428
428
  };
429
429
  function RealSource(source) {
430
- this.v2h_1 = source;
431
- this.w2h_1 = false;
432
- this.x2h_1 = new Buffer();
430
+ this.u2h_1 = source;
431
+ this.v2h_1 = false;
432
+ this.w2h_1 = new Buffer();
433
433
  }
434
- protoOf(RealSource).k2g = function () {
435
- return this.x2h_1;
434
+ protoOf(RealSource).j2g = function () {
435
+ return this.w2h_1;
436
436
  };
437
- protoOf(RealSource).b2h = function (sink, byteCount) {
437
+ protoOf(RealSource).a2h = function (sink, byteCount) {
438
438
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
439
439
  // Inline function 'kotlin.check' call
440
- if (!!this.w2h_1) {
440
+ if (!!this.v2h_1) {
441
441
  // Inline function 'kotlinx.io.RealSource.checkNotClosed.<anonymous>' call
442
442
  var message = 'Source is closed.';
443
443
  throw IllegalStateException_init_$Create$(toString(message));
@@ -448,24 +448,24 @@ protoOf(RealSource).b2h = function (sink, byteCount) {
448
448
  var message_0 = 'byteCount: ' + byteCount.toString();
449
449
  throw IllegalArgumentException_init_$Create$(toString(message_0));
450
450
  }
451
- if (this.x2h_1.j().equals(new Long(0, 0))) {
452
- var read = this.v2h_1.b2h(this.x2h_1, new Long(8192, 0));
451
+ if (this.w2h_1.j().equals(new Long(0, 0))) {
452
+ var read = this.u2h_1.a2h(this.w2h_1, new Long(8192, 0));
453
453
  if (read.equals(new Long(-1, -1)))
454
454
  return new Long(-1, -1);
455
455
  }
456
456
  // Inline function 'kotlin.comparisons.minOf' call
457
- var b = this.x2h_1.j();
457
+ var b = this.w2h_1.j();
458
458
  var toRead = byteCount.j1(b) <= 0 ? byteCount : b;
459
- return this.x2h_1.b2h(sink, toRead);
459
+ return this.w2h_1.a2h(sink, toRead);
460
460
  };
461
- protoOf(RealSource).m2g = function (byteCount) {
462
- if (!this.n2g(byteCount))
461
+ protoOf(RealSource).l2g = function (byteCount) {
462
+ if (!this.m2g(byteCount))
463
463
  throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
464
464
  };
465
- protoOf(RealSource).n2g = function (byteCount) {
465
+ protoOf(RealSource).m2g = function (byteCount) {
466
466
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
467
467
  // Inline function 'kotlin.check' call
468
- if (!!this.w2h_1) {
468
+ if (!!this.v2h_1) {
469
469
  // Inline function 'kotlinx.io.RealSource.checkNotClosed.<anonymous>' call
470
470
  var message = 'Source is closed.';
471
471
  throw IllegalStateException_init_$Create$(toString(message));
@@ -476,37 +476,37 @@ protoOf(RealSource).n2g = function (byteCount) {
476
476
  var message_0 = 'byteCount: ' + byteCount.toString();
477
477
  throw IllegalArgumentException_init_$Create$(toString(message_0));
478
478
  }
479
- while (this.x2h_1.j().j1(byteCount) < 0) {
480
- if (this.v2h_1.b2h(this.x2h_1, new Long(8192, 0)).equals(new Long(-1, -1)))
479
+ while (this.w2h_1.j().j1(byteCount) < 0) {
480
+ if (this.u2h_1.a2h(this.w2h_1, new Long(8192, 0)).equals(new Long(-1, -1)))
481
481
  return false;
482
482
  }
483
483
  return true;
484
484
  };
485
- protoOf(RealSource).z2g = function (sink, startIndex, endIndex) {
485
+ protoOf(RealSource).y2g = function (sink, startIndex, endIndex) {
486
486
  // Inline function 'kotlinx.io.checkBounds' call
487
487
  var size = sink.length;
488
488
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
489
- if (this.x2h_1.j().equals(new Long(0, 0))) {
490
- var read = this.v2h_1.b2h(this.x2h_1, new Long(8192, 0));
489
+ if (this.w2h_1.j().equals(new Long(0, 0))) {
490
+ var read = this.u2h_1.a2h(this.w2h_1, new Long(8192, 0));
491
491
  if (read.equals(new Long(-1, -1)))
492
492
  return -1;
493
493
  }
494
494
  var tmp3 = endIndex - startIndex | 0;
495
495
  // Inline function 'kotlinx.io.minOf' call
496
- var b = this.x2h_1.j();
496
+ var b = this.w2h_1.j();
497
497
  // Inline function 'kotlin.comparisons.minOf' call
498
498
  var a = toLong(tmp3);
499
499
  var toRead = (a.j1(b) <= 0 ? a : b).l1();
500
- return this.x2h_1.z2g(sink, startIndex, startIndex + toRead | 0);
500
+ return this.w2h_1.y2g(sink, startIndex, startIndex + toRead | 0);
501
501
  };
502
502
  protoOf(RealSource).toString = function () {
503
- return 'buffered(' + toString(this.v2h_1) + ')';
503
+ return 'buffered(' + toString(this.u2h_1) + ')';
504
504
  };
505
505
  function Segment_init_$Init$($this) {
506
506
  Segment.call($this);
507
- $this.q2g_1 = new Int8Array(8192);
508
- $this.u2g_1 = true;
509
- $this.t2g_1 = null;
507
+ $this.p2g_1 = new Int8Array(8192);
508
+ $this.t2g_1 = true;
509
+ $this.s2g_1 = null;
510
510
  return $this;
511
511
  }
512
512
  function Segment_init_$Create$() {
@@ -514,90 +514,90 @@ function Segment_init_$Create$() {
514
514
  }
515
515
  function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
516
516
  Segment.call($this);
517
- $this.q2g_1 = data;
518
- $this.r2g_1 = pos;
519
- $this.s2g_1 = limit;
520
- $this.t2g_1 = shareToken;
521
- $this.u2g_1 = owner;
517
+ $this.p2g_1 = data;
518
+ $this.q2g_1 = pos;
519
+ $this.r2g_1 = limit;
520
+ $this.s2g_1 = shareToken;
521
+ $this.t2g_1 = owner;
522
522
  return $this;
523
523
  }
524
524
  function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
525
525
  return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
526
526
  }
527
527
  function Companion() {
528
- this.y2h_1 = 8192;
529
- this.z2h_1 = 1024;
528
+ this.x2h_1 = 8192;
529
+ this.y2h_1 = 1024;
530
530
  }
531
- protoOf(Companion).a2i = function () {
531
+ protoOf(Companion).z2h = function () {
532
532
  return Segment_init_$Create$();
533
533
  };
534
534
  var Companion_instance;
535
535
  function Companion_getInstance() {
536
536
  return Companion_instance;
537
537
  }
538
- protoOf(Segment).i2h = function () {
539
- var tmp1_safe_receiver = this.t2g_1;
540
- var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.e26();
538
+ protoOf(Segment).h2h = function () {
539
+ var tmp1_safe_receiver = this.s2g_1;
540
+ var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h26();
541
541
  return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
542
542
  };
543
- protoOf(Segment).b2i = function () {
544
- var tmp0_elvis_lhs = this.t2g_1;
543
+ protoOf(Segment).a2i = function () {
544
+ var tmp0_elvis_lhs = this.s2g_1;
545
545
  var tmp;
546
546
  if (tmp0_elvis_lhs == null) {
547
547
  // Inline function 'kotlin.also' call
548
- var this_0 = SegmentPool_instance.c2i();
548
+ var this_0 = SegmentPool_instance.b2i();
549
549
  // Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
550
- this.t2g_1 = this_0;
550
+ this.s2g_1 = this_0;
551
551
  tmp = this_0;
552
552
  } else {
553
553
  tmp = tmp0_elvis_lhs;
554
554
  }
555
555
  var t = tmp;
556
- var tmp_0 = this.r2g_1;
557
- var tmp_1 = this.s2g_1;
556
+ var tmp_0 = this.q2g_1;
557
+ var tmp_1 = this.r2g_1;
558
558
  // Inline function 'kotlin.also' call
559
559
  // Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
560
- t.d2i();
561
- return Segment_init_$Create$_0(this.q2g_1, tmp_0, tmp_1, t, false);
560
+ t.c2i();
561
+ return Segment_init_$Create$_0(this.p2g_1, tmp_0, tmp_1, t, false);
562
562
  };
563
- protoOf(Segment).l2h = function () {
564
- var result = this.v2g_1;
565
- if (!(this.w2g_1 == null)) {
566
- ensureNotNull(this.w2g_1).v2g_1 = this.v2g_1;
567
- }
563
+ protoOf(Segment).k2h = function () {
564
+ var result = this.u2g_1;
568
565
  if (!(this.v2g_1 == null)) {
569
- ensureNotNull(this.v2g_1).w2g_1 = this.w2g_1;
566
+ ensureNotNull(this.v2g_1).u2g_1 = this.u2g_1;
570
567
  }
568
+ if (!(this.u2g_1 == null)) {
569
+ ensureNotNull(this.u2g_1).v2g_1 = this.v2g_1;
570
+ }
571
+ this.u2g_1 = null;
571
572
  this.v2g_1 = null;
572
- this.w2g_1 = null;
573
573
  return result;
574
574
  };
575
- protoOf(Segment).h2h = function (segment) {
576
- segment.w2g_1 = this;
577
- segment.v2g_1 = this.v2g_1;
578
- if (!(this.v2g_1 == null)) {
579
- ensureNotNull(this.v2g_1).w2g_1 = segment;
575
+ protoOf(Segment).g2h = function (segment) {
576
+ segment.v2g_1 = this;
577
+ segment.u2g_1 = this.u2g_1;
578
+ if (!(this.u2g_1 == null)) {
579
+ ensureNotNull(this.u2g_1).v2g_1 = segment;
580
580
  }
581
- this.v2g_1 = segment;
581
+ this.u2g_1 = segment;
582
582
  return segment;
583
583
  };
584
- protoOf(Segment).j2h = function (byteCount) {
584
+ protoOf(Segment).i2h = function (byteCount) {
585
585
  // Inline function 'kotlin.require' call
586
- if (!(byteCount > 0 && byteCount <= (this.s2g_1 - this.r2g_1 | 0))) {
586
+ if (!(byteCount > 0 && byteCount <= (this.r2g_1 - this.q2g_1 | 0))) {
587
587
  // Inline function 'kotlinx.io.Segment.split.<anonymous>' call
588
588
  var message = 'byteCount out of range';
589
589
  throw IllegalArgumentException_init_$Create$(toString(message));
590
590
  }
591
591
  var prefix;
592
592
  if (byteCount >= 1024) {
593
- prefix = this.b2i();
593
+ prefix = this.a2i();
594
594
  } else {
595
- prefix = SegmentPool_instance.g2h();
596
- var tmp1 = this.q2g_1;
597
- var tmp2 = prefix.q2g_1;
598
- var tmp3 = this.r2g_1;
595
+ prefix = SegmentPool_instance.f2h();
596
+ var tmp1 = this.p2g_1;
597
+ var tmp2 = prefix.p2g_1;
598
+ var tmp3 = this.q2g_1;
599
599
  // Inline function 'kotlin.collections.copyInto' call
600
- var endIndex = this.r2g_1 + byteCount | 0;
600
+ var endIndex = this.q2g_1 + byteCount | 0;
601
601
  // Inline function 'kotlin.js.unsafeCast' call
602
602
  // Inline function 'kotlin.js.asDynamic' call
603
603
  var tmp = tmp1;
@@ -605,142 +605,142 @@ protoOf(Segment).j2h = function (byteCount) {
605
605
  // Inline function 'kotlin.js.asDynamic' call
606
606
  arrayCopy(tmp, tmp2, 0, tmp3, endIndex);
607
607
  }
608
- prefix.s2g_1 = prefix.r2g_1 + byteCount | 0;
609
- this.r2g_1 = this.r2g_1 + byteCount | 0;
610
- if (!(this.w2g_1 == null)) {
611
- ensureNotNull(this.w2g_1).h2h(prefix);
608
+ prefix.r2g_1 = prefix.q2g_1 + byteCount | 0;
609
+ this.q2g_1 = this.q2g_1 + byteCount | 0;
610
+ if (!(this.v2g_1 == null)) {
611
+ ensureNotNull(this.v2g_1).g2h(prefix);
612
612
  } else {
613
- prefix.v2g_1 = this;
614
- this.w2g_1 = prefix;
613
+ prefix.u2g_1 = this;
614
+ this.v2g_1 = prefix;
615
615
  }
616
616
  return prefix;
617
617
  };
618
- protoOf(Segment).m2h = function () {
618
+ protoOf(Segment).l2h = function () {
619
619
  // Inline function 'kotlin.check' call
620
- if (!!(this.w2g_1 == null)) {
620
+ if (!!(this.v2g_1 == null)) {
621
621
  // Inline function 'kotlinx.io.Segment.compact.<anonymous>' call
622
622
  var message = 'cannot compact';
623
623
  throw IllegalStateException_init_$Create$(toString(message));
624
624
  }
625
- if (!ensureNotNull(this.w2g_1).u2g_1)
625
+ if (!ensureNotNull(this.v2g_1).t2g_1)
626
626
  return this;
627
- var byteCount = this.s2g_1 - this.r2g_1 | 0;
628
- var availableByteCount = (8192 - ensureNotNull(this.w2g_1).s2g_1 | 0) + (ensureNotNull(this.w2g_1).i2h() ? 0 : ensureNotNull(this.w2g_1).r2g_1) | 0;
627
+ var byteCount = this.r2g_1 - this.q2g_1 | 0;
628
+ var availableByteCount = (8192 - ensureNotNull(this.v2g_1).r2g_1 | 0) + (ensureNotNull(this.v2g_1).h2h() ? 0 : ensureNotNull(this.v2g_1).q2g_1) | 0;
629
629
  if (byteCount > availableByteCount)
630
630
  return this;
631
- var predecessor = this.w2g_1;
632
- this.k2h(ensureNotNull(predecessor), byteCount);
633
- var successor = this.l2h();
631
+ var predecessor = this.v2g_1;
632
+ this.j2h(ensureNotNull(predecessor), byteCount);
633
+ var successor = this.k2h();
634
634
  // Inline function 'kotlin.check' call
635
635
  if (!(successor == null)) {
636
636
  throw IllegalStateException_init_$Create$('Check failed.');
637
637
  }
638
- SegmentPool_instance.q2h(this);
638
+ SegmentPool_instance.p2h(this);
639
639
  return predecessor;
640
640
  };
641
- protoOf(Segment).o2h = function (byte) {
642
- var _unary__edvuaz = this.s2g_1;
643
- this.s2g_1 = _unary__edvuaz + 1 | 0;
644
- this.q2g_1[_unary__edvuaz] = byte;
641
+ protoOf(Segment).n2h = function (byte) {
642
+ var _unary__edvuaz = this.r2g_1;
643
+ this.r2g_1 = _unary__edvuaz + 1 | 0;
644
+ this.p2g_1[_unary__edvuaz] = byte;
645
645
  };
646
- protoOf(Segment).k2h = function (sink, byteCount) {
646
+ protoOf(Segment).j2h = function (sink, byteCount) {
647
647
  // Inline function 'kotlin.check' call
648
- if (!sink.u2g_1) {
648
+ if (!sink.t2g_1) {
649
649
  // Inline function 'kotlinx.io.Segment.writeTo.<anonymous>' call
650
650
  var message = 'only owner can write';
651
651
  throw IllegalStateException_init_$Create$(toString(message));
652
652
  }
653
- if ((sink.s2g_1 + byteCount | 0) > 8192) {
654
- if (sink.i2h())
653
+ if ((sink.r2g_1 + byteCount | 0) > 8192) {
654
+ if (sink.h2h())
655
655
  throw IllegalArgumentException_init_$Create$_0();
656
- if (((sink.s2g_1 + byteCount | 0) - sink.r2g_1 | 0) > 8192)
656
+ if (((sink.r2g_1 + byteCount | 0) - sink.q2g_1 | 0) > 8192)
657
657
  throw IllegalArgumentException_init_$Create$_0();
658
- var tmp1 = sink.q2g_1;
659
- var tmp2 = sink.q2g_1;
660
- var tmp3 = sink.r2g_1;
658
+ var tmp1 = sink.p2g_1;
659
+ var tmp2 = sink.p2g_1;
660
+ var tmp3 = sink.q2g_1;
661
661
  // Inline function 'kotlin.collections.copyInto' call
662
- var endIndex = sink.s2g_1;
662
+ var endIndex = sink.r2g_1;
663
663
  // Inline function 'kotlin.js.unsafeCast' call
664
664
  // Inline function 'kotlin.js.asDynamic' call
665
665
  var tmp = tmp1;
666
666
  // Inline function 'kotlin.js.unsafeCast' call
667
667
  // Inline function 'kotlin.js.asDynamic' call
668
668
  arrayCopy(tmp, tmp2, 0, tmp3, endIndex);
669
- sink.s2g_1 = sink.s2g_1 - sink.r2g_1 | 0;
670
- sink.r2g_1 = 0;
669
+ sink.r2g_1 = sink.r2g_1 - sink.q2g_1 | 0;
670
+ sink.q2g_1 = 0;
671
671
  }
672
- var tmp6 = this.q2g_1;
673
- var tmp7 = sink.q2g_1;
674
- var tmp8 = sink.s2g_1;
675
- var tmp9 = this.r2g_1;
672
+ var tmp6 = this.p2g_1;
673
+ var tmp7 = sink.p2g_1;
674
+ var tmp8 = sink.r2g_1;
675
+ var tmp9 = this.q2g_1;
676
676
  // Inline function 'kotlin.collections.copyInto' call
677
- var endIndex_0 = this.r2g_1 + byteCount | 0;
677
+ var endIndex_0 = this.q2g_1 + byteCount | 0;
678
678
  // Inline function 'kotlin.js.unsafeCast' call
679
679
  // Inline function 'kotlin.js.asDynamic' call
680
680
  var tmp_0 = tmp6;
681
681
  // Inline function 'kotlin.js.unsafeCast' call
682
682
  // Inline function 'kotlin.js.asDynamic' call
683
683
  arrayCopy(tmp_0, tmp7, tmp8, tmp9, endIndex_0);
684
- sink.s2g_1 = sink.s2g_1 + byteCount | 0;
685
- this.r2g_1 = this.r2g_1 + byteCount | 0;
684
+ sink.r2g_1 = sink.r2g_1 + byteCount | 0;
685
+ this.q2g_1 = this.q2g_1 + byteCount | 0;
686
686
  };
687
- protoOf(Segment).a2h = function (dst, dstStartOffset, dstEndOffset) {
687
+ protoOf(Segment).z2g = function (dst, dstStartOffset, dstEndOffset) {
688
688
  var len = dstEndOffset - dstStartOffset | 0;
689
- var tmp0 = this.q2g_1;
690
- var tmp3 = this.r2g_1;
689
+ var tmp0 = this.p2g_1;
690
+ var tmp3 = this.q2g_1;
691
691
  // Inline function 'kotlin.collections.copyInto' call
692
- var endIndex = this.r2g_1 + len | 0;
692
+ var endIndex = this.q2g_1 + len | 0;
693
693
  // Inline function 'kotlin.js.unsafeCast' call
694
694
  // Inline function 'kotlin.js.asDynamic' call
695
695
  var tmp = tmp0;
696
696
  // Inline function 'kotlin.js.unsafeCast' call
697
697
  // Inline function 'kotlin.js.asDynamic' call
698
698
  arrayCopy(tmp, dst, dstStartOffset, tmp3, endIndex);
699
- this.r2g_1 = this.r2g_1 + len | 0;
699
+ this.q2g_1 = this.q2g_1 + len | 0;
700
700
  };
701
701
  protoOf(Segment).j = function () {
702
- return this.s2g_1 - this.r2g_1 | 0;
702
+ return this.r2g_1 - this.q2g_1 | 0;
703
703
  };
704
- protoOf(Segment).e2i = function () {
705
- return this.q2g_1.length - this.s2g_1 | 0;
704
+ protoOf(Segment).d2i = function () {
705
+ return this.p2g_1.length - this.r2g_1 | 0;
706
706
  };
707
- protoOf(Segment).f2i = function (readOnly) {
708
- return this.q2g_1;
707
+ protoOf(Segment).e2i = function (readOnly) {
708
+ return this.p2g_1;
709
709
  };
710
- protoOf(Segment).g2i = function (index) {
711
- return this.q2g_1[this.r2g_1 + index | 0];
710
+ protoOf(Segment).f2i = function (index) {
711
+ return this.p2g_1[this.q2g_1 + index | 0];
712
712
  };
713
- protoOf(Segment).h2i = function (index, value) {
714
- this.q2g_1[this.s2g_1 + index | 0] = value;
713
+ protoOf(Segment).g2i = function (index, value) {
714
+ this.p2g_1[this.r2g_1 + index | 0] = value;
715
715
  };
716
- protoOf(Segment).i2i = function (index, b0, b1) {
717
- var d = this.q2g_1;
718
- var l = this.s2g_1;
716
+ protoOf(Segment).h2i = function (index, b0, b1) {
717
+ var d = this.p2g_1;
718
+ var l = this.r2g_1;
719
719
  d[l + index | 0] = b0;
720
720
  d[(l + index | 0) + 1 | 0] = b1;
721
721
  };
722
- protoOf(Segment).j2i = function (index, b0, b1, b2) {
723
- var d = this.q2g_1;
724
- var l = this.s2g_1;
722
+ protoOf(Segment).i2i = function (index, b0, b1, b2) {
723
+ var d = this.p2g_1;
724
+ var l = this.r2g_1;
725
725
  d[l + index | 0] = b0;
726
726
  d[(l + index | 0) + 1 | 0] = b1;
727
727
  d[(l + index | 0) + 2 | 0] = b2;
728
728
  };
729
- protoOf(Segment).k2i = function (index, b0, b1, b2, b3) {
730
- var d = this.q2g_1;
731
- var l = this.s2g_1;
729
+ protoOf(Segment).j2i = function (index, b0, b1, b2, b3) {
730
+ var d = this.p2g_1;
731
+ var l = this.r2g_1;
732
732
  d[l + index | 0] = b0;
733
733
  d[(l + index | 0) + 1 | 0] = b1;
734
734
  d[(l + index | 0) + 2 | 0] = b2;
735
735
  d[(l + index | 0) + 3 | 0] = b3;
736
736
  };
737
737
  function Segment() {
738
+ this.q2g_1 = 0;
738
739
  this.r2g_1 = 0;
739
- this.s2g_1 = 0;
740
- this.t2g_1 = null;
741
- this.u2g_1 = false;
740
+ this.s2g_1 = null;
741
+ this.t2g_1 = false;
742
+ this.u2g_1 = null;
742
743
  this.v2g_1 = null;
743
- this.w2g_1 = null;
744
744
  }
745
745
  function SegmentCopyTracker() {
746
746
  }
@@ -751,10 +751,10 @@ function AlwaysSharedCopyTracker() {
751
751
  AlwaysSharedCopyTracker_instance = this;
752
752
  SegmentCopyTracker.call(this);
753
753
  }
754
- protoOf(AlwaysSharedCopyTracker).e26 = function () {
754
+ protoOf(AlwaysSharedCopyTracker).h26 = function () {
755
755
  return true;
756
756
  };
757
- protoOf(AlwaysSharedCopyTracker).d2i = function () {
757
+ protoOf(AlwaysSharedCopyTracker).c2i = function () {
758
758
  return Unit_instance;
759
759
  };
760
760
  var AlwaysSharedCopyTracker_instance;
@@ -778,22 +778,22 @@ function readByteArrayImpl(_this__u8e3s4, size) {
778
778
  var arraySize = size;
779
779
  if (size === -1) {
780
780
  var fetchSize = new Long(2147483647, 0);
781
- while (_this__u8e3s4.k2g().j().j1(new Long(2147483647, 0)) < 0 && _this__u8e3s4.n2g(fetchSize)) {
781
+ while (_this__u8e3s4.j2g().j().j1(new Long(2147483647, 0)) < 0 && _this__u8e3s4.m2g(fetchSize)) {
782
782
  // Inline function 'kotlin.Long.times' call
783
783
  fetchSize = fetchSize.b3(toLong(2));
784
784
  }
785
785
  // Inline function 'kotlin.check' call
786
- if (!(_this__u8e3s4.k2g().j().j1(new Long(2147483647, 0)) < 0)) {
786
+ if (!(_this__u8e3s4.j2g().j().j1(new Long(2147483647, 0)) < 0)) {
787
787
  // Inline function 'kotlinx.io.readByteArrayImpl.<anonymous>' call
788
- var message = "Can't create an array of size " + _this__u8e3s4.k2g().j().toString();
788
+ var message = "Can't create an array of size " + _this__u8e3s4.j2g().j().toString();
789
789
  throw IllegalStateException_init_$Create$(toString(message));
790
790
  }
791
- arraySize = _this__u8e3s4.k2g().j().l1();
791
+ arraySize = _this__u8e3s4.j2g().j().l1();
792
792
  } else {
793
- _this__u8e3s4.m2g(toLong(size));
793
+ _this__u8e3s4.l2g(toLong(size));
794
794
  }
795
795
  var array = new Int8Array(arraySize);
796
- readTo(_this__u8e3s4.k2g(), array);
796
+ readTo(_this__u8e3s4.j2g(), array);
797
797
  return array;
798
798
  }
799
799
  function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
@@ -804,7 +804,7 @@ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
804
804
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
805
805
  var offset = startIndex;
806
806
  while (offset < endIndex) {
807
- var bytesRead = _this__u8e3s4.z2g(sink, offset, endIndex);
807
+ var bytesRead = _this__u8e3s4.y2g(sink, offset, endIndex);
808
808
  if (bytesRead === -1) {
809
809
  throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
810
810
  }
@@ -812,8 +812,8 @@ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
812
812
  }
813
813
  }
814
814
  function readString(_this__u8e3s4) {
815
- _this__u8e3s4.n2g(new Long(-1, 2147483647));
816
- return commonReadUtf8(_this__u8e3s4.k2g(), _this__u8e3s4.k2g().j());
815
+ _this__u8e3s4.m2g(new Long(-1, 2147483647));
816
+ return commonReadUtf8(_this__u8e3s4.j2g(), _this__u8e3s4.j2g().j());
817
817
  }
818
818
  function writeString(_this__u8e3s4, string, startIndex, endIndex) {
819
819
  startIndex = startIndex === VOID ? 0 : startIndex;
@@ -824,7 +824,7 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
824
824
  // Inline function 'kotlinx.io.writeToInternalBuffer' call
825
825
  // Inline function 'kotlinx.io.writeString.<anonymous>' call
826
826
  // Inline function 'kotlinx.io.commonWriteUtf8' call
827
- var this_0 = _this__u8e3s4.k2g();
827
+ var this_0 = _this__u8e3s4.j2g();
828
828
  var i = startIndex;
829
829
  while (i < endIndex) {
830
830
  // Inline function 'kotlinx.io.writeString.<anonymous>.stub_for_inlining' call
@@ -835,16 +835,16 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
835
835
  if (c < 128) {
836
836
  $l$block_0: {
837
837
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
838
- var tail = this_0.d2h(1);
838
+ var tail = this_0.c2h(1);
839
839
  // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
840
840
  var ctx = get_SegmentWriteContextImpl();
841
841
  var segmentOffset = -i | 0;
842
842
  // Inline function 'kotlin.comparisons.minOf' call
843
- var b = i + tail.e2i() | 0;
843
+ var b = i + tail.d2i() | 0;
844
844
  var runLimit = Math.min(endIndex, b);
845
845
  var _unary__edvuaz = i;
846
846
  i = _unary__edvuaz + 1 | 0;
847
- ctx.o2i(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
847
+ ctx.n2i(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
848
848
  $l$loop: while (i < runLimit) {
849
849
  // Inline function 'kotlinx.io.writeString.<anonymous>.stub_for_inlining' call
850
850
  var p0_0 = i;
@@ -855,94 +855,94 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
855
855
  break $l$loop;
856
856
  var _unary__edvuaz_0 = i;
857
857
  i = _unary__edvuaz_0 + 1 | 0;
858
- ctx.o2i(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
858
+ ctx.n2i(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
859
859
  }
860
860
  var bytesWritten = i + segmentOffset | 0;
861
861
  if (bytesWritten === 1) {
862
- tail.s2g_1 = tail.s2g_1 + bytesWritten | 0;
862
+ tail.r2g_1 = tail.r2g_1 + bytesWritten | 0;
863
863
  var tmp = this_0;
864
864
  // Inline function 'kotlin.Long.plus' call
865
- tmp.j2g_1 = this_0.j2g_1.z2(toLong(bytesWritten));
865
+ tmp.i2g_1 = this_0.i2g_1.z2(toLong(bytesWritten));
866
866
  break $l$block_0;
867
867
  }
868
868
  // Inline function 'kotlin.check' call
869
- if (!(0 <= bytesWritten ? bytesWritten <= tail.e2i() : false)) {
869
+ if (!(0 <= bytesWritten ? bytesWritten <= tail.d2i() : false)) {
870
870
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
871
- var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.e2i();
871
+ var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.d2i();
872
872
  throw IllegalStateException_init_$Create$(toString(message));
873
873
  }
874
874
  if (!(bytesWritten === 0)) {
875
- tail.s2g_1 = tail.s2g_1 + bytesWritten | 0;
875
+ tail.r2g_1 = tail.r2g_1 + bytesWritten | 0;
876
876
  var tmp_0 = this_0;
877
877
  // Inline function 'kotlin.Long.plus' call
878
- tmp_0.j2g_1 = this_0.j2g_1.z2(toLong(bytesWritten));
878
+ tmp_0.i2g_1 = this_0.i2g_1.z2(toLong(bytesWritten));
879
879
  break $l$block_0;
880
880
  }
881
881
  if (isEmpty(tail)) {
882
- this_0.r2h();
882
+ this_0.q2h();
883
883
  }
884
884
  }
885
885
  } else if (c < 2048) {
886
886
  $l$block_2: {
887
887
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
888
- var tail_0 = this_0.d2h(2);
888
+ var tail_0 = this_0.c2h(2);
889
889
  // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
890
- get_SegmentWriteContextImpl().n2i(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
890
+ get_SegmentWriteContextImpl().m2i(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
891
891
  var bytesWritten_0 = 2;
892
892
  if (bytesWritten_0 === 2) {
893
- tail_0.s2g_1 = tail_0.s2g_1 + bytesWritten_0 | 0;
893
+ tail_0.r2g_1 = tail_0.r2g_1 + bytesWritten_0 | 0;
894
894
  var tmp_1 = this_0;
895
895
  // Inline function 'kotlin.Long.plus' call
896
- tmp_1.j2g_1 = this_0.j2g_1.z2(toLong(bytesWritten_0));
896
+ tmp_1.i2g_1 = this_0.i2g_1.z2(toLong(bytesWritten_0));
897
897
  break $l$block_2;
898
898
  }
899
899
  // Inline function 'kotlin.check' call
900
- if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.e2i() : false)) {
900
+ if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.d2i() : false)) {
901
901
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
902
- var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.e2i();
902
+ var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.d2i();
903
903
  throw IllegalStateException_init_$Create$(toString(message_0));
904
904
  }
905
905
  if (!(bytesWritten_0 === 0)) {
906
- tail_0.s2g_1 = tail_0.s2g_1 + bytesWritten_0 | 0;
906
+ tail_0.r2g_1 = tail_0.r2g_1 + bytesWritten_0 | 0;
907
907
  var tmp_2 = this_0;
908
908
  // Inline function 'kotlin.Long.plus' call
909
- tmp_2.j2g_1 = this_0.j2g_1.z2(toLong(bytesWritten_0));
909
+ tmp_2.i2g_1 = this_0.i2g_1.z2(toLong(bytesWritten_0));
910
910
  break $l$block_2;
911
911
  }
912
912
  if (isEmpty(tail_0)) {
913
- this_0.r2h();
913
+ this_0.q2h();
914
914
  }
915
915
  }
916
916
  i = i + 1 | 0;
917
917
  } else if (c < 55296 || c > 57343) {
918
918
  $l$block_4: {
919
919
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
920
- var tail_1 = this_0.d2h(3);
920
+ var tail_1 = this_0.c2h(3);
921
921
  // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
922
- get_SegmentWriteContextImpl().m2i(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
922
+ get_SegmentWriteContextImpl().l2i(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
923
923
  var bytesWritten_1 = 3;
924
924
  if (bytesWritten_1 === 3) {
925
- tail_1.s2g_1 = tail_1.s2g_1 + bytesWritten_1 | 0;
925
+ tail_1.r2g_1 = tail_1.r2g_1 + bytesWritten_1 | 0;
926
926
  var tmp_3 = this_0;
927
927
  // Inline function 'kotlin.Long.plus' call
928
- tmp_3.j2g_1 = this_0.j2g_1.z2(toLong(bytesWritten_1));
928
+ tmp_3.i2g_1 = this_0.i2g_1.z2(toLong(bytesWritten_1));
929
929
  break $l$block_4;
930
930
  }
931
931
  // Inline function 'kotlin.check' call
932
- if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.e2i() : false)) {
932
+ if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.d2i() : false)) {
933
933
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
934
- var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.e2i();
934
+ var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.d2i();
935
935
  throw IllegalStateException_init_$Create$(toString(message_1));
936
936
  }
937
937
  if (!(bytesWritten_1 === 0)) {
938
- tail_1.s2g_1 = tail_1.s2g_1 + bytesWritten_1 | 0;
938
+ tail_1.r2g_1 = tail_1.r2g_1 + bytesWritten_1 | 0;
939
939
  var tmp_4 = this_0;
940
940
  // Inline function 'kotlin.Long.plus' call
941
- tmp_4.j2g_1 = this_0.j2g_1.z2(toLong(bytesWritten_1));
941
+ tmp_4.i2g_1 = this_0.i2g_1.z2(toLong(bytesWritten_1));
942
942
  break $l$block_4;
943
943
  }
944
944
  if (isEmpty(tail_1)) {
945
- this_0.r2h();
945
+ this_0.q2h();
946
946
  }
947
947
  }
948
948
  i = i + 1 | 0;
@@ -962,66 +962,66 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
962
962
  // Inline function 'kotlin.code' call
963
963
  var this_4 = _Char___init__impl__6a9atx(63);
964
964
  var tmp$ret$23 = Char__toInt_impl_vasixd(this_4);
965
- this_0.n2h(toByte(tmp$ret$23));
965
+ this_0.m2h(toByte(tmp$ret$23));
966
966
  i = i + 1 | 0;
967
967
  } else {
968
968
  var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
969
969
  $l$block_6: {
970
970
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
971
- var tail_2 = this_0.d2h(4);
971
+ var tail_2 = this_0.c2h(4);
972
972
  // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
973
- get_SegmentWriteContextImpl().l2i(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
973
+ get_SegmentWriteContextImpl().k2i(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
974
974
  var bytesWritten_2 = 4;
975
975
  if (bytesWritten_2 === 4) {
976
- tail_2.s2g_1 = tail_2.s2g_1 + bytesWritten_2 | 0;
976
+ tail_2.r2g_1 = tail_2.r2g_1 + bytesWritten_2 | 0;
977
977
  var tmp_6 = this_0;
978
978
  // Inline function 'kotlin.Long.plus' call
979
- tmp_6.j2g_1 = this_0.j2g_1.z2(toLong(bytesWritten_2));
979
+ tmp_6.i2g_1 = this_0.i2g_1.z2(toLong(bytesWritten_2));
980
980
  break $l$block_6;
981
981
  }
982
982
  // Inline function 'kotlin.check' call
983
- if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.e2i() : false)) {
983
+ if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.d2i() : false)) {
984
984
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
985
- var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.e2i();
985
+ var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.d2i();
986
986
  throw IllegalStateException_init_$Create$(toString(message_2));
987
987
  }
988
988
  if (!(bytesWritten_2 === 0)) {
989
- tail_2.s2g_1 = tail_2.s2g_1 + bytesWritten_2 | 0;
989
+ tail_2.r2g_1 = tail_2.r2g_1 + bytesWritten_2 | 0;
990
990
  var tmp_7 = this_0;
991
991
  // Inline function 'kotlin.Long.plus' call
992
- tmp_7.j2g_1 = this_0.j2g_1.z2(toLong(bytesWritten_2));
992
+ tmp_7.i2g_1 = this_0.i2g_1.z2(toLong(bytesWritten_2));
993
993
  break $l$block_6;
994
994
  }
995
995
  if (isEmpty(tail_2)) {
996
- this_0.r2h();
996
+ this_0.q2h();
997
997
  }
998
998
  }
999
999
  i = i + 2 | 0;
1000
1000
  }
1001
1001
  }
1002
1002
  }
1003
- _this__u8e3s4.o2g();
1003
+ _this__u8e3s4.n2g();
1004
1004
  }
1005
1005
  function commonReadUtf8(_this__u8e3s4, byteCount) {
1006
1006
  if (byteCount.equals(new Long(0, 0)))
1007
1007
  return '';
1008
1008
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
1009
- var curr = _this__u8e3s4.h2g_1;
1009
+ var curr = _this__u8e3s4.g2g_1;
1010
1010
  while (!(curr == null)) {
1011
1011
  get_SegmentReadContextImpl();
1012
1012
  // Inline function 'kotlinx.io.commonReadUtf8.<anonymous>' call
1013
1013
  if (toLong(curr.j()).j1(byteCount) >= 0) {
1014
1014
  var result = '';
1015
1015
  // Inline function 'kotlinx.io.unsafe.withData' call
1016
- var tmp2 = curr.f2i(true);
1017
- var tmp3 = curr.r2g_1;
1016
+ var tmp2 = curr.e2i(true);
1017
+ var tmp3 = curr.q2g_1;
1018
1018
  // Inline function 'kotlinx.io.commonReadUtf8.<anonymous>.<anonymous>' call
1019
- var tmp0 = curr.s2g_1;
1019
+ var tmp0 = curr.r2g_1;
1020
1020
  // Inline function 'kotlin.math.min' call
1021
1021
  var b = tmp3 + byteCount.l1() | 0;
1022
1022
  var tmp$ret$0 = Math.min(tmp0, b);
1023
1023
  result = commonToUtf8String(tmp2, tmp3, tmp$ret$0);
1024
- _this__u8e3s4.x2g(byteCount);
1024
+ _this__u8e3s4.w2g(byteCount);
1025
1025
  return result;
1026
1026
  }
1027
1027
  return commonToUtf8String(readByteArray(_this__u8e3s4, byteCount.l1()));
@@ -1038,9 +1038,9 @@ function FileMetadata(isRegularFile, isDirectory, size) {
1038
1038
  isRegularFile = isRegularFile === VOID ? false : isRegularFile;
1039
1039
  isDirectory = isDirectory === VOID ? false : isDirectory;
1040
1040
  size = size === VOID ? new Long(0, 0) : size;
1041
- this.w2i_1 = isRegularFile;
1042
- this.x2i_1 = isDirectory;
1043
- this.y2i_1 = size;
1041
+ this.v2i_1 = isRegularFile;
1042
+ this.w2i_1 = isDirectory;
1043
+ this.x2i_1 = size;
1044
1044
  }
1045
1045
  function Path(base, parts) {
1046
1046
  return Path_0(base.toString(), parts.slice());
@@ -1551,27 +1551,27 @@ function UnsafeBufferOperations_getInstance() {
1551
1551
  }
1552
1552
  function SegmentReadContextImpl$1() {
1553
1553
  }
1554
- protoOf(SegmentReadContextImpl$1).p2h = function (segment, offset) {
1555
- return segment.g2i(offset);
1554
+ protoOf(SegmentReadContextImpl$1).o2h = function (segment, offset) {
1555
+ return segment.f2i(offset);
1556
1556
  };
1557
1557
  function SegmentWriteContextImpl$1() {
1558
1558
  }
1559
- protoOf(SegmentWriteContextImpl$1).o2i = function (segment, offset, value) {
1560
- segment.h2i(offset, value);
1559
+ protoOf(SegmentWriteContextImpl$1).n2i = function (segment, offset, value) {
1560
+ segment.g2i(offset, value);
1561
1561
  };
1562
- protoOf(SegmentWriteContextImpl$1).n2i = function (segment, offset, b0, b1) {
1563
- segment.i2i(offset, b0, b1);
1562
+ protoOf(SegmentWriteContextImpl$1).m2i = function (segment, offset, b0, b1) {
1563
+ segment.h2i(offset, b0, b1);
1564
1564
  };
1565
- protoOf(SegmentWriteContextImpl$1).m2i = function (segment, offset, b0, b1, b2) {
1566
- segment.j2i(offset, b0, b1, b2);
1565
+ protoOf(SegmentWriteContextImpl$1).l2i = function (segment, offset, b0, b1, b2) {
1566
+ segment.i2i(offset, b0, b1, b2);
1567
1567
  };
1568
- protoOf(SegmentWriteContextImpl$1).l2i = function (segment, offset, b0, b1, b2, b3) {
1569
- segment.k2i(offset, b0, b1, b2, b3);
1568
+ protoOf(SegmentWriteContextImpl$1).k2i = function (segment, offset, b0, b1, b2, b3) {
1569
+ segment.j2i(offset, b0, b1, b2, b3);
1570
1570
  };
1571
1571
  function BufferIterationContextImpl$1() {
1572
1572
  }
1573
- protoOf(BufferIterationContextImpl$1).p2h = function (segment, offset) {
1574
- return get_SegmentReadContextImpl().p2h(segment, offset);
1573
+ protoOf(BufferIterationContextImpl$1).o2h = function (segment, offset) {
1574
+ return get_SegmentReadContextImpl().o2h(segment, offset);
1575
1575
  };
1576
1576
  var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
1577
1577
  function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
@@ -1652,15 +1652,15 @@ function EOFException() {
1652
1652
  captureStack(this, EOFException);
1653
1653
  }
1654
1654
  function SegmentPool() {
1655
+ this.d2h_1 = 0;
1655
1656
  this.e2h_1 = 0;
1656
- this.f2h_1 = 0;
1657
1657
  }
1658
- protoOf(SegmentPool).g2h = function () {
1659
- return Companion_instance.a2i();
1658
+ protoOf(SegmentPool).f2h = function () {
1659
+ return Companion_instance.z2h();
1660
1660
  };
1661
- protoOf(SegmentPool).q2h = function (segment) {
1661
+ protoOf(SegmentPool).p2h = function (segment) {
1662
1662
  };
1663
- protoOf(SegmentPool).c2i = function () {
1663
+ protoOf(SegmentPool).b2i = function () {
1664
1664
  return AlwaysSharedCopyTracker_getInstance();
1665
1665
  };
1666
1666
  var SegmentPool_instance;
@@ -1809,7 +1809,7 @@ function FileNotFoundException(message) {
1809
1809
  }
1810
1810
  function SystemFileSystem$o$metadataOrNull$lambda($path, $metadata) {
1811
1811
  return function () {
1812
- var tmp0_elvis_lhs = get_fs().statSync($path.z2i_1);
1812
+ var tmp0_elvis_lhs = get_fs().statSync($path.y2i_1);
1813
1813
  var tmp;
1814
1814
  if (tmp0_elvis_lhs == null) {
1815
1815
  return Unit_instance;
@@ -1826,16 +1826,16 @@ function SystemFileSystem$o$metadataOrNull$lambda($path, $metadata) {
1826
1826
  function SystemFileSystem$1() {
1827
1827
  SystemFileSystemImpl.call(this);
1828
1828
  }
1829
- protoOf(SystemFileSystem$1).p2i = function (path) {
1830
- return get_fs().existsSync(path.z2i_1);
1829
+ protoOf(SystemFileSystem$1).o2i = function (path) {
1830
+ return get_fs().existsSync(path.y2i_1);
1831
1831
  };
1832
- protoOf(SystemFileSystem$1).q2i = function (path, mustCreate) {
1833
- var metadata = this.u2i(path);
1832
+ protoOf(SystemFileSystem$1).p2i = function (path, mustCreate) {
1833
+ var metadata = this.t2i(path);
1834
1834
  if (!(metadata == null)) {
1835
1835
  if (mustCreate) {
1836
1836
  throw IOException_init_$Create$_0('Path already exists: ' + path.toString());
1837
1837
  }
1838
- if (metadata.w2i_1) {
1838
+ if (metadata.v2i_1) {
1839
1839
  throw IOException_init_$Create$_0("Path already exists and it's a file: " + path.toString());
1840
1840
  }
1841
1841
  return Unit_instance;
@@ -1843,9 +1843,9 @@ protoOf(SystemFileSystem$1).q2i = function (path, mustCreate) {
1843
1843
  // Inline function 'kotlin.collections.arrayListOf' call
1844
1844
  var parts = ArrayList_init_$Create$();
1845
1845
  var p = path;
1846
- while (!(p == null) && !this.p2i(p)) {
1846
+ while (!(p == null) && !this.o2i(p)) {
1847
1847
  parts.e(p.toString());
1848
- p = p.a2j();
1848
+ p = p.z2i();
1849
1849
  }
1850
1850
  // Inline function 'kotlin.collections.forEach' call
1851
1851
  var _iterator__ex2g4s = asReversed(parts).g();
@@ -1855,8 +1855,8 @@ protoOf(SystemFileSystem$1).q2i = function (path, mustCreate) {
1855
1855
  get_fs().mkdirSync(element);
1856
1856
  }
1857
1857
  };
1858
- protoOf(SystemFileSystem$1).u2i = function (path) {
1859
- if (!this.p2i(path))
1858
+ protoOf(SystemFileSystem$1).t2i = function (path) {
1859
+ if (!this.o2i(path))
1860
1860
  return null;
1861
1861
  var metadata = {_v: null};
1862
1862
  var tmp2_safe_receiver = withCaughtException(SystemFileSystem$o$metadataOrNull$lambda(path, metadata));
@@ -1869,27 +1869,27 @@ protoOf(SystemFileSystem$1).u2i = function (path) {
1869
1869
  }
1870
1870
  return metadata._v;
1871
1871
  };
1872
- protoOf(SystemFileSystem$1).r2i = function (path) {
1872
+ protoOf(SystemFileSystem$1).q2i = function (path) {
1873
1873
  return new FileSource(path);
1874
1874
  };
1875
- protoOf(SystemFileSystem$1).s2i = function (path, append) {
1875
+ protoOf(SystemFileSystem$1).r2i = function (path, append) {
1876
1876
  return new FileSink(path, append);
1877
1877
  };
1878
- protoOf(SystemFileSystem$1).v2i = function (directory) {
1879
- var tmp0_elvis_lhs = this.u2i(directory);
1878
+ protoOf(SystemFileSystem$1).u2i = function (directory) {
1879
+ var tmp0_elvis_lhs = this.t2i(directory);
1880
1880
  var tmp;
1881
1881
  if (tmp0_elvis_lhs == null) {
1882
- throw new FileNotFoundException(directory.z2i_1);
1882
+ throw new FileNotFoundException(directory.y2i_1);
1883
1883
  } else {
1884
1884
  tmp = tmp0_elvis_lhs;
1885
1885
  }
1886
1886
  var metadata = tmp;
1887
- if (!metadata.x2i_1)
1888
- throw IOException_init_$Create$_0('Not a directory: ' + directory.z2i_1);
1889
- var tmp1_elvis_lhs = get_fs().opendirSync(directory.z2i_1);
1887
+ if (!metadata.w2i_1)
1888
+ throw IOException_init_$Create$_0('Not a directory: ' + directory.y2i_1);
1889
+ var tmp1_elvis_lhs = get_fs().opendirSync(directory.y2i_1);
1890
1890
  var tmp_0;
1891
1891
  if (tmp1_elvis_lhs == null) {
1892
- throw IOException_init_$Create$_0('Unable to read directory: ' + directory.z2i_1);
1892
+ throw IOException_init_$Create$_0('Unable to read directory: ' + directory.y2i_1);
1893
1893
  } else {
1894
1894
  tmp_0 = tmp1_elvis_lhs;
1895
1895
  }
@@ -1927,27 +1927,27 @@ function get_SystemPathSeparator() {
1927
1927
  }
1928
1928
  var SystemPathSeparator$delegate;
1929
1929
  function Path_1(rawPath, any) {
1930
- this.z2i_1 = removeTrailingSeparators(rawPath);
1930
+ this.y2i_1 = removeTrailingSeparators(rawPath);
1931
1931
  }
1932
- protoOf(Path_1).a2j = function () {
1932
+ protoOf(Path_1).z2i = function () {
1933
1933
  // Inline function 'kotlin.text.isEmpty' call
1934
- var this_0 = this.z2i_1;
1934
+ var this_0 = this.y2i_1;
1935
1935
  if (charSequenceLength(this_0) === 0)
1936
1936
  return null;
1937
1937
  if (get_isWindows()) {
1938
- if (!contains(this.z2i_1, _Char___init__impl__6a9atx(47)) && !contains(this.z2i_1, _Char___init__impl__6a9atx(92))) {
1938
+ if (!contains(this.y2i_1, _Char___init__impl__6a9atx(47)) && !contains(this.y2i_1, _Char___init__impl__6a9atx(92))) {
1939
1939
  return null;
1940
1940
  }
1941
- } else if (!contains(this.z2i_1, get_SystemPathSeparator())) {
1941
+ } else if (!contains(this.y2i_1, get_SystemPathSeparator())) {
1942
1942
  return null;
1943
1943
  }
1944
- var p = get_path().dirname(this.z2i_1);
1944
+ var p = get_path().dirname(this.y2i_1);
1945
1945
  var tmp;
1946
1946
  // Inline function 'kotlin.text.isEmpty' call
1947
1947
  if (charSequenceLength(p) === 0) {
1948
1948
  tmp = null;
1949
1949
  } else {
1950
- if (p === this.z2i_1) {
1950
+ if (p === this.y2i_1) {
1951
1951
  tmp = null;
1952
1952
  } else {
1953
1953
  tmp = Path_2(p);
@@ -1957,10 +1957,10 @@ protoOf(Path_1).a2j = function () {
1957
1957
  };
1958
1958
  protoOf(Path_1).s2 = function () {
1959
1959
  // Inline function 'kotlin.text.isEmpty' call
1960
- var this_0 = this.z2i_1;
1960
+ var this_0 = this.y2i_1;
1961
1961
  if (charSequenceLength(this_0) === 0)
1962
1962
  return '';
1963
- var p = get_path().basename(this.z2i_1);
1963
+ var p = get_path().basename(this.y2i_1);
1964
1964
  var tmp;
1965
1965
  // Inline function 'kotlin.text.isEmpty' call
1966
1966
  if (charSequenceLength(p) === 0) {
@@ -1971,21 +1971,21 @@ protoOf(Path_1).s2 = function () {
1971
1971
  return tmp;
1972
1972
  };
1973
1973
  protoOf(Path_1).toString = function () {
1974
- return this.z2i_1;
1974
+ return this.y2i_1;
1975
1975
  };
1976
1976
  protoOf(Path_1).equals = function (other) {
1977
1977
  if (this === other)
1978
1978
  return true;
1979
1979
  if (!(other instanceof Path_1))
1980
1980
  return false;
1981
- return this.z2i_1 === other.z2i_1;
1981
+ return this.y2i_1 === other.y2i_1;
1982
1982
  };
1983
1983
  protoOf(Path_1).hashCode = function () {
1984
- return getStringHashCode(this.z2i_1);
1984
+ return getStringHashCode(this.y2i_1);
1985
1985
  };
1986
1986
  function open($this, path) {
1987
- if (!get_fs().existsSync(path.z2i_1)) {
1988
- throw new FileNotFoundException('File does not exist: ' + path.z2i_1);
1987
+ if (!get_fs().existsSync(path.y2i_1)) {
1988
+ throw new FileNotFoundException('File does not exist: ' + path.y2i_1);
1989
1989
  }
1990
1990
  var fd = {_v: -1};
1991
1991
  var tmp3_safe_receiver = withCaughtException(FileSource$open$lambda(fd, path));
@@ -1994,34 +1994,34 @@ function open($this, path) {
1994
1994
  else {
1995
1995
  // Inline function 'kotlin.also' call
1996
1996
  // Inline function 'kotlinx.io.files.FileSource.open.<anonymous>' call
1997
- throw IOException_init_$Create$_1('Failed to open a file ' + path.z2i_1 + '.', tmp3_safe_receiver);
1997
+ throw IOException_init_$Create$_1('Failed to open a file ' + path.y2i_1 + '.', tmp3_safe_receiver);
1998
1998
  }
1999
1999
  if (fd._v < 0)
2000
- throw IOException_init_$Create$_0('Failed to open a file ' + path.z2i_1 + '.');
2000
+ throw IOException_init_$Create$_0('Failed to open a file ' + path.y2i_1 + '.');
2001
2001
  return fd._v;
2002
2002
  }
2003
2003
  function FileSource$open$lambda($fd, $path) {
2004
2004
  return function () {
2005
- $fd._v = get_fs().openSync($path.z2i_1, 'r');
2005
+ $fd._v = get_fs().openSync($path.y2i_1, 'r');
2006
2006
  return Unit_instance;
2007
2007
  };
2008
2008
  }
2009
2009
  function FileSource$readAtMostTo$lambda(this$0) {
2010
2010
  return function () {
2011
- this$0.c2j_1 = get_fs().readFileSync(this$0.f2j_1, null);
2011
+ this$0.b2j_1 = get_fs().readFileSync(this$0.e2j_1, null);
2012
2012
  return Unit_instance;
2013
2013
  };
2014
2014
  }
2015
2015
  function FileSource(path) {
2016
- this.b2j_1 = path;
2017
- this.c2j_1 = null;
2018
- this.d2j_1 = false;
2019
- this.e2j_1 = 0;
2020
- this.f2j_1 = open(this, this.b2j_1);
2016
+ this.a2j_1 = path;
2017
+ this.b2j_1 = null;
2018
+ this.c2j_1 = false;
2019
+ this.d2j_1 = 0;
2020
+ this.e2j_1 = open(this, this.a2j_1);
2021
2021
  }
2022
- protoOf(FileSource).b2h = function (sink, byteCount) {
2022
+ protoOf(FileSource).a2h = function (sink, byteCount) {
2023
2023
  // Inline function 'kotlin.check' call
2024
- if (!!this.d2j_1) {
2024
+ if (!!this.c2j_1) {
2025
2025
  // Inline function 'kotlinx.io.files.FileSource.readAtMostTo.<anonymous>' call
2026
2026
  var message = 'Source is closed.';
2027
2027
  throw IllegalStateException_init_$Create$(toString(message));
@@ -2029,22 +2029,22 @@ protoOf(FileSource).b2h = function (sink, byteCount) {
2029
2029
  if (byteCount.equals(new Long(0, 0))) {
2030
2030
  return new Long(0, 0);
2031
2031
  }
2032
- if (this.c2j_1 === null) {
2032
+ if (this.b2j_1 === null) {
2033
2033
  var tmp4_safe_receiver = withCaughtException(FileSource$readAtMostTo$lambda(this));
2034
2034
  if (tmp4_safe_receiver == null)
2035
2035
  null;
2036
2036
  else {
2037
2037
  // Inline function 'kotlin.also' call
2038
2038
  // Inline function 'kotlinx.io.files.FileSource.readAtMostTo.<anonymous>' call
2039
- throw IOException_init_$Create$_1('Failed to read data from ' + this.b2j_1.z2i_1, tmp4_safe_receiver);
2039
+ throw IOException_init_$Create$_1('Failed to read data from ' + this.a2j_1.y2i_1, tmp4_safe_receiver);
2040
2040
  }
2041
2041
  }
2042
- var len = ensureNotNull(this.c2j_1).length;
2043
- if (this.e2j_1 >= len) {
2042
+ var len = ensureNotNull(this.b2j_1).length;
2043
+ if (this.d2j_1 >= len) {
2044
2044
  return new Long(-1, -1);
2045
2045
  }
2046
2046
  // Inline function 'kotlinx.io.minOf' call
2047
- var b = len - this.e2j_1 | 0;
2047
+ var b = len - this.d2j_1 | 0;
2048
2048
  // Inline function 'kotlin.comparisons.minOf' call
2049
2049
  var b_0 = toLong(b);
2050
2050
  var bytesToRead = byteCount.j1(b_0) <= 0 ? byteCount : b_0;
@@ -2053,10 +2053,10 @@ protoOf(FileSource).b2h = function (sink, byteCount) {
2053
2053
  do {
2054
2054
  var i = inductionVariable;
2055
2055
  inductionVariable = inductionVariable.z2(new Long(1, 0));
2056
- var tmp = ensureNotNull(this.c2j_1);
2057
- var _unary__edvuaz = this.e2j_1;
2058
- this.e2j_1 = _unary__edvuaz + 1 | 0;
2059
- sink.n2h(tmp.readInt8(_unary__edvuaz));
2056
+ var tmp = ensureNotNull(this.b2j_1);
2057
+ var _unary__edvuaz = this.d2j_1;
2058
+ this.d2j_1 = _unary__edvuaz + 1 | 0;
2059
+ sink.m2h(tmp.readInt8(_unary__edvuaz));
2060
2060
  }
2061
2061
  while (inductionVariable.j1(bytesToRead) < 0);
2062
2062
  return bytesToRead;
@@ -2070,31 +2070,31 @@ function open_0($this, path, append) {
2070
2070
  else {
2071
2071
  // Inline function 'kotlin.also' call
2072
2072
  // Inline function 'kotlinx.io.files.FileSink.open.<anonymous>' call
2073
- throw IOException_init_$Create$_1('Failed to open a file ' + path.z2i_1 + '.', tmp5_safe_receiver);
2073
+ throw IOException_init_$Create$_1('Failed to open a file ' + path.y2i_1 + '.', tmp5_safe_receiver);
2074
2074
  }
2075
2075
  if (fd._v < 0)
2076
- throw IOException_init_$Create$_0('Failed to open a file ' + path.z2i_1 + '.');
2076
+ throw IOException_init_$Create$_0('Failed to open a file ' + path.y2i_1 + '.');
2077
2077
  return fd._v;
2078
2078
  }
2079
2079
  function FileSink$open$lambda($fd, $path, $flags) {
2080
2080
  return function () {
2081
- $fd._v = get_fs().openSync($path.z2i_1, $flags);
2081
+ $fd._v = get_fs().openSync($path.y2i_1, $flags);
2082
2082
  return Unit_instance;
2083
2083
  };
2084
2084
  }
2085
2085
  function FileSink$write$lambda(this$0, $buf) {
2086
2086
  return function () {
2087
- get_fs().writeFileSync(this$0.h2j_1, $buf);
2087
+ get_fs().writeFileSync(this$0.g2j_1, $buf);
2088
2088
  return Unit_instance;
2089
2089
  };
2090
2090
  }
2091
2091
  function FileSink(path, append) {
2092
- this.g2j_1 = false;
2093
- this.h2j_1 = open_0(this, path, append);
2092
+ this.f2j_1 = false;
2093
+ this.g2j_1 = open_0(this, path, append);
2094
2094
  }
2095
- protoOf(FileSink).c2h = function (source, byteCount) {
2095
+ protoOf(FileSink).b2h = function (source, byteCount) {
2096
2096
  // Inline function 'kotlin.check' call
2097
- if (!!this.g2j_1) {
2097
+ if (!!this.f2j_1) {
2098
2098
  // Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
2099
2099
  var message = 'Sink is closed.';
2100
2100
  throw IllegalStateException_init_$Create$(toString(message));
@@ -2109,16 +2109,16 @@ protoOf(FileSink).c2h = function (source, byteCount) {
2109
2109
  var segmentBytes = 0;
2110
2110
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead' call
2111
2111
  // Inline function 'kotlin.require' call
2112
- if (!!source.l2g()) {
2112
+ if (!!source.k2g()) {
2113
2113
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead.<anonymous>' call
2114
2114
  var message_0 = 'Buffer is empty';
2115
2115
  throw IllegalArgumentException_init_$Create$(toString(message_0));
2116
2116
  }
2117
- var head = ensureNotNull(source.h2g_1);
2118
- var tmp5 = head.f2i(true);
2119
- var tmp6 = head.r2g_1;
2117
+ var head = ensureNotNull(source.g2g_1);
2118
+ var tmp5 = head.e2i(true);
2119
+ var tmp6 = head.q2g_1;
2120
2120
  // Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
2121
- segmentBytes = head.s2g_1 - tmp6 | 0;
2121
+ segmentBytes = head.r2g_1 - tmp6 | 0;
2122
2122
  var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
2123
2123
  var inductionVariable = 0;
2124
2124
  var last = segmentBytes;
@@ -2143,7 +2143,7 @@ protoOf(FileSink).c2h = function (source, byteCount) {
2143
2143
  throw IllegalStateException_init_$Create$('Returned negative read bytes count');
2144
2144
  if (bytesRead > head.j())
2145
2145
  throw IllegalStateException_init_$Create$('Returned too many bytes');
2146
- source.x2g(toLong(bytesRead));
2146
+ source.w2g(toLong(bytesRead));
2147
2147
  }
2148
2148
  var tmp8 = remainingBytes;
2149
2149
  // Inline function 'kotlin.Long.minus' call
@@ -2180,7 +2180,7 @@ function _init_properties_PathsNodeJs_kt__bvvvsp() {
2180
2180
  }
2181
2181
  }
2182
2182
  //region block: post-declaration
2183
- protoOf(SystemFileSystemImpl).t2i = sink$default;
2183
+ protoOf(SystemFileSystemImpl).s2i = sink$default;
2184
2184
  //endregion
2185
2185
  //region block: init
2186
2186
  Companion_instance = new Companion();