@flock/wirespec
Advanced tools
Comparing version 0.8.49 to 0.8.50
@@ -69,17 +69,17 @@ (function (root, factory) { | ||
alpha = alpha === VOID ? 1.0 : alpha; | ||
return $super === VOID ? this.t2t(r, g, b, alpha) : $super.t2t.call(this, r, g, b, alpha); | ||
return $super === VOID ? this.x2t(r, g, b, alpha) : $super.x2t.call(this, r, g, b, alpha); | ||
} | ||
function invoke(r, g, b, alpha) { | ||
return this.t2t(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha)); | ||
return this.x2t(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.d2u(r, g, b, alpha) : invoke(r, g, b, alpha); | ||
return $super === VOID ? this.h2u(r, g, b, alpha) : invoke(r, g, b, alpha); | ||
} | ||
function from255(r, g, b, alpha) { | ||
return this.t2t(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0); | ||
return this.x2t(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.e2u(r, g, b, alpha) : from255(r, g, b, alpha); | ||
return $super === VOID ? this.i2u(r, g, b, alpha) : from255(r, g, b, alpha); | ||
} | ||
@@ -104,3 +104,3 @@ function invoke_0(hex) { | ||
} | ||
return this.e2u(tmp, tmp_0, tmp_1, tmp_2); | ||
return this.i2u(tmp, tmp_0, tmp_1, tmp_2); | ||
} | ||
@@ -127,15 +127,15 @@ setMetadataFor(RGBColorSpace, 'RGBColorSpace', interfaceMeta); | ||
function ColorComponentInfo(name, isPolar) { | ||
this.n2s_1 = name; | ||
this.o2s_1 = isPolar; | ||
this.r2s_1 = name; | ||
this.s2s_1 = isPolar; | ||
} | ||
function WhitePoint(name, chromaticity) { | ||
this.p2s_1 = name; | ||
this.q2s_1 = chromaticity; | ||
this.t2s_1 = name; | ||
this.u2s_1 = chromaticity; | ||
} | ||
protoOf(WhitePoint).toString = function () { | ||
return this.p2s_1; | ||
return this.t2s_1; | ||
}; | ||
protoOf(WhitePoint).hashCode = function () { | ||
var result = getStringHashCode(this.p2s_1); | ||
result = imul(result, 31) + this.q2s_1.hashCode() | 0; | ||
var result = getStringHashCode(this.t2s_1); | ||
result = imul(result, 31) + this.u2s_1.hashCode() | 0; | ||
return result; | ||
@@ -149,5 +149,5 @@ }; | ||
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE(); | ||
if (!(this.p2s_1 === tmp0_other_with_cast.p2s_1)) | ||
if (!(this.t2s_1 === tmp0_other_with_cast.t2s_1)) | ||
return false; | ||
if (!this.q2s_1.equals(tmp0_other_with_cast.q2s_1)) | ||
if (!this.u2s_1.equals(tmp0_other_with_cast.u2s_1)) | ||
return false; | ||
@@ -158,10 +158,10 @@ return true; | ||
Illuminant_instance = this; | ||
this.r2s_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745)); | ||
this.s2s_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161)); | ||
this.t2s_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616)); | ||
this.u2s_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585)); | ||
this.v2s_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744)); | ||
this.w2s_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329)); | ||
this.x2s_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488)); | ||
this.y2s_1 = new WhitePoint('E', xyY_init_$Create$(0.3333333333333333, 0.3333333333333333)); | ||
this.v2s_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745)); | ||
this.w2s_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161)); | ||
this.x2s_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616)); | ||
this.y2s_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585)); | ||
this.z2s_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744)); | ||
this.a2t_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329)); | ||
this.b2t_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488)); | ||
this.c2t_1 = new WhitePoint('E', xyY_init_$Create$(0.3333333333333333, 0.3333333333333333)); | ||
} | ||
@@ -353,3 +353,3 @@ var Illuminant_instance; | ||
Companion_instance = this; | ||
this.z2s_1 = componentInfoList([new ColorComponentInfo('code', false)]); | ||
this.d2t_1 = componentInfoList([new ColorComponentInfo('code', false)]); | ||
} | ||
@@ -364,31 +364,31 @@ var Companion_instance; | ||
Companion_getInstance(); | ||
this.a2t_1 = code; | ||
this.e2t_1 = code; | ||
} | ||
protoOf(Ansi16).b2t = function () { | ||
switch (this.a2t_1) { | ||
protoOf(Ansi16).f2t = function () { | ||
switch (this.e2t_1) { | ||
case 30: | ||
case 40: | ||
return Companion_getInstance_2().c2t(0.0, 0.0, 0.0); | ||
return Companion_getInstance_2().g2t(0.0, 0.0, 0.0); | ||
case 90: | ||
case 100: | ||
return Companion_getInstance_2().d2t(128, 128, 128); | ||
return Companion_getInstance_2().h2t(128, 128, 128); | ||
case 37: | ||
case 47: | ||
return Companion_getInstance_2().d2t(192, 192, 192); | ||
return Companion_getInstance_2().h2t(192, 192, 192); | ||
case 97: | ||
case 107: | ||
return Companion_getInstance_2().c2t(1.0, 1.0, 1.0); | ||
return Companion_getInstance_2().g2t(1.0, 1.0, 1.0); | ||
} | ||
var color = this.a2t_1 % 10 | 0; | ||
var mul = this.a2t_1 > 50 ? 1.0 : 0.5; | ||
var color = this.e2t_1 % 10 | 0; | ||
var mul = this.e2t_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().c2t(r, g, b); | ||
return Companion_getInstance_2().g2t(r, g, b); | ||
}; | ||
protoOf(Ansi16).toString = function () { | ||
return 'Ansi16(code=' + this.a2t_1 + ')'; | ||
return 'Ansi16(code=' + this.e2t_1 + ')'; | ||
}; | ||
protoOf(Ansi16).hashCode = function () { | ||
return this.a2t_1; | ||
return this.e2t_1; | ||
}; | ||
@@ -401,3 +401,3 @@ protoOf(Ansi16).equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE(); | ||
if (!(this.a2t_1 === tmp0_other_with_cast.a2t_1)) | ||
if (!(this.e2t_1 === tmp0_other_with_cast.e2t_1)) | ||
return false; | ||
@@ -408,3 +408,3 @@ return true; | ||
Companion_instance_0 = this; | ||
this.e2t_1 = componentInfoList([new ColorComponentInfo('code', false)]); | ||
this.i2t_1 = componentInfoList([new ColorComponentInfo('code', false)]); | ||
} | ||
@@ -419,12 +419,12 @@ var Companion_instance_0; | ||
Companion_getInstance_0(); | ||
this.f2t_1 = code; | ||
this.j2t_1 = code; | ||
} | ||
protoOf(Ansi256).b2t = function () { | ||
if (this.f2t_1 < 16) | ||
return this.g2t().b2t(); | ||
if (this.f2t_1 >= 232) { | ||
var c = imul(this.f2t_1 - 232 | 0, 10) + 8 | 0; | ||
return Companion_getInstance_2().d2t(c, c, c); | ||
protoOf(Ansi256).f2t = function () { | ||
if (this.j2t_1 < 16) | ||
return this.k2t().f2t(); | ||
if (this.j2t_1 >= 232) { | ||
var c = imul(this.j2t_1 - 232 | 0, 10) + 8 | 0; | ||
return Companion_getInstance_2().h2t(c, c, c); | ||
} | ||
var c_0 = this.f2t_1 - 16 | 0; | ||
var c_0 = this.j2t_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().h2t(r, g, b); | ||
return Companion_getInstance_2().l2t(r, g, b); | ||
}; | ||
protoOf(Ansi256).g2t = function () { | ||
return this.f2t_1 < 8 ? new Ansi16(this.f2t_1 + 30 | 0) : this.f2t_1 < 16 ? new Ansi16((this.f2t_1 - 8 | 0) + 90 | 0) : this.b2t().g2t(); | ||
protoOf(Ansi256).k2t = function () { | ||
return this.j2t_1 < 8 ? new Ansi16(this.j2t_1 + 30 | 0) : this.j2t_1 < 16 ? new Ansi16((this.j2t_1 - 8 | 0) + 90 | 0) : this.f2t().k2t(); | ||
}; | ||
protoOf(Ansi256).toString = function () { | ||
return 'Ansi256(code=' + this.f2t_1 + ')'; | ||
return 'Ansi256(code=' + this.j2t_1 + ')'; | ||
}; | ||
protoOf(Ansi256).hashCode = function () { | ||
return this.f2t_1; | ||
return this.j2t_1; | ||
}; | ||
@@ -456,3 +456,3 @@ protoOf(Ansi256).equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE(); | ||
if (!(this.f2t_1 === tmp0_other_with_cast.f2t_1)) | ||
if (!(this.j2t_1 === tmp0_other_with_cast.j2t_1)) | ||
return false; | ||
@@ -463,3 +463,3 @@ return true; | ||
Companion_instance_1 = this; | ||
this.n2t_1 = polarComponentInfo('HSV'); | ||
this.r2t_1 = polarComponentInfo('HSV'); | ||
} | ||
@@ -484,23 +484,23 @@ var Companion_instance_1; | ||
alpha = alpha === VOID ? 1.0 : alpha; | ||
this.o2t_1 = h; | ||
this.p2t_1 = s; | ||
this.q2t_1 = v; | ||
this.r2t_1 = alpha; | ||
this.s2t_1 = h; | ||
this.t2t_1 = s; | ||
this.u2t_1 = v; | ||
this.v2t_1 = alpha; | ||
} | ||
protoOf(HSV).b2t = function () { | ||
if (this.p2t_1 < 1.0E-7) | ||
return Companion_getInstance_2().t2t(this.q2t_1, this.q2t_1, this.q2t_1, this.r2t_1); | ||
var v = this.q2t_1; | ||
var h = normalizeDeg_0(this.o2t_1) / 60.0; | ||
var s = this.p2t_1; | ||
return SRGB_getInstance().t2t(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.r2t_1); | ||
protoOf(HSV).f2t = function () { | ||
if (this.t2t_1 < 1.0E-7) | ||
return Companion_getInstance_2().x2t(this.u2t_1, this.u2t_1, this.u2t_1, this.v2t_1); | ||
var v = this.u2t_1; | ||
var h = normalizeDeg_0(this.s2t_1) / 60.0; | ||
var s = this.t2t_1; | ||
return SRGB_getInstance().x2t(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.v2t_1); | ||
}; | ||
protoOf(HSV).toString = function () { | ||
return 'HSV(h=' + this.o2t_1 + ', s=' + this.p2t_1 + ', v=' + this.q2t_1 + ', alpha=' + this.r2t_1 + ')'; | ||
return 'HSV(h=' + this.s2t_1 + ', s=' + this.t2t_1 + ', v=' + this.u2t_1 + ', alpha=' + this.v2t_1 + ')'; | ||
}; | ||
protoOf(HSV).hashCode = function () { | ||
var result = getNumberHashCode(this.o2t_1); | ||
result = imul(result, 31) + getNumberHashCode(this.p2t_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.q2t_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.r2t_1) | 0; | ||
var result = getNumberHashCode(this.s2t_1); | ||
result = imul(result, 31) + getNumberHashCode(this.t2t_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.u2t_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.v2t_1) | 0; | ||
return result; | ||
@@ -514,9 +514,9 @@ }; | ||
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE(); | ||
if (!equals(this.o2t_1, tmp0_other_with_cast.o2t_1)) | ||
if (!equals(this.s2t_1, tmp0_other_with_cast.s2t_1)) | ||
return false; | ||
if (!equals(this.p2t_1, tmp0_other_with_cast.p2t_1)) | ||
if (!equals(this.t2t_1, tmp0_other_with_cast.t2t_1)) | ||
return false; | ||
if (!equals(this.q2t_1, tmp0_other_with_cast.q2t_1)) | ||
if (!equals(this.u2t_1, tmp0_other_with_cast.u2t_1)) | ||
return false; | ||
if (!equals(this.r2t_1, tmp0_other_with_cast.r2t_1)) | ||
if (!equals(this.v2t_1, tmp0_other_with_cast.v2t_1)) | ||
return false; | ||
@@ -526,15 +526,15 @@ return true; | ||
function GammaTransferFunctions(gamma) { | ||
this.a2u_1 = gamma; | ||
this.e2u_1 = gamma; | ||
} | ||
protoOf(GammaTransferFunctions).b2u = function (x) { | ||
return spow(x, this.a2u_1); | ||
protoOf(GammaTransferFunctions).f2u = function (x) { | ||
return spow(x, this.e2u_1); | ||
}; | ||
protoOf(GammaTransferFunctions).c2u = function (x) { | ||
return spow(x, 1.0 / this.a2u_1); | ||
protoOf(GammaTransferFunctions).g2u = function (x) { | ||
return spow(x, 1.0 / this.e2u_1); | ||
}; | ||
protoOf(GammaTransferFunctions).toString = function () { | ||
return 'GammaTransferFunctions(gamma=' + this.a2u_1 + ')'; | ||
return 'GammaTransferFunctions(gamma=' + this.e2u_1 + ')'; | ||
}; | ||
protoOf(GammaTransferFunctions).hashCode = function () { | ||
return getNumberHashCode(this.a2u_1); | ||
return getNumberHashCode(this.e2u_1); | ||
}; | ||
@@ -547,3 +547,3 @@ protoOf(GammaTransferFunctions).equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE(); | ||
if (!equals(this.a2u_1, tmp0_other_with_cast.a2u_1)) | ||
if (!equals(this.e2u_1, tmp0_other_with_cast.e2u_1)) | ||
return false; | ||
@@ -555,6 +555,6 @@ return true; | ||
} | ||
protoOf(LinearTransferFunctions).b2u = function (x) { | ||
protoOf(LinearTransferFunctions).f2u = function (x) { | ||
return x; | ||
}; | ||
protoOf(LinearTransferFunctions).c2u = function (x) { | ||
protoOf(LinearTransferFunctions).g2u = function (x) { | ||
return x; | ||
@@ -572,27 +572,27 @@ }; | ||
Companion_instance_2 = this; | ||
this.s2t_1 = RGBColorSpaces_getInstance().k2u_1; | ||
this.w2t_1 = RGBColorSpaces_getInstance().o2u_1; | ||
} | ||
protoOf(Companion_2).i2u = function () { | ||
return this.s2t_1.i2u(); | ||
protoOf(Companion_2).m2u = function () { | ||
return this.w2t_1.m2u(); | ||
}; | ||
protoOf(Companion_2).h2u = function () { | ||
return this.s2t_1.h2u(); | ||
protoOf(Companion_2).l2u = function () { | ||
return this.w2t_1.l2u(); | ||
}; | ||
protoOf(Companion_2).g2u = function () { | ||
return this.s2t_1.g2u(); | ||
protoOf(Companion_2).k2u = function () { | ||
return this.w2t_1.k2u(); | ||
}; | ||
protoOf(Companion_2).j2u = function () { | ||
return this.s2t_1.j2u(); | ||
protoOf(Companion_2).n2u = function () { | ||
return this.w2t_1.n2u(); | ||
}; | ||
protoOf(Companion_2).e2u = function (r, g, b, alpha) { | ||
return this.s2t_1.e2u(r, g, b, alpha); | ||
protoOf(Companion_2).i2u = function (r, g, b, alpha) { | ||
return this.w2t_1.i2u(r, g, b, alpha); | ||
}; | ||
protoOf(Companion_2).t2t = function (r, g, b, alpha) { | ||
return this.s2t_1.t2t(r, g, b, alpha); | ||
protoOf(Companion_2).x2t = function (r, g, b, alpha) { | ||
return this.w2t_1.x2t(r, g, b, alpha); | ||
}; | ||
protoOf(Companion_2).d2u = function (r, g, b, alpha) { | ||
return this.s2t_1.d2u(r, g, b, alpha); | ||
protoOf(Companion_2).h2u = function (r, g, b, alpha) { | ||
return this.w2t_1.h2u(r, g, b, alpha); | ||
}; | ||
protoOf(Companion_2).f2u = function (hex) { | ||
return this.s2t_1.f2u(hex); | ||
protoOf(Companion_2).j2u = function (hex) { | ||
return this.w2t_1.j2u(hex); | ||
}; | ||
@@ -607,31 +607,31 @@ var Companion_instance_2; | ||
Companion_getInstance_2(); | ||
this.i2t_1 = r; | ||
this.j2t_1 = g; | ||
this.k2t_1 = b; | ||
this.l2t_1 = alpha; | ||
this.m2t_1 = space; | ||
this.m2t_1 = r; | ||
this.n2t_1 = g; | ||
this.o2t_1 = b; | ||
this.p2t_1 = alpha; | ||
this.q2t_1 = space; | ||
} | ||
protoOf(RGB).w2u = function () { | ||
protoOf(RGB).a2v = function () { | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp0_roundToInt = this.i2t_1 * 255; | ||
var tmp0_roundToInt = this.m2t_1 * 255; | ||
return roundToInt(tmp0_roundToInt); | ||
}; | ||
protoOf(RGB).x2u = function () { | ||
protoOf(RGB).b2v = function () { | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp0_roundToInt = this.j2t_1 * 255; | ||
var tmp0_roundToInt = this.n2t_1 * 255; | ||
return roundToInt(tmp0_roundToInt); | ||
}; | ||
protoOf(RGB).y2u = function () { | ||
protoOf(RGB).c2v = function () { | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp0_roundToInt = this.k2t_1 * 255; | ||
var tmp0_roundToInt = this.o2t_1 * 255; | ||
return roundToInt(tmp0_roundToInt); | ||
}; | ||
protoOf(RGB).z2u = function (space) { | ||
var f = SRGB_getInstance().x2t_1; | ||
return equals(this.m2t_1, space) ? this : (equals(this.m2t_1, SRGB_getInstance()) ? equals(space, RGBColorSpaces_getInstance().l2u_1) : false) ? space.t2t(f.b2u(this.i2t_1), f.b2u(this.j2t_1), f.b2u(this.k2t_1), this.l2t_1) : (equals(this.m2t_1, RGBColorSpaces_getInstance().l2u_1) ? equals(space, SRGB_getInstance()) : false) ? space.t2t(f.c2u(this.i2t_1), f.c2u(this.j2t_1), f.c2u(this.k2t_1), this.l2t_1) : this.a2v().g2v(space); | ||
protoOf(RGB).d2v = function (space) { | ||
var f = SRGB_getInstance().b2u_1; | ||
return equals(this.q2t_1, space) ? this : (equals(this.q2t_1, SRGB_getInstance()) ? equals(space, RGBColorSpaces_getInstance().p2u_1) : false) ? space.x2t(f.f2u(this.m2t_1), f.f2u(this.n2t_1), f.f2u(this.o2t_1), this.p2t_1) : (equals(this.q2t_1, RGBColorSpaces_getInstance().p2u_1) ? equals(space, SRGB_getInstance()) : false) ? space.x2t(f.g2u(this.m2t_1), f.g2u(this.n2t_1), f.g2u(this.o2t_1), this.p2t_1) : this.e2v().k2v(space); | ||
}; | ||
protoOf(RGB).h2v = function () { | ||
return this.i2v(coerceIn(this.i2t_1, 0.0, 1.0), coerceIn(this.j2t_1, 0.0, 1.0), coerceIn(this.k2t_1, 0.0, 1.0), coerceIn(this.l2t_1, 0.0, 1.0)); | ||
protoOf(RGB).l2v = function () { | ||
return this.m2v(coerceIn(this.m2t_1, 0.0, 1.0), coerceIn(this.n2t_1, 0.0, 1.0), coerceIn(this.o2t_1, 0.0, 1.0), coerceIn(this.p2t_1, 0.0, 1.0)); | ||
}; | ||
protoOf(RGB).j2v = function () { | ||
protoOf(RGB).n2v = 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.z2u(SRGB_getInstance()); | ||
var r = tmp0_anonymous.i2t_1; | ||
var g = tmp0_anonymous.j2t_1; | ||
var b = tmp0_anonymous.k2t_1; | ||
var tmp0_anonymous = this.d2v(SRGB_getInstance()); | ||
var r = tmp0_anonymous.m2t_1; | ||
var g = tmp0_anonymous.n2t_1; | ||
var b = tmp0_anonymous.o2t_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.l2t_1); | ||
tmp$ret$3 = new HSV(tmp0_anonymous_0, s, max, this.p2t_1); | ||
break $l$block; | ||
@@ -674,9 +674,9 @@ } | ||
}; | ||
protoOf(RGB).a2v = function () { | ||
var f = this.m2t_1.g2u(); | ||
protoOf(RGB).e2v = function () { | ||
var f = this.q2t_1.k2u(); | ||
// Inline function 'com.github.ajalt.colormath.internal.dot' call | ||
var tmp0_dot = _Matrix___init__impl__q3kp4w(this.m2t_1.h2u()); | ||
var tmp1_dot = f.b2u(this.i2t_1); | ||
var tmp2_dot = f.b2u(this.j2t_1); | ||
var tmp3_dot = f.b2u(this.k2t_1); | ||
var tmp0_dot = _Matrix___init__impl__q3kp4w(this.q2t_1.l2u()); | ||
var tmp1_dot = f.f2u(this.m2t_1); | ||
var tmp2_dot = f.f2u(this.n2t_1); | ||
var tmp3_dot = f.f2u(this.o2t_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.m2t_1.j2u()).t2t(tmp4_anonymous, tmp5_anonymous, tmp6_anonymous, this.l2t_1); | ||
return XYZColorSpace(this.q2t_1.n2u()).x2t(tmp4_anonymous, tmp5_anonymous, tmp6_anonymous, this.p2t_1); | ||
}; | ||
protoOf(RGB).g2t = function () { | ||
protoOf(RGB).k2t = function () { | ||
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call | ||
var tmp0_anonymous = this.z2u(SRGB_getInstance()); | ||
var tmp0_anonymous = this.d2v(SRGB_getInstance()); | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp0_roundToInt = tmp0_anonymous.j2v().q2t_1 * 100; | ||
var tmp0_roundToInt = tmp0_anonymous.n2v().u2t_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.k2t_1; | ||
var tmp1_roundToInt = tmp0_anonymous.o2t_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.j2t_1; | ||
var tmp2_roundToInt = tmp0_anonymous.n2t_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.i2t_1; | ||
var tmp3_roundToInt = tmp0_anonymous.m2t_1; | ||
var ansi = 30 + (tmp_0 | roundToInt(tmp3_roundToInt)) | 0; | ||
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi); | ||
}; | ||
protoOf(RGB).k2v = function () { | ||
protoOf(RGB).o2v = function () { | ||
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call | ||
var tmp0_anonymous = this.z2u(SRGB_getInstance()); | ||
var ri = tmp0_anonymous.w2u(); | ||
var gi = tmp0_anonymous.x2u(); | ||
var bi = tmp0_anonymous.y2u(); | ||
var tmp0_anonymous = this.d2v(SRGB_getInstance()); | ||
var ri = tmp0_anonymous.a2v(); | ||
var gi = tmp0_anonymous.b2v(); | ||
var bi = tmp0_anonymous.c2v(); | ||
var tmp; | ||
@@ -727,3 +727,3 @@ if (ri === gi ? gi === bi : false) { | ||
// Inline function 'kotlin.math.roundToInt' call | ||
var tmp0_roundToInt = tmp0_anonymous.i2t_1 * 5; | ||
var tmp0_roundToInt = tmp0_anonymous.m2t_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.j2t_1 * 5; | ||
var tmp1_roundToInt = tmp0_anonymous.n2t_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.k2t_1 * 5; | ||
var tmp2_roundToInt = tmp0_anonymous.o2t_1 * 5; | ||
tmp = tmp_1 + roundToInt(tmp2_roundToInt) | 0; | ||
@@ -744,25 +744,25 @@ } | ||
}; | ||
protoOf(RGB).b2t = function () { | ||
return this.z2u(RGBColorSpaces_getInstance().k2u_1); | ||
protoOf(RGB).f2t = function () { | ||
return this.d2v(RGBColorSpaces_getInstance().o2u_1); | ||
}; | ||
protoOf(RGB).l2v = function (r, g, b, alpha, space) { | ||
protoOf(RGB).p2v = function (r, g, b, alpha, space) { | ||
return new RGB(r, g, b, alpha, space); | ||
}; | ||
protoOf(RGB).i2v = function (r, g, b, alpha, space, $super) { | ||
r = r === VOID ? this.i2t_1 : r; | ||
g = g === VOID ? this.j2t_1 : g; | ||
b = b === VOID ? this.k2t_1 : b; | ||
alpha = alpha === VOID ? this.l2t_1 : alpha; | ||
space = space === VOID ? this.m2t_1 : space; | ||
return $super === VOID ? this.l2v(r, g, b, alpha, space) : $super.l2v.call(this, r, g, b, alpha, space); | ||
protoOf(RGB).m2v = function (r, g, b, alpha, space, $super) { | ||
r = r === VOID ? this.m2t_1 : r; | ||
g = g === VOID ? this.n2t_1 : g; | ||
b = b === VOID ? this.o2t_1 : b; | ||
alpha = alpha === VOID ? this.p2t_1 : alpha; | ||
space = space === VOID ? this.q2t_1 : space; | ||
return $super === VOID ? this.p2v(r, g, b, alpha, space) : $super.p2v.call(this, r, g, b, alpha, space); | ||
}; | ||
protoOf(RGB).toString = function () { | ||
return 'RGB(r=' + this.i2t_1 + ', g=' + this.j2t_1 + ', b=' + this.k2t_1 + ', alpha=' + this.l2t_1 + ', space=' + this.m2t_1 + ')'; | ||
return 'RGB(r=' + this.m2t_1 + ', g=' + this.n2t_1 + ', b=' + this.o2t_1 + ', alpha=' + this.p2t_1 + ', space=' + this.q2t_1 + ')'; | ||
}; | ||
protoOf(RGB).hashCode = function () { | ||
var result = getNumberHashCode(this.i2t_1); | ||
result = imul(result, 31) + getNumberHashCode(this.j2t_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.k2t_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.l2t_1) | 0; | ||
result = imul(result, 31) + hashCode(this.m2t_1) | 0; | ||
var result = getNumberHashCode(this.m2t_1); | ||
result = imul(result, 31) + getNumberHashCode(this.n2t_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.o2t_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.p2t_1) | 0; | ||
result = imul(result, 31) + hashCode(this.q2t_1) | 0; | ||
return result; | ||
@@ -776,11 +776,11 @@ }; | ||
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE(); | ||
if (!equals(this.i2t_1, tmp0_other_with_cast.i2t_1)) | ||
if (!equals(this.m2t_1, tmp0_other_with_cast.m2t_1)) | ||
return false; | ||
if (!equals(this.j2t_1, tmp0_other_with_cast.j2t_1)) | ||
if (!equals(this.n2t_1, tmp0_other_with_cast.n2t_1)) | ||
return false; | ||
if (!equals(this.k2t_1, tmp0_other_with_cast.k2t_1)) | ||
if (!equals(this.o2t_1, tmp0_other_with_cast.o2t_1)) | ||
return false; | ||
if (!equals(this.l2t_1, tmp0_other_with_cast.l2t_1)) | ||
if (!equals(this.p2t_1, tmp0_other_with_cast.p2t_1)) | ||
return false; | ||
if (!equals(this.m2t_1, tmp0_other_with_cast.m2t_1)) | ||
if (!equals(this.q2t_1, tmp0_other_with_cast.q2t_1)) | ||
return false; | ||
@@ -889,14 +889,14 @@ return true; | ||
RGBColorSpaces_instance = this; | ||
this.k2u_1 = SRGB_getInstance(); | ||
this.l2u_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().w2s_1, LinearTransferFunctions_getInstance(), get_SRGB_R(), get_SRGB_G(), get_SRGB_B()); | ||
this.m2u_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_getInstance(), get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B()); | ||
this.n2u_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.o2u_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.p2u_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.q2u_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().w2s_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.r2u_1 = BT2020Space_getInstance(); | ||
this.s2u_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().w2s_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.t2u_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.u2u_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().w2s_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.v2u_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().u2s_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.o2u_1 = SRGB_getInstance(); | ||
this.p2u_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().a2t_1, LinearTransferFunctions_getInstance(), get_SRGB_R(), get_SRGB_G(), get_SRGB_B()); | ||
this.q2u_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_getInstance(), get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B()); | ||
this.r2u_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.s2u_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.t2u_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B()); | ||
this.u2u_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().a2t_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.v2u_1 = BT2020Space_getInstance(); | ||
this.w2u_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().a2t_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.x2u_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.y2u_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().a2t_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.z2u_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().y2s_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)); | ||
} | ||
@@ -911,25 +911,25 @@ var RGBColorSpaces_instance; | ||
SRGB_instance = this; | ||
this.u2t_1 = 'sRGB'; | ||
this.v2t_1 = rectangularComponentInfo('RGB'); | ||
this.w2t_1 = Illuminant_getInstance().w2s_1; | ||
this.x2t_1 = SRGBTransferFunctions_getInstance(); | ||
this.y2t_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.w2t_1, get_SRGB_R(), get_SRGB_G(), get_SRGB_B())); | ||
this.z2t_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.y2t_1))); | ||
this.y2t_1 = 'sRGB'; | ||
this.z2t_1 = rectangularComponentInfo('RGB'); | ||
this.a2u_1 = Illuminant_getInstance().a2t_1; | ||
this.b2u_1 = SRGBTransferFunctions_getInstance(); | ||
this.c2u_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.a2u_1, get_SRGB_R(), get_SRGB_G(), get_SRGB_B())); | ||
this.d2u_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.c2u_1))); | ||
} | ||
protoOf(SRGB).j2u = function () { | ||
return this.w2t_1; | ||
protoOf(SRGB).n2u = function () { | ||
return this.a2u_1; | ||
}; | ||
protoOf(SRGB).g2u = function () { | ||
return this.x2t_1; | ||
protoOf(SRGB).k2u = function () { | ||
return this.b2u_1; | ||
}; | ||
protoOf(SRGB).h2u = function () { | ||
return this.y2t_1; | ||
protoOf(SRGB).l2u = function () { | ||
return this.c2u_1; | ||
}; | ||
protoOf(SRGB).i2u = function () { | ||
return this.z2t_1; | ||
protoOf(SRGB).m2u = function () { | ||
return this.d2u_1; | ||
}; | ||
protoOf(SRGB).toString = function () { | ||
return this.u2t_1; | ||
return this.y2t_1; | ||
}; | ||
protoOf(SRGB).t2t = function (r, g, b, alpha) { | ||
protoOf(SRGB).x2t = function (r, g, b, alpha) { | ||
return new RGB(r, g, b, alpha, this); | ||
@@ -949,14 +949,14 @@ }; | ||
ACESccTransferFunctions_instance = this; | ||
this.m2v_1 = 3.0517578125E-5; | ||
this.n2v_1 = 1.52587890625E-5; | ||
this.o2v_1 = -0.3013698630136986; | ||
this.q2v_1 = 3.0517578125E-5; | ||
this.r2v_1 = 1.52587890625E-5; | ||
this.s2v_1 = -0.3013698630136986; | ||
var tmp = this; | ||
// Inline function 'kotlin.math.log2' call | ||
tmp.p2v_1 = (log2(65504.0) + 9.72) / 17.52; | ||
tmp.t2v_1 = (log2(65504.0) + 9.72) / 17.52; | ||
} | ||
protoOf(ACESccTransferFunctions).b2u = function (x) { | ||
protoOf(ACESccTransferFunctions).f2u = 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.p2v_1) { | ||
} else if (x < this.t2v_1) { | ||
// Inline function 'kotlin.math.pow' call | ||
@@ -970,3 +970,3 @@ var tmp0_pow = x * 17.52 - 9.72; | ||
}; | ||
protoOf(ACESccTransferFunctions).c2u = function (x) { | ||
protoOf(ACESccTransferFunctions).g2u = function (x) { | ||
var tmp; | ||
@@ -991,13 +991,13 @@ if (x < 3.0517578125E-5) { | ||
ACEScctTransferFunctions_instance = this; | ||
this.q2v_1 = 10.5402377416545; | ||
this.r2v_1 = 0.0729055341958355; | ||
this.u2v_1 = 10.5402377416545; | ||
this.v2v_1 = 0.0729055341958355; | ||
var tmp = this; | ||
// Inline function 'kotlin.math.log2' call | ||
tmp.s2v_1 = (log2(65504.0) + 9.72) / 17.52; | ||
tmp.w2v_1 = (log2(65504.0) + 9.72) / 17.52; | ||
} | ||
protoOf(ACEScctTransferFunctions).b2u = function (x) { | ||
protoOf(ACEScctTransferFunctions).f2u = function (x) { | ||
var tmp; | ||
if (x <= 0.155251141552511) { | ||
tmp = (x - 0.0729055341958355) / 10.5402377416545; | ||
} else if (x < this.s2v_1) { | ||
} else if (x < this.w2v_1) { | ||
// Inline function 'kotlin.math.pow' call | ||
@@ -1011,3 +1011,3 @@ var tmp0_pow = x * 17.52 - 9.72; | ||
}; | ||
protoOf(ACEScctTransferFunctions).c2u = function (x) { | ||
protoOf(ACEScctTransferFunctions).g2u = function (x) { | ||
var tmp; | ||
@@ -1030,26 +1030,26 @@ if (x < 0.0078125) { | ||
BT2020Space_instance = this; | ||
this.t2v_1 = 'BT.2020'; | ||
this.u2v_1 = rectangularComponentInfo('RGB'); | ||
this.v2v_1 = Illuminant_getInstance().w2s_1; | ||
this.w2v_1 = BT2020TransferFunctions_getInstance(); | ||
this.x2v_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.v2v_1, xyY_init_$Create$(0.708, 0.292), xyY_init_$Create$(0.17, 0.797), xyY_init_$Create$(0.131, 0.046))); | ||
this.y2v_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.x2v_1))); | ||
this.x2v_1 = 'BT.2020'; | ||
this.y2v_1 = rectangularComponentInfo('RGB'); | ||
this.z2v_1 = Illuminant_getInstance().a2t_1; | ||
this.a2w_1 = BT2020TransferFunctions_getInstance(); | ||
this.b2w_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.z2v_1, xyY_init_$Create$(0.708, 0.292), xyY_init_$Create$(0.17, 0.797), xyY_init_$Create$(0.131, 0.046))); | ||
this.c2w_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.b2w_1))); | ||
} | ||
protoOf(BT2020Space).j2u = function () { | ||
return this.v2v_1; | ||
protoOf(BT2020Space).n2u = function () { | ||
return this.z2v_1; | ||
}; | ||
protoOf(BT2020Space).g2u = function () { | ||
return this.w2v_1; | ||
protoOf(BT2020Space).k2u = function () { | ||
return this.a2w_1; | ||
}; | ||
protoOf(BT2020Space).t2t = function (r, g, b, alpha) { | ||
protoOf(BT2020Space).x2t = function (r, g, b, alpha) { | ||
return new RGB(r, g, b, alpha, this); | ||
}; | ||
protoOf(BT2020Space).h2u = function () { | ||
return this.x2v_1; | ||
protoOf(BT2020Space).l2u = function () { | ||
return this.b2w_1; | ||
}; | ||
protoOf(BT2020Space).i2u = function () { | ||
return this.y2v_1; | ||
protoOf(BT2020Space).m2u = function () { | ||
return this.c2w_1; | ||
}; | ||
protoOf(BT2020Space).toString = function () { | ||
return this.t2v_1; | ||
return this.x2v_1; | ||
}; | ||
@@ -1064,8 +1064,8 @@ var BT2020Space_instance; | ||
BT709TransferFunctions_instance = this; | ||
this.z2v_1 = 1.099 * spow_0(0.018, 0.45) - 0.099; | ||
this.d2w_1 = 1.099 * spow_0(0.018, 0.45) - 0.099; | ||
} | ||
protoOf(BT709TransferFunctions).b2u = function (x) { | ||
return numberToDouble(x < this.z2v_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 2.2222222222222223)); | ||
protoOf(BT709TransferFunctions).f2u = function (x) { | ||
return numberToDouble(x < this.d2w_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 2.2222222222222223)); | ||
}; | ||
protoOf(BT709TransferFunctions).c2u = function (x) { | ||
protoOf(BT709TransferFunctions).g2u = function (x) { | ||
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099; | ||
@@ -1082,6 +1082,6 @@ }; | ||
} | ||
protoOf(SRGBTransferFunctions).c2u = function (x) { | ||
protoOf(SRGBTransferFunctions).g2u = function (x) { | ||
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 0.4166666666666667) - 0.055; | ||
}; | ||
protoOf(SRGBTransferFunctions).b2u = function (x) { | ||
protoOf(SRGBTransferFunctions).f2u = function (x) { | ||
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4); | ||
@@ -1097,8 +1097,8 @@ }; | ||
ROMMTransferFunctions_instance = this; | ||
this.a2w_1 = 0.001953; | ||
this.e2w_1 = 0.001953; | ||
} | ||
protoOf(ROMMTransferFunctions).b2u = function (x) { | ||
protoOf(ROMMTransferFunctions).f2u = function (x) { | ||
return x < 0.031248 ? x / 16.0 : spow(x, 1.8); | ||
}; | ||
protoOf(ROMMTransferFunctions).c2u = function (x) { | ||
protoOf(ROMMTransferFunctions).g2u = function (x) { | ||
return x < 0.001953 ? x * 16.0 : spow(x, 0.5555555555555556); | ||
@@ -1114,9 +1114,9 @@ }; | ||
_init_properties_RGBColorSpaces_kt__nc9fsz(); | ||
var primaries = _Matrix___init__impl__q3kp4w_0(r.b2w_1, g.b2w_1, b.b2w_1, r.c2w_1, g.c2w_1, b.c2w_1, r.e2w(), g.e2w(), b.e2w()); | ||
var wp = whitePoint.q2s_1; | ||
var primaries = _Matrix___init__impl__q3kp4w_0(r.f2w_1, g.f2w_1, b.f2w_1, r.g2w_1, g.g2w_1, b.g2w_1, r.i2w(), g.i2w(), b.i2w()); | ||
var wp = whitePoint.u2s_1; | ||
// Inline function 'com.github.ajalt.colormath.internal.dot' call | ||
var tmp0_dot = inverse(primaries); | ||
var tmp1_dot = wp.f2w(); | ||
var tmp2_dot = wp.d2w_1; | ||
var tmp3_dot = wp.g2w(); | ||
var tmp1_dot = wp.j2w(); | ||
var tmp2_dot = wp.h2w_1; | ||
var tmp3_dot = wp.k2w(); | ||
// Inline function 'com.github.ajalt.colormath.model.rgbToXyzMatrix.<anonymous>' call | ||
@@ -1129,37 +1129,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.h2w_1 = name; | ||
this.i2w_1 = whitePoint; | ||
this.j2w_1 = transferFunctions; | ||
this.k2w_1 = r; | ||
this.l2w_1 = g; | ||
this.m2w_1 = b; | ||
this.n2w_1 = rectangularComponentInfo('RGB'); | ||
this.o2w_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.i2w_1, this.k2w_1, this.l2w_1, this.m2w_1)); | ||
this.p2w_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.o2w_1))); | ||
this.l2w_1 = name; | ||
this.m2w_1 = whitePoint; | ||
this.n2w_1 = transferFunctions; | ||
this.o2w_1 = r; | ||
this.p2w_1 = g; | ||
this.q2w_1 = b; | ||
this.r2w_1 = rectangularComponentInfo('RGB'); | ||
this.s2w_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.m2w_1, this.o2w_1, this.p2w_1, this.q2w_1)); | ||
this.t2w_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.s2w_1))); | ||
} | ||
protoOf(RGBColorSpaceImpl).j2u = function () { | ||
return this.i2w_1; | ||
protoOf(RGBColorSpaceImpl).n2u = function () { | ||
return this.m2w_1; | ||
}; | ||
protoOf(RGBColorSpaceImpl).g2u = function () { | ||
return this.j2w_1; | ||
protoOf(RGBColorSpaceImpl).k2u = function () { | ||
return this.n2w_1; | ||
}; | ||
protoOf(RGBColorSpaceImpl).h2u = function () { | ||
return this.o2w_1; | ||
protoOf(RGBColorSpaceImpl).l2u = function () { | ||
return this.s2w_1; | ||
}; | ||
protoOf(RGBColorSpaceImpl).i2u = function () { | ||
return this.p2w_1; | ||
protoOf(RGBColorSpaceImpl).m2u = function () { | ||
return this.t2w_1; | ||
}; | ||
protoOf(RGBColorSpaceImpl).toString = function () { | ||
return this.h2w_1; | ||
return this.l2w_1; | ||
}; | ||
protoOf(RGBColorSpaceImpl).t2t = function (r, g, b, alpha) { | ||
protoOf(RGBColorSpaceImpl).x2t = function (r, g, b, alpha) { | ||
return new RGB(r, g, b, alpha, this); | ||
}; | ||
protoOf(RGBColorSpaceImpl).hashCode = function () { | ||
var result = getStringHashCode(this.h2w_1); | ||
result = imul(result, 31) + this.i2w_1.hashCode() | 0; | ||
result = imul(result, 31) + hashCode(this.j2w_1) | 0; | ||
result = imul(result, 31) + this.k2w_1.hashCode() | 0; | ||
result = imul(result, 31) + this.l2w_1.hashCode() | 0; | ||
var result = getStringHashCode(this.l2w_1); | ||
result = imul(result, 31) + this.m2w_1.hashCode() | 0; | ||
result = imul(result, 31) + hashCode(this.n2w_1) | 0; | ||
result = imul(result, 31) + this.o2w_1.hashCode() | 0; | ||
result = imul(result, 31) + this.p2w_1.hashCode() | 0; | ||
result = imul(result, 31) + this.q2w_1.hashCode() | 0; | ||
return result; | ||
@@ -1173,13 +1173,13 @@ }; | ||
var tmp0_other_with_cast = other instanceof RGBColorSpaceImpl ? other : THROW_CCE(); | ||
if (!(this.h2w_1 === tmp0_other_with_cast.h2w_1)) | ||
if (!(this.l2w_1 === tmp0_other_with_cast.l2w_1)) | ||
return false; | ||
if (!this.i2w_1.equals(tmp0_other_with_cast.i2w_1)) | ||
if (!this.m2w_1.equals(tmp0_other_with_cast.m2w_1)) | ||
return false; | ||
if (!equals(this.j2w_1, tmp0_other_with_cast.j2w_1)) | ||
if (!equals(this.n2w_1, tmp0_other_with_cast.n2w_1)) | ||
return false; | ||
if (!this.k2w_1.equals(tmp0_other_with_cast.k2w_1)) | ||
if (!this.o2w_1.equals(tmp0_other_with_cast.o2w_1)) | ||
return false; | ||
if (!this.l2w_1.equals(tmp0_other_with_cast.l2w_1)) | ||
if (!this.p2w_1.equals(tmp0_other_with_cast.p2w_1)) | ||
return false; | ||
if (!this.m2w_1.equals(tmp0_other_with_cast.m2w_1)) | ||
if (!this.q2w_1.equals(tmp0_other_with_cast.q2w_1)) | ||
return false; | ||
@@ -1190,12 +1190,12 @@ return true; | ||
BT2020TransferFunctions_instance = this; | ||
this.q2w_1 = 1.0993; | ||
this.r2w_1 = 0.0181; | ||
this.u2w_1 = 1.0993; | ||
this.v2w_1 = 0.0181; | ||
var tmp = this; | ||
// Inline function 'kotlin.math.pow' call | ||
tmp.s2w_1 = 1.0993 * Math.pow(0.0181, 0.45) - 0.09929999999999994; | ||
tmp.w2w_1 = 1.0993 * Math.pow(0.0181, 0.45) - 0.09929999999999994; | ||
} | ||
protoOf(BT2020TransferFunctions).b2u = function (x) { | ||
return numberToDouble(x < this.s2w_1 ? x / 4.5 : spow_0((x + 0.09929999999999994) / 1.0993, 2.2222222222222223)); | ||
protoOf(BT2020TransferFunctions).f2u = function (x) { | ||
return numberToDouble(x < this.w2w_1 ? x / 4.5 : spow_0((x + 0.09929999999999994) / 1.0993, 2.2222222222222223)); | ||
}; | ||
protoOf(BT2020TransferFunctions).c2u = function (x) { | ||
protoOf(BT2020TransferFunctions).g2u = function (x) { | ||
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - 0.09929999999999994; | ||
@@ -1227,9 +1227,9 @@ }; | ||
Companion_instance_3 = this; | ||
this.t2w_1 = XYZColorSpaces_getInstance().u2w_1; | ||
this.x2w_1 = XYZColorSpaces_getInstance().y2w_1; | ||
} | ||
protoOf(Companion_3).j2u = function () { | ||
return this.t2w_1.j2u(); | ||
protoOf(Companion_3).n2u = function () { | ||
return this.x2w_1.n2u(); | ||
}; | ||
protoOf(Companion_3).t2t = function (x, y, z, alpha) { | ||
return this.t2w_1.t2t(x, y, z, alpha); | ||
protoOf(Companion_3).x2t = function (x, y, z, alpha) { | ||
return this.x2w_1.x2t(x, y, z, alpha); | ||
}; | ||
@@ -1243,9 +1243,9 @@ var Companion_instance_3; | ||
function adaptToM($this, space, m, mi) { | ||
if (space.j2u().equals($this.f2v_1.j2u())) | ||
if (space.n2u().equals($this.j2v_1.n2u())) | ||
return $this; | ||
var transform = chromaticAdaptationMatrix(space, $this.f2v_1.j2u().q2s_1, m, mi); | ||
var transform = chromaticAdaptationMatrix(space, $this.j2v_1.n2u().u2s_1, m, mi); | ||
// Inline function 'com.github.ajalt.colormath.internal.dot' call | ||
var tmp0_dot = $this.b2v_1; | ||
var tmp1_dot = $this.c2v_1; | ||
var tmp2_dot = $this.d2v_1; | ||
var tmp0_dot = $this.f2v_1; | ||
var tmp1_dot = $this.g2v_1; | ||
var tmp2_dot = $this.h2v_1; | ||
// Inline function 'com.github.ajalt.colormath.model.XYZ.adaptToM.<anonymous>' call | ||
@@ -1255,23 +1255,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.t2t(tmp3_anonymous, tmp4_anonymous, tmp5_anonymous, $this.e2v_1); | ||
return space.x2t(tmp3_anonymous, tmp4_anonymous, tmp5_anonymous, $this.i2v_1); | ||
} | ||
function XYZ(x, y, z, alpha, space) { | ||
Companion_getInstance_3(); | ||
this.b2v_1 = x; | ||
this.c2v_1 = y; | ||
this.d2v_1 = z; | ||
this.e2v_1 = alpha; | ||
this.f2v_1 = space; | ||
this.f2v_1 = x; | ||
this.g2v_1 = y; | ||
this.h2v_1 = z; | ||
this.i2v_1 = alpha; | ||
this.j2v_1 = space; | ||
} | ||
protoOf(XYZ).w2w = function (space) { | ||
protoOf(XYZ).a2x = function (space) { | ||
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ()); | ||
}; | ||
protoOf(XYZ).g2v = function (space) { | ||
var tmp0_container = this.w2w(XYZColorSpace(space.j2u())); | ||
protoOf(XYZ).k2v = function (space) { | ||
var tmp0_container = this.a2x(XYZColorSpace(space.n2u())); | ||
var x = tmp0_container.e3(); | ||
var y = tmp0_container.f3(); | ||
var z = tmp0_container.c8(); | ||
var f = space.g2u(); | ||
var f = space.k2u(); | ||
// Inline function 'com.github.ajalt.colormath.internal.dot' call | ||
var tmp0_dot = _Matrix___init__impl__q3kp4w(space.i2u()); | ||
var tmp0_dot = _Matrix___init__impl__q3kp4w(space.m2u()); | ||
// Inline function 'com.github.ajalt.colormath.model.XYZ.toRGB.<anonymous>' call | ||
@@ -1281,25 +1281,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.t2t(f.c2u(tmp1_anonymous), f.c2u(tmp2_anonymous), f.c2u(tmp3_anonymous), this.e2v_1); | ||
return space.x2t(f.g2u(tmp1_anonymous), f.g2u(tmp2_anonymous), f.g2u(tmp3_anonymous), this.i2v_1); | ||
}; | ||
protoOf(XYZ).b2t = function () { | ||
return this.g2v(RGBColorSpaces_getInstance().k2u_1); | ||
protoOf(XYZ).f2t = function () { | ||
return this.k2v(RGBColorSpaces_getInstance().o2u_1); | ||
}; | ||
protoOf(XYZ).e3 = function () { | ||
return this.b2v_1; | ||
return this.f2v_1; | ||
}; | ||
protoOf(XYZ).f3 = function () { | ||
return this.c2v_1; | ||
return this.g2v_1; | ||
}; | ||
protoOf(XYZ).c8 = function () { | ||
return this.d2v_1; | ||
return this.h2v_1; | ||
}; | ||
protoOf(XYZ).toString = function () { | ||
return 'XYZ(x=' + this.b2v_1 + ', y=' + this.c2v_1 + ', z=' + this.d2v_1 + ', alpha=' + this.e2v_1 + ', space=' + this.f2v_1 + ')'; | ||
return 'XYZ(x=' + this.f2v_1 + ', y=' + this.g2v_1 + ', z=' + this.h2v_1 + ', alpha=' + this.i2v_1 + ', space=' + this.j2v_1 + ')'; | ||
}; | ||
protoOf(XYZ).hashCode = function () { | ||
var result = getNumberHashCode(this.b2v_1); | ||
result = imul(result, 31) + getNumberHashCode(this.c2v_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.d2v_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.e2v_1) | 0; | ||
result = imul(result, 31) + hashCode(this.f2v_1) | 0; | ||
var result = getNumberHashCode(this.f2v_1); | ||
result = imul(result, 31) + getNumberHashCode(this.g2v_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.h2v_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.i2v_1) | 0; | ||
result = imul(result, 31) + hashCode(this.j2v_1) | 0; | ||
return result; | ||
@@ -1313,11 +1313,11 @@ }; | ||
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE(); | ||
if (!equals(this.b2v_1, tmp0_other_with_cast.b2v_1)) | ||
if (!equals(this.f2v_1, tmp0_other_with_cast.f2v_1)) | ||
return false; | ||
if (!equals(this.c2v_1, tmp0_other_with_cast.c2v_1)) | ||
if (!equals(this.g2v_1, tmp0_other_with_cast.g2v_1)) | ||
return false; | ||
if (!equals(this.d2v_1, tmp0_other_with_cast.d2v_1)) | ||
if (!equals(this.h2v_1, tmp0_other_with_cast.h2v_1)) | ||
return false; | ||
if (!equals(this.e2v_1, tmp0_other_with_cast.e2v_1)) | ||
if (!equals(this.i2v_1, tmp0_other_with_cast.i2v_1)) | ||
return false; | ||
if (!equals(this.f2v_1, tmp0_other_with_cast.f2v_1)) | ||
if (!equals(this.j2v_1, tmp0_other_with_cast.j2v_1)) | ||
return false; | ||
@@ -1327,8 +1327,8 @@ return true; | ||
function XYZColorSpace(whitePoint) { | ||
return whitePoint.equals(Illuminant_getInstance().w2s_1) ? XYZColorSpaces_getInstance().u2w_1 : whitePoint.equals(Illuminant_getInstance().u2s_1) ? XYZColorSpaces_getInstance().v2w_1 : new XYZColorSpaceImpl(whitePoint); | ||
return whitePoint.equals(Illuminant_getInstance().a2t_1) ? XYZColorSpaces_getInstance().y2w_1 : whitePoint.equals(Illuminant_getInstance().y2s_1) ? XYZColorSpaces_getInstance().z2w_1 : new XYZColorSpaceImpl(whitePoint); | ||
} | ||
function XYZColorSpaces() { | ||
XYZColorSpaces_instance = this; | ||
this.u2w_1 = new XYZColorSpaceImpl(Illuminant_getInstance().w2s_1); | ||
this.v2w_1 = new XYZColorSpaceImpl(Illuminant_getInstance().u2s_1); | ||
this.y2w_1 = new XYZColorSpaceImpl(Illuminant_getInstance().a2t_1); | ||
this.z2w_1 = new XYZColorSpaceImpl(Illuminant_getInstance().y2s_1); | ||
} | ||
@@ -1344,22 +1344,22 @@ var XYZColorSpaces_instance; | ||
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz; | ||
var dstWp = _this__u8e3s4.j2u().q2s_1; | ||
var src = dot_0(xyzToLms, srcWp.f2w(), srcWp.d2w_1, srcWp.g2w()); | ||
var dst = dot_0(xyzToLms, dstWp.f2w(), dstWp.d2w_1, dstWp.g2w()); | ||
var dstWp = _this__u8e3s4.n2u().u2s_1; | ||
var src = dot_0(xyzToLms, srcWp.j2w(), srcWp.h2w_1, srcWp.k2w()); | ||
var dst = dot_0(xyzToLms, dstWp.j2w(), dstWp.h2w_1, dstWp.k2w()); | ||
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.x2w_1 = whitePoint; | ||
this.y2w_1 = rectangularComponentInfo('XYZ'); | ||
this.b2x_1 = whitePoint; | ||
this.c2x_1 = rectangularComponentInfo('XYZ'); | ||
} | ||
protoOf(XYZColorSpaceImpl).j2u = function () { | ||
return this.x2w_1; | ||
protoOf(XYZColorSpaceImpl).n2u = function () { | ||
return this.b2x_1; | ||
}; | ||
protoOf(XYZColorSpaceImpl).toString = function () { | ||
return 'XYZColorSpace(' + this.x2w_1 + ')'; | ||
return 'XYZColorSpace(' + this.b2x_1 + ')'; | ||
}; | ||
protoOf(XYZColorSpaceImpl).t2t = function (x, y, z, alpha) { | ||
protoOf(XYZColorSpaceImpl).x2t = function (x, y, z, alpha) { | ||
return new XYZ(x, y, z, alpha, this); | ||
}; | ||
protoOf(XYZColorSpaceImpl).hashCode = function () { | ||
return this.x2w_1.hashCode(); | ||
return this.b2x_1.hashCode(); | ||
}; | ||
@@ -1372,3 +1372,3 @@ protoOf(XYZColorSpaceImpl).equals = function (other) { | ||
var tmp0_other_with_cast = other instanceof XYZColorSpaceImpl ? other : THROW_CCE(); | ||
if (!this.x2w_1.equals(tmp0_other_with_cast.x2w_1)) | ||
if (!this.b2x_1.equals(tmp0_other_with_cast.b2x_1)) | ||
return false; | ||
@@ -1387,22 +1387,22 @@ return true; | ||
Y = Y === VOID ? 1.0 : Y; | ||
this.b2w_1 = x; | ||
this.c2w_1 = y; | ||
this.d2w_1 = Y; | ||
this.f2w_1 = x; | ||
this.g2w_1 = y; | ||
this.h2w_1 = Y; | ||
} | ||
protoOf(xyY).e2w = function () { | ||
return 1 - this.b2w_1 - this.c2w_1; | ||
protoOf(xyY).i2w = function () { | ||
return 1 - this.f2w_1 - this.g2w_1; | ||
}; | ||
protoOf(xyY).f2w = function () { | ||
return this.b2w_1 * this.d2w_1 / this.c2w_1; | ||
protoOf(xyY).j2w = function () { | ||
return this.f2w_1 * this.h2w_1 / this.g2w_1; | ||
}; | ||
protoOf(xyY).g2w = function () { | ||
return (1 - this.b2w_1 - this.c2w_1) * this.d2w_1 / this.c2w_1; | ||
protoOf(xyY).k2w = function () { | ||
return (1 - this.f2w_1 - this.g2w_1) * this.h2w_1 / this.g2w_1; | ||
}; | ||
protoOf(xyY).toString = function () { | ||
return 'xyY(x=' + this.b2w_1 + ', y=' + this.c2w_1 + ', Y=' + this.d2w_1 + ')'; | ||
return 'xyY(x=' + this.f2w_1 + ', y=' + this.g2w_1 + ', Y=' + this.h2w_1 + ')'; | ||
}; | ||
protoOf(xyY).hashCode = function () { | ||
var result = getNumberHashCode(this.b2w_1); | ||
result = imul(result, 31) + getNumberHashCode(this.c2w_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.d2w_1) | 0; | ||
var result = getNumberHashCode(this.f2w_1); | ||
result = imul(result, 31) + getNumberHashCode(this.g2w_1) | 0; | ||
result = imul(result, 31) + getNumberHashCode(this.h2w_1) | 0; | ||
return result; | ||
@@ -1416,7 +1416,7 @@ }; | ||
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE(); | ||
if (!equals(this.b2w_1, tmp0_other_with_cast.b2w_1)) | ||
if (!equals(this.f2w_1, tmp0_other_with_cast.f2w_1)) | ||
return false; | ||
if (!equals(this.c2w_1, tmp0_other_with_cast.c2w_1)) | ||
if (!equals(this.g2w_1, tmp0_other_with_cast.g2w_1)) | ||
return false; | ||
if (!equals(this.d2w_1, tmp0_other_with_cast.d2w_1)) | ||
if (!equals(this.h2w_1, tmp0_other_with_cast.h2w_1)) | ||
return false; | ||
@@ -1426,23 +1426,23 @@ return true; | ||
//region block: post-declaration | ||
protoOf(Companion_2).d2t = from255$default; | ||
protoOf(Companion_2).c2t = invoke$default; | ||
protoOf(Companion_2).h2t = invoke$default_0; | ||
protoOf(SRGB).c2t = invoke$default; | ||
protoOf(SRGB).d2u = invoke; | ||
protoOf(SRGB).h2t = invoke$default_0; | ||
protoOf(SRGB).f2u = invoke_0; | ||
protoOf(SRGB).e2u = from255; | ||
protoOf(SRGB).d2t = from255$default; | ||
protoOf(BT2020Space).c2t = invoke$default; | ||
protoOf(BT2020Space).d2u = invoke; | ||
protoOf(BT2020Space).h2t = invoke$default_0; | ||
protoOf(BT2020Space).f2u = invoke_0; | ||
protoOf(BT2020Space).e2u = from255; | ||
protoOf(BT2020Space).d2t = from255$default; | ||
protoOf(RGBColorSpaceImpl).c2t = invoke$default; | ||
protoOf(RGBColorSpaceImpl).d2u = invoke; | ||
protoOf(RGBColorSpaceImpl).h2t = invoke$default_0; | ||
protoOf(RGBColorSpaceImpl).f2u = invoke_0; | ||
protoOf(RGBColorSpaceImpl).e2u = from255; | ||
protoOf(RGBColorSpaceImpl).d2t = from255$default; | ||
protoOf(Companion_2).h2t = from255$default; | ||
protoOf(Companion_2).g2t = invoke$default; | ||
protoOf(Companion_2).l2t = invoke$default_0; | ||
protoOf(SRGB).g2t = invoke$default; | ||
protoOf(SRGB).h2u = invoke; | ||
protoOf(SRGB).l2t = invoke$default_0; | ||
protoOf(SRGB).j2u = invoke_0; | ||
protoOf(SRGB).i2u = from255; | ||
protoOf(SRGB).h2t = from255$default; | ||
protoOf(BT2020Space).g2t = invoke$default; | ||
protoOf(BT2020Space).h2u = invoke; | ||
protoOf(BT2020Space).l2t = invoke$default_0; | ||
protoOf(BT2020Space).j2u = invoke_0; | ||
protoOf(BT2020Space).i2u = from255; | ||
protoOf(BT2020Space).h2t = from255$default; | ||
protoOf(RGBColorSpaceImpl).g2t = invoke$default; | ||
protoOf(RGBColorSpaceImpl).h2u = invoke; | ||
protoOf(RGBColorSpaceImpl).l2t = invoke$default_0; | ||
protoOf(RGBColorSpaceImpl).j2u = invoke_0; | ||
protoOf(RGBColorSpaceImpl).i2u = from255; | ||
protoOf(RGBColorSpaceImpl).h2t = from255$default; | ||
//endregion | ||
@@ -1449,0 +1449,0 @@ //region block: exports |
{ | ||
"name": "@flock/wirespec", | ||
"version": "0.8.49", | ||
"main": "wirespec-src-plugin-cli.js", | ||
"types": "wirespec-src-plugin-cli.d.ts", | ||
"version": "0.8.50", | ||
"main": "wirespec-src-plugin-npm.js", | ||
"types": "wirespec-src-plugin-npm.d.ts", | ||
"devDependencies": { | ||
@@ -7,0 +7,0 @@ "typescript": "5.0.4", |
@@ -52,4 +52,4 @@ (function (root, factory) { | ||
setMetadataFor(FullFilePath, 'FullFilePath', classMeta); | ||
setMetadataFor(Console, 'Console', objectMeta); | ||
setMetadataFor(FullDirPath, 'FullDirPath', classMeta); | ||
setMetadataFor(Console, 'Console', objectMeta); | ||
setMetadataFor(Language, 'Language', interfaceMeta); | ||
@@ -280,21 +280,2 @@ setMetadataFor(Jvm, 'Jvm', classMeta, Enum, [Enum, Language]); | ||
}; | ||
function FullDirPath(path) { | ||
this.j22_1 = path; | ||
} | ||
protoOf(FullDirPath).toString = function () { | ||
return 'FullDirPath(path=' + this.j22_1 + ')'; | ||
}; | ||
protoOf(FullDirPath).hashCode = function () { | ||
return getStringHashCode(this.j22_1); | ||
}; | ||
protoOf(FullDirPath).equals = function (other) { | ||
if (this === other) | ||
return true; | ||
if (!(other instanceof FullDirPath)) | ||
return false; | ||
var tmp0_other_with_cast = other instanceof FullDirPath ? other : THROW_CCE(); | ||
if (!(this.j22_1 === tmp0_other_with_cast.j22_1)) | ||
return false; | ||
return true; | ||
}; | ||
function Console$read$lambda() { | ||
@@ -329,2 +310,21 @@ return readlnOrNull(); | ||
} | ||
function FullDirPath(path) { | ||
this.j22_1 = path; | ||
} | ||
protoOf(FullDirPath).toString = function () { | ||
return 'FullDirPath(path=' + this.j22_1 + ')'; | ||
}; | ||
protoOf(FullDirPath).hashCode = function () { | ||
return getStringHashCode(this.j22_1); | ||
}; | ||
protoOf(FullDirPath).equals = function (other) { | ||
if (this === other) | ||
return true; | ||
if (!(other instanceof FullDirPath)) | ||
return false; | ||
var tmp0_other_with_cast = other instanceof FullDirPath ? other : THROW_CCE(); | ||
if (!(this.j22_1 === tmp0_other_with_cast.j22_1)) | ||
return false; | ||
return true; | ||
}; | ||
var Jvm_Java_instance; | ||
@@ -331,0 +331,0 @@ var Jvm_Kotlin_instance; |
(function (root, factory) { | ||
if (typeof define === 'function' && define.amd) | ||
define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './clikt-clikt.js', './wirespec-src-compiler-core.js', './wirespec-src-plugin-arguments.js', './wirespec-src-converter-openapi.js', './arrow-arrow-core.js', './wirespec-src-compiler-lib.js'], factory); | ||
define(['exports', './kotlin-kotlin-stdlib-js-ir.js', './clikt-clikt.js', './wirespec-src-plugin-arguments.js', './wirespec-src-compiler-core.js', './wirespec-src-converter-openapi.js', './arrow-arrow-core.js', './wirespec-src-compiler-lib.js'], factory); | ||
else if (typeof exports === 'object') | ||
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./clikt-clikt.js'), require('./wirespec-src-compiler-core.js'), require('./wirespec-src-plugin-arguments.js'), require('./wirespec-src-converter-openapi.js'), require('./arrow-arrow-core.js'), require('./wirespec-src-compiler-lib.js')); | ||
factory(module.exports, require('./kotlin-kotlin-stdlib-js-ir.js'), require('./clikt-clikt.js'), require('./wirespec-src-plugin-arguments.js'), require('./wirespec-src-compiler-core.js'), require('./wirespec-src-converter-openapi.js'), require('./arrow-arrow-core.js'), require('./wirespec-src-compiler-lib.js')); | ||
else { | ||
@@ -13,8 +13,8 @@ if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') { | ||
} | ||
if (typeof this['wirespec-src-plugin-arguments'] === 'undefined') { | ||
throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'wirespec-src-plugin-arguments' was not found. Please, check whether 'wirespec-src-plugin-arguments' is loaded prior to 'wirespec-src-plugin-cli'."); | ||
} | ||
if (typeof this['wirespec-src-compiler-core'] === 'undefined') { | ||
throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'wirespec-src-compiler-core' was not found. Please, check whether 'wirespec-src-compiler-core' is loaded prior to 'wirespec-src-plugin-cli'."); | ||
} | ||
if (typeof this['wirespec-src-plugin-arguments'] === 'undefined') { | ||
throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'wirespec-src-plugin-arguments' was not found. Please, check whether 'wirespec-src-plugin-arguments' is loaded prior to 'wirespec-src-plugin-cli'."); | ||
} | ||
if (typeof this['wirespec-src-converter-openapi'] === 'undefined') { | ||
@@ -29,26 +29,17 @@ throw new Error("Error loading module 'wirespec-src-plugin-cli'. Its dependency 'wirespec-src-converter-openapi' was not found. Please, check whether 'wirespec-src-converter-openapi' is loaded prior to 'wirespec-src-plugin-cli'."); | ||
} | ||
root['wirespec-src-plugin-cli'] = factory(typeof this['wirespec-src-plugin-cli'] === 'undefined' ? {} : this['wirespec-src-plugin-cli'], this['kotlin-kotlin-stdlib-js-ir'], this['clikt-clikt'], this['wirespec-src-compiler-core'], this['wirespec-src-plugin-arguments'], this['wirespec-src-converter-openapi'], this['arrow-arrow-core'], this['wirespec-src-compiler-lib']); | ||
root['wirespec-src-plugin-cli'] = factory(typeof this['wirespec-src-plugin-cli'] === 'undefined' ? {} : this['wirespec-src-plugin-cli'], this['kotlin-kotlin-stdlib-js-ir'], this['clikt-clikt'], this['wirespec-src-plugin-arguments'], this['wirespec-src-compiler-core'], this['wirespec-src-converter-openapi'], this['arrow-arrow-core'], this['wirespec-src-compiler-lib']); | ||
} | ||
}(this, function (_, kotlin_kotlin, kotlin_clikt_clikt, kotlin_community_flock_wirespec_compiler_core, kotlin_community_flock_wirespec_plugin_arguments_arguments, kotlin_community_flock_wirespec_converter_openapi, kotlin_io_arrow_kt_arrow_core, kotlin_community_flock_wirespec_compiler_lib) { | ||
}(this, function (_, kotlin_kotlin, kotlin_clikt_clikt, kotlin_community_flock_wirespec_plugin_arguments_arguments, kotlin_community_flock_wirespec_compiler_core, kotlin_community_flock_wirespec_converter_openapi, kotlin_io_arrow_kt_arrow_core, kotlin_community_flock_wirespec_compiler_lib) { | ||
'use strict'; | ||
//region block: imports | ||
var Unit_getInstance = kotlin_kotlin.$_$.t3; | ||
var Enum = kotlin_kotlin.$_$.cd; | ||
var subcommands = kotlin_clikt_clikt.$_$.c; | ||
var protoOf = kotlin_kotlin.$_$.q9; | ||
var classMeta = kotlin_kotlin.$_$.l8; | ||
var objectMeta = kotlin_kotlin.$_$.p9; | ||
var VOID = kotlin_kotlin.$_$.ke; | ||
var setMetadataFor = kotlin_kotlin.$_$.r9; | ||
var subcommands = kotlin_clikt_clikt.$_$.c; | ||
var objectMeta = kotlin_kotlin.$_$.p9; | ||
var NoOpCliktCommand = kotlin_clikt_clikt.$_$.b; | ||
var CliktCommand = kotlin_clikt_clikt.$_$.a; | ||
var classMeta = kotlin_kotlin.$_$.l8; | ||
var option = kotlin_clikt_clikt.$_$.h; | ||
var get_DEFAULT_PACKAGE_NAME = kotlin_community_flock_wirespec_compiler_core.$_$.a; | ||
var default_0 = kotlin_clikt_clikt.$_$.e; | ||
var flag = kotlin_clikt_clikt.$_$.f; | ||
var Companion_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.t; | ||
var FullDirPath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.d; | ||
var Console_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.s; | ||
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j1; | ||
var Companion_getInstance_0 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.u; | ||
var Companion_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.u; | ||
var choice = kotlin_clikt_clikt.$_$.j; | ||
@@ -69,2 +60,11 @@ var multiple = kotlin_clikt_clikt.$_$.g; | ||
var setOf = kotlin_kotlin.$_$.x6; | ||
var CliktCommand = kotlin_clikt_clikt.$_$.a; | ||
var get_DEFAULT_PACKAGE_NAME = kotlin_community_flock_wirespec_compiler_core.$_$.a; | ||
var default_0 = kotlin_clikt_clikt.$_$.e; | ||
var flag = kotlin_clikt_clikt.$_$.f; | ||
var Companion_getInstance_0 = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.t; | ||
var FullDirPath = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.d; | ||
var Console_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.s; | ||
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.j1; | ||
var Enum = kotlin_kotlin.$_$.cd; | ||
var KProperty1 = kotlin_kotlin.$_$.ja; | ||
@@ -93,8 +93,3 @@ var getPropertyCallableRef = kotlin_kotlin.$_$.r8; | ||
var Emitted = kotlin_community_flock_wirespec_compiler_core.$_$.b; | ||
var Wirespec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.k1; | ||
var compile = kotlin_community_flock_wirespec_compiler_core.$_$.b1; | ||
var Left = kotlin_io_arrow_kt_arrow_core.$_$.c; | ||
var Companion_getInstance_3 = kotlin_community_flock_wirespec_compiler_core.$_$.j1; | ||
var Right = kotlin_io_arrow_kt_arrow_core.$_$.d; | ||
var println = kotlin_kotlin.$_$.z7; | ||
var print = kotlin_kotlin.$_$.b8; | ||
var WirespecEmitter = kotlin_community_flock_wirespec_compiler_core.$_$.g; | ||
@@ -114,3 +109,8 @@ var equals = kotlin_kotlin.$_$.o8; | ||
var Jvm_Java_getInstance = kotlin_community_flock_wirespec_plugin_arguments_arguments.$_$.n; | ||
var print = kotlin_kotlin.$_$.b8; | ||
var Wirespec_getInstance = kotlin_community_flock_wirespec_compiler_core.$_$.k1; | ||
var compile = kotlin_community_flock_wirespec_compiler_core.$_$.b1; | ||
var Left = kotlin_io_arrow_kt_arrow_core.$_$.c; | ||
var Companion_getInstance_3 = kotlin_community_flock_wirespec_compiler_core.$_$.j1; | ||
var Right = kotlin_io_arrow_kt_arrow_core.$_$.d; | ||
var println = kotlin_kotlin.$_$.z7; | ||
var ensureNotNull = kotlin_kotlin.$_$.ae; | ||
@@ -126,3 +126,3 @@ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.r1; | ||
var isInterface = kotlin_kotlin.$_$.d9; | ||
var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.a; | ||
var produce = kotlin_community_flock_wirespec_compiler_lib.$_$.b; | ||
var endsWith = kotlin_kotlin.$_$.bb; | ||
@@ -145,3 +145,2 @@ var dropLast = kotlin_kotlin.$_$.za; | ||
//region block: pre-declaration | ||
setMetadataFor(Options, 'Options', classMeta, Enum); | ||
setMetadataFor(Companion, 'Companion', objectMeta); | ||
@@ -152,2 +151,3 @@ setMetadataFor(WirespecCli, 'WirespecCli', classMeta, NoOpCliktCommand); | ||
setMetadataFor(Convert_0, 'Convert', classMeta, CommonOptions); | ||
setMetadataFor(Options, 'Options', classMeta, Enum); | ||
setMetadataFor(File, 'File', classMeta); | ||
@@ -162,29 +162,5 @@ setMetadataFor(JavaFile, 'JavaFile', classMeta, File); | ||
//endregion | ||
var Options_InputDir_instance; | ||
var Options_InputFile_instance; | ||
var Options_OutputDir_instance; | ||
var Options_Language_instance; | ||
var Options_PackageName_instance; | ||
var Options_Strict_instance; | ||
var Options_Debug_instance; | ||
var Options_entriesInitialized; | ||
function Options_initEntries() { | ||
if (Options_entriesInitialized) | ||
return Unit_getInstance(); | ||
Options_entriesInitialized = true; | ||
Options_InputDir_instance = new Options('InputDir', 0, ['-d', '--input-dir']); | ||
Options_InputFile_instance = new Options('InputFile', 1, ['-f', '--input-file']); | ||
Options_OutputDir_instance = new Options('OutputDir', 2, ['-o', '--output-dir']); | ||
Options_Language_instance = new Options('Language', 3, ['-l', '--language']); | ||
Options_PackageName_instance = new Options('PackageName', 4, ['-p', '--package']); | ||
Options_Strict_instance = new Options('Strict', 5, ['--strict']); | ||
Options_Debug_instance = new Options('Debug', 6, ['--debug']); | ||
} | ||
function Options(name, ordinal, flags) { | ||
Enum.call(this, name, ordinal); | ||
this.r3s_1 = flags; | ||
} | ||
function WirespecCli$main$ref($boundThis) { | ||
var l = function (p0) { | ||
$boundThis.p3g(p0); | ||
$boundThis.t3g(p0); | ||
return Unit_getInstance(); | ||
@@ -198,3 +174,3 @@ }; | ||
} | ||
protoOf(Companion).s3s = function (compile, convert) { | ||
protoOf(Companion).t3s = function (compile, convert) { | ||
return WirespecCli$main$ref(subcommands(new WirespecCli(), [new Compile_0(compile), new Convert_0(convert)])); | ||
@@ -212,86 +188,25 @@ }; | ||
} | ||
function _get_inputFile__x1bqj($this) { | ||
return $this.k3t_1.r3p($this, inputFile$factory_0()); | ||
} | ||
function CommonOptions() { | ||
CliktCommand.call(this); | ||
this.k3t_1 = option(this, Options_InputFile_getInstance().r3s_1.slice(), 'Input file').t3q(this, inputFile$factory()); | ||
this.l3t_1 = option(this, Options_InputDir_getInstance().r3s_1.slice(), 'Input directory').t3q(this, inputDir$factory()); | ||
this.m3t_1 = option(this, Options_OutputDir_getInstance().r3s_1.slice(), 'Output directory').t3q(this, outputDir$factory()); | ||
this.n3t_1 = default_0(option(this, Options_PackageName_getInstance().r3s_1.slice(), 'Package name'), get_DEFAULT_PACKAGE_NAME()).t3q(this, packageName$factory()); | ||
this.o3t_1 = flag(option(this, Options_Strict_getInstance().r3s_1.slice(), 'Strict mode'), []).t3q(this, strict$factory()); | ||
this.p3t_1 = flag(option(this, Options_Debug_getInstance().r3s_1.slice(), 'Debug mode'), []).t3q(this, debug$factory()); | ||
} | ||
protoOf(CommonOptions).q3t = function () { | ||
return this.l3t_1.r3p(this, inputDir$factory_0()); | ||
}; | ||
protoOf(CommonOptions).r3t = function () { | ||
return this.m3t_1.r3p(this, outputDir$factory_0()); | ||
}; | ||
protoOf(CommonOptions).s3t = function () { | ||
return this.n3t_1.r3p(this, packageName$factory_0()); | ||
}; | ||
protoOf(CommonOptions).t3t = function () { | ||
return this.o3t_1.r3p(this, strict$factory_0()); | ||
}; | ||
protoOf(CommonOptions).u3t = function () { | ||
return this.p3t_1.r3p(this, debug$factory_0()); | ||
}; | ||
protoOf(CommonOptions).v3t = function (inputDir) { | ||
var tmp; | ||
if (!(inputDir == null) ? !(_get_inputFile__x1bqj(this) == null) : false) { | ||
throw IllegalStateException_init_$Create$('Choose either a file or a directory. Not Both.'); | ||
} else { | ||
var tmp0_safe_receiver = _get_inputFile__x1bqj(this); | ||
var tmp_0; | ||
if (tmp0_safe_receiver == null) { | ||
tmp_0 = null; | ||
} else { | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
tmp_0 = Companion_getInstance().a22(tmp0_safe_receiver); | ||
} | ||
var tmp2_elvis_lhs = tmp_0; | ||
var tmp_1; | ||
if (tmp2_elvis_lhs == null) { | ||
var tmp_2; | ||
if (inputDir == null) { | ||
tmp_2 = null; | ||
} else { | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
tmp_2 = new FullDirPath(inputDir); | ||
} | ||
tmp_1 = tmp_2; | ||
} else { | ||
tmp_1 = tmp2_elvis_lhs; | ||
} | ||
var tmp3_elvis_lhs = tmp_1; | ||
tmp = tmp3_elvis_lhs == null ? Console_getInstance() : tmp3_elvis_lhs; | ||
} | ||
return tmp; | ||
}; | ||
function _get_languages__ojonze($this) { | ||
return $this.u3u_1.r3p($this, languages$factory_0()); | ||
return $this.s3t_1.v3p($this, languages$factory_0()); | ||
} | ||
function Compile_0(block) { | ||
CommonOptions.call(this); | ||
this.t3u_1 = block; | ||
this.u3u_1 = multiple(choice(option(this, Options_Language_getInstance().r3s_1.slice(), 'Language'), Companion_getInstance_0().k22()), VOID, true).t3q(this, languages$factory()); | ||
this.r3t_1 = block; | ||
this.s3t_1 = multiple(choice(option(this, Options_Language_getInstance().v3t_1.slice(), 'Language'), Companion_getInstance().k22()), VOID, true).x3q(this, languages$factory()); | ||
} | ||
protoOf(Compile_0).q3g = function () { | ||
protoOf(Compile_0).u3g = function () { | ||
// Inline function 'kotlin.let' call | ||
var tmp0_let = new CompilerArguments(Compile_getInstance(), this.v3t(this.q3t()), this.r3t(), toSet(_get_languages__ojonze(this)), this.s3t(), this.t3t(), this.u3t()); | ||
var tmp0_let = new CompilerArguments(Compile_getInstance(), this.u3u(this.t3u()), this.v3u(), toSet(_get_languages__ojonze(this)), this.w3u(), this.x3u(), this.y3u()); | ||
// Inline function 'kotlin.contracts.contract' call | ||
this.t3u_1(tmp0_let); | ||
this.r3t_1(tmp0_let); | ||
}; | ||
function _get_format__qlarck($this) { | ||
return $this.t3v_1.r3p($this, format$factory_0()); | ||
return $this.x3v_1.v3p($this, format$factory_0()); | ||
} | ||
function _get_languages__ojonze_0($this) { | ||
return $this.u3v_1.r3p($this, languages$factory_2()); | ||
return $this.y3v_1.v3p($this, languages$factory_2()); | ||
} | ||
function Convert_0(block) { | ||
CommonOptions.call(this); | ||
this.s3v_1 = block; | ||
this.w3v_1 = block; | ||
var tmp = this; | ||
@@ -317,7 +232,7 @@ // Inline function 'com.github.ajalt.clikt.parameters.types.enum' call | ||
} | ||
tmp.t3v_1 = choice_0(tmp0_enum, tmp0_associateByTo, true).x3o(this, format$factory()); | ||
this.u3v_1 = multiple(choice(option(this, Options_Language_getInstance().r3s_1.slice(), 'Language'), Companion_getInstance_0().k22(), VOID, true), listOf(Spec_Wirespec_getInstance())).t3q(this, languages$factory_1()); | ||
tmp.x3v_1 = choice_0(tmp0_enum, tmp0_associateByTo, true).b3p(this, format$factory()); | ||
this.y3v_1 = multiple(choice(option(this, Options_Language_getInstance().v3t_1.slice(), 'Language'), Companion_getInstance().k22(), VOID, true), listOf(Spec_Wirespec_getInstance())).x3q(this, languages$factory_1()); | ||
} | ||
protoOf(Convert_0).q3g = function () { | ||
if (this.q3t() == null) | ||
protoOf(Convert_0).u3g = function () { | ||
if (this.t3u() == null) | ||
null; | ||
@@ -327,8 +242,8 @@ else { | ||
// Inline function 'kotlin.contracts.contract' call | ||
this.j3g('To convert, please specify a file', VOID, true); | ||
this.n3g('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.v3t(null); | ||
var tmp_1 = this.r3t(); | ||
var tmp_0 = this.u3u(null); | ||
var tmp_1 = this.v3u(); | ||
var tmp$ret$2; | ||
@@ -345,6 +260,91 @@ // Inline function 'kotlin.collections.ifEmpty' call | ||
tmp$ret$2 = tmp_2; | ||
var tmp1_let = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, this.s3t(), this.t3t(), this.u3t()); | ||
var tmp1_let = new CompilerArguments(tmp, tmp_0, tmp_1, tmp$ret$2, this.w3u(), this.x3u(), this.y3u()); | ||
// Inline function 'kotlin.contracts.contract' call | ||
this.s3v_1(tmp1_let); | ||
this.w3v_1(tmp1_let); | ||
}; | ||
function _get_inputFile__x1bqj($this) { | ||
return $this.n3u_1.v3p($this, inputFile$factory_0()); | ||
} | ||
function CommonOptions() { | ||
CliktCommand.call(this); | ||
this.n3u_1 = option(this, Options_InputFile_getInstance().v3t_1.slice(), 'Input file').x3q(this, inputFile$factory()); | ||
this.o3u_1 = option(this, Options_InputDir_getInstance().v3t_1.slice(), 'Input directory').x3q(this, inputDir$factory()); | ||
this.p3u_1 = option(this, Options_OutputDir_getInstance().v3t_1.slice(), 'Output directory').x3q(this, outputDir$factory()); | ||
this.q3u_1 = default_0(option(this, Options_PackageName_getInstance().v3t_1.slice(), 'Package name'), get_DEFAULT_PACKAGE_NAME()).x3q(this, packageName$factory()); | ||
this.r3u_1 = flag(option(this, Options_Strict_getInstance().v3t_1.slice(), 'Strict mode'), []).x3q(this, strict$factory()); | ||
this.s3u_1 = flag(option(this, Options_Debug_getInstance().v3t_1.slice(), 'Debug mode'), []).x3q(this, debug$factory()); | ||
} | ||
protoOf(CommonOptions).t3u = function () { | ||
return this.o3u_1.v3p(this, inputDir$factory_0()); | ||
}; | ||
protoOf(CommonOptions).v3u = function () { | ||
return this.p3u_1.v3p(this, outputDir$factory_0()); | ||
}; | ||
protoOf(CommonOptions).w3u = function () { | ||
return this.q3u_1.v3p(this, packageName$factory_0()); | ||
}; | ||
protoOf(CommonOptions).x3u = function () { | ||
return this.r3u_1.v3p(this, strict$factory_0()); | ||
}; | ||
protoOf(CommonOptions).y3u = function () { | ||
return this.s3u_1.v3p(this, debug$factory_0()); | ||
}; | ||
protoOf(CommonOptions).u3u = function (inputDir) { | ||
var tmp; | ||
if (!(inputDir == null) ? !(_get_inputFile__x1bqj(this) == null) : false) { | ||
throw IllegalStateException_init_$Create$('Choose either a file or a directory. Not Both.'); | ||
} else { | ||
var tmp0_safe_receiver = _get_inputFile__x1bqj(this); | ||
var tmp_0; | ||
if (tmp0_safe_receiver == null) { | ||
tmp_0 = null; | ||
} else { | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
tmp_0 = Companion_getInstance_0().a22(tmp0_safe_receiver); | ||
} | ||
var tmp2_elvis_lhs = tmp_0; | ||
var tmp_1; | ||
if (tmp2_elvis_lhs == null) { | ||
var tmp_2; | ||
if (inputDir == null) { | ||
tmp_2 = null; | ||
} else { | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
tmp_2 = new FullDirPath(inputDir); | ||
} | ||
tmp_1 = tmp_2; | ||
} else { | ||
tmp_1 = tmp2_elvis_lhs; | ||
} | ||
var tmp3_elvis_lhs = tmp_1; | ||
tmp = tmp3_elvis_lhs == null ? Console_getInstance() : tmp3_elvis_lhs; | ||
} | ||
return tmp; | ||
}; | ||
var Options_InputDir_instance; | ||
var Options_InputFile_instance; | ||
var Options_OutputDir_instance; | ||
var Options_Language_instance; | ||
var Options_PackageName_instance; | ||
var Options_Strict_instance; | ||
var Options_Debug_instance; | ||
var Options_entriesInitialized; | ||
function Options_initEntries() { | ||
if (Options_entriesInitialized) | ||
return Unit_getInstance(); | ||
Options_entriesInitialized = true; | ||
Options_InputDir_instance = new Options('InputDir', 0, ['-d', '--input-dir']); | ||
Options_InputFile_instance = new Options('InputFile', 1, ['-f', '--input-file']); | ||
Options_OutputDir_instance = new Options('OutputDir', 2, ['-o', '--output-dir']); | ||
Options_Language_instance = new Options('Language', 3, ['-l', '--language']); | ||
Options_PackageName_instance = new Options('PackageName', 4, ['-p', '--package']); | ||
Options_Strict_instance = new Options('Strict', 5, ['--strict']); | ||
Options_Debug_instance = new Options('Debug', 6, ['--debug']); | ||
} | ||
function Options(name, ordinal, flags) { | ||
Enum.call(this, name, ordinal); | ||
this.v3t_1 = flags; | ||
} | ||
function Options_InputDir_getInstance() { | ||
@@ -378,2 +378,32 @@ Options_initEntries(); | ||
} | ||
function languages$factory() { | ||
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) { | ||
return _get_languages__ojonze(receiver); | ||
}, null); | ||
} | ||
function languages$factory_0() { | ||
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) { | ||
return _get_languages__ojonze(receiver); | ||
}, null); | ||
} | ||
function format$factory() { | ||
return getPropertyCallableRef('format', 1, KProperty1, function (receiver) { | ||
return _get_format__qlarck(receiver); | ||
}, null); | ||
} | ||
function languages$factory_1() { | ||
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) { | ||
return _get_languages__ojonze_0(receiver); | ||
}, null); | ||
} | ||
function format$factory_0() { | ||
return getPropertyCallableRef('format', 1, KProperty1, function (receiver) { | ||
return _get_format__qlarck(receiver); | ||
}, null); | ||
} | ||
function languages$factory_2() { | ||
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) { | ||
return _get_languages__ojonze_0(receiver); | ||
}, null); | ||
} | ||
function inputFile$factory() { | ||
@@ -386,3 +416,3 @@ return getPropertyCallableRef('inputFile', 1, KProperty1, function (receiver) { | ||
return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) { | ||
return receiver.q3t(); | ||
return receiver.t3u(); | ||
}, null); | ||
@@ -392,3 +422,3 @@ } | ||
return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) { | ||
return receiver.r3t(); | ||
return receiver.v3u(); | ||
}, null); | ||
@@ -398,3 +428,3 @@ } | ||
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) { | ||
return receiver.s3t(); | ||
return receiver.w3u(); | ||
}, null); | ||
@@ -404,3 +434,3 @@ } | ||
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) { | ||
return receiver.t3t(); | ||
return receiver.x3u(); | ||
}, null); | ||
@@ -410,3 +440,3 @@ } | ||
return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) { | ||
return receiver.u3t(); | ||
return receiver.y3u(); | ||
}, null); | ||
@@ -421,3 +451,3 @@ } | ||
return getPropertyCallableRef('inputDir', 1, KProperty1, function (receiver) { | ||
return receiver.q3t(); | ||
return receiver.t3u(); | ||
}, null); | ||
@@ -427,3 +457,3 @@ } | ||
return getPropertyCallableRef('outputDir', 1, KProperty1, function (receiver) { | ||
return receiver.r3t(); | ||
return receiver.v3u(); | ||
}, null); | ||
@@ -433,3 +463,3 @@ } | ||
return getPropertyCallableRef('packageName', 1, KProperty1, function (receiver) { | ||
return receiver.s3t(); | ||
return receiver.w3u(); | ||
}, null); | ||
@@ -439,3 +469,3 @@ } | ||
return getPropertyCallableRef('strict', 1, KProperty1, function (receiver) { | ||
return receiver.t3t(); | ||
return receiver.x3u(); | ||
}, null); | ||
@@ -445,35 +475,5 @@ } | ||
return getPropertyCallableRef('debug', 1, KProperty1, function (receiver) { | ||
return receiver.u3t(); | ||
return receiver.y3u(); | ||
}, null); | ||
} | ||
function languages$factory() { | ||
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) { | ||
return _get_languages__ojonze(receiver); | ||
}, null); | ||
} | ||
function languages$factory_0() { | ||
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) { | ||
return _get_languages__ojonze(receiver); | ||
}, null); | ||
} | ||
function format$factory() { | ||
return getPropertyCallableRef('format', 1, KProperty1, function (receiver) { | ||
return _get_format__qlarck(receiver); | ||
}, null); | ||
} | ||
function languages$factory_1() { | ||
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) { | ||
return _get_languages__ojonze_0(receiver); | ||
}, null); | ||
} | ||
function format$factory_0() { | ||
return getPropertyCallableRef('format', 1, KProperty1, function (receiver) { | ||
return _get_format__qlarck(receiver); | ||
}, null); | ||
} | ||
function languages$factory_2() { | ||
return getPropertyCallableRef('languages', 1, KProperty1, function (receiver) { | ||
return _get_languages__ojonze_0(receiver); | ||
}, null); | ||
} | ||
function main(args) { | ||
@@ -508,7 +508,4 @@ // Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
tmp.s3s(tmp_0, convert$ref())(tmp2_let); | ||
tmp.t3s(tmp_0, convert$ref())(tmp2_let); | ||
} | ||
function convert(arguments_0) { | ||
return compile_0(arguments_0); | ||
} | ||
function compile_0(arguments_0) { | ||
@@ -599,7 +596,7 @@ var input = arguments_0.t21_1; | ||
// Inline function 'kotlin.collections.forEach' call | ||
var tmp0_iterator_1 = (new Directory(input.j22_1)).x3v().c(); | ||
var tmp0_iterator_1 = (new Directory(input.j22_1)).b3w().c(); | ||
while (tmp0_iterator_1.d()) { | ||
var element = tmp0_iterator_1.e(); | ||
// Inline function 'community.flock.wirespec.plugin.cli.compile.<anonymous>' call | ||
wirespec(element, languages, packageName, out(element.v3v_1, packageName, output), logger); | ||
wirespec(element, languages, packageName, out(element.z3v_1, packageName, output), logger); | ||
} | ||
@@ -612,3 +609,3 @@ } else { | ||
// Inline function 'kotlin.contracts.contract' call | ||
wirespec(tmp3_let, languages, packageName, out(tmp3_let.v3v_1, packageName, output), logger); | ||
wirespec(tmp3_let, languages, packageName, out(tmp3_let.z3v_1, packageName, output), logger); | ||
} else { | ||
@@ -624,70 +621,27 @@ // Inline function 'kotlin.error' call | ||
} | ||
function wirespec(_this__u8e3s4, languages, packageName, path, logger) { | ||
// Inline function 'kotlin.collections.map' call | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.let' call | ||
var tmp0_let = _this__u8e3s4.q11(); | ||
var tmp1_let_this = Wirespec_getInstance(); | ||
// Inline function 'kotlin.contracts.contract' call | ||
var tmp2_let = compile(tmp1_let_this, tmp0_let)(logger); | ||
// Inline function 'kotlin.contracts.contract' call | ||
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>' call | ||
// Inline function 'kotlin.collections.map' call | ||
var tmp0_map = emitters(languages, packageName, path, logger); | ||
// Inline function 'kotlin.collections.mapTo' call | ||
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10)); | ||
var tmp0_iterator = tmp0_map.c(); | ||
function convert(arguments_0) { | ||
return compile_0(arguments_0); | ||
} | ||
function out(_this__u8e3s4, packageName, output) { | ||
return out$lambda(output, _this__u8e3s4, packageName); | ||
} | ||
function write(output, file) { | ||
// Inline function 'kotlin.collections.forEach' call | ||
var tmp0_iterator = output.c(); | ||
while (tmp0_iterator.d()) { | ||
var item = tmp0_iterator.e(); | ||
var tmp$ret$6; | ||
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>' call | ||
var emitter = item.e3(); | ||
var file = item.f3(); | ||
var results = tmp2_let(emitter); | ||
var element = tmp0_iterator.e(); | ||
// Inline function 'community.flock.wirespec.plugin.cli.write.<anonymous>' call | ||
var name = element.e3(); | ||
var result = element.f3(); | ||
var tmp1_safe_receiver = file == null ? null : file.n24(name); | ||
var tmp; | ||
if (!emitter.i1w()) { | ||
var tmp$ret$5; | ||
// Inline function 'arrow.core.Either.map' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
// Inline function 'arrow.core.flatMap' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var tmp_0; | ||
if (results instanceof Right) { | ||
// Inline function 'arrow.core.Either.map.<anonymous>' call | ||
var tmp0_anonymous = results.x1p_1; | ||
var tmp$ret$2; | ||
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>.<anonymous>' call | ||
tmp$ret$2 = listOf(new Emitted(Companion_getInstance_3().z1r(path(FileExtension_Wirespec_getInstance()).f22_1), first(tmp0_anonymous).p1s_1)); | ||
tmp_0 = new Right(tmp$ret$2); | ||
} else { | ||
if (results instanceof Left) { | ||
tmp_0 = results; | ||
} else { | ||
noWhenBranchMatchedException(); | ||
} | ||
} | ||
tmp$ret$5 = tmp_0; | ||
tmp = to(tmp$ret$5, file); | ||
if (tmp1_safe_receiver == null) { | ||
tmp = null; | ||
} else { | ||
tmp = to(results, file); | ||
tmp1_safe_receiver.c3w(result); | ||
tmp = Unit_getInstance(); | ||
} | ||
tmp$ret$6 = tmp; | ||
tmp0_mapTo.a(tmp$ret$6); | ||
} | ||
// Inline function 'kotlin.collections.mapTo' call | ||
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_mapTo, 10)); | ||
var tmp0_iterator_0 = tmp0_mapTo.c(); | ||
while (tmp0_iterator_0.d()) { | ||
var item_0 = tmp0_iterator_0.e(); | ||
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>' call | ||
var results_0 = item_0.e3(); | ||
var file_0 = item_0.f3(); | ||
if (results_0 instanceof Right) { | ||
write(results_0.x1p_1, file_0); | ||
} else { | ||
if (results_0 instanceof Left) { | ||
println(results_0.r1p_1); | ||
} | ||
if (tmp == null) { | ||
print(result); | ||
} | ||
tmp0_mapTo_0.a(Unit_getInstance()); | ||
} | ||
@@ -773,26 +727,72 @@ } | ||
} | ||
function write(output, file) { | ||
// Inline function 'kotlin.collections.forEach' call | ||
var tmp0_iterator = output.c(); | ||
function wirespec(_this__u8e3s4, languages, packageName, path, logger) { | ||
// Inline function 'kotlin.collections.map' call | ||
// Inline function 'kotlin.let' call | ||
// Inline function 'kotlin.let' call | ||
var tmp0_let = _this__u8e3s4.q11(); | ||
var tmp1_let_this = Wirespec_getInstance(); | ||
// Inline function 'kotlin.contracts.contract' call | ||
var tmp2_let = compile(tmp1_let_this, tmp0_let)(logger); | ||
// Inline function 'kotlin.contracts.contract' call | ||
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>' call | ||
// Inline function 'kotlin.collections.map' call | ||
var tmp0_map = emitters(languages, packageName, path, logger); | ||
// Inline function 'kotlin.collections.mapTo' call | ||
var tmp0_mapTo = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_map, 10)); | ||
var tmp0_iterator = tmp0_map.c(); | ||
while (tmp0_iterator.d()) { | ||
var element = tmp0_iterator.e(); | ||
// Inline function 'community.flock.wirespec.plugin.cli.write.<anonymous>' call | ||
var name = element.e3(); | ||
var result = element.f3(); | ||
var tmp1_safe_receiver = file == null ? null : file.j24(name); | ||
var item = tmp0_iterator.e(); | ||
var tmp$ret$6; | ||
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>' call | ||
var emitter = item.e3(); | ||
var file = item.f3(); | ||
var results = tmp2_let(emitter); | ||
var tmp; | ||
if (tmp1_safe_receiver == null) { | ||
tmp = null; | ||
if (!emitter.i1w()) { | ||
var tmp$ret$5; | ||
// Inline function 'arrow.core.Either.map' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
// Inline function 'arrow.core.flatMap' call | ||
// Inline function 'kotlin.contracts.contract' call | ||
var tmp_0; | ||
if (results instanceof Right) { | ||
// Inline function 'arrow.core.Either.map.<anonymous>' call | ||
var tmp0_anonymous = results.x1p_1; | ||
var tmp$ret$2; | ||
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>.<anonymous>.<anonymous>' call | ||
tmp$ret$2 = listOf(new Emitted(Companion_getInstance_3().z1r(path(FileExtension_Wirespec_getInstance()).f22_1), first(tmp0_anonymous).p1s_1)); | ||
tmp_0 = new Right(tmp$ret$2); | ||
} else { | ||
if (results instanceof Left) { | ||
tmp_0 = results; | ||
} else { | ||
noWhenBranchMatchedException(); | ||
} | ||
} | ||
tmp$ret$5 = tmp_0; | ||
tmp = to(tmp$ret$5, file); | ||
} else { | ||
tmp1_safe_receiver.y3v(result); | ||
tmp = Unit_getInstance(); | ||
tmp = to(results, file); | ||
} | ||
if (tmp == null) { | ||
print(result); | ||
tmp$ret$6 = tmp; | ||
tmp0_mapTo.a(tmp$ret$6); | ||
} | ||
// Inline function 'kotlin.collections.mapTo' call | ||
var tmp0_mapTo_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(tmp0_mapTo, 10)); | ||
var tmp0_iterator_0 = tmp0_mapTo.c(); | ||
while (tmp0_iterator_0.d()) { | ||
var item_0 = tmp0_iterator_0.e(); | ||
// Inline function 'community.flock.wirespec.plugin.cli.wirespec.<anonymous>' call | ||
var results_0 = item_0.e3(); | ||
var file_0 = item_0.f3(); | ||
if (results_0 instanceof Right) { | ||
write(results_0.x1p_1, file_0); | ||
} else { | ||
if (results_0 instanceof Left) { | ||
println(results_0.r1p_1); | ||
} | ||
} | ||
tmp0_mapTo_0.a(Unit_getInstance()); | ||
} | ||
} | ||
function out(_this__u8e3s4, packageName, output) { | ||
return out$lambda(output, _this__u8e3s4, packageName); | ||
} | ||
function compile$ref() { | ||
@@ -842,4 +842,4 @@ var l = function (p0) { | ||
} | ||
protoOf(JavaFile).j24 = function (fileName) { | ||
return new JavaFile(this.v3v_1.i22(VOID, fileName)); | ||
protoOf(JavaFile).n24 = function (fileName) { | ||
return new JavaFile(this.z3v_1.i22(VOID, fileName)); | ||
}; | ||
@@ -849,4 +849,4 @@ function JsonFile(path) { | ||
} | ||
protoOf(JsonFile).j24 = function (fileName) { | ||
return new JsonFile(this.v3v_1.i22(VOID, fileName)); | ||
protoOf(JsonFile).n24 = function (fileName) { | ||
return new JsonFile(this.z3v_1.i22(VOID, fileName)); | ||
}; | ||
@@ -856,4 +856,4 @@ function KotlinFile(path) { | ||
} | ||
protoOf(KotlinFile).j24 = function (fileName) { | ||
return new KotlinFile(this.v3v_1.i22(VOID, fileName)); | ||
protoOf(KotlinFile).n24 = function (fileName) { | ||
return new KotlinFile(this.z3v_1.i22(VOID, fileName)); | ||
}; | ||
@@ -863,4 +863,4 @@ function ScalaFile(path) { | ||
} | ||
protoOf(ScalaFile).j24 = function (fileName) { | ||
return new ScalaFile(this.v3v_1.i22(VOID, fileName)); | ||
protoOf(ScalaFile).n24 = function (fileName) { | ||
return new ScalaFile(this.z3v_1.i22(VOID, fileName)); | ||
}; | ||
@@ -870,4 +870,4 @@ function TypeScriptFile(path) { | ||
} | ||
protoOf(TypeScriptFile).j24 = function (fileName) { | ||
return new TypeScriptFile(this.v3v_1.i22(VOID, fileName)); | ||
protoOf(TypeScriptFile).n24 = function (fileName) { | ||
return new TypeScriptFile(this.z3v_1.i22(VOID, fileName)); | ||
}; | ||
@@ -877,4 +877,4 @@ function WirespecFile(path) { | ||
} | ||
protoOf(WirespecFile).j24 = function (fileName) { | ||
return new WirespecFile(this.v3v_1.i22(VOID, fileName)); | ||
protoOf(WirespecFile).n24 = function (fileName) { | ||
return new WirespecFile(this.z3v_1.i22(VOID, fileName)); | ||
}; | ||
@@ -949,3 +949,3 @@ function cli(args) { | ||
return function (it) { | ||
return new FullFilePath(this$0.w3v_1, it); | ||
return new FullFilePath(this$0.a3w_1, it); | ||
}; | ||
@@ -961,6 +961,6 @@ } | ||
function Directory(path) { | ||
this.w3v_1 = path; | ||
this.a3w_1 = path; | ||
} | ||
protoOf(Directory).x3v = function () { | ||
var tmp = asSequence(iterator(get_fs().readdirSync(this.w3v_1, 'utf-8'))); | ||
protoOf(Directory).b3w = function () { | ||
var tmp = asSequence(iterator(get_fs().readdirSync(this.a3w_1, 'utf-8'))); | ||
var tmp_0 = map(tmp, Directory$wirespecFiles$lambda); | ||
@@ -973,11 +973,11 @@ var tmp_1 = filter(tmp_0, Directory$wirespecFiles$lambda_0); | ||
function File(path) { | ||
this.v3v_1 = path; | ||
this.z3v_1 = path; | ||
} | ||
protoOf(File).q11 = function () { | ||
// Inline function 'kotlin.js.unsafeCast' call | ||
return get_fs().readFileSync(this.v3v_1.toString(), 'utf-8'); | ||
return get_fs().readFileSync(this.z3v_1.toString(), 'utf-8'); | ||
}; | ||
protoOf(File).y3v = function (text) { | ||
protoOf(File).c3w = function (text) { | ||
// Inline function 'kotlin.run' call | ||
var tmp0_run = this.v3v_1.i22(joinToString(split_0(this.v3v_1.e22_1, ['out']), 'out/node')); | ||
var tmp0_run = this.z3v_1.i22(joinToString(split_0(this.z3v_1.e22_1, ['out']), 'out/node')); | ||
// Inline function 'kotlin.contracts.contract' call | ||
@@ -1060,5 +1060,6 @@ // Inline function 'community.flock.wirespec.plugin.cli.io.File.write.<anonymous>' call | ||
$jsExportAll$(_); | ||
kotlin_community_flock_wirespec_compiler_lib.$jsExportAll$(_); | ||
_.$jsExportAll$ = $jsExportAll$; | ||
_.$_$ = _.$_$ || {}; | ||
_.$_$.a = main; | ||
//endregion | ||
main([]); | ||
return _; | ||
@@ -1065,0 +1066,0 @@ })); |
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 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 not supported yet
Sorry, the diff of this file is not supported yet
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4714877
41
76470