sloth-d2c-figma-plugin 2.0.3-beta46

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.
@@ -0,0 +1,686 @@
1
+ /*
2
+ * [js-sha1]{@link https://github.com/emn178/js-sha1}
3
+ *
4
+ * @version 0.7.0
5
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
6
+ * @copyright Chen, Yi-Cyuan 2014-2024
7
+ * @license MIT
8
+ */
9
+
10
+ /*
11
+ object-assign
12
+ (c) Sindre Sorhus
13
+ @license MIT
14
+ */
15
+
16
+ /*!
17
+ * decimal.js v10.6.0
18
+ * An arbitrary-precision Decimal type for JavaScript.
19
+ * https://github.com/MikeMcl/decimal.js
20
+ * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
21
+ * MIT Licence
22
+ */
23
+
24
+ /*!
25
+ * Canvas
26
+ * Copyright (c) 2010 LearnBoost <tj@learnboost.com>
27
+ * MIT Licensed
28
+ */
29
+
30
+ /*!
31
+ * Canvas - CanvasPattern
32
+ * Copyright (c) 2010 LearnBoost <tj@learnboost.com>
33
+ * MIT Licensed
34
+ */
35
+
36
+ /*!
37
+ * Canvas - Context2d
38
+ * Copyright (c) 2010 LearnBoost <tj@learnboost.com>
39
+ * MIT Licensed
40
+ */
41
+
42
+ /*!
43
+ * Canvas - Image
44
+ * Copyright (c) 2010 LearnBoost <tj@learnboost.com>
45
+ * MIT Licensed
46
+ */
47
+
48
+ /*!
49
+ * Canvas - JPEGStream
50
+ * Copyright (c) 2010 LearnBoost <tj@learnboost.com>
51
+ * MIT Licensed
52
+ */
53
+
54
+ /*!
55
+ * Canvas - PDFStream
56
+ */
57
+
58
+ /*!
59
+ * Canvas - PNGStream
60
+ * Copyright (c) 2010 LearnBoost <tj@learnboost.com>
61
+ * MIT Licensed
62
+ */
63
+
64
+ /*!
65
+ * Copyright (c) 2015-2020, Salesforce.com, Inc.
66
+ * All rights reserved.
67
+ *
68
+ * Redistribution and use in source and binary forms, with or without
69
+ * modification, are permitted provided that the following conditions are met:
70
+ *
71
+ * 1. Redistributions of source code must retain the above copyright notice,
72
+ * this list of conditions and the following disclaimer.
73
+ *
74
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
75
+ * this list of conditions and the following disclaimer in the documentation
76
+ * and/or other materials provided with the distribution.
77
+ *
78
+ * 3. Neither the name of Salesforce.com nor the names of its contributors may
79
+ * be used to endorse or promote products derived from this software without
80
+ * specific prior written permission.
81
+ *
82
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
83
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
84
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
85
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
86
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
87
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
88
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
89
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
90
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
91
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
92
+ * POSSIBILITY OF SUCH DAMAGE.
93
+ */
94
+
95
+ /*! !webpack amd options */
96
+
97
+ /*! ../ignoreAttributes */
98
+
99
+ /*! ../lib/base64 */
100
+
101
+ /*! ../lib/crypto */
102
+
103
+ /*! ../lib/md5 */
104
+
105
+ /*! ../lib/request */
106
+
107
+ /*! ../package.json */
108
+
109
+ /*! ../util */
110
+
111
+ /*! ../validator */
112
+
113
+ /*! ./../node_modules/process/browser.js */
114
+
115
+ /*! ./../node_modules/webpack/buildin/module.js */
116
+
117
+ /*! ./DocTypeReader */
118
+
119
+ /*! ./OptionsBuilder */
120
+
121
+ /*! ./OrderedObjParser */
122
+
123
+ /*! ./advance */
124
+
125
+ /*! ./async */
126
+
127
+ /*! ./base */
128
+
129
+ /*! ./event */
130
+
131
+ /*! ./node2json */
132
+
133
+ /*! ./orderedJs2Xml */
134
+
135
+ /*! ./session */
136
+
137
+ /*! ./src/cos */
138
+
139
+ /*! ./task */
140
+
141
+ /*! ./toPrimitive.js */
142
+
143
+ /*! ./toPropertyKey.js */
144
+
145
+ /*! ./tracker */
146
+
147
+ /*! ./typeof.js */
148
+
149
+ /*! ./util */
150
+
151
+ /*! ./validator */
152
+
153
+ /*! ./xmlNode */
154
+
155
+ /*! ./xmlbuilder/json2xml */
156
+
157
+ /*! ./xmlparser/XMLParser */
158
+
159
+ /*! @babel/runtime/helpers/classCallCheck */
160
+
161
+ /*! @babel/runtime/helpers/createClass */
162
+
163
+ /*! @babel/runtime/helpers/typeof */
164
+
165
+ /*! exports provided: name, version, description, main, types, scripts, repository, keywords, author, license, bugs, homepage, dependencies, devDependencies, default */
166
+
167
+ /*! fast-xml-parser */
168
+
169
+ /*! no static exports found */
170
+
171
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
172
+
173
+ /*! strnum */
174
+
175
+ /*!******************!*\
176
+ !*** ./index.js ***!
177
+ \******************/
178
+
179
+ /*!********************!*\
180
+ !*** ./lib/md5.js ***!
181
+ \********************/
182
+
183
+ /*!********************!*\
184
+ !*** ./src/cos.js ***!
185
+ \********************/
186
+
187
+ /*!*********************!*\
188
+ !*** ./src/base.js ***!
189
+ \*********************/
190
+
191
+ /*!*********************!*\
192
+ !*** ./src/task.js ***!
193
+ \*********************/
194
+
195
+ /*!*********************!*\
196
+ !*** ./src/util.js ***!
197
+ \*********************/
198
+
199
+ /*!**********************!*\
200
+ !*** ./package.json ***!
201
+ \**********************/
202
+
203
+ /*!**********************!*\
204
+ !*** ./src/async.js ***!
205
+ \**********************/
206
+
207
+ /*!**********************!*\
208
+ !*** ./src/event.js ***!
209
+ \**********************/
210
+
211
+ /*!***********************!*\
212
+ !*** ./lib/base64.js ***!
213
+ \***********************/
214
+
215
+ /*!***********************!*\
216
+ !*** ./lib/crypto.js ***!
217
+ \***********************/
218
+
219
+ /*!************************!*\
220
+ !*** ./lib/request.js ***!
221
+ \************************/
222
+
223
+ /*!************************!*\
224
+ !*** ./src/advance.js ***!
225
+ \************************/
226
+
227
+ /*!************************!*\
228
+ !*** ./src/session.js ***!
229
+ \************************/
230
+
231
+ /*!************************!*\
232
+ !*** ./src/tracker.js ***!
233
+ \************************/
234
+
235
+ /*!***********************************!*\
236
+ !*** (webpack)/buildin/module.js ***!
237
+ \***********************************/
238
+
239
+ /*!***************************************!*\
240
+ !*** ./node_modules/strnum/strnum.js ***!
241
+ \***************************************/
242
+
243
+ /*!****************************************!*\
244
+ !*** (webpack)/buildin/amd-options.js ***!
245
+ \****************************************/
246
+
247
+ /*!*****************************************!*\
248
+ !*** ./node_modules/process/browser.js ***!
249
+ \*****************************************/
250
+
251
+ /*!*************************************************!*\
252
+ !*** ./node_modules/fast-xml-parser/src/fxp.js ***!
253
+ \*************************************************/
254
+
255
+ /*!**************************************************!*\
256
+ !*** ./node_modules/fast-xml-parser/src/util.js ***!
257
+ \**************************************************/
258
+
259
+ /*!*******************************************************!*\
260
+ !*** ./node_modules/@babel/runtime/helpers/typeof.js ***!
261
+ \*******************************************************/
262
+
263
+ /*!*******************************************************!*\
264
+ !*** ./node_modules/fast-xml-parser/src/validator.js ***!
265
+ \*******************************************************/
266
+
267
+ /*!************************************************************!*\
268
+ !*** ./node_modules/@babel/runtime/helpers/createClass.js ***!
269
+ \************************************************************/
270
+
271
+ /*!************************************************************!*\
272
+ !*** ./node_modules/@babel/runtime/helpers/toPrimitive.js ***!
273
+ \************************************************************/
274
+
275
+ /*!**************************************************************!*\
276
+ !*** ./node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
277
+ \**************************************************************/
278
+
279
+ /*!**************************************************************!*\
280
+ !*** ./node_modules/fast-xml-parser/src/ignoreAttributes.js ***!
281
+ \**************************************************************/
282
+
283
+ /*!***************************************************************!*\
284
+ !*** ./node_modules/@babel/runtime/helpers/classCallCheck.js ***!
285
+ \***************************************************************/
286
+
287
+ /*!***************************************************************!*\
288
+ !*** ./node_modules/fast-xml-parser/src/xmlparser/xmlNode.js ***!
289
+ \***************************************************************/
290
+
291
+ /*!*****************************************************************!*\
292
+ !*** ./node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js ***!
293
+ \*****************************************************************/
294
+
295
+ /*!*****************************************************************!*\
296
+ !*** ./node_modules/fast-xml-parser/src/xmlparser/XMLParser.js ***!
297
+ \*****************************************************************/
298
+
299
+ /*!*****************************************************************!*\
300
+ !*** ./node_modules/fast-xml-parser/src/xmlparser/node2json.js ***!
301
+ \*****************************************************************/
302
+
303
+ /*!*********************************************************************!*\
304
+ !*** ./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js ***!
305
+ \*********************************************************************/
306
+
307
+ /*!**********************************************************************!*\
308
+ !*** ./node_modules/fast-xml-parser/src/xmlbuilder/orderedJs2Xml.js ***!
309
+ \**********************************************************************/
310
+
311
+ /*!**********************************************************************!*\
312
+ !*** ./node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js ***!
313
+ \**********************************************************************/
314
+
315
+ /*!************************************************************************!*\
316
+ !*** ./node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js ***!
317
+ \************************************************************************/
318
+
319
+ /**
320
+ * @description Calculate deltaE OK which is the simple root sum of squares
321
+ * @param {number[]} reference - Array of OKLab values: L as 0..1, a and b as -1..1
322
+ * @param {number[]} sample - Array of OKLab values: L as 0..1, a and b as -1..1
323
+ * @return {number} How different a color sample is from reference
324
+ *
325
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
326
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
327
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js
328
+ */
329
+
330
+ /**
331
+ * @license
332
+ * Lodash <https://lodash.com/>
333
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
334
+ * Released under MIT license <https://lodash.com/license>
335
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
336
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
337
+ */
338
+
339
+ /**
340
+ * @license MIT https://github.com/facelessuser/coloraide/blob/main/LICENSE.md
341
+ */
342
+
343
+ /**
344
+ * @license React
345
+ * react-is.production.min.js
346
+ *
347
+ * Copyright (c) Facebook, Inc. and its affiliates.
348
+ *
349
+ * This source code is licensed under the MIT license found in the
350
+ * LICENSE file in the root directory of this source tree.
351
+ */
352
+
353
+ /**
354
+ * @license React
355
+ * use-sync-external-store-shim.production.js
356
+ *
357
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
358
+ *
359
+ * This source code is licensed under the MIT license found in the
360
+ * LICENSE file in the root directory of this source tree.
361
+ */
362
+
363
+ /**
364
+ * @license React
365
+ * use-sync-external-store-shim/with-selector.production.js
366
+ *
367
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
368
+ *
369
+ * This source code is licensed under the MIT license found in the
370
+ * LICENSE file in the root directory of this source tree.
371
+ */
372
+
373
+ /**
374
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
375
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
376
+ *
377
+ * XYZ <-> LMS matrices recalculated for consistent reference white
378
+ * @see https://github.com/w3c/csswg-drafts/issues/6642#issuecomment-943521484
379
+ */
380
+
381
+ /**
382
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
383
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
384
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js
385
+ */
386
+
387
+ /**
388
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
389
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
390
+ */
391
+
392
+ /**
393
+ * @param {number} hue - Hue as degrees 0..360
394
+ * @param {number} white - Whiteness as percentage 0..100
395
+ * @param {number} black - Blackness as percentage 0..100
396
+ * @return {number[]} Array of RGB components 0..1
397
+ *
398
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
399
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hwbToRgb.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
400
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hwbToRgb.js
401
+ */
402
+
403
+ /**
404
+ * @param {number} hue - Hue as degrees 0..360
405
+ * @param {number} sat - Saturation as percentage 0..100
406
+ * @param {number} light - Lightness as percentage 0..100
407
+ * @return {number[]} Array of sRGB components; in-gamut colors in range [0..1]
408
+ *
409
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
410
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hslToRgb.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
411
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hslToRgb.js
412
+ */
413
+
414
+ /**
415
+ * Assuming XYZ is relative to D50, convert to CIE Lab
416
+ * from CIE standard, which now defines these as a rational fraction
417
+ *
418
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
419
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
420
+ */
421
+
422
+ /**
423
+ * Bradford chromatic adaptation from D50 to D65
424
+ *
425
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
426
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
427
+ */
428
+
429
+ /**
430
+ * Bradford chromatic adaptation from D65 to D50
431
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
432
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
433
+ * @see http://www.brucelindbloom.com/index.html?Eqn_ChromAdapt.html
434
+ */
435
+
436
+ /**
437
+ * Character class utilities for XML NS 1.0 edition 3.
438
+ *
439
+ * @author Louis-Dominique Dubeau
440
+ * @license MIT
441
+ * @copyright Louis-Dominique Dubeau
442
+ */
443
+
444
+ /**
445
+ * Character classes and associated utilities for the 2nd edition of XML 1.1.
446
+ *
447
+ * @author Louis-Dominique Dubeau
448
+ * @license MIT
449
+ * @copyright Louis-Dominique Dubeau
450
+ */
451
+
452
+ /**
453
+ * Character classes and associated utilities for the 5th edition of XML 1.0.
454
+ *
455
+ * @author Louis-Dominique Dubeau
456
+ * @license MIT
457
+ * @copyright Louis-Dominique Dubeau
458
+ */
459
+
460
+ /**
461
+ * Convert D50 XYZ to linear-light prophoto-rgb
462
+ *
463
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
464
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
465
+ * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
466
+ */
467
+
468
+ /**
469
+ * Convert Lab to D50-adapted XYZ
470
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
471
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
472
+ * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
473
+ */
474
+
475
+ /**
476
+ * Convert XYZ to linear-light P3
477
+ *
478
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
479
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
480
+ */
481
+
482
+ /**
483
+ * Convert XYZ to linear-light rec2020
484
+ *
485
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
486
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
487
+ */
488
+
489
+ /**
490
+ * Convert an array of a98-rgb values in the range 0.0 - 1.0
491
+ * to linear light (un-companded) form. Negative values are also now accepted
492
+ *
493
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
494
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
495
+ */
496
+
497
+ /**
498
+ * Convert an array of display-p3 RGB values in the range 0.0 - 1.0
499
+ * to linear light (un-companded) form.
500
+ *
501
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
502
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
503
+ */
504
+
505
+ /**
506
+ * Convert an array of gamma-corrected sRGB values in the 0.0 to 1.0 range to HSL.
507
+ *
508
+ * @param {Color} RGB [r, g, b]
509
+ * - Red component 0..1
510
+ * - Green component 0..1
511
+ * - Blue component 0..1
512
+ * @return {number[]} Array of HSL values: Hue as degrees 0..360, Saturation and Lightness as percentages 0..100
513
+ *
514
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
515
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/utilities.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
516
+ *
517
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/better-rgbToHsl.js
518
+ */
519
+
520
+ /**
521
+ * Convert an array of linear-light a98-rgb in the range 0.0-1.0
522
+ * to gamma corrected form. Negative values are also now accepted
523
+ *
524
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
525
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
526
+ */
527
+
528
+ /**
529
+ * Convert an array of linear-light a98-rgb values to CIE XYZ
530
+ * http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
531
+ * has greater numerical precision than section 4.3.5.3 of
532
+ * https://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf
533
+ * but the values below were calculated from first principles
534
+ * from the chromaticity coordinates of R G B W
535
+ *
536
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
537
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
538
+ * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
539
+ * @see https://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf
540
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/matrixmaker.html
541
+ */
542
+
543
+ /**
544
+ * Convert an array of linear-light display-p3 RGB in the range 0.0-1.0
545
+ * to gamma corrected form
546
+ *
547
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
548
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
549
+ */
550
+
551
+ /**
552
+ * Convert an array of linear-light display-p3 values to CIE XYZ
553
+ * using D65 (no chromatic adaptation)
554
+ *
555
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
556
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
557
+ * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
558
+ */
559
+
560
+ /**
561
+ * Convert an array of linear-light prophoto-rgb in the range 0.0-1.0
562
+ * to gamma corrected form.
563
+ * Transfer curve is gamma 1.8 with a small linear portion.
564
+ *
565
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
566
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
567
+ */
568
+
569
+ /**
570
+ * Convert an array of linear-light prophoto-rgb values to CIE D50 XYZ.
571
+ * Matrix cannot be expressed in rational form, but is calculated to 64 bit accuracy.
572
+ *
573
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
574
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
575
+ * @see see https://github.com/w3c/csswg-drafts/issues/7675
576
+ */
577
+
578
+ /**
579
+ * Convert an array of linear-light rec2020 RGB in the range 0.0-1.0
580
+ * to gamma corrected form ITU-R BT.2020-2 p.4
581
+ *
582
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
583
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
584
+ */
585
+
586
+ /**
587
+ * Convert an array of linear-light rec2020 values to CIE XYZ
588
+ * using D65 (no chromatic adaptation)
589
+ *
590
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
591
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
592
+ * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
593
+ */
594
+
595
+ /**
596
+ * Convert an array of linear-light sRGB values in the range 0.0-1.0 to gamma corrected form
597
+ * Extended transfer function:
598
+ * For negative values, linear portion extends on reflection
599
+ * of axis, then uses reflected pow below that
600
+ *
601
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
602
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
603
+ * @see https://en.wikipedia.org/wiki/SRGB
604
+ */
605
+
606
+ /**
607
+ * Convert an array of linear-light sRGB values to CIE XYZ
608
+ * using sRGB's own white, D65 (no chromatic adaptation)
609
+ *
610
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
611
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
612
+ */
613
+
614
+ /**
615
+ * Convert an array of of sRGB values where in-gamut values are in the range
616
+ * [0 - 1] to linear light (un-companded) form.
617
+ * Extended transfer function:
618
+ * For negative values, linear portion is extended on reflection of axis,
619
+ * then reflected power function is used.
620
+ *
621
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
622
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
623
+ * @see https://en.wikipedia.org/wiki/SRGB
624
+ */
625
+
626
+ /**
627
+ * Convert an array of prophoto-rgb values where in-gamut Colors are in the
628
+ * range [0.0 - 1.0] to linear light (un-companded) form. Transfer curve is
629
+ * gamma 1.8 with a small linear portion. Extended transfer function
630
+ *
631
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
632
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
633
+ */
634
+
635
+ /**
636
+ * Convert an array of rec2020 RGB values in the range 0.0 - 1.0
637
+ * to linear light (un-companded) form.
638
+ * ITU-R BT.2020-2 p.4
639
+ *
640
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
641
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
642
+ */
643
+
644
+ /**
645
+ * Given OKLab, convert to XYZ relative to D65
646
+ *
647
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
648
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
649
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js
650
+ */
651
+
652
+ /** @license React v0.20.2
653
+ * scheduler.production.min.js
654
+ *
655
+ * Copyright (c) Facebook, Inc. and its affiliates.
656
+ *
657
+ * This source code is licensed under the MIT license found in the
658
+ * LICENSE file in the root directory of this source tree.
659
+ */
660
+
661
+ /** @license React v16.13.1
662
+ * react-is.production.min.js
663
+ *
664
+ * Copyright (c) Facebook, Inc. and its affiliates.
665
+ *
666
+ * This source code is licensed under the MIT license found in the
667
+ * LICENSE file in the root directory of this source tree.
668
+ */
669
+
670
+ /** @license React v17.0.2
671
+ * react-dom.production.min.js
672
+ *
673
+ * Copyright (c) Facebook, Inc. and its affiliates.
674
+ *
675
+ * This source code is licensed under the MIT license found in the
676
+ * LICENSE file in the root directory of this source tree.
677
+ */
678
+
679
+ /** @license React v17.0.2
680
+ * react.production.min.js
681
+ *
682
+ * Copyright (c) Facebook, Inc. and its affiliates.
683
+ *
684
+ * This source code is licensed under the MIT license found in the
685
+ * LICENSE file in the root directory of this source tree.
686
+ */
Binary file
Binary file
Binary file
Binary file