@cruglobal/godtools-shared 0.9.3-SNAPSHOT.1443 → 0.9.3-SNAPSHOT.1444

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.
@@ -1,16 +1,16 @@
1
1
  (function (root, factory) {
2
2
  if (typeof define === 'function' && define.amd)
3
- define(['exports', './kotlin-kotlin-stdlib.js', './88b0986a7186d029-atomicfu-js-ir.js'], factory);
3
+ define(['exports', './kotlin-kotlin-stdlib.js', './kotlinx-atomicfu.js'], factory);
4
4
  else if (typeof exports === 'object')
5
- factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./88b0986a7186d029-atomicfu-js-ir.js'));
5
+ factory(module.exports, require('./kotlin-kotlin-stdlib.js'), require('./kotlinx-atomicfu.js'));
6
6
  else {
7
7
  if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
8
- throw new Error("Error loading module 'kotlinx.coroutines-kotlinx-coroutines-core-js-ir'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kotlinx.coroutines-kotlinx-coroutines-core-js-ir'.");
8
+ throw new Error("Error loading module 'kotlinx-coroutines-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kotlinx-coroutines-core'.");
9
9
  }
10
- if (typeof this['88b0986a7186d029-atomicfu-js-ir'] === 'undefined') {
11
- throw new Error("Error loading module 'kotlinx.coroutines-kotlinx-coroutines-core-js-ir'. Its dependency '88b0986a7186d029-atomicfu-js-ir' was not found. Please, check whether '88b0986a7186d029-atomicfu-js-ir' is loaded prior to 'kotlinx.coroutines-kotlinx-coroutines-core-js-ir'.");
10
+ if (typeof this['kotlinx-atomicfu'] === 'undefined') {
11
+ throw new Error("Error loading module 'kotlinx-coroutines-core'. Its dependency 'kotlinx-atomicfu' was not found. Please, check whether 'kotlinx-atomicfu' is loaded prior to 'kotlinx-coroutines-core'.");
12
12
  }
13
- root['kotlinx.coroutines-kotlinx-coroutines-core-js-ir'] = factory(typeof this['kotlinx.coroutines-kotlinx-coroutines-core-js-ir'] === 'undefined' ? {} : this['kotlinx.coroutines-kotlinx-coroutines-core-js-ir'], this['kotlin-kotlin-stdlib'], this['88b0986a7186d029-atomicfu-js-ir']);
13
+ root['kotlinx-coroutines-core'] = factory(typeof this['kotlinx-coroutines-core'] === 'undefined' ? {} : this['kotlinx-coroutines-core'], this['kotlin-kotlin-stdlib'], this['kotlinx-atomicfu']);
14
14
  }
15
15
  }(this, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_atomicfu) {
16
16
  'use strict';
@@ -57,6 +57,7 @@
57
57
  var minusKey = kotlin_kotlin.$_$.h5;
58
58
  var ContinuationInterceptor = kotlin_kotlin.$_$.i5;
59
59
  var RuntimeException_init_$Create$ = kotlin_kotlin.$_$.p1;
60
+ var addSuppressed = kotlin_kotlin.$_$.m9;
60
61
  var Enum = kotlin_kotlin.$_$.w8;
61
62
  var startCoroutine = kotlin_kotlin.$_$.q5;
62
63
  var noWhenBranchMatchedException = kotlin_kotlin.$_$.r9;
@@ -82,7 +83,6 @@
82
83
  var atomicfu$AtomicRefArray$ofNulls = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
83
84
  var ensureNotNull = kotlin_kotlin.$_$.o9;
84
85
  var toLong = kotlin_kotlin.$_$.w6;
85
- var addSuppressed = kotlin_kotlin.$_$.m9;
86
86
  var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.y;
87
87
  var atomic$long$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
88
88
  var listOf = kotlin_kotlin.$_$.d4;
@@ -116,11 +116,11 @@
116
116
  var getKClassFromExpression = kotlin_kotlin.$_$.a;
117
117
  var CancellationException_init_$Init$ = kotlin_kotlin.$_$.p;
118
118
  var getStringHashCode = kotlin_kotlin.$_$.g6;
119
- var removeFirstOrNull = kotlin_kotlin.$_$.j4;
120
- var Collection = kotlin_kotlin.$_$.r2;
121
119
  var HashSet_init_$Create$ = kotlin_kotlin.$_$.j;
122
120
  var RuntimeException_init_$Init$_0 = kotlin_kotlin.$_$.m1;
123
121
  var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.n;
122
+ var removeFirstOrNull = kotlin_kotlin.$_$.j4;
123
+ var Collection = kotlin_kotlin.$_$.r2;
124
124
  var UnsupportedOperationException_init_$Create$_0 = kotlin_kotlin.$_$.q1;
125
125
  //endregion
126
126
  //region block: pre-declaration
@@ -190,7 +190,8 @@
190
190
  setMetadataFor(Empty, 'Empty', classMeta, VOID, [Incomplete]);
191
191
  setMetadataFor(LinkedListHead, 'LinkedListHead', classMeta, LinkedListNode, VOID, LinkedListHead);
192
192
  setMetadataFor(NodeList, 'NodeList', classMeta, LinkedListHead, [LinkedListHead, Incomplete], NodeList);
193
- setMetadataFor(Finishing, 'Finishing', classMeta, VOID, [Incomplete]);
193
+ setMetadataFor(SynchronizedObject, 'SynchronizedObject', classMeta, VOID, VOID, SynchronizedObject);
194
+ setMetadataFor(Finishing, 'Finishing', classMeta, SynchronizedObject, [SynchronizedObject, Incomplete]);
194
195
  setMetadataFor(ChildCompletion, 'ChildCompletion', classMeta, JobNode);
195
196
  setMetadataFor(JobCancellingNode, 'JobCancellingNode', classMeta, JobNode);
196
197
  setMetadataFor(InactiveNodeList, 'InactiveNodeList', classMeta, VOID, [Incomplete]);
@@ -214,11 +215,6 @@
214
215
  setMetadataFor(BufferedChannelIterator, 'BufferedChannelIterator', classMeta, VOID, [Waiter], VOID, VOID, VOID, [0, 3]);
215
216
  setMetadataFor($sendCOROUTINE$2, '$sendCOROUTINE$2', classMeta, CoroutineImpl);
216
217
  setMetadataFor($receiveCatchingCOROUTINE$4, '$receiveCatchingCOROUTINE$4', classMeta, CoroutineImpl);
217
- function close$default(cause, $super) {
218
- cause = cause === VOID ? null : cause;
219
- return $super === VOID ? this.ix(cause) : $super.ix.call(this, cause);
220
- }
221
- setMetadataFor(SendChannel, 'SendChannel', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]);
222
218
  function cancel$default_0(cause, $super) {
223
219
  cause = cause === VOID ? null : cause;
224
220
  var tmp;
@@ -231,7 +227,12 @@
231
227
  return tmp;
232
228
  }
233
229
  setMetadataFor(ReceiveChannel, 'ReceiveChannel', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [0]);
234
- setMetadataFor(BufferedChannel, 'BufferedChannel', classMeta, VOID, [SendChannel, ReceiveChannel], VOID, VOID, VOID, [1, 4, 0, 3]);
230
+ function close$default(cause, $super) {
231
+ cause = cause === VOID ? null : cause;
232
+ return $super === VOID ? this.ix(cause) : $super.ix.call(this, cause);
233
+ }
234
+ setMetadataFor(SendChannel, 'SendChannel', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]);
235
+ setMetadataFor(BufferedChannel, 'BufferedChannel', classMeta, VOID, [ReceiveChannel, SendChannel], VOID, VOID, VOID, [1, 4, 0, 3]);
235
236
  setMetadataFor(WaiterEB, 'WaiterEB', classMeta);
