@doenet/doenetml-iframe 0.7.21-dev.353 → 0.7.21-dev.355
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/README.md +1 -1
- package/index.js +555 -1129
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -603,178 +603,246 @@ function requireColorName$1() {
|
|
|
603
603
|
}
|
|
604
604
|
var colorNameExports$1 = requireColorName$1();
|
|
605
605
|
const colorName$2 = /* @__PURE__ */ getDefaultExportFromCjs$3(colorNameExports$1);
|
|
606
|
-
var
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
606
|
+
var r$2$1 = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, t$3$1 = function(r2) {
|
|
607
|
+
return "string" == typeof r2 ? r2.length > 0 : "number" == typeof r2;
|
|
608
|
+
}, n$2$1 = function(r2, t23, n2) {
|
|
609
|
+
return void 0 === t23 && (t23 = 0), void 0 === n2 && (n2 = Math.pow(10, t23)), Math.round(n2 * r2) / n2 + 0;
|
|
610
|
+
}, e$2$1 = function(r2, t23, n2) {
|
|
611
|
+
return void 0 === t23 && (t23 = 0), void 0 === n2 && (n2 = 1), r2 > n2 ? n2 : r2 > t23 ? r2 : t23;
|
|
612
|
+
}, u$2$1 = function(r2) {
|
|
613
|
+
return (r2 = isFinite(r2) ? r2 % 360 : 0) > 0 ? r2 : r2 + 360;
|
|
614
|
+
}, a$2$1 = function(r2) {
|
|
615
|
+
return { r: e$2$1(r2.r, 0, 255), g: e$2$1(r2.g, 0, 255), b: e$2$1(r2.b, 0, 255), a: e$2$1(r2.a) };
|
|
616
|
+
}, o$3$1 = function(r2) {
|
|
617
|
+
return { r: n$2$1(r2.r), g: n$2$1(r2.g), b: n$2$1(r2.b), a: n$2$1(r2.a, 3) };
|
|
618
|
+
}, i$2$1 = /^#([0-9a-f]{3,8})$/i, s$1$1 = function(r2) {
|
|
619
|
+
var t23 = r2.toString(16);
|
|
620
|
+
return t23.length < 2 ? "0" + t23 : t23;
|
|
621
|
+
}, h$2$1 = function(r2) {
|
|
622
|
+
var t23 = r2.r, n2 = r2.g, e2 = r2.b, u2 = r2.a, a2 = Math.max(t23, n2, e2), o2 = a2 - Math.min(t23, n2, e2), i2 = o2 ? a2 === t23 ? (n2 - e2) / o2 : a2 === n2 ? 2 + (e2 - t23) / o2 : 4 + (t23 - n2) / o2 : 0;
|
|
623
|
+
return { h: 60 * (i2 < 0 ? i2 + 6 : i2), s: a2 ? o2 / a2 * 100 : 0, v: a2 / 255 * 100, a: u2 };
|
|
624
|
+
}, b$2$1 = function(r2) {
|
|
625
|
+
var t23 = r2.h, n2 = r2.s, e2 = r2.v, u2 = r2.a;
|
|
626
|
+
t23 = t23 / 360 * 6, n2 /= 100, e2 /= 100;
|
|
627
|
+
var a2 = Math.floor(t23), o2 = e2 * (1 - n2), i2 = e2 * (1 - (t23 - a2) * n2), s2 = e2 * (1 - (1 - t23 + a2) * n2), h2 = a2 % 6;
|
|
628
|
+
return { r: 255 * [e2, i2, o2, o2, s2, e2][h2], g: 255 * [s2, e2, e2, i2, o2, o2][h2], b: 255 * [o2, o2, s2, e2, e2, i2][h2], a: u2 };
|
|
629
|
+
}, g$1 = function(r2) {
|
|
630
|
+
return { h: u$2$1(r2.h), s: e$2$1(r2.s, 0, 100), l: e$2$1(r2.l, 0, 100), a: e$2$1(r2.a) };
|
|
631
|
+
}, d$1$1 = function(r2) {
|
|
632
|
+
return { h: n$2$1(r2.h), s: n$2$1(r2.s), l: n$2$1(r2.l), a: n$2$1(r2.a, 3) };
|
|
633
|
+
}, f$1$1 = function(r2) {
|
|
634
|
+
return b$2$1((n2 = (t23 = r2).s, { h: t23.h, s: (n2 *= ((e2 = t23.l) < 50 ? e2 : 100 - e2) / 100) > 0 ? 2 * n2 / (e2 + n2) * 100 : 0, v: e2 + n2, a: t23.a }));
|
|
635
|
+
var t23, n2, e2;
|
|
636
|
+
}, c$1$1 = function(r2) {
|
|
637
|
+
return { h: (t23 = h$2$1(r2)).h, s: (u2 = (200 - (n2 = t23.s)) * (e2 = t23.v) / 100) > 0 && u2 < 200 ? n2 * e2 / 100 / (u2 <= 100 ? u2 : 200 - u2) * 100 : 0, l: u2 / 2, a: t23.a };
|
|
638
|
+
var t23, n2, e2, u2;
|
|
639
|
+
}, l$2$1 = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, p$2$1 = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, v$1$1 = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, m$1 = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, y$1$1 = { string: [[function(r2) {
|
|
640
|
+
var t23 = i$2$1.exec(r2);
|
|
641
|
+
return t23 ? (r2 = t23[1]).length <= 4 ? { r: parseInt(r2[0] + r2[0], 16), g: parseInt(r2[1] + r2[1], 16), b: parseInt(r2[2] + r2[2], 16), a: 4 === r2.length ? n$2$1(parseInt(r2[3] + r2[3], 16) / 255, 2) : 1 } : 6 === r2.length || 8 === r2.length ? { r: parseInt(r2.substr(0, 2), 16), g: parseInt(r2.substr(2, 2), 16), b: parseInt(r2.substr(4, 2), 16), a: 8 === r2.length ? n$2$1(parseInt(r2.substr(6, 2), 16) / 255, 2) : 1 } : null : null;
|
|
642
|
+
}, "hex"], [function(r2) {
|
|
643
|
+
var t23 = v$1$1.exec(r2) || m$1.exec(r2);
|
|
644
|
+
return t23 ? t23[2] !== t23[4] || t23[4] !== t23[6] ? null : a$2$1({ r: Number(t23[1]) / (t23[2] ? 100 / 255 : 1), g: Number(t23[3]) / (t23[4] ? 100 / 255 : 1), b: Number(t23[5]) / (t23[6] ? 100 / 255 : 1), a: void 0 === t23[7] ? 1 : Number(t23[7]) / (t23[8] ? 100 : 1) }) : null;
|
|
645
|
+
}, "rgb"], [function(t23) {
|
|
646
|
+
var n2 = l$2$1.exec(t23) || p$2$1.exec(t23);
|
|
647
|
+
if (!n2) return null;
|
|
648
|
+
var e2, u2, a2 = g$1({ h: (e2 = n2[1], u2 = n2[2], void 0 === u2 && (u2 = "deg"), Number(e2) * (r$2$1[u2] || 1)), s: Number(n2[3]), l: Number(n2[4]), a: void 0 === n2[5] ? 1 : Number(n2[5]) / (n2[6] ? 100 : 1) });
|
|
649
|
+
return f$1$1(a2);
|
|
650
|
+
}, "hsl"]], object: [[function(r2) {
|
|
651
|
+
var n2 = r2.r, e2 = r2.g, u2 = r2.b, o2 = r2.a, i2 = void 0 === o2 ? 1 : o2;
|
|
652
|
+
return t$3$1(n2) && t$3$1(e2) && t$3$1(u2) ? a$2$1({ r: Number(n2), g: Number(e2), b: Number(u2), a: Number(i2) }) : null;
|
|
653
|
+
}, "rgb"], [function(r2) {
|
|
654
|
+
var n2 = r2.h, e2 = r2.s, u2 = r2.l, a2 = r2.a, o2 = void 0 === a2 ? 1 : a2;
|
|
655
|
+
if (!t$3$1(n2) || !t$3$1(e2) || !t$3$1(u2)) return null;
|
|
656
|
+
var i2 = g$1({ h: Number(n2), s: Number(e2), l: Number(u2), a: Number(o2) });
|
|
657
|
+
return f$1$1(i2);
|
|
658
|
+
}, "hsl"], [function(r2) {
|
|
659
|
+
var n2 = r2.h, a2 = r2.s, o2 = r2.v, i2 = r2.a, s2 = void 0 === i2 ? 1 : i2;
|
|
660
|
+
if (!t$3$1(n2) || !t$3$1(a2) || !t$3$1(o2)) return null;
|
|
661
|
+
var h2 = (function(r3) {
|
|
662
|
+
return { h: u$2$1(r3.h), s: e$2$1(r3.s, 0, 100), v: e$2$1(r3.v, 0, 100), a: e$2$1(r3.a) };
|
|
663
|
+
})({ h: Number(n2), s: Number(a2), v: Number(o2), a: Number(s2) });
|
|
664
|
+
return b$2$1(h2);
|
|
665
|
+
}, "hsv"]] }, N$1 = function(r2, t23) {
|
|
666
|
+
for (var n2 = 0; n2 < t23.length; n2++) {
|
|
667
|
+
var e2 = t23[n2][0](r2);
|
|
668
|
+
if (e2) return [e2, t23[n2][1]];
|
|
669
|
+
}
|
|
670
|
+
return [null, void 0];
|
|
671
|
+
}, x$1$1 = function(r2) {
|
|
672
|
+
return "string" == typeof r2 ? N$1(r2.trim(), y$1$1.string) : "object" == typeof r2 && null !== r2 ? N$1(r2, y$1$1.object) : [null, void 0];
|
|
673
|
+
}, M$2$1 = function(r2, t23) {
|
|
674
|
+
var n2 = c$1$1(r2);
|
|
675
|
+
return { h: n2.h, s: e$2$1(n2.s + 100 * t23, 0, 100), l: n2.l, a: n2.a };
|
|
676
|
+
}, H$1 = function(r2) {
|
|
677
|
+
return (299 * r2.r + 587 * r2.g + 114 * r2.b) / 1e3 / 255;
|
|
678
|
+
}, $$1 = function(r2, t23) {
|
|
679
|
+
var n2 = c$1$1(r2);
|
|
680
|
+
return { h: n2.h, s: n2.s, l: e$2$1(n2.l + 100 * t23, 0, 100), a: n2.a };
|
|
681
|
+
}, j$1 = (function() {
|
|
682
|
+
function r2(r3) {
|
|
683
|
+
this.parsed = x$1$1(r3)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
|
|
684
|
+
}
|
|
685
|
+
return r2.prototype.isValid = function() {
|
|
686
|
+
return null !== this.parsed;
|
|
687
|
+
}, r2.prototype.brightness = function() {
|
|
688
|
+
return n$2$1(H$1(this.rgba), 2);
|
|
689
|
+
}, r2.prototype.isDark = function() {
|
|
690
|
+
return H$1(this.rgba) < 0.5;
|
|
691
|
+
}, r2.prototype.isLight = function() {
|
|
692
|
+
return H$1(this.rgba) >= 0.5;
|
|
693
|
+
}, r2.prototype.toHex = function() {
|
|
694
|
+
return r3 = o$3$1(this.rgba), t23 = r3.r, e2 = r3.g, u2 = r3.b, i2 = (a2 = r3.a) < 1 ? s$1$1(n$2$1(255 * a2)) : "", "#" + s$1$1(t23) + s$1$1(e2) + s$1$1(u2) + i2;
|
|
695
|
+
var r3, t23, e2, u2, a2, i2;
|
|
696
|
+
}, r2.prototype.toRgb = function() {
|
|
697
|
+
return o$3$1(this.rgba);
|
|
698
|
+
}, r2.prototype.toRgbString = function() {
|
|
699
|
+
return r3 = o$3$1(this.rgba), t23 = r3.r, n2 = r3.g, e2 = r3.b, (u2 = r3.a) < 1 ? "rgba(" + t23 + ", " + n2 + ", " + e2 + ", " + u2 + ")" : "rgb(" + t23 + ", " + n2 + ", " + e2 + ")";
|
|
700
|
+
var r3, t23, n2, e2, u2;
|
|
701
|
+
}, r2.prototype.toHsl = function() {
|
|
702
|
+
return d$1$1(c$1$1(this.rgba));
|
|
703
|
+
}, r2.prototype.toHslString = function() {
|
|
704
|
+
return r3 = d$1$1(c$1$1(this.rgba)), t23 = r3.h, n2 = r3.s, e2 = r3.l, (u2 = r3.a) < 1 ? "hsla(" + t23 + ", " + n2 + "%, " + e2 + "%, " + u2 + ")" : "hsl(" + t23 + ", " + n2 + "%, " + e2 + "%)";
|
|
705
|
+
var r3, t23, n2, e2, u2;
|
|
706
|
+
}, r2.prototype.toHsv = function() {
|
|
707
|
+
return r3 = h$2$1(this.rgba), { h: n$2$1(r3.h), s: n$2$1(r3.s), v: n$2$1(r3.v), a: n$2$1(r3.a, 3) };
|
|
708
|
+
var r3;
|
|
709
|
+
}, r2.prototype.invert = function() {
|
|
710
|
+
return w$1$1({ r: 255 - (r3 = this.rgba).r, g: 255 - r3.g, b: 255 - r3.b, a: r3.a });
|
|
711
|
+
var r3;
|
|
712
|
+
}, r2.prototype.saturate = function(r3) {
|
|
713
|
+
return void 0 === r3 && (r3 = 0.1), w$1$1(M$2$1(this.rgba, r3));
|
|
714
|
+
}, r2.prototype.desaturate = function(r3) {
|
|
715
|
+
return void 0 === r3 && (r3 = 0.1), w$1$1(M$2$1(this.rgba, -r3));
|
|
716
|
+
}, r2.prototype.grayscale = function() {
|
|
717
|
+
return w$1$1(M$2$1(this.rgba, -1));
|
|
718
|
+
}, r2.prototype.lighten = function(r3) {
|
|
719
|
+
return void 0 === r3 && (r3 = 0.1), w$1$1($$1(this.rgba, r3));
|
|
720
|
+
}, r2.prototype.darken = function(r3) {
|
|
721
|
+
return void 0 === r3 && (r3 = 0.1), w$1$1($$1(this.rgba, -r3));
|
|
722
|
+
}, r2.prototype.rotate = function(r3) {
|
|
723
|
+
return void 0 === r3 && (r3 = 15), this.hue(this.hue() + r3);
|
|
724
|
+
}, r2.prototype.alpha = function(r3) {
|
|
725
|
+
return "number" == typeof r3 ? w$1$1({ r: (t23 = this.rgba).r, g: t23.g, b: t23.b, a: r3 }) : n$2$1(this.rgba.a, 3);
|
|
726
|
+
var t23;
|
|
727
|
+
}, r2.prototype.hue = function(r3) {
|
|
728
|
+
var t23 = c$1$1(this.rgba);
|
|
729
|
+
return "number" == typeof r3 ? w$1$1({ h: r3, s: t23.s, l: t23.l, a: t23.a }) : n$2$1(t23.h);
|
|
730
|
+
}, r2.prototype.isEqual = function(r3) {
|
|
731
|
+
return this.toHex() === w$1$1(r3).toHex();
|
|
732
|
+
}, r2;
|
|
733
|
+
})(), w$1$1 = function(r2) {
|
|
734
|
+
return r2 instanceof j$1 ? r2 : new j$1(r2);
|
|
735
|
+
}, S$1 = [], k$1 = function(r2) {
|
|
736
|
+
r2.forEach(function(r3) {
|
|
737
|
+
S$1.indexOf(r3) < 0 && (r3(j$1, y$1$1), S$1.push(r3));
|
|
738
|
+
});
|
|
739
|
+
};
|
|
740
|
+
var a$1$1 = function(a2) {
|
|
741
|
+
return "string" == typeof a2 ? a2.length > 0 : "number" == typeof a2;
|
|
742
|
+
}, t$2$1 = function(a2, t23, o2) {
|
|
743
|
+
return void 0 === t23 && (t23 = 0), void 0 === o2 && (o2 = Math.pow(10, t23)), Math.round(o2 * a2) / o2 + 0;
|
|
744
|
+
}, o$2$1 = function(a2, t23, o2) {
|
|
745
|
+
return void 0 === t23 && (t23 = 0), void 0 === o2 && (o2 = 1), a2 > o2 ? o2 : a2 > t23 ? a2 : t23;
|
|
746
|
+
}, r$1$1 = function(a2) {
|
|
747
|
+
var t23 = a2 / 255;
|
|
748
|
+
return t23 < 0.04045 ? t23 / 12.92 : Math.pow((t23 + 0.055) / 1.055, 2.4);
|
|
749
|
+
}, h$1$1 = function(a2) {
|
|
750
|
+
return 255 * (a2 > 31308e-7 ? 1.055 * Math.pow(a2, 1 / 2.4) - 0.055 : 12.92 * a2);
|
|
751
|
+
}, n$1$1 = 96.422, p$1$1 = 100, M$1$1 = 82.521, u$1$1 = function(a2) {
|
|
752
|
+
var t23, r2, n2 = { x: 0.9555766 * (t23 = a2).x + -0.0230393 * t23.y + 0.0631636 * t23.z, y: -0.0282895 * t23.x + 1.0099416 * t23.y + 0.0210077 * t23.z, z: 0.0122982 * t23.x + -0.020483 * t23.y + 1.3299098 * t23.z };
|
|
753
|
+
return r2 = { r: h$1$1(0.032404542 * n2.x - 0.015371385 * n2.y - 4985314e-9 * n2.z), g: h$1$1(-969266e-8 * n2.x + 0.018760108 * n2.y + 41556e-8 * n2.z), b: h$1$1(556434e-9 * n2.x - 2040259e-9 * n2.y + 0.010572252 * n2.z), a: a2.a }, { r: o$2$1(r2.r, 0, 255), g: o$2$1(r2.g, 0, 255), b: o$2$1(r2.b, 0, 255), a: o$2$1(r2.a) };
|
|
754
|
+
}, e$1$1 = function(a2) {
|
|
755
|
+
var t23 = r$1$1(a2.r), h2 = r$1$1(a2.g), u2 = r$1$1(a2.b);
|
|
756
|
+
return (function(a3) {
|
|
757
|
+
return { x: o$2$1(a3.x, 0, n$1$1), y: o$2$1(a3.y, 0, p$1$1), z: o$2$1(a3.z, 0, M$1$1), a: o$2$1(a3.a) };
|
|
758
|
+
})((function(a3) {
|
|
759
|
+
return { x: 1.0478112 * a3.x + 0.0228866 * a3.y + -0.050127 * a3.z, y: 0.0295424 * a3.x + 0.9904844 * a3.y + -0.0170491 * a3.z, z: -92345e-7 * a3.x + 0.0150436 * a3.y + 0.7521316 * a3.z, a: a3.a };
|
|
760
|
+
})({ x: 100 * (0.4124564 * t23 + 0.3575761 * h2 + 0.1804375 * u2), y: 100 * (0.2126729 * t23 + 0.7151522 * h2 + 0.072175 * u2), z: 100 * (0.0193339 * t23 + 0.119192 * h2 + 0.9503041 * u2), a: a2.a }));
|
|
761
|
+
}, w$2 = 216 / 24389, b$1$1 = 24389 / 27, i$1$1 = function(t23) {
|
|
762
|
+
var r2 = t23.l, h2 = t23.a, n2 = t23.b, p2 = t23.alpha, M2 = void 0 === p2 ? 1 : p2;
|
|
763
|
+
if (!a$1$1(r2) || !a$1$1(h2) || !a$1$1(n2)) return null;
|
|
764
|
+
var u2 = (function(a2) {
|
|
765
|
+
return { l: o$2$1(a2.l, 0, 400), a: a2.a, b: a2.b, alpha: o$2$1(a2.alpha) };
|
|
766
|
+
})({ l: Number(r2), a: Number(h2), b: Number(n2), alpha: Number(M2) });
|
|
767
|
+
return l$1$1(u2);
|
|
768
|
+
}, l$1$1 = function(a2) {
|
|
769
|
+
var t23 = (a2.l + 16) / 116, o2 = a2.a / 500 + t23, r2 = t23 - a2.b / 200;
|
|
770
|
+
return u$1$1({ x: (Math.pow(o2, 3) > w$2 ? Math.pow(o2, 3) : (116 * o2 - 16) / b$1$1) * n$1$1, y: (a2.l > 8 ? Math.pow((a2.l + 16) / 116, 3) : a2.l / b$1$1) * p$1$1, z: (Math.pow(r2, 3) > w$2 ? Math.pow(r2, 3) : (116 * r2 - 16) / b$1$1) * M$1$1, a: a2.alpha });
|
|
771
|
+
};
|
|
772
|
+
function labPlugin$1(a2, r2) {
|
|
773
|
+
a2.prototype.toLab = function() {
|
|
774
|
+
return o2 = e$1$1(this.rgba), h2 = o2.y / p$1$1, u2 = o2.z / M$1$1, r3 = (r3 = o2.x / n$1$1) > w$2 ? Math.cbrt(r3) : (b$1$1 * r3 + 16) / 116, a3 = { l: 116 * (h2 = h2 > w$2 ? Math.cbrt(h2) : (b$1$1 * h2 + 16) / 116) - 16, a: 500 * (r3 - h2), b: 200 * (h2 - (u2 = u2 > w$2 ? Math.cbrt(u2) : (b$1$1 * u2 + 16) / 116)), alpha: o2.a }, { l: t$2$1(a3.l, 2), a: t$2$1(a3.a, 2), b: t$2$1(a3.b, 2), alpha: t$2$1(a3.alpha, 3) };
|
|
775
|
+
var a3, o2, r3, h2, u2;
|
|
776
|
+
}, a2.prototype.delta = function(r3) {
|
|
777
|
+
void 0 === r3 && (r3 = "#FFF");
|
|
778
|
+
var h2 = r3 instanceof a2 ? r3 : new a2(r3), n2 = (function(a3, t23) {
|
|
779
|
+
var o2 = a3.l, r4 = a3.a, h3 = a3.b, n3 = t23.l, p2 = t23.a, M2 = t23.b, u2 = 180 / Math.PI, e2 = Math.PI / 180, w2 = Math.pow(Math.pow(r4, 2) + Math.pow(h3, 2), 0.5), b2 = Math.pow(Math.pow(p2, 2) + Math.pow(M2, 2), 0.5), i2 = (o2 + n3) / 2, l2 = Math.pow((w2 + b2) / 2, 7), c2 = 0.5 * (1 - Math.pow(l2 / (l2 + Math.pow(25, 7)), 0.5)), f2 = r4 * (1 + c2), y2 = p2 * (1 + c2), v2 = Math.pow(Math.pow(f2, 2) + Math.pow(h3, 2), 0.5), x2 = Math.pow(Math.pow(y2, 2) + Math.pow(M2, 2), 0.5), z = (v2 + x2) / 2, s2 = 0 === f2 && 0 === h3 ? 0 : Math.atan2(h3, f2) * u2, d2 = 0 === y2 && 0 === M2 ? 0 : Math.atan2(M2, y2) * u2;
|
|
780
|
+
s2 < 0 && (s2 += 360), d2 < 0 && (d2 += 360);
|
|
781
|
+
var g2 = d2 - s2, m2 = Math.abs(d2 - s2);
|
|
782
|
+
m2 > 180 && d2 <= s2 ? g2 += 360 : m2 > 180 && d2 > s2 && (g2 -= 360);
|
|
783
|
+
var N2 = s2 + d2;
|
|
784
|
+
m2 <= 180 ? N2 /= 2 : N2 = (s2 + d2 < 360 ? N2 + 360 : N2 - 360) / 2;
|
|
785
|
+
var F = 1 - 0.17 * Math.cos(e2 * (N2 - 30)) + 0.24 * Math.cos(2 * e2 * N2) + 0.32 * Math.cos(e2 * (3 * N2 + 6)) - 0.2 * Math.cos(e2 * (4 * N2 - 63)), L = n3 - o2, I = x2 - v2, P2 = 2 * Math.sin(e2 * g2 / 2) * Math.pow(v2 * x2, 0.5), j2 = 1 + 0.015 * Math.pow(i2 - 50, 2) / Math.pow(20 + Math.pow(i2 - 50, 2), 0.5), k2 = 1 + 0.045 * z, q = 1 + 0.015 * z * F, A2 = 30 * Math.exp(-1 * Math.pow((N2 - 275) / 25, 2)), B2 = -2 * Math.pow(l2 / (l2 + Math.pow(25, 7)), 0.5) * Math.sin(2 * e2 * A2);
|
|
786
|
+
return Math.pow(Math.pow(L / 1 / j2, 2) + Math.pow(I / 1 / k2, 2) + Math.pow(P2 / 1 / q, 2) + B2 * I * P2 / (1 * k2 * 1 * q), 0.5);
|
|
787
|
+
})(this.toLab(), h2.toLab()) / 100;
|
|
788
|
+
return o$2$1(t$2$1(n2, 3));
|
|
789
|
+
}, r2.object.push([i$1$1, "lab"]);
|
|
790
|
+
}
|
|
791
|
+
var r$3 = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, t$1$1 = function(r2) {
|
|
792
|
+
return "string" == typeof r2 ? r2.length > 0 : "number" == typeof r2;
|
|
793
|
+
}, a$3 = function(r2, t23, a2) {
|
|
794
|
+
return void 0 === t23 && (t23 = 0), void 0 === a2 && (a2 = Math.pow(10, t23)), Math.round(a2 * r2) / a2 + 0;
|
|
795
|
+
}, n$3 = function(r2, t23, a2) {
|
|
796
|
+
return void 0 === t23 && (t23 = 0), void 0 === a2 && (a2 = 1), r2 > a2 ? a2 : r2 > t23 ? r2 : t23;
|
|
797
|
+
}, u$3 = function(r2) {
|
|
798
|
+
var t23 = r2 / 255;
|
|
799
|
+
return t23 < 0.04045 ? t23 / 12.92 : Math.pow((t23 + 0.055) / 1.055, 2.4);
|
|
800
|
+
}, h$3 = function(r2) {
|
|
801
|
+
return 255 * (r2 > 31308e-7 ? 1.055 * Math.pow(r2, 1 / 2.4) - 0.055 : 12.92 * r2);
|
|
802
|
+
}, o$1$1 = 96.422, e$5 = 100, c$2 = 82.521, i$3 = function(r2) {
|
|
803
|
+
var t23, a2, u2 = { x: 0.9555766 * (t23 = r2).x + -0.0230393 * t23.y + 0.0631636 * t23.z, y: -0.0282895 * t23.x + 1.0099416 * t23.y + 0.0210077 * t23.z, z: 0.0122982 * t23.x + -0.020483 * t23.y + 1.3299098 * t23.z };
|
|
804
|
+
return a2 = { r: h$3(0.032404542 * u2.x - 0.015371385 * u2.y - 4985314e-9 * u2.z), g: h$3(-969266e-8 * u2.x + 0.018760108 * u2.y + 41556e-8 * u2.z), b: h$3(556434e-9 * u2.x - 2040259e-9 * u2.y + 0.010572252 * u2.z), a: r2.a }, { r: n$3(a2.r, 0, 255), g: n$3(a2.g, 0, 255), b: n$3(a2.b, 0, 255), a: n$3(a2.a) };
|
|
805
|
+
}, l$3 = function(r2) {
|
|
806
|
+
var t23 = u$3(r2.r), a2 = u$3(r2.g), h2 = u$3(r2.b);
|
|
807
|
+
return (function(r3) {
|
|
808
|
+
return { x: n$3(r3.x, 0, o$1$1), y: n$3(r3.y, 0, e$5), z: n$3(r3.z, 0, c$2), a: n$3(r3.a) };
|
|
809
|
+
})((function(r3) {
|
|
810
|
+
return { x: 1.0478112 * r3.x + 0.0228866 * r3.y + -0.050127 * r3.z, y: 0.0295424 * r3.x + 0.9904844 * r3.y + -0.0170491 * r3.z, z: -92345e-7 * r3.x + 0.0150436 * r3.y + 0.7521316 * r3.z, a: r3.a };
|
|
811
|
+
})({ x: 100 * (0.4124564 * t23 + 0.3575761 * a2 + 0.1804375 * h2), y: 100 * (0.2126729 * t23 + 0.7151522 * a2 + 0.072175 * h2), z: 100 * (0.0193339 * t23 + 0.119192 * a2 + 0.9503041 * h2), a: r2.a }));
|
|
812
|
+
}, f$4 = 216 / 24389, b$3 = 24389 / 27, d$2 = function(r2) {
|
|
813
|
+
return { l: n$3(r2.l, 0, 100), c: r2.c, h: (t23 = r2.h, (t23 = isFinite(t23) ? t23 % 360 : 0) > 0 ? t23 : t23 + 360), a: r2.a };
|
|
814
|
+
var t23;
|
|
815
|
+
}, p$3 = function(r2) {
|
|
816
|
+
return { l: a$3(r2.l, 2), c: a$3(r2.c, 2), h: a$3(r2.h, 2), a: a$3(r2.a, 3) };
|
|
817
|
+
}, v$2 = function(r2) {
|
|
818
|
+
var a2 = r2.l, n2 = r2.c, u2 = r2.h, h2 = r2.a, o2 = void 0 === h2 ? 1 : h2;
|
|
819
|
+
if (!t$1$1(a2) || !t$1$1(n2) || !t$1$1(u2)) return null;
|
|
820
|
+
var e2 = d$2({ l: Number(a2), c: Number(n2), h: Number(u2), a: Number(o2) });
|
|
821
|
+
return M$3(e2);
|
|
822
|
+
}, y$2 = function(r2) {
|
|
823
|
+
var t23 = (function(r3) {
|
|
824
|
+
var t33 = l$3(r3), a2 = t33.x / o$1$1, n3 = t33.y / e$5, u3 = t33.z / c$2;
|
|
825
|
+
return a2 = a2 > f$4 ? Math.cbrt(a2) : (b$3 * a2 + 16) / 116, { l: 116 * (n3 = n3 > f$4 ? Math.cbrt(n3) : (b$3 * n3 + 16) / 116) - 16, a: 500 * (a2 - n3), b: 200 * (n3 - (u3 = u3 > f$4 ? Math.cbrt(u3) : (b$3 * u3 + 16) / 116)), alpha: t33.a };
|
|
826
|
+
})(r2), n2 = a$3(t23.a, 3), u2 = a$3(t23.b, 3), h2 = Math.atan2(u2, n2) / Math.PI * 180;
|
|
827
|
+
return { l: t23.l, c: Math.sqrt(n2 * n2 + u2 * u2), h: h2 < 0 ? h2 + 360 : h2, a: t23.alpha };
|
|
828
|
+
}, M$3 = function(r2) {
|
|
829
|
+
return t23 = { l: r2.l, a: r2.c * Math.cos(r2.h * Math.PI / 180), b: r2.c * Math.sin(r2.h * Math.PI / 180), alpha: r2.a }, n2 = t23.a / 500 + (a2 = (t23.l + 16) / 116), u2 = a2 - t23.b / 200, i$3({ x: (Math.pow(n2, 3) > f$4 ? Math.pow(n2, 3) : (116 * n2 - 16) / b$3) * o$1$1, y: (t23.l > 8 ? Math.pow((t23.l + 16) / 116, 3) : t23.l / b$3) * e$5, z: (Math.pow(u2, 3) > f$4 ? Math.pow(u2, 3) : (116 * u2 - 16) / b$3) * c$2, a: t23.alpha });
|
|
830
|
+
var t23, a2, n2, u2;
|
|
831
|
+
}, x$2 = /^lch\(\s*([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)\s+([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, s$2 = function(t23) {
|
|
832
|
+
var a2 = x$2.exec(t23);
|
|
833
|
+
if (!a2) return null;
|
|
834
|
+
var n2, u2, h2 = d$2({ l: Number(a2[1]), c: Number(a2[2]), h: (n2 = a2[3], u2 = a2[4], void 0 === u2 && (u2 = "deg"), Number(n2) * (r$3[u2] || 1)), a: void 0 === a2[5] ? 1 : Number(a2[5]) / (a2[6] ? 100 : 1) });
|
|
835
|
+
return M$3(h2);
|
|
836
|
+
};
|
|
837
|
+
function lchPlugin$1(r2, t23) {
|
|
838
|
+
r2.prototype.toLch = function() {
|
|
839
|
+
return p$3(y$2(this.rgba));
|
|
840
|
+
}, r2.prototype.toLchString = function() {
|
|
841
|
+
return r3 = p$3(y$2(this.rgba)), t33 = r3.l, a2 = r3.c, n2 = r3.h, (u2 = r3.a) < 1 ? "lch(" + t33 + "% " + a2 + " " + n2 + " / " + u2 + ")" : "lch(" + t33 + "% " + a2 + " " + n2 + ")";
|
|
842
|
+
var r3, t33, a2, n2, u2;
|
|
843
|
+
}, t23.string.push([s$2, "lch"]), t23.object.push([v$2, "lch"]);
|
|
844
|
+
}
|
|
845
|
+
k$1([labPlugin$1, lchPlugin$1]);
|
|
778
846
|
const canonicalColorHexByKey$1 = {
|
|
779
847
|
black: "#000000",
|
|
780
848
|
white: "#ffffff",
|
|
@@ -805,6 +873,8 @@ const extraAnchorDefinitions$1 = {
|
|
|
805
873
|
redLight: { hex: "#f08080", canonical: "red" },
|
|
806
874
|
redCustom: { hex: "#D4042D", canonical: "red" },
|
|
807
875
|
redDark: { hex: "#8b0000", canonical: "red" },
|
|
876
|
+
crimson: { hex: "#dc143c", canonical: "red" },
|
|
877
|
+
wine: { hex: "#993355", canonical: "red" },
|
|
808
878
|
orangeLight: { hex: "#ffa07a", canonical: "orange" },
|
|
809
879
|
orangeCustom: { hex: "#F19143", canonical: "orange" },
|
|
810
880
|
orangePresetAccessible: { hex: "#a6510c", canonical: "orange" },
|
|
@@ -820,14 +890,18 @@ const extraAnchorDefinitions$1 = {
|
|
|
820
890
|
teal: { hex: "#008080", canonical: "green" },
|
|
821
891
|
aqua: { hex: "#00ffff", canonical: "cyan" },
|
|
822
892
|
cyanLight: { hex: "#e0ffff", canonical: "cyan" },
|
|
893
|
+
cyanMid: { hex: "#25b0c0", canonical: "cyan" },
|
|
823
894
|
cyanDark: { hex: "#008b8b", canonical: "cyan" },
|
|
824
895
|
navy: { hex: "#000080", canonical: "blue" },
|
|
896
|
+
blueMid: { hex: "#4477aa", canonical: "blue" },
|
|
897
|
+
blueSky: { hex: "#56b4e9", canonical: "blue" },
|
|
825
898
|
blueCustom: { hex: "#648FFF", canonical: "blue" },
|
|
826
899
|
bluePresetAccessible: { hex: "#1f5dff", canonical: "blue" },
|
|
827
900
|
blueLight: { hex: "#add8e6", canonical: "blue" },
|
|
828
901
|
blueDark: { hex: "#00008b", canonical: "blue" },
|
|
829
902
|
fuchsia: { hex: "#ff00ff", canonical: "purple" },
|
|
830
903
|
purpleCustom: { hex: "#644CD6", canonical: "purple" },
|
|
904
|
+
purpleMuted: { hex: "#9c5686", canonical: "purple" },
|
|
831
905
|
purpleLight: { hex: "#dda0dd", canonical: "purple" },
|
|
832
906
|
purpleDark: { hex: "#8b008b", canonical: "purple" },
|
|
833
907
|
hotpink: { hex: "#ff69b4", canonical: "pink" },
|
|
@@ -839,19 +913,10 @@ const anchorDefinitions$1 = {
|
|
|
839
913
|
...canonicalAnchorDefinitions$1,
|
|
840
914
|
...extraAnchorDefinitions$1
|
|
841
915
|
};
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
])
|
|
847
|
-
);
|
|
848
|
-
Object.fromEntries(
|
|
849
|
-
Object.entries(anchorDefinitions$1).map(([name2, definition]) => [
|
|
850
|
-
name2,
|
|
851
|
-
definition.canonical
|
|
852
|
-
])
|
|
853
|
-
);
|
|
854
|
-
nearestColor$3.from(matchColorHexByName$1);
|
|
916
|
+
Object.values(anchorDefinitions$1).map((definition) => ({
|
|
917
|
+
color: w$1$1(definition.hex),
|
|
918
|
+
canonical: definition.canonical
|
|
919
|
+
}));
|
|
855
920
|
/* @__PURE__ */ new Set([
|
|
856
921
|
...Object.keys(colorName$2),
|
|
857
922
|
"transparent",
|
|
@@ -1004,7 +1069,7 @@ const defaultPalette$1 = {
|
|
|
1004
1069
|
}
|
|
1005
1070
|
};
|
|
1006
1071
|
const okabeItoPalette$1 = {
|
|
1007
|
-
name: "
|
|
1072
|
+
name: "okabeIto",
|
|
1008
1073
|
description: "Colorblind-friendly blues, oranges, greens, and purples adapted from the Okabe-Ito palette, with varied marker shapes and line styles.",
|
|
1009
1074
|
styles: {
|
|
1010
1075
|
1: {
|
|
@@ -1013,17 +1078,9 @@ const okabeItoPalette$1 = {
|
|
|
1013
1078
|
markerColor: "#0072b2",
|
|
1014
1079
|
fillColor: "#0072b2",
|
|
1015
1080
|
highContrastColor: "#0072b2",
|
|
1016
|
-
lineColorWord: "blue",
|
|
1017
|
-
markerColorWord: "blue",
|
|
1018
|
-
fillColorWord: "blue",
|
|
1019
|
-
highContrastColorWord: "blue",
|
|
1020
1081
|
lineColorDarkMode: "#0072b2",
|
|
1021
1082
|
markerColorDarkMode: "#0072b2",
|
|
1022
1083
|
fillColorDarkMode: "#0072b2",
|
|
1023
|
-
lineColorWordDarkMode: "blue",
|
|
1024
|
-
markerColorWordDarkMode: "blue",
|
|
1025
|
-
fillColorWordDarkMode: "blue",
|
|
1026
|
-
highContrastColorWordDarkMode: "blue",
|
|
1027
1084
|
lineWidth: 4,
|
|
1028
1085
|
markerStyle: "circle"
|
|
1029
1086
|
},
|
|
@@ -1048,20 +1105,10 @@ const okabeItoPalette$1 = {
|
|
|
1048
1105
|
fillColor: "#009e73",
|
|
1049
1106
|
textColor: "#008561",
|
|
1050
1107
|
highContrastColor: "#008561",
|
|
1051
|
-
lineColorWord: "green",
|
|
1052
|
-
markerColorWord: "green",
|
|
1053
|
-
fillColorWord: "green",
|
|
1054
|
-
textColorWord: "green",
|
|
1055
|
-
highContrastColorWord: "green",
|
|
1056
1108
|
lineColorDarkMode: "#009e73",
|
|
1057
1109
|
markerColorDarkMode: "#009e73",
|
|
1058
1110
|
fillColorDarkMode: "#009e73",
|
|
1059
1111
|
textColorDarkMode: "#009e73",
|
|
1060
|
-
lineColorWordDarkMode: "green",
|
|
1061
|
-
markerColorWordDarkMode: "green",
|
|
1062
|
-
fillColorWordDarkMode: "green",
|
|
1063
|
-
textColorWordDarkMode: "green",
|
|
1064
|
-
highContrastColorWordDarkMode: "green",
|
|
1065
1112
|
lineWidth: 3,
|
|
1066
1113
|
markerStyle: "triangle"
|
|
1067
1114
|
},
|
|
@@ -1075,8 +1122,6 @@ const okabeItoPalette$1 = {
|
|
|
1075
1122
|
lineColorWord: "purple",
|
|
1076
1123
|
markerColorWord: "purple",
|
|
1077
1124
|
fillColorWord: "purple",
|
|
1078
|
-
textColorWord: "purple",
|
|
1079
|
-
highContrastColorWord: "purple",
|
|
1080
1125
|
lineColorDarkMode: "#cc79a7",
|
|
1081
1126
|
markerColorDarkMode: "#cc79a7",
|
|
1082
1127
|
fillColorDarkMode: "#cc79a7",
|
|
@@ -1175,7 +1220,7 @@ const okabeItoPalette$1 = {
|
|
|
1175
1220
|
}
|
|
1176
1221
|
};
|
|
1177
1222
|
const tolBrightPalette$1 = {
|
|
1178
|
-
name: "
|
|
1223
|
+
name: "tolBright",
|
|
1179
1224
|
description: "Colorblind-friendly bright blues, reds, greens, and purples from Paul Tol's bright palette, with varied marker shapes and line styles.",
|
|
1180
1225
|
styles: {
|
|
1181
1226
|
1: {
|
|
@@ -1183,17 +1228,9 @@ const tolBrightPalette$1 = {
|
|
|
1183
1228
|
markerColor: "#4477aa",
|
|
1184
1229
|
fillColor: "#4477aa",
|
|
1185
1230
|
highContrastColor: "#4477aa",
|
|
1186
|
-
lineColorWord: "blue",
|
|
1187
|
-
markerColorWord: "blue",
|
|
1188
|
-
fillColorWord: "blue",
|
|
1189
|
-
highContrastColorWord: "blue",
|
|
1190
1231
|
lineColorDarkMode: "#4477aa",
|
|
1191
1232
|
markerColorDarkMode: "#4477aa",
|
|
1192
1233
|
fillColorDarkMode: "#4477aa",
|
|
1193
|
-
lineColorWordDarkMode: "blue",
|
|
1194
|
-
markerColorWordDarkMode: "blue",
|
|
1195
|
-
fillColorWordDarkMode: "blue",
|
|
1196
|
-
highContrastColorWordDarkMode: "blue",
|
|
1197
1234
|
lineWidth: 4,
|
|
1198
1235
|
markerStyle: "circle"
|
|
1199
1236
|
},
|
|
@@ -1203,20 +1240,10 @@ const tolBrightPalette$1 = {
|
|
|
1203
1240
|
fillColor: "#ee6677",
|
|
1204
1241
|
textColor: "#bf515e",
|
|
1205
1242
|
highContrastColor: "#bf515e",
|
|
1206
|
-
lineColorWord: "red",
|
|
1207
|
-
markerColorWord: "red",
|
|
1208
|
-
fillColorWord: "red",
|
|
1209
|
-
textColorWord: "red",
|
|
1210
|
-
highContrastColorWord: "red",
|
|
1211
1243
|
lineColorDarkMode: "#ee6677",
|
|
1212
1244
|
markerColorDarkMode: "#ee6677",
|
|
1213
1245
|
fillColorDarkMode: "#ee6677",
|
|
1214
1246
|
textColorDarkMode: "#ee6677",
|
|
1215
|
-
lineColorWordDarkMode: "red",
|
|
1216
|
-
markerColorWordDarkMode: "red",
|
|
1217
|
-
fillColorWordDarkMode: "red",
|
|
1218
|
-
textColorWordDarkMode: "red",
|
|
1219
|
-
highContrastColorWordDarkMode: "red",
|
|
1220
1247
|
lineWidth: 2,
|
|
1221
1248
|
markerStyle: "square"
|
|
1222
1249
|
},
|
|
@@ -1257,9 +1284,6 @@ const tolBrightPalette$1 = {
|
|
|
1257
1284
|
fillColor: "#4d9db8",
|
|
1258
1285
|
textColor: "#3c7d94",
|
|
1259
1286
|
highContrastColor: "#3c7d94",
|
|
1260
|
-
lineColorWord: "cyan",
|
|
1261
|
-
markerColorWord: "cyan",
|
|
1262
|
-
fillColorWord: "cyan",
|
|
1263
1287
|
textColorWord: "cyan",
|
|
1264
1288
|
highContrastColorWord: "cyan",
|
|
1265
1289
|
lineColorDarkMode: "#66ccee",
|
|
@@ -1284,11 +1308,6 @@ const tolBrightPalette$1 = {
|
|
|
1284
1308
|
markerColorDarkMode: "#aa3377",
|
|
1285
1309
|
fillColorDarkMode: "#aa3377",
|
|
1286
1310
|
textColorDarkMode: "#b5648c",
|
|
1287
|
-
lineColorWordDarkMode: "purple",
|
|
1288
|
-
markerColorWordDarkMode: "purple",
|
|
1289
|
-
fillColorWordDarkMode: "purple",
|
|
1290
|
-
textColorWordDarkMode: "purple",
|
|
1291
|
-
highContrastColorWordDarkMode: "purple",
|
|
1292
1311
|
lineWidth: 2,
|
|
1293
1312
|
markerStyle: "triangleLeft"
|
|
1294
1313
|
},
|
|
@@ -1309,7 +1328,7 @@ const tolBrightPalette$1 = {
|
|
|
1309
1328
|
}
|
|
1310
1329
|
};
|
|
1311
1330
|
const tolMutedPalette$1 = {
|
|
1312
|
-
name: "
|
|
1331
|
+
name: "tolMuted",
|
|
1313
1332
|
description: "Nine colorblind-friendly muted styles from Paul Tol's muted palette, with varied marker shapes and line styles.",
|
|
1314
1333
|
styles: {
|
|
1315
1334
|
1: {
|
|
@@ -1337,20 +1356,10 @@ const tolMutedPalette$1 = {
|
|
|
1337
1356
|
fillColor: "#669ab5",
|
|
1338
1357
|
textColor: "#507a90",
|
|
1339
1358
|
highContrastColor: "#507a90",
|
|
1340
|
-
lineColorWord: "blue",
|
|
1341
|
-
markerColorWord: "blue",
|
|
1342
|
-
fillColorWord: "blue",
|
|
1343
|
-
textColorWord: "blue",
|
|
1344
|
-
highContrastColorWord: "blue",
|
|
1345
1359
|
lineColorDarkMode: "#88ccee",
|
|
1346
1360
|
markerColorDarkMode: "#88ccee",
|
|
1347
1361
|
fillColorDarkMode: "#88ccee",
|
|
1348
1362
|
textColorDarkMode: "#88ccee",
|
|
1349
|
-
lineColorWordDarkMode: "blue",
|
|
1350
|
-
markerColorWordDarkMode: "blue",
|
|
1351
|
-
fillColorWordDarkMode: "blue",
|
|
1352
|
-
textColorWordDarkMode: "blue",
|
|
1353
|
-
highContrastColorWordDarkMode: "blue",
|
|
1354
1363
|
lineWidth: 2,
|
|
1355
1364
|
markerStyle: "square"
|
|
1356
1365
|
},
|
|
@@ -1387,8 +1396,6 @@ const tolMutedPalette$1 = {
|
|
|
1387
1396
|
markerColorDarkMode: "#117733",
|
|
1388
1397
|
fillColorDarkMode: "#117733",
|
|
1389
1398
|
textColorDarkMode: "#548a5f",
|
|
1390
|
-
textColorWordDarkMode: "green",
|
|
1391
|
-
highContrastColorWordDarkMode: "green",
|
|
1392
1399
|
lineWidth: 2,
|
|
1393
1400
|
markerStyle: "diamond"
|
|
1394
1401
|
},
|
|
@@ -1496,11 +1503,6 @@ const tolMutedPalette$1 = {
|
|
|
1496
1503
|
markerColorDarkMode: "#aa4499",
|
|
1497
1504
|
fillColorDarkMode: "#aa4499",
|
|
1498
1505
|
textColorDarkMode: "#b262a3",
|
|
1499
|
-
lineColorWordDarkMode: "purple",
|
|
1500
|
-
markerColorWordDarkMode: "purple",
|
|
1501
|
-
fillColorWordDarkMode: "purple",
|
|
1502
|
-
textColorWordDarkMode: "purple",
|
|
1503
|
-
highContrastColorWordDarkMode: "purple",
|
|
1504
1506
|
lineWidth: 2,
|
|
1505
1507
|
lineStyle: "dashed",
|
|
1506
1508
|
markerStyle: "square"
|
|
@@ -1508,7 +1510,7 @@ const tolMutedPalette$1 = {
|
|
|
1508
1510
|
}
|
|
1509
1511
|
};
|
|
1510
1512
|
const tolHighContrastPalette$1 = {
|
|
1511
|
-
name: "
|
|
1513
|
+
name: "tolHighContrast",
|
|
1512
1514
|
description: "Four maximum-distinction styles from Paul Tol's high-contrast palette, distinguishable even in grayscale.",
|
|
1513
1515
|
styles: {
|
|
1514
1516
|
1: {
|
|
@@ -1516,17 +1518,9 @@ const tolHighContrastPalette$1 = {
|
|
|
1516
1518
|
markerColor: "#004488",
|
|
1517
1519
|
fillColor: "#004488",
|
|
1518
1520
|
highContrastColor: "#004488",
|
|
1519
|
-
lineColorWord: "blue",
|
|
1520
|
-
markerColorWord: "blue",
|
|
1521
|
-
fillColorWord: "blue",
|
|
1522
|
-
highContrastColorWord: "blue",
|
|
1523
1521
|
lineColorDarkMode: "#496194",
|
|
1524
1522
|
markerColorDarkMode: "#496194",
|
|
1525
1523
|
fillColorDarkMode: "#496194",
|
|
1526
|
-
lineColorWordDarkMode: "blue",
|
|
1527
|
-
markerColorWordDarkMode: "blue",
|
|
1528
|
-
fillColorWordDarkMode: "blue",
|
|
1529
|
-
highContrastColorWordDarkMode: "blue",
|
|
1530
1524
|
lineWidth: 4,
|
|
1531
1525
|
markerStyle: "circle"
|
|
1532
1526
|
},
|
|
@@ -1563,11 +1557,6 @@ const tolHighContrastPalette$1 = {
|
|
|
1563
1557
|
markerColorDarkMode: "#c06976",
|
|
1564
1558
|
fillColorDarkMode: "#c06976",
|
|
1565
1559
|
textColorDarkMode: "#c06976",
|
|
1566
|
-
lineColorWordDarkMode: "red",
|
|
1567
|
-
markerColorWordDarkMode: "red",
|
|
1568
|
-
fillColorWordDarkMode: "red",
|
|
1569
|
-
textColorWordDarkMode: "red",
|
|
1570
|
-
highContrastColorWordDarkMode: "red",
|
|
1571
1560
|
lineWidth: 3,
|
|
1572
1561
|
markerStyle: "triangle"
|
|
1573
1562
|
},
|
|
@@ -1595,17 +1584,9 @@ const ibmPalette$1 = {
|
|
|
1595
1584
|
markerColor: "#648fff",
|
|
1596
1585
|
fillColor: "#648fff",
|
|
1597
1586
|
highContrastColor: "#4f71cb",
|
|
1598
|
-
lineColorWord: "blue",
|
|
1599
|
-
markerColorWord: "blue",
|
|
1600
|
-
fillColorWord: "blue",
|
|
1601
|
-
highContrastColorWord: "blue",
|
|
1602
1587
|
lineColorDarkMode: "#648fff",
|
|
1603
1588
|
markerColorDarkMode: "#648fff",
|
|
1604
1589
|
fillColorDarkMode: "#648fff",
|
|
1605
|
-
lineColorWordDarkMode: "blue",
|
|
1606
|
-
markerColorWordDarkMode: "blue",
|
|
1607
|
-
fillColorWordDarkMode: "blue",
|
|
1608
|
-
highContrastColorWordDarkMode: "blue",
|
|
1609
1590
|
lineWidth: 4,
|
|
1610
1591
|
markerStyle: "circle"
|
|
1611
1592
|
},
|
|
@@ -1692,18 +1673,10 @@ const grayscalePalette$1 = {
|
|
|
1692
1673
|
markerColor: "#000000",
|
|
1693
1674
|
fillColor: "#000000",
|
|
1694
1675
|
highContrastColor: "#000000",
|
|
1695
|
-
lineColorWord: "black",
|
|
1696
|
-
markerColorWord: "black",
|
|
1697
|
-
fillColorWord: "black",
|
|
1698
|
-
highContrastColorWord: "black",
|
|
1699
1676
|
lineColorDarkMode: "#ffffff",
|
|
1700
1677
|
markerColorDarkMode: "#ffffff",
|
|
1701
1678
|
fillColorDarkMode: "#ffffff",
|
|
1702
1679
|
highContrastColorDarkMode: "#ffffff",
|
|
1703
|
-
lineColorWordDarkMode: "white",
|
|
1704
|
-
markerColorWordDarkMode: "white",
|
|
1705
|
-
fillColorWordDarkMode: "white",
|
|
1706
|
-
highContrastColorWordDarkMode: "white",
|
|
1707
1680
|
lineWidth: 4,
|
|
1708
1681
|
markerStyle: "circle"
|
|
1709
1682
|
},
|
|
@@ -1737,21 +1710,11 @@ const grayscalePalette$1 = {
|
|
|
1737
1710
|
fillColor: "#616161",
|
|
1738
1711
|
textColor: "#616161",
|
|
1739
1712
|
highContrastColor: "#616161",
|
|
1740
|
-
lineColorWord: "gray",
|
|
1741
|
-
markerColorWord: "gray",
|
|
1742
|
-
fillColorWord: "gray",
|
|
1743
|
-
textColorWord: "gray",
|
|
1744
|
-
highContrastColorWord: "gray",
|
|
1745
1713
|
lineColorDarkMode: "#929292",
|
|
1746
1714
|
markerColorDarkMode: "#929292",
|
|
1747
1715
|
fillColorDarkMode: "#929292",
|
|
1748
1716
|
textColorDarkMode: "#929292",
|
|
1749
1717
|
highContrastColorDarkMode: "#929292",
|
|
1750
|
-
lineColorWordDarkMode: "gray",
|
|
1751
|
-
markerColorWordDarkMode: "gray",
|
|
1752
|
-
fillColorWordDarkMode: "gray",
|
|
1753
|
-
textColorWordDarkMode: "gray",
|
|
1754
|
-
highContrastColorWordDarkMode: "gray",
|
|
1755
1718
|
lineWidth: 3,
|
|
1756
1719
|
markerStyle: "triangle"
|
|
1757
1720
|
},
|
|
@@ -1790,17 +1753,9 @@ const categoricalPalette$1 = {
|
|
|
1790
1753
|
markerColor: "#1f77b4",
|
|
1791
1754
|
fillColor: "#1f77b4",
|
|
1792
1755
|
highContrastColor: "#1f77b4",
|
|
1793
|
-
lineColorWord: "blue",
|
|
1794
|
-
markerColorWord: "blue",
|
|
1795
|
-
fillColorWord: "blue",
|
|
1796
|
-
highContrastColorWord: "blue",
|
|
1797
1756
|
lineColorDarkMode: "#5ba3dd",
|
|
1798
1757
|
markerColorDarkMode: "#5ba3dd",
|
|
1799
1758
|
fillColorDarkMode: "#5ba3dd",
|
|
1800
|
-
lineColorWordDarkMode: "blue",
|
|
1801
|
-
markerColorWordDarkMode: "blue",
|
|
1802
|
-
fillColorWordDarkMode: "blue",
|
|
1803
|
-
highContrastColorWordDarkMode: "blue",
|
|
1804
1759
|
lineWidth: 4,
|
|
1805
1760
|
markerStyle: "circle"
|
|
1806
1761
|
},
|
|
@@ -1810,20 +1765,10 @@ const categoricalPalette$1 = {
|
|
|
1810
1765
|
fillColor: "#e7730c",
|
|
1811
1766
|
textColor: "#b95b07",
|
|
1812
1767
|
highContrastColor: "#b95b07",
|
|
1813
|
-
lineColorWord: "orange",
|
|
1814
|
-
markerColorWord: "orange",
|
|
1815
|
-
fillColorWord: "orange",
|
|
1816
|
-
textColorWord: "orange",
|
|
1817
|
-
highContrastColorWord: "orange",
|
|
1818
1768
|
lineColorDarkMode: "#ff9d3c",
|
|
1819
1769
|
markerColorDarkMode: "#ff9d3c",
|
|
1820
1770
|
fillColorDarkMode: "#ff9d3c",
|
|
1821
1771
|
textColorDarkMode: "#ff9d3c",
|
|
1822
|
-
lineColorWordDarkMode: "orange",
|
|
1823
|
-
markerColorWordDarkMode: "orange",
|
|
1824
|
-
fillColorWordDarkMode: "orange",
|
|
1825
|
-
textColorWordDarkMode: "orange",
|
|
1826
|
-
highContrastColorWordDarkMode: "orange",
|
|
1827
1772
|
lineWidth: 2,
|
|
1828
1773
|
markerStyle: "square"
|
|
1829
1774
|
},
|
|
@@ -1833,20 +1778,10 @@ const categoricalPalette$1 = {
|
|
|
1833
1778
|
fillColor: "#217a21",
|
|
1834
1779
|
textColor: "#217a21",
|
|
1835
1780
|
highContrastColor: "#217a21",
|
|
1836
|
-
lineColorWord: "green",
|
|
1837
|
-
markerColorWord: "green",
|
|
1838
|
-
fillColorWord: "green",
|
|
1839
|
-
textColorWord: "green",
|
|
1840
|
-
highContrastColorWord: "green",
|
|
1841
1781
|
lineColorDarkMode: "#2ca02c",
|
|
1842
1782
|
markerColorDarkMode: "#2ca02c",
|
|
1843
1783
|
fillColorDarkMode: "#2ca02c",
|
|
1844
1784
|
textColorDarkMode: "#2ca02c",
|
|
1845
|
-
lineColorWordDarkMode: "green",
|
|
1846
|
-
markerColorWordDarkMode: "green",
|
|
1847
|
-
fillColorWordDarkMode: "green",
|
|
1848
|
-
textColorWordDarkMode: "green",
|
|
1849
|
-
highContrastColorWordDarkMode: "green",
|
|
1850
1785
|
lineWidth: 3,
|
|
1851
1786
|
markerStyle: "triangle"
|
|
1852
1787
|
},
|
|
@@ -1856,20 +1791,10 @@ const categoricalPalette$1 = {
|
|
|
1856
1791
|
fillColor: "#d62728",
|
|
1857
1792
|
textColor: "#d62728",
|
|
1858
1793
|
highContrastColor: "#d62728",
|
|
1859
|
-
lineColorWord: "red",
|
|
1860
|
-
markerColorWord: "red",
|
|
1861
|
-
fillColorWord: "red",
|
|
1862
|
-
textColorWord: "red",
|
|
1863
|
-
highContrastColorWord: "red",
|
|
1864
1794
|
lineColorDarkMode: "#e2494a",
|
|
1865
1795
|
markerColorDarkMode: "#e2494a",
|
|
1866
1796
|
fillColorDarkMode: "#e2494a",
|
|
1867
1797
|
textColorDarkMode: "#e2494a",
|
|
1868
|
-
lineColorWordDarkMode: "red",
|
|
1869
|
-
markerColorWordDarkMode: "red",
|
|
1870
|
-
fillColorWordDarkMode: "red",
|
|
1871
|
-
textColorWordDarkMode: "red",
|
|
1872
|
-
highContrastColorWordDarkMode: "red",
|
|
1873
1798
|
lineWidth: 2,
|
|
1874
1799
|
markerStyle: "diamond"
|
|
1875
1800
|
},
|
|
@@ -1879,20 +1804,10 @@ const categoricalPalette$1 = {
|
|
|
1879
1804
|
fillColor: "#9467bd",
|
|
1880
1805
|
textColor: "#8e62b5",
|
|
1881
1806
|
highContrastColor: "#8e62b5",
|
|
1882
|
-
lineColorWord: "purple",
|
|
1883
|
-
markerColorWord: "purple",
|
|
1884
|
-
fillColorWord: "purple",
|
|
1885
|
-
textColorWord: "purple",
|
|
1886
|
-
highContrastColorWord: "purple",
|
|
1887
1807
|
lineColorDarkMode: "#b48fd6",
|
|
1888
1808
|
markerColorDarkMode: "#b48fd6",
|
|
1889
1809
|
fillColorDarkMode: "#b48fd6",
|
|
1890
1810
|
textColorDarkMode: "#b48fd6",
|
|
1891
|
-
lineColorWordDarkMode: "purple",
|
|
1892
|
-
markerColorWordDarkMode: "purple",
|
|
1893
|
-
fillColorWordDarkMode: "purple",
|
|
1894
|
-
textColorWordDarkMode: "purple",
|
|
1895
|
-
highContrastColorWordDarkMode: "purple",
|
|
1896
1811
|
lineWidth: 2,
|
|
1897
1812
|
markerStyle: "triangleDown"
|
|
1898
1813
|
},
|
|
@@ -1902,11 +1817,6 @@ const categoricalPalette$1 = {
|
|
|
1902
1817
|
fillColor: "#7a4a41",
|
|
1903
1818
|
textColor: "#7a4a41",
|
|
1904
1819
|
highContrastColor: "#7a4a41",
|
|
1905
|
-
lineColorWord: "brown",
|
|
1906
|
-
markerColorWord: "brown",
|
|
1907
|
-
fillColorWord: "brown",
|
|
1908
|
-
textColorWord: "brown",
|
|
1909
|
-
highContrastColorWord: "brown",
|
|
1910
1820
|
lineColorDarkMode: "#a9705f",
|
|
1911
1821
|
markerColorDarkMode: "#a9705f",
|
|
1912
1822
|
fillColorDarkMode: "#a9705f",
|
|
@@ -1925,20 +1835,12 @@ const categoricalPalette$1 = {
|
|
|
1925
1835
|
fillColor: "#d670b7",
|
|
1926
1836
|
textColor: "#ab5892",
|
|
1927
1837
|
highContrastColor: "#ab5892",
|
|
1928
|
-
lineColorWord: "pink",
|
|
1929
|
-
markerColorWord: "pink",
|
|
1930
|
-
fillColorWord: "pink",
|
|
1931
1838
|
textColorWord: "pink",
|
|
1932
1839
|
highContrastColorWord: "pink",
|
|
1933
1840
|
lineColorDarkMode: "#e377c2",
|
|
1934
1841
|
markerColorDarkMode: "#e377c2",
|
|
1935
1842
|
fillColorDarkMode: "#e377c2",
|
|
1936
1843
|
textColorDarkMode: "#e377c2",
|
|
1937
|
-
lineColorWordDarkMode: "pink",
|
|
1938
|
-
markerColorWordDarkMode: "pink",
|
|
1939
|
-
fillColorWordDarkMode: "pink",
|
|
1940
|
-
textColorWordDarkMode: "pink",
|
|
1941
|
-
highContrastColorWordDarkMode: "pink",
|
|
1942
1844
|
lineWidth: 3,
|
|
1943
1845
|
lineStyle: "dashed",
|
|
1944
1846
|
markerStyle: "triangleRight"
|
|
@@ -1949,20 +1851,10 @@ const categoricalPalette$1 = {
|
|
|
1949
1851
|
fillColor: "#7f7f7f",
|
|
1950
1852
|
textColor: "#757575",
|
|
1951
1853
|
highContrastColor: "#757575",
|
|
1952
|
-
lineColorWord: "gray",
|
|
1953
|
-
markerColorWord: "gray",
|
|
1954
|
-
fillColorWord: "gray",
|
|
1955
|
-
textColorWord: "gray",
|
|
1956
|
-
highContrastColorWord: "gray",
|
|
1957
1854
|
lineColorDarkMode: "#a8a8a8",
|
|
1958
1855
|
markerColorDarkMode: "#a8a8a8",
|
|
1959
1856
|
fillColorDarkMode: "#a8a8a8",
|
|
1960
1857
|
textColorDarkMode: "#a8a8a8",
|
|
1961
|
-
lineColorWordDarkMode: "gray",
|
|
1962
|
-
markerColorWordDarkMode: "gray",
|
|
1963
|
-
fillColorWordDarkMode: "gray",
|
|
1964
|
-
textColorWordDarkMode: "gray",
|
|
1965
|
-
highContrastColorWordDarkMode: "gray",
|
|
1966
1858
|
lineWidth: 1,
|
|
1967
1859
|
lineStyle: "dotted",
|
|
1968
1860
|
markerStyle: "circle"
|
|
@@ -1997,20 +1889,12 @@ const categoricalPalette$1 = {
|
|
|
1997
1889
|
fillColor: "#12a2b1",
|
|
1998
1890
|
textColor: "#0c818e",
|
|
1999
1891
|
highContrastColor: "#0c818e",
|
|
2000
|
-
lineColorWord: "cyan",
|
|
2001
|
-
markerColorWord: "cyan",
|
|
2002
|
-
fillColorWord: "cyan",
|
|
2003
1892
|
textColorWord: "cyan",
|
|
2004
1893
|
highContrastColorWord: "cyan",
|
|
2005
1894
|
lineColorDarkMode: "#17becf",
|
|
2006
1895
|
markerColorDarkMode: "#17becf",
|
|
2007
1896
|
fillColorDarkMode: "#17becf",
|
|
2008
1897
|
textColorDarkMode: "#17becf",
|
|
2009
|
-
lineColorWordDarkMode: "cyan",
|
|
2010
|
-
markerColorWordDarkMode: "cyan",
|
|
2011
|
-
fillColorWordDarkMode: "cyan",
|
|
2012
|
-
textColorWordDarkMode: "cyan",
|
|
2013
|
-
highContrastColorWordDarkMode: "cyan",
|
|
2014
1898
|
lineWidth: 2,
|
|
2015
1899
|
lineStyle: "dotted",
|
|
2016
1900
|
markerStyle: "diamond"
|
|
@@ -2018,7 +1902,7 @@ const categoricalPalette$1 = {
|
|
|
2018
1902
|
}
|
|
2019
1903
|
};
|
|
2020
1904
|
const grumpyNarwhalPalette$1 = {
|
|
2021
|
-
name: "
|
|
1905
|
+
name: "grumpyNarwhal",
|
|
2022
1906
|
description: "Six saturated hues — burnt orange, forest green, deep pink, arctic teal, gold, and purple — going neon in dark mode.",
|
|
2023
1907
|
styles: {
|
|
2024
1908
|
1: {
|
|
@@ -2026,17 +1910,12 @@ const grumpyNarwhalPalette$1 = {
|
|
|
2026
1910
|
markerColor: "#b34700",
|
|
2027
1911
|
fillColor: "#b34700",
|
|
2028
1912
|
highContrastColor: "#b34700",
|
|
2029
|
-
lineColorWord: "orange",
|
|
2030
|
-
markerColorWord: "orange",
|
|
2031
|
-
fillColorWord: "orange",
|
|
2032
|
-
highContrastColorWord: "orange",
|
|
2033
1913
|
lineColorDarkMode: "#ff5f00",
|
|
2034
1914
|
markerColorDarkMode: "#ff5f00",
|
|
2035
1915
|
fillColorDarkMode: "#ff5f00",
|
|
2036
1916
|
lineColorWordDarkMode: "orange",
|
|
2037
1917
|
markerColorWordDarkMode: "orange",
|
|
2038
1918
|
fillColorWordDarkMode: "orange",
|
|
2039
|
-
highContrastColorWordDarkMode: "orange",
|
|
2040
1919
|
lineWidth: 4,
|
|
2041
1920
|
markerStyle: "circle"
|
|
2042
1921
|
},
|
|
@@ -2046,20 +1925,10 @@ const grumpyNarwhalPalette$1 = {
|
|
|
2046
1925
|
fillColor: "#1b7a1b",
|
|
2047
1926
|
textColor: "#1b7a1b",
|
|
2048
1927
|
highContrastColor: "#1b7a1b",
|
|
2049
|
-
lineColorWord: "green",
|
|
2050
|
-
markerColorWord: "green",
|
|
2051
|
-
fillColorWord: "green",
|
|
2052
|
-
textColorWord: "green",
|
|
2053
|
-
highContrastColorWord: "green",
|
|
2054
1928
|
lineColorDarkMode: "#39ff14",
|
|
2055
1929
|
markerColorDarkMode: "#39ff14",
|
|
2056
1930
|
fillColorDarkMode: "#39ff14",
|
|
2057
1931
|
textColorDarkMode: "#39ff14",
|
|
2058
|
-
lineColorWordDarkMode: "green",
|
|
2059
|
-
markerColorWordDarkMode: "green",
|
|
2060
|
-
fillColorWordDarkMode: "green",
|
|
2061
|
-
textColorWordDarkMode: "green",
|
|
2062
|
-
highContrastColorWordDarkMode: "green",
|
|
2063
1932
|
lineWidth: 2,
|
|
2064
1933
|
markerStyle: "square"
|
|
2065
1934
|
},
|
|
@@ -2078,11 +1947,6 @@ const grumpyNarwhalPalette$1 = {
|
|
|
2078
1947
|
markerColorDarkMode: "#ff1493",
|
|
2079
1948
|
fillColorDarkMode: "#ff1493",
|
|
2080
1949
|
textColorDarkMode: "#ff1493",
|
|
2081
|
-
lineColorWordDarkMode: "pink",
|
|
2082
|
-
markerColorWordDarkMode: "pink",
|
|
2083
|
-
fillColorWordDarkMode: "pink",
|
|
2084
|
-
textColorWordDarkMode: "pink",
|
|
2085
|
-
highContrastColorWordDarkMode: "pink",
|
|
2086
1950
|
lineWidth: 3,
|
|
2087
1951
|
markerStyle: "triangle"
|
|
2088
1952
|
},
|
|
@@ -2101,11 +1965,6 @@ const grumpyNarwhalPalette$1 = {
|
|
|
2101
1965
|
markerColorDarkMode: "#00e5ff",
|
|
2102
1966
|
fillColorDarkMode: "#00e5ff",
|
|
2103
1967
|
textColorDarkMode: "#00e5ff",
|
|
2104
|
-
lineColorWordDarkMode: "cyan",
|
|
2105
|
-
markerColorWordDarkMode: "cyan",
|
|
2106
|
-
fillColorWordDarkMode: "cyan",
|
|
2107
|
-
textColorWordDarkMode: "cyan",
|
|
2108
|
-
highContrastColorWordDarkMode: "cyan",
|
|
2109
1968
|
lineWidth: 2,
|
|
2110
1969
|
markerStyle: "diamond"
|
|
2111
1970
|
},
|
|
@@ -2124,11 +1983,6 @@ const grumpyNarwhalPalette$1 = {
|
|
|
2124
1983
|
markerColorDarkMode: "#ffea00",
|
|
2125
1984
|
fillColorDarkMode: "#ffea00",
|
|
2126
1985
|
textColorDarkMode: "#ffea00",
|
|
2127
|
-
lineColorWordDarkMode: "yellow",
|
|
2128
|
-
markerColorWordDarkMode: "yellow",
|
|
2129
|
-
fillColorWordDarkMode: "yellow",
|
|
2130
|
-
textColorWordDarkMode: "yellow",
|
|
2131
|
-
highContrastColorWordDarkMode: "yellow",
|
|
2132
1986
|
lineWidth: 2,
|
|
2133
1987
|
markerStyle: "triangleDown"
|
|
2134
1988
|
},
|
|
@@ -2142,21 +1996,11 @@ const grumpyNarwhalPalette$1 = {
|
|
|
2142
1996
|
fillColor: "#b026ff",
|
|
2143
1997
|
textColor: "#b026ff",
|
|
2144
1998
|
highContrastColor: "#b026ff",
|
|
2145
|
-
lineColorWord: "purple",
|
|
2146
|
-
markerColorWord: "purple",
|
|
2147
|
-
fillColorWord: "purple",
|
|
2148
|
-
textColorWord: "purple",
|
|
2149
|
-
highContrastColorWord: "purple",
|
|
2150
1999
|
lineColorDarkMode: "#b026ff",
|
|
2151
2000
|
markerColorDarkMode: "#b026ff",
|
|
2152
2001
|
fillColorDarkMode: "#b026ff",
|
|
2153
2002
|
textColorDarkMode: "#b445ff",
|
|
2154
2003
|
highContrastColorDarkMode: "#b445ff",
|
|
2155
|
-
lineColorWordDarkMode: "purple",
|
|
2156
|
-
markerColorWordDarkMode: "purple",
|
|
2157
|
-
fillColorWordDarkMode: "purple",
|
|
2158
|
-
textColorWordDarkMode: "purple",
|
|
2159
|
-
highContrastColorWordDarkMode: "purple",
|
|
2160
2004
|
lineWidth: 2,
|
|
2161
2005
|
markerStyle: "triangleLeft"
|
|
2162
2006
|
}
|
|
@@ -2174,175 +2018,44 @@ function deepFreezePalette$1(palette) {
|
|
|
2174
2018
|
Object.freeze(palette.styles);
|
|
2175
2019
|
return Object.freeze(palette);
|
|
2176
2020
|
}
|
|
2021
|
+
function registerByKey$1(palette) {
|
|
2022
|
+
return [palette.name.toLowerCase(), deepFreezePalette$1(palette)];
|
|
2023
|
+
}
|
|
2177
2024
|
const STYLE_PALETTES$1 = Object.assign(
|
|
2178
2025
|
/* @__PURE__ */ Object.create(null),
|
|
2179
|
-
|
|
2180
|
-
[
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
tolHighContrastPalette$1
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2026
|
+
Object.fromEntries(
|
|
2027
|
+
[
|
|
2028
|
+
defaultPalette$1,
|
|
2029
|
+
okabeItoPalette$1,
|
|
2030
|
+
tolBrightPalette$1,
|
|
2031
|
+
tolMutedPalette$1,
|
|
2032
|
+
tolHighContrastPalette$1,
|
|
2033
|
+
ibmPalette$1,
|
|
2034
|
+
grayscalePalette$1,
|
|
2035
|
+
categoricalPalette$1,
|
|
2036
|
+
grumpyNarwhalPalette$1
|
|
2037
|
+
].map(registerByKey$1)
|
|
2038
|
+
)
|
|
2192
2039
|
);
|
|
2193
2040
|
Object.freeze(STYLE_PALETTES$1);
|
|
2194
|
-
defaultPalette$1.name;
|
|
2041
|
+
defaultPalette$1.name.toLowerCase();
|
|
2195
2042
|
Object.freeze(
|
|
2196
2043
|
Object.keys(STYLE_PALETTES$1)
|
|
2197
2044
|
);
|
|
2198
|
-
var
|
|
2199
|
-
return "string" == typeof r2 ? r2.length > 0 : "number" == typeof r2;
|
|
2200
|
-
}, n$1 = function(r2, t23, n2) {
|
|
2201
|
-
return void 0 === t23 && (t23 = 0), void 0 === n2 && (n2 = Math.pow(10, t23)), Math.round(n2 * r2) / n2 + 0;
|
|
2202
|
-
}, e$3 = function(r2, t23, n2) {
|
|
2203
|
-
return void 0 === t23 && (t23 = 0), void 0 === n2 && (n2 = 1), r2 > n2 ? n2 : r2 > t23 ? r2 : t23;
|
|
2204
|
-
}, u$1 = function(r2) {
|
|
2205
|
-
return (r2 = isFinite(r2) ? r2 % 360 : 0) > 0 ? r2 : r2 + 360;
|
|
2206
|
-
}, a$1 = function(r2) {
|
|
2207
|
-
return { r: e$3(r2.r, 0, 255), g: e$3(r2.g, 0, 255), b: e$3(r2.b, 0, 255), a: e$3(r2.a) };
|
|
2208
|
-
}, o$1$1 = function(r2) {
|
|
2209
|
-
return { r: n$1(r2.r), g: n$1(r2.g), b: n$1(r2.b), a: n$1(r2.a, 3) };
|
|
2210
|
-
}, i$1 = /^#([0-9a-f]{3,8})$/i, s$1 = function(r2) {
|
|
2211
|
-
var t23 = r2.toString(16);
|
|
2212
|
-
return t23.length < 2 ? "0" + t23 : t23;
|
|
2213
|
-
}, h$1 = function(r2) {
|
|
2214
|
-
var t23 = r2.r, n2 = r2.g, e2 = r2.b, u2 = r2.a, a2 = Math.max(t23, n2, e2), o2 = a2 - Math.min(t23, n2, e2), i2 = o2 ? a2 === t23 ? (n2 - e2) / o2 : a2 === n2 ? 2 + (e2 - t23) / o2 : 4 + (t23 - n2) / o2 : 0;
|
|
2215
|
-
return { h: 60 * (i2 < 0 ? i2 + 6 : i2), s: a2 ? o2 / a2 * 100 : 0, v: a2 / 255 * 100, a: u2 };
|
|
2216
|
-
}, b$1 = function(r2) {
|
|
2217
|
-
var t23 = r2.h, n2 = r2.s, e2 = r2.v, u2 = r2.a;
|
|
2218
|
-
t23 = t23 / 360 * 6, n2 /= 100, e2 /= 100;
|
|
2219
|
-
var a2 = Math.floor(t23), o2 = e2 * (1 - n2), i2 = e2 * (1 - (t23 - a2) * n2), s2 = e2 * (1 - (1 - t23 + a2) * n2), h2 = a2 % 6;
|
|
2220
|
-
return { r: 255 * [e2, i2, o2, o2, s2, e2][h2], g: 255 * [s2, e2, e2, i2, o2, o2][h2], b: 255 * [o2, o2, s2, e2, e2, i2][h2], a: u2 };
|
|
2221
|
-
}, g$1 = function(r2) {
|
|
2222
|
-
return { h: u$1(r2.h), s: e$3(r2.s, 0, 100), l: e$3(r2.l, 0, 100), a: e$3(r2.a) };
|
|
2223
|
-
}, d$1 = function(r2) {
|
|
2224
|
-
return { h: n$1(r2.h), s: n$1(r2.s), l: n$1(r2.l), a: n$1(r2.a, 3) };
|
|
2225
|
-
}, f$3 = function(r2) {
|
|
2226
|
-
return b$1((n2 = (t23 = r2).s, { h: t23.h, s: (n2 *= ((e2 = t23.l) < 50 ? e2 : 100 - e2) / 100) > 0 ? 2 * n2 / (e2 + n2) * 100 : 0, v: e2 + n2, a: t23.a }));
|
|
2227
|
-
var t23, n2, e2;
|
|
2228
|
-
}, c$1 = function(r2) {
|
|
2229
|
-
return { h: (t23 = h$1(r2)).h, s: (u2 = (200 - (n2 = t23.s)) * (e2 = t23.v) / 100) > 0 && u2 < 200 ? n2 * e2 / 100 / (u2 <= 100 ? u2 : 200 - u2) * 100 : 0, l: u2 / 2, a: t23.a };
|
|
2230
|
-
var t23, n2, e2, u2;
|
|
2231
|
-
}, l$1 = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, p$1 = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, v$1 = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, m$1 = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, y$1 = { string: [[function(r2) {
|
|
2232
|
-
var t23 = i$1.exec(r2);
|
|
2233
|
-
return t23 ? (r2 = t23[1]).length <= 4 ? { r: parseInt(r2[0] + r2[0], 16), g: parseInt(r2[1] + r2[1], 16), b: parseInt(r2[2] + r2[2], 16), a: 4 === r2.length ? n$1(parseInt(r2[3] + r2[3], 16) / 255, 2) : 1 } : 6 === r2.length || 8 === r2.length ? { r: parseInt(r2.substr(0, 2), 16), g: parseInt(r2.substr(2, 2), 16), b: parseInt(r2.substr(4, 2), 16), a: 8 === r2.length ? n$1(parseInt(r2.substr(6, 2), 16) / 255, 2) : 1 } : null : null;
|
|
2234
|
-
}, "hex"], [function(r2) {
|
|
2235
|
-
var t23 = v$1.exec(r2) || m$1.exec(r2);
|
|
2236
|
-
return t23 ? t23[2] !== t23[4] || t23[4] !== t23[6] ? null : a$1({ r: Number(t23[1]) / (t23[2] ? 100 / 255 : 1), g: Number(t23[3]) / (t23[4] ? 100 / 255 : 1), b: Number(t23[5]) / (t23[6] ? 100 / 255 : 1), a: void 0 === t23[7] ? 1 : Number(t23[7]) / (t23[8] ? 100 : 1) }) : null;
|
|
2237
|
-
}, "rgb"], [function(t23) {
|
|
2238
|
-
var n2 = l$1.exec(t23) || p$1.exec(t23);
|
|
2239
|
-
if (!n2) return null;
|
|
2240
|
-
var e2, u2, a2 = g$1({ h: (e2 = n2[1], u2 = n2[2], void 0 === u2 && (u2 = "deg"), Number(e2) * (r$1[u2] || 1)), s: Number(n2[3]), l: Number(n2[4]), a: void 0 === n2[5] ? 1 : Number(n2[5]) / (n2[6] ? 100 : 1) });
|
|
2241
|
-
return f$3(a2);
|
|
2242
|
-
}, "hsl"]], object: [[function(r2) {
|
|
2243
|
-
var n2 = r2.r, e2 = r2.g, u2 = r2.b, o2 = r2.a, i2 = void 0 === o2 ? 1 : o2;
|
|
2244
|
-
return t$1$1(n2) && t$1$1(e2) && t$1$1(u2) ? a$1({ r: Number(n2), g: Number(e2), b: Number(u2), a: Number(i2) }) : null;
|
|
2245
|
-
}, "rgb"], [function(r2) {
|
|
2246
|
-
var n2 = r2.h, e2 = r2.s, u2 = r2.l, a2 = r2.a, o2 = void 0 === a2 ? 1 : a2;
|
|
2247
|
-
if (!t$1$1(n2) || !t$1$1(e2) || !t$1$1(u2)) return null;
|
|
2248
|
-
var i2 = g$1({ h: Number(n2), s: Number(e2), l: Number(u2), a: Number(o2) });
|
|
2249
|
-
return f$3(i2);
|
|
2250
|
-
}, "hsl"], [function(r2) {
|
|
2251
|
-
var n2 = r2.h, a2 = r2.s, o2 = r2.v, i2 = r2.a, s2 = void 0 === i2 ? 1 : i2;
|
|
2252
|
-
if (!t$1$1(n2) || !t$1$1(a2) || !t$1$1(o2)) return null;
|
|
2253
|
-
var h2 = (function(r3) {
|
|
2254
|
-
return { h: u$1(r3.h), s: e$3(r3.s, 0, 100), v: e$3(r3.v, 0, 100), a: e$3(r3.a) };
|
|
2255
|
-
})({ h: Number(n2), s: Number(a2), v: Number(o2), a: Number(s2) });
|
|
2256
|
-
return b$1(h2);
|
|
2257
|
-
}, "hsv"]] }, N$1 = function(r2, t23) {
|
|
2258
|
-
for (var n2 = 0; n2 < t23.length; n2++) {
|
|
2259
|
-
var e2 = t23[n2][0](r2);
|
|
2260
|
-
if (e2) return [e2, t23[n2][1]];
|
|
2261
|
-
}
|
|
2262
|
-
return [null, void 0];
|
|
2263
|
-
}, x$1 = function(r2) {
|
|
2264
|
-
return "string" == typeof r2 ? N$1(r2.trim(), y$1.string) : "object" == typeof r2 && null !== r2 ? N$1(r2, y$1.object) : [null, void 0];
|
|
2265
|
-
}, M$1 = function(r2, t23) {
|
|
2266
|
-
var n2 = c$1(r2);
|
|
2267
|
-
return { h: n2.h, s: e$3(n2.s + 100 * t23, 0, 100), l: n2.l, a: n2.a };
|
|
2268
|
-
}, H$1 = function(r2) {
|
|
2269
|
-
return (299 * r2.r + 587 * r2.g + 114 * r2.b) / 1e3 / 255;
|
|
2270
|
-
}, $$1 = function(r2, t23) {
|
|
2271
|
-
var n2 = c$1(r2);
|
|
2272
|
-
return { h: n2.h, s: n2.s, l: e$3(n2.l + 100 * t23, 0, 100), a: n2.a };
|
|
2273
|
-
}, j$1 = (function() {
|
|
2274
|
-
function r2(r3) {
|
|
2275
|
-
this.parsed = x$1(r3)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
|
|
2276
|
-
}
|
|
2277
|
-
return r2.prototype.isValid = function() {
|
|
2278
|
-
return null !== this.parsed;
|
|
2279
|
-
}, r2.prototype.brightness = function() {
|
|
2280
|
-
return n$1(H$1(this.rgba), 2);
|
|
2281
|
-
}, r2.prototype.isDark = function() {
|
|
2282
|
-
return H$1(this.rgba) < 0.5;
|
|
2283
|
-
}, r2.prototype.isLight = function() {
|
|
2284
|
-
return H$1(this.rgba) >= 0.5;
|
|
2285
|
-
}, r2.prototype.toHex = function() {
|
|
2286
|
-
return r3 = o$1$1(this.rgba), t23 = r3.r, e2 = r3.g, u2 = r3.b, i2 = (a2 = r3.a) < 1 ? s$1(n$1(255 * a2)) : "", "#" + s$1(t23) + s$1(e2) + s$1(u2) + i2;
|
|
2287
|
-
var r3, t23, e2, u2, a2, i2;
|
|
2288
|
-
}, r2.prototype.toRgb = function() {
|
|
2289
|
-
return o$1$1(this.rgba);
|
|
2290
|
-
}, r2.prototype.toRgbString = function() {
|
|
2291
|
-
return r3 = o$1$1(this.rgba), t23 = r3.r, n2 = r3.g, e2 = r3.b, (u2 = r3.a) < 1 ? "rgba(" + t23 + ", " + n2 + ", " + e2 + ", " + u2 + ")" : "rgb(" + t23 + ", " + n2 + ", " + e2 + ")";
|
|
2292
|
-
var r3, t23, n2, e2, u2;
|
|
2293
|
-
}, r2.prototype.toHsl = function() {
|
|
2294
|
-
return d$1(c$1(this.rgba));
|
|
2295
|
-
}, r2.prototype.toHslString = function() {
|
|
2296
|
-
return r3 = d$1(c$1(this.rgba)), t23 = r3.h, n2 = r3.s, e2 = r3.l, (u2 = r3.a) < 1 ? "hsla(" + t23 + ", " + n2 + "%, " + e2 + "%, " + u2 + ")" : "hsl(" + t23 + ", " + n2 + "%, " + e2 + "%)";
|
|
2297
|
-
var r3, t23, n2, e2, u2;
|
|
2298
|
-
}, r2.prototype.toHsv = function() {
|
|
2299
|
-
return r3 = h$1(this.rgba), { h: n$1(r3.h), s: n$1(r3.s), v: n$1(r3.v), a: n$1(r3.a, 3) };
|
|
2300
|
-
var r3;
|
|
2301
|
-
}, r2.prototype.invert = function() {
|
|
2302
|
-
return w$1({ r: 255 - (r3 = this.rgba).r, g: 255 - r3.g, b: 255 - r3.b, a: r3.a });
|
|
2303
|
-
var r3;
|
|
2304
|
-
}, r2.prototype.saturate = function(r3) {
|
|
2305
|
-
return void 0 === r3 && (r3 = 0.1), w$1(M$1(this.rgba, r3));
|
|
2306
|
-
}, r2.prototype.desaturate = function(r3) {
|
|
2307
|
-
return void 0 === r3 && (r3 = 0.1), w$1(M$1(this.rgba, -r3));
|
|
2308
|
-
}, r2.prototype.grayscale = function() {
|
|
2309
|
-
return w$1(M$1(this.rgba, -1));
|
|
2310
|
-
}, r2.prototype.lighten = function(r3) {
|
|
2311
|
-
return void 0 === r3 && (r3 = 0.1), w$1($$1(this.rgba, r3));
|
|
2312
|
-
}, r2.prototype.darken = function(r3) {
|
|
2313
|
-
return void 0 === r3 && (r3 = 0.1), w$1($$1(this.rgba, -r3));
|
|
2314
|
-
}, r2.prototype.rotate = function(r3) {
|
|
2315
|
-
return void 0 === r3 && (r3 = 15), this.hue(this.hue() + r3);
|
|
2316
|
-
}, r2.prototype.alpha = function(r3) {
|
|
2317
|
-
return "number" == typeof r3 ? w$1({ r: (t23 = this.rgba).r, g: t23.g, b: t23.b, a: r3 }) : n$1(this.rgba.a, 3);
|
|
2318
|
-
var t23;
|
|
2319
|
-
}, r2.prototype.hue = function(r3) {
|
|
2320
|
-
var t23 = c$1(this.rgba);
|
|
2321
|
-
return "number" == typeof r3 ? w$1({ h: r3, s: t23.s, l: t23.l, a: t23.a }) : n$1(t23.h);
|
|
2322
|
-
}, r2.prototype.isEqual = function(r3) {
|
|
2323
|
-
return this.toHex() === w$1(r3).toHex();
|
|
2324
|
-
}, r2;
|
|
2325
|
-
})(), w$1 = function(r2) {
|
|
2326
|
-
return r2 instanceof j$1 ? r2 : new j$1(r2);
|
|
2327
|
-
}, S$1 = [], k$1 = function(r2) {
|
|
2328
|
-
r2.forEach(function(r3) {
|
|
2329
|
-
S$1.indexOf(r3) < 0 && (r3(j$1, y$1), S$1.push(r3));
|
|
2330
|
-
});
|
|
2331
|
-
};
|
|
2332
|
-
var o$2 = function(o2) {
|
|
2045
|
+
var o$4 = function(o2) {
|
|
2333
2046
|
var t23 = o2 / 255;
|
|
2334
2047
|
return t23 < 0.04045 ? t23 / 12.92 : Math.pow((t23 + 0.055) / 1.055, 2.4);
|
|
2335
|
-
}, t$
|
|
2336
|
-
return 0.2126 * o$
|
|
2048
|
+
}, t$4 = function(t23) {
|
|
2049
|
+
return 0.2126 * o$4(t23.r) + 0.7152 * o$4(t23.g) + 0.0722 * o$4(t23.b);
|
|
2337
2050
|
};
|
|
2338
2051
|
function a11yPlugin$1(o2) {
|
|
2339
2052
|
o2.prototype.luminance = function() {
|
|
2340
|
-
return o3 = t$
|
|
2053
|
+
return o3 = t$4(this.rgba), void 0 === (r2 = 2) && (r2 = 0), void 0 === n2 && (n2 = Math.pow(10, r2)), Math.round(n2 * o3) / n2 + 0;
|
|
2341
2054
|
var o3, r2, n2;
|
|
2342
2055
|
}, o2.prototype.contrast = function(r2) {
|
|
2343
2056
|
void 0 === r2 && (r2 = "#FFF");
|
|
2344
2057
|
var n2, a2, i2, e2, v2, u2, d2, c2 = r2 instanceof o2 ? r2 : new o2(r2);
|
|
2345
|
-
return e2 = this.rgba, v2 = c2.toRgb(), u2 = t$
|
|
2058
|
+
return e2 = this.rgba, v2 = c2.toRgb(), u2 = t$4(e2), d2 = t$4(v2), n2 = u2 > d2 ? (u2 + 0.05) / (d2 + 0.05) : (d2 + 0.05) / (u2 + 0.05), void 0 === (a2 = 2) && (a2 = 0), void 0 === i2 && (i2 = Math.pow(10, a2)), Math.floor(i2 * n2) / i2 + 0;
|
|
2346
2059
|
}, o2.prototype.isReadable = function(o3, t23) {
|
|
2347
2060
|
return void 0 === o3 && (o3 = "#FFF"), void 0 === t23 && (t23 = {}), this.contrast(o3) >= (e2 = void 0 === (i2 = (r2 = t23).size) ? "normal" : i2, "AAA" === (a2 = void 0 === (n2 = r2.level) ? "AA" : n2) && "normal" === e2 ? 7 : "AA" === a2 && "large" === e2 ? 3 : 4.5);
|
|
2348
2061
|
var r2, n2, a2, i2, e2;
|
|
@@ -6235,7 +5948,7 @@ function combinationsNumber$1(t4, n2) {
|
|
|
6235
5948
|
return o2 <= s2 && (i2 /= product$2(o2, s2)), i2;
|
|
6236
5949
|
}
|
|
6237
5950
|
combinationsNumber$1.signature = `number, number`;
|
|
6238
|
-
var pi$1 = Math.PI, tau$1 = 2 * Math.PI, e$
|
|
5951
|
+
var pi$1 = Math.PI, tau$1 = 2 * Math.PI, e$4 = Math.E, phi$1 = 1.618033988749895, n1$2$1 = `number`, n2$1$1 = `number, number`;
|
|
6239
5952
|
function notNumber$1(t4) {
|
|
6240
5953
|
return !t4;
|
|
6241
5954
|
}
|
|
@@ -16394,7 +16107,7 @@ var name$39$1 = `simplifyUtil`, dependencies$39$1 = [`FunctionNode`, `OperatorNo
|
|
|
16394
16107
|
return n2.number === `BigNumber` ? createBigNumberTau$1(r2) : tau$1;
|
|
16395
16108
|
}), createE$1 = recreateFactory$1(`e`, [`config`, `?BigNumber`], (t4) => {
|
|
16396
16109
|
var { config: n2, BigNumber: r2 } = t4;
|
|
16397
|
-
return n2.number === `BigNumber` ? createBigNumberE$1(r2) : e$
|
|
16110
|
+
return n2.number === `BigNumber` ? createBigNumberE$1(r2) : e$4;
|
|
16398
16111
|
}), createPhi$1 = recreateFactory$1(`phi`, [`config`, `?BigNumber`], (t4) => {
|
|
16399
16112
|
var { config: n2, BigNumber: r2 } = t4;
|
|
16400
16113
|
return n2.number === `BigNumber` ? createBigNumberPhi$1(r2) : phi$1;
|
|
@@ -21571,11 +21284,11 @@ var astToFiniteField$1$1 = class astToFiniteField$12 {
|
|
|
21571
21284
|
convert(t4, n2, r2 = PRIME$1) {
|
|
21572
21285
|
return finite_field_evaluate_ast$1(t4, n2, r2);
|
|
21573
21286
|
}
|
|
21574
|
-
}, evaluation_exports$1 = __exportAll$1({ evaluate: () => evaluate$2, evaluate_to_constant: () => evaluate_to_constant$1, f: () => f$
|
|
21287
|
+
}, evaluation_exports$1 = __exportAll$1({ evaluate: () => evaluate$2, evaluate_to_constant: () => evaluate_to_constant$1, f: () => f$3, finite_field_evaluate: () => finite_field_evaluate$1 }), astToMathjs$1$1 = new astToMathjs$2$1({ mathjs: mathjs_default$1 }), astToFiniteField$2 = new astToFiniteField$1$1(), f$3 = function(t4) {
|
|
21575
21288
|
var n2 = get_tree$1(t4), r2 = factorial_to_gamma_function$1(astToMathjs$1$1.convert(log_subscript_to_two_arg_log$1(normalize_function_names$1(normalize_applied_functions$1(n2)))));
|
|
21576
21289
|
return r2.evaluate.bind(r2);
|
|
21577
21290
|
}, evaluate$2 = function(t4, n2) {
|
|
21578
|
-
return f$
|
|
21291
|
+
return f$3(t4)(n2);
|
|
21579
21292
|
}, finite_field_evaluate$1 = function(t4, n2, r2) {
|
|
21580
21293
|
return astToFiniteField$2.convert(t4.tree, n2, r2);
|
|
21581
21294
|
}, evaluate_to_constant$1 = function(t4, { remove_units_first: n2 = true, scale_based_on_unit: r2 = true, nan_for_non_numeric: i2 = true } = {}) {
|
|
@@ -21587,7 +21300,7 @@ var astToFiniteField$1$1 = class astToFiniteField$12 {
|
|
|
21587
21300
|
o2.push([[`^`, `x`, [`/`, `m`, `n`]], [`^`, [`apply`, `nthRoot`, [`tuple`, `x`, `n`]], `m`], { variables: { x: (t5) => t5 < 0, n: (t5) => Number.isInteger(t5) && Number.isInteger((t5 - 1) / 2), m: (t5) => Number.isInteger(t5) } }]), o2.push([[`^`, `x`, [`-`, [`/`, `m`, `n`]]], [`^`, [`apply`, `nthRoot`, [`tuple`, `x`, `n`]], [`-`, `m`]], { variables: { x: (t5) => t5 < 0, n: (t5) => Number.isInteger(t5) && Number.isInteger((t5 - 1) / 2), m: (t5) => Number.isInteger(t5) } }]), a2 = applyAllTransformations$1(a2, o2, 40);
|
|
21588
21301
|
var s2 = i2 ? NaN : null;
|
|
21589
21302
|
try {
|
|
21590
|
-
var c2 = f$
|
|
21303
|
+
var c2 = f$3(a2);
|
|
21591
21304
|
s2 = c2();
|
|
21592
21305
|
} catch {
|
|
21593
21306
|
}
|
|
@@ -21602,7 +21315,7 @@ var astToFiniteField$1$1 = class astToFiniteField$12 {
|
|
|
21602
21315
|
else t5 = s2;
|
|
21603
21316
|
s2 = i2 ? NaN : null;
|
|
21604
21317
|
try {
|
|
21605
|
-
var c2 = f$
|
|
21318
|
+
var c2 = f$3(t5);
|
|
21606
21319
|
s2 = c2();
|
|
21607
21320
|
} catch {
|
|
21608
21321
|
}
|
|
@@ -39662,178 +39375,246 @@ function requireColorName() {
|
|
|
39662
39375
|
}
|
|
39663
39376
|
var colorNameExports = requireColorName();
|
|
39664
39377
|
const colorName = /* @__PURE__ */ getDefaultExportFromCjs(colorNameExports);
|
|
39665
|
-
var
|
|
39666
|
-
|
|
39667
|
-
|
|
39668
|
-
|
|
39669
|
-
|
|
39670
|
-
|
|
39671
|
-
|
|
39672
|
-
|
|
39673
|
-
|
|
39674
|
-
|
|
39675
|
-
|
|
39676
|
-
|
|
39677
|
-
|
|
39678
|
-
|
|
39679
|
-
|
|
39680
|
-
|
|
39681
|
-
|
|
39682
|
-
|
|
39683
|
-
|
|
39684
|
-
|
|
39685
|
-
|
|
39686
|
-
|
|
39687
|
-
|
|
39688
|
-
|
|
39689
|
-
|
|
39690
|
-
|
|
39691
|
-
|
|
39692
|
-
|
|
39693
|
-
|
|
39694
|
-
|
|
39695
|
-
|
|
39696
|
-
|
|
39697
|
-
|
|
39698
|
-
|
|
39699
|
-
|
|
39700
|
-
|
|
39701
|
-
|
|
39702
|
-
|
|
39703
|
-
|
|
39704
|
-
|
|
39705
|
-
|
|
39706
|
-
|
|
39707
|
-
|
|
39708
|
-
|
|
39709
|
-
|
|
39710
|
-
|
|
39711
|
-
|
|
39712
|
-
|
|
39713
|
-
|
|
39714
|
-
|
|
39715
|
-
|
|
39716
|
-
|
|
39717
|
-
|
|
39718
|
-
|
|
39719
|
-
|
|
39720
|
-
|
|
39721
|
-
|
|
39722
|
-
|
|
39723
|
-
|
|
39724
|
-
|
|
39725
|
-
|
|
39726
|
-
|
|
39727
|
-
|
|
39728
|
-
|
|
39729
|
-
|
|
39730
|
-
|
|
39731
|
-
|
|
39732
|
-
|
|
39733
|
-
|
|
39734
|
-
|
|
39735
|
-
|
|
39736
|
-
|
|
39737
|
-
|
|
39738
|
-
|
|
39739
|
-
|
|
39740
|
-
|
|
39741
|
-
|
|
39742
|
-
|
|
39743
|
-
|
|
39744
|
-
|
|
39745
|
-
|
|
39746
|
-
|
|
39747
|
-
|
|
39748
|
-
|
|
39749
|
-
|
|
39750
|
-
|
|
39751
|
-
|
|
39752
|
-
|
|
39753
|
-
|
|
39754
|
-
|
|
39755
|
-
|
|
39756
|
-
|
|
39757
|
-
|
|
39758
|
-
|
|
39759
|
-
|
|
39760
|
-
|
|
39761
|
-
|
|
39762
|
-
|
|
39763
|
-
|
|
39764
|
-
|
|
39765
|
-
|
|
39766
|
-
|
|
39767
|
-
|
|
39768
|
-
|
|
39769
|
-
|
|
39770
|
-
|
|
39771
|
-
|
|
39772
|
-
|
|
39773
|
-
|
|
39774
|
-
|
|
39775
|
-
|
|
39776
|
-
|
|
39777
|
-
|
|
39778
|
-
|
|
39779
|
-
|
|
39780
|
-
|
|
39781
|
-
|
|
39782
|
-
|
|
39783
|
-
|
|
39784
|
-
|
|
39785
|
-
|
|
39786
|
-
|
|
39787
|
-
|
|
39788
|
-
|
|
39789
|
-
|
|
39790
|
-
|
|
39791
|
-
|
|
39792
|
-
|
|
39793
|
-
|
|
39794
|
-
|
|
39795
|
-
|
|
39796
|
-
|
|
39797
|
-
|
|
39798
|
-
|
|
39799
|
-
|
|
39800
|
-
|
|
39801
|
-
|
|
39802
|
-
|
|
39803
|
-
|
|
39804
|
-
|
|
39805
|
-
|
|
39806
|
-
|
|
39807
|
-
|
|
39808
|
-
|
|
39809
|
-
|
|
39810
|
-
|
|
39811
|
-
|
|
39812
|
-
|
|
39813
|
-
|
|
39814
|
-
|
|
39815
|
-
|
|
39816
|
-
|
|
39817
|
-
|
|
39818
|
-
|
|
39819
|
-
|
|
39820
|
-
|
|
39821
|
-
|
|
39822
|
-
|
|
39823
|
-
|
|
39824
|
-
|
|
39825
|
-
|
|
39826
|
-
|
|
39827
|
-
|
|
39828
|
-
|
|
39829
|
-
|
|
39830
|
-
|
|
39831
|
-
|
|
39832
|
-
|
|
39833
|
-
|
|
39378
|
+
var r$2 = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, t$3 = function(r2) {
|
|
39379
|
+
return "string" == typeof r2 ? r2.length > 0 : "number" == typeof r2;
|
|
39380
|
+
}, n$2 = function(r2, t222, n2) {
|
|
39381
|
+
return void 0 === t222 && (t222 = 0), void 0 === n2 && (n2 = Math.pow(10, t222)), Math.round(n2 * r2) / n2 + 0;
|
|
39382
|
+
}, e$2 = function(r2, t222, n2) {
|
|
39383
|
+
return void 0 === t222 && (t222 = 0), void 0 === n2 && (n2 = 1), r2 > n2 ? n2 : r2 > t222 ? r2 : t222;
|
|
39384
|
+
}, u$2 = function(r2) {
|
|
39385
|
+
return (r2 = isFinite(r2) ? r2 % 360 : 0) > 0 ? r2 : r2 + 360;
|
|
39386
|
+
}, a$2 = function(r2) {
|
|
39387
|
+
return { r: e$2(r2.r, 0, 255), g: e$2(r2.g, 0, 255), b: e$2(r2.b, 0, 255), a: e$2(r2.a) };
|
|
39388
|
+
}, o$3 = function(r2) {
|
|
39389
|
+
return { r: n$2(r2.r), g: n$2(r2.g), b: n$2(r2.b), a: n$2(r2.a, 3) };
|
|
39390
|
+
}, i$2 = /^#([0-9a-f]{3,8})$/i, s$1 = function(r2) {
|
|
39391
|
+
var t222 = r2.toString(16);
|
|
39392
|
+
return t222.length < 2 ? "0" + t222 : t222;
|
|
39393
|
+
}, h$2 = function(r2) {
|
|
39394
|
+
var t222 = r2.r, n2 = r2.g, e2 = r2.b, u2 = r2.a, a2 = Math.max(t222, n2, e2), o2 = a2 - Math.min(t222, n2, e2), i2 = o2 ? a2 === t222 ? (n2 - e2) / o2 : a2 === n2 ? 2 + (e2 - t222) / o2 : 4 + (t222 - n2) / o2 : 0;
|
|
39395
|
+
return { h: 60 * (i2 < 0 ? i2 + 6 : i2), s: a2 ? o2 / a2 * 100 : 0, v: a2 / 255 * 100, a: u2 };
|
|
39396
|
+
}, b$2 = function(r2) {
|
|
39397
|
+
var t222 = r2.h, n2 = r2.s, e2 = r2.v, u2 = r2.a;
|
|
39398
|
+
t222 = t222 / 360 * 6, n2 /= 100, e2 /= 100;
|
|
39399
|
+
var a2 = Math.floor(t222), o2 = e2 * (1 - n2), i2 = e2 * (1 - (t222 - a2) * n2), s2 = e2 * (1 - (1 - t222 + a2) * n2), h2 = a2 % 6;
|
|
39400
|
+
return { r: 255 * [e2, i2, o2, o2, s2, e2][h2], g: 255 * [s2, e2, e2, i2, o2, o2][h2], b: 255 * [o2, o2, s2, e2, e2, i2][h2], a: u2 };
|
|
39401
|
+
}, g = function(r2) {
|
|
39402
|
+
return { h: u$2(r2.h), s: e$2(r2.s, 0, 100), l: e$2(r2.l, 0, 100), a: e$2(r2.a) };
|
|
39403
|
+
}, d$1 = function(r2) {
|
|
39404
|
+
return { h: n$2(r2.h), s: n$2(r2.s), l: n$2(r2.l), a: n$2(r2.a, 3) };
|
|
39405
|
+
}, f$1 = function(r2) {
|
|
39406
|
+
return b$2((n2 = (t222 = r2).s, { h: t222.h, s: (n2 *= ((e2 = t222.l) < 50 ? e2 : 100 - e2) / 100) > 0 ? 2 * n2 / (e2 + n2) * 100 : 0, v: e2 + n2, a: t222.a }));
|
|
39407
|
+
var t222, n2, e2;
|
|
39408
|
+
}, c$1 = function(r2) {
|
|
39409
|
+
return { h: (t222 = h$2(r2)).h, s: (u2 = (200 - (n2 = t222.s)) * (e2 = t222.v) / 100) > 0 && u2 < 200 ? n2 * e2 / 100 / (u2 <= 100 ? u2 : 200 - u2) * 100 : 0, l: u2 / 2, a: t222.a };
|
|
39410
|
+
var t222, n2, e2, u2;
|
|
39411
|
+
}, l$2 = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, p$2 = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, v$1 = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, m = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, y$1 = { string: [[function(r2) {
|
|
39412
|
+
var t222 = i$2.exec(r2);
|
|
39413
|
+
return t222 ? (r2 = t222[1]).length <= 4 ? { r: parseInt(r2[0] + r2[0], 16), g: parseInt(r2[1] + r2[1], 16), b: parseInt(r2[2] + r2[2], 16), a: 4 === r2.length ? n$2(parseInt(r2[3] + r2[3], 16) / 255, 2) : 1 } : 6 === r2.length || 8 === r2.length ? { r: parseInt(r2.substr(0, 2), 16), g: parseInt(r2.substr(2, 2), 16), b: parseInt(r2.substr(4, 2), 16), a: 8 === r2.length ? n$2(parseInt(r2.substr(6, 2), 16) / 255, 2) : 1 } : null : null;
|
|
39414
|
+
}, "hex"], [function(r2) {
|
|
39415
|
+
var t222 = v$1.exec(r2) || m.exec(r2);
|
|
39416
|
+
return t222 ? t222[2] !== t222[4] || t222[4] !== t222[6] ? null : a$2({ r: Number(t222[1]) / (t222[2] ? 100 / 255 : 1), g: Number(t222[3]) / (t222[4] ? 100 / 255 : 1), b: Number(t222[5]) / (t222[6] ? 100 / 255 : 1), a: void 0 === t222[7] ? 1 : Number(t222[7]) / (t222[8] ? 100 : 1) }) : null;
|
|
39417
|
+
}, "rgb"], [function(t222) {
|
|
39418
|
+
var n2 = l$2.exec(t222) || p$2.exec(t222);
|
|
39419
|
+
if (!n2) return null;
|
|
39420
|
+
var e2, u2, a2 = g({ h: (e2 = n2[1], u2 = n2[2], void 0 === u2 && (u2 = "deg"), Number(e2) * (r$2[u2] || 1)), s: Number(n2[3]), l: Number(n2[4]), a: void 0 === n2[5] ? 1 : Number(n2[5]) / (n2[6] ? 100 : 1) });
|
|
39421
|
+
return f$1(a2);
|
|
39422
|
+
}, "hsl"]], object: [[function(r2) {
|
|
39423
|
+
var n2 = r2.r, e2 = r2.g, u2 = r2.b, o2 = r2.a, i2 = void 0 === o2 ? 1 : o2;
|
|
39424
|
+
return t$3(n2) && t$3(e2) && t$3(u2) ? a$2({ r: Number(n2), g: Number(e2), b: Number(u2), a: Number(i2) }) : null;
|
|
39425
|
+
}, "rgb"], [function(r2) {
|
|
39426
|
+
var n2 = r2.h, e2 = r2.s, u2 = r2.l, a2 = r2.a, o2 = void 0 === a2 ? 1 : a2;
|
|
39427
|
+
if (!t$3(n2) || !t$3(e2) || !t$3(u2)) return null;
|
|
39428
|
+
var i2 = g({ h: Number(n2), s: Number(e2), l: Number(u2), a: Number(o2) });
|
|
39429
|
+
return f$1(i2);
|
|
39430
|
+
}, "hsl"], [function(r2) {
|
|
39431
|
+
var n2 = r2.h, a2 = r2.s, o2 = r2.v, i2 = r2.a, s2 = void 0 === i2 ? 1 : i2;
|
|
39432
|
+
if (!t$3(n2) || !t$3(a2) || !t$3(o2)) return null;
|
|
39433
|
+
var h2 = (function(r3) {
|
|
39434
|
+
return { h: u$2(r3.h), s: e$2(r3.s, 0, 100), v: e$2(r3.v, 0, 100), a: e$2(r3.a) };
|
|
39435
|
+
})({ h: Number(n2), s: Number(a2), v: Number(o2), a: Number(s2) });
|
|
39436
|
+
return b$2(h2);
|
|
39437
|
+
}, "hsv"]] }, N = function(r2, t222) {
|
|
39438
|
+
for (var n2 = 0; n2 < t222.length; n2++) {
|
|
39439
|
+
var e2 = t222[n2][0](r2);
|
|
39440
|
+
if (e2) return [e2, t222[n2][1]];
|
|
39441
|
+
}
|
|
39442
|
+
return [null, void 0];
|
|
39443
|
+
}, x$1 = function(r2) {
|
|
39444
|
+
return "string" == typeof r2 ? N(r2.trim(), y$1.string) : "object" == typeof r2 && null !== r2 ? N(r2, y$1.object) : [null, void 0];
|
|
39445
|
+
}, M$2 = function(r2, t222) {
|
|
39446
|
+
var n2 = c$1(r2);
|
|
39447
|
+
return { h: n2.h, s: e$2(n2.s + 100 * t222, 0, 100), l: n2.l, a: n2.a };
|
|
39448
|
+
}, H = function(r2) {
|
|
39449
|
+
return (299 * r2.r + 587 * r2.g + 114 * r2.b) / 1e3 / 255;
|
|
39450
|
+
}, $ = function(r2, t222) {
|
|
39451
|
+
var n2 = c$1(r2);
|
|
39452
|
+
return { h: n2.h, s: n2.s, l: e$2(n2.l + 100 * t222, 0, 100), a: n2.a };
|
|
39453
|
+
}, j = (function() {
|
|
39454
|
+
function r2(r3) {
|
|
39455
|
+
this.parsed = x$1(r3)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
|
|
39456
|
+
}
|
|
39457
|
+
return r2.prototype.isValid = function() {
|
|
39458
|
+
return null !== this.parsed;
|
|
39459
|
+
}, r2.prototype.brightness = function() {
|
|
39460
|
+
return n$2(H(this.rgba), 2);
|
|
39461
|
+
}, r2.prototype.isDark = function() {
|
|
39462
|
+
return H(this.rgba) < 0.5;
|
|
39463
|
+
}, r2.prototype.isLight = function() {
|
|
39464
|
+
return H(this.rgba) >= 0.5;
|
|
39465
|
+
}, r2.prototype.toHex = function() {
|
|
39466
|
+
return r3 = o$3(this.rgba), t222 = r3.r, e2 = r3.g, u2 = r3.b, i2 = (a2 = r3.a) < 1 ? s$1(n$2(255 * a2)) : "", "#" + s$1(t222) + s$1(e2) + s$1(u2) + i2;
|
|
39467
|
+
var r3, t222, e2, u2, a2, i2;
|
|
39468
|
+
}, r2.prototype.toRgb = function() {
|
|
39469
|
+
return o$3(this.rgba);
|
|
39470
|
+
}, r2.prototype.toRgbString = function() {
|
|
39471
|
+
return r3 = o$3(this.rgba), t222 = r3.r, n2 = r3.g, e2 = r3.b, (u2 = r3.a) < 1 ? "rgba(" + t222 + ", " + n2 + ", " + e2 + ", " + u2 + ")" : "rgb(" + t222 + ", " + n2 + ", " + e2 + ")";
|
|
39472
|
+
var r3, t222, n2, e2, u2;
|
|
39473
|
+
}, r2.prototype.toHsl = function() {
|
|
39474
|
+
return d$1(c$1(this.rgba));
|
|
39475
|
+
}, r2.prototype.toHslString = function() {
|
|
39476
|
+
return r3 = d$1(c$1(this.rgba)), t222 = r3.h, n2 = r3.s, e2 = r3.l, (u2 = r3.a) < 1 ? "hsla(" + t222 + ", " + n2 + "%, " + e2 + "%, " + u2 + ")" : "hsl(" + t222 + ", " + n2 + "%, " + e2 + "%)";
|
|
39477
|
+
var r3, t222, n2, e2, u2;
|
|
39478
|
+
}, r2.prototype.toHsv = function() {
|
|
39479
|
+
return r3 = h$2(this.rgba), { h: n$2(r3.h), s: n$2(r3.s), v: n$2(r3.v), a: n$2(r3.a, 3) };
|
|
39480
|
+
var r3;
|
|
39481
|
+
}, r2.prototype.invert = function() {
|
|
39482
|
+
return w$1({ r: 255 - (r3 = this.rgba).r, g: 255 - r3.g, b: 255 - r3.b, a: r3.a });
|
|
39483
|
+
var r3;
|
|
39484
|
+
}, r2.prototype.saturate = function(r3) {
|
|
39485
|
+
return void 0 === r3 && (r3 = 0.1), w$1(M$2(this.rgba, r3));
|
|
39486
|
+
}, r2.prototype.desaturate = function(r3) {
|
|
39487
|
+
return void 0 === r3 && (r3 = 0.1), w$1(M$2(this.rgba, -r3));
|
|
39488
|
+
}, r2.prototype.grayscale = function() {
|
|
39489
|
+
return w$1(M$2(this.rgba, -1));
|
|
39490
|
+
}, r2.prototype.lighten = function(r3) {
|
|
39491
|
+
return void 0 === r3 && (r3 = 0.1), w$1($(this.rgba, r3));
|
|
39492
|
+
}, r2.prototype.darken = function(r3) {
|
|
39493
|
+
return void 0 === r3 && (r3 = 0.1), w$1($(this.rgba, -r3));
|
|
39494
|
+
}, r2.prototype.rotate = function(r3) {
|
|
39495
|
+
return void 0 === r3 && (r3 = 15), this.hue(this.hue() + r3);
|
|
39496
|
+
}, r2.prototype.alpha = function(r3) {
|
|
39497
|
+
return "number" == typeof r3 ? w$1({ r: (t222 = this.rgba).r, g: t222.g, b: t222.b, a: r3 }) : n$2(this.rgba.a, 3);
|
|
39498
|
+
var t222;
|
|
39499
|
+
}, r2.prototype.hue = function(r3) {
|
|
39500
|
+
var t222 = c$1(this.rgba);
|
|
39501
|
+
return "number" == typeof r3 ? w$1({ h: r3, s: t222.s, l: t222.l, a: t222.a }) : n$2(t222.h);
|
|
39502
|
+
}, r2.prototype.isEqual = function(r3) {
|
|
39503
|
+
return this.toHex() === w$1(r3).toHex();
|
|
39504
|
+
}, r2;
|
|
39505
|
+
})(), w$1 = function(r2) {
|
|
39506
|
+
return r2 instanceof j ? r2 : new j(r2);
|
|
39507
|
+
}, S = [], k = function(r2) {
|
|
39508
|
+
r2.forEach(function(r3) {
|
|
39509
|
+
S.indexOf(r3) < 0 && (r3(j, y$1), S.push(r3));
|
|
39510
|
+
});
|
|
39511
|
+
};
|
|
39512
|
+
var a$1 = function(a2) {
|
|
39513
|
+
return "string" == typeof a2 ? a2.length > 0 : "number" == typeof a2;
|
|
39514
|
+
}, t$2 = function(a2, t222, o2) {
|
|
39515
|
+
return void 0 === t222 && (t222 = 0), void 0 === o2 && (o2 = Math.pow(10, t222)), Math.round(o2 * a2) / o2 + 0;
|
|
39516
|
+
}, o$2 = function(a2, t222, o2) {
|
|
39517
|
+
return void 0 === t222 && (t222 = 0), void 0 === o2 && (o2 = 1), a2 > o2 ? o2 : a2 > t222 ? a2 : t222;
|
|
39518
|
+
}, r$1 = function(a2) {
|
|
39519
|
+
var t222 = a2 / 255;
|
|
39520
|
+
return t222 < 0.04045 ? t222 / 12.92 : Math.pow((t222 + 0.055) / 1.055, 2.4);
|
|
39521
|
+
}, h$1 = function(a2) {
|
|
39522
|
+
return 255 * (a2 > 31308e-7 ? 1.055 * Math.pow(a2, 1 / 2.4) - 0.055 : 12.92 * a2);
|
|
39523
|
+
}, n$1 = 96.422, p$1 = 100, M$1 = 82.521, u$1 = function(a2) {
|
|
39524
|
+
var t222, r2, n2 = { x: 0.9555766 * (t222 = a2).x + -0.0230393 * t222.y + 0.0631636 * t222.z, y: -0.0282895 * t222.x + 1.0099416 * t222.y + 0.0210077 * t222.z, z: 0.0122982 * t222.x + -0.020483 * t222.y + 1.3299098 * t222.z };
|
|
39525
|
+
return r2 = { r: h$1(0.032404542 * n2.x - 0.015371385 * n2.y - 4985314e-9 * n2.z), g: h$1(-969266e-8 * n2.x + 0.018760108 * n2.y + 41556e-8 * n2.z), b: h$1(556434e-9 * n2.x - 2040259e-9 * n2.y + 0.010572252 * n2.z), a: a2.a }, { r: o$2(r2.r, 0, 255), g: o$2(r2.g, 0, 255), b: o$2(r2.b, 0, 255), a: o$2(r2.a) };
|
|
39526
|
+
}, e$1 = function(a2) {
|
|
39527
|
+
var t222 = r$1(a2.r), h2 = r$1(a2.g), u2 = r$1(a2.b);
|
|
39528
|
+
return (function(a3) {
|
|
39529
|
+
return { x: o$2(a3.x, 0, n$1), y: o$2(a3.y, 0, p$1), z: o$2(a3.z, 0, M$1), a: o$2(a3.a) };
|
|
39530
|
+
})((function(a3) {
|
|
39531
|
+
return { x: 1.0478112 * a3.x + 0.0228866 * a3.y + -0.050127 * a3.z, y: 0.0295424 * a3.x + 0.9904844 * a3.y + -0.0170491 * a3.z, z: -92345e-7 * a3.x + 0.0150436 * a3.y + 0.7521316 * a3.z, a: a3.a };
|
|
39532
|
+
})({ x: 100 * (0.4124564 * t222 + 0.3575761 * h2 + 0.1804375 * u2), y: 100 * (0.2126729 * t222 + 0.7151522 * h2 + 0.072175 * u2), z: 100 * (0.0193339 * t222 + 0.119192 * h2 + 0.9503041 * u2), a: a2.a }));
|
|
39533
|
+
}, w = 216 / 24389, b$1 = 24389 / 27, i$1 = function(t222) {
|
|
39534
|
+
var r2 = t222.l, h2 = t222.a, n2 = t222.b, p2 = t222.alpha, M2 = void 0 === p2 ? 1 : p2;
|
|
39535
|
+
if (!a$1(r2) || !a$1(h2) || !a$1(n2)) return null;
|
|
39536
|
+
var u2 = (function(a2) {
|
|
39537
|
+
return { l: o$2(a2.l, 0, 400), a: a2.a, b: a2.b, alpha: o$2(a2.alpha) };
|
|
39538
|
+
})({ l: Number(r2), a: Number(h2), b: Number(n2), alpha: Number(M2) });
|
|
39539
|
+
return l$1(u2);
|
|
39540
|
+
}, l$1 = function(a2) {
|
|
39541
|
+
var t222 = (a2.l + 16) / 116, o2 = a2.a / 500 + t222, r2 = t222 - a2.b / 200;
|
|
39542
|
+
return u$1({ x: (Math.pow(o2, 3) > w ? Math.pow(o2, 3) : (116 * o2 - 16) / b$1) * n$1, y: (a2.l > 8 ? Math.pow((a2.l + 16) / 116, 3) : a2.l / b$1) * p$1, z: (Math.pow(r2, 3) > w ? Math.pow(r2, 3) : (116 * r2 - 16) / b$1) * M$1, a: a2.alpha });
|
|
39543
|
+
};
|
|
39544
|
+
function labPlugin(a2, r2) {
|
|
39545
|
+
a2.prototype.toLab = function() {
|
|
39546
|
+
return o2 = e$1(this.rgba), h2 = o2.y / p$1, u2 = o2.z / M$1, r3 = (r3 = o2.x / n$1) > w ? Math.cbrt(r3) : (b$1 * r3 + 16) / 116, a3 = { l: 116 * (h2 = h2 > w ? Math.cbrt(h2) : (b$1 * h2 + 16) / 116) - 16, a: 500 * (r3 - h2), b: 200 * (h2 - (u2 = u2 > w ? Math.cbrt(u2) : (b$1 * u2 + 16) / 116)), alpha: o2.a }, { l: t$2(a3.l, 2), a: t$2(a3.a, 2), b: t$2(a3.b, 2), alpha: t$2(a3.alpha, 3) };
|
|
39547
|
+
var a3, o2, r3, h2, u2;
|
|
39548
|
+
}, a2.prototype.delta = function(r3) {
|
|
39549
|
+
void 0 === r3 && (r3 = "#FFF");
|
|
39550
|
+
var h2 = r3 instanceof a2 ? r3 : new a2(r3), n2 = (function(a3, t222) {
|
|
39551
|
+
var o2 = a3.l, r4 = a3.a, h3 = a3.b, n3 = t222.l, p2 = t222.a, M2 = t222.b, u2 = 180 / Math.PI, e2 = Math.PI / 180, w2 = Math.pow(Math.pow(r4, 2) + Math.pow(h3, 2), 0.5), b2 = Math.pow(Math.pow(p2, 2) + Math.pow(M2, 2), 0.5), i2 = (o2 + n3) / 2, l2 = Math.pow((w2 + b2) / 2, 7), c2 = 0.5 * (1 - Math.pow(l2 / (l2 + Math.pow(25, 7)), 0.5)), f2 = r4 * (1 + c2), y2 = p2 * (1 + c2), v2 = Math.pow(Math.pow(f2, 2) + Math.pow(h3, 2), 0.5), x2 = Math.pow(Math.pow(y2, 2) + Math.pow(M2, 2), 0.5), z = (v2 + x2) / 2, s2 = 0 === f2 && 0 === h3 ? 0 : Math.atan2(h3, f2) * u2, d2 = 0 === y2 && 0 === M2 ? 0 : Math.atan2(M2, y2) * u2;
|
|
39552
|
+
s2 < 0 && (s2 += 360), d2 < 0 && (d2 += 360);
|
|
39553
|
+
var g2 = d2 - s2, m2 = Math.abs(d2 - s2);
|
|
39554
|
+
m2 > 180 && d2 <= s2 ? g2 += 360 : m2 > 180 && d2 > s2 && (g2 -= 360);
|
|
39555
|
+
var N2 = s2 + d2;
|
|
39556
|
+
m2 <= 180 ? N2 /= 2 : N2 = (s2 + d2 < 360 ? N2 + 360 : N2 - 360) / 2;
|
|
39557
|
+
var F = 1 - 0.17 * Math.cos(e2 * (N2 - 30)) + 0.24 * Math.cos(2 * e2 * N2) + 0.32 * Math.cos(e2 * (3 * N2 + 6)) - 0.2 * Math.cos(e2 * (4 * N2 - 63)), L = n3 - o2, I = x2 - v2, P2 = 2 * Math.sin(e2 * g2 / 2) * Math.pow(v2 * x2, 0.5), j2 = 1 + 0.015 * Math.pow(i2 - 50, 2) / Math.pow(20 + Math.pow(i2 - 50, 2), 0.5), k2 = 1 + 0.045 * z, q = 1 + 0.015 * z * F, A2 = 30 * Math.exp(-1 * Math.pow((N2 - 275) / 25, 2)), B2 = -2 * Math.pow(l2 / (l2 + Math.pow(25, 7)), 0.5) * Math.sin(2 * e2 * A2);
|
|
39558
|
+
return Math.pow(Math.pow(L / 1 / j2, 2) + Math.pow(I / 1 / k2, 2) + Math.pow(P2 / 1 / q, 2) + B2 * I * P2 / (1 * k2 * 1 * q), 0.5);
|
|
39559
|
+
})(this.toLab(), h2.toLab()) / 100;
|
|
39560
|
+
return o$2(t$2(n2, 3));
|
|
39561
|
+
}, r2.object.push([i$1, "lab"]);
|
|
39834
39562
|
}
|
|
39835
|
-
var
|
|
39836
|
-
|
|
39563
|
+
var r = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, t$1 = function(r2) {
|
|
39564
|
+
return "string" == typeof r2 ? r2.length > 0 : "number" == typeof r2;
|
|
39565
|
+
}, a = function(r2, t222, a2) {
|
|
39566
|
+
return void 0 === t222 && (t222 = 0), void 0 === a2 && (a2 = Math.pow(10, t222)), Math.round(a2 * r2) / a2 + 0;
|
|
39567
|
+
}, n = function(r2, t222, a2) {
|
|
39568
|
+
return void 0 === t222 && (t222 = 0), void 0 === a2 && (a2 = 1), r2 > a2 ? a2 : r2 > t222 ? r2 : t222;
|
|
39569
|
+
}, u = function(r2) {
|
|
39570
|
+
var t222 = r2 / 255;
|
|
39571
|
+
return t222 < 0.04045 ? t222 / 12.92 : Math.pow((t222 + 0.055) / 1.055, 2.4);
|
|
39572
|
+
}, h = function(r2) {
|
|
39573
|
+
return 255 * (r2 > 31308e-7 ? 1.055 * Math.pow(r2, 1 / 2.4) - 0.055 : 12.92 * r2);
|
|
39574
|
+
}, o$1 = 96.422, e$3 = 100, c = 82.521, i = function(r2) {
|
|
39575
|
+
var t222, a2, u2 = { x: 0.9555766 * (t222 = r2).x + -0.0230393 * t222.y + 0.0631636 * t222.z, y: -0.0282895 * t222.x + 1.0099416 * t222.y + 0.0210077 * t222.z, z: 0.0122982 * t222.x + -0.020483 * t222.y + 1.3299098 * t222.z };
|
|
39576
|
+
return a2 = { r: h(0.032404542 * u2.x - 0.015371385 * u2.y - 4985314e-9 * u2.z), g: h(-969266e-8 * u2.x + 0.018760108 * u2.y + 41556e-8 * u2.z), b: h(556434e-9 * u2.x - 2040259e-9 * u2.y + 0.010572252 * u2.z), a: r2.a }, { r: n(a2.r, 0, 255), g: n(a2.g, 0, 255), b: n(a2.b, 0, 255), a: n(a2.a) };
|
|
39577
|
+
}, l = function(r2) {
|
|
39578
|
+
var t222 = u(r2.r), a2 = u(r2.g), h2 = u(r2.b);
|
|
39579
|
+
return (function(r3) {
|
|
39580
|
+
return { x: n(r3.x, 0, o$1), y: n(r3.y, 0, e$3), z: n(r3.z, 0, c), a: n(r3.a) };
|
|
39581
|
+
})((function(r3) {
|
|
39582
|
+
return { x: 1.0478112 * r3.x + 0.0228866 * r3.y + -0.050127 * r3.z, y: 0.0295424 * r3.x + 0.9904844 * r3.y + -0.0170491 * r3.z, z: -92345e-7 * r3.x + 0.0150436 * r3.y + 0.7521316 * r3.z, a: r3.a };
|
|
39583
|
+
})({ x: 100 * (0.4124564 * t222 + 0.3575761 * a2 + 0.1804375 * h2), y: 100 * (0.2126729 * t222 + 0.7151522 * a2 + 0.072175 * h2), z: 100 * (0.0193339 * t222 + 0.119192 * a2 + 0.9503041 * h2), a: r2.a }));
|
|
39584
|
+
}, f$2 = 216 / 24389, b = 24389 / 27, d = function(r2) {
|
|
39585
|
+
return { l: n(r2.l, 0, 100), c: r2.c, h: (t222 = r2.h, (t222 = isFinite(t222) ? t222 % 360 : 0) > 0 ? t222 : t222 + 360), a: r2.a };
|
|
39586
|
+
var t222;
|
|
39587
|
+
}, p = function(r2) {
|
|
39588
|
+
return { l: a(r2.l, 2), c: a(r2.c, 2), h: a(r2.h, 2), a: a(r2.a, 3) };
|
|
39589
|
+
}, v = function(r2) {
|
|
39590
|
+
var a2 = r2.l, n2 = r2.c, u2 = r2.h, h2 = r2.a, o2 = void 0 === h2 ? 1 : h2;
|
|
39591
|
+
if (!t$1(a2) || !t$1(n2) || !t$1(u2)) return null;
|
|
39592
|
+
var e2 = d({ l: Number(a2), c: Number(n2), h: Number(u2), a: Number(o2) });
|
|
39593
|
+
return M(e2);
|
|
39594
|
+
}, y = function(r2) {
|
|
39595
|
+
var t222 = (function(r3) {
|
|
39596
|
+
var t322 = l(r3), a2 = t322.x / o$1, n3 = t322.y / e$3, u3 = t322.z / c;
|
|
39597
|
+
return a2 = a2 > f$2 ? Math.cbrt(a2) : (b * a2 + 16) / 116, { l: 116 * (n3 = n3 > f$2 ? Math.cbrt(n3) : (b * n3 + 16) / 116) - 16, a: 500 * (a2 - n3), b: 200 * (n3 - (u3 = u3 > f$2 ? Math.cbrt(u3) : (b * u3 + 16) / 116)), alpha: t322.a };
|
|
39598
|
+
})(r2), n2 = a(t222.a, 3), u2 = a(t222.b, 3), h2 = Math.atan2(u2, n2) / Math.PI * 180;
|
|
39599
|
+
return { l: t222.l, c: Math.sqrt(n2 * n2 + u2 * u2), h: h2 < 0 ? h2 + 360 : h2, a: t222.alpha };
|
|
39600
|
+
}, M = function(r2) {
|
|
39601
|
+
return t222 = { l: r2.l, a: r2.c * Math.cos(r2.h * Math.PI / 180), b: r2.c * Math.sin(r2.h * Math.PI / 180), alpha: r2.a }, n2 = t222.a / 500 + (a2 = (t222.l + 16) / 116), u2 = a2 - t222.b / 200, i({ x: (Math.pow(n2, 3) > f$2 ? Math.pow(n2, 3) : (116 * n2 - 16) / b) * o$1, y: (t222.l > 8 ? Math.pow((t222.l + 16) / 116, 3) : t222.l / b) * e$3, z: (Math.pow(u2, 3) > f$2 ? Math.pow(u2, 3) : (116 * u2 - 16) / b) * c, a: t222.alpha });
|
|
39602
|
+
var t222, a2, n2, u2;
|
|
39603
|
+
}, x = /^lch\(\s*([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)\s+([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, s = function(t222) {
|
|
39604
|
+
var a2 = x.exec(t222);
|
|
39605
|
+
if (!a2) return null;
|
|
39606
|
+
var n2, u2, h2 = d({ l: Number(a2[1]), c: Number(a2[2]), h: (n2 = a2[3], u2 = a2[4], void 0 === u2 && (u2 = "deg"), Number(n2) * (r[u2] || 1)), a: void 0 === a2[5] ? 1 : Number(a2[5]) / (a2[6] ? 100 : 1) });
|
|
39607
|
+
return M(h2);
|
|
39608
|
+
};
|
|
39609
|
+
function lchPlugin(r2, t222) {
|
|
39610
|
+
r2.prototype.toLch = function() {
|
|
39611
|
+
return p(y(this.rgba));
|
|
39612
|
+
}, r2.prototype.toLchString = function() {
|
|
39613
|
+
return r3 = p(y(this.rgba)), t322 = r3.l, a2 = r3.c, n2 = r3.h, (u2 = r3.a) < 1 ? "lch(" + t322 + "% " + a2 + " " + n2 + " / " + u2 + ")" : "lch(" + t322 + "% " + a2 + " " + n2 + ")";
|
|
39614
|
+
var r3, t322, a2, n2, u2;
|
|
39615
|
+
}, t222.string.push([s, "lch"]), t222.object.push([v, "lch"]);
|
|
39616
|
+
}
|
|
39617
|
+
k([labPlugin, lchPlugin]);
|
|
39837
39618
|
const canonicalColorHexByKey = {
|
|
39838
39619
|
black: "#000000",
|
|
39839
39620
|
white: "#ffffff",
|
|
@@ -39864,6 +39645,8 @@ const extraAnchorDefinitions = {
|
|
|
39864
39645
|
redLight: { hex: "#f08080", canonical: "red" },
|
|
39865
39646
|
redCustom: { hex: "#D4042D", canonical: "red" },
|
|
39866
39647
|
redDark: { hex: "#8b0000", canonical: "red" },
|
|
39648
|
+
crimson: { hex: "#dc143c", canonical: "red" },
|
|
39649
|
+
wine: { hex: "#993355", canonical: "red" },
|
|
39867
39650
|
orangeLight: { hex: "#ffa07a", canonical: "orange" },
|
|
39868
39651
|
orangeCustom: { hex: "#F19143", canonical: "orange" },
|
|
39869
39652
|
orangePresetAccessible: { hex: "#a6510c", canonical: "orange" },
|
|
@@ -39879,14 +39662,18 @@ const extraAnchorDefinitions = {
|
|
|
39879
39662
|
teal: { hex: "#008080", canonical: "green" },
|
|
39880
39663
|
aqua: { hex: "#00ffff", canonical: "cyan" },
|
|
39881
39664
|
cyanLight: { hex: "#e0ffff", canonical: "cyan" },
|
|
39665
|
+
cyanMid: { hex: "#25b0c0", canonical: "cyan" },
|
|
39882
39666
|
cyanDark: { hex: "#008b8b", canonical: "cyan" },
|
|
39883
39667
|
navy: { hex: "#000080", canonical: "blue" },
|
|
39668
|
+
blueMid: { hex: "#4477aa", canonical: "blue" },
|
|
39669
|
+
blueSky: { hex: "#56b4e9", canonical: "blue" },
|
|
39884
39670
|
blueCustom: { hex: "#648FFF", canonical: "blue" },
|
|
39885
39671
|
bluePresetAccessible: { hex: "#1f5dff", canonical: "blue" },
|
|
39886
39672
|
blueLight: { hex: "#add8e6", canonical: "blue" },
|
|
39887
39673
|
blueDark: { hex: "#00008b", canonical: "blue" },
|
|
39888
39674
|
fuchsia: { hex: "#ff00ff", canonical: "purple" },
|
|
39889
39675
|
purpleCustom: { hex: "#644CD6", canonical: "purple" },
|
|
39676
|
+
purpleMuted: { hex: "#9c5686", canonical: "purple" },
|
|
39890
39677
|
purpleLight: { hex: "#dda0dd", canonical: "purple" },
|
|
39891
39678
|
purpleDark: { hex: "#8b008b", canonical: "purple" },
|
|
39892
39679
|
hotpink: { hex: "#ff69b4", canonical: "pink" },
|
|
@@ -39898,19 +39685,10 @@ const anchorDefinitions = {
|
|
|
39898
39685
|
...canonicalAnchorDefinitions,
|
|
39899
39686
|
...extraAnchorDefinitions
|
|
39900
39687
|
};
|
|
39901
|
-
|
|
39902
|
-
|
|
39903
|
-
|
|
39904
|
-
|
|
39905
|
-
])
|
|
39906
|
-
);
|
|
39907
|
-
Object.fromEntries(
|
|
39908
|
-
Object.entries(anchorDefinitions).map(([name2, definition]) => [
|
|
39909
|
-
name2,
|
|
39910
|
-
definition.canonical
|
|
39911
|
-
])
|
|
39912
|
-
);
|
|
39913
|
-
nearestColor.from(matchColorHexByName);
|
|
39688
|
+
Object.values(anchorDefinitions).map((definition) => ({
|
|
39689
|
+
color: w$1(definition.hex),
|
|
39690
|
+
canonical: definition.canonical
|
|
39691
|
+
}));
|
|
39914
39692
|
/* @__PURE__ */ new Set([
|
|
39915
39693
|
...Object.keys(colorName),
|
|
39916
39694
|
"transparent",
|
|
@@ -40063,7 +39841,7 @@ const defaultPalette = {
|
|
|
40063
39841
|
}
|
|
40064
39842
|
};
|
|
40065
39843
|
const okabeItoPalette = {
|
|
40066
|
-
name: "
|
|
39844
|
+
name: "okabeIto",
|
|
40067
39845
|
description: "Colorblind-friendly blues, oranges, greens, and purples adapted from the Okabe-Ito palette, with varied marker shapes and line styles.",
|
|
40068
39846
|
styles: {
|
|
40069
39847
|
1: {
|
|
@@ -40072,17 +39850,9 @@ const okabeItoPalette = {
|
|
|
40072
39850
|
markerColor: "#0072b2",
|
|
40073
39851
|
fillColor: "#0072b2",
|
|
40074
39852
|
highContrastColor: "#0072b2",
|
|
40075
|
-
lineColorWord: "blue",
|
|
40076
|
-
markerColorWord: "blue",
|
|
40077
|
-
fillColorWord: "blue",
|
|
40078
|
-
highContrastColorWord: "blue",
|
|
40079
39853
|
lineColorDarkMode: "#0072b2",
|
|
40080
39854
|
markerColorDarkMode: "#0072b2",
|
|
40081
39855
|
fillColorDarkMode: "#0072b2",
|
|
40082
|
-
lineColorWordDarkMode: "blue",
|
|
40083
|
-
markerColorWordDarkMode: "blue",
|
|
40084
|
-
fillColorWordDarkMode: "blue",
|
|
40085
|
-
highContrastColorWordDarkMode: "blue",
|
|
40086
39856
|
lineWidth: 4,
|
|
40087
39857
|
markerStyle: "circle"
|
|
40088
39858
|
},
|
|
@@ -40107,20 +39877,10 @@ const okabeItoPalette = {
|
|
|
40107
39877
|
fillColor: "#009e73",
|
|
40108
39878
|
textColor: "#008561",
|
|
40109
39879
|
highContrastColor: "#008561",
|
|
40110
|
-
lineColorWord: "green",
|
|
40111
|
-
markerColorWord: "green",
|
|
40112
|
-
fillColorWord: "green",
|
|
40113
|
-
textColorWord: "green",
|
|
40114
|
-
highContrastColorWord: "green",
|
|
40115
39880
|
lineColorDarkMode: "#009e73",
|
|
40116
39881
|
markerColorDarkMode: "#009e73",
|
|
40117
39882
|
fillColorDarkMode: "#009e73",
|
|
40118
39883
|
textColorDarkMode: "#009e73",
|
|
40119
|
-
lineColorWordDarkMode: "green",
|
|
40120
|
-
markerColorWordDarkMode: "green",
|
|
40121
|
-
fillColorWordDarkMode: "green",
|
|
40122
|
-
textColorWordDarkMode: "green",
|
|
40123
|
-
highContrastColorWordDarkMode: "green",
|
|
40124
39884
|
lineWidth: 3,
|
|
40125
39885
|
markerStyle: "triangle"
|
|
40126
39886
|
},
|
|
@@ -40134,8 +39894,6 @@ const okabeItoPalette = {
|
|
|
40134
39894
|
lineColorWord: "purple",
|
|
40135
39895
|
markerColorWord: "purple",
|
|
40136
39896
|
fillColorWord: "purple",
|
|
40137
|
-
textColorWord: "purple",
|
|
40138
|
-
highContrastColorWord: "purple",
|
|
40139
39897
|
lineColorDarkMode: "#cc79a7",
|
|
40140
39898
|
markerColorDarkMode: "#cc79a7",
|
|
40141
39899
|
fillColorDarkMode: "#cc79a7",
|
|
@@ -40234,7 +39992,7 @@ const okabeItoPalette = {
|
|
|
40234
39992
|
}
|
|
40235
39993
|
};
|
|
40236
39994
|
const tolBrightPalette = {
|
|
40237
|
-
name: "
|
|
39995
|
+
name: "tolBright",
|
|
40238
39996
|
description: "Colorblind-friendly bright blues, reds, greens, and purples from Paul Tol's bright palette, with varied marker shapes and line styles.",
|
|
40239
39997
|
styles: {
|
|
40240
39998
|
1: {
|
|
@@ -40242,17 +40000,9 @@ const tolBrightPalette = {
|
|
|
40242
40000
|
markerColor: "#4477aa",
|
|
40243
40001
|
fillColor: "#4477aa",
|
|
40244
40002
|
highContrastColor: "#4477aa",
|
|
40245
|
-
lineColorWord: "blue",
|
|
40246
|
-
markerColorWord: "blue",
|
|
40247
|
-
fillColorWord: "blue",
|
|
40248
|
-
highContrastColorWord: "blue",
|
|
40249
40003
|
lineColorDarkMode: "#4477aa",
|
|
40250
40004
|
markerColorDarkMode: "#4477aa",
|
|
40251
40005
|
fillColorDarkMode: "#4477aa",
|
|
40252
|
-
lineColorWordDarkMode: "blue",
|
|
40253
|
-
markerColorWordDarkMode: "blue",
|
|
40254
|
-
fillColorWordDarkMode: "blue",
|
|
40255
|
-
highContrastColorWordDarkMode: "blue",
|
|
40256
40006
|
lineWidth: 4,
|
|
40257
40007
|
markerStyle: "circle"
|
|
40258
40008
|
},
|
|
@@ -40262,20 +40012,10 @@ const tolBrightPalette = {
|
|
|
40262
40012
|
fillColor: "#ee6677",
|
|
40263
40013
|
textColor: "#bf515e",
|
|
40264
40014
|
highContrastColor: "#bf515e",
|
|
40265
|
-
lineColorWord: "red",
|
|
40266
|
-
markerColorWord: "red",
|
|
40267
|
-
fillColorWord: "red",
|
|
40268
|
-
textColorWord: "red",
|
|
40269
|
-
highContrastColorWord: "red",
|
|
40270
40015
|
lineColorDarkMode: "#ee6677",
|
|
40271
40016
|
markerColorDarkMode: "#ee6677",
|
|
40272
40017
|
fillColorDarkMode: "#ee6677",
|
|
40273
40018
|
textColorDarkMode: "#ee6677",
|
|
40274
|
-
lineColorWordDarkMode: "red",
|
|
40275
|
-
markerColorWordDarkMode: "red",
|
|
40276
|
-
fillColorWordDarkMode: "red",
|
|
40277
|
-
textColorWordDarkMode: "red",
|
|
40278
|
-
highContrastColorWordDarkMode: "red",
|
|
40279
40019
|
lineWidth: 2,
|
|
40280
40020
|
markerStyle: "square"
|
|
40281
40021
|
},
|
|
@@ -40316,9 +40056,6 @@ const tolBrightPalette = {
|
|
|
40316
40056
|
fillColor: "#4d9db8",
|
|
40317
40057
|
textColor: "#3c7d94",
|
|
40318
40058
|
highContrastColor: "#3c7d94",
|
|
40319
|
-
lineColorWord: "cyan",
|
|
40320
|
-
markerColorWord: "cyan",
|
|
40321
|
-
fillColorWord: "cyan",
|
|
40322
40059
|
textColorWord: "cyan",
|
|
40323
40060
|
highContrastColorWord: "cyan",
|
|
40324
40061
|
lineColorDarkMode: "#66ccee",
|
|
@@ -40343,11 +40080,6 @@ const tolBrightPalette = {
|
|
|
40343
40080
|
markerColorDarkMode: "#aa3377",
|
|
40344
40081
|
fillColorDarkMode: "#aa3377",
|
|
40345
40082
|
textColorDarkMode: "#b5648c",
|
|
40346
|
-
lineColorWordDarkMode: "purple",
|
|
40347
|
-
markerColorWordDarkMode: "purple",
|
|
40348
|
-
fillColorWordDarkMode: "purple",
|
|
40349
|
-
textColorWordDarkMode: "purple",
|
|
40350
|
-
highContrastColorWordDarkMode: "purple",
|
|
40351
40083
|
lineWidth: 2,
|
|
40352
40084
|
markerStyle: "triangleLeft"
|
|
40353
40085
|
},
|
|
@@ -40368,7 +40100,7 @@ const tolBrightPalette = {
|
|
|
40368
40100
|
}
|
|
40369
40101
|
};
|
|
40370
40102
|
const tolMutedPalette = {
|
|
40371
|
-
name: "
|
|
40103
|
+
name: "tolMuted",
|
|
40372
40104
|
description: "Nine colorblind-friendly muted styles from Paul Tol's muted palette, with varied marker shapes and line styles.",
|
|
40373
40105
|
styles: {
|
|
40374
40106
|
1: {
|
|
@@ -40396,20 +40128,10 @@ const tolMutedPalette = {
|
|
|
40396
40128
|
fillColor: "#669ab5",
|
|
40397
40129
|
textColor: "#507a90",
|
|
40398
40130
|
highContrastColor: "#507a90",
|
|
40399
|
-
lineColorWord: "blue",
|
|
40400
|
-
markerColorWord: "blue",
|
|
40401
|
-
fillColorWord: "blue",
|
|
40402
|
-
textColorWord: "blue",
|
|
40403
|
-
highContrastColorWord: "blue",
|
|
40404
40131
|
lineColorDarkMode: "#88ccee",
|
|
40405
40132
|
markerColorDarkMode: "#88ccee",
|
|
40406
40133
|
fillColorDarkMode: "#88ccee",
|
|
40407
40134
|
textColorDarkMode: "#88ccee",
|
|
40408
|
-
lineColorWordDarkMode: "blue",
|
|
40409
|
-
markerColorWordDarkMode: "blue",
|
|
40410
|
-
fillColorWordDarkMode: "blue",
|
|
40411
|
-
textColorWordDarkMode: "blue",
|
|
40412
|
-
highContrastColorWordDarkMode: "blue",
|
|
40413
40135
|
lineWidth: 2,
|
|
40414
40136
|
markerStyle: "square"
|
|
40415
40137
|
},
|
|
@@ -40446,8 +40168,6 @@ const tolMutedPalette = {
|
|
|
40446
40168
|
markerColorDarkMode: "#117733",
|
|
40447
40169
|
fillColorDarkMode: "#117733",
|
|
40448
40170
|
textColorDarkMode: "#548a5f",
|
|
40449
|
-
textColorWordDarkMode: "green",
|
|
40450
|
-
highContrastColorWordDarkMode: "green",
|
|
40451
40171
|
lineWidth: 2,
|
|
40452
40172
|
markerStyle: "diamond"
|
|
40453
40173
|
},
|
|
@@ -40555,11 +40275,6 @@ const tolMutedPalette = {
|
|
|
40555
40275
|
markerColorDarkMode: "#aa4499",
|
|
40556
40276
|
fillColorDarkMode: "#aa4499",
|
|
40557
40277
|
textColorDarkMode: "#b262a3",
|
|
40558
|
-
lineColorWordDarkMode: "purple",
|
|
40559
|
-
markerColorWordDarkMode: "purple",
|
|
40560
|
-
fillColorWordDarkMode: "purple",
|
|
40561
|
-
textColorWordDarkMode: "purple",
|
|
40562
|
-
highContrastColorWordDarkMode: "purple",
|
|
40563
40278
|
lineWidth: 2,
|
|
40564
40279
|
lineStyle: "dashed",
|
|
40565
40280
|
markerStyle: "square"
|
|
@@ -40567,7 +40282,7 @@ const tolMutedPalette = {
|
|
|
40567
40282
|
}
|
|
40568
40283
|
};
|
|
40569
40284
|
const tolHighContrastPalette = {
|
|
40570
|
-
name: "
|
|
40285
|
+
name: "tolHighContrast",
|
|
40571
40286
|
description: "Four maximum-distinction styles from Paul Tol's high-contrast palette, distinguishable even in grayscale.",
|
|
40572
40287
|
styles: {
|
|
40573
40288
|
1: {
|
|
@@ -40575,17 +40290,9 @@ const tolHighContrastPalette = {
|
|
|
40575
40290
|
markerColor: "#004488",
|
|
40576
40291
|
fillColor: "#004488",
|
|
40577
40292
|
highContrastColor: "#004488",
|
|
40578
|
-
lineColorWord: "blue",
|
|
40579
|
-
markerColorWord: "blue",
|
|
40580
|
-
fillColorWord: "blue",
|
|
40581
|
-
highContrastColorWord: "blue",
|
|
40582
40293
|
lineColorDarkMode: "#496194",
|
|
40583
40294
|
markerColorDarkMode: "#496194",
|
|
40584
40295
|
fillColorDarkMode: "#496194",
|
|
40585
|
-
lineColorWordDarkMode: "blue",
|
|
40586
|
-
markerColorWordDarkMode: "blue",
|
|
40587
|
-
fillColorWordDarkMode: "blue",
|
|
40588
|
-
highContrastColorWordDarkMode: "blue",
|
|
40589
40296
|
lineWidth: 4,
|
|
40590
40297
|
markerStyle: "circle"
|
|
40591
40298
|
},
|
|
@@ -40622,11 +40329,6 @@ const tolHighContrastPalette = {
|
|
|
40622
40329
|
markerColorDarkMode: "#c06976",
|
|
40623
40330
|
fillColorDarkMode: "#c06976",
|
|
40624
40331
|
textColorDarkMode: "#c06976",
|
|
40625
|
-
lineColorWordDarkMode: "red",
|
|
40626
|
-
markerColorWordDarkMode: "red",
|
|
40627
|
-
fillColorWordDarkMode: "red",
|
|
40628
|
-
textColorWordDarkMode: "red",
|
|
40629
|
-
highContrastColorWordDarkMode: "red",
|
|
40630
40332
|
lineWidth: 3,
|
|
40631
40333
|
markerStyle: "triangle"
|
|
40632
40334
|
},
|
|
@@ -40654,17 +40356,9 @@ const ibmPalette = {
|
|
|
40654
40356
|
markerColor: "#648fff",
|
|
40655
40357
|
fillColor: "#648fff",
|
|
40656
40358
|
highContrastColor: "#4f71cb",
|
|
40657
|
-
lineColorWord: "blue",
|
|
40658
|
-
markerColorWord: "blue",
|
|
40659
|
-
fillColorWord: "blue",
|
|
40660
|
-
highContrastColorWord: "blue",
|
|
40661
40359
|
lineColorDarkMode: "#648fff",
|
|
40662
40360
|
markerColorDarkMode: "#648fff",
|
|
40663
40361
|
fillColorDarkMode: "#648fff",
|
|
40664
|
-
lineColorWordDarkMode: "blue",
|
|
40665
|
-
markerColorWordDarkMode: "blue",
|
|
40666
|
-
fillColorWordDarkMode: "blue",
|
|
40667
|
-
highContrastColorWordDarkMode: "blue",
|
|
40668
40362
|
lineWidth: 4,
|
|
40669
40363
|
markerStyle: "circle"
|
|
40670
40364
|
},
|
|
@@ -40751,18 +40445,10 @@ const grayscalePalette = {
|
|
|
40751
40445
|
markerColor: "#000000",
|
|
40752
40446
|
fillColor: "#000000",
|
|
40753
40447
|
highContrastColor: "#000000",
|
|
40754
|
-
lineColorWord: "black",
|
|
40755
|
-
markerColorWord: "black",
|
|
40756
|
-
fillColorWord: "black",
|
|
40757
|
-
highContrastColorWord: "black",
|
|
40758
40448
|
lineColorDarkMode: "#ffffff",
|
|
40759
40449
|
markerColorDarkMode: "#ffffff",
|
|
40760
40450
|
fillColorDarkMode: "#ffffff",
|
|
40761
40451
|
highContrastColorDarkMode: "#ffffff",
|
|
40762
|
-
lineColorWordDarkMode: "white",
|
|
40763
|
-
markerColorWordDarkMode: "white",
|
|
40764
|
-
fillColorWordDarkMode: "white",
|
|
40765
|
-
highContrastColorWordDarkMode: "white",
|
|
40766
40452
|
lineWidth: 4,
|
|
40767
40453
|
markerStyle: "circle"
|
|
40768
40454
|
},
|
|
@@ -40796,21 +40482,11 @@ const grayscalePalette = {
|
|
|
40796
40482
|
fillColor: "#616161",
|
|
40797
40483
|
textColor: "#616161",
|
|
40798
40484
|
highContrastColor: "#616161",
|
|
40799
|
-
lineColorWord: "gray",
|
|
40800
|
-
markerColorWord: "gray",
|
|
40801
|
-
fillColorWord: "gray",
|
|
40802
|
-
textColorWord: "gray",
|
|
40803
|
-
highContrastColorWord: "gray",
|
|
40804
40485
|
lineColorDarkMode: "#929292",
|
|
40805
40486
|
markerColorDarkMode: "#929292",
|
|
40806
40487
|
fillColorDarkMode: "#929292",
|
|
40807
40488
|
textColorDarkMode: "#929292",
|
|
40808
40489
|
highContrastColorDarkMode: "#929292",
|
|
40809
|
-
lineColorWordDarkMode: "gray",
|
|
40810
|
-
markerColorWordDarkMode: "gray",
|
|
40811
|
-
fillColorWordDarkMode: "gray",
|
|
40812
|
-
textColorWordDarkMode: "gray",
|
|
40813
|
-
highContrastColorWordDarkMode: "gray",
|
|
40814
40490
|
lineWidth: 3,
|
|
40815
40491
|
markerStyle: "triangle"
|
|
40816
40492
|
},
|
|
@@ -40849,17 +40525,9 @@ const categoricalPalette = {
|
|
|
40849
40525
|
markerColor: "#1f77b4",
|
|
40850
40526
|
fillColor: "#1f77b4",
|
|
40851
40527
|
highContrastColor: "#1f77b4",
|
|
40852
|
-
lineColorWord: "blue",
|
|
40853
|
-
markerColorWord: "blue",
|
|
40854
|
-
fillColorWord: "blue",
|
|
40855
|
-
highContrastColorWord: "blue",
|
|
40856
40528
|
lineColorDarkMode: "#5ba3dd",
|
|
40857
40529
|
markerColorDarkMode: "#5ba3dd",
|
|
40858
40530
|
fillColorDarkMode: "#5ba3dd",
|
|
40859
|
-
lineColorWordDarkMode: "blue",
|
|
40860
|
-
markerColorWordDarkMode: "blue",
|
|
40861
|
-
fillColorWordDarkMode: "blue",
|
|
40862
|
-
highContrastColorWordDarkMode: "blue",
|
|
40863
40531
|
lineWidth: 4,
|
|
40864
40532
|
markerStyle: "circle"
|
|
40865
40533
|
},
|
|
@@ -40869,20 +40537,10 @@ const categoricalPalette = {
|
|
|
40869
40537
|
fillColor: "#e7730c",
|
|
40870
40538
|
textColor: "#b95b07",
|
|
40871
40539
|
highContrastColor: "#b95b07",
|
|
40872
|
-
lineColorWord: "orange",
|
|
40873
|
-
markerColorWord: "orange",
|
|
40874
|
-
fillColorWord: "orange",
|
|
40875
|
-
textColorWord: "orange",
|
|
40876
|
-
highContrastColorWord: "orange",
|
|
40877
40540
|
lineColorDarkMode: "#ff9d3c",
|
|
40878
40541
|
markerColorDarkMode: "#ff9d3c",
|
|
40879
40542
|
fillColorDarkMode: "#ff9d3c",
|
|
40880
40543
|
textColorDarkMode: "#ff9d3c",
|
|
40881
|
-
lineColorWordDarkMode: "orange",
|
|
40882
|
-
markerColorWordDarkMode: "orange",
|
|
40883
|
-
fillColorWordDarkMode: "orange",
|
|
40884
|
-
textColorWordDarkMode: "orange",
|
|
40885
|
-
highContrastColorWordDarkMode: "orange",
|
|
40886
40544
|
lineWidth: 2,
|
|
40887
40545
|
markerStyle: "square"
|
|
40888
40546
|
},
|
|
@@ -40892,20 +40550,10 @@ const categoricalPalette = {
|
|
|
40892
40550
|
fillColor: "#217a21",
|
|
40893
40551
|
textColor: "#217a21",
|
|
40894
40552
|
highContrastColor: "#217a21",
|
|
40895
|
-
lineColorWord: "green",
|
|
40896
|
-
markerColorWord: "green",
|
|
40897
|
-
fillColorWord: "green",
|
|
40898
|
-
textColorWord: "green",
|
|
40899
|
-
highContrastColorWord: "green",
|
|
40900
40553
|
lineColorDarkMode: "#2ca02c",
|
|
40901
40554
|
markerColorDarkMode: "#2ca02c",
|
|
40902
40555
|
fillColorDarkMode: "#2ca02c",
|
|
40903
40556
|
textColorDarkMode: "#2ca02c",
|
|
40904
|
-
lineColorWordDarkMode: "green",
|
|
40905
|
-
markerColorWordDarkMode: "green",
|
|
40906
|
-
fillColorWordDarkMode: "green",
|
|
40907
|
-
textColorWordDarkMode: "green",
|
|
40908
|
-
highContrastColorWordDarkMode: "green",
|
|
40909
40557
|
lineWidth: 3,
|
|
40910
40558
|
markerStyle: "triangle"
|
|
40911
40559
|
},
|
|
@@ -40915,20 +40563,10 @@ const categoricalPalette = {
|
|
|
40915
40563
|
fillColor: "#d62728",
|
|
40916
40564
|
textColor: "#d62728",
|
|
40917
40565
|
highContrastColor: "#d62728",
|
|
40918
|
-
lineColorWord: "red",
|
|
40919
|
-
markerColorWord: "red",
|
|
40920
|
-
fillColorWord: "red",
|
|
40921
|
-
textColorWord: "red",
|
|
40922
|
-
highContrastColorWord: "red",
|
|
40923
40566
|
lineColorDarkMode: "#e2494a",
|
|
40924
40567
|
markerColorDarkMode: "#e2494a",
|
|
40925
40568
|
fillColorDarkMode: "#e2494a",
|
|
40926
40569
|
textColorDarkMode: "#e2494a",
|
|
40927
|
-
lineColorWordDarkMode: "red",
|
|
40928
|
-
markerColorWordDarkMode: "red",
|
|
40929
|
-
fillColorWordDarkMode: "red",
|
|
40930
|
-
textColorWordDarkMode: "red",
|
|
40931
|
-
highContrastColorWordDarkMode: "red",
|
|
40932
40570
|
lineWidth: 2,
|
|
40933
40571
|
markerStyle: "diamond"
|
|
40934
40572
|
},
|
|
@@ -40938,20 +40576,10 @@ const categoricalPalette = {
|
|
|
40938
40576
|
fillColor: "#9467bd",
|
|
40939
40577
|
textColor: "#8e62b5",
|
|
40940
40578
|
highContrastColor: "#8e62b5",
|
|
40941
|
-
lineColorWord: "purple",
|
|
40942
|
-
markerColorWord: "purple",
|
|
40943
|
-
fillColorWord: "purple",
|
|
40944
|
-
textColorWord: "purple",
|
|
40945
|
-
highContrastColorWord: "purple",
|
|
40946
40579
|
lineColorDarkMode: "#b48fd6",
|
|
40947
40580
|
markerColorDarkMode: "#b48fd6",
|
|
40948
40581
|
fillColorDarkMode: "#b48fd6",
|
|
40949
40582
|
textColorDarkMode: "#b48fd6",
|
|
40950
|
-
lineColorWordDarkMode: "purple",
|
|
40951
|
-
markerColorWordDarkMode: "purple",
|
|
40952
|
-
fillColorWordDarkMode: "purple",
|
|
40953
|
-
textColorWordDarkMode: "purple",
|
|
40954
|
-
highContrastColorWordDarkMode: "purple",
|
|
40955
40583
|
lineWidth: 2,
|
|
40956
40584
|
markerStyle: "triangleDown"
|
|
40957
40585
|
},
|
|
@@ -40961,11 +40589,6 @@ const categoricalPalette = {
|
|
|
40961
40589
|
fillColor: "#7a4a41",
|
|
40962
40590
|
textColor: "#7a4a41",
|
|
40963
40591
|
highContrastColor: "#7a4a41",
|
|
40964
|
-
lineColorWord: "brown",
|
|
40965
|
-
markerColorWord: "brown",
|
|
40966
|
-
fillColorWord: "brown",
|
|
40967
|
-
textColorWord: "brown",
|
|
40968
|
-
highContrastColorWord: "brown",
|
|
40969
40592
|
lineColorDarkMode: "#a9705f",
|
|
40970
40593
|
markerColorDarkMode: "#a9705f",
|
|
40971
40594
|
fillColorDarkMode: "#a9705f",
|
|
@@ -40984,20 +40607,12 @@ const categoricalPalette = {
|
|
|
40984
40607
|
fillColor: "#d670b7",
|
|
40985
40608
|
textColor: "#ab5892",
|
|
40986
40609
|
highContrastColor: "#ab5892",
|
|
40987
|
-
lineColorWord: "pink",
|
|
40988
|
-
markerColorWord: "pink",
|
|
40989
|
-
fillColorWord: "pink",
|
|
40990
40610
|
textColorWord: "pink",
|
|
40991
40611
|
highContrastColorWord: "pink",
|
|
40992
40612
|
lineColorDarkMode: "#e377c2",
|
|
40993
40613
|
markerColorDarkMode: "#e377c2",
|
|
40994
40614
|
fillColorDarkMode: "#e377c2",
|
|
40995
40615
|
textColorDarkMode: "#e377c2",
|
|
40996
|
-
lineColorWordDarkMode: "pink",
|
|
40997
|
-
markerColorWordDarkMode: "pink",
|
|
40998
|
-
fillColorWordDarkMode: "pink",
|
|
40999
|
-
textColorWordDarkMode: "pink",
|
|
41000
|
-
highContrastColorWordDarkMode: "pink",
|
|
41001
40616
|
lineWidth: 3,
|
|
41002
40617
|
lineStyle: "dashed",
|
|
41003
40618
|
markerStyle: "triangleRight"
|
|
@@ -41008,20 +40623,10 @@ const categoricalPalette = {
|
|
|
41008
40623
|
fillColor: "#7f7f7f",
|
|
41009
40624
|
textColor: "#757575",
|
|
41010
40625
|
highContrastColor: "#757575",
|
|
41011
|
-
lineColorWord: "gray",
|
|
41012
|
-
markerColorWord: "gray",
|
|
41013
|
-
fillColorWord: "gray",
|
|
41014
|
-
textColorWord: "gray",
|
|
41015
|
-
highContrastColorWord: "gray",
|
|
41016
40626
|
lineColorDarkMode: "#a8a8a8",
|
|
41017
40627
|
markerColorDarkMode: "#a8a8a8",
|
|
41018
40628
|
fillColorDarkMode: "#a8a8a8",
|
|
41019
40629
|
textColorDarkMode: "#a8a8a8",
|
|
41020
|
-
lineColorWordDarkMode: "gray",
|
|
41021
|
-
markerColorWordDarkMode: "gray",
|
|
41022
|
-
fillColorWordDarkMode: "gray",
|
|
41023
|
-
textColorWordDarkMode: "gray",
|
|
41024
|
-
highContrastColorWordDarkMode: "gray",
|
|
41025
40630
|
lineWidth: 1,
|
|
41026
40631
|
lineStyle: "dotted",
|
|
41027
40632
|
markerStyle: "circle"
|
|
@@ -41056,20 +40661,12 @@ const categoricalPalette = {
|
|
|
41056
40661
|
fillColor: "#12a2b1",
|
|
41057
40662
|
textColor: "#0c818e",
|
|
41058
40663
|
highContrastColor: "#0c818e",
|
|
41059
|
-
lineColorWord: "cyan",
|
|
41060
|
-
markerColorWord: "cyan",
|
|
41061
|
-
fillColorWord: "cyan",
|
|
41062
40664
|
textColorWord: "cyan",
|
|
41063
40665
|
highContrastColorWord: "cyan",
|
|
41064
40666
|
lineColorDarkMode: "#17becf",
|
|
41065
40667
|
markerColorDarkMode: "#17becf",
|
|
41066
40668
|
fillColorDarkMode: "#17becf",
|
|
41067
40669
|
textColorDarkMode: "#17becf",
|
|
41068
|
-
lineColorWordDarkMode: "cyan",
|
|
41069
|
-
markerColorWordDarkMode: "cyan",
|
|
41070
|
-
fillColorWordDarkMode: "cyan",
|
|
41071
|
-
textColorWordDarkMode: "cyan",
|
|
41072
|
-
highContrastColorWordDarkMode: "cyan",
|
|
41073
40670
|
lineWidth: 2,
|
|
41074
40671
|
lineStyle: "dotted",
|
|
41075
40672
|
markerStyle: "diamond"
|
|
@@ -41077,7 +40674,7 @@ const categoricalPalette = {
|
|
|
41077
40674
|
}
|
|
41078
40675
|
};
|
|
41079
40676
|
const grumpyNarwhalPalette = {
|
|
41080
|
-
name: "
|
|
40677
|
+
name: "grumpyNarwhal",
|
|
41081
40678
|
description: "Six saturated hues — burnt orange, forest green, deep pink, arctic teal, gold, and purple — going neon in dark mode.",
|
|
41082
40679
|
styles: {
|
|
41083
40680
|
1: {
|
|
@@ -41085,17 +40682,12 @@ const grumpyNarwhalPalette = {
|
|
|
41085
40682
|
markerColor: "#b34700",
|
|
41086
40683
|
fillColor: "#b34700",
|
|
41087
40684
|
highContrastColor: "#b34700",
|
|
41088
|
-
lineColorWord: "orange",
|
|
41089
|
-
markerColorWord: "orange",
|
|
41090
|
-
fillColorWord: "orange",
|
|
41091
|
-
highContrastColorWord: "orange",
|
|
41092
40685
|
lineColorDarkMode: "#ff5f00",
|
|
41093
40686
|
markerColorDarkMode: "#ff5f00",
|
|
41094
40687
|
fillColorDarkMode: "#ff5f00",
|
|
41095
40688
|
lineColorWordDarkMode: "orange",
|
|
41096
40689
|
markerColorWordDarkMode: "orange",
|
|
41097
40690
|
fillColorWordDarkMode: "orange",
|
|
41098
|
-
highContrastColorWordDarkMode: "orange",
|
|
41099
40691
|
lineWidth: 4,
|
|
41100
40692
|
markerStyle: "circle"
|
|
41101
40693
|
},
|
|
@@ -41105,20 +40697,10 @@ const grumpyNarwhalPalette = {
|
|
|
41105
40697
|
fillColor: "#1b7a1b",
|
|
41106
40698
|
textColor: "#1b7a1b",
|
|
41107
40699
|
highContrastColor: "#1b7a1b",
|
|
41108
|
-
lineColorWord: "green",
|
|
41109
|
-
markerColorWord: "green",
|
|
41110
|
-
fillColorWord: "green",
|
|
41111
|
-
textColorWord: "green",
|
|
41112
|
-
highContrastColorWord: "green",
|
|
41113
40700
|
lineColorDarkMode: "#39ff14",
|
|
41114
40701
|
markerColorDarkMode: "#39ff14",
|
|
41115
40702
|
fillColorDarkMode: "#39ff14",
|
|
41116
40703
|
textColorDarkMode: "#39ff14",
|
|
41117
|
-
lineColorWordDarkMode: "green",
|
|
41118
|
-
markerColorWordDarkMode: "green",
|
|
41119
|
-
fillColorWordDarkMode: "green",
|
|
41120
|
-
textColorWordDarkMode: "green",
|
|
41121
|
-
highContrastColorWordDarkMode: "green",
|
|
41122
40704
|
lineWidth: 2,
|
|
41123
40705
|
markerStyle: "square"
|
|
41124
40706
|
},
|
|
@@ -41137,11 +40719,6 @@ const grumpyNarwhalPalette = {
|
|
|
41137
40719
|
markerColorDarkMode: "#ff1493",
|
|
41138
40720
|
fillColorDarkMode: "#ff1493",
|
|
41139
40721
|
textColorDarkMode: "#ff1493",
|
|
41140
|
-
lineColorWordDarkMode: "pink",
|
|
41141
|
-
markerColorWordDarkMode: "pink",
|
|
41142
|
-
fillColorWordDarkMode: "pink",
|
|
41143
|
-
textColorWordDarkMode: "pink",
|
|
41144
|
-
highContrastColorWordDarkMode: "pink",
|
|
41145
40722
|
lineWidth: 3,
|
|
41146
40723
|
markerStyle: "triangle"
|
|
41147
40724
|
},
|
|
@@ -41160,11 +40737,6 @@ const grumpyNarwhalPalette = {
|
|
|
41160
40737
|
markerColorDarkMode: "#00e5ff",
|
|
41161
40738
|
fillColorDarkMode: "#00e5ff",
|
|
41162
40739
|
textColorDarkMode: "#00e5ff",
|
|
41163
|
-
lineColorWordDarkMode: "cyan",
|
|
41164
|
-
markerColorWordDarkMode: "cyan",
|
|
41165
|
-
fillColorWordDarkMode: "cyan",
|
|
41166
|
-
textColorWordDarkMode: "cyan",
|
|
41167
|
-
highContrastColorWordDarkMode: "cyan",
|
|
41168
40740
|
lineWidth: 2,
|
|
41169
40741
|
markerStyle: "diamond"
|
|
41170
40742
|
},
|
|
@@ -41183,11 +40755,6 @@ const grumpyNarwhalPalette = {
|
|
|
41183
40755
|
markerColorDarkMode: "#ffea00",
|
|
41184
40756
|
fillColorDarkMode: "#ffea00",
|
|
41185
40757
|
textColorDarkMode: "#ffea00",
|
|
41186
|
-
lineColorWordDarkMode: "yellow",
|
|
41187
|
-
markerColorWordDarkMode: "yellow",
|
|
41188
|
-
fillColorWordDarkMode: "yellow",
|
|
41189
|
-
textColorWordDarkMode: "yellow",
|
|
41190
|
-
highContrastColorWordDarkMode: "yellow",
|
|
41191
40758
|
lineWidth: 2,
|
|
41192
40759
|
markerStyle: "triangleDown"
|
|
41193
40760
|
},
|
|
@@ -41201,21 +40768,11 @@ const grumpyNarwhalPalette = {
|
|
|
41201
40768
|
fillColor: "#b026ff",
|
|
41202
40769
|
textColor: "#b026ff",
|
|
41203
40770
|
highContrastColor: "#b026ff",
|
|
41204
|
-
lineColorWord: "purple",
|
|
41205
|
-
markerColorWord: "purple",
|
|
41206
|
-
fillColorWord: "purple",
|
|
41207
|
-
textColorWord: "purple",
|
|
41208
|
-
highContrastColorWord: "purple",
|
|
41209
40771
|
lineColorDarkMode: "#b026ff",
|
|
41210
40772
|
markerColorDarkMode: "#b026ff",
|
|
41211
40773
|
fillColorDarkMode: "#b026ff",
|
|
41212
40774
|
textColorDarkMode: "#b445ff",
|
|
41213
40775
|
highContrastColorDarkMode: "#b445ff",
|
|
41214
|
-
lineColorWordDarkMode: "purple",
|
|
41215
|
-
markerColorWordDarkMode: "purple",
|
|
41216
|
-
fillColorWordDarkMode: "purple",
|
|
41217
|
-
textColorWordDarkMode: "purple",
|
|
41218
|
-
highContrastColorWordDarkMode: "purple",
|
|
41219
40776
|
lineWidth: 2,
|
|
41220
40777
|
markerStyle: "triangleLeft"
|
|
41221
40778
|
}
|
|
@@ -41233,161 +40790,30 @@ function deepFreezePalette(palette) {
|
|
|
41233
40790
|
Object.freeze(palette.styles);
|
|
41234
40791
|
return Object.freeze(palette);
|
|
41235
40792
|
}
|
|
40793
|
+
function registerByKey(palette) {
|
|
40794
|
+
return [palette.name.toLowerCase(), deepFreezePalette(palette)];
|
|
40795
|
+
}
|
|
41236
40796
|
const STYLE_PALETTES = Object.assign(
|
|
41237
40797
|
/* @__PURE__ */ Object.create(null),
|
|
41238
|
-
|
|
41239
|
-
[
|
|
41240
|
-
|
|
41241
|
-
|
|
41242
|
-
|
|
41243
|
-
|
|
41244
|
-
tolHighContrastPalette
|
|
41245
|
-
|
|
41246
|
-
|
|
41247
|
-
|
|
41248
|
-
|
|
41249
|
-
|
|
41250
|
-
|
|
40798
|
+
Object.fromEntries(
|
|
40799
|
+
[
|
|
40800
|
+
defaultPalette,
|
|
40801
|
+
okabeItoPalette,
|
|
40802
|
+
tolBrightPalette,
|
|
40803
|
+
tolMutedPalette,
|
|
40804
|
+
tolHighContrastPalette,
|
|
40805
|
+
ibmPalette,
|
|
40806
|
+
grayscalePalette,
|
|
40807
|
+
categoricalPalette,
|
|
40808
|
+
grumpyNarwhalPalette
|
|
40809
|
+
].map(registerByKey)
|
|
40810
|
+
)
|
|
41251
40811
|
);
|
|
41252
40812
|
Object.freeze(STYLE_PALETTES);
|
|
41253
|
-
defaultPalette.name;
|
|
40813
|
+
defaultPalette.name.toLowerCase();
|
|
41254
40814
|
Object.freeze(
|
|
41255
40815
|
Object.keys(STYLE_PALETTES)
|
|
41256
40816
|
);
|
|
41257
|
-
var r = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, t$1 = function(r2) {
|
|
41258
|
-
return "string" == typeof r2 ? r2.length > 0 : "number" == typeof r2;
|
|
41259
|
-
}, n = function(r2, t222, n2) {
|
|
41260
|
-
return void 0 === t222 && (t222 = 0), void 0 === n2 && (n2 = Math.pow(10, t222)), Math.round(n2 * r2) / n2 + 0;
|
|
41261
|
-
}, e$1 = function(r2, t222, n2) {
|
|
41262
|
-
return void 0 === t222 && (t222 = 0), void 0 === n2 && (n2 = 1), r2 > n2 ? n2 : r2 > t222 ? r2 : t222;
|
|
41263
|
-
}, u = function(r2) {
|
|
41264
|
-
return (r2 = isFinite(r2) ? r2 % 360 : 0) > 0 ? r2 : r2 + 360;
|
|
41265
|
-
}, a = function(r2) {
|
|
41266
|
-
return { r: e$1(r2.r, 0, 255), g: e$1(r2.g, 0, 255), b: e$1(r2.b, 0, 255), a: e$1(r2.a) };
|
|
41267
|
-
}, o$1 = function(r2) {
|
|
41268
|
-
return { r: n(r2.r), g: n(r2.g), b: n(r2.b), a: n(r2.a, 3) };
|
|
41269
|
-
}, i = /^#([0-9a-f]{3,8})$/i, s = function(r2) {
|
|
41270
|
-
var t222 = r2.toString(16);
|
|
41271
|
-
return t222.length < 2 ? "0" + t222 : t222;
|
|
41272
|
-
}, h = function(r2) {
|
|
41273
|
-
var t222 = r2.r, n2 = r2.g, e2 = r2.b, u2 = r2.a, a2 = Math.max(t222, n2, e2), o2 = a2 - Math.min(t222, n2, e2), i2 = o2 ? a2 === t222 ? (n2 - e2) / o2 : a2 === n2 ? 2 + (e2 - t222) / o2 : 4 + (t222 - n2) / o2 : 0;
|
|
41274
|
-
return { h: 60 * (i2 < 0 ? i2 + 6 : i2), s: a2 ? o2 / a2 * 100 : 0, v: a2 / 255 * 100, a: u2 };
|
|
41275
|
-
}, b = function(r2) {
|
|
41276
|
-
var t222 = r2.h, n2 = r2.s, e2 = r2.v, u2 = r2.a;
|
|
41277
|
-
t222 = t222 / 360 * 6, n2 /= 100, e2 /= 100;
|
|
41278
|
-
var a2 = Math.floor(t222), o2 = e2 * (1 - n2), i2 = e2 * (1 - (t222 - a2) * n2), s2 = e2 * (1 - (1 - t222 + a2) * n2), h2 = a2 % 6;
|
|
41279
|
-
return { r: 255 * [e2, i2, o2, o2, s2, e2][h2], g: 255 * [s2, e2, e2, i2, o2, o2][h2], b: 255 * [o2, o2, s2, e2, e2, i2][h2], a: u2 };
|
|
41280
|
-
}, g = function(r2) {
|
|
41281
|
-
return { h: u(r2.h), s: e$1(r2.s, 0, 100), l: e$1(r2.l, 0, 100), a: e$1(r2.a) };
|
|
41282
|
-
}, d = function(r2) {
|
|
41283
|
-
return { h: n(r2.h), s: n(r2.s), l: n(r2.l), a: n(r2.a, 3) };
|
|
41284
|
-
}, f$1 = function(r2) {
|
|
41285
|
-
return b((n2 = (t222 = r2).s, { h: t222.h, s: (n2 *= ((e2 = t222.l) < 50 ? e2 : 100 - e2) / 100) > 0 ? 2 * n2 / (e2 + n2) * 100 : 0, v: e2 + n2, a: t222.a }));
|
|
41286
|
-
var t222, n2, e2;
|
|
41287
|
-
}, c = function(r2) {
|
|
41288
|
-
return { h: (t222 = h(r2)).h, s: (u2 = (200 - (n2 = t222.s)) * (e2 = t222.v) / 100) > 0 && u2 < 200 ? n2 * e2 / 100 / (u2 <= 100 ? u2 : 200 - u2) * 100 : 0, l: u2 / 2, a: t222.a };
|
|
41289
|
-
var t222, n2, e2, u2;
|
|
41290
|
-
}, l = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, p = /^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, v = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, m = /^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i, y = { string: [[function(r2) {
|
|
41291
|
-
var t222 = i.exec(r2);
|
|
41292
|
-
return t222 ? (r2 = t222[1]).length <= 4 ? { r: parseInt(r2[0] + r2[0], 16), g: parseInt(r2[1] + r2[1], 16), b: parseInt(r2[2] + r2[2], 16), a: 4 === r2.length ? n(parseInt(r2[3] + r2[3], 16) / 255, 2) : 1 } : 6 === r2.length || 8 === r2.length ? { r: parseInt(r2.substr(0, 2), 16), g: parseInt(r2.substr(2, 2), 16), b: parseInt(r2.substr(4, 2), 16), a: 8 === r2.length ? n(parseInt(r2.substr(6, 2), 16) / 255, 2) : 1 } : null : null;
|
|
41293
|
-
}, "hex"], [function(r2) {
|
|
41294
|
-
var t222 = v.exec(r2) || m.exec(r2);
|
|
41295
|
-
return t222 ? t222[2] !== t222[4] || t222[4] !== t222[6] ? null : a({ r: Number(t222[1]) / (t222[2] ? 100 / 255 : 1), g: Number(t222[3]) / (t222[4] ? 100 / 255 : 1), b: Number(t222[5]) / (t222[6] ? 100 / 255 : 1), a: void 0 === t222[7] ? 1 : Number(t222[7]) / (t222[8] ? 100 : 1) }) : null;
|
|
41296
|
-
}, "rgb"], [function(t222) {
|
|
41297
|
-
var n2 = l.exec(t222) || p.exec(t222);
|
|
41298
|
-
if (!n2) return null;
|
|
41299
|
-
var e2, u2, a2 = g({ h: (e2 = n2[1], u2 = n2[2], void 0 === u2 && (u2 = "deg"), Number(e2) * (r[u2] || 1)), s: Number(n2[3]), l: Number(n2[4]), a: void 0 === n2[5] ? 1 : Number(n2[5]) / (n2[6] ? 100 : 1) });
|
|
41300
|
-
return f$1(a2);
|
|
41301
|
-
}, "hsl"]], object: [[function(r2) {
|
|
41302
|
-
var n2 = r2.r, e2 = r2.g, u2 = r2.b, o2 = r2.a, i2 = void 0 === o2 ? 1 : o2;
|
|
41303
|
-
return t$1(n2) && t$1(e2) && t$1(u2) ? a({ r: Number(n2), g: Number(e2), b: Number(u2), a: Number(i2) }) : null;
|
|
41304
|
-
}, "rgb"], [function(r2) {
|
|
41305
|
-
var n2 = r2.h, e2 = r2.s, u2 = r2.l, a2 = r2.a, o2 = void 0 === a2 ? 1 : a2;
|
|
41306
|
-
if (!t$1(n2) || !t$1(e2) || !t$1(u2)) return null;
|
|
41307
|
-
var i2 = g({ h: Number(n2), s: Number(e2), l: Number(u2), a: Number(o2) });
|
|
41308
|
-
return f$1(i2);
|
|
41309
|
-
}, "hsl"], [function(r2) {
|
|
41310
|
-
var n2 = r2.h, a2 = r2.s, o2 = r2.v, i2 = r2.a, s2 = void 0 === i2 ? 1 : i2;
|
|
41311
|
-
if (!t$1(n2) || !t$1(a2) || !t$1(o2)) return null;
|
|
41312
|
-
var h2 = (function(r3) {
|
|
41313
|
-
return { h: u(r3.h), s: e$1(r3.s, 0, 100), v: e$1(r3.v, 0, 100), a: e$1(r3.a) };
|
|
41314
|
-
})({ h: Number(n2), s: Number(a2), v: Number(o2), a: Number(s2) });
|
|
41315
|
-
return b(h2);
|
|
41316
|
-
}, "hsv"]] }, N = function(r2, t222) {
|
|
41317
|
-
for (var n2 = 0; n2 < t222.length; n2++) {
|
|
41318
|
-
var e2 = t222[n2][0](r2);
|
|
41319
|
-
if (e2) return [e2, t222[n2][1]];
|
|
41320
|
-
}
|
|
41321
|
-
return [null, void 0];
|
|
41322
|
-
}, x = function(r2) {
|
|
41323
|
-
return "string" == typeof r2 ? N(r2.trim(), y.string) : "object" == typeof r2 && null !== r2 ? N(r2, y.object) : [null, void 0];
|
|
41324
|
-
}, M = function(r2, t222) {
|
|
41325
|
-
var n2 = c(r2);
|
|
41326
|
-
return { h: n2.h, s: e$1(n2.s + 100 * t222, 0, 100), l: n2.l, a: n2.a };
|
|
41327
|
-
}, H = function(r2) {
|
|
41328
|
-
return (299 * r2.r + 587 * r2.g + 114 * r2.b) / 1e3 / 255;
|
|
41329
|
-
}, $ = function(r2, t222) {
|
|
41330
|
-
var n2 = c(r2);
|
|
41331
|
-
return { h: n2.h, s: n2.s, l: e$1(n2.l + 100 * t222, 0, 100), a: n2.a };
|
|
41332
|
-
}, j = (function() {
|
|
41333
|
-
function r2(r3) {
|
|
41334
|
-
this.parsed = x(r3)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
|
|
41335
|
-
}
|
|
41336
|
-
return r2.prototype.isValid = function() {
|
|
41337
|
-
return null !== this.parsed;
|
|
41338
|
-
}, r2.prototype.brightness = function() {
|
|
41339
|
-
return n(H(this.rgba), 2);
|
|
41340
|
-
}, r2.prototype.isDark = function() {
|
|
41341
|
-
return H(this.rgba) < 0.5;
|
|
41342
|
-
}, r2.prototype.isLight = function() {
|
|
41343
|
-
return H(this.rgba) >= 0.5;
|
|
41344
|
-
}, r2.prototype.toHex = function() {
|
|
41345
|
-
return r3 = o$1(this.rgba), t222 = r3.r, e2 = r3.g, u2 = r3.b, i2 = (a2 = r3.a) < 1 ? s(n(255 * a2)) : "", "#" + s(t222) + s(e2) + s(u2) + i2;
|
|
41346
|
-
var r3, t222, e2, u2, a2, i2;
|
|
41347
|
-
}, r2.prototype.toRgb = function() {
|
|
41348
|
-
return o$1(this.rgba);
|
|
41349
|
-
}, r2.prototype.toRgbString = function() {
|
|
41350
|
-
return r3 = o$1(this.rgba), t222 = r3.r, n2 = r3.g, e2 = r3.b, (u2 = r3.a) < 1 ? "rgba(" + t222 + ", " + n2 + ", " + e2 + ", " + u2 + ")" : "rgb(" + t222 + ", " + n2 + ", " + e2 + ")";
|
|
41351
|
-
var r3, t222, n2, e2, u2;
|
|
41352
|
-
}, r2.prototype.toHsl = function() {
|
|
41353
|
-
return d(c(this.rgba));
|
|
41354
|
-
}, r2.prototype.toHslString = function() {
|
|
41355
|
-
return r3 = d(c(this.rgba)), t222 = r3.h, n2 = r3.s, e2 = r3.l, (u2 = r3.a) < 1 ? "hsla(" + t222 + ", " + n2 + "%, " + e2 + "%, " + u2 + ")" : "hsl(" + t222 + ", " + n2 + "%, " + e2 + "%)";
|
|
41356
|
-
var r3, t222, n2, e2, u2;
|
|
41357
|
-
}, r2.prototype.toHsv = function() {
|
|
41358
|
-
return r3 = h(this.rgba), { h: n(r3.h), s: n(r3.s), v: n(r3.v), a: n(r3.a, 3) };
|
|
41359
|
-
var r3;
|
|
41360
|
-
}, r2.prototype.invert = function() {
|
|
41361
|
-
return w({ r: 255 - (r3 = this.rgba).r, g: 255 - r3.g, b: 255 - r3.b, a: r3.a });
|
|
41362
|
-
var r3;
|
|
41363
|
-
}, r2.prototype.saturate = function(r3) {
|
|
41364
|
-
return void 0 === r3 && (r3 = 0.1), w(M(this.rgba, r3));
|
|
41365
|
-
}, r2.prototype.desaturate = function(r3) {
|
|
41366
|
-
return void 0 === r3 && (r3 = 0.1), w(M(this.rgba, -r3));
|
|
41367
|
-
}, r2.prototype.grayscale = function() {
|
|
41368
|
-
return w(M(this.rgba, -1));
|
|
41369
|
-
}, r2.prototype.lighten = function(r3) {
|
|
41370
|
-
return void 0 === r3 && (r3 = 0.1), w($(this.rgba, r3));
|
|
41371
|
-
}, r2.prototype.darken = function(r3) {
|
|
41372
|
-
return void 0 === r3 && (r3 = 0.1), w($(this.rgba, -r3));
|
|
41373
|
-
}, r2.prototype.rotate = function(r3) {
|
|
41374
|
-
return void 0 === r3 && (r3 = 15), this.hue(this.hue() + r3);
|
|
41375
|
-
}, r2.prototype.alpha = function(r3) {
|
|
41376
|
-
return "number" == typeof r3 ? w({ r: (t222 = this.rgba).r, g: t222.g, b: t222.b, a: r3 }) : n(this.rgba.a, 3);
|
|
41377
|
-
var t222;
|
|
41378
|
-
}, r2.prototype.hue = function(r3) {
|
|
41379
|
-
var t222 = c(this.rgba);
|
|
41380
|
-
return "number" == typeof r3 ? w({ h: r3, s: t222.s, l: t222.l, a: t222.a }) : n(t222.h);
|
|
41381
|
-
}, r2.prototype.isEqual = function(r3) {
|
|
41382
|
-
return this.toHex() === w(r3).toHex();
|
|
41383
|
-
}, r2;
|
|
41384
|
-
})(), w = function(r2) {
|
|
41385
|
-
return r2 instanceof j ? r2 : new j(r2);
|
|
41386
|
-
}, S = [], k = function(r2) {
|
|
41387
|
-
r2.forEach(function(r3) {
|
|
41388
|
-
S.indexOf(r3) < 0 && (r3(j, y), S.push(r3));
|
|
41389
|
-
});
|
|
41390
|
-
};
|
|
41391
40817
|
var o = function(o2) {
|
|
41392
40818
|
var t222 = o2 / 255;
|
|
41393
40819
|
return t222 < 0.04045 ? t222 / 12.92 : Math.pow((t222 + 0.055) / 1.055, 2.4);
|
|
@@ -66103,7 +65529,7 @@ function ExternalVirtualKeyboard({
|
|
|
66103
65529
|
}
|
|
66104
65530
|
);
|
|
66105
65531
|
}
|
|
66106
|
-
const version = "0.7.21-dev.
|
|
65532
|
+
const version = "0.7.21-dev.355";
|
|
66107
65533
|
const latestDoenetmlVersion = version;
|
|
66108
65534
|
function subscribeToPinnedTheme() {
|
|
66109
65535
|
return () => {
|