@flock/wirespec 0.17.20 → 0.18.1-RC.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/arrow-arrow-annotations.mjs.map +1 -1
- package/arrow-arrow-atomic.mjs +13 -13
- package/arrow-arrow-atomic.mjs.map +1 -1
- package/arrow-arrow-core.mjs +588 -431
- package/arrow-arrow-core.mjs.map +1 -1
- package/arrow-arrow-exception-utils.mjs +30 -0
- package/arrow-arrow-exception-utils.mjs.map +1 -0
- package/clikt-clikt-mordant.mjs +318 -0
- package/clikt-clikt-mordant.mjs.map +1 -0
- package/clikt-clikt.mjs +3834 -3696
- package/clikt-clikt.mjs.map +1 -1
- package/colormath-root-colormath.mjs +619 -682
- package/colormath-root-colormath.mjs.map +1 -1
- package/kotlin-js-core.mjs +4 -0
- package/kotlin-js-core.mjs.map +1 -0
- package/kotlin-js.mjs +4 -0
- package/kotlin-js.mjs.map +1 -0
- package/kotlin-kotlin-stdlib.mjs +6284 -5825
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +8163 -8198
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-plugins-js-plain-objects-runtime.mjs +4 -0
- package/kotlin-plugins-js-plain-objects-runtime.mjs.map +1 -0
- package/kotlin-rgxgen.mjs +2007 -2062
- package/kotlin-rgxgen.mjs.map +1 -1
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -1
- package/kotlinx-atomicfu.mjs +4 -0
- package/kotlinx-atomicfu.mjs.map +1 -0
- package/kotlinx-coroutines-core.mjs +4 -0
- package/kotlinx-coroutines-core.mjs.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core.mjs +803 -839
- package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +2483 -2553
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +1861 -1928
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/mordant-mordant-omnibus.mjs +4 -0
- package/mordant-mordant-omnibus.mjs.map +1 -0
- package/mordant-mordant.mjs +2525 -4426
- package/mordant-mordant.mjs.map +1 -1
- package/package.json +4 -7
- package/seskar-core.mjs +4 -0
- package/seskar-core.mjs.map +1 -0
- package/wirespec-bin.mjs +13 -1
- package/wirespec-fetch.d.ts +4 -1
- package/wirespec-fetch.mjs +34 -0
- package/wirespec-serialization.d.ts +13 -2
- package/wirespec-serialization.mjs +22 -1
- package/wirespec-src-compiler-core.mjs +2857 -3909
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +1370 -413
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +1015 -337
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +1465 -387
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-rust.mjs +2461 -0
- package/wirespec-src-compiler-emitters-rust.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-scala.mjs +1010 -0
- package/wirespec-src-compiler-emitters-scala.mjs.map +1 -0
- package/wirespec-src-compiler-emitters-typescript.mjs +1533 -450
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +122 -144
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-ir.mjs +17369 -0
- package/wirespec-src-compiler-ir.mjs.map +1 -0
- package/wirespec-src-compiler-lib.mjs +662 -728
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +630 -656
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-common.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +1705 -2024
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +418 -459
- package/wirespec-src-plugin-arguments.mjs.map +1 -1
- package/wirespec-src-plugin-cli.mjs +367 -331
- package/wirespec-src-plugin-cli.mjs.map +1 -1
- package/{wirespec-src-plugin-npm.d.ts → wirespec-src-plugin-npm.d.mts} +247 -0
- package/wirespec-src-plugin-npm.mjs +166 -359
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +79 -106
- package/wirespec-src-tools-generator.mjs.map +1 -1
- package/arrow-arrow-continuations.mjs +0 -18
- package/arrow-arrow-continuations.mjs.map +0 -1
- package/markdown.mjs +0 -6756
- package/markdown.mjs.map +0 -1
package/arrow-arrow-core.mjs
CHANGED
|
@@ -1,48 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Unit_instanceat14thlj150z as Unit_instance,
|
|
3
2
|
protoOf180f3jzyo7rfj as protoOf,
|
|
4
3
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
4
|
+
Unit_instance28fytmsmm6r23 as Unit_instance,
|
|
5
5
|
toString30pk9tzaqopn as toString,
|
|
6
6
|
hashCodeq5arwsb9dgti as hashCode,
|
|
7
|
-
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
8
7
|
equals2au1ep9vhcato as equals,
|
|
9
8
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
10
|
-
|
|
9
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
11
10
|
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
|
|
12
|
-
Collection1k04j3hzsbod0 as Collection,
|
|
13
|
-
isInterface3d6p8outrmvmk as isInterface,
|
|
14
11
|
checkBuilderCapacity1h6g02949wvv as checkBuilderCapacity,
|
|
15
|
-
ArrayList_init_$Create$
|
|
16
|
-
|
|
12
|
+
ArrayList_init_$Create$3ivpeip4ouddx as ArrayList_init_$Create$,
|
|
13
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
14
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
15
|
+
throwKotlinNothingValueException2lxmvl03dor6f as throwKotlinNothingValueException,
|
|
16
|
+
Collection1k04j3hzsbod0 as Collection,
|
|
17
17
|
listOfvhqybd2zx248 as listOf,
|
|
18
|
-
ensureNotNull1e947j3ixpazm as ensureNotNull,
|
|
19
|
-
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
20
|
-
drop3na99dw9feawf as drop,
|
|
21
|
-
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
22
|
-
AbstractList3ck35puwbp1e9 as AbstractList,
|
|
23
|
-
IndexOutOfBoundsException_init_$Create$lgvynu6unvfx as IndexOutOfBoundsException_init_$Create$,
|
|
24
18
|
plus310ted5e4i90h as plus,
|
|
19
|
+
first58ocm7j58k3q as first,
|
|
25
20
|
plus20p0vtfmu0596 as plus_0,
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
toString1pkumu07cwy4m as toString_0,
|
|
22
|
+
KtList3hktaavzmj137 as KtList,
|
|
23
|
+
plus1di085adi7f7m as plus_1,
|
|
28
24
|
toList3jhuyej2anx2q as toList,
|
|
29
25
|
setOf1u3mizs95ngxo as setOf,
|
|
30
|
-
plus1ogy4liedzq5j as
|
|
26
|
+
plus1ogy4liedzq5j as plus_2,
|
|
27
|
+
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
28
|
+
ArrayList_init_$Create$1jemgvhi5v0js as ArrayList_init_$Create$_0,
|
|
29
|
+
addAll1k27qatfgp3k5 as addAll,
|
|
31
30
|
KtSetjrjc7fhfd6b9 as KtSet,
|
|
32
|
-
|
|
33
|
-
toSet2orjxp16sotqu as
|
|
34
|
-
CancellationException3b36o9qz53rgr as CancellationException,
|
|
35
|
-
CancellationException_init_$Init$31woqfgrhq6f4 as CancellationException_init_$Init$,
|
|
31
|
+
asIterable314gqyxouondo as asIterable,
|
|
32
|
+
toSet2orjxp16sotqu as toSet,
|
|
36
33
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
37
|
-
|
|
34
|
+
defineProp3ur6h3slcvq4x as defineProp,
|
|
38
35
|
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
39
|
-
IllegalStateException_init_$Init$
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
IllegalArgumentException_init_$Create$
|
|
36
|
+
IllegalStateException_init_$Init$2ylivwv1fsmzx as IllegalStateException_init_$Init$,
|
|
37
|
+
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
38
|
+
objectCreate1ve4bgxiu4x98 as objectCreate,
|
|
39
|
+
IllegalArgumentException_init_$Create$1j1aj36nbo0wg as IllegalArgumentException_init_$Create$,
|
|
40
|
+
CancellationException3b36o9qz53rgr as CancellationException,
|
|
41
|
+
CancellationException_init_$Init$2h1hgwga3ygtl as CancellationException_init_$Init$,
|
|
43
42
|
} from './kotlin-kotlin-stdlib.mjs';
|
|
43
|
+
import { nonFatalOrThrow35agffkx4bbtz as nonFatalOrThrow } from './arrow-arrow-exception-utils.mjs';
|
|
44
44
|
import { AtomicBoolean19soryb213qw as AtomicBoolean } from './arrow-arrow-atomic.mjs';
|
|
45
|
-
import { ControlThrowable1e3sm1olkg8m4 as ControlThrowable } from './arrow-arrow-continuations.mjs';
|
|
46
45
|
//region block: imports
|
|
47
46
|
//endregion
|
|
48
47
|
//region block: pre-declaration
|
|
@@ -52,67 +51,60 @@ initMetadataForClass(Either, 'Either');
|
|
|
52
51
|
initMetadataForClass(Left, 'Left', VOID, Either);
|
|
53
52
|
initMetadataForClass(Right, 'Right', VOID, Either);
|
|
54
53
|
initMetadataForCompanion(Companion_1);
|
|
55
|
-
function toNonEmptyList() {
|
|
56
|
-
return ensureNotNull(toNonEmptyListOrNull(this));
|
|
57
|
-
}
|
|
58
|
-
initMetadataForInterface(NonEmptyCollection, 'NonEmptyCollection', VOID, VOID, [Collection]);
|
|
59
54
|
initMetadataForCompanion(Companion_2);
|
|
60
|
-
initMetadataForClass(NonEmptyList, 'NonEmptyList', VOID,
|
|
61
|
-
|
|
62
|
-
initMetadataForClass(NonEmptySet, 'NonEmptySet', VOID, VOID, [KtSet,
|
|
63
|
-
initMetadataForClass(_no_name_provided__qut3iv_0);
|
|
55
|
+
initMetadataForClass(NonEmptyList, 'NonEmptyList', VOID, VOID, [KtList, Collection]);
|
|
56
|
+
initMetadataForCompanion(Companion_3);
|
|
57
|
+
initMetadataForClass(NonEmptySet, 'NonEmptySet', VOID, VOID, [KtSet, Collection]);
|
|
64
58
|
function bind(_this__u8e3s4) {
|
|
65
|
-
var tmp;
|
|
66
59
|
if (_this__u8e3s4 instanceof Left) {
|
|
67
|
-
this.
|
|
60
|
+
this.bm(_this__u8e3s4.nl_1);
|
|
68
61
|
} else {
|
|
69
|
-
if (_this__u8e3s4 instanceof Right)
|
|
70
|
-
|
|
71
|
-
|
|
62
|
+
if (_this__u8e3s4 instanceof Right)
|
|
63
|
+
return _this__u8e3s4.pl_1;
|
|
64
|
+
else {
|
|
72
65
|
noWhenBranchMatchedException();
|
|
73
66
|
}
|
|
74
67
|
}
|
|
75
|
-
return tmp;
|
|
76
68
|
}
|
|
77
69
|
function bindAll(_this__u8e3s4) {
|
|
78
70
|
// Inline function 'arrow.core.NonEmptyList.map' call
|
|
79
|
-
// Inline function 'arrow.core.raise.Raise.bindAll.<anonymous>' call
|
|
80
|
-
var it = _this__u8e3s4.pk_1;
|
|
81
|
-
var tmp = this.cl(it);
|
|
82
71
|
// Inline function 'kotlin.collections.map' call
|
|
83
|
-
var this_0 = _this__u8e3s4
|
|
72
|
+
var this_0 = _NonEmptyList___get_all__impl__pmf509(_this__u8e3s4);
|
|
84
73
|
// Inline function 'kotlin.collections.mapTo' call
|
|
85
74
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
86
|
-
var
|
|
87
|
-
while (
|
|
88
|
-
var item =
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
destination.e(tmp$ret$1);
|
|
75
|
+
var _iterator__ex2g4s = this_0.t();
|
|
76
|
+
while (_iterator__ex2g4s.u()) {
|
|
77
|
+
var item = _iterator__ex2g4s.v();
|
|
78
|
+
var tmp$ret$0 = this.fm(item);
|
|
79
|
+
destination.x(tmp$ret$0);
|
|
92
80
|
}
|
|
93
|
-
return
|
|
81
|
+
return _NonEmptyList___init__impl__fxd0xp(destination);
|
|
94
82
|
}
|
|
95
|
-
initMetadataForInterface(Raise, 'Raise', VOID, VOID, VOID, [
|
|
96
|
-
initMetadataForClass(DefaultRaise, 'DefaultRaise', VOID, VOID, [Raise], [
|
|
83
|
+
initMetadataForInterface(Raise, 'Raise', VOID, VOID, VOID, [1]);
|
|
84
|
+
initMetadataForClass(DefaultRaise, 'DefaultRaise', VOID, VOID, [Raise], [1]);
|
|
97
85
|
initMetadataForClass(RaiseCancellationException, 'RaiseCancellationException', VOID, CancellationException);
|
|
98
86
|
initMetadataForClass(Traced, 'Traced', VOID, RaiseCancellationException);
|
|
99
87
|
initMetadataForClass(RaiseLeakedException, 'RaiseLeakedException', RaiseLeakedException, IllegalStateException);
|
|
100
|
-
initMetadataForClass(
|
|
101
|
-
initMetadataForClass(
|
|
88
|
+
initMetadataForClass(Value, 'Value');
|
|
89
|
+
initMetadataForClass(Error_0, 'Error', VOID, Value);
|
|
90
|
+
initMetadataForClass(Ok, 'Ok', VOID, Value);
|
|
91
|
+
function get_hasAccumulatedErrors() {
|
|
92
|
+
return !(this.am() == null);
|
|
93
|
+
}
|
|
94
|
+
initMetadataForInterface(Accumulate, 'Accumulate');
|
|
95
|
+
initMetadataForClass(RaiseAccumulate, 'RaiseAccumulate', VOID, VOID, [Accumulate, Raise], [1]);
|
|
96
|
+
initMetadataForClass(ListAccumulate, 'ListAccumulate', VOID, VOID, [Accumulate, Raise], [1]);
|
|
97
|
+
initMetadataForClass(TolerantAccumulate, 'TolerantAccumulate', VOID, VOID, [Accumulate]);
|
|
102
98
|
//endregion
|
|
103
99
|
function Companion() {
|
|
104
|
-
Companion_instance = this;
|
|
105
|
-
this.wj_1 = new Left(Unit_instance);
|
|
106
100
|
}
|
|
107
101
|
var Companion_instance;
|
|
108
102
|
function Companion_getInstance() {
|
|
109
|
-
if (Companion_instance == null)
|
|
110
|
-
new Companion();
|
|
111
103
|
return Companion_instance;
|
|
112
104
|
}
|
|
113
105
|
function Companion_0() {
|
|
114
106
|
Companion_instance_0 = this;
|
|
115
|
-
this.
|
|
107
|
+
this.ml_1 = new Right(Unit_instance);
|
|
116
108
|
}
|
|
117
109
|
var Companion_instance_0;
|
|
118
110
|
function Companion_getInstance_0() {
|
|
@@ -121,60 +113,41 @@ function Companion_getInstance_0() {
|
|
|
121
113
|
return Companion_instance_0;
|
|
122
114
|
}
|
|
123
115
|
function Left(value) {
|
|
124
|
-
Companion_getInstance();
|
|
125
116
|
Either.call(this);
|
|
126
|
-
this.
|
|
127
|
-
this.zj_1 = true;
|
|
128
|
-
this.ak_1 = false;
|
|
117
|
+
this.nl_1 = value;
|
|
129
118
|
}
|
|
130
|
-
protoOf(Left).bk = function () {
|
|
131
|
-
return this.zj_1;
|
|
132
|
-
};
|
|
133
|
-
protoOf(Left).ck = function () {
|
|
134
|
-
return this.ak_1;
|
|
135
|
-
};
|
|
136
119
|
protoOf(Left).toString = function () {
|
|
137
|
-
return 'Either.Left(' + toString(this.
|
|
120
|
+
return 'Either.Left(' + toString(this.nl_1) + ')';
|
|
138
121
|
};
|
|
139
122
|
protoOf(Left).hashCode = function () {
|
|
140
|
-
return this.
|
|
123
|
+
return this.nl_1 == null ? 0 : hashCode(this.nl_1);
|
|
141
124
|
};
|
|
142
125
|
protoOf(Left).equals = function (other) {
|
|
143
126
|
if (this === other)
|
|
144
127
|
return true;
|
|
145
128
|
if (!(other instanceof Left))
|
|
146
129
|
return false;
|
|
147
|
-
|
|
148
|
-
if (!equals(this.yj_1, tmp0_other_with_cast.yj_1))
|
|
130
|
+
if (!equals(this.nl_1, other.nl_1))
|
|
149
131
|
return false;
|
|
150
132
|
return true;
|
|
151
133
|
};
|
|
152
134
|
function Right(value) {
|
|
153
135
|
Companion_getInstance_0();
|
|
154
136
|
Either.call(this);
|
|
155
|
-
this.
|
|
156
|
-
this.fk_1 = false;
|
|
157
|
-
this.gk_1 = true;
|
|
137
|
+
this.pl_1 = value;
|
|
158
138
|
}
|
|
159
|
-
protoOf(Right).bk = function () {
|
|
160
|
-
return this.fk_1;
|
|
161
|
-
};
|
|
162
|
-
protoOf(Right).ck = function () {
|
|
163
|
-
return this.gk_1;
|
|
164
|
-
};
|
|
165
139
|
protoOf(Right).toString = function () {
|
|
166
|
-
return 'Either.Right(' + toString(this.
|
|
140
|
+
return 'Either.Right(' + toString(this.pl_1) + ')';
|
|
167
141
|
};
|
|
168
142
|
protoOf(Right).hashCode = function () {
|
|
169
|
-
return this.
|
|
143
|
+
return this.pl_1 == null ? 0 : hashCode(this.pl_1);
|
|
170
144
|
};
|
|
171
145
|
protoOf(Right).equals = function (other) {
|
|
172
146
|
if (this === other)
|
|
173
147
|
return true;
|
|
174
148
|
if (!(other instanceof Right))
|
|
175
149
|
return false;
|
|
176
|
-
|
|
177
|
-
if (!equals(this.ek_1, tmp0_other_with_cast.ek_1))
|
|
150
|
+
if (!equals(this.pl_1, other.pl_1))
|
|
178
151
|
return false;
|
|
179
152
|
return true;
|
|
180
153
|
};
|
|
@@ -186,22 +159,15 @@ function Companion_getInstance_1() {
|
|
|
186
159
|
}
|
|
187
160
|
function Either() {
|
|
188
161
|
}
|
|
189
|
-
protoOf(Either).
|
|
190
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
162
|
+
protoOf(Either).ol = function () {
|
|
191
163
|
// Inline function 'arrow.core.getOrElse' call
|
|
192
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
193
|
-
// Inline function 'arrow.core.Either.fold' call
|
|
194
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
195
164
|
var tmp;
|
|
196
|
-
if (this instanceof
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
tmp = this.ek_1;
|
|
165
|
+
if (this instanceof Left) {
|
|
166
|
+
this.nl_1;
|
|
167
|
+
tmp = null;
|
|
200
168
|
} else {
|
|
201
|
-
if (this instanceof
|
|
202
|
-
|
|
203
|
-
this.yj_1;
|
|
204
|
-
tmp = null;
|
|
169
|
+
if (this instanceof Right) {
|
|
170
|
+
tmp = this.pl_1;
|
|
205
171
|
} else {
|
|
206
172
|
noWhenBranchMatchedException();
|
|
207
173
|
}
|
|
@@ -210,16 +176,13 @@ protoOf(Either).dk = function () {
|
|
|
210
176
|
};
|
|
211
177
|
protoOf(Either).toString = function () {
|
|
212
178
|
// Inline function 'arrow.core.Either.fold' call
|
|
213
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
214
179
|
var tmp;
|
|
215
180
|
if (this instanceof Right) {
|
|
216
|
-
|
|
217
|
-
var it = this.ek_1;
|
|
181
|
+
var it = this.pl_1;
|
|
218
182
|
tmp = 'Either.Right(' + toString(it) + ')';
|
|
219
183
|
} else {
|
|
220
184
|
if (this instanceof Left) {
|
|
221
|
-
|
|
222
|
-
var it_0 = this.yj_1;
|
|
185
|
+
var it_0 = this.nl_1;
|
|
223
186
|
tmp = 'Either.Left(' + toString(it_0) + ')';
|
|
224
187
|
} else {
|
|
225
188
|
noWhenBranchMatchedException();
|
|
@@ -227,148 +190,198 @@ protoOf(Either).toString = function () {
|
|
|
227
190
|
}
|
|
228
191
|
return tmp;
|
|
229
192
|
};
|
|
230
|
-
function left(_this__u8e3s4) {
|
|
231
|
-
return new Left(_this__u8e3s4);
|
|
232
|
-
}
|
|
233
193
|
function right(_this__u8e3s4) {
|
|
234
194
|
return new Right(_this__u8e3s4);
|
|
235
195
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
_init_properties_Iterable_kt__l8xevm();
|
|
239
|
-
var tmp;
|
|
240
|
-
if (isInterface(_this__u8e3s4, Collection)) {
|
|
241
|
-
tmp = _this__u8e3s4.j();
|
|
242
|
-
} else {
|
|
243
|
-
tmp = default_0;
|
|
244
|
-
}
|
|
245
|
-
return tmp;
|
|
196
|
+
function left(_this__u8e3s4) {
|
|
197
|
+
return new Left(_this__u8e3s4);
|
|
246
198
|
}
|
|
247
199
|
function flattenOrAccumulate(_this__u8e3s4) {
|
|
248
|
-
_init_properties_Iterable_kt__l8xevm();
|
|
249
200
|
// Inline function 'arrow.core.mapOrAccumulate' call
|
|
250
201
|
// Inline function 'arrow.core.raise.either' call
|
|
251
202
|
// Inline function 'arrow.core.raise.fold' call
|
|
252
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
253
203
|
// Inline function 'arrow.core.raise.fold' call
|
|
254
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
255
204
|
var raise = new DefaultRaise(false);
|
|
256
205
|
var tmp;
|
|
257
206
|
try {
|
|
258
|
-
// Inline function 'arrow.core.raise.either.<anonymous>' call
|
|
259
|
-
// Inline function 'arrow.core.mapOrAccumulate.<anonymous>' call
|
|
260
207
|
// Inline function 'arrow.core.raise.mapOrAccumulate' call
|
|
261
208
|
// Inline function 'kotlin.collections.buildList' call
|
|
262
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
263
209
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
264
210
|
var capacity = collectionSizeOrDefault_0(_this__u8e3s4, 10);
|
|
265
211
|
checkBuilderCapacity(capacity);
|
|
266
212
|
// Inline function 'kotlin.apply' call
|
|
267
213
|
var this_0 = ArrayList_init_$Create$(capacity);
|
|
268
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
269
|
-
// Inline function 'arrow.core.raise.mapOrAccumulate.<anonymous>' call
|
|
270
214
|
// Inline function 'arrow.core.raise.forEachAccumulatingImpl' call
|
|
271
|
-
var iterator = _this__u8e3s4.
|
|
272
|
-
// Inline function '
|
|
273
|
-
|
|
215
|
+
var iterator = _this__u8e3s4.t();
|
|
216
|
+
// Inline function 'arrow.core.raise.accumulate' call
|
|
217
|
+
// Inline function 'kotlin.with' call
|
|
218
|
+
var $this$with = RaiseAccumulate_init_$Create$(raise);
|
|
219
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
274
220
|
// Inline function 'kotlin.collections.iterator' call
|
|
275
|
-
var
|
|
276
|
-
while (
|
|
277
|
-
var
|
|
221
|
+
var _iterator__ex2g4s = iterator;
|
|
222
|
+
while (_iterator__ex2g4s.u()) {
|
|
223
|
+
var element = _iterator__ex2g4s.v();
|
|
224
|
+
// Inline function 'arrow.core.raise.RaiseAccumulate.accumulating' call
|
|
225
|
+
// Inline function 'arrow.core.raise.accumulating' call
|
|
226
|
+
var this_1 = isInterface($this$with, Accumulate) ? $this$with : THROW_CCE();
|
|
227
|
+
// Inline function 'arrow.core.raise.merge' call
|
|
278
228
|
// Inline function 'arrow.core.raise.recover' call
|
|
279
229
|
// Inline function 'arrow.core.raise.fold' call
|
|
280
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
281
230
|
var raise_0 = new DefaultRaise(false);
|
|
282
231
|
var tmp_0;
|
|
283
232
|
try {
|
|
284
|
-
|
|
285
|
-
// Inline function '
|
|
286
|
-
var
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
233
|
+
// Inline function 'arrow.core.raise.recover' call
|
|
234
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
235
|
+
var raise_1 = new DefaultRaise(false);
|
|
236
|
+
var tmp_1;
|
|
237
|
+
try {
|
|
238
|
+
var tmp_2 = tolerant(this_1, raise_0);
|
|
239
|
+
var $this$accumulating = new RaiseAccumulate(tmp_2, raise_1, flattenOrAccumulate$lambda(raise_1));
|
|
240
|
+
var hasErrors = $this$accumulating.tl();
|
|
241
|
+
// Inline function 'kotlin.also' call
|
|
242
|
+
var this_2 = $this$accumulating.ul(element);
|
|
243
|
+
if (!hasErrors) {
|
|
244
|
+
this_0.x(this_2);
|
|
245
|
+
}
|
|
246
|
+
var res = new Ok(Unit_instance);
|
|
247
|
+
raise_1.xl();
|
|
248
|
+
// Inline function 'arrow.core.identity' call
|
|
249
|
+
tmp_1 = res;
|
|
250
|
+
} catch ($p) {
|
|
251
|
+
var tmp_3;
|
|
252
|
+
if ($p instanceof RaiseCancellationException) {
|
|
253
|
+
var e = $p;
|
|
254
|
+
raise_1.xl();
|
|
255
|
+
var p0 = raisedOrRethrow(e, raise_1).yl_1;
|
|
256
|
+
tmp_3 = this_1.zl(p0);
|
|
257
|
+
} else {
|
|
258
|
+
if ($p instanceof Error) {
|
|
259
|
+
var e_0 = $p;
|
|
260
|
+
raise_1.xl();
|
|
261
|
+
throw nonFatalOrThrow(e_0);
|
|
262
|
+
} else {
|
|
263
|
+
throw $p;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
tmp_1 = tmp_3;
|
|
294
267
|
}
|
|
295
|
-
var
|
|
296
|
-
raise_0.
|
|
268
|
+
var res_0 = tmp_1;
|
|
269
|
+
raise_0.xl();
|
|
297
270
|
// Inline function 'arrow.core.identity' call
|
|
298
|
-
|
|
299
|
-
tmp_0 = res;
|
|
271
|
+
tmp_0 = res_0;
|
|
300
272
|
} catch ($p) {
|
|
301
|
-
var
|
|
273
|
+
var tmp_4;
|
|
302
274
|
if ($p instanceof RaiseCancellationException) {
|
|
303
|
-
var
|
|
304
|
-
raise_0.
|
|
305
|
-
// Inline function 'arrow.core.
|
|
306
|
-
|
|
307
|
-
tmp_1 = error.p(it);
|
|
275
|
+
var e_1 = $p;
|
|
276
|
+
raise_0.xl();
|
|
277
|
+
// Inline function 'arrow.core.identity' call
|
|
278
|
+
tmp_4 = raisedOrRethrow(e_1, raise_0);
|
|
308
279
|
} else {
|
|
309
280
|
if ($p instanceof Error) {
|
|
310
|
-
var
|
|
311
|
-
raise_0.
|
|
312
|
-
throw nonFatalOrThrow(
|
|
281
|
+
var e_2 = $p;
|
|
282
|
+
raise_0.xl();
|
|
283
|
+
throw nonFatalOrThrow(e_2);
|
|
313
284
|
} else {
|
|
314
285
|
throw $p;
|
|
315
286
|
}
|
|
316
287
|
}
|
|
317
|
-
tmp_0 =
|
|
288
|
+
tmp_0 = tmp_4;
|
|
318
289
|
}
|
|
319
290
|
}
|
|
320
|
-
var
|
|
321
|
-
if (
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
291
|
+
var result = Unit_instance;
|
|
292
|
+
if ($this$with.tl()) {
|
|
293
|
+
var tmp0_safe_receiver = $this$with.am();
|
|
294
|
+
if (tmp0_safe_receiver == null)
|
|
295
|
+
null;
|
|
296
|
+
else {
|
|
297
|
+
tmp0_safe_receiver.l1();
|
|
298
|
+
throwKotlinNothingValueException();
|
|
299
|
+
}
|
|
327
300
|
}
|
|
328
|
-
var
|
|
329
|
-
raise.
|
|
330
|
-
|
|
331
|
-
tmp = new Right(res_0);
|
|
301
|
+
var res_1 = this_0.o5();
|
|
302
|
+
raise.xl();
|
|
303
|
+
tmp = new Right(res_1);
|
|
332
304
|
} catch ($p) {
|
|
333
|
-
var
|
|
305
|
+
var tmp_5;
|
|
334
306
|
if ($p instanceof RaiseCancellationException) {
|
|
335
|
-
var
|
|
336
|
-
raise.
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
tmp_2 = new Left(it_0);
|
|
307
|
+
var e_3 = $p;
|
|
308
|
+
raise.xl();
|
|
309
|
+
var it = raisedOrRethrow(e_3, raise);
|
|
310
|
+
tmp_5 = new Left(it);
|
|
340
311
|
} else {
|
|
341
312
|
if ($p instanceof Error) {
|
|
342
|
-
var
|
|
343
|
-
raise.
|
|
344
|
-
throw nonFatalOrThrow(
|
|
313
|
+
var e_4 = $p;
|
|
314
|
+
raise.xl();
|
|
315
|
+
throw nonFatalOrThrow(e_4);
|
|
345
316
|
} else {
|
|
346
317
|
throw $p;
|
|
347
318
|
}
|
|
348
319
|
}
|
|
349
|
-
tmp =
|
|
320
|
+
tmp = tmp_5;
|
|
350
321
|
}
|
|
351
322
|
return tmp;
|
|
352
323
|
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
if (
|
|
356
|
-
|
|
357
|
-
|
|
324
|
+
function collectionSizeOrDefault_0(_this__u8e3s4, default_0) {
|
|
325
|
+
var tmp;
|
|
326
|
+
if (isInterface(_this__u8e3s4, Collection)) {
|
|
327
|
+
tmp = _this__u8e3s4.a1();
|
|
328
|
+
} else {
|
|
329
|
+
tmp = default_0;
|
|
358
330
|
}
|
|
331
|
+
return tmp;
|
|
332
|
+
}
|
|
333
|
+
function flattenOrAccumulate$lambda($$this$recover) {
|
|
334
|
+
return function (it) {
|
|
335
|
+
// Inline function 'arrow.core.nel' call
|
|
336
|
+
var tmp$ret$0 = _NonEmptyList___init__impl__fxd0xp(listOf(it));
|
|
337
|
+
$$this$recover.bm(new NonEmptyList(tmp$ret$0));
|
|
338
|
+
};
|
|
359
339
|
}
|
|
360
|
-
function
|
|
340
|
+
function _NonEmptyList___init__impl__fxd0xp(all) {
|
|
341
|
+
return all;
|
|
361
342
|
}
|
|
362
|
-
function
|
|
363
|
-
NonEmptyList.call($this, list.k(0), drop(list, 1));
|
|
343
|
+
function _NonEmptyList___get_all__impl__pmf509($this) {
|
|
364
344
|
return $this;
|
|
365
345
|
}
|
|
366
|
-
function
|
|
367
|
-
return
|
|
346
|
+
function _NonEmptyList___init__impl__fxd0xp_0(head, tail) {
|
|
347
|
+
return _NonEmptyList___init__impl__fxd0xp(plus(listOf(head), tail));
|
|
348
|
+
}
|
|
349
|
+
function NonEmptyList__equals_impl_crn5lc($this, other) {
|
|
350
|
+
var tmp;
|
|
351
|
+
if (other instanceof NonEmptyList) {
|
|
352
|
+
tmp = equals(_NonEmptyList___get_all__impl__pmf509($this), _NonEmptyList___get_all__impl__pmf509(other.yl_1));
|
|
353
|
+
} else {
|
|
354
|
+
tmp = equals(_NonEmptyList___get_all__impl__pmf509($this), other);
|
|
355
|
+
}
|
|
356
|
+
return tmp;
|
|
357
|
+
}
|
|
358
|
+
function NonEmptyList__hashCode_impl_38rpg4($this) {
|
|
359
|
+
return hashCode(_NonEmptyList___get_all__impl__pmf509($this));
|
|
360
|
+
}
|
|
361
|
+
function NonEmptyList__isEmpty_impl_cueu5k($this) {
|
|
362
|
+
return false;
|
|
363
|
+
}
|
|
364
|
+
function NonEmptyList__toList_impl_t5xcy2($this) {
|
|
365
|
+
return _NonEmptyList___get_all__impl__pmf509($this);
|
|
366
|
+
}
|
|
367
|
+
function _NonEmptyList___get_head__impl__q9oenq($this) {
|
|
368
|
+
return first(_NonEmptyList___get_all__impl__pmf509($this));
|
|
369
|
+
}
|
|
370
|
+
function _NonEmptyList___get_tail__impl__t91bd2($this) {
|
|
371
|
+
return _NonEmptyList___get_all__impl__pmf509($this).l2(1, _NonEmptyList___get_all__impl__pmf509($this).a1());
|
|
372
|
+
}
|
|
373
|
+
function NonEmptyList__plus_impl_xqmb9($this, elements) {
|
|
374
|
+
return _NonEmptyList___init__impl__fxd0xp(plus(_NonEmptyList___get_all__impl__pmf509($this), elements));
|
|
375
|
+
}
|
|
376
|
+
function NonEmptyList__plus_impl_xqmb9_0($this, element) {
|
|
377
|
+
return _NonEmptyList___init__impl__fxd0xp(plus_0(_NonEmptyList___get_all__impl__pmf509($this), element));
|
|
378
|
+
}
|
|
379
|
+
function NonEmptyList__toString_impl_ozxm8z($this) {
|
|
380
|
+
return toString_0(_NonEmptyList___get_all__impl__pmf509($this));
|
|
368
381
|
}
|
|
369
382
|
function Companion_2() {
|
|
370
383
|
Companion_instance_2 = this;
|
|
371
|
-
this.
|
|
384
|
+
this.cm_1 = nonEmptyListOf(Unit_instance, []);
|
|
372
385
|
}
|
|
373
386
|
var Companion_instance_2;
|
|
374
387
|
function Companion_getInstance_2() {
|
|
@@ -376,98 +389,81 @@ function Companion_getInstance_2() {
|
|
|
376
389
|
new Companion_2();
|
|
377
390
|
return Companion_instance_2;
|
|
378
391
|
}
|
|
379
|
-
function
|
|
392
|
+
function NonEmptyList__contains_impl_w1668g($this, element) {
|
|
393
|
+
return $this.u1(element);
|
|
394
|
+
}
|
|
395
|
+
function NonEmptyList__iterator_impl_kgqsin($this) {
|
|
396
|
+
return $this.t();
|
|
397
|
+
}
|
|
398
|
+
function NonEmptyList__get_impl_oqktx($this, index) {
|
|
399
|
+
return $this.f1(index);
|
|
400
|
+
}
|
|
401
|
+
function NonEmptyList__listIterator_impl_8vm28t($this, index) {
|
|
402
|
+
return $this.g1(index);
|
|
403
|
+
}
|
|
404
|
+
function NonEmptyList__subList_impl_8uxff1($this, fromIndex, toIndex) {
|
|
405
|
+
return $this.l2(fromIndex, toIndex);
|
|
406
|
+
}
|
|
407
|
+
function _NonEmptyList___get_size__impl__xcrchh($this) {
|
|
408
|
+
return $this.a1();
|
|
409
|
+
}
|
|
410
|
+
function NonEmptyList(all) {
|
|
380
411
|
Companion_getInstance_2();
|
|
381
|
-
|
|
382
|
-
this.pk_1 = head;
|
|
383
|
-
this.qk_1 = tail;
|
|
384
|
-
this.rk_1 = 1 + this.qk_1.j() | 0;
|
|
412
|
+
this.yl_1 = all;
|
|
385
413
|
}
|
|
386
|
-
protoOf(NonEmptyList).
|
|
387
|
-
return this.
|
|
414
|
+
protoOf(NonEmptyList).equals = function (other) {
|
|
415
|
+
return NonEmptyList__equals_impl_crn5lc(this.yl_1, other);
|
|
388
416
|
};
|
|
389
|
-
protoOf(NonEmptyList).
|
|
390
|
-
return this.
|
|
417
|
+
protoOf(NonEmptyList).hashCode = function () {
|
|
418
|
+
return NonEmptyList__hashCode_impl_38rpg4(this.yl_1);
|
|
391
419
|
};
|
|
392
|
-
protoOf(NonEmptyList).
|
|
393
|
-
|
|
394
|
-
throw IndexOutOfBoundsException_init_$Create$('' + index + ' is not in 1..' + (this.rk_1 - 1 | 0));
|
|
395
|
-
return index === 0 ? this.pk_1 : this.qk_1.k(index - 1 | 0);
|
|
420
|
+
protoOf(NonEmptyList).r = function () {
|
|
421
|
+
return NonEmptyList__isEmpty_impl_cueu5k(this.yl_1);
|
|
396
422
|
};
|
|
397
|
-
protoOf(NonEmptyList).
|
|
398
|
-
return
|
|
423
|
+
protoOf(NonEmptyList).toString = function () {
|
|
424
|
+
return NonEmptyList__toString_impl_ozxm8z(this.yl_1);
|
|
399
425
|
};
|
|
400
|
-
protoOf(NonEmptyList).
|
|
401
|
-
return
|
|
426
|
+
protoOf(NonEmptyList).u1 = function (element) {
|
|
427
|
+
return NonEmptyList__contains_impl_w1668g(this.yl_1, element);
|
|
402
428
|
};
|
|
403
|
-
protoOf(NonEmptyList).
|
|
404
|
-
return
|
|
429
|
+
protoOf(NonEmptyList).t = function () {
|
|
430
|
+
return NonEmptyList__iterator_impl_kgqsin(this.yl_1);
|
|
405
431
|
};
|
|
406
|
-
protoOf(NonEmptyList).
|
|
407
|
-
return
|
|
432
|
+
protoOf(NonEmptyList).f1 = function (index) {
|
|
433
|
+
return NonEmptyList__get_impl_oqktx(this.yl_1, index);
|
|
408
434
|
};
|
|
409
|
-
protoOf(NonEmptyList).
|
|
410
|
-
return
|
|
435
|
+
protoOf(NonEmptyList).g1 = function (index) {
|
|
436
|
+
return NonEmptyList__listIterator_impl_8vm28t(this.yl_1, index);
|
|
411
437
|
};
|
|
412
|
-
protoOf(NonEmptyList).
|
|
413
|
-
return
|
|
438
|
+
protoOf(NonEmptyList).l2 = function (fromIndex, toIndex) {
|
|
439
|
+
return NonEmptyList__subList_impl_8uxff1(this.yl_1, fromIndex, toIndex);
|
|
414
440
|
};
|
|
415
|
-
protoOf(NonEmptyList).
|
|
416
|
-
return
|
|
441
|
+
protoOf(NonEmptyList).a1 = function () {
|
|
442
|
+
return _NonEmptyList___get_size__impl__xcrchh(this.yl_1);
|
|
417
443
|
};
|
|
418
444
|
function nonEmptyListOf(head, t) {
|
|
419
|
-
return
|
|
445
|
+
return _NonEmptyList___init__impl__fxd0xp(plus_1(listOf(head), t));
|
|
420
446
|
}
|
|
421
447
|
function toNonEmptyListOrNull(_this__u8e3s4) {
|
|
422
|
-
|
|
423
|
-
if (!iter.h())
|
|
424
|
-
return null;
|
|
425
|
-
var tmp = iter.i();
|
|
426
|
-
// Inline function 'kotlin.collections.Iterable' call
|
|
427
|
-
var tmp$ret$0 = new _no_name_provided__qut3iv(iter);
|
|
428
|
-
return new NonEmptyList(tmp, toList(tmp$ret$0));
|
|
448
|
+
return wrapAsNonEmptyListOrNull(toList(_this__u8e3s4));
|
|
429
449
|
}
|
|
430
|
-
function
|
|
431
|
-
|
|
450
|
+
function wrapAsNonEmptyListOrNull(_this__u8e3s4) {
|
|
451
|
+
return _this__u8e3s4.r() ? null : _NonEmptyList___init__impl__fxd0xp(_this__u8e3s4);
|
|
432
452
|
}
|
|
433
|
-
protoOf(_no_name_provided__qut3iv).g = function () {
|
|
434
|
-
// Inline function 'arrow.core.toNonEmptyListOrNull.<anonymous>' call
|
|
435
|
-
return this.wk_1;
|
|
436
|
-
};
|
|
437
453
|
function _NonEmptySet___init__impl__248bef(elements) {
|
|
438
454
|
return elements;
|
|
439
455
|
}
|
|
440
456
|
function _NonEmptySet___get_elements__impl__g09gj9($this) {
|
|
441
457
|
return $this;
|
|
442
458
|
}
|
|
443
|
-
function _NonEmptySet___get_size__impl__tvkxr($this) {
|
|
444
|
-
return $this.j();
|
|
445
|
-
}
|
|
446
|
-
function NonEmptySet__contains_impl_tkiyt0($this, element) {
|
|
447
|
-
return $this.o1(element);
|
|
448
|
-
}
|
|
449
|
-
function NonEmptySet__contains_impl_tkiyt0_0($this, element) {
|
|
450
|
-
if (!(element == null ? true : !(element == null)))
|
|
451
|
-
return false;
|
|
452
|
-
return NonEmptySet__contains_impl_tkiyt0($this.xk_1, (element == null ? true : !(element == null)) ? element : THROW_CCE());
|
|
453
|
-
}
|
|
454
|
-
function NonEmptySet__containsAll_impl_kivnxv($this, elements) {
|
|
455
|
-
return $this.e2(elements);
|
|
456
|
-
}
|
|
457
|
-
function NonEmptySet__containsAll_impl_kivnxv_0($this, elements) {
|
|
458
|
-
return NonEmptySet__containsAll_impl_kivnxv($this.xk_1, elements);
|
|
459
|
-
}
|
|
460
|
-
function NonEmptySet__iterator_impl_b1bvkz($this) {
|
|
461
|
-
return $this.g();
|
|
462
|
-
}
|
|
463
459
|
function _NonEmptySet___init__impl__248bef_0(first, rest) {
|
|
464
|
-
return _NonEmptySet___init__impl__248bef(
|
|
460
|
+
return _NonEmptySet___init__impl__248bef(plus_2(setOf(first), rest));
|
|
465
461
|
}
|
|
466
462
|
function NonEmptySet__isEmpty_impl_56jel0($this) {
|
|
467
463
|
return false;
|
|
468
464
|
}
|
|
469
465
|
function NonEmptySet__toString_impl_yfcj6n($this) {
|
|
470
|
-
return
|
|
466
|
+
return toString_0(_NonEmptySet___get_elements__impl__g09gj9($this));
|
|
471
467
|
}
|
|
472
468
|
function NonEmptySet__equals_impl_2ou2p8($this, other) {
|
|
473
469
|
return equals(_NonEmptySet___get_elements__impl__g09gj9($this), other);
|
|
@@ -475,114 +471,113 @@ function NonEmptySet__equals_impl_2ou2p8($this, other) {
|
|
|
475
471
|
function NonEmptySet__hashCode_impl_co6mds($this) {
|
|
476
472
|
return hashCode(_NonEmptySet___get_elements__impl__g09gj9($this));
|
|
477
473
|
}
|
|
474
|
+
function NonEmptySet__map_impl_ngjswd($this, transform) {
|
|
475
|
+
// Inline function 'kotlin.collections.map' call
|
|
476
|
+
var this_0 = _NonEmptySet___get_elements__impl__g09gj9($this);
|
|
477
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
478
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
479
|
+
var _iterator__ex2g4s = this_0.t();
|
|
480
|
+
while (_iterator__ex2g4s.u()) {
|
|
481
|
+
var item = _iterator__ex2g4s.v();
|
|
482
|
+
destination.x(transform(item));
|
|
483
|
+
}
|
|
484
|
+
return _NonEmptyList___init__impl__fxd0xp(destination);
|
|
485
|
+
}
|
|
486
|
+
function NonEmptySet__flatMap_impl_ovm5jg($this, transform) {
|
|
487
|
+
// Inline function 'kotlin.collections.flatMap' call
|
|
488
|
+
var tmp0 = _NonEmptySet___get_elements__impl__g09gj9($this);
|
|
489
|
+
// Inline function 'kotlin.collections.flatMapTo' call
|
|
490
|
+
var destination = ArrayList_init_$Create$_0();
|
|
491
|
+
var _iterator__ex2g4s = tmp0.t();
|
|
492
|
+
while (_iterator__ex2g4s.u()) {
|
|
493
|
+
var element = _iterator__ex2g4s.v();
|
|
494
|
+
var list = transform(element);
|
|
495
|
+
addAll(destination, list);
|
|
496
|
+
}
|
|
497
|
+
return _NonEmptyList___init__impl__fxd0xp(destination);
|
|
498
|
+
}
|
|
499
|
+
function Companion_3() {
|
|
500
|
+
}
|
|
501
|
+
var Companion_instance_3;
|
|
502
|
+
function Companion_getInstance_3() {
|
|
503
|
+
return Companion_instance_3;
|
|
504
|
+
}
|
|
505
|
+
function NonEmptySet__contains_impl_tkiyt0($this, element) {
|
|
506
|
+
return $this.u1(element);
|
|
507
|
+
}
|
|
508
|
+
function NonEmptySet__iterator_impl_b1bvkz($this) {
|
|
509
|
+
return $this.t();
|
|
510
|
+
}
|
|
511
|
+
function NonEmptySet__containsAll_impl_kivnxv($this, elements) {
|
|
512
|
+
return $this.m2(elements);
|
|
513
|
+
}
|
|
514
|
+
function _NonEmptySet___get_size__impl__tvkxr($this) {
|
|
515
|
+
return $this.a1();
|
|
516
|
+
}
|
|
478
517
|
function NonEmptySet(elements) {
|
|
479
|
-
this.
|
|
518
|
+
this.dm_1 = elements;
|
|
480
519
|
}
|
|
481
|
-
protoOf(NonEmptySet).
|
|
482
|
-
return
|
|
520
|
+
protoOf(NonEmptySet).r = function () {
|
|
521
|
+
return NonEmptySet__isEmpty_impl_56jel0(this.dm_1);
|
|
483
522
|
};
|
|
484
|
-
protoOf(NonEmptySet).
|
|
485
|
-
return
|
|
486
|
-
};
|
|
487
|
-
protoOf(NonEmptySet).o1 = function (element) {
|
|
488
|
-
return NonEmptySet__contains_impl_tkiyt0_0(this, element);
|
|
489
|
-
};
|
|
490
|
-
protoOf(NonEmptySet).zk = function (elements) {
|
|
491
|
-
return NonEmptySet__containsAll_impl_kivnxv(this.xk_1, elements);
|
|
523
|
+
protoOf(NonEmptySet).toString = function () {
|
|
524
|
+
return NonEmptySet__toString_impl_yfcj6n(this.dm_1);
|
|
492
525
|
};
|
|
493
|
-
protoOf(NonEmptySet).
|
|
494
|
-
return
|
|
526
|
+
protoOf(NonEmptySet).equals = function (other) {
|
|
527
|
+
return NonEmptySet__equals_impl_2ou2p8(this.dm_1, other);
|
|
495
528
|
};
|
|
496
|
-
protoOf(NonEmptySet).
|
|
497
|
-
return
|
|
529
|
+
protoOf(NonEmptySet).hashCode = function () {
|
|
530
|
+
return NonEmptySet__hashCode_impl_co6mds(this.dm_1);
|
|
498
531
|
};
|
|
499
|
-
protoOf(NonEmptySet).
|
|
500
|
-
return
|
|
532
|
+
protoOf(NonEmptySet).u1 = function (element) {
|
|
533
|
+
return NonEmptySet__contains_impl_tkiyt0(this.dm_1, element);
|
|
501
534
|
};
|
|
502
|
-
protoOf(NonEmptySet).
|
|
503
|
-
return
|
|
535
|
+
protoOf(NonEmptySet).t = function () {
|
|
536
|
+
return NonEmptySet__iterator_impl_b1bvkz(this.dm_1);
|
|
504
537
|
};
|
|
505
|
-
protoOf(NonEmptySet).
|
|
506
|
-
return
|
|
538
|
+
protoOf(NonEmptySet).m2 = function (elements) {
|
|
539
|
+
return NonEmptySet__containsAll_impl_kivnxv(this.dm_1, elements);
|
|
507
540
|
};
|
|
508
|
-
protoOf(NonEmptySet).
|
|
509
|
-
return
|
|
541
|
+
protoOf(NonEmptySet).a1 = function () {
|
|
542
|
+
return _NonEmptySet___get_size__impl__tvkxr(this.dm_1);
|
|
510
543
|
};
|
|
511
544
|
function nonEmptySetOf(first, rest) {
|
|
512
|
-
return _NonEmptySet___init__impl__248bef_0(first,
|
|
545
|
+
return _NonEmptySet___init__impl__248bef_0(first, asIterable(rest));
|
|
513
546
|
}
|
|
514
547
|
function toNonEmptySetOrNull(_this__u8e3s4) {
|
|
515
|
-
|
|
516
|
-
if (!iter.h())
|
|
517
|
-
return null;
|
|
518
|
-
var tmp = iter.i();
|
|
519
|
-
// Inline function 'kotlin.collections.Iterable' call
|
|
520
|
-
var tmp$ret$0 = new _no_name_provided__qut3iv_0(iter);
|
|
521
|
-
return _NonEmptySet___init__impl__248bef_0(tmp, toSet_0(tmp$ret$0));
|
|
522
|
-
}
|
|
523
|
-
function _no_name_provided__qut3iv_0($iter) {
|
|
524
|
-
this.al_1 = $iter;
|
|
525
|
-
}
|
|
526
|
-
protoOf(_no_name_provided__qut3iv_0).g = function () {
|
|
527
|
-
// Inline function 'arrow.core.toNonEmptySetOrNull.<anonymous>' call
|
|
528
|
-
return this.al_1;
|
|
529
|
-
};
|
|
530
|
-
function curried(_this__u8e3s4) {
|
|
531
|
-
return curried$lambda(_this__u8e3s4);
|
|
532
|
-
}
|
|
533
|
-
function curried$lambda$lambda($this_curried, $p1) {
|
|
534
|
-
return function (p2) {
|
|
535
|
-
return $this_curried($p1, p2);
|
|
536
|
-
};
|
|
548
|
+
return wrapAsNonEmptySetOrNull(toSet(_this__u8e3s4));
|
|
537
549
|
}
|
|
538
|
-
function
|
|
539
|
-
return
|
|
540
|
-
return curried$lambda$lambda($this_curried, p1);
|
|
541
|
-
};
|
|
542
|
-
}
|
|
543
|
-
function nonFatalOrThrow(_this__u8e3s4) {
|
|
544
|
-
var tmp;
|
|
545
|
-
if (NonFatal(_this__u8e3s4)) {
|
|
546
|
-
tmp = _this__u8e3s4;
|
|
547
|
-
} else {
|
|
548
|
-
throw _this__u8e3s4;
|
|
549
|
-
}
|
|
550
|
-
return tmp;
|
|
550
|
+
function wrapAsNonEmptySetOrNull(_this__u8e3s4) {
|
|
551
|
+
return _this__u8e3s4.r() ? null : _NonEmptySet___init__impl__248bef(_this__u8e3s4);
|
|
551
552
|
}
|
|
552
553
|
function DefaultRaise(isTraced) {
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
554
|
+
this.vl_1 = isTraced;
|
|
555
|
+
this.wl_1 = new AtomicBoolean(true);
|
|
555
556
|
}
|
|
556
|
-
protoOf(DefaultRaise).
|
|
557
|
-
return this.
|
|
557
|
+
protoOf(DefaultRaise).xl = function () {
|
|
558
|
+
return this.wl_1.il(false);
|
|
558
559
|
};
|
|
559
|
-
protoOf(DefaultRaise).
|
|
560
|
+
protoOf(DefaultRaise).em = function (r) {
|
|
560
561
|
var tmp;
|
|
561
|
-
if (this.
|
|
562
|
-
throw this.
|
|
562
|
+
if (this.wl_1.l1()) {
|
|
563
|
+
throw this.vl_1 ? new Traced(r, this) : NoTrace(r, this);
|
|
563
564
|
} else {
|
|
564
565
|
throw new RaiseLeakedException();
|
|
565
566
|
}
|
|
566
567
|
};
|
|
567
|
-
protoOf(DefaultRaise).
|
|
568
|
-
return this.
|
|
568
|
+
protoOf(DefaultRaise).bm = function (r) {
|
|
569
|
+
return this.em((r == null ? true : !(r == null)) ? r : THROW_CCE());
|
|
569
570
|
};
|
|
570
|
-
function RaiseCancellationException(raised, raise) {
|
|
571
|
-
CancellationException_init_$Init$("kotlin.coroutines.cancellation.CancellationException should never get swallowed. Always re-throw it if captured.This swallows the exception of Arrow's Raise, and leads to unexpected behavior.When working with Arrow prefer Either.catch or arrow.core.raise.catch to automatically rethrow CancellationException.", this);
|
|
572
|
-
captureStack(this, RaiseCancellationException);
|
|
573
|
-
this.el_1 = raised;
|
|
574
|
-
this.fl_1 = raise;
|
|
575
|
-
}
|
|
576
571
|
function raisedOrRethrow(_this__u8e3s4, raise) {
|
|
577
572
|
var tmp;
|
|
578
573
|
var tmp_0;
|
|
579
574
|
if (_this__u8e3s4 instanceof RaiseCancellationException) {
|
|
580
|
-
tmp_0 = _this__u8e3s4.
|
|
575
|
+
tmp_0 = _this__u8e3s4.jm() === raise;
|
|
581
576
|
} else {
|
|
582
577
|
tmp_0 = false;
|
|
583
578
|
}
|
|
584
579
|
if (tmp_0) {
|
|
585
|
-
var tmp_1 = _this__u8e3s4.
|
|
580
|
+
var tmp_1 = _this__u8e3s4.km();
|
|
586
581
|
tmp = (tmp_1 == null ? true : !(tmp_1 == null)) ? tmp_1 : THROW_CCE();
|
|
587
582
|
} else {
|
|
588
583
|
throw _this__u8e3s4;
|
|
@@ -593,10 +588,11 @@ function Traced(raised, raise, cause) {
|
|
|
593
588
|
cause = cause === VOID ? null : cause;
|
|
594
589
|
RaiseCancellationException.call(this, raised, raise);
|
|
595
590
|
captureStack(this, Traced);
|
|
596
|
-
this.
|
|
591
|
+
this.nm_1 = cause;
|
|
592
|
+
delete this.cause;
|
|
597
593
|
}
|
|
598
|
-
protoOf(Traced).
|
|
599
|
-
return this.
|
|
594
|
+
protoOf(Traced).f = function () {
|
|
595
|
+
return this.nm_1;
|
|
600
596
|
};
|
|
601
597
|
function RaiseLeakedException() {
|
|
602
598
|
IllegalStateException_init_$Init$("'raise' or 'bind' was leaked outside of its context scope.\nMake sure all calls to 'raise' and 'bind' occur within the lifecycle of nullable { }, either { } or similar builders.\n\nSee Arrow documentation on 'Typed errors' for further information.", this);
|
|
@@ -604,174 +600,335 @@ function RaiseLeakedException() {
|
|
|
604
600
|
}
|
|
605
601
|
function Raise() {
|
|
606
602
|
}
|
|
607
|
-
function
|
|
608
|
-
|
|
603
|
+
function RaiseAccumulate_init_$Init$(raise, $this) {
|
|
604
|
+
RaiseAccumulate_init_$Init$_0(new ListAccumulate(raise), $this);
|
|
605
|
+
return $this;
|
|
606
|
+
}
|
|
607
|
+
function RaiseAccumulate_init_$Create$(raise) {
|
|
608
|
+
return RaiseAccumulate_init_$Init$(raise, objectCreate(protoOf(RaiseAccumulate)));
|
|
609
|
+
}
|
|
610
|
+
function RaiseAccumulate_init_$Init$_0(listAccumulate, $this) {
|
|
611
|
+
RaiseAccumulate.call($this, listAccumulate, listAccumulate, ListAccumulate$raiseSingle$ref(listAccumulate));
|
|
612
|
+
return $this;
|
|
613
|
+
}
|
|
614
|
+
function Value() {
|
|
615
|
+
}
|
|
616
|
+
function Error_0(raise) {
|
|
617
|
+
Value.call(this);
|
|
618
|
+
this.om_1 = raise;
|
|
619
|
+
}
|
|
620
|
+
protoOf(Error_0).l1 = function () {
|
|
621
|
+
this.om_1();
|
|
622
|
+
return throwKotlinNothingValueException();
|
|
623
|
+
};
|
|
624
|
+
function Ok(value) {
|
|
625
|
+
Value.call(this);
|
|
626
|
+
this.pm_1 = value;
|
|
627
|
+
}
|
|
628
|
+
protoOf(Ok).l1 = function () {
|
|
629
|
+
return this.pm_1;
|
|
630
|
+
};
|
|
631
|
+
function ListAccumulate$raiseSingle$ref(p0) {
|
|
632
|
+
var l = function (_this__u8e3s4) {
|
|
633
|
+
p0.tm(_this__u8e3s4);
|
|
634
|
+
};
|
|
635
|
+
l.callableName = 'raiseSingle';
|
|
636
|
+
return l;
|
|
637
|
+
}
|
|
638
|
+
function RaiseAccumulate$bindAll$lambda($$this$recover) {
|
|
639
|
+
return function (it) {
|
|
640
|
+
// Inline function 'arrow.core.nel' call
|
|
641
|
+
var tmp$ret$0 = _NonEmptyList___init__impl__fxd0xp(listOf(it));
|
|
642
|
+
$$this$recover.bm(new NonEmptyList(tmp$ret$0));
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
function RaiseAccumulate(accumulate, raise, raiseErrorsWith) {
|
|
646
|
+
this.ql_1 = accumulate;
|
|
647
|
+
this.rl_1 = raise;
|
|
648
|
+
this.sl_1 = raiseErrorsWith;
|
|
609
649
|
}
|
|
610
|
-
protoOf(RaiseAccumulate).
|
|
611
|
-
this.
|
|
650
|
+
protoOf(RaiseAccumulate).bm = function (r) {
|
|
651
|
+
this.sl_1(r);
|
|
652
|
+
return throwKotlinNothingValueException();
|
|
612
653
|
};
|
|
613
|
-
protoOf(RaiseAccumulate).
|
|
654
|
+
protoOf(RaiseAccumulate).gm = function (_this__u8e3s4) {
|
|
614
655
|
// Inline function 'arrow.core.raise.RaiseAccumulate.mapOrAccumulate' call
|
|
615
656
|
// Inline function 'arrow.core.raise.mapOrAccumulate' call
|
|
616
|
-
|
|
657
|
+
var tmp0 = this.rl_1;
|
|
617
658
|
// Inline function 'arrow.core.raise.mapOrAccumulate' call
|
|
618
|
-
var
|
|
619
|
-
var iterable = _this__u8e3s4.sk();
|
|
659
|
+
var iterable = _NonEmptyList___get_all__impl__pmf509(_this__u8e3s4);
|
|
620
660
|
// Inline function 'kotlin.collections.buildList' call
|
|
621
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
622
661
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
623
662
|
var capacity = collectionSizeOrDefault_0(iterable, 10);
|
|
624
663
|
checkBuilderCapacity(capacity);
|
|
625
664
|
// Inline function 'kotlin.apply' call
|
|
626
|
-
var
|
|
627
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
628
|
-
// Inline function 'arrow.core.raise.mapOrAccumulate.<anonymous>' call
|
|
665
|
+
var this_0 = ArrayList_init_$Create$(capacity);
|
|
629
666
|
// Inline function 'arrow.core.raise.forEachAccumulatingImpl' call
|
|
630
|
-
var iterator = iterable.
|
|
631
|
-
// Inline function '
|
|
632
|
-
|
|
667
|
+
var iterator = iterable.t();
|
|
668
|
+
// Inline function 'arrow.core.raise.accumulate' call
|
|
669
|
+
// Inline function 'kotlin.with' call
|
|
670
|
+
var $this$with = RaiseAccumulate_init_$Create$(tmp0);
|
|
671
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
633
672
|
// Inline function 'kotlin.collections.iterator' call
|
|
634
|
-
var
|
|
635
|
-
while (
|
|
636
|
-
var
|
|
673
|
+
var _iterator__ex2g4s = iterator;
|
|
674
|
+
while (_iterator__ex2g4s.u()) {
|
|
675
|
+
var element = _iterator__ex2g4s.v();
|
|
676
|
+
// Inline function 'arrow.core.raise.RaiseAccumulate.accumulating' call
|
|
677
|
+
// Inline function 'arrow.core.raise.accumulating' call
|
|
678
|
+
var this_1 = isInterface($this$with, Accumulate) ? $this$with : THROW_CCE();
|
|
679
|
+
// Inline function 'arrow.core.raise.merge' call
|
|
637
680
|
// Inline function 'arrow.core.raise.recover' call
|
|
638
681
|
// Inline function 'arrow.core.raise.fold' call
|
|
639
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
640
682
|
var raise = new DefaultRaise(false);
|
|
641
683
|
var tmp;
|
|
642
684
|
try {
|
|
643
|
-
|
|
644
|
-
// Inline function '
|
|
645
|
-
var
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
685
|
+
// Inline function 'arrow.core.raise.recover' call
|
|
686
|
+
// Inline function 'arrow.core.raise.fold' call
|
|
687
|
+
var raise_0 = new DefaultRaise(false);
|
|
688
|
+
var tmp_0;
|
|
689
|
+
try {
|
|
690
|
+
var tmp_1 = tolerant(this_1, raise);
|
|
691
|
+
var $this$accumulating = new RaiseAccumulate(tmp_1, raise_0, RaiseAccumulate$bindAll$lambda(raise_0));
|
|
692
|
+
var hasErrors = $this$accumulating.tl();
|
|
693
|
+
// Inline function 'kotlin.also' call
|
|
694
|
+
var this_2 = $this$accumulating.fm(element);
|
|
695
|
+
if (!hasErrors) {
|
|
696
|
+
this_0.x(this_2);
|
|
697
|
+
}
|
|
698
|
+
var res = new Ok(Unit_instance);
|
|
699
|
+
raise_0.xl();
|
|
700
|
+
// Inline function 'arrow.core.identity' call
|
|
701
|
+
tmp_0 = res;
|
|
702
|
+
} catch ($p) {
|
|
703
|
+
var tmp_2;
|
|
704
|
+
if ($p instanceof RaiseCancellationException) {
|
|
705
|
+
var e = $p;
|
|
706
|
+
raise_0.xl();
|
|
707
|
+
var p0 = raisedOrRethrow(e, raise_0).yl_1;
|
|
708
|
+
tmp_2 = this_1.zl(p0);
|
|
709
|
+
} else {
|
|
710
|
+
if ($p instanceof Error) {
|
|
711
|
+
var e_0 = $p;
|
|
712
|
+
raise_0.xl();
|
|
713
|
+
throw nonFatalOrThrow(e_0);
|
|
714
|
+
} else {
|
|
715
|
+
throw $p;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
tmp_0 = tmp_2;
|
|
653
719
|
}
|
|
654
|
-
var
|
|
655
|
-
raise.
|
|
720
|
+
var res_0 = tmp_0;
|
|
721
|
+
raise.xl();
|
|
656
722
|
// Inline function 'arrow.core.identity' call
|
|
657
|
-
|
|
658
|
-
tmp = res;
|
|
723
|
+
tmp = res_0;
|
|
659
724
|
} catch ($p) {
|
|
660
|
-
var
|
|
725
|
+
var tmp_3;
|
|
661
726
|
if ($p instanceof RaiseCancellationException) {
|
|
662
|
-
var
|
|
663
|
-
raise.
|
|
664
|
-
// Inline function 'arrow.core.
|
|
665
|
-
|
|
666
|
-
tmp_0 = error.p(it);
|
|
727
|
+
var e_1 = $p;
|
|
728
|
+
raise.xl();
|
|
729
|
+
// Inline function 'arrow.core.identity' call
|
|
730
|
+
tmp_3 = raisedOrRethrow(e_1, raise);
|
|
667
731
|
} else {
|
|
668
732
|
if ($p instanceof Error) {
|
|
669
|
-
var
|
|
670
|
-
raise.
|
|
671
|
-
throw nonFatalOrThrow(
|
|
733
|
+
var e_2 = $p;
|
|
734
|
+
raise.xl();
|
|
735
|
+
throw nonFatalOrThrow(e_2);
|
|
672
736
|
} else {
|
|
673
737
|
throw $p;
|
|
674
738
|
}
|
|
675
739
|
}
|
|
676
|
-
tmp =
|
|
740
|
+
tmp = tmp_3;
|
|
677
741
|
}
|
|
678
742
|
}
|
|
679
|
-
var
|
|
680
|
-
if (
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
var tmp$ret$15 = this_1.q5();
|
|
688
|
-
var value = toNonEmptyListOrNull(tmp$ret$15);
|
|
689
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
690
|
-
var tmp$ret$17;
|
|
691
|
-
$l$block: {
|
|
692
|
-
// Inline function 'kotlin.requireNotNull' call
|
|
693
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
694
|
-
if (value == null) {
|
|
695
|
-
// Inline function 'kotlin.requireNotNull.<anonymous>' call
|
|
696
|
-
var message = 'Required value was null.';
|
|
697
|
-
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
698
|
-
} else {
|
|
699
|
-
tmp$ret$17 = value;
|
|
700
|
-
break $l$block;
|
|
743
|
+
var result = Unit_instance;
|
|
744
|
+
if ($this$with.tl()) {
|
|
745
|
+
var tmp0_safe_receiver = $this$with.am();
|
|
746
|
+
if (tmp0_safe_receiver == null)
|
|
747
|
+
null;
|
|
748
|
+
else {
|
|
749
|
+
tmp0_safe_receiver.l1();
|
|
750
|
+
throwKotlinNothingValueException();
|
|
701
751
|
}
|
|
702
752
|
}
|
|
703
|
-
|
|
753
|
+
// Inline function 'kotlin.let' call
|
|
754
|
+
var p0_0 = this_0.o5();
|
|
755
|
+
return _NonEmptyList___init__impl__fxd0xp(p0_0);
|
|
756
|
+
};
|
|
757
|
+
protoOf(RaiseAccumulate).ul = function (_this__u8e3s4) {
|
|
758
|
+
// Inline function 'kotlin.with' call
|
|
759
|
+
return this.rl_1.fm(_this__u8e3s4);
|
|
760
|
+
};
|
|
761
|
+
protoOf(RaiseAccumulate).zl = function (errors) {
|
|
762
|
+
return this.ql_1.zl(errors);
|
|
763
|
+
};
|
|
764
|
+
protoOf(RaiseAccumulate).tl = function () {
|
|
765
|
+
return this.ql_1.tl();
|
|
766
|
+
};
|
|
767
|
+
protoOf(RaiseAccumulate).am = function () {
|
|
768
|
+
return this.ql_1.am();
|
|
769
|
+
};
|
|
770
|
+
function Accumulate() {
|
|
771
|
+
}
|
|
772
|
+
function ListAccumulate$error$lambda(this$0) {
|
|
773
|
+
return function () {
|
|
774
|
+
this$0.qm_1.bm(new NonEmptyList(_NonEmptyList___init__impl__fxd0xp(this$0.rm_1)));
|
|
775
|
+
};
|
|
776
|
+
}
|
|
777
|
+
function ListAccumulate(raise) {
|
|
778
|
+
this.qm_1 = raise;
|
|
779
|
+
var tmp = this;
|
|
780
|
+
// Inline function 'kotlin.collections.mutableListOf' call
|
|
781
|
+
tmp.rm_1 = ArrayList_init_$Create$_0();
|
|
782
|
+
var tmp_0 = this;
|
|
783
|
+
tmp_0.sm_1 = new Error_0(ListAccumulate$error$lambda(this));
|
|
784
|
+
}
|
|
785
|
+
protoOf(ListAccumulate).tm = function (r) {
|
|
786
|
+
this.qm_1.bm(new NonEmptyList(_NonEmptyList___init__impl__fxd0xp(plus_0(this.rm_1, r))));
|
|
704
787
|
};
|
|
705
|
-
protoOf(
|
|
788
|
+
protoOf(ListAccumulate).um = function (r) {
|
|
789
|
+
this.qm_1.bm(new NonEmptyList(_NonEmptyList___init__impl__fxd0xp(plus(this.rm_1, _NonEmptyList___get_all__impl__pmf509(r)))));
|
|
790
|
+
};
|
|
791
|
+
protoOf(ListAccumulate).bm = function (r) {
|
|
792
|
+
return this.um(r instanceof NonEmptyList ? r.yl_1 : THROW_CCE());
|
|
793
|
+
};
|
|
794
|
+
protoOf(ListAccumulate).zl = function (errors) {
|
|
795
|
+
this.rm_1.e1(new NonEmptyList(errors));
|
|
796
|
+
return this.sm_1;
|
|
797
|
+
};
|
|
798
|
+
protoOf(ListAccumulate).am = function () {
|
|
799
|
+
// Inline function 'kotlin.takeIf' call
|
|
800
|
+
var this_0 = this.sm_1;
|
|
706
801
|
var tmp;
|
|
707
|
-
|
|
708
|
-
|
|
802
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
803
|
+
if (!this.rm_1.r()) {
|
|
804
|
+
tmp = this_0;
|
|
709
805
|
} else {
|
|
710
|
-
|
|
711
|
-
tmp = _this__u8e3s4.ek_1;
|
|
712
|
-
} else {
|
|
713
|
-
noWhenBranchMatchedException();
|
|
714
|
-
}
|
|
806
|
+
tmp = null;
|
|
715
807
|
}
|
|
716
808
|
return tmp;
|
|
717
809
|
};
|
|
718
|
-
function
|
|
810
|
+
function tolerant(_this__u8e3s4, raise) {
|
|
811
|
+
return new TolerantAccumulate(_this__u8e3s4, raise);
|
|
812
|
+
}
|
|
813
|
+
function TolerantAccumulate$accumulateAll$lambda(this$0, $error) {
|
|
814
|
+
return function () {
|
|
815
|
+
this$0.wm_1.bm($error);
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
function TolerantAccumulate$_get_latestError_$lambda_m5qmvg(this$0, $error) {
|
|
819
|
+
return function () {
|
|
820
|
+
this$0.wm_1.bm($error);
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
function TolerantAccumulate(underlying, raise) {
|
|
824
|
+
this.vm_1 = underlying;
|
|
825
|
+
this.wm_1 = raise;
|
|
826
|
+
}
|
|
827
|
+
protoOf(TolerantAccumulate).zl = function (errors) {
|
|
828
|
+
var error = this.vm_1.zl(errors);
|
|
829
|
+
return new Error_0(TolerantAccumulate$accumulateAll$lambda(this, error));
|
|
830
|
+
};
|
|
831
|
+
protoOf(TolerantAccumulate).am = function () {
|
|
832
|
+
var tmp0_elvis_lhs = this.vm_1.am();
|
|
719
833
|
var tmp;
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
tmp_0 = true;
|
|
834
|
+
if (tmp0_elvis_lhs == null) {
|
|
835
|
+
return null;
|
|
723
836
|
} else {
|
|
724
|
-
|
|
837
|
+
tmp = tmp0_elvis_lhs;
|
|
725
838
|
}
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
839
|
+
var error = tmp;
|
|
840
|
+
return new Error_0(TolerantAccumulate$_get_latestError_$lambda_m5qmvg(this, error));
|
|
841
|
+
};
|
|
842
|
+
function NoTrace(raised, raise) {
|
|
843
|
+
// Inline function 'arrow.core.raise.RaiseCancellationExceptionLike.Companion.invoke' call
|
|
844
|
+
// Inline function 'arrow.core.raise.arrow_core_raise_RaiseCancellationExceptionLike_Companion_4uj3tt_invoke_jkqnwo' call
|
|
845
|
+
var surrogateError = {raised: raised, raise: raise};
|
|
846
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
847
|
+
var cancellationExceptionPrototype = RaiseCancellationException.prototype;
|
|
848
|
+
// Inline function 'kotlin.require' call
|
|
849
|
+
if (!Reflect.setPrototypeOf(surrogateError, cancellationExceptionPrototype)) {
|
|
850
|
+
var message = 'Unknown error occurred while setting the prototype of constructed JS RaiseCancellationException. Please report this to the Arrow maintainers!';
|
|
851
|
+
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
730
852
|
}
|
|
731
|
-
|
|
853
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
854
|
+
surrogateError.message = "kotlin.coroutines.cancellation.CancellationException should never get swallowed. Always re-throw it if captured.This swallows the exception of Arrow's Raise, and leads to unexpected behavior.When working with Arrow prefer Either.catch or arrow.core.raise.catch to automatically rethrow CancellationException.";
|
|
855
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
856
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
857
|
+
return surrogateError;
|
|
732
858
|
}
|
|
733
|
-
function
|
|
734
|
-
|
|
735
|
-
captureStack(this,
|
|
859
|
+
function RaiseCancellationException(raised, raise) {
|
|
860
|
+
CancellationException_init_$Init$("kotlin.coroutines.cancellation.CancellationException should never get swallowed. Always re-throw it if captured.This swallows the exception of Arrow's Raise, and leads to unexpected behavior.When working with Arrow prefer Either.catch or arrow.core.raise.catch to automatically rethrow CancellationException.", this);
|
|
861
|
+
captureStack(this, RaiseCancellationException);
|
|
862
|
+
this.hm_1 = raised;
|
|
863
|
+
this.im_1 = raise;
|
|
736
864
|
}
|
|
865
|
+
protoOf(RaiseCancellationException).km = function () {
|
|
866
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
867
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
868
|
+
var tmp1_elvis_lhs = this == null ? null : this.raised;
|
|
869
|
+
return tmp1_elvis_lhs == null ? this.hm_1 : tmp1_elvis_lhs;
|
|
870
|
+
};
|
|
871
|
+
protoOf(RaiseCancellationException).jm = function () {
|
|
872
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
873
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
874
|
+
var tmp1_elvis_lhs = this == null ? null : this.raise;
|
|
875
|
+
return tmp1_elvis_lhs == null ? this.im_1 : tmp1_elvis_lhs;
|
|
876
|
+
};
|
|
737
877
|
//region block: post-declaration
|
|
738
|
-
protoOf(
|
|
739
|
-
protoOf(
|
|
740
|
-
protoOf(DefaultRaise).cl = bind;
|
|
741
|
-
protoOf(DefaultRaise).dl = bindAll;
|
|
878
|
+
protoOf(DefaultRaise).fm = bind;
|
|
879
|
+
protoOf(DefaultRaise).gm = bindAll;
|
|
742
880
|
defineProp(protoOf(Traced), 'cause', function () {
|
|
743
|
-
return this.
|
|
881
|
+
return this.f();
|
|
744
882
|
});
|
|
745
|
-
protoOf(RaiseAccumulate).
|
|
883
|
+
protoOf(RaiseAccumulate).fm = bind;
|
|
884
|
+
protoOf(ListAccumulate).tl = get_hasAccumulatedErrors;
|
|
885
|
+
protoOf(ListAccumulate).fm = bind;
|
|
886
|
+
protoOf(ListAccumulate).gm = bindAll;
|
|
887
|
+
protoOf(TolerantAccumulate).tl = get_hasAccumulatedErrors;
|
|
746
888
|
//endregion
|
|
747
889
|
//region block: init
|
|
890
|
+
Companion_instance = new Companion();
|
|
748
891
|
Companion_instance_1 = new Companion_1();
|
|
892
|
+
Companion_instance_3 = new Companion_3();
|
|
749
893
|
//endregion
|
|
750
894
|
//region block: exports
|
|
751
895
|
export {
|
|
896
|
+
Accumulate as Accumulatetn22lb890sw8,
|
|
752
897
|
DefaultRaise as DefaultRaisevd10gc79qxh8,
|
|
898
|
+
Ok as Ok34wu1ak8me96e,
|
|
753
899
|
RaiseAccumulate as RaiseAccumulate2o7u6yworjh4r,
|
|
754
900
|
RaiseCancellationException as RaiseCancellationException3n5raogfhbd1l,
|
|
755
901
|
raisedOrRethrow as raisedOrRethrow397oyvsdde7oq,
|
|
902
|
+
tolerant as tolerant3ssb6n4boclwz,
|
|
756
903
|
Left as Left2oemzq1tpcg4i,
|
|
757
904
|
Right as Right351sh2v8odavg,
|
|
758
905
|
NonEmptyList as NonEmptyList3ak25ihy2gcvs,
|
|
759
906
|
NonEmptySet as NonEmptySet1rtvr2guloo52,
|
|
760
907
|
collectionSizeOrDefault_0 as collectionSizeOrDefault1zz83yvv4yhu7,
|
|
761
|
-
curried as curriedvu30mssefbqd,
|
|
762
908
|
flattenOrAccumulate as flattenOrAccumulate2y8lovwjnlzgc,
|
|
763
909
|
left as left3pixsqou14wpr,
|
|
764
910
|
nonEmptyListOf as nonEmptyListOf17xawqyzwrlrt,
|
|
765
911
|
nonEmptySetOf as nonEmptySetOf3p7fhmt51pz4b,
|
|
766
|
-
nonFatalOrThrow as nonFatalOrThrow35agffkx4bbtz,
|
|
767
912
|
right as right2w60qw9uivnyr,
|
|
768
913
|
toNonEmptyListOrNull as toNonEmptyListOrNull2ovnnazjb3msz,
|
|
769
914
|
toNonEmptySetOrNull as toNonEmptySetOrNull1tjnd9jrkd4bs,
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
915
|
+
RaiseAccumulate_init_$Create$ as RaiseAccumulate_init_$Create$3rhazzjk88u9p,
|
|
916
|
+
_NonEmptyList___init__impl__fxd0xp as _NonEmptyList___init__impl__fxd0xp3qwfhfa83yk9f,
|
|
917
|
+
_NonEmptyList___init__impl__fxd0xp_0 as _NonEmptyList___init__impl__fxd0xp24i0hfob3w7cz,
|
|
918
|
+
_NonEmptyList___get_all__impl__pmf509 as _NonEmptyList___get_all__impl__pmf5092svcdxelgy1aa,
|
|
919
|
+
NonEmptyList__hashCode_impl_38rpg4 as NonEmptyList__hashCode_impl_38rpg43o7ncsaqtj80v,
|
|
920
|
+
_NonEmptyList___get_head__impl__q9oenq as _NonEmptyList___get_head__impl__q9oenqsmg81ccx44c4,
|
|
921
|
+
NonEmptyList__plus_impl_xqmb9 as NonEmptyList__plus_impl_xqmb91y38uyofmba13,
|
|
922
|
+
NonEmptyList__plus_impl_xqmb9_0 as NonEmptyList__plus_impl_xqmb92tle8a7jcf2wm,
|
|
923
|
+
_NonEmptyList___get_tail__impl__t91bd2 as _NonEmptyList___get_tail__impl__t91bd2au7n33fchlyi,
|
|
924
|
+
NonEmptyList__toList_impl_t5xcy2 as NonEmptyList__toList_impl_t5xcy2362qtlja6arn8,
|
|
925
|
+
NonEmptyList__toString_impl_ozxm8z as NonEmptyList__toString_impl_ozxm8z3fpdpo2u5moub,
|
|
926
|
+
NonEmptySet__flatMap_impl_ovm5jg as NonEmptySet__flatMap_impl_ovm5jg1j1barqpxmulx,
|
|
927
|
+
NonEmptySet__hashCode_impl_co6mds as NonEmptySet__hashCode_impl_co6mds289rsl9k37rro,
|
|
928
|
+
NonEmptySet__map_impl_ngjswd as NonEmptySet__map_impl_ngjswdysdff23qrf5g,
|
|
929
|
+
NonEmptySet__toString_impl_yfcj6n as NonEmptySet__toString_impl_yfcj6n10o2ez3sxh9oh,
|
|
930
|
+
Companion_instance_1 as Companion_instance139l85s51p6ol,
|
|
931
|
+
Companion_getInstance_0 as Companion_getInstance2kuapxztveanf,
|
|
775
932
|
};
|
|
776
933
|
//endregion
|
|
777
934
|
|