@kform/core
Version:
JavaScript bindings for KForm.
1,590 lines (1,589 loc) • 345 kB
JavaScript
import {
Unit_instance14hm69wy3kr8u as Unit_instance,
THROW_CCE2g6jy02ryeudk as THROW_CCE,
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
VOID7hggqo3abtya as VOID,
EmptyCoroutineContext_getInstance2qfbu6z39urjq as EmptyCoroutineContext_getInstance,
createCoroutineUninterceptedGeneratorVersion2gduom218i9ay as createCoroutineUninterceptedGeneratorVersion,
Key_instance10ebq86xndg52 as Key_instance,
equals2au1ep9vhcato as equals,
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
toString1pkumu07cwy4m as toString,
intercepted2ogpsikxxj4u0 as intercepted,
get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED,
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
UnsupportedOperationException2tkumpmhredt3 as UnsupportedOperationException,
isInterface3d6p8outrmvmk as isInterface,
toString30pk9tzaqopn as toString_0,
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
hashCodeq5arwsb9dgti as hashCode,
suspendOrReturn49pspzlx5djv as suspendOrReturn,
CancellationException3b36o9qz53rgr as CancellationException,
Result__exceptionOrNull_impl_p6xea93g9kuxe56cw2k as Result__exceptionOrNull_impl_p6xea9,
_Result___get_value__impl__bjfvqgbxrwpgk5sesh as _Result___get_value__impl__bjfvqg,
Companion_instance1et3290wko23u as Companion_instance,
_Result___init__impl__xyqfz8oelep8i0cbta as _Result___init__impl__xyqfz8,
createFailure8paxfkfa5dc7 as createFailure,
AbstractCoroutineContextKey9xr9r6wlj5bm as AbstractCoroutineContextKey,
AbstractCoroutineContextElement2rpehg0hv5szw as AbstractCoroutineContextElement,
getxe4seun860fg as get,
protoOf180f3jzyo7rfj as protoOf,
minusKey2uxs00uz5ceqp as minusKey,
ContinuationInterceptor2624y0vaqwxwf as ContinuationInterceptor,
RuntimeException1r3t0zl97011n as RuntimeException,
addSuppressedu5jwjfvsc039 as addSuppressed,
getStringHashCode26igk1bx568vk as getStringHashCode,
Enum3alwj03lh1n41 as Enum,
startCoroutine327fwvtqvedik as startCoroutine,
noWhenBranchMatchedException2a6r7ubxgky5j as noWhenBranchMatchedException,
Long2qws0ah9gnpki as Long,
ArrayDeque2dzc9uld4xi7n as ArrayDeque,
captureStack1fzi4aczwc4hg as captureStack,
Error3ofk6owajcepa as Error_0,
Element2gr7ezmxqaln7 as Element,
StringBuildermazzzhj6kkai as StringBuilder,
throwUninitializedPropertyAccessExceptionyynx7gkm73wd as throwUninitializedPropertyAccessException,
ArrayList3it5z8td81qkl as ArrayList,
plusolev77jfy5r9 as plus,
get6d5x931vk0s as get_0,
fold36i9psb7d5v48 as fold,
minusKeyyqanvso9aovh as minusKey_0,
anyToString3ho3k49fc56mj as anyToString,
ensureNotNull1e947j3ixpazm as ensureNotNull,
toLongw1zpgk99d84b as toLong,
IllegalArgumentException2asla15b5jaob as IllegalArgumentException,
listOf1jh22dvmctj1r as listOf,
NoSuchElementException679xzhnp5bpj as NoSuchElementException,
compareTo3ankvs086tmwq as compareTo,
last2n4gf5az1lkn4 as last,
_Char___init__impl__6a9atx367vrx0avsvbg as _Char___init__impl__6a9atx,
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
getKClass1s3j9wy1cofik as getKClass,
fillArrayVali8eppxapiek4 as fillArrayVal,
copyOf2ng0t8oizk6it as copyOf,
FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
throwKotlinNothingValueException2lxmvl03dor6f as throwKotlinNothingValueException,
Exceptiondt2hlxn7j7vw as Exception,
toLongOrNullutqivezb0wx1 as toLongOrNull,
startCoroutineUninterceptedOrReturnGeneratorVersion1cv0wx9z0l0zn as startCoroutineUninterceptedOrReturnGeneratorVersion,
plus20p0vtfmu0596 as plus_0,
KtList3hktaavzmj137 as KtList,
listOfvhqybd2zx248 as listOf_0,
Unitkvevlwgzwiuc as Unit,
getKClassFromExpression3vpejubogshaw as getKClassFromExpression,
removeFirstOrNull15yg2tczrh8a7 as removeFirstOrNull,
Collection1k04j3hzsbod0 as Collection,
MutableIterablez3x4ksk1fmrm as MutableIterable,
HashSet2dzve9y63nf0v as HashSet,
LinkedHashSet2tkztfx86kyx2 as LinkedHashSet,
} from './kotlin-kotlin-stdlib.mjs';
import {
atomic$int$11d5swdyn6j0pu as atomic$int$1,
atomic$ref$130aurmcwdfdf1 as atomic$ref$1,
atomic$boolean$1iggki4z65a2h as atomic$boolean$1,
atomicfu$AtomicRefArray$ofNulls2kz3j9ehigwa3 as atomicfu$AtomicRefArray$ofNulls,
atomic$long$129k9zwo6n9ogd as atomic$long$1,
} from './kotlinx-atomicfu.mjs';
//region block: imports
var imul = Math.imul;
//endregion
//region block: pre-declaration
class Job {}
function cancel$default(cause, $super) {
cause = cause === VOID ? null : cause;
var tmp;
if ($super === VOID) {
this.x12(cause);
tmp = Unit_instance;
} else {
tmp = $super.x12.call(this, cause);
}
return tmp;
}
class ParentJob {}
class JobSupport {
constructor(active) {
this.i11_1 = atomic$ref$1(active ? get_EMPTY_ACTIVE() : get_EMPTY_NEW());
this.j11_1 = atomic$ref$1(null);
}
y2() {
return Key_instance_3;
}
g12(value) {
this.j11_1.kotlinx$atomicfu$value = value;
}
h12() {
return this.j11_1.kotlinx$atomicfu$value;
}
i12() {
var tmp0_safe_receiver = this.h12();
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.i12();
}
k11(parent) {
// Inline function 'kotlinx.coroutines.assert' call
if (parent == null) {
this.g12(NonDisposableHandle_instance);
return Unit_instance;
}
parent.m12();
var handle = parent.e13(this);
this.g12(handle);
if (this.k12()) {
handle.z14();
this.g12(NonDisposableHandle_instance);
}
}
j12() {
return this.i11_1.kotlinx$atomicfu$value;
}
p11() {
var state = this.j12();
var tmp;
if (!(state == null) ? isInterface(state, Incomplete) : false) {
tmp = state.p11();
} else {
tmp = false;
}
return tmp;
}
k12() {
var tmp = this.j12();
return !(!(tmp == null) ? isInterface(tmp, Incomplete) : false);
}
l12() {
var state = this.j12();
var tmp;
if (state instanceof CompletedExceptionally) {
tmp = true;
} else {
var tmp_0;
if (state instanceof Finishing) {
tmp_0 = state.p19();
} else {
tmp_0 = false;
}
tmp = tmp_0;
}
return tmp;
}
m12() {
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
while (true) {
// Inline function 'kotlinx.coroutines.JobSupport.start.<anonymous>' call
var state = this.j12();
var tmp0_subject = startInternal(this, state);
if (tmp0_subject === 0)
return false;
else if (tmp0_subject === 1)
return true;
}
}
n12() {
}
o12() {
var state = this.j12();
var tmp;
if (state instanceof Finishing) {
var tmp0_safe_receiver = state.c1a();
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.p12(tmp0_safe_receiver, get_classSimpleName(this) + ' is cancelling');
var tmp_0;
if (tmp1_elvis_lhs == null) {
var message = 'Job is still new or active: ' + this.toString();
throw IllegalStateException.b6(toString(message));
} else {
tmp_0 = tmp1_elvis_lhs;
}
tmp = tmp_0;
} else {
if (!(state == null) ? isInterface(state, Incomplete) : false) {
var message_0 = 'Job is still new or active: ' + this.toString();
throw IllegalStateException.b6(toString(message_0));
} else {
if (state instanceof CompletedExceptionally) {
tmp = this.q12(state.u11_1);
} else {
tmp = JobCancellationException.x19(get_classSimpleName(this) + ' has completed normally', null, this);
}
}
}
return tmp;
}
p12(_this__u8e3s4, message) {
var tmp0_elvis_lhs = _this__u8e3s4 instanceof CancellationException ? _this__u8e3s4 : null;
var tmp;
if (tmp0_elvis_lhs == null) {
// Inline function 'kotlinx.coroutines.JobSupport.defaultCancellationException' call
tmp = JobCancellationException.x19(message == null ? this.s11() : message, _this__u8e3s4, this);
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
q12(_this__u8e3s4, message, $super) {
message = message === VOID ? null : message;
return $super === VOID ? this.p12(_this__u8e3s4, message) : $super.p12.call(this, _this__u8e3s4, message);
}
r12(handler) {
return this.t12(true, new InvokeOnCompletion(handler));
}
s12(onCancelling, invokeImmediately, handler) {
var tmp;
if (onCancelling) {
tmp = new InvokeOnCancelling(handler);
} else {
tmp = new InvokeOnCompletion(handler);
}
return this.t12(invokeImmediately, tmp);
}
t12(invokeImmediately, node) {
node.m17_1 = this;
var tmp$ret$0;
$l$block_1: {
// Inline function 'kotlinx.coroutines.JobSupport.tryPutNodeIntoList' call
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
while (true) {
// Inline function 'kotlinx.coroutines.JobSupport.tryPutNodeIntoList.<anonymous>' call
var state = this.j12();
if (state instanceof Empty) {
if (state.f19_1) {
if (this.i11_1.atomicfu$compareAndSet(state, node)) {
tmp$ret$0 = true;
break $l$block_1;
}
} else {
promoteEmptyToNodeList(this, state);
}
} else {
if (!(state == null) ? isInterface(state, Incomplete) : false) {
var list = state.o17();
if (list == null) {
promoteSingleToNodeList(this, state instanceof JobNode ? state : THROW_CCE());
} else {
// Inline function 'kotlinx.coroutines.JobSupport.invokeOnCompletionInternal.<anonymous>' call
var tmp;
if (node.i17()) {
var tmp0_safe_receiver = state instanceof Finishing ? state : null;
var rootCause = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1a();
var tmp_0;
if (rootCause == null) {
tmp_0 = list.s17(node, 5);
} else {
if (invokeImmediately) {
node.y14(rootCause);
}
return NonDisposableHandle_instance;
}
tmp = tmp_0;
} else {
tmp = list.s17(node, 1);
}
if (tmp) {
tmp$ret$0 = true;
break $l$block_1;
}
}
} else {
tmp$ret$0 = false;
break $l$block_1;
}
}
}
}
var added = tmp$ret$0;
if (added)
return node;
else if (invokeImmediately) {
var tmp_1 = this.j12();
var tmp0_safe_receiver_0 = tmp_1 instanceof CompletedExceptionally ? tmp_1 : null;
node.y14(tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.u11_1);
}
return NonDisposableHandle_instance;
}
u12($completion) {
if (!joinInternal(this)) {
// Inline function 'kotlin.js.getCoroutineContext' call
var tmp$ret$0 = $completion.rd();
ensureActive(tmp$ret$0);
return Unit_instance;
}
return joinSuspend(this, $completion);
}
v12(node) {
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
while (true) {
// Inline function 'kotlinx.coroutines.JobSupport.removeNode.<anonymous>' call
var state = this.j12();
if (state instanceof JobNode) {
if (!(state === node))
return Unit_instance;
if (this.i11_1.atomicfu$compareAndSet(state, get_EMPTY_ACTIVE()))
return Unit_instance;
} else {
if (!(state == null) ? isInterface(state, Incomplete) : false) {
if (!(state.o17() == null)) {
node.t17();
}
return Unit_instance;
} else {
return Unit_instance;
}
}
}
}
w12() {
return false;
}
x12(cause) {
var tmp;
if (cause == null) {
// Inline function 'kotlinx.coroutines.JobSupport.defaultCancellationException' call
tmp = JobCancellationException.x19(null == null ? this.s11() : null, null, this);
} else {
tmp = cause;
}
this.z12(tmp);
}
s11() {
return 'Job was cancelled';
}
z12(cause) {
this.c13(cause);
}
a13(parentJob) {
this.c13(parentJob);
}
b13(cause) {
if (cause instanceof CancellationException)
return true;
return this.c13(cause) && this.h13();
}
c13(cause) {
var finalState = get_COMPLETING_ALREADY();
if (this.w12()) {
finalState = cancelMakeCompleting(this, cause);
if (finalState === get_COMPLETING_WAITING_CHILDREN())
return true;
}
if (finalState === get_COMPLETING_ALREADY()) {
finalState = makeCancelling(this, cause);
}
var tmp;
if (finalState === get_COMPLETING_ALREADY()) {
tmp = true;
} else if (finalState === get_COMPLETING_WAITING_CHILDREN()) {
tmp = true;
} else if (finalState === get_TOO_LATE_TO_CANCEL()) {
tmp = false;
} else {
this.z11(finalState);
tmp = true;
}
return tmp;
}
d13() {
var state = this.j12();
var tmp;
if (state instanceof Finishing) {
tmp = state.c1a();
} else {
if (state instanceof CompletedExceptionally) {
tmp = state.u11_1;
} else {
if (!(state == null) ? isInterface(state, Incomplete) : false) {
var message = 'Cannot be cancelling child in this state: ' + toString(state);
throw IllegalStateException.b6(toString(message));
} else {
tmp = null;
}
}
}
var rootCause = tmp;
var tmp1_elvis_lhs = rootCause instanceof CancellationException ? rootCause : null;
return tmp1_elvis_lhs == null ? JobCancellationException.x19('Parent job is ' + stateString(this, state), rootCause, this) : tmp1_elvis_lhs;
}
a18(proposedUpdate) {
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
while (true) {
var tmp1 = this.j12();
$l$block: {
// Inline function 'kotlinx.coroutines.JobSupport.makeCompleting.<anonymous>' call
var finalState = tryMakeCompleting(this, tmp1, proposedUpdate);
if (finalState === get_COMPLETING_ALREADY())
return false;
else if (finalState === get_COMPLETING_WAITING_CHILDREN())
return true;
else if (finalState === get_COMPLETING_RETRY()) {
break $l$block;
} else {
this.z11(finalState);
return true;
}
}
}
}
x11(proposedUpdate) {
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
while (true) {
var tmp1 = this.j12();
$l$block: {
// Inline function 'kotlinx.coroutines.JobSupport.makeCompletingOnce.<anonymous>' call
var finalState = tryMakeCompleting(this, tmp1, proposedUpdate);
if (finalState === get_COMPLETING_ALREADY())
throw IllegalStateException.pe('Job ' + this.toString() + ' is already complete or completing, ' + ('but is being completed with ' + toString_0(proposedUpdate)), _get_exceptionOrNull__b3j7js(proposedUpdate, this));
else if (finalState === get_COMPLETING_RETRY()) {
break $l$block;
} else
return finalState;
}
}
}
e13(child) {
// Inline function 'kotlin.also' call
var this_0 = new ChildHandleNode(child);
// Inline function 'kotlinx.coroutines.JobSupport.attachChild.<anonymous>' call
this_0.m17_1 = this;
var node = this_0;
var tmp$ret$1;
$l$block_1: {
// Inline function 'kotlinx.coroutines.JobSupport.tryPutNodeIntoList' call
// Inline function 'kotlinx.coroutines.JobSupport.loopOnState' call
while (true) {
// Inline function 'kotlinx.coroutines.JobSupport.tryPutNodeIntoList.<anonymous>' call
var state = this.j12();
if (state instanceof Empty) {
if (state.f19_1) {
if (this.i11_1.atomicfu$compareAndSet(state, node)) {
tmp$ret$1 = true;
break $l$block_1;
}
} else {
promoteEmptyToNodeList(this, state);
}
} else {
if (!(state == null) ? isInterface(state, Incomplete) : false) {
var list = state.o17();
if (list == null) {
promoteSingleToNodeList(this, state instanceof JobNode ? state : THROW_CCE());
} else {
// Inline function 'kotlinx.coroutines.JobSupport.attachChild.<anonymous>' call
var addedBeforeCancellation = list.s17(node, 7);
var tmp;
if (addedBeforeCancellation) {
tmp = true;
} else {
var addedBeforeCompletion = list.s17(node, 3);
var latestState = this.j12();
var tmp_0;
if (latestState instanceof Finishing) {
tmp_0 = latestState.c1a();
} else {
// Inline function 'kotlinx.coroutines.assert' call
var tmp0_safe_receiver = latestState instanceof CompletedExceptionally ? latestState : null;
tmp_0 = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u11_1;
}
var rootCause = tmp_0;
node.y14(rootCause);
var tmp_1;
if (addedBeforeCompletion) {
// Inline function 'kotlinx.coroutines.assert' call
tmp_1 = true;
} else {
return NonDisposableHandle_instance;
}
tmp = tmp_1;
}
if (tmp) {
tmp$ret$1 = true;
break $l$block_1;
}
}
} else {
tmp$ret$1 = false;
break $l$block_1;
}
}
}
}
var added = tmp$ret$1;
if (added)
return node;
var tmp_2 = this.j12();
var tmp0_safe_receiver_0 = tmp_2 instanceof CompletedExceptionally ? tmp_2 : null;
node.y14(tmp0_safe_receiver_0 == null ? null : tmp0_safe_receiver_0.u11_1);
return NonDisposableHandle_instance;
}
a12(exception) {
throw exception;
}
f13(cause) {
}
g13() {
return false;
}
h13() {
return true;
}
i13(exception) {
return false;
}
t11(state) {
}
z11(state) {
}
toString() {
return this.j13() + '@' + get_hexAddress(this);
}
j13() {
return this.b12() + '{' + stateString(this, this.j12()) + '}';
}
b12() {
return get_classSimpleName(this);
}
k13() {
var state = this.j12();
// Inline function 'kotlin.check' call
if (!!(!(state == null) ? isInterface(state, Incomplete) : false)) {
// Inline function 'kotlinx.coroutines.JobSupport.getCompletionExceptionOrNull.<anonymous>' call
var message = 'This job has not completed yet';
throw IllegalStateException.b6(toString(message));
}
return _get_exceptionOrNull__b3j7js(state, this);
}
l13() {
var state = this.j12();
// Inline function 'kotlin.check' call
if (!!(!(state == null) ? isInterface(state, Incomplete) : false)) {
// Inline function 'kotlinx.coroutines.JobSupport.getCompletedInternal.<anonymous>' call
var message = 'This job has not completed yet';
throw IllegalStateException.b6(toString(message));
}
if (state instanceof CompletedExceptionally)
throw state.u11_1;
return unboxState(state);
}
v17($completion) {
$l$loop: while (true) {
var state = this.j12();
if (!(!(state == null) ? isInterface(state, Incomplete) : false)) {
if (state instanceof CompletedExceptionally) {
// Inline function 'kotlinx.coroutines.internal.recoverAndThrow' call
throw state.u11_1;
}
return unboxState(state);
}
if (startInternal(this, state) >= 0)
break $l$loop;
}
return awaitSuspend(this, $completion);
}
}
class CoroutineScope {}
class AbstractCoroutine extends JobSupport {
constructor(parentContext, initParentJob, active) {
super(active);
if (initParentJob) {
this.k11(parentContext.ee(Key_instance_3));
}
this.n11_1 = parentContext.fn(this);
}
rd() {
return this.n11_1;
}
o11() {
return this.n11_1;
}
p11() {
return super.p11();
}
q11(value) {
}
r11(cause, handled) {
}
s11() {
return get_classSimpleName(this) + ' was cancelled';
}
t11(state) {
if (state instanceof CompletedExceptionally) {
this.r11(state.u11_1, state.w11());
} else {
this.q11((state == null ? true : !(state == null)) ? state : THROW_CCE());
}
}
td(result) {
var state = this.x11(toState_0(result));
if (state === get_COMPLETING_WAITING_CHILDREN())
return Unit_instance;
this.y11(state);
}
y11(state) {
return this.z11(state);
}
a12(exception) {
handleCoroutineException(this.n11_1, exception);
}
b12() {
var tmp0_elvis_lhs = get_coroutineName(this.n11_1);
var tmp;
if (tmp0_elvis_lhs == null) {
return super.b12();
} else {
tmp = tmp0_elvis_lhs;
}
var coroutineName = tmp;
return '"' + coroutineName + '":' + super.b12();
}
c12(start, receiver, block) {
start.f12(block, receiver, this);
}
}
class StandaloneCoroutine extends AbstractCoroutine {
constructor(parentContext, active) {
super(parentContext, true, active);
}
i13(exception) {
handleCoroutineException(this.n11_1, exception);
return true;
}
}
class LazyStandaloneCoroutine extends StandaloneCoroutine {
constructor(parentContext, block) {
super(parentContext, false);
this.t13_1 = createCoroutineUninterceptedGeneratorVersion(block, this, this);
}
n12() {
startCoroutineCancellable(this.t13_1, this);
}
}
class Deferred {}
class DeferredCoroutine extends AbstractCoroutine {
constructor(parentContext, active) {
super(parentContext, true, active);
}
x13() {
var tmp = this.l13();
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
}
}
class LazyDeferredCoroutine extends DeferredCoroutine {
constructor(parentContext, block) {
super(parentContext, false);
this.b14_1 = createCoroutineUninterceptedGeneratorVersion(block, this, this);
}
n12() {
startCoroutineCancellable(this.b14_1, this);
}
}
class ScopeCoroutine extends AbstractCoroutine {
constructor(context, uCont) {
super(context, true, true);
this.l14_1 = uCont;
}
g13() {
return true;
}
z11(state) {
resumeCancellableWith(intercepted(this.l14_1), recoverResult(state, this.l14_1));
}
m14() {
}
y11(state) {
this.l14_1.td(recoverResult(state, this.l14_1));
}
}
class DispatchedCoroutine extends ScopeCoroutine {
constructor(context, uCont) {
super(context, uCont);
this.g14_1 = atomic$int$1(0);
}
z11(state) {
this.y11(state);
}
y11(state) {
if (tryResume(this))
return Unit_instance;
resumeCancellableWith(intercepted(this.l14_1), recoverResult(state, this.l14_1));
}
h14() {
if (trySuspend(this))
return get_COROUTINE_SUSPENDED();
var state = unboxState(this.j12());
if (state instanceof CompletedExceptionally)
throw state.u11_1;
return (state == null ? true : !(state == null)) ? state : THROW_CCE();
}
}
class CancellableContinuation {}
class NotCompleted {}
class CancelHandler {}
class DisposeOnCancel {
constructor(handle) {
this.x14_1 = handle;
}
y14(cause) {
return this.x14_1.z14();
}
toString() {
return 'DisposeOnCancel[' + toString(this.x14_1) + ']';
}
}
class Runnable {}
class SchedulerTask {}
class DispatchedTask extends SchedulerTask {
constructor(resumeMode) {
super();
this.j15_1 = resumeMode;
}
h16(takenState, cause) {
}
o16(state) {
return (state == null ? true : !(state == null)) ? state : THROW_CCE();
}
y16(state) {
var tmp0_safe_receiver = state instanceof CompletedExceptionally ? state : null;
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.u11_1;
}
a17() {
// Inline function 'kotlinx.coroutines.assert' call
try {
var tmp = this.e16();
var delegate = tmp instanceof DispatchedContinuation ? tmp : THROW_CCE();
var continuation = delegate.c15_1;
// Inline function 'kotlinx.coroutines.withContinuationContext' call
delegate.e15_1;
// Inline function 'kotlinx.coroutines.DispatchedTask.run.<anonymous>' call
var context = continuation.rd();
var state = this.g16();
var exception = this.y16(state);
var job = exception == null && get_isCancellableMode(this.j15_1) ? context.ee(Key_instance_3) : null;
if (!(job == null) && !job.p11()) {
var cause = job.o12();
this.h16(state, cause);
// Inline function 'kotlinx.coroutines.resumeWithStackTrace' call
// Inline function 'kotlin.Companion.failure' call
var exception_0 = recoverStackTrace(cause, continuation);
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception_0));
continuation.td(tmp$ret$0);
} else {
if (!(exception == null)) {
// Inline function 'kotlin.coroutines.resumeWithException' call
// Inline function 'kotlin.Companion.failure' call
var tmp$ret$1 = _Result___init__impl__xyqfz8(createFailure(exception));
continuation.td(tmp$ret$1);
} else {
// Inline function 'kotlin.coroutines.resume' call
// Inline function 'kotlin.Companion.success' call
var value = this.o16(state);
var tmp$ret$3 = _Result___init__impl__xyqfz8(value);
continuation.td(tmp$ret$3);
}
}
} catch ($p) {
if ($p instanceof DispatchException) {
var e = $p;
handleCoroutineException(this.e16().rd(), e.h18_1);
} else {
if ($p instanceof Error) {
var e_0 = $p;
this.b17(e_0);
} else {
throw $p;
}
}
}
}
b17(exception) {
var reason = CoroutinesInternalError.e19('Fatal exception in coroutines machinery for ' + toString(this) + '. ' + "Please read KDoc to 'handleFatalException' method and report this incident to maintainers", exception);
handleCoroutineException(this.e16().rd(), reason);
}
}
class Waiter {}
class CancellableContinuationImpl extends DispatchedTask {
constructor(delegate, resumeMode) {
super(resumeMode);
this.r14_1 = delegate;
// Inline function 'kotlinx.coroutines.assert' call
this.s14_1 = this.r14_1.rd();
var tmp = this;
// Inline function 'kotlinx.coroutines.decisionAndIndex' call
var tmp$ret$0 = (0 << 29) + 536870911 | 0;
tmp.t14_1 = atomic$int$1(tmp$ret$0);
this.u14_1 = atomic$ref$1(Active_instance);
this.v14_1 = atomic$ref$1(null);
}
e16() {
return this.r14_1;
}
rd() {
return this.s14_1;
}
j12() {
return this.u14_1.kotlinx$atomicfu$value;
}
k12() {
var tmp = this.j12();
return !(!(tmp == null) ? isInterface(tmp, NotCompleted) : false);
}
f16() {
var tmp0_elvis_lhs = installParentHandle(this);
var tmp;
if (tmp0_elvis_lhs == null) {
return Unit_instance;
} else {
tmp = tmp0_elvis_lhs;
}
var handle = tmp;
if (this.k12()) {
handle.z14();
this.v14_1.kotlinx$atomicfu$value = NonDisposableHandle_instance;
}
}
h15() {
// Inline function 'kotlinx.coroutines.assert' call
// Inline function 'kotlinx.coroutines.assert' call
var state = this.u14_1.kotlinx$atomicfu$value;
// Inline function 'kotlinx.coroutines.assert' call
var tmp;
if (state instanceof CompletedContinuation) {
tmp = !(state.x15_1 == null);
} else {
tmp = false;
}
if (tmp) {
this.d16();
return false;
}
var tmp_0 = this.t14_1;
// Inline function 'kotlinx.coroutines.decisionAndIndex' call
tmp_0.kotlinx$atomicfu$value = (0 << 29) + 536870911 | 0;
this.u14_1.kotlinx$atomicfu$value = Active_instance;
return true;
}
g16() {
return this.j12();
}
h16(takenState, cause) {
var this_0 = this.u14_1;
while (true) {
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.cancelCompletedResult.<anonymous>' call
var state = this_0.kotlinx$atomicfu$value;
if (!(state == null) ? isInterface(state, NotCompleted) : false) {
// Inline function 'kotlin.error' call
var message = 'Not completed';
throw IllegalStateException.b6(toString(message));
} else {
if (state instanceof CompletedExceptionally)
return Unit_instance;
else {
if (state instanceof CompletedContinuation) {
// Inline function 'kotlin.check' call
if (!!state.a16()) {
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.cancelCompletedResult.<anonymous>.<anonymous>' call
var message_0 = 'Must be called at most once';
throw IllegalStateException.b6(toString(message_0));
}
var update = state.b16(VOID, VOID, VOID, VOID, cause);
if (this.u14_1.atomicfu$compareAndSet(state, update)) {
state.i16(this, cause);
return Unit_instance;
}
} else {
if (this.u14_1.atomicfu$compareAndSet(state, new CompletedContinuation(state, VOID, VOID, VOID, cause))) {
return Unit_instance;
}
}
}
}
}
return Unit_instance;
}
j16(cause) {
// Inline function 'kotlinx.atomicfu.loop' call
var this_0 = this.u14_1;
while (true) {
var tmp1 = this_0.kotlinx$atomicfu$value;
$l$block: {
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.cancel.<anonymous>' call
if (!(!(tmp1 == null) ? isInterface(tmp1, NotCompleted) : false))
return false;
var tmp;
if (isInterface(tmp1, CancelHandler)) {
tmp = true;
} else {
tmp = tmp1 instanceof Segment;
}
var update = new CancelledContinuation(this, cause, tmp);
if (!this.u14_1.atomicfu$compareAndSet(tmp1, update)) {
break $l$block;
}
if (isInterface(tmp1, CancelHandler)) {
this.z15(tmp1, cause);
} else {
if (tmp1 instanceof Segment) {
callSegmentOnCancellation(this, tmp1, cause);
}
}
detachChildIfNonReusable(this);
dispatchResume(this, this.j15_1);
return true;
}
}
}
k16(cause) {
if (cancelLater(this, cause))
return Unit_instance;
this.j16(cause);
detachChildIfNonReusable(this);
}
z15(handler, cause) {
var tmp;
try {
handler.y14(cause);
tmp = Unit_instance;
} catch ($p) {
var tmp_0;
if ($p instanceof Error) {
var ex = $p;
handleCoroutineException(this.rd(), CompletionHandlerException.t15('Exception in invokeOnCancellation handler for ' + this.toString(), ex));
tmp_0 = Unit_instance;
} else {
throw $p;
}
tmp = tmp_0;
}
return tmp;
}
l16(onCancellation, cause, value) {
try {
onCancellation(cause, value, this.rd());
} catch ($p) {
if ($p instanceof Error) {
var ex = $p;
handleCoroutineException(this.rd(), CompletionHandlerException.t15('Exception in resume onCancellation handler for ' + this.toString(), ex));
} else {
throw $p;
}
}
}
m16(parent) {
return parent.o12();
}
h14() {
var isReusable_0 = isReusable(this);
if (trySuspend_0(this)) {
if (_get_parentHandle__f8dcex(this) == null) {
installParentHandle(this);
}
if (isReusable_0) {
this.n16();
}
return get_COROUTINE_SUSPENDED();
}
if (isReusable_0) {
this.n16();
}
var state = this.j12();
if (state instanceof CompletedExceptionally)
throw recoverStackTrace(state.u11_1, this);
if (get_isCancellableMode(this.j15_1)) {
var job = this.rd().ee(Key_instance_3);
if (!(job == null) && !job.p11()) {
var cause = job.o12();
this.h16(state, cause);
throw recoverStackTrace(cause, this);
}
}
return this.o16(state);
}
n16() {
var tmp = this.r14_1;
var tmp0_safe_receiver = tmp instanceof DispatchedContinuation ? tmp : null;
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p16(this);
var tmp_0;
if (tmp1_elvis_lhs == null) {
return Unit_instance;
} else {
tmp_0 = tmp1_elvis_lhs;
}
var cancellationCause = tmp_0;
this.d16();
this.j16(cancellationCause);
}
td(result) {
return this.q16(toState(result, this), this.j15_1);
}
r16(value, onCancellation) {
var tmp = this.j15_1;
var tmp_0;
if (onCancellation == null) {
tmp_0 = null;
} else {
// Inline function 'kotlin.let' call
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.resume.<anonymous>' call
tmp_0 = CancellableContinuationImpl$resume$lambda(onCancellation);
}
return this.s16(value, tmp, tmp_0);
}
p14(value, onCancellation) {
return this.s16(value, this.j15_1, onCancellation);
}
t16(segment, index) {
var tmp0 = this.t14_1;
$l$block: {
// Inline function 'kotlinx.atomicfu.update' call
while (true) {
var cur = tmp0.kotlinx$atomicfu$value;
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.invokeOnCancellation.<anonymous>' call
// Inline function 'kotlinx.coroutines.index' call
// Inline function 'kotlin.check' call
if (!((cur & 536870911) === 536870911)) {
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.invokeOnCancellation.<anonymous>.<anonymous>' call
var message = 'invokeOnCancellation should be called at most once';
throw IllegalStateException.b6(toString(message));
}
// Inline function 'kotlinx.coroutines.decision' call
// Inline function 'kotlinx.coroutines.decisionAndIndex' call
var upd = (cur >> 29 << 29) + index | 0;
if (tmp0.atomicfu$compareAndSet(cur, upd)) {
break $l$block;
}
}
}
invokeOnCancellationImpl(this, segment);
}
w14(handler) {
return invokeOnCancellationImpl(this, handler);
}
s16(proposedUpdate, resumeMode, onCancellation) {
// Inline function 'kotlinx.atomicfu.loop' call
var this_0 = this.u14_1;
while (true) {
var tmp1 = this_0.kotlinx$atomicfu$value;
$l$block: {
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.resumeImpl.<anonymous>' call
if (!(tmp1 == null) ? isInterface(tmp1, NotCompleted) : false) {
var update = resumedState(this, tmp1, proposedUpdate, resumeMode, onCancellation, null);
if (!this.u14_1.atomicfu$compareAndSet(tmp1, update)) {
break $l$block;
}
detachChildIfNonReusable(this);
dispatchResume(this, resumeMode);
return Unit_instance;
} else {
if (tmp1 instanceof CancelledContinuation) {
if (tmp1.x16()) {
if (onCancellation == null)
null;
else {
// Inline function 'kotlin.let' call
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.resumeImpl.<anonymous>.<anonymous>' call
this.l16(onCancellation, tmp1.u11_1, proposedUpdate);
}
return Unit_instance;
}
}
}
alreadyResumedError(this, proposedUpdate);
}
}
}
q16(proposedUpdate, resumeMode, onCancellation, $super) {
onCancellation = onCancellation === VOID ? null : onCancellation;
var tmp;
if ($super === VOID) {
this.s16(proposedUpdate, resumeMode, onCancellation);
tmp = Unit_instance;
} else {
tmp = $super.s16.call(this, proposedUpdate, resumeMode, onCancellation);
}
return tmp;
}
d16() {
var tmp0_elvis_lhs = _get_parentHandle__f8dcex(this);
var tmp;
if (tmp0_elvis_lhs == null) {
return Unit_instance;
} else {
tmp = tmp0_elvis_lhs;
}
var handle = tmp;
handle.z14();
this.v14_1.kotlinx$atomicfu$value = NonDisposableHandle_instance;
}
n14(value, idempotent, onCancellation) {
return tryResumeImpl(this, value, idempotent, onCancellation);
}
o14(token) {
// Inline function 'kotlinx.coroutines.assert' call
dispatchResume(this, this.j15_1);
}
o16(state) {
var tmp;
if (state instanceof CompletedContinuation) {
var tmp_0 = state.u15_1;
tmp = (tmp_0 == null ? true : !(tmp_0 == null)) ? tmp_0 : THROW_CCE();
} else {
tmp = (state == null ? true : !(state == null)) ? state : THROW_CCE();
}
return tmp;
}
y16(state) {
var tmp0_safe_receiver = super.y16(state);
var tmp;
if (tmp0_safe_receiver == null) {
tmp = null;
} else {
// Inline function 'kotlin.let' call
// Inline function 'kotlinx.coroutines.CancellableContinuationImpl.getExceptionalResult.<anonymous>' call
tmp = recoverStackTrace(tmp0_safe_receiver, this.r14_1);
}
return tmp;
}
toString() {
return this.z16() + '(' + toDebugString(this.r14_1) + '){' + _get_stateDebugRepresentation__bf18u4(this) + '}@' + get_hexAddress(this);
}
z16() {
return 'CancellableContinuation';
}
}
class Active {
toString() {
return 'Active';
}
}
class CompletedContinuation {
constructor(result, cancelHandler, onCancellation, idempotentResume, cancelCause) {
cancelHandler = cancelHandler === VOID ? null : cancelHandler;
onCancellation = onCancellation === VOID ? null : onCancellation;
idempotentResume = idempotentResume === VOID ? null : idempotentResume;
cancelCause = cancelCause === VOID ? null : cancelCause;
this.u15_1 = result;
this.v15_1 = cancelHandler;
this.w15_1 = onCancellation;
this.x15_1 = idempotentResume;
this.y15_1 = cancelCause;
}
a16() {
return !(this.y15_1 == null);
}
i16(cont, cause) {
var tmp0_safe_receiver = this.v15_1;
if (tmp0_safe_receiver == null)
null;
else {
// Inline function 'kotlin.let' call
// Inline function 'kotlinx.coroutines.CompletedContinuation.invokeHandlers.<anonymous>' call
cont.z15(tmp0_safe_receiver, cause);
}
var tmp1_safe_receiver = this.w15_1;
if (tmp1_safe_receiver == null)
null;
else {
// Inline function 'kotlin.let' call
// Inline function 'kotlinx.coroutines.CompletedContinuation.invokeHandlers.<anonymous>' call
cont.l16(tmp1_safe_receiver, cause, this.u15_1);
}
}
c17(result, cancelHandler, onCancellation, idempotentResume, cancelCause) {
return new CompletedContinuation(result, cancelHandler, onCancellation, idempotentResume, cancelCause);
}
b16(result, cancelHandler, onCancellation, idempotentResume, cancelCause, $super) {
result = result === VOID ? this.u15_1 : result;
cancelHandler = cancelHandler === VOID ? this.v15_1 : cancelHandler;
onCancellation = onCancellation === VOID ? this.w15_1 : onCancellation;
idempotentResume = idempotentResume === VOID ? this.x15_1 : idempotentResume;
cancelCause = cancelCause === VOID ? this.y15_1 : cancelCause;
return $super === VOID ? this.c17(result, cancelHandler, onCancellation, idempotentResume, cancelCause) : $super.c17.call(this, result, cancelHandler, onCancellation, idempotentResume, cancelCause);
}
toString() {
return 'CompletedContinuation(result=' + toString_0(this.u15_1) + ', cancelHandler=' + toString_0(this.v15_1) + ', onCancellation=' + toString_0(this.w15_1) + ', idempotentResume=' + toString_0(this.x15_1) + ', cancelCause=' + toString_0(this.y15_1) + ')';
}
hashCode() {
var result = this.u15_1 == null ? 0 : hashCode(this.u15_1);
result = imul(result, 31) + (this.v15_1 == null ? 0 : hashCode(this.v15_1)) | 0;
result = imul(result, 31) + (this.w15_1 == null ? 0 : hashCode(this.w15_1)) | 0;
result = imul(result, 31) + (this.x15_1 == null ? 0 : hashCode(this.x15_1)) | 0;
result = imul(result, 31) + (this.y15_1 == null ? 0 : hashCode(this.y15_1)) | 0;
return result;
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof CompletedContinuation))
return false;
var tmp0_other_with_cast = other instanceof CompletedContinuation ? other : THROW_CCE();
if (!equals(this.u15_1, tmp0_other_with_cast.u15_1))
return false;
if (!equals(this.v15_1, tmp0_other_with_cast.v15_1))
return false;
if (!equals(this.w15_1, tmp0_other_with_cast.w15_1))
return false;
if (!equals(this.x15_1, tmp0_other_with_cast.x15_1))
return false;
if (!equals(this.y15_1, tmp0_other_with_cast.y15_1))
return false;
return true;
}
}
class LockFreeLinkedListNode {
constructor() {
this.p17_1 = this;
this.q17_1 = this;
this.r17_1 = false;
}
s17(node, permissionsBitmask) {
var prev = this.q17_1;
var tmp;
if (prev instanceof ListClosed) {
tmp = ((prev.l1o_1 & permissionsBitmask) === 0 && prev.s17(node, permissionsBitmask));
} else {
node.p17_1 = this;
node.q17_1 = prev;
prev.p17_1 = node;
this.q17_1 = node;
tmp = true;
}
return tmp;
}
k19(forbiddenElementsBit) {
this.s17(new ListClosed(forbiddenElementsBit), forbiddenElementsBit);
}
t17() {
if (this.r17_1)
return false;
var prev = this.q17_1;
var next = this.p17_1;
prev.p17_1 = next;
next.q17_1 = prev;
this.r17_1 = true;
return true;
}
u17(node) {
if (!(this.p17_1 === this))
return false;
this.s17(node, -2147483648);
return true;
}
}
class Incomplete {}
class JobNode extends LockFreeLinkedListNode {
n17() {
var tmp = this.m17_1;
if (!(tmp == null))
return tmp;
else {
throwUninitializedPropertyAccessException('job');
}
}
p11() {
return true;
}
o17() {
return null;
}
z14() {
return this.n17().v12(this);
}
toString() {
return get_classSimpleName(this) + '@' + get_hexAddress(this) + '[job@' + get_hexAddress(this.n17()) + ']';
}
}
class ChildContinuation extends JobNode {
constructor(child) {
super();
this.h17_1 = child;
}
i17() {
return true;
}
y14(cause) {
this.h17_1.k16(this.h17_1.m16(this.n17()));
}
}
class CompletableDeferredImpl extends JobSupport {
constructor(parent) {
super(true);
this.k11(parent);
}
w12() {
return true;
}
x13() {
var tmp = this.l13();
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
}
y17($completion) {
return suspendOrReturn(/*#__NOINLINE__*/_generator_await__mos7q6.bind(VOID, this), $completion);
}
z17(value) {
return this.a18(value);
}
b18(exception) {
return this.a18(new CompletedExceptionally(exception));
}
}
class CompletedExceptionally {
constructor(cause, handled) {
handled = handled === VOID ? false : handled;
this.u11_1 = cause;
this.v11_1 = atomic$boolean$1(handled);
}
w11() {
return this.v11_1.kotlinx$atomicfu$value;
}
c16() {
return this.v11_1.atomicfu$compareAndSet(false, true);
}
toString() {
return get_classSimpleName(this) + '[' + this.u11_1.toString() + ']';
}
}
class CancelledContinuation extends CompletedExceptionally {
constructor(continuation, cause, handled) {
super(cause == null ? CancellationException.ne('Continuation ' + toString(continuation) + ' was cancelled normally') : cause, handled);
this.w16_1 = atomic$boolean$1(false);
}
x16() {
return this.w16_1.atomicfu$compareAndSet(false, true);
}
}
class Key extends AbstractCoroutineContextKey {
constructor() {
Key_instance_0 = null;
var tmp = Key_instance;
super(tmp, CoroutineDispatcher$Key$_init_$lambda_akl8b5);
Key_instance_0 = this;
}
}
class CoroutineDispatcher extends AbstractCoroutineContextElement {
constructor() {
Key_getInstance();
super(Key_instance);
}
d18(context) {
return true;
}
fe(continuation) {
return new DispatchedContinuation(this, continuation);
}
ge(continuation) {
var dispatched = continuation instanceof DispatchedContinuation ? continuation : THROW_CCE();
dispatched.f18();
}
toString() {
return get_classSimpleName(this) + '@' + get_hexAddress(this);
}
}
class Key_0 {}
class Key_1 {}
class CoroutineName extends AbstractCoroutineContextElement {
constructor(name) {
super(Key_instance_2);
this.l18_1 = name;
}
toString() {
return 'CoroutineName(' + this.l18_1 + ')';
}
hashCode() {
return getStringHashCode(this.l18_1);
}
equals(other) {
if (this === other)
return true;
if (!(other instanceof CoroutineName))
return false;
var tmp0_other_with_cast = other instanceof CoroutineName ? other : THROW_CCE();
if (!(this.l18_1 === tmp0_other_with_cast.l18_1))
return false;
return true;
}
}
class GlobalScope {
o11() {
return EmptyCoroutineContext_getInstance();
}
}
class CoroutineStart extends Enum {
f12(block, receiver, completion) {
var tmp;
switch (this.h3_1) {
case 0:
startCoroutineCancellable_0(block, receiver, completion);
tmp = Unit_instance;
break;
case 2:
startCoroutine(block, receiver, completion);
tmp = Unit_instance;
break;
case 3:
startCoroutineUndispatched(block, receiver, completion);
tmp = Unit_instance;
break;
case 1:
tmp = Unit_instance;
break;
default:
noWhenBranchMatchedException();
break;
}
return tmp;
}
m13() {
return this === CoroutineStart_LAZY_getInstance();
}
}
class EventLoop extends CoroutineDispatcher {
constructor() {
super();
this.n18_1 = new Long(0, 0);
this.o18_1 = false;
this.p18_1 = null;
}
q18() {
var tmp0_elvis_lhs = this.p18_1;
var tmp;
if (tmp0_elvis_lhs == null) {
return false;
} else {
tmp = tmp0_elvis_lhs;
}
var queue = tmp;
var tmp1_elvis_lhs = queue.hl();
var tmp_0;
if (tmp1_elvis_lhs == null) {
return false;
} else {
tmp_0 = tmp1_elvis_lhs;
}
var task = tmp_0;
task.a17();
return true;
}
r18(task) {
var tmp0_elvis_lhs = this.p18_1;
var tmp;
if (tmp0_elvis_lhs == null) {
// Inline function 'kotlin.also' call
var this_0 = ArrayDeque.dl();
// Inline function 'kotlinx.coroutines.EventLoop.dispatchUnconfined.<anonymous>' call
this.p18_1 = this_0;
tmp = this_0;
} else {
tmp = tmp0_elvis_lhs;
}
var queue = tmp;
queue.fl(task);
}
s18() {
return this.n18_1.w1(delta(this, true)) >= 0;
}
t18() {
var tmp0_safe_receiver = this.p18_1;
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.f1();
return tmp1_elvis_lhs == null ? true : tmp1_elvis_lhs;
}
u18(unconfined) {
this.n18_1 = this.n18_1.p3(delta(this, unconfined));
if (!unconfined)
this.o18_1 = true;
}
v18(unconfined) {
this.n18_1 = this.n18_1.q3(delta(this, unconfined));
if (this.n18_1.w1(new Long(0, 0)) > 0)
return Unit_instance;
// Inline function 'kotlinx.coroutines.assert' call
if (this.o18_1) {
this.w18();
}
}
w18() {
}
}
class ThreadLocalEventLoop {
constructor() {
ThreadLocalEventLoop_instance = this;
this.x18_1 = commonThreadLocal(new Symbol('ThreadLocalEventLoop'));
}
y18() {
var tmp0_elvis_lhs = this.x18_1.a19();
var tmp;
if (tmp0_elvis_lhs == null) {
// Inline function 'kotlin.also' call
var this_0 = createEventLoop();
// Inline function 'kotlinx.coroutines.ThreadLocalEventLoop.<get-eventLoop>.<anonymous>' call
ThreadLocalEventLoop_getInstance().x18_1.b19(this_0);
tmp = this_0;
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
}
class CompletionHandlerException extends RuntimeException {
static t15(message, cause) {
var $this = this.ze(message, cause);
captureStack($this, $this.s15_1);
return $this;
}
}
class CoroutinesInternalError extends Error_0 {
static e19(message, cause) {
var $this = this.ff(message, cause);
captureStack($this, $this.d19_1);
return $this;
}
}
class Key_2 {}
class NonDisposableHandle {
i12() {
return null;
}
z14() {
}
b13(cause) {
return false;
}
toString() {
return 'NonDisposableHandle';
}
}
class Empty {
constructor(isActive) {
this.f19_1 = isActive;
}
p11() {
return this.f19_1;
}
o17() {
return null;
}
toString() {
return 'Empty{' + (this.f19_1 ? 'Active' : 'New') + '}';
}
}
class LockFreeLinkedListHead extends LockFreeLinkedListNode {}
class NodeList extends LockFreeLinkedListHead {
p11() {
return true;
}
o17() {
return this;
}
j19(state) {
// Inline function 'kotlin.text.buildString' call
// Inline function 'kotlin.apply' call
var this_0 = StringBuilder.u();
// Inline function 'kotlinx.coroutines.NodeList.getString.<anonymous>' call
this_0.xc('List{');
this_0.xc(state);
this_0.xc('}[');
var first = true;
// Inline function 'kotlinx.coroutines.internal.LockFreeLinkedListHead.forEach' call
var cur = this.p17_1;
while (!equals(cur, this)) {
// Inline function 'kotlinx.coroutines.NodeList.getString.<anonymous>.<anonymous>' call
var node = cur;
if (node instanceof JobNode) {
if (first) {
first = false;
} else