236
237
  setMetadataFor(ReceiveCatching, 'ReceiveCatching', classMeta, VOID, [Waiter]);
237
238
  setMetadataFor(Factory, 'Factory', objectMeta);
@@ -241,7 +242,7 @@
241
242
  setMetadataFor(ChannelResult, 'ChannelResult', classMeta);
242
243
  setMetadataFor(ClosedSendChannelException, 'ClosedSendChannelException', classMeta, IllegalStateException);
243
244
  setMetadataFor(ClosedReceiveChannelException, 'ClosedReceiveChannelException', classMeta, NoSuchElementException);
244
- setMetadataFor(ChannelCoroutine, 'ChannelCoroutine', classMeta, AbstractCoroutine, [AbstractCoroutine, SendChannel, ReceiveChannel], VOID, VOID, VOID, [0, 1]);
245
+ setMetadataFor(ChannelCoroutine, 'ChannelCoroutine', classMeta, AbstractCoroutine, [AbstractCoroutine, ReceiveChannel, SendChannel], VOID, VOID, VOID, [0, 1]);
245
246
  setMetadataFor(ConflatedBufferedChannel, 'ConflatedBufferedChannel', classMeta, BufferedChannel, VOID, VOID, VOID, VOID, [1, 0]);
246
247
  setMetadataFor(ProducerScope, 'ProducerScope', interfaceMeta, VOID, [CoroutineScope, SendChannel], VOID, VOID, VOID, [1]);
247
248
  setMetadataFor(ProducerCoroutine, 'ProducerCoroutine', classMeta, ChannelCoroutine, [ChannelCoroutine, ProducerScope], VOID, VOID, VOID, [0, 1]);
@@ -251,7 +252,7 @@
251
252
  setMetadataFor(FlowCollector, 'FlowCollector', interfaceMeta, VOID, VOID, VOID, VOID, VOID, [1]);
252
253
  setMetadataFor(Emitter, 'Emitter', classMeta);
253
254
  setMetadataFor($collectCOROUTINE$10, '$collectCOROUTINE$10', classMeta, CoroutineImpl);
254
- setMetadataFor(AbstractSharedFlow, 'AbstractSharedFlow', classMeta);
255
+ setMetadataFor(AbstractSharedFlow, 'AbstractSharedFlow', classMeta, SynchronizedObject);
255
256
  function fuse$default(context, capacity, onBufferOverflow, $super) {
256
257
  context = context === VOID ? EmptyCoroutineContext_getInstance() : context;
257
258
  var tmp;
@@ -312,23 +313,24 @@
312
313
  setMetadataFor(Symbol, 'Symbol', classMeta);
313
314
  setMetadataFor(SelectInstance, 'SelectInstance', interfaceMeta);
314
315
  setMetadataFor(ClauseData, 'ClauseData', classMeta, VOID, VOID, VOID, VOID, VOID, [1]);
315
- setMetadataFor(SelectImplementation, 'SelectImplementation', classMeta, CancelHandler, [CancelHandler, Waiter, SelectInstance], VOID, VOID, VOID, [0, 2]);
316
+ setMetadataFor(SelectImplementation, 'SelectImplementation', classMeta, CancelHandler, [CancelHandler, SelectInstance, Waiter], VOID, VOID, VOID, [0, 2]);
316
317
  setMetadataFor(TrySelectDetailedResult, 'TrySelectDetailedResult', classMeta, Enum);
317
318
  setMetadataFor(UndispatchedCoroutine, 'UndispatchedCoroutine', classMeta, ScopeCoroutine, VOID, VOID, VOID, VOID, [0]);
318
- setMetadataFor(Dispatchers, 'Dispatchers', objectMeta);
319
- setMetadataFor(JsMainDispatcher, 'JsMainDispatcher', classMeta, MainCoroutineDispatcher);
320
- setMetadataFor(UnconfinedEventLoop, 'UnconfinedEventLoop', classMeta, EventLoop, VOID, UnconfinedEventLoop);
321
- setMetadataFor(JobCancellationException, 'JobCancellationException', classMeta, CancellationException);
322
319
  setMetadataFor(SetTimeoutBasedDispatcher, 'SetTimeoutBasedDispatcher', classMeta, CoroutineDispatcher, VOID, VOID, VOID, VOID, [1]);
323
320
  setMetadataFor(NodeDispatcher, 'NodeDispatcher', objectMeta, SetTimeoutBasedDispatcher, VOID, VOID, VOID, VOID, [1]);
324
- setMetadataFor(SetTimeoutDispatcher, 'SetTimeoutDispatcher', objectMeta, SetTimeoutBasedDispatcher, VOID, VOID, VOID, VOID, [1]);
325
321
  setMetadataFor(MessageQueue, 'MessageQueue', classMeta, VOID, [List, Collection]);
326
322
  setMetadataFor(ScheduledMessageQueue, 'ScheduledMessageQueue', classMeta, MessageQueue);
327
- setMetadataFor(WindowDispatcher, 'WindowDispatcher', classMeta, CoroutineDispatcher, VOID, VOID, VOID, VOID, [1]);
328
323
  setMetadataFor(WindowMessageQueue, 'WindowMessageQueue', classMeta, MessageQueue);
324
+ setMetadataFor(Dispatchers, 'Dispatchers', objectMeta);
325
+ setMetadataFor(JsMainDispatcher, 'JsMainDispatcher', classMeta, MainCoroutineDispatcher);
326
+ setMetadataFor(UnconfinedEventLoop, 'UnconfinedEventLoop', classMeta, EventLoop, VOID, UnconfinedEventLoop);
327
+ setMetadataFor(JobCancellationException, 'JobCancellationException', classMeta, CancellationException);
328
+ setMetadataFor(TaskContext, 'TaskContext', objectMeta);
329
329
  setMetadataFor(ChildCancelledException, 'ChildCancelledException', classMeta, CancellationException);
330
330
  setMetadataFor(SafeCollector, 'SafeCollector', classMeta, VOID, [FlowCollector], VOID, VOID, VOID, [1]);
331
331
  setMetadataFor(DiagnosticCoroutineContextException, 'DiagnosticCoroutineContextException', classMeta, RuntimeException);
332
+ setMetadataFor(SetTimeoutDispatcher, 'SetTimeoutDispatcher', objectMeta, SetTimeoutBasedDispatcher, VOID, VOID, VOID, VOID, [1]);
333
+ setMetadataFor(WindowDispatcher, 'WindowDispatcher', classMeta, CoroutineDispatcher, VOID, VOID, VOID, VOID, [1]);
332
334
  setMetadataFor(LocalAtomicInt, 'LocalAtomicInt', classMeta);
333
335
  setMetadataFor(CommonThreadLocal, 'CommonThreadLocal', classMeta, VOID, VOID, CommonThreadLocal);
334
336
  //endregion
@@ -1640,10 +1642,11 @@
1640
1642
  if (originalException === thrownException)
1641
1643
  return originalException;
1642
1644
  // Inline function 'kotlin.apply' call
1645
+ var this_0 = RuntimeException_init_$Create$('Exception while trying to handle coroutine exception', thrownException);
1643
1646
  // Inline function 'kotlin.contracts.contract' call
1644
1647
  // Inline function 'kotlinx.coroutines.handlerException.<anonymous>' call
1645
- // Inline function 'kotlinx.coroutines.addSuppressedThrowable' call
1646
- return RuntimeException_init_$Create$('Exception while trying to handle coroutine exception', thrownException);
1648
+ addSuppressed(this_0, originalException);
1649
+ return this_0;
1647
1650
  }
