@weapp-tailwindcss/postcss 3.1.1 → 3.1.3

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.mjs CHANGED
@@ -43,8 +43,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
43
43
  value: mod,
44
44
  enumerable: true
45
45
  }) : target, mod));
46
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
47
- const MODERN_COLOR_FUNCTION_NAMES = new Set([
46
+ var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
47
+ const MODERN_COLOR_FUNCTION_NAMES = /* @__PURE__ */ new Set([
48
48
  "oklch",
49
49
  "oklab",
50
50
  "lch",
@@ -895,15 +895,15 @@ function isTokenOpenCurly(e) {
895
895
  return !!e && e[0] === c$7.OpenCurly;
896
896
  }
897
897
  //#endregion
898
- //#region ../../node_modules/.pnpm/@csstools+color-helpers@6.0.2/node_modules/@csstools/color-helpers/dist/index.mjs
899
- function multiplyMatrices(t, n) {
898
+ //#region ../../node_modules/.pnpm/@csstools+color-helpers@6.1.0/node_modules/@csstools/color-helpers/dist/index.mjs
899
+ function multiplyMatrices(_, t) {
900
900
  return [
901
- t[0] * n[0] + t[1] * n[1] + t[2] * n[2],
902
- t[3] * n[0] + t[4] * n[1] + t[5] * n[2],
903
- t[6] * n[0] + t[7] * n[1] + t[8] * n[2]
901
+ _[0] * t[0] + _[1] * t[1] + _[2] * t[2],
902
+ _[3] * t[0] + _[4] * t[1] + _[5] * t[2],
903
+ _[6] * t[0] + _[7] * t[1] + _[8] * t[2]
904
904
  ];
905
905
  }
906
- const t$16 = [
906
+ const _$1 = [
907
907
  .955473421488075,
908
908
  -.02309845494876471,
909
909
  .06325924320057072,
@@ -919,10 +919,10 @@ const t$16 = [
919
919
  *
920
920
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
921
921
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
922
- */ function D50_to_D65(n) {
923
- return multiplyMatrices(t$16, n);
922
+ */ function D50_to_D65(t) {
923
+ return multiplyMatrices(_$1, t);
924
924
  }
925
- const n$12 = [
925
+ const t$16 = [
926
926
  1.0479297925449969,
927
927
  .022946870601609652,
928
928
  -.05019226628920524,
@@ -938,8 +938,8 @@ const n$12 = [
938
938
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
939
939
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
940
940
  * @see http://www.brucelindbloom.com/index.html?Eqn_ChromAdapt.html
941
- */ function D65_to_D50(t) {
942
- return multiplyMatrices(n$12, t);
941
+ */ function D65_to_D50(_) {
942
+ return multiplyMatrices(t$16, _);
943
943
  }
944
944
  /**
945
945
  * @param {number} hue - Hue as degrees 0..360
@@ -950,18 +950,18 @@ const n$12 = [
950
950
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
951
951
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hslToRgb.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
952
952
  * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hslToRgb.js
953
- */ function HSL_to_sRGB(t) {
954
- let n = t[0] % 360;
955
- const _ = t[1] / 100, o = t[2] / 100;
956
- return n < 0 && (n += 360), [
957
- HSL_to_sRGB_channel(0, n, _, o),
958
- HSL_to_sRGB_channel(8, n, _, o),
959
- HSL_to_sRGB_channel(4, n, _, o)
953
+ */ function HSL_to_sRGB(_) {
954
+ let t = _[0] % 360;
955
+ const n = _[1] / 100, o = _[2] / 100;
956
+ return t < 0 && (t += 360), [
957
+ HSL_to_sRGB_channel(0, t, n, o),
958
+ HSL_to_sRGB_channel(8, t, n, o),
959
+ HSL_to_sRGB_channel(4, t, n, o)
960
960
  ];
961
961
  }
962
- function HSL_to_sRGB_channel(t, n, _, o) {
963
- const e = (t + n / 30) % 12;
964
- return o - _ * Math.min(o, 1 - o) * Math.max(-1, Math.min(e - 3, 9 - e, 1));
962
+ function HSL_to_sRGB_channel(_, t, n, o) {
963
+ const e = (_ + t / 30) % 12;
964
+ return o - n * Math.min(o, 1 - o) * Math.max(-1, Math.min(e - 3, 9 - e, 1));
965
965
  }
966
966
  /**
967
967
  * @param {number} hue - Hue as degrees 0..360
@@ -972,51 +972,51 @@ function HSL_to_sRGB_channel(t, n, _, o) {
972
972
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
973
973
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hwbToRgb.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
974
974
  * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hwbToRgb.js
975
- */ function HWB_to_sRGB(t) {
976
- const n = t[0], _ = t[1] / 100, o = t[2] / 100;
977
- if (_ + o >= 1) {
978
- const t = _ / (_ + o);
975
+ */ function HWB_to_sRGB(_) {
976
+ const t = _[0], n = _[1] / 100, o = _[2] / 100;
977
+ if (n + o >= 1) {
978
+ const _ = n / (n + o);
979
979
  return [
980
- t,
981
- t,
982
- t
980
+ _,
981
+ _,
982
+ _
983
983
  ];
984
984
  }
985
985
  const e = HSL_to_sRGB([
986
- n,
986
+ t,
987
987
  100,
988
988
  50
989
- ]), a = 1 - _ - o;
989
+ ]), r = 1 - n - o;
990
990
  return [
991
- e[0] * a + _,
992
- e[1] * a + _,
993
- e[2] * a + _
991
+ e[0] * r + n,
992
+ e[1] * r + n,
993
+ e[2] * r + n
994
994
  ];
995
995
  }
996
996
  /**
997
997
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
998
998
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
999
- */ function LCH_to_Lab(t) {
1000
- const n = t[2] * Math.PI / 180;
999
+ */ function LCH_to_Lab(_) {
1000
+ const t = _[2] * Math.PI / 180;
1001
1001
  return [
1002
- t[0],
1003
- t[1] * Math.cos(n),
1004
- t[1] * Math.sin(n)
1002
+ _[0],
1003
+ _[1] * Math.cos(t),
1004
+ _[1] * Math.sin(t)
1005
1005
  ];
1006
1006
  }
1007
1007
  /**
1008
1008
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1009
1009
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1010
- */ function Lab_to_LCH(t) {
1011
- const n = Math.sqrt(Math.pow(t[1], 2) + Math.pow(t[2], 2));
1012
- let _ = 180 * Math.atan2(t[2], t[1]) / Math.PI;
1013
- return _ < 0 && (_ += 360), n <= .0015 && (_ = NaN), [
1014
- t[0],
1015
- n,
1016
- _
1010
+ */ function Lab_to_LCH(_) {
1011
+ const t = Math.sqrt(Math.pow(_[1], 2) + Math.pow(_[2], 2));
1012
+ let n = 180 * Math.atan2(_[2], _[1]) / Math.PI;
1013
+ return n < 0 && (n += 360), t <= .0015 && (n = NaN), [
1014
+ _[0],
1015
+ t,
1016
+ n
1017
1017
  ];
1018
1018
  }
1019
- const _$1 = [
1019
+ const n$12 = [
1020
1020
  .3457 / .3585,
1021
1021
  1,
1022
1022
  .2958 / .3585
@@ -1026,37 +1026,37 @@ const _$1 = [
1026
1026
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1027
1027
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1028
1028
  * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
1029
- */ function Lab_to_XYZ(t) {
1030
- const n = 24389 / 27, o = 216 / 24389, e = (t[0] + 16) / 116, a = t[1] / 500 + e, r = e - t[2] / 200;
1029
+ */ function Lab_to_XYZ(_) {
1030
+ const t = 24389 / 27, o = 216 / 24389, e = (_[0] + 16) / 116, r = _[1] / 500 + e, a = e - _[2] / 200;
1031
1031
  return [
1032
- (Math.pow(a, 3) > o ? Math.pow(a, 3) : (116 * a - 16) / n) * _$1[0],
1033
- (t[0] > 8 ? Math.pow((t[0] + 16) / 116, 3) : t[0] / n) * _$1[1],
1034
- (Math.pow(r, 3) > o ? Math.pow(r, 3) : (116 * r - 16) / n) * _$1[2]
1032
+ (Math.pow(r, 3) > o ? Math.pow(r, 3) : (116 * r - 16) / t) * n$12[0],
1033
+ (_[0] > 8 ? Math.pow((_[0] + 16) / 116, 3) : _[0] / t) * n$12[1],
1034
+ (Math.pow(a, 3) > o ? Math.pow(a, 3) : (116 * a - 16) / t) * n$12[2]
1035
1035
  ];
1036
1036
  }
1037
1037
  /**
1038
1038
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1039
1039
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1040
1040
  * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js
1041
- */ function OKLCH_to_OKLab(t) {
1042
- const n = t[2] * Math.PI / 180;
1041
+ */ function OKLCH_to_OKLab(_) {
1042
+ const t = _[2] * Math.PI / 180;
1043
1043
  return [
1044
- t[0],
1045
- t[1] * Math.cos(n),
1046
- t[1] * Math.sin(n)
1044
+ _[0],
1045
+ _[1] * Math.cos(t),
1046
+ _[1] * Math.sin(t)
1047
1047
  ];
1048
1048
  }
1049
1049
  /**
1050
1050
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1051
1051
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1052
1052
  * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js
1053
- */ function OKLab_to_OKLCH(t) {
1054
- const n = Math.sqrt(t[1] ** 2 + t[2] ** 2);
1055
- let _ = 180 * Math.atan2(t[2], t[1]) / Math.PI;
1056
- return _ < 0 && (_ += 360), n <= 4e-6 && (_ = NaN), [
1057
- t[0],
1058
- n,
1059
- _
1053
+ */ function OKLab_to_OKLCH(_) {
1054
+ const t = Math.sqrt(_[1] ** 2 + _[2] ** 2);
1055
+ let n = 180 * Math.atan2(_[2], _[1]) / Math.PI;
1056
+ return n < 0 && (n += 360), t <= 4e-6 && (n = NaN), [
1057
+ _[0],
1058
+ t,
1059
+ n
1060
1060
  ];
1061
1061
  }
1062
1062
  const o$25 = [
@@ -1087,12 +1087,12 @@ const o$25 = [
1087
1087
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1088
1088
  * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js
1089
1089
  */
1090
- function OKLab_to_XYZ(t) {
1091
- const n = multiplyMatrices(e$11, t);
1090
+ function OKLab_to_XYZ(_) {
1091
+ const t = multiplyMatrices(e$11, _);
1092
1092
  return multiplyMatrices(o$25, [
1093
- n[0] ** 3,
1094
- n[1] ** 3,
1095
- n[2] ** 3
1093
+ t[0] ** 3,
1094
+ t[1] ** 3,
1095
+ t[2] ** 3
1096
1096
  ]);
1097
1097
  }
1098
1098
  /**
@@ -1101,19 +1101,19 @@ function OKLab_to_XYZ(t) {
1101
1101
  *
1102
1102
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1103
1103
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1104
- */ function XYZ_to_Lab(t) {
1105
- const n = compute_f(t[0] / _$1[0]), o = compute_f(t[1] / _$1[1]);
1104
+ */ function XYZ_to_Lab(_) {
1105
+ const t = compute_f(_[0] / n$12[0]), o = compute_f(_[1] / n$12[1]);
1106
1106
  return [
1107
1107
  116 * o - 16,
1108
- 500 * (n - o),
1109
- 200 * (o - compute_f(t[2] / _$1[2]))
1108
+ 500 * (t - o),
1109
+ 200 * (o - compute_f(_[2] / n$12[2]))
1110
1110
  ];
1111
1111
  }
1112
- const a$7 = 216 / 24389, r$9 = 24389 / 27;
1113
- function compute_f(t) {
1114
- return t > a$7 ? Math.cbrt(t) : (r$9 * t + 16) / 116;
1112
+ const r$9 = 216 / 24389, a$7 = 24389 / 27;
1113
+ function compute_f(_) {
1114
+ return _ > r$9 ? Math.cbrt(_) : (a$7 * _ + 16) / 116;
1115
1115
  }
1116
- const l$8 = [
1116
+ const i$10 = [
1117
1117
  .819022437996703,
1118
1118
  .3619062600528904,
1119
1119
  -.1288737815209879,
@@ -1123,7 +1123,7 @@ const l$8 = [
1123
1123
  .0481771893596242,
1124
1124
  .2642395317527308,
1125
1125
  .6335478284694309
1126
- ], i$10 = [
1126
+ ], l$8 = [
1127
1127
  .210454268309314,
1128
1128
  .7936177747023054,
1129
1129
  -.0040720430116193,
@@ -1141,15 +1141,15 @@ const l$8 = [
1141
1141
  * XYZ <-> LMS matrices recalculated for consistent reference white
1142
1142
  * @see https://github.com/w3c/csswg-drafts/issues/6642#issuecomment-943521484
1143
1143
  */
1144
- function XYZ_to_OKLab(t) {
1145
- const n = multiplyMatrices(l$8, t);
1146
- return multiplyMatrices(i$10, [
1147
- Math.cbrt(n[0]),
1148
- Math.cbrt(n[1]),
1149
- Math.cbrt(n[2])
1144
+ function XYZ_to_OKLab(_) {
1145
+ const t = multiplyMatrices(i$10, _);
1146
+ return multiplyMatrices(l$8, [
1147
+ Math.cbrt(t[0]),
1148
+ Math.cbrt(t[1]),
1149
+ Math.cbrt(t[2])
1150
1150
  ]);
1151
1151
  }
1152
- const c$6 = [
1152
+ const u$9 = [
1153
1153
  30757411 / 17917100,
1154
1154
  -6372589 / 17917100,
1155
1155
  -4539589 / 17917100,
@@ -1165,7 +1165,10 @@ const c$6 = [
1165
1165
  *
1166
1166
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1167
1167
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1168
- */ const u$9 = [
1168
+ */ function XYZ_to_lin_2020(_) {
1169
+ return multiplyMatrices(u$9, _);
1170
+ }
1171
+ const c$6 = [
1169
1172
  446124 / 178915,
1170
1173
  -333277 / 357830,
1171
1174
  -72051 / 178915,
@@ -1181,8 +1184,8 @@ const c$6 = [
1181
1184
  *
1182
1185
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1183
1186
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1184
- */ function XYZ_to_lin_P3(t) {
1185
- return multiplyMatrices(u$9, t);
1187
+ */ function XYZ_to_lin_P3(_) {
1188
+ return multiplyMatrices(c$6, _);
1186
1189
  }
1187
1190
  const s$16 = [
1188
1191
  1.3457868816471583,
@@ -1201,7 +1204,10 @@ const s$16 = [
1201
1204
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1202
1205
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1203
1206
  * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
1204
- */ const h$2 = [
1207
+ */ function XYZ_to_lin_ProPhoto(_) {
1208
+ return multiplyMatrices(s$16, _);
1209
+ }
1210
+ const X = [
1205
1211
  1829569 / 896150,
1206
1212
  -506331 / 896150,
1207
1213
  -308931 / 896150,
@@ -1217,7 +1223,10 @@ const s$16 = [
1217
1223
  *
1218
1224
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1219
1225
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1220
- */ const m$10 = [
1226
+ */ function XYZ_to_lin_a98rgb(_) {
1227
+ return multiplyMatrices(X, _);
1228
+ }
1229
+ const Y$1 = [
1221
1230
  12831 / 3959,
1222
1231
  -329 / 214,
1223
1232
  -1974 / 3959,
@@ -1231,8 +1240,8 @@ const s$16 = [
1231
1240
  /**
1232
1241
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1233
1242
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1234
- */ function XYZ_to_lin_sRGB(t) {
1235
- return multiplyMatrices(m$10, t);
1243
+ */ function XYZ_to_lin_sRGB(_) {
1244
+ return multiplyMatrices(Y$1, _);
1236
1245
  }
1237
1246
  /**
1238
1247
  * Convert an array of linear-light rec2020 RGB in the range 0.0-1.0
@@ -1240,8 +1249,15 @@ const s$16 = [
1240
1249
  *
1241
1250
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1242
1251
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1243
- */ function gam_2020_channel(t) {
1244
- return (t < 0 ? -1 : 1) * Math.pow(Math.abs(t), 1 / 2.4);
1252
+ */ function gam_2020(_) {
1253
+ return [
1254
+ gam_2020_channel(_[0]),
1255
+ gam_2020_channel(_[1]),
1256
+ gam_2020_channel(_[2])
1257
+ ];
1258
+ }
1259
+ function gam_2020_channel(_) {
1260
+ return (_ < 0 ? -1 : 1) * Math.pow(Math.abs(_), 1 / 2.4);
1245
1261
  }
1246
1262
  /**
1247
1263
  * Convert an array of linear-light sRGB values in the range 0.0-1.0 to gamma corrected form
@@ -1252,16 +1268,16 @@ const s$16 = [
1252
1268
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1253
1269
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1254
1270
  * @see https://en.wikipedia.org/wiki/SRGB
1255
- */ function gam_sRGB(t) {
1271
+ */ function gam_sRGB(_) {
1256
1272
  return [
1257
- gam_sRGB_channel(t[0]),
1258
- gam_sRGB_channel(t[1]),
1259
- gam_sRGB_channel(t[2])
1273
+ gam_sRGB_channel(_[0]),
1274
+ gam_sRGB_channel(_[1]),
1275
+ gam_sRGB_channel(_[2])
1260
1276
  ];
1261
1277
  }
1262
- function gam_sRGB_channel(t) {
1263
- const n = t < 0 ? -1 : 1, _ = Math.abs(t);
1264
- return _ > .0031308 ? n * (1.055 * Math.pow(_, 1 / 2.4) - .055) : 12.92 * t;
1278
+ function gam_sRGB_channel(_) {
1279
+ const t = _ < 0 ? -1 : 1, n = Math.abs(_);
1280
+ return n > .0031308 ? t * (1.055 * Math.pow(n, 1 / 2.4) - .055) : 12.92 * _;
1265
1281
  }
1266
1282
  /**
1267
1283
  * Convert an array of linear-light display-p3 RGB in the range 0.0-1.0
@@ -1269,8 +1285,8 @@ function gam_sRGB_channel(t) {
1269
1285
  *
1270
1286
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1271
1287
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1272
- */ function gam_P3(t) {
1273
- return gam_sRGB(t);
1288
+ */ function gam_P3(_) {
1289
+ return gam_sRGB(_);
1274
1290
  }
1275
1291
  /**
1276
1292
  * Convert an array of linear-light prophoto-rgb in the range 0.0-1.0
@@ -1279,10 +1295,17 @@ function gam_sRGB_channel(t) {
1279
1295
  *
1280
1296
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1281
1297
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1282
- */ const D$1 = 1 / 512;
1283
- function gam_ProPhoto_channel(t) {
1284
- const n = t < 0 ? -1 : 1, _ = Math.abs(t);
1285
- return _ >= D$1 ? n * Math.pow(_, 1 / 1.8) : 16 * t;
1298
+ */ function gam_ProPhoto(_) {
1299
+ return [
1300
+ gam_ProPhoto_channel(_[0]),
1301
+ gam_ProPhoto_channel(_[1]),
1302
+ gam_ProPhoto_channel(_[2])
1303
+ ];
1304
+ }
1305
+ const Z$1 = 1 / 512;
1306
+ function gam_ProPhoto_channel(_) {
1307
+ const t = _ < 0 ? -1 : 1, n = Math.abs(_);
1308
+ return n >= Z$1 ? t * Math.pow(n, 1 / 1.8) : 16 * _;
1286
1309
  }
1287
1310
  /**
1288
1311
  * Convert an array of linear-light a98-rgb in the range 0.0-1.0
@@ -1290,8 +1313,15 @@ function gam_ProPhoto_channel(t) {
1290
1313
  *
1291
1314
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1292
1315
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1293
- */ function gam_a98rgb_channel(t) {
1294
- return (t < 0 ? -1 : 1) * Math.pow(Math.abs(t), 256 / 563);
1316
+ */ function gam_a98rgb(_) {
1317
+ return [
1318
+ gam_a98rgb_channel(_[0]),
1319
+ gam_a98rgb_channel(_[1]),
1320
+ gam_a98rgb_channel(_[2])
1321
+ ];
1322
+ }
1323
+ function gam_a98rgb_channel(_) {
1324
+ return (_ < 0 ? -1 : 1) * Math.pow(Math.abs(_), 256 / 563);
1295
1325
  }
1296
1326
  /**
1297
1327
  * Convert an array of rec2020 RGB values in the range 0.0 - 1.0
@@ -1300,10 +1330,17 @@ function gam_ProPhoto_channel(t) {
1300
1330
  *
1301
1331
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1302
1332
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1303
- */ function lin_2020_channel(t) {
1304
- return (t < 0 ? -1 : 1) * Math.pow(Math.abs(t), 2.4);
1333
+ */ function lin_2020(_) {
1334
+ return [
1335
+ lin_2020_channel(_[0]),
1336
+ lin_2020_channel(_[1]),
1337
+ lin_2020_channel(_[2])
1338
+ ];
1305
1339
  }
1306
- const b$2 = [
1340
+ function lin_2020_channel(_) {
1341
+ return (_ < 0 ? -1 : 1) * Math.pow(Math.abs(_), 2.4);
1342
+ }
1343
+ const D$1 = [
1307
1344
  63426534 / 99577255,
1308
1345
  20160776 / 139408157,
1309
1346
  47086771 / 278816314,
@@ -1321,7 +1358,9 @@ const b$2 = [
1321
1358
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1322
1359
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1323
1360
  * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
1324
- */
1361
+ */ function lin_2020_to_XYZ(_) {
1362
+ return multiplyMatrices(D$1, _);
1363
+ }
1325
1364
  /**
1326
1365
  * Convert an array of of sRGB values where in-gamut values are in the range
1327
1366
  * [0 - 1] to linear light (un-companded) form.
@@ -1332,17 +1371,16 @@ const b$2 = [
1332
1371
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1333
1372
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1334
1373
  * @see https://en.wikipedia.org/wiki/SRGB
1335
- */
1336
- function lin_sRGB(t) {
1374
+ */ function lin_sRGB(_) {
1337
1375
  return [
1338
- lin_sRGB_channel(t[0]),
1339
- lin_sRGB_channel(t[1]),
1340
- lin_sRGB_channel(t[2])
1376
+ lin_sRGB_channel(_[0]),
1377
+ lin_sRGB_channel(_[1]),
1378
+ lin_sRGB_channel(_[2])
1341
1379
  ];
1342
1380
  }
1343
- function lin_sRGB_channel(t) {
1344
- const n = t < 0 ? -1 : 1, _ = Math.abs(t);
1345
- return _ <= .04045 ? t / 12.92 : n * Math.pow((_ + .055) / 1.055, 2.4);
1381
+ function lin_sRGB_channel(_) {
1382
+ const t = _ < 0 ? -1 : 1, n = Math.abs(_);
1383
+ return n <= .04045 ? _ / 12.92 : t * Math.pow((n + .055) / 1.055, 2.4);
1346
1384
  }
1347
1385
  /**
1348
1386
  * Convert an array of display-p3 RGB values in the range 0.0 - 1.0
@@ -1350,10 +1388,10 @@ function lin_sRGB_channel(t) {
1350
1388
  *
1351
1389
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1352
1390
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1353
- */ function lin_P3(t) {
1354
- return lin_sRGB(t);
1391
+ */ function lin_P3(_) {
1392
+ return lin_sRGB(_);
1355
1393
  }
1356
- const g$7 = [
1394
+ const h$2 = [
1357
1395
  608311 / 1250200,
1358
1396
  189793 / 714400,
1359
1397
  198249 / 1000160,
@@ -1371,8 +1409,8 @@ const g$7 = [
1371
1409
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1372
1410
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1373
1411
  * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
1374
- */ function lin_P3_to_XYZ(t) {
1375
- return multiplyMatrices(g$7, t);
1412
+ */ function lin_P3_to_XYZ(_) {
1413
+ return multiplyMatrices(h$2, _);
1376
1414
  }
1377
1415
  /**
1378
1416
  * Convert an array of prophoto-rgb values where in-gamut Colors are in the
@@ -1381,12 +1419,19 @@ const g$7 = [
1381
1419
  *
1382
1420
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1383
1421
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1384
- */ const X = 16 / 512;
1385
- function lin_ProPhoto_channel(t) {
1386
- const n = t < 0 ? -1 : 1, _ = Math.abs(t);
1387
- return _ <= X ? t / 16 : n * Math.pow(_, 1.8);
1422
+ */ function lin_ProPhoto(_) {
1423
+ return [
1424
+ lin_ProPhoto_channel(_[0]),
1425
+ lin_ProPhoto_channel(_[1]),
1426
+ lin_ProPhoto_channel(_[2])
1427
+ ];
1388
1428
  }
1389
- const Y$1 = [
1429
+ const f$9 = 16 / 512;
1430
+ function lin_ProPhoto_channel(_) {
1431
+ const t = _ < 0 ? -1 : 1, n = Math.abs(_);
1432
+ return n <= f$9 ? _ / 16 : t * Math.pow(n, 1.8);
1433
+ }
1434
+ const m$10 = [
1390
1435
  .7977666449006423,
1391
1436
  .13518129740053308,
1392
1437
  .0313477341283922,
@@ -1404,10 +1449,26 @@ const Y$1 = [
1404
1449
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1405
1450
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1406
1451
  * @see see https://github.com/w3c/csswg-drafts/issues/7675
1407
- */ function lin_a98rgb_channel(t) {
1408
- return (t < 0 ? -1 : 1) * Math.pow(Math.abs(t), 563 / 256);
1452
+ */ function lin_ProPhoto_to_XYZ(_) {
1453
+ return multiplyMatrices(m$10, _);
1454
+ }
1455
+ /**
1456
+ * Convert an array of a98-rgb values in the range 0.0 - 1.0
1457
+ * to linear light (un-companded) form. Negative values are also now accepted
1458
+ *
1459
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1460
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1461
+ */ function lin_a98rgb(_) {
1462
+ return [
1463
+ lin_a98rgb_channel(_[0]),
1464
+ lin_a98rgb_channel(_[1]),
1465
+ lin_a98rgb_channel(_[2])
1466
+ ];
1467
+ }
1468
+ function lin_a98rgb_channel(_) {
1469
+ return (_ < 0 ? -1 : 1) * Math.pow(Math.abs(_), 563 / 256);
1409
1470
  }
1410
- const Z$1 = [
1471
+ const b$2 = [
1411
1472
  573536 / 994567,
1412
1473
  263643 / 1420810,
1413
1474
  187206 / 994567,
@@ -1431,7 +1492,10 @@ const Z$1 = [
1431
1492
  * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
1432
1493
  * @see https://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf
1433
1494
  * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/matrixmaker.html
1434
- */ const f$9 = [
1495
+ */ function lin_a98rgb_to_XYZ(_) {
1496
+ return multiplyMatrices(b$2, _);
1497
+ }
1498
+ const g$7 = [
1435
1499
  506752 / 1228815,
1436
1500
  87881 / 245763,
1437
1501
  12673 / 70218,
@@ -1448,8 +1512,8 @@ const Z$1 = [
1448
1512
  *
1449
1513
  * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1450
1514
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1451
- */ function lin_sRGB_to_XYZ(t) {
1452
- return multiplyMatrices(f$9, t);
1515
+ */ function lin_sRGB_to_XYZ(_) {
1516
+ return multiplyMatrices(g$7, _);
1453
1517
  }
1454
1518
  /**
1455
1519
  * Convert an array of gamma-corrected sRGB values in the 0.0 to 1.0 range to HSL.
@@ -1464,214 +1528,232 @@ const Z$1 = [
1464
1528
  * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/utilities.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1465
1529
  *
1466
1530
  * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/better-rgbToHsl.js
1467
- */ function sRGB_to_HSL(t) {
1468
- const n = t[0], _ = t[1], o = t[2], e = Math.max(n, _, o), a = Math.min(n, _, o), r = (a + e) / 2, l = e - a;
1469
- let i = NaN, c = 0;
1470
- if (0 !== Math.round(1e5 * l)) {
1471
- const t = Math.round(1e5 * r);
1472
- switch (c = 0 === t || 1e5 === t ? 0 : (e - r) / Math.min(r, 1 - r), e) {
1473
- case n:
1474
- i = (_ - o) / l + (_ < o ? 6 : 0);
1531
+ */ function sRGB_to_HSL(_) {
1532
+ const t = _[0], n = _[1], o = _[2], e = Math.max(t, n, o), r = Math.min(t, n, o), a = (r + e) / 2, i = e - r;
1533
+ let l = NaN, u = 0;
1534
+ if (0 !== Math.round(1e5 * i)) {
1535
+ const _ = Math.round(1e5 * a);
1536
+ switch (u = 0 === _ || 1e5 === _ ? 0 : (e - a) / Math.min(a, 1 - a), e) {
1537
+ case t:
1538
+ l = (n - o) / i + (n < o ? 6 : 0);
1475
1539
  break;
1476
- case _:
1477
- i = (o - n) / l + 2;
1540
+ case n:
1541
+ l = (o - t) / i + 2;
1478
1542
  break;
1479
- case o: i = (n - _) / l + 4;
1543
+ case o: l = (t - n) / i + 4;
1480
1544
  }
1481
- i *= 60;
1545
+ l *= 60;
1482
1546
  }
1483
- c < 0 && (i += 180, c = Math.abs(c)), i >= 360 && (i -= 360);
1484
- return c <= 1e-5 && (i = NaN), [
1485
- i,
1486
- 100 * c,
1487
- 100 * r
1547
+ u < 0 && (l += 180, u = Math.abs(u)), l >= 360 && (l -= 360);
1548
+ return u <= 1e-5 && (l = NaN), [
1549
+ l,
1550
+ 100 * u,
1551
+ 100 * a
1488
1552
  ];
1489
1553
  }
1490
- function sRGB_to_Hue(t) {
1491
- const n = t[0], _ = t[1], o = t[2], e = Math.max(n, _, o), a = Math.min(n, _, o);
1492
- let r = NaN;
1493
- const l = e - a;
1494
- if (0 !== l) {
1554
+ function sRGB_to_Hue(_) {
1555
+ const t = _[0], n = _[1], o = _[2], e = Math.max(t, n, o), r = Math.min(t, n, o);
1556
+ let a = NaN;
1557
+ const i = e - r;
1558
+ if (0 !== i) {
1495
1559
  switch (e) {
1496
- case n:
1497
- r = (_ - o) / l + (_ < o ? 6 : 0);
1560
+ case t:
1561
+ a = (n - o) / i + (n < o ? 6 : 0);
1498
1562
  break;
1499
- case _:
1500
- r = (o - n) / l + 2;
1563
+ case n:
1564
+ a = (o - t) / i + 2;
1501
1565
  break;
1502
- case o: r = (n - _) / l + 4;
1566
+ case o: a = (t - n) / i + 4;
1503
1567
  }
1504
- r *= 60;
1568
+ a *= 60;
1505
1569
  }
1506
- return r >= 360 && (r -= 360), r;
1570
+ return a >= 360 && (a -= 360), a;
1507
1571
  }
1508
- function sRGB_to_XYZ_D50(t) {
1509
- let n = t;
1510
- return n = lin_sRGB(n), n = lin_sRGB_to_XYZ(n), n = D65_to_D50(n), n;
1572
+ function sRGB_to_XYZ_D50(_) {
1573
+ let t = _;
1574
+ return t = lin_sRGB(t), t = lin_sRGB_to_XYZ(t), t = D65_to_D50(t), t;
1511
1575
  }
1512
- function XYZ_D50_to_sRGB(t) {
1513
- let n = t;
1514
- return n = D50_to_D65(n), n = XYZ_to_lin_sRGB(n), n = gam_sRGB(n), n;
1576
+ function HSL_to_XYZ_D50(_) {
1577
+ let t = _;
1578
+ return t = HSL_to_sRGB(t), t = lin_sRGB(t), t = lin_sRGB_to_XYZ(t), t = D65_to_D50(t), t;
1515
1579
  }
1516
- function HSL_to_XYZ_D50(t) {
1517
- let n = t;
1518
- return n = HSL_to_sRGB(n), n = lin_sRGB(n), n = lin_sRGB_to_XYZ(n), n = D65_to_D50(n), n;
1580
+ function HWB_to_XYZ_D50(_) {
1581
+ let t = _;
1582
+ return t = HWB_to_sRGB(t), t = lin_sRGB(t), t = lin_sRGB_to_XYZ(t), t = D65_to_D50(t), t;
1519
1583
  }
1520
- function XYZ_D50_to_HSL(t) {
1521
- let n = t;
1522
- return n = D50_to_D65(n), n = XYZ_to_lin_sRGB(n), n = gam_sRGB(n), n = sRGB_to_HSL(n), n;
1584
+ function Lab_to_XYZ_D50(_) {
1585
+ let t = _;
1586
+ return t = Lab_to_XYZ(t), t;
1523
1587
  }
1524
- function HWB_to_XYZ_D50(t) {
1525
- let n = t;
1526
- return n = HWB_to_sRGB(n), n = lin_sRGB(n), n = lin_sRGB_to_XYZ(n), n = D65_to_D50(n), n;
1588
+ function XYZ_D50_to_Lab(_) {
1589
+ let t = _;
1590
+ return t = XYZ_to_Lab(t), t;
1527
1591
  }
1528
- function XYZ_D50_to_HWB(t) {
1529
- let n = t;
1530
- n = D50_to_D65(n), n = XYZ_to_lin_sRGB(n);
1531
- const _ = gam_sRGB(n), o = Math.min(_[0], _[1], _[2]), e = 1 - Math.max(_[0], _[1], _[2]);
1532
- let a = sRGB_to_Hue(_);
1533
- return o + e >= .99999 && (a = NaN), [
1534
- a,
1535
- 100 * o,
1536
- 100 * e
1537
- ];
1592
+ function LCH_to_XYZ_D50(_) {
1593
+ let t = _;
1594
+ return t = LCH_to_Lab(t), t = Lab_to_XYZ(t), t;
1538
1595
  }
1539
- function Lab_to_XYZ_D50(t) {
1540
- let n = t;
1541
- return n = Lab_to_XYZ(n), n;
1596
+ function XYZ_D50_to_LCH(_) {
1597
+ let t = _;
1598
+ return t = XYZ_to_Lab(t), t = Lab_to_LCH(t), t;
1542
1599
  }
1543
- function XYZ_D50_to_Lab(t) {
1544
- let n = t;
1545
- return n = XYZ_to_Lab(n), n;
1600
+ function OKLab_to_XYZ_D50(_) {
1601
+ let t = _;
1602
+ return t = OKLab_to_XYZ(t), t = D65_to_D50(t), t;
1546
1603
  }
1547
- function LCH_to_XYZ_D50(t) {
1548
- let n = t;
1549
- return n = LCH_to_Lab(n), n = Lab_to_XYZ(n), n;
1604
+ function OKLCH_to_XYZ_D50(_) {
1605
+ let t = _;
1606
+ return t = OKLCH_to_OKLab(t), t = OKLab_to_XYZ(t), t = D65_to_D50(t), t;
1550
1607
  }
1551
- function XYZ_D50_to_LCH(t) {
1552
- let n = t;
1553
- return n = XYZ_to_Lab(n), n = Lab_to_LCH(n), n;
1608
+ function lin_sRGB_to_XYZ_D50(_) {
1609
+ let t = _;
1610
+ return t = lin_sRGB_to_XYZ(t), t = D65_to_D50(t), t;
1554
1611
  }
1555
- function OKLab_to_XYZ_D50(t) {
1556
- let n = t;
1557
- return n = OKLab_to_XYZ(n), n = D65_to_D50(n), n;
1612
+ function a98_RGB_to_XYZ_D50(_) {
1613
+ let t = _;
1614
+ return t = lin_a98rgb(t), t = lin_a98rgb_to_XYZ(t), t = D65_to_D50(t), t;
1558
1615
  }
1559
- function XYZ_D50_to_OKLab(t) {
1560
- let n = t;
1561
- return n = D50_to_D65(n), n = XYZ_to_OKLab(n), n;
1616
+ function P3_to_XYZ_D50(_) {
1617
+ let t = _;
1618
+ return t = lin_P3(t), t = lin_P3_to_XYZ(t), t = D65_to_D50(t), t;
1562
1619
  }
1563
- function OKLCH_to_XYZ_D50(t) {
1564
- let n = t;
1565
- return n = OKLCH_to_OKLab(n), n = OKLab_to_XYZ(n), n = D65_to_D50(n), n;
1620
+ function lin_P3_to_XYZ_D50(_) {
1621
+ let t = _;
1622
+ return t = lin_P3_to_XYZ(t), t = D65_to_D50(t), t;
1566
1623
  }
1567
- function XYZ_D50_to_OKLCH(t) {
1568
- let n = t;
1569
- return n = D50_to_D65(n), n = XYZ_to_OKLab(n), n = OKLab_to_OKLCH(n), n;
1624
+ function rec_2020_to_XYZ_D50(_) {
1625
+ let t = _;
1626
+ return t = lin_2020(t), t = lin_2020_to_XYZ(t), t = D65_to_D50(t), t;
1570
1627
  }
1571
- function lin_sRGB_to_XYZ_D50(t) {
1572
- let n = t;
1573
- return n = lin_sRGB_to_XYZ(n), n = D65_to_D50(n), n;
1628
+ function ProPhoto_RGB_to_XYZ_D50(_) {
1629
+ let t = _;
1630
+ return t = lin_ProPhoto(t), t = lin_ProPhoto_to_XYZ(t), t;
1574
1631
  }
1575
- function XYZ_D50_to_lin_sRGB(t) {
1576
- let n = t;
1577
- return n = D50_to_D65(n), n = XYZ_to_lin_sRGB(n), n;
1632
+ function XYZ_D50_to_ProPhoto(_) {
1633
+ let t = _;
1634
+ return t = XYZ_to_lin_ProPhoto(t), t = gam_ProPhoto(t), t;
1578
1635
  }
1579
- function a98_RGB_to_XYZ_D50(t) {
1580
- let n = t;
1581
- /**
1582
- * Convert an array of a98-rgb values in the range 0.0 - 1.0
1583
- * to linear light (un-companded) form. Negative values are also now accepted
1584
- *
1585
- * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
1586
- * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
1587
- */
1588
- var _;
1589
- return n = [
1590
- lin_a98rgb_channel((_ = n)[0]),
1591
- lin_a98rgb_channel(_[1]),
1592
- lin_a98rgb_channel(_[2])
1593
- ], n = multiplyMatrices(Z$1, n), n = D65_to_D50(n), n;
1636
+ function XYZ_D65_to_XYZ_D50(_) {
1637
+ let t = _;
1638
+ return t = D65_to_D50(t), t;
1594
1639
  }
1595
- function XYZ_D50_to_a98_RGB(t) {
1596
- let n = t;
1597
- var _;
1598
- return n = D50_to_D65(n), n = multiplyMatrices(h$2, n), n = [
1599
- gam_a98rgb_channel((_ = n)[0]),
1600
- gam_a98rgb_channel(_[1]),
1601
- gam_a98rgb_channel(_[2])
1602
- ], n;
1640
+ function XYZ_D50_to_XYZ_D65(_) {
1641
+ let t = _;
1642
+ return t = D50_to_D65(t), t;
1603
1643
  }
1604
- function P3_to_XYZ_D50(t) {
1605
- let n = t;
1606
- return n = lin_P3(n), n = lin_P3_to_XYZ(n), n = D65_to_D50(n), n;
1644
+ function XYZ_D50_to_XYZ_D50(_) {
1645
+ return _;
1607
1646
  }
1608
- function XYZ_D50_to_P3(t) {
1609
- let n = t;
1610
- return n = D50_to_D65(n), n = XYZ_to_lin_P3(n), n = gam_P3(n), n;
1647
+ function XYZ_D65_to_XYZ_D65(_) {
1648
+ return _;
1611
1649
  }
1612
- function lin_P3_to_XYZ_D50(t) {
1613
- let n = t;
1614
- return n = lin_P3_to_XYZ(n), n = D65_to_D50(n), n;
1650
+ function sRGB_to_XYZ_D65(_) {
1651
+ let t = _;
1652
+ return t = lin_sRGB(t), t = lin_sRGB_to_XYZ(t), t;
1615
1653
  }
1616
- function XYZ_D50_to_lin_P3(t) {
1617
- let n = t;
1618
- return n = D50_to_D65(n), n = XYZ_to_lin_P3(n), n;
1654
+ function XYZ_D65_to_sRGB(_) {
1655
+ let t = _;
1656
+ return t = XYZ_to_lin_sRGB(t), t = gam_sRGB(t), t;
1619
1657
  }
1620
- function rec_2020_to_XYZ_D50(t) {
1621
- let n = t;
1622
- var _;
1623
- return n = [
1624
- lin_2020_channel((_ = n)[0]),
1625
- lin_2020_channel(_[1]),
1626
- lin_2020_channel(_[2])
1627
- ], n = multiplyMatrices(b$2, n), n = D65_to_D50(n), n;
1658
+ function HSL_to_XYZ_D65(_) {
1659
+ let t = _;
1660
+ return t = HSL_to_sRGB(t), t = lin_sRGB(t), t = lin_sRGB_to_XYZ(t), t;
1628
1661
  }
1629
- function XYZ_D50_to_rec_2020(t) {
1630
- let n = t;
1631
- var _;
1632
- return n = D50_to_D65(n), n = multiplyMatrices(c$6, n), n = [
1633
- gam_2020_channel((_ = n)[0]),
1634
- gam_2020_channel(_[1]),
1635
- gam_2020_channel(_[2])
1636
- ], n;
1662
+ function XYZ_D65_to_HSL(_) {
1663
+ let t = _;
1664
+ return t = XYZ_to_lin_sRGB(t), t = gam_sRGB(t), t = sRGB_to_HSL(t), t;
1637
1665
  }
1638
- function ProPhoto_RGB_to_XYZ_D50(t) {
1639
- let n = t;
1640
- var _;
1641
- return n = [
1642
- lin_ProPhoto_channel((_ = n)[0]),
1643
- lin_ProPhoto_channel(_[1]),
1644
- lin_ProPhoto_channel(_[2])
1645
- ], n = multiplyMatrices(Y$1, n), n;
1666
+ function HWB_to_XYZ_D65(_) {
1667
+ let t = _;
1668
+ return t = HWB_to_sRGB(t), t = lin_sRGB(t), t = lin_sRGB_to_XYZ(t), t;
1646
1669
  }
1647
- function XYZ_D50_to_ProPhoto(t) {
1648
- let n = t;
1649
- var _;
1650
- return n = multiplyMatrices(s$16, n), n = [
1651
- gam_ProPhoto_channel((_ = n)[0]),
1652
- gam_ProPhoto_channel(_[1]),
1653
- gam_ProPhoto_channel(_[2])
1654
- ], n;
1670
+ function XYZ_D65_to_HWB(_) {
1671
+ let t = _;
1672
+ t = XYZ_to_lin_sRGB(t);
1673
+ const n = gam_sRGB(t), o = Math.min(n[0], n[1], n[2]), e = 1 - Math.max(n[0], n[1], n[2]);
1674
+ let r = sRGB_to_Hue(n);
1675
+ return o + e >= .99999 && (r = NaN), [
1676
+ r,
1677
+ 100 * o,
1678
+ 100 * e
1679
+ ];
1655
1680
  }
1656
- function XYZ_D65_to_XYZ_D50(t) {
1657
- let n = t;
1658
- return n = D65_to_D50(n), n;
1681
+ function Lab_to_XYZ_D65(_) {
1682
+ let t = _;
1683
+ return t = Lab_to_XYZ(t), t = D50_to_D65(t), t;
1659
1684
  }
1660
- function XYZ_D50_to_XYZ_D65(t) {
1661
- let n = t;
1662
- return n = D50_to_D65(n), n;
1685
+ function LCH_to_XYZ_D65(_) {
1686
+ let t = _;
1687
+ return t = LCH_to_Lab(t), t = Lab_to_XYZ(t), t = D50_to_D65(t), t;
1663
1688
  }
1664
- function XYZ_D50_to_XYZ_D50(t) {
1665
- return t;
1689
+ function OKLab_to_XYZ_D65(_) {
1690
+ let t = _;
1691
+ return t = OKLab_to_XYZ(t), t;
1692
+ }
1693
+ function XYZ_D65_to_OKLab(_) {
1694
+ let t = _;
1695
+ return t = XYZ_to_OKLab(t), t;
1696
+ }
1697
+ function OKLCH_to_XYZ_D65(_) {
1698
+ let t = _;
1699
+ return t = OKLCH_to_OKLab(t), t = OKLab_to_XYZ(t), t;
1700
+ }
1701
+ function XYZ_D65_to_OKLCH(_) {
1702
+ let t = _;
1703
+ return t = XYZ_to_OKLab(t), t = OKLab_to_OKLCH(t), t;
1704
+ }
1705
+ function lin_sRGB_to_XYZ_D65(_) {
1706
+ let t = _;
1707
+ return t = lin_sRGB_to_XYZ(t), t;
1708
+ }
1709
+ function XYZ_D65_to_lin_sRGB(_) {
1710
+ let t = _;
1711
+ return t = XYZ_to_lin_sRGB(t), t;
1712
+ }
1713
+ function a98_RGB_to_XYZ_D65(_) {
1714
+ let t = _;
1715
+ return t = lin_a98rgb(t), t = lin_a98rgb_to_XYZ(t), t;
1716
+ }
1717
+ function XYZ_D65_to_a98_RGB(_) {
1718
+ let t = _;
1719
+ return t = XYZ_to_lin_a98rgb(t), t = gam_a98rgb(t), t;
1720
+ }
1721
+ function P3_to_XYZ_D65(_) {
1722
+ let t = _;
1723
+ return t = lin_P3(t), t = lin_P3_to_XYZ(t), t;
1724
+ }
1725
+ function XYZ_D65_to_P3(_) {
1726
+ let t = _;
1727
+ return t = XYZ_to_lin_P3(t), t = gam_P3(t), t;
1666
1728
  }
1667
- function inGamut(t) {
1668
- return t[0] >= -1e-4 && t[0] <= 1.0001 && t[1] >= -1e-4 && t[1] <= 1.0001 && t[2] >= -1e-4 && t[2] <= 1.0001;
1729
+ function lin_P3_to_XYZ_D65(_) {
1730
+ let t = _;
1731
+ return t = lin_P3_to_XYZ(t), t;
1669
1732
  }
1670
- function clip(t) {
1733
+ function XYZ_D65_to_lin_P3(_) {
1734
+ let t = _;
1735
+ return t = XYZ_to_lin_P3(t), t;
1736
+ }
1737
+ function rec_2020_to_XYZ_D65(_) {
1738
+ let t = _;
1739
+ return t = lin_2020(t), t = lin_2020_to_XYZ(t), t;
1740
+ }
1741
+ function XYZ_D65_to_rec_2020(_) {
1742
+ let t = _;
1743
+ return t = XYZ_to_lin_2020(t), t = gam_2020(t), t;
1744
+ }
1745
+ function ProPhoto_RGB_to_XYZ_D65(_) {
1746
+ let t = _;
1747
+ return t = lin_ProPhoto(t), t = lin_ProPhoto_to_XYZ(t), t = D50_to_D65(t), t;
1748
+ }
1749
+ function inGamut(_) {
1750
+ return _[0] >= -1e-4 && _[0] <= 1.0001 && _[1] >= -1e-4 && _[1] <= 1.0001 && _[2] >= -1e-4 && _[2] <= 1.0001;
1751
+ }
1752
+ function clip(_) {
1671
1753
  return [
1672
- t[0] < 0 ? 0 : t[0] > 1 ? 1 : t[0],
1673
- t[1] < 0 ? 0 : t[1] > 1 ? 1 : t[1],
1674
- t[2] < 0 ? 0 : t[2] > 1 ? 1 : t[2]
1754
+ _[0] < 0 ? 0 : _[0] > 1 ? 1 : _[0],
1755
+ _[1] < 0 ? 0 : _[1] > 1 ? 1 : _[1],
1756
+ _[2] < 0 ? 0 : _[2] > 1 ? 1 : _[2]
1675
1757
  ];
1676
1758
  }
1677
1759
  /**
@@ -1686,48 +1768,48 @@ function clip(t) {
1686
1768
  */
1687
1769
  /**
1688
1770
  * @license MIT https://github.com/facelessuser/coloraide/blob/main/LICENSE.md
1689
- */ function mapGamutRayTrace(t, n, _) {
1690
- const o = t[0], e = t[2];
1691
- let a = n(t);
1692
- const r = n([
1771
+ */ function mapGamutRayTrace(_, t, n) {
1772
+ const o = _[0], e = _[2];
1773
+ let r = t(_);
1774
+ const a = t([
1693
1775
  o,
1694
1776
  0,
1695
1777
  e
1696
1778
  ]);
1697
- for (let t = 0; t < 4; t++) {
1698
- if (t > 0) {
1699
- const t = _(a);
1700
- t[0] = o, t[2] = e, a = n(t);
1779
+ for (let _ = 0; _ < 4; _++) {
1780
+ if (_ > 0) {
1781
+ const _ = n(r);
1782
+ _[0] = o, _[2] = e, r = t(_);
1701
1783
  }
1702
- const l = rayTraceBox(r, a);
1703
- if (!l) break;
1704
- a = l;
1784
+ const i = rayTraceBox(a, r);
1785
+ if (!i) break;
1786
+ r = i;
1705
1787
  }
1706
- return clip(a);
1788
+ return clip(r);
1707
1789
  }
1708
- function rayTraceBox(t, n) {
1709
- let _ = Infinity, o = -Infinity;
1790
+ function rayTraceBox(_, t) {
1791
+ let n = Infinity, o = -Infinity;
1710
1792
  const e = [
1711
1793
  0,
1712
1794
  0,
1713
1795
  0
1714
1796
  ];
1715
- for (let a = 0; a < 3; a++) {
1716
- const r = t[a], l = n[a] - r;
1717
- e[a] = l;
1718
- const i = 0, c = 1;
1719
- if (Math.abs(l) > 1e-15) {
1720
- const t = 1 / l, n = (i - r) * t, e = (c - r) * t;
1721
- o = Math.max(Math.min(n, e), o), _ = Math.min(Math.max(n, e), _);
1722
- } else if (r < i || r > c) return !1;
1723
- }
1724
- return !(o > _ || _ < 0) && (o < 0 && (o = _), !!isFinite(o) && [
1725
- t[0] + e[0] * o,
1726
- t[1] + e[1] * o,
1727
- t[2] + e[2] * o
1797
+ for (let r = 0; r < 3; r++) {
1798
+ const a = _[r], i = t[r] - a;
1799
+ e[r] = i;
1800
+ const l = 0, u = 1;
1801
+ if (Math.abs(i) > 1e-15) {
1802
+ const _ = 1 / i, t = (l - a) * _, e = (u - a) * _;
1803
+ o = Math.max(Math.min(t, e), o), n = Math.min(Math.max(t, e), n);
1804
+ } else if (a < l || a > u) return !1;
1805
+ }
1806
+ return !(o > n || n < 0) && (o < 0 && (o = n), !!isFinite(o) && [
1807
+ _[0] + e[0] * o,
1808
+ _[1] + e[1] * o,
1809
+ _[2] + e[2] * o
1728
1810
  ]);
1729
1811
  }
1730
- const d$2 = {
1812
+ const G$1 = {
1731
1813
  aliceblue: [
1732
1814
  240,
1733
1815
  248,
@@ -2469,13 +2551,13 @@ const d$2 = {
2469
2551
  50
2470
2552
  ]
2471
2553
  };
2472
- function luminance(t) {
2473
- const [n, _, o] = t.map((t) => t <= .04045 ? t / 12.92 : Math.pow((t + .055) / 1.055, 2.4));
2474
- return .2126 * n + .7152 * _ + .0722 * o;
2554
+ function luminance(_) {
2555
+ const [t, n, o] = _.map((_) => _ <= .04045 ? _ / 12.92 : Math.pow((_ + .055) / 1.055, 2.4));
2556
+ return .2126 * t + .7152 * n + .0722 * o;
2475
2557
  }
2476
- function contrast_ratio_wcag_2_1(t, n) {
2477
- const _ = luminance(t), o = luminance(n);
2478
- return (Math.max(_, o) + .05) / (Math.min(_, o) + .05);
2558
+ function contrast_ratio_wcag_2_1(_, t) {
2559
+ const n = luminance(_), o = luminance(t);
2560
+ return (Math.max(n, o) + .05) / (Math.min(n, o) + .05);
2479
2561
  }
2480
2562
  //#endregion
2481
2563
  //#region ../../node_modules/.pnpm/@csstools+css-parser-algorithms@4.0.0_@csstools+css-tokenizer@4.0.0/node_modules/@csstools/css-parser-algorithms/dist/index.mjs
@@ -2946,7 +3028,7 @@ const T$1 = {
2946
3028
  s: "s",
2947
3029
  hz: "hz",
2948
3030
  khz: "hz"
2949
- }, x$1 = new Map([
3031
+ }, x$1 = /* @__PURE__ */ new Map([
2950
3032
  ["cm", (e) => e],
2951
3033
  ["mm", (e) => 10 * e],
2952
3034
  ["q", (e) => 40 * e],
@@ -2954,17 +3036,17 @@ const T$1 = {
2954
3036
  ["pc", (e) => e / 2.54 * 6],
2955
3037
  ["pt", (e) => e / 2.54 * 72],
2956
3038
  ["px", (e) => e / 2.54 * 96]
2957
- ]), P$2 = new Map([
3039
+ ]), P$2 = /* @__PURE__ */ new Map([
2958
3040
  ["deg", (e) => e],
2959
3041
  ["grad", (e) => e / .9],
2960
3042
  ["rad", (e) => e / 180 * Math.PI],
2961
3043
  ["turn", (e) => e / 360]
2962
- ]), k$3 = new Map([
3044
+ ]), k$3 = /* @__PURE__ */ new Map([
2963
3045
  ["deg", (e) => .9 * e],
2964
3046
  ["grad", (e) => e],
2965
3047
  ["rad", (e) => .9 * e / 180 * Math.PI],
2966
3048
  ["turn", (e) => .9 * e / 360]
2967
- ]), W$3 = new Map([["hz", (e) => e], ["khz", (e) => e / 1e3]]), O$1 = new Map([
3049
+ ]), W$3 = /* @__PURE__ */ new Map([["hz", (e) => e], ["khz", (e) => e / 1e3]]), O$1 = /* @__PURE__ */ new Map([
2968
3050
  ["cm", (e) => 2.54 * e],
2969
3051
  ["mm", (e) => 25.4 * e],
2970
3052
  ["q", (e) => 25.4 * e * 4],
@@ -2972,7 +3054,7 @@ const T$1 = {
2972
3054
  ["pc", (e) => 6 * e],
2973
3055
  ["pt", (e) => 72 * e],
2974
3056
  ["px", (e) => 96 * e]
2975
- ]), U = new Map([["hz", (e) => 1e3 * e], ["khz", (e) => e]]), L$2 = new Map([
3057
+ ]), U = /* @__PURE__ */ new Map([["hz", (e) => 1e3 * e], ["khz", (e) => e]]), L$2 = /* @__PURE__ */ new Map([
2976
3058
  ["cm", (e) => e / 10],
2977
3059
  ["mm", (e) => e],
2978
3060
  ["q", (e) => 4 * e],
@@ -2980,7 +3062,7 @@ const T$1 = {
2980
3062
  ["pc", (e) => e / 25.4 * 6],
2981
3063
  ["pt", (e) => e / 25.4 * 72],
2982
3064
  ["px", (e) => e / 25.4 * 96]
2983
- ]), $$2 = new Map([["ms", (e) => e], ["s", (e) => e / 1e3]]), V$1 = new Map([
3065
+ ]), $$2 = /* @__PURE__ */ new Map([["ms", (e) => e], ["s", (e) => e / 1e3]]), V$1 = /* @__PURE__ */ new Map([
2984
3066
  ["cm", (e) => e / 6 * 2.54],
2985
3067
  ["mm", (e) => e / 6 * 25.4],
2986
3068
  ["q", (e) => e / 6 * 25.4 * 4],
@@ -2988,7 +3070,7 @@ const T$1 = {
2988
3070
  ["pc", (e) => e],
2989
3071
  ["pt", (e) => e / 6 * 72],
2990
3072
  ["px", (e) => e / 6 * 96]
2991
- ]), Z = new Map([
3073
+ ]), Z = /* @__PURE__ */ new Map([
2992
3074
  ["cm", (e) => e / 72 * 2.54],
2993
3075
  ["mm", (e) => e / 72 * 25.4],
2994
3076
  ["q", (e) => e / 72 * 25.4 * 4],
@@ -2996,7 +3078,7 @@ const T$1 = {
2996
3078
  ["pc", (e) => e / 72 * 6],
2997
3079
  ["pt", (e) => e],
2998
3080
  ["px", (e) => e / 72 * 96]
2999
- ]), z = new Map([
3081
+ ]), z = /* @__PURE__ */ new Map([
3000
3082
  ["cm", (e) => e / 96 * 2.54],
3001
3083
  ["mm", (e) => e / 96 * 25.4],
3002
3084
  ["q", (e) => e / 96 * 25.4 * 4],
@@ -3004,7 +3086,7 @@ const T$1 = {
3004
3086
  ["pc", (e) => e / 96 * 6],
3005
3087
  ["pt", (e) => e / 96 * 72],
3006
3088
  ["px", (e) => e]
3007
- ]), q = new Map([
3089
+ ]), q = /* @__PURE__ */ new Map([
3008
3090
  ["cm", (e) => e / 4 / 10],
3009
3091
  ["mm", (e) => e / 4],
3010
3092
  ["q", (e) => e],
@@ -3012,17 +3094,17 @@ const T$1 = {
3012
3094
  ["pc", (e) => e / 4 / 25.4 * 6],
3013
3095
  ["pt", (e) => e / 4 / 25.4 * 72],
3014
3096
  ["px", (e) => e / 4 / 25.4 * 96]
3015
- ]), G = new Map([
3097
+ ]), G = /* @__PURE__ */ new Map([
3016
3098
  ["deg", (e) => 180 * e / Math.PI],
3017
3099
  ["grad", (e) => 180 * e / Math.PI / .9],
3018
3100
  ["rad", (e) => e],
3019
3101
  ["turn", (e) => 180 * e / Math.PI / 360]
3020
- ]), R$2 = new Map([["ms", (e) => 1e3 * e], ["s", (e) => e]]), j = new Map([
3102
+ ]), R$2 = /* @__PURE__ */ new Map([["ms", (e) => 1e3 * e], ["s", (e) => e]]), j = /* @__PURE__ */ new Map([
3021
3103
  ["deg", (e) => 360 * e],
3022
3104
  ["grad", (e) => 360 * e / .9],
3023
3105
  ["rad", (e) => 360 * e / 180 * Math.PI],
3024
3106
  ["turn", (e) => e]
3025
- ]), Y = new Map([
3107
+ ]), Y = /* @__PURE__ */ new Map([
3026
3108
  ["cm", x$1],
3027
3109
  ["mm", L$2],
3028
3110
  ["q", q],
@@ -3776,7 +3858,7 @@ function crc32(e) {
3776
3858
  for (let a = 0, u = e.length; a < u; a++) t = 255 & (r ^ e.charCodeAt(a)), n = Number("0x" + "00000000 77073096 EE0E612C 990951BA 076DC419 706AF48F E963A535 9E6495A3 0EDB8832 79DCB8A4 E0D5E91E 97D2D988 09B64C2B 7EB17CBD E7B82D07 90BF1D91 1DB71064 6AB020F2 F3B97148 84BE41DE 1ADAD47D 6DDDE4EB F4D4B551 83D385C7 136C9856 646BA8C0 FD62F97A 8A65C9EC 14015C4F 63066CD9 FA0F3D63 8D080DF5 3B6E20C8 4C69105E D56041E4 A2677172 3C03E4D1 4B04D447 D20D85FD A50AB56B 35B5A8FA 42B2986C DBBBC9D6 ACBCF940 32D86CE3 45DF5C75 DCD60DCF ABD13D59 26D930AC 51DE003A C8D75180 BFD06116 21B4F4B5 56B3C423 CFBA9599 B8BDA50F 2802B89E 5F058808 C60CD9B2 B10BE924 2F6F7C87 58684C11 C1611DAB B6662D3D 76DC4190 01DB7106 98D220BC EFD5102A 71B18589 06B6B51F 9FBFE4A5 E8B8D433 7807C9A2 0F00F934 9609A88E E10E9818 7F6A0DBB 086D3D2D 91646C97 E6635C01 6B6B51F4 1C6C6162 856530D8 F262004E 6C0695ED 1B01A57B 8208F4C1 F50FC457 65B0D9C6 12B7E950 8BBEB8EA FCB9887C 62DD1DDF 15DA2D49 8CD37CF3 FBD44C65 4DB26158 3AB551CE A3BC0074 D4BB30E2 4ADFA541 3DD895D7 A4D1C46D D3D6F4FB 4369E96A 346ED9FC AD678846 DA60B8D0 44042D73 33031DE5 AA0A4C5F DD0D7CC9 5005713C 270241AA BE0B1010 C90C2086 5768B525 206F85B3 B966D409 CE61E49F 5EDEF90E 29D9C998 B0D09822 C7D7A8B4 59B33D17 2EB40D81 B7BD5C3B C0BA6CAD EDB88320 9ABFB3B6 03B6E20C 74B1D29A EAD54739 9DD277AF 04DB2615 73DC1683 E3630B12 94643B84 0D6D6A3E 7A6A5AA8 E40ECF0B 9309FF9D 0A00AE27 7D079EB1 F00F9344 8708A3D2 1E01F268 6906C2FE F762575D 806567CB 196C3671 6E6B06E7 FED41B76 89D32BE0 10DA7A5A 67DD4ACC F9B9DF6F 8EBEEFF9 17B7BE43 60B08ED5 D6D6A3E8 A1D1937E 38D8C2C4 4FDFF252 D1BB67F1 A6BC5767 3FB506DD 48B2364B D80D2BDA AF0A1B4C 36034AF6 41047A60 DF60EFC3 A867DF55 316E8EEF 4669BE79 CB61B38C BC66831A 256FD2A0 5268E236 CC0C7795 BB0B4703 220216B9 5505262F C5BA3BBE B2BD0B28 2BB45A92 5CB36A04 C2D7FFA7 B5D0CF31 2CD99E8B 5BDEAE1D 9B64C2B0 EC63F226 756AA39C 026D930A 9C0906A9 EB0E363F 72076785 05005713 95BF4A82 E2B87A14 7BB12BAE 0CB61B38 92D28E9B E5D5BE0D 7CDCEFB7 0BDBDF21 86D3D2D4 F1D4E242 68DDB3F8 1FDA836E 81BE16CD F6B9265B 6FB077E1 18B74777 88085AE6 FF0F6A70 66063BCA 11010B5C 8F659EFF F862AE69 616BFFD3 166CCF45 A00AE278 D70DD2EE 4E048354 3903B3C2 A7672661 D06016F7 4969474D 3E6E77DB AED16A4A D9D65ADC 40DF0B66 37D83BF0 A9BCAE53 DEBB9EC5 47B2CF7F 30B5FFE9 BDBDF21C CABAC28A 53B39330 24B4A3A6 BAD03605 CDD70693 54DE5729 23D967BF B3667A2E C4614AB8 5D681B02 2A6F2B94 B40BBE37 C30C8EA1 5A05DF1B 2D02EF8D".substring(9 * t, 9 * t + 8)), r = r >>> 8 ^ n;
3777
3859
  return (-1 ^ r) >>> 0;
3778
3860
  }
3779
- const J = new Map([
3861
+ const J = /* @__PURE__ */ new Map([
3780
3862
  ["abs", function abs(e, n, t) {
3781
3863
  return singleNodeSolver(e, n, t, solveAbs);
3782
3864
  }],
@@ -4104,7 +4186,7 @@ function variadicArguments(e, n, r, a) {
4104
4186
  }
4105
4187
  return o;
4106
4188
  }
4107
- const K = new Set([
4189
+ const K = /* @__PURE__ */ new Set([
4108
4190
  "nearest",
4109
4191
  "line-width",
4110
4192
  "up",
@@ -4520,8 +4602,8 @@ function replaceComponentValues(n, r) {
4520
4602
  }
4521
4603
  const Q$1 = new Set(J.keys());
4522
4604
  //#endregion
4523
- //#region ../../node_modules/.pnpm/@csstools+css-color-parser@4.1.8_@csstools+css-parser-algorithms@4.0.0_@csstools+css-to_261a2168b9744e4bfd4ba8eaaa45a7ac/node_modules/@csstools/css-color-parser/dist/index.mjs
4524
- var he, me;
4605
+ //#region ../../node_modules/.pnpm/@csstools+css-color-parser@4.1.9_@csstools+css-parser-algorithms@4.0.0_@csstools+css-to_c6dc0ff88668e614025a4cbfb943c01a/node_modules/@csstools/css-color-parser/dist/index.mjs
4606
+ var De, Le;
4525
4607
  function convertNaNToZero(e) {
4526
4608
  return [
4527
4609
  Number.isNaN(e[0]) ? 0 : e[0],
@@ -4531,162 +4613,274 @@ function convertNaNToZero(e) {
4531
4613
  }
4532
4614
  function colorData_to_XYZ_D50(e) {
4533
4615
  switch (e.colorNotation) {
4534
- case he.HEX:
4535
- case he.RGB:
4536
- case he.sRGB: return {
4616
+ case De.HEX:
4617
+ case De.RGB:
4618
+ case De.sRGB: return {
4537
4619
  ...e,
4538
- colorNotation: he.XYZ_D50,
4620
+ colorNotation: De.XYZ_D50,
4539
4621
  channels: sRGB_to_XYZ_D50(convertNaNToZero(e.channels))
4540
4622
  };
4541
- case he.Linear_sRGB: return {
4623
+ case De.Linear_sRGB: return {
4542
4624
  ...e,
4543
- colorNotation: he.XYZ_D50,
4625
+ colorNotation: De.XYZ_D50,
4544
4626
  channels: lin_sRGB_to_XYZ_D50(convertNaNToZero(e.channels))
4545
4627
  };
4546
- case he.Display_P3: return {
4628
+ case De.Display_P3: return {
4547
4629
  ...e,
4548
- colorNotation: he.XYZ_D50,
4630
+ colorNotation: De.XYZ_D50,
4549
4631
  channels: P3_to_XYZ_D50(convertNaNToZero(e.channels))
4550
4632
  };
4551
- case he.Linear_Display_P3: return {
4633
+ case De.Linear_Display_P3: return {
4552
4634
  ...e,
4553
- colorNotation: he.XYZ_D50,
4635
+ colorNotation: De.XYZ_D50,
4554
4636
  channels: lin_P3_to_XYZ_D50(convertNaNToZero(e.channels))
4555
4637
  };
4556
- case he.Rec2020: return {
4638
+ case De.Rec2020: return {
4557
4639
  ...e,
4558
- colorNotation: he.XYZ_D50,
4640
+ colorNotation: De.XYZ_D50,
4559
4641
  channels: rec_2020_to_XYZ_D50(convertNaNToZero(e.channels))
4560
4642
  };
4561
- case he.A98_RGB: return {
4643
+ case De.A98_RGB: return {
4562
4644
  ...e,
4563
- colorNotation: he.XYZ_D50,
4645
+ colorNotation: De.XYZ_D50,
4564
4646
  channels: a98_RGB_to_XYZ_D50(convertNaNToZero(e.channels))
4565
4647
  };
4566
- case he.ProPhoto_RGB: return {
4648
+ case De.ProPhoto_RGB: return {
4567
4649
  ...e,
4568
- colorNotation: he.XYZ_D50,
4650
+ colorNotation: De.XYZ_D50,
4569
4651
  channels: ProPhoto_RGB_to_XYZ_D50(convertNaNToZero(e.channels))
4570
4652
  };
4571
- case he.HSL: return {
4653
+ case De.HSL: return {
4572
4654
  ...e,
4573
- colorNotation: he.XYZ_D50,
4655
+ colorNotation: De.XYZ_D50,
4574
4656
  channels: HSL_to_XYZ_D50(convertNaNToZero(e.channels))
4575
4657
  };
4576
- case he.HWB: return {
4658
+ case De.HWB: return {
4577
4659
  ...e,
4578
- colorNotation: he.XYZ_D50,
4660
+ colorNotation: De.XYZ_D50,
4579
4661
  channels: HWB_to_XYZ_D50(convertNaNToZero(e.channels))
4580
4662
  };
4581
- case he.Lab: return {
4663
+ case De.Lab: return {
4582
4664
  ...e,
4583
- colorNotation: he.XYZ_D50,
4665
+ colorNotation: De.XYZ_D50,
4584
4666
  channels: Lab_to_XYZ_D50(convertNaNToZero(e.channels))
4585
4667
  };
4586
- case he.OKLab: return {
4668
+ case De.OKLab: return {
4587
4669
  ...e,
4588
- colorNotation: he.XYZ_D50,
4670
+ colorNotation: De.XYZ_D50,
4589
4671
  channels: OKLab_to_XYZ_D50(convertNaNToZero(e.channels))
4590
4672
  };
4591
- case he.LCH: return {
4673
+ case De.LCH: return {
4592
4674
  ...e,
4593
- colorNotation: he.XYZ_D50,
4675
+ colorNotation: De.XYZ_D50,
4594
4676
  channels: LCH_to_XYZ_D50(convertNaNToZero(e.channels))
4595
4677
  };
4596
- case he.OKLCH: return {
4678
+ case De.OKLCH: return {
4597
4679
  ...e,
4598
- colorNotation: he.XYZ_D50,
4680
+ colorNotation: De.XYZ_D50,
4599
4681
  channels: OKLCH_to_XYZ_D50(convertNaNToZero(e.channels))
4600
4682
  };
4601
- case he.XYZ_D50: return {
4683
+ case De.XYZ_D50: return {
4602
4684
  ...e,
4603
- colorNotation: he.XYZ_D50,
4685
+ colorNotation: De.XYZ_D50,
4604
4686
  channels: XYZ_D50_to_XYZ_D50(convertNaNToZero(e.channels))
4605
4687
  };
4606
- case he.XYZ_D65: return {
4688
+ case De.XYZ_D65: return {
4607
4689
  ...e,
4608
- colorNotation: he.XYZ_D50,
4690
+ colorNotation: De.XYZ_D50,
4609
4691
  channels: XYZ_D65_to_XYZ_D50(convertNaNToZero(e.channels))
4610
4692
  };
4611
4693
  default: throw new Error("Unsupported color notation");
4612
4694
  }
4613
4695
  }
4696
+ function colorData_to_XYZ_D65(e) {
4697
+ switch (e.colorNotation) {
4698
+ case De.HEX:
4699
+ case De.RGB:
4700
+ case De.sRGB: return {
4701
+ ...e,
4702
+ colorNotation: De.XYZ_D65,
4703
+ channels: sRGB_to_XYZ_D65(convertNaNToZero(e.channels))
4704
+ };
4705
+ case De.Linear_sRGB: return {
4706
+ ...e,
4707
+ colorNotation: De.XYZ_D65,
4708
+ channels: lin_sRGB_to_XYZ_D65(convertNaNToZero(e.channels))
4709
+ };
4710
+ case De.Display_P3: return {
4711
+ ...e,
4712
+ colorNotation: De.XYZ_D65,
4713
+ channels: P3_to_XYZ_D65(convertNaNToZero(e.channels))
4714
+ };
4715
+ case De.Linear_Display_P3: return {
4716
+ ...e,
4717
+ colorNotation: De.XYZ_D65,
4718
+ channels: lin_P3_to_XYZ_D65(convertNaNToZero(e.channels))
4719
+ };
4720
+ case De.Rec2020: return {
4721
+ ...e,
4722
+ colorNotation: De.XYZ_D65,
4723
+ channels: rec_2020_to_XYZ_D65(convertNaNToZero(e.channels))
4724
+ };
4725
+ case De.A98_RGB: return {
4726
+ ...e,
4727
+ colorNotation: De.XYZ_D65,
4728
+ channels: a98_RGB_to_XYZ_D65(convertNaNToZero(e.channels))
4729
+ };
4730
+ case De.ProPhoto_RGB: return {
4731
+ ...e,
4732
+ colorNotation: De.XYZ_D65,
4733
+ channels: ProPhoto_RGB_to_XYZ_D65(convertNaNToZero(e.channels))
4734
+ };
4735
+ case De.HSL: return {
4736
+ ...e,
4737
+ colorNotation: De.XYZ_D65,
4738
+ channels: HSL_to_XYZ_D65(convertNaNToZero(e.channels))
4739
+ };
4740
+ case De.HWB: return {
4741
+ ...e,
4742
+ colorNotation: De.XYZ_D65,
4743
+ channels: HWB_to_XYZ_D65(convertNaNToZero(e.channels))
4744
+ };
4745
+ case De.Lab: return {
4746
+ ...e,
4747
+ colorNotation: De.XYZ_D65,
4748
+ channels: Lab_to_XYZ_D65(convertNaNToZero(e.channels))
4749
+ };
4750
+ case De.OKLab: return {
4751
+ ...e,
4752
+ colorNotation: De.XYZ_D65,
4753
+ channels: OKLab_to_XYZ_D65(convertNaNToZero(e.channels))
4754
+ };
4755
+ case De.LCH: return {
4756
+ ...e,
4757
+ colorNotation: De.XYZ_D65,
4758
+ channels: LCH_to_XYZ_D65(convertNaNToZero(e.channels))
4759
+ };
4760
+ case De.OKLCH: return {
4761
+ ...e,
4762
+ colorNotation: De.XYZ_D65,
4763
+ channels: OKLCH_to_XYZ_D65(convertNaNToZero(e.channels))
4764
+ };
4765
+ case De.XYZ_D50: return {
4766
+ ...e,
4767
+ colorNotation: De.XYZ_D65,
4768
+ channels: XYZ_D50_to_XYZ_D65(convertNaNToZero(e.channels))
4769
+ };
4770
+ case De.XYZ_D65: return {
4771
+ ...e,
4772
+ colorNotation: De.XYZ_D65,
4773
+ channels: XYZ_D65_to_XYZ_D65(convertNaNToZero(e.channels))
4774
+ };
4775
+ default: throw new Error("Unsupported color notation");
4776
+ }
4777
+ }
4614
4778
  (function(e) {
4615
4779
  e.A98_RGB = "a98-rgb", e.Display_P3 = "display-p3", e.Linear_Display_P3 = "display-p3-linear", e.HEX = "hex", e.HSL = "hsl", e.HWB = "hwb", e.LCH = "lch", e.Lab = "lab", e.Linear_sRGB = "srgb-linear", e.OKLCH = "oklch", e.OKLab = "oklab", e.ProPhoto_RGB = "prophoto-rgb", e.RGB = "rgb", e.sRGB = "srgb", e.Rec2020 = "rec2020", e.XYZ_D50 = "xyz-d50", e.XYZ_D65 = "xyz-d65";
4616
- })(he || (he = {})), function(e) {
4780
+ })(De || (De = {})), function(e) {
4617
4781
  e.ColorKeyword = "color-keyword", e.HasAlpha = "has-alpha", e.HasDimensionValues = "has-dimension-values", e.HasNoneKeywords = "has-none-keywords", e.HasNumberValues = "has-number-values", e.HasPercentageAlpha = "has-percentage-alpha", e.HasPercentageValues = "has-percentage-values", e.HasVariableAlpha = "has-variable-alpha", e.Hex = "hex", e.LegacyHSL = "legacy-hsl", e.LegacyRGB = "legacy-rgb", e.NamedColor = "named-color", e.RelativeColorSyntax = "relative-color-syntax", e.ColorMix = "color-mix", e.ColorMixVariadic = "color-mix-variadic", e.ContrastColor = "contrast-color", e.RelativeAlphaSyntax = "relative-alpha-syntax", e.Experimental = "experimental";
4618
- }(me || (me = {}));
4619
- const Ne = new Set([
4620
- he.A98_RGB,
4621
- he.Display_P3,
4622
- he.Linear_Display_P3,
4623
- he.HEX,
4624
- he.Linear_sRGB,
4625
- he.ProPhoto_RGB,
4626
- he.RGB,
4627
- he.sRGB,
4628
- he.Rec2020,
4629
- he.XYZ_D50,
4630
- he.XYZ_D65
4782
+ }(Le || (Le = {}));
4783
+ const Ze = /* @__PURE__ */ new Set([
4784
+ De.A98_RGB,
4785
+ De.Display_P3,
4786
+ De.Linear_Display_P3,
4787
+ De.HEX,
4788
+ De.Linear_sRGB,
4789
+ De.ProPhoto_RGB,
4790
+ De.RGB,
4791
+ De.sRGB,
4792
+ De.Rec2020,
4793
+ De.XYZ_D50,
4794
+ De.XYZ_D65
4631
4795
  ]);
4632
4796
  function colorDataTo(e, a) {
4633
4797
  (e = { ...e }).channels = convertPowerlessComponentsToMissingComponents(e.channels, e.colorNotation);
4634
4798
  const n = { ...e };
4635
- if (e.colorNotation !== a) {
4636
- const e = colorData_to_XYZ_D50(n);
4637
- switch (a) {
4638
- case he.HEX:
4639
- case he.RGB:
4640
- n.colorNotation = he.RGB, n.channels = XYZ_D50_to_sRGB(e.channels);
4641
- break;
4642
- case he.sRGB:
4643
- n.colorNotation = he.sRGB, n.channels = XYZ_D50_to_sRGB(e.channels);
4644
- break;
4645
- case he.Linear_sRGB:
4646
- n.colorNotation = he.Linear_sRGB, n.channels = XYZ_D50_to_lin_sRGB(e.channels);
4647
- break;
4648
- case he.Display_P3:
4649
- n.colorNotation = he.Display_P3, n.channels = XYZ_D50_to_P3(e.channels);
4650
- break;
4651
- case he.Linear_Display_P3:
4652
- n.colorNotation = he.Linear_Display_P3, n.channels = XYZ_D50_to_lin_P3(e.channels);
4653
- break;
4654
- case he.Rec2020:
4655
- n.colorNotation = he.Rec2020, n.channels = XYZ_D50_to_rec_2020(e.channels);
4656
- break;
4657
- case he.ProPhoto_RGB:
4658
- n.colorNotation = he.ProPhoto_RGB, n.channels = XYZ_D50_to_ProPhoto(e.channels);
4659
- break;
4660
- case he.A98_RGB:
4661
- n.colorNotation = he.A98_RGB, n.channels = XYZ_D50_to_a98_RGB(e.channels);
4662
- break;
4663
- case he.HSL:
4664
- n.colorNotation = he.HSL, n.channels = XYZ_D50_to_HSL(e.channels);
4665
- break;
4666
- case he.HWB:
4667
- n.colorNotation = he.HWB, n.channels = XYZ_D50_to_HWB(e.channels);
4668
- break;
4669
- case he.Lab:
4670
- n.colorNotation = he.Lab, n.channels = XYZ_D50_to_Lab(e.channels);
4671
- break;
4672
- case he.LCH:
4673
- n.colorNotation = he.LCH, n.channels = XYZ_D50_to_LCH(e.channels);
4674
- break;
4675
- case he.OKLCH:
4676
- n.colorNotation = he.OKLCH, n.channels = XYZ_D50_to_OKLCH(e.channels);
4677
- break;
4678
- case he.OKLab:
4679
- n.colorNotation = he.OKLab, n.channels = XYZ_D50_to_OKLab(e.channels);
4680
- break;
4681
- case he.XYZ_D50:
4682
- n.colorNotation = he.XYZ_D50, n.channels = XYZ_D50_to_XYZ_D50(e.channels);
4683
- break;
4684
- case he.XYZ_D65:
4685
- n.colorNotation = he.XYZ_D65, n.channels = XYZ_D50_to_XYZ_D65(e.channels);
4686
- break;
4687
- default: throw new Error("Unsupported color notation");
4799
+ if (e.colorNotation !== a) switch (a) {
4800
+ case De.HEX:
4801
+ case De.RGB: {
4802
+ const e = colorData_to_XYZ_D65(n);
4803
+ n.colorNotation = De.RGB, n.channels = XYZ_D65_to_sRGB(e.channels), n.channels = n.channels.map((e) => reducePrecisionOrNaN(e, 8));
4804
+ break;
4805
+ }
4806
+ case De.sRGB: {
4807
+ const e = colorData_to_XYZ_D65(n);
4808
+ n.colorNotation = De.sRGB, n.channels = XYZ_D65_to_sRGB(e.channels);
4809
+ break;
4810
+ }
4811
+ case De.Linear_sRGB: {
4812
+ const e = colorData_to_XYZ_D65(n);
4813
+ n.colorNotation = De.Linear_sRGB, n.channels = XYZ_D65_to_lin_sRGB(e.channels);
4814
+ break;
4815
+ }
4816
+ case De.Display_P3: {
4817
+ const e = colorData_to_XYZ_D65(n);
4818
+ n.colorNotation = De.Display_P3, n.channels = XYZ_D65_to_P3(e.channels);
4819
+ break;
4820
+ }
4821
+ case De.Linear_Display_P3: {
4822
+ const e = colorData_to_XYZ_D65(n);
4823
+ n.colorNotation = De.Linear_Display_P3, n.channels = XYZ_D65_to_lin_P3(e.channels);
4824
+ break;
4825
+ }
4826
+ case De.Rec2020: {
4827
+ const e = colorData_to_XYZ_D65(n);
4828
+ n.colorNotation = De.Rec2020, n.channels = XYZ_D65_to_rec_2020(e.channels);
4829
+ break;
4830
+ }
4831
+ case De.ProPhoto_RGB: {
4832
+ const e = colorData_to_XYZ_D50(n);
4833
+ n.colorNotation = De.ProPhoto_RGB, n.channels = XYZ_D50_to_ProPhoto(e.channels);
4834
+ break;
4835
+ }
4836
+ case De.A98_RGB: {
4837
+ const e = colorData_to_XYZ_D65(n);
4838
+ n.colorNotation = De.A98_RGB, n.channels = XYZ_D65_to_a98_RGB(e.channels);
4839
+ break;
4840
+ }
4841
+ case De.HSL: {
4842
+ const e = colorData_to_XYZ_D65(n);
4843
+ n.colorNotation = De.HSL, n.channels = XYZ_D65_to_HSL(e.channels), n.channels = n.channels.map((e) => reducePrecisionOrNaN(e, 8));
4844
+ break;
4845
+ }
4846
+ case De.HWB: {
4847
+ const e = colorData_to_XYZ_D65(n);
4848
+ n.colorNotation = De.HWB, n.channels = XYZ_D65_to_HWB(e.channels), n.channels = n.channels.map((e) => reducePrecisionOrNaN(e, 8));
4849
+ break;
4850
+ }
4851
+ case De.Lab: {
4852
+ const e = colorData_to_XYZ_D50(n);
4853
+ n.colorNotation = De.Lab, n.channels = XYZ_D50_to_Lab(e.channels);
4854
+ break;
4855
+ }
4856
+ case De.LCH: {
4857
+ const e = colorData_to_XYZ_D50(n);
4858
+ n.colorNotation = De.LCH, n.channels = XYZ_D50_to_LCH(e.channels);
4859
+ break;
4860
+ }
4861
+ case De.OKLCH: {
4862
+ const e = colorData_to_XYZ_D65(n);
4863
+ n.colorNotation = De.OKLCH, n.channels = XYZ_D65_to_OKLCH(e.channels);
4864
+ break;
4865
+ }
4866
+ case De.OKLab: {
4867
+ const e = colorData_to_XYZ_D65(n);
4868
+ n.colorNotation = De.OKLab, n.channels = XYZ_D65_to_OKLab(e.channels);
4869
+ break;
4870
+ }
4871
+ case De.XYZ_D50: {
4872
+ const e = colorData_to_XYZ_D50(n);
4873
+ n.colorNotation = De.XYZ_D50, n.channels = XYZ_D50_to_XYZ_D50(e.channels);
4874
+ break;
4875
+ }
4876
+ case De.XYZ_D65: {
4877
+ const e = colorData_to_XYZ_D65(n);
4878
+ n.colorNotation = De.XYZ_D65, n.channels = XYZ_D65_to_XYZ_D65(e.channels);
4879
+ break;
4688
4880
  }
4689
- } else n.channels = convertNaNToZero(e.channels);
4881
+ default: throw new Error("Unsupported color notation");
4882
+ }
4883
+ else n.channels = convertNaNToZero(e.channels);
4690
4884
  if (a === e.colorNotation) n.channels = carryForwardMissingComponents(e.channels, [
4691
4885
  0,
4692
4886
  1,
@@ -4696,7 +4890,7 @@ function colorDataTo(e, a) {
4696
4890
  1,
4697
4891
  2
4698
4892
  ], []);
4699
- else if (Ne.has(a) && Ne.has(e.colorNotation)) n.channels = carryForwardMissingComponents(e.channels, [
4893
+ else if (Ze.has(a) && Ze.has(e.colorNotation)) n.channels = carryForwardMissingComponents(e.channels, [
4700
4894
  0,
4701
4895
  1,
4702
4896
  2
@@ -4706,17 +4900,17 @@ function colorDataTo(e, a) {
4706
4900
  2
4707
4901
  ], []);
4708
4902
  else switch (a) {
4709
- case he.HSL:
4903
+ case De.HSL:
4710
4904
  switch (e.colorNotation) {
4711
- case he.HWB:
4905
+ case De.HWB:
4712
4906
  n.channels = carryForwardMissingComponents(e.channels, [0], [1, 2], n.channels, [0], [1, 2]);
4713
4907
  break;
4714
- case he.Lab:
4715
- case he.OKLab:
4908
+ case De.Lab:
4909
+ case De.OKLab:
4716
4910
  n.channels = carryForwardMissingComponents(e.channels, [0], [1, 2], n.channels, [2], [0, 1]);
4717
4911
  break;
4718
- case he.LCH:
4719
- case he.OKLCH:
4912
+ case De.LCH:
4913
+ case De.OKLCH:
4720
4914
  n.channels = carryForwardMissingComponents(e.channels, [
4721
4915
  0,
4722
4916
  1,
@@ -4730,26 +4924,26 @@ function colorDataTo(e, a) {
4730
4924
  default: n.channels = carryForwardMissingComponents(e.channels, [], [], n.channels, [], []);
4731
4925
  }
4732
4926
  break;
4733
- case he.HWB:
4927
+ case De.HWB:
4734
4928
  switch (e.colorNotation) {
4735
- case he.HSL:
4929
+ case De.HSL:
4736
4930
  n.channels = carryForwardMissingComponents(e.channels, [0], [1, 2], n.channels, [0], [1, 2]);
4737
4931
  break;
4738
- case he.LCH:
4739
- case he.OKLCH:
4932
+ case De.LCH:
4933
+ case De.OKLCH:
4740
4934
  n.channels = carryForwardMissingComponents(e.channels, [2], [0, 1], n.channels, [0], [1, 2]);
4741
4935
  break;
4742
4936
  default: n.channels = carryForwardMissingComponents(e.channels, [], [], n.channels, [], []);
4743
4937
  }
4744
4938
  break;
4745
- case he.Lab:
4746
- case he.OKLab:
4939
+ case De.Lab:
4940
+ case De.OKLab:
4747
4941
  switch (e.colorNotation) {
4748
- case he.HSL:
4942
+ case De.HSL:
4749
4943
  n.channels = carryForwardMissingComponents(e.channels, [2], [0, 1], n.channels, [0], [1, 2]);
4750
4944
  break;
4751
- case he.Lab:
4752
- case he.OKLab:
4945
+ case De.Lab:
4946
+ case De.OKLab:
4753
4947
  n.channels = carryForwardMissingComponents(e.channels, [
4754
4948
  0,
4755
4949
  1,
@@ -4760,17 +4954,17 @@ function colorDataTo(e, a) {
4760
4954
  2
4761
4955
  ], []);
4762
4956
  break;
4763
- case he.LCH:
4764
- case he.OKLCH:
4957
+ case De.LCH:
4958
+ case De.OKLCH:
4765
4959
  n.channels = carryForwardMissingComponents(e.channels, [0], [1, 2], n.channels, [0], [1, 2]);
4766
4960
  break;
4767
4961
  default: n.channels = carryForwardMissingComponents(e.channels, [], [], n.channels, [], []);
4768
4962
  }
4769
4963
  break;
4770
- case he.LCH:
4771
- case he.OKLCH:
4964
+ case De.LCH:
4965
+ case De.OKLCH:
4772
4966
  switch (e.colorNotation) {
4773
- case he.HSL:
4967
+ case De.HSL:
4774
4968
  n.channels = carryForwardMissingComponents(e.channels, [
4775
4969
  0,
4776
4970
  1,
@@ -4781,15 +4975,15 @@ function colorDataTo(e, a) {
4781
4975
  0
4782
4976
  ], []);
4783
4977
  break;
4784
- case he.HWB:
4978
+ case De.HWB:
4785
4979
  n.channels = carryForwardMissingComponents(e.channels, [0], [1, 2], n.channels, [2], [0, 1]);
4786
4980
  break;
4787
- case he.Lab:
4788
- case he.OKLab:
4981
+ case De.Lab:
4982
+ case De.OKLab:
4789
4983
  n.channels = carryForwardMissingComponents(e.channels, [0], [1, 2], n.channels, [0], [1, 2]);
4790
4984
  break;
4791
- case he.LCH:
4792
- case he.OKLCH:
4985
+ case De.LCH:
4986
+ case De.OKLCH:
4793
4987
  n.channels = carryForwardMissingComponents(e.channels, [
4794
4988
  0,
4795
4989
  1,
@@ -4810,38 +5004,38 @@ function colorDataTo(e, a) {
4810
5004
  function convertPowerlessComponentsToMissingComponents(e, a) {
4811
5005
  const n = [...e];
4812
5006
  switch (a) {
4813
- case he.HSL:
5007
+ case De.HSL:
4814
5008
  !Number.isNaN(n[1]) && n[1] <= .001 && (n[0] = NaN);
4815
5009
  break;
4816
- case he.HWB:
5010
+ case De.HWB:
4817
5011
  !Number.isNaN(n[1]) && !Number.isNaN(n[2]) && Math.max(0, n[1]) + Math.max(0, n[2]) >= 99.999 && (n[0] = NaN);
4818
5012
  break;
4819
- case he.LCH:
5013
+ case De.LCH:
4820
5014
  !Number.isNaN(n[1]) && n[1] <= .0015 && (n[2] = NaN);
4821
5015
  break;
4822
- case he.OKLCH: !Number.isNaN(n[1]) && n[1] <= 4e-6 && (n[2] = NaN);
5016
+ case De.OKLCH: !Number.isNaN(n[1]) && n[1] <= 4e-6 && (n[2] = NaN);
4823
5017
  }
4824
5018
  return n;
4825
5019
  }
4826
5020
  function convertPowerlessComponentsToZeroValuesForDisplay(e, a) {
4827
5021
  const n = [...e];
4828
5022
  switch (a) {
4829
- case he.HSL:
5023
+ case De.HSL:
4830
5024
  (reducePrecision(n[2]) <= 0 || reducePrecision(n[2]) >= 100) && (n[0] = NaN, n[1] = NaN), !Number.isNaN(n[1]) && n[1] <= .001 && (n[0] = NaN);
4831
5025
  break;
4832
- case he.HWB:
5026
+ case De.HWB:
4833
5027
  !Number.isNaN(n[1]) && !Number.isNaN(n[2]) && Math.max(0, n[1]) + Math.max(0, n[2]) >= 99.999 && (n[0] = NaN);
4834
5028
  break;
4835
- case he.Lab:
5029
+ case De.Lab:
4836
5030
  (reducePrecision(n[0]) <= 0 || reducePrecision(n[0]) >= 100) && (n[1] = NaN, n[2] = NaN);
4837
5031
  break;
4838
- case he.LCH:
5032
+ case De.LCH:
4839
5033
  !Number.isNaN(n[1]) && n[1] <= .0015 && (n[2] = NaN), (reducePrecision(n[0]) <= 0 || reducePrecision(n[0]) >= 100) && (n[1] = NaN, n[2] = NaN);
4840
5034
  break;
4841
- case he.OKLab:
5035
+ case De.OKLab:
4842
5036
  (reducePrecision(n[0]) <= 0 || reducePrecision(n[0]) >= 1) && (n[1] = NaN, n[2] = NaN);
4843
5037
  break;
4844
- case he.OKLCH: !Number.isNaN(n[1]) && n[1] <= 4e-6 && (n[2] = NaN), (reducePrecision(n[0]) <= 0 || reducePrecision(n[0]) >= 1) && (n[1] = NaN, n[2] = NaN);
5038
+ case De.OKLCH: !Number.isNaN(n[1]) && n[1] <= 4e-6 && (n[2] = NaN), (reducePrecision(n[0]) <= 0 || reducePrecision(n[0]) >= 1) && (n[1] = NaN, n[2] = NaN);
4845
5039
  }
4846
5040
  return n;
4847
5041
  }
@@ -4859,35 +5053,35 @@ function carryForwardMissingComponents(e, a, n, r, o, t) {
4859
5053
  function normalizeRelativeColorDataChannels(e) {
4860
5054
  const a = /* @__PURE__ */ new Map();
4861
5055
  switch (e.colorNotation) {
4862
- case he.RGB:
4863
- case he.HEX:
5056
+ case De.RGB:
5057
+ case De.HEX:
4864
5058
  a.set("r", dummyNumberToken(255 * e.channels[0])), a.set("g", dummyNumberToken(255 * e.channels[1])), a.set("b", dummyNumberToken(255 * e.channels[2])), "number" == typeof e.alpha && a.set("alpha", dummyNumberToken(e.alpha));
4865
5059
  break;
4866
- case he.HSL:
5060
+ case De.HSL:
4867
5061
  a.set("h", dummyNumberToken(e.channels[0])), a.set("s", dummyNumberToken(e.channels[1])), a.set("l", dummyNumberToken(e.channels[2])), "number" == typeof e.alpha && a.set("alpha", dummyNumberToken(e.alpha));
4868
5062
  break;
4869
- case he.HWB:
5063
+ case De.HWB:
4870
5064
  a.set("h", dummyNumberToken(e.channels[0])), a.set("w", dummyNumberToken(e.channels[1])), a.set("b", dummyNumberToken(e.channels[2])), "number" == typeof e.alpha && a.set("alpha", dummyNumberToken(e.alpha));
4871
5065
  break;
4872
- case he.Lab:
4873
- case he.OKLab:
5066
+ case De.Lab:
5067
+ case De.OKLab:
4874
5068
  a.set("l", dummyNumberToken(e.channels[0])), a.set("a", dummyNumberToken(e.channels[1])), a.set("b", dummyNumberToken(e.channels[2])), "number" == typeof e.alpha && a.set("alpha", dummyNumberToken(e.alpha));
4875
5069
  break;
4876
- case he.LCH:
4877
- case he.OKLCH:
5070
+ case De.LCH:
5071
+ case De.OKLCH:
4878
5072
  a.set("l", dummyNumberToken(e.channels[0])), a.set("c", dummyNumberToken(e.channels[1])), a.set("h", dummyNumberToken(e.channels[2])), "number" == typeof e.alpha && a.set("alpha", dummyNumberToken(e.alpha));
4879
5073
  break;
4880
- case he.sRGB:
4881
- case he.A98_RGB:
4882
- case he.Display_P3:
4883
- case he.Linear_Display_P3:
4884
- case he.Rec2020:
4885
- case he.Linear_sRGB:
4886
- case he.ProPhoto_RGB:
5074
+ case De.sRGB:
5075
+ case De.A98_RGB:
5076
+ case De.Display_P3:
5077
+ case De.Linear_Display_P3:
5078
+ case De.Rec2020:
5079
+ case De.Linear_sRGB:
5080
+ case De.ProPhoto_RGB:
4887
5081
  a.set("r", dummyNumberToken(e.channels[0])), a.set("g", dummyNumberToken(e.channels[1])), a.set("b", dummyNumberToken(e.channels[2])), "number" == typeof e.alpha && a.set("alpha", dummyNumberToken(e.alpha));
4888
5082
  break;
4889
- case he.XYZ_D50:
4890
- case he.XYZ_D65: a.set("x", dummyNumberToken(e.channels[0])), a.set("y", dummyNumberToken(e.channels[1])), a.set("z", dummyNumberToken(e.channels[2])), "number" == typeof e.alpha && a.set("alpha", dummyNumberToken(e.alpha));
5083
+ case De.XYZ_D50:
5084
+ case De.XYZ_D65: a.set("x", dummyNumberToken(e.channels[0])), a.set("y", dummyNumberToken(e.channels[1])), a.set("z", dummyNumberToken(e.channels[2])), "number" == typeof e.alpha && a.set("alpha", dummyNumberToken(e.alpha));
4891
5085
  }
4892
5086
  return a;
4893
5087
  }
@@ -4917,6 +5111,11 @@ function dummyNumberToken(n) {
4917
5111
  }
4918
5112
  ];
4919
5113
  }
5114
+ function reducePrecisionOrNaN(e, a = 7) {
5115
+ if (Number.isNaN(e)) return e;
5116
+ const n = Math.pow(10, a);
5117
+ return Math.round(e * n) / n;
5118
+ }
4920
5119
  function reducePrecision(e, a = 7) {
4921
5120
  if (Number.isNaN(e)) return 0;
4922
5121
  const n = Math.pow(10, a);
@@ -4928,7 +5127,7 @@ function colorDataFitsRGB_Gamut(e) {
4928
5127
  channels: [...e.channels]
4929
5128
  };
4930
5129
  a.channels = convertPowerlessComponentsToZeroValuesForDisplay(a.channels, a.colorNotation);
4931
- return !colorDataTo(a, he.RGB).channels.find((e) => e < -1e-5 || e > 1.00001);
5130
+ return !colorDataTo(a, De.RGB).channels.find((e) => e < -1e-5 || e > 1.00001);
4932
5131
  }
4933
5132
  function colorDataFitsDisplayP3_Gamut(e) {
4934
5133
  const a = {
@@ -4936,17 +5135,17 @@ function colorDataFitsDisplayP3_Gamut(e) {
4936
5135
  channels: [...e.channels]
4937
5136
  };
4938
5137
  a.channels = convertPowerlessComponentsToZeroValuesForDisplay(a.channels, a.colorNotation);
4939
- return !colorDataTo(a, he.Display_P3).channels.find((e) => e < -1e-5 || e > 1.00001);
5138
+ return !colorDataTo(a, De.Display_P3).channels.find((e) => e < -1e-5 || e > 1.00001);
4940
5139
  }
4941
5140
  function normalize(e, a, n, r) {
4942
5141
  return Math.min(Math.max(e / a, n), r);
4943
5142
  }
4944
- const pe = /[A-Z]/g;
5143
+ const He = /[A-Z]/g;
4945
5144
  function toLowerCaseAZ(e) {
4946
- return e.replace(pe, (e) => String.fromCharCode(e.charCodeAt(0) + 32));
5145
+ return e.replace(He, (e) => String.fromCharCode(e.charCodeAt(0) + 32));
4947
5146
  }
4948
5147
  function normalize_Color_ChannelValues(t, l, s) {
4949
- if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(me.HasNoneKeywords), [
5148
+ if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(Le.HasNoneKeywords), [
4950
5149
  c$7.Number,
4951
5150
  "none",
4952
5151
  t[2],
@@ -4957,7 +5156,7 @@ function normalize_Color_ChannelValues(t, l, s) {
4957
5156
  }
4958
5157
  ];
4959
5158
  if (isTokenPercentage(t)) {
4960
- 3 !== l && s.syntaxFlags.add(me.HasPercentageValues);
5159
+ 3 !== l && s.syntaxFlags.add(Le.HasPercentageValues);
4961
5160
  let n = normalize(t[4].value, 100, -2147483647, 2147483647);
4962
5161
  return 3 === l && (n = normalize(t[4].value, 100, 0, 1)), [
4963
5162
  c$7.Number,
@@ -4971,7 +5170,7 @@ function normalize_Color_ChannelValues(t, l, s) {
4971
5170
  ];
4972
5171
  }
4973
5172
  if (isTokenNumber(t)) {
4974
- 3 !== l && s.syntaxFlags.add(me.HasNumberValues);
5173
+ 3 !== l && s.syntaxFlags.add(Le.HasNumberValues);
4975
5174
  let n = normalize(t[4].value, 1, -2147483647, 2147483647);
4976
5175
  return 3 === l && (n = normalize(t[4].value, 1, 0, 1)), [
4977
5176
  c$7.Number,
@@ -4986,7 +5185,7 @@ function normalize_Color_ChannelValues(t, l, s) {
4986
5185
  }
4987
5186
  return !1;
4988
5187
  }
4989
- const be = new Set([
5188
+ const Pe = /* @__PURE__ */ new Set([
4990
5189
  "srgb",
4991
5190
  "srgb-linear",
4992
5191
  "display-p3",
@@ -4999,10 +5198,10 @@ const be = new Set([
4999
5198
  "xyz-d65"
5000
5199
  ]);
5001
5200
  function color$1(e, a) {
5002
- const r = [], s = [], u = [], i = [];
5003
- let c, h, m = !1, N = !1;
5201
+ const r = [], s = [], c = [], u = [];
5202
+ let i, h, m = !1, N = !1;
5004
5203
  const p = {
5005
- colorNotation: he.sRGB,
5204
+ colorNotation: De.sRGB,
5006
5205
  channels: [
5007
5206
  0,
5008
5207
  0,
@@ -5015,13 +5214,13 @@ function color$1(e, a) {
5015
5214
  for (let o = 0; o < e.value.length; o++) {
5016
5215
  let v = e.value[o];
5017
5216
  if (isWhitespaceNode(v) || isCommentNode(v)) for (; isWhitespaceNode(e.value[o + 1]) || isCommentNode(e.value[o + 1]);) o++;
5018
- else if (b === r && r.length && (b = s), b === s && s.length && (b = u), isTokenNode(v) && isTokenDelim(v.value) && "/" === v.value[4].value) {
5019
- if (b === i) return !1;
5020
- b = i;
5217
+ else if (b === r && r.length && (b = s), b === s && s.length && (b = c), isTokenNode(v) && isTokenDelim(v.value) && "/" === v.value[4].value) {
5218
+ if (b === u) return !1;
5219
+ b = u;
5021
5220
  } else {
5022
5221
  if (isFunctionNode(v)) {
5023
- if (b === i && "var" === toLowerCaseAZ(v.getName())) {
5024
- p.syntaxFlags.add(me.HasVariableAlpha), b.push(v);
5222
+ if (b === u && "var" === toLowerCaseAZ(v.getName())) {
5223
+ p.syntaxFlags.add(Le.HasVariableAlpha), b.push(v);
5025
5224
  continue;
5026
5225
  }
5027
5226
  if (!Q$1.has(toLowerCaseAZ(v.getName()))) return !1;
@@ -5035,19 +5234,19 @@ function color$1(e, a) {
5035
5234
  if (!e || !isTokenNode(e) || !isTokenNumeric(e.value)) return !1;
5036
5235
  Number.isNaN(e.value[4].value) && (e.value[4].value = 0), v = e;
5037
5236
  }
5038
- if (b === r && 0 === r.length && isTokenNode(v) && isTokenIdent(v.value) && be.has(toLowerCaseAZ(v.value[4].value))) {
5237
+ if (b === r && 0 === r.length && isTokenNode(v) && isTokenIdent(v.value) && Pe.has(toLowerCaseAZ(v.value[4].value))) {
5039
5238
  if (m) return !1;
5040
- m = toLowerCaseAZ(v.value[4].value), p.colorNotation = colorSpaceNameToColorNotation(m), N && (N.colorNotation !== p.colorNotation && (N = colorDataTo(N, p.colorNotation)), c = normalizeRelativeColorDataChannels(N), h = noneToZeroInRelativeColorDataChannels(c));
5239
+ m = toLowerCaseAZ(v.value[4].value), p.colorNotation = colorSpaceNameToColorNotation(m), N && (N.colorNotation !== p.colorNotation && (N = colorDataTo(N, p.colorNotation)), i = normalizeRelativeColorDataChannels(N), h = noneToZeroInRelativeColorDataChannels(i));
5041
5240
  } else if (b === r && 0 === r.length && isTokenNode(v) && isTokenIdent(v.value) && "from" === toLowerCaseAZ(v.value[4].value)) {
5042
5241
  if (N) return !1;
5043
5242
  if (m) return !1;
5044
5243
  for (; isWhitespaceNode(e.value[o + 1]) || isCommentNode(e.value[o + 1]);) o++;
5045
5244
  if (o++, v = e.value[o], N = a(v), !1 === N) return !1;
5046
- N.syntaxFlags.has(me.Experimental) && p.syntaxFlags.add(me.Experimental), p.syntaxFlags.add(me.RelativeColorSyntax);
5245
+ N.syntaxFlags.has(Le.Experimental) && p.syntaxFlags.add(Le.Experimental), p.syntaxFlags.add(Le.RelativeColorSyntax);
5047
5246
  } else {
5048
5247
  if (!isTokenNode(v)) return !1;
5049
- if (isTokenIdent(v.value) && c && c.has(toLowerCaseAZ(v.value[4].value))) {
5050
- b.push(new TokenNode(c.get(toLowerCaseAZ(v.value[4].value))));
5248
+ if (isTokenIdent(v.value) && i && i.has(toLowerCaseAZ(v.value[4].value))) {
5249
+ b.push(new TokenNode(i.get(toLowerCaseAZ(v.value[4].value))));
5051
5250
  continue;
5052
5251
  }
5053
5252
  b.push(v);
@@ -5056,52 +5255,52 @@ function color$1(e, a) {
5056
5255
  }
5057
5256
  if (!m) return !1;
5058
5257
  if (1 !== b.length) return !1;
5059
- if (1 !== r.length || 1 !== s.length || 1 !== u.length) return !1;
5060
- if (!isTokenNode(r[0]) || !isTokenNode(s[0]) || !isTokenNode(u[0])) return !1;
5061
- if (c && !c.has("alpha")) return !1;
5258
+ if (1 !== r.length || 1 !== s.length || 1 !== c.length) return !1;
5259
+ if (!isTokenNode(r[0]) || !isTokenNode(s[0]) || !isTokenNode(c[0])) return !1;
5260
+ if (i && !i.has("alpha")) return !1;
5062
5261
  const v = normalize_Color_ChannelValues(r[0].value, 0, p);
5063
5262
  if (!v || !isTokenNumber(v)) return !1;
5064
5263
  const f = normalize_Color_ChannelValues(s[0].value, 1, p);
5065
5264
  if (!f || !isTokenNumber(f)) return !1;
5066
- const g = normalize_Color_ChannelValues(u[0].value, 2, p);
5265
+ const g = normalize_Color_ChannelValues(c[0].value, 2, p);
5067
5266
  if (!g || !isTokenNumber(g)) return !1;
5068
- const y = [
5267
+ const d = [
5069
5268
  v,
5070
5269
  f,
5071
5270
  g
5072
5271
  ];
5073
- if (1 === i.length) if (p.syntaxFlags.add(me.HasAlpha), isTokenNode(i[0])) {
5074
- const e = normalize_Color_ChannelValues(i[0].value, 3, p);
5272
+ if (1 === u.length) if (p.syntaxFlags.add(Le.HasAlpha), isTokenNode(u[0])) {
5273
+ const e = normalize_Color_ChannelValues(u[0].value, 3, p);
5075
5274
  if (!e || !isTokenNumber(e)) return !1;
5076
- y.push(e);
5077
- } else p.alpha = i[0];
5078
- else if (c && c.has("alpha")) {
5079
- const e = normalize_Color_ChannelValues(c.get("alpha"), 3, p);
5275
+ d.push(e);
5276
+ } else p.alpha = u[0];
5277
+ else if (i && i.has("alpha")) {
5278
+ const e = normalize_Color_ChannelValues(i.get("alpha"), 3, p);
5080
5279
  if (!e || !isTokenNumber(e)) return !1;
5081
- y.push(e);
5280
+ d.push(e);
5082
5281
  }
5083
5282
  return p.channels = [
5084
- y[0][4].value,
5085
- y[1][4].value,
5086
- y[2][4].value
5087
- ], 4 === y.length && (p.alpha = y[3][4].value), p;
5283
+ d[0][4].value,
5284
+ d[1][4].value,
5285
+ d[2][4].value
5286
+ ], 4 === d.length && (p.alpha = d[3][4].value), p;
5088
5287
  }
5089
5288
  function colorSpaceNameToColorNotation(e) {
5090
5289
  switch (e) {
5091
- case "srgb": return he.sRGB;
5092
- case "srgb-linear": return he.Linear_sRGB;
5093
- case "display-p3": return he.Display_P3;
5094
- case "display-p3-linear": return he.Linear_Display_P3;
5095
- case "a98-rgb": return he.A98_RGB;
5096
- case "prophoto-rgb": return he.ProPhoto_RGB;
5097
- case "rec2020": return he.Rec2020;
5290
+ case "srgb": return De.sRGB;
5291
+ case "srgb-linear": return De.Linear_sRGB;
5292
+ case "display-p3": return De.Display_P3;
5293
+ case "display-p3-linear": return De.Linear_Display_P3;
5294
+ case "a98-rgb": return De.A98_RGB;
5295
+ case "prophoto-rgb": return De.ProPhoto_RGB;
5296
+ case "rec2020": return De.Rec2020;
5098
5297
  case "xyz":
5099
- case "xyz-d65": return he.XYZ_D65;
5100
- case "xyz-d50": return he.XYZ_D50;
5298
+ case "xyz-d65": return De.XYZ_D65;
5299
+ case "xyz-d50": return De.XYZ_D50;
5101
5300
  default: throw new Error("Unknown color space name: " + e);
5102
5301
  }
5103
5302
  }
5104
- const ve = new Set([
5303
+ const ke = /* @__PURE__ */ new Set([
5105
5304
  "srgb",
5106
5305
  "srgb-linear",
5107
5306
  "display-p3",
@@ -5114,12 +5313,12 @@ const ve = new Set([
5114
5313
  "xyz",
5115
5314
  "xyz-d50",
5116
5315
  "xyz-d65"
5117
- ]), fe = new Set([
5316
+ ]), Se = /* @__PURE__ */ new Set([
5118
5317
  "hsl",
5119
5318
  "hwb",
5120
5319
  "lch",
5121
5320
  "oklch"
5122
- ]), ge = new Set([
5321
+ ]), Me = /* @__PURE__ */ new Set([
5123
5322
  "shorter",
5124
5323
  "longer",
5125
5324
  "increasing",
@@ -5127,30 +5326,30 @@ const ve = new Set([
5127
5326
  ]);
5128
5327
  function colorMix(e, a) {
5129
5328
  let r = null, o = null, t = null, l = !1;
5130
- for (let u = 0; u < e.value.length; u++) {
5131
- const i = e.value[u];
5132
- if (!isWhiteSpaceOrCommentNode(i)) {
5133
- if (!(r || isTokenNode(i) && isTokenIdent(i.value) && "in" === toLowerCaseAZ(i.value[4].value))) return colorMixRectangular("oklab", colorMixComponents(e.value, a));
5134
- if (isTokenNode(i) && isTokenIdent(i.value)) {
5135
- if (!r && "in" === toLowerCaseAZ(i.value[4].value)) {
5136
- r = i;
5329
+ for (let c = 0; c < e.value.length; c++) {
5330
+ const u = e.value[c];
5331
+ if (!isWhiteSpaceOrCommentNode(u)) {
5332
+ if (!(r || isTokenNode(u) && isTokenIdent(u.value) && "in" === toLowerCaseAZ(u.value[4].value))) return colorMixRectangular("oklab", colorMixComponents(e.value, a));
5333
+ if (isTokenNode(u) && isTokenIdent(u.value)) {
5334
+ if (!r && "in" === toLowerCaseAZ(u.value[4].value)) {
5335
+ r = u;
5137
5336
  continue;
5138
5337
  }
5139
5338
  if (r && !o) {
5140
- o = toLowerCaseAZ(i.value[4].value);
5339
+ o = toLowerCaseAZ(u.value[4].value);
5141
5340
  continue;
5142
5341
  }
5143
- if (r && o && !t && fe.has(o)) {
5144
- t = toLowerCaseAZ(i.value[4].value);
5342
+ if (r && o && !t && Se.has(o)) {
5343
+ t = toLowerCaseAZ(u.value[4].value);
5145
5344
  continue;
5146
5345
  }
5147
- if (r && o && t && !l && "hue" === toLowerCaseAZ(i.value[4].value)) {
5346
+ if (r && o && t && !l && "hue" === toLowerCaseAZ(u.value[4].value)) {
5148
5347
  l = !0;
5149
5348
  continue;
5150
5349
  }
5151
5350
  return !1;
5152
5351
  }
5153
- return !(!isTokenNode(i) || !isTokenComma(i.value)) && !!o && (t || l ? !!(t && l && fe.has(o) && ge.has(t)) && colorMixPolar(o, t, colorMixComponents(e.value.slice(u + 1), a)) : ve.has(o) ? colorMixRectangular(o, colorMixComponents(e.value.slice(u + 1), a)) : !!fe.has(o) && colorMixPolar(o, "shorter", colorMixComponents(e.value.slice(u + 1), a)));
5352
+ return !(!isTokenNode(u) || !isTokenComma(u.value)) && !!o && (t || l ? !!(t && l && Se.has(o) && Me.has(t)) && colorMixPolar(o, t, colorMixComponents(e.value.slice(c + 1), a)) : ke.has(o) ? colorMixRectangular(o, colorMixComponents(e.value.slice(c + 1), a)) : !!Se.has(o) && colorMixPolar(o, "shorter", colorMixComponents(e.value.slice(c + 1), a)));
5154
5353
  }
5155
5354
  }
5156
5355
  return !1;
@@ -5158,29 +5357,29 @@ function colorMix(e, a) {
5158
5357
  function colorMixComponents(e, a) {
5159
5358
  const n = [];
5160
5359
  let o = !1, t = !1;
5161
- for (let u = 0; u < e.length; u++) {
5162
- let i = e[u];
5163
- if (!isWhiteSpaceOrCommentNode(i)) {
5164
- if (!isTokenNode(i) || !isTokenComma(i.value)) {
5360
+ for (let c = 0; c < e.length; c++) {
5361
+ let u = e[c];
5362
+ if (!isWhiteSpaceOrCommentNode(u)) {
5363
+ if (!isTokenNode(u) || !isTokenComma(u.value)) {
5165
5364
  if (!o) {
5166
- const e = a(i);
5365
+ const e = a(u);
5167
5366
  if (e) {
5168
5367
  o = e;
5169
5368
  continue;
5170
5369
  }
5171
5370
  }
5172
5371
  if (!t) {
5173
- if (isFunctionNode(i) && Q$1.has(toLowerCaseAZ(i.getName()))) {
5174
- if ([[i]] = calcFromComponentValues([[i]], {
5372
+ if (isFunctionNode(u) && Q$1.has(toLowerCaseAZ(u.getName()))) {
5373
+ if ([[u]] = calcFromComponentValues([[u]], {
5175
5374
  censorIntoStandardRepresentableValues: !0,
5176
5375
  precision: -1,
5177
5376
  toCanonicalUnits: !0,
5178
5377
  rawPercentages: !0
5179
- }), !i || !isTokenNode(i) || !isTokenNumeric(i.value)) return !1;
5180
- Number.isNaN(i.value[4].value) && (i.value[4].value = 0);
5378
+ }), !u || !isTokenNode(u) || !isTokenNumeric(u.value)) return !1;
5379
+ Number.isNaN(u.value[4].value) && (u.value[4].value = 0);
5181
5380
  }
5182
- if (isTokenNode(i) && isTokenPercentage(i.value) && i.value[4].value >= 0) {
5183
- t = i.value[4].value;
5381
+ if (isTokenNode(u) && isTokenPercentage(u.value) && u.value[4].value >= 0) {
5382
+ t = u.value[4].value;
5184
5383
  continue;
5185
5384
  }
5186
5385
  }
@@ -5205,44 +5404,44 @@ function colorMixRectangular(e, a) {
5205
5404
  let t;
5206
5405
  switch (e) {
5207
5406
  case "srgb":
5208
- t = he.RGB;
5407
+ t = De.RGB;
5209
5408
  break;
5210
5409
  case "srgb-linear":
5211
- t = he.Linear_sRGB;
5410
+ t = De.Linear_sRGB;
5212
5411
  break;
5213
5412
  case "display-p3":
5214
- t = he.Display_P3;
5413
+ t = De.Display_P3;
5215
5414
  break;
5216
5415
  case "display-p3-linear":
5217
- t = he.Linear_Display_P3;
5416
+ t = De.Linear_Display_P3;
5218
5417
  break;
5219
5418
  case "a98-rgb":
5220
- t = he.A98_RGB;
5419
+ t = De.A98_RGB;
5221
5420
  break;
5222
5421
  case "prophoto-rgb":
5223
- t = he.ProPhoto_RGB;
5422
+ t = De.ProPhoto_RGB;
5224
5423
  break;
5225
5424
  case "rec2020":
5226
- t = he.Rec2020;
5425
+ t = De.Rec2020;
5227
5426
  break;
5228
5427
  case "lab":
5229
- t = he.Lab;
5428
+ t = De.Lab;
5230
5429
  break;
5231
5430
  case "oklab":
5232
- t = he.OKLab;
5431
+ t = De.OKLab;
5233
5432
  break;
5234
5433
  case "xyz-d50":
5235
- t = he.XYZ_D50;
5434
+ t = De.XYZ_D50;
5236
5435
  break;
5237
5436
  case "xyz":
5238
5437
  case "xyz-d65":
5239
- t = he.XYZ_D65;
5438
+ t = De.XYZ_D65;
5240
5439
  break;
5241
5440
  default: return !1;
5242
5441
  }
5243
5442
  if (1 === n.length) {
5244
5443
  const e = colorDataTo(n[0].color, t);
5245
- return e.colorNotation = t, e.syntaxFlags.add(me.ColorMixVariadic), e.syntaxFlags.add(me.ColorMix), "number" != typeof e.alpha ? !1 : (e.alpha = e.alpha * o, e);
5444
+ return e.colorNotation = t, e.syntaxFlags.add(Le.ColorMixVariadic), e.syntaxFlags.add(Le.ColorMix), "number" != typeof e.alpha ? !1 : (e.alpha = e.alpha * o, e);
5246
5445
  }
5247
5446
  for (n.reverse(); n.length >= 2;) {
5248
5447
  const e = n.pop(), a = n.pop();
@@ -5255,7 +5454,7 @@ function colorMixRectangular(e, a) {
5255
5454
  });
5256
5455
  }
5257
5456
  const l = n[0]?.color;
5258
- return !!l && "number" == typeof l.alpha && (l.alpha = l.alpha * o, a.some((e) => e.color.syntaxFlags.has(me.Experimental)) && l.syntaxFlags.add(me.Experimental), 2 !== a.length && l.syntaxFlags.add(me.ColorMixVariadic), l);
5457
+ return !!l && "number" == typeof l.alpha && (l.alpha = l.alpha * o, a.some((e) => e.color.syntaxFlags.has(Le.Experimental)) && l.syntaxFlags.add(Le.Experimental), 2 !== a.length && l.syntaxFlags.add(Le.ColorMixVariadic), l);
5259
5458
  }
5260
5459
  function colorMixRectangularPair(e, a, n, r) {
5261
5460
  let o = a.alpha;
@@ -5265,16 +5464,16 @@ function colorMixRectangularPair(e, a, n, r) {
5265
5464
  o = Number.isNaN(o) ? t : o, t = Number.isNaN(t) ? o : t;
5266
5465
  const l = colorDataTo(a, e).channels, s = colorDataTo(n, e).channels;
5267
5466
  l[0] = fillInMissingComponent(l[0], s[0]), s[0] = fillInMissingComponent(s[0], l[0]), l[1] = fillInMissingComponent(l[1], s[1]), s[1] = fillInMissingComponent(s[1], l[1]), l[2] = fillInMissingComponent(l[2], s[2]), s[2] = fillInMissingComponent(s[2], l[2]), l[0] = premultiply(l[0], o), l[1] = premultiply(l[1], o), l[2] = premultiply(l[2], o), s[0] = premultiply(s[0], t), s[1] = premultiply(s[1], t), s[2] = premultiply(s[2], t);
5268
- const u = interpolate(o, t, r);
5467
+ const c = interpolate(o, t, r);
5269
5468
  return {
5270
5469
  colorNotation: e,
5271
5470
  channels: [
5272
- un_premultiply(interpolate(l[0], s[0], r), u),
5273
- un_premultiply(interpolate(l[1], s[1], r), u),
5274
- un_premultiply(interpolate(l[2], s[2], r), u)
5471
+ un_premultiply(interpolate(l[0], s[0], r), c),
5472
+ un_premultiply(interpolate(l[1], s[1], r), c),
5473
+ un_premultiply(interpolate(l[2], s[2], r), c)
5275
5474
  ],
5276
- alpha: u,
5277
- syntaxFlags: new Set([me.ColorMix])
5475
+ alpha: c,
5476
+ syntaxFlags: /* @__PURE__ */ new Set([Le.ColorMix])
5278
5477
  };
5279
5478
  }
5280
5479
  function colorMixPolar(e, a, n) {
@@ -5284,22 +5483,22 @@ function colorMixPolar(e, a, n) {
5284
5483
  let l;
5285
5484
  switch (e) {
5286
5485
  case "hsl":
5287
- l = he.HSL;
5486
+ l = De.HSL;
5288
5487
  break;
5289
5488
  case "hwb":
5290
- l = he.HWB;
5489
+ l = De.HWB;
5291
5490
  break;
5292
5491
  case "lch":
5293
- l = he.LCH;
5492
+ l = De.LCH;
5294
5493
  break;
5295
5494
  case "oklch":
5296
- l = he.OKLCH;
5495
+ l = De.OKLCH;
5297
5496
  break;
5298
5497
  default: return !1;
5299
5498
  }
5300
5499
  if (1 === r.length) {
5301
5500
  const e = colorDataTo(r[0].color, l);
5302
- return e.colorNotation = l, e.syntaxFlags.add(me.ColorMixVariadic), e.syntaxFlags.add(me.ColorMix), "number" != typeof e.alpha ? !1 : (e.alpha = e.alpha * t, e);
5501
+ return e.colorNotation = l, e.syntaxFlags.add(Le.ColorMixVariadic), e.syntaxFlags.add(Le.ColorMix), "number" != typeof e.alpha ? !1 : (e.alpha = e.alpha * t, e);
5303
5502
  }
5304
5503
  for (r.reverse(); r.length >= 2;) {
5305
5504
  const e = r.pop(), n = r.pop();
@@ -5312,24 +5511,24 @@ function colorMixPolar(e, a, n) {
5312
5511
  });
5313
5512
  }
5314
5513
  const s = r[0]?.color;
5315
- return !!s && "number" == typeof s.alpha && (s.alpha = s.alpha * t, n.some((e) => e.color.syntaxFlags.has(me.Experimental)) && s.syntaxFlags.add(me.Experimental), 2 !== n.length && s.syntaxFlags.add(me.ColorMixVariadic), s);
5514
+ return !!s && "number" == typeof s.alpha && (s.alpha = s.alpha * t, n.some((e) => e.color.syntaxFlags.has(Le.Experimental)) && s.syntaxFlags.add(Le.Experimental), 2 !== n.length && s.syntaxFlags.add(Le.ColorMixVariadic), s);
5316
5515
  }
5317
5516
  function colorMixPolarPair(e, a, n, r, o) {
5318
- let t = 0, l = 0, s = 0, u = 0, i = 0, c = 0, h = n.alpha;
5517
+ let t = 0, l = 0, s = 0, c = 0, u = 0, i = 0, h = n.alpha;
5319
5518
  if ("number" != typeof h) return !1;
5320
5519
  let m = r.alpha;
5321
5520
  if ("number" != typeof m) return !1;
5322
5521
  h = Number.isNaN(h) ? m : h, m = Number.isNaN(m) ? h : m;
5323
5522
  const N = colorDataTo(n, e).channels, p = colorDataTo(r, e).channels;
5324
5523
  switch (e) {
5325
- case he.HSL:
5326
- case he.HWB:
5327
- t = N[0], l = p[0], s = N[1], u = p[1], i = N[2], c = p[2];
5524
+ case De.HSL:
5525
+ case De.HWB:
5526
+ t = N[0], l = p[0], s = N[1], c = p[1], u = N[2], i = p[2];
5328
5527
  break;
5329
- case he.LCH:
5330
- case he.OKLCH: s = N[0], u = p[0], i = N[1], c = p[1], t = N[2], l = p[2];
5528
+ case De.LCH:
5529
+ case De.OKLCH: s = N[0], c = p[0], u = N[1], i = p[1], t = N[2], l = p[2];
5331
5530
  }
5332
- if (s = fillInMissingComponent(s, u), u = fillInMissingComponent(u, s), i = fillInMissingComponent(i, c), c = fillInMissingComponent(c, i), t = fillInMissingComponent(t, l), l = fillInMissingComponent(l, t), Number.isNaN(t) && Number.isNaN(l));
5531
+ if (s = fillInMissingComponent(s, c), c = fillInMissingComponent(c, s), u = fillInMissingComponent(u, i), i = fillInMissingComponent(i, u), t = fillInMissingComponent(t, l), l = fillInMissingComponent(l, t), Number.isNaN(t) && Number.isNaN(l));
5333
5532
  else {
5334
5533
  Number.isNaN(t) ? t = 0 : Number.isNaN(l) && (l = 0);
5335
5534
  const e = l - t;
@@ -5349,7 +5548,7 @@ function colorMixPolarPair(e, a, n, r, o) {
5349
5548
  default: throw new Error("Unknown hue interpolation method");
5350
5549
  }
5351
5550
  }
5352
- s = premultiply(s, h), i = premultiply(i, h), u = premultiply(u, m), c = premultiply(c, m);
5551
+ s = premultiply(s, h), u = premultiply(u, h), c = premultiply(c, m), i = premultiply(i, m);
5353
5552
  let b = [
5354
5553
  0,
5355
5554
  0,
@@ -5357,18 +5556,18 @@ function colorMixPolarPair(e, a, n, r, o) {
5357
5556
  ];
5358
5557
  const v = interpolate(h, m, o);
5359
5558
  switch (e) {
5360
- case he.HSL:
5361
- case he.HWB:
5559
+ case De.HSL:
5560
+ case De.HWB:
5362
5561
  b = [
5363
5562
  interpolate(t, l, o),
5364
- un_premultiply(interpolate(s, u, o), v),
5365
- un_premultiply(interpolate(i, c, o), v)
5563
+ un_premultiply(interpolate(s, c, o), v),
5564
+ un_premultiply(interpolate(u, i, o), v)
5366
5565
  ];
5367
5566
  break;
5368
- case he.LCH:
5369
- case he.OKLCH: b = [
5370
- un_premultiply(interpolate(s, u, o), v),
5371
- un_premultiply(interpolate(i, c, o), v),
5567
+ case De.LCH:
5568
+ case De.OKLCH: b = [
5569
+ un_premultiply(interpolate(s, c, o), v),
5570
+ un_premultiply(interpolate(u, i, o), v),
5372
5571
  interpolate(t, l, o)
5373
5572
  ];
5374
5573
  }
@@ -5376,7 +5575,7 @@ function colorMixPolarPair(e, a, n, r, o) {
5376
5575
  colorNotation: e,
5377
5576
  channels: b,
5378
5577
  alpha: v,
5379
- syntaxFlags: new Set([me.ColorMix])
5578
+ syntaxFlags: /* @__PURE__ */ new Set([Le.ColorMix])
5380
5579
  };
5381
5580
  }
5382
5581
  function fillInMissingComponent(e, a) {
@@ -5410,14 +5609,14 @@ function hex(e) {
5410
5609
  const a = toLowerCaseAZ(e[4].value);
5411
5610
  if (a.match(/[^a-f0-9]/)) return !1;
5412
5611
  const n = {
5413
- colorNotation: he.HEX,
5612
+ colorNotation: De.HEX,
5414
5613
  channels: [
5415
5614
  0,
5416
5615
  0,
5417
5616
  0
5418
5617
  ],
5419
5618
  alpha: 1,
5420
- syntaxFlags: new Set([me.Hex])
5619
+ syntaxFlags: /* @__PURE__ */ new Set([Le.Hex])
5421
5620
  }, r = a.length;
5422
5621
  if (3 === r) {
5423
5622
  const e = a[0], r = a[1], o = a[2];
@@ -5441,7 +5640,7 @@ function hex(e) {
5441
5640
  parseInt(e + e, 16) / 255,
5442
5641
  parseInt(r + r, 16) / 255,
5443
5642
  parseInt(o + o, 16) / 255
5444
- ], n.alpha = parseInt(t + t, 16) / 255, n.syntaxFlags.add(me.HasAlpha), n;
5643
+ ], n.alpha = parseInt(t + t, 16) / 255, n.syntaxFlags.add(Le.HasAlpha), n;
5445
5644
  }
5446
5645
  if (8 === r) {
5447
5646
  const e = a[0] + a[1], r = a[2] + a[3], o = a[4] + a[5], t = a[6] + a[7];
@@ -5449,7 +5648,7 @@ function hex(e) {
5449
5648
  parseInt(e, 16) / 255,
5450
5649
  parseInt(r, 16) / 255,
5451
5650
  parseInt(o, 16) / 255
5452
- ], n.alpha = parseInt(t, 16) / 255, n.syntaxFlags.add(me.HasAlpha), n;
5651
+ ], n.alpha = parseInt(t, 16) / 255, n.syntaxFlags.add(Le.HasAlpha), n;
5453
5652
  }
5454
5653
  return !1;
5455
5654
  }
@@ -5486,10 +5685,10 @@ function normalizeHue(n) {
5486
5685
  function normalize_legacy_HSL_ChannelValues(n, t, l) {
5487
5686
  if (0 === t) {
5488
5687
  const e = normalizeHue(n);
5489
- return !1 !== e && (isTokenDimension(n) && l.syntaxFlags.add(me.HasDimensionValues), e);
5688
+ return !1 !== e && (isTokenDimension(n) && l.syntaxFlags.add(Le.HasDimensionValues), e);
5490
5689
  }
5491
5690
  if (isTokenPercentage(n)) {
5492
- 3 === t ? l.syntaxFlags.add(me.HasPercentageAlpha) : l.syntaxFlags.add(me.HasPercentageValues);
5691
+ 3 === t ? l.syntaxFlags.add(Le.HasPercentageAlpha) : l.syntaxFlags.add(Le.HasPercentageValues);
5493
5692
  let r = normalize(n[4].value, 1, 0, 100);
5494
5693
  return 3 === t && (r = normalize(n[4].value, 100, 0, 1)), [
5495
5694
  c$7.Number,
@@ -5519,7 +5718,7 @@ function normalize_legacy_HSL_ChannelValues(n, t, l) {
5519
5718
  return !1;
5520
5719
  }
5521
5720
  function normalize_modern_HSL_ChannelValues(t, l, s) {
5522
- if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(me.HasNoneKeywords), [
5721
+ if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(Le.HasNoneKeywords), [
5523
5722
  c$7.Number,
5524
5723
  "none",
5525
5724
  t[2],
@@ -5531,10 +5730,10 @@ function normalize_modern_HSL_ChannelValues(t, l, s) {
5531
5730
  ];
5532
5731
  if (0 === l) {
5533
5732
  const e = normalizeHue(t);
5534
- return !1 !== e && (isTokenDimension(t) && s.syntaxFlags.add(me.HasDimensionValues), e);
5733
+ return !1 !== e && (isTokenDimension(t) && s.syntaxFlags.add(Le.HasDimensionValues), e);
5535
5734
  }
5536
5735
  if (isTokenPercentage(t)) {
5537
- 3 === l ? s.syntaxFlags.add(me.HasPercentageAlpha) : s.syntaxFlags.add(me.HasPercentageValues);
5736
+ 3 === l ? s.syntaxFlags.add(Le.HasPercentageAlpha) : s.syntaxFlags.add(Le.HasPercentageValues);
5538
5737
  let n = t[4].value;
5539
5738
  return 3 === l ? n = normalize(t[4].value, 100, 0, 1) : 1 === l && (n = normalize(t[4].value, 1, 0, 2147483647)), [
5540
5739
  c$7.Number,
@@ -5548,7 +5747,7 @@ function normalize_modern_HSL_ChannelValues(t, l, s) {
5548
5747
  ];
5549
5748
  }
5550
5749
  if (isTokenNumber(t)) {
5551
- 3 !== l && s.syntaxFlags.add(me.HasNumberValues);
5750
+ 3 !== l && s.syntaxFlags.add(Le.HasNumberValues);
5552
5751
  let n = t[4].value;
5553
5752
  return 3 === l ? n = normalize(t[4].value, 1, 0, 1) : 1 === l && (n = normalize(t[4].value, 1, 0, 2147483647)), [
5554
5753
  c$7.Number,
@@ -5564,7 +5763,7 @@ function normalize_modern_HSL_ChannelValues(t, l, s) {
5564
5763
  return !1;
5565
5764
  }
5566
5765
  function threeChannelLegacySyntax(e, a, n, r) {
5567
- const t = [], u = [], i = [], c = [], h = {
5766
+ const t = [], c = [], u = [], i = [], h = {
5568
5767
  colorNotation: n,
5569
5768
  channels: [
5570
5769
  0,
@@ -5580,6 +5779,10 @@ function threeChannelLegacySyntax(e, a, n, r) {
5580
5779
  if (!isWhitespaceNode(n) && !isCommentNode(n)) {
5581
5780
  if (isTokenNode(n) && isTokenComma(n.value)) {
5582
5781
  if (m === t) {
5782
+ m = c;
5783
+ continue;
5784
+ }
5785
+ if (m === c) {
5583
5786
  m = u;
5584
5787
  continue;
5585
5788
  }
@@ -5587,15 +5790,11 @@ function threeChannelLegacySyntax(e, a, n, r) {
5587
5790
  m = i;
5588
5791
  continue;
5589
5792
  }
5590
- if (m === i) {
5591
- m = c;
5592
- continue;
5593
- }
5594
- if (m === c) return !1;
5793
+ if (m === i) return !1;
5595
5794
  }
5596
5795
  if (isFunctionNode(n)) {
5597
- if (m === c && "var" === n.getName().toLowerCase()) {
5598
- h.syntaxFlags.add(me.HasVariableAlpha), m.push(n);
5796
+ if (m === i && "var" === n.getName().toLowerCase()) {
5797
+ h.syntaxFlags.add(Le.HasVariableAlpha), m.push(n);
5599
5798
  continue;
5600
5799
  }
5601
5800
  if (!Q$1.has(n.getName().toLowerCase())) return !1;
@@ -5613,32 +5812,32 @@ function threeChannelLegacySyntax(e, a, n, r) {
5613
5812
  }
5614
5813
  }
5615
5814
  if (1 !== m.length) return !1;
5616
- if (1 !== t.length || 1 !== u.length || 1 !== i.length) return !1;
5617
- if (!isTokenNode(t[0]) || !isTokenNode(u[0]) || !isTokenNode(i[0])) return !1;
5815
+ if (1 !== t.length || 1 !== c.length || 1 !== u.length) return !1;
5816
+ if (!isTokenNode(t[0]) || !isTokenNode(c[0]) || !isTokenNode(u[0])) return !1;
5618
5817
  const N = a(t[0].value, 0, h);
5619
5818
  if (!N || !isTokenNumber(N)) return !1;
5620
- const p = a(u[0].value, 1, h);
5819
+ const p = a(c[0].value, 1, h);
5621
5820
  if (!p || !isTokenNumber(p)) return !1;
5622
- const b = a(i[0].value, 2, h);
5821
+ const b = a(u[0].value, 2, h);
5623
5822
  if (!b || !isTokenNumber(b)) return !1;
5624
5823
  const v = [
5625
5824
  N,
5626
5825
  p,
5627
5826
  b
5628
5827
  ];
5629
- if (1 === c.length) if (h.syntaxFlags.add(me.HasAlpha), isTokenNode(c[0])) {
5630
- const e = a(c[0].value, 3, h);
5828
+ if (1 === i.length) if (h.syntaxFlags.add(Le.HasAlpha), isTokenNode(i[0])) {
5829
+ const e = a(i[0].value, 3, h);
5631
5830
  if (!e || !isTokenNumber(e)) return !1;
5632
5831
  v.push(e);
5633
- } else h.alpha = c[0];
5832
+ } else h.alpha = i[0];
5634
5833
  return h.channels = [
5635
5834
  v[0][4].value,
5636
5835
  v[1][4].value,
5637
5836
  v[2][4].value
5638
5837
  ], 4 === v.length && (h.alpha = v[3][4].value), h;
5639
5838
  }
5640
- function threeChannelSpaceSeparated(e, a, r, s, u) {
5641
- const i = [], c = [], h = [], m = [];
5839
+ function threeChannelSpaceSeparated(e, a, r, s, c) {
5840
+ const u = [], i = [], h = [], m = [];
5642
5841
  let N, p, b = !1;
5643
5842
  const v = {
5644
5843
  colorNotation: r,
@@ -5650,17 +5849,17 @@ function threeChannelSpaceSeparated(e, a, r, s, u) {
5650
5849
  alpha: 1,
5651
5850
  syntaxFlags: new Set(s)
5652
5851
  };
5653
- let f = i;
5852
+ let f = u;
5654
5853
  for (let a = 0; a < e.value.length; a++) {
5655
5854
  let o = e.value[a];
5656
5855
  if (isWhitespaceNode(o) || isCommentNode(o)) for (; isWhitespaceNode(e.value[a + 1]) || isCommentNode(e.value[a + 1]);) a++;
5657
- else if (f === i && i.length && (f = c), f === c && c.length && (f = h), isTokenNode(o) && isTokenDelim(o.value) && "/" === o.value[4].value) {
5856
+ else if (f === u && u.length && (f = i), f === i && i.length && (f = h), isTokenNode(o) && isTokenDelim(o.value) && "/" === o.value[4].value) {
5658
5857
  if (f === m) return !1;
5659
5858
  f = m;
5660
5859
  } else {
5661
5860
  if (isFunctionNode(o)) {
5662
5861
  if (f === m && "var" === o.getName().toLowerCase()) {
5663
- v.syntaxFlags.add(me.HasVariableAlpha), f.push(o);
5862
+ v.syntaxFlags.add(Le.HasVariableAlpha), f.push(o);
5664
5863
  continue;
5665
5864
  }
5666
5865
  if (!Q$1.has(o.getName().toLowerCase())) return !1;
@@ -5674,11 +5873,11 @@ function threeChannelSpaceSeparated(e, a, r, s, u) {
5674
5873
  if (!e || !isTokenNode(e) || !isTokenNumeric(e.value)) return !1;
5675
5874
  Number.isNaN(e.value[4].value) && (e.value[4].value = 0), o = e;
5676
5875
  }
5677
- if (f === i && 0 === i.length && isTokenNode(o) && isTokenIdent(o.value) && "from" === o.value[4].value.toLowerCase()) {
5876
+ if (f === u && 0 === u.length && isTokenNode(o) && isTokenIdent(o.value) && "from" === o.value[4].value.toLowerCase()) {
5678
5877
  if (b) return !1;
5679
5878
  for (; isWhitespaceNode(e.value[a + 1]) || isCommentNode(e.value[a + 1]);) a++;
5680
- if (a++, o = e.value[a], b = u(o), !1 === b) return !1;
5681
- b.syntaxFlags.has(me.Experimental) && v.syntaxFlags.add(me.Experimental), v.syntaxFlags.add(me.RelativeColorSyntax), b.colorNotation !== r && (b = colorDataTo(b, r)), N = normalizeRelativeColorDataChannels(b), p = noneToZeroInRelativeColorDataChannels(N);
5879
+ if (a++, o = e.value[a], b = c(o), !1 === b) return !1;
5880
+ b.syntaxFlags.has(Le.Experimental) && v.syntaxFlags.add(Le.Experimental), v.syntaxFlags.add(Le.RelativeColorSyntax), b.colorNotation !== r && (b = colorDataTo(b, r)), N = normalizeRelativeColorDataChannels(b), p = noneToZeroInRelativeColorDataChannels(N);
5682
5881
  } else {
5683
5882
  if (!isTokenNode(o)) return !1;
5684
5883
  if (isTokenIdent(o.value) && N) {
@@ -5693,35 +5892,35 @@ function threeChannelSpaceSeparated(e, a, r, s, u) {
5693
5892
  }
5694
5893
  }
5695
5894
  if (1 !== f.length) return !1;
5696
- if (1 !== i.length || 1 !== c.length || 1 !== h.length) return !1;
5697
- if (!isTokenNode(i[0]) || !isTokenNode(c[0]) || !isTokenNode(h[0])) return !1;
5895
+ if (1 !== u.length || 1 !== i.length || 1 !== h.length) return !1;
5896
+ if (!isTokenNode(u[0]) || !isTokenNode(i[0]) || !isTokenNode(h[0])) return !1;
5698
5897
  if (N && !N.has("alpha")) return !1;
5699
- const g = a(i[0].value, 0, v);
5898
+ const g = a(u[0].value, 0, v);
5700
5899
  if (!g || !isTokenNumber(g)) return !1;
5701
- const y = a(c[0].value, 1, v);
5702
- if (!y || !isTokenNumber(y)) return !1;
5703
- const d = a(h[0].value, 2, v);
5900
+ const d = a(i[0].value, 1, v);
5704
5901
  if (!d || !isTokenNumber(d)) return !1;
5705
- const C = [
5902
+ const y = a(h[0].value, 2, v);
5903
+ if (!y || !isTokenNumber(y)) return !1;
5904
+ const _ = [
5706
5905
  g,
5707
- y,
5708
- d
5906
+ d,
5907
+ y
5709
5908
  ];
5710
- if (1 === m.length) if (v.syntaxFlags.add(me.HasAlpha), isTokenNode(m[0])) {
5909
+ if (1 === m.length) if (v.syntaxFlags.add(Le.HasAlpha), isTokenNode(m[0])) {
5711
5910
  const e = a(m[0].value, 3, v);
5712
5911
  if (!e || !isTokenNumber(e)) return !1;
5713
- C.push(e);
5912
+ _.push(e);
5714
5913
  } else v.alpha = m[0];
5715
5914
  else if (N && N.has("alpha")) {
5716
5915
  const e = a(N.get("alpha"), 3, v);
5717
5916
  if (!e || !isTokenNumber(e)) return !1;
5718
- C.push(e);
5917
+ _.push(e);
5719
5918
  }
5720
5919
  return v.channels = [
5721
- C[0][4].value,
5722
- C[1][4].value,
5723
- C[2][4].value
5724
- ], 4 === C.length && (v.alpha = C[3][4].value), v;
5920
+ _[0][4].value,
5921
+ _[1][4].value,
5922
+ _[2][4].value
5923
+ ], 4 === _.length && (v.alpha = _[3][4].value), v;
5725
5924
  }
5726
5925
  function hsl(e, a) {
5727
5926
  if (e.value.some((e) => isTokenNode(e) && isTokenComma(e.value))) {
@@ -5735,13 +5934,13 @@ function hsl(e, a) {
5735
5934
  return !1;
5736
5935
  }
5737
5936
  function hslCommaSeparated(e) {
5738
- return threeChannelLegacySyntax(e, normalize_legacy_HSL_ChannelValues, he.HSL, [me.LegacyHSL]);
5937
+ return threeChannelLegacySyntax(e, normalize_legacy_HSL_ChannelValues, De.HSL, [Le.LegacyHSL]);
5739
5938
  }
5740
5939
  function hslSpaceSeparated(e, a) {
5741
- return threeChannelSpaceSeparated(e, normalize_modern_HSL_ChannelValues, he.HSL, [], a);
5940
+ return threeChannelSpaceSeparated(e, normalize_modern_HSL_ChannelValues, De.HSL, [], a);
5742
5941
  }
5743
5942
  function normalize_HWB_ChannelValues(t, l, s) {
5744
- if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(me.HasNoneKeywords), [
5943
+ if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(Le.HasNoneKeywords), [
5745
5944
  c$7.Number,
5746
5945
  "none",
5747
5946
  t[2],
@@ -5753,10 +5952,10 @@ function normalize_HWB_ChannelValues(t, l, s) {
5753
5952
  ];
5754
5953
  if (0 === l) {
5755
5954
  const e = normalizeHue(t);
5756
- return !1 !== e && (isTokenDimension(t) && s.syntaxFlags.add(me.HasDimensionValues), e);
5955
+ return !1 !== e && (isTokenDimension(t) && s.syntaxFlags.add(Le.HasDimensionValues), e);
5757
5956
  }
5758
5957
  if (isTokenPercentage(t)) {
5759
- 3 === l ? s.syntaxFlags.add(me.HasPercentageAlpha) : s.syntaxFlags.add(me.HasPercentageValues);
5958
+ 3 === l ? s.syntaxFlags.add(Le.HasPercentageAlpha) : s.syntaxFlags.add(Le.HasPercentageValues);
5760
5959
  let n = t[4].value;
5761
5960
  return 3 === l && (n = normalize(t[4].value, 100, 0, 1)), [
5762
5961
  c$7.Number,
@@ -5770,7 +5969,7 @@ function normalize_HWB_ChannelValues(t, l, s) {
5770
5969
  ];
5771
5970
  }
5772
5971
  if (isTokenNumber(t)) {
5773
- 3 !== l && s.syntaxFlags.add(me.HasNumberValues);
5972
+ 3 !== l && s.syntaxFlags.add(Le.HasNumberValues);
5774
5973
  let n = t[4].value;
5775
5974
  return 3 === l && (n = normalize(t[4].value, 1, 0, 1)), [
5776
5975
  c$7.Number,
@@ -5786,7 +5985,7 @@ function normalize_HWB_ChannelValues(t, l, s) {
5786
5985
  return !1;
5787
5986
  }
5788
5987
  function normalize_Lab_ChannelValues(t, l, s) {
5789
- if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(me.HasNoneKeywords), [
5988
+ if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(Le.HasNoneKeywords), [
5790
5989
  c$7.Number,
5791
5990
  "none",
5792
5991
  t[2],
@@ -5797,7 +5996,7 @@ function normalize_Lab_ChannelValues(t, l, s) {
5797
5996
  }
5798
5997
  ];
5799
5998
  if (isTokenPercentage(t)) {
5800
- 3 !== l && s.syntaxFlags.add(me.HasPercentageValues);
5999
+ 3 !== l && s.syntaxFlags.add(Le.HasPercentageValues);
5801
6000
  let n = normalize(t[4].value, 1, 0, 100);
5802
6001
  return 1 === l || 2 === l ? n = normalize(t[4].value, .8, -2147483647, 2147483647) : 3 === l && (n = normalize(t[4].value, 100, 0, 1)), [
5803
6002
  c$7.Number,
@@ -5811,7 +6010,7 @@ function normalize_Lab_ChannelValues(t, l, s) {
5811
6010
  ];
5812
6011
  }
5813
6012
  if (isTokenNumber(t)) {
5814
- 3 !== l && s.syntaxFlags.add(me.HasNumberValues);
6013
+ 3 !== l && s.syntaxFlags.add(Le.HasNumberValues);
5815
6014
  let n = normalize(t[4].value, 1, 0, 100);
5816
6015
  return 1 === l || 2 === l ? n = normalize(t[4].value, 1, -2147483647, 2147483647) : 3 === l && (n = normalize(t[4].value, 1, 0, 1)), [
5817
6016
  c$7.Number,
@@ -5827,10 +6026,10 @@ function normalize_Lab_ChannelValues(t, l, s) {
5827
6026
  return !1;
5828
6027
  }
5829
6028
  function lab(e, a) {
5830
- return threeChannelSpaceSeparated(e, normalize_Lab_ChannelValues, he.Lab, [], a);
6029
+ return threeChannelSpaceSeparated(e, normalize_Lab_ChannelValues, De.Lab, [], a);
5831
6030
  }
5832
6031
  function normalize_LCH_ChannelValues(t, l, s) {
5833
- if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(me.HasNoneKeywords), [
6032
+ if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(Le.HasNoneKeywords), [
5834
6033
  c$7.Number,
5835
6034
  "none",
5836
6035
  t[2],
@@ -5842,10 +6041,10 @@ function normalize_LCH_ChannelValues(t, l, s) {
5842
6041
  ];
5843
6042
  if (2 === l) {
5844
6043
  const e = normalizeHue(t);
5845
- return !1 !== e && (isTokenDimension(t) && s.syntaxFlags.add(me.HasDimensionValues), e);
6044
+ return !1 !== e && (isTokenDimension(t) && s.syntaxFlags.add(Le.HasDimensionValues), e);
5846
6045
  }
5847
6046
  if (isTokenPercentage(t)) {
5848
- 3 !== l && s.syntaxFlags.add(me.HasPercentageValues);
6047
+ 3 !== l && s.syntaxFlags.add(Le.HasPercentageValues);
5849
6048
  let n = normalize(t[4].value, 1, 0, 100);
5850
6049
  return 1 === l ? n = normalize(t[4].value, 100 / 150, 0, 2147483647) : 3 === l && (n = normalize(t[4].value, 100, 0, 1)), [
5851
6050
  c$7.Number,
@@ -5859,7 +6058,7 @@ function normalize_LCH_ChannelValues(t, l, s) {
5859
6058
  ];
5860
6059
  }
5861
6060
  if (isTokenNumber(t)) {
5862
- 3 !== l && s.syntaxFlags.add(me.HasNumberValues);
6061
+ 3 !== l && s.syntaxFlags.add(Le.HasNumberValues);
5863
6062
  let n = normalize(t[4].value, 1, 0, 100);
5864
6063
  return 1 === l ? n = normalize(t[4].value, 1, 0, 2147483647) : 3 === l && (n = normalize(t[4].value, 1, 0, 1)), [
5865
6064
  c$7.Number,
@@ -5875,25 +6074,25 @@ function normalize_LCH_ChannelValues(t, l, s) {
5875
6074
  return !1;
5876
6075
  }
5877
6076
  function lch(e, a) {
5878
- return threeChannelSpaceSeparated(e, normalize_LCH_ChannelValues, he.LCH, [], a);
6077
+ return threeChannelSpaceSeparated(e, normalize_LCH_ChannelValues, De.LCH, [], a);
5879
6078
  }
5880
- const ye = /* @__PURE__ */ new Map();
5881
- for (const [e, a] of Object.entries(d$2)) ye.set(e, a);
6079
+ const Fe = /* @__PURE__ */ new Map();
6080
+ for (const [e, a] of Object.entries(G$1)) Fe.set(e, a);
5882
6081
  function namedColor(e) {
5883
- const a = ye.get(toLowerCaseAZ(e));
6082
+ const a = Fe.get(toLowerCaseAZ(e));
5884
6083
  return !!a && {
5885
- colorNotation: he.RGB,
6084
+ colorNotation: De.RGB,
5886
6085
  channels: [
5887
6086
  a[0] / 255,
5888
6087
  a[1] / 255,
5889
6088
  a[2] / 255
5890
6089
  ],
5891
6090
  alpha: 1,
5892
- syntaxFlags: new Set([me.ColorKeyword, me.NamedColor])
6091
+ syntaxFlags: /* @__PURE__ */ new Set([Le.ColorKeyword, Le.NamedColor])
5893
6092
  };
5894
6093
  }
5895
6094
  function normalize_OKLab_ChannelValues(t, l, s) {
5896
- if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(me.HasNoneKeywords), [
6095
+ if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(Le.HasNoneKeywords), [
5897
6096
  c$7.Number,
5898
6097
  "none",
5899
6098
  t[2],
@@ -5904,7 +6103,7 @@ function normalize_OKLab_ChannelValues(t, l, s) {
5904
6103
  }
5905
6104
  ];
5906
6105
  if (isTokenPercentage(t)) {
5907
- 3 !== l && s.syntaxFlags.add(me.HasPercentageValues);
6106
+ 3 !== l && s.syntaxFlags.add(Le.HasPercentageValues);
5908
6107
  let n = normalize(t[4].value, 100, 0, 1);
5909
6108
  return 1 === l || 2 === l ? n = normalize(t[4].value, 250, -2147483647, 2147483647) : 3 === l && (n = normalize(t[4].value, 100, 0, 1)), [
5910
6109
  c$7.Number,
@@ -5918,7 +6117,7 @@ function normalize_OKLab_ChannelValues(t, l, s) {
5918
6117
  ];
5919
6118
  }
5920
6119
  if (isTokenNumber(t)) {
5921
- 3 !== l && s.syntaxFlags.add(me.HasNumberValues);
6120
+ 3 !== l && s.syntaxFlags.add(Le.HasNumberValues);
5922
6121
  let n = normalize(t[4].value, 1, 0, 1);
5923
6122
  return 1 === l || 2 === l ? n = normalize(t[4].value, 1, -2147483647, 2147483647) : 3 === l && (n = normalize(t[4].value, 1, 0, 1)), [
5924
6123
  c$7.Number,
@@ -5934,10 +6133,10 @@ function normalize_OKLab_ChannelValues(t, l, s) {
5934
6133
  return !1;
5935
6134
  }
5936
6135
  function oklab(e, a) {
5937
- return threeChannelSpaceSeparated(e, normalize_OKLab_ChannelValues, he.OKLab, [], a);
6136
+ return threeChannelSpaceSeparated(e, normalize_OKLab_ChannelValues, De.OKLab, [], a);
5938
6137
  }
5939
6138
  function normalize_OKLCH_ChannelValues(t, l, s) {
5940
- if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(me.HasNoneKeywords), [
6139
+ if (isTokenIdent(t) && "none" === toLowerCaseAZ(t[4].value)) return s.syntaxFlags.add(Le.HasNoneKeywords), [
5941
6140
  c$7.Number,
5942
6141
  "none",
5943
6142
  t[2],
@@ -5949,10 +6148,10 @@ function normalize_OKLCH_ChannelValues(t, l, s) {
5949
6148
  ];
5950
6149
  if (2 === l) {
5951
6150
  const e = normalizeHue(t);
5952
- return !1 !== e && (isTokenDimension(t) && s.syntaxFlags.add(me.HasDimensionValues), e);
6151
+ return !1 !== e && (isTokenDimension(t) && s.syntaxFlags.add(Le.HasDimensionValues), e);
5953
6152
  }
5954
6153
  if (isTokenPercentage(t)) {
5955
- 3 !== l && s.syntaxFlags.add(me.HasPercentageValues);
6154
+ 3 !== l && s.syntaxFlags.add(Le.HasPercentageValues);
5956
6155
  let n = normalize(t[4].value, 100, 0, 1);
5957
6156
  return 1 === l ? n = normalize(t[4].value, 250, 0, 2147483647) : 3 === l && (n = normalize(t[4].value, 100, 0, 1)), [
5958
6157
  c$7.Number,
@@ -5966,7 +6165,7 @@ function normalize_OKLCH_ChannelValues(t, l, s) {
5966
6165
  ];
5967
6166
  }
5968
6167
  if (isTokenNumber(t)) {
5969
- 3 !== l && s.syntaxFlags.add(me.HasNumberValues);
6168
+ 3 !== l && s.syntaxFlags.add(Le.HasNumberValues);
5970
6169
  let n = normalize(t[4].value, 1, 0, 1);
5971
6170
  return 1 === l ? n = normalize(t[4].value, 1, 0, 2147483647) : 3 === l && (n = normalize(t[4].value, 1, 0, 1)), [
5972
6171
  c$7.Number,
@@ -5982,11 +6181,11 @@ function normalize_OKLCH_ChannelValues(t, l, s) {
5982
6181
  return !1;
5983
6182
  }
5984
6183
  function oklch(e, a) {
5985
- return threeChannelSpaceSeparated(e, normalize_OKLCH_ChannelValues, he.OKLCH, [], a);
6184
+ return threeChannelSpaceSeparated(e, normalize_OKLCH_ChannelValues, De.OKLCH, [], a);
5986
6185
  }
5987
6186
  function normalize_legacy_sRGB_ChannelValues(n, t, l) {
5988
6187
  if (isTokenPercentage(n)) {
5989
- 3 === t ? l.syntaxFlags.add(me.HasPercentageAlpha) : l.syntaxFlags.add(me.HasPercentageValues);
6188
+ 3 === t ? l.syntaxFlags.add(Le.HasPercentageAlpha) : l.syntaxFlags.add(Le.HasPercentageValues);
5990
6189
  const r = normalize(n[4].value, 100, 0, 1);
5991
6190
  return [
5992
6191
  c$7.Number,
@@ -6000,7 +6199,7 @@ function normalize_legacy_sRGB_ChannelValues(n, t, l) {
6000
6199
  ];
6001
6200
  }
6002
6201
  if (isTokenNumber(n)) {
6003
- 3 !== t && l.syntaxFlags.add(me.HasNumberValues);
6202
+ 3 !== t && l.syntaxFlags.add(Le.HasNumberValues);
6004
6203
  let r = normalize(n[4].value, 255, 0, 1);
6005
6204
  return 3 === t && (r = normalize(n[4].value, 1, 0, 1)), [
6006
6205
  c$7.Number,
@@ -6016,7 +6215,7 @@ function normalize_legacy_sRGB_ChannelValues(n, t, l) {
6016
6215
  return !1;
6017
6216
  }
6018
6217
  function normalize_modern_sRGB_ChannelValues(t, l, s) {
6019
- if (isTokenIdent(t) && "none" === t[4].value.toLowerCase()) return s.syntaxFlags.add(me.HasNoneKeywords), [
6218
+ if (isTokenIdent(t) && "none" === t[4].value.toLowerCase()) return s.syntaxFlags.add(Le.HasNoneKeywords), [
6020
6219
  c$7.Number,
6021
6220
  "none",
6022
6221
  t[2],
@@ -6027,7 +6226,7 @@ function normalize_modern_sRGB_ChannelValues(t, l, s) {
6027
6226
  }
6028
6227
  ];
6029
6228
  if (isTokenPercentage(t)) {
6030
- 3 !== l && s.syntaxFlags.add(me.HasPercentageValues);
6229
+ 3 !== l && s.syntaxFlags.add(Le.HasPercentageValues);
6031
6230
  let n = normalize(t[4].value, 100, -2147483647, 2147483647);
6032
6231
  return 3 === l && (n = normalize(t[4].value, 100, 0, 1)), [
6033
6232
  c$7.Number,
@@ -6041,7 +6240,7 @@ function normalize_modern_sRGB_ChannelValues(t, l, s) {
6041
6240
  ];
6042
6241
  }
6043
6242
  if (isTokenNumber(t)) {
6044
- 3 !== l && s.syntaxFlags.add(me.HasNumberValues);
6243
+ 3 !== l && s.syntaxFlags.add(Le.HasNumberValues);
6045
6244
  let n = normalize(t[4].value, 255, -2147483647, 2147483647);
6046
6245
  return 3 === l && (n = normalize(t[4].value, 1, 0, 1)), [
6047
6246
  c$7.Number,
@@ -6059,7 +6258,7 @@ function normalize_modern_sRGB_ChannelValues(t, l, s) {
6059
6258
  function rgb(e, a) {
6060
6259
  if (e.value.some((e) => isTokenNode(e) && isTokenComma(e.value))) {
6061
6260
  const a = rgbCommaSeparated(e);
6062
- if (!1 !== a) return (!a.syntaxFlags.has(me.HasNumberValues) || !a.syntaxFlags.has(me.HasPercentageValues)) && a;
6261
+ if (!1 !== a) return (!a.syntaxFlags.has(Le.HasNumberValues) || !a.syntaxFlags.has(Le.HasPercentageValues)) && a;
6063
6262
  } else {
6064
6263
  const n = rgbSpaceSeparated(e, a);
6065
6264
  if (!1 !== n) return n;
@@ -6067,16 +6266,16 @@ function rgb(e, a) {
6067
6266
  return !1;
6068
6267
  }
6069
6268
  function rgbCommaSeparated(e) {
6070
- return threeChannelLegacySyntax(e, normalize_legacy_sRGB_ChannelValues, he.RGB, [me.LegacyRGB]);
6269
+ return threeChannelLegacySyntax(e, normalize_legacy_sRGB_ChannelValues, De.RGB, [Le.LegacyRGB]);
6071
6270
  }
6072
6271
  function rgbSpaceSeparated(e, a) {
6073
- return threeChannelSpaceSeparated(e, normalize_modern_sRGB_ChannelValues, he.RGB, [], a);
6272
+ return threeChannelSpaceSeparated(e, normalize_modern_sRGB_ChannelValues, De.RGB, [], a);
6074
6273
  }
6075
- function XYZ_D50_to_sRGB_Gamut(e) {
6076
- const a = XYZ_D50_to_sRGB(e);
6274
+ function XYZ_D65_to_sRGB_Gamut(e) {
6275
+ const a = XYZ_D65_to_sRGB(e);
6077
6276
  if (inGamut(a)) return clip(a);
6078
6277
  let n = e;
6079
- return n = XYZ_D50_to_OKLCH(n), n[0] < 1e-6 && (n = [
6278
+ return n = XYZ_D65_to_OKLCH(n), n[0] < 1e-6 && (n = [
6080
6279
  0,
6081
6280
  0,
6082
6281
  0
@@ -6099,16 +6298,16 @@ function contrastColor(e, a) {
6099
6298
  if (!isWhitespaceNode(o) && !isCommentNode(o) && (n || (n = a(o), !n))) return !1;
6100
6299
  }
6101
6300
  if (!n) return !1;
6102
- n.channels = convertNaNToZero(n.channels), n.channels = XYZ_D50_to_sRGB_Gamut(colorData_to_XYZ_D50(n).channels), n.colorNotation = he.sRGB;
6301
+ n.channels = convertNaNToZero(n.channels), n.channels = XYZ_D65_to_sRGB_Gamut(colorData_to_XYZ_D65(n).channels), n.colorNotation = De.sRGB;
6103
6302
  const r = {
6104
- colorNotation: he.RGB,
6303
+ colorNotation: De.RGB,
6105
6304
  channels: [
6106
6305
  0,
6107
6306
  0,
6108
6307
  0
6109
6308
  ],
6110
6309
  alpha: 1,
6111
- syntaxFlags: new Set([me.ContrastColor, me.Experimental])
6310
+ syntaxFlags: /* @__PURE__ */ new Set([Le.ContrastColor, Le.Experimental])
6112
6311
  };
6113
6312
  return r.channels = contrast_ratio_wcag_2_1(n.channels, [
6114
6313
  1,
@@ -6129,9 +6328,9 @@ function contrastColor(e, a) {
6129
6328
  ], r;
6130
6329
  }
6131
6330
  function alpha(e, a) {
6132
- let r, s, u = !1, i = !1, c = !1;
6331
+ let r, s, c = !1, u = !1, i = !1;
6133
6332
  const h = {
6134
- colorNotation: he.sRGB,
6333
+ colorNotation: De.sRGB,
6135
6334
  channels: [
6136
6335
  0,
6137
6336
  0,
@@ -6143,7 +6342,7 @@ function alpha(e, a) {
6143
6342
  for (let m = 0; m < e.value.length; m++) {
6144
6343
  let N = e.value[m];
6145
6344
  if (isWhitespaceNode(N) || isCommentNode(N)) for (; isWhitespaceNode(e.value[m + 1]) || isCommentNode(e.value[m + 1]);) m++;
6146
- else if (c && !u && !i && isTokenNode(N) && isTokenDelim(N.value) && "/" === N.value[4].value) u = !0;
6345
+ else if (i && !c && !u && isTokenNode(N) && isTokenDelim(N.value) && "/" === N.value[4].value) c = !0;
6147
6346
  else {
6148
6347
  if (isFunctionNode(N) && Q$1.has(toLowerCaseAZ(N.getName()))) {
6149
6348
  const [[e]] = calcFromComponentValues([[N]], {
@@ -6156,40 +6355,40 @@ function alpha(e, a) {
6156
6355
  if (!e || !isTokenNode(e) || !isTokenNumeric(e.value)) return !1;
6157
6356
  Number.isNaN(e.value[4].value) && (e.value[4].value = 0), N = e;
6158
6357
  }
6159
- if (u || i || !isTokenNode(N) || !isTokenIdent(N.value) || "from" !== toLowerCaseAZ(N.value[4].value)) {
6160
- if (!u) return !1;
6161
- if (i) return !1;
6358
+ if (c || u || !isTokenNode(N) || !isTokenIdent(N.value) || "from" !== toLowerCaseAZ(N.value[4].value)) {
6359
+ if (!c) return !1;
6360
+ if (u) return !1;
6162
6361
  if (isTokenNode(N)) {
6163
6362
  if (isTokenIdent(N.value) && "alpha" === toLowerCaseAZ(N.value[4].value) && r && r.has("alpha")) {
6164
- h.alpha = r.get("alpha")[4].value, i = !0;
6363
+ h.alpha = r.get("alpha")[4].value, u = !0;
6165
6364
  continue;
6166
6365
  }
6167
6366
  const e = normalize_Color_ChannelValues(N.value, 3, h);
6168
6367
  if (!e || !isTokenNumber(e)) return !1;
6169
- h.alpha = e[4].value, i = !0;
6368
+ h.alpha = e[4].value, u = !0;
6170
6369
  continue;
6171
6370
  }
6172
6371
  if (isFunctionNode(N)) {
6173
6372
  h.alpha = replaceComponentValues$1([[N]], (e) => {
6174
6373
  if (isTokenNode(e) && isTokenIdent(e.value) && "alpha" === toLowerCaseAZ(e.value[4].value) && r && r.has("alpha")) return new TokenNode(r.get("alpha"));
6175
- })[0][0], i = !0;
6374
+ })[0][0], u = !0;
6176
6375
  continue;
6177
6376
  }
6178
6377
  return !1;
6179
6378
  }
6180
- if (c) return !1;
6379
+ if (i) return !1;
6181
6380
  for (; isWhitespaceNode(e.value[m + 1]) || isCommentNode(e.value[m + 1]);) m++;
6182
- if (m++, N = e.value[m], c = a(N), !1 === c) return !1;
6183
- r = normalizeRelativeColorDataChannels(c), s = noneToZeroInRelativeColorDataChannels(r), h.syntaxFlags = new Set(c.syntaxFlags), h.syntaxFlags.add(me.RelativeAlphaSyntax), h.channels = [...c.channels], h.colorNotation = c.colorNotation, h.alpha = c.alpha;
6381
+ if (m++, N = e.value[m], i = a(N), !1 === i) return !1;
6382
+ r = normalizeRelativeColorDataChannels(i), s = noneToZeroInRelativeColorDataChannels(r), h.syntaxFlags = new Set(i.syntaxFlags), h.syntaxFlags.add(Le.RelativeAlphaSyntax), h.channels = [...i.channels], h.colorNotation = i.colorNotation, h.alpha = i.alpha;
6184
6383
  }
6185
6384
  }
6186
6385
  return !!r && h;
6187
6386
  }
6188
- function XYZ_D50_to_P3_Gamut(e) {
6189
- const a = XYZ_D50_to_P3(e);
6387
+ function XYZ_D65_to_P3_Gamut(e) {
6388
+ const a = XYZ_D65_to_P3(e);
6190
6389
  if (inGamut(a)) return clip(a);
6191
6390
  let n = e;
6192
- return n = XYZ_D50_to_OKLCH(n), n[0] < 1e-6 && (n = [
6391
+ return n = XYZ_D65_to_OKLCH(n), n[0] < 1e-6 && (n = [
6193
6392
  0,
6194
6393
  0,
6195
6394
  0
@@ -6264,21 +6463,21 @@ function serializeWithAlpha(n, r, o, t) {
6264
6463
  function serializeP3(n, r = !0) {
6265
6464
  n.channels = convertPowerlessComponentsToZeroValuesForDisplay(n.channels, n.colorNotation);
6266
6465
  let o = n.channels.map((e) => Number.isNaN(e) ? 0 : e);
6267
- r ? o = XYZ_D50_to_P3_Gamut(colorData_to_XYZ_D50(n).channels) : n.colorNotation !== he.Display_P3 && (o = XYZ_D50_to_P3(colorData_to_XYZ_D50(n).channels));
6268
- const t = r ? Math.min(1, Math.max(0, toPrecision(o[0], 6))) : toPrecision(o[0], 6), l = r ? Math.min(1, Math.max(0, toPrecision(o[1], 6))) : toPrecision(o[1], 6), s = r ? Math.min(1, Math.max(0, toPrecision(o[2], 6))) : toPrecision(o[2], 6), u = [
6466
+ r ? o = XYZ_D65_to_P3_Gamut(colorData_to_XYZ_D65(n).channels) : n.colorNotation !== De.Display_P3 && (o = XYZ_D65_to_P3(colorData_to_XYZ_D65(n).channels));
6467
+ const t = r ? Math.min(1, Math.max(0, toPrecision(o[0], 6))) : toPrecision(o[0], 6), l = r ? Math.min(1, Math.max(0, toPrecision(o[1], 6))) : toPrecision(o[1], 6), s = r ? Math.min(1, Math.max(0, toPrecision(o[2], 6))) : toPrecision(o[2], 6), c = [
6269
6468
  c$7.Function,
6270
6469
  "color(",
6271
6470
  -1,
6272
6471
  -1,
6273
6472
  { value: "color" }
6274
- ], i = [
6473
+ ], u = [
6275
6474
  c$7.Whitespace,
6276
6475
  " ",
6277
6476
  -1,
6278
6477
  -1,
6279
6478
  void 0
6280
6479
  ];
6281
- return serializeWithAlpha(n, u, i, [
6480
+ return serializeWithAlpha(n, c, u, [
6282
6481
  new TokenNode([
6283
6482
  c$7.Ident,
6284
6483
  "display-p3",
@@ -6286,7 +6485,7 @@ function serializeP3(n, r = !0) {
6286
6485
  -1,
6287
6486
  { value: "display-p3" }
6288
6487
  ]),
6289
- new WhitespaceNode([i]),
6488
+ new WhitespaceNode([u]),
6290
6489
  new TokenNode([
6291
6490
  c$7.Number,
6292
6491
  t.toString(),
@@ -6297,7 +6496,7 @@ function serializeP3(n, r = !0) {
6297
6496
  type: a$8.Number
6298
6497
  }
6299
6498
  ]),
6300
- new WhitespaceNode([i]),
6499
+ new WhitespaceNode([u]),
6301
6500
  new TokenNode([
6302
6501
  c$7.Number,
6303
6502
  l.toString(),
@@ -6308,7 +6507,7 @@ function serializeP3(n, r = !0) {
6308
6507
  type: a$8.Number
6309
6508
  }
6310
6509
  ]),
6311
- new WhitespaceNode([i]),
6510
+ new WhitespaceNode([u]),
6312
6511
  new TokenNode([
6313
6512
  c$7.Number,
6314
6513
  s.toString(),
@@ -6323,20 +6522,20 @@ function serializeP3(n, r = !0) {
6323
6522
  }
6324
6523
  function serializeRGB(n, r = !0) {
6325
6524
  let o;
6326
- n.channels = convertPowerlessComponentsToZeroValuesForDisplay(n.channels, n.colorNotation), o = r ? XYZ_D50_to_sRGB_Gamut(colorData_to_XYZ_D50(n).channels) : XYZ_D50_to_sRGB(colorData_to_XYZ_D50(n).channels);
6327
- const t = Math.min(255, Math.max(0, Math.round(255 * toPrecision(o[0])))), l = Math.min(255, Math.max(0, Math.round(255 * toPrecision(o[1])))), s = Math.min(255, Math.max(0, Math.round(255 * toPrecision(o[2])))), u = [
6525
+ n.channels = convertPowerlessComponentsToZeroValuesForDisplay(n.channels, n.colorNotation), o = r ? XYZ_D65_to_sRGB_Gamut(colorData_to_XYZ_D65(n).channels) : XYZ_D65_to_sRGB(colorData_to_XYZ_D65(n).channels);
6526
+ const t = Math.min(255, Math.max(0, Math.round(255 * toPrecision(o[0])))), l = Math.min(255, Math.max(0, Math.round(255 * toPrecision(o[1])))), s = Math.min(255, Math.max(0, Math.round(255 * toPrecision(o[2])))), c = [
6328
6527
  c$7.CloseParen,
6329
6528
  ")",
6330
6529
  -1,
6331
6530
  -1,
6332
6531
  void 0
6333
- ], i = [
6532
+ ], u = [
6334
6533
  c$7.Whitespace,
6335
6534
  " ",
6336
6535
  -1,
6337
6536
  -1,
6338
6537
  void 0
6339
- ], c = [
6538
+ ], i = [
6340
6539
  c$7.Comma,
6341
6540
  ",",
6342
6541
  -1,
@@ -6353,8 +6552,8 @@ function serializeRGB(n, r = !0) {
6353
6552
  type: a$8.Integer
6354
6553
  }
6355
6554
  ]),
6356
- new TokenNode(c),
6357
- new WhitespaceNode([i]),
6555
+ new TokenNode(i),
6556
+ new WhitespaceNode([u]),
6358
6557
  new TokenNode([
6359
6558
  c$7.Number,
6360
6559
  l.toString(),
@@ -6365,8 +6564,8 @@ function serializeRGB(n, r = !0) {
6365
6564
  type: a$8.Integer
6366
6565
  }
6367
6566
  ]),
6368
- new TokenNode(c),
6369
- new WhitespaceNode([i]),
6567
+ new TokenNode(i),
6568
+ new WhitespaceNode([u]),
6370
6569
  new TokenNode([
6371
6570
  c$7.Number,
6372
6571
  s.toString(),
@@ -6386,16 +6585,16 @@ function serializeRGB(n, r = !0) {
6386
6585
  -1,
6387
6586
  -1,
6388
6587
  { value: "rgb" }
6389
- ], u, h) : new FunctionNode([
6588
+ ], c, h) : new FunctionNode([
6390
6589
  c$7.Function,
6391
6590
  "rgba(",
6392
6591
  -1,
6393
6592
  -1,
6394
6593
  { value: "rgba" }
6395
- ], u, [
6594
+ ], c, [
6396
6595
  ...h,
6397
- new TokenNode(c),
6398
- new WhitespaceNode([i]),
6596
+ new TokenNode(i),
6597
+ new WhitespaceNode([u]),
6399
6598
  new TokenNode([
6400
6599
  c$7.Number,
6401
6600
  toPrecision(r, 4).toString(),
@@ -6414,29 +6613,29 @@ function serializeRGB(n, r = !0) {
6414
6613
  -1,
6415
6614
  -1,
6416
6615
  { value: "rgba" }
6417
- ], u, [
6616
+ ], c, [
6418
6617
  ...h,
6419
- new TokenNode(c),
6420
- new WhitespaceNode([i]),
6618
+ new TokenNode(i),
6619
+ new WhitespaceNode([u]),
6421
6620
  n.alpha
6422
6621
  ]);
6423
6622
  }
6424
6623
  function serializeHSL(n, r = !0) {
6425
6624
  let o;
6426
- n.channels = convertPowerlessComponentsToZeroValuesForDisplay(n.channels, n.colorNotation), o = XYZ_D50_to_HSL(r ? sRGB_to_XYZ_D50(XYZ_D50_to_sRGB_Gamut(colorData_to_XYZ_D50(n).channels)) : colorData_to_XYZ_D50(n).channels), o = o.map((e) => Number.isNaN(e) ? 0 : e);
6427
- const t = Math.min(360, Math.max(0, Math.round(toPrecision(o[0])))), l = Math.min(100, Math.max(0, Math.round(toPrecision(o[1])))), s = Math.min(100, Math.max(0, Math.round(toPrecision(o[2])))), u = [
6625
+ n.channels = convertPowerlessComponentsToZeroValuesForDisplay(n.channels, n.colorNotation), o = XYZ_D65_to_HSL(r ? sRGB_to_XYZ_D65(XYZ_D65_to_sRGB_Gamut(colorData_to_XYZ_D65(n).channels)) : colorData_to_XYZ_D65(n).channels), o = o.map((e) => Number.isNaN(e) ? 0 : e);
6626
+ const t = Math.min(360, Math.max(0, Math.round(toPrecision(o[0])))) % 360, l = Math.min(100, Math.max(0, Math.round(toPrecision(o[1])))), s = Math.min(100, Math.max(0, Math.round(toPrecision(o[2])))), c = [
6428
6627
  c$7.CloseParen,
6429
6628
  ")",
6430
6629
  -1,
6431
6630
  -1,
6432
6631
  void 0
6433
- ], i = [
6632
+ ], u = [
6434
6633
  c$7.Whitespace,
6435
6634
  " ",
6436
6635
  -1,
6437
6636
  -1,
6438
6637
  void 0
6439
- ], c = [
6638
+ ], i = [
6440
6639
  c$7.Comma,
6441
6640
  ",",
6442
6641
  -1,
@@ -6453,8 +6652,8 @@ function serializeHSL(n, r = !0) {
6453
6652
  type: a$8.Integer
6454
6653
  }
6455
6654
  ]),
6456
- new TokenNode(c),
6457
- new WhitespaceNode([i]),
6655
+ new TokenNode(i),
6656
+ new WhitespaceNode([u]),
6458
6657
  new TokenNode([
6459
6658
  c$7.Percentage,
6460
6659
  l.toString() + "%",
@@ -6462,8 +6661,8 @@ function serializeHSL(n, r = !0) {
6462
6661
  -1,
6463
6662
  { value: o[1] }
6464
6663
  ]),
6465
- new TokenNode(c),
6466
- new WhitespaceNode([i]),
6664
+ new TokenNode(i),
6665
+ new WhitespaceNode([u]),
6467
6666
  new TokenNode([
6468
6667
  c$7.Percentage,
6469
6668
  s.toString() + "%",
@@ -6480,16 +6679,16 @@ function serializeHSL(n, r = !0) {
6480
6679
  -1,
6481
6680
  -1,
6482
6681
  { value: "hsl" }
6483
- ], u, h) : new FunctionNode([
6682
+ ], c, h) : new FunctionNode([
6484
6683
  c$7.Function,
6485
6684
  "hsla(",
6486
6685
  -1,
6487
6686
  -1,
6488
6687
  { value: "hsla" }
6489
- ], u, [
6688
+ ], c, [
6490
6689
  ...h,
6491
- new TokenNode(c),
6492
- new WhitespaceNode([i]),
6690
+ new TokenNode(i),
6691
+ new WhitespaceNode([u]),
6493
6692
  new TokenNode([
6494
6693
  c$7.Number,
6495
6694
  toPrecision(r, 4).toString(),
@@ -6508,10 +6707,10 @@ function serializeHSL(n, r = !0) {
6508
6707
  -1,
6509
6708
  -1,
6510
6709
  { value: "hsla" }
6511
- ], u, [
6710
+ ], c, [
6512
6711
  ...h,
6513
- new TokenNode(c),
6514
- new WhitespaceNode([i]),
6712
+ new TokenNode(i),
6713
+ new WhitespaceNode([u]),
6515
6714
  n.alpha
6516
6715
  ]);
6517
6716
  }
@@ -6521,7 +6720,7 @@ function color(e) {
6521
6720
  case "rgba": return rgb(e, color);
6522
6721
  case "hsl":
6523
6722
  case "hsla": return hsl(e, color);
6524
- case "hwb": return a = color, threeChannelSpaceSeparated(e, normalize_HWB_ChannelValues, he.HWB, [], a);
6723
+ case "hwb": return a = color, threeChannelSpaceSeparated(e, normalize_HWB_ChannelValues, De.HWB, [], a);
6525
6724
  case "lab": return lab(e, color);
6526
6725
  case "lch": return lch(e, color);
6527
6726
  case "oklab": return oklab(e, color);
@@ -6537,14 +6736,14 @@ function color(e) {
6537
6736
  if (isTokenIdent(e.value)) {
6538
6737
  const a = namedColor(e.value[4].value);
6539
6738
  return !1 !== a ? a : "transparent" === toLowerCaseAZ(e.value[4].value) && {
6540
- colorNotation: he.RGB,
6739
+ colorNotation: De.RGB,
6541
6740
  channels: [
6542
6741
  0,
6543
6742
  0,
6544
6743
  0
6545
6744
  ],
6546
6745
  alpha: 0,
6547
- syntaxFlags: new Set([me.ColorKeyword])
6746
+ syntaxFlags: /* @__PURE__ */ new Set([Le.ColorKeyword])
6548
6747
  };
6549
6748
  }
6550
6749
  }
@@ -6775,7 +6974,7 @@ function protectDynamicColorMixAlpha(css, options = {}) {
6775
6974
  }
6776
6975
  //#endregion
6777
6976
  //#region src/compat/mini-program-css/at-rules.ts
6778
- const MINI_PROGRAM_UNSUPPORTED_AT_RULES = new Set(["property", "supports"]);
6977
+ const MINI_PROGRAM_UNSUPPORTED_AT_RULES = /* @__PURE__ */ new Set(["property", "supports"]);
6779
6978
  function removeAtRulesByScan(css, names) {
6780
6979
  let index = 0;
6781
6980
  let result = "";
@@ -6841,7 +7040,7 @@ function removeUnsupportedCascadeLayers(root) {
6841
7040
  }
6842
7041
  //#endregion
6843
7042
  //#region src/compat/mini-program-prefixes.ts
6844
- const PRESERVED_WEBKIT_DECLARATION_PROPS = new Set([
7043
+ const PRESERVED_WEBKIT_DECLARATION_PROPS = /* @__PURE__ */ new Set([
6845
7044
  "-webkit-box-orient",
6846
7045
  "-webkit-line-clamp",
6847
7046
  "-webkit-overflow-scrolling",
@@ -6850,8 +7049,8 @@ const PRESERVED_WEBKIT_DECLARATION_PROPS = new Set([
6850
7049
  "-webkit-text-stroke-color",
6851
7050
  "-webkit-text-stroke-width"
6852
7051
  ]);
6853
- const PRESERVED_WEBKIT_VALUE_DECLARATIONS = new Map([["display", new Set(["-webkit-box"])], ["-webkit-background-clip", new Set(["text"])]]);
6854
- const TRANSITION_PROPS = new Set(["transition", "transition-property"]);
7052
+ const PRESERVED_WEBKIT_VALUE_DECLARATIONS = /* @__PURE__ */ new Map([["display", /* @__PURE__ */ new Set(["-webkit-box"])], ["-webkit-background-clip", /* @__PURE__ */ new Set(["text"])]]);
7053
+ const TRANSITION_PROPS = /* @__PURE__ */ new Set(["transition", "transition-property"]);
6855
7054
  function splitTopLevelCommaList$1(value) {
6856
7055
  const parts = [];
6857
7056
  let start = 0;
@@ -7091,13 +7290,13 @@ const RADIUS_VALUE_RE = /\b([+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\s*(r?px)
7091
7290
  const SCIENTIFIC_NOTATION_RE = /e/i;
7092
7291
  const TW_VAR_FUNCTION_RE = /var\(\s*(--tw-[\w-]+)\b/g;
7093
7292
  const TW_CONTENT_VAR_RE$1 = /var\(\s*--tw-content\b/;
7094
- const TW_GRADIENT_POSITION_PROPS = new Set([
7293
+ const TW_GRADIENT_POSITION_PROPS = /* @__PURE__ */ new Set([
7095
7294
  "--tw-gradient-from-position",
7096
7295
  "--tw-gradient-via-position",
7097
7296
  "--tw-gradient-to-position"
7098
7297
  ]);
7099
- const UNSUPPORTED_CUSTOM_PROPERTY_DEFAULT_PROPS = new Set(["--tw-gradient-via-stops"]);
7100
- const DEFAULT_VARIABLE_SCOPE_SELECTORS = new Set([
7298
+ const UNSUPPORTED_CUSTOM_PROPERTY_DEFAULT_PROPS = /* @__PURE__ */ new Set(["--tw-gradient-via-stops"]);
7299
+ const DEFAULT_VARIABLE_SCOPE_SELECTORS = /* @__PURE__ */ new Set([
7101
7300
  "*",
7102
7301
  ":root",
7103
7302
  ":host",
@@ -7310,7 +7509,7 @@ function appendTailwindcssV4MiniProgramGradientRules(root) {
7310
7509
  const selector = rule.selector.trim();
7311
7510
  const values = existingBackgroundImages.get(selector);
7312
7511
  if (values) values.add(normalizeDeclarationValue(decl.value));
7313
- else existingBackgroundImages.set(selector, new Set([normalizeDeclarationValue(decl.value)]));
7512
+ else existingBackgroundImages.set(selector, /* @__PURE__ */ new Set([normalizeDeclarationValue(decl.value)]));
7314
7513
  });
7315
7514
  if (classSelector) {
7316
7515
  const gradientPositionDecl = rule.nodes.find((node) => {
@@ -7402,7 +7601,7 @@ function appendTailwindcssV4MiniProgramGradientRules(root) {
7402
7601
  function appendGradientRule(selector, value) {
7403
7602
  const normalizedValue = normalizeDeclarationValue(value);
7404
7603
  if (existingBackgroundImages.get(selector)?.has(normalizedValue)) return;
7405
- existingBackgroundImages.set(selector, new Set([...existingBackgroundImages.get(selector) ?? [], normalizedValue]));
7604
+ existingBackgroundImages.set(selector, /* @__PURE__ */ new Set([...existingBackgroundImages.get(selector) ?? [], normalizedValue]));
7406
7605
  root.append(rule({
7407
7606
  selector,
7408
7607
  nodes: [new Declaration({
@@ -7616,7 +7815,7 @@ function removeTailwindGenerationDirectives(root) {
7616
7815
  //#region src/compat/mini-program-css/selectors.ts
7617
7816
  const MINI_PROGRAM_THEME_SCOPE_SELECTOR = ":host,page,.tw-root,wx-root-portal-content";
7618
7817
  const MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR = "view,text,::after,::before";
7619
- const MINI_PROGRAM_ELEMENT_SCOPE_SELECTORS = new Set([
7818
+ const MINI_PROGRAM_ELEMENT_SCOPE_SELECTORS = /* @__PURE__ */ new Set([
7620
7819
  "view",
7621
7820
  "text",
7622
7821
  ":before",
@@ -7624,7 +7823,7 @@ const MINI_PROGRAM_ELEMENT_SCOPE_SELECTORS = new Set([
7624
7823
  "::before",
7625
7824
  "::after"
7626
7825
  ]);
7627
- const MINI_PROGRAM_NATIVE_ELEMENT_SELECTORS = new Set([
7826
+ const MINI_PROGRAM_NATIVE_ELEMENT_SELECTORS = /* @__PURE__ */ new Set([
7628
7827
  ...MINI_PROGRAM_ELEMENT_SCOPE_SELECTORS,
7629
7828
  "button",
7630
7829
  "input",
@@ -7633,8 +7832,8 @@ const MINI_PROGRAM_NATIVE_ELEMENT_SELECTORS = new Set([
7633
7832
  "video",
7634
7833
  "audio"
7635
7834
  ]);
7636
- const MINI_PROGRAM_PREFLIGHT_SELECTORS = new Set(["*", ...MINI_PROGRAM_ELEMENT_SCOPE_SELECTORS]);
7637
- const MINI_PROGRAM_THEME_SCOPE_SELECTORS = new Set([
7835
+ const MINI_PROGRAM_PREFLIGHT_SELECTORS = /* @__PURE__ */ new Set(["*", ...MINI_PROGRAM_ELEMENT_SCOPE_SELECTORS]);
7836
+ const MINI_PROGRAM_THEME_SCOPE_SELECTORS = /* @__PURE__ */ new Set([
7638
7837
  ":host",
7639
7838
  ":root",
7640
7839
  "page",
@@ -7643,7 +7842,7 @@ const MINI_PROGRAM_THEME_SCOPE_SELECTORS = new Set([
7643
7842
  ]);
7644
7843
  const SPECIFICITY_PLACEHOLDER_SUFFIXES = [":not(#n)", ":not(#\\#)"];
7645
7844
  const ROOT_SPECIFICITY_PLACEHOLDER_SUFFIXES = [":not(.does-not-exist)"];
7646
- const MINI_PROGRAM_UNSUPPORTED_BROWSER_SELECTORS = new Set([
7845
+ const MINI_PROGRAM_UNSUPPORTED_BROWSER_SELECTORS = /* @__PURE__ */ new Set([
7647
7846
  ":-moz-focusring",
7648
7847
  ":-moz-ui-invalid",
7649
7848
  "::-webkit-calendar-picker-indicator",
@@ -7665,7 +7864,7 @@ const MINI_PROGRAM_UNSUPPORTED_BROWSER_SELECTORS = new Set([
7665
7864
  "::placeholder",
7666
7865
  "[hidden]:where(:not([hidden='until-found']))"
7667
7866
  ]);
7668
- const MINI_PROGRAM_UNSUPPORTED_BROWSER_TAG_SELECTORS = new Set([
7867
+ const MINI_PROGRAM_UNSUPPORTED_BROWSER_TAG_SELECTORS = /* @__PURE__ */ new Set([
7669
7868
  "a",
7670
7869
  "abbr:where([title])",
7671
7870
  "audio",
@@ -7710,7 +7909,7 @@ const MINI_PROGRAM_UNSUPPORTED_BROWSER_TAG_SELECTORS = new Set([
7710
7909
  "ul",
7711
7910
  "video"
7712
7911
  ]);
7713
- const MINI_PROGRAM_UNSUPPORTED_BROWSER_PREFLIGHT_SELECTOR_PARTS = new Set([...MINI_PROGRAM_UNSUPPORTED_BROWSER_TAG_SELECTORS, "::file-selector-button"]);
7912
+ const MINI_PROGRAM_UNSUPPORTED_BROWSER_PREFLIGHT_SELECTOR_PARTS = /* @__PURE__ */ new Set([...MINI_PROGRAM_UNSUPPORTED_BROWSER_TAG_SELECTORS, "::file-selector-button"]);
7714
7913
  function normalizeSelector$2(selector) {
7715
7914
  return selector.trim().replace(/\s+/g, "");
7716
7915
  }
@@ -7742,7 +7941,7 @@ function isMiniProgramThemeScopeSelector(selectors) {
7742
7941
  }
7743
7942
  //#endregion
7744
7943
  //#region src/compat/mini-program-css/predicates.ts
7745
- const PREFLIGHT_RESET_PROPS = new Set([
7944
+ const PREFLIGHT_RESET_PROPS = /* @__PURE__ */ new Set([
7746
7945
  "box-sizing",
7747
7946
  "border",
7748
7947
  "border-width",
@@ -7753,7 +7952,7 @@ const PREFLIGHT_RESET_PROPS = new Set([
7753
7952
  ]);
7754
7953
  const PSEUDO_CONTENT_SELECTOR_RE = /^(?:::before|::after|:before|:after)(?:,(?:::before|::after|:before|:after))*$/;
7755
7954
  const TW_CONTENT_VAR_RE = /var\(\s*--tw-content\b/;
7756
- const BROWSER_PREFLIGHT_SINGLE_ELEMENT_DECLARATIONS = new Map([["button", new Set(["appearance:button", "-moz-appearance:button"])], ["textarea", new Set(["resize:vertical"])]]);
7955
+ const BROWSER_PREFLIGHT_SINGLE_ELEMENT_DECLARATIONS = /* @__PURE__ */ new Map([["button", /* @__PURE__ */ new Set(["appearance:button", "-moz-appearance:button"])], ["textarea", /* @__PURE__ */ new Set(["resize:vertical"])]]);
7757
7956
  function hasTailwindPreflightDeclaration(rule) {
7758
7957
  let hasTailwindVar = false;
7759
7958
  let hasResetProp = false;
@@ -7914,7 +8113,7 @@ function mergeEquivalentHoistedRules(rules) {
7914
8113
  }
7915
8114
  //#endregion
7916
8115
  //#region src/compat/mini-program-css/preflight.ts
7917
- const MINI_PROGRAM_PSEUDO_CONTENT_SELECTORS = new Set(["::before", "::after"]);
8116
+ const MINI_PROGRAM_PSEUDO_CONTENT_SELECTORS = /* @__PURE__ */ new Set(["::before", "::after"]);
7918
8117
  function applyConfiguredPreflightDeclarations(rule, cssPreflight) {
7919
8118
  if (!cssPreflight || typeof cssPreflight !== "object") return;
7920
8119
  const configuredProps = new Set(Object.keys(cssPreflight));
@@ -8024,7 +8223,7 @@ function removeRootSpecificityPlaceholders(root) {
8024
8223
  function isEffectivelyEmptyContainer(container) {
8025
8224
  return !container.nodes || container.nodes.every((node) => node.type === "comment");
8026
8225
  }
8027
- function removeEmptyAtRules$1(root) {
8226
+ function removeEmptyAtRules$2(root) {
8028
8227
  root.walkAtRules((atRule) => {
8029
8228
  if (isEffectivelyEmptyContainer(atRule)) atRule.remove();
8030
8229
  });
@@ -8193,7 +8392,7 @@ function finalizeMiniProgramCssRoot(root, options = {}) {
8193
8392
  }));
8194
8393
  const themeRule = collectThemeVariableRule(root, options);
8195
8394
  insertHoistedRules(root, mergeEquivalentHoistedRules(themeRule ? [...preflightRules, themeRule] : preflightRules), hoistAnchor);
8196
- removeEmptyAtRules$1(root);
8395
+ removeEmptyAtRules$2(root);
8197
8396
  }
8198
8397
  function hoistTailwindPreflightBase(css) {
8199
8398
  try {
@@ -8445,6 +8644,110 @@ function normalizeTailwindcssWebRpxDeclarations(root, options) {
8445
8644
  return normalized || converted;
8446
8645
  }
8447
8646
  //#endregion
8647
+ //#region src/compat/web-css.ts
8648
+ const disabledFeatures = {
8649
+ theme: false,
8650
+ layer: false,
8651
+ property: false,
8652
+ oklch: false,
8653
+ colorFunctions: false,
8654
+ supports: false
8655
+ };
8656
+ const legacyWebFeatures = {
8657
+ theme: true,
8658
+ layer: true,
8659
+ property: true,
8660
+ oklch: true,
8661
+ colorFunctions: true,
8662
+ supports: true
8663
+ };
8664
+ function normalizeWebCssCompatOptionsObject(options) {
8665
+ const preset = options.preset ?? "legacy-web";
8666
+ return {
8667
+ preset,
8668
+ features: {
8669
+ ...preset === "legacy-web" ? legacyWebFeatures : disabledFeatures,
8670
+ ...options.features
8671
+ }
8672
+ };
8673
+ }
8674
+ function normalizeWebCssCompatOptions(options) {
8675
+ if (options === true) return normalizeWebCssCompatOptionsObject({ preset: "legacy-web" });
8676
+ if (!options) return {
8677
+ preset: "off",
8678
+ features: disabledFeatures
8679
+ };
8680
+ return normalizeWebCssCompatOptionsObject(options);
8681
+ }
8682
+ function isWebCssCompatEnabled(options) {
8683
+ return Object.values(options.features).some(Boolean);
8684
+ }
8685
+ function collectCustomPropertyValues(root) {
8686
+ const values = /* @__PURE__ */ new Map();
8687
+ root.walkDecls((decl) => {
8688
+ if (decl.prop.startsWith("--")) values.set(decl.prop, decl.value.trim());
8689
+ });
8690
+ return values;
8691
+ }
8692
+ function removeRegisteredCustomProperties(root) {
8693
+ root.walkAtRules("property", (atRule) => {
8694
+ atRule.remove();
8695
+ });
8696
+ }
8697
+ function unwrapThemeAtRules(root) {
8698
+ root.walkAtRules("theme", (atRule) => {
8699
+ if (atRule.nodes && atRule.nodes.length > 0) {
8700
+ const rootNodes = [];
8701
+ const hoistedNodes = [];
8702
+ for (const node of atRule.nodes) if (node.type === "decl" || node.type === "comment") rootNodes.push(node.clone());
8703
+ else hoistedNodes.push(node.clone());
8704
+ const replacements = [...rootNodes.length > 0 ? [postcss$1.rule({
8705
+ selector: ":root",
8706
+ nodes: rootNodes
8707
+ })] : [], ...hoistedNodes];
8708
+ atRule.replaceWith(...replacements);
8709
+ } else atRule.remove();
8710
+ });
8711
+ }
8712
+ function normalizeModernColorDeclarations(root, features) {
8713
+ if (!features.oklch && !features.colorFunctions) return;
8714
+ const customPropertyValues = collectCustomPropertyValues(root);
8715
+ root.walkDecls((decl) => {
8716
+ const normalized = normalizeModernColorValue(decl.value, customPropertyValues);
8717
+ if (!normalized.changed) return;
8718
+ if (!features.colorFunctions && !/oklch|oklab/i.test(decl.value)) return;
8719
+ decl.value = normalized.value;
8720
+ });
8721
+ }
8722
+ function removeModernColorSupports(root) {
8723
+ root.walkAtRules("supports", (atRule) => {
8724
+ if (!/color-mix|oklch|oklab|lab|lch|display-p3/i.test(atRule.params)) return;
8725
+ if (atRule.nodes && atRule.nodes.length > 0) atRule.replaceWith(...atRule.nodes);
8726
+ else atRule.remove();
8727
+ });
8728
+ }
8729
+ function removeEmptyAtRules$1(root) {
8730
+ root.walkAtRules((atRule) => {
8731
+ if (atRule.nodes && atRule.nodes.length === 0) atRule.remove();
8732
+ });
8733
+ }
8734
+ function transformWebCssCompat(css, options) {
8735
+ const normalized = normalizeWebCssCompatOptions(options);
8736
+ if (!isWebCssCompatEnabled(normalized)) return css;
8737
+ try {
8738
+ const root = postcss$1.parse(css);
8739
+ if (normalized.features.theme) unwrapThemeAtRules(root);
8740
+ if (normalized.features.layer) removeUnsupportedCascadeLayers(root);
8741
+ if (normalized.features.property) removeRegisteredCustomProperties(root);
8742
+ if (normalized.features.supports) removeModernColorSupports(root);
8743
+ normalizeModernColorDeclarations(root, normalized.features);
8744
+ removeEmptyAtRules$1(root);
8745
+ return root.toString();
8746
+ } catch {
8747
+ return css;
8748
+ }
8749
+ }
8750
+ //#endregion
8448
8751
  //#region src/css-macro/auto.ts
8449
8752
  const CSS_MACRO_STYLE_OPTIONS_MARKER = "__weappTailwindcssCssMacroEnabled";
8450
8753
  const PLATFORM_ENV_KEYS$1 = [
@@ -8679,7 +8982,7 @@ function addSourceDependencyMessages(result, files) {
8679
8982
  }
8680
8983
  //#endregion
8681
8984
  //#region src/generator-plugin/directives.ts
8682
- const TAILWIND_ROOT_DIRECTIVE_NAMES = new Set([
8985
+ const TAILWIND_ROOT_DIRECTIVE_NAMES = /* @__PURE__ */ new Set([
8683
8986
  "config",
8684
8987
  "custom-variant",
8685
8988
  "plugin",
@@ -9075,7 +9378,7 @@ function resolveOptionConfigPath(config, base) {
9075
9378
  return path.isAbsolute(config) ? config : path.resolve(base, config);
9076
9379
  }
9077
9380
  async function collectConfigContentFiles(root, base, options) {
9078
- const configPaths = [...new Set([...resolveOptionConfigPath(options.config, base) ? [resolveOptionConfigPath(options.config, base)] : [], ...collectConfigPaths(root, base)])];
9381
+ const configPaths = [.../* @__PURE__ */ new Set([...resolveOptionConfigPath(options.config, base) ? [resolveOptionConfigPath(options.config, base)] : [], ...collectConfigPaths(root, base)])];
9079
9382
  const files = [];
9080
9383
  for (const configPath of configPaths) {
9081
9384
  const contentEntries = normalizeLegacyContentEntries((await loadConfig({
@@ -9109,13 +9412,13 @@ async function collectAutoTailwindCandidates(root, result, options) {
9109
9412
  cwd: projectRoot,
9110
9413
  sources: sourceEntries
9111
9414
  });
9112
- return new Set([...[...candidates].filter((candidate) => !inlineCandidates.excluded.has(candidate)), ...inlineCandidates.included]);
9415
+ return /* @__PURE__ */ new Set([...[...candidates].filter((candidate) => !inlineCandidates.excluded.has(candidate)), ...inlineCandidates.included]);
9113
9416
  }
9114
9417
  async function collectPostcssLocalSources(root, result, options) {
9115
9418
  const base = resolvePostcssBase(result, options);
9116
9419
  const sourceEntries = await resolveCssSourceEntries(root, base, POSTCSS_SOURCE_PATTERN);
9117
9420
  const configContentFiles = await collectConfigContentFiles(root, base, options);
9118
- const files = [...new Set([...await expandTailwindSourceEntries(sourceEntries), ...configContentFiles.files])];
9421
+ const files = [.../* @__PURE__ */ new Set([...await expandTailwindSourceEntries(sourceEntries), ...configContentFiles.files])];
9119
9422
  const sources = await Promise.all(files.map(async (file) => {
9120
9423
  const extension = getSourceExtension(file);
9121
9424
  return {
@@ -9191,7 +9494,7 @@ function createWeappTailwindcssPostcssPlugin(adapters) {
9191
9494
  projectRoot: resolvePostcssProjectRoot(result, options)
9192
9495
  });
9193
9496
  const generated = await adapters.createGenerator(source).generate({
9194
- candidates: new Set([...autoCandidates, ...candidates ?? []]),
9497
+ candidates: /* @__PURE__ */ new Set([...autoCandidates, ...candidates ?? []]),
9195
9498
  scanSources: scanSources ?? false,
9196
9499
  sources: [...collectedSources.sources, ...sources ?? []],
9197
9500
  styleOptions: {
@@ -9200,7 +9503,8 @@ function createWeappTailwindcssPostcssPlugin(adapters) {
9200
9503
  },
9201
9504
  target: generatorOptions.target
9202
9505
  });
9203
- replaceRootCss(root, isApplyOnlyTailwindV4Css ? filterApplyOnlyGeneratedCss(generated.css, rawCss) : generated.css, result);
9506
+ const css = isApplyOnlyTailwindV4Css ? filterApplyOnlyGeneratedCss(generated.css, rawCss) : generated.css;
9507
+ replaceRootCss(root, generated.target === "web" ? transformWebCssCompat(css, generatorOptions.webCompat) : css, result);
9204
9508
  addDependencyMessages(result, generated);
9205
9509
  addSourceDependencyMessages(result, collectedSources.files);
9206
9510
  result.messages.push({
@@ -9218,7 +9522,7 @@ function createWeappTailwindcssPostcssPlugin(adapters) {
9218
9522
  }
9219
9523
  //#endregion
9220
9524
  //#region src/compat/uni-app-x.ts
9221
- const UNI_APP_X_BASE_CARRIER_SELECTORS = new Set([
9525
+ const UNI_APP_X_BASE_CARRIER_SELECTORS = /* @__PURE__ */ new Set([
9222
9526
  "*",
9223
9527
  "view",
9224
9528
  "text",
@@ -9318,7 +9622,7 @@ function shouldRemoveEmptyRuleForUniAppX(rule, options) {
9318
9622
  }
9319
9623
  //#endregion
9320
9624
  //#region src/compat/uni-app-x-uvue.ts
9321
- const ALLOWED_DISPLAY_VALUES = new Set(["flex", "none"]);
9625
+ const ALLOWED_DISPLAY_VALUES = /* @__PURE__ */ new Set(["flex", "none"]);
9322
9626
  const FALLBACK_CLASS_RE = /\.((?:\\.|[\w-])+)/g;
9323
9627
  const IMPORTANT_SUFFIX_RE = /\s*!important$/i;
9324
9628
  function isUniAppXUvueTarget(options) {
@@ -41536,7 +41840,7 @@ var import_browserslist = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
41536
41840
  browserslist.versionAliases.firefox.esr = FIREFOX_ESR_VERSION;
41537
41841
  module.exports = browserslist;
41538
41842
  })))(), 1);
41539
- const o$24 = new Map([
41843
+ const o$24 = /* @__PURE__ */ new Map([
41540
41844
  ["animation", "none 0s ease 0s 1 normal none running"],
41541
41845
  ["animation-delay", "0s"],
41542
41846
  ["animation-direction", "normal"],
@@ -44861,7 +45165,7 @@ function hasSupportsAtRuleAncestor(e, t) {
44861
45165
  }
44862
45166
  //#endregion
44863
45167
  //#region ../../node_modules/.pnpm/@csstools+postcss-alpha-function@2.0.6_postcss@8.5.15/node_modules/@csstools/postcss-alpha-function/dist/index.mjs
44864
- const b$1 = /\balpha\(/i, m$9 = /^alpha$/i, w$3 = new Set([
45168
+ const b$1 = /\balpha\(/i, m$9 = /^alpha$/i, w$3 = /* @__PURE__ */ new Set([
44865
45169
  "srgb",
44866
45170
  "srgb-linear",
44867
45171
  "display-p3",
@@ -45019,7 +45323,7 @@ const b$1 = /\balpha\(/i, m$9 = /^alpha$/i, w$3 = new Set([
45019
45323
  if (isTokenNode(c) && (isTokenHash(c.value) || isTokenIdent(c.value))) {
45020
45324
  const o = color(c);
45021
45325
  if (!o) return;
45022
- if (!o.syntaxFlags.has(me.Hex) && !o.syntaxFlags.has(me.ColorKeyword)) return;
45326
+ if (!o.syntaxFlags.has(Le.Hex) && !o.syntaxFlags.has(Le.ColorKeyword)) return;
45023
45327
  convertToRelativeColor(e, n + 1, "rgb", [
45024
45328
  "r",
45025
45329
  "g",
@@ -45413,7 +45717,7 @@ function selectorNodeContainsNothingOrOnlyUniversal$1(e) {
45413
45717
  }
45414
45718
  //#endregion
45415
45719
  //#region ../../node_modules/.pnpm/@csstools+postcss-cascade-layers@6.0.0_postcss@8.5.15/node_modules/@csstools/postcss-cascade-layers/dist/index.mjs
45416
- const t$11 = "csstools-invalid-layer", a$5 = "csstools-layer-with-selector-rules", s$13 = "6efdb677-bb05-44e5-840f-29d2175862fd", n$8 = "b147acf6-11a6-4338-a4d0-80aef4cd1a2f", o$21 = ["media", "supports"], l$7 = ["keyframes"], i$7 = /^revert-layer$/i, c$5 = /^import$/i, u$8 = /^layer$/i, m$8 = /layer/i, y$3 = new Set([
45720
+ const t$11 = "csstools-invalid-layer", a$5 = "csstools-layer-with-selector-rules", s$13 = "6efdb677-bb05-44e5-840f-29d2175862fd", n$8 = "b147acf6-11a6-4338-a4d0-80aef4cd1a2f", o$21 = ["media", "supports"], l$7 = ["keyframes"], i$7 = /^revert-layer$/i, c$5 = /^import$/i, u$8 = /^layer$/i, m$8 = /layer/i, y$3 = /* @__PURE__ */ new Set([
45417
45721
  "layer",
45418
45722
  "supports",
45419
45723
  "media",
@@ -45885,7 +46189,7 @@ const u$7 = /\bcolor\(/i, m$7 = /^color$/i, basePlugin$15 = (s) => ({
45885
46189
  const P = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(tokenize({ css: g })), (s) => {
45886
46190
  if (!isFunctionNode(s) || !m$7.test(s.getName())) return;
45887
46191
  const o = color(s);
45888
- return o && !(o.syntaxFlags.has(me.Experimental) || o.syntaxFlags.has(me.HasNoneKeywords) || o.syntaxFlags.has(me.RelativeColorSyntax)) ? serializeRGB(o) : void 0;
46192
+ return o && !(o.syntaxFlags.has(Le.Experimental) || o.syntaxFlags.has(Le.HasNoneKeywords) || o.syntaxFlags.has(Le.RelativeColorSyntax)) ? serializeRGB(o) : void 0;
45889
46193
  }));
45890
46194
  P !== g && (f.cloneBefore({ value: P }), s?.preserve || f.remove());
45891
46195
  }
@@ -45914,7 +46218,7 @@ const m$6 = /\bdisplay-p3-linear\b/i, f$7 = /^color$/i, basePlugin$14 = (s) => (
45914
46218
  const P = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(tokenize({ css: v })), (s) => {
45915
46219
  if (!isFunctionNode(s) || !f$7.test(s.getName())) return;
45916
46220
  const o = color(s);
45917
- return !o || o.colorNotation !== he.Linear_Display_P3 || o.syntaxFlags.has(me.Experimental) || o.syntaxFlags.has(me.HasNoneKeywords) ? void 0 : serializeP3(o);
46221
+ return !o || o.colorNotation !== De.Linear_Display_P3 || o.syntaxFlags.has(Le.Experimental) || o.syntaxFlags.has(Le.HasNoneKeywords) ? void 0 : serializeP3(o);
45918
46222
  }));
45919
46223
  P !== v && (g.cloneBefore({ value: P }), s?.preserve || g.remove());
45920
46224
  }
@@ -45943,7 +46247,7 @@ const m$5 = /^(?:rgb|hsl)a?$/i, f$6 = /\b(?:rgb|hsl)a?\(/i, basePlugin$13 = (s)
45943
46247
  const y = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(tokenize({ css: h })), (s) => {
45944
46248
  if (!isFunctionNode(s) || !m$5.test(s.getName())) return;
45945
46249
  const n = color(s);
45946
- return !n || n.syntaxFlags.has(me.Experimental) || n.syntaxFlags.has(me.HasNoneKeywords) || n.syntaxFlags.has(me.RelativeColorSyntax) || (n.syntaxFlags.has(me.LegacyRGB) || n.syntaxFlags.has(me.LegacyHSL)) && !n.syntaxFlags.has(me.HasPercentageAlpha) ? void 0 : n.colorNotation === he.HSL ? serializeHSL(n) : serializeRGB(n);
46250
+ return !n || n.syntaxFlags.has(Le.Experimental) || n.syntaxFlags.has(Le.HasNoneKeywords) || n.syntaxFlags.has(Le.RelativeColorSyntax) || (n.syntaxFlags.has(Le.LegacyRGB) || n.syntaxFlags.has(Le.LegacyHSL)) && !n.syntaxFlags.has(Le.HasPercentageAlpha) ? void 0 : n.colorNotation === De.HSL ? serializeHSL(n) : serializeRGB(n);
45947
46251
  }));
45948
46252
  y !== h && (v.cloneBefore({ value: y }), s?.preserve || v.remove());
45949
46253
  }
@@ -45972,14 +46276,14 @@ const f$5 = /\bcolor-mix\(/i, g$6 = /^color-mix$/i, basePlugin$12 = (s) => ({
45972
46276
  const b = tokenize({ css: x }), d = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(b), (s) => {
45973
46277
  if (!isFunctionNode(s) || !g$6.test(s.getName())) return;
45974
46278
  const o = color(s);
45975
- return !o || o.syntaxFlags.has(me.Experimental) || o.syntaxFlags.has(me.ColorMixVariadic) ? void 0 : serializeRGB(o);
46279
+ return !o || o.syntaxFlags.has(Le.Experimental) || o.syntaxFlags.has(Le.ColorMixVariadic) ? void 0 : serializeRGB(o);
45976
46280
  }));
45977
46281
  if (d === x) return;
45978
46282
  let F = d;
45979
46283
  s?.subFeatures.displayP3 && (F = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(b), (s) => {
45980
46284
  if (!isFunctionNode(s) || !g$6.test(s.getName())) return;
45981
46285
  const a = color(s);
45982
- return a && !a.syntaxFlags.has(me.Experimental) ? colorDataFitsRGB_Gamut(a) ? serializeRGB(a) : serializeP3(a) : void 0;
46286
+ return a && !a.syntaxFlags.has(Le.Experimental) ? colorDataFitsRGB_Gamut(a) ? serializeRGB(a) : serializeP3(a) : void 0;
45983
46287
  }))), v.cloneBefore({ value: d }), s?.subFeatures.displayP3 && F !== d && v.cloneBefore({ value: F }), s?.preserve || v.remove();
45984
46288
  }
45985
46289
  });
@@ -46008,14 +46312,14 @@ const f$4 = /\bcolor-mix\(/i, g$5 = /^color-mix$/i, basePlugin$11 = (s) => ({
46008
46312
  const x = tokenize({ css: d }), P = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(x), (s) => {
46009
46313
  if (!isFunctionNode(s) || !g$5.test(s.getName())) return;
46010
46314
  const o = color(s);
46011
- return o && !o.syntaxFlags.has(me.Experimental) && o.syntaxFlags.has(me.ColorMixVariadic) ? serializeRGB(o) : void 0;
46315
+ return o && !o.syntaxFlags.has(Le.Experimental) && o.syntaxFlags.has(Le.ColorMixVariadic) ? serializeRGB(o) : void 0;
46012
46316
  }));
46013
46317
  if (P === d) return;
46014
46318
  let F = P;
46015
46319
  s?.subFeatures.displayP3 && (F = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(x), (s) => {
46016
46320
  if (!isFunctionNode(s) || !g$5.test(s.getName())) return;
46017
46321
  const a = color(s);
46018
- return a && !a.syntaxFlags.has(me.Experimental) ? colorDataFitsRGB_Gamut(a) ? serializeRGB(a) : serializeP3(a) : void 0;
46322
+ return a && !a.syntaxFlags.has(Le.Experimental) ? colorDataFitsRGB_Gamut(a) ? serializeRGB(a) : serializeP3(a) : void 0;
46019
46323
  }))), v.cloneBefore({ value: P }), s?.subFeatures.displayP3 && F !== P && v.cloneBefore({ value: F }), s?.preserve || v.remove();
46020
46324
  }
46021
46325
  });
@@ -46108,7 +46412,7 @@ const u$6 = /\bcontrast-color\(/i, m$4 = /^contrast-color$/i, basePlugin$9 = (s)
46108
46412
  const b = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(tokenize({ css: g })), (s) => {
46109
46413
  if (!isFunctionNode(s) || !m$4.test(s.getName())) return;
46110
46414
  const o = color(s);
46111
- return o && !o.syntaxFlags.has(me.HasNoneKeywords) ? serializeRGB(o) : void 0;
46415
+ return o && !o.syntaxFlags.has(Le.HasNoneKeywords) ? serializeRGB(o) : void 0;
46112
46416
  }));
46113
46417
  b !== g && (f.cloneBefore({ value: b }), s?.preserve || f.remove());
46114
46418
  }
@@ -46825,7 +47129,7 @@ var MediaConditionListWithOr = class MediaConditionListWithOr {
46825
47129
  function isNumber(e) {
46826
47130
  return !!(isTokenNode(e) && isTokenNumber(e.value) || isFunctionNode(e) && T.has(e.getName().toLowerCase()));
46827
47131
  }
46828
- const T = new Set([
47132
+ const T = /* @__PURE__ */ new Set([
46829
47133
  "abs",
46830
47134
  "acos",
46831
47135
  "asin",
@@ -48072,7 +48376,7 @@ function collectCascadeLayerOrder$2(t) {
48072
48376
  function normalizeLayerName$2(e, r) {
48073
48377
  return e.trim() ? e : `csstools-anon-layer--${r}`;
48074
48378
  }
48075
- const W$1 = new Set([
48379
+ const W$1 = /* @__PURE__ */ new Set([
48076
48380
  "scope",
48077
48381
  "container",
48078
48382
  "layer"
@@ -48513,7 +48817,7 @@ function isDeclarationIgnored(e) {
48513
48817
  function isIgnoreComment(e, t) {
48514
48818
  return !!e && "comment" === e.type && t.test(e.text);
48515
48819
  }
48516
- const c$4 = new Set(["layer"]);
48820
+ const c$4 = /* @__PURE__ */ new Set(["layer"]);
48517
48821
  function isProcessableRule(e) {
48518
48822
  let t = e.parent;
48519
48823
  for (; t;) {
@@ -48522,7 +48826,7 @@ function isProcessableRule(e) {
48522
48826
  }
48523
48827
  return !0;
48524
48828
  }
48525
- const l$6 = /^html$/i, u$5 = /^:where\(html\)$/i, p$1 = /^:root$/i, f$3 = /^:where\(:root\)$/i, d$1 = /(html|:root)/i, m$3 = /^var$/i;
48829
+ const l$6 = /^html$/i, u$5 = /^:where\(html\)$/i, p$1 = /^:root$/i, f$3 = /^:where\(:root\)$/i, d$2 = /(html|:root)/i, m$3 = /^var$/i;
48526
48830
  function isVarFunction(e) {
48527
48831
  return "function" === e.type && m$3.test(e.value) && e.nodes?.length > 0;
48528
48832
  }
@@ -48696,7 +49000,7 @@ function buildCustomPropertiesMap(e, t, n) {
48696
49000
  function getCustomPropertiesFromRoot(e, t) {
48697
49001
  const r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), o = collectCascadeLayerOrder$1(e);
48698
49002
  return e.walkRules((e) => {
48699
- d$1.test(e.selector) && e.nodes?.length && isProcessableRule(e) && (isBlockIgnored(e) || e.selectors.forEach((t) => {
49003
+ d$2.test(e.selector) && e.nodes?.length && isProcessableRule(e) && (isBlockIgnored(e) || e.selectors.forEach((t) => {
48700
49004
  let s;
48701
49005
  if (u$5.test(t) || f$3.test(t)) s = 0;
48702
49006
  else if (l$6.test(t)) s = 1;
@@ -48810,7 +49114,7 @@ function collectCascadeLayerOrder(e) {
48810
49114
  function normalizeLayerName(e, r) {
48811
49115
  return e.trim() ? e : `csstools-anon-layer--${r}`;
48812
49116
  }
48813
- const o$19 = new Set([
49117
+ const o$19 = /* @__PURE__ */ new Set([
48814
49118
  "scope",
48815
49119
  "container",
48816
49120
  "layer"
@@ -48972,7 +49276,7 @@ const creator$41 = (t) => {
48972
49276
  creator$41.postcss = !0;
48973
49277
  //#endregion
48974
49278
  //#region ../../node_modules/.pnpm/@csstools+postcss-normalize-display-values@5.0.1_postcss@8.5.15/node_modules/@csstools/postcss-normalize-display-values/dist/index.mjs
48975
- var l$5 = new Map([
49279
+ var l$5 = /* @__PURE__ */ new Map([
48976
49280
  ["flow", "block"],
48977
49281
  ["block,flow", "block"],
48978
49282
  ["flow,block", "block"],
@@ -49469,7 +49773,7 @@ function sameProperty(e) {
49469
49773
  }
49470
49774
  return t;
49471
49775
  }
49472
- const d = /\b(?:color|lab|lch|oklab|oklch)\(/i, u$4 = /^(?:color|lab|lch|oklab|oklch)$/i, creator$33 = () => ({
49776
+ const d$1 = /\b(?:color|lab|lch|oklab|oklch)\(/i, u$4 = /^(?:color|lab|lch|oklab|oklch)$/i, creator$33 = () => ({
49473
49777
  postcssPlugin: "postcss-gamut-mapping",
49474
49778
  prepare() {
49475
49779
  const p = /* @__PURE__ */ new WeakMap(), m = /* @__PURE__ */ new WeakSet();
@@ -49478,7 +49782,7 @@ const d = /\b(?:color|lab|lch|oklab|oklch)\(/i, u$4 = /^(?:color|lab|lch|oklab|o
49478
49782
  OnceExit(f, { postcss: h }) {
49479
49783
  f.walkDecls((f) => {
49480
49784
  if (m.has(f)) return;
49481
- if (!d.test(f.value)) return;
49785
+ if (!d$1.test(f.value)) return;
49482
49786
  if (!f.parent || hasConditionalAncestor(f)) return;
49483
49787
  const g = sameProperty(f).map((p, d) => {
49484
49788
  m.add(p);
@@ -49486,7 +49790,7 @@ const d = /\b(?:color|lab|lch|oklab|oklch)\(/i, u$4 = /^(?:color|lab|lch|oklab|o
49486
49790
  const h = p.value, v = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(tokenize({ css: h })), (e) => {
49487
49791
  if (!isFunctionNode(e) || !u$4.test(e.getName())) return;
49488
49792
  const o = color(e);
49489
- return !o || o.syntaxFlags.has(me.HasNoneKeywords) || colorDataFitsRGB_Gamut(o) ? void 0 : (f || colorDataFitsDisplayP3_Gamut(o) || (f = !0), serializeRGB(o, !0));
49793
+ return !o || o.syntaxFlags.has(Le.HasNoneKeywords) || colorDataFitsRGB_Gamut(o) ? void 0 : (f || colorDataFitsDisplayP3_Gamut(o) || (f = !0), serializeRGB(o, !0));
49490
49794
  }));
49491
49795
  return {
49492
49796
  isRec2020: f,
@@ -49740,7 +50044,7 @@ function parseColorStops(o) {
49740
50044
  const n = color(i);
49741
50045
  if (n) {
49742
50046
  if (t.color) return !1;
49743
- if (n.syntaxFlags.has(me.Experimental)) return !1;
50047
+ if (n.syntaxFlags.has(Le.Experimental)) return !1;
49744
50048
  t.color = i, t.colorData = n;
49745
50049
  } else {
49746
50050
  if (!t.color) return !1;
@@ -50005,7 +50309,7 @@ const u$3 = /\bhwb\(/i, m$2 = /^hwb$/i, basePlugin$6 = (s) => ({
50005
50309
  const b = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(tokenize({ css: g })), (s) => {
50006
50310
  if (!isFunctionNode(s) || !m$2.test(s.getName())) return;
50007
50311
  const r = color(s);
50008
- return r && !(r.syntaxFlags.has(me.Experimental) || r.syntaxFlags.has(me.HasNoneKeywords) || r.syntaxFlags.has(me.RelativeColorSyntax)) ? serializeRGB(r) : void 0;
50312
+ return r && !(r.syntaxFlags.has(Le.Experimental) || r.syntaxFlags.has(Le.HasNoneKeywords) || r.syntaxFlags.has(Le.RelativeColorSyntax)) ? serializeRGB(r) : void 0;
50009
50313
  }));
50010
50314
  b !== g && (f.cloneBefore({ value: b }), s?.preserve || f.remove());
50011
50315
  }
@@ -50104,7 +50408,7 @@ const n$4 = /^(?:cross-fade|image|(?:repeating-)?(?:conic|linear|radial)-gradien
50104
50408
  function getImage(t) {
50105
50409
  return !(!t || !t.type) && ("string" === t.type ? "url(" + valueParser.stringify(t) + ")" : !("function" !== t.type || !n$4.test(t.value)) && valueParser.stringify(t));
50106
50410
  }
50107
- const i$3 = new Map([
50411
+ const i$3 = /* @__PURE__ */ new Map([
50108
50412
  ["dpcm", 2.54],
50109
50413
  ["dpi", 1],
50110
50414
  ["dppx", 96],
@@ -50627,14 +50931,14 @@ const g$2 = /\b(?:lab|lch)\(/i, f$2 = /^(?:lab|lch)$/i, basePlugin$3 = (s) => ({
50627
50931
  const v = tokenize({ css: y }), F = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(v), (s) => {
50628
50932
  if (!isFunctionNode(s) || !f$2.test(s.getName())) return;
50629
50933
  const o = color(s);
50630
- return o && !(o.syntaxFlags.has(me.Experimental) || o.syntaxFlags.has(me.HasNoneKeywords) || o.syntaxFlags.has(me.RelativeColorSyntax)) ? serializeRGB(o) : void 0;
50934
+ return o && !(o.syntaxFlags.has(Le.Experimental) || o.syntaxFlags.has(Le.HasNoneKeywords) || o.syntaxFlags.has(Le.RelativeColorSyntax)) ? serializeRGB(o) : void 0;
50631
50935
  }));
50632
50936
  if (F === y) return;
50633
50937
  let d = F;
50634
50938
  s?.subFeatures.displayP3 && (d = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(v), (s) => {
50635
50939
  if (!isFunctionNode(s) || !f$2.test(s.getName())) return;
50636
50940
  const l = color(s);
50637
- return l && !(l.syntaxFlags.has(me.Experimental) || l.syntaxFlags.has(me.HasNoneKeywords) || l.syntaxFlags.has(me.RelativeColorSyntax)) ? colorDataFitsRGB_Gamut(l) ? serializeRGB(l) : serializeP3(l) : void 0;
50941
+ return l && !(l.syntaxFlags.has(Le.Experimental) || l.syntaxFlags.has(Le.HasNoneKeywords) || l.syntaxFlags.has(Le.RelativeColorSyntax)) ? colorDataFitsRGB_Gamut(l) ? serializeRGB(l) : serializeP3(l) : void 0;
50638
50942
  }))), b.cloneBefore({ value: F }), s?.subFeatures.displayP3 && d !== F && b.cloneBefore({ value: d }), s?.preserve || b.remove();
50639
50943
  }
50640
50944
  });
@@ -51647,7 +51951,7 @@ function greatestCommonDivisor(e, t) {
51647
51951
  t %= e;
51648
51952
  }
51649
51953
  }
51650
- const y$1 = new Set([
51954
+ const y$1 = /* @__PURE__ */ new Set([
51651
51955
  "aspect-ratio",
51652
51956
  "min-aspect-ratio",
51653
51957
  "max-aspect-ratio",
@@ -51877,7 +52181,7 @@ function transformSingleNameValuePair(r, u, l, g) {
51877
52181
  }
51878
52182
  ]), I[4].value = L, isTokenDimension(I) ? I[1] = I[4].value.toString() + I[4].unit : I[1] = I[4].value.toString(), newMediaFeaturePlain(featureNamePrefix(u) + r, ...w, I, ...N, ...y);
51879
52183
  }
51880
- const $ = new Set([
52184
+ const $ = /* @__PURE__ */ new Set([
51881
52185
  "aspect-ratio",
51882
52186
  "color",
51883
52187
  "color-index",
@@ -52697,14 +53001,14 @@ const g$1 = /\b(?:oklab|oklch)\(/i, f$1 = /^(?:oklab|oklch)$/i, basePlugin$1 = (
52697
53001
  const v = tokenize({ css: y }), F = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(v), (s) => {
52698
53002
  if (!isFunctionNode(s) || !f$1.test(s.getName())) return;
52699
53003
  const r = color(s);
52700
- return r && !(r.syntaxFlags.has(me.Experimental) || r.syntaxFlags.has(me.HasNoneKeywords) || r.syntaxFlags.has(me.RelativeColorSyntax)) ? serializeRGB(r) : void 0;
53004
+ return r && !(r.syntaxFlags.has(Le.Experimental) || r.syntaxFlags.has(Le.HasNoneKeywords) || r.syntaxFlags.has(Le.RelativeColorSyntax)) ? serializeRGB(r) : void 0;
52701
53005
  }));
52702
53006
  if (F === y) return;
52703
53007
  let d = F;
52704
53008
  s?.subFeatures.displayP3 && (d = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(v), (s) => {
52705
53009
  if (!isFunctionNode(s) || !f$1.test(s.getName())) return;
52706
53010
  const l = color(s);
52707
- return l && !(l.syntaxFlags.has(me.Experimental) || l.syntaxFlags.has(me.HasNoneKeywords) || l.syntaxFlags.has(me.RelativeColorSyntax)) ? colorDataFitsRGB_Gamut(l) ? serializeRGB(l) : serializeP3(l) : void 0;
53011
+ return l && !(l.syntaxFlags.has(Le.Experimental) || l.syntaxFlags.has(Le.HasNoneKeywords) || l.syntaxFlags.has(Le.RelativeColorSyntax)) ? colorDataFitsRGB_Gamut(l) ? serializeRGB(l) : serializeP3(l) : void 0;
52708
53012
  }))), b.cloneBefore({ value: F }), s?.subFeatures.displayP3 && d !== F && b.cloneBefore({ value: d }), s?.preserve || b.remove();
52709
53013
  }
52710
53014
  });
@@ -52724,7 +53028,7 @@ postcssPlugin$2.postcss = !0;
52724
53028
  //#endregion
52725
53029
  //#region ../../node_modules/.pnpm/postcss-overflow-shorthand@7.0.0_postcss@8.5.15/node_modules/postcss-overflow-shorthand/dist/index.mjs
52726
53030
  var import_postcss_opacity_percentage = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
52727
- const doNothingValues = new Set([
53031
+ const doNothingValues = /* @__PURE__ */ new Set([
52728
53032
  "inherit",
52729
53033
  "initial",
52730
53034
  "revert",
@@ -52930,14 +53234,14 @@ const g = /\b(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)\(/i, h = /\b(?:
52930
53234
  const x = tokenize({ css: v }), d = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(x), (s) => {
52931
53235
  if (!isFunctionNode(s) || !m$1.test(s.getName())) return;
52932
53236
  const t = color(s);
52933
- return t && !t.syntaxFlags.has(me.Experimental) && !t.syntaxFlags.has(me.HasNoneKeywords) && t.syntaxFlags.has(me.RelativeColorSyntax) ? serializeRGB(t) : void 0;
53237
+ return t && !t.syntaxFlags.has(Le.Experimental) && !t.syntaxFlags.has(Le.HasNoneKeywords) && t.syntaxFlags.has(Le.RelativeColorSyntax) ? serializeRGB(t) : void 0;
52934
53238
  }));
52935
53239
  if (d === v) return;
52936
53240
  let P = d;
52937
53241
  s?.subFeatures.displayP3 && (P = stringify(replaceComponentValues$1(parseCommaSeparatedListOfComponentValues(x), (s) => {
52938
53242
  if (!isFunctionNode(s) || !m$1.test(s.getName())) return;
52939
53243
  const l = color(s);
52940
- return l && !l.syntaxFlags.has(me.Experimental) && !l.syntaxFlags.has(me.HasNoneKeywords) && l.syntaxFlags.has(me.RelativeColorSyntax) ? colorDataFitsRGB_Gamut(l) ? serializeRGB(l) : serializeP3(l) : void 0;
53244
+ return l && !l.syntaxFlags.has(Le.Experimental) && !l.syntaxFlags.has(Le.HasNoneKeywords) && l.syntaxFlags.has(Le.RelativeColorSyntax) ? colorDataFitsRGB_Gamut(l) ? serializeRGB(l) : serializeP3(l) : void 0;
52941
53245
  }))), f.cloneBefore({ value: d }), s?.subFeatures.displayP3 && P !== d && f.cloneBefore({ value: P }), s?.preserve || f.remove();
52942
53246
  }
52943
53247
  });
@@ -53245,6 +53549,1008 @@ const u = c$2.join(","), creator$5 = (p) => {
53245
53549
  };
53246
53550
  creator$5.postcss = !0;
53247
53551
  //#endregion
53552
+ //#region ../../node_modules/.pnpm/@csstools+color-helpers@6.0.2/node_modules/@csstools/color-helpers/dist/index.mjs
53553
+ /**
53554
+ * Bradford chromatic adaptation from D50 to D65
53555
+ *
53556
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53557
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53558
+ */
53559
+ /**
53560
+ * Bradford chromatic adaptation from D65 to D50
53561
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53562
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53563
+ * @see http://www.brucelindbloom.com/index.html?Eqn_ChromAdapt.html
53564
+ */
53565
+ /**
53566
+ * @param {number} hue - Hue as degrees 0..360
53567
+ * @param {number} sat - Saturation as percentage 0..100
53568
+ * @param {number} light - Lightness as percentage 0..100
53569
+ * @return {number[]} Array of sRGB components; in-gamut colors in range [0..1]
53570
+ *
53571
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53572
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hslToRgb.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53573
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hslToRgb.js
53574
+ */
53575
+ /**
53576
+ * @param {number} hue - Hue as degrees 0..360
53577
+ * @param {number} white - Whiteness as percentage 0..100
53578
+ * @param {number} black - Blackness as percentage 0..100
53579
+ * @return {number[]} Array of RGB components 0..1
53580
+ *
53581
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53582
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hwbToRgb.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53583
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/hwbToRgb.js
53584
+ */
53585
+ /**
53586
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53587
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53588
+ */
53589
+ /**
53590
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53591
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53592
+ */
53593
+ /**
53594
+ * Convert Lab to D50-adapted XYZ
53595
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53596
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53597
+ * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
53598
+ */
53599
+ /**
53600
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53601
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53602
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js
53603
+ */
53604
+ /**
53605
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53606
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53607
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js
53608
+ */
53609
+ /**
53610
+ * Given OKLab, convert to XYZ relative to D65
53611
+ *
53612
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53613
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53614
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js
53615
+ */
53616
+ /**
53617
+ * Assuming XYZ is relative to D50, convert to CIE Lab
53618
+ * from CIE standard, which now defines these as a rational fraction
53619
+ *
53620
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53621
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53622
+ */
53623
+ /**
53624
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53625
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53626
+ *
53627
+ * XYZ <-> LMS matrices recalculated for consistent reference white
53628
+ * @see https://github.com/w3c/csswg-drafts/issues/6642#issuecomment-943521484
53629
+ */
53630
+ /**
53631
+ * Convert XYZ to linear-light rec2020
53632
+ *
53633
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53634
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53635
+ */
53636
+ /**
53637
+ * Convert XYZ to linear-light P3
53638
+ *
53639
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53640
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53641
+ */
53642
+ /**
53643
+ * Convert D50 XYZ to linear-light prophoto-rgb
53644
+ *
53645
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53646
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53647
+ * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
53648
+ */
53649
+ /**
53650
+ * Convert XYZ to linear-light a98-rgb
53651
+ *
53652
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53653
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53654
+ */
53655
+ /**
53656
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53657
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53658
+ */
53659
+ /**
53660
+ * Convert an array of linear-light rec2020 RGB in the range 0.0-1.0
53661
+ * to gamma corrected form ITU-R BT.2020-2 p.4
53662
+ *
53663
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53664
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53665
+ */
53666
+ /**
53667
+ * Convert an array of linear-light sRGB values in the range 0.0-1.0 to gamma corrected form
53668
+ * Extended transfer function:
53669
+ * For negative values, linear portion extends on reflection
53670
+ * of axis, then uses reflected pow below that
53671
+ *
53672
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53673
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53674
+ * @see https://en.wikipedia.org/wiki/SRGB
53675
+ */
53676
+ /**
53677
+ * Convert an array of linear-light display-p3 RGB in the range 0.0-1.0
53678
+ * to gamma corrected form
53679
+ *
53680
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53681
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53682
+ */
53683
+ /**
53684
+ * Convert an array of linear-light prophoto-rgb in the range 0.0-1.0
53685
+ * to gamma corrected form.
53686
+ * Transfer curve is gamma 1.8 with a small linear portion.
53687
+ *
53688
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53689
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53690
+ */
53691
+ /**
53692
+ * Convert an array of linear-light a98-rgb in the range 0.0-1.0
53693
+ * to gamma corrected form. Negative values are also now accepted
53694
+ *
53695
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53696
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53697
+ */
53698
+ /**
53699
+ * Convert an array of rec2020 RGB values in the range 0.0 - 1.0
53700
+ * to linear light (un-companded) form.
53701
+ * ITU-R BT.2020-2 p.4
53702
+ *
53703
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53704
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53705
+ */
53706
+ /**
53707
+ * Convert an array of linear-light rec2020 values to CIE XYZ
53708
+ * using D65 (no chromatic adaptation)
53709
+ *
53710
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53711
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53712
+ * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
53713
+ */
53714
+ /**
53715
+ * Convert an array of of sRGB values where in-gamut values are in the range
53716
+ * [0 - 1] to linear light (un-companded) form.
53717
+ * Extended transfer function:
53718
+ * For negative values, linear portion is extended on reflection of axis,
53719
+ * then reflected power function is used.
53720
+ *
53721
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53722
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53723
+ * @see https://en.wikipedia.org/wiki/SRGB
53724
+ */
53725
+ /**
53726
+ * Convert an array of display-p3 RGB values in the range 0.0 - 1.0
53727
+ * to linear light (un-companded) form.
53728
+ *
53729
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53730
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53731
+ */
53732
+ /**
53733
+ * Convert an array of linear-light display-p3 values to CIE XYZ
53734
+ * using D65 (no chromatic adaptation)
53735
+ *
53736
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53737
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53738
+ * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
53739
+ */
53740
+ /**
53741
+ * Convert an array of prophoto-rgb values where in-gamut Colors are in the
53742
+ * range [0.0 - 1.0] to linear light (un-companded) form. Transfer curve is
53743
+ * gamma 1.8 with a small linear portion. Extended transfer function
53744
+ *
53745
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53746
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53747
+ */
53748
+ /**
53749
+ * Convert an array of linear-light prophoto-rgb values to CIE D50 XYZ.
53750
+ * Matrix cannot be expressed in rational form, but is calculated to 64 bit accuracy.
53751
+ *
53752
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53753
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53754
+ * @see see https://github.com/w3c/csswg-drafts/issues/7675
53755
+ */
53756
+ /**
53757
+ * Convert an array of linear-light a98-rgb values to CIE XYZ
53758
+ * http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
53759
+ * has greater numerical precision than section 4.3.5.3 of
53760
+ * https://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf
53761
+ * but the values below were calculated from first principles
53762
+ * from the chromaticity coordinates of R G B W
53763
+ *
53764
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53765
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53766
+ * @see http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html
53767
+ * @see https://www.adobe.com/digitalimag/pdfs/AdobeRGB1998.pdf
53768
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/matrixmaker.html
53769
+ */
53770
+ /**
53771
+ * Convert an array of linear-light sRGB values to CIE XYZ
53772
+ * using sRGB's own white, D65 (no chromatic adaptation)
53773
+ *
53774
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53775
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53776
+ */
53777
+ /**
53778
+ * Convert an array of gamma-corrected sRGB values in the 0.0 to 1.0 range to HSL.
53779
+ *
53780
+ * @param {Color} RGB [r, g, b]
53781
+ * - Red component 0..1
53782
+ * - Green component 0..1
53783
+ * - Blue component 0..1
53784
+ * @return {number[]} Array of HSL values: Hue as degrees 0..360, Saturation and Lightness as percentages 0..100
53785
+ *
53786
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53787
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/utilities.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53788
+ *
53789
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/better-rgbToHsl.js
53790
+ */
53791
+ /**
53792
+ * Convert an array of a98-rgb values in the range 0.0 - 1.0
53793
+ * to linear light (un-companded) form. Negative values are also now accepted
53794
+ *
53795
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53796
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53797
+ */
53798
+ /**
53799
+ * @description Calculate deltaE OK which is the simple root sum of squares
53800
+ * @param {number[]} reference - Array of OKLab values: L as 0..1, a and b as -1..1
53801
+ * @param {number[]} sample - Array of OKLab values: L as 0..1, a and b as -1..1
53802
+ * @return {number} How different a color sample is from reference
53803
+ *
53804
+ * @license W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
53805
+ * @copyright This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
53806
+ * @see https://github.com/w3c/csswg-drafts/blob/main/css-color-4/deltaEOK.js
53807
+ */
53808
+ /**
53809
+ * @license MIT https://github.com/facelessuser/coloraide/blob/main/LICENSE.md
53810
+ */
53811
+ const d = {
53812
+ aliceblue: [
53813
+ 240,
53814
+ 248,
53815
+ 255
53816
+ ],
53817
+ antiquewhite: [
53818
+ 250,
53819
+ 235,
53820
+ 215
53821
+ ],
53822
+ aqua: [
53823
+ 0,
53824
+ 255,
53825
+ 255
53826
+ ],
53827
+ aquamarine: [
53828
+ 127,
53829
+ 255,
53830
+ 212
53831
+ ],
53832
+ azure: [
53833
+ 240,
53834
+ 255,
53835
+ 255
53836
+ ],
53837
+ beige: [
53838
+ 245,
53839
+ 245,
53840
+ 220
53841
+ ],
53842
+ bisque: [
53843
+ 255,
53844
+ 228,
53845
+ 196
53846
+ ],
53847
+ black: [
53848
+ 0,
53849
+ 0,
53850
+ 0
53851
+ ],
53852
+ blanchedalmond: [
53853
+ 255,
53854
+ 235,
53855
+ 205
53856
+ ],
53857
+ blue: [
53858
+ 0,
53859
+ 0,
53860
+ 255
53861
+ ],
53862
+ blueviolet: [
53863
+ 138,
53864
+ 43,
53865
+ 226
53866
+ ],
53867
+ brown: [
53868
+ 165,
53869
+ 42,
53870
+ 42
53871
+ ],
53872
+ burlywood: [
53873
+ 222,
53874
+ 184,
53875
+ 135
53876
+ ],
53877
+ cadetblue: [
53878
+ 95,
53879
+ 158,
53880
+ 160
53881
+ ],
53882
+ chartreuse: [
53883
+ 127,
53884
+ 255,
53885
+ 0
53886
+ ],
53887
+ chocolate: [
53888
+ 210,
53889
+ 105,
53890
+ 30
53891
+ ],
53892
+ coral: [
53893
+ 255,
53894
+ 127,
53895
+ 80
53896
+ ],
53897
+ cornflowerblue: [
53898
+ 100,
53899
+ 149,
53900
+ 237
53901
+ ],
53902
+ cornsilk: [
53903
+ 255,
53904
+ 248,
53905
+ 220
53906
+ ],
53907
+ crimson: [
53908
+ 220,
53909
+ 20,
53910
+ 60
53911
+ ],
53912
+ cyan: [
53913
+ 0,
53914
+ 255,
53915
+ 255
53916
+ ],
53917
+ darkblue: [
53918
+ 0,
53919
+ 0,
53920
+ 139
53921
+ ],
53922
+ darkcyan: [
53923
+ 0,
53924
+ 139,
53925
+ 139
53926
+ ],
53927
+ darkgoldenrod: [
53928
+ 184,
53929
+ 134,
53930
+ 11
53931
+ ],
53932
+ darkgray: [
53933
+ 169,
53934
+ 169,
53935
+ 169
53936
+ ],
53937
+ darkgreen: [
53938
+ 0,
53939
+ 100,
53940
+ 0
53941
+ ],
53942
+ darkgrey: [
53943
+ 169,
53944
+ 169,
53945
+ 169
53946
+ ],
53947
+ darkkhaki: [
53948
+ 189,
53949
+ 183,
53950
+ 107
53951
+ ],
53952
+ darkmagenta: [
53953
+ 139,
53954
+ 0,
53955
+ 139
53956
+ ],
53957
+ darkolivegreen: [
53958
+ 85,
53959
+ 107,
53960
+ 47
53961
+ ],
53962
+ darkorange: [
53963
+ 255,
53964
+ 140,
53965
+ 0
53966
+ ],
53967
+ darkorchid: [
53968
+ 153,
53969
+ 50,
53970
+ 204
53971
+ ],
53972
+ darkred: [
53973
+ 139,
53974
+ 0,
53975
+ 0
53976
+ ],
53977
+ darksalmon: [
53978
+ 233,
53979
+ 150,
53980
+ 122
53981
+ ],
53982
+ darkseagreen: [
53983
+ 143,
53984
+ 188,
53985
+ 143
53986
+ ],
53987
+ darkslateblue: [
53988
+ 72,
53989
+ 61,
53990
+ 139
53991
+ ],
53992
+ darkslategray: [
53993
+ 47,
53994
+ 79,
53995
+ 79
53996
+ ],
53997
+ darkslategrey: [
53998
+ 47,
53999
+ 79,
54000
+ 79
54001
+ ],
54002
+ darkturquoise: [
54003
+ 0,
54004
+ 206,
54005
+ 209
54006
+ ],
54007
+ darkviolet: [
54008
+ 148,
54009
+ 0,
54010
+ 211
54011
+ ],
54012
+ deeppink: [
54013
+ 255,
54014
+ 20,
54015
+ 147
54016
+ ],
54017
+ deepskyblue: [
54018
+ 0,
54019
+ 191,
54020
+ 255
54021
+ ],
54022
+ dimgray: [
54023
+ 105,
54024
+ 105,
54025
+ 105
54026
+ ],
54027
+ dimgrey: [
54028
+ 105,
54029
+ 105,
54030
+ 105
54031
+ ],
54032
+ dodgerblue: [
54033
+ 30,
54034
+ 144,
54035
+ 255
54036
+ ],
54037
+ firebrick: [
54038
+ 178,
54039
+ 34,
54040
+ 34
54041
+ ],
54042
+ floralwhite: [
54043
+ 255,
54044
+ 250,
54045
+ 240
54046
+ ],
54047
+ forestgreen: [
54048
+ 34,
54049
+ 139,
54050
+ 34
54051
+ ],
54052
+ fuchsia: [
54053
+ 255,
54054
+ 0,
54055
+ 255
54056
+ ],
54057
+ gainsboro: [
54058
+ 220,
54059
+ 220,
54060
+ 220
54061
+ ],
54062
+ ghostwhite: [
54063
+ 248,
54064
+ 248,
54065
+ 255
54066
+ ],
54067
+ gold: [
54068
+ 255,
54069
+ 215,
54070
+ 0
54071
+ ],
54072
+ goldenrod: [
54073
+ 218,
54074
+ 165,
54075
+ 32
54076
+ ],
54077
+ gray: [
54078
+ 128,
54079
+ 128,
54080
+ 128
54081
+ ],
54082
+ green: [
54083
+ 0,
54084
+ 128,
54085
+ 0
54086
+ ],
54087
+ greenyellow: [
54088
+ 173,
54089
+ 255,
54090
+ 47
54091
+ ],
54092
+ grey: [
54093
+ 128,
54094
+ 128,
54095
+ 128
54096
+ ],
54097
+ honeydew: [
54098
+ 240,
54099
+ 255,
54100
+ 240
54101
+ ],
54102
+ hotpink: [
54103
+ 255,
54104
+ 105,
54105
+ 180
54106
+ ],
54107
+ indianred: [
54108
+ 205,
54109
+ 92,
54110
+ 92
54111
+ ],
54112
+ indigo: [
54113
+ 75,
54114
+ 0,
54115
+ 130
54116
+ ],
54117
+ ivory: [
54118
+ 255,
54119
+ 255,
54120
+ 240
54121
+ ],
54122
+ khaki: [
54123
+ 240,
54124
+ 230,
54125
+ 140
54126
+ ],
54127
+ lavender: [
54128
+ 230,
54129
+ 230,
54130
+ 250
54131
+ ],
54132
+ lavenderblush: [
54133
+ 255,
54134
+ 240,
54135
+ 245
54136
+ ],
54137
+ lawngreen: [
54138
+ 124,
54139
+ 252,
54140
+ 0
54141
+ ],
54142
+ lemonchiffon: [
54143
+ 255,
54144
+ 250,
54145
+ 205
54146
+ ],
54147
+ lightblue: [
54148
+ 173,
54149
+ 216,
54150
+ 230
54151
+ ],
54152
+ lightcoral: [
54153
+ 240,
54154
+ 128,
54155
+ 128
54156
+ ],
54157
+ lightcyan: [
54158
+ 224,
54159
+ 255,
54160
+ 255
54161
+ ],
54162
+ lightgoldenrodyellow: [
54163
+ 250,
54164
+ 250,
54165
+ 210
54166
+ ],
54167
+ lightgray: [
54168
+ 211,
54169
+ 211,
54170
+ 211
54171
+ ],
54172
+ lightgreen: [
54173
+ 144,
54174
+ 238,
54175
+ 144
54176
+ ],
54177
+ lightgrey: [
54178
+ 211,
54179
+ 211,
54180
+ 211
54181
+ ],
54182
+ lightpink: [
54183
+ 255,
54184
+ 182,
54185
+ 193
54186
+ ],
54187
+ lightsalmon: [
54188
+ 255,
54189
+ 160,
54190
+ 122
54191
+ ],
54192
+ lightseagreen: [
54193
+ 32,
54194
+ 178,
54195
+ 170
54196
+ ],
54197
+ lightskyblue: [
54198
+ 135,
54199
+ 206,
54200
+ 250
54201
+ ],
54202
+ lightslategray: [
54203
+ 119,
54204
+ 136,
54205
+ 153
54206
+ ],
54207
+ lightslategrey: [
54208
+ 119,
54209
+ 136,
54210
+ 153
54211
+ ],
54212
+ lightsteelblue: [
54213
+ 176,
54214
+ 196,
54215
+ 222
54216
+ ],
54217
+ lightyellow: [
54218
+ 255,
54219
+ 255,
54220
+ 224
54221
+ ],
54222
+ lime: [
54223
+ 0,
54224
+ 255,
54225
+ 0
54226
+ ],
54227
+ limegreen: [
54228
+ 50,
54229
+ 205,
54230
+ 50
54231
+ ],
54232
+ linen: [
54233
+ 250,
54234
+ 240,
54235
+ 230
54236
+ ],
54237
+ magenta: [
54238
+ 255,
54239
+ 0,
54240
+ 255
54241
+ ],
54242
+ maroon: [
54243
+ 128,
54244
+ 0,
54245
+ 0
54246
+ ],
54247
+ mediumaquamarine: [
54248
+ 102,
54249
+ 205,
54250
+ 170
54251
+ ],
54252
+ mediumblue: [
54253
+ 0,
54254
+ 0,
54255
+ 205
54256
+ ],
54257
+ mediumorchid: [
54258
+ 186,
54259
+ 85,
54260
+ 211
54261
+ ],
54262
+ mediumpurple: [
54263
+ 147,
54264
+ 112,
54265
+ 219
54266
+ ],
54267
+ mediumseagreen: [
54268
+ 60,
54269
+ 179,
54270
+ 113
54271
+ ],
54272
+ mediumslateblue: [
54273
+ 123,
54274
+ 104,
54275
+ 238
54276
+ ],
54277
+ mediumspringgreen: [
54278
+ 0,
54279
+ 250,
54280
+ 154
54281
+ ],
54282
+ mediumturquoise: [
54283
+ 72,
54284
+ 209,
54285
+ 204
54286
+ ],
54287
+ mediumvioletred: [
54288
+ 199,
54289
+ 21,
54290
+ 133
54291
+ ],
54292
+ midnightblue: [
54293
+ 25,
54294
+ 25,
54295
+ 112
54296
+ ],
54297
+ mintcream: [
54298
+ 245,
54299
+ 255,
54300
+ 250
54301
+ ],
54302
+ mistyrose: [
54303
+ 255,
54304
+ 228,
54305
+ 225
54306
+ ],
54307
+ moccasin: [
54308
+ 255,
54309
+ 228,
54310
+ 181
54311
+ ],
54312
+ navajowhite: [
54313
+ 255,
54314
+ 222,
54315
+ 173
54316
+ ],
54317
+ navy: [
54318
+ 0,
54319
+ 0,
54320
+ 128
54321
+ ],
54322
+ oldlace: [
54323
+ 253,
54324
+ 245,
54325
+ 230
54326
+ ],
54327
+ olive: [
54328
+ 128,
54329
+ 128,
54330
+ 0
54331
+ ],
54332
+ olivedrab: [
54333
+ 107,
54334
+ 142,
54335
+ 35
54336
+ ],
54337
+ orange: [
54338
+ 255,
54339
+ 165,
54340
+ 0
54341
+ ],
54342
+ orangered: [
54343
+ 255,
54344
+ 69,
54345
+ 0
54346
+ ],
54347
+ orchid: [
54348
+ 218,
54349
+ 112,
54350
+ 214
54351
+ ],
54352
+ palegoldenrod: [
54353
+ 238,
54354
+ 232,
54355
+ 170
54356
+ ],
54357
+ palegreen: [
54358
+ 152,
54359
+ 251,
54360
+ 152
54361
+ ],
54362
+ paleturquoise: [
54363
+ 175,
54364
+ 238,
54365
+ 238
54366
+ ],
54367
+ palevioletred: [
54368
+ 219,
54369
+ 112,
54370
+ 147
54371
+ ],
54372
+ papayawhip: [
54373
+ 255,
54374
+ 239,
54375
+ 213
54376
+ ],
54377
+ peachpuff: [
54378
+ 255,
54379
+ 218,
54380
+ 185
54381
+ ],
54382
+ peru: [
54383
+ 205,
54384
+ 133,
54385
+ 63
54386
+ ],
54387
+ pink: [
54388
+ 255,
54389
+ 192,
54390
+ 203
54391
+ ],
54392
+ plum: [
54393
+ 221,
54394
+ 160,
54395
+ 221
54396
+ ],
54397
+ powderblue: [
54398
+ 176,
54399
+ 224,
54400
+ 230
54401
+ ],
54402
+ purple: [
54403
+ 128,
54404
+ 0,
54405
+ 128
54406
+ ],
54407
+ rebeccapurple: [
54408
+ 102,
54409
+ 51,
54410
+ 153
54411
+ ],
54412
+ red: [
54413
+ 255,
54414
+ 0,
54415
+ 0
54416
+ ],
54417
+ rosybrown: [
54418
+ 188,
54419
+ 143,
54420
+ 143
54421
+ ],
54422
+ royalblue: [
54423
+ 65,
54424
+ 105,
54425
+ 225
54426
+ ],
54427
+ saddlebrown: [
54428
+ 139,
54429
+ 69,
54430
+ 19
54431
+ ],
54432
+ salmon: [
54433
+ 250,
54434
+ 128,
54435
+ 114
54436
+ ],
54437
+ sandybrown: [
54438
+ 244,
54439
+ 164,
54440
+ 96
54441
+ ],
54442
+ seagreen: [
54443
+ 46,
54444
+ 139,
54445
+ 87
54446
+ ],
54447
+ seashell: [
54448
+ 255,
54449
+ 245,
54450
+ 238
54451
+ ],
54452
+ sienna: [
54453
+ 160,
54454
+ 82,
54455
+ 45
54456
+ ],
54457
+ silver: [
54458
+ 192,
54459
+ 192,
54460
+ 192
54461
+ ],
54462
+ skyblue: [
54463
+ 135,
54464
+ 206,
54465
+ 235
54466
+ ],
54467
+ slateblue: [
54468
+ 106,
54469
+ 90,
54470
+ 205
54471
+ ],
54472
+ slategray: [
54473
+ 112,
54474
+ 128,
54475
+ 144
54476
+ ],
54477
+ slategrey: [
54478
+ 112,
54479
+ 128,
54480
+ 144
54481
+ ],
54482
+ snow: [
54483
+ 255,
54484
+ 250,
54485
+ 250
54486
+ ],
54487
+ springgreen: [
54488
+ 0,
54489
+ 255,
54490
+ 127
54491
+ ],
54492
+ steelblue: [
54493
+ 70,
54494
+ 130,
54495
+ 180
54496
+ ],
54497
+ tan: [
54498
+ 210,
54499
+ 180,
54500
+ 140
54501
+ ],
54502
+ teal: [
54503
+ 0,
54504
+ 128,
54505
+ 128
54506
+ ],
54507
+ thistle: [
54508
+ 216,
54509
+ 191,
54510
+ 216
54511
+ ],
54512
+ tomato: [
54513
+ 255,
54514
+ 99,
54515
+ 71
54516
+ ],
54517
+ turquoise: [
54518
+ 64,
54519
+ 224,
54520
+ 208
54521
+ ],
54522
+ violet: [
54523
+ 238,
54524
+ 130,
54525
+ 238
54526
+ ],
54527
+ wheat: [
54528
+ 245,
54529
+ 222,
54530
+ 179
54531
+ ],
54532
+ white: [
54533
+ 255,
54534
+ 255,
54535
+ 255
54536
+ ],
54537
+ whitesmoke: [
54538
+ 245,
54539
+ 245,
54540
+ 245
54541
+ ],
54542
+ yellow: [
54543
+ 255,
54544
+ 255,
54545
+ 0
54546
+ ],
54547
+ yellowgreen: [
54548
+ 154,
54549
+ 205,
54550
+ 50
54551
+ ]
54552
+ };
54553
+ //#endregion
53248
54554
  //#region ../../node_modules/.pnpm/@csstools+postcss-text-decoration-shorthand@5.0.3_postcss@8.5.15/node_modules/@csstools/postcss-text-decoration-shorthand/dist/index.mjs
53249
54555
  const o = /^text-decoration$/i, creator$4 = (t) => {
53250
54556
  const c = Object.assign({ preserve: !0 }, t);
@@ -53445,7 +54751,7 @@ const r = [
53445
54751
  ], i = [
53446
54752
  "currentcolor",
53447
54753
  "transparent",
53448
- ...Object.keys(d$2)
54754
+ ...Object.keys(d)
53449
54755
  ];
53450
54756
  function genericNodeParts() {
53451
54757
  return {
@@ -53474,7 +54780,7 @@ const e$2 = /(?<![-\w])(?:asin|acos|atan|atan2|sin|cos|tan)\(/i, creator$3 = (o)
53474
54780
  creator$3.postcss = !0;
53475
54781
  //#endregion
53476
54782
  //#region ../../node_modules/.pnpm/@csstools+postcss-unset-value@5.0.0_postcss@8.5.15/node_modules/@csstools/postcss-unset-value/dist/index.mjs
53477
- const e$1 = new Set([
54783
+ const e$1 = /* @__PURE__ */ new Set([
53478
54784
  "block-ellipsis",
53479
54785
  "border-boundary",
53480
54786
  "border-collapse",
@@ -53613,7 +54919,7 @@ const e$1 = new Set([
53613
54919
  "word-spacing",
53614
54920
  "word-wrap",
53615
54921
  "writing-mode"
53616
- ]), t = new Set([
54922
+ ]), t = /* @__PURE__ */ new Set([
53617
54923
  "align-content",
53618
54924
  "align-items",
53619
54925
  "align-self",
@@ -54050,7 +55356,7 @@ var Cs = [
54050
55356
  function featureIsLess(s, o) {
54051
55357
  return s.id === o.id ? s[xs] && o[xs] || s[Fs] && o[Fs] ? clamp(-1, s[Os] - o[Os], 1) : s[xs] || o[Fs] ? -1 : s[Fs] || o[xs] ? 1 : 0 : clamp(-1, Cs.indexOf(s.id) - Cs.indexOf(o.id), 1);
54052
55358
  }
54053
- const $s = new Map([
55359
+ const $s = /* @__PURE__ */ new Map([
54054
55360
  ["all-property", creator$52],
54055
55361
  ["alpha-function", postcssPlugin$16],
54056
55362
  ["any-link-pseudo-class", creator$50],
@@ -54236,7 +55542,7 @@ function intOrZero(s) {
54236
55542
  const o = parseInt(s, 10);
54237
55543
  return Number.isNaN(o) ? 0 : o;
54238
55544
  }
54239
- const Ls = new Set(["progressive-custom-properties"]);
55545
+ const Ls = /* @__PURE__ */ new Set(["progressive-custom-properties"]);
54240
55546
  function listFeatures(s, o, t, r) {
54241
55547
  const i = Object(o.features), a = "enableClientSidePolyfills" in o && o.enableClientSidePolyfills, c = Object(o.insertBefore), p = Object(o.insertAfter), n = o.browsers ? void 0 : o.env, l = o.browsers, m = clamp(0, intOrZero(o.minimumVendorImplementations), 3);
54242
55548
  m > 0 && r.log(`Using features with ${m} or more vendor implementations.`);
@@ -54816,7 +56122,7 @@ function getCalcDuplicateCleaner(options) {
54816
56122
  return calcDuplicateCleanerPlugin;
54817
56123
  }
54818
56124
  //#endregion
54819
- //#region ../../node_modules/.pnpm/es-toolkit@1.48.1/node_modules/es-toolkit/dist/object/omit.mjs
56125
+ //#region ../../node_modules/.pnpm/es-toolkit@1.49.0/node_modules/es-toolkit/dist/object/omit.mjs
54820
56126
  /**
54821
56127
  * Creates a new object with specified keys omitted.
54822
56128
  *
@@ -55290,7 +56596,7 @@ for (const [a, b] of MIRROR_PROP_PAIRS) {
55290
56596
  SPACING_PROP_SET.add(a);
55291
56597
  SPACING_PROP_SET.add(b);
55292
56598
  }
55293
- const LEGACY_WEBKIT_SPACING_PROPS = new Set([
56599
+ const LEGACY_WEBKIT_SPACING_PROPS = /* @__PURE__ */ new Set([
55294
56600
  "-webkit-margin-start",
55295
56601
  "-webkit-margin-end",
55296
56602
  "-webkit-margin-before",
@@ -55357,12 +56663,12 @@ function normalizeSpacingDeclarations(rule) {
55357
56663
  }
55358
56664
  //#endregion
55359
56665
  //#region src/selectorParser/rule-transformer/pseudos.ts
55360
- const RTL_LANGUAGE_ANY_PSEUDO_SET = new Set([
56666
+ const RTL_LANGUAGE_ANY_PSEUDO_SET = /* @__PURE__ */ new Set([
55361
56667
  ":-moz-any",
55362
56668
  ":-webkit-any",
55363
56669
  ":lang"
55364
56670
  ]);
55365
- const EMPTY_FUNCTIONAL_PSEUDO_CLEANUP_SET = new Set([
56671
+ const EMPTY_FUNCTIONAL_PSEUDO_CLEANUP_SET = /* @__PURE__ */ new Set([
55366
56672
  ":not",
55367
56673
  ":is",
55368
56674
  ":where",
@@ -55372,8 +56678,8 @@ const EMPTY_FUNCTIONAL_PSEUDO_CLEANUP_SET = new Set([
55372
56678
  ":-moz-any",
55373
56679
  ":lang"
55374
56680
  ]);
55375
- const EXPANDABLE_FUNCTIONAL_PSEUDO_SET = new Set([":is", ":where"]);
55376
- const UNSUPPORTED_PSEUDO_ELEMENT_SELECTOR_SET = new Set([
56681
+ const EXPANDABLE_FUNCTIONAL_PSEUDO_SET = /* @__PURE__ */ new Set([":is", ":where"]);
56682
+ const UNSUPPORTED_PSEUDO_ELEMENT_SELECTOR_SET = /* @__PURE__ */ new Set([
55377
56683
  ":after",
55378
56684
  ":before",
55379
56685
  "::after",
@@ -55383,13 +56689,13 @@ const UNSUPPORTED_PSEUDO_ELEMENT_SELECTOR_SET = new Set([
55383
56689
  "::-webkit-backdrop",
55384
56690
  "::file-selector-button"
55385
56691
  ]);
55386
- const MINI_PROGRAM_UNSUPPORTED_PSEUDO_ELEMENT_SELECTOR_SET = new Set([
56692
+ const MINI_PROGRAM_UNSUPPORTED_PSEUDO_ELEMENT_SELECTOR_SET = /* @__PURE__ */ new Set([
55387
56693
  "::backdrop",
55388
56694
  "::-ms-backdrop",
55389
56695
  "::-webkit-backdrop",
55390
56696
  "::file-selector-button"
55391
56697
  ]);
55392
- const NORMALIZED_PSEUDO_ELEMENT_SELECTOR = new Map([[":before", "::before"], [":after", "::after"]]);
56698
+ const NORMALIZED_PSEUDO_ELEMENT_SELECTOR = /* @__PURE__ */ new Map([[":before", "::before"], [":after", "::after"]]);
55393
56699
  function isRtlLanguageAnyPseudo(node) {
55394
56700
  return node.type === "pseudo" && RTL_LANGUAGE_ANY_PSEUDO_SET.has(node.value);
55395
56701
  }
@@ -55747,7 +57053,7 @@ function appendRuleSelector(rule, selector, meta) {
55747
57053
  }
55748
57054
  //#endregion
55749
57055
  //#region src/plugins/post/decl-dedupe.ts
55750
- const logicalPropMap = new Map([
57056
+ const logicalPropMap = /* @__PURE__ */ new Map([
55751
57057
  ["margin-inline-start", "margin-left"],
55752
57058
  ["margin-inline-end", "margin-right"],
55753
57059
  ["margin-block-start", "margin-top"],
@@ -55763,7 +57069,7 @@ const logicalPropMap = new Map([
55763
57069
  ["border-inline-start-width", "border-left-width"],
55764
57070
  ["border-inline-end-width", "border-right-width"]
55765
57071
  ]);
55766
- const variablePriorityProps = new Set([
57072
+ const variablePriorityProps = /* @__PURE__ */ new Set([
55767
57073
  "margin-left",
55768
57074
  "margin-right",
55769
57075
  "margin-top",
@@ -55964,7 +57270,7 @@ function createRootSpecificityCleaner(options) {
55964
57270
  const specificityMatchingName = getSpecificityMatchingName(options);
55965
57271
  const selectors = normalizeSelectorList(options.cssSelectorReplacement?.root);
55966
57272
  if (selectors.length === 0) return;
55967
- const specificityNames = new Set([...ROOT_SPECIFICITY_MATCHING_NAMES, ...specificityMatchingName ? [specificityMatchingName] : []]);
57273
+ const specificityNames = /* @__PURE__ */ new Set([...ROOT_SPECIFICITY_MATCHING_NAMES, ...specificityMatchingName ? [specificityMatchingName] : []]);
55968
57274
  const targets = selectors.map((selector) => selector?.trim()).filter((selector) => Boolean(selector?.length)).flatMap((selector) => [...specificityNames].map((name) => ({
55969
57275
  match: `${selector}:not(.${name})`,
55970
57276
  spacedMatch: `${selector} :not(.${name})`,
@@ -55996,7 +57302,7 @@ const DEFAULT_ROOT_SELECTORS$1 = [
55996
57302
  ".tw-root",
55997
57303
  "wx-root-portal-content"
55998
57304
  ];
55999
- const LEGACY_FLEXBOX_DECLARATION_PROPS = new Set([
57305
+ const LEGACY_FLEXBOX_DECLARATION_PROPS = /* @__PURE__ */ new Set([
56000
57306
  "-webkit-align-content",
56001
57307
  "-webkit-align-items",
56002
57308
  "-webkit-align-self",
@@ -56010,7 +57316,7 @@ const LEGACY_FLEXBOX_DECLARATION_PROPS = new Set([
56010
57316
  "-webkit-justify-content",
56011
57317
  "-webkit-order"
56012
57318
  ]);
56013
- const LEGACY_FLEXBOX_DISPLAY_VALUES = new Set(["-webkit-flex", "-webkit-inline-flex"]);
57319
+ const LEGACY_FLEXBOX_DISPLAY_VALUES = /* @__PURE__ */ new Set(["-webkit-flex", "-webkit-inline-flex"]);
56014
57320
  function normalizeRootSelectors(value) {
56015
57321
  if (value === void 0 || value === false) return [];
56016
57322
  return Array.isArray(value) ? value.filter(Boolean) : [value];
@@ -56625,7 +57931,7 @@ function createStyleHandler(options) {
56625
57931
  }
56626
57932
  //#endregion
56627
57933
  //#region src/postcss-config.ts
56628
- const tailwindPostcssPluginNames = new Set(["tailwindcss", "@tailwindcss/postcss"]);
57934
+ const tailwindPostcssPluginNames = /* @__PURE__ */ new Set(["tailwindcss", "@tailwindcss/postcss"]);
56629
57935
  function getPostcssPluginName(plugin) {
56630
57936
  if (!plugin) return;
56631
57937
  if (typeof plugin === "function" && "postcss" in plugin) try {
@@ -56668,14 +57974,14 @@ async function resolveFilteredPostcssConfig(root) {
56668
57974
  //#endregion
56669
57975
  //#region src/vite-css-rules.ts
56670
57976
  const MINI_PROGRAM_PREFLIGHT_SELECTOR_KEY = "view,text,::after,::before";
56671
- const MINI_PROGRAM_PREFLIGHT_SELECTOR_KEYS = new Set([
57977
+ const MINI_PROGRAM_PREFLIGHT_SELECTOR_KEYS = /* @__PURE__ */ new Set([
56672
57978
  "view",
56673
57979
  "text",
56674
57980
  "::after",
56675
57981
  "::before"
56676
57982
  ]);
56677
57983
  const MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEY = ":host,page,.tw-root,wx-root-portal-content";
56678
- const MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEYS = new Set([
57984
+ const MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEYS = /* @__PURE__ */ new Set([
56679
57985
  ":host",
56680
57986
  "page",
56681
57987
  ".tw-root",
@@ -57053,4 +58359,4 @@ function containsCssAfterMinify(baseCss, css) {
57053
58359
  return ruleKeys.size > 0 && [...ruleKeys].every((key) => baseRuleKeys.has(key));
57054
58360
  }
57055
58361
  //#endregion
57056
- export { CSS_MACRO_POSTCSS_PLUGIN_NAME, CSS_MACRO_STYLE_OPTIONS_MARKER, compileCssMacroConditionalComments, containsCssAfterMinify, convertTailwindcssRpxDeclarationToRem, convertTailwindcssRpxDeclarationsToRem, convertTailwindcssRpxValueToRem, createFallbackPlaceholderReplacer, createInjectPreflight, createStyleHandler, createStylePipeline, createWeappTailwindcssPostcssPlugin, creator as cssMacroPostcssPlugin, filterExistingCssRules, finalizeMiniProgramCss, getPostcssPluginName, hasCssMacroStyleOptions, hasCssMacroTailwindV4Directive, hasMiniProgramCssSpecificityPlaceholders, hoistTailwindPreflightBase, internalCssSelectorReplacer, mergeCoveredCssRuleDeclarations, mergeMiniProgramPreflightRuleDeclarations, mergeMiniProgramThemeScopeRuleDeclarations, normalizeMiniProgramPrefixedDeclaration, normalizeModernColorValue, normalizeTailwindcssRpxDeclaration, normalizeTailwindcssRpxDeclarations, normalizeTailwindcssWebRpxDeclarations, postcss, postcssHtmlTransform, protectDynamicColorMixAlpha, pruneMiniProgramGeneratedCss, removeTailwindPostcssPlugins, removeUnsupportedAtSupports, removeUnsupportedCascadeLayers, removeUnsupportedMiniProgramAtRules, removeUnsupportedMiniProgramPrefixedAtRule, resolveFilteredPostcssConfig, stripMiniProgramCssSpecificityPlaceholders, transformCssMacroCss, unitConversionComposeRules, unitConversionPresets, withCssMacroStyleOptions };
58362
+ export { CSS_MACRO_POSTCSS_PLUGIN_NAME, CSS_MACRO_STYLE_OPTIONS_MARKER, compileCssMacroConditionalComments, containsCssAfterMinify, convertTailwindcssRpxDeclarationToRem, convertTailwindcssRpxDeclarationsToRem, convertTailwindcssRpxValueToRem, createFallbackPlaceholderReplacer, createInjectPreflight, createStyleHandler, createStylePipeline, createWeappTailwindcssPostcssPlugin, creator as cssMacroPostcssPlugin, filterExistingCssRules, finalizeMiniProgramCss, getPostcssPluginName, hasCssMacroStyleOptions, hasCssMacroTailwindV4Directive, hasMiniProgramCssSpecificityPlaceholders, hoistTailwindPreflightBase, internalCssSelectorReplacer, mergeCoveredCssRuleDeclarations, mergeMiniProgramPreflightRuleDeclarations, mergeMiniProgramThemeScopeRuleDeclarations, normalizeMiniProgramPrefixedDeclaration, normalizeModernColorValue, normalizeTailwindcssRpxDeclaration, normalizeTailwindcssRpxDeclarations, normalizeTailwindcssWebRpxDeclarations, normalizeWebCssCompatOptions, postcss, postcssHtmlTransform, protectDynamicColorMixAlpha, pruneMiniProgramGeneratedCss, removeTailwindPostcssPlugins, removeUnsupportedAtSupports, removeUnsupportedCascadeLayers, removeUnsupportedMiniProgramAtRules, removeUnsupportedMiniProgramPrefixedAtRule, resolveFilteredPostcssConfig, stripMiniProgramCssSpecificityPlaceholders, transformCssMacroCss, transformWebCssCompat, unitConversionComposeRules, unitConversionPresets, withCssMacroStyleOptions };