@cruglobal/godtools-shared 1.2.0-SNAPSHOT.1772 → 1.2.0-SNAPSHOT.1776

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/Kermit-kermit-core.js +40 -40
  2. package/Kermit-kermit.js +5 -5
  3. package/antlr-kotlin-antlr-kotlin-runtime.js +3308 -3303
  4. package/antlr-kotlin-antlr-kotlin-runtime.js.map +1 -1
  5. package/colormath-root-colormath.js +557 -557
  6. package/fluid-locale.js +133 -133
  7. package/kotlin-kotlin-stdlib.js +381 -493
  8. package/kotlin-kotlin-stdlib.js.map +1 -1
  9. package/kotlin-mpp-godtools-tool-parser-module-common.js +2 -2
  10. package/kotlin-mpp-godtools-tool-parser-module-parser-base.js +9 -637
  11. package/kotlin-mpp-godtools-tool-parser-module-parser-base.js.map +1 -1
  12. package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +396 -396
  13. package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js.map +1 -1
  14. package/kotlin-mpp-godtools-tool-parser-module-parser.js +2214 -2214
  15. package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
  16. package/kotlin-mpp-godtools-tool-parser-module-renderer-state.js +636 -0
  17. package/kotlin-mpp-godtools-tool-parser-module-renderer-state.js.map +1 -0
  18. package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +143 -144
  19. package/kotlin-mpp-godtools-tool-parser-publishing-npm.js +8 -4
  20. package/kotlin-mpp-godtools-tool-parser-publishing-npm.js.map +1 -1
  21. package/kotlinx-atomicfu.js +14 -14
  22. package/kotlinx-coroutines-core.js +2158 -2158
  23. package/kotlinx-coroutines-core.js.map +1 -1
  24. package/package.json +1 -1
  25. package/kotlin-js.js +0 -147
  26. package/kotlin-js.js.map +0 -1
  27. package/seskar-core.js +0 -15
  28. package/seskar-core.js.map +0 -1
  29. package/seskar-react.js +0 -15
  30. package/seskar-react.js.map +0 -1
