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