@tuprolog/arg2p-causality-solver 0.10.2 → 0.11.2

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