@flock/wirespec 0.15.2 → 0.15.3

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 (47) hide show
  1. package/arrow-arrow-atomic.mjs +12 -12
  2. package/arrow-arrow-atomic.mjs.map +1 -1
  3. package/arrow-arrow-core.mjs +92 -92
  4. package/arrow-arrow-core.mjs.map +1 -1
  5. package/clikt-clikt-mordant.mjs +314 -0
  6. package/clikt-clikt-mordant.mjs.map +1 -0
  7. package/clikt-clikt.mjs +3487 -3071
  8. package/clikt-clikt.mjs.map +1 -1
  9. package/colormath-root-colormath.mjs +459 -529
  10. package/colormath-root-colormath.mjs.map +1 -1
  11. package/kotlin-kotlin-stdlib.mjs +2425 -2245
  12. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  13. package/kotlin-openapi-bindings.mjs +4978 -4978
  14. package/kotlin-openapi-bindings.mjs.map +1 -1
  15. package/kotlin-rgxgen.mjs +1829 -1829
  16. package/kotlin-rgxgen.mjs.map +1 -1
  17. package/kotlinx-io-kotlinx-io-core.mjs +490 -434
  18. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  19. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1778 -1778
  20. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  21. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1463 -1460
  22. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  23. package/mordant-mordant-omnibus.mjs +4 -0
  24. package/mordant-mordant-omnibus.mjs.map +1 -0
  25. package/mordant-mordant.mjs +1821 -3396
  26. package/mordant-mordant.mjs.map +1 -1
  27. package/package.json +1 -1
  28. package/wirespec-src-compiler-core.mjs +1908 -1884
  29. package/wirespec-src-compiler-core.mjs.map +1 -1
  30. package/wirespec-src-compiler-lib.mjs +425 -425
  31. package/wirespec-src-compiler-lib.mjs.map +1 -1
  32. package/wirespec-src-converter-avro.mjs +509 -513
  33. package/wirespec-src-converter-avro.mjs.map +1 -1
  34. package/wirespec-src-converter-common.mjs +4 -0
  35. package/wirespec-src-converter-common.mjs.map +1 -0
  36. package/wirespec-src-converter-openapi.mjs +709 -717
  37. package/wirespec-src-converter-openapi.mjs.map +1 -1
  38. package/wirespec-src-plugin-arguments.mjs +201 -238
  39. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  40. package/wirespec-src-plugin-cli.mjs +232 -130
  41. package/wirespec-src-plugin-cli.mjs.map +1 -1
  42. package/wirespec-src-plugin-npm.mjs +35 -35
  43. package/wirespec-src-plugin-npm.mjs.map +1 -1
  44. package/wirespec-src-tools-generator.mjs +25 -25
  45. package/wirespec-src-tools-generator.mjs.map +1 -1
  46. package/markdown.mjs +0 -6753
  47. package/markdown.mjs.map +0 -1
@@ -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.q2i(path, append) : $super.q2i.call(this, path, append);
60
+ return $super === VOID ? this.r2j(path, append) : $super.r2j.call(this, path, append);
61
61
  }
62
62
  initMetadataForInterface(FileSystem, 'FileSystem');
63
63
  initMetadataForClass(SystemFileSystemImpl, 'SystemFileSystemImpl', VOID, VOID, [FileSystem]);
