@weapp-tailwindcss/postcss 3.1.10 → 3.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compat/mini-program-css/cascade-layers.d.ts +7 -0
- package/dist/compat/mini-program-css/index.d.ts +2 -1
- package/dist/compat/mini-program-css/prune-generated.d.ts +5 -0
- package/dist/generator-plugin/local-imports.d.ts +2 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +653 -392
- package/dist/index.mjs +636 -380
- package/dist/vite-css-rules.d.ts +1 -0
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -10639,6 +10639,161 @@ function protectDynamicColorMixAlpha(css, options = {}) {
|
|
|
10639
10639
|
};
|
|
10640
10640
|
}
|
|
10641
10641
|
//#endregion
|
|
10642
|
+
//#region src/compat/mini-program-css/cascade-layers.ts
|
|
10643
|
+
const LAYER_PATH_SEPARATOR = "";
|
|
10644
|
+
const LAYER_INSERTION_ANCHOR = "__weapp_tailwindcss_layer_anchor__";
|
|
10645
|
+
function splitLayerNames(params) {
|
|
10646
|
+
return params.split(",").map((name) => name.trim()).filter(Boolean);
|
|
10647
|
+
}
|
|
10648
|
+
function splitLayerPath(name) {
|
|
10649
|
+
return name.split(".").map((segment) => segment.trim()).filter(Boolean);
|
|
10650
|
+
}
|
|
10651
|
+
function createLayerPath(segments) {
|
|
10652
|
+
return {
|
|
10653
|
+
key: segments.join(LAYER_PATH_SEPARATOR),
|
|
10654
|
+
segments
|
|
10655
|
+
};
|
|
10656
|
+
}
|
|
10657
|
+
function isContainer(node) {
|
|
10658
|
+
return "nodes" in node && Array.isArray(node.nodes);
|
|
10659
|
+
}
|
|
10660
|
+
function cloneWrapper(node, children) {
|
|
10661
|
+
const wrapper = node.clone({ nodes: [] });
|
|
10662
|
+
wrapper.append(...children);
|
|
10663
|
+
return wrapper;
|
|
10664
|
+
}
|
|
10665
|
+
function wrapLayerNodes(atRule, nodes, root) {
|
|
10666
|
+
let wrapped = nodes;
|
|
10667
|
+
let parent = atRule.parent;
|
|
10668
|
+
while (parent && parent !== root) {
|
|
10669
|
+
if (parent.type !== "atrule" || parent.name !== "layer") {
|
|
10670
|
+
if (isContainer(parent)) wrapped = [cloneWrapper(parent, wrapped)];
|
|
10671
|
+
}
|
|
10672
|
+
parent = parent.parent;
|
|
10673
|
+
}
|
|
10674
|
+
return wrapped;
|
|
10675
|
+
}
|
|
10676
|
+
function removeEmptyLayerAncestors(node, root) {
|
|
10677
|
+
let parent = node.parent;
|
|
10678
|
+
node.remove();
|
|
10679
|
+
while (parent && parent !== root && parent.type === "atrule" && parent.nodes?.length === 0) {
|
|
10680
|
+
const nextParent = parent.parent;
|
|
10681
|
+
parent.remove();
|
|
10682
|
+
parent = nextParent;
|
|
10683
|
+
}
|
|
10684
|
+
}
|
|
10685
|
+
function isLayerDescendant(candidate, parent) {
|
|
10686
|
+
return candidate.length > parent.length && parent.every((segment, index) => candidate[index] === segment);
|
|
10687
|
+
}
|
|
10688
|
+
function findParentLayerPath(atRule, paths) {
|
|
10689
|
+
let parent = atRule.parent;
|
|
10690
|
+
while (parent) {
|
|
10691
|
+
if (parent.type === "atrule" && parent.name === "layer") return paths.get(parent)?.segments ?? [];
|
|
10692
|
+
parent = parent.parent;
|
|
10693
|
+
}
|
|
10694
|
+
return [];
|
|
10695
|
+
}
|
|
10696
|
+
function createLayerInsertionAnchor(root, atRule) {
|
|
10697
|
+
let topLevelNode = atRule;
|
|
10698
|
+
while (topLevelNode.parent && topLevelNode.parent !== root) topLevelNode = topLevelNode.parent;
|
|
10699
|
+
const anchor = postcss.default.comment({ text: LAYER_INSERTION_ANCHOR });
|
|
10700
|
+
topLevelNode.before(anchor);
|
|
10701
|
+
return anchor;
|
|
10702
|
+
}
|
|
10703
|
+
function insertLayeredNodes(root, anchor, nodes) {
|
|
10704
|
+
if (!anchor.parent) {
|
|
10705
|
+
root.append(nodes);
|
|
10706
|
+
return;
|
|
10707
|
+
}
|
|
10708
|
+
if (nodes.length === 0) {
|
|
10709
|
+
anchor.remove();
|
|
10710
|
+
return;
|
|
10711
|
+
}
|
|
10712
|
+
anchor.replaceWith(nodes);
|
|
10713
|
+
}
|
|
10714
|
+
/**
|
|
10715
|
+
* 按 cascade layer 声明顺序重排规则并移除 `@layer` 语法。
|
|
10716
|
+
*
|
|
10717
|
+
* 该转换只模拟 layer 的顺序语义,不通过提高选择器权重模拟完整 specificity 规则。
|
|
10718
|
+
*/
|
|
10719
|
+
function consumeCascadeLayers(root) {
|
|
10720
|
+
const layerAtRules = [];
|
|
10721
|
+
const paths = /* @__PURE__ */ new WeakMap();
|
|
10722
|
+
const siblingOrders = /* @__PURE__ */ new Map();
|
|
10723
|
+
const buckets = /* @__PURE__ */ new Map();
|
|
10724
|
+
const topLayerOccurrences = /* @__PURE__ */ new Map();
|
|
10725
|
+
let anonymousLayerIndex = 0;
|
|
10726
|
+
const registerPath = (segments, occurrence) => {
|
|
10727
|
+
let parentKey = "";
|
|
10728
|
+
for (const [index, segment] of segments.entries()) {
|
|
10729
|
+
let siblings = siblingOrders.get(parentKey);
|
|
10730
|
+
if (!siblings) {
|
|
10731
|
+
siblings = /* @__PURE__ */ new Map();
|
|
10732
|
+
siblingOrders.set(parentKey, siblings);
|
|
10733
|
+
}
|
|
10734
|
+
if (!siblings.has(segment)) siblings.set(segment, siblings.size);
|
|
10735
|
+
if (index === 0 && !topLayerOccurrences.has(segment)) topLayerOccurrences.set(segment, occurrence);
|
|
10736
|
+
parentKey = parentKey ? `${parentKey}${LAYER_PATH_SEPARATOR}${segment}` : segment;
|
|
10737
|
+
}
|
|
10738
|
+
const path = createLayerPath(segments);
|
|
10739
|
+
if (!buckets.has(path.key)) buckets.set(path.key, {
|
|
10740
|
+
...path,
|
|
10741
|
+
nodes: []
|
|
10742
|
+
});
|
|
10743
|
+
return path;
|
|
10744
|
+
};
|
|
10745
|
+
root.walkAtRules("layer", (atRule) => {
|
|
10746
|
+
layerAtRules.push(atRule);
|
|
10747
|
+
const parentLayer = findParentLayerPath(atRule, paths);
|
|
10748
|
+
const names = splitLayerNames(atRule.params);
|
|
10749
|
+
if (!atRule.nodes) {
|
|
10750
|
+
for (const name of names) registerPath([...parentLayer, ...splitLayerPath(name)], atRule);
|
|
10751
|
+
return;
|
|
10752
|
+
}
|
|
10753
|
+
const ownSegments = names[0] ? splitLayerPath(names[0]) : [`\u0000anonymous-${anonymousLayerIndex++}`];
|
|
10754
|
+
paths.set(atRule, registerPath([...parentLayer, ...ownSegments], atRule));
|
|
10755
|
+
});
|
|
10756
|
+
if (layerAtRules.length === 0) return;
|
|
10757
|
+
const insertionAnchors = /* @__PURE__ */ new Map();
|
|
10758
|
+
for (const [segment, occurrence] of topLayerOccurrences) insertionAnchors.set(segment, createLayerInsertionAnchor(root, occurrence));
|
|
10759
|
+
for (const atRule of [...layerAtRules].reverse()) {
|
|
10760
|
+
if (!atRule.parent) continue;
|
|
10761
|
+
const path = paths.get(atRule);
|
|
10762
|
+
if (!path || !atRule.nodes) {
|
|
10763
|
+
removeEmptyLayerAncestors(atRule, root);
|
|
10764
|
+
continue;
|
|
10765
|
+
}
|
|
10766
|
+
const nodes = atRule.nodes.map((node) => node.clone());
|
|
10767
|
+
if (nodes.length > 0) buckets.get(path.key)?.nodes.unshift(...wrapLayerNodes(atRule, nodes, root));
|
|
10768
|
+
removeEmptyLayerAncestors(atRule, root);
|
|
10769
|
+
}
|
|
10770
|
+
const compareBuckets = (left, right) => {
|
|
10771
|
+
if (isLayerDescendant(left.segments, right.segments)) return -1;
|
|
10772
|
+
if (isLayerDescendant(right.segments, left.segments)) return 1;
|
|
10773
|
+
const size = Math.min(left.segments.length, right.segments.length);
|
|
10774
|
+
let parentKey = "";
|
|
10775
|
+
for (let index = 0; index < size; index++) {
|
|
10776
|
+
const leftSegment = left.segments[index];
|
|
10777
|
+
const rightSegment = right.segments[index];
|
|
10778
|
+
if (leftSegment !== rightSegment) {
|
|
10779
|
+
const siblings = siblingOrders.get(parentKey);
|
|
10780
|
+
return (siblings?.get(leftSegment) ?? 0) - (siblings?.get(rightSegment) ?? 0);
|
|
10781
|
+
}
|
|
10782
|
+
parentKey = parentKey ? `${parentKey}${LAYER_PATH_SEPARATOR}${leftSegment}` : leftSegment;
|
|
10783
|
+
}
|
|
10784
|
+
return left.segments.length - right.segments.length;
|
|
10785
|
+
};
|
|
10786
|
+
const bucketsByTopLayer = /* @__PURE__ */ new Map();
|
|
10787
|
+
for (const bucket of buckets.values()) {
|
|
10788
|
+
const topLayer = bucket.segments[0];
|
|
10789
|
+
if (!topLayer || bucket.nodes.length === 0) continue;
|
|
10790
|
+
const group = bucketsByTopLayer.get(topLayer) ?? [];
|
|
10791
|
+
group.push(bucket);
|
|
10792
|
+
bucketsByTopLayer.set(topLayer, group);
|
|
10793
|
+
}
|
|
10794
|
+
for (const [segment, anchor] of insertionAnchors) insertLayeredNodes(root, anchor, (bucketsByTopLayer.get(segment) ?? []).sort(compareBuckets).flatMap((bucket) => bucket.nodes));
|
|
10795
|
+
}
|
|
10796
|
+
//#endregion
|
|
10642
10797
|
//#region src/compat/mini-program-css/at-rules.ts
|
|
10643
10798
|
const MINI_PROGRAM_UNSUPPORTED_AT_RULES = /* @__PURE__ */ new Set(["property", "supports"]);
|
|
10644
10799
|
function removeAtRulesByScan(css, names) {
|
|
@@ -10696,13 +10851,7 @@ function removeUnsupportedAtSupports(css) {
|
|
|
10696
10851
|
* 移除小程序不支持的 cascade layer 语法,同时保留 layer 内的实际规则。
|
|
10697
10852
|
*/
|
|
10698
10853
|
function removeUnsupportedCascadeLayers(root) {
|
|
10699
|
-
root
|
|
10700
|
-
if (!atRule.nodes || atRule.nodes.length === 0) {
|
|
10701
|
-
atRule.remove();
|
|
10702
|
-
return;
|
|
10703
|
-
}
|
|
10704
|
-
atRule.replaceWith(...atRule.nodes);
|
|
10705
|
-
});
|
|
10854
|
+
consumeCascadeLayers(root);
|
|
10706
10855
|
}
|
|
10707
10856
|
function unwrapUnsupportedCascadeLayers(css) {
|
|
10708
10857
|
if (!css.includes("@layer")) return css;
|
|
@@ -11922,7 +12071,7 @@ function removeRootSpecificityPlaceholders(root) {
|
|
|
11922
12071
|
});
|
|
11923
12072
|
}
|
|
11924
12073
|
function isEffectivelyEmptyContainer(container) {
|
|
11925
|
-
return
|
|
12074
|
+
return container.nodes !== void 0 && container.nodes.every((node) => node.type === "comment");
|
|
11926
12075
|
}
|
|
11927
12076
|
function removeEmptyAtRules$2(root) {
|
|
11928
12077
|
root.walkAtRules((atRule) => {
|
|
@@ -12125,260 +12274,6 @@ function finalizeMiniProgramCss(css, options = {}) {
|
|
|
12125
12274
|
}
|
|
12126
12275
|
}
|
|
12127
12276
|
//#endregion
|
|
12128
|
-
//#region src/compat/mini-program-css/prune-generated.ts
|
|
12129
|
-
const DEFAULT_WEAPP_VARIABLE_SCOPE = "page,.tw-root,wx-root-portal-content,:host";
|
|
12130
|
-
const MINI_PROGRAM_PSEUDO_CONTENT_SCOPE_SELECTOR = "::before,\n::after";
|
|
12131
|
-
const CLASS_SELECTOR_RE = /(?:^|[^\w-])\.[_a-z\u00A0-\uFFFF\\-]/i;
|
|
12132
|
-
function isConditionalCompilationComment(text) {
|
|
12133
|
-
return /#(?:ifn?def|endif)\b/.test(text);
|
|
12134
|
-
}
|
|
12135
|
-
function hasClassSelector$1(selector) {
|
|
12136
|
-
return CLASS_SELECTOR_RE.test(selector);
|
|
12137
|
-
}
|
|
12138
|
-
function removeEmptyContentInitDeclarations(rule) {
|
|
12139
|
-
rule.walkDecls((decl) => {
|
|
12140
|
-
if (isEmptyTwContentDeclaration(decl)) decl.remove();
|
|
12141
|
-
});
|
|
12142
|
-
}
|
|
12143
|
-
function isMiniProgramElementVariableScopeRule(rule) {
|
|
12144
|
-
const selectors = getRuleSelectors(rule);
|
|
12145
|
-
return selectors.length > 0 && selectors.every((selector) => MINI_PROGRAM_ELEMENT_SCOPE_SELECTORS.has(selector));
|
|
12146
|
-
}
|
|
12147
|
-
function isMiniProgramNativeElementRule(rule) {
|
|
12148
|
-
const selectors = getRuleSelectors(rule);
|
|
12149
|
-
return selectors.length > 0 && selectors.every((selector) => isMiniProgramNativeElementSelector(selector)) && !isMiniProgramPreflightRule(rule);
|
|
12150
|
-
}
|
|
12151
|
-
function isOnlyTwContentDeclarations(rule) {
|
|
12152
|
-
let hasDeclaration = false;
|
|
12153
|
-
let onlyContentVariable = true;
|
|
12154
|
-
rule.walkDecls((decl) => {
|
|
12155
|
-
hasDeclaration = true;
|
|
12156
|
-
if (decl.prop !== "--tw-content") onlyContentVariable = false;
|
|
12157
|
-
});
|
|
12158
|
-
return hasDeclaration && onlyContentVariable;
|
|
12159
|
-
}
|
|
12160
|
-
function isMiniProgramElementContentInitRule(rule) {
|
|
12161
|
-
if (!isMiniProgramElementVariableScopeRule(rule)) return false;
|
|
12162
|
-
let hasElementSelector = false;
|
|
12163
|
-
let hasPseudoSelector = false;
|
|
12164
|
-
for (const selector of getRuleSelectors(rule)) if (selector === "view" || selector === "text") hasElementSelector = true;
|
|
12165
|
-
else if (selector === "::before" || selector === "::after") hasPseudoSelector = true;
|
|
12166
|
-
return hasElementSelector && hasPseudoSelector && isOnlyTwContentDeclarations(rule);
|
|
12167
|
-
}
|
|
12168
|
-
function hasMiniProgramElementContentInit(root) {
|
|
12169
|
-
let found = false;
|
|
12170
|
-
root.walkRules((rule) => {
|
|
12171
|
-
if (!isMiniProgramElementVariableScopeRule(rule)) return;
|
|
12172
|
-
rule.walkDecls("--tw-content", (decl) => {
|
|
12173
|
-
if (isEmptyTwContentDeclaration(decl)) found = true;
|
|
12174
|
-
});
|
|
12175
|
-
});
|
|
12176
|
-
return found;
|
|
12177
|
-
}
|
|
12178
|
-
function ensureMiniProgramElementContentInit(root) {
|
|
12179
|
-
if (hasMiniProgramElementContentInit(root)) return;
|
|
12180
|
-
let defaultScopeRule;
|
|
12181
|
-
root.walkRules((rule) => {
|
|
12182
|
-
if (rule.selector === "view,text,::after,::before") {
|
|
12183
|
-
defaultScopeRule = rule;
|
|
12184
|
-
return false;
|
|
12185
|
-
}
|
|
12186
|
-
});
|
|
12187
|
-
const declaration = postcss.default.decl({
|
|
12188
|
-
prop: "--tw-content",
|
|
12189
|
-
value: "\"\""
|
|
12190
|
-
});
|
|
12191
|
-
if (defaultScopeRule) {
|
|
12192
|
-
defaultScopeRule.append(declaration);
|
|
12193
|
-
return;
|
|
12194
|
-
}
|
|
12195
|
-
root.prepend(postcss.default.rule({
|
|
12196
|
-
selector: MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR,
|
|
12197
|
-
nodes: [declaration]
|
|
12198
|
-
}));
|
|
12199
|
-
}
|
|
12200
|
-
function isTailwindV4GradientRuntimeDeclaration(decl) {
|
|
12201
|
-
return decl.prop.startsWith("--tw-gradient-");
|
|
12202
|
-
}
|
|
12203
|
-
function moveTailwindV4GradientRuntimeDeclarations(rule) {
|
|
12204
|
-
const gradientDeclarations = [];
|
|
12205
|
-
rule.walkDecls((decl) => {
|
|
12206
|
-
if (isTailwindV4GradientRuntimeDeclaration(decl)) {
|
|
12207
|
-
gradientDeclarations.push(decl.clone());
|
|
12208
|
-
decl.remove();
|
|
12209
|
-
}
|
|
12210
|
-
});
|
|
12211
|
-
if (gradientDeclarations.length > 0) rule.before(new postcss.default.Rule({
|
|
12212
|
-
selector: MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR,
|
|
12213
|
-
nodes: gradientDeclarations
|
|
12214
|
-
}));
|
|
12215
|
-
if (rule.nodes.length === 0) rule.remove();
|
|
12216
|
-
}
|
|
12217
|
-
function isKeyframesRule(rule) {
|
|
12218
|
-
let parent = rule.parent;
|
|
12219
|
-
while (parent) {
|
|
12220
|
-
if (parent.type === "atrule" && parent.name.endsWith("keyframes")) return true;
|
|
12221
|
-
parent = parent.parent;
|
|
12222
|
-
}
|
|
12223
|
-
return false;
|
|
12224
|
-
}
|
|
12225
|
-
/**
|
|
12226
|
-
* 裁剪 Tailwind 生成 CSS 中面向浏览器的 classless 规则。
|
|
12227
|
-
*/
|
|
12228
|
-
function pruneMiniProgramGeneratedCss(css, options = {}) {
|
|
12229
|
-
const root = postcss.default.parse(css);
|
|
12230
|
-
const shouldPreserveContentInit = options.preservePreflight || usesTwContentVariable(root);
|
|
12231
|
-
root.walkComments((comment) => {
|
|
12232
|
-
if (options.preserveConditionalComments && isConditionalCompilationComment(comment.text)) return;
|
|
12233
|
-
comment.remove();
|
|
12234
|
-
});
|
|
12235
|
-
removeUnsupportedCascadeLayers(root);
|
|
12236
|
-
removeSpecificityPlaceholders(root);
|
|
12237
|
-
removeUnsupportedModernColorDeclarations(root);
|
|
12238
|
-
removeTailwindContainerMaxWidthMediaRules(root);
|
|
12239
|
-
removeTailwindContainerWidthRules(root);
|
|
12240
|
-
root.walkAtRules("supports", (atRule) => {
|
|
12241
|
-
atRule.remove();
|
|
12242
|
-
});
|
|
12243
|
-
root.walkAtRules((atRule) => {
|
|
12244
|
-
removeUnsupportedMiniProgramPrefixedAtRule(atRule);
|
|
12245
|
-
});
|
|
12246
|
-
root.walkDecls((decl) => {
|
|
12247
|
-
normalizeMiniProgramPrefixedDeclaration(decl);
|
|
12248
|
-
});
|
|
12249
|
-
root.walkRules((rule) => {
|
|
12250
|
-
if (isKeyframesRule(rule)) return;
|
|
12251
|
-
if (isPseudoContentInitRule(rule)) {
|
|
12252
|
-
if (!shouldPreserveContentInit) rule.remove();
|
|
12253
|
-
return;
|
|
12254
|
-
}
|
|
12255
|
-
if (isMiniProgramElementContentInitRule(rule)) {
|
|
12256
|
-
if (!shouldPreserveContentInit) {
|
|
12257
|
-
rule.remove();
|
|
12258
|
-
return;
|
|
12259
|
-
}
|
|
12260
|
-
rule.selector = MINI_PROGRAM_PSEUDO_CONTENT_SCOPE_SELECTOR;
|
|
12261
|
-
return;
|
|
12262
|
-
}
|
|
12263
|
-
if (isCustomPropertyRule(rule) && isMiniProgramElementVariableScopeRule(rule)) {
|
|
12264
|
-
rule.selector = MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR;
|
|
12265
|
-
return;
|
|
12266
|
-
}
|
|
12267
|
-
if (isUnsupportedBrowserPreflightSelector(rule.selector)) {
|
|
12268
|
-
rule.remove();
|
|
12269
|
-
return;
|
|
12270
|
-
}
|
|
12271
|
-
if (isBrowserElementPreflightRule(rule)) {
|
|
12272
|
-
rule.remove();
|
|
12273
|
-
return;
|
|
12274
|
-
}
|
|
12275
|
-
if (isMiniProgramNativeElementRule(rule)) return;
|
|
12276
|
-
if (isMiniProgramThemeVariableRule(rule)) {
|
|
12277
|
-
moveTailwindV4GradientRuntimeDeclarations(rule);
|
|
12278
|
-
if (!rule.parent) return;
|
|
12279
|
-
rule.selector = DEFAULT_WEAPP_VARIABLE_SCOPE;
|
|
12280
|
-
return;
|
|
12281
|
-
}
|
|
12282
|
-
if (hasClassSelector$1(rule.selector)) return;
|
|
12283
|
-
if (!shouldPreserveContentInit) removeEmptyContentInitDeclarations(rule);
|
|
12284
|
-
if (isMiniProgramPreflightRule(rule)) {
|
|
12285
|
-
if (options.preservePreflight) return;
|
|
12286
|
-
rule.remove();
|
|
12287
|
-
return;
|
|
12288
|
-
}
|
|
12289
|
-
if (isCustomPropertyRule(rule)) {
|
|
12290
|
-
moveTailwindV4GradientRuntimeDeclarations(rule);
|
|
12291
|
-
if (!rule.parent) return;
|
|
12292
|
-
rule.selector = DEFAULT_WEAPP_VARIABLE_SCOPE;
|
|
12293
|
-
return;
|
|
12294
|
-
}
|
|
12295
|
-
rule.remove();
|
|
12296
|
-
});
|
|
12297
|
-
if (shouldPreserveContentInit) ensureMiniProgramElementContentInit(root);
|
|
12298
|
-
root.walkAtRules((atRule) => {
|
|
12299
|
-
if (!atRule.nodes || atRule.nodes.length === 0) atRule.remove();
|
|
12300
|
-
});
|
|
12301
|
-
return root.toString();
|
|
12302
|
-
}
|
|
12303
|
-
//#endregion
|
|
12304
|
-
//#region src/compat/tailwindcss-rpx.ts
|
|
12305
|
-
const LENGTH_VALUE_REGEXP = /^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?rpx$/i;
|
|
12306
|
-
const RPX_DIMENSION_REGEXP = /^([+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)rpx$/i;
|
|
12307
|
-
const DEFAULT_RPX_TO_REM_ROOT_VALUE = 32;
|
|
12308
|
-
const DEFAULT_RPX_TO_REM_UNIT_PRECISION = 5;
|
|
12309
|
-
function formatRpxToRemValue(value, precision) {
|
|
12310
|
-
const fixed = Number(value.toFixed(precision));
|
|
12311
|
-
return Object.is(fixed, -0) ? 0 : fixed;
|
|
12312
|
-
}
|
|
12313
|
-
function convertTailwindcssRpxValueToRem(value, options) {
|
|
12314
|
-
if (!value.includes("rpx") && !value.includes("RPX")) return value;
|
|
12315
|
-
let changed = false;
|
|
12316
|
-
const rootValue = options?.rootValue ?? DEFAULT_RPX_TO_REM_ROOT_VALUE;
|
|
12317
|
-
const unitPrecision = options?.unitPrecision ?? DEFAULT_RPX_TO_REM_UNIT_PRECISION;
|
|
12318
|
-
const parsed = (0, postcss_value_parser.default)(value);
|
|
12319
|
-
parsed.walk((node) => {
|
|
12320
|
-
if (node.type !== "word") return;
|
|
12321
|
-
const match = RPX_DIMENSION_REGEXP.exec(node.value);
|
|
12322
|
-
if (!match) return;
|
|
12323
|
-
node.value = `${formatRpxToRemValue(Number(match[1]) / rootValue, unitPrecision)}rem`;
|
|
12324
|
-
changed = true;
|
|
12325
|
-
});
|
|
12326
|
-
return changed ? parsed.toString() : value;
|
|
12327
|
-
}
|
|
12328
|
-
function normalizeTailwindcssRpxDeclaration(decl, options) {
|
|
12329
|
-
const majorVersion = options?.majorVersion;
|
|
12330
|
-
const normalizedValue = decl.value.trim();
|
|
12331
|
-
if (LENGTH_VALUE_REGEXP.test(normalizedValue) && (majorVersion === void 0 || majorVersion === 4)) {
|
|
12332
|
-
const lowerProp = decl.prop.toLowerCase();
|
|
12333
|
-
if (lowerProp === "color") {
|
|
12334
|
-
decl.prop = "font-size";
|
|
12335
|
-
return true;
|
|
12336
|
-
}
|
|
12337
|
-
if (lowerProp === "background-color") {
|
|
12338
|
-
decl.prop = "background-size";
|
|
12339
|
-
return true;
|
|
12340
|
-
}
|
|
12341
|
-
if (lowerProp === "outline-color") {
|
|
12342
|
-
decl.prop = "outline-width";
|
|
12343
|
-
return true;
|
|
12344
|
-
}
|
|
12345
|
-
if (lowerProp.startsWith("border") && lowerProp.endsWith("color")) {
|
|
12346
|
-
decl.prop = `${decl.prop.slice(0, -5)}width`;
|
|
12347
|
-
return true;
|
|
12348
|
-
}
|
|
12349
|
-
if (lowerProp === "--tw-ring-color") {
|
|
12350
|
-
decl.prop = "--tw-ring-offset-width";
|
|
12351
|
-
return true;
|
|
12352
|
-
}
|
|
12353
|
-
}
|
|
12354
|
-
return false;
|
|
12355
|
-
}
|
|
12356
|
-
function normalizeTailwindcssRpxDeclarations(root, options) {
|
|
12357
|
-
let changed = false;
|
|
12358
|
-
root.walkDecls((decl) => {
|
|
12359
|
-
changed = normalizeTailwindcssRpxDeclaration(decl, options) || changed;
|
|
12360
|
-
});
|
|
12361
|
-
return changed;
|
|
12362
|
-
}
|
|
12363
|
-
function convertTailwindcssRpxDeclarationToRem(decl, options) {
|
|
12364
|
-
const value = convertTailwindcssRpxValueToRem(decl.value, options);
|
|
12365
|
-
if (value === decl.value) return false;
|
|
12366
|
-
decl.value = value;
|
|
12367
|
-
return true;
|
|
12368
|
-
}
|
|
12369
|
-
function convertTailwindcssRpxDeclarationsToRem(root, options) {
|
|
12370
|
-
let changed = false;
|
|
12371
|
-
root.walkDecls((decl) => {
|
|
12372
|
-
changed = convertTailwindcssRpxDeclarationToRem(decl, options) || changed;
|
|
12373
|
-
});
|
|
12374
|
-
return changed;
|
|
12375
|
-
}
|
|
12376
|
-
function normalizeTailwindcssWebRpxDeclarations(root, options) {
|
|
12377
|
-
const normalized = normalizeTailwindcssRpxDeclarations(root, options);
|
|
12378
|
-
const converted = convertTailwindcssRpxDeclarationsToRem(root, options);
|
|
12379
|
-
return normalized || converted;
|
|
12380
|
-
}
|
|
12381
|
-
//#endregion
|
|
12382
12277
|
//#region ../../node_modules/.pnpm/cssdb@8.9.0/node_modules/cssdb/cssdb.mjs
|
|
12383
12278
|
var cssdb_default = [
|
|
12384
12279
|
{
|
|
@@ -14647,7 +14542,7 @@ var cssdb_default = [
|
|
|
14647
14542
|
}
|
|
14648
14543
|
];
|
|
14649
14544
|
//#endregion
|
|
14650
|
-
//#region ../../node_modules/.pnpm/baseline-browser-mapping@2.10.
|
|
14545
|
+
//#region ../../node_modules/.pnpm/baseline-browser-mapping@2.10.43/node_modules/baseline-browser-mapping/dist/index.cjs
|
|
14651
14546
|
var require_dist$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
14652
14547
|
const s = {
|
|
14653
14548
|
chrome: { releases: [
|
|
@@ -18271,7 +18166,7 @@ var require_dist$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((ex
|
|
|
18271
18166
|
],
|
|
18272
18167
|
[
|
|
18273
18168
|
"155",
|
|
18274
|
-
"2026-09-
|
|
18169
|
+
"2026-09-01",
|
|
18275
18170
|
"p",
|
|
18276
18171
|
"g",
|
|
18277
18172
|
"155"
|
|
@@ -19267,7 +19162,7 @@ var require_dist$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((ex
|
|
|
19267
19162
|
],
|
|
19268
19163
|
[
|
|
19269
19164
|
"155",
|
|
19270
|
-
"2026-09-
|
|
19165
|
+
"2026-09-01",
|
|
19271
19166
|
"p",
|
|
19272
19167
|
"g",
|
|
19273
19168
|
"155"
|
|
@@ -34534,7 +34429,7 @@ var require_dist$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((ex
|
|
|
34534
34429
|
return g.suppressWarnings || ((s, a) => {
|
|
34535
34430
|
if (n || "undefined" != typeof process && process.env && (process.env.BROWSERSLIST_IGNORE_OLD_DATA || process.env.BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA)) return;
|
|
34536
34431
|
const r = /* @__PURE__ */ new Date();
|
|
34537
|
-
r.setMonth(r.getMonth() - 2), s > r && (null != a ? a :
|
|
34432
|
+
r.setMonth(r.getMonth() - 2), s > r && (null != a ? a : 1783780964428) < r.getTime() && (console.warn("[baseline-browser-mapping] The data in this module is over two months old and you are targetting a recent feature cut off date of " + s.toISOString().slice(0, 10) + ". To ensure accurate Baseline data, please update to the latest version of this module using the package manager of your choice.You can suppress these warnings using the environment variables `BROWSERSLIST_IGNORE_OLD_DATA=true` or `BASELINE_BROWSER_MAPPING_IGNORE_OLD_DATA=true` or by passing `suppressWarnings: true` when you call `getCompatibleVersions()` or `getAllVersions()`."), n = !0);
|
|
34538
34433
|
})(o, g.overrideLastUpdated), !1 === g.includeDownstreamBrowsers ? t : [...t, ...y(t, g.listAllCompatibleVersions, g.includeKaiOS)];
|
|
34539
34434
|
}
|
|
34540
34435
|
exports._resetHasWarned = function() {
|
|
@@ -34641,7 +34536,7 @@ var require_dist$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((ex
|
|
|
34641
34536
|
}, exports.getCompatibleVersions = O;
|
|
34642
34537
|
}));
|
|
34643
34538
|
//#endregion
|
|
34644
|
-
//#region ../../node_modules/.pnpm/node-releases@2.0.
|
|
34539
|
+
//#region ../../node_modules/.pnpm/node-releases@2.0.51/node_modules/node-releases/data/processed/envs.json
|
|
34645
34540
|
var require_envs = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
34646
34541
|
module.exports = [
|
|
34647
34542
|
{
|
|
@@ -37603,6 +37498,14 @@ var require_envs = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((expo
|
|
|
37603
37498
|
"lts": false,
|
|
37604
37499
|
"security": false,
|
|
37605
37500
|
"v8": "14.6.202.34"
|
|
37501
|
+
},
|
|
37502
|
+
{
|
|
37503
|
+
"name": "nodejs",
|
|
37504
|
+
"version": "26.5.0",
|
|
37505
|
+
"date": "2026-07-08",
|
|
37506
|
+
"lts": false,
|
|
37507
|
+
"security": false,
|
|
37508
|
+
"v8": "14.6.202.34"
|
|
37606
37509
|
}
|
|
37607
37510
|
];
|
|
37608
37511
|
}));
|
|
@@ -42715,7 +42618,7 @@ var require_versions = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((
|
|
|
42715
42618
|
};
|
|
42716
42619
|
}));
|
|
42717
42620
|
//#endregion
|
|
42718
|
-
//#region ../../node_modules/.pnpm/node-releases@2.0.
|
|
42621
|
+
//#region ../../node_modules/.pnpm/node-releases@2.0.51/node_modules/node-releases/data/release-schedule/release-schedule.json
|
|
42719
42622
|
var require_release_schedule = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
42720
42623
|
module.exports = {
|
|
42721
42624
|
"v0.8": {
|
|
@@ -42879,7 +42782,7 @@ var require_release_schedule = /* @__PURE__ */ require_rolldown_runtime.__common
|
|
|
42879
42782
|
};
|
|
42880
42783
|
}));
|
|
42881
42784
|
//#endregion
|
|
42882
|
-
//#region ../../node_modules/.pnpm/browserslist@4.28.
|
|
42785
|
+
//#region ../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/error.js
|
|
42883
42786
|
var require_error = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
42884
42787
|
function BrowserslistError(message) {
|
|
42885
42788
|
this.name = "BrowserslistError";
|
|
@@ -44347,7 +44250,7 @@ var require_region = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((ex
|
|
|
44347
44250
|
module.exports.default = unpackRegion;
|
|
44348
44251
|
}));
|
|
44349
44252
|
//#endregion
|
|
44350
|
-
//#region ../../node_modules/.pnpm/browserslist@4.28.
|
|
44253
|
+
//#region ../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/node.js
|
|
44351
44254
|
var require_node$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
44352
44255
|
var feature = require_feature().default;
|
|
44353
44256
|
var region = require_region().default;
|
|
@@ -44640,7 +44543,7 @@ var require_node$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((ex
|
|
|
44640
44543
|
};
|
|
44641
44544
|
}));
|
|
44642
44545
|
//#endregion
|
|
44643
|
-
//#region ../../node_modules/.pnpm/browserslist@4.28.
|
|
44546
|
+
//#region ../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/parse.js
|
|
44644
44547
|
var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
44645
44548
|
var AND_REGEXP = /^\s+and\s+(.*)/i;
|
|
44646
44549
|
var OR_REGEXP = /^(?:,\s*|\s+or\s+)(.*)/i;
|
|
@@ -44706,7 +44609,7 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
|
|
|
44706
44609
|
};
|
|
44707
44610
|
}));
|
|
44708
44611
|
//#endregion
|
|
44709
|
-
//#region ../../node_modules/.pnpm/browserslist@4.28.
|
|
44612
|
+
//#region ../../node_modules/.pnpm/browserslist@4.28.6/node_modules/browserslist/index.js
|
|
44710
44613
|
var require_browserslist = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
44711
44614
|
var bbm = require_dist$1();
|
|
44712
44615
|
var jsReleases = require_envs();
|
|
@@ -45496,10 +45399,7 @@ var require_browserslist = /* @__PURE__ */ require_rolldown_runtime.__commonJSMi
|
|
|
45496
45399
|
var to = parseFloat(node.to);
|
|
45497
45400
|
if (!e2c[fromToUse]) throw new BrowserslistError("Unknown version " + from + " of electron");
|
|
45498
45401
|
if (!e2c[toToUse]) throw new BrowserslistError("Unknown version " + to + " of electron");
|
|
45499
|
-
return Object.keys(e2c).filter(function(i) {
|
|
45500
|
-
var parsed = parseFloat(i);
|
|
45501
|
-
return parsed >= from && parsed <= to;
|
|
45502
|
-
}).map(function(i) {
|
|
45402
|
+
return Object.keys(e2c).filter(semverFilterLoose(">=", node.from)).filter(semverFilterLoose("<=", node.to)).map(function(i) {
|
|
45503
45403
|
return "chrome " + e2c[i];
|
|
45504
45404
|
});
|
|
45505
45405
|
}
|
|
@@ -45733,7 +45633,7 @@ var require_browserslist = /* @__PURE__ */ require_rolldown_runtime.__commonJSMi
|
|
|
45733
45633
|
module.exports = browserslist;
|
|
45734
45634
|
}));
|
|
45735
45635
|
//#endregion
|
|
45736
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-initial@3.0.0_postcss@8.5.
|
|
45636
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-initial@3.0.0_postcss@8.5.17/node_modules/@csstools/postcss-initial/dist/index.mjs
|
|
45737
45637
|
var import_browserslist = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_browserslist(), 1);
|
|
45738
45638
|
const o$25 = /* @__PURE__ */ new Map([
|
|
45739
45639
|
["animation", "none 0s ease 0s 1 normal none running"],
|
|
@@ -46012,7 +45912,7 @@ const creator$52 = (a) => {
|
|
|
46012
45912
|
};
|
|
46013
45913
|
creator$52.postcss = !0;
|
|
46014
45914
|
//#endregion
|
|
46015
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-progressive-custom-properties@5.1.1_postcss@8.5.
|
|
45915
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-progressive-custom-properties@5.1.1_postcss@8.5.17/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs
|
|
46016
45916
|
const r$9 = [
|
|
46017
45917
|
"at",
|
|
46018
45918
|
"bottom",
|
|
@@ -49769,7 +49669,7 @@ const creator$51 = () => ({
|
|
|
49769
49669
|
});
|
|
49770
49670
|
creator$51.postcss = !0;
|
|
49771
49671
|
//#endregion
|
|
49772
|
-
//#region ../../node_modules/.pnpm/@csstools+utilities@3.0.0_postcss@8.5.
|
|
49672
|
+
//#region ../../node_modules/.pnpm/@csstools+utilities@3.0.0_postcss@8.5.17/node_modules/@csstools/utilities/dist/index.mjs
|
|
49773
49673
|
function hasFallback$1(e) {
|
|
49774
49674
|
const t = e.parent;
|
|
49775
49675
|
if (!t) return !1;
|
|
@@ -49789,7 +49689,7 @@ function hasSupportsAtRuleAncestor(e, t) {
|
|
|
49789
49689
|
return !1;
|
|
49790
49690
|
}
|
|
49791
49691
|
//#endregion
|
|
49792
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-alpha-function@2.0.7_postcss@8.5.
|
|
49692
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-alpha-function@2.0.7_postcss@8.5.17/node_modules/@csstools/postcss-alpha-function/dist/index.mjs
|
|
49793
49693
|
const b$1 = /\balpha\(/i;
|
|
49794
49694
|
const m$9 = /^alpha$/i;
|
|
49795
49695
|
const w$3 = /* @__PURE__ */ new Set([
|
|
@@ -50016,7 +49916,7 @@ const postcssPlugin$16 = (o) => {
|
|
|
50016
49916
|
};
|
|
50017
49917
|
postcssPlugin$16.postcss = !0;
|
|
50018
49918
|
//#endregion
|
|
50019
|
-
//#region ../../node_modules/.pnpm/postcss-pseudo-class-any-link@11.0.0_postcss@8.5.
|
|
49919
|
+
//#region ../../node_modules/.pnpm/postcss-pseudo-class-any-link@11.0.0_postcss@8.5.17/node_modules/postcss-pseudo-class-any-link/dist/index.mjs
|
|
50020
49920
|
const t$15 = (0, import_dist$1.default)().astSync(":link").nodes[0];
|
|
50021
49921
|
const s$15 = (0, import_dist$1.default)().astSync(":visited").nodes[0];
|
|
50022
49922
|
const n$10 = (0, import_dist$1.default)().astSync("area[href]").nodes[0];
|
|
@@ -50113,7 +50013,7 @@ const creator$50 = (e) => {
|
|
|
50113
50013
|
};
|
|
50114
50014
|
creator$50.postcss = !0;
|
|
50115
50015
|
//#endregion
|
|
50116
|
-
//#region ../../node_modules/.pnpm/css-blank-pseudo@8.0.1_postcss@8.5.
|
|
50016
|
+
//#region ../../node_modules/.pnpm/css-blank-pseudo@8.0.1_postcss@8.5.17/node_modules/css-blank-pseudo/dist/index.mjs
|
|
50117
50017
|
const s$14 = [
|
|
50118
50018
|
" ",
|
|
50119
50019
|
">",
|
|
@@ -50190,7 +50090,7 @@ const creator$49 = (s) => {
|
|
|
50190
50090
|
};
|
|
50191
50091
|
creator$49.postcss = !0;
|
|
50192
50092
|
//#endregion
|
|
50193
|
-
//#region ../../node_modules/.pnpm/postcss-page-break@3.0.4_postcss@8.5.
|
|
50093
|
+
//#region ../../node_modules/.pnpm/postcss-page-break@3.0.4_postcss@8.5.17/node_modules/postcss-page-break/index.js
|
|
50194
50094
|
var require_postcss_page_break = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
50195
50095
|
module.exports = function(options) {
|
|
50196
50096
|
return {
|
|
@@ -50352,7 +50252,7 @@ function selectorNodeContainsNothingOrOnlyUniversal$1(e) {
|
|
|
50352
50252
|
return 0 === t.length || 1 === t.length && "universal" === t[0].type;
|
|
50353
50253
|
}
|
|
50354
50254
|
//#endregion
|
|
50355
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-cascade-layers@6.0.0_postcss@8.5.
|
|
50255
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-cascade-layers@6.0.0_postcss@8.5.17/node_modules/@csstools/postcss-cascade-layers/dist/index.mjs
|
|
50356
50256
|
const t$13 = "csstools-invalid-layer";
|
|
50357
50257
|
const a$5 = "csstools-layer-with-selector-rules";
|
|
50358
50258
|
const s$13 = "6efdb677-bb05-44e5-840f-29d2175862fd";
|
|
@@ -50674,7 +50574,7 @@ const creator$48 = (a) => {
|
|
|
50674
50574
|
};
|
|
50675
50575
|
creator$48.postcss = !0;
|
|
50676
50576
|
//#endregion
|
|
50677
|
-
//#region ../../node_modules/.pnpm/postcss-attribute-case-insensitive@8.0.0_postcss@8.5.
|
|
50577
|
+
//#region ../../node_modules/.pnpm/postcss-attribute-case-insensitive@8.0.0_postcss@8.5.17/node_modules/postcss-attribute-case-insensitive/dist/index.mjs
|
|
50678
50578
|
function nodeIsInsensitiveAttribute(e) {
|
|
50679
50579
|
return "attribute" === e.type && (e.insensitive ?? !1);
|
|
50680
50580
|
}
|
|
@@ -50748,9 +50648,9 @@ const creator$47 = (t) => {
|
|
|
50748
50648
|
};
|
|
50749
50649
|
creator$47.postcss = !0;
|
|
50750
50650
|
//#endregion
|
|
50751
|
-
//#region ../../node_modules/.pnpm/postcss-clamp@4.1.0_postcss@8.5.
|
|
50651
|
+
//#region ../../node_modules/.pnpm/postcss-clamp@4.1.0_postcss@8.5.17/node_modules/postcss-clamp/index.js
|
|
50752
50652
|
var require_postcss_clamp = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
50753
|
-
let valueParser$
|
|
50653
|
+
let valueParser$4 = require("postcss-value-parser");
|
|
50754
50654
|
function parseValue(value) {
|
|
50755
50655
|
let parsed = value.match(/([\d.-]+)(.*)/);
|
|
50756
50656
|
if (!parsed || !parsed[1] || !parsed[2] || isNaN(parsed[1])) return;
|
|
@@ -50763,8 +50663,8 @@ var require_postcss_clamp = /* @__PURE__ */ require_rolldown_runtime.__commonJSM
|
|
|
50763
50663
|
}
|
|
50764
50664
|
function updateValue(declaration, value, preserve) {
|
|
50765
50665
|
let newValue = value;
|
|
50766
|
-
let newValueAst = valueParser$
|
|
50767
|
-
let valueAST = valueParser$
|
|
50666
|
+
let newValueAst = valueParser$4(value);
|
|
50667
|
+
let valueAST = valueParser$4(declaration.value);
|
|
50768
50668
|
let foundClamp = false;
|
|
50769
50669
|
valueAST.walk((node, index, nodes) => {
|
|
50770
50670
|
if (!(node.type === "function" && node.value === "clamp") || foundClamp) return;
|
|
@@ -50783,13 +50683,13 @@ var require_postcss_clamp = /* @__PURE__ */ require_rolldown_runtime.__commonJSM
|
|
|
50783
50683
|
postcssPlugin: "postcss-clamp",
|
|
50784
50684
|
Declaration(decl) {
|
|
50785
50685
|
if (!decl || !decl.value.includes("clamp")) return;
|
|
50786
|
-
valueParser$
|
|
50686
|
+
valueParser$4(decl.value).walk((node) => {
|
|
50787
50687
|
let nodes = node.nodes;
|
|
50788
50688
|
if (node.type !== "function" || node.value !== "clamp" || nodes.length !== 5) return;
|
|
50789
50689
|
let first = nodes[0];
|
|
50790
50690
|
let second = nodes[2];
|
|
50791
50691
|
let third = nodes[4];
|
|
50792
|
-
let naive = compose(valueParser$
|
|
50692
|
+
let naive = compose(valueParser$4.stringify(first), valueParser$4.stringify(second), valueParser$4.stringify(third));
|
|
50793
50693
|
if (!precalculate || second.type !== "word" || third.type !== "word") {
|
|
50794
50694
|
updateValue(decl, naive, preserve);
|
|
50795
50695
|
return;
|
|
@@ -50809,13 +50709,13 @@ var require_postcss_clamp = /* @__PURE__ */ require_rolldown_runtime.__commonJSM
|
|
|
50809
50709
|
let parsedFirst = parseValue(first.value);
|
|
50810
50710
|
if (parsedFirst === void 0) {
|
|
50811
50711
|
let secondThirdValue = `${secondValue + thirdValue}${secondUnit}`;
|
|
50812
|
-
updateValue(decl, compose(valueParser$
|
|
50712
|
+
updateValue(decl, compose(valueParser$4.stringify(first), secondThirdValue), preserve);
|
|
50813
50713
|
return;
|
|
50814
50714
|
}
|
|
50815
50715
|
let [firstValue, firstUnit] = parsedFirst;
|
|
50816
50716
|
if (firstUnit !== secondUnit) {
|
|
50817
50717
|
let secondThirdValue = `${secondValue + thirdValue}${secondUnit}`;
|
|
50818
|
-
updateValue(decl, compose(valueParser$
|
|
50718
|
+
updateValue(decl, compose(valueParser$4.stringify(first), secondThirdValue), preserve);
|
|
50819
50719
|
return;
|
|
50820
50720
|
}
|
|
50821
50721
|
updateValue(decl, compose(`${firstValue + secondValue + thirdValue}${secondUnit}`), preserve);
|
|
@@ -50826,7 +50726,7 @@ var require_postcss_clamp = /* @__PURE__ */ require_rolldown_runtime.__commonJSM
|
|
|
50826
50726
|
module.exports.postcss = true;
|
|
50827
50727
|
}));
|
|
50828
50728
|
//#endregion
|
|
50829
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function@5.0.6_postcss@8.5.
|
|
50729
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function@5.0.6_postcss@8.5.17/node_modules/@csstools/postcss-color-function/dist/index.mjs
|
|
50830
50730
|
var import_postcss_clamp = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_postcss_clamp(), 1);
|
|
50831
50731
|
const u$7 = /\bcolor\(/i;
|
|
50832
50732
|
const m$7 = /^color$/i;
|
|
@@ -50858,7 +50758,7 @@ const postcssPlugin$15 = (o) => {
|
|
|
50858
50758
|
};
|
|
50859
50759
|
postcssPlugin$15.postcss = !0;
|
|
50860
50760
|
//#endregion
|
|
50861
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function-display-p3-linear@2.0.6_postcss@8.5.
|
|
50761
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function-display-p3-linear@2.0.6_postcss@8.5.17/node_modules/@csstools/postcss-color-function-display-p3-linear/dist/index.mjs
|
|
50862
50762
|
const m$6 = /\bdisplay-p3-linear\b/i;
|
|
50863
50763
|
const f$7 = /^color$/i;
|
|
50864
50764
|
const basePlugin$14 = (s) => ({
|
|
@@ -50889,7 +50789,7 @@ const postcssPlugin$14 = (o) => {
|
|
|
50889
50789
|
};
|
|
50890
50790
|
postcssPlugin$14.postcss = !0;
|
|
50891
50791
|
//#endregion
|
|
50892
|
-
//#region ../../node_modules/.pnpm/postcss-color-functional-notation@8.0.6_postcss@8.5.
|
|
50792
|
+
//#region ../../node_modules/.pnpm/postcss-color-functional-notation@8.0.6_postcss@8.5.17/node_modules/postcss-color-functional-notation/dist/index.mjs
|
|
50893
50793
|
const m$5 = /^(?:rgb|hsl)a?$/i;
|
|
50894
50794
|
const f$6 = /\b(?:rgb|hsl)a?\(/i;
|
|
50895
50795
|
const basePlugin$13 = (s) => ({
|
|
@@ -50920,7 +50820,7 @@ const postcssPlugin$13 = (o) => {
|
|
|
50920
50820
|
};
|
|
50921
50821
|
postcssPlugin$13.postcss = !0;
|
|
50922
50822
|
//#endregion
|
|
50923
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-function@4.0.6_postcss@8.5.
|
|
50823
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-function@4.0.6_postcss@8.5.17/node_modules/@csstools/postcss-color-mix-function/dist/index.mjs
|
|
50924
50824
|
const f$5 = /\bcolor-mix\(/i;
|
|
50925
50825
|
const g$6 = /^color-mix$/i;
|
|
50926
50826
|
const basePlugin$12 = (s) => ({
|
|
@@ -50958,7 +50858,7 @@ const postcssPlugin$12 = (e) => {
|
|
|
50958
50858
|
};
|
|
50959
50859
|
postcssPlugin$12.postcss = !0;
|
|
50960
50860
|
//#endregion
|
|
50961
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-variadic-function-arguments@2.0.6_postcss@8.5.
|
|
50861
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-variadic-function-arguments@2.0.6_postcss@8.5.17/node_modules/@csstools/postcss-color-mix-variadic-function-arguments/dist/index.mjs
|
|
50962
50862
|
const f$4 = /\bcolor-mix\(/i;
|
|
50963
50863
|
const g$5 = /^color-mix$/i;
|
|
50964
50864
|
const basePlugin$11 = (s) => ({
|
|
@@ -50996,7 +50896,7 @@ const postcssPlugin$11 = (e) => {
|
|
|
50996
50896
|
};
|
|
50997
50897
|
postcssPlugin$11.postcss = !0;
|
|
50998
50898
|
//#endregion
|
|
50999
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-container-rule-prelude-list@1.0.1_postcss@8.5.
|
|
50899
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-container-rule-prelude-list@1.0.1_postcss@8.5.17/node_modules/@csstools/postcss-container-rule-prelude-list/dist/index.mjs
|
|
51000
50900
|
const t$12 = /^container$/i;
|
|
51001
50901
|
const creator$46 = (o) => {
|
|
51002
50902
|
const a = Object.assign({ preserve: !1 }, o);
|
|
@@ -51014,7 +50914,7 @@ const creator$46 = (o) => {
|
|
|
51014
50914
|
};
|
|
51015
50915
|
creator$46.postcss = !0;
|
|
51016
50916
|
//#endregion
|
|
51017
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-content-alt-text@3.0.2_postcss@8.5.
|
|
50917
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-content-alt-text@3.0.2_postcss@8.5.17/node_modules/@csstools/postcss-content-alt-text/dist/index.mjs
|
|
51018
50918
|
function transform$3(s, t) {
|
|
51019
50919
|
const e = s[0];
|
|
51020
50920
|
if (!e.length) return "";
|
|
@@ -51060,7 +50960,7 @@ const creator$45 = (t) => {
|
|
|
51060
50960
|
};
|
|
51061
50961
|
creator$45.postcss = !0;
|
|
51062
50962
|
//#endregion
|
|
51063
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-contrast-color-function@3.0.6_postcss@8.5.
|
|
50963
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-contrast-color-function@3.0.6_postcss@8.5.17/node_modules/@csstools/postcss-contrast-color-function/dist/index.mjs
|
|
51064
50964
|
const u$6 = /\bcontrast-color\(/i;
|
|
51065
50965
|
const m$4 = /^contrast-color$/i;
|
|
51066
50966
|
const basePlugin$9 = (s) => ({
|
|
@@ -52996,7 +52896,7 @@ var b;
|
|
|
52996
52896
|
e.All = "all", e.Print = "print", e.Screen = "screen", e.Tty = "tty", e.Tv = "tv", e.Projection = "projection", e.Handheld = "handheld", e.Braille = "braille", e.Embossed = "embossed", e.Aural = "aural", e.Speech = "speech";
|
|
52997
52897
|
})(b || (b = {}));
|
|
52998
52898
|
//#endregion
|
|
52999
|
-
//#region ../../node_modules/.pnpm/postcss-custom-media@12.0.1_postcss@8.5.
|
|
52899
|
+
//#region ../../node_modules/.pnpm/postcss-custom-media@12.0.1_postcss@8.5.17/node_modules/postcss-custom-media/dist/index.mjs
|
|
53000
52900
|
const C$2 = parse$1("csstools-implicit-layer")[0];
|
|
53001
52901
|
function collectCascadeLayerOrder$2(t) {
|
|
53002
52902
|
const n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [];
|
|
@@ -53424,7 +53324,7 @@ const creator$44 = (e) => {
|
|
|
53424
53324
|
};
|
|
53425
53325
|
creator$44.postcss = !0;
|
|
53426
53326
|
//#endregion
|
|
53427
|
-
//#region ../../node_modules/.pnpm/postcss-custom-properties@15.0.1_postcss@8.5.
|
|
53327
|
+
//#region ../../node_modules/.pnpm/postcss-custom-properties@15.0.1_postcss@8.5.17/node_modules/postcss-custom-properties/dist/index.mjs
|
|
53428
53328
|
const o$21 = parse$1("csstools-implicit-layer")[0];
|
|
53429
53329
|
function collectCascadeLayerOrder$1(r) {
|
|
53430
53330
|
const n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), a = [];
|
|
@@ -53743,7 +53643,7 @@ const creator$43 = (e) => {
|
|
|
53743
53643
|
};
|
|
53744
53644
|
creator$43.postcss = !0;
|
|
53745
53645
|
//#endregion
|
|
53746
|
-
//#region ../../node_modules/.pnpm/postcss-custom-selectors@9.0.1_postcss@8.5.
|
|
53646
|
+
//#region ../../node_modules/.pnpm/postcss-custom-selectors@9.0.1_postcss@8.5.17/node_modules/postcss-custom-selectors/dist/index.mjs
|
|
53747
53647
|
const s$11 = parse$1("csstools-implicit-layer")[0];
|
|
53748
53648
|
function collectCascadeLayerOrder(e) {
|
|
53749
53649
|
const o = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), a = [];
|
|
@@ -53879,7 +53779,7 @@ const creator$42 = (e) => {
|
|
|
53879
53779
|
};
|
|
53880
53780
|
creator$42.postcss = !0;
|
|
53881
53781
|
//#endregion
|
|
53882
|
-
//#region ../../node_modules/.pnpm/postcss-dir-pseudo-class@10.0.0_postcss@8.5.
|
|
53782
|
+
//#region ../../node_modules/.pnpm/postcss-dir-pseudo-class@10.0.0_postcss@8.5.17/node_modules/postcss-dir-pseudo-class/dist/index.mjs
|
|
53883
53783
|
const creator$41 = (t) => {
|
|
53884
53784
|
const r = Object.assign({
|
|
53885
53785
|
dir: null,
|
|
@@ -53950,7 +53850,7 @@ const creator$41 = (t) => {
|
|
|
53950
53850
|
};
|
|
53951
53851
|
creator$41.postcss = !0;
|
|
53952
53852
|
//#endregion
|
|
53953
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-normalize-display-values@5.0.1_postcss@8.5.
|
|
53853
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-normalize-display-values@5.0.1_postcss@8.5.17/node_modules/@csstools/postcss-normalize-display-values/dist/index.mjs
|
|
53954
53854
|
var l$5 = /* @__PURE__ */ new Map([
|
|
53955
53855
|
["flow", "block"],
|
|
53956
53856
|
["block,flow", "block"],
|
|
@@ -54020,7 +53920,7 @@ const creator$40 = (i) => {
|
|
|
54020
53920
|
};
|
|
54021
53921
|
creator$40.postcss = !0;
|
|
54022
53922
|
//#endregion
|
|
54023
|
-
//#region ../../node_modules/.pnpm/postcss-double-position-gradients@7.0.2_postcss@8.5.
|
|
53923
|
+
//#region ../../node_modules/.pnpm/postcss-double-position-gradients@7.0.2_postcss@8.5.17/node_modules/postcss-double-position-gradients/dist/index.mjs
|
|
54024
53924
|
const o$19 = /(?:repeating-)?(?:conic|linear|radial)-gradient\(/i;
|
|
54025
53925
|
const i$5 = /^(?:repeating-)?(?:conic|linear|radial)-gradient$/i;
|
|
54026
53926
|
const n$7 = [
|
|
@@ -54101,7 +54001,7 @@ const postcssPlugin$9 = (t) => {
|
|
|
54101
54001
|
};
|
|
54102
54002
|
postcssPlugin$9.postcss = !0;
|
|
54103
54003
|
//#endregion
|
|
54104
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-exponential-functions@3.0.3_postcss@8.5.
|
|
54004
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-exponential-functions@3.0.3_postcss@8.5.17/node_modules/@csstools/postcss-exponential-functions/dist/index.mjs
|
|
54105
54005
|
const s$10 = /(?<![-\w])(?:exp|hypot|log|pow|sqrt)\(/i;
|
|
54106
54006
|
const creator$39 = (o) => {
|
|
54107
54007
|
const t = Object.assign({ preserve: !1 }, o);
|
|
@@ -54116,7 +54016,7 @@ const creator$39 = (o) => {
|
|
|
54116
54016
|
};
|
|
54117
54017
|
creator$39.postcss = !0;
|
|
54118
54018
|
//#endregion
|
|
54119
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-float-and-clear@4.0.0_postcss@8.5.
|
|
54019
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-float-and-clear@4.0.0_postcss@8.5.17/node_modules/@csstools/postcss-logical-float-and-clear/dist/index.mjs
|
|
54120
54020
|
const t$9 = "inline-start";
|
|
54121
54021
|
const o$18 = "inline-end";
|
|
54122
54022
|
var e$26;
|
|
@@ -54162,7 +54062,7 @@ const creator$38 = (n) => {
|
|
|
54162
54062
|
};
|
|
54163
54063
|
creator$38.postcss = !0;
|
|
54164
54064
|
//#endregion
|
|
54165
|
-
//#region ../../node_modules/.pnpm/postcss-focus-visible@11.0.0_postcss@8.5.
|
|
54065
|
+
//#region ../../node_modules/.pnpm/postcss-focus-visible@11.0.0_postcss@8.5.17/node_modules/postcss-focus-visible/dist/index.mjs
|
|
54166
54066
|
const s$9 = "js-focus-visible";
|
|
54167
54067
|
const o$17 = ":focus-visible";
|
|
54168
54068
|
const creator$37 = (t) => {
|
|
@@ -54218,7 +54118,7 @@ const creator$37 = (t) => {
|
|
|
54218
54118
|
};
|
|
54219
54119
|
creator$37.postcss = !0;
|
|
54220
54120
|
//#endregion
|
|
54221
|
-
//#region ../../node_modules/.pnpm/postcss-focus-within@10.0.0_postcss@8.5.
|
|
54121
|
+
//#region ../../node_modules/.pnpm/postcss-focus-within@10.0.0_postcss@8.5.17/node_modules/postcss-focus-within/dist/index.mjs
|
|
54222
54122
|
const s$8 = [
|
|
54223
54123
|
" ",
|
|
54224
54124
|
">",
|
|
@@ -54295,7 +54195,7 @@ const creator$36 = (s) => {
|
|
|
54295
54195
|
};
|
|
54296
54196
|
creator$36.postcss = !0;
|
|
54297
54197
|
//#endregion
|
|
54298
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-font-format-keywords@5.0.0_postcss@8.5.
|
|
54198
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-font-format-keywords@5.0.0_postcss@8.5.17/node_modules/@csstools/postcss-font-format-keywords/dist/index.mjs
|
|
54299
54199
|
const t$7 = [
|
|
54300
54200
|
"woff",
|
|
54301
54201
|
"truetype",
|
|
@@ -54331,7 +54231,7 @@ const creator$35 = (r) => {
|
|
|
54331
54231
|
};
|
|
54332
54232
|
creator$35.postcss = !0;
|
|
54333
54233
|
//#endregion
|
|
54334
|
-
//#region ../../node_modules/.pnpm/postcss-font-variant@5.0.0_postcss@8.5.
|
|
54234
|
+
//#region ../../node_modules/.pnpm/postcss-font-variant@5.0.0_postcss@8.5.17/node_modules/postcss-font-variant/index.js
|
|
54335
54235
|
var require_postcss_font_variant = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
54336
54236
|
/**
|
|
54337
54237
|
* font variant convertion map
|
|
@@ -54426,7 +54326,7 @@ var require_postcss_font_variant = /* @__PURE__ */ require_rolldown_runtime.__co
|
|
|
54426
54326
|
module.exports.postcss = true;
|
|
54427
54327
|
}));
|
|
54428
54328
|
//#endregion
|
|
54429
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-font-width-property@1.0.0_postcss@8.5.
|
|
54329
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-font-width-property@1.0.0_postcss@8.5.17/node_modules/@csstools/postcss-font-width-property/dist/index.mjs
|
|
54430
54330
|
var import_postcss_font_variant = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_postcss_font_variant(), 1);
|
|
54431
54331
|
const e$22 = /^font-width$/i;
|
|
54432
54332
|
const o$16 = /\bfont-width\b/i;
|
|
@@ -54448,7 +54348,7 @@ function hasFallback(t) {
|
|
|
54448
54348
|
}
|
|
54449
54349
|
creator$34.postcss = !0;
|
|
54450
54350
|
//#endregion
|
|
54451
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-gamut-mapping@3.0.6_postcss@8.5.
|
|
54351
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-gamut-mapping@3.0.6_postcss@8.5.17/node_modules/@csstools/postcss-gamut-mapping/dist/index.mjs
|
|
54452
54352
|
const p = /\bcolor-gamut\b/i;
|
|
54453
54353
|
function hasConditionalAncestor(e) {
|
|
54454
54354
|
let o = e.parent;
|
|
@@ -54545,7 +54445,7 @@ const creator$33 = () => ({
|
|
|
54545
54445
|
});
|
|
54546
54446
|
creator$33.postcss = !0;
|
|
54547
54447
|
//#endregion
|
|
54548
|
-
//#region ../../node_modules/.pnpm/postcss-gap-properties@7.0.0_postcss@8.5.
|
|
54448
|
+
//#region ../../node_modules/.pnpm/postcss-gap-properties@7.0.0_postcss@8.5.17/node_modules/postcss-gap-properties/dist/index.mjs
|
|
54549
54449
|
const e$21 = [
|
|
54550
54450
|
"column-gap",
|
|
54551
54451
|
"gap",
|
|
@@ -54565,7 +54465,7 @@ const creator$32 = (o) => {
|
|
|
54565
54465
|
};
|
|
54566
54466
|
creator$32.postcss = !0;
|
|
54567
54467
|
//#endregion
|
|
54568
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-gradients-interpolation-method@6.0.6_postcss@8.5.
|
|
54468
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-gradients-interpolation-method@6.0.6_postcss@8.5.17/node_modules/@csstools/postcss-gradients-interpolation-method/dist/index.mjs
|
|
54569
54469
|
const x = /(?:repeating-)?(?:linear|radial|conic)-gradient\(/i;
|
|
54570
54470
|
const W = /\bin\b/i;
|
|
54571
54471
|
const P$1 = { test: (o) => x.test(o) && W.test(o) };
|
|
@@ -54860,7 +54760,7 @@ const postcssPlugin$8 = (e) => {
|
|
|
54860
54760
|
};
|
|
54861
54761
|
postcssPlugin$8.postcss = !0;
|
|
54862
54762
|
//#endregion
|
|
54863
|
-
//#region ../../node_modules/.pnpm/css-has-pseudo@8.0.0_postcss@8.5.
|
|
54763
|
+
//#region ../../node_modules/.pnpm/css-has-pseudo@8.0.0_postcss@8.5.17/node_modules/css-has-pseudo/dist/index.mjs
|
|
54864
54764
|
function encodeCSS(e) {
|
|
54865
54765
|
if ("" === e) return "";
|
|
54866
54766
|
let t, s = "";
|
|
@@ -54971,7 +54871,7 @@ function isWithinSupportCheck(e) {
|
|
|
54971
54871
|
}
|
|
54972
54872
|
creator$31.postcss = !0;
|
|
54973
54873
|
//#endregion
|
|
54974
|
-
//#region ../../node_modules/.pnpm/postcss-color-hex-alpha@11.0.0_postcss@8.5.
|
|
54874
|
+
//#region ../../node_modules/.pnpm/postcss-color-hex-alpha@11.0.0_postcss@8.5.17/node_modules/postcss-color-hex-alpha/dist/index.mjs
|
|
54975
54875
|
const creator$30 = (a) => {
|
|
54976
54876
|
const o = Object.assign({ preserve: !1 }, a);
|
|
54977
54877
|
return {
|
|
@@ -55004,7 +54904,7 @@ function hexa2rgba(e) {
|
|
|
55004
54904
|
e.value = `rgba(${r},${l},${n},${c})`;
|
|
55005
54905
|
}
|
|
55006
54906
|
//#endregion
|
|
55007
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-hwb-function@5.0.6_postcss@8.5.
|
|
54907
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-hwb-function@5.0.6_postcss@8.5.17/node_modules/@csstools/postcss-hwb-function/dist/index.mjs
|
|
55008
54908
|
const u$3 = /\bhwb\(/i;
|
|
55009
54909
|
const m$2 = /^hwb$/i;
|
|
55010
54910
|
const basePlugin$6 = (s) => ({
|
|
@@ -55035,7 +54935,7 @@ const postcssPlugin$7 = (o) => {
|
|
|
55035
54935
|
};
|
|
55036
54936
|
postcssPlugin$7.postcss = !0;
|
|
55037
54937
|
//#endregion
|
|
55038
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-ic-unit@5.0.2_postcss@8.5.
|
|
54938
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-ic-unit@5.0.2_postcss@8.5.17/node_modules/@csstools/postcss-ic-unit/dist/index.mjs
|
|
55039
54939
|
const o$14 = /ic\b/i;
|
|
55040
54940
|
const i$4 = /\(font-size: \d+ic\)/i;
|
|
55041
54941
|
const basePlugin$5 = (s) => ({
|
|
@@ -55067,7 +54967,7 @@ const postcssPlugin$6 = (e) => {
|
|
|
55067
54967
|
};
|
|
55068
54968
|
postcssPlugin$6.postcss = !0;
|
|
55069
54969
|
//#endregion
|
|
55070
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-image-function@1.0.1_postcss@8.5.
|
|
54970
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-image-function@1.0.1_postcss@8.5.17/node_modules/@csstools/postcss-image-function/dist/index.mjs
|
|
55071
54971
|
const u$2 = /\bimage\(/i;
|
|
55072
54972
|
const g$3 = /^image$/i;
|
|
55073
54973
|
const basePlugin$4 = (e) => ({
|
|
@@ -55112,7 +55012,7 @@ const postcssPlugin$5 = (s) => {
|
|
|
55112
55012
|
};
|
|
55113
55013
|
postcssPlugin$5.postcss = !0;
|
|
55114
55014
|
//#endregion
|
|
55115
|
-
//#region ../../node_modules/.pnpm/postcss-image-set-function@8.0.0_postcss@8.5.
|
|
55015
|
+
//#region ../../node_modules/.pnpm/postcss-image-set-function@8.0.0_postcss@8.5.17/node_modules/postcss-image-set-function/dist/index.mjs
|
|
55116
55016
|
function isComma$1(e) {
|
|
55117
55017
|
return !!e && "div" === e.type && "," === e.value;
|
|
55118
55018
|
}
|
|
@@ -58301,7 +58201,7 @@ function selectorNodeContainsNothingOrOnlyUniversal(e) {
|
|
|
58301
58201
|
return 0 === t.length || 1 === t.length && "universal" === t[0].type;
|
|
58302
58202
|
}
|
|
58303
58203
|
//#endregion
|
|
58304
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-is-pseudo-class@6.0.0_postcss@8.5.
|
|
58204
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-is-pseudo-class@6.0.0_postcss@8.5.17/node_modules/@csstools/postcss-is-pseudo-class/dist/index.mjs
|
|
58305
58205
|
function alwaysValidSelector(s) {
|
|
58306
58206
|
const o = (0, import_dist.default)().astSync(s);
|
|
58307
58207
|
let n = !0;
|
|
@@ -58571,7 +58471,7 @@ const creator$28 = (e) => {
|
|
|
58571
58471
|
};
|
|
58572
58472
|
creator$28.postcss = !0;
|
|
58573
58473
|
//#endregion
|
|
58574
|
-
//#region ../../node_modules/.pnpm/postcss-lab-function@8.0.6_postcss@8.5.
|
|
58474
|
+
//#region ../../node_modules/.pnpm/postcss-lab-function@8.0.6_postcss@8.5.17/node_modules/postcss-lab-function/dist/index.mjs
|
|
58575
58475
|
const g$2 = /\b(?:lab|lch)\(/i;
|
|
58576
58476
|
const f$2 = /^(?:lab|lch)$/i;
|
|
58577
58477
|
const basePlugin$3 = (s) => ({
|
|
@@ -58609,7 +58509,7 @@ const postcssPlugin$4 = (e) => {
|
|
|
58609
58509
|
};
|
|
58610
58510
|
postcssPlugin$4.postcss = !0;
|
|
58611
58511
|
//#endregion
|
|
58612
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-light-dark-function@3.0.2_postcss@8.5.
|
|
58512
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-light-dark-function@3.0.2_postcss@8.5.17/node_modules/@csstools/postcss-light-dark-function/dist/index.mjs
|
|
58613
58513
|
const k$1 = "--csstools-color-scheme--light";
|
|
58614
58514
|
const D = "initial";
|
|
58615
58515
|
function toggleNameGenerator(e) {
|
|
@@ -58810,7 +58710,7 @@ const postcssPlugin$3 = (r) => {
|
|
|
58810
58710
|
};
|
|
58811
58711
|
postcssPlugin$3.postcss = !0;
|
|
58812
58712
|
//#endregion
|
|
58813
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overflow@3.0.0_postcss@8.5.
|
|
58713
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overflow@3.0.0_postcss@8.5.17/node_modules/@csstools/postcss-logical-overflow/dist/index.mjs
|
|
58814
58714
|
var o$11;
|
|
58815
58715
|
function transformAxes$1(o, t) {
|
|
58816
58716
|
const e = t ? "-x" : "-y", i = t ? "-y" : "-x", n = o.prop.toLowerCase().replace("-inline", e).replace("-block", i), s = o.value;
|
|
@@ -58842,7 +58742,7 @@ const creator$27 = (t) => {
|
|
|
58842
58742
|
};
|
|
58843
58743
|
creator$27.postcss = !0;
|
|
58844
58744
|
//#endregion
|
|
58845
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overscroll-behavior@3.0.0_postcss@8.5.
|
|
58745
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overscroll-behavior@3.0.0_postcss@8.5.17/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.mjs
|
|
58846
58746
|
var o$10;
|
|
58847
58747
|
function transformAxes(o, t) {
|
|
58848
58748
|
const e = t ? "-x" : "-y", i = t ? "-y" : "-x", r = o.prop.toLowerCase().replace("-inline", e).replace("-block", i), s = o.value;
|
|
@@ -58874,7 +58774,7 @@ const creator$26 = (t) => {
|
|
|
58874
58774
|
};
|
|
58875
58775
|
creator$26.postcss = !0;
|
|
58876
58776
|
//#endregion
|
|
58877
|
-
//#region ../../node_modules/.pnpm/postcss-logical@9.0.0_postcss@8.5.
|
|
58777
|
+
//#region ../../node_modules/.pnpm/postcss-logical@9.0.0_postcss@8.5.17/node_modules/postcss-logical/dist/index.mjs
|
|
58878
58778
|
var e$14;
|
|
58879
58779
|
var n$2;
|
|
58880
58780
|
(function(r) {
|
|
@@ -59237,7 +59137,7 @@ const creator$25 = (r) => {
|
|
|
59237
59137
|
};
|
|
59238
59138
|
creator$25.postcss = !0;
|
|
59239
59139
|
//#endregion
|
|
59240
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-resize@4.0.0_postcss@8.5.
|
|
59140
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-resize@4.0.0_postcss@8.5.17/node_modules/@csstools/postcss-logical-resize/dist/index.mjs
|
|
59241
59141
|
var t$3;
|
|
59242
59142
|
var e$13;
|
|
59243
59143
|
var i$1;
|
|
@@ -59312,7 +59212,7 @@ const creator$24 = (o) => {
|
|
|
59312
59212
|
};
|
|
59313
59213
|
creator$24.postcss = !0;
|
|
59314
59214
|
//#endregion
|
|
59315
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-viewport-units@4.0.0_postcss@8.5.
|
|
59215
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-viewport-units@4.0.0_postcss@8.5.17/node_modules/@csstools/postcss-logical-viewport-units/dist/index.mjs
|
|
59316
59216
|
var s$6;
|
|
59317
59217
|
function transform$1(t, o) {
|
|
59318
59218
|
const s = tokenizer({ css: t }), c = [];
|
|
@@ -59384,7 +59284,7 @@ const creator$23 = (e) => {
|
|
|
59384
59284
|
};
|
|
59385
59285
|
creator$23.postcss = !0;
|
|
59386
59286
|
//#endregion
|
|
59387
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-media-queries-aspect-ratio-number-values@4.0.0_postcss@8.5.
|
|
59287
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-media-queries-aspect-ratio-number-values@4.0.0_postcss@8.5.17/node_modules/@csstools/postcss-media-queries-aspect-ratio-number-values/dist/index.mjs
|
|
59388
59288
|
const w = 1e5;
|
|
59389
59289
|
const h$1 = 2147483647;
|
|
59390
59290
|
function transformMediaFeatureValue(t) {
|
|
@@ -59676,7 +59576,7 @@ const creator$22 = (e) => {
|
|
|
59676
59576
|
};
|
|
59677
59577
|
creator$22.postcss = !0;
|
|
59678
59578
|
//#endregion
|
|
59679
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-media-minmax@3.0.3_postcss@8.5.
|
|
59579
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-media-minmax@3.0.3_postcss@8.5.17/node_modules/@csstools/postcss-media-minmax/dist/index.mjs
|
|
59680
59580
|
const C = {
|
|
59681
59581
|
width: "px",
|
|
59682
59582
|
height: "px",
|
|
@@ -60062,7 +59962,7 @@ const creator$21 = () => ({
|
|
|
60062
59962
|
});
|
|
60063
59963
|
creator$21.postcss = !0;
|
|
60064
59964
|
//#endregion
|
|
60065
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-mixins@1.0.0_postcss@8.5.
|
|
59965
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-mixins@1.0.0_postcss@8.5.17/node_modules/@csstools/postcss-mixins/dist/index.mjs
|
|
60066
59966
|
const o$7 = /^apply$/i;
|
|
60067
59967
|
function processableApplyRule(o) {
|
|
60068
59968
|
if (!o.params || !o.params.includes("--")) return !1;
|
|
@@ -60120,7 +60020,7 @@ const creator$20 = (e) => {
|
|
|
60120
60020
|
};
|
|
60121
60021
|
creator$20.postcss = !0;
|
|
60122
60022
|
//#endregion
|
|
60123
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-nested-calc@5.0.0_postcss@8.5.
|
|
60023
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-nested-calc@5.0.0_postcss@8.5.17/node_modules/@csstools/postcss-nested-calc/dist/index.mjs
|
|
60124
60024
|
const r$4 = /calc\(/gi;
|
|
60125
60025
|
const creator$19 = (s) => {
|
|
60126
60026
|
const o = Object.assign({ preserve: !0 }, s);
|
|
@@ -60252,7 +60152,7 @@ function isCompoundSelector$1(o) {
|
|
|
60252
60152
|
return 1 === o.length && !o[0].nodes.some((o) => "combinator" === o.type || import_dist$1.default.isPseudoElement(o));
|
|
60253
60153
|
}
|
|
60254
60154
|
//#endregion
|
|
60255
|
-
//#region ../../node_modules/.pnpm/postcss-nesting@14.0.0_postcss@8.5.
|
|
60155
|
+
//#region ../../node_modules/.pnpm/postcss-nesting@14.0.0_postcss@8.5.17/node_modules/postcss-nesting/dist/index.mjs
|
|
60256
60156
|
const r$3 = import_dist$1.default.pseudo({ value: ":is" });
|
|
60257
60157
|
function sortCompoundSelectorsInsideComplexSelector(t) {
|
|
60258
60158
|
if (!t || !t.nodes) return;
|
|
@@ -60627,7 +60527,7 @@ const creator$18 = (e) => {
|
|
|
60627
60527
|
};
|
|
60628
60528
|
creator$18.postcss = !0;
|
|
60629
60529
|
//#endregion
|
|
60630
|
-
//#region ../../node_modules/.pnpm/postcss-selector-not@9.0.0_postcss@8.5.
|
|
60530
|
+
//#region ../../node_modules/.pnpm/postcss-selector-not@9.0.0_postcss@8.5.17/node_modules/postcss-selector-not/dist/index.mjs
|
|
60631
60531
|
function cleanupWhitespace(e) {
|
|
60632
60532
|
e.spaces && (e.spaces.after = "", e.spaces.before = ""), e.nodes && e.nodes.length > 0 && (e.nodes[0] && e.nodes[0].spaces && (e.nodes[0].spaces.before = ""), e.nodes[e.nodes.length - 1] && e.nodes[e.nodes.length - 1].spaces && (e.nodes[e.nodes.length - 1].spaces.after = ""));
|
|
60633
60533
|
}
|
|
@@ -60658,7 +60558,7 @@ const creator$17 = () => ({
|
|
|
60658
60558
|
});
|
|
60659
60559
|
creator$17.postcss = !0;
|
|
60660
60560
|
//#endregion
|
|
60661
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-oklab-function@5.0.6_postcss@8.5.
|
|
60561
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-oklab-function@5.0.6_postcss@8.5.17/node_modules/@csstools/postcss-oklab-function/dist/index.mjs
|
|
60662
60562
|
const g$1 = /\b(?:oklab|oklch)\(/i;
|
|
60663
60563
|
const f$1 = /^(?:oklab|oklch)$/i;
|
|
60664
60564
|
const basePlugin$1 = (s) => ({
|
|
@@ -60696,7 +60596,7 @@ const postcssPlugin$2 = (e) => {
|
|
|
60696
60596
|
};
|
|
60697
60597
|
postcssPlugin$2.postcss = !0;
|
|
60698
60598
|
//#endregion
|
|
60699
|
-
//#region ../../node_modules/.pnpm/postcss-opacity-percentage@3.0.0_postcss@8.5.
|
|
60599
|
+
//#region ../../node_modules/.pnpm/postcss-opacity-percentage@3.0.0_postcss@8.5.17/node_modules/postcss-opacity-percentage/index.js
|
|
60700
60600
|
var require_postcss_opacity_percentage = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
60701
60601
|
const doNothingValues = /* @__PURE__ */ new Set([
|
|
60702
60602
|
"inherit",
|
|
@@ -60718,7 +60618,7 @@ var require_postcss_opacity_percentage = /* @__PURE__ */ require_rolldown_runtim
|
|
|
60718
60618
|
module.exports.postcss = true;
|
|
60719
60619
|
}));
|
|
60720
60620
|
//#endregion
|
|
60721
|
-
//#region ../../node_modules/.pnpm/postcss-overflow-shorthand@7.0.0_postcss@8.5.
|
|
60621
|
+
//#region ../../node_modules/.pnpm/postcss-overflow-shorthand@7.0.0_postcss@8.5.17/node_modules/postcss-overflow-shorthand/dist/index.mjs
|
|
60722
60622
|
var import_postcss_opacity_percentage = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_postcss_opacity_percentage(), 1);
|
|
60723
60623
|
const creator$16 = (o) => {
|
|
60724
60624
|
const r = Object.assign({ preserve: !0 }, o);
|
|
@@ -60748,7 +60648,7 @@ const creator$16 = (o) => {
|
|
|
60748
60648
|
};
|
|
60749
60649
|
creator$16.postcss = !0;
|
|
60750
60650
|
//#endregion
|
|
60751
|
-
//#region ../../node_modules/.pnpm/postcss-replace-overflow-wrap@4.0.0_postcss@8.5.
|
|
60651
|
+
//#region ../../node_modules/.pnpm/postcss-replace-overflow-wrap@4.0.0_postcss@8.5.17/node_modules/postcss-replace-overflow-wrap/index.js
|
|
60752
60652
|
var require_postcss_replace_overflow_wrap = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
60753
60653
|
module.exports = function(opts) {
|
|
60754
60654
|
opts = opts || {};
|
|
@@ -60764,7 +60664,7 @@ var require_postcss_replace_overflow_wrap = /* @__PURE__ */ require_rolldown_run
|
|
|
60764
60664
|
module.exports.postcss = true;
|
|
60765
60665
|
}));
|
|
60766
60666
|
//#endregion
|
|
60767
|
-
//#region ../../node_modules/.pnpm/postcss-place@11.0.0_postcss@8.5.
|
|
60667
|
+
//#region ../../node_modules/.pnpm/postcss-place@11.0.0_postcss@8.5.17/node_modules/postcss-place/dist/index.mjs
|
|
60768
60668
|
var import_postcss_replace_overflow_wrap = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_postcss_replace_overflow_wrap(), 1);
|
|
60769
60669
|
function onCSSDeclaration(o, r, s) {
|
|
60770
60670
|
const n = o.prop.match(t$2)?.[1].toLowerCase();
|
|
@@ -60797,7 +60697,7 @@ const creator$15 = (e) => {
|
|
|
60797
60697
|
};
|
|
60798
60698
|
creator$15.postcss = !0;
|
|
60799
60699
|
//#endregion
|
|
60800
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-position-area-property@2.0.0_postcss@8.5.
|
|
60700
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-position-area-property@2.0.0_postcss@8.5.17/node_modules/@csstools/postcss-position-area-property/dist/index.mjs
|
|
60801
60701
|
const o$4 = /^position-area$/i;
|
|
60802
60702
|
const creator$14 = () => ({
|
|
60803
60703
|
postcssPlugin: "postcss-position-area-property",
|
|
@@ -60810,7 +60710,7 @@ const creator$14 = () => ({
|
|
|
60810
60710
|
});
|
|
60811
60711
|
creator$14.postcss = !0;
|
|
60812
60712
|
//#endregion
|
|
60813
|
-
//#region ../../node_modules/.pnpm/css-prefers-color-scheme@11.0.0_postcss@8.5.
|
|
60713
|
+
//#region ../../node_modules/.pnpm/css-prefers-color-scheme@11.0.0_postcss@8.5.17/node_modules/css-prefers-color-scheme/dist/index.mjs
|
|
60814
60714
|
const e$6 = /\(\s*prefers-color-scheme\s*:\s*(dark|light)\s*\)/gi;
|
|
60815
60715
|
const s$4 = "(color: 48842621)";
|
|
60816
60716
|
const r$2 = "(color: 70318723)";
|
|
@@ -60834,7 +60734,7 @@ const creator$13 = (o) => {
|
|
|
60834
60734
|
};
|
|
60835
60735
|
creator$13.postcss = !0;
|
|
60836
60736
|
//#endregion
|
|
60837
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-property-rule-prelude-list@2.0.0_postcss@8.5.
|
|
60737
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-property-rule-prelude-list@2.0.0_postcss@8.5.17/node_modules/@csstools/postcss-property-rule-prelude-list/dist/index.mjs
|
|
60838
60738
|
const o$3 = /^property$/i;
|
|
60839
60739
|
const creator$12 = () => ({
|
|
60840
60740
|
postcssPlugin: "postcss-property-rule-prelude-list",
|
|
@@ -60849,7 +60749,7 @@ const creator$12 = () => ({
|
|
|
60849
60749
|
});
|
|
60850
60750
|
creator$12.postcss = !0;
|
|
60851
60751
|
//#endregion
|
|
60852
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-random-function@3.0.3_postcss@8.5.
|
|
60752
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-random-function@3.0.3_postcss@8.5.17/node_modules/@csstools/postcss-random-function/dist/index.mjs
|
|
60853
60753
|
const o$2 = String.fromCodePoint(0);
|
|
60854
60754
|
function randomCacheKeyFromPostcssDeclaration(e) {
|
|
60855
60755
|
let r = "", t = e.parent;
|
|
@@ -60887,7 +60787,7 @@ const creator$11 = (o) => {
|
|
|
60887
60787
|
};
|
|
60888
60788
|
creator$11.postcss = !0;
|
|
60889
60789
|
//#endregion
|
|
60890
|
-
//#region ../../node_modules/.pnpm/postcss-color-rebeccapurple@11.0.0_postcss@8.5.
|
|
60790
|
+
//#region ../../node_modules/.pnpm/postcss-color-rebeccapurple@11.0.0_postcss@8.5.17/node_modules/postcss-color-rebeccapurple/dist/index.mjs
|
|
60891
60791
|
const s$3 = /rebeccapurple/i;
|
|
60892
60792
|
const t$1 = /^rebeccapurple$/i;
|
|
60893
60793
|
const creator$10 = (o) => {
|
|
@@ -60908,7 +60808,7 @@ const creator$10 = (o) => {
|
|
|
60908
60808
|
};
|
|
60909
60809
|
creator$10.postcss = !0;
|
|
60910
60810
|
//#endregion
|
|
60911
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-relative-color-syntax@4.0.6_postcss@8.5.
|
|
60811
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-relative-color-syntax@4.0.6_postcss@8.5.17/node_modules/@csstools/postcss-relative-color-syntax/dist/index.mjs
|
|
60912
60812
|
const g = /\b(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)\(/i;
|
|
60913
60813
|
const h = /\b(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)\(\s*from/i;
|
|
60914
60814
|
const m$1 = /^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)$/i;
|
|
@@ -60948,7 +60848,7 @@ const postcssPlugin$1 = (e) => {
|
|
|
60948
60848
|
};
|
|
60949
60849
|
postcssPlugin$1.postcss = !0;
|
|
60950
60850
|
//#endregion
|
|
60951
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-scope-pseudo-class@5.0.0_postcss@8.5.
|
|
60851
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-scope-pseudo-class@5.0.0_postcss@8.5.17/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.mjs
|
|
60952
60852
|
const creator$9 = (s) => {
|
|
60953
60853
|
const r = Object.assign({ preserve: !1 }, s);
|
|
60954
60854
|
return {
|
|
@@ -60986,7 +60886,7 @@ const creator$9 = (s) => {
|
|
|
60986
60886
|
};
|
|
60987
60887
|
creator$9.postcss = !0;
|
|
60988
60888
|
//#endregion
|
|
60989
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-sign-functions@2.0.3_postcss@8.5.
|
|
60889
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-sign-functions@2.0.3_postcss@8.5.17/node_modules/@csstools/postcss-sign-functions/dist/index.mjs
|
|
60990
60890
|
const m = /(?<![-\w])(?:sign|abs)\(/i;
|
|
60991
60891
|
const f = /(?<![-\w])(?:sign|abs)\(/i;
|
|
60992
60892
|
const creator$8 = (o) => {
|
|
@@ -61098,7 +60998,7 @@ function replacer(e) {
|
|
|
61098
60998
|
}
|
|
61099
60999
|
creator$8.postcss = !0;
|
|
61100
61000
|
//#endregion
|
|
61101
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-stepped-value-functions@5.0.3_postcss@8.5.
|
|
61001
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-stepped-value-functions@5.0.3_postcss@8.5.17/node_modules/@csstools/postcss-stepped-value-functions/dist/index.mjs
|
|
61102
61002
|
const s$2 = /(?<![-\w])(?:mod|rem|round)\(/i;
|
|
61103
61003
|
const creator$7 = (o) => {
|
|
61104
61004
|
const t = Object.assign({ preserve: !1 }, o);
|
|
@@ -61116,7 +61016,7 @@ const creator$7 = (o) => {
|
|
|
61116
61016
|
};
|
|
61117
61017
|
creator$7.postcss = !0;
|
|
61118
61018
|
//#endregion
|
|
61119
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-syntax-descriptor-syntax-production@2.0.0_postcss@8.5.
|
|
61019
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-syntax-descriptor-syntax-production@2.0.0_postcss@8.5.17/node_modules/@csstools/postcss-syntax-descriptor-syntax-production/dist/index.mjs
|
|
61120
61020
|
const o$1 = /^property$/i;
|
|
61121
61021
|
const n$1 = /^syntax$/i;
|
|
61122
61022
|
const creator$6 = (i) => {
|
|
@@ -61189,7 +61089,7 @@ const creator$6 = (i) => {
|
|
|
61189
61089
|
};
|
|
61190
61090
|
creator$6.postcss = !0;
|
|
61191
61091
|
//#endregion
|
|
61192
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-system-ui-font-family@2.0.0_postcss@8.5.
|
|
61092
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-system-ui-font-family@2.0.0_postcss@8.5.17/node_modules/@csstools/postcss-system-ui-font-family/dist/index.mjs
|
|
61193
61093
|
const a = /^font(?:-family)?$/i;
|
|
61194
61094
|
const c$2 = [
|
|
61195
61095
|
"system-ui",
|
|
@@ -61245,7 +61145,7 @@ const creator$5 = (p) => {
|
|
|
61245
61145
|
};
|
|
61246
61146
|
creator$5.postcss = !0;
|
|
61247
61147
|
//#endregion
|
|
61248
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-text-decoration-shorthand@5.0.4_postcss@8.5.
|
|
61148
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-text-decoration-shorthand@5.0.4_postcss@8.5.17/node_modules/@csstools/postcss-text-decoration-shorthand/dist/index.mjs
|
|
61249
61149
|
const o = /^text-decoration$/i;
|
|
61250
61150
|
const creator$4 = (t) => {
|
|
61251
61151
|
const c = Object.assign({ preserve: !0 }, t);
|
|
@@ -61462,7 +61362,7 @@ function genericNodeParts() {
|
|
|
61462
61362
|
};
|
|
61463
61363
|
}
|
|
61464
61364
|
//#endregion
|
|
61465
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-trigonometric-functions@5.0.3_postcss@8.5.
|
|
61365
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-trigonometric-functions@5.0.3_postcss@8.5.17/node_modules/@csstools/postcss-trigonometric-functions/dist/index.mjs
|
|
61466
61366
|
const e$2 = /(?<![-\w])(?:asin|acos|atan|atan2|sin|cos|tan)\(/i;
|
|
61467
61367
|
const creator$3 = (o) => {
|
|
61468
61368
|
const t = Object.assign({ preserve: !1 }, o);
|
|
@@ -61480,7 +61380,7 @@ const creator$3 = (o) => {
|
|
|
61480
61380
|
};
|
|
61481
61381
|
creator$3.postcss = !0;
|
|
61482
61382
|
//#endregion
|
|
61483
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-unset-value@5.0.0_postcss@8.5.
|
|
61383
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-unset-value@5.0.0_postcss@8.5.17/node_modules/@csstools/postcss-unset-value/dist/index.mjs
|
|
61484
61384
|
const e$1 = /* @__PURE__ */ new Set([
|
|
61485
61385
|
"block-ellipsis",
|
|
61486
61386
|
"border-boundary",
|
|
@@ -61920,7 +61820,7 @@ const creator$2 = (o) => {
|
|
|
61920
61820
|
};
|
|
61921
61821
|
creator$2.postcss = !0;
|
|
61922
61822
|
//#endregion
|
|
61923
|
-
//#region ../../node_modules/.pnpm/postcss-preset-env@11.3.2_postcss@8.5.
|
|
61823
|
+
//#region ../../node_modules/.pnpm/postcss-preset-env@11.3.2_postcss@8.5.17/node_modules/postcss-preset-env/dist/index.mjs
|
|
61924
61824
|
const ks = {
|
|
61925
61825
|
"blank-pseudo-class": "https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo/README.md#browser",
|
|
61926
61826
|
"focus-visible-pseudo-class": "https://github.com/WICG/focus-visible",
|
|
@@ -62698,6 +62598,279 @@ const creator$1 = (e) => {
|
|
|
62698
62598
|
};
|
|
62699
62599
|
creator$1.postcss = !0;
|
|
62700
62600
|
//#endregion
|
|
62601
|
+
//#region src/compat/mini-program-css/prune-generated.ts
|
|
62602
|
+
const DEFAULT_WEAPP_VARIABLE_SCOPE = "page,.tw-root,wx-root-portal-content,:host";
|
|
62603
|
+
const MINI_PROGRAM_PSEUDO_CONTENT_SCOPE_SELECTOR = "::before,\n::after";
|
|
62604
|
+
const CLASS_SELECTOR_RE = /(?:^|[^\w-])\.[_a-z\u00A0-\uFFFF\\-]/i;
|
|
62605
|
+
/**
|
|
62606
|
+
* 在交给框架 PostCSS 前展开 Tailwind 生成的嵌套规则,并裁剪 Web-only 结构。
|
|
62607
|
+
*/
|
|
62608
|
+
async function normalizeMiniProgramGeneratedCssForPostcss(css, options = {}) {
|
|
62609
|
+
return pruneMiniProgramGeneratedCss((await (0, postcss.default)([creator$1({
|
|
62610
|
+
stage: false,
|
|
62611
|
+
features: { "nesting-rules": true },
|
|
62612
|
+
autoprefixer: false
|
|
62613
|
+
})]).process(css, { from: void 0 })).css, options);
|
|
62614
|
+
}
|
|
62615
|
+
function isConditionalCompilationComment(text) {
|
|
62616
|
+
return /#(?:ifn?def|endif)\b/.test(text);
|
|
62617
|
+
}
|
|
62618
|
+
function hasClassSelector$1(selector) {
|
|
62619
|
+
return CLASS_SELECTOR_RE.test(selector);
|
|
62620
|
+
}
|
|
62621
|
+
function hasClassRuleAncestor(rule) {
|
|
62622
|
+
let parent = rule.parent;
|
|
62623
|
+
while (parent) {
|
|
62624
|
+
if (parent.type === "rule" && hasClassSelector$1(parent.selector)) return true;
|
|
62625
|
+
parent = parent.parent;
|
|
62626
|
+
}
|
|
62627
|
+
return false;
|
|
62628
|
+
}
|
|
62629
|
+
function removeEmptyContentInitDeclarations(rule) {
|
|
62630
|
+
rule.walkDecls((decl) => {
|
|
62631
|
+
if (isEmptyTwContentDeclaration(decl)) decl.remove();
|
|
62632
|
+
});
|
|
62633
|
+
}
|
|
62634
|
+
function isMiniProgramElementVariableScopeRule(rule) {
|
|
62635
|
+
const selectors = getRuleSelectors(rule);
|
|
62636
|
+
return selectors.length > 0 && selectors.every((selector) => MINI_PROGRAM_ELEMENT_SCOPE_SELECTORS.has(selector));
|
|
62637
|
+
}
|
|
62638
|
+
function isMiniProgramNativeElementRule(rule) {
|
|
62639
|
+
const selectors = getRuleSelectors(rule);
|
|
62640
|
+
return selectors.length > 0 && selectors.every((selector) => isMiniProgramNativeElementSelector(selector)) && !isMiniProgramPreflightRule(rule);
|
|
62641
|
+
}
|
|
62642
|
+
function isOnlyTwContentDeclarations(rule) {
|
|
62643
|
+
let hasDeclaration = false;
|
|
62644
|
+
let onlyContentVariable = true;
|
|
62645
|
+
rule.walkDecls((decl) => {
|
|
62646
|
+
hasDeclaration = true;
|
|
62647
|
+
if (decl.prop !== "--tw-content") onlyContentVariable = false;
|
|
62648
|
+
});
|
|
62649
|
+
return hasDeclaration && onlyContentVariable;
|
|
62650
|
+
}
|
|
62651
|
+
function isMiniProgramElementContentInitRule(rule) {
|
|
62652
|
+
if (!isMiniProgramElementVariableScopeRule(rule)) return false;
|
|
62653
|
+
let hasElementSelector = false;
|
|
62654
|
+
let hasPseudoSelector = false;
|
|
62655
|
+
for (const selector of getRuleSelectors(rule)) if (selector === "view" || selector === "text") hasElementSelector = true;
|
|
62656
|
+
else if (selector === "::before" || selector === "::after") hasPseudoSelector = true;
|
|
62657
|
+
return hasElementSelector && hasPseudoSelector && isOnlyTwContentDeclarations(rule);
|
|
62658
|
+
}
|
|
62659
|
+
function hasMiniProgramElementContentInit(root) {
|
|
62660
|
+
let found = false;
|
|
62661
|
+
root.walkRules((rule) => {
|
|
62662
|
+
if (!isMiniProgramElementVariableScopeRule(rule)) return;
|
|
62663
|
+
rule.walkDecls("--tw-content", (decl) => {
|
|
62664
|
+
if (isEmptyTwContentDeclaration(decl)) found = true;
|
|
62665
|
+
});
|
|
62666
|
+
});
|
|
62667
|
+
return found;
|
|
62668
|
+
}
|
|
62669
|
+
function ensureMiniProgramElementContentInit(root) {
|
|
62670
|
+
if (hasMiniProgramElementContentInit(root)) return;
|
|
62671
|
+
let defaultScopeRule;
|
|
62672
|
+
root.walkRules((rule) => {
|
|
62673
|
+
if (rule.selector === "view,text,::after,::before") {
|
|
62674
|
+
defaultScopeRule = rule;
|
|
62675
|
+
return false;
|
|
62676
|
+
}
|
|
62677
|
+
});
|
|
62678
|
+
const declaration = postcss.default.decl({
|
|
62679
|
+
prop: "--tw-content",
|
|
62680
|
+
value: "\"\""
|
|
62681
|
+
});
|
|
62682
|
+
if (defaultScopeRule) {
|
|
62683
|
+
defaultScopeRule.append(declaration);
|
|
62684
|
+
return;
|
|
62685
|
+
}
|
|
62686
|
+
root.prepend(postcss.default.rule({
|
|
62687
|
+
selector: MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR,
|
|
62688
|
+
nodes: [declaration]
|
|
62689
|
+
}));
|
|
62690
|
+
}
|
|
62691
|
+
function isTailwindV4GradientRuntimeDeclaration(decl) {
|
|
62692
|
+
return decl.prop.startsWith("--tw-gradient-");
|
|
62693
|
+
}
|
|
62694
|
+
function moveTailwindV4GradientRuntimeDeclarations(rule) {
|
|
62695
|
+
const gradientDeclarations = [];
|
|
62696
|
+
rule.walkDecls((decl) => {
|
|
62697
|
+
if (isTailwindV4GradientRuntimeDeclaration(decl)) {
|
|
62698
|
+
gradientDeclarations.push(decl.clone());
|
|
62699
|
+
decl.remove();
|
|
62700
|
+
}
|
|
62701
|
+
});
|
|
62702
|
+
if (gradientDeclarations.length > 0) rule.before(new postcss.default.Rule({
|
|
62703
|
+
selector: MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR,
|
|
62704
|
+
nodes: gradientDeclarations
|
|
62705
|
+
}));
|
|
62706
|
+
if (rule.nodes.length === 0) rule.remove();
|
|
62707
|
+
}
|
|
62708
|
+
function isKeyframesRule(rule) {
|
|
62709
|
+
let parent = rule.parent;
|
|
62710
|
+
while (parent) {
|
|
62711
|
+
if (parent.type === "atrule" && parent.name.endsWith("keyframes")) return true;
|
|
62712
|
+
parent = parent.parent;
|
|
62713
|
+
}
|
|
62714
|
+
return false;
|
|
62715
|
+
}
|
|
62716
|
+
/**
|
|
62717
|
+
* 裁剪 Tailwind 生成 CSS 中面向浏览器的 classless 规则。
|
|
62718
|
+
*/
|
|
62719
|
+
function pruneMiniProgramGeneratedCss(css, options = {}) {
|
|
62720
|
+
const root = postcss.default.parse(css);
|
|
62721
|
+
const shouldPreserveContentInit = options.preservePreflight || usesTwContentVariable(root);
|
|
62722
|
+
root.walkComments((comment) => {
|
|
62723
|
+
if (options.preserveConditionalComments && isConditionalCompilationComment(comment.text)) return;
|
|
62724
|
+
comment.remove();
|
|
62725
|
+
});
|
|
62726
|
+
removeUnsupportedCascadeLayers(root);
|
|
62727
|
+
removeSpecificityPlaceholders(root);
|
|
62728
|
+
removeUnsupportedModernColorDeclarations(root);
|
|
62729
|
+
removeTailwindContainerMaxWidthMediaRules(root);
|
|
62730
|
+
removeTailwindContainerWidthRules(root);
|
|
62731
|
+
root.walkAtRules("supports", (atRule) => {
|
|
62732
|
+
atRule.remove();
|
|
62733
|
+
});
|
|
62734
|
+
root.walkAtRules((atRule) => {
|
|
62735
|
+
removeUnsupportedMiniProgramPrefixedAtRule(atRule);
|
|
62736
|
+
});
|
|
62737
|
+
root.walkDecls((decl) => {
|
|
62738
|
+
normalizeMiniProgramPrefixedDeclaration(decl);
|
|
62739
|
+
});
|
|
62740
|
+
root.walkRules((rule) => {
|
|
62741
|
+
if (isKeyframesRule(rule)) return;
|
|
62742
|
+
if (isPseudoContentInitRule(rule)) {
|
|
62743
|
+
if (!shouldPreserveContentInit) rule.remove();
|
|
62744
|
+
return;
|
|
62745
|
+
}
|
|
62746
|
+
if (isMiniProgramElementContentInitRule(rule)) {
|
|
62747
|
+
if (!shouldPreserveContentInit) {
|
|
62748
|
+
rule.remove();
|
|
62749
|
+
return;
|
|
62750
|
+
}
|
|
62751
|
+
rule.selector = MINI_PROGRAM_PSEUDO_CONTENT_SCOPE_SELECTOR;
|
|
62752
|
+
return;
|
|
62753
|
+
}
|
|
62754
|
+
if (isCustomPropertyRule(rule) && isMiniProgramElementVariableScopeRule(rule)) {
|
|
62755
|
+
rule.selector = MINI_PROGRAM_ELEMENT_SCOPE_SELECTOR;
|
|
62756
|
+
return;
|
|
62757
|
+
}
|
|
62758
|
+
if (options.preserveRawClassRules && (hasClassSelector$1(rule.selector) || hasClassRuleAncestor(rule))) return;
|
|
62759
|
+
if (isUnsupportedBrowserPreflightSelector(rule.selector)) {
|
|
62760
|
+
rule.remove();
|
|
62761
|
+
return;
|
|
62762
|
+
}
|
|
62763
|
+
if (isBrowserElementPreflightRule(rule)) {
|
|
62764
|
+
rule.remove();
|
|
62765
|
+
return;
|
|
62766
|
+
}
|
|
62767
|
+
if (isMiniProgramNativeElementRule(rule)) return;
|
|
62768
|
+
if (isMiniProgramThemeVariableRule(rule)) {
|
|
62769
|
+
moveTailwindV4GradientRuntimeDeclarations(rule);
|
|
62770
|
+
if (!rule.parent) return;
|
|
62771
|
+
rule.selector = DEFAULT_WEAPP_VARIABLE_SCOPE;
|
|
62772
|
+
return;
|
|
62773
|
+
}
|
|
62774
|
+
if (hasClassSelector$1(rule.selector)) return;
|
|
62775
|
+
if (!shouldPreserveContentInit) removeEmptyContentInitDeclarations(rule);
|
|
62776
|
+
if (isMiniProgramPreflightRule(rule)) {
|
|
62777
|
+
if (options.preservePreflight) return;
|
|
62778
|
+
rule.remove();
|
|
62779
|
+
return;
|
|
62780
|
+
}
|
|
62781
|
+
if (isCustomPropertyRule(rule)) {
|
|
62782
|
+
moveTailwindV4GradientRuntimeDeclarations(rule);
|
|
62783
|
+
if (!rule.parent) return;
|
|
62784
|
+
rule.selector = DEFAULT_WEAPP_VARIABLE_SCOPE;
|
|
62785
|
+
return;
|
|
62786
|
+
}
|
|
62787
|
+
rule.remove();
|
|
62788
|
+
});
|
|
62789
|
+
if (shouldPreserveContentInit) ensureMiniProgramElementContentInit(root);
|
|
62790
|
+
root.walkAtRules((atRule) => {
|
|
62791
|
+
if (!atRule.nodes || atRule.nodes.length === 0) atRule.remove();
|
|
62792
|
+
});
|
|
62793
|
+
return root.toString();
|
|
62794
|
+
}
|
|
62795
|
+
//#endregion
|
|
62796
|
+
//#region src/compat/tailwindcss-rpx.ts
|
|
62797
|
+
const LENGTH_VALUE_REGEXP = /^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?rpx$/i;
|
|
62798
|
+
const RPX_DIMENSION_REGEXP = /^([+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)rpx$/i;
|
|
62799
|
+
const DEFAULT_RPX_TO_REM_ROOT_VALUE = 32;
|
|
62800
|
+
const DEFAULT_RPX_TO_REM_UNIT_PRECISION = 5;
|
|
62801
|
+
function formatRpxToRemValue(value, precision) {
|
|
62802
|
+
const fixed = Number(value.toFixed(precision));
|
|
62803
|
+
return Object.is(fixed, -0) ? 0 : fixed;
|
|
62804
|
+
}
|
|
62805
|
+
function convertTailwindcssRpxValueToRem(value, options) {
|
|
62806
|
+
if (!value.includes("rpx") && !value.includes("RPX")) return value;
|
|
62807
|
+
let changed = false;
|
|
62808
|
+
const rootValue = options?.rootValue ?? DEFAULT_RPX_TO_REM_ROOT_VALUE;
|
|
62809
|
+
const unitPrecision = options?.unitPrecision ?? DEFAULT_RPX_TO_REM_UNIT_PRECISION;
|
|
62810
|
+
const parsed = (0, postcss_value_parser.default)(value);
|
|
62811
|
+
parsed.walk((node) => {
|
|
62812
|
+
if (node.type !== "word") return;
|
|
62813
|
+
const match = RPX_DIMENSION_REGEXP.exec(node.value);
|
|
62814
|
+
if (!match) return;
|
|
62815
|
+
node.value = `${formatRpxToRemValue(Number(match[1]) / rootValue, unitPrecision)}rem`;
|
|
62816
|
+
changed = true;
|
|
62817
|
+
});
|
|
62818
|
+
return changed ? parsed.toString() : value;
|
|
62819
|
+
}
|
|
62820
|
+
function normalizeTailwindcssRpxDeclaration(decl, options) {
|
|
62821
|
+
const majorVersion = options?.majorVersion;
|
|
62822
|
+
const normalizedValue = decl.value.trim();
|
|
62823
|
+
if (LENGTH_VALUE_REGEXP.test(normalizedValue) && (majorVersion === void 0 || majorVersion === 4)) {
|
|
62824
|
+
const lowerProp = decl.prop.toLowerCase();
|
|
62825
|
+
if (lowerProp === "color") {
|
|
62826
|
+
decl.prop = "font-size";
|
|
62827
|
+
return true;
|
|
62828
|
+
}
|
|
62829
|
+
if (lowerProp === "background-color") {
|
|
62830
|
+
decl.prop = "background-size";
|
|
62831
|
+
return true;
|
|
62832
|
+
}
|
|
62833
|
+
if (lowerProp === "outline-color") {
|
|
62834
|
+
decl.prop = "outline-width";
|
|
62835
|
+
return true;
|
|
62836
|
+
}
|
|
62837
|
+
if (lowerProp.startsWith("border") && lowerProp.endsWith("color")) {
|
|
62838
|
+
decl.prop = `${decl.prop.slice(0, -5)}width`;
|
|
62839
|
+
return true;
|
|
62840
|
+
}
|
|
62841
|
+
if (lowerProp === "--tw-ring-color") {
|
|
62842
|
+
decl.prop = "--tw-ring-offset-width";
|
|
62843
|
+
return true;
|
|
62844
|
+
}
|
|
62845
|
+
}
|
|
62846
|
+
return false;
|
|
62847
|
+
}
|
|
62848
|
+
function normalizeTailwindcssRpxDeclarations(root, options) {
|
|
62849
|
+
let changed = false;
|
|
62850
|
+
root.walkDecls((decl) => {
|
|
62851
|
+
changed = normalizeTailwindcssRpxDeclaration(decl, options) || changed;
|
|
62852
|
+
});
|
|
62853
|
+
return changed;
|
|
62854
|
+
}
|
|
62855
|
+
function convertTailwindcssRpxDeclarationToRem(decl, options) {
|
|
62856
|
+
const value = convertTailwindcssRpxValueToRem(decl.value, options);
|
|
62857
|
+
if (value === decl.value) return false;
|
|
62858
|
+
decl.value = value;
|
|
62859
|
+
return true;
|
|
62860
|
+
}
|
|
62861
|
+
function convertTailwindcssRpxDeclarationsToRem(root, options) {
|
|
62862
|
+
let changed = false;
|
|
62863
|
+
root.walkDecls((decl) => {
|
|
62864
|
+
changed = convertTailwindcssRpxDeclarationToRem(decl, options) || changed;
|
|
62865
|
+
});
|
|
62866
|
+
return changed;
|
|
62867
|
+
}
|
|
62868
|
+
function normalizeTailwindcssWebRpxDeclarations(root, options) {
|
|
62869
|
+
const normalized = normalizeTailwindcssRpxDeclarations(root, options);
|
|
62870
|
+
const converted = convertTailwindcssRpxDeclarationsToRem(root, options);
|
|
62871
|
+
return normalized || converted;
|
|
62872
|
+
}
|
|
62873
|
+
//#endregion
|
|
62701
62874
|
//#region src/shared.ts
|
|
62702
62875
|
const escapeOptionsCache = /* @__PURE__ */ new WeakMap();
|
|
62703
62876
|
function getEscapeOptions(escapeMap) {
|
|
@@ -62925,7 +63098,6 @@ function transformWebCssCompat(css, options) {
|
|
|
62925
63098
|
try {
|
|
62926
63099
|
const root = postcss.default.parse(css);
|
|
62927
63100
|
if (normalized.features.theme) unwrapThemeAtRules(root);
|
|
62928
|
-
if (normalized.features.layer) removeUnsupportedCascadeLayers(root);
|
|
62929
63101
|
if (normalized.features.property) {
|
|
62930
63102
|
const registeredProperties = collectRegisteredCustomPropertyFallbacks(root);
|
|
62931
63103
|
insertRegisteredCustomPropertyFallbackRule(root, registeredProperties);
|
|
@@ -62936,6 +63108,7 @@ function transformWebCssCompat(css, options) {
|
|
|
62936
63108
|
normalizeTailwindcssV4GradientPositionDeclarations(root);
|
|
62937
63109
|
normalizeTailwindcssV4InfinityCalcDeclarations(root);
|
|
62938
63110
|
normalizeModernColorDeclarations(root, normalized.features);
|
|
63111
|
+
if (normalized.features.layer) removeUnsupportedCascadeLayers(root);
|
|
62939
63112
|
removeEmptyAtRules$1(root);
|
|
62940
63113
|
return root.toString();
|
|
62941
63114
|
} catch {
|
|
@@ -64090,6 +64263,27 @@ function splitLocalCssImports(source) {
|
|
|
64090
64263
|
return;
|
|
64091
64264
|
}
|
|
64092
64265
|
}
|
|
64266
|
+
function removeMatchingLocalCssImportsRoot(root, importsRoot) {
|
|
64267
|
+
const requests = collectCssImportRequestsRoot(importsRoot, { isSupportedImportRequest: isLocalCssImportRequest });
|
|
64268
|
+
if (requests.size === 0) return false;
|
|
64269
|
+
let changed = false;
|
|
64270
|
+
root.walkAtRules("import", (atRule) => {
|
|
64271
|
+
const request = parseImportRequest(atRule.params);
|
|
64272
|
+
if (!request || !requests.has(request)) return;
|
|
64273
|
+
atRule.remove();
|
|
64274
|
+
changed = true;
|
|
64275
|
+
});
|
|
64276
|
+
return changed;
|
|
64277
|
+
}
|
|
64278
|
+
function removeMatchingLocalCssImports(source, imports) {
|
|
64279
|
+
if (!imports?.includes("@import") || !source.includes("@import")) return source;
|
|
64280
|
+
try {
|
|
64281
|
+
const root = postcss.default.parse(source);
|
|
64282
|
+
return removeMatchingLocalCssImportsRoot(root, postcss.default.parse(imports)) ? root.toString() : source;
|
|
64283
|
+
} catch {
|
|
64284
|
+
return source;
|
|
64285
|
+
}
|
|
64286
|
+
}
|
|
64093
64287
|
function normalizeOutputPath(file) {
|
|
64094
64288
|
const segments = [];
|
|
64095
64289
|
for (const segment of file.replace(/\\/g, "/").replace(/^\/+/, "").split("/")) {
|
|
@@ -64217,7 +64411,6 @@ function getDefaultOptions(options) {
|
|
|
64217
64411
|
return {
|
|
64218
64412
|
cssPresetEnv: {
|
|
64219
64413
|
features: {
|
|
64220
|
-
"cascade-layers": true,
|
|
64221
64414
|
"is-pseudo-class": { specificityMatchingName: "weapp-tw-ig" },
|
|
64222
64415
|
"oklab-function": true,
|
|
64223
64416
|
"color-mix": true,
|
|
@@ -64579,16 +64772,29 @@ function createContext() {
|
|
|
64579
64772
|
}
|
|
64580
64773
|
//#endregion
|
|
64581
64774
|
//#region src/plugins/getCalcDuplicateCleaner.ts
|
|
64775
|
+
const MULTIPLICATION_GROUP_RE = /\((var\([^()]+\)(?:\s*\*\s*-?(?:\d+(?:\.\d+)?|\.\d+|[a-z_][\w-]*))+)\)/gi;
|
|
64776
|
+
function normalizeCalcValue$1(value) {
|
|
64777
|
+
if (!value.includes("calc(")) return value;
|
|
64778
|
+
let normalized = value.replace(/\s+/g, "");
|
|
64779
|
+
let previous;
|
|
64780
|
+
do {
|
|
64781
|
+
previous = normalized;
|
|
64782
|
+
normalized = normalized.replace(MULTIPLICATION_GROUP_RE, "$1");
|
|
64783
|
+
} while (normalized !== previous);
|
|
64784
|
+
return normalized;
|
|
64785
|
+
}
|
|
64582
64786
|
const calcDuplicateCleanerPlugin = {
|
|
64583
64787
|
postcssPlugin: "postcss-calc-duplicate-cleaner",
|
|
64584
|
-
|
|
64585
|
-
|
|
64586
|
-
const
|
|
64587
|
-
|
|
64588
|
-
|
|
64589
|
-
|
|
64590
|
-
|
|
64591
|
-
|
|
64788
|
+
OnceExit(root) {
|
|
64789
|
+
root.walkRules((rule) => {
|
|
64790
|
+
const declarations = /* @__PURE__ */ new Set();
|
|
64791
|
+
for (const node of [...rule.nodes]) {
|
|
64792
|
+
if (node.type !== "decl") continue;
|
|
64793
|
+
const decl = node;
|
|
64794
|
+
const key = `${decl.prop}\0${decl.important ? "1" : "0"}\0${normalizeCalcValue$1(decl.value)}`;
|
|
64795
|
+
if (declarations.has(key)) decl.remove();
|
|
64796
|
+
else declarations.add(key);
|
|
64797
|
+
}
|
|
64592
64798
|
});
|
|
64593
64799
|
}
|
|
64594
64800
|
};
|
|
@@ -66076,34 +66282,26 @@ const postcssWeappTailwindcssPrePlugin = (options) => {
|
|
|
66076
66282
|
else if (isTailwindcssV4LinearGradientSupports(atRule)) removeAtRuleAndEmptyAncestors(atRule);
|
|
66077
66283
|
else if (isTailwindcssV4DisplayP3Supports(atRule)) removeAtRuleAndEmptyAncestors(atRule);
|
|
66078
66284
|
} else if (isTailwindcssV4DisplayP3Media(atRule)) removeAtRuleAndEmptyAncestors(atRule);
|
|
66079
|
-
else if (atRule.name === "layer") {
|
|
66080
|
-
if (atRule.nodes === void 0 || Array.isArray(atRule.nodes) && atRule.nodes.length === 0) atRule.remove();
|
|
66081
|
-
}
|
|
66082
66285
|
},
|
|
66083
66286
|
Declaration(decl) {
|
|
66084
66287
|
if (isTailwindcssV4DisplayP3Declaration(decl)) removeDeclarationAndEmptyRule(decl);
|
|
66085
66288
|
}
|
|
66086
66289
|
};
|
|
66087
|
-
if (opts.isMainChunk) {
|
|
66088
|
-
|
|
66089
|
-
|
|
66090
|
-
|
|
66091
|
-
|
|
66092
|
-
if (atRule.nodes === void 0 || atRule.nodes?.length === 0) layerProperties = atRule;
|
|
66093
|
-
else if (atRule.first?.type === "atrule" && isTailwindcssV4ModernCheck(atRule.first)) if (layerProperties) {
|
|
66094
|
-
layerProperties.replaceWith(atRule.first.nodes);
|
|
66095
|
-
atRule.remove();
|
|
66096
|
-
} else atRule.replaceWith(atRule.first.nodes);
|
|
66097
|
-
} else atRule.replaceWith(atRule.nodes);
|
|
66098
|
-
else if (isTailwindcssV4ModernCheck(atRule)) {
|
|
66099
|
-
if (atRule.first?.type === "atrule" && atRule.first.name === "layer") atRule.replaceWith(atRule.first.nodes);
|
|
66290
|
+
if (opts.isMainChunk) p.Once = (root) => {
|
|
66291
|
+
root.walkAtRules((atRule) => {
|
|
66292
|
+
if (atRule.name === "layer") {
|
|
66293
|
+
if (atRule.params === "properties") {
|
|
66294
|
+
if (atRule.first?.type === "atrule" && isTailwindcssV4ModernCheck(atRule.first)) atRule.first.replaceWith(atRule.first.nodes ?? []);
|
|
66100
66295
|
}
|
|
66101
|
-
})
|
|
66102
|
-
|
|
66103
|
-
|
|
66104
|
-
|
|
66105
|
-
|
|
66106
|
-
|
|
66296
|
+
} else if (isTailwindcssV4ModernCheck(atRule)) {
|
|
66297
|
+
if (atRule.first?.type === "atrule" && atRule.first.name === "layer") atRule.replaceWith(atRule.first);
|
|
66298
|
+
}
|
|
66299
|
+
});
|
|
66300
|
+
consumeCascadeLayers(root);
|
|
66301
|
+
root.walkRules((rule) => {
|
|
66302
|
+
commonChunkPreflight(rule, opts);
|
|
66303
|
+
});
|
|
66304
|
+
};
|
|
66107
66305
|
return p;
|
|
66108
66306
|
};
|
|
66109
66307
|
postcssWeappTailwindcssPrePlugin.postcss = true;
|
|
@@ -66139,7 +66337,13 @@ function shouldUseDefaultAutoprefixer(options, userPlugins) {
|
|
|
66139
66337
|
function createPreparedNodes(options, signal) {
|
|
66140
66338
|
const preparedNodes = [];
|
|
66141
66339
|
const userPlugins = normalizeUserPlugins(options.postcssOptions?.plugins);
|
|
66142
|
-
const presetEnvOptions =
|
|
66340
|
+
const presetEnvOptions = {
|
|
66341
|
+
...options.cssPresetEnv,
|
|
66342
|
+
features: {
|
|
66343
|
+
...options.cssPresetEnv?.features,
|
|
66344
|
+
"cascade-layers": false
|
|
66345
|
+
}
|
|
66346
|
+
};
|
|
66143
66347
|
userPlugins.forEach((plugin, index) => {
|
|
66144
66348
|
preparedNodes.push(createPreparedNode(`pre:user-${index}`, "pre", () => plugin));
|
|
66145
66349
|
});
|
|
@@ -66527,6 +66731,12 @@ function parseVarFallbackValue(value) {
|
|
|
66527
66731
|
const fallback = body.slice(commaIndex + 1).trim();
|
|
66528
66732
|
return fallback.length > 0 ? fallback : void 0;
|
|
66529
66733
|
}
|
|
66734
|
+
function parseVarReferenceValue(value) {
|
|
66735
|
+
const trimmed = value.trim();
|
|
66736
|
+
if (!trimmed.startsWith("var(") || !trimmed.endsWith(")")) return;
|
|
66737
|
+
const body = trimmed.slice(4, -1).trim();
|
|
66738
|
+
return body.startsWith("--") && !body.includes(",") && !/\s/.test(body) ? body : void 0;
|
|
66739
|
+
}
|
|
66530
66740
|
function isEquivalentVarFallbackDeclaration(incoming, baseDeclarations) {
|
|
66531
66741
|
const fallback = parseVarFallbackValue(incoming.value);
|
|
66532
66742
|
if (!fallback) return false;
|
|
@@ -66744,6 +66954,41 @@ function isCssRuleCoveredByDeclarations(rule, baseRuleDeclarationKeys) {
|
|
|
66744
66954
|
if (!baseDeclarations) return false;
|
|
66745
66955
|
return collectCssRuleDeclarationKeys(rule).size > 0 && collectCssRuleDeclarations(rule).every((decl) => baseDeclarations.has(normalizeCssDeclarationKey(decl)) || isEquivalentVarFallbackDeclaration(decl, baseDeclarations) || isCoveredByBaseVarFallbackDeclaration(decl, baseDeclarations));
|
|
66746
66956
|
}
|
|
66957
|
+
function removeDuplicateLeadingComment(rule, targetRule) {
|
|
66958
|
+
const comment = rule.prev();
|
|
66959
|
+
const targetComment = targetRule.prev();
|
|
66960
|
+
if (comment?.type === "comment" && targetComment?.type === "comment" && normalizeCssForContainment(comment.text) === normalizeCssForContainment(targetComment.text)) comment.remove();
|
|
66961
|
+
}
|
|
66962
|
+
function dedupeCoveredCssRules(css) {
|
|
66963
|
+
try {
|
|
66964
|
+
const root = postcss.default.parse(css);
|
|
66965
|
+
const recordsByParent = /* @__PURE__ */ new WeakMap();
|
|
66966
|
+
let changed = false;
|
|
66967
|
+
root.walkRules((rule) => {
|
|
66968
|
+
const key = getCssRuleStructuralKey(rule);
|
|
66969
|
+
const incomingDeclarations = collectCssRuleDeclarations(rule);
|
|
66970
|
+
if (!key || incomingDeclarations.length === 0 || !rule.parent) return;
|
|
66971
|
+
let records = recordsByParent.get(rule.parent);
|
|
66972
|
+
if (!records) {
|
|
66973
|
+
records = /* @__PURE__ */ new Map();
|
|
66974
|
+
recordsByParent.set(rule.parent, records);
|
|
66975
|
+
}
|
|
66976
|
+
const targetRule = records.get(key);
|
|
66977
|
+
if (targetRule) {
|
|
66978
|
+
const incomingKeys = collectCssRuleDeclarationKeys(rule);
|
|
66979
|
+
if (collectCssRuleDeclarations(targetRule).every((decl) => incomingKeys.has(normalizeCssDeclarationKey(decl)) || isEquivalentVarFallbackDeclaration(decl, incomingKeys) || isCoveredByBaseVarFallbackDeclaration(decl, incomingKeys))) {
|
|
66980
|
+
removeDuplicateLeadingComment(targetRule, rule);
|
|
66981
|
+
targetRule.remove();
|
|
66982
|
+
changed = true;
|
|
66983
|
+
}
|
|
66984
|
+
}
|
|
66985
|
+
records.set(key, rule);
|
|
66986
|
+
});
|
|
66987
|
+
return changed ? root.toString() : css;
|
|
66988
|
+
} catch {
|
|
66989
|
+
return css;
|
|
66990
|
+
}
|
|
66991
|
+
}
|
|
66747
66992
|
function mergeCoveredCssRuleDeclarations(baseCss, css) {
|
|
66748
66993
|
try {
|
|
66749
66994
|
const baseRoot = postcss.default.parse(baseCss);
|
|
@@ -66766,11 +67011,22 @@ function mergeCoveredCssRuleDeclarations(baseCss, css) {
|
|
|
66766
67011
|
return;
|
|
66767
67012
|
}
|
|
66768
67013
|
const baseProps = new Set(records.flatMap((record) => [...record.props]));
|
|
66769
|
-
|
|
67014
|
+
const mergeableFallbacks = /* @__PURE__ */ new Map();
|
|
67015
|
+
if (missingDeclarations.filter((decl) => {
|
|
67016
|
+
if (!baseProps.has(decl.prop.trim())) return false;
|
|
67017
|
+
const matchingVariable = incomingDeclarations.find((candidate) => candidate.prop.startsWith("--") && candidate.important === decl.important && normalizeCssForContainment(candidate.value) === normalizeCssForContainment(decl.value));
|
|
67018
|
+
if (!matchingVariable) return true;
|
|
67019
|
+
const targetDeclaration = records.flatMap((record) => collectCssRuleDeclarations(record.rule)).find((candidate) => candidate.prop.trim() === decl.prop.trim() && candidate.important === decl.important && parseVarReferenceValue(candidate.value) === matchingVariable.prop.trim());
|
|
67020
|
+
if (!targetDeclaration) return true;
|
|
67021
|
+
mergeableFallbacks.set(decl, targetDeclaration);
|
|
67022
|
+
return false;
|
|
67023
|
+
}).length > 0) return;
|
|
66770
67024
|
const targetRecord = records[0];
|
|
66771
67025
|
if (!targetRecord) return;
|
|
66772
67026
|
for (const decl of missingDeclarations) {
|
|
66773
|
-
|
|
67027
|
+
const fallbackTarget = mergeableFallbacks.get(decl);
|
|
67028
|
+
if (fallbackTarget) fallbackTarget.before(decl.clone());
|
|
67029
|
+
else targetRecord.rule.append(decl.clone());
|
|
66774
67030
|
targetRecord.keys.add(normalizeCssDeclarationKey(decl));
|
|
66775
67031
|
targetRecord.props.add(decl.prop.trim());
|
|
66776
67032
|
}
|
|
@@ -66848,6 +67104,7 @@ exports.collectApplyOnlyCssSelectorsRoot = collectApplyOnlyCssSelectorsRoot;
|
|
|
66848
67104
|
exports.collectCssImportRequestsRoot = collectCssImportRequestsRoot;
|
|
66849
67105
|
exports.collectCssInlineSourceCandidates = collectCssInlineSourceCandidates;
|
|
66850
67106
|
exports.compileCssMacroConditionalComments = compileCssMacroConditionalComments;
|
|
67107
|
+
exports.consumeCascadeLayers = consumeCascadeLayers;
|
|
66851
67108
|
exports.containsCssAfterMinify = containsCssAfterMinify;
|
|
66852
67109
|
exports.convertTailwindcssRpxDeclarationToRem = convertTailwindcssRpxDeclarationToRem;
|
|
66853
67110
|
exports.convertTailwindcssRpxDeclarationsToRem = convertTailwindcssRpxDeclarationsToRem;
|
|
@@ -66862,6 +67119,7 @@ exports.createStylePipeline = createStylePipeline;
|
|
|
66862
67119
|
exports.createTailwindSourceEntryMatcher = createTailwindSourceEntryMatcher;
|
|
66863
67120
|
exports.createWeappTailwindcssPostcssPlugin = createWeappTailwindcssPostcssPlugin;
|
|
66864
67121
|
exports.cssMacroPostcssPlugin = require_postcss.creator;
|
|
67122
|
+
exports.dedupeCoveredCssRules = dedupeCoveredCssRules;
|
|
66865
67123
|
exports.expandInlineSourceCandidatePattern = expandInlineSourceCandidatePattern;
|
|
66866
67124
|
exports.expandTailwindSourceEntries = expandTailwindSourceEntries;
|
|
66867
67125
|
exports.filterApplyOnlyGeneratedCss = filterApplyOnlyGeneratedCss;
|
|
@@ -66892,6 +67150,7 @@ exports.mergeCoveredCssRuleDeclarations = mergeCoveredCssRuleDeclarations;
|
|
|
66892
67150
|
exports.mergeMiniProgramPreflightRuleDeclarations = mergeMiniProgramPreflightRuleDeclarations;
|
|
66893
67151
|
exports.mergeMiniProgramThemeScopeRuleDeclarations = mergeMiniProgramThemeScopeRuleDeclarations;
|
|
66894
67152
|
exports.normalizeLegacyContentEntries = normalizeLegacyContentEntries;
|
|
67153
|
+
exports.normalizeMiniProgramGeneratedCssForPostcss = normalizeMiniProgramGeneratedCssForPostcss;
|
|
66895
67154
|
exports.normalizeMiniProgramPrefixedDeclaration = normalizeMiniProgramPrefixedDeclaration;
|
|
66896
67155
|
exports.normalizeModernColorValue = normalizeModernColorValue;
|
|
66897
67156
|
exports.normalizeOutputImportRequest = normalizeOutputImportRequest;
|
|
@@ -66914,6 +67173,8 @@ exports.postcssHtmlTransform = require_html_transform;
|
|
|
66914
67173
|
exports.prefixLocalCssImportsWithWebpackIgnoreRoot = prefixLocalCssImportsWithWebpackIgnoreRoot;
|
|
66915
67174
|
exports.protectDynamicColorMixAlpha = protectDynamicColorMixAlpha;
|
|
66916
67175
|
exports.pruneMiniProgramGeneratedCss = pruneMiniProgramGeneratedCss;
|
|
67176
|
+
exports.removeMatchingLocalCssImports = removeMatchingLocalCssImports;
|
|
67177
|
+
exports.removeMatchingLocalCssImportsRoot = removeMatchingLocalCssImportsRoot;
|
|
66917
67178
|
exports.removeTailwindPostcssPlugins = removeTailwindPostcssPlugins;
|
|
66918
67179
|
exports.removeTailwindSourceDirectivesRoot = removeTailwindSourceDirectivesRoot;
|
|
66919
67180
|
exports.removeUnsupportedAtSupports = removeUnsupportedAtSupports;
|