@earth-app/shovel
Version:
Kotlin Multiplatform Web Scraping Framework
783 lines (781 loc) • 29.5 kB
JavaScript
(function (factory) {
if (typeof define === 'function' && define.amd)
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
else if (typeof exports === 'object')
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
else {
if (typeof globalThis['kotlin-kotlin-stdlib'] === 'undefined') {
throw new Error("Error loading module 'kotlinx-serialization-kotlinx-serialization-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'kotlinx-serialization-kotlinx-serialization-core'.");
}
globalThis['kotlinx-serialization-kotlinx-serialization-core'] = factory(typeof globalThis['kotlinx-serialization-kotlinx-serialization-core'] === 'undefined' ? {} : globalThis['kotlinx-serialization-kotlinx-serialization-core'], globalThis['kotlin-kotlin-stdlib']);
}
}(function (_, kotlin_kotlin) {
'use strict';
//region block: imports
var imul = Math.imul;
var protoOf = kotlin_kotlin.$_$.z7;
var initMetadataForInterface = kotlin_kotlin.$_$.m7;
var initMetadataForClass = kotlin_kotlin.$_$.i7;
var VOID = kotlin_kotlin.$_$.h;
var isBlank = kotlin_kotlin.$_$.i9;
var toString = kotlin_kotlin.$_$.d8;
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.o1;
var Unit_instance = kotlin_kotlin.$_$.a3;
var equals = kotlin_kotlin.$_$.b7;
var toList = kotlin_kotlin.$_$.m5;
var emptyList = kotlin_kotlin.$_$.e4;
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p;
var HashSet_init_$Create$ = kotlin_kotlin.$_$.s;
var KProperty1 = kotlin_kotlin.$_$.k8;
var getPropertyCallableRef = kotlin_kotlin.$_$.f7;
var toHashSet = kotlin_kotlin.$_$.j5;
var copyToArray = kotlin_kotlin.$_$.c4;
var toBooleanArray = kotlin_kotlin.$_$.h5;
var withIndex = kotlin_kotlin.$_$.t5;
var collectionSizeOrDefault = kotlin_kotlin.$_$.u3;
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.o;
var to = kotlin_kotlin.$_$.bc;
var toMap = kotlin_kotlin.$_$.o5;
var lazy = kotlin_kotlin.$_$.vb;
var contentEquals = kotlin_kotlin.$_$.w3;
var initMetadataForObject = kotlin_kotlin.$_$.o7;
var getKClassFromExpression = kotlin_kotlin.$_$.d;
var ensureNotNull = kotlin_kotlin.$_$.sb;
var getStringHashCode = kotlin_kotlin.$_$.g7;
var isInterface = kotlin_kotlin.$_$.s7;
var joinToString = kotlin_kotlin.$_$.n4;
var hashCode = kotlin_kotlin.$_$.h7;
var HashSet_init_$Create$_0 = kotlin_kotlin.$_$.r;
var contentHashCode = kotlin_kotlin.$_$.z3;
var until = kotlin_kotlin.$_$.h8;
var HashMap_init_$Create$ = kotlin_kotlin.$_$.q;
var booleanArray = kotlin_kotlin.$_$.r6;
var emptyMap = kotlin_kotlin.$_$.f4;
var LazyThreadSafetyMode_PUBLICATION_getInstance = kotlin_kotlin.$_$.l;
var lazy_0 = kotlin_kotlin.$_$.ub;
var get_indices = kotlin_kotlin.$_$.m4;
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.v1;
//endregion
//region block: pre-declaration
initMetadataForInterface(SerialDescriptor, 'SerialDescriptor');
initMetadataForClass(elementDescriptors$1);
initMetadataForClass(elementDescriptors$$inlined$Iterable$1);
initMetadataForClass(elementNames$1);
initMetadataForClass(elementNames$$inlined$Iterable$1);
initMetadataForClass(ClassSerialDescriptorBuilder, 'ClassSerialDescriptorBuilder');
initMetadataForInterface(CachedNames, 'CachedNames');
initMetadataForClass(SerialDescriptorImpl, 'SerialDescriptorImpl', VOID, VOID, [SerialDescriptor, CachedNames]);
initMetadataForClass(SerialKind, 'SerialKind');
initMetadataForObject(ENUM, 'ENUM', VOID, SerialKind);
initMetadataForClass(StructureKind, 'StructureKind', VOID, SerialKind);
initMetadataForObject(CLASS, 'CLASS', VOID, StructureKind);
initMetadataForObject(OBJECT, 'OBJECT', VOID, StructureKind);
initMetadataForClass(EnumSerializer, 'EnumSerializer');
initMetadataForClass(PluginGeneratedSerialDescriptor, 'PluginGeneratedSerialDescriptor', VOID, VOID, [SerialDescriptor, CachedNames]);
initMetadataForClass(EnumDescriptor, 'EnumDescriptor', VOID, PluginGeneratedSerialDescriptor);
function typeParametersSerializers() {
return get_EMPTY_SERIALIZER_ARRAY();
}
initMetadataForInterface(GeneratedSerializer, 'GeneratedSerializer');
initMetadataForClass(SerializableWith, 'SerializableWith', VOID, VOID, VOID, VOID, 0);
//endregion
function SerialDescriptor() {
}
function get_elementDescriptors(_this__u8e3s4) {
// Inline function 'kotlin.collections.Iterable' call
return new elementDescriptors$$inlined$Iterable$1(_this__u8e3s4);
}
function get_elementNames(_this__u8e3s4) {
// Inline function 'kotlin.collections.Iterable' call
return new elementNames$$inlined$Iterable$1(_this__u8e3s4);
}
function elementDescriptors$1($this_elementDescriptors) {
this.u1m_1 = $this_elementDescriptors;
this.t1m_1 = $this_elementDescriptors.q1m();
}
protoOf(elementDescriptors$1).h = function () {
return this.t1m_1 > 0;
};
protoOf(elementDescriptors$1).i = function () {
var tmp = this.u1m_1.q1m();
var _unary__edvuaz = this.t1m_1;
this.t1m_1 = _unary__edvuaz - 1 | 0;
return this.u1m_1.s1m(tmp - _unary__edvuaz | 0);
};
function elementDescriptors$$inlined$Iterable$1($this_elementDescriptors) {
this.v1m_1 = $this_elementDescriptors;
}
protoOf(elementDescriptors$$inlined$Iterable$1).g = function () {
return new elementDescriptors$1(this.v1m_1);
};
function elementNames$1($this_elementNames) {
this.x1m_1 = $this_elementNames;
this.w1m_1 = $this_elementNames.q1m();
}
protoOf(elementNames$1).h = function () {
return this.w1m_1 > 0;
};
protoOf(elementNames$1).i = function () {
var tmp = this.x1m_1.q1m();
var _unary__edvuaz = this.w1m_1;
this.w1m_1 = _unary__edvuaz - 1 | 0;
return this.x1m_1.r1m(tmp - _unary__edvuaz | 0);
};
function elementNames$$inlined$Iterable$1($this_elementNames) {
this.y1m_1 = $this_elementNames;
}
protoOf(elementNames$$inlined$Iterable$1).g = function () {
return new elementNames$1(this.y1m_1);
};
function buildSerialDescriptor(serialName, kind, typeParameters, builder) {
var tmp;
if (builder === VOID) {
tmp = buildSerialDescriptor$lambda;
} else {
tmp = builder;
}
builder = tmp;
// Inline function 'kotlin.text.isNotBlank' call
// Inline function 'kotlin.require' call
if (!!isBlank(serialName)) {
var message = 'Blank serial names are prohibited';
throw IllegalArgumentException_init_$Create$(toString(message));
}
// Inline function 'kotlin.require' call
if (!!equals(kind, CLASS_getInstance())) {
var message_0 = "For StructureKind.CLASS please use 'buildClassSerialDescriptor' instead";
throw IllegalArgumentException_init_$Create$(toString(message_0));
}
var sdBuilder = new ClassSerialDescriptorBuilder(serialName);
builder(sdBuilder);
return new SerialDescriptorImpl(serialName, kind, sdBuilder.c1n_1.j(), toList(typeParameters), sdBuilder);
}
function ClassSerialDescriptorBuilder(serialName) {
this.z1m_1 = serialName;
this.a1n_1 = false;
this.b1n_1 = emptyList();
this.c1n_1 = ArrayList_init_$Create$();
this.d1n_1 = HashSet_init_$Create$();
this.e1n_1 = ArrayList_init_$Create$();
this.f1n_1 = ArrayList_init_$Create$();
this.g1n_1 = ArrayList_init_$Create$();
}
function _get__hashCode__tgwhef($this) {
var tmp0 = $this.s1n_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('_hashCode', 1, tmp, SerialDescriptorImpl$_get__hashCode_$ref_2v7wzp(), null);
return tmp0.t();
}
function SerialDescriptorImpl$_hashCode$delegate$lambda(this$0) {
return function () {
return hashCodeImpl(this$0, this$0.r1n_1);
};
}
function SerialDescriptorImpl$_get__hashCode_$ref_2v7wzp() {
return function (p0) {
return _get__hashCode__tgwhef(p0);
};
}
function SerialDescriptorImpl(serialName, kind, elementsCount, typeParameters, builder) {
this.h1n_1 = serialName;
this.i1n_1 = kind;
this.j1n_1 = elementsCount;
this.k1n_1 = builder.b1n_1;
this.l1n_1 = toHashSet(builder.c1n_1);
var tmp = this;
// Inline function 'kotlin.collections.toTypedArray' call
var this_0 = builder.c1n_1;
tmp.m1n_1 = copyToArray(this_0);
this.n1n_1 = compactArray(builder.e1n_1);
var tmp_0 = this;
// Inline function 'kotlin.collections.toTypedArray' call
var this_1 = builder.f1n_1;
tmp_0.o1n_1 = copyToArray(this_1);
this.p1n_1 = toBooleanArray(builder.g1n_1);
var tmp_1 = this;
// Inline function 'kotlin.collections.map' call
var this_2 = withIndex(this.m1n_1);
// Inline function 'kotlin.collections.mapTo' call
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_2, 10));
var _iterator__ex2g4s = this_2.g();
while (_iterator__ex2g4s.h()) {
var item = _iterator__ex2g4s.i();
var tmp$ret$2 = to(item.of_1, item.nf_1);
destination.e(tmp$ret$2);
}
tmp_1.q1n_1 = toMap(destination);
this.r1n_1 = compactArray(typeParameters);
var tmp_2 = this;
tmp_2.s1n_1 = lazy(SerialDescriptorImpl$_hashCode$delegate$lambda(this));
}
protoOf(SerialDescriptorImpl).o1m = function () {
return this.h1n_1;
};
protoOf(SerialDescriptorImpl).p1m = function () {
return this.i1n_1;
};
protoOf(SerialDescriptorImpl).q1m = function () {
return this.j1n_1;
};
protoOf(SerialDescriptorImpl).t1n = function () {
return this.l1n_1;
};
protoOf(SerialDescriptorImpl).r1m = function (index) {
return getChecked(this.m1n_1, index);
};
protoOf(SerialDescriptorImpl).s1m = function (index) {
return getChecked(this.n1n_1, index);
};
protoOf(SerialDescriptorImpl).equals = function (other) {
var tmp$ret$0;
$l$block_5: {
// Inline function 'kotlinx.serialization.internal.equalsImpl' call
if (this === other) {
tmp$ret$0 = true;
break $l$block_5;
}
if (!(other instanceof SerialDescriptorImpl)) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!(this.o1m() === other.o1m())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!contentEquals(this.r1n_1, other.r1n_1)) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!(this.q1m() === other.q1m())) {
tmp$ret$0 = false;
break $l$block_5;
}
var inductionVariable = 0;
var last = this.q1m();
if (inductionVariable < last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (!(this.s1m(index).o1m() === other.s1m(index).o1m())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!equals(this.s1m(index).p1m(), other.s1m(index).p1m())) {
tmp$ret$0 = false;
break $l$block_5;
}
}
while (inductionVariable < last);
tmp$ret$0 = true;
}
return tmp$ret$0;
};
protoOf(SerialDescriptorImpl).hashCode = function () {
return _get__hashCode__tgwhef(this);
};
protoOf(SerialDescriptorImpl).toString = function () {
return toStringImpl(this);
};
function buildSerialDescriptor$lambda(_this__u8e3s4) {
return Unit_instance;
}
function ENUM() {
ENUM_instance = this;
SerialKind.call(this);
}
var ENUM_instance;
function ENUM_getInstance() {
if (ENUM_instance == null)
new ENUM();
return ENUM_instance;
}
function SerialKind() {
}
protoOf(SerialKind).toString = function () {
return ensureNotNull(getKClassFromExpression(this).na());
};
protoOf(SerialKind).hashCode = function () {
return getStringHashCode(this.toString());
};
function CLASS() {
CLASS_instance = this;
StructureKind.call(this);
}
var CLASS_instance;
function CLASS_getInstance() {
if (CLASS_instance == null)
new CLASS();
return CLASS_instance;
}
function OBJECT() {
OBJECT_instance = this;
StructureKind.call(this);
}
var OBJECT_instance;
function OBJECT_getInstance() {
if (OBJECT_instance == null)
new OBJECT();
return OBJECT_instance;
}
function StructureKind() {
SerialKind.call(this);
}
function CachedNames() {
}
function createSimpleEnumSerializer(serialName, values) {
return new EnumSerializer(serialName, values);
}
function createUnmarkedDescriptor($this, serialName) {
var d = new EnumDescriptor(serialName, $this.u1n_1.length);
// Inline function 'kotlin.collections.forEach' call
var indexedObject = $this.u1n_1;
var inductionVariable = 0;
var last = indexedObject.length;
while (inductionVariable < last) {
var element = indexedObject[inductionVariable];
inductionVariable = inductionVariable + 1 | 0;
d.j1o(element.k2_1);
}
return d;
}
function EnumSerializer$descriptor$delegate$lambda(this$0, $serialName) {
return function () {
var tmp0_elvis_lhs = this$0.v1n_1;
return tmp0_elvis_lhs == null ? createUnmarkedDescriptor(this$0, $serialName) : tmp0_elvis_lhs;
};
}
function EnumSerializer$_get_descriptor_$ref_j67dlw() {
return function (p0) {
return p0.k1o();
};
}
function EnumSerializer(serialName, values) {
this.u1n_1 = values;
this.v1n_1 = null;
var tmp = this;
tmp.w1n_1 = lazy(EnumSerializer$descriptor$delegate$lambda(this, serialName));
}
protoOf(EnumSerializer).k1o = function () {
var tmp0 = this.w1n_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('descriptor', 1, tmp, EnumSerializer$_get_descriptor_$ref_j67dlw(), null);
return tmp0.t();
};
protoOf(EnumSerializer).toString = function () {
return 'kotlinx.serialization.internal.EnumSerializer<' + this.k1o().o1m() + '>';
};
function _get_elementDescriptors__y23q9p($this) {
var tmp0 = $this.y1o_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('elementDescriptors', 1, tmp, EnumDescriptor$_get_elementDescriptors_$ref_5lvk4a(), null);
return tmp0.t();
}
function EnumDescriptor$elementDescriptors$delegate$lambda($elementsCount, $name, this$0) {
return function () {
var tmp = 0;
var tmp_0 = $elementsCount;
// Inline function 'kotlin.arrayOfNulls' call
var tmp_1 = Array(tmp_0);
while (tmp < tmp_0) {
var tmp_2 = tmp;
tmp_1[tmp_2] = buildSerialDescriptor($name + '.' + this$0.r1m(tmp_2), OBJECT_getInstance(), []);
tmp = tmp + 1 | 0;
}
return tmp_1;
};
}
function EnumDescriptor$_get_elementDescriptors_$ref_5lvk4a() {
return function (p0) {
return _get_elementDescriptors__y23q9p(p0);
};
}
function EnumDescriptor(name, elementsCount) {
PluginGeneratedSerialDescriptor.call(this, name, VOID, elementsCount);
this.x1o_1 = ENUM_getInstance();
var tmp = this;
tmp.y1o_1 = lazy(EnumDescriptor$elementDescriptors$delegate$lambda(elementsCount, name, this));
}
protoOf(EnumDescriptor).p1m = function () {
return this.x1o_1;
};
protoOf(EnumDescriptor).s1m = function (index) {
return getChecked(_get_elementDescriptors__y23q9p(this), index);
};
protoOf(EnumDescriptor).equals = function (other) {
if (this === other)
return true;
if (other == null)
return false;
if (!(!(other == null) ? isInterface(other, SerialDescriptor) : false))
return false;
if (!(other.p1m() === ENUM_getInstance()))
return false;
if (!(this.o1m() === other.o1m()))
return false;
if (!equals(cachedSerialNames(this), cachedSerialNames(other)))
return false;
return true;
};
protoOf(EnumDescriptor).toString = function () {
return joinToString(get_elementNames(this), ', ', this.o1m() + '(', ')');
};
protoOf(EnumDescriptor).hashCode = function () {
var result = getStringHashCode(this.o1m());
// Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call
// Inline function 'kotlin.collections.fold' call
var accumulator = 1;
var _iterator__ex2g4s = get_elementNames(this).g();
while (_iterator__ex2g4s.h()) {
var element = _iterator__ex2g4s.i();
var hash = accumulator;
var tmp = imul(31, hash);
// Inline function 'kotlin.hashCode' call
var tmp1_elvis_lhs = element == null ? null : hashCode(element);
accumulator = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
}
var elementsHashCode = accumulator;
result = imul(31, result) + elementsHashCode | 0;
return result;
};
function get_EMPTY_DESCRIPTOR_ARRAY() {
_init_properties_Platform_common_kt__3qzecs();
return EMPTY_DESCRIPTOR_ARRAY;
}
var EMPTY_DESCRIPTOR_ARRAY;
function cachedSerialNames(_this__u8e3s4) {
_init_properties_Platform_common_kt__3qzecs();
if (isInterface(_this__u8e3s4, CachedNames))
return _this__u8e3s4.t1n();
var result = HashSet_init_$Create$_0(_this__u8e3s4.q1m());
var inductionVariable = 0;
var last = _this__u8e3s4.q1m();
if (inductionVariable < last)
do {
var i = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
// Inline function 'kotlin.collections.plusAssign' call
var element = _this__u8e3s4.r1m(i);
result.e(element);
}
while (inductionVariable < last);
return result;
}
function compactArray(_this__u8e3s4) {
_init_properties_Platform_common_kt__3qzecs();
// Inline function 'kotlin.takeUnless' call
var tmp;
// Inline function 'kotlin.collections.isNullOrEmpty' call
if (!(_this__u8e3s4 == null || _this__u8e3s4.p())) {
tmp = _this__u8e3s4;
} else {
tmp = null;
}
var tmp0_safe_receiver = tmp;
var tmp_0;
if (tmp0_safe_receiver == null) {
tmp_0 = null;
} else {
// Inline function 'kotlin.collections.toTypedArray' call
tmp_0 = copyToArray(tmp0_safe_receiver);
}
var tmp1_elvis_lhs = tmp_0;
return tmp1_elvis_lhs == null ? get_EMPTY_DESCRIPTOR_ARRAY() : tmp1_elvis_lhs;
}
var properties_initialized_Platform_common_kt_i7q4ty;
function _init_properties_Platform_common_kt__3qzecs() {
if (!properties_initialized_Platform_common_kt_i7q4ty) {
properties_initialized_Platform_common_kt_i7q4ty = true;
// Inline function 'kotlin.arrayOf' call
// Inline function 'kotlin.js.unsafeCast' call
// Inline function 'kotlin.js.asDynamic' call
EMPTY_DESCRIPTOR_ARRAY = [];
}
}
function hashCodeImpl(_this__u8e3s4, typeParams) {
var result = getStringHashCode(_this__u8e3s4.o1m());
result = imul(31, result) + contentHashCode(typeParams) | 0;
var elementDescriptors = get_elementDescriptors(_this__u8e3s4);
// Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call
// Inline function 'kotlin.collections.fold' call
var accumulator = 1;
var _iterator__ex2g4s = elementDescriptors.g();
while (_iterator__ex2g4s.h()) {
var element = _iterator__ex2g4s.i();
var hash = accumulator;
var tmp = imul(31, hash);
// Inline function 'kotlin.hashCode' call
var tmp0_safe_receiver = element.o1m();
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
accumulator = tmp + (tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs) | 0;
}
var namesHash = accumulator;
// Inline function 'kotlinx.serialization.internal.elementsHashCodeBy' call
// Inline function 'kotlin.collections.fold' call
var accumulator_0 = 1;
var _iterator__ex2g4s_0 = elementDescriptors.g();
while (_iterator__ex2g4s_0.h()) {
var element_0 = _iterator__ex2g4s_0.i();
var hash_0 = accumulator_0;
var tmp_0 = imul(31, hash_0);
// Inline function 'kotlin.hashCode' call
var tmp0_safe_receiver_0 = element_0.p1m();
var tmp1_elvis_lhs_0 = tmp0_safe_receiver_0 == null ? null : hashCode(tmp0_safe_receiver_0);
accumulator_0 = tmp_0 + (tmp1_elvis_lhs_0 == null ? 0 : tmp1_elvis_lhs_0) | 0;
}
var kindHash = accumulator_0;
result = imul(31, result) + namesHash | 0;
result = imul(31, result) + kindHash | 0;
return result;
}
function toStringImpl(_this__u8e3s4) {
var tmp = until(0, _this__u8e3s4.q1m());
var tmp_0 = _this__u8e3s4.o1m() + '(';
return joinToString(tmp, ', ', tmp_0, ')', VOID, VOID, toStringImpl$lambda(_this__u8e3s4));
}
function _get_childSerializers__7vnyfa($this) {
var tmp0 = $this.g1o_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('childSerializers', 1, tmp, PluginGeneratedSerialDescriptor$_get_childSerializers_$ref_e7suca(), null);
return tmp0.t();
}
function _get__hashCode__tgwhef_0($this) {
var tmp0 = $this.i1o_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('_hashCode', 1, tmp, PluginGeneratedSerialDescriptor$_get__hashCode_$ref_cmj4vz(), null);
return tmp0.t();
}
function buildIndices($this) {
var indices = HashMap_init_$Create$();
var inductionVariable = 0;
var last = $this.b1o_1.length - 1 | 0;
if (inductionVariable <= last)
do {
var i = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
// Inline function 'kotlin.collections.set' call
var key = $this.b1o_1[i];
indices.h2(key, i);
}
while (inductionVariable <= last);
return indices;
}
function PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this$0) {
return function () {
var tmp0_safe_receiver = this$0.y1n_1;
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.b1p();
return tmp1_elvis_lhs == null ? get_EMPTY_SERIALIZER_ARRAY() : tmp1_elvis_lhs;
};
}
function PluginGeneratedSerialDescriptor$_get_childSerializers_$ref_e7suca() {
return function (p0) {
return _get_childSerializers__7vnyfa(p0);
};
}
function PluginGeneratedSerialDescriptor$typeParameterDescriptors$delegate$lambda(this$0) {
return function () {
var tmp0_safe_receiver = this$0.y1n_1;
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.c1p();
var tmp;
if (tmp1_safe_receiver == null) {
tmp = null;
} else {
// Inline function 'kotlin.collections.map' call
// Inline function 'kotlin.collections.mapTo' call
var destination = ArrayList_init_$Create$_0(tmp1_safe_receiver.length);
var inductionVariable = 0;
var last = tmp1_safe_receiver.length;
while (inductionVariable < last) {
var item = tmp1_safe_receiver[inductionVariable];
inductionVariable = inductionVariable + 1 | 0;
var tmp$ret$0 = item.k1o();
destination.e(tmp$ret$0);
}
tmp = destination;
}
return compactArray(tmp);
};
}
function PluginGeneratedSerialDescriptor$_get_typeParameterDescriptors_$ref_jk3pka() {
return function (p0) {
return p0.z1o();
};
}
function PluginGeneratedSerialDescriptor$_hashCode$delegate$lambda(this$0) {
return function () {
return hashCodeImpl(this$0, this$0.z1o());
};
}
function PluginGeneratedSerialDescriptor$_get__hashCode_$ref_cmj4vz() {
return function (p0) {
return _get__hashCode__tgwhef_0(p0);
};
}
function PluginGeneratedSerialDescriptor(serialName, generatedSerializer, elementsCount) {
generatedSerializer = generatedSerializer === VOID ? null : generatedSerializer;
this.x1n_1 = serialName;
this.y1n_1 = generatedSerializer;
this.z1n_1 = elementsCount;
this.a1o_1 = -1;
var tmp = this;
var tmp_0 = 0;
var tmp_1 = this.z1n_1;
// Inline function 'kotlin.arrayOfNulls' call
var tmp_2 = Array(tmp_1);
while (tmp_0 < tmp_1) {
tmp_2[tmp_0] = '[UNINITIALIZED]';
tmp_0 = tmp_0 + 1 | 0;
}
tmp.b1o_1 = tmp_2;
var tmp_3 = this;
// Inline function 'kotlin.arrayOfNulls' call
var size = this.z1n_1;
tmp_3.c1o_1 = Array(size);
this.d1o_1 = null;
this.e1o_1 = booleanArray(this.z1n_1);
this.f1o_1 = emptyMap();
var tmp_4 = this;
var tmp_5 = LazyThreadSafetyMode_PUBLICATION_getInstance();
tmp_4.g1o_1 = lazy_0(tmp_5, PluginGeneratedSerialDescriptor$childSerializers$delegate$lambda(this));
var tmp_6 = this;
var tmp_7 = LazyThreadSafetyMode_PUBLICATION_getInstance();
tmp_6.h1o_1 = lazy_0(tmp_7, PluginGeneratedSerialDescriptor$typeParameterDescriptors$delegate$lambda(this));
var tmp_8 = this;
var tmp_9 = LazyThreadSafetyMode_PUBLICATION_getInstance();
tmp_8.i1o_1 = lazy_0(tmp_9, PluginGeneratedSerialDescriptor$_hashCode$delegate$lambda(this));
}
protoOf(PluginGeneratedSerialDescriptor).o1m = function () {
return this.x1n_1;
};
protoOf(PluginGeneratedSerialDescriptor).q1m = function () {
return this.z1n_1;
};
protoOf(PluginGeneratedSerialDescriptor).p1m = function () {
return CLASS_getInstance();
};
protoOf(PluginGeneratedSerialDescriptor).t1n = function () {
return this.f1o_1.f2();
};
protoOf(PluginGeneratedSerialDescriptor).z1o = function () {
var tmp0 = this.h1o_1;
var tmp = KProperty1;
// Inline function 'kotlin.getValue' call
getPropertyCallableRef('typeParameterDescriptors', 1, tmp, PluginGeneratedSerialDescriptor$_get_typeParameterDescriptors_$ref_jk3pka(), null);
return tmp0.t();
};
protoOf(PluginGeneratedSerialDescriptor).a1p = function (name, isOptional) {
this.a1o_1 = this.a1o_1 + 1 | 0;
this.b1o_1[this.a1o_1] = name;
this.e1o_1[this.a1o_1] = isOptional;
this.c1o_1[this.a1o_1] = null;
if (this.a1o_1 === (this.z1n_1 - 1 | 0)) {
this.f1o_1 = buildIndices(this);
}
};
protoOf(PluginGeneratedSerialDescriptor).j1o = function (name, isOptional, $super) {
isOptional = isOptional === VOID ? false : isOptional;
var tmp;
if ($super === VOID) {
this.a1p(name, isOptional);
tmp = Unit_instance;
} else {
tmp = $super.a1p.call(this, name, isOptional);
}
return tmp;
};
protoOf(PluginGeneratedSerialDescriptor).s1m = function (index) {
return getChecked(_get_childSerializers__7vnyfa(this), index).k1o();
};
protoOf(PluginGeneratedSerialDescriptor).r1m = function (index) {
return getChecked(this.b1o_1, index);
};
protoOf(PluginGeneratedSerialDescriptor).equals = function (other) {
var tmp$ret$0;
$l$block_5: {
// Inline function 'kotlinx.serialization.internal.equalsImpl' call
if (this === other) {
tmp$ret$0 = true;
break $l$block_5;
}
if (!(other instanceof PluginGeneratedSerialDescriptor)) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!(this.o1m() === other.o1m())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!contentEquals(this.z1o(), other.z1o())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!(this.q1m() === other.q1m())) {
tmp$ret$0 = false;
break $l$block_5;
}
var inductionVariable = 0;
var last = this.q1m();
if (inductionVariable < last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (!(this.s1m(index).o1m() === other.s1m(index).o1m())) {
tmp$ret$0 = false;
break $l$block_5;
}
if (!equals(this.s1m(index).p1m(), other.s1m(index).p1m())) {
tmp$ret$0 = false;
break $l$block_5;
}
}
while (inductionVariable < last);
tmp$ret$0 = true;
}
return tmp$ret$0;
};
protoOf(PluginGeneratedSerialDescriptor).hashCode = function () {
return _get__hashCode__tgwhef_0(this);
};
protoOf(PluginGeneratedSerialDescriptor).toString = function () {
return toStringImpl(this);
};
function toStringImpl$lambda($this_toStringImpl) {
return function (i) {
return $this_toStringImpl.r1m(i) + ': ' + $this_toStringImpl.s1m(i).o1m();
};
}
function get_EMPTY_SERIALIZER_ARRAY() {
_init_properties_PluginHelperInterfaces_kt__xgvzfp();
return EMPTY_SERIALIZER_ARRAY;
}
var EMPTY_SERIALIZER_ARRAY;
function GeneratedSerializer() {
}
var properties_initialized_PluginHelperInterfaces_kt_ap8in1;
function _init_properties_PluginHelperInterfaces_kt__xgvzfp() {
if (!properties_initialized_PluginHelperInterfaces_kt_ap8in1) {
properties_initialized_PluginHelperInterfaces_kt_ap8in1 = true;
// Inline function 'kotlin.arrayOf' call
// Inline function 'kotlin.js.unsafeCast' call
// Inline function 'kotlin.js.asDynamic' call
EMPTY_SERIALIZER_ARRAY = [];
}
}
function SerializableWith() {
}
function getChecked(_this__u8e3s4, index) {
if (!(0 <= index ? index <= (_this__u8e3s4.length - 1 | 0) : false))
throw IndexOutOfBoundsException_init_$Create$('Index ' + index + ' out of bounds ' + get_indices(_this__u8e3s4).toString());
return _this__u8e3s4[index];
}
//region block: exports
_.$_$ = _.$_$ || {};
_.$_$.a = createSimpleEnumSerializer;
//endregion
return _;
}));
//# sourceMappingURL=kotlinx-serialization-kotlinx-serialization-core.js.map