git-digger 1.8.17 → 1.8.19

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.
@@ -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.$_$.f8;
7
- var initMetadataForInterface = kotlin_kotlin.$_$.k7;
8
- var toString = kotlin_kotlin.$_$.i8;
9
- var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.a1;
10
- var Unit_instance = kotlin_kotlin.$_$.d3;
11
- var initMetadataForClass = kotlin_kotlin.$_$.h7;
12
- var getStringHashCode = kotlin_kotlin.$_$.f7;
6
+ var protoOf = kotlin_kotlin.$_$.c8;
7
+ var initMetadataForInterface = kotlin_kotlin.$_$.h7;
8
+ var toString = kotlin_kotlin.$_$.e8;
9
+ var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.w;
10
+ var Unit_instance = kotlin_kotlin.$_$.z2;
11
+ var initMetadataForClass = kotlin_kotlin.$_$.e7;
12
+ var getStringHashCode = kotlin_kotlin.$_$.c7;
13
13
  var THROW_CCE = kotlin_kotlin.$_$.jb;
14
- var initMetadataForObject = kotlin_kotlin.$_$.m7;
15
- var ArrayList_init_$Create$ = kotlin_kotlin.$_$.l;
16
- var charSequenceLength = kotlin_kotlin.$_$.y6;
17
- var charSequenceGet = kotlin_kotlin.$_$.x6;
18
- var toString_0 = kotlin_kotlin.$_$.m1;
19
- var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.k1;
14
+ var initMetadataForObject = kotlin_kotlin.$_$.j7;
20
15
  var arrayConcat = kotlin_kotlin.$_$.a;
21
- var listOf = kotlin_kotlin.$_$.b5;
22
- var withSign = kotlin_kotlin.$_$.k8;
16
+ var listOf = kotlin_kotlin.$_$.x4;
17
+ var ArrayList_init_$Create$ = kotlin_kotlin.$_$.h;
18
+ var charSequenceLength = kotlin_kotlin.$_$.v6;
19
+ var charSequenceGet = kotlin_kotlin.$_$.u6;
20
+ var toString_0 = kotlin_kotlin.$_$.i1;
21
+ var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.g1;
22
+ var withSign = kotlin_kotlin.$_$.g8;
23
23
  var trimMargin = kotlin_kotlin.$_$.sa;
24
- var hashCode = kotlin_kotlin.$_$.g7;
25
- var equals = kotlin_kotlin.$_$.b7;
26
- var VOID = kotlin_kotlin.$_$.g;
27
- var initMetadataForCompanion = kotlin_kotlin.$_$.i7;
28
- var coerceAtLeast = kotlin_kotlin.$_$.l8;
29
- var getNumberHashCode = kotlin_kotlin.$_$.d7;
30
- var numberToDouble = kotlin_kotlin.$_$.c8;
31
- var roundToInt = kotlin_kotlin.$_$.j8;
32
- var coerceIn = kotlin_kotlin.$_$.p8;
33
- var charCodeAt = kotlin_kotlin.$_$.w6;
24
+ var hashCode = kotlin_kotlin.$_$.d7;
25
+ var equals = kotlin_kotlin.$_$.y6;
26
+ var VOID = kotlin_kotlin.$_$.c;
27
+ var initMetadataForCompanion = kotlin_kotlin.$_$.f7;
28
+ var coerceAtLeast = kotlin_kotlin.$_$.h8;
29
+ var getNumberHashCode = kotlin_kotlin.$_$.a7;
30
+ var roundToInt = kotlin_kotlin.$_$.f8;
31
+ var coerceIn = kotlin_kotlin.$_$.l8;
32
+ var numberToDouble = kotlin_kotlin.$_$.z7;
33
+ var charCodeAt = kotlin_kotlin.$_$.t6;
34
34
  var Char = kotlin_kotlin.$_$.ya;
35
35
  var toInt = kotlin_kotlin.$_$.qa;
36
- var numberRangeToNumber = kotlin_kotlin.$_$.a8;
36
+ var numberRangeToNumber = kotlin_kotlin.$_$.x7;
37
37
  var slice = kotlin_kotlin.$_$.ga;
38
38
  var startsWith = kotlin_kotlin.$_$.ia;
39
- var isInterface = kotlin_kotlin.$_$.v7;
40
- var contentEquals = kotlin_kotlin.$_$.c4;
41
- var coerceAtLeast_0 = kotlin_kotlin.$_$.n8;
42
- var objectCreate = kotlin_kotlin.$_$.e8;
39
+ var isInterface = kotlin_kotlin.$_$.s7;
40
+ var contentEquals = kotlin_kotlin.$_$.y3;
41
+ var coerceAtLeast_0 = kotlin_kotlin.$_$.j8;
42
+ var objectCreate = kotlin_kotlin.$_$.b8;
43
43
  //endregion
44
44
  //region block: pre-declaration
45
45
  function toXYZ() {
46
- return this.v1j().w1j();
46
+ return this.d1j().e1j();
47
47
  }
48
48
  initMetadataForInterface(Color, 'Color');
49
49
  initMetadataForClass(ColorComponentInfo, 'ColorComponentInfo');
@@ -59,25 +59,23 @@
59
59
  initMetadataForClass(HSV, 'HSV', VOID, VOID, [Color]);
60
60
  initMetadataForClass(ICtCp, 'ICtCp', VOID, VOID, [Color]);
61
61
  initMetadataForObject(PqNonlinearity, 'PqNonlinearity');
62
- initMetadataForClass(GammaTransferFunctions, 'GammaTransferFunctions');
63
- initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
64
62
  function invoke$default(r, g, b, alpha, $super) {
65
63
  alpha = alpha === VOID ? 1.0 : alpha;
66
- return $super === VOID ? this.h1l(r, g, b, alpha) : $super.h1l.call(this, r, g, b, alpha);
64
+ return $super === VOID ? this.p1k(r, g, b, alpha) : $super.p1k.call(this, r, g, b, alpha);
67
65
  }
68
66
  function invoke(r, g, b, alpha) {
69
- return this.h1l(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
67
+ return this.p1k(numberToDouble(r), numberToDouble(g), numberToDouble(b), numberToDouble(alpha));
70
68
  }
71
69
  function invoke$default_0(r, g, b, alpha, $super) {
72
70
  alpha = alpha === VOID ? 1.0 : alpha;
73
- return $super === VOID ? this.m1m(r, g, b, alpha) : invoke(r, g, b, alpha);
71
+ return $super === VOID ? this.t1l(r, g, b, alpha) : invoke(r, g, b, alpha);
74
72
  }
75
73
  function from255(r, g, b, alpha) {
76
- return this.h1l(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
74
+ return this.p1k(r / 255.0, g / 255.0, b / 255.0, alpha / 255.0);
77
75
  }
78
76
  function from255$default(r, g, b, alpha, $super) {
79
77
  alpha = alpha === VOID ? 255 : alpha;
80
- return $super === VOID ? this.n1m(r, g, b, alpha) : from255(r, g, b, alpha);
78
+ return $super === VOID ? this.v1l(r, g, b, alpha) : from255(r, g, b, alpha);
81
79
  }
82
80
  function invoke_0(hex) {
83
81
  var tmp = parseHex(validateHex(hex), 0);
@@ -91,13 +89,15 @@
91
89
  } else {
92
90
  tmp_2 = 255;
93
91
  }
94
- return this.n1m(tmp, tmp_0, tmp_1, tmp_2);
92
+ return this.v1l(tmp, tmp_0, tmp_1, tmp_2);
95
93
  }
96
94
  initMetadataForInterface(RGBColorSpace, 'RGBColorSpace');
97
95
  initMetadataForCompanion(Companion_2, VOID, [RGBColorSpace]);
98
96
  initMetadataForClass(RGB, 'RGB', VOID, VOID, [Color]);
99
- initMetadataForObject(RGBColorSpaces, 'RGBColorSpaces');
97
+ initMetadataForClass(GammaTransferFunctions, 'GammaTransferFunctions');
98
+ initMetadataForObject(LinearTransferFunctions, 'LinearTransferFunctions');
100
99
  initMetadataForObject(SRGB, 'SRGB', VOID, VOID, [RGBColorSpace]);
100
+ initMetadataForObject(RGBColorSpaces, 'RGBColorSpaces');
101
101
  initMetadataForClass(RGBColorSpaceImpl, 'RGBColorSpaceImpl', VOID, VOID, [RGBColorSpace]);
102
102
  initMetadataForObject(SRGBTransferFunctions, 'SRGBTransferFunctions');
103
103
  initMetadataForObject(ACESccTransferFunctions, 'ACESccTransferFunctions');
@@ -115,26 +115,26 @@
115
115
  function Color() {
116
116
  }
117
117
  function ColorComponentInfo(name, isPolar, min, max) {
118
- this.c1k_1 = name;
119
- this.d1k_1 = isPolar;
120
- this.e1k_1 = min;
121
- this.f1k_1 = max;
118
+ this.k1j_1 = name;
119
+ this.l1j_1 = isPolar;
120
+ this.m1j_1 = min;
121
+ this.n1j_1 = max;
122
122
  // Inline function 'kotlin.require' call
123
- if (!(this.e1k_1 <= this.f1k_1)) {
123
+ if (!(this.m1j_1 <= this.n1j_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.g1k_1 = name;
130
- this.h1k_1 = chromaticity;
129
+ this.o1j_1 = name;
130
+ this.p1j_1 = chromaticity;
131
131
  }
132
132
  protoOf(WhitePoint).toString = function () {
133
- return this.g1k_1;
133
+ return this.o1j_1;
134
134
  };
135
135
  protoOf(WhitePoint).hashCode = function () {
136
- var result = getStringHashCode(this.g1k_1);
137
- result = imul(result, 31) + this.h1k_1.hashCode() | 0;
136
+ var result = getStringHashCode(this.o1j_1);
137
+ result = imul(result, 31) + this.p1j_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.g1k_1 === tmp0_other_with_cast.g1k_1))
146
+ if (!(this.o1j_1 === tmp0_other_with_cast.o1j_1))
147
147
  return false;
148
- if (!this.h1k_1.equals(tmp0_other_with_cast.h1k_1))
148
+ if (!this.p1j_1.equals(tmp0_other_with_cast.p1j_1))
149
149
  return false;
150
150
  return true;
151
151
  };
152
152
  function Illuminant() {
153
153
  Illuminant_instance = this;
154
- this.i1k_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
155
- this.j1k_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
156
- this.k1k_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
157
- this.l1k_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
158
- this.m1k_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
159
- this.n1k_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
160
- this.o1k_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
161
- this.p1k_1 = new WhitePoint('E', xyY_init_$Create$(1.0 / 3.0, 1.0 / 3.0));
154
+ this.q1j_1 = new WhitePoint('A', xyY_init_$Create$(0.44758, 0.40745));
155
+ this.r1j_1 = new WhitePoint('B', xyY_init_$Create$(0.34842, 0.35161));
156
+ this.s1j_1 = new WhitePoint('C', xyY_init_$Create$(0.31006, 0.31616));
157
+ this.t1j_1 = new WhitePoint('D50', xyY_init_$Create$(0.3457, 0.3585));
158
+ this.u1j_1 = new WhitePoint('D55', xyY_init_$Create$(0.33243, 0.34744));
159
+ this.v1j_1 = new WhitePoint('D65', xyY_init_$Create$(0.3127, 0.329));
160
+ this.w1j_1 = new WhitePoint('D75', xyY_init_$Create$(0.29903, 0.31488));
161
+ this.x1j_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() {
@@ -171,6 +171,10 @@
171
171
  return alphaInfo;
172
172
  }
173
173
  var alphaInfo;
174
+ function componentInfoList(c) {
175
+ _init_properties_ColorSpaceUtils_kt__cnwylg();
176
+ return listOf(arrayConcat([c, [get_alphaInfo()]]));
177
+ }
174
178
  function zeroOneComponentInfo(name) {
175
179
  _init_properties_ColorSpaceUtils_kt__cnwylg();
176
180
  // Inline function 'kotlin.collections.buildList' call
@@ -183,10 +187,10 @@
183
187
  var item = charSequenceGet(name, inductionVariable);
184
188
  inductionVariable = inductionVariable + 1 | 0;
185
189
  var tmp$ret$0 = new ColorComponentInfo(toString_0(item), false, 0.0, 1.0);
186
- this_0.e(tmp$ret$0);
190
+ this_0.g(tmp$ret$0);
187
191
  }
188
- this_0.e(get_alphaInfo());
189
- return this_0.e5();
192
+ this_0.g(get_alphaInfo());
193
+ return this_0.q4();
190
194
  }
191
195
  function polarComponentInfo(name, l, r) {
192
196
  _init_properties_ColorSpaceUtils_kt__cnwylg();
@@ -200,14 +204,10 @@
200
204
  var item = charSequenceGet(name, inductionVariable);
201
205
  inductionVariable = inductionVariable + 1 | 0;
202
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);
203
- this_0.e(tmp$ret$0);
207
+ this_0.g(tmp$ret$0);
204
208
  }
205
- this_0.e(get_alphaInfo());
206
- return this_0.e5();
207
- }
208
- function componentInfoList(c) {
209
- _init_properties_ColorSpaceUtils_kt__cnwylg();
210
- return listOf(arrayConcat([c, [get_alphaInfo()]]));
209
+ this_0.g(get_alphaInfo());
210
+ return this_0.q4();
211
211
  }
