@fluencelabs/aqua-api
Version:
1,432 lines • 9.89 MB
JavaScript
'use strict';
import * as $i_$002e$002fmeta$002dutils$002ejs from "./meta-utils.js";
import * as $i_fs from "fs";
import * as $i_module from "module";
import * as $i_os from "os";
import * as $i_path from "path";
import * as $i_punycode from "punycode";
var $linkingInfo = Object.freeze({
"esVersion": 6,
"assumingES6": true,
"productionMode": true,
"linkerVersion": "1.13.2",
"fileLevelThis": this
});
var $getOwnPropertyDescriptors = (Object.getOwnPropertyDescriptors || (() => {
var ownKeysFun;
if ((((typeof Reflect) !== "undefined") && Reflect.ownKeys)) {
ownKeysFun = Reflect.ownKeys
} else {
var getOwnPropertySymbols = (Object.getOwnPropertySymbols || ((o) => []));
ownKeysFun = ((o) => Object.getOwnPropertyNames(o).concat(getOwnPropertySymbols(o)))
};
return ((o) => {
var ownKeys = ownKeysFun(o);
var descriptors = {};
var len = (ownKeys.length | 0);
var i = 0;
while ((i !== len)) {
var key = ownKeys[i];
Object.defineProperty(descriptors, key, {
"configurable": true,
"enumerable": true,
"writable": true,
"value": Object.getOwnPropertyDescriptor(o, key)
});
i = ((i + 1) | 0)
};
return descriptors
})
})());
var $L0;
function $propertyName(arg0) {
for (var prop in arg0) {
return prop
}
}
function $Char(c) {
this.c = c
}
$Char.prototype.toString = (function() {
return String.fromCharCode(this.c)
});
function $noIsInstance(arg0) {
throw new TypeError("Cannot call isInstance() on a Class representing a JS trait/object")
}
function $newArrayObject(arg0, arg1) {
return $newArrayObjectInternal(arg0, arg1, 0)
}
function $newArrayObjectInternal(arg0, arg1, arg2) {
var result = new arg0.constr(arg1[arg2]);
if ((arg2 < (arg1.length - 1))) {
var subArrayClassData = arg0.componentData;
var subLengthIndex = (arg2 + 1);
var underlying = result.u;
for (var i = 0; (i < underlying.length); (i++)) {
underlying[i] = $newArrayObjectInternal(subArrayClassData, arg1, subLengthIndex)
}
};
return result
}
function $objectClone(arg0) {
return Object.create(Object.getPrototypeOf(arg0), $getOwnPropertyDescriptors(arg0))
}
function $objectOrArrayClone(arg0) {
return (arg0.$classData.isArrayClass ? arg0.clone__O() : $objectClone(arg0))
}
function $objectGetClass(arg0) {
switch ((typeof arg0)) {
case "string": {
return $d_T.getClassOf()
}
case "number": {
if ($isInt(arg0)) {
if ((((arg0 << 24) >> 24) === arg0)) {
return $d_jl_Byte.getClassOf()
} else if ((((arg0 << 16) >> 16) === arg0)) {
return $d_jl_Short.getClassOf()
} else {
return $d_jl_Integer.getClassOf()
}
} else if ($isFloat(arg0)) {
return $d_jl_Float.getClassOf()
} else {
return $d_jl_Double.getClassOf()
}
}
case "boolean": {
return $d_jl_Boolean.getClassOf()
}
case "undefined": {
return $d_jl_Void.getClassOf()
}
default: {
if ((arg0 === null)) {
return arg0.getClass__jl_Class()
} else if ((arg0 instanceof $c_RTLong)) {
return $d_jl_Long.getClassOf()
} else if ((arg0 instanceof $Char)) {
return $d_jl_Character.getClassOf()
} else if ((!(!(arg0 && arg0.$classData)))) {
return arg0.$classData.getClassOf()
} else {
return null
}
}
}
}
function $objectClassName(arg0) {
switch ((typeof arg0)) {
case "string": {
return "java.lang.String"
}
case "number": {
if ($isInt(arg0)) {
if ((((arg0 << 24) >> 24) === arg0)) {
return "java.lang.Byte"
} else if ((((arg0 << 16) >> 16) === arg0)) {
return "java.lang.Short"
} else {
return "java.lang.Integer"
}
} else if ($isFloat(arg0)) {
return "java.lang.Float"
} else {
return "java.lang.Double"
}
}
case "boolean": {
return "java.lang.Boolean"
}
case "undefined": {
return "java.lang.Void"
}
default: {
if ((arg0 === null)) {
return arg0.getClass__jl_Class()
} else if ((arg0 instanceof $c_RTLong)) {
return "java.lang.Long"
} else if ((arg0 instanceof $Char)) {
return "java.lang.Character"
} else if ((!(!(arg0 && arg0.$classData)))) {
return arg0.$classData.name
} else {
return null.getName__T()
}
}
}
}
function $dp_charAt__I__C(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__charAt__I__C(instance, x0)
} else {
return instance.charAt__I__C(x0)
}
}
function $dp_codePointAt__I__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__codePointAt__I__I(instance, x0)
} else {
return instance.codePointAt__I__I(x0)
}
}
function $dp_compareTo__O__I(instance, x0) {
switch ((typeof instance)) {
case "string": {
return $f_T__compareTo__O__I(instance, x0)
}
case "number": {
return $f_jl_Double__compareTo__O__I(instance, x0)
}
case "boolean": {
return $f_jl_Boolean__compareTo__O__I(instance, x0)
}
default: {
if ((instance instanceof $c_RTLong)) {
return $f_jl_Long__compareTo__O__I(instance, x0)
} else if ((instance instanceof $Char)) {
return $f_jl_Character__compareTo__O__I($uC(instance), x0)
} else {
return instance.compareTo__O__I(x0)
}
}
}
}
function $dp_compareTo__T__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__compareTo__T__I(instance, x0)
} else {
return instance.compareTo__T__I(x0)
}
}
function $dp_compareToIgnoreCase__T__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__compareToIgnoreCase__T__I(instance, x0)
} else {
return instance.compareToIgnoreCase__T__I(x0)
}
}
function $dp_endsWith__T__Z(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__endsWith__T__Z(instance, x0)
} else {
return instance.endsWith__T__Z(x0)
}
}
function $dp_equals__O__Z(instance, x0) {
switch ((typeof instance)) {
case "string": {
return $f_T__equals__O__Z(instance, x0)
}
case "number": {
return $f_jl_Double__equals__O__Z(instance, x0)
}
case "boolean": {
return $f_jl_Boolean__equals__O__Z(instance, x0)
}
case "undefined": {
return $f_jl_Void__equals__O__Z(instance, x0)
}
default: {
if (((!(!(instance && instance.$classData))) || (instance === null))) {
return instance.equals__O__Z(x0)
} else if ((instance instanceof $c_RTLong)) {
return $f_jl_Long__equals__O__Z(instance, x0)
} else if ((instance instanceof $Char)) {
return $f_jl_Character__equals__O__Z($uC(instance), x0)
} else {
return $c_O.prototype.equals__O__Z.call(instance, x0)
}
}
}
}
function $dp_getBytes__Ljava_nio_charset_Charset__AB(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__getBytes__Ljava_nio_charset_Charset__AB(instance, x0)
} else {
return instance.getBytes__Ljava_nio_charset_Charset__AB(x0)
}
}
function $dp_getChars__I__I__AC__I__V(instance, x0, x1, x2, x3) {
if (((typeof instance) === "string")) {
return $f_T__getChars__I__I__AC__I__V(instance, x0, x1, x2, x3)
} else {
return instance.getChars__I__I__AC__I__V(x0, x1, x2, x3)
}
}
function $dp_hashCode__I(instance) {
switch ((typeof instance)) {
case "string": {
return $f_T__hashCode__I(instance)
}
case "number": {
return $f_jl_Double__hashCode__I(instance)
}
case "boolean": {
return $f_jl_Boolean__hashCode__I(instance)
}
case "undefined": {
return $f_jl_Void__hashCode__I(instance)
}
default: {
if (((!(!(instance && instance.$classData))) || (instance === null))) {
return instance.hashCode__I()
} else if ((instance instanceof $c_RTLong)) {
return $f_jl_Long__hashCode__I(instance)
} else if ((instance instanceof $Char)) {
return $f_jl_Character__hashCode__I($uC(instance))
} else {
return $c_O.prototype.hashCode__I.call(instance)
}
}
}
}
function $dp_indexOf__I__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__indexOf__I__I(instance, x0)
} else {
return instance.indexOf__I__I(x0)
}
}
function $dp_lastIndexOf__I__I(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__lastIndexOf__I__I(instance, x0)
} else {
return instance.lastIndexOf__I__I(x0)
}
}
function $dp_length__I(instance) {
if (((typeof instance) === "string")) {
return $f_T__length__I(instance)
} else {
return instance.length__I()
}
}
function $dp_regionMatches__Z__I__T__I__I__Z(instance, x0, x1, x2, x3, x4) {
if (((typeof instance) === "string")) {
return $f_T__regionMatches__Z__I__T__I__I__Z(instance, x0, x1, x2, x3, x4)
} else {
return instance.regionMatches__Z__I__T__I__I__Z(x0, x1, x2, x3, x4)
}
}
function $dp_repeat__I__T(instance, x0) {
if (((typeof instance) === "string")) {
return $f_T__repeat__I__T(instance, x0)
} else {
return instance.repeat__I__T(x0)
}
}
function $dp_replaceFirst__T__T__T(instance, x0, x1) {
if (((typeof instance) === "string")) {
return $f_T__replaceFirst__T__T__T(instance, x0, x1)
} else {
return instance.replaceFirst__T__T__T(x0, x1)
}
}
function $dp_split__T__I__AT(instance, x0, x1) {
if (((typeof instance) === "string")) {
return $f_T__split__T__I__AT(instance, x0, x1)
} else {
return instance.split__T__I__AT(x0, x1)
}
}
function $dp_subSequence__I__I__jl_CharSequence(instance, x0, x1) {
if (((typeof instance) === "string")) {
return $f_T__subSequence__I__I__jl_CharSequence(instance, x0, x1)
} else {
return instance.subSequence__I__I__jl_CharSequence(x0, x1)
}
}
function $dp_toCharArray__AC(instance) {
if (((typeof instance) === "string")) {
return $f_T__toCharArray__AC(instance)
} else {
return instance.toCharArray__AC()
}
}
function $dp_toString__T(instance) {
return ((instance === (void 0)) ? "undefined" : instance.toString())
}
function $dp_trim__T(instance) {
if (((typeof instance) === "string")) {
return $f_T__trim__T(instance)
} else {
return instance.trim__T()
}
}
function $intDiv(arg0, arg1) {
if ((arg1 === 0)) {
throw new $c_jl_ArithmeticException("/ by zero")
} else {
return ((arg0 / arg1) | 0)
}
}
function $intMod(arg0, arg1) {
if ((arg1 === 0)) {
throw new $c_jl_ArithmeticException("/ by zero")
} else {
return ((arg0 % arg1) | 0)
}
}
function $doubleToInt(arg0) {
return ((arg0 > 2147483647) ? 2147483647 : ((arg0 < (-2147483648)) ? (-2147483648) : (arg0 | 0)))
}
function $resolveSuperRef(arg0, arg1) {
var getPrototypeOf = Object.getPrototyeOf;
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
var superProto = arg0.prototype;
while ((superProto !== null)) {
var desc = getOwnPropertyDescriptor(superProto, arg1);
if ((desc !== (void 0))) {
return desc
};
superProto = getPrototypeOf(superProto)
}
}
function $superGet(arg0, arg1, arg2) {
var desc = $resolveSuperRef(arg0, arg2);
if ((desc !== (void 0))) {
var getter = desc.get;
return ((getter !== (void 0)) ? getter.call(arg1) : getter.value)
}
}
function $superSet(arg0, arg1, arg2, arg3) {
var desc = $resolveSuperRef(arg0, arg2);
if ((desc !== (void 0))) {
var setter = desc.set;
if ((setter !== (void 0))) {
setter.call(arg1, arg3);
return (void 0)
}
};
throw new TypeError((("super has no setter '" + arg2) + "'."))
}
function $arraycopyGeneric(arg0, arg1, arg2, arg3, arg4) {
if ((((arg0 !== arg2) || (arg3 < arg1)) || (((arg1 + arg4) | 0) < arg3))) {
for (var i = 0; (i < arg4); i = ((i + 1) | 0)) {
arg2[((arg3 + i) | 0)] = arg0[((arg1 + i) | 0)]
}
} else {
for (var i = ((arg4 - 1) | 0); (i >= 0); i = ((i - 1) | 0)) {
arg2[((arg3 + i) | 0)] = arg0[((arg1 + i) | 0)]
}
}
}
var $lastIDHash = 0;
var $idHashCodeMap = new WeakMap();
function $systemIdentityHashCode(obj) {
switch ((typeof obj)) {
case "string": {
return $f_T__hashCode__I(obj)
}
case "number": {
return $f_jl_Double__hashCode__I(obj)
}
case "bigint": {
var biHash = 0;
if ((obj < BigInt(0))) {
obj = (~obj)
};
while ((obj !== BigInt(0))) {
biHash = (biHash ^ Number(BigInt.asIntN(32, obj)));
obj = (obj >> BigInt(32))
};
return biHash
}
case "boolean": {
return (obj ? 1231 : 1237)
}
case "undefined": {
return 0
}
case "symbol": {
var description = obj.description;
return ((description === (void 0)) ? 0 : $f_T__hashCode__I(description))
}
default: {
if ((obj === null)) {
return 0
} else {
var hash = $idHashCodeMap.get(obj);
if ((hash === (void 0))) {
hash = (($lastIDHash + 1) | 0);
$lastIDHash = hash;
$idHashCodeMap.set(obj, hash)
};
return hash
}
}
}
}
function $isByte(arg0) {
return ((((typeof arg0) === "number") && (((arg0 << 24) >> 24) === arg0)) && ((1 / arg0) !== (1 / (-0))))
}
function $isShort(arg0) {
return ((((typeof arg0) === "number") && (((arg0 << 16) >> 16) === arg0)) && ((1 / arg0) !== (1 / (-0))))
}
function $isInt(arg0) {
return ((((typeof arg0) === "number") && ((arg0 | 0) === arg0)) && ((1 / arg0) !== (1 / (-0))))
}
function $isFloat(arg0) {
return (((typeof arg0) === "number") && ((arg0 !== arg0) || (Math.fround(arg0) === arg0)))
}
function $bC(arg0) {
return new $Char(arg0)
}
var $bC0 = $bC(0);
function $uC(arg0) {
return ((arg0 === null) ? 0 : arg0.c)
}
function $uJ(arg0) {
return ((arg0 === null) ? $L0 : arg0)
}
function $ct_O__($thiz) {
return $thiz
}
/** @constructor */
function $c_O() {
/*<skip>*/
}
$c_O.prototype.constructor = $c_O;
/** @constructor */
function $h_O() {
/*<skip>*/
}
$h_O.prototype = $c_O.prototype;
$c_O.prototype.hashCode__I = (function() {
return $systemIdentityHashCode(this)
});
$c_O.prototype.equals__O__Z = (function(that) {
return (this === that)
});
$c_O.prototype.toString__T = (function() {
var i = this.hashCode__I();
return (($objectClassName(this) + "@") + (+(i >>> 0.0)).toString(16))
});
$c_O.prototype.toString = (function() {
return this.toString__T()
});
function $ac_O(arg) {
if (((typeof arg) === "number")) {
this.u = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.u[i] = null
}
} else {
this.u = arg
}
}
$ac_O.prototype = new $h_O();
$ac_O.prototype.constructor = $ac_O;
$ac_O.prototype.copyTo = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
});
$ac_O.prototype.clone__O = (function() {
return new $ac_O(this.u.slice())
});
function $ah_O() {
/*<skip>*/
}
$ah_O.prototype = $ac_O.prototype;
function $ac_Z(arg) {
if (((typeof arg) === "number")) {
this.u = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.u[i] = false
}
} else {
this.u = arg
}
}
$ac_Z.prototype = new $h_O();
$ac_Z.prototype.constructor = $ac_Z;
$ac_Z.prototype.copyTo = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
});
$ac_Z.prototype.clone__O = (function() {
return new $ac_Z(this.u.slice())
});
function $ac_C(arg) {
if (((typeof arg) === "number")) {
this.u = new Uint16Array(arg)
} else {
this.u = arg
}
}
$ac_C.prototype = new $h_O();
$ac_C.prototype.constructor = $ac_C;
$ac_C.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_C.prototype.clone__O = (function() {
return new $ac_C(this.u.slice())
});
function $ac_B(arg) {
if (((typeof arg) === "number")) {
this.u = new Int8Array(arg)
} else {
this.u = arg
}
}
$ac_B.prototype = new $h_O();
$ac_B.prototype.constructor = $ac_B;
$ac_B.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_B.prototype.clone__O = (function() {
return new $ac_B(this.u.slice())
});
function $ac_S(arg) {
if (((typeof arg) === "number")) {
this.u = new Int16Array(arg)
} else {
this.u = arg
}
}
$ac_S.prototype = new $h_O();
$ac_S.prototype.constructor = $ac_S;
$ac_S.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_S.prototype.clone__O = (function() {
return new $ac_S(this.u.slice())
});
function $ac_I(arg) {
if (((typeof arg) === "number")) {
this.u = new Int32Array(arg)
} else {
this.u = arg
}
}
$ac_I.prototype = new $h_O();
$ac_I.prototype.constructor = $ac_I;
$ac_I.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_I.prototype.clone__O = (function() {
return new $ac_I(this.u.slice())
});
function $ac_J(arg) {
if (((typeof arg) === "number")) {
this.u = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.u[i] = $L0
}
} else {
this.u = arg
}
}
$ac_J.prototype = new $h_O();
$ac_J.prototype.constructor = $ac_J;
$ac_J.prototype.copyTo = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
});
$ac_J.prototype.clone__O = (function() {
return new $ac_J(this.u.slice())
});
function $ac_F(arg) {
if (((typeof arg) === "number")) {
this.u = new Float32Array(arg)
} else {
this.u = arg
}
}
$ac_F.prototype = new $h_O();
$ac_F.prototype.constructor = $ac_F;
$ac_F.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_F.prototype.clone__O = (function() {
return new $ac_F(this.u.slice())
});
function $ac_D(arg) {
if (((typeof arg) === "number")) {
this.u = new Float64Array(arg)
} else {
this.u = arg
}
}
$ac_D.prototype = new $h_O();
$ac_D.prototype.constructor = $ac_D;
$ac_D.prototype.copyTo = (function(srcPos, dest, destPos, length) {
dest.u.set(this.u.subarray(srcPos, ((srcPos + length) | 0)), destPos)
});
$ac_D.prototype.clone__O = (function() {
return new $ac_D(this.u.slice())
});
function $TypeData() {
this.constr = (void 0);
this.ancestors = null;
this.componentData = null;
this.arrayBase = null;
this.arrayDepth = 0;
this.zero = null;
this.arrayEncodedName = "";
this._classOf = (void 0);
this._arrayOf = (void 0);
this.isAssignableFromFun = (void 0);
this.wrapArray = (void 0);
this.isJSType = false;
this.name = "";
this.isPrimitive = false;
this.isInterface = false;
this.isArrayClass = false;
this.isInstance = (void 0)
}
$TypeData.prototype.initPrim = (function(zero, arrayEncodedName, displayName, arrayClass, typedArrayClass) {
this.ancestors = {};
this.zero = zero;
this.arrayEncodedName = arrayEncodedName;
var self = this;
this.isAssignableFromFun = ((that) => (that === self));
this.name = displayName;
this.isPrimitive = true;
this.isInstance = ((obj) => false);
if ((arrayClass !== (void 0))) {
this._arrayOf = new $TypeData().initSpecializedArray(this, arrayClass, typedArrayClass)
};
return this
});
$TypeData.prototype.initClass = (function(internalNameObj, isInterface, fullName, ancestors, isJSType, parentData, isInstance) {
var internalName = $propertyName(internalNameObj);
this.ancestors = ancestors;
this.arrayEncodedName = (("L" + fullName) + ";");
this.isAssignableFromFun = ((that) => (!(!that.ancestors[internalName])));
this.isJSType = (!(!isJSType));
this.name = fullName;
this.isInterface = isInterface;
this.isInstance = (isInstance || ((obj) => (!(!((obj && obj.$classData) && obj.$classData.ancestors[internalName])))));
return this
});
$TypeData.prototype.initSpecializedArray = (function(componentData, arrayClass, typedArrayClass, isAssignableFromFun) {
arrayClass.prototype.$classData = this;
var name = ("[" + componentData.arrayEncodedName);
this.constr = arrayClass;
this.ancestors = {
O: 1,
jl_Cloneable: 1,
Ljava_io_Serializable: 1
};
this.componentData = componentData;
this.arrayBase = componentData;
this.arrayDepth = 1;
this.arrayEncodedName = name;
this.name = name;
this.isArrayClass = true;
var self = this;
this.isAssignableFromFun = (isAssignableFromFun || ((that) => (self === that)));
this.wrapArray = (typedArrayClass ? ((array) => new arrayClass(new typedArrayClass(array))) : ((array) => new arrayClass(array)));
this.isInstance = ((obj) => (obj instanceof arrayClass));
return this
});
$TypeData.prototype.initArray = (function(componentData) {
function ArrayClass(arg) {
if (((typeof arg) === "number")) {
this.u = new Array(arg);
for (var i = 0; (i < arg); (i++)) {
this.u[i] = null
}
} else {
this.u = arg
}
}
ArrayClass.prototype = new $ah_O();
ArrayClass.prototype.constructor = ArrayClass;
ArrayClass.prototype.copyTo = (function(srcPos, dest, destPos, length) {
$arraycopyGeneric(this.u, srcPos, dest.u, destPos, length)
});
ArrayClass.prototype.clone__O = (function() {
return new ArrayClass(this.u.slice())
});
var arrayBase = (componentData.arrayBase || componentData);
var arrayDepth = (componentData.arrayDepth + 1);
ArrayClass.prototype.$classData = this;
var name = ("[" + componentData.arrayEncodedName);
this.constr = ArrayClass;
this.ancestors = {
O: 1,
jl_Cloneable: 1,
Ljava_io_Serializable: 1
};
this.componentData = componentData;
this.arrayBase = arrayBase;
this.arrayDepth = arrayDepth;
this.arrayEncodedName = name;
this.name = name;
this.isArrayClass = true;
var isAssignableFromFun = ((that) => {
var thatDepth = that.arrayDepth;
return ((thatDepth === arrayDepth) ? arrayBase.isAssignableFromFun(that.arrayBase) : ((thatDepth > arrayDepth) && (arrayBase === $d_O)))
});
this.isAssignableFromFun = isAssignableFromFun;
this.wrapArray = ((array) => new ArrayClass(array));
var self = this;
this.isInstance = ((obj) => {
var data = (obj && obj.$classData);
return ((!(!data)) && ((data === self) || isAssignableFromFun(data)))
});
return this
});
$TypeData.prototype.getArrayOf = (function() {
if ((!this._arrayOf)) {
this._arrayOf = new $TypeData().initArray(this)
};
return this._arrayOf
});
$TypeData.prototype.getClassOf = (function() {
if ((!this._classOf)) {
this._classOf = new $c_jl_Class(this)
};
return this._classOf
});
$TypeData.prototype.isAssignableFrom = (function(that) {
return ((this === that) || this.isAssignableFromFun(that))
});
$TypeData.prototype.checkCast = (function(obj) {
/*<skip>*/
});
$TypeData.prototype.getSuperclass = (function() {
return (this.parentData ? this.parentData.getClassOf() : null)
});
$TypeData.prototype.getComponentType = (function() {
return (this.componentData ? this.componentData.getClassOf() : null)
});
$TypeData.prototype.newArrayOfThisClass = (function(lengths) {
var arrayClassData = this;
for (var i = 0; (i < lengths.length); (i++)) {
arrayClassData = arrayClassData.getArrayOf()
};
return $newArrayObject(arrayClassData, lengths)
});
function $isArrayOf_O(obj, depth) {
var data = (obj && obj.$classData);
if ((!data)) {
return false
} else {
var arrayDepth = data.arrayDepth;
return ((arrayDepth === depth) ? (!data.arrayBase.isPrimitive) : (arrayDepth > depth))
}
}
function $isArrayOf_Z(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_Z))))
}
function $isArrayOf_C(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_C))))
}
function $isArrayOf_B(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_B))))
}
function $isArrayOf_S(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_S))))
}
function $isArrayOf_I(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_I))))
}
function $isArrayOf_J(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_J))))
}
function $isArrayOf_F(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_F))))
}
function $isArrayOf_D(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && (obj.$classData.arrayBase === $d_D))))
}
var $d_O = new $TypeData();
$d_O.ancestors = {
O: 1
};
$d_O.arrayEncodedName = "Ljava.lang.Object;";
$d_O.isAssignableFromFun = ((that) => (!that.isPrimitive));
$d_O.name = "java.lang.Object";
$d_O.isInstance = ((obj) => (obj !== null));
$d_O._arrayOf = new $TypeData().initSpecializedArray($d_O, $ac_O, (void 0), ((that) => {
var thatDepth = that.arrayDepth;
return ((thatDepth === 1) ? (!that.arrayBase.isPrimitive) : (thatDepth > 1))
}));
$c_O.prototype.$classData = $d_O;
var $d_V = new $TypeData().initPrim((void 0), "V", "void", (void 0), (void 0));
var $d_Z = new $TypeData().initPrim(false, "Z", "boolean", $ac_Z, (void 0));
var $d_C = new $TypeData().initPrim(0, "C", "char", $ac_C, Uint16Array);
var $d_B = new $TypeData().initPrim(0, "B", "byte", $ac_B, Int8Array);
var $d_S = new $TypeData().initPrim(0, "S", "short", $ac_S, Int16Array);
var $d_I = new $TypeData().initPrim(0, "I", "int", $ac_I, Int32Array);
var $d_J = new $TypeData().initPrim(null, "J", "long", $ac_J, (void 0));
var $d_F = new $TypeData().initPrim(0.0, "F", "float", $ac_F, Float32Array);
var $d_D = new $TypeData().initPrim(0.0, "D", "double", $ac_D, Float64Array);
function $s_Lapi_AquaAPI__main__AT__V(args) {
var this$1 = $m_Lapi_AquaAPI$();
$f_s_App__main__AT__V(this$1, args)
}
/** @constructor */
function $c_Lapi_types_AquaConfig(logLevel, constants, noXor, noRelay, targetType, tracing) {
this.Lapi_types_AquaConfig__f_logLevel = null;
this.Lapi_types_AquaConfig__f_constants = null;
this.Lapi_types_AquaConfig__f_noXor = null;
this.Lapi_types_AquaConfig__f_noRelay = null;
this.Lapi_types_AquaConfig__f_targetType = null;
this.Lapi_types_AquaConfig__f_tracing = null;
this.Lapi_types_AquaConfig__f_logLevel = logLevel;
this.Lapi_types_AquaConfig__f_constants = constants;
this.Lapi_types_AquaConfig__f_noXor = noXor;
this.Lapi_types_AquaConfig__f_noRelay = noRelay;
this.Lapi_types_AquaConfig__f_targetType = targetType;
this.Lapi_types_AquaConfig__f_tracing = tracing
}
$c_Lapi_types_AquaConfig.prototype = new $h_O();
$c_Lapi_types_AquaConfig.prototype.constructor = $c_Lapi_types_AquaConfig;
/** @constructor */
function $h_Lapi_types_AquaConfig() {
/*<skip>*/
}
$h_Lapi_types_AquaConfig.prototype = $c_Lapi_types_AquaConfig.prototype;
Object.defineProperty($c_Lapi_types_AquaConfig.prototype, "logLevel", {
"get": (function() {
return this.Lapi_types_AquaConfig__f_logLevel
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_AquaConfig.prototype, "noXor", {
"get": (function() {
return this.Lapi_types_AquaConfig__f_noXor
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_AquaConfig.prototype, "constants", {
"get": (function() {
return this.Lapi_types_AquaConfig__f_constants
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_AquaConfig.prototype, "noRelay", {
"get": (function() {
return this.Lapi_types_AquaConfig__f_noRelay
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_AquaConfig.prototype, "targetType", {
"get": (function() {
return this.Lapi_types_AquaConfig__f_targetType
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_AquaConfig.prototype, "tracing", {
"get": (function() {
return this.Lapi_types_AquaConfig__f_tracing
}),
"configurable": true
});
function $isArrayOf_Lapi_types_AquaConfig(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lapi_types_AquaConfig)))
}
var $d_Lapi_types_AquaConfig = new $TypeData().initClass({
Lapi_types_AquaConfig: 0
}, false, "api.types.AquaConfig", {
Lapi_types_AquaConfig: 1,
O: 1
});
$c_Lapi_types_AquaConfig.prototype.$classData = $d_Lapi_types_AquaConfig;
/** @constructor */
function $c_Lapi_types_AquaConfig$() {
/*<skip>*/
}
$c_Lapi_types_AquaConfig$.prototype = new $h_O();
$c_Lapi_types_AquaConfig$.prototype.constructor = $c_Lapi_types_AquaConfig$;
/** @constructor */
function $h_Lapi_types_AquaConfig$() {
/*<skip>*/
}
$h_Lapi_types_AquaConfig$.prototype = $c_Lapi_types_AquaConfig$.prototype;
$c_Lapi_types_AquaConfig$.prototype.fromJS__Lapi_types_AquaConfig__Lcats_data_Validated = (function(cjs) {
var x = cjs.Lapi_types_AquaConfig__f_targetType;
var this$6 = ((x === (void 0)) ? $m_s_None$() : new $c_s_Some(x));
if (this$6.isEmpty__Z()) {
var this$7 = $m_s_None$()
} else {
var arg1 = this$6.get__O();
var _$1 = arg1;
var this$7 = new $c_s_Some(_$1.toLowerCase())
};
if (this$7.isEmpty__Z()) {
var this$15 = $m_s_None$()
} else {
var arg1$1 = this$7.get__O();
var x$1 = arg1$1;
var $$x1;
switch (x$1) {
case "typescript": {
$m_Lcats_data_Validated$();
var b = $s_Laqua_api_TargetType$__TypeScriptType__Laqua_api_TargetType();
var $$x1 = new $c_Lcats_data_Validated$Valid(b);
break
}
case "javascript": {
$m_Lcats_data_Validated$();
var b$1 = $s_Laqua_api_TargetType$__JavaScriptType__Laqua_api_TargetType();
var $$x1 = new $c_Lcats_data_Validated$Valid(b$1);
break
}
case "air": {
$m_Lcats_data_Validated$();
var b$2 = $s_Laqua_api_TargetType$__AirType__Laqua_api_TargetType();
var $$x1 = new $c_Lcats_data_Validated$Valid(b$2);
break
}
default: {
var this$14 = $m_Lcats_data_Validated$();
var $$x1 = $f_Lcats_data_ValidatedFunctionsBinCompat0__invalidNec__O__Lcats_data_Validated(this$14, "Target can be only 'typescript', 'javascript', or 'air'")
}
};
var this$15 = new $c_s_Some($$x1)
};
if (this$15.isEmpty__Z()) {
$m_Lcats_data_Validated$();
var b$3 = $s_Laqua_api_TargetType$__AirType__Laqua_api_TargetType();
var $$x2 = new $c_Lcats_data_Validated$Valid(b$3)
} else {
var $$x2 = this$15.get__O()
};
var this$18 = $$x2;
if ((this$18 instanceof $c_Lcats_data_Validated$Invalid)) {
var x$1$1 = this$18;
var i = this$18;
return i
};
if ((this$18 instanceof $c_Lcats_data_Validated$Valid)) {
var x$1$2 = this$18;
var x228 = x$1$2.Lcats_data_Validated$Valid__f_a;
var target = x228;
var x$2 = cjs.Lapi_types_AquaConfig__f_logLevel;
var logLevel = ((x$2 === (void 0)) ? "info" : x$2);
var x$3 = cjs.Lapi_types_AquaConfig__f_constants;
if ((x$3 === (void 0))) {
var x$4 = (void 0)
} else {
var this$32 = $ct_sjs_js_WrappedArray__sjs_js_Array__(new $c_sjs_js_WrappedArray(), x$3);
$m_sci_List$();
var a = $m_sci_Nil$().prependedAll__sc_IterableOnce__sci_List(this$32);
var x$4 = a
};
var constants = ((x$4 === (void 0)) ? $m_s_package$().s_package$__f_Nil : x$4);
var x$5 = cjs.Lapi_types_AquaConfig__f_noXor;
var noXor = (!(!((x$5 === (void 0)) ? false : x$5)));
var x$6 = cjs.Lapi_types_AquaConfig__f_noRelay;
var noRelay = (!(!((x$6 === (void 0)) ? false : x$6)));
var x$7 = cjs.Lapi_types_AquaConfig__f_tracing;
var tracing = (!(!((x$7 === (void 0)) ? false : x$7)));
var a$1 = new $c_Laqua_api_AquaAPIConfig(target, logLevel, constants, noXor, noRelay, tracing);
return new $c_Lcats_data_Validated$Valid(a$1)
};
throw new $c_s_MatchError(this$18)
});
var $d_Lapi_types_AquaConfig$ = new $TypeData().initClass({
Lapi_types_AquaConfig$: 0
}, false, "api.types.AquaConfig$", {
Lapi_types_AquaConfig$: 1,
O: 1
});
$c_Lapi_types_AquaConfig$.prototype.$classData = $d_Lapi_types_AquaConfig$;
var $n_Lapi_types_AquaConfig$;
function $m_Lapi_types_AquaConfig$() {
if ((!$n_Lapi_types_AquaConfig$)) {
$n_Lapi_types_AquaConfig$ = new $c_Lapi_types_AquaConfig$()
};
return $n_Lapi_types_AquaConfig$
}
/** @constructor */
function $c_Lapi_types_Call(functionCall, arguments$1, input) {
this.Lapi_types_Call__f_functionCall = null;
this.Lapi_types_Call__f_arguments = null;
this.Lapi_types_Call__f_input = null;
this.Lapi_types_Call__f_functionCall = functionCall;
this.Lapi_types_Call__f_arguments = arguments$1;
this.Lapi_types_Call__f_input = input
}
$c_Lapi_types_Call.prototype = new $h_O();
$c_Lapi_types_Call.prototype.constructor = $c_Lapi_types_Call;
/** @constructor */
function $h_Lapi_types_Call() {
/*<skip>*/
}
$h_Lapi_types_Call.prototype = $c_Lapi_types_Call.prototype;
Object.defineProperty($c_Lapi_types_Call.prototype, "arguments", {
"get": (function() {
return this.Lapi_types_Call__f_arguments
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_Call.prototype, "input", {
"get": (function() {
return this.Lapi_types_Call__f_input
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_Call.prototype, "functionCall", {
"get": (function() {
return this.Lapi_types_Call__f_functionCall
}),
"configurable": true
});
function $isArrayOf_Lapi_types_Call(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lapi_types_Call)))
}
var $d_Lapi_types_Call = new $TypeData().initClass({
Lapi_types_Call: 0
}, false, "api.types.Call", {
Lapi_types_Call: 1,
O: 1
});
$c_Lapi_types_Call.prototype.$classData = $d_Lapi_types_Call;
/** @constructor */
function $c_Lapi_types_CompilationResult(services, functions, functionCall, generatedSources, errors, warnings) {
this.Lapi_types_CompilationResult__f_services = null;
this.Lapi_types_CompilationResult__f_functions = null;
this.Lapi_types_CompilationResult__f_functionCall = null;
this.Lapi_types_CompilationResult__f_generatedSources = null;
this.Lapi_types_CompilationResult__f_errors = null;
this.Lapi_types_CompilationResult__f_warnings = null;
this.Lapi_types_CompilationResult__f_services = services;
this.Lapi_types_CompilationResult__f_functions = functions;
this.Lapi_types_CompilationResult__f_functionCall = functionCall;
this.Lapi_types_CompilationResult__f_generatedSources = generatedSources;
this.Lapi_types_CompilationResult__f_errors = errors;
this.Lapi_types_CompilationResult__f_warnings = warnings
}
$c_Lapi_types_CompilationResult.prototype = new $h_O();
$c_Lapi_types_CompilationResult.prototype.constructor = $c_Lapi_types_CompilationResult;
/** @constructor */
function $h_Lapi_types_CompilationResult() {
/*<skip>*/
}
$h_Lapi_types_CompilationResult.prototype = $c_Lapi_types_CompilationResult.prototype;
Object.defineProperty($c_Lapi_types_CompilationResult.prototype, "generatedSources", {
"get": (function() {
return this.Lapi_types_CompilationResult__f_generatedSources
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_CompilationResult.prototype, "services", {
"get": (function() {
return this.Lapi_types_CompilationResult__f_services
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_CompilationResult.prototype, "functionCall", {
"get": (function() {
return this.Lapi_types_CompilationResult__f_functionCall
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_CompilationResult.prototype, "functions", {
"get": (function() {
return this.Lapi_types_CompilationResult__f_functions
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_CompilationResult.prototype, "errors", {
"get": (function() {
return this.Lapi_types_CompilationResult__f_errors
}),
"configurable": true
});
Object.defineProperty($c_Lapi_types_CompilationResult.prototype, "warnings", {
"get": (function() {
return this.Lapi_types_CompilationResult__f_warnings
}),
"configurable": true
});
function $isArrayOf_Lapi_types_CompilationResult(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lapi_types_CompilationResult)))
}
var $d_Lapi_types_CompilationResult = new $TypeData().initClass({
Lapi_types_CompilationResult: 0
}, false, "api.types.CompilationResult", {
Lapi_types_CompilationResult: 1,
O: 1
});
$c_Lapi_types_CompilationResult.prototype.$classData = $d_Lapi_types_CompilationResult;
/** @constructor */
function $c_Lapi_types_CompilationResult$() {
/*<skip>*/
}
$c_Lapi_types_CompilationResult$.prototype = new $h_O();
$c_Lapi_types_CompilationResult$.prototype.constructor = $c_Lapi_types_CompilationResult$;
/** @constructor */
function $h_Lapi_types_CompilationResult$() {
/*<skip>*/
}
$h_Lapi_types_CompilationResult$.prototype = $c_Lapi_types_CompilationResult$.prototype;
$c_Lapi_types_CompilationResult$.prototype.result__sci_Map__sci_Map__s_Option__sci_List__sci_List__Lapi_types_CompilationResult = (function(services, functions, call, sources, warnings) {
var result = {};
services.foreach__F1__V(new $c_sjsr_AnonFunction1(((x0$1$2) => {
var x0$1 = x0$1$2;
if ((x0$1 !== null)) {
var key = x0$1._1__O();
var value = x0$1._2__O();
result[key] = value
} else {
throw new $c_s_MatchError(x0$1)
}
})));
var result$1 = {};
functions.foreach__F1__V(new $c_sjsr_AnonFunction1(((x0$1$2$1) => {
var x0$1$1 = x0$1$2$1;
if ((x0$1$1 !== null)) {
var key$1 = x0$1$1._1__O();
var value$1 = x0$1$1._2__O();
result$1[key$1] = value$1
} else {
throw new $c_s_MatchError(x0$1$1)
}
})));
return new $c_Lapi_types_CompilationResult(result, result$1, ($m_s_$less$colon$less$(), (call.isEmpty__Z() ? null : call.get__O())), $m_sjs_js_JSConverters$JSRichIterableOnce$().toJSArray$extension__sc_IterableOnce__sjs_js_Array(sources), [], $m_sjs_js_JSConverters$JSRichIterableOnce$().toJSArray$extension__sc_IterableOnce__sjs_js_Array(warnings))
});
$c_Lapi_types_CompilationResult$.prototype.errs__sci_List__sci_List__Lapi_types_CompilationResult = (function(errors, warnings) {
return new $c_Lapi_types_CompilationResult({}, {}, null, null, $m_sjs_js_JSConverters$JSRichIterableOnce$().toJSArray$extension__sc_IterableOnce__sjs_js_Array(errors), $m_sjs_js_JSConverters$JSRichIterableOnce$().toJSArray$extension__sc_IterableOnce__sjs_js_Array(warnings))
});
var $d_Lapi_types_CompilationResult$ = new $TypeData().initClass({
Lapi_types_CompilationResult$: 0
}, false, "api.types.CompilationResult$", {
Lapi_types_CompilationResult$: 1,
O: 1
});
$c_Lapi_types_CompilationResult$.prototype.$classData = $d_Lapi_types_CompilationResult$;
var $n_Lapi_types_CompilationResult$;
function $m_Lapi_types_CompilationResult$() {
if ((!$n_Lapi_types_CompilationResult$)) {
$n_Lapi_types_CompilationResult$ = new $c_Lapi_types_CompilationResult$()
};
return $n_Lapi_types_CompilationResult$
}
/** @constructor */
function $c_Lapi_types_Input(input) {
this.Lapi_types_Input__f_input = null;
this.Lapi_types_Input__f_input = input
}
$c_Lapi_types_Input.prototype = new $h_O();
$c_Lapi_types_Input.prototype.constructor = $c_Lapi_types_Input;
/** @constructor */
function $h_Lapi_types_Input() {
/*<skip>*/
}
$h_Lapi_types_Input.prototype = $c_Lapi_types_Input.prototype;
Object.defineProperty($c_Lapi_types_Input.prototype, "input", {
"get": (function() {
return this.Lapi_types_Input__f_input
}),
"configurable": true
});
function $isArrayOf_Lapi_types_Input(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lapi_types_Input)))
}
var $d_Lapi_types_Input = new $TypeData().initClass({
Lapi_types_Input: 0
}, false, "api.types.Input", {
Lapi_types_Input: 1,
O: 1
});
$c_Lapi_types_Input.prototype.$classData = $d_Lapi_types_Input;
/** @constructor */
function $c_Lapi_types_Path(path) {
this.Lapi_types_Path__f_path = null;
this.Lapi_types_Path__f_path = path
}
$c_Lapi_types_Path.prototype = new $h_O();
$c_Lapi_types_Path.prototype.constructor = $c_Lapi_types_Path;
/** @constructor */
function $h_Lapi_types_Path() {
/*<skip>*/
}
$h_Lapi_types_Path.prototype = $c_Lapi_types_Path.prototype;
Object.defineProperty($c_Lapi_types_Path.prototype, "path", {
"get": (function() {
return this.Lapi_types_Path__f_path
}),
"configurable": true
});
function $isArrayOf_Lapi_types_Path(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lapi_types_Path)))
}
var $d_Lapi_types_Path = new $TypeData().initClass({
Lapi_types_Path: 0
}, false, "api.types.Path", {
Lapi_types_Path: 1,
O: 1
});
$c_Lapi_types_Path.prototype.$classData = $d_Lapi_types_Path;
function $is_Laqua_AquaIO(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.Laqua_AquaIO)))
}
function $isArrayOf_Laqua_AquaIO(obj, depth) {
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Laqua_AquaIO)))
}
/** @constructor */
function $c_Laqua_Rendering$() {
this.Laqua_Rendering$__f_given_Show_AquaWarning$lzy1 = null;
this.Laqua_Rendering$__f_given_Show_AquaWarningbitmap$1 = false;
this.Laqua_Rendering$__f_given_Show_AquaError$lzy1 = null;
this.Laqua_Rendering$__f_given_Show_AquaErrorbitmap$1 = false
}
$c_Laqua_Rendering$.prototype = new $h_O();
$c_Laqua_Rendering$.prototype.constructor = $c_Laqua_Rendering$;
/** @constructor */
function $h_Laqua_Rendering$() {
/*<skip>*/
}
$h_Laqua_Rendering$.prototype = $c_Laqua_Rendering$.prototype;
$c_Laqua_Rendering$.prototype.showForConsole__T__Laqua_parser_lift_FileSpan__sci_List__T = (function(messageType, span, messages) {
var this$1 = span.focus__I__s_Option(3);
if (this$1.isEmpty__Z()) {
var this$2 = $m_s_None$()
} else {
var arg1 = this$1.get__O();
var _$1 = arg1;
var this$2 = new $c_s_Some(_$1.toConsoleStr__T__sci_List__T__T__T(messageType, messages, "\u001b[31m", "\u001b[0m"))
};
return ((this$2.isEmpty__Z() ? ("(offset is beyond the script, syntax errors) Error: \u001b[31m" + $f_sc_IterableOnceOps__mkString__T__T__T__T(messages, "", ", ", "")) : this$2.get__O()) + "\u001b[0m\n")
});
$c_Laqua_Rendering$.prototype.given_Show_AquaWarning__Lcats_Show = (function() {
if ((!this.Laqua_Rendering$__f_given_Show_AquaWarningbitmap$1)) {
$m_Lcats_Show$();
var f = new $c_sjsr_AnonFunction1(((x$1) => {
var x$1$1 = x$1;
if ((x$1$1 instanceof $c_Laqua_compiler_AquaWarning$CompileWarning)) {
var x$1$2 = x$1$1;
var x8 = x$1$2.Laqua_compiler_AquaWarning$CompileWarning__f_warning;
if ((x8 !== null)) {
var x3 = x8.Laqua_semantics_SemanticWarning__f_token;
var x4 = x8.Laqua_semantics_SemanticWarning__f_hints;
var this$4 = x3.unit__O()._1__O().focus__I__s_Option(0);
if (this$4.isEmpty__Z()) {
var this$5 = $m_s_None$()
} else {
var arg1 = this$4.get__O();
var _$2 = arg1;
var this$5 = new $c_s_Some(_$2.toConsoleStr__T__sci_List__T__T__T("Warning", x4, "\u001b[33m", "\u001b[0m"))
};
return (this$5.isEmpty__Z() ? "(Dup warning, but offset is beyond the script)" : this$5.get__O())
};
throw new $c_s_MatchError(x8)
};
throw new $c_s_MatchError(x$1$1)
}));
this.Laqua_Rendering$__f_given_Show_AquaWarning$lzy1 = new $c_Lcats_Show$$anon$4(f);
this.Laqua_Rendering$__f_given_Show_AquaWarningbitmap$1 = true
};
return this.Laqua_Rendering$__f_given_Show_AquaWarning$lzy1
});
$c_Laqua_Rendering$.prototype.given_Show_AquaError__Lcats_Show = (function() {
if ((!this.Laqua_Rendering$__f_given_Show_AquaErrorbitmap$1)) {
$m_Lcats_Show$();
var f$4 = new $c_sjsr_AnonFunction1(((x$1) => {
var x$1$1 = x$1;
if ((x$1$1 instanceof $c_Laqua_compiler_AquaError$ParserError)) {
var x$1$2 = x$1$1;
var x79 = x$1$2.Laqua_compiler_AquaError$ParserError__f_err;
if ((x79 instanceof $c_Laqua_parser_BlockIndentError)) {
var x$1$3 = x79;
var x24 = x$1$3.Laqua_parser_BlockIndentError__f_indent;
var x25 = x$1$3.Laqua_parser_BlockIndentError__f_message;
var $$x1 = x24._1__O();
var this$4 = $m_s_package$().s_package$__f_Nil;
return this.showForConsole__T__Laqua_parser_lift_FileSpan__sci_List__T("Syntax error", $$x1, new $c_sci_$colon$colon(x25, this$4))
};
if (false) {
var x$1$4 = x79;
var x20 = x$1$4._1__O();
var x21 = x$1$4._2__T();
var $$x2 = x20._1__O();
var this$6 = $m_s_package$().s_package$__f_Nil;
return this.showForConsole__T__Laqua_parser_lift_FileSpan__sci_List__T("Syntax error", $$x2, new $c_sci_$colon$colon(x21, this$6))
};
if ((x79 instanceof $c_Laqua_parser_LexerError)) {
var x$1$5 = x79;
var x15 = x$1$5.Laqua_parser_LexerError__f_err;
if ((x15 !== null)) {
var span = x15._1__O();
var e = x15._2__O();
var this$8 = e.Lcats_parse_Parser$Error__f_expected;
var this$9 = this$8.Lcats_data_NonEmptyList__f_tail;
var elem = this$8.Lcats_data_NonEmptyList__f_head;
var this$10 = new $c_sci_$colon$colon(elem, this$9);
var m = $m_scm_Map$().empty__O();
var it = new $c_sc_StrictOptimizedLinearSeqOps$$anon$1(this$10);
while (it.hasNext__Z()) {
var elem$1 = it.next__O();
var _$3 = elem$1;
var key = _$3.offset__I();
var bldr = m.getOrElseUpdate__O__F0__O(key, new $c_sjsr_AnonFunction0((() => {
$m_sci_List$();
return new $c_scm_ListBuffer()
})));
bldr.addOne__O__scm_Growable(elem$1)
};
var this$12 = $m_sci_HashMap$();
var result = this$12.sci_HashMap$__f_EmptyMap;
var mapIt = m.iterator__sc_Iterator();
while (mapIt.hasNext__Z()) {
var x1 = mapIt.next__O();
if ((x1 === null)) {
throw new $c_s_MatchError(x1)
};
var k = x1._1__O();
var v = x1._2__O();
result = result.updated__O__O__sci_HashMap(k, v.result__O())
};
var this$13 = result;
$m_sci_HashMap$();
var b = new $c_sci_HashMapBuilder();
var it$1 = this$13.iterator__sc_Iterator();
while (it$1.hasNext__Z()) {
var arg1 = it$1.next__O();
var x$1$6 = arg1;
matchResult3: {
var elem$3___1;
var elem$3___2;
if ((x$1$6 !== null)) {
var offset = (x$1$6._1__O() | 0);
var exps = x$1$6._2__O();
var endIndex = ((1 + offset) | 0);
var localSpan = new $c_Laqua_parser_lift_Span(offset, endIndex);
var name = span.Laqua_parser_lift_FileSpan__f_name;
var locationMap = span.Laqua_parser_lift_FileSpan__f_locationMap;
var this$17 = new $c_Laqua_parser_lift_FileSpan(name, locationMap, localSpan).focus__I__s_Option(0);
if (this$17.isEmpty__Z()) {
var this$21 = $m_s_None$()
} else {
var arg1$1 = this$17.get__O();
var spanFocus = arg1$1;
var rest = exps;
var h = null;
var t = null;
while ((rest !== $m_sci_Nil$())) {
var arg1$2 = rest.head__O();
var exp = arg1$2;
var it$2 = $m_Laqua_parser_ParserError$().expectationToString__Lcats_parse_Parser$Expectation__sci_List__sci_List(exp, $m_s_package$().s_package$__f_Nil).iterator__sc_Iterator();
while (it$2.hasNext__Z()) {
var nx = new $c_sci_$colon$colon(it$2.next__O(), $m_sci_Nil$());
if ((t === null)) {
h = nx
} else {
t.sci_$colon$colon__f_next = nx
};
t = nx
};
rest = rest.tail__O()
};
var errorMessages = ((h === null) ? $m_sci_Nil$() : h);
var elem$1$1 = ("" + errorMessages.head__O());
var this$19 = errorMessages.tail__O();
var f = ((t$1) => {
var t$2 = t$1;
return ("OR " + t$2)
});
if ((this$19 === $m_sci_Nil$())) {
var this$20 = $m_sci_Nil$()
} else {
var arg1$3 = this$19.head__O();
var h$1 = new $c_sci_$colon$colon(f(arg1$3), $m_sci_Nil$());
var t$3 = h$1;
var rest$1 = this$19.tail__O();
while ((rest$1 !== $m_sci_Nil$())) {
var arg1$4 = rest$1.head__O();
var