@flux-ui/dashboard 3.0.0-next.32 → 3.0.0-next.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +2 -0
- package/dist/index.js +321 -37
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/css/component/DashboardNavigation.module.scss +2 -0
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, customRef, defineComponent, guardReactiveProps, inject, markRaw, mergeProps, normalizeClass, normalizeProps, openBlock, provide, ref, renderList, renderSlot, resolveComponent, toDisplayString, unref, useSlots, watch, withCtx } from "vue";
|
|
2
2
|
import { DateTime } from "luxon";
|
|
3
3
|
import { FluxIcon, FluxMenuItem, FluxSpacer } from "@flux-ui/components";
|
|
4
|
+
//#region ../../node_modules/.bun/@basmilius+utils@3.12.1/node_modules/@basmilius/utils/dist/index.mjs
|
|
4
5
|
function x$1(e) {
|
|
5
6
|
let t = {};
|
|
6
7
|
do {
|
|
@@ -19,6 +20,8 @@ function G$1(e, t, n) {
|
|
|
19
20
|
function K$1(e, t, n) {
|
|
20
21
|
Object.defineProperty(e, t, { value: n });
|
|
21
22
|
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/rgb/parseNumber.js
|
|
22
25
|
var parseNumber = (color, len) => {
|
|
23
26
|
if (typeof color !== "number") return;
|
|
24
27
|
if (len === 3) return {
|
|
@@ -48,6 +51,8 @@ var parseNumber = (color, len) => {
|
|
|
48
51
|
alpha: (color & 255) / 255
|
|
49
52
|
};
|
|
50
53
|
};
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/colors/named.js
|
|
51
56
|
var named = {
|
|
52
57
|
aliceblue: 15792383,
|
|
53
58
|
antiquewhite: 16444375,
|
|
@@ -198,24 +203,32 @@ var named = {
|
|
|
198
203
|
yellow: 16776960,
|
|
199
204
|
yellowgreen: 10145074
|
|
200
205
|
};
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/rgb/parseNamed.js
|
|
201
208
|
var parseNamed = (color) => {
|
|
202
209
|
return parseNumber(named[color.toLowerCase()], 6);
|
|
203
210
|
};
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/rgb/parseHex.js
|
|
204
213
|
var hex = /^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i;
|
|
205
214
|
var parseHex = (color) => {
|
|
206
215
|
let match;
|
|
207
216
|
return (match = color.match(hex)) ? parseNumber(parseInt(match[1], 16), match[1].length) : void 0;
|
|
208
217
|
};
|
|
209
|
-
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/util/regex.js
|
|
220
|
+
var num$1 = "([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)";
|
|
210
221
|
`${num$1}`;
|
|
211
|
-
|
|
222
|
+
var per = `${num$1}%`;
|
|
212
223
|
`${num$1}`;
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
224
|
+
var num_per = `(?:${num$1}%|${num$1})`;
|
|
225
|
+
var num_per_none = `(?:${num$1}%|${num$1}|none)`;
|
|
226
|
+
var hue$1 = `(?:${num$1}(deg|grad|rad|turn)|${num$1})`;
|
|
216
227
|
`${num$1}${num$1}`;
|
|
217
|
-
|
|
228
|
+
var c$1 = `\\s*,\\s*`;
|
|
218
229
|
new RegExp("^" + num_per_none + "$");
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/rgb/parseRgbLegacy.js
|
|
219
232
|
var rgb_num_old = new RegExp(`^rgba?\\(\\s*${num$1}${c$1}${num$1}${c$1}${num$1}\\s*(?:,\\s*${num_per}\\s*)?\\)$`);
|
|
220
233
|
var rgb_per_old = new RegExp(`^rgba?\\(\\s*${per}${c$1}${per}${c$1}${per}\\s*(?:,\\s*${num_per}\\s*)?\\)$`);
|
|
221
234
|
var parseRgbLegacy = (color) => {
|
|
@@ -234,11 +247,17 @@ var parseRgbLegacy = (color) => {
|
|
|
234
247
|
else if (match[5] !== void 0) res.alpha = Math.max(0, Math.min(1, +match[5]));
|
|
235
248
|
return res;
|
|
236
249
|
};
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/_prepare.js
|
|
237
252
|
var prepare = (color, mode) => color === void 0 ? void 0 : typeof color !== "object" ? parse(color) : color.mode !== void 0 ? color : mode ? {
|
|
238
253
|
...color,
|
|
239
254
|
mode
|
|
240
255
|
} : void 0;
|
|
256
|
+
//#endregion
|
|
257
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/converter.js
|
|
241
258
|
var converter = (target_mode = "rgb") => (color) => (color = prepare(color, target_mode)) !== void 0 ? color.mode === target_mode ? color : converters[color.mode][target_mode] ? converters[color.mode][target_mode](color) : target_mode === "rgb" ? converters[color.mode].rgb(color) : converters.rgb[target_mode](converters[color.mode].rgb(color)) : void 0;
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/modes.js
|
|
242
261
|
var converters = {};
|
|
243
262
|
var modes = {};
|
|
244
263
|
var parsers = [];
|
|
@@ -276,9 +295,11 @@ var useParser = (parser, mode) => {
|
|
|
276
295
|
if (parsers.indexOf(parser) < 0) parsers.push(parser);
|
|
277
296
|
}
|
|
278
297
|
};
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/parse.js
|
|
279
300
|
var IdentStartCodePoint = /[^\x00-\x7F]|[a-zA-Z_]/;
|
|
280
301
|
var IdentCodePoint = /[^\x00-\x7F]|[-\w]/;
|
|
281
|
-
|
|
302
|
+
var Tok = {
|
|
282
303
|
Function: "function",
|
|
283
304
|
Ident: "ident",
|
|
284
305
|
Number: "number",
|
|
@@ -526,6 +547,8 @@ var parse = (color) => {
|
|
|
526
547
|
while (i < len) if ((result = parsers[i++](color, parsed)) !== void 0) return result;
|
|
527
548
|
return tokens ? parseColorSyntax(tokens) : void 0;
|
|
528
549
|
};
|
|
550
|
+
//#endregion
|
|
551
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/rgb/parseRgb.js
|
|
529
552
|
function parseRgb(color, parsed) {
|
|
530
553
|
if (!parsed || parsed[0] !== "rgb" && parsed[0] !== "rgba") return;
|
|
531
554
|
const res = { mode: "rgb" };
|
|
@@ -537,6 +560,8 @@ function parseRgb(color, parsed) {
|
|
|
537
560
|
if (alpha.type !== Tok.None) res.alpha = Math.min(1, Math.max(0, alpha.type === Tok.Number ? alpha.value : alpha.value / 100));
|
|
538
561
|
return res;
|
|
539
562
|
}
|
|
563
|
+
//#endregion
|
|
564
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/rgb/parseTransparent.js
|
|
540
565
|
var parseTransparent = (c) => c === "transparent" ? {
|
|
541
566
|
mode: "rgb",
|
|
542
567
|
r: 0,
|
|
@@ -544,7 +569,11 @@ var parseTransparent = (c) => c === "transparent" ? {
|
|
|
544
569
|
b: 0,
|
|
545
570
|
alpha: 0
|
|
546
571
|
} : void 0;
|
|
572
|
+
//#endregion
|
|
573
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/interpolate/lerp.js
|
|
547
574
|
var lerp = (a, b, t) => a + t * (b - a);
|
|
575
|
+
//#endregion
|
|
576
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/interpolate/piecewise.js
|
|
548
577
|
var get_classes = (arr) => {
|
|
549
578
|
let classes = [];
|
|
550
579
|
for (let i = 0; i < arr.length - 1; i++) {
|
|
@@ -565,7 +594,11 @@ var interpolatorPiecewise = (interpolator) => (arr) => {
|
|
|
565
594
|
return pair === void 0 ? void 0 : interpolator(pair[0], pair[1], cls - idx);
|
|
566
595
|
};
|
|
567
596
|
};
|
|
568
|
-
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/interpolate/linear.js
|
|
599
|
+
var interpolatorLinear = interpolatorPiecewise(lerp);
|
|
600
|
+
//#endregion
|
|
601
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/fixup/alpha.js
|
|
569
602
|
var fixupAlpha = (arr) => {
|
|
570
603
|
let some_defined = false;
|
|
571
604
|
let res = arr.map((v) => {
|
|
@@ -577,6 +610,8 @@ var fixupAlpha = (arr) => {
|
|
|
577
610
|
});
|
|
578
611
|
return some_defined ? res : arr;
|
|
579
612
|
};
|
|
613
|
+
//#endregion
|
|
614
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/rgb/definition.js
|
|
580
615
|
var definition$27 = {
|
|
581
616
|
mode: "rgb",
|
|
582
617
|
channels: [
|
|
@@ -615,6 +650,8 @@ var definition$27 = {
|
|
|
615
650
|
b: 0
|
|
616
651
|
}
|
|
617
652
|
};
|
|
653
|
+
//#endregion
|
|
654
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/a98/convertA98ToXyz65.js
|
|
618
655
|
var linearize$2 = (v = 0) => Math.pow(Math.abs(v), 563 / 256) * Math.sign(v);
|
|
619
656
|
var convertA98ToXyz65 = (a98) => {
|
|
620
657
|
let r = linearize$2(a98.r);
|
|
@@ -629,6 +666,8 @@ var convertA98ToXyz65 = (a98) => {
|
|
|
629
666
|
if (a98.alpha !== void 0) res.alpha = a98.alpha;
|
|
630
667
|
return res;
|
|
631
668
|
};
|
|
669
|
+
//#endregion
|
|
670
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/a98/convertXyz65ToA98.js
|
|
632
671
|
var gamma$2 = (v) => Math.pow(Math.abs(v), 256 / 563) * Math.sign(v);
|
|
633
672
|
var convertXyz65ToA98 = ({ x, y, z, alpha }) => {
|
|
634
673
|
if (x === void 0) x = 0;
|
|
@@ -643,6 +682,8 @@ var convertXyz65ToA98 = ({ x, y, z, alpha }) => {
|
|
|
643
682
|
if (alpha !== void 0) res.alpha = alpha;
|
|
644
683
|
return res;
|
|
645
684
|
};
|
|
685
|
+
//#endregion
|
|
686
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lrgb/convertRgbToLrgb.js
|
|
646
687
|
var fn$3 = (c = 0) => {
|
|
647
688
|
const abs = Math.abs(c);
|
|
648
689
|
if (abs <= .04045) return c / 12.92;
|
|
@@ -658,6 +699,8 @@ var convertRgbToLrgb = ({ r, g, b, alpha }) => {
|
|
|
658
699
|
if (alpha !== void 0) res.alpha = alpha;
|
|
659
700
|
return res;
|
|
660
701
|
};
|
|
702
|
+
//#endregion
|
|
703
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz65/convertRgbToXyz65.js
|
|
661
704
|
var convertRgbToXyz65 = (rgb) => {
|
|
662
705
|
let { r, g, b, alpha } = convertRgbToLrgb(rgb);
|
|
663
706
|
let res = {
|
|
@@ -669,6 +712,8 @@ var convertRgbToXyz65 = (rgb) => {
|
|
|
669
712
|
if (alpha !== void 0) res.alpha = alpha;
|
|
670
713
|
return res;
|
|
671
714
|
};
|
|
715
|
+
//#endregion
|
|
716
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lrgb/convertLrgbToRgb.js
|
|
672
717
|
var fn$2 = (c = 0) => {
|
|
673
718
|
const abs = Math.abs(c);
|
|
674
719
|
if (abs > .0031308) return (Math.sign(c) || 1) * (1.055 * Math.pow(abs, 1 / 2.4) - .055);
|
|
@@ -684,6 +729,8 @@ var convertLrgbToRgb = ({ r, g, b, alpha }, mode = "rgb") => {
|
|
|
684
729
|
if (alpha !== void 0) res.alpha = alpha;
|
|
685
730
|
return res;
|
|
686
731
|
};
|
|
732
|
+
//#endregion
|
|
733
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz65/convertXyz65ToRgb.js
|
|
687
734
|
var convertXyz65ToRgb = ({ x, y, z, alpha }) => {
|
|
688
735
|
if (x === void 0) x = 0;
|
|
689
736
|
if (y === void 0) y = 0;
|
|
@@ -696,6 +743,8 @@ var convertXyz65ToRgb = ({ x, y, z, alpha }) => {
|
|
|
696
743
|
if (alpha !== void 0) res.alpha = alpha;
|
|
697
744
|
return res;
|
|
698
745
|
};
|
|
746
|
+
//#endregion
|
|
747
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/a98/definition.js
|
|
699
748
|
var definition$26 = {
|
|
700
749
|
...definition$27,
|
|
701
750
|
mode: "a98",
|
|
@@ -710,7 +759,11 @@ var definition$26 = {
|
|
|
710
759
|
xyz65: convertA98ToXyz65
|
|
711
760
|
}
|
|
712
761
|
};
|
|
762
|
+
//#endregion
|
|
763
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/util/normalizeHue.js
|
|
713
764
|
var normalizeHue = (hue) => (hue = hue % 360) < 0 ? hue + 360 : hue;
|
|
765
|
+
//#endregion
|
|
766
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/fixup/hue.js
|
|
714
767
|
var hue = (hues, fn) => {
|
|
715
768
|
return hues.map((hue, idx, arr) => {
|
|
716
769
|
if (hue === void 0) return hue;
|
|
@@ -727,7 +780,9 @@ var hue = (hues, fn) => {
|
|
|
727
780
|
}, []);
|
|
728
781
|
};
|
|
729
782
|
var fixupHueShorter = (arr) => hue(arr, (d) => Math.abs(d) <= 180 ? d : d - 360 * Math.sign(d));
|
|
730
|
-
|
|
783
|
+
//#endregion
|
|
784
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/cubehelix/constants.js
|
|
785
|
+
var M$1 = [
|
|
731
786
|
-.14861,
|
|
732
787
|
1.78277,
|
|
733
788
|
-.29227,
|
|
@@ -735,8 +790,10 @@ const M$1 = [
|
|
|
735
790
|
1.97294,
|
|
736
791
|
0
|
|
737
792
|
];
|
|
738
|
-
|
|
739
|
-
|
|
793
|
+
var degToRad = Math.PI / 180;
|
|
794
|
+
var radToDeg = 180 / Math.PI;
|
|
795
|
+
//#endregion
|
|
796
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/cubehelix/convertRgbToCubehelix.js
|
|
740
797
|
var DE = M$1[3] * M$1[4];
|
|
741
798
|
var BE = M$1[1] * M$1[4];
|
|
742
799
|
var BCAD = M$1[1] * M$1[2] - M$1[0] * M$1[3];
|
|
@@ -756,6 +813,8 @@ var convertRgbToCubehelix = ({ r, g, b, alpha }) => {
|
|
|
756
813
|
if (alpha !== void 0) res.alpha = alpha;
|
|
757
814
|
return res;
|
|
758
815
|
};
|
|
816
|
+
//#endregion
|
|
817
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/cubehelix/convertCubehelixToRgb.js
|
|
759
818
|
var convertCubehelixToRgb = ({ h, s, l, alpha }) => {
|
|
760
819
|
let res = { mode: "rgb" };
|
|
761
820
|
h = (h === void 0 ? 0 : h + 120) * degToRad;
|
|
@@ -769,6 +828,8 @@ var convertCubehelixToRgb = ({ h, s, l, alpha }) => {
|
|
|
769
828
|
if (alpha !== void 0) res.alpha = alpha;
|
|
770
829
|
return res;
|
|
771
830
|
};
|
|
831
|
+
//#endregion
|
|
832
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/difference.js
|
|
772
833
|
var differenceHueSaturation = (std, smp) => {
|
|
773
834
|
if (std.h === void 0 || smp.h === void 0 || !std.s || !smp.s) return 0;
|
|
774
835
|
let std_h = normalizeHue(std.h);
|
|
@@ -790,6 +851,8 @@ var differenceHueChroma = (std, smp) => {
|
|
|
790
851
|
let dH = Math.sin((smp_h - std_h + 360) / 2 * Math.PI / 180);
|
|
791
852
|
return 2 * Math.sqrt(std.c * smp.c) * dH;
|
|
792
853
|
};
|
|
854
|
+
//#endregion
|
|
855
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/average.js
|
|
793
856
|
var averageAngle = (val) => {
|
|
794
857
|
let sum = val.reduce((sum, val) => {
|
|
795
858
|
if (val !== void 0) {
|
|
@@ -805,6 +868,8 @@ var averageAngle = (val) => {
|
|
|
805
868
|
let angle = Math.atan2(sum.sin, sum.cos) * 180 / Math.PI;
|
|
806
869
|
return angle < 0 ? 360 + angle : angle;
|
|
807
870
|
};
|
|
871
|
+
//#endregion
|
|
872
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/cubehelix/definition.js
|
|
808
873
|
var definition$25 = {
|
|
809
874
|
mode: "cubehelix",
|
|
810
875
|
channels: [
|
|
@@ -837,6 +902,8 @@ var definition$25 = {
|
|
|
837
902
|
difference: { h: differenceHueSaturation },
|
|
838
903
|
average: { h: averageAngle }
|
|
839
904
|
};
|
|
905
|
+
//#endregion
|
|
906
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lch/convertLabToLch.js
|
|
840
907
|
var convertLabToLch = ({ l, a, b, alpha }, mode = "lch") => {
|
|
841
908
|
if (a === void 0) a = 0;
|
|
842
909
|
if (b === void 0) b = 0;
|
|
@@ -850,6 +917,8 @@ var convertLabToLch = ({ l, a, b, alpha }, mode = "lch") => {
|
|
|
850
917
|
if (alpha !== void 0) res.alpha = alpha;
|
|
851
918
|
return res;
|
|
852
919
|
};
|
|
920
|
+
//#endregion
|
|
921
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lch/convertLchToLab.js
|
|
853
922
|
var convertLchToLab = ({ l, c, h, alpha }, mode = "lab") => {
|
|
854
923
|
if (h === void 0) h = 0;
|
|
855
924
|
let res = {
|
|
@@ -861,20 +930,26 @@ var convertLchToLab = ({ l, c, h, alpha }, mode = "lab") => {
|
|
|
861
930
|
if (alpha !== void 0) res.alpha = alpha;
|
|
862
931
|
return res;
|
|
863
932
|
};
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
933
|
+
//#endregion
|
|
934
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz65/constants.js
|
|
935
|
+
var k$5 = Math.pow(29, 3) / Math.pow(3, 3);
|
|
936
|
+
var e$2 = Math.pow(6, 3) / Math.pow(29, 3);
|
|
937
|
+
//#endregion
|
|
938
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/constants.js
|
|
939
|
+
var D50 = {
|
|
867
940
|
X: .3457 / .3585,
|
|
868
941
|
Y: 1,
|
|
869
942
|
Z: .2958 / .3585
|
|
870
943
|
};
|
|
871
|
-
|
|
944
|
+
var D65 = {
|
|
872
945
|
X: .3127 / .329,
|
|
873
946
|
Y: 1,
|
|
874
947
|
Z: .3583 / .329
|
|
875
948
|
};
|
|
876
949
|
Math.pow(29, 3) / Math.pow(3, 3);
|
|
877
950
|
Math.pow(6, 3) / Math.pow(29, 3);
|
|
951
|
+
//#endregion
|
|
952
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertLab65ToXyz65.js
|
|
878
953
|
var fn$1 = (v) => Math.pow(v, 3) > e$2 ? Math.pow(v, 3) : (116 * v - 16) / k$5;
|
|
879
954
|
var convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
|
|
880
955
|
if (l === void 0) l = 0;
|
|
@@ -892,7 +967,11 @@ var convertLab65ToXyz65 = ({ l, a, b, alpha }) => {
|
|
|
892
967
|
if (alpha !== void 0) res.alpha = alpha;
|
|
893
968
|
return res;
|
|
894
969
|
};
|
|
970
|
+
//#endregion
|
|
971
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertLab65ToRgb.js
|
|
895
972
|
var convertLab65ToRgb = (lab) => convertXyz65ToRgb(convertLab65ToXyz65(lab));
|
|
973
|
+
//#endregion
|
|
974
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertXyz65ToLab65.js
|
|
896
975
|
var f$2 = (value) => value > e$2 ? Math.cbrt(value) : (k$5 * value + 16) / 116;
|
|
897
976
|
var convertXyz65ToLab65 = ({ x, y, z, alpha }) => {
|
|
898
977
|
if (x === void 0) x = 0;
|
|
@@ -910,15 +989,21 @@ var convertXyz65ToLab65 = ({ x, y, z, alpha }) => {
|
|
|
910
989
|
if (alpha !== void 0) res.alpha = alpha;
|
|
911
990
|
return res;
|
|
912
991
|
};
|
|
992
|
+
//#endregion
|
|
993
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/convertRgbToLab65.js
|
|
913
994
|
var convertRgbToLab65 = (rgb) => {
|
|
914
995
|
let res = convertXyz65ToLab65(convertRgbToXyz65(rgb));
|
|
915
996
|
if (rgb.r === rgb.b && rgb.b === rgb.g) res.a = res.b = 0;
|
|
916
997
|
return res;
|
|
917
998
|
};
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
999
|
+
//#endregion
|
|
1000
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/dlch/constants.js
|
|
1001
|
+
var θ = 26 / 180 * Math.PI;
|
|
1002
|
+
var cosθ = Math.cos(θ);
|
|
1003
|
+
var sinθ = Math.sin(θ);
|
|
1004
|
+
var factor = 100 / Math.log(139 / 100);
|
|
1005
|
+
//#endregion
|
|
1006
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/dlch/convertDlchToLab65.js
|
|
922
1007
|
var convertDlchToLab65 = ({ l, c, h, alpha }) => {
|
|
923
1008
|
if (l === void 0) l = 0;
|
|
924
1009
|
if (c === void 0) c = 0;
|
|
@@ -935,6 +1020,8 @@ var convertDlchToLab65 = ({ l, c, h, alpha }) => {
|
|
|
935
1020
|
if (alpha !== void 0) res.alpha = alpha;
|
|
936
1021
|
return res;
|
|
937
1022
|
};
|
|
1023
|
+
//#endregion
|
|
1024
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/dlch/convertLab65ToDlch.js
|
|
938
1025
|
var convertLab65ToDlch = ({ l, a, b, alpha }) => {
|
|
939
1026
|
if (l === void 0) l = 0;
|
|
940
1027
|
if (a === void 0) a = 0;
|
|
@@ -951,6 +1038,8 @@ var convertLab65ToDlch = ({ l, a, b, alpha }) => {
|
|
|
951
1038
|
if (alpha !== void 0) res.alpha = alpha;
|
|
952
1039
|
return res;
|
|
953
1040
|
};
|
|
1041
|
+
//#endregion
|
|
1042
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/dlab/definition.js
|
|
954
1043
|
var convertDlabToLab65 = (c) => convertDlchToLab65(convertLabToLch(c, "dlch"));
|
|
955
1044
|
var convertLab65ToDlab = (c) => convertLchToLab(convertLab65ToDlch(c), "dlab");
|
|
956
1045
|
var definition$24 = {
|
|
@@ -986,6 +1075,8 @@ var definition$24 = {
|
|
|
986
1075
|
}
|
|
987
1076
|
}
|
|
988
1077
|
};
|
|
1078
|
+
//#endregion
|
|
1079
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/dlch/definition.js
|
|
989
1080
|
var definition$23 = {
|
|
990
1081
|
mode: "dlch",
|
|
991
1082
|
parse: ["--din99o-lch"],
|
|
@@ -1026,6 +1117,8 @@ var definition$23 = {
|
|
|
1026
1117
|
difference: { h: differenceHueChroma },
|
|
1027
1118
|
average: { h: averageAngle }
|
|
1028
1119
|
};
|
|
1120
|
+
//#endregion
|
|
1121
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hsi/convertHsiToRgb.js
|
|
1029
1122
|
function convertHsiToRgb({ h, s, i, alpha }) {
|
|
1030
1123
|
h = normalizeHue(h !== void 0 ? h : 0);
|
|
1031
1124
|
if (s === void 0) s = 0;
|
|
@@ -1085,6 +1178,8 @@ function convertHsiToRgb({ h, s, i, alpha }) {
|
|
|
1085
1178
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1086
1179
|
return res;
|
|
1087
1180
|
}
|
|
1181
|
+
//#endregion
|
|
1182
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hsi/convertRgbToHsi.js
|
|
1088
1183
|
function convertRgbToHsi({ r, g, b, alpha }) {
|
|
1089
1184
|
if (r === void 0) r = 0;
|
|
1090
1185
|
if (g === void 0) g = 0;
|
|
@@ -1099,6 +1194,8 @@ function convertRgbToHsi({ r, g, b, alpha }) {
|
|
|
1099
1194
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1100
1195
|
return res;
|
|
1101
1196
|
}
|
|
1197
|
+
//#endregion
|
|
1198
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hsi/definition.js
|
|
1102
1199
|
var definition$22 = {
|
|
1103
1200
|
mode: "hsi",
|
|
1104
1201
|
toMode: { rgb: convertHsiToRgb },
|
|
@@ -1128,6 +1225,8 @@ var definition$22 = {
|
|
|
1128
1225
|
difference: { h: differenceHueSaturation },
|
|
1129
1226
|
average: { h: averageAngle }
|
|
1130
1227
|
};
|
|
1228
|
+
//#endregion
|
|
1229
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hsl/convertHslToRgb.js
|
|
1131
1230
|
function convertHslToRgb({ h, s, l, alpha }) {
|
|
1132
1231
|
h = normalizeHue(h !== void 0 ? h : 0);
|
|
1133
1232
|
if (s === void 0) s = 0;
|
|
@@ -1188,6 +1287,8 @@ function convertHslToRgb({ h, s, l, alpha }) {
|
|
|
1188
1287
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1189
1288
|
return res;
|
|
1190
1289
|
}
|
|
1290
|
+
//#endregion
|
|
1291
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hsl/convertRgbToHsl.js
|
|
1191
1292
|
function convertRgbToHsl({ r, g, b, alpha }) {
|
|
1192
1293
|
if (r === void 0) r = 0;
|
|
1193
1294
|
if (g === void 0) g = 0;
|
|
@@ -1202,6 +1303,8 @@ function convertRgbToHsl({ r, g, b, alpha }) {
|
|
|
1202
1303
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1203
1304
|
return res;
|
|
1204
1305
|
}
|
|
1306
|
+
//#endregion
|
|
1307
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/util/hue.js
|
|
1205
1308
|
var hueToDeg = (val, unit) => {
|
|
1206
1309
|
switch (unit) {
|
|
1207
1310
|
case "deg": return +val;
|
|
@@ -1210,6 +1313,8 @@ var hueToDeg = (val, unit) => {
|
|
|
1210
1313
|
case "turn": return val * 360;
|
|
1211
1314
|
}
|
|
1212
1315
|
};
|
|
1316
|
+
//#endregion
|
|
1317
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hsl/parseHslLegacy.js
|
|
1213
1318
|
var hsl_old = new RegExp(`^hsla?\\(\\s*${hue$1}${c$1}${per}${c$1}${per}\\s*(?:,\\s*${num_per}\\s*)?\\)$`);
|
|
1214
1319
|
var parseHslLegacy = (color) => {
|
|
1215
1320
|
let match = color.match(hsl_old);
|
|
@@ -1223,6 +1328,8 @@ var parseHslLegacy = (color) => {
|
|
|
1223
1328
|
else if (match[7] !== void 0) res.alpha = Math.max(0, Math.min(1, +match[7]));
|
|
1224
1329
|
return res;
|
|
1225
1330
|
};
|
|
1331
|
+
//#endregion
|
|
1332
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hsl/parseHsl.js
|
|
1226
1333
|
function parseHsl(color, parsed) {
|
|
1227
1334
|
if (!parsed || parsed[0] !== "hsl" && parsed[0] !== "hsla") return;
|
|
1228
1335
|
const res = { mode: "hsl" };
|
|
@@ -1242,6 +1349,8 @@ function parseHsl(color, parsed) {
|
|
|
1242
1349
|
if (alpha.type !== Tok.None) res.alpha = Math.min(1, Math.max(0, alpha.type === Tok.Number ? alpha.value : alpha.value / 100));
|
|
1243
1350
|
return res;
|
|
1244
1351
|
}
|
|
1352
|
+
//#endregion
|
|
1353
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hsl/definition.js
|
|
1245
1354
|
var definition$21 = {
|
|
1246
1355
|
mode: "hsl",
|
|
1247
1356
|
toMode: { rgb: convertHslToRgb },
|
|
@@ -1271,6 +1380,8 @@ var definition$21 = {
|
|
|
1271
1380
|
difference: { h: differenceHueSaturation },
|
|
1272
1381
|
average: { h: averageAngle }
|
|
1273
1382
|
};
|
|
1383
|
+
//#endregion
|
|
1384
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hsv/convertHsvToRgb.js
|
|
1274
1385
|
function convertHsvToRgb({ h, s, v, alpha }) {
|
|
1275
1386
|
h = normalizeHue(h !== void 0 ? h : 0);
|
|
1276
1387
|
if (s === void 0) s = 0;
|
|
@@ -1330,6 +1441,8 @@ function convertHsvToRgb({ h, s, v, alpha }) {
|
|
|
1330
1441
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1331
1442
|
return res;
|
|
1332
1443
|
}
|
|
1444
|
+
//#endregion
|
|
1445
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hsv/convertRgbToHsv.js
|
|
1333
1446
|
function convertRgbToHsv({ r, g, b, alpha }) {
|
|
1334
1447
|
if (r === void 0) r = 0;
|
|
1335
1448
|
if (g === void 0) g = 0;
|
|
@@ -1344,6 +1457,8 @@ function convertRgbToHsv({ r, g, b, alpha }) {
|
|
|
1344
1457
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1345
1458
|
return res;
|
|
1346
1459
|
}
|
|
1460
|
+
//#endregion
|
|
1461
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hsv/definition.js
|
|
1347
1462
|
var definition$20 = {
|
|
1348
1463
|
mode: "hsv",
|
|
1349
1464
|
toMode: { rgb: convertHsvToRgb },
|
|
@@ -1373,6 +1488,8 @@ var definition$20 = {
|
|
|
1373
1488
|
difference: { h: differenceHueSaturation },
|
|
1374
1489
|
average: { h: averageAngle }
|
|
1375
1490
|
};
|
|
1491
|
+
//#endregion
|
|
1492
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hwb/convertHwbToRgb.js
|
|
1376
1493
|
function convertHwbToRgb({ h, w, b, alpha }) {
|
|
1377
1494
|
if (w === void 0) w = 0;
|
|
1378
1495
|
if (b === void 0) b = 0;
|
|
@@ -1388,6 +1505,8 @@ function convertHwbToRgb({ h, w, b, alpha }) {
|
|
|
1388
1505
|
alpha
|
|
1389
1506
|
});
|
|
1390
1507
|
}
|
|
1508
|
+
//#endregion
|
|
1509
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hwb/convertRgbToHwb.js
|
|
1391
1510
|
function convertRgbToHwb(rgba) {
|
|
1392
1511
|
let hsv = convertRgbToHsv(rgba);
|
|
1393
1512
|
if (hsv === void 0) return void 0;
|
|
@@ -1402,6 +1521,8 @@ function convertRgbToHwb(rgba) {
|
|
|
1402
1521
|
if (hsv.alpha !== void 0) res.alpha = hsv.alpha;
|
|
1403
1522
|
return res;
|
|
1404
1523
|
}
|
|
1524
|
+
//#endregion
|
|
1525
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hwb/parseHwb.js
|
|
1405
1526
|
function ParseHwb(color, parsed) {
|
|
1406
1527
|
if (!parsed || parsed[0] !== "hwb") return;
|
|
1407
1528
|
const res = { mode: "hwb" };
|
|
@@ -1421,6 +1542,8 @@ function ParseHwb(color, parsed) {
|
|
|
1421
1542
|
if (alpha.type !== Tok.None) res.alpha = Math.min(1, Math.max(0, alpha.type === Tok.Number ? alpha.value : alpha.value / 100));
|
|
1422
1543
|
return res;
|
|
1423
1544
|
}
|
|
1545
|
+
//#endregion
|
|
1546
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hwb/definition.js
|
|
1424
1547
|
var definition$19 = {
|
|
1425
1548
|
mode: "hwb",
|
|
1426
1549
|
toMode: { rgb: convertHwbToRgb },
|
|
@@ -1450,11 +1573,13 @@ var definition$19 = {
|
|
|
1450
1573
|
difference: { h: differenceHueNaive },
|
|
1451
1574
|
average: { h: averageAngle }
|
|
1452
1575
|
};
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1576
|
+
//#endregion
|
|
1577
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/hdr/transfer.js
|
|
1578
|
+
var M1 = .1593017578125;
|
|
1579
|
+
var M2 = 78.84375;
|
|
1580
|
+
var C1 = .8359375;
|
|
1581
|
+
var C2 = 18.8515625;
|
|
1582
|
+
var C3 = 18.6875;
|
|
1458
1583
|
function transferPqDecode(v) {
|
|
1459
1584
|
if (v < 0) return 0;
|
|
1460
1585
|
const c = Math.pow(v, 1 / M2);
|
|
@@ -1465,6 +1590,8 @@ function transferPqEncode(v) {
|
|
|
1465
1590
|
const c = Math.pow(v / 1e4, M1);
|
|
1466
1591
|
return Math.pow((C1 + C2 * c) / (1 + C3 * c), M2);
|
|
1467
1592
|
}
|
|
1593
|
+
//#endregion
|
|
1594
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/itp/convertItpToXyz65.js
|
|
1468
1595
|
var toRel = (c) => Math.max(c / 203, 0);
|
|
1469
1596
|
var convertItpToXyz65 = ({ i, t, p, alpha }) => {
|
|
1470
1597
|
if (i === void 0) i = 0;
|
|
@@ -1482,6 +1609,8 @@ var convertItpToXyz65 = ({ i, t, p, alpha }) => {
|
|
|
1482
1609
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1483
1610
|
return res;
|
|
1484
1611
|
};
|
|
1612
|
+
//#endregion
|
|
1613
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/itp/convertXyz65ToItp.js
|
|
1485
1614
|
var toAbs = (c = 0) => Math.max(c * 203, 0);
|
|
1486
1615
|
var convertXyz65ToItp = ({ x, y, z, alpha }) => {
|
|
1487
1616
|
const absX = toAbs(x);
|
|
@@ -1499,6 +1628,8 @@ var convertXyz65ToItp = ({ x, y, z, alpha }) => {
|
|
|
1499
1628
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1500
1629
|
return res;
|
|
1501
1630
|
};
|
|
1631
|
+
//#endregion
|
|
1632
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/itp/definition.js
|
|
1502
1633
|
var definition$18 = {
|
|
1503
1634
|
mode: "itp",
|
|
1504
1635
|
channels: [
|
|
@@ -1532,6 +1663,8 @@ var definition$18 = {
|
|
|
1532
1663
|
}
|
|
1533
1664
|
}
|
|
1534
1665
|
};
|
|
1666
|
+
//#endregion
|
|
1667
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/jab/convertXyz65ToJab.js
|
|
1535
1668
|
var p$2 = 134.03437499999998;
|
|
1536
1669
|
var d0$1 = 16295499532821565e-27;
|
|
1537
1670
|
var jabPqEncode = (v) => {
|
|
@@ -1559,6 +1692,8 @@ var convertXyz65ToJab = ({ x, y, z, alpha }) => {
|
|
|
1559
1692
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1560
1693
|
return res;
|
|
1561
1694
|
};
|
|
1695
|
+
//#endregion
|
|
1696
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/jab/convertJabToXyz65.js
|
|
1562
1697
|
var p$1 = 134.03437499999998;
|
|
1563
1698
|
var d0 = 16295499532821565e-27;
|
|
1564
1699
|
var jabPqDecode = (v) => {
|
|
@@ -1584,12 +1719,18 @@ var convertJabToXyz65 = ({ j, a, b, alpha }) => {
|
|
|
1584
1719
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1585
1720
|
return res;
|
|
1586
1721
|
};
|
|
1722
|
+
//#endregion
|
|
1723
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/jab/convertRgbToJab.js
|
|
1587
1724
|
var convertRgbToJab = (rgb) => {
|
|
1588
1725
|
let res = convertXyz65ToJab(convertRgbToXyz65(rgb));
|
|
1589
1726
|
if (rgb.r === rgb.b && rgb.b === rgb.g) res.a = res.b = 0;
|
|
1590
1727
|
return res;
|
|
1591
1728
|
};
|
|
1729
|
+
//#endregion
|
|
1730
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/jab/convertJabToRgb.js
|
|
1592
1731
|
var convertJabToRgb = (color) => convertXyz65ToRgb(convertJabToXyz65(color));
|
|
1732
|
+
//#endregion
|
|
1733
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/jab/definition.js
|
|
1593
1734
|
var definition$17 = {
|
|
1594
1735
|
mode: "jab",
|
|
1595
1736
|
channels: [
|
|
@@ -1623,6 +1764,8 @@ var definition$17 = {
|
|
|
1623
1764
|
}
|
|
1624
1765
|
}
|
|
1625
1766
|
};
|
|
1767
|
+
//#endregion
|
|
1768
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/jch/convertJabToJch.js
|
|
1626
1769
|
var convertJabToJch = ({ j, a, b, alpha }) => {
|
|
1627
1770
|
if (a === void 0) a = 0;
|
|
1628
1771
|
if (b === void 0) b = 0;
|
|
@@ -1636,6 +1779,8 @@ var convertJabToJch = ({ j, a, b, alpha }) => {
|
|
|
1636
1779
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1637
1780
|
return res;
|
|
1638
1781
|
};
|
|
1782
|
+
//#endregion
|
|
1783
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/jch/convertJchToJab.js
|
|
1639
1784
|
var convertJchToJab = ({ j, c, h, alpha }) => {
|
|
1640
1785
|
if (h === void 0) h = 0;
|
|
1641
1786
|
let res = {
|
|
@@ -1647,6 +1792,8 @@ var convertJchToJab = ({ j, c, h, alpha }) => {
|
|
|
1647
1792
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1648
1793
|
return res;
|
|
1649
1794
|
};
|
|
1795
|
+
//#endregion
|
|
1796
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/jch/definition.js
|
|
1650
1797
|
var definition$16 = {
|
|
1651
1798
|
mode: "jch",
|
|
1652
1799
|
parse: ["--jzczhz"],
|
|
@@ -1685,8 +1832,12 @@ var definition$16 = {
|
|
|
1685
1832
|
difference: { h: differenceHueChroma },
|
|
1686
1833
|
average: { h: averageAngle }
|
|
1687
1834
|
};
|
|
1688
|
-
|
|
1689
|
-
|
|
1835
|
+
//#endregion
|
|
1836
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz50/constants.js
|
|
1837
|
+
var k$3 = Math.pow(29, 3) / Math.pow(3, 3);
|
|
1838
|
+
var e = Math.pow(6, 3) / Math.pow(29, 3);
|
|
1839
|
+
//#endregion
|
|
1840
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertLabToXyz50.js
|
|
1690
1841
|
var fn = (v) => Math.pow(v, 3) > e ? Math.pow(v, 3) : (116 * v - 16) / k$3;
|
|
1691
1842
|
var convertLabToXyz50 = ({ l, a, b, alpha }) => {
|
|
1692
1843
|
if (l === void 0) l = 0;
|
|
@@ -1704,6 +1855,8 @@ var convertLabToXyz50 = ({ l, a, b, alpha }) => {
|
|
|
1704
1855
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1705
1856
|
return res;
|
|
1706
1857
|
};
|
|
1858
|
+
//#endregion
|
|
1859
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz50/convertXyz50ToRgb.js
|
|
1707
1860
|
var convertXyz50ToRgb = ({ x, y, z, alpha }) => {
|
|
1708
1861
|
if (x === void 0) x = 0;
|
|
1709
1862
|
if (y === void 0) y = 0;
|
|
@@ -1716,7 +1869,11 @@ var convertXyz50ToRgb = ({ x, y, z, alpha }) => {
|
|
|
1716
1869
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1717
1870
|
return res;
|
|
1718
1871
|
};
|
|
1872
|
+
//#endregion
|
|
1873
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertLabToRgb.js
|
|
1719
1874
|
var convertLabToRgb = (lab) => convertXyz50ToRgb(convertLabToXyz50(lab));
|
|
1875
|
+
//#endregion
|
|
1876
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz50/convertRgbToXyz50.js
|
|
1720
1877
|
var convertRgbToXyz50 = (rgb) => {
|
|
1721
1878
|
let { r, g, b, alpha } = convertRgbToLrgb(rgb);
|
|
1722
1879
|
let res = {
|
|
@@ -1728,6 +1885,8 @@ var convertRgbToXyz50 = (rgb) => {
|
|
|
1728
1885
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1729
1886
|
return res;
|
|
1730
1887
|
};
|
|
1888
|
+
//#endregion
|
|
1889
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertXyz50ToLab.js
|
|
1731
1890
|
var f$1 = (value) => value > e ? Math.cbrt(value) : (k$3 * value + 16) / 116;
|
|
1732
1891
|
var convertXyz50ToLab = ({ x, y, z, alpha }) => {
|
|
1733
1892
|
if (x === void 0) x = 0;
|
|
@@ -1745,11 +1904,15 @@ var convertXyz50ToLab = ({ x, y, z, alpha }) => {
|
|
|
1745
1904
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1746
1905
|
return res;
|
|
1747
1906
|
};
|
|
1907
|
+
//#endregion
|
|
1908
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/convertRgbToLab.js
|
|
1748
1909
|
var convertRgbToLab = (rgb) => {
|
|
1749
1910
|
let res = convertXyz50ToLab(convertRgbToXyz50(rgb));
|
|
1750
1911
|
if (rgb.r === rgb.b && rgb.b === rgb.g) res.a = res.b = 0;
|
|
1751
1912
|
return res;
|
|
1752
1913
|
};
|
|
1914
|
+
//#endregion
|
|
1915
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/parseLab.js
|
|
1753
1916
|
function parseLab(color, parsed) {
|
|
1754
1917
|
if (!parsed || parsed[0] !== "lab") return;
|
|
1755
1918
|
const res = { mode: "lab" };
|
|
@@ -1761,6 +1924,8 @@ function parseLab(color, parsed) {
|
|
|
1761
1924
|
if (alpha.type !== Tok.None) res.alpha = Math.min(1, Math.max(0, alpha.type === Tok.Number ? alpha.value : alpha.value / 100));
|
|
1762
1925
|
return res;
|
|
1763
1926
|
}
|
|
1927
|
+
//#endregion
|
|
1928
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab/definition.js
|
|
1764
1929
|
var definition$15 = {
|
|
1765
1930
|
mode: "lab",
|
|
1766
1931
|
toMode: {
|
|
@@ -1794,6 +1959,8 @@ var definition$15 = {
|
|
|
1794
1959
|
}
|
|
1795
1960
|
}
|
|
1796
1961
|
};
|
|
1962
|
+
//#endregion
|
|
1963
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lab65/definition.js
|
|
1797
1964
|
var definition$14 = {
|
|
1798
1965
|
...definition$15,
|
|
1799
1966
|
mode: "lab65",
|
|
@@ -1813,6 +1980,8 @@ var definition$14 = {
|
|
|
1813
1980
|
b: [-125, 125]
|
|
1814
1981
|
}
|
|
1815
1982
|
};
|
|
1983
|
+
//#endregion
|
|
1984
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lch/parseLch.js
|
|
1816
1985
|
function parseLch(color, parsed) {
|
|
1817
1986
|
if (!parsed || parsed[0] !== "lch") return;
|
|
1818
1987
|
const res = { mode: "lch" };
|
|
@@ -1829,6 +1998,8 @@ function parseLch(color, parsed) {
|
|
|
1829
1998
|
if (alpha.type !== Tok.None) res.alpha = Math.min(1, Math.max(0, alpha.type === Tok.Number ? alpha.value : alpha.value / 100));
|
|
1830
1999
|
return res;
|
|
1831
2000
|
}
|
|
2001
|
+
//#endregion
|
|
2002
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lch/definition.js
|
|
1832
2003
|
var definition$13 = {
|
|
1833
2004
|
mode: "lch",
|
|
1834
2005
|
toMode: {
|
|
@@ -1867,6 +2038,8 @@ var definition$13 = {
|
|
|
1867
2038
|
difference: { h: differenceHueChroma },
|
|
1868
2039
|
average: { h: averageAngle }
|
|
1869
2040
|
};
|
|
2041
|
+
//#endregion
|
|
2042
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lch65/definition.js
|
|
1870
2043
|
var definition$12 = {
|
|
1871
2044
|
...definition$13,
|
|
1872
2045
|
mode: "lch65",
|
|
@@ -1886,6 +2059,8 @@ var definition$12 = {
|
|
|
1886
2059
|
h: [0, 360]
|
|
1887
2060
|
}
|
|
1888
2061
|
};
|
|
2062
|
+
//#endregion
|
|
2063
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lchuv/convertLuvToLchuv.js
|
|
1889
2064
|
var convertLuvToLchuv = ({ l, u, v, alpha }) => {
|
|
1890
2065
|
if (u === void 0) u = 0;
|
|
1891
2066
|
if (v === void 0) v = 0;
|
|
@@ -1899,6 +2074,8 @@ var convertLuvToLchuv = ({ l, u, v, alpha }) => {
|
|
|
1899
2074
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1900
2075
|
return res;
|
|
1901
2076
|
};
|
|
2077
|
+
//#endregion
|
|
2078
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lchuv/convertLchuvToLuv.js
|
|
1902
2079
|
var convertLchuvToLuv = ({ l, c, h, alpha }) => {
|
|
1903
2080
|
if (h === void 0) h = 0;
|
|
1904
2081
|
let res = {
|
|
@@ -1910,10 +2087,12 @@ var convertLchuvToLuv = ({ l, c, h, alpha }) => {
|
|
|
1910
2087
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1911
2088
|
return res;
|
|
1912
2089
|
};
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
2090
|
+
//#endregion
|
|
2091
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/luv/convertXyz50ToLuv.js
|
|
2092
|
+
var u_fn$1 = (x, y, z) => 4 * x / (x + 15 * y + 3 * z);
|
|
2093
|
+
var v_fn$1 = (x, y, z) => 9 * y / (x + 15 * y + 3 * z);
|
|
2094
|
+
var un$1 = u_fn$1(D50.X, D50.Y, D50.Z);
|
|
2095
|
+
var vn$1 = v_fn$1(D50.X, D50.Y, D50.Z);
|
|
1917
2096
|
var l_fn = (value) => value <= e ? k$3 * value : 116 * Math.cbrt(value) - 16;
|
|
1918
2097
|
var convertXyz50ToLuv = ({ x, y, z, alpha }) => {
|
|
1919
2098
|
if (x === void 0) x = 0;
|
|
@@ -1936,10 +2115,12 @@ var convertXyz50ToLuv = ({ x, y, z, alpha }) => {
|
|
|
1936
2115
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1937
2116
|
return res;
|
|
1938
2117
|
};
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
2118
|
+
//#endregion
|
|
2119
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/luv/convertLuvToXyz50.js
|
|
2120
|
+
var u_fn = (x, y, z) => 4 * x / (x + 15 * y + 3 * z);
|
|
2121
|
+
var v_fn = (x, y, z) => 9 * y / (x + 15 * y + 3 * z);
|
|
2122
|
+
var un = u_fn(D50.X, D50.Y, D50.Z);
|
|
2123
|
+
var vn = v_fn(D50.X, D50.Y, D50.Z);
|
|
1943
2124
|
var convertLuvToXyz50 = ({ l, u, v, alpha }) => {
|
|
1944
2125
|
if (l === void 0) l = 0;
|
|
1945
2126
|
if (l === 0) return {
|
|
@@ -1962,6 +2143,8 @@ var convertLuvToXyz50 = ({ l, u, v, alpha }) => {
|
|
|
1962
2143
|
if (alpha !== void 0) res.alpha = alpha;
|
|
1963
2144
|
return res;
|
|
1964
2145
|
};
|
|
2146
|
+
//#endregion
|
|
2147
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lchuv/definition.js
|
|
1965
2148
|
var convertRgbToLchuv = (rgb) => convertLuvToLchuv(convertXyz50ToLuv(convertRgbToXyz50(rgb)));
|
|
1966
2149
|
var convertLchuvToRgb = (lchuv) => convertXyz50ToRgb(convertLuvToXyz50(convertLchuvToLuv(lchuv)));
|
|
1967
2150
|
var definition$11 = {
|
|
@@ -2002,6 +2185,8 @@ var definition$11 = {
|
|
|
2002
2185
|
difference: { h: differenceHueChroma },
|
|
2003
2186
|
average: { h: averageAngle }
|
|
2004
2187
|
};
|
|
2188
|
+
//#endregion
|
|
2189
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/lrgb/definition.js
|
|
2005
2190
|
var definition$10 = {
|
|
2006
2191
|
...definition$27,
|
|
2007
2192
|
mode: "lrgb",
|
|
@@ -2010,6 +2195,8 @@ var definition$10 = {
|
|
|
2010
2195
|
parse: ["srgb-linear"],
|
|
2011
2196
|
serialize: "srgb-linear"
|
|
2012
2197
|
};
|
|
2198
|
+
//#endregion
|
|
2199
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/luv/definition.js
|
|
2013
2200
|
var definition$9 = {
|
|
2014
2201
|
mode: "luv",
|
|
2015
2202
|
toMode: {
|
|
@@ -2043,6 +2230,8 @@ var definition$9 = {
|
|
|
2043
2230
|
}
|
|
2044
2231
|
}
|
|
2045
2232
|
};
|
|
2233
|
+
//#endregion
|
|
2234
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/oklab/convertLrgbToOklab.js
|
|
2046
2235
|
var convertLrgbToOklab = ({ r, g, b, alpha }) => {
|
|
2047
2236
|
if (r === void 0) r = 0;
|
|
2048
2237
|
if (g === void 0) g = 0;
|
|
@@ -2059,11 +2248,15 @@ var convertLrgbToOklab = ({ r, g, b, alpha }) => {
|
|
|
2059
2248
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2060
2249
|
return res;
|
|
2061
2250
|
};
|
|
2251
|
+
//#endregion
|
|
2252
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/oklab/convertRgbToOklab.js
|
|
2062
2253
|
var convertRgbToOklab = (rgb) => {
|
|
2063
2254
|
let res = convertLrgbToOklab(convertRgbToLrgb(rgb));
|
|
2064
2255
|
if (rgb.r === rgb.b && rgb.b === rgb.g) res.a = res.b = 0;
|
|
2065
2256
|
return res;
|
|
2066
2257
|
};
|
|
2258
|
+
//#endregion
|
|
2259
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/oklab/convertOklabToLrgb.js
|
|
2067
2260
|
var convertOklabToLrgb = ({ l, a, b, alpha }) => {
|
|
2068
2261
|
if (l === void 0) l = 0;
|
|
2069
2262
|
if (a === void 0) a = 0;
|
|
@@ -2080,7 +2273,11 @@ var convertOklabToLrgb = ({ l, a, b, alpha }) => {
|
|
|
2080
2273
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2081
2274
|
return res;
|
|
2082
2275
|
};
|
|
2276
|
+
//#endregion
|
|
2277
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/oklab/convertOklabToRgb.js
|
|
2083
2278
|
var convertOklabToRgb = (c) => convertLrgbToRgb(convertOklabToLrgb(c));
|
|
2279
|
+
//#endregion
|
|
2280
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/okhsl/helpers.js
|
|
2084
2281
|
function toe(x) {
|
|
2085
2282
|
const k_1 = .206;
|
|
2086
2283
|
const k_2 = .03;
|
|
@@ -2235,6 +2432,8 @@ function get_Cs(L, a_, b_) {
|
|
|
2235
2432
|
C_max
|
|
2236
2433
|
];
|
|
2237
2434
|
}
|
|
2435
|
+
//#endregion
|
|
2436
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/okhsl/convertOklabToOkhsl.js
|
|
2238
2437
|
function convertOklabToOkhsl(lab) {
|
|
2239
2438
|
const l = lab.l !== void 0 ? lab.l : 0;
|
|
2240
2439
|
const a = lab.a !== void 0 ? lab.a : 0;
|
|
@@ -2268,6 +2467,8 @@ function convertOklabToOkhsl(lab) {
|
|
|
2268
2467
|
}
|
|
2269
2468
|
return ret;
|
|
2270
2469
|
}
|
|
2470
|
+
//#endregion
|
|
2471
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/okhsl/convertOkhslToOklab.js
|
|
2271
2472
|
function convertOkhslToOklab(hsl) {
|
|
2272
2473
|
let h = hsl.h !== void 0 ? hsl.h : 0;
|
|
2273
2474
|
let s = hsl.s !== void 0 ? hsl.s : 0;
|
|
@@ -2301,6 +2502,8 @@ function convertOkhslToOklab(hsl) {
|
|
|
2301
2502
|
ret.b = C * b_;
|
|
2302
2503
|
return ret;
|
|
2303
2504
|
}
|
|
2505
|
+
//#endregion
|
|
2506
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/okhsl/modeOkhsl.js
|
|
2304
2507
|
var modeOkhsl = {
|
|
2305
2508
|
...definition$21,
|
|
2306
2509
|
mode: "okhsl",
|
|
@@ -2321,6 +2524,8 @@ var modeOkhsl = {
|
|
|
2321
2524
|
rgb: (c) => convertOklabToRgb(convertOkhslToOklab(c))
|
|
2322
2525
|
}
|
|
2323
2526
|
};
|
|
2527
|
+
//#endregion
|
|
2528
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/okhsv/convertOklabToOkhsv.js
|
|
2324
2529
|
function convertOklabToOkhsv(lab) {
|
|
2325
2530
|
let l = lab.l !== void 0 ? lab.l : 0;
|
|
2326
2531
|
let a = lab.a !== void 0 ? lab.a : 0;
|
|
@@ -2354,6 +2559,8 @@ function convertOklabToOkhsv(lab) {
|
|
|
2354
2559
|
if (lab.alpha !== void 0) ret.alpha = lab.alpha;
|
|
2355
2560
|
return ret;
|
|
2356
2561
|
}
|
|
2562
|
+
//#endregion
|
|
2563
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/okhsv/convertOkhsvToOklab.js
|
|
2357
2564
|
function convertOkhsvToOklab(hsv) {
|
|
2358
2565
|
const ret = { mode: "oklab" };
|
|
2359
2566
|
if (hsv.alpha !== void 0) ret.alpha = hsv.alpha;
|
|
@@ -2382,6 +2589,8 @@ function convertOkhsvToOklab(hsv) {
|
|
|
2382
2589
|
ret.b = C * b_ * scale_L;
|
|
2383
2590
|
return ret;
|
|
2384
2591
|
}
|
|
2592
|
+
//#endregion
|
|
2593
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/okhsv/modeOkhsv.js
|
|
2385
2594
|
var modeOkhsv = {
|
|
2386
2595
|
...definition$20,
|
|
2387
2596
|
mode: "okhsv",
|
|
@@ -2402,6 +2611,8 @@ var modeOkhsv = {
|
|
|
2402
2611
|
rgb: (c) => convertOklabToRgb(convertOkhsvToOklab(c))
|
|
2403
2612
|
}
|
|
2404
2613
|
};
|
|
2614
|
+
//#endregion
|
|
2615
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/oklab/parseOklab.js
|
|
2405
2616
|
function parseOklab(color, parsed) {
|
|
2406
2617
|
if (!parsed || parsed[0] !== "oklab") return;
|
|
2407
2618
|
const res = { mode: "oklab" };
|
|
@@ -2413,6 +2624,8 @@ function parseOklab(color, parsed) {
|
|
|
2413
2624
|
if (alpha.type !== Tok.None) res.alpha = Math.min(1, Math.max(0, alpha.type === Tok.Number ? alpha.value : alpha.value / 100));
|
|
2414
2625
|
return res;
|
|
2415
2626
|
}
|
|
2627
|
+
//#endregion
|
|
2628
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/oklab/definition.js
|
|
2416
2629
|
var definition$8 = {
|
|
2417
2630
|
...definition$15,
|
|
2418
2631
|
mode: "oklab",
|
|
@@ -2432,6 +2645,8 @@ var definition$8 = {
|
|
|
2432
2645
|
parse: [parseOklab],
|
|
2433
2646
|
serialize: (c) => `oklab(${c.l !== void 0 ? c.l : "none"} ${c.a !== void 0 ? c.a : "none"} ${c.b !== void 0 ? c.b : "none"}${c.alpha < 1 ? ` / ${c.alpha}` : ""})`
|
|
2434
2647
|
};
|
|
2648
|
+
//#endregion
|
|
2649
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/oklch/parseOklch.js
|
|
2435
2650
|
function parseOklch(color, parsed) {
|
|
2436
2651
|
if (!parsed || parsed[0] !== "oklch") return;
|
|
2437
2652
|
const res = { mode: "oklch" };
|
|
@@ -2448,6 +2663,8 @@ function parseOklch(color, parsed) {
|
|
|
2448
2663
|
if (alpha.type !== Tok.None) res.alpha = Math.min(1, Math.max(0, alpha.type === Tok.Number ? alpha.value : alpha.value / 100));
|
|
2449
2664
|
return res;
|
|
2450
2665
|
}
|
|
2666
|
+
//#endregion
|
|
2667
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/oklch/definition.js
|
|
2451
2668
|
var definition$7 = {
|
|
2452
2669
|
...definition$13,
|
|
2453
2670
|
mode: "oklch",
|
|
@@ -2467,6 +2684,8 @@ var definition$7 = {
|
|
|
2467
2684
|
h: [0, 360]
|
|
2468
2685
|
}
|
|
2469
2686
|
};
|
|
2687
|
+
//#endregion
|
|
2688
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/p3/convertP3ToXyz65.js
|
|
2470
2689
|
var convertP3ToXyz65 = (rgb) => {
|
|
2471
2690
|
let { r, g, b, alpha } = convertRgbToLrgb(rgb);
|
|
2472
2691
|
let res = {
|
|
@@ -2478,6 +2697,8 @@ var convertP3ToXyz65 = (rgb) => {
|
|
|
2478
2697
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2479
2698
|
return res;
|
|
2480
2699
|
};
|
|
2700
|
+
//#endregion
|
|
2701
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/p3/convertXyz65ToP3.js
|
|
2481
2702
|
var convertXyz65ToP3 = ({ x, y, z, alpha }) => {
|
|
2482
2703
|
if (x === void 0) x = 0;
|
|
2483
2704
|
if (y === void 0) y = 0;
|
|
@@ -2490,6 +2711,8 @@ var convertXyz65ToP3 = ({ x, y, z, alpha }) => {
|
|
|
2490
2711
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2491
2712
|
return res;
|
|
2492
2713
|
};
|
|
2714
|
+
//#endregion
|
|
2715
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/p3/definition.js
|
|
2493
2716
|
var definition$6 = {
|
|
2494
2717
|
...definition$27,
|
|
2495
2718
|
mode: "p3",
|
|
@@ -2504,6 +2727,8 @@ var definition$6 = {
|
|
|
2504
2727
|
xyz65: convertP3ToXyz65
|
|
2505
2728
|
}
|
|
2506
2729
|
};
|
|
2730
|
+
//#endregion
|
|
2731
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/prophoto/convertXyz50ToProphoto.js
|
|
2507
2732
|
var gamma$1 = (v) => {
|
|
2508
2733
|
let abs = Math.abs(v);
|
|
2509
2734
|
if (abs >= 1 / 512) return Math.sign(v) * Math.pow(abs, 1 / 1.8);
|
|
@@ -2522,6 +2747,8 @@ var convertXyz50ToProphoto = ({ x, y, z, alpha }) => {
|
|
|
2522
2747
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2523
2748
|
return res;
|
|
2524
2749
|
};
|
|
2750
|
+
//#endregion
|
|
2751
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/prophoto/convertProphotoToXyz50.js
|
|
2525
2752
|
var linearize$1 = (v = 0) => {
|
|
2526
2753
|
let abs = Math.abs(v);
|
|
2527
2754
|
if (abs >= 16 / 512) return Math.sign(v) * Math.pow(abs, 1.8);
|
|
@@ -2540,6 +2767,8 @@ var convertProphotoToXyz50 = (prophoto) => {
|
|
|
2540
2767
|
if (prophoto.alpha !== void 0) res.alpha = prophoto.alpha;
|
|
2541
2768
|
return res;
|
|
2542
2769
|
};
|
|
2770
|
+
//#endregion
|
|
2771
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/prophoto/definition.js
|
|
2543
2772
|
var definition$5 = {
|
|
2544
2773
|
...definition$27,
|
|
2545
2774
|
mode: "prophoto",
|
|
@@ -2554,6 +2783,8 @@ var definition$5 = {
|
|
|
2554
2783
|
rgb: (color) => convertXyz50ToRgb(convertProphotoToXyz50(color))
|
|
2555
2784
|
}
|
|
2556
2785
|
};
|
|
2786
|
+
//#endregion
|
|
2787
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/rec2020/convertXyz65ToRec2020.js
|
|
2557
2788
|
var α$1 = 1.09929682680944;
|
|
2558
2789
|
var β$1 = .018053968510807;
|
|
2559
2790
|
var gamma = (v) => {
|
|
@@ -2574,6 +2805,8 @@ var convertXyz65ToRec2020 = ({ x, y, z, alpha }) => {
|
|
|
2574
2805
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2575
2806
|
return res;
|
|
2576
2807
|
};
|
|
2808
|
+
//#endregion
|
|
2809
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/rec2020/convertRec2020ToXyz65.js
|
|
2577
2810
|
var α = 1.09929682680944;
|
|
2578
2811
|
var β = .018053968510807;
|
|
2579
2812
|
var linearize = (v = 0) => {
|
|
@@ -2594,6 +2827,8 @@ var convertRec2020ToXyz65 = (rec2020) => {
|
|
|
2594
2827
|
if (rec2020.alpha !== void 0) res.alpha = rec2020.alpha;
|
|
2595
2828
|
return res;
|
|
2596
2829
|
};
|
|
2830
|
+
//#endregion
|
|
2831
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/rec2020/definition.js
|
|
2597
2832
|
var definition$4 = {
|
|
2598
2833
|
...definition$27,
|
|
2599
2834
|
mode: "rec2020",
|
|
@@ -2608,8 +2843,12 @@ var definition$4 = {
|
|
|
2608
2843
|
parse: ["rec2020"],
|
|
2609
2844
|
serialize: "rec2020"
|
|
2610
2845
|
};
|
|
2611
|
-
|
|
2612
|
-
|
|
2846
|
+
//#endregion
|
|
2847
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyb/constants.js
|
|
2848
|
+
var bias = .0037930732552754493;
|
|
2849
|
+
var bias_cbrt = Math.cbrt(bias);
|
|
2850
|
+
//#endregion
|
|
2851
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyb/convertRgbToXyb.js
|
|
2613
2852
|
var transfer$1 = (v) => Math.cbrt(v) - bias_cbrt;
|
|
2614
2853
|
var convertRgbToXyb = (color) => {
|
|
2615
2854
|
const { r, g, b, alpha } = convertRgbToLrgb(color);
|
|
@@ -2625,6 +2864,8 @@ var convertRgbToXyb = (color) => {
|
|
|
2625
2864
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2626
2865
|
return res;
|
|
2627
2866
|
};
|
|
2867
|
+
//#endregion
|
|
2868
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyb/convertXybToRgb.js
|
|
2628
2869
|
var transfer = (v) => Math.pow(v + bias_cbrt, 3);
|
|
2629
2870
|
var convertXybToRgb = ({ x, y, b, alpha }) => {
|
|
2630
2871
|
if (x === void 0) x = 0;
|
|
@@ -2641,6 +2882,8 @@ var convertXybToRgb = ({ x, y, b, alpha }) => {
|
|
|
2641
2882
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2642
2883
|
return res;
|
|
2643
2884
|
};
|
|
2885
|
+
//#endregion
|
|
2886
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyb/definition.js
|
|
2644
2887
|
var definition$3 = {
|
|
2645
2888
|
mode: "xyb",
|
|
2646
2889
|
channels: [
|
|
@@ -2668,6 +2911,8 @@ var definition$3 = {
|
|
|
2668
2911
|
}
|
|
2669
2912
|
}
|
|
2670
2913
|
};
|
|
2914
|
+
//#endregion
|
|
2915
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz50/definition.js
|
|
2671
2916
|
var definition$2 = {
|
|
2672
2917
|
mode: "xyz50",
|
|
2673
2918
|
parse: ["xyz-d50"],
|
|
@@ -2701,6 +2946,8 @@ var definition$2 = {
|
|
|
2701
2946
|
}
|
|
2702
2947
|
}
|
|
2703
2948
|
};
|
|
2949
|
+
//#endregion
|
|
2950
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz65/convertXyz65ToXyz50.js
|
|
2704
2951
|
var convertXyz65ToXyz50 = (xyz65) => {
|
|
2705
2952
|
let { x, y, z, alpha } = xyz65;
|
|
2706
2953
|
if (x === void 0) x = 0;
|
|
@@ -2715,6 +2962,8 @@ var convertXyz65ToXyz50 = (xyz65) => {
|
|
|
2715
2962
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2716
2963
|
return res;
|
|
2717
2964
|
};
|
|
2965
|
+
//#endregion
|
|
2966
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz65/convertXyz50ToXyz65.js
|
|
2718
2967
|
var convertXyz50ToXyz65 = (xyz50) => {
|
|
2719
2968
|
let { x, y, z, alpha } = xyz50;
|
|
2720
2969
|
if (x === void 0) x = 0;
|
|
@@ -2729,6 +2978,8 @@ var convertXyz50ToXyz65 = (xyz50) => {
|
|
|
2729
2978
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2730
2979
|
return res;
|
|
2731
2980
|
};
|
|
2981
|
+
//#endregion
|
|
2982
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/xyz65/definition.js
|
|
2732
2983
|
var definition$1 = {
|
|
2733
2984
|
mode: "xyz65",
|
|
2734
2985
|
toMode: {
|
|
@@ -2762,6 +3013,8 @@ var definition$1 = {
|
|
|
2762
3013
|
}
|
|
2763
3014
|
}
|
|
2764
3015
|
};
|
|
3016
|
+
//#endregion
|
|
3017
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/yiq/convertRgbToYiq.js
|
|
2765
3018
|
var convertRgbToYiq = ({ r, g, b, alpha }) => {
|
|
2766
3019
|
if (r === void 0) r = 0;
|
|
2767
3020
|
if (g === void 0) g = 0;
|
|
@@ -2775,6 +3028,8 @@ var convertRgbToYiq = ({ r, g, b, alpha }) => {
|
|
|
2775
3028
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2776
3029
|
return res;
|
|
2777
3030
|
};
|
|
3031
|
+
//#endregion
|
|
3032
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/yiq/convertYiqToRgb.js
|
|
2778
3033
|
var convertYiqToRgb = ({ y, i, q, alpha }) => {
|
|
2779
3034
|
if (y === void 0) y = 0;
|
|
2780
3035
|
if (i === void 0) i = 0;
|
|
@@ -2788,6 +3043,8 @@ var convertYiqToRgb = ({ y, i, q, alpha }) => {
|
|
|
2788
3043
|
if (alpha !== void 0) res.alpha = alpha;
|
|
2789
3044
|
return res;
|
|
2790
3045
|
};
|
|
3046
|
+
//#endregion
|
|
3047
|
+
//#region ../../node_modules/.bun/culori@4.0.2/node_modules/culori/src/yiq/definition.js
|
|
2791
3048
|
var definition = {
|
|
2792
3049
|
mode: "yiq",
|
|
2793
3050
|
toMode: { rgb: convertYiqToRgb },
|
|
@@ -2844,6 +3101,8 @@ useMode(definition$3);
|
|
|
2844
3101
|
useMode(definition$2);
|
|
2845
3102
|
useMode(definition$1);
|
|
2846
3103
|
useMode(definition);
|
|
3104
|
+
//#endregion
|
|
3105
|
+
//#region ../../node_modules/.bun/@basmilius+http-client@3.12.1+1fb4c65d43e298b9/node_modules/@basmilius/http-client/dist/index.mjs
|
|
2847
3106
|
function c(e) {
|
|
2848
3107
|
return class extends e {
|
|
2849
3108
|
constructor(...e) {
|
|
@@ -3143,6 +3402,8 @@ var Y = J = class {
|
|
|
3143
3402
|
Y = J = V([c], Y);
|
|
3144
3403
|
converter(`oklch`);
|
|
3145
3404
|
RegExp(`[a-z]`), RegExp(`[A-Z]`), RegExp(`[0-9]`), RegExp(`[!"#$%&'()*+,-./:;<=>?@[\\\\\\]^_\`{|}~]`);
|
|
3405
|
+
//#endregion
|
|
3406
|
+
//#region ../internals/dist/index.mjs
|
|
3146
3407
|
function h(e, t, n, r = { passive: !0 }) {
|
|
3147
3408
|
watch(e, (e, i, a) => {
|
|
3148
3409
|
e && (e.addEventListener(t, n, r), a(() => e.removeEventListener(t, n)));
|
|
@@ -3217,7 +3478,9 @@ function N(e) {
|
|
|
3217
3478
|
y: n
|
|
3218
3479
|
};
|
|
3219
3480
|
}
|
|
3220
|
-
|
|
3481
|
+
//#endregion
|
|
3482
|
+
//#region src/data/index.ts
|
|
3483
|
+
var FluxDashboardInjectionKey = Symbol();
|
|
3221
3484
|
var Dashboard_module_default = {
|
|
3222
3485
|
root: `root`,
|
|
3223
3486
|
dashboard: `dashboard`,
|
|
@@ -3228,6 +3491,8 @@ var Dashboard_module_default = {
|
|
|
3228
3491
|
dashboardMenu: `dashboard-menu`,
|
|
3229
3492
|
dashboardSide: `dashboard-side`
|
|
3230
3493
|
};
|
|
3494
|
+
//#endregion
|
|
3495
|
+
//#region src/component/FluxDashboard.vue
|
|
3231
3496
|
var FluxDashboard_default = /* @__PURE__ */ defineComponent({
|
|
3232
3497
|
__name: "FluxDashboard",
|
|
3233
3498
|
setup(__props) {
|
|
@@ -3258,6 +3523,8 @@ var FluxDashboard_default = /* @__PURE__ */ defineComponent({
|
|
|
3258
3523
|
};
|
|
3259
3524
|
}
|
|
3260
3525
|
});
|
|
3526
|
+
//#endregion
|
|
3527
|
+
//#region src/composable/useDashboardInjection.ts
|
|
3261
3528
|
function useDashboardInjection_default() {
|
|
3262
3529
|
const injection = inject(FluxDashboardInjectionKey);
|
|
3263
3530
|
if (!injection) throw new Error("[Flux] useDashboardInjection() was used outside a FluxDashboard component.");
|
|
@@ -3273,6 +3540,8 @@ var DashboardContent_module_default = {
|
|
|
3273
3540
|
tableCellContent: `table-cell-content`,
|
|
3274
3541
|
dashboardContentCollapsed: `dashboard-content-collapsed`
|
|
3275
3542
|
};
|
|
3543
|
+
//#endregion
|
|
3544
|
+
//#region src/component/FluxDashboardContent.vue
|
|
3276
3545
|
var FluxDashboardContent_default = /* @__PURE__ */ defineComponent({
|
|
3277
3546
|
__name: "FluxDashboardContent",
|
|
3278
3547
|
setup(__props) {
|
|
@@ -3293,6 +3562,8 @@ var DashboardTopBar_module_default = {
|
|
|
3293
3562
|
dashboard: `dashboard`,
|
|
3294
3563
|
dashboardTopBarCollapsed: `dashboard-top-bar-collapsed`
|
|
3295
3564
|
};
|
|
3565
|
+
//#endregion
|
|
3566
|
+
//#region src/component/FluxDashboardTopBar.vue
|
|
3296
3567
|
var FluxDashboardTopBar_default = /* @__PURE__ */ defineComponent({
|
|
3297
3568
|
__name: "FluxDashboardTopBar",
|
|
3298
3569
|
setup(__props) {
|
|
@@ -3302,7 +3573,11 @@ var FluxDashboardTopBar_default = /* @__PURE__ */ defineComponent({
|
|
|
3302
3573
|
};
|
|
3303
3574
|
}
|
|
3304
3575
|
});
|
|
3576
|
+
//#endregion
|
|
3577
|
+
//#region src/component/FluxDashboardHeader.vue?vue&type=script&setup=true&lang.ts
|
|
3305
3578
|
var _hoisted_1$1 = { key: 1 };
|
|
3579
|
+
//#endregion
|
|
3580
|
+
//#region src/component/FluxDashboardHeader.vue
|
|
3306
3581
|
var FluxDashboardHeader_default = /* @__PURE__ */ defineComponent({
|
|
3307
3582
|
__name: "FluxDashboardHeader",
|
|
3308
3583
|
props: {
|
|
@@ -3344,7 +3619,11 @@ var DashboardPane_module_default = {
|
|
|
3344
3619
|
dashboardSide: `dashboard-side dashboard-pane`,
|
|
3345
3620
|
dashboardMenuCollapsed: `dashboard-menu-collapsed`
|
|
3346
3621
|
};
|
|
3622
|
+
//#endregion
|
|
3623
|
+
//#region src/component/FluxDashboardMenu.vue?vue&type=script&setup=true&lang.ts
|
|
3347
3624
|
var _hoisted_1 = { key: 1 };
|
|
3625
|
+
//#endregion
|
|
3626
|
+
//#region src/component/FluxDashboardMenu.vue
|
|
3348
3627
|
var FluxDashboardMenu_default = /* @__PURE__ */ defineComponent({
|
|
3349
3628
|
__name: "FluxDashboardMenu",
|
|
3350
3629
|
props: {
|
|
@@ -3387,6 +3666,8 @@ var DashboardNavigation_module_default = {
|
|
|
3387
3666
|
dashboardNavigationHeader: `dashboard-navigation-header`,
|
|
3388
3667
|
dashboardNavigationNav: `dashboard-navigation-nav`
|
|
3389
3668
|
};
|
|
3669
|
+
//#endregion
|
|
3670
|
+
//#region src/component/FluxDashboardNavigation.vue
|
|
3390
3671
|
var FluxDashboardNavigation_default = /* @__PURE__ */ defineComponent({
|
|
3391
3672
|
inheritAttrs: false,
|
|
3392
3673
|
__name: "FluxDashboardNavigation",
|
|
@@ -3426,6 +3707,8 @@ var FluxDashboardNavigation_default = /* @__PURE__ */ defineComponent({
|
|
|
3426
3707
|
};
|
|
3427
3708
|
}
|
|
3428
3709
|
});
|
|
3710
|
+
//#endregion
|
|
3711
|
+
//#region src/component/FluxDashboardSide.vue
|
|
3429
3712
|
var FluxDashboardSide_default = /* @__PURE__ */ defineComponent({
|
|
3430
3713
|
__name: "FluxDashboardSide",
|
|
3431
3714
|
props: { title: {} },
|
|
@@ -3443,6 +3726,7 @@ var FluxDashboardSide_default = /* @__PURE__ */ defineComponent({
|
|
|
3443
3726
|
};
|
|
3444
3727
|
}
|
|
3445
3728
|
});
|
|
3729
|
+
//#endregion
|
|
3446
3730
|
export { FluxDashboard_default as FluxDashboard, FluxDashboardContent_default as FluxDashboardContent, FluxDashboardHeader_default as FluxDashboardHeader, FluxDashboardInjectionKey, FluxDashboardMenu_default as FluxDashboardMenu, FluxDashboardNavigation_default as FluxDashboardNavigation, FluxDashboardSide_default as FluxDashboardSide, useDashboardInjection_default as useDashboardInjection };
|
|
3447
3731
|
|
|
3448
3732
|
//# sourceMappingURL=index.js.map
|