@cpaassdk/cpaas-sdk
Version:
1,516 lines • 138 kB
JavaScript
(function (root, factory) {
if (typeof define === 'function' && define.amd)
define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js', './ktor-ktor-io-js-ir.js', './88b0986a7186d029-atomicfu-js-ir.js'], factory);
else if (typeof exports === 'object')
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js'), require('./ktor-ktor-io-js-ir.js'), require('./88b0986a7186d029-atomicfu-js-ir.js'));
else {
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
throw new Error("Error loading module 'ktor-ktor-utils-js-ir'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'ktor-ktor-utils-js-ir'.");
}
if (typeof this['kotlinx.coroutines-kotlinx-coroutines-core-js-ir'] === 'undefined') {
throw new Error("Error loading module 'ktor-ktor-utils-js-ir'. Its dependency 'kotlinx.coroutines-kotlinx-coroutines-core-js-ir' was not found. Please, check whether 'kotlinx.coroutines-kotlinx-coroutines-core-js-ir' is loaded prior to 'ktor-ktor-utils-js-ir'.");
}
if (typeof this['ktor-ktor-io-js-ir'] === 'undefined') {
throw new Error("Error loading module 'ktor-ktor-utils-js-ir'. Its dependency 'ktor-ktor-io-js-ir' was not found. Please, check whether 'ktor-ktor-io-js-ir' is loaded prior to 'ktor-ktor-utils-js-ir'.");
}
if (typeof this['88b0986a7186d029-atomicfu-js-ir'] === 'undefined') {
throw new Error("Error loading module 'ktor-ktor-utils-js-ir'. Its dependency '88b0986a7186d029-atomicfu-js-ir' was not found. Please, check whether '88b0986a7186d029-atomicfu-js-ir' is loaded prior to 'ktor-ktor-utils-js-ir'.");
}
root['ktor-ktor-utils-js-ir'] = factory(typeof this['ktor-ktor-utils-js-ir'] === 'undefined' ? {} : this['ktor-ktor-utils-js-ir'], this['kotlin-kotlin-stdlib-js-ir'], this['kotlinx.coroutines-kotlinx-coroutines-core-js-ir'], this['ktor-ktor-io-js-ir'], this['88b0986a7186d029-atomicfu-js-ir']);
}
}(this, function (_, kotlin_kotlin, kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core, kotlin_io_ktor_ktor_io, kotlin_org_jetbrains_kotlinx_atomicfu) {
'use strict';
//region block: imports
var imul = Math.imul;
var charSequenceLength = kotlin_kotlin.$_$.v8;
var Unit_getInstance = kotlin_kotlin.$_$.h4;
var anyToString = kotlin_kotlin.$_$.p8;
var classMeta = kotlin_kotlin.$_$.x8;
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.e2;
var interfaceMeta = kotlin_kotlin.$_$.g9;
var THROW_CCE = kotlin_kotlin.$_$.qc;
var LinkedHashMap_init_$Create$ = kotlin_kotlin.$_$.j1;
var isObject = kotlin_kotlin.$_$.s9;
var equals = kotlin_kotlin.$_$.z8;
var hashCode = kotlin_kotlin.$_$.f9;
var MutableMap = kotlin_kotlin.$_$.b5;
var ensureNotNull = kotlin_kotlin.$_$.dd;
var Entry = kotlin_kotlin.$_$.t4;
var isInterface = kotlin_kotlin.$_$.p9;
var MutableEntry = kotlin_kotlin.$_$.a5;
var charArray = kotlin_kotlin.$_$.t8;
var charSequenceGet = kotlin_kotlin.$_$.u8;
var toString = kotlin_kotlin.$_$.y2;
var Char = kotlin_kotlin.$_$.bc;
var SupervisorJob = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.j1;
var AbstractCoroutineContextElement = kotlin_kotlin.$_$.v7;
var Key_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.p;
var get = kotlin_kotlin.$_$.c8;
var fold = kotlin_kotlin.$_$.b8;
var minusKey = kotlin_kotlin.$_$.d8;
var plus = kotlin_kotlin.$_$.g8;
var CoroutineExceptionHandler = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.b1;
var MutableIterator = kotlin_kotlin.$_$.x4;
var collectionSizeOrDefault = kotlin_kotlin.$_$.k5;
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.z;
var Set = kotlin_kotlin.$_$.d5;
var toString_0 = kotlin_kotlin.$_$.ha;
var MutableSet = kotlin_kotlin.$_$.c5;
var toList = kotlin_kotlin.$_$.j7;
var objectMeta = kotlin_kotlin.$_$.da;
var LinkedHashMap_init_$Create$_0 = kotlin_kotlin.$_$.i1;
var firstOrNull = kotlin_kotlin.$_$.c6;
var Collection = kotlin_kotlin.$_$.j4;
var ArrayList_init_$Create$_0 = kotlin_kotlin.$_$.a1;
var to = kotlin_kotlin.$_$.pd;
var addAll = kotlin_kotlin.$_$.f5;
var toMap = kotlin_kotlin.$_$.k7;
var lazy = kotlin_kotlin.$_$.jd;
var KProperty1 = kotlin_kotlin.$_$.va;
var getPropertyCallableRef = kotlin_kotlin.$_$.d9;
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.r1;
var get_lastIndex = kotlin_kotlin.$_$.hb;
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q2;
var Char__plus_impl_qi7pgj = kotlin_kotlin.$_$.u2;
var getStringHashCode = kotlin_kotlin.$_$.e9;
var equals_0 = kotlin_kotlin.$_$.za;
var addAll_0 = kotlin_kotlin.$_$.e5;
var IndexOutOfBoundsException_init_$Create$ = kotlin_kotlin.$_$.h2;
var shared$1 = kotlin_io_ktor_ktor_io.$_$.m1;
var MutableListIterator = kotlin_kotlin.$_$.y4;
var makeShared = kotlin_io_ktor_ktor_io.$_$.j1;
var List = kotlin_kotlin.$_$.s4;
var checkIndexOverflow = kotlin_kotlin.$_$.j5;
var StringBuilder_init_$Create$_0 = kotlin_kotlin.$_$.s1;
var NoSuchElementException_init_$Create$ = kotlin_kotlin.$_$.j2;
var MutableList = kotlin_kotlin.$_$.z4;
var KMutableProperty1 = kotlin_kotlin.$_$.ua;
var Map = kotlin_kotlin.$_$.u4;
var atomic$int$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.d;
var UnsupportedOperationException_init_$Create$ = kotlin_kotlin.$_$.o2;
var MutableCollection = kotlin_kotlin.$_$.v4;
var MutableIterable = kotlin_kotlin.$_$.w4;
var ListIterator = kotlin_kotlin.$_$.r4;
var atomicfu$AtomicRefArray$ofNulls = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.a;
var Long = kotlin_kotlin.$_$.lc;
var Comparable = kotlin_kotlin.$_$.cc;
var Enum = kotlin_kotlin.$_$.gc;
var CoroutineImpl = kotlin_kotlin.$_$.h8;
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.s7;
var ArrayList = kotlin_kotlin.$_$.i4;
var emptyList = kotlin_kotlin.$_$.y5;
var get_lastIndex_0 = kotlin_kotlin.$_$.k6;
var last = kotlin_kotlin.$_$.n6;
var atomic$ref$1 = kotlin_org_jetbrains_kotlinx_atomicfu.$_$.c;
var CoroutineScope = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.e1;
var extendThrowable = kotlin_kotlin.$_$.a9;
var captureStack = kotlin_kotlin.$_$.s8;
var recoverStackTrace = kotlin_org_jetbrains_kotlinx_kotlinx_coroutines_core.$_$.y;
var Companion_getInstance = kotlin_kotlin.$_$.c4;
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.z2;
var createFailure = kotlin_kotlin.$_$.cd;
var Continuation = kotlin_kotlin.$_$.a8;
var Result__exceptionOrNull_impl_p6xea9 = kotlin_kotlin.$_$.a3;
var _Result___get_isFailure__impl__jpiriv = kotlin_kotlin.$_$.b3;
var toString_1 = kotlin_kotlin.$_$.od;
var preventFreeze = kotlin_io_ktor_ktor_io.$_$.k1;
var SuspendFunction0 = kotlin_kotlin.$_$.i8;
var toList_0 = kotlin_kotlin.$_$.i7;
var isNaN_0 = kotlin_kotlin.$_$.hd;
var numberToLong = kotlin_kotlin.$_$.ca;
var IllegalStateException = kotlin_kotlin.$_$.kc;
var IllegalStateException_init_$Init$ = kotlin_kotlin.$_$.d2;
//endregion
//region block: pre-declaration
function get_0(key) {
var tmp0_elvis_lhs = this.j1u(key);
var tmp;
if (tmp0_elvis_lhs == null) {
throw IllegalStateException_init_$Create$('No instance for key ' + key);
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
_no_name_provided__qut3iv.prototype = Object.create(AbstractCoroutineContextElement.prototype);
_no_name_provided__qut3iv.prototype.constructor = _no_name_provided__qut3iv;
function get_1(name) {
var tmp0_safe_receiver = this.w1v(name);
return tmp0_safe_receiver == null ? null : firstOrNull(tmp0_safe_receiver);
}
function forEach(body) {
var tmp0_forEach = this.x1v();
var tmp0_iterator = tmp0_forEach.g();
while (tmp0_iterator.h()) {
var element = tmp0_iterator.i();
{
var tmp$ret$0;
{
tmp$ret$0 = element.x();
}
var k = tmp$ret$0;
var tmp$ret$1;
{
tmp$ret$1 = element.y();
}
var v = tmp$ret$1;
body(k, v);
}
}
return Unit_getInstance();
}
WeekDay.prototype = Object.create(Enum.prototype);
WeekDay.prototype.constructor = WeekDay;
Month.prototype = Object.create(Enum.prototype);
Month.prototype.constructor = Month;
$proceedLoopCOROUTINE$0.prototype = Object.create(CoroutineImpl.prototype);
$proceedLoopCOROUTINE$0.prototype.constructor = $proceedLoopCOROUTINE$0;
InvalidPhaseException.prototype = Object.create(Error.prototype);
InvalidPhaseException.prototype.constructor = InvalidPhaseException;
After.prototype = Object.create(PipelinePhaseRelation.prototype);
After.prototype.constructor = After;
Before.prototype = Object.create(PipelinePhaseRelation.prototype);
Before.prototype.constructor = Before;
Last.prototype = Object.create(PipelinePhaseRelation.prototype);
Last.prototype.constructor = Last;
SuspendFunctionGun$loop$slambda.prototype = Object.create(CoroutineImpl.prototype);
SuspendFunctionGun$loop$slambda.prototype.constructor = SuspendFunctionGun$loop$slambda;
startCoroutineUninterceptedOrReturn3$slambda.prototype = Object.create(CoroutineImpl.prototype);
startCoroutineUninterceptedOrReturn3$slambda.prototype.constructor = startCoroutineUninterceptedOrReturn3$slambda;
InvalidTimestampException.prototype = Object.create(IllegalStateException.prototype);
InvalidTimestampException.prototype.constructor = InvalidTimestampException;
//endregion
function AttributeKey(name) {
this.h1u_1 = name;
}
AttributeKey.prototype.toString = function () {
var tmp;
var tmp$ret$0;
{
var tmp0_isEmpty = this.h1u_1;
tmp$ret$0 = charSequenceLength(tmp0_isEmpty) === 0;
}
if (tmp$ret$0) {
tmp = anyToString(this);
} else {
tmp = 'AttributeKey: ' + this.h1u_1;
}
return tmp;
};
AttributeKey.$metadata$ = classMeta('AttributeKey');
function Attributes() {
}
Attributes.$metadata$ = interfaceMeta('Attributes');
function putAll(_this__u8e3s4, other) {
{
var tmp0_forEach = other.n1u();
var tmp0_iterator = tmp0_forEach.g();
while (tmp0_iterator.h()) {
var element = tmp0_iterator.i();
{
_this__u8e3s4.l1u(element instanceof AttributeKey ? element : THROW_CCE(), other.i1u(element));
}
}
}
}
function CaseInsensitiveMap$_get_keys_$lambda_ptzlqj() {
return function ($this$$receiver) {
return $this$$receiver.o1u_1;
};
}
function CaseInsensitiveMap$_get_keys_$lambda_ptzlqj_0() {
return function ($this$$receiver) {
return caseInsensitive($this$$receiver);
};
}
function CaseInsensitiveMap$_get_entries_$lambda_r32w19() {
return function ($this$$receiver) {
return new Entry_0($this$$receiver.x().o1u_1, $this$$receiver.y());
};
}
function CaseInsensitiveMap$_get_entries_$lambda_r32w19_0() {
return function ($this$$receiver) {
return new Entry_0(caseInsensitive($this$$receiver.x()), $this$$receiver.y());
};
}
function CaseInsensitiveMap() {
var tmp = this;
var tmp$ret$0;
{
tmp$ret$0 = LinkedHashMap_init_$Create$();
}
tmp.q1u_1 = tmp$ret$0;
}
CaseInsensitiveMap.prototype.j = function () {
return this.q1u_1.j();
};
CaseInsensitiveMap.prototype.r1u = function (key) {
return this.q1u_1.h2(new CaseInsensitiveString(key));
};
CaseInsensitiveMap.prototype.h2 = function (key) {
if (!(!(key == null) ? typeof key === 'string' : false))
return false;
return this.r1u((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
};
CaseInsensitiveMap.prototype.s1u = function (key) {
return this.q1u_1.n2(caseInsensitive(key));
};
CaseInsensitiveMap.prototype.n2 = function (key) {
if (!(!(key == null) ? typeof key === 'string' : false))
return null;
return this.s1u((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
};
CaseInsensitiveMap.prototype.m = function () {
return this.q1u_1.m();
};
CaseInsensitiveMap.prototype.j3 = function () {
this.q1u_1.j3();
};
CaseInsensitiveMap.prototype.t1u = function (key, value) {
return this.q1u_1.c(caseInsensitive(key), value);
};
CaseInsensitiveMap.prototype.c = function (key, value) {
var tmp = (!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE();
return this.t1u(tmp, (value == null ? true : isObject(value)) ? value : THROW_CCE());
};
CaseInsensitiveMap.prototype.u1u = function (from) {
{
var tmp$ret$0;
{
tmp$ret$0 = from.w().g();
}
var tmp0_iterator = tmp$ret$0;
while (tmp0_iterator.h()) {
var element = tmp0_iterator.i();
{
var tmp$ret$1;
{
tmp$ret$1 = element.x();
}
var key = tmp$ret$1;
var tmp$ret$2;
{
tmp$ret$2 = element.y();
}
var value = tmp$ret$2;
this.t1u(key, value);
}
}
}
};
CaseInsensitiveMap.prototype.e4 = function (from) {
return this.u1u(from);
};
CaseInsensitiveMap.prototype.v1u = function (key) {
return this.q1u_1.fc(caseInsensitive(key));
};
CaseInsensitiveMap.prototype.fc = function (key) {
if (!(!(key == null) ? typeof key === 'string' : false))
return null;
return this.v1u((!(key == null) ? typeof key === 'string' : false) ? key : THROW_CCE());
};
CaseInsensitiveMap.prototype.o2 = function () {
var tmp = this.q1u_1.o2();
var tmp_0 = CaseInsensitiveMap$_get_keys_$lambda_ptzlqj();
return new DelegatingMutableSet(tmp, tmp_0, CaseInsensitiveMap$_get_keys_$lambda_ptzlqj_0());
};
CaseInsensitiveMap.prototype.w = function () {
var tmp = this.q1u_1.w();
var tmp_0 = CaseInsensitiveMap$_get_entries_$lambda_r32w19();
return new DelegatingMutableSet(tmp, tmp_0, CaseInsensitiveMap$_get_entries_$lambda_r32w19_0());
};
CaseInsensitiveMap.prototype.p2 = function () {
return this.q1u_1.p2();
};
CaseInsensitiveMap.prototype.equals = function (other) {
var tmp;
if (other == null) {
tmp = true;
} else {
tmp = !(other instanceof CaseInsensitiveMap);
}
if (tmp)
return false;
return equals(other.q1u_1, this.q1u_1);
};
CaseInsensitiveMap.prototype.hashCode = function () {
return hashCode(this.q1u_1);
};
CaseInsensitiveMap.$metadata$ = classMeta('CaseInsensitiveMap', [MutableMap]);
function Entry_0(key, value) {
this.w1u_1 = key;
this.x1u_1 = value;
}
Entry_0.prototype.x = function () {
return this.w1u_1;
};
Entry_0.prototype.y = function () {
return this.x1u_1;
};
Entry_0.prototype.y1u = function (newValue) {
this.x1u_1 = newValue;
return this.x1u_1;
};
Entry_0.prototype.vb = function (newValue) {
return this.y1u((newValue == null ? true : isObject(newValue)) ? newValue : THROW_CCE());
};
Entry_0.prototype.hashCode = function () {
return (527 + hashCode(ensureNotNull(this.w1u_1)) | 0) + hashCode(ensureNotNull(this.x1u_1)) | 0;
};
Entry_0.prototype.equals = function (other) {
var tmp;
if (other == null) {
tmp = true;
} else {
tmp = !(!(other == null) ? isInterface(other, Entry) : false);
}
if (tmp)
return false;
return equals(other.x(), this.w1u_1) ? equals(other.y(), this.x1u_1) : false;
};
Entry_0.prototype.toString = function () {
return '' + this.w1u_1 + '=' + this.x1u_1;
};
Entry_0.$metadata$ = classMeta('Entry', [MutableEntry]);
function toCharArray(_this__u8e3s4) {
var tmp = 0;
var tmp_0 = _this__u8e3s4.length;
var tmp_1 = charArray(tmp_0);
while (tmp < tmp_0) {
var tmp_2 = tmp;
var tmp$ret$0;
{
tmp$ret$0 = charSequenceGet(_this__u8e3s4, tmp_2);
}
tmp_1[tmp_2] = tmp$ret$0;
tmp = tmp + 1 | 0;
}
return tmp_1;
}
function isLowerCase(_this__u8e3s4) {
var tmp$ret$4;
{
var tmp$ret$3;
{
var tmp$ret$2;
{
var tmp$ret$1;
{
var tmp$ret$0;
{
var tmp0_asDynamic = toString(_this__u8e3s4);
tmp$ret$0 = tmp0_asDynamic;
}
var tmp1_unsafeCast = tmp$ret$0.toLowerCase();
tmp$ret$1 = tmp1_unsafeCast;
}
tmp$ret$2 = tmp$ret$1;
}
tmp$ret$3 = charSequenceGet(tmp$ret$2, 0);
}
tmp$ret$4 = tmp$ret$3;
}
return equals(new Char(tmp$ret$4), new Char(_this__u8e3s4));
}
function caseInsensitiveMap() {
return new CaseInsensitiveMap();
}
function SilentSupervisor(parent) {
var tmp = SupervisorJob(parent);
var tmp$ret$0;
{
tmp$ret$0 = new _no_name_provided__qut3iv();
}
return tmp.f5(tmp$ret$0);
}
function SilentSupervisor$default(parent, $mask0, $handler) {
if (!(($mask0 & 1) === 0))
parent = null;
return SilentSupervisor(parent);
}
function _no_name_provided__qut3iv() {
AbstractCoroutineContextElement.call(this, Key_getInstance());
}
_no_name_provided__qut3iv.prototype.kr = function (context, exception) {
var tmp$ret$0;
{
tmp$ret$0 = Unit_getInstance();
}
return tmp$ret$0;
};
_no_name_provided__qut3iv.$metadata$ = classMeta(undefined, [CoroutineExceptionHandler], undefined, undefined, undefined, AbstractCoroutineContextElement.prototype);
function DelegatingMutableSet$iterator$1(this$0) {
this.b1v_1 = this$0;
this.a1v_1 = this$0.c1v_1.g();
}
DelegatingMutableSet$iterator$1.prototype.h = function () {
return this.a1v_1.h();
};
DelegatingMutableSet$iterator$1.prototype.i = function () {
return this.b1v_1.d1v_1(this.a1v_1.i());
};
DelegatingMutableSet$iterator$1.prototype.f9 = function () {
return this.a1v_1.f9();
};
DelegatingMutableSet$iterator$1.$metadata$ = classMeta(undefined, [MutableIterator]);
function DelegatingMutableSet(delegate, convertTo, convert) {
this.c1v_1 = delegate;
this.d1v_1 = convertTo;
this.e1v_1 = convert;
this.f1v_1 = this.c1v_1.j();
}
DelegatingMutableSet.prototype.g1v = function (_this__u8e3s4) {
var tmp$ret$2;
{
var tmp$ret$1;
{
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
var tmp0_iterator = _this__u8e3s4.g();
while (tmp0_iterator.h()) {
var item = tmp0_iterator.i();
var tmp$ret$0;
{
tmp$ret$0 = this.e1v_1(item);
}
tmp0_mapTo.a(tmp$ret$0);
}
tmp$ret$1 = tmp0_mapTo;
}
tmp$ret$2 = tmp$ret$1;
}
return tmp$ret$2;
};
DelegatingMutableSet.prototype.h1v = function (_this__u8e3s4) {
var tmp$ret$2;
{
var tmp$ret$1;
{
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(_this__u8e3s4, 10));
var tmp0_iterator = _this__u8e3s4.g();
while (tmp0_iterator.h()) {
var item = tmp0_iterator.i();
var tmp$ret$0;
{
tmp$ret$0 = this.d1v_1(item);
}
tmp0_mapTo.a(tmp$ret$0);
}
tmp$ret$1 = tmp0_mapTo;
}
tmp$ret$2 = tmp$ret$1;
}
return tmp$ret$2;
};
DelegatingMutableSet.prototype.j = function () {
return this.f1v_1;
};
DelegatingMutableSet.prototype.i1v = function (element) {
return this.c1v_1.a(this.e1v_1(element));
};
DelegatingMutableSet.prototype.a = function (element) {
return this.i1v((element == null ? true : isObject(element)) ? element : THROW_CCE());
};
DelegatingMutableSet.prototype.j1v = function (elements) {
return this.c1v_1.k(this.g1v(elements));
};
DelegatingMutableSet.prototype.k = function (elements) {
return this.j1v(elements);
};
DelegatingMutableSet.prototype.j3 = function () {
this.c1v_1.j3();
};
DelegatingMutableSet.prototype.k1v = function (element) {
return this.c1v_1.q1(this.e1v_1(element));
};
DelegatingMutableSet.prototype.q1 = function (element) {
if (!(element == null ? true : isObject(element)))
return false;
return this.k1v((element == null ? true : isObject(element)) ? element : THROW_CCE());
};
DelegatingMutableSet.prototype.l1v = function (elements) {
return this.c1v_1.r1(this.g1v(elements));
};
DelegatingMutableSet.prototype.r1 = function (elements) {
return this.l1v(elements);
};
DelegatingMutableSet.prototype.m = function () {
return this.c1v_1.m();
};
DelegatingMutableSet.prototype.g = function () {
return new DelegatingMutableSet$iterator$1(this);
};
DelegatingMutableSet.prototype.hashCode = function () {
return hashCode(this.c1v_1);
};
DelegatingMutableSet.prototype.equals = function (other) {
var tmp;
if (other == null) {
tmp = true;
} else {
tmp = !(!(other == null) ? isInterface(other, Set) : false);
}
if (tmp)
return false;
var elements = this.h1v(this.c1v_1);
var tmp_0;
if (other.r1(elements)) {
var tmp$ret$0;
{
var tmp0_containsAll = other;
tmp$ret$0 = elements.r1(tmp0_containsAll);
}
tmp_0 = tmp$ret$0;
} else {
tmp_0 = false;
}
return tmp_0;
};
DelegatingMutableSet.prototype.toString = function () {
return toString_0(this.h1v(this.c1v_1));
};
DelegatingMutableSet.$metadata$ = classMeta('DelegatingMutableSet', [MutableSet]);
function Hash() {
Hash_instance = this;
}
Hash.prototype.m1v = function (objects) {
return hashCode(toList(objects));
};
Hash.$metadata$ = objectMeta('Hash');
var Hash_instance;
function Hash_getInstance() {
if (Hash_instance == null)
new Hash();
return Hash_instance;
}
function withLock(_this__u8e3s4, block) {
try {
_this__u8e3s4.n1v();
return block();
}finally {
_this__u8e3s4.o1v();
}
}
function ensureListForKey($this, name, size) {
if ($this.r1v_1) {
throw IllegalStateException_init_$Create$('Cannot modify a builder after build() function already invoked. Make sure you call build() last.');
}
var tmp0_elvis_lhs = $this.q1v_1.n2(name);
var tmp;
if (tmp0_elvis_lhs == null) {
var tmp$ret$0;
{
var tmp0_also = ArrayList_init_$Create$(size);
{
}
{
$this.s1v(name);
{
var tmp0_set = $this.q1v_1;
tmp0_set.c(name, tmp0_also);
}
}
tmp$ret$0 = tmp0_also;
}
tmp = tmp$ret$0;
} else {
tmp = tmp0_elvis_lhs;
}
return tmp;
}
function StringValuesBuilder$appendAll$lambda(this$0) {
return function (name, values) {
this$0.t1v(name, values);
return Unit_getInstance();
};
}
function StringValuesBuilder(caseInsensitiveName, size) {
this.p1v_1 = caseInsensitiveName;
this.q1v_1 = this.p1v_1 ? caseInsensitiveMap() : LinkedHashMap_init_$Create$_0(size);
this.r1v_1 = false;
}
StringValuesBuilder.prototype.p2 = function () {
return this.q1v_1;
};
StringValuesBuilder.prototype.u1v = function (_set____db54di) {
this.r1v_1 = _set____db54di;
};
StringValuesBuilder.prototype.v1v = function () {
return this.r1v_1;
};
StringValuesBuilder.prototype.w1v = function (name) {
return this.q1v_1.n2(name);
};
StringValuesBuilder.prototype.m = function () {
return this.q1v_1.m();
};
StringValuesBuilder.prototype.x1v = function () {
return unmodifiable(this.q1v_1.w());
};
StringValuesBuilder.prototype.y1v = function (name, value) {
this.z1v(value);
var list = ensureListForKey(this, name, 1);
list.j3();
list.a(value);
};
StringValuesBuilder.prototype.s1u = function (name) {
var tmp0_safe_receiver = this.w1v(name);
return tmp0_safe_receiver == null ? null : firstOrNull(tmp0_safe_receiver);
};
StringValuesBuilder.prototype.a1w = function (name, value) {
this.z1v(value);
ensureListForKey(this, name, 1).a(value);
};
StringValuesBuilder.prototype.b1w = function (stringValues) {
stringValues.c1w(StringValuesBuilder$appendAll$lambda(this));
};
StringValuesBuilder.prototype.t1v = function (name, values) {
var tmp$ret$0;
{
var tmp0_safe_receiver = isInterface(values, Collection) ? values : null;
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.j();
var tmp0_let = ensureListForKey(this, name, tmp1_elvis_lhs == null ? 2 : tmp1_elvis_lhs);
{
}
var tmp0_iterator = values.g();
while (tmp0_iterator.h()) {
var element = tmp0_iterator.i();
{
this.z1v(element);
tmp0_let.a(element);
}
}
tmp$ret$0 = Unit_getInstance();
}
};
StringValuesBuilder.prototype.d1w = function (name) {
this.q1v_1.fc(name);
};
StringValuesBuilder.prototype.j3 = function () {
this.q1v_1.j3();
};
StringValuesBuilder.prototype.s1v = function (name) {
};
StringValuesBuilder.prototype.z1v = function (value) {
};
StringValuesBuilder.$metadata$ = classMeta('StringValuesBuilder');
function appendAll(_this__u8e3s4, builder) {
var tmp$ret$2;
{
{
}
{
{
var tmp0_forEach = builder.x1v();
var tmp0_iterator = tmp0_forEach.g();
while (tmp0_iterator.h()) {
var element = tmp0_iterator.i();
{
var tmp$ret$0;
{
tmp$ret$0 = element.x();
}
var name = tmp$ret$0;
var tmp$ret$1;
{
tmp$ret$1 = element.y();
}
var values = tmp$ret$1;
_this__u8e3s4.t1v(name, values);
}
}
}
}
tmp$ret$2 = _this__u8e3s4;
}
return tmp$ret$2;
}
function flattenEntries(_this__u8e3s4) {
var tmp$ret$5;
{
var tmp0_flatMap = _this__u8e3s4.x1v();
var tmp$ret$4;
{
var tmp0_flatMapTo = ArrayList_init_$Create$_0();
var tmp0_iterator = tmp0_flatMap.g();
while (tmp0_iterator.h()) {
var element = tmp0_iterator.i();
var tmp$ret$3;
{
var tmp$ret$2;
{
var tmp0_map = element.y();
var tmp$ret$1;
{
var tmp0_mapTo = ArrayList_init_$Create$(collectionSizeOrDefault(tmp0_map, 10));
var tmp0_iterator_0 = tmp0_map.g();
while (tmp0_iterator_0.h()) {
var item = tmp0_iterator_0.i();
var tmp$ret$0;
{
tmp$ret$0 = to(element.x(), item);
}
tmp0_mapTo.a(tmp$ret$0);
}
tmp$ret$1 = tmp0_mapTo;
}
tmp$ret$2 = tmp$ret$1;
}
tmp$ret$3 = tmp$ret$2;
}
var list = tmp$ret$3;
addAll(tmp0_flatMapTo, list);
}
tmp$ret$4 = tmp0_flatMapTo;
}
tmp$ret$5 = tmp$ret$4;
}
return tmp$ret$5;
}
function StringValues() {
}
StringValues.$metadata$ = interfaceMeta('StringValues');
function listForKey($this, name) {
return $this.p2().n2(name);
}
function StringValuesImpl$values$delegate$lambda(this$0, $values) {
return function () {
var tmp;
if (this$0.e1w()) {
var tmp$ret$0;
{
var tmp0_apply = caseInsensitiveMap();
{
}
{
tmp0_apply.e4($values);
}
tmp$ret$0 = tmp0_apply;
}
tmp = tmp$ret$0;
} else {
tmp = toMap($values);
}
return tmp;
};
}
function StringValuesImpl(caseInsensitiveName, values) {
this.f1w_1 = caseInsensitiveName;
var tmp = this;
tmp.g1w_1 = lazy(StringValuesImpl$values$delegate$lambda(this, values));
}
StringValuesImpl.prototype.e1w = function () {
return this.f1w_1;
};
StringValuesImpl.prototype.p2 = function () {
var tmp$ret$0;
{
var tmp0_getValue = values$factory();
tmp$ret$0 = this.g1w_1.y();
}
return tmp$ret$0;
};
StringValuesImpl.prototype.s1u = function (name) {
var tmp0_safe_receiver = listForKey(this, name);
return tmp0_safe_receiver == null ? null : firstOrNull(tmp0_safe_receiver);
};
StringValuesImpl.prototype.w1v = function (name) {
return listForKey(this, name);
};
StringValuesImpl.prototype.h1w = function () {
return unmodifiable(this.p2().o2());
};
StringValuesImpl.prototype.m = function () {
return this.p2().m();
};
StringValuesImpl.prototype.x1v = function () {
return unmodifiable(this.p2().w());
};
StringValuesImpl.prototype.c1w = function (body) {
var tmp$ret$0;
{
var tmp0_iterator = this.p2();
tmp$ret$0 = tmp0_iterator.w().g();
}
var tmp0_iterator_0 = tmp$ret$0;
while (tmp0_iterator_0.h()) {
var tmp1_loop_parameter = tmp0_iterator_0.i();
var tmp$ret$1;
{
tmp$ret$1 = tmp1_loop_parameter.x();
}
var key = tmp$ret$1;
var tmp$ret$2;
{
tmp$ret$2 = tmp1_loop_parameter.y();
}
var value = tmp$ret$2;
body(key, value);
}
};
StringValuesImpl.prototype.toString = function () {
return 'StringValues(case=' + !this.e1w() + ') ' + this.x1v();
};
StringValuesImpl.prototype.equals = function (other) {
if (this === other)
return true;
if (!(!(other == null) ? isInterface(other, StringValues) : false))
return false;
if (!(this.e1w() === other.e1w()))
return false;
return entriesEquals(this.x1v(), other.x1v());
};
StringValuesImpl.prototype.hashCode = function () {
return entriesHashCode(this.x1v(), imul(31, this.e1w() | 0));
};
StringValuesImpl.$metadata$ = classMeta('StringValuesImpl', [StringValues]);
function entriesEquals(a, b) {
return equals(a, b);
}
function entriesHashCode(entries, seed) {
return imul(seed, 31) + hashCode(entries) | 0;
}
function values$factory() {
return getPropertyCallableRef('values', 1, KProperty1, function (receiver) {
return receiver.p2();
}, null);
}
function toLowerCasePreservingASCIIRules(_this__u8e3s4) {
var tmp$ret$1;
$l$block: {
var inductionVariable = 0;
var last = charSequenceLength(_this__u8e3s4) - 1 | 0;
if (inductionVariable <= last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
var tmp$ret$0;
{
var tmp0__anonymous__q1qw7t = charSequenceGet(_this__u8e3s4, index);
tmp$ret$0 = !equals(new Char(toLowerCasePreservingASCII(tmp0__anonymous__q1qw7t)), new Char(tmp0__anonymous__q1qw7t));
}
if (tmp$ret$0) {
tmp$ret$1 = index;
break $l$block;
}
}
while (inductionVariable <= last);
tmp$ret$1 = -1;
}
var firstIndex = tmp$ret$1;
if (firstIndex === -1) {
return _this__u8e3s4;
}
var original = _this__u8e3s4;
var tmp$ret$3;
{
var tmp1_buildString = _this__u8e3s4.length;
{
}
var tmp$ret$2;
{
var tmp0_apply = StringBuilder_init_$Create$(tmp1_buildString);
{
}
{
tmp0_apply.pg(original, 0, firstIndex);
var inductionVariable_0 = firstIndex;
var last_0 = get_lastIndex(original);
if (inductionVariable_0 <= last_0)
do {
var index_0 = inductionVariable_0;
inductionVariable_0 = inductionVariable_0 + 1 | 0;
tmp0_apply.n6(toLowerCasePreservingASCII(charSequenceGet(original, index_0)));
}
while (!(index_0 === last_0));
}
tmp$ret$2 = tmp0_apply;
}
tmp$ret$3 = tmp$ret$2.toString();
}
return tmp$ret$3;
}
function toLowerCasePreservingASCII(ch) {
var tmp0_subject = ch;
var tmp;
if (_Char___init__impl__6a9atx(65) <= tmp0_subject ? tmp0_subject <= _Char___init__impl__6a9atx(90) : false) {
tmp = Char__plus_impl_qi7pgj(ch, 32);
} else if (_Char___init__impl__6a9atx(0) <= tmp0_subject ? tmp0_subject <= _Char___init__impl__6a9atx(127) : false) {
tmp = ch;
} else {
var tmp$ret$4;
{
var tmp$ret$3;
{
var tmp$ret$2;
{
var tmp$ret$1;
{
var tmp$ret$0;
{
var tmp0_asDynamic = toString(ch);
tmp$ret$0 = tmp0_asDynamic;
}
var tmp1_unsafeCast = tmp$ret$0.toLowerCase();
tmp$ret$1 = tmp1_unsafeCast;
}
tmp$ret$2 = tmp$ret$1;
}
tmp$ret$3 = charSequenceGet(tmp$ret$2, 0);
}
tmp$ret$4 = tmp$ret$3;
}
tmp = tmp$ret$4;
}
return tmp;
}
function CaseInsensitiveString(content) {
this.o1u_1 = content;
var tmp = this;
var tmp$ret$1;
{
var tmp0_toLowerCase = this.o1u_1;
var tmp$ret$0;
{
tmp$ret$0 = tmp0_toLowerCase;
}
tmp$ret$1 = tmp$ret$0.toLowerCase();
}
tmp.p1u_1 = getStringHashCode(tmp$ret$1);
}
CaseInsensitiveString.prototype.equals = function (other) {
var tmp0_safe_receiver = other instanceof CaseInsensitiveString ? other : null;
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.o1u_1;
return (tmp1_safe_receiver == null ? null : equals_0(tmp1_safe_receiver, this.o1u_1, true)) === true;
};
CaseInsensitiveString.prototype.hashCode = function () {
return this.p1u_1;
};
CaseInsensitiveString.prototype.toString = function () {
return this.o1u_1;
};
CaseInsensitiveString.$metadata$ = classMeta('CaseInsensitiveString');
function caseInsensitive(_this__u8e3s4) {
return new CaseInsensitiveString(_this__u8e3s4);
}
function sharedListOf(values) {
if (PlatformUtils_getInstance().l1w_1) {
var tmp$ret$0;
{
var tmp0_apply = new ConcurrentList();
{
}
{
addAll_0(tmp0_apply, values);
}
tmp$ret$0 = tmp0_apply;
}
return tmp$ret$0;
}
var tmp$ret$2;
{
var tmp1_mapTo = ArrayList_init_$Create$(values.length);
var indexedObject = values;
var inductionVariable = 0;
var last = indexedObject.length;
while (inductionVariable < last) {
var item = indexedObject[inductionVariable];
inductionVariable = inductionVariable + 1 | 0;
var tmp$ret$1;
{
tmp$ret$1 = item;
}
tmp1_mapTo.a(tmp$ret$1);
}
tmp$ret$2 = tmp1_mapTo;
}
return tmp$ret$2;
}
function _set_data__9licbx($this, _set____db54di) {
return $this.n1w_1.p5($this, data$factory(), _set____db54di);
}
function _get_data__d5abxd($this) {
return $this.n1w_1.o5($this, data$factory_0());
}
function _set_size__9twho6($this, _set____db54di) {
return $this.o1w_1.p5($this, size$factory(), _set____db54di);
}
function checkIndex($this, index) {
if (index >= $this.j() ? true : index < 0)
throw IndexOutOfBoundsException_init_$Create$();
}
function increaseCapacity($this, targetCapacity) {
var newData = new SharedList(targetCapacity);
var inductionVariable = 0;
var last = _get_data__d5abxd($this).q1w_1;
if (inductionVariable < last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
newData.s1w(index, _get_data__d5abxd($this).l(index));
}
while (inductionVariable < last);
_set_data__9licbx($this, newData);
}
function increaseCapacity$default($this, targetCapacity, $mask0, $handler) {
if (!(($mask0 & 2) === 0))
targetCapacity = imul(_get_data__d5abxd($this).q1w_1, 2);
return increaseCapacity($this, targetCapacity);
}
function sweep($this, firstNull) {
var writePosition = firstNull;
var inductionVariable = writePosition + 1 | 0;
var last = $this.j();
if (inductionVariable < last)
$l$loop: do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (_get_data__d5abxd($this).l(index) == null) {
continue $l$loop;
}
_get_data__d5abxd($this).s1w(writePosition, _get_data__d5abxd($this).l(index));
writePosition = writePosition + 1 | 0;
}
while (inductionVariable < last);
var inductionVariable_0 = writePosition;
var last_0 = $this.j();
if (inductionVariable_0 < last_0)
do {
var index_0 = inductionVariable_0;
inductionVariable_0 = inductionVariable_0 + 1 | 0;
_get_data__d5abxd($this).s1w(index_0, null);
}
while (inductionVariable_0 < last_0);
_set_size__9twho6($this, writePosition);
}
function reserve($this, index, gapSize) {
var targetSize = gapSize + $this.j() | 0;
while (_get_data__d5abxd($this).q1w_1 < targetSize) {
increaseCapacity$default($this, 0, 2, null);
}
var readPosition = $this.j() - 1 | 0;
while (readPosition >= index) {
_get_data__d5abxd($this).s1w(readPosition + gapSize | 0, _get_data__d5abxd($this).l(readPosition));
readPosition = readPosition - 1 | 0;
}
var inductionVariable = index;
var last = index + gapSize | 0;
if (inductionVariable < last)
do {
var current = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
_get_data__d5abxd($this).s1w(current, null);
}
while (inductionVariable < last);
var tmp1_this = $this;
_set_size__9twho6(tmp1_this, tmp1_this.j() + gapSize | 0);
}
function ConcurrentList$listIterator$1($index, this$0) {
this.u1w_1 = this$0;
var tmp = this;
var tmp$ret$0;
{
tmp$ret$0 = new shared$1($index);
}
tmp.t1w_1 = tmp$ret$0;
}
ConcurrentList$listIterator$1.prototype.v1w = function (_set____db54di) {
return this.t1w_1.p5(this, current$factory(), _set____db54di);
};
ConcurrentList$listIterator$1.prototype.w1w = function () {
return this.t1w_1.o5(this, current$factory_0());
};
ConcurrentList$listIterator$1.prototype.h = function () {
return this.w1w() < this.u1w_1.j();
};
ConcurrentList$listIterator$1.prototype.i = function () {
var tmp0_this = this;
var tmp1 = tmp0_this.w1w();
tmp0_this.v1w(tmp1 + 1 | 0);
return this.u1w_1.l(tmp1);
};
ConcurrentList$listIterator$1.prototype.f9 = function () {
this.u1w_1.i3(this.w1w() - 1 | 0);
var tmp0_this = this;
var tmp1 = tmp0_this.w1w();
tmp0_this.v1w(tmp1 - 1 | 0);
};
ConcurrentList$listIterator$1.$metadata$ = classMeta(undefined, [MutableListIterator]);
function ConcurrentList() {
var tmp = this;
var tmp$ret$0;
{
var tmp0_shared = new SharedList(32);
tmp$ret$0 = new shared$1(tmp0_shared);
}
tmp.n1w_1 = tmp$ret$0;
var tmp_0 = this;
var tmp$ret$1;
{
tmp$ret$1 = new shared$1(0);
}
tmp_0.o1w_1 = tmp$ret$1;
this.p1w_1 = new Object();
makeShared(this);
}
ConcurrentList.prototype.j = function () {
return this.o1w_1.o5(this, size$factory_0());
};
ConcurrentList.prototype.hashCode = function () {
var tmp$ret$4;
{
var tmp0_synchronized = this.p1w_1;
var tmp$ret$3;
{
var tmp$ret$2;
{
var accumulator = 7;
var tmp0_iterator = this.g();
while (tmp0_iterator.h()) {
var element = tmp0_iterator.i();
var tmp$ret$1;
{
var tmp0__anonymous__q1qw7t = accumulator;
var tmp = Hash_getInstance();
var tmp$ret$0;
{
var tmp0_safe_receiver = element;
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : hashCode(tmp0_safe_receiver);
tmp$ret$0 = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
}
tmp$ret$1 = tmp.m1v([tmp0__anonymous__q1qw7t, tmp$ret$0]);
}
accumulator = tmp$ret$1;
}
tmp$ret$2 = accumulator;
}
tmp$ret$3 = tmp$ret$2;
}
tmp$ret$4 = tmp$ret$3;
}
return tmp$ret$4;
};
ConcurrentList.prototype.equals = function (other) {
var tmp$ret$1;
{
var tmp0_synchronized = this.p1w_1;
var tmp$ret$0;
$l$block_0: {
var tmp;
var tmp_0;
if (other == null) {
tmp_0 = true;
} else {
tmp_0 = !(!(other == null) ? isInterface(other, List) : false);
}
if (tmp_0) {
tmp = true;
} else {
tmp = !(other.j() === this.j());
}
if (tmp) {
tmp$ret$0 = false;
break $l$block_0;
}
{
var index = 0;
var tmp0_iterator = this.g();
while (tmp0_iterator.h()) {
var item = tmp0_iterator.i();
{
var tmp1 = index;
index = tmp1 + 1 | 0;
var tmp0__anonymous__q1qw7t = checkIndexOverflow(tmp1);
if (!equals(other.l(tmp0__anonymous__q1qw7t), item)) {
tmp$ret$0 = false;
break $l$block_0;
}
}
}
}
tmp$ret$0 = true;
}
tmp$ret$1 = tmp$ret$0;
}
return tmp$ret$1;
};
ConcurrentList.prototype.toString = function () {
var tmp$ret$3;
{
var tmp0_synchronized = this.p1w_1;
var tmp$ret$2;
{
var tmp$ret$1;
{
{
}
var tmp$ret$0;
{
var tmp0_apply = StringBuilder_init_$Create$_0();
{
}
{
tmp0_apply.n6(_Char___init__impl__6a9atx(91));
{
var index = 0;
var tmp0_iterator = this.g();
while (tmp0_iterator.h()) {
var item = tmp0_iterator.i();
{
var tmp1 = index;
index = tmp1 + 1 | 0;
var tmp0__anonymous__q1qw7t = checkIndexOverflow(tmp1);
tmp0_apply.sg('' + item);
if ((tmp0__anonymous__q1qw7t + 1 | 0) < this.j()) {
tmp0_apply.sg(', ');
}
}
}
}
tmp0_apply.n6(_Char___init__impl__6a9atx(93));
}
tmp$ret$0 = tmp0_apply;
}
tmp$ret$1 = tmp$ret$0.toString();
}
tmp$ret$2 = tmp$ret$1;
}
tmp$ret$3 = tmp$ret$2;
}
return tmp$ret$3;
};
ConcurrentList.prototype.l1 = function (element) {
return this.x1w(element) >= 0;
};
ConcurrentList.prototype.q1 = function (element) {
if (!(element == null ? true : isObject(element)))
return false;
return this.l1((element == null ? true : isObject(element)) ? element : THROW_CCE());
};
ConcurrentList.prototype.v3 = function (elements) {
var tmp$ret$0;
$l$block_0: {
var tmp;
if (isInterface(elements, Collection)) {
tmp = elements.m();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = true;
break $l$block_0;
}
var tmp0_iterator = elements.g();
while (tmp0_iterator.h()) {
var element = tmp0_iterator.i();
var tmp$ret$1;
{
tmp$ret$1 = this.l1(element);
}
if (!tmp$ret$1) {
tmp$ret$0 = false;
break $l$block_0;
}
}
tmp$ret$0 = true;
}
return tmp$ret$0;
};
ConcurrentList.prototype.r1 = function (elements) {
return this.v3(elements);
};
ConcurrentList.prototype.l = function (index) {
var tmp$ret$0;
{
var tmp0_synchronized = this.p1w_1;
if (index >= this.j()) {
throw NoSuchElementException_init_$Create$();
}
return ensureNotNull(_get_data__d5abxd(this).l(index));
}
return tmp$ret$0;
};
ConcurrentList.prototype.x1w = function (element) {
var tmp$ret$0;
{
var tmp0_synchronized = this.p1w_1;
var inductionVariable = 0;
var last = this.j();
if (inductionVariable < last)
do {
var index = inductionVariable;
inductionVariable = inductionVariable + 1 | 0;
if (equals(_get_data__d5abxd(this).l(index), element)) {
return index;
}
}
while (inductionVariable < last);
return -1;
}
return tmp$ret$0;
};
ConcurrentList.prototype.m = function () {
return this.j() === 0;
};
ConcurrentList.prototype.y1w = function (element) {
var tmp$ret$0;
{
var tmp0_synchronized = this.p1w_1;
if (this.j() >= _get_data__d5abxd(this).q1w_1) {
increaseCapacity$default(this, 0, 2, null);
}
_get_data__d5abxd(this).s1w(this.j(), element);
var tmp0_this = this;
_set_size__9twho6(tmp0_this, tmp0_this.j() + 1 | 0);
return true;
}
return tmp$ret$0;
};
ConcurrentList.prototype.a = function (element) {
return this.y1w((element == null ? true : isObject(element)) ? element : THROW_CCE());
};
ConcurrentList.prototype.z1w = function (index, element) {
reserve(this, index, 1);
_get_data__d5abxd(this).s1w(index, element);
};
ConcurrentList.prototype.e3 = function (index, element) {
return this.z1w(index, (element == null ? true : isObject(element)) ? element : THROW_CCE());
};
ConcurrentList.prototype.a1x = function (elements) {
var tmp$ret$0;
$l$block_0: {
var tmp;
if (isInterface(elements, Collection)) {
tmp = elements.m();
} else {
tmp = false;
}
if (tmp) {
tmp$ret$0 = true;
break $l$block_0;
}
var tmp0_iterator = elements.g();
while (tmp0_iterator.h()) {
var element = tmp0_iterator.i();
var tmp$ret$1;
{
tmp$ret$1 = this.y1w(element);
}
if (!tmp$ret$1) {
tmp$ret$0 = false;
break $l$block_0;
}
}
tmp$ret$0 = true;
}
var tmp$ret$2;
{
tmp$ret$2 = !elements.m();
}
return tmp$ret$2;
};
ConcurrentList.prototype.k = function (elements) {
return this.a1x(elements);
};
ConcurrentList.prototype.j3 = function () {
var tmp$ret$0;
{
var tmp0_synchronized = this.p1w_1;
_set_data__9licbx(this, new SharedList(32));
tmp$ret$0 = _set_size__9twho6(this, 0);
}
return tmp$ret$0;
};
ConcurrentList.prototype.g = function () {
return this.b1x();
};
ConcurrentList.prototype.b1x = function () {
return this.n3(0);
};
ConcurrentList.prototype.n3 = function (index) {
return new ConcurrentList$listIterator$1(index, this);
};
ConcurrentList.prototype.c1x = function (element) {
var tmp$ret$0;
{
var tmp0_synchronized = this.p1w_1;
var index = this.x1w(element);
if (index < 0) {
return false;
}
this.i3(index);
return true;
}
return tmp$ret$0;
};
ConcurrentList.prototype.h3 = function (element) {
if (!(element == null ? true : isObject(element)))
return false;
return this.c1x((element == null ? true : isObject(element)) ? element : THROW_CCE());
};
ConcurrentList.prototype.i3 = function (index) {
var tmp$ret$0;
{
var tmp0_synchronized = this.p1w_1;
checkIndex(this, index);
var old = _get_data__d5abxd(this).l(index);
_get_data__d5abxd(this).s1w(index, null);
sweep(this, index);
return ensureNotNull(old);
}
return tmp$ret$0;
};
ConcurrentList.prototype.d1x = function (index, element) {
var tmp$ret$0;
{
var tmp0_synchronized = this.p1w_1;
checkIndex(this, index);
var old = _get_data__d5abxd(this).l(index);
_get_data__d5abxd(this).s1w(index, element);
var tmp0_elvis_lhs = old;
return tmp0_elvis_lhs == null ? element : tmp0_elvis_lhs;
}
return tmp$ret$0;
};
ConcurrentList.prototype.f3 = function (index, element) {
return this.d1x(index, (element == null ? true : isObject(element)) ? element : THROW_CCE());
};
ConcurrentList.$metadata$ = classMeta('ConcurrentList', [MutableList]);
function data$factory() {
return getPropertyCallableRef('data', 1, KMutableProperty1, function (receiver) {
return _get_data__d5abxd(receiver);
}, function (receiver, value) {
return _set_data__9licbx(receiver, value);
});
}
function data$factory_0() {
return getPropertyCallableRef('data', 1, KMutableProperty1, function (receiver) {
return _get_data__d5abxd(receiver);
}, function (receiver, value) {
return _set_data__9licbx(receiver, value);
});
}
function size$factory() {
return getPropertyCallableRef('size', 1, KMutableProperty1, function (receiver) {
return receiver.j();
}, function (receiver, value) {
return _set_size__9twho6(receiver, value);
});
}
function size$factory_0() {
return getPropertyCallableRef('size', 1, KMutableProperty1, function (receiver) {
return receiver.j();
}, function (receiver, value) {
return _set_size__9twho6(receiver, value);
});
}
function current$factory() {
return getPropertyCallableRef('current', 1, KMutableProperty1, function (receiver) {
return receiver.w1w();
}, function (receiver, value) {
return receiver.v1w(value);
});
}
function current$factory_0() {
return getPropertyCallableRef('current', 1, KMutableProperty1, function (receiver) {
return receiver.w1w();
}, function (rec