@kform/core
Version:
JavaScript bindings for KForm.
2,117 lines • 430 kB
JavaScript
//region block: polyfills
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});
}
});
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
//region block: imports
var imul_0 = Math.imul;
var isView = ArrayBuffer.isView;
var clz32 = Math.clz32;
//endregion
//region block: pre-declaration
class CharSequence {}
class Comparable {}
class Number_0 {}
class Iterable {}
class asIterable$$inlined$Iterable$1 {
constructor($this_asIterable) {
this.y_1 = $this_asIterable;
}
z() {
return arrayIterator(this.y_1);
}
}
class Sequence {}
class asSequence$$inlined$Sequence$1 {
constructor($this_asSequence) {
this.r1_1 = $this_asSequence;
}
z() {
return this.r1_1.z();
}
}
class asIterable$$inlined$Iterable$1_0 {
constructor($this_asIterable) {
this.z1_1 = $this_asIterable;
}
z() {
return this.z1_1.z();
}
}
class Exception extends Error {
static pf() {
var $this = createExternalThis(this, Error, [null]);
setPropertiesToThrowableInstance($this);
init_kotlin_Exception($this);
return $this;
}
static s6(message) {
var $this = createExternalThis(this, Error, [message]);
setPropertiesToThrowableInstance($this, message);
init_kotlin_Exception($this);
return $this;
}
static qf(message, cause) {
var $this = createExternalThis(this, Error, [message, setupCauseParameter(cause)]);
setPropertiesToThrowableInstance($this, message, cause);
init_kotlin_Exception($this);
return $this;
}
}
class RuntimeException extends Exception {
static g2() {
var $this = this.pf();
init_kotlin_RuntimeException($this);
return $this;
}
static vb(message) {
var $this = this.s6(message);
init_kotlin_RuntimeException($this);
return $this;
}
static tf(message, cause) {
var $this = this.qf(message, cause);
init_kotlin_RuntimeException($this);
return $this;
}
}
class KotlinNothingValueException extends RuntimeException {
static d2() {
var $this = this.g2();
init_kotlin_KotlinNothingValueException($this);
return $this;
}
}
class Companion {
constructor() {
Companion_instance = this;
this.k2_1 = _Char___init__impl__6a9atx(0);
this.l2_1 = _Char___init__impl__6a9atx(65535);
this.m2_1 = _Char___init__impl__6a9atx(55296);
this.n2_1 = _Char___init__impl__6a9atx(56319);
this.o2_1 = _Char___init__impl__6a9atx(56320);
this.p2_1 = _Char___init__impl__6a9atx(57343);
this.q2_1 = _Char___init__impl__6a9atx(55296);
this.r2_1 = _Char___init__impl__6a9atx(57343);
this.s2_1 = 2;
this.t2_1 = 16;
}
}
class Char {
constructor(value) {
Companion_getInstance();
this.j2_1 = value;
}
u2(other) {
return Char__compareTo_impl_ypi4mb(this.j2_1, other);
}
d(other) {
return Char__compareTo_impl_ypi4mb_0(this, other);
}
toString() {
return toString(this.j2_1);
}
equals(other) {
return Char__equals_impl_x6719k(this.j2_1, other);
}
hashCode() {
return Char__hashCode_impl_otmys(this.j2_1);
}
}
class Collection {}
class KtList {}
class KtSet {}
class Entry {}
class Companion_0 {
fromJsMap(map) {
return createMapFrom(map);
}
}
class KtMap_0 {}
function asJsReadonlyMapView() {
return createJsReadonlyMapViewFrom(this);
}
class MutableIterable {}
class Companion_1 {}
class Enum {
constructor(name, ordinal) {
this.f3_1 = name;
this.g3_1 = ordinal;
}
h3() {
return this.f3_1;
}
i3() {
return this.g3_1;
}
j3(other) {
return compareTo_0(this.g3_1, other.g3_1);
}
d(other) {
return this.j3(other instanceof Enum ? other : THROW_CCE());
}
equals(other) {
return this === other;
}
hashCode() {
return identityHashCode(this);
}
toString() {
return this.f3_1;
}
}
class Companion_2 {
constructor() {
Companion_instance_2 = this;
this.k3_1 = new Long(0, -2147483648);
this.l3_1 = new Long(-1, 2147483647);
this.m3_1 = 8;
this.n3_1 = 64;
}
}
class Long extends Number_0 {
constructor(low, high) {
Companion_getInstance_2();
super();
this.u1_1 = low;
this.v1_1 = high;
}
w1(other) {
return compare(this, other);
}
d(other) {
return this.w1(other instanceof Long ? other : THROW_CCE());
}
o3(other) {
return add(this, other);
}
p3(other) {
return subtract(this, other);
}
q3(other) {
return multiply(this, other);
}
r3(other) {
return divide(this, other);
}
s3(other) {
return modulo(this, other);
}
t3() {
return this.o3(new Long(1, 0));
}
u3() {
return this.p3(new Long(1, 0));
}
v3() {
return this.w3().o3(new Long(1, 0));
}
x3(bitCount) {
return shiftLeft(this, bitCount);
}
y3(bitCount) {
return shiftRight(this, bitCount);
}
z3(bitCount) {
return shiftRightUnsigned(this, bitCount);
}
a4(other) {
return new Long(this.u1_1 & other.u1_1, this.v1_1 & other.v1_1);
}
b4(other) {
return new Long(this.u1_1 | other.u1_1, this.v1_1 | other.v1_1);
}
c4(other) {
return new Long(this.u1_1 ^ other.u1_1, this.v1_1 ^ other.v1_1);
}
w3() {
return new Long(~this.u1_1, ~this.v1_1);
}
d4() {
return toByte(this.u1_1);
}
e4() {
return toShort(this.u1_1);
}
y1() {
return this.u1_1;
}
f4() {
return this;
}
g4() {
return this.h4();
}
h4() {
return toNumber(this);
}
toString() {
return toStringImpl(this, 10);
}
equals(other) {
var tmp;
if (other instanceof Long) {
tmp = equalsLong(this, other);
} else {
tmp = false;
}
return tmp;
}
hashCode() {
return hashCode_0(this);
}
valueOf() {
return this.h4();
}
}
class FunctionAdapter {}
class arrayIterator$1 {
constructor($array) {
this.k4_1 = $array;
this.j4_1 = 0;
}
a1() {
return !(this.j4_1 === this.k4_1.length);
}
b1() {
var tmp;
if (!(this.j4_1 === this.k4_1.length)) {
var _unary__edvuaz = this.j4_1;
this.j4_1 = _unary__edvuaz + 1 | 0;
tmp = this.k4_1[_unary__edvuaz];
} else {
throw NoSuchElementException.n('' + this.j4_1);
}
return tmp;
}
}
class BooleanIterator {
constructor($box) {
boxApply(this, $box);
}
b1() {
return this.n4();
}
}
class booleanArrayIterator$1 extends BooleanIterator {
constructor($array, $box) {
if ($box === VOID)
$box = {};
$box.m4_1 = $array;
super($box);
this.l4_1 = 0;
}
a1() {
return !(this.l4_1 === this.m4_1.length);
}
n4() {
var tmp;
if (!(this.l4_1 === this.m4_1.length)) {
var _unary__edvuaz = this.l4_1;
this.l4_1 = _unary__edvuaz + 1 | 0;
tmp = this.m4_1[_unary__edvuaz];
} else {
throw NoSuchElementException.n('' + this.l4_1);
}
return tmp;
}
}
class CharIterator {
constructor($box) {
boxApply(this, $box);
}
r4() {
return this.q4();
}
b1() {
return new Char(this.r4());
}
}
class charArrayIterator$1 extends CharIterator {
constructor($array, $box) {
if ($box === VOID)
$box = {};
$box.p4_1 = $array;
super($box);
this.o4_1 = 0;
}
a1() {
return !(this.o4_1 === this.p4_1.length);
}
q4() {
var tmp;
if (!(this.o4_1 === this.p4_1.length)) {
var _unary__edvuaz = this.o4_1;
this.o4_1 = _unary__edvuaz + 1 | 0;
tmp = this.p4_1[_unary__edvuaz];
} else {
throw NoSuchElementException.n('' + this.o4_1);
}
return tmp;
}
}
class ByteIterator {
constructor($box) {
boxApply(this, $box);
}
b1() {
return this.u4();
}
}
class byteArrayIterator$1 extends ByteIterator {
constructor($array, $box) {
if ($box === VOID)
$box = {};
$box.t4_1 = $array;
super($box);
this.s4_1 = 0;
}
a1() {
return !(this.s4_1 === this.t4_1.length);
}
u4() {
var tmp;
if (!(this.s4_1 === this.t4_1.length)) {
var _unary__edvuaz = this.s4_1;
this.s4_1 = _unary__edvuaz + 1 | 0;
tmp = this.t4_1[_unary__edvuaz];
} else {
throw NoSuchElementException.n('' + this.s4_1);
}
return tmp;
}
}
class ShortIterator {
constructor($box) {
boxApply(this, $box);
}
b1() {
return this.x4();
}
}
class shortArrayIterator$1 extends ShortIterator {
constructor($array, $box) {
if ($box === VOID)
$box = {};
$box.w4_1 = $array;
super($box);
this.v4_1 = 0;
}
a1() {
return !(this.v4_1 === this.w4_1.length);
}
x4() {
var tmp;
if (!(this.v4_1 === this.w4_1.length)) {
var _unary__edvuaz = this.v4_1;
this.v4_1 = _unary__edvuaz + 1 | 0;
tmp = this.w4_1[_unary__edvuaz];
} else {
throw NoSuchElementException.n('' + this.v4_1);
}
return tmp;
}
}
class IntIterator {
constructor($box) {
boxApply(this, $box);
}
b1() {
return this.a5();
}
}
class intArrayIterator$1 extends IntIterator {
constructor($array, $box) {
if ($box === VOID)
$box = {};
$box.z4_1 = $array;
super($box);
this.y4_1 = 0;
}
a1() {
return !(this.y4_1 === this.z4_1.length);
}
a5() {
var tmp;
if (!(this.y4_1 === this.z4_1.length)) {
var _unary__edvuaz = this.y4_1;
this.y4_1 = _unary__edvuaz + 1 | 0;
tmp = this.z4_1[_unary__edvuaz];
} else {
throw NoSuchElementException.n('' + this.y4_1);
}
return tmp;
}
}
class FloatIterator {
constructor($box) {
boxApply(this, $box);
}
b1() {
return this.d5();
}
}
class floatArrayIterator$1 extends FloatIterator {
constructor($array, $box) {
if ($box === VOID)
$box = {};
$box.c5_1 = $array;
super($box);
this.b5_1 = 0;
}
a1() {
return !(this.b5_1 === this.c5_1.length);
}
d5() {
var tmp;
if (!(this.b5_1 === this.c5_1.length)) {
var _unary__edvuaz = this.b5_1;
this.b5_1 = _unary__edvuaz + 1 | 0;
tmp = this.c5_1[_unary__edvuaz];
} else {
throw NoSuchElementException.n('' + this.b5_1);
}
return tmp;
}
}
class LongIterator {
constructor($box) {
boxApply(this, $box);
}
b1() {
return this.g5();
}
}
class longArrayIterator$1 extends LongIterator {
constructor($array, $box) {
if ($box === VOID)
$box = {};
$box.f5_1 = $array;
super($box);
this.e5_1 = 0;
}
a1() {
return !(this.e5_1 === this.f5_1.length);
}
g5() {
var tmp;
if (!(this.e5_1 === this.f5_1.length)) {
var _unary__edvuaz = this.e5_1;
this.e5_1 = _unary__edvuaz + 1 | 0;
tmp = this.f5_1[_unary__edvuaz];
} else {
throw NoSuchElementException.n('' + this.e5_1);
}
return tmp;
}
}
class DoubleIterator {
constructor($box) {
boxApply(this, $box);
}
b1() {
return this.j5();
}
}
class doubleArrayIterator$1 extends DoubleIterator {
constructor($array, $box) {
if ($box === VOID)
$box = {};
$box.i5_1 = $array;
super($box);
this.h5_1 = 0;
}
a1() {
return !(this.h5_1 === this.i5_1.length);
}
j5() {
var tmp;
if (!(this.h5_1 === this.i5_1.length)) {
var _unary__edvuaz = this.h5_1;
this.h5_1 = _unary__edvuaz + 1 | 0;
tmp = this.i5_1[_unary__edvuaz];
} else {
throw NoSuchElementException.n('' + this.h5_1);
}
return tmp;
}
}
class JsMapView extends Map {}
class ByteCompanionObject {
constructor() {
this.MIN_VALUE = -128;
this.MAX_VALUE = 127;
this.SIZE_BYTES = 1;
this.SIZE_BITS = 8;
}
t6() {
return this.MIN_VALUE;
}
u6() {
return this.MAX_VALUE;
}
v6() {
return this.SIZE_BYTES;
}
w6() {
return this.SIZE_BITS;
}
}
class ShortCompanionObject {
constructor() {
this.MIN_VALUE = -32768;
this.MAX_VALUE = 32767;
this.SIZE_BYTES = 2;
this.SIZE_BITS = 16;
}
t6() {
return this.MIN_VALUE;
}
u6() {
return this.MAX_VALUE;
}
v6() {
return this.SIZE_BYTES;
}
w6() {
return this.SIZE_BITS;
}
}
class IntCompanionObject {
constructor() {
this.MIN_VALUE = -2147483648;
this.MAX_VALUE = 2147483647;
this.SIZE_BYTES = 4;
this.SIZE_BITS = 32;
}
t6() {
return this.MIN_VALUE;
}
u6() {
return this.MAX_VALUE;
}
v6() {
return this.SIZE_BYTES;
}
w6() {
return this.SIZE_BITS;
}
}
class FloatCompanionObject {
constructor() {
this.MIN_VALUE = 1.4E-45;
this.MAX_VALUE = 3.4028235E38;
this.POSITIVE_INFINITY = Infinity;
this.NEGATIVE_INFINITY = -Infinity;
this.NaN = NaN;
this.SIZE_BYTES = 4;
this.SIZE_BITS = 32;
}
t6() {
return this.MIN_VALUE;
}
u6() {
return this.MAX_VALUE;
}
x6() {
return this.POSITIVE_INFINITY;
}
y6() {
return this.NEGATIVE_INFINITY;
}
z6() {
return this.NaN;
}
v6() {
return this.SIZE_BYTES;
}
w6() {
return this.SIZE_BITS;
}
}
class DoubleCompanionObject {
constructor() {
this.MIN_VALUE = 4.9E-324;
this.MAX_VALUE = 1.7976931348623157E308;
this.POSITIVE_INFINITY = Infinity;
this.NEGATIVE_INFINITY = -Infinity;
this.NaN = NaN;
this.SIZE_BYTES = 8;
this.SIZE_BITS = 64;
}
t6() {
return this.MIN_VALUE;
}
u6() {
return this.MAX_VALUE;
}
x6() {
return this.POSITIVE_INFINITY;
}
y6() {
return this.NEGATIVE_INFINITY;
}
z6() {
return this.NaN;
}
v6() {
return this.SIZE_BYTES;
}
w6() {
return this.SIZE_BITS;
}
}
class StringCompanionObject {}
class BooleanCompanionObject {}
class Digit {
constructor() {
Digit_instance = this;
var tmp = this;
// Inline function 'kotlin.intArrayOf' call
tmp.d7_1 = new Int32Array([48, 1632, 1776, 1984, 2406, 2534, 2662, 2790, 2918, 3046, 3174, 3302, 3430, 3558, 3664, 3792, 3872, 4160, 4240, 6112, 6160, 6470, 6608, 6784, 6800, 6992, 7088, 7232, 7248, 42528, 43216, 43264, 43472, 43504, 43600, 44016, 65296]);
}
}
class Comparator {}
class Unit {
toString() {
return 'kotlin.Unit';
}
}
class AbstractCollection {
static g7($box) {
return createThis(this, $box);
}
v2(element) {
var tmp$ret$0;
$l$block_0: {
// Inline function 'kotlin.collections.any' call
var tmp;
if (isInterface(this, Collection)) {
tmp = this.g1();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = false;
break $l$block_0;
}
var _iterator__ex2g4s = this.z();
while (_iterator__ex2g4s.a1()) {
var element_0 = _iterator__ex2g4s.b1();
if (equals(element_0, element)) {
tmp$ret$0 = true;
break $l$block_0;
}
}
tmp$ret$0 = false;
}
return tmp$ret$0;
}
w2(elements) {
var tmp$ret$0;
$l$block_0: {
// Inline function 'kotlin.collections.all' call
var tmp;
if (isInterface(elements, Collection)) {
tmp = elements.g1();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = true;
break $l$block_0;
}
var _iterator__ex2g4s = elements.z();
while (_iterator__ex2g4s.a1()) {
var element = _iterator__ex2g4s.b1();
if (!this.v2(element)) {
tmp$ret$0 = false;
break $l$block_0;
}
}
tmp$ret$0 = true;
}
return tmp$ret$0;
}
g1() {
return this.c1() === 0;
}
toString() {
return joinToString_0(this, ', ', '[', ']', VOID, VOID, AbstractCollection$toString$lambda(this));
}
toArray() {
return collectionToArray(this);
}
}
class AbstractMutableCollection extends AbstractCollection {
static f7() {
return this.g7();
}
h7(element) {
this.i7();
var iterator = this.z();
while (iterator.a1()) {
if (equals(iterator.b1(), element)) {
iterator.j7();
return true;
}
}
return false;
}
d1(elements) {
this.i7();
var modified = false;
var _iterator__ex2g4s = elements.z();
while (_iterator__ex2g4s.a1()) {
var element = _iterator__ex2g4s.b1();
if (this.s(element))
modified = true;
}
return modified;
}
k7(elements) {
this.i7();
var tmp = isInterface(this, MutableIterable) ? this : THROW_CCE();
return removeAll_0(tmp, AbstractMutableCollection$retainAll$lambda(elements));
}
l7() {
this.i7();
var iterator = this.z();
while (iterator.a1()) {
iterator.b1();
iterator.j7();
}
}
toJSON() {
return this.toArray();
}
i7() {
}
}
class IteratorImpl {
constructor($outer, $box) {
boxApply(this, $box);
this.o7_1 = $outer;
this.m7_1 = 0;
this.n7_1 = -1;
}
a1() {
return this.m7_1 < this.o7_1.c1();
}
b1() {
if (!this.a1())
throw NoSuchElementException.p7();
var tmp = this;
var _unary__edvuaz = this.m7_1;
this.m7_1 = _unary__edvuaz + 1 | 0;
tmp.n7_1 = _unary__edvuaz;
return this.o7_1.h1(this.n7_1);
}
j7() {
// Inline function 'kotlin.check' call
if (!!(this.n7_1 === -1)) {
var message = 'Call next() or previous() before removing element from the iterator.';
throw IllegalStateException.a6(toString_1(message));
}
this.o7_1.r7(this.n7_1);
this.m7_1 = this.n7_1;
this.n7_1 = -1;
}
}
class ListIteratorImpl extends IteratorImpl {
constructor($outer, index, $box) {
if ($box === VOID)
$box = {};
$box.v7_1 = $outer;
super($outer, $box);
Companion_instance_6.w7(index, this.v7_1.c1());
this.m7_1 = index;
}
x7() {
return this.m7_1 > 0;
}
y7() {
if (!this.x7())
throw NoSuchElementException.p7();
var tmp = this;
this.m7_1 = this.m7_1 - 1 | 0;
tmp.n7_1 = this.m7_1;
return this.v7_1.h1(this.n7_1);
}
}
class AbstractMutableList extends AbstractMutableCollection {
static e8() {
var $this = this.f7();
$this.q7_1 = 0;
return $this;
}
s(element) {
this.i7();
this.f8(this.c1(), element);
return true;
}
l7() {
this.i7();
this.h8(0, this.c1());
}
k7(elements) {
this.i7();
return removeAll(this, AbstractMutableList$retainAll$lambda(elements));
}
z() {
return new IteratorImpl(this);
}
v2(element) {
return this.i8(element) >= 0;
}
i8(element) {
var tmp$ret$1;
$l$block: {
// Inline function 'kotlin.collections.indexOfFirst' call
var index = 0;
var _iterator__ex2g4s = this.z();
while (_iterator__ex2g4s.a1()) {
var item = _iterator__ex2g4s.b1();
if (equals(item, element)) {
tmp$ret$1 = index;
break $l$block;
}
index = index + 1 | 0;
}
tmp$ret$1 = -1;
}
return tmp$ret$1;
}
j1(index) {
return new ListIteratorImpl(this, index);
}
q1(fromIndex, toIndex) {
return SubList.d8(this, fromIndex, toIndex);
}
h8(fromIndex, toIndex) {
var iterator = this.j1(fromIndex);
// Inline function 'kotlin.repeat' call
var times = toIndex - fromIndex | 0;
var inductionVariable = 0;
if (inductionVariable < times)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
iterator.b1();
iterator.j7();
}
while (inductionVariable < times);
}
equals(other) {
if (other === this)
return true;
if (!(!(other == null) ? isInterface(other, KtList) : false))
return false;
return Companion_instance_6.j8(this, other);
}
hashCode() {
return Companion_instance_6.k8(this);
}
}
class RandomAccess {}
class SubList extends AbstractMutableList {
static d8(list, fromIndex, toIndex) {
var $this = this.e8();
$this.a8_1 = list;
$this.b8_1 = fromIndex;
$this.c8_1 = 0;
Companion_instance_6.b7($this.b8_1, toIndex, $this.a8_1.c1());
$this.c8_1 = toIndex - $this.b8_1 | 0;
return $this;
}
f8(index, element) {
Companion_instance_6.w7(index, this.c8_1);
this.a8_1.f8(this.b8_1 + index | 0, element);
this.c8_1 = this.c8_1 + 1 | 0;
}
h1(index) {
Companion_instance_6.g8(index, this.c8_1);
return this.a8_1.h1(this.b8_1 + index | 0);
}
r7(index) {
Companion_instance_6.g8(index, this.c8_1);
var result = this.a8_1.r7(this.b8_1 + index | 0);
this.c8_1 = this.c8_1 - 1 | 0;
return result;
}
e7(index, element) {
Companion_instance_6.g8(index, this.c8_1);
return this.a8_1.e7(this.b8_1 + index | 0, element);
}
h8(fromIndex, toIndex) {
this.a8_1.h8(this.b8_1 + fromIndex | 0, this.b8_1 + toIndex | 0);
this.c8_1 = this.c8_1 - (toIndex - fromIndex | 0) | 0;
}
c1() {
return this.c8_1;
}
i7() {
return this.a8_1.i7();
}
}
class AbstractMap {
static s8() {
var $this = createThis(this);
$this.q8_1 = null;
$this.r8_1 = null;
return $this;
}
z2(key) {
return !(implFindEntry(this, key) == null);
}
a3(value) {
var tmp0 = this.e3();
var tmp$ret$0;
$l$block_0: {
// Inline function 'kotlin.collections.any' call
var tmp;
if (isInterface(tmp0, Collection)) {
tmp = tmp0.g1();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = false;
break $l$block_0;
}
var _iterator__ex2g4s = tmp0.z();
while (_iterator__ex2g4s.a1()) {
var element = _iterator__ex2g4s.b1();
if (equals(element.y2(), value)) {
tmp$ret$0 = true;
break $l$block_0;
}
}
tmp$ret$0 = false;
}
return tmp$ret$0;
}
b9(entry) {
if (!(!(entry == null) ? isInterface(entry, Entry) : false))
return false;
var key = entry.x2();
var value = entry.y2();
// Inline function 'kotlin.collections.get' call
var ourValue = (isInterface(this, KtMap_0) ? this : THROW_CCE()).b3(key);
if (!equals(value, ourValue)) {
return false;
}
var tmp;
if (ourValue == null) {
// Inline function 'kotlin.collections.containsKey' call
tmp = !(isInterface(this, KtMap_0) ? this : THROW_CCE()).z2(key);
} else {
tmp = false;
}
if (tmp) {
return false;
}
return true;
}
equals(other) {
if (other === this)
return true;
if (!(!(other == null) ? isInterface(other, KtMap_0) : false))
return false;
if (!(this.c1() === other.c1()))
return false;
var tmp0 = other.e3();
var tmp$ret$0;
$l$block_0: {
// Inline function 'kotlin.collections.all' call
var tmp;
if (isInterface(tmp0, Collection)) {
tmp = tmp0.g1();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = true;
break $l$block_0;
}
var _iterator__ex2g4s = tmp0.z();
while (_iterator__ex2g4s.a1()) {
var element = _iterator__ex2g4s.b1();
if (!this.b9(element)) {
tmp$ret$0 = false;
break $l$block_0;
}
}
tmp$ret$0 = true;
}
return tmp$ret$0;
}
b3(key) {
var tmp0_safe_receiver = implFindEntry(this, key);
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y2();
}
hashCode() {
return hashCode(this.e3());
}
g1() {
return this.c1() === 0;
}
c1() {
return this.e3().c1();
}
c3() {
if (this.q8_1 == null) {
var tmp = this;
tmp.q8_1 = AbstractMap$keys$1.kl(this);
}
return ensureNotNull(this.q8_1);
}
toString() {
var tmp = this.e3();
return joinToString_0(tmp, ', ', '{', '}', VOID, VOID, AbstractMap$toString$lambda(this));
}
d3() {
if (this.r8_1 == null) {
var tmp = this;
tmp.r8_1 = AbstractMap$values$1.nl(this);
}
return ensureNotNull(this.r8_1);
}
}
class AbstractMutableMap extends AbstractMap {
static p8() {
var $this = this.s8();
$this.n8_1 = null;
$this.o8_1 = null;
return $this;
}
t8() {
return HashMapKeysDefault.v8(this);
}
w8() {
return HashMapValuesDefault.y8(this);
}
c3() {
var tmp0_elvis_lhs = this.n8_1;
var tmp;
if (tmp0_elvis_lhs == null) {
// Inline function 'kotlin.also' call
var this_0 = this.t8();
this.n8_1 = this_0;
tmp = this_0;
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
d3() {
var tmp0_elvis_lhs = this.o8_1;
var tmp;
if (tmp0_elvis_lhs == null) {
// Inline function 'kotlin.also' call
var this_0 = this.w8();
this.o8_1 = this_0;
tmp = this_0;
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
l7() {
this.e3().l7();
}
z8(from) {
this.i7();
// Inline function 'kotlin.collections.iterator' call
var _iterator__ex2g4s = from.e3().z();
while (_iterator__ex2g4s.a1()) {
var _destruct__k2r9zo = _iterator__ex2g4s.b1();
// Inline function 'kotlin.collections.component1' call
var key = _destruct__k2r9zo.x2();
// Inline function 'kotlin.collections.component2' call
var value = _destruct__k2r9zo.y2();
this.w5(key, value);
}
}
a9(key) {
this.i7();
var iter = this.e3().z();
while (iter.a1()) {
var entry = iter.b1();
var k = entry.x2();
if (equals(key, k)) {
var value = entry.y2();
iter.j7();
return value;
}
}
return null;
}
i7() {
}
}
class AbstractMutableSet extends AbstractMutableCollection {
static c9() {
return this.f7();
}
equals(other) {
if (other === this)
return true;
if (!(!(other == null) ? isInterface(other, KtSet) : false))
return false;
return Companion_instance_8.d9(this, other);
}
hashCode() {
return Companion_instance_8.e9(this);
}
}
class Companion_3 {
constructor() {
Companion_instance_3 = this;
var tmp = this;
// Inline function 'kotlin.also' call
var this_0 = ArrayList.w(0);
this_0.q_1 = true;
tmp.f9_1 = this_0;
}
}
class ArrayList extends AbstractMutableList {
static c7(array) {
Companion_getInstance_3();
var $this = this.e8();
$this.p_1 = array;
$this.q_1 = false;
return $this;
}
static x() {
Companion_getInstance_3();
// Inline function 'kotlin.emptyArray' call
var tmp$ret$0 = [];
return this.c7(tmp$ret$0);
}
static w(initialCapacity) {
Companion_getInstance_3();
// Inline function 'kotlin.emptyArray' call
var tmp$ret$0 = [];
var $this = this.c7(tmp$ret$0);
// Inline function 'kotlin.require' call
if (!(initialCapacity >= 0)) {
var message = 'Negative initial capacity: ' + initialCapacity;
throw IllegalArgumentException.h(toString_1(message));
}
return $this;
}
static r(elements) {
Companion_getInstance_3();
// Inline function 'kotlin.collections.toTypedArray' call
var tmp$ret$0 = copyToArray(elements);
return this.c7(tmp$ret$0);
}
v5() {
this.i7();
this.q_1 = true;
return this.c1() > 0 ? this : Companion_getInstance_3().f9_1;
}
c1() {
return this.p_1.length;
}
h1(index) {
var tmp = this.p_1[rangeCheck(this, index)];
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
}
e7(index, element) {
this.i7();
rangeCheck(this, index);
// Inline function 'kotlin.apply' call
var this_0 = this.p_1[index];
this.p_1[index] = element;
var tmp = this_0;
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
}
s(element) {
this.i7();
// Inline function 'kotlin.js.asDynamic' call
this.p_1.push(element);
this.q7_1 = this.q7_1 + 1 | 0;
return true;
}
f8(index, element) {
this.i7();
// Inline function 'kotlin.js.asDynamic' call
this.p_1.splice(insertionRangeCheck(this, index), 0, element);
this.q7_1 = this.q7_1 + 1 | 0;
}
d1(elements) {
this.i7();
if (elements.g1())
return false;
var offset = increaseLength(this, elements.c1());
// Inline function 'kotlin.collections.forEachIndexed' call
var index = 0;
var _iterator__ex2g4s = elements.z();
while (_iterator__ex2g4s.a1()) {
var item = _iterator__ex2g4s.b1();
var _unary__edvuaz = index;
index = _unary__edvuaz + 1 | 0;
var index_0 = checkIndexOverflow(_unary__edvuaz);
this.p_1[offset + index_0 | 0] = item;
}
this.q7_1 = this.q7_1 + 1 | 0;
return true;
}
g9(index, elements) {
this.i7();
insertionRangeCheck(this, index);
if (index === this.c1())
return this.d1(elements);
if (elements.g1())
return false;
// Inline function 'kotlin.js.asDynamic' call
// Inline function 'kotlin.js.unsafeCast' call
var tail = this.p_1.splice(index);
this.d1(elements);
var offset = increaseLength(this, tail.length);
// Inline function 'kotlin.repeat' call
var times = tail.length;
var inductionVariable = 0;
if (inductionVariable < times)
do {
var index_0 = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
this.p_1[offset + index_0 | 0] = tail[index_0];
}
while (inductionVariable < times);
this.q7_1 = this.q7_1 + 1 | 0;
return true;
}
r7(index) {
this.i7();
rangeCheck(this, index);
this.q7_1 = this.q7_1 + 1 | 0;
var tmp;
if (index === get_lastIndex_0(this)) {
// Inline function 'kotlin.js.asDynamic' call
tmp = this.p_1.pop();
} else {
// Inline function 'kotlin.js.asDynamic' call
tmp = this.p_1.splice(index, 1)[0];
}
return tmp;
}
h7(element) {
this.i7();
var inductionVariable = 0;
var last = this.p_1.length - 1 | 0;
if (inductionVariable <= last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (equals(this.p_1[index], element)) {
// Inline function 'kotlin.js.asDynamic' call
this.p_1.splice(index, 1);
this.q7_1 = this.q7_1 + 1 | 0;
return true;
}
}
while (inductionVariable <= last);
return false;
}
h8(fromIndex, toIndex) {
this.i7();
this.q7_1 = this.q7_1 + 1 | 0;
// Inline function 'kotlin.js.asDynamic' call
this.p_1.splice(fromIndex, toIndex - fromIndex | 0);
}
l7() {
this.i7();
var tmp = this;
// Inline function 'kotlin.emptyArray' call
tmp.p_1 = [];
this.q7_1 = this.q7_1 + 1 | 0;
}
i8(element) {
return indexOf(this.p_1, element);
}
toString() {
return arrayToString(this.p_1);
}
h9() {
return [].slice.call(this.p_1);
}
toArray() {
return this.h9();
}
i7() {
if (this.q_1)
throw UnsupportedOperationException.n5();
}
}
class HashMap extends AbstractMutableMap {
static o9(internalMap) {
var $this = this.p8();
init_kotlin_collections_HashMap($this);
$this.m9_1 = internalMap;
return $this;
}
static p9() {
return this.o9(InternalHashMap.aa());
}
static ba(initialCapacity, loadFactor) {
return this.o9(InternalHashMap.ca(initialCapacity, loadFactor));
}
static da(initialCapacity) {
return this.ba(initialCapacity, 1.0);
}
static ea(original) {
return this.o9(InternalHashMap.fa(original));
}
l7() {
this.m9_1.l7();
}
z2(key) {
return this.m9_1.ga(key);
}
a3(value) {
return this.m9_1.a3(value);
}
t8() {
return HashMapKeys.ia(this.m9_1);
}
w8() {
return HashMapValues.ka(this.m9_1);
}
e3() {
var tmp0_elvis_lhs = this.n9_1;
var tmp;
if (tmp0_elvis_lhs == null) {
// Inline function 'kotlin.also' call
var this_0 = HashMapEntrySet.ma(this.m9_1);
this.n9_1 = this_0;
tmp = this_0;
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
b3(key) {
return this.m9_1.b3(key);
}
w5(key, value) {
return this.m9_1.w5(key, value);
}
a9(key) {
return this.m9_1.a9(key);
}
c1() {
return this.m9_1.c1();
}
z8(from) {
return this.m9_1.z8(from);
}
}
class HashMapKeys extends AbstractMutableSet {
static ia(backing) {
var $this = this.c9();
$this.ha_1 = backing;
return $this;
}
c1() {
return this.ha_1.c1();
}
g1() {
return this.ha_1.c1() === 0;
}
v2(element) {
return this.ha_1.ga(element);
}
l7() {
return this.ha_1.l7();
}
s(element) {
throw UnsupportedOperationException.n5();
}
d1(elements) {
throw UnsupportedOperationException.n5();
}
h7(element) {
return this.ha_1.na(element);
}
z() {
return this.ha_1.oa();
}
i7() {
return this.ha_1.pa();
}
}
class HashMapValues extends AbstractMutableCollection {
static ka(backing) {
var $this = this.f7();
$this.ja_1 = backing;
return $this;
}
c1() {
return this.ja_1.c1();
}
g1() {
return this.ja_1.c1() === 0;
}
qa(element) {
return this.ja_1.a3(element);
}
v2(element) {
if (!(element == null ? true : !(element == null)))
return false;
return this.qa((element == null ? true : !(element == null)) ? element : THROW_CCE());
}
ra(element) {
throw UnsupportedOperationException.n5();
}
s(element) {
return this.ra((element == null ? true : !(element == null)) ? element : THROW_CCE());
}
sa(elements) {
throw UnsupportedOperationException.n5();
}
d1(elements) {
return this.sa(elements);
}
z() {
return this.ja_1.ta();
}
ua(element) {
return this.ja_1.va(element);
}
h7(element) {
if (!(element == null ? true : !(element == null)))
return false;
return this.ua((element == null ? true : !(element == null)) ? element : THROW_CCE());
}
i7() {
return this.ja_1.pa();
}
}
class HashMapEntrySetBase extends AbstractMutableSet {
static xa(backing) {
var $this = this.c9();
$this.wa_1 = backing;
return $this;
}
c1() {
return this.wa_1.c1();
}
g1() {
return this.wa_1.c1() === 0;
}
za(element) {
return this.wa_1.cb(element);
}
v2(element) {
if (!(!(element == null) ? isInterface(element, Entry) : false))
return false;
return this.za((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
}
l7() {
return this.wa_1.l7();
}
ab(element) {
throw UnsupportedOperationException.n5();
}
s(element) {
return this.ab((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
}
d1(elements) {
throw UnsupportedOperationException.n5();
}
bb(element) {
return this.wa_1.db(element);
}
h7(element) {
if (!(!(element == null) ? isInterface(element, Entry) : false))
return false;
return this.bb((!(element == null) ? isInterface(element, Entry) : false) ? element : THROW_CCE());
}
w2(elements) {
return this.wa_1.eb(elements);
}
i7() {
return this.wa_1.pa();
}
}
class HashMapEntrySet extends HashMapEntrySetBase {
static ma(backing) {
return this.xa(backing);
}
z() {
return this.wa_1.ya();
}
}
class HashMapKeysDefault$iterator$1 {
constructor($entryIterator) {
this.fb_1 = $entryIterator;
}
a1() {
return this.fb_1.a1();
}
b1() {
return this.fb_1.b1().x2();
}
j7() {
return this.fb_1.j7();
}
}
class HashMapKeysDefault extends AbstractMutableSet {
static v8(backingMap) {
var $this = this.c9();
$this.u8_1 = backingMap;
return $this;
}
gb(element) {
throw UnsupportedOperationException.hb('Add is not supported on keys');
}
s(element) {
return this.gb((element == null ? true : !(element == null)) ? element : THROW_CCE());
}
l7() {
return this.u8_1.l7();
}
ga(element) {
return this.u8_1.z2(element);
}
v2(element) {
if (!(element == null ? true : !(element == null)))
return false;
return this.ga((element == null ? true : !(element == null)) ? element : THROW_CCE());
}
z() {
var entryIterator = this.u8_1.e3().z();
return new HashMapKeysDefault$iterator$1(entryIterator);
}
a9(element) {
this.i7();
if (this.u8_1.z2(element)) {
this.u8_1.a9(element);
return true;
}
return false;
}
h7(element) {
if (!(element == null ? true : !(element == null)))
return false;
return this.a9((element == null ? true : !(element == null)) ? element : THROW_CCE());
}
c1() {
return this.u8_1.c1();
}
i7() {
return this.u8_1.i7();
}
}
class HashMapValuesDefault$iterator$1 {
constructor($entryIterator) {
this.ib_1 = $entryIterator;
}
a1() {
return this.ib_1.a1();
}
b1() {
return this.ib_1.b1().y2();
}
j7() {
return this.ib_1.j7();
}
}
class HashMapValuesDefault extends AbstractMutableCollection {
static y8(backingMap) {
var $this = this.f7();
$this.x8_1 = backingMap;
return $this;
}
ra(element) {
throw UnsupportedOperationException.hb('Add is not supported on values');
}
s(element) {
return this.ra((element == null ? true : !(element == null)) ? element : THROW_CCE());
}
qa(element) {
return this.x8_1.a3(element);
}
v2(element) {
if (!(element == null ? true : !(element == null)))
return false;
return this.qa((element == null ? true : !(element == null)) ? element : THROW_CCE());
}
z() {
var entryIterator = this.x8_1.e3().z();
return new HashMapValuesDefault$iterator$1(entryIterator);
}
c1() {
return this.x8_1.c1();
}
i7() {
return this.x8_1.i7();
}
}
class HashSet extends AbstractMutableSet {
static jb(map) {
var $this = this.c9();
init_kotlin_collections_HashSet($this);
$this.e1_1 = map;
return $this;
}
static kb() {
return this.jb(InternalHashMap.aa());
}
static lb(elements) {
var $this = this.jb(InternalHashMap.mb(elements.c1()));
var _iterator__ex2g4s = elements.z();
while (_iterator__ex2g4s.a1()) {
var element = _iterator__ex2g4s.b1();
$this.e1_1.w5(element, true);
}
return $this;
}
static nb(initialCapacity, loadFactor) {
return this.jb(InternalHashMap.ca(initialCapacity, loadFactor));
}
static f1(initialCapacity) {
return this.nb(initialCapacity, 1.0);
}
s(element) {
return this.e1_1.w5(element, true) == null;
}
l7() {
this.e1_1.l7();
}
v2(element) {
return this.e1_1.ga(element);
}
g1() {
return this.e1_1.c1() === 0;
}
z() {
return this.e1_1.oa();
}
h7(element) {
return !(this.e1_1.a9(element) == null);
}
c1() {
return this.e1_1.c1();
}
}
class Companion_4 {
constructor() {
this.xb_1 = -1640531527;
this.yb_1 = 8;
this.zb_1 = 2;
this.ac_1 = -1;
}
}
class Itr {
constructor(map) {
this.bc_1 = map;
this.cc_1 = 0;
this.dc_1 = -1;
this.ec_1 = this.bc_1.x9_1;
this.fc();
}
fc() {
while (this.cc_1 < this.bc_1.v9_1 && this.bc_1.s9_1[this.cc_1] < 0) {
this.cc_1 = this.cc_1 + 1 | 0;
}
}
a1() {
return this.cc_1 < this.bc_1.v9_1;
}
j7() {
this.gc();
// Inline function 'kotlin.check' call
if (!!(this.dc_1 === -1)) {
var message = 'Call next() before removing element from the iterator.';
throw IllegalStateException.a6(toString_1(message));
}
this.bc_1.pa();
removeEntryAt(this.bc_1, this.dc_1);
this.dc_1 = -1;
this.ec_1 = this.bc_1.x9_1;
}
gc() {
if (!(this.bc_1.x9_1 === this.ec_1))
throw ConcurrentModificationException.hc();
}
}
class KeysItr extends Itr {
b1() {
this.gc();
if (this.cc_1 >= this.bc_1.v9_1)
throw NoSuchElementException.p7();
var tmp = this;
var _unary__edvuaz = this.cc_1;
this.cc_1 = _unary__edvuaz + 1 | 0;
tmp.dc_1 = _unary__edvuaz;
var result = this.bc_1.q9_1[this.dc_1];
this.fc();
return result;
}
}
class ValuesItr extends Itr {
b1() {
this.gc();
if (this.cc_1 >= this.bc_1.v9_1)
throw NoSuchElementException.p7();
var tmp = this;
var _unary__edvuaz = this.cc_1;
this.cc_1 = _unary__edvuaz + 1 | 0;
tmp.dc_1 = _unary__edvuaz;
var result = ensureNotNull(this.bc_1.r9_1)[this.dc_1];
this.fc();
return result;
}
}
class EntriesItr extends Itr {
b1() {
this.gc();
if (this.cc_1 >= this.bc_1.v9_1)
throw NoSuchElementException.p7();
var tmp = this;
var _unary__edvuaz = this.cc_1;
this.cc_1 = _unary__edvuaz + 1 | 0;
tmp.dc_1 = _unary__edvuaz;
var result = new EntryRef(this.bc_1, this.dc_1);
this.fc();
return result;
}
uc() {
if (this.cc_1 >= this.bc_1.v9_1)
throw NoSuchElementException.p7();
var tmp = this;
var _unary__edvuaz = this.cc_1;
this.cc_1 = _unary__edvuaz + 1 | 0;
tmp.dc_1 = _unary__edvuaz;
// Inline function 'kotlin.hashCode' call
var tmp0_safe_receiver = this.bc_1.q9_1[this.dc_1];
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
var tmp_0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
// Inline function 'kotlin.hashCode' call
var tmp0_safe_receiver_0 = ensureNotNull(this.bc_1.r9_1)[this.dc_1];
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
var result = tmp_0 ^ (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0);
this.fc();
return result;
}
vc(sb) {
if (this.cc_1 >= this.bc_1.v9_1)
throw NoSuchElementException.p7();
var tmp = this;
var _unary__edvuaz = this.cc_1;
this.cc_1 = _unary__edvuaz + 1 | 0;
tmp.dc_1 = _unary__edvuaz;
var key = this.bc_1.q9_1[this.dc_1];
if (equals(key, this.bc_1))
sb.xc('(this Map)');
else
sb.wc(key);
sb.yc(_Char___init__impl__6a9atx(61));
var value = ensureNotNull(this.bc_1.r9_1)[this.dc_1];
if (equals(value, this.bc_1))
sb.xc('(this Map)');
else
sb.wc(value);
this.fc();
}
}
class EntryRef {
constructor(map, index) {
this.sb_1 = map;
this.tb_1 = index;
this.ub_1 = this.sb_1.x9_1;
}
x2() {
checkForComodification(this);
return this.sb_1.q9_1[this.tb_1];
}
y2() {
checkForComodification(this);
return ensureNotNull(this.sb_1.r9_1)[this.tb_1];
}
equals(other) {
var tmp;
var tmp_0;
if (!(other == null) ? isInterface(other, Entry) : false) {
tmp_0 = equals(other.x2(), this.x2());
} else {
tmp_0 = false;
}
if (tmp_0) {
tmp = equals(other.y2(), this.y2());
} else {
tmp = false;
}
return tmp;
}
hashCode() {
// Inline function 'kotlin.hashCode' call
var tmp0_safe_receiver = this.x2();
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
var tmp = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
// Inline function 'kotlin.hashCode' call
var tmp0_safe_receiver_0 = this.y2();
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
return tmp ^ (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0);
}
toString() {
return toString_0(this.x2()) + '=' + toString_0(this.y2());
}
}
class InternalMap {}
function containsAllEntries(m) {
var tmp$ret$0;
$l$block_0: {
// Inline function 'kotlin.collections.all' call
var tmp;
if (isInterface(m, Collection)) {
tmp = m.g1();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = true;
break $l$block_0;
}
var _iterator__ex2g4s = m.z();
while (_iterator__ex2g4s.a1()) {
var element = _iterator__ex2g4s.b1();
// 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.cd(entry);
} else {
tmp_0 = false;
}
if (!tmp_0) {
tmp$ret$0 = false;
break $l$block_0;
}
}
tmp$ret$0 = true;
}
return tmp$ret$0;
}
class InternalHashMap {
static zc(keysArray, valuesArray, presenceArray, hashArray, maxProbeDistance, length) {
var $this = createThis(this);
$this.q9_1 = keysArray;
$this.r9_1 = valuesArray;
$this.s9_1 = presenceArray;
$this.t9_1 = hashArray;
$this.u9_1 = maxProbeDistance;
$this.v9_1 = length;
$this.w9_1 = computeShift(Companion_instance_4, _get_hashSize__tftcho($this));
$this.x9_1 = 0;
$this.y9_1 = 0;
$this.z9_1 = false;
return $this;
}
c1() {
return this.y9_1;
}
static aa() {
return this.mb(8);
}
static mb(initialCapacity) {
return this.zc(arrayOfUninitializedElements(initialCapacity), null, new Int32Array(initialCapacity), new Int32Array(computeHashSize(Companion_instance_4, initialCapacity)), 2, 0);
}
static fa(original) {
var $this = this.mb(original.c1());
$this.z8(original);
return $this;
}
static ca(initialCapacity, loadFactor) {
var $this = this.mb(initialCapacity);
// Inline function 'kotlin.require' call
if (!(loadFactor > 0)) {
var message = 'Non-positive load factor: ' + loadFactor;
throw IllegalArgumentException.h(toString_1(message));
}
return $this;
}
ad() {
this.pa();
this.z9_1 = true;
}
a3(value) {
return findValue(this, value) >= 0;
}
b3(key) {
var index = findKey(this, key);
if (index < 0)
return null;
return ensureNotNull(this.r9_1)[index];
}
ga(key) {
return findKey(this, key) >= 0;
}
w5(key, value) {
var index = addKey(this, key);
var valuesArray = allocateValuesArray(this);
if (index < 0) {
var oldValue = valuesArray[(-index | 0) - 1 | 0];
valuesArray[(-index | 0) - 1 | 0] = value;
return oldValue;
} else {
valuesArray[index] = value;
return null;
}
}
z8(from) {
this.pa();
putAllEntries(this, from.e3());
}
a9(key) {
this.pa();
var index = findKey(this, key);
if (index < 0)
return null;
var oldValue = ensureNotNull(this.r9_1)[index];
removeEntryAt(this, index);
return oldValue;
}
l7() {
this.pa();
var inductionVariable = 0;
var last = this.v9_1 - 1 | 0;
if (inductionVariable <= last)
do {
var i = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
var hash = this.s9_1[i];
if (hash >= 0) {
this.t9_1[hash] = 0;
this.s9_1[i] = -1;
}
}
while (!(i === last));
resetRange(this.q9_1, 0, this.v9_1);
var tmp0_safe_receiver = this.r9_1;
if (tmp0_safe_receiver == null)
null;
else {
resetRange(tmp0_safe_receiver, 0, this.v9_1);
}
this.y9_1 = 0;
this.v9_1 = 0;
registerModification(this);
}
equals(other) {
var tmp;
if (other === this) {
tmp = true;
} else {
var tmp_0;
if (!(other == null) ? isInterface(other, KtMap_0) : false) {
tmp_0 = contentEquals_1(this, other);
} else {
tmp_0 = false;
}
tmp = tmp_0;
}
return tmp;
}
hashCode() {
var result = 0;
var it = this.ya();
while (it.a1()) {
result = result + it.uc() | 0;
}
return result;
}
toString() {
var sb = StringBuilder.bd(2 + imul_0(this.y9_1, 3) | 0);
sb.xc('{');
var i = 0;
var it = this.ya();
while (it.a1()) {
if (i > 0) {
sb.xc(', ');
}
it.vc(sb);
i = i + 1 | 0;
}
sb.xc('}');
return sb.toString();
}
pa() {
if (this.z9_1)
throw UnsupportedOperationException.n5();
}
na(key) {
this.pa();
var index = findKey(this, key);
if (index < 0)
return false;
removeEntryAt(this, index);
return t