game_client_logic_deb 1.6.55 → 1.6.56
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/Logic_Debertz-core.js +890 -890
- package/Logic_Debertz-engine.js +7514 -7514
- package/Logic_Debertz-game_client.js +2628 -2596
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +3 -3
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +613 -595
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +1 -1
|
@@ -230,6 +230,7 @@
|
|
|
230
230
|
setMetadataFor(ConflatedBufferedChannel, 'ConflatedBufferedChannel', classMeta, BufferedChannel, VOID, VOID, VOID, VOID, [1, 0]);
|
|
231
231
|
setMetadataFor(ProducerScope, 'ProducerScope', interfaceMeta, VOID, [CoroutineScope, SendChannel], VOID, VOID, VOID, [1]);
|
|
232
232
|
setMetadataFor(ProducerCoroutine, 'ProducerCoroutine', classMeta, ChannelCoroutine, [ChannelCoroutine, ProducerScope], VOID, VOID, VOID, [0, 1]);
|
|
233
|
+
setMetadataFor(EmptyFlow, 'EmptyFlow', objectMeta, VOID, VOID, VOID, VOID, VOID, [1]);
|
|
233
234
|
setMetadataFor($emitAllImplCOROUTINE$7, '$emitAllImplCOROUTINE$7', classMeta, CoroutineImpl);
|
|
234
235
|
setMetadataFor(FlowCollector, 'FlowCollector', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]);
|
|
235
236
|
setMetadataFor(Emitter, 'Emitter', classMeta);
|
|
@@ -276,7 +277,7 @@
|
|
|
276
277
|
setMetadataFor(Symbol, 'Symbol', classMeta);
|
|
277
278
|
setMetadataFor(SelectInstance, 'SelectInstance', interfaceMeta);
|
|
278
279
|
setMetadataFor(ClauseData, 'ClauseData', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
|
|
279
|
-
setMetadataFor(SelectImplementation, 'SelectImplementation', classMeta, CancelHandler, [CancelHandler,
|
|
280
|
+
setMetadataFor(SelectImplementation, 'SelectImplementation', classMeta, CancelHandler, [CancelHandler, SelectInstance, Waiter], VOID, VOID, VOID, [0, 2]);
|
|
280
281
|
setMetadataFor(TrySelectDetailedResult, 'TrySelectDetailedResult', classMeta, Enum);
|
|
281
282
|
setMetadataFor(CancellableContinuationWithOwner, 'CancellableContinuationWithOwner', classMeta, VOID, [CancellableContinuation, Waiter]);
|
|
282
283
|
setMetadataFor(SemaphoreImpl, 'SemaphoreImpl', classMeta, VOID, VOID, VOID, VOID, VOID, [0]);
|
|
@@ -6296,6 +6297,21 @@
|
|
|
6296
6297
|
protoOf(ProducerCoroutine).o24 = function (cause, $super) {
|
|
6297
6298
|
return this.x1r(cause, ($super == null ? true : $super instanceof ProducerCoroutine) ? $super : THROW_CCE());
|
|
6298
6299
|
};
|
|
6300
|
+
function emptyFlow() {
|
|
6301
|
+
return EmptyFlow_instance;
|
|
6302
|
+
}
|
|
6303
|
+
function EmptyFlow() {
|
|
6304
|
+
}
|
|
6305
|
+
protoOf(EmptyFlow).m25 = function (collector, $completion) {
|
|
6306
|
+
return Unit_instance;
|
|
6307
|
+
};
|
|
6308
|
+
protoOf(EmptyFlow).n25 = function (collector, $completion) {
|
|
6309
|
+
return this.m25(collector, $completion);
|
|
6310
|
+
};
|
|
6311
|
+
var EmptyFlow_instance;
|
|
6312
|
+
function EmptyFlow_getInstance() {
|
|
6313
|
+
return EmptyFlow_instance;
|
|
6314
|
+
}
|
|
6299
6315
|
function emitAll(_this__u8e3s4, channel, $completion) {
|
|
6300
6316
|
return emitAllImpl(_this__u8e3s4, channel, true, $completion);
|
|
6301
6317
|
}
|
|
@@ -6307,9 +6323,9 @@
|
|
|
6307
6323
|
}
|
|
6308
6324
|
function $emitAllImplCOROUTINE$7(_this__u8e3s4, channel, consume, resultContinuation) {
|
|
6309
6325
|
CoroutineImpl.call(this, resultContinuation);
|
|
6310
|
-
this.
|
|
6311
|
-
this.
|
|
6312
|
-
this.
|
|
6326
|
+
this.w25_1 = _this__u8e3s4;
|
|
6327
|
+
this.x25_1 = channel;
|
|
6328
|
+
this.y25_1 = consume;
|
|
6313
6329
|
}
|
|
6314
6330
|
protoOf($emitAllImplCOROUTINE$7).ya = function () {
|
|
6315
6331
|
var suspendResult = this.na_1;
|
|
@@ -6319,19 +6335,19 @@
|
|
|
6319
6335
|
switch (tmp) {
|
|
6320
6336
|
case 0:
|
|
6321
6337
|
this.ma_1 = 9;
|
|
6322
|
-
ensureActive_1(this.
|
|
6323
|
-
this.
|
|
6338
|
+
ensureActive_1(this.w25_1);
|
|
6339
|
+
this.z25_1 = null;
|
|
6324
6340
|
this.la_1 = 1;
|
|
6325
6341
|
continue $sm;
|
|
6326
6342
|
case 1:
|
|
6327
6343
|
this.ma_1 = 7;
|
|
6328
6344
|
this.ma_1 = 6;
|
|
6329
|
-
this.
|
|
6345
|
+
this.b26_1 = this.x25_1.v();
|
|
6330
6346
|
this.la_1 = 2;
|
|
6331
6347
|
continue $sm;
|
|
6332
6348
|
case 2:
|
|
6333
6349
|
this.la_1 = 3;
|
|
6334
|
-
suspendResult = this.
|
|
6350
|
+
suspendResult = this.b26_1.o22(this);
|
|
6335
6351
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6336
6352
|
return suspendResult;
|
|
6337
6353
|
}
|
|
@@ -6343,9 +6359,9 @@
|
|
|
6343
6359
|
continue $sm;
|
|
6344
6360
|
}
|
|
6345
6361
|
|
|
6346
|
-
this.
|
|
6362
|
+
this.c26_1 = this.b26_1.y();
|
|
6347
6363
|
this.la_1 = 4;
|
|
6348
|
-
suspendResult = this.
|
|
6364
|
+
suspendResult = this.w25_1.d26(this.c26_1, this);
|
|
6349
6365
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6350
6366
|
return suspendResult;
|
|
6351
6367
|
}
|
|
@@ -6355,7 +6371,7 @@
|
|
|
6355
6371
|
this.la_1 = 2;
|
|
6356
6372
|
continue $sm;
|
|
6357
6373
|
case 5:
|
|
6358
|
-
this.
|
|
6374
|
+
this.a26_1 = Unit_instance;
|
|
6359
6375
|
this.ma_1 = 9;
|
|
6360
6376
|
this.la_1 = 8;
|
|
6361
6377
|
continue $sm;
|
|
@@ -6365,7 +6381,7 @@
|
|
|
6365
6381
|
if (tmp_0 instanceof Error) {
|
|
6366
6382
|
var e = this.oa_1;
|
|
6367
6383
|
var tmp_1 = this;
|
|
6368
|
-
this.
|
|
6384
|
+
this.z25_1 = e;
|
|
6369
6385
|
throw e;
|
|
6370
6386
|
} else {
|
|
6371
6387
|
throw this.oa_1;
|
|
@@ -6374,15 +6390,15 @@
|
|
|
6374
6390
|
case 7:
|
|
6375
6391
|
this.ma_1 = 9;
|
|
6376
6392
|
var t = this.oa_1;
|
|
6377
|
-
if (this.
|
|
6378
|
-
cancelConsumed(this.
|
|
6393
|
+
if (this.y25_1) {
|
|
6394
|
+
cancelConsumed(this.x25_1, this.z25_1);
|
|
6379
6395
|
}
|
|
6380
6396
|
|
|
6381
6397
|
throw t;
|
|
6382
6398
|
case 8:
|
|
6383
6399
|
this.ma_1 = 9;
|
|
6384
|
-
if (this.
|
|
6385
|
-
cancelConsumed(this.
|
|
6400
|
+
if (this.y25_1) {
|
|
6401
|
+
cancelConsumed(this.x25_1, this.z25_1);
|
|
6386
6402
|
}
|
|
6387
6403
|
|
|
6388
6404
|
return Unit_instance;
|
|
@@ -6439,39 +6455,39 @@
|
|
|
6439
6455
|
}
|
|
6440
6456
|
function _get_head__d7jo8b($this) {
|
|
6441
6457
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
6442
|
-
var a = $this.
|
|
6443
|
-
var b = $this.
|
|
6458
|
+
var a = $this.n26_1;
|
|
6459
|
+
var b = $this.m26_1;
|
|
6444
6460
|
return a.k8(b) <= 0 ? a : b;
|
|
6445
6461
|
}
|
|
6446
6462
|
function _get_replaySize__dxgnb1($this) {
|
|
6447
6463
|
// Inline function 'kotlin.Long.plus' call
|
|
6448
6464
|
var this_0 = _get_head__d7jo8b($this);
|
|
6449
|
-
var other = $this.
|
|
6450
|
-
return this_0.o9(toLong(other)).p9($this.
|
|
6465
|
+
var other = $this.o26_1;
|
|
6466
|
+
return this_0.o9(toLong(other)).p9($this.m26_1).s8();
|
|
6451
6467
|
}
|
|
6452
6468
|
function _get_totalSize__xhdb3o($this) {
|
|
6453
|
-
return $this.
|
|
6469
|
+
return $this.o26_1 + $this.p26_1 | 0;
|
|
6454
6470
|
}
|
|
6455
6471
|
function _get_bufferEndIndex__d2rk18($this) {
|
|
6456
6472
|
// Inline function 'kotlin.Long.plus' call
|
|
6457
6473
|
var this_0 = _get_head__d7jo8b($this);
|
|
6458
|
-
var other = $this.
|
|
6474
|
+
var other = $this.o26_1;
|
|
6459
6475
|
return this_0.o9(toLong(other));
|
|
6460
6476
|
}
|
|
6461
6477
|
function _get_queueEndIndex__4m025l($this) {
|
|
6462
6478
|
// Inline function 'kotlin.Long.plus' call
|
|
6463
6479
|
// Inline function 'kotlin.Long.plus' call
|
|
6464
6480
|
var this_0 = _get_head__d7jo8b($this);
|
|
6465
|
-
var other = $this.
|
|
6481
|
+
var other = $this.o26_1;
|
|
6466
6482
|
var this_1 = this_0.o9(toLong(other));
|
|
6467
|
-
var other_0 = $this.
|
|
6483
|
+
var other_0 = $this.p26_1;
|
|
6468
6484
|
return this_1.o9(toLong(other_0));
|
|
6469
6485
|
}
|
|
6470
6486
|
function tryEmitLocked($this, value) {
|
|
6471
|
-
if ($this.
|
|
6487
|
+
if ($this.r26_1 === 0)
|
|
6472
6488
|
return tryEmitNoCollectorsLocked($this, value);
|
|
6473
|
-
if ($this.
|
|
6474
|
-
switch ($this.
|
|
6489
|
+
if ($this.o26_1 >= $this.j26_1 ? $this.n26_1.k8($this.m26_1) <= 0 : false) {
|
|
6490
|
+
switch ($this.k26_1.g8_1) {
|
|
6475
6491
|
case 0:
|
|
6476
6492
|
return false;
|
|
6477
6493
|
case 2:
|
|
@@ -6481,41 +6497,41 @@
|
|
|
6481
6497
|
}
|
|
6482
6498
|
}
|
|
6483
6499
|
enqueueLocked($this, value);
|
|
6484
|
-
$this.
|
|
6485
|
-
if ($this.
|
|
6500
|
+
$this.o26_1 = $this.o26_1 + 1 | 0;
|
|
6501
|
+
if ($this.o26_1 > $this.j26_1) {
|
|
6486
6502
|
dropOldestLocked($this);
|
|
6487
6503
|
}
|
|
6488
|
-
if (_get_replaySize__dxgnb1($this) > $this.
|
|
6504
|
+
if (_get_replaySize__dxgnb1($this) > $this.i26_1) {
|
|
6489
6505
|
// Inline function 'kotlin.Long.plus' call
|
|
6490
|
-
var tmp$ret$0 = $this.
|
|
6491
|
-
updateBufferLocked($this, tmp$ret$0, $this.
|
|
6506
|
+
var tmp$ret$0 = $this.m26_1.o9(toLong(1));
|
|
6507
|
+
updateBufferLocked($this, tmp$ret$0, $this.n26_1, _get_bufferEndIndex__d2rk18($this), _get_queueEndIndex__4m025l($this));
|
|
6492
6508
|
}
|
|
6493
6509
|
return true;
|
|
6494
6510
|
}
|
|
6495
6511
|
function tryEmitNoCollectorsLocked($this, value) {
|
|
6496
6512
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
6497
|
-
if ($this.
|
|
6513
|
+
if ($this.i26_1 === 0)
|
|
6498
6514
|
return true;
|
|
6499
6515
|
enqueueLocked($this, value);
|
|
6500
|
-
$this.
|
|
6501
|
-
if ($this.
|
|
6516
|
+
$this.o26_1 = $this.o26_1 + 1 | 0;
|
|
6517
|
+
if ($this.o26_1 > $this.i26_1) {
|
|
6502
6518
|
dropOldestLocked($this);
|
|
6503
6519
|
}
|
|
6504
6520
|
var tmp = $this;
|
|
6505
6521
|
// Inline function 'kotlin.Long.plus' call
|
|
6506
6522
|
var this_0 = _get_head__d7jo8b($this);
|
|
6507
|
-
var other = $this.
|
|
6508
|
-
tmp.
|
|
6523
|
+
var other = $this.o26_1;
|
|
6524
|
+
tmp.n26_1 = this_0.o9(toLong(other));
|
|
6509
6525
|
return true;
|
|
6510
6526
|
}
|
|
6511
6527
|
function dropOldestLocked($this) {
|
|
6512
|
-
setBufferAt(ensureNotNull($this.
|
|
6513
|
-
$this.
|
|
6528
|
+
setBufferAt(ensureNotNull($this.l26_1), _get_head__d7jo8b($this), null);
|
|
6529
|
+
$this.o26_1 = $this.o26_1 - 1 | 0;
|
|
6514
6530
|
// Inline function 'kotlin.Long.plus' call
|
|
6515
6531
|
var newHead = _get_head__d7jo8b($this).o9(toLong(1));
|
|
6516
|
-
if ($this.
|
|
6517
|
-
$this.
|
|
6518
|
-
if ($this.
|
|
6532
|
+
if ($this.m26_1.k8(newHead) < 0)
|
|
6533
|
+
$this.m26_1 = newHead;
|
|
6534
|
+
if ($this.n26_1.k8(newHead) < 0) {
|
|
6519
6535
|
correctCollectorIndexesOnDropOldest($this, newHead);
|
|
6520
6536
|
}
|
|
6521
6537
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
@@ -6523,10 +6539,10 @@
|
|
|
6523
6539
|
function correctCollectorIndexesOnDropOldest($this, newHead) {
|
|
6524
6540
|
$l$block: {
|
|
6525
6541
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.forEachSlotLocked' call
|
|
6526
|
-
if ($this.
|
|
6542
|
+
if ($this.r26_1 === 0) {
|
|
6527
6543
|
break $l$block;
|
|
6528
6544
|
}
|
|
6529
|
-
var tmp0_safe_receiver = $this.
|
|
6545
|
+
var tmp0_safe_receiver = $this.q26_1;
|
|
6530
6546
|
if (tmp0_safe_receiver == null)
|
|
6531
6547
|
null;
|
|
6532
6548
|
else {
|
|
@@ -6539,18 +6555,18 @@
|
|
|
6539
6555
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.forEachSlotLocked.<anonymous>' call
|
|
6540
6556
|
if (!(element == null)) {
|
|
6541
6557
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.correctCollectorIndexesOnDropOldest.<anonymous>' call
|
|
6542
|
-
if (element.
|
|
6543
|
-
element.
|
|
6558
|
+
if (element.u26_1.k8(new Long(0, 0)) >= 0 ? element.u26_1.k8(newHead) < 0 : false) {
|
|
6559
|
+
element.u26_1 = newHead;
|
|
6544
6560
|
}
|
|
6545
6561
|
}
|
|
6546
6562
|
}
|
|
6547
6563
|
}
|
|
6548
6564
|
}
|
|
6549
|
-
$this.
|
|
6565
|
+
$this.n26_1 = newHead;
|
|
6550
6566
|
}
|
|
6551
6567
|
function enqueueLocked($this, item) {
|
|
6552
6568
|
var curSize = _get_totalSize__xhdb3o($this);
|
|
6553
|
-
var curBuffer = $this.
|
|
6569
|
+
var curBuffer = $this.l26_1;
|
|
6554
6570
|
var buffer = curBuffer == null ? growBuffer($this, null, 0, 2) : curSize >= curBuffer.length ? growBuffer($this, curBuffer, curSize, imul(curBuffer.length, 2)) : curBuffer;
|
|
6555
6571
|
// Inline function 'kotlin.Long.plus' call
|
|
6556
6572
|
var tmp$ret$0 = _get_head__d7jo8b($this).o9(toLong(curSize));
|
|
@@ -6569,7 +6585,7 @@
|
|
|
6569
6585
|
var this_0 = fillArrayVal(Array(newSize), null);
|
|
6570
6586
|
// Inline function 'kotlin.contracts.contract' call
|
|
6571
6587
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.growBuffer.<anonymous>' call
|
|
6572
|
-
$this.
|
|
6588
|
+
$this.l26_1 = this_0;
|
|
6573
6589
|
var newBuffer = this_0;
|
|
6574
6590
|
if (curBuffer == null)
|
|
6575
6591
|
return newBuffer;
|
|
@@ -6618,8 +6634,8 @@
|
|
|
6618
6634
|
// Inline function 'kotlin.contracts.contract' call
|
|
6619
6635
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.emitSuspend.<anonymous>.<anonymous>.<anonymous>' call
|
|
6620
6636
|
enqueueLocked($this, this_1);
|
|
6621
|
-
$this.
|
|
6622
|
-
if ($this.
|
|
6637
|
+
$this.p26_1 = $this.p26_1 + 1 | 0;
|
|
6638
|
+
if ($this.j26_1 === 0)
|
|
6623
6639
|
resumes = findSlotsToResumeLocked($this, resumes);
|
|
6624
6640
|
tmp$ret$2 = this_1;
|
|
6625
6641
|
}
|
|
@@ -6652,12 +6668,12 @@
|
|
|
6652
6668
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
6653
6669
|
// Inline function 'kotlin.contracts.contract' call
|
|
6654
6670
|
// Inline function 'kotlinx.coroutines.internal.synchronizedImpl' call
|
|
6655
|
-
if (emitter.
|
|
6671
|
+
if (emitter.x26_1.k8(_get_head__d7jo8b($this)) < 0)
|
|
6656
6672
|
return Unit_instance;
|
|
6657
|
-
var buffer = ensureNotNull($this.
|
|
6658
|
-
if (!(getBufferAt(buffer, emitter.
|
|
6673
|
+
var buffer = ensureNotNull($this.l26_1);
|
|
6674
|
+
if (!(getBufferAt(buffer, emitter.x26_1) === emitter))
|
|
6659
6675
|
return Unit_instance;
|
|
6660
|
-
setBufferAt(buffer, emitter.
|
|
6676
|
+
setBufferAt(buffer, emitter.x26_1, get_NO_VALUE());
|
|
6661
6677
|
cleanupTailLocked($this);
|
|
6662
6678
|
return Unit_instance;
|
|
6663
6679
|
}
|
|
@@ -6670,24 +6686,24 @@
|
|
|
6670
6686
|
do {
|
|
6671
6687
|
var index = inductionVariable;
|
|
6672
6688
|
inductionVariable = inductionVariable.o9(new Long(1, 0));
|
|
6673
|
-
setBufferAt(ensureNotNull($this.
|
|
6689
|
+
setBufferAt(ensureNotNull($this.l26_1), index, null);
|
|
6674
6690
|
}
|
|
6675
6691
|
while (inductionVariable.k8(newHead) < 0);
|
|
6676
|
-
$this.
|
|
6677
|
-
$this.
|
|
6678
|
-
$this.
|
|
6679
|
-
$this.
|
|
6692
|
+
$this.m26_1 = newReplayIndex;
|
|
6693
|
+
$this.n26_1 = newMinCollectorIndex;
|
|
6694
|
+
$this.o26_1 = newBufferEndIndex.p9(newHead).s8();
|
|
6695
|
+
$this.p26_1 = newQueueEndIndex.p9(newBufferEndIndex).s8();
|
|
6680
6696
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
6681
6697
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
6682
6698
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
6683
6699
|
}
|
|
6684
6700
|
function cleanupTailLocked($this) {
|
|
6685
|
-
if ($this.
|
|
6701
|
+
if ($this.j26_1 === 0 ? $this.p26_1 <= 1 : false)
|
|
6686
6702
|
return Unit_instance;
|
|
6687
|
-
var buffer = ensureNotNull($this.
|
|
6703
|
+
var buffer = ensureNotNull($this.l26_1);
|
|
6688
6704
|
$l$loop: while (true) {
|
|
6689
6705
|
var tmp;
|
|
6690
|
-
if ($this.
|
|
6706
|
+
if ($this.p26_1 > 0) {
|
|
6691
6707
|
// Inline function 'kotlin.Long.minus' call
|
|
6692
6708
|
// Inline function 'kotlin.Long.plus' call
|
|
6693
6709
|
var this_0 = _get_head__d7jo8b($this);
|
|
@@ -6700,7 +6716,7 @@
|
|
|
6700
6716
|
if (!tmp) {
|
|
6701
6717
|
break $l$loop;
|
|
6702
6718
|
}
|
|
6703
|
-
$this.
|
|
6719
|
+
$this.p26_1 = $this.p26_1 - 1 | 0;
|
|
6704
6720
|
// Inline function 'kotlin.Long.plus' call
|
|
6705
6721
|
var this_1 = _get_head__d7jo8b($this);
|
|
6706
6722
|
var other_0 = _get_totalSize__xhdb3o($this);
|
|
@@ -6719,12 +6735,12 @@
|
|
|
6719
6735
|
if (index.k8(new Long(0, 0)) < 0) {
|
|
6720
6736
|
tmp = get_NO_VALUE();
|
|
6721
6737
|
} else {
|
|
6722
|
-
var oldIndex = slot.
|
|
6738
|
+
var oldIndex = slot.u26_1;
|
|
6723
6739
|
var newValue = getPeekedValueLockedAt($this, index);
|
|
6724
6740
|
var tmp_0 = slot;
|
|
6725
6741
|
// Inline function 'kotlin.Long.plus' call
|
|
6726
|
-
tmp_0.
|
|
6727
|
-
resumes = $this.
|
|
6742
|
+
tmp_0.u26_1 = index.o9(toLong(1));
|
|
6743
|
+
resumes = $this.a27(oldIndex);
|
|
6728
6744
|
tmp = newValue;
|
|
6729
6745
|
}
|
|
6730
6746
|
var value = tmp;
|
|
@@ -6746,22 +6762,22 @@
|
|
|
6746
6762
|
return value;
|
|
6747
6763
|
}
|
|
6748
6764
|
function tryPeekLocked($this, slot) {
|
|
6749
|
-
var index = slot.
|
|
6765
|
+
var index = slot.u26_1;
|
|
6750
6766
|
if (index.k8(_get_bufferEndIndex__d2rk18($this)) < 0)
|
|
6751
6767
|
return index;
|
|
6752
|
-
if ($this.
|
|
6768
|
+
if ($this.j26_1 > 0)
|
|
6753
6769
|
return new Long(-1, -1);
|
|
6754
6770
|
if (index.k8(_get_head__d7jo8b($this)) > 0)
|
|
6755
6771
|
return new Long(-1, -1);
|
|
6756
|
-
if ($this.
|
|
6772
|
+
if ($this.p26_1 === 0)
|
|
6757
6773
|
return new Long(-1, -1);
|
|
6758
6774
|
return index;
|
|
6759
6775
|
}
|
|
6760
6776
|
function getPeekedValueLockedAt($this, index) {
|
|
6761
|
-
var item = getBufferAt(ensureNotNull($this.
|
|
6777
|
+
var item = getBufferAt(ensureNotNull($this.l26_1), index);
|
|
6762
6778
|
var tmp;
|
|
6763
6779
|
if (item instanceof Emitter) {
|
|
6764
|
-
tmp = item.
|
|
6780
|
+
tmp = item.y26_1;
|
|
6765
6781
|
} else {
|
|
6766
6782
|
tmp = item;
|
|
6767
6783
|
}
|
|
@@ -6779,7 +6795,7 @@
|
|
|
6779
6795
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.awaitValue.<anonymous>.<anonymous>' call
|
|
6780
6796
|
var index = tryPeekLocked($this, slot);
|
|
6781
6797
|
if (index.k8(new Long(0, 0)) < 0) {
|
|
6782
|
-
slot.
|
|
6798
|
+
slot.v26_1 = cancellable;
|
|
6783
6799
|
} else {
|
|
6784
6800
|
// Inline function 'kotlin.coroutines.resume' call
|
|
6785
6801
|
// Inline function 'kotlin.Companion.success' call
|
|
@@ -6787,7 +6803,7 @@
|
|
|
6787
6803
|
cancellable.za(tmp$ret$0);
|
|
6788
6804
|
break $l$block;
|
|
6789
6805
|
}
|
|
6790
|
-
slot.
|
|
6806
|
+
slot.v26_1 = cancellable;
|
|
6791
6807
|
}
|
|
6792
6808
|
return cancellable.t1u();
|
|
6793
6809
|
}
|
|
@@ -6796,10 +6812,10 @@
|
|
|
6796
6812
|
var resumeCount = resumesIn.length;
|
|
6797
6813
|
$l$block: {
|
|
6798
6814
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.forEachSlotLocked' call
|
|
6799
|
-
if ($this.
|
|
6815
|
+
if ($this.r26_1 === 0) {
|
|
6800
6816
|
break $l$block;
|
|
6801
6817
|
}
|
|
6802
|
-
var tmp0_safe_receiver = $this.
|
|
6818
|
+
var tmp0_safe_receiver = $this.q26_1;
|
|
6803
6819
|
if (tmp0_safe_receiver == null)
|
|
6804
6820
|
null;
|
|
6805
6821
|
else {
|
|
@@ -6813,7 +6829,7 @@
|
|
|
6813
6829
|
if (!(element == null)) {
|
|
6814
6830
|
$l$block_1: {
|
|
6815
6831
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.findSlotsToResumeLocked.<anonymous>' call
|
|
6816
|
-
var tmp0_elvis_lhs = element.
|
|
6832
|
+
var tmp0_elvis_lhs = element.v26_1;
|
|
6817
6833
|
var tmp;
|
|
6818
6834
|
if (tmp0_elvis_lhs == null) {
|
|
6819
6835
|
break $l$block_1;
|
|
@@ -6835,7 +6851,7 @@
|
|
|
6835
6851
|
var tmp1 = resumeCount;
|
|
6836
6852
|
resumeCount = tmp1 + 1 | 0;
|
|
6837
6853
|
tmp_1[tmp1] = cont;
|
|
6838
|
-
element.
|
|
6854
|
+
element.v26_1 = null;
|
|
6839
6855
|
}
|
|
6840
6856
|
}
|
|
6841
6857
|
}
|
|
@@ -6844,18 +6860,18 @@
|
|
|
6844
6860
|
return resumes;
|
|
6845
6861
|
}
|
|
6846
6862
|
function Emitter(flow, index, value, cont) {
|
|
6847
|
-
this.
|
|
6848
|
-
this.
|
|
6849
|
-
this.
|
|
6850
|
-
this.
|
|
6863
|
+
this.w26_1 = flow;
|
|
6864
|
+
this.x26_1 = index;
|
|
6865
|
+
this.y26_1 = value;
|
|
6866
|
+
this.z26_1 = cont;
|
|
6851
6867
|
}
|
|
6852
6868
|
protoOf(Emitter).z1s = function () {
|
|
6853
|
-
return cancelEmitter(this.
|
|
6869
|
+
return cancelEmitter(this.w26_1, this);
|
|
6854
6870
|
};
|
|
6855
6871
|
function $collectCOROUTINE$8(_this__u8e3s4, collector, resultContinuation) {
|
|
6856
6872
|
CoroutineImpl.call(this, resultContinuation);
|
|
6857
|
-
this.
|
|
6858
|
-
this.
|
|
6873
|
+
this.j27_1 = _this__u8e3s4;
|
|
6874
|
+
this.k27_1 = collector;
|
|
6859
6875
|
}
|
|
6860
6876
|
protoOf($collectCOROUTINE$8).ya = function () {
|
|
6861
6877
|
var suspendResult = this.na_1;
|
|
@@ -6865,15 +6881,15 @@
|
|
|
6865
6881
|
switch (tmp) {
|
|
6866
6882
|
case 0:
|
|
6867
6883
|
this.ma_1 = 13;
|
|
6868
|
-
this.
|
|
6884
|
+
this.l27_1 = this.j27_1.p27();
|
|
6869
6885
|
this.la_1 = 1;
|
|
6870
6886
|
continue $sm;
|
|
6871
6887
|
case 1:
|
|
6872
6888
|
this.ma_1 = 12;
|
|
6873
|
-
var tmp_0 = this.
|
|
6889
|
+
var tmp_0 = this.k27_1;
|
|
6874
6890
|
if (tmp_0 instanceof SubscribedFlowCollector) {
|
|
6875
6891
|
this.la_1 = 2;
|
|
6876
|
-
suspendResult = this.
|
|
6892
|
+
suspendResult = this.k27_1.s27(this);
|
|
6877
6893
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6878
6894
|
return suspendResult;
|
|
6879
6895
|
}
|
|
@@ -6888,7 +6904,7 @@
|
|
|
6888
6904
|
continue $sm;
|
|
6889
6905
|
case 3:
|
|
6890
6906
|
var tmp_1 = this;
|
|
6891
|
-
tmp_1.
|
|
6907
|
+
tmp_1.n27_1 = this.sa().ta(Key_instance_2);
|
|
6892
6908
|
this.la_1 = 4;
|
|
6893
6909
|
continue $sm;
|
|
6894
6910
|
case 4:
|
|
@@ -6905,8 +6921,8 @@
|
|
|
6905
6921
|
continue $sm;
|
|
6906
6922
|
}
|
|
6907
6923
|
|
|
6908
|
-
this.
|
|
6909
|
-
if (!(this.
|
|
6924
|
+
this.o27_1 = tryTakeValue(this.j27_1, this.l27_1);
|
|
6925
|
+
if (!(this.o27_1 === get_NO_VALUE())) {
|
|
6910
6926
|
this.la_1 = 8;
|
|
6911
6927
|
continue $sm;
|
|
6912
6928
|
} else {
|
|
@@ -6916,7 +6932,7 @@
|
|
|
6916
6932
|
|
|
6917
6933
|
case 6:
|
|
6918
6934
|
this.la_1 = 7;
|
|
6919
|
-
suspendResult = awaitValue(this.
|
|
6935
|
+
suspendResult = awaitValue(this.j27_1, this.l27_1, this);
|
|
6920
6936
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6921
6937
|
return suspendResult;
|
|
6922
6938
|
}
|
|
@@ -6926,7 +6942,7 @@
|
|
|
6926
6942
|
this.la_1 = 5;
|
|
6927
6943
|
continue $sm;
|
|
6928
6944
|
case 8:
|
|
6929
|
-
var tmp0_safe_receiver = this.
|
|
6945
|
+
var tmp0_safe_receiver = this.n27_1;
|
|
6930
6946
|
if (tmp0_safe_receiver == null)
|
|
6931
6947
|
null;
|
|
6932
6948
|
else {
|
|
@@ -6934,8 +6950,8 @@
|
|
|
6934
6950
|
}
|
|
6935
6951
|
|
|
6936
6952
|
this.la_1 = 9;
|
|
6937
|
-
var tmp_2 = this.
|
|
6938
|
-
suspendResult = this.
|
|
6953
|
+
var tmp_2 = this.o27_1;
|
|
6954
|
+
suspendResult = this.k27_1.d26((tmp_2 == null ? true : !(tmp_2 == null)) ? tmp_2 : THROW_CCE(), this);
|
|
6939
6955
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
6940
6956
|
return suspendResult;
|
|
6941
6957
|
}
|
|
@@ -6945,18 +6961,18 @@
|
|
|
6945
6961
|
this.la_1 = 4;
|
|
6946
6962
|
continue $sm;
|
|
6947
6963
|
case 10:
|
|
6948
|
-
this.
|
|
6964
|
+
this.m27_1 = Unit_instance;
|
|
6949
6965
|
this.ma_1 = 13;
|
|
6950
6966
|
this.la_1 = 11;
|
|
6951
6967
|
continue $sm;
|
|
6952
6968
|
case 11:
|
|
6953
6969
|
this.ma_1 = 13;
|
|
6954
|
-
this.
|
|
6970
|
+
this.j27_1.t27(this.l27_1);
|
|
6955
6971
|
return Unit_instance;
|
|
6956
6972
|
case 12:
|
|
6957
6973
|
this.ma_1 = 13;
|
|
6958
6974
|
var t = this.oa_1;
|
|
6959
|
-
this.
|
|
6975
|
+
this.j27_1.t27(this.l27_1);
|
|
6960
6976
|
throw t;
|
|
6961
6977
|
case 13:
|
|
6962
6978
|
throw this.oa_1;
|
|
@@ -6974,35 +6990,35 @@
|
|
|
6974
6990
|
};
|
|
6975
6991
|
function SharedFlowImpl(replay, bufferCapacity, onBufferOverflow) {
|
|
6976
6992
|
AbstractSharedFlow.call(this);
|
|
6977
|
-
this.
|
|
6978
|
-
this.
|
|
6979
|
-
this.
|
|
6980
|
-
this.
|
|
6981
|
-
this.
|
|
6982
|
-
this.
|
|
6983
|
-
this.
|
|
6984
|
-
this.
|
|
6985
|
-
}
|
|
6986
|
-
protoOf(SharedFlowImpl).
|
|
6987
|
-
var tmp = ensureNotNull(this.
|
|
6993
|
+
this.i26_1 = replay;
|
|
6994
|
+
this.j26_1 = bufferCapacity;
|
|
6995
|
+
this.k26_1 = onBufferOverflow;
|
|
6996
|
+
this.l26_1 = null;
|
|
6997
|
+
this.m26_1 = new Long(0, 0);
|
|
6998
|
+
this.n26_1 = new Long(0, 0);
|
|
6999
|
+
this.o26_1 = 0;
|
|
7000
|
+
this.p26_1 = 0;
|
|
7001
|
+
}
|
|
7002
|
+
protoOf(SharedFlowImpl).u27 = function () {
|
|
7003
|
+
var tmp = ensureNotNull(this.l26_1);
|
|
6988
7004
|
// Inline function 'kotlin.Long.minus' call
|
|
6989
7005
|
// Inline function 'kotlin.Long.plus' call
|
|
6990
|
-
var this_0 = this.
|
|
7006
|
+
var this_0 = this.m26_1;
|
|
6991
7007
|
var other = _get_replaySize__dxgnb1(this);
|
|
6992
7008
|
var tmp$ret$1 = this_0.o9(toLong(other)).p9(toLong(1));
|
|
6993
7009
|
var tmp_0 = getBufferAt(tmp, tmp$ret$1);
|
|
6994
7010
|
return (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : THROW_CCE();
|
|
6995
7011
|
};
|
|
6996
|
-
protoOf(SharedFlowImpl).
|
|
7012
|
+
protoOf(SharedFlowImpl).v27 = function (collector, $completion) {
|
|
6997
7013
|
var tmp = new $collectCOROUTINE$8(this, collector, $completion);
|
|
6998
7014
|
tmp.na_1 = Unit_instance;
|
|
6999
7015
|
tmp.oa_1 = null;
|
|
7000
7016
|
return tmp.ya();
|
|
7001
7017
|
};
|
|
7002
|
-
protoOf(SharedFlowImpl).
|
|
7003
|
-
return this.
|
|
7018
|
+
protoOf(SharedFlowImpl).n25 = function (collector, $completion) {
|
|
7019
|
+
return this.v27(collector, $completion);
|
|
7004
7020
|
};
|
|
7005
|
-
protoOf(SharedFlowImpl).
|
|
7021
|
+
protoOf(SharedFlowImpl).w27 = function (value) {
|
|
7006
7022
|
var resumes = get_EMPTY_RESUMES();
|
|
7007
7023
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
7008
7024
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -7033,34 +7049,34 @@
|
|
|
7033
7049
|
}
|
|
7034
7050
|
return emitted;
|
|
7035
7051
|
};
|
|
7036
|
-
protoOf(SharedFlowImpl).
|
|
7037
|
-
if (this.
|
|
7052
|
+
protoOf(SharedFlowImpl).d26 = function (value, $completion) {
|
|
7053
|
+
if (this.w27(value))
|
|
7038
7054
|
return Unit_instance;
|
|
7039
7055
|
return emitSuspend(this, value, $completion);
|
|
7040
7056
|
};
|
|
7041
|
-
protoOf(SharedFlowImpl).
|
|
7042
|
-
var index = this.
|
|
7043
|
-
if (index.k8(this.
|
|
7044
|
-
this.
|
|
7057
|
+
protoOf(SharedFlowImpl).x27 = function () {
|
|
7058
|
+
var index = this.m26_1;
|
|
7059
|
+
if (index.k8(this.n26_1) < 0)
|
|
7060
|
+
this.n26_1 = index;
|
|
7045
7061
|
return index;
|
|
7046
7062
|
};
|
|
7047
|
-
protoOf(SharedFlowImpl).
|
|
7063
|
+
protoOf(SharedFlowImpl).a27 = function (oldIndex) {
|
|
7048
7064
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7049
|
-
if (oldIndex.k8(this.
|
|
7065
|
+
if (oldIndex.k8(this.n26_1) > 0)
|
|
7050
7066
|
return get_EMPTY_RESUMES();
|
|
7051
7067
|
var head = _get_head__d7jo8b(this);
|
|
7052
7068
|
// Inline function 'kotlin.Long.plus' call
|
|
7053
|
-
var other = this.
|
|
7069
|
+
var other = this.o26_1;
|
|
7054
7070
|
var newMinCollectorIndex = head.o9(toLong(other));
|
|
7055
|
-
if (this.
|
|
7071
|
+
if (this.j26_1 === 0 ? this.p26_1 > 0 : false) {
|
|
7056
7072
|
newMinCollectorIndex = newMinCollectorIndex.r9();
|
|
7057
7073
|
}
|
|
7058
7074
|
$l$block: {
|
|
7059
7075
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.forEachSlotLocked' call
|
|
7060
|
-
if (this.
|
|
7076
|
+
if (this.r26_1 === 0) {
|
|
7061
7077
|
break $l$block;
|
|
7062
7078
|
}
|
|
7063
|
-
var tmp0_safe_receiver = this.
|
|
7079
|
+
var tmp0_safe_receiver = this.q26_1;
|
|
7064
7080
|
if (tmp0_safe_receiver == null)
|
|
7065
7081
|
null;
|
|
7066
7082
|
else {
|
|
@@ -7073,37 +7089,37 @@
|
|
|
7073
7089
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.forEachSlotLocked.<anonymous>' call
|
|
7074
7090
|
if (!(element == null)) {
|
|
7075
7091
|
// Inline function 'kotlinx.coroutines.flow.SharedFlowImpl.updateCollectorIndexLocked.<anonymous>' call
|
|
7076
|
-
if (element.
|
|
7077
|
-
newMinCollectorIndex = element.
|
|
7092
|
+
if (element.u26_1.k8(new Long(0, 0)) >= 0 ? element.u26_1.k8(newMinCollectorIndex) < 0 : false)
|
|
7093
|
+
newMinCollectorIndex = element.u26_1;
|
|
7078
7094
|
}
|
|
7079
7095
|
}
|
|
7080
7096
|
}
|
|
7081
7097
|
}
|
|
7082
7098
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7083
|
-
if (newMinCollectorIndex.k8(this.
|
|
7099
|
+
if (newMinCollectorIndex.k8(this.n26_1) <= 0)
|
|
7084
7100
|
return get_EMPTY_RESUMES();
|
|
7085
7101
|
var newBufferEndIndex = _get_bufferEndIndex__d2rk18(this);
|
|
7086
7102
|
var tmp;
|
|
7087
|
-
if (this.
|
|
7103
|
+
if (this.r26_1 > 0) {
|
|
7088
7104
|
var newBufferSize0 = newBufferEndIndex.p9(newMinCollectorIndex).s8();
|
|
7089
7105
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
7090
|
-
var a = this.
|
|
7091
|
-
var b = this.
|
|
7106
|
+
var a = this.p26_1;
|
|
7107
|
+
var b = this.j26_1 - newBufferSize0 | 0;
|
|
7092
7108
|
tmp = Math.min(a, b);
|
|
7093
7109
|
} else {
|
|
7094
|
-
tmp = this.
|
|
7110
|
+
tmp = this.p26_1;
|
|
7095
7111
|
}
|
|
7096
7112
|
var maxResumeCount = tmp;
|
|
7097
7113
|
var resumes = get_EMPTY_RESUMES();
|
|
7098
7114
|
// Inline function 'kotlin.Long.plus' call
|
|
7099
7115
|
var this_0 = newBufferEndIndex;
|
|
7100
|
-
var other_0 = this.
|
|
7116
|
+
var other_0 = this.p26_1;
|
|
7101
7117
|
var newQueueEndIndex = this_0.o9(toLong(other_0));
|
|
7102
7118
|
if (maxResumeCount > 0) {
|
|
7103
7119
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
7104
7120
|
resumes = fillArrayVal(Array(maxResumeCount), null);
|
|
7105
7121
|
var resumeCount = 0;
|
|
7106
|
-
var buffer = ensureNotNull(this.
|
|
7122
|
+
var buffer = ensureNotNull(this.l26_1);
|
|
7107
7123
|
var inductionVariable_0 = newBufferEndIndex;
|
|
7108
7124
|
if (inductionVariable_0.k8(newQueueEndIndex) < 0)
|
|
7109
7125
|
$l$loop: do {
|
|
@@ -7116,9 +7132,9 @@
|
|
|
7116
7132
|
var tmp_0 = resumes;
|
|
7117
7133
|
var tmp2 = resumeCount;
|
|
7118
7134
|
resumeCount = tmp2 + 1 | 0;
|
|
7119
|
-
tmp_0[tmp2] = emitter.
|
|
7135
|
+
tmp_0[tmp2] = emitter.z26_1;
|
|
7120
7136
|
setBufferAt(buffer, curEmitterIndex, get_NO_VALUE());
|
|
7121
|
-
setBufferAt(buffer, newBufferEndIndex, emitter.
|
|
7137
|
+
setBufferAt(buffer, newBufferEndIndex, emitter.y26_1);
|
|
7122
7138
|
newBufferEndIndex = newBufferEndIndex.r9();
|
|
7123
7139
|
if (resumeCount >= maxResumeCount)
|
|
7124
7140
|
break $l$loop;
|
|
@@ -7127,18 +7143,18 @@
|
|
|
7127
7143
|
while (inductionVariable_0.k8(newQueueEndIndex) < 0);
|
|
7128
7144
|
}
|
|
7129
7145
|
var newBufferSize1 = newBufferEndIndex.p9(head).s8();
|
|
7130
|
-
if (this.
|
|
7146
|
+
if (this.r26_1 === 0)
|
|
7131
7147
|
newMinCollectorIndex = newBufferEndIndex;
|
|
7132
7148
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
7133
|
-
var a_0 = this.
|
|
7149
|
+
var a_0 = this.m26_1;
|
|
7134
7150
|
// Inline function 'kotlin.Long.minus' call
|
|
7135
7151
|
var this_1 = newBufferEndIndex;
|
|
7136
7152
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
7137
|
-
var a_1 = this.
|
|
7153
|
+
var a_1 = this.i26_1;
|
|
7138
7154
|
var other_1 = Math.min(a_1, newBufferSize1);
|
|
7139
7155
|
var b_0 = this_1.p9(toLong(other_1));
|
|
7140
7156
|
var newReplayIndex = a_0.k8(b_0) >= 0 ? a_0 : b_0;
|
|
7141
|
-
if ((this.
|
|
7157
|
+
if ((this.j26_1 === 0 ? newReplayIndex.k8(newQueueEndIndex) < 0 : false) ? equals(getBufferAt(ensureNotNull(this.l26_1), newReplayIndex), get_NO_VALUE()) : false) {
|
|
7142
7158
|
newBufferEndIndex = newBufferEndIndex.r9();
|
|
7143
7159
|
newReplayIndex = newReplayIndex.r9();
|
|
7144
7160
|
}
|
|
@@ -7150,43 +7166,43 @@
|
|
|
7150
7166
|
resumes = findSlotsToResumeLocked(this, resumes);
|
|
7151
7167
|
return resumes;
|
|
7152
7168
|
};
|
|
7153
|
-
protoOf(SharedFlowImpl).
|
|
7169
|
+
protoOf(SharedFlowImpl).y27 = function () {
|
|
7154
7170
|
return new SharedFlowSlot();
|
|
7155
7171
|
};
|
|
7156
|
-
protoOf(SharedFlowImpl).
|
|
7172
|
+
protoOf(SharedFlowImpl).z27 = function (size) {
|
|
7157
7173
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
7158
7174
|
return fillArrayVal(Array(size), null);
|
|
7159
7175
|
};
|
|
7160
|
-
protoOf(SharedFlowImpl).
|
|
7176
|
+
protoOf(SharedFlowImpl).a28 = function () {
|
|
7161
7177
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
7162
7178
|
// Inline function 'kotlin.contracts.contract' call
|
|
7163
7179
|
// Inline function 'kotlinx.coroutines.internal.synchronizedImpl' call
|
|
7164
|
-
updateBufferLocked(this, _get_bufferEndIndex__d2rk18(this), this.
|
|
7180
|
+
updateBufferLocked(this, _get_bufferEndIndex__d2rk18(this), this.n26_1, _get_bufferEndIndex__d2rk18(this), _get_queueEndIndex__4m025l(this));
|
|
7165
7181
|
return Unit_instance;
|
|
7166
7182
|
};
|
|
7167
7183
|
function SharedFlowSlot() {
|
|
7168
7184
|
AbstractSharedFlowSlot.call(this);
|
|
7169
|
-
this.
|
|
7170
|
-
this.
|
|
7185
|
+
this.u26_1 = new Long(-1, -1);
|
|
7186
|
+
this.v26_1 = null;
|
|
7171
7187
|
}
|
|
7172
|
-
protoOf(SharedFlowSlot).
|
|
7173
|
-
if (this.
|
|
7188
|
+
protoOf(SharedFlowSlot).b28 = function (flow) {
|
|
7189
|
+
if (this.u26_1.k8(new Long(0, 0)) >= 0)
|
|
7174
7190
|
return false;
|
|
7175
|
-
this.
|
|
7191
|
+
this.u26_1 = flow.x27();
|
|
7176
7192
|
return true;
|
|
7177
7193
|
};
|
|
7178
|
-
protoOf(SharedFlowSlot).b28 = function (flow) {
|
|
7179
|
-
return this.a28(flow instanceof SharedFlowImpl ? flow : THROW_CCE());
|
|
7180
|
-
};
|
|
7181
7194
|
protoOf(SharedFlowSlot).c28 = function (flow) {
|
|
7182
|
-
|
|
7183
|
-
var oldIndex = this.s26_1;
|
|
7184
|
-
this.s26_1 = new Long(-1, -1);
|
|
7185
|
-
this.t26_1 = null;
|
|
7186
|
-
return flow.y26(oldIndex);
|
|
7195
|
+
return this.b28(flow instanceof SharedFlowImpl ? flow : THROW_CCE());
|
|
7187
7196
|
};
|
|
7188
7197
|
protoOf(SharedFlowSlot).d28 = function (flow) {
|
|
7189
|
-
|
|
7198
|
+
// Inline function 'kotlinx.coroutines.assert' call
|
|
7199
|
+
var oldIndex = this.u26_1;
|
|
7200
|
+
this.u26_1 = new Long(-1, -1);
|
|
7201
|
+
this.v26_1 = null;
|
|
7202
|
+
return flow.a27(oldIndex);
|
|
7203
|
+
};
|
|
7204
|
+
protoOf(SharedFlowSlot).e28 = function (flow) {
|
|
7205
|
+
return this.d28(flow instanceof SharedFlowImpl ? flow : THROW_CCE());
|
|
7190
7206
|
};
|
|
7191
7207
|
function getBufferAt(_this__u8e3s4, index) {
|
|
7192
7208
|
_init_properties_SharedFlow_kt__umasnn();
|
|
@@ -7211,34 +7227,34 @@
|
|
|
7211
7227
|
}
|
|
7212
7228
|
var EMPTY_RESUMES;
|
|
7213
7229
|
function AbstractSharedFlow() {
|
|
7214
|
-
this.
|
|
7215
|
-
this.
|
|
7216
|
-
this.
|
|
7217
|
-
this.
|
|
7230
|
+
this.q26_1 = null;
|
|
7231
|
+
this.r26_1 = 0;
|
|
7232
|
+
this.s26_1 = 0;
|
|
7233
|
+
this.t26_1 = null;
|
|
7218
7234
|
}
|
|
7219
|
-
protoOf(AbstractSharedFlow).
|
|
7235
|
+
protoOf(AbstractSharedFlow).p27 = function () {
|
|
7220
7236
|
var subscriptionCount;
|
|
7221
7237
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
7222
7238
|
// Inline function 'kotlin.contracts.contract' call
|
|
7223
7239
|
// Inline function 'kotlinx.coroutines.internal.synchronizedImpl' call
|
|
7224
7240
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.allocateSlot.<anonymous>' call
|
|
7225
|
-
var curSlots = this.
|
|
7241
|
+
var curSlots = this.q26_1;
|
|
7226
7242
|
var tmp;
|
|
7227
7243
|
if (curSlots == null) {
|
|
7228
7244
|
// Inline function 'kotlin.also' call
|
|
7229
|
-
var this_0 = this.
|
|
7245
|
+
var this_0 = this.z27(2);
|
|
7230
7246
|
// Inline function 'kotlin.contracts.contract' call
|
|
7231
7247
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.allocateSlot.<anonymous>.<anonymous>' call
|
|
7232
|
-
this.
|
|
7248
|
+
this.q26_1 = this_0;
|
|
7233
7249
|
tmp = this_0;
|
|
7234
7250
|
} else {
|
|
7235
7251
|
var tmp_0;
|
|
7236
|
-
if (this.
|
|
7252
|
+
if (this.r26_1 >= curSlots.length) {
|
|
7237
7253
|
// Inline function 'kotlin.also' call
|
|
7238
7254
|
var this_1 = copyOf(curSlots, imul(2, curSlots.length));
|
|
7239
7255
|
// Inline function 'kotlin.contracts.contract' call
|
|
7240
7256
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.allocateSlot.<anonymous>.<anonymous>' call
|
|
7241
|
-
this.
|
|
7257
|
+
this.q26_1 = this_1;
|
|
7242
7258
|
tmp_0 = this_1;
|
|
7243
7259
|
} else {
|
|
7244
7260
|
tmp_0 = curSlots;
|
|
@@ -7246,14 +7262,14 @@
|
|
|
7246
7262
|
tmp = tmp_0;
|
|
7247
7263
|
}
|
|
7248
7264
|
var slots = tmp;
|
|
7249
|
-
var index = this.
|
|
7265
|
+
var index = this.s26_1;
|
|
7250
7266
|
var slot;
|
|
7251
7267
|
$l$loop: while (true) {
|
|
7252
7268
|
var tmp0_elvis_lhs = slots[index];
|
|
7253
7269
|
var tmp_1;
|
|
7254
7270
|
if (tmp0_elvis_lhs == null) {
|
|
7255
7271
|
// Inline function 'kotlin.also' call
|
|
7256
|
-
var this_2 = this.
|
|
7272
|
+
var this_2 = this.y27();
|
|
7257
7273
|
// Inline function 'kotlin.contracts.contract' call
|
|
7258
7274
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.allocateSlot.<anonymous>.<anonymous>' call
|
|
7259
7275
|
slots[index] = this_2;
|
|
@@ -7265,30 +7281,30 @@
|
|
|
7265
7281
|
index = index + 1 | 0;
|
|
7266
7282
|
if (index >= slots.length)
|
|
7267
7283
|
index = 0;
|
|
7268
|
-
if ((slot instanceof AbstractSharedFlowSlot ? slot : THROW_CCE()).
|
|
7284
|
+
if ((slot instanceof AbstractSharedFlowSlot ? slot : THROW_CCE()).c28(this))
|
|
7269
7285
|
break $l$loop;
|
|
7270
7286
|
}
|
|
7271
|
-
this.
|
|
7272
|
-
this.
|
|
7273
|
-
subscriptionCount = this.
|
|
7287
|
+
this.s26_1 = index;
|
|
7288
|
+
this.r26_1 = this.r26_1 + 1 | 0;
|
|
7289
|
+
subscriptionCount = this.t26_1;
|
|
7274
7290
|
var slot_0 = slot;
|
|
7275
7291
|
if (subscriptionCount == null)
|
|
7276
7292
|
null;
|
|
7277
7293
|
else
|
|
7278
|
-
subscriptionCount.
|
|
7294
|
+
subscriptionCount.r28(1);
|
|
7279
7295
|
return slot_0;
|
|
7280
7296
|
};
|
|
7281
|
-
protoOf(AbstractSharedFlow).
|
|
7297
|
+
protoOf(AbstractSharedFlow).t27 = function (slot) {
|
|
7282
7298
|
var subscriptionCount;
|
|
7283
7299
|
// Inline function 'kotlinx.coroutines.internal.synchronized' call
|
|
7284
7300
|
// Inline function 'kotlin.contracts.contract' call
|
|
7285
7301
|
// Inline function 'kotlinx.coroutines.internal.synchronizedImpl' call
|
|
7286
7302
|
// Inline function 'kotlinx.coroutines.flow.internal.AbstractSharedFlow.freeSlot.<anonymous>' call
|
|
7287
|
-
this.
|
|
7288
|
-
subscriptionCount = this.
|
|
7289
|
-
if (this.
|
|
7290
|
-
this.
|
|
7291
|
-
var resumes = (slot instanceof AbstractSharedFlowSlot ? slot : THROW_CCE()).
|
|
7303
|
+
this.r26_1 = this.r26_1 - 1 | 0;
|
|
7304
|
+
subscriptionCount = this.t26_1;
|
|
7305
|
+
if (this.r26_1 === 0)
|
|
7306
|
+
this.s26_1 = 0;
|
|
7307
|
+
var resumes = (slot instanceof AbstractSharedFlowSlot ? slot : THROW_CCE()).e28(this);
|
|
7292
7308
|
var inductionVariable = 0;
|
|
7293
7309
|
var last = resumes.length;
|
|
7294
7310
|
while (inductionVariable < last) {
|
|
@@ -7306,7 +7322,7 @@
|
|
|
7306
7322
|
if (subscriptionCount == null)
|
|
7307
7323
|
null;
|
|
7308
7324
|
else
|
|
7309
|
-
subscriptionCount.
|
|
7325
|
+
subscriptionCount.r28(-1);
|
|
7310
7326
|
};
|
|
7311
7327
|
function AbstractSharedFlowSlot() {
|
|
7312
7328
|
}
|
|
@@ -7325,17 +7341,17 @@
|
|
|
7325
7341
|
return withContextUndispatched(newContext, originalContextCollector, VOID, ChannelFlowOperator$collectWithContextUndispatched$slambda_0($this, null), $completion);
|
|
7326
7342
|
}
|
|
7327
7343
|
function ChannelFlowOperator$collectWithContextUndispatched$slambda(this$0, resultContinuation) {
|
|
7328
|
-
this.
|
|
7344
|
+
this.a29_1 = this$0;
|
|
7329
7345
|
CoroutineImpl.call(this, resultContinuation);
|
|
7330
7346
|
}
|
|
7331
|
-
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).
|
|
7332
|
-
var tmp = this.
|
|
7347
|
+
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).c29 = function (it, $completion) {
|
|
7348
|
+
var tmp = this.d29(it, $completion);
|
|
7333
7349
|
tmp.na_1 = Unit_instance;
|
|
7334
7350
|
tmp.oa_1 = null;
|
|
7335
7351
|
return tmp.ya();
|
|
7336
7352
|
};
|
|
7337
7353
|
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).lb = function (p1, $completion) {
|
|
7338
|
-
return this.
|
|
7354
|
+
return this.c29((!(p1 == null) ? isInterface(p1, FlowCollector) : false) ? p1 : THROW_CCE(), $completion);
|
|
7339
7355
|
};
|
|
7340
7356
|
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).ya = function () {
|
|
7341
7357
|
var suspendResult = this.na_1;
|
|
@@ -7346,7 +7362,7 @@
|
|
|
7346
7362
|
case 0:
|
|
7347
7363
|
this.ma_1 = 2;
|
|
7348
7364
|
this.la_1 = 1;
|
|
7349
|
-
suspendResult = this.
|
|
7365
|
+
suspendResult = this.a29_1.i29(this.b29_1, this);
|
|
7350
7366
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7351
7367
|
return suspendResult;
|
|
7352
7368
|
}
|
|
@@ -7368,23 +7384,23 @@
|
|
|
7368
7384
|
}
|
|
7369
7385
|
while (true);
|
|
7370
7386
|
};
|
|
7371
|
-
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).
|
|
7372
|
-
var i = new ChannelFlowOperator$collectWithContextUndispatched$slambda(this.
|
|
7373
|
-
i.
|
|
7387
|
+
protoOf(ChannelFlowOperator$collectWithContextUndispatched$slambda).d29 = function (it, completion) {
|
|
7388
|
+
var i = new ChannelFlowOperator$collectWithContextUndispatched$slambda(this.a29_1, completion);
|
|
7389
|
+
i.b29_1 = it;
|
|
7374
7390
|
return i;
|
|
7375
7391
|
};
|
|
7376
7392
|
function ChannelFlowOperator$collectWithContextUndispatched$slambda_0(this$0, resultContinuation) {
|
|
7377
7393
|
var i = new ChannelFlowOperator$collectWithContextUndispatched$slambda(this$0, resultContinuation);
|
|
7378
7394
|
var l = function (it, $completion) {
|
|
7379
|
-
return i.
|
|
7395
|
+
return i.c29(it, $completion);
|
|
7380
7396
|
};
|
|
7381
7397
|
l.$arity = 1;
|
|
7382
7398
|
return l;
|
|
7383
7399
|
}
|
|
7384
7400
|
function $collectCOROUTINE$9(_this__u8e3s4, collector, resultContinuation) {
|
|
7385
7401
|
CoroutineImpl.call(this, resultContinuation);
|
|
7386
|
-
this.
|
|
7387
|
-
this.
|
|
7402
|
+
this.r29_1 = _this__u8e3s4;
|
|
7403
|
+
this.s29_1 = collector;
|
|
7388
7404
|
}
|
|
7389
7405
|
protoOf($collectCOROUTINE$9).ya = function () {
|
|
7390
7406
|
var suspendResult = this.na_1;
|
|
@@ -7395,13 +7411,13 @@
|
|
|
7395
7411
|
case 0:
|
|
7396
7412
|
this.ma_1 = 7;
|
|
7397
7413
|
Factory_getInstance();
|
|
7398
|
-
if (this.
|
|
7414
|
+
if (this.r29_1.w29_1 === -3) {
|
|
7399
7415
|
var tmp_0 = this;
|
|
7400
|
-
tmp_0.
|
|
7401
|
-
this.
|
|
7402
|
-
if (equals(this.
|
|
7416
|
+
tmp_0.t29_1 = this.sa();
|
|
7417
|
+
this.u29_1 = newCoroutineContext(this.t29_1, this.r29_1.v29_1);
|
|
7418
|
+
if (equals(this.u29_1, this.t29_1)) {
|
|
7403
7419
|
this.la_1 = 6;
|
|
7404
|
-
suspendResult = this.
|
|
7420
|
+
suspendResult = this.r29_1.i29(this.s29_1, this);
|
|
7405
7421
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7406
7422
|
return suspendResult;
|
|
7407
7423
|
}
|
|
@@ -7416,9 +7432,9 @@
|
|
|
7416
7432
|
}
|
|
7417
7433
|
|
|
7418
7434
|
case 1:
|
|
7419
|
-
if (equals(this.
|
|
7435
|
+
if (equals(this.u29_1.ta(Key_instance), this.t29_1.ta(Key_instance))) {
|
|
7420
7436
|
this.la_1 = 5;
|
|
7421
|
-
suspendResult = collectWithContextUndispatched(this.
|
|
7437
|
+
suspendResult = collectWithContextUndispatched(this.r29_1, this.s29_1, this.u29_1, this);
|
|
7422
7438
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7423
7439
|
return suspendResult;
|
|
7424
7440
|
}
|
|
@@ -7433,7 +7449,7 @@
|
|
|
7433
7449
|
continue $sm;
|
|
7434
7450
|
case 3:
|
|
7435
7451
|
this.la_1 = 4;
|
|
7436
|
-
suspendResult = protoOf(ChannelFlow).
|
|
7452
|
+
suspendResult = protoOf(ChannelFlow).n25.call(this.r29_1, this.s29_1, this);
|
|
7437
7453
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7438
7454
|
return suspendResult;
|
|
7439
7455
|
}
|
|
@@ -7461,32 +7477,32 @@
|
|
|
7461
7477
|
};
|
|
7462
7478
|
function ChannelFlowOperator(flow, context, capacity, onBufferOverflow) {
|
|
7463
7479
|
ChannelFlow.call(this, context, capacity, onBufferOverflow);
|
|
7464
|
-
this.
|
|
7480
|
+
this.h29_1 = flow;
|
|
7465
7481
|
}
|
|
7466
|
-
protoOf(ChannelFlowOperator).
|
|
7467
|
-
return this.
|
|
7482
|
+
protoOf(ChannelFlowOperator).y29 = function (scope, $completion) {
|
|
7483
|
+
return this.i29(new SendingCollector(scope), $completion);
|
|
7468
7484
|
};
|
|
7469
|
-
protoOf(ChannelFlowOperator).
|
|
7485
|
+
protoOf(ChannelFlowOperator).n25 = function (collector, $completion) {
|
|
7470
7486
|
var tmp = new $collectCOROUTINE$9(this, collector, $completion);
|
|
7471
7487
|
tmp.na_1 = Unit_instance;
|
|
7472
7488
|
tmp.oa_1 = null;
|
|
7473
7489
|
return tmp.ya();
|
|
7474
7490
|
};
|
|
7475
7491
|
protoOf(ChannelFlowOperator).toString = function () {
|
|
7476
|
-
return '' + this.
|
|
7492
|
+
return '' + this.h29_1 + ' -> ' + protoOf(ChannelFlow).toString.call(this);
|
|
7477
7493
|
};
|
|
7478
7494
|
function ChannelFlow$_get_collectToFun_$slambda_j53z2e(this$0, resultContinuation) {
|
|
7479
|
-
this.
|
|
7495
|
+
this.l2a_1 = this$0;
|
|
7480
7496
|
CoroutineImpl.call(this, resultContinuation);
|
|
7481
7497
|
}
|
|
7482
|
-
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).
|
|
7483
|
-
var tmp = this.
|
|
7498
|
+
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).n2a = function (it, $completion) {
|
|
7499
|
+
var tmp = this.o2a(it, $completion);
|
|
7484
7500
|
tmp.na_1 = Unit_instance;
|
|
7485
7501
|
tmp.oa_1 = null;
|
|
7486
7502
|
return tmp.ya();
|
|
7487
7503
|
};
|
|
7488
7504
|
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).lb = function (p1, $completion) {
|
|
7489
|
-
return this.
|
|
7505
|
+
return this.n2a((!(p1 == null) ? isInterface(p1, ProducerScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
7490
7506
|
};
|
|
7491
7507
|
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).ya = function () {
|
|
7492
7508
|
var suspendResult = this.na_1;
|
|
@@ -7497,7 +7513,7 @@
|
|
|
7497
7513
|
case 0:
|
|
7498
7514
|
this.ma_1 = 2;
|
|
7499
7515
|
this.la_1 = 1;
|
|
7500
|
-
suspendResult = this.
|
|
7516
|
+
suspendResult = this.l2a_1.y29(this.m2a_1, this);
|
|
7501
7517
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7502
7518
|
return suspendResult;
|
|
7503
7519
|
}
|
|
@@ -7519,32 +7535,32 @@
|
|
|
7519
7535
|
}
|
|
7520
7536
|
while (true);
|
|
7521
7537
|
};
|
|
7522
|
-
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).
|
|
7523
|
-
var i = new ChannelFlow$_get_collectToFun_$slambda_j53z2e(this.
|
|
7524
|
-
i.
|
|
7538
|
+
protoOf(ChannelFlow$_get_collectToFun_$slambda_j53z2e).o2a = function (it, completion) {
|
|
7539
|
+
var i = new ChannelFlow$_get_collectToFun_$slambda_j53z2e(this.l2a_1, completion);
|
|
7540
|
+
i.m2a_1 = it;
|
|
7525
7541
|
return i;
|
|
7526
7542
|
};
|
|
7527
7543
|
function ChannelFlow$_get_collectToFun_$slambda_j53z2e_0(this$0, resultContinuation) {
|
|
7528
7544
|
var i = new ChannelFlow$_get_collectToFun_$slambda_j53z2e(this$0, resultContinuation);
|
|
7529
7545
|
var l = function (it, $completion) {
|
|
7530
|
-
return i.
|
|
7546
|
+
return i.n2a(it, $completion);
|
|
7531
7547
|
};
|
|
7532
7548
|
l.$arity = 1;
|
|
7533
7549
|
return l;
|
|
7534
7550
|
}
|
|
7535
7551
|
function ChannelFlow$collect$slambda($collector, this$0, resultContinuation) {
|
|
7536
|
-
this.
|
|
7537
|
-
this.
|
|
7552
|
+
this.x2a_1 = $collector;
|
|
7553
|
+
this.y2a_1 = this$0;
|
|
7538
7554
|
CoroutineImpl.call(this, resultContinuation);
|
|
7539
7555
|
}
|
|
7540
|
-
protoOf(ChannelFlow$collect$slambda).
|
|
7541
|
-
var tmp = this.
|
|
7556
|
+
protoOf(ChannelFlow$collect$slambda).a2b = function ($this$coroutineScope, $completion) {
|
|
7557
|
+
var tmp = this.b2b($this$coroutineScope, $completion);
|
|
7542
7558
|
tmp.na_1 = Unit_instance;
|
|
7543
7559
|
tmp.oa_1 = null;
|
|
7544
7560
|
return tmp.ya();
|
|
7545
7561
|
};
|
|
7546
7562
|
protoOf(ChannelFlow$collect$slambda).lb = function (p1, $completion) {
|
|
7547
|
-
return this.
|
|
7563
|
+
return this.a2b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
7548
7564
|
};
|
|
7549
7565
|
protoOf(ChannelFlow$collect$slambda).ya = function () {
|
|
7550
7566
|
var suspendResult = this.na_1;
|
|
@@ -7555,7 +7571,7 @@
|
|
|
7555
7571
|
case 0:
|
|
7556
7572
|
this.ma_1 = 2;
|
|
7557
7573
|
this.la_1 = 1;
|
|
7558
|
-
suspendResult = emitAll(this.
|
|
7574
|
+
suspendResult = emitAll(this.x2a_1, this.y2a_1.b2a(this.z2a_1), this);
|
|
7559
7575
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7560
7576
|
return suspendResult;
|
|
7561
7577
|
}
|
|
@@ -7577,51 +7593,51 @@
|
|
|
7577
7593
|
}
|
|
7578
7594
|
while (true);
|
|
7579
7595
|
};
|
|
7580
|
-
protoOf(ChannelFlow$collect$slambda).
|
|
7581
|
-
var i = new ChannelFlow$collect$slambda(this.
|
|
7582
|
-
i.
|
|
7596
|
+
protoOf(ChannelFlow$collect$slambda).b2b = function ($this$coroutineScope, completion) {
|
|
7597
|
+
var i = new ChannelFlow$collect$slambda(this.x2a_1, this.y2a_1, completion);
|
|
7598
|
+
i.z2a_1 = $this$coroutineScope;
|
|
7583
7599
|
return i;
|
|
7584
7600
|
};
|
|
7585
7601
|
function ChannelFlow$collect$slambda_0($collector, this$0, resultContinuation) {
|
|
7586
7602
|
var i = new ChannelFlow$collect$slambda($collector, this$0, resultContinuation);
|
|
7587
7603
|
var l = function ($this$coroutineScope, $completion) {
|
|
7588
|
-
return i.
|
|
7604
|
+
return i.a2b($this$coroutineScope, $completion);
|
|
7589
7605
|
};
|
|
7590
7606
|
l.$arity = 1;
|
|
7591
7607
|
return l;
|
|
7592
7608
|
}
|
|
7593
7609
|
function ChannelFlow(context, capacity, onBufferOverflow) {
|
|
7594
|
-
this.
|
|
7595
|
-
this.
|
|
7596
|
-
this.
|
|
7610
|
+
this.v29_1 = context;
|
|
7611
|
+
this.w29_1 = capacity;
|
|
7612
|
+
this.x29_1 = onBufferOverflow;
|
|
7597
7613
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7598
7614
|
}
|
|
7599
|
-
protoOf(ChannelFlow).
|
|
7615
|
+
protoOf(ChannelFlow).z29 = function () {
|
|
7600
7616
|
return ChannelFlow$_get_collectToFun_$slambda_j53z2e_0(this, null);
|
|
7601
7617
|
};
|
|
7602
|
-
protoOf(ChannelFlow).
|
|
7618
|
+
protoOf(ChannelFlow).a2a = function () {
|
|
7603
7619
|
var tmp;
|
|
7604
7620
|
Factory_getInstance();
|
|
7605
|
-
if (this.
|
|
7621
|
+
if (this.w29_1 === -3) {
|
|
7606
7622
|
Factory_getInstance();
|
|
7607
7623
|
tmp = -2;
|
|
7608
7624
|
} else {
|
|
7609
|
-
tmp = this.
|
|
7625
|
+
tmp = this.w29_1;
|
|
7610
7626
|
}
|
|
7611
7627
|
return tmp;
|
|
7612
7628
|
};
|
|
7613
|
-
protoOf(ChannelFlow).
|
|
7614
|
-
return produce(scope, this.
|
|
7629
|
+
protoOf(ChannelFlow).b2a = function (scope) {
|
|
7630
|
+
return produce(scope, this.v29_1, this.a2a(), this.x29_1, CoroutineStart_ATOMIC_getInstance(), VOID, this.z29());
|
|
7615
7631
|
};
|
|
7616
|
-
protoOf(ChannelFlow).
|
|
7632
|
+
protoOf(ChannelFlow).n25 = function (collector, $completion) {
|
|
7617
7633
|
return coroutineScope(ChannelFlow$collect$slambda_0(collector, this, null), $completion);
|
|
7618
7634
|
};
|
|
7619
|
-
protoOf(ChannelFlow).
|
|
7635
|
+
protoOf(ChannelFlow).c2a = function () {
|
|
7620
7636
|
return null;
|
|
7621
7637
|
};
|
|
7622
7638
|
protoOf(ChannelFlow).toString = function () {
|
|
7623
7639
|
var props = ArrayList_init_$Create$(4);
|
|
7624
|
-
var tmp0_safe_receiver = this.
|
|
7640
|
+
var tmp0_safe_receiver = this.c2a();
|
|
7625
7641
|
if (tmp0_safe_receiver == null)
|
|
7626
7642
|
null;
|
|
7627
7643
|
else {
|
|
@@ -7630,15 +7646,15 @@
|
|
|
7630
7646
|
// Inline function 'kotlinx.coroutines.flow.internal.ChannelFlow.toString.<anonymous>' call
|
|
7631
7647
|
props.s(tmp0_safe_receiver);
|
|
7632
7648
|
}
|
|
7633
|
-
if (!(this.
|
|
7634
|
-
props.s('context=' + this.
|
|
7649
|
+
if (!(this.v29_1 === EmptyCoroutineContext_getInstance())) {
|
|
7650
|
+
props.s('context=' + this.v29_1);
|
|
7635
7651
|
}
|
|
7636
7652
|
Factory_getInstance();
|
|
7637
|
-
if (!(this.
|
|
7638
|
-
props.s('capacity=' + this.
|
|
7653
|
+
if (!(this.w29_1 === -3)) {
|
|
7654
|
+
props.s('capacity=' + this.w29_1);
|
|
7639
7655
|
}
|
|
7640
|
-
if (!this.
|
|
7641
|
-
props.s('onBufferOverflow=' + this.
|
|
7656
|
+
if (!this.x29_1.equals(BufferOverflow_SUSPEND_getInstance())) {
|
|
7657
|
+
props.s('onBufferOverflow=' + this.x29_1);
|
|
7642
7658
|
}
|
|
7643
7659
|
return get_classSimpleName(this) + '[' + joinToString(props, ', ') + ']';
|
|
7644
7660
|
};
|
|
@@ -7669,17 +7685,17 @@
|
|
|
7669
7685
|
return typeof a === 'function' ? a(value, completion) : block.lb(value, completion);
|
|
7670
7686
|
}
|
|
7671
7687
|
function UndispatchedContextCollector$emitRef$slambda($downstream, resultContinuation) {
|
|
7672
|
-
this.
|
|
7688
|
+
this.k2b_1 = $downstream;
|
|
7673
7689
|
CoroutineImpl.call(this, resultContinuation);
|
|
7674
7690
|
}
|
|
7675
|
-
protoOf(UndispatchedContextCollector$emitRef$slambda).
|
|
7676
|
-
var tmp = this.
|
|
7691
|
+
protoOf(UndispatchedContextCollector$emitRef$slambda).m2b = function (it, $completion) {
|
|
7692
|
+
var tmp = this.n2b(it, $completion);
|
|
7677
7693
|
tmp.na_1 = Unit_instance;
|
|
7678
7694
|
tmp.oa_1 = null;
|
|
7679
7695
|
return tmp.ya();
|
|
7680
7696
|
};
|
|
7681
7697
|
protoOf(UndispatchedContextCollector$emitRef$slambda).lb = function (p1, $completion) {
|
|
7682
|
-
return this.
|
|
7698
|
+
return this.m2b((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
7683
7699
|
};
|
|
7684
7700
|
protoOf(UndispatchedContextCollector$emitRef$slambda).ya = function () {
|
|
7685
7701
|
var suspendResult = this.na_1;
|
|
@@ -7690,7 +7706,7 @@
|
|
|
7690
7706
|
case 0:
|
|
7691
7707
|
this.ma_1 = 2;
|
|
7692
7708
|
this.la_1 = 1;
|
|
7693
|
-
suspendResult = this.
|
|
7709
|
+
suspendResult = this.k2b_1.d26(this.l2b_1, this);
|
|
7694
7710
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7695
7711
|
return suspendResult;
|
|
7696
7712
|
}
|
|
@@ -7712,56 +7728,56 @@
|
|
|
7712
7728
|
}
|
|
7713
7729
|
while (true);
|
|
7714
7730
|
};
|
|
7715
|
-
protoOf(UndispatchedContextCollector$emitRef$slambda).
|
|
7716
|
-
var i = new UndispatchedContextCollector$emitRef$slambda(this.
|
|
7717
|
-
i.
|
|
7731
|
+
protoOf(UndispatchedContextCollector$emitRef$slambda).n2b = function (it, completion) {
|
|
7732
|
+
var i = new UndispatchedContextCollector$emitRef$slambda(this.k2b_1, completion);
|
|
7733
|
+
i.l2b_1 = it;
|
|
7718
7734
|
return i;
|
|
7719
7735
|
};
|
|
7720
7736
|
function UndispatchedContextCollector$emitRef$slambda_0($downstream, resultContinuation) {
|
|
7721
7737
|
var i = new UndispatchedContextCollector$emitRef$slambda($downstream, resultContinuation);
|
|
7722
7738
|
var l = function (it, $completion) {
|
|
7723
|
-
return i.
|
|
7739
|
+
return i.m2b(it, $completion);
|
|
7724
7740
|
};
|
|
7725
7741
|
l.$arity = 1;
|
|
7726
7742
|
return l;
|
|
7727
7743
|
}
|
|
7728
7744
|
function UndispatchedContextCollector(downstream, emitContext) {
|
|
7729
|
-
this.
|
|
7730
|
-
this.
|
|
7745
|
+
this.o2b_1 = emitContext;
|
|
7746
|
+
this.p2b_1 = threadContextElements(this.o2b_1);
|
|
7731
7747
|
var tmp = this;
|
|
7732
|
-
tmp.
|
|
7748
|
+
tmp.q2b_1 = UndispatchedContextCollector$emitRef$slambda_0(downstream, null);
|
|
7733
7749
|
}
|
|
7734
|
-
protoOf(UndispatchedContextCollector).
|
|
7735
|
-
return withContextUndispatched(this.
|
|
7750
|
+
protoOf(UndispatchedContextCollector).d26 = function (value, $completion) {
|
|
7751
|
+
return withContextUndispatched(this.o2b_1, value, this.p2b_1, this.q2b_1, $completion);
|
|
7736
7752
|
};
|
|
7737
7753
|
function StackFrameContinuation(uCont, context) {
|
|
7738
|
-
this.
|
|
7739
|
-
this.
|
|
7754
|
+
this.r2b_1 = uCont;
|
|
7755
|
+
this.s2b_1 = context;
|
|
7740
7756
|
}
|
|
7741
7757
|
protoOf(StackFrameContinuation).sa = function () {
|
|
7742
|
-
return this.
|
|
7758
|
+
return this.s2b_1;
|
|
7743
7759
|
};
|
|
7744
7760
|
protoOf(StackFrameContinuation).za = function (result) {
|
|
7745
|
-
this.
|
|
7761
|
+
this.r2b_1.za(result);
|
|
7746
7762
|
};
|
|
7747
7763
|
function checkOwnership(_this__u8e3s4, owner) {
|
|
7748
|
-
if (!(_this__u8e3s4.
|
|
7764
|
+
if (!(_this__u8e3s4.t2b_1 === owner))
|
|
7749
7765
|
throw _this__u8e3s4;
|
|
7750
7766
|
}
|
|
7751
7767
|
function ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda(this$0, $collector, $value, resultContinuation) {
|
|
7752
|
-
this.
|
|
7753
|
-
this.
|
|
7754
|
-
this.
|
|
7768
|
+
this.c2c_1 = this$0;
|
|
7769
|
+
this.d2c_1 = $collector;
|
|
7770
|
+
this.e2c_1 = $value;
|
|
7755
7771
|
CoroutineImpl.call(this, resultContinuation);
|
|
7756
7772
|
}
|
|
7757
|
-
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda).
|
|
7758
|
-
var tmp = this.
|
|
7773
|
+
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda).a2b = function ($this$launch, $completion) {
|
|
7774
|
+
var tmp = this.b2b($this$launch, $completion);
|
|
7759
7775
|
tmp.na_1 = Unit_instance;
|
|
7760
7776
|
tmp.oa_1 = null;
|
|
7761
7777
|
return tmp.ya();
|
|
7762
7778
|
};
|
|
7763
7779
|
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda).lb = function (p1, $completion) {
|
|
7764
|
-
return this.
|
|
7780
|
+
return this.a2b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
7765
7781
|
};
|
|
7766
7782
|
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda).ya = function () {
|
|
7767
7783
|
var suspendResult = this.na_1;
|
|
@@ -7772,7 +7788,7 @@
|
|
|
7772
7788
|
case 0:
|
|
7773
7789
|
this.ma_1 = 2;
|
|
7774
7790
|
this.la_1 = 1;
|
|
7775
|
-
suspendResult = this.
|
|
7791
|
+
suspendResult = this.c2c_1.k2c_1(this.d2c_1, this.e2c_1, this);
|
|
7776
7792
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7777
7793
|
return suspendResult;
|
|
7778
7794
|
}
|
|
@@ -7794,34 +7810,34 @@
|
|
|
7794
7810
|
}
|
|
7795
7811
|
while (true);
|
|
7796
7812
|
};
|
|
7797
|
-
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda).
|
|
7798
|
-
var i = new ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda(this.
|
|
7799
|
-
i.
|
|
7813
|
+
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda).b2b = function ($this$launch, completion) {
|
|
7814
|
+
var i = new ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda(this.c2c_1, this.d2c_1, this.e2c_1, completion);
|
|
7815
|
+
i.f2c_1 = $this$launch;
|
|
7800
7816
|
return i;
|
|
7801
7817
|
};
|
|
7802
7818
|
function ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda_0(this$0, $collector, $value, resultContinuation) {
|
|
7803
7819
|
var i = new ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda(this$0, $collector, $value, resultContinuation);
|
|
7804
7820
|
var l = function ($this$launch, $completion) {
|
|
7805
|
-
return i.
|
|
7821
|
+
return i.a2b($this$launch, $completion);
|
|
7806
7822
|
};
|
|
7807
7823
|
l.$arity = 1;
|
|
7808
7824
|
return l;
|
|
7809
7825
|
}
|
|
7810
7826
|
function ChannelFlowTransformLatest$flowCollect$slambda$slambda($previousFlow, $this_coroutineScope, this$0, $collector, resultContinuation) {
|
|
7811
|
-
this.
|
|
7812
|
-
this.
|
|
7813
|
-
this.
|
|
7814
|
-
this.
|
|
7827
|
+
this.t2c_1 = $previousFlow;
|
|
7828
|
+
this.u2c_1 = $this_coroutineScope;
|
|
7829
|
+
this.v2c_1 = this$0;
|
|
7830
|
+
this.w2c_1 = $collector;
|
|
7815
7831
|
CoroutineImpl.call(this, resultContinuation);
|
|
7816
7832
|
}
|
|
7817
|
-
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda).
|
|
7818
|
-
var tmp = this.
|
|
7833
|
+
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda).m2b = function (value, $completion) {
|
|
7834
|
+
var tmp = this.n2b(value, $completion);
|
|
7819
7835
|
tmp.na_1 = Unit_instance;
|
|
7820
7836
|
tmp.oa_1 = null;
|
|
7821
7837
|
return tmp.ya();
|
|
7822
7838
|
};
|
|
7823
7839
|
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda).lb = function (p1, $completion) {
|
|
7824
|
-
return this.
|
|
7840
|
+
return this.m2b((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
7825
7841
|
};
|
|
7826
7842
|
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda).ya = function () {
|
|
7827
7843
|
var suspendResult = this.na_1;
|
|
@@ -7831,19 +7847,19 @@
|
|
|
7831
7847
|
switch (tmp) {
|
|
7832
7848
|
case 0:
|
|
7833
7849
|
this.ma_1 = 3;
|
|
7834
|
-
this.
|
|
7835
|
-
if (this.
|
|
7836
|
-
this.
|
|
7850
|
+
this.y2c_1 = this.t2c_1._v;
|
|
7851
|
+
if (this.y2c_1 == null) {
|
|
7852
|
+
this.z2c_1 = null;
|
|
7837
7853
|
this.la_1 = 2;
|
|
7838
7854
|
continue $sm;
|
|
7839
7855
|
} else {
|
|
7840
7856
|
var tmp_0 = this;
|
|
7841
|
-
tmp_0.
|
|
7857
|
+
tmp_0.a2d_1 = this.y2c_1;
|
|
7842
7858
|
var tmp_1 = this;
|
|
7843
|
-
tmp_1.
|
|
7844
|
-
this.
|
|
7859
|
+
tmp_1.b2d_1 = this.a2d_1;
|
|
7860
|
+
this.b2d_1.w1r(new ChildCancelledException());
|
|
7845
7861
|
this.la_1 = 1;
|
|
7846
|
-
suspendResult = this.
|
|
7862
|
+
suspendResult = this.b2d_1.t1r(this);
|
|
7847
7863
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7848
7864
|
return suspendResult;
|
|
7849
7865
|
}
|
|
@@ -7851,12 +7867,12 @@
|
|
|
7851
7867
|
}
|
|
7852
7868
|
|
|
7853
7869
|
case 1:
|
|
7854
|
-
this.
|
|
7870
|
+
this.z2c_1 = this.a2d_1;
|
|
7855
7871
|
this.la_1 = 2;
|
|
7856
7872
|
continue $sm;
|
|
7857
7873
|
case 2:
|
|
7858
7874
|
var tmp_2 = CoroutineStart_UNDISPATCHED_getInstance();
|
|
7859
|
-
this.
|
|
7875
|
+
this.t2c_1._v = launch(this.u2c_1, VOID, tmp_2, ChannelFlowTransformLatest$flowCollect$slambda$slambda$slambda_0(this.v2c_1, this.w2c_1, this.x2c_1, null));
|
|
7860
7876
|
return Unit_instance;
|
|
7861
7877
|
case 3:
|
|
7862
7878
|
throw this.oa_1;
|
|
@@ -7872,38 +7888,38 @@
|
|
|
7872
7888
|
}
|
|
7873
7889
|
while (true);
|
|
7874
7890
|
};
|
|
7875
|
-
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda).
|
|
7876
|
-
var i = new ChannelFlowTransformLatest$flowCollect$slambda$slambda(this.
|
|
7877
|
-
i.
|
|
7891
|
+
protoOf(ChannelFlowTransformLatest$flowCollect$slambda$slambda).n2b = function (value, completion) {
|
|
7892
|
+
var i = new ChannelFlowTransformLatest$flowCollect$slambda$slambda(this.t2c_1, this.u2c_1, this.v2c_1, this.w2c_1, completion);
|
|
7893
|
+
i.x2c_1 = value;
|
|
7878
7894
|
return i;
|
|
7879
7895
|
};
|
|
7880
7896
|
function ChannelFlowTransformLatest$flowCollect$slambda$slambda_0($previousFlow, $this_coroutineScope, this$0, $collector, resultContinuation) {
|
|
7881
7897
|
var i = new ChannelFlowTransformLatest$flowCollect$slambda$slambda($previousFlow, $this_coroutineScope, this$0, $collector, resultContinuation);
|
|
7882
7898
|
var l = function (value, $completion) {
|
|
7883
|
-
return i.
|
|
7899
|
+
return i.m2b(value, $completion);
|
|
7884
7900
|
};
|
|
7885
7901
|
l.$arity = 1;
|
|
7886
7902
|
return l;
|
|
7887
7903
|
}
|
|
7888
7904
|
function sam$kotlinx_coroutines_flow_FlowCollector$0(function_0) {
|
|
7889
|
-
this.
|
|
7905
|
+
this.c2d_1 = function_0;
|
|
7890
7906
|
}
|
|
7891
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).
|
|
7892
|
-
return this.
|
|
7907
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0).d26 = function (value, $completion) {
|
|
7908
|
+
return this.c2d_1(value, $completion);
|
|
7893
7909
|
};
|
|
7894
7910
|
function ChannelFlowTransformLatest$flowCollect$slambda(this$0, $collector, resultContinuation) {
|
|
7895
|
-
this.
|
|
7896
|
-
this.
|
|
7911
|
+
this.l2d_1 = this$0;
|
|
7912
|
+
this.m2d_1 = $collector;
|
|
7897
7913
|
CoroutineImpl.call(this, resultContinuation);
|
|
7898
7914
|
}
|
|
7899
|
-
protoOf(ChannelFlowTransformLatest$flowCollect$slambda).
|
|
7900
|
-
var tmp = this.
|
|
7915
|
+
protoOf(ChannelFlowTransformLatest$flowCollect$slambda).a2b = function ($this$coroutineScope, $completion) {
|
|
7916
|
+
var tmp = this.b2b($this$coroutineScope, $completion);
|
|
7901
7917
|
tmp.na_1 = Unit_instance;
|
|
7902
7918
|
tmp.oa_1 = null;
|
|
7903
7919
|
return tmp.ya();
|
|
7904
7920
|
};
|
|
7905
7921
|
protoOf(ChannelFlowTransformLatest$flowCollect$slambda).lb = function (p1, $completion) {
|
|
7906
|
-
return this.
|
|
7922
|
+
return this.a2b((!(p1 == null) ? isInterface(p1, CoroutineScope) : false) ? p1 : THROW_CCE(), $completion);
|
|
7907
7923
|
};
|
|
7908
7924
|
protoOf(ChannelFlowTransformLatest$flowCollect$slambda).ya = function () {
|
|
7909
7925
|
var suspendResult = this.na_1;
|
|
@@ -7913,10 +7929,10 @@
|
|
|
7913
7929
|
switch (tmp) {
|
|
7914
7930
|
case 0:
|
|
7915
7931
|
this.ma_1 = 2;
|
|
7916
|
-
this.
|
|
7932
|
+
this.o2d_1 = {_v: null};
|
|
7917
7933
|
this.la_1 = 1;
|
|
7918
|
-
var tmp_0 = ChannelFlowTransformLatest$flowCollect$slambda$slambda_0(this.
|
|
7919
|
-
suspendResult = this.
|
|
7934
|
+
var tmp_0 = ChannelFlowTransformLatest$flowCollect$slambda$slambda_0(this.o2d_1, this.n2d_1, this.l2d_1, this.m2d_1, null);
|
|
7935
|
+
suspendResult = this.l2d_1.h29_1.n25(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp_0), this);
|
|
7920
7936
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7921
7937
|
return suspendResult;
|
|
7922
7938
|
}
|
|
@@ -7938,15 +7954,15 @@
|
|
|
7938
7954
|
}
|
|
7939
7955
|
while (true);
|
|
7940
7956
|
};
|
|
7941
|
-
protoOf(ChannelFlowTransformLatest$flowCollect$slambda).
|
|
7942
|
-
var i = new ChannelFlowTransformLatest$flowCollect$slambda(this.
|
|
7943
|
-
i.
|
|
7957
|
+
protoOf(ChannelFlowTransformLatest$flowCollect$slambda).b2b = function ($this$coroutineScope, completion) {
|
|
7958
|
+
var i = new ChannelFlowTransformLatest$flowCollect$slambda(this.l2d_1, this.m2d_1, completion);
|
|
7959
|
+
i.n2d_1 = $this$coroutineScope;
|
|
7944
7960
|
return i;
|
|
7945
7961
|
};
|
|
7946
7962
|
function ChannelFlowTransformLatest$flowCollect$slambda_0(this$0, $collector, resultContinuation) {
|
|
7947
7963
|
var i = new ChannelFlowTransformLatest$flowCollect$slambda(this$0, $collector, resultContinuation);
|
|
7948
7964
|
var l = function ($this$coroutineScope, $completion) {
|
|
7949
|
-
return i.
|
|
7965
|
+
return i.a2b($this$coroutineScope, $completion);
|
|
7950
7966
|
};
|
|
7951
7967
|
l.$arity = 1;
|
|
7952
7968
|
return l;
|
|
@@ -7963,14 +7979,14 @@
|
|
|
7963
7979
|
capacity = tmp;
|
|
7964
7980
|
onBufferOverflow = onBufferOverflow === VOID ? BufferOverflow_SUSPEND_getInstance() : onBufferOverflow;
|
|
7965
7981
|
ChannelFlowOperator.call(this, flow, context, capacity, onBufferOverflow);
|
|
7966
|
-
this.
|
|
7982
|
+
this.k2c_1 = transform;
|
|
7967
7983
|
}
|
|
7968
|
-
protoOf(ChannelFlowTransformLatest).
|
|
7984
|
+
protoOf(ChannelFlowTransformLatest).p2d = function (collector, $completion) {
|
|
7969
7985
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
7970
7986
|
return coroutineScope(ChannelFlowTransformLatest$flowCollect$slambda_0(this, collector, null), $completion);
|
|
7971
7987
|
};
|
|
7972
|
-
protoOf(ChannelFlowTransformLatest).
|
|
7973
|
-
return this.
|
|
7988
|
+
protoOf(ChannelFlowTransformLatest).i29 = function (collector, $completion) {
|
|
7989
|
+
return this.p2d(collector, $completion);
|
|
7974
7990
|
};
|
|
7975
7991
|
function NopCollector() {
|
|
7976
7992
|
}
|
|
@@ -7992,9 +8008,9 @@
|
|
|
7992
8008
|
}
|
|
7993
8009
|
function checkContext(_this__u8e3s4, currentContext) {
|
|
7994
8010
|
var result = currentContext.le(0, checkContext$lambda(_this__u8e3s4));
|
|
7995
|
-
if (!(result === _this__u8e3s4.
|
|
8011
|
+
if (!(result === _this__u8e3s4.s2d_1)) {
|
|
7996
8012
|
// Inline function 'kotlin.error' call
|
|
7997
|
-
var message = 'Flow invariant is violated:\n' + ('\t\tFlow was collected in ' + _this__u8e3s4.
|
|
8013
|
+
var message = 'Flow invariant is violated:\n' + ('\t\tFlow was collected in ' + _this__u8e3s4.r2d_1 + ',\n') + ('\t\tbut emission happened in ' + currentContext + '.\n') + "\t\tPlease refer to 'flow' documentation or use 'flowOn' instead";
|
|
7998
8014
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
7999
8015
|
}
|
|
8000
8016
|
}
|
|
@@ -8020,7 +8036,7 @@
|
|
|
8020
8036
|
function checkContext$lambda($this_checkContext) {
|
|
8021
8037
|
return function (count, element) {
|
|
8022
8038
|
var key = element.n2();
|
|
8023
|
-
var collectElement = $this_checkContext.
|
|
8039
|
+
var collectElement = $this_checkContext.r2d_1.ta(key);
|
|
8024
8040
|
var tmp;
|
|
8025
8041
|
if (!(key === Key_instance_2)) {
|
|
8026
8042
|
return !(element === collectElement) ? IntCompanionObject_instance.MIN_VALUE : count + 1 | 0;
|
|
@@ -8036,10 +8052,10 @@
|
|
|
8036
8052
|
};
|
|
8037
8053
|
}
|
|
8038
8054
|
function SendingCollector(channel) {
|
|
8039
|
-
this.
|
|
8055
|
+
this.u2d_1 = channel;
|
|
8040
8056
|
}
|
|
8041
|
-
protoOf(SendingCollector).
|
|
8042
|
-
return this.
|
|
8057
|
+
protoOf(SendingCollector).d26 = function (value, $completion) {
|
|
8058
|
+
return this.u2d_1.x23(value, $completion);
|
|
8043
8059
|
};
|
|
8044
8060
|
function get_defaultKeySelector() {
|
|
8045
8061
|
_init_properties_Distinct_kt__4eindw();
|
|
@@ -8067,12 +8083,12 @@
|
|
|
8067
8083
|
var tmp_0;
|
|
8068
8084
|
var tmp_1;
|
|
8069
8085
|
if (_this__u8e3s4 instanceof DistinctFlowImpl) {
|
|
8070
|
-
tmp_1 = _this__u8e3s4.
|
|
8086
|
+
tmp_1 = _this__u8e3s4.w2d_1 === keySelector;
|
|
8071
8087
|
} else {
|
|
8072
8088
|
tmp_1 = false;
|
|
8073
8089
|
}
|
|
8074
8090
|
if (tmp_1) {
|
|
8075
|
-
tmp_0 = _this__u8e3s4.
|
|
8091
|
+
tmp_0 = _this__u8e3s4.x2d_1 === areEquivalent;
|
|
8076
8092
|
} else {
|
|
8077
8093
|
tmp_0 = false;
|
|
8078
8094
|
}
|
|
@@ -8084,25 +8100,25 @@
|
|
|
8084
8100
|
return tmp;
|
|
8085
8101
|
}
|
|
8086
8102
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_0(function_0) {
|
|
8087
|
-
this.
|
|
8103
|
+
this.y2d_1 = function_0;
|
|
8088
8104
|
}
|
|
8089
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).
|
|
8090
|
-
return this.
|
|
8105
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_0).d26 = function (value, $completion) {
|
|
8106
|
+
return this.y2d_1(value, $completion);
|
|
8091
8107
|
};
|
|
8092
8108
|
function DistinctFlowImpl$collect$slambda(this$0, $previousKey, $collector, resultContinuation) {
|
|
8093
|
-
this.
|
|
8094
|
-
this.
|
|
8095
|
-
this.
|
|
8109
|
+
this.h2e_1 = this$0;
|
|
8110
|
+
this.i2e_1 = $previousKey;
|
|
8111
|
+
this.j2e_1 = $collector;
|
|
8096
8112
|
CoroutineImpl.call(this, resultContinuation);
|
|
8097
8113
|
}
|
|
8098
|
-
protoOf(DistinctFlowImpl$collect$slambda).
|
|
8099
|
-
var tmp = this.
|
|
8114
|
+
protoOf(DistinctFlowImpl$collect$slambda).m2b = function (value, $completion) {
|
|
8115
|
+
var tmp = this.n2b(value, $completion);
|
|
8100
8116
|
tmp.na_1 = Unit_instance;
|
|
8101
8117
|
tmp.oa_1 = null;
|
|
8102
8118
|
return tmp.ya();
|
|
8103
8119
|
};
|
|
8104
8120
|
protoOf(DistinctFlowImpl$collect$slambda).lb = function (p1, $completion) {
|
|
8105
|
-
return this.
|
|
8121
|
+
return this.m2b((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
8106
8122
|
};
|
|
8107
8123
|
protoOf(DistinctFlowImpl$collect$slambda).ya = function () {
|
|
8108
8124
|
var suspendResult = this.na_1;
|
|
@@ -8112,11 +8128,11 @@
|
|
|
8112
8128
|
switch (tmp) {
|
|
8113
8129
|
case 0:
|
|
8114
8130
|
this.ma_1 = 3;
|
|
8115
|
-
this.
|
|
8116
|
-
if (this.
|
|
8117
|
-
this.
|
|
8131
|
+
this.l2e_1 = this.h2e_1.w2d_1(this.k2e_1);
|
|
8132
|
+
if (this.i2e_1._v === get_NULL() ? true : !this.h2e_1.x2d_1(this.i2e_1._v, this.l2e_1)) {
|
|
8133
|
+
this.i2e_1._v = this.l2e_1;
|
|
8118
8134
|
this.la_1 = 1;
|
|
8119
|
-
suspendResult = this.
|
|
8135
|
+
suspendResult = this.j2e_1.d26(this.k2e_1, this);
|
|
8120
8136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8121
8137
|
return suspendResult;
|
|
8122
8138
|
}
|
|
@@ -8145,28 +8161,28 @@
|
|
|
8145
8161
|
}
|
|
8146
8162
|
while (true);
|
|
8147
8163
|
};
|
|
8148
|
-
protoOf(DistinctFlowImpl$collect$slambda).
|
|
8149
|
-
var i = new DistinctFlowImpl$collect$slambda(this.
|
|
8150
|
-
i.
|
|
8164
|
+
protoOf(DistinctFlowImpl$collect$slambda).n2b = function (value, completion) {
|
|
8165
|
+
var i = new DistinctFlowImpl$collect$slambda(this.h2e_1, this.i2e_1, this.j2e_1, completion);
|
|
8166
|
+
i.k2e_1 = value;
|
|
8151
8167
|
return i;
|
|
8152
8168
|
};
|
|
8153
8169
|
function DistinctFlowImpl$collect$slambda_0(this$0, $previousKey, $collector, resultContinuation) {
|
|
8154
8170
|
var i = new DistinctFlowImpl$collect$slambda(this$0, $previousKey, $collector, resultContinuation);
|
|
8155
8171
|
var l = function (value, $completion) {
|
|
8156
|
-
return i.
|
|
8172
|
+
return i.m2b(value, $completion);
|
|
8157
8173
|
};
|
|
8158
8174
|
l.$arity = 1;
|
|
8159
8175
|
return l;
|
|
8160
8176
|
}
|
|
8161
8177
|
function DistinctFlowImpl(upstream, keySelector, areEquivalent) {
|
|
8162
|
-
this.
|
|
8163
|
-
this.
|
|
8164
|
-
this.
|
|
8178
|
+
this.v2d_1 = upstream;
|
|
8179
|
+
this.w2d_1 = keySelector;
|
|
8180
|
+
this.x2d_1 = areEquivalent;
|
|
8165
8181
|
}
|
|
8166
|
-
protoOf(DistinctFlowImpl).
|
|
8182
|
+
protoOf(DistinctFlowImpl).n25 = function (collector, $completion) {
|
|
8167
8183
|
var previousKey = {_v: get_NULL()};
|
|
8168
8184
|
var tmp = DistinctFlowImpl$collect$slambda_0(this, previousKey, collector, null);
|
|
8169
|
-
return this.
|
|
8185
|
+
return this.v2d_1.n25(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp), $completion);
|
|
8170
8186
|
};
|
|
8171
8187
|
function defaultKeySelector$lambda(it) {
|
|
8172
8188
|
_init_properties_Distinct_kt__4eindw();
|
|
@@ -8186,7 +8202,7 @@
|
|
|
8186
8202
|
}
|
|
8187
8203
|
function ensureActive_1(_this__u8e3s4) {
|
|
8188
8204
|
if (_this__u8e3s4 instanceof ThrowingCollector)
|
|
8189
|
-
throw _this__u8e3s4.
|
|
8205
|
+
throw _this__u8e3s4.m2e_1;
|
|
8190
8206
|
}
|
|
8191
8207
|
function ThrowingCollector() {
|
|
8192
8208
|
}
|
|
@@ -8208,25 +8224,25 @@
|
|
|
8208
8224
|
return tmp.ya();
|
|
8209
8225
|
}
|
|
8210
8226
|
function sam$kotlinx_coroutines_flow_FlowCollector$0_1(function_0) {
|
|
8211
|
-
this.
|
|
8227
|
+
this.x2e_1 = function_0;
|
|
8212
8228
|
}
|
|
8213
|
-
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).
|
|
8214
|
-
return this.
|
|
8229
|
+
protoOf(sam$kotlinx_coroutines_flow_FlowCollector$0_1).d26 = function (value, $completion) {
|
|
8230
|
+
return this.x2e_1(value, $completion);
|
|
8215
8231
|
};
|
|
8216
8232
|
function take$o$collect$slambda($consumed, $count, $$this$unsafeFlow, resultContinuation) {
|
|
8217
|
-
this.
|
|
8218
|
-
this.
|
|
8219
|
-
this.
|
|
8233
|
+
this.g2f_1 = $consumed;
|
|
8234
|
+
this.h2f_1 = $count;
|
|
8235
|
+
this.i2f_1 = $$this$unsafeFlow;
|
|
8220
8236
|
CoroutineImpl.call(this, resultContinuation);
|
|
8221
8237
|
}
|
|
8222
|
-
protoOf(take$o$collect$slambda).
|
|
8223
|
-
var tmp = this.
|
|
8238
|
+
protoOf(take$o$collect$slambda).m2b = function (value, $completion) {
|
|
8239
|
+
var tmp = this.n2b(value, $completion);
|
|
8224
8240
|
tmp.na_1 = Unit_instance;
|
|
8225
8241
|
tmp.oa_1 = null;
|
|
8226
8242
|
return tmp.ya();
|
|
8227
8243
|
};
|
|
8228
8244
|
protoOf(take$o$collect$slambda).lb = function (p1, $completion) {
|
|
8229
|
-
return this.
|
|
8245
|
+
return this.m2b((p1 == null ? true : !(p1 == null)) ? p1 : THROW_CCE(), $completion);
|
|
8230
8246
|
};
|
|
8231
8247
|
protoOf(take$o$collect$slambda).ya = function () {
|
|
8232
8248
|
var suspendResult = this.na_1;
|
|
@@ -8236,17 +8252,17 @@
|
|
|
8236
8252
|
switch (tmp) {
|
|
8237
8253
|
case 0:
|
|
8238
8254
|
this.ma_1 = 3;
|
|
8239
|
-
this.
|
|
8240
|
-
if (this.
|
|
8255
|
+
this.g2f_1._v = this.g2f_1._v + 1 | 0;
|
|
8256
|
+
if (this.g2f_1._v < this.h2f_1) {
|
|
8241
8257
|
this.la_1 = 2;
|
|
8242
|
-
suspendResult = this.
|
|
8258
|
+
suspendResult = this.i2f_1.d26(this.j2f_1, this);
|
|
8243
8259
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8244
8260
|
return suspendResult;
|
|
8245
8261
|
}
|
|
8246
8262
|
continue $sm;
|
|
8247
8263
|
} else {
|
|
8248
8264
|
this.la_1 = 1;
|
|
8249
|
-
suspendResult = emitAbort(this.
|
|
8265
|
+
suspendResult = emitAbort(this.i2f_1, this.j2f_1, this);
|
|
8250
8266
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8251
8267
|
return suspendResult;
|
|
8252
8268
|
}
|
|
@@ -8271,23 +8287,23 @@
|
|
|
8271
8287
|
}
|
|
8272
8288
|
while (true);
|
|
8273
8289
|
};
|
|
8274
|
-
protoOf(take$o$collect$slambda).
|
|
8275
|
-
var i = new take$o$collect$slambda(this.
|
|
8276
|
-
i.
|
|
8290
|
+
protoOf(take$o$collect$slambda).n2b = function (value, completion) {
|
|
8291
|
+
var i = new take$o$collect$slambda(this.g2f_1, this.h2f_1, this.i2f_1, completion);
|
|
8292
|
+
i.j2f_1 = value;
|
|
8277
8293
|
return i;
|
|
8278
8294
|
};
|
|
8279
8295
|
function take$o$collect$slambda_0($consumed, $count, $$this$unsafeFlow, resultContinuation) {
|
|
8280
8296
|
var i = new take$o$collect$slambda($consumed, $count, $$this$unsafeFlow, resultContinuation);
|
|
8281
8297
|
var l = function (value, $completion) {
|
|
8282
|
-
return i.
|
|
8298
|
+
return i.m2b(value, $completion);
|
|
8283
8299
|
};
|
|
8284
8300
|
l.$arity = 1;
|
|
8285
8301
|
return l;
|
|
8286
8302
|
}
|
|
8287
8303
|
function $collectCOROUTINE$12(_this__u8e3s4, collector, resultContinuation) {
|
|
8288
8304
|
CoroutineImpl.call(this, resultContinuation);
|
|
8289
|
-
this.
|
|
8290
|
-
this.
|
|
8305
|
+
this.s2f_1 = _this__u8e3s4;
|
|
8306
|
+
this.t2f_1 = collector;
|
|
8291
8307
|
}
|
|
8292
8308
|
protoOf($collectCOROUTINE$12).ya = function () {
|
|
8293
8309
|
var suspendResult = this.na_1;
|
|
@@ -8298,12 +8314,12 @@
|
|
|
8298
8314
|
case 0:
|
|
8299
8315
|
this.ma_1 = 3;
|
|
8300
8316
|
var tmp_0 = this;
|
|
8301
|
-
tmp_0.
|
|
8302
|
-
this.
|
|
8317
|
+
tmp_0.u2f_1 = this.t2f_1;
|
|
8318
|
+
this.v2f_1 = {_v: 0};
|
|
8303
8319
|
this.ma_1 = 2;
|
|
8304
8320
|
this.la_1 = 1;
|
|
8305
|
-
var tmp_1 = take$o$collect$slambda_0(this.
|
|
8306
|
-
suspendResult = this.
|
|
8321
|
+
var tmp_1 = take$o$collect$slambda_0(this.v2f_1, this.s2f_1.x2f_1, this.u2f_1, null);
|
|
8322
|
+
suspendResult = this.s2f_1.w2f_1.n25(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp_1), this);
|
|
8307
8323
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8308
8324
|
return suspendResult;
|
|
8309
8325
|
}
|
|
@@ -8318,7 +8334,7 @@
|
|
|
8318
8334
|
var tmp_2 = this.oa_1;
|
|
8319
8335
|
if (tmp_2 instanceof AbortFlowException) {
|
|
8320
8336
|
var e = this.oa_1;
|
|
8321
|
-
checkOwnership(e, this.
|
|
8337
|
+
checkOwnership(e, this.u2f_1);
|
|
8322
8338
|
this.la_1 = 4;
|
|
8323
8339
|
continue $sm;
|
|
8324
8340
|
} else {
|
|
@@ -8343,10 +8359,10 @@
|
|
|
8343
8359
|
while (true);
|
|
8344
8360
|
};
|
|
8345
8361
|
function _no_name_provided__qut3iv($this_take, $count) {
|
|
8346
|
-
this.
|
|
8347
|
-
this.
|
|
8362
|
+
this.w2f_1 = $this_take;
|
|
8363
|
+
this.x2f_1 = $count;
|
|
8348
8364
|
}
|
|
8349
|
-
protoOf(_no_name_provided__qut3iv).
|
|
8365
|
+
protoOf(_no_name_provided__qut3iv).n25 = function (collector, $completion) {
|
|
8350
8366
|
var tmp = new $collectCOROUTINE$12(this, collector, $completion);
|
|
8351
8367
|
tmp.na_1 = Unit_instance;
|
|
8352
8368
|
tmp.oa_1 = null;
|
|
@@ -8354,8 +8370,8 @@
|
|
|
8354
8370
|
};
|
|
8355
8371
|
function $emitAbortCOROUTINE$11(_this__u8e3s4, value, resultContinuation) {
|
|
8356
8372
|
CoroutineImpl.call(this, resultContinuation);
|
|
8357
|
-
this.
|
|
8358
|
-
this.
|
|
8373
|
+
this.v2e_1 = _this__u8e3s4;
|
|
8374
|
+
this.w2e_1 = value;
|
|
8359
8375
|
}
|
|
8360
8376
|
protoOf($emitAbortCOROUTINE$11).ya = function () {
|
|
8361
8377
|
var suspendResult = this.na_1;
|
|
@@ -8366,14 +8382,14 @@
|
|
|
8366
8382
|
case 0:
|
|
8367
8383
|
this.ma_1 = 2;
|
|
8368
8384
|
this.la_1 = 1;
|
|
8369
|
-
suspendResult = this.
|
|
8385
|
+
suspendResult = this.v2e_1.d26(this.w2e_1, this);
|
|
8370
8386
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8371
8387
|
return suspendResult;
|
|
8372
8388
|
}
|
|
8373
8389
|
|
|
8374
8390
|
continue $sm;
|
|
8375
8391
|
case 1:
|
|
8376
|
-
throw new AbortFlowException(this.
|
|
8392
|
+
throw new AbortFlowException(this.v2e_1);
|
|
8377
8393
|
case 2:
|
|
8378
8394
|
throw this.oa_1;
|
|
8379
8395
|
}
|
|
@@ -8402,7 +8418,7 @@
|
|
|
8402
8418
|
}
|
|
8403
8419
|
function $onSubscriptionCOROUTINE$13(_this__u8e3s4, resultContinuation) {
|
|
8404
8420
|
CoroutineImpl.call(this, resultContinuation);
|
|
8405
|
-
this.
|
|
8421
|
+
this.g2g_1 = _this__u8e3s4;
|
|
8406
8422
|
}
|
|
8407
8423
|
protoOf($onSubscriptionCOROUTINE$13).ya = function () {
|
|
8408
8424
|
var suspendResult = this.na_1;
|
|
@@ -8413,30 +8429,30 @@
|
|
|
8413
8429
|
case 0:
|
|
8414
8430
|
this.ma_1 = 7;
|
|
8415
8431
|
var tmp_0 = this;
|
|
8416
|
-
tmp_0.
|
|
8432
|
+
tmp_0.h2g_1 = new SafeCollector(this.g2g_1.q27_1, this.sa());
|
|
8417
8433
|
this.la_1 = 1;
|
|
8418
8434
|
continue $sm;
|
|
8419
8435
|
case 1:
|
|
8420
8436
|
this.ma_1 = 6;
|
|
8421
8437
|
this.la_1 = 2;
|
|
8422
|
-
suspendResult = this.
|
|
8438
|
+
suspendResult = this.g2g_1.r27_1(this.h2g_1, this);
|
|
8423
8439
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8424
8440
|
return suspendResult;
|
|
8425
8441
|
}
|
|
8426
8442
|
|
|
8427
8443
|
continue $sm;
|
|
8428
8444
|
case 2:
|
|
8429
|
-
this.
|
|
8445
|
+
this.i2g_1 = suspendResult;
|
|
8430
8446
|
this.ma_1 = 7;
|
|
8431
8447
|
this.la_1 = 3;
|
|
8432
8448
|
continue $sm;
|
|
8433
8449
|
case 3:
|
|
8434
8450
|
this.ma_1 = 7;
|
|
8435
|
-
this.
|
|
8436
|
-
var tmp_1 = this.
|
|
8451
|
+
this.h2g_1.j2g();
|
|
8452
|
+
var tmp_1 = this.g2g_1.q27_1;
|
|
8437
8453
|
if (tmp_1 instanceof SubscribedFlowCollector) {
|
|
8438
8454
|
this.la_1 = 4;
|
|
8439
|
-
suspendResult = this.
|
|
8455
|
+
suspendResult = this.g2g_1.q27_1.s27(this);
|
|
8440
8456
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
8441
8457
|
return suspendResult;
|
|
8442
8458
|
}
|
|
@@ -8454,7 +8470,7 @@
|
|
|
8454
8470
|
case 6:
|
|
8455
8471
|
this.ma_1 = 7;
|
|
8456
8472
|
var t = this.oa_1;
|
|
8457
|
-
this.
|
|
8473
|
+
this.h2g_1.j2g();
|
|
8458
8474
|
throw t;
|
|
8459
8475
|
case 7:
|
|
8460
8476
|
throw this.oa_1;
|
|
@@ -8472,7 +8488,7 @@
|
|
|
8472
8488
|
};
|
|
8473
8489
|
function SubscribedFlowCollector() {
|
|
8474
8490
|
}
|
|
8475
|
-
protoOf(SubscribedFlowCollector).
|
|
8491
|
+
protoOf(SubscribedFlowCollector).s27 = function ($completion) {
|
|
8476
8492
|
var tmp = new $onSubscriptionCOROUTINE$13(this, $completion);
|
|
8477
8493
|
tmp.na_1 = Unit_instance;
|
|
8478
8494
|
tmp.oa_1 = null;
|
|
@@ -8480,7 +8496,7 @@
|
|
|
8480
8496
|
};
|
|
8481
8497
|
function emitAll_0(_this__u8e3s4, flow, $completion) {
|
|
8482
8498
|
ensureActive_1(_this__u8e3s4);
|
|
8483
|
-
return flow.
|
|
8499
|
+
return flow.n25(_this__u8e3s4, $completion);
|
|
8484
8500
|
}
|
|
8485
8501
|
function OpDescriptor() {
|
|
8486
8502
|
}
|
|
@@ -8782,7 +8798,7 @@
|
|
|
8782
8798
|
protoOf(DispatchedContinuation).o1t = function () {
|
|
8783
8799
|
return !(this.f1t_1.kotlinx$atomicfu$value == null);
|
|
8784
8800
|
};
|
|
8785
|
-
protoOf(DispatchedContinuation).
|
|
8801
|
+
protoOf(DispatchedContinuation).k2g = function () {
|
|
8786
8802
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
8787
8803
|
var this_0 = this.f1t_1;
|
|
8788
8804
|
while (true) {
|
|
@@ -8792,7 +8808,7 @@
|
|
|
8792
8808
|
}
|
|
8793
8809
|
};
|
|
8794
8810
|
protoOf(DispatchedContinuation).s14 = function () {
|
|
8795
|
-
this.
|
|
8811
|
+
this.k2g();
|
|
8796
8812
|
var tmp0_safe_receiver = _get_reusableCancellableContinuation__9qex09(this);
|
|
8797
8813
|
if (tmp0_safe_receiver == null)
|
|
8798
8814
|
null;
|
|
@@ -9296,31 +9312,31 @@
|
|
|
9296
9312
|
}
|
|
9297
9313
|
function ScopeCoroutine(context, uCont) {
|
|
9298
9314
|
AbstractCoroutine.call(this, context, true, true);
|
|
9299
|
-
this.
|
|
9315
|
+
this.o2g_1 = uCont;
|
|
9300
9316
|
}
|
|
9301
9317
|
protoOf(ScopeCoroutine).g1s = function () {
|
|
9302
9318
|
return true;
|
|
9303
9319
|
};
|
|
9304
9320
|
protoOf(ScopeCoroutine).z1q = function (state) {
|
|
9305
|
-
resumeCancellableWith(intercepted(this.
|
|
9321
|
+
resumeCancellableWith(intercepted(this.o2g_1), recoverResult(state, this.o2g_1));
|
|
9306
9322
|
};
|
|
9307
9323
|
protoOf(ScopeCoroutine).y1q = function (state) {
|
|
9308
|
-
this.
|
|
9324
|
+
this.o2g_1.za(recoverResult(state, this.o2g_1));
|
|
9309
9325
|
};
|
|
9310
9326
|
function ContextScope(context) {
|
|
9311
|
-
this.
|
|
9327
|
+
this.p2g_1 = context;
|
|
9312
9328
|
}
|
|
9313
9329
|
protoOf(ContextScope).o1q = function () {
|
|
9314
|
-
return this.
|
|
9330
|
+
return this.p2g_1;
|
|
9315
9331
|
};
|
|
9316
9332
|
protoOf(ContextScope).toString = function () {
|
|
9317
|
-
return 'CoroutineScope(coroutineContext=' + this.
|
|
9333
|
+
return 'CoroutineScope(coroutineContext=' + this.p2g_1 + ')';
|
|
9318
9334
|
};
|
|
9319
9335
|
function Symbol(symbol) {
|
|
9320
|
-
this.
|
|
9336
|
+
this.q2g_1 = symbol;
|
|
9321
9337
|
}
|
|
9322
9338
|
protoOf(Symbol).toString = function () {
|
|
9323
|
-
return '<' + this.
|
|
9339
|
+
return '<' + this.q2g_1 + '>';
|
|
9324
9340
|
};
|
|
9325
9341
|
function systemProp(propertyName, defaultValue, minValue, maxValue) {
|
|
9326
9342
|
minValue = minValue === VOID ? 1 : minValue;
|
|
@@ -9450,10 +9466,10 @@
|
|
|
9450
9466
|
// Inline function 'kotlinx.coroutines.intrinsics.startUndispatchedOrReturn.<anonymous>' call
|
|
9451
9467
|
state.u1q_1;
|
|
9452
9468
|
if (true) {
|
|
9453
|
-
throw recoverStackTrace(state.u1q_1, _this__u8e3s4.
|
|
9469
|
+
throw recoverStackTrace(state.u1q_1, _this__u8e3s4.o2g_1);
|
|
9454
9470
|
} else {
|
|
9455
9471
|
if (result instanceof CompletedExceptionally) {
|
|
9456
|
-
throw recoverStackTrace(result.u1q_1, _this__u8e3s4.
|
|
9472
|
+
throw recoverStackTrace(result.u1q_1, _this__u8e3s4.o2g_1);
|
|
9457
9473
|
} else {
|
|
9458
9474
|
tmp_2 = result;
|
|
9459
9475
|
}
|
|
@@ -9536,7 +9552,7 @@
|
|
|
9536
9552
|
tmp = tmp0_elvis_lhs;
|
|
9537
9553
|
}
|
|
9538
9554
|
var clause = tmp;
|
|
9539
|
-
var onCancellation = clause.
|
|
9555
|
+
var onCancellation = clause.v2g($this, internalResult);
|
|
9540
9556
|
if ($this.k22_1.atomicfu$compareAndSet(curState, clause)) {
|
|
9541
9557
|
var cont = isInterface(curState, CancellableContinuation) ? curState : THROW_CCE();
|
|
9542
9558
|
$this.m22_1 = internalResult;
|
|
@@ -9592,7 +9608,7 @@
|
|
|
9592
9608
|
while (tmp0_iterator.w()) {
|
|
9593
9609
|
var element = tmp0_iterator.y();
|
|
9594
9610
|
// Inline function 'kotlinx.coroutines.selects.SelectImplementation.findClause.<anonymous>' call
|
|
9595
|
-
if (element.
|
|
9611
|
+
if (element.s2g_1 === clauseObject) {
|
|
9596
9612
|
tmp$ret$1 = element;
|
|
9597
9613
|
break $l$block;
|
|
9598
9614
|
}
|
|
@@ -9611,9 +9627,9 @@
|
|
|
9611
9627
|
}
|
|
9612
9628
|
function ClauseData() {
|
|
9613
9629
|
}
|
|
9614
|
-
protoOf(ClauseData).
|
|
9615
|
-
var tmp0_safe_receiver = this.
|
|
9616
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(select, this.
|
|
9630
|
+
protoOf(ClauseData).v2g = function (select, internalResult) {
|
|
9631
|
+
var tmp0_safe_receiver = this.u2g_1;
|
|
9632
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(select, this.t2g_1, internalResult);
|
|
9617
9633
|
};
|
|
9618
9634
|
function SelectImplementation() {
|
|
9619
9635
|
}
|
|
@@ -9717,22 +9733,22 @@
|
|
|
9717
9733
|
}
|
|
9718
9734
|
function MutexImpl$CancellableContinuationWithOwner$tryResume$lambda(this$0, this$1) {
|
|
9719
9735
|
return function (it) {
|
|
9720
|
-
this$0.
|
|
9721
|
-
this$0.
|
|
9736
|
+
this$0.d2h_1.kotlinx$atomicfu$value = this$1.g2h_1;
|
|
9737
|
+
this$0.i2h(this$1.g2h_1);
|
|
9722
9738
|
return Unit_instance;
|
|
9723
9739
|
};
|
|
9724
9740
|
}
|
|
9725
9741
|
function MutexImpl$CancellableContinuationWithOwner$resume$lambda(this$0, this$1) {
|
|
9726
9742
|
return function (it) {
|
|
9727
|
-
this$0.
|
|
9743
|
+
this$0.i2h(this$1.g2h_1);
|
|
9728
9744
|
return Unit_instance;
|
|
9729
9745
|
};
|
|
9730
9746
|
}
|
|
9731
9747
|
function holdsLockImpl($this, owner) {
|
|
9732
9748
|
$l$loop: while (true) {
|
|
9733
|
-
if (!$this.
|
|
9749
|
+
if (!$this.j2h())
|
|
9734
9750
|
return 0;
|
|
9735
|
-
var curOwner = $this.
|
|
9751
|
+
var curOwner = $this.d2h_1.kotlinx$atomicfu$value;
|
|
9736
9752
|
if (curOwner === get_NO_OWNER())
|
|
9737
9753
|
continue $l$loop;
|
|
9738
9754
|
return curOwner === owner ? 1 : 2;
|
|
@@ -9758,9 +9774,9 @@
|
|
|
9758
9774
|
}
|
|
9759
9775
|
function tryLockImpl($this, owner) {
|
|
9760
9776
|
$l$loop: while (true) {
|
|
9761
|
-
if ($this.
|
|
9777
|
+
if ($this.r2h()) {
|
|
9762
9778
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
9763
|
-
$this.
|
|
9779
|
+
$this.d2h_1.kotlinx$atomicfu$value = owner;
|
|
9764
9780
|
return 0;
|
|
9765
9781
|
} else {
|
|
9766
9782
|
if (owner == null)
|
|
@@ -9777,57 +9793,57 @@
|
|
|
9777
9793
|
}
|
|
9778
9794
|
}
|
|
9779
9795
|
function CancellableContinuationWithOwner($outer, cont, owner) {
|
|
9780
|
-
this.
|
|
9781
|
-
this.
|
|
9782
|
-
this.
|
|
9796
|
+
this.h2h_1 = $outer;
|
|
9797
|
+
this.f2h_1 = cont;
|
|
9798
|
+
this.g2h_1 = owner;
|
|
9783
9799
|
}
|
|
9784
9800
|
protoOf(CancellableContinuationWithOwner).sa = function () {
|
|
9785
|
-
return this.
|
|
9801
|
+
return this.f2h_1.sa();
|
|
9786
9802
|
};
|
|
9787
9803
|
protoOf(CancellableContinuationWithOwner).t1s = function (token) {
|
|
9788
|
-
this.
|
|
9804
|
+
this.f2h_1.t1s(token);
|
|
9789
9805
|
};
|
|
9790
9806
|
protoOf(CancellableContinuationWithOwner).u1s = function (handler) {
|
|
9791
|
-
this.
|
|
9807
|
+
this.f2h_1.u1s(handler);
|
|
9792
9808
|
};
|
|
9793
|
-
protoOf(CancellableContinuationWithOwner).
|
|
9794
|
-
this.
|
|
9809
|
+
protoOf(CancellableContinuationWithOwner).s2h = function (result) {
|
|
9810
|
+
this.f2h_1.za(result);
|
|
9795
9811
|
};
|
|
9796
9812
|
protoOf(CancellableContinuationWithOwner).za = function (result) {
|
|
9797
|
-
return this.
|
|
9813
|
+
return this.s2h(result);
|
|
9798
9814
|
};
|
|
9799
|
-
protoOf(CancellableContinuationWithOwner).
|
|
9800
|
-
this.
|
|
9815
|
+
protoOf(CancellableContinuationWithOwner).t2h = function (_this__u8e3s4, value) {
|
|
9816
|
+
this.f2h_1.v1s(_this__u8e3s4, Unit_instance);
|
|
9801
9817
|
};
|
|
9802
9818
|
protoOf(CancellableContinuationWithOwner).v1s = function (_this__u8e3s4, value) {
|
|
9803
|
-
return this.
|
|
9819
|
+
return this.t2h(_this__u8e3s4, value instanceof Unit ? value : THROW_CCE());
|
|
9804
9820
|
};
|
|
9805
9821
|
protoOf(CancellableContinuationWithOwner).x1u = function (segment, index) {
|
|
9806
|
-
this.
|
|
9822
|
+
this.f2h_1.x1u(segment, index);
|
|
9807
9823
|
};
|
|
9808
|
-
protoOf(CancellableContinuationWithOwner).
|
|
9824
|
+
protoOf(CancellableContinuationWithOwner).u2h = function (value, idempotent, onCancellation) {
|
|
9809
9825
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
9810
|
-
var token = this.
|
|
9826
|
+
var token = this.f2h_1.s1s(Unit_instance, idempotent, MutexImpl$CancellableContinuationWithOwner$tryResume$lambda(this.h2h_1, this));
|
|
9811
9827
|
if (!(token == null)) {
|
|
9812
9828
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
9813
|
-
this.
|
|
9829
|
+
this.h2h_1.d2h_1.kotlinx$atomicfu$value = this.g2h_1;
|
|
9814
9830
|
}
|
|
9815
9831
|
return token;
|
|
9816
9832
|
};
|
|
9817
9833
|
protoOf(CancellableContinuationWithOwner).s1s = function (value, idempotent, onCancellation) {
|
|
9818
|
-
return this.
|
|
9834
|
+
return this.u2h(value instanceof Unit ? value : THROW_CCE(), idempotent, onCancellation);
|
|
9819
9835
|
};
|
|
9820
|
-
protoOf(CancellableContinuationWithOwner).
|
|
9836
|
+
protoOf(CancellableContinuationWithOwner).v2h = function (value, onCancellation) {
|
|
9821
9837
|
// Inline function 'kotlinx.coroutines.assert' call
|
|
9822
|
-
this.
|
|
9823
|
-
this.
|
|
9838
|
+
this.h2h_1.d2h_1.kotlinx$atomicfu$value = this.g2h_1;
|
|
9839
|
+
this.f2h_1.w1s(Unit_instance, MutexImpl$CancellableContinuationWithOwner$resume$lambda(this.h2h_1, this));
|
|
9824
9840
|
};
|
|
9825
9841
|
protoOf(CancellableContinuationWithOwner).w1s = function (value, onCancellation) {
|
|
9826
|
-
return this.
|
|
9842
|
+
return this.v2h(value instanceof Unit ? value : THROW_CCE(), onCancellation);
|
|
9827
9843
|
};
|
|
9828
9844
|
function MutexImpl$onSelectCancellationUnlockConstructor$lambda$lambda(this$0, $owner) {
|
|
9829
9845
|
return function (it) {
|
|
9830
|
-
this$0.
|
|
9846
|
+
this$0.i2h($owner);
|
|
9831
9847
|
return Unit_instance;
|
|
9832
9848
|
};
|
|
9833
9849
|
}
|
|
@@ -9838,19 +9854,19 @@
|
|
|
9838
9854
|
}
|
|
9839
9855
|
function MutexImpl(locked) {
|
|
9840
9856
|
SemaphoreImpl.call(this, 1, locked ? 1 : 0);
|
|
9841
|
-
this.
|
|
9857
|
+
this.d2h_1 = atomic$ref$1(locked ? null : get_NO_OWNER());
|
|
9842
9858
|
var tmp = this;
|
|
9843
|
-
tmp.
|
|
9859
|
+
tmp.e2h_1 = MutexImpl$onSelectCancellationUnlockConstructor$lambda(this);
|
|
9844
9860
|
}
|
|
9845
|
-
protoOf(MutexImpl).
|
|
9846
|
-
return this.
|
|
9861
|
+
protoOf(MutexImpl).j2h = function () {
|
|
9862
|
+
return this.w2h() === 0;
|
|
9847
9863
|
};
|
|
9848
|
-
protoOf(MutexImpl).
|
|
9849
|
-
if (this.
|
|
9864
|
+
protoOf(MutexImpl).x2h = function (owner, $completion) {
|
|
9865
|
+
if (this.y2h(owner))
|
|
9850
9866
|
return Unit_instance;
|
|
9851
9867
|
return lockSuspend(this, owner, $completion);
|
|
9852
9868
|
};
|
|
9853
|
-
protoOf(MutexImpl).
|
|
9869
|
+
protoOf(MutexImpl).y2h = function (owner) {
|
|
9854
9870
|
var tmp;
|
|
9855
9871
|
switch (tryLockImpl(this, owner)) {
|
|
9856
9872
|
case 0:
|
|
@@ -9868,16 +9884,16 @@
|
|
|
9868
9884
|
}
|
|
9869
9885
|
return tmp;
|
|
9870
9886
|
};
|
|
9871
|
-
protoOf(MutexImpl).
|
|
9887
|
+
protoOf(MutexImpl).i2h = function (owner) {
|
|
9872
9888
|
$l$loop_0: while (true) {
|
|
9873
9889
|
// Inline function 'kotlin.check' call
|
|
9874
9890
|
// Inline function 'kotlin.contracts.contract' call
|
|
9875
|
-
if (!this.
|
|
9891
|
+
if (!this.j2h()) {
|
|
9876
9892
|
// Inline function 'kotlinx.coroutines.sync.MutexImpl.unlock.<anonymous>' call
|
|
9877
9893
|
var message = 'This mutex is not locked';
|
|
9878
9894
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
9879
9895
|
}
|
|
9880
|
-
var curOwner = this.
|
|
9896
|
+
var curOwner = this.d2h_1.kotlinx$atomicfu$value;
|
|
9881
9897
|
if (curOwner === get_NO_OWNER())
|
|
9882
9898
|
continue $l$loop_0;
|
|
9883
9899
|
// Inline function 'kotlin.check' call
|
|
@@ -9887,14 +9903,14 @@
|
|
|
9887
9903
|
var message_0 = 'This mutex is locked by ' + toString_0(curOwner) + ', but ' + toString_0(owner) + ' is expected';
|
|
9888
9904
|
throw IllegalStateException_init_$Create$(toString(message_0));
|
|
9889
9905
|
}
|
|
9890
|
-
if (!this.
|
|
9906
|
+
if (!this.d2h_1.atomicfu$compareAndSet(curOwner, get_NO_OWNER()))
|
|
9891
9907
|
continue $l$loop_0;
|
|
9892
9908
|
this.s14();
|
|
9893
9909
|
return Unit_instance;
|
|
9894
9910
|
}
|
|
9895
9911
|
};
|
|
9896
9912
|
protoOf(MutexImpl).toString = function () {
|
|
9897
|
-
return 'Mutex@' + get_hexAddress(this) + '[isLocked=' + this.
|
|
9913
|
+
return 'Mutex@' + get_hexAddress(this) + '[isLocked=' + this.j2h() + ',owner=' + toString_0(this.d2h_1.kotlinx$atomicfu$value) + ']';
|
|
9898
9914
|
};
|
|
9899
9915
|
var properties_initialized_Mutex_kt_yv4p3j;
|
|
9900
9916
|
function _init_properties_Mutex_kt__jod56b() {
|
|
@@ -9936,29 +9952,29 @@
|
|
|
9936
9952
|
var SEGMENT_SIZE_0;
|
|
9937
9953
|
function decPermits($this) {
|
|
9938
9954
|
$l$loop: while (true) {
|
|
9939
|
-
var p = $this.
|
|
9940
|
-
if (p > $this.
|
|
9955
|
+
var p = $this.p2h_1.atomicfu$getAndDecrement();
|
|
9956
|
+
if (p > $this.k2h_1)
|
|
9941
9957
|
continue $l$loop;
|
|
9942
9958
|
return p;
|
|
9943
9959
|
}
|
|
9944
9960
|
}
|
|
9945
9961
|
function coerceAvailablePermitsAtMaximum($this) {
|
|
9946
9962
|
$l$loop_0: while (true) {
|
|
9947
|
-
var cur = $this.
|
|
9948
|
-
if (cur <= $this.
|
|
9963
|
+
var cur = $this.p2h_1.kotlinx$atomicfu$value;
|
|
9964
|
+
if (cur <= $this.k2h_1)
|
|
9949
9965
|
break $l$loop_0;
|
|
9950
|
-
if ($this.
|
|
9966
|
+
if ($this.p2h_1.atomicfu$compareAndSet(cur, $this.k2h_1))
|
|
9951
9967
|
break $l$loop_0;
|
|
9952
9968
|
}
|
|
9953
9969
|
}
|
|
9954
9970
|
function addAcquireToQueue($this, waiter) {
|
|
9955
|
-
var curTail = $this.
|
|
9956
|
-
var enqIdx = $this.
|
|
9971
|
+
var curTail = $this.n2h_1.kotlinx$atomicfu$value;
|
|
9972
|
+
var enqIdx = $this.o2h_1.atomicfu$getAndIncrement$long();
|
|
9957
9973
|
var createNewSegment = createSegment$ref_0();
|
|
9958
9974
|
var tmp$ret$2;
|
|
9959
9975
|
$l$block_2: {
|
|
9960
9976
|
// Inline function 'kotlinx.coroutines.internal.findSegmentAndMoveForward' call
|
|
9961
|
-
var this_0 = $this.
|
|
9977
|
+
var this_0 = $this.n2h_1;
|
|
9962
9978
|
// Inline function 'kotlin.Long.div' call
|
|
9963
9979
|
var other = get_SEGMENT_SIZE_0();
|
|
9964
9980
|
var id = enqIdx.i8(toLong(other));
|
|
@@ -10009,21 +10025,21 @@
|
|
|
10009
10025
|
var other_0 = get_SEGMENT_SIZE_0();
|
|
10010
10026
|
var i = enqIdx.q9(toLong(other_0)).s8();
|
|
10011
10027
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
10012
|
-
if (segment.
|
|
10028
|
+
if (segment.d2i_1.atomicfu$get(i).atomicfu$compareAndSet(null, waiter)) {
|
|
10013
10029
|
waiter.x1u(segment, i);
|
|
10014
10030
|
return true;
|
|
10015
10031
|
}
|
|
10016
10032
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
10017
10033
|
var expected = get_PERMIT();
|
|
10018
10034
|
var value = get_TAKEN();
|
|
10019
|
-
if (segment.
|
|
10035
|
+
if (segment.d2i_1.atomicfu$get(i).atomicfu$compareAndSet(expected, value)) {
|
|
10020
10036
|
if (isInterface(waiter, CancellableContinuation)) {
|
|
10021
10037
|
if (!isInterface(waiter, CancellableContinuation))
|
|
10022
10038
|
THROW_CCE();
|
|
10023
|
-
waiter.w1s(Unit_instance, $this.
|
|
10039
|
+
waiter.w1s(Unit_instance, $this.q2h_1);
|
|
10024
10040
|
} else {
|
|
10025
10041
|
if (isInterface(waiter, SelectInstance)) {
|
|
10026
|
-
waiter.
|
|
10042
|
+
waiter.r2g(Unit_instance);
|
|
10027
10043
|
} else {
|
|
10028
10044
|
var message = 'unexpected: ' + waiter;
|
|
10029
10045
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
@@ -10035,8 +10051,8 @@
|
|
|
10035
10051
|
return false;
|
|
10036
10052
|
}
|
|
10037
10053
|
function tryResumeNextFromQueue($this) {
|
|
10038
|
-
var curHead = $this.
|
|
10039
|
-
var deqIdx = $this.
|
|
10054
|
+
var curHead = $this.l2h_1.kotlinx$atomicfu$value;
|
|
10055
|
+
var deqIdx = $this.m2h_1.atomicfu$getAndIncrement$long();
|
|
10040
10056
|
// Inline function 'kotlin.Long.div' call
|
|
10041
10057
|
var other = get_SEGMENT_SIZE_0();
|
|
10042
10058
|
var id = deqIdx.i8(toLong(other));
|
|
@@ -10044,7 +10060,7 @@
|
|
|
10044
10060
|
var tmp$ret$2;
|
|
10045
10061
|
$l$block_2: {
|
|
10046
10062
|
// Inline function 'kotlinx.coroutines.internal.findSegmentAndMoveForward' call
|
|
10047
|
-
var this_0 = $this.
|
|
10063
|
+
var this_0 = $this.l2h_1;
|
|
10048
10064
|
while (true) {
|
|
10049
10065
|
var s = findSegmentInternal(curHead, id, createNewSegment);
|
|
10050
10066
|
var tmp;
|
|
@@ -10096,7 +10112,7 @@
|
|
|
10096
10112
|
var i = deqIdx.q9(toLong(other_0)).s8();
|
|
10097
10113
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.getAndSet' call
|
|
10098
10114
|
var value = get_PERMIT();
|
|
10099
|
-
var cellState = segment.
|
|
10115
|
+
var cellState = segment.d2i_1.atomicfu$get(i).atomicfu$getAndSet(value);
|
|
10100
10116
|
if (cellState === null) {
|
|
10101
10117
|
// Inline function 'kotlin.repeat' call
|
|
10102
10118
|
var times = get_MAX_SPIN_CYCLES();
|
|
@@ -10108,14 +10124,14 @@
|
|
|
10108
10124
|
inductionVariable = inductionVariable + 1 | 0;
|
|
10109
10125
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreImpl.tryResumeNextFromQueue.<anonymous>' call
|
|
10110
10126
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.get' call
|
|
10111
|
-
if (segment.
|
|
10127
|
+
if (segment.d2i_1.atomicfu$get(i).kotlinx$atomicfu$value === get_TAKEN())
|
|
10112
10128
|
return true;
|
|
10113
10129
|
}
|
|
10114
10130
|
while (inductionVariable < times);
|
|
10115
10131
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
10116
10132
|
var expected = get_PERMIT();
|
|
10117
10133
|
var value_0 = get_BROKEN();
|
|
10118
|
-
return !segment.
|
|
10134
|
+
return !segment.d2i_1.atomicfu$get(i).atomicfu$compareAndSet(expected, value_0);
|
|
10119
10135
|
} else if (cellState === get_CANCELLED())
|
|
10120
10136
|
return false;
|
|
10121
10137
|
else
|
|
@@ -10126,7 +10142,7 @@
|
|
|
10126
10142
|
if (isInterface(_this__u8e3s4, CancellableContinuation)) {
|
|
10127
10143
|
if (!isInterface(_this__u8e3s4, CancellableContinuation))
|
|
10128
10144
|
THROW_CCE();
|
|
10129
|
-
var token = _this__u8e3s4.s1s(Unit_instance, null, $this.
|
|
10145
|
+
var token = _this__u8e3s4.s1s(Unit_instance, null, $this.q2h_1);
|
|
10130
10146
|
var tmp_0;
|
|
10131
10147
|
if (!(token == null)) {
|
|
10132
10148
|
_this__u8e3s4.t1s(token);
|
|
@@ -10166,45 +10182,45 @@
|
|
|
10166
10182
|
return l;
|
|
10167
10183
|
}
|
|
10168
10184
|
function SemaphoreImpl(permits, acquiredPermits) {
|
|
10169
|
-
this.
|
|
10170
|
-
this.
|
|
10171
|
-
this.
|
|
10185
|
+
this.k2h_1 = permits;
|
|
10186
|
+
this.m2h_1 = atomic$long$1(new Long(0, 0));
|
|
10187
|
+
this.o2h_1 = atomic$long$1(new Long(0, 0));
|
|
10172
10188
|
// Inline function 'kotlin.require' call
|
|
10173
10189
|
// Inline function 'kotlin.contracts.contract' call
|
|
10174
|
-
if (!(this.
|
|
10190
|
+
if (!(this.k2h_1 > 0)) {
|
|
10175
10191
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreImpl.<anonymous>' call
|
|
10176
|
-
var message = 'Semaphore should have at least 1 permit, but had ' + this.
|
|
10192
|
+
var message = 'Semaphore should have at least 1 permit, but had ' + this.k2h_1;
|
|
10177
10193
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
10178
10194
|
}
|
|
10179
10195
|
// Inline function 'kotlin.require' call
|
|
10180
10196
|
// Inline function 'kotlin.contracts.contract' call
|
|
10181
|
-
if (!(0 <= acquiredPermits ? acquiredPermits <= this.
|
|
10197
|
+
if (!(0 <= acquiredPermits ? acquiredPermits <= this.k2h_1 : false)) {
|
|
10182
10198
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreImpl.<anonymous>' call
|
|
10183
|
-
var message_0 = 'The number of acquired permits should be in 0..' + this.
|
|
10199
|
+
var message_0 = 'The number of acquired permits should be in 0..' + this.k2h_1;
|
|
10184
10200
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
10185
10201
|
}
|
|
10186
10202
|
var s = new SemaphoreSegment(new Long(0, 0), null, 2);
|
|
10187
|
-
this.
|
|
10188
|
-
this.
|
|
10189
|
-
this.
|
|
10203
|
+
this.l2h_1 = atomic$ref$1(s);
|
|
10204
|
+
this.n2h_1 = atomic$ref$1(s);
|
|
10205
|
+
this.p2h_1 = atomic$int$1(this.k2h_1 - acquiredPermits | 0);
|
|
10190
10206
|
var tmp = this;
|
|
10191
|
-
tmp.
|
|
10207
|
+
tmp.q2h_1 = SemaphoreImpl$onCancellationRelease$lambda(this);
|
|
10192
10208
|
}
|
|
10193
|
-
protoOf(SemaphoreImpl).
|
|
10209
|
+
protoOf(SemaphoreImpl).w2h = function () {
|
|
10194
10210
|
// Inline function 'kotlin.math.max' call
|
|
10195
|
-
var a = this.
|
|
10211
|
+
var a = this.p2h_1.kotlinx$atomicfu$value;
|
|
10196
10212
|
return Math.max(a, 0);
|
|
10197
10213
|
};
|
|
10198
|
-
protoOf(SemaphoreImpl).
|
|
10214
|
+
protoOf(SemaphoreImpl).r2h = function () {
|
|
10199
10215
|
$l$loop: while (true) {
|
|
10200
|
-
var p = this.
|
|
10201
|
-
if (p > this.
|
|
10216
|
+
var p = this.p2h_1.kotlinx$atomicfu$value;
|
|
10217
|
+
if (p > this.k2h_1) {
|
|
10202
10218
|
coerceAvailablePermitsAtMaximum(this);
|
|
10203
10219
|
continue $l$loop;
|
|
10204
10220
|
}
|
|
10205
10221
|
if (p <= 0)
|
|
10206
10222
|
return false;
|
|
10207
|
-
if (this.
|
|
10223
|
+
if (this.p2h_1.atomicfu$compareAndSet(p, p - 1 | 0))
|
|
10208
10224
|
return true;
|
|
10209
10225
|
}
|
|
10210
10226
|
};
|
|
@@ -10216,7 +10232,7 @@
|
|
|
10216
10232
|
var p = decPermits(this);
|
|
10217
10233
|
if (p > 0) {
|
|
10218
10234
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreImpl.acquire.<anonymous>' call
|
|
10219
|
-
waiter.w1s(Unit_instance, this.
|
|
10235
|
+
waiter.w1s(Unit_instance, this.q2h_1);
|
|
10220
10236
|
tmp$ret$0 = Unit_instance;
|
|
10221
10237
|
break $l$block_0;
|
|
10222
10238
|
}
|
|
@@ -10231,11 +10247,11 @@
|
|
|
10231
10247
|
};
|
|
10232
10248
|
protoOf(SemaphoreImpl).s14 = function () {
|
|
10233
10249
|
while (true) {
|
|
10234
|
-
var p = this.
|
|
10235
|
-
if (p >= this.
|
|
10250
|
+
var p = this.p2h_1.atomicfu$getAndIncrement();
|
|
10251
|
+
if (p >= this.k2h_1) {
|
|
10236
10252
|
coerceAvailablePermitsAtMaximum(this);
|
|
10237
10253
|
// Inline function 'kotlin.error' call
|
|
10238
|
-
var message = 'The number of released permits cannot be greater than ' + this.
|
|
10254
|
+
var message = 'The number of released permits cannot be greater than ' + this.k2h_1;
|
|
10239
10255
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
10240
10256
|
}
|
|
10241
10257
|
if (p >= 0)
|
|
@@ -10246,7 +10262,7 @@
|
|
|
10246
10262
|
};
|
|
10247
10263
|
function SemaphoreSegment(id, prev, pointers) {
|
|
10248
10264
|
Segment.call(this, id, prev, pointers);
|
|
10249
|
-
this.
|
|
10265
|
+
this.d2i_1 = atomicfu$AtomicRefArray$ofNulls(get_SEGMENT_SIZE_0());
|
|
10250
10266
|
}
|
|
10251
10267
|
protoOf(SemaphoreSegment).n1z = function () {
|
|
10252
10268
|
return get_SEGMENT_SIZE_0();
|
|
@@ -10254,7 +10270,7 @@
|
|
|
10254
10270
|
protoOf(SemaphoreSegment).v1t = function (index, cause, context) {
|
|
10255
10271
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.set' call
|
|
10256
10272
|
var value = get_CANCELLED();
|
|
10257
|
-
this.
|
|
10273
|
+
this.d2i_1.atomicfu$get(index).kotlinx$atomicfu$value = value;
|
|
10258
10274
|
this.k20();
|
|
10259
10275
|
};
|
|
10260
10276
|
protoOf(SemaphoreSegment).toString = function () {
|
|
@@ -10379,22 +10395,22 @@
|
|
|
10379
10395
|
}
|
|
10380
10396
|
function JsMainDispatcher(delegate, invokeImmediately) {
|
|
10381
10397
|
MainCoroutineDispatcher.call(this);
|
|
10382
|
-
this.
|
|
10383
|
-
this.
|
|
10384
|
-
this.
|
|
10398
|
+
this.f2i_1 = delegate;
|
|
10399
|
+
this.g2i_1 = invokeImmediately;
|
|
10400
|
+
this.h2i_1 = this.g2i_1 ? this : new JsMainDispatcher(this.f2i_1, true);
|
|
10385
10401
|
}
|
|
10386
10402
|
protoOf(JsMainDispatcher).w1y = function () {
|
|
10387
|
-
return this.
|
|
10403
|
+
return this.h2i_1;
|
|
10388
10404
|
};
|
|
10389
10405
|
protoOf(JsMainDispatcher).g1v = function (context) {
|
|
10390
|
-
return !this.
|
|
10406
|
+
return !this.g2i_1;
|
|
10391
10407
|
};
|
|
10392
10408
|
protoOf(JsMainDispatcher).h1v = function (context, block) {
|
|
10393
|
-
return this.
|
|
10409
|
+
return this.f2i_1.h1v(context, block);
|
|
10394
10410
|
};
|
|
10395
10411
|
protoOf(JsMainDispatcher).toString = function () {
|
|
10396
10412
|
var tmp0_elvis_lhs = this.x1y();
|
|
10397
|
-
return tmp0_elvis_lhs == null ? this.
|
|
10413
|
+
return tmp0_elvis_lhs == null ? this.f2i_1.toString() : tmp0_elvis_lhs;
|
|
10398
10414
|
};
|
|
10399
10415
|
function createEventLoop() {
|
|
10400
10416
|
return new UnconfinedEventLoop();
|
|
@@ -10411,10 +10427,10 @@
|
|
|
10411
10427
|
function JobCancellationException(message, cause, job) {
|
|
10412
10428
|
CancellationException_init_$Init$(message, cause, this);
|
|
10413
10429
|
captureStack(this, JobCancellationException);
|
|
10414
|
-
this.
|
|
10430
|
+
this.m2i_1 = job;
|
|
10415
10431
|
}
|
|
10416
10432
|
protoOf(JobCancellationException).toString = function () {
|
|
10417
|
-
return protoOf(CancellationException).toString.call(this) + '; job=' + this.
|
|
10433
|
+
return protoOf(CancellationException).toString.call(this) + '; job=' + this.m2i_1;
|
|
10418
10434
|
};
|
|
10419
10435
|
protoOf(JobCancellationException).equals = function (other) {
|
|
10420
10436
|
var tmp;
|
|
@@ -10430,7 +10446,7 @@
|
|
|
10430
10446
|
tmp_2 = false;
|
|
10431
10447
|
}
|
|
10432
10448
|
if (tmp_2) {
|
|
10433
|
-
tmp_1 = equals(other.
|
|
10449
|
+
tmp_1 = equals(other.m2i_1, this.m2i_1);
|
|
10434
10450
|
} else {
|
|
10435
10451
|
tmp_1 = false;
|
|
10436
10452
|
}
|
|
@@ -10444,7 +10460,7 @@
|
|
|
10444
10460
|
return tmp;
|
|
10445
10461
|
};
|
|
10446
10462
|
protoOf(JobCancellationException).hashCode = function () {
|
|
10447
|
-
var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.
|
|
10463
|
+
var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.m2i_1) | 0, 31);
|
|
10448
10464
|
var tmp0_safe_receiver = this.cause;
|
|
10449
10465
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
|
|
10450
10466
|
return tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
|
|
@@ -10453,8 +10469,8 @@
|
|
|
10453
10469
|
NodeDispatcher_instance = this;
|
|
10454
10470
|
SetTimeoutBasedDispatcher.call(this);
|
|
10455
10471
|
}
|
|
10456
|
-
protoOf(NodeDispatcher).
|
|
10457
|
-
process.nextTick(this.
|
|
10472
|
+
protoOf(NodeDispatcher).p2i = function () {
|
|
10473
|
+
process.nextTick(this.w2i_1.t2i_1);
|
|
10458
10474
|
};
|
|
10459
10475
|
var NodeDispatcher_instance;
|
|
10460
10476
|
function NodeDispatcher_getInstance() {
|
|
@@ -10466,8 +10482,8 @@
|
|
|
10466
10482
|
SetTimeoutDispatcher_instance = this;
|
|
10467
10483
|
SetTimeoutBasedDispatcher.call(this);
|
|
10468
10484
|
}
|
|
10469
|
-
protoOf(SetTimeoutDispatcher).
|
|
10470
|
-
setTimeout(this.
|
|
10485
|
+
protoOf(SetTimeoutDispatcher).p2i = function () {
|
|
10486
|
+
setTimeout(this.w2i_1.t2i_1, 0);
|
|
10471
10487
|
};
|
|
10472
10488
|
var SetTimeoutDispatcher_instance;
|
|
10473
10489
|
function SetTimeoutDispatcher_getInstance() {
|
|
@@ -10477,21 +10493,21 @@
|
|
|
10477
10493
|
}
|
|
10478
10494
|
function SetTimeoutBasedDispatcher$ScheduledMessageQueue$processQueue$lambda(this$0) {
|
|
10479
10495
|
return function () {
|
|
10480
|
-
this$0.
|
|
10496
|
+
this$0.c2j();
|
|
10481
10497
|
return Unit_instance;
|
|
10482
10498
|
};
|
|
10483
10499
|
}
|
|
10484
10500
|
function ScheduledMessageQueue($outer) {
|
|
10485
|
-
this.
|
|
10501
|
+
this.u2i_1 = $outer;
|
|
10486
10502
|
MessageQueue.call(this);
|
|
10487
10503
|
var tmp = this;
|
|
10488
|
-
tmp.
|
|
10504
|
+
tmp.t2i_1 = SetTimeoutBasedDispatcher$ScheduledMessageQueue$processQueue$lambda(this);
|
|
10489
10505
|
}
|
|
10490
|
-
protoOf(ScheduledMessageQueue).c2j = function () {
|
|
10491
|
-
this.t2i_1.o2i();
|
|
10492
|
-
};
|
|
10493
10506
|
protoOf(ScheduledMessageQueue).d2j = function () {
|
|
10494
|
-
|
|
10507
|
+
this.u2i_1.p2i();
|
|
10508
|
+
};
|
|
10509
|
+
protoOf(ScheduledMessageQueue).e2j = function () {
|
|
10510
|
+
setTimeout(this.t2i_1, 0);
|
|
10495
10511
|
};
|
|
10496
10512
|
function SetTimeoutBasedDispatcher$scheduleResumeAfterDelay$lambda($continuation, this$0) {
|
|
10497
10513
|
return function () {
|
|
@@ -10503,10 +10519,10 @@
|
|
|
10503
10519
|
}
|
|
10504
10520
|
function SetTimeoutBasedDispatcher() {
|
|
10505
10521
|
CoroutineDispatcher.call(this);
|
|
10506
|
-
this.
|
|
10522
|
+
this.w2i_1 = new ScheduledMessageQueue(this);
|
|
10507
10523
|
}
|
|
10508
10524
|
protoOf(SetTimeoutBasedDispatcher).h1v = function (context, block) {
|
|
10509
|
-
this.
|
|
10525
|
+
this.w2i_1.p2j(block);
|
|
10510
10526
|
};
|
|
10511
10527
|
protoOf(SetTimeoutBasedDispatcher).j1v = function (timeMillis, continuation) {
|
|
10512
10528
|
var handle = setTimeout(SetTimeoutBasedDispatcher$scheduleResumeAfterDelay$lambda(continuation, this), delayToInt(timeMillis));
|
|
@@ -10516,111 +10532,111 @@
|
|
|
10516
10532
|
continuation.u1s(tmp$ret$1);
|
|
10517
10533
|
};
|
|
10518
10534
|
function MessageQueue() {
|
|
10519
|
-
this.
|
|
10520
|
-
this.
|
|
10521
|
-
this.
|
|
10535
|
+
this.z2i_1 = ArrayDeque_init_$Create$();
|
|
10536
|
+
this.a2j_1 = 16;
|
|
10537
|
+
this.b2j_1 = false;
|
|
10522
10538
|
}
|
|
10523
10539
|
protoOf(MessageQueue).n = function () {
|
|
10524
|
-
return this.
|
|
10540
|
+
return this.z2i_1.ac_1;
|
|
10525
10541
|
};
|
|
10526
|
-
protoOf(MessageQueue).
|
|
10527
|
-
this.
|
|
10542
|
+
protoOf(MessageQueue).f2j = function (index, element) {
|
|
10543
|
+
this.z2i_1.u1(index, element);
|
|
10528
10544
|
};
|
|
10529
10545
|
protoOf(MessageQueue).u1 = function (index, element) {
|
|
10530
|
-
return this.
|
|
10546
|
+
return this.f2j(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
10531
10547
|
};
|
|
10532
|
-
protoOf(MessageQueue).
|
|
10533
|
-
return this.
|
|
10548
|
+
protoOf(MessageQueue).g2j = function (element) {
|
|
10549
|
+
return this.z2i_1.s(element);
|
|
10534
10550
|
};
|
|
10535
10551
|
protoOf(MessageQueue).s = function (element) {
|
|
10536
|
-
return this.
|
|
10552
|
+
return this.g2j((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
10537
10553
|
};
|
|
10538
|
-
protoOf(MessageQueue).
|
|
10539
|
-
return this.
|
|
10554
|
+
protoOf(MessageQueue).h2j = function (index, elements) {
|
|
10555
|
+
return this.z2i_1.w1(index, elements);
|
|
10540
10556
|
};
|
|
10541
10557
|
protoOf(MessageQueue).w1 = function (index, elements) {
|
|
10542
|
-
return this.
|
|
10558
|
+
return this.h2j(index, elements);
|
|
10543
10559
|
};
|
|
10544
|
-
protoOf(MessageQueue).
|
|
10545
|
-
return this.
|
|
10560
|
+
protoOf(MessageQueue).i2j = function (elements) {
|
|
10561
|
+
return this.z2i_1.z(elements);
|
|
10546
10562
|
};
|
|
10547
10563
|
protoOf(MessageQueue).z = function (elements) {
|
|
10548
|
-
return this.
|
|
10564
|
+
return this.i2j(elements);
|
|
10549
10565
|
};
|
|
10550
10566
|
protoOf(MessageQueue).x1 = function () {
|
|
10551
|
-
this.
|
|
10567
|
+
this.z2i_1.x1();
|
|
10552
10568
|
};
|
|
10553
|
-
protoOf(MessageQueue).
|
|
10554
|
-
return this.
|
|
10569
|
+
protoOf(MessageQueue).j2j = function (element) {
|
|
10570
|
+
return this.z2i_1.r(element);
|
|
10555
10571
|
};
|
|
10556
10572
|
protoOf(MessageQueue).r = function (element) {
|
|
10557
10573
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
10558
10574
|
return false;
|
|
10559
|
-
return this.
|
|
10575
|
+
return this.j2j((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
10560
10576
|
};
|
|
10561
|
-
protoOf(MessageQueue).
|
|
10562
|
-
return this.
|
|
10577
|
+
protoOf(MessageQueue).k2j = function (elements) {
|
|
10578
|
+
return this.z2i_1.b1(elements);
|
|
10563
10579
|
};
|
|
10564
10580
|
protoOf(MessageQueue).b1 = function (elements) {
|
|
10565
|
-
return this.
|
|
10581
|
+
return this.k2j(elements);
|
|
10566
10582
|
};
|
|
10567
10583
|
protoOf(MessageQueue).g1 = function (index) {
|
|
10568
|
-
return this.
|
|
10584
|
+
return this.z2i_1.g1(index);
|
|
10569
10585
|
};
|
|
10570
|
-
protoOf(MessageQueue).
|
|
10571
|
-
return this.
|
|
10586
|
+
protoOf(MessageQueue).l2j = function (element) {
|
|
10587
|
+
return this.z2i_1.y1(element);
|
|
10572
10588
|
};
|
|
10573
10589
|
protoOf(MessageQueue).y1 = function (element) {
|
|
10574
10590
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
10575
10591
|
return -1;
|
|
10576
|
-
return this.
|
|
10592
|
+
return this.l2j((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
10577
10593
|
};
|
|
10578
10594
|
protoOf(MessageQueue).c1 = function () {
|
|
10579
|
-
return this.
|
|
10595
|
+
return this.z2i_1.c1();
|
|
10580
10596
|
};
|
|
10581
10597
|
protoOf(MessageQueue).v = function () {
|
|
10582
|
-
return this.
|
|
10598
|
+
return this.z2i_1.v();
|
|
10583
10599
|
};
|
|
10584
10600
|
protoOf(MessageQueue).z1 = function (index) {
|
|
10585
|
-
return this.
|
|
10601
|
+
return this.z2i_1.z1(index);
|
|
10586
10602
|
};
|
|
10587
|
-
protoOf(MessageQueue).
|
|
10588
|
-
return this.
|
|
10603
|
+
protoOf(MessageQueue).m2j = function (element) {
|
|
10604
|
+
return this.z2i_1.t(element);
|
|
10589
10605
|
};
|
|
10590
10606
|
protoOf(MessageQueue).t = function (element) {
|
|
10591
10607
|
if (!(!(element == null) ? isInterface(element, Runnable) : false))
|
|
10592
10608
|
return false;
|
|
10593
|
-
return this.
|
|
10609
|
+
return this.m2j((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
10594
10610
|
};
|
|
10595
|
-
protoOf(MessageQueue).
|
|
10596
|
-
return this.
|
|
10611
|
+
protoOf(MessageQueue).n2j = function (elements) {
|
|
10612
|
+
return this.z2i_1.a1(elements);
|
|
10597
10613
|
};
|
|
10598
10614
|
protoOf(MessageQueue).a1 = function (elements) {
|
|
10599
|
-
return this.
|
|
10615
|
+
return this.n2j(elements);
|
|
10600
10616
|
};
|
|
10601
10617
|
protoOf(MessageQueue).i1 = function (index) {
|
|
10602
|
-
return this.
|
|
10618
|
+
return this.z2i_1.i1(index);
|
|
10603
10619
|
};
|
|
10604
|
-
protoOf(MessageQueue).
|
|
10605
|
-
return this.
|
|
10620
|
+
protoOf(MessageQueue).o2j = function (index, element) {
|
|
10621
|
+
return this.z2i_1.o(index, element);
|
|
10606
10622
|
};
|
|
10607
10623
|
protoOf(MessageQueue).o = function (index, element) {
|
|
10608
|
-
return this.
|
|
10624
|
+
return this.o2j(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
|
|
10609
10625
|
};
|
|
10610
10626
|
protoOf(MessageQueue).a2 = function (fromIndex, toIndex) {
|
|
10611
|
-
return this.
|
|
10627
|
+
return this.z2i_1.a2(fromIndex, toIndex);
|
|
10612
10628
|
};
|
|
10613
|
-
protoOf(MessageQueue).
|
|
10614
|
-
this.
|
|
10615
|
-
if (!this.
|
|
10616
|
-
this.
|
|
10617
|
-
this.
|
|
10629
|
+
protoOf(MessageQueue).p2j = function (element) {
|
|
10630
|
+
this.g2j(element);
|
|
10631
|
+
if (!this.b2j_1) {
|
|
10632
|
+
this.b2j_1 = true;
|
|
10633
|
+
this.d2j();
|
|
10618
10634
|
}
|
|
10619
10635
|
};
|
|
10620
|
-
protoOf(MessageQueue).
|
|
10636
|
+
protoOf(MessageQueue).c2j = function () {
|
|
10621
10637
|
try {
|
|
10622
10638
|
// Inline function 'kotlin.repeat' call
|
|
10623
|
-
var times = this.
|
|
10639
|
+
var times = this.a2j_1;
|
|
10624
10640
|
// Inline function 'kotlin.contracts.contract' call
|
|
10625
10641
|
var inductionVariable = 0;
|
|
10626
10642
|
if (inductionVariable < times)
|
|
@@ -10641,9 +10657,9 @@
|
|
|
10641
10657
|
while (inductionVariable < times);
|
|
10642
10658
|
}finally {
|
|
10643
10659
|
if (this.c1()) {
|
|
10644
|
-
this.
|
|
10660
|
+
this.b2j_1 = false;
|
|
10645
10661
|
} else {
|
|
10646
|
-
this.
|
|
10662
|
+
this.e2j();
|
|
10647
10663
|
}
|
|
10648
10664
|
}
|
|
10649
10665
|
};
|
|
@@ -10652,10 +10668,10 @@
|
|
|
10652
10668
|
}
|
|
10653
10669
|
function ClearTimeout(handle) {
|
|
10654
10670
|
CancelHandler.call(this);
|
|
10655
|
-
this.
|
|
10671
|
+
this.q2j_1 = handle;
|
|
10656
10672
|
}
|
|
10657
10673
|
protoOf(ClearTimeout).z1s = function () {
|
|
10658
|
-
clearTimeout(this.
|
|
10674
|
+
clearTimeout(this.q2j_1);
|
|
10659
10675
|
};
|
|
10660
10676
|
protoOf(ClearTimeout).y1s = function (cause) {
|
|
10661
10677
|
this.z1s();
|
|
@@ -10664,14 +10680,14 @@
|
|
|
10664
10680
|
return this.y1s(cause);
|
|
10665
10681
|
};
|
|
10666
10682
|
protoOf(ClearTimeout).toString = function () {
|
|
10667
|
-
return 'ClearTimeout[' + this.
|
|
10683
|
+
return 'ClearTimeout[' + this.q2j_1 + ']';
|
|
10668
10684
|
};
|
|
10669
10685
|
function WindowClearTimeout($outer, handle) {
|
|
10670
|
-
this.
|
|
10686
|
+
this.s2j_1 = $outer;
|
|
10671
10687
|
ClearTimeout.call(this, handle);
|
|
10672
10688
|
}
|
|
10673
10689
|
protoOf(WindowClearTimeout).z1s = function () {
|
|
10674
|
-
this.
|
|
10690
|
+
this.s2j_1.u2j_1.clearTimeout(this.q2j_1);
|
|
10675
10691
|
};
|
|
10676
10692
|
function WindowDispatcher$scheduleResumeAfterDelay$lambda($continuation, this$0) {
|
|
10677
10693
|
return function () {
|
|
@@ -10683,14 +10699,14 @@
|
|
|
10683
10699
|
}
|
|
10684
10700
|
function WindowDispatcher(window_0) {
|
|
10685
10701
|
CoroutineDispatcher.call(this);
|
|
10686
|
-
this.
|
|
10687
|
-
this.
|
|
10702
|
+
this.u2j_1 = window_0;
|
|
10703
|
+
this.v2j_1 = new WindowMessageQueue(this.u2j_1);
|
|
10688
10704
|
}
|
|
10689
10705
|
protoOf(WindowDispatcher).h1v = function (context, block) {
|
|
10690
|
-
return this.
|
|
10706
|
+
return this.v2j_1.p2j(block);
|
|
10691
10707
|
};
|
|
10692
10708
|
protoOf(WindowDispatcher).j1v = function (timeMillis, continuation) {
|
|
10693
|
-
var handle = this.
|
|
10709
|
+
var handle = this.u2j_1.setTimeout(WindowDispatcher$scheduleResumeAfterDelay$lambda(continuation, this), delayToInt(timeMillis));
|
|
10694
10710
|
// Inline function 'kotlinx.coroutines.asHandler' call
|
|
10695
10711
|
// Inline function 'kotlin.js.asDynamic' call
|
|
10696
10712
|
var tmp$ret$1 = new WindowClearTimeout(this, handle);
|
|
@@ -10699,9 +10715,9 @@
|
|
|
10699
10715
|
function WindowMessageQueue$lambda(this$0) {
|
|
10700
10716
|
return function (event) {
|
|
10701
10717
|
var tmp;
|
|
10702
|
-
if (event.source == this$0.
|
|
10718
|
+
if (event.source == this$0.z2j_1 ? event.data == this$0.a2k_1 : false) {
|
|
10703
10719
|
event.stopPropagation();
|
|
10704
|
-
this$0.
|
|
10720
|
+
this$0.c2j();
|
|
10705
10721
|
tmp = Unit_instance;
|
|
10706
10722
|
}
|
|
10707
10723
|
return Unit_instance;
|
|
@@ -10709,22 +10725,22 @@
|
|
|
10709
10725
|
}
|
|
10710
10726
|
function WindowMessageQueue$schedule$lambda(this$0) {
|
|
10711
10727
|
return function (it) {
|
|
10712
|
-
this$0.
|
|
10728
|
+
this$0.c2j();
|
|
10713
10729
|
return Unit_instance;
|
|
10714
10730
|
};
|
|
10715
10731
|
}
|
|
10716
10732
|
function WindowMessageQueue(window_0) {
|
|
10717
10733
|
MessageQueue.call(this);
|
|
10718
|
-
this.
|
|
10719
|
-
this.
|
|
10720
|
-
this.
|
|
10734
|
+
this.z2j_1 = window_0;
|
|
10735
|
+
this.a2k_1 = 'dispatchCoroutine';
|
|
10736
|
+
this.z2j_1.addEventListener('message', WindowMessageQueue$lambda(this), true);
|
|
10721
10737
|
}
|
|
10722
|
-
protoOf(WindowMessageQueue).
|
|
10738
|
+
protoOf(WindowMessageQueue).d2j = function () {
|
|
10723
10739
|
var tmp = Promise.resolve(Unit_instance);
|
|
10724
10740
|
tmp.then(WindowMessageQueue$schedule$lambda(this));
|
|
10725
10741
|
};
|
|
10726
|
-
protoOf(WindowMessageQueue).
|
|
10727
|
-
this.
|
|
10742
|
+
protoOf(WindowMessageQueue).e2j = function () {
|
|
10743
|
+
this.z2j_1.postMessage(this.a2k_1, '*');
|
|
10728
10744
|
};
|
|
10729
10745
|
function Runnable() {
|
|
10730
10746
|
}
|
|
@@ -10753,7 +10769,7 @@
|
|
|
10753
10769
|
function AbortFlowException(owner) {
|
|
10754
10770
|
CancellationException_init_$Init$_0('Flow was aborted, no more elements needed', this);
|
|
10755
10771
|
captureStack(this, AbortFlowException);
|
|
10756
|
-
this.
|
|
10772
|
+
this.t2b_1 = owner;
|
|
10757
10773
|
}
|
|
10758
10774
|
function ChildCancelledException() {
|
|
10759
10775
|
CancellationException_init_$Init$_0('Child of the scoped flow was cancelled', this);
|
|
@@ -10763,24 +10779,24 @@
|
|
|
10763
10779
|
return count + 1 | 0;
|
|
10764
10780
|
}
|
|
10765
10781
|
function SafeCollector(collector, collectContext) {
|
|
10766
|
-
this.
|
|
10767
|
-
this.
|
|
10782
|
+
this.q2d_1 = collector;
|
|
10783
|
+
this.r2d_1 = collectContext;
|
|
10768
10784
|
var tmp = this;
|
|
10769
|
-
tmp.
|
|
10770
|
-
this.
|
|
10785
|
+
tmp.s2d_1 = this.r2d_1.le(0, SafeCollector$collectContextSize$lambda);
|
|
10786
|
+
this.t2d_1 = null;
|
|
10771
10787
|
}
|
|
10772
|
-
protoOf(SafeCollector).
|
|
10788
|
+
protoOf(SafeCollector).d26 = function (value, $completion) {
|
|
10773
10789
|
// Inline function 'kotlinx.coroutines.currentCoroutineContext' call
|
|
10774
10790
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
10775
10791
|
var currentContext = $completion.sa();
|
|
10776
10792
|
ensureActive(currentContext);
|
|
10777
|
-
if (!(this.
|
|
10793
|
+
if (!(this.t2d_1 === currentContext)) {
|
|
10778
10794
|
checkContext(this, currentContext);
|
|
10779
|
-
this.
|
|
10795
|
+
this.t2d_1 = currentContext;
|
|
10780
10796
|
}
|
|
10781
|
-
return this.
|
|
10797
|
+
return this.q2d_1.d26(value, $completion);
|
|
10782
10798
|
};
|
|
10783
|
-
protoOf(SafeCollector).
|
|
10799
|
+
protoOf(SafeCollector).j2g = function () {
|
|
10784
10800
|
};
|
|
10785
10801
|
function identitySet(expectedSize) {
|
|
10786
10802
|
return HashSet_init_$Create$(expectedSize);
|
|
@@ -10898,6 +10914,7 @@
|
|
|
10898
10914
|
Key_instance_3 = new Key_2();
|
|
10899
10915
|
SENDERS_COUNTER_MASK = new Long(-1, 268435455);
|
|
10900
10916
|
DEFAULT_CLOSE_MESSAGE = 'Channel was closed';
|
|
10917
|
+
EmptyFlow_instance = new EmptyFlow();
|
|
10901
10918
|
MODE_CANCELLABLE = 1;
|
|
10902
10919
|
MODE_CANCELLABLE_REUSABLE = 2;
|
|
10903
10920
|
MODE_UNINITIALIZED = -1;
|
|
@@ -10916,14 +10933,15 @@
|
|
|
10916
10933
|
_.$_$.f = FlowCollector;
|
|
10917
10934
|
_.$_$.g = MutableSharedFlow;
|
|
10918
10935
|
_.$_$.h = distinctUntilChanged;
|
|
10919
|
-
_.$_$.i =
|
|
10920
|
-
_.$_$.j =
|
|
10921
|
-
_.$_$.k =
|
|
10922
|
-
_.$_$.l =
|
|
10923
|
-
_.$_$.m =
|
|
10924
|
-
_.$_$.n =
|
|
10925
|
-
_.$_$.o =
|
|
10926
|
-
_.$_$.p =
|
|
10936
|
+
_.$_$.i = emptyFlow;
|
|
10937
|
+
_.$_$.j = take;
|
|
10938
|
+
_.$_$.k = transformLatest;
|
|
10939
|
+
_.$_$.l = Mutex;
|
|
10940
|
+
_.$_$.m = CoroutineScope_0;
|
|
10941
|
+
_.$_$.n = CoroutineScope;
|
|
10942
|
+
_.$_$.o = Job_0;
|
|
10943
|
+
_.$_$.p = get_isActive;
|
|
10944
|
+
_.$_$.q = launch;
|
|
10927
10945
|
//endregion
|
|
10928
10946
|
return _;
|
|
10929
10947
|
}));
|