@weapp-tailwindcss/postcss 3.1.11 → 3.1.12
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/tailwindcss-v4/declarations.d.ts +2 -0
- package/dist/compat/tailwindcss-v4/gradients.d.ts +6 -0
- package/dist/compat/tailwindcss-v4/modern-syntax.d.ts +6 -0
- package/dist/compat/tailwindcss-v4/variables.d.ts +30 -0
- package/dist/compat/tailwindcss-v4.d.ts +4 -21
- package/dist/index.d.ts +1 -1
- package/dist/index.js +267 -249
- package/dist/index.mjs +262 -245
- package/dist/postcss-config.d.ts +4 -0
- package/dist/vite-css-rules/containment.d.ts +2 -0
- package/dist/vite-css-rules/coverage.d.ts +9 -0
- package/dist/vite-css-rules/mini-program.d.ts +10 -0
- package/dist/vite-css-rules/structure.d.ts +26 -0
- package/dist/vite-css-rules.d.ts +3 -18
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -11092,9 +11092,6 @@ function createCssVarNodes(definitions) {
|
|
|
11092
11092
|
value: def.value
|
|
11093
11093
|
}));
|
|
11094
11094
|
}
|
|
11095
|
-
//#endregion
|
|
11096
|
-
//#region src/compat/tailwindcss-v4.ts
|
|
11097
|
-
const RADIUS_THRESHOLD = 1e5;
|
|
11098
11095
|
const CLAMP_PX = 9999;
|
|
11099
11096
|
const INFINITY_CALC_VALUE_REGEXP = /^calc\(\s*infinity\s*\*\s*(?:\d+(?:\.\d*)?|\.\d+)r?px\s*\)$/i;
|
|
11100
11097
|
const MODERN_CHECK_WEBKIT_HYPHENS_RE = /-webkit-hyphens\s*:\s*none/;
|
|
@@ -11205,6 +11202,8 @@ function createMissingCssVarsV4Nodes(root, usedProps) {
|
|
|
11205
11202
|
value: def.value
|
|
11206
11203
|
}));
|
|
11207
11204
|
}
|
|
11205
|
+
//#endregion
|
|
11206
|
+
//#region src/compat/tailwindcss-v4/gradients.ts
|
|
11208
11207
|
function collectTailwindcssV4ThemeVariables(root) {
|
|
11209
11208
|
const variables = /* @__PURE__ */ new Map();
|
|
11210
11209
|
root.walkRules((rule) => {
|
|
@@ -11451,26 +11450,8 @@ function appendTailwindcssV4MiniProgramGradientRules(root) {
|
|
|
11451
11450
|
appendGradientCombinations(gradient, positionedFromVariants, positionedViaVariants, positionedToVariants);
|
|
11452
11451
|
}
|
|
11453
11452
|
}
|
|
11454
|
-
|
|
11455
|
-
|
|
11456
|
-
MODERN_CHECK_WEBKIT_HYPHENS_RE,
|
|
11457
|
-
MODERN_CHECK_MARGIN_TRIM_RE,
|
|
11458
|
-
MODERN_CHECK_MOZ_ORIENT_RE,
|
|
11459
|
-
MODERN_CHECK_COLOR_RGB_RE
|
|
11460
|
-
].every((regex) => regex.test(atRule.params));
|
|
11461
|
-
}
|
|
11462
|
-
function isTailwindcssV4LinearGradientSupports(atRule) {
|
|
11463
|
-
return atRule.name === "supports" && LINEAR_GRADIENT_LAB_RE.test(atRule.params);
|
|
11464
|
-
}
|
|
11465
|
-
function isTailwindcssV4DisplayP3Supports(atRule) {
|
|
11466
|
-
return atRule.name === "supports" && DISPLAY_P3_COLOR_RE.test(atRule.params);
|
|
11467
|
-
}
|
|
11468
|
-
function isTailwindcssV4DisplayP3Media(atRule) {
|
|
11469
|
-
return atRule.name === "media" && COLOR_GAMUT_P3_RE$1.test(atRule.params);
|
|
11470
|
-
}
|
|
11471
|
-
function isTailwindcssV4DisplayP3Declaration(decl) {
|
|
11472
|
-
return DISPLAY_P3_VALUE_RE$1.test(decl.value);
|
|
11473
|
-
}
|
|
11453
|
+
//#endregion
|
|
11454
|
+
//#region src/compat/tailwindcss-v4/declarations.ts
|
|
11474
11455
|
function normalizeTailwindcssV4EmptyVarFallback(value) {
|
|
11475
11456
|
if (!value.includes("var(") || !value.includes("--tw-")) return value;
|
|
11476
11457
|
const parsed = (0, postcss_value_parser.default)(value);
|
|
@@ -11602,7 +11583,7 @@ function normalizeTailwindcssV4Declaration(decl) {
|
|
|
11602
11583
|
const next = decl.value.replace(RADIUS_VALUE_RE, (m, num) => {
|
|
11603
11584
|
const n = Number(num);
|
|
11604
11585
|
if (!Number.isFinite(n)) return `${CLAMP_PX}px`;
|
|
11605
|
-
if (SCIENTIFIC_NOTATION_RE.test(String(num)) || n >
|
|
11586
|
+
if (SCIENTIFIC_NOTATION_RE.test(String(num)) || n > 1e5) return `${CLAMP_PX}px`;
|
|
11606
11587
|
return m;
|
|
11607
11588
|
});
|
|
11608
11589
|
if (next !== decl.value) {
|
|
@@ -11613,6 +11594,28 @@ function normalizeTailwindcssV4Declaration(decl) {
|
|
|
11613
11594
|
return changed;
|
|
11614
11595
|
}
|
|
11615
11596
|
//#endregion
|
|
11597
|
+
//#region src/compat/tailwindcss-v4/modern-syntax.ts
|
|
11598
|
+
function isTailwindcssV4ModernCheck(atRule) {
|
|
11599
|
+
return atRule.name === "supports" && [
|
|
11600
|
+
MODERN_CHECK_WEBKIT_HYPHENS_RE,
|
|
11601
|
+
MODERN_CHECK_MARGIN_TRIM_RE,
|
|
11602
|
+
MODERN_CHECK_MOZ_ORIENT_RE,
|
|
11603
|
+
MODERN_CHECK_COLOR_RGB_RE
|
|
11604
|
+
].every((regex) => regex.test(atRule.params));
|
|
11605
|
+
}
|
|
11606
|
+
function isTailwindcssV4LinearGradientSupports(atRule) {
|
|
11607
|
+
return atRule.name === "supports" && LINEAR_GRADIENT_LAB_RE.test(atRule.params);
|
|
11608
|
+
}
|
|
11609
|
+
function isTailwindcssV4DisplayP3Supports(atRule) {
|
|
11610
|
+
return atRule.name === "supports" && DISPLAY_P3_COLOR_RE.test(atRule.params);
|
|
11611
|
+
}
|
|
11612
|
+
function isTailwindcssV4DisplayP3Media(atRule) {
|
|
11613
|
+
return atRule.name === "media" && COLOR_GAMUT_P3_RE$1.test(atRule.params);
|
|
11614
|
+
}
|
|
11615
|
+
function isTailwindcssV4DisplayP3Declaration(decl) {
|
|
11616
|
+
return DISPLAY_P3_VALUE_RE$1.test(decl.value);
|
|
11617
|
+
}
|
|
11618
|
+
//#endregion
|
|
11616
11619
|
//#region src/compat/mini-program-css/directives.ts
|
|
11617
11620
|
const TAILWIND_V4_BANNER_RE = /\/\*!\s*tailwindcss v4\./;
|
|
11618
11621
|
const GENERATOR_PLACEHOLDER_COMMENT_RE = /^\s*(?:!\s*)?weapp-tailwindcss generator-placeholder\s*$/i;
|
|
@@ -45633,7 +45636,7 @@ var require_browserslist = /* @__PURE__ */ require_rolldown_runtime.__commonJSMi
|
|
|
45633
45636
|
module.exports = browserslist;
|
|
45634
45637
|
}));
|
|
45635
45638
|
//#endregion
|
|
45636
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-initial@3.0.0_postcss@8.5.
|
|
45639
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-initial@3.0.0_postcss@8.5.19/node_modules/@csstools/postcss-initial/dist/index.mjs
|
|
45637
45640
|
var import_browserslist = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_browserslist(), 1);
|
|
45638
45641
|
const o$25 = /* @__PURE__ */ new Map([
|
|
45639
45642
|
["animation", "none 0s ease 0s 1 normal none running"],
|
|
@@ -45912,7 +45915,7 @@ const creator$52 = (a) => {
|
|
|
45912
45915
|
};
|
|
45913
45916
|
creator$52.postcss = !0;
|
|
45914
45917
|
//#endregion
|
|
45915
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-progressive-custom-properties@5.1.1_postcss@8.5.
|
|
45918
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-progressive-custom-properties@5.1.1_postcss@8.5.19/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs
|
|
45916
45919
|
const r$9 = [
|
|
45917
45920
|
"at",
|
|
45918
45921
|
"bottom",
|
|
@@ -49669,7 +49672,7 @@ const creator$51 = () => ({
|
|
|
49669
49672
|
});
|
|
49670
49673
|
creator$51.postcss = !0;
|
|
49671
49674
|
//#endregion
|
|
49672
|
-
//#region ../../node_modules/.pnpm/@csstools+utilities@3.0.0_postcss@8.5.
|
|
49675
|
+
//#region ../../node_modules/.pnpm/@csstools+utilities@3.0.0_postcss@8.5.19/node_modules/@csstools/utilities/dist/index.mjs
|
|
49673
49676
|
function hasFallback$1(e) {
|
|
49674
49677
|
const t = e.parent;
|
|
49675
49678
|
if (!t) return !1;
|
|
@@ -49689,7 +49692,7 @@ function hasSupportsAtRuleAncestor(e, t) {
|
|
|
49689
49692
|
return !1;
|
|
49690
49693
|
}
|
|
49691
49694
|
//#endregion
|
|
49692
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-alpha-function@2.0.7_postcss@8.5.
|
|
49695
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-alpha-function@2.0.7_postcss@8.5.19/node_modules/@csstools/postcss-alpha-function/dist/index.mjs
|
|
49693
49696
|
const b$1 = /\balpha\(/i;
|
|
49694
49697
|
const m$9 = /^alpha$/i;
|
|
49695
49698
|
const w$3 = /* @__PURE__ */ new Set([
|
|
@@ -49916,7 +49919,7 @@ const postcssPlugin$16 = (o) => {
|
|
|
49916
49919
|
};
|
|
49917
49920
|
postcssPlugin$16.postcss = !0;
|
|
49918
49921
|
//#endregion
|
|
49919
|
-
//#region ../../node_modules/.pnpm/postcss-pseudo-class-any-link@11.0.0_postcss@8.5.
|
|
49922
|
+
//#region ../../node_modules/.pnpm/postcss-pseudo-class-any-link@11.0.0_postcss@8.5.19/node_modules/postcss-pseudo-class-any-link/dist/index.mjs
|
|
49920
49923
|
const t$15 = (0, import_dist$1.default)().astSync(":link").nodes[0];
|
|
49921
49924
|
const s$15 = (0, import_dist$1.default)().astSync(":visited").nodes[0];
|
|
49922
49925
|
const n$10 = (0, import_dist$1.default)().astSync("area[href]").nodes[0];
|
|
@@ -50013,7 +50016,7 @@ const creator$50 = (e) => {
|
|
|
50013
50016
|
};
|
|
50014
50017
|
creator$50.postcss = !0;
|
|
50015
50018
|
//#endregion
|
|
50016
|
-
//#region ../../node_modules/.pnpm/css-blank-pseudo@8.0.1_postcss@8.5.
|
|
50019
|
+
//#region ../../node_modules/.pnpm/css-blank-pseudo@8.0.1_postcss@8.5.19/node_modules/css-blank-pseudo/dist/index.mjs
|
|
50017
50020
|
const s$14 = [
|
|
50018
50021
|
" ",
|
|
50019
50022
|
">",
|
|
@@ -50090,7 +50093,7 @@ const creator$49 = (s) => {
|
|
|
50090
50093
|
};
|
|
50091
50094
|
creator$49.postcss = !0;
|
|
50092
50095
|
//#endregion
|
|
50093
|
-
//#region ../../node_modules/.pnpm/postcss-page-break@3.0.4_postcss@8.5.
|
|
50096
|
+
//#region ../../node_modules/.pnpm/postcss-page-break@3.0.4_postcss@8.5.19/node_modules/postcss-page-break/index.js
|
|
50094
50097
|
var require_postcss_page_break = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
50095
50098
|
module.exports = function(options) {
|
|
50096
50099
|
return {
|
|
@@ -50252,7 +50255,7 @@ function selectorNodeContainsNothingOrOnlyUniversal$1(e) {
|
|
|
50252
50255
|
return 0 === t.length || 1 === t.length && "universal" === t[0].type;
|
|
50253
50256
|
}
|
|
50254
50257
|
//#endregion
|
|
50255
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-cascade-layers@6.0.0_postcss@8.5.
|
|
50258
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-cascade-layers@6.0.0_postcss@8.5.19/node_modules/@csstools/postcss-cascade-layers/dist/index.mjs
|
|
50256
50259
|
const t$13 = "csstools-invalid-layer";
|
|
50257
50260
|
const a$5 = "csstools-layer-with-selector-rules";
|
|
50258
50261
|
const s$13 = "6efdb677-bb05-44e5-840f-29d2175862fd";
|
|
@@ -50574,7 +50577,7 @@ const creator$48 = (a) => {
|
|
|
50574
50577
|
};
|
|
50575
50578
|
creator$48.postcss = !0;
|
|
50576
50579
|
//#endregion
|
|
50577
|
-
//#region ../../node_modules/.pnpm/postcss-attribute-case-insensitive@8.0.0_postcss@8.5.
|
|
50580
|
+
//#region ../../node_modules/.pnpm/postcss-attribute-case-insensitive@8.0.0_postcss@8.5.19/node_modules/postcss-attribute-case-insensitive/dist/index.mjs
|
|
50578
50581
|
function nodeIsInsensitiveAttribute(e) {
|
|
50579
50582
|
return "attribute" === e.type && (e.insensitive ?? !1);
|
|
50580
50583
|
}
|
|
@@ -50648,7 +50651,7 @@ const creator$47 = (t) => {
|
|
|
50648
50651
|
};
|
|
50649
50652
|
creator$47.postcss = !0;
|
|
50650
50653
|
//#endregion
|
|
50651
|
-
//#region ../../node_modules/.pnpm/postcss-clamp@4.1.0_postcss@8.5.
|
|
50654
|
+
//#region ../../node_modules/.pnpm/postcss-clamp@4.1.0_postcss@8.5.19/node_modules/postcss-clamp/index.js
|
|
50652
50655
|
var require_postcss_clamp = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
50653
50656
|
let valueParser$4 = require("postcss-value-parser");
|
|
50654
50657
|
function parseValue(value) {
|
|
@@ -50726,7 +50729,7 @@ var require_postcss_clamp = /* @__PURE__ */ require_rolldown_runtime.__commonJSM
|
|
|
50726
50729
|
module.exports.postcss = true;
|
|
50727
50730
|
}));
|
|
50728
50731
|
//#endregion
|
|
50729
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function@5.0.6_postcss@8.5.
|
|
50732
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function@5.0.6_postcss@8.5.19/node_modules/@csstools/postcss-color-function/dist/index.mjs
|
|
50730
50733
|
var import_postcss_clamp = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_postcss_clamp(), 1);
|
|
50731
50734
|
const u$7 = /\bcolor\(/i;
|
|
50732
50735
|
const m$7 = /^color$/i;
|
|
@@ -50758,7 +50761,7 @@ const postcssPlugin$15 = (o) => {
|
|
|
50758
50761
|
};
|
|
50759
50762
|
postcssPlugin$15.postcss = !0;
|
|
50760
50763
|
//#endregion
|
|
50761
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function-display-p3-linear@2.0.6_postcss@8.5.
|
|
50764
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-function-display-p3-linear@2.0.6_postcss@8.5.19/node_modules/@csstools/postcss-color-function-display-p3-linear/dist/index.mjs
|
|
50762
50765
|
const m$6 = /\bdisplay-p3-linear\b/i;
|
|
50763
50766
|
const f$7 = /^color$/i;
|
|
50764
50767
|
const basePlugin$14 = (s) => ({
|
|
@@ -50789,7 +50792,7 @@ const postcssPlugin$14 = (o) => {
|
|
|
50789
50792
|
};
|
|
50790
50793
|
postcssPlugin$14.postcss = !0;
|
|
50791
50794
|
//#endregion
|
|
50792
|
-
//#region ../../node_modules/.pnpm/postcss-color-functional-notation@8.0.6_postcss@8.5.
|
|
50795
|
+
//#region ../../node_modules/.pnpm/postcss-color-functional-notation@8.0.6_postcss@8.5.19/node_modules/postcss-color-functional-notation/dist/index.mjs
|
|
50793
50796
|
const m$5 = /^(?:rgb|hsl)a?$/i;
|
|
50794
50797
|
const f$6 = /\b(?:rgb|hsl)a?\(/i;
|
|
50795
50798
|
const basePlugin$13 = (s) => ({
|
|
@@ -50820,7 +50823,7 @@ const postcssPlugin$13 = (o) => {
|
|
|
50820
50823
|
};
|
|
50821
50824
|
postcssPlugin$13.postcss = !0;
|
|
50822
50825
|
//#endregion
|
|
50823
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-function@4.0.6_postcss@8.5.
|
|
50826
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-function@4.0.6_postcss@8.5.19/node_modules/@csstools/postcss-color-mix-function/dist/index.mjs
|
|
50824
50827
|
const f$5 = /\bcolor-mix\(/i;
|
|
50825
50828
|
const g$6 = /^color-mix$/i;
|
|
50826
50829
|
const basePlugin$12 = (s) => ({
|
|
@@ -50858,7 +50861,7 @@ const postcssPlugin$12 = (e) => {
|
|
|
50858
50861
|
};
|
|
50859
50862
|
postcssPlugin$12.postcss = !0;
|
|
50860
50863
|
//#endregion
|
|
50861
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-variadic-function-arguments@2.0.6_postcss@8.5.
|
|
50864
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-color-mix-variadic-function-arguments@2.0.6_postcss@8.5.19/node_modules/@csstools/postcss-color-mix-variadic-function-arguments/dist/index.mjs
|
|
50862
50865
|
const f$4 = /\bcolor-mix\(/i;
|
|
50863
50866
|
const g$5 = /^color-mix$/i;
|
|
50864
50867
|
const basePlugin$11 = (s) => ({
|
|
@@ -50896,7 +50899,7 @@ const postcssPlugin$11 = (e) => {
|
|
|
50896
50899
|
};
|
|
50897
50900
|
postcssPlugin$11.postcss = !0;
|
|
50898
50901
|
//#endregion
|
|
50899
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-container-rule-prelude-list@1.0.1_postcss@8.5.
|
|
50902
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-container-rule-prelude-list@1.0.1_postcss@8.5.19/node_modules/@csstools/postcss-container-rule-prelude-list/dist/index.mjs
|
|
50900
50903
|
const t$12 = /^container$/i;
|
|
50901
50904
|
const creator$46 = (o) => {
|
|
50902
50905
|
const a = Object.assign({ preserve: !1 }, o);
|
|
@@ -50914,7 +50917,7 @@ const creator$46 = (o) => {
|
|
|
50914
50917
|
};
|
|
50915
50918
|
creator$46.postcss = !0;
|
|
50916
50919
|
//#endregion
|
|
50917
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-content-alt-text@3.0.2_postcss@8.5.
|
|
50920
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-content-alt-text@3.0.2_postcss@8.5.19/node_modules/@csstools/postcss-content-alt-text/dist/index.mjs
|
|
50918
50921
|
function transform$3(s, t) {
|
|
50919
50922
|
const e = s[0];
|
|
50920
50923
|
if (!e.length) return "";
|
|
@@ -50960,7 +50963,7 @@ const creator$45 = (t) => {
|
|
|
50960
50963
|
};
|
|
50961
50964
|
creator$45.postcss = !0;
|
|
50962
50965
|
//#endregion
|
|
50963
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-contrast-color-function@3.0.6_postcss@8.5.
|
|
50966
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-contrast-color-function@3.0.6_postcss@8.5.19/node_modules/@csstools/postcss-contrast-color-function/dist/index.mjs
|
|
50964
50967
|
const u$6 = /\bcontrast-color\(/i;
|
|
50965
50968
|
const m$4 = /^contrast-color$/i;
|
|
50966
50969
|
const basePlugin$9 = (s) => ({
|
|
@@ -52896,7 +52899,7 @@ var b;
|
|
|
52896
52899
|
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";
|
|
52897
52900
|
})(b || (b = {}));
|
|
52898
52901
|
//#endregion
|
|
52899
|
-
//#region ../../node_modules/.pnpm/postcss-custom-media@12.0.1_postcss@8.5.
|
|
52902
|
+
//#region ../../node_modules/.pnpm/postcss-custom-media@12.0.1_postcss@8.5.19/node_modules/postcss-custom-media/dist/index.mjs
|
|
52900
52903
|
const C$2 = parse$1("csstools-implicit-layer")[0];
|
|
52901
52904
|
function collectCascadeLayerOrder$2(t) {
|
|
52902
52905
|
const n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [];
|
|
@@ -53324,7 +53327,7 @@ const creator$44 = (e) => {
|
|
|
53324
53327
|
};
|
|
53325
53328
|
creator$44.postcss = !0;
|
|
53326
53329
|
//#endregion
|
|
53327
|
-
//#region ../../node_modules/.pnpm/postcss-custom-properties@15.0.1_postcss@8.5.
|
|
53330
|
+
//#region ../../node_modules/.pnpm/postcss-custom-properties@15.0.1_postcss@8.5.19/node_modules/postcss-custom-properties/dist/index.mjs
|
|
53328
53331
|
const o$21 = parse$1("csstools-implicit-layer")[0];
|
|
53329
53332
|
function collectCascadeLayerOrder$1(r) {
|
|
53330
53333
|
const n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), a = [];
|
|
@@ -53643,7 +53646,7 @@ const creator$43 = (e) => {
|
|
|
53643
53646
|
};
|
|
53644
53647
|
creator$43.postcss = !0;
|
|
53645
53648
|
//#endregion
|
|
53646
|
-
//#region ../../node_modules/.pnpm/postcss-custom-selectors@9.0.1_postcss@8.5.
|
|
53649
|
+
//#region ../../node_modules/.pnpm/postcss-custom-selectors@9.0.1_postcss@8.5.19/node_modules/postcss-custom-selectors/dist/index.mjs
|
|
53647
53650
|
const s$11 = parse$1("csstools-implicit-layer")[0];
|
|
53648
53651
|
function collectCascadeLayerOrder(e) {
|
|
53649
53652
|
const o = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), a = [];
|
|
@@ -53779,7 +53782,7 @@ const creator$42 = (e) => {
|
|
|
53779
53782
|
};
|
|
53780
53783
|
creator$42.postcss = !0;
|
|
53781
53784
|
//#endregion
|
|
53782
|
-
//#region ../../node_modules/.pnpm/postcss-dir-pseudo-class@10.0.0_postcss@8.5.
|
|
53785
|
+
//#region ../../node_modules/.pnpm/postcss-dir-pseudo-class@10.0.0_postcss@8.5.19/node_modules/postcss-dir-pseudo-class/dist/index.mjs
|
|
53783
53786
|
const creator$41 = (t) => {
|
|
53784
53787
|
const r = Object.assign({
|
|
53785
53788
|
dir: null,
|
|
@@ -53850,7 +53853,7 @@ const creator$41 = (t) => {
|
|
|
53850
53853
|
};
|
|
53851
53854
|
creator$41.postcss = !0;
|
|
53852
53855
|
//#endregion
|
|
53853
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-normalize-display-values@5.0.1_postcss@8.5.
|
|
53856
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-normalize-display-values@5.0.1_postcss@8.5.19/node_modules/@csstools/postcss-normalize-display-values/dist/index.mjs
|
|
53854
53857
|
var l$5 = /* @__PURE__ */ new Map([
|
|
53855
53858
|
["flow", "block"],
|
|
53856
53859
|
["block,flow", "block"],
|
|
@@ -53920,7 +53923,7 @@ const creator$40 = (i) => {
|
|
|
53920
53923
|
};
|
|
53921
53924
|
creator$40.postcss = !0;
|
|
53922
53925
|
//#endregion
|
|
53923
|
-
//#region ../../node_modules/.pnpm/postcss-double-position-gradients@7.0.2_postcss@8.5.
|
|
53926
|
+
//#region ../../node_modules/.pnpm/postcss-double-position-gradients@7.0.2_postcss@8.5.19/node_modules/postcss-double-position-gradients/dist/index.mjs
|
|
53924
53927
|
const o$19 = /(?:repeating-)?(?:conic|linear|radial)-gradient\(/i;
|
|
53925
53928
|
const i$5 = /^(?:repeating-)?(?:conic|linear|radial)-gradient$/i;
|
|
53926
53929
|
const n$7 = [
|
|
@@ -54001,7 +54004,7 @@ const postcssPlugin$9 = (t) => {
|
|
|
54001
54004
|
};
|
|
54002
54005
|
postcssPlugin$9.postcss = !0;
|
|
54003
54006
|
//#endregion
|
|
54004
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-exponential-functions@3.0.3_postcss@8.5.
|
|
54007
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-exponential-functions@3.0.3_postcss@8.5.19/node_modules/@csstools/postcss-exponential-functions/dist/index.mjs
|
|
54005
54008
|
const s$10 = /(?<![-\w])(?:exp|hypot|log|pow|sqrt)\(/i;
|
|
54006
54009
|
const creator$39 = (o) => {
|
|
54007
54010
|
const t = Object.assign({ preserve: !1 }, o);
|
|
@@ -54016,7 +54019,7 @@ const creator$39 = (o) => {
|
|
|
54016
54019
|
};
|
|
54017
54020
|
creator$39.postcss = !0;
|
|
54018
54021
|
//#endregion
|
|
54019
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-float-and-clear@4.0.0_postcss@8.5.
|
|
54022
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-float-and-clear@4.0.0_postcss@8.5.19/node_modules/@csstools/postcss-logical-float-and-clear/dist/index.mjs
|
|
54020
54023
|
const t$9 = "inline-start";
|
|
54021
54024
|
const o$18 = "inline-end";
|
|
54022
54025
|
var e$26;
|
|
@@ -54062,7 +54065,7 @@ const creator$38 = (n) => {
|
|
|
54062
54065
|
};
|
|
54063
54066
|
creator$38.postcss = !0;
|
|
54064
54067
|
//#endregion
|
|
54065
|
-
//#region ../../node_modules/.pnpm/postcss-focus-visible@11.0.0_postcss@8.5.
|
|
54068
|
+
//#region ../../node_modules/.pnpm/postcss-focus-visible@11.0.0_postcss@8.5.19/node_modules/postcss-focus-visible/dist/index.mjs
|
|
54066
54069
|
const s$9 = "js-focus-visible";
|
|
54067
54070
|
const o$17 = ":focus-visible";
|
|
54068
54071
|
const creator$37 = (t) => {
|
|
@@ -54118,7 +54121,7 @@ const creator$37 = (t) => {
|
|
|
54118
54121
|
};
|
|
54119
54122
|
creator$37.postcss = !0;
|
|
54120
54123
|
//#endregion
|
|
54121
|
-
//#region ../../node_modules/.pnpm/postcss-focus-within@10.0.0_postcss@8.5.
|
|
54124
|
+
//#region ../../node_modules/.pnpm/postcss-focus-within@10.0.0_postcss@8.5.19/node_modules/postcss-focus-within/dist/index.mjs
|
|
54122
54125
|
const s$8 = [
|
|
54123
54126
|
" ",
|
|
54124
54127
|
">",
|
|
@@ -54195,7 +54198,7 @@ const creator$36 = (s) => {
|
|
|
54195
54198
|
};
|
|
54196
54199
|
creator$36.postcss = !0;
|
|
54197
54200
|
//#endregion
|
|
54198
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-font-format-keywords@5.0.0_postcss@8.5.
|
|
54201
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-font-format-keywords@5.0.0_postcss@8.5.19/node_modules/@csstools/postcss-font-format-keywords/dist/index.mjs
|
|
54199
54202
|
const t$7 = [
|
|
54200
54203
|
"woff",
|
|
54201
54204
|
"truetype",
|
|
@@ -54231,7 +54234,7 @@ const creator$35 = (r) => {
|
|
|
54231
54234
|
};
|
|
54232
54235
|
creator$35.postcss = !0;
|
|
54233
54236
|
//#endregion
|
|
54234
|
-
//#region ../../node_modules/.pnpm/postcss-font-variant@5.0.0_postcss@8.5.
|
|
54237
|
+
//#region ../../node_modules/.pnpm/postcss-font-variant@5.0.0_postcss@8.5.19/node_modules/postcss-font-variant/index.js
|
|
54235
54238
|
var require_postcss_font_variant = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
54236
54239
|
/**
|
|
54237
54240
|
* font variant convertion map
|
|
@@ -54326,7 +54329,7 @@ var require_postcss_font_variant = /* @__PURE__ */ require_rolldown_runtime.__co
|
|
|
54326
54329
|
module.exports.postcss = true;
|
|
54327
54330
|
}));
|
|
54328
54331
|
//#endregion
|
|
54329
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-font-width-property@1.0.0_postcss@8.5.
|
|
54332
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-font-width-property@1.0.0_postcss@8.5.19/node_modules/@csstools/postcss-font-width-property/dist/index.mjs
|
|
54330
54333
|
var import_postcss_font_variant = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_postcss_font_variant(), 1);
|
|
54331
54334
|
const e$22 = /^font-width$/i;
|
|
54332
54335
|
const o$16 = /\bfont-width\b/i;
|
|
@@ -54348,7 +54351,7 @@ function hasFallback(t) {
|
|
|
54348
54351
|
}
|
|
54349
54352
|
creator$34.postcss = !0;
|
|
54350
54353
|
//#endregion
|
|
54351
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-gamut-mapping@3.0.6_postcss@8.5.
|
|
54354
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-gamut-mapping@3.0.6_postcss@8.5.19/node_modules/@csstools/postcss-gamut-mapping/dist/index.mjs
|
|
54352
54355
|
const p = /\bcolor-gamut\b/i;
|
|
54353
54356
|
function hasConditionalAncestor(e) {
|
|
54354
54357
|
let o = e.parent;
|
|
@@ -54445,7 +54448,7 @@ const creator$33 = () => ({
|
|
|
54445
54448
|
});
|
|
54446
54449
|
creator$33.postcss = !0;
|
|
54447
54450
|
//#endregion
|
|
54448
|
-
//#region ../../node_modules/.pnpm/postcss-gap-properties@7.0.0_postcss@8.5.
|
|
54451
|
+
//#region ../../node_modules/.pnpm/postcss-gap-properties@7.0.0_postcss@8.5.19/node_modules/postcss-gap-properties/dist/index.mjs
|
|
54449
54452
|
const e$21 = [
|
|
54450
54453
|
"column-gap",
|
|
54451
54454
|
"gap",
|
|
@@ -54465,7 +54468,7 @@ const creator$32 = (o) => {
|
|
|
54465
54468
|
};
|
|
54466
54469
|
creator$32.postcss = !0;
|
|
54467
54470
|
//#endregion
|
|
54468
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-gradients-interpolation-method@6.0.6_postcss@8.5.
|
|
54471
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-gradients-interpolation-method@6.0.6_postcss@8.5.19/node_modules/@csstools/postcss-gradients-interpolation-method/dist/index.mjs
|
|
54469
54472
|
const x = /(?:repeating-)?(?:linear|radial|conic)-gradient\(/i;
|
|
54470
54473
|
const W = /\bin\b/i;
|
|
54471
54474
|
const P$1 = { test: (o) => x.test(o) && W.test(o) };
|
|
@@ -54760,7 +54763,7 @@ const postcssPlugin$8 = (e) => {
|
|
|
54760
54763
|
};
|
|
54761
54764
|
postcssPlugin$8.postcss = !0;
|
|
54762
54765
|
//#endregion
|
|
54763
|
-
//#region ../../node_modules/.pnpm/css-has-pseudo@8.0.0_postcss@8.5.
|
|
54766
|
+
//#region ../../node_modules/.pnpm/css-has-pseudo@8.0.0_postcss@8.5.19/node_modules/css-has-pseudo/dist/index.mjs
|
|
54764
54767
|
function encodeCSS(e) {
|
|
54765
54768
|
if ("" === e) return "";
|
|
54766
54769
|
let t, s = "";
|
|
@@ -54871,7 +54874,7 @@ function isWithinSupportCheck(e) {
|
|
|
54871
54874
|
}
|
|
54872
54875
|
creator$31.postcss = !0;
|
|
54873
54876
|
//#endregion
|
|
54874
|
-
//#region ../../node_modules/.pnpm/postcss-color-hex-alpha@11.0.0_postcss@8.5.
|
|
54877
|
+
//#region ../../node_modules/.pnpm/postcss-color-hex-alpha@11.0.0_postcss@8.5.19/node_modules/postcss-color-hex-alpha/dist/index.mjs
|
|
54875
54878
|
const creator$30 = (a) => {
|
|
54876
54879
|
const o = Object.assign({ preserve: !1 }, a);
|
|
54877
54880
|
return {
|
|
@@ -54904,7 +54907,7 @@ function hexa2rgba(e) {
|
|
|
54904
54907
|
e.value = `rgba(${r},${l},${n},${c})`;
|
|
54905
54908
|
}
|
|
54906
54909
|
//#endregion
|
|
54907
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-hwb-function@5.0.6_postcss@8.5.
|
|
54910
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-hwb-function@5.0.6_postcss@8.5.19/node_modules/@csstools/postcss-hwb-function/dist/index.mjs
|
|
54908
54911
|
const u$3 = /\bhwb\(/i;
|
|
54909
54912
|
const m$2 = /^hwb$/i;
|
|
54910
54913
|
const basePlugin$6 = (s) => ({
|
|
@@ -54935,7 +54938,7 @@ const postcssPlugin$7 = (o) => {
|
|
|
54935
54938
|
};
|
|
54936
54939
|
postcssPlugin$7.postcss = !0;
|
|
54937
54940
|
//#endregion
|
|
54938
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-ic-unit@5.0.2_postcss@8.5.
|
|
54941
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-ic-unit@5.0.2_postcss@8.5.19/node_modules/@csstools/postcss-ic-unit/dist/index.mjs
|
|
54939
54942
|
const o$14 = /ic\b/i;
|
|
54940
54943
|
const i$4 = /\(font-size: \d+ic\)/i;
|
|
54941
54944
|
const basePlugin$5 = (s) => ({
|
|
@@ -54967,7 +54970,7 @@ const postcssPlugin$6 = (e) => {
|
|
|
54967
54970
|
};
|
|
54968
54971
|
postcssPlugin$6.postcss = !0;
|
|
54969
54972
|
//#endregion
|
|
54970
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-image-function@1.0.1_postcss@8.5.
|
|
54973
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-image-function@1.0.1_postcss@8.5.19/node_modules/@csstools/postcss-image-function/dist/index.mjs
|
|
54971
54974
|
const u$2 = /\bimage\(/i;
|
|
54972
54975
|
const g$3 = /^image$/i;
|
|
54973
54976
|
const basePlugin$4 = (e) => ({
|
|
@@ -55012,7 +55015,7 @@ const postcssPlugin$5 = (s) => {
|
|
|
55012
55015
|
};
|
|
55013
55016
|
postcssPlugin$5.postcss = !0;
|
|
55014
55017
|
//#endregion
|
|
55015
|
-
//#region ../../node_modules/.pnpm/postcss-image-set-function@8.0.0_postcss@8.5.
|
|
55018
|
+
//#region ../../node_modules/.pnpm/postcss-image-set-function@8.0.0_postcss@8.5.19/node_modules/postcss-image-set-function/dist/index.mjs
|
|
55016
55019
|
function isComma$1(e) {
|
|
55017
55020
|
return !!e && "div" === e.type && "," === e.value;
|
|
55018
55021
|
}
|
|
@@ -58201,7 +58204,7 @@ function selectorNodeContainsNothingOrOnlyUniversal(e) {
|
|
|
58201
58204
|
return 0 === t.length || 1 === t.length && "universal" === t[0].type;
|
|
58202
58205
|
}
|
|
58203
58206
|
//#endregion
|
|
58204
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-is-pseudo-class@6.0.0_postcss@8.5.
|
|
58207
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-is-pseudo-class@6.0.0_postcss@8.5.19/node_modules/@csstools/postcss-is-pseudo-class/dist/index.mjs
|
|
58205
58208
|
function alwaysValidSelector(s) {
|
|
58206
58209
|
const o = (0, import_dist.default)().astSync(s);
|
|
58207
58210
|
let n = !0;
|
|
@@ -58471,7 +58474,7 @@ const creator$28 = (e) => {
|
|
|
58471
58474
|
};
|
|
58472
58475
|
creator$28.postcss = !0;
|
|
58473
58476
|
//#endregion
|
|
58474
|
-
//#region ../../node_modules/.pnpm/postcss-lab-function@8.0.6_postcss@8.5.
|
|
58477
|
+
//#region ../../node_modules/.pnpm/postcss-lab-function@8.0.6_postcss@8.5.19/node_modules/postcss-lab-function/dist/index.mjs
|
|
58475
58478
|
const g$2 = /\b(?:lab|lch)\(/i;
|
|
58476
58479
|
const f$2 = /^(?:lab|lch)$/i;
|
|
58477
58480
|
const basePlugin$3 = (s) => ({
|
|
@@ -58509,7 +58512,7 @@ const postcssPlugin$4 = (e) => {
|
|
|
58509
58512
|
};
|
|
58510
58513
|
postcssPlugin$4.postcss = !0;
|
|
58511
58514
|
//#endregion
|
|
58512
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-light-dark-function@3.0.2_postcss@8.5.
|
|
58515
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-light-dark-function@3.0.2_postcss@8.5.19/node_modules/@csstools/postcss-light-dark-function/dist/index.mjs
|
|
58513
58516
|
const k$1 = "--csstools-color-scheme--light";
|
|
58514
58517
|
const D = "initial";
|
|
58515
58518
|
function toggleNameGenerator(e) {
|
|
@@ -58710,7 +58713,7 @@ const postcssPlugin$3 = (r) => {
|
|
|
58710
58713
|
};
|
|
58711
58714
|
postcssPlugin$3.postcss = !0;
|
|
58712
58715
|
//#endregion
|
|
58713
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overflow@3.0.0_postcss@8.5.
|
|
58716
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overflow@3.0.0_postcss@8.5.19/node_modules/@csstools/postcss-logical-overflow/dist/index.mjs
|
|
58714
58717
|
var o$11;
|
|
58715
58718
|
function transformAxes$1(o, t) {
|
|
58716
58719
|
const e = t ? "-x" : "-y", i = t ? "-y" : "-x", n = o.prop.toLowerCase().replace("-inline", e).replace("-block", i), s = o.value;
|
|
@@ -58742,7 +58745,7 @@ const creator$27 = (t) => {
|
|
|
58742
58745
|
};
|
|
58743
58746
|
creator$27.postcss = !0;
|
|
58744
58747
|
//#endregion
|
|
58745
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overscroll-behavior@3.0.0_postcss@8.5.
|
|
58748
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-overscroll-behavior@3.0.0_postcss@8.5.19/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.mjs
|
|
58746
58749
|
var o$10;
|
|
58747
58750
|
function transformAxes(o, t) {
|
|
58748
58751
|
const e = t ? "-x" : "-y", i = t ? "-y" : "-x", r = o.prop.toLowerCase().replace("-inline", e).replace("-block", i), s = o.value;
|
|
@@ -58774,7 +58777,7 @@ const creator$26 = (t) => {
|
|
|
58774
58777
|
};
|
|
58775
58778
|
creator$26.postcss = !0;
|
|
58776
58779
|
//#endregion
|
|
58777
|
-
//#region ../../node_modules/.pnpm/postcss-logical@9.0.0_postcss@8.5.
|
|
58780
|
+
//#region ../../node_modules/.pnpm/postcss-logical@9.0.0_postcss@8.5.19/node_modules/postcss-logical/dist/index.mjs
|
|
58778
58781
|
var e$14;
|
|
58779
58782
|
var n$2;
|
|
58780
58783
|
(function(r) {
|
|
@@ -59137,7 +59140,7 @@ const creator$25 = (r) => {
|
|
|
59137
59140
|
};
|
|
59138
59141
|
creator$25.postcss = !0;
|
|
59139
59142
|
//#endregion
|
|
59140
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-resize@4.0.0_postcss@8.5.
|
|
59143
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-resize@4.0.0_postcss@8.5.19/node_modules/@csstools/postcss-logical-resize/dist/index.mjs
|
|
59141
59144
|
var t$3;
|
|
59142
59145
|
var e$13;
|
|
59143
59146
|
var i$1;
|
|
@@ -59212,7 +59215,7 @@ const creator$24 = (o) => {
|
|
|
59212
59215
|
};
|
|
59213
59216
|
creator$24.postcss = !0;
|
|
59214
59217
|
//#endregion
|
|
59215
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-viewport-units@4.0.0_postcss@8.5.
|
|
59218
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-logical-viewport-units@4.0.0_postcss@8.5.19/node_modules/@csstools/postcss-logical-viewport-units/dist/index.mjs
|
|
59216
59219
|
var s$6;
|
|
59217
59220
|
function transform$1(t, o) {
|
|
59218
59221
|
const s = tokenizer({ css: t }), c = [];
|
|
@@ -59284,7 +59287,7 @@ const creator$23 = (e) => {
|
|
|
59284
59287
|
};
|
|
59285
59288
|
creator$23.postcss = !0;
|
|
59286
59289
|
//#endregion
|
|
59287
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-media-queries-aspect-ratio-number-values@4.0.0_postcss@8.5.
|
|
59290
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-media-queries-aspect-ratio-number-values@4.0.0_postcss@8.5.19/node_modules/@csstools/postcss-media-queries-aspect-ratio-number-values/dist/index.mjs
|
|
59288
59291
|
const w = 1e5;
|
|
59289
59292
|
const h$1 = 2147483647;
|
|
59290
59293
|
function transformMediaFeatureValue(t) {
|
|
@@ -59576,7 +59579,7 @@ const creator$22 = (e) => {
|
|
|
59576
59579
|
};
|
|
59577
59580
|
creator$22.postcss = !0;
|
|
59578
59581
|
//#endregion
|
|
59579
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-media-minmax@3.0.3_postcss@8.5.
|
|
59582
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-media-minmax@3.0.3_postcss@8.5.19/node_modules/@csstools/postcss-media-minmax/dist/index.mjs
|
|
59580
59583
|
const C = {
|
|
59581
59584
|
width: "px",
|
|
59582
59585
|
height: "px",
|
|
@@ -59962,7 +59965,7 @@ const creator$21 = () => ({
|
|
|
59962
59965
|
});
|
|
59963
59966
|
creator$21.postcss = !0;
|
|
59964
59967
|
//#endregion
|
|
59965
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-mixins@1.0.0_postcss@8.5.
|
|
59968
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-mixins@1.0.0_postcss@8.5.19/node_modules/@csstools/postcss-mixins/dist/index.mjs
|
|
59966
59969
|
const o$7 = /^apply$/i;
|
|
59967
59970
|
function processableApplyRule(o) {
|
|
59968
59971
|
if (!o.params || !o.params.includes("--")) return !1;
|
|
@@ -60020,7 +60023,7 @@ const creator$20 = (e) => {
|
|
|
60020
60023
|
};
|
|
60021
60024
|
creator$20.postcss = !0;
|
|
60022
60025
|
//#endregion
|
|
60023
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-nested-calc@5.0.0_postcss@8.5.
|
|
60026
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-nested-calc@5.0.0_postcss@8.5.19/node_modules/@csstools/postcss-nested-calc/dist/index.mjs
|
|
60024
60027
|
const r$4 = /calc\(/gi;
|
|
60025
60028
|
const creator$19 = (s) => {
|
|
60026
60029
|
const o = Object.assign({ preserve: !0 }, s);
|
|
@@ -60152,7 +60155,7 @@ function isCompoundSelector$1(o) {
|
|
|
60152
60155
|
return 1 === o.length && !o[0].nodes.some((o) => "combinator" === o.type || import_dist$1.default.isPseudoElement(o));
|
|
60153
60156
|
}
|
|
60154
60157
|
//#endregion
|
|
60155
|
-
//#region ../../node_modules/.pnpm/postcss-nesting@14.0.0_postcss@8.5.
|
|
60158
|
+
//#region ../../node_modules/.pnpm/postcss-nesting@14.0.0_postcss@8.5.19/node_modules/postcss-nesting/dist/index.mjs
|
|
60156
60159
|
const r$3 = import_dist$1.default.pseudo({ value: ":is" });
|
|
60157
60160
|
function sortCompoundSelectorsInsideComplexSelector(t) {
|
|
60158
60161
|
if (!t || !t.nodes) return;
|
|
@@ -60527,7 +60530,7 @@ const creator$18 = (e) => {
|
|
|
60527
60530
|
};
|
|
60528
60531
|
creator$18.postcss = !0;
|
|
60529
60532
|
//#endregion
|
|
60530
|
-
//#region ../../node_modules/.pnpm/postcss-selector-not@9.0.0_postcss@8.5.
|
|
60533
|
+
//#region ../../node_modules/.pnpm/postcss-selector-not@9.0.0_postcss@8.5.19/node_modules/postcss-selector-not/dist/index.mjs
|
|
60531
60534
|
function cleanupWhitespace(e) {
|
|
60532
60535
|
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 = ""));
|
|
60533
60536
|
}
|
|
@@ -60558,7 +60561,7 @@ const creator$17 = () => ({
|
|
|
60558
60561
|
});
|
|
60559
60562
|
creator$17.postcss = !0;
|
|
60560
60563
|
//#endregion
|
|
60561
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-oklab-function@5.0.6_postcss@8.5.
|
|
60564
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-oklab-function@5.0.6_postcss@8.5.19/node_modules/@csstools/postcss-oklab-function/dist/index.mjs
|
|
60562
60565
|
const g$1 = /\b(?:oklab|oklch)\(/i;
|
|
60563
60566
|
const f$1 = /^(?:oklab|oklch)$/i;
|
|
60564
60567
|
const basePlugin$1 = (s) => ({
|
|
@@ -60596,7 +60599,7 @@ const postcssPlugin$2 = (e) => {
|
|
|
60596
60599
|
};
|
|
60597
60600
|
postcssPlugin$2.postcss = !0;
|
|
60598
60601
|
//#endregion
|
|
60599
|
-
//#region ../../node_modules/.pnpm/postcss-opacity-percentage@3.0.0_postcss@8.5.
|
|
60602
|
+
//#region ../../node_modules/.pnpm/postcss-opacity-percentage@3.0.0_postcss@8.5.19/node_modules/postcss-opacity-percentage/index.js
|
|
60600
60603
|
var require_postcss_opacity_percentage = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
60601
60604
|
const doNothingValues = /* @__PURE__ */ new Set([
|
|
60602
60605
|
"inherit",
|
|
@@ -60618,7 +60621,7 @@ var require_postcss_opacity_percentage = /* @__PURE__ */ require_rolldown_runtim
|
|
|
60618
60621
|
module.exports.postcss = true;
|
|
60619
60622
|
}));
|
|
60620
60623
|
//#endregion
|
|
60621
|
-
//#region ../../node_modules/.pnpm/postcss-overflow-shorthand@7.0.0_postcss@8.5.
|
|
60624
|
+
//#region ../../node_modules/.pnpm/postcss-overflow-shorthand@7.0.0_postcss@8.5.19/node_modules/postcss-overflow-shorthand/dist/index.mjs
|
|
60622
60625
|
var import_postcss_opacity_percentage = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_postcss_opacity_percentage(), 1);
|
|
60623
60626
|
const creator$16 = (o) => {
|
|
60624
60627
|
const r = Object.assign({ preserve: !0 }, o);
|
|
@@ -60648,7 +60651,7 @@ const creator$16 = (o) => {
|
|
|
60648
60651
|
};
|
|
60649
60652
|
creator$16.postcss = !0;
|
|
60650
60653
|
//#endregion
|
|
60651
|
-
//#region ../../node_modules/.pnpm/postcss-replace-overflow-wrap@4.0.0_postcss@8.5.
|
|
60654
|
+
//#region ../../node_modules/.pnpm/postcss-replace-overflow-wrap@4.0.0_postcss@8.5.19/node_modules/postcss-replace-overflow-wrap/index.js
|
|
60652
60655
|
var require_postcss_replace_overflow_wrap = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
60653
60656
|
module.exports = function(opts) {
|
|
60654
60657
|
opts = opts || {};
|
|
@@ -60664,7 +60667,7 @@ var require_postcss_replace_overflow_wrap = /* @__PURE__ */ require_rolldown_run
|
|
|
60664
60667
|
module.exports.postcss = true;
|
|
60665
60668
|
}));
|
|
60666
60669
|
//#endregion
|
|
60667
|
-
//#region ../../node_modules/.pnpm/postcss-place@11.0.0_postcss@8.5.
|
|
60670
|
+
//#region ../../node_modules/.pnpm/postcss-place@11.0.0_postcss@8.5.19/node_modules/postcss-place/dist/index.mjs
|
|
60668
60671
|
var import_postcss_replace_overflow_wrap = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_postcss_replace_overflow_wrap(), 1);
|
|
60669
60672
|
function onCSSDeclaration(o, r, s) {
|
|
60670
60673
|
const n = o.prop.match(t$2)?.[1].toLowerCase();
|
|
@@ -60697,7 +60700,7 @@ const creator$15 = (e) => {
|
|
|
60697
60700
|
};
|
|
60698
60701
|
creator$15.postcss = !0;
|
|
60699
60702
|
//#endregion
|
|
60700
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-position-area-property@2.0.0_postcss@8.5.
|
|
60703
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-position-area-property@2.0.0_postcss@8.5.19/node_modules/@csstools/postcss-position-area-property/dist/index.mjs
|
|
60701
60704
|
const o$4 = /^position-area$/i;
|
|
60702
60705
|
const creator$14 = () => ({
|
|
60703
60706
|
postcssPlugin: "postcss-position-area-property",
|
|
@@ -60710,7 +60713,7 @@ const creator$14 = () => ({
|
|
|
60710
60713
|
});
|
|
60711
60714
|
creator$14.postcss = !0;
|
|
60712
60715
|
//#endregion
|
|
60713
|
-
//#region ../../node_modules/.pnpm/css-prefers-color-scheme@11.0.0_postcss@8.5.
|
|
60716
|
+
//#region ../../node_modules/.pnpm/css-prefers-color-scheme@11.0.0_postcss@8.5.19/node_modules/css-prefers-color-scheme/dist/index.mjs
|
|
60714
60717
|
const e$6 = /\(\s*prefers-color-scheme\s*:\s*(dark|light)\s*\)/gi;
|
|
60715
60718
|
const s$4 = "(color: 48842621)";
|
|
60716
60719
|
const r$2 = "(color: 70318723)";
|
|
@@ -60734,7 +60737,7 @@ const creator$13 = (o) => {
|
|
|
60734
60737
|
};
|
|
60735
60738
|
creator$13.postcss = !0;
|
|
60736
60739
|
//#endregion
|
|
60737
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-property-rule-prelude-list@2.0.0_postcss@8.5.
|
|
60740
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-property-rule-prelude-list@2.0.0_postcss@8.5.19/node_modules/@csstools/postcss-property-rule-prelude-list/dist/index.mjs
|
|
60738
60741
|
const o$3 = /^property$/i;
|
|
60739
60742
|
const creator$12 = () => ({
|
|
60740
60743
|
postcssPlugin: "postcss-property-rule-prelude-list",
|
|
@@ -60749,7 +60752,7 @@ const creator$12 = () => ({
|
|
|
60749
60752
|
});
|
|
60750
60753
|
creator$12.postcss = !0;
|
|
60751
60754
|
//#endregion
|
|
60752
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-random-function@3.0.3_postcss@8.5.
|
|
60755
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-random-function@3.0.3_postcss@8.5.19/node_modules/@csstools/postcss-random-function/dist/index.mjs
|
|
60753
60756
|
const o$2 = String.fromCodePoint(0);
|
|
60754
60757
|
function randomCacheKeyFromPostcssDeclaration(e) {
|
|
60755
60758
|
let r = "", t = e.parent;
|
|
@@ -60787,7 +60790,7 @@ const creator$11 = (o) => {
|
|
|
60787
60790
|
};
|
|
60788
60791
|
creator$11.postcss = !0;
|
|
60789
60792
|
//#endregion
|
|
60790
|
-
//#region ../../node_modules/.pnpm/postcss-color-rebeccapurple@11.0.0_postcss@8.5.
|
|
60793
|
+
//#region ../../node_modules/.pnpm/postcss-color-rebeccapurple@11.0.0_postcss@8.5.19/node_modules/postcss-color-rebeccapurple/dist/index.mjs
|
|
60791
60794
|
const s$3 = /rebeccapurple/i;
|
|
60792
60795
|
const t$1 = /^rebeccapurple$/i;
|
|
60793
60796
|
const creator$10 = (o) => {
|
|
@@ -60808,7 +60811,7 @@ const creator$10 = (o) => {
|
|
|
60808
60811
|
};
|
|
60809
60812
|
creator$10.postcss = !0;
|
|
60810
60813
|
//#endregion
|
|
60811
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-relative-color-syntax@4.0.6_postcss@8.5.
|
|
60814
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-relative-color-syntax@4.0.6_postcss@8.5.19/node_modules/@csstools/postcss-relative-color-syntax/dist/index.mjs
|
|
60812
60815
|
const g = /\b(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)\(/i;
|
|
60813
60816
|
const h = /\b(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)\(\s*from/i;
|
|
60814
60817
|
const m$1 = /^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklch|oklab|color)$/i;
|
|
@@ -60848,7 +60851,7 @@ const postcssPlugin$1 = (e) => {
|
|
|
60848
60851
|
};
|
|
60849
60852
|
postcssPlugin$1.postcss = !0;
|
|
60850
60853
|
//#endregion
|
|
60851
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-scope-pseudo-class@5.0.0_postcss@8.5.
|
|
60854
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-scope-pseudo-class@5.0.0_postcss@8.5.19/node_modules/@csstools/postcss-scope-pseudo-class/dist/index.mjs
|
|
60852
60855
|
const creator$9 = (s) => {
|
|
60853
60856
|
const r = Object.assign({ preserve: !1 }, s);
|
|
60854
60857
|
return {
|
|
@@ -60886,7 +60889,7 @@ const creator$9 = (s) => {
|
|
|
60886
60889
|
};
|
|
60887
60890
|
creator$9.postcss = !0;
|
|
60888
60891
|
//#endregion
|
|
60889
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-sign-functions@2.0.3_postcss@8.5.
|
|
60892
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-sign-functions@2.0.3_postcss@8.5.19/node_modules/@csstools/postcss-sign-functions/dist/index.mjs
|
|
60890
60893
|
const m = /(?<![-\w])(?:sign|abs)\(/i;
|
|
60891
60894
|
const f = /(?<![-\w])(?:sign|abs)\(/i;
|
|
60892
60895
|
const creator$8 = (o) => {
|
|
@@ -60998,7 +61001,7 @@ function replacer(e) {
|
|
|
60998
61001
|
}
|
|
60999
61002
|
creator$8.postcss = !0;
|
|
61000
61003
|
//#endregion
|
|
61001
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-stepped-value-functions@5.0.3_postcss@8.5.
|
|
61004
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-stepped-value-functions@5.0.3_postcss@8.5.19/node_modules/@csstools/postcss-stepped-value-functions/dist/index.mjs
|
|
61002
61005
|
const s$2 = /(?<![-\w])(?:mod|rem|round)\(/i;
|
|
61003
61006
|
const creator$7 = (o) => {
|
|
61004
61007
|
const t = Object.assign({ preserve: !1 }, o);
|
|
@@ -61016,7 +61019,7 @@ const creator$7 = (o) => {
|
|
|
61016
61019
|
};
|
|
61017
61020
|
creator$7.postcss = !0;
|
|
61018
61021
|
//#endregion
|
|
61019
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-syntax-descriptor-syntax-production@2.0.0_postcss@8.5.
|
|
61022
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-syntax-descriptor-syntax-production@2.0.0_postcss@8.5.19/node_modules/@csstools/postcss-syntax-descriptor-syntax-production/dist/index.mjs
|
|
61020
61023
|
const o$1 = /^property$/i;
|
|
61021
61024
|
const n$1 = /^syntax$/i;
|
|
61022
61025
|
const creator$6 = (i) => {
|
|
@@ -61089,7 +61092,7 @@ const creator$6 = (i) => {
|
|
|
61089
61092
|
};
|
|
61090
61093
|
creator$6.postcss = !0;
|
|
61091
61094
|
//#endregion
|
|
61092
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-system-ui-font-family@2.0.0_postcss@8.5.
|
|
61095
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-system-ui-font-family@2.0.0_postcss@8.5.19/node_modules/@csstools/postcss-system-ui-font-family/dist/index.mjs
|
|
61093
61096
|
const a = /^font(?:-family)?$/i;
|
|
61094
61097
|
const c$2 = [
|
|
61095
61098
|
"system-ui",
|
|
@@ -61145,7 +61148,7 @@ const creator$5 = (p) => {
|
|
|
61145
61148
|
};
|
|
61146
61149
|
creator$5.postcss = !0;
|
|
61147
61150
|
//#endregion
|
|
61148
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-text-decoration-shorthand@5.0.4_postcss@8.5.
|
|
61151
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-text-decoration-shorthand@5.0.4_postcss@8.5.19/node_modules/@csstools/postcss-text-decoration-shorthand/dist/index.mjs
|
|
61149
61152
|
const o = /^text-decoration$/i;
|
|
61150
61153
|
const creator$4 = (t) => {
|
|
61151
61154
|
const c = Object.assign({ preserve: !0 }, t);
|
|
@@ -61362,7 +61365,7 @@ function genericNodeParts() {
|
|
|
61362
61365
|
};
|
|
61363
61366
|
}
|
|
61364
61367
|
//#endregion
|
|
61365
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-trigonometric-functions@5.0.3_postcss@8.5.
|
|
61368
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-trigonometric-functions@5.0.3_postcss@8.5.19/node_modules/@csstools/postcss-trigonometric-functions/dist/index.mjs
|
|
61366
61369
|
const e$2 = /(?<![-\w])(?:asin|acos|atan|atan2|sin|cos|tan)\(/i;
|
|
61367
61370
|
const creator$3 = (o) => {
|
|
61368
61371
|
const t = Object.assign({ preserve: !1 }, o);
|
|
@@ -61380,7 +61383,7 @@ const creator$3 = (o) => {
|
|
|
61380
61383
|
};
|
|
61381
61384
|
creator$3.postcss = !0;
|
|
61382
61385
|
//#endregion
|
|
61383
|
-
//#region ../../node_modules/.pnpm/@csstools+postcss-unset-value@5.0.0_postcss@8.5.
|
|
61386
|
+
//#region ../../node_modules/.pnpm/@csstools+postcss-unset-value@5.0.0_postcss@8.5.19/node_modules/@csstools/postcss-unset-value/dist/index.mjs
|
|
61384
61387
|
const e$1 = /* @__PURE__ */ new Set([
|
|
61385
61388
|
"block-ellipsis",
|
|
61386
61389
|
"border-boundary",
|
|
@@ -61820,7 +61823,7 @@ const creator$2 = (o) => {
|
|
|
61820
61823
|
};
|
|
61821
61824
|
creator$2.postcss = !0;
|
|
61822
61825
|
//#endregion
|
|
61823
|
-
//#region ../../node_modules/.pnpm/postcss-preset-env@11.3.2_postcss@8.5.
|
|
61826
|
+
//#region ../../node_modules/.pnpm/postcss-preset-env@11.3.2_postcss@8.5.19/node_modules/postcss-preset-env/dist/index.mjs
|
|
61824
61827
|
const ks = {
|
|
61825
61828
|
"blank-pseudo-class": "https://github.com/csstools/postcss-plugins/blob/main/plugins/css-blank-pseudo/README.md#browser",
|
|
61826
61829
|
"focus-visible-pseudo-class": "https://github.com/WICG/focus-visible",
|
|
@@ -63611,7 +63614,7 @@ function resolveSourceScanPath(value) {
|
|
|
63611
63614
|
}
|
|
63612
63615
|
}
|
|
63613
63616
|
function normalizeEntryPattern(entry) {
|
|
63614
|
-
return node_path.default.isAbsolute(entry.pattern) ? toPosixPath(node_path.default.relative(resolveSourceScanPath(entry.base), entry.pattern)) : entry.pattern;
|
|
63617
|
+
return node_path.default.isAbsolute(entry.pattern) ? toPosixPath(node_path.default.relative(resolveSourceScanPath(entry.base), resolveSourceScanPath(entry.pattern))) : entry.pattern;
|
|
63615
63618
|
}
|
|
63616
63619
|
function isFileMatchedByTailwindSourceEntry(file, entry) {
|
|
63617
63620
|
const relative = toPosixPath(node_path.default.relative(resolveSourceScanPath(entry.base), file));
|
|
@@ -66635,24 +66638,32 @@ function removeTailwindPostcssPlugins(plugins) {
|
|
|
66635
66638
|
}
|
|
66636
66639
|
return removed;
|
|
66637
66640
|
}
|
|
66638
|
-
async function
|
|
66641
|
+
async function resolvePostcssConfig(root, ctx = {}) {
|
|
66639
66642
|
try {
|
|
66640
|
-
const loaded = await (0, postcss_load_config.default)(
|
|
66641
|
-
const plugins = Array.isArray(loaded.plugins) ? [...loaded.plugins] : [];
|
|
66642
|
-
const removed = removeTailwindPostcssPlugins(plugins);
|
|
66643
|
-
if (removed === 0) return;
|
|
66643
|
+
const loaded = await (0, postcss_load_config.default)(ctx, root);
|
|
66644
66644
|
return {
|
|
66645
66645
|
options: loaded.options,
|
|
66646
|
-
plugins
|
|
66647
|
-
removed
|
|
66646
|
+
plugins: Array.isArray(loaded.plugins) ? [...loaded.plugins] : []
|
|
66648
66647
|
};
|
|
66649
66648
|
} catch (error) {
|
|
66650
66649
|
if ((error instanceof Error ? error.message : String(error)).includes("No PostCSS Config found")) return;
|
|
66651
66650
|
throw error;
|
|
66652
66651
|
}
|
|
66653
66652
|
}
|
|
66653
|
+
async function resolveFilteredPostcssConfig(root) {
|
|
66654
|
+
const loaded = await resolvePostcssConfig(root);
|
|
66655
|
+
if (!loaded) return;
|
|
66656
|
+
const plugins = [...loaded.plugins];
|
|
66657
|
+
const removed = removeTailwindPostcssPlugins(plugins);
|
|
66658
|
+
if (removed === 0) return;
|
|
66659
|
+
return {
|
|
66660
|
+
options: loaded.options,
|
|
66661
|
+
plugins,
|
|
66662
|
+
removed
|
|
66663
|
+
};
|
|
66664
|
+
}
|
|
66654
66665
|
//#endregion
|
|
66655
|
-
//#region src/vite-css-rules.ts
|
|
66666
|
+
//#region src/vite-css-rules/structure.ts
|
|
66656
66667
|
const MINI_PROGRAM_PREFLIGHT_SELECTOR_KEY = "view,text,::after,::before";
|
|
66657
66668
|
const MINI_PROGRAM_PREFLIGHT_SELECTOR_KEYS = /* @__PURE__ */ new Set([
|
|
66658
66669
|
"view",
|
|
@@ -66805,148 +66816,8 @@ function collectCssRuleDeclarationRecords(root, resolveRuleKey = getCssRuleStruc
|
|
|
66805
66816
|
});
|
|
66806
66817
|
return map;
|
|
66807
66818
|
}
|
|
66808
|
-
|
|
66809
|
-
|
|
66810
|
-
const value = node.value.toLowerCase();
|
|
66811
|
-
if (value === "view" || value === "text" || value === "page" || value === "wx-root-portal-content") return value;
|
|
66812
|
-
return;
|
|
66813
|
-
}
|
|
66814
|
-
if (node.type === "class") return node.value.toLowerCase() === "tw-root" ? ".tw-root" : void 0;
|
|
66815
|
-
if (node.type === "pseudo") {
|
|
66816
|
-
if (node.nodes && node.nodes.length > 0) return;
|
|
66817
|
-
const value = node.value.toLowerCase();
|
|
66818
|
-
if (value === ":before" || value === "::before") return "::before";
|
|
66819
|
-
if (value === ":after" || value === "::after") return "::after";
|
|
66820
|
-
if (value === ":host") return ":host";
|
|
66821
|
-
}
|
|
66822
|
-
}
|
|
66823
|
-
function normalizeSimpleMiniProgramSelector(selector) {
|
|
66824
|
-
if (selector.nodes.length !== 1) return;
|
|
66825
|
-
return normalizeSimpleMiniProgramSelectorNode(selector.nodes[0]);
|
|
66826
|
-
}
|
|
66827
|
-
function collectMiniProgramSelectorSet(selector) {
|
|
66828
|
-
try {
|
|
66829
|
-
const selectorSet = /* @__PURE__ */ new Set();
|
|
66830
|
-
const ast = (0, import_dist$1.default)().astSync(selector);
|
|
66831
|
-
for (const child of ast.nodes) {
|
|
66832
|
-
const key = normalizeSimpleMiniProgramSelector(child);
|
|
66833
|
-
if (!key || selectorSet.has(key)) return;
|
|
66834
|
-
selectorSet.add(key);
|
|
66835
|
-
}
|
|
66836
|
-
return selectorSet;
|
|
66837
|
-
} catch {
|
|
66838
|
-
return;
|
|
66839
|
-
}
|
|
66840
|
-
}
|
|
66841
|
-
function isSameSelectorSet(actual, expected) {
|
|
66842
|
-
return actual?.size === expected.size && [...expected].every((key) => actual.has(key));
|
|
66843
|
-
}
|
|
66844
|
-
function getMiniProgramPreflightRuleStructuralKey(rule) {
|
|
66845
|
-
if (!isSameSelectorSet(collectMiniProgramSelectorSet(rule.selector), MINI_PROGRAM_PREFLIGHT_SELECTOR_KEYS)) return;
|
|
66846
|
-
return getCssRuleStructuralKeyWithSelectorKey(rule, MINI_PROGRAM_PREFLIGHT_SELECTOR_KEY);
|
|
66847
|
-
}
|
|
66848
|
-
function getMiniProgramThemeScopeRuleStructuralKey(rule) {
|
|
66849
|
-
if (!isSameSelectorSet(collectMiniProgramSelectorSet(rule.selector), MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEYS)) return;
|
|
66850
|
-
return getCssRuleStructuralKeyWithSelectorKey(rule, MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEY);
|
|
66851
|
-
}
|
|
66852
|
-
function mergeMiniProgramPreflightRuleDeclarations(baseCss, css) {
|
|
66853
|
-
try {
|
|
66854
|
-
const baseRoot = postcss.default.parse(baseCss);
|
|
66855
|
-
const root = postcss.default.parse(css);
|
|
66856
|
-
const baseRuleRecords = collectCssRuleDeclarationRecords(baseRoot, getMiniProgramPreflightRuleStructuralKey);
|
|
66857
|
-
let changedBase = false;
|
|
66858
|
-
let changedCss = false;
|
|
66859
|
-
root.walkRules((rule) => {
|
|
66860
|
-
const key = getMiniProgramPreflightRuleStructuralKey(rule);
|
|
66861
|
-
if (!key) return;
|
|
66862
|
-
const records = baseRuleRecords.get(key);
|
|
66863
|
-
const targetRecord = records?.[0];
|
|
66864
|
-
if (!targetRecord) return;
|
|
66865
|
-
const existingProps = new Set(records.flatMap((record) => [...record.props]));
|
|
66866
|
-
for (const decl of collectCssRuleDeclarations(rule)) {
|
|
66867
|
-
const prop = decl.prop.trim();
|
|
66868
|
-
if (existingProps.has(prop)) continue;
|
|
66869
|
-
targetRecord.rule.append(decl.clone());
|
|
66870
|
-
targetRecord.keys.add(normalizeCssDeclarationKey(decl));
|
|
66871
|
-
targetRecord.props.add(prop);
|
|
66872
|
-
existingProps.add(prop);
|
|
66873
|
-
changedBase = true;
|
|
66874
|
-
}
|
|
66875
|
-
rule.remove();
|
|
66876
|
-
changedCss = true;
|
|
66877
|
-
});
|
|
66878
|
-
if (!changedBase && !changedCss) return {
|
|
66879
|
-
baseCss,
|
|
66880
|
-
css,
|
|
66881
|
-
changed: false
|
|
66882
|
-
};
|
|
66883
|
-
removeEmptyAtRules(root);
|
|
66884
|
-
return {
|
|
66885
|
-
baseCss: changedBase ? baseRoot.toString() : baseCss,
|
|
66886
|
-
css: changedCss ? root.toString().trim() : css,
|
|
66887
|
-
changed: true
|
|
66888
|
-
};
|
|
66889
|
-
} catch {
|
|
66890
|
-
return {
|
|
66891
|
-
baseCss,
|
|
66892
|
-
css,
|
|
66893
|
-
changed: false
|
|
66894
|
-
};
|
|
66895
|
-
}
|
|
66896
|
-
}
|
|
66897
|
-
function mergeMiniProgramThemeScopeRuleDeclarations(baseCss, css) {
|
|
66898
|
-
try {
|
|
66899
|
-
const baseRoot = postcss.default.parse(baseCss);
|
|
66900
|
-
const root = postcss.default.parse(css);
|
|
66901
|
-
const baseRuleRecords = collectCssRuleDeclarationRecords(baseRoot, getMiniProgramThemeScopeRuleStructuralKey);
|
|
66902
|
-
let changedBase = false;
|
|
66903
|
-
let changedCss = false;
|
|
66904
|
-
root.walkRules((rule) => {
|
|
66905
|
-
const key = getMiniProgramThemeScopeRuleStructuralKey(rule);
|
|
66906
|
-
if (!key) return;
|
|
66907
|
-
const records = baseRuleRecords.get(key);
|
|
66908
|
-
const targetRecord = records?.[0];
|
|
66909
|
-
if (!targetRecord) return;
|
|
66910
|
-
const incomingDeclarations = collectCssRuleDeclarations(rule);
|
|
66911
|
-
if (incomingDeclarations.length === 0) return;
|
|
66912
|
-
const existingKeys = new Set(records.flatMap((record) => [...record.keys]));
|
|
66913
|
-
const existingProps = new Set(records.flatMap((record) => [...record.props]));
|
|
66914
|
-
if (incomingDeclarations.some((decl) => {
|
|
66915
|
-
const prop = decl.prop.trim();
|
|
66916
|
-
return existingProps.has(prop) && !existingKeys.has(normalizeCssDeclarationKey(decl));
|
|
66917
|
-
})) return;
|
|
66918
|
-
for (const decl of incomingDeclarations) {
|
|
66919
|
-
const declarationKey = normalizeCssDeclarationKey(decl);
|
|
66920
|
-
if (existingKeys.has(declarationKey)) continue;
|
|
66921
|
-
targetRecord.rule.append(decl.clone());
|
|
66922
|
-
targetRecord.keys.add(declarationKey);
|
|
66923
|
-
targetRecord.props.add(decl.prop.trim());
|
|
66924
|
-
existingKeys.add(declarationKey);
|
|
66925
|
-
existingProps.add(decl.prop.trim());
|
|
66926
|
-
changedBase = true;
|
|
66927
|
-
}
|
|
66928
|
-
rule.remove();
|
|
66929
|
-
changedCss = true;
|
|
66930
|
-
});
|
|
66931
|
-
if (!changedBase && !changedCss) return {
|
|
66932
|
-
baseCss,
|
|
66933
|
-
css,
|
|
66934
|
-
changed: false
|
|
66935
|
-
};
|
|
66936
|
-
removeEmptyAtRules(root);
|
|
66937
|
-
return {
|
|
66938
|
-
baseCss: changedBase ? baseRoot.toString() : baseCss,
|
|
66939
|
-
css: changedCss ? root.toString().trim() : css,
|
|
66940
|
-
changed: true
|
|
66941
|
-
};
|
|
66942
|
-
} catch {
|
|
66943
|
-
return {
|
|
66944
|
-
baseCss,
|
|
66945
|
-
css,
|
|
66946
|
-
changed: false
|
|
66947
|
-
};
|
|
66948
|
-
}
|
|
66949
|
-
}
|
|
66819
|
+
//#endregion
|
|
66820
|
+
//#region src/vite-css-rules/coverage.ts
|
|
66950
66821
|
function isCssRuleCoveredByDeclarations(rule, baseRuleDeclarationKeys) {
|
|
66951
66822
|
const key = getCssRuleStructuralKey(rule);
|
|
66952
66823
|
if (!key) return false;
|
|
@@ -67058,6 +66929,8 @@ function removeEmptyAtRules(root) {
|
|
|
67058
66929
|
if (atRule.nodes && atRule.nodes.every((node) => node.type === "comment")) atRule.remove();
|
|
67059
66930
|
});
|
|
67060
66931
|
}
|
|
66932
|
+
//#endregion
|
|
66933
|
+
//#region src/vite-css-rules/containment.ts
|
|
67061
66934
|
function filterExistingCssRules(baseCss, css) {
|
|
67062
66935
|
const baseRuleKeys = collectCssRuleContentKeys(baseCss);
|
|
67063
66936
|
if (baseRuleKeys.size === 0) return css;
|
|
@@ -67091,6 +66964,150 @@ function containsCssAfterMinify(baseCss, css) {
|
|
|
67091
66964
|
return ruleKeys.size > 0 && [...ruleKeys].every((key) => baseRuleKeys.has(key));
|
|
67092
66965
|
}
|
|
67093
66966
|
//#endregion
|
|
66967
|
+
//#region src/vite-css-rules/mini-program.ts
|
|
66968
|
+
function normalizeSimpleMiniProgramSelectorNode(node) {
|
|
66969
|
+
if (node.type === "tag") {
|
|
66970
|
+
const value = node.value.toLowerCase();
|
|
66971
|
+
if (value === "view" || value === "text" || value === "page" || value === "wx-root-portal-content") return value;
|
|
66972
|
+
return;
|
|
66973
|
+
}
|
|
66974
|
+
if (node.type === "class") return node.value.toLowerCase() === "tw-root" ? ".tw-root" : void 0;
|
|
66975
|
+
if (node.type === "pseudo") {
|
|
66976
|
+
if (node.nodes && node.nodes.length > 0) return;
|
|
66977
|
+
const value = node.value.toLowerCase();
|
|
66978
|
+
if (value === ":before" || value === "::before") return "::before";
|
|
66979
|
+
if (value === ":after" || value === "::after") return "::after";
|
|
66980
|
+
if (value === ":host") return ":host";
|
|
66981
|
+
}
|
|
66982
|
+
}
|
|
66983
|
+
function normalizeSimpleMiniProgramSelector(selector) {
|
|
66984
|
+
if (selector.nodes.length !== 1) return;
|
|
66985
|
+
return normalizeSimpleMiniProgramSelectorNode(selector.nodes[0]);
|
|
66986
|
+
}
|
|
66987
|
+
function collectMiniProgramSelectorSet(selector) {
|
|
66988
|
+
try {
|
|
66989
|
+
const selectorSet = /* @__PURE__ */ new Set();
|
|
66990
|
+
const ast = (0, import_dist$1.default)().astSync(selector);
|
|
66991
|
+
for (const child of ast.nodes) {
|
|
66992
|
+
const key = normalizeSimpleMiniProgramSelector(child);
|
|
66993
|
+
if (!key || selectorSet.has(key)) return;
|
|
66994
|
+
selectorSet.add(key);
|
|
66995
|
+
}
|
|
66996
|
+
return selectorSet;
|
|
66997
|
+
} catch {
|
|
66998
|
+
return;
|
|
66999
|
+
}
|
|
67000
|
+
}
|
|
67001
|
+
function isSameSelectorSet(actual, expected) {
|
|
67002
|
+
return actual?.size === expected.size && [...expected].every((key) => actual.has(key));
|
|
67003
|
+
}
|
|
67004
|
+
function getMiniProgramPreflightRuleStructuralKey(rule) {
|
|
67005
|
+
if (!isSameSelectorSet(collectMiniProgramSelectorSet(rule.selector), MINI_PROGRAM_PREFLIGHT_SELECTOR_KEYS)) return;
|
|
67006
|
+
return getCssRuleStructuralKeyWithSelectorKey(rule, MINI_PROGRAM_PREFLIGHT_SELECTOR_KEY);
|
|
67007
|
+
}
|
|
67008
|
+
function getMiniProgramThemeScopeRuleStructuralKey(rule) {
|
|
67009
|
+
if (!isSameSelectorSet(collectMiniProgramSelectorSet(rule.selector), MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEYS)) return;
|
|
67010
|
+
return getCssRuleStructuralKeyWithSelectorKey(rule, MINI_PROGRAM_THEME_SCOPE_SELECTOR_KEY);
|
|
67011
|
+
}
|
|
67012
|
+
function mergeMiniProgramPreflightRuleDeclarations(baseCss, css) {
|
|
67013
|
+
try {
|
|
67014
|
+
const baseRoot = postcss.default.parse(baseCss);
|
|
67015
|
+
const root = postcss.default.parse(css);
|
|
67016
|
+
const baseRuleRecords = collectCssRuleDeclarationRecords(baseRoot, getMiniProgramPreflightRuleStructuralKey);
|
|
67017
|
+
let changedBase = false;
|
|
67018
|
+
let changedCss = false;
|
|
67019
|
+
root.walkRules((rule) => {
|
|
67020
|
+
const key = getMiniProgramPreflightRuleStructuralKey(rule);
|
|
67021
|
+
if (!key) return;
|
|
67022
|
+
const records = baseRuleRecords.get(key);
|
|
67023
|
+
const targetRecord = records?.[0];
|
|
67024
|
+
if (!targetRecord) return;
|
|
67025
|
+
const existingProps = new Set(records.flatMap((record) => [...record.props]));
|
|
67026
|
+
for (const decl of collectCssRuleDeclarations(rule)) {
|
|
67027
|
+
const prop = decl.prop.trim();
|
|
67028
|
+
if (existingProps.has(prop)) continue;
|
|
67029
|
+
targetRecord.rule.append(decl.clone());
|
|
67030
|
+
targetRecord.keys.add(normalizeCssDeclarationKey(decl));
|
|
67031
|
+
targetRecord.props.add(prop);
|
|
67032
|
+
existingProps.add(prop);
|
|
67033
|
+
changedBase = true;
|
|
67034
|
+
}
|
|
67035
|
+
rule.remove();
|
|
67036
|
+
changedCss = true;
|
|
67037
|
+
});
|
|
67038
|
+
if (!changedBase && !changedCss) return {
|
|
67039
|
+
baseCss,
|
|
67040
|
+
css,
|
|
67041
|
+
changed: false
|
|
67042
|
+
};
|
|
67043
|
+
removeEmptyAtRules(root);
|
|
67044
|
+
return {
|
|
67045
|
+
baseCss: changedBase ? baseRoot.toString() : baseCss,
|
|
67046
|
+
css: changedCss ? root.toString().trim() : css,
|
|
67047
|
+
changed: true
|
|
67048
|
+
};
|
|
67049
|
+
} catch {
|
|
67050
|
+
return {
|
|
67051
|
+
baseCss,
|
|
67052
|
+
css,
|
|
67053
|
+
changed: false
|
|
67054
|
+
};
|
|
67055
|
+
}
|
|
67056
|
+
}
|
|
67057
|
+
function mergeMiniProgramThemeScopeRuleDeclarations(baseCss, css) {
|
|
67058
|
+
try {
|
|
67059
|
+
const baseRoot = postcss.default.parse(baseCss);
|
|
67060
|
+
const root = postcss.default.parse(css);
|
|
67061
|
+
const baseRuleRecords = collectCssRuleDeclarationRecords(baseRoot, getMiniProgramThemeScopeRuleStructuralKey);
|
|
67062
|
+
let changedBase = false;
|
|
67063
|
+
let changedCss = false;
|
|
67064
|
+
root.walkRules((rule) => {
|
|
67065
|
+
const key = getMiniProgramThemeScopeRuleStructuralKey(rule);
|
|
67066
|
+
if (!key) return;
|
|
67067
|
+
const records = baseRuleRecords.get(key);
|
|
67068
|
+
const targetRecord = records?.[0];
|
|
67069
|
+
if (!targetRecord) return;
|
|
67070
|
+
const incomingDeclarations = collectCssRuleDeclarations(rule);
|
|
67071
|
+
if (incomingDeclarations.length === 0) return;
|
|
67072
|
+
const existingKeys = new Set(records.flatMap((record) => [...record.keys]));
|
|
67073
|
+
const existingProps = new Set(records.flatMap((record) => [...record.props]));
|
|
67074
|
+
if (incomingDeclarations.some((decl) => {
|
|
67075
|
+
const prop = decl.prop.trim();
|
|
67076
|
+
return existingProps.has(prop) && !existingKeys.has(normalizeCssDeclarationKey(decl));
|
|
67077
|
+
})) return;
|
|
67078
|
+
for (const decl of incomingDeclarations) {
|
|
67079
|
+
const declarationKey = normalizeCssDeclarationKey(decl);
|
|
67080
|
+
if (existingKeys.has(declarationKey)) continue;
|
|
67081
|
+
targetRecord.rule.append(decl.clone());
|
|
67082
|
+
targetRecord.keys.add(declarationKey);
|
|
67083
|
+
targetRecord.props.add(decl.prop.trim());
|
|
67084
|
+
existingKeys.add(declarationKey);
|
|
67085
|
+
existingProps.add(decl.prop.trim());
|
|
67086
|
+
changedBase = true;
|
|
67087
|
+
}
|
|
67088
|
+
rule.remove();
|
|
67089
|
+
changedCss = true;
|
|
67090
|
+
});
|
|
67091
|
+
if (!changedBase && !changedCss) return {
|
|
67092
|
+
baseCss,
|
|
67093
|
+
css,
|
|
67094
|
+
changed: false
|
|
67095
|
+
};
|
|
67096
|
+
removeEmptyAtRules(root);
|
|
67097
|
+
return {
|
|
67098
|
+
baseCss: changedBase ? baseRoot.toString() : baseCss,
|
|
67099
|
+
css: changedCss ? root.toString().trim() : css,
|
|
67100
|
+
changed: true
|
|
67101
|
+
};
|
|
67102
|
+
} catch {
|
|
67103
|
+
return {
|
|
67104
|
+
baseCss,
|
|
67105
|
+
css,
|
|
67106
|
+
changed: false
|
|
67107
|
+
};
|
|
67108
|
+
}
|
|
67109
|
+
}
|
|
67110
|
+
//#endregion
|
|
67094
67111
|
exports.CSS_MACRO_POSTCSS_PLUGIN_NAME = require_postcss.CSS_MACRO_POSTCSS_PLUGIN_NAME;
|
|
67095
67112
|
exports.CSS_MACRO_STYLE_OPTIONS_MARKER = CSS_MACRO_STYLE_OPTIONS_MARKER;
|
|
67096
67113
|
exports.FULL_SOURCE_SCAN_EXTENSIONS = FULL_SOURCE_SCAN_EXTENSIONS;
|
|
@@ -67184,6 +67201,7 @@ exports.removeUnsupportedMiniProgramCssImportsRoot = removeUnsupportedMiniProgra
|
|
|
67184
67201
|
exports.removeUnsupportedMiniProgramPrefixedAtRule = removeUnsupportedMiniProgramPrefixedAtRule;
|
|
67185
67202
|
exports.resolveCssSourceEntries = resolveCssSourceEntries;
|
|
67186
67203
|
exports.resolveFilteredPostcssConfig = resolveFilteredPostcssConfig;
|
|
67204
|
+
exports.resolvePostcssConfig = resolvePostcssConfig;
|
|
67187
67205
|
exports.resolvePostcssFrameworkProfile = resolvePostcssFrameworkProfile;
|
|
67188
67206
|
exports.resolvePostcssFrameworkStrategy = resolvePostcssFrameworkStrategy;
|
|
67189
67207
|
exports.resolvePostcssStyleBranch = resolvePostcssStyleBranch;
|