@versini/ui-styles 6.0.7 → 6.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +587 -585
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -80,20 +80,20 @@ function Fi() {
|
|
|
80
80
|
}
|
|
81
81
|
}), zt;
|
|
82
82
|
}
|
|
83
|
-
var
|
|
84
|
-
const
|
|
83
|
+
var $i = /* @__PURE__ */ Fi();
|
|
84
|
+
const Ci = /* @__PURE__ */ Cn($i);
|
|
85
85
|
var Dt, Rr;
|
|
86
|
-
function
|
|
86
|
+
function Hi() {
|
|
87
87
|
if (Rr) return Dt;
|
|
88
88
|
Rr = 1;
|
|
89
89
|
var e = { inherit: "inherit", current: "currentcolor", transparent: "transparent", black: "#000", white: "#fff", slate: { 50: "oklch(98.4% 0.003 247.858)", 100: "oklch(96.8% 0.007 247.896)", 200: "oklch(92.9% 0.013 255.508)", 300: "oklch(86.9% 0.022 252.894)", 400: "oklch(70.4% 0.04 256.788)", 500: "oklch(55.4% 0.046 257.417)", 600: "oklch(44.6% 0.043 257.281)", 700: "oklch(37.2% 0.044 257.287)", 800: "oklch(27.9% 0.041 260.031)", 900: "oklch(20.8% 0.042 265.755)", 950: "oklch(12.9% 0.042 264.695)" }, gray: { 50: "oklch(98.5% 0.002 247.839)", 100: "oklch(96.7% 0.003 264.542)", 200: "oklch(92.8% 0.006 264.531)", 300: "oklch(87.2% 0.01 258.338)", 400: "oklch(70.7% 0.022 261.325)", 500: "oklch(55.1% 0.027 264.364)", 600: "oklch(44.6% 0.03 256.802)", 700: "oklch(37.3% 0.034 259.733)", 800: "oklch(27.8% 0.033 256.848)", 900: "oklch(21% 0.034 264.665)", 950: "oklch(13% 0.028 261.692)" }, zinc: { 50: "oklch(98.5% 0 0)", 100: "oklch(96.7% 0.001 286.375)", 200: "oklch(92% 0.004 286.32)", 300: "oklch(87.1% 0.006 286.286)", 400: "oklch(70.5% 0.015 286.067)", 500: "oklch(55.2% 0.016 285.938)", 600: "oklch(44.2% 0.017 285.786)", 700: "oklch(37% 0.013 285.805)", 800: "oklch(27.4% 0.006 286.033)", 900: "oklch(21% 0.006 285.885)", 950: "oklch(14.1% 0.005 285.823)" }, neutral: { 50: "oklch(98.5% 0 0)", 100: "oklch(97% 0 0)", 200: "oklch(92.2% 0 0)", 300: "oklch(87% 0 0)", 400: "oklch(70.8% 0 0)", 500: "oklch(55.6% 0 0)", 600: "oklch(43.9% 0 0)", 700: "oklch(37.1% 0 0)", 800: "oklch(26.9% 0 0)", 900: "oklch(20.5% 0 0)", 950: "oklch(14.5% 0 0)" }, stone: { 50: "oklch(98.5% 0.001 106.423)", 100: "oklch(97% 0.001 106.424)", 200: "oklch(92.3% 0.003 48.717)", 300: "oklch(86.9% 0.005 56.366)", 400: "oklch(70.9% 0.01 56.259)", 500: "oklch(55.3% 0.013 58.071)", 600: "oklch(44.4% 0.011 73.639)", 700: "oklch(37.4% 0.01 67.558)", 800: "oklch(26.8% 0.007 34.298)", 900: "oklch(21.6% 0.006 56.043)", 950: "oklch(14.7% 0.004 49.25)" }, red: { 50: "oklch(97.1% 0.013 17.38)", 100: "oklch(93.6% 0.032 17.717)", 200: "oklch(88.5% 0.062 18.334)", 300: "oklch(80.8% 0.114 19.571)", 400: "oklch(70.4% 0.191 22.216)", 500: "oklch(63.7% 0.237 25.331)", 600: "oklch(57.7% 0.245 27.325)", 700: "oklch(50.5% 0.213 27.518)", 800: "oklch(44.4% 0.177 26.899)", 900: "oklch(39.6% 0.141 25.723)", 950: "oklch(25.8% 0.092 26.042)" }, orange: { 50: "oklch(98% 0.016 73.684)", 100: "oklch(95.4% 0.038 75.164)", 200: "oklch(90.1% 0.076 70.697)", 300: "oklch(83.7% 0.128 66.29)", 400: "oklch(75% 0.183 55.934)", 500: "oklch(70.5% 0.213 47.604)", 600: "oklch(64.6% 0.222 41.116)", 700: "oklch(55.3% 0.195 38.402)", 800: "oklch(47% 0.157 37.304)", 900: "oklch(40.8% 0.123 38.172)", 950: "oklch(26.6% 0.079 36.259)" }, amber: { 50: "oklch(98.7% 0.022 95.277)", 100: "oklch(96.2% 0.059 95.617)", 200: "oklch(92.4% 0.12 95.746)", 300: "oklch(87.9% 0.169 91.605)", 400: "oklch(82.8% 0.189 84.429)", 500: "oklch(76.9% 0.188 70.08)", 600: "oklch(66.6% 0.179 58.318)", 700: "oklch(55.5% 0.163 48.998)", 800: "oklch(47.3% 0.137 46.201)", 900: "oklch(41.4% 0.112 45.904)", 950: "oklch(27.9% 0.077 45.635)" }, yellow: { 50: "oklch(98.7% 0.026 102.212)", 100: "oklch(97.3% 0.071 103.193)", 200: "oklch(94.5% 0.129 101.54)", 300: "oklch(90.5% 0.182 98.111)", 400: "oklch(85.2% 0.199 91.936)", 500: "oklch(79.5% 0.184 86.047)", 600: "oklch(68.1% 0.162 75.834)", 700: "oklch(55.4% 0.135 66.442)", 800: "oklch(47.6% 0.114 61.907)", 900: "oklch(42.1% 0.095 57.708)", 950: "oklch(28.6% 0.066 53.813)" }, lime: { 50: "oklch(98.6% 0.031 120.757)", 100: "oklch(96.7% 0.067 122.328)", 200: "oklch(93.8% 0.127 124.321)", 300: "oklch(89.7% 0.196 126.665)", 400: "oklch(84.1% 0.238 128.85)", 500: "oklch(76.8% 0.233 130.85)", 600: "oklch(64.8% 0.2 131.684)", 700: "oklch(53.2% 0.157 131.589)", 800: "oklch(45.3% 0.124 130.933)", 900: "oklch(40.5% 0.101 131.063)", 950: "oklch(27.4% 0.072 132.109)" }, green: { 50: "oklch(98.2% 0.018 155.826)", 100: "oklch(96.2% 0.044 156.743)", 200: "oklch(92.5% 0.084 155.995)", 300: "oklch(87.1% 0.15 154.449)", 400: "oklch(79.2% 0.209 151.711)", 500: "oklch(72.3% 0.219 149.579)", 600: "oklch(62.7% 0.194 149.214)", 700: "oklch(52.7% 0.154 150.069)", 800: "oklch(44.8% 0.119 151.328)", 900: "oklch(39.3% 0.095 152.535)", 950: "oklch(26.6% 0.065 152.934)" }, emerald: { 50: "oklch(97.9% 0.021 166.113)", 100: "oklch(95% 0.052 163.051)", 200: "oklch(90.5% 0.093 164.15)", 300: "oklch(84.5% 0.143 164.978)", 400: "oklch(76.5% 0.177 163.223)", 500: "oklch(69.6% 0.17 162.48)", 600: "oklch(59.6% 0.145 163.225)", 700: "oklch(50.8% 0.118 165.612)", 800: "oklch(43.2% 0.095 166.913)", 900: "oklch(37.8% 0.077 168.94)", 950: "oklch(26.2% 0.051 172.552)" }, teal: { 50: "oklch(98.4% 0.014 180.72)", 100: "oklch(95.3% 0.051 180.801)", 200: "oklch(91% 0.096 180.426)", 300: "oklch(85.5% 0.138 181.071)", 400: "oklch(77.7% 0.152 181.912)", 500: "oklch(70.4% 0.14 182.503)", 600: "oklch(60% 0.118 184.704)", 700: "oklch(51.1% 0.096 186.391)", 800: "oklch(43.7% 0.078 188.216)", 900: "oklch(38.6% 0.063 188.416)", 950: "oklch(27.7% 0.046 192.524)" }, cyan: { 50: "oklch(98.4% 0.019 200.873)", 100: "oklch(95.6% 0.045 203.388)", 200: "oklch(91.7% 0.08 205.041)", 300: "oklch(86.5% 0.127 207.078)", 400: "oklch(78.9% 0.154 211.53)", 500: "oklch(71.5% 0.143 215.221)", 600: "oklch(60.9% 0.126 221.723)", 700: "oklch(52% 0.105 223.128)", 800: "oklch(45% 0.085 224.283)", 900: "oklch(39.8% 0.07 227.392)", 950: "oklch(30.2% 0.056 229.695)" }, sky: { 50: "oklch(97.7% 0.013 236.62)", 100: "oklch(95.1% 0.026 236.824)", 200: "oklch(90.1% 0.058 230.902)", 300: "oklch(82.8% 0.111 230.318)", 400: "oklch(74.6% 0.16 232.661)", 500: "oklch(68.5% 0.169 237.323)", 600: "oklch(58.8% 0.158 241.966)", 700: "oklch(50% 0.134 242.749)", 800: "oklch(44.3% 0.11 240.79)", 900: "oklch(39.1% 0.09 240.876)", 950: "oklch(29.3% 0.066 243.157)" }, blue: { 50: "oklch(97% 0.014 254.604)", 100: "oklch(93.2% 0.032 255.585)", 200: "oklch(88.2% 0.059 254.128)", 300: "oklch(80.9% 0.105 251.813)", 400: "oklch(70.7% 0.165 254.624)", 500: "oklch(62.3% 0.214 259.815)", 600: "oklch(54.6% 0.245 262.881)", 700: "oklch(48.8% 0.243 264.376)", 800: "oklch(42.4% 0.199 265.638)", 900: "oklch(37.9% 0.146 265.522)", 950: "oklch(28.2% 0.091 267.935)" }, indigo: { 50: "oklch(96.2% 0.018 272.314)", 100: "oklch(93% 0.034 272.788)", 200: "oklch(87% 0.065 274.039)", 300: "oklch(78.5% 0.115 274.713)", 400: "oklch(67.3% 0.182 276.935)", 500: "oklch(58.5% 0.233 277.117)", 600: "oklch(51.1% 0.262 276.966)", 700: "oklch(45.7% 0.24 277.023)", 800: "oklch(39.8% 0.195 277.366)", 900: "oklch(35.9% 0.144 278.697)", 950: "oklch(25.7% 0.09 281.288)" }, violet: { 50: "oklch(96.9% 0.016 293.756)", 100: "oklch(94.3% 0.029 294.588)", 200: "oklch(89.4% 0.057 293.283)", 300: "oklch(81.1% 0.111 293.571)", 400: "oklch(70.2% 0.183 293.541)", 500: "oklch(60.6% 0.25 292.717)", 600: "oklch(54.1% 0.281 293.009)", 700: "oklch(49.1% 0.27 292.581)", 800: "oklch(43.2% 0.232 292.759)", 900: "oklch(38% 0.189 293.745)", 950: "oklch(28.3% 0.141 291.089)" }, purple: { 50: "oklch(97.7% 0.014 308.299)", 100: "oklch(94.6% 0.033 307.174)", 200: "oklch(90.2% 0.063 306.703)", 300: "oklch(82.7% 0.119 306.383)", 400: "oklch(71.4% 0.203 305.504)", 500: "oklch(62.7% 0.265 303.9)", 600: "oklch(55.8% 0.288 302.321)", 700: "oklch(49.6% 0.265 301.924)", 800: "oklch(43.8% 0.218 303.724)", 900: "oklch(38.1% 0.176 304.987)", 950: "oklch(29.1% 0.149 302.717)" }, fuchsia: { 50: "oklch(97.7% 0.017 320.058)", 100: "oklch(95.2% 0.037 318.852)", 200: "oklch(90.3% 0.076 319.62)", 300: "oklch(83.3% 0.145 321.434)", 400: "oklch(74% 0.238 322.16)", 500: "oklch(66.7% 0.295 322.15)", 600: "oklch(59.1% 0.293 322.896)", 700: "oklch(51.8% 0.253 323.949)", 800: "oklch(45.2% 0.211 324.591)", 900: "oklch(40.1% 0.17 325.612)", 950: "oklch(29.3% 0.136 325.661)" }, pink: { 50: "oklch(97.1% 0.014 343.198)", 100: "oklch(94.8% 0.028 342.258)", 200: "oklch(89.9% 0.061 343.231)", 300: "oklch(82.3% 0.12 346.018)", 400: "oklch(71.8% 0.202 349.761)", 500: "oklch(65.6% 0.241 354.308)", 600: "oklch(59.2% 0.249 0.584)", 700: "oklch(52.5% 0.223 3.958)", 800: "oklch(45.9% 0.187 3.815)", 900: "oklch(40.8% 0.153 2.432)", 950: "oklch(28.4% 0.109 3.907)" }, rose: { 50: "oklch(96.9% 0.015 12.422)", 100: "oklch(94.1% 0.03 12.58)", 200: "oklch(89.2% 0.058 10.001)", 300: "oklch(81% 0.117 11.638)", 400: "oklch(71.2% 0.194 13.428)", 500: "oklch(64.5% 0.246 16.439)", 600: "oklch(58.6% 0.253 17.585)", 700: "oklch(51.4% 0.222 16.935)", 800: "oklch(45.5% 0.188 13.697)", 900: "oklch(41% 0.159 10.272)", 950: "oklch(27.1% 0.105 12.094)" } };
|
|
90
90
|
return Dt = e, Dt;
|
|
91
91
|
}
|
|
92
92
|
var Nt, zr;
|
|
93
|
-
function
|
|
93
|
+
function Wi() {
|
|
94
94
|
if (zr) return Nt;
|
|
95
95
|
zr = 1;
|
|
96
|
-
const e = /* @__PURE__ */
|
|
96
|
+
const e = /* @__PURE__ */ Hi(), t = (s) => s.toFixed(7).replace(/(\.[0-9]+?)0+$/, "$1").replace(/\.0$/, ""), n = (s) => `${t(s / 16)}rem`, r = (s, d) => `${t(s / d)}em`, i = (s, d) => {
|
|
97
97
|
let a = s.replace("#", "");
|
|
98
98
|
a = a.length === 3 ? a.replace(/./g, "$&$&") : a;
|
|
99
99
|
let l = parseInt(a.substring(0, 2), 16), c = parseInt(a.substring(2, 4), 16), f = parseInt(a.substring(4, 6), 16);
|
|
@@ -1734,7 +1734,7 @@ function Wn() {
|
|
|
1734
1734
|
}(Ze, Ze.exports)), Ze.exports;
|
|
1735
1735
|
}
|
|
1736
1736
|
var Je = { exports: {} }, Nr;
|
|
1737
|
-
function
|
|
1737
|
+
function Ui() {
|
|
1738
1738
|
return Nr || (Nr = 1, function(e, t) {
|
|
1739
1739
|
t.__esModule = !0, t.default = n;
|
|
1740
1740
|
function n(r) {
|
|
@@ -1752,7 +1752,7 @@ function Yi() {
|
|
|
1752
1752
|
}(Je, Je.exports)), Je.exports;
|
|
1753
1753
|
}
|
|
1754
1754
|
var Ke = { exports: {} }, Ar;
|
|
1755
|
-
function
|
|
1755
|
+
function Yi() {
|
|
1756
1756
|
return Ar || (Ar = 1, function(e, t) {
|
|
1757
1757
|
t.__esModule = !0, t.default = n;
|
|
1758
1758
|
function n(r) {
|
|
@@ -1767,7 +1767,7 @@ function Qi() {
|
|
|
1767
1767
|
}(Ke, Ke.exports)), Ke.exports;
|
|
1768
1768
|
}
|
|
1769
1769
|
var et = { exports: {} }, Br;
|
|
1770
|
-
function
|
|
1770
|
+
function Qi() {
|
|
1771
1771
|
return Br || (Br = 1, function(e, t) {
|
|
1772
1772
|
t.__esModule = !0, t.default = n;
|
|
1773
1773
|
function n(r) {
|
|
@@ -1783,26 +1783,26 @@ function Xi() {
|
|
|
1783
1783
|
e.exports = t.default;
|
|
1784
1784
|
}(et, et.exports)), et.exports;
|
|
1785
1785
|
}
|
|
1786
|
-
var
|
|
1786
|
+
var Fr;
|
|
1787
1787
|
function yt() {
|
|
1788
|
-
if (
|
|
1789
|
-
|
|
1788
|
+
if (Fr) return ve;
|
|
1789
|
+
Fr = 1, ve.__esModule = !0, ve.stripComments = ve.ensureObject = ve.getProp = ve.unesc = void 0;
|
|
1790
1790
|
var e = i(/* @__PURE__ */ Wn());
|
|
1791
1791
|
ve.unesc = e.default;
|
|
1792
|
-
var t = i(/* @__PURE__ */
|
|
1792
|
+
var t = i(/* @__PURE__ */ Ui());
|
|
1793
1793
|
ve.getProp = t.default;
|
|
1794
|
-
var n = i(/* @__PURE__ */
|
|
1794
|
+
var n = i(/* @__PURE__ */ Yi());
|
|
1795
1795
|
ve.ensureObject = n.default;
|
|
1796
|
-
var r = i(/* @__PURE__ */
|
|
1796
|
+
var r = i(/* @__PURE__ */ Qi());
|
|
1797
1797
|
ve.stripComments = r.default;
|
|
1798
1798
|
function i(o) {
|
|
1799
1799
|
return o && o.__esModule ? o : { default: o };
|
|
1800
1800
|
}
|
|
1801
1801
|
return ve;
|
|
1802
1802
|
}
|
|
1803
|
-
var
|
|
1803
|
+
var $r;
|
|
1804
1804
|
function Oe() {
|
|
1805
|
-
return
|
|
1805
|
+
return $r || ($r = 1, function(e, t) {
|
|
1806
1806
|
t.__esModule = !0, t.default = void 0;
|
|
1807
1807
|
var n = /* @__PURE__ */ yt();
|
|
1808
1808
|
function r(d, a) {
|
|
@@ -2030,24 +2030,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2030
2030
|
var v = this.index(w);
|
|
2031
2031
|
this.nodes.splice(v + 1, 0, x), x.parent = this;
|
|
2032
2032
|
var M;
|
|
2033
|
-
for (var
|
|
2034
|
-
M = this.indexes[
|
|
2033
|
+
for (var R in this.indexes)
|
|
2034
|
+
M = this.indexes[R], v <= M && (this.indexes[R] = M + 1);
|
|
2035
2035
|
return this;
|
|
2036
2036
|
}, g.insertBefore = function(w, x) {
|
|
2037
2037
|
x.parent = this;
|
|
2038
2038
|
var v = this.index(w);
|
|
2039
2039
|
this.nodes.splice(v, 0, x), x.parent = this;
|
|
2040
2040
|
var M;
|
|
2041
|
-
for (var
|
|
2042
|
-
M = this.indexes[
|
|
2041
|
+
for (var R in this.indexes)
|
|
2042
|
+
M = this.indexes[R], M <= v && (this.indexes[R] = M + 1);
|
|
2043
2043
|
return this;
|
|
2044
2044
|
}, g._findChildAtPosition = function(w, x) {
|
|
2045
2045
|
var v = void 0;
|
|
2046
2046
|
return this.each(function(M) {
|
|
2047
2047
|
if (M.atPosition) {
|
|
2048
|
-
var
|
|
2049
|
-
if (
|
|
2050
|
-
return v =
|
|
2048
|
+
var R = M.atPosition(w, x);
|
|
2049
|
+
if (R)
|
|
2050
|
+
return v = R, !1;
|
|
2051
2051
|
} else if (M.isAtPosition(w, x))
|
|
2052
2052
|
return v = M, !1;
|
|
2053
2053
|
}), v;
|
|
@@ -2127,9 +2127,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2127
2127
|
});
|
|
2128
2128
|
}, g.split = function(w) {
|
|
2129
2129
|
var x = this, v = [];
|
|
2130
|
-
return this.reduce(function(M,
|
|
2131
|
-
var T = w.call(x,
|
|
2132
|
-
return v.push(
|
|
2130
|
+
return this.reduce(function(M, R, I) {
|
|
2131
|
+
var T = w.call(x, R);
|
|
2132
|
+
return v.push(R), T ? (M.push(v), v = []) : I === x.length - 1 && M.push(v), M;
|
|
2133
2133
|
}, []);
|
|
2134
2134
|
}, g.map = function(w) {
|
|
2135
2135
|
return this.nodes.map(w);
|
|
@@ -2546,10 +2546,10 @@ function Zn() {
|
|
|
2546
2546
|
t.default = d, e.exports = t.default;
|
|
2547
2547
|
}(lt, lt.exports)), lt.exports;
|
|
2548
2548
|
}
|
|
2549
|
-
var Bt = {},
|
|
2550
|
-
function
|
|
2551
|
-
if (Kr) return
|
|
2552
|
-
Kr = 1,
|
|
2549
|
+
var Bt = {}, Ft, Kr;
|
|
2550
|
+
function Xi() {
|
|
2551
|
+
if (Kr) return Ft;
|
|
2552
|
+
Kr = 1, Ft = e;
|
|
2553
2553
|
function e(n, r) {
|
|
2554
2554
|
if (t("noDeprecation"))
|
|
2555
2555
|
return n;
|
|
@@ -2573,7 +2573,7 @@ function Gi() {
|
|
|
2573
2573
|
var r = Pr.localStorage[n];
|
|
2574
2574
|
return r == null ? !1 : String(r).toLowerCase() === "true";
|
|
2575
2575
|
}
|
|
2576
|
-
return
|
|
2576
|
+
return Ft;
|
|
2577
2577
|
}
|
|
2578
2578
|
var en;
|
|
2579
2579
|
function Jn() {
|
|
@@ -2584,12 +2584,12 @@ function Jn() {
|
|
|
2584
2584
|
return v && v.__esModule ? v : { default: v };
|
|
2585
2585
|
}
|
|
2586
2586
|
function d(v, M) {
|
|
2587
|
-
for (var
|
|
2588
|
-
var I = M[
|
|
2587
|
+
for (var R = 0; R < M.length; R++) {
|
|
2588
|
+
var I = M[R];
|
|
2589
2589
|
I.enumerable = I.enumerable || !1, I.configurable = !0, "value" in I && (I.writable = !0), Object.defineProperty(v, I.key, I);
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
|
-
function a(v, M,
|
|
2592
|
+
function a(v, M, R) {
|
|
2593
2593
|
return M && d(v.prototype, M), v;
|
|
2594
2594
|
}
|
|
2595
2595
|
function l(v, M) {
|
|
@@ -2600,24 +2600,24 @@ function Jn() {
|
|
|
2600
2600
|
return I.__proto__ = T, I;
|
|
2601
2601
|
}, c(v, M);
|
|
2602
2602
|
}
|
|
2603
|
-
var f = /* @__PURE__ */
|
|
2603
|
+
var f = /* @__PURE__ */ Xi(), p = /^('|")([^]*)\1$/, b = f(function() {
|
|
2604
2604
|
}, "Assigning an attribute a value containing characters that might need to be escaped is deprecated. Call attribute.setValue() instead."), _ = f(function() {
|
|
2605
2605
|
}, "Assigning attr.quoted is deprecated and has no effect. Assign to attr.quoteMark instead."), u = f(function() {
|
|
2606
2606
|
}, "Constructing an Attribute selector with a value without specifying quoteMark is deprecated. Note: The value should be unescaped now.");
|
|
2607
2607
|
function h(v) {
|
|
2608
|
-
var M = !1,
|
|
2609
|
-
return T && (
|
|
2608
|
+
var M = !1, R = null, I = v, T = I.match(p);
|
|
2609
|
+
return T && (R = T[1], I = T[2]), I = (0, n.default)(I), I !== v && (M = !0), {
|
|
2610
2610
|
deprecatedUsage: M,
|
|
2611
2611
|
unescaped: I,
|
|
2612
|
-
quoteMark:
|
|
2612
|
+
quoteMark: R
|
|
2613
2613
|
};
|
|
2614
2614
|
}
|
|
2615
2615
|
function g(v) {
|
|
2616
2616
|
if (v.quoteMark !== void 0 || v.value === void 0)
|
|
2617
2617
|
return v;
|
|
2618
2618
|
u();
|
|
2619
|
-
var M = h(v.value),
|
|
2620
|
-
return v.raws || (v.raws = {}), v.raws.value === void 0 && (v.raws.value = v.value), v.value = I, v.quoteMark =
|
|
2619
|
+
var M = h(v.value), R = M.quoteMark, I = M.unescaped;
|
|
2620
|
+
return v.raws || (v.raws = {}), v.raws.value === void 0 && (v.raws.value = v.value), v.value = I, v.quoteMark = R, v;
|
|
2621
2621
|
}
|
|
2622
2622
|
var m = /* @__PURE__ */ function(v) {
|
|
2623
2623
|
l(M, v);
|
|
@@ -2632,18 +2632,18 @@ function Jn() {
|
|
|
2632
2632
|
}, "Setting attr.raws.unquoted is deprecated and has no effect. attr.value is unescaped by default now.")
|
|
2633
2633
|
}), T._constructed = !0, T;
|
|
2634
2634
|
}
|
|
2635
|
-
var
|
|
2636
|
-
return
|
|
2635
|
+
var R = M.prototype;
|
|
2636
|
+
return R.getQuotedValue = function(T) {
|
|
2637
2637
|
T === void 0 && (T = {});
|
|
2638
|
-
var S = this._determineQuoteMark(T),
|
|
2638
|
+
var S = this._determineQuoteMark(T), $ = w[S], Y = (0, t.default)(this._value, $);
|
|
2639
2639
|
return Y;
|
|
2640
|
-
},
|
|
2640
|
+
}, R._determineQuoteMark = function(T) {
|
|
2641
2641
|
return T.smart ? this.smartQuoteMark(T) : this.preferredQuoteMark(T);
|
|
2642
|
-
},
|
|
2642
|
+
}, R.setValue = function(T, S) {
|
|
2643
2643
|
S === void 0 && (S = {}), this._value = T, this._quoteMark = this._determineQuoteMark(S), this._syncRawValue();
|
|
2644
|
-
},
|
|
2645
|
-
var S = this.value,
|
|
2646
|
-
if (
|
|
2644
|
+
}, R.smartQuoteMark = function(T) {
|
|
2645
|
+
var S = this.value, $ = S.replace(/[^']/g, "").length, Y = S.replace(/[^"]/g, "").length;
|
|
2646
|
+
if ($ + Y === 0) {
|
|
2647
2647
|
var te = (0, t.default)(S, {
|
|
2648
2648
|
isIdentifier: !0
|
|
2649
2649
|
});
|
|
@@ -2656,37 +2656,37 @@ function Jn() {
|
|
|
2656
2656
|
return ie;
|
|
2657
2657
|
}
|
|
2658
2658
|
return K;
|
|
2659
|
-
} else return Y ===
|
|
2660
|
-
},
|
|
2659
|
+
} else return Y === $ ? this.preferredQuoteMark(T) : Y < $ ? M.DOUBLE_QUOTE : M.SINGLE_QUOTE;
|
|
2660
|
+
}, R.preferredQuoteMark = function(T) {
|
|
2661
2661
|
var S = T.preferCurrentQuoteMark ? this.quoteMark : T.quoteMark;
|
|
2662
2662
|
return S === void 0 && (S = T.preferCurrentQuoteMark ? T.quoteMark : this.quoteMark), S === void 0 && (S = M.DOUBLE_QUOTE), S;
|
|
2663
|
-
},
|
|
2663
|
+
}, R._syncRawValue = function() {
|
|
2664
2664
|
var T = (0, t.default)(this._value, w[this.quoteMark]);
|
|
2665
2665
|
T === this._value ? this.raws && delete this.raws.value : this.raws.value = T;
|
|
2666
|
-
},
|
|
2666
|
+
}, R._handleEscapes = function(T, S) {
|
|
2667
2667
|
if (this._constructed) {
|
|
2668
|
-
var
|
|
2668
|
+
var $ = (0, t.default)(S, {
|
|
2669
2669
|
isIdentifier: !0
|
|
2670
2670
|
});
|
|
2671
|
-
|
|
2671
|
+
$ !== S ? this.raws[T] = $ : delete this.raws[T];
|
|
2672
2672
|
}
|
|
2673
|
-
},
|
|
2673
|
+
}, R._spacesFor = function(T) {
|
|
2674
2674
|
var S = {
|
|
2675
2675
|
before: "",
|
|
2676
2676
|
after: ""
|
|
2677
|
-
},
|
|
2678
|
-
return Object.assign(S,
|
|
2679
|
-
},
|
|
2680
|
-
S === void 0 && (S = T),
|
|
2677
|
+
}, $ = this.spaces[T] || {}, Y = this.raws.spaces && this.raws.spaces[T] || {};
|
|
2678
|
+
return Object.assign(S, $, Y);
|
|
2679
|
+
}, R._stringFor = function(T, S, $) {
|
|
2680
|
+
S === void 0 && (S = T), $ === void 0 && ($ = x);
|
|
2681
2681
|
var Y = this._spacesFor(S);
|
|
2682
|
-
return
|
|
2683
|
-
},
|
|
2684
|
-
var S = 1,
|
|
2685
|
-
if (S +=
|
|
2682
|
+
return $(this.stringifyProperty(T), Y);
|
|
2683
|
+
}, R.offsetOf = function(T) {
|
|
2684
|
+
var S = 1, $ = this._spacesFor("attribute");
|
|
2685
|
+
if (S += $.before.length, T === "namespace" || T === "ns")
|
|
2686
2686
|
return this.namespace ? S : -1;
|
|
2687
2687
|
if (T === "attributeNS" || (S += this.namespaceString.length, this.namespace && (S += 1), T === "attribute"))
|
|
2688
2688
|
return S;
|
|
2689
|
-
S += this.stringifyProperty("attribute").length, S +=
|
|
2689
|
+
S += this.stringifyProperty("attribute").length, S += $.after.length;
|
|
2690
2690
|
var Y = this._spacesFor("operator");
|
|
2691
2691
|
S += Y.before.length;
|
|
2692
2692
|
var te = this.stringifyProperty("operator");
|
|
@@ -2701,10 +2701,10 @@ function Jn() {
|
|
|
2701
2701
|
S += ie.length, S += K.after.length;
|
|
2702
2702
|
var H = this._spacesFor("insensitive");
|
|
2703
2703
|
return S += H.before.length, T === "insensitive" && this.insensitive ? S : -1;
|
|
2704
|
-
},
|
|
2704
|
+
}, R.toString = function() {
|
|
2705
2705
|
var T = this, S = [this.rawSpaceBefore, "["];
|
|
2706
|
-
return S.push(this._stringFor("qualifiedAttribute", "attribute")), this.operator && (this.value || this.value === "") && (S.push(this._stringFor("operator")), S.push(this._stringFor("value")), S.push(this._stringFor("insensitiveFlag", "insensitive", function(
|
|
2707
|
-
return
|
|
2706
|
+
return S.push(this._stringFor("qualifiedAttribute", "attribute")), this.operator && (this.value || this.value === "") && (S.push(this._stringFor("operator")), S.push(this._stringFor("value")), S.push(this._stringFor("insensitiveFlag", "insensitive", function($, Y) {
|
|
2707
|
+
return $.length > 0 && !T.quoted && Y.before.length === 0 && !(T.spaces.value && T.spaces.value.after) && (Y.before = " "), x($, Y);
|
|
2708
2708
|
}))), S.push("]"), S.push(this.rawSpaceAfter), S.join("");
|
|
2709
2709
|
}, a(M, [{
|
|
2710
2710
|
key: "quoted",
|
|
@@ -2750,8 +2750,8 @@ function Jn() {
|
|
|
2750
2750
|
},
|
|
2751
2751
|
set: function(T) {
|
|
2752
2752
|
if (this._constructed) {
|
|
2753
|
-
var S = h(T),
|
|
2754
|
-
if (
|
|
2753
|
+
var S = h(T), $ = S.deprecatedUsage, Y = S.unescaped, te = S.quoteMark;
|
|
2754
|
+
if ($ && b(), Y === this._value && te === this._quoteMark)
|
|
2755
2755
|
return;
|
|
2756
2756
|
this._value = Y, this._quoteMark = te, this._syncRawValue();
|
|
2757
2757
|
} else
|
|
@@ -2867,7 +2867,7 @@ function ti() {
|
|
|
2867
2867
|
}(ft, ft.exports)), ft.exports;
|
|
2868
2868
|
}
|
|
2869
2869
|
var dt = { exports: {} }, on;
|
|
2870
|
-
function
|
|
2870
|
+
function Gi() {
|
|
2871
2871
|
return on || (on = 1, function(e, t) {
|
|
2872
2872
|
t.__esModule = !0, t.default = n;
|
|
2873
2873
|
function n(r) {
|
|
@@ -2878,75 +2878,75 @@ function ji() {
|
|
|
2878
2878
|
e.exports = t.default;
|
|
2879
2879
|
}(dt, dt.exports)), dt.exports;
|
|
2880
2880
|
}
|
|
2881
|
-
var
|
|
2881
|
+
var $t = {}, N = {}, an;
|
|
2882
2882
|
function ri() {
|
|
2883
|
-
if (an) return
|
|
2884
|
-
an = 1,
|
|
2883
|
+
if (an) return N;
|
|
2884
|
+
an = 1, N.__esModule = !0, N.combinator = N.word = N.comment = N.str = N.tab = N.newline = N.feed = N.cr = N.backslash = N.bang = N.slash = N.doubleQuote = N.singleQuote = N.space = N.greaterThan = N.pipe = N.equals = N.plus = N.caret = N.tilde = N.dollar = N.closeSquare = N.openSquare = N.closeParenthesis = N.openParenthesis = N.semicolon = N.colon = N.comma = N.at = N.asterisk = N.ampersand = void 0;
|
|
2885
2885
|
var e = 38;
|
|
2886
|
-
|
|
2886
|
+
N.ampersand = e;
|
|
2887
2887
|
var t = 42;
|
|
2888
|
-
|
|
2888
|
+
N.asterisk = t;
|
|
2889
2889
|
var n = 64;
|
|
2890
|
-
|
|
2890
|
+
N.at = n;
|
|
2891
2891
|
var r = 44;
|
|
2892
|
-
|
|
2892
|
+
N.comma = r;
|
|
2893
2893
|
var i = 58;
|
|
2894
|
-
|
|
2894
|
+
N.colon = i;
|
|
2895
2895
|
var o = 59;
|
|
2896
|
-
|
|
2896
|
+
N.semicolon = o;
|
|
2897
2897
|
var s = 40;
|
|
2898
|
-
|
|
2898
|
+
N.openParenthesis = s;
|
|
2899
2899
|
var d = 41;
|
|
2900
|
-
|
|
2900
|
+
N.closeParenthesis = d;
|
|
2901
2901
|
var a = 91;
|
|
2902
|
-
|
|
2902
|
+
N.openSquare = a;
|
|
2903
2903
|
var l = 93;
|
|
2904
|
-
|
|
2904
|
+
N.closeSquare = l;
|
|
2905
2905
|
var c = 36;
|
|
2906
|
-
|
|
2906
|
+
N.dollar = c;
|
|
2907
2907
|
var f = 126;
|
|
2908
|
-
|
|
2908
|
+
N.tilde = f;
|
|
2909
2909
|
var p = 94;
|
|
2910
|
-
|
|
2910
|
+
N.caret = p;
|
|
2911
2911
|
var b = 43;
|
|
2912
|
-
|
|
2912
|
+
N.plus = b;
|
|
2913
2913
|
var _ = 61;
|
|
2914
|
-
|
|
2914
|
+
N.equals = _;
|
|
2915
2915
|
var u = 124;
|
|
2916
|
-
|
|
2916
|
+
N.pipe = u;
|
|
2917
2917
|
var h = 62;
|
|
2918
|
-
|
|
2918
|
+
N.greaterThan = h;
|
|
2919
2919
|
var g = 32;
|
|
2920
|
-
|
|
2920
|
+
N.space = g;
|
|
2921
2921
|
var m = 39;
|
|
2922
|
-
|
|
2922
|
+
N.singleQuote = m;
|
|
2923
2923
|
var w = 34;
|
|
2924
|
-
|
|
2924
|
+
N.doubleQuote = w;
|
|
2925
2925
|
var x = 47;
|
|
2926
|
-
|
|
2926
|
+
N.slash = x;
|
|
2927
2927
|
var v = 33;
|
|
2928
|
-
|
|
2928
|
+
N.bang = v;
|
|
2929
2929
|
var M = 92;
|
|
2930
|
-
|
|
2931
|
-
var
|
|
2932
|
-
|
|
2930
|
+
N.backslash = M;
|
|
2931
|
+
var R = 13;
|
|
2932
|
+
N.cr = R;
|
|
2933
2933
|
var I = 12;
|
|
2934
|
-
|
|
2934
|
+
N.feed = I;
|
|
2935
2935
|
var T = 10;
|
|
2936
|
-
|
|
2936
|
+
N.newline = T;
|
|
2937
2937
|
var S = 9;
|
|
2938
|
-
|
|
2939
|
-
var
|
|
2940
|
-
|
|
2938
|
+
N.tab = S;
|
|
2939
|
+
var $ = m;
|
|
2940
|
+
N.str = $;
|
|
2941
2941
|
var Y = -1;
|
|
2942
|
-
|
|
2942
|
+
N.comment = Y;
|
|
2943
2943
|
var te = -2;
|
|
2944
|
-
|
|
2944
|
+
N.word = te;
|
|
2945
2945
|
var K = -3;
|
|
2946
|
-
return
|
|
2946
|
+
return N.combinator = K, N;
|
|
2947
2947
|
}
|
|
2948
2948
|
var sn;
|
|
2949
|
-
function
|
|
2949
|
+
function ji() {
|
|
2950
2950
|
return sn || (sn = 1, function(e) {
|
|
2951
2951
|
e.__esModule = !0, e.default = _, e.FIELDS = void 0;
|
|
2952
2952
|
var t = o(/* @__PURE__ */ ri()), n, r;
|
|
@@ -3007,12 +3007,12 @@ function Vi() {
|
|
|
3007
3007
|
};
|
|
3008
3008
|
e.FIELDS = b;
|
|
3009
3009
|
function _(u) {
|
|
3010
|
-
var h = [], g = u.css.valueOf(), m = g, w = m.length, x = -1, v = 1, M = 0,
|
|
3011
|
-
function
|
|
3010
|
+
var h = [], g = u.css.valueOf(), m = g, w = m.length, x = -1, v = 1, M = 0, R = 0, I, T, S, $, Y, te, K, ie, H, se, fe, ke, he;
|
|
3011
|
+
function L(z, D) {
|
|
3012
3012
|
if (u.safe)
|
|
3013
|
-
g +=
|
|
3013
|
+
g += D, H = g.length - 1;
|
|
3014
3014
|
else
|
|
3015
|
-
throw u.error("Unclosed " +
|
|
3015
|
+
throw u.error("Unclosed " + z, v, M - x, M);
|
|
3016
3016
|
}
|
|
3017
3017
|
for (; M < w; ) {
|
|
3018
3018
|
switch (I = g.charCodeAt(M), I === t.newline && (x = M, v += 1), I) {
|
|
@@ -3025,7 +3025,7 @@ function Vi() {
|
|
|
3025
3025
|
do
|
|
3026
3026
|
H += 1, I = g.charCodeAt(H), I === t.newline && (x = H, v += 1);
|
|
3027
3027
|
while (I === t.space || I === t.newline || I === t.tab || I === t.cr || I === t.feed);
|
|
3028
|
-
he = t.space,
|
|
3028
|
+
he = t.space, $ = v, S = H - x - 1, R = H;
|
|
3029
3029
|
break;
|
|
3030
3030
|
case t.plus:
|
|
3031
3031
|
case t.greaterThan:
|
|
@@ -3035,7 +3035,7 @@ function Vi() {
|
|
|
3035
3035
|
do
|
|
3036
3036
|
H += 1, I = g.charCodeAt(H);
|
|
3037
3037
|
while (I === t.plus || I === t.greaterThan || I === t.tilde || I === t.pipe);
|
|
3038
|
-
he = t.combinator,
|
|
3038
|
+
he = t.combinator, $ = v, S = M - x, R = H;
|
|
3039
3039
|
break;
|
|
3040
3040
|
// Consume these characters as single tokens.
|
|
3041
3041
|
case t.asterisk:
|
|
@@ -3051,20 +3051,20 @@ function Vi() {
|
|
|
3051
3051
|
case t.semicolon:
|
|
3052
3052
|
case t.openParenthesis:
|
|
3053
3053
|
case t.closeParenthesis:
|
|
3054
|
-
H = M, he = I,
|
|
3054
|
+
H = M, he = I, $ = v, S = M - x, R = H + 1;
|
|
3055
3055
|
break;
|
|
3056
3056
|
case t.singleQuote:
|
|
3057
3057
|
case t.doubleQuote:
|
|
3058
3058
|
ke = I === t.singleQuote ? "'" : '"', H = M;
|
|
3059
3059
|
do
|
|
3060
|
-
for (Y = !1, H = g.indexOf(ke, H + 1), H === -1 &&
|
|
3060
|
+
for (Y = !1, H = g.indexOf(ke, H + 1), H === -1 && L("quote", ke), te = H; g.charCodeAt(te - 1) === t.backslash; )
|
|
3061
3061
|
te -= 1, Y = !Y;
|
|
3062
3062
|
while (Y);
|
|
3063
|
-
he = t.str,
|
|
3063
|
+
he = t.str, $ = v, S = M - x, R = H + 1;
|
|
3064
3064
|
break;
|
|
3065
3065
|
default:
|
|
3066
|
-
I === t.slash && g.charCodeAt(M + 1) === t.asterisk ? (H = g.indexOf("*/", M + 2) + 1, H === 0 &&
|
|
3067
|
-
`), K = ie.length - 1, K > 0 ? (se = v + K, fe = H - ie[K].length) : (se = v, fe = x), he = t.comment, v = se,
|
|
3066
|
+
I === t.slash && g.charCodeAt(M + 1) === t.asterisk ? (H = g.indexOf("*/", M + 2) + 1, H === 0 && L("comment", "*/"), T = g.slice(M, H + 1), ie = T.split(`
|
|
3067
|
+
`), K = ie.length - 1, K > 0 ? (se = v + K, fe = H - ie[K].length) : (se = v, fe = x), he = t.comment, v = se, $ = se, S = H - fe) : I === t.slash ? (H = M, he = I, $ = v, S = M - x, R = H + 1) : (H = f(g, M), he = t.word, $ = v, S = H - x), R = H + 1;
|
|
3068
3068
|
break;
|
|
3069
3069
|
}
|
|
3070
3070
|
h.push([
|
|
@@ -3074,111 +3074,111 @@ function Vi() {
|
|
|
3074
3074
|
// [1] Starting line
|
|
3075
3075
|
M - x,
|
|
3076
3076
|
// [2] Starting column
|
|
3077
|
-
|
|
3077
|
+
$,
|
|
3078
3078
|
// [3] Ending line
|
|
3079
3079
|
S,
|
|
3080
3080
|
// [4] Ending column
|
|
3081
3081
|
M,
|
|
3082
3082
|
// [5] Start position / Source index
|
|
3083
|
-
|
|
3083
|
+
R
|
|
3084
3084
|
// [6] End position
|
|
3085
|
-
]), fe && (x = fe, fe = null), M =
|
|
3085
|
+
]), fe && (x = fe, fe = null), M = R;
|
|
3086
3086
|
}
|
|
3087
3087
|
return h;
|
|
3088
3088
|
}
|
|
3089
|
-
}(
|
|
3089
|
+
}($t)), $t;
|
|
3090
3090
|
}
|
|
3091
3091
|
var ln;
|
|
3092
|
-
function
|
|
3092
|
+
function Vi() {
|
|
3093
3093
|
return ln || (ln = 1, function(e, t) {
|
|
3094
3094
|
t.__esModule = !0, t.default = void 0;
|
|
3095
|
-
var n =
|
|
3095
|
+
var n = R(/* @__PURE__ */ Un()), r = R(/* @__PURE__ */ Yn()), i = R(/* @__PURE__ */ Qn()), o = R(/* @__PURE__ */ Xn()), s = R(/* @__PURE__ */ Gn()), d = R(/* @__PURE__ */ jn()), a = R(/* @__PURE__ */ Vn()), l = R(/* @__PURE__ */ Zn()), c = M(/* @__PURE__ */ Jn()), f = R(/* @__PURE__ */ Kn()), p = R(/* @__PURE__ */ ei()), b = R(/* @__PURE__ */ ti()), _ = R(/* @__PURE__ */ Gi()), u = M(/* @__PURE__ */ ji()), h = M(/* @__PURE__ */ ri()), g = M(/* @__PURE__ */ ce()), m = /* @__PURE__ */ yt(), w, x;
|
|
3096
3096
|
function v() {
|
|
3097
3097
|
if (typeof WeakMap != "function") return null;
|
|
3098
|
-
var
|
|
3098
|
+
var L = /* @__PURE__ */ new WeakMap();
|
|
3099
3099
|
return v = function() {
|
|
3100
|
-
return
|
|
3101
|
-
},
|
|
3100
|
+
return L;
|
|
3101
|
+
}, L;
|
|
3102
3102
|
}
|
|
3103
|
-
function M(
|
|
3104
|
-
if (
|
|
3105
|
-
return
|
|
3106
|
-
if (
|
|
3107
|
-
return { default:
|
|
3108
|
-
var
|
|
3109
|
-
if (
|
|
3110
|
-
return
|
|
3111
|
-
var
|
|
3112
|
-
for (var E in
|
|
3113
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3114
|
-
var B = k ? Object.getOwnPropertyDescriptor(
|
|
3115
|
-
B && (B.get || B.set) ? Object.defineProperty(
|
|
3103
|
+
function M(L) {
|
|
3104
|
+
if (L && L.__esModule)
|
|
3105
|
+
return L;
|
|
3106
|
+
if (L === null || typeof L != "object" && typeof L != "function")
|
|
3107
|
+
return { default: L };
|
|
3108
|
+
var z = v();
|
|
3109
|
+
if (z && z.has(L))
|
|
3110
|
+
return z.get(L);
|
|
3111
|
+
var D = {}, k = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3112
|
+
for (var E in L)
|
|
3113
|
+
if (Object.prototype.hasOwnProperty.call(L, E)) {
|
|
3114
|
+
var B = k ? Object.getOwnPropertyDescriptor(L, E) : null;
|
|
3115
|
+
B && (B.get || B.set) ? Object.defineProperty(D, E, B) : D[E] = L[E];
|
|
3116
3116
|
}
|
|
3117
|
-
return
|
|
3117
|
+
return D.default = L, z && z.set(L, D), D;
|
|
3118
3118
|
}
|
|
3119
|
-
function L
|
|
3120
|
-
return
|
|
3119
|
+
function R(L) {
|
|
3120
|
+
return L && L.__esModule ? L : { default: L };
|
|
3121
3121
|
}
|
|
3122
|
-
function I(
|
|
3123
|
-
for (var
|
|
3124
|
-
var k =
|
|
3125
|
-
k.enumerable = k.enumerable || !1, k.configurable = !0, "value" in k && (k.writable = !0), Object.defineProperty(
|
|
3122
|
+
function I(L, z) {
|
|
3123
|
+
for (var D = 0; D < z.length; D++) {
|
|
3124
|
+
var k = z[D];
|
|
3125
|
+
k.enumerable = k.enumerable || !1, k.configurable = !0, "value" in k && (k.writable = !0), Object.defineProperty(L, k.key, k);
|
|
3126
3126
|
}
|
|
3127
3127
|
}
|
|
3128
|
-
function T(
|
|
3129
|
-
return
|
|
3128
|
+
function T(L, z, D) {
|
|
3129
|
+
return z && I(L.prototype, z), L;
|
|
3130
3130
|
}
|
|
3131
|
-
var S = (w = {}, w[h.space] = !0, w[h.cr] = !0, w[h.feed] = !0, w[h.newline] = !0, w[h.tab] = !0, w),
|
|
3132
|
-
function Y(
|
|
3131
|
+
var S = (w = {}, w[h.space] = !0, w[h.cr] = !0, w[h.feed] = !0, w[h.newline] = !0, w[h.tab] = !0, w), $ = Object.assign({}, S, (x = {}, x[h.comment] = !0, x));
|
|
3132
|
+
function Y(L) {
|
|
3133
3133
|
return {
|
|
3134
|
-
line:
|
|
3135
|
-
column:
|
|
3134
|
+
line: L[u.FIELDS.START_LINE],
|
|
3135
|
+
column: L[u.FIELDS.START_COL]
|
|
3136
3136
|
};
|
|
3137
3137
|
}
|
|
3138
|
-
function te(
|
|
3138
|
+
function te(L) {
|
|
3139
3139
|
return {
|
|
3140
|
-
line:
|
|
3141
|
-
column:
|
|
3140
|
+
line: L[u.FIELDS.END_LINE],
|
|
3141
|
+
column: L[u.FIELDS.END_COL]
|
|
3142
3142
|
};
|
|
3143
3143
|
}
|
|
3144
|
-
function K(
|
|
3144
|
+
function K(L, z, D, k) {
|
|
3145
3145
|
return {
|
|
3146
3146
|
start: {
|
|
3147
|
-
line:
|
|
3148
|
-
column:
|
|
3147
|
+
line: L,
|
|
3148
|
+
column: z
|
|
3149
3149
|
},
|
|
3150
3150
|
end: {
|
|
3151
|
-
line:
|
|
3151
|
+
line: D,
|
|
3152
3152
|
column: k
|
|
3153
3153
|
}
|
|
3154
3154
|
};
|
|
3155
3155
|
}
|
|
3156
|
-
function ie(
|
|
3157
|
-
return K(
|
|
3156
|
+
function ie(L) {
|
|
3157
|
+
return K(L[u.FIELDS.START_LINE], L[u.FIELDS.START_COL], L[u.FIELDS.END_LINE], L[u.FIELDS.END_COL]);
|
|
3158
3158
|
}
|
|
3159
|
-
function H(
|
|
3160
|
-
if (
|
|
3161
|
-
return K(
|
|
3159
|
+
function H(L, z) {
|
|
3160
|
+
if (L)
|
|
3161
|
+
return K(L[u.FIELDS.START_LINE], L[u.FIELDS.START_COL], z[u.FIELDS.END_LINE], z[u.FIELDS.END_COL]);
|
|
3162
3162
|
}
|
|
3163
|
-
function se(
|
|
3164
|
-
var
|
|
3165
|
-
if (typeof
|
|
3166
|
-
return
|
|
3163
|
+
function se(L, z) {
|
|
3164
|
+
var D = L[z];
|
|
3165
|
+
if (typeof D == "string")
|
|
3166
|
+
return D.indexOf("\\") !== -1 && ((0, m.ensureObject)(L, "raws"), L[z] = (0, m.unesc)(D), L.raws[z] === void 0 && (L.raws[z] = D)), L;
|
|
3167
3167
|
}
|
|
3168
|
-
function fe(
|
|
3169
|
-
for (var
|
|
3170
|
-
k.push(
|
|
3168
|
+
function fe(L, z) {
|
|
3169
|
+
for (var D = -1, k = []; (D = L.indexOf(z, D + 1)) !== -1; )
|
|
3170
|
+
k.push(D);
|
|
3171
3171
|
return k;
|
|
3172
3172
|
}
|
|
3173
3173
|
function ke() {
|
|
3174
|
-
var
|
|
3175
|
-
return
|
|
3176
|
-
return
|
|
3174
|
+
var L = Array.prototype.concat.apply([], arguments);
|
|
3175
|
+
return L.filter(function(z, D) {
|
|
3176
|
+
return D === L.indexOf(z);
|
|
3177
3177
|
});
|
|
3178
3178
|
}
|
|
3179
3179
|
var he = /* @__PURE__ */ function() {
|
|
3180
|
-
function
|
|
3181
|
-
k === void 0 && (k = {}), this.rule =
|
|
3180
|
+
function L(D, k) {
|
|
3181
|
+
k === void 0 && (k = {}), this.rule = D, this.options = Object.assign({
|
|
3182
3182
|
lossy: !1,
|
|
3183
3183
|
safe: !1
|
|
3184
3184
|
}, k), this.position = 0, this.css = typeof this.rule == "string" ? this.rule : this.rule.selector, this.tokens = (0, u.default)({
|
|
@@ -3200,13 +3200,13 @@ function Zi() {
|
|
|
3200
3200
|
});
|
|
3201
3201
|
this.root.append(B), this.current = B, this.loop();
|
|
3202
3202
|
}
|
|
3203
|
-
var
|
|
3204
|
-
return
|
|
3203
|
+
var z = L.prototype;
|
|
3204
|
+
return z._errorGenerator = function() {
|
|
3205
3205
|
var k = this;
|
|
3206
3206
|
return function(E, B) {
|
|
3207
3207
|
return typeof k.rule == "string" ? new Error(E) : k.rule.error(E, B);
|
|
3208
3208
|
};
|
|
3209
|
-
},
|
|
3209
|
+
}, z.attribute = function() {
|
|
3210
3210
|
var k = [], E = this.currToken;
|
|
3211
3211
|
for (this.position++; this.position < this.tokens.length && this.currToken[u.FIELDS.TYPE] !== h.closeSquare; )
|
|
3212
3212
|
k.push(this.currToken), this.position++;
|
|
@@ -3218,62 +3218,62 @@ function Zi() {
|
|
|
3218
3218
|
};
|
|
3219
3219
|
if (B === 1 && !~[h.word].indexOf(k[0][u.FIELDS.TYPE]))
|
|
3220
3220
|
return this.expected("attribute", k[0][u.FIELDS.START_POS]);
|
|
3221
|
-
for (var W = 0, j = "", Q = "",
|
|
3221
|
+
for (var W = 0, j = "", Q = "", F = null, J = !1; W < B; ) {
|
|
3222
3222
|
var oe = k[W], C = this.content(oe), ee = k[W + 1];
|
|
3223
3223
|
switch (oe[u.FIELDS.TYPE]) {
|
|
3224
3224
|
case h.space:
|
|
3225
3225
|
if (J = !0, this.options.lossy)
|
|
3226
3226
|
break;
|
|
3227
|
-
if (
|
|
3228
|
-
(0, m.ensureObject)(y, "spaces",
|
|
3229
|
-
var we = y.spaces[
|
|
3230
|
-
y.spaces[
|
|
3231
|
-
var me = (0, m.getProp)(y, "raws", "spaces",
|
|
3232
|
-
me && (y.raws.spaces[
|
|
3227
|
+
if (F) {
|
|
3228
|
+
(0, m.ensureObject)(y, "spaces", F);
|
|
3229
|
+
var we = y.spaces[F].after || "";
|
|
3230
|
+
y.spaces[F].after = we + C;
|
|
3231
|
+
var me = (0, m.getProp)(y, "raws", "spaces", F, "after") || null;
|
|
3232
|
+
me && (y.raws.spaces[F].after = me + C);
|
|
3233
3233
|
} else
|
|
3234
3234
|
j = j + C, Q = Q + C;
|
|
3235
3235
|
break;
|
|
3236
3236
|
case h.asterisk:
|
|
3237
3237
|
if (ee[u.FIELDS.TYPE] === h.equals)
|
|
3238
|
-
y.operator = C,
|
|
3239
|
-
else if ((!y.namespace ||
|
|
3238
|
+
y.operator = C, F = "operator";
|
|
3239
|
+
else if ((!y.namespace || F === "namespace" && !J) && ee) {
|
|
3240
3240
|
j && ((0, m.ensureObject)(y, "spaces", "attribute"), y.spaces.attribute.before = j, j = ""), Q && ((0, m.ensureObject)(y, "raws", "spaces", "attribute"), y.raws.spaces.attribute.before = j, Q = ""), y.namespace = (y.namespace || "") + C;
|
|
3241
3241
|
var de = (0, m.getProp)(y, "raws", "namespace") || null;
|
|
3242
|
-
de && (y.raws.namespace += C),
|
|
3242
|
+
de && (y.raws.namespace += C), F = "namespace";
|
|
3243
3243
|
}
|
|
3244
3244
|
J = !1;
|
|
3245
3245
|
break;
|
|
3246
3246
|
case h.dollar:
|
|
3247
|
-
if (
|
|
3247
|
+
if (F === "value") {
|
|
3248
3248
|
var ue = (0, m.getProp)(y, "raws", "value");
|
|
3249
3249
|
y.value += "$", ue && (y.raws.value = ue + "$");
|
|
3250
3250
|
break;
|
|
3251
3251
|
}
|
|
3252
3252
|
// Falls through
|
|
3253
3253
|
case h.caret:
|
|
3254
|
-
ee[u.FIELDS.TYPE] === h.equals && (y.operator = C,
|
|
3254
|
+
ee[u.FIELDS.TYPE] === h.equals && (y.operator = C, F = "operator"), J = !1;
|
|
3255
3255
|
break;
|
|
3256
3256
|
case h.combinator:
|
|
3257
|
-
if (C === "~" && ee[u.FIELDS.TYPE] === h.equals && (y.operator = C,
|
|
3257
|
+
if (C === "~" && ee[u.FIELDS.TYPE] === h.equals && (y.operator = C, F = "operator"), C !== "|") {
|
|
3258
3258
|
J = !1;
|
|
3259
3259
|
break;
|
|
3260
3260
|
}
|
|
3261
|
-
ee[u.FIELDS.TYPE] === h.equals ? (y.operator = C,
|
|
3261
|
+
ee[u.FIELDS.TYPE] === h.equals ? (y.operator = C, F = "operator") : !y.namespace && !y.attribute && (y.namespace = !0), J = !1;
|
|
3262
3262
|
break;
|
|
3263
3263
|
case h.word:
|
|
3264
3264
|
if (ee && this.content(ee) === "|" && k[W + 2] && k[W + 2][u.FIELDS.TYPE] !== h.equals && // this look-ahead probably fails with comment nodes involved.
|
|
3265
3265
|
!y.operator && !y.namespace)
|
|
3266
|
-
y.namespace = C,
|
|
3267
|
-
else if (!y.attribute ||
|
|
3266
|
+
y.namespace = C, F = "namespace";
|
|
3267
|
+
else if (!y.attribute || F === "attribute" && !J) {
|
|
3268
3268
|
j && ((0, m.ensureObject)(y, "spaces", "attribute"), y.spaces.attribute.before = j, j = ""), Q && ((0, m.ensureObject)(y, "raws", "spaces", "attribute"), y.raws.spaces.attribute.before = Q, Q = ""), y.attribute = (y.attribute || "") + C;
|
|
3269
3269
|
var pe = (0, m.getProp)(y, "raws", "attribute") || null;
|
|
3270
|
-
pe && (y.raws.attribute += C),
|
|
3271
|
-
} else if (!y.value && y.value !== "" ||
|
|
3270
|
+
pe && (y.raws.attribute += C), F = "attribute";
|
|
3271
|
+
} else if (!y.value && y.value !== "" || F === "value" && !J) {
|
|
3272
3272
|
var ge = (0, m.unesc)(C), Te = (0, m.getProp)(y, "raws", "value") || "", We = y.value || "";
|
|
3273
|
-
y.value = We + ge, y.quoteMark = null, (ge !== C || Te) && ((0, m.ensureObject)(y, "raws"), y.raws.value = (Te || We) + C),
|
|
3273
|
+
y.value = We + ge, y.quoteMark = null, (ge !== C || Te) && ((0, m.ensureObject)(y, "raws"), y.raws.value = (Te || We) + C), F = "value";
|
|
3274
3274
|
} else {
|
|
3275
3275
|
var Ue = C === "i" || C === "I";
|
|
3276
|
-
(y.value || y.value === "") && (y.quoteMark || J) ? (y.insensitive = Ue, (!Ue || C === "I") && ((0, m.ensureObject)(y, "raws"), y.raws.insensitiveFlag = C),
|
|
3276
|
+
(y.value || y.value === "") && (y.quoteMark || J) ? (y.insensitive = Ue, (!Ue || C === "I") && ((0, m.ensureObject)(y, "raws"), y.raws.insensitiveFlag = C), F = "insensitive", j && ((0, m.ensureObject)(y, "spaces", "insensitive"), y.spaces.insensitive.before = j, j = ""), Q && ((0, m.ensureObject)(y, "raws", "spaces", "insensitive"), y.raws.spaces.insensitive.before = Q, Q = "")) : (y.value || y.value === "") && (F = "value", y.value += C, y.raws.value && (y.raws.value += C));
|
|
3277
3277
|
}
|
|
3278
3278
|
J = !1;
|
|
3279
3279
|
break;
|
|
@@ -3282,8 +3282,8 @@ function Zi() {
|
|
|
3282
3282
|
return this.error("Expected an attribute followed by an operator preceding the string.", {
|
|
3283
3283
|
index: oe[u.FIELDS.START_POS]
|
|
3284
3284
|
});
|
|
3285
|
-
var Ne = (0, c.unescapeValue)(C),
|
|
3286
|
-
y.value =
|
|
3285
|
+
var Ne = (0, c.unescapeValue)(C), Ri = Ne.unescaped, zi = Ne.quoteMark;
|
|
3286
|
+
y.value = Ri, y.quoteMark = zi, F = "value", (0, m.ensureObject)(y, "raws"), y.raws.value = C, J = !1;
|
|
3287
3287
|
break;
|
|
3288
3288
|
case h.equals:
|
|
3289
3289
|
if (!y.attribute)
|
|
@@ -3292,16 +3292,16 @@ function Zi() {
|
|
|
3292
3292
|
return this.error('Unexpected "=" found; an operator was already defined.', {
|
|
3293
3293
|
index: oe[u.FIELDS.START_POS]
|
|
3294
3294
|
});
|
|
3295
|
-
y.operator = y.operator ? y.operator + C : C,
|
|
3295
|
+
y.operator = y.operator ? y.operator + C : C, F = "operator", J = !1;
|
|
3296
3296
|
break;
|
|
3297
3297
|
case h.comment:
|
|
3298
|
-
if (
|
|
3299
|
-
if (J || ee && ee[u.FIELDS.TYPE] === h.space ||
|
|
3300
|
-
var
|
|
3301
|
-
(0, m.ensureObject)(y, "raws", "spaces",
|
|
3298
|
+
if (F)
|
|
3299
|
+
if (J || ee && ee[u.FIELDS.TYPE] === h.space || F === "insensitive") {
|
|
3300
|
+
var Di = (0, m.getProp)(y, "spaces", F, "after") || "", Ni = (0, m.getProp)(y, "raws", "spaces", F, "after") || Di;
|
|
3301
|
+
(0, m.ensureObject)(y, "raws", "spaces", F), y.raws.spaces[F].after = Ni + C;
|
|
3302
3302
|
} else {
|
|
3303
|
-
var
|
|
3304
|
-
(0, m.ensureObject)(y, "raws"), y.raws[
|
|
3303
|
+
var Ai = y[F] || "", Bi = (0, m.getProp)(y, "raws", F) || Ai;
|
|
3304
|
+
(0, m.ensureObject)(y, "raws"), y.raws[F] = Bi + C;
|
|
3305
3305
|
}
|
|
3306
3306
|
else
|
|
3307
3307
|
Q = Q + C;
|
|
@@ -3314,7 +3314,7 @@ function Zi() {
|
|
|
3314
3314
|
W++;
|
|
3315
3315
|
}
|
|
3316
3316
|
se(y, "attribute"), se(y, "namespace"), this.newNode(new c.default(y)), this.position++;
|
|
3317
|
-
},
|
|
3317
|
+
}, z.parseWhitespaceEquivalentTokens = function(k) {
|
|
3318
3318
|
k < 0 && (k = this.tokens.length);
|
|
3319
3319
|
var E = this.position, B = [], y = "", W = void 0;
|
|
3320
3320
|
do
|
|
@@ -3334,10 +3334,10 @@ function Zi() {
|
|
|
3334
3334
|
if (W)
|
|
3335
3335
|
W.spaces.after = y;
|
|
3336
3336
|
else if (!this.options.lossy) {
|
|
3337
|
-
var Q = this.tokens[E],
|
|
3337
|
+
var Q = this.tokens[E], F = this.tokens[this.position - 1];
|
|
3338
3338
|
B.push(new a.default({
|
|
3339
3339
|
value: "",
|
|
3340
|
-
source: K(Q[u.FIELDS.START_LINE], Q[u.FIELDS.START_COL],
|
|
3340
|
+
source: K(Q[u.FIELDS.START_LINE], Q[u.FIELDS.START_COL], F[u.FIELDS.END_LINE], F[u.FIELDS.END_COL]),
|
|
3341
3341
|
sourceIndex: Q[u.FIELDS.START_POS],
|
|
3342
3342
|
spaces: {
|
|
3343
3343
|
before: y,
|
|
@@ -3347,22 +3347,22 @@ function Zi() {
|
|
|
3347
3347
|
}
|
|
3348
3348
|
}
|
|
3349
3349
|
return B;
|
|
3350
|
-
},
|
|
3350
|
+
}, z.convertWhitespaceNodesToSpace = function(k, E) {
|
|
3351
3351
|
var B = this;
|
|
3352
3352
|
E === void 0 && (E = !1);
|
|
3353
3353
|
var y = "", W = "";
|
|
3354
3354
|
k.forEach(function(Q) {
|
|
3355
|
-
var
|
|
3356
|
-
y +=
|
|
3355
|
+
var F = B.lossySpace(Q.spaces.before, E), J = B.lossySpace(Q.rawSpaceBefore, E);
|
|
3356
|
+
y += F + B.lossySpace(Q.spaces.after, E && F.length === 0), W += F + Q.value + B.lossySpace(Q.rawSpaceAfter, E && J.length === 0);
|
|
3357
3357
|
}), W === y && (W = void 0);
|
|
3358
3358
|
var j = {
|
|
3359
3359
|
space: y,
|
|
3360
3360
|
rawSpace: W
|
|
3361
3361
|
};
|
|
3362
3362
|
return j;
|
|
3363
|
-
},
|
|
3363
|
+
}, z.isNamedCombinator = function(k) {
|
|
3364
3364
|
return k === void 0 && (k = this.position), this.tokens[k + 0] && this.tokens[k + 0][u.FIELDS.TYPE] === h.slash && this.tokens[k + 1] && this.tokens[k + 1][u.FIELDS.TYPE] === h.word && this.tokens[k + 2] && this.tokens[k + 2][u.FIELDS.TYPE] === h.slash;
|
|
3365
|
-
},
|
|
3365
|
+
}, z.namedCombinator = function() {
|
|
3366
3366
|
if (this.isNamedCombinator()) {
|
|
3367
3367
|
var k = this.content(this.tokens[this.position + 1]), E = (0, m.unesc)(k).toLowerCase(), B = {};
|
|
3368
3368
|
E !== k && (B.value = "/" + k + "/");
|
|
@@ -3375,7 +3375,7 @@ function Zi() {
|
|
|
3375
3375
|
return this.position = this.position + 3, y;
|
|
3376
3376
|
} else
|
|
3377
3377
|
this.unexpected();
|
|
3378
|
-
},
|
|
3378
|
+
}, z.combinator = function() {
|
|
3379
3379
|
var k = this;
|
|
3380
3380
|
if (this.content() === "|")
|
|
3381
3381
|
return this.namespace();
|
|
@@ -3394,7 +3394,7 @@ function Zi() {
|
|
|
3394
3394
|
}
|
|
3395
3395
|
return;
|
|
3396
3396
|
}
|
|
3397
|
-
var
|
|
3397
|
+
var F = this.currToken, J = void 0;
|
|
3398
3398
|
E > this.position && (J = this.parseWhitespaceEquivalentTokens(E));
|
|
3399
3399
|
var oe;
|
|
3400
3400
|
if (this.isNamedCombinator() ? oe = this.namedCombinator() : this.currToken[u.FIELDS.TYPE] === h.combinator ? (oe = new p.default({
|
|
@@ -3414,14 +3414,14 @@ function Zi() {
|
|
|
3414
3414
|
};
|
|
3415
3415
|
de.endsWith(" ") && ue.endsWith(" ") ? (pe.before = de.slice(0, de.length - 1), ge.spaces.before = ue.slice(0, ue.length - 1)) : de.startsWith(" ") && ue.startsWith(" ") ? (pe.after = de.slice(1), ge.spaces.after = ue.slice(1)) : ge.value = ue, oe = new p.default({
|
|
3416
3416
|
value: " ",
|
|
3417
|
-
source: H(
|
|
3418
|
-
sourceIndex:
|
|
3417
|
+
source: H(F, this.tokens[this.position - 1]),
|
|
3418
|
+
sourceIndex: F[u.FIELDS.START_POS],
|
|
3419
3419
|
spaces: pe,
|
|
3420
3420
|
raws: ge
|
|
3421
3421
|
});
|
|
3422
3422
|
}
|
|
3423
3423
|
return this.currToken && this.currToken[u.FIELDS.TYPE] === h.space && (oe.spaces.after = this.optionalSpace(this.content()), this.position++), this.newNode(oe);
|
|
3424
|
-
},
|
|
3424
|
+
}, z.comma = function() {
|
|
3425
3425
|
if (this.position === this.tokens.length - 1) {
|
|
3426
3426
|
this.root.trailingComma = !0, this.position++;
|
|
3427
3427
|
return;
|
|
@@ -3433,32 +3433,32 @@ function Zi() {
|
|
|
3433
3433
|
}
|
|
3434
3434
|
});
|
|
3435
3435
|
this.current.parent.append(k), this.current = k, this.position++;
|
|
3436
|
-
},
|
|
3436
|
+
}, z.comment = function() {
|
|
3437
3437
|
var k = this.currToken;
|
|
3438
3438
|
this.newNode(new o.default({
|
|
3439
3439
|
value: this.content(),
|
|
3440
3440
|
source: ie(k),
|
|
3441
3441
|
sourceIndex: k[u.FIELDS.START_POS]
|
|
3442
3442
|
})), this.position++;
|
|
3443
|
-
},
|
|
3443
|
+
}, z.error = function(k, E) {
|
|
3444
3444
|
throw this.root.error(k, E);
|
|
3445
|
-
},
|
|
3445
|
+
}, z.missingBackslash = function() {
|
|
3446
3446
|
return this.error("Expected a backslash preceding the semicolon.", {
|
|
3447
3447
|
index: this.currToken[u.FIELDS.START_POS]
|
|
3448
3448
|
});
|
|
3449
|
-
},
|
|
3449
|
+
}, z.missingParenthesis = function() {
|
|
3450
3450
|
return this.expected("opening parenthesis", this.currToken[u.FIELDS.START_POS]);
|
|
3451
|
-
},
|
|
3451
|
+
}, z.missingSquareBracket = function() {
|
|
3452
3452
|
return this.expected("opening square bracket", this.currToken[u.FIELDS.START_POS]);
|
|
3453
|
-
},
|
|
3453
|
+
}, z.unexpected = function() {
|
|
3454
3454
|
return this.error("Unexpected '" + this.content() + "'. Escaping special characters with \\ may help.", this.currToken[u.FIELDS.START_POS]);
|
|
3455
|
-
},
|
|
3455
|
+
}, z.namespace = function() {
|
|
3456
3456
|
var k = this.prevToken && this.content(this.prevToken) || !0;
|
|
3457
3457
|
if (this.nextToken[u.FIELDS.TYPE] === h.word)
|
|
3458
3458
|
return this.position++, this.word(k);
|
|
3459
3459
|
if (this.nextToken[u.FIELDS.TYPE] === h.asterisk)
|
|
3460
3460
|
return this.position++, this.universal(k);
|
|
3461
|
-
},
|
|
3461
|
+
}, z.nesting = function() {
|
|
3462
3462
|
if (this.nextToken) {
|
|
3463
3463
|
var k = this.content(this.nextToken);
|
|
3464
3464
|
if (k === "|") {
|
|
@@ -3472,7 +3472,7 @@ function Zi() {
|
|
|
3472
3472
|
source: ie(E),
|
|
3473
3473
|
sourceIndex: E[u.FIELDS.START_POS]
|
|
3474
3474
|
})), this.position++;
|
|
3475
|
-
},
|
|
3475
|
+
}, z.parentheses = function() {
|
|
3476
3476
|
var k = this.current.last, E = 1;
|
|
3477
3477
|
if (this.position++, k && k.type === g.PSEUDO) {
|
|
3478
3478
|
var B = new r.default({
|
|
@@ -3494,7 +3494,7 @@ function Zi() {
|
|
|
3494
3494
|
}
|
|
3495
3495
|
if (E)
|
|
3496
3496
|
return this.expected("closing parenthesis", this.currToken[u.FIELDS.START_POS]);
|
|
3497
|
-
},
|
|
3497
|
+
}, z.pseudo = function() {
|
|
3498
3498
|
for (var k = this, E = "", B = this.currToken; this.currToken && this.currToken[u.FIELDS.TYPE] === h.colon; )
|
|
3499
3499
|
E += this.content(), this.position++;
|
|
3500
3500
|
if (!this.currToken)
|
|
@@ -3511,19 +3511,19 @@ function Zi() {
|
|
|
3511
3511
|
});
|
|
3512
3512
|
else
|
|
3513
3513
|
return this.expected(["pseudo-class", "pseudo-element"], this.currToken[u.FIELDS.START_POS]);
|
|
3514
|
-
},
|
|
3514
|
+
}, z.space = function() {
|
|
3515
3515
|
var k = this.content();
|
|
3516
3516
|
this.position === 0 || this.prevToken[u.FIELDS.TYPE] === h.comma || this.prevToken[u.FIELDS.TYPE] === h.openParenthesis || this.current.nodes.every(function(E) {
|
|
3517
3517
|
return E.type === "comment";
|
|
3518
3518
|
}) ? (this.spaces = this.optionalSpace(k), this.position++) : this.position === this.tokens.length - 1 || this.nextToken[u.FIELDS.TYPE] === h.comma || this.nextToken[u.FIELDS.TYPE] === h.closeParenthesis ? (this.current.last.spaces.after = this.optionalSpace(k), this.position++) : this.combinator();
|
|
3519
|
-
},
|
|
3519
|
+
}, z.string = function() {
|
|
3520
3520
|
var k = this.currToken;
|
|
3521
3521
|
this.newNode(new a.default({
|
|
3522
3522
|
value: this.content(),
|
|
3523
3523
|
source: ie(k),
|
|
3524
3524
|
sourceIndex: k[u.FIELDS.START_POS]
|
|
3525
3525
|
})), this.position++;
|
|
3526
|
-
},
|
|
3526
|
+
}, z.universal = function(k) {
|
|
3527
3527
|
var E = this.nextToken;
|
|
3528
3528
|
if (E && this.content(E) === "|")
|
|
3529
3529
|
return this.position++, this.namespace();
|
|
@@ -3533,7 +3533,7 @@ function Zi() {
|
|
|
3533
3533
|
source: ie(B),
|
|
3534
3534
|
sourceIndex: B[u.FIELDS.START_POS]
|
|
3535
3535
|
}), k), this.position++;
|
|
3536
|
-
},
|
|
3536
|
+
}, z.splitWord = function(k, E) {
|
|
3537
3537
|
for (var B = this, y = this.nextToken, W = this.content(); y && ~[h.dollar, h.caret, h.equals, h.word].indexOf(y[u.FIELDS.TYPE]); ) {
|
|
3538
3538
|
this.position++;
|
|
3539
3539
|
var j = this.content();
|
|
@@ -3543,7 +3543,7 @@ function Zi() {
|
|
|
3543
3543
|
}
|
|
3544
3544
|
y = this.nextToken;
|
|
3545
3545
|
}
|
|
3546
|
-
var
|
|
3546
|
+
var F = fe(W, ".").filter(function(ee) {
|
|
3547
3547
|
var we = W[ee - 1] === "\\", me = /^\d+\.\d+%$/.test(W);
|
|
3548
3548
|
return !we && !me;
|
|
3549
3549
|
}), J = fe(W, "#").filter(function(ee) {
|
|
@@ -3552,13 +3552,13 @@ function Zi() {
|
|
|
3552
3552
|
oe.length && (J = J.filter(function(ee) {
|
|
3553
3553
|
return !~oe.indexOf(ee);
|
|
3554
3554
|
}));
|
|
3555
|
-
var C = (0, _.default)(ke([0].concat(
|
|
3555
|
+
var C = (0, _.default)(ke([0].concat(F, J)));
|
|
3556
3556
|
C.forEach(function(ee, we) {
|
|
3557
3557
|
var me = C[we + 1] || W.length, de = W.slice(ee, me);
|
|
3558
3558
|
if (we === 0 && E)
|
|
3559
3559
|
return E.call(B, de, C.length);
|
|
3560
3560
|
var ue, pe = B.currToken, ge = pe[u.FIELDS.START_POS] + C[we], Te = K(pe[1], pe[2] + ee, pe[3], pe[2] + (me - 1));
|
|
3561
|
-
if (
|
|
3561
|
+
if (~F.indexOf(ee)) {
|
|
3562
3562
|
var We = {
|
|
3563
3563
|
value: de.slice(1),
|
|
3564
3564
|
source: Te,
|
|
@@ -3582,14 +3582,14 @@ function Zi() {
|
|
|
3582
3582
|
}
|
|
3583
3583
|
B.newNode(ue, k), k = null;
|
|
3584
3584
|
}), this.position++;
|
|
3585
|
-
},
|
|
3585
|
+
}, z.word = function(k) {
|
|
3586
3586
|
var E = this.nextToken;
|
|
3587
3587
|
return E && this.content(E) === "|" ? (this.position++, this.namespace()) : this.splitWord(k);
|
|
3588
|
-
},
|
|
3588
|
+
}, z.loop = function() {
|
|
3589
3589
|
for (; this.position < this.tokens.length; )
|
|
3590
3590
|
this.parse(!0);
|
|
3591
3591
|
return this.current._inferEndPosition(), this.root;
|
|
3592
|
-
},
|
|
3592
|
+
}, z.parse = function(k) {
|
|
3593
3593
|
switch (this.currToken[u.FIELDS.TYPE]) {
|
|
3594
3594
|
case h.space:
|
|
3595
3595
|
this.space();
|
|
@@ -3639,7 +3639,7 @@ function Zi() {
|
|
|
3639
3639
|
default:
|
|
3640
3640
|
this.unexpected();
|
|
3641
3641
|
}
|
|
3642
|
-
},
|
|
3642
|
+
}, z.expected = function(k, E, B) {
|
|
3643
3643
|
if (Array.isArray(k)) {
|
|
3644
3644
|
var y = k.pop();
|
|
3645
3645
|
k = k.join(", ") + " or " + y;
|
|
@@ -3650,29 +3650,29 @@ function Zi() {
|
|
|
3650
3650
|
}) : this.error("Expected " + W + " " + k + ".", {
|
|
3651
3651
|
index: E
|
|
3652
3652
|
});
|
|
3653
|
-
},
|
|
3653
|
+
}, z.requiredSpace = function(k) {
|
|
3654
3654
|
return this.options.lossy ? " " : k;
|
|
3655
|
-
},
|
|
3655
|
+
}, z.optionalSpace = function(k) {
|
|
3656
3656
|
return this.options.lossy ? "" : k;
|
|
3657
|
-
},
|
|
3657
|
+
}, z.lossySpace = function(k, E) {
|
|
3658
3658
|
return this.options.lossy ? E ? " " : "" : k;
|
|
3659
|
-
},
|
|
3659
|
+
}, z.parseParenthesisToken = function(k) {
|
|
3660
3660
|
var E = this.content(k);
|
|
3661
3661
|
return k[u.FIELDS.TYPE] === h.space ? this.requiredSpace(E) : E;
|
|
3662
|
-
},
|
|
3662
|
+
}, z.newNode = function(k, E) {
|
|
3663
3663
|
return E && (/^ +$/.test(E) && (this.options.lossy || (this.spaces = (this.spaces || "") + E), E = !0), k.namespace = E, se(k, "namespace")), this.spaces && (k.spaces.before = this.spaces, this.spaces = ""), this.current.append(k);
|
|
3664
|
-
},
|
|
3664
|
+
}, z.content = function(k) {
|
|
3665
3665
|
return k === void 0 && (k = this.currToken), this.css.slice(k[u.FIELDS.START_POS], k[u.FIELDS.END_POS]);
|
|
3666
|
-
},
|
|
3666
|
+
}, z.locateNextMeaningfulToken = function(k) {
|
|
3667
3667
|
k === void 0 && (k = this.position + 1);
|
|
3668
3668
|
for (var E = k; E < this.tokens.length; )
|
|
3669
|
-
if (
|
|
3669
|
+
if ($[this.tokens[E][u.FIELDS.TYPE]]) {
|
|
3670
3670
|
E++;
|
|
3671
3671
|
continue;
|
|
3672
3672
|
} else
|
|
3673
3673
|
return E;
|
|
3674
3674
|
return -1;
|
|
3675
|
-
}, T(
|
|
3675
|
+
}, T(L, [{
|
|
3676
3676
|
key: "currToken",
|
|
3677
3677
|
get: function() {
|
|
3678
3678
|
return this.tokens[this.position];
|
|
@@ -3687,16 +3687,16 @@ function Zi() {
|
|
|
3687
3687
|
get: function() {
|
|
3688
3688
|
return this.tokens[this.position - 1];
|
|
3689
3689
|
}
|
|
3690
|
-
}]),
|
|
3690
|
+
}]), L;
|
|
3691
3691
|
}();
|
|
3692
3692
|
t.default = he, e.exports = t.default;
|
|
3693
3693
|
}(Xe, Xe.exports)), Xe.exports;
|
|
3694
3694
|
}
|
|
3695
3695
|
var un;
|
|
3696
|
-
function
|
|
3696
|
+
function Zi() {
|
|
3697
3697
|
return un || (un = 1, function(e, t) {
|
|
3698
3698
|
t.__esModule = !0, t.default = void 0;
|
|
3699
|
-
var n = r(/* @__PURE__ */
|
|
3699
|
+
var n = r(/* @__PURE__ */ Vi());
|
|
3700
3700
|
function r(o) {
|
|
3701
3701
|
return o && o.__esModule ? o : { default: o };
|
|
3702
3702
|
}
|
|
@@ -3776,7 +3776,7 @@ function Ji() {
|
|
|
3776
3776
|
}(Qe, Qe.exports)), Qe.exports;
|
|
3777
3777
|
}
|
|
3778
3778
|
var Ct = {}, Z = {}, cn;
|
|
3779
|
-
function
|
|
3779
|
+
function Ji() {
|
|
3780
3780
|
if (cn) return Z;
|
|
3781
3781
|
cn = 1, Z.__esModule = !0, Z.universal = Z.tag = Z.string = Z.selector = Z.root = Z.pseudo = Z.nesting = Z.id = Z.comment = Z.combinator = Z.className = Z.attribute = void 0;
|
|
3782
3782
|
var e = p(/* @__PURE__ */ Jn()), t = p(/* @__PURE__ */ Qn()), n = p(/* @__PURE__ */ ei()), r = p(/* @__PURE__ */ Xn()), i = p(/* @__PURE__ */ Gn()), o = p(/* @__PURE__ */ ti()), s = p(/* @__PURE__ */ Zn()), d = p(/* @__PURE__ */ Un()), a = p(/* @__PURE__ */ Yn()), l = p(/* @__PURE__ */ Vn()), c = p(/* @__PURE__ */ jn()), f = p(/* @__PURE__ */ Kn());
|
|
@@ -3823,17 +3823,17 @@ function Ki() {
|
|
|
3823
3823
|
return new l.default(S);
|
|
3824
3824
|
};
|
|
3825
3825
|
Z.string = M;
|
|
3826
|
-
var
|
|
3826
|
+
var R = function(S) {
|
|
3827
3827
|
return new c.default(S);
|
|
3828
3828
|
};
|
|
3829
|
-
Z.tag =
|
|
3829
|
+
Z.tag = R;
|
|
3830
3830
|
var I = function(S) {
|
|
3831
3831
|
return new f.default(S);
|
|
3832
3832
|
};
|
|
3833
3833
|
return Z.universal = I, Z;
|
|
3834
3834
|
}
|
|
3835
3835
|
var X = {}, fn;
|
|
3836
|
-
function
|
|
3836
|
+
function Ki() {
|
|
3837
3837
|
if (fn) return X;
|
|
3838
3838
|
fn = 1, X.__esModule = !0, X.isNode = r, X.isPseudoElement = g, X.isPseudoClass = m, X.isContainer = w, X.isNamespace = x, X.isUniversal = X.isTag = X.isString = X.isSelector = X.isRoot = X.isPseudo = X.isNesting = X.isIdentifier = X.isComment = X.isCombinator = X.isClassName = X.isAttribute = void 0;
|
|
3839
3839
|
var e = /* @__PURE__ */ ce(), t, n = (t = {}, t[e.ATTRIBUTE] = !0, t[e.CLASS] = !0, t[e.COMBINATOR] = !0, t[e.COMMENT] = !0, t[e.ID] = !0, t[e.NESTING] = !0, t[e.PSEUDO] = !0, t[e.ROOT] = !0, t[e.SELECTOR] = !0, t[e.STRING] = !0, t[e.TAG] = !0, t[e.UNIVERSAL] = !0, t);
|
|
@@ -3882,28 +3882,28 @@ function eo() {
|
|
|
3882
3882
|
return X;
|
|
3883
3883
|
}
|
|
3884
3884
|
var dn;
|
|
3885
|
-
function
|
|
3885
|
+
function eo() {
|
|
3886
3886
|
return dn || (dn = 1, function(e) {
|
|
3887
3887
|
e.__esModule = !0;
|
|
3888
3888
|
var t = /* @__PURE__ */ ce();
|
|
3889
3889
|
Object.keys(t).forEach(function(i) {
|
|
3890
3890
|
i === "default" || i === "__esModule" || i in e && e[i] === t[i] || (e[i] = t[i]);
|
|
3891
3891
|
});
|
|
3892
|
-
var n = /* @__PURE__ */
|
|
3892
|
+
var n = /* @__PURE__ */ Ji();
|
|
3893
3893
|
Object.keys(n).forEach(function(i) {
|
|
3894
3894
|
i === "default" || i === "__esModule" || i in e && e[i] === n[i] || (e[i] = n[i]);
|
|
3895
3895
|
});
|
|
3896
|
-
var r = /* @__PURE__ */
|
|
3896
|
+
var r = /* @__PURE__ */ Ki();
|
|
3897
3897
|
Object.keys(r).forEach(function(i) {
|
|
3898
3898
|
i === "default" || i === "__esModule" || i in e && e[i] === r[i] || (e[i] = r[i]);
|
|
3899
3899
|
});
|
|
3900
3900
|
}(Ct)), Ct;
|
|
3901
3901
|
}
|
|
3902
3902
|
var hn;
|
|
3903
|
-
function
|
|
3903
|
+
function to() {
|
|
3904
3904
|
return hn || (hn = 1, function(e, t) {
|
|
3905
3905
|
t.__esModule = !0, t.default = void 0;
|
|
3906
|
-
var n = s(/* @__PURE__ */
|
|
3906
|
+
var n = s(/* @__PURE__ */ Zi()), r = o(/* @__PURE__ */ eo());
|
|
3907
3907
|
function i() {
|
|
3908
3908
|
if (typeof WeakMap != "function") return null;
|
|
3909
3909
|
var l = /* @__PURE__ */ new WeakMap();
|
|
@@ -3939,10 +3939,10 @@ function ro() {
|
|
|
3939
3939
|
}(Ye, Ye.exports)), Ye.exports;
|
|
3940
3940
|
}
|
|
3941
3941
|
var Ht, pn;
|
|
3942
|
-
function
|
|
3942
|
+
function ro() {
|
|
3943
3943
|
if (pn) return Ht;
|
|
3944
3944
|
pn = 1;
|
|
3945
|
-
const e = /* @__PURE__ */
|
|
3945
|
+
const e = /* @__PURE__ */ to(), t = e();
|
|
3946
3946
|
function n(s) {
|
|
3947
3947
|
return typeof s == "object" && s !== null;
|
|
3948
3948
|
}
|
|
@@ -4001,10 +4001,10 @@ function no() {
|
|
|
4001
4001
|
}, Ht;
|
|
4002
4002
|
}
|
|
4003
4003
|
var Wt, gn;
|
|
4004
|
-
function
|
|
4004
|
+
function no() {
|
|
4005
4005
|
if (gn) return Wt;
|
|
4006
4006
|
gn = 1;
|
|
4007
|
-
const e = /* @__PURE__ */ Hn(), t = /* @__PURE__ */
|
|
4007
|
+
const e = /* @__PURE__ */ Hn(), t = /* @__PURE__ */ Wi(), { commonTrailingPseudos: n, isObject: r, merge: i, castArray: o } = /* @__PURE__ */ ro(), s = {
|
|
4008
4008
|
// Reserved for future "magic properties", for example:
|
|
4009
4009
|
// bulletColor: (color) => ({ 'ul > li::before': { backgroundColor: color } }),
|
|
4010
4010
|
};
|
|
@@ -4094,8 +4094,8 @@ function io() {
|
|
|
4094
4094
|
})
|
|
4095
4095
|
), Wt;
|
|
4096
4096
|
}
|
|
4097
|
-
var
|
|
4098
|
-
const
|
|
4097
|
+
var io = /* @__PURE__ */ no();
|
|
4098
|
+
const oo = /* @__PURE__ */ Cn(io);
|
|
4099
4099
|
function ni(e, t) {
|
|
4100
4100
|
return { handler: e, config: t };
|
|
4101
4101
|
}
|
|
@@ -4105,13 +4105,13 @@ ni.withOptions = function(e, t = () => ({})) {
|
|
|
4105
4105
|
}
|
|
4106
4106
|
return n.__isOptionsFunction = !0, n;
|
|
4107
4107
|
};
|
|
4108
|
-
var
|
|
4109
|
-
const
|
|
4108
|
+
var ao = ni;
|
|
4109
|
+
const so = {
|
|
4110
4110
|
"@keyframes blink": { "50%": { fill: "transparent" } },
|
|
4111
4111
|
".av-spinner__dot": { animation: "1s blink infinite" },
|
|
4112
4112
|
".av-spinner__dot:nth-child(2)": { animationDelay: "250ms" },
|
|
4113
4113
|
".av-spinner__dot:nth-child(3)": { animationDelay: "500ms" }
|
|
4114
|
-
},
|
|
4114
|
+
}, lo = {
|
|
4115
4115
|
'.av-text-area-wrapper label[aria-hidden="true"]': {
|
|
4116
4116
|
/* move the label inline */
|
|
4117
4117
|
transformOrigin: "top left",
|
|
@@ -4132,7 +4132,7 @@ const lo = {
|
|
|
4132
4132
|
".av-text-area__control--left": {
|
|
4133
4133
|
left: "18px"
|
|
4134
4134
|
}
|
|
4135
|
-
},
|
|
4135
|
+
}, uo = {
|
|
4136
4136
|
'.av-text-input-wrapper label[aria-hidden="true"]': {
|
|
4137
4137
|
/* move the label inline */
|
|
4138
4138
|
transform: "translate(12px, 0) scale(1)",
|
|
@@ -4148,12 +4148,12 @@ const lo = {
|
|
|
4148
4148
|
transform: "translate(12px, var(--av-text-input-helper-text, 38px)) scale(0.75)",
|
|
4149
4149
|
transformOrigin: "top left"
|
|
4150
4150
|
}
|
|
4151
|
-
},
|
|
4151
|
+
}, co = {
|
|
4152
4152
|
"@keyframes av-tooltip-fade-in": {
|
|
4153
4153
|
from: { opacity: "0" },
|
|
4154
4154
|
to: { opacity: "100" }
|
|
4155
4155
|
}
|
|
4156
|
-
},
|
|
4156
|
+
}, fo = [
|
|
4157
4157
|
"@versini/ui-bubble",
|
|
4158
4158
|
"@versini/ui-button",
|
|
4159
4159
|
"@versini/ui-card",
|
|
@@ -4214,7 +4214,7 @@ const lo = {
|
|
|
4214
4214
|
alpha: (e & 255) / 255
|
|
4215
4215
|
};
|
|
4216
4216
|
}
|
|
4217
|
-
},
|
|
4217
|
+
}, ho = {
|
|
4218
4218
|
aliceblue: 15792383,
|
|
4219
4219
|
antiquewhite: 16444375,
|
|
4220
4220
|
aqua: 65535,
|
|
@@ -4365,23 +4365,23 @@ const lo = {
|
|
|
4365
4365
|
whitesmoke: 16119285,
|
|
4366
4366
|
yellow: 16776960,
|
|
4367
4367
|
yellowgreen: 10145074
|
|
4368
|
-
},
|
|
4368
|
+
}, po = (e) => ii(ho[e.toLowerCase()], 6), go = /^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i, vo = (e) => {
|
|
4369
4369
|
let t;
|
|
4370
|
-
return (t = e.match(
|
|
4371
|
-
}, Se = "([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)", Be = `${Se}%`, _r = `(?:${Se}%|${Se})`,
|
|
4370
|
+
return (t = e.match(go)) ? ii(parseInt(t[1], 16), t[1].length) : void 0;
|
|
4371
|
+
}, Se = "([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)", Be = `${Se}%`, _r = `(?:${Se}%|${Se})`, mo = `(?:${Se}(deg|grad|rad|turn)|${Se})`, Le = "\\s*,\\s*", bo = new RegExp(
|
|
4372
4372
|
`^rgba?\\(\\s*${Se}${Le}${Se}${Le}${Se}\\s*(?:,\\s*${_r}\\s*)?\\)$`
|
|
4373
|
-
),
|
|
4373
|
+
), ko = new RegExp(
|
|
4374
4374
|
`^rgba?\\(\\s*${Be}${Le}${Be}${Le}${Be}\\s*(?:,\\s*${_r}\\s*)?\\)$`
|
|
4375
|
-
),
|
|
4375
|
+
), wo = (e) => {
|
|
4376
4376
|
let t = { mode: "rgb" }, n;
|
|
4377
|
-
if (n = e.match(
|
|
4377
|
+
if (n = e.match(bo))
|
|
4378
4378
|
n[1] !== void 0 && (t.r = n[1] / 255), n[2] !== void 0 && (t.g = n[2] / 255), n[3] !== void 0 && (t.b = n[3] / 255);
|
|
4379
|
-
else if (n = e.match(
|
|
4379
|
+
else if (n = e.match(ko))
|
|
4380
4380
|
n[1] !== void 0 && (t.r = n[1] / 100), n[2] !== void 0 && (t.g = n[2] / 100), n[3] !== void 0 && (t.b = n[3] / 100);
|
|
4381
4381
|
else
|
|
4382
4382
|
return;
|
|
4383
4383
|
return n[4] !== void 0 ? t.alpha = Math.max(0, Math.min(1, n[4] / 100)) : n[5] !== void 0 && (t.alpha = Math.max(0, Math.min(1, +n[5]))), t;
|
|
4384
|
-
},
|
|
4384
|
+
}, yo = (e, t) => e === void 0 ? void 0 : typeof e != "object" ? Lo(e) : e.mode !== void 0 ? e : t ? { ...e, mode: t } : void 0, _o = (e = "rgb") => (t) => (t = yo(t, e)) !== void 0 ? (
|
|
4385
4385
|
// if the color's mode corresponds to our target mode
|
|
4386
4386
|
t.mode === e ? (
|
|
4387
4387
|
// then just return the color
|
|
@@ -4404,7 +4404,7 @@ const lo = {
|
|
|
4404
4404
|
)
|
|
4405
4405
|
)
|
|
4406
4406
|
)
|
|
4407
|
-
) : void 0, be = {},
|
|
4407
|
+
) : void 0, be = {}, oi = {}, gt = [], ai = {}, To = (e) => e, G = (e) => (be[e.mode] = {
|
|
4408
4408
|
...be[e.mode],
|
|
4409
4409
|
...e.toMode
|
|
4410
4410
|
}, Object.keys(e.fromMode || {}).forEach((t) => {
|
|
@@ -4415,13 +4415,13 @@ const lo = {
|
|
|
4415
4415
|
typeof e.interpolate[t] == "function" && (e.interpolate[t] = {
|
|
4416
4416
|
use: e.interpolate[t]
|
|
4417
4417
|
}), e.interpolate[t].fixup || (e.interpolate[t].fixup = To);
|
|
4418
|
-
}),
|
|
4418
|
+
}), oi[e.mode] = e, (e.parse || []).forEach((t) => {
|
|
4419
4419
|
xo(t, e.mode);
|
|
4420
|
-
}),
|
|
4420
|
+
}), _o(e.mode)), So = (e) => oi[e], xo = (e, t) => {
|
|
4421
4421
|
if (typeof e == "string") {
|
|
4422
4422
|
if (!t)
|
|
4423
4423
|
throw new Error("'mode' required when 'parser' is a string");
|
|
4424
|
-
|
|
4424
|
+
ai[e] = t;
|
|
4425
4425
|
} else typeof e == "function" && gt.indexOf(e) < 0 && gt.push(e);
|
|
4426
4426
|
}, dr = /[^\x00-\x7F]|[a-zA-Z_]/, Mo = /[^\x00-\x7F]|[-\w]/, O = {
|
|
4427
4427
|
Function: "function",
|
|
@@ -4558,10 +4558,10 @@ function Po(e) {
|
|
|
4558
4558
|
let t = e[e._i++];
|
|
4559
4559
|
if (!t || t.type !== O.Function || t.value !== "color" || (t = e[e._i++], t.type !== O.Ident))
|
|
4560
4560
|
return;
|
|
4561
|
-
const n =
|
|
4561
|
+
const n = ai[t.value];
|
|
4562
4562
|
if (!n)
|
|
4563
4563
|
return;
|
|
4564
|
-
const r = { mode: n }, i =
|
|
4564
|
+
const r = { mode: n }, i = si(e, !1);
|
|
4565
4565
|
if (!i)
|
|
4566
4566
|
return;
|
|
4567
4567
|
const o = So(n).channels;
|
|
@@ -4569,7 +4569,7 @@ function Po(e) {
|
|
|
4569
4569
|
d = i[s], a = o[s], d.type !== O.None && (r[a] = d.type === O.Number ? d.value : d.value / 100, a === "alpha" && (r[a] = Math.max(0, Math.min(1, r[a]))));
|
|
4570
4570
|
return r;
|
|
4571
4571
|
}
|
|
4572
|
-
function
|
|
4572
|
+
function si(e, t) {
|
|
4573
4573
|
const n = [];
|
|
4574
4574
|
let r;
|
|
4575
4575
|
for (; e._i < e.length; ) {
|
|
@@ -4598,7 +4598,7 @@ function qo(e, t) {
|
|
|
4598
4598
|
let n = e[e._i++];
|
|
4599
4599
|
if (!n || n.type !== O.Function)
|
|
4600
4600
|
return;
|
|
4601
|
-
let r =
|
|
4601
|
+
let r = si(e, t);
|
|
4602
4602
|
if (r)
|
|
4603
4603
|
return r.unshift(n.value), r;
|
|
4604
4604
|
}
|
|
@@ -4646,9 +4646,9 @@ const zo = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
|
|
|
4646
4646
|
channels: ["r", "g", "b", "alpha"],
|
|
4647
4647
|
parse: [
|
|
4648
4648
|
Ro,
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4649
|
+
vo,
|
|
4650
|
+
wo,
|
|
4651
|
+
po,
|
|
4652
4652
|
zo,
|
|
4653
4653
|
"srgb"
|
|
4654
4654
|
],
|
|
@@ -4736,12 +4736,12 @@ const zo = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
|
|
|
4736
4736
|
rgb: (e) => Pe(vn(e)),
|
|
4737
4737
|
xyz65: vn
|
|
4738
4738
|
}
|
|
4739
|
-
}, le = (e) => (e = e % 360) < 0 ? e + 360 : e,
|
|
4739
|
+
}, le = (e) => (e = e % 360) < 0 ? e + 360 : e, Fo = (e, t) => e.map((n, r, i) => {
|
|
4740
4740
|
if (n === void 0)
|
|
4741
4741
|
return n;
|
|
4742
4742
|
let o = le(n);
|
|
4743
4743
|
return r === 0 || e[r - 1] === void 0 ? o : t(o - le(i[r - 1]));
|
|
4744
|
-
}).reduce((n, r) => !n.length || r === void 0 || n[n.length - 1] === void 0 ? (n.push(r), n) : (n.push(r + n[n.length - 1]), n), []), ye = (e) =>
|
|
4744
|
+
}).reduce((n, r) => !n.length || r === void 0 || n[n.length - 1] === void 0 ? (n.push(r), n) : (n.push(r + n[n.length - 1]), n), []), ye = (e) => Fo(e, (t) => Math.abs(t) <= 180 ? t : t - 360 * Math.sign(t)), ae = [-0.14861, 1.78277, -0.29227, -0.90649, 1.97294, 0], $o = Math.PI / 180, Co = 180 / Math.PI;
|
|
4745
4745
|
let bn = ae[3] * ae[4], kn = ae[1] * ae[4], wn = ae[1] * ae[2] - ae[0] * ae[3];
|
|
4746
4746
|
const Ho = ({ r: e, g: t, b: n, alpha: r }) => {
|
|
4747
4747
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
@@ -4753,7 +4753,7 @@ const Ho = ({ r: e, g: t, b: n, alpha: r }) => {
|
|
|
4753
4753
|
return d.s && (d.h = Math.atan2(s, o) * Co - 120), r !== void 0 && (d.alpha = r), d;
|
|
4754
4754
|
}, Wo = ({ h: e, s: t, l: n, alpha: r }) => {
|
|
4755
4755
|
let i = { mode: "rgb" };
|
|
4756
|
-
e = (e === void 0 ? 0 : e + 120) *
|
|
4756
|
+
e = (e === void 0 ? 0 : e + 120) * $o, n === void 0 && (n = 0);
|
|
4757
4757
|
let o = t === void 0 ? 0 : t * n * (1 - n), s = Math.cos(e), d = Math.sin(e);
|
|
4758
4758
|
return i.r = n + o * (ae[0] * s + ae[1] * d), i.g = n + o * (ae[2] * s + ae[3] * d), i.b = n + o * (ae[4] * s + ae[5] * d), r !== void 0 && (i.alpha = r), i;
|
|
4759
4759
|
}, _t = (e, t) => {
|
|
@@ -4830,7 +4830,7 @@ const Ho = ({ r: e, g: t, b: n, alpha: r }) => {
|
|
|
4830
4830
|
b: t ? t * Math.sin(n / 180 * Math.PI) : 0
|
|
4831
4831
|
};
|
|
4832
4832
|
return r !== void 0 && (o.alpha = r), o;
|
|
4833
|
-
},
|
|
4833
|
+
}, li = Math.pow(29, 3) / Math.pow(3, 3), ui = Math.pow(6, 3) / Math.pow(29, 3), re = {
|
|
4834
4834
|
X: 0.3457 / 0.3585,
|
|
4835
4835
|
Y: 1,
|
|
4836
4836
|
Z: (1 - 0.3457 - 0.3585) / 0.3585
|
|
@@ -4839,8 +4839,8 @@ const Ho = ({ r: e, g: t, b: n, alpha: r }) => {
|
|
|
4839
4839
|
Y: 1,
|
|
4840
4840
|
Z: (1 - 0.3127 - 0.329) / 0.329
|
|
4841
4841
|
};
|
|
4842
|
-
let Gt = (e) => Math.pow(e, 3) >
|
|
4843
|
-
const
|
|
4842
|
+
let Gt = (e) => Math.pow(e, 3) > ui ? Math.pow(e, 3) : (116 * e - 16) / li;
|
|
4843
|
+
const ci = ({ l: e, a: t, b: n, alpha: r }) => {
|
|
4844
4844
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
4845
4845
|
let i = (e + 16) / 116, o = t / 500 + i, s = i - n / 200, d = {
|
|
4846
4846
|
mode: "xyz65",
|
|
@@ -4849,7 +4849,7 @@ const fi = ({ l: e, a: t, b: n, alpha: r }) => {
|
|
|
4849
4849
|
z: Gt(s) * qe.Z
|
|
4850
4850
|
};
|
|
4851
4851
|
return r !== void 0 && (d.alpha = r), d;
|
|
4852
|
-
}, St = (e) => Pe(
|
|
4852
|
+
}, St = (e) => Pe(ci(e)), jt = (e) => e > ui ? Math.cbrt(e) : (li * e + 16) / 116, fi = ({ x: e, y: t, z: n, alpha: r }) => {
|
|
4853
4853
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
4854
4854
|
let i = jt(e / qe.X), o = jt(t / qe.Y), s = jt(n / qe.Z), d = {
|
|
4855
4855
|
mode: "lab65",
|
|
@@ -4859,23 +4859,23 @@ const fi = ({ l: e, a: t, b: n, alpha: r }) => {
|
|
|
4859
4859
|
};
|
|
4860
4860
|
return r !== void 0 && (d.alpha = r), d;
|
|
4861
4861
|
}, xt = (e) => {
|
|
4862
|
-
let t =
|
|
4862
|
+
let t = fi(Ie(e));
|
|
4863
4863
|
return e.r === e.b && e.b === e.g && (t.a = t.b = 0), t;
|
|
4864
|
-
}, mt = 1,
|
|
4864
|
+
}, mt = 1, di = 1, Fe = 26 / 180 * Math.PI, bt = Math.cos(Fe), kt = Math.sin(Fe), hi = 100 / Math.log(139 / 100), pr = ({ l: e, c: t, h: n, alpha: r }) => {
|
|
4865
4865
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
4866
4866
|
let i = {
|
|
4867
4867
|
mode: "lab65",
|
|
4868
|
-
l: (Math.exp(e * mt /
|
|
4869
|
-
}, o = (Math.exp(0.0435 * t *
|
|
4868
|
+
l: (Math.exp(e * mt / hi) - 1) / 39e-4
|
|
4869
|
+
}, o = (Math.exp(0.0435 * t * di * mt) - 1) / 0.075, s = o * Math.cos(n / 180 * Math.PI - Fe), d = o * Math.sin(n / 180 * Math.PI - Fe);
|
|
4870
4870
|
return i.a = s * bt - d / 0.83 * kt, i.b = s * kt + d / 0.83 * bt, r !== void 0 && (i.alpha = r), i;
|
|
4871
4871
|
}, gr = ({ l: e, a: t, b: n, alpha: r }) => {
|
|
4872
4872
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
4873
4873
|
let i = t * bt + n * kt, o = 0.83 * (n * bt - t * kt), s = Math.sqrt(i * i + o * o), d = {
|
|
4874
4874
|
mode: "dlch",
|
|
4875
|
-
l:
|
|
4876
|
-
c: Math.log(1 + 0.075 * s) / (0.0435 *
|
|
4875
|
+
l: hi / mt * Math.log(1 + 39e-4 * e),
|
|
4876
|
+
c: Math.log(1 + 0.075 * s) / (0.0435 * di * mt)
|
|
4877
4877
|
};
|
|
4878
|
-
return d.c && (d.h = le((Math.atan2(o, i) +
|
|
4878
|
+
return d.c && (d.h = le((Math.atan2(o, i) + Fe) / Math.PI * 180)), r !== void 0 && (d.alpha = r), d;
|
|
4879
4879
|
}, yn = (e) => pr(xe(e, "dlch")), _n = (e) => Me(gr(e), "dlab"), Qo = {
|
|
4880
4880
|
mode: "dlab",
|
|
4881
4881
|
parse: ["--din99o-lab"],
|
|
@@ -5078,7 +5078,7 @@ const Ko = (e, t) => {
|
|
|
5078
5078
|
return e * 360;
|
|
5079
5079
|
}
|
|
5080
5080
|
}, ea = new RegExp(
|
|
5081
|
-
`^hsla?\\(\\s*${
|
|
5081
|
+
`^hsla?\\(\\s*${mo}${Le}${Be}${Le}${Be}\\s*(?:,\\s*${_r}\\s*)?\\)$`
|
|
5082
5082
|
), ta = (e) => {
|
|
5083
5083
|
let t = e.match(ea);
|
|
5084
5084
|
if (!t) return;
|
|
@@ -5112,7 +5112,7 @@ function ra(e, t) {
|
|
|
5112
5112
|
)
|
|
5113
5113
|
)), n;
|
|
5114
5114
|
}
|
|
5115
|
-
const
|
|
5115
|
+
const pi = {
|
|
5116
5116
|
mode: "hsl",
|
|
5117
5117
|
toMode: {
|
|
5118
5118
|
rgb: Zo
|
|
@@ -5140,7 +5140,7 @@ const gi = {
|
|
|
5140
5140
|
h: _e
|
|
5141
5141
|
}
|
|
5142
5142
|
};
|
|
5143
|
-
function
|
|
5143
|
+
function gi({ h: e, s: t, v: n, alpha: r }) {
|
|
5144
5144
|
e = le(e !== void 0 ? e : 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
5145
5145
|
let i = Math.abs(e / 60 % 2 - 1), o;
|
|
5146
5146
|
switch (Math.floor(e / 60)) {
|
|
@@ -5167,7 +5167,7 @@ function vi({ h: e, s: t, v: n, alpha: r }) {
|
|
|
5167
5167
|
}
|
|
5168
5168
|
return o.mode = "rgb", r !== void 0 && (o.alpha = r), o;
|
|
5169
5169
|
}
|
|
5170
|
-
function
|
|
5170
|
+
function vi({ r: e, g: t, b: n, alpha: r }) {
|
|
5171
5171
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
5172
5172
|
let i = Math.max(e, t, n), o = Math.min(e, t, n), s = {
|
|
5173
5173
|
mode: "hsv",
|
|
@@ -5176,15 +5176,15 @@ function mi({ r: e, g: t, b: n, alpha: r }) {
|
|
|
5176
5176
|
};
|
|
5177
5177
|
return i - o !== 0 && (s.h = (i === e ? (t - n) / (i - o) + (t < n) * 6 : i === t ? (n - e) / (i - o) + 2 : (e - t) / (i - o) + 4) * 60), r !== void 0 && (s.alpha = r), s;
|
|
5178
5178
|
}
|
|
5179
|
-
const
|
|
5179
|
+
const mi = {
|
|
5180
5180
|
mode: "hsv",
|
|
5181
5181
|
toMode: {
|
|
5182
|
-
rgb:
|
|
5182
|
+
rgb: gi
|
|
5183
5183
|
},
|
|
5184
5184
|
parse: ["--hsv"],
|
|
5185
5185
|
serialize: "--hsv",
|
|
5186
5186
|
fromMode: {
|
|
5187
|
-
rgb:
|
|
5187
|
+
rgb: vi
|
|
5188
5188
|
},
|
|
5189
5189
|
channels: ["h", "s", "v", "alpha"],
|
|
5190
5190
|
ranges: {
|
|
@@ -5209,7 +5209,7 @@ function na({ h: e, w: t, b: n, alpha: r }) {
|
|
|
5209
5209
|
let i = t + n;
|
|
5210
5210
|
t /= i, n /= i;
|
|
5211
5211
|
}
|
|
5212
|
-
return
|
|
5212
|
+
return gi({
|
|
5213
5213
|
h: e,
|
|
5214
5214
|
s: n === 1 ? 1 : 1 - t / (1 - n),
|
|
5215
5215
|
v: 1 - n,
|
|
@@ -5217,7 +5217,7 @@ function na({ h: e, w: t, b: n, alpha: r }) {
|
|
|
5217
5217
|
});
|
|
5218
5218
|
}
|
|
5219
5219
|
function ia(e) {
|
|
5220
|
-
let t =
|
|
5220
|
+
let t = vi(e);
|
|
5221
5221
|
if (t === void 0) return;
|
|
5222
5222
|
let n = t.s !== void 0 ? t.s : 0, r = t.v !== void 0 ? t.v : 0, i = {
|
|
5223
5223
|
mode: "hwb",
|
|
@@ -5280,18 +5280,18 @@ const aa = {
|
|
|
5280
5280
|
average: {
|
|
5281
5281
|
h: _e
|
|
5282
5282
|
}
|
|
5283
|
-
},
|
|
5283
|
+
}, bi = 203, Mt = 0.1593017578125, ki = 78.84375, Ot = 0.8359375, Et = 18.8515625, It = 18.6875;
|
|
5284
5284
|
function Vt(e) {
|
|
5285
5285
|
if (e < 0) return 0;
|
|
5286
|
-
const t = Math.pow(e, 1 /
|
|
5286
|
+
const t = Math.pow(e, 1 / ki);
|
|
5287
5287
|
return 1e4 * Math.pow(Math.max(0, t - Ot) / (Et - It * t), 1 / Mt);
|
|
5288
5288
|
}
|
|
5289
5289
|
function Zt(e) {
|
|
5290
5290
|
if (e < 0) return 0;
|
|
5291
5291
|
const t = Math.pow(e / 1e4, Mt);
|
|
5292
|
-
return Math.pow((Ot + Et * t) / (1 + It * t),
|
|
5292
|
+
return Math.pow((Ot + Et * t) / (1 + It * t), ki);
|
|
5293
5293
|
}
|
|
5294
|
-
const Jt = (e) => Math.max(e /
|
|
5294
|
+
const Jt = (e) => Math.max(e / bi, 0), Tn = ({ i: e, t, p: n, alpha: r }) => {
|
|
5295
5295
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
5296
5296
|
const i = Vt(
|
|
5297
5297
|
e + 0.008609037037932761 * t + 0.11102962500302593 * n
|
|
@@ -5312,7 +5312,7 @@ const Jt = (e) => Math.max(e / ki, 0), Tn = ({ i: e, t, p: n, alpha: r }) => {
|
|
|
5312
5312
|
)
|
|
5313
5313
|
};
|
|
5314
5314
|
return r !== void 0 && (d.alpha = r), d;
|
|
5315
|
-
}, Kt = (e = 0) => Math.max(e *
|
|
5315
|
+
}, Kt = (e = 0) => Math.max(e * bi, 0), Sn = ({ x: e, y: t, z: n, alpha: r }) => {
|
|
5316
5316
|
const i = Kt(e), o = Kt(t), s = Kt(n), d = Zt(
|
|
5317
5317
|
0.3592832590121217 * i + 0.6976051147779502 * o - 0.0358915932320289 * s
|
|
5318
5318
|
), a = Zt(
|
|
@@ -5349,7 +5349,7 @@ const Jt = (e) => Math.max(e / ki, 0), Tn = ({ i: e, t, p: n, alpha: r }) => {
|
|
|
5349
5349
|
if (e < 0) return 0;
|
|
5350
5350
|
let t = Math.pow(e / 1e4, Mt);
|
|
5351
5351
|
return Math.pow((Ot + Et * t) / (1 + It * t), la);
|
|
5352
|
-
}, tr = (e = 0) => Math.max(e * 203, 0),
|
|
5352
|
+
}, tr = (e = 0) => Math.max(e * 203, 0), wi = ({ x: e, y: t, z: n, alpha: r }) => {
|
|
5353
5353
|
e = tr(e), t = tr(t), n = tr(n);
|
|
5354
5354
|
let i = 1.15 * e - 0.15 * n, o = 0.66 * t + 0.34 * e, s = er(0.41478972 * i + 0.579999 * o + 0.014648 * n), d = er(-0.20151 * i + 1.120649 * o + 0.0531008 * n), a = er(-0.0166008 * i + 0.2648 * o + 0.6684799 * n), l = (s + d) / 2, c = {
|
|
5355
5355
|
mode: "jab",
|
|
@@ -5362,7 +5362,7 @@ const Jt = (e) => Math.max(e / ki, 0), Tn = ({ i: e, t, p: n, alpha: r }) => {
|
|
|
5362
5362
|
if (e < 0) return 0;
|
|
5363
5363
|
let t = Math.pow(e, 1 / ca);
|
|
5364
5364
|
return 1e4 * Math.pow((Ot - t) / (It * t - Et), 1 / Mt);
|
|
5365
|
-
}, nr = (e) => e / 203,
|
|
5365
|
+
}, nr = (e) => e / 203, yi = ({ j: e, a: t, b: n, alpha: r }) => {
|
|
5366
5366
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
5367
5367
|
let i = (e + xn) / (0.44 + 0.56 * (e + xn)), o = rr(i + 0.13860504 * t + 0.058047316 * n), s = rr(i - 0.13860504 * t - 0.058047316 * n), d = rr(i - 0.096019242 * t - 0.8118919 * n), a = {
|
|
5368
5368
|
mode: "xyz65",
|
|
@@ -5375,21 +5375,21 @@ const Jt = (e) => Math.max(e / ki, 0), Tn = ({ i: e, t, p: n, alpha: r }) => {
|
|
|
5375
5375
|
z: nr(-0.090982811 * o - 0.31272829 * s + 1.5227666 * d)
|
|
5376
5376
|
};
|
|
5377
5377
|
return r !== void 0 && (a.alpha = r), a;
|
|
5378
|
-
},
|
|
5379
|
-
let t =
|
|
5378
|
+
}, _i = (e) => {
|
|
5379
|
+
let t = wi(Ie(e));
|
|
5380
5380
|
return e.r === e.b && e.b === e.g && (t.a = t.b = 0), t;
|
|
5381
|
-
},
|
|
5381
|
+
}, Ti = (e) => Pe(yi(e)), fa = {
|
|
5382
5382
|
mode: "jab",
|
|
5383
5383
|
channels: ["j", "a", "b", "alpha"],
|
|
5384
5384
|
parse: ["--jzazbz"],
|
|
5385
5385
|
serialize: "--jzazbz",
|
|
5386
5386
|
fromMode: {
|
|
5387
|
-
rgb:
|
|
5388
|
-
xyz65:
|
|
5387
|
+
rgb: _i,
|
|
5388
|
+
xyz65: wi
|
|
5389
5389
|
},
|
|
5390
5390
|
toMode: {
|
|
5391
|
-
rgb:
|
|
5392
|
-
xyz65:
|
|
5391
|
+
rgb: Ti,
|
|
5392
|
+
xyz65: yi
|
|
5393
5393
|
},
|
|
5394
5394
|
ranges: {
|
|
5395
5395
|
j: [0, 0.222],
|
|
@@ -5425,10 +5425,10 @@ const Jt = (e) => Math.max(e / ki, 0), Tn = ({ i: e, t, p: n, alpha: r }) => {
|
|
|
5425
5425
|
serialize: "--jzczhz",
|
|
5426
5426
|
toMode: {
|
|
5427
5427
|
jab: On,
|
|
5428
|
-
rgb: (e) =>
|
|
5428
|
+
rgb: (e) => Ti(On(e))
|
|
5429
5429
|
},
|
|
5430
5430
|
fromMode: {
|
|
5431
|
-
rgb: (e) => Mn(
|
|
5431
|
+
rgb: (e) => Mn(_i(e)),
|
|
5432
5432
|
jab: Mn
|
|
5433
5433
|
},
|
|
5434
5434
|
channels: ["j", "c", "h", "alpha"],
|
|
@@ -5460,7 +5460,7 @@ const Sr = ({ l: e, a: t, b: n, alpha: r }) => {
|
|
|
5460
5460
|
z: ir(s) * re.Z
|
|
5461
5461
|
};
|
|
5462
5462
|
return r !== void 0 && (d.alpha = r), d;
|
|
5463
|
-
},
|
|
5463
|
+
}, $e = ({ x: e, y: t, z: n, alpha: r }) => {
|
|
5464
5464
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
5465
5465
|
let i = De({
|
|
5466
5466
|
r: e * 3.1341359569958707 - t * 1.6173863321612538 - 0.4906619460083532 * n,
|
|
@@ -5468,7 +5468,7 @@ const Sr = ({ l: e, a: t, b: n, alpha: r }) => {
|
|
|
5468
5468
|
b: e * 0.07195537988411677 - t * 0.2289768264158322 + 1.405386058324125 * n
|
|
5469
5469
|
});
|
|
5470
5470
|
return r !== void 0 && (i.alpha = r), i;
|
|
5471
|
-
},
|
|
5471
|
+
}, Si = (e) => $e(Sr(e)), Ce = (e) => {
|
|
5472
5472
|
let { r: t, g: n, b: r, alpha: i } = ze(e), o = {
|
|
5473
5473
|
mode: "xyz50",
|
|
5474
5474
|
x: 0.436065742824811 * t + 0.3851514688337912 * n + 0.14307845442264197 * r,
|
|
@@ -5485,7 +5485,7 @@ const Sr = ({ l: e, a: t, b: n, alpha: r }) => {
|
|
|
5485
5485
|
b: 200 * (o - s)
|
|
5486
5486
|
};
|
|
5487
5487
|
return r !== void 0 && (d.alpha = r), d;
|
|
5488
|
-
},
|
|
5488
|
+
}, xi = (e) => {
|
|
5489
5489
|
let t = xr(Ce(e));
|
|
5490
5490
|
return e.r === e.b && e.b === e.g && (t.a = t.b = 0), t;
|
|
5491
5491
|
};
|
|
@@ -5506,11 +5506,11 @@ const Mr = {
|
|
|
5506
5506
|
mode: "lab",
|
|
5507
5507
|
toMode: {
|
|
5508
5508
|
xyz50: Sr,
|
|
5509
|
-
rgb:
|
|
5509
|
+
rgb: Si
|
|
5510
5510
|
},
|
|
5511
5511
|
fromMode: {
|
|
5512
5512
|
xyz50: xr,
|
|
5513
|
-
rgb:
|
|
5513
|
+
rgb: xi
|
|
5514
5514
|
},
|
|
5515
5515
|
channels: ["l", "a", "b", "alpha"],
|
|
5516
5516
|
ranges: {
|
|
@@ -5532,11 +5532,11 @@ const Mr = {
|
|
|
5532
5532
|
parse: ["--lab-d65"],
|
|
5533
5533
|
serialize: "--lab-d65",
|
|
5534
5534
|
toMode: {
|
|
5535
|
-
xyz65:
|
|
5535
|
+
xyz65: ci,
|
|
5536
5536
|
rgb: St
|
|
5537
5537
|
},
|
|
5538
5538
|
fromMode: {
|
|
5539
|
-
xyz65:
|
|
5539
|
+
xyz65: fi,
|
|
5540
5540
|
rgb: xt
|
|
5541
5541
|
},
|
|
5542
5542
|
ranges: {
|
|
@@ -5574,10 +5574,10 @@ const Or = {
|
|
|
5574
5574
|
mode: "lch",
|
|
5575
5575
|
toMode: {
|
|
5576
5576
|
lab: Me,
|
|
5577
|
-
rgb: (e) =>
|
|
5577
|
+
rgb: (e) => Si(Me(e))
|
|
5578
5578
|
},
|
|
5579
5579
|
fromMode: {
|
|
5580
|
-
rgb: (e) => xe(
|
|
5580
|
+
rgb: (e) => xe(xi(e)),
|
|
5581
5581
|
lab: xe
|
|
5582
5582
|
},
|
|
5583
5583
|
channels: ["l", "c", "h", "alpha"],
|
|
@@ -5618,7 +5618,7 @@ const Or = {
|
|
|
5618
5618
|
c: [0, 150],
|
|
5619
5619
|
h: [0, 360]
|
|
5620
5620
|
}
|
|
5621
|
-
},
|
|
5621
|
+
}, Mi = ({ l: e, u: t, v: n, alpha: r }) => {
|
|
5622
5622
|
t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
5623
5623
|
let i = Math.sqrt(t * t + n * n), o = {
|
|
5624
5624
|
mode: "lchuv",
|
|
@@ -5626,7 +5626,7 @@ const Or = {
|
|
|
5626
5626
|
c: i
|
|
5627
5627
|
};
|
|
5628
5628
|
return i && (o.h = le(Math.atan2(n, t) * 180 / Math.PI)), r !== void 0 && (o.alpha = r), o;
|
|
5629
|
-
},
|
|
5629
|
+
}, Oi = ({ l: e, c: t, h: n, alpha: r }) => {
|
|
5630
5630
|
n === void 0 && (n = 0);
|
|
5631
5631
|
let i = {
|
|
5632
5632
|
mode: "luv",
|
|
@@ -5635,9 +5635,9 @@ const Or = {
|
|
|
5635
5635
|
v: t ? t * Math.sin(n / 180 * Math.PI) : 0
|
|
5636
5636
|
};
|
|
5637
5637
|
return r !== void 0 && (i.alpha = r), i;
|
|
5638
|
-
},
|
|
5638
|
+
}, Ei = (e, t, n) => 4 * e / (e + 15 * t + 3 * n), Ii = (e, t, n) => 9 * t / (e + 15 * t + 3 * n), ma = Ei(re.X, re.Y, re.Z), ba = Ii(re.X, re.Y, re.Z), ka = (e) => e <= Tr ? Pt * e : 116 * Math.cbrt(e) - 16, vr = ({ x: e, y: t, z: n, alpha: r }) => {
|
|
5639
5639
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
5640
|
-
let i = ka(t / re.Y), o =
|
|
5640
|
+
let i = ka(t / re.Y), o = Ei(e, t, n), s = Ii(e, t, n);
|
|
5641
5641
|
!isFinite(o) || !isFinite(s) ? i = o = s = 0 : (o = 13 * i * (o - ma), s = 13 * i * (s - ba));
|
|
5642
5642
|
let d = {
|
|
5643
5643
|
mode: "luv",
|
|
@@ -5652,15 +5652,15 @@ const Or = {
|
|
|
5652
5652
|
t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
5653
5653
|
let i = t / (13 * e) + _a, o = n / (13 * e) + Ta, s = re.Y * (e <= 8 ? e / Pt : Math.pow((e + 16) / 116, 3)), d = s * (9 * i) / (4 * o), a = s * (12 - 3 * i - 20 * o) / (4 * o), l = { mode: "xyz50", x: d, y: s, z: a };
|
|
5654
5654
|
return r !== void 0 && (l.alpha = r), l;
|
|
5655
|
-
}, Sa = (e) =>
|
|
5655
|
+
}, Sa = (e) => Mi(vr(Ce(e))), xa = (e) => $e(mr(Oi(e))), Ma = {
|
|
5656
5656
|
mode: "lchuv",
|
|
5657
5657
|
toMode: {
|
|
5658
|
-
luv:
|
|
5658
|
+
luv: Oi,
|
|
5659
5659
|
rgb: xa
|
|
5660
5660
|
},
|
|
5661
5661
|
fromMode: {
|
|
5662
5662
|
rgb: Sa,
|
|
5663
|
-
luv:
|
|
5663
|
+
luv: Mi
|
|
5664
5664
|
},
|
|
5665
5665
|
channels: ["l", "c", "h", "alpha"],
|
|
5666
5666
|
parse: ["--lchuv"],
|
|
@@ -5697,7 +5697,7 @@ const Or = {
|
|
|
5697
5697
|
mode: "luv",
|
|
5698
5698
|
toMode: {
|
|
5699
5699
|
xyz50: mr,
|
|
5700
|
-
rgb: (e) =>
|
|
5700
|
+
rgb: (e) => $e(mr(e))
|
|
5701
5701
|
},
|
|
5702
5702
|
fromMode: {
|
|
5703
5703
|
xyz50: vr,
|
|
@@ -5717,7 +5717,7 @@ const Or = {
|
|
|
5717
5717
|
v: P,
|
|
5718
5718
|
alpha: { use: P, fixup: ne }
|
|
5719
5719
|
}
|
|
5720
|
-
},
|
|
5720
|
+
}, Pi = ({ r: e, g: t, b: n, alpha: r }) => {
|
|
5721
5721
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
5722
5722
|
let i = Math.cbrt(
|
|
5723
5723
|
0.412221469470763 * e + 0.5363325372617348 * t + 0.0514459932675022 * n
|
|
@@ -5733,7 +5733,7 @@ const Or = {
|
|
|
5733
5733
|
};
|
|
5734
5734
|
return r !== void 0 && (d.alpha = r), d;
|
|
5735
5735
|
}, qt = (e) => {
|
|
5736
|
-
let t =
|
|
5736
|
+
let t = Pi(ze(e));
|
|
5737
5737
|
return e.r === e.b && e.b === e.g && (t.a = t.b = 0), t;
|
|
5738
5738
|
}, He = ({ l: e, a: t, b: n, alpha: r }) => {
|
|
5739
5739
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
@@ -5757,8 +5757,8 @@ function Ia(e, t) {
|
|
|
5757
5757
|
-1.88170328 * e - 0.80936493 * t > 1 ? (n = 1.19086277, r = 1.76576728, i = 0.59662641, o = 0.75515197, s = 0.56771245, d = 4.0767416621, a = -3.3077115913, l = 0.2309699292) : 1.81444104 * e - 1.19445276 * t > 1 ? (n = 0.73956515, r = -0.45954404, i = 0.08285427, o = 0.1254107, s = 0.14503204, d = -1.2684380046, a = 2.6097574011, l = -0.3413193965) : (n = 1.35733652, r = -915799e-8, i = -1.1513021, o = -0.50559606, s = 692167e-8, d = -0.0041960863, a = -0.7034186147, l = 1.707614701);
|
|
5758
5758
|
let c = n + r * e + i * t + o * e * e + s * e * t, f = 0.3963377774 * e + 0.2158037573 * t, p = -0.1055613458 * e - 0.0638541728 * t, b = -0.0894841775 * e - 1.291485548 * t;
|
|
5759
5759
|
{
|
|
5760
|
-
let _ = 1 + c * f, u = 1 + c * p, h = 1 + c * b, g = _ * _ * _, m = u * u * u, w = h * h * h, x = 3 * f * _ * _, v = 3 * p * u * u, M = 3 * b * h * h,
|
|
5761
|
-
c = c - S *
|
|
5760
|
+
let _ = 1 + c * f, u = 1 + c * p, h = 1 + c * b, g = _ * _ * _, m = u * u * u, w = h * h * h, x = 3 * f * _ * _, v = 3 * p * u * u, M = 3 * b * h * h, R = 6 * f * f * _, I = 6 * p * p * u, T = 6 * b * b * h, S = d * g + a * m + l * w, $ = d * x + a * v + l * M, Y = d * R + a * I + l * T;
|
|
5761
|
+
c = c - S * $ / ($ * $ - 0.5 * S * Y);
|
|
5762
5762
|
}
|
|
5763
5763
|
return c;
|
|
5764
5764
|
}
|
|
@@ -5776,8 +5776,8 @@ function Pa(e, t, n, r, i, o = null) {
|
|
|
5776
5776
|
{
|
|
5777
5777
|
let d = n - i, a = r, l = 0.3963377774 * e + 0.2158037573 * t, c = -0.1055613458 * e - 0.0638541728 * t, f = -0.0894841775 * e - 1.291485548 * t, p = d + a * l, b = d + a * c, _ = d + a * f;
|
|
5778
5778
|
{
|
|
5779
|
-
let u = i * (1 - s) + s * n, h = s * r, g = u + h * l, m = u + h * c, w = u + h * f, x = g * g * g, v = m * m * m, M = w * w * w,
|
|
5780
|
-
se = H >= 0 ? se : 1e6,
|
|
5779
|
+
let u = i * (1 - s) + s * n, h = s * r, g = u + h * l, m = u + h * c, w = u + h * f, x = g * g * g, v = m * m * m, M = w * w * w, R = 3 * p * g * g, I = 3 * b * m * m, T = 3 * _ * w * w, S = 6 * p * p * g, $ = 6 * b * b * m, Y = 6 * _ * _ * w, te = 4.0767416621 * x - 3.3077115913 * v + 0.2309699292 * M - 1, K = 4.0767416621 * R - 3.3077115913 * I + 0.2309699292 * T, ie = 4.0767416621 * S - 3.3077115913 * $ + 0.2309699292 * Y, H = K / (K * K - 0.5 * te * ie), se = -te * H, fe = -1.2684380046 * x + 2.6097574011 * v - 0.3413193965 * M - 1, ke = -1.2684380046 * R + 2.6097574011 * I - 0.3413193965 * T, he = -1.2684380046 * S + 2.6097574011 * $ - 0.3413193965 * Y, L = ke / (ke * ke - 0.5 * fe * he), z = -fe * L, D = -0.0041960863 * x - 0.7034186147 * v + 1.707614701 * M - 1, k = -0.0041960863 * R - 0.7034186147 * I + 1.707614701 * T, E = -0.0041960863 * S - 0.7034186147 * $ + 1.707614701 * Y, B = k / (k * k - 0.5 * D * E), y = -D * B;
|
|
5780
|
+
se = H >= 0 ? se : 1e6, z = L >= 0 ? z : 1e6, y = B >= 0 ? y : 1e6, s += Math.min(se, Math.min(z, y));
|
|
5781
5781
|
}
|
|
5782
5782
|
}
|
|
5783
5783
|
}
|
|
@@ -5788,7 +5788,7 @@ function Ir(e, t, n = null) {
|
|
|
5788
5788
|
let r = n[0], i = n[1];
|
|
5789
5789
|
return [i / r, i / (1 - r)];
|
|
5790
5790
|
}
|
|
5791
|
-
function
|
|
5791
|
+
function qi(e, t, n) {
|
|
5792
5792
|
let r = Er(t, n), i = Pa(t, n, e, 1, e, r), o = Ir(t, n, r), s = 0.11516993 + 1 / (7.4477897 + 4.1590124 * n + t * (-2.19557347 + 1.75198401 * n + t * (-2.13704948 - 10.02301043 * n + t * (-4.24894561 + 5.38770819 * n + 4.69891013 * t)))), d = 0.11239642 + 1 / (1.6132032 - 0.68124379 * n + t * (0.40370612 + 0.90148123 * n + t * (-0.27087943 + 0.6122399 * n + t * (299215e-8 - 0.45399568 * n - 0.14661872 * t)))), a = i / Math.min(e * o[0], (1 - e) * o[1]), l = e * s, c = (1 - e) * d, f = 0.9 * a * Math.sqrt(
|
|
5793
5793
|
Math.sqrt(
|
|
5794
5794
|
1 / (1 / (l * l * l * l) + 1 / (c * c * c * c))
|
|
@@ -5802,7 +5802,7 @@ function En(e) {
|
|
|
5802
5802
|
let o = Math.sqrt(n * n + r * r);
|
|
5803
5803
|
if (!o)
|
|
5804
5804
|
return i.s = 0, i;
|
|
5805
|
-
let [s, d, a] =
|
|
5805
|
+
let [s, d, a] = qi(t, n / o, r / o), l;
|
|
5806
5806
|
if (o < d) {
|
|
5807
5807
|
let c = 0, f = 0.8 * s, p = 1 - f / d;
|
|
5808
5808
|
l = (o - c) / (f + p * (o - c)) * 0.8;
|
|
@@ -5817,13 +5817,13 @@ function In(e) {
|
|
|
5817
5817
|
const i = { mode: "oklab", l: wt(r) };
|
|
5818
5818
|
if (e.alpha !== void 0 && (i.alpha = e.alpha), !n || r === 1)
|
|
5819
5819
|
return i.a = i.b = 0, i;
|
|
5820
|
-
let o = Math.cos(t / 180 * Math.PI), s = Math.sin(t / 180 * Math.PI), [d, a, l] =
|
|
5820
|
+
let o = Math.cos(t / 180 * Math.PI), s = Math.sin(t / 180 * Math.PI), [d, a, l] = qi(i.l, o, s), c, f, p, b;
|
|
5821
5821
|
n < 0.8 ? (c = 1.25 * n, f = 0, p = 0.8 * d, b = 1 - p / a) : (c = 5 * (n - 0.8), f = a, p = 0.2 * a * a * 1.25 * 1.25 / d, b = 1 - p / (l - a));
|
|
5822
5822
|
let _ = f + c * p / (1 - b * c);
|
|
5823
5823
|
return i.a = _ * o, i.b = _ * s, i;
|
|
5824
5824
|
}
|
|
5825
5825
|
const qa = {
|
|
5826
|
-
...
|
|
5826
|
+
...pi,
|
|
5827
5827
|
mode: "okhsl",
|
|
5828
5828
|
channels: ["h", "s", "l", "alpha"],
|
|
5829
5829
|
parse: ["--okhsl"],
|
|
@@ -5862,7 +5862,7 @@ function qn(e) {
|
|
|
5862
5862
|
return t.l = g * h, t.a = m * o * h, t.b = m * s * h, t;
|
|
5863
5863
|
}
|
|
5864
5864
|
const La = {
|
|
5865
|
-
...
|
|
5865
|
+
...mi,
|
|
5866
5866
|
mode: "okhsv",
|
|
5867
5867
|
channels: ["h", "s", "v", "alpha"],
|
|
5868
5868
|
parse: ["--okhsv"],
|
|
@@ -5900,7 +5900,7 @@ const za = {
|
|
|
5900
5900
|
rgb: Lt
|
|
5901
5901
|
},
|
|
5902
5902
|
fromMode: {
|
|
5903
|
-
lrgb:
|
|
5903
|
+
lrgb: Pi,
|
|
5904
5904
|
rgb: qt
|
|
5905
5905
|
},
|
|
5906
5906
|
ranges: {
|
|
@@ -6027,11 +6027,11 @@ const Na = {
|
|
|
6027
6027
|
},
|
|
6028
6028
|
toMode: {
|
|
6029
6029
|
xyz50: Dn,
|
|
6030
|
-
rgb: (e) =>
|
|
6030
|
+
rgb: (e) => $e(Dn(e))
|
|
6031
6031
|
}
|
|
6032
|
-
}, Nn = 1.09929682680944,
|
|
6032
|
+
}, Nn = 1.09929682680944, Fa = 0.018053968510807, lr = (e) => {
|
|
6033
6033
|
const t = Math.abs(e);
|
|
6034
|
-
return t >
|
|
6034
|
+
return t > Fa ? (Math.sign(e) || 1) * (Nn * Math.pow(t, 0.45) - (Nn - 1)) : 4.5 * e;
|
|
6035
6035
|
}, An = ({ x: e, y: t, z: n, alpha: r }) => {
|
|
6036
6036
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
6037
6037
|
let i = {
|
|
@@ -6047,10 +6047,10 @@ const Na = {
|
|
|
6047
6047
|
)
|
|
6048
6048
|
};
|
|
6049
6049
|
return r !== void 0 && (i.alpha = r), i;
|
|
6050
|
-
}, Bn = 1.09929682680944,
|
|
6050
|
+
}, Bn = 1.09929682680944, $a = 0.018053968510807, ur = (e = 0) => {
|
|
6051
6051
|
let t = Math.abs(e);
|
|
6052
|
-
return t <
|
|
6053
|
-
},
|
|
6052
|
+
return t < $a * 4.5 ? e / 4.5 : (Math.sign(e) || 1) * Math.pow((t + Bn - 1) / Bn, 1 / 0.45);
|
|
6053
|
+
}, Fn = (e) => {
|
|
6054
6054
|
let t = ur(e.r), n = ur(e.g), r = ur(e.b), i = {
|
|
6055
6055
|
mode: "xyz65",
|
|
6056
6056
|
x: 0.6369580483012911 * t + 0.1446169035862083 * n + 0.1688809751641721 * r,
|
|
@@ -6066,12 +6066,12 @@ const Na = {
|
|
|
6066
6066
|
rgb: (e) => An(Ie(e))
|
|
6067
6067
|
},
|
|
6068
6068
|
toMode: {
|
|
6069
|
-
xyz65:
|
|
6070
|
-
rgb: (e) => Pe(
|
|
6069
|
+
xyz65: Fn,
|
|
6070
|
+
rgb: (e) => Pe(Fn(e))
|
|
6071
6071
|
},
|
|
6072
6072
|
parse: ["rec2020"],
|
|
6073
6073
|
serialize: "rec2020"
|
|
6074
|
-
}, Ee = 0.0037930732552754493,
|
|
6074
|
+
}, Ee = 0.0037930732552754493, Li = Math.cbrt(Ee), cr = (e) => Math.cbrt(e) - Li, Ha = (e) => {
|
|
6075
6075
|
const { r: t, g: n, b: r, alpha: i } = ze(e), o = cr(0.3 * t + 0.622 * n + 0.078 * r + Ee), s = cr(0.23 * t + 0.692 * n + 0.078 * r + Ee), d = cr(
|
|
6076
6076
|
0.2434226892454782 * t + 0.2047674442449682 * n + 0.5518098665095535 * r + Ee
|
|
6077
6077
|
), a = {
|
|
@@ -6082,7 +6082,7 @@ const Na = {
|
|
|
6082
6082
|
b: d - (o + s) / 2
|
|
6083
6083
|
};
|
|
6084
6084
|
return i !== void 0 && (a.alpha = i), a;
|
|
6085
|
-
}, fr = (e) => Math.pow(e +
|
|
6085
|
+
}, fr = (e) => Math.pow(e + Li, 3), Wa = ({ x: e, y: t, b: n, alpha: r }) => {
|
|
6086
6086
|
e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
|
|
6087
6087
|
const i = fr(e + t) - Ee, o = fr(t - e) - Ee, s = fr(n + t) - Ee, d = De({
|
|
6088
6088
|
r: 11.031566904639861 * i - 9.866943908131562 * o - 0.16462299650829934 * s,
|
|
@@ -6117,7 +6117,7 @@ const Na = {
|
|
|
6117
6117
|
parse: ["xyz-d50"],
|
|
6118
6118
|
serialize: "xyz-d50",
|
|
6119
6119
|
toMode: {
|
|
6120
|
-
rgb:
|
|
6120
|
+
rgb: $e,
|
|
6121
6121
|
lab: xr
|
|
6122
6122
|
},
|
|
6123
6123
|
fromMode: {
|
|
@@ -6225,8 +6225,8 @@ G(Yo);
|
|
|
6225
6225
|
G(Qo);
|
|
6226
6226
|
G(Xo);
|
|
6227
6227
|
G(Vo);
|
|
6228
|
-
G(
|
|
6229
|
-
G(
|
|
6228
|
+
G(pi);
|
|
6229
|
+
G(mi);
|
|
6230
6230
|
G(aa);
|
|
6231
6231
|
G(sa);
|
|
6232
6232
|
G(fa);
|
|
@@ -6241,7 +6241,7 @@ G(Ea);
|
|
|
6241
6241
|
G(qa);
|
|
6242
6242
|
G(La);
|
|
6243
6243
|
G(za);
|
|
6244
|
-
G(Na);
|
|
6244
|
+
const Ja = G(Na);
|
|
6245
6245
|
G(Aa);
|
|
6246
6246
|
G(Ba);
|
|
6247
6247
|
G(Ca);
|
|
@@ -6250,255 +6250,257 @@ G(Ua);
|
|
|
6250
6250
|
G(Ya);
|
|
6251
6251
|
G(Ga);
|
|
6252
6252
|
G(Za);
|
|
6253
|
-
var
|
|
6254
|
-
const
|
|
6253
|
+
var q = { white: "#fff", slate: { 100: "oklch(96.8% 0.007 247.896)", 200: "oklch(92.9% 0.013 255.508)", 300: "oklch(86.9% 0.022 252.894)", 400: "oklch(70.4% 0.04 256.788)", 500: "oklch(55.4% 0.046 257.417)", 600: "oklch(44.6% 0.043 257.281)", 700: "oklch(37.2% 0.044 257.287)", 800: "oklch(27.9% 0.041 260.031)", 900: "oklch(20.8% 0.042 265.755)" }, gray: { 100: "oklch(96.7% 0.003 264.542)", 200: "oklch(92.8% 0.006 264.531)", 300: "oklch(87.2% 0.01 258.338)", 700: "oklch(37.3% 0.034 259.733)", 800: "oklch(27.8% 0.033 256.848)", 900: "oklch(21% 0.034 264.665)", 950: "oklch(13% 0.028 261.692)" }, red: { 200: "oklch(88.5% 0.062 18.334)", 300: "oklch(80.8% 0.114 19.571)", 400: "oklch(70.4% 0.191 22.216)", 500: "oklch(63.7% 0.237 25.331)", 600: "oklch(57.7% 0.245 27.325)", 700: "oklch(50.5% 0.213 27.518)", 800: "oklch(44.4% 0.177 26.899)", 900: "oklch(39.6% 0.141 25.723)" }, orange: { 200: "oklch(90.1% 0.076 70.697)", 400: "oklch(75% 0.183 55.934)", 800: "oklch(47% 0.157 37.304)" }, green: { 200: "oklch(92.5% 0.084 155.995)", 300: "oklch(87.1% 0.15 154.449)", 400: "oklch(79.2% 0.209 151.711)", 500: "oklch(72.3% 0.219 149.579)", 600: "oklch(62.7% 0.194 149.214)", 700: "oklch(52.7% 0.154 150.069)", 800: "oklch(44.8% 0.119 151.328)" }, violet: { 200: "oklch(89.4% 0.057 293.283)", 300: "oklch(81.1% 0.111 293.571)", 400: "oklch(70.2% 0.183 293.541)", 500: "oklch(60.6% 0.25 292.717)", 800: "oklch(43.2% 0.232 292.759)" } };
|
|
6254
|
+
const $n = "#ff3f3f", U = {
|
|
6255
6255
|
colors: {
|
|
6256
6256
|
/**
|
|
6257
6257
|
* Action tokens.
|
|
6258
6258
|
*/
|
|
6259
|
-
"action-dark":
|
|
6260
|
-
"action-dark-hover":
|
|
6261
|
-
"action-dark-active":
|
|
6262
|
-
"action-light":
|
|
6263
|
-
"action-light-hover":
|
|
6264
|
-
"action-light-active":
|
|
6265
|
-
"action-danger-dark":
|
|
6266
|
-
"action-danger-dark-hover":
|
|
6267
|
-
"action-danger-dark-active":
|
|
6268
|
-
"action-danger-light":
|
|
6269
|
-
"action-danger-light-hover":
|
|
6270
|
-
"action-danger-light-active":
|
|
6271
|
-
"action-selected-dark":
|
|
6272
|
-
"action-selected-dark-hover":
|
|
6273
|
-
"action-selected-dark-active":
|
|
6259
|
+
"action-dark": q.slate[600],
|
|
6260
|
+
"action-dark-hover": q.slate[700],
|
|
6261
|
+
"action-dark-active": q.slate[800],
|
|
6262
|
+
"action-light": q.violet[300],
|
|
6263
|
+
"action-light-hover": q.violet[400],
|
|
6264
|
+
"action-light-active": q.violet[500],
|
|
6265
|
+
"action-danger-dark": q.red[900],
|
|
6266
|
+
"action-danger-dark-hover": q.red[700],
|
|
6267
|
+
"action-danger-dark-active": q.red[600],
|
|
6268
|
+
"action-danger-light": q.red[600],
|
|
6269
|
+
"action-danger-light-hover": q.red[700],
|
|
6270
|
+
"action-danger-light-active": q.red[800],
|
|
6271
|
+
"action-selected-dark": q.green[700],
|
|
6272
|
+
"action-selected-dark-hover": q.green[600],
|
|
6273
|
+
"action-selected-dark-active": q.green[500],
|
|
6274
6274
|
/**
|
|
6275
6275
|
* Surface tokens.
|
|
6276
6276
|
*/
|
|
6277
|
-
"surface-darker":
|
|
6278
|
-
"surface-dark":
|
|
6279
|
-
"surface-medium":
|
|
6280
|
-
"surface-light":
|
|
6281
|
-
"surface-lighter":
|
|
6282
|
-
"surface-lightest":
|
|
6277
|
+
"surface-darker": q.slate[900],
|
|
6278
|
+
"surface-dark": q.slate[700],
|
|
6279
|
+
"surface-medium": q.slate[500],
|
|
6280
|
+
"surface-light": q.slate[300],
|
|
6281
|
+
"surface-lighter": q.slate[200],
|
|
6282
|
+
"surface-lightest": q.slate[100],
|
|
6283
6283
|
"surface-accent": "#0071EB",
|
|
6284
|
-
"surface-information":
|
|
6285
|
-
"surface-success":
|
|
6286
|
-
"surface-warning":
|
|
6287
|
-
"surface-error":
|
|
6284
|
+
"surface-information": q.violet[200],
|
|
6285
|
+
"surface-success": q.green[200],
|
|
6286
|
+
"surface-warning": q.orange[200],
|
|
6287
|
+
"surface-error": q.red[200],
|
|
6288
6288
|
/**
|
|
6289
6289
|
* Typography tokens.
|
|
6290
6290
|
*/
|
|
6291
|
-
"copy-dark":
|
|
6292
|
-
"copy-dark-hover":
|
|
6293
|
-
"copy-dark-active":
|
|
6294
|
-
"copy-medium":
|
|
6295
|
-
"copy-medium-hover":
|
|
6296
|
-
"copy-medium-active":
|
|
6297
|
-
"copy-light":
|
|
6298
|
-
"copy-light-hover":
|
|
6299
|
-
"copy-light-active":
|
|
6300
|
-
"copy-lighter":
|
|
6301
|
-
"copy-lighter-hover":
|
|
6302
|
-
"copy-lighter-active":
|
|
6303
|
-
"copy-error-dark":
|
|
6304
|
-
"copy-error-light":
|
|
6305
|
-
"copy-information":
|
|
6306
|
-
"copy-success":
|
|
6307
|
-
"copy-warning":
|
|
6308
|
-
"copy-error":
|
|
6291
|
+
"copy-dark": q.slate[900],
|
|
6292
|
+
"copy-dark-hover": q.slate[900],
|
|
6293
|
+
"copy-dark-active": q.slate[900],
|
|
6294
|
+
"copy-medium": q.slate[400],
|
|
6295
|
+
"copy-medium-hover": q.slate[400],
|
|
6296
|
+
"copy-medium-active": q.slate[400],
|
|
6297
|
+
"copy-light": q.slate[200],
|
|
6298
|
+
"copy-light-hover": q.slate[200],
|
|
6299
|
+
"copy-light-active": q.slate[400],
|
|
6300
|
+
"copy-lighter": q.white,
|
|
6301
|
+
"copy-lighter-hover": q.white,
|
|
6302
|
+
"copy-lighter-active": q.white,
|
|
6303
|
+
"copy-error-dark": q.red[700],
|
|
6304
|
+
"copy-error-light": q.red[500],
|
|
6305
|
+
"copy-information": q.violet[800],
|
|
6306
|
+
"copy-success": q.green[800],
|
|
6307
|
+
"copy-warning": q.orange[800],
|
|
6308
|
+
"copy-error": q.red[800],
|
|
6309
6309
|
"copy-accent": "#a9b9ad",
|
|
6310
6310
|
"copy-accent-dark": "#cde8d4",
|
|
6311
6311
|
/**
|
|
6312
6312
|
* Border tokens.
|
|
6313
6313
|
*/
|
|
6314
|
-
"border-dark":
|
|
6315
|
-
"border-medium":
|
|
6316
|
-
"border-light":
|
|
6314
|
+
"border-dark": q.slate[900],
|
|
6315
|
+
"border-medium": q.slate[400],
|
|
6316
|
+
"border-light": q.slate[300],
|
|
6317
6317
|
"border-accent": "#a9b9ad",
|
|
6318
|
-
"border-danger-dark":
|
|
6319
|
-
"border-danger-medium":
|
|
6320
|
-
"border-danger-light":
|
|
6321
|
-
"border-selected-dark":
|
|
6322
|
-
"border-selected-medium":
|
|
6323
|
-
"border-selected-light":
|
|
6324
|
-
"border-white":
|
|
6325
|
-
"border-error-dark":
|
|
6326
|
-
"border-error-light":
|
|
6327
|
-
"border-information":
|
|
6328
|
-
"border-success":
|
|
6329
|
-
"border-warning":
|
|
6330
|
-
"border-error":
|
|
6318
|
+
"border-danger-dark": q.red[900],
|
|
6319
|
+
"border-danger-medium": q.red[400],
|
|
6320
|
+
"border-danger-light": q.red[300],
|
|
6321
|
+
"border-selected-dark": q.green[800],
|
|
6322
|
+
"border-selected-medium": q.green[400],
|
|
6323
|
+
"border-selected-light": q.green[300],
|
|
6324
|
+
"border-white": q.white,
|
|
6325
|
+
"border-error-dark": q.red[700],
|
|
6326
|
+
"border-error-light": $n,
|
|
6327
|
+
"border-information": q.violet[400],
|
|
6328
|
+
"border-success": q.green[400],
|
|
6329
|
+
"border-warning": q.orange[400],
|
|
6330
|
+
"border-error": q.red[400],
|
|
6331
6331
|
/**
|
|
6332
6332
|
* Focus tokens.
|
|
6333
6333
|
*/
|
|
6334
|
-
"focus-dark":
|
|
6335
|
-
"focus-light":
|
|
6336
|
-
"focus-error-dark":
|
|
6337
|
-
"focus-error-light":
|
|
6334
|
+
"focus-dark": q.green[700],
|
|
6335
|
+
"focus-light": q.green[300],
|
|
6336
|
+
"focus-error-dark": q.red[700],
|
|
6337
|
+
"focus-error-light": $n,
|
|
6338
6338
|
/**
|
|
6339
6339
|
* Table tokens
|
|
6340
6340
|
*/
|
|
6341
|
-
"table-head-dark":
|
|
6342
|
-
"table-dark":
|
|
6343
|
-
"table-dark-odd":
|
|
6344
|
-
"table-dark-even":
|
|
6345
|
-
"table-head-light":
|
|
6346
|
-
"table-light":
|
|
6347
|
-
"table-light-odd":
|
|
6348
|
-
"table-light-even":
|
|
6341
|
+
"table-head-dark": q.gray[950],
|
|
6342
|
+
"table-dark": q.gray[700],
|
|
6343
|
+
"table-dark-odd": q.gray[800],
|
|
6344
|
+
"table-dark-even": q.gray[900],
|
|
6345
|
+
"table-head-light": q.gray[100],
|
|
6346
|
+
"table-light": q.gray[100],
|
|
6347
|
+
"table-light-odd": q.gray[200],
|
|
6348
|
+
"table-light-even": q.gray[300]
|
|
6349
6349
|
}
|
|
6350
|
-
},
|
|
6350
|
+
}, Ka = (e) => {
|
|
6351
|
+
const t = Ja(e), n = t?.l !== void 0 ? (t.l * 100).toFixed(2) + "%" : "0%", r = t?.c !== void 0 ? t.c.toFixed(3) : "0", i = t?.h !== void 0 ? t.h.toFixed(3) : "0";
|
|
6352
|
+
return `oklch(${n} ${r} ${i} / <alpha-value>)`;
|
|
6353
|
+
}, es = () => {
|
|
6351
6354
|
const e = {};
|
|
6352
6355
|
return Object.entries(U.colors).forEach(([t, n]) => {
|
|
6353
|
-
|
|
6354
|
-
e[t] = `var(${i}, rgb(${o} / <alpha-value>))`;
|
|
6356
|
+
e[t] = `var(--av-${t}, ${Ka(n)})`;
|
|
6355
6357
|
}), e;
|
|
6356
|
-
},
|
|
6358
|
+
}, ts = es(), rs = ({ theme: e }) => ({
|
|
6359
|
+
DEFAULT: {
|
|
6360
|
+
css: {
|
|
6361
|
+
maxWidth: "inherit",
|
|
6362
|
+
"h1, h2, h3, h4, h5, h6": {
|
|
6363
|
+
fontFamily: "Open Sans, ui-sans-serif, system-ui, sans-serif",
|
|
6364
|
+
fontWeight: "400"
|
|
6365
|
+
},
|
|
6366
|
+
h1: {
|
|
6367
|
+
fontSize: "1.75em"
|
|
6368
|
+
},
|
|
6369
|
+
h2: {
|
|
6370
|
+
marginTop: "1em"
|
|
6371
|
+
},
|
|
6372
|
+
".av-header h1, .av-header h2, .av-header h3, .av-header h4, .av-header h5, .av-header h6": {
|
|
6373
|
+
margin: "0"
|
|
6374
|
+
},
|
|
6375
|
+
".av-header p": {
|
|
6376
|
+
margin: "0"
|
|
6377
|
+
},
|
|
6378
|
+
blockquote: {
|
|
6379
|
+
borderLeftWidth: "6px"
|
|
6380
|
+
},
|
|
6381
|
+
"blockquote p": {
|
|
6382
|
+
fontFamily: "Georgia, Cambria, Times New Roman, Times, serif"
|
|
6383
|
+
},
|
|
6384
|
+
li: {
|
|
6385
|
+
fontSize: "1rem"
|
|
6386
|
+
},
|
|
6387
|
+
"li > p, ul > p, ol > p": {
|
|
6388
|
+
marginBottom: "0",
|
|
6389
|
+
marginTop: "0"
|
|
6390
|
+
},
|
|
6391
|
+
"li > ul": {
|
|
6392
|
+
marginTop: "0",
|
|
6393
|
+
paddingInlineStart: "0"
|
|
6394
|
+
},
|
|
6395
|
+
"ul > li": {
|
|
6396
|
+
marginBottom: "0",
|
|
6397
|
+
marginTop: "0"
|
|
6398
|
+
},
|
|
6399
|
+
pre: {
|
|
6400
|
+
marginTop: "2rem",
|
|
6401
|
+
marginBottom: "2rem",
|
|
6402
|
+
fontSize: "0.875rem",
|
|
6403
|
+
lineHeight: "1.25rem"
|
|
6404
|
+
},
|
|
6405
|
+
code: {
|
|
6406
|
+
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
|
|
6407
|
+
}
|
|
6408
|
+
}
|
|
6409
|
+
},
|
|
6410
|
+
light: {
|
|
6411
|
+
css: {
|
|
6412
|
+
"--tw-prose-body": U.colors["copy-light"],
|
|
6413
|
+
"--tw-prose-headings": U.colors["copy-medium"],
|
|
6414
|
+
"--tw-prose-lead": U.colors["copy-light"],
|
|
6415
|
+
"--tw-prose-links": U.colors["copy-light"],
|
|
6416
|
+
"--tw-prose-bold": U.colors["copy-light"],
|
|
6417
|
+
"--tw-prose-counters": U.colors["copy-medium"],
|
|
6418
|
+
"--tw-prose-bullets": U.colors["copy-medium"],
|
|
6419
|
+
"--tw-prose-hr": U.colors["copy-medium"],
|
|
6420
|
+
"--tw-prose-quotes": U.colors["copy-light"],
|
|
6421
|
+
"--tw-prose-quote-borders": U.colors["copy-light"],
|
|
6422
|
+
"--tw-prose-captions": U.colors["copy-light"],
|
|
6423
|
+
"--tw-prose-code": U.colors["copy-light"],
|
|
6424
|
+
"--tw-prose-pre-code": U.colors["copy-lighter"],
|
|
6425
|
+
"--tw-prose-pre-bg": U.colors["surface-medium"],
|
|
6426
|
+
"--tw-prose-kbd": U.colors["copy-light"],
|
|
6427
|
+
li: {
|
|
6428
|
+
color: U.colors["copy-light"]
|
|
6429
|
+
}
|
|
6430
|
+
}
|
|
6431
|
+
},
|
|
6432
|
+
lighter: {
|
|
6433
|
+
css: {
|
|
6434
|
+
"--tw-prose-body": U.colors["copy-lighter"],
|
|
6435
|
+
"--tw-prose-headings": U.colors["copy-light"],
|
|
6436
|
+
"--tw-prose-lead": U.colors["copy-lighter"],
|
|
6437
|
+
"--tw-prose-links": U.colors["copy-lighter"],
|
|
6438
|
+
"--tw-prose-bold": U.colors["copy-lighter"],
|
|
6439
|
+
"--tw-prose-counters": U.colors["copy-light"],
|
|
6440
|
+
"--tw-prose-bullets": U.colors["copy-light"],
|
|
6441
|
+
"--tw-prose-hr": U.colors["copy-light"],
|
|
6442
|
+
"--tw-prose-quotes": U.colors["copy-lighter"],
|
|
6443
|
+
"--tw-prose-quote-borders": U.colors["copy-lighter"],
|
|
6444
|
+
"--tw-prose-captions": U.colors["copy-lighter"],
|
|
6445
|
+
"--tw-prose-code": U.colors["copy-lighter"],
|
|
6446
|
+
"--tw-prose-pre-code": U.colors["copy-lighter"],
|
|
6447
|
+
"--tw-prose-pre-bg": U.colors["surface-darker"],
|
|
6448
|
+
"--tw-prose-kbd": U.colors["copy-lighter"],
|
|
6449
|
+
li: {
|
|
6450
|
+
color: U.colors["copy-lighter"]
|
|
6451
|
+
}
|
|
6452
|
+
}
|
|
6453
|
+
},
|
|
6454
|
+
dark: {
|
|
6455
|
+
css: {
|
|
6456
|
+
"--tw-prose-body": e("colors.slate[800]"),
|
|
6457
|
+
"--tw-prose-headings": e("colors.slate[900]"),
|
|
6458
|
+
"--tw-prose-lead": e("colors.slate[700]"),
|
|
6459
|
+
"--tw-prose-links": e("colors.slate[900]"),
|
|
6460
|
+
"--tw-prose-bold": e("colors.slate[900]"),
|
|
6461
|
+
"--tw-prose-counters": e("colors.slate[600]"),
|
|
6462
|
+
"--tw-prose-bullets": e("colors.slate[900]"),
|
|
6463
|
+
"--tw-prose-hr": e("colors.slate[300]"),
|
|
6464
|
+
"--tw-prose-quotes": e("colors.slate[900]"),
|
|
6465
|
+
"--tw-prose-quote-borders": e("colors.slate[300]"),
|
|
6466
|
+
"--tw-prose-captions": e("colors.slate[700]"),
|
|
6467
|
+
"--tw-prose-code": e("colors.slate[900]"),
|
|
6468
|
+
"--tw-prose-pre-code": U.colors["copy-lighter"],
|
|
6469
|
+
"--tw-prose-pre-bg": U.colors["surface-darker"],
|
|
6470
|
+
"--tw-prose-kbd": e("colors.slate[800]"),
|
|
6471
|
+
li: {
|
|
6472
|
+
color: U.colors["copy-dark"]
|
|
6473
|
+
}
|
|
6474
|
+
}
|
|
6475
|
+
}
|
|
6476
|
+
}), ns = {
|
|
6357
6477
|
theme: {
|
|
6358
6478
|
extend: {
|
|
6359
|
-
colors:
|
|
6360
|
-
typography:
|
|
6361
|
-
DEFAULT: {
|
|
6362
|
-
css: {
|
|
6363
|
-
maxWidth: "inherit",
|
|
6364
|
-
"h1, h2, h3, h4, h5, h6": {
|
|
6365
|
-
fontFamily: "Open Sans, ui-sans-serif, system-ui, sans-serif",
|
|
6366
|
-
fontWeight: "400"
|
|
6367
|
-
},
|
|
6368
|
-
h1: {
|
|
6369
|
-
fontSize: "1.75em"
|
|
6370
|
-
},
|
|
6371
|
-
h2: {
|
|
6372
|
-
marginTop: "1em"
|
|
6373
|
-
},
|
|
6374
|
-
".av-header h1, .av-header h2, .av-header h3, .av-header h4, .av-header h5, .av-header h6": {
|
|
6375
|
-
margin: "0"
|
|
6376
|
-
},
|
|
6377
|
-
".av-header p": {
|
|
6378
|
-
margin: "0"
|
|
6379
|
-
},
|
|
6380
|
-
blockquote: {
|
|
6381
|
-
borderLeftWidth: "6px"
|
|
6382
|
-
},
|
|
6383
|
-
"blockquote p": {
|
|
6384
|
-
fontFamily: "Georgia, Cambria, Times New Roman, Times, serif"
|
|
6385
|
-
},
|
|
6386
|
-
li: {
|
|
6387
|
-
fontSize: "1rem"
|
|
6388
|
-
},
|
|
6389
|
-
"li > p, ul > p, ol > p": {
|
|
6390
|
-
marginBottom: "0",
|
|
6391
|
-
marginTop: "0"
|
|
6392
|
-
},
|
|
6393
|
-
"li > ul": {
|
|
6394
|
-
marginTop: "0",
|
|
6395
|
-
paddingInlineStart: "0"
|
|
6396
|
-
},
|
|
6397
|
-
"ul > li": {
|
|
6398
|
-
marginBottom: "0",
|
|
6399
|
-
marginTop: "0"
|
|
6400
|
-
},
|
|
6401
|
-
pre: {
|
|
6402
|
-
marginTop: "2rem",
|
|
6403
|
-
marginBottom: "2rem",
|
|
6404
|
-
fontSize: "0.875rem",
|
|
6405
|
-
lineHeight: "1.25rem"
|
|
6406
|
-
},
|
|
6407
|
-
code: {
|
|
6408
|
-
fontFamily: 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
|
|
6409
|
-
}
|
|
6410
|
-
}
|
|
6411
|
-
},
|
|
6412
|
-
light: {
|
|
6413
|
-
css: {
|
|
6414
|
-
"--tw-prose-body": U.colors["copy-light"],
|
|
6415
|
-
"--tw-prose-headings": U.colors["copy-medium"],
|
|
6416
|
-
"--tw-prose-lead": U.colors["copy-light"],
|
|
6417
|
-
"--tw-prose-links": U.colors["copy-light"],
|
|
6418
|
-
"--tw-prose-bold": U.colors["copy-light"],
|
|
6419
|
-
"--tw-prose-counters": U.colors["copy-medium"],
|
|
6420
|
-
"--tw-prose-bullets": U.colors["copy-medium"],
|
|
6421
|
-
"--tw-prose-hr": U.colors["copy-medium"],
|
|
6422
|
-
"--tw-prose-quotes": U.colors["copy-light"],
|
|
6423
|
-
"--tw-prose-quote-borders": U.colors["copy-light"],
|
|
6424
|
-
"--tw-prose-captions": U.colors["copy-light"],
|
|
6425
|
-
"--tw-prose-code": U.colors["copy-light"],
|
|
6426
|
-
"--tw-prose-pre-code": U.colors["copy-lighter"],
|
|
6427
|
-
"--tw-prose-pre-bg": U.colors["surface-medium"],
|
|
6428
|
-
"--tw-prose-kbd": U.colors["copy-light"],
|
|
6429
|
-
li: {
|
|
6430
|
-
color: U.colors["copy-light"]
|
|
6431
|
-
}
|
|
6432
|
-
}
|
|
6433
|
-
},
|
|
6434
|
-
lighter: {
|
|
6435
|
-
css: {
|
|
6436
|
-
"--tw-prose-body": U.colors["copy-lighter"],
|
|
6437
|
-
"--tw-prose-headings": U.colors["copy-light"],
|
|
6438
|
-
"--tw-prose-lead": U.colors["copy-lighter"],
|
|
6439
|
-
"--tw-prose-links": U.colors["copy-lighter"],
|
|
6440
|
-
"--tw-prose-bold": U.colors["copy-lighter"],
|
|
6441
|
-
"--tw-prose-counters": U.colors["copy-light"],
|
|
6442
|
-
"--tw-prose-bullets": U.colors["copy-light"],
|
|
6443
|
-
"--tw-prose-hr": U.colors["copy-light"],
|
|
6444
|
-
"--tw-prose-quotes": U.colors["copy-lighter"],
|
|
6445
|
-
"--tw-prose-quote-borders": U.colors["copy-lighter"],
|
|
6446
|
-
"--tw-prose-captions": U.colors["copy-lighter"],
|
|
6447
|
-
"--tw-prose-code": U.colors["copy-lighter"],
|
|
6448
|
-
"--tw-prose-pre-code": U.colors["copy-lighter"],
|
|
6449
|
-
"--tw-prose-pre-bg": U.colors["surface-darker"],
|
|
6450
|
-
"--tw-prose-kbd": U.colors["copy-lighter"],
|
|
6451
|
-
li: {
|
|
6452
|
-
color: U.colors["copy-lighter"]
|
|
6453
|
-
}
|
|
6454
|
-
}
|
|
6455
|
-
},
|
|
6456
|
-
dark: {
|
|
6457
|
-
css: {
|
|
6458
|
-
"--tw-prose-body": e("colors.slate[800]"),
|
|
6459
|
-
"--tw-prose-headings": e("colors.slate[900]"),
|
|
6460
|
-
"--tw-prose-lead": e("colors.slate[700]"),
|
|
6461
|
-
"--tw-prose-links": e("colors.slate[900]"),
|
|
6462
|
-
"--tw-prose-bold": e("colors.slate[900]"),
|
|
6463
|
-
"--tw-prose-counters": e("colors.slate[600]"),
|
|
6464
|
-
"--tw-prose-bullets": e("colors.slate[900]"),
|
|
6465
|
-
"--tw-prose-hr": e("colors.slate[300]"),
|
|
6466
|
-
"--tw-prose-quotes": e("colors.slate[900]"),
|
|
6467
|
-
"--tw-prose-quote-borders": e("colors.slate[300]"),
|
|
6468
|
-
"--tw-prose-captions": e("colors.slate[700]"),
|
|
6469
|
-
"--tw-prose-code": e("colors.slate[900]"),
|
|
6470
|
-
"--tw-prose-pre-code": U.colors["copy-lighter"],
|
|
6471
|
-
"--tw-prose-pre-bg": U.colors["surface-darker"],
|
|
6472
|
-
"--tw-prose-kbd": e("colors.slate[800]"),
|
|
6473
|
-
li: {
|
|
6474
|
-
color: U.colors["copy-dark"]
|
|
6475
|
-
}
|
|
6476
|
-
}
|
|
6477
|
-
}
|
|
6478
|
-
})
|
|
6479
|
+
colors: ts,
|
|
6480
|
+
typography: rs
|
|
6479
6481
|
}
|
|
6480
6482
|
}
|
|
6481
|
-
},
|
|
6483
|
+
}, is = fo.flatMap((e) => [
|
|
6482
6484
|
`${process.cwd()}/node_modules/${e}/dist/**/*.{js,ts,jsx,tsx}`,
|
|
6483
6485
|
`${process.cwd()}/node_modules/${e}/src/**/*.{js,ts,jsx,tsx}`
|
|
6484
|
-
]),
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
|
|
6488
|
-
e(
|
|
6486
|
+
]), os = [
|
|
6487
|
+
oo,
|
|
6488
|
+
Ci,
|
|
6489
|
+
ao(function({ addComponents: e, addVariant: t }) {
|
|
6490
|
+
e(uo), e(lo), e(so), e(co), t(
|
|
6489
6491
|
"last-bubble-right",
|
|
6490
6492
|
".av-bubble-right:not(:has(+ .av-bubble-right)) &"
|
|
6491
6493
|
), t(
|
|
6492
6494
|
"last-bubble-left",
|
|
6493
6495
|
".av-bubble-left:not(:has(+ .av-bubble-left)) &"
|
|
6494
6496
|
);
|
|
6495
|
-
},
|
|
6496
|
-
],
|
|
6497
|
+
}, ns)
|
|
6498
|
+
], as = {
|
|
6497
6499
|
merge: (e) => {
|
|
6498
|
-
const t =
|
|
6500
|
+
const t = is, n = os;
|
|
6499
6501
|
return e.content = [...e.content || [], ...t], e.plugins = [...e.plugins || [], ...n], e;
|
|
6500
6502
|
}
|
|
6501
6503
|
};
|
|
6502
6504
|
export {
|
|
6503
|
-
|
|
6505
|
+
as as twPlugin
|
|
6504
6506
|
};
|