@tuprolog/arg2p-core 0.16.6 → 0.16.8
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/2p-core.js +2748 -2741
- package/2p-core.js.map +1 -1
- package/2p-solve-prolog.js +2854 -0
- package/2p-solve-prolog.js.map +1 -0
- package/2p-solve.js +5168 -3960
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1679 -1679
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +360 -360
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +421 -420
- package/2p-utils.js.map +1 -1
- package/arg2p-core.js +7 -7
- package/kotlin-kotlin-stdlib.js +2542 -1970
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1528 -1527
- package/kt-math.js.map +1 -1
- package/package.json +1 -1
- package/2p-solve-classic.js +0 -2830
- package/2p-solve-classic.js.map +0 -1
package/2p-utils.js
CHANGED
|
@@ -13,74 +13,75 @@
|
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
17
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
16
|
+
var protoOf = kotlin_kotlin.$_$.o6;
|
|
17
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.c6;
|
|
18
18
|
var Unit_instance = kotlin_kotlin.$_$.n;
|
|
19
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
20
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
21
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
22
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
23
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
19
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.d6;
|
|
20
|
+
var THROW_CCE = kotlin_kotlin.$_$.ka;
|
|
21
|
+
var isInterface = kotlin_kotlin.$_$.i6;
|
|
22
|
+
var initMetadataForClass = kotlin_kotlin.$_$.b6;
|
|
23
|
+
var Sequence = kotlin_kotlin.$_$.h7;
|
|
24
24
|
var VOID = kotlin_kotlin.$_$.b;
|
|
25
|
-
var arrayIterator = kotlin_kotlin.$_$.
|
|
26
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
27
|
-
var
|
|
25
|
+
var arrayIterator = kotlin_kotlin.$_$.l5;
|
|
26
|
+
var compareTo = kotlin_kotlin.$_$.s5;
|
|
27
|
+
var Comparable = kotlin_kotlin.$_$.z9;
|
|
28
|
+
var toList = kotlin_kotlin.$_$.q8;
|
|
28
29
|
var asSequence = kotlin_kotlin.$_$.b2;
|
|
29
30
|
var asIterable = kotlin_kotlin.$_$.x1;
|
|
30
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
31
|
+
var hashCode = kotlin_kotlin.$_$.a6;
|
|
31
32
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.d2;
|
|
32
33
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.o;
|
|
33
|
-
var asIterable_0 = kotlin_kotlin.$_$.
|
|
34
|
-
var sequence = kotlin_kotlin.$_$.
|
|
35
|
-
var IntRange = kotlin_kotlin.$_$.
|
|
36
|
-
var zip = kotlin_kotlin.$_$.
|
|
37
|
-
var equals = kotlin_kotlin.$_$.
|
|
38
|
-
var FunctionAdapter = kotlin_kotlin.$_$.
|
|
39
|
-
var Comparator = kotlin_kotlin.$_$.
|
|
40
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
41
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
42
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
43
|
-
var initMetadataForLambda = kotlin_kotlin.$_$.
|
|
44
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
45
|
-
var withIndex = kotlin_kotlin.$_$.
|
|
46
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
47
|
-
var map = kotlin_kotlin.$_$.
|
|
48
|
-
var filterNot = kotlin_kotlin.$_$.
|
|
49
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
50
|
-
var minWithOrNull = kotlin_kotlin.$_$.
|
|
51
|
-
var toString = kotlin_kotlin.$_$.
|
|
52
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
34
|
+
var asIterable_0 = kotlin_kotlin.$_$.j7;
|
|
35
|
+
var sequence = kotlin_kotlin.$_$.k8;
|
|
36
|
+
var IntRange = kotlin_kotlin.$_$.a7;
|
|
37
|
+
var zip = kotlin_kotlin.$_$.u8;
|
|
38
|
+
var equals = kotlin_kotlin.$_$.v5;
|
|
39
|
+
var FunctionAdapter = kotlin_kotlin.$_$.k5;
|
|
40
|
+
var Comparator = kotlin_kotlin.$_$.aa;
|
|
41
|
+
var CoroutineImpl = kotlin_kotlin.$_$.r4;
|
|
42
|
+
var SequenceScope = kotlin_kotlin.$_$.g7;
|
|
43
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.q4;
|
|
44
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.e6;
|
|
45
|
+
var constructCallableReference = kotlin_kotlin.$_$.t5;
|
|
46
|
+
var withIndex = kotlin_kotlin.$_$.t8;
|
|
47
|
+
var ensureNotNull = kotlin_kotlin.$_$.oa;
|
|
48
|
+
var map = kotlin_kotlin.$_$.d8;
|
|
49
|
+
var filterNot = kotlin_kotlin.$_$.r7;
|
|
50
|
+
var toMutableList = kotlin_kotlin.$_$.r8;
|
|
51
|
+
var minWithOrNull = kotlin_kotlin.$_$.e8;
|
|
52
|
+
var toString = kotlin_kotlin.$_$.va;
|
|
53
|
+
var initMetadataForObject = kotlin_kotlin.$_$.f6;
|
|
53
54
|
var KtMap = kotlin_kotlin.$_$.s1;
|
|
54
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
55
|
-
var lazy = kotlin_kotlin.$_$.
|
|
56
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
57
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
58
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
55
|
+
var toString_0 = kotlin_kotlin.$_$.r6;
|
|
56
|
+
var lazy = kotlin_kotlin.$_$.ra;
|
|
57
|
+
var KProperty1 = kotlin_kotlin.$_$.f7;
|
|
58
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.y5;
|
|
59
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.d7;
|
|
59
60
|
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.i1;
|
|
60
|
-
var subtract = kotlin_kotlin.$_$.
|
|
61
|
-
var convertToInt = kotlin_kotlin.$_$.
|
|
62
|
-
var getBigIntHashCode = kotlin_kotlin.$_$.
|
|
63
|
-
var first = kotlin_kotlin.$_$.
|
|
64
|
-
var to = kotlin_kotlin.$_$.
|
|
65
|
-
var Pair = kotlin_kotlin.$_$.
|
|
61
|
+
var subtract = kotlin_kotlin.$_$.i5;
|
|
62
|
+
var convertToInt = kotlin_kotlin.$_$.x4;
|
|
63
|
+
var getBigIntHashCode = kotlin_kotlin.$_$.w5;
|
|
64
|
+
var first = kotlin_kotlin.$_$.q2;
|
|
65
|
+
var to = kotlin_kotlin.$_$.wa;
|
|
66
|
+
var Pair = kotlin_kotlin.$_$.ia;
|
|
66
67
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.c1;
|
|
67
68
|
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.r;
|
|
68
|
-
var joinToString = kotlin_kotlin.$_$.
|
|
69
|
-
var mutableListOf = kotlin_kotlin.$_$.
|
|
69
|
+
var joinToString = kotlin_kotlin.$_$.z7;
|
|
70
|
+
var mutableListOf = kotlin_kotlin.$_$.l3;
|
|
70
71
|
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.p;
|
|
71
72
|
var addAll = kotlin_kotlin.$_$.u1;
|
|
72
73
|
//endregion
|
|
73
74
|
//region block: pre-declaration
|
|
74
75
|
initMetadataForCompanion(Companion);
|
|
75
76
|
function getOrSet(key, valueGenerator) {
|
|
76
|
-
var got = this.
|
|
77
|
+
var got = this.j2(key);
|
|
77
78
|
var tmp;
|
|
78
79
|
if (got instanceof Some) {
|
|
79
|
-
tmp = got.
|
|
80
|
+
tmp = got.uo_1;
|
|
80
81
|
} else {
|
|
81
82
|
// Inline function 'kotlin.also' call
|
|
82
83
|
var this_0 = valueGenerator();
|
|
83
|
-
this.
|
|
84
|
+
this.so(key, this_0);
|
|
84
85
|
tmp = this_0;
|
|
85
86
|
}
|
|
86
87
|
return tmp;
|
|
@@ -89,13 +90,13 @@
|
|
|
89
90
|
initMetadataForCompanion(Companion_0);
|
|
90
91
|
function ifValid(consumer) {
|
|
91
92
|
var tmp;
|
|
92
|
-
if (this.
|
|
93
|
+
if (this.wo()) {
|
|
93
94
|
var tmp_0 = Companion_instance_4;
|
|
94
95
|
// Inline function 'kotlin.let' call
|
|
95
|
-
var tmp$ret$0 = consumer(this.
|
|
96
|
-
tmp = tmp_0.
|
|
96
|
+
var tmp$ret$0 = consumer(this.g2());
|
|
97
|
+
tmp = tmp_0.ap(tmp$ret$0);
|
|
97
98
|
} else {
|
|
98
|
-
tmp = Companion_instance_4.
|
|
99
|
+
tmp = Companion_instance_4.zo();
|
|
99
100
|
}
|
|
100
101
|
return tmp;
|
|
101
102
|
}
|
|
@@ -117,17 +118,17 @@
|
|
|
117
118
|
}
|
|
118
119
|
initMetadataForInterface(Cursor, 'Cursor');
|
|
119
120
|
function component1() {
|
|
120
|
-
return this.
|
|
121
|
+
return this.jp();
|
|
121
122
|
}
|
|
122
123
|
function component2() {
|
|
123
|
-
return this.
|
|
124
|
+
return this.g2();
|
|
124
125
|
}
|
|
125
126
|
initMetadataForInterface(Indexed, 'Indexed');
|
|
126
127
|
initMetadataForCompanion(Companion_2);
|
|
127
128
|
function compareTo_0(other) {
|
|
128
|
-
return compareTo(this.
|
|
129
|
+
return compareTo(this.jp(), other.jp());
|
|
129
130
|
}
|
|
130
|
-
initMetadataForInterface(IntIndexed, 'IntIndexed', VOID, VOID, [Indexed]);
|
|
131
|
+
initMetadataForInterface(IntIndexed, 'IntIndexed', VOID, VOID, [Indexed, Comparable]);
|
|
131
132
|
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
|
|
132
133
|
initMetadataForLambda(dropLast$slambda, CoroutineImpl, VOID, [1]);
|
|
133
134
|
initMetadataForLambda(insertAt$slambda, CoroutineImpl, VOID, [1]);
|
|
@@ -135,21 +136,21 @@
|
|
|
135
136
|
initMetadataForLambda(merge$slambda, CoroutineImpl, VOID, [1]);
|
|
136
137
|
initMetadataForCompanion(Companion_3);
|
|
137
138
|
function compareTo_1(other) {
|
|
138
|
-
return compareTo(this.
|
|
139
|
+
return compareTo(this.jp(), other.jp());
|
|
139
140
|
}
|
|
140
|
-
initMetadataForInterface(LongIndexed, 'LongIndexed', VOID, VOID, [Indexed]);
|
|
141
|
+
initMetadataForInterface(LongIndexed, 'LongIndexed', VOID, VOID, [Indexed, Comparable]);
|
|
141
142
|
initMetadataForCompanion(Companion_4);
|
|
142
143
|
initMetadataForClass(Optional, 'Optional');
|
|
143
144
|
initMetadataForClass(Some, 'Some', VOID, Optional);
|
|
144
145
|
initMetadataForObject(None, 'None', VOID, Optional);
|
|
145
146
|
function getTag(name) {
|
|
146
|
-
return this.
|
|
147
|
+
return this.ir().j2(name);
|
|
147
148
|
}
|
|
148
149
|
function containsTag(name) {
|
|
149
150
|
// Inline function 'kotlin.collections.contains' call
|
|
150
151
|
// Inline function 'kotlin.collections.containsKey' call
|
|
151
|
-
var this_0 = this.
|
|
152
|
-
return (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).
|
|
152
|
+
var this_0 = this.ir();
|
|
153
|
+
return (isInterface(this_0, KtMap) ? this_0 : THROW_CCE()).h2(name);
|
|
153
154
|
}
|
|
154
155
|
initMetadataForInterface(Taggable, 'Taggable');
|
|
155
156
|
initMetadataForCompanion(Companion_5);
|
|
@@ -168,7 +169,7 @@
|
|
|
168
169
|
//endregion
|
|
169
170
|
function Companion() {
|
|
170
171
|
}
|
|
171
|
-
protoOf(Companion).
|
|
172
|
+
protoOf(Companion).ro = function (capacity) {
|
|
172
173
|
return new SimpleLRUCache(capacity);
|
|
173
174
|
};
|
|
174
175
|
var Companion_instance;
|
|
@@ -179,7 +180,7 @@
|
|
|
179
180
|
}
|
|
180
181
|
function Companion_0() {
|
|
181
182
|
}
|
|
182
|
-
protoOf(Companion_0).
|
|
183
|
+
protoOf(Companion_0).vo = function (generator) {
|
|
183
184
|
return new CachedImpl(generator);
|
|
184
185
|
};
|
|
185
186
|
var Companion_instance_0;
|
|
@@ -206,39 +207,39 @@
|
|
|
206
207
|
return Companion_instance_1;
|
|
207
208
|
}
|
|
208
209
|
function Cursor$asIterable$$inlined$Iterable$1(this$0) {
|
|
209
|
-
this.
|
|
210
|
+
this.cp_1 = this$0;
|
|
210
211
|
}
|
|
211
|
-
protoOf(Cursor$asIterable$$inlined$Iterable$1).
|
|
212
|
-
return this.
|
|
212
|
+
protoOf(Cursor$asIterable$$inlined$Iterable$1).n = function () {
|
|
213
|
+
return this.cp_1.iterator();
|
|
213
214
|
};
|
|
214
215
|
function Cursor$asSequence$$inlined$Sequence$1(this$0) {
|
|
215
|
-
this.
|
|
216
|
+
this.dp_1 = this$0;
|
|
216
217
|
}
|
|
217
|
-
protoOf(Cursor$asSequence$$inlined$Sequence$1).
|
|
218
|
-
return this.
|
|
218
|
+
protoOf(Cursor$asSequence$$inlined$Sequence$1).n = function () {
|
|
219
|
+
return this.dp_1.iterator();
|
|
219
220
|
};
|
|
220
221
|
function Cursor() {
|
|
221
222
|
}
|
|
222
223
|
function cursor(_this__u8e3s4) {
|
|
223
|
-
return toCursor(_this__u8e3s4.
|
|
224
|
+
return toCursor(_this__u8e3s4.n());
|
|
224
225
|
}
|
|
225
226
|
function plus(_this__u8e3s4, other) {
|
|
226
|
-
return other.
|
|
227
|
+
return other.gp() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.gp() ? _this__u8e3s4 : EmptyCursor_getInstance();
|
|
227
228
|
}
|
|
228
229
|
function cursor_0(_this__u8e3s4) {
|
|
229
|
-
return toCursor(_this__u8e3s4.
|
|
230
|
+
return toCursor(_this__u8e3s4.n());
|
|
230
231
|
}
|
|
231
232
|
function cursor_1(_this__u8e3s4) {
|
|
232
233
|
return toCursor(arrayIterator(_this__u8e3s4));
|
|
233
234
|
}
|
|
234
235
|
function toCursor(_this__u8e3s4) {
|
|
235
|
-
return Companion_instance_5.
|
|
236
|
+
return Companion_instance_5.ip(_this__u8e3s4);
|
|
236
237
|
}
|
|
237
238
|
function Indexed() {
|
|
238
239
|
}
|
|
239
240
|
function Companion_2() {
|
|
240
241
|
}
|
|
241
|
-
protoOf(Companion_2).
|
|
242
|
+
protoOf(Companion_2).kp = function (index, value) {
|
|
242
243
|
return new IntIndexedImpl(index, value);
|
|
243
244
|
};
|
|
244
245
|
var Companion_instance_2;
|
|
@@ -258,10 +259,10 @@
|
|
|
258
259
|
}
|
|
259
260
|
function itemWiseHashCode_0(iterable) {
|
|
260
261
|
var hash = 13;
|
|
261
|
-
var i = iterable.
|
|
262
|
-
while (i.
|
|
262
|
+
var i = iterable.n();
|
|
263
|
+
while (i.q()) {
|
|
263
264
|
var tmp = imul(31, hash);
|
|
264
|
-
var tmp0_safe_receiver = i.
|
|
265
|
+
var tmp0_safe_receiver = i.r();
|
|
265
266
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
266
267
|
hash = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
267
268
|
}
|
|
@@ -275,11 +276,11 @@
|
|
|
275
276
|
// Inline function 'kotlin.collections.map' call
|
|
276
277
|
// Inline function 'kotlin.collections.mapTo' call
|
|
277
278
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(iterables, 10));
|
|
278
|
-
var _iterator__ex2g4s = iterables.
|
|
279
|
-
while (_iterator__ex2g4s.
|
|
280
|
-
var item = _iterator__ex2g4s.
|
|
279
|
+
var _iterator__ex2g4s = iterables.n();
|
|
280
|
+
while (_iterator__ex2g4s.q()) {
|
|
281
|
+
var item = _iterator__ex2g4s.r();
|
|
281
282
|
var tmp$ret$2 = asIterable_0(item);
|
|
282
|
-
destination.
|
|
283
|
+
destination.l(tmp$ret$2);
|
|
283
284
|
}
|
|
284
285
|
return merge(tmp, destination);
|
|
285
286
|
}
|
|
@@ -296,16 +297,16 @@
|
|
|
296
297
|
return sequence(insertAt$slambda_0(_this__u8e3s4, index, item, items, null));
|
|
297
298
|
}
|
|
298
299
|
function itemWiseEquals_1(iterable1, iterable2, comparator) {
|
|
299
|
-
var i = iterable1.
|
|
300
|
-
var j = iterable2.
|
|
301
|
-
while (i.
|
|
302
|
-
var a = i.
|
|
303
|
-
var b = j.
|
|
300
|
+
var i = iterable1.n();
|
|
301
|
+
var j = iterable2.n();
|
|
302
|
+
while (i.q() && j.q()) {
|
|
303
|
+
var a = i.r();
|
|
304
|
+
var b = j.r();
|
|
304
305
|
if (!comparator(a, b)) {
|
|
305
306
|
return false;
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
|
-
return i.
|
|
309
|
+
return i.q() === j.q();
|
|
309
310
|
}
|
|
310
311
|
function merge(comparator, iterables) {
|
|
311
312
|
return sequence(merge$slambda_0(iterables, comparator, null));
|
|
@@ -315,23 +316,23 @@
|
|
|
315
316
|
return zip(_this__u8e3s4, tmp, indexed$lambda);
|
|
316
317
|
}
|
|
317
318
|
function sam$kotlin_Comparator$0(function_0) {
|
|
318
|
-
this.
|
|
319
|
+
this.mp_1 = function_0;
|
|
319
320
|
}
|
|
320
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
321
|
-
return this.
|
|
321
|
+
protoOf(sam$kotlin_Comparator$0).bb = function (a, b) {
|
|
322
|
+
return this.mp_1(a, b);
|
|
322
323
|
};
|
|
323
324
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
324
|
-
return this.
|
|
325
|
+
return this.bb(a, b);
|
|
325
326
|
};
|
|
326
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
327
|
-
return this.
|
|
327
|
+
protoOf(sam$kotlin_Comparator$0).r2 = function () {
|
|
328
|
+
return this.mp_1;
|
|
328
329
|
};
|
|
329
330
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
330
331
|
var tmp;
|
|
331
332
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
332
333
|
var tmp_0;
|
|
333
334
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
334
|
-
tmp_0 = equals(this.
|
|
335
|
+
tmp_0 = equals(this.r2(), other.r2());
|
|
335
336
|
} else {
|
|
336
337
|
tmp_0 = false;
|
|
337
338
|
}
|
|
@@ -342,202 +343,202 @@
|
|
|
342
343
|
return tmp;
|
|
343
344
|
};
|
|
344
345
|
protoOf(sam$kotlin_Comparator$0).hashCode = function () {
|
|
345
|
-
return hashCode(this.
|
|
346
|
+
return hashCode(this.r2());
|
|
346
347
|
};
|
|
347
348
|
function itemWiseEquals$lambda(a, b) {
|
|
348
349
|
return equals(a, b);
|
|
349
350
|
}
|
|
350
351
|
function dropLast$slambda($this_dropLast, resultContinuation) {
|
|
351
|
-
this
|
|
352
|
+
this.vp_1 = $this_dropLast;
|
|
352
353
|
CoroutineImpl.call(this, resultContinuation);
|
|
353
354
|
}
|
|
354
|
-
protoOf(dropLast$slambda).
|
|
355
|
-
var tmp = this.
|
|
356
|
-
tmp.
|
|
357
|
-
tmp.
|
|
358
|
-
return tmp.
|
|
355
|
+
protoOf(dropLast$slambda).yp = function ($this$sequence, $completion) {
|
|
356
|
+
var tmp = this.zp($this$sequence, $completion);
|
|
357
|
+
tmp.e8_1 = Unit_instance;
|
|
358
|
+
tmp.f8_1 = null;
|
|
359
|
+
return tmp.k8();
|
|
359
360
|
};
|
|
360
|
-
protoOf(dropLast$slambda).
|
|
361
|
-
return this.
|
|
361
|
+
protoOf(dropLast$slambda).b9 = function (p1, $completion) {
|
|
362
|
+
return this.yp(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
362
363
|
};
|
|
363
|
-
protoOf(dropLast$slambda).
|
|
364
|
-
var suspendResult = this.
|
|
364
|
+
protoOf(dropLast$slambda).k8 = function () {
|
|
365
|
+
var suspendResult = this.e8_1;
|
|
365
366
|
$sm: do
|
|
366
367
|
try {
|
|
367
|
-
var tmp = this.
|
|
368
|
+
var tmp = this.c8_1;
|
|
368
369
|
switch (tmp) {
|
|
369
370
|
case 0:
|
|
370
|
-
this.
|
|
371
|
-
this.
|
|
372
|
-
this.
|
|
371
|
+
this.d8_1 = 5;
|
|
372
|
+
this.xp_1 = this.vp_1.n();
|
|
373
|
+
this.c8_1 = 1;
|
|
373
374
|
continue $sm;
|
|
374
375
|
case 1:
|
|
375
|
-
if (!this.
|
|
376
|
-
this.
|
|
376
|
+
if (!this.xp_1.q()) {
|
|
377
|
+
this.c8_1 = 4;
|
|
377
378
|
continue $sm;
|
|
378
379
|
}
|
|
379
380
|
|
|
380
|
-
var current = this.
|
|
381
|
-
if (this.
|
|
382
|
-
this.
|
|
383
|
-
suspendResult = this
|
|
381
|
+
var current = this.xp_1.r();
|
|
382
|
+
if (this.xp_1.q()) {
|
|
383
|
+
this.c8_1 = 2;
|
|
384
|
+
suspendResult = this.wp_1.nc(current, this);
|
|
384
385
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
385
386
|
return suspendResult;
|
|
386
387
|
}
|
|
387
388
|
continue $sm;
|
|
388
389
|
} else {
|
|
389
|
-
this.
|
|
390
|
+
this.c8_1 = 3;
|
|
390
391
|
continue $sm;
|
|
391
392
|
}
|
|
392
393
|
|
|
393
394
|
case 2:
|
|
394
|
-
this.
|
|
395
|
+
this.c8_1 = 3;
|
|
395
396
|
continue $sm;
|
|
396
397
|
case 3:
|
|
397
|
-
this.
|
|
398
|
+
this.c8_1 = 1;
|
|
398
399
|
continue $sm;
|
|
399
400
|
case 4:
|
|
400
401
|
return Unit_instance;
|
|
401
402
|
case 5:
|
|
402
|
-
throw this.
|
|
403
|
+
throw this.f8_1;
|
|
403
404
|
}
|
|
404
405
|
} catch ($p) {
|
|
405
406
|
var e = $p;
|
|
406
|
-
if (this.
|
|
407
|
+
if (this.d8_1 === 5) {
|
|
407
408
|
throw e;
|
|
408
409
|
} else {
|
|
409
|
-
this.
|
|
410
|
-
this.
|
|
410
|
+
this.c8_1 = this.d8_1;
|
|
411
|
+
this.f8_1 = e;
|
|
411
412
|
}
|
|
412
413
|
}
|
|
413
414
|
while (true);
|
|
414
415
|
};
|
|
415
|
-
protoOf(dropLast$slambda).
|
|
416
|
-
var i = new dropLast$slambda(this
|
|
417
|
-
i
|
|
416
|
+
protoOf(dropLast$slambda).zp = function ($this$sequence, completion) {
|
|
417
|
+
var i = new dropLast$slambda(this.vp_1, completion);
|
|
418
|
+
i.wp_1 = $this$sequence;
|
|
418
419
|
return i;
|
|
419
420
|
};
|
|
420
421
|
function dropLast$slambda_0($this_dropLast, resultContinuation) {
|
|
421
422
|
var i = new dropLast$slambda($this_dropLast, resultContinuation);
|
|
422
423
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
423
|
-
return i.
|
|
424
|
+
return i.yp($this$sequence, $completion);
|
|
424
425
|
}, 1);
|
|
425
426
|
}
|
|
426
427
|
function insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
427
|
-
this
|
|
428
|
-
this
|
|
429
|
-
this
|
|
430
|
-
this
|
|
428
|
+
this.iq_1 = $this_insertAt;
|
|
429
|
+
this.jq_1 = $index;
|
|
430
|
+
this.kq_1 = $item;
|
|
431
|
+
this.lq_1 = $items;
|
|
431
432
|
CoroutineImpl.call(this, resultContinuation);
|
|
432
433
|
}
|
|
433
|
-
protoOf(insertAt$slambda).
|
|
434
|
-
var tmp = this.
|
|
435
|
-
tmp.
|
|
436
|
-
tmp.
|
|
437
|
-
return tmp.
|
|
434
|
+
protoOf(insertAt$slambda).yp = function ($this$sequence, $completion) {
|
|
435
|
+
var tmp = this.zp($this$sequence, $completion);
|
|
436
|
+
tmp.e8_1 = Unit_instance;
|
|
437
|
+
tmp.f8_1 = null;
|
|
438
|
+
return tmp.k8();
|
|
438
439
|
};
|
|
439
|
-
protoOf(insertAt$slambda).
|
|
440
|
-
return this.
|
|
440
|
+
protoOf(insertAt$slambda).b9 = function (p1, $completion) {
|
|
441
|
+
return this.yp(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
441
442
|
};
|
|
442
|
-
protoOf(insertAt$slambda).
|
|
443
|
-
var suspendResult = this.
|
|
443
|
+
protoOf(insertAt$slambda).k8 = function () {
|
|
444
|
+
var suspendResult = this.e8_1;
|
|
444
445
|
$sm: do
|
|
445
446
|
try {
|
|
446
|
-
var tmp = this.
|
|
447
|
+
var tmp = this.c8_1;
|
|
447
448
|
switch (tmp) {
|
|
448
449
|
case 0:
|
|
449
|
-
this.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
450
|
+
this.d8_1 = 7;
|
|
451
|
+
this.oq_1 = asIterable_0(withIndex(this.iq_1)).n();
|
|
452
|
+
this.c8_1 = 1;
|
|
452
453
|
continue $sm;
|
|
453
454
|
case 1:
|
|
454
|
-
if (!this.
|
|
455
|
-
this.
|
|
455
|
+
if (!this.oq_1.q()) {
|
|
456
|
+
this.c8_1 = 6;
|
|
456
457
|
continue $sm;
|
|
457
458
|
}
|
|
458
459
|
|
|
459
|
-
var _destruct__k2r9zo = this.
|
|
460
|
-
var i = _destruct__k2r9zo.
|
|
461
|
-
this.
|
|
462
|
-
if (i === this
|
|
463
|
-
this.
|
|
464
|
-
suspendResult = this
|
|
460
|
+
var _destruct__k2r9zo = this.oq_1.r();
|
|
461
|
+
var i = _destruct__k2r9zo.ac();
|
|
462
|
+
this.nq_1 = _destruct__k2r9zo.bc();
|
|
463
|
+
if (i === this.jq_1) {
|
|
464
|
+
this.c8_1 = 2;
|
|
465
|
+
suspendResult = this.mq_1.nc(this.kq_1, this);
|
|
465
466
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
466
467
|
return suspendResult;
|
|
467
468
|
}
|
|
468
469
|
continue $sm;
|
|
469
470
|
} else {
|
|
470
|
-
this.
|
|
471
|
+
this.c8_1 = 4;
|
|
471
472
|
continue $sm;
|
|
472
473
|
}
|
|
473
474
|
|
|
474
475
|
case 2:
|
|
475
|
-
this.
|
|
476
|
-
suspendResult = this
|
|
476
|
+
this.c8_1 = 3;
|
|
477
|
+
suspendResult = this.mq_1.pc(asIterable(this.lq_1), this);
|
|
477
478
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
478
479
|
return suspendResult;
|
|
479
480
|
}
|
|
480
481
|
|
|
481
482
|
continue $sm;
|
|
482
483
|
case 3:
|
|
483
|
-
this.
|
|
484
|
+
this.c8_1 = 4;
|
|
484
485
|
continue $sm;
|
|
485
486
|
case 4:
|
|
486
|
-
this.
|
|
487
|
-
suspendResult = this
|
|
487
|
+
this.c8_1 = 5;
|
|
488
|
+
suspendResult = this.mq_1.nc(this.nq_1, this);
|
|
488
489
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
489
490
|
return suspendResult;
|
|
490
491
|
}
|
|
491
492
|
|
|
492
493
|
continue $sm;
|
|
493
494
|
case 5:
|
|
494
|
-
this.
|
|
495
|
+
this.c8_1 = 1;
|
|
495
496
|
continue $sm;
|
|
496
497
|
case 6:
|
|
497
498
|
return Unit_instance;
|
|
498
499
|
case 7:
|
|
499
|
-
throw this.
|
|
500
|
+
throw this.f8_1;
|
|
500
501
|
}
|
|
501
502
|
} catch ($p) {
|
|
502
503
|
var e = $p;
|
|
503
|
-
if (this.
|
|
504
|
+
if (this.d8_1 === 7) {
|
|
504
505
|
throw e;
|
|
505
506
|
} else {
|
|
506
|
-
this.
|
|
507
|
-
this.
|
|
507
|
+
this.c8_1 = this.d8_1;
|
|
508
|
+
this.f8_1 = e;
|
|
508
509
|
}
|
|
509
510
|
}
|
|
510
511
|
while (true);
|
|
511
512
|
};
|
|
512
|
-
protoOf(insertAt$slambda).
|
|
513
|
-
var i = new insertAt$slambda(this
|
|
514
|
-
i
|
|
513
|
+
protoOf(insertAt$slambda).zp = function ($this$sequence, completion) {
|
|
514
|
+
var i = new insertAt$slambda(this.iq_1, this.jq_1, this.kq_1, this.lq_1, completion);
|
|
515
|
+
i.mq_1 = $this$sequence;
|
|
515
516
|
return i;
|
|
516
517
|
};
|
|
517
518
|
function insertAt$slambda_0($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
518
519
|
var i = new insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation);
|
|
519
520
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
520
|
-
return i.
|
|
521
|
+
return i.yp($this$sequence, $completion);
|
|
521
522
|
}, 1);
|
|
522
523
|
}
|
|
523
524
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
524
|
-
this.
|
|
525
|
+
this.pq_1 = function_0;
|
|
525
526
|
}
|
|
526
|
-
protoOf(sam$kotlin_Comparator$0_0).
|
|
527
|
-
return this.
|
|
527
|
+
protoOf(sam$kotlin_Comparator$0_0).bb = function (a, b) {
|
|
528
|
+
return this.pq_1(a, b);
|
|
528
529
|
};
|
|
529
530
|
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
530
|
-
return this.
|
|
531
|
+
return this.bb(a, b);
|
|
531
532
|
};
|
|
532
|
-
protoOf(sam$kotlin_Comparator$0_0).
|
|
533
|
-
return this.
|
|
533
|
+
protoOf(sam$kotlin_Comparator$0_0).r2 = function () {
|
|
534
|
+
return this.pq_1;
|
|
534
535
|
};
|
|
535
536
|
protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
|
|
536
537
|
var tmp;
|
|
537
538
|
if (!(other == null) ? isInterface(other, Comparator) : false) {
|
|
538
539
|
var tmp_0;
|
|
539
540
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
540
|
-
tmp_0 = equals(this.
|
|
541
|
+
tmp_0 = equals(this.r2(), other.r2());
|
|
541
542
|
} else {
|
|
542
543
|
tmp_0 = false;
|
|
543
544
|
}
|
|
@@ -548,114 +549,114 @@
|
|
|
548
549
|
return tmp;
|
|
549
550
|
};
|
|
550
551
|
protoOf(sam$kotlin_Comparator$0_0).hashCode = function () {
|
|
551
|
-
return hashCode(this.
|
|
552
|
+
return hashCode(this.r2());
|
|
552
553
|
};
|
|
553
554
|
function merge$slambda$lambda(it) {
|
|
554
555
|
return cursor_0(it);
|
|
555
556
|
}
|
|
556
557
|
function merge$slambda$lambda_0(it) {
|
|
557
|
-
return it.
|
|
558
|
+
return it.hp();
|
|
558
559
|
}
|
|
559
560
|
function merge$slambda$lambda_1(it) {
|
|
560
|
-
return ensureNotNull(it.
|
|
561
|
+
return ensureNotNull(it.fp());
|
|
561
562
|
}
|
|
562
563
|
function merge$slambda$lambda_2($comparator) {
|
|
563
564
|
return function (a, b) {
|
|
564
|
-
return $comparator.compare(a.
|
|
565
|
+
return $comparator.compare(a.g2(), b.g2());
|
|
565
566
|
};
|
|
566
567
|
}
|
|
567
568
|
function merge$slambda($iterables, $comparator, resultContinuation) {
|
|
568
|
-
this
|
|
569
|
-
this
|
|
569
|
+
this.yq_1 = $iterables;
|
|
570
|
+
this.zq_1 = $comparator;
|
|
570
571
|
CoroutineImpl.call(this, resultContinuation);
|
|
571
572
|
}
|
|
572
|
-
protoOf(merge$slambda).
|
|
573
|
-
var tmp = this.
|
|
574
|
-
tmp.
|
|
575
|
-
tmp.
|
|
576
|
-
return tmp.
|
|
573
|
+
protoOf(merge$slambda).yp = function ($this$sequence, $completion) {
|
|
574
|
+
var tmp = this.zp($this$sequence, $completion);
|
|
575
|
+
tmp.e8_1 = Unit_instance;
|
|
576
|
+
tmp.f8_1 = null;
|
|
577
|
+
return tmp.k8();
|
|
577
578
|
};
|
|
578
|
-
protoOf(merge$slambda).
|
|
579
|
-
return this.
|
|
579
|
+
protoOf(merge$slambda).b9 = function (p1, $completion) {
|
|
580
|
+
return this.yp(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
580
581
|
};
|
|
581
|
-
protoOf(merge$slambda).
|
|
582
|
-
var suspendResult = this.
|
|
582
|
+
protoOf(merge$slambda).k8 = function () {
|
|
583
|
+
var suspendResult = this.e8_1;
|
|
583
584
|
$sm: do
|
|
584
585
|
try {
|
|
585
|
-
var tmp = this.
|
|
586
|
+
var tmp = this.c8_1;
|
|
586
587
|
switch (tmp) {
|
|
587
588
|
case 0:
|
|
588
|
-
this.
|
|
589
|
+
this.d8_1 = 3;
|
|
589
590
|
var tmp_0 = this;
|
|
590
|
-
var tmp_1 = asSequence(this
|
|
591
|
+
var tmp_1 = asSequence(this.yq_1);
|
|
591
592
|
var tmp_2 = map(tmp_1, merge$slambda$lambda);
|
|
592
|
-
tmp_0.
|
|
593
|
-
this.
|
|
593
|
+
tmp_0.cr_1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
|
|
594
|
+
this.c8_1 = 1;
|
|
594
595
|
continue $sm;
|
|
595
596
|
case 1:
|
|
596
|
-
if (!!this.
|
|
597
|
-
this.
|
|
597
|
+
if (!!this.cr_1.i()) {
|
|
598
|
+
this.c8_1 = 4;
|
|
598
599
|
continue $sm;
|
|
599
600
|
}
|
|
600
601
|
|
|
601
|
-
var tmp_3 = asSequence(this.
|
|
602
|
+
var tmp_3 = asSequence(this.cr_1);
|
|
602
603
|
var tmp_4 = indexed(map(tmp_3, merge$slambda$lambda_1));
|
|
603
|
-
var tmp_5 = merge$slambda$lambda_2(this
|
|
604
|
+
var tmp_5 = merge$slambda$lambda_2(this.zq_1);
|
|
604
605
|
var _destruct__k2r9zo = ensureNotNull(minWithOrNull(tmp_4, new sam$kotlin_Comparator$0_0(tmp_5)));
|
|
605
|
-
this.
|
|
606
|
-
var minValue = _destruct__k2r9zo.
|
|
607
|
-
this.
|
|
608
|
-
suspendResult = this
|
|
606
|
+
this.br_1 = _destruct__k2r9zo.ac();
|
|
607
|
+
var minValue = _destruct__k2r9zo.bc();
|
|
608
|
+
this.c8_1 = 2;
|
|
609
|
+
suspendResult = this.ar_1.nc(minValue, this);
|
|
609
610
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
610
611
|
return suspendResult;
|
|
611
612
|
}
|
|
612
613
|
|
|
613
614
|
continue $sm;
|
|
614
615
|
case 2:
|
|
615
|
-
var it = this.
|
|
616
|
+
var it = this.cr_1.u(this.br_1).ep();
|
|
616
617
|
var tmp_6;
|
|
617
|
-
if (it.
|
|
618
|
-
tmp_6 = this.
|
|
618
|
+
if (it.hp()) {
|
|
619
|
+
tmp_6 = this.cr_1.k3(this.br_1);
|
|
619
620
|
} else {
|
|
620
|
-
this.
|
|
621
|
+
this.cr_1.c3(this.br_1, it);
|
|
621
622
|
tmp_6 = Unit_instance;
|
|
622
623
|
}
|
|
623
624
|
|
|
624
|
-
this.
|
|
625
|
+
this.c8_1 = 1;
|
|
625
626
|
continue $sm;
|
|
626
627
|
case 3:
|
|
627
|
-
throw this.
|
|
628
|
+
throw this.f8_1;
|
|
628
629
|
case 4:
|
|
629
630
|
return Unit_instance;
|
|
630
631
|
}
|
|
631
632
|
} catch ($p) {
|
|
632
633
|
var e = $p;
|
|
633
|
-
if (this.
|
|
634
|
+
if (this.d8_1 === 3) {
|
|
634
635
|
throw e;
|
|
635
636
|
} else {
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
637
|
+
this.c8_1 = this.d8_1;
|
|
638
|
+
this.f8_1 = e;
|
|
638
639
|
}
|
|
639
640
|
}
|
|
640
641
|
while (true);
|
|
641
642
|
};
|
|
642
|
-
protoOf(merge$slambda).
|
|
643
|
-
var i = new merge$slambda(this
|
|
644
|
-
i
|
|
643
|
+
protoOf(merge$slambda).zp = function ($this$sequence, completion) {
|
|
644
|
+
var i = new merge$slambda(this.yq_1, this.zq_1, completion);
|
|
645
|
+
i.ar_1 = $this$sequence;
|
|
645
646
|
return i;
|
|
646
647
|
};
|
|
647
648
|
function merge$slambda_0($iterables, $comparator, resultContinuation) {
|
|
648
649
|
var i = new merge$slambda($iterables, $comparator, resultContinuation);
|
|
649
650
|
return constructCallableReference(function ($this$sequence, $completion) {
|
|
650
|
-
return i.
|
|
651
|
+
return i.yp($this$sequence, $completion);
|
|
651
652
|
}, 1);
|
|
652
653
|
}
|
|
653
654
|
function indexed$lambda(it, i) {
|
|
654
|
-
return Companion_instance_2.
|
|
655
|
+
return Companion_instance_2.kp(i, it);
|
|
655
656
|
}
|
|
656
657
|
function Companion_3() {
|
|
657
658
|
}
|
|
658
|
-
protoOf(Companion_3).
|
|
659
|
+
protoOf(Companion_3).dr = function (index, value) {
|
|
659
660
|
return new LongIndexedImpl(index, value);
|
|
660
661
|
};
|
|
661
662
|
var Companion_instance_3;
|
|
@@ -666,19 +667,19 @@
|
|
|
666
667
|
}
|
|
667
668
|
function Companion_4() {
|
|
668
669
|
}
|
|
669
|
-
protoOf(Companion_4).
|
|
670
|
+
protoOf(Companion_4).fr = function (value) {
|
|
670
671
|
return new Some(value);
|
|
671
672
|
};
|
|
672
|
-
protoOf(Companion_4).
|
|
673
|
+
protoOf(Companion_4).ap = function (value) {
|
|
673
674
|
var tmp;
|
|
674
675
|
if (value == null) {
|
|
675
|
-
tmp = this.
|
|
676
|
+
tmp = this.zo();
|
|
676
677
|
} else {
|
|
677
|
-
tmp = this.
|
|
678
|
+
tmp = this.fr(value);
|
|
678
679
|
}
|
|
679
680
|
return tmp;
|
|
680
681
|
};
|
|
681
|
-
protoOf(Companion_4).
|
|
682
|
+
protoOf(Companion_4).zo = function () {
|
|
682
683
|
return None_getInstance();
|
|
683
684
|
};
|
|
684
685
|
var Companion_instance_4;
|
|
@@ -687,26 +688,26 @@
|
|
|
687
688
|
}
|
|
688
689
|
function Some(value) {
|
|
689
690
|
Optional.call(this);
|
|
690
|
-
this.
|
|
691
|
+
this.uo_1 = value;
|
|
691
692
|
}
|
|
692
|
-
protoOf(Some).
|
|
693
|
-
return this.
|
|
693
|
+
protoOf(Some).g2 = function () {
|
|
694
|
+
return this.uo_1;
|
|
694
695
|
};
|
|
695
|
-
protoOf(Some).
|
|
696
|
+
protoOf(Some).gr = function () {
|
|
696
697
|
return true;
|
|
697
698
|
};
|
|
698
699
|
protoOf(Some).toString = function () {
|
|
699
|
-
return 'Some(' + toString(this.
|
|
700
|
+
return 'Some(' + toString(this.uo_1) + ')';
|
|
700
701
|
};
|
|
701
702
|
protoOf(Some).hashCode = function () {
|
|
702
|
-
return this.
|
|
703
|
+
return this.uo_1 == null ? 0 : hashCode(this.uo_1);
|
|
703
704
|
};
|
|
704
705
|
protoOf(Some).equals = function (other) {
|
|
705
706
|
if (this === other)
|
|
706
707
|
return true;
|
|
707
708
|
if (!(other instanceof Some))
|
|
708
709
|
return false;
|
|
709
|
-
if (!equals(this.
|
|
710
|
+
if (!equals(this.uo_1, other.uo_1))
|
|
710
711
|
return false;
|
|
711
712
|
return true;
|
|
712
713
|
};
|
|
@@ -714,10 +715,10 @@
|
|
|
714
715
|
None_instance = this;
|
|
715
716
|
Optional.call(this);
|
|
716
717
|
}
|
|
717
|
-
protoOf(None).
|
|
718
|
+
protoOf(None).g2 = function () {
|
|
718
719
|
return null;
|
|
719
720
|
};
|
|
720
|
-
protoOf(None).
|
|
721
|
+
protoOf(None).gr = function () {
|
|
721
722
|
return false;
|
|
722
723
|
};
|
|
723
724
|
protoOf(None).toString = function () {
|
|
@@ -731,8 +732,8 @@
|
|
|
731
732
|
}
|
|
732
733
|
function Optional() {
|
|
733
734
|
}
|
|
734
|
-
protoOf(Optional).
|
|
735
|
-
return !this.
|
|
735
|
+
protoOf(Optional).hr = function () {
|
|
736
|
+
return !this.gr();
|
|
736
737
|
};
|
|
737
738
|
function Taggable() {
|
|
738
739
|
}
|
|
@@ -745,9 +746,9 @@
|
|
|
745
746
|
}
|
|
746
747
|
function Companion_5() {
|
|
747
748
|
}
|
|
748
|
-
protoOf(Companion_5).
|
|
749
|
+
protoOf(Companion_5).ip = function (source) {
|
|
749
750
|
var tmp;
|
|
750
|
-
if (source.
|
|
751
|
+
if (source.q()) {
|
|
751
752
|
tmp = new LazyCursor(source);
|
|
752
753
|
} else {
|
|
753
754
|
tmp = EmptyCursor_getInstance();
|
|
@@ -759,105 +760,105 @@
|
|
|
759
760
|
return Companion_instance_5;
|
|
760
761
|
}
|
|
761
762
|
function AbstractCursor$iterator$1(this$0) {
|
|
762
|
-
this.
|
|
763
|
+
this.jr_1 = this$0;
|
|
763
764
|
}
|
|
764
|
-
protoOf(AbstractCursor$iterator$1).
|
|
765
|
-
return !this.
|
|
765
|
+
protoOf(AbstractCursor$iterator$1).q = function () {
|
|
766
|
+
return !this.jr_1.hp();
|
|
766
767
|
};
|
|
767
|
-
protoOf(AbstractCursor$iterator$1).
|
|
768
|
-
var result = this.
|
|
769
|
-
this.
|
|
768
|
+
protoOf(AbstractCursor$iterator$1).r = function () {
|
|
769
|
+
var result = this.jr_1.fp();
|
|
770
|
+
this.jr_1 = this.jr_1.ep();
|
|
770
771
|
return ensureNotNull(result);
|
|
771
772
|
};
|
|
772
773
|
function AbstractCursor() {
|
|
773
774
|
}
|
|
774
775
|
protoOf(AbstractCursor).toString = function () {
|
|
775
|
-
return this.
|
|
776
|
+
return this.hp() ? '[]' : !this.gp() ? '[' + toString(this.fp()) + ']' : '[' + toString(this.fp()) + ', ...]';
|
|
776
777
|
};
|
|
777
|
-
protoOf(AbstractCursor).
|
|
778
|
+
protoOf(AbstractCursor).n = function () {
|
|
778
779
|
return new AbstractCursor$iterator$1(this);
|
|
779
780
|
};
|
|
780
781
|
protoOf(AbstractCursor).iterator = function () {
|
|
781
|
-
return this.
|
|
782
|
+
return this.n();
|
|
782
783
|
};
|
|
783
|
-
protoOf(AbstractCursor).
|
|
784
|
+
protoOf(AbstractCursor).kr = function () {
|
|
784
785
|
return false;
|
|
785
786
|
};
|
|
786
|
-
protoOf(AbstractCursor).
|
|
787
|
+
protoOf(AbstractCursor).lr = function (mapper) {
|
|
787
788
|
return new MapperCursor(this, mapper);
|
|
788
789
|
};
|
|
789
790
|
protoOf(AbstractCursor).map = function (mapper) {
|
|
790
|
-
return this.
|
|
791
|
+
return this.lr(mapper);
|
|
791
792
|
};
|
|
792
793
|
function CachedImpl(generator) {
|
|
793
|
-
this.
|
|
794
|
-
this.
|
|
794
|
+
this.mr_1 = generator;
|
|
795
|
+
this.nr_1 = Companion_instance_4.zo();
|
|
795
796
|
}
|
|
796
|
-
protoOf(CachedImpl).
|
|
797
|
-
return this.
|
|
797
|
+
protoOf(CachedImpl).wo = function () {
|
|
798
|
+
return this.nr_1.gr();
|
|
798
799
|
};
|
|
799
|
-
protoOf(CachedImpl).
|
|
800
|
-
return this.
|
|
800
|
+
protoOf(CachedImpl).pr = function () {
|
|
801
|
+
return this.nr_1.hr();
|
|
801
802
|
};
|
|
802
|
-
protoOf(CachedImpl).
|
|
803
|
-
this.
|
|
804
|
-
return ensureNotNull(this.
|
|
803
|
+
protoOf(CachedImpl).g2 = function () {
|
|
804
|
+
this.qr();
|
|
805
|
+
return ensureNotNull(this.nr_1.g2());
|
|
805
806
|
};
|
|
806
|
-
protoOf(CachedImpl).
|
|
807
|
-
if (this.
|
|
808
|
-
this.
|
|
807
|
+
protoOf(CachedImpl).qr = function () {
|
|
808
|
+
if (this.pr()) {
|
|
809
|
+
this.nr_1 = Companion_instance_4.fr(this.mr_1());
|
|
809
810
|
}
|
|
810
811
|
};
|
|
811
|
-
protoOf(CachedImpl).
|
|
812
|
-
this.
|
|
812
|
+
protoOf(CachedImpl).xo = function () {
|
|
813
|
+
this.nr_1 = Companion_instance_4.zo();
|
|
813
814
|
};
|
|
814
815
|
protoOf(CachedImpl).toString = function () {
|
|
815
|
-
return 'CachedImpl(generator=' + toString_0(this.
|
|
816
|
+
return 'CachedImpl(generator=' + toString_0(this.mr_1) + ')';
|
|
816
817
|
};
|
|
817
818
|
protoOf(CachedImpl).hashCode = function () {
|
|
818
|
-
return hashCode(this.
|
|
819
|
+
return hashCode(this.mr_1);
|
|
819
820
|
};
|
|
820
821
|
protoOf(CachedImpl).equals = function (other) {
|
|
821
822
|
if (this === other)
|
|
822
823
|
return true;
|
|
823
824
|
if (!(other instanceof CachedImpl))
|
|
824
825
|
return false;
|
|
825
|
-
if (!equals(this.
|
|
826
|
+
if (!equals(this.mr_1, other.mr_1))
|
|
826
827
|
return false;
|
|
827
828
|
return true;
|
|
828
829
|
};
|
|
829
830
|
function ConjunctionCursor$next$delegate$lambda(this$0) {
|
|
830
831
|
return function () {
|
|
831
|
-
return this$0.
|
|
832
|
+
return this$0.rr_1.gp() ? new ConjunctionCursor(this$0.rr_1.ep(), this$0.sr_1) : this$0.sr_1.kr() ? this$0.sr_1.ep() : this$0.sr_1;
|
|
832
833
|
};
|
|
833
834
|
}
|
|
834
835
|
function ConjunctionCursor$_get_next_$ref_xfvrtr() {
|
|
835
836
|
return constructCallableReference(function (p0) {
|
|
836
|
-
return p0.
|
|
837
|
+
return p0.ep();
|
|
837
838
|
}, 1, 0, 2);
|
|
838
839
|
}
|
|
839
840
|
function ConjunctionCursor(first, second) {
|
|
840
841
|
AbstractCursor.call(this);
|
|
841
|
-
this.
|
|
842
|
-
this.
|
|
842
|
+
this.rr_1 = first;
|
|
843
|
+
this.sr_1 = second;
|
|
843
844
|
var tmp = this;
|
|
844
|
-
tmp.
|
|
845
|
+
tmp.tr_1 = lazy(ConjunctionCursor$next$delegate$lambda(this));
|
|
845
846
|
}
|
|
846
|
-
protoOf(ConjunctionCursor).
|
|
847
|
-
return this.
|
|
847
|
+
protoOf(ConjunctionCursor).hp = function () {
|
|
848
|
+
return this.rr_1.hp() && this.sr_1.hp();
|
|
848
849
|
};
|
|
849
|
-
protoOf(ConjunctionCursor).
|
|
850
|
-
var tmp0 = this.
|
|
850
|
+
protoOf(ConjunctionCursor).ep = function () {
|
|
851
|
+
var tmp0 = this.tr_1;
|
|
851
852
|
var tmp = KProperty1;
|
|
852
853
|
// Inline function 'kotlin.getValue' call
|
|
853
854
|
/* dead property reference removed */
|
|
854
|
-
return tmp0.
|
|
855
|
+
return tmp0.g2();
|
|
855
856
|
};
|
|
856
|
-
protoOf(ConjunctionCursor).
|
|
857
|
-
return this.
|
|
857
|
+
protoOf(ConjunctionCursor).fp = function () {
|
|
858
|
+
return this.rr_1.gp() ? this.rr_1.fp() : this.sr_1.fp();
|
|
858
859
|
};
|
|
859
|
-
protoOf(ConjunctionCursor).
|
|
860
|
-
return this.
|
|
860
|
+
protoOf(ConjunctionCursor).gp = function () {
|
|
861
|
+
return this.rr_1.gp() || this.sr_1.gp();
|
|
861
862
|
};
|
|
862
863
|
protoOf(ConjunctionCursor).equals = function (other) {
|
|
863
864
|
if (this === other)
|
|
@@ -866,44 +867,44 @@
|
|
|
866
867
|
return false;
|
|
867
868
|
if (!(other instanceof ConjunctionCursor))
|
|
868
869
|
THROW_CCE();
|
|
869
|
-
if (!equals(this.
|
|
870
|
+
if (!equals(this.rr_1, other.rr_1))
|
|
870
871
|
return false;
|
|
871
|
-
if (!equals(this.
|
|
872
|
+
if (!equals(this.sr_1, other.sr_1))
|
|
872
873
|
return false;
|
|
873
874
|
return true;
|
|
874
875
|
};
|
|
875
876
|
protoOf(ConjunctionCursor).hashCode = function () {
|
|
876
|
-
var result = hashCode(this.
|
|
877
|
-
result = imul(31, result) + hashCode(this.
|
|
877
|
+
var result = hashCode(this.rr_1);
|
|
878
|
+
result = imul(31, result) + hashCode(this.sr_1) | 0;
|
|
878
879
|
return result;
|
|
879
880
|
};
|
|
880
881
|
function EmptyCursor() {
|
|
881
882
|
EmptyCursor_instance = this;
|
|
882
883
|
AbstractCursor.call(this);
|
|
883
884
|
}
|
|
884
|
-
protoOf(EmptyCursor).
|
|
885
|
+
protoOf(EmptyCursor).ep = function () {
|
|
885
886
|
throw NoSuchElementException_init_$Create$();
|
|
886
887
|
};
|
|
887
|
-
protoOf(EmptyCursor).
|
|
888
|
+
protoOf(EmptyCursor).fp = function () {
|
|
888
889
|
return null;
|
|
889
890
|
};
|
|
890
|
-
protoOf(EmptyCursor).
|
|
891
|
+
protoOf(EmptyCursor).gp = function () {
|
|
891
892
|
return false;
|
|
892
893
|
};
|
|
893
|
-
protoOf(EmptyCursor).
|
|
894
|
+
protoOf(EmptyCursor).hp = function () {
|
|
894
895
|
return true;
|
|
895
896
|
};
|
|
896
897
|
protoOf(EmptyCursor).toString = function () {
|
|
897
898
|
return protoOf(AbstractCursor).toString.call(this);
|
|
898
899
|
};
|
|
899
|
-
protoOf(EmptyCursor).
|
|
900
|
+
protoOf(EmptyCursor).ur = function (mapper) {
|
|
900
901
|
return this;
|
|
901
902
|
};
|
|
902
903
|
protoOf(EmptyCursor).map = function (mapper) {
|
|
903
|
-
return this.
|
|
904
|
+
return this.ur(mapper);
|
|
904
905
|
};
|
|
905
|
-
protoOf(EmptyCursor).
|
|
906
|
-
return this.
|
|
906
|
+
protoOf(EmptyCursor).lr = function (mapper) {
|
|
907
|
+
return this.ur(mapper);
|
|
907
908
|
};
|
|
908
909
|
var EmptyCursor_instance;
|
|
909
910
|
function EmptyCursor_getInstance() {
|
|
@@ -912,27 +913,27 @@
|
|
|
912
913
|
return EmptyCursor_instance;
|
|
913
914
|
}
|
|
914
915
|
function IntIndexedImpl(index, value) {
|
|
915
|
-
this.
|
|
916
|
-
this.
|
|
916
|
+
this.vr_1 = index;
|
|
917
|
+
this.wr_1 = value;
|
|
917
918
|
}
|
|
918
|
-
protoOf(IntIndexedImpl).
|
|
919
|
-
return this.
|
|
919
|
+
protoOf(IntIndexedImpl).jp = function () {
|
|
920
|
+
return this.vr_1;
|
|
920
921
|
};
|
|
921
|
-
protoOf(IntIndexedImpl).
|
|
922
|
-
return this.
|
|
922
|
+
protoOf(IntIndexedImpl).g2 = function () {
|
|
923
|
+
return this.wr_1;
|
|
923
924
|
};
|
|
924
|
-
protoOf(IntIndexedImpl).
|
|
925
|
-
return this.
|
|
925
|
+
protoOf(IntIndexedImpl).ac = function () {
|
|
926
|
+
return this.vr_1;
|
|
926
927
|
};
|
|
927
|
-
protoOf(IntIndexedImpl).
|
|
928
|
-
return this.
|
|
928
|
+
protoOf(IntIndexedImpl).bc = function () {
|
|
929
|
+
return this.wr_1;
|
|
929
930
|
};
|
|
930
931
|
protoOf(IntIndexedImpl).toString = function () {
|
|
931
|
-
return 'IntIndexedImpl(index=' + this.
|
|
932
|
+
return 'IntIndexedImpl(index=' + this.vr_1 + ', value=' + toString(this.wr_1) + ')';
|
|
932
933
|
};
|
|
933
934
|
protoOf(IntIndexedImpl).hashCode = function () {
|
|
934
|
-
var result = this.
|
|
935
|
-
result = imul(result, 31) + (this.
|
|
935
|
+
var result = this.vr_1;
|
|
936
|
+
result = imul(result, 31) + (this.wr_1 == null ? 0 : hashCode(this.wr_1)) | 0;
|
|
936
937
|
return result;
|
|
937
938
|
};
|
|
938
939
|
protoOf(IntIndexedImpl).equals = function (other) {
|
|
@@ -940,25 +941,25 @@
|
|
|
940
941
|
return true;
|
|
941
942
|
if (!(other instanceof IntIndexedImpl))
|
|
942
943
|
return false;
|
|
943
|
-
if (!(this.
|
|
944
|
+
if (!(this.vr_1 === other.vr_1))
|
|
944
945
|
return false;
|
|
945
|
-
if (!equals(this.
|
|
946
|
+
if (!equals(this.wr_1, other.wr_1))
|
|
946
947
|
return false;
|
|
947
948
|
return true;
|
|
948
949
|
};
|
|
949
|
-
protoOf(IntIndexedImpl).
|
|
950
|
-
return this.
|
|
950
|
+
protoOf(IntIndexedImpl).d = function (other) {
|
|
951
|
+
return this.lp((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
|
|
951
952
|
};
|
|
952
953
|
function _get_wrapped__s2ip8($this) {
|
|
953
|
-
var tmp0 = $this.
|
|
954
|
+
var tmp0 = $this.yr_1;
|
|
954
955
|
var tmp = KProperty1;
|
|
955
956
|
// Inline function 'kotlin.getValue' call
|
|
956
957
|
/* dead property reference removed */
|
|
957
|
-
return tmp0.
|
|
958
|
+
return tmp0.g2();
|
|
958
959
|
}
|
|
959
960
|
function LazyCursor$wrapped$delegate$lambda(this$0) {
|
|
960
961
|
return function () {
|
|
961
|
-
return new NonLastCursor(this$0.
|
|
962
|
+
return new NonLastCursor(this$0.xr_1);
|
|
962
963
|
};
|
|
963
964
|
}
|
|
964
965
|
function LazyCursor$_get_wrapped_$ref_p28zr5() {
|
|
@@ -968,74 +969,74 @@
|
|
|
968
969
|
}
|
|
969
970
|
function LazyCursor(delegate) {
|
|
970
971
|
AbstractCursor.call(this);
|
|
971
|
-
this.
|
|
972
|
+
this.xr_1 = delegate;
|
|
972
973
|
var tmp = this;
|
|
973
|
-
tmp.
|
|
974
|
+
tmp.yr_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
|
|
974
975
|
}
|
|
975
|
-
protoOf(LazyCursor).
|
|
976
|
+
protoOf(LazyCursor).kr = function () {
|
|
976
977
|
return true;
|
|
977
978
|
};
|
|
978
|
-
protoOf(LazyCursor).
|
|
979
|
-
return _get_wrapped__s2ip8(this).
|
|
979
|
+
protoOf(LazyCursor).ep = function () {
|
|
980
|
+
return _get_wrapped__s2ip8(this).ep();
|
|
980
981
|
};
|
|
981
|
-
protoOf(LazyCursor).
|
|
982
|
-
return _get_wrapped__s2ip8(this).
|
|
982
|
+
protoOf(LazyCursor).fp = function () {
|
|
983
|
+
return _get_wrapped__s2ip8(this).fp();
|
|
983
984
|
};
|
|
984
|
-
protoOf(LazyCursor).
|
|
985
|
+
protoOf(LazyCursor).gp = function () {
|
|
985
986
|
return true;
|
|
986
987
|
};
|
|
987
|
-
protoOf(LazyCursor).
|
|
988
|
+
protoOf(LazyCursor).hp = function () {
|
|
988
989
|
return false;
|
|
989
990
|
};
|
|
990
991
|
protoOf(LazyCursor).toString = function () {
|
|
991
992
|
return protoOf(AbstractCursor).toString.call(this);
|
|
992
993
|
};
|
|
993
|
-
protoOf(LazyCursor).
|
|
994
|
-
return _get_wrapped__s2ip8(this).
|
|
994
|
+
protoOf(LazyCursor).n = function () {
|
|
995
|
+
return _get_wrapped__s2ip8(this).n();
|
|
995
996
|
};
|
|
996
997
|
protoOf(LazyCursor).iterator = function () {
|
|
997
|
-
return this.
|
|
998
|
+
return this.n();
|
|
998
999
|
};
|
|
999
1000
|
protoOf(LazyCursor).hashCode = function () {
|
|
1000
|
-
return hashCode(this.
|
|
1001
|
+
return hashCode(this.xr_1);
|
|
1001
1002
|
};
|
|
1002
1003
|
protoOf(LazyCursor).equals = function (other) {
|
|
1003
1004
|
if (this === other)
|
|
1004
1005
|
return true;
|
|
1005
1006
|
if (!(other instanceof LazyCursor))
|
|
1006
1007
|
return false;
|
|
1007
|
-
if (!equals(this.
|
|
1008
|
+
if (!equals(this.xr_1, other.xr_1))
|
|
1008
1009
|
return false;
|
|
1009
1010
|
return true;
|
|
1010
1011
|
};
|
|
1011
1012
|
function LongIndexedImpl(index, value) {
|
|
1012
|
-
this.
|
|
1013
|
-
this.
|
|
1013
|
+
this.zr_1 = index;
|
|
1014
|
+
this.as_1 = value;
|
|
1014
1015
|
}
|
|
1015
|
-
protoOf(LongIndexedImpl).
|
|
1016
|
-
return this.
|
|
1016
|
+
protoOf(LongIndexedImpl).jp = function () {
|
|
1017
|
+
return this.zr_1;
|
|
1017
1018
|
};
|
|
1018
|
-
protoOf(LongIndexedImpl).
|
|
1019
|
-
return this.
|
|
1019
|
+
protoOf(LongIndexedImpl).g2 = function () {
|
|
1020
|
+
return this.as_1;
|
|
1020
1021
|
};
|
|
1021
|
-
protoOf(LongIndexedImpl).
|
|
1022
|
-
return convertToInt(subtract(this.
|
|
1022
|
+
protoOf(LongIndexedImpl).er = function (other) {
|
|
1023
|
+
return convertToInt(subtract(this.zr_1, other.jp()));
|
|
1023
1024
|
};
|
|
1024
|
-
protoOf(LongIndexedImpl).
|
|
1025
|
-
return this.
|
|
1025
|
+
protoOf(LongIndexedImpl).d = function (other) {
|
|
1026
|
+
return this.er((!(other == null) ? isInterface(other, LongIndexed) : false) ? other : THROW_CCE());
|
|
1026
1027
|
};
|
|
1027
|
-
protoOf(LongIndexedImpl).
|
|
1028
|
-
return this.
|
|
1028
|
+
protoOf(LongIndexedImpl).ac = function () {
|
|
1029
|
+
return this.zr_1;
|
|
1029
1030
|
};
|
|
1030
|
-
protoOf(LongIndexedImpl).
|
|
1031
|
-
return this.
|
|
1031
|
+
protoOf(LongIndexedImpl).bc = function () {
|
|
1032
|
+
return this.as_1;
|
|
1032
1033
|
};
|
|
1033
1034
|
protoOf(LongIndexedImpl).toString = function () {
|
|
1034
|
-
return 'LongIndexedImpl(index=' + this.
|
|
1035
|
+
return 'LongIndexedImpl(index=' + this.zr_1.toString() + ', value=' + toString(this.as_1) + ')';
|
|
1035
1036
|
};
|
|
1036
1037
|
protoOf(LongIndexedImpl).hashCode = function () {
|
|
1037
|
-
var result = getBigIntHashCode(this.
|
|
1038
|
-
result = imul(result, 31) + (this.
|
|
1038
|
+
var result = getBigIntHashCode(this.zr_1);
|
|
1039
|
+
result = imul(result, 31) + (this.as_1 == null ? 0 : hashCode(this.as_1)) | 0;
|
|
1039
1040
|
return result;
|
|
1040
1041
|
};
|
|
1041
1042
|
protoOf(LongIndexedImpl).equals = function (other) {
|
|
@@ -1043,43 +1044,43 @@
|
|
|
1043
1044
|
return true;
|
|
1044
1045
|
if (!(other instanceof LongIndexedImpl))
|
|
1045
1046
|
return false;
|
|
1046
|
-
if (!(this.
|
|
1047
|
+
if (!(this.zr_1 === other.zr_1))
|
|
1047
1048
|
return false;
|
|
1048
|
-
if (!equals(this.
|
|
1049
|
+
if (!equals(this.as_1, other.as_1))
|
|
1049
1050
|
return false;
|
|
1050
1051
|
return true;
|
|
1051
1052
|
};
|
|
1052
1053
|
function MapperCursor$current$delegate$lambda(this$0) {
|
|
1053
1054
|
return function () {
|
|
1054
|
-
return this$0.
|
|
1055
|
+
return this$0.cs_1(ensureNotNull(this$0.bs_1.fp()));
|
|
1055
1056
|
};
|
|
1056
1057
|
}
|
|
1057
1058
|
function MapperCursor$_get_current_$ref_lsggiu() {
|
|
1058
1059
|
return constructCallableReference(function (p0) {
|
|
1059
|
-
return p0.
|
|
1060
|
+
return p0.fp();
|
|
1060
1061
|
}, 1, 0, 4);
|
|
1061
1062
|
}
|
|
1062
1063
|
function MapperCursor(wrapped, mapper) {
|
|
1063
1064
|
AbstractCursor.call(this);
|
|
1064
|
-
this.
|
|
1065
|
-
this.
|
|
1065
|
+
this.bs_1 = wrapped;
|
|
1066
|
+
this.cs_1 = mapper;
|
|
1066
1067
|
var tmp = this;
|
|
1067
|
-
tmp.
|
|
1068
|
+
tmp.ds_1 = lazy(MapperCursor$current$delegate$lambda(this));
|
|
1068
1069
|
}
|
|
1069
|
-
protoOf(MapperCursor).
|
|
1070
|
-
return this.
|
|
1070
|
+
protoOf(MapperCursor).ep = function () {
|
|
1071
|
+
return this.bs_1.ep().lr(this.cs_1);
|
|
1071
1072
|
};
|
|
1072
|
-
protoOf(MapperCursor).
|
|
1073
|
-
var tmp0 = this.
|
|
1073
|
+
protoOf(MapperCursor).fp = function () {
|
|
1074
|
+
var tmp0 = this.ds_1;
|
|
1074
1075
|
var tmp = KProperty1;
|
|
1075
1076
|
// Inline function 'kotlin.getValue' call
|
|
1076
1077
|
/* dead property reference removed */
|
|
1077
|
-
return tmp0.
|
|
1078
|
+
return tmp0.g2();
|
|
1078
1079
|
};
|
|
1079
|
-
protoOf(MapperCursor).
|
|
1080
|
+
protoOf(MapperCursor).gp = function () {
|
|
1080
1081
|
return true;
|
|
1081
1082
|
};
|
|
1082
|
-
protoOf(MapperCursor).
|
|
1083
|
+
protoOf(MapperCursor).hp = function () {
|
|
1083
1084
|
return false;
|
|
1084
1085
|
};
|
|
1085
1086
|
protoOf(MapperCursor).equals = function (other) {
|
|
@@ -1089,60 +1090,60 @@
|
|
|
1089
1090
|
return false;
|
|
1090
1091
|
if (!(other instanceof MapperCursor))
|
|
1091
1092
|
THROW_CCE();
|
|
1092
|
-
if (!equals(this.
|
|
1093
|
+
if (!equals(this.bs_1, other.bs_1))
|
|
1093
1094
|
return false;
|
|
1094
|
-
if (!equals(this.
|
|
1095
|
+
if (!equals(this.cs_1, other.cs_1))
|
|
1095
1096
|
return false;
|
|
1096
1097
|
return true;
|
|
1097
1098
|
};
|
|
1098
1099
|
protoOf(MapperCursor).hashCode = function () {
|
|
1099
|
-
var result = hashCode(this.
|
|
1100
|
-
result = imul(31, result) + hashCode(this.
|
|
1100
|
+
var result = hashCode(this.bs_1);
|
|
1101
|
+
result = imul(31, result) + hashCode(this.cs_1) | 0;
|
|
1101
1102
|
return result;
|
|
1102
1103
|
};
|
|
1103
|
-
protoOf(MapperCursor).
|
|
1104
|
-
return new ValueCursor(mapper(this.
|
|
1104
|
+
protoOf(MapperCursor).es = function (mapper) {
|
|
1105
|
+
return new ValueCursor(mapper(this.fp()), this.ep().lr(mapper));
|
|
1105
1106
|
};
|
|
1106
1107
|
protoOf(MapperCursor).map = function (mapper) {
|
|
1107
|
-
return this.
|
|
1108
|
+
return this.es(mapper);
|
|
1108
1109
|
};
|
|
1109
|
-
protoOf(MapperCursor).
|
|
1110
|
-
return this.
|
|
1110
|
+
protoOf(MapperCursor).lr = function (mapper) {
|
|
1111
|
+
return this.es(mapper);
|
|
1111
1112
|
};
|
|
1112
1113
|
function NonLastCursor$next$delegate$lambda($source, this$0) {
|
|
1113
1114
|
return function () {
|
|
1114
1115
|
// Inline function 'kotlin.also' call
|
|
1115
|
-
var this_0 = Companion_instance_5.
|
|
1116
|
-
this$0.
|
|
1116
|
+
var this_0 = Companion_instance_5.ip($source);
|
|
1117
|
+
this$0.fs_1 = null;
|
|
1117
1118
|
return this_0;
|
|
1118
1119
|
};
|
|
1119
1120
|
}
|
|
1120
1121
|
function NonLastCursor$_get_next_$ref_gp6ycu() {
|
|
1121
1122
|
return constructCallableReference(function (p0) {
|
|
1122
|
-
return p0.
|
|
1123
|
+
return p0.ep();
|
|
1123
1124
|
}, 1, 0, 5);
|
|
1124
1125
|
}
|
|
1125
1126
|
function NonLastCursor(source) {
|
|
1126
1127
|
AbstractCursor.call(this);
|
|
1127
|
-
this.
|
|
1128
|
+
this.fs_1 = source;
|
|
1128
1129
|
var tmp = this;
|
|
1129
|
-
tmp.
|
|
1130
|
-
this.
|
|
1130
|
+
tmp.gs_1 = lazy(NonLastCursor$next$delegate$lambda(source, this));
|
|
1131
|
+
this.hs_1 = source.r();
|
|
1131
1132
|
}
|
|
1132
|
-
protoOf(NonLastCursor).
|
|
1133
|
-
var tmp0 = this.
|
|
1133
|
+
protoOf(NonLastCursor).ep = function () {
|
|
1134
|
+
var tmp0 = this.gs_1;
|
|
1134
1135
|
var tmp = KProperty1;
|
|
1135
1136
|
// Inline function 'kotlin.getValue' call
|
|
1136
1137
|
/* dead property reference removed */
|
|
1137
|
-
return tmp0.
|
|
1138
|
+
return tmp0.g2();
|
|
1138
1139
|
};
|
|
1139
|
-
protoOf(NonLastCursor).
|
|
1140
|
-
return this.
|
|
1140
|
+
protoOf(NonLastCursor).fp = function () {
|
|
1141
|
+
return this.hs_1;
|
|
1141
1142
|
};
|
|
1142
|
-
protoOf(NonLastCursor).
|
|
1143
|
+
protoOf(NonLastCursor).gp = function () {
|
|
1143
1144
|
return true;
|
|
1144
1145
|
};
|
|
1145
|
-
protoOf(NonLastCursor).
|
|
1146
|
+
protoOf(NonLastCursor).hp = function () {
|
|
1146
1147
|
return false;
|
|
1147
1148
|
};
|
|
1148
1149
|
protoOf(NonLastCursor).toString = function () {
|
|
@@ -1150,53 +1151,53 @@
|
|
|
1150
1151
|
};
|
|
1151
1152
|
function removeLeastRecent($this) {
|
|
1152
1153
|
// Inline function 'kotlin.collections.asIterable' call
|
|
1153
|
-
var tmp$ret$0 = $this.
|
|
1154
|
+
var tmp$ret$0 = $this.js_1.c1();
|
|
1154
1155
|
var _destruct__k2r9zo = first(tmp$ret$0);
|
|
1155
1156
|
// Inline function 'kotlin.collections.component1' call
|
|
1156
|
-
var key = _destruct__k2r9zo.
|
|
1157
|
+
var key = _destruct__k2r9zo.f2();
|
|
1157
1158
|
// Inline function 'kotlin.collections.component2' call
|
|
1158
|
-
var value = _destruct__k2r9zo.
|
|
1159
|
-
$this.
|
|
1160
|
-
return Companion_instance_4.
|
|
1159
|
+
var value = _destruct__k2r9zo.g2();
|
|
1160
|
+
$this.js_1.n4(key);
|
|
1161
|
+
return Companion_instance_4.fr(to(key, value));
|
|
1161
1162
|
}
|
|
1162
1163
|
function removeLeastRecentIfNecessary($this) {
|
|
1163
1164
|
var tmp;
|
|
1164
|
-
if ($this.
|
|
1165
|
+
if ($this.js_1.t() >= $this.is_1) {
|
|
1165
1166
|
tmp = removeLeastRecent($this);
|
|
1166
1167
|
} else {
|
|
1167
|
-
tmp = Companion_instance_4.
|
|
1168
|
+
tmp = Companion_instance_4.zo();
|
|
1168
1169
|
}
|
|
1169
1170
|
return tmp;
|
|
1170
1171
|
}
|
|
1171
1172
|
function SimpleLRUCache$set$lambda(this$0, $key, $value) {
|
|
1172
1173
|
return function () {
|
|
1173
1174
|
var evicted = removeLeastRecentIfNecessary(this$0);
|
|
1174
|
-
var tmp0 = this$0.
|
|
1175
|
+
var tmp0 = this$0.js_1;
|
|
1175
1176
|
var tmp2 = $key;
|
|
1176
1177
|
// Inline function 'kotlin.collections.set' call
|
|
1177
1178
|
var value = $value;
|
|
1178
|
-
tmp0.
|
|
1179
|
+
tmp0.m4(tmp2, value);
|
|
1179
1180
|
return evicted;
|
|
1180
1181
|
};
|
|
1181
1182
|
}
|
|
1182
1183
|
function SimpleLRUCache$get$lambda(this$0, $key) {
|
|
1183
1184
|
return function () {
|
|
1184
1185
|
var tmp;
|
|
1185
|
-
if (this$0.
|
|
1186
|
-
tmp = Companion_instance_4.
|
|
1186
|
+
if (this$0.js_1.h2($key)) {
|
|
1187
|
+
tmp = Companion_instance_4.ap(this$0.js_1.j2($key));
|
|
1187
1188
|
} else {
|
|
1188
|
-
tmp = Companion_instance_4.
|
|
1189
|
+
tmp = Companion_instance_4.zo();
|
|
1189
1190
|
}
|
|
1190
1191
|
return tmp;
|
|
1191
1192
|
};
|
|
1192
1193
|
}
|
|
1193
1194
|
function SimpleLRUCache$toSequence$lambda$lambda(it) {
|
|
1194
1195
|
// Inline function 'kotlin.collections.toPair' call
|
|
1195
|
-
return new Pair(it.
|
|
1196
|
+
return new Pair(it.f2(), it.g2());
|
|
1196
1197
|
}
|
|
1197
1198
|
function SimpleLRUCache$toSequence$lambda(this$0) {
|
|
1198
1199
|
return function () {
|
|
1199
|
-
var tmp = asSequence(this$0.
|
|
1200
|
+
var tmp = asSequence(this$0.js_1.c1());
|
|
1200
1201
|
return buffered(map(tmp, SimpleLRUCache$toSequence$lambda$lambda));
|
|
1201
1202
|
};
|
|
1202
1203
|
}
|
|
@@ -1204,19 +1205,19 @@
|
|
|
1204
1205
|
return toString(it.first) + ' = ' + toString(it.second);
|
|
1205
1206
|
}
|
|
1206
1207
|
function SimpleLRUCache(capacity) {
|
|
1207
|
-
this.
|
|
1208
|
+
this.is_1 = capacity;
|
|
1208
1209
|
// Inline function 'kotlin.require' call
|
|
1209
1210
|
// Inline function 'kotlin.require' call
|
|
1210
|
-
if (!(this.
|
|
1211
|
+
if (!(this.is_1 > 0)) {
|
|
1211
1212
|
var message = 'Failed requirement.';
|
|
1212
1213
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
1213
1214
|
}
|
|
1214
|
-
this.
|
|
1215
|
+
this.js_1 = LinkedHashMap_init_$Create$();
|
|
1215
1216
|
}
|
|
1216
|
-
protoOf(SimpleLRUCache).
|
|
1217
|
+
protoOf(SimpleLRUCache).so = function (key, value) {
|
|
1217
1218
|
return synchronizedOnSelf(this, SimpleLRUCache$set$lambda(this, key, value));
|
|
1218
1219
|
};
|
|
1219
|
-
protoOf(SimpleLRUCache).
|
|
1220
|
+
protoOf(SimpleLRUCache).j2 = function (key) {
|
|
1220
1221
|
return synchronizedOnSelf(this, SimpleLRUCache$get$lambda(this, key));
|
|
1221
1222
|
};
|
|
1222
1223
|
protoOf(SimpleLRUCache).equals = function (other) {
|
|
@@ -1226,39 +1227,39 @@
|
|
|
1226
1227
|
return false;
|
|
1227
1228
|
if (!(other instanceof SimpleLRUCache))
|
|
1228
1229
|
THROW_CCE();
|
|
1229
|
-
if (!(this.
|
|
1230
|
+
if (!(this.is_1 === other.is_1))
|
|
1230
1231
|
return false;
|
|
1231
|
-
if (!this.
|
|
1232
|
+
if (!this.js_1.equals(other.js_1))
|
|
1232
1233
|
return false;
|
|
1233
1234
|
return true;
|
|
1234
1235
|
};
|
|
1235
1236
|
protoOf(SimpleLRUCache).hashCode = function () {
|
|
1236
|
-
var result = this.
|
|
1237
|
-
result = imul(31, result) + this.
|
|
1237
|
+
var result = this.is_1;
|
|
1238
|
+
result = imul(31, result) + this.js_1.hashCode() | 0;
|
|
1238
1239
|
return result;
|
|
1239
1240
|
};
|
|
1240
|
-
protoOf(SimpleLRUCache).
|
|
1241
|
+
protoOf(SimpleLRUCache).ks = function () {
|
|
1241
1242
|
return synchronizedOnSelf(this, SimpleLRUCache$toSequence$lambda(this));
|
|
1242
1243
|
};
|
|
1243
1244
|
protoOf(SimpleLRUCache).toString = function () {
|
|
1244
|
-
var tmp = this.
|
|
1245
|
+
var tmp = this.ks();
|
|
1245
1246
|
return 'SimpleLRUCache(' + joinToString(map(tmp, SimpleLRUCache$toString$lambda), ', ') + ')';
|
|
1246
1247
|
};
|
|
1247
1248
|
function ValueCursor(current, next) {
|
|
1248
1249
|
AbstractCursor.call(this);
|
|
1249
|
-
this.
|
|
1250
|
-
this.
|
|
1250
|
+
this.ls_1 = current;
|
|
1251
|
+
this.ms_1 = next;
|
|
1251
1252
|
}
|
|
1252
|
-
protoOf(ValueCursor).
|
|
1253
|
-
return this.
|
|
1253
|
+
protoOf(ValueCursor).fp = function () {
|
|
1254
|
+
return this.ls_1;
|
|
1254
1255
|
};
|
|
1255
|
-
protoOf(ValueCursor).
|
|
1256
|
-
return this.
|
|
1256
|
+
protoOf(ValueCursor).ep = function () {
|
|
1257
|
+
return this.ms_1;
|
|
1257
1258
|
};
|
|
1258
|
-
protoOf(ValueCursor).
|
|
1259
|
+
protoOf(ValueCursor).gp = function () {
|
|
1259
1260
|
return true;
|
|
1260
1261
|
};
|
|
1261
|
-
protoOf(ValueCursor).
|
|
1262
|
+
protoOf(ValueCursor).hp = function () {
|
|
1262
1263
|
return false;
|
|
1263
1264
|
};
|
|
1264
1265
|
function dequeOf(items) {
|
|
@@ -1275,21 +1276,21 @@
|
|
|
1275
1276
|
return toMutableList(items);
|
|
1276
1277
|
}
|
|
1277
1278
|
function takeFirst(_this__u8e3s4) {
|
|
1278
|
-
if (_this__u8e3s4.
|
|
1279
|
+
if (_this__u8e3s4.i())
|
|
1279
1280
|
return null;
|
|
1280
|
-
var first = _this__u8e3s4.
|
|
1281
|
-
_this__u8e3s4.
|
|
1281
|
+
var first = _this__u8e3s4.u(0);
|
|
1282
|
+
_this__u8e3s4.k3(0);
|
|
1282
1283
|
return first;
|
|
1283
1284
|
}
|
|
1284
1285
|
function addFirst(_this__u8e3s4, item) {
|
|
1285
|
-
_this__u8e3s4.
|
|
1286
|
+
_this__u8e3s4.v3(0, item);
|
|
1286
1287
|
}
|
|
1287
1288
|
function addFirst_0(_this__u8e3s4, items) {
|
|
1288
|
-
var i = _this__u8e3s4.
|
|
1289
|
-
var _iterator__ex2g4s = items.
|
|
1290
|
-
while (_iterator__ex2g4s.
|
|
1291
|
-
var item = _iterator__ex2g4s.
|
|
1292
|
-
i.
|
|
1289
|
+
var i = _this__u8e3s4.d2();
|
|
1290
|
+
var _iterator__ex2g4s = items.n();
|
|
1291
|
+
while (_iterator__ex2g4s.q()) {
|
|
1292
|
+
var item = _iterator__ex2g4s.r();
|
|
1293
|
+
i.w3(item);
|
|
1293
1294
|
}
|
|
1294
1295
|
}
|
|
1295
1296
|
function synchronizedOn(obj, action) {
|
|
@@ -1302,9 +1303,9 @@
|
|
|
1302
1303
|
//region block: post-declaration
|
|
1303
1304
|
protoOf(AbstractCursor).asIterable = asIterable_1;
|
|
1304
1305
|
protoOf(AbstractCursor).asSequence = asSequence_0;
|
|
1305
|
-
protoOf(CachedImpl).
|
|
1306
|
-
protoOf(IntIndexedImpl).
|
|
1307
|
-
protoOf(SimpleLRUCache).
|
|
1306
|
+
protoOf(CachedImpl).yo = ifValid;
|
|
1307
|
+
protoOf(IntIndexedImpl).lp = compareTo_0;
|
|
1308
|
+
protoOf(SimpleLRUCache).to = getOrSet;
|
|
1308
1309
|
//endregion
|
|
1309
1310
|
//region block: init
|
|
1310
1311
|
Companion_instance = new Companion();
|