@@ -0,0 +1,636 @@
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-renderer-state'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-renderer-state'.");
9
+ }
10
+ if (typeof globalThis['kotlinx-coroutines-core'] === 'undefined') {
11
+ throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-module-renderer-state'. Its dependency 'kotlinx-coroutines-core' was not found. Please, check whether 'kotlinx-coroutines-core' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-renderer-state'.");
12
+ }
13
+ globalThis['kotlin-mpp-godtools-tool-parser-module-renderer-state'] = factory(typeof globalThis['kotlin-mpp-godtools-tool-parser-module-renderer-state'] === 'undefined' ? {} : globalThis['kotlin-mpp-godtools-tool-parser-module-renderer-state'], 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 CoroutineImpl = kotlin_kotlin.$_$.k5;
19
+ var Unit_instance = kotlin_kotlin.$_$.k2;
20
+ var protoOf = kotlin_kotlin.$_$.t6;
21
+ var THROW_CCE = kotlin_kotlin.$_$.b9;
22
+ var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.v4;
23
+ var initMetadataForLambda = kotlin_kotlin.$_$.i6;
24
+ var VOID = kotlin_kotlin.$_$.d;
25
+ var initMetadataForCoroutine = kotlin_kotlin.$_$.g6;
26
+ var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.n;
27
+ var objectCreate = kotlin_kotlin.$_$.s6;
28
+ var equals = kotlin_kotlin.$_$.x5;
29
+ var FunctionAdapter = kotlin_kotlin.$_$.o5;
30
+ var isInterface = kotlin_kotlin.$_$.m6;
31
+ var FlowCollector = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.g;
32
+ var hashCode = kotlin_kotlin.$_$.d6;
33
+ var initMetadataForClass = kotlin_kotlin.$_$.e6;
34
+ var first = kotlin_kotlin.$_$.s3;
35
+ var MutableSharedFlow = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.h;
36
+ var onSubscription = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.o;
37
+ var conflate = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j;
38
+ var flowOf = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.l;
39
+ var emptyList = kotlin_kotlin.$_$.l3;
40
+ var toList = kotlin_kotlin.$_$.q4;
41
+ var plus = kotlin_kotlin.$_$.i4;
42
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
43
+ //endregion
44
+ //region block: pre-declaration
45
+ initMetadataForLambda(State$varsChangeFlow$o$collect$slambda, CoroutineImpl, VOID, [1]);
46
+ initMetadataForCoroutine($collectCOROUTINE$0, CoroutineImpl);
47
+ initMetadataForLambda(State$varsChangeFlow$o$collect$slambda_1, CoroutineImpl, VOID, [1]);
48
+ initMetadataForCoroutine($collectCOROUTINE$1, CoroutineImpl);
49
+ initMetadataForLambda(State$varsChangeFlow$o$collect$slambda_3, CoroutineImpl, VOID, [1]);
50
+ initMetadataForCoroutine($collectCOROUTINE$2, CoroutineImpl);
51
+ initMetadataForClass(sam$kotlinx_coroutines_flow_FlowCollector$0, 'sam$kotlinx_coroutines_flow_FlowCollector$0', VOID, VOID, [FlowCollector, FunctionAdapter], [1]);
52
+ initMetadataForLambda(State$varsChangeFlow$slambda, CoroutineImpl, VOID, [1]);
53
+ initMetadataForClass(State$varsChangeFlow$$inlined$filter$1, VOID, VOID, VOID, VOID, [1]);
54
+ initMetadataForClass(State$varsChangeFlow$$inlined$map$1, VOID, VOID, VOID, VOID, [1]);
55
+ initMetadataForClass(State$varsChangeFlow$$inlined$map$2, VOID, VOID, VOID, VOID, [1]);
56
+ initMetadataForClass(State, 'State', createState);
57
+ //endregion
58
+ function State$varsChangeFlow$o$collect$slambda($$this$unsafeFlow, $keys, resultContinuation) {
59
+ this.r1i_1 = $$this$unsafeFlow;
60
+ this.s1i_1 = $keys;
61
+ CoroutineImpl.call(this, resultContinuation);
62
+ }
63
+ protoOf(State$varsChangeFlow$o$collect$slambda).x1d = function (value, $completion) {
64
+ var tmp = this.y1d(value, $completion);
65
+ tmp.i8_1 = Unit_instance;
66
+ tmp.j8_1 = null;
67
+ return tmp.o8();
68
+ };
69
+ protoOf(State$varsChangeFlow$o$collect$slambda).w8 = function (p1, $completion) {
70
+ return this.x1d((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
71
+ };
72
+ protoOf(State$varsChangeFlow$o$collect$slambda).o8 = function () {
73
+ var suspendResult = this.i8_1;
74
+ $sm: do
75
+ try {
76
+ var tmp = this.g8_1;
77
+ switch (tmp) {
78
+ case 0:
79
+ this.h8_1 = 5;
80
+ var tmp_0 = this;
81
+ tmp_0.u1i_1 = this.r1i_1;
82
+ var tmp_1 = this;
83
+ tmp_1.v1i_1 = this.t1i_1;
84
+ this.g8_1 = 1;
85
+ continue $sm;
86
+ case 1:
87
+ this.x1i_1 = this.u1i_1;
88
+ this.y1i_1 = this.v1i_1;
89
+ var it = this.y1i_1;
90
+ if (this.s1i_1.f1(it)) {
91
+ this.g8_1 = 3;
92
+ suspendResult = this.x1i_1.t12(this.y1i_1, this);
93
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
94
+ return suspendResult;
95
+ }
96
+ continue $sm;
97
+ } else {
98
+ this.g8_1 = 2;
99
+ continue $sm;
100
+ }
101
+
102
+ case 2:
103
+ this.w1i_1 = Unit_instance;
104
+ if (false) {
105
+ this.g8_1 = 1;
106
+ continue $sm;
107
+ }
108
+
109
+ this.g8_1 = 4;
110
+ continue $sm;
111
+ case 3:
112
+ this.w1i_1 = suspendResult;
113
+ this.g8_1 = 4;
114
+ continue $sm;
115
+ case 4:
116
+ return Unit_instance;
117
+ case 5:
118
+ throw this.j8_1;
119
+ }
120
+ } catch ($p) {
121
+ var e = $p;
122
+ if (this.h8_1 === 5) {
123
+ throw e;
124
+ } else {
125
+ this.g8_1 = this.h8_1;
126
+ this.j8_1 = e;
127
+ }
128
+ }
129
+ while (true);
130
+ };
131
+ protoOf(State$varsChangeFlow$o$collect$slambda).y1d = function (value, completion) {
132
+ var i = new State$varsChangeFlow$o$collect$slambda(this.r1i_1, this.s1i_1, completion);
133
+ i.t1i_1 = value;
134
+ return i;
135
+ };
136
+ function State$varsChangeFlow$o$collect$slambda_0($$this$unsafeFlow, $keys, resultContinuation) {
137
+ var i = new State$varsChangeFlow$o$collect$slambda($$this$unsafeFlow, $keys, resultContinuation);
138
+ var l = function (value, $completion) {
139
+ return i.x1d(value, $completion);
140
+ };
141
+ l.$arity = 1;
142
+ return l;
143
+ }
144
+ function $collectCOROUTINE$0(_this__u8e3s4, collector, resultContinuation) {
145
+ CoroutineImpl.call(this, resultContinuation);
146
+ this.h1j_1 = _this__u8e3s4;
147
+ this.i1j_1 = collector;
148
+ }
149
+ protoOf($collectCOROUTINE$0).o8 = function () {
150
+ var suspendResult = this.i8_1;
151
+ $sm: do
152
+ try {
153
+ var tmp = this.g8_1;
154
+ switch (tmp) {
155
+ case 0:
156
+ this.h8_1 = 2;
157
+ var tmp_0 = this;
158
+ tmp_0.j1j_1 = this.i1j_1;
159
+ this.k1j_1 = this.j1j_1;
160
+ this.g8_1 = 1;
161
+ var tmp_1 = State$varsChangeFlow$o$collect$slambda_0(this.k1j_1, this.h1j_1.m1j_1, null);
162
+ suspendResult = this.h1j_1.l1j_1.v12(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
163
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
164
+ return suspendResult;
165
+ }
166
+
167
+ continue $sm;
168
+ case 1:
169
+ return Unit_instance;
170
+ case 2:
171
+ throw this.j8_1;
172
+ }
173
+ } catch ($p) {
174
+ var e = $p;
175
+ if (this.h8_1 === 2) {
176
+ throw e;
177
+ } else {
178
+ this.g8_1 = this.h8_1;
179
+ this.j8_1 = e;
180
+ }
181
+ }
182
+ while (true);
183
+ };
184
+ function State$varsChangeFlow$o$collect$slambda_1($$this$unsafeFlow, resultContinuation) {
185
+ this.v1j_1 = $$this$unsafeFlow;
186
+ CoroutineImpl.call(this, resultContinuation);
187
+ }
188
+ protoOf(State$varsChangeFlow$o$collect$slambda_1).x1d = function (value, $completion) {
189
+ var tmp = this.y1d(value, $completion);
190
+ tmp.i8_1 = Unit_instance;
191
+ tmp.j8_1 = null;
192
+ return tmp.o8();
193
+ };
194
+ protoOf(State$varsChangeFlow$o$collect$slambda_1).w8 = function (p1, $completion) {
195
+ return this.x1d((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
196
+ };
197
+ protoOf(State$varsChangeFlow$o$collect$slambda_1).o8 = function () {
198
+ var suspendResult = this.i8_1;
199
+ $sm: do
200
+ try {
201
+ var tmp = this.g8_1;
202
+ switch (tmp) {
203
+ case 0:
204
+ this.h8_1 = 2;
205
+ var tmp_0 = this;
206
+ tmp_0.x1j_1 = this.v1j_1;
207
+ var tmp_1 = this;
208
+ tmp_1.y1j_1 = this.w1j_1;
209
+ this.z1j_1 = this.x1j_1;
210
+ this.a1k_1 = this.y1j_1;
211
+ this.g8_1 = 1;
212
+ this.a1k_1;
213
+ suspendResult = this.z1j_1.t12(Unit_instance, this);
214
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
215
+ return suspendResult;
216
+ }
217
+
218
+ continue $sm;
219
+ case 1:
220
+ return Unit_instance;
221
+ case 2:
222
+ throw this.j8_1;
223
+ }
224
+ } catch ($p) {
225
+ var e = $p;
226
+ if (this.h8_1 === 2) {
227
+ throw e;
228
+ } else {
229
+ this.g8_1 = this.h8_1;
230
+ this.j8_1 = e;
231
+ }
232
+ }
233
+ while (true);
234
+ };
235
+ protoOf(State$varsChangeFlow$o$collect$slambda_1).y1d = function (value, completion) {
236
+ var i = new State$varsChangeFlow$o$collect$slambda_1(this.v1j_1, completion);
237
+ i.w1j_1 = value;
238
+ return i;
239
+ };
240
+ function State$varsChangeFlow$o$collect$slambda_2($$this$unsafeFlow, resultContinuation) {
241
+ var i = new State$varsChangeFlow$o$collect$slambda_1($$this$unsafeFlow, resultContinuation);
242
+ var l = function (value, $completion) {
243
+ return i.x1d(value, $completion);
244
+ };
245
+ l.$arity = 1;
246
+ return l;
247
+ }
248
+ function $collectCOROUTINE$1(_this__u8e3s4, collector, resultContinuation) {
249
+ CoroutineImpl.call(this, resultContinuation);
250
+ this.j1k_1 = _this__u8e3s4;
251
+ this.k1k_1 = collector;
252
+ }
253
+ protoOf($collectCOROUTINE$1).o8 = function () {
254
+ var suspendResult = this.i8_1;
255
+ $sm: do
256
+ try {
257
+ var tmp = this.g8_1;
258
+ switch (tmp) {
259
+ case 0:
260
+ this.h8_1 = 2;
261
+ var tmp_0 = this;
262
+ tmp_0.l1k_1 = this.k1k_1;
263
+ this.m1k_1 = this.l1k_1;
264
+ this.g8_1 = 1;
265
+ var tmp_1 = State$varsChangeFlow$o$collect$slambda_2(this.m1k_1, null);
266
+ suspendResult = this.j1k_1.n1k_1.v12(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
267
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
268
+ return suspendResult;
269
+ }
270
+
271
+ continue $sm;
272
+ case 1:
273
+ return Unit_instance;
274
+ case 2:
275
+ throw this.j8_1;
276
+ }
277
+ } catch ($p) {
278
+ var e = $p;
279
+ if (this.h8_1 === 2) {
280
+ throw e;
281
+ } else {
282
+ this.g8_1 = this.h8_1;
283
+ this.j8_1 = e;
284
+ }
285
+ }
286
+ while (true);
287
+ };
288
+ function State$varsChangeFlow$o$collect$slambda_3($$this$unsafeFlow, $block, this$0, resultContinuation) {
289
+ this.w1k_1 = $$this$unsafeFlow;
290
+ this.x1k_1 = $block;
291
+ this.y1k_1 = this$0;
292
+ CoroutineImpl.call(this, resultContinuation);
293
+ }
294
+ protoOf(State$varsChangeFlow$o$collect$slambda_3).x1d = function (value, $completion) {
295
+ var tmp = this.y1d(value, $completion);
296
+ tmp.i8_1 = Unit_instance;
297
+ tmp.j8_1 = null;
298
+ return tmp.o8();
299
+ };
300
+ protoOf(State$varsChangeFlow$o$collect$slambda_3).w8 = function (p1, $completion) {
301
+ return this.x1d((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
302
+ };
303
+ protoOf(State$varsChangeFlow$o$collect$slambda_3).o8 = function () {
304
+ var suspendResult = this.i8_1;
305
+ $sm: do
306
+ try {
307
+ var tmp = this.g8_1;
308
+ switch (tmp) {
309
+ case 0:
310
+ this.h8_1 = 2;
311
+ var tmp_0 = this;
312
+ tmp_0.a1l_1 = this.w1k_1;
313
+ var tmp_1 = this;
314
+ tmp_1.b1l_1 = this.z1k_1;
315
+ this.c1l_1 = this.a1l_1;
316
+ this.d1l_1 = this.b1l_1;
317
+ this.g8_1 = 1;
318
+ this.d1l_1;
319
+ suspendResult = this.c1l_1.t12(this.x1k_1(this.y1k_1), this);
320
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
321
+ return suspendResult;
322
+ }
323
+
324
+ continue $sm;
325
+ case 1:
326
+ return Unit_instance;
327
+ case 2:
328
+ throw this.j8_1;
329
+ }
330
+ } catch ($p) {
331
+ var e = $p;
332
+ if (this.h8_1 === 2) {
333
+ throw e;
334
+ } else {
335
+ this.g8_1 = this.h8_1;
336
+ this.j8_1 = e;
337
+ }
338
+ }
339
+ while (true);
340
+ };
341
+ protoOf(State$varsChangeFlow$o$collect$slambda_3).y1d = function (value, completion) {
342
+ var i = new State$varsChangeFlow$o$collect$slambda_3(this.w1k_1, this.x1k_1, this.y1k_1, completion);
343
+ i.z1k_1 = value;
344
+ return i;
345
+ };
346
+ function State$varsChangeFlow$o$collect$slambda_4($$this$unsafeFlow, $block, this$0, resultContinuation) {
347
+ var i = new State$varsChangeFlow$o$collect$slambda_3($$this$unsafeFlow, $block, this$0, resultContinuation);
348
+ var l = function (value, $completion) {
349
+ return i.x1d(value, $completion);
350
+ };
351
+ l.$arity = 1;
352
+ return l;
353
+ }
354
+ function $collectCOROUTINE$2(_this__u8e3s4, collector, resultContinuation) {
355
+ CoroutineImpl.call(this, resultContinuation);
356
+ this.m1l_1 = _this__u8e3s4;
357
+ this.n1l_1 = collector;
358
+ }
359
+ protoOf($collectCOROUTINE$2).o8 = function () {
360
+ var suspendResult = this.i8_1;
361
+ $sm: do
362
+ try {
363
+ var tmp = this.g8_1;
364
+ switch (tmp) {
365
+ case 0:
366
+ this.h8_1 = 2;
367
+ var tmp_0 = this;
368
+ tmp_0.o1l_1 = this.n1l_1;
369
+ this.p1l_1 = this.o1l_1;
370
+ this.g8_1 = 1;
371
+ var tmp_1 = State$varsChangeFlow$o$collect$slambda_4(this.p1l_1, this.m1l_1.r1l_1, this.m1l_1.s1l_1, null);
372
+ suspendResult = this.m1l_1.q1l_1.v12(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_1), this);
373
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
374
+ return suspendResult;
375
+ }
376
+
377
+ continue $sm;
378
+ case 1:
379
+ return Unit_instance;
380
+ case 2:
381
+ throw this.j8_1;
382
+ }
383
+ } catch ($p) {
384
+ var e = $p;
385
+ if (this.h8_1 === 2) {
386
+ throw e;
387
+ } else {
388
+ this.g8_1 = this.h8_1;
389
+ this.j8_1 = e;
390
+ }
391
+ }
392
+ while (true);
393
+ };
394
+ function State_init_$Init$($this) {
395
+ // Inline function 'kotlin.collections.mutableMapOf' call
396
+ var tmp$ret$0 = LinkedHashMap_init_$Create$();
397
+ State.call($this, VOID, tmp$ret$0);
398
+ return $this;
399
+ }
400
+ function createState() {
401
+ return State_init_$Init$(objectCreate(protoOf(State)));
402
+ }
403
+ function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
404
+ this.t1l_1 = function_0;
405
+ }
406
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).t12 = function (value, $completion) {
407
+ return this.t1l_1(value, $completion);
408
+ };
409
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).s2 = function () {
410
+ return this.t1l_1;
411
+ };
412
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).equals = function (other) {
413
+ var tmp;
414
+ if (!(other == null) ? isInterface(other, FlowCollector) : false) {
415
+ var tmp_0;
416
+ if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
417
+ tmp_0 = equals(this.s2(), other.s2());
418
+ } else {
419
+ tmp_0 = false;
420
+ }
421
+ tmp = tmp_0;
422
+ } else {
423
+ tmp = false;
424
+ }
425
+ return tmp;
426
+ };
427
+ protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).hashCode = function () {
428
+ return hashCode(this.s2());
429
+ };
430
+ function State$varsChangeFlow$slambda($keys, resultContinuation) {
431
+ this.c1m_1 = $keys;
432
+ CoroutineImpl.call(this, resultContinuation);
433
+ }
434
+ protoOf(State$varsChangeFlow$slambda).e1m = function ($this$onSubscription, $completion) {
435
+ var tmp = this.f1m($this$onSubscription, $completion);
436
+ tmp.i8_1 = Unit_instance;
437
+ tmp.j8_1 = null;
438
+ return tmp.o8();
439
+ };
440
+ protoOf(State$varsChangeFlow$slambda).w8 = function (p1, $completion) {
441
+ return this.e1m((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
442
+ };
443
+ protoOf(State$varsChangeFlow$slambda).o8 = function () {
444
+ var suspendResult = this.i8_1;
445
+ $sm: do
446
+ try {
447
+ var tmp = this.g8_1;
448
+ switch (tmp) {
449
+ case 0:
450
+ this.h8_1 = 2;
451
+ this.g8_1 = 1;
452
+ suspendResult = this.d1m_1.t12(first(this.c1m_1), this);
453
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
454
+ return suspendResult;
455
+ }
456
+
457
+ continue $sm;
458
+ case 1:
459
+ return Unit_instance;
460
+ case 2:
461
+ throw this.j8_1;
462
+ }
463
+ } catch ($p) {
464
+ var e = $p;
465
+ if (this.h8_1 === 2) {
466
+ throw e;
467
+ } else {
468
+ this.g8_1 = this.h8_1;
469
+ this.j8_1 = e;
470
+ }
471
+ }
472
+ while (true);
473
+ };
474
+ protoOf(State$varsChangeFlow$slambda).f1m = function ($this$onSubscription, completion) {
475
+ var i = new State$varsChangeFlow$slambda(this.c1m_1, completion);
476
+ i.d1m_1 = $this$onSubscription;
477
+ return i;
478
+ };
479
+ function State$varsChangeFlow$slambda_0($keys, resultContinuation) {
480
+ var i = new State$varsChangeFlow$slambda($keys, resultContinuation);
481
+ var l = function ($this$onSubscription, $completion) {
482
+ return i.e1m($this$onSubscription, $completion);
483
+ };
484
+ l.$arity = 1;
485
+ return l;
486
+ }
487
+ function State$varsChangeFlow$$inlined$filter$1($this, $keys) {
488
+ this.l1j_1 = $this;
489
+ this.m1j_1 = $keys;
490
+ }
491
+ protoOf(State$varsChangeFlow$$inlined$filter$1).u12 = function (collector, $completion) {
492
+ var tmp = new $collectCOROUTINE$0(this, collector, $completion);
493
+ tmp.i8_1 = Unit_instance;
494
+ tmp.j8_1 = null;
495
+ return tmp.o8();
496
+ };
497
+ protoOf(State$varsChangeFlow$$inlined$filter$1).v12 = function (collector, $completion) {
498
+ return this.u12(collector, $completion);
499
+ };
500
+ function State$varsChangeFlow$$inlined$map$1($this) {
501
+ this.n1k_1 = $this;
502
+ }
503
+ protoOf(State$varsChangeFlow$$inlined$map$1).u12 = function (collector, $completion) {
504
+ var tmp = new $collectCOROUTINE$1(this, collector, $completion);
505
+ tmp.i8_1 = Unit_instance;
506
+ tmp.j8_1 = null;
507
+ return tmp.o8();
508
+ };
509
+ protoOf(State$varsChangeFlow$$inlined$map$1).v12 = function (collector, $completion) {
510
+ return this.u12(collector, $completion);
511
+ };
512
+ function State$varsChangeFlow$$inlined$map$2($this, $block, this$0) {
513
+ this.q1l_1 = $this;
514
+ this.r1l_1 = $block;
515
+ this.s1l_1 = this$0;
516
+ }
517
+ protoOf(State$varsChangeFlow$$inlined$map$2).u12 = function (collector, $completion) {
518
+ var tmp = new $collectCOROUTINE$2(this, collector, $completion);
519
+ tmp.i8_1 = Unit_instance;
520
+ tmp.j8_1 = null;
521
+ return tmp.o8();
522
+ };
523
+ protoOf(State$varsChangeFlow$$inlined$map$2).v12 = function (collector, $completion) {
524
+ return this.u12(collector, $completion);
525
+ };
526
+ function State(triggeredAnalyticsEvents, vars) {
527
+ var tmp;
528
+ if (triggeredAnalyticsEvents === VOID) {
529
+ // Inline function 'kotlin.collections.mutableMapOf' call
530
+ tmp = LinkedHashMap_init_$Create$();
531
+ } else {
532
+ tmp = triggeredAnalyticsEvents;
533
+ }
534
+ triggeredAnalyticsEvents = tmp;
535
+ var tmp_0;
536
+ if (vars === VOID) {
537
+ // Inline function 'kotlin.collections.mutableMapOf' call
538
+ tmp_0 = LinkedHashMap_init_$Create$();
539
+ } else {
540
+ tmp_0 = vars;
541
+ }
542
+ vars = tmp_0;
543
+ this.g1m_1 = triggeredAnalyticsEvents;
544
+ this.h1m_1 = vars;
545
+ this.i1m_1 = MutableSharedFlow(VOID, 2147483647);
546
+ }
547
+ protoOf(State).j1m = function (id) {
548
+ var tmp0_elvis_lhs = this.g1m_1.q1(id);
549
+ return tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
550
+ };
551
+ protoOf(State).k1m = function (id) {
552
+ var tmp0 = this.g1m_1;
553
+ var tmp0_elvis_lhs = this.g1m_1.q1(id);
554
+ // Inline function 'kotlin.collections.set' call
555
+ var value = (tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs) + 1 | 0;
556
+ tmp0.d3(id, value);
557
+ };
558
+ protoOf(State).l1m = function (keys, block) {
559
+ var tmp;
560
+ // Inline function 'kotlin.collections.isNullOrEmpty' call
561
+ if (keys == null || keys.p()) {
562
+ tmp = flowOf(Unit_instance);
563
+ } else {
564
+ // Inline function 'kotlinx.coroutines.flow.filter' call
565
+ // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
566
+ var this_0 = onSubscription(this.i1m_1, State$varsChangeFlow$slambda_0(keys, null));
567
+ // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
568
+ // Inline function 'kotlinx.coroutines.flow.map' call
569
+ // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
570
+ var this_1 = new State$varsChangeFlow$$inlined$filter$1(this_0, keys);
571
+ // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
572
+ var tmp$ret$6 = new State$varsChangeFlow$$inlined$map$1(this_1);
573
+ tmp = conflate(tmp$ret$6);
574
+ }
575
+ // Inline function 'kotlinx.coroutines.flow.map' call
576
+ // Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
577
+ var this_2 = tmp;
578
+ // Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
579
+ return new State$varsChangeFlow$$inlined$map$2(this_2, block, this);
580
+ };
581
+ protoOf(State).varsChangeFlow$default = function (keys, block, $super) {
582
+ keys = keys === VOID ? emptyList() : keys;
583
+ return $super === VOID ? this.l1m(keys, block) : $super.l1m.call(this, keys, block);
584
+ };
585
+ protoOf(State).m1m = function (key) {
586
+ // Inline function 'kotlin.collections.orEmpty' call
587
+ var tmp0_elvis_lhs = this.h1m_1.q1(key);
588
+ return tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
589
+ };
590
+ protoOf(State).n1m = function (key, values) {
591
+ var tmp0 = this.h1m_1;
592
+ // Inline function 'kotlin.collections.set' call
593
+ var value = values == null ? null : toList(values);
594
+ tmp0.d3(key, value);
595
+ this.i1m_1.d15(key);
596
+ };
597
+ protoOf(State).o1m = function (key, value) {
598
+ var values = this.m1m(key);
599
+ if (!values.f1(value)) {
600
+ this.n1m(key, plus(values, value));
601
+ }
602
+ };
603
+ protoOf(State).p1m = function (key, value) {
604
+ var values = this.m1m(key);
605
+ if (values.f1(value)) {
606
+ // Inline function 'kotlin.collections.filterNot' call
607
+ // Inline function 'kotlin.collections.filterNotTo' call
608
+ var destination = ArrayList_init_$Create$();
609
+ var _iterator__ex2g4s = values.j();
610
+ while (_iterator__ex2g4s.k()) {
611
+ var element = _iterator__ex2g4s.l();
612
+ if (!(element === value)) {
613
+ destination.e(element);
614
+ }
615
+ }
616
+ this.n1m(key, destination);
617
+ }
618
+ };
619
+ //region block: exports
620
+ function $jsExportAll$(_) {
621
+ var $org = _.org || (_.org = {});
622
+ var $org$cru = $org.cru || ($org.cru = {});
623
+ var $org$cru$godtools = $org$cru.godtools || ($org$cru.godtools = {});
624
+ var $org$cru$godtools$shared = $org$cru$godtools.shared || ($org$cru$godtools.shared = {});
625
+ var $org$cru$godtools$shared$renderer = $org$cru$godtools$shared.renderer || ($org$cru$godtools$shared.renderer = {});
626
+ var $org$cru$godtools$shared$renderer$state = $org$cru$godtools$shared$renderer.state || ($org$cru$godtools$shared$renderer.state = {});
627
+ $org$cru$godtools$shared$renderer$state.State = State;
628
+ $org$cru$godtools$shared$renderer$state.State.createState = createState;
629
+ }
630
+ $jsExportAll$(_);
631
+ _.$jsExportAll$ = $jsExportAll$;
632
+ //endregion
633
+ return _;
634
+ }));
635
+
636
+ //# sourceMappingURL=kotlin-mpp-godtools-tool-parser-module-renderer-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../../module/renderer-state/src/commonMain/kotlin/org/cru/godtools/shared/renderer/state/State.kt","src/kotlin/collections/Maps.kt","src/kotlin/collections/Collections.kt","../../../../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/flow/internal/SafeCollector.common.kt","common/src/generated/_Collections.kt"],"sourcesContent":[null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["$keys","invoke","value","$completion","doResume","State$varsChangeFlow$o$collect$slambda","State$varsChangeFlow$o$collect$slambda$lambda","$block","State_init_$Init$","State_init_$Create$","<init>","emit","equals","hashCode","$this$onSubscription","State$varsChangeFlow$slambda","State$varsChangeFlow$slambda$lambda","collect","collector","triggeredAnalyticsEvents","vars","getTriggeredAnalyticsEventsCount","id","recordTriggeredAnalyticsEvent","varsChangeFlow","keys","block","varsChangeFlow$default","getVar","key","setVar","values","addVarValue","removeVarValue","element"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEA6C2BA,K;;;;;iEAALC,CAAEC,K,EAAFC,WAAAF,EACK;A;;;;EACf,C;iEA/CZ,E,EAAAE,W;;;gEA6CsBC,CAAAA,EAAA;A;;MAAA,I;;;;;;;;+BAEf,K;;;;;;0BAhCI,K;gBAgCmE,KAAM,KAAN,O;;8BAhC1C,oBAAK,KAAL,O;;;;;;;;;;;;;;;;;;;;YAAjB,0B;;;;;;;;;;;;;;;;;;EAgCD,C;kEAFM,K,EA4BpB,U;;;;;mDA5BkBC,C,mBAAKL,K,oBAALK,E;;qBAAAC,CAAEJ,K,EAAFC,WAAAG,E;;K;;;G;+BAkCymC,a,EAA6B,S,EAA7B,kB;;;;;6CAAAF,CAAAA,EAAA;A;;MAAA,I;;;;;;+BAAwE,K;;;gBAlCjrC,oF;4BAAR,qBAAQ,sDAAR,O;;;;;;;YAkCmtC,oB;;;;;;;;;;;;;;EAAA,C;;;;;mEAlC3sCH,CAAEC,K,EAAFC,WAAAF,EACK;A;;;;EACf,C;mEA/CZ,E,EAAAE,W;;;kEA6CsBC,CAAAA,EAAA;A;;MAAA,I;;;;;;;;+BAEf,K;;;;YAD8B,U;4BAAf,mC;;;;;;;;;;;;;;;;;;;;;EACJ,C;oEAFM,K,EA4BpB,U;;;;;mDA5BkBC,C,qCAAA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