212
212
  var properties_initialized_ColorSpaceUtils_kt_kskdoe;
213
213
  function _init_properties_ColorSpaceUtils_kt__cnwylg() {
@@ -234,12 +234,12 @@
234
234
  CAT02_LMS_TO_XYZ = inverse(get_CAT02_XYZ_TO_LMS());
235
235
  }
236
236
  }
237
- function spow(_this__u8e3s4, p) {
238
- return spow_0(_this__u8e3s4, p);
239
- }
240
237
  function normalizeDeg(_this__u8e3s4) {
241
238
  return (_this__u8e3s4 % 360.0 + 360.0) % 360.0;
242
239
  }
240
+ function spow(_this__u8e3s4, p) {
241
+ return spow_0(_this__u8e3s4, p);
242
+ }
243
243
  function spow_0(_this__u8e3s4, p) {
244
244
  // Inline function 'kotlin.math.absoluteValue' call
245
245
  // Inline function 'kotlin.math.pow' call
@@ -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.q1k_1 : THROW_CCE();
288
+ var tmp0_other_with_cast = other instanceof Matrix ? other.y1j_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.q1k_1 = rowMajor;
294
+ this.y1j_1 = rowMajor;
295
295
  }
296
296
  protoOf(Matrix).toString = function () {
297
- return Matrix__toString_impl_l0abk0(this.q1k_1);
297
+ return Matrix__toString_impl_l0abk0(this.y1j_1);
298
298
  };
299
299
  protoOf(Matrix).hashCode = function () {
300
- return Matrix__hashCode_impl_s9ntm9(this.q1k_1);
300
+ return Matrix__hashCode_impl_s9ntm9(this.y1j_1);
301
301
  };