1648
1651
  function CoroutineScope() {
1649
1652
  }
@@ -2110,7 +2113,7 @@
2110
2113
  tmp = false;
2111
2114
  }
2112
2115
  if (tmp) {
2113
- // Inline function 'kotlinx.coroutines.addSuppressedThrowable' call
2116
+ addSuppressed(rootCause, unwrapped);
2114
2117
  }
2115
2118
  }
2116
2119
  }
@@ -2179,7 +2182,7 @@
2179
2182
  // Inline function 'kotlin.apply' call
2180
2183
  // Inline function 'kotlin.contracts.contract' call
2181
2184
  // Inline function 'kotlinx.coroutines.JobSupport.notifyHandlers.<anonymous>.<anonymous>' call
2182
- // Inline function 'kotlinx.coroutines.addSuppressedThrowable' call
2185
+ addSuppressed(tmp0_safe_receiver, ex);
2183
2186
  tmp = tmp0_safe_receiver;
2184
2187
  }
2185
2188
  if (tmp == null) {
@@ -2235,7 +2238,7 @@
2235
2238
  // Inline function 'kotlin.apply' call
2236
2239
  // Inline function 'kotlin.contracts.contract' call
2237
2240
  // Inline function 'kotlinx.coroutines.JobSupport.notifyHandlers.<anonymous>.<anonymous>' call
2238
- // Inline function 'kotlinx.coroutines.addSuppressedThrowable' call
2241
+ addSuppressed(tmp0_safe_receiver, ex);
2239
2242
  tmp = tmp0_safe_receiver;
2240
2243
  }
2241
2244
  if (tmp == null) {
@@ -2675,6 +2678,7 @@
2675
2678
  return tmp;
2676
2679
  }
2677
2680
  function Finishing(list, isCompleting, rootCause) {
2681
+ SynchronizedObject.call(this);
2678
2682
  this.gp_1 = list;
2679
2683
  this.hp_1 = atomic$boolean$1(isCompleting);
2680
2684
  this.ip_1 = atomic$ref$1(rootCause);
@@ -7959,6 +7963,7 @@
7959
7963
  }
7960
7964
  var EMPTY_RESUMES;
7961
7965
  function AbstractSharedFlow() {
7966
+ SynchronizedObject.call(this);
7962
7967
  this.h10_1 = null;
7963
7968
  this.i10_1 = 0;
7964
7969
  this.j10_1 = 0;
@@ -10281,8 +10286,7 @@
10281
10286
  };
10282
10287
  protoOf(DispatchedTask).xn = function () {
10283
10288
  // Inline function 'kotlinx.coroutines.assert' call
10284
- get_taskContext(this);
10285
- var taskContext = Unit_instance;
10289
+ var taskContext = get_taskContext(this);
10286
10290
  var fatalException = null;
10287
10291
  try {
10288
10292
  var tmp = this.kn();
@@ -10356,7 +10360,7 @@
10356
10360
  if (exception === null ? finallyException === null : false)
10357
10361
  return Unit_instance;
10358
10362
  if (!(exception === null) ? !(finallyException === null) : false) {
10359
- // Inline function 'kotlinx.coroutines.addSuppressedThrowable' call
10363
+ addSuppressed(exception, finallyException);
10360
10364
  }
10361
10365
  var cause = exception == null ? finallyException : exception;
10362
10366
  var reason = new CoroutinesInternalError('Fatal exception in coroutines machinery for ' + this + '. ' + "Please read KDoc to 'handleFatalException' method and report this incident to maintainers", ensureNotNull(cause));
@@ -10503,7 +10507,7 @@
10503
10507
  if ($p instanceof Error) {
10504
10508
  var ex = $p;
10505
10509
  if (!(undeliveredElementException == null) ? !(undeliveredElementException.cause === ex) : false) {
10506
- // Inline function 'kotlinx.coroutines.addSuppressedThrowable' call
10510
+ addSuppressed(undeliveredElementException, ex);
10507
10511
  } else {
10508
10512
  return new UndeliveredElementException('Exception in undelivered element handler for ' + element, ex);
10509
10513
  }
@@ -10748,6 +10752,10 @@
10748
10752
  return STATE_CANCELLED;
10749
10753
  }
10750
10754
  var STATE_CANCELLED;
10755
+ function get_NO_RESULT() {
10756
+ _init_properties_Select_kt__zhm2jg();
10757
+ return NO_RESULT;
10758
+ }
10751
10759
  var NO_RESULT;
10752
10760
  var PARAM_CLAUSE_0;
10753
10761
  function SelectInstance() {
@@ -10770,7 +10778,7 @@
10770
10778
  $this.vu_1 = internalResult;
10771
10779
  if (tryResume_1(cont, onCancellation))
10772
10780
  return 0;
10773
- $this.vu_1 = null;
10781
+ $this.vu_1 = get_NO_RESULT();
10774
10782
  return 2;
10775
10783
  }
10776
10784
  } else {
@@ -11018,6 +11026,148 @@
11018
11026
  }
11019
11027
  return ((!(result == null) ? typeof result === 'number' : false) ? result : THROW_CCE()).toString();
11020
11028
  }
