git-semver-tagger 1.8.4 → 1.8.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.
- package/kotlin/clikt-clikt-mordant.js +77 -77
- package/kotlin/clikt-clikt.js +1304 -1304
- package/kotlin/colormath-root-colormath.js +434 -434
- package/kotlin/command-line-tools-tagger-cli.js +153 -77
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +6 -6
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1209 -1179
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant.js +1173 -1173
- package/kotlin/tools-tagger-json.js +76 -76
- package/package.json +1 -1
|
@@ -141,26 +141,26 @@
|
|
|
141
141
|
} else if (other === get_DEFAULT_STYLE()) {
|
|
142
142
|
tmp = this;
|
|
143
143
|
} else {
|
|
144
|
-
var tmp0_elvis_lhs = other.
|
|
145
|
-
var tmp_0 = tmp0_elvis_lhs == null ? this.
|
|
146
|
-
var tmp1_elvis_lhs = other.
|
|
147
|
-
var tmp_1 = tmp1_elvis_lhs == null ? this.
|
|
148
|
-
var tmp2_elvis_lhs = other.
|
|
149
|
-
var tmp_2 = tmp2_elvis_lhs == null ? this.
|
|
150
|
-
var tmp3_elvis_lhs = other.
|
|
151
|
-
var tmp_3 = tmp3_elvis_lhs == null ? this.
|
|
152
|
-
var tmp4_elvis_lhs = other.
|
|
153
|
-
var tmp_4 = tmp4_elvis_lhs == null ? this.
|
|
154
|
-
var tmp5_elvis_lhs = other.
|
|
155
|
-
var tmp_5 = tmp5_elvis_lhs == null ? this.
|
|
156
|
-
var tmp6_elvis_lhs = other.
|
|
157
|
-
var tmp_6 = tmp6_elvis_lhs == null ? this.
|
|
158
|
-
var tmp7_elvis_lhs = other.
|
|
159
|
-
var tmp_7 = tmp7_elvis_lhs == null ? this.
|
|
160
|
-
var tmp8_elvis_lhs = other.
|
|
161
|
-
var tmp_8 = tmp8_elvis_lhs == null ? this.
|
|
162
|
-
var tmp9_elvis_lhs = other.
|
|
163
|
-
tmp = new TxtStyle(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, tmp9_elvis_lhs == null ? this.
|
|
144
|
+
var tmp0_elvis_lhs = other.f2c();
|
|
145
|
+
var tmp_0 = tmp0_elvis_lhs == null ? this.f2c() : tmp0_elvis_lhs;
|
|
146
|
+
var tmp1_elvis_lhs = other.g2c();
|
|
147
|
+
var tmp_1 = tmp1_elvis_lhs == null ? this.g2c() : tmp1_elvis_lhs;
|
|
148
|
+
var tmp2_elvis_lhs = other.l2c();
|
|
149
|
+
var tmp_2 = tmp2_elvis_lhs == null ? this.l2c() : tmp2_elvis_lhs;
|
|
150
|
+
var tmp3_elvis_lhs = other.h2c();
|
|
151
|
+
var tmp_3 = tmp3_elvis_lhs == null ? this.h2c() : tmp3_elvis_lhs;
|
|
152
|
+
var tmp4_elvis_lhs = other.i2c();
|
|
153
|
+
var tmp_4 = tmp4_elvis_lhs == null ? this.i2c() : tmp4_elvis_lhs;
|
|
154
|
+
var tmp5_elvis_lhs = other.m2c();
|
|
155
|
+
var tmp_5 = tmp5_elvis_lhs == null ? this.m2c() : tmp5_elvis_lhs;
|
|
156
|
+
var tmp6_elvis_lhs = other.j2c();
|
|
157
|
+
var tmp_6 = tmp6_elvis_lhs == null ? this.j2c() : tmp6_elvis_lhs;
|
|
158
|
+
var tmp7_elvis_lhs = other.k2c();
|
|
159
|
+
var tmp_7 = tmp7_elvis_lhs == null ? this.k2c() : tmp7_elvis_lhs;
|
|
160
|
+
var tmp8_elvis_lhs = other.n2c();
|
|
161
|
+
var tmp_8 = tmp8_elvis_lhs == null ? this.n2c() : tmp8_elvis_lhs;
|
|
162
|
+
var tmp9_elvis_lhs = other.o2c();
|
|
163
|
+
tmp = new TxtStyle(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, tmp9_elvis_lhs == null ? this.o2c() : tmp9_elvis_lhs);
|
|
164
164
|
}
|
|
165
165
|
return tmp;
|
|
166
166
|
}
|
|
@@ -172,8 +172,8 @@
|
|
|
172
172
|
initMetadataForClass(ThemeBuilder, 'ThemeBuilder');
|
|
173
173
|
initMetadataForClass(Whitespace, 'Whitespace', VOID, Enum);
|
|
174
174
|
function render$default(t, width, $super) {
|
|
175
|
-
width = width === VOID ? t.p().
|
|
176
|
-
return $super === VOID ? this.
|
|
175
|
+
width = width === VOID ? t.p().a2f_1 : width;
|
|
176
|
+
return $super === VOID ? this.p2g(t, width) : $super.p2g.call(this, t, width);
|
|
177
177
|
}
|
|
178
178
|
initMetadataForInterface(Widget, 'Widget');
|
|
179
179
|
initMetadataForClass(WidthRange, 'WidthRange');
|
|
@@ -196,10 +196,10 @@
|
|
|
196
196
|
init = tmp;
|
|
197
197
|
var tmp_0;
|
|
198
198
|
if ($super === VOID) {
|
|
199
|
-
this.
|
|
199
|
+
this.u2j(cells, init);
|
|
200
200
|
tmp_0 = Unit_instance;
|
|
201
201
|
} else {
|
|
202
|
-
tmp_0 = $super.
|
|
202
|
+
tmp_0 = $super.u2j.call(this, cells, init);
|
|
203
203
|
}
|
|
204
204
|
return tmp_0;
|
|
205
205
|
}
|
|
@@ -213,10 +213,10 @@
|
|
|
213
213
|
init = tmp;
|
|
214
214
|
var tmp_0;
|
|
215
215
|
if ($super === VOID) {
|
|
216
|
-
this.
|
|
216
|
+
this.w2j(content, init);
|
|
217
217
|
tmp_0 = Unit_instance;
|
|
218
218
|
} else {
|
|
219
|
-
tmp_0 = $super.
|
|
219
|
+
tmp_0 = $super.w2j.call(this, content, init);
|
|
220
220
|
}
|
|
221
221
|
return tmp_0;
|
|
222
222
|
}
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
initMetadataForCompanion(Companion_2);
|
|
225
225
|
initMetadataForClass(ColumnWidth, 'ColumnWidth');
|
|
226
226
|
function padding(all) {
|
|
227
|
-
this.
|
|
227
|
+
this.c2k(Padding_init_$Create$(all));
|
|
228
228
|
}
|
|
229
229
|
initMetadataForInterface(CellStyleBuilder, 'CellStyleBuilder');
|
|
230
230
|
initMetadataForClass(VerticalLayoutBuilderInstance, 'VerticalLayoutBuilderInstance', VerticalLayoutBuilderInstance, VOID, [LinearLayoutBuilder]);
|
|
@@ -274,30 +274,30 @@
|
|
|
274
274
|
//endregion
|
|
275
275
|
function AnsiCodes() {
|
|
276
276
|
AnsiCodes_instance = this;
|
|
277
|
-
this.
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
286
|
-
this.
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
277
|
+
this.h2b_1 = numberRangeToNumber(30, 37);
|
|
278
|
+
this.i2b_1 = numberRangeToNumber(90, 97);
|
|
279
|
+
this.j2b_1 = 38;
|
|
280
|
+
this.k2b_1 = 39;
|
|
281
|
+
this.l2b_1 = 10;
|
|
282
|
+
this.m2b_1 = numberRangeToNumber(40, 47);
|
|
283
|
+
this.n2b_1 = numberRangeToNumber(100, 107);
|
|
284
|
+
this.o2b_1 = 48;
|
|
285
|
+
this.p2b_1 = 49;
|
|
286
|
+
this.q2b_1 = 5;
|
|
287
|
+
this.r2b_1 = 2;
|
|
288
|
+
this.s2b_1 = 58;
|
|
289
|
+
this.t2b_1 = 0;
|
|
290
|
+
this.u2b_1 = 1;
|
|
291
|
+
this.v2b_1 = 22;
|
|
292
|
+
this.w2b_1 = 2;
|
|
293
|
+
this.x2b_1 = 3;
|
|
294
|
+
this.y2b_1 = 23;
|
|
295
|
+
this.z2b_1 = 4;
|
|
296
|
+
this.a2c_1 = 24;
|
|
297
|
+
this.b2c_1 = 7;
|
|
298
|
+
this.c2c_1 = 27;
|
|
299
|
+
this.d2c_1 = 9;
|
|
300
|
+
this.e2c_1 = 29;
|
|
301
301
|
}
|
|
302
302
|
var AnsiCodes_instance;
|
|
303
303
|
function AnsiCodes_getInstance() {
|
|
@@ -320,39 +320,39 @@
|
|
|
320
320
|
return '';
|
|
321
321
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
322
322
|
var codes = ArrayList_init_$Create$();
|
|
323
|
-
if (!equals(old.
|
|
323
|
+
if (!equals(old.f2c(), new_0.f2c())) {
|
|
324
324
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
325
|
-
var elements = toAnsi(new_0.
|
|
325
|
+
var elements = toAnsi(new_0.f2c(), 38, 39, 0);
|
|
326
326
|
addAll(codes, elements);
|
|
327
327
|
}
|
|
328
|
-
if (!equals(old.
|
|
328
|
+
if (!equals(old.g2c(), new_0.g2c())) {
|
|
329
329
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
330
|
-
var elements_0 = toAnsi(new_0.
|
|
330
|
+
var elements_0 = toAnsi(new_0.g2c(), 48, 49, 10);
|
|
331
331
|
addAll(codes, elements_0);
|
|
332
332
|
}
|
|
333
|
-
makeTag$style(codes, old.
|
|
334
|
-
makeTag$style(codes, old.
|
|
335
|
-
makeTag$style(codes, old.
|
|
336
|
-
makeTag$style(codes, old.
|
|
337
|
-
if (old.
|
|
333
|
+
makeTag$style(codes, old.h2c(), new_0.h2c(), 3, 23);
|
|
334
|
+
makeTag$style(codes, old.i2c(), new_0.i2c(), 4, 24);
|
|
335
|
+
makeTag$style(codes, old.j2c(), new_0.j2c(), 7, 27);
|
|
336
|
+
makeTag$style(codes, old.k2c(), new_0.k2c(), 9, 29);
|
|
337
|
+
if (old.l2c() === true && !(new_0.l2c() === true) || (old.m2c() === true && !(new_0.m2c() === true))) {
|
|
338
338
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
339
339
|
codes.e(22);
|
|
340
|
-
if (new_0.
|
|
340
|
+
if (new_0.l2c() === true) {
|
|
341
341
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
342
342
|
codes.e(1);
|
|
343
343
|
}
|
|
344
|
-
if (new_0.
|
|
344
|
+
if (new_0.m2c() === true) {
|
|
345
345
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
346
346
|
codes.e(2);
|
|
347
347
|
}
|
|
348
348
|
} else {
|
|
349
|
-
makeTag$style(codes, old.
|
|
350
|
-
makeTag$style(codes, old.
|
|
349
|
+
makeTag$style(codes, old.l2c(), new_0.l2c(), 1, 22);
|
|
350
|
+
makeTag$style(codes, old.m2c(), new_0.m2c(), 2, 22);
|
|
351
351
|
}
|
|
352
352
|
var csi = codes.j() ? '' : joinToString(codes, ';', '\x1B[', 'm');
|
|
353
353
|
var tmp;
|
|
354
|
-
if (!(old.
|
|
355
|
-
tmp = csi + makeHyperlinkTag(new_0.
|
|
354
|
+
if (!(old.n2c() == new_0.n2c()) && !(new_0.n2c() === '__mordant_reset__')) {
|
|
355
|
+
tmp = csi + makeHyperlinkTag(new_0.n2c(), new_0.o2c());
|
|
356
356
|
} else {
|
|
357
357
|
tmp = csi;
|
|
358
358
|
}
|
|
@@ -360,29 +360,29 @@
|
|
|
360
360
|
}
|
|
361
361
|
function toAnsi(_this__u8e3s4, select, reset, offset) {
|
|
362
362
|
var tmp34_safe_receiver = (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, TextStyle) : false) ? _this__u8e3s4 : null;
|
|
363
|
-
var tmp0_elvis_lhs = tmp34_safe_receiver == null ? null : tmp34_safe_receiver.
|
|
363
|
+
var tmp0_elvis_lhs = tmp34_safe_receiver == null ? null : tmp34_safe_receiver.f2c();
|
|
364
364
|
var it = tmp0_elvis_lhs == null ? _this__u8e3s4 : tmp0_elvis_lhs;
|
|
365
365
|
var tmp;
|
|
366
366
|
if (it == null) {
|
|
367
367
|
tmp = listOf_0(reset);
|
|
368
368
|
} else {
|
|
369
369
|
if (it instanceof Ansi16) {
|
|
370
|
-
switch (it.
|
|
370
|
+
switch (it.m27_1) {
|
|
371
371
|
case 39:
|
|
372
372
|
case 49:
|
|
373
373
|
tmp = listOf_0(reset);
|
|
374
374
|
break;
|
|
375
375
|
default:
|
|
376
|
-
tmp = listOf_0(it.
|
|
376
|
+
tmp = listOf_0(it.m27_1 + offset | 0);
|
|
377
377
|
break;
|
|
378
378
|
}
|
|
379
379
|
} else {
|
|
380
380
|
if (it instanceof Ansi256) {
|
|
381
|
-
tmp = listOf([select, 5, it.
|
|
381
|
+
tmp = listOf([select, 5, it.q27_1]);
|
|
382
382
|
} else {
|
|
383
383
|
// Inline function 'kotlin.run' call
|
|
384
|
-
var $this$run = it.
|
|
385
|
-
tmp = listOf([select, 2, $this$run.
|
|
384
|
+
var $this$run = it.n26().w29();
|
|
385
|
+
tmp = listOf([select, 2, $this$run.k29(), $this$run.l29(), $this$run.m29()]);
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
}
|
|
@@ -406,7 +406,7 @@
|
|
|
406
406
|
// Inline function 'kotlin.text.buildString' call
|
|
407
407
|
// Inline function 'kotlin.apply' call
|
|
408
408
|
var this_0 = StringBuilder_init_$Create$();
|
|
409
|
-
var iterator = lines.
|
|
409
|
+
var iterator = lines.p2c_1.m();
|
|
410
410
|
var index = 0;
|
|
411
411
|
while (iterator.n()) {
|
|
412
412
|
var i = index;
|
|
@@ -419,10 +419,10 @@
|
|
|
419
419
|
var _iterator__ex2g4s = line.m();
|
|
420
420
|
while (_iterator__ex2g4s.n()) {
|
|
421
421
|
var span = _iterator__ex2g4s.o();
|
|
422
|
-
var newStyle = downsample(span.
|
|
422
|
+
var newStyle = downsample(span.t2c_1, level, hyperlinks);
|
|
423
423
|
this_0.j8(makeTag(activeStyle, newStyle));
|
|
424
424
|
activeStyle = newStyle;
|
|
425
|
-
this_0.j8(span.
|
|
425
|
+
this_0.j8(span.s2c_1);
|
|
426
426
|
}
|
|
427
427
|
this_0.j8(makeTag(activeStyle, get_DEFAULT_STYLE()));
|
|
428
428
|
}
|
|
@@ -439,7 +439,7 @@
|
|
|
439
439
|
tmp_0 = get_DEFAULT_STYLE();
|
|
440
440
|
break;
|
|
441
441
|
case 1:
|
|
442
|
-
var tmp29_safe_receiver = style.
|
|
442
|
+
var tmp29_safe_receiver = style.f2c();
|
|
443
443
|
var tmp_1;
|
|
444
444
|
if (tmp29_safe_receiver == null) {
|
|
445
445
|
tmp_1 = null;
|
|
@@ -449,13 +449,13 @@
|
|
|
449
449
|
if (tmp29_safe_receiver instanceof Ansi16) {
|
|
450
450
|
tmp_2 = tmp29_safe_receiver;
|
|
451
451
|
} else {
|
|
452
|
-
tmp_2 = tmp29_safe_receiver.
|
|
452
|
+
tmp_2 = tmp29_safe_receiver.n26().w29().r27();
|
|
453
453
|
}
|
|
454
454
|
tmp_1 = tmp_2;
|
|
455
455
|
}
|
|
456
456
|
|
|
457
457
|
var tmp_3 = tmp_1;
|
|
458
|
-
var tmp30_safe_receiver = style.
|
|
458
|
+
var tmp30_safe_receiver = style.g2c();
|
|
459
459
|
var tmp_4;
|
|
460
460
|
if (tmp30_safe_receiver == null) {
|
|
461
461
|
tmp_4 = null;
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
if (tmp30_safe_receiver instanceof Ansi16) {
|
|
466
466
|
tmp_5 = tmp30_safe_receiver;
|
|
467
467
|
} else {
|
|
468
|
-
tmp_5 = tmp30_safe_receiver.
|
|
468
|
+
tmp_5 = tmp30_safe_receiver.n26().w29().r27();
|
|
469
469
|
}
|
|
470
470
|
tmp_4 = tmp_5;
|
|
471
471
|
}
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
var tmp_6 = tmp_4;
|
|
474
474
|
// Inline function 'kotlin.takeIf' call
|
|
475
475
|
|
|
476
|
-
var this_0 = style.
|
|
476
|
+
var this_0 = style.n2c();
|
|
477
477
|
var tmp_7;
|
|
478
478
|
if (hyperlinks) {
|
|
479
479
|
tmp_7 = this_0;
|
|
@@ -484,7 +484,7 @@
|
|
|
484
484
|
var tmp_8 = tmp_7;
|
|
485
485
|
// Inline function 'kotlin.takeIf' call
|
|
486
486
|
|
|
487
|
-
var this_1 = style.
|
|
487
|
+
var this_1 = style.o2c();
|
|
488
488
|
var tmp_9;
|
|
489
489
|
if (hyperlinks) {
|
|
490
490
|
tmp_9 = this_1;
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
tmp_0 = copy(style, tmp_3, tmp_6, tmp_8, tmp$ret$7);
|
|
497
497
|
break;
|
|
498
498
|
case 2:
|
|
499
|
-
var tmp31_safe_receiver = style.
|
|
499
|
+
var tmp31_safe_receiver = style.f2c();
|
|
500
500
|
var tmp_10;
|
|
501
501
|
if (tmp31_safe_receiver == null) {
|
|
502
502
|
tmp_10 = null;
|
|
@@ -512,13 +512,13 @@
|
|
|
512
512
|
if (tmp_12) {
|
|
513
513
|
tmp_11 = tmp31_safe_receiver;
|
|
514
514
|
} else {
|
|
515
|
-
tmp_11 = tmp31_safe_receiver.
|
|
515
|
+
tmp_11 = tmp31_safe_receiver.n26().w29().v29();
|
|
516
516
|
}
|
|
517
517
|
tmp_10 = tmp_11;
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
var tmp_13 = tmp_10;
|
|
521
|
-
var tmp32_safe_receiver = style.
|
|
521
|
+
var tmp32_safe_receiver = style.g2c();
|
|
522
522
|
var tmp_14;
|
|
523
523
|
if (tmp32_safe_receiver == null) {
|
|
524
524
|
tmp_14 = null;
|
|
@@ -534,7 +534,7 @@
|
|
|
534
534
|
if (tmp_16) {
|
|
535
535
|
tmp_15 = tmp32_safe_receiver;
|
|
536
536
|
} else {
|
|
537
|
-
tmp_15 = tmp32_safe_receiver.
|
|
537
|
+
tmp_15 = tmp32_safe_receiver.n26().w29().v29();
|
|
538
538
|
}
|
|
539
539
|
tmp_14 = tmp_15;
|
|
540
540
|
}
|
|
@@ -542,7 +542,7 @@
|
|
|
542
542
|
var tmp_17 = tmp_14;
|
|
543
543
|
// Inline function 'kotlin.takeIf' call
|
|
544
544
|
|
|
545
|
-
var this_2 = style.
|
|
545
|
+
var this_2 = style.n2c();
|
|
546
546
|
var tmp_18;
|
|
547
547
|
if (hyperlinks) {
|
|
548
548
|
tmp_18 = this_2;
|
|
@@ -553,7 +553,7 @@
|
|
|
553
553
|
var tmp_19 = tmp_18;
|
|
554
554
|
// Inline function 'kotlin.takeIf' call
|
|
555
555
|
|
|
556
|
-
var this_3 = style.
|
|
556
|
+
var this_3 = style.o2c();
|
|
557
557
|
var tmp_20;
|
|
558
558
|
if (hyperlinks) {
|
|
559
559
|
tmp_20 = this_3;
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
tmp_0 = copy(style, tmp_13, tmp_17, tmp_19, tmp$ret$15);
|
|
566
566
|
break;
|
|
567
567
|
case 3:
|
|
568
|
-
tmp_0 = hyperlinks || style.
|
|
568
|
+
tmp_0 = hyperlinks || style.n2c() == null ? style : copy(style, style.f2c(), style.g2c(), null, null);
|
|
569
569
|
break;
|
|
570
570
|
default:
|
|
571
571
|
noWhenBranchMatchedException();
|
|
@@ -593,8 +593,8 @@
|
|
|
593
593
|
var new_0 = updateStyle($style._v, $this_invokeStyle, match.z());
|
|
594
594
|
var tmp_0;
|
|
595
595
|
if (match.id().b1_1 === 0) {
|
|
596
|
-
$openStyle._v = new_0.
|
|
597
|
-
$style._v = new_0.
|
|
596
|
+
$openStyle._v = new_0.v2c($this_invokeStyle);
|
|
597
|
+
$style._v = new_0.v2c($this_invokeStyle);
|
|
598
598
|
return '';
|
|
599
599
|
}
|
|
600
600
|
var tag = makeTag($style._v, new_0);
|
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
DEFAULT_STYLE = TextStyle_0(null, null, false, false, false, false, false, false, null);
|
|
636
636
|
EMPTY_LINES = new Lines(emptyList());
|
|
637
637
|
EMPTY_LINE = new Line(emptyList(), get_DEFAULT_STYLE());
|
|
638
|
-
SINGLE_SPACE = Companion_instance_0.
|
|
638
|
+
SINGLE_SPACE = Companion_instance_0.w2c(1);
|
|
639
639
|
DEFAULT_PADDING = Padding_init_$Create$(0);
|
|
640
640
|
ANSI_RE = Regex_init_$Create$('\x1B\\][^\x1B]*\x1B\\\\|\x1B(?:[@-Z\\\\-_]|\\[[0-?]*[ -/]*[@-~])');
|
|
641
641
|
}
|
|
@@ -647,7 +647,7 @@
|
|
|
647
647
|
var nextHyperlinkId;
|
|
648
648
|
function generateHyperlinkId() {
|
|
649
649
|
_init_properties_HyperlinkIds_kt__yuk2s2();
|
|
650
|
-
return get_nextHyperlinkId().
|
|
650
|
+
return get_nextHyperlinkId().x2c().toString();
|
|
651
651
|
}
|
|
652
652
|
var properties_initialized_HyperlinkIds_kt_p1red0;
|
|
653
653
|
function _init_properties_HyperlinkIds_kt__yuk2s2() {
|
|
@@ -692,7 +692,7 @@
|
|
|
692
692
|
var hyperlink = tmp;
|
|
693
693
|
var tmp_0;
|
|
694
694
|
if (hyperlink == null) {
|
|
695
|
-
tmp_0 = defaultStyle.
|
|
695
|
+
tmp_0 = defaultStyle.o2c();
|
|
696
696
|
} else {
|
|
697
697
|
// Inline function 'kotlin.collections.find' call
|
|
698
698
|
var tmp$ret$3;
|
|
@@ -712,7 +712,7 @@
|
|
|
712
712
|
tmp_0 = tmp37_safe_receiver == null ? null : drop(tmp37_safe_receiver, 3);
|
|
713
713
|
}
|
|
714
714
|
var id = tmp_0;
|
|
715
|
-
return copy(existingStyle, VOID, VOID, hyperlink == null ? defaultStyle.
|
|
715
|
+
return copy(existingStyle, VOID, VOID, hyperlink == null ? defaultStyle.n2c() : hyperlink, id);
|
|
716
716
|
}
|
|
717
717
|
function updateStyleWithCsi(ansi, existingStyle, defaultStyle) {
|
|
718
718
|
if (!endsWith(ansi, 'm'))
|
|
@@ -743,68 +743,68 @@
|
|
|
743
743
|
var codes = destination;
|
|
744
744
|
if (codes.j())
|
|
745
745
|
return defaultStyle;
|
|
746
|
-
var color = existingStyle.
|
|
747
|
-
var bgColor = existingStyle.
|
|
748
|
-
var bold = existingStyle.
|
|
749
|
-
var italic = existingStyle.
|
|
750
|
-
var underline = existingStyle.
|
|
751
|
-
var dim = existingStyle.
|
|
752
|
-
var inverse = existingStyle.
|
|
753
|
-
var strikethrough = existingStyle.
|
|
746
|
+
var color = existingStyle.f2c();
|
|
747
|
+
var bgColor = existingStyle.g2c();
|
|
748
|
+
var bold = existingStyle.l2c();
|
|
749
|
+
var italic = existingStyle.h2c();
|
|
750
|
+
var underline = existingStyle.i2c();
|
|
751
|
+
var dim = existingStyle.m2c();
|
|
752
|
+
var inverse = existingStyle.j2c();
|
|
753
|
+
var strikethrough = existingStyle.k2c();
|
|
754
754
|
var i = 0;
|
|
755
755
|
$l$loop_1: while (i <= get_lastIndex_0(codes)) {
|
|
756
756
|
var code = codes.q(i);
|
|
757
757
|
if (code === 0) {
|
|
758
|
-
color = defaultStyle.
|
|
759
|
-
bgColor = defaultStyle.
|
|
760
|
-
var tmp0_elvis_lhs = defaultStyle.
|
|
758
|
+
color = defaultStyle.f2c();
|
|
759
|
+
bgColor = defaultStyle.g2c();
|
|
760
|
+
var tmp0_elvis_lhs = defaultStyle.l2c();
|
|
761
761
|
bold = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
762
|
-
var tmp1_elvis_lhs = defaultStyle.
|
|
762
|
+
var tmp1_elvis_lhs = defaultStyle.h2c();
|
|
763
763
|
italic = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
764
|
-
var tmp2_elvis_lhs = defaultStyle.
|
|
764
|
+
var tmp2_elvis_lhs = defaultStyle.i2c();
|
|
765
765
|
underline = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
766
|
-
var tmp3_elvis_lhs = defaultStyle.
|
|
766
|
+
var tmp3_elvis_lhs = defaultStyle.m2c();
|
|
767
767
|
dim = tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs;
|
|
768
|
-
var tmp4_elvis_lhs = defaultStyle.
|
|
768
|
+
var tmp4_elvis_lhs = defaultStyle.j2c();
|
|
769
769
|
inverse = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
770
|
-
var tmp5_elvis_lhs = defaultStyle.
|
|
770
|
+
var tmp5_elvis_lhs = defaultStyle.k2c();
|
|
771
771
|
strikethrough = tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs;
|
|
772
772
|
} else {
|
|
773
773
|
if (code === 22) {
|
|
774
|
-
var tmp6_elvis_lhs = defaultStyle.
|
|
774
|
+
var tmp6_elvis_lhs = defaultStyle.l2c();
|
|
775
775
|
bold = tmp6_elvis_lhs == null ? false : tmp6_elvis_lhs;
|
|
776
|
-
var tmp7_elvis_lhs = defaultStyle.
|
|
776
|
+
var tmp7_elvis_lhs = defaultStyle.m2c();
|
|
777
777
|
dim = tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs;
|
|
778
778
|
} else {
|
|
779
779
|
if (code === 23) {
|
|
780
|
-
var tmp8_elvis_lhs = defaultStyle.
|
|
780
|
+
var tmp8_elvis_lhs = defaultStyle.h2c();
|
|
781
781
|
italic = tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs;
|
|
782
782
|
} else {
|
|
783
783
|
if (code === 24) {
|
|
784
|
-
var tmp9_elvis_lhs = defaultStyle.
|
|
784
|
+
var tmp9_elvis_lhs = defaultStyle.i2c();
|
|
785
785
|
underline = tmp9_elvis_lhs == null ? false : tmp9_elvis_lhs;
|
|
786
786
|
} else {
|
|
787
787
|
if (code === 27) {
|
|
788
|
-
var tmp10_elvis_lhs = defaultStyle.
|
|
788
|
+
var tmp10_elvis_lhs = defaultStyle.j2c();
|
|
789
789
|
inverse = tmp10_elvis_lhs == null ? false : tmp10_elvis_lhs;
|
|
790
790
|
} else {
|
|
791
791
|
if (code === 29) {
|
|
792
|
-
var tmp11_elvis_lhs = defaultStyle.
|
|
792
|
+
var tmp11_elvis_lhs = defaultStyle.k2c();
|
|
793
793
|
strikethrough = tmp11_elvis_lhs == null ? false : tmp11_elvis_lhs;
|
|
794
794
|
} else {
|
|
795
795
|
if (code === 39)
|
|
796
|
-
color = defaultStyle.
|
|
796
|
+
color = defaultStyle.f2c();
|
|
797
797
|
else {
|
|
798
798
|
if (code === 49)
|
|
799
|
-
bgColor = defaultStyle.
|
|
799
|
+
bgColor = defaultStyle.g2c();
|
|
800
800
|
else {
|
|
801
801
|
var tmp_0;
|
|
802
|
-
var progression = AnsiCodes_getInstance().
|
|
802
|
+
var progression = AnsiCodes_getInstance().h2b_1;
|
|
803
803
|
var containsLower = progression.b1_1;
|
|
804
804
|
if (code <= progression.c1_1 ? containsLower <= code : false) {
|
|
805
805
|
tmp_0 = true;
|
|
806
806
|
} else {
|
|
807
|
-
var progression_0 = AnsiCodes_getInstance().
|
|
807
|
+
var progression_0 = AnsiCodes_getInstance().i2b_1;
|
|
808
808
|
var containsLower_0 = progression_0.b1_1;
|
|
809
809
|
tmp_0 = code <= progression_0.c1_1 ? containsLower_0 <= code : false;
|
|
810
810
|
}
|
|
@@ -812,12 +812,12 @@
|
|
|
812
812
|
color = new Ansi16(code);
|
|
813
813
|
} else {
|
|
814
814
|
var tmp_1;
|
|
815
|
-
var progression_1 = AnsiCodes_getInstance().
|
|
815
|
+
var progression_1 = AnsiCodes_getInstance().m2b_1;
|
|
816
816
|
var containsLower_1 = progression_1.b1_1;
|
|
817
817
|
if (code <= progression_1.c1_1 ? containsLower_1 <= code : false) {
|
|
818
818
|
tmp_1 = true;
|
|
819
819
|
} else {
|
|
820
|
-
var progression_2 = AnsiCodes_getInstance().
|
|
820
|
+
var progression_2 = AnsiCodes_getInstance().n2b_1;
|
|
821
821
|
var containsLower_2 = progression_2.b1_1;
|
|
822
822
|
tmp_1 = code <= progression_2.c1_1 ? containsLower_2 <= code : false;
|
|
823
823
|
}
|
|
@@ -894,7 +894,7 @@
|
|
|
894
894
|
}
|
|
895
895
|
i = i + 1 | 0;
|
|
896
896
|
}
|
|
897
|
-
return new TxtStyle(color, bgColor, bold, italic, underline, dim, inverse, strikethrough, existingStyle.
|
|
897
|
+
return new TxtStyle(color, bgColor, bold, italic, underline, dim, inverse, strikethrough, existingStyle.n2c(), existingStyle.o2c());
|
|
898
898
|
}
|
|
899
899
|
function getAnsiColor(i, codes) {
|
|
900
900
|
var tmp;
|
|
@@ -946,7 +946,7 @@
|
|
|
946
946
|
if (tmp_3) {
|
|
947
947
|
tmp_2 = to(null, 0);
|
|
948
948
|
} else {
|
|
949
|
-
tmp_2 = to(Companion_getInstance().
|
|
949
|
+
tmp_2 = to(Companion_getInstance().o27(codes.q(i + 1 | 0), codes.q(i + 2 | 0), codes.q(i + 3 | 0)), 4);
|
|
950
950
|
}
|
|
951
951
|
|
|
952
952
|
tmp = tmp_2;
|
|
@@ -973,23 +973,23 @@
|
|
|
973
973
|
return new Lines(splitLines_0);
|
|
974
974
|
}
|
|
975
975
|
function Chunk(text, style) {
|
|
976
|
-
this.
|
|
977
|
-
this.
|
|
976
|
+
this.y2c_1 = text;
|
|
977
|
+
this.z2c_1 = style;
|
|
978
978
|
}
|
|
979
|
-
protoOf(Chunk).
|
|
979
|
+
protoOf(Chunk).a2d = function (text, style) {
|
|
980
980
|
return new Chunk(text, style);
|
|
981
981
|
};
|
|
982
|
-
protoOf(Chunk).
|
|
983
|
-
text = text === VOID ? this.
|
|
984
|
-
style = style === VOID ? this.
|
|
985
|
-
return $super === VOID ? this.
|
|
982
|
+
protoOf(Chunk).b2d = function (text, style, $super) {
|
|
983
|
+
text = text === VOID ? this.y2c_1 : text;
|
|
984
|
+
style = style === VOID ? this.z2c_1 : style;
|
|
985
|
+
return $super === VOID ? this.a2d(text, style) : $super.a2d.call(this, text, style);
|
|
986
986
|
};
|
|
987
987
|
protoOf(Chunk).toString = function () {
|
|
988
|
-
return 'Chunk(text=' + this.
|
|
988
|
+
return 'Chunk(text=' + this.y2c_1 + ', style=' + toString(this.z2c_1) + ')';
|
|
989
989
|
};
|
|
990
990
|
protoOf(Chunk).hashCode = function () {
|
|
991
|
-
var result = getStringHashCode(this.
|
|
992
|
-
result = imul(result, 31) + hashCode(this.
|
|
991
|
+
var result = getStringHashCode(this.y2c_1);
|
|
992
|
+
result = imul(result, 31) + hashCode(this.z2c_1) | 0;
|
|
993
993
|
return result;
|
|
994
994
|
};
|
|
995
995
|
protoOf(Chunk).equals = function (other) {
|
|
@@ -998,9 +998,9 @@
|
|
|
998
998
|
if (!(other instanceof Chunk))
|
|
999
999
|
return false;
|
|
1000
1000
|
var tmp0_other_with_cast = other instanceof Chunk ? other : THROW_CCE();
|
|
1001
|
-
if (!(this.
|
|
1001
|
+
if (!(this.y2c_1 === tmp0_other_with_cast.y2c_1))
|
|
1002
1002
|
return false;
|
|
1003
|
-
if (!equals(this.
|
|
1003
|
+
if (!equals(this.z2c_1, tmp0_other_with_cast.z2c_1))
|
|
1004
1004
|
return false;
|
|
1005
1005
|
return true;
|
|
1006
1006
|
};
|
|
@@ -1036,7 +1036,7 @@
|
|
|
1036
1036
|
var i = 0;
|
|
1037
1037
|
var start = 0;
|
|
1038
1038
|
var chunkType = -1;
|
|
1039
|
-
var t = chunk.
|
|
1039
|
+
var t = chunk.y2c_1;
|
|
1040
1040
|
while (i < t.length) {
|
|
1041
1041
|
var c = charCodeAt(t, i);
|
|
1042
1042
|
var type = c === _Char___init__impl__6a9atx(13) ? 0 : c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(9) || c === _Char___init__impl__6a9atx(133) || c === _Char___init__impl__6a9atx(8232) ? 1 : isWhitespace(c) ? 2 : 3;
|
|
@@ -1044,7 +1044,7 @@
|
|
|
1044
1044
|
chunkType = type;
|
|
1045
1045
|
} else if (type === 1 || !(chunkType === type)) {
|
|
1046
1046
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1047
|
-
var element = chunk.
|
|
1047
|
+
var element = chunk.b2d(substring(t, start, i));
|
|
1048
1048
|
chunks.e(element);
|
|
1049
1049
|
start = i;
|
|
1050
1050
|
chunkType = type;
|
|
@@ -1053,7 +1053,7 @@
|
|
|
1053
1053
|
}
|
|
1054
1054
|
if (!(start === i)) {
|
|
1055
1055
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1056
|
-
var element_0 = chunk.
|
|
1056
|
+
var element_0 = chunk.b2d(substring(t, start, i));
|
|
1057
1057
|
chunks.e(element_0);
|
|
1058
1058
|
}
|
|
1059
1059
|
return chunks;
|
|
@@ -1066,14 +1066,14 @@
|
|
|
1066
1066
|
var _iterator__ex2g4s = words.m();
|
|
1067
1067
|
while (_iterator__ex2g4s.n()) {
|
|
1068
1068
|
var word = _iterator__ex2g4s.o();
|
|
1069
|
-
if (endsWith(word.
|
|
1069
|
+
if (endsWith(word.y2c_1, '\n')) {
|
|
1070
1070
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1071
|
-
var element = new Line(line, word.
|
|
1071
|
+
var element = new Line(line, word.z2c_1);
|
|
1072
1072
|
lines.e(element);
|
|
1073
1073
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1074
1074
|
line = ArrayList_init_$Create$();
|
|
1075
1075
|
} else {
|
|
1076
|
-
line.e(Companion_instance_0.
|
|
1076
|
+
line.e(Companion_instance_0.c2d(word.y2c_1, word.z2c_1));
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
1079
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -1087,10 +1087,10 @@
|
|
|
1087
1087
|
null;
|
|
1088
1088
|
else {
|
|
1089
1089
|
// Inline function 'kotlin.let' call
|
|
1090
|
-
if (endsWith(tmp36_safe_receiver.
|
|
1090
|
+
if (endsWith(tmp36_safe_receiver.y2c_1, '\n')) {
|
|
1091
1091
|
// Inline function 'kotlin.collections.listOf' call
|
|
1092
1092
|
var tmp$ret$6 = emptyList();
|
|
1093
|
-
lines.e(new Line(tmp$ret$6, tmp36_safe_receiver.
|
|
1093
|
+
lines.e(new Line(tmp$ret$6, tmp36_safe_receiver.z2c_1));
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
1096
|
return lines;
|
|
@@ -1105,10 +1105,10 @@
|
|
|
1105
1105
|
var width = cellWidth(codepoint);
|
|
1106
1106
|
if (!(zwjSeq == null)) {
|
|
1107
1107
|
sumSinceZwj = sumSinceZwj + width | 0;
|
|
1108
|
-
if (zwjSeq.
|
|
1108
|
+
if (zwjSeq.e2d_1.l1(codepoint)) {
|
|
1109
1109
|
sumSinceZwj = 0;
|
|
1110
1110
|
}
|
|
1111
|
-
zwjSeq = zwjSeq.
|
|
1111
|
+
zwjSeq = zwjSeq.d2d_1.d2(codepoint);
|
|
1112
1112
|
if (zwjSeq == null) {
|
|
1113
1113
|
sum = sum + (sumSinceZwj + 2 | 0) | 0;
|
|
1114
1114
|
sumSinceZwj = 0;
|
|
@@ -1117,7 +1117,7 @@
|
|
|
1117
1117
|
}
|
|
1118
1118
|
} else {
|
|
1119
1119
|
if (couldStartEmojiSeq(codepoint)) {
|
|
1120
|
-
zwjSeq = get_EMOJI_SEQUENCES().
|
|
1120
|
+
zwjSeq = get_EMOJI_SEQUENCES().d2d_1.d2(codepoint);
|
|
1121
1121
|
}
|
|
1122
1122
|
if (zwjSeq == null) {
|
|
1123
1123
|
sum = sum + width | 0;
|
|
@@ -1135,17 +1135,17 @@
|
|
|
1135
1135
|
var min = 0;
|
|
1136
1136
|
var mid;
|
|
1137
1137
|
var max = get_lastIndex_1(table);
|
|
1138
|
-
if (codepoint < table[0].
|
|
1138
|
+
if (codepoint < table[0].f2d_1 || codepoint > table[max].g2d_1)
|
|
1139
1139
|
return 1;
|
|
1140
1140
|
while (max >= min) {
|
|
1141
1141
|
mid = (min + max | 0) / 2 | 0;
|
|
1142
1142
|
var entry = table[mid];
|
|
1143
|
-
if (codepoint > entry.
|
|
1143
|
+
if (codepoint > entry.g2d_1)
|
|
1144
1144
|
min = mid + 1 | 0;
|
|
1145
|
-
else if (codepoint < entry.
|
|
1145
|
+
else if (codepoint < entry.f2d_1)
|
|
1146
1146
|
max = mid - 1 | 0;
|
|
1147
1147
|
else
|
|
1148
|
-
return table[mid].
|
|
1148
|
+
return table[mid].h2d_1;
|
|
1149
1149
|
}
|
|
1150
1150
|
return 1;
|
|
1151
1151
|
}
|
|
@@ -5025,9 +5025,9 @@
|
|
|
5025
5025
|
}
|
|
5026
5026
|
var CELL_WIDTH_TABLE;
|
|
5027
5027
|
function CellWidthTableEntry(low, high, width) {
|
|
5028
|
-
this.
|
|
5029
|
-
this.
|
|
5030
|
-
this.
|
|
5028
|
+
this.f2d_1 = low;
|
|
5029
|
+
this.g2d_1 = high;
|
|
5030
|
+
this.h2d_1 = width;
|
|
5031
5031
|
}
|
|
5032
5032
|
var properties_initialized_cellwidthtable_kt_9uoib8;
|
|
5033
5033
|
function _init_properties_cellwidthtable_kt__xxkoba() {
|
|
@@ -5068,15 +5068,15 @@
|
|
|
5068
5068
|
tmp = values;
|
|
5069
5069
|
}
|
|
5070
5070
|
values = tmp;
|
|
5071
|
-
this.
|
|
5072
|
-
this.
|
|
5071
|
+
this.d2d_1 = children;
|
|
5072
|
+
this.e2d_1 = values;
|
|
5073
5073
|
}
|
|
5074
5074
|
protoOf(IntTrie).toString = function () {
|
|
5075
|
-
return 'IntTrie(children=' + toString(this.
|
|
5075
|
+
return 'IntTrie(children=' + toString(this.d2d_1) + ', values=' + toString(this.e2d_1) + ')';
|
|
5076
5076
|
};
|
|
5077
5077
|
protoOf(IntTrie).hashCode = function () {
|
|
5078
|
-
var result = hashCode(this.
|
|
5079
|
-
result = imul(result, 31) + hashCode(this.
|
|
5078
|
+
var result = hashCode(this.d2d_1);
|
|
5079
|
+
result = imul(result, 31) + hashCode(this.e2d_1) | 0;
|
|
5080
5080
|
return result;
|
|
5081
5081
|
};
|
|
5082
5082
|
protoOf(IntTrie).equals = function (other) {
|
|
@@ -5085,9 +5085,9 @@
|
|
|
5085
5085
|
if (!(other instanceof IntTrie))
|
|
5086
5086
|
return false;
|
|
5087
5087
|
var tmp0_other_with_cast = other instanceof IntTrie ? other : THROW_CCE();
|
|
5088
|
-
if (!equals(this.
|
|
5088
|
+
if (!equals(this.d2d_1, tmp0_other_with_cast.d2d_1))
|
|
5089
5089
|
return false;
|
|
5090
|
-
if (!equals(this.
|
|
5090
|
+
if (!equals(this.e2d_1, tmp0_other_with_cast.e2d_1))
|
|
5091
5091
|
return false;
|
|
5092
5092
|
return true;
|
|
5093
5093
|
};
|
|
@@ -5115,7 +5115,7 @@
|
|
|
5115
5115
|
do {
|
|
5116
5116
|
var i = inductionVariable_1;
|
|
5117
5117
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
5118
|
-
var tmp0 = node.
|
|
5118
|
+
var tmp0 = node.d2d_1;
|
|
5119
5119
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
5120
5120
|
var key = seq[i];
|
|
5121
5121
|
var value = tmp0.d2(key);
|
|
@@ -5130,7 +5130,7 @@
|
|
|
5130
5130
|
node = tmp;
|
|
5131
5131
|
}
|
|
5132
5132
|
while (inductionVariable_1 < last_2);
|
|
5133
|
-
var tmp0_0 = node.
|
|
5133
|
+
var tmp0_0 = node.e2d_1;
|
|
5134
5134
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5135
5135
|
var element = last_0(seq);
|
|
5136
5136
|
tmp0_0.e(element);
|
|
@@ -5151,13 +5151,13 @@
|
|
|
5151
5151
|
}
|
|
5152
5152
|
function MultiplatformSystem() {
|
|
5153
5153
|
}
|
|
5154
|
-
protoOf(MultiplatformSystem).
|
|
5154
|
+
protoOf(MultiplatformSystem).i2d = function (key) {
|
|
5155
5155
|
return getEnv(key);
|
|
5156
5156
|
};
|
|
5157
|
-
protoOf(MultiplatformSystem).
|
|
5157
|
+
protoOf(MultiplatformSystem).j2d = function (status) {
|
|
5158
5158
|
exitProcessMpp(status);
|
|
5159
5159
|
};
|
|
5160
|
-
protoOf(MultiplatformSystem).
|
|
5160
|
+
protoOf(MultiplatformSystem).k2d = function (path) {
|
|
5161
5161
|
var tmp;
|
|
5162
5162
|
try {
|
|
5163
5163
|
tmp = readFileIfExists(path);
|
|
@@ -5229,25 +5229,25 @@
|
|
|
5229
5229
|
}
|
|
5230
5230
|
function Companion() {
|
|
5231
5231
|
Companion_instance = this;
|
|
5232
|
-
this.
|
|
5233
|
-
this.
|
|
5234
|
-
this.
|
|
5235
|
-
this.
|
|
5236
|
-
this.
|
|
5237
|
-
this.
|
|
5238
|
-
this.
|
|
5239
|
-
this.
|
|
5240
|
-
this.
|
|
5241
|
-
}
|
|
5242
|
-
protoOf(Companion).
|
|
5232
|
+
this.l2d_1 = this.u2d('\u250C\u252C\u2510\u251C\u253C\u2524\u2514\u2534\u2518\u2500\u2502\u2577\u2575\u2574\u2576');
|
|
5233
|
+
this.m2d_1 = this.u2d('\u250C\u252C\u2510\u251C\u253C\u2524\u2514\u2534\u2518\u2500\u2502\u2577\u2575\u2574\u2576', '\u2552\u2564\u2555\u255E\u256A\u2561\u2558\u2567\u255B\u2550\u2502\u2577\u2575 ', '\u250C\u252C\u2510\u251C\u253C\u2524\u2514\u2534\u2518\u2500\u2502\u2577\u2575\u2574\u2576', '\u2552\u2564\u2555\u255E\u256A\u2561\u2558\u2567\u255B\u2550\u2502\u2577\u2575 ');
|
|
5234
|
+
this.n2d_1 = this.u2d('\u256D\u252C\u256E\u251C\u253C\u2524\u2570\u2534\u256F\u2500\u2502\u2577\u2575\u2574\u2576');
|
|
5235
|
+
this.o2d_1 = this.u2d('\u250F\u2533\u2513\u2523\u254B\u252B\u2517\u253B\u251B\u2501\u2503\u257B\u2579\u2578\u257A');
|
|
5236
|
+
this.p2d_1 = this.u2d('\u2554\u2566\u2557\u2560\u256C\u2563\u255A\u2569\u255D\u2550\u2551 ');
|
|
5237
|
+
this.q2d_1 = this.v2d('\u250F\u2533\u2513\u2523\u254B\u252B\u2517\u253B\u251B\u2501\u2503\u257B\u2579\u2578\u257A', '\u250D\u252F\u2511\u2521\u2547\u2529\u2517\u253B\u251B\u2501\u257F\u2577\u2579\u2578\u257A', '\u250C\u252C\u2510\u251C\u253C\u2524\u2514\u2534\u2518\u2500\u2502\u2577\u2575\u2574\u2576', '\u250F\u2533\u2513\u2522\u2548\u252A\u2515\u2537\u2519\u2501\u257D\u257B\u2575\u2578\u257A', '\u250F\u2533\u2513\u2523\u254B\u252B\u2517\u253B\u251B\u2501\u2503\u257B\u2579\u2578\u257A');
|
|
5238
|
+
this.r2d_1 = this.u2d('+++++++++-| ');
|
|
5239
|
+
this.s2d_1 = this.u2d('+++++++++-| ', '+++++++++=| ', '+++++++++-| ', '+++++++++=| ');
|
|
5240
|
+
this.t2d_1 = this.u2d(' ');
|
|
5241
|
+
}
|
|
5242
|
+
protoOf(Companion).v2d = function (head, headBottom, body, bodyBottom, foot) {
|
|
5243
5243
|
return new BorderType(BorderTypeSection_init_$Create$(head), BorderTypeSection_init_$Create$(headBottom), BorderTypeSection_init_$Create$(body), BorderTypeSection_init_$Create$(bodyBottom), BorderTypeSection_init_$Create$(foot));
|
|
5244
5244
|
};
|
|
5245
|
-
protoOf(Companion).
|
|
5245
|
+
protoOf(Companion).u2d = function (head, headBottom, body, bodyBottom, foot, $super) {
|
|
5246
5246
|
headBottom = headBottom === VOID ? head : headBottom;
|
|
5247
5247
|
body = body === VOID ? head : body;
|
|
5248
5248
|
bodyBottom = bodyBottom === VOID ? body : bodyBottom;
|
|
5249
5249
|
foot = foot === VOID ? body : foot;
|
|
5250
|
-
return $super === VOID ? this.
|
|
5250
|
+
return $super === VOID ? this.v2d(head, headBottom, body, bodyBottom, foot) : $super.v2d.call(this, head, headBottom, body, bodyBottom, foot);
|
|
5251
5251
|
};
|
|
5252
5252
|
var Companion_instance;
|
|
5253
5253
|
function Companion_getInstance_0() {
|
|
@@ -5257,11 +5257,11 @@
|
|
|
5257
5257
|
}
|
|
5258
5258
|
function BorderType(head, headBottom, body, bodyBottom, foot) {
|
|
5259
5259
|
Companion_getInstance_0();
|
|
5260
|
-
this.
|
|
5261
|
-
this.
|
|
5262
|
-
this.
|
|
5263
|
-
this.
|
|
5264
|
-
this.
|
|
5260
|
+
this.w2d_1 = head;
|
|
5261
|
+
this.x2d_1 = headBottom;
|
|
5262
|
+
this.y2d_1 = body;
|
|
5263
|
+
this.z2d_1 = bodyBottom;
|
|
5264
|
+
this.a2e_1 = foot;
|
|
5265
5265
|
}
|
|
5266
5266
|
function BorderTypeSection_init_$Init$(corners, $this) {
|
|
5267
5267
|
BorderTypeSection.call($this, toString_0(charCodeAt(corners, 0)), toString_0(charCodeAt(corners, 1)), toString_0(charCodeAt(corners, 2)), toString_0(charCodeAt(corners, 3)), toString_0(charCodeAt(corners, 4)), toString_0(charCodeAt(corners, 5)), toString_0(charCodeAt(corners, 6)), toString_0(charCodeAt(corners, 7)), toString_0(charCodeAt(corners, 8)), toString_0(charCodeAt(corners, 9)), toString_0(charCodeAt(corners, 10)), toString_0(charCodeAt(corners, 11)), toString_0(charCodeAt(corners, 12)), toString_0(charCodeAt(corners, 13)), toString_0(charCodeAt(corners, 14)));
|
|
@@ -5271,44 +5271,44 @@
|
|
|
5271
5271
|
return BorderTypeSection_init_$Init$(corners, objectCreate(protoOf(BorderTypeSection)));
|
|
5272
5272
|
}
|
|
5273
5273
|
function BorderTypeSection(es, esw, sw, nes, nesw, nsw, ne, new_0, nw, ew, ns, s, n, w, e) {
|
|
5274
|
-
this.
|
|
5275
|
-
this.
|
|
5276
|
-
this.
|
|
5277
|
-
this.
|
|
5278
|
-
this.
|
|
5279
|
-
this.
|
|
5280
|
-
this.
|
|
5281
|
-
this.
|
|
5282
|
-
this.
|
|
5283
|
-
this.
|
|
5284
|
-
this.
|
|
5285
|
-
this.
|
|
5286
|
-
this.
|
|
5287
|
-
this.
|
|
5288
|
-
this.
|
|
5274
|
+
this.b2e_1 = es;
|
|
5275
|
+
this.c2e_1 = esw;
|
|
5276
|
+
this.d2e_1 = sw;
|
|
5277
|
+
this.e2e_1 = nes;
|
|
5278
|
+
this.f2e_1 = nesw;
|
|
5279
|
+
this.g2e_1 = nsw;
|
|
5280
|
+
this.h2e_1 = ne;
|
|
5281
|
+
this.i2e_1 = new_0;
|
|
5282
|
+
this.j2e_1 = nw;
|
|
5283
|
+
this.k2e_1 = ew;
|
|
5284
|
+
this.l2e_1 = ns;
|
|
5285
|
+
this.m2e_1 = s;
|
|
5286
|
+
this.n2e_1 = n;
|
|
5287
|
+
this.o2e_1 = w;
|
|
5288
|
+
this.p2e_1 = e;
|
|
5289
5289
|
var tmp = this;
|
|
5290
5290
|
// Inline function 'kotlin.arrayOf' call
|
|
5291
5291
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5292
5292
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5293
|
-
tmp.
|
|
5293
|
+
tmp.q2e_1 = [' ', this.o2e_1, this.m2e_1, this.d2e_1, this.p2e_1, this.k2e_1, this.b2e_1, this.c2e_1, this.n2e_1, this.j2e_1, this.l2e_1, this.g2e_1, this.h2e_1, this.i2e_1, this.e2e_1, this.f2e_1];
|
|
5294
5294
|
}
|
|
5295
|
-
protoOf(BorderTypeSection).
|
|
5295
|
+
protoOf(BorderTypeSection).r2e = function (n, e, s, w, textStyle) {
|
|
5296
5296
|
var i = (n ? 8 : 0) | (e ? 4 : 0) | (s ? 2 : 0) | (w ? 1 : 0);
|
|
5297
|
-
return Companion_instance_0.
|
|
5297
|
+
return Companion_instance_0.c2d(this.q2e_1[i], textStyle);
|
|
5298
5298
|
};
|
|
5299
5299
|
function Lines(lines) {
|
|
5300
|
-
this.
|
|
5300
|
+
this.p2c_1 = lines;
|
|
5301
5301
|
}
|
|
5302
|
-
protoOf(Lines).
|
|
5303
|
-
return this.
|
|
5302
|
+
protoOf(Lines).s2e = function () {
|
|
5303
|
+
return this.p2c_1.p();
|
|
5304
5304
|
};
|
|
5305
|
-
protoOf(Lines).
|
|
5305
|
+
protoOf(Lines).t2e = function (style) {
|
|
5306
5306
|
var tmp;
|
|
5307
5307
|
if (style == null || equals(style, get_DEFAULT_STYLE())) {
|
|
5308
5308
|
tmp = this;
|
|
5309
5309
|
} else {
|
|
5310
5310
|
// Inline function 'kotlin.collections.map' call
|
|
5311
|
-
var this_0 = this.
|
|
5311
|
+
var this_0 = this.p2c_1;
|
|
5312
5312
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5313
5313
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
5314
5314
|
var _iterator__ex2g4s = this_0.m();
|
|
@@ -5320,10 +5320,10 @@
|
|
|
5320
5320
|
var _iterator__ex2g4s_0 = item.m();
|
|
5321
5321
|
while (_iterator__ex2g4s_0.n()) {
|
|
5322
5322
|
var item_0 = _iterator__ex2g4s_0.o();
|
|
5323
|
-
var tmp$ret$0 = item_0.
|
|
5323
|
+
var tmp$ret$0 = item_0.u2e(style);
|
|
5324
5324
|
destination_0.e(tmp$ret$0);
|
|
5325
5325
|
}
|
|
5326
|
-
var tmp$ret$3 = new Line(destination_0, item.
|
|
5326
|
+
var tmp$ret$3 = new Line(destination_0, item.r2c_1.v2c(style));
|
|
5327
5327
|
destination.e(tmp$ret$3);
|
|
5328
5328
|
}
|
|
5329
5329
|
tmp = new Lines(destination);
|
|
@@ -5332,7 +5332,7 @@
|
|
|
5332
5332
|
};
|
|
5333
5333
|
function Line_init_$Init$(spans, $this) {
|
|
5334
5334
|
var tmp44_safe_receiver = lastOrNull(spans);
|
|
5335
|
-
var tmp0_elvis_lhs = tmp44_safe_receiver == null ? null : tmp44_safe_receiver.
|
|
5335
|
+
var tmp0_elvis_lhs = tmp44_safe_receiver == null ? null : tmp44_safe_receiver.t2c_1;
|
|
5336
5336
|
Line.call($this, spans, tmp0_elvis_lhs == null ? get_DEFAULT_STYLE() : tmp0_elvis_lhs);
|
|
5337
5337
|
return $this;
|
|
5338
5338
|
}
|
|
@@ -5340,41 +5340,41 @@
|
|
|
5340
5340
|
return Line_init_$Init$(spans, objectCreate(protoOf(Line)));
|
|
5341
5341
|
}
|
|
5342
5342
|
function Line(spans, endStyle) {
|
|
5343
|
-
this.
|
|
5344
|
-
this.
|
|
5343
|
+
this.q2c_1 = spans;
|
|
5344
|
+
this.r2c_1 = endStyle;
|
|
5345
5345
|
}
|
|
5346
|
-
protoOf(Line).
|
|
5347
|
-
return this.
|
|
5346
|
+
protoOf(Line).v2e = function (element) {
|
|
5347
|
+
return this.q2c_1.l1(element);
|
|
5348
5348
|
};
|
|
5349
5349
|
protoOf(Line).l1 = function (element) {
|
|
5350
5350
|
if (!(element instanceof Span))
|
|
5351
5351
|
return false;
|
|
5352
|
-
return this.
|
|
5352
|
+
return this.v2e(element instanceof Span ? element : THROW_CCE());
|
|
5353
5353
|
};
|
|
5354
5354
|
protoOf(Line).q = function (index) {
|
|
5355
|
-
return this.
|
|
5355
|
+
return this.q2c_1.q(index);
|
|
5356
5356
|
};
|
|
5357
5357
|
protoOf(Line).j = function () {
|
|
5358
|
-
return this.
|
|
5358
|
+
return this.q2c_1.j();
|
|
5359
5359
|
};
|
|
5360
5360
|
protoOf(Line).m = function () {
|
|
5361
|
-
return this.
|
|
5361
|
+
return this.q2c_1.m();
|
|
5362
5362
|
};
|
|
5363
5363
|
protoOf(Line).v = function (index) {
|
|
5364
|
-
return this.
|
|
5364
|
+
return this.q2c_1.v(index);
|
|
5365
5365
|
};
|
|
5366
5366
|
protoOf(Line).z1 = function (fromIndex, toIndex) {
|
|
5367
|
-
return this.
|
|
5367
|
+
return this.q2c_1.z1(fromIndex, toIndex);
|
|
5368
5368
|
};
|
|
5369
5369
|
protoOf(Line).p = function () {
|
|
5370
|
-
return this.
|
|
5370
|
+
return this.q2c_1.p();
|
|
5371
5371
|
};
|
|
5372
5372
|
protoOf(Line).toString = function () {
|
|
5373
|
-
return 'Line(spans=' + toString(this.
|
|
5373
|
+
return 'Line(spans=' + toString(this.q2c_1) + ', endStyle=' + toString(this.r2c_1) + ')';
|
|
5374
5374
|
};
|
|
5375
5375
|
protoOf(Line).hashCode = function () {
|
|
5376
|
-
var result = hashCode(this.
|
|
5377
|
-
result = imul(result, 31) + hashCode(this.
|
|
5376
|
+
var result = hashCode(this.q2c_1);
|
|
5377
|
+
result = imul(result, 31) + hashCode(this.r2c_1) | 0;
|
|
5378
5378
|
return result;
|
|
5379
5379
|
};
|
|
5380
5380
|
protoOf(Line).equals = function (other) {
|
|
@@ -5383,20 +5383,20 @@
|
|
|
5383
5383
|
if (!(other instanceof Line))
|
|
5384
5384
|
return false;
|
|
5385
5385
|
var tmp0_other_with_cast = other instanceof Line ? other : THROW_CCE();
|
|
5386
|
-
if (!equals(this.
|
|
5386
|
+
if (!equals(this.q2c_1, tmp0_other_with_cast.q2c_1))
|
|
5387
5387
|
return false;
|
|
5388
|
-
if (!equals(this.
|
|
5388
|
+
if (!equals(this.r2c_1, tmp0_other_with_cast.r2c_1))
|
|
5389
5389
|
return false;
|
|
5390
5390
|
return true;
|
|
5391
5391
|
};
|
|
5392
5392
|
function get_lineWidth(_this__u8e3s4) {
|
|
5393
5393
|
// Inline function 'kotlin.collections.sumOf' call
|
|
5394
5394
|
var sum = 0;
|
|
5395
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
5395
|
+
var _iterator__ex2g4s = _this__u8e3s4.q2c_1.m();
|
|
5396
5396
|
while (_iterator__ex2g4s.n()) {
|
|
5397
5397
|
var element = _iterator__ex2g4s.o();
|
|
5398
5398
|
var tmp = sum;
|
|
5399
|
-
sum = tmp + element.
|
|
5399
|
+
sum = tmp + element.w2e() | 0;
|
|
5400
5400
|
}
|
|
5401
5401
|
return sum;
|
|
5402
5402
|
}
|
|
@@ -5447,7 +5447,7 @@
|
|
|
5447
5447
|
return Line_init_$Create$(line);
|
|
5448
5448
|
}
|
|
5449
5449
|
function setSize(_this__u8e3s4, newWidth, newHeight, verticalAlign, textAlign, scrollRight, scrollDown) {
|
|
5450
|
-
newHeight = newHeight === VOID ? _this__u8e3s4.
|
|
5450
|
+
newHeight = newHeight === VOID ? _this__u8e3s4.p2c_1.p() : newHeight;
|
|
5451
5451
|
verticalAlign = verticalAlign === VOID ? VerticalAlign_TOP_getInstance() : verticalAlign;
|
|
5452
5452
|
textAlign = textAlign === VOID ? TextAlign_NONE_getInstance() : textAlign;
|
|
5453
5453
|
scrollRight = scrollRight === VOID ? 0 : scrollRight;
|
|
@@ -5470,19 +5470,19 @@
|
|
|
5470
5470
|
while (inductionVariable < newHeight);
|
|
5471
5471
|
return new Lines(list);
|
|
5472
5472
|
}
|
|
5473
|
-
var emptyLine = Line_init_$Create$(listOf_0(Companion_instance_0.
|
|
5473
|
+
var emptyLine = Line_init_$Create$(listOf_0(Companion_instance_0.w2c(newWidth)));
|
|
5474
5474
|
var tmp;
|
|
5475
5475
|
if (scrollDown === 0) {
|
|
5476
|
-
tmp = _this__u8e3s4.
|
|
5476
|
+
tmp = _this__u8e3s4.p2c_1;
|
|
5477
5477
|
} else {
|
|
5478
|
-
var containsLower = -get_lastIndex_0(_this__u8e3s4.
|
|
5479
|
-
if (!(scrollDown <= get_lastIndex_0(_this__u8e3s4.
|
|
5478
|
+
var containsLower = -get_lastIndex_0(_this__u8e3s4.p2c_1) | 0;
|
|
5479
|
+
if (!(scrollDown <= get_lastIndex_0(_this__u8e3s4.p2c_1) ? containsLower <= scrollDown : false)) {
|
|
5480
5480
|
tmp = emptyList();
|
|
5481
5481
|
} else {
|
|
5482
5482
|
if (scrollDown < 0) {
|
|
5483
5483
|
// Inline function 'kotlin.collections.buildList' call
|
|
5484
5484
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
5485
|
-
var capacity = _this__u8e3s4.
|
|
5485
|
+
var capacity = _this__u8e3s4.p2c_1.p() - scrollDown | 0;
|
|
5486
5486
|
checkBuilderCapacity(capacity);
|
|
5487
5487
|
// Inline function 'kotlin.apply' call
|
|
5488
5488
|
var this_0 = ArrayList_init_$Create$_0(capacity);
|
|
@@ -5496,10 +5496,10 @@
|
|
|
5496
5496
|
this_0.e(emptyLine);
|
|
5497
5497
|
}
|
|
5498
5498
|
while (inductionVariable_0 < times);
|
|
5499
|
-
this_0.u(_this__u8e3s4.
|
|
5499
|
+
this_0.u(_this__u8e3s4.p2c_1);
|
|
5500
5500
|
tmp = this_0.n5();
|
|
5501
5501
|
} else {
|
|
5502
|
-
tmp = _this__u8e3s4.
|
|
5502
|
+
tmp = _this__u8e3s4.p2c_1.z1(scrollDown, _this__u8e3s4.p2c_1.p());
|
|
5503
5503
|
}
|
|
5504
5504
|
}
|
|
5505
5505
|
}
|
|
@@ -5558,7 +5558,7 @@
|
|
|
5558
5558
|
function resizeLine(line, scrollRight, newWidth, textAlign) {
|
|
5559
5559
|
var width = 0;
|
|
5560
5560
|
var offset = 0;
|
|
5561
|
-
var inputLine = scrollRight < 0 ? plus(listOf_0(Companion_instance_0.
|
|
5561
|
+
var inputLine = scrollRight < 0 ? plus(listOf_0(Companion_instance_0.x2e(-scrollRight | 0, get_startStyle(line))), line.q2c_1) : line.q2c_1;
|
|
5562
5562
|
var startIndex = 0;
|
|
5563
5563
|
var endIndex = inputLine.p();
|
|
5564
5564
|
var startSpan = null;
|
|
@@ -5569,24 +5569,24 @@
|
|
|
5569
5569
|
var j = index;
|
|
5570
5570
|
index = index + 1 | 0;
|
|
5571
5571
|
var span = iterator.o();
|
|
5572
|
-
if (scrollRight > 0 && (offset + span.
|
|
5573
|
-
offset = offset + span.
|
|
5572
|
+
if (scrollRight > 0 && (offset + span.w2e() | 0) < scrollRight) {
|
|
5573
|
+
offset = offset + span.w2e() | 0;
|
|
5574
5574
|
startIndex = j + 1 | 0;
|
|
5575
5575
|
} else if (scrollRight > 0 && offset < scrollRight) {
|
|
5576
|
-
if ((offset + span.
|
|
5577
|
-
startSpan = span.
|
|
5576
|
+
if ((offset + span.w2e() | 0) > scrollRight) {
|
|
5577
|
+
startSpan = span.z2e(scrollRight - offset | 0).y2e(newWidth - width | 0);
|
|
5578
5578
|
startIndex = j;
|
|
5579
|
-
width = width + startSpan.
|
|
5579
|
+
width = width + startSpan.w2e() | 0;
|
|
5580
5580
|
}
|
|
5581
5581
|
offset = scrollRight;
|
|
5582
5582
|
startIndex = j + 1 | 0;
|
|
5583
|
-
} else if ((width + span.
|
|
5584
|
-
width = width + span.
|
|
5583
|
+
} else if ((width + span.w2e() | 0) <= newWidth) {
|
|
5584
|
+
width = width + span.w2e() | 0;
|
|
5585
5585
|
endIndex = j + 1 | 0;
|
|
5586
5586
|
} else {
|
|
5587
5587
|
endIndex = j;
|
|
5588
5588
|
if (width < newWidth) {
|
|
5589
|
-
endSpan = span.
|
|
5589
|
+
endSpan = span.y2e(newWidth - width | 0);
|
|
5590
5590
|
width = newWidth;
|
|
5591
5591
|
}
|
|
5592
5592
|
break $l$loop;
|
|
@@ -5615,24 +5615,24 @@
|
|
|
5615
5615
|
return outputLine;
|
|
5616
5616
|
}
|
|
5617
5617
|
var tmp50_safe_receiver = firstOrNull(outputLine);
|
|
5618
|
-
var tmp0_elvis_lhs = tmp50_safe_receiver == null ? null : tmp50_safe_receiver.
|
|
5619
|
-
var beginStyle = tmp0_elvis_lhs == null ? line.
|
|
5620
|
-
var endStyle = line.
|
|
5618
|
+
var tmp0_elvis_lhs = tmp50_safe_receiver == null ? null : tmp50_safe_receiver.t2c_1;
|
|
5619
|
+
var beginStyle = tmp0_elvis_lhs == null ? line.r2c_1 : tmp0_elvis_lhs;
|
|
5620
|
+
var endStyle = line.r2c_1;
|
|
5621
5621
|
var tmp_0;
|
|
5622
5622
|
switch (textAlign.p2_1) {
|
|
5623
5623
|
case 0:
|
|
5624
|
-
tmp_0 = plus_0(outputLine, Companion_instance_0.
|
|
5624
|
+
tmp_0 = plus_0(outputLine, Companion_instance_0.x2e(remainingWidth, endStyle));
|
|
5625
5625
|
break;
|
|
5626
5626
|
case 4:
|
|
5627
|
-
tmp_0 = plus_0(outputLine, Companion_instance_0.
|
|
5627
|
+
tmp_0 = plus_0(outputLine, Companion_instance_0.w2c(remainingWidth));
|
|
5628
5628
|
break;
|
|
5629
5629
|
case 1:
|
|
5630
|
-
tmp_0 = plus(listOf_0(Companion_instance_0.
|
|
5630
|
+
tmp_0 = plus(listOf_0(Companion_instance_0.x2e(remainingWidth, beginStyle)), outputLine);
|
|
5631
5631
|
break;
|
|
5632
5632
|
case 2:
|
|
5633
5633
|
case 3:
|
|
5634
|
-
var l = Companion_instance_0.
|
|
5635
|
-
var r = Companion_instance_0.
|
|
5634
|
+
var l = Companion_instance_0.x2e(remainingWidth / 2 | 0, beginStyle);
|
|
5635
|
+
var r = Companion_instance_0.x2e((remainingWidth / 2 | 0) + (remainingWidth % 2 | 0) | 0, endStyle);
|
|
5636
5636
|
// Inline function 'kotlin.collections.buildList' call
|
|
5637
5637
|
|
|
5638
5638
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
@@ -5655,7 +5655,7 @@
|
|
|
5655
5655
|
}
|
|
5656
5656
|
function get_startStyle(_this__u8e3s4) {
|
|
5657
5657
|
var tmp45_safe_receiver = firstOrNull(_this__u8e3s4);
|
|
5658
|
-
var tmp0_elvis_lhs = tmp45_safe_receiver == null ? null : tmp45_safe_receiver.
|
|
5658
|
+
var tmp0_elvis_lhs = tmp45_safe_receiver == null ? null : tmp45_safe_receiver.t2c_1;
|
|
5659
5659
|
return tmp0_elvis_lhs == null ? get_DEFAULT_STYLE() : tmp0_elvis_lhs;
|
|
5660
5660
|
}
|
|
5661
5661
|
var OverflowWrap_NORMAL_instance;
|
|
@@ -5684,15 +5684,15 @@
|
|
|
5684
5684
|
return OverflowWrap_ELLIPSES_instance;
|
|
5685
5685
|
}
|
|
5686
5686
|
function Size(width, height) {
|
|
5687
|
-
this.
|
|
5688
|
-
this.
|
|
5687
|
+
this.a2f_1 = width;
|
|
5688
|
+
this.b2f_1 = height;
|
|
5689
5689
|
}
|
|
5690
5690
|
protoOf(Size).toString = function () {
|
|
5691
|
-
return '' + this.
|
|
5691
|
+
return '' + this.a2f_1 + '\xD7' + this.b2f_1;
|
|
5692
5692
|
};
|
|
5693
5693
|
function Companion_0() {
|
|
5694
5694
|
}
|
|
5695
|
-
protoOf(Companion_0).
|
|
5695
|
+
protoOf(Companion_0).c2d = function (text, style) {
|
|
5696
5696
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
5697
5697
|
// Inline function 'kotlin.require' call
|
|
5698
5698
|
if (!(charSequenceLength(text) > 0)) {
|
|
@@ -5728,13 +5728,13 @@
|
|
|
5728
5728
|
}
|
|
5729
5729
|
return new Span(text, style);
|
|
5730
5730
|
};
|
|
5731
|
-
protoOf(Companion_0).
|
|
5731
|
+
protoOf(Companion_0).x2e = function (width, style) {
|
|
5732
5732
|
return new Span(repeat(' ', width), style);
|
|
5733
5733
|
};
|
|
5734
|
-
protoOf(Companion_0).
|
|
5734
|
+
protoOf(Companion_0).w2c = function (width, style, $super) {
|
|
5735
5735
|
width = width === VOID ? 1 : width;
|
|
5736
5736
|
style = style === VOID ? get_DEFAULT_STYLE() : style;
|
|
5737
|
-
return $super === VOID ? this.
|
|
5737
|
+
return $super === VOID ? this.x2e(width, style) : $super.x2e.call(this, width, style);
|
|
5738
5738
|
};
|
|
5739
5739
|
var Companion_instance_0;
|
|
5740
5740
|
function Companion_getInstance_1() {
|
|
@@ -5742,46 +5742,46 @@
|
|
|
5742
5742
|
}
|
|
5743
5743
|
function Span$cellWidth$delegate$lambda(this$0) {
|
|
5744
5744
|
return function () {
|
|
5745
|
-
return stringCellWidth(this$0.
|
|
5745
|
+
return stringCellWidth(this$0.s2c_1);
|
|
5746
5746
|
};
|
|
5747
5747
|
}
|
|
5748
5748
|
function Span$_get_cellWidth_$ref_bfbm2m() {
|
|
5749
5749
|
return function (p0) {
|
|
5750
|
-
return p0.
|
|
5750
|
+
return p0.w2e();
|
|
5751
5751
|
};
|
|
5752
5752
|
}
|
|
5753
5753
|
function Span(text, style) {
|
|
5754
5754
|
style = style === VOID ? get_DEFAULT_STYLE() : style;
|
|
5755
|
-
this.
|
|
5756
|
-
this.
|
|
5755
|
+
this.s2c_1 = text;
|
|
5756
|
+
this.t2c_1 = style;
|
|
5757
5757
|
var tmp = this;
|
|
5758
5758
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
5759
|
-
tmp.
|
|
5759
|
+
tmp.u2c_1 = lazy(tmp_0, Span$cellWidth$delegate$lambda(this));
|
|
5760
5760
|
}
|
|
5761
|
-
protoOf(Span).
|
|
5762
|
-
var tmp0 = this.
|
|
5761
|
+
protoOf(Span).w2e = function () {
|
|
5762
|
+
var tmp0 = this.u2c_1;
|
|
5763
5763
|
var tmp = KProperty1;
|
|
5764
5764
|
// Inline function 'kotlin.getValue' call
|
|
5765
5765
|
getPropertyCallableRef('cellWidth', 1, tmp, Span$_get_cellWidth_$ref_bfbm2m(), null);
|
|
5766
5766
|
return tmp0.z();
|
|
5767
5767
|
};
|
|
5768
|
-
protoOf(Span).
|
|
5769
|
-
return new Span(take(this.
|
|
5768
|
+
protoOf(Span).y2e = function (n) {
|
|
5769
|
+
return new Span(take(this.s2c_1, n), this.t2c_1);
|
|
5770
5770
|
};
|
|
5771
|
-
protoOf(Span).
|
|
5772
|
-
return new Span(drop(this.
|
|
5771
|
+
protoOf(Span).z2e = function (n) {
|
|
5772
|
+
return new Span(drop(this.s2c_1, n), this.t2c_1);
|
|
5773
5773
|
};
|
|
5774
|
-
protoOf(Span).
|
|
5775
|
-
return isWhitespace(charCodeAt(this.
|
|
5774
|
+
protoOf(Span).c2f = function () {
|
|
5775
|
+
return isWhitespace(charCodeAt(this.s2c_1, 0));
|
|
5776
5776
|
};
|
|
5777
|
-
protoOf(Span).
|
|
5778
|
-
return charCodeAt(this.
|
|
5777
|
+
protoOf(Span).d2f = function () {
|
|
5778
|
+
return charCodeAt(this.s2c_1, 0) === _Char___init__impl__6a9atx(9);
|
|
5779
5779
|
};
|
|
5780
|
-
protoOf(Span).
|
|
5781
|
-
return new Span(this.
|
|
5780
|
+
protoOf(Span).u2e = function (style) {
|
|
5781
|
+
return new Span(this.s2c_1, this.t2c_1.v2c(style));
|
|
5782
5782
|
};
|
|
5783
5783
|
protoOf(Span).toString = function () {
|
|
5784
|
-
return "<Span '" + this.
|
|
5784
|
+
return "<Span '" + this.s2c_1 + "', " + toString(this.t2c_1) + '>';
|
|
5785
5785
|
};
|
|
5786
5786
|
var AnsiLevel_NONE_instance;
|
|
5787
5787
|
var AnsiLevel_ANSI16_instance;
|
|
@@ -5838,61 +5838,61 @@
|
|
|
5838
5838
|
return new TxtStyle(color, bgColor, bold, italic, underline, dim, inverse, strikethrough, hyperlink, tmp);
|
|
5839
5839
|
}
|
|
5840
5840
|
function TxtStyle(color, bgColor, bold, italic, underline, dim, inverse, strikethrough, hyperlink, hyperlinkId) {
|
|
5841
|
-
this.
|
|
5842
|
-
this.
|
|
5843
|
-
this.
|
|
5844
|
-
this.
|
|
5845
|
-
this.
|
|
5846
|
-
this.
|
|
5847
|
-
this.
|
|
5848
|
-
this.
|
|
5849
|
-
this.
|
|
5850
|
-
this.
|
|
5851
|
-
}
|
|
5852
|
-
protoOf(TxtStyle).
|
|
5853
|
-
return this.b2f_1;
|
|
5854
|
-
};
|
|
5855
|
-
protoOf(TxtStyle).d2c = function () {
|
|
5856
|
-
return this.c2f_1;
|
|
5857
|
-
};
|
|
5858
|
-
protoOf(TxtStyle).i2c = function () {
|
|
5859
|
-
return this.d2f_1;
|
|
5860
|
-
};
|
|
5861
|
-
protoOf(TxtStyle).e2c = function () {
|
|
5841
|
+
this.e2f_1 = color;
|
|
5842
|
+
this.f2f_1 = bgColor;
|
|
5843
|
+
this.g2f_1 = bold;
|
|
5844
|
+
this.h2f_1 = italic;
|
|
5845
|
+
this.i2f_1 = underline;
|
|
5846
|
+
this.j2f_1 = dim;
|
|
5847
|
+
this.k2f_1 = inverse;
|
|
5848
|
+
this.l2f_1 = strikethrough;
|
|
5849
|
+
this.m2f_1 = hyperlink;
|
|
5850
|
+
this.n2f_1 = hyperlinkId;
|
|
5851
|
+
}
|
|
5852
|
+
protoOf(TxtStyle).f2c = function () {
|
|
5862
5853
|
return this.e2f_1;
|
|
5863
5854
|
};
|
|
5864
|
-
protoOf(TxtStyle).
|
|
5855
|
+
protoOf(TxtStyle).g2c = function () {
|
|
5865
5856
|
return this.f2f_1;
|
|
5866
5857
|
};
|
|
5867
|
-
protoOf(TxtStyle).
|
|
5858
|
+
protoOf(TxtStyle).l2c = function () {
|
|
5868
5859
|
return this.g2f_1;
|
|
5869
5860
|
};
|
|
5870
|
-
protoOf(TxtStyle).
|
|
5861
|
+
protoOf(TxtStyle).h2c = function () {
|
|
5871
5862
|
return this.h2f_1;
|
|
5872
5863
|
};
|
|
5873
|
-
protoOf(TxtStyle).
|
|
5864
|
+
protoOf(TxtStyle).i2c = function () {
|
|
5874
5865
|
return this.i2f_1;
|
|
5875
5866
|
};
|
|
5876
|
-
protoOf(TxtStyle).
|
|
5867
|
+
protoOf(TxtStyle).m2c = function () {
|
|
5877
5868
|
return this.j2f_1;
|
|
5878
5869
|
};
|
|
5879
|
-
protoOf(TxtStyle).
|
|
5870
|
+
protoOf(TxtStyle).j2c = function () {
|
|
5880
5871
|
return this.k2f_1;
|
|
5881
5872
|
};
|
|
5873
|
+
protoOf(TxtStyle).k2c = function () {
|
|
5874
|
+
return this.l2f_1;
|
|
5875
|
+
};
|
|
5876
|
+
protoOf(TxtStyle).n2c = function () {
|
|
5877
|
+
return this.m2f_1;
|
|
5878
|
+
};
|
|
5879
|
+
protoOf(TxtStyle).o2c = function () {
|
|
5880
|
+
return this.n2f_1;
|
|
5881
|
+
};
|
|
5882
5882
|
protoOf(TxtStyle).toString = function () {
|
|
5883
|
-
return 'TxtStyle(color=' + toString_1(this.
|
|
5883
|
+
return 'TxtStyle(color=' + toString_1(this.e2f_1) + ', bgColor=' + toString_1(this.f2f_1) + ', bold=' + this.g2f_1 + ', italic=' + this.h2f_1 + ', underline=' + this.i2f_1 + ', dim=' + this.j2f_1 + ', inverse=' + this.k2f_1 + ', strikethrough=' + this.l2f_1 + ', hyperlink=' + this.m2f_1 + ', hyperlinkId=' + this.n2f_1 + ')';
|
|
5884
5884
|
};
|
|
5885
5885
|
protoOf(TxtStyle).hashCode = function () {
|
|
5886
|
-
var result = this.
|
|
5887
|
-
result = imul(result, 31) + (this.
|
|
5888
|
-
result = imul(result, 31) + (this.d2f_1 == null ? 0 : getBooleanHashCode(this.d2f_1)) | 0;
|
|
5889
|
-
result = imul(result, 31) + (this.e2f_1 == null ? 0 : getBooleanHashCode(this.e2f_1)) | 0;
|
|
5890
|
-
result = imul(result, 31) + (this.f2f_1 == null ? 0 : getBooleanHashCode(this.f2f_1)) | 0;
|
|
5886
|
+
var result = this.e2f_1 == null ? 0 : hashCode(this.e2f_1);
|
|
5887
|
+
result = imul(result, 31) + (this.f2f_1 == null ? 0 : hashCode(this.f2f_1)) | 0;
|
|
5891
5888
|
result = imul(result, 31) + (this.g2f_1 == null ? 0 : getBooleanHashCode(this.g2f_1)) | 0;
|
|
5892
5889
|
result = imul(result, 31) + (this.h2f_1 == null ? 0 : getBooleanHashCode(this.h2f_1)) | 0;
|
|
5893
5890
|
result = imul(result, 31) + (this.i2f_1 == null ? 0 : getBooleanHashCode(this.i2f_1)) | 0;
|
|
5894
|
-
result = imul(result, 31) + (this.j2f_1 == null ? 0 :
|
|
5895
|
-
result = imul(result, 31) + (this.k2f_1 == null ? 0 :
|
|
5891
|
+
result = imul(result, 31) + (this.j2f_1 == null ? 0 : getBooleanHashCode(this.j2f_1)) | 0;
|
|
5892
|
+
result = imul(result, 31) + (this.k2f_1 == null ? 0 : getBooleanHashCode(this.k2f_1)) | 0;
|
|
5893
|
+
result = imul(result, 31) + (this.l2f_1 == null ? 0 : getBooleanHashCode(this.l2f_1)) | 0;
|
|
5894
|
+
result = imul(result, 31) + (this.m2f_1 == null ? 0 : getStringHashCode(this.m2f_1)) | 0;
|
|
5895
|
+
result = imul(result, 31) + (this.n2f_1 == null ? 0 : getStringHashCode(this.n2f_1)) | 0;
|
|
5896
5896
|
return result;
|
|
5897
5897
|
};
|
|
5898
5898
|
protoOf(TxtStyle).equals = function (other) {
|
|
@@ -5901,15 +5901,9 @@
|
|
|
5901
5901
|
if (!(other instanceof TxtStyle))
|
|
5902
5902
|
return false;
|
|
5903
5903
|
var tmp0_other_with_cast = other instanceof TxtStyle ? other : THROW_CCE();
|
|
5904
|
-
if (!equals(this.
|
|
5905
|
-
return false;
|
|
5906
|
-
if (!equals(this.c2f_1, tmp0_other_with_cast.c2f_1))
|
|
5904
|
+
if (!equals(this.e2f_1, tmp0_other_with_cast.e2f_1))
|
|
5907
5905
|
return false;
|
|
5908
|
-
if (!(this.
|
|
5909
|
-
return false;
|
|
5910
|
-
if (!(this.e2f_1 == tmp0_other_with_cast.e2f_1))
|
|
5911
|
-
return false;
|
|
5912
|
-
if (!(this.f2f_1 == tmp0_other_with_cast.f2f_1))
|
|
5906
|
+
if (!equals(this.f2f_1, tmp0_other_with_cast.f2f_1))
|
|
5913
5907
|
return false;
|
|
5914
5908
|
if (!(this.g2f_1 == tmp0_other_with_cast.g2f_1))
|
|
5915
5909
|
return false;
|
|
@@ -5921,14 +5915,20 @@
|
|
|
5921
5915
|
return false;
|
|
5922
5916
|
if (!(this.k2f_1 == tmp0_other_with_cast.k2f_1))
|
|
5923
5917
|
return false;
|
|
5918
|
+
if (!(this.l2f_1 == tmp0_other_with_cast.l2f_1))
|
|
5919
|
+
return false;
|
|
5920
|
+
if (!(this.m2f_1 == tmp0_other_with_cast.m2f_1))
|
|
5921
|
+
return false;
|
|
5922
|
+
if (!(this.n2f_1 == tmp0_other_with_cast.n2f_1))
|
|
5923
|
+
return false;
|
|
5924
5924
|
return true;
|
|
5925
5925
|
};
|
|
5926
5926
|
function copy(_this__u8e3s4, fg, bg, hyperlink, hyperlinkId) {
|
|
5927
|
-
fg = fg === VOID ? _this__u8e3s4.
|
|
5928
|
-
bg = bg === VOID ? _this__u8e3s4.
|
|
5929
|
-
hyperlink = hyperlink === VOID ? _this__u8e3s4.
|
|
5930
|
-
hyperlinkId = hyperlinkId === VOID ? _this__u8e3s4.
|
|
5931
|
-
return new TxtStyle(fg, bg, _this__u8e3s4.
|
|
5927
|
+
fg = fg === VOID ? _this__u8e3s4.f2c() : fg;
|
|
5928
|
+
bg = bg === VOID ? _this__u8e3s4.g2c() : bg;
|
|
5929
|
+
hyperlink = hyperlink === VOID ? _this__u8e3s4.n2c() : hyperlink;
|
|
5930
|
+
hyperlinkId = hyperlinkId === VOID ? _this__u8e3s4.o2c() : hyperlinkId;
|
|
5931
|
+
return new TxtStyle(fg, bg, _this__u8e3s4.l2c(), _this__u8e3s4.h2c(), _this__u8e3s4.i2c(), _this__u8e3s4.m2c(), _this__u8e3s4.j2c(), _this__u8e3s4.k2c(), hyperlink, hyperlinkId);
|
|
5932
5932
|
}
|
|
5933
5933
|
function foldStyles(styles) {
|
|
5934
5934
|
var style = null;
|
|
@@ -5939,71 +5939,71 @@
|
|
|
5939
5939
|
inductionVariable = inductionVariable + 1 | 0;
|
|
5940
5940
|
if (s == null)
|
|
5941
5941
|
continue $l$loop;
|
|
5942
|
-
style = style == null ? s : s.
|
|
5942
|
+
style = style == null ? s : s.v2c(style);
|
|
5943
5943
|
}
|
|
5944
5944
|
return style;
|
|
5945
5945
|
}
|
|
5946
5946
|
function Theme$Companion$Plain$lambda($this$Theme) {
|
|
5947
|
-
var tmp0 = $this$Theme.
|
|
5947
|
+
var tmp0 = $this$Theme.q2f_1;
|
|
5948
5948
|
// Inline function 'kotlin.collections.set' call
|
|
5949
5949
|
var key = 'progressbar.pulse';
|
|
5950
5950
|
tmp0.l2(key, false);
|
|
5951
5951
|
return Unit_instance;
|
|
5952
5952
|
}
|
|
5953
5953
|
function Theme$Companion$PlainAscii$lambda($this$Theme) {
|
|
5954
|
-
var tmp0 = $this$Theme.
|
|
5954
|
+
var tmp0 = $this$Theme.p2f_1;
|
|
5955
5955
|
// Inline function 'kotlin.collections.set' call
|
|
5956
5956
|
var key = 'list.number.separator';
|
|
5957
5957
|
tmp0.l2(key, '.');
|
|
5958
|
-
var tmp0_0 = $this$Theme.
|
|
5958
|
+
var tmp0_0 = $this$Theme.p2f_1;
|
|
5959
5959
|
// Inline function 'kotlin.collections.set' call
|
|
5960
5960
|
var key_0 = 'list.bullet.text';
|
|
5961
5961
|
tmp0_0.l2(key_0, '*');
|
|
5962
|
-
var tmp0_1 = $this$Theme.
|
|
5962
|
+
var tmp0_1 = $this$Theme.p2f_1;
|
|
5963
5963
|
// Inline function 'kotlin.collections.set' call
|
|
5964
5964
|
var key_1 = 'progressbar.pending';
|
|
5965
5965
|
tmp0_1.l2(key_1, ' ');
|
|
5966
|
-
var tmp0_2 = $this$Theme.
|
|
5966
|
+
var tmp0_2 = $this$Theme.p2f_1;
|
|
5967
5967
|
// Inline function 'kotlin.collections.set' call
|
|
5968
5968
|
var key_2 = 'progressbar.complete';
|
|
5969
5969
|
tmp0_2.l2(key_2, '#');
|
|
5970
|
-
var tmp0_3 = $this$Theme.
|
|
5970
|
+
var tmp0_3 = $this$Theme.p2f_1;
|
|
5971
5971
|
// Inline function 'kotlin.collections.set' call
|
|
5972
5972
|
var key_3 = 'progressbar.separator';
|
|
5973
5973
|
tmp0_3.l2(key_3, '>');
|
|
5974
|
-
var tmp0_4 = $this$Theme.
|
|
5974
|
+
var tmp0_4 = $this$Theme.p2f_1;
|
|
5975
5975
|
// Inline function 'kotlin.collections.set' call
|
|
5976
5976
|
var key_4 = 'markdown.task.checked';
|
|
5977
5977
|
tmp0_4.l2(key_4, '[x]');
|
|
5978
|
-
var tmp0_5 = $this$Theme.
|
|
5978
|
+
var tmp0_5 = $this$Theme.p2f_1;
|
|
5979
5979
|
// Inline function 'kotlin.collections.set' call
|
|
5980
5980
|
var key_5 = 'markdown.task.unchecked';
|
|
5981
5981
|
tmp0_5.l2(key_5, '[ ]');
|
|
5982
|
-
var tmp0_6 = $this$Theme.
|
|
5982
|
+
var tmp0_6 = $this$Theme.p2f_1;
|
|
5983
5983
|
// Inline function 'kotlin.collections.set' call
|
|
5984
5984
|
var key_6 = 'markdown.h1.rule';
|
|
5985
5985
|
tmp0_6.l2(key_6, '=');
|
|
5986
|
-
var tmp0_7 = $this$Theme.
|
|
5986
|
+
var tmp0_7 = $this$Theme.p2f_1;
|
|
5987
5987
|
// Inline function 'kotlin.collections.set' call
|
|
5988
5988
|
var key_7 = 'markdown.h2.rule';
|
|
5989
5989
|
tmp0_7.l2(key_7, '-');
|
|
5990
|
-
var tmp0_8 = $this$Theme.
|
|
5990
|
+
var tmp0_8 = $this$Theme.p2f_1;
|
|
5991
5991
|
// Inline function 'kotlin.collections.set' call
|
|
5992
5992
|
var key_8 = 'markdown.blockquote.bar';
|
|
5993
5993
|
tmp0_8.l2(key_8, '|');
|
|
5994
|
-
var tmp0_9 = $this$Theme.
|
|
5994
|
+
var tmp0_9 = $this$Theme.p2f_1;
|
|
5995
5995
|
// Inline function 'kotlin.collections.set' call
|
|
5996
5996
|
var key_9 = 'select.cursor';
|
|
5997
5997
|
tmp0_9.l2(key_9, '>');
|
|
5998
|
-
var tmp0_10 = $this$Theme.
|
|
5998
|
+
var tmp0_10 = $this$Theme.p2f_1;
|
|
5999
5999
|
// Inline function 'kotlin.collections.set' call
|
|
6000
6000
|
var key_10 = 'select.selected';
|
|
6001
6001
|
tmp0_10.l2(key_10, 'x');
|
|
6002
|
-
var tmp0_11 = $this$Theme.
|
|
6002
|
+
var tmp0_11 = $this$Theme.p2f_1;
|
|
6003
6003
|
// Inline function 'kotlin.collections.set' call
|
|
6004
6004
|
var key_11 = 'select.unselected';
|
|
6005
6005
|
tmp0_11.l2(key_11, ' ');
|
|
6006
|
-
var tmp0_12 = $this$Theme.
|
|
6006
|
+
var tmp0_12 = $this$Theme.q2f_1;
|
|
6007
6007
|
// Inline function 'kotlin.collections.set' call
|
|
6008
6008
|
var key_12 = 'markdown.table.ascii';
|
|
6009
6009
|
tmp0_12.l2(key_12, true);
|
|
@@ -6011,18 +6011,18 @@
|
|
|
6011
6011
|
}
|
|
6012
6012
|
function Companion_1() {
|
|
6013
6013
|
Companion_instance_1 = this;
|
|
6014
|
-
this.
|
|
6015
|
-
this.
|
|
6016
|
-
this.
|
|
6017
|
-
this.
|
|
6018
|
-
this.
|
|
6019
|
-
this.
|
|
6020
|
-
this.
|
|
6014
|
+
this.s2f_1 = Companion_getInstance().g29('#c678dd');
|
|
6015
|
+
this.t2f_1 = Companion_getInstance().g29('#61afef');
|
|
6016
|
+
this.u2f_1 = Companion_getInstance().g29('#5c6370');
|
|
6017
|
+
this.v2f_1 = Companion_getInstance().g29('#e06c75');
|
|
6018
|
+
this.w2f_1 = Companion_getInstance().g29('#e5c07b');
|
|
6019
|
+
this.x2f_1 = Companion_getInstance().g29('#98c379');
|
|
6020
|
+
this.y2f_1 = new BuiltTheme(mapOf([to('success', TextStyle_0(this.x2f_1)), to('danger', TextStyle_0(this.v2f_1)), to('warning', TextStyle_0(this.w2f_1)), to('info', TextStyle_0(this.t2f_1)), to('muted', TextStyle_0(VOID, VOID, VOID, VOID, VOID, true)), to('list.number', get_DEFAULT_STYLE()), to('list.bullet', get_DEFAULT_STYLE()), to('hr.rule', get_DEFAULT_STYLE()), to('panel.border', get_DEFAULT_STYLE()), to('prompt.prompt', get_DEFAULT_STYLE()), to('prompt.default', TextStyle_0(this.t2f_1, VOID, true)), to('prompt.choices', TextStyle_0(this.t2f_1, VOID, true)), to('prompt.choices.invalid', TextStyle_0(this.v2f_1)), to('progressbar.pending', TextStyle_0(this.u2f_1)), to('progressbar.complete', TextStyle_0(this.t2f_1)), to('progressbar.indeterminate', TextStyle_0(this.t2f_1)), to('progressbar.separator', get_DEFAULT_STYLE()), to('progressbar.finished', TextStyle_0(this.x2f_1)), to('markdown.blockquote', TextStyle_0(this.w2f_1)), to('markdown.emph', TextStyle_0(VOID, VOID, VOID, true)), to('markdown.strong', TextStyle_0(VOID, VOID, true)), to('markdown.stikethrough', TextStyle_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true)), to('markdown.code.block', TextStyle_0(this.t2f_1)), to('markdown.code.span', TextStyle_0(this.t2f_1, this.u2f_1)), to('markdown.table.header', TextStyle_0(VOID, VOID, true)), to('markdown.table.body', get_DEFAULT_STYLE()), to('markdown.link.text', TextStyle_0(this.t2f_1)), to('markdown.link.destination', TextStyle_0(this.t2f_1, VOID, VOID, VOID, VOID, true)), to('markdown.img.alt-text', TextStyle_0(VOID, VOID, VOID, VOID, VOID, true)), to('markdown.h1', TextStyle_0(this.s2f_1, VOID, true)), to('markdown.h2', TextStyle_0(this.s2f_1, VOID, true)), to('markdown.h3', TextStyle_0(this.s2f_1, VOID, true, VOID, true)), to('markdown.h4', TextStyle_0(this.s2f_1, VOID, VOID, VOID, true)), to('markdown.h5', TextStyle_0(this.s2f_1, VOID, VOID, true)), to('markdown.h6', TextStyle_0(this.s2f_1, VOID, VOID, VOID, VOID, true)), to('select.title', TextStyle_0(this.s2f_1, VOID, true)), to('select.cursor', TextStyle_0(this.t2f_1)), to('select.selected', TextStyle_0(this.x2f_1)), to('select.unselected-title', get_DEFAULT_STYLE()), to('select.unselected-marker', TextStyle_0(VOID, VOID, VOID, VOID, VOID, true))]), mapOf([to('list.number.separator', '.'), to('list.bullet.text', '\u2022'), to('progressbar.pending', '\u2501'), to('progressbar.complete', '\u2501'), to('progressbar.separator', ' '), to('hr.rule', '\u2500'), to('markdown.task.checked', '\u2611'), to('markdown.task.unchecked', '\u2610'), to('markdown.h1.rule', '\u2550'), to('markdown.h2.rule', '\u2500'), to('markdown.h3.rule', ' '), to('markdown.h4.rule', ' '), to('markdown.h5.rule', ' '), to('markdown.h6.rule', ' '), to('markdown.blockquote.bar', '\u258E'), to('select.cursor', '\u276F'), to('select.selected', '\u2713'), to('select.unselected', '\u2022')]), mapOf([to('progressbar.pulse', true), to('markdown.code.block.border', true), to('markdown.table.ascii', false)]), mapOf([to('hr.title.padding', 1), to('panel.title.padding', 1), to('markdown.header.padding', 1)]));
|
|
6021
6021
|
var tmp = this;
|
|
6022
|
-
var tmp_0 = new BuiltTheme(emptyMap(), this.
|
|
6023
|
-
tmp.
|
|
6022
|
+
var tmp_0 = new BuiltTheme(emptyMap(), this.y2f_1.c2g_1, this.y2f_1.d2g_1, this.y2f_1.e2g_1);
|
|
6023
|
+
tmp.z2f_1 = Theme_0(tmp_0, Theme$Companion$Plain$lambda);
|
|
6024
6024
|
var tmp_1 = this;
|
|
6025
|
-
tmp_1.
|
|
6025
|
+
tmp_1.a2g_1 = Theme_0(this.z2f_1, Theme$Companion$PlainAscii$lambda);
|
|
6026
6026
|
}
|
|
6027
6027
|
var Companion_instance_1;
|
|
6028
6028
|
function Companion_getInstance_2() {
|
|
@@ -6032,14 +6032,14 @@
|
|
|
6032
6032
|
}
|
|
6033
6033
|
function Theme(styles, strings, flags, dimensions) {
|
|
6034
6034
|
Companion_getInstance_2();
|
|
6035
|
-
this.
|
|
6036
|
-
this.
|
|
6037
|
-
this.
|
|
6038
|
-
this.
|
|
6035
|
+
this.b2g_1 = styles;
|
|
6036
|
+
this.c2g_1 = strings;
|
|
6037
|
+
this.d2g_1 = flags;
|
|
6038
|
+
this.e2g_1 = dimensions;
|
|
6039
6039
|
}
|
|
6040
|
-
protoOf(Theme).
|
|
6040
|
+
protoOf(Theme).f2g = function (style, default_0) {
|
|
6041
6041
|
// Inline function 'kotlin.collections.getOrElse' call
|
|
6042
|
-
var tmp0_elvis_lhs = this.
|
|
6042
|
+
var tmp0_elvis_lhs = this.b2g_1.d2(style);
|
|
6043
6043
|
var tmp;
|
|
6044
6044
|
if (tmp0_elvis_lhs == null) {
|
|
6045
6045
|
tmp = default_0;
|
|
@@ -6048,28 +6048,28 @@
|
|
|
6048
6048
|
}
|
|
6049
6049
|
return tmp;
|
|
6050
6050
|
};
|
|
6051
|
-
protoOf(Theme).
|
|
6051
|
+
protoOf(Theme).g2g = function (style, default_0, $super) {
|
|
6052
6052
|
default_0 = default_0 === VOID ? get_DEFAULT_STYLE() : default_0;
|
|
6053
|
-
return $super === VOID ? this.
|
|
6053
|
+
return $super === VOID ? this.f2g(style, default_0) : $super.f2g.call(this, style, default_0);
|
|
6054
6054
|
};
|
|
6055
6055
|
function BuiltTheme(styles, strings, flags, dimensions) {
|
|
6056
6056
|
Theme.call(this, styles, strings, flags, dimensions);
|
|
6057
6057
|
}
|
|
6058
6058
|
function Theme_0(from, init) {
|
|
6059
|
-
from = from === VOID ? Companion_getInstance_2().
|
|
6059
|
+
from = from === VOID ? Companion_getInstance_2().y2f_1 : from;
|
|
6060
6060
|
// Inline function 'kotlin.apply' call
|
|
6061
|
-
var this_0 = new ThemeBuilder(toMutableMap(from.
|
|
6061
|
+
var this_0 = new ThemeBuilder(toMutableMap(from.b2g_1), toMutableMap(from.c2g_1), toMutableMap(from.d2g_1), toMutableMap(from.e2g_1));
|
|
6062
6062
|
init(this_0);
|
|
6063
|
-
return this_0.
|
|
6063
|
+
return this_0.h2g();
|
|
6064
6064
|
}
|
|
6065
6065
|
function ThemeBuilder(styles, strings, flags, dimensions) {
|
|
6066
|
-
this.
|
|
6067
|
-
this.
|
|
6068
|
-
this.
|
|
6069
|
-
this.
|
|
6066
|
+
this.o2f_1 = styles;
|
|
6067
|
+
this.p2f_1 = strings;
|
|
6068
|
+
this.q2f_1 = flags;
|
|
6069
|
+
this.r2f_1 = dimensions;
|
|
6070
6070
|
}
|
|
6071
|
-
protoOf(ThemeBuilder).
|
|
6072
|
-
return new BuiltTheme(this.
|
|
6071
|
+
protoOf(ThemeBuilder).h2g = function () {
|
|
6072
|
+
return new BuiltTheme(this.o2f_1, this.p2f_1, this.q2f_1, this.r2f_1);
|
|
6073
6073
|
};
|
|
6074
6074
|
var Whitespace_NORMAL_instance;
|
|
6075
6075
|
var Whitespace_NOWRAP_instance;
|
|
@@ -6089,10 +6089,10 @@
|
|
|
6089
6089
|
}
|
|
6090
6090
|
function Whitespace(name, ordinal, collapseNewlines, collapseSpaces, wrap, trimEol) {
|
|
6091
6091
|
Enum.call(this, name, ordinal);
|
|
6092
|
-
this.
|
|
6093
|
-
this.
|
|
6094
|
-
this.
|
|
6095
|
-
this.
|
|
6092
|
+
this.k2g_1 = collapseNewlines;
|
|
6093
|
+
this.l2g_1 = collapseSpaces;
|
|
6094
|
+
this.m2g_1 = wrap;
|
|
6095
|
+
this.n2g_1 = trimEol;
|
|
6096
6096
|
}
|
|
6097
6097
|
function Whitespace_NORMAL_getInstance() {
|
|
6098
6098
|
Whitespace_initEntries();
|
|
@@ -6109,29 +6109,29 @@
|
|
|
6109
6109
|
function Widget() {
|
|
6110
6110
|
}
|
|
6111
6111
|
function WidthRange(min, max) {
|
|
6112
|
-
this.
|
|
6113
|
-
this.
|
|
6112
|
+
this.c2h_1 = min;
|
|
6113
|
+
this.d2h_1 = max;
|
|
6114
6114
|
// Inline function 'kotlin.require' call
|
|
6115
|
-
if (!(this.
|
|
6115
|
+
if (!(this.c2h_1 <= this.d2h_1)) {
|
|
6116
6116
|
var message = 'Range min cannot be larger than max';
|
|
6117
6117
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
6118
6118
|
}
|
|
6119
6119
|
}
|
|
6120
|
-
protoOf(WidthRange).
|
|
6121
|
-
return extra === 0 ? this : new WidthRange(this.
|
|
6120
|
+
protoOf(WidthRange).e2h = function (extra) {
|
|
6121
|
+
return extra === 0 ? this : new WidthRange(this.c2h_1 + extra | 0, this.d2h_1 + extra | 0);
|
|
6122
6122
|
};
|
|
6123
|
-
protoOf(WidthRange).
|
|
6124
|
-
return new WidthRange(this.
|
|
6123
|
+
protoOf(WidthRange).f2h = function (other) {
|
|
6124
|
+
return new WidthRange(this.c2h_1 + other.c2h_1 | 0, this.d2h_1 + other.d2h_1 | 0);
|
|
6125
6125
|
};
|
|
6126
|
-
protoOf(WidthRange).
|
|
6127
|
-
return divisor === 1 ? this : new WidthRange(this.
|
|
6126
|
+
protoOf(WidthRange).g2h = function (divisor) {
|
|
6127
|
+
return divisor === 1 ? this : new WidthRange(this.c2h_1 / divisor | 0, this.d2h_1 / divisor | 0);
|
|
6128
6128
|
};
|
|
6129
6129
|
protoOf(WidthRange).toString = function () {
|
|
6130
|
-
return 'WidthRange(min=' + this.
|
|
6130
|
+
return 'WidthRange(min=' + this.c2h_1 + ', max=' + this.d2h_1 + ')';
|
|
6131
6131
|
};
|
|
6132
6132
|
protoOf(WidthRange).hashCode = function () {
|
|
6133
|
-
var result = this.
|
|
6134
|
-
result = imul(result, 31) + this.
|
|
6133
|
+
var result = this.c2h_1;
|
|
6134
|
+
result = imul(result, 31) + this.d2h_1 | 0;
|
|
6135
6135
|
return result;
|
|
6136
6136
|
};
|
|
6137
6137
|
protoOf(WidthRange).equals = function (other) {
|
|
@@ -6140,9 +6140,9 @@
|
|
|
6140
6140
|
if (!(other instanceof WidthRange))
|
|
6141
6141
|
return false;
|
|
6142
6142
|
var tmp0_other_with_cast = other instanceof WidthRange ? other : THROW_CCE();
|
|
6143
|
-
if (!(this.
|
|
6143
|
+
if (!(this.c2h_1 === tmp0_other_with_cast.c2h_1))
|
|
6144
6144
|
return false;
|
|
6145
|
-
if (!(this.
|
|
6145
|
+
if (!(this.d2h_1 === tmp0_other_with_cast.d2h_1))
|
|
6146
6146
|
return false;
|
|
6147
6147
|
return true;
|
|
6148
6148
|
};
|
|
@@ -6154,7 +6154,7 @@
|
|
|
6154
6154
|
var _iterator__ex2g4s = _this__u8e3s4.m();
|
|
6155
6155
|
$l$loop: while (_iterator__ex2g4s.n()) {
|
|
6156
6156
|
var it = _iterator__ex2g4s.o();
|
|
6157
|
-
var tmp0_elvis_lhs = it.
|
|
6157
|
+
var tmp0_elvis_lhs = it.o2g(t, width - paddingWidth | 0);
|
|
6158
6158
|
var tmp;
|
|
6159
6159
|
if (tmp0_elvis_lhs == null) {
|
|
6160
6160
|
continue $l$loop;
|
|
@@ -6164,11 +6164,11 @@
|
|
|
6164
6164
|
var range = tmp;
|
|
6165
6165
|
var tmp0 = max;
|
|
6166
6166
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6167
|
-
var b = range.
|
|
6167
|
+
var b = range.d2h_1;
|
|
6168
6168
|
max = Math.max(tmp0, b);
|
|
6169
6169
|
var tmp0_0 = min;
|
|
6170
6170
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6171
|
-
var b_0 = range.
|
|
6171
|
+
var b_0 = range.c2h_1;
|
|
6172
6172
|
min = Math.max(tmp0_0, b_0);
|
|
6173
6173
|
}
|
|
6174
6174
|
return new WidthRange(min + paddingWidth | 0, max + paddingWidth | 0);
|
|
@@ -6213,10 +6213,10 @@
|
|
|
6213
6213
|
}
|
|
6214
6214
|
function Borders(name, ordinal, left, top, right, bottom) {
|
|
6215
6215
|
Enum.call(this, name, ordinal);
|
|
6216
|
-
this.
|
|
6217
|
-
this.
|
|
6218
|
-
this.
|
|
6219
|
-
this.
|
|
6216
|
+
this.j2h_1 = left;
|
|
6217
|
+
this.k2h_1 = top;
|
|
6218
|
+
this.l2h_1 = right;
|
|
6219
|
+
this.m2h_1 = bottom;
|
|
6220
6220
|
}
|
|
6221
6221
|
function Borders_NONE_getInstance() {
|
|
6222
6222
|
Borders_initEntries();
|
|
@@ -6230,19 +6230,19 @@
|
|
|
6230
6230
|
Empty_instance = this;
|
|
6231
6231
|
Cell.call(this);
|
|
6232
6232
|
}
|
|
6233
|
-
protoOf(Empty).
|
|
6233
|
+
protoOf(Empty).n2h = function () {
|
|
6234
6234
|
return 1;
|
|
6235
6235
|
};
|
|
6236
|
-
protoOf(Empty).
|
|
6236
|
+
protoOf(Empty).o2h = function () {
|
|
6237
6237
|
return false;
|
|
6238
6238
|
};
|
|
6239
|
-
protoOf(Empty).
|
|
6239
|
+
protoOf(Empty).p2h = function () {
|
|
6240
6240
|
return false;
|
|
6241
6241
|
};
|
|
6242
|
-
protoOf(Empty).
|
|
6242
|
+
protoOf(Empty).q2h = function () {
|
|
6243
6243
|
return false;
|
|
6244
6244
|
};
|
|
6245
|
-
protoOf(Empty).
|
|
6245
|
+
protoOf(Empty).r2h = function () {
|
|
6246
6246
|
return false;
|
|
6247
6247
|
};
|
|
6248
6248
|
protoOf(Empty).toString = function () {
|
|
@@ -6267,39 +6267,39 @@
|
|
|
6267
6267
|
}
|
|
6268
6268
|
function SpanRef(cell, borderLeft, borderTop, borderRight, borderBottom) {
|
|
6269
6269
|
Cell.call(this);
|
|
6270
|
-
this.
|
|
6271
|
-
this.
|
|
6272
|
-
this.
|
|
6273
|
-
this.
|
|
6274
|
-
this.
|
|
6270
|
+
this.s2h_1 = cell;
|
|
6271
|
+
this.t2h_1 = borderLeft;
|
|
6272
|
+
this.u2h_1 = borderTop;
|
|
6273
|
+
this.v2h_1 = borderRight;
|
|
6274
|
+
this.w2h_1 = borderBottom;
|
|
6275
6275
|
}
|
|
6276
|
-
protoOf(SpanRef).
|
|
6277
|
-
return this.
|
|
6276
|
+
protoOf(SpanRef).o2h = function () {
|
|
6277
|
+
return this.t2h_1;
|
|
6278
6278
|
};
|
|
6279
|
-
protoOf(SpanRef).
|
|
6280
|
-
return this.
|
|
6279
|
+
protoOf(SpanRef).p2h = function () {
|
|
6280
|
+
return this.u2h_1;
|
|
6281
6281
|
};
|
|
6282
|
-
protoOf(SpanRef).
|
|
6283
|
-
return this.
|
|
6282
|
+
protoOf(SpanRef).q2h = function () {
|
|
6283
|
+
return this.v2h_1;
|
|
6284
6284
|
};
|
|
6285
|
-
protoOf(SpanRef).
|
|
6286
|
-
return this.
|
|
6285
|
+
protoOf(SpanRef).r2h = function () {
|
|
6286
|
+
return this.w2h_1;
|
|
6287
6287
|
};
|
|
6288
|
-
protoOf(SpanRef).
|
|
6289
|
-
return this.
|
|
6288
|
+
protoOf(SpanRef).n2h = function () {
|
|
6289
|
+
return this.s2h_1.y2h_1;
|
|
6290
6290
|
};
|
|
6291
|
-
protoOf(SpanRef).
|
|
6292
|
-
return this.
|
|
6291
|
+
protoOf(SpanRef).i2i = function () {
|
|
6292
|
+
return this.s2h_1.z2h_1;
|
|
6293
6293
|
};
|
|
6294
6294
|
protoOf(SpanRef).toString = function () {
|
|
6295
|
-
return 'SpanRef(cell=' + this.
|
|
6295
|
+
return 'SpanRef(cell=' + this.s2h_1.toString() + ', borderLeft=' + this.t2h_1 + ', borderTop=' + this.u2h_1 + ', borderRight=' + this.v2h_1 + ', borderBottom=' + this.w2h_1 + ')';
|
|
6296
6296
|
};
|
|
6297
6297
|
protoOf(SpanRef).hashCode = function () {
|
|
6298
|
-
var result = this.
|
|
6299
|
-
result = imul(result, 31) + (this.q2h_1 == null ? 0 : getBooleanHashCode(this.q2h_1)) | 0;
|
|
6300
|
-
result = imul(result, 31) + (this.r2h_1 == null ? 0 : getBooleanHashCode(this.r2h_1)) | 0;
|
|
6301
|
-
result = imul(result, 31) + (this.s2h_1 == null ? 0 : getBooleanHashCode(this.s2h_1)) | 0;
|
|
6298
|
+
var result = this.s2h_1.hashCode();
|
|
6302
6299
|
result = imul(result, 31) + (this.t2h_1 == null ? 0 : getBooleanHashCode(this.t2h_1)) | 0;
|
|
6300
|
+
result = imul(result, 31) + (this.u2h_1 == null ? 0 : getBooleanHashCode(this.u2h_1)) | 0;
|
|
6301
|
+
result = imul(result, 31) + (this.v2h_1 == null ? 0 : getBooleanHashCode(this.v2h_1)) | 0;
|
|
6302
|
+
result = imul(result, 31) + (this.w2h_1 == null ? 0 : getBooleanHashCode(this.w2h_1)) | 0;
|
|
6303
6303
|
return result;
|
|
6304
6304
|
};
|
|
6305
6305
|
protoOf(SpanRef).equals = function (other) {
|
|
@@ -6308,72 +6308,72 @@
|
|
|
6308
6308
|
if (!(other instanceof SpanRef))
|
|
6309
6309
|
return false;
|
|
6310
6310
|
var tmp0_other_with_cast = other instanceof SpanRef ? other : THROW_CCE();
|
|
6311
|
-
if (!this.
|
|
6311
|
+
if (!this.s2h_1.equals(tmp0_other_with_cast.s2h_1))
|
|
6312
6312
|
return false;
|
|
6313
|
-
if (!(this.
|
|
6313
|
+
if (!(this.t2h_1 == tmp0_other_with_cast.t2h_1))
|
|
6314
6314
|
return false;
|
|
6315
|
-
if (!(this.
|
|
6315
|
+
if (!(this.u2h_1 == tmp0_other_with_cast.u2h_1))
|
|
6316
6316
|
return false;
|
|
6317
|
-
if (!(this.
|
|
6317
|
+
if (!(this.v2h_1 == tmp0_other_with_cast.v2h_1))
|
|
6318
6318
|
return false;
|
|
6319
|
-
if (!(this.
|
|
6319
|
+
if (!(this.w2h_1 == tmp0_other_with_cast.w2h_1))
|
|
6320
6320
|
return false;
|
|
6321
6321
|
return true;
|
|
6322
6322
|
};
|
|
6323
6323
|
function Content(content, rowSpan, columnSpan, borderLeft, borderTop, borderRight, borderBottom, style, textAlign, verticalAlign, paddingWidth) {
|
|
6324
6324
|
Cell.call(this);
|
|
6325
|
-
this.
|
|
6326
|
-
this.
|
|
6327
|
-
this.
|
|
6328
|
-
this.
|
|
6329
|
-
this.
|
|
6330
|
-
this.
|
|
6331
|
-
this.
|
|
6332
|
-
this.
|
|
6333
|
-
this.
|
|
6334
|
-
this.
|
|
6335
|
-
this.
|
|
6325
|
+
this.x2h_1 = content;
|
|
6326
|
+
this.y2h_1 = rowSpan;
|
|
6327
|
+
this.z2h_1 = columnSpan;
|
|
6328
|
+
this.a2i_1 = borderLeft;
|
|
6329
|
+
this.b2i_1 = borderTop;
|
|
6330
|
+
this.c2i_1 = borderRight;
|
|
6331
|
+
this.d2i_1 = borderBottom;
|
|
6332
|
+
this.e2i_1 = style;
|
|
6333
|
+
this.f2i_1 = textAlign;
|
|
6334
|
+
this.g2i_1 = verticalAlign;
|
|
6335
|
+
this.h2i_1 = paddingWidth;
|
|
6336
6336
|
// Inline function 'kotlin.require' call
|
|
6337
|
-
if (!(this.
|
|
6337
|
+
if (!(this.y2h_1 > 0)) {
|
|
6338
6338
|
var message = 'rowSpan must be greater than 0';
|
|
6339
6339
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
6340
6340
|
}
|
|
6341
6341
|
// Inline function 'kotlin.require' call
|
|
6342
|
-
if (!(this.
|
|
6342
|
+
if (!(this.z2h_1 > 0)) {
|
|
6343
6343
|
var message_0 = 'columnSpan must be greater than 0';
|
|
6344
6344
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
6345
6345
|
}
|
|
6346
6346
|
}
|
|
6347
|
-
protoOf(Content).k2h = function () {
|
|
6348
|
-
return this.v2h_1;
|
|
6349
|
-
};
|
|
6350
|
-
protoOf(Content).l2h = function () {
|
|
6351
|
-
return this.x2h_1;
|
|
6352
|
-
};
|
|
6353
|
-
protoOf(Content).m2h = function () {
|
|
6354
|
-
return this.y2h_1;
|
|
6355
|
-
};
|
|
6356
6347
|
protoOf(Content).n2h = function () {
|
|
6357
|
-
return this.
|
|
6348
|
+
return this.y2h_1;
|
|
6358
6349
|
};
|
|
6359
6350
|
protoOf(Content).o2h = function () {
|
|
6360
6351
|
return this.a2i_1;
|
|
6361
6352
|
};
|
|
6353
|
+
protoOf(Content).p2h = function () {
|
|
6354
|
+
return this.b2i_1;
|
|
6355
|
+
};
|
|
6356
|
+
protoOf(Content).q2h = function () {
|
|
6357
|
+
return this.c2i_1;
|
|
6358
|
+
};
|
|
6359
|
+
protoOf(Content).r2h = function () {
|
|
6360
|
+
return this.d2i_1;
|
|
6361
|
+
};
|
|
6362
6362
|
protoOf(Content).toString = function () {
|
|
6363
|
-
return 'Content(content=' + toString(this.
|
|
6363
|
+
return 'Content(content=' + toString(this.x2h_1) + ', rowSpan=' + this.y2h_1 + ', columnSpan=' + this.z2h_1 + ', borderLeft=' + this.a2i_1 + ', borderTop=' + this.b2i_1 + ', borderRight=' + this.c2i_1 + ', borderBottom=' + this.d2i_1 + ', style=' + toString_1(this.e2i_1) + ', textAlign=' + this.f2i_1.toString() + ', verticalAlign=' + this.g2i_1.toString() + ', paddingWidth=' + this.h2i_1 + ')';
|
|
6364
6364
|
};
|
|
6365
6365
|
protoOf(Content).hashCode = function () {
|
|
6366
|
-
var result = hashCode(this.
|
|
6367
|
-
result = imul(result, 31) + this.
|
|
6368
|
-
result = imul(result, 31) + this.
|
|
6369
|
-
result = imul(result, 31) + (this.x2h_1 == null ? 0 : getBooleanHashCode(this.x2h_1)) | 0;
|
|
6370
|
-
result = imul(result, 31) + (this.y2h_1 == null ? 0 : getBooleanHashCode(this.y2h_1)) | 0;
|
|
6371
|
-
result = imul(result, 31) + (this.z2h_1 == null ? 0 : getBooleanHashCode(this.z2h_1)) | 0;
|
|
6366
|
+
var result = hashCode(this.x2h_1);
|
|
6367
|
+
result = imul(result, 31) + this.y2h_1 | 0;
|
|
6368
|
+
result = imul(result, 31) + this.z2h_1 | 0;
|
|
6372
6369
|
result = imul(result, 31) + (this.a2i_1 == null ? 0 : getBooleanHashCode(this.a2i_1)) | 0;
|
|
6373
|
-
result = imul(result, 31) + (this.b2i_1 == null ? 0 :
|
|
6374
|
-
result = imul(result, 31) + this.c2i_1.
|
|
6375
|
-
result = imul(result, 31) + this.d2i_1.
|
|
6376
|
-
result = imul(result, 31) + this.e2i_1 | 0;
|
|
6370
|
+
result = imul(result, 31) + (this.b2i_1 == null ? 0 : getBooleanHashCode(this.b2i_1)) | 0;
|
|
6371
|
+
result = imul(result, 31) + (this.c2i_1 == null ? 0 : getBooleanHashCode(this.c2i_1)) | 0;
|
|
6372
|
+
result = imul(result, 31) + (this.d2i_1 == null ? 0 : getBooleanHashCode(this.d2i_1)) | 0;
|
|
6373
|
+
result = imul(result, 31) + (this.e2i_1 == null ? 0 : hashCode(this.e2i_1)) | 0;
|
|
6374
|
+
result = imul(result, 31) + this.f2i_1.hashCode() | 0;
|
|
6375
|
+
result = imul(result, 31) + this.g2i_1.hashCode() | 0;
|
|
6376
|
+
result = imul(result, 31) + this.h2i_1 | 0;
|
|
6377
6377
|
return result;
|
|
6378
6378
|
};
|
|
6379
6379
|
protoOf(Content).equals = function (other) {
|
|
@@ -6382,43 +6382,43 @@
|
|
|
6382
6382
|
if (!(other instanceof Content))
|
|
6383
6383
|
return false;
|
|
6384
6384
|
var tmp0_other_with_cast = other instanceof Content ? other : THROW_CCE();
|
|
6385
|
-
if (!equals(this.
|
|
6385
|
+
if (!equals(this.x2h_1, tmp0_other_with_cast.x2h_1))
|
|
6386
6386
|
return false;
|
|
6387
|
-
if (!(this.
|
|
6387
|
+
if (!(this.y2h_1 === tmp0_other_with_cast.y2h_1))
|
|
6388
6388
|
return false;
|
|
6389
|
-
if (!(this.
|
|
6389
|
+
if (!(this.z2h_1 === tmp0_other_with_cast.z2h_1))
|
|
6390
6390
|
return false;
|
|
6391
|
-
if (!(this.
|
|
6391
|
+
if (!(this.a2i_1 == tmp0_other_with_cast.a2i_1))
|
|
6392
6392
|
return false;
|
|
6393
|
-
if (!(this.
|
|
6393
|
+
if (!(this.b2i_1 == tmp0_other_with_cast.b2i_1))
|
|
6394
6394
|
return false;
|
|
6395
|
-
if (!(this.
|
|
6395
|
+
if (!(this.c2i_1 == tmp0_other_with_cast.c2i_1))
|
|
6396
6396
|
return false;
|
|
6397
|
-
if (!(this.
|
|
6397
|
+
if (!(this.d2i_1 == tmp0_other_with_cast.d2i_1))
|
|
6398
6398
|
return false;
|
|
6399
|
-
if (!equals(this.
|
|
6399
|
+
if (!equals(this.e2i_1, tmp0_other_with_cast.e2i_1))
|
|
6400
6400
|
return false;
|
|
6401
|
-
if (!this.
|
|
6401
|
+
if (!this.f2i_1.equals(tmp0_other_with_cast.f2i_1))
|
|
6402
6402
|
return false;
|
|
6403
|
-
if (!this.
|
|
6403
|
+
if (!this.g2i_1.equals(tmp0_other_with_cast.g2i_1))
|
|
6404
6404
|
return false;
|
|
6405
|
-
if (!(this.
|
|
6405
|
+
if (!(this.h2i_1 === tmp0_other_with_cast.h2i_1))
|
|
6406
6406
|
return false;
|
|
6407
6407
|
return true;
|
|
6408
6408
|
};
|
|
6409
6409
|
function Cell() {
|
|
6410
6410
|
}
|
|
6411
6411
|
function measureColumn($this, x, t, width) {
|
|
6412
|
-
var tmp56_safe_receiver = $this.
|
|
6412
|
+
var tmp56_safe_receiver = $this.r2i_1.q(x).k2i_1;
|
|
6413
6413
|
if (tmp56_safe_receiver == null)
|
|
6414
6414
|
null;
|
|
6415
6415
|
else {
|
|
6416
6416
|
// Inline function 'kotlin.let' call
|
|
6417
6417
|
var tmp;
|
|
6418
|
-
if (!$this.
|
|
6418
|
+
if (!$this.t2i_1) {
|
|
6419
6419
|
tmp = 0;
|
|
6420
6420
|
} else {
|
|
6421
|
-
var tmp0 = $this.
|
|
6421
|
+
var tmp0 = $this.m2i_1;
|
|
6422
6422
|
var tmp$ret$0;
|
|
6423
6423
|
$l$block: {
|
|
6424
6424
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -6430,13 +6430,13 @@
|
|
|
6430
6430
|
var row = iterator.o();
|
|
6431
6431
|
var tmp_0 = getOrNull(row, x);
|
|
6432
6432
|
var tmp57_safe_receiver = tmp_0 instanceof Content ? tmp_0 : null;
|
|
6433
|
-
var tmp0_elvis_lhs = tmp57_safe_receiver == null ? null : tmp57_safe_receiver.
|
|
6433
|
+
var tmp0_elvis_lhs = tmp57_safe_receiver == null ? null : tmp57_safe_receiver.h2i_1;
|
|
6434
6434
|
var maxValue = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
6435
6435
|
while (iterator.n()) {
|
|
6436
6436
|
var row_0 = iterator.o();
|
|
6437
6437
|
var tmp_1 = getOrNull(row_0, x);
|
|
6438
6438
|
var tmp57_safe_receiver_0 = tmp_1 instanceof Content ? tmp_1 : null;
|
|
6439
|
-
var tmp0_elvis_lhs_0 = tmp57_safe_receiver_0 == null ? null : tmp57_safe_receiver_0.
|
|
6439
|
+
var tmp0_elvis_lhs_0 = tmp57_safe_receiver_0 == null ? null : tmp57_safe_receiver_0.h2i_1;
|
|
6440
6440
|
var v = tmp0_elvis_lhs_0 == null ? 0 : tmp0_elvis_lhs_0;
|
|
6441
6441
|
if (compareTo(maxValue, v) < 0) {
|
|
6442
6442
|
maxValue = v;
|
|
@@ -6453,7 +6453,7 @@
|
|
|
6453
6453
|
// Inline function 'com.github.ajalt.mordant.rendering.maxWidthRange' call
|
|
6454
6454
|
var max = 0;
|
|
6455
6455
|
var min = 0;
|
|
6456
|
-
var _iterator__ex2g4s = $this.
|
|
6456
|
+
var _iterator__ex2g4s = $this.m2i_1.m();
|
|
6457
6457
|
$l$loop: while (_iterator__ex2g4s.n()) {
|
|
6458
6458
|
var it = _iterator__ex2g4s.o();
|
|
6459
6459
|
var cell = getOrNull(it, x);
|
|
@@ -6465,10 +6465,10 @@
|
|
|
6465
6465
|
tmp_2 = new WidthRange(0, 0);
|
|
6466
6466
|
} else {
|
|
6467
6467
|
if (cell instanceof Content) {
|
|
6468
|
-
tmp_2 = cell.
|
|
6468
|
+
tmp_2 = cell.x2h_1.o2g(t, width).g2h(cell.z2h_1);
|
|
6469
6469
|
} else {
|
|
6470
6470
|
if (cell instanceof SpanRef) {
|
|
6471
|
-
tmp_2 = cell.
|
|
6471
|
+
tmp_2 = cell.s2h_1.x2h_1.o2g(t, width).g2h(cell.i2i());
|
|
6472
6472
|
} else {
|
|
6473
6473
|
noWhenBranchMatchedException();
|
|
6474
6474
|
}
|
|
@@ -6485,25 +6485,25 @@
|
|
|
6485
6485
|
var range = tmp_3;
|
|
6486
6486
|
var tmp0_0 = max;
|
|
6487
6487
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6488
|
-
var b = range.
|
|
6488
|
+
var b = range.d2h_1;
|
|
6489
6489
|
max = Math.max(tmp0_0, b);
|
|
6490
6490
|
var tmp0_1 = min;
|
|
6491
6491
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6492
|
-
var b_0 = range.
|
|
6492
|
+
var b_0 = range.c2h_1;
|
|
6493
6493
|
min = Math.max(tmp0_1, b_0);
|
|
6494
6494
|
}
|
|
6495
6495
|
var range_0 = new WidthRange(min + 0 | 0, max + 0 | 0);
|
|
6496
|
-
if (!($this.
|
|
6497
|
-
return new WidthRange(range_0.
|
|
6496
|
+
if (!($this.r2i_1.q(x).l2i_1 == null)) {
|
|
6497
|
+
return new WidthRange(range_0.c2h_1, coerceAtLeast(width, range_0.d2h_1));
|
|
6498
6498
|
}
|
|
6499
6499
|
return range_0;
|
|
6500
6500
|
}
|
|
6501
6501
|
function calculateColumnWidths($this, t, terminalWidth) {
|
|
6502
|
-
var availableWidth = terminalWidth - $this.
|
|
6502
|
+
var availableWidth = terminalWidth - $this.y2i_1 | 0;
|
|
6503
6503
|
if (availableWidth <= 0) {
|
|
6504
6504
|
// Inline function 'kotlin.collections.List' call
|
|
6505
6505
|
// Inline function 'kotlin.collections.MutableList' call
|
|
6506
|
-
var size = $this.
|
|
6506
|
+
var size = $this.v2i_1;
|
|
6507
6507
|
var list = ArrayList_init_$Create$_0(size);
|
|
6508
6508
|
// Inline function 'kotlin.repeat' call
|
|
6509
6509
|
var inductionVariable = 0;
|
|
@@ -6518,7 +6518,7 @@
|
|
|
6518
6518
|
}
|
|
6519
6519
|
// Inline function 'kotlin.collections.List' call
|
|
6520
6520
|
// Inline function 'kotlin.collections.MutableList' call
|
|
6521
|
-
var size_0 = $this.
|
|
6521
|
+
var size_0 = $this.v2i_1;
|
|
6522
6522
|
var list_0 = ArrayList_init_$Create$_0(size_0);
|
|
6523
6523
|
// Inline function 'kotlin.repeat' call
|
|
6524
6524
|
var inductionVariable_0 = 0;
|
|
@@ -6537,18 +6537,18 @@
|
|
|
6537
6537
|
var _iterator__ex2g4s = measurements.m();
|
|
6538
6538
|
while (_iterator__ex2g4s.n()) {
|
|
6539
6539
|
var item = _iterator__ex2g4s.o();
|
|
6540
|
-
var tmp$ret$11 = item.
|
|
6540
|
+
var tmp$ret$11 = item.d2h_1;
|
|
6541
6541
|
destination.e(tmp$ret$11);
|
|
6542
6542
|
}
|
|
6543
6543
|
var widths = destination;
|
|
6544
6544
|
// Inline function 'kotlin.collections.groupBy' call
|
|
6545
|
-
var tmp0 = withIndex($this.
|
|
6545
|
+
var tmp0 = withIndex($this.r2i_1);
|
|
6546
6546
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
6547
6547
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
6548
6548
|
var _iterator__ex2g4s_0 = tmp0.m();
|
|
6549
6549
|
while (_iterator__ex2g4s_0.n()) {
|
|
6550
6550
|
var element = _iterator__ex2g4s_0.o();
|
|
6551
|
-
var key = element.bf_1.
|
|
6551
|
+
var key = element.bf_1.j2i_1;
|
|
6552
6552
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
6553
6553
|
var value = destination_0.d2(key);
|
|
6554
6554
|
var tmp;
|
|
@@ -6597,7 +6597,7 @@
|
|
|
6597
6597
|
while (_iterator__ex2g4s_4.n()) {
|
|
6598
6598
|
var element_2 = _iterator__ex2g4s_4.o();
|
|
6599
6599
|
var tmp_2 = sum;
|
|
6600
|
-
sum = tmp_2 + measurements.q(element_2).
|
|
6600
|
+
sum = tmp_2 + measurements.q(element_2).c2h_1 | 0;
|
|
6601
6601
|
}
|
|
6602
6602
|
var tmp_3 = sum;
|
|
6603
6603
|
// Inline function 'kotlin.collections.sumOf' call
|
|
@@ -6606,7 +6606,7 @@
|
|
|
6606
6606
|
while (_iterator__ex2g4s_5.n()) {
|
|
6607
6607
|
var element_3 = _iterator__ex2g4s_5.o();
|
|
6608
6608
|
var tmp_4 = sum_0;
|
|
6609
|
-
sum_0 = tmp_4 + measurements.q(element_3).
|
|
6609
|
+
sum_0 = tmp_4 + measurements.q(element_3).d2h_1 | 0;
|
|
6610
6610
|
}
|
|
6611
6611
|
var tmp$ret$30 = sum_0;
|
|
6612
6612
|
var tmp$ret$31 = new WidthRange(tmp_3, tmp$ret$30);
|
|
@@ -6646,10 +6646,10 @@
|
|
|
6646
6646
|
while (_iterator__ex2g4s_8.n()) {
|
|
6647
6647
|
var element_6 = _iterator__ex2g4s_8.o();
|
|
6648
6648
|
var tmp_6 = sum_1;
|
|
6649
|
-
sum_1 = tmp_6 + element_6.z().
|
|
6649
|
+
sum_1 = tmp_6 + element_6.z().c2h_1 | 0;
|
|
6650
6650
|
}
|
|
6651
6651
|
var lowerMin = sum_1;
|
|
6652
|
-
var allocated = coerceAtMost(coerceIn(remainingWidth - lowerMin | 0, m.
|
|
6652
|
+
var allocated = coerceAtMost(coerceIn(remainingWidth - lowerMin | 0, m.c2h_1, m.d2h_1), remainingWidth);
|
|
6653
6653
|
remainingWidth = remainingWidth - allocated | 0;
|
|
6654
6654
|
// Inline function 'kotlin.collections.set' call
|
|
6655
6655
|
allocatedWidths.l2(p, allocated);
|
|
@@ -6673,8 +6673,8 @@
|
|
|
6673
6673
|
var _iterator__ex2g4s_10 = indexes.m();
|
|
6674
6674
|
while (_iterator__ex2g4s_10.n()) {
|
|
6675
6675
|
var item_1 = _iterator__ex2g4s_10.o();
|
|
6676
|
-
var tmp0_elvis_lhs = $this.
|
|
6677
|
-
var tmp$ret$52 = tmp0_elvis_lhs == null ? measurements.q(item_1).
|
|
6676
|
+
var tmp0_elvis_lhs = $this.r2i_1.q(item_1).l2i_1;
|
|
6677
|
+
var tmp$ret$52 = tmp0_elvis_lhs == null ? measurements.q(item_1).d2h_1 : tmp0_elvis_lhs;
|
|
6678
6678
|
destination_5.e(tmp$ret$52);
|
|
6679
6679
|
}
|
|
6680
6680
|
var weights = destination_5;
|
|
@@ -6733,20 +6733,20 @@
|
|
|
6733
6733
|
return widths;
|
|
6734
6734
|
}
|
|
6735
6735
|
function getCell($this, x, y) {
|
|
6736
|
-
var tmp58_safe_receiver = getOrNull($this.
|
|
6736
|
+
var tmp58_safe_receiver = getOrNull($this.m2i_1, y);
|
|
6737
6737
|
return tmp58_safe_receiver == null ? null : getOrNull(tmp58_safe_receiver, x);
|
|
6738
6738
|
}
|
|
6739
6739
|
function sam$kotlin_Comparator$0(function_0) {
|
|
6740
|
-
this.
|
|
6740
|
+
this.z2i_1 = function_0;
|
|
6741
6741
|
}
|
|
6742
6742
|
protoOf(sam$kotlin_Comparator$0).be = function (a, b) {
|
|
6743
|
-
return this.
|
|
6743
|
+
return this.z2i_1(a, b);
|
|
6744
6744
|
};
|
|
6745
6745
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
6746
6746
|
return this.be(a, b);
|
|
6747
6747
|
};
|
|
6748
6748
|
protoOf(sam$kotlin_Comparator$0).m3 = function () {
|
|
6749
|
-
return this.
|
|
6749
|
+
return this.z2i_1;
|
|
6750
6750
|
};
|
|
6751
6751
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
6752
6752
|
var tmp;
|
|
@@ -6780,22 +6780,22 @@
|
|
|
6780
6780
|
}
|
|
6781
6781
|
function TableImpl(rows, borderType, borderStyle, headerRowCount, footerRowCount, columnWidths, tableBorders, addPaddingWidthToFixedWidth) {
|
|
6782
6782
|
Table.call(this);
|
|
6783
|
-
this.
|
|
6784
|
-
this.
|
|
6785
|
-
this.
|
|
6786
|
-
this.
|
|
6787
|
-
this.
|
|
6788
|
-
this.
|
|
6789
|
-
this.
|
|
6790
|
-
this.
|
|
6783
|
+
this.m2i_1 = rows;
|
|
6784
|
+
this.n2i_1 = borderType;
|
|
6785
|
+
this.o2i_1 = borderStyle;
|
|
6786
|
+
this.p2i_1 = headerRowCount;
|
|
6787
|
+
this.q2i_1 = footerRowCount;
|
|
6788
|
+
this.r2i_1 = columnWidths;
|
|
6789
|
+
this.s2i_1 = tableBorders;
|
|
6790
|
+
this.t2i_1 = addPaddingWidthToFixedWidth;
|
|
6791
6791
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6792
6792
|
// Inline function 'kotlin.require' call
|
|
6793
|
-
if (!!this.
|
|
6793
|
+
if (!!this.m2i_1.j()) {
|
|
6794
6794
|
var message = 'Table cannot be empty';
|
|
6795
6795
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
6796
6796
|
}
|
|
6797
6797
|
var tmp = this;
|
|
6798
|
-
var tmp0 = this.
|
|
6798
|
+
var tmp0 = this.r2i_1;
|
|
6799
6799
|
var tmp$ret$3;
|
|
6800
6800
|
$l$block_0: {
|
|
6801
6801
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -6812,19 +6812,19 @@
|
|
|
6812
6812
|
var _iterator__ex2g4s = tmp0.m();
|
|
6813
6813
|
while (_iterator__ex2g4s.n()) {
|
|
6814
6814
|
var element = _iterator__ex2g4s.o();
|
|
6815
|
-
if (!(element.
|
|
6815
|
+
if (!(element.l2i_1 == null)) {
|
|
6816
6816
|
tmp$ret$3 = true;
|
|
6817
6817
|
break $l$block_0;
|
|
6818
6818
|
}
|
|
6819
6819
|
}
|
|
6820
6820
|
tmp$ret$3 = false;
|
|
6821
6821
|
}
|
|
6822
|
-
tmp.
|
|
6823
|
-
this.
|
|
6822
|
+
tmp.u2i_1 = tmp$ret$3;
|
|
6823
|
+
this.v2i_1 = this.r2i_1.p();
|
|
6824
6824
|
var tmp_1 = this;
|
|
6825
6825
|
// Inline function 'kotlin.collections.List' call
|
|
6826
6826
|
// Inline function 'kotlin.collections.MutableList' call
|
|
6827
|
-
var size = this.
|
|
6827
|
+
var size = this.m2i_1.p() + 1 | 0;
|
|
6828
6828
|
var list = ArrayList_init_$Create$_0(size);
|
|
6829
6829
|
// Inline function 'kotlin.repeat' call
|
|
6830
6830
|
var inductionVariable = 0;
|
|
@@ -6833,12 +6833,12 @@
|
|
|
6833
6833
|
var index = inductionVariable;
|
|
6834
6834
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6835
6835
|
var tmp_2;
|
|
6836
|
-
if (index === 0 && !(this.
|
|
6837
|
-
tmp_2 = this.
|
|
6838
|
-
} else if (index === this.
|
|
6839
|
-
tmp_2 = this.
|
|
6836
|
+
if (index === 0 && !(this.s2i_1 == null)) {
|
|
6837
|
+
tmp_2 = this.s2i_1.k2h_1;
|
|
6838
|
+
} else if (index === this.m2i_1.p() && !(this.s2i_1 == null)) {
|
|
6839
|
+
tmp_2 = this.s2i_1.m2h_1;
|
|
6840
6840
|
} else {
|
|
6841
|
-
var tmp0_0 = until(0, this.
|
|
6841
|
+
var tmp0_0 = until(0, this.v2i_1);
|
|
6842
6842
|
var tmp$ret$5;
|
|
6843
6843
|
$l$block_2: {
|
|
6844
6844
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -6873,11 +6873,11 @@
|
|
|
6873
6873
|
list.e(tmp$ret$7);
|
|
6874
6874
|
}
|
|
6875
6875
|
while (inductionVariable < size);
|
|
6876
|
-
tmp_1.
|
|
6876
|
+
tmp_1.w2i_1 = list;
|
|
6877
6877
|
var tmp_4 = this;
|
|
6878
6878
|
// Inline function 'kotlin.collections.List' call
|
|
6879
6879
|
// Inline function 'kotlin.collections.MutableList' call
|
|
6880
|
-
var size_0 = this.
|
|
6880
|
+
var size_0 = this.v2i_1 + 1 | 0;
|
|
6881
6881
|
var list_0 = ArrayList_init_$Create$_0(size_0);
|
|
6882
6882
|
// Inline function 'kotlin.repeat' call
|
|
6883
6883
|
var inductionVariable_1 = 0;
|
|
@@ -6886,12 +6886,12 @@
|
|
|
6886
6886
|
var index_0 = inductionVariable_1;
|
|
6887
6887
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
6888
6888
|
var tmp_5;
|
|
6889
|
-
if (index_0 === 0 && !(this.
|
|
6890
|
-
tmp_5 = this.
|
|
6891
|
-
} else if (index_0 === this.
|
|
6892
|
-
tmp_5 = this.
|
|
6889
|
+
if (index_0 === 0 && !(this.s2i_1 == null)) {
|
|
6890
|
+
tmp_5 = this.s2i_1.j2h_1;
|
|
6891
|
+
} else if (index_0 === this.v2i_1 && !(this.s2i_1 == null)) {
|
|
6892
|
+
tmp_5 = this.s2i_1.l2h_1;
|
|
6893
6893
|
} else {
|
|
6894
|
-
var tmp0_1 = get_indices(this.
|
|
6894
|
+
var tmp0_1 = get_indices(this.m2i_1);
|
|
6895
6895
|
var tmp$ret$12;
|
|
6896
6896
|
$l$block_4: {
|
|
6897
6897
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -6926,9 +6926,9 @@
|
|
|
6926
6926
|
list_0.e(tmp$ret$14);
|
|
6927
6927
|
}
|
|
6928
6928
|
while (inductionVariable_1 < size_0);
|
|
6929
|
-
tmp_4.
|
|
6929
|
+
tmp_4.x2i_1 = list_0;
|
|
6930
6930
|
var tmp_7 = this;
|
|
6931
|
-
var tmp0_2 = this.
|
|
6931
|
+
var tmp0_2 = this.x2i_1;
|
|
6932
6932
|
var tmp$ret$19;
|
|
6933
6933
|
$l$block_5: {
|
|
6934
6934
|
// Inline function 'kotlin.collections.count' call
|
|
@@ -6953,15 +6953,15 @@
|
|
|
6953
6953
|
}
|
|
6954
6954
|
tmp$ret$19 = count;
|
|
6955
6955
|
}
|
|
6956
|
-
tmp_7.
|
|
6956
|
+
tmp_7.y2i_1 = tmp$ret$19;
|
|
6957
6957
|
}
|
|
6958
|
-
protoOf(TableImpl).
|
|
6959
|
-
if (this.
|
|
6958
|
+
protoOf(TableImpl).o2g = function (t, width) {
|
|
6959
|
+
if (this.u2i_1)
|
|
6960
6960
|
return new WidthRange(width, width);
|
|
6961
|
-
var remainingWidth = width - this.
|
|
6961
|
+
var remainingWidth = width - this.y2i_1 | 0;
|
|
6962
6962
|
// Inline function 'kotlin.collections.List' call
|
|
6963
6963
|
// Inline function 'kotlin.collections.MutableList' call
|
|
6964
|
-
var size = this.
|
|
6964
|
+
var size = this.v2i_1;
|
|
6965
6965
|
var list = ArrayList_init_$Create$_0(size);
|
|
6966
6966
|
// Inline function 'kotlin.repeat' call
|
|
6967
6967
|
var inductionVariable = 0;
|
|
@@ -6980,51 +6980,51 @@
|
|
|
6980
6980
|
while (_iterator__ex2g4s.n()) {
|
|
6981
6981
|
var element = _iterator__ex2g4s.o();
|
|
6982
6982
|
var tmp = sum;
|
|
6983
|
-
sum = tmp + element.
|
|
6983
|
+
sum = tmp + element.c2h_1 | 0;
|
|
6984
6984
|
}
|
|
6985
|
-
var tmp_0 = sum + this.
|
|
6985
|
+
var tmp_0 = sum + this.y2i_1 | 0;
|
|
6986
6986
|
// Inline function 'kotlin.collections.sumOf' call
|
|
6987
6987
|
var sum_0 = 0;
|
|
6988
6988
|
var _iterator__ex2g4s_0 = ranges.m();
|
|
6989
6989
|
while (_iterator__ex2g4s_0.n()) {
|
|
6990
6990
|
var element_0 = _iterator__ex2g4s_0.o();
|
|
6991
6991
|
var tmp_1 = sum_0;
|
|
6992
|
-
sum_0 = tmp_1 + element_0.
|
|
6992
|
+
sum_0 = tmp_1 + element_0.d2h_1 | 0;
|
|
6993
6993
|
}
|
|
6994
6994
|
var tmp$ret$8 = sum_0;
|
|
6995
|
-
return new WidthRange(tmp_0, tmp$ret$8 + this.
|
|
6995
|
+
return new WidthRange(tmp_0, tmp$ret$8 + this.y2i_1 | 0);
|
|
6996
6996
|
};
|
|
6997
|
-
protoOf(TableImpl).
|
|
6998
|
-
return (new TableRenderer(this.
|
|
6997
|
+
protoOf(TableImpl).p2g = function (t, width) {
|
|
6998
|
+
return (new TableRenderer(this.m2i_1, this.n2i_1, this.o2i_1, this.p2i_1, this.q2i_1, this.v2i_1, calculateColumnWidths(this, t, width), this.x2i_1, this.w2i_1, this.s2i_1, t)).o2j();
|
|
6999
6999
|
};
|
|
7000
7000
|
function Table() {
|
|
7001
7001
|
}
|
|
7002
7002
|
function get_t(_this__u8e3s4) {
|
|
7003
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7003
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.p2h()) === true;
|
|
7004
7004
|
}
|
|
7005
7005
|
function get_b(_this__u8e3s4) {
|
|
7006
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7006
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.r2h()) === true;
|
|
7007
7007
|
}
|
|
7008
7008
|
function get_l(_this__u8e3s4) {
|
|
7009
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7009
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.o2h()) === true;
|
|
7010
7010
|
}
|
|
7011
7011
|
function get_r(_this__u8e3s4) {
|
|
7012
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7012
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.q2h()) === true;
|
|
7013
7013
|
}
|
|
7014
7014
|
function _get_rowCount__xlqfpy($this) {
|
|
7015
|
-
return $this.
|
|
7015
|
+
return $this.a2j_1.p();
|
|
7016
7016
|
}
|
|
7017
7017
|
function drawBottomBorder($this) {
|
|
7018
|
-
if (!$this.
|
|
7018
|
+
if (!$this.i2j_1.q(_get_rowCount__xlqfpy($this)))
|
|
7019
7019
|
return Unit_instance;
|
|
7020
|
-
var line = $this.
|
|
7020
|
+
var line = $this.n2j_1.q(get_lastIndex_0($this.n2j_1));
|
|
7021
7021
|
var inductionVariable = 0;
|
|
7022
|
-
var last = $this.
|
|
7022
|
+
var last = $this.g2j_1.p() - 1 | 0;
|
|
7023
7023
|
if (inductionVariable <= last)
|
|
7024
7024
|
do {
|
|
7025
7025
|
var x = inductionVariable;
|
|
7026
7026
|
inductionVariable = inductionVariable + 1 | 0;
|
|
7027
|
-
if ($this.
|
|
7027
|
+
if ($this.h2j_1.q(x)) {
|
|
7028
7028
|
var tmp61_safe_receiver = getTopLeftCorner($this, x, _get_rowCount__xlqfpy($this));
|
|
7029
7029
|
if (tmp61_safe_receiver == null)
|
|
7030
7030
|
null;
|
|
@@ -7033,11 +7033,11 @@
|
|
|
7033
7033
|
line.e(tmp61_safe_receiver);
|
|
7034
7034
|
}
|
|
7035
7035
|
}
|
|
7036
|
-
drawTopBorderForCell($this, get_lastIndex_0($this.
|
|
7036
|
+
drawTopBorderForCell($this, get_lastIndex_0($this.n2j_1), x, _get_rowCount__xlqfpy($this), $this.g2j_1.q(x), false);
|
|
7037
7037
|
}
|
|
7038
7038
|
while (inductionVariable <= last);
|
|
7039
|
-
if ($this.
|
|
7040
|
-
var tmp62_safe_receiver = getTopLeftCorner($this, $this.
|
|
7039
|
+
if ($this.h2j_1.q($this.f2j_1)) {
|
|
7040
|
+
var tmp62_safe_receiver = getTopLeftCorner($this, $this.f2j_1, _get_rowCount__xlqfpy($this));
|
|
7041
7041
|
if (tmp62_safe_receiver == null)
|
|
7042
7042
|
null;
|
|
7043
7043
|
else {
|
|
@@ -7054,53 +7054,53 @@
|
|
|
7054
7054
|
var i = index;
|
|
7055
7055
|
index = index + 1 | 0;
|
|
7056
7056
|
var line = iterator.o();
|
|
7057
|
-
$this.
|
|
7057
|
+
$this.n2j_1.q(tableLineY + i | 0).u(line);
|
|
7058
7058
|
}
|
|
7059
7059
|
}
|
|
7060
7060
|
function drawTopBorderForCell($this, tableLineY, x, y, colWidth, borderTop) {
|
|
7061
|
-
if (!$this.
|
|
7061
|
+
if (!$this.i2j_1.q(y))
|
|
7062
7062
|
return 0;
|
|
7063
7063
|
if (colWidth === 0 || borderTop == null) {
|
|
7064
7064
|
return 1;
|
|
7065
7065
|
}
|
|
7066
7066
|
var tmp;
|
|
7067
|
-
if (borderTop || (y === 0 && get_t_0($this.
|
|
7068
|
-
tmp = sectionOfRow$default($this, y).
|
|
7067
|
+
if (borderTop || (y === 0 && get_t_0($this.j2j_1)) || (y === _get_rowCount__xlqfpy($this) && get_b_0($this.j2j_1)) || get_b(cellAt($this, x, y - 1 | 0))) {
|
|
7068
|
+
tmp = sectionOfRow$default($this, y).k2e_1;
|
|
7069
7069
|
} else {
|
|
7070
7070
|
tmp = ' ';
|
|
7071
7071
|
}
|
|
7072
7072
|
var char = tmp;
|
|
7073
|
-
$this.
|
|
7073
|
+
$this.n2j_1.q(tableLineY).e(Companion_instance_0.c2d(repeat(char, colWidth), $this.c2j_1));
|
|
7074
7074
|
return 1;
|
|
7075
7075
|
}
|
|
7076
7076
|
function drawLeftBorderForColumn($this, x) {
|
|
7077
|
-
if (!$this.
|
|
7077
|
+
if (!$this.h2j_1.q(x))
|
|
7078
7078
|
return Unit_instance;
|
|
7079
7079
|
var tableLineY = 0;
|
|
7080
|
-
var iterator = $this.
|
|
7080
|
+
var iterator = $this.a2j_1.m();
|
|
7081
7081
|
var index = 0;
|
|
7082
7082
|
while (iterator.n()) {
|
|
7083
7083
|
var y = index;
|
|
7084
7084
|
index = index + 1 | 0;
|
|
7085
7085
|
var row = iterator.o();
|
|
7086
|
-
var rowHeight = $this.
|
|
7086
|
+
var rowHeight = $this.m2j_1.q(y);
|
|
7087
7087
|
var tmp0_elvis_lhs = getOrNull(row, x);
|
|
7088
7088
|
var cell = tmp0_elvis_lhs == null ? Empty_getInstance() : tmp0_elvis_lhs;
|
|
7089
|
-
if ($this.
|
|
7089
|
+
if ($this.i2j_1.q(y)) {
|
|
7090
7090
|
var tmp63_safe_receiver = getTopLeftCorner($this, x, y);
|
|
7091
7091
|
if (tmp63_safe_receiver == null)
|
|
7092
7092
|
null;
|
|
7093
7093
|
else {
|
|
7094
7094
|
// Inline function 'kotlin.let' call
|
|
7095
|
-
$this.
|
|
7095
|
+
$this.n2j_1.q(tableLineY).e(tmp63_safe_receiver);
|
|
7096
7096
|
}
|
|
7097
7097
|
}
|
|
7098
|
-
var borderLeft = cell.
|
|
7099
|
-
var topBorderHeight = $this.
|
|
7098
|
+
var borderLeft = cell.o2h();
|
|
7099
|
+
var topBorderHeight = $this.i2j_1.q(y) ? 1 : 0;
|
|
7100
7100
|
if (!(borderLeft == null)) {
|
|
7101
7101
|
var tmp;
|
|
7102
|
-
if (x === 0 && get_l_0($this.
|
|
7103
|
-
tmp = Companion_instance_0.
|
|
7102
|
+
if (x === 0 && get_l_0($this.j2j_1) || (x === $this.f2j_1 && get_r_0($this.j2j_1)) || borderLeft || get_r(cellAt($this, x - 1 | 0, y))) {
|
|
7103
|
+
tmp = Companion_instance_0.c2d(sectionOfRow($this, y, false).l2e_1, $this.c2j_1);
|
|
7104
7104
|
} else {
|
|
7105
7105
|
tmp = get_SINGLE_SPACE();
|
|
7106
7106
|
}
|
|
@@ -7110,7 +7110,7 @@
|
|
|
7110
7110
|
do {
|
|
7111
7111
|
var i = inductionVariable;
|
|
7112
7112
|
inductionVariable = inductionVariable + 1 | 0;
|
|
7113
|
-
$this.
|
|
7113
|
+
$this.n2j_1.q((tableLineY + i | 0) + topBorderHeight | 0).e(border);
|
|
7114
7114
|
}
|
|
7115
7115
|
while (inductionVariable < rowHeight);
|
|
7116
7116
|
}
|
|
@@ -7123,10 +7123,10 @@
|
|
|
7123
7123
|
tmp = emptyList();
|
|
7124
7124
|
} else {
|
|
7125
7125
|
if (cell instanceof Empty) {
|
|
7126
|
-
var space = listOf_0(Companion_instance_0.
|
|
7126
|
+
var space = listOf_0(Companion_instance_0.w2c($this.g2j_1.q(x)));
|
|
7127
7127
|
// Inline function 'kotlin.collections.List' call
|
|
7128
7128
|
// Inline function 'kotlin.collections.MutableList' call
|
|
7129
|
-
var size = $this.
|
|
7129
|
+
var size = $this.m2j_1.q(y);
|
|
7130
7130
|
var list = ArrayList_init_$Create$_0(size);
|
|
7131
7131
|
// Inline function 'kotlin.repeat' call
|
|
7132
7132
|
var inductionVariable = 0;
|
|
@@ -7142,7 +7142,7 @@
|
|
|
7142
7142
|
if (cell instanceof Content) {
|
|
7143
7143
|
// Inline function 'kotlin.collections.sumOf' call
|
|
7144
7144
|
var sum = 0;
|
|
7145
|
-
var progression = until(x, x + cell.
|
|
7145
|
+
var progression = until(x, x + cell.z2h_1 | 0);
|
|
7146
7146
|
var inductionVariable_0 = progression.b1_1;
|
|
7147
7147
|
var last = progression.c1_1;
|
|
7148
7148
|
if (inductionVariable_0 <= last)
|
|
@@ -7151,11 +7151,11 @@
|
|
|
7151
7151
|
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
7152
7152
|
var tmp_0 = sum;
|
|
7153
7153
|
var it = element;
|
|
7154
|
-
sum = tmp_0 + $this.
|
|
7154
|
+
sum = tmp_0 + $this.g2j_1.q(it) | 0;
|
|
7155
7155
|
}
|
|
7156
7156
|
while (!(element === last));
|
|
7157
7157
|
var tmp_1 = sum;
|
|
7158
|
-
var tmp0 = until(x + 1 | 0, x + cell.
|
|
7158
|
+
var tmp0 = until(x + 1 | 0, x + cell.z2h_1 | 0);
|
|
7159
7159
|
var tmp$ret$7;
|
|
7160
7160
|
$l$block: {
|
|
7161
7161
|
// Inline function 'kotlin.collections.count' call
|
|
@@ -7177,7 +7177,7 @@
|
|
|
7177
7177
|
var element_0 = inductionVariable_1;
|
|
7178
7178
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
7179
7179
|
var it_0 = element_0;
|
|
7180
|
-
if ($this.
|
|
7180
|
+
if ($this.h2j_1.q(it_0 + 1 | 0)) {
|
|
7181
7181
|
count = count + 1 | 0;
|
|
7182
7182
|
checkCountOverflow(count);
|
|
7183
7183
|
}
|
|
@@ -7188,7 +7188,7 @@
|
|
|
7188
7188
|
var cellWidth = coerceAtLeast(tmp_1 + tmp$ret$7 | 0, 0);
|
|
7189
7189
|
// Inline function 'kotlin.collections.sumOf' call
|
|
7190
7190
|
var sum_0 = 0;
|
|
7191
|
-
var progression_0 = until(y, y + cell.
|
|
7191
|
+
var progression_0 = until(y, y + cell.y2h_1 | 0);
|
|
7192
7192
|
var inductionVariable_2 = progression_0.b1_1;
|
|
7193
7193
|
var last_1 = progression_0.c1_1;
|
|
7194
7194
|
if (inductionVariable_2 <= last_1)
|
|
@@ -7197,11 +7197,11 @@
|
|
|
7197
7197
|
inductionVariable_2 = inductionVariable_2 + 1 | 0;
|
|
7198
7198
|
var tmp_3 = sum_0;
|
|
7199
7199
|
var it_1 = element_1;
|
|
7200
|
-
sum_0 = tmp_3 + $this.
|
|
7200
|
+
sum_0 = tmp_3 + $this.m2j_1.q(it_1) | 0;
|
|
7201
7201
|
}
|
|
7202
7202
|
while (!(element_1 === last_1));
|
|
7203
7203
|
var tmp_4 = sum_0;
|
|
7204
|
-
var tmp0_0 = until(y + 1 | 0, y + cell.
|
|
7204
|
+
var tmp0_0 = until(y + 1 | 0, y + cell.y2h_1 | 0);
|
|
7205
7205
|
var tmp$ret$11;
|
|
7206
7206
|
$l$block_0: {
|
|
7207
7207
|
// Inline function 'kotlin.collections.count' call
|
|
@@ -7223,7 +7223,7 @@
|
|
|
7223
7223
|
var element_2 = inductionVariable_3;
|
|
7224
7224
|
inductionVariable_3 = inductionVariable_3 + 1 | 0;
|
|
7225
7225
|
var it_2 = element_2;
|
|
7226
|
-
if ($this.
|
|
7226
|
+
if ($this.i2j_1.q(it_2 + 1 | 0)) {
|
|
7227
7227
|
count_0 = count_0 + 1 | 0;
|
|
7228
7228
|
checkCountOverflow(count_0);
|
|
7229
7229
|
}
|
|
@@ -7232,7 +7232,7 @@
|
|
|
7232
7232
|
tmp$ret$11 = count_0;
|
|
7233
7233
|
}
|
|
7234
7234
|
var cellHeight = tmp_4 + tmp$ret$11 | 0;
|
|
7235
|
-
tmp = setSize(cell.
|
|
7235
|
+
tmp = setSize(cell.x2h_1.p2g($this.k2j_1, cellWidth).t2e(cell.e2i_1), cellWidth, cellHeight, cell.g2i_1, cell.f2i_1).p2c_1;
|
|
7236
7236
|
} else {
|
|
7237
7237
|
noWhenBranchMatchedException();
|
|
7238
7238
|
}
|
|
@@ -7241,7 +7241,7 @@
|
|
|
7241
7241
|
return tmp;
|
|
7242
7242
|
}
|
|
7243
7243
|
function cellAt($this, x, y) {
|
|
7244
|
-
var tmp65_safe_receiver = getOrNull($this.
|
|
7244
|
+
var tmp65_safe_receiver = getOrNull($this.a2j_1, y);
|
|
7245
7245
|
return tmp65_safe_receiver == null ? null : getOrNull(tmp65_safe_receiver, x);
|
|
7246
7246
|
}
|
|
7247
7247
|
function getTopLeftCorner($this, x, y) {
|
|
@@ -7258,72 +7258,72 @@
|
|
|
7258
7258
|
var tmp_5;
|
|
7259
7259
|
var tmp_6;
|
|
7260
7260
|
if (!(tl == null) || !(tr == null) || !(bl == null) || !(br == null)) {
|
|
7261
|
-
tmp_6 = (tl == null ? null : tl.
|
|
7261
|
+
tmp_6 = (tl == null ? null : tl.q2h()) == null;
|
|
7262
7262
|
} else {
|
|
7263
7263
|
tmp_6 = false;
|
|
7264
7264
|
}
|
|
7265
7265
|
if (tmp_6) {
|
|
7266
|
-
tmp_5 = (tr == null ? null : tr.
|
|
7266
|
+
tmp_5 = (tr == null ? null : tr.o2h()) == null;
|
|
7267
7267
|
} else {
|
|
7268
7268
|
tmp_5 = false;
|
|
7269
7269
|
}
|
|
7270
7270
|
if (tmp_5) {
|
|
7271
|
-
tmp_4 = (tr == null ? null : tr.
|
|
7271
|
+
tmp_4 = (tr == null ? null : tr.r2h()) == null;
|
|
7272
7272
|
} else {
|
|
7273
7273
|
tmp_4 = false;
|
|
7274
7274
|
}
|
|
7275
7275
|
if (tmp_4) {
|
|
7276
|
-
tmp_3 = (br == null ? null : br.
|
|
7276
|
+
tmp_3 = (br == null ? null : br.p2h()) == null;
|
|
7277
7277
|
} else {
|
|
7278
7278
|
tmp_3 = false;
|
|
7279
7279
|
}
|
|
7280
7280
|
if (tmp_3) {
|
|
7281
|
-
tmp_2 = (bl == null ? null : bl.
|
|
7281
|
+
tmp_2 = (bl == null ? null : bl.q2h()) == null;
|
|
7282
7282
|
} else {
|
|
7283
7283
|
tmp_2 = false;
|
|
7284
7284
|
}
|
|
7285
7285
|
if (tmp_2) {
|
|
7286
|
-
tmp_1 = (br == null ? null : br.
|
|
7286
|
+
tmp_1 = (br == null ? null : br.o2h()) == null;
|
|
7287
7287
|
} else {
|
|
7288
7288
|
tmp_1 = false;
|
|
7289
7289
|
}
|
|
7290
7290
|
if (tmp_1) {
|
|
7291
|
-
tmp_0 = (tl == null ? null : tl.
|
|
7291
|
+
tmp_0 = (tl == null ? null : tl.r2h()) == null;
|
|
7292
7292
|
} else {
|
|
7293
7293
|
tmp_0 = false;
|
|
7294
7294
|
}
|
|
7295
7295
|
if (tmp_0) {
|
|
7296
|
-
tmp = (bl == null ? null : bl.
|
|
7296
|
+
tmp = (bl == null ? null : bl.p2h()) == null;
|
|
7297
7297
|
} else {
|
|
7298
7298
|
tmp = false;
|
|
7299
7299
|
}
|
|
7300
7300
|
if (tmp) {
|
|
7301
7301
|
return null;
|
|
7302
7302
|
}
|
|
7303
|
-
return sectionOfRow$default($this, y).
|
|
7303
|
+
return sectionOfRow$default($this, y).r2e(get_r(tl) || get_l(tr) || (y > 0 && (x === 0 && get_l_0($this.j2j_1) || (x === $this.f2j_1 && get_r_0($this.j2j_1)))), get_b(tr) || get_t(br) || (x < $this.f2j_1 && (y === 0 && get_t_0($this.j2j_1) || (y === _get_rowCount__xlqfpy($this) && get_b_0($this.j2j_1)))), get_r(bl) || get_l(br) || (y < _get_rowCount__xlqfpy($this) && (x === 0 && get_l_0($this.j2j_1) || (x === $this.f2j_1 && get_r_0($this.j2j_1)))), get_b(tl) || get_t(bl) || (x > 0 && (y === 0 && get_t_0($this.j2j_1) || (y === _get_rowCount__xlqfpy($this) && get_b_0($this.j2j_1)))), $this.c2j_1);
|
|
7304
7304
|
}
|
|
7305
7305
|
function sectionOfRow($this, y, allowBottom) {
|
|
7306
|
-
return y < $this.
|
|
7306
|
+
return y < $this.d2j_1 ? $this.b2j_1.w2d_1 : allowBottom && $this.d2j_1 > 0 && y === $this.d2j_1 ? $this.b2j_1.x2d_1 : allowBottom && $this.e2j_1 > 0 && y === (_get_rowCount__xlqfpy($this) - $this.e2j_1 | 0) ? $this.b2j_1.z2d_1 : $this.e2j_1 === 0 || y < (_get_rowCount__xlqfpy($this) - $this.e2j_1 | 0) ? $this.b2j_1.y2d_1 : $this.b2j_1.a2e_1;
|
|
7307
7307
|
}
|
|
7308
7308
|
function sectionOfRow$default($this, y, allowBottom, $super) {
|
|
7309
7309
|
allowBottom = allowBottom === VOID ? true : allowBottom;
|
|
7310
7310
|
return sectionOfRow($this, y, allowBottom);
|
|
7311
7311
|
}
|
|
7312
7312
|
function TableRenderer(rows, borderType, borderStyle, headerRowCount, footerRowCount, columnCount, columnWidths, columnBorders, rowBorders, tableBorders, t) {
|
|
7313
|
-
this.
|
|
7314
|
-
this.
|
|
7315
|
-
this.
|
|
7316
|
-
this.
|
|
7317
|
-
this.
|
|
7318
|
-
this.
|
|
7319
|
-
this.
|
|
7320
|
-
this.
|
|
7321
|
-
this.
|
|
7322
|
-
this.
|
|
7323
|
-
this.
|
|
7313
|
+
this.a2j_1 = rows;
|
|
7314
|
+
this.b2j_1 = borderType;
|
|
7315
|
+
this.c2j_1 = borderStyle;
|
|
7316
|
+
this.d2j_1 = headerRowCount;
|
|
7317
|
+
this.e2j_1 = footerRowCount;
|
|
7318
|
+
this.f2j_1 = columnCount;
|
|
7319
|
+
this.g2j_1 = columnWidths;
|
|
7320
|
+
this.h2j_1 = columnBorders;
|
|
7321
|
+
this.i2j_1 = rowBorders;
|
|
7322
|
+
this.j2j_1 = tableBorders;
|
|
7323
|
+
this.k2j_1 = t;
|
|
7324
7324
|
var tmp = this;
|
|
7325
7325
|
// Inline function 'kotlin.collections.map' call
|
|
7326
|
-
var this_0 = this.
|
|
7326
|
+
var this_0 = this.a2j_1;
|
|
7327
7327
|
// Inline function 'kotlin.collections.mapTo' call
|
|
7328
7328
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
7329
7329
|
var _iterator__ex2g4s = this_0.m();
|
|
@@ -7343,7 +7343,7 @@
|
|
|
7343
7343
|
if (item_0 instanceof Content) {
|
|
7344
7344
|
// Inline function 'kotlin.collections.sumOf' call
|
|
7345
7345
|
var sum_0 = 0;
|
|
7346
|
-
var progression = until(x, x + item_0.
|
|
7346
|
+
var progression = until(x, x + item_0.z2h_1 | 0);
|
|
7347
7347
|
var inductionVariable = progression.b1_1;
|
|
7348
7348
|
var last = progression.c1_1;
|
|
7349
7349
|
if (inductionVariable <= last)
|
|
@@ -7352,11 +7352,11 @@
|
|
|
7352
7352
|
inductionVariable = inductionVariable + 1 | 0;
|
|
7353
7353
|
var tmp_1 = sum_0;
|
|
7354
7354
|
var it = element;
|
|
7355
|
-
sum_0 = tmp_1 + this.
|
|
7355
|
+
sum_0 = tmp_1 + this.g2j_1.q(it) | 0;
|
|
7356
7356
|
}
|
|
7357
7357
|
while (!(element === last));
|
|
7358
7358
|
var w = sum_0;
|
|
7359
|
-
tmp_0 = w === 0 ? get_EMPTY_LINES() : item_0.
|
|
7359
|
+
tmp_0 = w === 0 ? get_EMPTY_LINES() : item_0.x2h_1.p2g(this.k2j_1, w).t2e(item_0.e2i_1);
|
|
7360
7360
|
} else {
|
|
7361
7361
|
tmp_0 = get_EMPTY_LINES();
|
|
7362
7362
|
}
|
|
@@ -7365,10 +7365,10 @@
|
|
|
7365
7365
|
}
|
|
7366
7366
|
destination.e(destination_0);
|
|
7367
7367
|
}
|
|
7368
|
-
tmp.
|
|
7368
|
+
tmp.l2j_1 = destination;
|
|
7369
7369
|
var tmp_2 = this;
|
|
7370
7370
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
7371
|
-
var this_1 = this.
|
|
7371
|
+
var this_1 = this.l2j_1;
|
|
7372
7372
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
7373
7373
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
7374
7374
|
var index_0 = 0;
|
|
@@ -7390,17 +7390,17 @@
|
|
|
7390
7390
|
var destruct = iterator.o();
|
|
7391
7391
|
var x_0 = destruct.ra();
|
|
7392
7392
|
var it_0 = destruct.sa();
|
|
7393
|
-
var tmp_3 = it_0.
|
|
7393
|
+
var tmp_3 = it_0.s2e();
|
|
7394
7394
|
var tmp59_safe_receiver = cellAt(this, x_0, y);
|
|
7395
|
-
var tmp0_elvis_lhs = tmp59_safe_receiver == null ? null : tmp59_safe_receiver.
|
|
7395
|
+
var tmp0_elvis_lhs = tmp59_safe_receiver == null ? null : tmp59_safe_receiver.n2h();
|
|
7396
7396
|
var maxValue = tmp_3 / (tmp0_elvis_lhs == null ? 1 : tmp0_elvis_lhs) | 0;
|
|
7397
7397
|
while (iterator.n()) {
|
|
7398
7398
|
var destruct_0 = iterator.o();
|
|
7399
7399
|
var x_1 = destruct_0.ra();
|
|
7400
7400
|
var it_1 = destruct_0.sa();
|
|
7401
|
-
var tmp_4 = it_1.
|
|
7401
|
+
var tmp_4 = it_1.s2e();
|
|
7402
7402
|
var tmp59_safe_receiver_0 = cellAt(this, x_1, y);
|
|
7403
|
-
var tmp0_elvis_lhs_0 = tmp59_safe_receiver_0 == null ? null : tmp59_safe_receiver_0.
|
|
7403
|
+
var tmp0_elvis_lhs_0 = tmp59_safe_receiver_0 == null ? null : tmp59_safe_receiver_0.n2h();
|
|
7404
7404
|
var v = tmp_4 / (tmp0_elvis_lhs_0 == null ? 1 : tmp0_elvis_lhs_0) | 0;
|
|
7405
7405
|
if (compareTo(maxValue, v) < 0) {
|
|
7406
7406
|
maxValue = v;
|
|
@@ -7413,10 +7413,10 @@
|
|
|
7413
7413
|
var tmp$ret$11 = tmp0_elvis_lhs_1 == null ? 1 : tmp0_elvis_lhs_1;
|
|
7414
7414
|
destination_1.e(tmp$ret$11);
|
|
7415
7415
|
}
|
|
7416
|
-
tmp_2.
|
|
7416
|
+
tmp_2.m2j_1 = destination_1;
|
|
7417
7417
|
var tmp_5 = this;
|
|
7418
|
-
var tmp_6 = sum(this.
|
|
7419
|
-
var tmp0_0 = this.
|
|
7418
|
+
var tmp_6 = sum(this.m2j_1);
|
|
7419
|
+
var tmp0_0 = this.i2j_1;
|
|
7420
7420
|
var tmp$ret$14;
|
|
7421
7421
|
$l$block_0: {
|
|
7422
7422
|
// Inline function 'kotlin.collections.count' call
|
|
@@ -7455,37 +7455,37 @@
|
|
|
7455
7455
|
list.e(tmp$ret$17);
|
|
7456
7456
|
}
|
|
7457
7457
|
while (inductionVariable_0 < size);
|
|
7458
|
-
tmp_5.
|
|
7458
|
+
tmp_5.n2j_1 = list;
|
|
7459
7459
|
}
|
|
7460
|
-
protoOf(TableRenderer).
|
|
7460
|
+
protoOf(TableRenderer).o2j = function () {
|
|
7461
7461
|
var inductionVariable = 0;
|
|
7462
|
-
var last = this.
|
|
7462
|
+
var last = this.g2j_1.p() - 1 | 0;
|
|
7463
7463
|
if (inductionVariable <= last)
|
|
7464
7464
|
do {
|
|
7465
7465
|
var x = inductionVariable;
|
|
7466
7466
|
inductionVariable = inductionVariable + 1 | 0;
|
|
7467
7467
|
drawLeftBorderForColumn(this, x);
|
|
7468
|
-
var colWidth = this.
|
|
7468
|
+
var colWidth = this.g2j_1.q(x);
|
|
7469
7469
|
var tableLineY = 0;
|
|
7470
|
-
var iterator = this.
|
|
7470
|
+
var iterator = this.a2j_1.m();
|
|
7471
7471
|
var index = 0;
|
|
7472
7472
|
while (iterator.n()) {
|
|
7473
7473
|
var y = index;
|
|
7474
7474
|
index = index + 1 | 0;
|
|
7475
7475
|
var row = iterator.o();
|
|
7476
|
-
var rowHeight = this.
|
|
7476
|
+
var rowHeight = this.m2j_1.q(y);
|
|
7477
7477
|
var tmp0_elvis_lhs = getOrNull(row, x);
|
|
7478
7478
|
var cell = tmp0_elvis_lhs == null ? Empty_getInstance() : tmp0_elvis_lhs;
|
|
7479
|
-
tableLineY = tableLineY + drawTopBorderForCell(this, tableLineY, x, y, colWidth, cell.
|
|
7479
|
+
tableLineY = tableLineY + drawTopBorderForCell(this, tableLineY, x, y, colWidth, cell.p2h()) | 0;
|
|
7480
7480
|
drawCellContent(this, tableLineY, cell, x, y);
|
|
7481
7481
|
tableLineY = tableLineY + rowHeight | 0;
|
|
7482
7482
|
}
|
|
7483
7483
|
}
|
|
7484
7484
|
while (inductionVariable <= last);
|
|
7485
|
-
drawLeftBorderForColumn(this, this.
|
|
7485
|
+
drawLeftBorderForColumn(this, this.f2j_1);
|
|
7486
7486
|
drawBottomBorder(this);
|
|
7487
7487
|
// Inline function 'kotlin.collections.map' call
|
|
7488
|
-
var this_0 = this.
|
|
7488
|
+
var this_0 = this.n2j_1;
|
|
7489
7489
|
// Inline function 'kotlin.collections.mapTo' call
|
|
7490
7490
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
7491
7491
|
var _iterator__ex2g4s = this_0.m();
|
|
@@ -7497,22 +7497,22 @@
|
|
|
7497
7497
|
return new Lines(destination);
|
|
7498
7498
|
};
|
|
7499
7499
|
function get_t_0(_this__u8e3s4) {
|
|
7500
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7500
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.k2h_1) === true;
|
|
7501
7501
|
}
|
|
7502
7502
|
function get_b_0(_this__u8e3s4) {
|
|
7503
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7503
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.m2h_1) === true;
|
|
7504
7504
|
}
|
|
7505
7505
|
function get_l_0(_this__u8e3s4) {
|
|
7506
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7506
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.j2h_1) === true;
|
|
7507
7507
|
}
|
|
7508
7508
|
function get_r_0(_this__u8e3s4) {
|
|
7509
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7509
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.l2h_1) === true;
|
|
7510
7510
|
}
|
|
7511
7511
|
function verticalLayout(init) {
|
|
7512
7512
|
// Inline function 'kotlin.apply' call
|
|
7513
7513
|
var this_0 = new VerticalLayoutBuilderInstance();
|
|
7514
7514
|
init(this_0);
|
|
7515
|
-
return this_0.
|
|
7515
|
+
return this_0.t2j();
|
|
7516
7516
|
}
|
|
7517
7517
|
function LinearLayoutBuilder$cellsFrom$lambda(_this__u8e3s4) {
|
|
7518
7518
|
return Unit_instance;
|
|
@@ -7524,7 +7524,7 @@
|
|
|
7524
7524
|
}
|
|
7525
7525
|
function Companion_2() {
|
|
7526
7526
|
Companion_instance_2 = this;
|
|
7527
|
-
this.
|
|
7527
|
+
this.z2j_1 = new ColumnWidth(2);
|
|
7528
7528
|
}
|
|
7529
7529
|
var Companion_instance_2;
|
|
7530
7530
|
function Companion_getInstance_3() {
|
|
@@ -7536,32 +7536,32 @@
|
|
|
7536
7536
|
Companion_getInstance_3();
|
|
7537
7537
|
width = width === VOID ? null : width;
|
|
7538
7538
|
expandWeight = expandWeight === VOID ? null : expandWeight;
|
|
7539
|
-
this.
|
|
7540
|
-
this.
|
|
7541
|
-
this.
|
|
7539
|
+
this.j2i_1 = priority;
|
|
7540
|
+
this.k2i_1 = width;
|
|
7541
|
+
this.l2i_1 = expandWeight;
|
|
7542
7542
|
// Inline function 'kotlin.require' call
|
|
7543
|
-
if (!(this.
|
|
7543
|
+
if (!(this.k2i_1 == null || this.k2i_1 > 0)) {
|
|
7544
7544
|
var message = 'width must be greater than zero';
|
|
7545
7545
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
7546
7546
|
}
|
|
7547
7547
|
// Inline function 'kotlin.require' call
|
|
7548
|
-
if (!(this.
|
|
7548
|
+
if (!(this.l2i_1 == null || this.l2i_1 > 0.0)) {
|
|
7549
7549
|
var message_0 = 'expandWeight must be greater than zero';
|
|
7550
7550
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
7551
7551
|
}
|
|
7552
7552
|
// Inline function 'kotlin.require' call
|
|
7553
|
-
if (!(this.
|
|
7553
|
+
if (!(this.k2i_1 == null || this.l2i_1 == null)) {
|
|
7554
7554
|
var message_1 = 'Cannot set both width and expandWeight';
|
|
7555
7555
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
7556
7556
|
}
|
|
7557
7557
|
}
|
|
7558
7558
|
protoOf(ColumnWidth).toString = function () {
|
|
7559
|
-
return get_isAuto(this) ? 'Auto' : get_isExpand(this) ? 'Expand(' + this.
|
|
7559
|
+
return get_isAuto(this) ? 'Auto' : get_isExpand(this) ? 'Expand(' + this.l2i_1 + ')' : get_isFixed(this) ? 'Fixed(' + this.k2i_1 + ')' : 'Custom(width=' + this.k2i_1 + ', expandWeight=' + this.l2i_1 + ', priority=' + this.j2i_1 + ')';
|
|
7560
7560
|
};
|
|
7561
7561
|
protoOf(ColumnWidth).hashCode = function () {
|
|
7562
|
-
var result = this.
|
|
7563
|
-
result = imul(result, 31) + (this.
|
|
7564
|
-
result = imul(result, 31) + (this.
|
|
7562
|
+
var result = this.j2i_1;
|
|
7563
|
+
result = imul(result, 31) + (this.k2i_1 == null ? 0 : this.k2i_1) | 0;
|
|
7564
|
+
result = imul(result, 31) + (this.l2i_1 == null ? 0 : getNumberHashCode(this.l2i_1)) | 0;
|
|
7565
7565
|
return result;
|
|
7566
7566
|
};
|
|
7567
7567
|
protoOf(ColumnWidth).equals = function (other) {
|
|
@@ -7570,134 +7570,134 @@
|
|
|
7570
7570
|
if (!(other instanceof ColumnWidth))
|
|
7571
7571
|
return false;
|
|
7572
7572
|
var tmp0_other_with_cast = other instanceof ColumnWidth ? other : THROW_CCE();
|
|
7573
|
-
if (!(this.
|
|
7573
|
+
if (!(this.j2i_1 === tmp0_other_with_cast.j2i_1))
|
|
7574
7574
|
return false;
|
|
7575
|
-
if (!(this.
|
|
7575
|
+
if (!(this.k2i_1 == tmp0_other_with_cast.k2i_1))
|
|
7576
7576
|
return false;
|
|
7577
|
-
if (!equals(this.
|
|
7577
|
+
if (!equals(this.l2i_1, tmp0_other_with_cast.l2i_1))
|
|
7578
7578
|
return false;
|
|
7579
7579
|
return true;
|
|
7580
7580
|
};
|
|
7581
7581
|
function get_isAuto(_this__u8e3s4) {
|
|
7582
|
-
return _this__u8e3s4.
|
|
7582
|
+
return _this__u8e3s4.k2i_1 == null && _this__u8e3s4.l2i_1 == null;
|
|
7583
7583
|
}
|
|
7584
7584
|
function get_isExpand(_this__u8e3s4) {
|
|
7585
|
-
return !(_this__u8e3s4.
|
|
7585
|
+
return !(_this__u8e3s4.l2i_1 == null);
|
|
7586
7586
|
}
|
|
7587
7587
|
function get_isFixed(_this__u8e3s4) {
|
|
7588
|
-
return !(_this__u8e3s4.
|
|
7588
|
+
return !(_this__u8e3s4.k2i_1 == null);
|
|
7589
7589
|
}
|
|
7590
7590
|
function CellStyleBuilder() {
|
|
7591
7591
|
}
|
|
7592
7592
|
function VerticalLayoutBuilderInstance(tableBuilder) {
|
|
7593
7593
|
tableBuilder = tableBuilder === VOID ? new TableBuilderInstance() : tableBuilder;
|
|
7594
|
-
this.
|
|
7595
|
-
this.
|
|
7596
|
-
this.
|
|
7597
|
-
this.
|
|
7594
|
+
this.p2j_1 = tableBuilder;
|
|
7595
|
+
this.q2j_1 = this.p2j_1.q2k_1;
|
|
7596
|
+
this.r2j_1 = Companion_getInstance_3().z2j_1;
|
|
7597
|
+
this.s2j_1 = 0;
|
|
7598
7598
|
}
|
|
7599
|
-
protoOf(VerticalLayoutBuilderInstance).
|
|
7600
|
-
this.
|
|
7599
|
+
protoOf(VerticalLayoutBuilderInstance).y2j = function (_set____db54di) {
|
|
7600
|
+
this.s2j_1 = _set____db54di;
|
|
7601
7601
|
};
|
|
7602
|
-
protoOf(VerticalLayoutBuilderInstance).
|
|
7602
|
+
protoOf(VerticalLayoutBuilderInstance).u2j = function (cells, init) {
|
|
7603
7603
|
// Inline function 'kotlin.collections.forEach' call
|
|
7604
7604
|
var _iterator__ex2g4s = cells.m();
|
|
7605
7605
|
while (_iterator__ex2g4s.n()) {
|
|
7606
7606
|
var element = _iterator__ex2g4s.o();
|
|
7607
|
-
this.
|
|
7607
|
+
this.q2j_1.y2k([element], init);
|
|
7608
7608
|
}
|
|
7609
7609
|
};
|
|
7610
|
-
protoOf(VerticalLayoutBuilderInstance).
|
|
7611
|
-
this.
|
|
7610
|
+
protoOf(VerticalLayoutBuilderInstance).w2j = function (content, init) {
|
|
7611
|
+
this.q2j_1.y2k([content], init);
|
|
7612
7612
|
};
|
|
7613
|
-
protoOf(VerticalLayoutBuilderInstance).
|
|
7614
|
-
return Companion_instance_3.
|
|
7613
|
+
protoOf(VerticalLayoutBuilderInstance).t2j = function () {
|
|
7614
|
+
return Companion_instance_3.z2k(this.p2j_1, this.s2j_1, this.r2j_1);
|
|
7615
7615
|
};
|
|
7616
7616
|
function TableBuilderInstance() {
|
|
7617
|
-
this.
|
|
7618
|
-
this.
|
|
7619
|
-
this.
|
|
7620
|
-
this.
|
|
7621
|
-
this.
|
|
7617
|
+
this.j2k_1 = new CellStyleBuilderMixin();
|
|
7618
|
+
this.k2k_1 = Companion_getInstance_0().l2d_1;
|
|
7619
|
+
this.l2k_1 = get_DEFAULT_STYLE();
|
|
7620
|
+
this.m2k_1 = null;
|
|
7621
|
+
this.n2k_1 = true;
|
|
7622
7622
|
var tmp = this;
|
|
7623
7623
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
7624
|
-
tmp.
|
|
7625
|
-
this.
|
|
7626
|
-
this.
|
|
7627
|
-
this.
|
|
7628
|
-
this.
|
|
7629
|
-
this.
|
|
7624
|
+
tmp.o2k_1 = LinkedHashMap_init_$Create$();
|
|
7625
|
+
this.p2k_1 = new SectionBuilderInstance();
|
|
7626
|
+
this.q2k_1 = new SectionBuilderInstance();
|
|
7627
|
+
this.r2k_1 = new SectionBuilderInstance();
|
|
7628
|
+
this.s2k_1 = null;
|
|
7629
|
+
this.t2k_1 = null;
|
|
7630
7630
|
}
|
|
7631
|
-
protoOf(TableBuilderInstance).
|
|
7632
|
-
this.
|
|
7631
|
+
protoOf(TableBuilderInstance).e2k = function (all) {
|
|
7632
|
+
this.j2k_1.e2k(all);
|
|
7633
7633
|
};
|
|
7634
|
-
protoOf(TableBuilderInstance).
|
|
7635
|
-
this.
|
|
7634
|
+
protoOf(TableBuilderInstance).a2l = function (_set____db54di) {
|
|
7635
|
+
this.j2k_1.d2l_1 = _set____db54di;
|
|
7636
7636
|
};
|
|
7637
|
-
protoOf(TableBuilderInstance).
|
|
7638
|
-
return this.
|
|
7637
|
+
protoOf(TableBuilderInstance).a2k = function () {
|
|
7638
|
+
return this.j2k_1.d2l_1;
|
|
7639
7639
|
};
|
|
7640
|
-
protoOf(TableBuilderInstance).
|
|
7641
|
-
return this.
|
|
7640
|
+
protoOf(TableBuilderInstance).b2k = function () {
|
|
7641
|
+
return this.j2k_1.g2l_1;
|
|
7642
7642
|
};
|
|
7643
|
-
protoOf(TableBuilderInstance).
|
|
7644
|
-
this.
|
|
7643
|
+
protoOf(TableBuilderInstance).c2k = function (_set____db54di) {
|
|
7644
|
+
this.j2k_1.b2l_1 = _set____db54di;
|
|
7645
7645
|
};
|
|
7646
|
-
protoOf(TableBuilderInstance).
|
|
7647
|
-
return this.
|
|
7646
|
+
protoOf(TableBuilderInstance).d2k = function () {
|
|
7647
|
+
return this.j2k_1.b2l_1;
|
|
7648
7648
|
};
|
|
7649
|
-
protoOf(TableBuilderInstance).
|
|
7650
|
-
return this.
|
|
7649
|
+
protoOf(TableBuilderInstance).f2k = function () {
|
|
7650
|
+
return this.j2k_1.c2l_1;
|
|
7651
7651
|
};
|
|
7652
|
-
protoOf(TableBuilderInstance).
|
|
7653
|
-
return this.
|
|
7652
|
+
protoOf(TableBuilderInstance).g2k = function () {
|
|
7653
|
+
return this.j2k_1.e2l_1;
|
|
7654
7654
|
};
|
|
7655
|
-
protoOf(TableBuilderInstance).
|
|
7656
|
-
return this.
|
|
7655
|
+
protoOf(TableBuilderInstance).h2k = function () {
|
|
7656
|
+
return this.j2k_1.f2l_1;
|
|
7657
7657
|
};
|
|
7658
|
-
protoOf(TableBuilderInstance).
|
|
7659
|
-
return this.
|
|
7658
|
+
protoOf(TableBuilderInstance).i2k = function () {
|
|
7659
|
+
return this.j2k_1.h2l_1;
|
|
7660
7660
|
};
|
|
7661
7661
|
function SectionBuilderInstance() {
|
|
7662
|
-
this.
|
|
7662
|
+
this.u2k_1 = new CellStyleBuilderMixin();
|
|
7663
7663
|
var tmp = this;
|
|
7664
7664
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
7665
|
-
tmp.
|
|
7665
|
+
tmp.v2k_1 = ArrayList_init_$Create$();
|
|
7666
7666
|
var tmp_0 = this;
|
|
7667
7667
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
7668
|
-
tmp_0.
|
|
7668
|
+
tmp_0.w2k_1 = LinkedHashMap_init_$Create$();
|
|
7669
7669
|
var tmp_1 = this;
|
|
7670
7670
|
// Inline function 'kotlin.collections.listOf' call
|
|
7671
|
-
tmp_1.
|
|
7671
|
+
tmp_1.x2k_1 = emptyList();
|
|
7672
7672
|
}
|
|
7673
|
-
protoOf(SectionBuilderInstance).
|
|
7674
|
-
this.
|
|
7673
|
+
protoOf(SectionBuilderInstance).e2k = function (all) {
|
|
7674
|
+
this.u2k_1.e2k(all);
|
|
7675
7675
|
};
|
|
7676
|
-
protoOf(SectionBuilderInstance).
|
|
7677
|
-
return this.
|
|
7676
|
+
protoOf(SectionBuilderInstance).a2k = function () {
|
|
7677
|
+
return this.u2k_1.d2l_1;
|
|
7678
7678
|
};
|
|
7679
|
-
protoOf(SectionBuilderInstance).
|
|
7680
|
-
return this.
|
|
7679
|
+
protoOf(SectionBuilderInstance).b2k = function () {
|
|
7680
|
+
return this.u2k_1.g2l_1;
|
|
7681
7681
|
};
|
|
7682
|
-
protoOf(SectionBuilderInstance).
|
|
7683
|
-
this.
|
|
7682
|
+
protoOf(SectionBuilderInstance).c2k = function (_set____db54di) {
|
|
7683
|
+
this.u2k_1.b2l_1 = _set____db54di;
|
|
7684
7684
|
};
|
|
7685
|
-
protoOf(SectionBuilderInstance).
|
|
7686
|
-
return this.
|
|
7685
|
+
protoOf(SectionBuilderInstance).d2k = function () {
|
|
7686
|
+
return this.u2k_1.b2l_1;
|
|
7687
7687
|
};
|
|
7688
|
-
protoOf(SectionBuilderInstance).
|
|
7689
|
-
return this.
|
|
7688
|
+
protoOf(SectionBuilderInstance).f2k = function () {
|
|
7689
|
+
return this.u2k_1.c2l_1;
|
|
7690
7690
|
};
|
|
7691
|
-
protoOf(SectionBuilderInstance).
|
|
7692
|
-
return this.
|
|
7691
|
+
protoOf(SectionBuilderInstance).g2k = function () {
|
|
7692
|
+
return this.u2k_1.e2l_1;
|
|
7693
7693
|
};
|
|
7694
|
-
protoOf(SectionBuilderInstance).
|
|
7695
|
-
return this.
|
|
7694
|
+
protoOf(SectionBuilderInstance).h2k = function () {
|
|
7695
|
+
return this.u2k_1.f2l_1;
|
|
7696
7696
|
};
|
|
7697
|
-
protoOf(SectionBuilderInstance).
|
|
7698
|
-
return this.
|
|
7697
|
+
protoOf(SectionBuilderInstance).i2k = function () {
|
|
7698
|
+
return this.u2k_1.h2l_1;
|
|
7699
7699
|
};
|
|
7700
|
-
protoOf(SectionBuilderInstance).
|
|
7700
|
+
protoOf(SectionBuilderInstance).i2l = function (cells, init) {
|
|
7701
7701
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
7702
7702
|
// Inline function 'kotlin.collections.mapTo' call
|
|
7703
7703
|
var destination = ArrayList_init_$Create$();
|
|
@@ -7708,122 +7708,122 @@
|
|
|
7708
7708
|
destination.e(tmp$ret$1);
|
|
7709
7709
|
}
|
|
7710
7710
|
var cellBuilders = destination;
|
|
7711
|
-
var tmp0 = this.
|
|
7711
|
+
var tmp0 = this.v2k_1;
|
|
7712
7712
|
// Inline function 'kotlin.apply' call
|
|
7713
7713
|
var this_0 = new RowBuilderInstance(cellBuilders);
|
|
7714
7714
|
init(this_0);
|
|
7715
7715
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
7716
7716
|
tmp0.e(this_0);
|
|
7717
7717
|
};
|
|
7718
|
-
protoOf(SectionBuilderInstance).
|
|
7719
|
-
this.
|
|
7718
|
+
protoOf(SectionBuilderInstance).y2k = function (cells, init) {
|
|
7719
|
+
this.i2l(asList(cells), init);
|
|
7720
7720
|
};
|
|
7721
7721
|
function CellStyleBuilderMixin() {
|
|
7722
|
-
this.y2k_1 = null;
|
|
7723
|
-
this.z2k_1 = null;
|
|
7724
|
-
this.a2l_1 = null;
|
|
7725
7722
|
this.b2l_1 = null;
|
|
7726
7723
|
this.c2l_1 = null;
|
|
7727
7724
|
this.d2l_1 = null;
|
|
7728
7725
|
this.e2l_1 = null;
|
|
7726
|
+
this.f2l_1 = null;
|
|
7727
|
+
this.g2l_1 = null;
|
|
7728
|
+
this.h2l_1 = null;
|
|
7729
7729
|
}
|
|
7730
|
-
protoOf(CellStyleBuilderMixin).
|
|
7731
|
-
this.
|
|
7732
|
-
};
|
|
7733
|
-
protoOf(CellStyleBuilderMixin).a2k = function () {
|
|
7734
|
-
return this.y2k_1;
|
|
7735
|
-
};
|
|
7736
|
-
protoOf(CellStyleBuilderMixin).c2k = function () {
|
|
7737
|
-
return this.z2k_1;
|
|
7738
|
-
};
|
|
7739
|
-
protoOf(CellStyleBuilderMixin).x2j = function () {
|
|
7740
|
-
return this.a2l_1;
|
|
7730
|
+
protoOf(CellStyleBuilderMixin).c2k = function (_set____db54di) {
|
|
7731
|
+
this.b2l_1 = _set____db54di;
|
|
7741
7732
|
};
|
|
7742
7733
|
protoOf(CellStyleBuilderMixin).d2k = function () {
|
|
7743
7734
|
return this.b2l_1;
|
|
7744
7735
|
};
|
|
7745
|
-
protoOf(CellStyleBuilderMixin).
|
|
7736
|
+
protoOf(CellStyleBuilderMixin).f2k = function () {
|
|
7746
7737
|
return this.c2l_1;
|
|
7747
7738
|
};
|
|
7748
|
-
protoOf(CellStyleBuilderMixin).
|
|
7739
|
+
protoOf(CellStyleBuilderMixin).a2k = function () {
|
|
7749
7740
|
return this.d2l_1;
|
|
7750
7741
|
};
|
|
7751
|
-
protoOf(CellStyleBuilderMixin).
|
|
7742
|
+
protoOf(CellStyleBuilderMixin).g2k = function () {
|
|
7752
7743
|
return this.e2l_1;
|
|
7753
7744
|
};
|
|
7754
|
-
function
|
|
7755
|
-
this.
|
|
7756
|
-
this.h2l_1 = cells;
|
|
7757
|
-
}
|
|
7758
|
-
protoOf(RowBuilderInstance).b2k = function (all) {
|
|
7759
|
-
this.g2l_1.b2k(all);
|
|
7745
|
+
protoOf(CellStyleBuilderMixin).h2k = function () {
|
|
7746
|
+
return this.f2l_1;
|
|
7760
7747
|
};
|
|
7761
|
-
protoOf(
|
|
7762
|
-
return this.g2l_1
|
|
7748
|
+
protoOf(CellStyleBuilderMixin).b2k = function () {
|
|
7749
|
+
return this.g2l_1;
|
|
7763
7750
|
};
|
|
7764
|
-
protoOf(
|
|
7765
|
-
return this.
|
|
7751
|
+
protoOf(CellStyleBuilderMixin).i2k = function () {
|
|
7752
|
+
return this.h2l_1;
|
|
7766
7753
|
};
|
|
7767
|
-
|
|
7768
|
-
this.
|
|
7754
|
+
function RowBuilderInstance(cells) {
|
|
7755
|
+
this.j2l_1 = new CellStyleBuilderMixin();
|
|
7756
|
+
this.k2l_1 = cells;
|
|
7757
|
+
}
|
|
7758
|
+
protoOf(RowBuilderInstance).e2k = function (all) {
|
|
7759
|
+
this.j2l_1.e2k(all);
|
|
7769
7760
|
};
|
|
7770
7761
|
protoOf(RowBuilderInstance).a2k = function () {
|
|
7771
|
-
return this.
|
|
7762
|
+
return this.j2l_1.d2l_1;
|
|
7772
7763
|
};
|
|
7773
|
-
protoOf(RowBuilderInstance).
|
|
7774
|
-
return this.g2l_1
|
|
7764
|
+
protoOf(RowBuilderInstance).b2k = function () {
|
|
7765
|
+
return this.j2l_1.g2l_1;
|
|
7775
7766
|
};
|
|
7776
|
-
protoOf(RowBuilderInstance).
|
|
7777
|
-
|
|
7767
|
+
protoOf(RowBuilderInstance).c2k = function (_set____db54di) {
|
|
7768
|
+
this.j2l_1.b2l_1 = _set____db54di;
|
|
7778
7769
|
};
|
|
7779
|
-
protoOf(RowBuilderInstance).
|
|
7780
|
-
return this.
|
|
7770
|
+
protoOf(RowBuilderInstance).d2k = function () {
|
|
7771
|
+
return this.j2l_1.b2l_1;
|
|
7781
7772
|
};
|
|
7782
7773
|
protoOf(RowBuilderInstance).f2k = function () {
|
|
7783
|
-
return this.
|
|
7774
|
+
return this.j2l_1.c2l_1;
|
|
7784
7775
|
};
|
|
7785
|
-
function
|
|
7786
|
-
this.
|
|
7787
|
-
this.j2l_1 = content;
|
|
7788
|
-
this.k2l_1 = 1;
|
|
7789
|
-
this.l2l_1 = 1;
|
|
7790
|
-
}
|
|
7791
|
-
protoOf(CellBuilderInstance).b2k = function (all) {
|
|
7792
|
-
this.i2l_1.b2k(all);
|
|
7776
|
+
protoOf(RowBuilderInstance).g2k = function () {
|
|
7777
|
+
return this.j2l_1.e2l_1;
|
|
7793
7778
|
};
|
|
7794
|
-
protoOf(
|
|
7795
|
-
return this.
|
|
7779
|
+
protoOf(RowBuilderInstance).h2k = function () {
|
|
7780
|
+
return this.j2l_1.f2l_1;
|
|
7796
7781
|
};
|
|
7797
|
-
protoOf(
|
|
7798
|
-
return this.
|
|
7782
|
+
protoOf(RowBuilderInstance).i2k = function () {
|
|
7783
|
+
return this.j2l_1.h2l_1;
|
|
7799
7784
|
};
|
|
7800
|
-
|
|
7801
|
-
this.
|
|
7785
|
+
function CellBuilderInstance(content) {
|
|
7786
|
+
this.l2l_1 = new CellStyleBuilderMixin();
|
|
7787
|
+
this.m2l_1 = content;
|
|
7788
|
+
this.n2l_1 = 1;
|
|
7789
|
+
this.o2l_1 = 1;
|
|
7790
|
+
}
|
|
7791
|
+
protoOf(CellBuilderInstance).e2k = function (all) {
|
|
7792
|
+
this.l2l_1.e2k(all);
|
|
7802
7793
|
};
|
|
7803
7794
|
protoOf(CellBuilderInstance).a2k = function () {
|
|
7804
|
-
return this.
|
|
7795
|
+
return this.l2l_1.d2l_1;
|
|
7805
7796
|
};
|
|
7806
|
-
protoOf(CellBuilderInstance).
|
|
7807
|
-
return this.
|
|
7797
|
+
protoOf(CellBuilderInstance).b2k = function () {
|
|
7798
|
+
return this.l2l_1.g2l_1;
|
|
7808
7799
|
};
|
|
7809
|
-
protoOf(CellBuilderInstance).
|
|
7810
|
-
|
|
7800
|
+
protoOf(CellBuilderInstance).c2k = function (_set____db54di) {
|
|
7801
|
+
this.l2l_1.b2l_1 = _set____db54di;
|
|
7811
7802
|
};
|
|
7812
|
-
protoOf(CellBuilderInstance).
|
|
7813
|
-
return this.
|
|
7803
|
+
protoOf(CellBuilderInstance).d2k = function () {
|
|
7804
|
+
return this.l2l_1.b2l_1;
|
|
7814
7805
|
};
|
|
7815
7806
|
protoOf(CellBuilderInstance).f2k = function () {
|
|
7816
|
-
return this.
|
|
7807
|
+
return this.l2l_1.c2l_1;
|
|
7808
|
+
};
|
|
7809
|
+
protoOf(CellBuilderInstance).g2k = function () {
|
|
7810
|
+
return this.l2l_1.e2l_1;
|
|
7811
|
+
};
|
|
7812
|
+
protoOf(CellBuilderInstance).h2k = function () {
|
|
7813
|
+
return this.l2l_1.f2l_1;
|
|
7814
|
+
};
|
|
7815
|
+
protoOf(CellBuilderInstance).i2k = function () {
|
|
7816
|
+
return this.l2l_1.h2l_1;
|
|
7817
7817
|
};
|
|
7818
7818
|
function WidgetContent(widget) {
|
|
7819
7819
|
CellContent.call(this);
|
|
7820
|
-
this.
|
|
7820
|
+
this.p2l_1 = widget;
|
|
7821
7821
|
}
|
|
7822
7822
|
protoOf(WidgetContent).toString = function () {
|
|
7823
|
-
return 'WidgetContent(widget=' + toString(this.
|
|
7823
|
+
return 'WidgetContent(widget=' + toString(this.p2l_1) + ')';
|
|
7824
7824
|
};
|
|
7825
7825
|
protoOf(WidgetContent).hashCode = function () {
|
|
7826
|
-
return hashCode(this.
|
|
7826
|
+
return hashCode(this.p2l_1);
|
|
7827
7827
|
};
|
|
7828
7828
|
protoOf(WidgetContent).equals = function (other) {
|
|
7829
7829
|
if (this === other)
|
|
@@ -7831,19 +7831,19 @@
|
|
|
7831
7831
|
if (!(other instanceof WidgetContent))
|
|
7832
7832
|
return false;
|
|
7833
7833
|
var tmp0_other_with_cast = other instanceof WidgetContent ? other : THROW_CCE();
|
|
7834
|
-
if (!equals(this.
|
|
7834
|
+
if (!equals(this.p2l_1, tmp0_other_with_cast.p2l_1))
|
|
7835
7835
|
return false;
|
|
7836
7836
|
return true;
|
|
7837
7837
|
};
|
|
7838
7838
|
function TextContent(text) {
|
|
7839
7839
|
CellContent.call(this);
|
|
7840
|
-
this.
|
|
7840
|
+
this.q2l_1 = text;
|
|
7841
7841
|
}
|
|
7842
7842
|
protoOf(TextContent).toString = function () {
|
|
7843
|
-
return 'TextContent(text=' + this.
|
|
7843
|
+
return 'TextContent(text=' + this.q2l_1 + ')';
|
|
7844
7844
|
};
|
|
7845
7845
|
protoOf(TextContent).hashCode = function () {
|
|
7846
|
-
return getStringHashCode(this.
|
|
7846
|
+
return getStringHashCode(this.q2l_1);
|
|
7847
7847
|
};
|
|
7848
7848
|
protoOf(TextContent).equals = function (other) {
|
|
7849
7849
|
if (this === other)
|
|
@@ -7851,7 +7851,7 @@
|
|
|
7851
7851
|
if (!(other instanceof TextContent))
|
|
7852
7852
|
return false;
|
|
7853
7853
|
var tmp0_other_with_cast = other instanceof TextContent ? other : THROW_CCE();
|
|
7854
|
-
if (!(this.
|
|
7854
|
+
if (!(this.q2l_1 === tmp0_other_with_cast.q2l_1))
|
|
7855
7855
|
return false;
|
|
7856
7856
|
return true;
|
|
7857
7857
|
};
|
|
@@ -7864,7 +7864,7 @@
|
|
|
7864
7864
|
}
|
|
7865
7865
|
function buildSection($this, section, builderWidth) {
|
|
7866
7866
|
// Inline function 'kotlin.collections.MutableList' call
|
|
7867
|
-
var size = section.
|
|
7867
|
+
var size = section.v2k_1.p();
|
|
7868
7868
|
var list = ArrayList_init_$Create$_0(size);
|
|
7869
7869
|
// Inline function 'kotlin.repeat' call
|
|
7870
7870
|
var inductionVariable = 0;
|
|
@@ -7872,19 +7872,19 @@
|
|
|
7872
7872
|
do {
|
|
7873
7873
|
var index = inductionVariable;
|
|
7874
7874
|
inductionVariable = inductionVariable + 1 | 0;
|
|
7875
|
-
var tmp$ret$0 = ArrayList_init_$Create$_0(section.
|
|
7875
|
+
var tmp$ret$0 = ArrayList_init_$Create$_0(section.v2k_1.p());
|
|
7876
7876
|
list.e(tmp$ret$0);
|
|
7877
7877
|
}
|
|
7878
7878
|
while (inductionVariable < size);
|
|
7879
7879
|
var rows = list;
|
|
7880
|
-
var iterator = section.
|
|
7880
|
+
var iterator = section.v2k_1.m();
|
|
7881
7881
|
var index_0 = 0;
|
|
7882
7882
|
while (iterator.n()) {
|
|
7883
7883
|
var y = index_0;
|
|
7884
7884
|
index_0 = index_0 + 1 | 0;
|
|
7885
7885
|
var row = iterator.o();
|
|
7886
7886
|
var x = 0;
|
|
7887
|
-
var _iterator__ex2g4s = row.
|
|
7887
|
+
var _iterator__ex2g4s = row.k2l_1.m();
|
|
7888
7888
|
while (_iterator__ex2g4s.n()) {
|
|
7889
7889
|
var cellBuilder = _iterator__ex2g4s.o();
|
|
7890
7890
|
x = findEmptyColumn(rows, x, y);
|
|
@@ -7895,10 +7895,10 @@
|
|
|
7895
7895
|
return rows;
|
|
7896
7896
|
}
|
|
7897
7897
|
function insertCell($this, cell, section, rows, startingX, startingY, builderWidth) {
|
|
7898
|
-
var tableCol = $this.
|
|
7899
|
-
var sectionCol = section.
|
|
7900
|
-
var row = section.
|
|
7901
|
-
var tmp0 = until(startingY, startingY + cell.
|
|
7898
|
+
var tableCol = $this.r2l_1.o2k_1.d2(startingX);
|
|
7899
|
+
var sectionCol = section.w2k_1.d2(startingX);
|
|
7900
|
+
var row = section.v2k_1.q(startingY);
|
|
7901
|
+
var tmp0 = until(startingY, startingY + cell.o2l_1 | 0);
|
|
7902
7902
|
var tmp$ret$0;
|
|
7903
7903
|
$l$block: {
|
|
7904
7904
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -7908,14 +7908,14 @@
|
|
|
7908
7908
|
break $l$block;
|
|
7909
7909
|
}
|
|
7910
7910
|
var it = iterator.o();
|
|
7911
|
-
var tmp89_safe_receiver = getOrNull(section.
|
|
7912
|
-
var tmp90_safe_receiver = tmp89_safe_receiver == null ? null : tmp89_safe_receiver.
|
|
7911
|
+
var tmp89_safe_receiver = getOrNull(section.v2k_1, it);
|
|
7912
|
+
var tmp90_safe_receiver = tmp89_safe_receiver == null ? null : tmp89_safe_receiver.k2l_1;
|
|
7913
7913
|
var tmp0_elvis_lhs = tmp90_safe_receiver == null ? null : tmp90_safe_receiver.p();
|
|
7914
7914
|
var maxValue = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
7915
7915
|
while (iterator.n()) {
|
|
7916
7916
|
var it_0 = iterator.o();
|
|
7917
|
-
var tmp89_safe_receiver_0 = getOrNull(section.
|
|
7918
|
-
var tmp90_safe_receiver_0 = tmp89_safe_receiver_0 == null ? null : tmp89_safe_receiver_0.
|
|
7917
|
+
var tmp89_safe_receiver_0 = getOrNull(section.v2k_1, it_0);
|
|
7918
|
+
var tmp90_safe_receiver_0 = tmp89_safe_receiver_0 == null ? null : tmp89_safe_receiver_0.k2l_1;
|
|
7919
7919
|
var tmp0_elvis_lhs_0 = tmp90_safe_receiver_0 == null ? null : tmp90_safe_receiver_0.p();
|
|
7920
7920
|
var v = tmp0_elvis_lhs_0 == null ? 0 : tmp0_elvis_lhs_0;
|
|
7921
7921
|
if (compareTo(maxValue, v) < 0) {
|
|
@@ -7926,16 +7926,16 @@
|
|
|
7926
7926
|
}
|
|
7927
7927
|
var tmp0_elvis_lhs_1 = tmp$ret$0;
|
|
7928
7928
|
var maxRowSize = tmp0_elvis_lhs_1 == null ? 0 : tmp0_elvis_lhs_1;
|
|
7929
|
-
var columnSpan = coerceAtMost(cell.
|
|
7930
|
-
var rowSpan = coerceAtMost(cell.
|
|
7929
|
+
var columnSpan = coerceAtMost(cell.n2l_1, (builderWidth - maxRowSize | 0) + 1 | 0);
|
|
7930
|
+
var rowSpan = coerceAtMost(cell.o2l_1, rows.p() - startingY | 0);
|
|
7931
7931
|
var tmp = Borders_ALL_getInstance();
|
|
7932
7932
|
var borders = insertCell$getStyle(cell, row, sectionCol, tableCol, section, $this, tmp, TableLayout$insertCell$lambda);
|
|
7933
7933
|
// Inline function 'com.github.ajalt.mordant.widgets.Companion.invoke' call
|
|
7934
7934
|
// Inline function 'kotlin.apply' call
|
|
7935
7935
|
var this_0 = new Builder(0, 0, 0, 0);
|
|
7936
|
-
this_0.
|
|
7936
|
+
this_0.w2l(1);
|
|
7937
7937
|
var b = this_0;
|
|
7938
|
-
var tmp_0 = new Padding(b.
|
|
7938
|
+
var tmp_0 = new Padding(b.s2l_1, b.t2l_1, b.u2l_1, b.v2l_1);
|
|
7939
7939
|
var padding = insertCell$getStyle(cell, row, sectionCol, tableCol, section, $this, tmp_0, TableLayout$insertCell$lambda_0);
|
|
7940
7940
|
var tmp_1 = Whitespace_PRE_getInstance();
|
|
7941
7941
|
var whitespace = insertCell$getStyle(cell, row, sectionCol, tableCol, section, $this, tmp_1, TableLayout$insertCell$lambda_1);
|
|
@@ -7947,30 +7947,30 @@
|
|
|
7947
7947
|
var overflowWrap = insertCell$getStyle(cell, row, sectionCol, tableCol, section, $this, tmp_4, TableLayout$insertCell$lambda_4);
|
|
7948
7948
|
var tmp_5;
|
|
7949
7949
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
7950
|
-
if (!section.
|
|
7951
|
-
tmp_5 = section.
|
|
7950
|
+
if (!section.x2k_1.j()) {
|
|
7951
|
+
tmp_5 = section.x2k_1.q(startingY % section.x2k_1.p() | 0);
|
|
7952
7952
|
} else {
|
|
7953
7953
|
tmp_5 = null;
|
|
7954
7954
|
}
|
|
7955
7955
|
var stripedStyle = tmp_5;
|
|
7956
|
-
var tmp_6 = cell.
|
|
7957
|
-
var tmp_7 = row.
|
|
7958
|
-
var tmp_8 = sectionCol == null ? null : sectionCol.
|
|
7959
|
-
var style = foldStyles([tmp_6, tmp_7, stripedStyle, tmp_8, tableCol == null ? null : tableCol.
|
|
7960
|
-
var tmp95_subject = cell.
|
|
7956
|
+
var tmp_6 = cell.f2k();
|
|
7957
|
+
var tmp_7 = row.f2k();
|
|
7958
|
+
var tmp_8 = sectionCol == null ? null : sectionCol.f2k();
|
|
7959
|
+
var style = foldStyles([tmp_6, tmp_7, stripedStyle, tmp_8, tableCol == null ? null : tableCol.f2k(), section.f2k(), $this.r2l_1.f2k()]);
|
|
7960
|
+
var tmp95_subject = cell.m2l_1;
|
|
7961
7961
|
var tmp_9;
|
|
7962
7962
|
if (tmp95_subject instanceof WidgetContent) {
|
|
7963
|
-
tmp_9 = cell.
|
|
7963
|
+
tmp_9 = cell.m2l_1.p2l_1;
|
|
7964
7964
|
} else {
|
|
7965
7965
|
if (tmp95_subject instanceof TextContent) {
|
|
7966
|
-
tmp_9 = Text_init_$Create$(cell.
|
|
7966
|
+
tmp_9 = Text_init_$Create$(cell.m2l_1.q2l_1, whitespace, textAlign, overflowWrap);
|
|
7967
7967
|
} else {
|
|
7968
7968
|
noWhenBranchMatchedException();
|
|
7969
7969
|
}
|
|
7970
7970
|
}
|
|
7971
7971
|
var content = withPadding_0(tmp_9, padding);
|
|
7972
7972
|
// Inline function 'kotlin.takeIf' call
|
|
7973
|
-
var this_1 = borders.
|
|
7973
|
+
var this_1 = borders.l2h_1;
|
|
7974
7974
|
var tmp_10;
|
|
7975
7975
|
if (columnSpan === 1) {
|
|
7976
7976
|
tmp_10 = this_1;
|
|
@@ -7979,7 +7979,7 @@
|
|
|
7979
7979
|
}
|
|
7980
7980
|
var tmp_11 = tmp_10;
|
|
7981
7981
|
// Inline function 'kotlin.takeIf' call
|
|
7982
|
-
var this_2 = borders.
|
|
7982
|
+
var this_2 = borders.m2h_1;
|
|
7983
7983
|
var tmp_12;
|
|
7984
7984
|
if (rowSpan === 1) {
|
|
7985
7985
|
tmp_12 = this_2;
|
|
@@ -7987,7 +7987,7 @@
|
|
|
7987
7987
|
tmp_12 = null;
|
|
7988
7988
|
}
|
|
7989
7989
|
var tmp$ret$10 = tmp_12;
|
|
7990
|
-
var builtCell = new Content(content, rowSpan, columnSpan, borders.
|
|
7990
|
+
var builtCell = new Content(content, rowSpan, columnSpan, borders.j2h_1, borders.k2h_1, tmp_11, tmp$ret$10, style, textAlign, verticalAlign, padding.a2m_1 + padding.y2l_1 | 0);
|
|
7991
7991
|
var lastX = (startingX + columnSpan | 0) - 1 | 0;
|
|
7992
7992
|
var inductionVariable = startingX;
|
|
7993
7993
|
if (inductionVariable <= lastX)
|
|
@@ -8005,7 +8005,7 @@
|
|
|
8005
8005
|
tmp_13 = builtCell;
|
|
8006
8006
|
} else {
|
|
8007
8007
|
// Inline function 'kotlin.takeIf' call
|
|
8008
|
-
var this_3 = borders.
|
|
8008
|
+
var this_3 = borders.j2h_1;
|
|
8009
8009
|
var tmp_14;
|
|
8010
8010
|
if (x === startingX) {
|
|
8011
8011
|
tmp_14 = this_3;
|
|
@@ -8014,7 +8014,7 @@
|
|
|
8014
8014
|
}
|
|
8015
8015
|
var tmp_15 = tmp_14;
|
|
8016
8016
|
// Inline function 'kotlin.takeIf' call
|
|
8017
|
-
var this_4 = borders.
|
|
8017
|
+
var this_4 = borders.k2h_1;
|
|
8018
8018
|
var tmp_16;
|
|
8019
8019
|
if (y === startingY) {
|
|
8020
8020
|
tmp_16 = this_4;
|
|
@@ -8023,7 +8023,7 @@
|
|
|
8023
8023
|
}
|
|
8024
8024
|
var tmp_17 = tmp_16;
|
|
8025
8025
|
// Inline function 'kotlin.takeIf' call
|
|
8026
|
-
var this_5 = borders.
|
|
8026
|
+
var this_5 = borders.l2h_1;
|
|
8027
8027
|
var tmp_18;
|
|
8028
8028
|
if (x === lastX) {
|
|
8029
8029
|
tmp_18 = this_5;
|
|
@@ -8032,7 +8032,7 @@
|
|
|
8032
8032
|
}
|
|
8033
8033
|
var tmp_19 = tmp_18;
|
|
8034
8034
|
// Inline function 'kotlin.takeIf' call
|
|
8035
|
-
var this_6 = borders.
|
|
8035
|
+
var this_6 = borders.m2h_1;
|
|
8036
8036
|
var tmp_20;
|
|
8037
8037
|
if (y === lastY) {
|
|
8038
8038
|
tmp_20 = this_6;
|
|
@@ -8088,36 +8088,36 @@
|
|
|
8088
8088
|
}
|
|
8089
8089
|
var tmp3_elvis_lhs = tmp_1;
|
|
8090
8090
|
var tmp4_elvis_lhs = tmp3_elvis_lhs == null ? getter($section) : tmp3_elvis_lhs;
|
|
8091
|
-
var tmp5_elvis_lhs = tmp4_elvis_lhs == null ? getter(this$0.
|
|
8091
|
+
var tmp5_elvis_lhs = tmp4_elvis_lhs == null ? getter(this$0.r2l_1) : tmp4_elvis_lhs;
|
|
8092
8092
|
return tmp5_elvis_lhs == null ? default_0 : tmp5_elvis_lhs;
|
|
8093
8093
|
}
|
|
8094
8094
|
function TableLayout$insertCell$lambda(it) {
|
|
8095
|
-
return it.
|
|
8095
|
+
return it.a2k();
|
|
8096
8096
|
}
|
|
8097
8097
|
function TableLayout$insertCell$lambda_0(it) {
|
|
8098
|
-
return it.
|
|
8098
|
+
return it.d2k();
|
|
8099
8099
|
}
|
|
8100
8100
|
function TableLayout$insertCell$lambda_1(it) {
|
|
8101
|
-
return it.
|
|
8101
|
+
return it.g2k();
|
|
8102
8102
|
}
|
|
8103
8103
|
function TableLayout$insertCell$lambda_2(it) {
|
|
8104
|
-
return it.
|
|
8104
|
+
return it.h2k();
|
|
8105
8105
|
}
|
|
8106
8106
|
function TableLayout$insertCell$lambda_3(it) {
|
|
8107
|
-
return it.
|
|
8107
|
+
return it.b2k();
|
|
8108
8108
|
}
|
|
8109
8109
|
function TableLayout$insertCell$lambda_4(it) {
|
|
8110
|
-
return it.
|
|
8110
|
+
return it.i2k();
|
|
8111
8111
|
}
|
|
8112
8112
|
function TableLayout(table) {
|
|
8113
|
-
this.
|
|
8113
|
+
this.r2l_1 = table;
|
|
8114
8114
|
}
|
|
8115
|
-
protoOf(TableLayout).
|
|
8115
|
+
protoOf(TableLayout).b2m = function () {
|
|
8116
8116
|
// Inline function 'kotlin.collections.maxOf' call
|
|
8117
|
-
var iterator = listOf([this.
|
|
8117
|
+
var iterator = listOf([this.r2l_1.p2k_1, this.r2l_1.q2k_1, this.r2l_1.r2k_1]).m();
|
|
8118
8118
|
if (!iterator.n())
|
|
8119
8119
|
throw NoSuchElementException_init_$Create$();
|
|
8120
|
-
var tmp0 = iterator.o().
|
|
8120
|
+
var tmp0 = iterator.o().v2k_1;
|
|
8121
8121
|
var tmp$ret$0;
|
|
8122
8122
|
$l$block: {
|
|
8123
8123
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -8126,9 +8126,9 @@
|
|
|
8126
8126
|
tmp$ret$0 = null;
|
|
8127
8127
|
break $l$block;
|
|
8128
8128
|
}
|
|
8129
|
-
var maxValue = iterator_0.o().
|
|
8129
|
+
var maxValue = iterator_0.o().k2l_1.p();
|
|
8130
8130
|
while (iterator_0.n()) {
|
|
8131
|
-
var v = iterator_0.o().
|
|
8131
|
+
var v = iterator_0.o().k2l_1.p();
|
|
8132
8132
|
if (compareTo(maxValue, v) < 0) {
|
|
8133
8133
|
maxValue = v;
|
|
8134
8134
|
}
|
|
@@ -8138,7 +8138,7 @@
|
|
|
8138
8138
|
var tmp0_elvis_lhs = tmp$ret$0;
|
|
8139
8139
|
var maxValue_0 = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
8140
8140
|
while (iterator.n()) {
|
|
8141
|
-
var tmp0_0 = iterator.o().
|
|
8141
|
+
var tmp0_0 = iterator.o().v2k_1;
|
|
8142
8142
|
var tmp$ret$4;
|
|
8143
8143
|
$l$block_0: {
|
|
8144
8144
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -8147,9 +8147,9 @@
|
|
|
8147
8147
|
tmp$ret$4 = null;
|
|
8148
8148
|
break $l$block_0;
|
|
8149
8149
|
}
|
|
8150
|
-
var maxValue_1 = iterator_1.o().
|
|
8150
|
+
var maxValue_1 = iterator_1.o().k2l_1.p();
|
|
8151
8151
|
while (iterator_1.n()) {
|
|
8152
|
-
var v_0 = iterator_1.o().
|
|
8152
|
+
var v_0 = iterator_1.o().k2l_1.p();
|
|
8153
8153
|
if (compareTo(maxValue_1, v_0) < 0) {
|
|
8154
8154
|
maxValue_1 = v_0;
|
|
8155
8155
|
}
|
|
@@ -8163,16 +8163,16 @@
|
|
|
8163
8163
|
}
|
|
8164
8164
|
}
|
|
8165
8165
|
var builderWidth = maxValue_0;
|
|
8166
|
-
var header = buildSection(this, this.
|
|
8167
|
-
var body = buildSection(this, this.
|
|
8168
|
-
var footer = buildSection(this, this.
|
|
8166
|
+
var header = buildSection(this, this.r2l_1.p2k_1, builderWidth);
|
|
8167
|
+
var body = buildSection(this, this.r2l_1.q2k_1, builderWidth);
|
|
8168
|
+
var footer = buildSection(this, this.r2l_1.r2k_1, builderWidth);
|
|
8169
8169
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
8170
8170
|
var this_0 = flatten(listOf([header, body, footer]));
|
|
8171
8171
|
var tmp;
|
|
8172
8172
|
if (this_0.j()) {
|
|
8173
|
-
var tmp0_elvis_lhs_1 = this.
|
|
8173
|
+
var tmp0_elvis_lhs_1 = this.r2l_1.m2k_1;
|
|
8174
8174
|
var b = tmp0_elvis_lhs_1 == null ? Borders_ALL_getInstance() : tmp0_elvis_lhs_1;
|
|
8175
|
-
var cell = new Content(EmptyWidget_instance, 1, 1, b.
|
|
8175
|
+
var cell = new Content(EmptyWidget_instance, 1, 1, b.j2h_1, b.k2h_1, b.l2h_1, b.m2h_1, null, TextAlign_LEFT_getInstance(), VerticalAlign_TOP_getInstance(), 0);
|
|
8176
8176
|
tmp = listOf_0(listOf_0(cell));
|
|
8177
8177
|
} else {
|
|
8178
8178
|
tmp = this_0;
|
|
@@ -8199,14 +8199,14 @@
|
|
|
8199
8199
|
do {
|
|
8200
8200
|
var index = inductionVariable;
|
|
8201
8201
|
inductionVariable = inductionVariable + 1 | 0;
|
|
8202
|
-
var tmp88_safe_receiver = this.
|
|
8203
|
-
var tmp0_elvis_lhs_2 = tmp88_safe_receiver == null ? null : tmp88_safe_receiver.
|
|
8204
|
-
var tmp$ret$14 = tmp0_elvis_lhs_2 == null ? Companion_getInstance_3().
|
|
8202
|
+
var tmp88_safe_receiver = this.r2l_1.o2k_1.d2(index);
|
|
8203
|
+
var tmp0_elvis_lhs_2 = tmp88_safe_receiver == null ? null : tmp88_safe_receiver.c2m();
|
|
8204
|
+
var tmp$ret$14 = tmp0_elvis_lhs_2 == null ? Companion_getInstance_3().z2j_1 : tmp0_elvis_lhs_2;
|
|
8205
8205
|
list.e(tmp$ret$14);
|
|
8206
8206
|
}
|
|
8207
8207
|
while (inductionVariable < columnCount);
|
|
8208
8208
|
var columnWidths = list;
|
|
8209
|
-
return new TableImpl(rows, this.
|
|
8209
|
+
return new TableImpl(rows, this.r2l_1.k2k_1, this.r2l_1.l2k_1, header.p(), footer.p(), columnWidths, this.r2l_1.m2k_1, this.r2l_1.n2k_1);
|
|
8210
8210
|
};
|
|
8211
8211
|
function findEmptyColumn(_this__u8e3s4, x, y) {
|
|
8212
8212
|
var row = _this__u8e3s4.q(y);
|
|
@@ -8260,13 +8260,13 @@
|
|
|
8260
8260
|
}
|
|
8261
8261
|
function Companion_3() {
|
|
8262
8262
|
}
|
|
8263
|
-
protoOf(Companion_3).
|
|
8264
|
-
builder.
|
|
8265
|
-
builder.
|
|
8266
|
-
builder.
|
|
8263
|
+
protoOf(Companion_3).z2k = function (builder, spacing, columnWidth) {
|
|
8264
|
+
builder.e2k(0);
|
|
8265
|
+
builder.a2l(Borders_NONE_getInstance());
|
|
8266
|
+
builder.m2k_1 = Borders_NONE_getInstance();
|
|
8267
8267
|
var aligned = false;
|
|
8268
8268
|
// Inline function 'kotlin.collections.map' call
|
|
8269
|
-
var this_0 = (new TableLayout(builder)).
|
|
8269
|
+
var this_0 = (new TableLayout(builder)).b2m().m2i_1;
|
|
8270
8270
|
// Inline function 'kotlin.collections.mapTo' call
|
|
8271
8271
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
8272
8272
|
var _iterator__ex2g4s = this_0.m();
|
|
@@ -8278,12 +8278,12 @@
|
|
|
8278
8278
|
}
|
|
8279
8279
|
var tmp = item.q(0);
|
|
8280
8280
|
var cell = tmp instanceof Content ? tmp : THROW_CCE();
|
|
8281
|
-
aligned = aligned || !listOf([null, TextAlign_NONE_getInstance()]).l1(cell.
|
|
8282
|
-
var tmp$ret$1 = new VerticalLayoutCell(cell.
|
|
8281
|
+
aligned = aligned || !listOf([null, TextAlign_NONE_getInstance()]).l1(cell.f2i_1);
|
|
8282
|
+
var tmp$ret$1 = new VerticalLayoutCell(cell.x2h_1, cell.e2i_1, cell.f2i_1);
|
|
8283
8283
|
destination.e(tmp$ret$1);
|
|
8284
8284
|
}
|
|
8285
8285
|
var cells = destination;
|
|
8286
|
-
var tmp0_elvis_lhs = builder.
|
|
8286
|
+
var tmp0_elvis_lhs = builder.h2k();
|
|
8287
8287
|
return new VerticalLayout(cells, spacing, columnWidth, tmp0_elvis_lhs == null ? TextAlign_NONE_getInstance() : tmp0_elvis_lhs, aligned);
|
|
8288
8288
|
};
|
|
8289
8289
|
var Companion_instance_3;
|
|
@@ -8291,25 +8291,25 @@
|
|
|
8291
8291
|
return Companion_instance_3;
|
|
8292
8292
|
}
|
|
8293
8293
|
function VerticalLayout(cells, spacing, columnWidth, textAlign, hasAlignedCells) {
|
|
8294
|
-
this.
|
|
8295
|
-
this.
|
|
8296
|
-
this.
|
|
8297
|
-
this.
|
|
8298
|
-
this.
|
|
8294
|
+
this.d2m_1 = cells;
|
|
8295
|
+
this.e2m_1 = spacing;
|
|
8296
|
+
this.f2m_1 = columnWidth;
|
|
8297
|
+
this.g2m_1 = textAlign;
|
|
8298
|
+
this.h2m_1 = hasAlignedCells;
|
|
8299
8299
|
// Inline function 'kotlin.require' call
|
|
8300
|
-
if (!(this.
|
|
8300
|
+
if (!(this.e2m_1 >= 0)) {
|
|
8301
8301
|
var message = 'layout spacing cannot be negative';
|
|
8302
8302
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
8303
8303
|
}
|
|
8304
8304
|
}
|
|
8305
|
-
protoOf(VerticalLayout).
|
|
8305
|
+
protoOf(VerticalLayout).o2g = function (t, width) {
|
|
8306
8306
|
// Inline function 'com.github.ajalt.mordant.rendering.maxWidthRange' call
|
|
8307
8307
|
var max = 0;
|
|
8308
8308
|
var min = 0;
|
|
8309
|
-
var _iterator__ex2g4s = this.
|
|
8309
|
+
var _iterator__ex2g4s = this.d2m_1.m();
|
|
8310
8310
|
$l$loop: while (_iterator__ex2g4s.n()) {
|
|
8311
8311
|
var it = _iterator__ex2g4s.o();
|
|
8312
|
-
var tmp0_elvis_lhs = it.
|
|
8312
|
+
var tmp0_elvis_lhs = it.i2m_1.o2g(t, width);
|
|
8313
8313
|
var tmp;
|
|
8314
8314
|
if (tmp0_elvis_lhs == null) {
|
|
8315
8315
|
continue $l$loop;
|
|
@@ -8319,21 +8319,21 @@
|
|
|
8319
8319
|
var range = tmp;
|
|
8320
8320
|
var tmp0 = max;
|
|
8321
8321
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
8322
|
-
var b = range.
|
|
8322
|
+
var b = range.d2h_1;
|
|
8323
8323
|
max = Math.max(tmp0, b);
|
|
8324
8324
|
var tmp0_0 = min;
|
|
8325
8325
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
8326
|
-
var b_0 = range.
|
|
8326
|
+
var b_0 = range.c2h_1;
|
|
8327
8327
|
min = Math.max(tmp0_0, b_0);
|
|
8328
8328
|
}
|
|
8329
8329
|
return new WidthRange(min + 0 | 0, max + 0 | 0);
|
|
8330
8330
|
};
|
|
8331
|
-
protoOf(VerticalLayout).
|
|
8332
|
-
var renderWidth = coerceAtMost(get_isExpand(this.
|
|
8331
|
+
protoOf(VerticalLayout).p2g = function (t, width) {
|
|
8332
|
+
var renderWidth = coerceAtMost(get_isExpand(this.f2m_1) ? width : this.h2m_1 ? this.o2g(t, width).d2h_1 : width, width);
|
|
8333
8333
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
8334
8334
|
var lines = ArrayList_init_$Create$();
|
|
8335
|
-
var spacingLine = this.
|
|
8336
|
-
var iterator = this.
|
|
8335
|
+
var spacingLine = this.g2m_1.p2_1 === 4 ? get_EMPTY_LINE() : new Line(listOf_0(Companion_instance_0.w2c(renderWidth)), get_DEFAULT_STYLE());
|
|
8336
|
+
var iterator = this.d2m_1.m();
|
|
8337
8337
|
var index = 0;
|
|
8338
8338
|
while (iterator.n()) {
|
|
8339
8339
|
var i = index;
|
|
@@ -8341,7 +8341,7 @@
|
|
|
8341
8341
|
var cell = iterator.o();
|
|
8342
8342
|
if (i > 0) {
|
|
8343
8343
|
// Inline function 'kotlin.repeat' call
|
|
8344
|
-
var times = this.
|
|
8344
|
+
var times = this.e2m_1;
|
|
8345
8345
|
var inductionVariable = 0;
|
|
8346
8346
|
if (inductionVariable < times)
|
|
8347
8347
|
do {
|
|
@@ -8352,11 +8352,11 @@
|
|
|
8352
8352
|
}
|
|
8353
8353
|
while (inductionVariable < times);
|
|
8354
8354
|
}
|
|
8355
|
-
var rendered = cell.
|
|
8356
|
-
var w = this.
|
|
8357
|
-
rendered = !(w.
|
|
8355
|
+
var rendered = cell.i2m_1.p2g(t, renderWidth).t2e(cell.j2m_1);
|
|
8356
|
+
var w = this.f2m_1;
|
|
8357
|
+
rendered = !(w.l2i_1 == null) ? setSize(rendered, width, VOID, VOID, cell.k2m_1) : !(w.k2i_1 == null) ? setSize(rendered, w.k2i_1, VOID, VOID, cell.k2m_1) : !cell.k2m_1.equals(TextAlign_NONE_getInstance()) ? setSize(rendered, renderWidth, VOID, VOID, cell.k2m_1) : rendered;
|
|
8358
8358
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
8359
|
-
var this_0 = rendered.
|
|
8359
|
+
var this_0 = rendered.p2c_1;
|
|
8360
8360
|
var tmp;
|
|
8361
8361
|
if (this_0.j()) {
|
|
8362
8362
|
tmp = listOf_0(get_EMPTY_LINE());
|
|
@@ -8370,39 +8370,39 @@
|
|
|
8370
8370
|
return new Lines(lines);
|
|
8371
8371
|
};
|
|
8372
8372
|
function VerticalLayoutCell(content, style, textAlign) {
|
|
8373
|
-
this.
|
|
8374
|
-
this.
|
|
8375
|
-
this.
|
|
8373
|
+
this.i2m_1 = content;
|
|
8374
|
+
this.j2m_1 = style;
|
|
8375
|
+
this.k2m_1 = textAlign;
|
|
8376
8376
|
}
|
|
8377
8377
|
function StandardTerminalInterface() {
|
|
8378
8378
|
}
|
|
8379
|
-
protoOf(StandardTerminalInterface).
|
|
8380
|
-
return TerminalDetection_instance.
|
|
8379
|
+
protoOf(StandardTerminalInterface).l2m = function (ansiLevel, hyperlinks, outputInteractive, inputInteractive) {
|
|
8380
|
+
return TerminalDetection_instance.o2m(ansiLevel, hyperlinks, inputInteractive, outputInteractive, this.m2m(), this.n2m());
|
|
8381
8381
|
};
|
|
8382
|
-
protoOf(StandardTerminalInterface).
|
|
8383
|
-
if (request.
|
|
8384
|
-
printStderr(request.
|
|
8385
|
-
} else if (request.
|
|
8382
|
+
protoOf(StandardTerminalInterface).p2m = function (request) {
|
|
8383
|
+
if (request.s2m_1) {
|
|
8384
|
+
printStderr(request.q2m_1, request.r2m_1);
|
|
8385
|
+
} else if (request.r2m_1) {
|
|
8386
8386
|
// Inline function 'kotlin.text.isEmpty' call
|
|
8387
|
-
var this_0 = request.
|
|
8387
|
+
var this_0 = request.q2m_1;
|
|
8388
8388
|
if (charSequenceLength(this_0) === 0) {
|
|
8389
8389
|
println_0();
|
|
8390
8390
|
} else {
|
|
8391
|
-
println(request.
|
|
8391
|
+
println(request.q2m_1);
|
|
8392
8392
|
}
|
|
8393
8393
|
} else {
|
|
8394
|
-
print(request.
|
|
8394
|
+
print(request.q2m_1);
|
|
8395
8395
|
}
|
|
8396
8396
|
};
|
|
8397
|
-
protoOf(StandardTerminalInterface).
|
|
8397
|
+
protoOf(StandardTerminalInterface).n2m = function () {
|
|
8398
8398
|
return true;
|
|
8399
8399
|
};
|
|
8400
|
-
protoOf(StandardTerminalInterface).
|
|
8400
|
+
protoOf(StandardTerminalInterface).m2m = function () {
|
|
8401
8401
|
return true;
|
|
8402
8402
|
};
|
|
8403
8403
|
function Terminal_init_$Init$(ansiLevel, theme, width, height, nonInteractiveWidth, nonInteractiveHeight, hyperlinks, tabWidth, interactive, terminalInterface, $this) {
|
|
8404
8404
|
ansiLevel = ansiLevel === VOID ? null : ansiLevel;
|
|
8405
|
-
theme = theme === VOID ? Companion_getInstance_2().
|
|
8405
|
+
theme = theme === VOID ? Companion_getInstance_2().y2f_1 : theme;
|
|
8406
8406
|
width = width === VOID ? null : width;
|
|
8407
8407
|
height = height === VOID ? null : height;
|
|
8408
8408
|
nonInteractiveWidth = nonInteractiveWidth === VOID ? null : nonInteractiveWidth;
|
|
@@ -8411,7 +8411,7 @@
|
|
|
8411
8411
|
tabWidth = tabWidth === VOID ? 8 : tabWidth;
|
|
8412
8412
|
interactive = interactive === VOID ? null : interactive;
|
|
8413
8413
|
terminalInterface = terminalInterface === VOID ? get_STANDARD_TERM_INTERFACE() : terminalInterface;
|
|
8414
|
-
Terminal.call($this, theme, tabWidth, terminalInterface, width, height, nonInteractiveWidth, nonInteractiveHeight, terminalInterface.
|
|
8414
|
+
Terminal.call($this, theme, tabWidth, terminalInterface, width, height, nonInteractiveWidth, nonInteractiveHeight, terminalInterface.l2m(ansiLevel, hyperlinks, interactive, interactive));
|
|
8415
8415
|
return $this;
|
|
8416
8416
|
}
|
|
8417
8417
|
function Terminal_init_$Create$(ansiLevel, theme, width, height, nonInteractiveWidth, nonInteractiveHeight, hyperlinks, tabWidth, interactive, terminalInterface) {
|
|
@@ -8421,36 +8421,36 @@
|
|
|
8421
8421
|
sendPrintRequest($this, new PrintRequest(message, true, stderr));
|
|
8422
8422
|
}
|
|
8423
8423
|
function sendPrintRequest($this, request) {
|
|
8424
|
-
if ($this.
|
|
8425
|
-
$this.
|
|
8424
|
+
if ($this.t2g_1.u2m()) {
|
|
8425
|
+
$this.v2m();
|
|
8426
8426
|
}
|
|
8427
|
-
sendInterceptedPrintRequest(request, $this.
|
|
8427
|
+
sendInterceptedPrintRequest(request, $this.t2g_1, $this.z2g_1.z());
|
|
8428
8428
|
}
|
|
8429
8429
|
function Terminal(theme, tabWidth, terminalInterface, forceWidth, forceHeight, nonInteractiveWidth, nonInteractiveHeight, terminalInfo) {
|
|
8430
|
-
this.
|
|
8431
|
-
this.
|
|
8432
|
-
this.
|
|
8433
|
-
this.
|
|
8434
|
-
this.
|
|
8435
|
-
this.
|
|
8436
|
-
this.
|
|
8437
|
-
this.
|
|
8438
|
-
this.
|
|
8439
|
-
this.
|
|
8440
|
-
this.
|
|
8430
|
+
this.r2g_1 = theme;
|
|
8431
|
+
this.s2g_1 = tabWidth;
|
|
8432
|
+
this.t2g_1 = terminalInterface;
|
|
8433
|
+
this.u2g_1 = forceWidth;
|
|
8434
|
+
this.v2g_1 = forceHeight;
|
|
8435
|
+
this.w2g_1 = nonInteractiveWidth;
|
|
8436
|
+
this.x2g_1 = nonInteractiveHeight;
|
|
8437
|
+
this.y2g_1 = terminalInfo;
|
|
8438
|
+
this.z2g_1 = MppAtomicRef(emptyList());
|
|
8439
|
+
this.a2h_1 = MppAtomicRef(detectSize(this.t2g_1, this.y2g_1, this.u2g_1, this.v2g_1, this.w2g_1, this.x2g_1));
|
|
8440
|
+
this.b2h_1 = this.y2g_1.b2n() ? makePrintingTerminalCursor(this) : DisabledTerminalCursor_instance;
|
|
8441
8441
|
}
|
|
8442
8442
|
protoOf(Terminal).p = function () {
|
|
8443
|
-
return this.
|
|
8443
|
+
return this.a2h_1.z();
|
|
8444
8444
|
};
|
|
8445
|
-
protoOf(Terminal).
|
|
8446
|
-
var tmp0 = this.
|
|
8445
|
+
protoOf(Terminal).v2m = function () {
|
|
8446
|
+
var tmp0 = this.a2h_1;
|
|
8447
8447
|
var tmp$ret$1;
|
|
8448
8448
|
$l$block: {
|
|
8449
8449
|
// Inline function 'com.github.ajalt.mordant.internal.update' call
|
|
8450
8450
|
while (true) {
|
|
8451
8451
|
var old = tmp0.z();
|
|
8452
|
-
var newValue = detectSize(this.
|
|
8453
|
-
if (tmp0.
|
|
8452
|
+
var newValue = detectSize(this.t2g_1, this.y2g_1, this.u2g_1, this.v2g_1, this.w2g_1, this.x2g_1);
|
|
8453
|
+
if (tmp0.c2n(old, newValue)) {
|
|
8454
8454
|
tmp$ret$1 = to(old, newValue);
|
|
8455
8455
|
break $l$block;
|
|
8456
8456
|
}
|
|
@@ -8458,10 +8458,10 @@
|
|
|
8458
8458
|
}
|
|
8459
8459
|
return tmp$ret$1.qa_1;
|
|
8460
8460
|
};
|
|
8461
|
-
protoOf(Terminal).
|
|
8462
|
-
this.
|
|
8461
|
+
protoOf(Terminal).d2n = function (message, whitespace, align, overflowWrap, width, stderr) {
|
|
8462
|
+
this.f2n(this.e2n(message, whitespace, align, overflowWrap, width), stderr);
|
|
8463
8463
|
};
|
|
8464
|
-
protoOf(Terminal).
|
|
8464
|
+
protoOf(Terminal).g2n = function (message, whitespace, align, overflowWrap, width, stderr, $super) {
|
|
8465
8465
|
whitespace = whitespace === VOID ? Whitespace_PRE_getInstance() : whitespace;
|
|
8466
8466
|
align = align === VOID ? TextAlign_NONE_getInstance() : align;
|
|
8467
8467
|
overflowWrap = overflowWrap === VOID ? OverflowWrap_NORMAL_getInstance() : overflowWrap;
|
|
@@ -8469,17 +8469,17 @@
|
|
|
8469
8469
|
stderr = stderr === VOID ? false : stderr;
|
|
8470
8470
|
var tmp;
|
|
8471
8471
|
if ($super === VOID) {
|
|
8472
|
-
this.
|
|
8472
|
+
this.d2n(message, whitespace, align, overflowWrap, width, stderr);
|
|
8473
8473
|
tmp = Unit_instance;
|
|
8474
8474
|
} else {
|
|
8475
|
-
tmp = $super.
|
|
8475
|
+
tmp = $super.d2n.call(this, message, whitespace, align, overflowWrap, width, stderr);
|
|
8476
8476
|
}
|
|
8477
8477
|
return tmp;
|
|
8478
8478
|
};
|
|
8479
|
-
protoOf(Terminal).
|
|
8480
|
-
rawPrintln(this, this.
|
|
8479
|
+
protoOf(Terminal).h2n = function (message, whitespace, align, overflowWrap, width, stderr) {
|
|
8480
|
+
rawPrintln(this, this.e2n(message, whitespace, align, overflowWrap, width), stderr);
|
|
8481
8481
|
};
|
|
8482
|
-
protoOf(Terminal).
|
|
8482
|
+
protoOf(Terminal).i2n = function (message, whitespace, align, overflowWrap, width, stderr, $super) {
|
|
8483
8483
|
whitespace = whitespace === VOID ? Whitespace_PRE_getInstance() : whitespace;
|
|
8484
8484
|
align = align === VOID ? TextAlign_NONE_getInstance() : align;
|
|
8485
8485
|
overflowWrap = overflowWrap === VOID ? OverflowWrap_NORMAL_getInstance() : overflowWrap;
|
|
@@ -8487,34 +8487,34 @@
|
|
|
8487
8487
|
stderr = stderr === VOID ? false : stderr;
|
|
8488
8488
|
var tmp;
|
|
8489
8489
|
if ($super === VOID) {
|
|
8490
|
-
this.
|
|
8490
|
+
this.h2n(message, whitespace, align, overflowWrap, width, stderr);
|
|
8491
8491
|
tmp = Unit_instance;
|
|
8492
8492
|
} else {
|
|
8493
|
-
tmp = $super.
|
|
8493
|
+
tmp = $super.h2n.call(this, message, whitespace, align, overflowWrap, width, stderr);
|
|
8494
8494
|
}
|
|
8495
8495
|
return tmp;
|
|
8496
8496
|
};
|
|
8497
|
-
protoOf(Terminal).
|
|
8497
|
+
protoOf(Terminal).e2n = function (message, whitespace, align, overflowWrap, width) {
|
|
8498
8498
|
var tmp;
|
|
8499
8499
|
if (message instanceof Lines) {
|
|
8500
|
-
tmp = renderLinesAnsi(message, this.
|
|
8500
|
+
tmp = renderLinesAnsi(message, this.y2g_1.w2m_1, this.y2g_1.x2m_1);
|
|
8501
8501
|
} else {
|
|
8502
8502
|
if (!(message == null) ? isInterface(message, Widget) : false) {
|
|
8503
|
-
tmp = this.
|
|
8503
|
+
tmp = this.j2n(message);
|
|
8504
8504
|
} else {
|
|
8505
|
-
tmp = this.
|
|
8505
|
+
tmp = this.j2n(Text_init_$Create$(toString_1(message), whitespace, align, overflowWrap, width));
|
|
8506
8506
|
}
|
|
8507
8507
|
}
|
|
8508
8508
|
return tmp;
|
|
8509
8509
|
};
|
|
8510
|
-
protoOf(Terminal).
|
|
8511
|
-
return renderLinesAnsi(widget.
|
|
8510
|
+
protoOf(Terminal).j2n = function (widget) {
|
|
8511
|
+
return renderLinesAnsi(widget.q2g(this), this.y2g_1.w2m_1, this.y2g_1.x2m_1);
|
|
8512
8512
|
};
|
|
8513
|
-
protoOf(Terminal).
|
|
8513
|
+
protoOf(Terminal).f2n = function (message, stderr) {
|
|
8514
8514
|
sendPrintRequest(this, new PrintRequest(message, false, stderr));
|
|
8515
8515
|
};
|
|
8516
8516
|
function PrintTerminalCursor(terminal) {
|
|
8517
|
-
this.
|
|
8517
|
+
this.k2n_1 = terminal;
|
|
8518
8518
|
}
|
|
8519
8519
|
function DisabledTerminalCursor() {
|
|
8520
8520
|
}
|
|
@@ -8809,7 +8809,7 @@
|
|
|
8809
8809
|
}
|
|
8810
8810
|
function TerminalDetection() {
|
|
8811
8811
|
}
|
|
8812
|
-
protoOf(TerminalDetection).
|
|
8812
|
+
protoOf(TerminalDetection).o2m = function (ansiLevel_0, hyperlinks, forceInputInteractive, forceOutputInteractive, detectedStdinInteractive, detectedStdoutInteractive) {
|
|
8813
8813
|
var ij = isIntellijRunActionConsole(this);
|
|
8814
8814
|
var inputInteractive = forceInputInteractive == null ? ij || detectedStdinInteractive : forceInputInteractive;
|
|
8815
8815
|
var outputInteractive = forceOutputInteractive == null ? ij || detectedStdoutInteractive : forceOutputInteractive;
|
|
@@ -8824,13 +8824,13 @@
|
|
|
8824
8824
|
function detectSize(_this__u8e3s4, info, width, height, nonInteractiveWidth, nonInteractiveHeight) {
|
|
8825
8825
|
if (!(width == null) && !(height == null))
|
|
8826
8826
|
return new Size(width, height);
|
|
8827
|
-
if (!info.
|
|
8827
|
+
if (!info.y2m_1) {
|
|
8828
8828
|
var tmp1_elvis_lhs = nonInteractiveWidth == null ? width : nonInteractiveWidth;
|
|
8829
8829
|
var tmp = tmp1_elvis_lhs == null ? 79 : tmp1_elvis_lhs;
|
|
8830
8830
|
var tmp3_elvis_lhs = nonInteractiveHeight == null ? height : nonInteractiveHeight;
|
|
8831
8831
|
return new Size(tmp, tmp3_elvis_lhs == null ? 24 : tmp3_elvis_lhs);
|
|
8832
8832
|
}
|
|
8833
|
-
var tmp4_elvis_lhs = _this__u8e3s4.
|
|
8833
|
+
var tmp4_elvis_lhs = _this__u8e3s4.t2m();
|
|
8834
8834
|
var tmp_0;
|
|
8835
8835
|
if (tmp4_elvis_lhs == null) {
|
|
8836
8836
|
var tmp122_safe_receiver = getEnv('COLUMNS');
|
|
@@ -8843,28 +8843,28 @@
|
|
|
8843
8843
|
tmp_0 = tmp4_elvis_lhs;
|
|
8844
8844
|
}
|
|
8845
8845
|
var detected = tmp_0;
|
|
8846
|
-
var tmp_2 = width == null ? detected.
|
|
8847
|
-
return new Size(tmp_2, height == null ? detected.
|
|
8846
|
+
var tmp_2 = width == null ? detected.a2f_1 : width;
|
|
8847
|
+
return new Size(tmp_2, height == null ? detected.b2f_1 : height);
|
|
8848
8848
|
}
|
|
8849
8849
|
function TerminalInfo(ansiLevel, ansiHyperLinks, outputInteractive, inputInteractive, supportsAnsiCursor) {
|
|
8850
|
-
this.
|
|
8851
|
-
this.
|
|
8852
|
-
this.
|
|
8853
|
-
this.
|
|
8854
|
-
this.
|
|
8850
|
+
this.w2m_1 = ansiLevel;
|
|
8851
|
+
this.x2m_1 = ansiHyperLinks;
|
|
8852
|
+
this.y2m_1 = outputInteractive;
|
|
8853
|
+
this.z2m_1 = inputInteractive;
|
|
8854
|
+
this.a2n_1 = supportsAnsiCursor;
|
|
8855
8855
|
}
|
|
8856
|
-
protoOf(TerminalInfo).
|
|
8857
|
-
return this.
|
|
8856
|
+
protoOf(TerminalInfo).b2n = function () {
|
|
8857
|
+
return this.z2m_1 && this.y2m_1;
|
|
8858
8858
|
};
|
|
8859
8859
|
protoOf(TerminalInfo).toString = function () {
|
|
8860
|
-
return 'TerminalInfo(ansiLevel=' + this.
|
|
8860
|
+
return 'TerminalInfo(ansiLevel=' + this.w2m_1.toString() + ', ansiHyperLinks=' + this.x2m_1 + ', outputInteractive=' + this.y2m_1 + ', inputInteractive=' + this.z2m_1 + ', supportsAnsiCursor=' + this.a2n_1 + ')';
|
|
8861
8861
|
};
|
|
8862
8862
|
protoOf(TerminalInfo).hashCode = function () {
|
|
8863
|
-
var result = this.
|
|
8864
|
-
result = imul(result, 31) + getBooleanHashCode(this.u2m_1) | 0;
|
|
8865
|
-
result = imul(result, 31) + getBooleanHashCode(this.v2m_1) | 0;
|
|
8866
|
-
result = imul(result, 31) + getBooleanHashCode(this.w2m_1) | 0;
|
|
8863
|
+
var result = this.w2m_1.hashCode();
|
|
8867
8864
|
result = imul(result, 31) + getBooleanHashCode(this.x2m_1) | 0;
|
|
8865
|
+
result = imul(result, 31) + getBooleanHashCode(this.y2m_1) | 0;
|
|
8866
|
+
result = imul(result, 31) + getBooleanHashCode(this.z2m_1) | 0;
|
|
8867
|
+
result = imul(result, 31) + getBooleanHashCode(this.a2n_1) | 0;
|
|
8868
8868
|
return result;
|
|
8869
8869
|
};
|
|
8870
8870
|
protoOf(TerminalInfo).equals = function (other) {
|
|
@@ -8873,32 +8873,32 @@
|
|
|
8873
8873
|
if (!(other instanceof TerminalInfo))
|
|
8874
8874
|
return false;
|
|
8875
8875
|
var tmp0_other_with_cast = other instanceof TerminalInfo ? other : THROW_CCE();
|
|
8876
|
-
if (!this.
|
|
8876
|
+
if (!this.w2m_1.equals(tmp0_other_with_cast.w2m_1))
|
|
8877
8877
|
return false;
|
|
8878
|
-
if (!(this.
|
|
8878
|
+
if (!(this.x2m_1 === tmp0_other_with_cast.x2m_1))
|
|
8879
8879
|
return false;
|
|
8880
|
-
if (!(this.
|
|
8880
|
+
if (!(this.y2m_1 === tmp0_other_with_cast.y2m_1))
|
|
8881
8881
|
return false;
|
|
8882
|
-
if (!(this.
|
|
8882
|
+
if (!(this.z2m_1 === tmp0_other_with_cast.z2m_1))
|
|
8883
8883
|
return false;
|
|
8884
|
-
if (!(this.
|
|
8884
|
+
if (!(this.a2n_1 === tmp0_other_with_cast.a2n_1))
|
|
8885
8885
|
return false;
|
|
8886
8886
|
return true;
|
|
8887
8887
|
};
|
|
8888
8888
|
function TerminalInterface() {
|
|
8889
8889
|
}
|
|
8890
8890
|
function PrintRequest(text, trailingLinebreak, stderr) {
|
|
8891
|
-
this.
|
|
8892
|
-
this.
|
|
8893
|
-
this.
|
|
8891
|
+
this.q2m_1 = text;
|
|
8892
|
+
this.r2m_1 = trailingLinebreak;
|
|
8893
|
+
this.s2m_1 = stderr;
|
|
8894
8894
|
}
|
|
8895
8895
|
protoOf(PrintRequest).toString = function () {
|
|
8896
|
-
return 'PrintRequest(text=' + this.
|
|
8896
|
+
return 'PrintRequest(text=' + this.q2m_1 + ', trailingLinebreak=' + this.r2m_1 + ', stderr=' + this.s2m_1 + ')';
|
|
8897
8897
|
};
|
|
8898
8898
|
protoOf(PrintRequest).hashCode = function () {
|
|
8899
|
-
var result = getStringHashCode(this.
|
|
8900
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
8901
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
8899
|
+
var result = getStringHashCode(this.q2m_1);
|
|
8900
|
+
result = imul(result, 31) + getBooleanHashCode(this.r2m_1) | 0;
|
|
8901
|
+
result = imul(result, 31) + getBooleanHashCode(this.s2m_1) | 0;
|
|
8902
8902
|
return result;
|
|
8903
8903
|
};
|
|
8904
8904
|
protoOf(PrintRequest).equals = function (other) {
|
|
@@ -8907,11 +8907,11 @@
|
|
|
8907
8907
|
if (!(other instanceof PrintRequest))
|
|
8908
8908
|
return false;
|
|
8909
8909
|
var tmp0_other_with_cast = other instanceof PrintRequest ? other : THROW_CCE();
|
|
8910
|
-
if (!(this.
|
|
8910
|
+
if (!(this.q2m_1 === tmp0_other_with_cast.q2m_1))
|
|
8911
8911
|
return false;
|
|
8912
|
-
if (!(this.
|
|
8912
|
+
if (!(this.r2m_1 === tmp0_other_with_cast.r2m_1))
|
|
8913
8913
|
return false;
|
|
8914
|
-
if (!(this.
|
|
8914
|
+
if (!(this.s2m_1 === tmp0_other_with_cast.s2m_1))
|
|
8915
8915
|
return false;
|
|
8916
8916
|
return true;
|
|
8917
8917
|
};
|
|
@@ -8919,42 +8919,42 @@
|
|
|
8919
8919
|
// Inline function 'kotlin.apply' call
|
|
8920
8920
|
var this_0 = new DefinitionListBuilder();
|
|
8921
8921
|
init(this_0);
|
|
8922
|
-
return this_0.
|
|
8922
|
+
return this_0.h2g();
|
|
8923
8923
|
}
|
|
8924
8924
|
function DefinitionListBuilder() {
|
|
8925
8925
|
var tmp = this;
|
|
8926
8926
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
8927
|
-
tmp.
|
|
8928
|
-
this.
|
|
8929
|
-
this.
|
|
8930
|
-
this.
|
|
8927
|
+
tmp.l2n_1 = ArrayList_init_$Create$();
|
|
8928
|
+
this.m2n_1 = false;
|
|
8929
|
+
this.n2n_1 = null;
|
|
8930
|
+
this.o2n_1 = null;
|
|
8931
8931
|
}
|
|
8932
|
-
protoOf(DefinitionListBuilder).
|
|
8933
|
-
this.
|
|
8932
|
+
protoOf(DefinitionListBuilder).p2n = function (value) {
|
|
8933
|
+
this.n2n_1 = value;
|
|
8934
8934
|
};
|
|
8935
|
-
protoOf(DefinitionListBuilder).
|
|
8936
|
-
var tmp0_elvis_lhs = this.
|
|
8937
|
-
return tmp0_elvis_lhs == null ? this.
|
|
8935
|
+
protoOf(DefinitionListBuilder).q2n = function () {
|
|
8936
|
+
var tmp0_elvis_lhs = this.n2n_1;
|
|
8937
|
+
return tmp0_elvis_lhs == null ? this.m2n_1 ? 2 : 0 : tmp0_elvis_lhs;
|
|
8938
8938
|
};
|
|
8939
|
-
protoOf(DefinitionListBuilder).
|
|
8940
|
-
var tmp0_elvis_lhs = this.
|
|
8941
|
-
return tmp0_elvis_lhs == null ? this.
|
|
8939
|
+
protoOf(DefinitionListBuilder).r2n = function () {
|
|
8940
|
+
var tmp0_elvis_lhs = this.o2n_1;
|
|
8941
|
+
return tmp0_elvis_lhs == null ? this.m2n_1 ? 0 : 1 : tmp0_elvis_lhs;
|
|
8942
8942
|
};
|
|
8943
|
-
protoOf(DefinitionListBuilder).
|
|
8944
|
-
this.
|
|
8943
|
+
protoOf(DefinitionListBuilder).s2n = function (term, description) {
|
|
8944
|
+
this.t2n(Text_init_$Create$(term), description);
|
|
8945
8945
|
};
|
|
8946
|
-
protoOf(DefinitionListBuilder).
|
|
8947
|
-
var tmp0 = this.
|
|
8946
|
+
protoOf(DefinitionListBuilder).t2n = function (term, description) {
|
|
8947
|
+
var tmp0 = this.l2n_1;
|
|
8948
8948
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
8949
8949
|
var element = to(term, description);
|
|
8950
8950
|
tmp0.e(element);
|
|
8951
8951
|
};
|
|
8952
|
-
protoOf(DefinitionListBuilder).
|
|
8953
|
-
return new DefinitionList(this.
|
|
8952
|
+
protoOf(DefinitionListBuilder).h2g = function () {
|
|
8953
|
+
return new DefinitionList(this.l2n_1, this.m2n_1, this.q2n(), this.r2n());
|
|
8954
8954
|
};
|
|
8955
8955
|
function _get_keys__d97k5z($this) {
|
|
8956
8956
|
// Inline function 'kotlin.collections.map' call
|
|
8957
|
-
var this_0 = $this.
|
|
8957
|
+
var this_0 = $this.u2n_1;
|
|
8958
8958
|
// Inline function 'kotlin.collections.mapTo' call
|
|
8959
8959
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
8960
8960
|
var _iterator__ex2g4s = this_0.m();
|
|
@@ -8967,7 +8967,7 @@
|
|
|
8967
8967
|
}
|
|
8968
8968
|
function _get_values__tel787($this) {
|
|
8969
8969
|
// Inline function 'kotlin.collections.map' call
|
|
8970
|
-
var this_0 = $this.
|
|
8970
|
+
var this_0 = $this.u2n_1;
|
|
8971
8971
|
// Inline function 'kotlin.collections.mapTo' call
|
|
8972
8972
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
8973
8973
|
var _iterator__ex2g4s = this_0.m();
|
|
@@ -8983,27 +8983,27 @@
|
|
|
8983
8983
|
}
|
|
8984
8984
|
function DefinitionList$render$lambda($descOffset) {
|
|
8985
8985
|
return function ($this$withPadding) {
|
|
8986
|
-
$this$withPadding.
|
|
8986
|
+
$this$withPadding.v2l_1 = $descOffset;
|
|
8987
8987
|
return Unit_instance;
|
|
8988
8988
|
};
|
|
8989
8989
|
}
|
|
8990
8990
|
function DefinitionList(entries, inline, descriptionSpacing, entrySpacing) {
|
|
8991
|
-
this.
|
|
8992
|
-
this.
|
|
8993
|
-
this.
|
|
8994
|
-
this.
|
|
8991
|
+
this.u2n_1 = entries;
|
|
8992
|
+
this.v2n_1 = inline;
|
|
8993
|
+
this.w2n_1 = descriptionSpacing;
|
|
8994
|
+
this.x2n_1 = entrySpacing;
|
|
8995
8995
|
// Inline function 'kotlin.require' call
|
|
8996
|
-
if (!(this.
|
|
8996
|
+
if (!(this.w2n_1 >= 0)) {
|
|
8997
8997
|
var message = 'Spacing cannot be negative';
|
|
8998
8998
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
8999
8999
|
}
|
|
9000
9000
|
}
|
|
9001
|
-
protoOf(DefinitionList).
|
|
9001
|
+
protoOf(DefinitionList).o2g = function (t, width) {
|
|
9002
9002
|
var termMeasurement = maxWidthRange(_get_keys__d97k5z(this), t, width);
|
|
9003
9003
|
var descMeasurement = measureDescriptions(this, t, width);
|
|
9004
9004
|
var tmp;
|
|
9005
|
-
if (this.
|
|
9006
|
-
tmp = termMeasurement.
|
|
9005
|
+
if (this.v2n_1) {
|
|
9006
|
+
tmp = termMeasurement.f2h(descMeasurement).e2h(this.w2n_1);
|
|
9007
9007
|
} else {
|
|
9008
9008
|
// Inline function 'com.github.ajalt.mordant.rendering.maxWidthRange' call
|
|
9009
9009
|
var max = 0;
|
|
@@ -9020,18 +9020,18 @@
|
|
|
9020
9020
|
var range = tmp_0;
|
|
9021
9021
|
var tmp0 = max;
|
|
9022
9022
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
9023
|
-
var b = range.
|
|
9023
|
+
var b = range.d2h_1;
|
|
9024
9024
|
max = Math.max(tmp0, b);
|
|
9025
9025
|
var tmp0_0 = min;
|
|
9026
9026
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
9027
|
-
var b_0 = range.
|
|
9027
|
+
var b_0 = range.c2h_1;
|
|
9028
9028
|
min = Math.max(tmp0_0, b_0);
|
|
9029
9029
|
}
|
|
9030
9030
|
tmp = new WidthRange(min + 0 | 0, max + 0 | 0);
|
|
9031
9031
|
}
|
|
9032
9032
|
return tmp;
|
|
9033
9033
|
};
|
|
9034
|
-
protoOf(DefinitionList).
|
|
9034
|
+
protoOf(DefinitionList).p2g = function (t, width) {
|
|
9035
9035
|
if (width === 0)
|
|
9036
9036
|
return get_EMPTY_LINES();
|
|
9037
9037
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -9041,19 +9041,19 @@
|
|
|
9041
9041
|
var _iterator__ex2g4s = this_0.m();
|
|
9042
9042
|
while (_iterator__ex2g4s.n()) {
|
|
9043
9043
|
var item = _iterator__ex2g4s.o();
|
|
9044
|
-
var tmp$ret$0 = item.
|
|
9044
|
+
var tmp$ret$0 = item.o2g(t, width);
|
|
9045
9045
|
destination.e(tmp$ret$0);
|
|
9046
9046
|
}
|
|
9047
9047
|
var termMeasurements = destination;
|
|
9048
9048
|
var maxInlineTermWidth = numberToInt(width / 2.5);
|
|
9049
|
-
var maxDescWidth = measureDescriptions(this, t, width).
|
|
9049
|
+
var maxDescWidth = measureDescriptions(this, t, width).d2h_1;
|
|
9050
9050
|
// Inline function 'kotlin.collections.filter' call
|
|
9051
9051
|
// Inline function 'kotlin.collections.filterTo' call
|
|
9052
9052
|
var destination_0 = ArrayList_init_$Create$();
|
|
9053
9053
|
var _iterator__ex2g4s_0 = termMeasurements.m();
|
|
9054
9054
|
while (_iterator__ex2g4s_0.n()) {
|
|
9055
9055
|
var element = _iterator__ex2g4s_0.o();
|
|
9056
|
-
if (element.
|
|
9056
|
+
if (element.d2h_1 <= maxInlineTermWidth || (this.v2n_1 && ((element.d2h_1 + this.w2n_1 | 0) + maxDescWidth | 0) <= width)) {
|
|
9057
9057
|
destination_0.e(element);
|
|
9058
9058
|
}
|
|
9059
9059
|
}
|
|
@@ -9072,18 +9072,18 @@
|
|
|
9072
9072
|
var range = tmp;
|
|
9073
9073
|
var tmp0 = max;
|
|
9074
9074
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
9075
|
-
var b = range.
|
|
9075
|
+
var b = range.d2h_1;
|
|
9076
9076
|
max = Math.max(tmp0, b);
|
|
9077
9077
|
var tmp0_0 = min;
|
|
9078
9078
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
9079
|
-
var b_0 = range.
|
|
9079
|
+
var b_0 = range.c2h_1;
|
|
9080
9080
|
min = Math.max(tmp0_0, b_0);
|
|
9081
9081
|
}
|
|
9082
|
-
var termWidth = (new WidthRange(min + 0 | 0, max + 0 | 0)).
|
|
9083
|
-
var descOffset = coerceAtLeast(termWidth + this.
|
|
9082
|
+
var termWidth = (new WidthRange(min + 0 | 0, max + 0 | 0)).d2h_1;
|
|
9083
|
+
var descOffset = coerceAtLeast(termWidth + this.w2n_1 | 0, 4);
|
|
9084
9084
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
9085
9085
|
var lines = ArrayList_init_$Create$();
|
|
9086
|
-
var iterator = this.
|
|
9086
|
+
var iterator = this.u2n_1.m();
|
|
9087
9087
|
var index = 0;
|
|
9088
9088
|
$l$loop_1: while (iterator.n()) {
|
|
9089
9089
|
var i = index;
|
|
@@ -9091,7 +9091,7 @@
|
|
|
9091
9091
|
var entry = iterator.o();
|
|
9092
9092
|
if (i > 0) {
|
|
9093
9093
|
// Inline function 'kotlin.repeat' call
|
|
9094
|
-
var times = this.
|
|
9094
|
+
var times = this.x2n_1;
|
|
9095
9095
|
var inductionVariable = 0;
|
|
9096
9096
|
if (inductionVariable < times)
|
|
9097
9097
|
do {
|
|
@@ -9105,12 +9105,12 @@
|
|
|
9105
9105
|
}
|
|
9106
9106
|
var term = entry.ra();
|
|
9107
9107
|
var desc = entry.sa();
|
|
9108
|
-
if (!this.
|
|
9108
|
+
if (!this.v2n_1) {
|
|
9109
9109
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9110
|
-
var elements = term.
|
|
9110
|
+
var elements = term.p2g(t, width).p2c_1;
|
|
9111
9111
|
addAll(lines, elements);
|
|
9112
9112
|
// Inline function 'kotlin.repeat' call
|
|
9113
|
-
var times_0 = this.
|
|
9113
|
+
var times_0 = this.w2n_1;
|
|
9114
9114
|
var inductionVariable_0 = 0;
|
|
9115
9115
|
if (inductionVariable_0 < times_0)
|
|
9116
9116
|
do {
|
|
@@ -9122,28 +9122,28 @@
|
|
|
9122
9122
|
}
|
|
9123
9123
|
while (inductionVariable_0 < times_0);
|
|
9124
9124
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9125
|
-
var elements_0 = desc.
|
|
9125
|
+
var elements_0 = desc.p2g(t, width).p2c_1;
|
|
9126
9126
|
addAll(lines, elements_0);
|
|
9127
9127
|
continue $l$loop_1;
|
|
9128
9128
|
}
|
|
9129
|
-
if (termMeasurements.q(i).
|
|
9129
|
+
if (termMeasurements.q(i).d2h_1 > termWidth) {
|
|
9130
9130
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9131
|
-
var elements_1 = term.
|
|
9131
|
+
var elements_1 = term.p2g(t, width).p2c_1;
|
|
9132
9132
|
addAll(lines, elements_1);
|
|
9133
9133
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9134
|
-
var elements_2 = withPadding(desc, VOID, DefinitionList$render$lambda(descOffset)).
|
|
9134
|
+
var elements_2 = withPadding(desc, VOID, DefinitionList$render$lambda(descOffset)).p2g(t, width).p2c_1;
|
|
9135
9135
|
addAll(lines, elements_2);
|
|
9136
9136
|
continue $l$loop_1;
|
|
9137
9137
|
}
|
|
9138
|
-
var termLines = term.
|
|
9139
|
-
var descLines = desc.
|
|
9138
|
+
var termLines = term.p2g(t, termWidth).p2c_1;
|
|
9139
|
+
var descLines = desc.p2g(t, coerceAtLeast((width - termWidth | 0) - this.w2n_1 | 0, 0)).p2c_1;
|
|
9140
9140
|
// Inline function 'kotlin.collections.mapTo' call
|
|
9141
9141
|
var _iterator__ex2g4s_2 = zip(termLines, descLines).m();
|
|
9142
9142
|
while (_iterator__ex2g4s_2.n()) {
|
|
9143
9143
|
var item_0 = _iterator__ex2g4s_2.o();
|
|
9144
9144
|
var t_0 = item_0.ra();
|
|
9145
9145
|
var d = item_0.sa();
|
|
9146
|
-
var tmp$ret$21 = flatLine([t_0, Companion_instance_0.
|
|
9146
|
+
var tmp$ret$21 = flatLine([t_0, Companion_instance_0.w2c((this.w2n_1 + termWidth | 0) - get_lineWidth(t_0) | 0), d]);
|
|
9147
9147
|
lines.e(tmp$ret$21);
|
|
9148
9148
|
}
|
|
9149
9149
|
if (termLines.p() > descLines.p()) {
|
|
@@ -9151,7 +9151,7 @@
|
|
|
9151
9151
|
var elements_3 = drop_0(termLines, descLines.p());
|
|
9152
9152
|
addAll(lines, elements_3);
|
|
9153
9153
|
} else if (descLines.p() > termLines.p()) {
|
|
9154
|
-
var paddingLeft = descOffset > 0 ? listOf_0(Companion_instance_0.
|
|
9154
|
+
var paddingLeft = descOffset > 0 ? listOf_0(Companion_instance_0.w2c(descOffset)) : get_EMPTY_LINE();
|
|
9155
9155
|
// Inline function 'kotlin.collections.mapTo' call
|
|
9156
9156
|
var _iterator__ex2g4s_3 = drop_0(descLines, termLines.p()).m();
|
|
9157
9157
|
while (_iterator__ex2g4s_3.n()) {
|
|
@@ -9174,10 +9174,10 @@
|
|
|
9174
9174
|
};
|
|
9175
9175
|
function EmptyWidget() {
|
|
9176
9176
|
}
|
|
9177
|
-
protoOf(EmptyWidget).
|
|
9177
|
+
protoOf(EmptyWidget).o2g = function (t, width) {
|
|
9178
9178
|
return new WidthRange(0, 0);
|
|
9179
9179
|
};
|
|
9180
|
-
protoOf(EmptyWidget).
|
|
9180
|
+
protoOf(EmptyWidget).p2g = function (t, width) {
|
|
9181
9181
|
return get_EMPTY_LINES();
|
|
9182
9182
|
};
|
|
9183
9183
|
var EmptyWidget_instance;
|
|
@@ -9198,23 +9198,23 @@
|
|
|
9198
9198
|
return Companion_instance_4;
|
|
9199
9199
|
}
|
|
9200
9200
|
function Builder(top, right, bottom, left) {
|
|
9201
|
-
this.
|
|
9202
|
-
this.
|
|
9203
|
-
this.
|
|
9204
|
-
this.
|
|
9201
|
+
this.s2l_1 = top;
|
|
9202
|
+
this.t2l_1 = right;
|
|
9203
|
+
this.u2l_1 = bottom;
|
|
9204
|
+
this.v2l_1 = left;
|
|
9205
9205
|
}
|
|
9206
|
-
protoOf(Builder).
|
|
9207
|
-
this.
|
|
9208
|
-
this.
|
|
9206
|
+
protoOf(Builder).w2l = function (value) {
|
|
9207
|
+
this.v2l_1 = value;
|
|
9208
|
+
this.t2l_1 = value;
|
|
9209
9209
|
};
|
|
9210
9210
|
protoOf(Builder).toString = function () {
|
|
9211
|
-
return 'Builder(top=' + this.
|
|
9211
|
+
return 'Builder(top=' + this.s2l_1 + ', right=' + this.t2l_1 + ', bottom=' + this.u2l_1 + ', left=' + this.v2l_1 + ')';
|
|
9212
9212
|
};
|
|
9213
9213
|
protoOf(Builder).hashCode = function () {
|
|
9214
|
-
var result = this.
|
|
9215
|
-
result = imul(result, 31) + this.
|
|
9216
|
-
result = imul(result, 31) + this.
|
|
9217
|
-
result = imul(result, 31) + this.
|
|
9214
|
+
var result = this.s2l_1;
|
|
9215
|
+
result = imul(result, 31) + this.t2l_1 | 0;
|
|
9216
|
+
result = imul(result, 31) + this.u2l_1 | 0;
|
|
9217
|
+
result = imul(result, 31) + this.v2l_1 | 0;
|
|
9218
9218
|
return result;
|
|
9219
9219
|
};
|
|
9220
9220
|
protoOf(Builder).equals = function (other) {
|
|
@@ -9223,53 +9223,53 @@
|
|
|
9223
9223
|
if (!(other instanceof Builder))
|
|
9224
9224
|
return false;
|
|
9225
9225
|
var tmp0_other_with_cast = other instanceof Builder ? other : THROW_CCE();
|
|
9226
|
-
if (!(this.
|
|
9226
|
+
if (!(this.s2l_1 === tmp0_other_with_cast.s2l_1))
|
|
9227
9227
|
return false;
|
|
9228
|
-
if (!(this.
|
|
9228
|
+
if (!(this.t2l_1 === tmp0_other_with_cast.t2l_1))
|
|
9229
9229
|
return false;
|
|
9230
|
-
if (!(this.
|
|
9230
|
+
if (!(this.u2l_1 === tmp0_other_with_cast.u2l_1))
|
|
9231
9231
|
return false;
|
|
9232
|
-
if (!(this.
|
|
9232
|
+
if (!(this.v2l_1 === tmp0_other_with_cast.v2l_1))
|
|
9233
9233
|
return false;
|
|
9234
9234
|
return true;
|
|
9235
9235
|
};
|
|
9236
9236
|
function Padding(top, right, bottom, left) {
|
|
9237
|
-
this.
|
|
9238
|
-
this.
|
|
9239
|
-
this.
|
|
9240
|
-
this.
|
|
9237
|
+
this.x2l_1 = top;
|
|
9238
|
+
this.y2l_1 = right;
|
|
9239
|
+
this.z2l_1 = bottom;
|
|
9240
|
+
this.a2m_1 = left;
|
|
9241
9241
|
// Inline function 'kotlin.require' call
|
|
9242
|
-
if (!(this.
|
|
9242
|
+
if (!(this.x2l_1 >= 0)) {
|
|
9243
9243
|
var message = 'Invalid negative top padding';
|
|
9244
9244
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
9245
9245
|
}
|
|
9246
9246
|
// Inline function 'kotlin.require' call
|
|
9247
|
-
if (!(this.
|
|
9247
|
+
if (!(this.y2l_1 >= 0)) {
|
|
9248
9248
|
var message_0 = 'Invalid negative right padding';
|
|
9249
9249
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
9250
9250
|
}
|
|
9251
9251
|
// Inline function 'kotlin.require' call
|
|
9252
|
-
if (!(this.
|
|
9252
|
+
if (!(this.z2l_1 >= 0)) {
|
|
9253
9253
|
var message_1 = 'Invalid negative bottom padding';
|
|
9254
9254
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
9255
9255
|
}
|
|
9256
9256
|
// Inline function 'kotlin.require' call
|
|
9257
|
-
if (!(this.
|
|
9257
|
+
if (!(this.a2m_1 >= 0)) {
|
|
9258
9258
|
var message_2 = 'Invalid negative left padding';
|
|
9259
9259
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
9260
9260
|
}
|
|
9261
9261
|
}
|
|
9262
|
-
protoOf(Padding).
|
|
9263
|
-
return this.
|
|
9262
|
+
protoOf(Padding).y2n = function () {
|
|
9263
|
+
return this.x2l_1 === 0 && this.y2l_1 === 0 && this.z2l_1 === 0 && this.a2m_1 === 0;
|
|
9264
9264
|
};
|
|
9265
9265
|
protoOf(Padding).toString = function () {
|
|
9266
|
-
return 'Padding(top=' + this.
|
|
9266
|
+
return 'Padding(top=' + this.x2l_1 + ', right=' + this.y2l_1 + ', bottom=' + this.z2l_1 + ', left=' + this.a2m_1 + ')';
|
|
9267
9267
|
};
|
|
9268
9268
|
protoOf(Padding).hashCode = function () {
|
|
9269
|
-
var result = this.
|
|
9270
|
-
result = imul(result, 31) + this.
|
|
9271
|
-
result = imul(result, 31) + this.
|
|
9272
|
-
result = imul(result, 31) + this.
|
|
9269
|
+
var result = this.x2l_1;
|
|
9270
|
+
result = imul(result, 31) + this.y2l_1 | 0;
|
|
9271
|
+
result = imul(result, 31) + this.z2l_1 | 0;
|
|
9272
|
+
result = imul(result, 31) + this.a2m_1 | 0;
|
|
9273
9273
|
return result;
|
|
9274
9274
|
};
|
|
9275
9275
|
protoOf(Padding).equals = function (other) {
|
|
@@ -9278,13 +9278,13 @@
|
|
|
9278
9278
|
if (!(other instanceof Padding))
|
|
9279
9279
|
return false;
|
|
9280
9280
|
var tmp0_other_with_cast = other instanceof Padding ? other : THROW_CCE();
|
|
9281
|
-
if (!(this.
|
|
9281
|
+
if (!(this.x2l_1 === tmp0_other_with_cast.x2l_1))
|
|
9282
9282
|
return false;
|
|
9283
|
-
if (!(this.
|
|
9283
|
+
if (!(this.y2l_1 === tmp0_other_with_cast.y2l_1))
|
|
9284
9284
|
return false;
|
|
9285
|
-
if (!(this.
|
|
9285
|
+
if (!(this.z2l_1 === tmp0_other_with_cast.z2l_1))
|
|
9286
9286
|
return false;
|
|
9287
|
-
if (!(this.
|
|
9287
|
+
if (!(this.a2m_1 === tmp0_other_with_cast.a2m_1))
|
|
9288
9288
|
return false;
|
|
9289
9289
|
return true;
|
|
9290
9290
|
};
|
|
@@ -9296,18 +9296,18 @@
|
|
|
9296
9296
|
var this_0 = new Builder(0, 0, 0, 0);
|
|
9297
9297
|
padding(this_0);
|
|
9298
9298
|
var b = this_0;
|
|
9299
|
-
var tmp$ret$1 = new Padding(b.
|
|
9300
|
-
return tmp.
|
|
9299
|
+
var tmp$ret$1 = new Padding(b.s2l_1, b.t2l_1, b.u2l_1, b.v2l_1);
|
|
9300
|
+
return tmp.z2n(_this__u8e3s4, tmp$ret$1, padEmptyLines);
|
|
9301
9301
|
}
|
|
9302
9302
|
function Companion_5() {
|
|
9303
9303
|
}
|
|
9304
|
-
protoOf(Companion_5).
|
|
9304
|
+
protoOf(Companion_5).z2n = function (content, padding, padEmptyLines) {
|
|
9305
9305
|
var tmp;
|
|
9306
|
-
if (padding.
|
|
9306
|
+
if (padding.y2n()) {
|
|
9307
9307
|
tmp = content;
|
|
9308
9308
|
} else {
|
|
9309
9309
|
if (content instanceof Padded) {
|
|
9310
|
-
tmp = new Padded(content.
|
|
9310
|
+
tmp = new Padded(content.a2o_1, plus_2(content.b2o_1, padding), padEmptyLines);
|
|
9311
9311
|
} else {
|
|
9312
9312
|
tmp = new Padded(content, padding, padEmptyLines);
|
|
9313
9313
|
}
|
|
@@ -9319,23 +9319,23 @@
|
|
|
9319
9319
|
return Companion_instance_5;
|
|
9320
9320
|
}
|
|
9321
9321
|
function _get_paddingWidth__8vycom($this) {
|
|
9322
|
-
return $this.
|
|
9322
|
+
return $this.b2o_1.a2m_1 + $this.b2o_1.y2l_1 | 0;
|
|
9323
9323
|
}
|
|
9324
9324
|
function Padded(content, padding, padEmptyLines) {
|
|
9325
|
-
this.
|
|
9326
|
-
this.
|
|
9327
|
-
this.
|
|
9328
|
-
}
|
|
9329
|
-
protoOf(Padded).
|
|
9330
|
-
return this.
|
|
9331
|
-
};
|
|
9332
|
-
protoOf(Padded).
|
|
9333
|
-
var lines = this.
|
|
9334
|
-
var output = ArrayList_init_$Create$_0((this.
|
|
9335
|
-
var left = this.
|
|
9336
|
-
var right = this.
|
|
9325
|
+
this.a2o_1 = content;
|
|
9326
|
+
this.b2o_1 = padding;
|
|
9327
|
+
this.c2o_1 = padEmptyLines;
|
|
9328
|
+
}
|
|
9329
|
+
protoOf(Padded).o2g = function (t, width) {
|
|
9330
|
+
return this.a2o_1.o2g(t, width - _get_paddingWidth__8vycom(this) | 0).e2h(_get_paddingWidth__8vycom(this));
|
|
9331
|
+
};
|
|
9332
|
+
protoOf(Padded).p2g = function (t, width) {
|
|
9333
|
+
var lines = this.a2o_1.p2g(t, coerceAtLeast(width - _get_paddingWidth__8vycom(this) | 0, 0));
|
|
9334
|
+
var output = ArrayList_init_$Create$_0((this.b2o_1.x2l_1 + lines.s2e() | 0) + this.b2o_1.z2l_1 | 0);
|
|
9335
|
+
var left = this.b2o_1.a2m_1 > 0 ? listOf_0(Companion_instance_0.w2c(this.b2o_1.a2m_1)) : get_EMPTY_LINE();
|
|
9336
|
+
var right = this.b2o_1.y2l_1 > 0 ? listOf_0(Companion_instance_0.w2c(this.b2o_1.y2l_1)) : get_EMPTY_LINE();
|
|
9337
9337
|
// Inline function 'kotlin.repeat' call
|
|
9338
|
-
var times = this.
|
|
9338
|
+
var times = this.b2o_1.x2l_1;
|
|
9339
9339
|
var inductionVariable = 0;
|
|
9340
9340
|
if (inductionVariable < times)
|
|
9341
9341
|
do {
|
|
@@ -9344,15 +9344,15 @@
|
|
|
9344
9344
|
output.e(get_EMPTY_LINE());
|
|
9345
9345
|
}
|
|
9346
9346
|
while (inductionVariable < times);
|
|
9347
|
-
var _iterator__ex2g4s = lines.
|
|
9347
|
+
var _iterator__ex2g4s = lines.p2c_1.m();
|
|
9348
9348
|
while (_iterator__ex2g4s.n()) {
|
|
9349
9349
|
var line = _iterator__ex2g4s.o();
|
|
9350
9350
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9351
|
-
var element = !this.
|
|
9351
|
+
var element = !this.c2o_1 && line.j() ? get_EMPTY_LINE() : flatLine([left, line, right]);
|
|
9352
9352
|
output.e(element);
|
|
9353
9353
|
}
|
|
9354
9354
|
// Inline function 'kotlin.repeat' call
|
|
9355
|
-
var times_0 = this.
|
|
9355
|
+
var times_0 = this.b2o_1.z2l_1;
|
|
9356
9356
|
var inductionVariable_0 = 0;
|
|
9357
9357
|
if (inductionVariable_0 < times_0)
|
|
9358
9358
|
do {
|
|
@@ -9364,11 +9364,11 @@
|
|
|
9364
9364
|
return new Lines(output);
|
|
9365
9365
|
};
|
|
9366
9366
|
function plus_2(_this__u8e3s4, other) {
|
|
9367
|
-
return new Padding(_this__u8e3s4.
|
|
9367
|
+
return new Padding(_this__u8e3s4.x2l_1 + other.x2l_1 | 0, _this__u8e3s4.y2l_1 + other.y2l_1 | 0, _this__u8e3s4.z2l_1 + other.z2l_1 | 0, _this__u8e3s4.a2m_1 + other.a2m_1 | 0);
|
|
9368
9368
|
}
|
|
9369
9369
|
function withPadding_0(_this__u8e3s4, padding, padEmptyLines) {
|
|
9370
9370
|
padEmptyLines = padEmptyLines === VOID ? true : padEmptyLines;
|
|
9371
|
-
return Companion_instance_5.
|
|
9371
|
+
return Companion_instance_5.z2n(_this__u8e3s4, padding, padEmptyLines);
|
|
9372
9372
|
}
|
|
9373
9373
|
function Text_init_$Init$(text, whitespace, align, overflowWrap, width, tabWidth, $this) {
|
|
9374
9374
|
whitespace = whitespace === VOID ? Whitespace_PRE_getInstance() : whitespace;
|
|
@@ -9392,48 +9392,48 @@
|
|
|
9392
9392
|
var endStyle = {_v: get_DEFAULT_STYLE()};
|
|
9393
9393
|
var width = {_v: 0};
|
|
9394
9394
|
var lastPieceWasWhitespace = {_v: true};
|
|
9395
|
-
var _iterator__ex2g4s = $this.
|
|
9395
|
+
var _iterator__ex2g4s = $this.d2o_1.p2c_1.m();
|
|
9396
9396
|
while (_iterator__ex2g4s.n()) {
|
|
9397
9397
|
var oldLine = _iterator__ex2g4s.o();
|
|
9398
9398
|
var lastNonWhitespace_0 = lastNonWhitespace($this, oldLine, align);
|
|
9399
|
-
endStyle._v = oldLine.
|
|
9399
|
+
endStyle._v = oldLine.r2c_1;
|
|
9400
9400
|
var iterator = oldLine.m();
|
|
9401
9401
|
var index = 0;
|
|
9402
9402
|
loop: while (iterator.n()) {
|
|
9403
9403
|
var i = index;
|
|
9404
9404
|
index = index + 1 | 0;
|
|
9405
9405
|
var piece = iterator.o();
|
|
9406
|
-
if (piece.
|
|
9406
|
+
if (piece.s2c_1 === '\x85' || piece.s2c_1 === '\u2028') {
|
|
9407
9407
|
wrap$breakLine($this, align, line, width, wrapWidth, endStyle, lines, lastPieceWasWhitespace);
|
|
9408
9408
|
continue loop;
|
|
9409
9409
|
}
|
|
9410
|
-
if (($this.
|
|
9410
|
+
if (($this.e2o_1.n2g_1 || align.equals(TextAlign_JUSTIFY_getInstance())) && (0 <= lastNonWhitespace_0 ? lastNonWhitespace_0 < i : false)) {
|
|
9411
9411
|
continue loop;
|
|
9412
9412
|
}
|
|
9413
9413
|
if (i === 0 && !lastPieceWasWhitespace._v) {
|
|
9414
|
-
var tmp152_subject = last(line._v).
|
|
9414
|
+
var tmp152_subject = last(line._v).t2c_1;
|
|
9415
9415
|
var tmp;
|
|
9416
9416
|
var tmp153_safe_receiver = firstOrNull(oldLine);
|
|
9417
|
-
if (equals(tmp152_subject, tmp153_safe_receiver == null ? null : tmp153_safe_receiver.
|
|
9418
|
-
tmp = last(line._v).
|
|
9417
|
+
if (equals(tmp152_subject, tmp153_safe_receiver == null ? null : tmp153_safe_receiver.t2c_1)) {
|
|
9418
|
+
tmp = last(line._v).t2c_1;
|
|
9419
9419
|
} else {
|
|
9420
9420
|
tmp = get_DEFAULT_STYLE();
|
|
9421
9421
|
}
|
|
9422
9422
|
var style = tmp;
|
|
9423
|
-
line._v.e(Companion_instance_0.
|
|
9423
|
+
line._v.e(Companion_instance_0.c2d(' ', style));
|
|
9424
9424
|
lastPieceWasWhitespace._v = true;
|
|
9425
9425
|
width._v = width._v + 1 | 0;
|
|
9426
9426
|
}
|
|
9427
|
-
var pieceIsWhitespace = piece.
|
|
9428
|
-
if (pieceIsWhitespace && lastPieceWasWhitespace._v && $this.
|
|
9427
|
+
var pieceIsWhitespace = piece.c2f();
|
|
9428
|
+
if (pieceIsWhitespace && lastPieceWasWhitespace._v && $this.e2o_1.l2g_1)
|
|
9429
9429
|
continue loop;
|
|
9430
9430
|
var tmp_0;
|
|
9431
|
-
if (pieceIsWhitespace && $this.
|
|
9432
|
-
tmp_0 = Companion_instance_0.
|
|
9433
|
-
} else if (piece.
|
|
9431
|
+
if (pieceIsWhitespace && $this.e2o_1.l2g_1) {
|
|
9432
|
+
tmp_0 = Companion_instance_0.x2e(1, piece.t2c_1);
|
|
9433
|
+
} else if (piece.d2f()) {
|
|
9434
9434
|
var tmp_1;
|
|
9435
9435
|
if (tabWidth > 0) {
|
|
9436
|
-
tmp_1 = Companion_instance_0.
|
|
9436
|
+
tmp_1 = Companion_instance_0.x2e(tabWidth - (width._v % tabWidth | 0) | 0, piece.t2c_1);
|
|
9437
9437
|
} else {
|
|
9438
9438
|
continue loop;
|
|
9439
9439
|
}
|
|
@@ -9442,34 +9442,34 @@
|
|
|
9442
9442
|
tmp_0 = piece;
|
|
9443
9443
|
}
|
|
9444
9444
|
var span = tmp_0;
|
|
9445
|
-
var cellWidth = span.
|
|
9446
|
-
if ($this.
|
|
9445
|
+
var cellWidth = span.w2e();
|
|
9446
|
+
if ($this.e2o_1.m2g_1 && width._v > 0 && (width._v + cellWidth | 0) > wrapWidth) {
|
|
9447
9447
|
wrap$breakLine($this, align, line, width, wrapWidth, endStyle, lines, lastPieceWasWhitespace);
|
|
9448
9448
|
if (pieceIsWhitespace)
|
|
9449
9449
|
continue loop;
|
|
9450
9450
|
}
|
|
9451
|
-
if ($this.
|
|
9451
|
+
if ($this.e2o_1.m2g_1 && cellWidth > wrapWidth) {
|
|
9452
9452
|
switch (overflowWrap.p2_1) {
|
|
9453
9453
|
case 0:
|
|
9454
9454
|
break;
|
|
9455
9455
|
case 2:
|
|
9456
|
-
span = Companion_instance_0.
|
|
9456
|
+
span = Companion_instance_0.c2d(take(span.s2c_1, wrapWidth), span.t2c_1);
|
|
9457
9457
|
break;
|
|
9458
9458
|
case 3:
|
|
9459
|
-
span = Companion_instance_0.
|
|
9459
|
+
span = Companion_instance_0.c2d(take(span.s2c_1, wrapWidth - 1 | 0) + '\u2026', span.t2c_1);
|
|
9460
9460
|
break;
|
|
9461
9461
|
case 1:
|
|
9462
9462
|
// Inline function 'kotlin.collections.forEach' call
|
|
9463
9463
|
|
|
9464
|
-
var _iterator__ex2g4s_0 = chunked(span.
|
|
9464
|
+
var _iterator__ex2g4s_0 = chunked(span.s2c_1, wrapWidth).m();
|
|
9465
9465
|
while (_iterator__ex2g4s_0.n()) {
|
|
9466
9466
|
var element = _iterator__ex2g4s_0.o();
|
|
9467
9467
|
if (element.length === wrapWidth) {
|
|
9468
9468
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9469
|
-
var element_0 = Line_init_$Create$(listOf_0(Companion_instance_0.
|
|
9469
|
+
var element_0 = Line_init_$Create$(listOf_0(Companion_instance_0.c2d(element, span.t2c_1)));
|
|
9470
9470
|
lines.e(element_0);
|
|
9471
9471
|
} else {
|
|
9472
|
-
span = Companion_instance_0.
|
|
9472
|
+
span = Companion_instance_0.c2d(element, span.t2c_1);
|
|
9473
9473
|
}
|
|
9474
9474
|
}
|
|
9475
9475
|
|
|
@@ -9479,11 +9479,11 @@
|
|
|
9479
9479
|
break;
|
|
9480
9480
|
}
|
|
9481
9481
|
}
|
|
9482
|
-
width._v = width._v + span.
|
|
9482
|
+
width._v = width._v + span.w2e() | 0;
|
|
9483
9483
|
line._v.e(span);
|
|
9484
9484
|
lastPieceWasWhitespace._v = pieceIsWhitespace;
|
|
9485
9485
|
}
|
|
9486
|
-
if (!$this.
|
|
9486
|
+
if (!$this.e2o_1.k2g_1) {
|
|
9487
9487
|
wrap$breakLine($this, align, line, width, wrapWidth, endStyle, lines, lastPieceWasWhitespace);
|
|
9488
9488
|
}
|
|
9489
9489
|
}
|
|
@@ -9495,13 +9495,13 @@
|
|
|
9495
9495
|
}
|
|
9496
9496
|
function lastNonWhitespace($this, line, align) {
|
|
9497
9497
|
var tmp;
|
|
9498
|
-
if ($this.
|
|
9498
|
+
if ($this.e2o_1.n2g_1 || align.equals(TextAlign_JUSTIFY_getInstance())) {
|
|
9499
9499
|
var tmp$ret$1;
|
|
9500
9500
|
$l$block: {
|
|
9501
9501
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
9502
9502
|
var iterator = line.v(line.p());
|
|
9503
9503
|
while (iterator.o4()) {
|
|
9504
|
-
if (!iterator.q4().
|
|
9504
|
+
if (!iterator.q4().c2f()) {
|
|
9505
9505
|
tmp$ret$1 = iterator.p4();
|
|
9506
9506
|
break $l$block;
|
|
9507
9507
|
}
|
|
@@ -9539,14 +9539,14 @@
|
|
|
9539
9539
|
function alignLineLeft($this, line, extraWidth, endStyle) {
|
|
9540
9540
|
var tmp = Companion_instance_0;
|
|
9541
9541
|
var tmp156_safe_receiver = lastOrNull(line);
|
|
9542
|
-
var tmp0_elvis_lhs = tmp156_safe_receiver == null ? null : tmp156_safe_receiver.
|
|
9543
|
-
line.e(tmp.
|
|
9542
|
+
var tmp0_elvis_lhs = tmp156_safe_receiver == null ? null : tmp156_safe_receiver.t2c_1;
|
|
9543
|
+
line.e(tmp.x2e(extraWidth, tmp0_elvis_lhs == null ? endStyle : tmp0_elvis_lhs));
|
|
9544
9544
|
}
|
|
9545
9545
|
function alignLineRight($this, line, extraWidth, endStyle) {
|
|
9546
9546
|
var tmp = Companion_instance_0;
|
|
9547
9547
|
var tmp157_safe_receiver = firstOrNull(line);
|
|
9548
|
-
var tmp0_elvis_lhs = tmp157_safe_receiver == null ? null : tmp157_safe_receiver.
|
|
9549
|
-
line.i2(0, tmp.
|
|
9548
|
+
var tmp0_elvis_lhs = tmp157_safe_receiver == null ? null : tmp157_safe_receiver.t2c_1;
|
|
9549
|
+
line.i2(0, tmp.x2e(extraWidth, tmp0_elvis_lhs == null ? endStyle : tmp0_elvis_lhs));
|
|
9550
9550
|
}
|
|
9551
9551
|
function alignLineCenter($this, line, extraWidth, endStyle) {
|
|
9552
9552
|
var halfExtra = extraWidth / 2 | 0;
|
|
@@ -9573,7 +9573,7 @@
|
|
|
9573
9573
|
var _iterator__ex2g4s = line.m();
|
|
9574
9574
|
while (_iterator__ex2g4s.n()) {
|
|
9575
9575
|
var element = _iterator__ex2g4s.o();
|
|
9576
|
-
if (element.
|
|
9576
|
+
if (element.c2f()) {
|
|
9577
9577
|
count = count + 1 | 0;
|
|
9578
9578
|
checkCountOverflow(count);
|
|
9579
9579
|
}
|
|
@@ -9593,7 +9593,7 @@
|
|
|
9593
9593
|
var span = _iterator__ex2g4s_0.o();
|
|
9594
9594
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9595
9595
|
justifiedLine.e(span);
|
|
9596
|
-
if (!span.
|
|
9596
|
+
if (!span.c2f())
|
|
9597
9597
|
continue $l$loop_0;
|
|
9598
9598
|
var tmp_0;
|
|
9599
9599
|
var _unary__edvuaz = skipRemainder;
|
|
@@ -9606,13 +9606,13 @@
|
|
|
9606
9606
|
if (tmp_0)
|
|
9607
9607
|
continue $l$loop_0;
|
|
9608
9608
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9609
|
-
var element_0 = Companion_instance_0.
|
|
9609
|
+
var element_0 = Companion_instance_0.x2e(spaceSize + (skipRemainder < 0 ? 1 : 0) | 0, span.t2c_1);
|
|
9610
9610
|
justifiedLine.e(element_0);
|
|
9611
9611
|
}
|
|
9612
9612
|
return justifiedLine;
|
|
9613
9613
|
}
|
|
9614
9614
|
function wrap$breakLine(this$0, $align, line, width, $wrapWidth, endStyle, lines, lastPieceWasWhitespace) {
|
|
9615
|
-
if (this$0.
|
|
9615
|
+
if (this$0.e2o_1.n2g_1 || $align.equals(TextAlign_JUSTIFY_getInstance())) {
|
|
9616
9616
|
var lastNonWhitespace_0 = lastNonWhitespace(this$0, line._v, $align);
|
|
9617
9617
|
if (lastNonWhitespace_0 >= 0) {
|
|
9618
9618
|
// Inline function 'kotlin.repeat' call
|
|
@@ -9632,7 +9632,7 @@
|
|
|
9632
9632
|
}
|
|
9633
9633
|
var tmp = line._v;
|
|
9634
9634
|
var tmp151_safe_receiver = lastOrNull(line._v);
|
|
9635
|
-
var tmp0_elvis_lhs = tmp151_safe_receiver == null ? null : tmp151_safe_receiver.
|
|
9635
|
+
var tmp0_elvis_lhs = tmp151_safe_receiver == null ? null : tmp151_safe_receiver.t2c_1;
|
|
9636
9636
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9637
9637
|
var element = new Line(tmp, tmp0_elvis_lhs == null ? endStyle._v : tmp0_elvis_lhs);
|
|
9638
9638
|
lines.e(element);
|
|
@@ -9642,7 +9642,7 @@
|
|
|
9642
9642
|
lastPieceWasWhitespace._v = true;
|
|
9643
9643
|
}
|
|
9644
9644
|
function Text$toString$lambda(it) {
|
|
9645
|
-
return it.
|
|
9645
|
+
return it.s2c_1;
|
|
9646
9646
|
}
|
|
9647
9647
|
function Text(lines, whitespace, align, overflowWrap, width, tabWidth) {
|
|
9648
9648
|
whitespace = whitespace === VOID ? Whitespace_PRE_getInstance() : whitespace;
|
|
@@ -9650,29 +9650,29 @@
|
|
|
9650
9650
|
overflowWrap = overflowWrap === VOID ? OverflowWrap_NORMAL_getInstance() : overflowWrap;
|
|
9651
9651
|
width = width === VOID ? null : width;
|
|
9652
9652
|
tabWidth = tabWidth === VOID ? null : tabWidth;
|
|
9653
|
-
this.
|
|
9654
|
-
this.
|
|
9655
|
-
this.
|
|
9656
|
-
this.
|
|
9657
|
-
this.
|
|
9658
|
-
this.
|
|
9653
|
+
this.d2o_1 = lines;
|
|
9654
|
+
this.e2o_1 = whitespace;
|
|
9655
|
+
this.f2o_1 = align;
|
|
9656
|
+
this.g2o_1 = overflowWrap;
|
|
9657
|
+
this.h2o_1 = width;
|
|
9658
|
+
this.i2o_1 = tabWidth;
|
|
9659
9659
|
// Inline function 'kotlin.require' call
|
|
9660
|
-
if (!(this.
|
|
9660
|
+
if (!(this.h2o_1 == null || this.h2o_1 >= 0)) {
|
|
9661
9661
|
var message = 'width cannot be negative';
|
|
9662
9662
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
9663
9663
|
}
|
|
9664
9664
|
// Inline function 'kotlin.require' call
|
|
9665
|
-
if (!(this.
|
|
9665
|
+
if (!(this.i2o_1 == null || this.i2o_1 >= 0)) {
|
|
9666
9666
|
var message_0 = 'tab width cannot be negative';
|
|
9667
9667
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
9668
9668
|
}
|
|
9669
9669
|
}
|
|
9670
|
-
protoOf(Text).
|
|
9671
|
-
var tmp0_elvis_lhs = this.
|
|
9670
|
+
protoOf(Text).o2g = function (t, width) {
|
|
9671
|
+
var tmp0_elvis_lhs = this.h2o_1;
|
|
9672
9672
|
var tmp = tmp0_elvis_lhs == null ? width : tmp0_elvis_lhs;
|
|
9673
|
-
var tmp1_elvis_lhs = this.
|
|
9674
|
-
var lines = wrap(this, tmp, tmp1_elvis_lhs == null ? t.
|
|
9675
|
-
var tmp0 = lines.
|
|
9673
|
+
var tmp1_elvis_lhs = this.i2o_1;
|
|
9674
|
+
var lines = wrap(this, tmp, tmp1_elvis_lhs == null ? t.s2g_1 : tmp1_elvis_lhs, TextAlign_NONE_getInstance(), OverflowWrap_NORMAL_getInstance());
|
|
9675
|
+
var tmp0 = lines.p2c_1;
|
|
9676
9676
|
var tmp$ret$0;
|
|
9677
9677
|
$l$block: {
|
|
9678
9678
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -9687,7 +9687,7 @@
|
|
|
9687
9687
|
while (_iterator__ex2g4s.n()) {
|
|
9688
9688
|
var element = _iterator__ex2g4s.o();
|
|
9689
9689
|
var tmp_0 = sum;
|
|
9690
|
-
sum = tmp_0 + element.
|
|
9690
|
+
sum = tmp_0 + element.w2e() | 0;
|
|
9691
9691
|
}
|
|
9692
9692
|
var maxValue = sum;
|
|
9693
9693
|
while (iterator.n()) {
|
|
@@ -9697,7 +9697,7 @@
|
|
|
9697
9697
|
while (_iterator__ex2g4s_0.n()) {
|
|
9698
9698
|
var element_0 = _iterator__ex2g4s_0.o();
|
|
9699
9699
|
var tmp_1 = sum_0;
|
|
9700
|
-
sum_0 = tmp_1 + element_0.
|
|
9700
|
+
sum_0 = tmp_1 + element_0.w2e() | 0;
|
|
9701
9701
|
}
|
|
9702
9702
|
var v = sum_0;
|
|
9703
9703
|
if (compareTo(maxValue, v) < 0) {
|
|
@@ -9709,8 +9709,8 @@
|
|
|
9709
9709
|
var tmp2_elvis_lhs = tmp$ret$0;
|
|
9710
9710
|
var max = tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs;
|
|
9711
9711
|
var tmp_2;
|
|
9712
|
-
if (this.
|
|
9713
|
-
var tmp0_0 = lines.
|
|
9712
|
+
if (this.e2o_1.m2g_1) {
|
|
9713
|
+
var tmp0_0 = lines.p2c_1;
|
|
9714
9714
|
var tmp$ret$7;
|
|
9715
9715
|
$l$block_0: {
|
|
9716
9716
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -9728,9 +9728,9 @@
|
|
|
9728
9728
|
tmp$ret$8 = null;
|
|
9729
9729
|
break $l$block_1;
|
|
9730
9730
|
}
|
|
9731
|
-
var maxValue_0 = iterator_1.o().
|
|
9731
|
+
var maxValue_0 = iterator_1.o().w2e();
|
|
9732
9732
|
while (iterator_1.n()) {
|
|
9733
|
-
var v_0 = iterator_1.o().
|
|
9733
|
+
var v_0 = iterator_1.o().w2e();
|
|
9734
9734
|
if (compareTo(maxValue_0, v_0) < 0) {
|
|
9735
9735
|
maxValue_0 = v_0;
|
|
9736
9736
|
}
|
|
@@ -9749,9 +9749,9 @@
|
|
|
9749
9749
|
tmp$ret$12 = null;
|
|
9750
9750
|
break $l$block_2;
|
|
9751
9751
|
}
|
|
9752
|
-
var maxValue_2 = iterator_2.o().
|
|
9752
|
+
var maxValue_2 = iterator_2.o().w2e();
|
|
9753
9753
|
while (iterator_2.n()) {
|
|
9754
|
-
var v_1 = iterator_2.o().
|
|
9754
|
+
var v_1 = iterator_2.o().w2e();
|
|
9755
9755
|
if (compareTo(maxValue_2, v_1) < 0) {
|
|
9756
9756
|
maxValue_2 = v_1;
|
|
9757
9757
|
}
|
|
@@ -9774,14 +9774,14 @@
|
|
|
9774
9774
|
var min = tmp_2;
|
|
9775
9775
|
return new WidthRange(min, max);
|
|
9776
9776
|
};
|
|
9777
|
-
protoOf(Text).
|
|
9778
|
-
var tmp0_elvis_lhs = this.
|
|
9777
|
+
protoOf(Text).p2g = function (t, width) {
|
|
9778
|
+
var tmp0_elvis_lhs = this.h2o_1;
|
|
9779
9779
|
var tmp = tmp0_elvis_lhs == null ? width : tmp0_elvis_lhs;
|
|
9780
|
-
var tmp1_elvis_lhs = this.
|
|
9781
|
-
return wrap(this, tmp, tmp1_elvis_lhs == null ? t.
|
|
9780
|
+
var tmp1_elvis_lhs = this.i2o_1;
|
|
9781
|
+
return wrap(this, tmp, tmp1_elvis_lhs == null ? t.s2g_1 : tmp1_elvis_lhs, this.f2o_1, this.g2o_1);
|
|
9782
9782
|
};
|
|
9783
9783
|
protoOf(Text).toString = function () {
|
|
9784
|
-
var tmp = flatten(this.
|
|
9784
|
+
var tmp = flatten(this.d2o_1.p2c_1);
|
|
9785
9785
|
var plain = joinToString(tmp, '', VOID, VOID, VOID, VOID, Text$toString$lambda);
|
|
9786
9786
|
return 'Text(' + take(plain, 25) + (plain.length > 25 ? '\u2026' : '') + ')';
|
|
9787
9787
|
};
|
|
@@ -9793,21 +9793,21 @@
|
|
|
9793
9793
|
return tmp0_elvis_lhs == null ? TerminalInterfaceBrowser_getInstance() : tmp0_elvis_lhs;
|
|
9794
9794
|
}
|
|
9795
9795
|
function JsAtomicInt(initial) {
|
|
9796
|
-
this.
|
|
9796
|
+
this.j2o_1 = initial;
|
|
9797
9797
|
}
|
|
9798
|
-
protoOf(JsAtomicInt).
|
|
9799
|
-
var _unary__edvuaz = this.
|
|
9800
|
-
this.
|
|
9798
|
+
protoOf(JsAtomicInt).x2c = function () {
|
|
9799
|
+
var _unary__edvuaz = this.j2o_1;
|
|
9800
|
+
this.j2o_1 = _unary__edvuaz + 1 | 0;
|
|
9801
9801
|
return _unary__edvuaz;
|
|
9802
9802
|
};
|
|
9803
9803
|
function printStderr(message, newline) {
|
|
9804
|
-
get_impls().
|
|
9804
|
+
get_impls().k2o(message, newline);
|
|
9805
9805
|
}
|
|
9806
9806
|
function MppAtomicRef(value) {
|
|
9807
9807
|
return new JsAtomicRef(value);
|
|
9808
9808
|
}
|
|
9809
9809
|
function makePrintingTerminalCursor(terminal) {
|
|
9810
|
-
return get_impls().
|
|
9810
|
+
return get_impls().l2o(terminal);
|
|
9811
9811
|
}
|
|
9812
9812
|
function sendInterceptedPrintRequest(request, terminalInterface, interceptors) {
|
|
9813
9813
|
// Inline function 'kotlin.collections.fold' call
|
|
@@ -9816,13 +9816,13 @@
|
|
|
9816
9816
|
while (_iterator__ex2g4s.n()) {
|
|
9817
9817
|
var element = _iterator__ex2g4s.o();
|
|
9818
9818
|
var acc = accumulator;
|
|
9819
|
-
accumulator = element.
|
|
9819
|
+
accumulator = element.m2o(acc);
|
|
9820
9820
|
}
|
|
9821
9821
|
var tmp$ret$1 = accumulator;
|
|
9822
|
-
terminalInterface.
|
|
9822
|
+
terminalInterface.p2m(tmp$ret$1);
|
|
9823
9823
|
}
|
|
9824
9824
|
function getEnv(key) {
|
|
9825
|
-
return get_impls().
|
|
9825
|
+
return get_impls().n2o(key);
|
|
9826
9826
|
}
|
|
9827
9827
|
function runningInIdeaJavaAgent() {
|
|
9828
9828
|
return false;
|
|
@@ -9832,22 +9832,22 @@
|
|
|
9832
9832
|
return tmp instanceof TerminalInterfaceJsCommon ? tmp : THROW_CCE();
|
|
9833
9833
|
}
|
|
9834
9834
|
function JsAtomicRef(value) {
|
|
9835
|
-
this.
|
|
9835
|
+
this.o2o_1 = value;
|
|
9836
9836
|
}
|
|
9837
9837
|
protoOf(JsAtomicRef).z = function () {
|
|
9838
|
-
return this.
|
|
9838
|
+
return this.o2o_1;
|
|
9839
9839
|
};
|
|
9840
|
-
protoOf(JsAtomicRef).
|
|
9841
|
-
if (!equals(this.
|
|
9840
|
+
protoOf(JsAtomicRef).c2n = function (expected, newValue) {
|
|
9841
|
+
if (!equals(this.o2o_1, expected))
|
|
9842
9842
|
return false;
|
|
9843
|
-
this.
|
|
9843
|
+
this.o2o_1 = newValue;
|
|
9844
9844
|
return true;
|
|
9845
9845
|
};
|
|
9846
9846
|
function exitProcessMpp(status) {
|
|
9847
|
-
return get_impls().
|
|
9847
|
+
return get_impls().j2d(status);
|
|
9848
9848
|
}
|
|
9849
9849
|
function readFileIfExists(filename) {
|
|
9850
|
-
return get_impls().
|
|
9850
|
+
return get_impls().p2o(filename);
|
|
9851
9851
|
}
|
|
9852
9852
|
function TerminalInterfaceJsCommon() {
|
|
9853
9853
|
StandardTerminalInterface.call(this);
|
|
@@ -9856,27 +9856,27 @@
|
|
|
9856
9856
|
TerminalInterfaceBrowser_instance = this;
|
|
9857
9857
|
TerminalInterfaceJsCommon.call(this);
|
|
9858
9858
|
}
|
|
9859
|
-
protoOf(TerminalInterfaceBrowser).
|
|
9859
|
+
protoOf(TerminalInterfaceBrowser).n2o = function (key) {
|
|
9860
9860
|
return null;
|
|
9861
9861
|
};
|
|
9862
|
-
protoOf(TerminalInterfaceBrowser).
|
|
9862
|
+
protoOf(TerminalInterfaceBrowser).n2m = function () {
|
|
9863
9863
|
return false;
|
|
9864
9864
|
};
|
|
9865
|
-
protoOf(TerminalInterfaceBrowser).
|
|
9865
|
+
protoOf(TerminalInterfaceBrowser).m2m = function () {
|
|
9866
9866
|
return false;
|
|
9867
9867
|
};
|
|
9868
|
-
protoOf(TerminalInterfaceBrowser).
|
|
9868
|
+
protoOf(TerminalInterfaceBrowser).t2m = function () {
|
|
9869
9869
|
return null;
|
|
9870
9870
|
};
|
|
9871
|
-
protoOf(TerminalInterfaceBrowser).
|
|
9871
|
+
protoOf(TerminalInterfaceBrowser).k2o = function (message, newline) {
|
|
9872
9872
|
return browserPrintln(message);
|
|
9873
9873
|
};
|
|
9874
|
-
protoOf(TerminalInterfaceBrowser).
|
|
9874
|
+
protoOf(TerminalInterfaceBrowser).j2d = function (status) {
|
|
9875
9875
|
};
|
|
9876
|
-
protoOf(TerminalInterfaceBrowser).
|
|
9876
|
+
protoOf(TerminalInterfaceBrowser).l2o = function (terminal) {
|
|
9877
9877
|
return new BrowserTerminalCursor(terminal);
|
|
9878
9878
|
};
|
|
9879
|
-
protoOf(TerminalInterfaceBrowser).
|
|
9879
|
+
protoOf(TerminalInterfaceBrowser).p2o = function (filename) {
|
|
9880
9880
|
return null;
|
|
9881
9881
|
};
|
|
9882
9882
|
var TerminalInterfaceBrowser_instance;
|
|
@@ -9969,24 +9969,24 @@
|
|
|
9969
9969
|
}
|
|
9970
9970
|
function TerminalInterfaceJsNode(fs) {
|
|
9971
9971
|
TerminalInterfaceNode.call(this);
|
|
9972
|
-
this.
|
|
9972
|
+
this.q2o_1 = fs;
|
|
9973
9973
|
}
|
|
9974
|
-
protoOf(TerminalInterfaceJsNode).
|
|
9974
|
+
protoOf(TerminalInterfaceJsNode).n2o = function (key) {
|
|
9975
9975
|
var tmp = process.env[key];
|
|
9976
9976
|
return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
|
|
9977
9977
|
};
|
|
9978
|
-
protoOf(TerminalInterfaceJsNode).
|
|
9978
|
+
protoOf(TerminalInterfaceJsNode).n2m = function () {
|
|
9979
9979
|
var tmp = Boolean(process.stdout.isTTY);
|
|
9980
9980
|
return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
|
|
9981
9981
|
};
|
|
9982
|
-
protoOf(TerminalInterfaceJsNode).
|
|
9982
|
+
protoOf(TerminalInterfaceJsNode).m2m = function () {
|
|
9983
9983
|
var tmp = Boolean(process.stdin.isTTY);
|
|
9984
9984
|
return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
|
|
9985
9985
|
};
|
|
9986
|
-
protoOf(TerminalInterfaceJsNode).
|
|
9986
|
+
protoOf(TerminalInterfaceJsNode).j2d = function (status) {
|
|
9987
9987
|
process.exit(status);
|
|
9988
9988
|
};
|
|
9989
|
-
protoOf(TerminalInterfaceJsNode).
|
|
9989
|
+
protoOf(TerminalInterfaceJsNode).t2m = function () {
|
|
9990
9990
|
if (process.stdout.getWindowSize == undefined)
|
|
9991
9991
|
return null;
|
|
9992
9992
|
var s = process.stdout.getWindowSize();
|
|
@@ -9995,34 +9995,34 @@
|
|
|
9995
9995
|
var tmp_1 = s[1];
|
|
9996
9996
|
return new Size(tmp_0, (!(tmp_1 == null) ? typeof tmp_1 === 'number' : false) ? tmp_1 : THROW_CCE());
|
|
9997
9997
|
};
|
|
9998
|
-
protoOf(TerminalInterfaceJsNode).
|
|
9998
|
+
protoOf(TerminalInterfaceJsNode).k2o = function (message, newline) {
|
|
9999
9999
|
process.stderr.write(newline ? message + '\n' : message);
|
|
10000
10000
|
};
|
|
10001
|
-
protoOf(TerminalInterfaceJsNode).
|
|
10001
|
+
protoOf(TerminalInterfaceJsNode).l2o = function (terminal) {
|
|
10002
10002
|
return new NodeTerminalCursor(terminal);
|
|
10003
10003
|
};
|
|
10004
|
-
protoOf(TerminalInterfaceJsNode).
|
|
10005
|
-
var tmp = this.
|
|
10004
|
+
protoOf(TerminalInterfaceJsNode).p2o = function (filename) {
|
|
10005
|
+
var tmp = this.q2o_1.readFileSync(filename, 'utf-8');
|
|
10006
10006
|
return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
|
|
10007
10007
|
};
|
|
10008
10008
|
function NodeTerminalCursor(terminal) {
|
|
10009
10009
|
PrintTerminalCursor.call(this, terminal);
|
|
10010
|
-
this.
|
|
10010
|
+
this.s2o_1 = null;
|
|
10011
10011
|
}
|
|
10012
10012
|
//region block: post-declaration
|
|
10013
|
-
protoOf(TxtStyle).
|
|
10014
|
-
protoOf(TxtStyle).
|
|
10015
|
-
protoOf(Table).
|
|
10016
|
-
protoOf(VerticalLayoutBuilderInstance).
|
|
10017
|
-
protoOf(VerticalLayoutBuilderInstance).
|
|
10018
|
-
protoOf(CellStyleBuilderMixin).
|
|
10019
|
-
protoOf(VerticalLayout).
|
|
10020
|
-
protoOf(StandardTerminalInterface).
|
|
10021
|
-
protoOf(StandardTerminalInterface).
|
|
10022
|
-
protoOf(DefinitionList).
|
|
10023
|
-
protoOf(EmptyWidget).
|
|
10024
|
-
protoOf(Padded).
|
|
10025
|
-
protoOf(Text).
|
|
10013
|
+
protoOf(TxtStyle).g29 = invoke;
|
|
10014
|
+
protoOf(TxtStyle).v2c = plus_1;
|
|
10015
|
+
protoOf(Table).q2g = render$default;
|
|
10016
|
+
protoOf(VerticalLayoutBuilderInstance).v2j = cellsFrom$default;
|
|
10017
|
+
protoOf(VerticalLayoutBuilderInstance).x2j = cell$default;
|
|
10018
|
+
protoOf(CellStyleBuilderMixin).e2k = padding;
|
|
10019
|
+
protoOf(VerticalLayout).q2g = render$default;
|
|
10020
|
+
protoOf(StandardTerminalInterface).t2m = getTerminalSize;
|
|
10021
|
+
protoOf(StandardTerminalInterface).u2m = shouldAutoUpdateSize;
|
|
10022
|
+
protoOf(DefinitionList).q2g = render$default;
|
|
10023
|
+
protoOf(EmptyWidget).q2g = render$default;
|
|
10024
|
+
protoOf(Padded).q2g = render$default;
|
|
10025
|
+
protoOf(Text).q2g = render$default;
|
|
10026
10026
|
//endregion
|
|
10027
10027
|
//region block: init
|
|
10028
10028
|
MultiplatformSystem_instance = new MultiplatformSystem();
|