tailwindcss 3.0.15 → 3.0.16
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 +8 -1
- package/lib/corePlugins.js +2 -1
- package/lib/lib/expandTailwindAtRules.js +2 -1
- package/lib/lib/normalizeTailwindDirectives.js +2 -1
- package/lib/lib/setupContextUtils.js +4 -2
- package/{nesting → lib/postcss-plugins/nesting}/README.md +0 -0
- package/lib/postcss-plugins/nesting/index.js +17 -0
- package/lib/postcss-plugins/nesting/plugin.js +53 -0
- package/lib/util/normalizeConfig.js +9 -5
- package/nesting/index.js +2 -12
- package/package.json +4 -4
- package/peers/index.js +215 -186
- package/src/corePlugins.js +1 -0
- package/src/lib/expandTailwindAtRules.js +2 -1
- package/src/lib/normalizeTailwindDirectives.js +1 -0
- package/src/lib/setupContextUtils.js +2 -1
- package/src/postcss-plugins/nesting/README.md +42 -0
- package/src/postcss-plugins/nesting/index.js +13 -0
- package/{nesting → src/postcss-plugins/nesting}/plugin.js +4 -4
- package/src/util/normalizeConfig.js +7 -5
package/peers/index.js
CHANGED
|
@@ -24819,9 +24819,11 @@ var require_main = __commonJS({
|
|
|
24819
24819
|
`Invalid built-in order '${order}' provided.`,
|
|
24820
24820
|
`Available built-in orders are: ${builtInOrders}`
|
|
24821
24821
|
].join("\n")));
|
|
24822
|
-
return
|
|
24823
|
-
return
|
|
24824
|
-
|
|
24822
|
+
return function(t) {
|
|
24823
|
+
return Promise.resolve().then(function() {
|
|
24824
|
+
return /* @__PURE__ */ _interopNamespace(require(t));
|
|
24825
|
+
});
|
|
24826
|
+
}(`../orders/${order}.cjs`).then(({ properties }) => processCss({
|
|
24825
24827
|
css,
|
|
24826
24828
|
comparator: withKeepOverrides(orderComparator(properties))
|
|
24827
24829
|
}));
|
|
@@ -24875,7 +24877,7 @@ var require_main = __commonJS({
|
|
|
24875
24877
|
comments.forEach((node) => {
|
|
24876
24878
|
const pairedNode = node.pairedNode;
|
|
24877
24879
|
node.comment.remove();
|
|
24878
|
-
pairedNode.parent["insert" + node.insertPosition](pairedNode, node.comment);
|
|
24880
|
+
pairedNode.parent && pairedNode.parent["insert" + node.insertPosition](pairedNode, node.comment);
|
|
24879
24881
|
});
|
|
24880
24882
|
}
|
|
24881
24883
|
function sortCssDeclarations({ nodes, comparator }) {
|
|
@@ -26227,29 +26229,6 @@ var require_rawCache = __commonJS({
|
|
|
26227
26229
|
}
|
|
26228
26230
|
});
|
|
26229
26231
|
|
|
26230
|
-
// node_modules/cssnano-utils/dist/getMatch.js
|
|
26231
|
-
var require_getMatch = __commonJS({
|
|
26232
|
-
"node_modules/cssnano-utils/dist/getMatch.js"(exports2, module2) {
|
|
26233
|
-
"use strict";
|
|
26234
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
26235
|
-
value: true
|
|
26236
|
-
});
|
|
26237
|
-
exports2.default = getMatchFactory;
|
|
26238
|
-
function getMatchFactory(map) {
|
|
26239
|
-
return function getMatch(args) {
|
|
26240
|
-
const match = args.reduce((list, arg, i) => {
|
|
26241
|
-
return list.filter((keyword) => keyword[1][i] === arg);
|
|
26242
|
-
}, map);
|
|
26243
|
-
if (match.length) {
|
|
26244
|
-
return match[0][0];
|
|
26245
|
-
}
|
|
26246
|
-
return false;
|
|
26247
|
-
};
|
|
26248
|
-
}
|
|
26249
|
-
module2.exports = exports2.default;
|
|
26250
|
-
}
|
|
26251
|
-
});
|
|
26252
|
-
|
|
26253
26232
|
// node_modules/cssnano-utils/dist/getArguments.js
|
|
26254
26233
|
var require_getArguments = __commonJS({
|
|
26255
26234
|
"node_modules/cssnano-utils/dist/getArguments.js"(exports2, module2) {
|
|
@@ -26259,14 +26238,15 @@ var require_getArguments = __commonJS({
|
|
|
26259
26238
|
});
|
|
26260
26239
|
exports2.default = getArguments;
|
|
26261
26240
|
function getArguments(node) {
|
|
26262
|
-
|
|
26241
|
+
const list = [[]];
|
|
26242
|
+
for (const child of node.nodes) {
|
|
26263
26243
|
if (child.type !== "div") {
|
|
26264
26244
|
list[list.length - 1].push(child);
|
|
26265
26245
|
} else {
|
|
26266
26246
|
list.push([]);
|
|
26267
26247
|
}
|
|
26268
|
-
|
|
26269
|
-
|
|
26248
|
+
}
|
|
26249
|
+
return list;
|
|
26270
26250
|
}
|
|
26271
26251
|
module2.exports = exports2.default;
|
|
26272
26252
|
}
|
|
@@ -26309,22 +26289,16 @@ var require_dist6 = __commonJS({
|
|
|
26309
26289
|
Object.defineProperty(exports2, "__esModule", {
|
|
26310
26290
|
value: true
|
|
26311
26291
|
});
|
|
26312
|
-
Object.defineProperty(exports2, "
|
|
26313
|
-
enumerable: true,
|
|
26314
|
-
get: function() {
|
|
26315
|
-
return _rawCache.default;
|
|
26316
|
-
}
|
|
26317
|
-
});
|
|
26318
|
-
Object.defineProperty(exports2, "getMatch", {
|
|
26292
|
+
Object.defineProperty(exports2, "getArguments", {
|
|
26319
26293
|
enumerable: true,
|
|
26320
26294
|
get: function() {
|
|
26321
|
-
return
|
|
26295
|
+
return _getArguments.default;
|
|
26322
26296
|
}
|
|
26323
26297
|
});
|
|
26324
|
-
Object.defineProperty(exports2, "
|
|
26298
|
+
Object.defineProperty(exports2, "rawCache", {
|
|
26325
26299
|
enumerable: true,
|
|
26326
26300
|
get: function() {
|
|
26327
|
-
return
|
|
26301
|
+
return _rawCache.default;
|
|
26328
26302
|
}
|
|
26329
26303
|
});
|
|
26330
26304
|
Object.defineProperty(exports2, "sameParent", {
|
|
@@ -26334,7 +26308,6 @@ var require_dist6 = __commonJS({
|
|
|
26334
26308
|
}
|
|
26335
26309
|
});
|
|
26336
26310
|
var _rawCache = _interopRequireDefault(require_rawCache());
|
|
26337
|
-
var _getMatch = _interopRequireDefault(require_getMatch());
|
|
26338
26311
|
var _getArguments = _interopRequireDefault(require_getArguments());
|
|
26339
26312
|
var _sameParent = _interopRequireDefault(require_sameParent());
|
|
26340
26313
|
function _interopRequireDefault(obj) {
|
|
@@ -63657,7 +63630,6 @@ var require_dist9 = __commonJS({
|
|
|
63657
63630
|
});
|
|
63658
63631
|
exports2.default = void 0;
|
|
63659
63632
|
var _postcssValueParser = _interopRequireWildcard(require_lib());
|
|
63660
|
-
var _cssnanoUtils = require_dist6();
|
|
63661
63633
|
function _getRequireWildcardCache(nodeInterop) {
|
|
63662
63634
|
if (typeof WeakMap !== "function")
|
|
63663
63635
|
return null;
|
|
@@ -63732,12 +63704,11 @@ var require_dist9 = __commonJS({
|
|
|
63732
63704
|
];
|
|
63733
63705
|
}
|
|
63734
63706
|
}
|
|
63735
|
-
var rotate3dMappings = [
|
|
63736
|
-
[
|
|
63737
|
-
[
|
|
63738
|
-
[
|
|
63739
|
-
];
|
|
63740
|
-
var rotate3dMatch = (0, _cssnanoUtils.getMatch)(rotate3dMappings);
|
|
63707
|
+
var rotate3dMappings = /* @__PURE__ */ new Map([
|
|
63708
|
+
[[1, 0, 0].toString(), "rotateX"],
|
|
63709
|
+
[[0, 1, 0].toString(), "rotateY"],
|
|
63710
|
+
[[0, 0, 1].toString(), "rotate"]
|
|
63711
|
+
]);
|
|
63741
63712
|
function rotate3d(node, values) {
|
|
63742
63713
|
if (values.length !== 4) {
|
|
63743
63714
|
return;
|
|
@@ -63745,8 +63716,8 @@ var require_dist9 = __commonJS({
|
|
|
63745
63716
|
const {
|
|
63746
63717
|
nodes
|
|
63747
63718
|
} = node;
|
|
63748
|
-
const match =
|
|
63749
|
-
if (match
|
|
63719
|
+
const match = rotate3dMappings.get(values.slice(0, 3).toString());
|
|
63720
|
+
if (match) {
|
|
63750
63721
|
node.value = match;
|
|
63751
63722
|
node.nodes = [nodes[6]];
|
|
63752
63723
|
}
|
|
@@ -63865,7 +63836,7 @@ var require_dist9 = __commonJS({
|
|
|
63865
63836
|
return {
|
|
63866
63837
|
postcssPlugin: "postcss-reduce-transforms",
|
|
63867
63838
|
prepare() {
|
|
63868
|
-
const cache =
|
|
63839
|
+
const cache = /* @__PURE__ */ new Map();
|
|
63869
63840
|
return {
|
|
63870
63841
|
OnceExit(css) {
|
|
63871
63842
|
css.walkDecls(/transform$/i, (decl) => {
|
|
@@ -63873,13 +63844,13 @@ var require_dist9 = __commonJS({
|
|
|
63873
63844
|
if (!value) {
|
|
63874
63845
|
return;
|
|
63875
63846
|
}
|
|
63876
|
-
if (cache
|
|
63877
|
-
decl.value = cache
|
|
63847
|
+
if (cache.has(value)) {
|
|
63848
|
+
decl.value = cache.get(value);
|
|
63878
63849
|
return;
|
|
63879
63850
|
}
|
|
63880
63851
|
const result = (0, _postcssValueParser.default)(value).walk(reduce).toString();
|
|
63881
63852
|
decl.value = result;
|
|
63882
|
-
cache
|
|
63853
|
+
cache.set(value, result);
|
|
63883
63854
|
});
|
|
63884
63855
|
}
|
|
63885
63856
|
};
|
|
@@ -67952,7 +67923,6 @@ var require_parser5 = __commonJS({
|
|
|
67952
67923
|
return yyvstack[yysp - 1];
|
|
67953
67924
|
break;
|
|
67954
67925
|
case 2:
|
|
67955
|
-
case 7:
|
|
67956
67926
|
this.$ = yyvstack[yysp - 1];
|
|
67957
67927
|
break;
|
|
67958
67928
|
case 3:
|
|
@@ -67961,6 +67931,9 @@ var require_parser5 = __commonJS({
|
|
|
67961
67931
|
case 6:
|
|
67962
67932
|
this.$ = { type: "MathExpression", operator: yyvstack[yysp - 1], left: yyvstack[yysp - 2], right: yyvstack[yysp] };
|
|
67963
67933
|
break;
|
|
67934
|
+
case 7:
|
|
67935
|
+
this.$ = { type: "ParenthesizedExpression", content: yyvstack[yysp - 1] };
|
|
67936
|
+
break;
|
|
67964
67937
|
case 8:
|
|
67965
67938
|
case 9:
|
|
67966
67939
|
case 10:
|
|
@@ -69583,7 +69556,7 @@ var require_convertUnit = __commonJS({
|
|
|
69583
69556
|
}
|
|
69584
69557
|
const converted = conversions[targetUnitNormalized][sourceUnitNormalized] * value;
|
|
69585
69558
|
if (precision !== false) {
|
|
69586
|
-
precision = Math.pow(10,
|
|
69559
|
+
precision = Math.pow(10, Math.ceil(precision) || 5);
|
|
69587
69560
|
return Math.round(converted * precision) / precision;
|
|
69588
69561
|
}
|
|
69589
69562
|
return converted;
|
|
@@ -69606,8 +69579,8 @@ var require_reducer = __commonJS({
|
|
|
69606
69579
|
function _interopRequireDefault(obj) {
|
|
69607
69580
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
69608
69581
|
}
|
|
69609
|
-
function isValueType(
|
|
69610
|
-
switch (type) {
|
|
69582
|
+
function isValueType(node) {
|
|
69583
|
+
switch (node.type) {
|
|
69611
69584
|
case "LengthValue":
|
|
69612
69585
|
case "AngleValue":
|
|
69613
69586
|
case "TimeValue":
|
|
@@ -69637,17 +69610,17 @@ var require_reducer = __commonJS({
|
|
|
69637
69610
|
if (!isAddSubOperator(preOperator)) {
|
|
69638
69611
|
throw new Error(`invalid operator ${preOperator}`);
|
|
69639
69612
|
}
|
|
69640
|
-
|
|
69641
|
-
|
|
69642
|
-
const itemIndex = collected.findIndex((x) => x.node.type === type);
|
|
69613
|
+
if (isValueType(node)) {
|
|
69614
|
+
const itemIndex = collected.findIndex((x) => x.node.type === node.type);
|
|
69643
69615
|
if (itemIndex >= 0) {
|
|
69644
69616
|
if (node.value === 0) {
|
|
69645
69617
|
return;
|
|
69646
69618
|
}
|
|
69619
|
+
const otherValueNode = collected[itemIndex].node;
|
|
69647
69620
|
const {
|
|
69648
69621
|
left: reducedNode,
|
|
69649
69622
|
right: current
|
|
69650
|
-
} =
|
|
69623
|
+
} = convertNodesUnits(otherValueNode, node, precision);
|
|
69651
69624
|
if (collected[itemIndex].preOperator === "-") {
|
|
69652
69625
|
collected[itemIndex].preOperator = "+";
|
|
69653
69626
|
reducedNode.value *= -1;
|
|
@@ -69683,7 +69656,7 @@ var require_reducer = __commonJS({
|
|
|
69683
69656
|
});
|
|
69684
69657
|
}
|
|
69685
69658
|
}
|
|
69686
|
-
} else if (type === "MathExpression") {
|
|
69659
|
+
} else if (node.type === "MathExpression") {
|
|
69687
69660
|
if (isAddSubOperator(node.operator)) {
|
|
69688
69661
|
collectAddSubItems(preOperator, node.left, collected, precision);
|
|
69689
69662
|
const collectRightOperator = preOperator === "-" ? flip(node.operator) : node.operator;
|
|
@@ -69699,6 +69672,8 @@ var require_reducer = __commonJS({
|
|
|
69699
69672
|
});
|
|
69700
69673
|
}
|
|
69701
69674
|
}
|
|
69675
|
+
} else if (node.type === "ParenthesizedExpression") {
|
|
69676
|
+
collectAddSubItems(preOperator, node.content, collected, precision);
|
|
69702
69677
|
} else {
|
|
69703
69678
|
collected.push({
|
|
69704
69679
|
node,
|
|
@@ -69709,13 +69684,15 @@ var require_reducer = __commonJS({
|
|
|
69709
69684
|
function reduceAddSubExpression(node, precision) {
|
|
69710
69685
|
const collected = [];
|
|
69711
69686
|
collectAddSubItems("+", node, collected, precision);
|
|
69712
|
-
const withoutZeroItem = collected.filter((item) => !(isValueType(item.node
|
|
69687
|
+
const withoutZeroItem = collected.filter((item) => !(isValueType(item.node) && item.node.value === 0));
|
|
69713
69688
|
const firstNonZeroItem = withoutZeroItem[0];
|
|
69714
|
-
if (!firstNonZeroItem || firstNonZeroItem.preOperator === "-" && !isValueType(firstNonZeroItem.node
|
|
69715
|
-
const firstZeroItem = collected.find((item) => isValueType(item.node
|
|
69716
|
-
|
|
69689
|
+
if (!firstNonZeroItem || firstNonZeroItem.preOperator === "-" && !isValueType(firstNonZeroItem.node)) {
|
|
69690
|
+
const firstZeroItem = collected.find((item) => isValueType(item.node) && item.node.value === 0);
|
|
69691
|
+
if (firstZeroItem) {
|
|
69692
|
+
withoutZeroItem.unshift(firstZeroItem);
|
|
69693
|
+
}
|
|
69717
69694
|
}
|
|
69718
|
-
if (withoutZeroItem[0].preOperator === "-" && isValueType(withoutZeroItem[0].node
|
|
69695
|
+
if (withoutZeroItem[0].preOperator === "-" && isValueType(withoutZeroItem[0].node)) {
|
|
69719
69696
|
withoutZeroItem[0].node.value *= -1;
|
|
69720
69697
|
withoutZeroItem[0].preOperator = "+";
|
|
69721
69698
|
}
|
|
@@ -69731,7 +69708,7 @@ var require_reducer = __commonJS({
|
|
|
69731
69708
|
return root;
|
|
69732
69709
|
}
|
|
69733
69710
|
function reduceDivisionExpression(node) {
|
|
69734
|
-
if (!isValueType(node.right
|
|
69711
|
+
if (!isValueType(node.right)) {
|
|
69735
69712
|
return node;
|
|
69736
69713
|
}
|
|
69737
69714
|
if (node.right.type !== "Number") {
|
|
@@ -69743,7 +69720,7 @@ var require_reducer = __commonJS({
|
|
|
69743
69720
|
if (divisor === 0) {
|
|
69744
69721
|
throw new Error("Cannot divide by zero");
|
|
69745
69722
|
}
|
|
69746
|
-
if (isValueType(node
|
|
69723
|
+
if (isValueType(node)) {
|
|
69747
69724
|
node.value /= divisor;
|
|
69748
69725
|
return node;
|
|
69749
69726
|
}
|
|
@@ -69775,7 +69752,7 @@ var require_reducer = __commonJS({
|
|
|
69775
69752
|
return node;
|
|
69776
69753
|
}
|
|
69777
69754
|
function applyNumberMultiplication(node, multiplier) {
|
|
69778
|
-
if (isValueType(node
|
|
69755
|
+
if (isValueType(node)) {
|
|
69779
69756
|
node.value *= multiplier;
|
|
69780
69757
|
return node;
|
|
69781
69758
|
}
|
|
@@ -69797,7 +69774,7 @@ var require_reducer = __commonJS({
|
|
|
69797
69774
|
}
|
|
69798
69775
|
};
|
|
69799
69776
|
}
|
|
69800
|
-
function
|
|
69777
|
+
function convertNodesUnits(left, right, precision) {
|
|
69801
69778
|
switch (left.type) {
|
|
69802
69779
|
case "LengthValue":
|
|
69803
69780
|
case "AngleValue":
|
|
@@ -69823,6 +69800,9 @@ var require_reducer = __commonJS({
|
|
|
69823
69800
|
};
|
|
69824
69801
|
}
|
|
69825
69802
|
}
|
|
69803
|
+
function includesNoCssProperties(node) {
|
|
69804
|
+
return node.content.type !== "Function" && (node.content.type !== "MathExpression" || node.content.right.type !== "Function" && node.content.left.type !== "Function");
|
|
69805
|
+
}
|
|
69826
69806
|
function reduce(node, precision) {
|
|
69827
69807
|
if (node.type === "MathExpression") {
|
|
69828
69808
|
if (isAddSubOperator(node.operator)) {
|
|
@@ -69832,12 +69812,17 @@ var require_reducer = __commonJS({
|
|
|
69832
69812
|
node.right = reduce(node.right, precision);
|
|
69833
69813
|
switch (node.operator) {
|
|
69834
69814
|
case "/":
|
|
69835
|
-
return reduceDivisionExpression(node
|
|
69815
|
+
return reduceDivisionExpression(node);
|
|
69836
69816
|
case "*":
|
|
69837
|
-
return reduceMultiplicationExpression(node
|
|
69817
|
+
return reduceMultiplicationExpression(node);
|
|
69838
69818
|
}
|
|
69839
69819
|
return node;
|
|
69840
69820
|
}
|
|
69821
|
+
if (node.type === "ParenthesizedExpression") {
|
|
69822
|
+
if (includesNoCssProperties(node)) {
|
|
69823
|
+
return reduce(node.content, precision);
|
|
69824
|
+
}
|
|
69825
|
+
}
|
|
69841
69826
|
return node;
|
|
69842
69827
|
}
|
|
69843
69828
|
var _default = reduce;
|
|
@@ -69890,9 +69875,11 @@ var require_stringifier3 = __commonJS({
|
|
|
69890
69875
|
return str;
|
|
69891
69876
|
}
|
|
69892
69877
|
case "Number":
|
|
69893
|
-
return round(node.value, prec);
|
|
69878
|
+
return round(node.value, prec).toString();
|
|
69894
69879
|
case "Function":
|
|
69895
|
-
return node.value;
|
|
69880
|
+
return node.value.toString();
|
|
69881
|
+
case "ParenthesizedExpression":
|
|
69882
|
+
return `(${stringify(node.content, prec)})`;
|
|
69896
69883
|
default:
|
|
69897
69884
|
return round(node.value, prec) + node.unit;
|
|
69898
69885
|
}
|
|
@@ -69935,7 +69922,7 @@ var require_transform = __commonJS({
|
|
|
69935
69922
|
function transformValue(value, options, result, item) {
|
|
69936
69923
|
return (0, _postcssValueParser.default)(value).walk((node) => {
|
|
69937
69924
|
if (node.type !== "function" || !MATCH_CALC.test(node.value)) {
|
|
69938
|
-
return
|
|
69925
|
+
return;
|
|
69939
69926
|
}
|
|
69940
69927
|
const contents = _postcssValueParser.default.stringify(node.nodes);
|
|
69941
69928
|
const ast = _parser.parser.parse(contents);
|
|
@@ -69959,7 +69946,21 @@ var require_transform = __commonJS({
|
|
|
69959
69946
|
}).processSync(value);
|
|
69960
69947
|
}
|
|
69961
69948
|
var _default = (node, property, options, result) => {
|
|
69962
|
-
|
|
69949
|
+
let value = node[property];
|
|
69950
|
+
try {
|
|
69951
|
+
value = property === "selector" ? transformSelector(node[property], options, result, node) : transformValue(node[property], options, result, node);
|
|
69952
|
+
} catch (error) {
|
|
69953
|
+
if (error instanceof Error) {
|
|
69954
|
+
result.warn(error.message, {
|
|
69955
|
+
node
|
|
69956
|
+
});
|
|
69957
|
+
} else {
|
|
69958
|
+
result.warn("Error", {
|
|
69959
|
+
node
|
|
69960
|
+
});
|
|
69961
|
+
}
|
|
69962
|
+
return;
|
|
69963
|
+
}
|
|
69963
69964
|
if (options.preserve && node[property] !== value) {
|
|
69964
69965
|
const clone = node.clone();
|
|
69965
69966
|
clone[property] = value;
|
|
@@ -70208,7 +70209,7 @@ var require_dist13 = __commonJS({
|
|
|
70208
70209
|
path: __dirname,
|
|
70209
70210
|
env: resultOptions.env
|
|
70210
70211
|
});
|
|
70211
|
-
const cache =
|
|
70212
|
+
const cache = /* @__PURE__ */ new Map();
|
|
70212
70213
|
const options = addPluginDefaults(config, browsers);
|
|
70213
70214
|
return {
|
|
70214
70215
|
OnceExit(css) {
|
|
@@ -70225,13 +70226,13 @@ var require_dist13 = __commonJS({
|
|
|
70225
70226
|
options,
|
|
70226
70227
|
browsers
|
|
70227
70228
|
});
|
|
70228
|
-
if (cache
|
|
70229
|
-
decl.value = cache
|
|
70229
|
+
if (cache.has(cacheKey)) {
|
|
70230
|
+
decl.value = cache.get(cacheKey);
|
|
70230
70231
|
return;
|
|
70231
70232
|
}
|
|
70232
70233
|
const newValue = transform(value, options);
|
|
70233
70234
|
decl.value = newValue;
|
|
70234
|
-
cache
|
|
70235
|
+
cache.set(cacheKey, newValue);
|
|
70235
70236
|
});
|
|
70236
70237
|
}
|
|
70237
70238
|
};
|
|
@@ -70395,6 +70396,20 @@ var require_animation2 = __commonJS({
|
|
|
70395
70396
|
}
|
|
70396
70397
|
});
|
|
70397
70398
|
|
|
70399
|
+
// node_modules/postcss-ordered-values/dist/lib/mathfunctions.js
|
|
70400
|
+
var require_mathfunctions = __commonJS({
|
|
70401
|
+
"node_modules/postcss-ordered-values/dist/lib/mathfunctions.js"(exports2, module2) {
|
|
70402
|
+
"use strict";
|
|
70403
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
70404
|
+
value: true
|
|
70405
|
+
});
|
|
70406
|
+
exports2.default = void 0;
|
|
70407
|
+
var _default = ["calc", "clamp", "max", "min"];
|
|
70408
|
+
exports2.default = _default;
|
|
70409
|
+
module2.exports = exports2.default;
|
|
70410
|
+
}
|
|
70411
|
+
});
|
|
70412
|
+
|
|
70398
70413
|
// node_modules/postcss-ordered-values/dist/rules/border.js
|
|
70399
70414
|
var require_border2 = __commonJS({
|
|
70400
70415
|
"node_modules/postcss-ordered-values/dist/rules/border.js"(exports2, module2) {
|
|
@@ -70404,6 +70419,10 @@ var require_border2 = __commonJS({
|
|
|
70404
70419
|
});
|
|
70405
70420
|
exports2.default = normalizeBorder;
|
|
70406
70421
|
var _postcssValueParser = require_lib();
|
|
70422
|
+
var _mathfunctions = _interopRequireDefault(require_mathfunctions());
|
|
70423
|
+
function _interopRequireDefault(obj) {
|
|
70424
|
+
return obj && obj.__esModule ? obj : { default: obj };
|
|
70425
|
+
}
|
|
70407
70426
|
var borderWidths = ["thin", "medium", "thick"];
|
|
70408
70427
|
var borderStyles = [
|
|
70409
70428
|
"none",
|
|
@@ -70430,11 +70449,11 @@ var require_border2 = __commonJS({
|
|
|
70430
70449
|
value
|
|
70431
70450
|
} = node;
|
|
70432
70451
|
if (type === "word") {
|
|
70433
|
-
if (
|
|
70452
|
+
if (borderStyles.includes(value.toLowerCase())) {
|
|
70434
70453
|
order.style = value;
|
|
70435
70454
|
return false;
|
|
70436
70455
|
}
|
|
70437
|
-
if (
|
|
70456
|
+
if (borderWidths.includes(value.toLowerCase()) || (0, _postcssValueParser.unit)(value.toLowerCase())) {
|
|
70438
70457
|
if (order.width !== "") {
|
|
70439
70458
|
order.width = `${order.width} ${value}`;
|
|
70440
70459
|
return false;
|
|
@@ -70446,7 +70465,7 @@ var require_border2 = __commonJS({
|
|
|
70446
70465
|
return false;
|
|
70447
70466
|
}
|
|
70448
70467
|
if (type === "function") {
|
|
70449
|
-
if (value.toLowerCase()
|
|
70468
|
+
if (_mathfunctions.default.includes(value.toLowerCase())) {
|
|
70450
70469
|
order.width = (0, _postcssValueParser.stringify)(node);
|
|
70451
70470
|
} else {
|
|
70452
70471
|
order.color = (0, _postcssValueParser.stringify)(node);
|
|
@@ -70460,6 +70479,23 @@ var require_border2 = __commonJS({
|
|
|
70460
70479
|
}
|
|
70461
70480
|
});
|
|
70462
70481
|
|
|
70482
|
+
// node_modules/postcss-ordered-values/dist/lib/vendorUnprefixed.js
|
|
70483
|
+
var require_vendorUnprefixed = __commonJS({
|
|
70484
|
+
"node_modules/postcss-ordered-values/dist/lib/vendorUnprefixed.js"(exports2, module2) {
|
|
70485
|
+
"use strict";
|
|
70486
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
70487
|
+
value: true
|
|
70488
|
+
});
|
|
70489
|
+
exports2.default = void 0;
|
|
70490
|
+
function vendorUnprefixed(prop) {
|
|
70491
|
+
return prop.replace(/^-\w+-/, "");
|
|
70492
|
+
}
|
|
70493
|
+
var _default = vendorUnprefixed;
|
|
70494
|
+
exports2.default = _default;
|
|
70495
|
+
module2.exports = exports2.default;
|
|
70496
|
+
}
|
|
70497
|
+
});
|
|
70498
|
+
|
|
70463
70499
|
// node_modules/postcss-ordered-values/dist/rules/boxShadow.js
|
|
70464
70500
|
var require_boxShadow = __commonJS({
|
|
70465
70501
|
"node_modules/postcss-ordered-values/dist/rules/boxShadow.js"(exports2, module2) {
|
|
@@ -70472,6 +70508,8 @@ var require_boxShadow = __commonJS({
|
|
|
70472
70508
|
var _cssnanoUtils = require_dist6();
|
|
70473
70509
|
var _addSpace = _interopRequireDefault(require_addSpace());
|
|
70474
70510
|
var _getValue = _interopRequireDefault(require_getValue());
|
|
70511
|
+
var _mathfunctions = _interopRequireDefault(require_mathfunctions());
|
|
70512
|
+
var _vendorUnprefixed = _interopRequireDefault(require_vendorUnprefixed());
|
|
70475
70513
|
function _interopRequireDefault(obj) {
|
|
70476
70514
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
70477
70515
|
}
|
|
@@ -70489,7 +70527,7 @@ var require_boxShadow = __commonJS({
|
|
|
70489
70527
|
type,
|
|
70490
70528
|
value
|
|
70491
70529
|
} = node;
|
|
70492
|
-
if (type === "function" &&
|
|
70530
|
+
if (type === "function" && _mathfunctions.default.includes((0, _vendorUnprefixed.default)(value.toLowerCase()))) {
|
|
70493
70531
|
abort = true;
|
|
70494
70532
|
return;
|
|
70495
70533
|
}
|
|
@@ -70625,7 +70663,7 @@ var require_grid = __commonJS({
|
|
|
70625
70663
|
Object.defineProperty(exports2, "__esModule", {
|
|
70626
70664
|
value: true
|
|
70627
70665
|
});
|
|
70628
|
-
exports2.
|
|
70666
|
+
exports2.normalizeGridColumnRowGap = exports2.normalizeGridColumnRow = exports2.normalizeGridAutoFlow = void 0;
|
|
70629
70667
|
var _joinGridValue = _interopRequireDefault(require_joinGridValue());
|
|
70630
70668
|
function _interopRequireDefault(obj) {
|
|
70631
70669
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -70869,22 +70907,18 @@ var require_listStyle = __commonJS({
|
|
|
70869
70907
|
|
|
70870
70908
|
// node_modules/postcss-ordered-values/dist/rules/columns.js
|
|
70871
70909
|
var require_columns = __commonJS({
|
|
70872
|
-
"node_modules/postcss-ordered-values/dist/rules/columns.js"(exports2) {
|
|
70910
|
+
"node_modules/postcss-ordered-values/dist/rules/columns.js"(exports2, module2) {
|
|
70873
70911
|
"use strict";
|
|
70874
70912
|
Object.defineProperty(exports2, "__esModule", {
|
|
70875
70913
|
value: true
|
|
70876
70914
|
});
|
|
70877
|
-
exports2.
|
|
70915
|
+
exports2.default = void 0;
|
|
70878
70916
|
var _postcssValueParser = require_lib();
|
|
70879
|
-
var _border = _interopRequireDefault(require_border2());
|
|
70880
|
-
function _interopRequireDefault(obj) {
|
|
70881
|
-
return obj && obj.__esModule ? obj : { default: obj };
|
|
70882
|
-
}
|
|
70883
70917
|
function hasUnit(value) {
|
|
70884
70918
|
const parsedVal = (0, _postcssValueParser.unit)(value);
|
|
70885
70919
|
return parsedVal && parsedVal.unit !== "";
|
|
70886
70920
|
}
|
|
70887
|
-
var
|
|
70921
|
+
var _default = (columns) => {
|
|
70888
70922
|
const widths = [];
|
|
70889
70923
|
const other = [];
|
|
70890
70924
|
columns.walk((node) => {
|
|
@@ -70905,9 +70939,8 @@ var require_columns = __commonJS({
|
|
|
70905
70939
|
}
|
|
70906
70940
|
return columns;
|
|
70907
70941
|
};
|
|
70908
|
-
exports2.
|
|
70909
|
-
|
|
70910
|
-
exports2.columnsRule = columnsRule;
|
|
70942
|
+
exports2.default = _default;
|
|
70943
|
+
module2.exports = exports2.default;
|
|
70911
70944
|
}
|
|
70912
70945
|
});
|
|
70913
70946
|
|
|
@@ -70927,7 +70960,8 @@ var require_dist14 = __commonJS({
|
|
|
70927
70960
|
var _transition = _interopRequireDefault(require_transition2());
|
|
70928
70961
|
var _grid = require_grid();
|
|
70929
70962
|
var _listStyle = _interopRequireDefault(require_listStyle());
|
|
70930
|
-
var _columns = require_columns();
|
|
70963
|
+
var _columns = _interopRequireDefault(require_columns());
|
|
70964
|
+
var _vendorUnprefixed = _interopRequireDefault(require_vendorUnprefixed());
|
|
70931
70965
|
function _interopRequireDefault(obj) {
|
|
70932
70966
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
70933
70967
|
}
|
|
@@ -70956,8 +70990,8 @@ var require_dist14 = __commonJS({
|
|
|
70956
70990
|
"grid-column-end": _grid.normalizeGridColumnRow
|
|
70957
70991
|
};
|
|
70958
70992
|
var columnRules = {
|
|
70959
|
-
"column-rule":
|
|
70960
|
-
columns: _columns.
|
|
70993
|
+
"column-rule": _border.default,
|
|
70994
|
+
columns: _columns.default
|
|
70961
70995
|
};
|
|
70962
70996
|
var rules = {
|
|
70963
70997
|
animation: _animation.default,
|
|
@@ -70970,9 +71004,6 @@ var require_dist14 = __commonJS({
|
|
|
70970
71004
|
...grid,
|
|
70971
71005
|
...columnRules
|
|
70972
71006
|
};
|
|
70973
|
-
function vendorUnprefixed(prop) {
|
|
70974
|
-
return prop.replace(/^-\w+-/, "");
|
|
70975
|
-
}
|
|
70976
71007
|
function isVariableFunctionNode(node) {
|
|
70977
71008
|
if (node.type !== "function") {
|
|
70978
71009
|
return false;
|
|
@@ -71003,29 +71034,29 @@ var require_dist14 = __commonJS({
|
|
|
71003
71034
|
return {
|
|
71004
71035
|
postcssPlugin: "postcss-ordered-values",
|
|
71005
71036
|
prepare() {
|
|
71006
|
-
const cache =
|
|
71037
|
+
const cache = /* @__PURE__ */ new Map();
|
|
71007
71038
|
return {
|
|
71008
71039
|
OnceExit(css) {
|
|
71009
71040
|
css.walkDecls((decl) => {
|
|
71010
71041
|
const lowerCasedProp = decl.prop.toLowerCase();
|
|
71011
|
-
const normalizedProp =
|
|
71042
|
+
const normalizedProp = (0, _vendorUnprefixed.default)(lowerCasedProp);
|
|
71012
71043
|
const processor = rules[normalizedProp];
|
|
71013
71044
|
if (!processor) {
|
|
71014
71045
|
return;
|
|
71015
71046
|
}
|
|
71016
71047
|
const value = getValue(decl);
|
|
71017
|
-
if (cache
|
|
71018
|
-
decl.value = cache
|
|
71048
|
+
if (cache.has(value)) {
|
|
71049
|
+
decl.value = cache.get(value);
|
|
71019
71050
|
return;
|
|
71020
71051
|
}
|
|
71021
71052
|
const parsed = (0, _postcssValueParser.default)(value);
|
|
71022
71053
|
if (parsed.nodes.length < 2 || shouldAbort(parsed)) {
|
|
71023
|
-
cache
|
|
71054
|
+
cache.set(value, value);
|
|
71024
71055
|
return;
|
|
71025
71056
|
}
|
|
71026
71057
|
const result = processor(parsed);
|
|
71027
71058
|
decl.value = result.toString();
|
|
71028
|
-
cache
|
|
71059
|
+
cache.set(value, result.toString());
|
|
71029
71060
|
});
|
|
71030
71061
|
}
|
|
71031
71062
|
};
|
|
@@ -71398,7 +71429,7 @@ var require_dist15 = __commonJS({
|
|
|
71398
71429
|
return {
|
|
71399
71430
|
postcssPlugin: "postcss-minify-selectors",
|
|
71400
71431
|
OnceExit(css) {
|
|
71401
|
-
const cache =
|
|
71432
|
+
const cache = /* @__PURE__ */ new Map();
|
|
71402
71433
|
const processor = (0, _postcssSelectorParser.default)((selectors) => {
|
|
71403
71434
|
selectors.nodes = (0, _alphanumSort.default)(selectors.nodes, {
|
|
71404
71435
|
insensitive: true
|
|
@@ -71428,13 +71459,13 @@ var require_dist15 = __commonJS({
|
|
|
71428
71459
|
if (selector[selector.length - 1] === ":") {
|
|
71429
71460
|
return;
|
|
71430
71461
|
}
|
|
71431
|
-
if (cache
|
|
71432
|
-
rule.selector = cache
|
|
71462
|
+
if (cache.has(selector)) {
|
|
71463
|
+
rule.selector = cache.get(selector);
|
|
71433
71464
|
return;
|
|
71434
71465
|
}
|
|
71435
71466
|
const optimizedSelector = processor.processSync(selector);
|
|
71436
71467
|
rule.selector = optimizedSelector;
|
|
71437
|
-
cache
|
|
71468
|
+
cache.set(selector, optimizedSelector);
|
|
71438
71469
|
});
|
|
71439
71470
|
}
|
|
71440
71471
|
};
|
|
@@ -71948,7 +71979,7 @@ var require_dist18 = __commonJS({
|
|
|
71948
71979
|
return {
|
|
71949
71980
|
postcssPlugin: "postcss-minify-font-values",
|
|
71950
71981
|
prepare() {
|
|
71951
|
-
const cache =
|
|
71982
|
+
const cache = /* @__PURE__ */ new Map();
|
|
71952
71983
|
return {
|
|
71953
71984
|
OnceExit(css) {
|
|
71954
71985
|
css.walkDecls(/font/i, (decl) => {
|
|
@@ -71958,13 +71989,13 @@ var require_dist18 = __commonJS({
|
|
|
71958
71989
|
}
|
|
71959
71990
|
const prop = decl.prop;
|
|
71960
71991
|
const cacheKey = `${prop}|${value}`;
|
|
71961
|
-
if (cache
|
|
71962
|
-
decl.value = cache
|
|
71992
|
+
if (cache.has(cacheKey)) {
|
|
71993
|
+
decl.value = cache.get(cacheKey);
|
|
71963
71994
|
return;
|
|
71964
71995
|
}
|
|
71965
71996
|
const newValue = transform(prop, value, opts);
|
|
71966
71997
|
decl.value = newValue;
|
|
71967
|
-
cache
|
|
71998
|
+
cache.set(cacheKey, newValue);
|
|
71968
71999
|
});
|
|
71969
72000
|
}
|
|
71970
72001
|
};
|
|
@@ -74370,14 +74401,14 @@ var require_dist23 = __commonJS({
|
|
|
74370
74401
|
return {
|
|
74371
74402
|
postcssPlugin: "postcss-discard-overridden",
|
|
74372
74403
|
prepare() {
|
|
74373
|
-
const cache =
|
|
74404
|
+
const cache = /* @__PURE__ */ new Map();
|
|
74374
74405
|
const rules = [];
|
|
74375
74406
|
return {
|
|
74376
74407
|
OnceExit(css) {
|
|
74377
74408
|
css.walkAtRules((node) => {
|
|
74378
74409
|
if (isOverridable(node.name)) {
|
|
74379
74410
|
const scope = getScope(node);
|
|
74380
|
-
cache
|
|
74411
|
+
cache.set(scope, node);
|
|
74381
74412
|
rules.push({
|
|
74382
74413
|
node,
|
|
74383
74414
|
scope
|
|
@@ -74385,7 +74416,7 @@ var require_dist23 = __commonJS({
|
|
|
74385
74416
|
}
|
|
74386
74417
|
});
|
|
74387
74418
|
rules.forEach((rule) => {
|
|
74388
|
-
if (cache
|
|
74419
|
+
if (cache.get(rule.scope) !== rule.node) {
|
|
74389
74420
|
rule.node.remove();
|
|
74390
74421
|
}
|
|
74391
74422
|
});
|
|
@@ -74409,7 +74440,7 @@ var require_map = __commonJS({
|
|
|
74409
74440
|
value: true
|
|
74410
74441
|
});
|
|
74411
74442
|
exports2.default = void 0;
|
|
74412
|
-
var _default = [[
|
|
74443
|
+
var _default = /* @__PURE__ */ new Map([[["repeat", "no-repeat"].toString(), "repeat-x"], [["no-repeat", "repeat"].toString(), "repeat-y"], [["repeat", "repeat"].toString(), "repeat"], [["space", "space"].toString(), "space"], [["round", "round"].toString(), "round"], [["no-repeat", "no-repeat"].toString(), "no-repeat"]]);
|
|
74413
74444
|
exports2.default = _default;
|
|
74414
74445
|
module2.exports = exports2.default;
|
|
74415
74446
|
}
|
|
@@ -74424,7 +74455,6 @@ var require_dist24 = __commonJS({
|
|
|
74424
74455
|
});
|
|
74425
74456
|
exports2.default = void 0;
|
|
74426
74457
|
var _postcssValueParser = _interopRequireDefault(require_lib());
|
|
74427
|
-
var _cssnanoUtils = require_dist6();
|
|
74428
74458
|
var _map = _interopRequireDefault(require_map());
|
|
74429
74459
|
function _interopRequireDefault(obj) {
|
|
74430
74460
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -74432,8 +74462,7 @@ var require_dist24 = __commonJS({
|
|
|
74432
74462
|
function evenValues(list, index) {
|
|
74433
74463
|
return index % 2 === 0;
|
|
74434
74464
|
}
|
|
74435
|
-
var repeatKeywords = _map.default.
|
|
74436
|
-
var getMatch = (0, _cssnanoUtils.getMatch)(_map.default);
|
|
74465
|
+
var repeatKeywords = [..._map.default.values()];
|
|
74437
74466
|
function isCommaNode(node) {
|
|
74438
74467
|
return node.type === "div" && node.value === ",";
|
|
74439
74468
|
}
|
|
@@ -74500,7 +74529,8 @@ var require_dist24 = __commonJS({
|
|
|
74500
74529
|
if (nodes.length !== 3) {
|
|
74501
74530
|
return;
|
|
74502
74531
|
}
|
|
74503
|
-
const
|
|
74532
|
+
const key = nodes.filter(evenValues).map((n) => n.value.toLowerCase()).toString();
|
|
74533
|
+
const match = _map.default.get(key);
|
|
74504
74534
|
if (match) {
|
|
74505
74535
|
nodes[0].value = match;
|
|
74506
74536
|
nodes[1].value = nodes[2].value = "";
|
|
@@ -74512,7 +74542,7 @@ var require_dist24 = __commonJS({
|
|
|
74512
74542
|
return {
|
|
74513
74543
|
postcssPlugin: "postcss-normalize-repeat-style",
|
|
74514
74544
|
prepare() {
|
|
74515
|
-
const cache =
|
|
74545
|
+
const cache = /* @__PURE__ */ new Map();
|
|
74516
74546
|
return {
|
|
74517
74547
|
OnceExit(css) {
|
|
74518
74548
|
css.walkDecls(/^(background(-repeat)?|(-\w+-)?mask-repeat)$/i, (decl) => {
|
|
@@ -74520,13 +74550,13 @@ var require_dist24 = __commonJS({
|
|
|
74520
74550
|
if (!value) {
|
|
74521
74551
|
return;
|
|
74522
74552
|
}
|
|
74523
|
-
if (cache
|
|
74524
|
-
decl.value = cache
|
|
74553
|
+
if (cache.has(value)) {
|
|
74554
|
+
decl.value = cache.get(value);
|
|
74525
74555
|
return;
|
|
74526
74556
|
}
|
|
74527
74557
|
const result = transform(value);
|
|
74528
74558
|
decl.value = result;
|
|
74529
|
-
cache
|
|
74559
|
+
cache.set(value, result);
|
|
74530
74560
|
});
|
|
74531
74561
|
}
|
|
74532
74562
|
};
|
|
@@ -74547,10 +74577,10 @@ var require_ensureCompatibility = __commonJS({
|
|
|
74547
74577
|
Object.defineProperty(exports2, "__esModule", {
|
|
74548
74578
|
value: true
|
|
74549
74579
|
});
|
|
74550
|
-
exports2.sameVendor = sameVendor;
|
|
74551
|
-
exports2.noVendor = noVendor;
|
|
74552
74580
|
exports2.ensureCompatibility = ensureCompatibility;
|
|
74581
|
+
exports2.noVendor = noVendor;
|
|
74553
74582
|
exports2.pseudoElements = void 0;
|
|
74583
|
+
exports2.sameVendor = sameVendor;
|
|
74554
74584
|
var _caniuseApi = require_dist4();
|
|
74555
74585
|
var _postcssSelectorParser = _interopRequireDefault(require_dist11());
|
|
74556
74586
|
function _interopRequireDefault(obj) {
|
|
@@ -74637,16 +74667,16 @@ var require_ensureCompatibility = __commonJS({
|
|
|
74637
74667
|
function isHostPseudoClass(selector) {
|
|
74638
74668
|
return selector.includes(":host");
|
|
74639
74669
|
}
|
|
74640
|
-
var isSupportedCache =
|
|
74670
|
+
var isSupportedCache = /* @__PURE__ */ new Map();
|
|
74641
74671
|
function isSupportedCached(feature, browsers) {
|
|
74642
74672
|
const key = JSON.stringify({
|
|
74643
74673
|
feature,
|
|
74644
74674
|
browsers
|
|
74645
74675
|
});
|
|
74646
|
-
let result = isSupportedCache
|
|
74676
|
+
let result = isSupportedCache.get(key);
|
|
74647
74677
|
if (!result) {
|
|
74648
74678
|
result = (0, _caniuseApi.isSupported)(feature, browsers);
|
|
74649
|
-
isSupportedCache
|
|
74679
|
+
isSupportedCache.set(key, result);
|
|
74650
74680
|
}
|
|
74651
74681
|
return result;
|
|
74652
74682
|
}
|
|
@@ -74661,8 +74691,8 @@ var require_ensureCompatibility = __commonJS({
|
|
|
74661
74691
|
if (simpleSelectorRe.test(selector)) {
|
|
74662
74692
|
return true;
|
|
74663
74693
|
}
|
|
74664
|
-
if (compatibilityCache && selector
|
|
74665
|
-
return compatibilityCache
|
|
74694
|
+
if (compatibilityCache && compatibilityCache.has(selector)) {
|
|
74695
|
+
return compatibilityCache.get(selector);
|
|
74666
74696
|
}
|
|
74667
74697
|
let compatible = true;
|
|
74668
74698
|
(0, _postcssSelectorParser.default)((ast) => {
|
|
@@ -74710,7 +74740,7 @@ var require_ensureCompatibility = __commonJS({
|
|
|
74710
74740
|
});
|
|
74711
74741
|
}).processSync(selector);
|
|
74712
74742
|
if (compatibilityCache) {
|
|
74713
|
-
compatibilityCache
|
|
74743
|
+
compatibilityCache.set(selector, compatible);
|
|
74714
74744
|
}
|
|
74715
74745
|
return compatible;
|
|
74716
74746
|
});
|
|
@@ -74955,7 +74985,7 @@ var require_dist25 = __commonJS({
|
|
|
74955
74985
|
path: __dirname,
|
|
74956
74986
|
env: resultOpts.env
|
|
74957
74987
|
});
|
|
74958
|
-
const compatibilityCache =
|
|
74988
|
+
const compatibilityCache = /* @__PURE__ */ new Map();
|
|
74959
74989
|
return {
|
|
74960
74990
|
OnceExit(css) {
|
|
74961
74991
|
css.walkRules(selectorMerger(browsers, compatibilityCache));
|
|
@@ -75267,7 +75297,7 @@ var require_dist28 = __commonJS({
|
|
|
75267
75297
|
return {
|
|
75268
75298
|
postcssPlugin: "postcss-normalize-string",
|
|
75269
75299
|
OnceExit(css) {
|
|
75270
|
-
const cache =
|
|
75300
|
+
const cache = /* @__PURE__ */ new Map();
|
|
75271
75301
|
css.walk((node) => {
|
|
75272
75302
|
const {
|
|
75273
75303
|
type
|
|
@@ -75275,13 +75305,13 @@ var require_dist28 = __commonJS({
|
|
|
75275
75305
|
if (Object.prototype.hasOwnProperty.call(params, type)) {
|
|
75276
75306
|
const param = params[type];
|
|
75277
75307
|
const key = node[param] + "|" + preferredQuote;
|
|
75278
|
-
if (cache
|
|
75279
|
-
node[param] = cache
|
|
75308
|
+
if (cache.has(key)) {
|
|
75309
|
+
node[param] = cache.get(key);
|
|
75280
75310
|
return;
|
|
75281
75311
|
}
|
|
75282
75312
|
const newValue = normalize(node[param], preferredQuote);
|
|
75283
75313
|
node[param] = newValue;
|
|
75284
|
-
cache
|
|
75314
|
+
cache.set(key, newValue);
|
|
75285
75315
|
}
|
|
75286
75316
|
});
|
|
75287
75317
|
}
|
|
@@ -75474,19 +75504,19 @@ var require_dist29 = __commonJS({
|
|
|
75474
75504
|
return {
|
|
75475
75505
|
postcssPlugin: "postcss-normalize-positions",
|
|
75476
75506
|
OnceExit(css) {
|
|
75477
|
-
const cache =
|
|
75507
|
+
const cache = /* @__PURE__ */ new Map();
|
|
75478
75508
|
css.walkDecls(/^(background(-position)?|(-\w+-)?perspective-origin)$/i, (decl) => {
|
|
75479
75509
|
const value = decl.value;
|
|
75480
75510
|
if (!value) {
|
|
75481
75511
|
return;
|
|
75482
75512
|
}
|
|
75483
|
-
if (cache
|
|
75484
|
-
decl.value = cache
|
|
75513
|
+
if (cache.has(value)) {
|
|
75514
|
+
decl.value = cache.get(value);
|
|
75485
75515
|
return;
|
|
75486
75516
|
}
|
|
75487
75517
|
const result = transform(value);
|
|
75488
75518
|
decl.value = result;
|
|
75489
|
-
cache
|
|
75519
|
+
cache.set(value, result);
|
|
75490
75520
|
});
|
|
75491
75521
|
}
|
|
75492
75522
|
};
|
|
@@ -75541,7 +75571,7 @@ var require_dist30 = __commonJS({
|
|
|
75541
75571
|
return {
|
|
75542
75572
|
postcssPlugin: "postcss-normalize-whitespace",
|
|
75543
75573
|
OnceExit(css) {
|
|
75544
|
-
const cache =
|
|
75574
|
+
const cache = /* @__PURE__ */ new Map();
|
|
75545
75575
|
css.walk((node) => {
|
|
75546
75576
|
const {
|
|
75547
75577
|
type
|
|
@@ -75555,13 +75585,13 @@ var require_dist30 = __commonJS({
|
|
|
75555
75585
|
}
|
|
75556
75586
|
node.value = node.value.replace(/\s*(\\9)\s*/, "$1");
|
|
75557
75587
|
const value = node.value;
|
|
75558
|
-
if (cache
|
|
75559
|
-
node.value = cache
|
|
75588
|
+
if (cache.has(value)) {
|
|
75589
|
+
node.value = cache.get(value);
|
|
75560
75590
|
} else {
|
|
75561
75591
|
const parsed = (0, _postcssValueParser.default)(node.value);
|
|
75562
75592
|
const result = parsed.walk(reduceWhitespaces).toString();
|
|
75563
75593
|
node.value = result;
|
|
75564
|
-
cache
|
|
75594
|
+
cache.set(value, result);
|
|
75565
75595
|
}
|
|
75566
75596
|
if (node.raws.before) {
|
|
75567
75597
|
const prev = node.prev();
|
|
@@ -75646,7 +75676,7 @@ var require_dist31 = __commonJS({
|
|
|
75646
75676
|
return {
|
|
75647
75677
|
postcssPlugin: "postcss-normalize-unicode",
|
|
75648
75678
|
prepare(result) {
|
|
75649
|
-
const cache =
|
|
75679
|
+
const cache = /* @__PURE__ */ new Map();
|
|
75650
75680
|
const resultOpts = result.opts || {};
|
|
75651
75681
|
const browsers = (0, _browserslist.default)(null, {
|
|
75652
75682
|
stats: resultOpts.stats,
|
|
@@ -75658,13 +75688,13 @@ var require_dist31 = __commonJS({
|
|
|
75658
75688
|
OnceExit(css) {
|
|
75659
75689
|
css.walkDecls(/^unicode-range$/i, (decl) => {
|
|
75660
75690
|
const value = decl.value;
|
|
75661
|
-
if (cache
|
|
75662
|
-
decl.value = cache
|
|
75691
|
+
if (cache.has(value)) {
|
|
75692
|
+
decl.value = cache.get(value);
|
|
75663
75693
|
return;
|
|
75664
75694
|
}
|
|
75665
75695
|
const newValue = transform(value, isLegacy);
|
|
75666
75696
|
decl.value = newValue;
|
|
75667
|
-
cache
|
|
75697
|
+
cache.set(value, newValue);
|
|
75668
75698
|
});
|
|
75669
75699
|
}
|
|
75670
75700
|
};
|
|
@@ -75704,26 +75734,26 @@ var require_map2 = __commonJS({
|
|
|
75704
75734
|
var table = "table";
|
|
75705
75735
|
var tableCell = "table-cell";
|
|
75706
75736
|
var tableCaption = "table-caption";
|
|
75707
|
-
var _default = [
|
|
75708
|
-
[
|
|
75709
|
-
[
|
|
75710
|
-
[
|
|
75711
|
-
[
|
|
75712
|
-
[
|
|
75713
|
-
[
|
|
75714
|
-
[inline + " " + listItem
|
|
75715
|
-
[
|
|
75716
|
-
[
|
|
75717
|
-
[
|
|
75718
|
-
[
|
|
75719
|
-
[
|
|
75720
|
-
[
|
|
75721
|
-
[
|
|
75722
|
-
[
|
|
75723
|
-
[
|
|
75724
|
-
[
|
|
75725
|
-
[
|
|
75726
|
-
];
|
|
75737
|
+
var _default = /* @__PURE__ */ new Map([
|
|
75738
|
+
[[block, flow].toString(), block],
|
|
75739
|
+
[[block, flowRoot].toString(), flowRoot],
|
|
75740
|
+
[[inline, flow].toString(), inline],
|
|
75741
|
+
[[inline, flowRoot].toString(), inlineBlock],
|
|
75742
|
+
[[runIn, flow].toString(), runIn],
|
|
75743
|
+
[[listItem, block, flow].toString(), listItem],
|
|
75744
|
+
[[inline, flow, listItem].toString(), inline + " " + listItem],
|
|
75745
|
+
[[block, flex].toString(), flex],
|
|
75746
|
+
[[inline, flex].toString(), inlineFlex],
|
|
75747
|
+
[[block, grid].toString(), grid],
|
|
75748
|
+
[[inline, grid].toString(), inlineGrid],
|
|
75749
|
+
[[inline, ruby].toString(), ruby],
|
|
75750
|
+
[[block, table].toString(), table],
|
|
75751
|
+
[[inline, table].toString(), inlineTable],
|
|
75752
|
+
[[tableCell, flow].toString(), tableCell],
|
|
75753
|
+
[[tableCaption, flow].toString(), tableCaption],
|
|
75754
|
+
[[rubyBase, flow].toString(), rubyBase],
|
|
75755
|
+
[[rubyText, flow].toString(), rubyText]
|
|
75756
|
+
]);
|
|
75727
75757
|
exports2.default = _default;
|
|
75728
75758
|
module2.exports = exports2.default;
|
|
75729
75759
|
}
|
|
@@ -75738,7 +75768,6 @@ var require_dist32 = __commonJS({
|
|
|
75738
75768
|
});
|
|
75739
75769
|
exports2.default = void 0;
|
|
75740
75770
|
var _postcssValueParser = _interopRequireDefault(require_lib());
|
|
75741
|
-
var _cssnanoUtils = require_dist6();
|
|
75742
75771
|
var _map = _interopRequireDefault(require_map2());
|
|
75743
75772
|
function _interopRequireDefault(obj) {
|
|
75744
75773
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
@@ -75754,7 +75783,7 @@ var require_dist32 = __commonJS({
|
|
|
75754
75783
|
if (values.length === 0) {
|
|
75755
75784
|
return value;
|
|
75756
75785
|
}
|
|
75757
|
-
const match =
|
|
75786
|
+
const match = _map.default.get(values.toString());
|
|
75758
75787
|
if (!match) {
|
|
75759
75788
|
return value;
|
|
75760
75789
|
}
|
|
@@ -75764,7 +75793,7 @@ var require_dist32 = __commonJS({
|
|
|
75764
75793
|
return {
|
|
75765
75794
|
postcssPlugin: "postcss-normalize-display-values",
|
|
75766
75795
|
prepare() {
|
|
75767
|
-
const cache =
|
|
75796
|
+
const cache = /* @__PURE__ */ new Map();
|
|
75768
75797
|
return {
|
|
75769
75798
|
OnceExit(css) {
|
|
75770
75799
|
css.walkDecls(/^display$/i, (decl) => {
|
|
@@ -75772,13 +75801,13 @@ var require_dist32 = __commonJS({
|
|
|
75772
75801
|
if (!value) {
|
|
75773
75802
|
return;
|
|
75774
75803
|
}
|
|
75775
|
-
if (cache
|
|
75776
|
-
decl.value = cache
|
|
75804
|
+
if (cache.has(value)) {
|
|
75805
|
+
decl.value = cache.get(value);
|
|
75777
75806
|
return;
|
|
75778
75807
|
}
|
|
75779
75808
|
const result = transform(value);
|
|
75780
75809
|
decl.value = result;
|
|
75781
|
-
cache
|
|
75810
|
+
cache.set(value, result);
|
|
75782
75811
|
});
|
|
75783
75812
|
}
|
|
75784
75813
|
};
|
|
@@ -75801,11 +75830,11 @@ var require_dist33 = __commonJS({
|
|
|
75801
75830
|
});
|
|
75802
75831
|
exports2.default = void 0;
|
|
75803
75832
|
var _postcssValueParser = _interopRequireDefault(require_lib());
|
|
75804
|
-
var _cssnanoUtils = require_dist6();
|
|
75805
75833
|
function _interopRequireDefault(obj) {
|
|
75806
75834
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
75807
75835
|
}
|
|
75808
75836
|
var getValue = (node) => parseFloat(node.value);
|
|
75837
|
+
var conversions = /* @__PURE__ */ new Map([[[0.25, 0.1, 0.25, 1].toString(), "ease"], [[0, 0, 1, 1].toString(), "linear"], [[0.42, 0, 1, 1].toString(), "ease-in"], [[0, 0, 0.58, 1].toString(), "ease-out"], [[0.42, 0, 0.58, 1].toString(), "ease-in-out"]]);
|
|
75809
75838
|
function reduce(node) {
|
|
75810
75839
|
if (node.type !== "function") {
|
|
75811
75840
|
return false;
|
|
@@ -75840,7 +75869,7 @@ var require_dist33 = __commonJS({
|
|
|
75840
75869
|
if (values.length !== 4) {
|
|
75841
75870
|
return;
|
|
75842
75871
|
}
|
|
75843
|
-
const match =
|
|
75872
|
+
const match = conversions.get(values.toString());
|
|
75844
75873
|
if (match) {
|
|
75845
75874
|
node.type = "word";
|
|
75846
75875
|
node.value = match;
|
|
@@ -75856,16 +75885,16 @@ var require_dist33 = __commonJS({
|
|
|
75856
75885
|
return {
|
|
75857
75886
|
postcssPlugin: "postcss-normalize-timing-functions",
|
|
75858
75887
|
OnceExit(css) {
|
|
75859
|
-
const cache =
|
|
75888
|
+
const cache = /* @__PURE__ */ new Map();
|
|
75860
75889
|
css.walkDecls(/^(-\w+-)?(animation|transition)(-timing-function)?$/i, (decl) => {
|
|
75861
75890
|
const value = decl.value;
|
|
75862
|
-
if (cache
|
|
75863
|
-
decl.value = cache
|
|
75891
|
+
if (cache.has(value)) {
|
|
75892
|
+
decl.value = cache.get(value);
|
|
75864
75893
|
return;
|
|
75865
75894
|
}
|
|
75866
75895
|
const result = transform(value);
|
|
75867
75896
|
decl.value = result;
|
|
75868
|
-
cache
|
|
75897
|
+
cache.set(value, result);
|
|
75869
75898
|
});
|
|
75870
75899
|
}
|
|
75871
75900
|
};
|