11029
+ function NodeDispatcher() {
11030
+ NodeDispatcher_instance = this;
11031
+ SetTimeoutBasedDispatcher.call(this);
11032
+ }
11033
+ protoOf(NodeDispatcher).u1c = function () {
11034
+ process.nextTick(this.b1d_1.z1c_1);
11035
+ };
11036
+ var NodeDispatcher_instance;
11037
+ function NodeDispatcher_getInstance() {
11038
+ if (NodeDispatcher_instance == null)
11039
+ new NodeDispatcher();
11040
+ return NodeDispatcher_instance;
11041
+ }
11042
+ function ScheduledMessageQueue$processQueue$lambda(this$0) {
11043
+ return function () {
11044
+ this$0.f1d();
11045
+ return Unit_instance;
11046
+ };
11047
+ }
11048
+ function ScheduledMessageQueue(dispatcher) {
11049
+ MessageQueue.call(this);
11050
+ this.y1c_1 = dispatcher;
11051
+ var tmp = this;
11052
+ tmp.z1c_1 = ScheduledMessageQueue$processQueue$lambda(this);
11053
+ }
11054
+ protoOf(ScheduledMessageQueue).g1d = function () {
11055
+ this.y1c_1.u1c();
11056
+ };
11057
+ protoOf(ScheduledMessageQueue).h1d = function () {
11058
+ setTimeout(this.z1c_1, 0);
11059
+ };
11060
+ protoOf(ScheduledMessageQueue).i1d = function (timeout) {
11061
+ setTimeout(this.z1c_1, timeout);
11062
+ };
11063
+ function WindowMessageQueue$lambda(this$0) {
11064
+ return function (event) {
11065
+ var tmp;
11066
+ if (event.source == this$0.u1d_1 ? event.data == this$0.v1d_1 : false) {
11067
+ event.stopPropagation();
11068
+ this$0.f1d();
11069
+ tmp = Unit_instance;
11070
+ }
11071
+ return Unit_instance;
11072
+ };
11073
+ }
11074
+ function WindowMessageQueue$schedule$lambda(this$0) {
11075
+ return function (it) {
11076
+ this$0.f1d();
11077
+ return Unit_instance;
11078
+ };
11079
+ }
11080
+ function WindowMessageQueue(window_0) {
11081
+ MessageQueue.call(this);
11082
+ this.u1d_1 = window_0;
11083
+ this.v1d_1 = 'dispatchCoroutine';
11084
+ this.u1d_1.addEventListener('message', WindowMessageQueue$lambda(this), true);
11085
+ }
11086
+ protoOf(WindowMessageQueue).g1d = function () {
11087
+ var tmp = Promise.resolve(Unit_instance);
11088
+ tmp.then(WindowMessageQueue$schedule$lambda(this));
11089
+ };
11090
+ protoOf(WindowMessageQueue).h1d = function () {
11091
+ this.u1d_1.postMessage(this.v1d_1, '*');
11092
+ };
11093
+ function promise(_this__u8e3s4, context, start, block) {
11094
+ context = context === VOID ? EmptyCoroutineContext_getInstance() : context;
11095
+ start = start === VOID ? CoroutineStart_DEFAULT_getInstance() : start;
11096
+ return asPromise(async(_this__u8e3s4, context, start, block));
11097
+ }
11098
+ function await_0(_this__u8e3s4, $completion) {
11099
+ // Inline function 'kotlinx.coroutines.suspendCancellableCoroutine.<anonymous>' call
11100
+ var cancellable = new CancellableContinuationImpl(intercepted($completion), get_MODE_CANCELLABLE());
11101
+ cancellable.cl();
11102
+ // Inline function 'kotlinx.coroutines.await.<anonymous>' call
11103
+ var tmp = await$lambda(cancellable);
11104
+ _this__u8e3s4.then(tmp, await$lambda_0(cancellable));
11105
+ return cancellable.el();
11106
+ }
11107
+ function asPromise(_this__u8e3s4) {
11108
+ var promise = new Promise(asPromise$lambda(_this__u8e3s4));
11109
+ // Inline function 'kotlin.js.asDynamic' call
11110
+ promise.deferred = _this__u8e3s4;
11111
+ return promise;
11112
+ }
11113
+ function await$lambda($cont) {
11114
+ return function (it) {
11115
+ // Inline function 'kotlin.coroutines.resume' call
11116
+ var this_0 = $cont;
11117
+ // Inline function 'kotlin.Companion.success' call
11118
+ var tmp$ret$0 = _Result___init__impl__xyqfz8(it);
11119
+ this_0.kc(tmp$ret$0);
11120
+ return Unit_instance;
11121
+ };
11122
+ }
11123
+ function await$lambda_0($cont) {
11124
+ return function (it) {
11125
+ // Inline function 'kotlin.coroutines.resumeWithException' call
11126
+ var this_0 = $cont;
11127
+ // Inline function 'kotlin.Companion.failure' call
11128
+ var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(it));
11129
+ this_0.kc(tmp$ret$0);
11130
+ return Unit_instance;
11131
+ };
11132
+ }
11133
+ function asPromise$lambda$lambda($this_asPromise, $reject, $resolve) {
11134
+ return function (it) {
11135
+ var e = $this_asPromise.bj();
11136
+ var tmp;
11137
+ if (!(e == null)) {
11138
+ tmp = $reject(e);
11139
+ } else {
11140
+ tmp = $resolve($this_asPromise.fk());
11141
+ }
11142
+ return Unit_instance;
11143
+ };
11144
+ }
11145
+ function asPromise$lambda($this_asPromise) {
11146
+ return function (resolve, reject) {
11147
+ $this_asPromise.ii(asPromise$lambda$lambda($this_asPromise, reject, resolve));
11148
+ return Unit_instance;
11149
+ };
11150
+ }
11151
+ function asCoroutineDispatcher(_this__u8e3s4) {
11152
+ // Inline function 'kotlin.js.asDynamic' call
11153
+ var tmp0_elvis_lhs = _this__u8e3s4.coroutineDispatcher;
11154
+ var tmp;
11155
+ if (tmp0_elvis_lhs == null) {
11156
+ // Inline function 'kotlin.also' call
11157
+ var this_0 = new WindowDispatcher(_this__u8e3s4);
11158
+ // Inline function 'kotlin.contracts.contract' call
11159
+ // Inline function 'kotlinx.coroutines.asCoroutineDispatcher.<anonymous>' call
11160
+ // Inline function 'kotlin.js.asDynamic' call
11161
+ _this__u8e3s4.coroutineDispatcher = this_0;
11162
+ tmp = this_0;
11163
+ } else {
11164
+ tmp = tmp0_elvis_lhs;
11165
+ }
11166
+ return tmp;
11167
+ }
11168
+ function propagateExceptionFinalResort(exception) {
11169
+ console.error(exception.toString());
11170
+ }
11021
11171
  function Dispatchers() {
11022
11172
  Dispatchers_instance = this;
11023
11173
  this.er_1 = createDefaultDispatcher();
@@ -11037,25 +11187,25 @@
11037
11187
  }
