@tuprolog/2p-full 0.31.5-dev0f → 0.31.5-dev0n

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.
Files changed (64) hide show
  1. package/2p-bdd.js +234 -229
  2. package/2p-bdd.js.map +1 -1
  3. package/2p-core.js +5576 -6196
  4. package/2p-core.js.map +1 -1
  5. package/2p-datalog.js +9 -2
  6. package/2p-datalog.js.map +1 -1
  7. package/2p-dsl-core.js +9 -2
  8. package/2p-dsl-core.js.map +1 -1
  9. package/2p-dsl-solve.js +9 -2
  10. package/2p-dsl-solve.js.map +1 -1
  11. package/2p-dsl-theory.js +9 -2
  12. package/2p-dsl-theory.js.map +1 -1
  13. package/2p-dsl-unify.js +9 -2
  14. package/2p-dsl-unify.js.map +1 -1
  15. package/2p-full.js +26 -3
  16. package/2p-full.js.map +1 -1
  17. package/2p-io-lib.js +903 -926
  18. package/2p-io-lib.js.map +1 -1
  19. package/2p-oop-lib.js +1298 -1327
  20. package/2p-oop-lib.js.map +1 -1
  21. package/2p-parser-core.js +352 -356
  22. package/2p-parser-core.js.map +1 -1
  23. package/2p-parser-js.js +14 -3
  24. package/2p-parser-js.js.map +1 -1
  25. package/2p-parser-theory.js +66 -41
  26. package/2p-parser-theory.js.map +1 -1
  27. package/2p-repl.js +175 -173
  28. package/2p-repl.js.map +1 -1
  29. package/2p-serialize-core.js +9 -2
  30. package/2p-serialize-core.js.map +1 -1
  31. package/2p-serialize-theory.js +9 -2
  32. package/2p-serialize-theory.js.map +1 -1
  33. package/2p-solve-classic.js +1405 -1677
  34. package/2p-solve-classic.js.map +1 -1
  35. package/2p-solve-concurrent.js +9 -2
  36. package/2p-solve-concurrent.js.map +1 -1
  37. package/2p-solve-plp.js +19 -5
  38. package/2p-solve-plp.js.map +1 -1
  39. package/2p-solve-problog.js +1845 -1880
  40. package/2p-solve-problog.js.map +1 -1
  41. package/2p-solve-streams.js +1239 -1331
  42. package/2p-solve-streams.js.map +1 -1
  43. package/2p-solve.js +5342 -5796
  44. package/2p-solve.js.map +1 -1
  45. package/2p-theory.js +1734 -1730
  46. package/2p-theory.js.map +1 -1
  47. package/2p-unify.js +364 -365
  48. package/2p-unify.js.map +1 -1
  49. package/2p-utils.js +548 -510
  50. package/2p-utils.js.map +1 -1
  51. package/88b0986a7186d029-atomicfu-js-ir.js +9 -2
  52. package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
  53. package/clikt-clikt-js-ir.js +2078 -2260
  54. package/clikt-clikt-js-ir.js.map +1 -1
  55. package/kotlin-kotlin-stdlib-js-ir.js +2566 -2676
  56. package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
  57. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js +9 -2
  58. package/kotlin-kotlinx-atomicfu-runtime-js-ir.js.map +1 -1
  59. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +9 -2
  60. package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
  61. package/kt-math.js +3666 -3302
  62. package/kt-math.js.map +1 -1
  63. package/package.json +56 -2
  64. package/2p-full.d.ts +0 -270
