git-semver-tagger 1.8.31 → 1.8.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/clikt-clikt-mordant.js +98 -98
- package/kotlin/clikt-clikt-mordant.js.map +1 -1
- package/kotlin/clikt-clikt.js +2215 -2218
- package/kotlin/clikt-clikt.js.map +1 -1
- package/kotlin/colormath-root-colormath.js +485 -485
- package/kotlin/colormath-root-colormath.js.map +1 -1
- package/kotlin/command-line-tools-tagger-cli.js +124 -124
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlin-kotlin-stdlib.js +3989 -3608
- package/kotlin/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1953 -1952
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1733 -1733
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/kotlin/mordant-mordant.js +1758 -1758
- package/kotlin/mordant-mordant.js.map +1 -1
- package/kotlin/tools-cli-tools.js +3 -3
- package/kotlin/tools-digger-core.js +8 -8
- package/kotlin/tools-git-adapter.js +120 -120
- package/kotlin/tools-git-adapter.js.map +1 -1
- package/kotlin/tools-tagger-core.js +160 -160
- package/kotlin/tools-tagger-core.js.map +1 -1
- package/kotlin/tools-tagger-json.js +138 -138
- package/package.json +1 -1
|
@@ -3,47 +3,47 @@
|
|
|
3
3
|
//region block: imports
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var log2 = Math.log2;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
8
|
-
var toString = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.da;
|
|
7
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.i9;
|
|
8
|
+
var toString = kotlin_kotlin.$_$.fa;
|
|
9
9
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a1;
|
|
10
10
|
var Unit_instance = kotlin_kotlin.$_$.v3;
|
|
11
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
12
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
13
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
14
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
11
|
+
var initMetadataForClass = kotlin_kotlin.$_$.f9;
|
|
12
|
+
var getStringHashCode = kotlin_kotlin.$_$.d9;
|
|
13
|
+
var THROW_CCE = kotlin_kotlin.$_$.be;
|
|
14
|
+
var initMetadataForObject = kotlin_kotlin.$_$.k9;
|
|
15
15
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
16
16
|
var listOf = kotlin_kotlin.$_$.g6;
|
|
17
17
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.g;
|
|
18
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
19
|
-
var charSequenceGet = kotlin_kotlin.$_$.
|
|
18
|
+
var charSequenceLength = kotlin_kotlin.$_$.w8;
|
|
19
|
+
var charSequenceGet = kotlin_kotlin.$_$.v8;
|
|
20
20
|
var toString_0 = kotlin_kotlin.$_$.n1;
|
|
21
21
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.k1;
|
|
22
|
-
var withSign = kotlin_kotlin.$_$.
|
|
23
|
-
var trimMargin = kotlin_kotlin.$_$.
|
|
24
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
25
|
-
var equals = kotlin_kotlin.$_$.
|
|
22
|
+
var withSign = kotlin_kotlin.$_$.ha;
|
|
23
|
+
var trimMargin = kotlin_kotlin.$_$.id;
|
|
24
|
+
var hashCode = kotlin_kotlin.$_$.e9;
|
|
25
|
+
var equals = kotlin_kotlin.$_$.z8;
|
|
26
26
|
var VOID = kotlin_kotlin.$_$.c;
|
|
27
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
28
|
-
var coerceAtLeast = kotlin_kotlin.$_$.
|
|
29
|
-
var getNumberHashCode = kotlin_kotlin.$_$.
|
|
30
|
-
var roundToInt = kotlin_kotlin.$_$.
|
|
31
|
-
var coerceIn = kotlin_kotlin.$_$.
|
|
32
|
-
var numberToDouble = kotlin_kotlin.$_$.
|
|
33
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
34
|
-
var Char = kotlin_kotlin.$_$.
|
|
35
|
-
var toInt = kotlin_kotlin.$_$.
|
|
36
|
-
var numberRangeToNumber = kotlin_kotlin.$_$.
|
|
37
|
-
var slice = kotlin_kotlin.$_$.
|
|
38
|
-
var startsWith = kotlin_kotlin.$_$.
|
|
39
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
27
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.g9;
|
|
28
|
+
var coerceAtLeast = kotlin_kotlin.$_$.ja;
|
|
29
|
+
var getNumberHashCode = kotlin_kotlin.$_$.b9;
|
|
30
|
+
var roundToInt = kotlin_kotlin.$_$.ga;
|
|
31
|
+
var coerceIn = kotlin_kotlin.$_$.na;
|
|
32
|
+
var numberToDouble = kotlin_kotlin.$_$.aa;
|
|
33
|
+
var charCodeAt = kotlin_kotlin.$_$.u8;
|
|
34
|
+
var Char = kotlin_kotlin.$_$.od;
|
|
35
|
+
var toInt = kotlin_kotlin.$_$.ad;
|
|
36
|
+
var numberRangeToNumber = kotlin_kotlin.$_$.y9;
|
|
37
|
+
var slice = kotlin_kotlin.$_$.lc;
|
|
38
|
+
var startsWith = kotlin_kotlin.$_$.nc;
|
|
39
|
+
var isInterface = kotlin_kotlin.$_$.t9;
|
|
40
40
|
var contentEquals = kotlin_kotlin.$_$.w4;
|
|
41
|
-
var coerceAtLeast_0 = kotlin_kotlin.$_$.
|
|
42
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
41
|
+
var coerceAtLeast_0 = kotlin_kotlin.$_$.la;
|
|
42
|
+
var objectCreate = kotlin_kotlin.$_$.ca;
|
|
43
43
|
//endregion
|
|
44
44
|
//region block: pre-declaration
|
|
45
45
|
function toXYZ() {
|
|
46
|
-
return this.
|
|
46
|
+
return this.n1r().o1r();
|
|
47
47
|
}
|
|
48
48
|
initMetadataForInterface(Color, 'Color');
|
|
49
49
|
initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
|
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
initMetadataForObject(PqNonlinearity, 'PqNonlinearity');
|
|
62
62
|
function invoke$default(r, g, b, alpha, $super) {
|
|
63
63
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
64
|
-
return $super === VOID ? this.
|
|
64
|
+
return $super === VOID ? this.z1s(r, g, b, alpha) : $super.z1s.call(this, r, g, b, alpha);
|
|
65
65
|
}
|
|
66
66
|
function invoke(r, g, b, alpha) {
|
|
67
|
-
return this.
|
|
67
|
+
return this.z1s(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
|
|
68
68
|
}
|
|
69
69
|
function invoke$default_0(r, g, b, alpha, $super) {
|
|
70
70
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
71
|
-
return $super === VOID ? this.
|
|
71
|
+
return $super === VOID ? this.d1u(r, g, b, alpha) : invoke(r, g, b, alpha);
|
|
72
72
|
}
|
|
73
73
|
function from255(r, g, b, alpha) {
|
|
74
|
-
return this.
|
|
74
|
+
return this.z1s(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
|
|
75
75
|
}
|
|
76
76
|
function from255$default(r, g, b, alpha, $super) {
|
|
77
77
|
alpha = alpha === VOID ? 255 : alpha;
|
|
78
|
-
return $super === VOID ? this.
|
|
78
|
+
return $super === VOID ? this.f1u(r, g, b, alpha) : from255(r, g, b, alpha);
|
|
79
79
|
}
|
|
80
80
|
function invoke_0(hex) {
|
|
81
81
|
var tmp = parseHex(validateHex(hex), 0);
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
} else {
|
|
90
90
|
tmp_2 = 255;
|
|
91
91
|
}
|
|
92
|
-
return this.
|
|
92
|
+
return this.f1u(tmp, tmp_0, tmp_1, tmp_2);
|
|
93
93
|
}
|
|
94
94
|
initMetadataForInterface(RGBColorSpace, 'RGBColorSpace');
|
|
95
95
|
initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
|
|
@@ -115,26 +115,26 @@
|
|
|
115
115
|
function Color() {
|
|
116
116
|
}
|
|
117
117
|
function ColorComponentInfo(name, isPolar, min, max) {
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
121
|
-
this.
|
|
118
|
+
this.u1r_1 = name;
|
|
119
|
+
this.v1r_1 = isPolar;
|
|
120
|
+
this.w1r_1 = min;
|
|
121
|
+
this.x1r_1 = max;
|
|
122
122
|
// Inline function 'kotlin.require' call
|
|
123
|
-
if (!(this.
|
|
123
|
+
if (!(this.w1r_1 <= this.x1r_1)) {
|
|
124
124
|
var message = 'min must be less than or equal to max';
|
|
125
125
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
function WhitePoint(name, chromaticity) {
|
|
129
|
-
this.
|
|
130
|
-
this.
|
|
129
|
+
this.y1r_1 = name;
|
|
130
|
+
this.z1r_1 = chromaticity;
|
|
131
131
|
}
|
|
132
132
|
protoOf(WhitePoint).toString = function () {
|
|
133
|
-
return this.
|
|
133
|
+
return this.y1r_1;
|
|
134
134
|
};
|
|
135
135
|
protoOf(WhitePoint).hashCode = function () {
|
|
136
|
-
var result = getStringHashCode(this.
|
|
137
|
-
result = imul(result, 31) + this.
|
|
136
|
+
var result = getStringHashCode(this.y1r_1);
|
|
137
|
+
result = imul(result, 31) + this.z1r_1.hashCode() | 0;
|
|
138
138
|
return result;
|
|
139
139
|
};
|
|
140
140
|
protoOf(WhitePoint).equals = function (other) {
|
|
@@ -143,22 +143,22 @@
|
|
|
143
143
|
if (!(other instanceof WhitePoint))
|
|
144
144
|
return false;
|
|
145
145
|
var tmp0_other_with_cast = other instanceof WhitePoint ? other : THROW_CCE();
|
|
146
|
-
if (!(this.
|
|
146
|
+
if (!(this.y1r_1 === tmp0_other_with_cast.y1r_1))
|
|
147
147
|
return false;
|
|
148
|
-
if (!this.
|
|
148
|
+
if (!this.z1r_1.equals(tmp0_other_with_cast.z1r_1))
|
|
149
149
|
return false;
|
|
150
150
|
return true;
|
|
151
151
|
};
|
|
152
152
|
function Illuminant() {
|
|
153
153
|
Illuminant_instance = this;
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
160
|
-
this.
|
|
161
|
-
this.
|
|
154
|
+
this.a1s_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
|
|
155
|
+
this.b1s_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
|
|
156
|
+
this.c1s_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
|
|
157
|
+
this.d1s_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
|
|
158
|
+
this.e1s_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
|
|
159
|
+
this.f1s_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
|
|
160
|
+
this.g1s_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
|
|
161
|
+
this.h1s_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
|
|
162
162
|
}
|
|
163
163
|
var Illuminant_instance;
|
|
164
164
|
function Illuminant_getInstance() {
|
|
@@ -187,10 +187,10 @@
|
|
|
187
187
|
var item = charSequenceGet(name, inductionVariable);
|
|
188
188
|
inductionVariable = inductionVariable + 1 | 0;
|
|
189
189
|
var tmp$ret$0 = new ColorComponentInfo(toString_0(item), false, 0.0, 1.0);
|
|
190
|
-
this_0.
|
|
190
|
+
this_0.x(tmp$ret$0);
|
|
191
191
|
}
|
|
192
|
-
this_0.
|
|
193
|
-
return this_0.
|
|
192
|
+
this_0.x(get_alphaInfo());
|
|
193
|
+
return this_0.h5();
|
|
194
194
|
}
|
|
195
195
|
function polarComponentInfo(name, l, r) {
|
|
196
196
|
_init_properties_ColorSpaceUtils_kt__cnwylg();
|
|
@@ -204,10 +204,10 @@
|
|
|
204
204
|
var item = charSequenceGet(name, inductionVariable);
|
|
205
205
|
inductionVariable = inductionVariable + 1 | 0;
|
|
206
206
|
var tmp$ret$0 = new ColorComponentInfo(toString_0(item), item === _Char___init__impl__6a9atx(72), item === _Char___init__impl__6a9atx(72) ? 0.0 : l, item === _Char___init__impl__6a9atx(72) ? 360.0 : r);
|
|
207
|
-
this_0.
|
|
207
|
+
this_0.x(tmp$ret$0);
|
|
208
208
|
}
|
|
209
|
-
this_0.
|
|
210
|
-
return this_0.
|
|
209
|
+
this_0.x(get_alphaInfo());
|
|
210
|
+
return this_0.h5();
|
|
211
211
|
}
|
|
212
212
|
var properties_initialized_ColorSpaceUtils_kt_kskdoe;
|
|
213
213
|
function _init_properties_ColorSpaceUtils_kt__cnwylg() {
|
|
@@ -285,22 +285,22 @@
|
|
|
285
285
|
function Matrix__equals_impl_g5p8p9($this, other) {
|
|
286
286
|
if (!(other instanceof Matrix))
|
|
287
287
|
return false;
|
|
288
|
-
var tmp0_other_with_cast = other instanceof Matrix ? other.
|
|
288
|
+
var tmp0_other_with_cast = other instanceof Matrix ? other.i1s_1 : THROW_CCE();
|
|
289
289
|
if (!equals($this, tmp0_other_with_cast))
|
|
290
290
|
return false;
|
|
291
291
|
return true;
|
|
292
292
|
}
|
|
293
293
|
function Matrix(rowMajor) {
|
|
294
|
-
this.
|
|
294
|
+
this.i1s_1 = rowMajor;
|
|
295
295
|
}
|
|
296
296
|
protoOf(Matrix).toString = function () {
|
|
297
|
-
return Matrix__toString_impl_l0abk0(this.
|
|
297
|
+
return Matrix__toString_impl_l0abk0(this.i1s_1);
|
|
298
298
|
};
|
|
299
299
|
protoOf(Matrix).hashCode = function () {
|
|
300
|
-
return Matrix__hashCode_impl_s9ntm9(this.
|
|
300
|
+
return Matrix__hashCode_impl_s9ntm9(this.i1s_1);
|
|
301
301
|
};
|
|
302
302
|
protoOf(Matrix).equals = function (other) {
|
|
303
|
-
return Matrix__equals_impl_g5p8p9(this.
|
|
303
|
+
return Matrix__equals_impl_g5p8p9(this.i1s_1, other);
|
|
304
304
|
};
|
|
305
305
|
function inverse(_this__u8e3s4, inPlace) {
|
|
306
306
|
inPlace = inPlace === VOID ? false : inPlace;
|
|
@@ -378,22 +378,22 @@
|
|
|
378
378
|
function Vector__equals_impl_hy6igl($this, other) {
|
|
379
379
|
if (!(other instanceof Vector))
|
|
380
380
|
return false;
|
|
381
|
-
var tmp0_other_with_cast = other instanceof Vector ? other.
|
|
381
|
+
var tmp0_other_with_cast = other instanceof Vector ? other.j1s_1 : THROW_CCE();
|
|
382
382
|
if (!equals($this, tmp0_other_with_cast))
|
|
383
383
|
return false;
|
|
384
384
|
return true;
|
|
385
385
|
}
|
|
386
386
|
function Vector(values) {
|
|
387
|
-
this.
|
|
387
|
+
this.j1s_1 = values;
|
|
388
388
|
}
|
|
389
389
|
protoOf(Vector).toString = function () {
|
|
390
|
-
return Vector__toString_impl_hn2ybi(this.
|
|
390
|
+
return Vector__toString_impl_hn2ybi(this.j1s_1);
|
|
391
391
|
};
|
|
392
392
|
protoOf(Vector).hashCode = function () {
|
|
393
|
-
return Vector__hashCode_impl_442yhd(this.
|
|
393
|
+
return Vector__hashCode_impl_442yhd(this.j1s_1);
|
|
394
394
|
};
|
|
395
395
|
protoOf(Vector).equals = function (other) {
|
|
396
|
-
return Vector__equals_impl_hy6igl(this.
|
|
396
|
+
return Vector__equals_impl_hy6igl(this.j1s_1, other);
|
|
397
397
|
};
|
|
398
398
|
function dot_0(_this__u8e3s4, v0, v1, v2) {
|
|
399
399
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
@@ -407,13 +407,13 @@
|
|
|
407
407
|
}
|
|
408
408
|
function Companion() {
|
|
409
409
|
Companion_instance = this;
|
|
410
|
-
this.
|
|
410
|
+
this.k1s_1 = componentInfoList([new ColorComponentInfo('code', false, 30.0, 107.0)]);
|
|
411
411
|
}
|
|
412
|
-
protoOf(Companion).
|
|
412
|
+
protoOf(Companion).m = function () {
|
|
413
413
|
return 'Ansi16';
|
|
414
414
|
};
|
|
415
|
-
protoOf(Companion).
|
|
416
|
-
return this.
|
|
415
|
+
protoOf(Companion).l1s = function () {
|
|
416
|
+
return this.k1s_1;
|
|
417
417
|
};
|
|
418
418
|
var Companion_instance;
|
|
419
419
|
function Companion_getInstance() {
|
|
@@ -423,38 +423,38 @@
|
|
|
423
423
|
}
|
|
424
424
|
function Ansi16(code) {
|
|
425
425
|
Companion_getInstance();
|
|
426
|
-
this.
|
|
426
|
+
this.m1s_1 = code;
|
|
427
427
|
}
|
|
428
|
-
protoOf(Ansi16).
|
|
428
|
+
protoOf(Ansi16).m1r = function () {
|
|
429
429
|
return Companion_getInstance();
|
|
430
430
|
};
|
|
431
|
-
protoOf(Ansi16).
|
|
432
|
-
switch (this.
|
|
431
|
+
protoOf(Ansi16).n1r = function () {
|
|
432
|
+
switch (this.m1s_1) {
|
|
433
433
|
case 30:
|
|
434
434
|
case 40:
|
|
435
|
-
return Companion_getInstance_2().
|
|
435
|
+
return Companion_getInstance_2().n1s(0.0, 0.0, 0.0);
|
|
436
436
|
case 90:
|
|
437
437
|
case 100:
|
|
438
|
-
return Companion_getInstance_2().
|
|
438
|
+
return Companion_getInstance_2().o1s(128, 128, 128);
|
|
439
439
|
case 37:
|
|
440
440
|
case 47:
|
|
441
|
-
return Companion_getInstance_2().
|
|
441
|
+
return Companion_getInstance_2().o1s(192, 192, 192);
|
|
442
442
|
case 97:
|
|
443
443
|
case 107:
|
|
444
|
-
return Companion_getInstance_2().
|
|
444
|
+
return Companion_getInstance_2().n1s(1.0, 1.0, 1.0);
|
|
445
445
|
}
|
|
446
|
-
var color = this.
|
|
447
|
-
var mul = this.
|
|
446
|
+
var color = this.m1s_1 % 10 | 0;
|
|
447
|
+
var mul = this.m1s_1 > 50 ? 1.0 : 0.5;
|
|
448
448
|
var r = (color % 2 | 0) * mul;
|
|
449
449
|
var g = ((color / 2 | 0) % 2 | 0) * mul;
|
|
450
450
|
var b = ((color / 4 | 0) % 2 | 0) * mul;
|
|
451
|
-
return Companion_getInstance_2().
|
|
451
|
+
return Companion_getInstance_2().n1s(r, g, b);
|
|
452
452
|
};
|
|
453
453
|
protoOf(Ansi16).toString = function () {
|
|
454
|
-
return 'Ansi16(code=' + this.
|
|
454
|
+
return 'Ansi16(code=' + this.m1s_1 + ')';
|
|
455
455
|
};
|
|
456
456
|
protoOf(Ansi16).hashCode = function () {
|
|
457
|
-
return this.
|
|
457
|
+
return this.m1s_1;
|
|
458
458
|
};
|
|
459
459
|
protoOf(Ansi16).equals = function (other) {
|
|
460
460
|
if (this === other)
|
|
@@ -462,19 +462,19 @@
|
|
|
462
462
|
if (!(other instanceof Ansi16))
|
|
463
463
|
return false;
|
|
464
464
|
var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
|
|
465
|
-
if (!(this.
|
|
465
|
+
if (!(this.m1s_1 === tmp0_other_with_cast.m1s_1))
|
|
466
466
|
return false;
|
|
467
467
|
return true;
|
|
468
468
|
};
|
|
469
469
|
function Companion_0() {
|
|
470
470
|
Companion_instance_0 = this;
|
|
471
|
-
this.
|
|
471
|
+
this.p1s_1 = componentInfoList([new ColorComponentInfo('code', false, 0.0, 255.0)]);
|
|
472
472
|
}
|
|
473
|
-
protoOf(Companion_0).
|
|
473
|
+
protoOf(Companion_0).m = function () {
|
|
474
474
|
return 'Ansi256';
|
|
475
475
|
};
|
|
476
|
-
protoOf(Companion_0).
|
|
477
|
-
return this.
|
|
476
|
+
protoOf(Companion_0).l1s = function () {
|
|
477
|
+
return this.p1s_1;
|
|
478
478
|
};
|
|
479
479
|
var Companion_instance_0;
|
|
480
480
|
function Companion_getInstance_0() {
|
|
@@ -484,19 +484,19 @@
|
|
|
484
484
|
}
|
|
485
485
|
function Ansi256(code) {
|
|
486
486
|
Companion_getInstance_0();
|
|
487
|
-
this.
|
|
487
|
+
this.q1s_1 = code;
|
|
488
488
|
}
|
|
489
|
-
protoOf(Ansi256).
|
|
489
|
+
protoOf(Ansi256).m1r = function () {
|
|
490
490
|
return Companion_getInstance_0();
|
|
491
491
|
};
|
|
492
|
-
protoOf(Ansi256).
|
|
493
|
-
if (this.
|
|
494
|
-
return this.
|
|
495
|
-
if (this.
|
|
496
|
-
var c = imul(this.
|
|
497
|
-
return Companion_getInstance_2().
|
|
492
|
+
protoOf(Ansi256).n1r = function () {
|
|
493
|
+
if (this.q1s_1 < 16)
|
|
494
|
+
return this.r1s().n1r();
|
|
495
|
+
if (this.q1s_1 >= 232) {
|
|
496
|
+
var c = imul(this.q1s_1 - 232 | 0, 10) + 8 | 0;
|
|
497
|
+
return Companion_getInstance_2().o1s(c, c, c);
|
|
498
498
|
}
|
|
499
|
-
var c_0 = this.
|
|
499
|
+
var c_0 = this.q1s_1 - 16 | 0;
|
|
500
500
|
var rem = c_0 % 36 | 0;
|
|
501
501
|
// Inline function 'kotlin.math.floor' call
|
|
502
502
|
var x = c_0 / 36.0;
|
|
@@ -505,16 +505,16 @@
|
|
|
505
505
|
var x_0 = rem / 6.0;
|
|
506
506
|
var g = Math.floor(x_0) / 5.0;
|
|
507
507
|
var b = (rem % 6 | 0) / 5.0;
|
|
508
|
-
return Companion_getInstance_2().
|
|
508
|
+
return Companion_getInstance_2().s1s(r, g, b);
|
|
509
509
|
};
|
|
510
|
-
protoOf(Ansi256).
|
|
511
|
-
return this.
|
|
510
|
+
protoOf(Ansi256).r1s = function () {
|
|
511
|
+
return this.q1s_1 < 8 ? new Ansi16(this.q1s_1 + 30 | 0) : this.q1s_1 < 16 ? new Ansi16((this.q1s_1 - 8 | 0) + 90 | 0) : this.n1r().r1s();
|
|
512
512
|
};
|
|
513
513
|
protoOf(Ansi256).toString = function () {
|
|
514
|
-
return 'Ansi256(code=' + this.
|
|
514
|
+
return 'Ansi256(code=' + this.q1s_1 + ')';
|
|
515
515
|
};
|
|
516
516
|
protoOf(Ansi256).hashCode = function () {
|
|
517
|
-
return this.
|
|
517
|
+
return this.q1s_1;
|
|
518
518
|
};
|
|
519
519
|
protoOf(Ansi256).equals = function (other) {
|
|
520
520
|
if (this === other)
|
|
@@ -522,19 +522,19 @@
|
|
|
522
522
|
if (!(other instanceof Ansi256))
|
|
523
523
|
return false;
|
|
524
524
|
var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
|
|
525
|
-
if (!(this.
|
|
525
|
+
if (!(this.q1s_1 === tmp0_other_with_cast.q1s_1))
|
|
526
526
|
return false;
|
|
527
527
|
return true;
|
|
528
528
|
};
|
|
529
529
|
function Companion_1() {
|
|
530
530
|
Companion_instance_1 = this;
|
|
531
|
-
this.
|
|
531
|
+
this.t1s_1 = polarComponentInfo('HSV', 0.0, 1.0);
|
|
532
532
|
}
|
|
533
|
-
protoOf(Companion_1).
|
|
533
|
+
protoOf(Companion_1).m = function () {
|
|
534
534
|
return 'HSV';
|
|
535
535
|
};
|
|
536
|
-
protoOf(Companion_1).
|
|
537
|
-
return this.
|
|
536
|
+
protoOf(Companion_1).l1s = function () {
|
|
537
|
+
return this.t1s_1;
|
|
538
538
|
};
|
|
539
539
|
var Companion_instance_1;
|
|
540
540
|
function Companion_getInstance_1() {
|
|
@@ -553,30 +553,30 @@
|
|
|
553
553
|
function HSV(h, s, v, alpha) {
|
|
554
554
|
Companion_getInstance_1();
|
|
555
555
|
alpha = alpha === VOID ? 1.0 : alpha;
|
|
556
|
-
this.
|
|
557
|
-
this.
|
|
558
|
-
this.
|
|
559
|
-
this.
|
|
556
|
+
this.u1s_1 = h;
|
|
557
|
+
this.v1s_1 = s;
|
|
558
|
+
this.w1s_1 = v;
|
|
559
|
+
this.x1s_1 = alpha;
|
|
560
560
|
}
|
|
561
|
-
protoOf(HSV).
|
|
561
|
+
protoOf(HSV).m1r = function () {
|
|
562
562
|
return Companion_getInstance_1();
|
|
563
563
|
};
|
|
564
|
-
protoOf(HSV).
|
|
565
|
-
if (this.
|
|
566
|
-
return Companion_getInstance_2().
|
|
567
|
-
var v = this.
|
|
568
|
-
var h = normalizeDeg(this.
|
|
569
|
-
var s = this.
|
|
570
|
-
return SRGB_getInstance().
|
|
564
|
+
protoOf(HSV).n1r = function () {
|
|
565
|
+
if (this.v1s_1 < 1.0E-7)
|
|
566
|
+
return Companion_getInstance_2().z1s(this.w1s_1, this.w1s_1, this.w1s_1, this.x1s_1);
|
|
567
|
+
var v = this.w1s_1;
|
|
568
|
+
var h = normalizeDeg(this.u1s_1) / 60.0;
|
|
569
|
+
var s = this.v1s_1;
|
|
570
|
+
return SRGB_getInstance().z1s(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.x1s_1);
|
|
571
571
|
};
|
|
572
572
|
protoOf(HSV).toString = function () {
|
|
573
|
-
return 'HSV(h=' + this.
|
|
573
|
+
return 'HSV(h=' + this.u1s_1 + ', s=' + this.v1s_1 + ', v=' + this.w1s_1 + ', alpha=' + this.x1s_1 + ')';
|
|
574
574
|
};
|
|
575
575
|
protoOf(HSV).hashCode = function () {
|
|
576
|
-
var result = getNumberHashCode(this.
|
|
577
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
578
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
579
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
576
|
+
var result = getNumberHashCode(this.u1s_1);
|
|
577
|
+
result = imul(result, 31) + getNumberHashCode(this.v1s_1) | 0;
|
|
578
|
+
result = imul(result, 31) + getNumberHashCode(this.w1s_1) | 0;
|
|
579
|
+
result = imul(result, 31) + getNumberHashCode(this.x1s_1) | 0;
|
|
580
580
|
return result;
|
|
581
581
|
};
|
|
582
582
|
protoOf(HSV).equals = function (other) {
|
|
@@ -585,13 +585,13 @@
|
|
|
585
585
|
if (!(other instanceof HSV))
|
|
586
586
|
return false;
|
|
587
587
|
var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
|
|
588
|
-
if (!equals(this.
|
|
588
|
+
if (!equals(this.u1s_1, tmp0_other_with_cast.u1s_1))
|
|
589
589
|
return false;
|
|
590
|
-
if (!equals(this.
|
|
590
|
+
if (!equals(this.v1s_1, tmp0_other_with_cast.v1s_1))
|
|
591
591
|
return false;
|
|
592
|
-
if (!equals(this.
|
|
592
|
+
if (!equals(this.w1s_1, tmp0_other_with_cast.w1s_1))
|
|
593
593
|
return false;
|
|
594
|
-
if (!equals(this.
|
|
594
|
+
if (!equals(this.x1s_1, tmp0_other_with_cast.x1s_1))
|
|
595
595
|
return false;
|
|
596
596
|
return true;
|
|
597
597
|
};
|
|
@@ -633,43 +633,43 @@
|
|
|
633
633
|
var ICTCP_LMS_TO_XYZ;
|
|
634
634
|
function ICtCp() {
|
|
635
635
|
}
|
|
636
|
-
protoOf(ICtCp).
|
|
637
|
-
var fo = RGBColorSpaces_getInstance().
|
|
636
|
+
protoOf(ICtCp).f1t = function () {
|
|
637
|
+
var fo = RGBColorSpaces_getInstance().n1t_1.s1t();
|
|
638
638
|
var tmp0 = get_ICTCP_ICTCP_to_LMS();
|
|
639
|
-
var tmp2 = this.
|
|
640
|
-
var tmp4 = this.
|
|
639
|
+
var tmp2 = this.b1t_1;
|
|
640
|
+
var tmp4 = this.c1t_1;
|
|
641
641
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
642
|
-
var v2 = this.
|
|
642
|
+
var v2 = this.d1t_1;
|
|
643
643
|
var tmp0_0 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
644
644
|
var tmp2_0 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
645
645
|
var s = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
646
646
|
var tmp0_1 = get_ICTCP_LMS_to_RGB();
|
|
647
|
-
var tmp2_1 = PqNonlinearity_instance.
|
|
648
|
-
var tmp4_0 = PqNonlinearity_instance.
|
|
647
|
+
var tmp2_1 = PqNonlinearity_instance.b1u(tmp0_0);
|
|
648
|
+
var tmp4_0 = PqNonlinearity_instance.b1u(tmp2_0);
|
|
649
649
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
650
|
-
var v2_0 = PqNonlinearity_instance.
|
|
650
|
+
var v2_0 = PqNonlinearity_instance.b1u(s);
|
|
651
651
|
var tmp0_2 = Matrix__get_impl_xogbpk(tmp0_1, 0, 0) * tmp2_1 + Matrix__get_impl_xogbpk(tmp0_1, 1, 0) * tmp4_0 + Matrix__get_impl_xogbpk(tmp0_1, 2, 0) * v2_0;
|
|
652
652
|
var tmp2_2 = Matrix__get_impl_xogbpk(tmp0_1, 0, 1) * tmp2_1 + Matrix__get_impl_xogbpk(tmp0_1, 1, 1) * tmp4_0 + Matrix__get_impl_xogbpk(tmp0_1, 2, 1) * v2_0;
|
|
653
653
|
var b = Matrix__get_impl_xogbpk(tmp0_1, 0, 2) * tmp2_1 + Matrix__get_impl_xogbpk(tmp0_1, 1, 2) * tmp4_0 + Matrix__get_impl_xogbpk(tmp0_1, 2, 2) * v2_0;
|
|
654
|
-
return RGBColorSpaces_getInstance().
|
|
654
|
+
return RGBColorSpaces_getInstance().n1t_1.z1s(fo.c1u(tmp0_2), fo.c1u(tmp2_2), fo.c1u(b), this.e1t_1);
|
|
655
655
|
};
|
|
656
656
|
function PqNonlinearity() {
|
|
657
|
-
this.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
660
|
-
this.
|
|
661
|
-
this.
|
|
662
|
-
this.
|
|
663
|
-
this.
|
|
664
|
-
this.
|
|
665
|
-
}
|
|
666
|
-
protoOf(PqNonlinearity).
|
|
657
|
+
this.t1t_1 = 0.1593017578125;
|
|
658
|
+
this.u1t_1 = 78.84375;
|
|
659
|
+
this.v1t_1 = 0.8359375;
|
|
660
|
+
this.w1t_1 = 18.8515625;
|
|
661
|
+
this.x1t_1 = 18.6875;
|
|
662
|
+
this.y1t_1 = 10000.0;
|
|
663
|
+
this.z1t_1 = 6.277394636015326;
|
|
664
|
+
this.a1u_1 = 0.012683313515655966;
|
|
665
|
+
}
|
|
666
|
+
protoOf(PqNonlinearity).b1u = function (x) {
|
|
667
667
|
var vp = spow(x, 0.012683313515655966);
|
|
668
668
|
var n = coerceAtLeast(vp - 0.8359375, 0.0);
|
|
669
669
|
var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
|
|
670
670
|
return 10000.0 * l;
|
|
671
671
|
};
|
|
672
|
-
protoOf(PqNonlinearity).
|
|
672
|
+
protoOf(PqNonlinearity).c1u = function (x) {
|
|
673
673
|
var yp = spow_0(x / 10000.0, 0.1593017578125);
|
|
674
674
|
return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
|
|
675
675
|
};
|
|
@@ -693,43 +693,43 @@
|
|
|
693
693
|
}
|
|
694
694
|
function Companion_2() {
|
|
695
695
|
Companion_instance_2 = this;
|
|
696
|
-
this.
|
|
696
|
+
this.y1s_1 = RGBColorSpaces_getInstance().g1t_1;
|
|
697
697
|
}
|
|
698
|
-
protoOf(Companion_2).
|
|
699
|
-
return this.
|
|
698
|
+
protoOf(Companion_2).z1s = function (r, g, b, alpha) {
|
|
699
|
+
return this.y1s_1.z1s(r, g, b, alpha);
|
|
700
700
|
};
|
|
701
|
-
protoOf(Companion_2).
|
|
702
|
-
return this.
|
|
701
|
+
protoOf(Companion_2).d1u = function (r, g, b, alpha) {
|
|
702
|
+
return this.y1s_1.d1u(r, g, b, alpha);
|
|
703
703
|
};
|
|
704
|
-
protoOf(Companion_2).
|
|
705
|
-
return this.
|
|
704
|
+
protoOf(Companion_2).e1u = function (hex) {
|
|
705
|
+
return this.y1s_1.e1u(hex);
|
|
706
706
|
};
|
|
707
|
-
protoOf(Companion_2).
|
|
708
|
-
return this.
|
|
707
|
+
protoOf(Companion_2).f1u = function (r, g, b, alpha) {
|
|
708
|
+
return this.y1s_1.f1u(r, g, b, alpha);
|
|
709
709
|
};
|
|
710
|
-
protoOf(Companion_2).
|
|
711
|
-
return this.
|
|
710
|
+
protoOf(Companion_2).s1t = function () {
|
|
711
|
+
return this.y1s_1.s1t();
|
|
712
712
|
};
|
|
713
|
-
protoOf(Companion_2).
|
|
714
|
-
return this.
|
|
713
|
+
protoOf(Companion_2).g1u = function () {
|
|
714
|
+
return this.y1s_1.g1u();
|
|
715
715
|
};
|
|
716
|
-
protoOf(Companion_2).
|
|
717
|
-
return this.
|
|
716
|
+
protoOf(Companion_2).h1u = function () {
|
|
717
|
+
return this.y1s_1.h1u();
|
|
718
718
|
};
|
|
719
|
-
protoOf(Companion_2).
|
|
720
|
-
return this.
|
|
719
|
+
protoOf(Companion_2).i1u = function () {
|
|
720
|
+
return this.y1s_1.i1u();
|
|
721
721
|
};
|
|
722
|
-
protoOf(Companion_2).
|
|
723
|
-
return this.
|
|
722
|
+
protoOf(Companion_2).m = function () {
|
|
723
|
+
return this.y1s_1.m();
|
|
724
724
|
};
|
|
725
|
-
protoOf(Companion_2).
|
|
726
|
-
return this.
|
|
725
|
+
protoOf(Companion_2).l1s = function () {
|
|
726
|
+
return this.y1s_1.l1s();
|
|
727
727
|
};
|
|
728
728
|
protoOf(Companion_2).equals = function (other) {
|
|
729
|
-
return equals(RGBColorSpaces_getInstance().
|
|
729
|
+
return equals(RGBColorSpaces_getInstance().g1t_1, other);
|
|
730
730
|
};
|
|
731
731
|
protoOf(Companion_2).hashCode = function () {
|
|
732
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
732
|
+
return hashCode(RGBColorSpaces_getInstance().g1t_1);
|
|
733
733
|
};
|
|
734
734
|
var Companion_instance_2;
|
|
735
735
|
function Companion_getInstance_2() {
|
|
@@ -739,43 +739,43 @@
|
|
|
739
739
|
}
|
|
740
740
|
function RGB(r, g, b, alpha, space) {
|
|
741
741
|
Companion_getInstance_2();
|
|
742
|
-
this.
|
|
743
|
-
this.
|
|
744
|
-
this.
|
|
745
|
-
this.
|
|
746
|
-
this.
|
|
742
|
+
this.p1r_1 = r;
|
|
743
|
+
this.q1r_1 = g;
|
|
744
|
+
this.r1r_1 = b;
|
|
745
|
+
this.s1r_1 = alpha;
|
|
746
|
+
this.t1r_1 = space;
|
|
747
747
|
}
|
|
748
|
-
protoOf(RGB).
|
|
749
|
-
return this.
|
|
748
|
+
protoOf(RGB).m1r = function () {
|
|
749
|
+
return this.t1r_1;
|
|
750
750
|
};
|
|
751
|
-
protoOf(RGB).
|
|
751
|
+
protoOf(RGB).j1u = function () {
|
|
752
752
|
// Inline function 'kotlin.math.roundToInt' call
|
|
753
|
-
var this_0 = this.
|
|
753
|
+
var this_0 = this.p1r_1 * 255;
|
|
754
754
|
return roundToInt(this_0);
|
|
755
755
|
};
|
|
756
|
-
protoOf(RGB).
|
|
756
|
+
protoOf(RGB).k1u = function () {
|
|
757
757
|
// Inline function 'kotlin.math.roundToInt' call
|
|
758
|
-
var this_0 = this.
|
|
758
|
+
var this_0 = this.q1r_1 * 255;
|
|
759
759
|
return roundToInt(this_0);
|
|
760
760
|
};
|
|
761
|
-
protoOf(RGB).
|
|
761
|
+
protoOf(RGB).l1u = function () {
|
|
762
762
|
// Inline function 'kotlin.math.roundToInt' call
|
|
763
|
-
var this_0 = this.
|
|
763
|
+
var this_0 = this.r1r_1 * 255;
|
|
764
764
|
return roundToInt(this_0);
|
|
765
765
|
};
|
|
766
|
-
protoOf(RGB).
|
|
767
|
-
var f = SRGB_getInstance().
|
|
768
|
-
return equals(this.
|
|
766
|
+
protoOf(RGB).m1u = function (space) {
|
|
767
|
+
var f = SRGB_getInstance().s1t();
|
|
768
|
+
return equals(this.t1r_1, space) ? this : equals(this.t1r_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().h1t_1) ? space.z1s(f.b1u(this.p1r_1), f.b1u(this.q1r_1), f.b1u(this.r1r_1), this.s1r_1) : equals(this.t1r_1, RGBColorSpaces_getInstance().h1t_1) && equals(space, SRGB_getInstance()) ? space.z1s(f.c1u(this.p1r_1), f.c1u(this.q1r_1), f.c1u(this.r1r_1), this.s1r_1) : this.o1r().s1u(space);
|
|
769
769
|
};
|
|
770
|
-
protoOf(RGB).
|
|
770
|
+
protoOf(RGB).t1u = function () {
|
|
771
771
|
var tmp$ret$3;
|
|
772
772
|
$l$block: {
|
|
773
773
|
// Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
|
|
774
774
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
775
|
-
var $this$toSRGB = this.
|
|
776
|
-
var r = $this$toSRGB.
|
|
777
|
-
var g = $this$toSRGB.
|
|
778
|
-
var b = $this$toSRGB.
|
|
775
|
+
var $this$toSRGB = this.m1u(SRGB_getInstance());
|
|
776
|
+
var r = $this$toSRGB.p1r_1;
|
|
777
|
+
var g = $this$toSRGB.q1r_1;
|
|
778
|
+
var b = $this$toSRGB.r1r_1;
|
|
779
779
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
780
780
|
var min = Math.min(r, g, b);
|
|
781
781
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
@@ -784,100 +784,100 @@
|
|
|
784
784
|
var h = (chroma < 1.0E-7 ? NaN : r === max ? (g - b) / chroma : g === max ? 2 + (b - r) / chroma : b === max ? 4 + (r - g) / chroma : 0.0) * 60;
|
|
785
785
|
var h_0 = normalizeDeg_0(h);
|
|
786
786
|
var s = max === 0.0 ? 0.0 : chroma / max;
|
|
787
|
-
tmp$ret$3 = new HSV(h_0, s, max, this.
|
|
787
|
+
tmp$ret$3 = new HSV(h_0, s, max, this.s1r_1);
|
|
788
788
|
break $l$block;
|
|
789
789
|
}
|
|
790
790
|
return tmp$ret$3;
|
|
791
791
|
};
|
|
792
|
-
protoOf(RGB).
|
|
793
|
-
var f = this.
|
|
794
|
-
var tmp0 = _Matrix___init__impl__q3kp4w(this.
|
|
795
|
-
var tmp2 = f.
|
|
796
|
-
var tmp4 = f.
|
|
792
|
+
protoOf(RGB).o1r = function () {
|
|
793
|
+
var f = this.t1r_1.s1t();
|
|
794
|
+
var tmp0 = _Matrix___init__impl__q3kp4w(this.t1r_1.g1u());
|
|
795
|
+
var tmp2 = f.b1u(this.p1r_1);
|
|
796
|
+
var tmp4 = f.b1u(this.q1r_1);
|
|
797
797
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
798
|
-
var v2 = f.
|
|
798
|
+
var v2 = f.b1u(this.r1r_1);
|
|
799
799
|
var tmp0_0 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
800
800
|
var tmp2_0 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
801
801
|
var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
802
|
-
return XYZColorSpace_0(this.
|
|
802
|
+
return XYZColorSpace_0(this.t1r_1.i1u()).z1s(tmp0_0, tmp2_0, z, this.s1r_1);
|
|
803
803
|
};
|
|
804
|
-
protoOf(RGB).
|
|
804
|
+
protoOf(RGB).r1s = function () {
|
|
805
805
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
806
|
-
var $this$toSRGB = this.
|
|
806
|
+
var $this$toSRGB = this.m1u(SRGB_getInstance());
|
|
807
807
|
// Inline function 'kotlin.math.roundToInt' call
|
|
808
|
-
var this_0 = $this$toSRGB.
|
|
808
|
+
var this_0 = $this$toSRGB.t1u().w1s_1 * 100;
|
|
809
809
|
var value = roundToInt(this_0);
|
|
810
810
|
if (value === 30)
|
|
811
811
|
return new Ansi16(30);
|
|
812
812
|
var v = value / 50 | 0;
|
|
813
813
|
// Inline function 'kotlin.math.roundToInt' call
|
|
814
|
-
var this_1 = $this$toSRGB.
|
|
814
|
+
var this_1 = $this$toSRGB.r1r_1;
|
|
815
815
|
var tmp$ret$1 = roundToInt(this_1);
|
|
816
816
|
var tmp = imul(tmp$ret$1, 4);
|
|
817
817
|
// Inline function 'kotlin.math.roundToInt' call
|
|
818
|
-
var this_2 = $this$toSRGB.
|
|
818
|
+
var this_2 = $this$toSRGB.q1r_1;
|
|
819
819
|
var tmp$ret$2 = roundToInt(this_2);
|
|
820
820
|
var tmp_0 = tmp | imul(tmp$ret$2, 2);
|
|
821
821
|
// Inline function 'kotlin.math.roundToInt' call
|
|
822
|
-
var this_3 = $this$toSRGB.
|
|
822
|
+
var this_3 = $this$toSRGB.p1r_1;
|
|
823
823
|
var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
|
|
824
824
|
return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
|
|
825
825
|
};
|
|
826
|
-
protoOf(RGB).
|
|
826
|
+
protoOf(RGB).u1u = function () {
|
|
827
827
|
// Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
|
|
828
|
-
var $this$toSRGB = this.
|
|
829
|
-
var ri = $this$toSRGB.
|
|
830
|
-
var gi = $this$toSRGB.
|
|
831
|
-
var bi = $this$toSRGB.
|
|
828
|
+
var $this$toSRGB = this.m1u(SRGB_getInstance());
|
|
829
|
+
var ri = $this$toSRGB.j1u();
|
|
830
|
+
var gi = $this$toSRGB.k1u();
|
|
831
|
+
var bi = $this$toSRGB.l1u();
|
|
832
832
|
var tmp;
|
|
833
833
|
if (ri === gi && gi === bi) {
|
|
834
834
|
tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
|
|
835
835
|
} else {
|
|
836
836
|
// Inline function 'kotlin.math.roundToInt' call
|
|
837
|
-
var this_0 = $this$toSRGB.
|
|
837
|
+
var this_0 = $this$toSRGB.p1r_1 * 5;
|
|
838
838
|
var tmp$ret$0 = roundToInt(this_0);
|
|
839
839
|
var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
|
|
840
840
|
// Inline function 'kotlin.math.roundToInt' call
|
|
841
|
-
var this_1 = $this$toSRGB.
|
|
841
|
+
var this_1 = $this$toSRGB.q1r_1 * 5;
|
|
842
842
|
var tmp$ret$1 = roundToInt(this_1);
|
|
843
843
|
var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
|
|
844
844
|
// Inline function 'kotlin.math.roundToInt' call
|
|
845
|
-
var this_2 = $this$toSRGB.
|
|
845
|
+
var this_2 = $this$toSRGB.r1r_1 * 5;
|
|
846
846
|
tmp = tmp_1 + roundToInt(this_2) | 0;
|
|
847
847
|
}
|
|
848
848
|
var code = tmp;
|
|
849
849
|
return new Ansi256(code);
|
|
850
850
|
};
|
|
851
|
-
protoOf(RGB).
|
|
852
|
-
return this.
|
|
851
|
+
protoOf(RGB).n1r = function () {
|
|
852
|
+
return this.m1u(RGBColorSpaces_getInstance().g1t_1);
|
|
853
853
|
};
|
|
854
|
-
protoOf(RGB).
|
|
855
|
-
var tmp2 = this.
|
|
856
|
-
var tmp4 = this.
|
|
857
|
-
var tmp6 = this.
|
|
854
|
+
protoOf(RGB).v1u = function () {
|
|
855
|
+
var tmp2 = this.p1r_1;
|
|
856
|
+
var tmp4 = this.q1r_1;
|
|
857
|
+
var tmp6 = this.r1r_1;
|
|
858
858
|
// Inline function 'com.github.ajalt.colormath.internal.clamp3' call
|
|
859
|
-
var alpha = this.
|
|
860
|
-
var _destruct__k2r9zo = this.
|
|
859
|
+
var alpha = this.s1r_1;
|
|
860
|
+
var _destruct__k2r9zo = this.m1r().l1s();
|
|
861
861
|
// Inline function 'kotlin.collections.component1' call
|
|
862
|
-
var c1 = _destruct__k2r9zo.
|
|
862
|
+
var c1 = _destruct__k2r9zo.e1(0);
|
|
863
863
|
// Inline function 'kotlin.collections.component2' call
|
|
864
|
-
var c2 = _destruct__k2r9zo.
|
|
864
|
+
var c2 = _destruct__k2r9zo.e1(1);
|
|
865
865
|
// Inline function 'kotlin.collections.component3' call
|
|
866
|
-
var c3 = _destruct__k2r9zo.
|
|
866
|
+
var c3 = _destruct__k2r9zo.e1(2);
|
|
867
867
|
var tmp;
|
|
868
868
|
var tmp_0;
|
|
869
869
|
var tmp_1;
|
|
870
870
|
var tmp_2;
|
|
871
|
-
var containsLower = c1.
|
|
872
|
-
if (tmp2 <= c1.
|
|
873
|
-
var containsLower_0 = c2.
|
|
874
|
-
tmp_2 = tmp4 <= c2.
|
|
871
|
+
var containsLower = c1.w1r_1;
|
|
872
|
+
if (tmp2 <= c1.x1r_1 ? containsLower <= tmp2 : false) {
|
|
873
|
+
var containsLower_0 = c2.w1r_1;
|
|
874
|
+
tmp_2 = tmp4 <= c2.x1r_1 ? containsLower_0 <= tmp4 : false;
|
|
875
875
|
} else {
|
|
876
876
|
tmp_2 = false;
|
|
877
877
|
}
|
|
878
878
|
if (tmp_2) {
|
|
879
|
-
var containsLower_1 = c3.
|
|
880
|
-
tmp_1 = tmp6 <= c3.
|
|
879
|
+
var containsLower_1 = c3.w1r_1;
|
|
880
|
+
tmp_1 = tmp6 <= c3.x1r_1 ? containsLower_1 <= tmp6 : false;
|
|
881
881
|
} else {
|
|
882
882
|
tmp_1 = false;
|
|
883
883
|
}
|
|
@@ -889,34 +889,34 @@
|
|
|
889
889
|
if (tmp_0) {
|
|
890
890
|
tmp = this;
|
|
891
891
|
} else {
|
|
892
|
-
var tmp2_0 = coerceIn(tmp2, c1.
|
|
893
|
-
var tmp4_0 = coerceIn(tmp4, c2.
|
|
894
|
-
var tmp6_0 = coerceIn(tmp6, c3.
|
|
892
|
+
var tmp2_0 = coerceIn(tmp2, c1.w1r_1, c1.x1r_1);
|
|
893
|
+
var tmp4_0 = coerceIn(tmp4, c2.w1r_1, c2.x1r_1);
|
|
894
|
+
var tmp6_0 = coerceIn(tmp6, c3.w1r_1, c3.x1r_1);
|
|
895
895
|
var p3 = coerceIn(alpha, 0.0, 1.0);
|
|
896
|
-
tmp = this.
|
|
896
|
+
tmp = this.w1u(tmp2_0, tmp4_0, tmp6_0, p3);
|
|
897
897
|
}
|
|
898
898
|
return tmp;
|
|
899
899
|
};
|
|
900
|
-
protoOf(RGB).
|
|
900
|
+
protoOf(RGB).x1u = function (r, g, b, alpha, space) {
|
|
901
901
|
return new RGB(r, g, b, alpha, space);
|
|
902
902
|
};
|
|
903
|
-
protoOf(RGB).
|
|
904
|
-
r = r === VOID ? this.
|
|
905
|
-
g = g === VOID ? this.
|
|
906
|
-
b = b === VOID ? this.
|
|
907
|
-
alpha = alpha === VOID ? this.
|
|
908
|
-
space = space === VOID ? this.
|
|
909
|
-
return $super === VOID ? this.
|
|
903
|
+
protoOf(RGB).w1u = function (r, g, b, alpha, space, $super) {
|
|
904
|
+
r = r === VOID ? this.p1r_1 : r;
|
|
905
|
+
g = g === VOID ? this.q1r_1 : g;
|
|
906
|
+
b = b === VOID ? this.r1r_1 : b;
|
|
907
|
+
alpha = alpha === VOID ? this.s1r_1 : alpha;
|
|
908
|
+
space = space === VOID ? this.t1r_1 : space;
|
|
909
|
+
return $super === VOID ? this.x1u(r, g, b, alpha, space) : $super.x1u.call(this, r, g, b, alpha, space);
|
|
910
910
|
};
|
|
911
911
|
protoOf(RGB).toString = function () {
|
|
912
|
-
return 'RGB(r=' + this.
|
|
912
|
+
return 'RGB(r=' + this.p1r_1 + ', g=' + this.q1r_1 + ', b=' + this.r1r_1 + ', alpha=' + this.s1r_1 + ', space=' + toString(this.t1r_1) + ')';
|
|
913
913
|
};
|
|
914
914
|
protoOf(RGB).hashCode = function () {
|
|
915
|
-
var result = getNumberHashCode(this.
|
|
916
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
917
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
918
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
919
|
-
result = imul(result, 31) + hashCode(this.
|
|
915
|
+
var result = getNumberHashCode(this.p1r_1);
|
|
916
|
+
result = imul(result, 31) + getNumberHashCode(this.q1r_1) | 0;
|
|
917
|
+
result = imul(result, 31) + getNumberHashCode(this.r1r_1) | 0;
|
|
918
|
+
result = imul(result, 31) + getNumberHashCode(this.s1r_1) | 0;
|
|
919
|
+
result = imul(result, 31) + hashCode(this.t1r_1) | 0;
|
|
920
920
|
return result;
|
|
921
921
|
};
|
|
922
922
|
protoOf(RGB).equals = function (other) {
|
|
@@ -925,32 +925,32 @@
|
|
|
925
925
|
if (!(other instanceof RGB))
|
|
926
926
|
return false;
|
|
927
927
|
var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
|
|
928
|
-
if (!equals(this.
|
|
928
|
+
if (!equals(this.p1r_1, tmp0_other_with_cast.p1r_1))
|
|
929
929
|
return false;
|
|
930
|
-
if (!equals(this.
|
|
930
|
+
if (!equals(this.q1r_1, tmp0_other_with_cast.q1r_1))
|
|
931
931
|
return false;
|
|
932
|
-
if (!equals(this.
|
|
932
|
+
if (!equals(this.r1r_1, tmp0_other_with_cast.r1r_1))
|
|
933
933
|
return false;
|
|
934
|
-
if (!equals(this.
|
|
934
|
+
if (!equals(this.s1r_1, tmp0_other_with_cast.s1r_1))
|
|
935
935
|
return false;
|
|
936
|
-
if (!equals(this.
|
|
936
|
+
if (!equals(this.t1r_1, tmp0_other_with_cast.t1r_1))
|
|
937
937
|
return false;
|
|
938
938
|
return true;
|
|
939
939
|
};
|
|
940
940
|
function GammaTransferFunctions(gamma) {
|
|
941
|
-
this.
|
|
941
|
+
this.y1u_1 = gamma;
|
|
942
942
|
}
|
|
943
|
-
protoOf(GammaTransferFunctions).
|
|
944
|
-
return spow(x, this.
|
|
943
|
+
protoOf(GammaTransferFunctions).b1u = function (x) {
|
|
944
|
+
return spow(x, this.y1u_1);
|
|
945
945
|
};
|
|
946
|
-
protoOf(GammaTransferFunctions).
|
|
947
|
-
return spow(x, 1.0 / this.
|
|
946
|
+
protoOf(GammaTransferFunctions).c1u = function (x) {
|
|
947
|
+
return spow(x, 1.0 / this.y1u_1);
|
|
948
948
|
};
|
|
949
949
|
protoOf(GammaTransferFunctions).toString = function () {
|
|
950
|
-
return 'GammaTransferFunctions(gamma=' + this.
|
|
950
|
+
return 'GammaTransferFunctions(gamma=' + this.y1u_1 + ')';
|
|
951
951
|
};
|
|
952
952
|
protoOf(GammaTransferFunctions).hashCode = function () {
|
|
953
|
-
return getNumberHashCode(this.
|
|
953
|
+
return getNumberHashCode(this.y1u_1);
|
|
954
954
|
};
|
|
955
955
|
protoOf(GammaTransferFunctions).equals = function (other) {
|
|
956
956
|
if (this === other)
|
|
@@ -958,16 +958,16 @@
|
|
|
958
958
|
if (!(other instanceof GammaTransferFunctions))
|
|
959
959
|
return false;
|
|
960
960
|
var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
|
|
961
|
-
if (!equals(this.
|
|
961
|
+
if (!equals(this.y1u_1, tmp0_other_with_cast.y1u_1))
|
|
962
962
|
return false;
|
|
963
963
|
return true;
|
|
964
964
|
};
|
|
965
965
|
function LinearTransferFunctions() {
|
|
966
966
|
}
|
|
967
|
-
protoOf(LinearTransferFunctions).
|
|
967
|
+
protoOf(LinearTransferFunctions).b1u = function (x) {
|
|
968
968
|
return x;
|
|
969
969
|
};
|
|
970
|
-
protoOf(LinearTransferFunctions).
|
|
970
|
+
protoOf(LinearTransferFunctions).c1u = function (x) {
|
|
971
971
|
return x;
|
|
972
972
|
};
|
|
973
973
|
var LinearTransferFunctions_instance;
|
|
@@ -1056,43 +1056,43 @@
|
|
|
1056
1056
|
var ACES_AP1_B;
|
|
1057
1057
|
function SRGB() {
|
|
1058
1058
|
SRGB_instance = this;
|
|
1059
|
-
this.
|
|
1059
|
+
this.a1t_1 = RGBColorSpaces_getInstance().g1t_1;
|
|
1060
1060
|
}
|
|
1061
|
-
protoOf(SRGB).
|
|
1062
|
-
return this.
|
|
1061
|
+
protoOf(SRGB).z1s = function (r, g, b, alpha) {
|
|
1062
|
+
return this.a1t_1.z1s(r, g, b, alpha);
|
|
1063
1063
|
};
|
|
1064
|
-
protoOf(SRGB).
|
|
1065
|
-
return this.
|
|
1064
|
+
protoOf(SRGB).d1u = function (r, g, b, alpha) {
|
|
1065
|
+
return this.a1t_1.d1u(r, g, b, alpha);
|
|
1066
1066
|
};
|
|
1067
|
-
protoOf(SRGB).
|
|
1068
|
-
return this.
|
|
1067
|
+
protoOf(SRGB).e1u = function (hex) {
|
|
1068
|
+
return this.a1t_1.e1u(hex);
|
|
1069
1069
|
};
|
|
1070
|
-
protoOf(SRGB).
|
|
1071
|
-
return this.
|
|
1070
|
+
protoOf(SRGB).f1u = function (r, g, b, alpha) {
|
|
1071
|
+
return this.a1t_1.f1u(r, g, b, alpha);
|
|
1072
1072
|
};
|
|
1073
|
-
protoOf(SRGB).
|
|
1074
|
-
return this.
|
|
1073
|
+
protoOf(SRGB).s1t = function () {
|
|
1074
|
+
return this.a1t_1.s1t();
|
|
1075
1075
|
};
|
|
1076
|
-
protoOf(SRGB).
|
|
1077
|
-
return this.
|
|
1076
|
+
protoOf(SRGB).g1u = function () {
|
|
1077
|
+
return this.a1t_1.g1u();
|
|
1078
1078
|
};
|
|
1079
|
-
protoOf(SRGB).
|
|
1080
|
-
return this.
|
|
1079
|
+
protoOf(SRGB).h1u = function () {
|
|
1080
|
+
return this.a1t_1.h1u();
|
|
1081
1081
|
};
|
|
1082
|
-
protoOf(SRGB).
|
|
1083
|
-
return this.
|
|
1082
|
+
protoOf(SRGB).i1u = function () {
|
|
1083
|
+
return this.a1t_1.i1u();
|
|
1084
1084
|
};
|
|
1085
|
-
protoOf(SRGB).
|
|
1086
|
-
return this.
|
|
1085
|
+
protoOf(SRGB).m = function () {
|
|
1086
|
+
return this.a1t_1.m();
|
|
1087
1087
|
};
|
|
1088
|
-
protoOf(SRGB).
|
|
1089
|
-
return this.
|
|
1088
|
+
protoOf(SRGB).l1s = function () {
|
|
1089
|
+
return this.a1t_1.l1s();
|
|
1090
1090
|
};
|
|
1091
1091
|
protoOf(SRGB).equals = function (other) {
|
|
1092
|
-
return equals(RGBColorSpaces_getInstance().
|
|
1092
|
+
return equals(RGBColorSpaces_getInstance().g1t_1, other);
|
|
1093
1093
|
};
|
|
1094
1094
|
protoOf(SRGB).hashCode = function () {
|
|
1095
|
-
return hashCode(RGBColorSpaces_getInstance().
|
|
1095
|
+
return hashCode(RGBColorSpaces_getInstance().g1t_1);
|
|
1096
1096
|
};
|
|
1097
1097
|
protoOf(SRGB).toString = function () {
|
|
1098
1098
|
return 'sRGB';
|
|
@@ -1104,17 +1104,17 @@
|
|
|
1104
1104
|
return SRGB_instance;
|
|
1105
1105
|
}
|
|
1106
1106
|
function RGBColorSpaces$SRGB$lambda($this$RGBColorSpaceImpl, it) {
|
|
1107
|
-
return it.
|
|
1107
|
+
return it.n1r();
|
|
1108
1108
|
}
|
|
1109
1109
|
function RGBColorSpaces$BT2020$lambda($this$RGBColorSpaceImpl, color) {
|
|
1110
1110
|
var tmp;
|
|
1111
1111
|
if (color instanceof RGB) {
|
|
1112
|
-
tmp = color.
|
|
1112
|
+
tmp = color.m1u($this$RGBColorSpaceImpl);
|
|
1113
1113
|
} else {
|
|
1114
1114
|
if (color instanceof ICtCp) {
|
|
1115
|
-
tmp = color.
|
|
1115
|
+
tmp = color.f1t();
|
|
1116
1116
|
} else {
|
|
1117
|
-
tmp = color.
|
|
1117
|
+
tmp = color.o1r().s1u($this$RGBColorSpaceImpl);
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
return tmp;
|
|
@@ -1122,29 +1122,29 @@
|
|
|
1122
1122
|
function RGBColorSpaces() {
|
|
1123
1123
|
RGBColorSpaces_instance = this;
|
|
1124
1124
|
var tmp = this;
|
|
1125
|
-
var tmp_0 = Illuminant_getInstance().
|
|
1125
|
+
var tmp_0 = Illuminant_getInstance().f1s_1;
|
|
1126
1126
|
var tmp_1 = SRGBTransferFunctions_instance;
|
|
1127
1127
|
var tmp_2 = get_SRGB_R();
|
|
1128
1128
|
var tmp_3 = get_SRGB_G();
|
|
1129
1129
|
var tmp_4 = get_SRGB_B();
|
|
1130
|
-
tmp.
|
|
1131
|
-
this.
|
|
1132
|
-
this.
|
|
1133
|
-
this.
|
|
1134
|
-
this.
|
|
1135
|
-
this.
|
|
1136
|
-
this.
|
|
1130
|
+
tmp.g1t_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
|
|
1131
|
+
this.h1t_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().f1s_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
|
|
1132
|
+
this.i1t_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
|
|
1133
|
+
this.j1t_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1134
|
+
this.k1t_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1135
|
+
this.l1t_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
|
|
1136
|
+
this.m1t_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().f1s_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));
|
|
1137
1137
|
var tmp_5 = this;
|
|
1138
|
-
var tmp_6 = Illuminant_getInstance().
|
|
1138
|
+
var tmp_6 = Illuminant_getInstance().f1s_1;
|
|
1139
1139
|
var tmp_7 = BT2020TransferFunctions_getInstance();
|
|
1140
1140
|
var tmp_8 = xyY_init_$Create$(0.708, 0.292);
|
|
1141
1141
|
var tmp_9 = xyY_init_$Create$(0.17, 0.797);
|
|
1142
1142
|
var tmp_10 = xyY_init_$Create$(0.131, 0.046);
|
|
1143
|
-
tmp_5.
|
|
1144
|
-
this.
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
1147
|
-
this.
|
|
1143
|
+
tmp_5.n1t_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
|
|
1144
|
+
this.o1t_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().f1s_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
|
|
1145
|
+
this.p1t_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));
|
|
1146
|
+
this.q1t_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().f1s_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
|
|
1147
|
+
this.r1t_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().d1s_1, ROMMTransferFunctions_instance, xyY_init_$Create$(0.7347, 0.2653), xyY_init_$Create$(0.1596, 0.8404), xyY_init_$Create$(0.0366, 1.0E-4));
|
|
1148
1148
|
}
|
|
1149
1149
|
var RGBColorSpaces_instance;
|
|
1150
1150
|
function RGBColorSpaces_getInstance() {
|
|
@@ -1153,39 +1153,39 @@
|
|
|
1153
1153
|
return RGBColorSpaces_instance;
|
|
1154
1154
|
}
|
|
1155
1155
|
function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
|
|
1156
|
-
this.
|
|
1157
|
-
this.
|
|
1158
|
-
this.
|
|
1159
|
-
this.
|
|
1160
|
-
this.
|
|
1161
|
-
this.
|
|
1162
|
-
this.
|
|
1163
|
-
this.
|
|
1164
|
-
this.
|
|
1165
|
-
this.
|
|
1166
|
-
}
|
|
1167
|
-
protoOf(RGBColorSpaceImpl).
|
|
1168
|
-
return this.
|
|
1169
|
-
};
|
|
1170
|
-
protoOf(RGBColorSpaceImpl).y1u = function () {
|
|
1171
|
-
return this.q1v_1;
|
|
1156
|
+
this.z1u_1 = name;
|
|
1157
|
+
this.a1v_1 = whitePoint;
|
|
1158
|
+
this.b1v_1 = transferFunctions;
|
|
1159
|
+
this.c1v_1 = r;
|
|
1160
|
+
this.d1v_1 = g;
|
|
1161
|
+
this.e1v_1 = b;
|
|
1162
|
+
this.f1v_1 = convertImpl;
|
|
1163
|
+
this.g1v_1 = zeroOneComponentInfo('RGB');
|
|
1164
|
+
this.h1v_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.a1v_1, this.c1v_1, this.d1v_1, this.e1v_1));
|
|
1165
|
+
this.i1v_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.h1v_1)));
|
|
1166
|
+
}
|
|
1167
|
+
protoOf(RGBColorSpaceImpl).m = function () {
|
|
1168
|
+
return this.z1u_1;
|
|
1172
1169
|
};
|
|
1173
1170
|
protoOf(RGBColorSpaceImpl).i1u = function () {
|
|
1174
|
-
return this.
|
|
1171
|
+
return this.a1v_1;
|
|
1175
1172
|
};
|
|
1176
|
-
protoOf(RGBColorSpaceImpl).
|
|
1177
|
-
return this.
|
|
1173
|
+
protoOf(RGBColorSpaceImpl).s1t = function () {
|
|
1174
|
+
return this.b1v_1;
|
|
1178
1175
|
};
|
|
1179
|
-
protoOf(RGBColorSpaceImpl).
|
|
1180
|
-
return this.
|
|
1176
|
+
protoOf(RGBColorSpaceImpl).l1s = function () {
|
|
1177
|
+
return this.g1v_1;
|
|
1181
1178
|
};
|
|
1182
|
-
protoOf(RGBColorSpaceImpl).
|
|
1183
|
-
return this.
|
|
1179
|
+
protoOf(RGBColorSpaceImpl).g1u = function () {
|
|
1180
|
+
return this.h1v_1;
|
|
1181
|
+
};
|
|
1182
|
+
protoOf(RGBColorSpaceImpl).h1u = function () {
|
|
1183
|
+
return this.i1v_1;
|
|
1184
1184
|
};
|
|
1185
1185
|
protoOf(RGBColorSpaceImpl).toString = function () {
|
|
1186
|
-
return this.
|
|
1186
|
+
return this.z1u_1;
|
|
1187
1187
|
};
|
|
1188
|
-
protoOf(RGBColorSpaceImpl).
|
|
1188
|
+
protoOf(RGBColorSpaceImpl).z1s = function (r, g, b, alpha) {
|
|
1189
1189
|
return new RGB(r, g, b, alpha, this);
|
|
1190
1190
|
};
|
|
1191
1191
|
protoOf(RGBColorSpaceImpl).equals = function (other) {
|
|
@@ -1193,42 +1193,42 @@
|
|
|
1193
1193
|
return true;
|
|
1194
1194
|
if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
|
|
1195
1195
|
return false;
|
|
1196
|
-
if (!(this.
|
|
1196
|
+
if (!(this.z1u_1 === other.m()))
|
|
1197
1197
|
return false;
|
|
1198
|
-
if (!this.
|
|
1198
|
+
if (!this.a1v_1.equals(other.i1u()))
|
|
1199
1199
|
return false;
|
|
1200
|
-
if (!equals(this.
|
|
1200
|
+
if (!equals(this.b1v_1, other.s1t()))
|
|
1201
1201
|
return false;
|
|
1202
1202
|
if (other instanceof RGBColorSpaceImpl) {
|
|
1203
|
-
if (!this.
|
|
1203
|
+
if (!this.c1v_1.equals(other.c1v_1))
|
|
1204
1204
|
return false;
|
|
1205
|
-
if (!this.
|
|
1205
|
+
if (!this.d1v_1.equals(other.d1v_1))
|
|
1206
1206
|
return false;
|
|
1207
|
-
if (!this.
|
|
1207
|
+
if (!this.e1v_1.equals(other.e1v_1))
|
|
1208
1208
|
return false;
|
|
1209
1209
|
} else {
|
|
1210
|
-
if (!contentEquals(this.
|
|
1210
|
+
if (!contentEquals(this.h1v_1, other.g1u()))
|
|
1211
1211
|
return false;
|
|
1212
|
-
if (!contentEquals(this.
|
|
1212
|
+
if (!contentEquals(this.i1v_1, other.h1u()))
|
|
1213
1213
|
return false;
|
|
1214
1214
|
}
|
|
1215
1215
|
return true;
|
|
1216
1216
|
};
|
|
1217
1217
|
protoOf(RGBColorSpaceImpl).hashCode = function () {
|
|
1218
|
-
var result = getStringHashCode(this.
|
|
1219
|
-
result = imul(31, result) + this.
|
|
1220
|
-
result = imul(31, result) + hashCode(this.
|
|
1221
|
-
result = imul(31, result) + this.
|
|
1222
|
-
result = imul(31, result) + this.
|
|
1223
|
-
result = imul(31, result) + this.
|
|
1218
|
+
var result = getStringHashCode(this.z1u_1);
|
|
1219
|
+
result = imul(31, result) + this.a1v_1.hashCode() | 0;
|
|
1220
|
+
result = imul(31, result) + hashCode(this.b1v_1) | 0;
|
|
1221
|
+
result = imul(31, result) + this.c1v_1.hashCode() | 0;
|
|
1222
|
+
result = imul(31, result) + this.d1v_1.hashCode() | 0;
|
|
1223
|
+
result = imul(31, result) + this.e1v_1.hashCode() | 0;
|
|
1224
1224
|
return result;
|
|
1225
1225
|
};
|
|
1226
1226
|
function SRGBTransferFunctions() {
|
|
1227
1227
|
}
|
|
1228
|
-
protoOf(SRGBTransferFunctions).
|
|
1228
|
+
protoOf(SRGBTransferFunctions).c1u = function (x) {
|
|
1229
1229
|
return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
|
|
1230
1230
|
};
|
|
1231
|
-
protoOf(SRGBTransferFunctions).
|
|
1231
|
+
protoOf(SRGBTransferFunctions).b1u = function (x) {
|
|
1232
1232
|
return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
|
|
1233
1233
|
};
|
|
1234
1234
|
var SRGBTransferFunctions_instance;
|
|
@@ -1241,18 +1241,18 @@
|
|
|
1241
1241
|
}
|
|
1242
1242
|
function ACESccTransferFunctions() {
|
|
1243
1243
|
ACESccTransferFunctions_instance = this;
|
|
1244
|
-
this.
|
|
1245
|
-
this.
|
|
1246
|
-
this.
|
|
1244
|
+
this.j1v_1 = 3.0517578125E-5;
|
|
1245
|
+
this.k1v_1 = 1.52587890625E-5;
|
|
1246
|
+
this.l1v_1 = -0.3013698630136986;
|
|
1247
1247
|
var tmp = this;
|
|
1248
1248
|
// Inline function 'kotlin.math.log2' call
|
|
1249
|
-
tmp.
|
|
1249
|
+
tmp.m1v_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1250
1250
|
}
|
|
1251
|
-
protoOf(ACESccTransferFunctions).
|
|
1251
|
+
protoOf(ACESccTransferFunctions).b1u = function (x) {
|
|
1252
1252
|
var tmp;
|
|
1253
1253
|
if (x <= -0.3013698630136986) {
|
|
1254
1254
|
tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
|
|
1255
|
-
} else if (x < this.
|
|
1255
|
+
} else if (x < this.m1v_1) {
|
|
1256
1256
|
// Inline function 'kotlin.math.pow' call
|
|
1257
1257
|
var x_0 = x * 17.52 - 9.72;
|
|
1258
1258
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1261,7 +1261,7 @@
|
|
|
1261
1261
|
}
|
|
1262
1262
|
return tmp;
|
|
1263
1263
|
};
|
|
1264
|
-
protoOf(ACESccTransferFunctions).
|
|
1264
|
+
protoOf(ACESccTransferFunctions).c1u = function (x) {
|
|
1265
1265
|
var tmp;
|
|
1266
1266
|
if (x < 3.0517578125E-5) {
|
|
1267
1267
|
// Inline function 'kotlin.math.log2' call
|
|
@@ -1281,17 +1281,17 @@
|
|
|
1281
1281
|
}
|
|
1282
1282
|
function ACEScctTransferFunctions() {
|
|
1283
1283
|
ACEScctTransferFunctions_instance = this;
|
|
1284
|
-
this.
|
|
1285
|
-
this.
|
|
1284
|
+
this.n1v_1 = 10.5402377416545;
|
|
1285
|
+
this.o1v_1 = 0.0729055341958355;
|
|
1286
1286
|
var tmp = this;
|
|
1287
1287
|
// Inline function 'kotlin.math.log2' call
|
|
1288
|
-
tmp.
|
|
1288
|
+
tmp.p1v_1 = (log2(65504.0) + 9.72) / 17.52;
|
|
1289
1289
|
}
|
|
1290
|
-
protoOf(ACEScctTransferFunctions).
|
|
1290
|
+
protoOf(ACEScctTransferFunctions).b1u = function (x) {
|
|
1291
1291
|
var tmp;
|
|
1292
1292
|
if (x <= 0.155251141552511) {
|
|
1293
1293
|
tmp = (x - 0.0729055341958355) / 10.5402377416545;
|
|
1294
|
-
} else if (x < this.
|
|
1294
|
+
} else if (x < this.p1v_1) {
|
|
1295
1295
|
// Inline function 'kotlin.math.pow' call
|
|
1296
1296
|
var x_0 = x * 17.52 - 9.72;
|
|
1297
1297
|
tmp = Math.pow(2.0, x_0);
|
|
@@ -1300,7 +1300,7 @@
|
|
|
1300
1300
|
}
|
|
1301
1301
|
return tmp;
|
|
1302
1302
|
};
|
|
1303
|
-
protoOf(ACEScctTransferFunctions).
|
|
1303
|
+
protoOf(ACEScctTransferFunctions).c1u = function (x) {
|
|
1304
1304
|
var tmp;
|
|
1305
1305
|
if (x < 0.0078125) {
|
|
1306
1306
|
tmp = 10.5402377416545 * x + 0.0729055341958355;
|
|
@@ -1318,16 +1318,16 @@
|
|
|
1318
1318
|
}
|
|
1319
1319
|
function BT2020TransferFunctions() {
|
|
1320
1320
|
BT2020TransferFunctions_instance = this;
|
|
1321
|
-
this.
|
|
1322
|
-
this.
|
|
1321
|
+
this.q1v_1 = 1.0993;
|
|
1322
|
+
this.r1v_1 = 0.0181;
|
|
1323
1323
|
var tmp = this;
|
|
1324
1324
|
// Inline function 'kotlin.math.pow' call
|
|
1325
|
-
tmp.
|
|
1325
|
+
tmp.s1v_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
|
|
1326
1326
|
}
|
|
1327
|
-
protoOf(BT2020TransferFunctions).
|
|
1328
|
-
return numberToDouble(x < this.
|
|
1327
|
+
protoOf(BT2020TransferFunctions).b1u = function (x) {
|
|
1328
|
+
return numberToDouble(x < this.s1v_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
|
|
1329
1329
|
};
|
|
1330
|
-
protoOf(BT2020TransferFunctions).
|
|
1330
|
+
protoOf(BT2020TransferFunctions).c1u = function (x) {
|
|
1331
1331
|
return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - (1.0993 - 1);
|
|
1332
1332
|
};
|
|
1333
1333
|
var BT2020TransferFunctions_instance;
|
|
@@ -1338,12 +1338,12 @@
|
|
|
1338
1338
|
}
|
|
1339
1339
|
function BT709TransferFunctions() {
|
|
1340
1340
|
BT709TransferFunctions_instance = this;
|
|
1341
|
-
this.
|
|
1341
|
+
this.t1v_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
|
|
1342
1342
|
}
|
|
1343
|
-
protoOf(BT709TransferFunctions).
|
|
1344
|
-
return numberToDouble(x < this.
|
|
1343
|
+
protoOf(BT709TransferFunctions).b1u = function (x) {
|
|
1344
|
+
return numberToDouble(x < this.t1v_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
|
|
1345
1345
|
};
|
|
1346
|
-
protoOf(BT709TransferFunctions).
|
|
1346
|
+
protoOf(BT709TransferFunctions).c1u = function (x) {
|
|
1347
1347
|
return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
|
|
1348
1348
|
};
|
|
1349
1349
|
var BT709TransferFunctions_instance;
|
|
@@ -1353,12 +1353,12 @@
|
|
|
1353
1353
|
return BT709TransferFunctions_instance;
|
|
1354
1354
|
}
|
|
1355
1355
|
function ROMMTransferFunctions() {
|
|
1356
|
-
this.
|
|
1356
|
+
this.u1v_1 = 0.001953;
|
|
1357
1357
|
}
|
|
1358
|
-
protoOf(ROMMTransferFunctions).
|
|
1358
|
+
protoOf(ROMMTransferFunctions).b1u = function (x) {
|
|
1359
1359
|
return x < 16 * 0.001953 ? x / 16.0 : spow(x, 1.8);
|
|
1360
1360
|
};
|
|
1361
|
-
protoOf(ROMMTransferFunctions).
|
|
1361
|
+
protoOf(ROMMTransferFunctions).c1u = function (x) {
|
|
1362
1362
|
return x < 0.001953 ? x * 16.0 : spow(x, 1.0 / 1.8);
|
|
1363
1363
|
};
|
|
1364
1364
|
var ROMMTransferFunctions_instance;
|
|
@@ -1367,13 +1367,13 @@
|
|
|
1367
1367
|
}
|
|
1368
1368
|
function rgbToXyzMatrix(whitePoint, r, g, b) {
|
|
1369
1369
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1370
|
-
var primaries = _Matrix___init__impl__q3kp4w_0(r.
|
|
1371
|
-
var wp = whitePoint.
|
|
1370
|
+
var primaries = _Matrix___init__impl__q3kp4w_0(r.v1v_1, g.v1v_1, b.v1v_1, r.w1v_1, g.w1v_1, b.w1v_1, r.y1v(), g.y1v(), b.y1v());
|
|
1371
|
+
var wp = whitePoint.z1r_1;
|
|
1372
1372
|
var tmp0 = inverse(primaries);
|
|
1373
|
-
var tmp2 = wp.
|
|
1374
|
-
var tmp4 = wp.
|
|
1373
|
+
var tmp2 = wp.z1v();
|
|
1374
|
+
var tmp4 = wp.x1v_1;
|
|
1375
1375
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1376
|
-
var v2 = wp.
|
|
1376
|
+
var v2 = wp.a1w();
|
|
1377
1377
|
var tmp0_0 = Matrix__get_impl_xogbpk(tmp0, 0, 0) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 0) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 0) * v2;
|
|
1378
1378
|
var tmp2_0 = Matrix__get_impl_xogbpk(tmp0, 0, 1) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 1) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 1) * v2;
|
|
1379
1379
|
var z = Matrix__get_impl_xogbpk(tmp0, 0, 2) * tmp2 + Matrix__get_impl_xogbpk(tmp0, 1, 2) * tmp4 + Matrix__get_impl_xogbpk(tmp0, 2, 2) * v2;
|
|
@@ -1383,9 +1383,9 @@
|
|
|
1383
1383
|
_init_properties_RGBColorSpaces_kt__nc9fsz();
|
|
1384
1384
|
var tmp;
|
|
1385
1385
|
if (color instanceof RGB) {
|
|
1386
|
-
tmp = color.
|
|
1386
|
+
tmp = color.m1u($this$RGBColorSpaceImpl);
|
|
1387
1387
|
} else {
|
|
1388
|
-
tmp = color.
|
|
1388
|
+
tmp = color.o1r().s1u($this$RGBColorSpaceImpl);
|
|
1389
1389
|
}
|
|
1390
1390
|
return tmp;
|
|
1391
1391
|
}
|
|
@@ -1407,25 +1407,25 @@
|
|
|
1407
1407
|
}
|
|
1408
1408
|
function Companion_3() {
|
|
1409
1409
|
Companion_instance_3 = this;
|
|
1410
|
-
this.
|
|
1410
|
+
this.b1w_1 = XYZColorSpaces_getInstance().c1w_1;
|
|
1411
1411
|
}
|
|
1412
|
-
protoOf(Companion_3).
|
|
1413
|
-
return this.
|
|
1412
|
+
protoOf(Companion_3).z1s = function (x, y, z, alpha) {
|
|
1413
|
+
return this.b1w_1.z1s(x, y, z, alpha);
|
|
1414
1414
|
};
|
|
1415
|
-
protoOf(Companion_3).
|
|
1416
|
-
return this.
|
|
1415
|
+
protoOf(Companion_3).i1u = function () {
|
|
1416
|
+
return this.b1w_1.i1u();
|
|
1417
1417
|
};
|
|
1418
|
-
protoOf(Companion_3).
|
|
1419
|
-
return this.
|
|
1418
|
+
protoOf(Companion_3).m = function () {
|
|
1419
|
+
return this.b1w_1.m();
|
|
1420
1420
|
};
|
|
1421
|
-
protoOf(Companion_3).
|
|
1422
|
-
return this.
|
|
1421
|
+
protoOf(Companion_3).l1s = function () {
|
|
1422
|
+
return this.b1w_1.l1s();
|
|
1423
1423
|
};
|
|
1424
1424
|
protoOf(Companion_3).hashCode = function () {
|
|
1425
|
-
return hashCode(XYZColorSpaces_getInstance().
|
|
1425
|
+
return hashCode(XYZColorSpaces_getInstance().c1w_1);
|
|
1426
1426
|
};
|
|
1427
1427
|
protoOf(Companion_3).equals = function (other) {
|
|
1428
|
-
return equals(XYZColorSpaces_getInstance().
|
|
1428
|
+
return equals(XYZColorSpaces_getInstance().c1w_1, other);
|
|
1429
1429
|
};
|
|
1430
1430
|
var Companion_instance_3;
|
|
1431
1431
|
function Companion_getInstance_3() {
|
|
@@ -1434,69 +1434,69 @@
|
|
|
1434
1434
|
return Companion_instance_3;
|
|
1435
1435
|
}
|
|
1436
1436
|
function adaptToM($this, space, m, mi) {
|
|
1437
|
-
if (space.
|
|
1437
|
+
if (space.i1u().equals($this.r1u_1.i1u()))
|
|
1438
1438
|
return $this;
|
|
1439
|
-
var transform = chromaticAdaptationMatrix(space, $this.
|
|
1440
|
-
var tmp2 = $this.
|
|
1441
|
-
var tmp4 = $this.
|
|
1439
|
+
var transform = chromaticAdaptationMatrix(space, $this.r1u_1.i1u().z1r_1, m, mi);
|
|
1440
|
+
var tmp2 = $this.n1u_1;
|
|
1441
|
+
var tmp4 = $this.o1u_1;
|
|
1442
1442
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1443
|
-
var v2 = $this.
|
|
1443
|
+
var v2 = $this.p1u_1;
|
|
1444
1444
|
var tmp0 = Matrix__get_impl_xogbpk(transform, 0, 0) * tmp2 + Matrix__get_impl_xogbpk(transform, 1, 0) * tmp4 + Matrix__get_impl_xogbpk(transform, 2, 0) * v2;
|
|
1445
1445
|
var tmp2_0 = Matrix__get_impl_xogbpk(transform, 0, 1) * tmp2 + Matrix__get_impl_xogbpk(transform, 1, 1) * tmp4 + Matrix__get_impl_xogbpk(transform, 2, 1) * v2;
|
|
1446
1446
|
var zz = Matrix__get_impl_xogbpk(transform, 0, 2) * tmp2 + Matrix__get_impl_xogbpk(transform, 1, 2) * tmp4 + Matrix__get_impl_xogbpk(transform, 2, 2) * v2;
|
|
1447
|
-
return space.
|
|
1447
|
+
return space.z1s(tmp0, tmp2_0, zz, $this.q1u_1);
|
|
1448
1448
|
}
|
|
1449
1449
|
function XYZ(x, y, z, alpha, space) {
|
|
1450
1450
|
Companion_getInstance_3();
|
|
1451
|
-
this.
|
|
1452
|
-
this.
|
|
1453
|
-
this.
|
|
1454
|
-
this.
|
|
1455
|
-
this.
|
|
1451
|
+
this.n1u_1 = x;
|
|
1452
|
+
this.o1u_1 = y;
|
|
1453
|
+
this.p1u_1 = z;
|
|
1454
|
+
this.q1u_1 = alpha;
|
|
1455
|
+
this.r1u_1 = space;
|
|
1456
1456
|
}
|
|
1457
|
-
protoOf(XYZ).
|
|
1458
|
-
return this.
|
|
1457
|
+
protoOf(XYZ).m1r = function () {
|
|
1458
|
+
return this.r1u_1;
|
|
1459
1459
|
};
|
|
1460
|
-
protoOf(XYZ).
|
|
1460
|
+
protoOf(XYZ).e1w = function (space) {
|
|
1461
1461
|
return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
|
|
1462
1462
|
};
|
|
1463
|
-
protoOf(XYZ).
|
|
1464
|
-
var _destruct__k2r9zo = this.
|
|
1465
|
-
var x = _destruct__k2r9zo.
|
|
1466
|
-
var y = _destruct__k2r9zo.
|
|
1467
|
-
var z = _destruct__k2r9zo.
|
|
1468
|
-
var f = space.
|
|
1463
|
+
protoOf(XYZ).s1u = function (space) {
|
|
1464
|
+
var _destruct__k2r9zo = this.e1w(XYZColorSpace_0(space.i1u()));
|
|
1465
|
+
var x = _destruct__k2r9zo.fa();
|
|
1466
|
+
var y = _destruct__k2r9zo.ga();
|
|
1467
|
+
var z = _destruct__k2r9zo.zi();
|
|
1468
|
+
var f = space.s1t();
|
|
1469
1469
|
// Inline function 'com.github.ajalt.colormath.internal.dot' call
|
|
1470
|
-
var this_0 = _Matrix___init__impl__q3kp4w(space.
|
|
1470
|
+
var this_0 = _Matrix___init__impl__q3kp4w(space.h1u());
|
|
1471
1471
|
var tmp0 = Matrix__get_impl_xogbpk(this_0, 0, 0) * x + Matrix__get_impl_xogbpk(this_0, 1, 0) * y + Matrix__get_impl_xogbpk(this_0, 2, 0) * z;
|
|
1472
1472
|
var tmp2 = Matrix__get_impl_xogbpk(this_0, 0, 1) * x + Matrix__get_impl_xogbpk(this_0, 1, 1) * y + Matrix__get_impl_xogbpk(this_0, 2, 1) * z;
|
|
1473
1473
|
var b = Matrix__get_impl_xogbpk(this_0, 0, 2) * x + Matrix__get_impl_xogbpk(this_0, 1, 2) * y + Matrix__get_impl_xogbpk(this_0, 2, 2) * z;
|
|
1474
|
-
return space.
|
|
1474
|
+
return space.z1s(f.c1u(tmp0), f.c1u(tmp2), f.c1u(b), this.q1u_1);
|
|
1475
1475
|
};
|
|
1476
|
-
protoOf(XYZ).
|
|
1477
|
-
return this.
|
|
1476
|
+
protoOf(XYZ).n1r = function () {
|
|
1477
|
+
return this.s1u(RGBColorSpaces_getInstance().g1t_1);
|
|
1478
1478
|
};
|
|
1479
|
-
protoOf(XYZ).
|
|
1479
|
+
protoOf(XYZ).o1r = function () {
|
|
1480
1480
|
return this;
|
|
1481
1481
|
};
|
|
1482
|
-
protoOf(XYZ).
|
|
1483
|
-
return this.
|
|
1482
|
+
protoOf(XYZ).fa = function () {
|
|
1483
|
+
return this.n1u_1;
|
|
1484
1484
|
};
|
|
1485
|
-
protoOf(XYZ).
|
|
1486
|
-
return this.
|
|
1485
|
+
protoOf(XYZ).ga = function () {
|
|
1486
|
+
return this.o1u_1;
|
|
1487
1487
|
};
|
|
1488
|
-
protoOf(XYZ).
|
|
1489
|
-
return this.
|
|
1488
|
+
protoOf(XYZ).zi = function () {
|
|
1489
|
+
return this.p1u_1;
|
|
1490
1490
|
};
|
|
1491
1491
|
protoOf(XYZ).toString = function () {
|
|
1492
|
-
return 'XYZ(x=' + this.
|
|
1492
|
+
return 'XYZ(x=' + this.n1u_1 + ', y=' + this.o1u_1 + ', z=' + this.p1u_1 + ', alpha=' + this.q1u_1 + ', space=' + toString(this.r1u_1) + ')';
|
|
1493
1493
|
};
|
|
1494
1494
|
protoOf(XYZ).hashCode = function () {
|
|
1495
|
-
var result = getNumberHashCode(this.
|
|
1496
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1497
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1498
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1499
|
-
result = imul(result, 31) + hashCode(this.
|
|
1495
|
+
var result = getNumberHashCode(this.n1u_1);
|
|
1496
|
+
result = imul(result, 31) + getNumberHashCode(this.o1u_1) | 0;
|
|
1497
|
+
result = imul(result, 31) + getNumberHashCode(this.p1u_1) | 0;
|
|
1498
|
+
result = imul(result, 31) + getNumberHashCode(this.q1u_1) | 0;
|
|
1499
|
+
result = imul(result, 31) + hashCode(this.r1u_1) | 0;
|
|
1500
1500
|
return result;
|
|
1501
1501
|
};
|
|
1502
1502
|
protoOf(XYZ).equals = function (other) {
|
|
@@ -1505,15 +1505,15 @@
|
|
|
1505
1505
|
if (!(other instanceof XYZ))
|
|
1506
1506
|
return false;
|
|
1507
1507
|
var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
|
|
1508
|
-
if (!equals(this.
|
|
1508
|
+
if (!equals(this.n1u_1, tmp0_other_with_cast.n1u_1))
|
|
1509
1509
|
return false;
|
|
1510
|
-
if (!equals(this.
|
|
1510
|
+
if (!equals(this.o1u_1, tmp0_other_with_cast.o1u_1))
|
|
1511
1511
|
return false;
|
|
1512
|
-
if (!equals(this.
|
|
1512
|
+
if (!equals(this.p1u_1, tmp0_other_with_cast.p1u_1))
|
|
1513
1513
|
return false;
|
|
1514
|
-
if (!equals(this.
|
|
1514
|
+
if (!equals(this.q1u_1, tmp0_other_with_cast.q1u_1))
|
|
1515
1515
|
return false;
|
|
1516
|
-
if (!equals(this.
|
|
1516
|
+
if (!equals(this.r1u_1, tmp0_other_with_cast.r1u_1))
|
|
1517
1517
|
return false;
|
|
1518
1518
|
return true;
|
|
1519
1519
|
};
|
|
@@ -1521,8 +1521,8 @@
|
|
|
1521
1521
|
}
|
|
1522
1522
|
function XYZColorSpaces() {
|
|
1523
1523
|
XYZColorSpaces_instance = this;
|
|
1524
|
-
this.
|
|
1525
|
-
this.
|
|
1524
|
+
this.c1w_1 = new XYZColorSpaceImpl(Illuminant_getInstance().f1s_1);
|
|
1525
|
+
this.d1w_1 = new XYZColorSpaceImpl(Illuminant_getInstance().d1s_1);
|
|
1526
1526
|
}
|
|
1527
1527
|
var XYZColorSpaces_instance;
|
|
1528
1528
|
function XYZColorSpaces_getInstance() {
|
|
@@ -1531,42 +1531,42 @@
|
|
|
1531
1531
|
return XYZColorSpaces_instance;
|
|
1532
1532
|
}
|
|
1533
1533
|
function XYZColorSpace_0(whitePoint) {
|
|
1534
|
-
return whitePoint.equals(Illuminant_getInstance().
|
|
1534
|
+
return whitePoint.equals(Illuminant_getInstance().f1s_1) ? XYZColorSpaces_getInstance().c1w_1 : whitePoint.equals(Illuminant_getInstance().d1s_1) ? XYZColorSpaces_getInstance().d1w_1 : new XYZColorSpaceImpl(whitePoint);
|
|
1535
1535
|
}
|
|
1536
1536
|
function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
|
|
1537
1537
|
xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
|
|
1538
1538
|
lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
|
|
1539
|
-
var dstWp = _this__u8e3s4.
|
|
1540
|
-
var src = dot_0(xyzToLms, srcWp.
|
|
1541
|
-
var dst = dot_0(xyzToLms, dstWp.
|
|
1539
|
+
var dstWp = _this__u8e3s4.i1u().z1r_1;
|
|
1540
|
+
var src = dot_0(xyzToLms, srcWp.z1v(), srcWp.x1v_1, srcWp.a1w());
|
|
1541
|
+
var dst = dot_0(xyzToLms, dstWp.z1v(), dstWp.x1v_1, dstWp.a1w());
|
|
1542
1542
|
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);
|
|
1543
1543
|
}
|
|
1544
1544
|
function XYZColorSpaceImpl(whitePoint) {
|
|
1545
|
-
this.
|
|
1546
|
-
this.
|
|
1545
|
+
this.f1w_1 = whitePoint;
|
|
1546
|
+
this.g1w_1 = zeroOneComponentInfo('XYZ');
|
|
1547
1547
|
}
|
|
1548
|
-
protoOf(XYZColorSpaceImpl).
|
|
1549
|
-
return this.
|
|
1548
|
+
protoOf(XYZColorSpaceImpl).i1u = function () {
|
|
1549
|
+
return this.f1w_1;
|
|
1550
1550
|
};
|
|
1551
|
-
protoOf(XYZColorSpaceImpl).
|
|
1551
|
+
protoOf(XYZColorSpaceImpl).m = function () {
|
|
1552
1552
|
return 'XYZ';
|
|
1553
1553
|
};
|
|
1554
|
-
protoOf(XYZColorSpaceImpl).
|
|
1555
|
-
return this.
|
|
1554
|
+
protoOf(XYZColorSpaceImpl).l1s = function () {
|
|
1555
|
+
return this.g1w_1;
|
|
1556
1556
|
};
|
|
1557
1557
|
protoOf(XYZColorSpaceImpl).toString = function () {
|
|
1558
|
-
return 'XYZColorSpace(' + this.
|
|
1558
|
+
return 'XYZColorSpace(' + this.f1w_1.toString() + ')';
|
|
1559
1559
|
};
|
|
1560
|
-
protoOf(XYZColorSpaceImpl).
|
|
1560
|
+
protoOf(XYZColorSpaceImpl).z1s = function (x, y, z, alpha) {
|
|
1561
1561
|
return new XYZ(x, y, z, alpha, this);
|
|
1562
1562
|
};
|
|
1563
1563
|
protoOf(XYZColorSpaceImpl).hashCode = function () {
|
|
1564
|
-
return this.
|
|
1564
|
+
return this.f1w_1.hashCode();
|
|
1565
1565
|
};
|
|
1566
1566
|
protoOf(XYZColorSpaceImpl).equals = function (other) {
|
|
1567
1567
|
var tmp;
|
|
1568
1568
|
if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
|
|
1569
|
-
tmp = this.
|
|
1569
|
+
tmp = this.f1w_1.equals(other.i1u());
|
|
1570
1570
|
} else {
|
|
1571
1571
|
tmp = false;
|
|
1572
1572
|
}
|
|
@@ -1582,26 +1582,26 @@
|
|
|
1582
1582
|
}
|
|
1583
1583
|
function xyY(x, y, Y) {
|
|
1584
1584
|
Y = Y === VOID ? 1.0 : Y;
|
|
1585
|
-
this.
|
|
1586
|
-
this.
|
|
1587
|
-
this.
|
|
1585
|
+
this.v1v_1 = x;
|
|
1586
|
+
this.w1v_1 = y;
|
|
1587
|
+
this.x1v_1 = Y;
|
|
1588
1588
|
}
|
|
1589
|
-
protoOf(xyY).
|
|
1590
|
-
return 1 - this.
|
|
1589
|
+
protoOf(xyY).y1v = function () {
|
|
1590
|
+
return 1 - this.v1v_1 - this.w1v_1;
|
|
1591
1591
|
};
|
|
1592
|
-
protoOf(xyY).
|
|
1593
|
-
return this.
|
|
1592
|
+
protoOf(xyY).z1v = function () {
|
|
1593
|
+
return this.v1v_1 * this.x1v_1 / this.w1v_1;
|
|
1594
1594
|
};
|
|
1595
|
-
protoOf(xyY).
|
|
1596
|
-
return (1 - this.
|
|
1595
|
+
protoOf(xyY).a1w = function () {
|
|
1596
|
+
return (1 - this.v1v_1 - this.w1v_1) * this.x1v_1 / this.w1v_1;
|
|
1597
1597
|
};
|
|
1598
1598
|
protoOf(xyY).toString = function () {
|
|
1599
|
-
return 'xyY(x=' + this.
|
|
1599
|
+
return 'xyY(x=' + this.v1v_1 + ', y=' + this.w1v_1 + ', Y=' + this.x1v_1 + ')';
|
|
1600
1600
|
};
|
|
1601
1601
|
protoOf(xyY).hashCode = function () {
|
|
1602
|
-
var result = getNumberHashCode(this.
|
|
1603
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1604
|
-
result = imul(result, 31) + getNumberHashCode(this.
|
|
1602
|
+
var result = getNumberHashCode(this.v1v_1);
|
|
1603
|
+
result = imul(result, 31) + getNumberHashCode(this.w1v_1) | 0;
|
|
1604
|
+
result = imul(result, 31) + getNumberHashCode(this.x1v_1) | 0;
|
|
1605
1605
|
return result;
|
|
1606
1606
|
};
|
|
1607
1607
|
protoOf(xyY).equals = function (other) {
|
|
@@ -1610,30 +1610,30 @@
|
|
|
1610
1610
|
if (!(other instanceof xyY))
|
|
1611
1611
|
return false;
|
|
1612
1612
|
var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
|
|
1613
|
-
if (!equals(this.
|
|
1613
|
+
if (!equals(this.v1v_1, tmp0_other_with_cast.v1v_1))
|
|
1614
1614
|
return false;
|
|
1615
|
-
if (!equals(this.
|
|
1615
|
+
if (!equals(this.w1v_1, tmp0_other_with_cast.w1v_1))
|
|
1616
1616
|
return false;
|
|
1617
|
-
if (!equals(this.
|
|
1617
|
+
if (!equals(this.x1v_1, tmp0_other_with_cast.x1v_1))
|
|
1618
1618
|
return false;
|
|
1619
1619
|
return true;
|
|
1620
1620
|
};
|
|
1621
1621
|
//region block: post-declaration
|
|
1622
|
-
protoOf(Ansi16).
|
|
1623
|
-
protoOf(Ansi256).
|
|
1624
|
-
protoOf(HSV).
|
|
1625
|
-
protoOf(Companion_2).
|
|
1626
|
-
protoOf(Companion_2).
|
|
1627
|
-
protoOf(Companion_2).
|
|
1628
|
-
protoOf(SRGB).
|
|
1629
|
-
protoOf(SRGB).
|
|
1630
|
-
protoOf(SRGB).
|
|
1631
|
-
protoOf(RGBColorSpaceImpl).
|
|
1632
|
-
protoOf(RGBColorSpaceImpl).
|
|
1633
|
-
protoOf(RGBColorSpaceImpl).
|
|
1634
|
-
protoOf(RGBColorSpaceImpl).
|
|
1635
|
-
protoOf(RGBColorSpaceImpl).
|
|
1636
|
-
protoOf(RGBColorSpaceImpl).
|
|
1622
|
+
protoOf(Ansi16).o1r = toXYZ;
|
|
1623
|
+
protoOf(Ansi256).o1r = toXYZ;
|
|
1624
|
+
protoOf(HSV).o1r = toXYZ;
|
|
1625
|
+
protoOf(Companion_2).n1s = invoke$default;
|
|
1626
|
+
protoOf(Companion_2).s1s = invoke$default_0;
|
|
1627
|
+
protoOf(Companion_2).o1s = from255$default;
|
|
1628
|
+
protoOf(SRGB).n1s = invoke$default;
|
|
1629
|
+
protoOf(SRGB).s1s = invoke$default_0;
|
|
1630
|
+
protoOf(SRGB).o1s = from255$default;
|
|
1631
|
+
protoOf(RGBColorSpaceImpl).n1s = invoke$default;
|
|
1632
|
+
protoOf(RGBColorSpaceImpl).d1u = invoke;
|
|
1633
|
+
protoOf(RGBColorSpaceImpl).s1s = invoke$default_0;
|
|
1634
|
+
protoOf(RGBColorSpaceImpl).e1u = invoke_0;
|
|
1635
|
+
protoOf(RGBColorSpaceImpl).f1u = from255;
|
|
1636
|
+
protoOf(RGBColorSpaceImpl).o1s = from255$default;
|
|
1637
1637
|
//endregion
|
|
1638
1638
|
//region block: init
|
|
1639
1639
|
PqNonlinearity_instance = new PqNonlinearity();
|