@tuprolog/arg2p-core 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-core.js +3280 -5108
- package/2p-core.js.map +1 -1
- package/2p-parser-core.js +332 -422
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-js.js +7 -8
- package/2p-parser-js.js.map +1 -1
- package/2p-parser-theory.js +36 -41
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve-classic.js +1163 -1393
- package/2p-solve-classic.js.map +1 -1
- package/2p-solve.js +4695 -5928
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +2096 -2245
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +290 -330
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +466 -536
- package/2p-utils.js.map +1 -1
- package/arg2p-core.js +245 -301
- package/arg2p-core.js.map +1 -1
- package/{kotlin-kotlin-stdlib-js-ir.js → kotlin-kotlin-stdlib.js} +8113 -8631
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kt-math.js +2925 -4246
- package/kt-math.js.map +1 -1
- package/package.json +4 -3
- package/kotlin-kotlin-stdlib-js-ir.js.map +0 -1
package/2p-utils.js
CHANGED
|
@@ -1,82 +1,81 @@
|
|
|
1
1
|
(function (root, factory) {
|
|
2
2
|
if (typeof define === 'function' && define.amd)
|
|
3
|
-
define(['exports', './kotlin-kotlin-stdlib
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
|
|
4
4
|
else if (typeof exports === 'object')
|
|
5
|
-
factory(module.exports, require('./kotlin-kotlin-stdlib
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
|
|
6
6
|
else {
|
|
7
|
-
if (typeof this['kotlin-kotlin-stdlib
|
|
8
|
-
throw new Error("Error loading module '2p-utils'. Its dependency 'kotlin-kotlin-stdlib
|
|
7
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module '2p-utils'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to '2p-utils'.");
|
|
9
9
|
}
|
|
10
|
-
root['2p-utils'] = factory(typeof this['2p-utils'] === 'undefined' ? {} : this['2p-utils'], this['kotlin-kotlin-stdlib
|
|
10
|
+
root['2p-utils'] = factory(typeof this['2p-utils'] === 'undefined' ? {} : this['2p-utils'], this['kotlin-kotlin-stdlib']);
|
|
11
11
|
}
|
|
12
12
|
}(this, function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
15
|
var imul = Math.imul;
|
|
16
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
17
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
26
|
-
var arrayIterator = kotlin_kotlin.$_$.
|
|
27
|
-
var sequence = kotlin_kotlin.$_$.
|
|
28
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
29
|
-
var asIterable = kotlin_kotlin.$_$.
|
|
30
|
-
var toList = kotlin_kotlin.$_$.
|
|
31
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
32
|
-
var asIterable_0 = kotlin_kotlin.$_$.
|
|
33
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
34
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
35
|
-
var
|
|
36
|
-
var IntRange = kotlin_kotlin.$_$.
|
|
37
|
-
var zip = kotlin_kotlin.$_$.
|
|
38
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
39
|
-
var SequenceScope = kotlin_kotlin.$_$.
|
|
40
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
41
|
-
var withIndex = kotlin_kotlin.$_$.
|
|
42
|
-
var equals = kotlin_kotlin.$_$.
|
|
43
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
44
|
-
var map = kotlin_kotlin.$_$.
|
|
45
|
-
var filterNot = kotlin_kotlin.$_$.
|
|
46
|
-
var toMutableList = kotlin_kotlin.$_$.
|
|
47
|
-
var minWithOrNull = kotlin_kotlin.$_$.
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var lazy = kotlin_kotlin.$_$.k9;
|
|
16
|
+
var protoOf = kotlin_kotlin.$_$.s5;
|
|
17
|
+
var objectMeta = kotlin_kotlin.$_$.r5;
|
|
18
|
+
var setMetadataFor = kotlin_kotlin.$_$.t5;
|
|
19
|
+
var Unit_instance = kotlin_kotlin.$_$.r1;
|
|
20
|
+
var interfaceMeta = kotlin_kotlin.$_$.f5;
|
|
21
|
+
var THROW_CCE = kotlin_kotlin.$_$.h9;
|
|
22
|
+
var isInterface = kotlin_kotlin.$_$.i5;
|
|
23
|
+
var classMeta = kotlin_kotlin.$_$.w4;
|
|
24
|
+
var VOID = kotlin_kotlin.$_$.d;
|
|
25
|
+
var Sequence = kotlin_kotlin.$_$.n6;
|
|
26
|
+
var arrayIterator = kotlin_kotlin.$_$.q4;
|
|
27
|
+
var sequence = kotlin_kotlin.$_$.p7;
|
|
28
|
+
var hashCode = kotlin_kotlin.$_$.e5;
|
|
29
|
+
var asIterable = kotlin_kotlin.$_$.p6;
|
|
30
|
+
var toList = kotlin_kotlin.$_$.v7;
|
|
31
|
+
var asSequence = kotlin_kotlin.$_$.e2;
|
|
32
|
+
var asIterable_0 = kotlin_kotlin.$_$.z1;
|
|
33
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.g2;
|
|
34
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.e;
|
|
35
|
+
var IntCompanionObject_instance = kotlin_kotlin.$_$.m1;
|
|
36
|
+
var IntRange = kotlin_kotlin.$_$.h6;
|
|
37
|
+
var zip = kotlin_kotlin.$_$.z7;
|
|
38
|
+
var CoroutineImpl = kotlin_kotlin.$_$.o4;
|
|
39
|
+
var SequenceScope = kotlin_kotlin.$_$.m6;
|
|
40
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.n4;
|
|
41
|
+
var withIndex = kotlin_kotlin.$_$.y7;
|
|
42
|
+
var equals = kotlin_kotlin.$_$.z4;
|
|
43
|
+
var ensureNotNull = kotlin_kotlin.$_$.k9;
|
|
44
|
+
var map = kotlin_kotlin.$_$.j7;
|
|
45
|
+
var filterNot = kotlin_kotlin.$_$.x6;
|
|
46
|
+
var toMutableList = kotlin_kotlin.$_$.w7;
|
|
47
|
+
var minWithOrNull = kotlin_kotlin.$_$.k7;
|
|
48
|
+
var Map = kotlin_kotlin.$_$.u1;
|
|
49
|
+
var lazy = kotlin_kotlin.$_$.m9;
|
|
51
50
|
var getKClassFromExpression = kotlin_kotlin.$_$.b;
|
|
52
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
53
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
54
|
-
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var
|
|
61
|
-
var
|
|
62
|
-
var
|
|
51
|
+
var KProperty1 = kotlin_kotlin.$_$.l6;
|
|
52
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.c5;
|
|
53
|
+
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.y;
|
|
54
|
+
var first = kotlin_kotlin.$_$.t2;
|
|
55
|
+
var to = kotlin_kotlin.$_$.s9;
|
|
56
|
+
var Pair = kotlin_kotlin.$_$.f9;
|
|
57
|
+
var toString = kotlin_kotlin.$_$.x5;
|
|
58
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.s;
|
|
59
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.h;
|
|
60
|
+
var joinToString = kotlin_kotlin.$_$.f7;
|
|
61
|
+
var mutableListOf = kotlin_kotlin.$_$.o3;
|
|
62
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
|
|
63
|
+
var addAll = kotlin_kotlin.$_$.w1;
|
|
63
64
|
//endregion
|
|
64
65
|
//region block: pre-declaration
|
|
65
66
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
66
67
|
function getOrSet(key, valueGenerator) {
|
|
67
|
-
var got = this.
|
|
68
|
+
var got = this.w2(key);
|
|
68
69
|
var tmp;
|
|
69
70
|
if (got instanceof Some) {
|
|
70
|
-
tmp = got.
|
|
71
|
+
tmp = got.fp_1;
|
|
71
72
|
} else {
|
|
72
|
-
var tmp$ret$0;
|
|
73
73
|
// Inline function 'kotlin.also' call
|
|
74
|
-
var
|
|
74
|
+
var this_0 = valueGenerator();
|
|
75
75
|
// Inline function 'kotlin.contracts.contract' call
|
|
76
76
|
// Inline function 'it.unibo.tuprolog.utils.Cache.getOrSet.<anonymous>' call
|
|
77
|
-
this.
|
|
78
|
-
tmp
|
|
79
|
-
tmp = tmp$ret$0;
|
|
77
|
+
this.dp(key, this_0);
|
|
78
|
+
tmp = this_0;
|
|
80
79
|
}
|
|
81
80
|
return tmp;
|
|
82
81
|
}
|
|
@@ -84,16 +83,14 @@
|
|
|
84
83
|
setMetadataFor(Companion_0, 'Companion', objectMeta);
|
|
85
84
|
function ifValid(consumer) {
|
|
86
85
|
var tmp;
|
|
87
|
-
if (this.
|
|
88
|
-
var tmp_0 =
|
|
89
|
-
var tmp$ret$0;
|
|
86
|
+
if (this.hp()) {
|
|
87
|
+
var tmp_0 = Companion_instance_4;
|
|
90
88
|
// Inline function 'kotlin.let' call
|
|
91
|
-
var tmp0_let = this.p2();
|
|
92
89
|
// Inline function 'kotlin.contracts.contract' call
|
|
93
|
-
tmp$ret$0 = consumer(
|
|
94
|
-
tmp = tmp_0.
|
|
90
|
+
var tmp$ret$0 = consumer(this.q2());
|
|
91
|
+
tmp = tmp_0.lp(tmp$ret$0);
|
|
95
92
|
} else {
|
|
96
|
-
tmp =
|
|
93
|
+
tmp = Companion_instance_4.kp();
|
|
97
94
|
}
|
|
98
95
|
return tmp;
|
|
99
96
|
}
|
|
@@ -106,38 +103,34 @@
|
|
|
106
103
|
setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta);
|
|
107
104
|
setMetadataFor(_no_name_provided__qut3iv_0, VOID, classMeta, VOID, [Sequence]);
|
|
108
105
|
function asIterable_1() {
|
|
109
|
-
var tmp$ret$0;
|
|
110
106
|
// Inline function 'kotlin.collections.Iterable' call
|
|
111
|
-
|
|
112
|
-
return tmp$ret$0;
|
|
107
|
+
return new _no_name_provided__qut3iv(this);
|
|
113
108
|
}
|
|
114
109
|
function asSequence_0() {
|
|
115
|
-
var tmp$ret$0;
|
|
116
110
|
// Inline function 'kotlin.sequences.Sequence' call
|
|
117
|
-
|
|
118
|
-
return tmp$ret$0;
|
|
111
|
+
return new _no_name_provided__qut3iv_0(this);
|
|
119
112
|
}
|
|
120
113
|
setMetadataFor(Cursor, 'Cursor', interfaceMeta);
|
|
121
114
|
function component1() {
|
|
122
|
-
return this.
|
|
115
|
+
return this.up();
|
|
123
116
|
}
|
|
124
117
|
function component2() {
|
|
125
|
-
return this.
|
|
118
|
+
return this.q2();
|
|
126
119
|
}
|
|
127
120
|
setMetadataFor(Indexed, 'Indexed', interfaceMeta);
|
|
128
121
|
setMetadataFor(Companion_2, 'Companion', objectMeta);
|
|
129
122
|
function compareTo(other) {
|
|
130
|
-
return this.
|
|
123
|
+
return this.up() - other.up() | 0;
|
|
131
124
|
}
|
|
132
125
|
setMetadataFor(IntIndexed, 'IntIndexed', interfaceMeta, VOID, [Indexed]);
|
|
133
126
|
setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta);
|
|
134
|
-
setMetadataFor(dropLast$slambda, 'dropLast$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
135
|
-
setMetadataFor(insertAt$slambda, 'insertAt$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
127
|
+
setMetadataFor(dropLast$slambda, 'dropLast$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
128
|
+
setMetadataFor(insertAt$slambda, 'insertAt$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
136
129
|
setMetadataFor(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', classMeta);
|
|
137
|
-
setMetadataFor(merge$slambda, 'merge$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
|
|
130
|
+
setMetadataFor(merge$slambda, 'merge$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, VOID, [1]);
|
|
138
131
|
setMetadataFor(Companion_3, 'Companion', objectMeta);
|
|
139
132
|
function compareTo_0(other) {
|
|
140
|
-
return this.
|
|
133
|
+
return this.up().ja(other.up()).z8();
|
|
141
134
|
}
|
|
142
135
|
setMetadataFor(LongIndexed, 'LongIndexed', interfaceMeta, VOID, [Indexed]);
|
|
143
136
|
setMetadataFor(Companion_4, 'Companion', objectMeta);
|
|
@@ -145,18 +138,14 @@
|
|
|
145
138
|
setMetadataFor(Some, 'Some', classMeta, Optional);
|
|
146
139
|
setMetadataFor(None, 'None', objectMeta, Optional);
|
|
147
140
|
function getTag(name) {
|
|
148
|
-
var tmp = this.
|
|
149
|
-
return (tmp == null ? true :
|
|
141
|
+
var tmp = this.zr().w2(name);
|
|
142
|
+
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
150
143
|
}
|
|
151
144
|
function containsTag(name) {
|
|
152
|
-
var tmp$ret$1;
|
|
153
145
|
// Inline function 'kotlin.collections.contains' call
|
|
154
|
-
var tmp0_contains = this.fr();
|
|
155
|
-
var tmp$ret$0;
|
|
156
146
|
// Inline function 'kotlin.collections.containsKey' call
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return tmp$ret$1;
|
|
147
|
+
var this_0 = this.zr();
|
|
148
|
+
return (isInterface(this_0, Map) ? this_0 : THROW_CCE()).t2(name);
|
|
160
149
|
}
|
|
161
150
|
setMetadataFor(Taggable, 'Taggable', interfaceMeta);
|
|
162
151
|
setMetadataFor(Companion_5, 'Companion', objectMeta);
|
|
@@ -174,29 +163,23 @@
|
|
|
174
163
|
setMetadataFor(ValueCursor, 'ValueCursor', classMeta, AbstractCursor);
|
|
175
164
|
//endregion
|
|
176
165
|
function Companion() {
|
|
177
|
-
Companion_instance = this;
|
|
178
166
|
}
|
|
179
|
-
protoOf(Companion).
|
|
167
|
+
protoOf(Companion).cp = function (capacity) {
|
|
180
168
|
return new SimpleLRUCache(capacity);
|
|
181
169
|
};
|
|
182
170
|
var Companion_instance;
|
|
183
171
|
function Companion_getInstance() {
|
|
184
|
-
if (Companion_instance == null)
|
|
185
|
-
new Companion();
|
|
186
172
|
return Companion_instance;
|
|
187
173
|
}
|
|
188
174
|
function Cache() {
|
|
189
175
|
}
|
|
190
176
|
function Companion_0() {
|
|
191
|
-
Companion_instance_0 = this;
|
|
192
177
|
}
|
|
193
|
-
protoOf(Companion_0).
|
|
178
|
+
protoOf(Companion_0).gp = function (generator) {
|
|
194
179
|
return new CachedImpl(generator);
|
|
195
180
|
};
|
|
196
181
|
var Companion_instance_0;
|
|
197
182
|
function Companion_getInstance_0() {
|
|
198
|
-
if (Companion_instance_0 == null)
|
|
199
|
-
new Companion_0();
|
|
200
183
|
return Companion_instance_0;
|
|
201
184
|
}
|
|
202
185
|
function Cached() {
|
|
@@ -204,7 +187,6 @@
|
|
|
204
187
|
function Castable() {
|
|
205
188
|
}
|
|
206
189
|
function Companion_1() {
|
|
207
|
-
Companion_instance_1 = this;
|
|
208
190
|
}
|
|
209
191
|
protoOf(Companion_1).of = function (iterator) {
|
|
210
192
|
return toCursor(iterator);
|
|
@@ -217,57 +199,48 @@
|
|
|
217
199
|
};
|
|
218
200
|
var Companion_instance_1;
|
|
219
201
|
function Companion_getInstance_1() {
|
|
220
|
-
if (Companion_instance_1 == null)
|
|
221
|
-
new Companion_1();
|
|
222
202
|
return Companion_instance_1;
|
|
223
203
|
}
|
|
224
204
|
function _no_name_provided__qut3iv(this$0) {
|
|
225
|
-
this.
|
|
205
|
+
this.np_1 = this$0;
|
|
226
206
|
}
|
|
227
|
-
protoOf(_no_name_provided__qut3iv).
|
|
228
|
-
var tmp$ret$0;
|
|
207
|
+
protoOf(_no_name_provided__qut3iv).o = function () {
|
|
229
208
|
// Inline function 'it.unibo.tuprolog.utils.Cursor.asIterable.<anonymous>' call
|
|
230
|
-
|
|
231
|
-
return tmp$ret$0;
|
|
209
|
+
return this.np_1.iterator();
|
|
232
210
|
};
|
|
233
211
|
function _no_name_provided__qut3iv_0(this$0) {
|
|
234
|
-
this.
|
|
212
|
+
this.op_1 = this$0;
|
|
235
213
|
}
|
|
236
|
-
protoOf(_no_name_provided__qut3iv_0).
|
|
237
|
-
var tmp$ret$0;
|
|
214
|
+
protoOf(_no_name_provided__qut3iv_0).o = function () {
|
|
238
215
|
// Inline function 'it.unibo.tuprolog.utils.Cursor.asSequence.<anonymous>' call
|
|
239
|
-
|
|
240
|
-
return tmp$ret$0;
|
|
216
|
+
return this.op_1.iterator();
|
|
241
217
|
};
|
|
242
218
|
function Cursor() {
|
|
243
219
|
}
|
|
244
220
|
function cursor(_this__u8e3s4) {
|
|
245
|
-
return toCursor(_this__u8e3s4.
|
|
221
|
+
return toCursor(_this__u8e3s4.o());
|
|
246
222
|
}
|
|
247
223
|
function cursor_0(_this__u8e3s4) {
|
|
248
|
-
return toCursor(_this__u8e3s4.
|
|
224
|
+
return toCursor(_this__u8e3s4.o());
|
|
249
225
|
}
|
|
250
226
|
function cursor_1(_this__u8e3s4) {
|
|
251
227
|
return toCursor(arrayIterator(_this__u8e3s4));
|
|
252
228
|
}
|
|
253
229
|
function plus(_this__u8e3s4, other) {
|
|
254
|
-
return other.
|
|
230
|
+
return other.rp() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.rp() ? _this__u8e3s4 : EmptyCursor_getInstance();
|
|
255
231
|
}
|
|
256
232
|
function toCursor(_this__u8e3s4) {
|
|
257
|
-
return
|
|
233
|
+
return Companion_instance_5.tp(_this__u8e3s4);
|
|
258
234
|
}
|
|
259
235
|
function Indexed() {
|
|
260
236
|
}
|
|
261
237
|
function Companion_2() {
|
|
262
|
-
Companion_instance_2 = this;
|
|
263
238
|
}
|
|
264
|
-
protoOf(Companion_2).
|
|
239
|
+
protoOf(Companion_2).vp = function (index, value) {
|
|
265
240
|
return new IntIndexedImpl(index, value);
|
|
266
241
|
};
|
|
267
242
|
var Companion_instance_2;
|
|
268
243
|
function Companion_getInstance_2() {
|
|
269
|
-
if (Companion_instance_2 == null)
|
|
270
|
-
new Companion_2();
|
|
271
244
|
return Companion_instance_2;
|
|
272
245
|
}
|
|
273
246
|
function IntIndexed() {
|
|
@@ -277,10 +250,10 @@
|
|
|
277
250
|
}
|
|
278
251
|
function itemWiseHashCode(iterable) {
|
|
279
252
|
var hash = 13;
|
|
280
|
-
var i = iterable.
|
|
281
|
-
while (i.
|
|
253
|
+
var i = iterable.o();
|
|
254
|
+
while (i.p()) {
|
|
282
255
|
var tmp = imul(31, hash);
|
|
283
|
-
var tmp0_safe_receiver = i.
|
|
256
|
+
var tmp0_safe_receiver = i.r();
|
|
284
257
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
285
258
|
hash = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
286
259
|
}
|
|
@@ -302,233 +275,226 @@
|
|
|
302
275
|
return asSequence(toList(_this__u8e3s4));
|
|
303
276
|
}
|
|
304
277
|
function itemWiseEquals_0(iterable1, iterable2, comparator) {
|
|
305
|
-
var i = iterable1.
|
|
306
|
-
var j = iterable2.
|
|
307
|
-
while (i.
|
|
308
|
-
var a = i.
|
|
309
|
-
var b = j.
|
|
278
|
+
var i = iterable1.o();
|
|
279
|
+
var j = iterable2.o();
|
|
280
|
+
while (i.p() ? j.p() : false) {
|
|
281
|
+
var a = i.r();
|
|
282
|
+
var b = j.r();
|
|
310
283
|
if (!comparator(a, b)) {
|
|
311
284
|
return false;
|
|
312
285
|
}
|
|
313
286
|
}
|
|
314
|
-
return i.
|
|
315
|
-
}
|
|
316
|
-
function itemWiseEquals_1(iterable1, iterable2) {
|
|
317
|
-
return itemWiseEquals_0(iterable1, iterable2, itemWiseEquals$lambda);
|
|
287
|
+
return i.p() === j.p();
|
|
318
288
|
}
|
|
319
289
|
function itemWiseHashCode_1(items) {
|
|
320
290
|
return itemWiseHashCode(asIterable_0(items));
|
|
321
291
|
}
|
|
292
|
+
function itemWiseEquals_1(iterable1, iterable2) {
|
|
293
|
+
return itemWiseEquals_0(iterable1, iterable2, itemWiseEquals$lambda);
|
|
294
|
+
}
|
|
322
295
|
function mergeSequences(iterables, comparator) {
|
|
323
296
|
var tmp = new sam$kotlin_Comparator$0(comparator);
|
|
324
|
-
var tmp$ret$2;
|
|
325
297
|
// Inline function 'kotlin.collections.map' call
|
|
326
|
-
var tmp$ret$1;
|
|
327
298
|
// Inline function 'kotlin.collections.mapTo' call
|
|
328
|
-
var
|
|
329
|
-
var tmp0_iterator = iterables.
|
|
330
|
-
while (tmp0_iterator.
|
|
331
|
-
var item = tmp0_iterator.
|
|
332
|
-
var tmp$ret$0;
|
|
299
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(iterables, 10));
|
|
300
|
+
var tmp0_iterator = iterables.o();
|
|
301
|
+
while (tmp0_iterator.p()) {
|
|
302
|
+
var item = tmp0_iterator.r();
|
|
333
303
|
// Inline function 'it.unibo.tuprolog.utils.mergeSequences.<anonymous>' call
|
|
334
|
-
tmp$ret$0 = asIterable(item);
|
|
335
|
-
|
|
304
|
+
var tmp$ret$0 = asIterable(item);
|
|
305
|
+
destination.l(tmp$ret$0);
|
|
336
306
|
}
|
|
337
|
-
tmp
|
|
338
|
-
tmp$ret$2 = tmp$ret$1;
|
|
339
|
-
return merge(tmp, tmp$ret$2);
|
|
307
|
+
return merge(tmp, destination);
|
|
340
308
|
}
|
|
341
309
|
function merge(comparator, iterables) {
|
|
342
310
|
return sequence(merge$slambda_0(iterables, comparator, null));
|
|
343
311
|
}
|
|
344
312
|
function indexed(_this__u8e3s4) {
|
|
345
|
-
var tmp = asSequence(new IntRange(0,
|
|
313
|
+
var tmp = asSequence(new IntRange(0, IntCompanionObject_instance.MAX_VALUE));
|
|
346
314
|
return zip(_this__u8e3s4, tmp, indexed$lambda);
|
|
347
315
|
}
|
|
348
316
|
function sam$kotlin_Comparator$0(function_0) {
|
|
349
|
-
this.
|
|
317
|
+
this.xp_1 = function_0;
|
|
350
318
|
}
|
|
351
|
-
protoOf(sam$kotlin_Comparator$0).
|
|
352
|
-
return this.
|
|
319
|
+
protoOf(sam$kotlin_Comparator$0).m8 = function (a, b) {
|
|
320
|
+
return this.xp_1(a, b);
|
|
353
321
|
};
|
|
354
322
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
355
|
-
return this.
|
|
323
|
+
return this.m8(a, b);
|
|
356
324
|
};
|
|
357
325
|
function dropLast$slambda($this_dropLast, resultContinuation) {
|
|
358
|
-
this.
|
|
326
|
+
this.gq_1 = $this_dropLast;
|
|
359
327
|
CoroutineImpl.call(this, resultContinuation);
|
|
360
328
|
}
|
|
361
|
-
protoOf(dropLast$slambda).
|
|
362
|
-
var tmp = this.
|
|
363
|
-
tmp.
|
|
364
|
-
tmp.
|
|
365
|
-
return tmp.
|
|
329
|
+
protoOf(dropLast$slambda).kq = function ($this$sequence, $completion) {
|
|
330
|
+
var tmp = this.lq($this$sequence, $completion);
|
|
331
|
+
tmp.eb_1 = Unit_instance;
|
|
332
|
+
tmp.fb_1 = null;
|
|
333
|
+
return tmp.nb();
|
|
366
334
|
};
|
|
367
|
-
protoOf(dropLast$slambda).
|
|
368
|
-
return this.
|
|
335
|
+
protoOf(dropLast$slambda).ac = function (p1, $completion) {
|
|
336
|
+
return this.kq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
369
337
|
};
|
|
370
|
-
protoOf(dropLast$slambda).
|
|
371
|
-
var suspendResult = this.
|
|
338
|
+
protoOf(dropLast$slambda).nb = function () {
|
|
339
|
+
var suspendResult = this.eb_1;
|
|
372
340
|
$sm: do
|
|
373
341
|
try {
|
|
374
|
-
var tmp = this.
|
|
342
|
+
var tmp = this.cb_1;
|
|
375
343
|
switch (tmp) {
|
|
376
344
|
case 0:
|
|
377
|
-
this.
|
|
378
|
-
this.
|
|
379
|
-
this.
|
|
345
|
+
this.db_1 = 5;
|
|
346
|
+
this.iq_1 = this.gq_1.o();
|
|
347
|
+
this.cb_1 = 1;
|
|
380
348
|
continue $sm;
|
|
381
349
|
case 1:
|
|
382
|
-
if (!this.
|
|
383
|
-
this.
|
|
350
|
+
if (!this.iq_1.p()) {
|
|
351
|
+
this.cb_1 = 4;
|
|
384
352
|
continue $sm;
|
|
385
353
|
}
|
|
386
354
|
|
|
387
|
-
this.
|
|
388
|
-
if (this.
|
|
389
|
-
this.
|
|
390
|
-
suspendResult = this.
|
|
355
|
+
this.jq_1 = this.iq_1.r();
|
|
356
|
+
if (this.iq_1.p()) {
|
|
357
|
+
this.cb_1 = 2;
|
|
358
|
+
suspendResult = this.hq_1.sd(this.jq_1, this);
|
|
391
359
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
392
360
|
return suspendResult;
|
|
393
361
|
}
|
|
394
362
|
continue $sm;
|
|
395
363
|
} else {
|
|
396
|
-
this.
|
|
364
|
+
this.cb_1 = 3;
|
|
397
365
|
continue $sm;
|
|
398
366
|
}
|
|
399
367
|
|
|
400
|
-
break;
|
|
401
368
|
case 2:
|
|
402
|
-
this.
|
|
369
|
+
this.cb_1 = 3;
|
|
403
370
|
continue $sm;
|
|
404
371
|
case 3:
|
|
405
|
-
this.
|
|
372
|
+
this.cb_1 = 1;
|
|
406
373
|
continue $sm;
|
|
407
374
|
case 4:
|
|
408
|
-
return
|
|
375
|
+
return Unit_instance;
|
|
409
376
|
case 5:
|
|
410
|
-
throw this.
|
|
377
|
+
throw this.fb_1;
|
|
411
378
|
}
|
|
412
379
|
} catch ($p) {
|
|
413
380
|
var e = $p;
|
|
414
|
-
if (this.
|
|
381
|
+
if (this.db_1 === 5) {
|
|
415
382
|
throw e;
|
|
416
383
|
} else {
|
|
417
|
-
this.
|
|
418
|
-
this.
|
|
384
|
+
this.cb_1 = this.db_1;
|
|
385
|
+
this.fb_1 = e;
|
|
419
386
|
}
|
|
420
387
|
}
|
|
421
388
|
while (true);
|
|
422
389
|
};
|
|
423
|
-
protoOf(dropLast$slambda).
|
|
424
|
-
var i = new dropLast$slambda(this.
|
|
425
|
-
i.
|
|
390
|
+
protoOf(dropLast$slambda).lq = function ($this$sequence, completion) {
|
|
391
|
+
var i = new dropLast$slambda(this.gq_1, completion);
|
|
392
|
+
i.hq_1 = $this$sequence;
|
|
426
393
|
return i;
|
|
427
394
|
};
|
|
428
395
|
function dropLast$slambda_0($this_dropLast, resultContinuation) {
|
|
429
396
|
var i = new dropLast$slambda($this_dropLast, resultContinuation);
|
|
430
397
|
var l = function ($this$sequence, $completion) {
|
|
431
|
-
return i.
|
|
398
|
+
return i.kq($this$sequence, $completion);
|
|
432
399
|
};
|
|
433
400
|
l.$arity = 1;
|
|
434
401
|
return l;
|
|
435
402
|
}
|
|
436
403
|
function insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
437
|
-
this.
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
440
|
-
this.
|
|
404
|
+
this.uq_1 = $this_insertAt;
|
|
405
|
+
this.vq_1 = $index;
|
|
406
|
+
this.wq_1 = $item;
|
|
407
|
+
this.xq_1 = $items;
|
|
441
408
|
CoroutineImpl.call(this, resultContinuation);
|
|
442
409
|
}
|
|
443
|
-
protoOf(insertAt$slambda).
|
|
444
|
-
var tmp = this.
|
|
445
|
-
tmp.
|
|
446
|
-
tmp.
|
|
447
|
-
return tmp.
|
|
410
|
+
protoOf(insertAt$slambda).kq = function ($this$sequence, $completion) {
|
|
411
|
+
var tmp = this.lq($this$sequence, $completion);
|
|
412
|
+
tmp.eb_1 = Unit_instance;
|
|
413
|
+
tmp.fb_1 = null;
|
|
414
|
+
return tmp.nb();
|
|
448
415
|
};
|
|
449
|
-
protoOf(insertAt$slambda).
|
|
450
|
-
return this.
|
|
416
|
+
protoOf(insertAt$slambda).ac = function (p1, $completion) {
|
|
417
|
+
return this.kq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
451
418
|
};
|
|
452
|
-
protoOf(insertAt$slambda).
|
|
453
|
-
var suspendResult = this.
|
|
419
|
+
protoOf(insertAt$slambda).nb = function () {
|
|
420
|
+
var suspendResult = this.eb_1;
|
|
454
421
|
$sm: do
|
|
455
422
|
try {
|
|
456
|
-
var tmp = this.
|
|
423
|
+
var tmp = this.cb_1;
|
|
457
424
|
switch (tmp) {
|
|
458
425
|
case 0:
|
|
459
|
-
this.
|
|
460
|
-
this.
|
|
461
|
-
this.
|
|
426
|
+
this.db_1 = 7;
|
|
427
|
+
this.zq_1 = asIterable(withIndex(this.uq_1)).o();
|
|
428
|
+
this.cb_1 = 1;
|
|
462
429
|
continue $sm;
|
|
463
430
|
case 1:
|
|
464
|
-
if (!this.
|
|
465
|
-
this.
|
|
431
|
+
if (!this.zq_1.p()) {
|
|
432
|
+
this.cb_1 = 6;
|
|
466
433
|
continue $sm;
|
|
467
434
|
}
|
|
468
435
|
|
|
469
|
-
this.
|
|
470
|
-
this.
|
|
471
|
-
this.
|
|
472
|
-
if (this.
|
|
473
|
-
this.
|
|
474
|
-
suspendResult = this.
|
|
436
|
+
this.ar_1 = this.zq_1.r();
|
|
437
|
+
this.br_1 = this.ar_1.dd();
|
|
438
|
+
this.cr_1 = this.ar_1.ed();
|
|
439
|
+
if (this.br_1 === this.vq_1) {
|
|
440
|
+
this.cb_1 = 2;
|
|
441
|
+
suspendResult = this.yq_1.sd(this.wq_1, this);
|
|
475
442
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
476
443
|
return suspendResult;
|
|
477
444
|
}
|
|
478
445
|
continue $sm;
|
|
479
446
|
} else {
|
|
480
|
-
this.
|
|
447
|
+
this.cb_1 = 4;
|
|
481
448
|
continue $sm;
|
|
482
449
|
}
|
|
483
450
|
|
|
484
|
-
break;
|
|
485
451
|
case 2:
|
|
486
|
-
this.
|
|
487
|
-
suspendResult = this.
|
|
452
|
+
this.cb_1 = 3;
|
|
453
|
+
suspendResult = this.yq_1.ud(asIterable_0(this.xq_1), this);
|
|
488
454
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
489
455
|
return suspendResult;
|
|
490
456
|
}
|
|
491
457
|
|
|
492
458
|
continue $sm;
|
|
493
459
|
case 3:
|
|
494
|
-
this.
|
|
460
|
+
this.cb_1 = 4;
|
|
495
461
|
continue $sm;
|
|
496
462
|
case 4:
|
|
497
|
-
this.
|
|
498
|
-
suspendResult = this.
|
|
463
|
+
this.cb_1 = 5;
|
|
464
|
+
suspendResult = this.yq_1.sd(this.cr_1, this);
|
|
499
465
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
500
466
|
return suspendResult;
|
|
501
467
|
}
|
|
502
468
|
|
|
503
469
|
continue $sm;
|
|
504
470
|
case 5:
|
|
505
|
-
this.
|
|
471
|
+
this.cb_1 = 1;
|
|
506
472
|
continue $sm;
|
|
507
473
|
case 6:
|
|
508
|
-
return
|
|
474
|
+
return Unit_instance;
|
|
509
475
|
case 7:
|
|
510
|
-
throw this.
|
|
476
|
+
throw this.fb_1;
|
|
511
477
|
}
|
|
512
478
|
} catch ($p) {
|
|
513
479
|
var e = $p;
|
|
514
|
-
if (this.
|
|
480
|
+
if (this.db_1 === 7) {
|
|
515
481
|
throw e;
|
|
516
482
|
} else {
|
|
517
|
-
this.
|
|
518
|
-
this.
|
|
483
|
+
this.cb_1 = this.db_1;
|
|
484
|
+
this.fb_1 = e;
|
|
519
485
|
}
|
|
520
486
|
}
|
|
521
487
|
while (true);
|
|
522
488
|
};
|
|
523
|
-
protoOf(insertAt$slambda).
|
|
524
|
-
var i = new insertAt$slambda(this.
|
|
525
|
-
i.
|
|
489
|
+
protoOf(insertAt$slambda).lq = function ($this$sequence, completion) {
|
|
490
|
+
var i = new insertAt$slambda(this.uq_1, this.vq_1, this.wq_1, this.xq_1, completion);
|
|
491
|
+
i.yq_1 = $this$sequence;
|
|
526
492
|
return i;
|
|
527
493
|
};
|
|
528
494
|
function insertAt$slambda_0($this_insertAt, $index, $item, $items, resultContinuation) {
|
|
529
495
|
var i = new insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation);
|
|
530
496
|
var l = function ($this$sequence, $completion) {
|
|
531
|
-
return i.
|
|
497
|
+
return i.kq($this$sequence, $completion);
|
|
532
498
|
};
|
|
533
499
|
l.$arity = 1;
|
|
534
500
|
return l;
|
|
@@ -537,172 +503,165 @@
|
|
|
537
503
|
return equals(a, b);
|
|
538
504
|
}
|
|
539
505
|
function sam$kotlin_Comparator$0_0(function_0) {
|
|
540
|
-
this.
|
|
506
|
+
this.dr_1 = function_0;
|
|
541
507
|
}
|
|
542
|
-
protoOf(sam$kotlin_Comparator$0_0).
|
|
543
|
-
return this.
|
|
508
|
+
protoOf(sam$kotlin_Comparator$0_0).m8 = function (a, b) {
|
|
509
|
+
return this.dr_1(a, b);
|
|
544
510
|
};
|
|
545
511
|
protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
|
|
546
|
-
return this.
|
|
512
|
+
return this.m8(a, b);
|
|
547
513
|
};
|
|
548
514
|
function merge$slambda$lambda(it) {
|
|
549
515
|
return cursor(it);
|
|
550
516
|
}
|
|
551
517
|
function merge$slambda$lambda_0(it) {
|
|
552
|
-
return it.
|
|
518
|
+
return it.sp();
|
|
553
519
|
}
|
|
554
520
|
function merge$slambda$lambda_1(it) {
|
|
555
|
-
return ensureNotNull(it.
|
|
521
|
+
return ensureNotNull(it.qp());
|
|
556
522
|
}
|
|
557
523
|
function merge$slambda$lambda_2($comparator) {
|
|
558
524
|
return function (a, b) {
|
|
559
|
-
return $comparator.compare(a.
|
|
525
|
+
return $comparator.compare(a.q2(), b.q2());
|
|
560
526
|
};
|
|
561
527
|
}
|
|
562
528
|
function merge$slambda($iterables, $comparator, resultContinuation) {
|
|
563
|
-
this.
|
|
564
|
-
this.
|
|
529
|
+
this.mr_1 = $iterables;
|
|
530
|
+
this.nr_1 = $comparator;
|
|
565
531
|
CoroutineImpl.call(this, resultContinuation);
|
|
566
532
|
}
|
|
567
|
-
protoOf(merge$slambda).
|
|
568
|
-
var tmp = this.
|
|
569
|
-
tmp.
|
|
570
|
-
tmp.
|
|
571
|
-
return tmp.
|
|
533
|
+
protoOf(merge$slambda).kq = function ($this$sequence, $completion) {
|
|
534
|
+
var tmp = this.lq($this$sequence, $completion);
|
|
535
|
+
tmp.eb_1 = Unit_instance;
|
|
536
|
+
tmp.fb_1 = null;
|
|
537
|
+
return tmp.nb();
|
|
572
538
|
};
|
|
573
|
-
protoOf(merge$slambda).
|
|
574
|
-
return this.
|
|
539
|
+
protoOf(merge$slambda).ac = function (p1, $completion) {
|
|
540
|
+
return this.kq(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
|
|
575
541
|
};
|
|
576
|
-
protoOf(merge$slambda).
|
|
577
|
-
var suspendResult = this.
|
|
542
|
+
protoOf(merge$slambda).nb = function () {
|
|
543
|
+
var suspendResult = this.eb_1;
|
|
578
544
|
$sm: do
|
|
579
545
|
try {
|
|
580
|
-
var tmp = this.
|
|
546
|
+
var tmp = this.cb_1;
|
|
581
547
|
switch (tmp) {
|
|
582
548
|
case 0:
|
|
583
|
-
this.
|
|
549
|
+
this.db_1 = 3;
|
|
584
550
|
var tmp_0 = this;
|
|
585
|
-
var tmp_1 = asSequence(this.
|
|
551
|
+
var tmp_1 = asSequence(this.mr_1);
|
|
586
552
|
var tmp_2 = map(tmp_1, merge$slambda$lambda);
|
|
587
|
-
tmp_0.
|
|
588
|
-
this.
|
|
553
|
+
tmp_0.qr_1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
|
|
554
|
+
this.cb_1 = 1;
|
|
589
555
|
continue $sm;
|
|
590
556
|
case 1:
|
|
591
|
-
if (!!this.
|
|
592
|
-
this.
|
|
557
|
+
if (!!this.qr_1.w()) {
|
|
558
|
+
this.cb_1 = 4;
|
|
593
559
|
continue $sm;
|
|
594
560
|
}
|
|
595
561
|
|
|
596
562
|
var tmp_3 = this;
|
|
597
|
-
var tmp_4 = asSequence(this.
|
|
563
|
+
var tmp_4 = asSequence(this.qr_1);
|
|
598
564
|
var tmp_5 = indexed(map(tmp_4, merge$slambda$lambda_1));
|
|
599
|
-
var tmp_6 = merge$slambda$lambda_2(this.
|
|
600
|
-
tmp_3.
|
|
601
|
-
this.
|
|
602
|
-
this.
|
|
603
|
-
this.
|
|
604
|
-
suspendResult = this.
|
|
565
|
+
var tmp_6 = merge$slambda$lambda_2(this.nr_1);
|
|
566
|
+
tmp_3.rr_1 = ensureNotNull(minWithOrNull(tmp_5, new sam$kotlin_Comparator$0_0(tmp_6)));
|
|
567
|
+
this.sr_1 = this.rr_1.dd();
|
|
568
|
+
this.tr_1 = this.rr_1.ed();
|
|
569
|
+
this.cb_1 = 2;
|
|
570
|
+
suspendResult = this.pr_1.sd(this.tr_1, this);
|
|
605
571
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
606
572
|
return suspendResult;
|
|
607
573
|
}
|
|
608
574
|
|
|
609
575
|
continue $sm;
|
|
610
576
|
case 2:
|
|
611
|
-
var
|
|
612
|
-
if (
|
|
613
|
-
this.
|
|
577
|
+
var it = this.qr_1.a1(this.sr_1).pp();
|
|
578
|
+
if (it.sp()) {
|
|
579
|
+
this.qr_1.c1(this.sr_1);
|
|
614
580
|
} else {
|
|
615
|
-
this.
|
|
581
|
+
this.qr_1.v1(this.sr_1, it);
|
|
616
582
|
}
|
|
617
583
|
|
|
618
|
-
;
|
|
619
|
-
this.mg_1 = 1;
|
|
584
|
+
this.cb_1 = 1;
|
|
620
585
|
continue $sm;
|
|
621
586
|
case 3:
|
|
622
|
-
throw this.
|
|
587
|
+
throw this.fb_1;
|
|
623
588
|
case 4:
|
|
624
|
-
return
|
|
589
|
+
return Unit_instance;
|
|
625
590
|
}
|
|
626
591
|
} catch ($p) {
|
|
627
592
|
var e = $p;
|
|
628
|
-
if (this.
|
|
593
|
+
if (this.db_1 === 3) {
|
|
629
594
|
throw e;
|
|
630
595
|
} else {
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
596
|
+
this.cb_1 = this.db_1;
|
|
597
|
+
this.fb_1 = e;
|
|
633
598
|
}
|
|
634
599
|
}
|
|
635
600
|
while (true);
|
|
636
601
|
};
|
|
637
|
-
protoOf(merge$slambda).
|
|
638
|
-
var i = new merge$slambda(this.
|
|
639
|
-
i.
|
|
602
|
+
protoOf(merge$slambda).lq = function ($this$sequence, completion) {
|
|
603
|
+
var i = new merge$slambda(this.mr_1, this.nr_1, completion);
|
|
604
|
+
i.pr_1 = $this$sequence;
|
|
640
605
|
return i;
|
|
641
606
|
};
|
|
642
607
|
function merge$slambda_0($iterables, $comparator, resultContinuation) {
|
|
643
608
|
var i = new merge$slambda($iterables, $comparator, resultContinuation);
|
|
644
609
|
var l = function ($this$sequence, $completion) {
|
|
645
|
-
return i.
|
|
610
|
+
return i.kq($this$sequence, $completion);
|
|
646
611
|
};
|
|
647
612
|
l.$arity = 1;
|
|
648
613
|
return l;
|
|
649
614
|
}
|
|
650
615
|
function indexed$lambda(it, i) {
|
|
651
|
-
return
|
|
616
|
+
return Companion_instance_2.vp(i, it);
|
|
652
617
|
}
|
|
653
618
|
function Companion_3() {
|
|
654
|
-
Companion_instance_3 = this;
|
|
655
619
|
}
|
|
656
|
-
protoOf(Companion_3).
|
|
620
|
+
protoOf(Companion_3).ur = function (index, value) {
|
|
657
621
|
return new LongIndexedImpl(index, value);
|
|
658
622
|
};
|
|
659
623
|
var Companion_instance_3;
|
|
660
624
|
function Companion_getInstance_3() {
|
|
661
|
-
if (Companion_instance_3 == null)
|
|
662
|
-
new Companion_3();
|
|
663
625
|
return Companion_instance_3;
|
|
664
626
|
}
|
|
665
627
|
function LongIndexed() {
|
|
666
628
|
}
|
|
667
629
|
function Companion_4() {
|
|
668
|
-
Companion_instance_4 = this;
|
|
669
630
|
}
|
|
670
|
-
protoOf(Companion_4).
|
|
631
|
+
protoOf(Companion_4).wr = function (value) {
|
|
671
632
|
return new Some(value);
|
|
672
633
|
};
|
|
673
|
-
protoOf(Companion_4).
|
|
634
|
+
protoOf(Companion_4).lp = function (value) {
|
|
674
635
|
var tmp;
|
|
675
636
|
if (value == null) {
|
|
676
|
-
tmp = this.
|
|
637
|
+
tmp = this.kp();
|
|
677
638
|
} else {
|
|
678
|
-
tmp = this.
|
|
639
|
+
tmp = this.wr(value);
|
|
679
640
|
}
|
|
680
641
|
return tmp;
|
|
681
642
|
};
|
|
682
|
-
protoOf(Companion_4).
|
|
643
|
+
protoOf(Companion_4).kp = function () {
|
|
683
644
|
return None_getInstance();
|
|
684
645
|
};
|
|
685
646
|
var Companion_instance_4;
|
|
686
647
|
function Companion_getInstance_4() {
|
|
687
|
-
if (Companion_instance_4 == null)
|
|
688
|
-
new Companion_4();
|
|
689
648
|
return Companion_instance_4;
|
|
690
649
|
}
|
|
691
650
|
function Some(value) {
|
|
692
651
|
Optional.call(this);
|
|
693
|
-
this.
|
|
652
|
+
this.fp_1 = value;
|
|
694
653
|
}
|
|
695
|
-
protoOf(Some).
|
|
696
|
-
return this.
|
|
654
|
+
protoOf(Some).q2 = function () {
|
|
655
|
+
return this.fp_1;
|
|
697
656
|
};
|
|
698
|
-
protoOf(Some).
|
|
657
|
+
protoOf(Some).xr = function () {
|
|
699
658
|
return true;
|
|
700
659
|
};
|
|
701
660
|
protoOf(Some).toString = function () {
|
|
702
|
-
return 'Some(' + this.
|
|
661
|
+
return 'Some(' + this.fp_1 + ')';
|
|
703
662
|
};
|
|
704
663
|
protoOf(Some).hashCode = function () {
|
|
705
|
-
return this.
|
|
664
|
+
return this.fp_1 == null ? 0 : hashCode(this.fp_1);
|
|
706
665
|
};
|
|
707
666
|
protoOf(Some).equals = function (other) {
|
|
708
667
|
if (this === other)
|
|
@@ -710,7 +669,7 @@
|
|
|
710
669
|
if (!(other instanceof Some))
|
|
711
670
|
return false;
|
|
712
671
|
var tmp0_other_with_cast = other instanceof Some ? other : THROW_CCE();
|
|
713
|
-
if (!equals(this.
|
|
672
|
+
if (!equals(this.fp_1, tmp0_other_with_cast.fp_1))
|
|
714
673
|
return false;
|
|
715
674
|
return true;
|
|
716
675
|
};
|
|
@@ -718,10 +677,10 @@
|
|
|
718
677
|
None_instance = this;
|
|
719
678
|
Optional.call(this);
|
|
720
679
|
}
|
|
721
|
-
protoOf(None).
|
|
680
|
+
protoOf(None).q2 = function () {
|
|
722
681
|
return null;
|
|
723
682
|
};
|
|
724
|
-
protoOf(None).
|
|
683
|
+
protoOf(None).xr = function () {
|
|
725
684
|
return false;
|
|
726
685
|
};
|
|
727
686
|
protoOf(None).toString = function () {
|
|
@@ -734,10 +693,9 @@
|
|
|
734
693
|
return None_instance;
|
|
735
694
|
}
|
|
736
695
|
function Optional() {
|
|
737
|
-
Companion_getInstance_4();
|
|
738
696
|
}
|
|
739
|
-
protoOf(Optional).
|
|
740
|
-
return !this.
|
|
697
|
+
protoOf(Optional).yr = function () {
|
|
698
|
+
return !this.xr();
|
|
741
699
|
};
|
|
742
700
|
function Taggable() {
|
|
743
701
|
}
|
|
@@ -749,11 +707,10 @@
|
|
|
749
707
|
return synchronizedOn(_this__u8e3s4, action);
|
|
750
708
|
}
|
|
751
709
|
function Companion_5() {
|
|
752
|
-
Companion_instance_5 = this;
|
|
753
710
|
}
|
|
754
|
-
protoOf(Companion_5).
|
|
711
|
+
protoOf(Companion_5).tp = function (source) {
|
|
755
712
|
var tmp;
|
|
756
|
-
if (source.
|
|
713
|
+
if (source.p()) {
|
|
757
714
|
tmp = new LazyCursor(source);
|
|
758
715
|
} else {
|
|
759
716
|
tmp = EmptyCursor_getInstance();
|
|
@@ -762,69 +719,66 @@
|
|
|
762
719
|
};
|
|
763
720
|
var Companion_instance_5;
|
|
764
721
|
function Companion_getInstance_5() {
|
|
765
|
-
if (Companion_instance_5 == null)
|
|
766
|
-
new Companion_5();
|
|
767
722
|
return Companion_instance_5;
|
|
768
723
|
}
|
|
769
724
|
function AbstractCursor$iterator$1(this$0) {
|
|
770
|
-
this.
|
|
725
|
+
this.as_1 = this$0;
|
|
771
726
|
}
|
|
772
|
-
protoOf(AbstractCursor$iterator$1).
|
|
773
|
-
return !this.
|
|
727
|
+
protoOf(AbstractCursor$iterator$1).p = function () {
|
|
728
|
+
return !this.as_1.sp();
|
|
774
729
|
};
|
|
775
|
-
protoOf(AbstractCursor$iterator$1).
|
|
776
|
-
var result = this.
|
|
777
|
-
this.
|
|
730
|
+
protoOf(AbstractCursor$iterator$1).r = function () {
|
|
731
|
+
var result = this.as_1.qp();
|
|
732
|
+
this.as_1 = this.as_1.pp();
|
|
778
733
|
return ensureNotNull(result);
|
|
779
734
|
};
|
|
780
735
|
function AbstractCursor() {
|
|
781
|
-
Companion_getInstance_5();
|
|
782
736
|
}
|
|
783
737
|
protoOf(AbstractCursor).toString = function () {
|
|
784
|
-
return this.
|
|
738
|
+
return this.sp() ? '[]' : !this.rp() ? '[' + this.qp() + ']' : '[' + this.qp() + ', ...]';
|
|
785
739
|
};
|
|
786
|
-
protoOf(AbstractCursor).
|
|
740
|
+
protoOf(AbstractCursor).o = function () {
|
|
787
741
|
return new AbstractCursor$iterator$1(this);
|
|
788
742
|
};
|
|
789
743
|
protoOf(AbstractCursor).iterator = function () {
|
|
790
|
-
return this.
|
|
744
|
+
return this.o();
|
|
791
745
|
};
|
|
792
|
-
protoOf(AbstractCursor).
|
|
746
|
+
protoOf(AbstractCursor).bs = function () {
|
|
793
747
|
return false;
|
|
794
748
|
};
|
|
795
|
-
protoOf(AbstractCursor).
|
|
749
|
+
protoOf(AbstractCursor).cs = function (mapper) {
|
|
796
750
|
return new MapperCursor(this, mapper);
|
|
797
751
|
};
|
|
798
752
|
protoOf(AbstractCursor).map = function (mapper) {
|
|
799
|
-
return this.
|
|
753
|
+
return this.cs(mapper);
|
|
800
754
|
};
|
|
801
755
|
function CachedImpl(generator) {
|
|
802
|
-
this.
|
|
803
|
-
this.
|
|
756
|
+
this.ds_1 = generator;
|
|
757
|
+
this.es_1 = Companion_instance_4.kp();
|
|
804
758
|
}
|
|
805
|
-
protoOf(CachedImpl).
|
|
806
|
-
return this.
|
|
759
|
+
protoOf(CachedImpl).hp = function () {
|
|
760
|
+
return this.es_1.xr();
|
|
807
761
|
};
|
|
808
|
-
protoOf(CachedImpl).
|
|
809
|
-
return this.
|
|
762
|
+
protoOf(CachedImpl).fs = function () {
|
|
763
|
+
return this.es_1.yr();
|
|
810
764
|
};
|
|
811
|
-
protoOf(CachedImpl).
|
|
812
|
-
this.
|
|
813
|
-
return ensureNotNull(this.
|
|
765
|
+
protoOf(CachedImpl).q2 = function () {
|
|
766
|
+
this.gs();
|
|
767
|
+
return ensureNotNull(this.es_1.q2());
|
|
814
768
|
};
|
|
815
|
-
protoOf(CachedImpl).
|
|
816
|
-
if (this.
|
|
817
|
-
this.
|
|
769
|
+
protoOf(CachedImpl).gs = function () {
|
|
770
|
+
if (this.fs()) {
|
|
771
|
+
this.es_1 = Companion_instance_4.wr(this.ds_1());
|
|
818
772
|
}
|
|
819
773
|
};
|
|
820
|
-
protoOf(CachedImpl).
|
|
821
|
-
this.
|
|
774
|
+
protoOf(CachedImpl).ip = function () {
|
|
775
|
+
this.es_1 = Companion_instance_4.kp();
|
|
822
776
|
};
|
|
823
777
|
protoOf(CachedImpl).toString = function () {
|
|
824
|
-
return 'CachedImpl(generator=' + this.
|
|
778
|
+
return 'CachedImpl(generator=' + this.ds_1 + ')';
|
|
825
779
|
};
|
|
826
780
|
protoOf(CachedImpl).hashCode = function () {
|
|
827
|
-
return hashCode(this.
|
|
781
|
+
return hashCode(this.ds_1);
|
|
828
782
|
};
|
|
829
783
|
protoOf(CachedImpl).equals = function (other) {
|
|
830
784
|
if (this === other)
|
|
@@ -832,90 +786,87 @@
|
|
|
832
786
|
if (!(other instanceof CachedImpl))
|
|
833
787
|
return false;
|
|
834
788
|
var tmp0_other_with_cast = other instanceof CachedImpl ? other : THROW_CCE();
|
|
835
|
-
if (!equals(this.
|
|
789
|
+
if (!equals(this.ds_1, tmp0_other_with_cast.ds_1))
|
|
836
790
|
return false;
|
|
837
791
|
return true;
|
|
838
792
|
};
|
|
839
793
|
function ConjunctionCursor$next$delegate$lambda(this$0) {
|
|
840
794
|
return function () {
|
|
841
|
-
return this$0.
|
|
795
|
+
return this$0.hs_1.rp() ? new ConjunctionCursor(this$0.hs_1.pp(), this$0.is_1) : this$0.is_1.bs() ? this$0.is_1.pp() : this$0.is_1;
|
|
842
796
|
};
|
|
843
797
|
}
|
|
844
798
|
function ConjunctionCursor(first, second) {
|
|
845
799
|
AbstractCursor.call(this);
|
|
846
|
-
this.
|
|
847
|
-
this.
|
|
800
|
+
this.hs_1 = first;
|
|
801
|
+
this.is_1 = second;
|
|
848
802
|
var tmp = this;
|
|
849
|
-
tmp.
|
|
803
|
+
tmp.js_1 = lazy(ConjunctionCursor$next$delegate$lambda(this));
|
|
850
804
|
}
|
|
851
|
-
protoOf(ConjunctionCursor).
|
|
852
|
-
return this.
|
|
805
|
+
protoOf(ConjunctionCursor).sp = function () {
|
|
806
|
+
return this.hs_1.sp() ? this.is_1.sp() : false;
|
|
853
807
|
};
|
|
854
|
-
protoOf(ConjunctionCursor).
|
|
855
|
-
var tmp$ret$0;
|
|
808
|
+
protoOf(ConjunctionCursor).pp = function () {
|
|
856
809
|
// Inline function 'kotlin.getValue' call
|
|
857
|
-
var
|
|
858
|
-
|
|
859
|
-
return
|
|
810
|
+
var this_0 = this.js_1;
|
|
811
|
+
next$factory();
|
|
812
|
+
return this_0.q2();
|
|
860
813
|
};
|
|
861
|
-
protoOf(ConjunctionCursor).
|
|
862
|
-
return this.
|
|
814
|
+
protoOf(ConjunctionCursor).qp = function () {
|
|
815
|
+
return this.hs_1.rp() ? this.hs_1.qp() : this.is_1.qp();
|
|
863
816
|
};
|
|
864
|
-
protoOf(ConjunctionCursor).
|
|
865
|
-
return this.
|
|
817
|
+
protoOf(ConjunctionCursor).rp = function () {
|
|
818
|
+
return this.hs_1.rp() ? true : this.is_1.rp();
|
|
866
819
|
};
|
|
867
820
|
protoOf(ConjunctionCursor).equals = function (other) {
|
|
868
821
|
if (this === other)
|
|
869
822
|
return true;
|
|
870
823
|
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
871
824
|
return false;
|
|
872
|
-
if (other instanceof ConjunctionCursor)
|
|
873
|
-
other;
|
|
874
|
-
else
|
|
825
|
+
if (!(other instanceof ConjunctionCursor))
|
|
875
826
|
THROW_CCE();
|
|
876
|
-
if (!equals(this.
|
|
827
|
+
if (!equals(this.hs_1, other.hs_1))
|
|
877
828
|
return false;
|
|
878
|
-
if (!equals(this.
|
|
829
|
+
if (!equals(this.is_1, other.is_1))
|
|
879
830
|
return false;
|
|
880
831
|
return true;
|
|
881
832
|
};
|
|
882
833
|
protoOf(ConjunctionCursor).hashCode = function () {
|
|
883
|
-
var result = hashCode(this.
|
|
884
|
-
result = imul(31, result) + hashCode(this.
|
|
834
|
+
var result = hashCode(this.hs_1);
|
|
835
|
+
result = imul(31, result) + hashCode(this.is_1) | 0;
|
|
885
836
|
return result;
|
|
886
837
|
};
|
|
887
838
|
function next$factory() {
|
|
888
839
|
return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
|
|
889
|
-
return receiver.
|
|
840
|
+
return receiver.pp();
|
|
890
841
|
}, null);
|
|
891
842
|
}
|
|
892
843
|
function EmptyCursor() {
|
|
893
844
|
EmptyCursor_instance = this;
|
|
894
845
|
AbstractCursor.call(this);
|
|
895
846
|
}
|
|
896
|
-
protoOf(EmptyCursor).
|
|
847
|
+
protoOf(EmptyCursor).pp = function () {
|
|
897
848
|
throw NoSuchElementException_init_$Create$();
|
|
898
849
|
};
|
|
899
|
-
protoOf(EmptyCursor).
|
|
850
|
+
protoOf(EmptyCursor).qp = function () {
|
|
900
851
|
return null;
|
|
901
852
|
};
|
|
902
|
-
protoOf(EmptyCursor).
|
|
853
|
+
protoOf(EmptyCursor).rp = function () {
|
|
903
854
|
return false;
|
|
904
855
|
};
|
|
905
|
-
protoOf(EmptyCursor).
|
|
856
|
+
protoOf(EmptyCursor).sp = function () {
|
|
906
857
|
return true;
|
|
907
858
|
};
|
|
908
859
|
protoOf(EmptyCursor).toString = function () {
|
|
909
860
|
return protoOf(AbstractCursor).toString.call(this);
|
|
910
861
|
};
|
|
911
|
-
protoOf(EmptyCursor).
|
|
862
|
+
protoOf(EmptyCursor).ks = function (mapper) {
|
|
912
863
|
return this;
|
|
913
864
|
};
|
|
914
865
|
protoOf(EmptyCursor).map = function (mapper) {
|
|
915
|
-
return this.
|
|
866
|
+
return this.ks(mapper);
|
|
916
867
|
};
|
|
917
|
-
protoOf(EmptyCursor).
|
|
918
|
-
return this.
|
|
868
|
+
protoOf(EmptyCursor).cs = function (mapper) {
|
|
869
|
+
return this.ks(mapper);
|
|
919
870
|
};
|
|
920
871
|
var EmptyCursor_instance;
|
|
921
872
|
function EmptyCursor_getInstance() {
|
|
@@ -924,27 +875,27 @@
|
|
|
924
875
|
return EmptyCursor_instance;
|
|
925
876
|
}
|
|
926
877
|
function IntIndexedImpl(index, value) {
|
|
927
|
-
this.
|
|
928
|
-
this.
|
|
878
|
+
this.ls_1 = index;
|
|
879
|
+
this.ms_1 = value;
|
|
929
880
|
}
|
|
930
|
-
protoOf(IntIndexedImpl).
|
|
931
|
-
return this.
|
|
881
|
+
protoOf(IntIndexedImpl).up = function () {
|
|
882
|
+
return this.ls_1;
|
|
932
883
|
};
|
|
933
|
-
protoOf(IntIndexedImpl).
|
|
934
|
-
return this.
|
|
884
|
+
protoOf(IntIndexedImpl).q2 = function () {
|
|
885
|
+
return this.ms_1;
|
|
935
886
|
};
|
|
936
|
-
protoOf(IntIndexedImpl).
|
|
937
|
-
return this.
|
|
887
|
+
protoOf(IntIndexedImpl).dd = function () {
|
|
888
|
+
return this.ls_1;
|
|
938
889
|
};
|
|
939
|
-
protoOf(IntIndexedImpl).
|
|
940
|
-
return this.
|
|
890
|
+
protoOf(IntIndexedImpl).ed = function () {
|
|
891
|
+
return this.ms_1;
|
|
941
892
|
};
|
|
942
893
|
protoOf(IntIndexedImpl).toString = function () {
|
|
943
|
-
return 'IntIndexedImpl(index=' + this.
|
|
894
|
+
return 'IntIndexedImpl(index=' + this.ls_1 + ', value=' + this.ms_1 + ')';
|
|
944
895
|
};
|
|
945
896
|
protoOf(IntIndexedImpl).hashCode = function () {
|
|
946
|
-
var result = this.
|
|
947
|
-
result = imul(result, 31) + (this.
|
|
897
|
+
var result = this.ls_1;
|
|
898
|
+
result = imul(result, 31) + (this.ms_1 == null ? 0 : hashCode(this.ms_1)) | 0;
|
|
948
899
|
return result;
|
|
949
900
|
};
|
|
950
901
|
protoOf(IntIndexedImpl).equals = function (other) {
|
|
@@ -953,59 +904,58 @@
|
|
|
953
904
|
if (!(other instanceof IntIndexedImpl))
|
|
954
905
|
return false;
|
|
955
906
|
var tmp0_other_with_cast = other instanceof IntIndexedImpl ? other : THROW_CCE();
|
|
956
|
-
if (!(this.
|
|
907
|
+
if (!(this.ls_1 === tmp0_other_with_cast.ls_1))
|
|
957
908
|
return false;
|
|
958
|
-
if (!equals(this.
|
|
909
|
+
if (!equals(this.ms_1, tmp0_other_with_cast.ms_1))
|
|
959
910
|
return false;
|
|
960
911
|
return true;
|
|
961
912
|
};
|
|
962
|
-
protoOf(IntIndexedImpl).
|
|
963
|
-
return this.
|
|
913
|
+
protoOf(IntIndexedImpl).r9 = function (other) {
|
|
914
|
+
return this.wp((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
|
|
964
915
|
};
|
|
965
916
|
function _get_wrapped__s2ip8($this) {
|
|
966
|
-
var tmp$ret$0;
|
|
967
917
|
// Inline function 'kotlin.getValue' call
|
|
968
|
-
var
|
|
969
|
-
|
|
970
|
-
return
|
|
918
|
+
var this_0 = $this.os_1;
|
|
919
|
+
wrapped$factory();
|
|
920
|
+
return this_0.q2();
|
|
971
921
|
}
|
|
972
922
|
function LazyCursor$wrapped$delegate$lambda(this$0) {
|
|
973
923
|
return function () {
|
|
974
|
-
return new NonLastCursor(this$0.
|
|
924
|
+
return new NonLastCursor(this$0.ns_1);
|
|
975
925
|
};
|
|
976
926
|
}
|
|
977
927
|
function LazyCursor(delegate) {
|
|
978
928
|
AbstractCursor.call(this);
|
|
979
|
-
this.
|
|
929
|
+
this.ns_1 = delegate;
|
|
980
930
|
var tmp = this;
|
|
981
|
-
tmp.
|
|
931
|
+
tmp.os_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
|
|
982
932
|
}
|
|
983
|
-
protoOf(LazyCursor).
|
|
933
|
+
protoOf(LazyCursor).bs = function () {
|
|
984
934
|
return true;
|
|
985
935
|
};
|
|
986
|
-
protoOf(LazyCursor).
|
|
987
|
-
return _get_wrapped__s2ip8(this).
|
|
936
|
+
protoOf(LazyCursor).pp = function () {
|
|
937
|
+
return _get_wrapped__s2ip8(this).pp();
|
|
988
938
|
};
|
|
989
|
-
protoOf(LazyCursor).
|
|
990
|
-
return _get_wrapped__s2ip8(this).
|
|
939
|
+
protoOf(LazyCursor).qp = function () {
|
|
940
|
+
return _get_wrapped__s2ip8(this).qp();
|
|
991
941
|
};
|
|
992
|
-
protoOf(LazyCursor).
|
|
942
|
+
protoOf(LazyCursor).rp = function () {
|
|
993
943
|
return true;
|
|
994
944
|
};
|
|
995
|
-
protoOf(LazyCursor).
|
|
945
|
+
protoOf(LazyCursor).sp = function () {
|
|
996
946
|
return false;
|
|
997
947
|
};
|
|
998
948
|
protoOf(LazyCursor).toString = function () {
|
|
999
949
|
return protoOf(AbstractCursor).toString.call(this);
|
|
1000
950
|
};
|
|
1001
|
-
protoOf(LazyCursor).
|
|
1002
|
-
return _get_wrapped__s2ip8(this).
|
|
951
|
+
protoOf(LazyCursor).o = function () {
|
|
952
|
+
return _get_wrapped__s2ip8(this).o();
|
|
1003
953
|
};
|
|
1004
954
|
protoOf(LazyCursor).iterator = function () {
|
|
1005
|
-
return this.
|
|
955
|
+
return this.o();
|
|
1006
956
|
};
|
|
1007
957
|
protoOf(LazyCursor).hashCode = function () {
|
|
1008
|
-
return hashCode(this.
|
|
958
|
+
return hashCode(this.ns_1);
|
|
1009
959
|
};
|
|
1010
960
|
protoOf(LazyCursor).equals = function (other) {
|
|
1011
961
|
if (this === other)
|
|
@@ -1013,7 +963,7 @@
|
|
|
1013
963
|
if (!(other instanceof LazyCursor))
|
|
1014
964
|
return false;
|
|
1015
965
|
var tmp0_other_with_cast = other instanceof LazyCursor ? other : THROW_CCE();
|
|
1016
|
-
if (!equals(this.
|
|
966
|
+
if (!equals(this.ns_1, tmp0_other_with_cast.ns_1))
|
|
1017
967
|
return false;
|
|
1018
968
|
return true;
|
|
1019
969
|
};
|
|
@@ -1023,27 +973,27 @@
|
|
|
1023
973
|
}, null);
|
|
1024
974
|
}
|
|
1025
975
|
function LongIndexedImpl(index, value) {
|
|
1026
|
-
this.
|
|
1027
|
-
this.
|
|
976
|
+
this.ps_1 = index;
|
|
977
|
+
this.qs_1 = value;
|
|
1028
978
|
}
|
|
1029
|
-
protoOf(LongIndexedImpl).
|
|
1030
|
-
return this.
|
|
979
|
+
protoOf(LongIndexedImpl).up = function () {
|
|
980
|
+
return this.ps_1;
|
|
1031
981
|
};
|
|
1032
|
-
protoOf(LongIndexedImpl).
|
|
1033
|
-
return this.
|
|
982
|
+
protoOf(LongIndexedImpl).q2 = function () {
|
|
983
|
+
return this.qs_1;
|
|
1034
984
|
};
|
|
1035
|
-
protoOf(LongIndexedImpl).
|
|
1036
|
-
return this.
|
|
985
|
+
protoOf(LongIndexedImpl).vr = function (other) {
|
|
986
|
+
return this.ps_1.ja(other.up()).z8();
|
|
1037
987
|
};
|
|
1038
|
-
protoOf(LongIndexedImpl).
|
|
1039
|
-
return this.
|
|
988
|
+
protoOf(LongIndexedImpl).r9 = function (other) {
|
|
989
|
+
return this.vr((!(other == null) ? isInterface(other, LongIndexed) : false) ? other : THROW_CCE());
|
|
1040
990
|
};
|
|
1041
991
|
protoOf(LongIndexedImpl).toString = function () {
|
|
1042
|
-
return 'LongIndexedImpl(index=' + toString(
|
|
992
|
+
return 'LongIndexedImpl(index=' + this.ps_1.toString() + ', value=' + this.qs_1 + ')';
|
|
1043
993
|
};
|
|
1044
994
|
protoOf(LongIndexedImpl).hashCode = function () {
|
|
1045
|
-
var result = this.
|
|
1046
|
-
result = imul(result, 31) + (this.
|
|
995
|
+
var result = this.ps_1.hashCode();
|
|
996
|
+
result = imul(result, 31) + (this.qs_1 == null ? 0 : hashCode(this.qs_1)) | 0;
|
|
1047
997
|
return result;
|
|
1048
998
|
};
|
|
1049
999
|
protoOf(LongIndexedImpl).equals = function (other) {
|
|
@@ -1052,38 +1002,37 @@
|
|
|
1052
1002
|
if (!(other instanceof LongIndexedImpl))
|
|
1053
1003
|
return false;
|
|
1054
1004
|
var tmp0_other_with_cast = other instanceof LongIndexedImpl ? other : THROW_CCE();
|
|
1055
|
-
if (!this.
|
|
1005
|
+
if (!this.ps_1.equals(tmp0_other_with_cast.ps_1))
|
|
1056
1006
|
return false;
|
|
1057
|
-
if (!equals(this.
|
|
1007
|
+
if (!equals(this.qs_1, tmp0_other_with_cast.qs_1))
|
|
1058
1008
|
return false;
|
|
1059
1009
|
return true;
|
|
1060
1010
|
};
|
|
1061
1011
|
function MapperCursor$current$delegate$lambda(this$0) {
|
|
1062
1012
|
return function () {
|
|
1063
|
-
return this$0.
|
|
1013
|
+
return this$0.ss_1(ensureNotNull(this$0.rs_1.qp()));
|
|
1064
1014
|
};
|
|
1065
1015
|
}
|
|
1066
1016
|
function MapperCursor(wrapped, mapper) {
|
|
1067
1017
|
AbstractCursor.call(this);
|
|
1068
|
-
this.
|
|
1069
|
-
this.
|
|
1018
|
+
this.rs_1 = wrapped;
|
|
1019
|
+
this.ss_1 = mapper;
|
|
1070
1020
|
var tmp = this;
|
|
1071
|
-
tmp.
|
|
1021
|
+
tmp.ts_1 = lazy(MapperCursor$current$delegate$lambda(this));
|
|
1072
1022
|
}
|
|
1073
|
-
protoOf(MapperCursor).
|
|
1074
|
-
return this.
|
|
1023
|
+
protoOf(MapperCursor).pp = function () {
|
|
1024
|
+
return this.rs_1.pp().cs(this.ss_1);
|
|
1075
1025
|
};
|
|
1076
|
-
protoOf(MapperCursor).
|
|
1077
|
-
var tmp$ret$0;
|
|
1026
|
+
protoOf(MapperCursor).qp = function () {
|
|
1078
1027
|
// Inline function 'kotlin.getValue' call
|
|
1079
|
-
var
|
|
1080
|
-
|
|
1081
|
-
return
|
|
1028
|
+
var this_0 = this.ts_1;
|
|
1029
|
+
current$factory();
|
|
1030
|
+
return this_0.q2();
|
|
1082
1031
|
};
|
|
1083
|
-
protoOf(MapperCursor).
|
|
1032
|
+
protoOf(MapperCursor).rp = function () {
|
|
1084
1033
|
return true;
|
|
1085
1034
|
};
|
|
1086
|
-
protoOf(MapperCursor).
|
|
1035
|
+
protoOf(MapperCursor).sp = function () {
|
|
1087
1036
|
return false;
|
|
1088
1037
|
};
|
|
1089
1038
|
protoOf(MapperCursor).equals = function (other) {
|
|
@@ -1091,68 +1040,63 @@
|
|
|
1091
1040
|
return true;
|
|
1092
1041
|
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
1093
1042
|
return false;
|
|
1094
|
-
if (other instanceof MapperCursor)
|
|
1095
|
-
other;
|
|
1096
|
-
else
|
|
1043
|
+
if (!(other instanceof MapperCursor))
|
|
1097
1044
|
THROW_CCE();
|
|
1098
|
-
if (!equals(this.
|
|
1045
|
+
if (!equals(this.rs_1, other.rs_1))
|
|
1099
1046
|
return false;
|
|
1100
|
-
if (!equals(this.
|
|
1047
|
+
if (!equals(this.ss_1, other.ss_1))
|
|
1101
1048
|
return false;
|
|
1102
1049
|
return true;
|
|
1103
1050
|
};
|
|
1104
1051
|
protoOf(MapperCursor).hashCode = function () {
|
|
1105
|
-
var result = hashCode(this.
|
|
1106
|
-
result = imul(31, result) + hashCode(this.
|
|
1052
|
+
var result = hashCode(this.rs_1);
|
|
1053
|
+
result = imul(31, result) + hashCode(this.ss_1) | 0;
|
|
1107
1054
|
return result;
|
|
1108
1055
|
};
|
|
1109
|
-
protoOf(MapperCursor).
|
|
1110
|
-
return new ValueCursor(mapper(this.
|
|
1056
|
+
protoOf(MapperCursor).us = function (mapper) {
|
|
1057
|
+
return new ValueCursor(mapper(this.qp()), this.pp().cs(mapper));
|
|
1111
1058
|
};
|
|
1112
1059
|
protoOf(MapperCursor).map = function (mapper) {
|
|
1113
|
-
return this.
|
|
1060
|
+
return this.us(mapper);
|
|
1114
1061
|
};
|
|
1115
|
-
protoOf(MapperCursor).
|
|
1116
|
-
return this.
|
|
1062
|
+
protoOf(MapperCursor).cs = function (mapper) {
|
|
1063
|
+
return this.us(mapper);
|
|
1117
1064
|
};
|
|
1118
1065
|
function current$factory() {
|
|
1119
1066
|
return getPropertyCallableRef('current', 1, KProperty1, function (receiver) {
|
|
1120
|
-
return receiver.
|
|
1067
|
+
return receiver.qp();
|
|
1121
1068
|
}, null);
|
|
1122
1069
|
}
|
|
1123
1070
|
function NonLastCursor$next$delegate$lambda($source, this$0) {
|
|
1124
1071
|
return function () {
|
|
1125
|
-
var tmp$ret$0;
|
|
1126
1072
|
// Inline function 'kotlin.also' call
|
|
1127
|
-
var
|
|
1073
|
+
var this_0 = Companion_instance_5.tp($source);
|
|
1128
1074
|
// Inline function 'kotlin.contracts.contract' call
|
|
1129
1075
|
// Inline function 'it.unibo.tuprolog.utils.impl.NonLastCursor.next$delegate.<anonymous>.<anonymous>' call
|
|
1130
|
-
this$0.
|
|
1131
|
-
|
|
1132
|
-
return tmp$ret$0;
|
|
1076
|
+
this$0.vs_1 = null;
|
|
1077
|
+
return this_0;
|
|
1133
1078
|
};
|
|
1134
1079
|
}
|
|
1135
1080
|
function NonLastCursor(source) {
|
|
1136
1081
|
AbstractCursor.call(this);
|
|
1137
|
-
this.
|
|
1082
|
+
this.vs_1 = source;
|
|
1138
1083
|
var tmp = this;
|
|
1139
|
-
tmp.
|
|
1140
|
-
this.
|
|
1084
|
+
tmp.ws_1 = lazy(NonLastCursor$next$delegate$lambda(source, this));
|
|
1085
|
+
this.xs_1 = source.r();
|
|
1141
1086
|
}
|
|
1142
|
-
protoOf(NonLastCursor).
|
|
1143
|
-
var tmp$ret$0;
|
|
1087
|
+
protoOf(NonLastCursor).pp = function () {
|
|
1144
1088
|
// Inline function 'kotlin.getValue' call
|
|
1145
|
-
var
|
|
1146
|
-
|
|
1147
|
-
return
|
|
1089
|
+
var this_0 = this.ws_1;
|
|
1090
|
+
next$factory_0();
|
|
1091
|
+
return this_0.q2();
|
|
1148
1092
|
};
|
|
1149
|
-
protoOf(NonLastCursor).
|
|
1150
|
-
return this.
|
|
1093
|
+
protoOf(NonLastCursor).qp = function () {
|
|
1094
|
+
return this.xs_1;
|
|
1151
1095
|
};
|
|
1152
|
-
protoOf(NonLastCursor).
|
|
1096
|
+
protoOf(NonLastCursor).rp = function () {
|
|
1153
1097
|
return true;
|
|
1154
1098
|
};
|
|
1155
|
-
protoOf(NonLastCursor).
|
|
1099
|
+
protoOf(NonLastCursor).sp = function () {
|
|
1156
1100
|
return false;
|
|
1157
1101
|
};
|
|
1158
1102
|
protoOf(NonLastCursor).toString = function () {
|
|
@@ -1160,85 +1104,80 @@
|
|
|
1160
1104
|
};
|
|
1161
1105
|
function next$factory_0() {
|
|
1162
1106
|
return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
|
|
1163
|
-
return receiver.
|
|
1107
|
+
return receiver.pp();
|
|
1164
1108
|
}, null);
|
|
1165
1109
|
}
|
|
1166
1110
|
function removeLeastRecent($this) {
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
var
|
|
1170
|
-
|
|
1171
|
-
var
|
|
1172
|
-
|
|
1173
|
-
var
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
tmp$ret$1 = new Pair(entry.n2(), entry.p2());
|
|
1177
|
-
return tmp.cr(tmp$ret$1);
|
|
1111
|
+
// Inline function 'kotlin.collections.asIterable' call
|
|
1112
|
+
var tmp$ret$0 = $this.zs_1.o2();
|
|
1113
|
+
var tmp0_container = first(tmp$ret$0);
|
|
1114
|
+
// Inline function 'kotlin.collections.component1' call
|
|
1115
|
+
var key = tmp0_container.p2();
|
|
1116
|
+
// Inline function 'kotlin.collections.component2' call
|
|
1117
|
+
var value = tmp0_container.q2();
|
|
1118
|
+
$this.zs_1.n2(key);
|
|
1119
|
+
return Companion_instance_4.wr(to(key, value));
|
|
1178
1120
|
}
|
|
1179
1121
|
function removeLeastRecentIfNecessary($this) {
|
|
1180
1122
|
var tmp;
|
|
1181
|
-
if ($this.
|
|
1123
|
+
if ($this.zs_1.u() >= $this.ys_1) {
|
|
1182
1124
|
tmp = removeLeastRecent($this);
|
|
1183
1125
|
} else {
|
|
1184
|
-
|
|
1126
|
+
tmp = Companion_instance_4.kp();
|
|
1185
1127
|
}
|
|
1186
1128
|
return tmp;
|
|
1187
1129
|
}
|
|
1188
1130
|
function SimpleLRUCache$set$lambda(this$0, $key, $value) {
|
|
1189
1131
|
return function () {
|
|
1190
1132
|
var evicted = removeLeastRecentIfNecessary(this$0);
|
|
1191
|
-
var
|
|
1192
|
-
|
|
1133
|
+
var this_0 = this$0.zs_1;
|
|
1134
|
+
var key = $key;
|
|
1135
|
+
var value = $value;
|
|
1136
|
+
this_0.m2(key, value);
|
|
1193
1137
|
return evicted;
|
|
1194
1138
|
};
|
|
1195
1139
|
}
|
|
1196
1140
|
function SimpleLRUCache$get$lambda(this$0, $key) {
|
|
1197
1141
|
return function () {
|
|
1198
1142
|
var tmp;
|
|
1199
|
-
if (this$0.
|
|
1200
|
-
tmp =
|
|
1143
|
+
if (this$0.zs_1.t2($key)) {
|
|
1144
|
+
tmp = Companion_instance_4.lp(this$0.zs_1.w2($key));
|
|
1201
1145
|
} else {
|
|
1202
|
-
tmp =
|
|
1146
|
+
tmp = Companion_instance_4.kp();
|
|
1203
1147
|
}
|
|
1204
1148
|
return tmp;
|
|
1205
1149
|
};
|
|
1206
1150
|
}
|
|
1207
1151
|
function SimpleLRUCache$toSequence$lambda$lambda(it) {
|
|
1208
|
-
var tmp$ret$0;
|
|
1209
1152
|
// Inline function 'kotlin.collections.toPair' call
|
|
1210
|
-
|
|
1211
|
-
return tmp$ret$0;
|
|
1153
|
+
return new Pair(it.p2(), it.q2());
|
|
1212
1154
|
}
|
|
1213
1155
|
function SimpleLRUCache$toSequence$lambda(this$0) {
|
|
1214
1156
|
return function () {
|
|
1215
|
-
var tmp = asSequence(this$0.
|
|
1157
|
+
var tmp = asSequence(this$0.zs_1.o2());
|
|
1216
1158
|
return buffered(map(tmp, SimpleLRUCache$toSequence$lambda$lambda));
|
|
1217
1159
|
};
|
|
1218
1160
|
}
|
|
1219
1161
|
function SimpleLRUCache$toString$lambda(it) {
|
|
1220
|
-
return '' + it.
|
|
1162
|
+
return '' + it.md_1 + ' = ' + it.nd_1;
|
|
1221
1163
|
}
|
|
1222
1164
|
function SimpleLRUCache(capacity) {
|
|
1223
|
-
this.
|
|
1165
|
+
this.ys_1 = capacity;
|
|
1224
1166
|
// Inline function 'kotlin.require' call
|
|
1225
|
-
var tmp0_require = this.fs_1 > 0;
|
|
1226
1167
|
// Inline function 'kotlin.contracts.contract' call
|
|
1227
1168
|
// Inline function 'kotlin.require' call
|
|
1228
1169
|
// Inline function 'kotlin.contracts.contract' call
|
|
1229
|
-
if (!
|
|
1230
|
-
var tmp$ret$0;
|
|
1170
|
+
if (!(this.ys_1 > 0)) {
|
|
1231
1171
|
// Inline function 'kotlin.require.<anonymous>' call
|
|
1232
|
-
|
|
1233
|
-
var message = tmp$ret$0;
|
|
1172
|
+
var message = 'Failed requirement.';
|
|
1234
1173
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
1235
1174
|
}
|
|
1236
|
-
this.
|
|
1175
|
+
this.zs_1 = LinkedHashMap_init_$Create$();
|
|
1237
1176
|
}
|
|
1238
|
-
protoOf(SimpleLRUCache).
|
|
1177
|
+
protoOf(SimpleLRUCache).dp = function (key, value) {
|
|
1239
1178
|
return synchronizedOnSelf(this, SimpleLRUCache$set$lambda(this, key, value));
|
|
1240
1179
|
};
|
|
1241
|
-
protoOf(SimpleLRUCache).
|
|
1180
|
+
protoOf(SimpleLRUCache).w2 = function (key) {
|
|
1242
1181
|
return synchronizedOnSelf(this, SimpleLRUCache$get$lambda(this, key));
|
|
1243
1182
|
};
|
|
1244
1183
|
protoOf(SimpleLRUCache).equals = function (other) {
|
|
@@ -1246,43 +1185,41 @@
|
|
|
1246
1185
|
return true;
|
|
1247
1186
|
if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
|
|
1248
1187
|
return false;
|
|
1249
|
-
if (other instanceof SimpleLRUCache)
|
|
1250
|
-
other;
|
|
1251
|
-
else
|
|
1188
|
+
if (!(other instanceof SimpleLRUCache))
|
|
1252
1189
|
THROW_CCE();
|
|
1253
|
-
if (!(this.
|
|
1190
|
+
if (!(this.ys_1 === other.ys_1))
|
|
1254
1191
|
return false;
|
|
1255
|
-
if (!this.
|
|
1192
|
+
if (!this.zs_1.equals(other.zs_1))
|
|
1256
1193
|
return false;
|
|
1257
1194
|
return true;
|
|
1258
1195
|
};
|
|
1259
1196
|
protoOf(SimpleLRUCache).hashCode = function () {
|
|
1260
|
-
var result = this.
|
|
1261
|
-
result = imul(31, result) + this.
|
|
1197
|
+
var result = this.ys_1;
|
|
1198
|
+
result = imul(31, result) + this.zs_1.hashCode() | 0;
|
|
1262
1199
|
return result;
|
|
1263
1200
|
};
|
|
1264
|
-
protoOf(SimpleLRUCache).
|
|
1201
|
+
protoOf(SimpleLRUCache).at = function () {
|
|
1265
1202
|
return synchronizedOnSelf(this, SimpleLRUCache$toSequence$lambda(this));
|
|
1266
1203
|
};
|
|
1267
1204
|
protoOf(SimpleLRUCache).toString = function () {
|
|
1268
|
-
var tmp = this.
|
|
1205
|
+
var tmp = this.at();
|
|
1269
1206
|
return 'SimpleLRUCache(' + joinToString(map(tmp, SimpleLRUCache$toString$lambda), ', ') + ')';
|
|
1270
1207
|
};
|
|
1271
1208
|
function ValueCursor(current, next) {
|
|
1272
1209
|
AbstractCursor.call(this);
|
|
1273
|
-
this.
|
|
1274
|
-
this.
|
|
1210
|
+
this.bt_1 = current;
|
|
1211
|
+
this.ct_1 = next;
|
|
1275
1212
|
}
|
|
1276
|
-
protoOf(ValueCursor).
|
|
1277
|
-
return this.
|
|
1213
|
+
protoOf(ValueCursor).qp = function () {
|
|
1214
|
+
return this.bt_1;
|
|
1278
1215
|
};
|
|
1279
|
-
protoOf(ValueCursor).
|
|
1280
|
-
return this.
|
|
1216
|
+
protoOf(ValueCursor).pp = function () {
|
|
1217
|
+
return this.ct_1;
|
|
1281
1218
|
};
|
|
1282
|
-
protoOf(ValueCursor).
|
|
1219
|
+
protoOf(ValueCursor).rp = function () {
|
|
1283
1220
|
return true;
|
|
1284
1221
|
};
|
|
1285
|
-
protoOf(ValueCursor).
|
|
1222
|
+
protoOf(ValueCursor).sp = function () {
|
|
1286
1223
|
return false;
|
|
1287
1224
|
};
|
|
1288
1225
|
function dequeOf(items) {
|
|
@@ -1292,34 +1229,30 @@
|
|
|
1292
1229
|
return mutableListOf(items.slice());
|
|
1293
1230
|
}
|
|
1294
1231
|
function dequeOf_1(items) {
|
|
1295
|
-
var tmp$ret$1;
|
|
1296
1232
|
// Inline function 'kotlin.also' call
|
|
1297
|
-
var tmp$ret$0;
|
|
1298
1233
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1299
|
-
|
|
1300
|
-
var tmp0_also = tmp$ret$0;
|
|
1234
|
+
var this_0 = ArrayList_init_$Create$_0();
|
|
1301
1235
|
// Inline function 'kotlin.contracts.contract' call
|
|
1302
1236
|
// Inline function 'it.unibo.tuprolog.utils.dequeOf.<anonymous>' call
|
|
1303
|
-
addAll(
|
|
1304
|
-
|
|
1305
|
-
return tmp$ret$1;
|
|
1237
|
+
addAll(this_0, items);
|
|
1238
|
+
return this_0;
|
|
1306
1239
|
}
|
|
1307
1240
|
function takeFirst(_this__u8e3s4) {
|
|
1308
|
-
if (_this__u8e3s4.
|
|
1241
|
+
if (_this__u8e3s4.w())
|
|
1309
1242
|
return null;
|
|
1310
|
-
var first = _this__u8e3s4.
|
|
1311
|
-
_this__u8e3s4.
|
|
1243
|
+
var first = _this__u8e3s4.a1(0);
|
|
1244
|
+
_this__u8e3s4.c1(0);
|
|
1312
1245
|
return first;
|
|
1313
1246
|
}
|
|
1314
1247
|
function addFirst(_this__u8e3s4, item) {
|
|
1315
|
-
_this__u8e3s4.
|
|
1248
|
+
_this__u8e3s4.n1(0, item);
|
|
1316
1249
|
}
|
|
1317
1250
|
function addFirst_0(_this__u8e3s4, items) {
|
|
1318
|
-
var i = _this__u8e3s4.
|
|
1319
|
-
var tmp0_iterator = items.
|
|
1320
|
-
while (tmp0_iterator.
|
|
1321
|
-
var item = tmp0_iterator.
|
|
1322
|
-
i.
|
|
1251
|
+
var i = _this__u8e3s4.y1();
|
|
1252
|
+
var tmp0_iterator = items.o();
|
|
1253
|
+
while (tmp0_iterator.p()) {
|
|
1254
|
+
var item = tmp0_iterator.r();
|
|
1255
|
+
i.o1(item);
|
|
1323
1256
|
}
|
|
1324
1257
|
}
|
|
1325
1258
|
function synchronizedOn(obj, action) {
|
|
@@ -1332,28 +1265,25 @@
|
|
|
1332
1265
|
//region block: post-declaration
|
|
1333
1266
|
protoOf(AbstractCursor).asIterable = asIterable_1;
|
|
1334
1267
|
protoOf(AbstractCursor).asSequence = asSequence_0;
|
|
1335
|
-
protoOf(CachedImpl).
|
|
1336
|
-
protoOf(
|
|
1337
|
-
protoOf(
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
protoOf(SimpleLRUCache).lo = getOrSet;
|
|
1348
|
-
protoOf(ValueCursor).asIterable = asIterable_1;
|
|
1349
|
-
protoOf(ValueCursor).asSequence = asSequence_0;
|
|
1268
|
+
protoOf(CachedImpl).jp = ifValid;
|
|
1269
|
+
protoOf(IntIndexedImpl).wp = compareTo;
|
|
1270
|
+
protoOf(SimpleLRUCache).ep = getOrSet;
|
|
1271
|
+
//endregion
|
|
1272
|
+
//region block: init
|
|
1273
|
+
Companion_instance = new Companion();
|
|
1274
|
+
Companion_instance_0 = new Companion_0();
|
|
1275
|
+
Companion_instance_1 = new Companion_1();
|
|
1276
|
+
Companion_instance_2 = new Companion_2();
|
|
1277
|
+
Companion_instance_3 = new Companion_3();
|
|
1278
|
+
Companion_instance_4 = new Companion_4();
|
|
1279
|
+
Companion_instance_5 = new Companion_5();
|
|
1350
1280
|
//endregion
|
|
1351
1281
|
//region block: exports
|
|
1352
1282
|
_.$_$ = _.$_$ || {};
|
|
1353
|
-
_.$_$.a =
|
|
1354
|
-
_.$_$.b =
|
|
1355
|
-
_.$_$.c =
|
|
1356
|
-
_.$_$.d =
|
|
1283
|
+
_.$_$.a = Companion_instance;
|
|
1284
|
+
_.$_$.b = Companion_instance_0;
|
|
1285
|
+
_.$_$.c = Companion_instance_1;
|
|
1286
|
+
_.$_$.d = Companion_instance_3;
|
|
1357
1287
|
_.$_$.e = castTo;
|
|
1358
1288
|
_.$_$.f = Castable;
|
|
1359
1289
|
_.$_$.g = compareTo_0;
|