package/2p-utils.js CHANGED
@@ -1,102 +1,118 @@
1
- (function (_, kotlin_kotlin, kotlin_kt_math) {
1
+ (function (root, factory) {
2
+ if (typeof define === 'function' && define.amd)
3
+ define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './kt-math.js'], factory);
4
+ else if (typeof exports === 'object')
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kt-math.js'));
6
+ else {
7
+ if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
8
+ throw new Error("Error loading module '2p-utils'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to '2p-utils'.");
9
+ }
10
+ if (typeof this['kt-math'] === 'undefined') {
11
+ throw new Error("Error loading module '2p-utils'. Its dependency 'kt-math' was not found. Please, check whether 'kt-math' is loaded prior to '2p-utils'.");
12
+ }
13
+ root['2p-utils'] = factory(typeof this['2p-utils'] === 'undefined' ? {} : this['2p-utils'], this['kotlin-kotlin-stdlib-js-ir'], this['kt-math']);
14
+ }
15
+ }(this, function (_, kotlin_kotlin, kotlin_io_github_gciatto_kt_math) {
2
16
  'use strict';
3
17
  //region block: imports
4
18
  var imul = Math.imul;
5
- var objectMeta = kotlin_kotlin.$_$.i7;
6
- var setMetadataFor = kotlin_kotlin.$_$.j7;
7
- var Unit_getInstance = kotlin_kotlin.$_$.r2;
8
- var interfaceMeta = kotlin_kotlin.$_$.u6;
9
- var THROW_CCE = kotlin_kotlin.$_$.sb;
10
- var isInterface = kotlin_kotlin.$_$.y6;
11
- var classMeta = kotlin_kotlin.$_$.m6;
12
- var Sequence = kotlin_kotlin.$_$.f8;
13
- var arrayIterator = kotlin_kotlin.$_$.f6;
14
- var Comparable = kotlin_kotlin.$_$.gb;
15
- var sequence = kotlin_kotlin.$_$.j9;
16
- var hashCode = kotlin_kotlin.$_$.t6;
17
- var asIterable = kotlin_kotlin.$_$.h8;
18
- var toList = kotlin_kotlin.$_$.p9;
19
- var asSequence = kotlin_kotlin.$_$.g3;
20
- var asIterable_0 = kotlin_kotlin.$_$.b3;
21
- var collectionSizeOrDefault = kotlin_kotlin.$_$.j3;
22
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.b1;
23
- var IntCompanionObject_getInstance = kotlin_kotlin.$_$.l2;
24
- var IntRange = kotlin_kotlin.$_$.x7;
25
- var zip = kotlin_kotlin.$_$.t9;
26
- var CoroutineImpl = kotlin_kotlin.$_$.c6;
27
- var SequenceScope = kotlin_kotlin.$_$.e8;
28
- var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.b6;
29
- var withIndex = kotlin_kotlin.$_$.s9;
30
- var equals = kotlin_kotlin.$_$.o6;
31
- var ensureNotNull = kotlin_kotlin.$_$.vb;
32
- var map = kotlin_kotlin.$_$.c9;
33
- var filterNot = kotlin_kotlin.$_$.q8;
34
- var toMutableList = kotlin_kotlin.$_$.q9;
35
- var minWithOrNull = kotlin_kotlin.$_$.d9;
36
- var Regex_init_$Create$ = kotlin_kotlin.$_$.h1;
37
- var toString = kotlin_kotlin.$_$.n7;
38
- var Companion_getInstance = kotlin_kt_math.$_$.f;
39
- var Companion_getInstance_0 = kotlin_kt_math.$_$.e;
40
- var isObject = kotlin_kotlin.$_$.a7;
41
- var Map = kotlin_kotlin.$_$.w2;
42
- var toMutableMap = kotlin_kotlin.$_$.v5;
43
- var lazy = kotlin_kotlin.$_$.xb;
19
+ var protoOf = kotlin_kotlin.$_$.s6;
20
+ var objectMeta = kotlin_kotlin.$_$.r6;
21
+ var VOID = kotlin_kotlin.$_$.gc;
22
+ var setMetadataFor = kotlin_kotlin.$_$.t6;
23
+ var Unit_getInstance = kotlin_kotlin.$_$.v1;
24
+ var interfaceMeta = kotlin_kotlin.$_$.c6;
25
+ var THROW_CCE = kotlin_kotlin.$_$.tb;
26
+ var isInterface = kotlin_kotlin.$_$.g6;
27
+ var classMeta = kotlin_kotlin.$_$.t5;
28
+ var Sequence = kotlin_kotlin.$_$.q7;
29
+ var arrayIterator = kotlin_kotlin.$_$.m5;
30
+ var Comparable = kotlin_kotlin.$_$.hb;
31
+ var sequence = kotlin_kotlin.$_$.v8;
32
+ var hashCode = kotlin_kotlin.$_$.b6;
33
+ var asIterable = kotlin_kotlin.$_$.s7;
34
+ var toList = kotlin_kotlin.$_$.b9;
35
+ var asSequence = kotlin_kotlin.$_$.k2;
36
+ var asIterable_0 = kotlin_kotlin.$_$.f2;
37
+ var collectionSizeOrDefault = kotlin_kotlin.$_$.n2;
38
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.e;
39
+ var IntCompanionObject_getInstance = kotlin_kotlin.$_$.p1;
40
+ var IntRange = kotlin_kotlin.$_$.h7;
41
+ var zip = kotlin_kotlin.$_$.f9;
42
+ var CoroutineImpl = kotlin_kotlin.$_$.j5;
43
+ var SequenceScope = kotlin_kotlin.$_$.p7;
44
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.i5;
45
+ var withIndex = kotlin_kotlin.$_$.e9;
46
+ var equals = kotlin_kotlin.$_$.w5;
47
+ var ensureNotNull = kotlin_kotlin.$_$.wb;
48
+ var map = kotlin_kotlin.$_$.o8;
49
+ var filterNot = kotlin_kotlin.$_$.b8;
50
+ var toMutableList = kotlin_kotlin.$_$.c9;
51
+ var minWithOrNull = kotlin_kotlin.$_$.p8;
52
+ var Regex_init_$Create$ = kotlin_kotlin.$_$.k;
53
+ var toString = kotlin_kotlin.$_$.x6;
54
+ var Companion_getInstance = kotlin_io_github_gciatto_kt_math.$_$.e;
55
+ var Companion_getInstance_0 = kotlin_io_github_gciatto_kt_math.$_$.d;
56
+ var isObject = kotlin_kotlin.$_$.i6;
57
+ var Map = kotlin_kotlin.$_$.a2;
58
+ var toMutableMap = kotlin_kotlin.$_$.c5;
59
+ var lazy = kotlin_kotlin.$_$.yb;
44
60
  var getKClassFromExpression = kotlin_kotlin.$_$.b;
45
- var KProperty1 = kotlin_kotlin.$_$.d8;
46
- var getPropertyCallableRef = kotlin_kotlin.$_$.r6;
47
- var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.v1;
48
- var Pair = kotlin_kotlin.$_$.qb;
49
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.p1;
50
- var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.f1;
51
- var joinToString$default = kotlin_kotlin.$_$.h;
52
- var mutableListOf = kotlin_kotlin.$_$.s4;
53
- var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.c1;
54
- var addAll = kotlin_kotlin.$_$.y2;
61
+ var KProperty1 = kotlin_kotlin.$_$.o7;
62
+ var getPropertyCallableRef = kotlin_kotlin.$_$.z5;
63
+ var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.z;
64
+ var Pair = kotlin_kotlin.$_$.rb;
65
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.t;
66
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.i;
67
+ var joinToString = kotlin_kotlin.$_$.k8;
68
+ var mutableListOf = kotlin_kotlin.$_$.z3;
69
+ var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.f;
70
+ var addAll = kotlin_kotlin.$_$.c2;
55
71
  //endregion
56
72
  //region block: pre-declaration
57
- setMetadataFor(Companion, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
73
+ setMetadataFor(Companion, 'Companion', objectMeta);
58
74
  function getOrSet(key, valueGenerator) {
59
- var got = this.a3(key);
75
+ var got = this.f3(key);
60
76
  var tmp;
61
77
  if (got instanceof Some) {
62
- tmp = got.gq_1;
78
+ tmp = got.aq_1;
63
79
  } else {
64
80
  var tmp$ret$0;
65
81
  // Inline function 'kotlin.also' call
66
82
  var tmp0_also = valueGenerator();
67
83
  // Inline function 'kotlin.contracts.contract' call
68
84
  // Inline function 'it.unibo.tuprolog.utils.Cache.getOrSet.<anonymous>' call
69
- this.eq(key, tmp0_also);
85
+ this.yp(key, tmp0_also);
70
86
  tmp$ret$0 = tmp0_also;
71
87
  tmp = tmp$ret$0;
72
88
  }
73
89
  return tmp;
74
90
  }
75
- setMetadataFor(Cache, 'Cache', interfaceMeta, undefined, undefined, undefined, undefined, []);
76
- setMetadataFor(Companion_0, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
91
+ setMetadataFor(Cache, 'Cache', interfaceMeta);
92
+ setMetadataFor(Companion_0, 'Companion', objectMeta);
77
93
  function ifValid(consumer) {
78
94
  var tmp;
79
- if (this.iq()) {
95
+ if (this.cq()) {
80
96
  var tmp_0 = Companion_getInstance_7();
81
97
  var tmp$ret$0;
82
98
  // Inline function 'kotlin.let' call
83
99
  var tmp0_let = this.b1();
84
100
  // Inline function 'kotlin.contracts.contract' call
85
101
  tmp$ret$0 = consumer(tmp0_let);
86
- tmp = tmp_0.mq(tmp$ret$0);
102
+ tmp = tmp_0.gq(tmp$ret$0);
87
103
  } else {
88
- tmp = Companion_getInstance_7().lq();
104
+ tmp = Companion_getInstance_7().fq();
89
105
  }
90
106
  return tmp;
91
107
  }
92
- setMetadataFor(Cached, 'Cached', interfaceMeta, undefined, undefined, undefined, undefined, []);
108
+ setMetadataFor(Cached, 'Cached', interfaceMeta);
93
109
  function castTo() {
94
110
  return isInterface(this, Castable) ? this : THROW_CCE();
95
111
  }
96
- setMetadataFor(Castable, 'Castable', interfaceMeta, undefined, undefined, undefined, undefined, []);
97
- setMetadataFor(Companion_1, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
98
- setMetadataFor(_no_name_provided__qut3iv, undefined, classMeta, undefined, undefined, undefined, undefined, []);
99
- setMetadataFor(_no_name_provided__qut3iv_0, undefined, classMeta, undefined, [Sequence], undefined, undefined, []);
112
+ setMetadataFor(Castable, 'Castable', interfaceMeta);
113
+ setMetadataFor(Companion_1, 'Companion', objectMeta);
114
+ setMetadataFor(_no_name_provided__qut3iv, VOID, classMeta);
115
+ setMetadataFor(_no_name_provided__qut3iv_0, VOID, classMeta, VOID, [Sequence]);
100
116
  function asIterable_1() {
101
117
  var tmp$ret$0;
102
118
  // Inline function 'kotlin.collections.Iterable' call
@@ -109,68 +125,68 @@
109
125
  tmp$ret$0 = new _no_name_provided__qut3iv_0(this);
110
126
  return tmp$ret$0;
111
127
  }
112
- setMetadataFor(Cursor, 'Cursor', interfaceMeta, undefined, undefined, undefined, undefined, []);
128
+ setMetadataFor(Cursor, 'Cursor', interfaceMeta);
113
129
  function component1() {
114
- return this.vq();
130
+ return this.pq();
115
131
  }
116
132
  function component2() {
117
133
  return this.b1();
118
134
  }
119
- setMetadataFor(Indexed, 'Indexed', interfaceMeta, undefined, undefined, undefined, undefined, []);
120
- setMetadataFor(Companion_2, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
135
+ setMetadataFor(Indexed, 'Indexed', interfaceMeta);
136
+ setMetadataFor(Companion_2, 'Companion', objectMeta);
121
137
  function compareTo(other) {
122
- return this.vq() - other.vq() | 0;
123
- }
124
- setMetadataFor(IntIndexed, 'IntIndexed', interfaceMeta, undefined, [Indexed, Comparable], undefined, undefined, []);
125
- setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta, undefined, undefined, undefined, undefined, []);
126
- setMetadataFor(dropLast$slambda, 'dropLast$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
127
- setMetadataFor(insertAt$slambda, 'insertAt$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
128
- setMetadataFor(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', classMeta, undefined, undefined, undefined, undefined, []);
129
- setMetadataFor(merge$slambda, 'merge$slambda', classMeta, CoroutineImpl, undefined, undefined, undefined, [1]);
130
- setMetadataFor(Companion_3, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
138
+ return this.pq() - other.pq() | 0;
139
+ }
140
+ setMetadataFor(IntIndexed, 'IntIndexed', interfaceMeta, VOID, [Indexed, Comparable]);
141
+ setMetadataFor(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', classMeta);
142
+ setMetadataFor(dropLast$slambda, 'dropLast$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
143
+ setMetadataFor(insertAt$slambda, 'insertAt$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
144
+ setMetadataFor(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', classMeta);
145
+ setMetadataFor(merge$slambda, 'merge$slambda', classMeta, CoroutineImpl, VOID, VOID, VOID, [1]);
146
+ setMetadataFor(Companion_3, 'Companion', objectMeta);
131
147
  function compareTo_0(other) {
132
- return this.vq().ah(other.vq()).ph();
133
- }
134
- setMetadataFor(LongIndexed, 'LongIndexed', interfaceMeta, undefined, [Indexed, Comparable], undefined, undefined, []);
135
- setMetadataFor(Companion_4, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
136
- setMetadataFor(NumberTypeTester, 'NumberTypeTester', classMeta, undefined, undefined, undefined, undefined, []);
137
- setMetadataFor(Companion_5, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
138
- setMetadataFor(Optional, 'Optional', classMeta, undefined, undefined, undefined, undefined, []);
139
- setMetadataFor(Some, 'Some', classMeta, Optional, undefined, undefined, undefined, []);
140
- setMetadataFor(None, 'None', objectMeta, Optional, undefined, undefined, undefined, []);
148
+ return this.pq().ch(other.pq()).h1();
149
+ }
150
+ setMetadataFor(LongIndexed, 'LongIndexed', interfaceMeta, VOID, [Indexed, Comparable]);
151
+ setMetadataFor(Companion_4, 'Companion', objectMeta);
152
+ setMetadataFor(NumberTypeTester, 'NumberTypeTester', classMeta);
153
+ setMetadataFor(Companion_5, 'Companion', objectMeta);
154
+ setMetadataFor(Optional, 'Optional', classMeta);
155
+ setMetadataFor(Some, 'Some', classMeta, Optional);
156
+ setMetadataFor(None, 'None', objectMeta, Optional);
141
157
  function getTag(name) {
142
- var tmp = this.ht().a3(name);
158
+ var tmp = this.bt().f3(name);
143
159
  return (tmp == null ? true : isObject(tmp)) ? tmp : THROW_CCE();
144
160
  }
145
161
  function containsTag(name) {
146
162
  var tmp$ret$1;
147
163
  // Inline function 'kotlin.collections.contains' call
148
- var tmp0_contains = this.ht();
164
+ var tmp0_contains = this.bt();
149
165
  var tmp$ret$0;
150
166
  // Inline function 'kotlin.collections.containsKey' call
151
- tmp$ret$0 = (isInterface(tmp0_contains, Map) ? tmp0_contains : THROW_CCE()).u2(name);
167
+ tmp$ret$0 = (isInterface(tmp0_contains, Map) ? tmp0_contains : THROW_CCE()).z2(name);
152
168
  tmp$ret$1 = tmp$ret$0;
153
169
  return tmp$ret$1;
154
170
  }
155
- setMetadataFor(Taggable, 'Taggable', interfaceMeta, undefined, undefined, undefined, undefined, []);
156
- setMetadataFor(Companion_6, 'Companion', objectMeta, undefined, undefined, undefined, undefined, []);
157
- setMetadataFor(AbstractCursor$iterator$1, undefined, classMeta, undefined, undefined, undefined, undefined, []);
158
- setMetadataFor(AbstractCursor, 'AbstractCursor', classMeta, undefined, [Cursor], undefined, undefined, []);
159
- setMetadataFor(CachedImpl, 'CachedImpl', classMeta, undefined, [Cached], undefined, undefined, []);
160
- setMetadataFor(ConjunctionCursor, 'ConjunctionCursor', classMeta, AbstractCursor, undefined, undefined, undefined, []);
161
- setMetadataFor(EmptyCursor, 'EmptyCursor', objectMeta, AbstractCursor, undefined, undefined, undefined, []);
162
- setMetadataFor(IntIndexedImpl, 'IntIndexedImpl', classMeta, undefined, [IntIndexed], undefined, undefined, []);
163
- setMetadataFor(LazyCursor, 'LazyCursor', classMeta, AbstractCursor, undefined, undefined, undefined, []);
164
- setMetadataFor(LongIndexedImpl, 'LongIndexedImpl', classMeta, undefined, [LongIndexed], undefined, undefined, []);
165
- setMetadataFor(MapperCursor, 'MapperCursor', classMeta, AbstractCursor, undefined, undefined, undefined, []);
166
- setMetadataFor(NonLastCursor, 'NonLastCursor', classMeta, AbstractCursor, undefined, undefined, undefined, []);
167
- setMetadataFor(SimpleLRUCache, 'SimpleLRUCache', classMeta, undefined, [Cache], undefined, undefined, []);
168
- setMetadataFor(ValueCursor, 'ValueCursor', classMeta, AbstractCursor, undefined, undefined, undefined, []);
171
+ setMetadataFor(Taggable, 'Taggable', interfaceMeta);
172
+ setMetadataFor(Companion_6, 'Companion', objectMeta);
173
+ setMetadataFor(AbstractCursor$iterator$1, VOID, classMeta);
174
+ setMetadataFor(AbstractCursor, 'AbstractCursor', classMeta, VOID, [Cursor]);
175
+ setMetadataFor(CachedImpl, 'CachedImpl', classMeta, VOID, [Cached]);
176
+ setMetadataFor(ConjunctionCursor, 'ConjunctionCursor', classMeta, AbstractCursor);
177
+ setMetadataFor(EmptyCursor, 'EmptyCursor', objectMeta, AbstractCursor);
178
+ setMetadataFor(IntIndexedImpl, 'IntIndexedImpl', classMeta, VOID, [IntIndexed]);
179
+ setMetadataFor(LazyCursor, 'LazyCursor', classMeta, AbstractCursor);
180
+ setMetadataFor(LongIndexedImpl, 'LongIndexedImpl', classMeta, VOID, [LongIndexed]);
181
+ setMetadataFor(MapperCursor, 'MapperCursor', classMeta, AbstractCursor);
182
+ setMetadataFor(NonLastCursor, 'NonLastCursor', classMeta, AbstractCursor);
183
+ setMetadataFor(SimpleLRUCache, 'SimpleLRUCache', classMeta, VOID, [Cache]);
184
+ setMetadataFor(ValueCursor, 'ValueCursor', classMeta, AbstractCursor);
169
185
  //endregion
170
186
  function Companion() {
171
187
  Companion_instance = this;
172
188
  }
173
- Companion.prototype.dq = function (capacity) {
189
+ protoOf(Companion).xp = function (capacity) {
174
190
  return new SimpleLRUCache(capacity);
175
191
  };
176
192
  var Companion_instance;
@@ -184,7 +200,7 @@
184
200
  function Companion_0() {
185
201
  Companion_instance_0 = this;
186
202
  }
187
- Companion_0.prototype.hq = function (generator) {
203
+ protoOf(Companion_0).bq = function (generator) {
188
204
  return new CachedImpl(generator);
189
205
  };
190
206
  var Companion_instance_0;
@@ -200,13 +216,13 @@
200
216
  function Companion_1() {
201
217
  Companion_instance_1 = this;
202
218
  }
203
- Companion_1.prototype.of = function (iterator) {
219
+ protoOf(Companion_1).of = function (iterator) {
204
220
  return toCursor(iterator);
205
221
  };
206
- Companion_1.prototype.ofSequence = function (sequence) {
222
+ protoOf(Companion_1).ofSequence = function (sequence) {
207
223
  return cursor_0(sequence);
208
224
  };
209
- Companion_1.prototype.empty = function () {
225
+ protoOf(Companion_1).empty = function () {
210
226
  return EmptyCursor_getInstance();
211
227
  };
212
228
  var Companion_instance_1;
@@ -216,21 +232,21 @@
216
232
  return Companion_instance_1;
217
233
  }
218
234
  function _no_name_provided__qut3iv(this$0) {
219
- this.oq_1 = this$0;
235
+ this.iq_1 = this$0;
220
236
  }
221
- _no_name_provided__qut3iv.prototype.j = function () {
237
+ protoOf(_no_name_provided__qut3iv).j = function () {
222
238
  var tmp$ret$0;
223
239
  // Inline function 'it.unibo.tuprolog.utils.Cursor.asIterable.<anonymous>' call
224
- tmp$ret$0 = this.oq_1.iterator();
240
+ tmp$ret$0 = this.iq_1.iterator();
225
241
  return tmp$ret$0;
226
242
  };
227
243
  function _no_name_provided__qut3iv_0(this$0) {
228
- this.pq_1 = this$0;
244
+ this.jq_1 = this$0;
229
245
  }
230
- _no_name_provided__qut3iv_0.prototype.j = function () {
246
+ protoOf(_no_name_provided__qut3iv_0).j = function () {
231
247
  var tmp$ret$0;
232
248
  // Inline function 'it.unibo.tuprolog.utils.Cursor.asSequence.<anonymous>' call
233
- tmp$ret$0 = this.pq_1.iterator();
249
+ tmp$ret$0 = this.jq_1.iterator();
234
250
  return tmp$ret$0;
235
251
  };
236
252
  function Cursor() {
@@ -245,17 +261,17 @@
245
261
  return toCursor(arrayIterator(_this__u8e3s4));
246
262
  }
247
263
  function plus(_this__u8e3s4, other) {
248
- return other.sq() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.sq() ? _this__u8e3s4 : EmptyCursor_getInstance();
264
+ return other.mq() ? new ConjunctionCursor(_this__u8e3s4, forceCast(other)) : _this__u8e3s4.mq() ? _this__u8e3s4 : EmptyCursor_getInstance();
249
265
  }
250
266
  function toCursor(_this__u8e3s4) {
251
- return Companion_getInstance_8().uq(_this__u8e3s4);
267
+ return Companion_getInstance_8().oq(_this__u8e3s4);
252
268
  }
253
269
  function Indexed() {
254
270
  }
255
271
  function Companion_2() {
256
272
  Companion_instance_2 = this;
257
273
  }
258
- Companion_2.prototype.wq = function (index, value) {
274
+ protoOf(Companion_2).qq = function (index, value) {
259
275
  return new IntIndexedImpl(index, value);
260
276
  };
261
277
  var Companion_instance_2;
@@ -340,187 +356,189 @@
340
356
  return zip(_this__u8e3s4, tmp, indexed$lambda);
341
357
  }
342
358
  function sam$kotlin_Comparator$0(function_0) {
343
- this.yq_1 = function_0;
359
+ this.sq_1 = function_0;
344
360
  }
345
- sam$kotlin_Comparator$0.prototype.cg = function (a, b) {
346
- return this.yq_1(a, b);
361
+ protoOf(sam$kotlin_Comparator$0).eg = function (a, b) {
362
+ return this.sq_1(a, b);
347
363
  };
348
- sam$kotlin_Comparator$0.prototype.compare = function (a, b) {
349
- return this.cg(a, b);
364
+ protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
365
+ return this.eg(a, b);
350
366
  };
351
367
  function dropLast$slambda($this_dropLast, resultContinuation) {
352
- this.hr_1 = $this_dropLast;
368
+ this.br_1 = $this_dropLast;
353
369
  CoroutineImpl.call(this, resultContinuation);
354
370
  }
355
- dropLast$slambda.prototype.lr = function ($this$sequence, $cont) {
356
- var tmp = this.mr($this$sequence, $cont);
357
- tmp.bi_1 = Unit_getInstance();
358
- tmp.ci_1 = null;
359
- return tmp.hi();
371
+ protoOf(dropLast$slambda).fr = function ($this$sequence, $completion) {
372
+ var tmp = this.gr($this$sequence, $completion);
373
+ tmp.ci_1 = Unit_getInstance();
374
+ tmp.di_1 = null;
375
+ return tmp.ii();
360
376
  };
361
- dropLast$slambda.prototype.ti = function (p1, $cont) {
362
- return this.lr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
377
+ protoOf(dropLast$slambda).ui = function (p1, $completion) {
378
+ return this.fr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
363
379
  };
364
- dropLast$slambda.prototype.hi = function () {
365
- var suspendResult = this.bi_1;
380
+ protoOf(dropLast$slambda).ii = function () {
381
+ var suspendResult = this.ci_1;
366
382
  $sm: do
367
383
  try {
368
- var tmp = this.zh_1;
384
+ var tmp = this.ai_1;
369
385
  switch (tmp) {
370
386
  case 0:
371
- this.ai_1 = 5;
372
- this.jr_1 = this.hr_1.j();
373
- this.zh_1 = 1;
387
+ this.bi_1 = 5;
388
+ this.dr_1 = this.br_1.j();
389
+ this.ai_1 = 1;
374
390
  continue $sm;
375
391
  case 1:
376
- if (!this.jr_1.m()) {
377
- this.zh_1 = 4;
392
+ if (!this.dr_1.m()) {
393
+ this.ai_1 = 4;
378
394
  continue $sm;
379
395
  }
380
396
 
381
- this.kr_1 = this.jr_1.n();
382
- if (this.jr_1.m()) {
383
- this.zh_1 = 2;
384
- suspendResult = this.ir_1.z4(this.kr_1, this);
397
+ this.er_1 = this.dr_1.n();
398
+ if (this.dr_1.m()) {
399
+ this.ai_1 = 2;
400
+ suspendResult = this.cr_1.d5(this.er_1, this);
385
401
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
386
402
  return suspendResult;
387
403
  }
388
404
  continue $sm;
389
405
  } else {
390
- this.zh_1 = 3;
406
+ this.ai_1 = 3;
391
407
  continue $sm;
392
408
  }
393
409
 
394
410
  break;
395
411
  case 2:
396
- this.zh_1 = 3;
412
+ this.ai_1 = 3;
397
413
  continue $sm;
398
414
  case 3:
399
- this.zh_1 = 1;
415
+ this.ai_1 = 1;
400
416
  continue $sm;
401
417
  case 4:
402
418
  return Unit_getInstance();
403
419
  case 5:
404
- throw this.ci_1;
420
+ throw this.di_1;
405
421
  }
406
422
  } catch ($p) {
407
- if (this.ai_1 === 5) {
408
- throw $p;
423
+ var e = $p;
424
+ if (this.bi_1 === 5) {
425
+ throw e;
409
426
  } else {
410
- this.zh_1 = this.ai_1;
411
- this.ci_1 = $p;
427
+ this.ai_1 = this.bi_1;
428
+ this.di_1 = e;
412
429
  }
413
430
  }
414
431
  while (true);
415
432
  };
416
- dropLast$slambda.prototype.mr = function ($this$sequence, completion) {
417
- var i = new dropLast$slambda(this.hr_1, completion);
418
- i.ir_1 = $this$sequence;
433
+ protoOf(dropLast$slambda).gr = function ($this$sequence, completion) {
434
+ var i = new dropLast$slambda(this.br_1, completion);
435
+ i.cr_1 = $this$sequence;
419
436
  return i;
420
437
  };
421
438
  function dropLast$slambda_0($this_dropLast, resultContinuation) {
422
439
  var i = new dropLast$slambda($this_dropLast, resultContinuation);
423
- var l = function ($this$sequence, $cont) {
424
- return i.lr($this$sequence, $cont);
440
+ var l = function ($this$sequence, $completion) {
441
+ return i.fr($this$sequence, $completion);
425
442
  };
426
443
  l.$arity = 1;
427
444
  return l;
428
445
  }
429
446
  function insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation) {
430
- this.wr_1 = $this_insertAt;
431
- this.xr_1 = $index;
432
- this.yr_1 = $item;
433
- this.zr_1 = $items;
447
+ this.qr_1 = $this_insertAt;
448
+ this.rr_1 = $index;
449
+ this.sr_1 = $item;
450
+ this.tr_1 = $items;
434
451
  CoroutineImpl.call(this, resultContinuation);
435
452
  }
436
- insertAt$slambda.prototype.lr = function ($this$sequence, $cont) {
437
- var tmp = this.mr($this$sequence, $cont);
438
- tmp.bi_1 = Unit_getInstance();
439
- tmp.ci_1 = null;
440
- return tmp.hi();
453
+ protoOf(insertAt$slambda).fr = function ($this$sequence, $completion) {
454
+ var tmp = this.gr($this$sequence, $completion);
455
+ tmp.ci_1 = Unit_getInstance();
456
+ tmp.di_1 = null;
457
+ return tmp.ii();
441
458
  };
442
- insertAt$slambda.prototype.ti = function (p1, $cont) {
443
- return this.lr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
459
+ protoOf(insertAt$slambda).ui = function (p1, $completion) {
460
+ return this.fr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
444
461
  };
445
- insertAt$slambda.prototype.hi = function () {
446
- var suspendResult = this.bi_1;
462
+ protoOf(insertAt$slambda).ii = function () {
463
+ var suspendResult = this.ci_1;
447
464
  $sm: do
448
465
  try {
449
- var tmp = this.zh_1;
466
+ var tmp = this.ai_1;
450
467
  switch (tmp) {
451
468
  case 0:
452
- this.ai_1 = 7;
453
- this.bs_1 = asIterable(withIndex(this.wr_1)).j();
454
- this.zh_1 = 1;
469
+ this.bi_1 = 7;
470
+ this.vr_1 = asIterable(withIndex(this.qr_1)).j();
471
+ this.ai_1 = 1;
455
472
  continue $sm;
456
473
  case 1:
457
- if (!this.bs_1.m()) {
458
- this.zh_1 = 6;
474
+ if (!this.vr_1.m()) {
475
+ this.ai_1 = 6;
459
476
  continue $sm;
460
477
  }
461
478
 
462
- this.cs_1 = this.bs_1.n();
463
- this.ds_1 = this.cs_1.n3();
464
- this.es_1 = this.cs_1.o3();
465
- if (this.ds_1 === this.xr_1) {
466
- this.zh_1 = 2;
467
- suspendResult = this.as_1.z4(this.yr_1, this);
479
+ this.wr_1 = this.vr_1.n();
480
+ this.xr_1 = this.wr_1.r3();
481
+ this.yr_1 = this.wr_1.s3();
482
+ if (this.xr_1 === this.rr_1) {
483
+ this.ai_1 = 2;
484
+ suspendResult = this.ur_1.d5(this.sr_1, this);
468
485
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
469
486
  return suspendResult;
470
487
  }
471
488
  continue $sm;
472
489
  } else {
473
- this.zh_1 = 4;
490
+ this.ai_1 = 4;
474
491
  continue $sm;
475
492
  }
476
493
 
477
494
  break;
478
495
  case 2:
479
- this.zh_1 = 3;
480
- suspendResult = this.as_1.b5(asIterable_0(this.zr_1), this);
496
+ this.ai_1 = 3;
497
+ suspendResult = this.ur_1.f5(asIterable_0(this.tr_1), this);
481
498
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
482
499
  return suspendResult;
483
500
  }
484
501
 
485
502
  continue $sm;
486
503
  case 3:
487
- this.zh_1 = 4;
504
+ this.ai_1 = 4;
488
505
  continue $sm;
489
506
  case 4:
490
- this.zh_1 = 5;
491
- suspendResult = this.as_1.z4(this.es_1, this);
507
+ this.ai_1 = 5;
508
+ suspendResult = this.ur_1.d5(this.yr_1, this);
492
509
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
493
510
  return suspendResult;
494
511
  }
495
512
 
496
513
  continue $sm;
497
514
  case 5:
498
- this.zh_1 = 1;
515
+ this.ai_1 = 1;
499
516
  continue $sm;
500
517
  case 6:
501
518
  return Unit_getInstance();
502
519
  case 7:
503
- throw this.ci_1;
520
+ throw this.di_1;
504
521
  }
505
522
  } catch ($p) {
506
- if (this.ai_1 === 7) {
507
- throw $p;
523
+ var e = $p;
524
+ if (this.bi_1 === 7) {
525
+ throw e;
508
526
  } else {
509
- this.zh_1 = this.ai_1;
510
- this.ci_1 = $p;
527
+ this.ai_1 = this.bi_1;
528
+ this.di_1 = e;
511
529
  }
512
530
  }
513
531
  while (true);
514
532
  };
515
- insertAt$slambda.prototype.mr = function ($this$sequence, completion) {
516
- var i = new insertAt$slambda(this.wr_1, this.xr_1, this.yr_1, this.zr_1, completion);
517
- i.as_1 = $this$sequence;
533
+ protoOf(insertAt$slambda).gr = function ($this$sequence, completion) {
534
+ var i = new insertAt$slambda(this.qr_1, this.rr_1, this.sr_1, this.tr_1, completion);
535
+ i.ur_1 = $this$sequence;
518
536
  return i;
519
537
  };
520
538
  function insertAt$slambda_0($this_insertAt, $index, $item, $items, resultContinuation) {
521
539
  var i = new insertAt$slambda($this_insertAt, $index, $item, $items, resultContinuation);
522
- var l = function ($this$sequence, $cont) {
523
- return i.lr($this$sequence, $cont);
540
+ var l = function ($this$sequence, $completion) {
541
+ return i.fr($this$sequence, $completion);
524
542
  };
525
543
  l.$arity = 1;
526
544
  return l;
@@ -529,22 +547,22 @@
529
547
  return equals(a, b);
530
548
  }
531
549
  function sam$kotlin_Comparator$0_0(function_0) {
532
- this.fs_1 = function_0;
550
+ this.zr_1 = function_0;
533
551
  }
534
- sam$kotlin_Comparator$0_0.prototype.cg = function (a, b) {
535
- return this.fs_1(a, b);
552
+ protoOf(sam$kotlin_Comparator$0_0).eg = function (a, b) {
553
+ return this.zr_1(a, b);
536
554
  };
537
- sam$kotlin_Comparator$0_0.prototype.compare = function (a, b) {
538
- return this.cg(a, b);
555
+ protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
556
+ return this.eg(a, b);
539
557
  };
540
558
  function merge$slambda$lambda(it) {
541
559
  return cursor(it);
542
560
  }
543
561
  function merge$slambda$lambda_0(it) {
544
- return it.tq();
562
+ return it.nq();
545
563
  }
546
564
  function merge$slambda$lambda_1(it) {
547
- return ensureNotNull(it.rq());
565
+ return ensureNotNull(it.lq());
548
566
  }
549
567
  function merge$slambda$lambda_2($comparator) {
550
568
  return function (a, b) {
@@ -552,99 +570,100 @@
552
570
  };
553
571
  }
554
572
  function merge$slambda($iterables, $comparator, resultContinuation) {
555
- this.os_1 = $iterables;
556
- this.ps_1 = $comparator;
573
+ this.is_1 = $iterables;
574
+ this.js_1 = $comparator;
557
575
  CoroutineImpl.call(this, resultContinuation);
558
576
  }
559
- merge$slambda.prototype.lr = function ($this$sequence, $cont) {
560
- var tmp = this.mr($this$sequence, $cont);
561
- tmp.bi_1 = Unit_getInstance();
562
- tmp.ci_1 = null;
563
- return tmp.hi();
577
+ protoOf(merge$slambda).fr = function ($this$sequence, $completion) {
578
+ var tmp = this.gr($this$sequence, $completion);
579
+ tmp.ci_1 = Unit_getInstance();
580
+ tmp.di_1 = null;
581
+ return tmp.ii();
564
582
  };
565
- merge$slambda.prototype.ti = function (p1, $cont) {
566
- return this.lr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $cont);
583
+ protoOf(merge$slambda).ui = function (p1, $completion) {
584
+ return this.fr(p1 instanceof SequenceScope ? p1 : THROW_CCE(), $completion);
567
585
  };
568
- merge$slambda.prototype.hi = function () {
569
- var suspendResult = this.bi_1;
586
+ protoOf(merge$slambda).ii = function () {
587
+ var suspendResult = this.ci_1;
570
588
  $sm: do
571
589
  try {
572
- var tmp = this.zh_1;
590
+ var tmp = this.ai_1;
573
591
  switch (tmp) {
574
592
  case 0:
575
- this.ai_1 = 3;
593
+ this.bi_1 = 3;
576
594
  var tmp_0 = this;
577
- var tmp_1 = asSequence(this.os_1);
595
+ var tmp_1 = asSequence(this.is_1);
578
596
  var tmp_2 = map(tmp_1, merge$slambda$lambda);
579
- tmp_0.rs_1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
580
- this.zh_1 = 1;
597
+ tmp_0.ls_1 = toMutableList(filterNot(tmp_2, merge$slambda$lambda_0));
598
+ this.ai_1 = 1;
581
599
  continue $sm;
582
600
  case 1:
583
- if (!!this.rs_1.d()) {
584
- this.zh_1 = 4;
601
+ if (!!this.ls_1.d()) {
602
+ this.ai_1 = 4;
585
603
  continue $sm;
586
604
  }
587
605
 
588
606
  var tmp_3 = this;
589
- var tmp_4 = asSequence(this.rs_1);
607
+ var tmp_4 = asSequence(this.ls_1);
590
608
  var tmp_5 = indexed(map(tmp_4, merge$slambda$lambda_1));
591
- var tmp_6 = merge$slambda$lambda_2(this.ps_1);
592
- tmp_3.ss_1 = ensureNotNull(minWithOrNull(tmp_5, new sam$kotlin_Comparator$0_0(tmp_6)));
593
- this.ts_1 = this.ss_1.n3();
594
- this.us_1 = this.ss_1.o3();
595
- this.zh_1 = 2;
596
- suspendResult = this.qs_1.z4(this.us_1, this);
609
+ var tmp_6 = merge$slambda$lambda_2(this.js_1);
610
+ tmp_3.ms_1 = ensureNotNull(minWithOrNull(tmp_5, new sam$kotlin_Comparator$0_0(tmp_6)));
611
+ this.ns_1 = this.ms_1.r3();
612
+ this.os_1 = this.ms_1.s3();
613
+ this.ai_1 = 2;
614
+ suspendResult = this.ks_1.d5(this.os_1, this);
597
615
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
598
616
  return suspendResult;
599
617
  }
600
618
 
601
619
  continue $sm;
602
620
  case 2:
603
- var tmp0_let = this.rs_1.o(this.ts_1).qq();
604
- if (tmp0_let.tq()) {
605
- this.rs_1.t4(this.ts_1);
621
+ var tmp0_let = this.ls_1.o(this.ns_1).kq();
622
+ if (tmp0_let.nq()) {
623
+ this.ls_1.x4(this.ns_1);
606
624
  } else {
607
- this.rs_1.s4(this.ts_1, tmp0_let);
625
+ this.ls_1.w4(this.ns_1, tmp0_let);
608
626
  }
609
627
 
610
628
  ;
611
- this.zh_1 = 1;
629
+ this.ai_1 = 1;
612
630
  continue $sm;
613
631
  case 3:
614
- throw this.ci_1;
632
+ throw this.di_1;
615
633
  case 4:
616
634
  return Unit_getInstance();
617
635
  }
618
636
  } catch ($p) {
619
- if (this.ai_1 === 3) {
620
- throw $p;
637
+ var e = $p;
638
+ if (this.bi_1 === 3) {
639
+ throw e;
621
640
  } else {
622
- this.zh_1 = this.ai_1;
623
- this.ci_1 = $p;
641
+ this.ai_1 = this.bi_1;
642
+ this.di_1 = e;
624
643
  }
625
644
  }
626
645
  while (true);
627
646
  };
628
- merge$slambda.prototype.mr = function ($this$sequence, completion) {
629
- var i = new merge$slambda(this.os_1, this.ps_1, completion);
630
- i.qs_1 = $this$sequence;
647
+ protoOf(merge$slambda).gr = function ($this$sequence, completion) {
648
+ var i = new merge$slambda(this.is_1, this.js_1, completion);
649
+ i.ks_1 = $this$sequence;
631
650
  return i;
632
651
  };
633
652
  function merge$slambda_0($iterables, $comparator, resultContinuation) {
634
653
  var i = new merge$slambda($iterables, $comparator, resultContinuation);
635
- var l = function ($this$sequence, $cont) {
636
- return i.lr($this$sequence, $cont);
654
+ var l = function ($this$sequence, $completion) {
655
+ return i.fr($this$sequence, $completion);
637
656
  };
638
657
  l.$arity = 1;
639
658
  return l;
640
659
  }
641
660
  function indexed$lambda(it, i) {
642
- return Companion_getInstance_4().wq(i, it);
661
+ return Companion_getInstance_4().qq(i, it);
643
662
  }
644
663
  function Companion_3() {
645
664
  Companion_instance_3 = this;
646
665
  }
647
- Companion_3.prototype.vs = function (index, value) {
666
+ protoOf(Companion_3).ps = function (index, value) {
648
667
  return new LongIndexedImpl(index, value);
649
668
  };
650
669
  var Companion_instance_3;
@@ -661,7 +680,7 @@
661
680
  var tmp$ret$0;
662
681
  // Inline function 'kotlin.text.toRegex' call
663
682
  tmp$ret$0 = Regex_init_$Create$('[0-9]+');
664
- tmp.xs_1 = tmp$ret$0;
683
+ tmp.rs_1 = tmp$ret$0;
665
684
  }
666
685
  var Companion_instance_4;
667
686
  function Companion_getInstance_6() {
@@ -670,7 +689,7 @@
670
689
  return Companion_instance_4;
671
690
  }
672
691
  function _get_stringRepresentation__xuqjt9(_this__u8e3s4, $this) {
673
- return $this.ys_1.fq(_this__u8e3s4, NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg(_this__u8e3s4));
692
+ return $this.ss_1.zp(_this__u8e3s4, NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg(_this__u8e3s4));
674
693
  }
675
694
  function NumberTypeTester$_get_stringRepresentation_$lambda_7w0qtg($this_stringRepresentation) {
676
695
  return function () {
@@ -679,35 +698,33 @@
679
698
  }
680
699
  function NumberTypeTester() {
681
700
  Companion_getInstance_6();
682
- this.ys_1 = Companion_getInstance_1().dq(8);
701
+ this.ss_1 = Companion_getInstance_1().xp(8);
683
702
  }
684
- NumberTypeTester.prototype.zs = function (_this__u8e3s4) {
685
- return Companion_getInstance_6().xs_1.ef(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
703
+ protoOf(NumberTypeTester).ts = function (_this__u8e3s4) {
704
+ return Companion_getInstance_6().rs_1.gf(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
686
705
  };
687
- NumberTypeTester.prototype.at = function (_this__u8e3s4) {
706
+ protoOf(NumberTypeTester).us = function (_this__u8e3s4) {
688
707
  return Companion_getInstance().parse(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
689
708
  };
690
- NumberTypeTester.prototype.bt = function (_this__u8e3s4) {
691
- var tmp = Companion_getInstance_0();
692
- var tmp_0 = _get_stringRepresentation__xuqjt9(_this__u8e3s4, this);
693
- return tmp.pj(tmp_0, null, 2, null);
709
+ protoOf(NumberTypeTester).vs = function (_this__u8e3s4) {
710
+ return Companion_getInstance_0().parse(_get_stringRepresentation__xuqjt9(_this__u8e3s4, this));
694
711
  };
695
712
  function Companion_5() {
696
713
  Companion_instance_5 = this;
697
714
  }
698
- Companion_5.prototype.ct = function (value) {
715
+ protoOf(Companion_5).ws = function (value) {
699
716
  return new Some(value);
700
717
  };
701
- Companion_5.prototype.mq = function (value) {
718
+ protoOf(Companion_5).gq = function (value) {
702
719
  var tmp;
703
720
  if (value == null) {
704
- tmp = this.lq();
721
+ tmp = this.fq();
705
722
  } else {
706
- tmp = this.ct(value);
723
+ tmp = this.ws(value);
707
724
  }
708
725
  return tmp;
709
726
  };
710
- Companion_5.prototype.lq = function () {
727
+ protoOf(Companion_5).fq = function () {
711
728
  return None_getInstance();
712
729
  };
713
730
  var Companion_instance_5;
@@ -718,30 +735,30 @@
718
735
  }
719
736
  function Some(value) {
720
737
  Optional.call(this);
721
- this.gq_1 = value;
738
+ this.aq_1 = value;
722
739
  }
723
- Some.prototype.b1 = function () {
724
- return this.gq_1;
740
+ protoOf(Some).b1 = function () {
741
+ return this.aq_1;
725
742
  };
726
- Some.prototype.dt = function () {
743
+ protoOf(Some).xs = function () {
727
744
  return true;
728
745
  };
729
- Some.prototype.et = function (function_0) {
730
- return new Some(function_0(this.gq_1));
746
+ protoOf(Some).ys = function (function_0) {
747
+ return new Some(function_0(this.aq_1));
731
748
  };
732
- Some.prototype.toString = function () {
733
- return 'Some(' + this.gq_1 + ')';
749
+ protoOf(Some).toString = function () {
750
+ return 'Some(' + this.aq_1 + ')';
734
751
  };
735
- Some.prototype.hashCode = function () {
736
- return this.gq_1 == null ? 0 : hashCode(this.gq_1);
752
+ protoOf(Some).hashCode = function () {
753
+ return this.aq_1 == null ? 0 : hashCode(this.aq_1);
737
754
  };
738
- Some.prototype.equals = function (other) {
755
+ protoOf(Some).equals = function (other) {
739
756
  if (this === other)
740
757
  return true;
741
758
  if (!(other instanceof Some))
742
759
  return false;
743
760
  var tmp0_other_with_cast = other instanceof Some ? other : THROW_CCE();
744
- if (!equals(this.gq_1, tmp0_other_with_cast.gq_1))
761
+ if (!equals(this.aq_1, tmp0_other_with_cast.aq_1))
745
762
  return false;
746
763
  return true;
747
764
  };
@@ -749,19 +766,19 @@
749
766
  None_instance = this;
750
767
  Optional.call(this);
751
768
  }
752
- None.prototype.b1 = function () {
769
+ protoOf(None).b1 = function () {
753
770
  return null;
754
771
  };
755
- None.prototype.dt = function () {
772
+ protoOf(None).xs = function () {
756
773
  return false;
757
774
  };
758
- None.prototype.gt = function (function_0) {
775
+ protoOf(None).at = function (function_0) {
759
776
  return None_getInstance();
760
777
  };
761
- None.prototype.et = function (function_0) {
762
- return this.gt(function_0);
778
+ protoOf(None).ys = function (function_0) {
779
+ return this.at(function_0);
763
780
  };
764
- None.prototype.toString = function () {
781
+ protoOf(None).toString = function () {
765
782
  return 'None';
766
783
  };
767
784
  var None_instance;
@@ -773,8 +790,8 @@
773
790
  function Optional() {
774
791
  Companion_getInstance_7();
775
792
  }
776
- Optional.prototype.ft = function () {
777
- return !this.dt();
793
+ protoOf(Optional).zs = function () {
794
+ return !this.xs();
778
795
  };
779
796
  function Taggable() {
780
797
  }
@@ -785,18 +802,21 @@
785
802
  function setTag(_this__u8e3s4, key, value) {
786
803
  var tmp$ret$0;
787
804
  // Inline function 'kotlin.also' call
788
- var tmp0_also = toMutableMap(_this__u8e3s4.ht());
805
+ var tmp0_also = toMutableMap(_this__u8e3s4.bt());
789
806
  // Inline function 'kotlin.contracts.contract' call
790
807
  // Inline function 'it.unibo.tuprolog.utils.setTag.<anonymous>' call
791
808
  // Inline function 'kotlin.collections.set' call
792
- tmp0_also.w3(key, value);
809
+ tmp0_also.a4(key, value);
793
810
  tmp$ret$0 = tmp0_also;
794
811
  return setTags(_this__u8e3s4, tmp$ret$0);
795
812
  }
813
+ function synchronizedOnSelf(_this__u8e3s4, action) {
814
+ return synchronizedOn(_this__u8e3s4, action);
815
+ }
796
816
  function Companion_6() {
797
817
  Companion_instance_6 = this;
798
818
  }
799
- Companion_6.prototype.uq = function (source) {
819
+ protoOf(Companion_6).oq = function (source) {
800
820
  var tmp;
801
821
  if (source.m()) {
802
822
  tmp = new LazyCursor(source);
@@ -812,104 +832,104 @@
812
832
  return Companion_instance_6;
813
833
  }
814
834
  function AbstractCursor$iterator$1(this$0) {
815
- this.it_1 = this$0;
835
+ this.ct_1 = this$0;
816
836
  }
817
- AbstractCursor$iterator$1.prototype.m = function () {
818
- return !this.it_1.tq();
837
+ protoOf(AbstractCursor$iterator$1).m = function () {
838
+ return !this.ct_1.nq();
819
839
  };
820
- AbstractCursor$iterator$1.prototype.n = function () {
821
- var result = this.it_1.rq();
822
- this.it_1 = this.it_1.qq();
840
+ protoOf(AbstractCursor$iterator$1).n = function () {
841
+ var result = this.ct_1.lq();
842
+ this.ct_1 = this.ct_1.kq();
823
843
  return ensureNotNull(result);
824
844
  };
825
845
  function AbstractCursor() {
826
846
  Companion_getInstance_8();
827
847
  }
828
- AbstractCursor.prototype.toString = function () {
829
- return this.tq() ? '[]' : !this.sq() ? '[' + this.rq() + ']' : '[' + this.rq() + ', ...]';
848
+ protoOf(AbstractCursor).toString = function () {
849
+ return this.nq() ? '[]' : !this.mq() ? '[' + this.lq() + ']' : '[' + this.lq() + ', ...]';
830
850
  };
831
- AbstractCursor.prototype.j = function () {
851
+ protoOf(AbstractCursor).j = function () {
832
852
  return new AbstractCursor$iterator$1(this);
833
853
  };
834
- AbstractCursor.prototype.iterator = function () {
854
+ protoOf(AbstractCursor).iterator = function () {
835
855
  return this.j();
836
856
  };
837
- AbstractCursor.prototype.jt = function () {
857
+ protoOf(AbstractCursor).dt = function () {
838
858
  return false;
839
859
  };
840
- AbstractCursor.prototype.et = function (mapper) {
860
+ protoOf(AbstractCursor).ys = function (mapper) {
841
861
  return new MapperCursor(this, mapper);
842
862
  };
843
- AbstractCursor.prototype.map = function (mapper) {
844
- return this.et(mapper);
863
+ protoOf(AbstractCursor).map = function (mapper) {
864
+ return this.ys(mapper);
845
865
  };
846
866
  function CachedImpl(generator) {
847
- this.kt_1 = generator;
848
- this.lt_1 = Companion_getInstance_7().lq();
867
+ this.et_1 = generator;
868
+ this.ft_1 = Companion_getInstance_7().fq();
849
869
  }
850
- CachedImpl.prototype.iq = function () {
851
- return this.lt_1.dt();
870
+ protoOf(CachedImpl).cq = function () {
871
+ return this.ft_1.xs();
852
872
  };
853
- CachedImpl.prototype.mt = function () {
854
- return this.lt_1.ft();
873
+ protoOf(CachedImpl).gt = function () {
874
+ return this.ft_1.zs();
855
875
  };
856
- CachedImpl.prototype.b1 = function () {
857
- this.nt();
858
- return ensureNotNull(this.lt_1.b1());
876
+ protoOf(CachedImpl).b1 = function () {
877
+ this.ht();
878
+ return ensureNotNull(this.ft_1.b1());
859
879
  };
860
- CachedImpl.prototype.nt = function () {
861
- if (this.mt()) {
862
- this.lt_1 = Companion_getInstance_7().ct(this.kt_1());
880
+ protoOf(CachedImpl).ht = function () {
881
+ if (this.gt()) {
882
+ this.ft_1 = Companion_getInstance_7().ws(this.et_1());
863
883
  }
864
884
  };
865
- CachedImpl.prototype.jq = function () {
866
- this.lt_1 = Companion_getInstance_7().lq();
885
+ protoOf(CachedImpl).dq = function () {
886
+ this.ft_1 = Companion_getInstance_7().fq();
867
887
  };
868
- CachedImpl.prototype.toString = function () {
869
- return 'CachedImpl(generator=' + this.kt_1 + ')';
888
+ protoOf(CachedImpl).toString = function () {
889
+ return 'CachedImpl(generator=' + this.et_1 + ')';
870
890
  };
871
- CachedImpl.prototype.hashCode = function () {
872
- return hashCode(this.kt_1);
891
+ protoOf(CachedImpl).hashCode = function () {
892
+ return hashCode(this.et_1);
873
893
  };
874
- CachedImpl.prototype.equals = function (other) {
894
+ protoOf(CachedImpl).equals = function (other) {
875
895
  if (this === other)
876
896
  return true;
877
897
  if (!(other instanceof CachedImpl))
878
898
  return false;
879
899
  var tmp0_other_with_cast = other instanceof CachedImpl ? other : THROW_CCE();
880
- if (!equals(this.kt_1, tmp0_other_with_cast.kt_1))
900
+ if (!equals(this.et_1, tmp0_other_with_cast.et_1))
881
901
  return false;
882
902
  return true;
883
903
  };
884
904
  function ConjunctionCursor$next$delegate$lambda(this$0) {
885
905
  return function () {
886
- return this$0.ot_1.sq() ? new ConjunctionCursor(this$0.ot_1.qq(), this$0.pt_1) : this$0.pt_1.jt() ? this$0.pt_1.qq() : this$0.pt_1;
906
+ return this$0.it_1.mq() ? new ConjunctionCursor(this$0.it_1.kq(), this$0.jt_1) : this$0.jt_1.dt() ? this$0.jt_1.kq() : this$0.jt_1;
887
907
  };
888
908
  }
889
909
  function ConjunctionCursor(first, second) {
890
910
  AbstractCursor.call(this);
891
- this.ot_1 = first;
892
- this.pt_1 = second;
911
+ this.it_1 = first;
912
+ this.jt_1 = second;
893
913
  var tmp = this;
894
- tmp.qt_1 = lazy(ConjunctionCursor$next$delegate$lambda(this));
914
+ tmp.kt_1 = lazy(ConjunctionCursor$next$delegate$lambda(this));
895
915
  }
896
- ConjunctionCursor.prototype.tq = function () {
897
- return this.ot_1.tq() ? this.pt_1.tq() : false;
916
+ protoOf(ConjunctionCursor).nq = function () {
917
+ return this.it_1.nq() ? this.jt_1.nq() : false;
898
918
  };
899
- ConjunctionCursor.prototype.qq = function () {
919
+ protoOf(ConjunctionCursor).kq = function () {
900
920
  var tmp$ret$0;
901
921
  // Inline function 'kotlin.getValue' call
902
922
  var tmp0_getValue = next$factory();
903
- tmp$ret$0 = this.qt_1.b1();
923
+ tmp$ret$0 = this.kt_1.b1();
904
924
  return tmp$ret$0;
905
925
  };
906
- ConjunctionCursor.prototype.rq = function () {
907
- return this.ot_1.sq() ? this.ot_1.rq() : this.pt_1.rq();
926
+ protoOf(ConjunctionCursor).lq = function () {
927
+ return this.it_1.mq() ? this.it_1.lq() : this.jt_1.lq();
908
928
  };
909
- ConjunctionCursor.prototype.sq = function () {
910
- return this.ot_1.sq() ? true : this.pt_1.sq();
929
+ protoOf(ConjunctionCursor).mq = function () {
930
+ return this.it_1.mq() ? true : this.jt_1.mq();
911
931
  };
912
- ConjunctionCursor.prototype.equals = function (other) {
932
+ protoOf(ConjunctionCursor).equals = function (other) {
913
933
  if (this === other)
914
934
  return true;
915
935
  if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
@@ -918,49 +938,49 @@
918
938
  other;
919
939
  else
920
940
  THROW_CCE();
921
- if (!equals(this.ot_1, other.ot_1))
941
+ if (!equals(this.it_1, other.it_1))
922
942
  return false;
923
- if (!equals(this.pt_1, other.pt_1))
943
+ if (!equals(this.jt_1, other.jt_1))
924
944
  return false;
925
945
  return true;
926
946
  };
927
- ConjunctionCursor.prototype.hashCode = function () {
928
- var result = hashCode(this.ot_1);
929
- result = imul(31, result) + hashCode(this.pt_1) | 0;
947
+ protoOf(ConjunctionCursor).hashCode = function () {
948
+ var result = hashCode(this.it_1);
949
+ result = imul(31, result) + hashCode(this.jt_1) | 0;
930
950
  return result;
931
951
  };
932
952
  function next$factory() {
933
953
  return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
934
- return receiver.qq();
954
+ return receiver.kq();
935
955
  }, null);
936
956
  }
937
957
  function EmptyCursor() {
938
958
  EmptyCursor_instance = this;
939
959
  AbstractCursor.call(this);
940
960
  }
941
- EmptyCursor.prototype.qq = function () {
961
+ protoOf(EmptyCursor).kq = function () {
942
962
  throw NoSuchElementException_init_$Create$();
943
963
  };
944
- EmptyCursor.prototype.rq = function () {
964
+ protoOf(EmptyCursor).lq = function () {
945
965
  return null;
946
966
  };
947
- EmptyCursor.prototype.sq = function () {
967
+ protoOf(EmptyCursor).mq = function () {
948
968
  return false;
949
969
  };
950
- EmptyCursor.prototype.tq = function () {
970
+ protoOf(EmptyCursor).nq = function () {
951
971
  return true;
952
972
  };
953
- EmptyCursor.prototype.toString = function () {
954
- return AbstractCursor.prototype.toString.call(this);
973
+ protoOf(EmptyCursor).toString = function () {
974
+ return protoOf(AbstractCursor).toString.call(this);
955
975
  };
956
- EmptyCursor.prototype.gt = function (mapper) {
976
+ protoOf(EmptyCursor).at = function (mapper) {
957
977
  return this;
958
978
  };
959
- EmptyCursor.prototype.map = function (mapper) {
960
- return this.gt(mapper);
979
+ protoOf(EmptyCursor).map = function (mapper) {
980
+ return this.at(mapper);
961
981
  };
962
- EmptyCursor.prototype.et = function (mapper) {
963
- return this.gt(mapper);
982
+ protoOf(EmptyCursor).ys = function (mapper) {
983
+ return this.at(mapper);
964
984
  };
965
985
  var EmptyCursor_instance;
966
986
  function EmptyCursor_getInstance() {
@@ -969,96 +989,96 @@
969
989
  return EmptyCursor_instance;
970
990
  }
971
991
  function IntIndexedImpl(index, value) {
972
- this.rt_1 = index;
973
- this.st_1 = value;
992
+ this.lt_1 = index;
993
+ this.mt_1 = value;
974
994
  }
975
- IntIndexedImpl.prototype.vq = function () {
976
- return this.rt_1;
995
+ protoOf(IntIndexedImpl).pq = function () {
996
+ return this.lt_1;
977
997
  };
978
- IntIndexedImpl.prototype.b1 = function () {
979
- return this.st_1;
998
+ protoOf(IntIndexedImpl).b1 = function () {
999
+ return this.mt_1;
980
1000
  };
981
- IntIndexedImpl.prototype.n3 = function () {
982
- return this.rt_1;
1001
+ protoOf(IntIndexedImpl).r3 = function () {
1002
+ return this.lt_1;
983
1003
  };
984
- IntIndexedImpl.prototype.o3 = function () {
985
- return this.st_1;
1004
+ protoOf(IntIndexedImpl).s3 = function () {
1005
+ return this.mt_1;
986
1006
  };
987
- IntIndexedImpl.prototype.toString = function () {
988
- return 'IntIndexedImpl(index=' + this.rt_1 + ', value=' + this.st_1 + ')';
1007
+ protoOf(IntIndexedImpl).toString = function () {
1008
+ return 'IntIndexedImpl(index=' + this.lt_1 + ', value=' + this.mt_1 + ')';
989
1009
  };
990
- IntIndexedImpl.prototype.hashCode = function () {
991
- var result = this.rt_1;
992
- result = imul(result, 31) + (this.st_1 == null ? 0 : hashCode(this.st_1)) | 0;
1010
+ protoOf(IntIndexedImpl).hashCode = function () {
1011
+ var result = this.lt_1;
1012
+ result = imul(result, 31) + (this.mt_1 == null ? 0 : hashCode(this.mt_1)) | 0;
993
1013
  return result;
994
1014
  };
995
- IntIndexedImpl.prototype.equals = function (other) {
1015
+ protoOf(IntIndexedImpl).equals = function (other) {
996
1016
  if (this === other)
997
1017
  return true;
998
1018
  if (!(other instanceof IntIndexedImpl))
999
1019
  return false;
1000
1020
  var tmp0_other_with_cast = other instanceof IntIndexedImpl ? other : THROW_CCE();
1001
- if (!(this.rt_1 === tmp0_other_with_cast.rt_1))
1021
+ if (!(this.lt_1 === tmp0_other_with_cast.lt_1))
1002
1022
  return false;
1003
- if (!equals(this.st_1, tmp0_other_with_cast.st_1))
1023
+ if (!equals(this.mt_1, tmp0_other_with_cast.mt_1))
1004
1024
  return false;
1005
1025
  return true;
1006
1026
  };
1007
- IntIndexedImpl.prototype.aa = function (other) {
1008
- return this.xq((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
1027
+ protoOf(IntIndexedImpl).fa = function (other) {
1028
+ return this.rq((!(other == null) ? isInterface(other, IntIndexed) : false) ? other : THROW_CCE());
1009
1029
  };
1010
1030
  function _get_wrapped__s2ip8($this) {
1011
1031
  var tmp$ret$0;
1012
1032
  // Inline function 'kotlin.getValue' call
1013
1033
  var tmp0_getValue = wrapped$factory();
1014
- tmp$ret$0 = $this.ut_1.b1();
1034
+ tmp$ret$0 = $this.ot_1.b1();
1015
1035
  return tmp$ret$0;
1016
1036
  }
1017
1037
  function LazyCursor$wrapped$delegate$lambda(this$0) {
1018
1038
  return function () {
1019
- return new NonLastCursor(this$0.tt_1);
1039
+ return new NonLastCursor(this$0.nt_1);
1020
1040
  };
1021
1041
  }
1022
1042
  function LazyCursor(delegate) {
1023
1043
  AbstractCursor.call(this);
1024
- this.tt_1 = delegate;
1044
+ this.nt_1 = delegate;
1025
1045
  var tmp = this;
1026
- tmp.ut_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
1046
+ tmp.ot_1 = lazy(LazyCursor$wrapped$delegate$lambda(this));
1027
1047
  }
1028
- LazyCursor.prototype.jt = function () {
1048
+ protoOf(LazyCursor).dt = function () {
1029
1049
  return true;
1030
1050
  };
1031
- LazyCursor.prototype.qq = function () {
1032
- return _get_wrapped__s2ip8(this).qq();
1051
+ protoOf(LazyCursor).kq = function () {
1052
+ return _get_wrapped__s2ip8(this).kq();
1033
1053
  };
1034
- LazyCursor.prototype.rq = function () {
1035
- return _get_wrapped__s2ip8(this).rq();
1054
+ protoOf(LazyCursor).lq = function () {
1055
+ return _get_wrapped__s2ip8(this).lq();
1036
1056
  };
1037
- LazyCursor.prototype.sq = function () {
1057
+ protoOf(LazyCursor).mq = function () {
1038
1058
  return true;
1039
1059
  };
1040
- LazyCursor.prototype.tq = function () {
1060
+ protoOf(LazyCursor).nq = function () {
1041
1061
  return false;
1042
1062
  };
1043
- LazyCursor.prototype.toString = function () {
1044
- return AbstractCursor.prototype.toString.call(this);
1063
+ protoOf(LazyCursor).toString = function () {
1064
+ return protoOf(AbstractCursor).toString.call(this);
1045
1065
  };
1046
- LazyCursor.prototype.j = function () {
1066
+ protoOf(LazyCursor).j = function () {
1047
1067
  return _get_wrapped__s2ip8(this).j();
1048
1068
  };
1049
- LazyCursor.prototype.iterator = function () {
1069
+ protoOf(LazyCursor).iterator = function () {
1050
1070
  return this.j();
1051
1071
  };
1052
- LazyCursor.prototype.hashCode = function () {
1053
- return hashCode(this.tt_1);
1072
+ protoOf(LazyCursor).hashCode = function () {
1073
+ return hashCode(this.nt_1);
1054
1074
  };
1055
- LazyCursor.prototype.equals = function (other) {
1075
+ protoOf(LazyCursor).equals = function (other) {
1056
1076
  if (this === other)
1057
1077
  return true;
1058
1078
  if (!(other instanceof LazyCursor))
1059
1079
  return false;
1060
1080
  var tmp0_other_with_cast = other instanceof LazyCursor ? other : THROW_CCE();
1061
- if (!equals(this.tt_1, tmp0_other_with_cast.tt_1))
1081
+ if (!equals(this.nt_1, tmp0_other_with_cast.nt_1))
1062
1082
  return false;
1063
1083
  return true;
1064
1084
  };
@@ -1068,70 +1088,70 @@
1068
1088
  }, null);
1069
1089
  }
1070
1090
  function LongIndexedImpl(index, value) {
1071
- this.vt_1 = index;
1072
- this.wt_1 = value;
1091
+ this.pt_1 = index;
1092
+ this.qt_1 = value;
1073
1093
  }
1074
- LongIndexedImpl.prototype.vq = function () {
1075
- return this.vt_1;
1094
+ protoOf(LongIndexedImpl).pq = function () {
1095
+ return this.pt_1;
1076
1096
  };
1077
- LongIndexedImpl.prototype.b1 = function () {
1078
- return this.wt_1;
1097
+ protoOf(LongIndexedImpl).b1 = function () {
1098
+ return this.qt_1;
1079
1099
  };
1080
- LongIndexedImpl.prototype.ws = function (other) {
1081
- return this.vt_1.ah(other.vq()).ph();
1100
+ protoOf(LongIndexedImpl).qs = function (other) {
1101
+ return this.pt_1.ch(other.pq()).h1();
1082
1102
  };
1083
- LongIndexedImpl.prototype.aa = function (other) {
1084
- return this.ws((!(other == null) ? isInterface(other, LongIndexed) : false) ? other : THROW_CCE());
1103
+ protoOf(LongIndexedImpl).fa = function (other) {
1104
+ return this.qs((!(other == null) ? isInterface(other, LongIndexed) : false) ? other : THROW_CCE());
1085
1105
  };
1086
- LongIndexedImpl.prototype.toString = function () {
1087
- return 'LongIndexedImpl(index=' + toString(this.vt_1) + ', value=' + this.wt_1 + ')';
1106
+ protoOf(LongIndexedImpl).toString = function () {
1107
+ return 'LongIndexedImpl(index=' + toString(this.pt_1) + ', value=' + this.qt_1 + ')';
1088
1108
  };
1089
- LongIndexedImpl.prototype.hashCode = function () {
1090
- var result = this.vt_1.hashCode();
1091
- result = imul(result, 31) + (this.wt_1 == null ? 0 : hashCode(this.wt_1)) | 0;
1109
+ protoOf(LongIndexedImpl).hashCode = function () {
1110
+ var result = this.pt_1.hashCode();
1111
+ result = imul(result, 31) + (this.qt_1 == null ? 0 : hashCode(this.qt_1)) | 0;
1092
1112
  return result;
1093
1113
  };
1094
- LongIndexedImpl.prototype.equals = function (other) {
1114
+ protoOf(LongIndexedImpl).equals = function (other) {
1095
1115
  if (this === other)
1096
1116
  return true;
1097
1117
  if (!(other instanceof LongIndexedImpl))
1098
1118
  return false;
1099
1119
  var tmp0_other_with_cast = other instanceof LongIndexedImpl ? other : THROW_CCE();
1100
- if (!this.vt_1.equals(tmp0_other_with_cast.vt_1))
1120
+ if (!this.pt_1.equals(tmp0_other_with_cast.pt_1))
1101
1121
  return false;
1102
- if (!equals(this.wt_1, tmp0_other_with_cast.wt_1))
1122
+ if (!equals(this.qt_1, tmp0_other_with_cast.qt_1))
1103
1123
  return false;
1104
1124
  return true;
1105
1125
  };
1106
1126
  function MapperCursor$current$delegate$lambda(this$0) {
1107
1127
  return function () {
1108
- return this$0.yt_1(ensureNotNull(this$0.xt_1.rq()));
1128
+ return this$0.st_1(ensureNotNull(this$0.rt_1.lq()));
1109
1129
  };
1110
1130
  }
1111
1131
  function MapperCursor(wrapped, mapper) {
1112
1132
  AbstractCursor.call(this);
1113
- this.xt_1 = wrapped;
1114
- this.yt_1 = mapper;
1133
+ this.rt_1 = wrapped;
1134
+ this.st_1 = mapper;
1115
1135
  var tmp = this;
1116
- tmp.zt_1 = lazy(MapperCursor$current$delegate$lambda(this));
1136
+ tmp.tt_1 = lazy(MapperCursor$current$delegate$lambda(this));
1117
1137
  }
1118
- MapperCursor.prototype.qq = function () {
1119
- return this.xt_1.qq().et(this.yt_1);
1138
+ protoOf(MapperCursor).kq = function () {
1139
+ return this.rt_1.kq().ys(this.st_1);
1120
1140
  };
1121
- MapperCursor.prototype.rq = function () {
1141
+ protoOf(MapperCursor).lq = function () {
1122
1142
  var tmp$ret$0;
1123
1143
  // Inline function 'kotlin.getValue' call
1124
1144
  var tmp0_getValue = current$factory();
1125
- tmp$ret$0 = this.zt_1.b1();
1145
+ tmp$ret$0 = this.tt_1.b1();
1126
1146
  return tmp$ret$0;
1127
1147
  };
1128
- MapperCursor.prototype.sq = function () {
1148
+ protoOf(MapperCursor).mq = function () {
1129
1149
  return true;
1130
1150
  };
1131
- MapperCursor.prototype.tq = function () {
1151
+ protoOf(MapperCursor).nq = function () {
1132
1152
  return false;
1133
1153
  };
1134
- MapperCursor.prototype.equals = function (other) {
1154
+ protoOf(MapperCursor).equals = function (other) {
1135
1155
  if (this === other)
1136
1156
  return true;
1137
1157
  if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
@@ -1140,109 +1160,134 @@
1140
1160
  other;
1141
1161
  else
1142
1162
  THROW_CCE();
1143
- if (!equals(this.xt_1, other.xt_1))
1163
+ if (!equals(this.rt_1, other.rt_1))
1144
1164
  return false;
1145
- if (!equals(this.yt_1, other.yt_1))
1165
+ if (!equals(this.st_1, other.st_1))
1146
1166
  return false;
1147
1167
  return true;
1148
1168
  };
1149
- MapperCursor.prototype.hashCode = function () {
1150
- var result = hashCode(this.xt_1);
1151
- result = imul(31, result) + hashCode(this.yt_1) | 0;
1169
+ protoOf(MapperCursor).hashCode = function () {
1170
+ var result = hashCode(this.rt_1);
1171
+ result = imul(31, result) + hashCode(this.st_1) | 0;
1152
1172
  return result;
1153
1173
  };
1154
- MapperCursor.prototype.au = function (mapper) {
1155
- return new ValueCursor(mapper(this.rq()), this.qq().et(mapper));
1174
+ protoOf(MapperCursor).ut = function (mapper) {
1175
+ return new ValueCursor(mapper(this.lq()), this.kq().ys(mapper));
1156
1176
  };
1157
- MapperCursor.prototype.map = function (mapper) {
1158
- return this.au(mapper);
1177
+ protoOf(MapperCursor).map = function (mapper) {
1178
+ return this.ut(mapper);
1159
1179
  };
1160
- MapperCursor.prototype.et = function (mapper) {
1161
- return this.au(mapper);
1180
+ protoOf(MapperCursor).ys = function (mapper) {
1181
+ return this.ut(mapper);
1162
1182
  };
1163
1183
  function current$factory() {
1164
1184
  return getPropertyCallableRef('current', 1, KProperty1, function (receiver) {
1165
- return receiver.rq();
1185
+ return receiver.lq();
1166
1186
  }, null);
1167
1187
  }
1168
1188
  function NonLastCursor$next$delegate$lambda($source, this$0) {
1169
1189
  return function () {
1170
1190
  var tmp$ret$0;
1171
1191
  // Inline function 'kotlin.also' call
1172
- var tmp0_also = Companion_getInstance_8().uq($source);
1192
+ var tmp0_also = Companion_getInstance_8().oq($source);
1173
1193
  // Inline function 'kotlin.contracts.contract' call
1174
1194
  // Inline function 'it.unibo.tuprolog.utils.impl.NonLastCursor.next$delegate.<anonymous>.<anonymous>' call
1175
- this$0.bu_1 = null;
1195
+ this$0.vt_1 = null;
1176
1196
  tmp$ret$0 = tmp0_also;
1177
1197
  return tmp$ret$0;
1178
1198
  };
1179
1199
  }
1180
1200
  function NonLastCursor(source) {
1181
1201
  AbstractCursor.call(this);
1182
- this.bu_1 = source;
1202
+ this.vt_1 = source;
1183
1203
  var tmp = this;
1184
- tmp.cu_1 = lazy(NonLastCursor$next$delegate$lambda(source, this));
1185
- this.du_1 = source.n();
1204
+ tmp.wt_1 = lazy(NonLastCursor$next$delegate$lambda(source, this));
1205
+ this.xt_1 = source.n();
1186
1206
  }
1187
- NonLastCursor.prototype.qq = function () {
1207
+ protoOf(NonLastCursor).kq = function () {
1188
1208
  var tmp$ret$0;
1189
1209
  // Inline function 'kotlin.getValue' call
1190
1210
  var tmp0_getValue = next$factory_0();
1191
- tmp$ret$0 = this.cu_1.b1();
1211
+ tmp$ret$0 = this.wt_1.b1();
1192
1212
  return tmp$ret$0;
1193
1213
  };
1194
- NonLastCursor.prototype.rq = function () {
1195
- return this.du_1;
1214
+ protoOf(NonLastCursor).lq = function () {
1215
+ return this.xt_1;
1196
1216
  };
1197
- NonLastCursor.prototype.sq = function () {
1217
+ protoOf(NonLastCursor).mq = function () {
1198
1218
  return true;
1199
1219
  };
1200
- NonLastCursor.prototype.tq = function () {
1220
+ protoOf(NonLastCursor).nq = function () {
1201
1221
  return false;
1202
1222
  };
1203
- NonLastCursor.prototype.toString = function () {
1204
- return AbstractCursor.prototype.toString.call(this);
1223
+ protoOf(NonLastCursor).toString = function () {
1224
+ return protoOf(AbstractCursor).toString.call(this);
1205
1225
  };
1206
1226
  function next$factory_0() {
1207
1227
  return getPropertyCallableRef('next', 1, KProperty1, function (receiver) {
1208
- return receiver.qq();
1228
+ return receiver.kq();
1209
1229
  }, null);
1210
1230
  }
1211
1231
  function removeLeastRecent($this) {
1212
1232
  var tmp$ret$0;
1213
1233
  // Inline function 'kotlin.collections.iterator' call
1214
- var tmp0_iterator = $this.fu_1;
1234
+ var tmp0_iterator = $this.zt_1;
1215
1235
  tmp$ret$0 = tmp0_iterator.z().j();
1216
1236
  var entry = tmp$ret$0.n();
1217
- $this.fu_1.x3(entry.a1());
1237
+ $this.zt_1.b4(entry.a1());
1218
1238
  var tmp = Companion_getInstance_7();
1219
1239
  var tmp$ret$1;
1220
1240
  // Inline function 'kotlin.collections.toPair' call
1221
1241
  tmp$ret$1 = new Pair(entry.a1(), entry.b1());
1222
- return tmp.ct(tmp$ret$1);
1242
+ return tmp.ws(tmp$ret$1);
1223
1243
  }
1224
1244
  function removeLeastRecentIfNecessary($this) {
1225
1245
  var tmp;
1226
- if ($this.fu_1.p() >= $this.eu_1) {
1246
+ if ($this.zt_1.p() >= $this.yt_1) {
1227
1247
  tmp = removeLeastRecent($this);
1228
1248
  } else {
1229
- return Companion_getInstance_7().lq();
1249
+ return Companion_getInstance_7().fq();
1230
1250
  }
1231
1251
  return tmp;
1232
1252
  }
1233
- function SimpleLRUCache$toSequence$lambda(it) {
1253
+ function SimpleLRUCache$set$lambda(this$0, $key, $value) {
1254
+ return function () {
1255
+ var evicted = removeLeastRecentIfNecessary(this$0);
1256
+ var tmp0_set = this$0.zt_1;
1257
+ tmp0_set.a4($key, $value);
1258
+ return evicted;
1259
+ };
1260
+ }
1261
+ function SimpleLRUCache$get$lambda(this$0, $key) {
1262
+ return function () {
1263
+ var tmp;
1264
+ if (this$0.zt_1.z2($key)) {
1265
+ tmp = Companion_getInstance_7().gq(this$0.zt_1.f3($key));
1266
+ } else {
1267
+ tmp = Companion_getInstance_7().fq();
1268
+ }
1269
+ return tmp;
1270
+ };
1271
+ }
1272
+ function SimpleLRUCache$toSequence$lambda$lambda(it) {
1234
1273
  var tmp$ret$0;
1235
1274
  // Inline function 'kotlin.collections.toPair' call
1236
1275
  tmp$ret$0 = new Pair(it.a1(), it.b1());
1237
1276
  return tmp$ret$0;
1238
1277
  }
1278
+ function SimpleLRUCache$toSequence$lambda(this$0) {
1279
+ return function () {
1280
+ var tmp = asSequence(this$0.zt_1.z());
1281
+ return buffered(map(tmp, SimpleLRUCache$toSequence$lambda$lambda));
1282
+ };
1283
+ }
1239
1284
  function SimpleLRUCache$toString$lambda(it) {
1240
- return '' + it.g4_1 + ' = ' + it.h4_1;
1285
+ return '' + it.k4_1 + ' = ' + it.l4_1;
1241
1286
  }
1242
1287
  function SimpleLRUCache(capacity) {
1243
- this.eu_1 = capacity;
1288
+ this.yt_1 = capacity;
1244
1289
  // Inline function 'kotlin.require' call
1245
- var tmp0_require = this.eu_1 > 0;
1290
+ var tmp0_require = this.yt_1 > 0;
1246
1291
  // Inline function 'kotlin.contracts.contract' call
1247
1292
  // Inline function 'kotlin.require' call
1248
1293
  // Inline function 'kotlin.contracts.contract' call
@@ -1253,25 +1298,15 @@
1253
1298
  var message = tmp$ret$0;
1254
1299
  throw IllegalArgumentException_init_$Create$(toString(message));
1255
1300
  }
1256
- this.fu_1 = LinkedHashMap_init_$Create$();
1301
+ this.zt_1 = LinkedHashMap_init_$Create$();
1257
1302
  }
1258
- SimpleLRUCache.prototype.eq = function (key, value) {
1259
- var evicted = removeLeastRecentIfNecessary(this);
1260
- // Inline function 'kotlin.collections.set' call
1261
- var tmp0_set = this.fu_1;
1262
- tmp0_set.w3(key, value);
1263
- return evicted;
1303
+ protoOf(SimpleLRUCache).yp = function (key, value) {
1304
+ return synchronizedOnSelf(this, SimpleLRUCache$set$lambda(this, key, value));
1264
1305
  };
1265
- SimpleLRUCache.prototype.a3 = function (key) {
1266
- var tmp;
1267
- if (this.fu_1.u2(key)) {
1268
- tmp = Companion_getInstance_7().mq(this.fu_1.a3(key));
1269
- } else {
1270
- tmp = Companion_getInstance_7().lq();
1271
- }
1272
- return tmp;
1306
+ protoOf(SimpleLRUCache).f3 = function (key) {
1307
+ return synchronizedOnSelf(this, SimpleLRUCache$get$lambda(this, key));
1273
1308
  };
1274
- SimpleLRUCache.prototype.equals = function (other) {
1309
+ protoOf(SimpleLRUCache).equals = function (other) {
1275
1310
  if (this === other)
1276
1311
  return true;
1277
1312
  if (other == null ? true : !getKClassFromExpression(this).equals(getKClassFromExpression(other)))
@@ -1280,41 +1315,39 @@
1280
1315
  other;
1281
1316
  else
1282
1317
  THROW_CCE();
1283
- if (!(this.eu_1 === other.eu_1))
1318
+ if (!(this.yt_1 === other.yt_1))
1284
1319
  return false;
1285
- if (!this.fu_1.equals(other.fu_1))
1320
+ if (!this.zt_1.equals(other.zt_1))
1286
1321
  return false;
1287
1322
  return true;
1288
1323
  };
1289
- SimpleLRUCache.prototype.hashCode = function () {
1290
- var result = this.eu_1;
1291
- result = imul(31, result) + this.fu_1.hashCode() | 0;
1324
+ protoOf(SimpleLRUCache).hashCode = function () {
1325
+ var result = this.yt_1;
1326
+ result = imul(31, result) + this.zt_1.hashCode() | 0;
1292
1327
  return result;
1293
1328
  };
1294
- SimpleLRUCache.prototype.gu = function () {
1295
- var tmp = asSequence(this.fu_1.z());
1296
- return buffered(map(tmp, SimpleLRUCache$toSequence$lambda));
1329
+ protoOf(SimpleLRUCache).au = function () {
1330
+ return synchronizedOnSelf(this, SimpleLRUCache$toSequence$lambda(this));
1297
1331
  };
1298
- SimpleLRUCache.prototype.toString = function () {
1299
- var tmp = this.gu();
1300
- var tmp_0 = map(tmp, SimpleLRUCache$toString$lambda);
1301
- return 'SimpleLRUCache(' + joinToString$default(tmp_0, ', ', null, null, 0, null, null, 62, null) + ')';
1332
+ protoOf(SimpleLRUCache).toString = function () {
1333
+ var tmp = this.au();
1334
+ return 'SimpleLRUCache(' + joinToString(map(tmp, SimpleLRUCache$toString$lambda), ', ') + ')';
1302
1335
  };
1303
1336
  function ValueCursor(current, next) {
1304
1337
  AbstractCursor.call(this);
1305
- this.hu_1 = current;
1306
- this.iu_1 = next;
1338
+ this.bu_1 = current;
1339
+ this.cu_1 = next;
1307
1340
  }
1308
- ValueCursor.prototype.rq = function () {
1309
- return this.hu_1;
1341
+ protoOf(ValueCursor).lq = function () {
1342
+ return this.bu_1;
1310
1343
  };
1311
- ValueCursor.prototype.qq = function () {
1312
- return this.iu_1;
1344
+ protoOf(ValueCursor).kq = function () {
1345
+ return this.cu_1;
1313
1346
  };
1314
- ValueCursor.prototype.sq = function () {
1347
+ protoOf(ValueCursor).mq = function () {
1315
1348
  return true;
1316
1349
  };
1317
- ValueCursor.prototype.tq = function () {
1350
+ protoOf(ValueCursor).nq = function () {
1318
1351
  return false;
1319
1352
  };
1320
1353
  function dequeOf(items) {
@@ -1340,42 +1373,45 @@
1340
1373
  if (_this__u8e3s4.d())
1341
1374
  return null;
1342
1375
  var first = _this__u8e3s4.o(0);
1343
- _this__u8e3s4.t4(0);
1376
+ _this__u8e3s4.x4(0);
1344
1377
  return first;
1345
1378
  }
1346
1379
  function addFirst(_this__u8e3s4, item) {
1347
- _this__u8e3s4.ua(0, item);
1380
+ _this__u8e3s4.za(0, item);
1348
1381
  }
1349
1382
  function addFirst_0(_this__u8e3s4, items) {
1350
- var i = _this__u8e3s4.bb();
1383
+ var i = _this__u8e3s4.gb();
1351
1384
  var tmp0_iterator = items.j();
1352
1385
  while (tmp0_iterator.m()) {
1353
1386
  var item = tmp0_iterator.n();
1354
- i.va(item);
1387
+ i.ab(item);
1355
1388
  }
1356
1389
  }
1390
+ function synchronizedOn(obj, action) {
1391
+ return action();
1392
+ }
1357
1393
  function forceCast(_this__u8e3s4) {
1358
1394
  var it = _this__u8e3s4;
1359
1395
  return it;
1360
1396
  }
1361
1397
  //region block: post-declaration
1362
- AbstractCursor.prototype.asIterable = asIterable_1;
1363
- AbstractCursor.prototype.asSequence = asSequence_0;
1364
- CachedImpl.prototype.kq = ifValid;
1365
- ConjunctionCursor.prototype.asIterable = asIterable_1;
1366
- ConjunctionCursor.prototype.asSequence = asSequence_0;
1367
- EmptyCursor.prototype.asIterable = asIterable_1;
1368
- EmptyCursor.prototype.asSequence = asSequence_0;
1369
- IntIndexedImpl.prototype.xq = compareTo;
1370
- LazyCursor.prototype.asIterable = asIterable_1;
1371
- LazyCursor.prototype.asSequence = asSequence_0;
1372
- MapperCursor.prototype.asIterable = asIterable_1;
1373
- MapperCursor.prototype.asSequence = asSequence_0;
1374
- NonLastCursor.prototype.asIterable = asIterable_1;
1375
- NonLastCursor.prototype.asSequence = asSequence_0;
1376
- SimpleLRUCache.prototype.fq = getOrSet;
1377
- ValueCursor.prototype.asIterable = asIterable_1;
1378
- ValueCursor.prototype.asSequence = asSequence_0;
1398
+ protoOf(AbstractCursor).asIterable = asIterable_1;
1399
+ protoOf(AbstractCursor).asSequence = asSequence_0;
1400
+ protoOf(CachedImpl).eq = ifValid;
1401
+ protoOf(ConjunctionCursor).asIterable = asIterable_1;
1402
+ protoOf(ConjunctionCursor).asSequence = asSequence_0;
1403
+ protoOf(EmptyCursor).asIterable = asIterable_1;
1404
+ protoOf(EmptyCursor).asSequence = asSequence_0;
1405
+ protoOf(IntIndexedImpl).rq = compareTo;
1406
+ protoOf(LazyCursor).asIterable = asIterable_1;
1407
+ protoOf(LazyCursor).asSequence = asSequence_0;
1408
+ protoOf(MapperCursor).asIterable = asIterable_1;
1409
+ protoOf(MapperCursor).asSequence = asSequence_0;
1410
+ protoOf(NonLastCursor).asIterable = asIterable_1;
1411
+ protoOf(NonLastCursor).asSequence = asSequence_0;
1412
+ protoOf(SimpleLRUCache).zp = getOrSet;
1413
+ protoOf(ValueCursor).asIterable = asIterable_1;
1414
+ protoOf(ValueCursor).asSequence = asSequence_0;
1379
1415
  //endregion
1380
1416
  //region block: exports
1381
1417
  _.$_$ = _.$_$ || {};
@@ -1415,9 +1451,11 @@
1415
1451
  _.$_$.h1 = plus;
1416
1452
  _.$_$.i1 = setTags;
1417
1453
  _.$_$.j1 = setTag;
1418
- _.$_$.k1 = takeFirst;
1454
+ _.$_$.k1 = synchronizedOnSelf;
1455
+ _.$_$.l1 = synchronizedOn;
1456
+ _.$_$.m1 = takeFirst;
1419
1457
  //endregion
1420
1458
  return _;
1421
- }(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kt-math.js')));
1459
+ }));
1422
1460
 
1423
1461
  //# sourceMappingURL=2p-utils.js.map