11038
11188
  function JsMainDispatcher(delegate, invokeImmediately) {
11039
11189
  MainCoroutineDispatcher.call(this);
11040
- this.t1c_1 = delegate;
11041
- this.u1c_1 = invokeImmediately;
11042
- this.v1c_1 = this.u1c_1 ? this : new JsMainDispatcher(this.t1c_1, true);
11190
+ this.x1d_1 = delegate;
11191
+ this.y1d_1 = invokeImmediately;
11192
+ this.z1d_1 = this.y1d_1 ? this : new JsMainDispatcher(this.x1d_1, true);
11043
11193
  }
11044
11194
  protoOf(JsMainDispatcher).cr = function () {
11045
- return this.v1c_1;
11195
+ return this.z1d_1;
11046
11196
  };
11047
11197
  protoOf(JsMainDispatcher).eo = function (context) {
11048
- return !this.u1c_1;
11198
+ return !this.y1d_1;
11049
11199
  };
11050
11200
  protoOf(JsMainDispatcher).fo = function (context, block) {
11051
- return this.t1c_1.fo(context, block);
11201
+ return this.x1d_1.fo(context, block);
11052
11202
  };
11053
11203
  protoOf(JsMainDispatcher).go = function (context, block) {
11054
- return this.t1c_1.go(context, block);
11204
+ return this.x1d_1.go(context, block);
11055
11205
  };
11056
11206
  protoOf(JsMainDispatcher).toString = function () {
11057
11207
  var tmp0_elvis_lhs = this.dr();
11058
- return tmp0_elvis_lhs == null ? this.t1c_1.toString() : tmp0_elvis_lhs;
11208
+ return tmp0_elvis_lhs == null ? this.x1d_1.toString() : tmp0_elvis_lhs;
11059
11209
  };
11060
11210
  function createEventLoop() {
11061
11211
  return new UnconfinedEventLoop();
@@ -11072,10 +11222,10 @@
11072
11222
  function JobCancellationException(message, cause, job) {
11073
11223
  CancellationException_init_$Init$(message, cause, this);
11074
11224
  captureStack(this, JobCancellationException);
11075
- this.a1d_1 = job;
11225
+ this.e1e_1 = job;
11076
11226
  }
11077
11227
  protoOf(JobCancellationException).toString = function () {
11078
- return protoOf(CancellationException).toString.call(this) + '; job=' + this.a1d_1;
11228
+ return protoOf(CancellationException).toString.call(this) + '; job=' + this.e1e_1;
11079
11229
  };
11080
11230
  protoOf(JobCancellationException).equals = function (other) {
11081
11231
  var tmp;
@@ -11091,7 +11241,7 @@
11091
11241
  tmp_2 = false;
11092
11242
  }
11093
11243
  if (tmp_2) {
11094
- tmp_1 = equals(other.a1d_1, this.a1d_1);
11244
+ tmp_1 = equals(other.e1e_1, this.e1e_1);
11095
11245
  } else {
11096
11246
  tmp_1 = false;
11097
11247
  }
@@ -11105,30 +11255,79 @@
11105
11255
  return tmp;
11106
11256
  };
11107
11257
  protoOf(JobCancellationException).hashCode = function () {
11108
- var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.a1d_1) | 0, 31);
11258
+ var tmp = imul(imul(getStringHashCode(ensureNotNull(this.message)), 31) + hashCode(this.e1e_1) | 0, 31);
11109
11259
  var tmp0_safe_receiver = this.cause;
11110
11260
  var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
11111
11261
  return tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
11112
11262
  };
