@cruglobal/godtools-shared 1.2.0-PR799-SNAPSHOT.1777 → 1.2.0-PR810-SNAPSHOT.1769
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/Kermit-kermit-core.js +50 -50
- package/Kermit-kermit.js +10 -10
- package/antlr-kotlin-antlr-kotlin-runtime.js +3155 -3155
- package/colormath-root-colormath.js +709 -1926
- package/colormath-root-colormath.js.map +1 -1
- package/fluid-locale.js +159 -159
- package/kotlin-js.js +39 -39
- package/kotlin-kotlin-stdlib.js +1980 -2109
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-common.js +3 -3
- package/kotlin-mpp-godtools-tool-parser-module-parser-base.js +733 -0
- package/kotlin-mpp-godtools-tool-parser-module-parser-base.js.map +1 -0
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +408 -408
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +3177 -3235
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +17 -18
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.js +7 -7
- package/kotlinx-atomicfu.js +24 -24
- package/kotlinx-coroutines-core.js +2839 -2839
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
- package/android-gto-support-gto-support-fluidsonic-locale.js +0 -22
- package/android-gto-support-gto-support-fluidsonic-locale.js.map +0 -1
- package/kotlin-mpp-godtools-tool-parser-module-state.js +0 -636
- package/kotlin-mpp-godtools-tool-parser-module-state.js.map +0 -1
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-coroutines-core.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-coroutines-core.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-module-parser-base'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-parser-base'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-module-parser-base'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-parser-base'.");
|
|
12
|
+
}
|
|
13
|
+
globalThis['kotlin-mpp-godtools-tool-parser-module-parser-base'] = factory(typeof globalThis['kotlin-mpp-godtools-tool-parser-module-parser-base'] === 'undefined' ? {} : globalThis['kotlin-mpp-godtools-tool-parser-module-parser-base'], globalThis['kotlin-kotlin-stdlib'], globalThis['kotlinx-coroutines-core']);
|
|
14
|
+
}
|
|
15
|
+
}(function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core) {
|
|
16
|
+
'use strict';
|
|
17
|
+
//region block: imports
|
|
18
|
+
var imul = Math.imul;
|
|
19
|
+
var protoOf = kotlin_kotlin.$_$.t6;
|
|
20
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.f6;
|
|
21
|
+
var VOID = kotlin_kotlin.$_$.d;
|
|
22
|
+
var listOf = kotlin_kotlin.$_$.d4;
|
|
23
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.b3;
|
|
24
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
25
|
+
var Unit_instance = kotlin_kotlin.$_$.k2;
|
|
26
|
+
var equals = kotlin_kotlin.$_$.r7;
|
|
27
|
+
var getStringHashCode = kotlin_kotlin.$_$.c6;
|
|
28
|
+
var initMetadataForClass = kotlin_kotlin.$_$.e6;
|
|
29
|
+
var defineProp = kotlin_kotlin.$_$.w5;
|
|
30
|
+
var CoroutineImpl = kotlin_kotlin.$_$.k5;
|
|
31
|
+
var THROW_CCE = kotlin_kotlin.$_$.d9;
|
|
32
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v4;
|
|
33
|
+
var initMetadataForLambda = kotlin_kotlin.$_$.i6;
|
|
34
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.g6;
|
|
35
|
+
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.n;
|
|
36
|
+
var objectCreate = kotlin_kotlin.$_$.s6;
|
|
37
|
+
var equals_0 = kotlin_kotlin.$_$.x5;
|
|
38
|
+
var FunctionAdapter = kotlin_kotlin.$_$.o5;
|
|
39
|
+
var isInterface = kotlin_kotlin.$_$.m6;
|
|
40
|
+
var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
|
|
41
|
+
var hashCode = kotlin_kotlin.$_$.d6;
|
|
42
|
+
var first = kotlin_kotlin.$_$.s3;
|
|
43
|
+
var MutableSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
|
|
44
|
+
var onSubscription = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
|
|
45
|
+
var conflate = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
|
|
46
|
+
var flowOf = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
|
|
47
|
+
var emptyList = kotlin_kotlin.$_$.l3;
|
|
48
|
+
var toList = kotlin_kotlin.$_$.q4;
|
|
49
|
+
var plus = kotlin_kotlin.$_$.i4;
|
|
50
|
+
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.h;
|
|
51
|
+
//endregion
|
|
52
|
+
//region block: pre-declaration
|
|
53
|
+
initMetadataForCompanion(Companion);
|
|
54
|
+
initMetadataForClass(EventId, 'EventId');
|
|
55
|
+
initMetadataForLambda(State$varsChangeFlow$o$collect$slambda, CoroutineImpl, VOID, [1]);
|
|
56
|
+
initMetadataForCoroutine($collectCOROUTINE$0, CoroutineImpl);
|
|
57
|
+
initMetadataForLambda(State$varsChangeFlow$o$collect$slambda_1, CoroutineImpl, VOID, [1]);
|
|
58
|
+
initMetadataForCoroutine($collectCOROUTINE$1, CoroutineImpl);
|
|
59
|
+
initMetadataForLambda(State$varsChangeFlow$o$collect$slambda_3, CoroutineImpl, VOID, [1]);
|
|
60
|
+
initMetadataForCoroutine($collectCOROUTINE$2, CoroutineImpl);
|
|
61
|
+
initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
|
|
62
|
+
initMetadataForLambda(State$varsChangeFlow$slambda, CoroutineImpl, VOID, [1]);
|
|
63
|
+
initMetadataForClass(State$varsChangeFlow$$inlined$filter$1, VOID, VOID, VOID, VOID, [1]);
|
|
64
|
+
initMetadataForClass(State$varsChangeFlow$$inlined$map$1, VOID, VOID, VOID, VOID, [1]);
|
|
65
|
+
initMetadataForClass(State$varsChangeFlow$$inlined$map$2, VOID, VOID, VOID, VOID, [1]);
|
|
66
|
+
initMetadataForClass(State, 'State', createState);
|
|
67
|
+
//endregion
|
|
68
|
+
function Companion() {
|
|
69
|
+
Companion_instance = this;
|
|
70
|
+
this.l1i_1 = 'followup';
|
|
71
|
+
this.NAMESPACE_STATE = 'state';
|
|
72
|
+
this.FOLLOWUP = new EventId('followup', 'send');
|
|
73
|
+
}
|
|
74
|
+
protoOf(Companion).m1i = function () {
|
|
75
|
+
return this.NAMESPACE_STATE;
|
|
76
|
+
};
|
|
77
|
+
protoOf(Companion).n1i = function () {
|
|
78
|
+
return this.FOLLOWUP;
|
|
79
|
+
};
|
|
80
|
+
var Companion_instance;
|
|
81
|
+
function Companion_getInstance() {
|
|
82
|
+
if (Companion_instance == null)
|
|
83
|
+
new Companion();
|
|
84
|
+
return Companion_instance;
|
|
85
|
+
}
|
|
86
|
+
function EventId(namespace, name) {
|
|
87
|
+
Companion_getInstance();
|
|
88
|
+
namespace = namespace === VOID ? null : namespace;
|
|
89
|
+
this.namespace = namespace;
|
|
90
|
+
this.name = name;
|
|
91
|
+
}
|
|
92
|
+
protoOf(EventId).o1i = function () {
|
|
93
|
+
return this.namespace;
|
|
94
|
+
};
|
|
95
|
+
protoOf(EventId).w1 = function () {
|
|
96
|
+
return this.name;
|
|
97
|
+
};
|
|
98
|
+
protoOf(EventId).resolve = function (state) {
|
|
99
|
+
var tmp;
|
|
100
|
+
if (this.namespace === 'state') {
|
|
101
|
+
// Inline function 'kotlin.collections.map' call
|
|
102
|
+
var this_0 = state.s1i(this.name);
|
|
103
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
104
|
+
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
105
|
+
var _iterator__ex2g4s = this_0.j();
|
|
106
|
+
while (_iterator__ex2g4s.k()) {
|
|
107
|
+
var item = _iterator__ex2g4s.l();
|
|
108
|
+
var tmp$ret$0 = new EventId(VOID, item);
|
|
109
|
+
destination.e(tmp$ret$0);
|
|
110
|
+
}
|
|
111
|
+
tmp = destination;
|
|
112
|
+
} else {
|
|
113
|
+
tmp = listOf(this);
|
|
114
|
+
}
|
|
115
|
+
return tmp;
|
|
116
|
+
};
|
|
117
|
+
protoOf(EventId).equals = function (other) {
|
|
118
|
+
var tmp;
|
|
119
|
+
var tmp_0;
|
|
120
|
+
if (other instanceof EventId) {
|
|
121
|
+
tmp_0 = this.namespace == other.namespace;
|
|
122
|
+
} else {
|
|
123
|
+
tmp_0 = false;
|
|
124
|
+
}
|
|
125
|
+
if (tmp_0) {
|
|
126
|
+
tmp = equals(this.name, other.name, true);
|
|
127
|
+
} else {
|
|
128
|
+
tmp = false;
|
|
129
|
+
}
|
|
130
|
+
return tmp;
|
|
131
|
+
};
|
|
132
|
+
protoOf(EventId).hashCode = function () {
|
|
133
|
+
var tmp0_safe_receiver = this.namespace;
|
|
134
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : getStringHashCode(tmp0_safe_receiver);
|
|
135
|
+
var tmp = imul(tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs, 31);
|
|
136
|
+
// Inline function 'kotlin.text.lowercase' call
|
|
137
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
138
|
+
var tmp$ret$1 = this.name.toLowerCase();
|
|
139
|
+
return tmp + getStringHashCode(tmp$ret$1) | 0;
|
|
140
|
+
};
|
|
141
|
+
protoOf(EventId).toString = function () {
|
|
142
|
+
return !(this.namespace == null) ? '' + this.namespace + ':' + this.name : this.name;
|
|
143
|
+
};
|
|
144
|
+
function State$varsChangeFlow$o$collect$slambda($$this$unsafeFlow, $keys, resultContinuation) {
|
|
145
|
+
this.b1j_1 = $$this$unsafeFlow;
|
|
146
|
+
this.c1j_1 = $keys;
|
|
147
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
148
|
+
}
|
|
149
|
+
protoOf(State$varsChangeFlow$o$collect$slambda).z1d = function (value, $completion) {
|
|
150
|
+
var tmp = this.a1e(value, $completion);
|
|
151
|
+
tmp.i8_1 = Unit_instance;
|
|
152
|
+
tmp.j8_1 = null;
|
|
153
|
+
return tmp.o8();
|
|
154
|
+
};
|
|
155
|
+
protoOf(State$varsChangeFlow$o$collect$slambda).w8 = function (p1, $completion) {
|
|
156
|
+
return this.z1d((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
157
|
+
};
|
|
158
|
+
protoOf(State$varsChangeFlow$o$collect$slambda).o8 = function () {
|
|
159
|
+
var suspendResult = this.i8_1;
|
|
160
|
+
$sm: do
|
|
161
|
+
try {
|
|
162
|
+
var tmp = this.g8_1;
|
|
163
|
+
switch (tmp) {
|
|
164
|
+
case 0:
|
|
165
|
+
this.h8_1 = 5;
|
|
166
|
+
var tmp_0 = this;
|
|
167
|
+
tmp_0.e1j_1 = this.b1j_1;
|
|
168
|
+
var tmp_1 = this;
|
|
169
|
+
tmp_1.f1j_1 = this.d1j_1;
|
|
170
|
+
this.g8_1 = 1;
|
|
171
|
+
continue $sm;
|
|
172
|
+
case 1:
|
|
173
|
+
this.h1j_1 = this.e1j_1;
|
|
174
|
+
this.i1j_1 = this.f1j_1;
|
|
175
|
+
var it = this.i1j_1;
|
|
176
|
+
if (this.c1j_1.f1(it)) {
|
|
177
|
+
this.g8_1 = 3;
|
|
178
|
+
suspendResult = this.h1j_1.v12(this.i1j_1, this);
|
|
179
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
180
|
+
return suspendResult;
|
|
181
|
+
}
|
|
182
|
+
continue $sm;
|
|
183
|
+
} else {
|
|
184
|
+
this.g8_1 = 2;
|
|
185
|
+
continue $sm;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
case 2:
|
|
189
|
+
this.g1j_1 = Unit_instance;
|
|
190
|
+
if (false) {
|
|
191
|
+
this.g8_1 = 1;
|
|
192
|
+
continue $sm;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
this.g8_1 = 4;
|
|
196
|
+
continue $sm;
|
|
197
|
+
case 3:
|
|
198
|
+
this.g1j_1 = suspendResult;
|
|
199
|
+
this.g8_1 = 4;
|
|
200
|
+
continue $sm;
|
|
201
|
+
case 4:
|
|
202
|
+
return Unit_instance;
|
|
203
|
+
case 5:
|
|
204
|
+
throw this.j8_1;
|
|
205
|
+
}
|
|
206
|
+
} catch ($p) {
|
|
207
|
+
var e = $p;
|
|
208
|
+
if (this.h8_1 === 5) {
|
|
209
|
+
throw e;
|
|
210
|
+
} else {
|
|
211
|
+
this.g8_1 = this.h8_1;
|
|
212
|
+
this.j8_1 = e;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
while (true);
|
|
216
|
+
};
|
|
217
|
+
protoOf(State$varsChangeFlow$o$collect$slambda).a1e = function (value, completion) {
|
|
218
|
+
var i = new State$varsChangeFlow$o$collect$slambda(this.b1j_1, this.c1j_1, completion);
|
|
219
|
+
i.d1j_1 = value;
|
|
220
|
+
return i;
|
|
221
|
+
};
|
|
222
|
+
function State$varsChangeFlow$o$collect$slambda_0($$this$unsafeFlow, $keys, resultContinuation) {
|
|
223
|
+
var i = new State$varsChangeFlow$o$collect$slambda($$this$unsafeFlow, $keys, resultContinuation);
|
|
224
|
+
var l = function (value, $completion) {
|
|
225
|
+
return i.z1d(value, $completion);
|
|
226
|
+
};
|
|
227
|
+
l.$arity = 1;
|
|
228
|
+
return l;
|
|
229
|
+
}
|
|
230
|
+
function $collectCOROUTINE$0(_this__u8e3s4, collector, resultContinuation) {
|
|
231
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
232
|
+
this.r1j_1 = _this__u8e3s4;
|
|
233
|
+
this.s1j_1 = collector;
|
|
234
|
+
}
|
|
235
|
+
protoOf($collectCOROUTINE$0).o8 = function () {
|
|
236
|
+
var suspendResult = this.i8_1;
|
|
237
|
+
$sm: do
|
|
238
|
+
try {
|
|
239
|
+
var tmp = this.g8_1;
|
|
240
|
+
switch (tmp) {
|
|
241
|
+
case 0:
|
|
242
|
+
this.h8_1 = 2;
|
|
243
|
+
var tmp_0 = this;
|
|
244
|
+
tmp_0.t1j_1 = this.s1j_1;
|
|
245
|
+
this.u1j_1 = this.t1j_1;
|
|
246
|
+
this.g8_1 = 1;
|
|
247
|
+
var tmp_1 = State$varsChangeFlow$o$collect$slambda_0(this.u1j_1, this.r1j_1.w1j_1, null);
|
|
248
|
+
suspendResult = this.r1j_1.v1j_1.x12(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
249
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
250
|
+
return suspendResult;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
continue $sm;
|
|
254
|
+
case 1:
|
|
255
|
+
return Unit_instance;
|
|
256
|
+
case 2:
|
|
257
|
+
throw this.j8_1;
|
|
258
|
+
}
|
|
259
|
+
} catch ($p) {
|
|
260
|
+
var e = $p;
|
|
261
|
+
if (this.h8_1 === 2) {
|
|
262
|
+
throw e;
|
|
263
|
+
} else {
|
|
264
|
+
this.g8_1 = this.h8_1;
|
|
265
|
+
this.j8_1 = e;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
while (true);
|
|
269
|
+
};
|
|
270
|
+
function State$varsChangeFlow$o$collect$slambda_1($$this$unsafeFlow, resultContinuation) {
|
|
271
|
+
this.f1k_1 = $$this$unsafeFlow;
|
|
272
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
273
|
+
}
|
|
274
|
+
protoOf(State$varsChangeFlow$o$collect$slambda_1).z1d = function (value, $completion) {
|
|
275
|
+
var tmp = this.a1e(value, $completion);
|
|
276
|
+
tmp.i8_1 = Unit_instance;
|
|
277
|
+
tmp.j8_1 = null;
|
|
278
|
+
return tmp.o8();
|
|
279
|
+
};
|
|
280
|
+
protoOf(State$varsChangeFlow$o$collect$slambda_1).w8 = function (p1, $completion) {
|
|
281
|
+
return this.z1d((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
282
|
+
};
|
|
283
|
+
protoOf(State$varsChangeFlow$o$collect$slambda_1).o8 = function () {
|
|
284
|
+
var suspendResult = this.i8_1;
|
|
285
|
+
$sm: do
|
|
286
|
+
try {
|
|
287
|
+
var tmp = this.g8_1;
|
|
288
|
+
switch (tmp) {
|
|
289
|
+
case 0:
|
|
290
|
+
this.h8_1 = 2;
|
|
291
|
+
var tmp_0 = this;
|
|
292
|
+
tmp_0.h1k_1 = this.f1k_1;
|
|
293
|
+
var tmp_1 = this;
|
|
294
|
+
tmp_1.i1k_1 = this.g1k_1;
|
|
295
|
+
this.j1k_1 = this.h1k_1;
|
|
296
|
+
this.k1k_1 = this.i1k_1;
|
|
297
|
+
this.g8_1 = 1;
|
|
298
|
+
this.k1k_1;
|
|
299
|
+
suspendResult = this.j1k_1.v12(Unit_instance, this);
|
|
300
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
301
|
+
return suspendResult;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
continue $sm;
|
|
305
|
+
case 1:
|
|
306
|
+
return Unit_instance;
|
|
307
|
+
case 2:
|
|
308
|
+
throw this.j8_1;
|
|
309
|
+
}
|
|
310
|
+
} catch ($p) {
|
|
311
|
+
var e = $p;
|
|
312
|
+
if (this.h8_1 === 2) {
|
|
313
|
+
throw e;
|
|
314
|
+
} else {
|
|
315
|
+
this.g8_1 = this.h8_1;
|
|
316
|
+
this.j8_1 = e;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
while (true);
|
|
320
|
+
};
|
|
321
|
+
protoOf(State$varsChangeFlow$o$collect$slambda_1).a1e = function (value, completion) {
|
|
322
|
+
var i = new State$varsChangeFlow$o$collect$slambda_1(this.f1k_1, completion);
|
|
323
|
+
i.g1k_1 = value;
|
|
324
|
+
return i;
|
|
325
|
+
};
|
|
326
|
+
function State$varsChangeFlow$o$collect$slambda_2($$this$unsafeFlow, resultContinuation) {
|
|
327
|
+
var i = new State$varsChangeFlow$o$collect$slambda_1($$this$unsafeFlow, resultContinuation);
|
|
328
|
+
var l = function (value, $completion) {
|
|
329
|
+
return i.z1d(value, $completion);
|
|
330
|
+
};
|
|
331
|
+
l.$arity = 1;
|
|
332
|
+
return l;
|
|
333
|
+
}
|
|
334
|
+
function $collectCOROUTINE$1(_this__u8e3s4, collector, resultContinuation) {
|
|
335
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
336
|
+
this.t1k_1 = _this__u8e3s4;
|
|
337
|
+
this.u1k_1 = collector;
|
|
338
|
+
}
|
|
339
|
+
protoOf($collectCOROUTINE$1).o8 = function () {
|
|
340
|
+
var suspendResult = this.i8_1;
|
|
341
|
+
$sm: do
|
|
342
|
+
try {
|
|
343
|
+
var tmp = this.g8_1;
|
|
344
|
+
switch (tmp) {
|
|
345
|
+
case 0:
|
|
346
|
+
this.h8_1 = 2;
|
|
347
|
+
var tmp_0 = this;
|
|
348
|
+
tmp_0.v1k_1 = this.u1k_1;
|
|
349
|
+
this.w1k_1 = this.v1k_1;
|
|
350
|
+
this.g8_1 = 1;
|
|
351
|
+
var tmp_1 = State$varsChangeFlow$o$collect$slambda_2(this.w1k_1, null);
|
|
352
|
+
suspendResult = this.t1k_1.x1k_1.x12(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
353
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
354
|
+
return suspendResult;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
continue $sm;
|
|
358
|
+
case 1:
|
|
359
|
+
return Unit_instance;
|
|
360
|
+
case 2:
|
|
361
|
+
throw this.j8_1;
|
|
362
|
+
}
|
|
363
|
+
} catch ($p) {
|
|
364
|
+
var e = $p;
|
|
365
|
+
if (this.h8_1 === 2) {
|
|
366
|
+
throw e;
|
|
367
|
+
} else {
|
|
368
|
+
this.g8_1 = this.h8_1;
|
|
369
|
+
this.j8_1 = e;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
while (true);
|
|
373
|
+
};
|
|
374
|
+
function State$varsChangeFlow$o$collect$slambda_3($$this$unsafeFlow, $block, this$0, resultContinuation) {
|
|
375
|
+
this.g1l_1 = $$this$unsafeFlow;
|
|
376
|
+
this.h1l_1 = $block;
|
|
377
|
+
this.i1l_1 = this$0;
|
|
378
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
379
|
+
}
|
|
380
|
+
protoOf(State$varsChangeFlow$o$collect$slambda_3).z1d = function (value, $completion) {
|
|
381
|
+
var tmp = this.a1e(value, $completion);
|
|
382
|
+
tmp.i8_1 = Unit_instance;
|
|
383
|
+
tmp.j8_1 = null;
|
|
384
|
+
return tmp.o8();
|
|
385
|
+
};
|
|
386
|
+
protoOf(State$varsChangeFlow$o$collect$slambda_3).w8 = function (p1, $completion) {
|
|
387
|
+
return this.z1d((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
388
|
+
};
|
|
389
|
+
protoOf(State$varsChangeFlow$o$collect$slambda_3).o8 = function () {
|
|
390
|
+
var suspendResult = this.i8_1;
|
|
391
|
+
$sm: do
|
|
392
|
+
try {
|
|
393
|
+
var tmp = this.g8_1;
|
|
394
|
+
switch (tmp) {
|
|
395
|
+
case 0:
|
|
396
|
+
this.h8_1 = 2;
|
|
397
|
+
var tmp_0 = this;
|
|
398
|
+
tmp_0.k1l_1 = this.g1l_1;
|
|
399
|
+
var tmp_1 = this;
|
|
400
|
+
tmp_1.l1l_1 = this.j1l_1;
|
|
401
|
+
this.m1l_1 = this.k1l_1;
|
|
402
|
+
this.n1l_1 = this.l1l_1;
|
|
403
|
+
this.g8_1 = 1;
|
|
404
|
+
this.n1l_1;
|
|
405
|
+
suspendResult = this.m1l_1.v12(this.h1l_1(this.i1l_1), this);
|
|
406
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
407
|
+
return suspendResult;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
continue $sm;
|
|
411
|
+
case 1:
|
|
412
|
+
return Unit_instance;
|
|
413
|
+
case 2:
|
|
414
|
+
throw this.j8_1;
|
|
415
|
+
}
|
|
416
|
+
} catch ($p) {
|
|
417
|
+
var e = $p;
|
|
418
|
+
if (this.h8_1 === 2) {
|
|
419
|
+
throw e;
|
|
420
|
+
} else {
|
|
421
|
+
this.g8_1 = this.h8_1;
|
|
422
|
+
this.j8_1 = e;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
while (true);
|
|
426
|
+
};
|
|
427
|
+
protoOf(State$varsChangeFlow$o$collect$slambda_3).a1e = function (value, completion) {
|
|
428
|
+
var i = new State$varsChangeFlow$o$collect$slambda_3(this.g1l_1, this.h1l_1, this.i1l_1, completion);
|
|
429
|
+
i.j1l_1 = value;
|
|
430
|
+
return i;
|
|
431
|
+
};
|
|
432
|
+
function State$varsChangeFlow$o$collect$slambda_4($$this$unsafeFlow, $block, this$0, resultContinuation) {
|
|
433
|
+
var i = new State$varsChangeFlow$o$collect$slambda_3($$this$unsafeFlow, $block, this$0, resultContinuation);
|
|
434
|
+
var l = function (value, $completion) {
|
|
435
|
+
return i.z1d(value, $completion);
|
|
436
|
+
};
|
|
437
|
+
l.$arity = 1;
|
|
438
|
+
return l;
|
|
439
|
+
}
|
|
440
|
+
function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
|
|
441
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
442
|
+
this.w1l_1 = _this__u8e3s4;
|
|
443
|
+
this.x1l_1 = collector;
|
|
444
|
+
}
|
|
445
|
+
protoOf($collectCOROUTINE$2).o8 = function () {
|
|
446
|
+
var suspendResult = this.i8_1;
|
|
447
|
+
$sm: do
|
|
448
|
+
try {
|
|
449
|
+
var tmp = this.g8_1;
|
|
450
|
+
switch (tmp) {
|
|
451
|
+
case 0:
|
|
452
|
+
this.h8_1 = 2;
|
|
453
|
+
var tmp_0 = this;
|
|
454
|
+
tmp_0.y1l_1 = this.x1l_1;
|
|
455
|
+
this.z1l_1 = this.y1l_1;
|
|
456
|
+
this.g8_1 = 1;
|
|
457
|
+
var tmp_1 = State$varsChangeFlow$o$collect$slambda_4(this.z1l_1, this.w1l_1.b1m_1, this.w1l_1.c1m_1, null);
|
|
458
|
+
suspendResult = this.w1l_1.a1m_1.x12(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
|
|
459
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
460
|
+
return suspendResult;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
continue $sm;
|
|
464
|
+
case 1:
|
|
465
|
+
return Unit_instance;
|
|
466
|
+
case 2:
|
|
467
|
+
throw this.j8_1;
|
|
468
|
+
}
|
|
469
|
+
} catch ($p) {
|
|
470
|
+
var e = $p;
|
|
471
|
+
if (this.h8_1 === 2) {
|
|
472
|
+
throw e;
|
|
473
|
+
} else {
|
|
474
|
+
this.g8_1 = this.h8_1;
|
|
475
|
+
this.j8_1 = e;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
while (true);
|
|
479
|
+
};
|
|
480
|
+
function State_init_$Init$($this) {
|
|
481
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
482
|
+
var tmp$ret$0 = LinkedHashMap_init_$Create$();
|
|
483
|
+
State.call($this, VOID, tmp$ret$0);
|
|
484
|
+
return $this;
|
|
485
|
+
}
|
|
486
|
+
function createState() {
|
|
487
|
+
return State_init_$Init$(objectCreate(protoOf(State)));
|
|
488
|
+
}
|
|
489
|
+
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
490
|
+
this.d1m_1 = function_0;
|
|
491
|
+
}
|
|
492
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).v12 = function (value, $completion) {
|
|
493
|
+
return this.d1m_1(value, $completion);
|
|
494
|
+
};
|
|
495
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).s2 = function () {
|
|
496
|
+
return this.d1m_1;
|
|
497
|
+
};
|
|
498
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
|
|
499
|
+
var tmp;
|
|
500
|
+
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
501
|
+
var tmp_0;
|
|
502
|
+
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
503
|
+
tmp_0 = equals_0(this.s2(), other.s2());
|
|
504
|
+
} else {
|
|
505
|
+
tmp_0 = false;
|
|
506
|
+
}
|
|
507
|
+
tmp = tmp_0;
|
|
508
|
+
} else {
|
|
509
|
+
tmp = false;
|
|
510
|
+
}
|
|
511
|
+
return tmp;
|
|
512
|
+
};
|
|
513
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
|
|
514
|
+
return hashCode(this.s2());
|
|
515
|
+
};
|
|
516
|
+
function State$varsChangeFlow$slambda($keys, resultContinuation) {
|
|
517
|
+
this.m1m_1 = $keys;
|
|
518
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
519
|
+
}
|
|
520
|
+
protoOf(State$varsChangeFlow$slambda).o1m = function ($this$onSubscription, $completion) {
|
|
521
|
+
var tmp = this.p1m($this$onSubscription, $completion);
|
|
522
|
+
tmp.i8_1 = Unit_instance;
|
|
523
|
+
tmp.j8_1 = null;
|
|
524
|
+
return tmp.o8();
|
|
525
|
+
};
|
|
526
|
+
protoOf(State$varsChangeFlow$slambda).w8 = function (p1, $completion) {
|
|
527
|
+
return this.o1m((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
528
|
+
};
|
|
529
|
+
protoOf(State$varsChangeFlow$slambda).o8 = function () {
|
|
530
|
+
var suspendResult = this.i8_1;
|
|
531
|
+
$sm: do
|
|
532
|
+
try {
|
|
533
|
+
var tmp = this.g8_1;
|
|
534
|
+
switch (tmp) {
|
|
535
|
+
case 0:
|
|
536
|
+
this.h8_1 = 2;
|
|
537
|
+
this.g8_1 = 1;
|
|
538
|
+
suspendResult = this.n1m_1.v12(first(this.m1m_1), this);
|
|
539
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
540
|
+
return suspendResult;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
continue $sm;
|
|
544
|
+
case 1:
|
|
545
|
+
return Unit_instance;
|
|
546
|
+
case 2:
|
|
547
|
+
throw this.j8_1;
|
|
548
|
+
}
|
|
549
|
+
} catch ($p) {
|
|
550
|
+
var e = $p;
|
|
551
|
+
if (this.h8_1 === 2) {
|
|
552
|
+
throw e;
|
|
553
|
+
} else {
|
|
554
|
+
this.g8_1 = this.h8_1;
|
|
555
|
+
this.j8_1 = e;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
while (true);
|
|
559
|
+
};
|
|
560
|
+
protoOf(State$varsChangeFlow$slambda).p1m = function ($this$onSubscription, completion) {
|
|
561
|
+
var i = new State$varsChangeFlow$slambda(this.m1m_1, completion);
|
|
562
|
+
i.n1m_1 = $this$onSubscription;
|
|
563
|
+
return i;
|
|
564
|
+
};
|
|
565
|
+
function State$varsChangeFlow$slambda_0($keys, resultContinuation) {
|
|
566
|
+
var i = new State$varsChangeFlow$slambda($keys, resultContinuation);
|
|
567
|
+
var l = function ($this$onSubscription, $completion) {
|
|
568
|
+
return i.o1m($this$onSubscription, $completion);
|
|
569
|
+
};
|
|
570
|
+
l.$arity = 1;
|
|
571
|
+
return l;
|
|
572
|
+
}
|
|
573
|
+
function State$varsChangeFlow$$inlined$filter$1($this, $keys) {
|
|
574
|
+
this.v1j_1 = $this;
|
|
575
|
+
this.w1j_1 = $keys;
|
|
576
|
+
}
|
|
577
|
+
protoOf(State$varsChangeFlow$$inlined$filter$1).w12 = function (collector, $completion) {
|
|
578
|
+
var tmp = new $collectCOROUTINE$0(this, collector, $completion);
|
|
579
|
+
tmp.i8_1 = Unit_instance;
|
|
580
|
+
tmp.j8_1 = null;
|
|
581
|
+
return tmp.o8();
|
|
582
|
+
};
|
|
583
|
+
protoOf(State$varsChangeFlow$$inlined$filter$1).x12 = function (collector, $completion) {
|
|
584
|
+
return this.w12(collector, $completion);
|
|
585
|
+
};
|
|
586
|
+
function State$varsChangeFlow$$inlined$map$1($this) {
|
|
587
|
+
this.x1k_1 = $this;
|
|
588
|
+
}
|
|
589
|
+
protoOf(State$varsChangeFlow$$inlined$map$1).w12 = function (collector, $completion) {
|
|
590
|
+
var tmp = new $collectCOROUTINE$1(this, collector, $completion);
|
|
591
|
+
tmp.i8_1 = Unit_instance;
|
|
592
|
+
tmp.j8_1 = null;
|
|
593
|
+
return tmp.o8();
|
|
594
|
+
};
|
|
595
|
+
protoOf(State$varsChangeFlow$$inlined$map$1).x12 = function (collector, $completion) {
|
|
596
|
+
return this.w12(collector, $completion);
|
|
597
|
+
};
|
|
598
|
+
function State$varsChangeFlow$$inlined$map$2($this, $block, this$0) {
|
|
599
|
+
this.a1m_1 = $this;
|
|
600
|
+
this.b1m_1 = $block;
|
|
601
|
+
this.c1m_1 = this$0;
|
|
602
|
+
}
|
|
603
|
+
protoOf(State$varsChangeFlow$$inlined$map$2).w12 = function (collector, $completion) {
|
|
604
|
+
var tmp = new $collectCOROUTINE$2(this, collector, $completion);
|
|
605
|
+
tmp.i8_1 = Unit_instance;
|
|
606
|
+
tmp.j8_1 = null;
|
|
607
|
+
return tmp.o8();
|
|
608
|
+
};
|
|
609
|
+
protoOf(State$varsChangeFlow$$inlined$map$2).x12 = function (collector, $completion) {
|
|
610
|
+
return this.w12(collector, $completion);
|
|
611
|
+
};
|
|
612
|
+
function State(triggeredAnalyticsEvents, vars) {
|
|
613
|
+
var tmp;
|
|
614
|
+
if (triggeredAnalyticsEvents === VOID) {
|
|
615
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
616
|
+
tmp = LinkedHashMap_init_$Create$();
|
|
617
|
+
} else {
|
|
618
|
+
tmp = triggeredAnalyticsEvents;
|
|
619
|
+
}
|
|
620
|
+
triggeredAnalyticsEvents = tmp;
|
|
621
|
+
var tmp_0;
|
|
622
|
+
if (vars === VOID) {
|
|
623
|
+
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
624
|
+
tmp_0 = LinkedHashMap_init_$Create$();
|
|
625
|
+
} else {
|
|
626
|
+
tmp_0 = vars;
|
|
627
|
+
}
|
|
628
|
+
vars = tmp_0;
|
|
629
|
+
this.p1i_1 = triggeredAnalyticsEvents;
|
|
630
|
+
this.q1i_1 = vars;
|
|
631
|
+
this.r1i_1 = MutableSharedFlow(VOID, 2147483647);
|
|
632
|
+
}
|
|
633
|
+
protoOf(State).q1m = function (id) {
|
|
634
|
+
var tmp0_elvis_lhs = this.p1i_1.q1(id);
|
|
635
|
+
return tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
636
|
+
};
|
|
637
|
+
protoOf(State).r1m = function (id) {
|
|
638
|
+
var tmp0 = this.p1i_1;
|
|
639
|
+
var tmp0_elvis_lhs = this.p1i_1.q1(id);
|
|
640
|
+
// Inline function 'kotlin.collections.set' call
|
|
641
|
+
var value = (tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs) + 1 | 0;
|
|
642
|
+
tmp0.d3(id, value);
|
|
643
|
+
};
|
|
644
|
+
protoOf(State).s1m = function (keys, block) {
|
|
645
|
+
var tmp;
|
|
646
|
+
// Inline function 'kotlin.collections.isNullOrEmpty' call
|
|
647
|
+
if (keys == null || keys.p()) {
|
|
648
|
+
tmp = flowOf(Unit_instance);
|
|
649
|
+
} else {
|
|
650
|
+
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
651
|
+
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
652
|
+
var this_0 = onSubscription(this.r1i_1, State$varsChangeFlow$slambda_0(keys, null));
|
|
653
|
+
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
654
|
+
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
655
|
+
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
656
|
+
var this_1 = new State$varsChangeFlow$$inlined$filter$1(this_0, keys);
|
|
657
|
+
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
658
|
+
var tmp$ret$6 = new State$varsChangeFlow$$inlined$map$1(this_1);
|
|
659
|
+
tmp = conflate(tmp$ret$6);
|
|
660
|
+
}
|
|
661
|
+
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
662
|
+
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
663
|
+
var this_2 = tmp;
|
|
664
|
+
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
665
|
+
return new State$varsChangeFlow$$inlined$map$2(this_2, block, this);
|
|
666
|
+
};
|
|
667
|
+
protoOf(State).varsChangeFlow$default = function (keys, block, $super) {
|
|
668
|
+
keys = keys === VOID ? emptyList() : keys;
|
|
669
|
+
return $super === VOID ? this.s1m(keys, block) : $super.s1m.call(this, keys, block);
|
|
670
|
+
};
|
|
671
|
+
protoOf(State).s1i = function (key) {
|
|
672
|
+
// Inline function 'kotlin.collections.orEmpty' call
|
|
673
|
+
var tmp0_elvis_lhs = this.q1i_1.q1(key);
|
|
674
|
+
return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
675
|
+
};
|
|
676
|
+
protoOf(State).t1m = function (key, values) {
|
|
677
|
+
var tmp0 = this.q1i_1;
|
|
678
|
+
// Inline function 'kotlin.collections.set' call
|
|
679
|
+
var value = values == null ? null : toList(values);
|
|
680
|
+
tmp0.d3(key, value);
|
|
681
|
+
this.r1i_1.f15(key);
|
|
682
|
+
};
|
|
683
|
+
protoOf(State).u1m = function (key, value) {
|
|
684
|
+
var values = this.s1i(key);
|
|
685
|
+
if (!values.f1(value)) {
|
|
686
|
+
this.t1m(key, plus(values, value));
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
protoOf(State).v1m = function (key, value) {
|
|
690
|
+
var values = this.s1i(key);
|
|
691
|
+
if (values.f1(value)) {
|
|
692
|
+
// Inline function 'kotlin.collections.filterNot' call
|
|
693
|
+
// Inline function 'kotlin.collections.filterNotTo' call
|
|
694
|
+
var destination = ArrayList_init_$Create$_0();
|
|
695
|
+
var _iterator__ex2g4s = values.j();
|
|
696
|
+
while (_iterator__ex2g4s.k()) {
|
|
697
|
+
var element = _iterator__ex2g4s.l();
|
|
698
|
+
if (!(element === value)) {
|
|
699
|
+
destination.e(element);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
this.t1m(key, destination);
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
//region block: exports
|
|
706
|
+
function $jsExportAll$(_) {
|
|
707
|
+
var $org = _.org || (_.org = {});
|
|
708
|
+
var $org$cru = $org.cru || ($org.cru = {});
|
|
709
|
+
var $org$cru$godtools = $org$cru.godtools || ($org$cru.godtools = {});
|
|
710
|
+
var $org$cru$godtools$shared = $org$cru$godtools.shared || ($org$cru$godtools.shared = {});
|
|
711
|
+
var $org$cru$godtools$shared$tool = $org$cru$godtools$shared.tool || ($org$cru$godtools$shared.tool = {});
|
|
712
|
+
var $org$cru$godtools$shared$tool$parser = $org$cru$godtools$shared$tool.parser || ($org$cru$godtools$shared$tool.parser = {});
|
|
713
|
+
var $org$cru$godtools$shared$tool$parser$model = $org$cru$godtools$shared$tool$parser.model || ($org$cru$godtools$shared$tool$parser.model = {});
|
|
714
|
+
$org$cru$godtools$shared$tool$parser$model.EventId = EventId;
|
|
715
|
+
defineProp($org$cru$godtools$shared$tool$parser$model.EventId, 'Companion', Companion_getInstance);
|
|
716
|
+
var $org = _.org || (_.org = {});
|
|
717
|
+
var $org$cru = $org.cru || ($org.cru = {});
|
|
718
|
+
var $org$cru$godtools = $org$cru.godtools || ($org$cru.godtools = {});
|
|
719
|
+
var $org$cru$godtools$shared = $org$cru$godtools.shared || ($org$cru$godtools.shared = {});
|
|
720
|
+
var $org$cru$godtools$shared$tool = $org$cru$godtools$shared.tool || ($org$cru$godtools$shared.tool = {});
|
|
721
|
+
var $org$cru$godtools$shared$tool$state = $org$cru$godtools$shared$tool.state || ($org$cru$godtools$shared$tool.state = {});
|
|
722
|
+
$org$cru$godtools$shared$tool$state.State = State;
|
|
723
|
+
$org$cru$godtools$shared$tool$state.State.createState = createState;
|
|
724
|
+
}
|
|
725
|
+
$jsExportAll$(_);
|
|
726
|
+
_.$jsExportAll$ = $jsExportAll$;
|
|
727
|
+
_.$_$ = _.$_$ || {};
|
|
728
|
+
_.$_$.a = EventId;
|
|
729
|
+
//endregion
|
|
730
|
+
return _;
|
|
731
|
+
}));
|
|
732
|
+
|
|
733
|
+
//# sourceMappingURL=kotlin-mpp-godtools-tool-parser-module-parser-base.js.map
|