@flock/wirespec
Advanced tools
Comparing version 0.9.7 to 0.9.8
@@ -69,17 +69,17 @@ (function (root, factory) { | ||
alpha = alpha === VOID ? 1.0 : alpha; | ||
return $super === VOID ? this.o33(r, g, b, alpha) : $super.o33.call(this, r, g, b, alpha); | ||
return $super === VOID ? this.q33(r, g, b, alpha) : $super.q33.call(this, r, g, b, alpha); | ||
} | ||
function invoke(r, g, b, alpha) { | ||
return this.o33(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha)); | ||
return this.q33(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha)); | ||
} | ||
function invoke$default_0(r, g, b, alpha, $super) { | ||
alpha = alpha === VOID ? 1.0 : alpha; | ||
return $super === VOID ? this.y33(r, g, b, alpha) : invoke(r, g, b, alpha); | ||
return $super === VOID ? this.a34(r, g, b, alpha) : invoke(r, g, b, alpha); | ||
} | ||
function from255(r, g, b, alpha) { | ||
return this.o33(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0); | ||
return this.q33(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0); | ||
} | ||
function from255$default(r, g, b, alpha, $super) { | ||
alpha = alpha === VOID ? 255 : alpha; | ||
return $super === VOID ? this.z33(r, g, b, alpha) : from255(r, g, b, alpha); | ||
return $super === VOID ? this.b34(r, g, b, alpha) : from255(r, g, b, alpha); | ||
} | ||
@@ -104,3 +104,3 @@ function invoke_0(hex) { | ||
} | ||
return this.z33(tmp, tmp_0, tmp_1, tmp_2); | ||
return this.b34(tmp, tmp_0, tmp_1, tmp_2); | ||
} | ||
@@ -127,15 +127,15 @@ setMetadataFor(RGBColorSpace, 'RGBColorSpace', interfaceMeta); | ||
function ColorComponentInfo(name, isPolar) { | ||
this.i32_1 = name; | ||
this.j32_1 = isPolar; | ||
this.k32_1 = name; | ||
this.l32_1 = isPolar; | ||
} | ||
function WhitePoint(name, chromaticity) { | ||
this.k32_1 = name; | ||
this.l32_1 = chromaticity; | ||
this.m32_1 = name; | ||
this.n32_1 = chromaticity; | ||
} | ||
protoOf(WhitePoint).toString = function () { | ||
return this.k32_1; | ||
return this.m32_1; | ||
}; | ||
protoOf(WhitePoint).hashCode = function () { | ||
var result = getStringHashCode(this.k32_1); | ||
result = imul(result, 31) + this.l32_1.hashCode() | 0; | ||
var result = getStringHashCode(this.m32_1); | ||
result = imul(result, 31) + this.n32_1.hashCode() | 0; | ||
return result; | ||
@@ -149,5 +149,5 @@ }; | ||
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE(); | ||
if (!(this.k32_1 === tmp0_other_with_cast.k32_1)) | ||
if (!(this.m32_1 === tmp0_other_with_cast.m32_1)) | ||
return false; | ||
if (!this.l32_1.equals(tmp0_other_with_cast.l32_1)) | ||
if (!this.n32_1.equals(tmp0_other_with_cast.n32_1)) | ||
return false; | ||
@@ -158,10 +158,10 @@ return true; | ||
Illuminant_instance = this; | ||
this.m32_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745)); | ||
this.n32_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161)); | ||
this.o32_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616)); | ||
this.p32_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585)); | ||
this.q32_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744)); | ||
this.r32_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329)); | ||
this.s32_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488)); | ||
this.t32_1 = new WhitePoint('E', xyY_init_$Create$(0.3333333333333333, 0.3333333333333333)); | ||
this.o32_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745)); | ||
this.p32_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161)); | ||
this.q32_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616)); | ||
this.r32_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585)); | ||
this.s32_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744)); | ||
this.t32_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329)); | ||
this.u32_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488)); | ||
this.v32_1 = new WhitePoint('E', xyY_init_$Create$(0.3333333333333333, 0.3333333333333333)); | ||
} | ||
@@ -353,3 +353,3 @@ var Illuminant_instance; | ||
Companion_instance = this; | ||
this.u32_1 = componentInfoList([new ColorComponentInfo('code', false)]); | ||
this.w32_1 = componentInfoList([new ColorComponentInfo('code', false)]); | ||
} | ||
@@ -364,31 +364,31 @@ var Companion_instance; | ||
Companion_getInstance(); | ||
this.v32_1 = code; | ||
this.x32_1 = code; | ||
} | ||
protoOf(Ansi16).w32 = function () { | ||
switch (this.v32_1) { | ||
protoOf(Ansi16).y32 = function () { | ||
switch (this.x32_1) { | ||
case 30: | ||
case 40: | ||
return Companion_getInstance_2().x32(0.0, 0.0, 0.0); | ||
return Companion_getInstance_2().z32(0.0, 0.0, 0.0); | ||
case 90: | ||
case 100: | ||
return Companion_getInstance_2().y32(128, 128, 128); | ||
return Companion_getInstance_2().a33(128, 128, 128); | ||
case 37: | ||
case 47: | ||
return Companion_getInstance_2().y32(192, 192, 192); | ||
return Companion_getInstance_2().a33(192, 192, 192); | ||
case 97: | ||
case 107: | ||
return Companion_getInstance_2().x32(1.0, 1.0, 1.0); | ||
return Companion_getInstance_2().z32(1.0, 1.0, 1.0); | ||
} | ||
var color = this.v32_1 % 10 | 0; | ||
var mul = this.v32_1 > 50 ? 1.0 : 0.5; | ||
var color = this.x32_1 % 10 | 0; | ||
var mul = this.x32_1 > 50 ? 1.0 : 0.5; | ||
var r = (color % 2 | 0) * mul; | ||
var g = ((color / 2 | 0) % 2 | 0) * mul; | ||
var b = ((color / 4 | 0) % 2 | 0) * mul; | ||
return Companion_getInstance_2().x32(r, g, b); | ||
return Companion_getInstance_2().z32(r, g, b); | ||
}; | ||
protoOf(Ansi16).toString = function () { | ||
return 'Ansi16(code=' + this.v32_1 + ')'; | ||
return 'Ansi16(code=' + this.x32_1 + ')'; | ||
}; | ||
protoOf(Ansi16).hashCode = function () { | ||
return this.v32_1; | ||
return this.x32_1; | ||
}; | ||
@@ -401,3 +401,3 @@ protoOf(Ansi16).equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE(); | ||
if (!(this.v32_1 === tmp0_other_with_cast.v32_1)) | ||
if (!(this.x32_1 === tmp0_other_with_cast.x32_1)) | ||
return false; | ||
@@ -408,3 +408,3 @@ return true; | ||
Companion_instance_0 = this; | ||
this.z32_1 = componentInfoList([new ColorComponentInfo('code', false)]); | ||
this.b33_1 = componentInfoList([new ColorComponentInfo('code', false)]); | ||
} | ||
@@ -419,12 +419,12 @@ var Companion_instance_0; | ||
Companion_getInstance_0(); | ||
this.a33_1 = code; | ||
this.c33_1 = code; | ||
} | ||
protoOf(Ansi256).w32 = function () { | ||
if (this.a33_1 < 16) | ||
return this.b33().w32(); | ||
if (this.a33_1 >= 232) { | ||
var c = imul(this.a33_1 - 232 | 0, 10) + 8 | 0; | ||
return Companion_getInstance_2().y32(c, c, c); | ||
protoOf(Ansi256).y32 = function () { | ||
if (this.c33_1 < 16) | ||
return this.d33().y32(); | ||
if (this.c33_1 >= 232) { | ||
var c = imul(this.c33_1 - 232 | 0, 10) + 8 | 0; | ||
return Companion_getInstance_2().a33(c, c, c); | ||
} | ||
var c_0 = this.a33_1 - 16 | 0; | ||
var c_0 = this.c33_1 - 16 | 0; | ||
var rem = c_0 % 36 | 0; | ||
@@ -438,12 +438,12 @@ // Inline function 'kotlin.math.floor' call | ||
var b = (rem % 6 | 0) / 5.0; | ||
return Companion_getInstance_2().c33(r, g, b); | ||
return Companion_getInstance_2().e33(r, g, b); | ||
}; | ||
protoOf(Ansi256).b33 = function () { | ||
return this.a33_1 < 8 ? new Ansi16(this.a33_1 + 30 | 0) : this.a33_1 < 16 ? new Ansi16((this.a33_1 - 8 | 0) + 90 | 0) : this.w32().b33(); | ||
protoOf(Ansi256).d33 = function () { | ||
return this.c33_1 < 8 ? new Ansi16(this.c33_1 + 30 | 0) : this.c33_1 < 16 ? new Ansi16((this.c33_1 - 8 | 0) + 90 | 0) : this.y32().d33(); | ||
}; | ||
protoOf(Ansi256).toString = function () { | ||
return 'Ansi256(code=' + this.a33_1 + ')'; | ||
return 'Ansi256(code=' + this.c33_1 + ')'; | ||
}; | ||
protoOf(Ansi256).hashCode = function () { | ||
return this.a33_1; | ||
return this.c33_1; | ||
}; | ||
@@ -456,3 +456,3 @@ protoOf(Ansi256).equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE(); | ||
if (!(this.a33_1 === tmp0_other_with_cast.a33_1)) | ||
if (!(this.c33_1 === tmp0_other_with_cast.c33_1)) | ||
return false; | ||
@@ -463,3 +463,3 @@ return true; | ||
Companion_instance_1 = this; | ||
this.i33_1 = polarComponentInfo('HSV'); | ||
this.k33_1 = polarComponentInfo('HSV'); | ||
} | ||
@@ -484,23 +484,23 @@ var Companion_instance_1; | ||
alpha = alpha === VOID ? 1.0 : alpha; | ||
this.j33_1 = h; | ||
this.k33_1 = s; | ||
this.l33_1 = v; | ||
this.m33_1 = alpha; | ||
this.l33_1 = h; | ||
this.m33_1 = s; | ||
this.n33_1 = v; | ||
this.o33_1 = alpha; | ||
} | ||
protoOf(HSV).w32 = function () { | ||
if (this.k33_1 < 1.0E-7) | ||
return Companion_getInstance_2().o33(this.l33_1, this.l33_1, this.l33_1, this.m33_1); | ||
var v = this.l33_1; | ||
var h = normalizeDeg_0(this.j33_1) / 60.0; | ||
var s = this.k33_1; | ||
return SRGB_getInstance().o33(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.m33_1); | ||
protoOf(HSV).y32 = function () { | ||
if (this.m33_1 < 1.0E-7) | ||
return Companion_getInstance_2().q33(this.n33_1, this.n33_1, this.n33_1, this.o33_1); | ||
var v = this.n33_1; | ||
var h = normalizeDeg_0(this.l33_1) / 60.0; | ||
var s = this.m33_1; | ||
return SRGB_getInstance().q33(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.o33_1); | ||
}; | ||
protoOf(HSV).toString = function () { | ||
return 'HSV(h=' + this.j33_1 + ', s=' + this.k33_1 + ', v=' + this.l33_1 + ', alpha=' + this.m33_1 + ')'; | ||
return 'HSV(h=' + this.l33_1 + ', s=' + this.m33_1 + ', v=' + this.n33_1 + ', alpha=' + this.o33_1 + ')'; | ||
}; | ||
protoOf(HSV).hashCode = function () { | ||
var result = getNumberHashCode(this.j33_1); | ||
result = imul(result, 31) + getNumberHashCode(this.k33_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.l33_1) | 0; | ||
var result = getNumberHashCode(this.l33_1); | ||
result = imul(result, 31) + getNumberHashCode(this.m33_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.n33_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.o33_1) | 0; | ||
return result; | ||
@@ -514,6 +514,2 @@ }; | ||
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE(); | ||
if (!equals(this.j33_1, tmp0_other_with_cast.j33_1)) | ||
return false; | ||
if (!equals(this.k33_1, tmp0_other_with_cast.k33_1)) | ||
return false; | ||
if (!equals(this.l33_1, tmp0_other_with_cast.l33_1)) | ||
@@ -523,18 +519,22 @@ return false; | ||
return false; | ||
if (!equals(this.n33_1, tmp0_other_with_cast.n33_1)) | ||
return false; | ||
if (!equals(this.o33_1, tmp0_other_with_cast.o33_1)) | ||
return false; | ||
return true; | ||
}; | ||
function GammaTransferFunctions(gamma) { | ||
this.v33_1 = gamma; | ||
this.x33_1 = gamma; | ||
} | ||
protoOf(GammaTransferFunctions).w33 = function (x) { | ||
return spow(x, this.v33_1); | ||
protoOf(GammaTransferFunctions).y33 = function (x) { | ||
return spow(x, this.x33_1); | ||
}; | ||
protoOf(GammaTransferFunctions).x33 = function (x) { | ||
return spow(x, 1.0 / this.v33_1); | ||
protoOf(GammaTransferFunctions).z33 = function (x) { | ||
return spow(x, 1.0 / this.x33_1); | ||
}; | ||
protoOf(GammaTransferFunctions).toString = function () { | ||
return 'GammaTransferFunctions(gamma=' + this.v33_1 + ')'; | ||
return 'GammaTransferFunctions(gamma=' + this.x33_1 + ')'; | ||
}; | ||
protoOf(GammaTransferFunctions).hashCode = function () { | ||
return getNumberHashCode(this.v33_1); | ||
return getNumberHashCode(this.x33_1); | ||
}; | ||
@@ -547,3 +547,3 @@ protoOf(GammaTransferFunctions).equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE(); | ||
if (!equals(this.v33_1, tmp0_other_with_cast.v33_1)) | ||
if (!equals(this.x33_1, tmp0_other_with_cast.x33_1)) | ||
return false; | ||
@@ -555,6 +555,6 @@ return true; | ||
} | ||
protoOf(LinearTransferFunctions).w33 = function (x) { | ||
protoOf(LinearTransferFunctions).y33 = function (x) { | ||
return x; | ||
}; | ||
protoOf(LinearTransferFunctions).x33 = function (x) { | ||
protoOf(LinearTransferFunctions).z33 = function (x) { | ||
return x; | ||
@@ -572,27 +572,27 @@ }; | ||
Companion_instance_2 = this; | ||
this.n33_1 = RGBColorSpaces_getInstance().e34_1; | ||
this.p33_1 = RGBColorSpaces_getInstance().g34_1; | ||
} | ||
protoOf(Companion_2).c34 = function () { | ||
return this.n33_1.c34(); | ||
protoOf(Companion_2).e34 = function () { | ||
return this.p33_1.e34(); | ||
}; | ||
protoOf(Companion_2).b34 = function () { | ||
return this.n33_1.b34(); | ||
protoOf(Companion_2).d34 = function () { | ||
return this.p33_1.d34(); | ||
}; | ||
protoOf(Companion_2).a34 = function () { | ||
return this.n33_1.a34(); | ||
protoOf(Companion_2).c34 = function () { | ||
return this.p33_1.c34(); | ||
}; | ||
protoOf(Companion_2).d34 = function () { | ||
return this.n33_1.d34(); | ||
protoOf(Companion_2).f34 = function () { | ||
return this.p33_1.f34(); | ||
}; | ||
protoOf(Companion_2).z33 = function (r, g, b, alpha) { | ||
return this.n33_1.z33(r, g, b, alpha); | ||
protoOf(Companion_2).b34 = function (r, g, b, alpha) { | ||
return this.p33_1.b34(r, g, b, alpha); | ||
}; | ||
protoOf(Companion_2).o33 = function (r, g, b, alpha) { | ||
return this.n33_1.o33(r, g, b, alpha); | ||
protoOf(Companion_2).q33 = function (r, g, b, alpha) { | ||
return this.p33_1.q33(r, g, b, alpha); | ||
}; | ||
protoOf(Companion_2).y33 = function (r, g, b, alpha) { | ||
return this.n33_1.y33(r, g, b, alpha); | ||
protoOf(Companion_2).a34 = function (r, g, b, alpha) { | ||
return this.p33_1.a34(r, g, b, alpha); | ||
}; | ||
protoOf(Companion_2).j28 = function (hex) { | ||
return this.n33_1.j28(hex); | ||
return this.p33_1.j28(hex); | ||
}; | ||
@@ -607,31 +607,31 @@ var Companion_instance_2; | ||
Companion_getInstance_2(); | ||
this.d33_1 = r; | ||
this.e33_1 = g; | ||
this.f33_1 = b; | ||
this.g33_1 = alpha; | ||
this.h33_1 = space; | ||
this.f33_1 = r; | ||
this.g33_1 = g; | ||
this.h33_1 = b; | ||
this.i33_1 = alpha; | ||
this.j33_1 = space; | ||
} | ||
protoOf(RGB).q34 = function () { | ||
protoOf(RGB).s34 = function () { | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp0_roundToInt = this.d33_1 * 255; | ||
var tmp0_roundToInt = this.f33_1 * 255; | ||
return roundToInt(tmp0_roundToInt); | ||
}; | ||
protoOf(RGB).r34 = function () { | ||
protoOf(RGB).t34 = function () { | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp0_roundToInt = this.e33_1 * 255; | ||
var tmp0_roundToInt = this.g33_1 * 255; | ||
return roundToInt(tmp0_roundToInt); | ||
}; | ||
protoOf(RGB).s34 = function () { | ||
protoOf(RGB).u34 = function () { | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp0_roundToInt = this.f33_1 * 255; | ||
var tmp0_roundToInt = this.h33_1 * 255; | ||
return roundToInt(tmp0_roundToInt); | ||
}; | ||
protoOf(RGB).t34 = function (space) { | ||
var f = SRGB_getInstance().s33_1; | ||
return equals(this.h33_1, space) ? this : (equals(this.h33_1, SRGB_getInstance()) ? equals(space, RGBColorSpaces_getInstance().f34_1) : false) ? space.o33(f.w33(this.d33_1), f.w33(this.e33_1), f.w33(this.f33_1), this.g33_1) : (equals(this.h33_1, RGBColorSpaces_getInstance().f34_1) ? equals(space, SRGB_getInstance()) : false) ? space.o33(f.x33(this.d33_1), f.x33(this.e33_1), f.x33(this.f33_1), this.g33_1) : this.u34().a35(space); | ||
protoOf(RGB).v34 = function (space) { | ||
var f = SRGB_getInstance().u33_1; | ||
return equals(this.j33_1, space) ? this : (equals(this.j33_1, SRGB_getInstance()) ? equals(space, RGBColorSpaces_getInstance().h34_1) : false) ? space.q33(f.y33(this.f33_1), f.y33(this.g33_1), f.y33(this.h33_1), this.i33_1) : (equals(this.j33_1, RGBColorSpaces_getInstance().h34_1) ? equals(space, SRGB_getInstance()) : false) ? space.q33(f.z33(this.f33_1), f.z33(this.g33_1), f.z33(this.h33_1), this.i33_1) : this.w34().c35(space); | ||
}; | ||
protoOf(RGB).b35 = function () { | ||
return this.c35(coerceIn(this.d33_1, 0.0, 1.0), coerceIn(this.e33_1, 0.0, 1.0), coerceIn(this.f33_1, 0.0, 1.0), coerceIn(this.g33_1, 0.0, 1.0)); | ||
protoOf(RGB).d35 = function () { | ||
return this.e35(coerceIn(this.f33_1, 0.0, 1.0), coerceIn(this.g33_1, 0.0, 1.0), coerceIn(this.h33_1, 0.0, 1.0), coerceIn(this.i33_1, 0.0, 1.0)); | ||
}; | ||
protoOf(RGB).d35 = function () { | ||
protoOf(RGB).f35 = function () { | ||
var tmp$ret$3; | ||
@@ -641,6 +641,6 @@ $l$block: { | ||
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call | ||
var tmp0_anonymous = this.t34(SRGB_getInstance()); | ||
var r = tmp0_anonymous.d33_1; | ||
var g = tmp0_anonymous.e33_1; | ||
var b = tmp0_anonymous.f33_1; | ||
var tmp0_anonymous = this.v34(SRGB_getInstance()); | ||
var r = tmp0_anonymous.f33_1; | ||
var g = tmp0_anonymous.g33_1; | ||
var b = tmp0_anonymous.h33_1; | ||
// Inline function 'kotlin.comparisons.minOf' call | ||
@@ -668,3 +668,3 @@ var min = Math.min(r, g, b); | ||
var s = max === 0.0 ? 0.0 : chroma / max; | ||
tmp$ret$3 = new HSV(tmp0_anonymous_0, s, max, this.g33_1); | ||
tmp$ret$3 = new HSV(tmp0_anonymous_0, s, max, this.i33_1); | ||
break $l$block; | ||
@@ -674,9 +674,9 @@ } | ||
}; | ||
protoOf(RGB).u34 = function () { | ||
var f = this.h33_1.a34(); | ||
protoOf(RGB).w34 = function () { | ||
var f = this.j33_1.c34(); | ||
// Inline function 'com.github.ajalt.colormath.internal.dot' call | ||
var tmp0_dot = _Matrix___init__impl__q3kp4w(this.h33_1.b34()); | ||
var tmp1_dot = f.w33(this.d33_1); | ||
var tmp2_dot = f.w33(this.e33_1); | ||
var tmp3_dot = f.w33(this.f33_1); | ||
var tmp0_dot = _Matrix___init__impl__q3kp4w(this.j33_1.d34()); | ||
var tmp1_dot = f.y33(this.f33_1); | ||
var tmp2_dot = f.y33(this.g33_1); | ||
var tmp3_dot = f.y33(this.h33_1); | ||
// Inline function 'com.github.ajalt.colormath.model.RGB.toXYZ.<anonymous>' call | ||
@@ -686,9 +686,9 @@ var tmp4_anonymous = Matrix__get_impl_xogbpk(tmp0_dot, 0, 0) * tmp1_dot + Matrix__get_impl_xogbpk(tmp0_dot, 1, 0) * tmp2_dot + Matrix__get_impl_xogbpk(tmp0_dot, 2, 0) * tmp3_dot; | ||
var tmp6_anonymous = Matrix__get_impl_xogbpk(tmp0_dot, 0, 2) * tmp1_dot + Matrix__get_impl_xogbpk(tmp0_dot, 1, 2) * tmp2_dot + Matrix__get_impl_xogbpk(tmp0_dot, 2, 2) * tmp3_dot; | ||
return XYZColorSpace(this.h33_1.d34()).o33(tmp4_anonymous, tmp5_anonymous, tmp6_anonymous, this.g33_1); | ||
return XYZColorSpace(this.j33_1.f34()).q33(tmp4_anonymous, tmp5_anonymous, tmp6_anonymous, this.i33_1); | ||
}; | ||
protoOf(RGB).b33 = function () { | ||
protoOf(RGB).d33 = function () { | ||
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call | ||
var tmp0_anonymous = this.t34(SRGB_getInstance()); | ||
var tmp0_anonymous = this.v34(SRGB_getInstance()); | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp0_roundToInt = tmp0_anonymous.d35().l33_1 * 100; | ||
var tmp0_roundToInt = tmp0_anonymous.f35().n33_1 * 100; | ||
var value = roundToInt(tmp0_roundToInt); | ||
@@ -700,3 +700,3 @@ if (value === 30) | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp1_roundToInt = tmp0_anonymous.f33_1; | ||
var tmp1_roundToInt = tmp0_anonymous.h33_1; | ||
tmp$ret$1 = roundToInt(tmp1_roundToInt); | ||
@@ -706,16 +706,16 @@ var tmp = imul(tmp$ret$1, 4); | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp2_roundToInt = tmp0_anonymous.e33_1; | ||
var tmp2_roundToInt = tmp0_anonymous.g33_1; | ||
tmp$ret$2 = roundToInt(tmp2_roundToInt); | ||
var tmp_0 = tmp | imul(tmp$ret$2, 2); | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp3_roundToInt = tmp0_anonymous.d33_1; | ||
var tmp3_roundToInt = tmp0_anonymous.f33_1; | ||
var ansi = 30 + (tmp_0 | roundToInt(tmp3_roundToInt)) | 0; | ||
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi); | ||
}; | ||
protoOf(RGB).e35 = function () { | ||
protoOf(RGB).g35 = function () { | ||
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call | ||
var tmp0_anonymous = this.t34(SRGB_getInstance()); | ||
var ri = tmp0_anonymous.q34(); | ||
var gi = tmp0_anonymous.r34(); | ||
var bi = tmp0_anonymous.s34(); | ||
var tmp0_anonymous = this.v34(SRGB_getInstance()); | ||
var ri = tmp0_anonymous.s34(); | ||
var gi = tmp0_anonymous.t34(); | ||
var bi = tmp0_anonymous.u34(); | ||
var tmp; | ||
@@ -727,3 +727,3 @@ if (ri === gi ? gi === bi : false) { | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp0_roundToInt = tmp0_anonymous.d33_1 * 5; | ||
var tmp0_roundToInt = tmp0_anonymous.f33_1 * 5; | ||
tmp$ret$0 = roundToInt(tmp0_roundToInt); | ||
@@ -733,7 +733,7 @@ var tmp_0 = 16 + imul(36, tmp$ret$0) | 0; | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp1_roundToInt = tmp0_anonymous.e33_1 * 5; | ||
var tmp1_roundToInt = tmp0_anonymous.g33_1 * 5; | ||
tmp$ret$1 = roundToInt(tmp1_roundToInt); | ||
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0; | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp2_roundToInt = tmp0_anonymous.f33_1 * 5; | ||
var tmp2_roundToInt = tmp0_anonymous.h33_1 * 5; | ||
tmp = tmp_1 + roundToInt(tmp2_roundToInt) | 0; | ||
@@ -744,25 +744,25 @@ } | ||
}; | ||
protoOf(RGB).w32 = function () { | ||
return this.t34(RGBColorSpaces_getInstance().e34_1); | ||
protoOf(RGB).y32 = function () { | ||
return this.v34(RGBColorSpaces_getInstance().g34_1); | ||
}; | ||
protoOf(RGB).f35 = function (r, g, b, alpha, space) { | ||
protoOf(RGB).h35 = function (r, g, b, alpha, space) { | ||
return new RGB(r, g, b, alpha, space); | ||
}; | ||
protoOf(RGB).c35 = function (r, g, b, alpha, space, $super) { | ||
r = r === VOID ? this.d33_1 : r; | ||
g = g === VOID ? this.e33_1 : g; | ||
b = b === VOID ? this.f33_1 : b; | ||
alpha = alpha === VOID ? this.g33_1 : alpha; | ||
space = space === VOID ? this.h33_1 : space; | ||
return $super === VOID ? this.f35(r, g, b, alpha, space) : $super.f35.call(this, r, g, b, alpha, space); | ||
protoOf(RGB).e35 = function (r, g, b, alpha, space, $super) { | ||
r = r === VOID ? this.f33_1 : r; | ||
g = g === VOID ? this.g33_1 : g; | ||
b = b === VOID ? this.h33_1 : b; | ||
alpha = alpha === VOID ? this.i33_1 : alpha; | ||
space = space === VOID ? this.j33_1 : space; | ||
return $super === VOID ? this.h35(r, g, b, alpha, space) : $super.h35.call(this, r, g, b, alpha, space); | ||
}; | ||
protoOf(RGB).toString = function () { | ||
return 'RGB(r=' + this.d33_1 + ', g=' + this.e33_1 + ', b=' + this.f33_1 + ', alpha=' + this.g33_1 + ', space=' + this.h33_1 + ')'; | ||
return 'RGB(r=' + this.f33_1 + ', g=' + this.g33_1 + ', b=' + this.h33_1 + ', alpha=' + this.i33_1 + ', space=' + this.j33_1 + ')'; | ||
}; | ||
protoOf(RGB).hashCode = function () { | ||
var result = getNumberHashCode(this.d33_1); | ||
result = imul(result, 31) + getNumberHashCode(this.e33_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.f33_1) | 0; | ||
var result = getNumberHashCode(this.f33_1); | ||
result = imul(result, 31) + getNumberHashCode(this.g33_1) | 0; | ||
result = imul(result, 31) + hashCode(this.h33_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.h33_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.i33_1) | 0; | ||
result = imul(result, 31) + hashCode(this.j33_1) | 0; | ||
return result; | ||
@@ -776,6 +776,2 @@ }; | ||
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE(); | ||
if (!equals(this.d33_1, tmp0_other_with_cast.d33_1)) | ||
return false; | ||
if (!equals(this.e33_1, tmp0_other_with_cast.e33_1)) | ||
return false; | ||
if (!equals(this.f33_1, tmp0_other_with_cast.f33_1)) | ||
@@ -787,2 +783,6 @@ return false; | ||
return false; | ||
if (!equals(this.i33_1, tmp0_other_with_cast.i33_1)) | ||
return false; | ||
if (!equals(this.j33_1, tmp0_other_with_cast.j33_1)) | ||
return false; | ||
return true; | ||
@@ -890,14 +890,14 @@ }; | ||
RGBColorSpaces_instance = this; | ||
this.e34_1 = SRGB_getInstance(); | ||
this.f34_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().r32_1, LinearTransferFunctions_getInstance(), get_SRGB_R(), get_SRGB_G(), get_SRGB_B()); | ||
this.g34_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_getInstance(), get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B()); | ||
this.h34_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.i34_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.j34_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.k34_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().r32_1, new GammaTransferFunctions(2.19921875), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.21, 0.71), xyY_init_$Create$(0.15, 0.06)); | ||
this.l34_1 = BT2020Space_getInstance(); | ||
this.m34_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().r32_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06)); | ||
this.n34_1 = RGBColorSpace_0('DCI P3', new WhitePoint('DCI P3', xyY_init_$Create$(0.314, 0.351)), new GammaTransferFunctions(2.6), xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06)); | ||
this.o34_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().r32_1, SRGBTransferFunctions_getInstance(), xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06)); | ||
this.p34_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().p32_1, ROMMTransferFunctions_getInstance(), xyY_init_$Create$(0.7347, 0.2653), xyY_init_$Create$(0.1596, 0.8404), xyY_init_$Create$(0.0366, 1.0E-4)); | ||
this.g34_1 = SRGB_getInstance(); | ||
this.h34_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().t32_1, LinearTransferFunctions_getInstance(), get_SRGB_R(), get_SRGB_G(), get_SRGB_B()); | ||
this.i34_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_getInstance(), get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B()); | ||
this.j34_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.k34_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.l34_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.m34_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().t32_1, new GammaTransferFunctions(2.19921875), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.21, 0.71), xyY_init_$Create$(0.15, 0.06)); | ||
this.n34_1 = BT2020Space_getInstance(); | ||
this.o34_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().t32_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06)); | ||
this.p34_1 = RGBColorSpace_0('DCI P3', new WhitePoint('DCI P3', xyY_init_$Create$(0.314, 0.351)), new GammaTransferFunctions(2.6), xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06)); | ||
this.q34_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().t32_1, SRGBTransferFunctions_getInstance(), xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06)); | ||
this.r34_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().r32_1, ROMMTransferFunctions_getInstance(), xyY_init_$Create$(0.7347, 0.2653), xyY_init_$Create$(0.1596, 0.8404), xyY_init_$Create$(0.0366, 1.0E-4)); | ||
} | ||
@@ -912,16 +912,10 @@ var RGBColorSpaces_instance; | ||
SRGB_instance = this; | ||
this.p33_1 = 'sRGB'; | ||
this.q33_1 = rectangularComponentInfo('RGB'); | ||
this.r33_1 = Illuminant_getInstance().r32_1; | ||
this.s33_1 = SRGBTransferFunctions_getInstance(); | ||
this.t33_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.r33_1, get_SRGB_R(), get_SRGB_G(), get_SRGB_B())); | ||
this.u33_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.t33_1))); | ||
this.r33_1 = 'sRGB'; | ||
this.s33_1 = rectangularComponentInfo('RGB'); | ||
this.t33_1 = Illuminant_getInstance().t32_1; | ||
this.u33_1 = SRGBTransferFunctions_getInstance(); | ||
this.v33_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.t33_1, get_SRGB_R(), get_SRGB_G(), get_SRGB_B())); | ||
this.w33_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.v33_1))); | ||
} | ||
protoOf(SRGB).d34 = function () { | ||
return this.r33_1; | ||
}; | ||
protoOf(SRGB).a34 = function () { | ||
return this.s33_1; | ||
}; | ||
protoOf(SRGB).b34 = function () { | ||
protoOf(SRGB).f34 = function () { | ||
return this.t33_1; | ||
@@ -932,6 +926,12 @@ }; | ||
}; | ||
protoOf(SRGB).d34 = function () { | ||
return this.v33_1; | ||
}; | ||
protoOf(SRGB).e34 = function () { | ||
return this.w33_1; | ||
}; | ||
protoOf(SRGB).toString = function () { | ||
return this.p33_1; | ||
return this.r33_1; | ||
}; | ||
protoOf(SRGB).o33 = function (r, g, b, alpha) { | ||
protoOf(SRGB).q33 = function (r, g, b, alpha) { | ||
return new RGB(r, g, b, alpha, this); | ||
@@ -951,14 +951,14 @@ }; | ||
ACESccTransferFunctions_instance = this; | ||
this.g35_1 = 3.0517578125E-5; | ||
this.h35_1 = 1.52587890625E-5; | ||
this.i35_1 = -0.3013698630136986; | ||
this.i35_1 = 3.0517578125E-5; | ||
this.j35_1 = 1.52587890625E-5; | ||
this.k35_1 = -0.3013698630136986; | ||
var tmp = this; | ||
// Inline function 'kotlin.math.log2' call | ||
tmp.j35_1 = (log2(65504.0) + 9.72) / 17.52; | ||
tmp.l35_1 = (log2(65504.0) + 9.72) / 17.52; | ||
} | ||
protoOf(ACESccTransferFunctions).w33 = function (x) { | ||
protoOf(ACESccTransferFunctions).y33 = function (x) { | ||
var tmp; | ||
if (x <= -0.3013698630136986) { | ||
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0; | ||
} else if (x < this.j35_1) { | ||
} else if (x < this.l35_1) { | ||
// Inline function 'kotlin.math.pow' call | ||
@@ -972,3 +972,3 @@ var tmp0_pow = x * 17.52 - 9.72; | ||
}; | ||
protoOf(ACESccTransferFunctions).x33 = function (x) { | ||
protoOf(ACESccTransferFunctions).z33 = function (x) { | ||
var tmp; | ||
@@ -993,13 +993,13 @@ if (x < 3.0517578125E-5) { | ||
ACEScctTransferFunctions_instance = this; | ||
this.k35_1 = 10.5402377416545; | ||
this.l35_1 = 0.0729055341958355; | ||
this.m35_1 = 10.5402377416545; | ||
this.n35_1 = 0.0729055341958355; | ||
var tmp = this; | ||
// Inline function 'kotlin.math.log2' call | ||
tmp.m35_1 = (log2(65504.0) + 9.72) / 17.52; | ||
tmp.o35_1 = (log2(65504.0) + 9.72) / 17.52; | ||
} | ||
protoOf(ACEScctTransferFunctions).w33 = function (x) { | ||
protoOf(ACEScctTransferFunctions).y33 = function (x) { | ||
var tmp; | ||
if (x <= 0.155251141552511) { | ||
tmp = (x - 0.0729055341958355) / 10.5402377416545; | ||
} else if (x < this.m35_1) { | ||
} else if (x < this.o35_1) { | ||
// Inline function 'kotlin.math.pow' call | ||
@@ -1013,3 +1013,3 @@ var tmp0_pow = x * 17.52 - 9.72; | ||
}; | ||
protoOf(ACEScctTransferFunctions).x33 = function (x) { | ||
protoOf(ACEScctTransferFunctions).z33 = function (x) { | ||
var tmp; | ||
@@ -1032,26 +1032,26 @@ if (x < 0.0078125) { | ||
BT2020Space_instance = this; | ||
this.n35_1 = 'BT.2020'; | ||
this.o35_1 = rectangularComponentInfo('RGB'); | ||
this.p35_1 = Illuminant_getInstance().r32_1; | ||
this.q35_1 = BT2020TransferFunctions_getInstance(); | ||
this.r35_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.p35_1, xyY_init_$Create$(0.708, 0.292), xyY_init_$Create$(0.17, 0.797), xyY_init_$Create$(0.131, 0.046))); | ||
this.s35_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.r35_1))); | ||
this.p35_1 = 'BT.2020'; | ||
this.q35_1 = rectangularComponentInfo('RGB'); | ||
this.r35_1 = Illuminant_getInstance().t32_1; | ||
this.s35_1 = BT2020TransferFunctions_getInstance(); | ||
this.t35_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.r35_1, xyY_init_$Create$(0.708, 0.292), xyY_init_$Create$(0.17, 0.797), xyY_init_$Create$(0.131, 0.046))); | ||
this.u35_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.t35_1))); | ||
} | ||
protoOf(BT2020Space).d34 = function () { | ||
return this.p35_1; | ||
protoOf(BT2020Space).f34 = function () { | ||
return this.r35_1; | ||
}; | ||
protoOf(BT2020Space).a34 = function () { | ||
return this.q35_1; | ||
protoOf(BT2020Space).c34 = function () { | ||
return this.s35_1; | ||
}; | ||
protoOf(BT2020Space).o33 = function (r, g, b, alpha) { | ||
protoOf(BT2020Space).q33 = function (r, g, b, alpha) { | ||
return new RGB(r, g, b, alpha, this); | ||
}; | ||
protoOf(BT2020Space).b34 = function () { | ||
return this.r35_1; | ||
protoOf(BT2020Space).d34 = function () { | ||
return this.t35_1; | ||
}; | ||
protoOf(BT2020Space).c34 = function () { | ||
return this.s35_1; | ||
protoOf(BT2020Space).e34 = function () { | ||
return this.u35_1; | ||
}; | ||
protoOf(BT2020Space).toString = function () { | ||
return this.n35_1; | ||
return this.p35_1; | ||
}; | ||
@@ -1066,8 +1066,8 @@ var BT2020Space_instance; | ||
BT709TransferFunctions_instance = this; | ||
this.t35_1 = 1.099 * spow_0(0.018, 0.45) - 0.099; | ||
this.v35_1 = 1.099 * spow_0(0.018, 0.45) - 0.099; | ||
} | ||
protoOf(BT709TransferFunctions).w33 = function (x) { | ||
return numberToDouble(x < this.t35_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 2.2222222222222223)); | ||
protoOf(BT709TransferFunctions).y33 = function (x) { | ||
return numberToDouble(x < this.v35_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 2.2222222222222223)); | ||
}; | ||
protoOf(BT709TransferFunctions).x33 = function (x) { | ||
protoOf(BT709TransferFunctions).z33 = function (x) { | ||
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099; | ||
@@ -1084,6 +1084,6 @@ }; | ||
} | ||
protoOf(SRGBTransferFunctions).x33 = function (x) { | ||
protoOf(SRGBTransferFunctions).z33 = function (x) { | ||
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 0.4166666666666667) - 0.055; | ||
}; | ||
protoOf(SRGBTransferFunctions).w33 = function (x) { | ||
protoOf(SRGBTransferFunctions).y33 = function (x) { | ||
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4); | ||
@@ -1099,8 +1099,8 @@ }; | ||
ROMMTransferFunctions_instance = this; | ||
this.u35_1 = 0.001953; | ||
this.w35_1 = 0.001953; | ||
} | ||
protoOf(ROMMTransferFunctions).w33 = function (x) { | ||
protoOf(ROMMTransferFunctions).y33 = function (x) { | ||
return x < 0.031248 ? x / 16.0 : spow(x, 1.8); | ||
}; | ||
protoOf(ROMMTransferFunctions).x33 = function (x) { | ||
protoOf(ROMMTransferFunctions).z33 = function (x) { | ||
return x < 0.001953 ? x * 16.0 : spow(x, 0.5555555555555556); | ||
@@ -1116,9 +1116,9 @@ }; | ||
_init_properties_RGBColorSpaces_kt__nc9fsz(); | ||
var primaries = _Matrix___init__impl__q3kp4w_0(r.v35_1, g.v35_1, b.v35_1, r.w35_1, g.w35_1, b.w35_1, r.y35(), g.y35(), b.y35()); | ||
var wp = whitePoint.l32_1; | ||
var primaries = _Matrix___init__impl__q3kp4w_0(r.x35_1, g.x35_1, b.x35_1, r.y35_1, g.y35_1, b.y35_1, r.a36(), g.a36(), b.a36()); | ||
var wp = whitePoint.n32_1; | ||
// Inline function 'com.github.ajalt.colormath.internal.dot' call | ||
var tmp0_dot = inverse(primaries); | ||
var tmp1_dot = wp.z35(); | ||
var tmp2_dot = wp.x35_1; | ||
var tmp3_dot = wp.a36(); | ||
var tmp1_dot = wp.b36(); | ||
var tmp2_dot = wp.z35_1; | ||
var tmp3_dot = wp.c36(); | ||
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call | ||
@@ -1131,37 +1131,37 @@ var tmp4_anonymous = Matrix__get_impl_xogbpk(tmp0_dot, 0, 0) * tmp1_dot + Matrix__get_impl_xogbpk(tmp0_dot, 1, 0) * tmp2_dot + Matrix__get_impl_xogbpk(tmp0_dot, 2, 0) * tmp3_dot; | ||
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b) { | ||
this.b36_1 = name; | ||
this.c36_1 = whitePoint; | ||
this.d36_1 = transferFunctions; | ||
this.e36_1 = r; | ||
this.f36_1 = g; | ||
this.g36_1 = b; | ||
this.h36_1 = rectangularComponentInfo('RGB'); | ||
this.i36_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.c36_1, this.e36_1, this.f36_1, this.g36_1)); | ||
this.j36_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.i36_1))); | ||
this.d36_1 = name; | ||
this.e36_1 = whitePoint; | ||
this.f36_1 = transferFunctions; | ||
this.g36_1 = r; | ||
this.h36_1 = g; | ||
this.i36_1 = b; | ||
this.j36_1 = rectangularComponentInfo('RGB'); | ||
this.k36_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.e36_1, this.g36_1, this.h36_1, this.i36_1)); | ||
this.l36_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.k36_1))); | ||
} | ||
protoOf(RGBColorSpaceImpl).d34 = function () { | ||
return this.c36_1; | ||
protoOf(RGBColorSpaceImpl).f34 = function () { | ||
return this.e36_1; | ||
}; | ||
protoOf(RGBColorSpaceImpl).a34 = function () { | ||
return this.d36_1; | ||
protoOf(RGBColorSpaceImpl).c34 = function () { | ||
return this.f36_1; | ||
}; | ||
protoOf(RGBColorSpaceImpl).b34 = function () { | ||
return this.i36_1; | ||
protoOf(RGBColorSpaceImpl).d34 = function () { | ||
return this.k36_1; | ||
}; | ||
protoOf(RGBColorSpaceImpl).c34 = function () { | ||
return this.j36_1; | ||
protoOf(RGBColorSpaceImpl).e34 = function () { | ||
return this.l36_1; | ||
}; | ||
protoOf(RGBColorSpaceImpl).toString = function () { | ||
return this.b36_1; | ||
return this.d36_1; | ||
}; | ||
protoOf(RGBColorSpaceImpl).o33 = function (r, g, b, alpha) { | ||
protoOf(RGBColorSpaceImpl).q33 = function (r, g, b, alpha) { | ||
return new RGB(r, g, b, alpha, this); | ||
}; | ||
protoOf(RGBColorSpaceImpl).hashCode = function () { | ||
var result = getStringHashCode(this.b36_1); | ||
result = imul(result, 31) + this.c36_1.hashCode() | 0; | ||
result = imul(result, 31) + hashCode(this.d36_1) | 0; | ||
var result = getStringHashCode(this.d36_1); | ||
result = imul(result, 31) + this.e36_1.hashCode() | 0; | ||
result = imul(result, 31) + this.f36_1.hashCode() | 0; | ||
result = imul(result, 31) + hashCode(this.f36_1) | 0; | ||
result = imul(result, 31) + this.g36_1.hashCode() | 0; | ||
result = imul(result, 31) + this.h36_1.hashCode() | 0; | ||
result = imul(result, 31) + this.i36_1.hashCode() | 0; | ||
return result; | ||
@@ -1175,14 +1175,14 @@ }; | ||
var tmp0_other_with_cast = other instanceof RGBColorSpaceImpl ? other : THROW_CCE(); | ||
if (!(this.b36_1 === tmp0_other_with_cast.b36_1)) | ||
if (!(this.d36_1 === tmp0_other_with_cast.d36_1)) | ||
return false; | ||
if (!this.c36_1.equals(tmp0_other_with_cast.c36_1)) | ||
return false; | ||
if (!equals(this.d36_1, tmp0_other_with_cast.d36_1)) | ||
return false; | ||
if (!this.e36_1.equals(tmp0_other_with_cast.e36_1)) | ||
return false; | ||
if (!this.f36_1.equals(tmp0_other_with_cast.f36_1)) | ||
if (!equals(this.f36_1, tmp0_other_with_cast.f36_1)) | ||
return false; | ||
if (!this.g36_1.equals(tmp0_other_with_cast.g36_1)) | ||
return false; | ||
if (!this.h36_1.equals(tmp0_other_with_cast.h36_1)) | ||
return false; | ||
if (!this.i36_1.equals(tmp0_other_with_cast.i36_1)) | ||
return false; | ||
return true; | ||
@@ -1192,12 +1192,12 @@ }; | ||
BT2020TransferFunctions_instance = this; | ||
this.k36_1 = 1.0993; | ||
this.l36_1 = 0.0181; | ||
this.m36_1 = 1.0993; | ||
this.n36_1 = 0.0181; | ||
var tmp = this; | ||
// Inline function 'kotlin.math.pow' call | ||
tmp.m36_1 = 1.0993 * Math.pow(0.0181, 0.45) - 0.09929999999999994; | ||
tmp.o36_1 = 1.0993 * Math.pow(0.0181, 0.45) - 0.09929999999999994; | ||
} | ||
protoOf(BT2020TransferFunctions).w33 = function (x) { | ||
return numberToDouble(x < this.m36_1 ? x / 4.5 : spow_0((x + 0.09929999999999994) / 1.0993, 2.2222222222222223)); | ||
protoOf(BT2020TransferFunctions).y33 = function (x) { | ||
return numberToDouble(x < this.o36_1 ? x / 4.5 : spow_0((x + 0.09929999999999994) / 1.0993, 2.2222222222222223)); | ||
}; | ||
protoOf(BT2020TransferFunctions).x33 = function (x) { | ||
protoOf(BT2020TransferFunctions).z33 = function (x) { | ||
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - 0.09929999999999994; | ||
@@ -1229,9 +1229,9 @@ }; | ||
Companion_instance_3 = this; | ||
this.n36_1 = XYZColorSpaces_getInstance().o36_1; | ||
this.p36_1 = XYZColorSpaces_getInstance().q36_1; | ||
} | ||
protoOf(Companion_3).d34 = function () { | ||
return this.n36_1.d34(); | ||
protoOf(Companion_3).f34 = function () { | ||
return this.p36_1.f34(); | ||
}; | ||
protoOf(Companion_3).o33 = function (x, y, z, alpha) { | ||
return this.n36_1.o33(x, y, z, alpha); | ||
protoOf(Companion_3).q33 = function (x, y, z, alpha) { | ||
return this.p36_1.q33(x, y, z, alpha); | ||
}; | ||
@@ -1245,9 +1245,9 @@ var Companion_instance_3; | ||
function adaptToM($this, space, m, mi) { | ||
if (space.d34().equals($this.z34_1.d34())) | ||
if (space.f34().equals($this.b35_1.f34())) | ||
return $this; | ||
var transform = chromaticAdaptationMatrix(space, $this.z34_1.d34().l32_1, m, mi); | ||
var transform = chromaticAdaptationMatrix(space, $this.b35_1.f34().n32_1, m, mi); | ||
// Inline function 'com.github.ajalt.colormath.internal.dot' call | ||
var tmp0_dot = $this.v34_1; | ||
var tmp1_dot = $this.w34_1; | ||
var tmp2_dot = $this.x34_1; | ||
var tmp0_dot = $this.x34_1; | ||
var tmp1_dot = $this.y34_1; | ||
var tmp2_dot = $this.z34_1; | ||
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call | ||
@@ -1257,23 +1257,23 @@ var tmp3_anonymous = Matrix__get_impl_xogbpk(transform, 0, 0) * tmp0_dot + Matrix__get_impl_xogbpk(transform, 1, 0) * tmp1_dot + Matrix__get_impl_xogbpk(transform, 2, 0) * tmp2_dot; | ||
var tmp5_anonymous = Matrix__get_impl_xogbpk(transform, 0, 2) * tmp0_dot + Matrix__get_impl_xogbpk(transform, 1, 2) * tmp1_dot + Matrix__get_impl_xogbpk(transform, 2, 2) * tmp2_dot; | ||
return space.o33(tmp3_anonymous, tmp4_anonymous, tmp5_anonymous, $this.y34_1); | ||
return space.q33(tmp3_anonymous, tmp4_anonymous, tmp5_anonymous, $this.a35_1); | ||
} | ||
function XYZ(x, y, z, alpha, space) { | ||
Companion_getInstance_3(); | ||
this.v34_1 = x; | ||
this.w34_1 = y; | ||
this.x34_1 = z; | ||
this.y34_1 = alpha; | ||
this.z34_1 = space; | ||
this.x34_1 = x; | ||
this.y34_1 = y; | ||
this.z34_1 = z; | ||
this.a35_1 = alpha; | ||
this.b35_1 = space; | ||
} | ||
protoOf(XYZ).q36 = function (space) { | ||
protoOf(XYZ).s36 = function (space) { | ||
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ()); | ||
}; | ||
protoOf(XYZ).a35 = function (space) { | ||
var tmp0_container = this.q36(XYZColorSpace(space.d34())); | ||
protoOf(XYZ).c35 = function (space) { | ||
var tmp0_container = this.s36(XYZColorSpace(space.f34())); | ||
var x = tmp0_container.gd(); | ||
var y = tmp0_container.hd(); | ||
var z = tmp0_container.ah(); | ||
var f = space.a34(); | ||
var f = space.c34(); | ||
// Inline function 'com.github.ajalt.colormath.internal.dot' call | ||
var tmp0_dot = _Matrix___init__impl__q3kp4w(space.c34()); | ||
var tmp0_dot = _Matrix___init__impl__q3kp4w(space.e34()); | ||
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call | ||
@@ -1283,25 +1283,25 @@ var tmp1_anonymous = Matrix__get_impl_xogbpk(tmp0_dot, 0, 0) * x + Matrix__get_impl_xogbpk(tmp0_dot, 1, 0) * y + Matrix__get_impl_xogbpk(tmp0_dot, 2, 0) * z; | ||
var tmp3_anonymous = Matrix__get_impl_xogbpk(tmp0_dot, 0, 2) * x + Matrix__get_impl_xogbpk(tmp0_dot, 1, 2) * y + Matrix__get_impl_xogbpk(tmp0_dot, 2, 2) * z; | ||
return space.o33(f.x33(tmp1_anonymous), f.x33(tmp2_anonymous), f.x33(tmp3_anonymous), this.y34_1); | ||
return space.q33(f.z33(tmp1_anonymous), f.z33(tmp2_anonymous), f.z33(tmp3_anonymous), this.a35_1); | ||
}; | ||
protoOf(XYZ).w32 = function () { | ||
return this.a35(RGBColorSpaces_getInstance().e34_1); | ||
protoOf(XYZ).y32 = function () { | ||
return this.c35(RGBColorSpaces_getInstance().g34_1); | ||
}; | ||
protoOf(XYZ).gd = function () { | ||
return this.v34_1; | ||
return this.x34_1; | ||
}; | ||
protoOf(XYZ).hd = function () { | ||
return this.w34_1; | ||
return this.y34_1; | ||
}; | ||
protoOf(XYZ).ah = function () { | ||
return this.x34_1; | ||
return this.z34_1; | ||
}; | ||
protoOf(XYZ).toString = function () { | ||
return 'XYZ(x=' + this.v34_1 + ', y=' + this.w34_1 + ', z=' + this.x34_1 + ', alpha=' + this.y34_1 + ', space=' + this.z34_1 + ')'; | ||
return 'XYZ(x=' + this.x34_1 + ', y=' + this.y34_1 + ', z=' + this.z34_1 + ', alpha=' + this.a35_1 + ', space=' + this.b35_1 + ')'; | ||
}; | ||
protoOf(XYZ).hashCode = function () { | ||
var result = getNumberHashCode(this.v34_1); | ||
result = imul(result, 31) + getNumberHashCode(this.w34_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.x34_1) | 0; | ||
var result = getNumberHashCode(this.x34_1); | ||
result = imul(result, 31) + getNumberHashCode(this.y34_1) | 0; | ||
result = imul(result, 31) + hashCode(this.z34_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.z34_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.a35_1) | 0; | ||
result = imul(result, 31) + hashCode(this.b35_1) | 0; | ||
return result; | ||
@@ -1315,6 +1315,2 @@ }; | ||
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE(); | ||
if (!equals(this.v34_1, tmp0_other_with_cast.v34_1)) | ||
return false; | ||
if (!equals(this.w34_1, tmp0_other_with_cast.w34_1)) | ||
return false; | ||
if (!equals(this.x34_1, tmp0_other_with_cast.x34_1)) | ||
@@ -1326,11 +1322,15 @@ return false; | ||
return false; | ||
if (!equals(this.a35_1, tmp0_other_with_cast.a35_1)) | ||
return false; | ||
if (!equals(this.b35_1, tmp0_other_with_cast.b35_1)) | ||
return false; | ||
return true; | ||
}; | ||
function XYZColorSpace(whitePoint) { | ||
return whitePoint.equals(Illuminant_getInstance().r32_1) ? XYZColorSpaces_getInstance().o36_1 : whitePoint.equals(Illuminant_getInstance().p32_1) ? XYZColorSpaces_getInstance().p36_1 : new XYZColorSpaceImpl(whitePoint); | ||
return whitePoint.equals(Illuminant_getInstance().t32_1) ? XYZColorSpaces_getInstance().q36_1 : whitePoint.equals(Illuminant_getInstance().r32_1) ? XYZColorSpaces_getInstance().r36_1 : new XYZColorSpaceImpl(whitePoint); | ||
} | ||
function XYZColorSpaces() { | ||
XYZColorSpaces_instance = this; | ||
this.o36_1 = new XYZColorSpaceImpl(Illuminant_getInstance().r32_1); | ||
this.p36_1 = new XYZColorSpaceImpl(Illuminant_getInstance().p32_1); | ||
this.q36_1 = new XYZColorSpaceImpl(Illuminant_getInstance().t32_1); | ||
this.r36_1 = new XYZColorSpaceImpl(Illuminant_getInstance().r32_1); | ||
} | ||
@@ -1346,22 +1346,22 @@ var XYZColorSpaces_instance; | ||
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz; | ||
var dstWp = _this__u8e3s4.d34().l32_1; | ||
var src = dot_0(xyzToLms, srcWp.z35(), srcWp.x35_1, srcWp.a36()); | ||
var dst = dot_0(xyzToLms, dstWp.z35(), dstWp.x35_1, dstWp.a36()); | ||
var dstWp = _this__u8e3s4.f34().n32_1; | ||
var src = dot_0(xyzToLms, srcWp.b36(), srcWp.z35_1, srcWp.c36()); | ||
var dst = dot_0(xyzToLms, dstWp.b36(), dstWp.z35_1, dstWp.c36()); | ||
return dot(dotDiagonal(lmsToXyz, _Vector___get_l__impl__envr1l(dst) / _Vector___get_l__impl__envr1l(src), _Vector___get_m__impl__e5qq0m(dst) / _Vector___get_m__impl__e5qq0m(src), _Vector___get_s__impl__pzuljk(dst) / _Vector___get_s__impl__pzuljk(src)), xyzToLms); | ||
} | ||
function XYZColorSpaceImpl(whitePoint) { | ||
this.r36_1 = whitePoint; | ||
this.s36_1 = rectangularComponentInfo('XYZ'); | ||
this.t36_1 = whitePoint; | ||
this.u36_1 = rectangularComponentInfo('XYZ'); | ||
} | ||
protoOf(XYZColorSpaceImpl).d34 = function () { | ||
return this.r36_1; | ||
protoOf(XYZColorSpaceImpl).f34 = function () { | ||
return this.t36_1; | ||
}; | ||
protoOf(XYZColorSpaceImpl).toString = function () { | ||
return 'XYZColorSpace(' + this.r36_1 + ')'; | ||
return 'XYZColorSpace(' + this.t36_1 + ')'; | ||
}; | ||
protoOf(XYZColorSpaceImpl).o33 = function (x, y, z, alpha) { | ||
protoOf(XYZColorSpaceImpl).q33 = function (x, y, z, alpha) { | ||
return new XYZ(x, y, z, alpha, this); | ||
}; | ||
protoOf(XYZColorSpaceImpl).hashCode = function () { | ||
return this.r36_1.hashCode(); | ||
return this.t36_1.hashCode(); | ||
}; | ||
@@ -1374,3 +1374,3 @@ protoOf(XYZColorSpaceImpl).equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof XYZColorSpaceImpl ? other : THROW_CCE(); | ||
if (!this.r36_1.equals(tmp0_other_with_cast.r36_1)) | ||
if (!this.t36_1.equals(tmp0_other_with_cast.t36_1)) | ||
return false; | ||
@@ -1389,22 +1389,22 @@ return true; | ||
Y = Y === VOID ? 1.0 : Y; | ||
this.v35_1 = x; | ||
this.w35_1 = y; | ||
this.x35_1 = Y; | ||
this.x35_1 = x; | ||
this.y35_1 = y; | ||
this.z35_1 = Y; | ||
} | ||
protoOf(xyY).y35 = function () { | ||
return 1 - this.v35_1 - this.w35_1; | ||
protoOf(xyY).a36 = function () { | ||
return 1 - this.x35_1 - this.y35_1; | ||
}; | ||
protoOf(xyY).z35 = function () { | ||
return this.v35_1 * this.x35_1 / this.w35_1; | ||
protoOf(xyY).b36 = function () { | ||
return this.x35_1 * this.z35_1 / this.y35_1; | ||
}; | ||
protoOf(xyY).a36 = function () { | ||
return (1 - this.v35_1 - this.w35_1) * this.x35_1 / this.w35_1; | ||
protoOf(xyY).c36 = function () { | ||
return (1 - this.x35_1 - this.y35_1) * this.z35_1 / this.y35_1; | ||
}; | ||
protoOf(xyY).toString = function () { | ||
return 'xyY(x=' + this.v35_1 + ', y=' + this.w35_1 + ', Y=' + this.x35_1 + ')'; | ||
return 'xyY(x=' + this.x35_1 + ', y=' + this.y35_1 + ', Y=' + this.z35_1 + ')'; | ||
}; | ||
protoOf(xyY).hashCode = function () { | ||
var result = getNumberHashCode(this.v35_1); | ||
result = imul(result, 31) + getNumberHashCode(this.w35_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.x35_1) | 0; | ||
var result = getNumberHashCode(this.x35_1); | ||
result = imul(result, 31) + getNumberHashCode(this.y35_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.z35_1) | 0; | ||
return result; | ||
@@ -1418,7 +1418,7 @@ }; | ||
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE(); | ||
if (!equals(this.v35_1, tmp0_other_with_cast.v35_1)) | ||
if (!equals(this.x35_1, tmp0_other_with_cast.x35_1)) | ||
return false; | ||
if (!equals(this.w35_1, tmp0_other_with_cast.w35_1)) | ||
if (!equals(this.y35_1, tmp0_other_with_cast.y35_1)) | ||
return false; | ||
if (!equals(this.x35_1, tmp0_other_with_cast.x35_1)) | ||
if (!equals(this.z35_1, tmp0_other_with_cast.z35_1)) | ||
return false; | ||
@@ -1428,23 +1428,23 @@ return true; | ||
//region block: post-declaration | ||
protoOf(Companion_2).y32 = from255$default; | ||
protoOf(Companion_2).x32 = invoke$default; | ||
protoOf(Companion_2).c33 = invoke$default_0; | ||
protoOf(SRGB).x32 = invoke$default; | ||
protoOf(SRGB).y33 = invoke; | ||
protoOf(SRGB).c33 = invoke$default_0; | ||
protoOf(Companion_2).a33 = from255$default; | ||
protoOf(Companion_2).z32 = invoke$default; | ||
protoOf(Companion_2).e33 = invoke$default_0; | ||
protoOf(SRGB).z32 = invoke$default; | ||
protoOf(SRGB).a34 = invoke; | ||
protoOf(SRGB).e33 = invoke$default_0; | ||
protoOf(SRGB).j28 = invoke_0; | ||
protoOf(SRGB).z33 = from255; | ||
protoOf(SRGB).y32 = from255$default; | ||
protoOf(BT2020Space).x32 = invoke$default; | ||
protoOf(BT2020Space).y33 = invoke; | ||
protoOf(BT2020Space).c33 = invoke$default_0; | ||
protoOf(SRGB).b34 = from255; | ||
protoOf(SRGB).a33 = from255$default; | ||
protoOf(BT2020Space).z32 = invoke$default; | ||
protoOf(BT2020Space).a34 = invoke; | ||
protoOf(BT2020Space).e33 = invoke$default_0; | ||
protoOf(BT2020Space).j28 = invoke_0; | ||
protoOf(BT2020Space).z33 = from255; | ||
protoOf(BT2020Space).y32 = from255$default; | ||
protoOf(RGBColorSpaceImpl).x32 = invoke$default; | ||
protoOf(RGBColorSpaceImpl).y33 = invoke; | ||
protoOf(RGBColorSpaceImpl).c33 = invoke$default_0; | ||
protoOf(BT2020Space).b34 = from255; | ||
protoOf(BT2020Space).a33 = from255$default; | ||
protoOf(RGBColorSpaceImpl).z32 = invoke$default; | ||
protoOf(RGBColorSpaceImpl).a34 = invoke; | ||
protoOf(RGBColorSpaceImpl).e33 = invoke$default_0; | ||
protoOf(RGBColorSpaceImpl).j28 = invoke_0; | ||
protoOf(RGBColorSpaceImpl).z33 = from255; | ||
protoOf(RGBColorSpaceImpl).y32 = from255$default; | ||
protoOf(RGBColorSpaceImpl).b34 = from255; | ||
protoOf(RGBColorSpaceImpl).a33 = from255$default; | ||
//endregion | ||
@@ -1451,0 +1451,0 @@ //region block: exports |
{ | ||
"name": "@flock/wirespec", | ||
"version": "0.9.7", | ||
"version": "0.9.8", | ||
"main": "wirespec-src-plugin-npm.js", | ||
@@ -5,0 +5,0 @@ "types": "wirespec-src-plugin-npm.d.ts", |
@@ -25,3 +25,3 @@ (function (root, factory) { | ||
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.k; | ||
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.h; | ||
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.i; | ||
var isInterface = kotlin_kotlin.$_$.ba; | ||
@@ -36,6 +36,6 @@ var toString = kotlin_kotlin.$_$.ta; | ||
var NotImplementedError = kotlin_kotlin.$_$.re; | ||
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.q; | ||
var Any = kotlin_community_flock_wirespec_compiler_core.$_$.r; | ||
var JsonNull_getInstance = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.c; | ||
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.t; | ||
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.r; | ||
var Unit = kotlin_community_flock_wirespec_compiler_core.$_$.u; | ||
var Custom = kotlin_community_flock_wirespec_compiler_core.$_$.s; | ||
var Companion_getInstance = kotlin_community_flock_kotlinx_rgxgen_kotlin_rgxgen.$_$.a; | ||
@@ -45,3 +45,3 @@ var JsonPrimitive = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.h; | ||
var JsonPrimitive_1 = kotlin_org_jetbrains_kotlinx_kotlinx_serialization_json.$_$.j; | ||
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.s; | ||
var Primitive = kotlin_community_flock_wirespec_compiler_core.$_$.t; | ||
var emptyMap = kotlin_kotlin.$_$.y5; | ||
@@ -55,7 +55,7 @@ var charSequenceGet = kotlin_kotlin.$_$.g9; | ||
var toList = kotlin_kotlin.$_$.g8; | ||
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.o; | ||
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.z; | ||
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.p; | ||
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.w; | ||
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.y; | ||
var Endpoint = kotlin_community_flock_wirespec_compiler_core.$_$.p; | ||
var Union = kotlin_community_flock_wirespec_compiler_core.$_$.b1; | ||
var Enum = kotlin_community_flock_wirespec_compiler_core.$_$.q; | ||
var Refined = kotlin_community_flock_wirespec_compiler_core.$_$.y; | ||
var Type = kotlin_community_flock_wirespec_compiler_core.$_$.a1; | ||
var removeSuffix = kotlin_kotlin.$_$.wc; | ||
@@ -137,3 +137,3 @@ var endsWith = kotlin_kotlin.$_$.dc; | ||
var tmp0_let = Companion_getInstance().c46('\\w{1,50}').l46(random); | ||
var tmp0_let = Companion_getInstance().e46('\\w{1,50}').n46(random); | ||
// Inline function 'kotlin.contracts.contract' call | ||
@@ -238,4 +238,4 @@ | ||
tmp$ret$1 = regex.substring(1, tmp0_substring); | ||
var rgxgen = tmp.c46(tmp$ret$1); | ||
return rgxgen.l46(random); | ||
var rgxgen = tmp.e46(tmp$ret$1); | ||
return rgxgen.n46(random); | ||
} | ||
@@ -259,3 +259,3 @@ function generateRefined($this, def, random) { | ||
var type = toList(def.o28_1).g1(index); | ||
return $this.e5i(_this__u8e3s4, type, random); | ||
return $this.g5i(_this__u8e3s4, type, random); | ||
} | ||
@@ -290,11 +290,11 @@ function generateObject(_this__u8e3s4, $this, def, random) { | ||
} | ||
protoOf(Generator).f5i = function (_this__u8e3s4, type, random) { | ||
protoOf(Generator).h5i = function (_this__u8e3s4, type, random) { | ||
var ref = new Custom(removeSuffix(type, '[]'), endsWith(type, '[]'), false); | ||
return this.e5i(_this__u8e3s4, ref, random); | ||
return this.g5i(_this__u8e3s4, ref, random); | ||
}; | ||
protoOf(Generator).g5i = function (_this__u8e3s4, type, random, $super) { | ||
protoOf(Generator).i5i = function (_this__u8e3s4, type, random, $super) { | ||
random = random === VOID ? Default_getInstance() : random; | ||
return $super === VOID ? this.f5i(_this__u8e3s4, type, random) : $super.f5i.call(this, _this__u8e3s4, type, random); | ||
return $super === VOID ? this.h5i(_this__u8e3s4, type, random) : $super.h5i.call(this, _this__u8e3s4, type, random); | ||
}; | ||
protoOf(Generator).e5i = function (_this__u8e3s4, type, random) { | ||
protoOf(Generator).g5i = function (_this__u8e3s4, type, random) { | ||
var def = resolveReference(_this__u8e3s4, this, type); | ||
@@ -301,0 +301,0 @@ var tmp; |
@@ -74,3 +74,3 @@ (function (root, factory) { | ||
var copyToArray = kotlin_kotlin.$_$.t5; | ||
var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.e1; | ||
var Logger = kotlin_community_flock_wirespec_compiler_core.$_$.g1; | ||
var toString = kotlin_kotlin.$_$.ta; | ||
@@ -97,3 +97,3 @@ var FileExtension_Wirespec_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.o; | ||
var PackageName = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.i; | ||
var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.c1; | ||
var component1 = kotlin_community_flock_wirespec_compiler_core.$_$.e1; | ||
var JavaEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.c; | ||
@@ -108,6 +108,6 @@ var FileExtension_Java_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.j; | ||
var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.g; | ||
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.u1; | ||
var compile = kotlin_community_flock_wirespec_compiler_core.$_$.b1; | ||
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y1; | ||
var compile = kotlin_community_flock_wirespec_compiler_core.$_$.d1; | ||
var Left = kotlin_io_arrow_kt_arrow_core.$_$.c; | ||
var Companion_getInstance_4 = kotlin_community_flock_wirespec_compiler_core.$_$.s1; | ||
var Companion_getInstance_4 = kotlin_community_flock_wirespec_compiler_core.$_$.w1; | ||
var Right = kotlin_io_arrow_kt_arrow_core.$_$.d; | ||
@@ -124,5 +124,5 @@ var println = kotlin_kotlin.$_$.x8; | ||
var FileExtension_Json_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.k; | ||
var parse = kotlin_community_flock_wirespec_compiler_core.$_$.d1; | ||
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.f1; | ||
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.h; | ||
var parse = kotlin_community_flock_wirespec_compiler_core.$_$.f1; | ||
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.h1; | ||
var Definition = kotlin_community_flock_wirespec_compiler_core.$_$.i; | ||
var isInterface = kotlin_kotlin.$_$.ba; | ||
@@ -164,3 +164,3 @@ var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.d; | ||
var l = function (p0) { | ||
$boundThis.i3q(p0); | ||
$boundThis.k3q(p0); | ||
return Unit_getInstance(); | ||
@@ -174,3 +174,3 @@ }; | ||
} | ||
protoOf(Companion).i42 = function (compile, convert) { | ||
protoOf(Companion).k42 = function (compile, convert) { | ||
return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile), new Convert_0(convert)])); | ||
@@ -189,24 +189,24 @@ }; | ||
function _get_languages__ojonze($this) { | ||
return $this.i43_1.k3z($this, languages$factory_0()); | ||
return $this.k43_1.m3z($this, languages$factory_0()); | ||
} | ||
function Compile_0(block) { | ||
CommonOptions.call(this); | ||
this.h43_1 = block; | ||
this.i43_1 = multiple(choice(option(this, Options_Language_getInstance().l43_1.slice(), 'Language'), Companion_getInstance().n2b()), VOID, true).m40(this, languages$factory()); | ||
this.j43_1 = block; | ||
this.k43_1 = multiple(choice(option(this, Options_Language_getInstance().n43_1.slice(), 'Language'), Companion_getInstance().n2b()), VOID, true).o40(this, languages$factory()); | ||
} | ||
protoOf(Compile_0).j3q = function () { | ||
protoOf(Compile_0).l3q = function () { | ||
// Inline function 'kotlin.let' call | ||
var tmp0_let = new CompilerArguments(Compile_getInstance(), this.l44(this.k44()), Companion_getInstance_0().o2b(this.m44()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.n44()), this.o44(), this.p44(), this.q44()); | ||
var tmp0_let = new CompilerArguments(Compile_getInstance(), this.n44(this.m44()), Companion_getInstance_0().o2b(this.o44()), toSet(_get_languages__ojonze(this)), _PackageName___init__impl__s13tbs(this.p44()), this.q44(), this.r44(), this.s44()); | ||
// Inline function 'kotlin.contracts.contract' call | ||
this.h43_1(tmp0_let); | ||
this.j43_1(tmp0_let); | ||
}; | ||
function _get_format__qlarck($this) { | ||
return $this.q45_1.k3z($this, format$factory_0()); | ||
return $this.s45_1.m3z($this, format$factory_0()); | ||
} | ||
function _get_languages__ojonze_0($this) { | ||
return $this.r45_1.k3z($this, languages$factory_2()); | ||
return $this.t45_1.m3z($this, languages$factory_2()); | ||
} | ||
function Convert_0(block) { | ||
CommonOptions.call(this); | ||
this.p45_1 = block; | ||
this.r45_1 = block; | ||
var tmp = this; | ||
@@ -232,7 +232,7 @@ // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call | ||
} | ||
tmp.q45_1 = choice_0(tmp0_enum, tmp0_associateByTo, true).q3y(this, format$factory()); | ||
this.r45_1 = multiple(choice(option(this, Options_Language_getInstance().l43_1.slice(), 'Language'), Companion_getInstance().n2b(), VOID, true), listOf(Language_Wirespec_getInstance())).m40(this, languages$factory_1()); | ||
tmp.s45_1 = choice_0(tmp0_enum, tmp0_associateByTo, true).s3y(this, format$factory()); | ||
this.t45_1 = multiple(choice(option(this, Options_Language_getInstance().n43_1.slice(), 'Language'), Companion_getInstance().n2b(), VOID, true), listOf(Language_Wirespec_getInstance())).o40(this, languages$factory_1()); | ||
} | ||
protoOf(Convert_0).j3q = function () { | ||
if (this.k44() == null) | ||
protoOf(Convert_0).l3q = function () { | ||
if (this.m44() == null) | ||
null; | ||
@@ -242,8 +242,8 @@ else { | ||
// Inline function 'kotlin.contracts.contract' call | ||
this.c3q('To convert, please specify a file', VOID, true); | ||
this.e3q('To convert, please specify a file', VOID, true); | ||
} | ||
// Inline function 'kotlin.let' call | ||
var tmp = new Convert(_get_format__qlarck(this)); | ||
var tmp_0 = this.l44(null); | ||
var tmp_1 = Companion_getInstance_0().o2b(this.m44()); | ||
var tmp_0 = this.n44(null); | ||
var tmp_1 = Companion_getInstance_0().o2b(this.o44()); | ||
var tmp$ret$2; | ||
@@ -260,38 +260,38 @@ // Inline function 'kotlin.collections.ifEmpty' call | ||
tmp$ret$2 = tmp_2; | ||
var tmp1_let = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.n44()), this.o44(), this.p44(), this.q44()); | ||
var tmp1_let = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, _PackageName___init__impl__s13tbs(this.p44()), this.q44(), this.r44(), this.s44()); | ||
// Inline function 'kotlin.contracts.contract' call | ||
this.p45_1(tmp1_let); | ||
this.r45_1(tmp1_let); | ||
}; | ||
function _get_inputFile__x1bqj($this) { | ||
return $this.d44_1.k3z($this, inputFile$factory_0()); | ||
return $this.f44_1.m3z($this, inputFile$factory_0()); | ||
} | ||
function CommonOptions() { | ||
CliktCommand.call(this); | ||
this.d44_1 = option(this, Options_InputFile_getInstance().l43_1.slice(), 'Input file').m40(this, inputFile$factory()); | ||
this.e44_1 = option(this, Options_InputDir_getInstance().l43_1.slice(), 'Input directory').m40(this, inputDir$factory()); | ||
this.f44_1 = option(this, Options_OutputDir_getInstance().l43_1.slice(), 'Output directory').m40(this, outputDir$factory()); | ||
this.g44_1 = default_0(option(this, Options_PackageName_getInstance().l43_1.slice(), 'Package name'), get_DEFAULT_PACKAGE_STRING()).m40(this, packageName$factory()); | ||
this.h44_1 = flag(option(this, Options_Shared_getInstance().l43_1.slice(), 'Generate shared wirespec code'), [], false).m40(this, shared$factory()); | ||
this.i44_1 = flag(option(this, Options_Strict_getInstance().l43_1.slice(), 'Strict mode'), []).m40(this, strict$factory()); | ||
this.j44_1 = flag(option(this, Options_Debug_getInstance().l43_1.slice(), 'Debug mode'), []).m40(this, debug$factory()); | ||
this.f44_1 = option(this, Options_InputFile_getInstance().n43_1.slice(), 'Input file').o40(this, inputFile$factory()); | ||
this.g44_1 = option(this, Options_InputDir_getInstance().n43_1.slice(), 'Input directory').o40(this, inputDir$factory()); | ||
this.h44_1 = option(this, Options_OutputDir_getInstance().n43_1.slice(), 'Output directory').o40(this, outputDir$factory()); | ||
this.i44_1 = default_0(option(this, Options_PackageName_getInstance().n43_1.slice(), 'Package name'), get_DEFAULT_PACKAGE_STRING()).o40(this, packageName$factory()); | ||
this.j44_1 = flag(option(this, Options_Shared_getInstance().n43_1.slice(), 'Generate shared wirespec code'), [], false).o40(this, shared$factory()); | ||
this.k44_1 = flag(option(this, Options_Strict_getInstance().n43_1.slice(), 'Strict mode'), []).o40(this, strict$factory()); | ||
this.l44_1 = flag(option(this, Options_Debug_getInstance().n43_1.slice(), 'Debug mode'), []).o40(this, debug$factory()); | ||
} | ||
protoOf(CommonOptions).k44 = function () { | ||
return this.e44_1.k3z(this, inputDir$factory_0()); | ||
}; | ||
protoOf(CommonOptions).m44 = function () { | ||
return this.f44_1.k3z(this, outputDir$factory_0()); | ||
return this.g44_1.m3z(this, inputDir$factory_0()); | ||
}; | ||
protoOf(CommonOptions).n44 = function () { | ||
return this.g44_1.k3z(this, packageName$factory_0()); | ||
}; | ||
protoOf(CommonOptions).o44 = function () { | ||
return this.h44_1.k3z(this, shared$factory_0()); | ||
return this.h44_1.m3z(this, outputDir$factory_0()); | ||
}; | ||
protoOf(CommonOptions).p44 = function () { | ||
return this.i44_1.k3z(this, strict$factory_0()); | ||
return this.i44_1.m3z(this, packageName$factory_0()); | ||
}; | ||
protoOf(CommonOptions).q44 = function () { | ||
return this.j44_1.k3z(this, debug$factory_0()); | ||
return this.j44_1.m3z(this, shared$factory_0()); | ||
}; | ||
protoOf(CommonOptions).l44 = function (inputDir) { | ||
protoOf(CommonOptions).r44 = function () { | ||
return this.k44_1.m3z(this, strict$factory_0()); | ||
}; | ||
protoOf(CommonOptions).s44 = function () { | ||
return this.l44_1.m3z(this, debug$factory_0()); | ||
}; | ||
protoOf(CommonOptions).n44 = function (inputDir) { | ||
var tmp; | ||
@@ -354,3 +354,3 @@ if (!(inputDir == null) ? !(_get_inputFile__x1bqj(this) == null) : false) { | ||
Enum.call(this, name, ordinal); | ||
this.l43_1 = flags; | ||
this.n43_1 = flags; | ||
} | ||
@@ -426,3 +426,3 @@ function Options_InputDir_getInstance() { | ||
return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) { | ||
return receiver.k44(); | ||
return receiver.m44(); | ||
}, null); | ||
@@ -432,3 +432,3 @@ } | ||
return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) { | ||
return receiver.m44(); | ||
return receiver.o44(); | ||
}, null); | ||
@@ -438,3 +438,3 @@ } | ||
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) { | ||
return receiver.n44(); | ||
return receiver.p44(); | ||
}, null); | ||
@@ -444,3 +444,3 @@ } | ||
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) { | ||
return receiver.o44(); | ||
return receiver.q44(); | ||
}, null); | ||
@@ -450,3 +450,3 @@ } | ||
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) { | ||
return receiver.p44(); | ||
return receiver.r44(); | ||
}, null); | ||
@@ -456,3 +456,3 @@ } | ||
return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) { | ||
return receiver.q44(); | ||
return receiver.s44(); | ||
}, null); | ||
@@ -467,3 +467,3 @@ } | ||
return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) { | ||
return receiver.k44(); | ||
return receiver.m44(); | ||
}, null); | ||
@@ -473,3 +473,3 @@ } | ||
return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) { | ||
return receiver.m44(); | ||
return receiver.o44(); | ||
}, null); | ||
@@ -479,3 +479,3 @@ } | ||
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) { | ||
return receiver.n44(); | ||
return receiver.p44(); | ||
}, null); | ||
@@ -485,3 +485,3 @@ } | ||
return getPropertyCallableRef('shared', 1, KProperty1, function (receiver) { | ||
return receiver.o44(); | ||
return receiver.q44(); | ||
}, null); | ||
@@ -491,3 +491,3 @@ } | ||
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) { | ||
return receiver.p44(); | ||
return receiver.r44(); | ||
}, null); | ||
@@ -497,3 +497,3 @@ } | ||
return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) { | ||
return receiver.q44(); | ||
return receiver.s44(); | ||
}, null); | ||
@@ -530,3 +530,3 @@ } | ||
// Inline function 'kotlin.contracts.contract' call | ||
tmp.i42(tmp_0, convert$ref())(tmp2_let); | ||
tmp.k42(tmp_0, convert$ref())(tmp2_let); | ||
} | ||
@@ -618,7 +618,7 @@ function compile_0(arguments_0) { | ||
// Inline function 'kotlin.collections.forEach' call | ||
var tmp0_iterator_1 = (new Directory(input.m2b_1)).u45().v(); | ||
var tmp0_iterator_1 = (new Directory(input.m2b_1)).w45().v(); | ||
while (tmp0_iterator_1.w()) { | ||
var element = tmp0_iterator_1.y(); | ||
// Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call | ||
wirespec(element, languages, packageName, out(element.s45_1, packageName, output), logger); | ||
wirespec(element, languages, packageName, out(element.u45_1, packageName, output), logger); | ||
} | ||
@@ -631,3 +631,3 @@ } else { | ||
// Inline function 'kotlin.contracts.contract' call | ||
wirespec(tmp3_let, languages, packageName, out(tmp3_let.s45_1, packageName, output), logger); | ||
wirespec(tmp3_let, languages, packageName, out(tmp3_let.u45_1, packageName, output), logger); | ||
} else { | ||
@@ -657,3 +657,3 @@ // Inline function 'kotlin.error' call | ||
var result = element.hd(); | ||
var tmp1_safe_receiver = file == null ? null : file.v45(_FileName___init__impl__nzn12e(name)); | ||
var tmp1_safe_receiver = file == null ? null : file.x45(_FileName___init__impl__nzn12e(name)); | ||
var tmp; | ||
@@ -878,4 +878,4 @@ if (tmp1_safe_receiver == null) { | ||
} | ||
protoOf(JavaFile).v45 = function (fileName) { | ||
return new JavaFile(this.s45_1.k2b(VOID, fileName)); | ||
protoOf(JavaFile).x45 = function (fileName) { | ||
return new JavaFile(this.u45_1.k2b(VOID, fileName)); | ||
}; | ||
@@ -885,4 +885,4 @@ function JsonFile(path) { | ||
} | ||
protoOf(JsonFile).v45 = function (fileName) { | ||
return new JsonFile(this.s45_1.k2b(VOID, fileName)); | ||
protoOf(JsonFile).x45 = function (fileName) { | ||
return new JsonFile(this.u45_1.k2b(VOID, fileName)); | ||
}; | ||
@@ -892,4 +892,4 @@ function KotlinFile(path) { | ||
} | ||
protoOf(KotlinFile).v45 = function (fileName) { | ||
return new KotlinFile(this.s45_1.k2b(VOID, fileName)); | ||
protoOf(KotlinFile).x45 = function (fileName) { | ||
return new KotlinFile(this.u45_1.k2b(VOID, fileName)); | ||
}; | ||
@@ -899,4 +899,4 @@ function ScalaFile(path) { | ||
} | ||
protoOf(ScalaFile).v45 = function (fileName) { | ||
return new ScalaFile(this.s45_1.k2b(VOID, fileName)); | ||
protoOf(ScalaFile).x45 = function (fileName) { | ||
return new ScalaFile(this.u45_1.k2b(VOID, fileName)); | ||
}; | ||
@@ -906,4 +906,4 @@ function TypeScriptFile(path) { | ||
} | ||
protoOf(TypeScriptFile).v45 = function (fileName) { | ||
return new TypeScriptFile(this.s45_1.k2b(VOID, fileName)); | ||
protoOf(TypeScriptFile).x45 = function (fileName) { | ||
return new TypeScriptFile(this.u45_1.k2b(VOID, fileName)); | ||
}; | ||
@@ -913,4 +913,4 @@ function WirespecFile(path) { | ||
} | ||
protoOf(WirespecFile).v45 = function (fileName) { | ||
return new WirespecFile(this.s45_1.k2b(VOID, fileName)); | ||
protoOf(WirespecFile).x45 = function (fileName) { | ||
return new WirespecFile(this.u45_1.k2b(VOID, fileName)); | ||
}; | ||
@@ -985,3 +985,3 @@ function cli(args) { | ||
return function (it) { | ||
return new FullFilePath(this$0.t45_1, _FileName___init__impl__nzn12e(it)); | ||
return new FullFilePath(this$0.v45_1, _FileName___init__impl__nzn12e(it)); | ||
}; | ||
@@ -997,6 +997,6 @@ } | ||
function Directory(path) { | ||
this.t45_1 = path; | ||
this.v45_1 = path; | ||
} | ||
protoOf(Directory).u45 = function () { | ||
var tmp = asSequence(iterator(get_fs().readdirSync(this.t45_1, 'utf-8'))); | ||
protoOf(Directory).w45 = function () { | ||
var tmp = asSequence(iterator(get_fs().readdirSync(this.v45_1, 'utf-8'))); | ||
var tmp_0 = map(tmp, Directory$wirespecFiles$lambda); | ||
@@ -1009,11 +1009,11 @@ var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0); | ||
function File(path) { | ||
this.s45_1 = path; | ||
this.u45_1 = path; | ||
} | ||
protoOf(File).x17 = function () { | ||
// Inline function 'kotlin.js.unsafeCast' call | ||
return get_fs().readFileSync(this.s45_1.toString(), 'utf-8'); | ||
return get_fs().readFileSync(this.u45_1.toString(), 'utf-8'); | ||
}; | ||
protoOf(File).w15 = function (text) { | ||
// Inline function 'kotlin.run' call | ||
var tmp0_run = this.s45_1.k2b(joinToString(split_0(this.s45_1.g2b_1, ['out']), 'out/node')); | ||
var tmp0_run = this.u45_1.k2b(joinToString(split_0(this.u45_1.g2b_1, ['out']), 'out/node')); | ||
// Inline function 'kotlin.contracts.contract' call | ||
@@ -1020,0 +1020,0 @@ // Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>' call |
type Nullable<T> = T | null | undefined | ||
export declare namespace community.flock.wirespec.compiler.lib { | ||
interface WsNode { | ||
readonly name: string; | ||
readonly identifier: string; | ||
readonly __doNotUseOrImplementIt: { | ||
@@ -10,6 +10,7 @@ readonly "community.flock.wirespec.compiler.lib.WsNode": unique symbol; | ||
class WsType implements community.flock.wirespec.compiler.lib.WsNode { | ||
constructor(name: string, shape: community.flock.wirespec.compiler.lib.WsShape); | ||
get name(): string; | ||
constructor(identifier: string, comment: Nullable<string>, shape: community.flock.wirespec.compiler.lib.WsShape); | ||
get identifier(): string; | ||
get comment(): Nullable<string>; | ||
get shape(): community.flock.wirespec.compiler.lib.WsShape; | ||
copy(name?: string, shape?: community.flock.wirespec.compiler.lib.WsShape): community.flock.wirespec.compiler.lib.WsType; | ||
copy(identifier?: string, comment?: Nullable<string>, shape?: community.flock.wirespec.compiler.lib.WsShape): community.flock.wirespec.compiler.lib.WsType; | ||
toString(): string; | ||
@@ -29,4 +30,5 @@ hashCode(): number; | ||
class WsEndpoint implements community.flock.wirespec.compiler.lib.WsNode { | ||
constructor(name: string, method: community.flock.wirespec.compiler.lib.WsMethod, path: Array<community.flock.wirespec.compiler.lib.WsSegment>, query: Array<community.flock.wirespec.compiler.lib.WsField>, headers: Array<community.flock.wirespec.compiler.lib.WsField>, cookies: Array<community.flock.wirespec.compiler.lib.WsField>, requests: Array<community.flock.wirespec.compiler.lib.WsRequest>, responses: Array<community.flock.wirespec.compiler.lib.WsResponse>); | ||
get name(): string; | ||
constructor(identifier: string, comment: Nullable<string>, method: community.flock.wirespec.compiler.lib.WsMethod, path: Array<community.flock.wirespec.compiler.lib.WsSegment>, query: Array<community.flock.wirespec.compiler.lib.WsField>, headers: Array<community.flock.wirespec.compiler.lib.WsField>, cookies: Array<community.flock.wirespec.compiler.lib.WsField>, requests: Array<community.flock.wirespec.compiler.lib.WsRequest>, responses: Array<community.flock.wirespec.compiler.lib.WsResponse>); | ||
get identifier(): string; | ||
get comment(): Nullable<string>; | ||
get method(): community.flock.wirespec.compiler.lib.WsMethod; | ||
@@ -39,3 +41,3 @@ get path(): Array<community.flock.wirespec.compiler.lib.WsSegment>; | ||
get responses(): Array<community.flock.wirespec.compiler.lib.WsResponse>; | ||
copy(name?: string, method?: community.flock.wirespec.compiler.lib.WsMethod, path?: Array<community.flock.wirespec.compiler.lib.WsSegment>, query?: Array<community.flock.wirespec.compiler.lib.WsField>, headers?: Array<community.flock.wirespec.compiler.lib.WsField>, cookies?: Array<community.flock.wirespec.compiler.lib.WsField>, requests?: Array<community.flock.wirespec.compiler.lib.WsRequest>, responses?: Array<community.flock.wirespec.compiler.lib.WsResponse>): community.flock.wirespec.compiler.lib.WsEndpoint; | ||
copy(identifier?: string, comment?: Nullable<string>, method?: community.flock.wirespec.compiler.lib.WsMethod, path?: Array<community.flock.wirespec.compiler.lib.WsSegment>, query?: Array<community.flock.wirespec.compiler.lib.WsField>, headers?: Array<community.flock.wirespec.compiler.lib.WsField>, cookies?: Array<community.flock.wirespec.compiler.lib.WsField>, requests?: Array<community.flock.wirespec.compiler.lib.WsRequest>, responses?: Array<community.flock.wirespec.compiler.lib.WsResponse>): community.flock.wirespec.compiler.lib.WsEndpoint; | ||
toString(): string; | ||
@@ -47,6 +49,7 @@ hashCode(): number; | ||
class WsEnum implements community.flock.wirespec.compiler.lib.WsNode { | ||
constructor(name: string, entries: Array<string>); | ||
get name(): string; | ||
constructor(identifier: string, comment: Nullable<string>, entries: Array<string>); | ||
get identifier(): string; | ||
get comment(): Nullable<string>; | ||
get entries(): Array<string>; | ||
copy(name?: string, entries?: Array<string>): community.flock.wirespec.compiler.lib.WsEnum; | ||
copy(identifier?: string, comment?: Nullable<string>, entries?: Array<string>): community.flock.wirespec.compiler.lib.WsEnum; | ||
toString(): string; | ||
@@ -58,6 +61,7 @@ hashCode(): number; | ||
class WsUnion implements community.flock.wirespec.compiler.lib.WsNode { | ||
constructor(name: string, entries: Array<community.flock.wirespec.compiler.lib.WsReference>); | ||
get name(): string; | ||
constructor(identifier: string, comment: Nullable<string>, entries: Array<community.flock.wirespec.compiler.lib.WsReference>); | ||
get identifier(): string; | ||
get comment(): Nullable<string>; | ||
get entries(): Array<community.flock.wirespec.compiler.lib.WsReference>; | ||
copy(name?: string, entries?: Array<community.flock.wirespec.compiler.lib.WsReference>): community.flock.wirespec.compiler.lib.WsUnion; | ||
copy(identifier?: string, comment?: Nullable<string>, entries?: Array<community.flock.wirespec.compiler.lib.WsReference>): community.flock.wirespec.compiler.lib.WsUnion; | ||
toString(): string; | ||
@@ -69,6 +73,7 @@ hashCode(): number; | ||
class WsRefined implements community.flock.wirespec.compiler.lib.WsNode { | ||
constructor(name: string, validator: string); | ||
get name(): string; | ||
constructor(identifier: string, comment: Nullable<string>, validator: string); | ||
get identifier(): string; | ||
get comment(): Nullable<string>; | ||
get validator(): string; | ||
copy(name?: string, validator?: string): community.flock.wirespec.compiler.lib.WsRefined; | ||
copy(identifier?: string, comment?: Nullable<string>, validator?: string): community.flock.wirespec.compiler.lib.WsRefined; | ||
toString(): string; | ||
@@ -75,0 +80,0 @@ hashCode(): number; |
@@ -51,6 +51,6 @@ (function (root, factory) { | ||
var main = kotlin_community_flock_wirespec_plugin_cli_cli.$_$.a; | ||
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.u1; | ||
var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.a1; | ||
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.f1; | ||
var Parser = kotlin_community_flock_wirespec_compiler_core.$_$.v; | ||
var WirespecSpec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.y1; | ||
var tokenize = kotlin_community_flock_wirespec_compiler_core.$_$.c1; | ||
var get_noLogger = kotlin_community_flock_wirespec_compiler_core.$_$.h1; | ||
var Parser = kotlin_community_flock_wirespec_compiler_core.$_$.w; | ||
var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.b; | ||
@@ -161,3 +161,3 @@ var noWhenBranchMatchedException = kotlin_kotlin.$_$.rf; | ||
// Inline function 'community.flock.wirespec.plugin.npm.generate.<anonymous>' call | ||
tmp$ret$2 = toString(Generator_getInstance().g5i(tmp0_anonymous, type)); | ||
tmp$ret$2 = toString(Generator_getInstance().i5i(tmp0_anonymous, type)); | ||
tmp = new Right(tmp$ret$2); | ||
@@ -164,0 +164,0 @@ } else { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
5721914
49
89188