11113
- function NodeDispatcher() {
11114
- NodeDispatcher_instance = this;
11115
- SetTimeoutBasedDispatcher.call(this);
11263
+ function Runnable() {
11116
11264
  }
11117
- protoOf(NodeDispatcher).d1d = function () {
11118
- process.nextTick(this.k1d_1.h1d_1);
11265
+ function SchedulerTask() {
11266
+ }
11267
+ function get_taskContext(_this__u8e3s4) {
11268
+ return TaskContext_instance;
11269
+ }
11270
+ function TaskContext() {
11271
+ }
11272
+ var TaskContext_instance;
11273
+ function TaskContext_getInstance() {
11274
+ return TaskContext_instance;
11275
+ }
11276
+ function ChildCancelledException() {
11277
+ }
11278
+ function SafeCollector$collectContextSize$lambda(count, _anonymous_parameter_1__qggqgd) {
11279
+ return count + 1 | 0;
11280
+ }
11281
+ function SafeCollector(collector, collectContext) {
11282
+ this.x17_1 = collector;
11283
+ this.y17_1 = collectContext;
11284
+ var tmp = this;
11285
+ tmp.z17_1 = this.y17_1.ff(0, SafeCollector$collectContextSize$lambda);
11286
+ this.a18_1 = null;
11287
+ }
11288
+ protoOf(SafeCollector).ez = function (value, $completion) {
11289
+ // Inline function 'kotlinx.coroutines.currentCoroutineContext' call
11290
+ // Inline function 'kotlin.js.getCoroutineContext' call
11291
+ var currentContext = $completion.tb();
11292
+ ensureActive(currentContext);
11293
+ if (!(this.a18_1 === currentContext)) {
11294
+ checkContext(this, currentContext);
11295
+ this.a18_1 = currentContext;
11296
+ }
11297
+ return this.x17_1.ez(value, $completion);
11119
11298
  };
11120
- var NodeDispatcher_instance;
11121
- function NodeDispatcher_getInstance() {
11122
- if (NodeDispatcher_instance == null)
11123
- new NodeDispatcher();
11124
- return NodeDispatcher_instance;
11299
+ protoOf(SafeCollector).f19 = function () {
11300
+ };
11301
+ function identitySet(expectedSize) {
11302
+ return HashSet_init_$Create$(expectedSize);
11303
+ }
11304
+ function get_platformExceptionHandlers_() {
11305
+ _init_properties_CoroutineExceptionHandlerImpl_kt__37d7wf();
11306
+ return platformExceptionHandlers_;
11307
+ }
11308
+ var platformExceptionHandlers_;
11309
+ function get_platformExceptionHandlers() {
11310
+ _init_properties_CoroutineExceptionHandlerImpl_kt__37d7wf();
11311
+ return get_platformExceptionHandlers_();
11312
+ }
11313
+ function DiagnosticCoroutineContextException(context) {
11314
+ RuntimeException_init_$Init$_0(toString(context), this);
11315
+ captureStack(this, DiagnosticCoroutineContextException);
11316
+ }
11317
+ var properties_initialized_CoroutineExceptionHandlerImpl_kt_qhrgvx;
11318
+ function _init_properties_CoroutineExceptionHandlerImpl_kt__37d7wf() {
11319
+ if (!properties_initialized_CoroutineExceptionHandlerImpl_kt_qhrgvx) {
11320
+ properties_initialized_CoroutineExceptionHandlerImpl_kt_qhrgvx = true;
11321
+ // Inline function 'kotlin.collections.mutableSetOf' call
11322
+ platformExceptionHandlers_ = LinkedHashSet_init_$Create$();
11323
+ }
11125
11324
  }
11126
11325
  function SetTimeoutDispatcher() {
11127
11326
  SetTimeoutDispatcher_instance = this;
11128
11327
  SetTimeoutBasedDispatcher.call(this);
11129
11328
  }
11130
- protoOf(SetTimeoutDispatcher).d1d = function () {
11131
- setTimeout(this.k1d_1.h1d_1, 0);
11329
+ protoOf(SetTimeoutDispatcher).u1c = function () {
11330
+ this.b1d_1.i1d(0);
11132
11331
  };
11133
11332
  var SetTimeoutDispatcher_instance;
11134
11333
  function SetTimeoutDispatcher_getInstance() {
@@ -11136,114 +11335,96 @@
11136
11335
  new SetTimeoutDispatcher();
11137
11336
  return SetTimeoutDispatcher_instance;
11138
11337
  }
11139
- function SetTimeoutBasedDispatcher$ScheduledMessageQueue$processQueue$lambda(this$0) {
11140
- return function () {
11141
- this$0.q1d();
11142
- return Unit_instance;
11143
- };
11144
- }
11145
- function ScheduledMessageQueue($outer) {
11146
- this.i1d_1 = $outer;
11147
- MessageQueue.call(this);
11148
- var tmp = this;
11149
- tmp.h1d_1 = SetTimeoutBasedDispatcher$ScheduledMessageQueue$processQueue$lambda(this);
11150
- }
11151
- protoOf(ScheduledMessageQueue).r1d = function () {
11152
- this.i1d_1.d1d();
11153
- };
11154
- protoOf(ScheduledMessageQueue).s1d = function () {
11155
- setTimeout(this.h1d_1, 0);
11156
- };
11157
11338
  function SetTimeoutBasedDispatcher() {
11158
11339
  CoroutineDispatcher.call(this);
11159
- this.k1d_1 = new ScheduledMessageQueue(this);
11340
+ this.b1d_1 = new ScheduledMessageQueue(this);
11160
11341
  }
11161
11342
  protoOf(SetTimeoutBasedDispatcher).fo = function (context, block) {
11162
- this.k1d_1.a1e(block);
11343
+ this.b1d_1.q1d(block);
11163
11344
  };
11164
11345
  function MessageQueue() {
11165
- this.n1d_1 = ArrayDeque_init_$Create$();
11166
- this.o1d_1 = 16;
11167
- this.p1d_1 = false;
11346
+ this.c1d_1 = ArrayDeque_init_$Create$();
11347
+ this.d1d_1 = 16;
11348
+ this.e1d_1 = false;
11168
11349
  }
11169
11350
  protoOf(MessageQueue).l = function () {
11170
- return this.n1d_1.kd_1;
11351
+ return this.c1d_1.kd_1;
11171
11352
  };
11172
- protoOf(MessageQueue).t1d = function (index, element) {
11173
- this.n1d_1.o1(index, element);
11353
+ protoOf(MessageQueue).j1d = function (index, element) {
11354
+ this.c1d_1.o1(index, element);
11174
11355
  };
11175
11356
  protoOf(MessageQueue).o1 = function (index, element) {
11176
- return this.t1d(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
11357
+ return this.j1d(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
11177
11358
  };
11178
- protoOf(MessageQueue).u1d = function (element) {
11179
- return this.n1d_1.p(element);
11359
+ protoOf(MessageQueue).k1d = function (element) {
11360
+ return this.c1d_1.p(element);
11180
11361
  };
11181
11362
  protoOf(MessageQueue).p = function (element) {
11182
- return this.u1d((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
11363
+ return this.k1d((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
11183
11364
  };
11184
- protoOf(MessageQueue).v1d = function (elements) {
11185
- return this.n1d_1.q(elements);
11365
+ protoOf(MessageQueue).l1d = function (elements) {
11366
+ return this.c1d_1.q(elements);
11186
11367
  };
11187
11368
  protoOf(MessageQueue).q = function (elements) {
11188
- return this.v1d(elements);
11369
+ return this.l1d(elements);
11189
11370
  };
11190
- protoOf(MessageQueue).w1d = function (element) {
11191
- return this.n1d_1.v(element);
11371
+ protoOf(MessageQueue).m1d = function (element) {
11372
+ return this.c1d_1.v(element);
11192
11373
  };
11193
11374
  protoOf(MessageQueue).v = function (element) {
11194
11375
  if (!(!(element == null) ? isInterface(element, Runnable) : false))
11195
11376
  return false;
11196
- return this.w1d((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
11377
+ return this.m1d((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
11197
11378
  };
11198
- protoOf(MessageQueue).x1d = function (elements) {
11199
- return this.n1d_1.w(elements);
11379
+ protoOf(MessageQueue).n1d = function (elements) {
11380
+ return this.c1d_1.w(elements);
11200
11381
  };
11201
11382
  protoOf(MessageQueue).w = function (elements) {
11202
- return this.x1d(elements);
11383
+ return this.n1d(elements);
11203
11384
  };
11204
11385
  protoOf(MessageQueue).b1 = function (index) {
11205
- return this.n1d_1.b1(index);
11386
+ return this.c1d_1.b1(index);
11206
11387
  };
11207
- protoOf(MessageQueue).y1d = function (element) {
11208
- return this.n1d_1.s1(element);
11388
+ protoOf(MessageQueue).o1d = function (element) {
11389
+ return this.c1d_1.s1(element);
11209
11390
  };
11210
11391
  protoOf(MessageQueue).s1 = function (element) {
11211
11392
  if (!(!(element == null) ? isInterface(element, Runnable) : false))
11212
11393
  return -1;
11213
- return this.y1d((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
11394
+ return this.o1d((!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
11214
11395
  };
11215
11396
  protoOf(MessageQueue).x = function () {
11216
- return this.n1d_1.x();
11397
+ return this.c1d_1.x();
11217
11398
  };
11218
11399
  protoOf(MessageQueue).s = function () {
11219
- return this.n1d_1.s();
11400
+ return this.c1d_1.s();
11220
11401
  };
11221
11402
  protoOf(MessageQueue).t1 = function () {
11222
- return this.n1d_1.t1();
11403
+ return this.c1d_1.t1();
11223
11404
  };
11224
11405
  protoOf(MessageQueue).u1 = function (index) {
11225
- return this.n1d_1.u1(index);
11406
+ return this.c1d_1.u1(index);
11226
11407
  };
11227
11408
  protoOf(MessageQueue).e1 = function (index) {
11228
- return this.n1d_1.e1(index);
11409
+ return this.c1d_1.e1(index);
11229
11410
  };
11230
- protoOf(MessageQueue).z1d = function (index, element) {
11231
- return this.n1d_1.m(index, element);
11411
+ protoOf(MessageQueue).p1d = function (index, element) {
11412
+ return this.c1d_1.m(index, element);
11232
11413
  };
11233
11414
  protoOf(MessageQueue).m = function (index, element) {
11234
- return this.z1d(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
11415
+ return this.p1d(index, (!(element == null) ? isInterface(element, Runnable) : false) ? element : THROW_CCE());
11235
11416
  };
11236
- protoOf(MessageQueue).a1e = function (element) {
11237
- this.u1d(element);
11238
- if (!this.p1d_1) {
11239
- this.p1d_1 = true;
11240
- this.r1d();
11417
+ protoOf(MessageQueue).q1d = function (element) {
11418
+ this.k1d(element);
11419
+ if (!this.e1d_1) {
11420
+ this.e1d_1 = true;
11421
+ this.g1d();
11241
11422
  }
11242
11423
  };
11243
- protoOf(MessageQueue).q1d = function () {
11424
+ protoOf(MessageQueue).f1d = function () {
11244
11425
  try {
11245
11426
  // Inline function 'kotlin.repeat' call
11246
- var times = this.o1d_1;
11427
+ var times = this.d1d_1;
11247
11428
  // Inline function 'kotlin.contracts.contract' call
11248
11429
  var inductionVariable = 0;
11249
11430
  if (inductionVariable < times)
@@ -11264,185 +11445,20 @@
11264
11445
  while (inductionVariable < times);
11265
11446
  }finally {
11266
11447
  if (this.x()) {
11267
- this.p1d_1 = false;
11448
+ this.e1d_1 = false;
11268
11449
  } else {
11269
- this.s1d();
11450
+ this.h1d();
11270
11451
  }
11271
11452
  }
11272
11453
  };
11273
11454
  function WindowDispatcher(window_0) {
11274
11455
  CoroutineDispatcher.call(this);
11275
- this.c1e_1 = window_0;
11276
- this.d1e_1 = new WindowMessageQueue(this.c1e_1);
11456
+ this.i1e_1 = window_0;
11457
+ this.j1e_1 = new WindowMessageQueue(this.i1e_1);
11277
11458
  }
11278
11459
  protoOf(WindowDispatcher).fo = function (context, block) {
11279
- return this.d1e_1.a1e(block);
11280
- };
11281
- function WindowMessageQueue$lambda(this$0) {
11282
- return function (event) {
11283
- var tmp;
11284
- if (event.source == this$0.h1e_1 ? event.data == this$0.i1e_1 : false) {
11285
- event.stopPropagation();
11286
- this$0.q1d();
11287
- tmp = Unit_instance;
11288
- }
11289
- return Unit_instance;
11290
- };
11291
- }
11292
- function WindowMessageQueue$schedule$lambda(this$0) {
11293
- return function (it) {
11294
- this$0.q1d();
11295
- return Unit_instance;
11296
- };
11297
- }
11298
- function WindowMessageQueue(window_0) {
11299
- MessageQueue.call(this);
11300
- this.h1e_1 = window_0;
11301
- this.i1e_1 = 'dispatchCoroutine';
11302
- this.h1e_1.addEventListener('message', WindowMessageQueue$lambda(this), true);
11303
- }
11304
- protoOf(WindowMessageQueue).r1d = function () {
11305
- var tmp = Promise.resolve(Unit_instance);
11306
- tmp.then(WindowMessageQueue$schedule$lambda(this));
11307
- };
11308
- protoOf(WindowMessageQueue).s1d = function () {
11309
- this.h1e_1.postMessage(this.i1e_1, '*');
11310
- };
11311
- function promise(_this__u8e3s4, context, start, block) {
11312
- context = context === VOID ? EmptyCoroutineContext_getInstance() : context;
11313
- start = start === VOID ? CoroutineStart_DEFAULT_getInstance() : start;
11314
- return asPromise(async(_this__u8e3s4, context, start, block));
11315
- }
11316
- function await_0(_this__u8e3s4, $completion) {
11317
- // Inline function 'kotlinx.coroutines.suspendCancellableCoroutine.<anonymous>' call
11318
- var cancellable = new CancellableContinuationImpl(intercepted($completion), get_MODE_CANCELLABLE());
11319
- cancellable.cl();
11320
- // Inline function 'kotlinx.coroutines.await.<anonymous>' call
11321
- var tmp = await$lambda(cancellable);
11322
- _this__u8e3s4.then(tmp, await$lambda_0(cancellable));
11323
- return cancellable.el();
11324
- }
11325
- function asPromise(_this__u8e3s4) {
11326
- var promise = new Promise(asPromise$lambda(_this__u8e3s4));
11327
- // Inline function 'kotlin.js.asDynamic' call
11328
- promise.deferred = _this__u8e3s4;
11329
- return promise;
11330
- }
11331
- function await$lambda($cont) {
11332
- return function (it) {
11333
- // Inline function 'kotlin.coroutines.resume' call
11334
- var this_0 = $cont;
11335
- // Inline function 'kotlin.Companion.success' call
11336
- var tmp$ret$0 = _Result___init__impl__xyqfz8(it);
11337
- this_0.kc(tmp$ret$0);
11338
- return Unit_instance;
11339
- };
11340
- }
11341
- function await$lambda_0($cont) {
11342
- return function (it) {
11343
- // Inline function 'kotlin.coroutines.resumeWithException' call
11344
- var this_0 = $cont;
11345
- // Inline function 'kotlin.Companion.failure' call
11346
- var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(it));
11347
- this_0.kc(tmp$ret$0);
11348
- return Unit_instance;
11349
- };
11350
- }
11351
- function asPromise$lambda$lambda($this_asPromise, $reject, $resolve) {
11352
- return function (it) {
11353
- var e = $this_asPromise.bj();
11354
- var tmp;
11355
- if (!(e == null)) {
11356
- tmp = $reject(e);
11357
- } else {
11358
- tmp = $resolve($this_asPromise.fk());
11359
- }
11360
- return Unit_instance;
11361
- };
11362
- }
11363
- function asPromise$lambda($this_asPromise) {
11364
- return function (resolve, reject) {
11365
- $this_asPromise.ii(asPromise$lambda$lambda($this_asPromise, reject, resolve));
11366
- return Unit_instance;
11367
- };
11368
- }
11369
- function Runnable() {
11370
- }
11371
- function SchedulerTask() {
11372
- }
11373
- function get_taskContext(_this__u8e3s4) {
11374
- return Unit_instance;
11375
- }
11376
- function asCoroutineDispatcher(_this__u8e3s4) {
11377
- // Inline function 'kotlin.js.asDynamic' call
11378
- var tmp0_elvis_lhs = _this__u8e3s4.coroutineDispatcher;
11379
- var tmp;
11380
- if (tmp0_elvis_lhs == null) {
11381
- // Inline function 'kotlin.also' call
11382
- var this_0 = new WindowDispatcher(_this__u8e3s4);
11383
- // Inline function 'kotlin.contracts.contract' call
11384
- // Inline function 'kotlinx.coroutines.asCoroutineDispatcher.<anonymous>' call
11385
- // Inline function 'kotlin.js.asDynamic' call
11386
- _this__u8e3s4.coroutineDispatcher = this_0;
11387
- tmp = this_0;
11388
- } else {
11389
- tmp = tmp0_elvis_lhs;
11390
- }
11391
- return tmp;
11392
- }
11393
- function ChildCancelledException() {
11394
- }
11395
- function SafeCollector$collectContextSize$lambda(count, _anonymous_parameter_1__qggqgd) {
11396
- return count + 1 | 0;
11397
- }
11398
- function SafeCollector(collector, collectContext) {
11399
- this.x17_1 = collector;
11400
- this.y17_1 = collectContext;
11401
- var tmp = this;
11402
- tmp.z17_1 = this.y17_1.ff(0, SafeCollector$collectContextSize$lambda);
11403
- this.a18_1 = null;
11404
- }
11405
- protoOf(SafeCollector).ez = function (value, $completion) {
11406
- // Inline function 'kotlinx.coroutines.currentCoroutineContext' call
11407
- // Inline function 'kotlin.js.getCoroutineContext' call
11408
- var currentContext = $completion.tb();
11409
- ensureActive(currentContext);
11410
- if (!(this.a18_1 === currentContext)) {
11411
- checkContext(this, currentContext);
11412
- this.a18_1 = currentContext;
11413
- }
11414
- return this.x17_1.ez(value, $completion);
11415
- };
11416
- protoOf(SafeCollector).f19 = function () {
11460
+ return this.j1e_1.q1d(block);
11417
11461
  };
11418
- function identitySet(expectedSize) {
11419
- return HashSet_init_$Create$(expectedSize);
11420
- }
11421
- function get_platformExceptionHandlers_() {
11422
- _init_properties_CoroutineExceptionHandlerImpl_kt__37d7wf();
11423
- return platformExceptionHandlers_;
11424
- }
11425
- var platformExceptionHandlers_;
11426
- function get_platformExceptionHandlers() {
11427
- _init_properties_CoroutineExceptionHandlerImpl_kt__37d7wf();
11428
- return get_platformExceptionHandlers_();
11429
- }
11430
- function propagateExceptionFinalResort(exception) {
11431
- _init_properties_CoroutineExceptionHandlerImpl_kt__37d7wf();
11432
- console.error(exception);
11433
- }
11434
- function DiagnosticCoroutineContextException(context) {
11435
- RuntimeException_init_$Init$_0(toString(context), this);
11436
- captureStack(this, DiagnosticCoroutineContextException);
11437
- }
11438
- var properties_initialized_CoroutineExceptionHandlerImpl_kt_qhrgvx;
11439
- function _init_properties_CoroutineExceptionHandlerImpl_kt__37d7wf() {
11440
- if (!properties_initialized_CoroutineExceptionHandlerImpl_kt_qhrgvx) {
11441
- properties_initialized_CoroutineExceptionHandlerImpl_kt_qhrgvx = true;
11442
- // Inline function 'kotlin.collections.mutableSetOf' call
11443
- platformExceptionHandlers_ = LinkedHashSet_init_$Create$();
11444
- }
11445
- }
11446
11462
  function LinkedListHead() {
11447
11463
  LinkedListNode.call(this);
11448
11464
  }
@@ -11499,6 +11515,8 @@
11499
11515
  function recoverStackTrace_0(exception) {
11500
11516
  return exception;
11501
11517
  }
11518
+ function SynchronizedObject() {
11519
+ }
11502
11520
  function systemProp_1(propertyName) {
11503
11521
  return null;
11504
11522
  }
@@ -11548,6 +11566,7 @@
11548
11566
  MODE_ATOMIC = 0;
11549
11567
  counter = 0;
11550
11568
  DEBUG = false;
11569
+ TaskContext_instance = new TaskContext();
11551
11570
  //endregion
11552
11571
  //region block: exports
11553
11572
  _.$_$ = _.$_$ || {};
@@ -11576,4 +11595,4 @@
11576
11595
  return _;
11577
11596
  }));
11578
11597
 
11579
- //# sourceMappingURL=kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map
11598
+ //# sourceMappingURL=kotlinx-coroutines-core.js.map