markdown-komponents 0.1.0
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/index.html +28 -0
- package/kotlin-kotlin-stdlib.mjs +4320 -0
- package/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -0
- package/markdown-komponents.mjs +4570 -0
- package/markdown-komponents.mjs.map +1 -0
- package/package.json +25 -0
|
@@ -0,0 +1,4320 @@
|
|
|
1
|
+
//region block: polyfills
|
|
2
|
+
if (typeof Math.imul === 'undefined') {
|
|
3
|
+
Math.imul = function imul(a, b) {
|
|
4
|
+
return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
if (typeof ArrayBuffer.isView === 'undefined') {
|
|
8
|
+
ArrayBuffer.isView = function (a) {
|
|
9
|
+
return a != null && a.__proto__ != null && a.__proto__.__proto__ === Int8Array.prototype.__proto__;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
if (typeof Array.prototype.fill === 'undefined') {
|
|
13
|
+
// Polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill#Polyfill
|
|
14
|
+
Object.defineProperty(Array.prototype, 'fill', {value: function (value) {
|
|
15
|
+
// Steps 1-2.
|
|
16
|
+
if (this == null) {
|
|
17
|
+
throw new TypeError('this is null or not defined');
|
|
18
|
+
}
|
|
19
|
+
var O = Object(this); // Steps 3-5.
|
|
20
|
+
var len = O.length >>> 0; // Steps 6-7.
|
|
21
|
+
var start = arguments[1];
|
|
22
|
+
var relativeStart = start >> 0; // Step 8.
|
|
23
|
+
var k = relativeStart < 0 ? Math.max(len + relativeStart, 0) : Math.min(relativeStart, len); // Steps 9-10.
|
|
24
|
+
var end = arguments[2];
|
|
25
|
+
var relativeEnd = end === undefined ? len : end >> 0; // Step 11.
|
|
26
|
+
var finalValue = relativeEnd < 0 ? Math.max(len + relativeEnd, 0) : Math.min(relativeEnd, len); // Step 12.
|
|
27
|
+
while (k < finalValue) {
|
|
28
|
+
O[k] = value;
|
|
29
|
+
k++;
|
|
30
|
+
}
|
|
31
|
+
; // Step 13.
|
|
32
|
+
return O;
|
|
33
|
+
}});
|
|
34
|
+
}
|
|
35
|
+
[Int8Array, Int16Array, Uint16Array, Int32Array, Float32Array, Float64Array].forEach(function (TypedArray) {
|
|
36
|
+
if (typeof TypedArray.prototype.fill === 'undefined') {
|
|
37
|
+
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
if (typeof Math.clz32 === 'undefined') {
|
|
41
|
+
Math.clz32 = function (log, LN2) {
|
|
42
|
+
return function (x) {
|
|
43
|
+
var asUint = x >>> 0;
|
|
44
|
+
if (asUint === 0) {
|
|
45
|
+
return 32;
|
|
46
|
+
}
|
|
47
|
+
return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
|
|
48
|
+
};
|
|
49
|
+
}(Math.log, Math.LN2);
|
|
50
|
+
}
|
|
51
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
52
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
53
|
+
position = position || 0;
|
|
54
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
55
|
+
}});
|
|
56
|
+
}
|
|
57
|
+
//endregion
|
|
58
|
+
//region block: imports
|
|
59
|
+
var imul_0 = Math.imul;
|
|
60
|
+
var isView = ArrayBuffer.isView;
|
|
61
|
+
var clz32 = Math.clz32;
|
|
62
|
+
//endregion
|
|
63
|
+
//region block: pre-declaration
|
|
64
|
+
class CharSequence {}
|
|
65
|
+
class Number_0 {}
|
|
66
|
+
class asIterable$$inlined$Iterable$1 {
|
|
67
|
+
constructor($this_asIterable) {
|
|
68
|
+
this.h1_1 = $this_asIterable;
|
|
69
|
+
}
|
|
70
|
+
p() {
|
|
71
|
+
return this.h1_1.p();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
class Char {}
|
|
75
|
+
class Collection {}
|
|
76
|
+
class KtList {}
|
|
77
|
+
class KtSet {}
|
|
78
|
+
class Entry {}
|
|
79
|
+
class KtMap {}
|
|
80
|
+
class Companion {
|
|
81
|
+
constructor() {
|
|
82
|
+
Companion_instance = this;
|
|
83
|
+
this.s1_1 = new Long(0, -2147483648);
|
|
84
|
+
this.t1_1 = new Long(-1, 2147483647);
|
|
85
|
+
this.u1_1 = 8;
|
|
86
|
+
this.v1_1 = 64;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
class Long extends Number_0 {
|
|
90
|
+
constructor(low, high) {
|
|
91
|
+
Companion_getInstance();
|
|
92
|
+
super();
|
|
93
|
+
this.w1_1 = low;
|
|
94
|
+
this.x1_1 = high;
|
|
95
|
+
}
|
|
96
|
+
y1(other) {
|
|
97
|
+
return compare(this, other);
|
|
98
|
+
}
|
|
99
|
+
z1(other) {
|
|
100
|
+
return this.y1(other instanceof Long ? other : THROW_CCE());
|
|
101
|
+
}
|
|
102
|
+
toString() {
|
|
103
|
+
return toStringImpl(this, 10);
|
|
104
|
+
}
|
|
105
|
+
equals(other) {
|
|
106
|
+
var tmp;
|
|
107
|
+
if (other instanceof Long) {
|
|
108
|
+
tmp = equalsLong(this, other);
|
|
109
|
+
} else {
|
|
110
|
+
tmp = false;
|
|
111
|
+
}
|
|
112
|
+
return tmp;
|
|
113
|
+
}
|
|
114
|
+
hashCode() {
|
|
115
|
+
return hashCode(this);
|
|
116
|
+
}
|
|
117
|
+
valueOf() {
|
|
118
|
+
return toNumber(this);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
class FunctionAdapter {}
|
|
122
|
+
class Comparator {}
|
|
123
|
+
class AbstractCollection {
|
|
124
|
+
static y2($box) {
|
|
125
|
+
return createThis(this, $box);
|
|
126
|
+
}
|
|
127
|
+
l1(element) {
|
|
128
|
+
var tmp$ret$0;
|
|
129
|
+
$l$block_0: {
|
|
130
|
+
// Inline function 'kotlin.collections.any' call
|
|
131
|
+
var tmp;
|
|
132
|
+
if (isInterface(this, Collection)) {
|
|
133
|
+
tmp = this.e1();
|
|
134
|
+
} else {
|
|
135
|
+
tmp = false;
|
|
136
|
+
}
|
|
137
|
+
if (tmp) {
|
|
138
|
+
tmp$ret$0 = false;
|
|
139
|
+
break $l$block_0;
|
|
140
|
+
}
|
|
141
|
+
var _iterator__ex2g4s = this.p();
|
|
142
|
+
while (_iterator__ex2g4s.q()) {
|
|
143
|
+
var element_0 = _iterator__ex2g4s.r();
|
|
144
|
+
if (equals(element_0, element)) {
|
|
145
|
+
tmp$ret$0 = true;
|
|
146
|
+
break $l$block_0;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
tmp$ret$0 = false;
|
|
150
|
+
}
|
|
151
|
+
return tmp$ret$0;
|
|
152
|
+
}
|
|
153
|
+
o1(elements) {
|
|
154
|
+
var tmp$ret$0;
|
|
155
|
+
$l$block_0: {
|
|
156
|
+
// Inline function 'kotlin.collections.all' call
|
|
157
|
+
var tmp;
|
|
158
|
+
if (isInterface(elements, Collection)) {
|
|
159
|
+
tmp = elements.e1();
|
|
160
|
+
} else {
|
|
161
|
+
tmp = false;
|
|
162
|
+
}
|
|
163
|
+
if (tmp) {
|
|
164
|
+
tmp$ret$0 = true;
|
|
165
|
+
break $l$block_0;
|
|
166
|
+
}
|
|
167
|
+
var _iterator__ex2g4s = elements.p();
|
|
168
|
+
while (_iterator__ex2g4s.q()) {
|
|
169
|
+
var element = _iterator__ex2g4s.r();
|
|
170
|
+
if (!this.l1(element)) {
|
|
171
|
+
tmp$ret$0 = false;
|
|
172
|
+
break $l$block_0;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
tmp$ret$0 = true;
|
|
176
|
+
}
|
|
177
|
+
return tmp$ret$0;
|
|
178
|
+
}
|
|
179
|
+
e1() {
|
|
180
|
+
return this.t() === 0;
|
|
181
|
+
}
|
|
182
|
+
toString() {
|
|
183
|
+
return joinToString_0(this, ', ', '[', ']', VOID, VOID, AbstractCollection$toString$lambda(this));
|
|
184
|
+
}
|
|
185
|
+
toArray() {
|
|
186
|
+
return collectionToArray(this);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
class AbstractList extends AbstractCollection {
|
|
190
|
+
static s2($box) {
|
|
191
|
+
return this.y2($box);
|
|
192
|
+
}
|
|
193
|
+
p() {
|
|
194
|
+
return new IteratorImpl_0(this);
|
|
195
|
+
}
|
|
196
|
+
m1(element) {
|
|
197
|
+
var tmp$ret$0;
|
|
198
|
+
$l$block: {
|
|
199
|
+
// Inline function 'kotlin.collections.indexOfFirst' call
|
|
200
|
+
var index = 0;
|
|
201
|
+
var _iterator__ex2g4s = this.p();
|
|
202
|
+
while (_iterator__ex2g4s.q()) {
|
|
203
|
+
var item = _iterator__ex2g4s.r();
|
|
204
|
+
if (equals(item, element)) {
|
|
205
|
+
tmp$ret$0 = index;
|
|
206
|
+
break $l$block;
|
|
207
|
+
}
|
|
208
|
+
index = index + 1 | 0;
|
|
209
|
+
}
|
|
210
|
+
tmp$ret$0 = -1;
|
|
211
|
+
}
|
|
212
|
+
return tmp$ret$0;
|
|
213
|
+
}
|
|
214
|
+
z(index) {
|
|
215
|
+
return new ListIteratorImpl_0(this, index);
|
|
216
|
+
}
|
|
217
|
+
n1(fromIndex, toIndex) {
|
|
218
|
+
return SubList_0.e8(this, fromIndex, toIndex);
|
|
219
|
+
}
|
|
220
|
+
equals(other) {
|
|
221
|
+
if (other === this)
|
|
222
|
+
return true;
|
|
223
|
+
if (!(!(other == null) ? isInterface(other, KtList) : false))
|
|
224
|
+
return false;
|
|
225
|
+
return Companion_instance_3.u3(this, other);
|
|
226
|
+
}
|
|
227
|
+
hashCode() {
|
|
228
|
+
return Companion_instance_3.v3(this);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
class asList$1 extends AbstractList {
|
|
232
|
+
constructor($this_asList) {
|
|
233
|
+
return new.target.r2($this_asList);
|
|
234
|
+
}
|
|
235
|
+
static r2($this_asList, $box) {
|
|
236
|
+
if ($box === VOID)
|
|
237
|
+
$box = {};
|
|
238
|
+
$box.q2_1 = $this_asList;
|
|
239
|
+
return this.s2($box);
|
|
240
|
+
}
|
|
241
|
+
t() {
|
|
242
|
+
return this.q2_1.length;
|
|
243
|
+
}
|
|
244
|
+
s(index) {
|
|
245
|
+
var tmp;
|
|
246
|
+
if (0 <= index ? index <= get_lastIndex(this) : false) {
|
|
247
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
248
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
249
|
+
tmp = this.q2_1.item(index);
|
|
250
|
+
} else {
|
|
251
|
+
throw IndexOutOfBoundsException.w2('index ' + index + ' is not in range [0..' + get_lastIndex(this) + ']');
|
|
252
|
+
}
|
|
253
|
+
return tmp;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
class Unit {
|
|
257
|
+
toString() {
|
|
258
|
+
return 'kotlin.Unit';
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
class AbstractMutableCollection extends AbstractCollection {
|
|
262
|
+
static x2() {
|
|
263
|
+
return this.y2();
|
|
264
|
+
}
|
|
265
|
+
toJSON() {
|
|
266
|
+
return this.toArray();
|
|
267
|
+
}
|
|
268
|
+
z2() {
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
class IteratorImpl {
|
|
272
|
+
constructor($outer, $box) {
|
|
273
|
+
boxApply(this, $box);
|
|
274
|
+
this.c3_1 = $outer;
|
|
275
|
+
this.a3_1 = 0;
|
|
276
|
+
this.b3_1 = -1;
|
|
277
|
+
}
|
|
278
|
+
q() {
|
|
279
|
+
return this.a3_1 < this.c3_1.t();
|
|
280
|
+
}
|
|
281
|
+
r() {
|
|
282
|
+
if (!this.q())
|
|
283
|
+
throw NoSuchElementException.d3();
|
|
284
|
+
var tmp = this;
|
|
285
|
+
var _unary__edvuaz = this.a3_1;
|
|
286
|
+
this.a3_1 = _unary__edvuaz + 1 | 0;
|
|
287
|
+
tmp.b3_1 = _unary__edvuaz;
|
|
288
|
+
return this.c3_1.s(this.b3_1);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
class ListIteratorImpl extends IteratorImpl {
|
|
292
|
+
constructor($outer, index, $box) {
|
|
293
|
+
if ($box === VOID)
|
|
294
|
+
$box = {};
|
|
295
|
+
$box.h3_1 = $outer;
|
|
296
|
+
super($outer, $box);
|
|
297
|
+
Companion_instance_3.j3(index, this.h3_1.t());
|
|
298
|
+
this.a3_1 = index;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
class AbstractMutableList extends AbstractMutableCollection {
|
|
302
|
+
static q3() {
|
|
303
|
+
var $this = this.x2();
|
|
304
|
+
$this.p3_1 = 0;
|
|
305
|
+
return $this;
|
|
306
|
+
}
|
|
307
|
+
l(element) {
|
|
308
|
+
this.z2();
|
|
309
|
+
this.s3(this.t(), element);
|
|
310
|
+
return true;
|
|
311
|
+
}
|
|
312
|
+
p() {
|
|
313
|
+
return new IteratorImpl(this);
|
|
314
|
+
}
|
|
315
|
+
l1(element) {
|
|
316
|
+
return this.m1(element) >= 0;
|
|
317
|
+
}
|
|
318
|
+
m1(element) {
|
|
319
|
+
var tmp$ret$0;
|
|
320
|
+
$l$block: {
|
|
321
|
+
// Inline function 'kotlin.collections.indexOfFirst' call
|
|
322
|
+
var index = 0;
|
|
323
|
+
var _iterator__ex2g4s = this.p();
|
|
324
|
+
while (_iterator__ex2g4s.q()) {
|
|
325
|
+
var item = _iterator__ex2g4s.r();
|
|
326
|
+
if (equals(item, element)) {
|
|
327
|
+
tmp$ret$0 = index;
|
|
328
|
+
break $l$block;
|
|
329
|
+
}
|
|
330
|
+
index = index + 1 | 0;
|
|
331
|
+
}
|
|
332
|
+
tmp$ret$0 = -1;
|
|
333
|
+
}
|
|
334
|
+
return tmp$ret$0;
|
|
335
|
+
}
|
|
336
|
+
z(index) {
|
|
337
|
+
return new ListIteratorImpl(this, index);
|
|
338
|
+
}
|
|
339
|
+
n1(fromIndex, toIndex) {
|
|
340
|
+
return SubList.o3(this, fromIndex, toIndex);
|
|
341
|
+
}
|
|
342
|
+
equals(other) {
|
|
343
|
+
if (other === this)
|
|
344
|
+
return true;
|
|
345
|
+
if (!(!(other == null) ? isInterface(other, KtList) : false))
|
|
346
|
+
return false;
|
|
347
|
+
return Companion_instance_3.u3(this, other);
|
|
348
|
+
}
|
|
349
|
+
hashCode() {
|
|
350
|
+
return Companion_instance_3.v3(this);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
class RandomAccess {}
|
|
354
|
+
class SubList extends AbstractMutableList {
|
|
355
|
+
constructor(list, fromIndex, toIndex) {
|
|
356
|
+
return new.target.o3(list, fromIndex, toIndex);
|
|
357
|
+
}
|
|
358
|
+
static o3(list, fromIndex, toIndex) {
|
|
359
|
+
var $this = this.q3();
|
|
360
|
+
$this.l3_1 = list;
|
|
361
|
+
$this.m3_1 = fromIndex;
|
|
362
|
+
$this.n3_1 = 0;
|
|
363
|
+
Companion_instance_3.r3($this.m3_1, toIndex, $this.l3_1.t());
|
|
364
|
+
$this.n3_1 = toIndex - $this.m3_1 | 0;
|
|
365
|
+
return $this;
|
|
366
|
+
}
|
|
367
|
+
s3(index, element) {
|
|
368
|
+
Companion_instance_3.j3(index, this.n3_1);
|
|
369
|
+
this.l3_1.s3(this.m3_1 + index | 0, element);
|
|
370
|
+
this.n3_1 = this.n3_1 + 1 | 0;
|
|
371
|
+
}
|
|
372
|
+
s(index) {
|
|
373
|
+
Companion_instance_3.t3(index, this.n3_1);
|
|
374
|
+
return this.l3_1.s(this.m3_1 + index | 0);
|
|
375
|
+
}
|
|
376
|
+
t() {
|
|
377
|
+
return this.n3_1;
|
|
378
|
+
}
|
|
379
|
+
z2() {
|
|
380
|
+
return this.l3_1.z2();
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
class AbstractMutableSet extends AbstractMutableCollection {
|
|
384
|
+
static w3() {
|
|
385
|
+
return this.x2();
|
|
386
|
+
}
|
|
387
|
+
equals(other) {
|
|
388
|
+
if (other === this)
|
|
389
|
+
return true;
|
|
390
|
+
if (!(!(other == null) ? isInterface(other, KtSet) : false))
|
|
391
|
+
return false;
|
|
392
|
+
return Companion_instance_4.x3(this, other);
|
|
393
|
+
}
|
|
394
|
+
hashCode() {
|
|
395
|
+
return Companion_instance_4.y3(this);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
class Companion_0 {
|
|
399
|
+
constructor() {
|
|
400
|
+
Companion_instance_0 = this;
|
|
401
|
+
var tmp = this;
|
|
402
|
+
// Inline function 'kotlin.also' call
|
|
403
|
+
var this_0 = ArrayList.y(0);
|
|
404
|
+
this_0.w_1 = true;
|
|
405
|
+
tmp.z3_1 = this_0;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
class ArrayList extends AbstractMutableList {
|
|
409
|
+
constructor(array) {
|
|
410
|
+
return new.target.p2(array);
|
|
411
|
+
}
|
|
412
|
+
static p2(array) {
|
|
413
|
+
Companion_getInstance_0();
|
|
414
|
+
var $this = this.q3();
|
|
415
|
+
$this.v_1 = array;
|
|
416
|
+
$this.w_1 = false;
|
|
417
|
+
return $this;
|
|
418
|
+
}
|
|
419
|
+
static x() {
|
|
420
|
+
Companion_getInstance_0();
|
|
421
|
+
// Inline function 'kotlin.emptyArray' call
|
|
422
|
+
var tmp$ret$0 = [];
|
|
423
|
+
return this.p2(tmp$ret$0);
|
|
424
|
+
}
|
|
425
|
+
static y(initialCapacity) {
|
|
426
|
+
Companion_getInstance_0();
|
|
427
|
+
// Inline function 'kotlin.emptyArray' call
|
|
428
|
+
var tmp$ret$0 = [];
|
|
429
|
+
var $this = this.p2(tmp$ret$0);
|
|
430
|
+
// Inline function 'kotlin.require' call
|
|
431
|
+
if (!(initialCapacity >= 0)) {
|
|
432
|
+
var message = 'Negative initial capacity: ' + initialCapacity;
|
|
433
|
+
throw IllegalArgumentException.k(toString_1(message));
|
|
434
|
+
}
|
|
435
|
+
return $this;
|
|
436
|
+
}
|
|
437
|
+
static d1(elements) {
|
|
438
|
+
Companion_getInstance_0();
|
|
439
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
440
|
+
var tmp$ret$0 = copyToArray(elements);
|
|
441
|
+
return this.p2(tmp$ret$0);
|
|
442
|
+
}
|
|
443
|
+
t() {
|
|
444
|
+
return this.v_1.length;
|
|
445
|
+
}
|
|
446
|
+
s(index) {
|
|
447
|
+
return this.v_1[rangeCheck(this, index)];
|
|
448
|
+
}
|
|
449
|
+
l(element) {
|
|
450
|
+
this.z2();
|
|
451
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
452
|
+
this.v_1.push(element);
|
|
453
|
+
this.p3_1 = this.p3_1 + 1 | 0;
|
|
454
|
+
return true;
|
|
455
|
+
}
|
|
456
|
+
s3(index, element) {
|
|
457
|
+
this.z2();
|
|
458
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
459
|
+
this.v_1.splice(insertionRangeCheck(this, index), 0, element);
|
|
460
|
+
this.p3_1 = this.p3_1 + 1 | 0;
|
|
461
|
+
}
|
|
462
|
+
m1(element) {
|
|
463
|
+
return indexOf(this.v_1, element);
|
|
464
|
+
}
|
|
465
|
+
toString() {
|
|
466
|
+
return arrayToString(this.v_1);
|
|
467
|
+
}
|
|
468
|
+
a4() {
|
|
469
|
+
return [].slice.call(this.v_1);
|
|
470
|
+
}
|
|
471
|
+
toArray() {
|
|
472
|
+
return this.a4();
|
|
473
|
+
}
|
|
474
|
+
z2() {
|
|
475
|
+
if (this.w_1)
|
|
476
|
+
throw UnsupportedOperationException.e4();
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
class HashSet extends AbstractMutableSet {
|
|
480
|
+
static g4(map) {
|
|
481
|
+
var $this = this.w3();
|
|
482
|
+
init_kotlin_collections_HashSet($this);
|
|
483
|
+
$this.f4_1 = map;
|
|
484
|
+
return $this;
|
|
485
|
+
}
|
|
486
|
+
static h4() {
|
|
487
|
+
return this.g4(InternalHashMap.s4());
|
|
488
|
+
}
|
|
489
|
+
static t4(initialCapacity, loadFactor) {
|
|
490
|
+
return this.g4(InternalHashMap.u4(initialCapacity, loadFactor));
|
|
491
|
+
}
|
|
492
|
+
static v4(initialCapacity) {
|
|
493
|
+
return this.t4(initialCapacity, 1.0);
|
|
494
|
+
}
|
|
495
|
+
l(element) {
|
|
496
|
+
return this.f4_1.w4(element, true) == null;
|
|
497
|
+
}
|
|
498
|
+
l1(element) {
|
|
499
|
+
return this.f4_1.x4(element);
|
|
500
|
+
}
|
|
501
|
+
e1() {
|
|
502
|
+
return this.f4_1.t() === 0;
|
|
503
|
+
}
|
|
504
|
+
p() {
|
|
505
|
+
return this.f4_1.y4();
|
|
506
|
+
}
|
|
507
|
+
t() {
|
|
508
|
+
return this.f4_1.t();
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
class Companion_1 {
|
|
512
|
+
constructor() {
|
|
513
|
+
this.m5_1 = -1640531527;
|
|
514
|
+
this.n5_1 = 8;
|
|
515
|
+
this.o5_1 = 2;
|
|
516
|
+
this.p5_1 = -1;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
class Itr {
|
|
520
|
+
constructor(map) {
|
|
521
|
+
this.q5_1 = map;
|
|
522
|
+
this.r5_1 = 0;
|
|
523
|
+
this.s5_1 = -1;
|
|
524
|
+
this.t5_1 = this.q5_1.p4_1;
|
|
525
|
+
this.u5();
|
|
526
|
+
}
|
|
527
|
+
u5() {
|
|
528
|
+
while (this.r5_1 < this.q5_1.n4_1 && this.q5_1.k4_1[this.r5_1] < 0) {
|
|
529
|
+
this.r5_1 = this.r5_1 + 1 | 0;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
q() {
|
|
533
|
+
return this.r5_1 < this.q5_1.n4_1;
|
|
534
|
+
}
|
|
535
|
+
v5() {
|
|
536
|
+
if (!(this.q5_1.p4_1 === this.t5_1))
|
|
537
|
+
throw ConcurrentModificationException.w5();
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
class KeysItr extends Itr {
|
|
541
|
+
r() {
|
|
542
|
+
this.v5();
|
|
543
|
+
if (this.r5_1 >= this.q5_1.n4_1)
|
|
544
|
+
throw NoSuchElementException.d3();
|
|
545
|
+
var tmp = this;
|
|
546
|
+
var _unary__edvuaz = this.r5_1;
|
|
547
|
+
this.r5_1 = _unary__edvuaz + 1 | 0;
|
|
548
|
+
tmp.s5_1 = _unary__edvuaz;
|
|
549
|
+
var result = this.q5_1.i4_1[this.s5_1];
|
|
550
|
+
this.u5();
|
|
551
|
+
return result;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
class EntriesItr extends Itr {
|
|
555
|
+
r() {
|
|
556
|
+
this.v5();
|
|
557
|
+
if (this.r5_1 >= this.q5_1.n4_1)
|
|
558
|
+
throw NoSuchElementException.d3();
|
|
559
|
+
var tmp = this;
|
|
560
|
+
var _unary__edvuaz = this.r5_1;
|
|
561
|
+
this.r5_1 = _unary__edvuaz + 1 | 0;
|
|
562
|
+
tmp.s5_1 = _unary__edvuaz;
|
|
563
|
+
var result = new EntryRef(this.q5_1, this.s5_1);
|
|
564
|
+
this.u5();
|
|
565
|
+
return result;
|
|
566
|
+
}
|
|
567
|
+
f6() {
|
|
568
|
+
if (this.r5_1 >= this.q5_1.n4_1)
|
|
569
|
+
throw NoSuchElementException.d3();
|
|
570
|
+
var tmp = this;
|
|
571
|
+
var _unary__edvuaz = this.r5_1;
|
|
572
|
+
this.r5_1 = _unary__edvuaz + 1 | 0;
|
|
573
|
+
tmp.s5_1 = _unary__edvuaz;
|
|
574
|
+
// Inline function 'kotlin.hashCode' call
|
|
575
|
+
var tmp0_safe_receiver = this.q5_1.i4_1[this.s5_1];
|
|
576
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode_0(tmp0_safe_receiver);
|
|
577
|
+
var tmp_0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
578
|
+
// Inline function 'kotlin.hashCode' call
|
|
579
|
+
var tmp0_safe_receiver_0 = ensureNotNull(this.q5_1.j4_1)[this.s5_1];
|
|
580
|
+
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode_0(tmp0_safe_receiver_0);
|
|
581
|
+
var result = tmp_0 ^ (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0);
|
|
582
|
+
this.u5();
|
|
583
|
+
return result;
|
|
584
|
+
}
|
|
585
|
+
g6(sb) {
|
|
586
|
+
if (this.r5_1 >= this.q5_1.n4_1)
|
|
587
|
+
throw NoSuchElementException.d3();
|
|
588
|
+
var tmp = this;
|
|
589
|
+
var _unary__edvuaz = this.r5_1;
|
|
590
|
+
this.r5_1 = _unary__edvuaz + 1 | 0;
|
|
591
|
+
tmp.s5_1 = _unary__edvuaz;
|
|
592
|
+
var key = this.q5_1.i4_1[this.s5_1];
|
|
593
|
+
if (equals(key, this.q5_1))
|
|
594
|
+
sb.i6('(this Map)');
|
|
595
|
+
else
|
|
596
|
+
sb.h6(key);
|
|
597
|
+
sb.j6(_Char___init__impl__6a9atx(61));
|
|
598
|
+
var value = ensureNotNull(this.q5_1.j4_1)[this.s5_1];
|
|
599
|
+
if (equals(value, this.q5_1))
|
|
600
|
+
sb.i6('(this Map)');
|
|
601
|
+
else
|
|
602
|
+
sb.h6(value);
|
|
603
|
+
this.u5();
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
class EntryRef {
|
|
607
|
+
constructor(map, index) {
|
|
608
|
+
this.d5_1 = map;
|
|
609
|
+
this.e5_1 = index;
|
|
610
|
+
this.f5_1 = this.d5_1.p4_1;
|
|
611
|
+
}
|
|
612
|
+
p1() {
|
|
613
|
+
checkForComodification(this);
|
|
614
|
+
return this.d5_1.i4_1[this.e5_1];
|
|
615
|
+
}
|
|
616
|
+
q1() {
|
|
617
|
+
checkForComodification(this);
|
|
618
|
+
return ensureNotNull(this.d5_1.j4_1)[this.e5_1];
|
|
619
|
+
}
|
|
620
|
+
equals(other) {
|
|
621
|
+
var tmp;
|
|
622
|
+
var tmp_0;
|
|
623
|
+
if (!(other == null) ? isInterface(other, Entry) : false) {
|
|
624
|
+
tmp_0 = equals(other.p1(), this.p1());
|
|
625
|
+
} else {
|
|
626
|
+
tmp_0 = false;
|
|
627
|
+
}
|
|
628
|
+
if (tmp_0) {
|
|
629
|
+
tmp = equals(other.q1(), this.q1());
|
|
630
|
+
} else {
|
|
631
|
+
tmp = false;
|
|
632
|
+
}
|
|
633
|
+
return tmp;
|
|
634
|
+
}
|
|
635
|
+
hashCode() {
|
|
636
|
+
// Inline function 'kotlin.hashCode' call
|
|
637
|
+
var tmp0_safe_receiver = this.p1();
|
|
638
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode_0(tmp0_safe_receiver);
|
|
639
|
+
var tmp = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
640
|
+
// Inline function 'kotlin.hashCode' call
|
|
641
|
+
var tmp0_safe_receiver_0 = this.q1();
|
|
642
|
+
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode_0(tmp0_safe_receiver_0);
|
|
643
|
+
return tmp ^ (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0);
|
|
644
|
+
}
|
|
645
|
+
toString() {
|
|
646
|
+
return toString_0(this.p1()) + '=' + toString_0(this.q1());
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
class InternalMap {}
|
|
650
|
+
function containsAllEntries(m) {
|
|
651
|
+
var tmp$ret$0;
|
|
652
|
+
$l$block_0: {
|
|
653
|
+
// Inline function 'kotlin.collections.all' call
|
|
654
|
+
var tmp;
|
|
655
|
+
if (isInterface(m, Collection)) {
|
|
656
|
+
tmp = m.e1();
|
|
657
|
+
} else {
|
|
658
|
+
tmp = false;
|
|
659
|
+
}
|
|
660
|
+
if (tmp) {
|
|
661
|
+
tmp$ret$0 = true;
|
|
662
|
+
break $l$block_0;
|
|
663
|
+
}
|
|
664
|
+
var _iterator__ex2g4s = m.p();
|
|
665
|
+
while (_iterator__ex2g4s.q()) {
|
|
666
|
+
var element = _iterator__ex2g4s.r();
|
|
667
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
668
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
669
|
+
var entry = element;
|
|
670
|
+
var tmp_0;
|
|
671
|
+
if (!(entry == null) ? isInterface(entry, Entry) : false) {
|
|
672
|
+
tmp_0 = this.p6(entry);
|
|
673
|
+
} else {
|
|
674
|
+
tmp_0 = false;
|
|
675
|
+
}
|
|
676
|
+
if (!tmp_0) {
|
|
677
|
+
tmp$ret$0 = false;
|
|
678
|
+
break $l$block_0;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
tmp$ret$0 = true;
|
|
682
|
+
}
|
|
683
|
+
return tmp$ret$0;
|
|
684
|
+
}
|
|
685
|
+
class InternalHashMap {
|
|
686
|
+
constructor(keysArray, valuesArray, presenceArray, hashArray, maxProbeDistance, length) {
|
|
687
|
+
return new.target.k6(keysArray, valuesArray, presenceArray, hashArray, maxProbeDistance, length);
|
|
688
|
+
}
|
|
689
|
+
static k6(keysArray, valuesArray, presenceArray, hashArray, maxProbeDistance, length) {
|
|
690
|
+
var $this = createThis(this);
|
|
691
|
+
$this.i4_1 = keysArray;
|
|
692
|
+
$this.j4_1 = valuesArray;
|
|
693
|
+
$this.k4_1 = presenceArray;
|
|
694
|
+
$this.l4_1 = hashArray;
|
|
695
|
+
$this.m4_1 = maxProbeDistance;
|
|
696
|
+
$this.n4_1 = length;
|
|
697
|
+
$this.o4_1 = computeShift(Companion_instance_1, _get_hashSize__tftcho($this));
|
|
698
|
+
$this.p4_1 = 0;
|
|
699
|
+
$this.q4_1 = 0;
|
|
700
|
+
$this.r4_1 = false;
|
|
701
|
+
return $this;
|
|
702
|
+
}
|
|
703
|
+
t() {
|
|
704
|
+
return this.q4_1;
|
|
705
|
+
}
|
|
706
|
+
static s4() {
|
|
707
|
+
return this.l6(8);
|
|
708
|
+
}
|
|
709
|
+
static l6(initialCapacity) {
|
|
710
|
+
return this.k6(arrayOfUninitializedElements(initialCapacity), null, new Int32Array(initialCapacity), new Int32Array(computeHashSize(Companion_instance_1, initialCapacity)), 2, 0);
|
|
711
|
+
}
|
|
712
|
+
static u4(initialCapacity, loadFactor) {
|
|
713
|
+
var $this = this.l6(initialCapacity);
|
|
714
|
+
// Inline function 'kotlin.require' call
|
|
715
|
+
if (!(loadFactor > 0)) {
|
|
716
|
+
var message = 'Non-positive load factor: ' + loadFactor;
|
|
717
|
+
throw IllegalArgumentException.k(toString_1(message));
|
|
718
|
+
}
|
|
719
|
+
return $this;
|
|
720
|
+
}
|
|
721
|
+
x4(key) {
|
|
722
|
+
return findKey(this, key) >= 0;
|
|
723
|
+
}
|
|
724
|
+
w4(key, value) {
|
|
725
|
+
var index = addKey(this, key);
|
|
726
|
+
var valuesArray = allocateValuesArray(this);
|
|
727
|
+
if (index < 0) {
|
|
728
|
+
var oldValue = valuesArray[(-index | 0) - 1 | 0];
|
|
729
|
+
valuesArray[(-index | 0) - 1 | 0] = value;
|
|
730
|
+
return oldValue;
|
|
731
|
+
} else {
|
|
732
|
+
valuesArray[index] = value;
|
|
733
|
+
return null;
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
equals(other) {
|
|
737
|
+
var tmp;
|
|
738
|
+
if (other === this) {
|
|
739
|
+
tmp = true;
|
|
740
|
+
} else {
|
|
741
|
+
var tmp_0;
|
|
742
|
+
if (!(other == null) ? isInterface(other, KtMap) : false) {
|
|
743
|
+
tmp_0 = contentEquals(this, other);
|
|
744
|
+
} else {
|
|
745
|
+
tmp_0 = false;
|
|
746
|
+
}
|
|
747
|
+
tmp = tmp_0;
|
|
748
|
+
}
|
|
749
|
+
return tmp;
|
|
750
|
+
}
|
|
751
|
+
hashCode() {
|
|
752
|
+
var result = 0;
|
|
753
|
+
var it = this.m6();
|
|
754
|
+
while (it.q()) {
|
|
755
|
+
result = result + it.f6() | 0;
|
|
756
|
+
}
|
|
757
|
+
return result;
|
|
758
|
+
}
|
|
759
|
+
toString() {
|
|
760
|
+
var sb = StringBuilder.n6(2 + imul_0(this.q4_1, 3) | 0);
|
|
761
|
+
sb.i6('{');
|
|
762
|
+
var i = 0;
|
|
763
|
+
var it = this.m6();
|
|
764
|
+
while (it.q()) {
|
|
765
|
+
if (i > 0) {
|
|
766
|
+
sb.i6(', ');
|
|
767
|
+
}
|
|
768
|
+
it.g6(sb);
|
|
769
|
+
i = i + 1 | 0;
|
|
770
|
+
}
|
|
771
|
+
sb.i6('}');
|
|
772
|
+
return sb.toString();
|
|
773
|
+
}
|
|
774
|
+
k5() {
|
|
775
|
+
if (this.r4_1)
|
|
776
|
+
throw UnsupportedOperationException.e4();
|
|
777
|
+
}
|
|
778
|
+
o6(entry) {
|
|
779
|
+
var index = findKey(this, entry.p1());
|
|
780
|
+
if (index < 0)
|
|
781
|
+
return false;
|
|
782
|
+
return equals(ensureNotNull(this.j4_1)[index], entry.q1());
|
|
783
|
+
}
|
|
784
|
+
p6(entry) {
|
|
785
|
+
return this.o6(isInterface(entry, Entry) ? entry : THROW_CCE());
|
|
786
|
+
}
|
|
787
|
+
y4() {
|
|
788
|
+
return new KeysItr(this);
|
|
789
|
+
}
|
|
790
|
+
m6() {
|
|
791
|
+
return new EntriesItr(this);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
class LinkedHashSet extends HashSet {
|
|
795
|
+
static c1() {
|
|
796
|
+
var $this = this.h4();
|
|
797
|
+
init_kotlin_collections_LinkedHashSet($this);
|
|
798
|
+
return $this;
|
|
799
|
+
}
|
|
800
|
+
static q6(initialCapacity, loadFactor) {
|
|
801
|
+
var $this = this.t4(initialCapacity, loadFactor);
|
|
802
|
+
init_kotlin_collections_LinkedHashSet($this);
|
|
803
|
+
return $this;
|
|
804
|
+
}
|
|
805
|
+
static b1(initialCapacity) {
|
|
806
|
+
return this.q6(initialCapacity, 1.0);
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
class Exception extends Error {
|
|
810
|
+
static w6() {
|
|
811
|
+
var $this = createExternalThis(this, Error, [null]);
|
|
812
|
+
setPropertiesToThrowableInstance($this);
|
|
813
|
+
init_kotlin_Exception($this);
|
|
814
|
+
return $this;
|
|
815
|
+
}
|
|
816
|
+
static c2(message) {
|
|
817
|
+
var $this = createExternalThis(this, Error, [message]);
|
|
818
|
+
setPropertiesToThrowableInstance($this, message);
|
|
819
|
+
init_kotlin_Exception($this);
|
|
820
|
+
return $this;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
class RuntimeException extends Exception {
|
|
824
|
+
static r6() {
|
|
825
|
+
var $this = this.w6();
|
|
826
|
+
init_kotlin_RuntimeException($this);
|
|
827
|
+
return $this;
|
|
828
|
+
}
|
|
829
|
+
static i5(message) {
|
|
830
|
+
var $this = this.c2(message);
|
|
831
|
+
init_kotlin_RuntimeException($this);
|
|
832
|
+
return $this;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
class UnsupportedOperationException extends RuntimeException {
|
|
836
|
+
static e4() {
|
|
837
|
+
var $this = this.r6();
|
|
838
|
+
init_kotlin_UnsupportedOperationException($this);
|
|
839
|
+
return $this;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
class IllegalStateException extends RuntimeException {
|
|
843
|
+
static u6() {
|
|
844
|
+
var $this = this.r6();
|
|
845
|
+
init_kotlin_IllegalStateException($this);
|
|
846
|
+
return $this;
|
|
847
|
+
}
|
|
848
|
+
static g2(message) {
|
|
849
|
+
var $this = this.i5(message);
|
|
850
|
+
init_kotlin_IllegalStateException($this);
|
|
851
|
+
return $this;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
class IllegalArgumentException extends RuntimeException {
|
|
855
|
+
static v6() {
|
|
856
|
+
var $this = this.r6();
|
|
857
|
+
init_kotlin_IllegalArgumentException($this);
|
|
858
|
+
return $this;
|
|
859
|
+
}
|
|
860
|
+
static k(message) {
|
|
861
|
+
var $this = this.i5(message);
|
|
862
|
+
init_kotlin_IllegalArgumentException($this);
|
|
863
|
+
return $this;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
class NoSuchElementException extends RuntimeException {
|
|
867
|
+
static d3() {
|
|
868
|
+
var $this = this.r6();
|
|
869
|
+
init_kotlin_NoSuchElementException($this);
|
|
870
|
+
return $this;
|
|
871
|
+
}
|
|
872
|
+
static g(message) {
|
|
873
|
+
var $this = this.i5(message);
|
|
874
|
+
init_kotlin_NoSuchElementException($this);
|
|
875
|
+
return $this;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
class IndexOutOfBoundsException extends RuntimeException {
|
|
879
|
+
static x6() {
|
|
880
|
+
var $this = this.r6();
|
|
881
|
+
init_kotlin_IndexOutOfBoundsException($this);
|
|
882
|
+
return $this;
|
|
883
|
+
}
|
|
884
|
+
static w2(message) {
|
|
885
|
+
var $this = this.i5(message);
|
|
886
|
+
init_kotlin_IndexOutOfBoundsException($this);
|
|
887
|
+
return $this;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
class ArithmeticException extends RuntimeException {
|
|
891
|
+
static b7() {
|
|
892
|
+
var $this = this.r6();
|
|
893
|
+
init_kotlin_ArithmeticException($this);
|
|
894
|
+
return $this;
|
|
895
|
+
}
|
|
896
|
+
static c7(message) {
|
|
897
|
+
var $this = this.i5(message);
|
|
898
|
+
init_kotlin_ArithmeticException($this);
|
|
899
|
+
return $this;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
class ConcurrentModificationException extends RuntimeException {
|
|
903
|
+
static w5() {
|
|
904
|
+
var $this = this.r6();
|
|
905
|
+
init_kotlin_ConcurrentModificationException($this);
|
|
906
|
+
return $this;
|
|
907
|
+
}
|
|
908
|
+
static c5(message) {
|
|
909
|
+
var $this = this.i5(message);
|
|
910
|
+
init_kotlin_ConcurrentModificationException($this);
|
|
911
|
+
return $this;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
class NullPointerException extends RuntimeException {
|
|
915
|
+
static k2() {
|
|
916
|
+
var $this = this.r6();
|
|
917
|
+
init_kotlin_NullPointerException($this);
|
|
918
|
+
return $this;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
class ClassCastException extends RuntimeException {
|
|
922
|
+
static o2() {
|
|
923
|
+
var $this = this.r6();
|
|
924
|
+
init_kotlin_ClassCastException($this);
|
|
925
|
+
return $this;
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
class KClassImpl {
|
|
929
|
+
equals(other) {
|
|
930
|
+
var tmp;
|
|
931
|
+
if (other instanceof NothingKClassImpl) {
|
|
932
|
+
tmp = false;
|
|
933
|
+
} else {
|
|
934
|
+
if (other instanceof KClassImpl) {
|
|
935
|
+
tmp = equals(this.g7(), other.g7());
|
|
936
|
+
} else {
|
|
937
|
+
tmp = false;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
return tmp;
|
|
941
|
+
}
|
|
942
|
+
hashCode() {
|
|
943
|
+
var tmp0_safe_receiver = this.h7();
|
|
944
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
945
|
+
return tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
946
|
+
}
|
|
947
|
+
toString() {
|
|
948
|
+
return 'class ' + this.h7();
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
class PrimitiveKClassImpl extends KClassImpl {
|
|
952
|
+
constructor(jClass, givenSimpleName, isInstanceFunction) {
|
|
953
|
+
super();
|
|
954
|
+
this.d7_1 = jClass;
|
|
955
|
+
this.e7_1 = givenSimpleName;
|
|
956
|
+
this.f7_1 = isInstanceFunction;
|
|
957
|
+
}
|
|
958
|
+
g7() {
|
|
959
|
+
return this.d7_1;
|
|
960
|
+
}
|
|
961
|
+
equals(other) {
|
|
962
|
+
if (!(other instanceof PrimitiveKClassImpl))
|
|
963
|
+
return false;
|
|
964
|
+
return super.equals(other) && this.e7_1 === other.e7_1;
|
|
965
|
+
}
|
|
966
|
+
h7() {
|
|
967
|
+
return this.e7_1;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
class NothingKClassImpl extends KClassImpl {}
|
|
971
|
+
class StringBuilder {
|
|
972
|
+
constructor(content) {
|
|
973
|
+
return new.target.i7(content);
|
|
974
|
+
}
|
|
975
|
+
static i7(content) {
|
|
976
|
+
var $this = createThis(this);
|
|
977
|
+
$this.m_1 = content;
|
|
978
|
+
return $this;
|
|
979
|
+
}
|
|
980
|
+
static n6(capacity) {
|
|
981
|
+
return this.n();
|
|
982
|
+
}
|
|
983
|
+
static n() {
|
|
984
|
+
return this.i7('');
|
|
985
|
+
}
|
|
986
|
+
a() {
|
|
987
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
988
|
+
return this.m_1.length;
|
|
989
|
+
}
|
|
990
|
+
b(index) {
|
|
991
|
+
// Inline function 'kotlin.text.getOrElse' call
|
|
992
|
+
var this_0 = this.m_1;
|
|
993
|
+
var tmp;
|
|
994
|
+
if (0 <= index ? index <= (charSequenceLength(this_0) - 1 | 0) : false) {
|
|
995
|
+
tmp = charSequenceGet(this_0, index);
|
|
996
|
+
} else {
|
|
997
|
+
throw IndexOutOfBoundsException.w2('index: ' + index + ', length: ' + this.a() + '}');
|
|
998
|
+
}
|
|
999
|
+
return tmp;
|
|
1000
|
+
}
|
|
1001
|
+
c(startIndex, endIndex) {
|
|
1002
|
+
return substring(this.m_1, startIndex, endIndex);
|
|
1003
|
+
}
|
|
1004
|
+
j6(value) {
|
|
1005
|
+
this.m_1 = this.m_1 + toString(value);
|
|
1006
|
+
return this;
|
|
1007
|
+
}
|
|
1008
|
+
o(value) {
|
|
1009
|
+
this.m_1 = this.m_1 + toString_0(value);
|
|
1010
|
+
return this;
|
|
1011
|
+
}
|
|
1012
|
+
h6(value) {
|
|
1013
|
+
this.m_1 = this.m_1 + toString_0(value);
|
|
1014
|
+
return this;
|
|
1015
|
+
}
|
|
1016
|
+
i6(value) {
|
|
1017
|
+
var tmp = this;
|
|
1018
|
+
var tmp_0 = this.m_1;
|
|
1019
|
+
tmp.m_1 = tmp_0 + (value == null ? 'null' : value);
|
|
1020
|
+
return this;
|
|
1021
|
+
}
|
|
1022
|
+
toString() {
|
|
1023
|
+
return this.m_1;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
class Companion_2 {
|
|
1027
|
+
constructor() {
|
|
1028
|
+
Companion_instance_2 = this;
|
|
1029
|
+
this.j7_1 = new RegExp('[\\\\^$*+?.()|[\\]{}]', 'g');
|
|
1030
|
+
this.k7_1 = new RegExp('[\\\\$]', 'g');
|
|
1031
|
+
this.l7_1 = new RegExp('\\$', 'g');
|
|
1032
|
+
}
|
|
1033
|
+
m7(literal) {
|
|
1034
|
+
// Inline function 'kotlin.text.nativeReplace' call
|
|
1035
|
+
var pattern = this.j7_1;
|
|
1036
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1037
|
+
return literal.replace(pattern, '\\$&');
|
|
1038
|
+
}
|
|
1039
|
+
n7(literal) {
|
|
1040
|
+
// Inline function 'kotlin.text.nativeReplace' call
|
|
1041
|
+
var pattern = this.l7_1;
|
|
1042
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1043
|
+
return literal.replace(pattern, '$$$$');
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
class Regex {
|
|
1047
|
+
constructor(pattern, options) {
|
|
1048
|
+
return new.target.t7(pattern, options);
|
|
1049
|
+
}
|
|
1050
|
+
static t7(pattern, options) {
|
|
1051
|
+
Companion_getInstance_2();
|
|
1052
|
+
var $this = createThis(this);
|
|
1053
|
+
$this.o7_1 = pattern;
|
|
1054
|
+
$this.p7_1 = toSet(options);
|
|
1055
|
+
$this.q7_1 = new RegExp(pattern, toFlags(options, 'gu'));
|
|
1056
|
+
$this.r7_1 = null;
|
|
1057
|
+
$this.s7_1 = null;
|
|
1058
|
+
return $this;
|
|
1059
|
+
}
|
|
1060
|
+
static u7(pattern) {
|
|
1061
|
+
Companion_getInstance_2();
|
|
1062
|
+
return this.t7(pattern, emptySet());
|
|
1063
|
+
}
|
|
1064
|
+
v7(input) {
|
|
1065
|
+
reset(this.q7_1);
|
|
1066
|
+
var match = this.q7_1.exec(toString_1(input));
|
|
1067
|
+
return !(match == null) && match.index === 0 && this.q7_1.lastIndex === charSequenceLength(input);
|
|
1068
|
+
}
|
|
1069
|
+
toString() {
|
|
1070
|
+
return this.q7_1.toString();
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
class sam$kotlin_Comparator$0 {
|
|
1074
|
+
constructor(function_0) {
|
|
1075
|
+
this.z7_1 = function_0;
|
|
1076
|
+
}
|
|
1077
|
+
a8(a, b) {
|
|
1078
|
+
return this.z7_1(a, b);
|
|
1079
|
+
}
|
|
1080
|
+
compare(a, b) {
|
|
1081
|
+
return this.a8(a, b);
|
|
1082
|
+
}
|
|
1083
|
+
a2() {
|
|
1084
|
+
return this.z7_1;
|
|
1085
|
+
}
|
|
1086
|
+
equals(other) {
|
|
1087
|
+
var tmp;
|
|
1088
|
+
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
1089
|
+
var tmp_0;
|
|
1090
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1091
|
+
tmp_0 = equals(this.a2(), other.a2());
|
|
1092
|
+
} else {
|
|
1093
|
+
tmp_0 = false;
|
|
1094
|
+
}
|
|
1095
|
+
tmp = tmp_0;
|
|
1096
|
+
} else {
|
|
1097
|
+
tmp = false;
|
|
1098
|
+
}
|
|
1099
|
+
return tmp;
|
|
1100
|
+
}
|
|
1101
|
+
hashCode() {
|
|
1102
|
+
return hashCode_0(this.a2());
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
class SubList_0 extends AbstractList {
|
|
1106
|
+
constructor(list, fromIndex, toIndex) {
|
|
1107
|
+
return new.target.e8(list, fromIndex, toIndex);
|
|
1108
|
+
}
|
|
1109
|
+
static e8(list, fromIndex, toIndex) {
|
|
1110
|
+
var $this = this.s2();
|
|
1111
|
+
$this.b8_1 = list;
|
|
1112
|
+
$this.c8_1 = fromIndex;
|
|
1113
|
+
$this.d8_1 = 0;
|
|
1114
|
+
Companion_instance_3.r3($this.c8_1, toIndex, $this.b8_1.t());
|
|
1115
|
+
$this.d8_1 = toIndex - $this.c8_1 | 0;
|
|
1116
|
+
return $this;
|
|
1117
|
+
}
|
|
1118
|
+
s(index) {
|
|
1119
|
+
Companion_instance_3.t3(index, this.d8_1);
|
|
1120
|
+
return this.b8_1.s(this.c8_1 + index | 0);
|
|
1121
|
+
}
|
|
1122
|
+
t() {
|
|
1123
|
+
return this.d8_1;
|
|
1124
|
+
}
|
|
1125
|
+
n1(fromIndex, toIndex) {
|
|
1126
|
+
Companion_instance_3.r3(fromIndex, toIndex, this.d8_1);
|
|
1127
|
+
return SubList_0.e8(this.b8_1, this.c8_1 + fromIndex | 0, this.c8_1 + toIndex | 0);
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
class IteratorImpl_0 {
|
|
1131
|
+
constructor($outer, $box) {
|
|
1132
|
+
boxApply(this, $box);
|
|
1133
|
+
this.g8_1 = $outer;
|
|
1134
|
+
this.f8_1 = 0;
|
|
1135
|
+
}
|
|
1136
|
+
q() {
|
|
1137
|
+
return this.f8_1 < this.g8_1.t();
|
|
1138
|
+
}
|
|
1139
|
+
r() {
|
|
1140
|
+
if (!this.q())
|
|
1141
|
+
throw NoSuchElementException.d3();
|
|
1142
|
+
var _unary__edvuaz = this.f8_1;
|
|
1143
|
+
this.f8_1 = _unary__edvuaz + 1 | 0;
|
|
1144
|
+
return this.g8_1.s(_unary__edvuaz);
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
class ListIteratorImpl_0 extends IteratorImpl_0 {
|
|
1148
|
+
constructor($outer, index, $box) {
|
|
1149
|
+
if ($box === VOID)
|
|
1150
|
+
$box = {};
|
|
1151
|
+
$box.j8_1 = $outer;
|
|
1152
|
+
super($outer, $box);
|
|
1153
|
+
Companion_instance_3.j3(index, this.j8_1.t());
|
|
1154
|
+
this.f8_1 = index;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
class Companion_3 {
|
|
1158
|
+
constructor() {
|
|
1159
|
+
this.i3_1 = 2147483639;
|
|
1160
|
+
}
|
|
1161
|
+
t3(index, size) {
|
|
1162
|
+
if (index < 0 || index >= size) {
|
|
1163
|
+
throw IndexOutOfBoundsException.w2('index: ' + index + ', size: ' + size);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
j3(index, size) {
|
|
1167
|
+
if (index < 0 || index > size) {
|
|
1168
|
+
throw IndexOutOfBoundsException.w2('index: ' + index + ', size: ' + size);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
r3(fromIndex, toIndex, size) {
|
|
1172
|
+
if (fromIndex < 0 || toIndex > size) {
|
|
1173
|
+
throw IndexOutOfBoundsException.w2('fromIndex: ' + fromIndex + ', toIndex: ' + toIndex + ', size: ' + size);
|
|
1174
|
+
}
|
|
1175
|
+
if (fromIndex > toIndex) {
|
|
1176
|
+
throw IllegalArgumentException.k('fromIndex: ' + fromIndex + ' > toIndex: ' + toIndex);
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
j5(oldCapacity, minCapacity) {
|
|
1180
|
+
var newCapacity = oldCapacity + (oldCapacity >> 1) | 0;
|
|
1181
|
+
if ((newCapacity - minCapacity | 0) < 0)
|
|
1182
|
+
newCapacity = minCapacity;
|
|
1183
|
+
if ((newCapacity - 2147483639 | 0) > 0)
|
|
1184
|
+
newCapacity = minCapacity > 2147483639 ? 2147483647 : 2147483639;
|
|
1185
|
+
return newCapacity;
|
|
1186
|
+
}
|
|
1187
|
+
v3(c) {
|
|
1188
|
+
var hashCode = 1;
|
|
1189
|
+
var _iterator__ex2g4s = c.p();
|
|
1190
|
+
while (_iterator__ex2g4s.q()) {
|
|
1191
|
+
var e = _iterator__ex2g4s.r();
|
|
1192
|
+
var tmp = imul_0(31, hashCode);
|
|
1193
|
+
var tmp1_elvis_lhs = e == null ? null : hashCode_0(e);
|
|
1194
|
+
hashCode = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1195
|
+
}
|
|
1196
|
+
return hashCode;
|
|
1197
|
+
}
|
|
1198
|
+
u3(c, other) {
|
|
1199
|
+
if (!(c.t() === other.t()))
|
|
1200
|
+
return false;
|
|
1201
|
+
var otherIterator = other.p();
|
|
1202
|
+
var _iterator__ex2g4s = c.p();
|
|
1203
|
+
while (_iterator__ex2g4s.q()) {
|
|
1204
|
+
var elem = _iterator__ex2g4s.r();
|
|
1205
|
+
var elemOther = otherIterator.r();
|
|
1206
|
+
if (!equals(elem, elemOther)) {
|
|
1207
|
+
return false;
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
return true;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
class Companion_4 {
|
|
1214
|
+
y3(c) {
|
|
1215
|
+
var hashCode = 0;
|
|
1216
|
+
var _iterator__ex2g4s = c.p();
|
|
1217
|
+
while (_iterator__ex2g4s.q()) {
|
|
1218
|
+
var element = _iterator__ex2g4s.r();
|
|
1219
|
+
var tmp = hashCode;
|
|
1220
|
+
var tmp1_elvis_lhs = element == null ? null : hashCode_0(element);
|
|
1221
|
+
hashCode = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
1222
|
+
}
|
|
1223
|
+
return hashCode;
|
|
1224
|
+
}
|
|
1225
|
+
x3(c, other) {
|
|
1226
|
+
if (!(c.t() === other.t()))
|
|
1227
|
+
return false;
|
|
1228
|
+
return c.o1(other);
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
class EmptyList {
|
|
1232
|
+
constructor() {
|
|
1233
|
+
EmptyList_instance = this;
|
|
1234
|
+
this.k8_1 = new Long(-1478467534, -1720727600);
|
|
1235
|
+
}
|
|
1236
|
+
equals(other) {
|
|
1237
|
+
var tmp;
|
|
1238
|
+
if (!(other == null) ? isInterface(other, KtList) : false) {
|
|
1239
|
+
tmp = other.e1();
|
|
1240
|
+
} else {
|
|
1241
|
+
tmp = false;
|
|
1242
|
+
}
|
|
1243
|
+
return tmp;
|
|
1244
|
+
}
|
|
1245
|
+
hashCode() {
|
|
1246
|
+
return 1;
|
|
1247
|
+
}
|
|
1248
|
+
toString() {
|
|
1249
|
+
return '[]';
|
|
1250
|
+
}
|
|
1251
|
+
t() {
|
|
1252
|
+
return 0;
|
|
1253
|
+
}
|
|
1254
|
+
e1() {
|
|
1255
|
+
return true;
|
|
1256
|
+
}
|
|
1257
|
+
s(index) {
|
|
1258
|
+
throw IndexOutOfBoundsException.w2("Empty list doesn't contain element at index " + index + '.');
|
|
1259
|
+
}
|
|
1260
|
+
l8(element) {
|
|
1261
|
+
return -1;
|
|
1262
|
+
}
|
|
1263
|
+
m1(element) {
|
|
1264
|
+
if (!false)
|
|
1265
|
+
return -1;
|
|
1266
|
+
var tmp;
|
|
1267
|
+
if (false) {
|
|
1268
|
+
tmp = element;
|
|
1269
|
+
} else {
|
|
1270
|
+
tmp = THROW_CCE();
|
|
1271
|
+
}
|
|
1272
|
+
return this.l8(tmp);
|
|
1273
|
+
}
|
|
1274
|
+
p() {
|
|
1275
|
+
return EmptyIterator_instance;
|
|
1276
|
+
}
|
|
1277
|
+
z(index) {
|
|
1278
|
+
if (!(index === 0))
|
|
1279
|
+
throw IndexOutOfBoundsException.w2('Index: ' + index);
|
|
1280
|
+
return EmptyIterator_instance;
|
|
1281
|
+
}
|
|
1282
|
+
n1(fromIndex, toIndex) {
|
|
1283
|
+
if (fromIndex === 0 && toIndex === 0)
|
|
1284
|
+
return this;
|
|
1285
|
+
throw IndexOutOfBoundsException.w2('fromIndex: ' + fromIndex + ', toIndex: ' + toIndex);
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
class EmptyIterator {
|
|
1289
|
+
q() {
|
|
1290
|
+
return false;
|
|
1291
|
+
}
|
|
1292
|
+
r() {
|
|
1293
|
+
throw NoSuchElementException.d3();
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
class IntIterator {
|
|
1297
|
+
r() {
|
|
1298
|
+
return this.m8();
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
class EmptySet {
|
|
1302
|
+
constructor() {
|
|
1303
|
+
EmptySet_instance = this;
|
|
1304
|
+
this.n8_1 = new Long(1993859828, 793161749);
|
|
1305
|
+
}
|
|
1306
|
+
equals(other) {
|
|
1307
|
+
var tmp;
|
|
1308
|
+
if (!(other == null) ? isInterface(other, KtSet) : false) {
|
|
1309
|
+
tmp = other.e1();
|
|
1310
|
+
} else {
|
|
1311
|
+
tmp = false;
|
|
1312
|
+
}
|
|
1313
|
+
return tmp;
|
|
1314
|
+
}
|
|
1315
|
+
hashCode() {
|
|
1316
|
+
return 0;
|
|
1317
|
+
}
|
|
1318
|
+
toString() {
|
|
1319
|
+
return '[]';
|
|
1320
|
+
}
|
|
1321
|
+
t() {
|
|
1322
|
+
return 0;
|
|
1323
|
+
}
|
|
1324
|
+
e1() {
|
|
1325
|
+
return true;
|
|
1326
|
+
}
|
|
1327
|
+
o8(elements) {
|
|
1328
|
+
return elements.e1();
|
|
1329
|
+
}
|
|
1330
|
+
o1(elements) {
|
|
1331
|
+
return this.o8(elements);
|
|
1332
|
+
}
|
|
1333
|
+
p() {
|
|
1334
|
+
return EmptyIterator_instance;
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
class Companion_5 {
|
|
1338
|
+
constructor() {
|
|
1339
|
+
Companion_instance_5 = this;
|
|
1340
|
+
this.f1_1 = new IntRange(1, 0);
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
class IntProgression {
|
|
1344
|
+
constructor(start, endInclusive, step) {
|
|
1345
|
+
if (step === 0)
|
|
1346
|
+
throw IllegalArgumentException.k('Step must be non-zero.');
|
|
1347
|
+
if (step === -2147483648)
|
|
1348
|
+
throw IllegalArgumentException.k('Step must be greater than Int.MIN_VALUE to avoid overflow on negation.');
|
|
1349
|
+
this.q8_1 = start;
|
|
1350
|
+
this.r8_1 = getProgressionLastElement(start, endInclusive, step);
|
|
1351
|
+
this.s8_1 = step;
|
|
1352
|
+
}
|
|
1353
|
+
p() {
|
|
1354
|
+
return new IntProgressionIterator(this.q8_1, this.r8_1, this.s8_1);
|
|
1355
|
+
}
|
|
1356
|
+
e1() {
|
|
1357
|
+
return this.s8_1 > 0 ? this.q8_1 > this.r8_1 : this.q8_1 < this.r8_1;
|
|
1358
|
+
}
|
|
1359
|
+
equals(other) {
|
|
1360
|
+
var tmp;
|
|
1361
|
+
if (other instanceof IntProgression) {
|
|
1362
|
+
tmp = this.e1() && other.e1() || (this.q8_1 === other.q8_1 && this.r8_1 === other.r8_1 && this.s8_1 === other.s8_1);
|
|
1363
|
+
} else {
|
|
1364
|
+
tmp = false;
|
|
1365
|
+
}
|
|
1366
|
+
return tmp;
|
|
1367
|
+
}
|
|
1368
|
+
hashCode() {
|
|
1369
|
+
return this.e1() ? -1 : imul_0(31, imul_0(31, this.q8_1) + this.r8_1 | 0) + this.s8_1 | 0;
|
|
1370
|
+
}
|
|
1371
|
+
toString() {
|
|
1372
|
+
return this.s8_1 > 0 ? '' + this.q8_1 + '..' + this.r8_1 + ' step ' + this.s8_1 : '' + this.q8_1 + ' downTo ' + this.r8_1 + ' step ' + (-this.s8_1 | 0);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
class IntRange extends IntProgression {
|
|
1376
|
+
constructor(start, endInclusive) {
|
|
1377
|
+
Companion_getInstance_5();
|
|
1378
|
+
super(start, endInclusive, 1);
|
|
1379
|
+
}
|
|
1380
|
+
p8() {
|
|
1381
|
+
return this.q8_1;
|
|
1382
|
+
}
|
|
1383
|
+
t8() {
|
|
1384
|
+
return this.r8_1;
|
|
1385
|
+
}
|
|
1386
|
+
e1() {
|
|
1387
|
+
return this.q8_1 > this.r8_1;
|
|
1388
|
+
}
|
|
1389
|
+
equals(other) {
|
|
1390
|
+
var tmp;
|
|
1391
|
+
if (other instanceof IntRange) {
|
|
1392
|
+
tmp = this.e1() && other.e1() || (this.q8_1 === other.q8_1 && this.r8_1 === other.r8_1);
|
|
1393
|
+
} else {
|
|
1394
|
+
tmp = false;
|
|
1395
|
+
}
|
|
1396
|
+
return tmp;
|
|
1397
|
+
}
|
|
1398
|
+
hashCode() {
|
|
1399
|
+
return this.e1() ? -1 : imul_0(31, this.q8_1) + this.r8_1 | 0;
|
|
1400
|
+
}
|
|
1401
|
+
toString() {
|
|
1402
|
+
return '' + this.q8_1 + '..' + this.r8_1;
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
class IntProgressionIterator extends IntIterator {
|
|
1406
|
+
constructor(first, last, step) {
|
|
1407
|
+
super();
|
|
1408
|
+
this.u8_1 = step;
|
|
1409
|
+
this.v8_1 = last;
|
|
1410
|
+
this.w8_1 = this.u8_1 > 0 ? first <= last : first >= last;
|
|
1411
|
+
this.x8_1 = this.w8_1 ? first : this.v8_1;
|
|
1412
|
+
}
|
|
1413
|
+
q() {
|
|
1414
|
+
return this.w8_1;
|
|
1415
|
+
}
|
|
1416
|
+
m8() {
|
|
1417
|
+
var value = this.x8_1;
|
|
1418
|
+
if (value === this.v8_1) {
|
|
1419
|
+
if (!this.w8_1)
|
|
1420
|
+
throw NoSuchElementException.d3();
|
|
1421
|
+
this.w8_1 = false;
|
|
1422
|
+
} else {
|
|
1423
|
+
this.x8_1 = this.x8_1 + this.u8_1 | 0;
|
|
1424
|
+
}
|
|
1425
|
+
return value;
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
class Companion_6 {
|
|
1429
|
+
g1(rangeStart, rangeEnd, step) {
|
|
1430
|
+
return new IntProgression(rangeStart, rangeEnd, step);
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
class DelimitedRangesSequence$iterator$1 {
|
|
1434
|
+
constructor(this$0) {
|
|
1435
|
+
this.e9_1 = this$0;
|
|
1436
|
+
this.z8_1 = -1;
|
|
1437
|
+
this.a9_1 = coerceIn(this$0.g9_1, 0, charSequenceLength(this$0.f9_1));
|
|
1438
|
+
this.b9_1 = this.a9_1;
|
|
1439
|
+
this.c9_1 = null;
|
|
1440
|
+
this.d9_1 = 0;
|
|
1441
|
+
}
|
|
1442
|
+
r() {
|
|
1443
|
+
if (this.z8_1 === -1) {
|
|
1444
|
+
calcNext(this);
|
|
1445
|
+
}
|
|
1446
|
+
if (this.z8_1 === 0)
|
|
1447
|
+
throw NoSuchElementException.d3();
|
|
1448
|
+
var tmp = this.c9_1;
|
|
1449
|
+
var result = tmp instanceof IntRange ? tmp : THROW_CCE();
|
|
1450
|
+
this.c9_1 = null;
|
|
1451
|
+
this.z8_1 = -1;
|
|
1452
|
+
return result;
|
|
1453
|
+
}
|
|
1454
|
+
q() {
|
|
1455
|
+
if (this.z8_1 === -1) {
|
|
1456
|
+
calcNext(this);
|
|
1457
|
+
}
|
|
1458
|
+
return this.z8_1 === 1;
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
class DelimitedRangesSequence {
|
|
1462
|
+
constructor(input, startIndex, limit, getNextMatch) {
|
|
1463
|
+
this.f9_1 = input;
|
|
1464
|
+
this.g9_1 = startIndex;
|
|
1465
|
+
this.h9_1 = limit;
|
|
1466
|
+
this.i9_1 = getNextMatch;
|
|
1467
|
+
}
|
|
1468
|
+
p() {
|
|
1469
|
+
return new DelimitedRangesSequence$iterator$1(this);
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
class State {
|
|
1473
|
+
constructor() {
|
|
1474
|
+
this.n9_1 = 0;
|
|
1475
|
+
this.o9_1 = 1;
|
|
1476
|
+
this.p9_1 = 2;
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
class LinesIterator {
|
|
1480
|
+
constructor(string) {
|
|
1481
|
+
this.q9_1 = string;
|
|
1482
|
+
this.r9_1 = 0;
|
|
1483
|
+
this.s9_1 = 0;
|
|
1484
|
+
this.t9_1 = 0;
|
|
1485
|
+
this.u9_1 = 0;
|
|
1486
|
+
}
|
|
1487
|
+
q() {
|
|
1488
|
+
if (!(this.r9_1 === 0)) {
|
|
1489
|
+
return this.r9_1 === 1;
|
|
1490
|
+
}
|
|
1491
|
+
if (this.u9_1 < 0) {
|
|
1492
|
+
this.r9_1 = 2;
|
|
1493
|
+
return false;
|
|
1494
|
+
}
|
|
1495
|
+
var _delimiterLength = -1;
|
|
1496
|
+
var _delimiterStartIndex = charSequenceLength(this.q9_1);
|
|
1497
|
+
var inductionVariable = this.s9_1;
|
|
1498
|
+
var last = charSequenceLength(this.q9_1);
|
|
1499
|
+
if (inductionVariable < last)
|
|
1500
|
+
$l$loop: do {
|
|
1501
|
+
var idx = inductionVariable;
|
|
1502
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1503
|
+
var c = charSequenceGet(this.q9_1, idx);
|
|
1504
|
+
if (c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(13)) {
|
|
1505
|
+
_delimiterLength = c === _Char___init__impl__6a9atx(13) && (idx + 1 | 0) < charSequenceLength(this.q9_1) && charSequenceGet(this.q9_1, idx + 1 | 0) === _Char___init__impl__6a9atx(10) ? 2 : 1;
|
|
1506
|
+
_delimiterStartIndex = idx;
|
|
1507
|
+
break $l$loop;
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
while (inductionVariable < last);
|
|
1511
|
+
this.r9_1 = 1;
|
|
1512
|
+
this.u9_1 = _delimiterLength;
|
|
1513
|
+
this.t9_1 = _delimiterStartIndex;
|
|
1514
|
+
return true;
|
|
1515
|
+
}
|
|
1516
|
+
r() {
|
|
1517
|
+
if (!this.q()) {
|
|
1518
|
+
throw NoSuchElementException.d3();
|
|
1519
|
+
}
|
|
1520
|
+
this.r9_1 = 0;
|
|
1521
|
+
var lastIndex = this.t9_1;
|
|
1522
|
+
var firstIndex = this.s9_1;
|
|
1523
|
+
this.s9_1 = this.t9_1 + this.u9_1 | 0;
|
|
1524
|
+
// Inline function 'kotlin.text.substring' call
|
|
1525
|
+
var this_0 = this.q9_1;
|
|
1526
|
+
return toString_1(charSequenceSubSequence(this_0, firstIndex, lastIndex));
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
class lineSequence$$inlined$Sequence$1 {
|
|
1530
|
+
constructor($this_lineSequence) {
|
|
1531
|
+
this.v9_1 = $this_lineSequence;
|
|
1532
|
+
}
|
|
1533
|
+
p() {
|
|
1534
|
+
return new LinesIterator(this.v9_1);
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
class Pair {
|
|
1538
|
+
constructor(first, second) {
|
|
1539
|
+
this.j9_1 = first;
|
|
1540
|
+
this.k9_1 = second;
|
|
1541
|
+
}
|
|
1542
|
+
toString() {
|
|
1543
|
+
return '(' + toString_0(this.j9_1) + ', ' + toString_0(this.k9_1) + ')';
|
|
1544
|
+
}
|
|
1545
|
+
l9() {
|
|
1546
|
+
return this.j9_1;
|
|
1547
|
+
}
|
|
1548
|
+
m9() {
|
|
1549
|
+
return this.k9_1;
|
|
1550
|
+
}
|
|
1551
|
+
hashCode() {
|
|
1552
|
+
var result = this.j9_1 == null ? 0 : hashCode_0(this.j9_1);
|
|
1553
|
+
result = imul_0(result, 31) + (this.k9_1 == null ? 0 : hashCode_0(this.k9_1)) | 0;
|
|
1554
|
+
return result;
|
|
1555
|
+
}
|
|
1556
|
+
equals(other) {
|
|
1557
|
+
if (this === other)
|
|
1558
|
+
return true;
|
|
1559
|
+
if (!(other instanceof Pair))
|
|
1560
|
+
return false;
|
|
1561
|
+
if (!equals(this.j9_1, other.j9_1))
|
|
1562
|
+
return false;
|
|
1563
|
+
if (!equals(this.k9_1, other.k9_1))
|
|
1564
|
+
return false;
|
|
1565
|
+
return true;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
//endregion
|
|
1569
|
+
function single(_this__u8e3s4) {
|
|
1570
|
+
var tmp;
|
|
1571
|
+
switch (_this__u8e3s4.length) {
|
|
1572
|
+
case 0:
|
|
1573
|
+
throw NoSuchElementException.g('Array is empty.');
|
|
1574
|
+
case 1:
|
|
1575
|
+
tmp = _this__u8e3s4[0];
|
|
1576
|
+
break;
|
|
1577
|
+
default:
|
|
1578
|
+
throw IllegalArgumentException.k('Array has more than one element.');
|
|
1579
|
+
}
|
|
1580
|
+
return tmp;
|
|
1581
|
+
}
|
|
1582
|
+
function indexOf(_this__u8e3s4, element) {
|
|
1583
|
+
if (element == null) {
|
|
1584
|
+
var inductionVariable = 0;
|
|
1585
|
+
var last = _this__u8e3s4.length - 1 | 0;
|
|
1586
|
+
if (inductionVariable <= last)
|
|
1587
|
+
do {
|
|
1588
|
+
var index = inductionVariable;
|
|
1589
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1590
|
+
if (_this__u8e3s4[index] == null) {
|
|
1591
|
+
return index;
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
while (inductionVariable <= last);
|
|
1595
|
+
} else {
|
|
1596
|
+
var inductionVariable_0 = 0;
|
|
1597
|
+
var last_0 = _this__u8e3s4.length - 1 | 0;
|
|
1598
|
+
if (inductionVariable_0 <= last_0)
|
|
1599
|
+
do {
|
|
1600
|
+
var index_0 = inductionVariable_0;
|
|
1601
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
1602
|
+
if (equals(element, _this__u8e3s4[index_0])) {
|
|
1603
|
+
return index_0;
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1606
|
+
while (inductionVariable_0 <= last_0);
|
|
1607
|
+
}
|
|
1608
|
+
return -1;
|
|
1609
|
+
}
|
|
1610
|
+
function toCollection(_this__u8e3s4, destination) {
|
|
1611
|
+
var inductionVariable = 0;
|
|
1612
|
+
var last = _this__u8e3s4.length;
|
|
1613
|
+
while (inductionVariable < last) {
|
|
1614
|
+
var item = _this__u8e3s4[inductionVariable];
|
|
1615
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1616
|
+
destination.l(item);
|
|
1617
|
+
}
|
|
1618
|
+
return destination;
|
|
1619
|
+
}
|
|
1620
|
+
function joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
|
|
1621
|
+
separator = separator === VOID ? ', ' : separator;
|
|
1622
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
1623
|
+
postfix = postfix === VOID ? '' : postfix;
|
|
1624
|
+
limit = limit === VOID ? -1 : limit;
|
|
1625
|
+
truncated = truncated === VOID ? '...' : truncated;
|
|
1626
|
+
transform = transform === VOID ? null : transform;
|
|
1627
|
+
return joinTo(_this__u8e3s4, StringBuilder.n(), separator, prefix, postfix, limit, truncated, transform).toString();
|
|
1628
|
+
}
|
|
1629
|
+
function joinTo(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
|
|
1630
|
+
separator = separator === VOID ? ', ' : separator;
|
|
1631
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
1632
|
+
postfix = postfix === VOID ? '' : postfix;
|
|
1633
|
+
limit = limit === VOID ? -1 : limit;
|
|
1634
|
+
truncated = truncated === VOID ? '...' : truncated;
|
|
1635
|
+
transform = transform === VOID ? null : transform;
|
|
1636
|
+
buffer.o(prefix);
|
|
1637
|
+
var count = 0;
|
|
1638
|
+
var inductionVariable = 0;
|
|
1639
|
+
var last = _this__u8e3s4.length;
|
|
1640
|
+
$l$loop: while (inductionVariable < last) {
|
|
1641
|
+
var element = _this__u8e3s4[inductionVariable];
|
|
1642
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1643
|
+
count = count + 1 | 0;
|
|
1644
|
+
if (count > 1) {
|
|
1645
|
+
buffer.o(separator);
|
|
1646
|
+
}
|
|
1647
|
+
if (limit < 0 || count <= limit) {
|
|
1648
|
+
appendElement(buffer, element, transform);
|
|
1649
|
+
} else
|
|
1650
|
+
break $l$loop;
|
|
1651
|
+
}
|
|
1652
|
+
if (limit >= 0 && count > limit) {
|
|
1653
|
+
buffer.o(truncated);
|
|
1654
|
+
}
|
|
1655
|
+
buffer.o(postfix);
|
|
1656
|
+
return buffer;
|
|
1657
|
+
}
|
|
1658
|
+
function joinToString_0(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
|
|
1659
|
+
separator = separator === VOID ? ', ' : separator;
|
|
1660
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
1661
|
+
postfix = postfix === VOID ? '' : postfix;
|
|
1662
|
+
limit = limit === VOID ? -1 : limit;
|
|
1663
|
+
truncated = truncated === VOID ? '...' : truncated;
|
|
1664
|
+
transform = transform === VOID ? null : transform;
|
|
1665
|
+
return joinTo_0(_this__u8e3s4, StringBuilder.n(), separator, prefix, postfix, limit, truncated, transform).toString();
|
|
1666
|
+
}
|
|
1667
|
+
function joinTo_0(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
|
|
1668
|
+
separator = separator === VOID ? ', ' : separator;
|
|
1669
|
+
prefix = prefix === VOID ? '' : prefix;
|
|
1670
|
+
postfix = postfix === VOID ? '' : postfix;
|
|
1671
|
+
limit = limit === VOID ? -1 : limit;
|
|
1672
|
+
truncated = truncated === VOID ? '...' : truncated;
|
|
1673
|
+
transform = transform === VOID ? null : transform;
|
|
1674
|
+
buffer.o(prefix);
|
|
1675
|
+
var count = 0;
|
|
1676
|
+
var _iterator__ex2g4s = _this__u8e3s4.p();
|
|
1677
|
+
$l$loop: while (_iterator__ex2g4s.q()) {
|
|
1678
|
+
var element = _iterator__ex2g4s.r();
|
|
1679
|
+
count = count + 1 | 0;
|
|
1680
|
+
if (count > 1) {
|
|
1681
|
+
buffer.o(separator);
|
|
1682
|
+
}
|
|
1683
|
+
if (limit < 0 || count <= limit) {
|
|
1684
|
+
appendElement(buffer, element, transform);
|
|
1685
|
+
} else
|
|
1686
|
+
break $l$loop;
|
|
1687
|
+
}
|
|
1688
|
+
if (limit >= 0 && count > limit) {
|
|
1689
|
+
buffer.o(truncated);
|
|
1690
|
+
}
|
|
1691
|
+
buffer.o(postfix);
|
|
1692
|
+
return buffer;
|
|
1693
|
+
}
|
|
1694
|
+
function getOrNull(_this__u8e3s4, index) {
|
|
1695
|
+
return (0 <= index ? index < _this__u8e3s4.t() : false) ? _this__u8e3s4.s(index) : null;
|
|
1696
|
+
}
|
|
1697
|
+
function toList(_this__u8e3s4) {
|
|
1698
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
1699
|
+
var tmp;
|
|
1700
|
+
switch (_this__u8e3s4.t()) {
|
|
1701
|
+
case 0:
|
|
1702
|
+
tmp = emptyList();
|
|
1703
|
+
break;
|
|
1704
|
+
case 1:
|
|
1705
|
+
var tmp_0;
|
|
1706
|
+
if (isInterface(_this__u8e3s4, KtList)) {
|
|
1707
|
+
tmp_0 = _this__u8e3s4.s(0);
|
|
1708
|
+
} else {
|
|
1709
|
+
tmp_0 = _this__u8e3s4.p().r();
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
tmp = listOf(tmp_0);
|
|
1713
|
+
break;
|
|
1714
|
+
default:
|
|
1715
|
+
tmp = toMutableList(_this__u8e3s4);
|
|
1716
|
+
break;
|
|
1717
|
+
}
|
|
1718
|
+
return tmp;
|
|
1719
|
+
}
|
|
1720
|
+
return optimizeReadOnlyList(toMutableList_0(_this__u8e3s4));
|
|
1721
|
+
}
|
|
1722
|
+
function singleOrNull(_this__u8e3s4) {
|
|
1723
|
+
return _this__u8e3s4.t() === 1 ? _this__u8e3s4.s(0) : null;
|
|
1724
|
+
}
|
|
1725
|
+
function single_0(_this__u8e3s4) {
|
|
1726
|
+
var tmp;
|
|
1727
|
+
switch (_this__u8e3s4.t()) {
|
|
1728
|
+
case 0:
|
|
1729
|
+
throw NoSuchElementException.g('List is empty.');
|
|
1730
|
+
case 1:
|
|
1731
|
+
tmp = _this__u8e3s4.s(0);
|
|
1732
|
+
break;
|
|
1733
|
+
default:
|
|
1734
|
+
throw IllegalArgumentException.k('List has more than one element.');
|
|
1735
|
+
}
|
|
1736
|
+
return tmp;
|
|
1737
|
+
}
|
|
1738
|
+
function drop(_this__u8e3s4, n) {
|
|
1739
|
+
// Inline function 'kotlin.require' call
|
|
1740
|
+
if (!(n >= 0)) {
|
|
1741
|
+
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
1742
|
+
throw IllegalArgumentException.k(toString_1(message));
|
|
1743
|
+
}
|
|
1744
|
+
if (n === 0)
|
|
1745
|
+
return toList(_this__u8e3s4);
|
|
1746
|
+
var list;
|
|
1747
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
1748
|
+
var resultSize = _this__u8e3s4.t() - n | 0;
|
|
1749
|
+
if (resultSize <= 0)
|
|
1750
|
+
return emptyList();
|
|
1751
|
+
if (resultSize === 1)
|
|
1752
|
+
return listOf(last(_this__u8e3s4));
|
|
1753
|
+
list = ArrayList.y(resultSize);
|
|
1754
|
+
if (isInterface(_this__u8e3s4, KtList)) {
|
|
1755
|
+
if (isInterface(_this__u8e3s4, RandomAccess)) {
|
|
1756
|
+
var inductionVariable = n;
|
|
1757
|
+
var last_0 = _this__u8e3s4.t();
|
|
1758
|
+
if (inductionVariable < last_0)
|
|
1759
|
+
do {
|
|
1760
|
+
var index = inductionVariable;
|
|
1761
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
1762
|
+
list.l(_this__u8e3s4.s(index));
|
|
1763
|
+
}
|
|
1764
|
+
while (inductionVariable < last_0);
|
|
1765
|
+
} else {
|
|
1766
|
+
// Inline function 'kotlin.collections.iterator' call
|
|
1767
|
+
var _iterator__ex2g4s = _this__u8e3s4.z(n);
|
|
1768
|
+
while (_iterator__ex2g4s.q()) {
|
|
1769
|
+
var item = _iterator__ex2g4s.r();
|
|
1770
|
+
list.l(item);
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
return list;
|
|
1774
|
+
}
|
|
1775
|
+
} else {
|
|
1776
|
+
list = ArrayList.x();
|
|
1777
|
+
}
|
|
1778
|
+
var count = 0;
|
|
1779
|
+
var _iterator__ex2g4s_0 = _this__u8e3s4.p();
|
|
1780
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
1781
|
+
var item_0 = _iterator__ex2g4s_0.r();
|
|
1782
|
+
if (count >= n)
|
|
1783
|
+
list.l(item_0);
|
|
1784
|
+
else {
|
|
1785
|
+
count = count + 1 | 0;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
return optimizeReadOnlyList(list);
|
|
1789
|
+
}
|
|
1790
|
+
function minOrNull(_this__u8e3s4) {
|
|
1791
|
+
var iterator = _this__u8e3s4.p();
|
|
1792
|
+
if (!iterator.q())
|
|
1793
|
+
return null;
|
|
1794
|
+
var min = iterator.r();
|
|
1795
|
+
while (iterator.q()) {
|
|
1796
|
+
var e = iterator.r();
|
|
1797
|
+
if (compareTo(min, e) > 0)
|
|
1798
|
+
min = e;
|
|
1799
|
+
}
|
|
1800
|
+
return min;
|
|
1801
|
+
}
|
|
1802
|
+
function single_1(_this__u8e3s4) {
|
|
1803
|
+
if (isInterface(_this__u8e3s4, KtList))
|
|
1804
|
+
return single_0(_this__u8e3s4);
|
|
1805
|
+
else {
|
|
1806
|
+
var iterator = _this__u8e3s4.p();
|
|
1807
|
+
if (!iterator.q())
|
|
1808
|
+
throw NoSuchElementException.g('Collection is empty.');
|
|
1809
|
+
var single = iterator.r();
|
|
1810
|
+
if (iterator.q())
|
|
1811
|
+
throw IllegalArgumentException.k('Collection has more than one element.');
|
|
1812
|
+
return single;
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
function toSet(_this__u8e3s4) {
|
|
1816
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
1817
|
+
var tmp;
|
|
1818
|
+
switch (_this__u8e3s4.t()) {
|
|
1819
|
+
case 0:
|
|
1820
|
+
tmp = emptySet();
|
|
1821
|
+
break;
|
|
1822
|
+
case 1:
|
|
1823
|
+
var tmp_0;
|
|
1824
|
+
if (isInterface(_this__u8e3s4, KtList)) {
|
|
1825
|
+
tmp_0 = _this__u8e3s4.s(0);
|
|
1826
|
+
} else {
|
|
1827
|
+
tmp_0 = _this__u8e3s4.p().r();
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
tmp = setOf(tmp_0);
|
|
1831
|
+
break;
|
|
1832
|
+
default:
|
|
1833
|
+
tmp = toCollection_0(_this__u8e3s4, LinkedHashSet.b1(mapCapacity(_this__u8e3s4.t())));
|
|
1834
|
+
break;
|
|
1835
|
+
}
|
|
1836
|
+
return tmp;
|
|
1837
|
+
}
|
|
1838
|
+
return optimizeReadOnlySet(toCollection_0(_this__u8e3s4, LinkedHashSet.c1()));
|
|
1839
|
+
}
|
|
1840
|
+
function toMutableList(_this__u8e3s4) {
|
|
1841
|
+
return ArrayList.d1(_this__u8e3s4);
|
|
1842
|
+
}
|
|
1843
|
+
function toMutableList_0(_this__u8e3s4) {
|
|
1844
|
+
if (isInterface(_this__u8e3s4, Collection))
|
|
1845
|
+
return toMutableList(_this__u8e3s4);
|
|
1846
|
+
return toCollection_0(_this__u8e3s4, ArrayList.x());
|
|
1847
|
+
}
|
|
1848
|
+
function last(_this__u8e3s4) {
|
|
1849
|
+
if (isInterface(_this__u8e3s4, KtList))
|
|
1850
|
+
return last_0(_this__u8e3s4);
|
|
1851
|
+
else {
|
|
1852
|
+
var iterator = _this__u8e3s4.p();
|
|
1853
|
+
if (!iterator.q())
|
|
1854
|
+
throw NoSuchElementException.g('Collection is empty.');
|
|
1855
|
+
var last = iterator.r();
|
|
1856
|
+
while (iterator.q())
|
|
1857
|
+
last = iterator.r();
|
|
1858
|
+
return last;
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
function toCollection_0(_this__u8e3s4, destination) {
|
|
1862
|
+
var _iterator__ex2g4s = _this__u8e3s4.p();
|
|
1863
|
+
while (_iterator__ex2g4s.q()) {
|
|
1864
|
+
var item = _iterator__ex2g4s.r();
|
|
1865
|
+
destination.l(item);
|
|
1866
|
+
}
|
|
1867
|
+
return destination;
|
|
1868
|
+
}
|
|
1869
|
+
function last_0(_this__u8e3s4) {
|
|
1870
|
+
if (_this__u8e3s4.e1())
|
|
1871
|
+
throw NoSuchElementException.g('List is empty.');
|
|
1872
|
+
return _this__u8e3s4.s(get_lastIndex(_this__u8e3s4));
|
|
1873
|
+
}
|
|
1874
|
+
function until(_this__u8e3s4, to) {
|
|
1875
|
+
if (to <= -2147483648)
|
|
1876
|
+
return Companion_getInstance_5().f1_1;
|
|
1877
|
+
return numberRangeToNumber(_this__u8e3s4, to - 1 | 0);
|
|
1878
|
+
}
|
|
1879
|
+
function coerceAtMost(_this__u8e3s4, maximumValue) {
|
|
1880
|
+
return _this__u8e3s4 > maximumValue ? maximumValue : _this__u8e3s4;
|
|
1881
|
+
}
|
|
1882
|
+
function downTo(_this__u8e3s4, to) {
|
|
1883
|
+
return Companion_instance_6.g1(_this__u8e3s4, to, -1);
|
|
1884
|
+
}
|
|
1885
|
+
function coerceAtLeast(_this__u8e3s4, minimumValue) {
|
|
1886
|
+
return _this__u8e3s4 < minimumValue ? minimumValue : _this__u8e3s4;
|
|
1887
|
+
}
|
|
1888
|
+
function coerceIn(_this__u8e3s4, minimumValue, maximumValue) {
|
|
1889
|
+
if (minimumValue > maximumValue)
|
|
1890
|
+
throw IllegalArgumentException.k('Cannot coerce value to an empty range: maximum ' + maximumValue + ' is less than minimum ' + minimumValue + '.');
|
|
1891
|
+
if (_this__u8e3s4 < minimumValue)
|
|
1892
|
+
return minimumValue;
|
|
1893
|
+
if (_this__u8e3s4 > maximumValue)
|
|
1894
|
+
return maximumValue;
|
|
1895
|
+
return _this__u8e3s4;
|
|
1896
|
+
}
|
|
1897
|
+
function asIterable(_this__u8e3s4) {
|
|
1898
|
+
// Inline function 'kotlin.collections.Iterable' call
|
|
1899
|
+
return new asIterable$$inlined$Iterable$1(_this__u8e3s4);
|
|
1900
|
+
}
|
|
1901
|
+
function toList_0(_this__u8e3s4) {
|
|
1902
|
+
var it = _this__u8e3s4.p();
|
|
1903
|
+
if (!it.q())
|
|
1904
|
+
return emptyList();
|
|
1905
|
+
var element = it.r();
|
|
1906
|
+
if (!it.q())
|
|
1907
|
+
return listOf(element);
|
|
1908
|
+
var dst = ArrayList.x();
|
|
1909
|
+
dst.l(element);
|
|
1910
|
+
while (it.q()) {
|
|
1911
|
+
dst.l(it.r());
|
|
1912
|
+
}
|
|
1913
|
+
return dst;
|
|
1914
|
+
}
|
|
1915
|
+
function take(_this__u8e3s4, n) {
|
|
1916
|
+
// Inline function 'kotlin.require' call
|
|
1917
|
+
if (!(n >= 0)) {
|
|
1918
|
+
var message = 'Requested character count ' + n + ' is less than zero.';
|
|
1919
|
+
throw IllegalArgumentException.k(toString_1(message));
|
|
1920
|
+
}
|
|
1921
|
+
return substring(_this__u8e3s4, 0, coerceAtMost(n, _this__u8e3s4.length));
|
|
1922
|
+
}
|
|
1923
|
+
function slice(_this__u8e3s4, indices) {
|
|
1924
|
+
if (indices.e1())
|
|
1925
|
+
return '';
|
|
1926
|
+
return substring_2(_this__u8e3s4, indices);
|
|
1927
|
+
}
|
|
1928
|
+
function drop_0(_this__u8e3s4, n) {
|
|
1929
|
+
// Inline function 'kotlin.require' call
|
|
1930
|
+
if (!(n >= 0)) {
|
|
1931
|
+
var message = 'Requested character count ' + n + ' is less than zero.';
|
|
1932
|
+
throw IllegalArgumentException.k(toString_1(message));
|
|
1933
|
+
}
|
|
1934
|
+
return substring_0(_this__u8e3s4, coerceAtMost(n, _this__u8e3s4.length));
|
|
1935
|
+
}
|
|
1936
|
+
function _Char___init__impl__6a9atx(value) {
|
|
1937
|
+
return value;
|
|
1938
|
+
}
|
|
1939
|
+
function _get_value__a43j40($this) {
|
|
1940
|
+
return $this;
|
|
1941
|
+
}
|
|
1942
|
+
function Char__compareTo_impl_ypi4mb($this, other) {
|
|
1943
|
+
return _get_value__a43j40($this) - _get_value__a43j40(other) | 0;
|
|
1944
|
+
}
|
|
1945
|
+
function Char__toInt_impl_vasixd($this) {
|
|
1946
|
+
return _get_value__a43j40($this);
|
|
1947
|
+
}
|
|
1948
|
+
function toString($this) {
|
|
1949
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1950
|
+
return String.fromCharCode(_get_value__a43j40($this));
|
|
1951
|
+
}
|
|
1952
|
+
function toString_0(_this__u8e3s4) {
|
|
1953
|
+
var tmp1_elvis_lhs = _this__u8e3s4 == null ? null : toString_1(_this__u8e3s4);
|
|
1954
|
+
return tmp1_elvis_lhs == null ? 'null' : tmp1_elvis_lhs;
|
|
1955
|
+
}
|
|
1956
|
+
var Companion_instance;
|
|
1957
|
+
function Companion_getInstance() {
|
|
1958
|
+
if (Companion_instance === VOID)
|
|
1959
|
+
new Companion();
|
|
1960
|
+
return Companion_instance;
|
|
1961
|
+
}
|
|
1962
|
+
function abs(_this__u8e3s4) {
|
|
1963
|
+
var tmp;
|
|
1964
|
+
// Inline function 'kotlin.js.internal.isNegative' call
|
|
1965
|
+
if (_this__u8e3s4 < 0) {
|
|
1966
|
+
// Inline function 'kotlin.js.internal.unaryMinus' call
|
|
1967
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1968
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
1969
|
+
tmp = -_this__u8e3s4;
|
|
1970
|
+
} else {
|
|
1971
|
+
tmp = _this__u8e3s4;
|
|
1972
|
+
}
|
|
1973
|
+
return tmp;
|
|
1974
|
+
}
|
|
1975
|
+
function charArrayOf(arr) {
|
|
1976
|
+
var tmp0 = 'CharArray';
|
|
1977
|
+
// Inline function 'withType' call
|
|
1978
|
+
var array = new Uint16Array(arr);
|
|
1979
|
+
array.$type$ = tmp0;
|
|
1980
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
1981
|
+
return array;
|
|
1982
|
+
}
|
|
1983
|
+
function get_buf() {
|
|
1984
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
1985
|
+
return buf;
|
|
1986
|
+
}
|
|
1987
|
+
var buf;
|
|
1988
|
+
function get_bufFloat64() {
|
|
1989
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
1990
|
+
return bufFloat64;
|
|
1991
|
+
}
|
|
1992
|
+
var bufFloat64;
|
|
1993
|
+
var bufFloat32;
|
|
1994
|
+
function get_bufInt32() {
|
|
1995
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
1996
|
+
return bufInt32;
|
|
1997
|
+
}
|
|
1998
|
+
var bufInt32;
|
|
1999
|
+
function get_lowIndex() {
|
|
2000
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
2001
|
+
return lowIndex;
|
|
2002
|
+
}
|
|
2003
|
+
var lowIndex;
|
|
2004
|
+
function get_highIndex() {
|
|
2005
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
2006
|
+
return highIndex;
|
|
2007
|
+
}
|
|
2008
|
+
var highIndex;
|
|
2009
|
+
function getNumberHashCode(obj) {
|
|
2010
|
+
_init_properties_bitUtils_kt__nfcg4k();
|
|
2011
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
2012
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2013
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2014
|
+
if ((obj | 0) === obj) {
|
|
2015
|
+
return numberToInt(obj);
|
|
2016
|
+
}
|
|
2017
|
+
get_bufFloat64()[0] = obj;
|
|
2018
|
+
return imul_0(get_bufInt32()[get_highIndex()], 31) + get_bufInt32()[get_lowIndex()] | 0;
|
|
2019
|
+
}
|
|
2020
|
+
var properties_initialized_bitUtils_kt_i2bo3e;
|
|
2021
|
+
function _init_properties_bitUtils_kt__nfcg4k() {
|
|
2022
|
+
if (!properties_initialized_bitUtils_kt_i2bo3e) {
|
|
2023
|
+
properties_initialized_bitUtils_kt_i2bo3e = true;
|
|
2024
|
+
buf = new ArrayBuffer(8);
|
|
2025
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2026
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2027
|
+
bufFloat64 = new Float64Array(get_buf());
|
|
2028
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2029
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2030
|
+
bufFloat32 = new Float32Array(get_buf());
|
|
2031
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2032
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2033
|
+
bufInt32 = new Int32Array(get_buf());
|
|
2034
|
+
// Inline function 'kotlin.run' call
|
|
2035
|
+
get_bufFloat64()[0] = -1.0;
|
|
2036
|
+
lowIndex = !(get_bufInt32()[0] === 0) ? 1 : 0;
|
|
2037
|
+
highIndex = 1 - get_lowIndex() | 0;
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
function get_ZERO() {
|
|
2041
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2042
|
+
return ZERO;
|
|
2043
|
+
}
|
|
2044
|
+
var ZERO;
|
|
2045
|
+
function get_ONE() {
|
|
2046
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2047
|
+
return ONE;
|
|
2048
|
+
}
|
|
2049
|
+
var ONE;
|
|
2050
|
+
function get_NEG_ONE() {
|
|
2051
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2052
|
+
return NEG_ONE;
|
|
2053
|
+
}
|
|
2054
|
+
var NEG_ONE;
|
|
2055
|
+
function get_MAX_VALUE() {
|
|
2056
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2057
|
+
return MAX_VALUE;
|
|
2058
|
+
}
|
|
2059
|
+
var MAX_VALUE;
|
|
2060
|
+
function get_MIN_VALUE() {
|
|
2061
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2062
|
+
return MIN_VALUE;
|
|
2063
|
+
}
|
|
2064
|
+
var MIN_VALUE;
|
|
2065
|
+
function get_TWO_PWR_24_() {
|
|
2066
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2067
|
+
return TWO_PWR_24_;
|
|
2068
|
+
}
|
|
2069
|
+
var TWO_PWR_24_;
|
|
2070
|
+
var longArrayClass;
|
|
2071
|
+
function compare(_this__u8e3s4, other) {
|
|
2072
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2073
|
+
if (equalsLong(_this__u8e3s4, other)) {
|
|
2074
|
+
return 0;
|
|
2075
|
+
}
|
|
2076
|
+
var thisNeg = isNegative(_this__u8e3s4);
|
|
2077
|
+
var otherNeg = isNegative(other);
|
|
2078
|
+
return thisNeg && !otherNeg ? -1 : !thisNeg && otherNeg ? 1 : isNegative(subtract(_this__u8e3s4, other)) ? -1 : 1;
|
|
2079
|
+
}
|
|
2080
|
+
function convertToInt(_this__u8e3s4) {
|
|
2081
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2082
|
+
return _this__u8e3s4.w1_1;
|
|
2083
|
+
}
|
|
2084
|
+
function toNumber(_this__u8e3s4) {
|
|
2085
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2086
|
+
return _this__u8e3s4.x1_1 * 4.294967296E9 + getLowBitsUnsigned(_this__u8e3s4);
|
|
2087
|
+
}
|
|
2088
|
+
function toStringImpl(_this__u8e3s4, radix) {
|
|
2089
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2090
|
+
if (isZero(_this__u8e3s4)) {
|
|
2091
|
+
return '0';
|
|
2092
|
+
}
|
|
2093
|
+
if (isNegative(_this__u8e3s4)) {
|
|
2094
|
+
if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) {
|
|
2095
|
+
var radixLong = fromInt(radix);
|
|
2096
|
+
var div = divide(_this__u8e3s4, radixLong);
|
|
2097
|
+
var rem = convertToInt(subtract(multiply(div, radixLong), _this__u8e3s4));
|
|
2098
|
+
var tmp = toStringImpl(div, radix);
|
|
2099
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2100
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2101
|
+
return tmp + rem.toString(radix);
|
|
2102
|
+
} else {
|
|
2103
|
+
return '-' + toStringImpl(negate(_this__u8e3s4), radix);
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
var digitsPerTime = radix === 2 ? 31 : radix <= 10 ? 9 : radix <= 21 ? 7 : radix <= 35 ? 6 : 5;
|
|
2107
|
+
var radixToPower = fromNumber(Math.pow(radix, digitsPerTime));
|
|
2108
|
+
var rem_0 = _this__u8e3s4;
|
|
2109
|
+
var result = '';
|
|
2110
|
+
while (true) {
|
|
2111
|
+
var remDiv = divide(rem_0, radixToPower);
|
|
2112
|
+
var intval = convertToInt(subtract(rem_0, multiply(remDiv, radixToPower)));
|
|
2113
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2114
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2115
|
+
var digits = intval.toString(radix);
|
|
2116
|
+
rem_0 = remDiv;
|
|
2117
|
+
if (isZero(rem_0)) {
|
|
2118
|
+
return digits + result;
|
|
2119
|
+
} else {
|
|
2120
|
+
while (digits.length < digitsPerTime) {
|
|
2121
|
+
digits = '0' + digits;
|
|
2122
|
+
}
|
|
2123
|
+
result = digits + result;
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
function equalsLong(_this__u8e3s4, other) {
|
|
2128
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2129
|
+
return _this__u8e3s4.x1_1 === other.x1_1 && _this__u8e3s4.w1_1 === other.w1_1;
|
|
2130
|
+
}
|
|
2131
|
+
function hashCode(l) {
|
|
2132
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2133
|
+
return l.w1_1 ^ l.x1_1;
|
|
2134
|
+
}
|
|
2135
|
+
function fromInt(value) {
|
|
2136
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2137
|
+
return new Long(value, value < 0 ? -1 : 0);
|
|
2138
|
+
}
|
|
2139
|
+
function isNegative(_this__u8e3s4) {
|
|
2140
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2141
|
+
return _this__u8e3s4.x1_1 < 0;
|
|
2142
|
+
}
|
|
2143
|
+
function subtract(_this__u8e3s4, other) {
|
|
2144
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2145
|
+
return add(_this__u8e3s4, negate(other));
|
|
2146
|
+
}
|
|
2147
|
+
function getLowBitsUnsigned(_this__u8e3s4) {
|
|
2148
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2149
|
+
return _this__u8e3s4.w1_1 >= 0 ? _this__u8e3s4.w1_1 : 4.294967296E9 + _this__u8e3s4.w1_1;
|
|
2150
|
+
}
|
|
2151
|
+
function isZero(_this__u8e3s4) {
|
|
2152
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2153
|
+
return _this__u8e3s4.x1_1 === 0 && _this__u8e3s4.w1_1 === 0;
|
|
2154
|
+
}
|
|
2155
|
+
function multiply(_this__u8e3s4, other) {
|
|
2156
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2157
|
+
if (isZero(_this__u8e3s4)) {
|
|
2158
|
+
return get_ZERO();
|
|
2159
|
+
} else if (isZero(other)) {
|
|
2160
|
+
return get_ZERO();
|
|
2161
|
+
}
|
|
2162
|
+
if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) {
|
|
2163
|
+
return isOdd(other) ? get_MIN_VALUE() : get_ZERO();
|
|
2164
|
+
} else if (equalsLong(other, get_MIN_VALUE())) {
|
|
2165
|
+
return isOdd(_this__u8e3s4) ? get_MIN_VALUE() : get_ZERO();
|
|
2166
|
+
}
|
|
2167
|
+
if (isNegative(_this__u8e3s4)) {
|
|
2168
|
+
var tmp;
|
|
2169
|
+
if (isNegative(other)) {
|
|
2170
|
+
tmp = multiply(negate(_this__u8e3s4), negate(other));
|
|
2171
|
+
} else {
|
|
2172
|
+
tmp = negate(multiply(negate(_this__u8e3s4), other));
|
|
2173
|
+
}
|
|
2174
|
+
return tmp;
|
|
2175
|
+
} else if (isNegative(other)) {
|
|
2176
|
+
return negate(multiply(_this__u8e3s4, negate(other)));
|
|
2177
|
+
}
|
|
2178
|
+
if (lessThan(_this__u8e3s4, get_TWO_PWR_24_()) && lessThan(other, get_TWO_PWR_24_())) {
|
|
2179
|
+
return fromNumber(toNumber(_this__u8e3s4) * toNumber(other));
|
|
2180
|
+
}
|
|
2181
|
+
var a48 = _this__u8e3s4.x1_1 >>> 16 | 0;
|
|
2182
|
+
var a32 = _this__u8e3s4.x1_1 & 65535;
|
|
2183
|
+
var a16 = _this__u8e3s4.w1_1 >>> 16 | 0;
|
|
2184
|
+
var a00 = _this__u8e3s4.w1_1 & 65535;
|
|
2185
|
+
var b48 = other.x1_1 >>> 16 | 0;
|
|
2186
|
+
var b32 = other.x1_1 & 65535;
|
|
2187
|
+
var b16 = other.w1_1 >>> 16 | 0;
|
|
2188
|
+
var b00 = other.w1_1 & 65535;
|
|
2189
|
+
var c48 = 0;
|
|
2190
|
+
var c32 = 0;
|
|
2191
|
+
var c16 = 0;
|
|
2192
|
+
var c00 = 0;
|
|
2193
|
+
c00 = c00 + imul_0(a00, b00) | 0;
|
|
2194
|
+
c16 = c16 + (c00 >>> 16 | 0) | 0;
|
|
2195
|
+
c00 = c00 & 65535;
|
|
2196
|
+
c16 = c16 + imul_0(a16, b00) | 0;
|
|
2197
|
+
c32 = c32 + (c16 >>> 16 | 0) | 0;
|
|
2198
|
+
c16 = c16 & 65535;
|
|
2199
|
+
c16 = c16 + imul_0(a00, b16) | 0;
|
|
2200
|
+
c32 = c32 + (c16 >>> 16 | 0) | 0;
|
|
2201
|
+
c16 = c16 & 65535;
|
|
2202
|
+
c32 = c32 + imul_0(a32, b00) | 0;
|
|
2203
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
2204
|
+
c32 = c32 & 65535;
|
|
2205
|
+
c32 = c32 + imul_0(a16, b16) | 0;
|
|
2206
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
2207
|
+
c32 = c32 & 65535;
|
|
2208
|
+
c32 = c32 + imul_0(a00, b32) | 0;
|
|
2209
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
2210
|
+
c32 = c32 & 65535;
|
|
2211
|
+
c48 = c48 + (((imul_0(a48, b00) + imul_0(a32, b16) | 0) + imul_0(a16, b32) | 0) + imul_0(a00, b48) | 0) | 0;
|
|
2212
|
+
c48 = c48 & 65535;
|
|
2213
|
+
return new Long(c16 << 16 | c00, c48 << 16 | c32);
|
|
2214
|
+
}
|
|
2215
|
+
function negate(_this__u8e3s4) {
|
|
2216
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2217
|
+
return add(invert(_this__u8e3s4), new Long(1, 0));
|
|
2218
|
+
}
|
|
2219
|
+
function fromNumber(value) {
|
|
2220
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2221
|
+
if (isNaN_0(value)) {
|
|
2222
|
+
return get_ZERO();
|
|
2223
|
+
} else if (value <= -9.223372036854776E18) {
|
|
2224
|
+
return get_MIN_VALUE();
|
|
2225
|
+
} else if (value + 1 >= 9.223372036854776E18) {
|
|
2226
|
+
return get_MAX_VALUE();
|
|
2227
|
+
} else if (value < 0) {
|
|
2228
|
+
return negate(fromNumber(-value));
|
|
2229
|
+
} else {
|
|
2230
|
+
var twoPwr32 = 4.294967296E9;
|
|
2231
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
2232
|
+
var tmp = value % twoPwr32 | 0;
|
|
2233
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
2234
|
+
var tmp$ret$1 = value / twoPwr32 | 0;
|
|
2235
|
+
return new Long(tmp, tmp$ret$1);
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
function add(_this__u8e3s4, other) {
|
|
2239
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2240
|
+
var a48 = _this__u8e3s4.x1_1 >>> 16 | 0;
|
|
2241
|
+
var a32 = _this__u8e3s4.x1_1 & 65535;
|
|
2242
|
+
var a16 = _this__u8e3s4.w1_1 >>> 16 | 0;
|
|
2243
|
+
var a00 = _this__u8e3s4.w1_1 & 65535;
|
|
2244
|
+
var b48 = other.x1_1 >>> 16 | 0;
|
|
2245
|
+
var b32 = other.x1_1 & 65535;
|
|
2246
|
+
var b16 = other.w1_1 >>> 16 | 0;
|
|
2247
|
+
var b00 = other.w1_1 & 65535;
|
|
2248
|
+
var c48 = 0;
|
|
2249
|
+
var c32 = 0;
|
|
2250
|
+
var c16 = 0;
|
|
2251
|
+
var c00 = 0;
|
|
2252
|
+
c00 = c00 + (a00 + b00 | 0) | 0;
|
|
2253
|
+
c16 = c16 + (c00 >>> 16 | 0) | 0;
|
|
2254
|
+
c00 = c00 & 65535;
|
|
2255
|
+
c16 = c16 + (a16 + b16 | 0) | 0;
|
|
2256
|
+
c32 = c32 + (c16 >>> 16 | 0) | 0;
|
|
2257
|
+
c16 = c16 & 65535;
|
|
2258
|
+
c32 = c32 + (a32 + b32 | 0) | 0;
|
|
2259
|
+
c48 = c48 + (c32 >>> 16 | 0) | 0;
|
|
2260
|
+
c32 = c32 & 65535;
|
|
2261
|
+
c48 = c48 + (a48 + b48 | 0) | 0;
|
|
2262
|
+
c48 = c48 & 65535;
|
|
2263
|
+
return new Long(c16 << 16 | c00, c48 << 16 | c32);
|
|
2264
|
+
}
|
|
2265
|
+
function isOdd(_this__u8e3s4) {
|
|
2266
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2267
|
+
return (_this__u8e3s4.w1_1 & 1) === 1;
|
|
2268
|
+
}
|
|
2269
|
+
function lessThan(_this__u8e3s4, other) {
|
|
2270
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2271
|
+
return compare(_this__u8e3s4, other) < 0;
|
|
2272
|
+
}
|
|
2273
|
+
function invert(_this__u8e3s4) {
|
|
2274
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2275
|
+
return new Long(~_this__u8e3s4.w1_1, ~_this__u8e3s4.x1_1);
|
|
2276
|
+
}
|
|
2277
|
+
function divide(_this__u8e3s4, other) {
|
|
2278
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2279
|
+
if (isZero(other)) {
|
|
2280
|
+
throw Exception.c2('division by zero');
|
|
2281
|
+
} else if (isZero(_this__u8e3s4)) {
|
|
2282
|
+
return get_ZERO();
|
|
2283
|
+
}
|
|
2284
|
+
if (equalsLong(_this__u8e3s4, get_MIN_VALUE())) {
|
|
2285
|
+
if (equalsLong(other, get_ONE()) || equalsLong(other, get_NEG_ONE())) {
|
|
2286
|
+
return get_MIN_VALUE();
|
|
2287
|
+
} else if (equalsLong(other, get_MIN_VALUE())) {
|
|
2288
|
+
return get_ONE();
|
|
2289
|
+
} else {
|
|
2290
|
+
var halfThis = shiftRight(_this__u8e3s4, 1);
|
|
2291
|
+
var approx = shiftLeft(divide(halfThis, other), 1);
|
|
2292
|
+
if (equalsLong(approx, get_ZERO())) {
|
|
2293
|
+
return isNegative(other) ? get_ONE() : get_NEG_ONE();
|
|
2294
|
+
} else {
|
|
2295
|
+
var rem = subtract(_this__u8e3s4, multiply(other, approx));
|
|
2296
|
+
return add(approx, divide(rem, other));
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
} else if (equalsLong(other, get_MIN_VALUE())) {
|
|
2300
|
+
return get_ZERO();
|
|
2301
|
+
}
|
|
2302
|
+
if (isNegative(_this__u8e3s4)) {
|
|
2303
|
+
var tmp;
|
|
2304
|
+
if (isNegative(other)) {
|
|
2305
|
+
tmp = divide(negate(_this__u8e3s4), negate(other));
|
|
2306
|
+
} else {
|
|
2307
|
+
tmp = negate(divide(negate(_this__u8e3s4), other));
|
|
2308
|
+
}
|
|
2309
|
+
return tmp;
|
|
2310
|
+
} else if (isNegative(other)) {
|
|
2311
|
+
return negate(divide(_this__u8e3s4, negate(other)));
|
|
2312
|
+
}
|
|
2313
|
+
var res = get_ZERO();
|
|
2314
|
+
var rem_0 = _this__u8e3s4;
|
|
2315
|
+
while (greaterThanOrEqual(rem_0, other)) {
|
|
2316
|
+
var approxDouble = toNumber(rem_0) / toNumber(other);
|
|
2317
|
+
var approx2 = Math.max(1.0, Math.floor(approxDouble));
|
|
2318
|
+
var log2 = Math.ceil(Math.log(approx2) / Math.LN2);
|
|
2319
|
+
var delta = log2 <= 48 ? 1.0 : Math.pow(2.0, log2 - 48);
|
|
2320
|
+
var approxRes = fromNumber(approx2);
|
|
2321
|
+
var approxRem = multiply(approxRes, other);
|
|
2322
|
+
while (isNegative(approxRem) || greaterThan(approxRem, rem_0)) {
|
|
2323
|
+
approx2 = approx2 - delta;
|
|
2324
|
+
approxRes = fromNumber(approx2);
|
|
2325
|
+
approxRem = multiply(approxRes, other);
|
|
2326
|
+
}
|
|
2327
|
+
if (isZero(approxRes)) {
|
|
2328
|
+
approxRes = get_ONE();
|
|
2329
|
+
}
|
|
2330
|
+
res = add(res, approxRes);
|
|
2331
|
+
rem_0 = subtract(rem_0, approxRem);
|
|
2332
|
+
}
|
|
2333
|
+
return res;
|
|
2334
|
+
}
|
|
2335
|
+
function shiftRight(_this__u8e3s4, numBits) {
|
|
2336
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2337
|
+
var numBits_0 = numBits & 63;
|
|
2338
|
+
if (numBits_0 === 0) {
|
|
2339
|
+
return _this__u8e3s4;
|
|
2340
|
+
} else {
|
|
2341
|
+
if (numBits_0 < 32) {
|
|
2342
|
+
return new Long(_this__u8e3s4.w1_1 >>> numBits_0 | 0 | _this__u8e3s4.x1_1 << (32 - numBits_0 | 0), _this__u8e3s4.x1_1 >> numBits_0);
|
|
2343
|
+
} else {
|
|
2344
|
+
return new Long(_this__u8e3s4.x1_1 >> (numBits_0 - 32 | 0), _this__u8e3s4.x1_1 >= 0 ? 0 : -1);
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
function shiftLeft(_this__u8e3s4, numBits) {
|
|
2349
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2350
|
+
var numBits_0 = numBits & 63;
|
|
2351
|
+
if (numBits_0 === 0) {
|
|
2352
|
+
return _this__u8e3s4;
|
|
2353
|
+
} else {
|
|
2354
|
+
if (numBits_0 < 32) {
|
|
2355
|
+
return new Long(_this__u8e3s4.w1_1 << numBits_0, _this__u8e3s4.x1_1 << numBits_0 | (_this__u8e3s4.w1_1 >>> (32 - numBits_0 | 0) | 0));
|
|
2356
|
+
} else {
|
|
2357
|
+
return new Long(0, _this__u8e3s4.w1_1 << (numBits_0 - 32 | 0));
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
}
|
|
2361
|
+
function greaterThan(_this__u8e3s4, other) {
|
|
2362
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2363
|
+
return compare(_this__u8e3s4, other) > 0;
|
|
2364
|
+
}
|
|
2365
|
+
function greaterThanOrEqual(_this__u8e3s4, other) {
|
|
2366
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2367
|
+
return compare(_this__u8e3s4, other) >= 0;
|
|
2368
|
+
}
|
|
2369
|
+
function isLongArray(a) {
|
|
2370
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2371
|
+
return isJsArray(a) && a.$type$ === 'LongArray';
|
|
2372
|
+
}
|
|
2373
|
+
function longArrayClass$lambda(it) {
|
|
2374
|
+
_init_properties_boxedLong_kt__v24qrw();
|
|
2375
|
+
return !(it == null) ? isLongArray(it) : false;
|
|
2376
|
+
}
|
|
2377
|
+
var properties_initialized_boxedLong_kt_lfwt2;
|
|
2378
|
+
function _init_properties_boxedLong_kt__v24qrw() {
|
|
2379
|
+
if (!properties_initialized_boxedLong_kt_lfwt2) {
|
|
2380
|
+
properties_initialized_boxedLong_kt_lfwt2 = true;
|
|
2381
|
+
ZERO = fromInt(0);
|
|
2382
|
+
ONE = fromInt(1);
|
|
2383
|
+
NEG_ONE = fromInt(-1);
|
|
2384
|
+
MAX_VALUE = new Long(-1, 2147483647);
|
|
2385
|
+
MIN_VALUE = new Long(0, -2147483648);
|
|
2386
|
+
TWO_PWR_24_ = fromInt(16777216);
|
|
2387
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2388
|
+
var tmp = Array;
|
|
2389
|
+
longArrayClass = new PrimitiveKClassImpl(tmp, 'LongArray', longArrayClass$lambda);
|
|
2390
|
+
}
|
|
2391
|
+
}
|
|
2392
|
+
function charSequenceGet(a, index) {
|
|
2393
|
+
var tmp;
|
|
2394
|
+
if (isString(a)) {
|
|
2395
|
+
tmp = charCodeAt(a, index);
|
|
2396
|
+
} else {
|
|
2397
|
+
tmp = a.b(index);
|
|
2398
|
+
}
|
|
2399
|
+
return tmp;
|
|
2400
|
+
}
|
|
2401
|
+
function isString(a) {
|
|
2402
|
+
return typeof a === 'string';
|
|
2403
|
+
}
|
|
2404
|
+
function charCodeAt(_this__u8e3s4, index) {
|
|
2405
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2406
|
+
return _this__u8e3s4.charCodeAt(index);
|
|
2407
|
+
}
|
|
2408
|
+
function charSequenceLength(a) {
|
|
2409
|
+
var tmp;
|
|
2410
|
+
if (isString(a)) {
|
|
2411
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2412
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2413
|
+
tmp = a.length;
|
|
2414
|
+
} else {
|
|
2415
|
+
tmp = a.a();
|
|
2416
|
+
}
|
|
2417
|
+
return tmp;
|
|
2418
|
+
}
|
|
2419
|
+
function charSequenceSubSequence(a, startIndex, endIndex) {
|
|
2420
|
+
var tmp;
|
|
2421
|
+
if (isString(a)) {
|
|
2422
|
+
tmp = substring(a, startIndex, endIndex);
|
|
2423
|
+
} else {
|
|
2424
|
+
tmp = a.c(startIndex, endIndex);
|
|
2425
|
+
}
|
|
2426
|
+
return tmp;
|
|
2427
|
+
}
|
|
2428
|
+
function arrayToString(array) {
|
|
2429
|
+
return joinToString(array, ', ', '[', ']', VOID, VOID, arrayToString$lambda);
|
|
2430
|
+
}
|
|
2431
|
+
function contentEqualsInternal(_this__u8e3s4, other) {
|
|
2432
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2433
|
+
var a = _this__u8e3s4;
|
|
2434
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2435
|
+
var b = other;
|
|
2436
|
+
if (a === b)
|
|
2437
|
+
return true;
|
|
2438
|
+
if (a == null || b == null || !isArrayish(b) || a.length != b.length)
|
|
2439
|
+
return false;
|
|
2440
|
+
var inductionVariable = 0;
|
|
2441
|
+
var last = a.length;
|
|
2442
|
+
if (inductionVariable < last)
|
|
2443
|
+
do {
|
|
2444
|
+
var i = inductionVariable;
|
|
2445
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2446
|
+
if (!equals(a[i], b[i])) {
|
|
2447
|
+
return false;
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2450
|
+
while (inductionVariable < last);
|
|
2451
|
+
return true;
|
|
2452
|
+
}
|
|
2453
|
+
function contentHashCodeInternal(_this__u8e3s4) {
|
|
2454
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2455
|
+
var a = _this__u8e3s4;
|
|
2456
|
+
if (a == null)
|
|
2457
|
+
return 0;
|
|
2458
|
+
var result = 1;
|
|
2459
|
+
var inductionVariable = 0;
|
|
2460
|
+
var last = a.length;
|
|
2461
|
+
if (inductionVariable < last)
|
|
2462
|
+
do {
|
|
2463
|
+
var i = inductionVariable;
|
|
2464
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2465
|
+
result = imul_0(result, 31) + hashCode_0(a[i]) | 0;
|
|
2466
|
+
}
|
|
2467
|
+
while (inductionVariable < last);
|
|
2468
|
+
return result;
|
|
2469
|
+
}
|
|
2470
|
+
function arrayToString$lambda(it) {
|
|
2471
|
+
return toString_1(it);
|
|
2472
|
+
}
|
|
2473
|
+
function compareTo(a, b) {
|
|
2474
|
+
var tmp;
|
|
2475
|
+
switch (typeof a) {
|
|
2476
|
+
case 'number':
|
|
2477
|
+
var tmp_0;
|
|
2478
|
+
if (typeof b === 'number') {
|
|
2479
|
+
tmp_0 = doubleCompareTo(a, b);
|
|
2480
|
+
} else {
|
|
2481
|
+
if (b instanceof Long) {
|
|
2482
|
+
tmp_0 = doubleCompareTo(a, toNumber(b));
|
|
2483
|
+
} else {
|
|
2484
|
+
tmp_0 = primitiveCompareTo(a, b);
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
tmp = tmp_0;
|
|
2489
|
+
break;
|
|
2490
|
+
case 'string':
|
|
2491
|
+
case 'boolean':
|
|
2492
|
+
case 'bigint':
|
|
2493
|
+
tmp = primitiveCompareTo(a, b);
|
|
2494
|
+
break;
|
|
2495
|
+
default:
|
|
2496
|
+
tmp = compareToDoNotIntrinsicify(a, b);
|
|
2497
|
+
break;
|
|
2498
|
+
}
|
|
2499
|
+
return tmp;
|
|
2500
|
+
}
|
|
2501
|
+
function doubleCompareTo(a, b) {
|
|
2502
|
+
var tmp;
|
|
2503
|
+
if (a < b) {
|
|
2504
|
+
tmp = -1;
|
|
2505
|
+
} else if (a > b) {
|
|
2506
|
+
tmp = 1;
|
|
2507
|
+
} else if (a === b) {
|
|
2508
|
+
var tmp_0;
|
|
2509
|
+
if (a !== 0) {
|
|
2510
|
+
tmp_0 = 0;
|
|
2511
|
+
} else {
|
|
2512
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2513
|
+
var ia = 1 / a;
|
|
2514
|
+
var tmp_1;
|
|
2515
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2516
|
+
if (ia === 1 / b) {
|
|
2517
|
+
tmp_1 = 0;
|
|
2518
|
+
} else {
|
|
2519
|
+
if (ia < 0) {
|
|
2520
|
+
tmp_1 = -1;
|
|
2521
|
+
} else {
|
|
2522
|
+
tmp_1 = 1;
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
tmp_0 = tmp_1;
|
|
2526
|
+
}
|
|
2527
|
+
tmp = tmp_0;
|
|
2528
|
+
} else if (a !== a) {
|
|
2529
|
+
tmp = b !== b ? 0 : 1;
|
|
2530
|
+
} else {
|
|
2531
|
+
tmp = -1;
|
|
2532
|
+
}
|
|
2533
|
+
return tmp;
|
|
2534
|
+
}
|
|
2535
|
+
function primitiveCompareTo(a, b) {
|
|
2536
|
+
return a < b ? -1 : a > b ? 1 : 0;
|
|
2537
|
+
}
|
|
2538
|
+
function compareToDoNotIntrinsicify(a, b) {
|
|
2539
|
+
return a.z1(b);
|
|
2540
|
+
}
|
|
2541
|
+
function getObjectHashCode(obj) {
|
|
2542
|
+
// Inline function 'kotlin.js.jsIn' call
|
|
2543
|
+
if (!('kotlinHashCodeValue$' in obj)) {
|
|
2544
|
+
var hash = calculateRandomHash();
|
|
2545
|
+
var descriptor = new Object();
|
|
2546
|
+
descriptor.value = hash;
|
|
2547
|
+
descriptor.enumerable = false;
|
|
2548
|
+
Object.defineProperty(obj, 'kotlinHashCodeValue$', descriptor);
|
|
2549
|
+
}
|
|
2550
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2551
|
+
return obj['kotlinHashCodeValue$'];
|
|
2552
|
+
}
|
|
2553
|
+
function calculateRandomHash() {
|
|
2554
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
2555
|
+
return Math.random() * 4.294967296E9 | 0;
|
|
2556
|
+
}
|
|
2557
|
+
function defineProp(obj, name, getter, setter, enumerable) {
|
|
2558
|
+
return Object.defineProperty(obj, name, {configurable: true, get: getter, set: setter, enumerable: enumerable});
|
|
2559
|
+
}
|
|
2560
|
+
function toString_1(o) {
|
|
2561
|
+
var tmp;
|
|
2562
|
+
if (o == null) {
|
|
2563
|
+
tmp = 'null';
|
|
2564
|
+
} else if (isArrayish(o)) {
|
|
2565
|
+
tmp = '[...]';
|
|
2566
|
+
} else if (!(typeof o.toString === 'function')) {
|
|
2567
|
+
tmp = anyToString(o);
|
|
2568
|
+
} else {
|
|
2569
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2570
|
+
tmp = o.toString();
|
|
2571
|
+
}
|
|
2572
|
+
return tmp;
|
|
2573
|
+
}
|
|
2574
|
+
function anyToString(o) {
|
|
2575
|
+
return Object.prototype.toString.call(o);
|
|
2576
|
+
}
|
|
2577
|
+
function equals(obj1, obj2) {
|
|
2578
|
+
if (obj1 == null) {
|
|
2579
|
+
return obj2 == null;
|
|
2580
|
+
}
|
|
2581
|
+
if (obj2 == null) {
|
|
2582
|
+
return false;
|
|
2583
|
+
}
|
|
2584
|
+
if (typeof obj1 === 'object' && typeof obj1.equals === 'function') {
|
|
2585
|
+
return obj1.equals(obj2);
|
|
2586
|
+
}
|
|
2587
|
+
if (obj1 !== obj1) {
|
|
2588
|
+
return obj2 !== obj2;
|
|
2589
|
+
}
|
|
2590
|
+
if (typeof obj1 === 'number' && typeof obj2 === 'number') {
|
|
2591
|
+
var tmp;
|
|
2592
|
+
if (obj1 === obj2) {
|
|
2593
|
+
var tmp_0;
|
|
2594
|
+
if (obj1 !== 0) {
|
|
2595
|
+
tmp_0 = true;
|
|
2596
|
+
} else {
|
|
2597
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2598
|
+
var tmp_1 = 1 / obj1;
|
|
2599
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2600
|
+
tmp_0 = tmp_1 === 1 / obj2;
|
|
2601
|
+
}
|
|
2602
|
+
tmp = tmp_0;
|
|
2603
|
+
} else {
|
|
2604
|
+
tmp = false;
|
|
2605
|
+
}
|
|
2606
|
+
return tmp;
|
|
2607
|
+
}
|
|
2608
|
+
if (isCallableReference(obj1) && isCallableReference(obj2)) {
|
|
2609
|
+
if (obj1 === obj2)
|
|
2610
|
+
return true;
|
|
2611
|
+
if (obj1.$id != obj2.$id)
|
|
2612
|
+
return false;
|
|
2613
|
+
if (obj1.$flags != obj2.$flags)
|
|
2614
|
+
return false;
|
|
2615
|
+
if (obj1.$arity != obj2.$arity)
|
|
2616
|
+
return false;
|
|
2617
|
+
if (obj1.$bound == null && obj2.$bound == null)
|
|
2618
|
+
return true;
|
|
2619
|
+
if (obj1.$bound === obj2.$bound)
|
|
2620
|
+
return true;
|
|
2621
|
+
if (!isJsArray(obj1.$bound) || !isJsArray(obj2.$bound))
|
|
2622
|
+
return false;
|
|
2623
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2624
|
+
var bound1 = obj1.$bound;
|
|
2625
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2626
|
+
var bound2 = obj2.$bound;
|
|
2627
|
+
return contentEqualsInternal(bound1, bound2);
|
|
2628
|
+
}
|
|
2629
|
+
return obj1 === obj2;
|
|
2630
|
+
}
|
|
2631
|
+
function hashCode_0(obj) {
|
|
2632
|
+
if (obj == null)
|
|
2633
|
+
return 0;
|
|
2634
|
+
var typeOf = typeof obj;
|
|
2635
|
+
var tmp;
|
|
2636
|
+
switch (typeOf) {
|
|
2637
|
+
case 'object':
|
|
2638
|
+
tmp = 'function' === typeof obj.hashCode ? obj.hashCode() : getObjectHashCode(obj);
|
|
2639
|
+
break;
|
|
2640
|
+
case 'function':
|
|
2641
|
+
tmp = isCallableReference(obj) ? getCallableReferenceHashCode(obj) : getObjectHashCode(obj);
|
|
2642
|
+
break;
|
|
2643
|
+
case 'number':
|
|
2644
|
+
tmp = getNumberHashCode(obj);
|
|
2645
|
+
break;
|
|
2646
|
+
case 'boolean':
|
|
2647
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2648
|
+
|
|
2649
|
+
tmp = getBooleanHashCode(obj);
|
|
2650
|
+
break;
|
|
2651
|
+
case 'string':
|
|
2652
|
+
tmp = getStringHashCode(String(obj));
|
|
2653
|
+
break;
|
|
2654
|
+
case 'bigint':
|
|
2655
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2656
|
+
|
|
2657
|
+
tmp = getBigIntHashCode(obj);
|
|
2658
|
+
break;
|
|
2659
|
+
case 'symbol':
|
|
2660
|
+
tmp = getSymbolHashCode(obj);
|
|
2661
|
+
break;
|
|
2662
|
+
default:
|
|
2663
|
+
tmp = function () {
|
|
2664
|
+
throw new Error('Unexpected typeof `' + typeOf + '`');
|
|
2665
|
+
}();
|
|
2666
|
+
break;
|
|
2667
|
+
}
|
|
2668
|
+
return tmp;
|
|
2669
|
+
}
|
|
2670
|
+
function getCallableReferenceHashCode(obj) {
|
|
2671
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2672
|
+
var hash = obj.$flags;
|
|
2673
|
+
hash = imul_0(31, hash) + hashCode_0(obj.$id) | 0;
|
|
2674
|
+
var tmp = imul_0(31, hash);
|
|
2675
|
+
var tmp0_elvis_lhs = obj.$arity;
|
|
2676
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2677
|
+
hash = tmp + (tmp0_elvis_lhs == null ? -1 : tmp0_elvis_lhs) | 0;
|
|
2678
|
+
var bound = obj.$bound;
|
|
2679
|
+
if (bound != null && isJsArray(bound)) {
|
|
2680
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2681
|
+
var boundArray = bound;
|
|
2682
|
+
hash = imul_0(31, hash) + contentHashCodeInternal(boundArray) | 0;
|
|
2683
|
+
}
|
|
2684
|
+
return hash;
|
|
2685
|
+
}
|
|
2686
|
+
function getBooleanHashCode(value) {
|
|
2687
|
+
return value ? 1231 : 1237;
|
|
2688
|
+
}
|
|
2689
|
+
function getStringHashCode(str) {
|
|
2690
|
+
var hash = 0;
|
|
2691
|
+
var length = str.length;
|
|
2692
|
+
var inductionVariable = 0;
|
|
2693
|
+
var last = length - 1 | 0;
|
|
2694
|
+
if (inductionVariable <= last)
|
|
2695
|
+
do {
|
|
2696
|
+
var i = inductionVariable;
|
|
2697
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2698
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2699
|
+
var code = str.charCodeAt(i);
|
|
2700
|
+
hash = imul_0(hash, 31) + code | 0;
|
|
2701
|
+
}
|
|
2702
|
+
while (!(i === last));
|
|
2703
|
+
return hash;
|
|
2704
|
+
}
|
|
2705
|
+
function getBigIntHashCode(value) {
|
|
2706
|
+
var shiftNumber = BigInt(32);
|
|
2707
|
+
var mask = BigInt(4.294967295E9);
|
|
2708
|
+
var bigNumber = abs(value);
|
|
2709
|
+
var hashCode = 0;
|
|
2710
|
+
var tmp;
|
|
2711
|
+
// Inline function 'kotlin.js.internal.isNegative' call
|
|
2712
|
+
if (value < 0) {
|
|
2713
|
+
tmp = -1;
|
|
2714
|
+
} else {
|
|
2715
|
+
tmp = 1;
|
|
2716
|
+
}
|
|
2717
|
+
var signum = tmp;
|
|
2718
|
+
$l$loop: while (true) {
|
|
2719
|
+
// Inline function 'kotlin.js.internal.isZero' call
|
|
2720
|
+
if (!!(bigNumber == 0)) {
|
|
2721
|
+
break $l$loop;
|
|
2722
|
+
}
|
|
2723
|
+
// Inline function 'kotlin.js.internal.and' call
|
|
2724
|
+
// Inline function 'kotlin.js.jsBitwiseAnd' call
|
|
2725
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2726
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2727
|
+
// Inline function 'kotlin.js.internal.toNumber' call
|
|
2728
|
+
var self_0 = bigNumber & mask;
|
|
2729
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2730
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2731
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2732
|
+
var chunk = Number(self_0);
|
|
2733
|
+
hashCode = imul_0(31, hashCode) + chunk | 0;
|
|
2734
|
+
// Inline function 'kotlin.js.internal.shr' call
|
|
2735
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2736
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2737
|
+
bigNumber = bigNumber >> shiftNumber;
|
|
2738
|
+
}
|
|
2739
|
+
return imul_0(hashCode, signum);
|
|
2740
|
+
}
|
|
2741
|
+
function getSymbolHashCode(value) {
|
|
2742
|
+
var hashCodeMap = symbolIsSharable(value) ? getSymbolMap() : getSymbolWeakMap();
|
|
2743
|
+
var cachedHashCode = hashCodeMap.get(value);
|
|
2744
|
+
if (cachedHashCode !== VOID)
|
|
2745
|
+
return cachedHashCode;
|
|
2746
|
+
var hash = calculateRandomHash();
|
|
2747
|
+
hashCodeMap.set(value, hash);
|
|
2748
|
+
return hash;
|
|
2749
|
+
}
|
|
2750
|
+
function symbolIsSharable(symbol) {
|
|
2751
|
+
return Symbol.keyFor(symbol) != VOID;
|
|
2752
|
+
}
|
|
2753
|
+
function getSymbolMap() {
|
|
2754
|
+
if (symbolMap === VOID) {
|
|
2755
|
+
symbolMap = new Map();
|
|
2756
|
+
}
|
|
2757
|
+
return symbolMap;
|
|
2758
|
+
}
|
|
2759
|
+
function getSymbolWeakMap() {
|
|
2760
|
+
if (symbolWeakMap === VOID) {
|
|
2761
|
+
symbolWeakMap = new WeakMap();
|
|
2762
|
+
}
|
|
2763
|
+
return symbolWeakMap;
|
|
2764
|
+
}
|
|
2765
|
+
var symbolMap;
|
|
2766
|
+
var symbolWeakMap;
|
|
2767
|
+
function unboxIntrinsic(x) {
|
|
2768
|
+
// Inline function 'kotlin.error' call
|
|
2769
|
+
var message = 'Should be lowered';
|
|
2770
|
+
throw IllegalStateException.g2(toString_1(message));
|
|
2771
|
+
}
|
|
2772
|
+
function captureStack(instance, constructorFunction) {
|
|
2773
|
+
if (Error.captureStackTrace != null) {
|
|
2774
|
+
Error.captureStackTrace(instance, constructorFunction);
|
|
2775
|
+
} else {
|
|
2776
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2777
|
+
instance.stack = (new Error()).stack;
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
function protoOf(constructor) {
|
|
2781
|
+
return constructor.prototype;
|
|
2782
|
+
}
|
|
2783
|
+
function createThis(ctor, box) {
|
|
2784
|
+
var self_0 = Object.create(ctor.prototype);
|
|
2785
|
+
boxApply(self_0, box);
|
|
2786
|
+
return self_0;
|
|
2787
|
+
}
|
|
2788
|
+
function boxApply(self_0, box) {
|
|
2789
|
+
if (box !== VOID) {
|
|
2790
|
+
Object.assign(self_0, box);
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2793
|
+
function createExternalThis(ctor, superExternalCtor, parameters, box) {
|
|
2794
|
+
var tmp;
|
|
2795
|
+
if (box === VOID) {
|
|
2796
|
+
tmp = ctor;
|
|
2797
|
+
} else {
|
|
2798
|
+
var newCtor = class extends ctor {}
|
|
2799
|
+
Object.assign(newCtor.prototype, box);
|
|
2800
|
+
newCtor.constructor = ctor;
|
|
2801
|
+
tmp = newCtor;
|
|
2802
|
+
}
|
|
2803
|
+
var selfCtor = tmp;
|
|
2804
|
+
return Reflect.construct(superExternalCtor, parameters, selfCtor);
|
|
2805
|
+
}
|
|
2806
|
+
function isUndefined(value) {
|
|
2807
|
+
return value === VOID;
|
|
2808
|
+
}
|
|
2809
|
+
function setPropertiesToThrowableInstance(this_, message, cause) {
|
|
2810
|
+
this_.name = Object.getPrototypeOf(this_).constructor.name;
|
|
2811
|
+
if (message == null) {
|
|
2812
|
+
var tmp;
|
|
2813
|
+
if (isUndefined(message)) {
|
|
2814
|
+
var tmp1_elvis_lhs = cause == null ? null : cause.toString();
|
|
2815
|
+
tmp = tmp1_elvis_lhs == null ? VOID : tmp1_elvis_lhs;
|
|
2816
|
+
} else {
|
|
2817
|
+
tmp = VOID;
|
|
2818
|
+
}
|
|
2819
|
+
this_.message = tmp;
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
function THROW_NPE() {
|
|
2823
|
+
throw NullPointerException.k2();
|
|
2824
|
+
}
|
|
2825
|
+
function THROW_CCE() {
|
|
2826
|
+
throw ClassCastException.o2();
|
|
2827
|
+
}
|
|
2828
|
+
function ensureNotNull(v) {
|
|
2829
|
+
var tmp;
|
|
2830
|
+
if (v == null) {
|
|
2831
|
+
THROW_NPE();
|
|
2832
|
+
} else {
|
|
2833
|
+
tmp = v;
|
|
2834
|
+
}
|
|
2835
|
+
return tmp;
|
|
2836
|
+
}
|
|
2837
|
+
function jsGenerateInterfaceSymbol() {
|
|
2838
|
+
return generateInterfaceSymbolById();
|
|
2839
|
+
}
|
|
2840
|
+
function createMetadata(kind, name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity) {
|
|
2841
|
+
var undef = VOID;
|
|
2842
|
+
return {kind: kind, simpleName: name, associatedObjectKey: associatedObjectKey, associatedObjects: associatedObjects, suspendArity: suspendArity, $kClass$: undef, defaultConstructor: defaultConstructor};
|
|
2843
|
+
}
|
|
2844
|
+
function initMetadataForClass(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
2845
|
+
var kind = 'class';
|
|
2846
|
+
initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects);
|
|
2847
|
+
}
|
|
2848
|
+
function initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
2849
|
+
if (!(parent == null)) {
|
|
2850
|
+
ctor.prototype = Object.create(parent.prototype);
|
|
2851
|
+
ctor.prototype.constructor = ctor;
|
|
2852
|
+
}
|
|
2853
|
+
var metadata = createMetadata(kind, name, defaultConstructor, associatedObjectKey, associatedObjects, suspendArity);
|
|
2854
|
+
ctor.$metadata$ = metadata;
|
|
2855
|
+
var prototype = ctor.prototype;
|
|
2856
|
+
if (!(interfaces == null)) {
|
|
2857
|
+
var inductionVariable = 0;
|
|
2858
|
+
var last = interfaces.length;
|
|
2859
|
+
while (inductionVariable < last) {
|
|
2860
|
+
var i = interfaces[inductionVariable];
|
|
2861
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
2862
|
+
Object.assign(prototype, i.prototype);
|
|
2863
|
+
prototype[i.Symbol] = true;
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
if (kind === 'interface') {
|
|
2867
|
+
ctor.Symbol = Symbol();
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
function generateInterfaceSymbolById() {
|
|
2871
|
+
return '#__interface_' + generateInterfaceId();
|
|
2872
|
+
}
|
|
2873
|
+
function generateInterfaceId() {
|
|
2874
|
+
if (globalInterfaceId === VOID) {
|
|
2875
|
+
globalInterfaceId = 0;
|
|
2876
|
+
}
|
|
2877
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2878
|
+
globalInterfaceId = globalInterfaceId + 1 | 0;
|
|
2879
|
+
return globalInterfaceId;
|
|
2880
|
+
}
|
|
2881
|
+
var globalInterfaceId;
|
|
2882
|
+
function initMetadataForObject(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
2883
|
+
var kind = 'object';
|
|
2884
|
+
initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects);
|
|
2885
|
+
}
|
|
2886
|
+
function initMetadataForInterface(ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects) {
|
|
2887
|
+
var kind = 'interface';
|
|
2888
|
+
initMetadataFor(kind, ctor, name, defaultConstructor, parent, interfaces, suspendArity, associatedObjectKey, associatedObjects);
|
|
2889
|
+
}
|
|
2890
|
+
function initMetadataForLambda(ctor, parent, interfaces, suspendArity) {
|
|
2891
|
+
initMetadataForClass(ctor, 'Lambda', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
2892
|
+
}
|
|
2893
|
+
function initMetadataForCoroutine(ctor, parent, interfaces, suspendArity) {
|
|
2894
|
+
initMetadataForClass(ctor, 'Coroutine', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
2895
|
+
}
|
|
2896
|
+
function initMetadataForFunctionReference(ctor, parent, interfaces, suspendArity) {
|
|
2897
|
+
initMetadataForClass(ctor, 'FunctionReference', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
2898
|
+
}
|
|
2899
|
+
function initMetadataForCompanion(ctor, parent, interfaces, suspendArity) {
|
|
2900
|
+
initMetadataForObject(ctor, 'Companion', VOID, parent, interfaces, suspendArity, VOID, VOID);
|
|
2901
|
+
}
|
|
2902
|
+
function numberToInt(a) {
|
|
2903
|
+
var tmp;
|
|
2904
|
+
if (a instanceof Long) {
|
|
2905
|
+
tmp = convertToInt(a);
|
|
2906
|
+
} else {
|
|
2907
|
+
tmp = doubleToInt(a);
|
|
2908
|
+
}
|
|
2909
|
+
return tmp;
|
|
2910
|
+
}
|
|
2911
|
+
function doubleToInt(a) {
|
|
2912
|
+
var tmp;
|
|
2913
|
+
if (a > 2147483647) {
|
|
2914
|
+
tmp = 2147483647;
|
|
2915
|
+
} else if (a < -2147483648) {
|
|
2916
|
+
tmp = -2147483648;
|
|
2917
|
+
} else {
|
|
2918
|
+
// Inline function 'kotlin.js.jsBitwiseOr' call
|
|
2919
|
+
tmp = a | 0;
|
|
2920
|
+
}
|
|
2921
|
+
return tmp;
|
|
2922
|
+
}
|
|
2923
|
+
function numberRangeToNumber(start, endInclusive) {
|
|
2924
|
+
return new IntRange(start, endInclusive);
|
|
2925
|
+
}
|
|
2926
|
+
function isArrayish(o) {
|
|
2927
|
+
return isJsArray(o) || isView(o);
|
|
2928
|
+
}
|
|
2929
|
+
function isJsArray(obj) {
|
|
2930
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2931
|
+
return Array.isArray(obj);
|
|
2932
|
+
}
|
|
2933
|
+
function isCallableReference(value) {
|
|
2934
|
+
return typeof value === 'function' && value.$flags != null && value.$arity != null;
|
|
2935
|
+
}
|
|
2936
|
+
function isInterface(obj, iface) {
|
|
2937
|
+
return obj[iface.Symbol] === true;
|
|
2938
|
+
}
|
|
2939
|
+
function isCharSequence(value) {
|
|
2940
|
+
return typeof value === 'string' || isInterface(value, CharSequence);
|
|
2941
|
+
}
|
|
2942
|
+
function get_VOID() {
|
|
2943
|
+
_init_properties_void_kt__3zg9as();
|
|
2944
|
+
return VOID;
|
|
2945
|
+
}
|
|
2946
|
+
var VOID;
|
|
2947
|
+
var properties_initialized_void_kt_e4ret2;
|
|
2948
|
+
function _init_properties_void_kt__3zg9as() {
|
|
2949
|
+
if (!properties_initialized_void_kt_e4ret2) {
|
|
2950
|
+
properties_initialized_void_kt_e4ret2 = true;
|
|
2951
|
+
VOID = void 0;
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2954
|
+
function asList(_this__u8e3s4) {
|
|
2955
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
2956
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2957
|
+
return ArrayList.p2(_this__u8e3s4);
|
|
2958
|
+
}
|
|
2959
|
+
function copyOf(_this__u8e3s4, newSize) {
|
|
2960
|
+
// Inline function 'kotlin.require' call
|
|
2961
|
+
if (!(newSize >= 0)) {
|
|
2962
|
+
var message = 'Invalid new array size: ' + newSize + '.';
|
|
2963
|
+
throw IllegalArgumentException.k(toString_1(message));
|
|
2964
|
+
}
|
|
2965
|
+
var size = _this__u8e3s4.length;
|
|
2966
|
+
var tmp;
|
|
2967
|
+
if (newSize < 16 || size < 16) {
|
|
2968
|
+
tmp = fillFrom(_this__u8e3s4, new Int32Array(newSize));
|
|
2969
|
+
} else if (newSize > size) {
|
|
2970
|
+
// Inline function 'kotlin.also' call
|
|
2971
|
+
var this_0 = new Int32Array(newSize);
|
|
2972
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2973
|
+
this_0.set(_this__u8e3s4);
|
|
2974
|
+
tmp = this_0;
|
|
2975
|
+
} else {
|
|
2976
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
2977
|
+
tmp = _this__u8e3s4.slice(0, newSize);
|
|
2978
|
+
}
|
|
2979
|
+
return tmp;
|
|
2980
|
+
}
|
|
2981
|
+
function copyOf_0(_this__u8e3s4, newSize) {
|
|
2982
|
+
// Inline function 'kotlin.require' call
|
|
2983
|
+
if (!(newSize >= 0)) {
|
|
2984
|
+
var message = 'Invalid new array size: ' + newSize + '.';
|
|
2985
|
+
throw IllegalArgumentException.k(toString_1(message));
|
|
2986
|
+
}
|
|
2987
|
+
return arrayCopyResize(_this__u8e3s4, newSize, null);
|
|
2988
|
+
}
|
|
2989
|
+
function isWhitespaceImpl(_this__u8e3s4) {
|
|
2990
|
+
// Inline function 'kotlin.code' call
|
|
2991
|
+
var ch = Char__toInt_impl_vasixd(_this__u8e3s4);
|
|
2992
|
+
return (9 <= ch ? ch <= 13 : false) || (28 <= ch ? ch <= 32 : false) || ch === 160 || (ch > 4096 && (ch === 5760 || (8192 <= ch ? ch <= 8202 : false) || ch === 8232 || ch === 8233 || ch === 8239 || ch === 8287 || ch === 12288));
|
|
2993
|
+
}
|
|
2994
|
+
function asList_0(_this__u8e3s4) {
|
|
2995
|
+
return asList$1.r2(_this__u8e3s4);
|
|
2996
|
+
}
|
|
2997
|
+
function isNaN_0(_this__u8e3s4) {
|
|
2998
|
+
return !(_this__u8e3s4 === _this__u8e3s4);
|
|
2999
|
+
}
|
|
3000
|
+
function takeHighestOneBit(_this__u8e3s4) {
|
|
3001
|
+
var tmp;
|
|
3002
|
+
if (_this__u8e3s4 === 0) {
|
|
3003
|
+
tmp = 0;
|
|
3004
|
+
} else {
|
|
3005
|
+
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
3006
|
+
tmp = 1 << (31 - clz32(_this__u8e3s4) | 0);
|
|
3007
|
+
}
|
|
3008
|
+
return tmp;
|
|
3009
|
+
}
|
|
3010
|
+
var Unit_instance;
|
|
3011
|
+
function Unit_getInstance() {
|
|
3012
|
+
return Unit_instance;
|
|
3013
|
+
}
|
|
3014
|
+
function collectionToArray(collection) {
|
|
3015
|
+
return collectionToArrayCommonImpl(collection);
|
|
3016
|
+
}
|
|
3017
|
+
function listOf(element) {
|
|
3018
|
+
// Inline function 'kotlin.arrayOf' call
|
|
3019
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3020
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3021
|
+
var tmp$ret$0 = [element];
|
|
3022
|
+
return ArrayList.p2(tmp$ret$0);
|
|
3023
|
+
}
|
|
3024
|
+
function checkIndexOverflow(index) {
|
|
3025
|
+
if (index < 0) {
|
|
3026
|
+
throwIndexOverflow();
|
|
3027
|
+
}
|
|
3028
|
+
return index;
|
|
3029
|
+
}
|
|
3030
|
+
function setOf(element) {
|
|
3031
|
+
return hashSetOf([element]);
|
|
3032
|
+
}
|
|
3033
|
+
function mapCapacity(expectedSize) {
|
|
3034
|
+
return expectedSize;
|
|
3035
|
+
}
|
|
3036
|
+
function copyToArray(collection) {
|
|
3037
|
+
var tmp;
|
|
3038
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3039
|
+
if (collection.toArray !== undefined) {
|
|
3040
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3041
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3042
|
+
tmp = collection.toArray();
|
|
3043
|
+
} else {
|
|
3044
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3045
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3046
|
+
tmp = collectionToArray(collection);
|
|
3047
|
+
}
|
|
3048
|
+
return tmp;
|
|
3049
|
+
}
|
|
3050
|
+
function arrayOfUninitializedElements(capacity) {
|
|
3051
|
+
// Inline function 'kotlin.require' call
|
|
3052
|
+
if (!(capacity >= 0)) {
|
|
3053
|
+
var message = 'capacity must be non-negative.';
|
|
3054
|
+
throw IllegalArgumentException.k(toString_1(message));
|
|
3055
|
+
}
|
|
3056
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
3057
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3058
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3059
|
+
return Array(capacity);
|
|
3060
|
+
}
|
|
3061
|
+
function resetRange(_this__u8e3s4, fromIndex, toIndex) {
|
|
3062
|
+
// Inline function 'kotlin.js.nativeFill' call
|
|
3063
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3064
|
+
_this__u8e3s4.fill(null, fromIndex, toIndex);
|
|
3065
|
+
}
|
|
3066
|
+
function copyOfUninitializedElements(_this__u8e3s4, newSize) {
|
|
3067
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3068
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3069
|
+
return copyOf_0(_this__u8e3s4, newSize);
|
|
3070
|
+
}
|
|
3071
|
+
var Companion_instance_0;
|
|
3072
|
+
function Companion_getInstance_0() {
|
|
3073
|
+
if (Companion_instance_0 === VOID)
|
|
3074
|
+
new Companion_0();
|
|
3075
|
+
return Companion_instance_0;
|
|
3076
|
+
}
|
|
3077
|
+
function rangeCheck($this, index) {
|
|
3078
|
+
// Inline function 'kotlin.apply' call
|
|
3079
|
+
Companion_instance_3.t3(index, $this.t());
|
|
3080
|
+
return index;
|
|
3081
|
+
}
|
|
3082
|
+
function insertionRangeCheck($this, index) {
|
|
3083
|
+
// Inline function 'kotlin.apply' call
|
|
3084
|
+
Companion_instance_3.j3(index, $this.t());
|
|
3085
|
+
return index;
|
|
3086
|
+
}
|
|
3087
|
+
function init_kotlin_collections_HashSet(_this__u8e3s4) {
|
|
3088
|
+
}
|
|
3089
|
+
function computeHashSize($this, capacity) {
|
|
3090
|
+
return takeHighestOneBit(imul_0(coerceAtLeast(capacity, 1), 3));
|
|
3091
|
+
}
|
|
3092
|
+
function computeShift($this, hashSize) {
|
|
3093
|
+
// Inline function 'kotlin.countLeadingZeroBits' call
|
|
3094
|
+
return clz32(hashSize) + 1 | 0;
|
|
3095
|
+
}
|
|
3096
|
+
function checkForComodification($this) {
|
|
3097
|
+
if (!($this.d5_1.p4_1 === $this.f5_1))
|
|
3098
|
+
throw ConcurrentModificationException.c5('The backing map has been modified after this entry was obtained.');
|
|
3099
|
+
}
|
|
3100
|
+
function _get_capacity__a9k9f3($this) {
|
|
3101
|
+
return $this.i4_1.length;
|
|
3102
|
+
}
|
|
3103
|
+
function _get_hashSize__tftcho($this) {
|
|
3104
|
+
return $this.l4_1.length;
|
|
3105
|
+
}
|
|
3106
|
+
function registerModification($this) {
|
|
3107
|
+
$this.p4_1 = $this.p4_1 + 1 | 0;
|
|
3108
|
+
}
|
|
3109
|
+
function ensureExtraCapacity($this, n) {
|
|
3110
|
+
if (shouldCompact($this, n)) {
|
|
3111
|
+
compact($this, true);
|
|
3112
|
+
} else {
|
|
3113
|
+
ensureCapacity($this, $this.n4_1 + n | 0);
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
function shouldCompact($this, extraCapacity) {
|
|
3117
|
+
var spareCapacity = _get_capacity__a9k9f3($this) - $this.n4_1 | 0;
|
|
3118
|
+
var gaps = $this.n4_1 - $this.t() | 0;
|
|
3119
|
+
return spareCapacity < extraCapacity && (gaps + spareCapacity | 0) >= extraCapacity && gaps >= (_get_capacity__a9k9f3($this) / 4 | 0);
|
|
3120
|
+
}
|
|
3121
|
+
function ensureCapacity($this, minCapacity) {
|
|
3122
|
+
if (minCapacity < 0)
|
|
3123
|
+
throw RuntimeException.i5('too many elements');
|
|
3124
|
+
if (minCapacity > _get_capacity__a9k9f3($this)) {
|
|
3125
|
+
var newSize = Companion_instance_3.j5(_get_capacity__a9k9f3($this), minCapacity);
|
|
3126
|
+
$this.i4_1 = copyOfUninitializedElements($this.i4_1, newSize);
|
|
3127
|
+
var tmp = $this;
|
|
3128
|
+
var tmp0_safe_receiver = $this.j4_1;
|
|
3129
|
+
tmp.j4_1 = tmp0_safe_receiver == null ? null : copyOfUninitializedElements(tmp0_safe_receiver, newSize);
|
|
3130
|
+
$this.k4_1 = copyOf($this.k4_1, newSize);
|
|
3131
|
+
var newHashSize = computeHashSize(Companion_instance_1, newSize);
|
|
3132
|
+
if (newHashSize > _get_hashSize__tftcho($this)) {
|
|
3133
|
+
rehash($this, newHashSize);
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
function allocateValuesArray($this) {
|
|
3138
|
+
var curValuesArray = $this.j4_1;
|
|
3139
|
+
if (!(curValuesArray == null))
|
|
3140
|
+
return curValuesArray;
|
|
3141
|
+
var newValuesArray = arrayOfUninitializedElements(_get_capacity__a9k9f3($this));
|
|
3142
|
+
$this.j4_1 = newValuesArray;
|
|
3143
|
+
return newValuesArray;
|
|
3144
|
+
}
|
|
3145
|
+
function hash($this, key) {
|
|
3146
|
+
return key == null ? 0 : imul_0(hashCode_0(key), -1640531527) >>> $this.o4_1 | 0;
|
|
3147
|
+
}
|
|
3148
|
+
function compact($this, updateHashArray) {
|
|
3149
|
+
var i = 0;
|
|
3150
|
+
var j = 0;
|
|
3151
|
+
var valuesArray = $this.j4_1;
|
|
3152
|
+
while (i < $this.n4_1) {
|
|
3153
|
+
var hash = $this.k4_1[i];
|
|
3154
|
+
if (hash >= 0) {
|
|
3155
|
+
$this.i4_1[j] = $this.i4_1[i];
|
|
3156
|
+
if (!(valuesArray == null)) {
|
|
3157
|
+
valuesArray[j] = valuesArray[i];
|
|
3158
|
+
}
|
|
3159
|
+
if (updateHashArray) {
|
|
3160
|
+
$this.k4_1[j] = hash;
|
|
3161
|
+
$this.l4_1[hash] = j + 1 | 0;
|
|
3162
|
+
}
|
|
3163
|
+
j = j + 1 | 0;
|
|
3164
|
+
}
|
|
3165
|
+
i = i + 1 | 0;
|
|
3166
|
+
}
|
|
3167
|
+
resetRange($this.i4_1, j, $this.n4_1);
|
|
3168
|
+
if (valuesArray == null)
|
|
3169
|
+
null;
|
|
3170
|
+
else {
|
|
3171
|
+
resetRange(valuesArray, j, $this.n4_1);
|
|
3172
|
+
}
|
|
3173
|
+
$this.n4_1 = j;
|
|
3174
|
+
}
|
|
3175
|
+
function rehash($this, newHashSize) {
|
|
3176
|
+
registerModification($this);
|
|
3177
|
+
if ($this.n4_1 > $this.q4_1) {
|
|
3178
|
+
compact($this, false);
|
|
3179
|
+
}
|
|
3180
|
+
$this.l4_1 = new Int32Array(newHashSize);
|
|
3181
|
+
$this.o4_1 = computeShift(Companion_instance_1, newHashSize);
|
|
3182
|
+
var i = 0;
|
|
3183
|
+
while (i < $this.n4_1) {
|
|
3184
|
+
var _unary__edvuaz = i;
|
|
3185
|
+
i = _unary__edvuaz + 1 | 0;
|
|
3186
|
+
if (!putRehash($this, _unary__edvuaz)) {
|
|
3187
|
+
throw IllegalStateException.g2('This cannot happen with fixed magic multiplier and grow-only hash array. Have object hashCodes changed?');
|
|
3188
|
+
}
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
function putRehash($this, i) {
|
|
3192
|
+
var hash_0 = hash($this, $this.i4_1[i]);
|
|
3193
|
+
var probesLeft = $this.m4_1;
|
|
3194
|
+
while (true) {
|
|
3195
|
+
var index = $this.l4_1[hash_0];
|
|
3196
|
+
if (index === 0) {
|
|
3197
|
+
$this.l4_1[hash_0] = i + 1 | 0;
|
|
3198
|
+
$this.k4_1[i] = hash_0;
|
|
3199
|
+
return true;
|
|
3200
|
+
}
|
|
3201
|
+
probesLeft = probesLeft - 1 | 0;
|
|
3202
|
+
if (probesLeft < 0)
|
|
3203
|
+
return false;
|
|
3204
|
+
var _unary__edvuaz = hash_0;
|
|
3205
|
+
hash_0 = _unary__edvuaz - 1 | 0;
|
|
3206
|
+
if (_unary__edvuaz === 0)
|
|
3207
|
+
hash_0 = _get_hashSize__tftcho($this) - 1 | 0;
|
|
3208
|
+
}
|
|
3209
|
+
}
|
|
3210
|
+
function findKey($this, key) {
|
|
3211
|
+
var hash_0 = hash($this, key);
|
|
3212
|
+
var probesLeft = $this.m4_1;
|
|
3213
|
+
while (true) {
|
|
3214
|
+
var index = $this.l4_1[hash_0];
|
|
3215
|
+
if (index === 0)
|
|
3216
|
+
return -1;
|
|
3217
|
+
if (equals($this.i4_1[index - 1 | 0], key))
|
|
3218
|
+
return index - 1 | 0;
|
|
3219
|
+
probesLeft = probesLeft - 1 | 0;
|
|
3220
|
+
if (probesLeft < 0)
|
|
3221
|
+
return -1;
|
|
3222
|
+
var _unary__edvuaz = hash_0;
|
|
3223
|
+
hash_0 = _unary__edvuaz - 1 | 0;
|
|
3224
|
+
if (_unary__edvuaz === 0)
|
|
3225
|
+
hash_0 = _get_hashSize__tftcho($this) - 1 | 0;
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
function addKey($this, key) {
|
|
3229
|
+
$this.k5();
|
|
3230
|
+
retry: while (true) {
|
|
3231
|
+
var hash_0 = hash($this, key);
|
|
3232
|
+
var tentativeMaxProbeDistance = coerceAtMost(imul_0($this.m4_1, 2), _get_hashSize__tftcho($this) / 2 | 0);
|
|
3233
|
+
var probeDistance = 0;
|
|
3234
|
+
while (true) {
|
|
3235
|
+
var index = $this.l4_1[hash_0];
|
|
3236
|
+
if (index === 0) {
|
|
3237
|
+
if ($this.n4_1 >= _get_capacity__a9k9f3($this)) {
|
|
3238
|
+
ensureExtraCapacity($this, 1);
|
|
3239
|
+
continue retry;
|
|
3240
|
+
}
|
|
3241
|
+
var _unary__edvuaz = $this.n4_1;
|
|
3242
|
+
$this.n4_1 = _unary__edvuaz + 1 | 0;
|
|
3243
|
+
var putIndex = _unary__edvuaz;
|
|
3244
|
+
$this.i4_1[putIndex] = key;
|
|
3245
|
+
$this.k4_1[putIndex] = hash_0;
|
|
3246
|
+
$this.l4_1[hash_0] = putIndex + 1 | 0;
|
|
3247
|
+
$this.q4_1 = $this.q4_1 + 1 | 0;
|
|
3248
|
+
registerModification($this);
|
|
3249
|
+
if (probeDistance > $this.m4_1)
|
|
3250
|
+
$this.m4_1 = probeDistance;
|
|
3251
|
+
return putIndex;
|
|
3252
|
+
}
|
|
3253
|
+
if (equals($this.i4_1[index - 1 | 0], key)) {
|
|
3254
|
+
return -index | 0;
|
|
3255
|
+
}
|
|
3256
|
+
probeDistance = probeDistance + 1 | 0;
|
|
3257
|
+
if (probeDistance > tentativeMaxProbeDistance) {
|
|
3258
|
+
rehash($this, imul_0(_get_hashSize__tftcho($this), 2));
|
|
3259
|
+
continue retry;
|
|
3260
|
+
}
|
|
3261
|
+
var _unary__edvuaz_0 = hash_0;
|
|
3262
|
+
hash_0 = _unary__edvuaz_0 - 1 | 0;
|
|
3263
|
+
if (_unary__edvuaz_0 === 0)
|
|
3264
|
+
hash_0 = _get_hashSize__tftcho($this) - 1 | 0;
|
|
3265
|
+
}
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
function contentEquals($this, other) {
|
|
3269
|
+
return $this.q4_1 === other.t() && $this.l5(other.r1());
|
|
3270
|
+
}
|
|
3271
|
+
var Companion_instance_1;
|
|
3272
|
+
function Companion_getInstance_1() {
|
|
3273
|
+
return Companion_instance_1;
|
|
3274
|
+
}
|
|
3275
|
+
function init_kotlin_collections_LinkedHashSet(_this__u8e3s4) {
|
|
3276
|
+
}
|
|
3277
|
+
function init_kotlin_UnsupportedOperationException(_this__u8e3s4) {
|
|
3278
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.d4_1);
|
|
3279
|
+
}
|
|
3280
|
+
function init_kotlin_IllegalStateException(_this__u8e3s4) {
|
|
3281
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.f2_1);
|
|
3282
|
+
}
|
|
3283
|
+
function init_kotlin_IllegalArgumentException(_this__u8e3s4) {
|
|
3284
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.j_1);
|
|
3285
|
+
}
|
|
3286
|
+
function init_kotlin_RuntimeException(_this__u8e3s4) {
|
|
3287
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.h5_1);
|
|
3288
|
+
}
|
|
3289
|
+
function init_kotlin_Exception(_this__u8e3s4) {
|
|
3290
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.b2_1);
|
|
3291
|
+
}
|
|
3292
|
+
function init_kotlin_NoSuchElementException(_this__u8e3s4) {
|
|
3293
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.f_1);
|
|
3294
|
+
}
|
|
3295
|
+
function init_kotlin_IndexOutOfBoundsException(_this__u8e3s4) {
|
|
3296
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.v2_1);
|
|
3297
|
+
}
|
|
3298
|
+
function init_kotlin_ArithmeticException(_this__u8e3s4) {
|
|
3299
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.a7_1);
|
|
3300
|
+
}
|
|
3301
|
+
function init_kotlin_ConcurrentModificationException(_this__u8e3s4) {
|
|
3302
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.b5_1);
|
|
3303
|
+
}
|
|
3304
|
+
function init_kotlin_NullPointerException(_this__u8e3s4) {
|
|
3305
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.j2_1);
|
|
3306
|
+
}
|
|
3307
|
+
function init_kotlin_ClassCastException(_this__u8e3s4) {
|
|
3308
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.n2_1);
|
|
3309
|
+
}
|
|
3310
|
+
function fillFrom(src, dst) {
|
|
3311
|
+
var srcLen = src.length;
|
|
3312
|
+
var dstLen = dst.length;
|
|
3313
|
+
var index = 0;
|
|
3314
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3315
|
+
var arr = dst;
|
|
3316
|
+
while (index < srcLen && index < dstLen) {
|
|
3317
|
+
var tmp = index;
|
|
3318
|
+
var _unary__edvuaz = index;
|
|
3319
|
+
index = _unary__edvuaz + 1 | 0;
|
|
3320
|
+
arr[tmp] = src[_unary__edvuaz];
|
|
3321
|
+
}
|
|
3322
|
+
return dst;
|
|
3323
|
+
}
|
|
3324
|
+
function arrayCopyResize(source, newSize, defaultValue) {
|
|
3325
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3326
|
+
var result = source.slice(0, newSize);
|
|
3327
|
+
// Inline function 'kotlin.copyArrayType' call
|
|
3328
|
+
if (source.$type$ !== undefined) {
|
|
3329
|
+
result.$type$ = source.$type$;
|
|
3330
|
+
}
|
|
3331
|
+
var index = source.length;
|
|
3332
|
+
if (newSize > index) {
|
|
3333
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3334
|
+
result.length = newSize;
|
|
3335
|
+
while (index < newSize) {
|
|
3336
|
+
var _unary__edvuaz = index;
|
|
3337
|
+
index = _unary__edvuaz + 1 | 0;
|
|
3338
|
+
result[_unary__edvuaz] = defaultValue;
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
return result;
|
|
3342
|
+
}
|
|
3343
|
+
function abs_0(n) {
|
|
3344
|
+
return n < 0 ? -n | 0 : n;
|
|
3345
|
+
}
|
|
3346
|
+
function reset(_this__u8e3s4) {
|
|
3347
|
+
_this__u8e3s4.lastIndex = 0;
|
|
3348
|
+
}
|
|
3349
|
+
function uppercaseChar(_this__u8e3s4) {
|
|
3350
|
+
// Inline function 'kotlin.text.uppercase' call
|
|
3351
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3352
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3353
|
+
var uppercase = toString(_this__u8e3s4).toUpperCase();
|
|
3354
|
+
return uppercase.length > 1 ? _this__u8e3s4 : charCodeAt(uppercase, 0);
|
|
3355
|
+
}
|
|
3356
|
+
function isWhitespace(_this__u8e3s4) {
|
|
3357
|
+
return isWhitespaceImpl(_this__u8e3s4);
|
|
3358
|
+
}
|
|
3359
|
+
var Companion_instance_2;
|
|
3360
|
+
function Companion_getInstance_2() {
|
|
3361
|
+
if (Companion_instance_2 === VOID)
|
|
3362
|
+
new Companion_2();
|
|
3363
|
+
return Companion_instance_2;
|
|
3364
|
+
}
|
|
3365
|
+
function toFlags(_this__u8e3s4, prepend) {
|
|
3366
|
+
return joinToString_0(_this__u8e3s4, '', prepend, VOID, VOID, VOID, toFlags$lambda);
|
|
3367
|
+
}
|
|
3368
|
+
function toFlags$lambda(it) {
|
|
3369
|
+
return it.y7_1;
|
|
3370
|
+
}
|
|
3371
|
+
var STRING_CASE_INSENSITIVE_ORDER;
|
|
3372
|
+
function substring(_this__u8e3s4, startIndex, endIndex) {
|
|
3373
|
+
_init_properties_stringJs_kt__bg7zye();
|
|
3374
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3375
|
+
return _this__u8e3s4.substring(startIndex, endIndex);
|
|
3376
|
+
}
|
|
3377
|
+
function substring_0(_this__u8e3s4, startIndex) {
|
|
3378
|
+
_init_properties_stringJs_kt__bg7zye();
|
|
3379
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3380
|
+
return _this__u8e3s4.substring(startIndex);
|
|
3381
|
+
}
|
|
3382
|
+
function compareTo_0(_this__u8e3s4, other, ignoreCase) {
|
|
3383
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3384
|
+
_init_properties_stringJs_kt__bg7zye();
|
|
3385
|
+
if (ignoreCase) {
|
|
3386
|
+
var n1 = _this__u8e3s4.length;
|
|
3387
|
+
var n2 = other.length;
|
|
3388
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
3389
|
+
var min = Math.min(n1, n2);
|
|
3390
|
+
if (min === 0)
|
|
3391
|
+
return n1 - n2 | 0;
|
|
3392
|
+
var inductionVariable = 0;
|
|
3393
|
+
if (inductionVariable < min)
|
|
3394
|
+
do {
|
|
3395
|
+
var index = inductionVariable;
|
|
3396
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3397
|
+
var thisChar = charCodeAt(_this__u8e3s4, index);
|
|
3398
|
+
var otherChar = charCodeAt(other, index);
|
|
3399
|
+
if (!(thisChar === otherChar)) {
|
|
3400
|
+
thisChar = uppercaseChar(thisChar);
|
|
3401
|
+
otherChar = uppercaseChar(otherChar);
|
|
3402
|
+
if (!(thisChar === otherChar)) {
|
|
3403
|
+
// Inline function 'kotlin.text.lowercaseChar' call
|
|
3404
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
3405
|
+
var this_0 = thisChar;
|
|
3406
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3407
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3408
|
+
var tmp$ret$2 = toString(this_0).toLowerCase();
|
|
3409
|
+
thisChar = charCodeAt(tmp$ret$2, 0);
|
|
3410
|
+
// Inline function 'kotlin.text.lowercaseChar' call
|
|
3411
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
3412
|
+
var this_1 = otherChar;
|
|
3413
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3414
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3415
|
+
var tmp$ret$6 = toString(this_1).toLowerCase();
|
|
3416
|
+
otherChar = charCodeAt(tmp$ret$6, 0);
|
|
3417
|
+
if (!(thisChar === otherChar)) {
|
|
3418
|
+
return Char__compareTo_impl_ypi4mb(thisChar, otherChar);
|
|
3419
|
+
}
|
|
3420
|
+
}
|
|
3421
|
+
}
|
|
3422
|
+
}
|
|
3423
|
+
while (inductionVariable < min);
|
|
3424
|
+
return n1 - n2 | 0;
|
|
3425
|
+
} else {
|
|
3426
|
+
return compareTo(_this__u8e3s4, other);
|
|
3427
|
+
}
|
|
3428
|
+
}
|
|
3429
|
+
function STRING_CASE_INSENSITIVE_ORDER$lambda(a, b) {
|
|
3430
|
+
_init_properties_stringJs_kt__bg7zye();
|
|
3431
|
+
return compareTo_0(a, b, true);
|
|
3432
|
+
}
|
|
3433
|
+
var properties_initialized_stringJs_kt_nta8o4;
|
|
3434
|
+
function _init_properties_stringJs_kt__bg7zye() {
|
|
3435
|
+
if (!properties_initialized_stringJs_kt_nta8o4) {
|
|
3436
|
+
properties_initialized_stringJs_kt_nta8o4 = true;
|
|
3437
|
+
var tmp = STRING_CASE_INSENSITIVE_ORDER$lambda;
|
|
3438
|
+
STRING_CASE_INSENSITIVE_ORDER = new sam$kotlin_Comparator$0(tmp);
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3441
|
+
function replace(_this__u8e3s4, oldValue, newValue, ignoreCase) {
|
|
3442
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3443
|
+
var tmp2 = new RegExp(Companion_getInstance_2().m7(oldValue), ignoreCase ? 'gui' : 'gu');
|
|
3444
|
+
// Inline function 'kotlin.text.nativeReplace' call
|
|
3445
|
+
var replacement = Companion_getInstance_2().n7(newValue);
|
|
3446
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3447
|
+
return _this__u8e3s4.replace(tmp2, replacement);
|
|
3448
|
+
}
|
|
3449
|
+
function startsWith(_this__u8e3s4, prefix, ignoreCase) {
|
|
3450
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3451
|
+
if (!ignoreCase) {
|
|
3452
|
+
// Inline function 'kotlin.text.nativeStartsWith' call
|
|
3453
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3454
|
+
return _this__u8e3s4.startsWith(prefix, 0);
|
|
3455
|
+
} else
|
|
3456
|
+
return regionMatches(_this__u8e3s4, 0, prefix, 0, prefix.length, ignoreCase);
|
|
3457
|
+
}
|
|
3458
|
+
function regionMatches(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase) {
|
|
3459
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3460
|
+
return regionMatchesImpl(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase);
|
|
3461
|
+
}
|
|
3462
|
+
function AbstractCollection$toString$lambda(this$0) {
|
|
3463
|
+
return (it) => it === this$0 ? '(this Collection)' : toString_0(it);
|
|
3464
|
+
}
|
|
3465
|
+
var Companion_instance_3;
|
|
3466
|
+
function Companion_getInstance_3() {
|
|
3467
|
+
return Companion_instance_3;
|
|
3468
|
+
}
|
|
3469
|
+
var Companion_instance_4;
|
|
3470
|
+
function Companion_getInstance_4() {
|
|
3471
|
+
return Companion_instance_4;
|
|
3472
|
+
}
|
|
3473
|
+
function collectionToArrayCommonImpl(collection) {
|
|
3474
|
+
if (collection.e1()) {
|
|
3475
|
+
// Inline function 'kotlin.emptyArray' call
|
|
3476
|
+
return [];
|
|
3477
|
+
}
|
|
3478
|
+
// Inline function 'kotlin.arrayOfNulls' call
|
|
3479
|
+
var size = collection.t();
|
|
3480
|
+
var destination = Array(size);
|
|
3481
|
+
var iterator = collection.p();
|
|
3482
|
+
var index = 0;
|
|
3483
|
+
while (iterator.q()) {
|
|
3484
|
+
var _unary__edvuaz = index;
|
|
3485
|
+
index = _unary__edvuaz + 1 | 0;
|
|
3486
|
+
destination[_unary__edvuaz] = iterator.r();
|
|
3487
|
+
}
|
|
3488
|
+
return destination;
|
|
3489
|
+
}
|
|
3490
|
+
function get_lastIndex(_this__u8e3s4) {
|
|
3491
|
+
return _this__u8e3s4.t() - 1 | 0;
|
|
3492
|
+
}
|
|
3493
|
+
function emptyList() {
|
|
3494
|
+
return EmptyList_getInstance();
|
|
3495
|
+
}
|
|
3496
|
+
function optimizeReadOnlyList(_this__u8e3s4) {
|
|
3497
|
+
switch (_this__u8e3s4.t()) {
|
|
3498
|
+
case 0:
|
|
3499
|
+
return emptyList();
|
|
3500
|
+
case 1:
|
|
3501
|
+
return listOf(_this__u8e3s4.s(0));
|
|
3502
|
+
default:
|
|
3503
|
+
return _this__u8e3s4;
|
|
3504
|
+
}
|
|
3505
|
+
}
|
|
3506
|
+
function throwIndexOverflow() {
|
|
3507
|
+
throw ArithmeticException.c7('Index overflow has happened.');
|
|
3508
|
+
}
|
|
3509
|
+
var EmptyList_instance;
|
|
3510
|
+
function EmptyList_getInstance() {
|
|
3511
|
+
if (EmptyList_instance === VOID)
|
|
3512
|
+
new EmptyList();
|
|
3513
|
+
return EmptyList_instance;
|
|
3514
|
+
}
|
|
3515
|
+
var EmptyIterator_instance;
|
|
3516
|
+
function EmptyIterator_getInstance() {
|
|
3517
|
+
return EmptyIterator_instance;
|
|
3518
|
+
}
|
|
3519
|
+
function collectionSizeOrDefault(_this__u8e3s4, default_0) {
|
|
3520
|
+
var tmp;
|
|
3521
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
3522
|
+
tmp = _this__u8e3s4.t();
|
|
3523
|
+
} else {
|
|
3524
|
+
tmp = default_0;
|
|
3525
|
+
}
|
|
3526
|
+
return tmp;
|
|
3527
|
+
}
|
|
3528
|
+
function emptySet() {
|
|
3529
|
+
return EmptySet_getInstance();
|
|
3530
|
+
}
|
|
3531
|
+
function optimizeReadOnlySet(_this__u8e3s4) {
|
|
3532
|
+
switch (_this__u8e3s4.t()) {
|
|
3533
|
+
case 0:
|
|
3534
|
+
return emptySet();
|
|
3535
|
+
case 1:
|
|
3536
|
+
return setOf(_this__u8e3s4.p().r());
|
|
3537
|
+
default:
|
|
3538
|
+
return _this__u8e3s4;
|
|
3539
|
+
}
|
|
3540
|
+
}
|
|
3541
|
+
function hashSetOf(elements) {
|
|
3542
|
+
return toCollection(elements, HashSet.v4(mapCapacity(elements.length)));
|
|
3543
|
+
}
|
|
3544
|
+
var EmptySet_instance;
|
|
3545
|
+
function EmptySet_getInstance() {
|
|
3546
|
+
if (EmptySet_instance === VOID)
|
|
3547
|
+
new EmptySet();
|
|
3548
|
+
return EmptySet_instance;
|
|
3549
|
+
}
|
|
3550
|
+
function getProgressionLastElement(start, end, step) {
|
|
3551
|
+
var tmp;
|
|
3552
|
+
if (step > 0) {
|
|
3553
|
+
tmp = start >= end ? end : end - differenceModulo(end, start, step) | 0;
|
|
3554
|
+
} else if (step < 0) {
|
|
3555
|
+
tmp = start <= end ? end : end + differenceModulo(start, end, -step | 0) | 0;
|
|
3556
|
+
} else {
|
|
3557
|
+
throw IllegalArgumentException.k('Step is zero.');
|
|
3558
|
+
}
|
|
3559
|
+
return tmp;
|
|
3560
|
+
}
|
|
3561
|
+
function differenceModulo(a, b, c) {
|
|
3562
|
+
return mod(mod(a, c) - mod(b, c) | 0, c);
|
|
3563
|
+
}
|
|
3564
|
+
function mod(a, b) {
|
|
3565
|
+
var mod = a % b | 0;
|
|
3566
|
+
return mod >= 0 ? mod : mod + b | 0;
|
|
3567
|
+
}
|
|
3568
|
+
var Companion_instance_5;
|
|
3569
|
+
function Companion_getInstance_5() {
|
|
3570
|
+
if (Companion_instance_5 === VOID)
|
|
3571
|
+
new Companion_5();
|
|
3572
|
+
return Companion_instance_5;
|
|
3573
|
+
}
|
|
3574
|
+
var Companion_instance_6;
|
|
3575
|
+
function Companion_getInstance_6() {
|
|
3576
|
+
return Companion_instance_6;
|
|
3577
|
+
}
|
|
3578
|
+
function appendElement(_this__u8e3s4, element, transform) {
|
|
3579
|
+
if (!(transform == null))
|
|
3580
|
+
_this__u8e3s4.o(transform(element));
|
|
3581
|
+
else {
|
|
3582
|
+
if (element == null ? true : isCharSequence(element))
|
|
3583
|
+
_this__u8e3s4.o(element);
|
|
3584
|
+
else {
|
|
3585
|
+
if (element instanceof Char)
|
|
3586
|
+
_this__u8e3s4.j6(element.y8_1);
|
|
3587
|
+
else {
|
|
3588
|
+
_this__u8e3s4.o(toString_1(element));
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3592
|
+
}
|
|
3593
|
+
function equals_0(_this__u8e3s4, other, ignoreCase) {
|
|
3594
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3595
|
+
if (_this__u8e3s4 === other)
|
|
3596
|
+
return true;
|
|
3597
|
+
if (!ignoreCase)
|
|
3598
|
+
return false;
|
|
3599
|
+
var thisUpper = uppercaseChar(_this__u8e3s4);
|
|
3600
|
+
var otherUpper = uppercaseChar(other);
|
|
3601
|
+
var tmp;
|
|
3602
|
+
if (thisUpper === otherUpper) {
|
|
3603
|
+
tmp = true;
|
|
3604
|
+
} else {
|
|
3605
|
+
// Inline function 'kotlin.text.lowercaseChar' call
|
|
3606
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
3607
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3608
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3609
|
+
var tmp$ret$1 = toString(thisUpper).toLowerCase();
|
|
3610
|
+
var tmp_0 = charCodeAt(tmp$ret$1, 0);
|
|
3611
|
+
// Inline function 'kotlin.text.lowercaseChar' call
|
|
3612
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
3613
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3614
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
3615
|
+
var tmp$ret$5 = toString(otherUpper).toLowerCase();
|
|
3616
|
+
tmp = tmp_0 === charCodeAt(tmp$ret$5, 0);
|
|
3617
|
+
}
|
|
3618
|
+
return tmp;
|
|
3619
|
+
}
|
|
3620
|
+
function trimIndent(_this__u8e3s4) {
|
|
3621
|
+
return replaceIndent(_this__u8e3s4, '');
|
|
3622
|
+
}
|
|
3623
|
+
function replaceIndent(_this__u8e3s4, newIndent) {
|
|
3624
|
+
newIndent = newIndent === VOID ? '' : newIndent;
|
|
3625
|
+
var lines_0 = lines(_this__u8e3s4);
|
|
3626
|
+
// Inline function 'kotlin.collections.filter' call
|
|
3627
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
3628
|
+
var destination = ArrayList.x();
|
|
3629
|
+
var _iterator__ex2g4s = lines_0.p();
|
|
3630
|
+
while (_iterator__ex2g4s.q()) {
|
|
3631
|
+
var element = _iterator__ex2g4s.r();
|
|
3632
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
3633
|
+
if (!isBlank(element)) {
|
|
3634
|
+
destination.l(element);
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
// Inline function 'kotlin.collections.map' call
|
|
3638
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3639
|
+
var destination_0 = ArrayList.y(collectionSizeOrDefault(destination, 10));
|
|
3640
|
+
var _iterator__ex2g4s_0 = destination.p();
|
|
3641
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
3642
|
+
var item = _iterator__ex2g4s_0.r();
|
|
3643
|
+
var tmp$ret$6 = indentWidth(item);
|
|
3644
|
+
destination_0.l(tmp$ret$6);
|
|
3645
|
+
}
|
|
3646
|
+
var tmp0_elvis_lhs = minOrNull(destination_0);
|
|
3647
|
+
var minCommonIndent = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
3648
|
+
var tmp2 = _this__u8e3s4.length + imul_0(newIndent.length, lines_0.t()) | 0;
|
|
3649
|
+
// Inline function 'kotlin.text.reindent' call
|
|
3650
|
+
var indentAddFunction = getIndentFunction(newIndent);
|
|
3651
|
+
var lastIndex = get_lastIndex(lines_0);
|
|
3652
|
+
// Inline function 'kotlin.collections.mapIndexedNotNull' call
|
|
3653
|
+
// Inline function 'kotlin.collections.mapIndexedNotNullTo' call
|
|
3654
|
+
var destination_1 = ArrayList.x();
|
|
3655
|
+
// Inline function 'kotlin.collections.forEachIndexed' call
|
|
3656
|
+
var index = 0;
|
|
3657
|
+
var _iterator__ex2g4s_1 = lines_0.p();
|
|
3658
|
+
while (_iterator__ex2g4s_1.q()) {
|
|
3659
|
+
var item_0 = _iterator__ex2g4s_1.r();
|
|
3660
|
+
var _unary__edvuaz = index;
|
|
3661
|
+
index = _unary__edvuaz + 1 | 0;
|
|
3662
|
+
var index_0 = checkIndexOverflow(_unary__edvuaz);
|
|
3663
|
+
var tmp;
|
|
3664
|
+
if ((index_0 === 0 || index_0 === lastIndex) && isBlank(item_0)) {
|
|
3665
|
+
tmp = null;
|
|
3666
|
+
} else {
|
|
3667
|
+
var tmp0_safe_receiver = drop_0(item_0, minCommonIndent);
|
|
3668
|
+
var tmp_0;
|
|
3669
|
+
if (tmp0_safe_receiver == null) {
|
|
3670
|
+
tmp_0 = null;
|
|
3671
|
+
} else {
|
|
3672
|
+
// Inline function 'kotlin.let' call
|
|
3673
|
+
tmp_0 = indentAddFunction(tmp0_safe_receiver);
|
|
3674
|
+
}
|
|
3675
|
+
var tmp1_elvis_lhs = tmp_0;
|
|
3676
|
+
tmp = tmp1_elvis_lhs == null ? item_0 : tmp1_elvis_lhs;
|
|
3677
|
+
}
|
|
3678
|
+
var tmp0_safe_receiver_0 = tmp;
|
|
3679
|
+
if (tmp0_safe_receiver_0 == null)
|
|
3680
|
+
null;
|
|
3681
|
+
else {
|
|
3682
|
+
// Inline function 'kotlin.let' call
|
|
3683
|
+
destination_1.l(tmp0_safe_receiver_0);
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
return joinTo_0(destination_1, StringBuilder.n6(tmp2), '\n').toString();
|
|
3687
|
+
}
|
|
3688
|
+
function indentWidth(_this__u8e3s4) {
|
|
3689
|
+
var tmp$ret$0;
|
|
3690
|
+
$l$block: {
|
|
3691
|
+
// Inline function 'kotlin.text.indexOfFirst' call
|
|
3692
|
+
var inductionVariable = 0;
|
|
3693
|
+
var last = charSequenceLength(_this__u8e3s4) - 1 | 0;
|
|
3694
|
+
if (inductionVariable <= last)
|
|
3695
|
+
do {
|
|
3696
|
+
var index = inductionVariable;
|
|
3697
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3698
|
+
var it = charSequenceGet(_this__u8e3s4, index);
|
|
3699
|
+
if (!isWhitespace(it)) {
|
|
3700
|
+
tmp$ret$0 = index;
|
|
3701
|
+
break $l$block;
|
|
3702
|
+
}
|
|
3703
|
+
}
|
|
3704
|
+
while (inductionVariable <= last);
|
|
3705
|
+
tmp$ret$0 = -1;
|
|
3706
|
+
}
|
|
3707
|
+
// Inline function 'kotlin.let' call
|
|
3708
|
+
var it_0 = tmp$ret$0;
|
|
3709
|
+
return it_0 === -1 ? _this__u8e3s4.length : it_0;
|
|
3710
|
+
}
|
|
3711
|
+
function getIndentFunction(indent) {
|
|
3712
|
+
var tmp;
|
|
3713
|
+
// Inline function 'kotlin.text.isEmpty' call
|
|
3714
|
+
if (charSequenceLength(indent) === 0) {
|
|
3715
|
+
tmp = getIndentFunction$lambda;
|
|
3716
|
+
} else {
|
|
3717
|
+
tmp = getIndentFunction$lambda_0(indent);
|
|
3718
|
+
}
|
|
3719
|
+
return tmp;
|
|
3720
|
+
}
|
|
3721
|
+
function getIndentFunction$lambda(line) {
|
|
3722
|
+
return line;
|
|
3723
|
+
}
|
|
3724
|
+
function getIndentFunction$lambda_0($indent) {
|
|
3725
|
+
return (line) => $indent + line;
|
|
3726
|
+
}
|
|
3727
|
+
function split(_this__u8e3s4, delimiters, ignoreCase, limit) {
|
|
3728
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3729
|
+
limit = limit === VOID ? 0 : limit;
|
|
3730
|
+
if (delimiters.length === 1) {
|
|
3731
|
+
var delimiter = delimiters[0];
|
|
3732
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
3733
|
+
if (charSequenceLength(delimiter) > 0) {
|
|
3734
|
+
return split_0(_this__u8e3s4, delimiter, ignoreCase, limit);
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
// Inline function 'kotlin.collections.map' call
|
|
3738
|
+
var this_0 = asIterable(rangesDelimitedBy(_this__u8e3s4, delimiters, VOID, ignoreCase, limit));
|
|
3739
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
3740
|
+
var destination = ArrayList.y(collectionSizeOrDefault(this_0, 10));
|
|
3741
|
+
var _iterator__ex2g4s = this_0.p();
|
|
3742
|
+
while (_iterator__ex2g4s.q()) {
|
|
3743
|
+
var item = _iterator__ex2g4s.r();
|
|
3744
|
+
var tmp$ret$3 = substring_1(_this__u8e3s4, item);
|
|
3745
|
+
destination.l(tmp$ret$3);
|
|
3746
|
+
}
|
|
3747
|
+
return destination;
|
|
3748
|
+
}
|
|
3749
|
+
function lastIndexOf(_this__u8e3s4, char, startIndex, ignoreCase) {
|
|
3750
|
+
startIndex = startIndex === VOID ? get_lastIndex_0(_this__u8e3s4) : startIndex;
|
|
3751
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3752
|
+
var tmp;
|
|
3753
|
+
var tmp_0;
|
|
3754
|
+
if (ignoreCase) {
|
|
3755
|
+
tmp_0 = true;
|
|
3756
|
+
} else {
|
|
3757
|
+
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
3758
|
+
}
|
|
3759
|
+
if (tmp_0) {
|
|
3760
|
+
// Inline function 'kotlin.charArrayOf' call
|
|
3761
|
+
var tmp$ret$0 = charArrayOf([char]);
|
|
3762
|
+
tmp = lastIndexOfAny(_this__u8e3s4, tmp$ret$0, startIndex, ignoreCase);
|
|
3763
|
+
} else {
|
|
3764
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
3765
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
3766
|
+
var str = toString(char);
|
|
3767
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3768
|
+
tmp = _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
3769
|
+
}
|
|
3770
|
+
return tmp;
|
|
3771
|
+
}
|
|
3772
|
+
function indexOf_0(_this__u8e3s4, char, startIndex, ignoreCase) {
|
|
3773
|
+
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
3774
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3775
|
+
var tmp;
|
|
3776
|
+
var tmp_0;
|
|
3777
|
+
if (ignoreCase) {
|
|
3778
|
+
tmp_0 = true;
|
|
3779
|
+
} else {
|
|
3780
|
+
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
3781
|
+
}
|
|
3782
|
+
if (tmp_0) {
|
|
3783
|
+
// Inline function 'kotlin.charArrayOf' call
|
|
3784
|
+
var tmp$ret$0 = charArrayOf([char]);
|
|
3785
|
+
tmp = indexOfAny(_this__u8e3s4, tmp$ret$0, startIndex, ignoreCase);
|
|
3786
|
+
} else {
|
|
3787
|
+
// Inline function 'kotlin.text.nativeIndexOf' call
|
|
3788
|
+
// Inline function 'kotlin.text.nativeIndexOf' call
|
|
3789
|
+
var str = toString(char);
|
|
3790
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3791
|
+
tmp = _this__u8e3s4.indexOf(str, startIndex);
|
|
3792
|
+
}
|
|
3793
|
+
return tmp;
|
|
3794
|
+
}
|
|
3795
|
+
function indexOf_1(_this__u8e3s4, string, startIndex, ignoreCase) {
|
|
3796
|
+
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
3797
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3798
|
+
var tmp;
|
|
3799
|
+
var tmp_0;
|
|
3800
|
+
if (ignoreCase) {
|
|
3801
|
+
tmp_0 = true;
|
|
3802
|
+
} else {
|
|
3803
|
+
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
3804
|
+
}
|
|
3805
|
+
if (tmp_0) {
|
|
3806
|
+
tmp = indexOf_2(_this__u8e3s4, string, startIndex, charSequenceLength(_this__u8e3s4), ignoreCase);
|
|
3807
|
+
} else {
|
|
3808
|
+
// Inline function 'kotlin.text.nativeIndexOf' call
|
|
3809
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3810
|
+
tmp = _this__u8e3s4.indexOf(string, startIndex);
|
|
3811
|
+
}
|
|
3812
|
+
return tmp;
|
|
3813
|
+
}
|
|
3814
|
+
function lines(_this__u8e3s4) {
|
|
3815
|
+
return toList_0(lineSequence(_this__u8e3s4));
|
|
3816
|
+
}
|
|
3817
|
+
function isBlank(_this__u8e3s4) {
|
|
3818
|
+
var tmp$ret$0;
|
|
3819
|
+
$l$block: {
|
|
3820
|
+
// Inline function 'kotlin.text.all' call
|
|
3821
|
+
var inductionVariable = 0;
|
|
3822
|
+
while (inductionVariable < charSequenceLength(_this__u8e3s4)) {
|
|
3823
|
+
var element = charSequenceGet(_this__u8e3s4, inductionVariable);
|
|
3824
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3825
|
+
if (!isWhitespace(element)) {
|
|
3826
|
+
tmp$ret$0 = false;
|
|
3827
|
+
break $l$block;
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3830
|
+
tmp$ret$0 = true;
|
|
3831
|
+
}
|
|
3832
|
+
return tmp$ret$0;
|
|
3833
|
+
}
|
|
3834
|
+
function split_0(_this__u8e3s4, delimiter, ignoreCase, limit) {
|
|
3835
|
+
requireNonNegativeLimit(limit);
|
|
3836
|
+
var currentOffset = 0;
|
|
3837
|
+
var nextIndex = indexOf_1(_this__u8e3s4, delimiter, currentOffset, ignoreCase);
|
|
3838
|
+
if (nextIndex === -1 || limit === 1) {
|
|
3839
|
+
return listOf(toString_1(_this__u8e3s4));
|
|
3840
|
+
}
|
|
3841
|
+
var isLimited = limit > 0;
|
|
3842
|
+
var result = ArrayList.y(isLimited ? coerceAtMost(limit, 10) : 10);
|
|
3843
|
+
$l$loop: do {
|
|
3844
|
+
var tmp2 = currentOffset;
|
|
3845
|
+
// Inline function 'kotlin.text.substring' call
|
|
3846
|
+
var endIndex = nextIndex;
|
|
3847
|
+
var tmp$ret$0 = toString_1(charSequenceSubSequence(_this__u8e3s4, tmp2, endIndex));
|
|
3848
|
+
result.l(tmp$ret$0);
|
|
3849
|
+
currentOffset = nextIndex + delimiter.length | 0;
|
|
3850
|
+
if (isLimited && result.t() === (limit - 1 | 0))
|
|
3851
|
+
break $l$loop;
|
|
3852
|
+
nextIndex = indexOf_1(_this__u8e3s4, delimiter, currentOffset, ignoreCase);
|
|
3853
|
+
}
|
|
3854
|
+
while (!(nextIndex === -1));
|
|
3855
|
+
var tmp2_0 = currentOffset;
|
|
3856
|
+
// Inline function 'kotlin.text.substring' call
|
|
3857
|
+
var endIndex_0 = charSequenceLength(_this__u8e3s4);
|
|
3858
|
+
var tmp$ret$1 = toString_1(charSequenceSubSequence(_this__u8e3s4, tmp2_0, endIndex_0));
|
|
3859
|
+
result.l(tmp$ret$1);
|
|
3860
|
+
return result;
|
|
3861
|
+
}
|
|
3862
|
+
function rangesDelimitedBy(_this__u8e3s4, delimiters, startIndex, ignoreCase, limit) {
|
|
3863
|
+
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
3864
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3865
|
+
limit = limit === VOID ? 0 : limit;
|
|
3866
|
+
requireNonNegativeLimit(limit);
|
|
3867
|
+
var delimitersList = asList(delimiters);
|
|
3868
|
+
return new DelimitedRangesSequence(_this__u8e3s4, startIndex, limit, rangesDelimitedBy$lambda(delimitersList, ignoreCase));
|
|
3869
|
+
}
|
|
3870
|
+
function substring_1(_this__u8e3s4, range) {
|
|
3871
|
+
return toString_1(charSequenceSubSequence(_this__u8e3s4, range.p8(), range.t8() + 1 | 0));
|
|
3872
|
+
}
|
|
3873
|
+
function trim(_this__u8e3s4) {
|
|
3874
|
+
// Inline function 'kotlin.text.trim' call
|
|
3875
|
+
var startIndex = 0;
|
|
3876
|
+
var endIndex = charSequenceLength(_this__u8e3s4) - 1 | 0;
|
|
3877
|
+
var startFound = false;
|
|
3878
|
+
$l$loop: while (startIndex <= endIndex) {
|
|
3879
|
+
var index = !startFound ? startIndex : endIndex;
|
|
3880
|
+
var p0 = charSequenceGet(_this__u8e3s4, index);
|
|
3881
|
+
var match = isWhitespace(p0);
|
|
3882
|
+
if (!startFound) {
|
|
3883
|
+
if (!match)
|
|
3884
|
+
startFound = true;
|
|
3885
|
+
else
|
|
3886
|
+
startIndex = startIndex + 1 | 0;
|
|
3887
|
+
} else {
|
|
3888
|
+
if (!match)
|
|
3889
|
+
break $l$loop;
|
|
3890
|
+
else
|
|
3891
|
+
endIndex = endIndex - 1 | 0;
|
|
3892
|
+
}
|
|
3893
|
+
}
|
|
3894
|
+
return charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex + 1 | 0);
|
|
3895
|
+
}
|
|
3896
|
+
function get_lastIndex_0(_this__u8e3s4) {
|
|
3897
|
+
return charSequenceLength(_this__u8e3s4) - 1 | 0;
|
|
3898
|
+
}
|
|
3899
|
+
function lastIndexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
|
|
3900
|
+
startIndex = startIndex === VOID ? get_lastIndex_0(_this__u8e3s4) : startIndex;
|
|
3901
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3902
|
+
var tmp;
|
|
3903
|
+
if (!ignoreCase && chars.length === 1) {
|
|
3904
|
+
tmp = typeof _this__u8e3s4 === 'string';
|
|
3905
|
+
} else {
|
|
3906
|
+
tmp = false;
|
|
3907
|
+
}
|
|
3908
|
+
if (tmp) {
|
|
3909
|
+
var char = single(chars);
|
|
3910
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
3911
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
3912
|
+
var str = toString(char);
|
|
3913
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3914
|
+
return _this__u8e3s4.lastIndexOf(str, startIndex);
|
|
3915
|
+
}
|
|
3916
|
+
var inductionVariable = coerceAtMost(startIndex, get_lastIndex_0(_this__u8e3s4));
|
|
3917
|
+
if (0 <= inductionVariable)
|
|
3918
|
+
do {
|
|
3919
|
+
var index = inductionVariable;
|
|
3920
|
+
inductionVariable = inductionVariable + -1 | 0;
|
|
3921
|
+
var charAtIndex = charSequenceGet(_this__u8e3s4, index);
|
|
3922
|
+
var tmp$ret$3;
|
|
3923
|
+
$l$block: {
|
|
3924
|
+
// Inline function 'kotlin.collections.any' call
|
|
3925
|
+
var inductionVariable_0 = 0;
|
|
3926
|
+
var last = chars.length;
|
|
3927
|
+
while (inductionVariable_0 < last) {
|
|
3928
|
+
var element = chars[inductionVariable_0];
|
|
3929
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
3930
|
+
if (equals_0(element, charAtIndex, ignoreCase)) {
|
|
3931
|
+
tmp$ret$3 = true;
|
|
3932
|
+
break $l$block;
|
|
3933
|
+
}
|
|
3934
|
+
}
|
|
3935
|
+
tmp$ret$3 = false;
|
|
3936
|
+
}
|
|
3937
|
+
if (tmp$ret$3)
|
|
3938
|
+
return index;
|
|
3939
|
+
}
|
|
3940
|
+
while (0 <= inductionVariable);
|
|
3941
|
+
return -1;
|
|
3942
|
+
}
|
|
3943
|
+
function indexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
|
|
3944
|
+
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
3945
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
3946
|
+
var tmp;
|
|
3947
|
+
if (!ignoreCase && chars.length === 1) {
|
|
3948
|
+
tmp = typeof _this__u8e3s4 === 'string';
|
|
3949
|
+
} else {
|
|
3950
|
+
tmp = false;
|
|
3951
|
+
}
|
|
3952
|
+
if (tmp) {
|
|
3953
|
+
var char = single(chars);
|
|
3954
|
+
// Inline function 'kotlin.text.nativeIndexOf' call
|
|
3955
|
+
// Inline function 'kotlin.text.nativeIndexOf' call
|
|
3956
|
+
var str = toString(char);
|
|
3957
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
3958
|
+
return _this__u8e3s4.indexOf(str, startIndex);
|
|
3959
|
+
}
|
|
3960
|
+
var inductionVariable = coerceAtLeast(startIndex, 0);
|
|
3961
|
+
var last = get_lastIndex_0(_this__u8e3s4);
|
|
3962
|
+
if (inductionVariable <= last)
|
|
3963
|
+
do {
|
|
3964
|
+
var index = inductionVariable;
|
|
3965
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
3966
|
+
var charAtIndex = charSequenceGet(_this__u8e3s4, index);
|
|
3967
|
+
var tmp$ret$3;
|
|
3968
|
+
$l$block: {
|
|
3969
|
+
// Inline function 'kotlin.collections.any' call
|
|
3970
|
+
var inductionVariable_0 = 0;
|
|
3971
|
+
var last_0 = chars.length;
|
|
3972
|
+
while (inductionVariable_0 < last_0) {
|
|
3973
|
+
var element = chars[inductionVariable_0];
|
|
3974
|
+
inductionVariable_0 = inductionVariable_0 + 1 | 0;
|
|
3975
|
+
if (equals_0(element, charAtIndex, ignoreCase)) {
|
|
3976
|
+
tmp$ret$3 = true;
|
|
3977
|
+
break $l$block;
|
|
3978
|
+
}
|
|
3979
|
+
}
|
|
3980
|
+
tmp$ret$3 = false;
|
|
3981
|
+
}
|
|
3982
|
+
if (tmp$ret$3)
|
|
3983
|
+
return index;
|
|
3984
|
+
}
|
|
3985
|
+
while (!(index === last));
|
|
3986
|
+
return -1;
|
|
3987
|
+
}
|
|
3988
|
+
function indexOf_2(_this__u8e3s4, other, startIndex, endIndex, ignoreCase, last) {
|
|
3989
|
+
last = last === VOID ? false : last;
|
|
3990
|
+
var indices = !last ? numberRangeToNumber(coerceAtLeast(startIndex, 0), coerceAtMost(endIndex, charSequenceLength(_this__u8e3s4))) : downTo(coerceAtMost(startIndex, get_lastIndex_0(_this__u8e3s4)), coerceAtLeast(endIndex, 0));
|
|
3991
|
+
var tmp;
|
|
3992
|
+
if (typeof _this__u8e3s4 === 'string') {
|
|
3993
|
+
tmp = typeof other === 'string';
|
|
3994
|
+
} else {
|
|
3995
|
+
tmp = false;
|
|
3996
|
+
}
|
|
3997
|
+
if (tmp) {
|
|
3998
|
+
var inductionVariable = indices.q8_1;
|
|
3999
|
+
var last_0 = indices.r8_1;
|
|
4000
|
+
var step = indices.s8_1;
|
|
4001
|
+
if (step > 0 && inductionVariable <= last_0 || (step < 0 && last_0 <= inductionVariable))
|
|
4002
|
+
do {
|
|
4003
|
+
var index = inductionVariable;
|
|
4004
|
+
inductionVariable = inductionVariable + step | 0;
|
|
4005
|
+
if (regionMatches(other, 0, _this__u8e3s4, index, other.length, ignoreCase))
|
|
4006
|
+
return index;
|
|
4007
|
+
}
|
|
4008
|
+
while (!(index === last_0));
|
|
4009
|
+
} else {
|
|
4010
|
+
var inductionVariable_0 = indices.q8_1;
|
|
4011
|
+
var last_1 = indices.r8_1;
|
|
4012
|
+
var step_0 = indices.s8_1;
|
|
4013
|
+
if (step_0 > 0 && inductionVariable_0 <= last_1 || (step_0 < 0 && last_1 <= inductionVariable_0))
|
|
4014
|
+
do {
|
|
4015
|
+
var index_0 = inductionVariable_0;
|
|
4016
|
+
inductionVariable_0 = inductionVariable_0 + step_0 | 0;
|
|
4017
|
+
if (regionMatchesImpl(other, 0, _this__u8e3s4, index_0, charSequenceLength(other), ignoreCase))
|
|
4018
|
+
return index_0;
|
|
4019
|
+
}
|
|
4020
|
+
while (!(index_0 === last_1));
|
|
4021
|
+
}
|
|
4022
|
+
return -1;
|
|
4023
|
+
}
|
|
4024
|
+
function lineSequence(_this__u8e3s4) {
|
|
4025
|
+
// Inline function 'kotlin.sequences.Sequence' call
|
|
4026
|
+
return new lineSequence$$inlined$Sequence$1(_this__u8e3s4);
|
|
4027
|
+
}
|
|
4028
|
+
function requireNonNegativeLimit(limit) {
|
|
4029
|
+
// Inline function 'kotlin.require' call
|
|
4030
|
+
if (!(limit >= 0)) {
|
|
4031
|
+
var message = 'Limit must be non-negative, but was ' + limit;
|
|
4032
|
+
throw IllegalArgumentException.k(toString_1(message));
|
|
4033
|
+
}
|
|
4034
|
+
return Unit_instance;
|
|
4035
|
+
}
|
|
4036
|
+
function calcNext($this) {
|
|
4037
|
+
if ($this.b9_1 < 0) {
|
|
4038
|
+
$this.z8_1 = 0;
|
|
4039
|
+
$this.c9_1 = null;
|
|
4040
|
+
} else {
|
|
4041
|
+
var tmp;
|
|
4042
|
+
var tmp_0;
|
|
4043
|
+
if ($this.e9_1.h9_1 > 0) {
|
|
4044
|
+
$this.d9_1 = $this.d9_1 + 1 | 0;
|
|
4045
|
+
tmp_0 = $this.d9_1 >= $this.e9_1.h9_1;
|
|
4046
|
+
} else {
|
|
4047
|
+
tmp_0 = false;
|
|
4048
|
+
}
|
|
4049
|
+
if (tmp_0) {
|
|
4050
|
+
tmp = true;
|
|
4051
|
+
} else {
|
|
4052
|
+
tmp = $this.b9_1 > charSequenceLength($this.e9_1.f9_1);
|
|
4053
|
+
}
|
|
4054
|
+
if (tmp) {
|
|
4055
|
+
$this.c9_1 = numberRangeToNumber($this.a9_1, get_lastIndex_0($this.e9_1.f9_1));
|
|
4056
|
+
$this.b9_1 = -1;
|
|
4057
|
+
} else {
|
|
4058
|
+
var match = $this.e9_1.i9_1($this.e9_1.f9_1, $this.b9_1);
|
|
4059
|
+
if (match == null) {
|
|
4060
|
+
$this.c9_1 = numberRangeToNumber($this.a9_1, get_lastIndex_0($this.e9_1.f9_1));
|
|
4061
|
+
$this.b9_1 = -1;
|
|
4062
|
+
} else {
|
|
4063
|
+
var index = match.l9();
|
|
4064
|
+
var length = match.m9();
|
|
4065
|
+
$this.c9_1 = until($this.a9_1, index);
|
|
4066
|
+
$this.a9_1 = index + length | 0;
|
|
4067
|
+
$this.b9_1 = $this.a9_1 + (length === 0 ? 1 : 0) | 0;
|
|
4068
|
+
}
|
|
4069
|
+
}
|
|
4070
|
+
$this.z8_1 = 1;
|
|
4071
|
+
}
|
|
4072
|
+
}
|
|
4073
|
+
function findAnyOf(_this__u8e3s4, strings, startIndex, ignoreCase, last) {
|
|
4074
|
+
if (!ignoreCase && strings.t() === 1) {
|
|
4075
|
+
var string = single_1(strings);
|
|
4076
|
+
var index = !last ? indexOf_1(_this__u8e3s4, string, startIndex) : lastIndexOf_0(_this__u8e3s4, string, startIndex);
|
|
4077
|
+
return index < 0 ? null : to(index, string);
|
|
4078
|
+
}
|
|
4079
|
+
var indices = !last ? numberRangeToNumber(coerceAtLeast(startIndex, 0), charSequenceLength(_this__u8e3s4)) : downTo(coerceAtMost(startIndex, get_lastIndex_0(_this__u8e3s4)), 0);
|
|
4080
|
+
if (typeof _this__u8e3s4 === 'string') {
|
|
4081
|
+
var inductionVariable = indices.q8_1;
|
|
4082
|
+
var last_0 = indices.r8_1;
|
|
4083
|
+
var step = indices.s8_1;
|
|
4084
|
+
if (step > 0 && inductionVariable <= last_0 || (step < 0 && last_0 <= inductionVariable))
|
|
4085
|
+
do {
|
|
4086
|
+
var index_0 = inductionVariable;
|
|
4087
|
+
inductionVariable = inductionVariable + step | 0;
|
|
4088
|
+
var tmp$ret$0;
|
|
4089
|
+
$l$block: {
|
|
4090
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
4091
|
+
var _iterator__ex2g4s = strings.p();
|
|
4092
|
+
while (_iterator__ex2g4s.q()) {
|
|
4093
|
+
var element = _iterator__ex2g4s.r();
|
|
4094
|
+
if (regionMatches(element, 0, _this__u8e3s4, index_0, element.length, ignoreCase)) {
|
|
4095
|
+
tmp$ret$0 = element;
|
|
4096
|
+
break $l$block;
|
|
4097
|
+
}
|
|
4098
|
+
}
|
|
4099
|
+
tmp$ret$0 = null;
|
|
4100
|
+
}
|
|
4101
|
+
var matchingString = tmp$ret$0;
|
|
4102
|
+
if (!(matchingString == null))
|
|
4103
|
+
return to(index_0, matchingString);
|
|
4104
|
+
}
|
|
4105
|
+
while (!(index_0 === last_0));
|
|
4106
|
+
} else {
|
|
4107
|
+
var inductionVariable_0 = indices.q8_1;
|
|
4108
|
+
var last_1 = indices.r8_1;
|
|
4109
|
+
var step_0 = indices.s8_1;
|
|
4110
|
+
if (step_0 > 0 && inductionVariable_0 <= last_1 || (step_0 < 0 && last_1 <= inductionVariable_0))
|
|
4111
|
+
do {
|
|
4112
|
+
var index_1 = inductionVariable_0;
|
|
4113
|
+
inductionVariable_0 = inductionVariable_0 + step_0 | 0;
|
|
4114
|
+
var tmp$ret$2;
|
|
4115
|
+
$l$block_0: {
|
|
4116
|
+
// Inline function 'kotlin.collections.firstOrNull' call
|
|
4117
|
+
var _iterator__ex2g4s_0 = strings.p();
|
|
4118
|
+
while (_iterator__ex2g4s_0.q()) {
|
|
4119
|
+
var element_0 = _iterator__ex2g4s_0.r();
|
|
4120
|
+
if (regionMatchesImpl(element_0, 0, _this__u8e3s4, index_1, element_0.length, ignoreCase)) {
|
|
4121
|
+
tmp$ret$2 = element_0;
|
|
4122
|
+
break $l$block_0;
|
|
4123
|
+
}
|
|
4124
|
+
}
|
|
4125
|
+
tmp$ret$2 = null;
|
|
4126
|
+
}
|
|
4127
|
+
var matchingString_0 = tmp$ret$2;
|
|
4128
|
+
if (!(matchingString_0 == null))
|
|
4129
|
+
return to(index_1, matchingString_0);
|
|
4130
|
+
}
|
|
4131
|
+
while (!(index_1 === last_1));
|
|
4132
|
+
}
|
|
4133
|
+
return null;
|
|
4134
|
+
}
|
|
4135
|
+
function regionMatchesImpl(_this__u8e3s4, thisOffset, other, otherOffset, length, ignoreCase) {
|
|
4136
|
+
if (otherOffset < 0 || thisOffset < 0 || thisOffset > (charSequenceLength(_this__u8e3s4) - length | 0) || otherOffset > (charSequenceLength(other) - length | 0)) {
|
|
4137
|
+
return false;
|
|
4138
|
+
}
|
|
4139
|
+
var inductionVariable = 0;
|
|
4140
|
+
if (inductionVariable < length)
|
|
4141
|
+
do {
|
|
4142
|
+
var index = inductionVariable;
|
|
4143
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
4144
|
+
if (!equals_0(charSequenceGet(_this__u8e3s4, thisOffset + index | 0), charSequenceGet(other, otherOffset + index | 0), ignoreCase))
|
|
4145
|
+
return false;
|
|
4146
|
+
}
|
|
4147
|
+
while (inductionVariable < length);
|
|
4148
|
+
return true;
|
|
4149
|
+
}
|
|
4150
|
+
var State_instance;
|
|
4151
|
+
function State_getInstance() {
|
|
4152
|
+
return State_instance;
|
|
4153
|
+
}
|
|
4154
|
+
function lastIndexOf_0(_this__u8e3s4, string, startIndex, ignoreCase) {
|
|
4155
|
+
startIndex = startIndex === VOID ? get_lastIndex_0(_this__u8e3s4) : startIndex;
|
|
4156
|
+
ignoreCase = ignoreCase === VOID ? false : ignoreCase;
|
|
4157
|
+
var tmp;
|
|
4158
|
+
var tmp_0;
|
|
4159
|
+
if (ignoreCase) {
|
|
4160
|
+
tmp_0 = true;
|
|
4161
|
+
} else {
|
|
4162
|
+
tmp_0 = !(typeof _this__u8e3s4 === 'string');
|
|
4163
|
+
}
|
|
4164
|
+
if (tmp_0) {
|
|
4165
|
+
tmp = indexOf_2(_this__u8e3s4, string, startIndex, 0, ignoreCase, true);
|
|
4166
|
+
} else {
|
|
4167
|
+
// Inline function 'kotlin.text.nativeLastIndexOf' call
|
|
4168
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
4169
|
+
tmp = _this__u8e3s4.lastIndexOf(string, startIndex);
|
|
4170
|
+
}
|
|
4171
|
+
return tmp;
|
|
4172
|
+
}
|
|
4173
|
+
function substring_2(_this__u8e3s4, range) {
|
|
4174
|
+
return substring(_this__u8e3s4, range.p8(), range.t8() + 1 | 0);
|
|
4175
|
+
}
|
|
4176
|
+
function rangesDelimitedBy$lambda($delimitersList, $ignoreCase) {
|
|
4177
|
+
return ($this$DelimitedRangesSequence, currentIndex) => {
|
|
4178
|
+
var tmp0_safe_receiver = findAnyOf($this$DelimitedRangesSequence, $delimitersList, currentIndex, $ignoreCase, false);
|
|
4179
|
+
var tmp;
|
|
4180
|
+
if (tmp0_safe_receiver == null) {
|
|
4181
|
+
tmp = null;
|
|
4182
|
+
} else {
|
|
4183
|
+
// Inline function 'kotlin.let' call
|
|
4184
|
+
tmp = to(tmp0_safe_receiver.j9_1, tmp0_safe_receiver.k9_1.length);
|
|
4185
|
+
}
|
|
4186
|
+
return tmp;
|
|
4187
|
+
};
|
|
4188
|
+
}
|
|
4189
|
+
function to(_this__u8e3s4, that) {
|
|
4190
|
+
return new Pair(_this__u8e3s4, that);
|
|
4191
|
+
}
|
|
4192
|
+
//region block: post-declaration
|
|
4193
|
+
initMetadataForInterface(CharSequence, 'CharSequence');
|
|
4194
|
+
initMetadataForClass(Number_0, 'Number');
|
|
4195
|
+
initMetadataForClass(asIterable$$inlined$Iterable$1);
|
|
4196
|
+
initMetadataForClass(Char, 'Char');
|
|
4197
|
+
initMetadataForInterface(Collection, 'Collection');
|
|
4198
|
+
initMetadataForInterface(KtList, 'List', VOID, VOID, [Collection]);
|
|
4199
|
+
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
4200
|
+
initMetadataForInterface(Entry, 'Entry');
|
|
4201
|
+
initMetadataForInterface(KtMap, 'Map');
|
|
4202
|
+
initMetadataForCompanion(Companion);
|
|
4203
|
+
initMetadataForClass(Long, 'Long');
|
|
4204
|
+
initMetadataForInterface(FunctionAdapter, 'FunctionAdapter');
|
|
4205
|
+
initMetadataForInterface(Comparator, 'Comparator');
|
|
4206
|
+
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
4207
|
+
initMetadataForClass(AbstractList, 'AbstractList', VOID, VOID, [KtList]);
|
|
4208
|
+
initMetadataForClass(asList$1);
|
|
4209
|
+
initMetadataForObject(Unit, 'Unit');
|
|
4210
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, VOID, [Collection]);
|
|
4211
|
+
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
4212
|
+
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl');
|
|
4213
|
+
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, VOID, [KtList, Collection]);
|
|
4214
|
+
initMetadataForInterface(RandomAccess, 'RandomAccess');
|
|
4215
|
+
initMetadataForClass(SubList, 'SubList', VOID, VOID, [RandomAccess]);
|
|
4216
|
+
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, VOID, [KtSet, Collection]);
|
|
4217
|
+
initMetadataForCompanion(Companion_0);
|
|
4218
|
+
initMetadataForClass(ArrayList, 'ArrayList', ArrayList.x, VOID, [KtList, Collection, RandomAccess]);
|
|
4219
|
+
initMetadataForClass(HashSet, 'HashSet', HashSet.h4, VOID, [KtSet, Collection]);
|
|
4220
|
+
initMetadataForCompanion(Companion_1);
|
|
4221
|
+
initMetadataForClass(Itr, 'Itr');
|
|
4222
|
+
initMetadataForClass(KeysItr, 'KeysItr');
|
|
4223
|
+
initMetadataForClass(EntriesItr, 'EntriesItr');
|
|
4224
|
+
initMetadataForClass(EntryRef, 'EntryRef', VOID, VOID, [Entry]);
|
|
4225
|
+
initMetadataForInterface(InternalMap, 'InternalMap');
|
|
4226
|
+
protoOf(InternalHashMap).l5 = containsAllEntries;
|
|
4227
|
+
initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap.s4, VOID, [InternalMap]);
|
|
4228
|
+
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet.c1, VOID, [KtSet, Collection]);
|
|
4229
|
+
initMetadataForClass(Exception, 'Exception', Exception.w6);
|
|
4230
|
+
initMetadataForClass(RuntimeException, 'RuntimeException', RuntimeException.r6);
|
|
4231
|
+
initMetadataForClass(UnsupportedOperationException, 'UnsupportedOperationException', UnsupportedOperationException.e4);
|
|
4232
|
+
initMetadataForClass(IllegalStateException, 'IllegalStateException', IllegalStateException.u6);
|
|
4233
|
+
initMetadataForClass(IllegalArgumentException, 'IllegalArgumentException', IllegalArgumentException.v6);
|
|
4234
|
+
initMetadataForClass(NoSuchElementException, 'NoSuchElementException', NoSuchElementException.d3);
|
|
4235
|
+
initMetadataForClass(IndexOutOfBoundsException, 'IndexOutOfBoundsException', IndexOutOfBoundsException.x6);
|
|
4236
|
+
initMetadataForClass(ArithmeticException, 'ArithmeticException', ArithmeticException.b7);
|
|
4237
|
+
initMetadataForClass(ConcurrentModificationException, 'ConcurrentModificationException', ConcurrentModificationException.w5);
|
|
4238
|
+
initMetadataForClass(NullPointerException, 'NullPointerException', NullPointerException.k2);
|
|
4239
|
+
initMetadataForClass(ClassCastException, 'ClassCastException', ClassCastException.o2);
|
|
4240
|
+
initMetadataForClass(KClassImpl, 'KClassImpl');
|
|
4241
|
+
initMetadataForClass(PrimitiveKClassImpl, 'PrimitiveKClassImpl');
|
|
4242
|
+
initMetadataForObject(NothingKClassImpl, 'NothingKClassImpl');
|
|
4243
|
+
initMetadataForClass(StringBuilder, 'StringBuilder', StringBuilder.n, VOID, [CharSequence]);
|
|
4244
|
+
initMetadataForCompanion(Companion_2);
|
|
4245
|
+
initMetadataForClass(Regex, 'Regex');
|
|
4246
|
+
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
4247
|
+
initMetadataForClass(SubList_0, 'SubList', VOID, VOID, [RandomAccess]);
|
|
4248
|
+
initMetadataForClass(IteratorImpl_0, 'IteratorImpl');
|
|
4249
|
+
initMetadataForClass(ListIteratorImpl_0, 'ListIteratorImpl');
|
|
4250
|
+
initMetadataForCompanion(Companion_3);
|
|
4251
|
+
initMetadataForCompanion(Companion_4);
|
|
4252
|
+
initMetadataForObject(EmptyList, 'EmptyList', VOID, VOID, [KtList, RandomAccess]);
|
|
4253
|
+
initMetadataForObject(EmptyIterator, 'EmptyIterator');
|
|
4254
|
+
initMetadataForClass(IntIterator, 'IntIterator');
|
|
4255
|
+
initMetadataForObject(EmptySet, 'EmptySet', VOID, VOID, [KtSet]);
|
|
4256
|
+
initMetadataForCompanion(Companion_5);
|
|
4257
|
+
initMetadataForClass(IntProgression, 'IntProgression');
|
|
4258
|
+
initMetadataForClass(IntRange, 'IntRange');
|
|
4259
|
+
initMetadataForClass(IntProgressionIterator, 'IntProgressionIterator');
|
|
4260
|
+
initMetadataForCompanion(Companion_6);
|
|
4261
|
+
initMetadataForClass(DelimitedRangesSequence$iterator$1);
|
|
4262
|
+
initMetadataForClass(DelimitedRangesSequence, 'DelimitedRangesSequence');
|
|
4263
|
+
initMetadataForObject(State, 'State');
|
|
4264
|
+
initMetadataForClass(LinesIterator, 'LinesIterator');
|
|
4265
|
+
initMetadataForClass(lineSequence$$inlined$Sequence$1);
|
|
4266
|
+
initMetadataForClass(Pair, 'Pair');
|
|
4267
|
+
//endregion
|
|
4268
|
+
//region block: init
|
|
4269
|
+
Unit_instance = new Unit();
|
|
4270
|
+
Companion_instance_1 = new Companion_1();
|
|
4271
|
+
Companion_instance_3 = new Companion_3();
|
|
4272
|
+
Companion_instance_4 = new Companion_4();
|
|
4273
|
+
EmptyIterator_instance = new EmptyIterator();
|
|
4274
|
+
Companion_instance_6 = new Companion_6();
|
|
4275
|
+
State_instance = new State();
|
|
4276
|
+
//endregion
|
|
4277
|
+
//region block: exports
|
|
4278
|
+
export {
|
|
4279
|
+
VOID as VOID3gxj6tk5isa35,
|
|
4280
|
+
_Char___init__impl__6a9atx as _Char___init__impl__6a9atx2yltdocdrxs4d,
|
|
4281
|
+
Unit_instance as Unit_instance3vdlo4e4f5ggx,
|
|
4282
|
+
ArrayList as ArrayList3it5z8td81qkl,
|
|
4283
|
+
drop as drop3na99dw9feawf,
|
|
4284
|
+
getOrNull as getOrNull1go7ef9ldk0df,
|
|
4285
|
+
listOf as listOfvhqybd2zx248,
|
|
4286
|
+
singleOrNull as singleOrNullrknfaxokm1sl,
|
|
4287
|
+
single_0 as singleo93pzdgfc557,
|
|
4288
|
+
toList as toList3jhuyej2anx2q,
|
|
4289
|
+
charSequenceLength as charSequenceLength3278n89t01tmv,
|
|
4290
|
+
equals as equals2au1ep9vhcato,
|
|
4291
|
+
hashCode_0 as hashCodeq5arwsb9dgti,
|
|
4292
|
+
initMetadataForClass as initMetadataForClassbxx6q50dy2s7,
|
|
4293
|
+
initMetadataForInterface as initMetadataForInterface1egvbzx539z91,
|
|
4294
|
+
isCharSequence as isCharSequence1ju9jr1w86plq,
|
|
4295
|
+
isInterface as isInterface3d6p8outrmvmk,
|
|
4296
|
+
toString_1 as toString1pkumu07cwy4m,
|
|
4297
|
+
abs_0 as abs1kdzbjes1idip,
|
|
4298
|
+
until as until1jbpn0z3f8lbg,
|
|
4299
|
+
Regex as Regexxgw0gjiagf4z,
|
|
4300
|
+
indexOf_1 as indexOfwa4w6635jewi,
|
|
4301
|
+
indexOf_0 as indexOf1xbs558u7wr52,
|
|
4302
|
+
lastIndexOf as lastIndexOfpmd3ei5son2n,
|
|
4303
|
+
replace as replace3le3ie7l9k8aq,
|
|
4304
|
+
slice as slice18he6c86ndeu7,
|
|
4305
|
+
split as split2bvyvnrlcifjv,
|
|
4306
|
+
startsWith as startsWith26w8qjqapeeq6,
|
|
4307
|
+
substring_0 as substring3saq8ornu0luv,
|
|
4308
|
+
substring as substringiqarkczpya5m,
|
|
4309
|
+
take as take9j4462mea726,
|
|
4310
|
+
trimIndent as trimIndent1qytc1wvt8suh,
|
|
4311
|
+
trim as trim11nh7r46at6sx,
|
|
4312
|
+
THROW_CCE as THROW_CCE2g6jy02ryeudk,
|
|
4313
|
+
ensureNotNull as ensureNotNull1e947j3ixpazm,
|
|
4314
|
+
toString_0 as toString30pk9tzaqopn,
|
|
4315
|
+
to as to2cs3ny02qtbcb,
|
|
4316
|
+
asList_0 as asList1pji8rwrhkggq,
|
|
4317
|
+
};
|
|
4318
|
+
//endregion
|
|
4319
|
+
|
|
4320
|
+
//# sourceMappingURL=kotlin-kotlin-stdlib.mjs.map
|