tailwindcss 3.0.18 → 3.0.19
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/CHANGELOG.md +14 -2
- package/LICENSE +1 -2
- package/lib/css/preflight.css +1 -1
- package/lib/lib/generateRules.js +67 -29
- package/lib/lib/setupContextUtils.js +14 -1
- package/lib/util/parseBoxShadowValue.js +1 -1
- package/lib/util/prefixSelector.js +4 -5
- package/package.json +5 -10
- package/peers/index.js +173 -409
- package/src/css/preflight.css +1 -1
- package/src/lib/generateRules.js +74 -24
- package/src/lib/setupContextUtils.js +16 -3
- package/src/util/parseBoxShadowValue.js +1 -1
- package/src/util/prefixSelector.js +7 -5
package/peers/index.js
CHANGED
|
@@ -25016,20 +25016,20 @@ var require_dist3 = __commonJS({
|
|
|
25016
25016
|
}
|
|
25017
25017
|
function pluginCreator(opts = {}) {
|
|
25018
25018
|
const remover = new _commentRemover.default(opts);
|
|
25019
|
-
const matcherCache =
|
|
25020
|
-
const replacerCache =
|
|
25019
|
+
const matcherCache = /* @__PURE__ */ new Map();
|
|
25020
|
+
const replacerCache = /* @__PURE__ */ new Map();
|
|
25021
25021
|
function matchesComments(source) {
|
|
25022
|
-
if (matcherCache
|
|
25023
|
-
return matcherCache
|
|
25022
|
+
if (matcherCache.has(source)) {
|
|
25023
|
+
return matcherCache.get(source);
|
|
25024
25024
|
}
|
|
25025
25025
|
const result = (0, _commentParser.default)(source).filter(([type]) => type);
|
|
25026
|
-
matcherCache
|
|
25026
|
+
matcherCache.set(source, result);
|
|
25027
25027
|
return result;
|
|
25028
25028
|
}
|
|
25029
25029
|
function replaceComments(source, space, separator = " ") {
|
|
25030
25030
|
const key = source + "@|@" + separator;
|
|
25031
|
-
if (replacerCache
|
|
25032
|
-
return replacerCache
|
|
25031
|
+
if (replacerCache.has(key)) {
|
|
25032
|
+
return replacerCache.get(key);
|
|
25033
25033
|
}
|
|
25034
25034
|
const parsed = (0, _commentParser.default)(source).reduce((value, [type, start, end]) => {
|
|
25035
25035
|
const contents = source.slice(start, end);
|
|
@@ -25042,7 +25042,7 @@ var require_dist3 = __commonJS({
|
|
|
25042
25042
|
return `${value}/*${contents}*/`;
|
|
25043
25043
|
}, "");
|
|
25044
25044
|
const result = space(parsed).join(" ");
|
|
25045
|
-
replacerCache
|
|
25045
|
+
replacerCache.set(key, result);
|
|
25046
25046
|
return result;
|
|
25047
25047
|
}
|
|
25048
25048
|
return {
|
|
@@ -26557,9 +26557,9 @@ var require_isColorStop = __commonJS({
|
|
|
26557
26557
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
26558
26558
|
}
|
|
26559
26559
|
(0, _colord.extend)([_names.default]);
|
|
26560
|
-
var
|
|
26560
|
+
var lengthUnits = /* @__PURE__ */ new Set(["PX", "IN", "CM", "MM", "EM", "REM", "POINTS", "PC", "EX", "CH", "VW", "VH", "VMIN", "VMAX", "%"]);
|
|
26561
26561
|
function isCSSLengthUnit(input) {
|
|
26562
|
-
return
|
|
26562
|
+
return lengthUnits.has(input.toUpperCase());
|
|
26563
26563
|
}
|
|
26564
26564
|
function isStop(str) {
|
|
26565
26565
|
let stop = !str;
|
|
@@ -63819,15 +63819,7 @@ var require_dist9 = __commonJS({
|
|
|
63819
63819
|
node.nodes = [nodes[4]];
|
|
63820
63820
|
}
|
|
63821
63821
|
}
|
|
63822
|
-
var reducers =
|
|
63823
|
-
matrix3d,
|
|
63824
|
-
rotate3d,
|
|
63825
|
-
rotateZ,
|
|
63826
|
-
scale,
|
|
63827
|
-
scale3d,
|
|
63828
|
-
translate,
|
|
63829
|
-
translate3d
|
|
63830
|
-
};
|
|
63822
|
+
var reducers = /* @__PURE__ */ new Map([["matrix3d", matrix3d], ["rotate3d", rotate3d], ["rotateZ", rotateZ], ["scale", scale], ["scale3d", scale3d], ["translate", translate], ["translate3d", translate3d]]);
|
|
63831
63823
|
function normalizeReducerName(name) {
|
|
63832
63824
|
const lowerCasedName = name.toLowerCase();
|
|
63833
63825
|
if (lowerCasedName === "rotatez") {
|
|
@@ -63836,14 +63828,12 @@ var require_dist9 = __commonJS({
|
|
|
63836
63828
|
return lowerCasedName;
|
|
63837
63829
|
}
|
|
63838
63830
|
function reduce(node) {
|
|
63839
|
-
|
|
63840
|
-
|
|
63841
|
-
|
|
63842
|
-
|
|
63843
|
-
|
|
63844
|
-
|
|
63845
|
-
if (type === "function" && Object.prototype.hasOwnProperty.call(reducers, normalizedReducerName)) {
|
|
63846
|
-
reducers[normalizedReducerName](node, nodes.reduce(getValues, []));
|
|
63831
|
+
if (node.type === "function") {
|
|
63832
|
+
const normalizedReducerName = normalizeReducerName(node.value);
|
|
63833
|
+
const reducer = reducers.get(normalizedReducerName);
|
|
63834
|
+
if (reducer !== void 0) {
|
|
63835
|
+
reducer(node, node.nodes.reduce(getValues, []));
|
|
63836
|
+
}
|
|
63847
63837
|
}
|
|
63848
63838
|
return false;
|
|
63849
63839
|
}
|
|
@@ -64005,7 +63995,7 @@ var require_dist10 = __commonJS({
|
|
|
64005
63995
|
}
|
|
64006
63996
|
return newObj;
|
|
64007
63997
|
}
|
|
64008
|
-
var LENGTH_UNITS = ["em", "ex", "ch", "rem", "vw", "vh", "vmin", "vmax", "cm", "mm", "q", "in", "pt", "pc", "px"];
|
|
63998
|
+
var LENGTH_UNITS = /* @__PURE__ */ new Set(["em", "ex", "ch", "rem", "vw", "vh", "vmin", "vmax", "cm", "mm", "q", "in", "pt", "pc", "px"]);
|
|
64009
63999
|
var notALength = /* @__PURE__ */ new Set(["descent-override", "ascent-override", "font-stretch", "size-adjust", "line-gap-override"]);
|
|
64010
64000
|
var keepWhenZero = /* @__PURE__ */ new Set(["stroke-dashoffset", "stroke-width", "line-height"]);
|
|
64011
64001
|
function stripLeadingDot(item) {
|
|
@@ -64021,10 +64011,10 @@ var require_dist10 = __commonJS({
|
|
|
64021
64011
|
const num = Number(pair.number);
|
|
64022
64012
|
const u = stripLeadingDot(pair.unit);
|
|
64023
64013
|
if (num === 0) {
|
|
64024
|
-
node.value = 0 + (keepZeroUnit ||
|
|
64014
|
+
node.value = 0 + (keepZeroUnit || !LENGTH_UNITS.has(u.toLowerCase()) && u !== "%" ? u : "");
|
|
64025
64015
|
} else {
|
|
64026
64016
|
node.value = (0, _convert.default)(num, u, opts);
|
|
64027
|
-
if (typeof opts.precision === "number" && u.toLowerCase() === "px" &&
|
|
64017
|
+
if (typeof opts.precision === "number" && u.toLowerCase() === "px" && pair.number.includes(".")) {
|
|
64028
64018
|
const precision = Math.pow(10, opts.precision);
|
|
64029
64019
|
node.value = Math.round(parseFloat(node.value) * precision) / precision + u;
|
|
64030
64020
|
}
|
|
@@ -64048,11 +64038,11 @@ var require_dist10 = __commonJS({
|
|
|
64048
64038
|
parent
|
|
64049
64039
|
} = decl;
|
|
64050
64040
|
const lowerCasedProp = decl.prop.toLowerCase();
|
|
64051
|
-
return
|
|
64041
|
+
return decl.value.includes("%") && (lowerCasedProp === "max-height" || lowerCasedProp === "height") || parent.parent && parent.parent.name && parent.parent.name.toLowerCase() === "keyframes" && lowerCasedProp === "stroke-dasharray" || keepWhenZero.has(lowerCasedProp);
|
|
64052
64042
|
}
|
|
64053
64043
|
function transform(opts, decl) {
|
|
64054
64044
|
const lowerCasedProp = decl.prop.toLowerCase();
|
|
64055
|
-
if (
|
|
64045
|
+
if (lowerCasedProp.includes("flex") || lowerCasedProp.indexOf("--") === 0 || notALength.has(lowerCasedProp)) {
|
|
64056
64046
|
return;
|
|
64057
64047
|
}
|
|
64058
64048
|
decl.value = (0, _postcssValueParser.default)(decl.value).walk((node) => {
|
|
@@ -70168,14 +70158,13 @@ var require_dist13 = __commonJS({
|
|
|
70168
70158
|
}
|
|
70169
70159
|
});
|
|
70170
70160
|
}
|
|
70171
|
-
|
|
70172
|
-
|
|
70173
|
-
}
|
|
70161
|
+
var browsersWithTransparentBug = /* @__PURE__ */ new Set(["ie 8", "ie 9"]);
|
|
70162
|
+
var mathFunctions = /* @__PURE__ */ new Set(["calc", "min", "max", "clamp"]);
|
|
70174
70163
|
function isMathFunctionNode(node) {
|
|
70175
70164
|
if (node.type !== "function") {
|
|
70176
70165
|
return false;
|
|
70177
70166
|
}
|
|
70178
|
-
return
|
|
70167
|
+
return mathFunctions.has(node.value.toLowerCase());
|
|
70179
70168
|
}
|
|
70180
70169
|
function transform(value, options) {
|
|
70181
70170
|
const parsed = (0, _postcssValueParser.default)(value);
|
|
@@ -70205,7 +70194,7 @@ var require_dist13 = __commonJS({
|
|
|
70205
70194
|
}
|
|
70206
70195
|
function addPluginDefaults(options, browsers) {
|
|
70207
70196
|
const defaults = {
|
|
70208
|
-
transparent: browsers.some(
|
|
70197
|
+
transparent: browsers.some((b) => browsersWithTransparentBug.has(b)) === false,
|
|
70209
70198
|
alphaHex: (0, _caniuseApi.isSupported)("css-rrggbbaa", browsers),
|
|
70210
70199
|
name: true
|
|
70211
70200
|
};
|
|
@@ -70419,7 +70408,7 @@ var require_mathfunctions = __commonJS({
|
|
|
70419
70408
|
value: true
|
|
70420
70409
|
});
|
|
70421
70410
|
exports2.default = void 0;
|
|
70422
|
-
var _default = ["calc", "clamp", "max", "min"];
|
|
70411
|
+
var _default = /* @__PURE__ */ new Set(["calc", "clamp", "max", "min"]);
|
|
70423
70412
|
exports2.default = _default;
|
|
70424
70413
|
module2.exports = exports2.default;
|
|
70425
70414
|
}
|
|
@@ -70438,8 +70427,8 @@ var require_border2 = __commonJS({
|
|
|
70438
70427
|
function _interopRequireDefault(obj) {
|
|
70439
70428
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
70440
70429
|
}
|
|
70441
|
-
var borderWidths = ["thin", "medium", "thick"];
|
|
70442
|
-
var borderStyles = [
|
|
70430
|
+
var borderWidths = /* @__PURE__ */ new Set(["thin", "medium", "thick"]);
|
|
70431
|
+
var borderStyles = /* @__PURE__ */ new Set([
|
|
70443
70432
|
"none",
|
|
70444
70433
|
"auto",
|
|
70445
70434
|
"hidden",
|
|
@@ -70451,7 +70440,7 @@ var require_border2 = __commonJS({
|
|
|
70451
70440
|
"ridge",
|
|
70452
70441
|
"inset",
|
|
70453
70442
|
"outset"
|
|
70454
|
-
];
|
|
70443
|
+
]);
|
|
70455
70444
|
function normalizeBorder(border) {
|
|
70456
70445
|
const order = {
|
|
70457
70446
|
width: "",
|
|
@@ -70464,11 +70453,11 @@ var require_border2 = __commonJS({
|
|
|
70464
70453
|
value
|
|
70465
70454
|
} = node;
|
|
70466
70455
|
if (type === "word") {
|
|
70467
|
-
if (borderStyles.
|
|
70456
|
+
if (borderStyles.has(value.toLowerCase())) {
|
|
70468
70457
|
order.style = value;
|
|
70469
70458
|
return false;
|
|
70470
70459
|
}
|
|
70471
|
-
if (borderWidths.
|
|
70460
|
+
if (borderWidths.has(value.toLowerCase()) || (0, _postcssValueParser.unit)(value.toLowerCase())) {
|
|
70472
70461
|
if (order.width !== "") {
|
|
70473
70462
|
order.width = `${order.width} ${value}`;
|
|
70474
70463
|
return false;
|
|
@@ -70480,7 +70469,7 @@ var require_border2 = __commonJS({
|
|
|
70480
70469
|
return false;
|
|
70481
70470
|
}
|
|
70482
70471
|
if (type === "function") {
|
|
70483
|
-
if (_mathfunctions.default.
|
|
70472
|
+
if (_mathfunctions.default.has(value.toLowerCase())) {
|
|
70484
70473
|
order.width = (0, _postcssValueParser.stringify)(node);
|
|
70485
70474
|
} else {
|
|
70486
70475
|
order.color = (0, _postcssValueParser.stringify)(node);
|
|
@@ -70542,7 +70531,7 @@ var require_boxShadow = __commonJS({
|
|
|
70542
70531
|
type,
|
|
70543
70532
|
value
|
|
70544
70533
|
} = node;
|
|
70545
|
-
if (type === "function" && _mathfunctions.default.
|
|
70534
|
+
if (type === "function" && _mathfunctions.default.has((0, _vendorUnprefixed.default)(value.toLowerCase()))) {
|
|
70546
70535
|
abort = true;
|
|
70547
70536
|
return;
|
|
70548
70537
|
}
|
|
@@ -70576,8 +70565,8 @@ var require_flexFlow = __commonJS({
|
|
|
70576
70565
|
value: true
|
|
70577
70566
|
});
|
|
70578
70567
|
exports2.default = normalizeFlexFlow;
|
|
70579
|
-
var flexDirection = ["row", "row-reverse", "column", "column-reverse"];
|
|
70580
|
-
var flexWrap = ["nowrap", "wrap", "wrap-reverse"];
|
|
70568
|
+
var flexDirection = /* @__PURE__ */ new Set(["row", "row-reverse", "column", "column-reverse"]);
|
|
70569
|
+
var flexWrap = /* @__PURE__ */ new Set(["nowrap", "wrap", "wrap-reverse"]);
|
|
70581
70570
|
function normalizeFlexFlow(flexFlow) {
|
|
70582
70571
|
let order = {
|
|
70583
70572
|
direction: "",
|
|
@@ -70586,11 +70575,11 @@ var require_flexFlow = __commonJS({
|
|
|
70586
70575
|
flexFlow.walk(({
|
|
70587
70576
|
value
|
|
70588
70577
|
}) => {
|
|
70589
|
-
if (
|
|
70578
|
+
if (flexDirection.has(value.toLowerCase())) {
|
|
70590
70579
|
order.direction = value;
|
|
70591
70580
|
return;
|
|
70592
70581
|
}
|
|
70593
|
-
if (
|
|
70582
|
+
if (flexWrap.has(value.toLowerCase())) {
|
|
70594
70583
|
order.wrap = value;
|
|
70595
70584
|
return;
|
|
70596
70585
|
}
|
|
@@ -70616,7 +70605,7 @@ var require_transition2 = __commonJS({
|
|
|
70616
70605
|
function _interopRequireDefault(obj) {
|
|
70617
70606
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
70618
70607
|
}
|
|
70619
|
-
var timingFunctions = ["ease", "linear", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end"];
|
|
70608
|
+
var timingFunctions = /* @__PURE__ */ new Set(["ease", "linear", "ease-in", "ease-out", "ease-in-out", "step-start", "step-end"]);
|
|
70620
70609
|
function normalizeTransition(parsed) {
|
|
70621
70610
|
let args = (0, _cssnanoUtils.getArguments)(parsed);
|
|
70622
70611
|
let values = args.reduce((list, arg) => {
|
|
@@ -70634,7 +70623,7 @@ var require_transition2 = __commonJS({
|
|
|
70634
70623
|
if (type === "space") {
|
|
70635
70624
|
return;
|
|
70636
70625
|
}
|
|
70637
|
-
if (type === "function" &&
|
|
70626
|
+
if (type === "function" && (/* @__PURE__ */ new Set(["steps", "cubic-bezier"])).has(value.toLowerCase())) {
|
|
70638
70627
|
state.timingFunction = [...state.timingFunction, node, (0, _addSpace.default)()];
|
|
70639
70628
|
} else if ((0, _postcssValueParser.unit)(value)) {
|
|
70640
70629
|
if (!state.time1.length) {
|
|
@@ -70642,7 +70631,7 @@ var require_transition2 = __commonJS({
|
|
|
70642
70631
|
} else {
|
|
70643
70632
|
state.time2 = [...state.time2, node, (0, _addSpace.default)()];
|
|
70644
70633
|
}
|
|
70645
|
-
} else if (
|
|
70634
|
+
} else if (timingFunctions.has(value.toLowerCase())) {
|
|
70646
70635
|
state.timingFunction = [...state.timingFunction, node, (0, _addSpace.default)()];
|
|
70647
70636
|
} else {
|
|
70648
70637
|
state.property = [...state.property, node, (0, _addSpace.default)()];
|
|
@@ -70886,8 +70875,8 @@ var require_listStyle = __commonJS({
|
|
|
70886
70875
|
function _interopRequireDefault(obj) {
|
|
70887
70876
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
70888
70877
|
}
|
|
70889
|
-
var definedTypes = _listStyleTypes.default["list-style-type"];
|
|
70890
|
-
var definedPosition = ["inside", "outside"];
|
|
70878
|
+
var definedTypes = new Set(_listStyleTypes.default["list-style-type"]);
|
|
70879
|
+
var definedPosition = /* @__PURE__ */ new Set(["inside", "outside"]);
|
|
70891
70880
|
function listStyleNormalizer(listStyle) {
|
|
70892
70881
|
const order = {
|
|
70893
70882
|
type: "",
|
|
@@ -70896,9 +70885,9 @@ var require_listStyle = __commonJS({
|
|
|
70896
70885
|
};
|
|
70897
70886
|
listStyle.walk((decl) => {
|
|
70898
70887
|
if (decl.type === "word") {
|
|
70899
|
-
if (definedTypes.
|
|
70888
|
+
if (definedTypes.has(decl.value)) {
|
|
70900
70889
|
order.type = `${order.type} ${decl.value}`;
|
|
70901
|
-
} else if (definedPosition.
|
|
70890
|
+
} else if (definedPosition.has(decl.value)) {
|
|
70902
70891
|
order.position = `${order.position} ${decl.value}`;
|
|
70903
70892
|
} else if (decl.value === "none") {
|
|
70904
70893
|
if (order.type.split(" ").filter((e) => e !== "" && e !== " ").includes("none")) {
|
|
@@ -71028,7 +71017,7 @@ var require_dist14 = __commonJS({
|
|
|
71028
71017
|
function shouldAbort(parsed) {
|
|
71029
71018
|
let abort = false;
|
|
71030
71019
|
parsed.walk((node) => {
|
|
71031
|
-
if (node.type === "comment" || isVariableFunctionNode(node) || node.type === "word" &&
|
|
71020
|
+
if (node.type === "comment" || isVariableFunctionNode(node) || node.type === "word" && node.value.includes(`___CSS_LOADER_IMPORT___`)) {
|
|
71032
71021
|
abort = true;
|
|
71033
71022
|
return false;
|
|
71034
71023
|
}
|
|
@@ -71085,201 +71074,6 @@ var require_dist14 = __commonJS({
|
|
|
71085
71074
|
}
|
|
71086
71075
|
});
|
|
71087
71076
|
|
|
71088
|
-
// node_modules/alphanum-sort/lib/compare.js
|
|
71089
|
-
var require_compare = __commonJS({
|
|
71090
|
-
"node_modules/alphanum-sort/lib/compare.js"(exports2, module2) {
|
|
71091
|
-
var zero = "0".charCodeAt(0);
|
|
71092
|
-
var plus = "+".charCodeAt(0);
|
|
71093
|
-
var minus = "-".charCodeAt(0);
|
|
71094
|
-
function isWhitespace(code) {
|
|
71095
|
-
return code <= 32;
|
|
71096
|
-
}
|
|
71097
|
-
function isDigit(code) {
|
|
71098
|
-
return 48 <= code && code <= 57;
|
|
71099
|
-
}
|
|
71100
|
-
function isSign(code) {
|
|
71101
|
-
return code === minus || code === plus;
|
|
71102
|
-
}
|
|
71103
|
-
module2.exports = function(opts, a, b) {
|
|
71104
|
-
var checkSign = opts.sign;
|
|
71105
|
-
var ia = 0;
|
|
71106
|
-
var ib = 0;
|
|
71107
|
-
var ma = a.length;
|
|
71108
|
-
var mb = b.length;
|
|
71109
|
-
var ca, cb;
|
|
71110
|
-
var za, zb;
|
|
71111
|
-
var na, nb;
|
|
71112
|
-
var sa, sb;
|
|
71113
|
-
var ta, tb;
|
|
71114
|
-
var bias;
|
|
71115
|
-
while (ia < ma && ib < mb) {
|
|
71116
|
-
ca = a.charCodeAt(ia);
|
|
71117
|
-
cb = b.charCodeAt(ib);
|
|
71118
|
-
za = zb = 0;
|
|
71119
|
-
na = nb = 0;
|
|
71120
|
-
sa = sb = true;
|
|
71121
|
-
bias = 0;
|
|
71122
|
-
while (isWhitespace(ca)) {
|
|
71123
|
-
ia += 1;
|
|
71124
|
-
ca = a.charCodeAt(ia);
|
|
71125
|
-
}
|
|
71126
|
-
while (isWhitespace(cb)) {
|
|
71127
|
-
ib += 1;
|
|
71128
|
-
cb = b.charCodeAt(ib);
|
|
71129
|
-
}
|
|
71130
|
-
if (checkSign) {
|
|
71131
|
-
ta = a.charCodeAt(ia + 1);
|
|
71132
|
-
if (isSign(ca) && isDigit(ta)) {
|
|
71133
|
-
if (ca === minus) {
|
|
71134
|
-
sa = false;
|
|
71135
|
-
}
|
|
71136
|
-
ia += 1;
|
|
71137
|
-
ca = ta;
|
|
71138
|
-
}
|
|
71139
|
-
tb = b.charCodeAt(ib + 1);
|
|
71140
|
-
if (isSign(cb) && isDigit(tb)) {
|
|
71141
|
-
if (cb === minus) {
|
|
71142
|
-
sb = false;
|
|
71143
|
-
}
|
|
71144
|
-
ib += 1;
|
|
71145
|
-
cb = tb;
|
|
71146
|
-
}
|
|
71147
|
-
}
|
|
71148
|
-
if (isDigit(ca) && !isDigit(cb)) {
|
|
71149
|
-
return -1;
|
|
71150
|
-
}
|
|
71151
|
-
if (!isDigit(ca) && isDigit(cb)) {
|
|
71152
|
-
return 1;
|
|
71153
|
-
}
|
|
71154
|
-
if (!sa && sb) {
|
|
71155
|
-
return -1;
|
|
71156
|
-
}
|
|
71157
|
-
if (sa && !sb) {
|
|
71158
|
-
return 1;
|
|
71159
|
-
}
|
|
71160
|
-
while (ca === zero) {
|
|
71161
|
-
za += 1;
|
|
71162
|
-
ia += 1;
|
|
71163
|
-
ca = a.charCodeAt(ia);
|
|
71164
|
-
}
|
|
71165
|
-
while (cb === zero) {
|
|
71166
|
-
zb += 1;
|
|
71167
|
-
ib += 1;
|
|
71168
|
-
cb = b.charCodeAt(ib);
|
|
71169
|
-
}
|
|
71170
|
-
while (isDigit(ca) || isDigit(cb)) {
|
|
71171
|
-
if (isDigit(ca) && isDigit(cb) && bias === 0) {
|
|
71172
|
-
if (sa) {
|
|
71173
|
-
if (ca < cb) {
|
|
71174
|
-
bias = -1;
|
|
71175
|
-
} else if (ca > cb) {
|
|
71176
|
-
bias = 1;
|
|
71177
|
-
}
|
|
71178
|
-
} else {
|
|
71179
|
-
if (ca > cb) {
|
|
71180
|
-
bias = -1;
|
|
71181
|
-
} else if (ca < cb) {
|
|
71182
|
-
bias = 1;
|
|
71183
|
-
}
|
|
71184
|
-
}
|
|
71185
|
-
}
|
|
71186
|
-
if (isDigit(ca)) {
|
|
71187
|
-
ia += 1;
|
|
71188
|
-
na += 1;
|
|
71189
|
-
ca = a.charCodeAt(ia);
|
|
71190
|
-
}
|
|
71191
|
-
if (isDigit(cb)) {
|
|
71192
|
-
ib += 1;
|
|
71193
|
-
nb += 1;
|
|
71194
|
-
cb = b.charCodeAt(ib);
|
|
71195
|
-
}
|
|
71196
|
-
}
|
|
71197
|
-
if (sa) {
|
|
71198
|
-
if (na < nb) {
|
|
71199
|
-
return -1;
|
|
71200
|
-
}
|
|
71201
|
-
if (na > nb) {
|
|
71202
|
-
return 1;
|
|
71203
|
-
}
|
|
71204
|
-
} else {
|
|
71205
|
-
if (na > nb) {
|
|
71206
|
-
return -1;
|
|
71207
|
-
}
|
|
71208
|
-
if (na < nb) {
|
|
71209
|
-
return 1;
|
|
71210
|
-
}
|
|
71211
|
-
}
|
|
71212
|
-
if (bias) {
|
|
71213
|
-
return bias;
|
|
71214
|
-
}
|
|
71215
|
-
if (sa) {
|
|
71216
|
-
if (za > zb) {
|
|
71217
|
-
return -1;
|
|
71218
|
-
}
|
|
71219
|
-
if (za < zb) {
|
|
71220
|
-
return 1;
|
|
71221
|
-
}
|
|
71222
|
-
} else {
|
|
71223
|
-
if (za < zb) {
|
|
71224
|
-
return -1;
|
|
71225
|
-
}
|
|
71226
|
-
if (za > zb) {
|
|
71227
|
-
return 1;
|
|
71228
|
-
}
|
|
71229
|
-
}
|
|
71230
|
-
if (ca < cb) {
|
|
71231
|
-
return -1;
|
|
71232
|
-
}
|
|
71233
|
-
if (ca > cb) {
|
|
71234
|
-
return 1;
|
|
71235
|
-
}
|
|
71236
|
-
ia += 1;
|
|
71237
|
-
ib += 1;
|
|
71238
|
-
}
|
|
71239
|
-
if (ma < mb) {
|
|
71240
|
-
return -1;
|
|
71241
|
-
}
|
|
71242
|
-
if (ma > mb) {
|
|
71243
|
-
return 1;
|
|
71244
|
-
}
|
|
71245
|
-
};
|
|
71246
|
-
}
|
|
71247
|
-
});
|
|
71248
|
-
|
|
71249
|
-
// node_modules/alphanum-sort/lib/index.js
|
|
71250
|
-
var require_lib12 = __commonJS({
|
|
71251
|
-
"node_modules/alphanum-sort/lib/index.js"(exports2, module2) {
|
|
71252
|
-
var compare = require_compare();
|
|
71253
|
-
function mediator(a, b) {
|
|
71254
|
-
return compare(this, a.converted, b.converted);
|
|
71255
|
-
}
|
|
71256
|
-
module2.exports = function(array, opts) {
|
|
71257
|
-
if (!Array.isArray(array) || array.length < 2) {
|
|
71258
|
-
return array;
|
|
71259
|
-
}
|
|
71260
|
-
if (typeof opts !== "object") {
|
|
71261
|
-
opts = {};
|
|
71262
|
-
}
|
|
71263
|
-
opts.sign = !!opts.sign;
|
|
71264
|
-
var insensitive = !!opts.insensitive;
|
|
71265
|
-
var result = Array(array.length);
|
|
71266
|
-
var i, max, value;
|
|
71267
|
-
for (i = 0, max = array.length; i < max; i += 1) {
|
|
71268
|
-
value = String(array[i]);
|
|
71269
|
-
result[i] = {
|
|
71270
|
-
value: array[i],
|
|
71271
|
-
converted: insensitive ? value.toLowerCase() : value
|
|
71272
|
-
};
|
|
71273
|
-
}
|
|
71274
|
-
result.sort(mediator.bind(opts));
|
|
71275
|
-
for (i = result.length - 1; ~i; i -= 1) {
|
|
71276
|
-
result[i] = result[i].value;
|
|
71277
|
-
}
|
|
71278
|
-
return result;
|
|
71279
|
-
};
|
|
71280
|
-
}
|
|
71281
|
-
});
|
|
71282
|
-
|
|
71283
71077
|
// node_modules/postcss-minify-selectors/dist/lib/canUnquote.js
|
|
71284
71078
|
var require_canUnquote = __commonJS({
|
|
71285
71079
|
"node_modules/postcss-minify-selectors/dist/lib/canUnquote.js"(exports2, module2) {
|
|
@@ -71309,13 +71103,12 @@ var require_dist15 = __commonJS({
|
|
|
71309
71103
|
value: true
|
|
71310
71104
|
});
|
|
71311
71105
|
exports2.default = void 0;
|
|
71312
|
-
var _alphanumSort = _interopRequireDefault(require_lib12());
|
|
71313
71106
|
var _postcssSelectorParser = _interopRequireDefault(require_dist11());
|
|
71314
71107
|
var _canUnquote = _interopRequireDefault(require_canUnquote());
|
|
71315
71108
|
function _interopRequireDefault(obj) {
|
|
71316
71109
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
71317
71110
|
}
|
|
71318
|
-
var pseudoElements = ["::before", "::after", "::first-letter", "::first-line"];
|
|
71111
|
+
var pseudoElements = /* @__PURE__ */ new Set(["::before", "::after", "::first-letter", "::first-line"]);
|
|
71319
71112
|
function attribute(selector) {
|
|
71320
71113
|
if (selector.value) {
|
|
71321
71114
|
if (selector.raws.value) {
|
|
@@ -71370,21 +71163,16 @@ var require_dist15 = __commonJS({
|
|
|
71370
71163
|
selector.rawsSpaceAfter = "";
|
|
71371
71164
|
selector.value = value.length ? value : " ";
|
|
71372
71165
|
}
|
|
71373
|
-
var pseudoReplacements =
|
|
71374
|
-
":nth-child": ":first-child",
|
|
71375
|
-
":nth-of-type": ":first-of-type",
|
|
71376
|
-
":nth-last-child": ":last-child",
|
|
71377
|
-
":nth-last-of-type": ":last-of-type"
|
|
71378
|
-
};
|
|
71166
|
+
var pseudoReplacements = /* @__PURE__ */ new Map([[":nth-child", ":first-child"], [":nth-of-type", ":first-of-type"], [":nth-last-child", ":last-child"], [":nth-last-of-type", ":last-of-type"]]);
|
|
71379
71167
|
function pseudo(selector) {
|
|
71380
71168
|
const value = selector.value.toLowerCase();
|
|
71381
|
-
if (selector.nodes.length === 1 && pseudoReplacements
|
|
71169
|
+
if (selector.nodes.length === 1 && pseudoReplacements.has(value)) {
|
|
71382
71170
|
const first = selector.at(0);
|
|
71383
71171
|
const one = first.at(0);
|
|
71384
71172
|
if (first.length === 1) {
|
|
71385
71173
|
if (one.value === "1") {
|
|
71386
71174
|
selector.replaceWith(_postcssSelectorParser.default.pseudo({
|
|
71387
|
-
value: pseudoReplacements
|
|
71175
|
+
value: pseudoReplacements.get(value)
|
|
71388
71176
|
}));
|
|
71389
71177
|
}
|
|
71390
71178
|
if (one.value.toLowerCase() === "even") {
|
|
@@ -71402,29 +71190,26 @@ var require_dist15 = __commonJS({
|
|
|
71402
71190
|
}
|
|
71403
71191
|
return;
|
|
71404
71192
|
}
|
|
71405
|
-
const uniques =
|
|
71193
|
+
const uniques = /* @__PURE__ */ new Set();
|
|
71406
71194
|
selector.walk((child) => {
|
|
71407
71195
|
if (child.type === "selector") {
|
|
71408
71196
|
const childStr = String(child);
|
|
71409
|
-
if (
|
|
71410
|
-
uniques.
|
|
71197
|
+
if (!uniques.has(childStr)) {
|
|
71198
|
+
uniques.add(childStr);
|
|
71411
71199
|
} else {
|
|
71412
71200
|
child.remove();
|
|
71413
71201
|
}
|
|
71414
71202
|
}
|
|
71415
71203
|
});
|
|
71416
|
-
if (
|
|
71204
|
+
if (pseudoElements.has(value)) {
|
|
71417
71205
|
selector.value = selector.value.slice(1);
|
|
71418
71206
|
}
|
|
71419
71207
|
}
|
|
71420
|
-
var tagReplacements =
|
|
71421
|
-
from: "0%",
|
|
71422
|
-
"100%": "to"
|
|
71423
|
-
};
|
|
71208
|
+
var tagReplacements = /* @__PURE__ */ new Map([["from", "0%"], ["100%", "to"]]);
|
|
71424
71209
|
function tag(selector) {
|
|
71425
71210
|
const value = selector.value.toLowerCase();
|
|
71426
|
-
if (
|
|
71427
|
-
selector.value = tagReplacements
|
|
71211
|
+
if (tagReplacements.has(value)) {
|
|
71212
|
+
selector.value = tagReplacements.get(value);
|
|
71428
71213
|
}
|
|
71429
71214
|
}
|
|
71430
71215
|
function universal(selector) {
|
|
@@ -71433,41 +71218,31 @@ var require_dist15 = __commonJS({
|
|
|
71433
71218
|
selector.remove();
|
|
71434
71219
|
}
|
|
71435
71220
|
}
|
|
71436
|
-
var reducers =
|
|
71437
|
-
attribute,
|
|
71438
|
-
combinator,
|
|
71439
|
-
pseudo,
|
|
71440
|
-
tag,
|
|
71441
|
-
universal
|
|
71442
|
-
};
|
|
71221
|
+
var reducers = /* @__PURE__ */ new Map([["attribute", attribute], ["combinator", combinator], ["pseudo", pseudo], ["tag", tag], ["universal", universal]]);
|
|
71443
71222
|
function pluginCreator() {
|
|
71444
71223
|
return {
|
|
71445
71224
|
postcssPlugin: "postcss-minify-selectors",
|
|
71446
71225
|
OnceExit(css) {
|
|
71447
71226
|
const cache = /* @__PURE__ */ new Map();
|
|
71448
71227
|
const processor = (0, _postcssSelectorParser.default)((selectors) => {
|
|
71449
|
-
|
|
71450
|
-
insensitive: true
|
|
71451
|
-
});
|
|
71452
|
-
const uniqueSelectors = [];
|
|
71228
|
+
const uniqueSelectors = /* @__PURE__ */ new Set();
|
|
71453
71229
|
selectors.walk((sel) => {
|
|
71454
|
-
const {
|
|
71455
|
-
type
|
|
71456
|
-
} = sel;
|
|
71457
71230
|
sel.spaces.before = sel.spaces.after = "";
|
|
71458
|
-
|
|
71459
|
-
|
|
71231
|
+
const reducer = reducers.get(sel.type);
|
|
71232
|
+
if (reducer !== void 0) {
|
|
71233
|
+
reducer(sel);
|
|
71460
71234
|
return;
|
|
71461
71235
|
}
|
|
71462
71236
|
const toString = String(sel);
|
|
71463
|
-
if (type === "selector" && sel.parent.type !== "pseudo") {
|
|
71464
|
-
if (
|
|
71465
|
-
uniqueSelectors.
|
|
71237
|
+
if (sel.type === "selector" && sel.parent.type !== "pseudo") {
|
|
71238
|
+
if (!uniqueSelectors.has(toString)) {
|
|
71239
|
+
uniqueSelectors.add(toString);
|
|
71466
71240
|
} else {
|
|
71467
71241
|
sel.remove();
|
|
71468
71242
|
}
|
|
71469
71243
|
}
|
|
71470
71244
|
});
|
|
71245
|
+
selectors.nodes.sort();
|
|
71471
71246
|
});
|
|
71472
71247
|
css.walkRules((rule) => {
|
|
71473
71248
|
const selector = rule.raws.selector && rule.raws.selector.value === rule.selector ? rule.raws.selector.raw : rule.selector;
|
|
@@ -71502,7 +71277,6 @@ var require_dist16 = __commonJS({
|
|
|
71502
71277
|
exports2.default = void 0;
|
|
71503
71278
|
var _browserslist = _interopRequireDefault(require_browserslist());
|
|
71504
71279
|
var _postcssValueParser = _interopRequireWildcard(require_lib());
|
|
71505
|
-
var _alphanumSort = _interopRequireDefault(require_lib12());
|
|
71506
71280
|
var _cssnanoUtils = require_dist6();
|
|
71507
71281
|
function _getRequireWildcardCache(nodeInterop) {
|
|
71508
71282
|
if (typeof WeakMap !== "function")
|
|
@@ -71560,9 +71334,9 @@ var require_dist16 = __commonJS({
|
|
|
71560
71334
|
node.type = "word";
|
|
71561
71335
|
}
|
|
71562
71336
|
function sortAndDedupe(items) {
|
|
71563
|
-
|
|
71564
|
-
|
|
71565
|
-
|
|
71337
|
+
const a = [...new Set(items)];
|
|
71338
|
+
a.sort();
|
|
71339
|
+
return a.join();
|
|
71566
71340
|
}
|
|
71567
71341
|
function transform(legacy, rule) {
|
|
71568
71342
|
const ruleName = rule.name.toLowerCase();
|
|
@@ -71603,7 +71377,7 @@ var require_dist16 = __commonJS({
|
|
|
71603
71377
|
}
|
|
71604
71378
|
}
|
|
71605
71379
|
function hasAllBug(browser) {
|
|
71606
|
-
return
|
|
71380
|
+
return ["ie 10", "ie 11"].includes(browser);
|
|
71607
71381
|
}
|
|
71608
71382
|
function pluginCreator(options = {}) {
|
|
71609
71383
|
const browsers = (0, _browserslist.default)(null, {
|
|
@@ -71729,7 +71503,7 @@ var require_minify_family = __commonJS({
|
|
|
71729
71503
|
}
|
|
71730
71504
|
var uniqs = (0, _uniqs.default)("monospace");
|
|
71731
71505
|
var globalKeywords = ["inherit", "initial", "unset"];
|
|
71732
|
-
var genericFontFamilykeywords = ["sans-serif", "serif", "fantasy", "cursive", "monospace", "system-ui"];
|
|
71506
|
+
var genericFontFamilykeywords = /* @__PURE__ */ new Set(["sans-serif", "serif", "fantasy", "cursive", "monospace", "system-ui"]);
|
|
71733
71507
|
function makeArray(value, length) {
|
|
71734
71508
|
let array = [];
|
|
71735
71509
|
while (length--) {
|
|
@@ -71767,7 +71541,7 @@ var require_minify_family = __commonJS({
|
|
|
71767
71541
|
}
|
|
71768
71542
|
return output;
|
|
71769
71543
|
}
|
|
71770
|
-
var regexKeyword = new RegExp(genericFontFamilykeywords.concat(globalKeywords).join("|"), "i");
|
|
71544
|
+
var regexKeyword = new RegExp([...genericFontFamilykeywords].concat(globalKeywords).join("|"), "i");
|
|
71771
71545
|
var regexInvalidIdentifier = /^(-?\d|--)/;
|
|
71772
71546
|
var regexSpaceAtStart = /^\x20/;
|
|
71773
71547
|
var regexWhitespace = /[\t\n\f\r\x20]/g;
|
|
@@ -71858,7 +71632,7 @@ var require_minify_family = __commonJS({
|
|
|
71858
71632
|
});
|
|
71859
71633
|
if (opts.removeAfterKeyword) {
|
|
71860
71634
|
for (i = 0, max = family.length; i < max; i += 1) {
|
|
71861
|
-
if (
|
|
71635
|
+
if (genericFontFamilykeywords.has(family[i].toLowerCase())) {
|
|
71862
71636
|
family = family.slice(0, i + 1);
|
|
71863
71637
|
break;
|
|
71864
71638
|
}
|
|
@@ -71885,11 +71659,11 @@ var require_keywords = __commonJS({
|
|
|
71885
71659
|
});
|
|
71886
71660
|
exports2.default = void 0;
|
|
71887
71661
|
var _default = {
|
|
71888
|
-
style: ["italic", "oblique"],
|
|
71889
|
-
variant: ["small-caps"],
|
|
71890
|
-
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900", "bold", "lighter", "bolder"],
|
|
71891
|
-
stretch: ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"],
|
|
71892
|
-
size: ["xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "larger", "smaller"]
|
|
71662
|
+
style: /* @__PURE__ */ new Set(["italic", "oblique"]),
|
|
71663
|
+
variant: /* @__PURE__ */ new Set(["small-caps"]),
|
|
71664
|
+
weight: /* @__PURE__ */ new Set(["100", "200", "300", "400", "500", "600", "700", "800", "900", "bold", "lighter", "bolder"]),
|
|
71665
|
+
stretch: /* @__PURE__ */ new Set(["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"]),
|
|
71666
|
+
size: /* @__PURE__ */ new Set(["xx-small", "x-small", "small", "medium", "large", "x-large", "xx-large", "larger", "smaller"])
|
|
71893
71667
|
};
|
|
71894
71668
|
exports2.default = _default;
|
|
71895
71669
|
module2.exports = exports2.default;
|
|
@@ -71923,16 +71697,16 @@ var require_minify_font = __commonJS({
|
|
|
71923
71697
|
const value = node.value.toLowerCase();
|
|
71924
71698
|
if (value === "normal" || value === "inherit" || value === "initial" || value === "unset") {
|
|
71925
71699
|
familyStart = i;
|
|
71926
|
-
} else if (
|
|
71700
|
+
} else if (_keywords.default.style.has(value) || (0, _postcssValueParser.unit)(value)) {
|
|
71927
71701
|
familyStart = i;
|
|
71928
|
-
} else if (
|
|
71702
|
+
} else if (_keywords.default.variant.has(value)) {
|
|
71929
71703
|
familyStart = i;
|
|
71930
|
-
} else if (
|
|
71704
|
+
} else if (_keywords.default.weight.has(value)) {
|
|
71931
71705
|
node.value = (0, _minifyWeight.default)(value);
|
|
71932
71706
|
familyStart = i;
|
|
71933
|
-
} else if (
|
|
71707
|
+
} else if (_keywords.default.stretch.has(value)) {
|
|
71934
71708
|
familyStart = i;
|
|
71935
|
-
} else if (
|
|
71709
|
+
} else if (_keywords.default.size.has(value) || (0, _postcssValueParser.unit)(value)) {
|
|
71936
71710
|
familyStart = i;
|
|
71937
71711
|
hasSize = true;
|
|
71938
71712
|
}
|
|
@@ -72350,7 +72124,7 @@ var require_plugin = __commonJS({
|
|
|
72350
72124
|
this.nodes.push(node);
|
|
72351
72125
|
}
|
|
72352
72126
|
any(node) {
|
|
72353
|
-
if (
|
|
72127
|
+
if (this.nodeTypes.includes(node.type)) {
|
|
72354
72128
|
detect.apply(this, arguments);
|
|
72355
72129
|
return !!node._stylehacks;
|
|
72356
72130
|
}
|
|
@@ -72656,7 +72430,7 @@ var require_leadingStar = __commonJS({
|
|
|
72656
72430
|
return;
|
|
72657
72431
|
}
|
|
72658
72432
|
hacks.some((hack) => {
|
|
72659
|
-
if (
|
|
72433
|
+
if (before.includes(hack)) {
|
|
72660
72434
|
this.push(node, {
|
|
72661
72435
|
identifier: _identifiers.PROPERTY,
|
|
72662
72436
|
hack: `${before.trim()}${node.prop}`
|
|
@@ -72708,7 +72482,7 @@ var require_leadingUnderscore = __commonJS({
|
|
|
72708
72482
|
const {
|
|
72709
72483
|
before
|
|
72710
72484
|
} = decl.raws;
|
|
72711
|
-
if (before &&
|
|
72485
|
+
if (before && before.includes("_")) {
|
|
72712
72486
|
this.push(decl, {
|
|
72713
72487
|
identifier: _identifiers.PROPERTY,
|
|
72714
72488
|
hack: `${before.trim()}${decl.prop}`
|
|
@@ -72986,7 +72760,7 @@ var require_dist20 = __commonJS({
|
|
|
72986
72760
|
}, []);
|
|
72987
72761
|
css.walk((node) => {
|
|
72988
72762
|
processors.forEach((proc) => {
|
|
72989
|
-
if (
|
|
72763
|
+
if (!proc.nodeTypes.includes(node.type)) {
|
|
72990
72764
|
return;
|
|
72991
72765
|
}
|
|
72992
72766
|
if (opts.lint) {
|
|
@@ -73062,7 +72836,7 @@ var require_hasAllProps = __commonJS({
|
|
|
73062
72836
|
var _default = (rule, ...props) => {
|
|
73063
72837
|
return props.every((p) => rule.some(({
|
|
73064
72838
|
prop
|
|
73065
|
-
}) => prop &&
|
|
72839
|
+
}) => prop && prop.toLowerCase().includes(p)));
|
|
73066
72840
|
};
|
|
73067
72841
|
exports2.default = _default;
|
|
73068
72842
|
module2.exports = exports2.default;
|
|
@@ -73080,7 +72854,7 @@ var require_getDecls = __commonJS({
|
|
|
73080
72854
|
function getDecls(rule, properties) {
|
|
73081
72855
|
return rule.nodes.filter(({
|
|
73082
72856
|
prop
|
|
73083
|
-
}) => prop &&
|
|
72857
|
+
}) => prop && properties.includes(prop.toLowerCase()));
|
|
73084
72858
|
}
|
|
73085
72859
|
module2.exports = exports2.default;
|
|
73086
72860
|
}
|
|
@@ -73178,7 +72952,7 @@ var require_mergeRules = __commonJS({
|
|
|
73178
72952
|
const rules = (0, _getRules.default)(props, properties);
|
|
73179
72953
|
if ((0, _hasAllProps.default)(rules, ...properties) && !hasConflicts(rules, rule.nodes)) {
|
|
73180
72954
|
if (callback(rules, last, props)) {
|
|
73181
|
-
decls = decls.filter((node) =>
|
|
72955
|
+
decls = decls.filter((node) => !rules.includes(node));
|
|
73182
72956
|
}
|
|
73183
72957
|
}
|
|
73184
72958
|
decls = decls.filter((node) => node !== last);
|
|
@@ -73226,7 +73000,7 @@ var require_colornames = __commonJS({
|
|
|
73226
73000
|
value: true
|
|
73227
73001
|
});
|
|
73228
73002
|
exports2.default = void 0;
|
|
73229
|
-
var _default = ["aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "green", "greenyellow", "grey", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"];
|
|
73003
|
+
var _default = /* @__PURE__ */ new Set(["aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkgrey", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "green", "greenyellow", "grey", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightgrey", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightslategrey", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "slategrey", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"]);
|
|
73230
73004
|
exports2.default = _default;
|
|
73231
73005
|
module2.exports = exports2.default;
|
|
73232
73006
|
}
|
|
@@ -73239,21 +73013,21 @@ var require_validateWsc = __commonJS({
|
|
|
73239
73013
|
Object.defineProperty(exports2, "__esModule", {
|
|
73240
73014
|
value: true
|
|
73241
73015
|
});
|
|
73242
|
-
exports2.isStyle = isStyle;
|
|
73243
|
-
exports2.isWidth = isWidth;
|
|
73244
73016
|
exports2.isColor = isColor;
|
|
73017
|
+
exports2.isStyle = isStyle;
|
|
73245
73018
|
exports2.isValidWsc = isValidWsc;
|
|
73019
|
+
exports2.isWidth = isWidth;
|
|
73246
73020
|
var _colornames = _interopRequireDefault(require_colornames());
|
|
73247
73021
|
function _interopRequireDefault(obj) {
|
|
73248
73022
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
73249
73023
|
}
|
|
73250
|
-
var widths = ["thin", "medium", "thick"];
|
|
73251
|
-
var styles = ["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"];
|
|
73024
|
+
var widths = /* @__PURE__ */ new Set(["thin", "medium", "thick"]);
|
|
73025
|
+
var styles = /* @__PURE__ */ new Set(["none", "hidden", "dotted", "dashed", "solid", "double", "groove", "ridge", "inset", "outset"]);
|
|
73252
73026
|
function isStyle(value) {
|
|
73253
|
-
return value &&
|
|
73027
|
+
return value && styles.has(value.toLowerCase());
|
|
73254
73028
|
}
|
|
73255
73029
|
function isWidth(value) {
|
|
73256
|
-
return value &&
|
|
73030
|
+
return value && widths.has(value.toLowerCase()) || /^(\d+(\.\d+)?|\.\d+)(\w+)?$/.test(value);
|
|
73257
73031
|
}
|
|
73258
73032
|
function isColor(value) {
|
|
73259
73033
|
if (!value) {
|
|
@@ -73275,7 +73049,7 @@ var require_validateWsc = __commonJS({
|
|
|
73275
73049
|
if (value === "currentcolor") {
|
|
73276
73050
|
return true;
|
|
73277
73051
|
}
|
|
73278
|
-
return
|
|
73052
|
+
return _colornames.default.has(value);
|
|
73279
73053
|
}
|
|
73280
73054
|
function isValidWsc(wscs) {
|
|
73281
73055
|
const validWidth = isWidth(wscs[0]);
|
|
@@ -73464,9 +73238,9 @@ var require_canExplode = __commonJS({
|
|
|
73464
73238
|
function _interopRequireDefault(obj) {
|
|
73465
73239
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
73466
73240
|
}
|
|
73467
|
-
var
|
|
73241
|
+
var globalKeywords = /* @__PURE__ */ new Set(["inherit", "initial", "unset", "revert"]);
|
|
73468
73242
|
var _default = (prop, includeCustomProps = true) => {
|
|
73469
|
-
if (!prop.value || includeCustomProps && (0, _isCustomProp.default)(prop) ||
|
|
73243
|
+
if (!prop.value || includeCustomProps && (0, _isCustomProp.default)(prop) || prop.value && globalKeywords.has(prop.value.toLowerCase())) {
|
|
73470
73244
|
return false;
|
|
73471
73245
|
}
|
|
73472
73246
|
return true;
|
|
@@ -73521,7 +73295,7 @@ var require_borders = __commonJS({
|
|
|
73521
73295
|
var allProperties = precedence.reduce((a, b) => a.concat(b));
|
|
73522
73296
|
function getLevel(prop) {
|
|
73523
73297
|
for (let i = 0; i < precedence.length; i++) {
|
|
73524
|
-
if (
|
|
73298
|
+
if (precedence[i].includes(prop.toLowerCase())) {
|
|
73525
73299
|
return i;
|
|
73526
73300
|
}
|
|
73527
73301
|
}
|
|
@@ -73588,7 +73362,7 @@ var require_borders = __commonJS({
|
|
|
73588
73362
|
function getDistinctShorthands(mapped) {
|
|
73589
73363
|
return mapped.reduce((a, b) => {
|
|
73590
73364
|
a = Array.isArray(a) ? a : [a];
|
|
73591
|
-
if (
|
|
73365
|
+
if (!a.includes(b)) {
|
|
73592
73366
|
a.push(b);
|
|
73593
73367
|
}
|
|
73594
73368
|
return a;
|
|
@@ -73854,7 +73628,7 @@ var require_borders = __commonJS({
|
|
|
73854
73628
|
if (border) {
|
|
73855
73629
|
nodes = nodes.slice(nodes.indexOf(border));
|
|
73856
73630
|
}
|
|
73857
|
-
const props = nodes.filter((node) => node.prop &&
|
|
73631
|
+
const props = nodes.filter((node) => node.prop && names.includes(node.prop) && node.important === lastNode.important);
|
|
73858
73632
|
const rules = (0, _getRules.default)(props, names);
|
|
73859
73633
|
if ((0, _hasAllProps.default)(rules, ...names) && !rules.some(_stylehacks.detect)) {
|
|
73860
73634
|
const values = rules.map((node) => node ? node.value : null);
|
|
@@ -73876,7 +73650,7 @@ var require_borders = __commonJS({
|
|
|
73876
73650
|
prop: borderProperty(d),
|
|
73877
73651
|
value
|
|
73878
73652
|
});
|
|
73879
|
-
decls = decls.filter((node) =>
|
|
73653
|
+
decls = decls.filter((node) => !rules.includes(node));
|
|
73880
73654
|
rules.forEach(_remove.default);
|
|
73881
73655
|
}
|
|
73882
73656
|
});
|
|
@@ -73950,9 +73724,9 @@ var require_borders = __commonJS({
|
|
|
73950
73724
|
while (decls.length) {
|
|
73951
73725
|
const lastNode = decls[decls.length - 1];
|
|
73952
73726
|
const lastPart = lastNode.prop.split("-").pop();
|
|
73953
|
-
const lesser = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && !(0, _isCustomProp.default)(lastNode) && node !== lastNode && node.important === lastNode.important && getLevel(node.prop) > getLevel(lastNode.prop) && (
|
|
73727
|
+
const lesser = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && !(0, _isCustomProp.default)(lastNode) && node !== lastNode && node.important === lastNode.important && getLevel(node.prop) > getLevel(lastNode.prop) && (node.prop.toLowerCase().includes(lastNode.prop) || node.prop.toLowerCase().endsWith(lastPart)));
|
|
73954
73728
|
lesser.forEach(_remove.default);
|
|
73955
|
-
decls = decls.filter((node) =>
|
|
73729
|
+
decls = decls.filter((node) => !lesser.includes(node));
|
|
73956
73730
|
let duplicates = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && node !== lastNode && node.important === lastNode.important && node.prop === lastNode.prop && !(!(0, _isCustomProp.default)(node) && (0, _isCustomProp.default)(lastNode)));
|
|
73957
73731
|
if (duplicates.length) {
|
|
73958
73732
|
if (/hsla\(|rgba\(/i.test(getColorValue(lastNode))) {
|
|
@@ -73961,7 +73735,7 @@ var require_borders = __commonJS({
|
|
|
73961
73735
|
}
|
|
73962
73736
|
duplicates.forEach(_remove.default);
|
|
73963
73737
|
}
|
|
73964
|
-
decls = decls.filter((node) => node !== lastNode &&
|
|
73738
|
+
decls = decls.filter((node) => node !== lastNode && !duplicates.includes(node));
|
|
73965
73739
|
}
|
|
73966
73740
|
}
|
|
73967
73741
|
var _default = {
|
|
@@ -74043,10 +73817,10 @@ var require_columns2 = __commonJS({
|
|
|
74043
73817
|
const lastNode = decls[decls.length - 1];
|
|
74044
73818
|
const lesser = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && node !== lastNode && node.important === lastNode.important && lastNode.prop === "columns" && node.prop !== lastNode.prop);
|
|
74045
73819
|
lesser.forEach(_remove.default);
|
|
74046
|
-
decls = decls.filter((node) =>
|
|
73820
|
+
decls = decls.filter((node) => !lesser.includes(node));
|
|
74047
73821
|
let duplicates = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && node !== lastNode && node.important === lastNode.important && node.prop === lastNode.prop && !(!(0, _isCustomProp.default)(node) && (0, _isCustomProp.default)(lastNode)));
|
|
74048
73822
|
duplicates.forEach(_remove.default);
|
|
74049
|
-
decls = decls.filter((node) => node !== lastNode &&
|
|
73823
|
+
decls = decls.filter((node) => node !== lastNode && !duplicates.includes(node));
|
|
74050
73824
|
}
|
|
74051
73825
|
}
|
|
74052
73826
|
function merge(rule) {
|
|
@@ -74120,10 +73894,10 @@ var require_boxBase = __commonJS({
|
|
|
74120
73894
|
const lastNode = decls[decls.length - 1];
|
|
74121
73895
|
const lesser = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && node !== lastNode && node.important === lastNode.important && lastNode.prop === prop && node.prop !== lastNode.prop);
|
|
74122
73896
|
lesser.forEach(_remove.default);
|
|
74123
|
-
decls = decls.filter((node) =>
|
|
73897
|
+
decls = decls.filter((node) => !lesser.includes(node));
|
|
74124
73898
|
let duplicates = decls.filter((node) => !(0, _stylehacks.detect)(lastNode) && !(0, _stylehacks.detect)(node) && node !== lastNode && node.important === lastNode.important && node.prop === lastNode.prop && !(!(0, _isCustomProp.default)(node) && (0, _isCustomProp.default)(lastNode)));
|
|
74125
73899
|
duplicates.forEach(_remove.default);
|
|
74126
|
-
decls = decls.filter((node) => node !== lastNode &&
|
|
73900
|
+
decls = decls.filter((node) => node !== lastNode && !duplicates.includes(node));
|
|
74127
73901
|
}
|
|
74128
73902
|
};
|
|
74129
73903
|
const processor = {
|
|
@@ -74263,8 +74037,6 @@ var require_dist22 = __commonJS({
|
|
|
74263
74037
|
value: true
|
|
74264
74038
|
});
|
|
74265
74039
|
exports2.default = void 0;
|
|
74266
|
-
function noop() {
|
|
74267
|
-
}
|
|
74268
74040
|
function trimValue(value) {
|
|
74269
74041
|
return value ? value.trim() : value;
|
|
74270
74042
|
}
|
|
@@ -74336,7 +74108,7 @@ var require_dist22 = __commonJS({
|
|
|
74336
74108
|
}
|
|
74337
74109
|
}
|
|
74338
74110
|
function dedupeNode(last, nodes) {
|
|
74339
|
-
let index =
|
|
74111
|
+
let index = nodes.includes(last) ? nodes.indexOf(last) - 1 : nodes.length - 1;
|
|
74340
74112
|
while (index >= 0) {
|
|
74341
74113
|
const node = nodes[index--];
|
|
74342
74114
|
if (node && equals(node, last)) {
|
|
@@ -74344,12 +74116,6 @@ var require_dist22 = __commonJS({
|
|
|
74344
74116
|
}
|
|
74345
74117
|
}
|
|
74346
74118
|
}
|
|
74347
|
-
var handlers = {
|
|
74348
|
-
rule: dedupeRule,
|
|
74349
|
-
atrule: dedupeNode,
|
|
74350
|
-
decl: dedupeNode,
|
|
74351
|
-
comment: noop
|
|
74352
|
-
};
|
|
74353
74119
|
function dedupe(root) {
|
|
74354
74120
|
const {
|
|
74355
74121
|
nodes
|
|
@@ -74364,7 +74130,11 @@ var require_dist22 = __commonJS({
|
|
|
74364
74130
|
continue;
|
|
74365
74131
|
}
|
|
74366
74132
|
dedupe(last);
|
|
74367
|
-
|
|
74133
|
+
if (last.type === "rule") {
|
|
74134
|
+
dedupeRule(last, nodes);
|
|
74135
|
+
} else if (last.type === "atrule" || last.type === "decl") {
|
|
74136
|
+
dedupeNode(last, nodes);
|
|
74137
|
+
}
|
|
74368
74138
|
}
|
|
74369
74139
|
}
|
|
74370
74140
|
function pluginCreator() {
|
|
@@ -74390,16 +74160,16 @@ var require_dist23 = __commonJS({
|
|
|
74390
74160
|
value: true
|
|
74391
74161
|
});
|
|
74392
74162
|
exports2.default = void 0;
|
|
74393
|
-
var OVERRIDABLE_RULES = ["keyframes", "counter-style"];
|
|
74394
|
-
var SCOPE_RULES = ["media", "supports"];
|
|
74163
|
+
var OVERRIDABLE_RULES = /* @__PURE__ */ new Set(["keyframes", "counter-style"]);
|
|
74164
|
+
var SCOPE_RULES = /* @__PURE__ */ new Set(["media", "supports"]);
|
|
74395
74165
|
function vendorUnprefixed(prop) {
|
|
74396
74166
|
return prop.replace(/^-\w+-/, "");
|
|
74397
74167
|
}
|
|
74398
74168
|
function isOverridable(name) {
|
|
74399
|
-
return
|
|
74169
|
+
return OVERRIDABLE_RULES.has(vendorUnprefixed(name.toLowerCase()));
|
|
74400
74170
|
}
|
|
74401
74171
|
function isScope(name) {
|
|
74402
|
-
return
|
|
74172
|
+
return SCOPE_RULES.has(vendorUnprefixed(name.toLowerCase()));
|
|
74403
74173
|
}
|
|
74404
74174
|
function getScope(node) {
|
|
74405
74175
|
let current = node.parent;
|
|
@@ -74477,7 +74247,7 @@ var require_dist24 = __commonJS({
|
|
|
74477
74247
|
function evenValues(list, index) {
|
|
74478
74248
|
return index % 2 === 0;
|
|
74479
74249
|
}
|
|
74480
|
-
var repeatKeywords =
|
|
74250
|
+
var repeatKeywords = new Set(_map.default.values());
|
|
74481
74251
|
function isCommaNode(node) {
|
|
74482
74252
|
return node.type === "div" && node.value === ",";
|
|
74483
74253
|
}
|
|
@@ -74520,7 +74290,7 @@ var require_dist24 = __commonJS({
|
|
|
74520
74290
|
ranges[rangeIndex].end = null;
|
|
74521
74291
|
return;
|
|
74522
74292
|
}
|
|
74523
|
-
const isRepeatKeyword = node.type === "word" && repeatKeywords.
|
|
74293
|
+
const isRepeatKeyword = node.type === "word" && repeatKeywords.has(node.value.toLowerCase());
|
|
74524
74294
|
if (ranges[rangeIndex].start === null && isRepeatKeyword) {
|
|
74525
74295
|
ranges[rangeIndex].start = index;
|
|
74526
74296
|
ranges[rangeIndex].end = index;
|
|
@@ -74726,10 +74496,10 @@ var require_ensureCompatibility = __commonJS({
|
|
|
74726
74496
|
}
|
|
74727
74497
|
}
|
|
74728
74498
|
if (type === "combinator") {
|
|
74729
|
-
if (
|
|
74499
|
+
if (value.includes("~")) {
|
|
74730
74500
|
compatible = isSupportedCached(cssSel3, browsers);
|
|
74731
74501
|
}
|
|
74732
|
-
if (
|
|
74502
|
+
if (value.includes(">") || value.includes("+")) {
|
|
74733
74503
|
compatible = isSupportedCached(cssSel2, browsers);
|
|
74734
74504
|
}
|
|
74735
74505
|
}
|
|
@@ -74738,10 +74508,10 @@ var require_ensureCompatibility = __commonJS({
|
|
|
74738
74508
|
compatible = isSupportedCached(cssSel2, browsers);
|
|
74739
74509
|
}
|
|
74740
74510
|
if (value) {
|
|
74741
|
-
if (
|
|
74511
|
+
if (["=", "~=", "|="].includes(node.operator)) {
|
|
74742
74512
|
compatible = isSupportedCached(cssSel2, browsers);
|
|
74743
74513
|
}
|
|
74744
|
-
if (
|
|
74514
|
+
if (["^=", "$=", "*="].includes(node.operator)) {
|
|
74745
74515
|
compatible = isSupportedCached(cssSel3, browsers);
|
|
74746
74516
|
}
|
|
74747
74517
|
}
|
|
@@ -74806,7 +74576,7 @@ var require_dist25 = __commonJS({
|
|
|
74806
74576
|
const {
|
|
74807
74577
|
name
|
|
74808
74578
|
} = ruleA.parent;
|
|
74809
|
-
if (parent && name &&
|
|
74579
|
+
if (parent && name && name.includes("keyframes")) {
|
|
74810
74580
|
return false;
|
|
74811
74581
|
}
|
|
74812
74582
|
return parent && (selectors.every(_ensureCompatibility.noVendor) || (0, _ensureCompatibility.sameVendor)(a, b));
|
|
@@ -75071,7 +74841,6 @@ var require_dist27 = __commonJS({
|
|
|
75071
74841
|
value: true
|
|
75072
74842
|
});
|
|
75073
74843
|
exports2.default = void 0;
|
|
75074
|
-
var _alphanumSort = _interopRequireDefault(require_lib12());
|
|
75075
74844
|
var _postcssSelectorParser = _interopRequireDefault(require_dist11());
|
|
75076
74845
|
function _interopRequireDefault(obj) {
|
|
75077
74846
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -75080,9 +74849,9 @@ var require_dist27 = __commonJS({
|
|
|
75080
74849
|
return (0, _postcssSelectorParser.default)(callback).processSync(selectors);
|
|
75081
74850
|
}
|
|
75082
74851
|
function unique(rule) {
|
|
75083
|
-
|
|
75084
|
-
|
|
75085
|
-
|
|
74852
|
+
const selector = [...new Set(rule.selectors)];
|
|
74853
|
+
selector.sort();
|
|
74854
|
+
rule.selector = selector.join();
|
|
75086
74855
|
}
|
|
75087
74856
|
function pluginCreator() {
|
|
75088
74857
|
return {
|
|
@@ -75298,11 +75067,15 @@ var require_dist28 = __commonJS({
|
|
|
75298
75067
|
child.value = stringify(ast);
|
|
75299
75068
|
}).toString();
|
|
75300
75069
|
}
|
|
75301
|
-
|
|
75302
|
-
|
|
75303
|
-
|
|
75304
|
-
|
|
75305
|
-
|
|
75070
|
+
function minify(original, cache, preferredQuote) {
|
|
75071
|
+
const key = original + "|" + preferredQuote;
|
|
75072
|
+
if (cache.has(key)) {
|
|
75073
|
+
return cache.get(key);
|
|
75074
|
+
}
|
|
75075
|
+
const newValue = normalize(original, preferredQuote);
|
|
75076
|
+
cache.set(key, newValue);
|
|
75077
|
+
return newValue;
|
|
75078
|
+
}
|
|
75306
75079
|
function pluginCreator(opts) {
|
|
75307
75080
|
const {
|
|
75308
75081
|
preferredQuote
|
|
@@ -75314,19 +75087,16 @@ var require_dist28 = __commonJS({
|
|
|
75314
75087
|
OnceExit(css) {
|
|
75315
75088
|
const cache = /* @__PURE__ */ new Map();
|
|
75316
75089
|
css.walk((node) => {
|
|
75317
|
-
|
|
75318
|
-
|
|
75319
|
-
|
|
75320
|
-
|
|
75321
|
-
|
|
75322
|
-
|
|
75323
|
-
|
|
75324
|
-
|
|
75325
|
-
|
|
75326
|
-
|
|
75327
|
-
const newValue = normalize(node[param], preferredQuote);
|
|
75328
|
-
node[param] = newValue;
|
|
75329
|
-
cache.set(key, newValue);
|
|
75090
|
+
switch (node.type) {
|
|
75091
|
+
case "rule":
|
|
75092
|
+
node.selector = minify(node.selector, cache, preferredQuote);
|
|
75093
|
+
break;
|
|
75094
|
+
case "decl":
|
|
75095
|
+
node.value = minify(node.value, cache, preferredQuote);
|
|
75096
|
+
break;
|
|
75097
|
+
case "atrule":
|
|
75098
|
+
node.params = minify(node.params, cache, preferredQuote);
|
|
75099
|
+
break;
|
|
75330
75100
|
}
|
|
75331
75101
|
});
|
|
75332
75102
|
}
|
|
@@ -75386,16 +75156,11 @@ var require_dist29 = __commonJS({
|
|
|
75386
75156
|
}
|
|
75387
75157
|
return newObj;
|
|
75388
75158
|
}
|
|
75389
|
-
var directionKeywords = ["top", "right", "bottom", "left", "center"];
|
|
75159
|
+
var directionKeywords = /* @__PURE__ */ new Set(["top", "right", "bottom", "left", "center"]);
|
|
75390
75160
|
var center = "50%";
|
|
75391
|
-
var horizontal =
|
|
75392
|
-
|
|
75393
|
-
|
|
75394
|
-
};
|
|
75395
|
-
var verticalValue = {
|
|
75396
|
-
bottom: "100%",
|
|
75397
|
-
top: "0"
|
|
75398
|
-
};
|
|
75161
|
+
var horizontal = /* @__PURE__ */ new Map([["right", "100%"], ["left", "0"]]);
|
|
75162
|
+
var verticalValue = /* @__PURE__ */ new Map([["bottom", "100%"], ["top", "0"]]);
|
|
75163
|
+
var mathFunctions = /* @__PURE__ */ new Set(["calc", "min", "max", "clamp"]);
|
|
75399
75164
|
function isCommaNode(node) {
|
|
75400
75165
|
return node.type === "div" && node.value === ",";
|
|
75401
75166
|
}
|
|
@@ -75409,7 +75174,7 @@ var require_dist29 = __commonJS({
|
|
|
75409
75174
|
if (node.type !== "function") {
|
|
75410
75175
|
return false;
|
|
75411
75176
|
}
|
|
75412
|
-
return
|
|
75177
|
+
return mathFunctions.has(node.value.toLowerCase());
|
|
75413
75178
|
}
|
|
75414
75179
|
function isNumberNode(node) {
|
|
75415
75180
|
if (node.type !== "word") {
|
|
@@ -75458,7 +75223,7 @@ var require_dist29 = __commonJS({
|
|
|
75458
75223
|
ranges[rangeIndex].end = null;
|
|
75459
75224
|
return;
|
|
75460
75225
|
}
|
|
75461
|
-
const isPositionKeyword = node.type === "word" && directionKeywords.
|
|
75226
|
+
const isPositionKeyword = node.type === "word" && directionKeywords.has(node.value.toLowerCase()) || isDimensionNode(node) || isNumberNode(node) || isMathFunctionNode(node);
|
|
75462
75227
|
if (ranges[rangeIndex].start === null && isPositionKeyword) {
|
|
75463
75228
|
ranges[rangeIndex].start = index;
|
|
75464
75229
|
ranges[rangeIndex].end = index;
|
|
@@ -75488,28 +75253,26 @@ var require_dist29 = __commonJS({
|
|
|
75488
75253
|
if (secondNode) {
|
|
75489
75254
|
nodes[2].value = nodes[1].value = "";
|
|
75490
75255
|
}
|
|
75491
|
-
const map =
|
|
75492
|
-
|
|
75493
|
-
|
|
75494
|
-
if (Object.prototype.hasOwnProperty.call(map, firstNode)) {
|
|
75495
|
-
nodes[0].value = map[firstNode];
|
|
75256
|
+
const map = new Map([...horizontal, ["center", center]]);
|
|
75257
|
+
if (map.has(firstNode)) {
|
|
75258
|
+
nodes[0].value = map.get(firstNode);
|
|
75496
75259
|
}
|
|
75497
75260
|
return;
|
|
75498
75261
|
}
|
|
75499
|
-
if (firstNode === "center" && directionKeywords.
|
|
75262
|
+
if (firstNode === "center" && directionKeywords.has(secondNode)) {
|
|
75500
75263
|
nodes[0].value = nodes[1].value = "";
|
|
75501
|
-
if (
|
|
75502
|
-
nodes[2].value = horizontal
|
|
75264
|
+
if (horizontal.has(secondNode)) {
|
|
75265
|
+
nodes[2].value = horizontal.get(secondNode);
|
|
75503
75266
|
}
|
|
75504
75267
|
return;
|
|
75505
75268
|
}
|
|
75506
|
-
if (
|
|
75507
|
-
nodes[0].value = horizontal
|
|
75508
|
-
nodes[2].value = verticalValue
|
|
75269
|
+
if (horizontal.has(firstNode) && verticalValue.has(secondNode)) {
|
|
75270
|
+
nodes[0].value = horizontal.get(firstNode);
|
|
75271
|
+
nodes[2].value = verticalValue.get(secondNode);
|
|
75509
75272
|
return;
|
|
75510
|
-
} else if (
|
|
75511
|
-
nodes[0].value = horizontal
|
|
75512
|
-
nodes[2].value = verticalValue
|
|
75273
|
+
} else if (verticalValue.has(firstNode) && horizontal.has(secondNode)) {
|
|
75274
|
+
nodes[0].value = horizontal.get(secondNode);
|
|
75275
|
+
nodes[2].value = verticalValue.get(firstNode);
|
|
75513
75276
|
return;
|
|
75514
75277
|
}
|
|
75515
75278
|
});
|
|
@@ -75558,11 +75321,12 @@ var require_dist30 = __commonJS({
|
|
|
75558
75321
|
var atrule = "atrule";
|
|
75559
75322
|
var decl = "decl";
|
|
75560
75323
|
var rule = "rule";
|
|
75324
|
+
var variableFunctions = /* @__PURE__ */ new Set(["var", "env", "constant"]);
|
|
75561
75325
|
function reduceCalcWhitespaces(node) {
|
|
75562
75326
|
if (node.type === "space") {
|
|
75563
75327
|
node.value = " ";
|
|
75564
75328
|
} else if (node.type === "function") {
|
|
75565
|
-
if (!
|
|
75329
|
+
if (!variableFunctions.has(node.value.toLowerCase())) {
|
|
75566
75330
|
node.before = node.after = "";
|
|
75567
75331
|
}
|
|
75568
75332
|
}
|
|
@@ -75573,7 +75337,7 @@ var require_dist30 = __commonJS({
|
|
|
75573
75337
|
} else if (node.type === "div") {
|
|
75574
75338
|
node.before = node.after = "";
|
|
75575
75339
|
} else if (node.type === "function") {
|
|
75576
|
-
if (!
|
|
75340
|
+
if (!variableFunctions.has(node.value.toLowerCase())) {
|
|
75577
75341
|
node.before = node.after = "";
|
|
75578
75342
|
}
|
|
75579
75343
|
if (node.value.toLowerCase() === "calc") {
|
|
@@ -75591,7 +75355,7 @@ var require_dist30 = __commonJS({
|
|
|
75591
75355
|
const {
|
|
75592
75356
|
type
|
|
75593
75357
|
} = node;
|
|
75594
|
-
if (
|
|
75358
|
+
if ([decl, rule, atrule].includes(type) && node.raws.before) {
|
|
75595
75359
|
node.raws.before = node.raws.before.replace(/\s/g, "");
|
|
75596
75360
|
}
|
|
75597
75361
|
if (type === decl) {
|
|
@@ -75676,7 +75440,7 @@ var require_dist31 = __commonJS({
|
|
|
75676
75440
|
return range;
|
|
75677
75441
|
}
|
|
75678
75442
|
function hasLowerCaseUPrefixBug(browser) {
|
|
75679
|
-
return
|
|
75443
|
+
return (0, _browserslist.default)("ie <=11, edge <= 15").includes(browser);
|
|
75680
75444
|
}
|
|
75681
75445
|
function transform(value, isLegacy = false) {
|
|
75682
75446
|
return (0, _postcssValueParser.default)(value).walk((child) => {
|