@@ -82,16 +82,16 @@ function get_HEX_DIGIT_CHARS() {
82
82
  var HEX_DIGIT_CHARS;
83
83
  function checkBounds(size, startIndex, endIndex) {
84
84
  _init_properties__Util_kt__g8tcl9();
85
- if (startIndex.j1(new Long(0, 0)) < 0 || endIndex.j1(size) > 0) {
85
+ if (startIndex.d1(new Long(0, 0)) < 0 || endIndex.d1(size) > 0) {
86
86
  throw IndexOutOfBoundsException_init_$Create$('startIndex (' + startIndex.toString() + ') and endIndex (' + endIndex.toString() + ') are not within the range [0..size(' + size.toString() + '))');
87
87
  }
88
- if (startIndex.j1(endIndex) > 0) {
88
+ if (startIndex.d1(endIndex) > 0) {
89
89
  throw IllegalArgumentException_init_$Create$('startIndex (' + startIndex.toString() + ') > endIndex (' + endIndex.toString() + ')');
90
90
  }
91
91
  }
92
92
  function checkOffsetAndCount(size, offset, byteCount) {
93
93
  _init_properties__Util_kt__g8tcl9();
94
- if (offset.j1(new Long(0, 0)) < 0 || offset.j1(size) > 0 || size.a3(offset).j1(byteCount) < 0 || byteCount.j1(new Long(0, 0)) < 0) {
94
+ if (offset.d1(new Long(0, 0)) < 0 || offset.d1(size) > 0 || size.z2(offset).d1(byteCount) < 0 || byteCount.d1(new Long(0, 0)) < 0) {
95
95
  throw IllegalArgumentException_init_$Create$('offset (' + offset.toString() + ') and byteCount (' + byteCount.toString() + ') are not within the range [0..size(' + size.toString() + '))');
96
96
  }
97
97
  }
@@ -104,66 +104,69 @@ function _init_properties__Util_kt__g8tcl9() {
104
104
  }
105
105
  }
106
106
  function Buffer() {
107
- this.f2g_1 = null;
108
- this.g2g_1 = null;
109
- this.h2g_1 = new Long(0, 0);
107
+ this.g2h_1 = null;
108
+ this.h2h_1 = null;
109
+ this.i2h_1 = new Long(0, 0);
110
110
  }
111
111
  protoOf(Buffer).j = function () {
112
- return this.h2g_1;
112
+ return this.i2h_1;
113
113
  };
114
- protoOf(Buffer).i2g = function () {
114
+ protoOf(Buffer).j2h = function () {
115
115
  return this;
116
116
  };
117
- protoOf(Buffer).j2g = function () {
117
+ protoOf(Buffer).k2h = function () {
118
118
  return this.j().equals(new Long(0, 0));
119
119
  };
120
- protoOf(Buffer).k2g = function (byteCount) {
120
+ protoOf(Buffer).l2h = function (byteCount) {
121
121
  // Inline function 'kotlin.require' call
122
- if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
122
+ if (!(byteCount.d1(new Long(0, 0)) >= 0)) {
123
123
  // Inline function 'kotlinx.io.Buffer.require.<anonymous>' call
124
124
  var message = 'byteCount: ' + byteCount.toString();
125
125
  throw IllegalArgumentException_init_$Create$(toString(message));
126
126
  }
127
- if (this.j().j1(byteCount) < 0) {
127
+ if (this.j().d1(byteCount) < 0) {
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).l2g = function (byteCount) {
131
+ protoOf(Buffer).m2h = function (byteCount) {
132
132
  // Inline function 'kotlin.require' call
133
- if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
133
+ if (!(byteCount.d1(new Long(0, 0)) >= 0)) {
134
134
  // Inline function 'kotlinx.io.Buffer.request.<anonymous>' call
135
135
  var message = 'byteCount: ' + byteCount.toString() + ' < 0';
136
136
  throw IllegalArgumentException_init_$Create$(toString(message));
137
137
  }
138
- return this.j().j1(byteCount) >= 0;
138
+ return this.j().d1(byteCount) >= 0;
139
139
  };
140
- protoOf(Buffer).m2g = function () {
140
+ protoOf(Buffer).n2h = function () {
141
141
  return Unit_instance;
142
142
  };
143
- protoOf(Buffer).r8 = function () {
143
+ protoOf(Buffer).f9 = function () {
144
144
  return Unit_instance;
145
145
  };
146
- protoOf(Buffer).n2g = function () {
146
+ protoOf(Buffer).o2h = 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.g2g_1);
151
- if (tail.q2g_1 < 8192 && tail.s2g_1) {
152
- result = result.a3(toLong(tail.q2g_1 - tail.p2g_1 | 0));
150
+ var tail = ensureNotNull(this.h2h_1);
151
+ if (tail.r2h_1 < 8192 && tail.t2h_1) {
152
+ result = result.z2(toLong(tail.r2h_1 - tail.q2h_1 | 0));
153
153
  }
154
154
  return result;
155
155
  };
156
- protoOf(Buffer).v2g = function (byteCount) {
156
+ protoOf(Buffer).h2 = function () {
157
+ return this.w2h(this.j());
158
+ };
159
+ protoOf(Buffer).w2h = function (byteCount) {
157
160
  // Inline function 'kotlinx.io.checkByteCount' call
158
161
  // Inline function 'kotlin.require' call
159
- if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
162
+ if (!(byteCount.d1(new Long(0, 0)) >= 0)) {
160
163
  // Inline function 'kotlinx.io.checkByteCount.<anonymous>' call
161
164
  var message = 'byteCount (' + byteCount.toString() + ') < 0';
162
165
  throw IllegalArgumentException_init_$Create$(toString(message));
163
166
  }
164
167
  var remainingByteCount = byteCount;
165
- while (remainingByteCount.j1(new Long(0, 0)) > 0) {
166
- var tmp0_elvis_lhs = this.f2g_1;
168
+ while (remainingByteCount.d1(new Long(0, 0)) > 0) {
169
+ var tmp0_elvis_lhs = this.g2h_1;
167
170
  var tmp;
168
171
  if (tmp0_elvis_lhs == null) {
169
172
  throw EOFException_init_$Create$_0('Buffer exhausted before skipping ' + byteCount.toString() + ' bytes.');
@@ -173,23 +176,23 @@ protoOf(Buffer).v2g = function (byteCount) {
173
176
  var head = tmp;
174
177
  var tmp1 = remainingByteCount;
175
178
  // Inline function 'kotlinx.io.minOf' call
176
- var b = head.q2g_1 - head.p2g_1 | 0;
179
+ var b = head.r2h_1 - head.q2h_1 | 0;
177
180
  // Inline function 'kotlin.comparisons.minOf' call
178
181
  var b_0 = toLong(b);
179
- var toSkip = (tmp1.j1(b_0) <= 0 ? tmp1 : b_0).l1();
180
- this.h2g_1 = this.h2g_1.a3(toLong(toSkip));
181
- remainingByteCount = remainingByteCount.a3(toLong(toSkip));
182
- head.p2g_1 = head.p2g_1 + toSkip | 0;
183
- if (head.p2g_1 === head.q2g_1) {
184
- this.w2g();
182
+ var toSkip = (tmp1.d1(b_0) <= 0 ? tmp1 : b_0).f1();
183
+ this.i2h_1 = this.i2h_1.z2(toLong(toSkip));
184
+ remainingByteCount = remainingByteCount.z2(toLong(toSkip));
185
+ head.q2h_1 = head.q2h_1 + toSkip | 0;
186
+ if (head.q2h_1 === head.r2h_1) {
187
+ this.x2h();
185
188
  }
186
189
  }
187
190
  };
188
- protoOf(Buffer).x2g = function (sink, startIndex, endIndex) {
191
+ protoOf(Buffer).y2h = function (sink, startIndex, endIndex) {
189
192
  // Inline function 'kotlinx.io.checkBounds' call
190
193
  var size = sink.length;
191
194
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
192
- var tmp0_elvis_lhs = this.f2g_1;
195
+ var tmp0_elvis_lhs = this.g2h_1;
193
196
  var tmp;
194
197
  if (tmp0_elvis_lhs == null) {
195
198
  return -1;
@@ -201,107 +204,110 @@ protoOf(Buffer).x2g = function (sink, startIndex, endIndex) {
201
204
  // Inline function 'kotlin.comparisons.minOf' call
202
205
  var b = s.j();
203
206
  var toCopy = Math.min(tmp3, b);
204
- s.y2g(sink, startIndex, startIndex + toCopy | 0);
205
- this.h2g_1 = this.h2g_1.a3(toLong(toCopy));
207
+ s.z2h(sink, startIndex, startIndex + toCopy | 0);
208
+ this.i2h_1 = this.i2h_1.z2(toLong(toCopy));
206
209
  if (isEmpty(s)) {
207
- this.w2g();
210
+ this.x2h();
208
211
  }
209
212
  return toCopy;
210
213
  };
211
- protoOf(Buffer).z2g = function (sink, byteCount) {
214
+ protoOf(Buffer).a2i = function (sink, byteCount) {
212
215
  // Inline function 'kotlinx.io.checkByteCount' call
213
216
  // Inline function 'kotlin.require' call
214
- if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
217
+ if (!(byteCount.d1(new Long(0, 0)) >= 0)) {
215
218
  // Inline function 'kotlinx.io.checkByteCount.<anonymous>' call
216
219
  var message = 'byteCount (' + byteCount.toString() + ') < 0';
217
220
  throw IllegalArgumentException_init_$Create$(toString(message));
218
221
  }
219
222
  if (this.j().equals(new Long(0, 0)))
220
223
  return new Long(-1, -1);
221
- var bytesWritten = byteCount.j1(this.j()) > 0 ? this.j() : byteCount;
222
- sink.a2h(this, bytesWritten);
224
+ var bytesWritten = byteCount.d1(this.j()) > 0 ? this.j() : byteCount;
225
+ sink.b2i(this, bytesWritten);
223
226
  return bytesWritten;
224
227
  };
225
- protoOf(Buffer).b2h = function (minimumCapacity) {
228
+ protoOf(Buffer).c2i = function (minimumCapacity) {
226
229
  // Inline function 'kotlin.require' call
227
230
  if (!(minimumCapacity >= 1 && minimumCapacity <= 8192)) {
228
231
  // Inline function 'kotlinx.io.Buffer.writableSegment.<anonymous>' call
229
232
  var message = 'unexpected capacity (' + minimumCapacity + '), should be in range [1, 8192]';
230
233
  throw IllegalArgumentException_init_$Create$(toString(message));
231
234
  }
232
- if (this.g2g_1 == null) {
233
- var result = SegmentPool_instance.e2h();
234
- this.f2g_1 = result;
235
- this.g2g_1 = result;
235
+ if (this.h2h_1 == null) {
236
+ var result = SegmentPool_instance.f2i();
237
+ this.g2h_1 = result;
238
+ this.h2h_1 = result;
236
239
  return result;
237
240
  }
238
- var t = ensureNotNull(this.g2g_1);
239
- if ((t.q2g_1 + minimumCapacity | 0) > 8192 || !t.s2g_1) {
240
- var newTail = t.f2h(SegmentPool_instance.e2h());
241
- this.g2g_1 = newTail;
241
+ var t = ensureNotNull(this.h2h_1);
242
+ if ((t.r2h_1 + minimumCapacity | 0) > 8192 || !t.t2h_1) {
243
+ var newTail = t.g2i(SegmentPool_instance.f2i());
244
+ this.h2h_1 = newTail;
242
245
  return newTail;
243
246
  }
244
247
  return t;
245
248
  };
246
- protoOf(Buffer).a2h = function (source, byteCount) {
249
+ protoOf(Buffer).b2i = function (source, byteCount) {
247
250
  // Inline function 'kotlin.require' call
248
251
  if (!!(source === this)) {
249
252
  // Inline function 'kotlinx.io.Buffer.write.<anonymous>' call
250
253
  var message = 'source == this';
251
254
  throw IllegalArgumentException_init_$Create$(toString(message));
252
255
  }
253
- checkOffsetAndCount(source.h2g_1, new Long(0, 0), byteCount);
256
+ checkOffsetAndCount(source.i2h_1, new Long(0, 0), byteCount);
254
257
  var remainingByteCount = byteCount;
255
- while (remainingByteCount.j1(new Long(0, 0)) > 0) {
256
- if (remainingByteCount.j1(toLong(ensureNotNull(source.f2g_1).j())) < 0) {
257
- var tail = this.g2g_1;
258
+ while (remainingByteCount.d1(new Long(0, 0)) > 0) {
259
+ if (remainingByteCount.d1(toLong(ensureNotNull(source.g2h_1).j())) < 0) {
260
+ var tail = this.h2h_1;
258
261
  var tmp;
259
- if (!(tail == null) && tail.s2g_1) {
262
+ if (!(tail == null) && tail.t2h_1) {
260
263
  var tmp1 = remainingByteCount;
261
264
  // Inline function 'kotlin.Long.plus' call
262
- var other = tail.q2g_1;
263
- var tmp3 = tmp1.z2(toLong(other));
265
+ var other = tail.r2h_1;
266
+ var tmp3 = tmp1.y2(toLong(other));
264
267
  // Inline function 'kotlin.Long.minus' call
265
- var other_0 = tail.g2h() ? 0 : tail.p2g_1;
266
- tmp = tmp3.a3(toLong(other_0)).j1(new Long(8192, 0)) <= 0;
268
+ var other_0 = tail.h2i() ? 0 : tail.q2h_1;
269
+ tmp = tmp3.z2(toLong(other_0)).d1(new Long(8192, 0)) <= 0;
267
270
  } else {
268
271
  tmp = false;
269
272
  }
270
273
  if (tmp) {
271
- ensureNotNull(source.f2g_1).i2h(tail, remainingByteCount.l1());
272
- source.h2g_1 = source.h2g_1.a3(remainingByteCount);
273
- this.h2g_1 = this.h2g_1.z2(remainingByteCount);
274
+ ensureNotNull(source.g2h_1).j2i(tail, remainingByteCount.f1());
275
+ source.i2h_1 = source.i2h_1.z2(remainingByteCount);
276
+ this.i2h_1 = this.i2h_1.y2(remainingByteCount);
274
277
  return Unit_instance;
275
278
  } else {
276
- source.f2g_1 = ensureNotNull(source.f2g_1).h2h(remainingByteCount.l1());
279
+ source.g2h_1 = ensureNotNull(source.g2h_1).i2i(remainingByteCount.f1());
277
280
  }
278
281
  }
279
- var segmentToMove = ensureNotNull(source.f2g_1);
282
+ var segmentToMove = ensureNotNull(source.g2h_1);
280
283
  var movedByteCount = toLong(segmentToMove.j());
281
- source.f2g_1 = segmentToMove.j2h();
282
- if (source.f2g_1 == null) {
283
- source.g2g_1 = null;
284
+ source.g2h_1 = segmentToMove.k2i();
285
+ if (source.g2h_1 == null) {
286
+ source.h2h_1 = null;
284
287
  }
285
288
  // Inline function 'kotlinx.io.Buffer.pushSegment' call
286
- if (this.f2g_1 == null) {
287
- this.f2g_1 = segmentToMove;
288
- this.g2g_1 = segmentToMove;
289
+ if (this.g2h_1 == null) {
290
+ this.g2h_1 = segmentToMove;
291
+ this.h2h_1 = segmentToMove;
289
292
  } else if (true) {
290
- this.g2g_1 = ensureNotNull(this.g2g_1).f2h(segmentToMove).k2h();
291
- if (ensureNotNull(this.g2g_1).u2g_1 == null) {
292
- this.f2g_1 = this.g2g_1;
293
+ this.h2h_1 = ensureNotNull(this.h2h_1).g2i(segmentToMove).l2i();
294
+ if (ensureNotNull(this.h2h_1).v2h_1 == null) {
295
+ this.g2h_1 = this.h2h_1;
293
296
  }
294
297
  } else {
295
- this.g2g_1 = ensureNotNull(this.g2g_1).f2h(segmentToMove);
298
+ this.h2h_1 = ensureNotNull(this.h2h_1).g2i(segmentToMove);
296
299
  }
297
- source.h2g_1 = source.h2g_1.a3(movedByteCount);
298
- this.h2g_1 = this.h2g_1.z2(movedByteCount);
299
- remainingByteCount = remainingByteCount.a3(movedByteCount);
300
+ source.i2h_1 = source.i2h_1.z2(movedByteCount);
301
+ this.i2h_1 = this.i2h_1.y2(movedByteCount);
302
+ remainingByteCount = remainingByteCount.z2(movedByteCount);
300
303
  }
301
304
  };
302
- protoOf(Buffer).l2h = function (byte) {
303
- this.b2h(1).m2h(byte);
304
- this.h2g_1 = this.h2g_1.z2(new Long(1, 0));
305
+ protoOf(Buffer).m2i = function (byte) {
306
+ this.c2i(1).n2i(byte);
307
+ this.i2h_1 = this.i2h_1.y2(new Long(1, 0));
308
+ };
309
+ protoOf(Buffer).g4 = function () {
310
+ return Unit_instance;
305
311
  };
306
312
  protoOf(Buffer).toString = function () {
307
313
  if (this.j().equals(new Long(0, 0)))
@@ -311,11 +317,11 @@ protoOf(Buffer).toString = function () {
311
317
  var b = this.j();
312
318
  // Inline function 'kotlin.comparisons.minOf' call
313
319
  var a = toLong(maxPrintableBytes);
314
- var len = (a.j1(b) <= 0 ? a : b).l1();
315
- var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.j().j1(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
320
+ var len = (a.d1(b) <= 0 ? a : b).f1();
321
+ var builder = StringBuilder_init_$Create$(imul(len, 2) + (this.j().d1(toLong(maxPrintableBytes)) > 0 ? 1 : 0) | 0);
316
322
  var bytesWritten = 0;
317
323
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
318
- var curr = this.f2g_1;
324
+ var curr = this.g2h_1;
319
325
  while (!(curr == null)) {
320
326
  var tmp4 = get_SegmentReadContextImpl();
321
327
  // Inline function 'kotlinx.io.Buffer.toString.<anonymous>' call
@@ -324,47 +330,47 @@ protoOf(Buffer).toString = function () {
324
330
  while (bytesWritten < len && idx < segment.j()) {
325
331
  var _unary__edvuaz = idx;
326
332
  idx = _unary__edvuaz + 1 | 0;
327
- var b_0 = tmp4.n2h(segment, _unary__edvuaz);
333
+ var b_0 = tmp4.o2i(segment, _unary__edvuaz);
328
334
  bytesWritten = bytesWritten + 1 | 0;
329
335
  var tmp = get_HEX_DIGIT_CHARS();
330
336
  // Inline function 'kotlinx.io.shr' call
331
337
  var tmp$ret$2 = b_0 >> 4;
332
- var tmp_0 = builder.c8(tmp[tmp$ret$2 & 15]);
338
+ var tmp_0 = builder.o8(tmp[tmp$ret$2 & 15]);
333
339
  var tmp_1 = get_HEX_DIGIT_CHARS();
334
340
  // Inline function 'kotlinx.io.and' call
335
341
  var tmp$ret$3 = b_0 & 15;
336
- tmp_0.c8(tmp_1[tmp$ret$3]);
342
+ tmp_0.o8(tmp_1[tmp$ret$3]);
337
343
  }
338
- curr = curr.t2g_1;
344
+ curr = curr.u2h_1;
339
345
  }
340
- if (this.j().j1(toLong(maxPrintableBytes)) > 0) {
341
- builder.c8(_Char___init__impl__6a9atx(8230));
346
+ if (this.j().d1(toLong(maxPrintableBytes)) > 0) {
347
+ builder.o8(_Char___init__impl__6a9atx(8230));
342
348
  }
343
349
  return 'Buffer(size=' + this.j().toString() + ' hex=' + builder.toString() + ')';
344
350
  };
345
- protoOf(Buffer).w2g = function () {
346
- var oldHead = ensureNotNull(this.f2g_1);
347
- var nextHead = oldHead.t2g_1;
348
- this.f2g_1 = nextHead;
351
+ protoOf(Buffer).x2h = function () {
352
+ var oldHead = ensureNotNull(this.g2h_1);
353
+ var nextHead = oldHead.u2h_1;
354
+ this.g2h_1 = nextHead;
349
355
  if (nextHead == null) {
350
- this.g2g_1 = null;
356
+ this.h2h_1 = null;
351
357
  } else {
352
- nextHead.u2g_1 = null;
358
+ nextHead.v2h_1 = null;
353
359
  }
354
- oldHead.t2g_1 = null;
355
- SegmentPool_instance.o2h(oldHead);
360
+ oldHead.u2h_1 = null;
361
+ SegmentPool_instance.p2i(oldHead);
356
362
  };
357
- protoOf(Buffer).p2h = function () {
358
- var oldTail = ensureNotNull(this.g2g_1);
359
- var newTail = oldTail.u2g_1;
360
- this.g2g_1 = newTail;
363
+ protoOf(Buffer).q2i = function () {
364
+ var oldTail = ensureNotNull(this.h2h_1);
365
+ var newTail = oldTail.v2h_1;
366
+ this.h2h_1 = newTail;
361
367
  if (newTail == null) {
362
- this.f2g_1 = null;
368
+ this.g2h_1 = null;
363
369
  } else {
364
- newTail.t2g_1 = null;
370
+ newTail.u2h_1 = null;
365
371
  }
366
- oldTail.u2g_1 = null;
367
- SegmentPool_instance.o2h(oldTail);
372
+ oldTail.v2h_1 = null;
373
+ SegmentPool_instance.p2i(oldTail);
368
374
  };
369
375
  function buffered(_this__u8e3s4) {
370
376
  return new RealSource(_this__u8e3s4);
@@ -373,140 +379,178 @@ function buffered_0(_this__u8e3s4) {
373
379
  return new RealSink(_this__u8e3s4);
374
380
  }
375
381
  function RealSink(sink) {
376
- this.q2h_1 = sink;
377
- this.r2h_1 = false;
378
- this.s2h_1 = new Buffer();
382
+ this.r2i_1 = sink;
383
+ this.s2i_1 = false;
384
+ this.t2i_1 = new Buffer();
379
385
  }
380
- protoOf(RealSink).i2g = function () {
381
- return this.s2h_1;
386
+ protoOf(RealSink).j2h = function () {
387
+ return this.t2i_1;
382
388
  };
383
- protoOf(RealSink).a2h = function (source, byteCount) {
389
+ protoOf(RealSink).b2i = function (source, byteCount) {
384
390
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
385
391
  // Inline function 'kotlin.check' call
386
- if (!!this.r2h_1) {
392
+ if (!!this.s2i_1) {
387
393
  // Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
388
394
  var message = 'Sink is closed.';
389
395
  throw IllegalStateException_init_$Create$(toString(message));
390
396
  }
391
397
  // Inline function 'kotlin.require' call
392
- if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
398
+ if (!(byteCount.d1(new Long(0, 0)) >= 0)) {
393
399
  // Inline function 'kotlinx.io.RealSink.write.<anonymous>' call
394
400
  var message_0 = 'byteCount: ' + byteCount.toString();
395
401
  throw IllegalArgumentException_init_$Create$(toString(message_0));
396
402
  }
397
- this.s2h_1.a2h(source, byteCount);
398
- this.m2g();
403
+ this.t2i_1.b2i(source, byteCount);
404
+ this.n2h();
399
405
  };
400
- protoOf(RealSink).m2g = function () {
406
+ protoOf(RealSink).n2h = function () {
401
407
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
402
408
  // Inline function 'kotlin.check' call
403
- if (!!this.r2h_1) {
409
+ if (!!this.s2i_1) {
404
410
  // Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
405
411
  var message = 'Sink is closed.';
406
412
  throw IllegalStateException_init_$Create$(toString(message));
407
413
  }
408
- var byteCount = this.s2h_1.n2g();
409
- if (byteCount.j1(new Long(0, 0)) > 0) {
410
- this.q2h_1.a2h(this.s2h_1, byteCount);
414
+ var byteCount = this.t2i_1.o2h();
415
+ if (byteCount.d1(new Long(0, 0)) > 0) {
416
+ this.r2i_1.b2i(this.t2i_1, byteCount);
411
417
  }
412
418
  };
413
- protoOf(RealSink).r8 = function () {
419
+ protoOf(RealSink).f9 = function () {
414
420
  // Inline function 'kotlinx.io.RealSink.checkNotClosed' call
415
421
  // Inline function 'kotlin.check' call
416
- if (!!this.r2h_1) {
422
+ if (!!this.s2i_1) {
417
423
  // Inline function 'kotlinx.io.RealSink.checkNotClosed.<anonymous>' call
418
424
  var message = 'Sink is closed.';
419
425
  throw IllegalStateException_init_$Create$(toString(message));
420
426
  }
421
- if (this.s2h_1.j().j1(new Long(0, 0)) > 0) {
422
- this.q2h_1.a2h(this.s2h_1, this.s2h_1.j());
427
+ if (this.t2i_1.j().d1(new Long(0, 0)) > 0) {
428
+ this.r2i_1.b2i(this.t2i_1, this.t2i_1.j());
423
429
  }
424
- this.q2h_1.r8();
430
+ this.r2i_1.f9();
431
+ };
432
+ protoOf(RealSink).g4 = function () {
433
+ if (this.s2i_1)
434
+ return Unit_instance;
435
+ var thrown = null;
436
+ try {
437
+ if (this.t2i_1.j().d1(new Long(0, 0)) > 0) {
438
+ this.r2i_1.b2i(this.t2i_1, this.t2i_1.j());
439
+ }
440
+ } catch ($p) {
441
+ if ($p instanceof Error) {
442
+ var e = $p;
443
+ thrown = e;
444
+ } else {
445
+ throw $p;
446
+ }
447
+ }
448
+ try {
449
+ this.r2i_1.g4();
450
+ } catch ($p) {
451
+ if ($p instanceof Error) {
452
+ var e_0 = $p;
453
+ if (thrown == null)
454
+ thrown = e_0;
455
+ } else {
456
+ throw $p;
457
+ }
458
+ }
459
+ this.s2i_1 = true;
460
+ if (!(thrown == null))
461
+ throw thrown;
425
462
  };
426
463
  protoOf(RealSink).toString = function () {
427
- return 'buffered(' + toString(this.q2h_1) + ')';
464
+ return 'buffered(' + toString(this.r2i_1) + ')';
428
465
  };
429
466
  function RealSource(source) {
430
- this.t2h_1 = source;
431
- this.u2h_1 = false;
432
- this.v2h_1 = new Buffer();
467
+ this.u2i_1 = source;
468
+ this.v2i_1 = false;
469
+ this.w2i_1 = new Buffer();
433
470
  }
434
- protoOf(RealSource).i2g = function () {
435
- return this.v2h_1;
471
+ protoOf(RealSource).j2h = function () {
472
+ return this.w2i_1;
436
473
  };
437
- protoOf(RealSource).z2g = function (sink, byteCount) {
474
+ protoOf(RealSource).a2i = function (sink, byteCount) {
438
475
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
439
476
  // Inline function 'kotlin.check' call
440
- if (!!this.u2h_1) {
477
+ if (!!this.v2i_1) {
441
478
  // Inline function 'kotlinx.io.RealSource.checkNotClosed.<anonymous>' call
442
479
  var message = 'Source is closed.';
443
480
  throw IllegalStateException_init_$Create$(toString(message));
444
481
  }
445
482
  // Inline function 'kotlin.require' call
446
- if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
483
+ if (!(byteCount.d1(new Long(0, 0)) >= 0)) {
447
484
  // Inline function 'kotlinx.io.RealSource.readAtMostTo.<anonymous>' call
448
485
  var message_0 = 'byteCount: ' + byteCount.toString();
449
486
  throw IllegalArgumentException_init_$Create$(toString(message_0));
450
487
  }
451
- if (this.v2h_1.j().equals(new Long(0, 0))) {
452
- var read = this.t2h_1.z2g(this.v2h_1, new Long(8192, 0));
488
+ if (this.w2i_1.j().equals(new Long(0, 0))) {
489
+ var read = this.u2i_1.a2i(this.w2i_1, new Long(8192, 0));
453
490
  if (read.equals(new Long(-1, -1)))
454
491
  return new Long(-1, -1);
455
492
  }
456
493
  // Inline function 'kotlin.comparisons.minOf' call
457
- var b = this.v2h_1.j();
458
- var toRead = byteCount.j1(b) <= 0 ? byteCount : b;
459
- return this.v2h_1.z2g(sink, toRead);
494
+ var b = this.w2i_1.j();
495
+ var toRead = byteCount.d1(b) <= 0 ? byteCount : b;
496
+ return this.w2i_1.a2i(sink, toRead);
460
497
  };
461
- protoOf(RealSource).k2g = function (byteCount) {
462
- if (!this.l2g(byteCount))
498
+ protoOf(RealSource).l2h = function (byteCount) {
499
+ if (!this.m2h(byteCount))
463
500
  throw EOFException_init_$Create$_0("Source doesn't contain required number of bytes (" + byteCount.toString() + ').');
464
501
  };
465
- protoOf(RealSource).l2g = function (byteCount) {
502
+ protoOf(RealSource).m2h = function (byteCount) {
466
503
  // Inline function 'kotlinx.io.RealSource.checkNotClosed' call
467
504
  // Inline function 'kotlin.check' call
468
- if (!!this.u2h_1) {
505
+ if (!!this.v2i_1) {
469
506
  // Inline function 'kotlinx.io.RealSource.checkNotClosed.<anonymous>' call
470
507
  var message = 'Source is closed.';
471
508
  throw IllegalStateException_init_$Create$(toString(message));
472
509
  }
473
510
  // Inline function 'kotlin.require' call
474
- if (!(byteCount.j1(new Long(0, 0)) >= 0)) {
511
+ if (!(byteCount.d1(new Long(0, 0)) >= 0)) {
475
512
  // Inline function 'kotlinx.io.RealSource.request.<anonymous>' call
476
513
  var message_0 = 'byteCount: ' + byteCount.toString();
477
514
  throw IllegalArgumentException_init_$Create$(toString(message_0));
478
515
  }
479
- while (this.v2h_1.j().j1(byteCount) < 0) {
480
- if (this.t2h_1.z2g(this.v2h_1, new Long(8192, 0)).equals(new Long(-1, -1)))
516
+ while (this.w2i_1.j().d1(byteCount) < 0) {
517
+ if (this.u2i_1.a2i(this.w2i_1, new Long(8192, 0)).equals(new Long(-1, -1)))
481
518
  return false;
482
519
  }
483
520
  return true;
484
521
  };
485
- protoOf(RealSource).x2g = function (sink, startIndex, endIndex) {
522
+ protoOf(RealSource).y2h = function (sink, startIndex, endIndex) {
486
523
  // Inline function 'kotlinx.io.checkBounds' call
487
524
  var size = sink.length;
488
525
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
489
- if (this.v2h_1.j().equals(new Long(0, 0))) {
490
- var read = this.t2h_1.z2g(this.v2h_1, new Long(8192, 0));
526
+ if (this.w2i_1.j().equals(new Long(0, 0))) {
527
+ var read = this.u2i_1.a2i(this.w2i_1, new Long(8192, 0));
491
528
  if (read.equals(new Long(-1, -1)))
492
529
  return -1;
493
530
  }
494
531
  var tmp3 = endIndex - startIndex | 0;
495
532
  // Inline function 'kotlinx.io.minOf' call
496
- var b = this.v2h_1.j();
533
+ var b = this.w2i_1.j();
497
534
  // Inline function 'kotlin.comparisons.minOf' call
498
535
  var a = toLong(tmp3);
499
- var toRead = (a.j1(b) <= 0 ? a : b).l1();
500
- return this.v2h_1.x2g(sink, startIndex, startIndex + toRead | 0);
536
+ var toRead = (a.d1(b) <= 0 ? a : b).f1();
537
+ return this.w2i_1.y2h(sink, startIndex, startIndex + toRead | 0);
538
+ };
539
+ protoOf(RealSource).g4 = function () {
540
+ if (this.v2i_1)
541
+ return Unit_instance;
542
+ this.v2i_1 = true;
543
+ this.u2i_1.g4();
544
+ this.w2i_1.h2();
501
545
  };
502
546
  protoOf(RealSource).toString = function () {
503
- return 'buffered(' + toString(this.t2h_1) + ')';
547
+ return 'buffered(' + toString(this.u2i_1) + ')';
504
548
  };
505
549
  function Segment_init_$Init$($this) {
506
550
  Segment.call($this);
507
- $this.o2g_1 = new Int8Array(8192);
508
- $this.s2g_1 = true;
509
- $this.r2g_1 = null;
551
+ $this.p2h_1 = new Int8Array(8192);
552
+ $this.t2h_1 = true;
553
+ $this.s2h_1 = null;
510
554
  return $this;
511
555
  }
512
556
  function Segment_init_$Create$() {
@@ -514,90 +558,90 @@ function Segment_init_$Create$() {
514
558
  }
515
559
  function Segment_init_$Init$_0(data, pos, limit, shareToken, owner, $this) {
516
560
  Segment.call($this);
517
- $this.o2g_1 = data;
518
- $this.p2g_1 = pos;
519
- $this.q2g_1 = limit;
520
- $this.r2g_1 = shareToken;
521
- $this.s2g_1 = owner;
561
+ $this.p2h_1 = data;
562
+ $this.q2h_1 = pos;
563
+ $this.r2h_1 = limit;
564
+ $this.s2h_1 = shareToken;
565
+ $this.t2h_1 = owner;
522
566
  return $this;
523
567
  }
524
568
  function Segment_init_$Create$_0(data, pos, limit, shareToken, owner) {
525
569
  return Segment_init_$Init$_0(data, pos, limit, shareToken, owner, objectCreate(protoOf(Segment)));
526
570
  }
527
571
  function Companion() {
528
- this.w2h_1 = 8192;
529
- this.x2h_1 = 1024;
572
+ this.x2i_1 = 8192;
573
+ this.y2i_1 = 1024;
530
574
  }
531
- protoOf(Companion).y2h = function () {
575
+ protoOf(Companion).z2i = function () {
532
576
  return Segment_init_$Create$();
533
577
  };
534
578
  var Companion_instance;
535
579
  function Companion_getInstance() {
536
580
  return Companion_instance;
537
581
  }
538
- protoOf(Segment).g2h = function () {
539
- var tmp1_safe_receiver = this.r2g_1;
540
- var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.k26();
582
+ protoOf(Segment).h2i = function () {
583
+ var tmp1_safe_receiver = this.s2h_1;
584
+ var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.q27();
541
585
  return tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
542
586
  };
543
- protoOf(Segment).z2h = function () {
544
- var tmp0_elvis_lhs = this.r2g_1;
587
+ protoOf(Segment).a2j = function () {
588
+ var tmp0_elvis_lhs = this.s2h_1;
545
589
  var tmp;
546
590
  if (tmp0_elvis_lhs == null) {
547
591
  // Inline function 'kotlin.also' call
548
- var this_0 = SegmentPool_instance.a2i();
592
+ var this_0 = SegmentPool_instance.b2j();
549
593
  // Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
550
- this.r2g_1 = this_0;
594
+ this.s2h_1 = this_0;
551
595
  tmp = this_0;
552
596
  } else {
553
597
  tmp = tmp0_elvis_lhs;
554
598
  }
555
599
  var t = tmp;
556
- var tmp_0 = this.p2g_1;
557
- var tmp_1 = this.q2g_1;
600
+ var tmp_0 = this.q2h_1;
601
+ var tmp_1 = this.r2h_1;
558
602
  // Inline function 'kotlin.also' call
559
603
  // Inline function 'kotlinx.io.Segment.sharedCopy.<anonymous>' call
560
- t.b2i();
561
- return Segment_init_$Create$_0(this.o2g_1, tmp_0, tmp_1, t, false);
604
+ t.c2j();
605
+ return Segment_init_$Create$_0(this.p2h_1, tmp_0, tmp_1, t, false);
562
606
  };
563
- protoOf(Segment).j2h = function () {
564
- var result = this.t2g_1;
565
- if (!(this.u2g_1 == null)) {
566
- ensureNotNull(this.u2g_1).t2g_1 = this.t2g_1;
607
+ protoOf(Segment).k2i = function () {
608
+ var result = this.u2h_1;
609
+ if (!(this.v2h_1 == null)) {
610
+ ensureNotNull(this.v2h_1).u2h_1 = this.u2h_1;
567
611
  }
568
- if (!(this.t2g_1 == null)) {
569
- ensureNotNull(this.t2g_1).u2g_1 = this.u2g_1;
612
+ if (!(this.u2h_1 == null)) {
613
+ ensureNotNull(this.u2h_1).v2h_1 = this.v2h_1;
570
614
  }
571
- this.t2g_1 = null;
572
- this.u2g_1 = null;
615
+ this.u2h_1 = null;
616
+ this.v2h_1 = null;
573
617
  return result;
574
618
  };
575
- protoOf(Segment).f2h = function (segment) {
576
- segment.u2g_1 = this;
577
- segment.t2g_1 = this.t2g_1;
578
- if (!(this.t2g_1 == null)) {
579
- ensureNotNull(this.t2g_1).u2g_1 = segment;
619
+ protoOf(Segment).g2i = function (segment) {
620
+ segment.v2h_1 = this;
621
+ segment.u2h_1 = this.u2h_1;
622
+ if (!(this.u2h_1 == null)) {
623
+ ensureNotNull(this.u2h_1).v2h_1 = segment;
580
624
  }
581
- this.t2g_1 = segment;
625
+ this.u2h_1 = segment;
582
626
  return segment;
583
627
  };
584
- protoOf(Segment).h2h = function (byteCount) {
628
+ protoOf(Segment).i2i = function (byteCount) {
585
629
  // Inline function 'kotlin.require' call
586
- if (!(byteCount > 0 && byteCount <= (this.q2g_1 - this.p2g_1 | 0))) {
630
+ if (!(byteCount > 0 && byteCount <= (this.r2h_1 - this.q2h_1 | 0))) {
587
631
  // Inline function 'kotlinx.io.Segment.split.<anonymous>' call
588
632
  var message = 'byteCount out of range';
589
633
  throw IllegalArgumentException_init_$Create$(toString(message));
590
634
  }
591
635
  var prefix;
592
636
  if (byteCount >= 1024) {
593
- prefix = this.z2h();
637
+ prefix = this.a2j();
594
638
  } else {
595
- prefix = SegmentPool_instance.e2h();
596
- var tmp1 = this.o2g_1;
597
- var tmp2 = prefix.o2g_1;
598
- var tmp3 = this.p2g_1;
639
+ prefix = SegmentPool_instance.f2i();
640
+ var tmp1 = this.p2h_1;
641
+ var tmp2 = prefix.p2h_1;
642
+ var tmp3 = this.q2h_1;
599
643
  // Inline function 'kotlin.collections.copyInto' call
600
- var endIndex = this.p2g_1 + byteCount | 0;
644
+ var endIndex = this.q2h_1 + byteCount | 0;
601
645
  // Inline function 'kotlin.js.unsafeCast' call
602
646
  // Inline function 'kotlin.js.asDynamic' call
603
647
  var tmp = tmp1;
@@ -605,142 +649,142 @@ protoOf(Segment).h2h = function (byteCount) {
605
649
  // Inline function 'kotlin.js.asDynamic' call
606
650
  arrayCopy(tmp, tmp2, 0, tmp3, endIndex);
607
651
  }
608
- prefix.q2g_1 = prefix.p2g_1 + byteCount | 0;
609
- this.p2g_1 = this.p2g_1 + byteCount | 0;
610
- if (!(this.u2g_1 == null)) {
611
- ensureNotNull(this.u2g_1).f2h(prefix);
652
+ prefix.r2h_1 = prefix.q2h_1 + byteCount | 0;
653
+ this.q2h_1 = this.q2h_1 + byteCount | 0;
654
+ if (!(this.v2h_1 == null)) {
655
+ ensureNotNull(this.v2h_1).g2i(prefix);
612
656
  } else {
613
- prefix.t2g_1 = this;
614
- this.u2g_1 = prefix;
657
+ prefix.u2h_1 = this;
658
+ this.v2h_1 = prefix;
615
659
  }
616
660
  return prefix;
617
661
  };
618
- protoOf(Segment).k2h = function () {
662
+ protoOf(Segment).l2i = function () {
619
663
  // Inline function 'kotlin.check' call
620
- if (!!(this.u2g_1 == null)) {
664
+ if (!!(this.v2h_1 == null)) {
621
665
  // Inline function 'kotlinx.io.Segment.compact.<anonymous>' call
622
666
  var message = 'cannot compact';
623
667
  throw IllegalStateException_init_$Create$(toString(message));
624
668
  }
625
- if (!ensureNotNull(this.u2g_1).s2g_1)
669
+ if (!ensureNotNull(this.v2h_1).t2h_1)
626
670
  return this;
627
- var byteCount = this.q2g_1 - this.p2g_1 | 0;
628
- var availableByteCount = (8192 - ensureNotNull(this.u2g_1).q2g_1 | 0) + (ensureNotNull(this.u2g_1).g2h() ? 0 : ensureNotNull(this.u2g_1).p2g_1) | 0;
671
+ var byteCount = this.r2h_1 - this.q2h_1 | 0;
672
+ var availableByteCount = (8192 - ensureNotNull(this.v2h_1).r2h_1 | 0) + (ensureNotNull(this.v2h_1).h2i() ? 0 : ensureNotNull(this.v2h_1).q2h_1) | 0;
629
673
  if (byteCount > availableByteCount)
630
674
  return this;
631
- var predecessor = this.u2g_1;
632
- this.i2h(ensureNotNull(predecessor), byteCount);
633
- var successor = this.j2h();
675
+ var predecessor = this.v2h_1;
676
+ this.j2i(ensureNotNull(predecessor), byteCount);
677
+ var successor = this.k2i();
634
678
  // Inline function 'kotlin.check' call
635
679
  if (!(successor == null)) {
636
680
  throw IllegalStateException_init_$Create$('Check failed.');
637
681
  }
638
- SegmentPool_instance.o2h(this);
682
+ SegmentPool_instance.p2i(this);
639
683
  return predecessor;
640
684
  };
641
- protoOf(Segment).m2h = function (byte) {
642
- var _unary__edvuaz = this.q2g_1;
643
- this.q2g_1 = _unary__edvuaz + 1 | 0;
644
- this.o2g_1[_unary__edvuaz] = byte;
685
+ protoOf(Segment).n2i = function (byte) {
686
+ var _unary__edvuaz = this.r2h_1;
687
+ this.r2h_1 = _unary__edvuaz + 1 | 0;
688
+ this.p2h_1[_unary__edvuaz] = byte;
645
689
  };
646
- protoOf(Segment).i2h = function (sink, byteCount) {
690
+ protoOf(Segment).j2i = function (sink, byteCount) {
647
691
  // Inline function 'kotlin.check' call
648
- if (!sink.s2g_1) {
692
+ if (!sink.t2h_1) {
649
693
  // Inline function 'kotlinx.io.Segment.writeTo.<anonymous>' call
650
694
  var message = 'only owner can write';
651
695
  throw IllegalStateException_init_$Create$(toString(message));
652
696
  }
653
- if ((sink.q2g_1 + byteCount | 0) > 8192) {
654
- if (sink.g2h())
697
+ if ((sink.r2h_1 + byteCount | 0) > 8192) {
698
+ if (sink.h2i())
655
699
  throw IllegalArgumentException_init_$Create$_0();
656
- if (((sink.q2g_1 + byteCount | 0) - sink.p2g_1 | 0) > 8192)
700
+ if (((sink.r2h_1 + byteCount | 0) - sink.q2h_1 | 0) > 8192)
657
701
  throw IllegalArgumentException_init_$Create$_0();
658
- var tmp1 = sink.o2g_1;
659
- var tmp2 = sink.o2g_1;
660
- var tmp3 = sink.p2g_1;
702
+ var tmp1 = sink.p2h_1;
703
+ var tmp2 = sink.p2h_1;
704
+ var tmp3 = sink.q2h_1;
661
705
  // Inline function 'kotlin.collections.copyInto' call
662
- var endIndex = sink.q2g_1;
706
+ var endIndex = sink.r2h_1;
663
707
  // Inline function 'kotlin.js.unsafeCast' call
664
708
  // Inline function 'kotlin.js.asDynamic' call
665
709
  var tmp = tmp1;
666
710
  // Inline function 'kotlin.js.unsafeCast' call
667
711
  // Inline function 'kotlin.js.asDynamic' call
668
712
  arrayCopy(tmp, tmp2, 0, tmp3, endIndex);
669
- sink.q2g_1 = sink.q2g_1 - sink.p2g_1 | 0;
670
- sink.p2g_1 = 0;
713
+ sink.r2h_1 = sink.r2h_1 - sink.q2h_1 | 0;
714
+ sink.q2h_1 = 0;
671
715
  }
672
- var tmp6 = this.o2g_1;
673
- var tmp7 = sink.o2g_1;
674
- var tmp8 = sink.q2g_1;
675
- var tmp9 = this.p2g_1;
716
+ var tmp6 = this.p2h_1;
717
+ var tmp7 = sink.p2h_1;
718
+ var tmp8 = sink.r2h_1;
719
+ var tmp9 = this.q2h_1;
676
720
  // Inline function 'kotlin.collections.copyInto' call
677
- var endIndex_0 = this.p2g_1 + byteCount | 0;
721
+ var endIndex_0 = this.q2h_1 + byteCount | 0;
678
722
  // Inline function 'kotlin.js.unsafeCast' call
679
723
  // Inline function 'kotlin.js.asDynamic' call
680
724
  var tmp_0 = tmp6;
681
725
  // Inline function 'kotlin.js.unsafeCast' call
682
726
  // Inline function 'kotlin.js.asDynamic' call
683
727
  arrayCopy(tmp_0, tmp7, tmp8, tmp9, endIndex_0);
684
- sink.q2g_1 = sink.q2g_1 + byteCount | 0;
685
- this.p2g_1 = this.p2g_1 + byteCount | 0;
728
+ sink.r2h_1 = sink.r2h_1 + byteCount | 0;
729
+ this.q2h_1 = this.q2h_1 + byteCount | 0;
686
730
  };
687
- protoOf(Segment).y2g = function (dst, dstStartOffset, dstEndOffset) {
731
+ protoOf(Segment).z2h = function (dst, dstStartOffset, dstEndOffset) {
688
732
  var len = dstEndOffset - dstStartOffset | 0;
689
- var tmp0 = this.o2g_1;
690
- var tmp3 = this.p2g_1;
733
+ var tmp0 = this.p2h_1;
734
+ var tmp3 = this.q2h_1;
691
735
  // Inline function 'kotlin.collections.copyInto' call
692
- var endIndex = this.p2g_1 + len | 0;
736
+ var endIndex = this.q2h_1 + len | 0;
693
737
  // Inline function 'kotlin.js.unsafeCast' call
694
738
  // Inline function 'kotlin.js.asDynamic' call
695
739
  var tmp = tmp0;
696
740
  // Inline function 'kotlin.js.unsafeCast' call
697
741
  // Inline function 'kotlin.js.asDynamic' call
698
742
  arrayCopy(tmp, dst, dstStartOffset, tmp3, endIndex);
699
- this.p2g_1 = this.p2g_1 + len | 0;
743
+ this.q2h_1 = this.q2h_1 + len | 0;
700
744
  };
701
745
  protoOf(Segment).j = function () {
702
- return this.q2g_1 - this.p2g_1 | 0;
746
+ return this.r2h_1 - this.q2h_1 | 0;
703
747
  };
704
- protoOf(Segment).c2i = function () {
705
- return this.o2g_1.length - this.q2g_1 | 0;
748
+ protoOf(Segment).d2j = function () {
749
+ return this.p2h_1.length - this.r2h_1 | 0;
706
750
  };
707
- protoOf(Segment).d2i = function (readOnly) {
708
- return this.o2g_1;
751
+ protoOf(Segment).e2j = function (readOnly) {
752
+ return this.p2h_1;
709
753
  };
710
- protoOf(Segment).e2i = function (index) {
711
- return this.o2g_1[this.p2g_1 + index | 0];
754
+ protoOf(Segment).f2j = function (index) {
755
+ return this.p2h_1[this.q2h_1 + index | 0];
712
756
  };
713
- protoOf(Segment).f2i = function (index, value) {
714
- this.o2g_1[this.q2g_1 + index | 0] = value;
757
+ protoOf(Segment).g2j = function (index, value) {
758
+ this.p2h_1[this.r2h_1 + index | 0] = value;
715
759
  };
716
- protoOf(Segment).g2i = function (index, b0, b1) {
717
- var d = this.o2g_1;
718
- var l = this.q2g_1;
760
+ protoOf(Segment).h2j = function (index, b0, b1) {
761
+ var d = this.p2h_1;
762
+ var l = this.r2h_1;
719
763
  d[l + index | 0] = b0;
720
764
  d[(l + index | 0) + 1 | 0] = b1;
721
765
  };
722
- protoOf(Segment).h2i = function (index, b0, b1, b2) {
723
- var d = this.o2g_1;
724
- var l = this.q2g_1;
766
+ protoOf(Segment).i2j = function (index, b0, b1, b2) {
767
+ var d = this.p2h_1;
768
+ var l = this.r2h_1;
725
769
  d[l + index | 0] = b0;
726
770
  d[(l + index | 0) + 1 | 0] = b1;
727
771
  d[(l + index | 0) + 2 | 0] = b2;
728
772
  };
729
- protoOf(Segment).i2i = function (index, b0, b1, b2, b3) {
730
- var d = this.o2g_1;
731
- var l = this.q2g_1;
773
+ protoOf(Segment).j2j = function (index, b0, b1, b2, b3) {
774
+ var d = this.p2h_1;
775
+ var l = this.r2h_1;
732
776
  d[l + index | 0] = b0;
733
777
  d[(l + index | 0) + 1 | 0] = b1;
734
778
  d[(l + index | 0) + 2 | 0] = b2;
735
779
  d[(l + index | 0) + 3 | 0] = b3;
736
780
  };
737
781
  function Segment() {
738
- this.p2g_1 = 0;
739
- this.q2g_1 = 0;
740
- this.r2g_1 = null;
741
- this.s2g_1 = false;
742
- this.t2g_1 = null;
743
- this.u2g_1 = null;
782
+ this.q2h_1 = 0;
783
+ this.r2h_1 = 0;
784
+ this.s2h_1 = null;
785
+ this.t2h_1 = false;
786
+ this.u2h_1 = null;
787
+ this.v2h_1 = null;
744
788
  }
745
789
  function SegmentCopyTracker() {
746
790
  }
@@ -751,10 +795,10 @@ function AlwaysSharedCopyTracker() {
751
795
  AlwaysSharedCopyTracker_instance = this;
752
796
  SegmentCopyTracker.call(this);
753
797
  }
754
- protoOf(AlwaysSharedCopyTracker).k26 = function () {
798
+ protoOf(AlwaysSharedCopyTracker).q27 = function () {
755
799
  return true;
756
800
  };
757
- protoOf(AlwaysSharedCopyTracker).b2i = function () {
801
+ protoOf(AlwaysSharedCopyTracker).c2j = function () {
758
802
  return Unit_instance;
759
803
  };
760
804
  var AlwaysSharedCopyTracker_instance;
@@ -767,7 +811,7 @@ function readByteArray(_this__u8e3s4, byteCount) {
767
811
  // Inline function 'kotlinx.io.checkByteCount' call
768
812
  var byteCount_0 = toLong(byteCount);
769
813
  // Inline function 'kotlin.require' call
770
- if (!(byteCount_0.j1(new Long(0, 0)) >= 0)) {
814
+ if (!(byteCount_0.d1(new Long(0, 0)) >= 0)) {
771
815
  // Inline function 'kotlinx.io.checkByteCount.<anonymous>' call
772
816
  var message = 'byteCount (' + byteCount_0.toString() + ') < 0';
773
817
  throw IllegalArgumentException_init_$Create$(toString(message));
@@ -778,22 +822,22 @@ function readByteArrayImpl(_this__u8e3s4, size) {
778
822
  var arraySize = size;
779
823
  if (size === -1) {
780
824
  var fetchSize = new Long(2147483647, 0);
781
- while (_this__u8e3s4.i2g().j().j1(new Long(2147483647, 0)) < 0 && _this__u8e3s4.l2g(fetchSize)) {
825
+ while (_this__u8e3s4.j2h().j().d1(new Long(2147483647, 0)) < 0 && _this__u8e3s4.m2h(fetchSize)) {
782
826
  // Inline function 'kotlin.Long.times' call
783
- fetchSize = fetchSize.b3(toLong(2));
827
+ fetchSize = fetchSize.a3(toLong(2));
784
828
  }
785
829
  // Inline function 'kotlin.check' call
786
- if (!(_this__u8e3s4.i2g().j().j1(new Long(2147483647, 0)) < 0)) {
830
+ if (!(_this__u8e3s4.j2h().j().d1(new Long(2147483647, 0)) < 0)) {
787
831
  // Inline function 'kotlinx.io.readByteArrayImpl.<anonymous>' call
788
- var message = "Can't create an array of size " + _this__u8e3s4.i2g().j().toString();
832
+ var message = "Can't create an array of size " + _this__u8e3s4.j2h().j().toString();
789
833
  throw IllegalStateException_init_$Create$(toString(message));
790
834
  }
791
- arraySize = _this__u8e3s4.i2g().j().l1();
835
+ arraySize = _this__u8e3s4.j2h().j().f1();
792
836
  } else {
793
- _this__u8e3s4.k2g(toLong(size));
837
+ _this__u8e3s4.l2h(toLong(size));
794
838
  }
795
839
  var array = new Int8Array(arraySize);
796
- readTo(_this__u8e3s4.i2g(), array);
840
+ readTo(_this__u8e3s4.j2h(), array);
797
841
  return array;
798
842
  }
799
843
  function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
@@ -804,7 +848,7 @@ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
804
848
  checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
805
849
  var offset = startIndex;
806
850
  while (offset < endIndex) {
807
- var bytesRead = _this__u8e3s4.x2g(sink, offset, endIndex);
851
+ var bytesRead = _this__u8e3s4.y2h(sink, offset, endIndex);
808
852
  if (bytesRead === -1) {
809
853
  throw EOFException_init_$Create$_0('Source exhausted before reading ' + (endIndex - startIndex | 0) + ' bytes. ' + ('Only ' + bytesRead + ' bytes were read.'));
810
854
  }
@@ -812,8 +856,8 @@ function readTo(_this__u8e3s4, sink, startIndex, endIndex) {
812
856
  }
813
857
  }
814
858
  function readString(_this__u8e3s4) {
815
- _this__u8e3s4.l2g(new Long(-1, 2147483647));
816
- return commonReadUtf8(_this__u8e3s4.i2g(), _this__u8e3s4.i2g().j());
859
+ _this__u8e3s4.m2h(new Long(-1, 2147483647));
860
+ return commonReadUtf8(_this__u8e3s4.j2h(), _this__u8e3s4.j2h().j());
817
861
  }
818
862
  function writeString(_this__u8e3s4, string, startIndex, endIndex) {
819
863
  startIndex = startIndex === VOID ? 0 : startIndex;
@@ -824,7 +868,7 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
824
868
  // Inline function 'kotlinx.io.writeToInternalBuffer' call
825
869
  // Inline function 'kotlinx.io.writeString.<anonymous>' call
826
870
  // Inline function 'kotlinx.io.commonWriteUtf8' call
827
- var this_0 = _this__u8e3s4.i2g();
871
+ var this_0 = _this__u8e3s4.j2h();
828
872
  var i = startIndex;
829
873
  while (i < endIndex) {
830
874
  // Inline function 'kotlinx.io.writeString.<anonymous>.stub_for_inlining' call
@@ -835,16 +879,16 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
835
879
  if (c < 128) {
836
880
  $l$block_0: {
837
881
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
838
- var tail = this_0.b2h(1);
882
+ var tail = this_0.c2i(1);
839
883
  // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
840
884
  var ctx = get_SegmentWriteContextImpl();
841
885
  var segmentOffset = -i | 0;
842
886
  // Inline function 'kotlin.comparisons.minOf' call
843
- var b = i + tail.c2i() | 0;
887
+ var b = i + tail.d2j() | 0;
844
888
  var runLimit = Math.min(endIndex, b);
845
889
  var _unary__edvuaz = i;
846
890
  i = _unary__edvuaz + 1 | 0;
847
- ctx.m2i(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
891
+ ctx.n2j(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
848
892
  $l$loop: while (i < runLimit) {
849
893
  // Inline function 'kotlinx.io.writeString.<anonymous>.stub_for_inlining' call
850
894
  var p0_0 = i;
@@ -855,94 +899,94 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
855
899
  break $l$loop;
856
900
  var _unary__edvuaz_0 = i;
857
901
  i = _unary__edvuaz_0 + 1 | 0;
858
- ctx.m2i(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
902
+ ctx.n2j(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
859
903
  }
860
904
  var bytesWritten = i + segmentOffset | 0;
861
905
  if (bytesWritten === 1) {
862
- tail.q2g_1 = tail.q2g_1 + bytesWritten | 0;
906
+ tail.r2h_1 = tail.r2h_1 + bytesWritten | 0;
863
907
  var tmp = this_0;
864
908
  // Inline function 'kotlin.Long.plus' call
865
- tmp.h2g_1 = this_0.h2g_1.z2(toLong(bytesWritten));
909
+ tmp.i2h_1 = this_0.i2h_1.y2(toLong(bytesWritten));
866
910
  break $l$block_0;
867
911
  }
868
912
  // Inline function 'kotlin.check' call
869
- if (!(0 <= bytesWritten ? bytesWritten <= tail.c2i() : false)) {
913
+ if (!(0 <= bytesWritten ? bytesWritten <= tail.d2j() : false)) {
870
914
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail.<anonymous>' call
871
- var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.c2i();
915
+ var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.d2j();
872
916
  throw IllegalStateException_init_$Create$(toString(message));
873
917
  }
874
918
  if (!(bytesWritten === 0)) {
875
- tail.q2g_1 = tail.q2g_1 + bytesWritten | 0;
919
+ tail.r2h_1 = tail.r2h_1 + bytesWritten | 0;
876
920
  var tmp_0 = this_0;
877
921
  // Inline function 'kotlin.Long.plus' call
878
- tmp_0.h2g_1 = this_0.h2g_1.z2(toLong(bytesWritten));
922
+ tmp_0.i2h_1 = this_0.i2h_1.y2(toLong(bytesWritten));
879
923
  break $l$block_0;
880
924
  }
881
925
  if (isEmpty(tail)) {
882
- this_0.p2h();
926
+ this_0.q2i();
883
927
  }
884
928
  }
885
929
  } else if (c < 2048) {
886
930
  $l$block_2: {
887
931
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
888
- var tail_0 = this_0.b2h(2);
932
+ var tail_0 = this_0.c2i(2);
889
933
  // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
890
- get_SegmentWriteContextImpl().l2i(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
934
+ get_SegmentWriteContextImpl().m2j(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
891
935
  var bytesWritten_0 = 2;
892
936
  if (bytesWritten_0 === 2) {
893
- tail_0.q2g_1 = tail_0.q2g_1 + bytesWritten_0 | 0;
937
+ tail_0.r2h_1 = tail_0.r2h_1 + bytesWritten_0 | 0;
894
938
  var tmp_1 = this_0;
895
939
  // Inline function 'kotlin.Long.plus' call
896
- tmp_1.h2g_1 = this_0.h2g_1.z2(toLong(bytesWritten_0));
940
+ tmp_1.i2h_1 = this_0.i2h_1.y2(toLong(bytesWritten_0));
897
941
  break $l$block_2;
898
942
  }
899
943
  // Inline function 'kotlin.check' call
900
- if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.c2i() : false)) {
944
+ if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.d2j() : false)) {
901
945
  // 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.c2i();
946
+ var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.d2j();
903
947
  throw IllegalStateException_init_$Create$(toString(message_0));
904
948
  }
905
949
  if (!(bytesWritten_0 === 0)) {
906
- tail_0.q2g_1 = tail_0.q2g_1 + bytesWritten_0 | 0;
950
+ tail_0.r2h_1 = tail_0.r2h_1 + bytesWritten_0 | 0;
907
951
  var tmp_2 = this_0;
908
952
  // Inline function 'kotlin.Long.plus' call
909
- tmp_2.h2g_1 = this_0.h2g_1.z2(toLong(bytesWritten_0));
953
+ tmp_2.i2h_1 = this_0.i2h_1.y2(toLong(bytesWritten_0));
910
954
  break $l$block_2;
911
955
  }
912
956
  if (isEmpty(tail_0)) {
913
- this_0.p2h();
957
+ this_0.q2i();
914
958
  }
915
959
  }
916
960
  i = i + 1 | 0;
917
961
  } else if (c < 55296 || c > 57343) {
918
962
  $l$block_4: {
919
963
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
920
- var tail_1 = this_0.b2h(3);
964
+ var tail_1 = this_0.c2i(3);
921
965
  // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
922
- get_SegmentWriteContextImpl().k2i(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
966
+ get_SegmentWriteContextImpl().l2j(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
923
967
  var bytesWritten_1 = 3;
924
968
  if (bytesWritten_1 === 3) {
925
- tail_1.q2g_1 = tail_1.q2g_1 + bytesWritten_1 | 0;
969
+ tail_1.r2h_1 = tail_1.r2h_1 + bytesWritten_1 | 0;
926
970
  var tmp_3 = this_0;
927
971
  // Inline function 'kotlin.Long.plus' call
928
- tmp_3.h2g_1 = this_0.h2g_1.z2(toLong(bytesWritten_1));
972
+ tmp_3.i2h_1 = this_0.i2h_1.y2(toLong(bytesWritten_1));
929
973
  break $l$block_4;
930
974
  }
931
975
  // Inline function 'kotlin.check' call
932
- if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.c2i() : false)) {
976
+ if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.d2j() : false)) {
933
977
  // 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.c2i();
978
+ var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.d2j();
935
979
  throw IllegalStateException_init_$Create$(toString(message_1));
936
980
  }
937
981
  if (!(bytesWritten_1 === 0)) {
938
- tail_1.q2g_1 = tail_1.q2g_1 + bytesWritten_1 | 0;
982
+ tail_1.r2h_1 = tail_1.r2h_1 + bytesWritten_1 | 0;
939
983
  var tmp_4 = this_0;
940
984
  // Inline function 'kotlin.Long.plus' call
941
- tmp_4.h2g_1 = this_0.h2g_1.z2(toLong(bytesWritten_1));
985
+ tmp_4.i2h_1 = this_0.i2h_1.y2(toLong(bytesWritten_1));
942
986
  break $l$block_4;
943
987
  }
944
988
  if (isEmpty(tail_1)) {
945
- this_0.p2h();
989
+ this_0.q2i();
946
990
  }
947
991
  }
948
992
  i = i + 1 | 0;
@@ -962,69 +1006,69 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
962
1006
  // Inline function 'kotlin.code' call
963
1007
  var this_4 = _Char___init__impl__6a9atx(63);
964
1008
  var tmp$ret$23 = Char__toInt_impl_vasixd(this_4);
965
- this_0.l2h(toByte(tmp$ret$23));
1009
+ this_0.m2i(toByte(tmp$ret$23));
966
1010
  i = i + 1 | 0;
967
1011
  } else {
968
1012
  var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
969
1013
  $l$block_6: {
970
1014
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
971
- var tail_2 = this_0.b2h(4);
1015
+ var tail_2 = this_0.c2i(4);
972
1016
  // Inline function 'kotlinx.io.commonWriteUtf8.<anonymous>' call
973
- get_SegmentWriteContextImpl().j2i(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
1017
+ get_SegmentWriteContextImpl().k2j(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
974
1018
  var bytesWritten_2 = 4;
975
1019
  if (bytesWritten_2 === 4) {
976
- tail_2.q2g_1 = tail_2.q2g_1 + bytesWritten_2 | 0;
1020
+ tail_2.r2h_1 = tail_2.r2h_1 + bytesWritten_2 | 0;
977
1021
  var tmp_6 = this_0;
978
1022
  // Inline function 'kotlin.Long.plus' call
979
- tmp_6.h2g_1 = this_0.h2g_1.z2(toLong(bytesWritten_2));
1023
+ tmp_6.i2h_1 = this_0.i2h_1.y2(toLong(bytesWritten_2));
980
1024
  break $l$block_6;
981
1025
  }
982
1026
  // Inline function 'kotlin.check' call
983
- if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.c2i() : false)) {
1027
+ if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.d2j() : false)) {
984
1028
  // 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.c2i();
1029
+ var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.d2j();
986
1030
  throw IllegalStateException_init_$Create$(toString(message_2));
987
1031
  }
988
1032
  if (!(bytesWritten_2 === 0)) {
989
- tail_2.q2g_1 = tail_2.q2g_1 + bytesWritten_2 | 0;
1033
+ tail_2.r2h_1 = tail_2.r2h_1 + bytesWritten_2 | 0;
990
1034
  var tmp_7 = this_0;
991
1035
  // Inline function 'kotlin.Long.plus' call
992
- tmp_7.h2g_1 = this_0.h2g_1.z2(toLong(bytesWritten_2));
1036
+ tmp_7.i2h_1 = this_0.i2h_1.y2(toLong(bytesWritten_2));
993
1037
  break $l$block_6;
994
1038
  }
995
1039
  if (isEmpty(tail_2)) {
996
- this_0.p2h();
1040
+ this_0.q2i();
997
1041
  }
998
1042
  }
999
1043
  i = i + 2 | 0;
1000
1044
  }
1001
1045
  }
1002
1046
  }
1003
- _this__u8e3s4.m2g();
1047
+ _this__u8e3s4.n2h();
1004
1048
  }
1005
1049
  function commonReadUtf8(_this__u8e3s4, byteCount) {
1006
1050
  if (byteCount.equals(new Long(0, 0)))
1007
1051
  return '';
1008
1052
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
1009
- var curr = _this__u8e3s4.f2g_1;
1053
+ var curr = _this__u8e3s4.g2h_1;
1010
1054
  while (!(curr == null)) {
1011
1055
  get_SegmentReadContextImpl();
1012
1056
  // Inline function 'kotlinx.io.commonReadUtf8.<anonymous>' call
1013
- if (toLong(curr.j()).j1(byteCount) >= 0) {
1057
+ if (toLong(curr.j()).d1(byteCount) >= 0) {
1014
1058
  var result = '';
1015
1059
  // Inline function 'kotlinx.io.unsafe.withData' call
1016
- var tmp2 = curr.d2i(true);
1017
- var tmp3 = curr.p2g_1;
1060
+ var tmp2 = curr.e2j(true);
1061
+ var tmp3 = curr.q2h_1;
1018
1062
  // Inline function 'kotlinx.io.commonReadUtf8.<anonymous>.<anonymous>' call
1019
- var tmp0 = curr.q2g_1;
1063
+ var tmp0 = curr.r2h_1;
1020
1064
  // Inline function 'kotlin.math.min' call
1021
- var b = tmp3 + byteCount.l1() | 0;
1065
+ var b = tmp3 + byteCount.f1() | 0;
1022
1066
  var tmp$ret$0 = Math.min(tmp0, b);
1023
1067
  result = commonToUtf8String(tmp2, tmp3, tmp$ret$0);
1024
- _this__u8e3s4.v2g(byteCount);
1068
+ _this__u8e3s4.w2h(byteCount);
1025
1069
  return result;
1026
1070
  }
1027
- return commonToUtf8String(readByteArray(_this__u8e3s4, byteCount.l1()));
1071
+ return commonToUtf8String(readByteArray(_this__u8e3s4, byteCount.f1()));
1028
1072
  }
1029
1073
  // Inline function 'kotlin.error' call
1030
1074
  var message = 'Unreacheable';
@@ -1038,9 +1082,9 @@ function FileMetadata(isRegularFile, isDirectory, size) {
1038
1082
  isRegularFile = isRegularFile === VOID ? false : isRegularFile;
1039
1083
  isDirectory = isDirectory === VOID ? false : isDirectory;
1040
1084
  size = size === VOID ? new Long(0, 0) : size;
1041
- this.u2i_1 = isRegularFile;
1042
- this.v2i_1 = isDirectory;
1043
- this.w2i_1 = size;
1085
+ this.v2j_1 = isRegularFile;
1086
+ this.w2j_1 = isDirectory;
1087
+ this.x2j_1 = size;
1044
1088
  }
1045
1089
  function Path(base, parts) {
1046
1090
  return Path_0(base.toString(), parts.slice());
@@ -1072,7 +1116,7 @@ function Path_0(base, parts) {
1072
1116
  // Inline function 'kotlin.apply' call
1073
1117
  var this_0 = StringBuilder_init_$Create$_0();
1074
1118
  // Inline function 'kotlinx.io.files.Path.<anonymous>' call
1075
- this_0.b8(base);
1119
+ this_0.n8(base);
1076
1120
  // Inline function 'kotlin.collections.forEach' call
1077
1121
  var inductionVariable = 0;
1078
1122
  var last = parts.length;
@@ -1088,9 +1132,9 @@ function Path_0(base, parts) {
1088
1132
  tmp = false;
1089
1133
  }
1090
1134
  if (tmp) {
1091
- this_0.c8(get_SystemPathSeparator());
1135
+ this_0.o8(get_SystemPathSeparator());
1092
1136
  }
1093
- this_0.b8(element);
1137
+ this_0.n8(element);
1094
1138
  }
1095
1139
  var tmp$ret$2 = this_0.toString();
1096
1140
  return Path_2(tmp$ret$2);
@@ -1551,27 +1595,27 @@ function UnsafeBufferOperations_getInstance() {
1551
1595
  }
1552
1596
  function SegmentReadContextImpl$1() {
1553
1597
  }
1554
- protoOf(SegmentReadContextImpl$1).n2h = function (segment, offset) {
1555
- return segment.e2i(offset);
1598
+ protoOf(SegmentReadContextImpl$1).o2i = function (segment, offset) {
1599
+ return segment.f2j(offset);
1556
1600
  };
1557
1601
  function SegmentWriteContextImpl$1() {
1558
1602
  }
1559
- protoOf(SegmentWriteContextImpl$1).m2i = function (segment, offset, value) {
1560
- segment.f2i(offset, value);
1603
+ protoOf(SegmentWriteContextImpl$1).n2j = function (segment, offset, value) {
1604
+ segment.g2j(offset, value);
1561
1605
  };
1562
- protoOf(SegmentWriteContextImpl$1).l2i = function (segment, offset, b0, b1) {
1563
- segment.g2i(offset, b0, b1);
1606
+ protoOf(SegmentWriteContextImpl$1).m2j = function (segment, offset, b0, b1) {
1607
+ segment.h2j(offset, b0, b1);
1564
1608
  };
1565
- protoOf(SegmentWriteContextImpl$1).k2i = function (segment, offset, b0, b1, b2) {
1566
- segment.h2i(offset, b0, b1, b2);
1609
+ protoOf(SegmentWriteContextImpl$1).l2j = function (segment, offset, b0, b1, b2) {
1610
+ segment.i2j(offset, b0, b1, b2);
1567
1611
  };
1568
- protoOf(SegmentWriteContextImpl$1).j2i = function (segment, offset, b0, b1, b2, b3) {
1569
- segment.i2i(offset, b0, b1, b2, b3);
1612
+ protoOf(SegmentWriteContextImpl$1).k2j = function (segment, offset, b0, b1, b2, b3) {
1613
+ segment.j2j(offset, b0, b1, b2, b3);
1570
1614
  };
1571
1615
  function BufferIterationContextImpl$1() {
1572
1616
  }
1573
- protoOf(BufferIterationContextImpl$1).n2h = function (segment, offset) {
1574
- return get_SegmentReadContextImpl().n2h(segment, offset);
1617
+ protoOf(BufferIterationContextImpl$1).o2i = function (segment, offset) {
1618
+ return get_SegmentReadContextImpl().o2i(segment, offset);
1575
1619
  };
1576
1620
  var properties_initialized_UnsafeBufferOperations_kt_2xfgoc;
1577
1621
  function _init_properties_UnsafeBufferOperations_kt__xw75gy() {
@@ -1652,15 +1696,15 @@ function EOFException() {
1652
1696
  captureStack(this, EOFException);
1653
1697
  }
1654
1698
  function SegmentPool() {
1655
- this.c2h_1 = 0;
1656
- this.d2h_1 = 0;
1699
+ this.d2i_1 = 0;
1700
+ this.e2i_1 = 0;
1657
1701
  }
1658
- protoOf(SegmentPool).e2h = function () {
1659
- return Companion_instance.y2h();
1702
+ protoOf(SegmentPool).f2i = function () {
1703
+ return Companion_instance.z2i();
1660
1704
  };
1661
- protoOf(SegmentPool).o2h = function (segment) {
1705
+ protoOf(SegmentPool).p2i = function (segment) {
1662
1706
  };
1663
- protoOf(SegmentPool).a2i = function () {
1707
+ protoOf(SegmentPool).b2j = function () {
1664
1708
  return AlwaysSharedCopyTracker_getInstance();
1665
1709
  };
1666
1710
  var SegmentPool_instance;
@@ -1672,7 +1716,7 @@ function get_path() {
1672
1716
  var tmp0 = path$delegate;
1673
1717
  // Inline function 'kotlin.getValue' call
1674
1718
  path$factory();
1675
- return tmp0.b1();
1719
+ return tmp0.v();
1676
1720
  }
1677
1721
  var path$delegate;
1678
1722
  function get_fs() {
@@ -1680,7 +1724,7 @@ function get_fs() {
1680
1724
  var tmp0 = fs$delegate;
1681
1725
  // Inline function 'kotlin.getValue' call
1682
1726
  fs$factory();
1683
- return tmp0.b1();
1727
+ return tmp0.v();
1684
1728
  }
1685
1729
  var fs$delegate;
1686
1730
  function get_os() {
@@ -1688,7 +1732,7 @@ function get_os() {
1688
1732
  var tmp0 = os$delegate;
1689
1733
  // Inline function 'kotlin.getValue' call
1690
1734
  os$factory();
1691
- return tmp0.b1();
1735
+ return tmp0.v();
1692
1736
  }
1693
1737
  var os$delegate;
1694
1738
  function get_buffer() {
@@ -1696,7 +1740,7 @@ function get_buffer() {
1696
1740
  var tmp0 = buffer$delegate;
1697
1741
  // Inline function 'kotlin.getValue' call
1698
1742
  buffer$factory();
1699
- return tmp0.b1();
1743
+ return tmp0.v();
1700
1744
  }
1701
1745
  var buffer$delegate;
1702
1746
  function path$delegate$lambda() {
@@ -1809,7 +1853,7 @@ function FileNotFoundException(message) {
1809
1853
  }
1810
1854
  function SystemFileSystem$o$metadataOrNull$lambda($path, $metadata) {
1811
1855
  return function () {
1812
- var tmp0_elvis_lhs = get_fs().statSync($path.x2i_1);
1856
+ var tmp0_elvis_lhs = get_fs().statSync($path.y2j_1);
1813
1857
  var tmp;
1814
1858
  if (tmp0_elvis_lhs == null) {
1815
1859
  return Unit_instance;
@@ -1826,16 +1870,16 @@ function SystemFileSystem$o$metadataOrNull$lambda($path, $metadata) {
1826
1870
  function SystemFileSystem$1() {
1827
1871
  SystemFileSystemImpl.call(this);
1828
1872
  }
1829
- protoOf(SystemFileSystem$1).n2i = function (path) {
1830
- return get_fs().existsSync(path.x2i_1);
1873
+ protoOf(SystemFileSystem$1).o2j = function (path) {
1874
+ return get_fs().existsSync(path.y2j_1);
1831
1875
  };
1832
- protoOf(SystemFileSystem$1).o2i = function (path, mustCreate) {
1833
- var metadata = this.s2i(path);
1876
+ protoOf(SystemFileSystem$1).p2j = function (path, mustCreate) {
1877
+ var metadata = this.t2j(path);
1834
1878
  if (!(metadata == null)) {
1835
1879
  if (mustCreate) {
1836
1880
  throw IOException_init_$Create$_0('Path already exists: ' + path.toString());
1837
1881
  }
1838
- if (metadata.u2i_1) {
1882
+ if (metadata.v2j_1) {
1839
1883
  throw IOException_init_$Create$_0("Path already exists and it's a file: " + path.toString());
1840
1884
  }
1841
1885
  return Unit_instance;
@@ -1843,9 +1887,9 @@ protoOf(SystemFileSystem$1).o2i = function (path, mustCreate) {
1843
1887
  // Inline function 'kotlin.collections.arrayListOf' call
1844
1888
  var parts = ArrayList_init_$Create$();
1845
1889
  var p = path;
1846
- while (!(p == null) && !this.n2i(p)) {
1890
+ while (!(p == null) && !this.o2j(p)) {
1847
1891
  parts.e(p.toString());
1848
- p = p.y2i();
1892
+ p = p.z2j();
1849
1893
  }
1850
1894
  // Inline function 'kotlin.collections.forEach' call
1851
1895
  var _iterator__ex2g4s = asReversed(parts).g();
@@ -1855,8 +1899,8 @@ protoOf(SystemFileSystem$1).o2i = function (path, mustCreate) {
1855
1899
  get_fs().mkdirSync(element);
1856
1900
  }
1857
1901
  };
1858
- protoOf(SystemFileSystem$1).s2i = function (path) {
1859
- if (!this.n2i(path))
1902
+ protoOf(SystemFileSystem$1).t2j = function (path) {
1903
+ if (!this.o2j(path))
1860
1904
  return null;
1861
1905
  var metadata = {_v: null};
1862
1906
  var tmp2_safe_receiver = withCaughtException(SystemFileSystem$o$metadataOrNull$lambda(path, metadata));
@@ -1869,27 +1913,27 @@ protoOf(SystemFileSystem$1).s2i = function (path) {
1869
1913
  }
1870
1914
  return metadata._v;
1871
1915
  };
1872
- protoOf(SystemFileSystem$1).p2i = function (path) {
1916
+ protoOf(SystemFileSystem$1).q2j = function (path) {
1873
1917
  return new FileSource(path);
1874
1918
  };
1875
- protoOf(SystemFileSystem$1).q2i = function (path, append) {
1919
+ protoOf(SystemFileSystem$1).r2j = function (path, append) {
1876
1920
  return new FileSink(path, append);
1877
1921
  };
1878
- protoOf(SystemFileSystem$1).t2i = function (directory) {
1879
- var tmp0_elvis_lhs = this.s2i(directory);
1922
+ protoOf(SystemFileSystem$1).u2j = function (directory) {
1923
+ var tmp0_elvis_lhs = this.t2j(directory);
1880
1924
  var tmp;
1881
1925
  if (tmp0_elvis_lhs == null) {
1882
- throw new FileNotFoundException(directory.x2i_1);
1926
+ throw new FileNotFoundException(directory.y2j_1);
1883
1927
  } else {
1884
1928
  tmp = tmp0_elvis_lhs;
1885
1929
  }
1886
1930
  var metadata = tmp;
1887
- if (!metadata.v2i_1)
1888
- throw IOException_init_$Create$_0('Not a directory: ' + directory.x2i_1);
1889
- var tmp1_elvis_lhs = get_fs().opendirSync(directory.x2i_1);
1931
+ if (!metadata.w2j_1)
1932
+ throw IOException_init_$Create$_0('Not a directory: ' + directory.y2j_1);
1933
+ var tmp1_elvis_lhs = get_fs().opendirSync(directory.y2j_1);
1890
1934
  var tmp_0;
1891
1935
  if (tmp1_elvis_lhs == null) {
1892
- throw IOException_init_$Create$_0('Unable to read directory: ' + directory.x2i_1);
1936
+ throw IOException_init_$Create$_0('Unable to read directory: ' + directory.y2j_1);
1893
1937
  } else {
1894
1938
  tmp_0 = tmp1_elvis_lhs;
1895
1939
  }
@@ -1905,7 +1949,7 @@ protoOf(SystemFileSystem$1).t2i = function (directory) {
1905
1949
  this_0.e(Path(directory, [child.name]));
1906
1950
  child = dir.readSync();
1907
1951
  }
1908
- return this_0.q5();
1952
+ return this_0.r5();
1909
1953
  }finally {
1910
1954
  dir.closeSync();
1911
1955
  }
@@ -1923,31 +1967,31 @@ function get_SystemPathSeparator() {
1923
1967
  var tmp0 = SystemPathSeparator$delegate;
1924
1968
  // Inline function 'kotlin.getValue' call
1925
1969
  SystemPathSeparator$factory();
1926
- return tmp0.b1().x_1;
1970
+ return tmp0.v().r_1;
1927
1971
  }
1928
1972
  var SystemPathSeparator$delegate;
1929
1973
  function Path_1(rawPath, any) {
1930
- this.x2i_1 = removeTrailingSeparators(rawPath);
1974
+ this.y2j_1 = removeTrailingSeparators(rawPath);
1931
1975
  }
1932
- protoOf(Path_1).y2i = function () {
1976
+ protoOf(Path_1).z2j = function () {
1933
1977
  // Inline function 'kotlin.text.isEmpty' call
1934
- var this_0 = this.x2i_1;
1978
+ var this_0 = this.y2j_1;
1935
1979
  if (charSequenceLength(this_0) === 0)
1936
1980
  return null;
1937
1981
  if (get_isWindows()) {
1938
- if (!contains(this.x2i_1, _Char___init__impl__6a9atx(47)) && !contains(this.x2i_1, _Char___init__impl__6a9atx(92))) {
1982
+ if (!contains(this.y2j_1, _Char___init__impl__6a9atx(47)) && !contains(this.y2j_1, _Char___init__impl__6a9atx(92))) {
1939
1983
  return null;
1940
1984
  }
1941
- } else if (!contains(this.x2i_1, get_SystemPathSeparator())) {
1985
+ } else if (!contains(this.y2j_1, get_SystemPathSeparator())) {
1942
1986
  return null;
1943
1987
  }
1944
- var p = get_path().dirname(this.x2i_1);
1988
+ var p = get_path().dirname(this.y2j_1);
1945
1989
  var tmp;
1946
1990
  // Inline function 'kotlin.text.isEmpty' call
1947
1991
  if (charSequenceLength(p) === 0) {
1948
1992
  tmp = null;
1949
1993
  } else {
1950
- if (p === this.x2i_1) {
1994
+ if (p === this.y2j_1) {
1951
1995
  tmp = null;
1952
1996
  } else {
1953
1997
  tmp = Path_2(p);
@@ -1955,12 +1999,12 @@ protoOf(Path_1).y2i = function () {
1955
1999
  }
1956
2000
  return tmp;
1957
2001
  };
1958
- protoOf(Path_1).s2 = function () {
2002
+ protoOf(Path_1).r2 = function () {
1959
2003
  // Inline function 'kotlin.text.isEmpty' call
1960
- var this_0 = this.x2i_1;
2004
+ var this_0 = this.y2j_1;
1961
2005
  if (charSequenceLength(this_0) === 0)
1962
2006
  return '';
1963
- var p = get_path().basename(this.x2i_1);
2007
+ var p = get_path().basename(this.y2j_1);
1964
2008
  var tmp;
1965
2009
  // Inline function 'kotlin.text.isEmpty' call
1966
2010
  if (charSequenceLength(p) === 0) {
@@ -1971,21 +2015,21 @@ protoOf(Path_1).s2 = function () {
1971
2015
  return tmp;
1972
2016
  };
1973
2017
  protoOf(Path_1).toString = function () {
1974
- return this.x2i_1;
2018
+ return this.y2j_1;
1975
2019
  };
1976
2020
  protoOf(Path_1).equals = function (other) {
1977
2021
  if (this === other)
1978
2022
  return true;
1979
2023
  if (!(other instanceof Path_1))
1980
2024
  return false;
1981
- return this.x2i_1 === other.x2i_1;
2025
+ return this.y2j_1 === other.y2j_1;
1982
2026
  };
1983
2027
  protoOf(Path_1).hashCode = function () {
1984
- return getStringHashCode(this.x2i_1);
2028
+ return getStringHashCode(this.y2j_1);
1985
2029
  };
1986
2030
  function open($this, path) {
1987
- if (!get_fs().existsSync(path.x2i_1)) {
1988
- throw new FileNotFoundException('File does not exist: ' + path.x2i_1);
2031
+ if (!get_fs().existsSync(path.y2j_1)) {
2032
+ throw new FileNotFoundException('File does not exist: ' + path.y2j_1);
1989
2033
  }
1990
2034
  var fd = {_v: -1};
1991
2035
  var tmp3_safe_receiver = withCaughtException(FileSource$open$lambda(fd, path));
@@ -1994,34 +2038,34 @@ function open($this, path) {
1994
2038
  else {
1995
2039
  // Inline function 'kotlin.also' call
1996
2040
  // Inline function 'kotlinx.io.files.FileSource.open.<anonymous>' call
1997
- throw IOException_init_$Create$_1('Failed to open a file ' + path.x2i_1 + '.', tmp3_safe_receiver);
2041
+ throw IOException_init_$Create$_1('Failed to open a file ' + path.y2j_1 + '.', tmp3_safe_receiver);
1998
2042
  }
1999
2043
  if (fd._v < 0)
2000
- throw IOException_init_$Create$_0('Failed to open a file ' + path.x2i_1 + '.');
2044
+ throw IOException_init_$Create$_0('Failed to open a file ' + path.y2j_1 + '.');
2001
2045
  return fd._v;
2002
2046
  }
2003
2047
  function FileSource$open$lambda($fd, $path) {
2004
2048
  return function () {
2005
- $fd._v = get_fs().openSync($path.x2i_1, 'r');
2049
+ $fd._v = get_fs().openSync($path.y2j_1, 'r');
2006
2050
  return Unit_instance;
2007
2051
  };
2008
2052
  }
2009
2053
  function FileSource$readAtMostTo$lambda(this$0) {
2010
2054
  return function () {
2011
- this$0.a2j_1 = get_fs().readFileSync(this$0.d2j_1, null);
2055
+ this$0.b2k_1 = get_fs().readFileSync(this$0.e2k_1, null);
2012
2056
  return Unit_instance;
2013
2057
  };
2014
2058
  }
2015
2059
  function FileSource(path) {
2016
- this.z2i_1 = path;
2017
- this.a2j_1 = null;
2018
- this.b2j_1 = false;
2019
- this.c2j_1 = 0;
2020
- this.d2j_1 = open(this, this.z2i_1);
2060
+ this.a2k_1 = path;
2061
+ this.b2k_1 = null;
2062
+ this.c2k_1 = false;
2063
+ this.d2k_1 = 0;
2064
+ this.e2k_1 = open(this, this.a2k_1);
2021
2065
  }
2022
- protoOf(FileSource).z2g = function (sink, byteCount) {
2066
+ protoOf(FileSource).a2i = function (sink, byteCount) {
2023
2067
  // Inline function 'kotlin.check' call
2024
- if (!!this.b2j_1) {
2068
+ if (!!this.c2k_1) {
2025
2069
  // Inline function 'kotlinx.io.files.FileSource.readAtMostTo.<anonymous>' call
2026
2070
  var message = 'Source is closed.';
2027
2071
  throw IllegalStateException_init_$Create$(toString(message));
@@ -2029,38 +2073,44 @@ protoOf(FileSource).z2g = function (sink, byteCount) {
2029
2073
  if (byteCount.equals(new Long(0, 0))) {
2030
2074
  return new Long(0, 0);
2031
2075
  }
2032
- if (this.a2j_1 === null) {
2076
+ if (this.b2k_1 === null) {
2033
2077
  var tmp4_safe_receiver = withCaughtException(FileSource$readAtMostTo$lambda(this));
2034
2078
  if (tmp4_safe_receiver == null)
2035
2079
  null;
2036
2080
  else {
2037
2081
  // Inline function 'kotlin.also' call
2038
2082
  // Inline function 'kotlinx.io.files.FileSource.readAtMostTo.<anonymous>' call
2039
- throw IOException_init_$Create$_1('Failed to read data from ' + this.z2i_1.x2i_1, tmp4_safe_receiver);
2083
+ throw IOException_init_$Create$_1('Failed to read data from ' + this.a2k_1.y2j_1, tmp4_safe_receiver);
2040
2084
  }
2041
2085
  }
2042
- var len = ensureNotNull(this.a2j_1).length;
2043
- if (this.c2j_1 >= len) {
2086
+ var len = ensureNotNull(this.b2k_1).length;
2087
+ if (this.d2k_1 >= len) {
2044
2088
  return new Long(-1, -1);
2045
2089
  }
2046
2090
  // Inline function 'kotlinx.io.minOf' call
2047
- var b = len - this.c2j_1 | 0;
2091
+ var b = len - this.d2k_1 | 0;
2048
2092
  // Inline function 'kotlin.comparisons.minOf' call
2049
2093
  var b_0 = toLong(b);
2050
- var bytesToRead = byteCount.j1(b_0) <= 0 ? byteCount : b_0;
2094
+ var bytesToRead = byteCount.d1(b_0) <= 0 ? byteCount : b_0;
2051
2095
  var inductionVariable = new Long(0, 0);
2052
- if (inductionVariable.j1(bytesToRead) < 0)
2096
+ if (inductionVariable.d1(bytesToRead) < 0)
2053
2097
  do {
2054
2098
  var i = inductionVariable;
2055
- inductionVariable = inductionVariable.z2(new Long(1, 0));
2056
- var tmp = ensureNotNull(this.a2j_1);
2057
- var _unary__edvuaz = this.c2j_1;
2058
- this.c2j_1 = _unary__edvuaz + 1 | 0;
2059
- sink.l2h(tmp.readInt8(_unary__edvuaz));
2099
+ inductionVariable = inductionVariable.y2(new Long(1, 0));
2100
+ var tmp = ensureNotNull(this.b2k_1);
2101
+ var _unary__edvuaz = this.d2k_1;
2102
+ this.d2k_1 = _unary__edvuaz + 1 | 0;
2103
+ sink.m2i(tmp.readInt8(_unary__edvuaz));
2060
2104
  }
2061
- while (inductionVariable.j1(bytesToRead) < 0);
2105
+ while (inductionVariable.d1(bytesToRead) < 0);
2062
2106
  return bytesToRead;
2063
2107
  };
2108
+ protoOf(FileSource).g4 = function () {
2109
+ if (!this.c2k_1) {
2110
+ this.c2k_1 = true;
2111
+ get_fs().closeSync(this.e2k_1);
2112
+ }
2113
+ };
2064
2114
  function open_0($this, path, append) {
2065
2115
  var flags = append ? 'a' : 'w';
2066
2116
  var fd = {_v: -1};
@@ -2070,31 +2120,31 @@ function open_0($this, path, append) {
2070
2120
  else {
2071
2121
  // Inline function 'kotlin.also' call
2072
2122
  // Inline function 'kotlinx.io.files.FileSink.open.<anonymous>' call
2073
- throw IOException_init_$Create$_1('Failed to open a file ' + path.x2i_1 + '.', tmp5_safe_receiver);
2123
+ throw IOException_init_$Create$_1('Failed to open a file ' + path.y2j_1 + '.', tmp5_safe_receiver);
2074
2124
  }
2075
2125
  if (fd._v < 0)
2076
- throw IOException_init_$Create$_0('Failed to open a file ' + path.x2i_1 + '.');
2126
+ throw IOException_init_$Create$_0('Failed to open a file ' + path.y2j_1 + '.');
2077
2127
  return fd._v;
2078
2128
  }
2079
2129
  function FileSink$open$lambda($fd, $path, $flags) {
2080
2130
  return function () {
2081
- $fd._v = get_fs().openSync($path.x2i_1, $flags);
2131
+ $fd._v = get_fs().openSync($path.y2j_1, $flags);
2082
2132
  return Unit_instance;
2083
2133
  };
2084
2134
  }
2085
2135
  function FileSink$write$lambda(this$0, $buf) {
2086
2136
  return function () {
2087
- get_fs().writeFileSync(this$0.f2j_1, $buf);
2137
+ get_fs().writeFileSync(this$0.g2k_1, $buf);
2088
2138
  return Unit_instance;
2089
2139
  };
2090
2140
  }
2091
2141
  function FileSink(path, append) {
2092
- this.e2j_1 = false;
2093
- this.f2j_1 = open_0(this, path, append);
2142
+ this.f2k_1 = false;
2143
+ this.g2k_1 = open_0(this, path, append);
2094
2144
  }
2095
- protoOf(FileSink).a2h = function (source, byteCount) {
2145
+ protoOf(FileSink).b2i = function (source, byteCount) {
2096
2146
  // Inline function 'kotlin.check' call
2097
- if (!!this.e2j_1) {
2147
+ if (!!this.f2k_1) {
2098
2148
  // Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
2099
2149
  var message = 'Sink is closed.';
2100
2150
  throw IllegalStateException_init_$Create$(toString(message));
@@ -2104,21 +2154,21 @@ protoOf(FileSink).a2h = function (source, byteCount) {
2104
2154
  }
2105
2155
  // Inline function 'kotlin.comparisons.minOf' call
2106
2156
  var b = source.j();
2107
- var remainingBytes = byteCount.j1(b) <= 0 ? byteCount : b;
2108
- while (remainingBytes.j1(new Long(0, 0)) > 0) {
2157
+ var remainingBytes = byteCount.d1(b) <= 0 ? byteCount : b;
2158
+ while (remainingBytes.d1(new Long(0, 0)) > 0) {
2109
2159
  var segmentBytes = 0;
2110
2160
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead' call
2111
2161
  // Inline function 'kotlin.require' call
2112
- if (!!source.j2g()) {
2162
+ if (!!source.k2h()) {
2113
2163
  // Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.readFromHead.<anonymous>' call
2114
2164
  var message_0 = 'Buffer is empty';
2115
2165
  throw IllegalArgumentException_init_$Create$(toString(message_0));
2116
2166
  }
2117
- var head = ensureNotNull(source.f2g_1);
2118
- var tmp5 = head.d2i(true);
2119
- var tmp6 = head.p2g_1;
2167
+ var head = ensureNotNull(source.g2h_1);
2168
+ var tmp5 = head.e2j(true);
2169
+ var tmp6 = head.q2h_1;
2120
2170
  // Inline function 'kotlinx.io.files.FileSink.write.<anonymous>' call
2121
- segmentBytes = head.q2g_1 - tmp6 | 0;
2171
+ segmentBytes = head.r2h_1 - tmp6 | 0;
2122
2172
  var buf = get_buffer().Buffer.allocUnsafe(segmentBytes);
2123
2173
  var inductionVariable = 0;
2124
2174
  var last = segmentBytes;
@@ -2143,17 +2193,23 @@ protoOf(FileSink).a2h = function (source, byteCount) {
2143
2193
  throw IllegalStateException_init_$Create$('Returned negative read bytes count');
2144
2194
  if (bytesRead > head.j())
2145
2195
  throw IllegalStateException_init_$Create$('Returned too many bytes');
2146
- source.v2g(toLong(bytesRead));
2196
+ source.w2h(toLong(bytesRead));
2147
2197
  }
2148
2198
  var tmp8 = remainingBytes;
2149
2199
  // Inline function 'kotlin.Long.minus' call
2150
2200
  var other = segmentBytes;
2151
- remainingBytes = tmp8.a3(toLong(other));
2201
+ remainingBytes = tmp8.z2(toLong(other));
2152
2202
  }
2153
2203
  };
2154
- protoOf(FileSink).r8 = function () {
2204
+ protoOf(FileSink).f9 = function () {
2155
2205
  return Unit_instance;
2156
2206
  };
2207
+ protoOf(FileSink).g4 = function () {
2208
+ if (!this.f2k_1) {
2209
+ this.f2k_1 = true;
2210
+ get_fs().closeSync(this.g2k_1);
2211
+ }
2212
+ };
2157
2213
  function Path_2(path) {
2158
2214
  _init_properties_PathsNodeJs_kt__bvvvsp();
2159
2215
  return new Path_1(path, null);
@@ -2180,7 +2236,7 @@ function _init_properties_PathsNodeJs_kt__bvvvsp() {
2180
2236
  }
2181
2237
  }
2182
2238
  //region block: post-declaration
2183
- protoOf(SystemFileSystemImpl).r2i = sink$default;
2239
+ protoOf(SystemFileSystemImpl).s2j = sink$default;
2184
2240
  //endregion
2185
2241
  //region block: init
2186
2242
  Companion_instance = new Companion();