@earth-app/shovel
Version:
Kotlin Multiplatform Web Scraping Framework
1,244 lines (1,242 loc) • 447 kB
JavaScript
//region block: polyfills
(function () {
if (typeof globalThis === 'object')
return;
Object.defineProperty(Object.prototype, '__magic__', {get: function () {
return this;
}, configurable: true});
__magic__.globalThis = __magic__;
delete Object.prototype.__magic__;
}());
if (typeof Math.imul === 'undefined') {
Math.imul = function imul(a, b) {
return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
};
}
if (typeof ArrayBuffer.isView === 'undefined') {
ArrayBuffer.isView = function (a) {
return a != null && a.__proto__ != null && a.__proto__.__proto__ === Int8Array.prototype.__proto__;
};
}
if (typeof Array.prototype.fill === 'undefined') {
// Polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/fill#Polyfill
Object.defineProperty(Array.prototype, 'fill', {value: function (value) {
// Steps 1-2.
if (this == null) {
throw new TypeError('this is null or not defined');
}
var O = Object(this); // Steps 3-5.
var len = O.length >>> 0; // Steps 6-7.
var start = arguments[1];
var relativeStart = start >> 0; // Step 8.
var k = relativeStart < 0 ? Math.max(len + relativeStart, 0) : Math.min(relativeStart, len); // Steps 9-10.
var end = arguments[2];
var relativeEnd = end === undefined ? len : end >> 0; // Step 11.
var finalValue = relativeEnd < 0 ? Math.max(len + relativeEnd, 0) : Math.min(relativeEnd, len); // Step 12.
while (k < finalValue) {
O[k] = value;
k++;
}
; // Step 13.
return O;
}});
}
[Int8Array, Int16Array, Uint16Array, Int32Array, Float32Array, Float64Array].forEach(function (TypedArray) {
if (typeof TypedArray.prototype.fill === 'undefined') {
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
}
});
[Int8Array, Int16Array, Uint16Array, Int32Array, Float32Array, Float64Array].forEach(function (TypedArray) {
if (typeof TypedArray.prototype.sort === 'undefined') {
Object.defineProperty(TypedArray.prototype, 'sort', {value: function (compareFunction) {
compareFunction = compareFunction || function (a, b) {
if (a < b)
return -1;
if (a > b)
return 1;
if (a === b) {
if (a !== 0)
return 0;
var ia = 1 / a;
return ia === 1 / b ? 0 : ia < 0 ? -1 : 1;
}
return a !== a ? b !== b ? 0 : 1 : -1;
};
return Array.prototype.sort.call(this, compareFunction || totalOrderComparator);
}});
}
});
if (typeof Math.clz32 === 'undefined') {
Math.clz32 = function (log, LN2) {
return function (x) {
var asUint = x >>> 0;
if (asUint === 0) {
return 32;
}
return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
};
}(Math.log, Math.LN2);
}
if (typeof String.prototype.startsWith === 'undefined') {
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
position = position || 0;
return this.lastIndexOf(searchString, position) === position;
}});
}
if (typeof String.prototype.endsWith === 'undefined') {
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
var subjectString = this.toString();
if (position === undefined || position > subjectString.length) {
position = subjectString.length;
}
position -= searchString.length;
var lastIndex = subjectString.indexOf(searchString, position);
return lastIndex !== -1 && lastIndex === position;
}});
}
//endregion
(function (factory) {
if (typeof define === 'function' && define.amd)
define(['exports'], factory);
else if (typeof exports === 'object')
factory(module.exports);
else
globalThis['kotlin-kotlin-stdlib'] = factory(typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined' ? {} : globalThis['kotlin-kotlin-stdlib']);
}(function (_) {
'use strict';
//region block: imports
var imul = Math.imul;
var isView = ArrayBuffer.isView;
var clz32 = Math.clz32;
//endregion
//region block: pre-declaration
initMetadataForInterface(CharSequence, 'CharSequence');
initMetadataForInterface(Comparable, 'Comparable');
initMetadataForClass(Number_0, 'Number');
initMetadataForClass(Exception, 'Exception', Exception_init_$Create$, Error);
initMetadataForClass(RuntimeException, 'RuntimeException', RuntimeException_init_$Create$, Exception);
initMetadataForClass(IllegalStateException, 'IllegalStateException', IllegalStateException_init_$Create$, RuntimeException);
initMetadataForClass(CancellationException, 'CancellationException', CancellationException_init_$Create$, IllegalStateException);
initMetadataForClass(Error_0, 'Error', Error_init_$Create$, Error);
initMetadataForClass(IrLinkageError, 'IrLinkageError', VOID, Error_0);
initMetadataForClass(KTypeImpl, 'KTypeImpl');
initMetadataForInterface(KTypeParameter, 'KTypeParameter');
initMetadataForClass(KTypeParameterBase, 'KTypeParameterBase', VOID, VOID, [KTypeParameter]);
initMetadataForClass(asSequence$$inlined$Sequence$1);
initMetadataForClass(asIterable$$inlined$Iterable$1);
initMetadataForCompanion(Companion);
initMetadataForClass(Char, 'Char', VOID, VOID, [Comparable]);
initMetadataForCompanion(Companion_0);
initMetadataForInterface(Collection, 'Collection');
function asJsReadonlyArrayView() {
return createJsReadonlyArrayViewFrom(this);
}
initMetadataForInterface(KtList, 'List', VOID, VOID, [Collection]);
function asJsReadonlyMapView() {
return createJsReadonlyMapViewFrom(this);
}
initMetadataForInterface(KtMap, 'Map');
initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
initMetadataForInterface(MutableCollection, 'MutableCollection', VOID, VOID, [Collection]);
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableCollection]);
initMetadataForInterface(Entry, 'Entry');
initMetadataForCompanion(Companion_1);
initMetadataForCompanion(Companion_2);
initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
initMetadataForCompanion(Companion_3);
initMetadataForClass(Long, 'Long', VOID, Number_0, [Number_0, Comparable]);
initMetadataForInterface(FunctionAdapter, 'FunctionAdapter');
initMetadataForClass(arrayIterator$1);
initMetadataForClass(JsArrayView, 'JsArrayView', JsArrayView, Array);
initMetadataForClass(JsMapView, 'JsMapView', JsMapView, Map);
initMetadataForObject(StringCompanionObject, 'StringCompanionObject');
initMetadataForObject(Digit, 'Digit');
initMetadataForObject(Letter, 'Letter');
initMetadataForInterface(AutoCloseable, 'AutoCloseable');
initMetadataForInterface(Comparator, 'Comparator');
initMetadataForObject(Unit, 'Unit');
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableCollection]);
initMetadataForClass(IteratorImpl, 'IteratorImpl');
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
initMetadataForClass(SubList, 'SubList', VOID, AbstractMutableList);
initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [AbstractMap, KtMutableMap]);
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection, MutableCollection, KtSet]);
initMetadataForCompanion(Companion_4);
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtMutableList]);
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMutableMap]);
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [MutableCollection, KtSet, AbstractMutableSet]);
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableCollection, AbstractMutableCollection]);
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [MutableCollection, KtSet, AbstractMutableSet]);
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
initMetadataForClass(HashMapKeysDefault$iterator$1);
initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault', VOID, AbstractMutableSet);
initMetadataForClass(HashMapValuesDefault$iterator$1);
initMetadataForClass(HashMapValuesDefault, 'HashMapValuesDefault', VOID, AbstractMutableCollection);
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [AbstractMutableSet, MutableCollection, KtSet]);
initMetadataForCompanion(Companion_5);
initMetadataForClass(Itr, 'Itr');
initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
initMetadataForClass(ValuesItr, 'ValuesItr', VOID, Itr);
initMetadataForClass(EntriesItr, 'EntriesItr', VOID, Itr);
initMetadataForClass(EntryRef, 'EntryRef', VOID, VOID, [Entry]);
function containsAllEntries(m) {
var tmp$ret$0;
$l$block_0: {
// Inline function 'kotlin.collections.all' call
var tmp;
if (isInterface(m, Collection)) {
tmp = m.o();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = true;
break $l$block_0;
}
var _iterator__ex2g4s = m.q();
while (_iterator__ex2g4s.r()) {
var element = _iterator__ex2g4s.s();
// Inline function 'kotlin.js.unsafeCast' call
// Inline function 'kotlin.js.asDynamic' call
var entry = element;
var tmp_0;
if (!(entry == null) ? isInterface(entry, Entry) : false) {
tmp_0 = this.c8(entry);
} else {
tmp_0 = false;
}
if (!tmp_0) {
tmp$ret$0 = false;
break $l$block_0;
}
}
tmp$ret$0 = true;
}
return tmp$ret$0;
}
initMetadataForInterface(InternalMap, 'InternalMap');
initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap_init_$Create$, VOID, [InternalMap]);
initMetadataForObject(EmptyHolder, 'EmptyHolder');
initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [HashMap, KtMutableMap]);
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [HashSet, MutableCollection, KtSet]);
initMetadataForInterface(Continuation, 'Continuation');
initMetadataForClass(InterceptedCoroutine, 'InterceptedCoroutine', VOID, VOID, [Continuation]);
initMetadataForClass(CoroutineImpl, 'CoroutineImpl', VOID, InterceptedCoroutine, [InterceptedCoroutine, Continuation]);
initMetadataForObject(CompletedContinuation, 'CompletedContinuation', VOID, VOID, [Continuation]);
initMetadataForClass(SafeContinuation, 'SafeContinuation', VOID, VOID, [Continuation]);
initMetadataForClass(createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$1, VOID, VOID, CoroutineImpl);
initMetadataForClass(createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$2, VOID, VOID, CoroutineImpl);
initMetadataForClass(createSimpleCoroutineForSuspendFunction$1, VOID, VOID, CoroutineImpl);
initMetadataForClass(UnsupportedOperationException, 'UnsupportedOperationException', UnsupportedOperationException_init_$Create$, RuntimeException);
initMetadataForClass(IllegalArgumentException, 'IllegalArgumentException', IllegalArgumentException_init_$Create$, RuntimeException);
initMetadataForClass(NoSuchElementException, 'NoSuchElementException', NoSuchElementException_init_$Create$, RuntimeException);
initMetadataForClass(IndexOutOfBoundsException, 'IndexOutOfBoundsException', IndexOutOfBoundsException_init_$Create$, RuntimeException);
initMetadataForClass(NumberFormatException, 'NumberFormatException', NumberFormatException_init_$Create$, IllegalArgumentException);
initMetadataForClass(ArithmeticException, 'ArithmeticException', ArithmeticException_init_$Create$, RuntimeException);
initMetadataForClass(ConcurrentModificationException, 'ConcurrentModificationException', ConcurrentModificationException_init_$Create$, RuntimeException);
initMetadataForClass(ClassCastException, 'ClassCastException', ClassCastException_init_$Create$, RuntimeException);
initMetadataForClass(NullPointerException, 'NullPointerException', NullPointerException_init_$Create$, RuntimeException);
initMetadataForClass(UninitializedPropertyAccessException, 'UninitializedPropertyAccessException', UninitializedPropertyAccessException_init_$Create$, RuntimeException);
initMetadataForClass(NoWhenBranchMatchedException, 'NoWhenBranchMatchedException', NoWhenBranchMatchedException_init_$Create$, RuntimeException);
initMetadataForInterface(KClass, 'KClass');
initMetadataForClass(KClassImpl, 'KClassImpl', VOID, VOID, [KClass]);
initMetadataForClass(PrimitiveKClassImpl, 'PrimitiveKClassImpl', VOID, KClassImpl);
initMetadataForObject(NothingKClassImpl, 'NothingKClassImpl', VOID, KClassImpl);
initMetadataForClass(SimpleKClassImpl, 'SimpleKClassImpl', VOID, KClassImpl);
initMetadataForInterface(KProperty0, 'KProperty0');
initMetadataForInterface(KProperty1, 'KProperty1');
initMetadataForInterface(KMutableProperty1, 'KMutableProperty1', VOID, VOID, [KProperty1]);
initMetadataForClass(KTypeParameterImpl, 'KTypeParameterImpl', VOID, KTypeParameterBase);
initMetadataForObject(PrimitiveClasses, 'PrimitiveClasses');
initMetadataForClass(ConstrainedOnceSequence, 'ConstrainedOnceSequence');
initMetadataForClass(CharacterCodingException, 'CharacterCodingException', CharacterCodingException_init_$Create$, Exception);
initMetadataForClass(StringBuilder, 'StringBuilder', StringBuilder_init_$Create$_0, VOID, [CharSequence]);
initMetadataForCompanion(Companion_6);
initMetadataForClass(Regex, 'Regex');
initMetadataForClass(MatchGroup, 'MatchGroup');
initMetadataForClass(RegexOption, 'RegexOption', VOID, Enum);
initMetadataForInterface(MatchNamedGroupCollection, 'MatchNamedGroupCollection', VOID, VOID, [Collection]);
initMetadataForClass(findNext$1$groups$1, VOID, VOID, AbstractCollection, [MatchNamedGroupCollection, AbstractCollection]);
initMetadataForClass(findNext$1);
initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
initMetadataForClass(ExceptionTraceBuilder, 'ExceptionTraceBuilder', ExceptionTraceBuilder);
initMetadataForClass(AbstractList, 'AbstractList', VOID, AbstractCollection, [AbstractCollection, KtList]);
initMetadataForClass(SubList_0, 'SubList', VOID, AbstractList);
initMetadataForClass(IteratorImpl_0, 'IteratorImpl');
initMetadataForClass(ListIteratorImpl_0, 'ListIteratorImpl', VOID, IteratorImpl_0);
initMetadataForCompanion(Companion_7);
initMetadataForClass(AbstractMap$keys$1$iterator$1);
initMetadataForClass(AbstractMap$values$1$iterator$1);
initMetadataForCompanion(Companion_8);
initMetadataForClass(AbstractSet, 'AbstractSet', VOID, AbstractCollection, [AbstractCollection, KtSet]);
initMetadataForClass(AbstractMap$keys$1, VOID, VOID, AbstractSet);
initMetadataForClass(AbstractMap$values$1, VOID, VOID, AbstractCollection);
initMetadataForCompanion(Companion_9);
initMetadataForCompanion(Companion_10);
initMetadataForClass(ArrayDeque, 'ArrayDeque', ArrayDeque_init_$Create$, AbstractMutableList);
initMetadataForObject(EmptyIterator, 'EmptyIterator');
initMetadataForObject(EmptyList, 'EmptyList', VOID, VOID, [KtList]);
initMetadataForClass(ArrayAsCollection, 'ArrayAsCollection', VOID, VOID, [Collection]);
initMetadataForClass(IndexedValue, 'IndexedValue');
initMetadataForClass(IndexingIterable, 'IndexingIterable');
initMetadataForClass(IndexingIterator, 'IndexingIterator');
initMetadataForObject(EmptyMap, 'EmptyMap', VOID, VOID, [KtMap]);
initMetadataForClass(IntIterator, 'IntIterator');
initMetadataForClass(CharIterator, 'CharIterator');
initMetadataForClass(SequenceScope, 'SequenceScope', VOID, VOID, VOID, [1]);
initMetadataForClass(SequenceBuilderIterator, 'SequenceBuilderIterator', SequenceBuilderIterator, SequenceScope, [SequenceScope, Continuation], [1]);
initMetadataForClass(sequence$$inlined$Sequence$1);
initMetadataForInterface(DropTakeSequence, 'DropTakeSequence');
initMetadataForClass(TakeSequence$iterator$1);
initMetadataForClass(TakeSequence, 'TakeSequence', VOID, VOID, [DropTakeSequence]);
initMetadataForClass(TransformingSequence$iterator$1);
initMetadataForClass(TransformingSequence, 'TransformingSequence');
initMetadataForObject(EmptySequence, 'EmptySequence', VOID, VOID, [DropTakeSequence]);
initMetadataForClass(GeneratorSequence$iterator$1);
initMetadataForClass(GeneratorSequence, 'GeneratorSequence');
initMetadataForClass(FilteringSequence$iterator$1);
initMetadataForClass(FilteringSequence, 'FilteringSequence');
initMetadataForClass(asSequence$$inlined$Sequence$1_0);
initMetadataForObject(EmptySet, 'EmptySet', VOID, VOID, [KtSet]);
initMetadataForObject(Key, 'Key');
function plus(context) {
var tmp;
if (context === EmptyCoroutineContext_getInstance()) {
tmp = this;
} else {
tmp = context.zg(this, CoroutineContext$plus$lambda);
}
return tmp;
}
initMetadataForInterface(CoroutineContext, 'CoroutineContext');
function get(key) {
var tmp;
if (equals(this.i1(), key)) {
tmp = isInterface(this, Element) ? this : THROW_CCE();
} else {
tmp = null;
}
return tmp;
}
function fold(initial, operation) {
return operation(initial, this);
}
function minusKey(key) {
return equals(this.i1(), key) ? EmptyCoroutineContext_getInstance() : this;
}
initMetadataForInterface(Element, 'Element', VOID, VOID, [CoroutineContext]);
function releaseInterceptedContinuation(continuation) {
}
function get_0(key) {
if (key instanceof AbstractCoroutineContextKey) {
var tmp;
if (key.xg(this.i1())) {
var tmp_0 = key.wg(this);
tmp = (!(tmp_0 == null) ? isInterface(tmp_0, Element) : false) ? tmp_0 : null;
} else {
tmp = null;
}
return tmp;
}
var tmp_1;
if (Key_instance === key) {
tmp_1 = isInterface(this, Element) ? this : THROW_CCE();
} else {
tmp_1 = null;
}
return tmp_1;
}
function minusKey_0(key) {
if (key instanceof AbstractCoroutineContextKey) {
return key.xg(this.i1()) && !(key.wg(this) == null) ? EmptyCoroutineContext_getInstance() : this;
}
return Key_instance === key ? EmptyCoroutineContext_getInstance() : this;
}
initMetadataForInterface(ContinuationInterceptor, 'ContinuationInterceptor', VOID, VOID, [Element]);
initMetadataForObject(EmptyCoroutineContext, 'EmptyCoroutineContext', VOID, VOID, [CoroutineContext]);
initMetadataForClass(CombinedContext, 'CombinedContext', VOID, VOID, [CoroutineContext]);
initMetadataForClass(AbstractCoroutineContextKey, 'AbstractCoroutineContextKey');
initMetadataForClass(AbstractCoroutineContextElement, 'AbstractCoroutineContextElement', VOID, VOID, [Element]);
initMetadataForClass(CoroutineSingletons, 'CoroutineSingletons', VOID, Enum);
initMetadataForClass(EnumEntriesList, 'EnumEntriesList', VOID, AbstractList, [KtList, AbstractList]);
initMetadataForClass(Random, 'Random');
initMetadataForObject(Default, 'Default', VOID, Random);
initMetadataForCompanion(Companion_11);
initMetadataForClass(XorWowRandom, 'XorWowRandom', VOID, Random);
initMetadataForCompanion(Companion_12);
initMetadataForClass(IntProgression, 'IntProgression');
function contains(value) {
return compareTo(value, this.vc()) >= 0 && compareTo(value, this.wc()) <= 0;
}
initMetadataForInterface(ClosedRange, 'ClosedRange');
initMetadataForClass(IntRange, 'IntRange', VOID, IntProgression, [IntProgression, ClosedRange]);
initMetadataForCompanion(Companion_13);
initMetadataForClass(CharProgression, 'CharProgression');
initMetadataForClass(CharRange, 'CharRange', VOID, CharProgression, [CharProgression, ClosedRange]);
initMetadataForClass(IntProgressionIterator, 'IntProgressionIterator', VOID, IntIterator);
initMetadataForClass(CharProgressionIterator, 'CharProgressionIterator', VOID, CharIterator);
initMetadataForCompanion(Companion_14);
initMetadataForCompanion(Companion_15);
initMetadataForCompanion(Companion_16);
initMetadataForClass(KTypeProjection, 'KTypeProjection');
initMetadataForClass(KVariance, 'KVariance', VOID, Enum);
initMetadataForCompanion(Companion_17);
initMetadataForClass(Builder, 'Builder');
initMetadataForCompanion(Companion_18);
initMetadataForClass(BytesHexFormat, 'BytesHexFormat');
initMetadataForClass(NumberHexFormat, 'NumberHexFormat');
initMetadataForClass(Builder_0, 'Builder');
initMetadataForCompanion(Companion_19);
initMetadataForClass(HexFormat, 'HexFormat');
initMetadataForObject(State, 'State');
initMetadataForClass(LinesIterator, 'LinesIterator');
initMetadataForClass(DelimitedRangesSequence$iterator$1);
initMetadataForClass(DelimitedRangesSequence, 'DelimitedRangesSequence');
initMetadataForClass(lineSequence$$inlined$Sequence$1);
initMetadataForClass(LazyThreadSafetyMode, 'LazyThreadSafetyMode', VOID, Enum);
initMetadataForClass(UnsafeLazyImpl, 'UnsafeLazyImpl');
initMetadataForObject(UNINITIALIZED_VALUE, 'UNINITIALIZED_VALUE');
initMetadataForCompanion(Companion_20);
initMetadataForClass(Failure, 'Failure');
initMetadataForClass(Result, 'Result');
initMetadataForClass(NotImplementedError, 'NotImplementedError', NotImplementedError, Error_0);
initMetadataForClass(Pair, 'Pair');
initMetadataForCompanion(Companion_21);
initMetadataForClass(ULong, 'ULong', VOID, VOID, [Comparable]);
//endregion
function CharSequence() {
}
function Comparable() {
}
function Number_0() {
}
function CancellationException_init_$Init$($this) {
IllegalStateException_init_$Init$($this);
CancellationException.call($this);
return $this;
}
function CancellationException_init_$Create$() {
var tmp = CancellationException_init_$Init$(objectCreate(protoOf(CancellationException)));
captureStack(tmp, CancellationException_init_$Create$);
return tmp;
}
function CancellationException_init_$Init$_0(message, $this) {
IllegalStateException_init_$Init$_0(message, $this);
CancellationException.call($this);
return $this;
}
function CancellationException_init_$Create$_0(message) {
var tmp = CancellationException_init_$Init$_0(message, objectCreate(protoOf(CancellationException)));
captureStack(tmp, CancellationException_init_$Create$_0);
return tmp;
}
function CancellationException_init_$Init$_1(message, cause, $this) {
IllegalStateException_init_$Init$_1(message, cause, $this);
CancellationException.call($this);
return $this;
}
function CancellationException_init_$Create$_1(message, cause) {
var tmp = CancellationException_init_$Init$_1(message, cause, objectCreate(protoOf(CancellationException)));
captureStack(tmp, CancellationException_init_$Create$_1);
return tmp;
}
function CancellationException() {
captureStack(this, CancellationException);
}
function throwIrLinkageError(message) {
throw new IrLinkageError(message);
}
function IrLinkageError(message) {
Error_init_$Init$_0(message, this);
captureStack(this, IrLinkageError);
}
function throwUninitializedPropertyAccessException(name) {
throw UninitializedPropertyAccessException_init_$Create$_0('lateinit property ' + name + ' has not been initialized');
}
function KTypeImpl(classifier, arguments_0, isMarkedNullable) {
this.g_1 = classifier;
this.h_1 = arguments_0;
this.i_1 = isMarkedNullable;
}
protoOf(KTypeImpl).equals = function (other) {
var tmp;
var tmp_0;
var tmp_1;
if (other instanceof KTypeImpl) {
tmp_1 = equals(this.g_1, other.g_1);
} else {
tmp_1 = false;
}
if (tmp_1) {
tmp_0 = equals(this.h_1, other.h_1);
} else {
tmp_0 = false;
}
if (tmp_0) {
tmp = this.i_1 === other.i_1;
} else {
tmp = false;
}
return tmp;
};
protoOf(KTypeImpl).hashCode = function () {
// Inline function 'kotlin.hashCode' call
var tmp0_safe_receiver = this.g_1;
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode_0(tmp0_safe_receiver);
var tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
return imul(imul(tmp$ret$0, 31) + hashCode_0(this.h_1) | 0, 31) + getBooleanHashCode(this.i_1) | 0;
};
protoOf(KTypeImpl).toString = function () {
var tmp0_subject = this.g_1;
var tmp;
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, KClass) : false) {
var tmp1_elvis_lhs = this.g_1.k();
tmp = tmp1_elvis_lhs == null ? this.g_1.l() : tmp1_elvis_lhs;
} else {
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, KTypeParameter) : false) {
tmp = this.g_1.j();
} else {
tmp = null;
}
}
var tmp2_elvis_lhs = tmp;
var tmp_0;
if (tmp2_elvis_lhs == null) {
return '???';
} else {
tmp_0 = tmp2_elvis_lhs;
}
var classifierString = tmp_0;
// Inline function 'kotlin.text.buildString' call
// Inline function 'kotlin.apply' call
var this_0 = StringBuilder_init_$Create$_0();
this_0.n(classifierString);
// Inline function 'kotlin.collections.isNotEmpty' call
if (!this.h_1.o()) {
this_0.p(_Char___init__impl__6a9atx(60));
var iterator = this.h_1.q();
var index = 0;
while (iterator.r()) {
var index_0 = index;
index = index + 1 | 0;
var argument = iterator.s();
if (index_0 > 0) {
this_0.n(', ');
}
this_0.t(argument);
}
this_0.p(_Char___init__impl__6a9atx(62));
}
if (this.i_1) {
this_0.p(_Char___init__impl__6a9atx(63));
}
return this_0.toString();
};
function KTypeParameterBase() {
}
protoOf(KTypeParameterBase).toString = function () {
var tmp;
switch (this.v().x_1) {
case 0:
tmp = '';
break;
case 1:
tmp = 'in ';
break;
case 2:
tmp = 'out ';
break;
default:
noWhenBranchMatchedException();
break;
}
return tmp + this.j();
};
protoOf(KTypeParameterBase).equals = function (other) {
var tmp;
var tmp_0;
if (other instanceof KTypeParameterBase) {
tmp_0 = this.j() === other.j();
} else {
tmp_0 = false;
}
if (tmp_0) {
tmp = this.u() === other.u();
} else {
tmp = false;
}
return tmp;
};
protoOf(KTypeParameterBase).hashCode = function () {
return imul(getStringHashCode(this.u()), 31) + getStringHashCode(this.j()) | 0;
};
function indexOf(_this__u8e3s4, element) {
if (element == null) {
var inductionVariable = 0;
var last = _this__u8e3s4.length - 1 | 0;
if (inductionVariable <= last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (_this__u8e3s4[index] == null) {
return index;
}
}
while (inductionVariable <= last);
} else {
var inductionVariable_0 = 0;
var last_0 = _this__u8e3s4.length - 1 | 0;
if (inductionVariable_0 <= last_0)
do {
var index_0 = inductionVariable_0;
inductionVariable_0 = inductionVariable_0 + 1 | 0;
if (equals(element, _this__u8e3s4[index_0])) {
return index_0;
}
}
while (inductionVariable_0 <= last_0);
}
return -1;
}
function get_indices(_this__u8e3s4) {
return new IntRange(0, get_lastIndex(_this__u8e3s4));
}
function toList(_this__u8e3s4) {
switch (_this__u8e3s4.length) {
case 0:
return emptyList();
case 1:
return listOf(_this__u8e3s4[0]);
default:
return toMutableList(_this__u8e3s4);
}
}
function withIndex(_this__u8e3s4) {
return new IndexingIterable(withIndex$lambda(_this__u8e3s4));
}
function toSet(_this__u8e3s4) {
switch (_this__u8e3s4.length) {
case 0:
return emptySet();
case 1:
return setOf(_this__u8e3s4[0]);
default:
return toCollection(_this__u8e3s4, LinkedHashSet_init_$Create$_1(mapCapacity(_this__u8e3s4.length)));
}
}
function toCollection(_this__u8e3s4, destination) {
var inductionVariable = 0;
var last = _this__u8e3s4.length;
while (inductionVariable < last) {
var item = _this__u8e3s4[inductionVariable];
inductionVariable = inductionVariable + 1 | 0;
destination.y(item);
}
return destination;
}
function single(_this__u8e3s4) {
var tmp;
switch (_this__u8e3s4.length) {
case 0:
throw NoSuchElementException_init_$Create$_0('Array is empty.');
case 1:
tmp = _this__u8e3s4[0];
break;
default:
throw IllegalArgumentException_init_$Create$_0('Array has more than one element.');
}
return tmp;
}
function joinToString(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
return joinTo(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
}
function get_lastIndex(_this__u8e3s4) {
return _this__u8e3s4.length - 1 | 0;
}
function lastIndexOf(_this__u8e3s4, element) {
if (element == null) {
var inductionVariable = _this__u8e3s4.length - 1 | 0;
if (0 <= inductionVariable)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + -1 | 0;
if (_this__u8e3s4[index] == null) {
return index;
}
}
while (0 <= inductionVariable);
} else {
var inductionVariable_0 = _this__u8e3s4.length - 1 | 0;
if (0 <= inductionVariable_0)
do {
var index_0 = inductionVariable_0;
inductionVariable_0 = inductionVariable_0 + -1 | 0;
if (equals(element, _this__u8e3s4[index_0])) {
return index_0;
}
}
while (0 <= inductionVariable_0);
}
return -1;
}
function toMutableList(_this__u8e3s4) {
return ArrayList_init_$Create$_1(asCollection(_this__u8e3s4));
}
function joinTo(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
buffer.z(prefix);
var count = 0;
var inductionVariable = 0;
var last = _this__u8e3s4.length;
$l$loop: while (inductionVariable < last) {
var element = _this__u8e3s4[inductionVariable];
inductionVariable = inductionVariable + 1 | 0;
count = count + 1 | 0;
if (count > 1) {
buffer.z(separator);
}
if (limit < 0 || count <= limit) {
appendElement(buffer, element, transform);
} else
break $l$loop;
}
if (limit >= 0 && count > limit) {
buffer.z(truncated);
}
buffer.z(postfix);
return buffer;
}
function contains_0(_this__u8e3s4, element) {
return indexOf(_this__u8e3s4, element) >= 0;
}
function contains_1(_this__u8e3s4, element) {
return indexOf_0(_this__u8e3s4, element) >= 0;
}
function indexOf_0(_this__u8e3s4, element) {
var inductionVariable = 0;
var last = _this__u8e3s4.length - 1 | 0;
if (inductionVariable <= last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (element === _this__u8e3s4[index]) {
return index;
}
}
while (inductionVariable <= last);
return -1;
}
function sortedArray(_this__u8e3s4) {
// Inline function 'kotlin.collections.isEmpty' call
if (_this__u8e3s4.length === 0)
return _this__u8e3s4;
// Inline function 'kotlin.apply' call
var this_0 = copyOf_2(_this__u8e3s4);
sort(this_0);
return this_0;
}
function getOrNull(_this__u8e3s4, index) {
return (0 <= index ? index <= (_this__u8e3s4.length - 1 | 0) : false) ? _this__u8e3s4[index] : null;
}
function withIndex$lambda($this_withIndex) {
return function () {
return arrayIterator($this_withIndex);
};
}
function joinToString_0(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
return joinTo_0(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
}
function joinTo_0(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
buffer.z(prefix);
var count = 0;
var _iterator__ex2g4s = _this__u8e3s4.q();
$l$loop: while (_iterator__ex2g4s.r()) {
var element = _iterator__ex2g4s.s();
count = count + 1 | 0;
if (count > 1) {
buffer.z(separator);
}
if (limit < 0 || count <= limit) {
appendElement(buffer, element, transform);
} else
break $l$loop;
}
if (limit >= 0 && count > limit) {
buffer.z(truncated);
}
buffer.z(postfix);
return buffer;
}
function reversed(_this__u8e3s4) {
var tmp;
if (isInterface(_this__u8e3s4, Collection)) {
tmp = _this__u8e3s4.a1() <= 1;
} else {
tmp = false;
}
if (tmp)
return toList_0(_this__u8e3s4);
var list = toMutableList_1(_this__u8e3s4);
reverse(list);
return list;
}
function firstOrNull(_this__u8e3s4) {
return _this__u8e3s4.o() ? null : _this__u8e3s4.b1(0);
}
function toLongArray(_this__u8e3s4) {
var result = longArray(_this__u8e3s4.a1());
var index = 0;
var _iterator__ex2g4s = _this__u8e3s4.q();
while (_iterator__ex2g4s.r()) {
var element = _iterator__ex2g4s.s();
var _unary__edvuaz = index;
index = _unary__edvuaz + 1 | 0;
result[_unary__edvuaz] = element;
}
return result;
}
function toByteArray(_this__u8e3s4) {
var result = new Int8Array(_this__u8e3s4.a1());
var index = 0;
var _iterator__ex2g4s = _this__u8e3s4.q();
while (_iterator__ex2g4s.r()) {
var element = _iterator__ex2g4s.s();
var _unary__edvuaz = index;
index = _unary__edvuaz + 1 | 0;
result[_unary__edvuaz] = element;
}
return result;
}
function asSequence(_this__u8e3s4) {
// Inline function 'kotlin.sequences.Sequence' call
return new asSequence$$inlined$Sequence$1(_this__u8e3s4);
}
function first(_this__u8e3s4) {
if (_this__u8e3s4.o())
throw NoSuchElementException_init_$Create$_0('List is empty.');
return _this__u8e3s4.b1(0);
}
function toSet_0(_this__u8e3s4) {
if (isInterface(_this__u8e3s4, Collection)) {
var tmp;
switch (_this__u8e3s4.a1()) {
case 0:
tmp = emptySet();
break;
case 1:
var tmp_0;
if (isInterface(_this__u8e3s4, KtList)) {
tmp_0 = _this__u8e3s4.b1(0);
} else {
tmp_0 = _this__u8e3s4.q().s();
}
tmp = setOf(tmp_0);
break;
default:
tmp = toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$_1(mapCapacity(_this__u8e3s4.a1())));
break;
}
return tmp;
}
return optimizeReadOnlySet(toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$()));
}
function plus_0(_this__u8e3s4, elements) {
if (isInterface(elements, Collection)) {
var result = ArrayList_init_$Create$_0(_this__u8e3s4.a1() + elements.a1() | 0);
result.f1(_this__u8e3s4);
result.f1(elements);
return result;
} else {
var result_0 = ArrayList_init_$Create$_1(_this__u8e3s4);
addAll(result_0, elements);
return result_0;
}
}
function plus_1(_this__u8e3s4, elements) {
if (isInterface(_this__u8e3s4, Collection))
return plus_0(_this__u8e3s4, elements);
var result = ArrayList_init_$Create$();
addAll(result, _this__u8e3s4);
addAll(result, elements);
return result;
}
function plus_2(_this__u8e3s4, element) {
var result = ArrayList_init_$Create$_0(_this__u8e3s4.a1() + 1 | 0);
result.f1(_this__u8e3s4);
result.y(element);
return result;
}
function last(_this__u8e3s4) {
if (_this__u8e3s4.o())
throw NoSuchElementException_init_$Create$_0('List is empty.');
return _this__u8e3s4.b1(get_lastIndex_0(_this__u8e3s4));
}
function toMutableList_0(_this__u8e3s4) {
return ArrayList_init_$Create$_1(_this__u8e3s4);
}
function dropLast(_this__u8e3s4, n) {
// Inline function 'kotlin.require' call
if (!(n >= 0)) {
var message = 'Requested element count ' + n + ' is less than zero.';
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
}
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.a1() - n | 0, 0));
}
function toList_0(_this__u8e3s4) {
if (isInterface(_this__u8e3s4, Collection)) {
var tmp;
switch (_this__u8e3s4.a1()) {
case 0:
tmp = emptyList();
break;
case 1:
var tmp_0;
if (isInterface(_this__u8e3s4, KtList)) {
tmp_0 = _this__u8e3s4.b1(0);
} else {
tmp_0 = _this__u8e3s4.q().s();
}
tmp = listOf(tmp_0);
break;
default:
tmp = toMutableList_0(_this__u8e3s4);
break;
}
return tmp;
}
return optimizeReadOnlyList(toMutableList_1(_this__u8e3s4));
}
function toHashSet(_this__u8e3s4) {
return toCollection_0(_this__u8e3s4, HashSet_init_$Create$_0(mapCapacity(collectionSizeOrDefault(_this__u8e3s4, 12))));
}
function toBooleanArray(_this__u8e3s4) {
var result = booleanArray(_this__u8e3s4.a1());
var index = 0;
var _iterator__ex2g4s = _this__u8e3s4.q();
while (_iterator__ex2g4s.r()) {
var element = _iterator__ex2g4s.s();
var _unary__edvuaz = index;
index = _unary__edvuaz + 1 | 0;
result[_unary__edvuaz] = element;
}
return result;
}
function toMutableList_1(_this__u8e3s4) {
if (isInterface(_this__u8e3s4, Collection))
return toMutableList_0(_this__u8e3s4);
return toCollection_0(_this__u8e3s4, ArrayList_init_$Create$());
}
function sortedWith(_this__u8e3s4, comparator) {
if (isInterface(_this__u8e3s4, Collection)) {
if (_this__u8e3s4.a1() <= 1)
return toList_0(_this__u8e3s4);
// Inline function 'kotlin.collections.toTypedArray' call
var tmp = copyToArray(_this__u8e3s4);
// Inline function 'kotlin.apply' call
var this_0 = isArray(tmp) ? tmp : THROW_CCE();
sortWith(this_0, comparator);
return asList(this_0);
}
// Inline function 'kotlin.apply' call
var this_1 = toMutableList_1(_this__u8e3s4);
sortWith_0(this_1, comparator);
return this_1;
}
function toCollection_0(_this__u8e3s4, destination) {
var _iterator__ex2g4s = _this__u8e3s4.q();
while (_iterator__ex2g4s.r()) {
var item = _iterator__ex2g4s.s();
destination.y(item);
}
return destination;
}
function take(_this__u8e3s4, n) {
// Inline function 'kotlin.require' call
if (!(n >= 0)) {
var message = 'Requested element count ' + n + ' is less than zero.';
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
}
if (n === 0)
return emptyList();
if (isInterface(_this__u8e3s4, Collection)) {
if (n >= _this__u8e3s4.a1())
return toList_0(_this__u8e3s4);
if (n === 1)
return listOf(first_0(_this__u8e3s4));
}
var count = 0;
var list = ArrayList_init_$Create$_0(n);
var _iterator__ex2g4s = _this__u8e3s4.q();
$l$loop: while (_iterator__ex2g4s.r()) {
var item = _iterator__ex2g4s.s();
list.y(item);
count = count + 1 | 0;
if (count === n)
break $l$loop;
}
return optimizeReadOnlyList(list);
}
function first_0(_this__u8e3s4) {
if (isInterface(_this__u8e3s4, KtList))
return first(_this__u8e3s4);
else {
var iterator = _this__u8e3s4.q();
if (!iterator.r())
throw NoSuchElementException_init_$Create$_0('Collection is empty.');
return iterator.s();
}
}
function single_0(_this__u8e3s4) {
if (isInterface(_this__u8e3s4, KtList))
return single_1(_this__u8e3s4);
else {
var iterator = _this__u8e3s4.q();
if (!iterator.r())
throw NoSuchElementException_init_$Create$_0('Collection is empty.');
var single = iterator.s();
if (iterator.r())
throw IllegalArgumentException_init_$Create$_0('Collection has more than one element.');
return single;
}
}
function minOrNull(_this__u8e3s4) {
var iterator = _this__u8e3s4.q();
if (!iterator.r())
return null;
var min = iterator.s();
while (iterator.r()) {
var e = iterator.s();
if (compareTo(min, e) > 0)
min = e;
}
return min;
}
function single_1(_this__u8e3s4) {
var tmp;
switch (_this__u8e3s4.a1()) {
case 0:
throw NoSuchElementException_init_$Create$_0('List is empty.');
case 1:
tmp = _this__u8e3s4.b1(0);
break;
default:
throw IllegalArgumentException_init_$Create$_0('List has more than one element.');
}
return tmp;
}
function toMutableSet(_this__u8e3s4) {
var tmp;
if (isInterface(_this__u8e3s4, Collection)) {
tmp = LinkedHashSet_init_$Create$_0(_this__u8e3s4);
} else {
tmp = toCollection_0(_this__u8e3s4, LinkedHashSet_init_$Create$());
}
return tmp;
}
function asSequence$$inlined$Sequence$1($this_asSequence) {
this.g1_1 = $this_asSequence;
}
protoOf(asSequence$$inlined$Sequence$1).q = function () {
return this.g1_1.q();
};
function toList_1(_this__u8e3s4) {
if (_this__u8e3s4.a1() === 0)
return emptyList();
var iterator = _this__u8e3s4.h1().q();
if (!iterator.r())
return emptyList();
var first = iterator.s();
if (!iterator.r()) {
// Inline function 'kotlin.collections.toPair' call
var tmp$ret$0 = new Pair(first.i1(), first.j1());
return listOf(tmp$ret$0);
}
var result = ArrayList_init_$Create$_0(_this__u8e3s4.a1());
// Inline function 'kotlin.collections.toPair' call
var tmp$ret$1 = new Pair(first.i1(), first.j1());
result.y(tmp$ret$1);
do {
// Inline function 'kotlin.collections.toPair' call
var this_0 = iterator.s();
var tmp$ret$2 = new Pair(this_0.i1(), this_0.j1());
result.y(tmp$ret$2);
}
while (iterator.r());
return result;
}
function until(_this__u8e3s4, to) {
if (to <= -2147483648)
return Companion_getInstance_12().k1_1;
return numberRangeToNumber(_this__u8e3s4, to - 1 | 0);
}
function downTo(_this__u8e3s4, to) {
return Companion_instance_14.l1(_this__u8e3s4, to, -1);
}
function coerceIn(_this__u8e3s4, minimumValue, maximumValue) {
if (compare(minimumValue, maximumValue) > 0)
throw IllegalArgumentException_init_$Create$_0('Cannot coerce value to an empty range: maximum ' + maximumValue.toString() + ' is less than minimum ' + minimumValue.toString() + '.');
if (compare(_this__u8e3s4, minimumValue) < 0)
return minimumValue;
if (compare(_this__u8e3s4, maximumValue) > 0)
return maximumValue;
return _this__u8e3s4;
}
function coerceAtLeast(_this__u8e3s4, minimumValue) {
return _this__u8e3s4 < minimumValue ? minimumValue : _this__u8e3s4;
}
function coerceAtMost(_this__u8e3s4, maximumValue) {
return _this__u8e3s4 > maximumValue ? maximumValue : _this__u8e3s4;
}
function coerceIn_0(_this__u8e3s4, minimumValue, maximumValue) {
if (minimumValue > maximumValue)
throw IllegalArgumentException_init_$Create$_0('Cannot coerce value to an empty range: maximum ' + maximumValue + ' is less than minimum ' + minimumValue + '.');
if (_this__u8e3s4 < minimumValue)
return minimumValue;
if (_this__u8e3s4 > maximumValue)
return maximumValue;
return _this__u8e3s4;
}
function contains_2(_this__u8e3s4, value) {
// Inline function 'kotlin.let' call
var it = toIntExactOrNull(value);
return !(it == null) ? _this__u8e3s4.m1(it) : false;
}
function toIntExactOrNull(_this__u8e3s4) {
return (compare(new Long(-2147483648, -1), _this__u8e3s4) <= 0 ? compare(_this__u8e3s4, new Long(2147483647, 0)) <= 0 : false) ? convertToInt(_this__u8e3s4) : null;
}
function take_0(_this__u8e3s4, n) {
// Inline function 'kotlin.require' call
if (!(n >= 0)) {
var message = 'Requested element count ' + n + ' is less than zero.';
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
}
var tmp;
if (n === 0) {
tmp = emptySequence();
} else {
if (isInterface(_this__u8e3s4, DropTakeSequence)) {
tmp = _this__u8e3s4.n1(n);
} else {
tmp = new TakeSequence(_this__u8e3s4, n);
}
}
return tmp;
}
function toList_2(_this__u8e3s4) {
var it = _this__u8e3s4.q();
if (!it.r())
return emptyList();
var element = it.s();
if (!it.r())
return listOf(element);
var dst = ArrayList_init_$Create$();
dst.y(element);
while (it.r()) {
dst.y(it.s());
}
return dst;
}
function map(_this__u8e3s4, transform) {
return new TransformingSequence(_this__u8e3s4, transform);
}
function asIterable(_this__u8e3s4) {
// Inline function 'kotlin.collections.Iterable' call
return new asIterable$$inlined$Iterable$1(_this__u8e3s4);
}
function joinToString_1(_this__u8e3s4, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
return joinTo_1(_this__u8e3s4, StringBuilder_init_$Create$_0(), separator, prefix, postfix, limit, truncated, transform).toString();
}
function filter(_this__u8e3s4, predicate) {
return new FilteringSequence(_this__u8e3s4, true, predicate);
}
function joinTo_1(_this__u8e3s4, buffer, separator, prefix, postfix, limit, truncated, transform) {
separator = separator === VOID ? ', ' : separator;
prefix = prefix === VOID ? '' : prefix;
postfix = postfix === VOID ? '' : postfix;
limit = limit === VOID ? -1 : limit;
truncated = truncated === VOID ? '...' : truncated;
transform = transform === VOID ? null : transform;
buffer.z(prefix);
var count = 0;
var _iterator__ex2g4s = _this__u8e3s4.q();
$l$loop: while (_iterator__ex2g4s.r()) {
var element = _iterator__ex2g4s.s();
count = count + 1 | 0;
if (count > 1) {
buffer.z(separator);
}
if (limit < 0 || count <= limit) {
appendElement(buffer, element, transform);
} else
break $l$loop;
}
if (limit >= 0 && count > limit) {
buffer.z(truncated);
}
buffer.z(postfix);
return buffer;
}
function asIterable$$inlined$Iterable$1($this_asIterable) {
this.o1_1 = $this_asIterable;
}
protoOf(asIterable$$inlined$Iterable$1).q = function () {
return this.o1_1.q();
};
function plus_3(_this__u8e3s4, elements) {
var tmp0_safe_receiver = collectionSizeOrNull(elements);
var tmp;
if (tmp0_safe_receiver == null) {
tmp = null;
} else {
// Inline function 'kotlin.let' call
tmp = _this__u8e3s4.a1() + tmp0_safe_receiver | 0;
}
var tmp1_elvis_lhs = tmp;
var result = LinkedHashSet_init_$Create$_1(mapCapacity(tmp1_elvis_lhs == null ? imul(_this__u8e3s4.a1(), 2) : tmp1_elvis_lhs));
result.f1(_this__u8e3s4);
addAll(result, elements);
return result;
}
function first_1(_this__u8e3s4) {
// Inline function 'kotlin.text.isEmpty' call
if (charSequenceLength(_this__u8e3s4) === 0)
throw NoSuchElementException_init_$Create$_0('Char sequence is empty.');
return charSequenceGet(_this__u8e3s4, 0);
}
function last_0(_this__u8e3s4) {
// Inline function 'kotlin.text.isEmpty' call
if (charSequenceLength(_this__u8e3s4) === 0)
throw NoSuchElementException_init_$Create$_0('