302
302
  protoOf(Matrix).equals = function (other) {
303
- return Matrix__equals_impl_g5p8p9(this.q1k_1, other);
303
+ return Matrix__equals_impl_g5p8p9(this.y1j_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.r1k_1 : THROW_CCE();
381
+ var tmp0_other_with_cast = other instanceof Vector ? other.z1j_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.r1k_1 = values;
387
+ this.z1j_1 = values;
388
388
  }
389
389
  protoOf(Vector).toString = function () {
390
- return Vector__toString_impl_hn2ybi(this.r1k_1);
390
+ return Vector__toString_impl_hn2ybi(this.z1j_1);
391
391
  };
392
392
  protoOf(Vector).hashCode = function () {
393
- return Vector__hashCode_impl_442yhd(this.r1k_1);
393
+ return Vector__hashCode_impl_442yhd(this.z1j_1);
394
394
  };
395
395
  protoOf(Vector).equals = function (other) {
396
- return Vector__equals_impl_hy6igl(this.r1k_1, other);
396
+ return Vector__equals_impl_hy6igl(this.z1j_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,10 +407,13 @@
407
407
  }
408
408
  function Companion() {
409
409
  Companion_instance = this;
410
- this.s1k_1 = componentInfoList([new ColorComponentInfo('code', false, 30.0, 107.0)]);
410
+ this.a1k_1 = componentInfoList([new ColorComponentInfo('code', false, 30.0, 107.0)]);
411
411
  }
412
- protoOf(Companion).t1k = function () {
413
- return this.s1k_1;
412
+ protoOf(Companion).l12 = function () {
413
+ return 'Ansi16';
414
+ };
415
+ protoOf(Companion).b1k = function () {
416
+ return this.a1k_1;
414
417
  };
415
418
  var Companion_instance;
416
419
  function Companion_getInstance() {
@@ -420,38 +423,38 @@
420
423
  }
421
424
  function Ansi16(code) {
422
425
  Companion_getInstance();
423
- this.u1k_1 = code;
426
+ this.c1k_1 = code;
424
427
  }
425
- protoOf(Ansi16).u1j = function () {
428
+ protoOf(Ansi16).c1j = function () {
426
429
  return Companion_getInstance();
427
430
  };
428
- protoOf(Ansi16).v1j = function () {
429
- switch (this.u1k_1) {
431
+ protoOf(Ansi16).d1j = function () {
432
+ switch (this.c1k_1) {
430
433
  case 30:
431
434
  case 40:
432
- return Companion_getInstance_2().v1k(0.0, 0.0, 0.0);
435
+ return Companion_getInstance_2().d1k(0.0, 0.0, 0.0);
433
436
  case 90:
434
437
  case 100:
435
- return Companion_getInstance_2().w1k(128, 128, 128);
438
+ return Companion_getInstance_2().e1k(128, 128, 128);
436
439
  case 37:
437
440
  case 47:
438
- return Companion_getInstance_2().w1k(192, 192, 192);
441
+ return Companion_getInstance_2().e1k(192, 192, 192);
439
442
  case 97:
440
443
  case 107:
441
- return Companion_getInstance_2().v1k(1.0, 1.0, 1.0);
444
+ return Companion_getInstance_2().d1k(1.0, 1.0, 1.0);
442
445
  }
443
- var color = this.u1k_1 % 10 | 0;
444
- var mul = this.u1k_1 > 50 ? 1.0 : 0.5;
446
+ var color = this.c1k_1 % 10 | 0;
447
+ var mul = this.c1k_1 > 50 ? 1.0 : 0.5;
445
448
  var r = (color % 2 | 0) * mul;
446
449
  var g = ((color / 2 | 0) % 2 | 0) * mul;
447
450
  var b = ((color / 4 | 0) % 2 | 0) * mul;
448
- return Companion_getInstance_2().v1k(r, g, b);
451
+ return Companion_getInstance_2().d1k(r, g, b);
449
452
  };
450
453
  protoOf(Ansi16).toString = function () {
451
- return 'Ansi16(code=' + this.u1k_1 + ')';
454
+ return 'Ansi16(code=' + this.c1k_1 + ')';
452
455
  };
453
456
  protoOf(Ansi16).hashCode = function () {
454
- return this.u1k_1;
457
+ return this.c1k_1;
455
458
  };
456
459
  protoOf(Ansi16).equals = function (other) {
457
460
  if (this === other)
@@ -459,16 +462,19 @@
459
462
  if (!(other instanceof Ansi16))
460
463
  return false;
461
464
  var tmp0_other_with_cast = other instanceof Ansi16 ? other : THROW_CCE();
462
- if (!(this.u1k_1 === tmp0_other_with_cast.u1k_1))
465
+ if (!(this.c1k_1 === tmp0_other_with_cast.c1k_1))
463
466
  return false;
464
467
  return true;
465
468
  };
466
469
  function Companion_0() {
467
470
  Companion_instance_0 = this;
468
- this.x1k_1 = componentInfoList([new ColorComponentInfo('code', false, 0.0, 255.0)]);
471
+ this.f1k_1 = componentInfoList([new ColorComponentInfo('code', false, 0.0, 255.0)]);
469
472
  }
470
- protoOf(Companion_0).t1k = function () {
471
- return this.x1k_1;
473
+ protoOf(Companion_0).l12 = function () {
474
+ return 'Ansi256';
475
+ };
476
+ protoOf(Companion_0).b1k = function () {
477
+ return this.f1k_1;
472
478
  };
473
479
  var Companion_instance_0;
474
480
  function Companion_getInstance_0() {
@@ -478,19 +484,19 @@
478
484
  }
479
485
  function Ansi256(code) {
480
486
  Companion_getInstance_0();
481
- this.y1k_1 = code;
487
+ this.g1k_1 = code;
482
488
  }
483
- protoOf(Ansi256).u1j = function () {
489
+ protoOf(Ansi256).c1j = function () {
484
490
  return Companion_getInstance_0();
485
491
  };
486
- protoOf(Ansi256).v1j = function () {
487
- if (this.y1k_1 < 16)
488
- return this.z1k().v1j();
489
- if (this.y1k_1 >= 232) {
490
- var c = imul(this.y1k_1 - 232 | 0, 10) + 8 | 0;
491
- return Companion_getInstance_2().w1k(c, c, c);
492
+ protoOf(Ansi256).d1j = function () {
493
+ if (this.g1k_1 < 16)
494
+ return this.h1k().d1j();
495
+ if (this.g1k_1 >= 232) {
496
+ var c = imul(this.g1k_1 - 232 | 0, 10) + 8 | 0;
497
+ return Companion_getInstance_2().e1k(c, c, c);
492
498
  }
493
- var c_0 = this.y1k_1 - 16 | 0;
499
+ var c_0 = this.g1k_1 - 16 | 0;
494
500
  var rem = c_0 % 36 | 0;
495
501
  // Inline function 'kotlin.math.floor' call
496
502
  var x = c_0 / 36.0;
@@ -499,16 +505,16 @@
499
505
  var x_0 = rem / 6.0;
500
506
  var g = Math.floor(x_0) / 5.0;
501
507
  var b = (rem % 6 | 0) / 5.0;
502
- return Companion_getInstance_2().a1l(r, g, b);
508
+ return Companion_getInstance_2().i1k(r, g, b);
503
509
  };
504
- protoOf(Ansi256).z1k = function () {
505
- return this.y1k_1 < 8 ? new Ansi16(this.y1k_1 + 30 | 0) : this.y1k_1 < 16 ? new Ansi16((this.y1k_1 - 8 | 0) + 90 | 0) : this.v1j().z1k();
510
+ protoOf(Ansi256).h1k = function () {
511
+ return this.g1k_1 < 8 ? new Ansi16(this.g1k_1 + 30 | 0) : this.g1k_1 < 16 ? new Ansi16((this.g1k_1 - 8 | 0) + 90 | 0) : this.d1j().h1k();
506
512
  };
507
513
  protoOf(Ansi256).toString = function () {
508
- return 'Ansi256(code=' + this.y1k_1 + ')';
514
+ return 'Ansi256(code=' + this.g1k_1 + ')';
509
515
  };
510
516
  protoOf(Ansi256).hashCode = function () {
511
- return this.y1k_1;
517
+ return this.g1k_1;
512
518
  };
513
519
  protoOf(Ansi256).equals = function (other) {
514
520
  if (this === other)
@@ -516,16 +522,19 @@
516
522
  if (!(other instanceof Ansi256))
517
523
  return false;
518
524
  var tmp0_other_with_cast = other instanceof Ansi256 ? other : THROW_CCE();
519
- if (!(this.y1k_1 === tmp0_other_with_cast.y1k_1))
525
+ if (!(this.g1k_1 === tmp0_other_with_cast.g1k_1))
520
526
  return false;
521
527
  return true;
522
528
  };
523
529
  function Companion_1() {
524
530
  Companion_instance_1 = this;
525
- this.b1l_1 = polarComponentInfo('HSV', 0.0, 1.0);
531
+ this.j1k_1 = polarComponentInfo('HSV', 0.0, 1.0);
526
532
  }
527
- protoOf(Companion_1).t1k = function () {
528
- return this.b1l_1;
533
+ protoOf(Companion_1).l12 = function () {
534
+ return 'HSV';
535
+ };
536
+ protoOf(Companion_1).b1k = function () {
537
+ return this.j1k_1;
529
538
  };
530
539
  var Companion_instance_1;
531
540
  function Companion_getInstance_1() {
@@ -544,30 +553,30 @@
544
553
  function HSV(h, s, v, alpha) {
545
554
  Companion_getInstance_1();
546
555
  alpha = alpha === VOID ? 1.0 : alpha;
547
- this.c1l_1 = h;
548
- this.d1l_1 = s;
549
- this.e1l_1 = v;
550
- this.f1l_1 = alpha;
556
+ this.k1k_1 = h;
557
+ this.l1k_1 = s;
558
+ this.m1k_1 = v;
559
+ this.n1k_1 = alpha;
551
560
  }
552
- protoOf(HSV).u1j = function () {
561
+ protoOf(HSV).c1j = function () {
553
562
  return Companion_getInstance_1();
554
563
  };
555
- protoOf(HSV).v1j = function () {
556
- if (this.d1l_1 < 1.0E-7)
557
- return Companion_getInstance_2().h1l(this.e1l_1, this.e1l_1, this.e1l_1, this.f1l_1);
558
- var v = this.e1l_1;
559
- var h = normalizeDeg_0(this.c1l_1) / 60.0;
560
- var s = this.d1l_1;
561
- return SRGB_getInstance().h1l(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.f1l_1);
564
+ protoOf(HSV).d1j = function () {
565
+ if (this.l1k_1 < 1.0E-7)
566
+ return Companion_getInstance_2().p1k(this.m1k_1, this.m1k_1, this.m1k_1, this.n1k_1);
567
+ var v = this.m1k_1;
568
+ var h = normalizeDeg(this.k1k_1) / 60.0;
569
+ var s = this.l1k_1;
570
+ return SRGB_getInstance().p1k(toSRGB$f(h, v, s, 5), toSRGB$f(h, v, s, 3), toSRGB$f(h, v, s, 1), this.n1k_1);
562
571
  };
563
572
  protoOf(HSV).toString = function () {
564
- return 'HSV(h=' + this.c1l_1 + ', s=' + this.d1l_1 + ', v=' + this.e1l_1 + ', alpha=' + this.f1l_1 + ')';
573
+ return 'HSV(h=' + this.k1k_1 + ', s=' + this.l1k_1 + ', v=' + this.m1k_1 + ', alpha=' + this.n1k_1 + ')';
565
574
  };
566
575
  protoOf(HSV).hashCode = function () {
567
- var result = getNumberHashCode(this.c1l_1);
568
- result = imul(result, 31) + getNumberHashCode(this.d1l_1) | 0;
569
- result = imul(result, 31) + getNumberHashCode(this.e1l_1) | 0;
570
- result = imul(result, 31) + getNumberHashCode(this.f1l_1) | 0;
576
+ var result = getNumberHashCode(this.k1k_1);
577
+ result = imul(result, 31) + getNumberHashCode(this.l1k_1) | 0;
578
+ result = imul(result, 31) + getNumberHashCode(this.m1k_1) | 0;
579
+ result = imul(result, 31) + getNumberHashCode(this.n1k_1) | 0;
571
580
  return result;
572
581
  };
573
582
  protoOf(HSV).equals = function (other) {
@@ -576,13 +585,13 @@
576
585
  if (!(other instanceof HSV))
577
586
  return false;
578
587
  var tmp0_other_with_cast = other instanceof HSV ? other : THROW_CCE();
579
- if (!equals(this.c1l_1, tmp0_other_with_cast.c1l_1))
588
+ if (!equals(this.k1k_1, tmp0_other_with_cast.k1k_1))
580
589
  return false;
581
- if (!equals(this.d1l_1, tmp0_other_with_cast.d1l_1))
590
+ if (!equals(this.l1k_1, tmp0_other_with_cast.l1k_1))
582
591
  return false;
583
- if (!equals(this.e1l_1, tmp0_other_with_cast.e1l_1))
592
+ if (!equals(this.m1k_1, tmp0_other_with_cast.m1k_1))
584
593
  return false;
585
- if (!equals(this.f1l_1, tmp0_other_with_cast.f1l_1))
594
+ if (!equals(this.n1k_1, tmp0_other_with_cast.n1k_1))
586
595
  return false;
587
596
  return true;
588
597
  };
@@ -624,43 +633,43 @@
624
633
  var ICTCP_LMS_TO_XYZ;
625
634
  function ICtCp() {
626
635
  }
627
- protoOf(ICtCp).n1l = function () {
628
- var fo = RGBColorSpaces_getInstance().v1l_1.a1m();
636
+ protoOf(ICtCp).v1k = function () {
637
+ var fo = RGBColorSpaces_getInstance().d1l_1.i1l();
629
638
  var tmp0 = get_ICTCP_ICTCP_to_LMS();
630
- var tmp2 = this.j1l_1;
631
- var tmp4 = this.k1l_1;
639
+ var tmp2 = this.r1k_1;
640
+ var tmp4 = this.s1k_1;
632
641
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
633
- var v2 = this.l1l_1;
642
+ var v2 = this.t1k_1;
634
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;
635
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;
636
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;
637
646
  var tmp0_1 = get_ICTCP_LMS_to_RGB();
638
- var tmp2_1 = PqNonlinearity_instance.j1m(tmp0_0);
639
- var tmp4_0 = PqNonlinearity_instance.j1m(tmp2_0);
647
+ var tmp2_1 = PqNonlinearity_instance.r1l(tmp0_0);
648
+ var tmp4_0 = PqNonlinearity_instance.r1l(tmp2_0);
640
649
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
641
- var v2_0 = PqNonlinearity_instance.j1m(s);
650
+ var v2_0 = PqNonlinearity_instance.r1l(s);
642
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;
643
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;
644
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;
645
- return RGBColorSpaces_getInstance().v1l_1.h1l(fo.k1m(tmp0_2), fo.k1m(tmp2_2), fo.k1m(b), this.m1l_1);
654
+ return RGBColorSpaces_getInstance().d1l_1.p1k(fo.s1l(tmp0_2), fo.s1l(tmp2_2), fo.s1l(b), this.u1k_1);
646
655
  };
647
656
  function PqNonlinearity() {
648
- this.b1m_1 = 0.1593017578125;
649
- this.c1m_1 = 78.84375;
650
- this.d1m_1 = 0.8359375;
651
- this.e1m_1 = 18.8515625;
652
- this.f1m_1 = 18.6875;
653
- this.g1m_1 = 10000.0;
654
- this.h1m_1 = 6.277394636015326;
655
- this.i1m_1 = 0.012683313515655966;
656
- }
657
- protoOf(PqNonlinearity).j1m = function (x) {
657
+ this.j1l_1 = 0.1593017578125;
658
+ this.k1l_1 = 78.84375;
659
+ this.l1l_1 = 0.8359375;
660
+ this.m1l_1 = 18.8515625;
661
+ this.n1l_1 = 18.6875;
662
+ this.o1l_1 = 10000.0;
663
+ this.p1l_1 = 6.277394636015326;
664
+ this.q1l_1 = 0.012683313515655966;
665
+ }
666
+ protoOf(PqNonlinearity).r1l = function (x) {
658
667
  var vp = spow(x, 0.012683313515655966);
659
668
  var n = coerceAtLeast(vp - 0.8359375, 0.0);
660
669
  var l = spow_0(n / (18.8515625 - 18.6875 * vp), 6.277394636015326);
661
670
  return 10000.0 * l;
662
671
  };
663
- protoOf(PqNonlinearity).k1m = function (x) {
672
+ protoOf(PqNonlinearity).s1l = function (x) {
664
673
  var yp = spow_0(x / 10000.0, 0.1593017578125);
665
674
  return spow_0((0.8359375 + 18.8515625 * yp) / (1.0 + 18.6875 * yp), 78.84375);
666
675
  };
@@ -682,84 +691,45 @@
682
691
  ICTCP_LMS_TO_XYZ = inverse(get_ICTCP_XYZ_TO_LMS());
683
692
  }
684
693
  }
685
- function GammaTransferFunctions(gamma) {
686
- this.l1m_1 = gamma;
687
- }
688
- protoOf(GammaTransferFunctions).j1m = function (x) {
689
- return spow(x, this.l1m_1);
690
- };
691
- protoOf(GammaTransferFunctions).k1m = function (x) {
692
- return spow(x, 1.0 / this.l1m_1);
693
- };
694
- protoOf(GammaTransferFunctions).toString = function () {
695
- return 'GammaTransferFunctions(gamma=' + this.l1m_1 + ')';
696
- };
697
- protoOf(GammaTransferFunctions).hashCode = function () {
698
- return getNumberHashCode(this.l1m_1);
699
- };
700
- protoOf(GammaTransferFunctions).equals = function (other) {
701
- if (this === other)
702
- return true;
703
- if (!(other instanceof GammaTransferFunctions))
704
- return false;
705
- var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
706
- if (!equals(this.l1m_1, tmp0_other_with_cast.l1m_1))
707
- return false;
708
- return true;
709
- };
710
- function LinearTransferFunctions() {
711
- }
712
- protoOf(LinearTransferFunctions).j1m = function (x) {
713
- return x;
714
- };
715
- protoOf(LinearTransferFunctions).k1m = function (x) {
716
- return x;
717
- };
718
- var LinearTransferFunctions_instance;
719
- function LinearTransferFunctions_getInstance() {
720
- return LinearTransferFunctions_instance;
721
- }
722
- function RGBColorSpace() {
723
- }
724
694
  function Companion_2() {
725
695
  Companion_instance_2 = this;
726
- this.g1l_1 = RGBColorSpaces_getInstance().o1l_1;
696
+ this.o1k_1 = RGBColorSpaces_getInstance().w1k_1;
727
697
  }
728
- protoOf(Companion_2).h1l = function (r, g, b, alpha) {
729
- return this.g1l_1.h1l(r, g, b, alpha);
698
+ protoOf(Companion_2).p1k = function (r, g, b, alpha) {
699
+ return this.o1k_1.p1k(r, g, b, alpha);
730
700
  };
731
- protoOf(Companion_2).m1m = function (r, g, b, alpha) {
732
- return this.g1l_1.m1m(r, g, b, alpha);
701
+ protoOf(Companion_2).t1l = function (r, g, b, alpha) {
702
+ return this.o1k_1.t1l(r, g, b, alpha);
733
703
  };
734
- protoOf(Companion_2).o1m = function (hex) {
735
- return this.g1l_1.o1m(hex);
704
+ protoOf(Companion_2).u1l = function (hex) {
705
+ return this.o1k_1.u1l(hex);
736
706
  };
737
- protoOf(Companion_2).n1m = function (r, g, b, alpha) {
738
- return this.g1l_1.n1m(r, g, b, alpha);
707
+ protoOf(Companion_2).v1l = function (r, g, b, alpha) {
708
+ return this.o1k_1.v1l(r, g, b, alpha);
739
709
  };
740
- protoOf(Companion_2).a1m = function () {
741
- return this.g1l_1.a1m();
710
+ protoOf(Companion_2).i1l = function () {
711
+ return this.o1k_1.i1l();
742
712
  };
743
- protoOf(Companion_2).p1m = function () {
744
- return this.g1l_1.p1m();
713
+ protoOf(Companion_2).w1l = function () {
714
+ return this.o1k_1.w1l();
745
715
  };
746
- protoOf(Companion_2).q1m = function () {
747
- return this.g1l_1.q1m();
716
+ protoOf(Companion_2).x1l = function () {
717
+ return this.o1k_1.x1l();
748
718
  };
749
- protoOf(Companion_2).r1m = function () {
750
- return this.g1l_1.r1m();
719
+ protoOf(Companion_2).y1l = function () {
720
+ return this.o1k_1.y1l();
751
721
  };
752
- protoOf(Companion_2).c13 = function () {
753
- return this.g1l_1.c13();
722
+ protoOf(Companion_2).l12 = function () {
723
+ return this.o1k_1.l12();
754
724
  };
755
- protoOf(Companion_2).t1k = function () {
756
- return this.g1l_1.t1k();
725
+ protoOf(Companion_2).b1k = function () {
726
+ return this.o1k_1.b1k();
757
727
  };
758
728
  protoOf(Companion_2).equals = function (other) {
759
- return equals(RGBColorSpaces_getInstance().o1l_1, other);
729
+ return equals(RGBColorSpaces_getInstance().w1k_1, other);
760
730
  };
761
731
  protoOf(Companion_2).hashCode = function () {
762
- return hashCode(RGBColorSpaces_getInstance().o1l_1);
732
+ return hashCode(RGBColorSpaces_getInstance().w1k_1);
763
733
  };
764
734
  var Companion_instance_2;
765
735
  function Companion_getInstance_2() {
@@ -769,145 +739,145 @@
769
739
  }
770
740
  function RGB(r, g, b, alpha, space) {
771
741
  Companion_getInstance_2();
772
- this.x1j_1 = r;
773
- this.y1j_1 = g;
774
- this.z1j_1 = b;
775
- this.a1k_1 = alpha;
776
- this.b1k_1 = space;
742
+ this.f1j_1 = r;
743
+ this.g1j_1 = g;
744
+ this.h1j_1 = b;
745
+ this.i1j_1 = alpha;
746
+ this.j1j_1 = space;
777
747
  }
778
- protoOf(RGB).u1j = function () {
779
- return this.b1k_1;
748
+ protoOf(RGB).c1j = function () {
749
+ return this.j1j_1;
780
750
  };
781
- protoOf(RGB).s1m = function () {
751
+ protoOf(RGB).z1l = function () {
782
752
  // Inline function 'kotlin.math.roundToInt' call
783
- var this_0 = this.x1j_1 * 255;
753
+ var this_0 = this.f1j_1 * 255;
784
754
  return roundToInt(this_0);
785
755
  };
786
- protoOf(RGB).t1m = function () {
756
+ protoOf(RGB).a1m = function () {
787
757
  // Inline function 'kotlin.math.roundToInt' call
788
- var this_0 = this.y1j_1 * 255;
758
+ var this_0 = this.g1j_1 * 255;
789
759
  return roundToInt(this_0);
790
760
  };
791
- protoOf(RGB).u1m = function () {
761
+ protoOf(RGB).b1m = function () {
792
762
  // Inline function 'kotlin.math.roundToInt' call
793
- var this_0 = this.z1j_1 * 255;
763
+ var this_0 = this.h1j_1 * 255;
794
764
  return roundToInt(this_0);
795
765
  };
796
- protoOf(RGB).v1m = function (space) {
797
- var f = SRGB_getInstance().a1m();
798
- return equals(this.b1k_1, space) ? this : equals(this.b1k_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().p1l_1) ? space.h1l(f.j1m(this.x1j_1), f.j1m(this.y1j_1), f.j1m(this.z1j_1), this.a1k_1) : equals(this.b1k_1, RGBColorSpaces_getInstance().p1l_1) && equals(space, SRGB_getInstance()) ? space.h1l(f.k1m(this.x1j_1), f.k1m(this.y1j_1), f.k1m(this.z1j_1), this.a1k_1) : this.w1j().b1n(space);
766
+ protoOf(RGB).c1m = function (space) {
767
+ var f = SRGB_getInstance().i1l();
768
+ return equals(this.j1j_1, space) ? this : equals(this.j1j_1, SRGB_getInstance()) && equals(space, RGBColorSpaces_getInstance().x1k_1) ? space.p1k(f.r1l(this.f1j_1), f.r1l(this.g1j_1), f.r1l(this.h1j_1), this.i1j_1) : equals(this.j1j_1, RGBColorSpaces_getInstance().x1k_1) && equals(space, SRGB_getInstance()) ? space.p1k(f.s1l(this.f1j_1), f.s1l(this.g1j_1), f.s1l(this.h1j_1), this.i1j_1) : this.e1j().i1m(space);
799
769
  };
800
- protoOf(RGB).c1n = function () {
770
+ protoOf(RGB).j1m = function () {
801
771
  var tmp$ret$3;
802
772
  $l$block: {
803
773
  // Inline function 'com.github.ajalt.colormath.model.RGB.srgbHueMinMaxChroma' call
804
774
  // Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
805
- var $this$toSRGB = this.v1m(SRGB_getInstance());
806
- var r = $this$toSRGB.x1j_1;
807
- var g = $this$toSRGB.y1j_1;
808
- var b = $this$toSRGB.z1j_1;
775
+ var $this$toSRGB = this.c1m(SRGB_getInstance());
776
+ var r = $this$toSRGB.f1j_1;
777
+ var g = $this$toSRGB.g1j_1;
778
+ var b = $this$toSRGB.h1j_1;
809
779
  // Inline function 'kotlin.comparisons.minOf' call
810
780
  var min = Math.min(r, g, b);
811
781
  // Inline function 'kotlin.comparisons.maxOf' call
812
782
  var max = Math.max(r, g, b);
813
783
  var chroma = max - min;
814
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;
815
- var h_0 = normalizeDeg(h);
785
+ var h_0 = normalizeDeg_0(h);
816
786
  var s = max === 0.0 ? 0.0 : chroma / max;
817
- tmp$ret$3 = new HSV(h_0, s, max, this.a1k_1);
787
+ tmp$ret$3 = new HSV(h_0, s, max, this.i1j_1);
818
788
  break $l$block;
819
789
  }
820
790
  return tmp$ret$3;
821
791
  };
822
- protoOf(RGB).w1j = function () {
823
- var f = this.b1k_1.a1m();
824
- var tmp0 = _Matrix___init__impl__q3kp4w(this.b1k_1.p1m());
825
- var tmp2 = f.j1m(this.x1j_1);
826
- var tmp4 = f.j1m(this.y1j_1);
792
+ protoOf(RGB).e1j = function () {
793
+ var f = this.j1j_1.i1l();
794
+ var tmp0 = _Matrix___init__impl__q3kp4w(this.j1j_1.w1l());
795
+ var tmp2 = f.r1l(this.f1j_1);
796
+ var tmp4 = f.r1l(this.g1j_1);
827
797
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
828
- var v2 = f.j1m(this.z1j_1);
798
+ var v2 = f.r1l(this.h1j_1);
829
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;
830
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;
831
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;
832
- return XYZColorSpace_0(this.b1k_1.r1m()).h1l(tmp0_0, tmp2_0, z, this.a1k_1);
802
+ return XYZColorSpace_0(this.j1j_1.y1l()).p1k(tmp0_0, tmp2_0, z, this.i1j_1);
833
803
  };
834
- protoOf(RGB).z1k = function () {
804
+ protoOf(RGB).h1k = function () {
835
805
  // Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
836
- var $this$toSRGB = this.v1m(SRGB_getInstance());
806
+ var $this$toSRGB = this.c1m(SRGB_getInstance());
837
807
  // Inline function 'kotlin.math.roundToInt' call
838
- var this_0 = $this$toSRGB.c1n().e1l_1 * 100;
808
+ var this_0 = $this$toSRGB.j1m().m1k_1 * 100;
839
809
  var value = roundToInt(this_0);
840
810
  if (value === 30)
841
811
  return new Ansi16(30);
842
812
  var v = value / 50 | 0;
843
813
  // Inline function 'kotlin.math.roundToInt' call
844
- var this_1 = $this$toSRGB.z1j_1;
814
+ var this_1 = $this$toSRGB.h1j_1;
845
815
  var tmp$ret$1 = roundToInt(this_1);
846
816
  var tmp = imul(tmp$ret$1, 4);
847
817
  // Inline function 'kotlin.math.roundToInt' call
848
- var this_2 = $this$toSRGB.y1j_1;
818
+ var this_2 = $this$toSRGB.g1j_1;
849
819
  var tmp$ret$2 = roundToInt(this_2);
850
820
  var tmp_0 = tmp | imul(tmp$ret$2, 2);
851
821
  // Inline function 'kotlin.math.roundToInt' call
852
- var this_3 = $this$toSRGB.x1j_1;
822
+ var this_3 = $this$toSRGB.f1j_1;
853
823
  var ansi = 30 + (tmp_0 | roundToInt(this_3)) | 0;
854
824
  return new Ansi16(v === 2 ? ansi + 60 | 0 : ansi);
855
825
  };
856
- protoOf(RGB).d1n = function () {
826
+ protoOf(RGB).k1m = function () {
857
827
  // Inline function 'com.github.ajalt.colormath.model.RGB.toSRGB' call
858
- var $this$toSRGB = this.v1m(SRGB_getInstance());
859
- var ri = $this$toSRGB.s1m();
860
- var gi = $this$toSRGB.t1m();
861
- var bi = $this$toSRGB.u1m();
828
+ var $this$toSRGB = this.c1m(SRGB_getInstance());
829
+ var ri = $this$toSRGB.z1l();
830
+ var gi = $this$toSRGB.a1m();
831
+ var bi = $this$toSRGB.b1m();
862
832
  var tmp;
863
833
  if (ri === gi && gi === bi) {
864
834
  tmp = ri < 8 ? 16 : ri > 248 ? 231 : roundToInt((ri - 8 | 0) / 247.0 * 24.0) + 232 | 0;
865
835
  } else {
866
836
  // Inline function 'kotlin.math.roundToInt' call
867
- var this_0 = $this$toSRGB.x1j_1 * 5;
837
+ var this_0 = $this$toSRGB.f1j_1 * 5;
868
838
  var tmp$ret$0 = roundToInt(this_0);
869
839
  var tmp_0 = 16 + imul(36, tmp$ret$0) | 0;
870
840
  // Inline function 'kotlin.math.roundToInt' call
871
- var this_1 = $this$toSRGB.y1j_1 * 5;
841
+ var this_1 = $this$toSRGB.g1j_1 * 5;
872
842
  var tmp$ret$1 = roundToInt(this_1);
873
843
  var tmp_1 = tmp_0 + imul(6, tmp$ret$1) | 0;
874
844
  // Inline function 'kotlin.math.roundToInt' call
875
- var this_2 = $this$toSRGB.z1j_1 * 5;
845
+ var this_2 = $this$toSRGB.h1j_1 * 5;
876
846
  tmp = tmp_1 + roundToInt(this_2) | 0;
877
847
  }
878
848
  var code = tmp;
879
849
  return new Ansi256(code);
880
850
  };
881
- protoOf(RGB).v1j = function () {
882
- return this.v1m(RGBColorSpaces_getInstance().o1l_1);
851
+ protoOf(RGB).d1j = function () {
852
+ return this.c1m(RGBColorSpaces_getInstance().w1k_1);
883
853
  };
884
- protoOf(RGB).e1n = function () {
885
- var tmp2 = this.x1j_1;
886
- var tmp4 = this.y1j_1;
887
- var tmp6 = this.z1j_1;
854
+ protoOf(RGB).l1m = function () {
855
+ var tmp2 = this.f1j_1;
856
+ var tmp4 = this.g1j_1;
857
+ var tmp6 = this.h1j_1;
888
858
  // Inline function 'com.github.ajalt.colormath.internal.clamp3' call
889
- var alpha = this.a1k_1;
890
- var _destruct__k2r9zo = this.u1j().t1k();
859
+ var alpha = this.i1j_1;
860
+ var _destruct__k2r9zo = this.c1j().b1k();
891
861
  // Inline function 'kotlin.collections.component1' call
892
- var c1 = _destruct__k2r9zo.q(0);
862
+ var c1 = _destruct__k2r9zo.r(0);
893
863
  // Inline function 'kotlin.collections.component2' call
894
- var c2 = _destruct__k2r9zo.q(1);
864
+ var c2 = _destruct__k2r9zo.r(1);
895
865
  // Inline function 'kotlin.collections.component3' call
896
- var c3 = _destruct__k2r9zo.q(2);
866
+ var c3 = _destruct__k2r9zo.r(2);
897
867
  var tmp;
898
868
  var tmp_0;
899
869
  var tmp_1;
900
870
  var tmp_2;
901
- var containsLower = c1.e1k_1;
902
- if (tmp2 <= c1.f1k_1 ? containsLower <= tmp2 : false) {
903
- var containsLower_0 = c2.e1k_1;
904
- tmp_2 = tmp4 <= c2.f1k_1 ? containsLower_0 <= tmp4 : false;
871
+ var containsLower = c1.m1j_1;
872
+ if (tmp2 <= c1.n1j_1 ? containsLower <= tmp2 : false) {
873
+ var containsLower_0 = c2.m1j_1;
874
+ tmp_2 = tmp4 <= c2.n1j_1 ? containsLower_0 <= tmp4 : false;
905
875
  } else {
906
876
  tmp_2 = false;
907
877
  }
908
878
  if (tmp_2) {
909
- var containsLower_1 = c3.e1k_1;
910
- tmp_1 = tmp6 <= c3.f1k_1 ? containsLower_1 <= tmp6 : false;
879
+ var containsLower_1 = c3.m1j_1;
880
+ tmp_1 = tmp6 <= c3.n1j_1 ? containsLower_1 <= tmp6 : false;
911
881
  } else {
912
882
  tmp_1 = false;
913
883
  }
@@ -919,34 +889,34 @@
919
889
  if (tmp_0) {
920
890
  tmp = this;
921
891
  } else {
922
- var tmp2_0 = coerceIn(tmp2, c1.e1k_1, c1.f1k_1);
923
- var tmp4_0 = coerceIn(tmp4, c2.e1k_1, c2.f1k_1);
924
- var tmp6_0 = coerceIn(tmp6, c3.e1k_1, c3.f1k_1);
892
+ var tmp2_0 = coerceIn(tmp2, c1.m1j_1, c1.n1j_1);
893
+ var tmp4_0 = coerceIn(tmp4, c2.m1j_1, c2.n1j_1);
894
+ var tmp6_0 = coerceIn(tmp6, c3.m1j_1, c3.n1j_1);
925
895
  var p3 = coerceIn(alpha, 0.0, 1.0);
926
- tmp = this.f1n(tmp2_0, tmp4_0, tmp6_0, p3);
896
+ tmp = this.m1m(tmp2_0, tmp4_0, tmp6_0, p3);
927
897
  }
928
898
  return tmp;
929
899
  };
930
- protoOf(RGB).g1n = function (r, g, b, alpha, space) {
900
+ protoOf(RGB).n1m = function (r, g, b, alpha, space) {
931
901
  return new RGB(r, g, b, alpha, space);
932
902
  };
933
- protoOf(RGB).f1n = function (r, g, b, alpha, space, $super) {
934
- r = r === VOID ? this.x1j_1 : r;
935
- g = g === VOID ? this.y1j_1 : g;
936
- b = b === VOID ? this.z1j_1 : b;
937
- alpha = alpha === VOID ? this.a1k_1 : alpha;
938
- space = space === VOID ? this.b1k_1 : space;
939
- return $super === VOID ? this.g1n(r, g, b, alpha, space) : $super.g1n.call(this, r, g, b, alpha, space);
903
+ protoOf(RGB).m1m = function (r, g, b, alpha, space, $super) {
904
+ r = r === VOID ? this.f1j_1 : r;
905
+ g = g === VOID ? this.g1j_1 : g;
906
+ b = b === VOID ? this.h1j_1 : b;
907
+ alpha = alpha === VOID ? this.i1j_1 : alpha;
908
+ space = space === VOID ? this.j1j_1 : space;
909
+ return $super === VOID ? this.n1m(r, g, b, alpha, space) : $super.n1m.call(this, r, g, b, alpha, space);
940
910
  };
941
911
  protoOf(RGB).toString = function () {
942
- return 'RGB(r=' + this.x1j_1 + ', g=' + this.y1j_1 + ', b=' + this.z1j_1 + ', alpha=' + this.a1k_1 + ', space=' + toString(this.b1k_1) + ')';
912
+ return 'RGB(r=' + this.f1j_1 + ', g=' + this.g1j_1 + ', b=' + this.h1j_1 + ', alpha=' + this.i1j_1 + ', space=' + toString(this.j1j_1) + ')';
943
913
  };
944
914
  protoOf(RGB).hashCode = function () {
945
- var result = getNumberHashCode(this.x1j_1);
946
- result = imul(result, 31) + getNumberHashCode(this.y1j_1) | 0;
947
- result = imul(result, 31) + getNumberHashCode(this.z1j_1) | 0;
948
- result = imul(result, 31) + getNumberHashCode(this.a1k_1) | 0;
949
- result = imul(result, 31) + hashCode(this.b1k_1) | 0;
915
+ var result = getNumberHashCode(this.f1j_1);
916
+ result = imul(result, 31) + getNumberHashCode(this.g1j_1) | 0;
917
+ result = imul(result, 31) + getNumberHashCode(this.h1j_1) | 0;
918
+ result = imul(result, 31) + getNumberHashCode(this.i1j_1) | 0;
919
+ result = imul(result, 31) + hashCode(this.j1j_1) | 0;
950
920
  return result;
951
921
  };
952
922
  protoOf(RGB).equals = function (other) {
@@ -955,18 +925,57 @@
955
925
  if (!(other instanceof RGB))
956
926
  return false;
957
927
  var tmp0_other_with_cast = other instanceof RGB ? other : THROW_CCE();
958
- if (!equals(this.x1j_1, tmp0_other_with_cast.x1j_1))
928
+ if (!equals(this.f1j_1, tmp0_other_with_cast.f1j_1))
929
+ return false;
930
+ if (!equals(this.g1j_1, tmp0_other_with_cast.g1j_1))
931
+ return false;
932
+ if (!equals(this.h1j_1, tmp0_other_with_cast.h1j_1))
959
933
  return false;
960
- if (!equals(this.y1j_1, tmp0_other_with_cast.y1j_1))
934
+ if (!equals(this.i1j_1, tmp0_other_with_cast.i1j_1))
961
935
  return false;
962
- if (!equals(this.z1j_1, tmp0_other_with_cast.z1j_1))
936
+ if (!equals(this.j1j_1, tmp0_other_with_cast.j1j_1))
963
937
  return false;
964
- if (!equals(this.a1k_1, tmp0_other_with_cast.a1k_1))
938
+ return true;
939
+ };
940
+ function GammaTransferFunctions(gamma) {
941
+ this.o1m_1 = gamma;
942
+ }
943
+ protoOf(GammaTransferFunctions).r1l = function (x) {
944
+ return spow(x, this.o1m_1);
945
+ };
946
+ protoOf(GammaTransferFunctions).s1l = function (x) {
947
+ return spow(x, 1.0 / this.o1m_1);
948
+ };
949
+ protoOf(GammaTransferFunctions).toString = function () {
950
+ return 'GammaTransferFunctions(gamma=' + this.o1m_1 + ')';
951
+ };
952
+ protoOf(GammaTransferFunctions).hashCode = function () {
953
+ return getNumberHashCode(this.o1m_1);
954
+ };
955
+ protoOf(GammaTransferFunctions).equals = function (other) {
956
+ if (this === other)
957
+ return true;
958
+ if (!(other instanceof GammaTransferFunctions))
965
959
  return false;
966
- if (!equals(this.b1k_1, tmp0_other_with_cast.b1k_1))
960
+ var tmp0_other_with_cast = other instanceof GammaTransferFunctions ? other : THROW_CCE();
961
+ if (!equals(this.o1m_1, tmp0_other_with_cast.o1m_1))
967
962
  return false;
968
963
  return true;
969
964
  };
965
+ function LinearTransferFunctions() {
966
+ }
967
+ protoOf(LinearTransferFunctions).r1l = function (x) {
968
+ return x;
969
+ };
970
+ protoOf(LinearTransferFunctions).s1l = function (x) {
971
+ return x;
972
+ };
973
+ var LinearTransferFunctions_instance;
974
+ function LinearTransferFunctions_getInstance() {
975
+ return LinearTransferFunctions_instance;
976
+ }
977
+ function RGBColorSpace() {
978
+ }
970
979
  function parseHex(_this__u8e3s4, startIndex) {
971
980
  var tmp;
972
981
  if (get_hexLength(_this__u8e3s4) > 4) {
@@ -1045,18 +1054,67 @@
1045
1054
  return ACES_AP1_B;
1046
1055
  }
1047
1056
  var ACES_AP1_B;
1057
+ function SRGB() {
1058
+ SRGB_instance = this;
1059
+ this.q1k_1 = RGBColorSpaces_getInstance().w1k_1;
1060
+ }
1061
+ protoOf(SRGB).p1k = function (r, g, b, alpha) {
1062
+ return this.q1k_1.p1k(r, g, b, alpha);
1063
+ };
1064
+ protoOf(SRGB).t1l = function (r, g, b, alpha) {
1065
+ return this.q1k_1.t1l(r, g, b, alpha);
1066
+ };
1067
+ protoOf(SRGB).u1l = function (hex) {
1068
+ return this.q1k_1.u1l(hex);
1069
+ };
1070
+ protoOf(SRGB).v1l = function (r, g, b, alpha) {
1071
+ return this.q1k_1.v1l(r, g, b, alpha);
1072
+ };
1073
+ protoOf(SRGB).i1l = function () {
1074
+ return this.q1k_1.i1l();
1075
+ };
1076
+ protoOf(SRGB).w1l = function () {
1077
+ return this.q1k_1.w1l();
1078
+ };
1079
+ protoOf(SRGB).x1l = function () {
1080
+ return this.q1k_1.x1l();
1081
+ };
1082
+ protoOf(SRGB).y1l = function () {
1083
+ return this.q1k_1.y1l();
1084
+ };
1085
+ protoOf(SRGB).l12 = function () {
1086
+ return this.q1k_1.l12();
1087
+ };
1088
+ protoOf(SRGB).b1k = function () {
1089
+ return this.q1k_1.b1k();
1090
+ };
1091
+ protoOf(SRGB).equals = function (other) {
1092
+ return equals(RGBColorSpaces_getInstance().w1k_1, other);
1093
+ };
1094
+ protoOf(SRGB).hashCode = function () {
1095
+ return hashCode(RGBColorSpaces_getInstance().w1k_1);
1096
+ };
1097
+ protoOf(SRGB).toString = function () {
1098
+ return 'sRGB';
1099
+ };
1100
+ var SRGB_instance;
1101
+ function SRGB_getInstance() {
1102
+ if (SRGB_instance == null)
1103
+ new SRGB();
1104
+ return SRGB_instance;
1105
+ }
1048
1106
  function RGBColorSpaces$SRGB$lambda($this$RGBColorSpaceImpl, it) {
1049
- return it.v1j();
1107
+ return it.d1j();
1050
1108
  }
1051
1109
  function RGBColorSpaces$BT2020$lambda($this$RGBColorSpaceImpl, color) {
1052
1110
  var tmp;
1053
1111
  if (color instanceof RGB) {
1054
- tmp = color.v1m($this$RGBColorSpaceImpl);
1112
+ tmp = color.c1m($this$RGBColorSpaceImpl);
1055
1113
  } else {
1056
1114
  if (color instanceof ICtCp) {
1057
- tmp = color.n1l();
1115
+ tmp = color.v1k();
1058
1116
  } else {
1059
- tmp = color.w1j().b1n($this$RGBColorSpaceImpl);
1117
+ tmp = color.e1j().i1m($this$RGBColorSpaceImpl);
1060
1118
  }
1061
1119
  }
1062
1120
  return tmp;
@@ -1064,29 +1122,29 @@
1064
1122
  function RGBColorSpaces() {
1065
1123
  RGBColorSpaces_instance = this;
1066
1124
  var tmp = this;
1067
- var tmp_0 = Illuminant_getInstance().n1k_1;
1125
+ var tmp_0 = Illuminant_getInstance().v1j_1;
1068
1126
  var tmp_1 = SRGBTransferFunctions_instance;
1069
1127
  var tmp_2 = get_SRGB_R();
1070
1128
  var tmp_3 = get_SRGB_G();
1071
1129
  var tmp_4 = get_SRGB_B();
1072
- tmp.o1l_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
1073
- this.p1l_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().n1k_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
1074
- this.q1l_1 = RGBColorSpace_0('ACES2065-1', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP0_R(), get_ACES_AP0_G(), get_ACES_AP0_B());
1075
- this.r1l_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1076
- this.s1l_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1077
- this.t1l_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1078
- this.u1l_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().n1k_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));
1130
+ tmp.w1k_1 = new RGBColorSpaceImpl('sRGB', tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, RGBColorSpaces$SRGB$lambda);
1131
+ this.x1k_1 = RGBColorSpace_0('Linear sRGB', Illuminant_getInstance().v1j_1, LinearTransferFunctions_instance, get_SRGB_R(), get_SRGB_G(), get_SRGB_B());
1132
+ this.y1k_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.z1k_1 = RGBColorSpace_0('ACEScc', get_ACES_WHITE_POINT(), ACESccTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1134
+ this.a1l_1 = RGBColorSpace_0('ACEScct', get_ACES_WHITE_POINT(), ACEScctTransferFunctions_getInstance(), get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1135
+ this.b1l_1 = RGBColorSpace_0('ACEScg', get_ACES_WHITE_POINT(), LinearTransferFunctions_instance, get_ACES_AP1_R(), get_ACES_AP1_G(), get_ACES_AP1_B());
1136
+ this.c1l_1 = RGBColorSpace_0('Adobe RGB', Illuminant_getInstance().v1j_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));
1079
1137
  var tmp_5 = this;
1080
- var tmp_6 = Illuminant_getInstance().n1k_1;
1138
+ var tmp_6 = Illuminant_getInstance().v1j_1;
1081
1139
  var tmp_7 = BT2020TransferFunctions_getInstance();
1082
1140
  var tmp_8 = xyY_init_$Create$(0.708, 0.292);
1083
1141
  var tmp_9 = xyY_init_$Create$(0.17, 0.797);
1084
1142
  var tmp_10 = xyY_init_$Create$(0.131, 0.046);
1085
- tmp_5.v1l_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
1086
- this.w1l_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().n1k_1, BT709TransferFunctions_getInstance(), xyY_init_$Create$(0.64, 0.33), xyY_init_$Create$(0.3, 0.6), xyY_init_$Create$(0.15, 0.06));
1087
- this.x1l_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));
1088
- this.y1l_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().n1k_1, SRGBTransferFunctions_instance, xyY_init_$Create$(0.68, 0.32), xyY_init_$Create$(0.265, 0.69), xyY_init_$Create$(0.15, 0.06));
1089
- this.z1l_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().l1k_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));
1143
+ tmp_5.d1l_1 = new RGBColorSpaceImpl('BT.2020', tmp_6, tmp_7, tmp_8, tmp_9, tmp_10, RGBColorSpaces$BT2020$lambda);
1144
+ this.e1l_1 = RGBColorSpace_0('BT.709', Illuminant_getInstance().v1j_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.f1l_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.g1l_1 = RGBColorSpace_0('Display P3', Illuminant_getInstance().v1j_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.h1l_1 = RGBColorSpace_0('ROMM RGB', Illuminant_getInstance().t1j_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));
1090
1148
  }
1091
1149
  var RGBColorSpaces_instance;
1092
1150
  function RGBColorSpaces_getInstance() {
@@ -1094,89 +1152,40 @@
1094
1152
  new RGBColorSpaces();
1095
1153
  return RGBColorSpaces_instance;
1096
1154
  }
1097
- function SRGB() {
1098
- SRGB_instance = this;
1099
- this.i1l_1 = RGBColorSpaces_getInstance().o1l_1;
1100
- }
1101
- protoOf(SRGB).h1l = function (r, g, b, alpha) {
1102
- return this.i1l_1.h1l(r, g, b, alpha);
1103
- };
1104
- protoOf(SRGB).m1m = function (r, g, b, alpha) {
1105
- return this.i1l_1.m1m(r, g, b, alpha);
1106
- };
1107
- protoOf(SRGB).o1m = function (hex) {
1108
- return this.i1l_1.o1m(hex);
1109
- };
1110
- protoOf(SRGB).n1m = function (r, g, b, alpha) {
1111
- return this.i1l_1.n1m(r, g, b, alpha);
1112
- };
1113
- protoOf(SRGB).a1m = function () {
1114
- return this.i1l_1.a1m();
1115
- };
1116
- protoOf(SRGB).p1m = function () {
1117
- return this.i1l_1.p1m();
1118
- };
1119
- protoOf(SRGB).q1m = function () {
1120
- return this.i1l_1.q1m();
1121
- };
1122
- protoOf(SRGB).r1m = function () {
1123
- return this.i1l_1.r1m();
1124
- };
1125
- protoOf(SRGB).c13 = function () {
1126
- return this.i1l_1.c13();
1127
- };
1128
- protoOf(SRGB).t1k = function () {
1129
- return this.i1l_1.t1k();
1130
- };
1131
- protoOf(SRGB).equals = function (other) {
1132
- return equals(RGBColorSpaces_getInstance().o1l_1, other);
1133
- };
1134
- protoOf(SRGB).hashCode = function () {
1135
- return hashCode(RGBColorSpaces_getInstance().o1l_1);
1136
- };
1137
- protoOf(SRGB).toString = function () {
1138
- return 'sRGB';
1139
- };
1140
- var SRGB_instance;
1141
- function SRGB_getInstance() {
1142
- if (SRGB_instance == null)
1143
- new SRGB();
1144
- return SRGB_instance;
1145
- }
1146
1155
  function RGBColorSpaceImpl(name, whitePoint, transferFunctions, r, g, b, convertImpl) {
1147
- this.h1n_1 = name;
1148
- this.i1n_1 = whitePoint;
1149
- this.j1n_1 = transferFunctions;
1150
- this.k1n_1 = r;
1151
- this.l1n_1 = g;
1152
- this.m1n_1 = b;
1153
- this.n1n_1 = convertImpl;
1154
- this.o1n_1 = zeroOneComponentInfo('RGB');
1155
- this.p1n_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.i1n_1, this.k1n_1, this.l1n_1, this.m1n_1));
1156
- this.q1n_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.p1n_1)));
1157
- }
1158
- protoOf(RGBColorSpaceImpl).c13 = function () {
1159
- return this.h1n_1;
1160
- };
1161
- protoOf(RGBColorSpaceImpl).r1m = function () {
1162
- return this.i1n_1;
1163
- };
1164
- protoOf(RGBColorSpaceImpl).a1m = function () {
1165
- return this.j1n_1;
1166
- };
1167
- protoOf(RGBColorSpaceImpl).t1k = function () {
1168
- return this.o1n_1;
1156
+ this.p1m_1 = name;
1157
+ this.q1m_1 = whitePoint;
1158
+ this.r1m_1 = transferFunctions;
1159
+ this.s1m_1 = r;
1160
+ this.t1m_1 = g;
1161
+ this.u1m_1 = b;
1162
+ this.v1m_1 = convertImpl;
1163
+ this.w1m_1 = zeroOneComponentInfo('RGB');
1164
+ this.x1m_1 = _Matrix___get_rowMajor__impl__vmgxkq(rgbToXyzMatrix(this.q1m_1, this.s1m_1, this.t1m_1, this.u1m_1));
1165
+ this.y1m_1 = _Matrix___get_rowMajor__impl__vmgxkq(inverse(_Matrix___init__impl__q3kp4w(this.x1m_1)));
1166
+ }
1167
+ protoOf(RGBColorSpaceImpl).l12 = function () {
1168
+ return this.p1m_1;
1169
+ };
1170
+ protoOf(RGBColorSpaceImpl).y1l = function () {
1171
+ return this.q1m_1;
1172
+ };
1173
+ protoOf(RGBColorSpaceImpl).i1l = function () {
1174
+ return this.r1m_1;
1175
+ };
1176
+ protoOf(RGBColorSpaceImpl).b1k = function () {
1177
+ return this.w1m_1;
1169
1178
  };
1170
- protoOf(RGBColorSpaceImpl).p1m = function () {
1171
- return this.p1n_1;
1179
+ protoOf(RGBColorSpaceImpl).w1l = function () {
1180
+ return this.x1m_1;
1172
1181
  };
1173
- protoOf(RGBColorSpaceImpl).q1m = function () {
1174
- return this.q1n_1;
1182
+ protoOf(RGBColorSpaceImpl).x1l = function () {
1183
+ return this.y1m_1;
1175
1184
  };
1176
1185
  protoOf(RGBColorSpaceImpl).toString = function () {
1177
- return this.h1n_1;
1186
+ return this.p1m_1;
1178
1187
  };
1179
- protoOf(RGBColorSpaceImpl).h1l = function (r, g, b, alpha) {
1188
+ protoOf(RGBColorSpaceImpl).p1k = function (r, g, b, alpha) {
1180
1189
  return new RGB(r, g, b, alpha, this);
1181
1190
  };
1182
1191
  protoOf(RGBColorSpaceImpl).equals = function (other) {
@@ -1184,42 +1193,42 @@
1184
1193
  return true;
1185
1194
  if (!(!(other == null) ? isInterface(other, RGBColorSpace) : false))
1186
1195
  return false;
1187
- if (!(this.h1n_1 === other.c13()))
1196
+ if (!(this.p1m_1 === other.l12()))
1188
1197
  return false;
1189
- if (!this.i1n_1.equals(other.r1m()))
1198
+ if (!this.q1m_1.equals(other.y1l()))
1190
1199
  return false;
1191
- if (!equals(this.j1n_1, other.a1m()))
1200
+ if (!equals(this.r1m_1, other.i1l()))
1192
1201
  return false;
1193
1202
  if (other instanceof RGBColorSpaceImpl) {
1194
- if (!this.k1n_1.equals(other.k1n_1))
1203
+ if (!this.s1m_1.equals(other.s1m_1))
1195
1204
  return false;
1196
- if (!this.l1n_1.equals(other.l1n_1))
1205
+ if (!this.t1m_1.equals(other.t1m_1))
1197
1206
  return false;
1198
- if (!this.m1n_1.equals(other.m1n_1))
1207
+ if (!this.u1m_1.equals(other.u1m_1))
1199
1208
  return false;
1200
1209
  } else {
1201
- if (!contentEquals(this.p1n_1, other.p1m()))
1210
+ if (!contentEquals(this.x1m_1, other.w1l()))
1202
1211
  return false;
1203
- if (!contentEquals(this.q1n_1, other.q1m()))
1212
+ if (!contentEquals(this.y1m_1, other.x1l()))
1204
1213
  return false;
1205
1214
  }
1206
1215
  return true;
1207
1216
  };
1208
1217
  protoOf(RGBColorSpaceImpl).hashCode = function () {
1209
- var result = getStringHashCode(this.h1n_1);
1210
- result = imul(31, result) + this.i1n_1.hashCode() | 0;
1211
- result = imul(31, result) + hashCode(this.j1n_1) | 0;
1212
- result = imul(31, result) + this.k1n_1.hashCode() | 0;
1213
- result = imul(31, result) + this.l1n_1.hashCode() | 0;
1214
- result = imul(31, result) + this.m1n_1.hashCode() | 0;
1218
+ var result = getStringHashCode(this.p1m_1);
1219
+ result = imul(31, result) + this.q1m_1.hashCode() | 0;
1220
+ result = imul(31, result) + hashCode(this.r1m_1) | 0;
1221
+ result = imul(31, result) + this.s1m_1.hashCode() | 0;
1222
+ result = imul(31, result) + this.t1m_1.hashCode() | 0;
1223
+ result = imul(31, result) + this.u1m_1.hashCode() | 0;
1215
1224
  return result;
1216
1225
  };
1217
1226
  function SRGBTransferFunctions() {
1218
1227
  }
1219
- protoOf(SRGBTransferFunctions).k1m = function (x) {
1228
+ protoOf(SRGBTransferFunctions).s1l = function (x) {
1220
1229
  return x <= 0.0031308 ? x * 12.92 : 1.055 * spow(x, 1 / 2.4) - 0.055;
1221
1230
  };
1222
- protoOf(SRGBTransferFunctions).j1m = function (x) {
1231
+ protoOf(SRGBTransferFunctions).r1l = function (x) {
1223
1232
  return x <= 0.04045 ? x / 12.92 : spow_0((x + 0.055) / 1.055, 2.4);
1224
1233
  };
1225
1234
  var SRGBTransferFunctions_instance;
@@ -1232,18 +1241,18 @@
1232
1241
  }
1233
1242
  function ACESccTransferFunctions() {
1234
1243
  ACESccTransferFunctions_instance = this;
1235
- this.r1n_1 = 3.0517578125E-5;
1236
- this.s1n_1 = 1.52587890625E-5;
1237
- this.t1n_1 = -0.3013698630136986;
1244
+ this.z1m_1 = 3.0517578125E-5;
1245
+ this.a1n_1 = 1.52587890625E-5;
1246
+ this.b1n_1 = -0.3013698630136986;
1238
1247
  var tmp = this;
1239
1248
  // Inline function 'kotlin.math.log2' call
1240
- tmp.u1n_1 = (log2(65504.0) + 9.72) / 17.52;
1249
+ tmp.c1n_1 = (log2(65504.0) + 9.72) / 17.52;
1241
1250
  }
1242
- protoOf(ACESccTransferFunctions).j1m = function (x) {
1251
+ protoOf(ACESccTransferFunctions).r1l = function (x) {
1243
1252
  var tmp;
1244
1253
  if (x <= -0.3013698630136986) {
1245
1254
  tmp = (spow_0(2.0, x * 17.52 - 9.72) - 1.52587890625E-5) * 2.0;
1246
- } else if (x < this.u1n_1) {
1255
+ } else if (x < this.c1n_1) {
1247
1256
  // Inline function 'kotlin.math.pow' call
1248
1257
  var x_0 = x * 17.52 - 9.72;
1249
1258
  tmp = Math.pow(2.0, x_0);
@@ -1252,7 +1261,7 @@
1252
1261
  }
1253
1262
  return tmp;
1254
1263
  };
1255
- protoOf(ACESccTransferFunctions).k1m = function (x) {
1264
+ protoOf(ACESccTransferFunctions).s1l = function (x) {
1256
1265
  var tmp;
1257
1266
  if (x < 3.0517578125E-5) {
1258
1267
  // Inline function 'kotlin.math.log2' call
@@ -1272,17 +1281,17 @@
1272
1281
  }
1273
1282
  function ACEScctTransferFunctions() {
1274
1283
  ACEScctTransferFunctions_instance = this;
1275
- this.v1n_1 = 10.5402377416545;
1276
- this.w1n_1 = 0.0729055341958355;
1284
+ this.d1n_1 = 10.5402377416545;
1285
+ this.e1n_1 = 0.0729055341958355;
1277
1286
  var tmp = this;
1278
1287
  // Inline function 'kotlin.math.log2' call
1279
- tmp.x1n_1 = (log2(65504.0) + 9.72) / 17.52;
1288
+ tmp.f1n_1 = (log2(65504.0) + 9.72) / 17.52;
1280
1289
  }
1281
- protoOf(ACEScctTransferFunctions).j1m = function (x) {
1290
+ protoOf(ACEScctTransferFunctions).r1l = function (x) {
1282
1291
  var tmp;
1283
1292
  if (x <= 0.155251141552511) {
1284
1293
  tmp = (x - 0.0729055341958355) / 10.5402377416545;
1285
- } else if (x < this.x1n_1) {
1294
+ } else if (x < this.f1n_1) {
1286
1295
  // Inline function 'kotlin.math.pow' call
1287
1296
  var x_0 = x * 17.52 - 9.72;
1288
1297
  tmp = Math.pow(2.0, x_0);
@@ -1291,7 +1300,7 @@
1291
1300
  }
1292
1301
  return tmp;
1293
1302
  };
1294
- protoOf(ACEScctTransferFunctions).k1m = function (x) {
1303
+ protoOf(ACEScctTransferFunctions).s1l = function (x) {
1295
1304
  var tmp;
1296
1305
  if (x < 0.0078125) {
1297
1306
  tmp = 10.5402377416545 * x + 0.0729055341958355;
@@ -1309,16 +1318,16 @@
1309
1318
  }
1310
1319
  function BT2020TransferFunctions() {
1311
1320
  BT2020TransferFunctions_instance = this;
1312
- this.y1n_1 = 1.0993;
1313
- this.z1n_1 = 0.0181;
1321
+ this.g1n_1 = 1.0993;
1322
+ this.h1n_1 = 0.0181;
1314
1323
  var tmp = this;
1315
1324
  // Inline function 'kotlin.math.pow' call
1316
- tmp.a1o_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
1325
+ tmp.i1n_1 = 1.0993 * Math.pow(0.0181, 0.45) - (1.0993 - 1);
1317
1326
  }
1318
- protoOf(BT2020TransferFunctions).j1m = function (x) {
1319
- return numberToDouble(x < this.a1o_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
1327
+ protoOf(BT2020TransferFunctions).r1l = function (x) {
1328
+ return numberToDouble(x < this.i1n_1 ? x / 4.5 : spow_0((x + (1.0993 - 1)) / 1.0993, 1 / 0.45));
1320
1329
  };
1321
- protoOf(BT2020TransferFunctions).k1m = function (x) {
1330
+ protoOf(BT2020TransferFunctions).s1l = function (x) {
1322
1331
  return x < 0.0181 ? 4.5 * x : 1.0993 * spow(x, 0.45) - (1.0993 - 1);
1323
1332
  };
1324
1333
  var BT2020TransferFunctions_instance;
@@ -1329,12 +1338,12 @@
1329
1338
  }
1330
1339
  function BT709TransferFunctions() {
1331
1340
  BT709TransferFunctions_instance = this;
1332
- this.b1o_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
1341
+ this.j1n_1 = 1.099 * spow_0(0.018, 0.45) - 0.099;
1333
1342
  }
1334
- protoOf(BT709TransferFunctions).j1m = function (x) {
1335
- return numberToDouble(x < this.b1o_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
1343
+ protoOf(BT709TransferFunctions).r1l = function (x) {
1344
+ return numberToDouble(x < this.j1n_1 ? x / 4.5 : spow_0((x + 0.099) / 1.099, 1 / 0.45));
1336
1345
  };
1337
- protoOf(BT709TransferFunctions).k1m = function (x) {
1346
+ protoOf(BT709TransferFunctions).s1l = function (x) {
1338
1347
  return x < 0.018 ? 4.5 * x : 1.099 * spow(x, 0.45) - 0.099;
1339
1348
  };
1340
1349
  var BT709TransferFunctions_instance;
@@ -1344,12 +1353,12 @@
1344
1353
  return BT709TransferFunctions_instance;
1345
1354
  }
1346
1355
  function ROMMTransferFunctions() {
1347
- this.c1o_1 = 0.001953;
1356
+ this.k1n_1 = 0.001953;
1348
1357
  }
1349
- protoOf(ROMMTransferFunctions).j1m = function (x) {
1358
+ protoOf(ROMMTransferFunctions).r1l = function (x) {
1350
1359
  return x < 16 * 0.001953 ? x / 16.0 : spow(x, 1.8);
1351
1360
  };
1352
- protoOf(ROMMTransferFunctions).k1m = function (x) {
1361
+ protoOf(ROMMTransferFunctions).s1l = function (x) {
1353
1362
  return x < 0.001953 ? x * 16.0 : spow(x, 1.0 / 1.8);
1354
1363
  };
1355
1364
  var ROMMTransferFunctions_instance;
@@ -1358,13 +1367,13 @@
1358
1367
  }
1359
1368
  function rgbToXyzMatrix(whitePoint, r, g, b) {
1360
1369
  _init_properties_RGBColorSpaces_kt__nc9fsz();
1361
- var primaries = _Matrix___init__impl__q3kp4w_0(r.d1o_1, g.d1o_1, b.d1o_1, r.e1o_1, g.e1o_1, b.e1o_1, r.g1o(), g.g1o(), b.g1o());
1362
- var wp = whitePoint.h1k_1;
1370
+ var primaries = _Matrix___init__impl__q3kp4w_0(r.l1n_1, g.l1n_1, b.l1n_1, r.m1n_1, g.m1n_1, b.m1n_1, r.o1n(), g.o1n(), b.o1n());
1371
+ var wp = whitePoint.p1j_1;
1363
1372
  var tmp0 = inverse(primaries);
1364
- var tmp2 = wp.h1o();
1365
- var tmp4 = wp.f1o_1;
1373
+ var tmp2 = wp.p1n();
1374
+ var tmp4 = wp.n1n_1;
1366
1375
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
1367
- var v2 = wp.i1o();
1376
+ var v2 = wp.q1n();
1368
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;
1369
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;
1370
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;
@@ -1374,9 +1383,9 @@
1374
1383
  _init_properties_RGBColorSpaces_kt__nc9fsz();
1375
1384
  var tmp;
1376
1385
  if (color instanceof RGB) {
1377
- tmp = color.v1m($this$RGBColorSpaceImpl);
1386
+ tmp = color.c1m($this$RGBColorSpaceImpl);
1378
1387
  } else {
1379
- tmp = color.w1j().b1n($this$RGBColorSpaceImpl);
1388
+ tmp = color.e1j().i1m($this$RGBColorSpaceImpl);
1380
1389
  }
1381
1390
  return tmp;
1382
1391
  }
@@ -1398,22 +1407,25 @@
1398
1407
  }
1399
1408
  function Companion_3() {
1400
1409
  Companion_instance_3 = this;
1401
- this.j1o_1 = XYZColorSpaces_getInstance().k1o_1;
1410
+ this.r1n_1 = XYZColorSpaces_getInstance().s1n_1;
1402
1411
  }
1403
- protoOf(Companion_3).h1l = function (x, y, z, alpha) {
1404
- return this.j1o_1.h1l(x, y, z, alpha);
1412
+ protoOf(Companion_3).p1k = function (x, y, z, alpha) {
1413
+ return this.r1n_1.p1k(x, y, z, alpha);
1405
1414
  };
1406
- protoOf(Companion_3).r1m = function () {
1407
- return this.j1o_1.r1m();
1415
+ protoOf(Companion_3).y1l = function () {
1416
+ return this.r1n_1.y1l();
1408
1417
  };
1409
- protoOf(Companion_3).t1k = function () {
1410
- return this.j1o_1.t1k();
1418
+ protoOf(Companion_3).l12 = function () {
1419
+ return this.r1n_1.l12();
1420
+ };
1421
+ protoOf(Companion_3).b1k = function () {
1422
+ return this.r1n_1.b1k();
1411
1423
  };
1412
1424
  protoOf(Companion_3).hashCode = function () {
1413
- return hashCode(XYZColorSpaces_getInstance().k1o_1);
1425
+ return hashCode(XYZColorSpaces_getInstance().s1n_1);
1414
1426
  };
1415
1427
  protoOf(Companion_3).equals = function (other) {
1416
- return equals(XYZColorSpaces_getInstance().k1o_1, other);
1428
+ return equals(XYZColorSpaces_getInstance().s1n_1, other);
1417
1429
  };
1418
1430
  var Companion_instance_3;
1419
1431
  function Companion_getInstance_3() {
@@ -1422,69 +1434,69 @@
1422
1434
  return Companion_instance_3;
1423
1435
  }
1424
1436
  function adaptToM($this, space, m, mi) {
1425
- if (space.r1m().equals($this.a1n_1.r1m()))
1437
+ if (space.y1l().equals($this.h1m_1.y1l()))
1426
1438
  return $this;
1427
- var transform = chromaticAdaptationMatrix(space, $this.a1n_1.r1m().h1k_1, m, mi);
1428
- var tmp2 = $this.w1m_1;
1429
- var tmp4 = $this.x1m_1;
1439
+ var transform = chromaticAdaptationMatrix(space, $this.h1m_1.y1l().p1j_1, m, mi);
1440
+ var tmp2 = $this.d1m_1;
1441
+ var tmp4 = $this.e1m_1;
1430
1442
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
1431
- var v2 = $this.y1m_1;
1443
+ var v2 = $this.f1m_1;
1432
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;
1433
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;
1434
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;
1435
- return space.h1l(tmp0, tmp2_0, zz, $this.z1m_1);
1447
+ return space.p1k(tmp0, tmp2_0, zz, $this.g1m_1);
1436
1448
  }
1437
1449
  function XYZ(x, y, z, alpha, space) {
1438
1450
  Companion_getInstance_3();
1439
- this.w1m_1 = x;
1440
- this.x1m_1 = y;
1441
- this.y1m_1 = z;
1442
- this.z1m_1 = alpha;
1443
- this.a1n_1 = space;
1451
+ this.d1m_1 = x;
1452
+ this.e1m_1 = y;
1453
+ this.f1m_1 = z;
1454
+ this.g1m_1 = alpha;
1455
+ this.h1m_1 = space;
1444
1456
  }
1445
- protoOf(XYZ).u1j = function () {
1446
- return this.a1n_1;
1457
+ protoOf(XYZ).c1j = function () {
1458
+ return this.h1m_1;
1447
1459
  };
1448
- protoOf(XYZ).m1o = function (space) {
1460
+ protoOf(XYZ).u1n = function (space) {
1449
1461
  return adaptToM(this, space, get_CAT02_XYZ_TO_LMS(), get_CAT02_LMS_TO_XYZ());
1450
1462
  };
1451
- protoOf(XYZ).b1n = function (space) {
1452
- var _destruct__k2r9zo = this.m1o(XYZColorSpace_0(space.r1m()));
1453
- var x = _destruct__k2r9zo.y9();
1454
- var y = _destruct__k2r9zo.z9();
1455
- var z = _destruct__k2r9zo.ji();
1456
- var f = space.a1m();
1463
+ protoOf(XYZ).i1m = function (space) {
1464
+ var _destruct__k2r9zo = this.u1n(XYZColorSpace_0(space.y1l()));
1465
+ var x = _destruct__k2r9zo.i9();
1466
+ var y = _destruct__k2r9zo.j9();
1467
+ var z = _destruct__k2r9zo.sh();
1468
+ var f = space.i1l();
1457
1469
  // Inline function 'com.github.ajalt.colormath.internal.dot' call
1458
- var this_0 = _Matrix___init__impl__q3kp4w(space.q1m());
1470
+ var this_0 = _Matrix___init__impl__q3kp4w(space.x1l());
1459
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;
1460
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;
1461
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;
1462
- return space.h1l(f.k1m(tmp0), f.k1m(tmp2), f.k1m(b), this.z1m_1);
1474
+ return space.p1k(f.s1l(tmp0), f.s1l(tmp2), f.s1l(b), this.g1m_1);
1463
1475
  };
1464
- protoOf(XYZ).v1j = function () {
1465
- return this.b1n(RGBColorSpaces_getInstance().o1l_1);
1476
+ protoOf(XYZ).d1j = function () {
1477
+ return this.i1m(RGBColorSpaces_getInstance().w1k_1);
1466
1478
  };
1467
- protoOf(XYZ).w1j = function () {
1479
+ protoOf(XYZ).e1j = function () {
1468
1480
  return this;
1469
1481
  };
1470
- protoOf(XYZ).y9 = function () {
1471
- return this.w1m_1;
1482
+ protoOf(XYZ).i9 = function () {
1483
+ return this.d1m_1;
1472
1484
  };
1473
- protoOf(XYZ).z9 = function () {
1474
- return this.x1m_1;
1485
+ protoOf(XYZ).j9 = function () {
1486
+ return this.e1m_1;
1475
1487
  };
1476
- protoOf(XYZ).ji = function () {
1477
- return this.y1m_1;
1488
+ protoOf(XYZ).sh = function () {
1489
+ return this.f1m_1;
1478
1490
  };
1479
1491
  protoOf(XYZ).toString = function () {
1480
- return 'XYZ(x=' + this.w1m_1 + ', y=' + this.x1m_1 + ', z=' + this.y1m_1 + ', alpha=' + this.z1m_1 + ', space=' + toString(this.a1n_1) + ')';
1492
+ return 'XYZ(x=' + this.d1m_1 + ', y=' + this.e1m_1 + ', z=' + this.f1m_1 + ', alpha=' + this.g1m_1 + ', space=' + toString(this.h1m_1) + ')';
1481
1493
  };
1482
1494
  protoOf(XYZ).hashCode = function () {
1483
- var result = getNumberHashCode(this.w1m_1);
1484
- result = imul(result, 31) + getNumberHashCode(this.x1m_1) | 0;
1485
- result = imul(result, 31) + getNumberHashCode(this.y1m_1) | 0;
1486
- result = imul(result, 31) + getNumberHashCode(this.z1m_1) | 0;
1487
- result = imul(result, 31) + hashCode(this.a1n_1) | 0;
1495
+ var result = getNumberHashCode(this.d1m_1);
1496
+ result = imul(result, 31) + getNumberHashCode(this.e1m_1) | 0;
1497
+ result = imul(result, 31) + getNumberHashCode(this.f1m_1) | 0;
1498
+ result = imul(result, 31) + getNumberHashCode(this.g1m_1) | 0;
1499
+ result = imul(result, 31) + hashCode(this.h1m_1) | 0;
1488
1500
  return result;
1489
1501
  };
1490
1502
  protoOf(XYZ).equals = function (other) {
@@ -1493,27 +1505,24 @@
1493
1505
  if (!(other instanceof XYZ))
1494
1506
  return false;
1495
1507
  var tmp0_other_with_cast = other instanceof XYZ ? other : THROW_CCE();
1496
- if (!equals(this.w1m_1, tmp0_other_with_cast.w1m_1))
1508
+ if (!equals(this.d1m_1, tmp0_other_with_cast.d1m_1))
1497
1509
  return false;
1498
- if (!equals(this.x1m_1, tmp0_other_with_cast.x1m_1))
1510
+ if (!equals(this.e1m_1, tmp0_other_with_cast.e1m_1))
1499
1511
  return false;
1500
- if (!equals(this.y1m_1, tmp0_other_with_cast.y1m_1))
1512
+ if (!equals(this.f1m_1, tmp0_other_with_cast.f1m_1))
1501
1513
  return false;
1502
- if (!equals(this.z1m_1, tmp0_other_with_cast.z1m_1))
1514
+ if (!equals(this.g1m_1, tmp0_other_with_cast.g1m_1))
1503
1515
  return false;
1504
- if (!equals(this.a1n_1, tmp0_other_with_cast.a1n_1))
1516
+ if (!equals(this.h1m_1, tmp0_other_with_cast.h1m_1))
1505
1517
  return false;
1506
1518
  return true;
1507
1519
  };
1508
1520
  function XYZColorSpace() {
1509
1521
  }
1510
- function XYZColorSpace_0(whitePoint) {
1511
- return whitePoint.equals(Illuminant_getInstance().n1k_1) ? XYZColorSpaces_getInstance().k1o_1 : whitePoint.equals(Illuminant_getInstance().l1k_1) ? XYZColorSpaces_getInstance().l1o_1 : new XYZColorSpaceImpl(whitePoint);
1512
- }
1513
1522
  function XYZColorSpaces() {
1514
1523
  XYZColorSpaces_instance = this;
1515
- this.k1o_1 = new XYZColorSpaceImpl(Illuminant_getInstance().n1k_1);
1516
- this.l1o_1 = new XYZColorSpaceImpl(Illuminant_getInstance().l1k_1);
1524
+ this.s1n_1 = new XYZColorSpaceImpl(Illuminant_getInstance().v1j_1);
1525
+ this.t1n_1 = new XYZColorSpaceImpl(Illuminant_getInstance().t1j_1);
1517
1526
  }
1518
1527
  var XYZColorSpaces_instance;
1519
1528
  function XYZColorSpaces_getInstance() {
@@ -1521,37 +1530,43 @@
1521
1530
  new XYZColorSpaces();
1522
1531
  return XYZColorSpaces_instance;
1523
1532
  }
1533
+ function XYZColorSpace_0(whitePoint) {
1534
+ return whitePoint.equals(Illuminant_getInstance().v1j_1) ? XYZColorSpaces_getInstance().s1n_1 : whitePoint.equals(Illuminant_getInstance().t1j_1) ? XYZColorSpaces_getInstance().t1n_1 : new XYZColorSpaceImpl(whitePoint);
1535
+ }
1524
1536
  function chromaticAdaptationMatrix(_this__u8e3s4, srcWp, xyzToLms, lmsToXyz) {
1525
1537
  xyzToLms = xyzToLms === VOID ? get_CAT02_XYZ_TO_LMS() : xyzToLms;
1526
1538
  lmsToXyz = lmsToXyz === VOID ? get_CAT02_LMS_TO_XYZ() : lmsToXyz;
1527
- var dstWp = _this__u8e3s4.r1m().h1k_1;
1528
- var src = dot_0(xyzToLms, srcWp.h1o(), srcWp.f1o_1, srcWp.i1o());
1529
- var dst = dot_0(xyzToLms, dstWp.h1o(), dstWp.f1o_1, dstWp.i1o());
1539
+ var dstWp = _this__u8e3s4.y1l().p1j_1;
1540
+ var src = dot_0(xyzToLms, srcWp.p1n(), srcWp.n1n_1, srcWp.q1n());
1541
+ var dst = dot_0(xyzToLms, dstWp.p1n(), dstWp.n1n_1, dstWp.q1n());
1530
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);
1531
1543
  }
1532
1544
  function XYZColorSpaceImpl(whitePoint) {
1533
- this.n1o_1 = whitePoint;
1534
- this.o1o_1 = zeroOneComponentInfo('XYZ');
1545
+ this.v1n_1 = whitePoint;
1546
+ this.w1n_1 = zeroOneComponentInfo('XYZ');
1535
1547
  }
1536
- protoOf(XYZColorSpaceImpl).r1m = function () {
1537
- return this.n1o_1;
1548
+ protoOf(XYZColorSpaceImpl).y1l = function () {
1549
+ return this.v1n_1;
1550
+ };
1551
+ protoOf(XYZColorSpaceImpl).l12 = function () {
1552
+ return 'XYZ';
1538
1553
  };
1539
- protoOf(XYZColorSpaceImpl).t1k = function () {
1540
- return this.o1o_1;
1554
+ protoOf(XYZColorSpaceImpl).b1k = function () {
1555
+ return this.w1n_1;
1541
1556
  };
1542
1557
  protoOf(XYZColorSpaceImpl).toString = function () {
1543
- return 'XYZColorSpace(' + this.n1o_1.toString() + ')';
1558
+ return 'XYZColorSpace(' + this.v1n_1.toString() + ')';
1544
1559
  };
1545
- protoOf(XYZColorSpaceImpl).h1l = function (x, y, z, alpha) {
1560
+ protoOf(XYZColorSpaceImpl).p1k = function (x, y, z, alpha) {
1546
1561
  return new XYZ(x, y, z, alpha, this);
1547
1562
  };
1548
1563
  protoOf(XYZColorSpaceImpl).hashCode = function () {
1549
- return this.n1o_1.hashCode();
1564
+ return this.v1n_1.hashCode();
1550
1565
  };
1551
1566
  protoOf(XYZColorSpaceImpl).equals = function (other) {
1552
1567
  var tmp;
1553
1568
  if (!(other == null) ? isInterface(other, XYZColorSpace) : false) {
1554
- tmp = this.n1o_1.equals(other.r1m());
1569
+ tmp = this.v1n_1.equals(other.y1l());
1555
1570
  } else {
1556
1571
  tmp = false;
1557
1572
  }
@@ -1567,26 +1582,26 @@
1567
1582
  }
1568
1583
  function xyY(x, y, Y) {
1569
1584
  Y = Y === VOID ? 1.0 : Y;
1570
- this.d1o_1 = x;
1571
- this.e1o_1 = y;
1572
- this.f1o_1 = Y;
1585
+ this.l1n_1 = x;
1586
+ this.m1n_1 = y;
1587
+ this.n1n_1 = Y;
1573
1588
  }
1574
- protoOf(xyY).g1o = function () {
1575
- return 1 - this.d1o_1 - this.e1o_1;
1589
+ protoOf(xyY).o1n = function () {
1590
+ return 1 - this.l1n_1 - this.m1n_1;
1576
1591
  };
1577
- protoOf(xyY).h1o = function () {
1578
- return this.d1o_1 * this.f1o_1 / this.e1o_1;
1592
+ protoOf(xyY).p1n = function () {
1593
+ return this.l1n_1 * this.n1n_1 / this.m1n_1;
1579
1594
  };
1580
- protoOf(xyY).i1o = function () {
1581
- return (1 - this.d1o_1 - this.e1o_1) * this.f1o_1 / this.e1o_1;
1595
+ protoOf(xyY).q1n = function () {
1596
+ return (1 - this.l1n_1 - this.m1n_1) * this.n1n_1 / this.m1n_1;
1582
1597
  };
1583
1598
  protoOf(xyY).toString = function () {
1584
- return 'xyY(x=' + this.d1o_1 + ', y=' + this.e1o_1 + ', Y=' + this.f1o_1 + ')';
1599
+ return 'xyY(x=' + this.l1n_1 + ', y=' + this.m1n_1 + ', Y=' + this.n1n_1 + ')';
1585
1600
  };
1586
1601
  protoOf(xyY).hashCode = function () {
1587
- var result = getNumberHashCode(this.d1o_1);
1588
- result = imul(result, 31) + getNumberHashCode(this.e1o_1) | 0;
1589
- result = imul(result, 31) + getNumberHashCode(this.f1o_1) | 0;
1602
+ var result = getNumberHashCode(this.l1n_1);
1603
+ result = imul(result, 31) + getNumberHashCode(this.m1n_1) | 0;
1604
+ result = imul(result, 31) + getNumberHashCode(this.n1n_1) | 0;
1590
1605
  return result;
1591
1606
  };
1592
1607
  protoOf(xyY).equals = function (other) {
@@ -1595,30 +1610,30 @@
1595
1610
  if (!(other instanceof xyY))
1596
1611
  return false;
1597
1612
  var tmp0_other_with_cast = other instanceof xyY ? other : THROW_CCE();
1598
- if (!equals(this.d1o_1, tmp0_other_with_cast.d1o_1))
1613
+ if (!equals(this.l1n_1, tmp0_other_with_cast.l1n_1))
1599
1614
  return false;
1600
- if (!equals(this.e1o_1, tmp0_other_with_cast.e1o_1))
1615
+ if (!equals(this.m1n_1, tmp0_other_with_cast.m1n_1))
1601
1616
  return false;
1602
- if (!equals(this.f1o_1, tmp0_other_with_cast.f1o_1))
1617
+ if (!equals(this.n1n_1, tmp0_other_with_cast.n1n_1))
1603
1618
  return false;
1604
1619
  return true;
1605
1620
  };
1606
1621
  //region block: post-declaration
1607
- protoOf(Ansi16).w1j = toXYZ;
1608
- protoOf(Ansi256).w1j = toXYZ;
1609
- protoOf(HSV).w1j = toXYZ;
1610
- protoOf(Companion_2).v1k = invoke$default;
1611
- protoOf(Companion_2).a1l = invoke$default_0;
1612
- protoOf(Companion_2).w1k = from255$default;
1613
- protoOf(SRGB).v1k = invoke$default;
1614
- protoOf(SRGB).a1l = invoke$default_0;
1615
- protoOf(SRGB).w1k = from255$default;
1616
- protoOf(RGBColorSpaceImpl).v1k = invoke$default;
1617
- protoOf(RGBColorSpaceImpl).m1m = invoke;
1618
- protoOf(RGBColorSpaceImpl).a1l = invoke$default_0;
1619
- protoOf(RGBColorSpaceImpl).o1m = invoke_0;
1620
- protoOf(RGBColorSpaceImpl).n1m = from255;
1621
- protoOf(RGBColorSpaceImpl).w1k = from255$default;
1622
+ protoOf(Ansi16).e1j = toXYZ;
1623
+ protoOf(Ansi256).e1j = toXYZ;
1624
+ protoOf(HSV).e1j = toXYZ;
1625
+ protoOf(Companion_2).d1k = invoke$default;
1626
+ protoOf(Companion_2).i1k = invoke$default_0;
1627
+ protoOf(Companion_2).e1k = from255$default;
1628
+ protoOf(SRGB).d1k = invoke$default;
1629
+ protoOf(SRGB).i1k = invoke$default_0;
1630
+ protoOf(SRGB).e1k = from255$default;
1631
+ protoOf(RGBColorSpaceImpl).d1k = invoke$default;
1632
+ protoOf(RGBColorSpaceImpl).t1l = invoke;
1633
+ protoOf(RGBColorSpaceImpl).i1k = invoke$default_0;
1634
+ protoOf(RGBColorSpaceImpl).u1l = invoke_0;
1635
+ protoOf(RGBColorSpaceImpl).v1l = from255;
1636
+ protoOf(RGBColorSpaceImpl).e1k = from255$default;
1622
1637
  //endregion
1623
1638
  //region block: init
1624
1639
  PqNonlinearity_instance = new PqNonlinearity();