bmdl-sdk 2.0.38 → 2.0.39
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/BUILD_ID +1 -1
- package/dist/build/chunks/[turbopack-node]_transforms_postcss_ts_0b7xl6g._.js +1 -1
- package/dist/build/chunks/{node_modules_20v-8wl._.js → node_modules_05oslht._.js} +1424 -1869
- package/dist/build/chunks/node_modules_05oslht._.js.map +47 -0
- package/dist/build-manifest.json +6 -6
- package/dist/cache/.tsbuildinfo +1 -1
- package/dist/diagnostics/route-bundle-stats.json +8 -8
- package/dist/fallback-build-manifest.json +3 -3
- package/dist/next-server.js.nft.json +1 -1
- package/dist/server/app/_global-error/page/build-manifest.json +3 -3
- package/dist/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/dist/server/app/_global-error.html +1 -1
- package/dist/server/app/_global-error.rsc +1 -1
- package/dist/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/server/app/_not-found/page/build-manifest.json +3 -3
- package/dist/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/server/app/_not-found.html +1 -1
- package/dist/server/app/_not-found.rsc +2 -2
- package/dist/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/dist/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/dist/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/server/app/api/component/route.js +1 -1
- package/dist/server/app/api/component/route.js.nft.json +1 -1
- package/dist/server/app/index.html +1 -1
- package/dist/server/app/index.rsc +3 -3
- package/dist/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/server/app/index.segments/_full.segment.rsc +3 -3
- package/dist/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/server/app/index.segments/_index.segment.rsc +2 -2
- package/dist/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/server/app/page/build-manifest.json +3 -3
- package/dist/server/app/page.js.nft.json +1 -1
- package/dist/server/app/page_client-reference-manifest.js +1 -1
- package/dist/server/chunks/[root-of-the-server]__1ewn43n._.js +11 -0
- package/dist/server/chunks/[root-of-the-server]__1ewn43n._.js.map +1 -0
- package/dist/server/chunks/ssr/{[root-of-the-server]__1vhgpuw._.js → [root-of-the-server]__1tcd_jn._.js} +2 -2
- package/dist/server/chunks/ssr/[root-of-the-server]__1tcd_jn._.js.map +1 -0
- package/dist/server/chunks/ssr/{[root-of-the-server]__1fno3kn._.js → [root-of-the-server]__1w1ep09._.js} +2 -2
- package/dist/server/chunks/ssr/[root-of-the-server]__1w1ep09._.js.map +1 -0
- package/dist/server/chunks/ssr/[root-of-the-server]__214wyau._.js +1 -1
- package/dist/server/chunks/ssr/[root-of-the-server]__214wyau._.js.map +1 -1
- package/dist/server/chunks/ssr/{node_modules_next_dist_18tu5cb._.js → node_modules_next_dist_1vgd_ru._.js} +2 -2
- package/dist/server/chunks/ssr/node_modules_next_dist_1vgd_ru._.js.map +1 -0
- package/dist/server/chunks/ssr/src_components_ComponentWidget_DynamicComponentLoader_tsx_08tgduo._.js +4 -4
- package/dist/server/chunks/ssr/src_components_ComponentWidget_DynamicComponentLoader_tsx_08tgduo._.js.map +1 -1
- package/dist/server/middleware-build-manifest.js +6 -6
- package/dist/server/pages/404.html +1 -1
- package/dist/server/pages/500.html +1 -1
- package/dist/standalone/dist/BUILD_ID +1 -1
- package/dist/standalone/dist/build-manifest.json +6 -6
- package/dist/standalone/dist/server/app/_global-error/page/build-manifest.json +3 -3
- package/dist/standalone/dist/server/app/_global-error/page.js.nft.json +1 -1
- package/dist/standalone/dist/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/dist/standalone/dist/server/app/_global-error.html +1 -1
- package/dist/standalone/dist/server/app/_global-error.rsc +1 -1
- package/dist/standalone/dist/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_not-found/page/build-manifest.json +3 -3
- package/dist/standalone/dist/server/app/_not-found/page.js.nft.json +1 -1
- package/dist/standalone/dist/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/dist/standalone/dist/server/app/_not-found.html +1 -1
- package/dist/standalone/dist/server/app/_not-found.rsc +2 -2
- package/dist/standalone/dist/server/app/_not-found.segments/_full.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_not-found.segments/_index.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/_not-found.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/api/component/route.js +1 -1
- package/dist/standalone/dist/server/app/api/component/route.js.nft.json +1 -1
- package/dist/standalone/dist/server/app/index.html +1 -1
- package/dist/standalone/dist/server/app/index.rsc +3 -3
- package/dist/standalone/dist/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/index.segments/_full.segment.rsc +3 -3
- package/dist/standalone/dist/server/app/index.segments/_head.segment.rsc +1 -1
- package/dist/standalone/dist/server/app/index.segments/_index.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/index.segments/_tree.segment.rsc +2 -2
- package/dist/standalone/dist/server/app/page/build-manifest.json +3 -3
- package/dist/standalone/dist/server/app/page.js.nft.json +1 -1
- package/dist/standalone/dist/server/app/page_client-reference-manifest.js +1 -1
- package/dist/standalone/dist/server/chunks/[root-of-the-server]__1ewn43n._.js +11 -0
- package/dist/standalone/dist/server/chunks/ssr/{[root-of-the-server]__1vhgpuw._.js → [root-of-the-server]__1tcd_jn._.js} +2 -2
- package/dist/standalone/dist/server/chunks/ssr/{[root-of-the-server]__1fno3kn._.js → [root-of-the-server]__1w1ep09._.js} +2 -2
- package/dist/standalone/dist/server/chunks/ssr/[root-of-the-server]__214wyau._.js +1 -1
- package/dist/standalone/dist/server/chunks/ssr/{node_modules_next_dist_18tu5cb._.js → node_modules_next_dist_1vgd_ru._.js} +2 -2
- package/dist/standalone/dist/server/chunks/ssr/src_components_ComponentWidget_DynamicComponentLoader_tsx_08tgduo._.js +4 -4
- package/dist/standalone/dist/server/middleware-build-manifest.js +6 -6
- package/dist/standalone/dist/server/pages/404.html +1 -1
- package/dist/standalone/dist/server/pages/500.html +1 -1
- package/dist/standalone/dist/static/chunks/0atut6a2uuyid.js +5 -0
- package/dist/standalone/dist/static/chunks/1jq4o6yq14o4c.js +31 -0
- package/dist/standalone/dist/static/chunks/2c5nzc2ljqups.css +3 -0
- package/dist/standalone/dist/static/chunks/2cwj6u4m-2xhv.js +4 -0
- package/dist/{static/chunks/turbopack-2d7f32bwbsmp8.js → standalone/dist/static/chunks/turbopack-38l7qwik-h828.js} +1 -1
- package/dist/standalone/node_modules/@swc/core/LICENSE +201 -0
- package/dist/standalone/node_modules/@swc/core/README.md +100 -0
- package/dist/standalone/node_modules/@swc/core/Visitor.js +1399 -0
- package/dist/standalone/node_modules/@swc/core/binding.js +368 -0
- package/dist/standalone/node_modules/@swc/core/index.js +466 -0
- package/dist/standalone/node_modules/@swc/core/package.json +119 -0
- package/dist/standalone/node_modules/@swc/core/postinstall.js +148 -0
- package/dist/standalone/node_modules/@swc/core/spack.js +87 -0
- package/dist/standalone/node_modules/@swc/core/util.js +103 -0
- package/dist/standalone/node_modules/@swc/core-win32-x64-msvc/package.json +43 -0
- package/dist/standalone/node_modules/@swc/core-win32-x64-msvc/swc.win32-x64-msvc.node +0 -0
- package/dist/standalone/package.json +8 -1
- package/dist/static/chunks/0atut6a2uuyid.js +5 -0
- package/dist/static/chunks/1jq4o6yq14o4c.js +31 -0
- package/dist/static/chunks/2c5nzc2ljqups.css +3 -0
- package/dist/static/chunks/2cwj6u4m-2xhv.js +4 -0
- package/dist/{standalone/dist/static/chunks/turbopack-2d7f32bwbsmp8.js → static/chunks/turbopack-38l7qwik-h828.js} +1 -1
- package/dist/trace +1 -1
- package/dist/trace-build +1 -1
- package/package.json +8 -1
- package/dist/build/chunks/node_modules_20v-8wl._.js.map +0 -47
- package/dist/server/chunks/[root-of-the-server]__0vtkqkv._.js +0 -11
- package/dist/server/chunks/[root-of-the-server]__0vtkqkv._.js.map +0 -1
- package/dist/server/chunks/ssr/[root-of-the-server]__1fno3kn._.js.map +0 -1
- package/dist/server/chunks/ssr/[root-of-the-server]__1vhgpuw._.js.map +0 -1
- package/dist/server/chunks/ssr/node_modules_next_dist_18tu5cb._.js.map +0 -1
- package/dist/standalone/dist/server/chunks/[root-of-the-server]__0vtkqkv._.js +0 -11
- package/dist/standalone/dist/static/chunks/0ie0zj6s4jns8.js +0 -5
- package/dist/standalone/dist/static/chunks/2dtn_q74gsp6j.js +0 -4
- package/dist/standalone/dist/static/chunks/2ovwin8y5r_vj.css +0 -3
- package/dist/standalone/dist/static/chunks/3l2cn98nr6ga3.js +0 -31
- package/dist/static/chunks/0ie0zj6s4jns8.js +0 -5
- package/dist/static/chunks/2dtn_q74gsp6j.js +0 -4
- package/dist/static/chunks/2ovwin8y5r_vj.css +0 -3
- package/dist/static/chunks/3l2cn98nr6ga3.js +0 -31
- /package/dist/standalone/dist/static/{oR7TBSd9X4EFoWdqrE3T7 → gwQzOw5VFPX9p238BrwNq}/_buildManifest.js +0 -0
- /package/dist/standalone/dist/static/{oR7TBSd9X4EFoWdqrE3T7 → gwQzOw5VFPX9p238BrwNq}/_clientMiddlewareManifest.js +0 -0
- /package/dist/standalone/dist/static/{oR7TBSd9X4EFoWdqrE3T7 → gwQzOw5VFPX9p238BrwNq}/_ssgManifest.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/classes/comparator.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/classes/range.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/classes/semver.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/cmp.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/coerce.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/compare.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/eq.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/gt.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/gte.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/lt.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/lte.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/neq.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/parse.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/functions/satisfies.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/constants.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/debug.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/identifiers.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/lrucache.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/parse-options.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/internal/re.js +0 -0
- /package/dist/standalone/node_modules/{sharp/node_modules/semver → semver}/package.json +0 -0
- /package/dist/static/{oR7TBSd9X4EFoWdqrE3T7 → gwQzOw5VFPX9p238BrwNq}/_buildManifest.js +0 -0
- /package/dist/static/{oR7TBSd9X4EFoWdqrE3T7 → gwQzOw5VFPX9p238BrwNq}/_clientMiddlewareManifest.js +0 -0
- /package/dist/static/{oR7TBSd9X4EFoWdqrE3T7 → gwQzOw5VFPX9p238BrwNq}/_ssgManifest.js +0 -0
|
@@ -95,13 +95,12 @@ const RE_HEX_ESCAPE = /[\da-f]/i;
|
|
|
95
95
|
module.exports = function tokenizer(input, options = {}) {
|
|
96
96
|
let css = input.css.valueOf();
|
|
97
97
|
let ignore = options.ignoreErrors;
|
|
98
|
-
let code,
|
|
99
|
-
let
|
|
98
|
+
let code, next, quote, content, escape;
|
|
99
|
+
let escaped, escapePos, prev, n, currentToken;
|
|
100
100
|
let length = css.length;
|
|
101
101
|
let pos = 0;
|
|
102
102
|
let buffer = [];
|
|
103
103
|
let returned = [];
|
|
104
|
-
let lastBadParen = -1;
|
|
105
104
|
function position() {
|
|
106
105
|
return pos;
|
|
107
106
|
}
|
|
@@ -181,17 +180,10 @@ module.exports = function tokenizer(input, options = {}) {
|
|
|
181
180
|
next
|
|
182
181
|
];
|
|
183
182
|
pos = next;
|
|
184
|
-
} else if (pos <= lastBadParen) {
|
|
185
|
-
currentToken = [
|
|
186
|
-
'(',
|
|
187
|
-
'(',
|
|
188
|
-
pos
|
|
189
|
-
];
|
|
190
183
|
} else {
|
|
191
184
|
next = css.indexOf(')', pos + 1);
|
|
192
185
|
content = css.slice(pos, next + 1);
|
|
193
186
|
if (next === -1 || RE_BAD_BRACKET.test(content)) {
|
|
194
|
-
lastBadParen = next === -1 ? length : next;
|
|
195
187
|
currentToken = [
|
|
196
188
|
'(',
|
|
197
189
|
'(',
|
|
@@ -447,37 +439,29 @@ class CssSyntaxError extends Error {
|
|
|
447
439
|
if (!this.source) return '';
|
|
448
440
|
let css = this.source;
|
|
449
441
|
if (color == null) color = pico.isColorSupported;
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
let highlight = (text)=>text;
|
|
453
|
-
if (color) {
|
|
454
|
-
let { bold, gray, red } = pico.createColors(true);
|
|
455
|
-
mark = (text)=>bold(red(text));
|
|
456
|
-
aside = (text)=>gray(text);
|
|
457
|
-
if (terminalHighlight) {
|
|
458
|
-
highlight = (text)=>terminalHighlight(text);
|
|
459
|
-
}
|
|
442
|
+
if (terminalHighlight) {
|
|
443
|
+
if (color) css = terminalHighlight(css);
|
|
460
444
|
}
|
|
461
445
|
let lines = css.split(/\r?\n/);
|
|
462
446
|
let start = Math.max(this.line - 3, 0);
|
|
463
447
|
let end = Math.min(this.line + 2, lines.length);
|
|
464
448
|
let maxWidth = String(end).length;
|
|
449
|
+
let mark, aside;
|
|
450
|
+
if (color) {
|
|
451
|
+
let { bold, gray, red } = pico.createColors(true);
|
|
452
|
+
mark = (text)=>bold(red(text));
|
|
453
|
+
aside = (text)=>gray(text);
|
|
454
|
+
} else {
|
|
455
|
+
mark = aside = (str)=>str;
|
|
456
|
+
}
|
|
465
457
|
return lines.slice(start, end).map((line, index)=>{
|
|
466
458
|
let number = start + 1 + index;
|
|
467
459
|
let gutter = ' ' + (' ' + number).slice(-maxWidth) + ' | ';
|
|
468
460
|
if (number === this.line) {
|
|
469
|
-
if (line.length > 160) {
|
|
470
|
-
let padding = 20;
|
|
471
|
-
let subLineStart = Math.max(0, this.column - padding);
|
|
472
|
-
let subLineEnd = Math.max(this.column + padding, this.endColumn + padding);
|
|
473
|
-
let subLine = line.slice(subLineStart, subLineEnd);
|
|
474
|
-
let spacing = aside(gutter.replace(/\d/g, ' ')) + line.slice(0, Math.min(this.column - 1, padding - 1)).replace(/[^\t]/g, ' ');
|
|
475
|
-
return mark('>') + aside(gutter) + highlight(subLine) + '\n ' + spacing + mark('^');
|
|
476
|
-
}
|
|
477
461
|
let spacing = aside(gutter.replace(/\d/g, ' ')) + line.slice(0, this.column - 1).replace(/[^\t]/g, ' ');
|
|
478
|
-
return mark('>') + aside(gutter) +
|
|
462
|
+
return mark('>') + aside(gutter) + line + '\n ' + spacing + mark('^');
|
|
479
463
|
}
|
|
480
|
-
return ' ' + aside(gutter) +
|
|
464
|
+
return ' ' + aside(gutter) + line;
|
|
481
465
|
}).join('\n');
|
|
482
466
|
}
|
|
483
467
|
toString() {
|
|
@@ -491,19 +475,15 @@ class CssSyntaxError extends Error {
|
|
|
491
475
|
module.exports = CssSyntaxError;
|
|
492
476
|
CssSyntaxError.default = CssSyntaxError;
|
|
493
477
|
}),
|
|
478
|
+
"[project]/node_modules/postcss/lib/symbols.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
479
|
+
"use strict";
|
|
480
|
+
|
|
481
|
+
module.exports.isClean = Symbol('isClean');
|
|
482
|
+
module.exports.my = Symbol('my');
|
|
483
|
+
}),
|
|
494
484
|
"[project]/node_modules/postcss/lib/stringifier.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
495
485
|
"use strict";
|
|
496
486
|
|
|
497
|
-
// Escapes sequences that could break out of an HTML <style> context.
|
|
498
|
-
// Uses CSS unicode escaping (\3c = '<') which is valid CSS and parsed
|
|
499
|
-
// correctly by all compliant CSS consumers.
|
|
500
|
-
const STYLE_TAG = /(<)(\/?style\b)/gi;
|
|
501
|
-
const COMMENT_OPEN = /(<)(!--)/g;
|
|
502
|
-
function escapeHTMLInCSS(str) {
|
|
503
|
-
if (typeof str !== 'string') return str;
|
|
504
|
-
if (!str.includes('<')) return str;
|
|
505
|
-
return str.replace(STYLE_TAG, '\\3c $2').replace(COMMENT_OPEN, '\\3c $2');
|
|
506
|
-
}
|
|
507
487
|
const DEFAULT_RAW = {
|
|
508
488
|
after: '\n',
|
|
509
489
|
beforeClose: '\n',
|
|
@@ -521,63 +501,23 @@ const DEFAULT_RAW = {
|
|
|
521
501
|
function capitalize(str) {
|
|
522
502
|
return str[0].toUpperCase() + str.slice(1);
|
|
523
503
|
}
|
|
524
|
-
function atruleStart(str, node) {
|
|
525
|
-
let name = '@' + node.name;
|
|
526
|
-
let params = node.params ? str.rawValue(node, 'params') : '';
|
|
527
|
-
if (typeof node.raws.afterName !== 'undefined') {
|
|
528
|
-
name += node.raws.afterName;
|
|
529
|
-
} else if (params) {
|
|
530
|
-
name += ' ';
|
|
531
|
-
}
|
|
532
|
-
return name + params;
|
|
533
|
-
}
|
|
534
|
-
function pushBody(str, stack, node) {
|
|
535
|
-
let nodes = node.nodes;
|
|
536
|
-
let last = nodes.length - 1;
|
|
537
|
-
while(last > 0){
|
|
538
|
-
if (nodes[last].type !== 'comment') break;
|
|
539
|
-
last -= 1;
|
|
540
|
-
}
|
|
541
|
-
let semicolon = str.raw(node, 'semicolon');
|
|
542
|
-
let isDocument = node.type === 'document';
|
|
543
|
-
for(let i = nodes.length - 1; i >= 0; i--){
|
|
544
|
-
stack.push({
|
|
545
|
-
document: isDocument,
|
|
546
|
-
node: nodes[i],
|
|
547
|
-
semicolon: last !== i || semicolon
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
function pushBlock(str, stack, node, start) {
|
|
552
|
-
let between = str.raw(node, 'between', 'beforeOpen');
|
|
553
|
-
str.builder(escapeHTMLInCSS(start + between) + '{', node, 'start');
|
|
554
|
-
let hasNodes = node.nodes && node.nodes.length;
|
|
555
|
-
let close = ()=>{
|
|
556
|
-
let after = hasNodes ? str.raw(node, 'after') : str.raw(node, 'after', 'emptyBody');
|
|
557
|
-
if (after) str.builder(escapeHTMLInCSS(after));
|
|
558
|
-
str.builder('}', node, 'end');
|
|
559
|
-
if (node.type === 'rule' && node.raws.ownSemicolon) {
|
|
560
|
-
str.builder(escapeHTMLInCSS(node.raws.ownSemicolon), node, 'end');
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
|
-
if (hasNodes) {
|
|
564
|
-
stack.push(close);
|
|
565
|
-
pushBody(str, stack, node);
|
|
566
|
-
} else {
|
|
567
|
-
close();
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
504
|
class Stringifier {
|
|
571
505
|
constructor(builder){
|
|
572
506
|
this.builder = builder;
|
|
573
507
|
}
|
|
574
508
|
atrule(node, semicolon) {
|
|
575
|
-
let
|
|
509
|
+
let name = '@' + node.name;
|
|
510
|
+
let params = node.params ? this.rawValue(node, 'params') : '';
|
|
511
|
+
if (typeof node.raws.afterName !== 'undefined') {
|
|
512
|
+
name += node.raws.afterName;
|
|
513
|
+
} else if (params) {
|
|
514
|
+
name += ' ';
|
|
515
|
+
}
|
|
576
516
|
if (node.nodes) {
|
|
577
|
-
this.block(node,
|
|
517
|
+
this.block(node, name + params);
|
|
578
518
|
} else {
|
|
579
519
|
let end = (node.raws.between || '') + (semicolon ? ';' : '');
|
|
580
|
-
this.builder(
|
|
520
|
+
this.builder(name + params + end, node);
|
|
581
521
|
}
|
|
582
522
|
}
|
|
583
523
|
beforeAfter(node, detect) {
|
|
@@ -607,7 +547,7 @@ class Stringifier {
|
|
|
607
547
|
}
|
|
608
548
|
block(node, start) {
|
|
609
549
|
let between = this.raw(node, 'between', 'beforeOpen');
|
|
610
|
-
this.builder(
|
|
550
|
+
this.builder(start + between + '{', node, 'start');
|
|
611
551
|
let after;
|
|
612
552
|
if (node.nodes && node.nodes.length) {
|
|
613
553
|
this.body(node);
|
|
@@ -615,58 +555,36 @@ class Stringifier {
|
|
|
615
555
|
} else {
|
|
616
556
|
after = this.raw(node, 'after', 'emptyBody');
|
|
617
557
|
}
|
|
618
|
-
if (after) this.builder(
|
|
558
|
+
if (after) this.builder(after);
|
|
619
559
|
this.builder('}', node, 'end');
|
|
620
560
|
}
|
|
621
561
|
body(node) {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
let
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
'body',
|
|
631
|
-
'rule',
|
|
632
|
-
'stringify'
|
|
633
|
-
].every((method)=>this[method] === proto[method]);
|
|
634
|
-
let stack = [];
|
|
635
|
-
pushBody(this, stack, node);
|
|
636
|
-
while(stack.length > 0){
|
|
637
|
-
let entry = stack.pop();
|
|
638
|
-
if (typeof entry === 'function') {
|
|
639
|
-
entry();
|
|
640
|
-
continue;
|
|
641
|
-
}
|
|
642
|
-
let child = entry.node;
|
|
562
|
+
let last = node.nodes.length - 1;
|
|
563
|
+
while(last > 0){
|
|
564
|
+
if (node.nodes[last].type !== 'comment') break;
|
|
565
|
+
last -= 1;
|
|
566
|
+
}
|
|
567
|
+
let semicolon = this.raw(node, 'semicolon');
|
|
568
|
+
for(let i = 0; i < node.nodes.length; i++){
|
|
569
|
+
let child = node.nodes[i];
|
|
643
570
|
let before = this.raw(child, 'before');
|
|
644
|
-
if (before)
|
|
645
|
-
|
|
646
|
-
}
|
|
647
|
-
if (expandable && child.type === 'rule') {
|
|
648
|
-
pushBlock(this, stack, child, this.rawValue(child, 'selector'));
|
|
649
|
-
} else if (expandable && child.type === 'atrule' && child.nodes) {
|
|
650
|
-
pushBlock(this, stack, child, atruleStart(this, child));
|
|
651
|
-
} else {
|
|
652
|
-
this.stringify(child, entry.semicolon);
|
|
653
|
-
}
|
|
571
|
+
if (before) this.builder(before);
|
|
572
|
+
this.stringify(child, last !== i || semicolon);
|
|
654
573
|
}
|
|
655
574
|
}
|
|
656
575
|
comment(node) {
|
|
657
576
|
let left = this.raw(node, 'left', 'commentLeft');
|
|
658
577
|
let right = this.raw(node, 'right', 'commentRight');
|
|
659
|
-
this.builder(
|
|
578
|
+
this.builder('/*' + left + node.text + right + '*/', node);
|
|
660
579
|
}
|
|
661
580
|
decl(node, semicolon) {
|
|
662
|
-
let raws = node.raws;
|
|
663
581
|
let between = this.raw(node, 'between', 'colon');
|
|
664
582
|
let string = node.prop + between + this.rawValue(node, 'value');
|
|
665
583
|
if (node.important) {
|
|
666
|
-
string += raws.important || ' !important';
|
|
584
|
+
string += node.raws.important || ' !important';
|
|
667
585
|
}
|
|
668
586
|
if (semicolon) string += ';';
|
|
669
|
-
this.builder(
|
|
587
|
+
this.builder(string, node);
|
|
670
588
|
}
|
|
671
589
|
document(node) {
|
|
672
590
|
this.body(node);
|
|
@@ -694,9 +612,9 @@ class Stringifier {
|
|
|
694
612
|
if (!parent) return DEFAULT_RAW[detect];
|
|
695
613
|
// Detect style by other nodes
|
|
696
614
|
let root = node.root();
|
|
697
|
-
|
|
698
|
-
if (typeof
|
|
699
|
-
return
|
|
615
|
+
if (!root.rawCache) root.rawCache = {};
|
|
616
|
+
if (typeof root.rawCache[detect] !== 'undefined') {
|
|
617
|
+
return root.rawCache[detect];
|
|
700
618
|
}
|
|
701
619
|
if (detect === 'before' || detect === 'after') {
|
|
702
620
|
return this.beforeAfter(node, detect);
|
|
@@ -712,7 +630,7 @@ class Stringifier {
|
|
|
712
630
|
}
|
|
713
631
|
}
|
|
714
632
|
if (typeof value === 'undefined') value = DEFAULT_RAW[detect];
|
|
715
|
-
|
|
633
|
+
root.rawCache[detect] = value;
|
|
716
634
|
return value;
|
|
717
635
|
}
|
|
718
636
|
rawBeforeClose(root) {
|
|
@@ -849,16 +767,12 @@ class Stringifier {
|
|
|
849
767
|
}
|
|
850
768
|
root(node) {
|
|
851
769
|
this.body(node);
|
|
852
|
-
if (node.raws.after)
|
|
853
|
-
let after = node.raws.after;
|
|
854
|
-
let isDocument = node.parent && node.parent.type === 'document';
|
|
855
|
-
this.builder(isDocument ? after : escapeHTMLInCSS(after));
|
|
856
|
-
}
|
|
770
|
+
if (node.raws.after) this.builder(node.raws.after);
|
|
857
771
|
}
|
|
858
772
|
rule(node) {
|
|
859
773
|
this.block(node, this.rawValue(node, 'selector'));
|
|
860
774
|
if (node.raws.ownSemicolon) {
|
|
861
|
-
this.builder(
|
|
775
|
+
this.builder(node.raws.ownSemicolon, node, 'end');
|
|
862
776
|
}
|
|
863
777
|
}
|
|
864
778
|
stringify(node, semicolon) {
|
|
@@ -882,110 +796,45 @@ function stringify(node, builder) {
|
|
|
882
796
|
module.exports = stringify;
|
|
883
797
|
stringify.default = stringify;
|
|
884
798
|
}),
|
|
885
|
-
"[project]/node_modules/postcss/lib/symbols.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
886
|
-
"use strict";
|
|
887
|
-
|
|
888
|
-
module.exports.isClean = Symbol('isClean');
|
|
889
|
-
module.exports.my = Symbol('my');
|
|
890
|
-
}),
|
|
891
799
|
"[project]/node_modules/postcss/lib/node.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
892
800
|
"use strict";
|
|
893
801
|
|
|
802
|
+
let { isClean, my } = __turbopack_context__.r("[project]/node_modules/postcss/lib/symbols.js [postcss] (ecmascript)");
|
|
894
803
|
let CssSyntaxError = __turbopack_context__.r("[project]/node_modules/postcss/lib/css-syntax-error.js [postcss] (ecmascript)");
|
|
895
804
|
let Stringifier = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringifier.js [postcss] (ecmascript)");
|
|
896
805
|
let stringify = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringify.js [postcss] (ecmascript)");
|
|
897
|
-
let { isClean, my } = __turbopack_context__.r("[project]/node_modules/postcss/lib/symbols.js [postcss] (ecmascript)");
|
|
898
806
|
function cloneNode(obj, parent) {
|
|
899
807
|
let cloned = new obj.constructor();
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
[
|
|
904
|
-
obj,
|
|
905
|
-
cloned,
|
|
906
|
-
parent
|
|
907
|
-
]
|
|
908
|
-
];
|
|
909
|
-
while(stack.length > 0){
|
|
910
|
-
let [source, target, targetParent] = stack.pop();
|
|
911
|
-
for(let i in source){
|
|
912
|
-
if (!Object.prototype.hasOwnProperty.call(source, i)) {
|
|
913
|
-
continue;
|
|
914
|
-
}
|
|
915
|
-
if (i === 'proxyCache') continue;
|
|
916
|
-
let value = source[i];
|
|
917
|
-
let type = typeof value;
|
|
918
|
-
if (i === 'parent' && type === 'object') {
|
|
919
|
-
if (targetParent) target[i] = targetParent;
|
|
920
|
-
} else if (i === 'source') {
|
|
921
|
-
target[i] = value;
|
|
922
|
-
} else if (Array.isArray(value)) {
|
|
923
|
-
let children = [];
|
|
924
|
-
target[i] = children;
|
|
925
|
-
for (let j of value){
|
|
926
|
-
let childClone = new j.constructor();
|
|
927
|
-
children.push(childClone);
|
|
928
|
-
stack.push([
|
|
929
|
-
j,
|
|
930
|
-
childClone,
|
|
931
|
-
target
|
|
932
|
-
]);
|
|
933
|
-
}
|
|
934
|
-
} else {
|
|
935
|
-
if (type === 'object' && value !== null) {
|
|
936
|
-
let valueClone = new value.constructor();
|
|
937
|
-
stack.push([
|
|
938
|
-
value,
|
|
939
|
-
valueClone,
|
|
940
|
-
undefined
|
|
941
|
-
]);
|
|
942
|
-
value = valueClone;
|
|
943
|
-
}
|
|
944
|
-
target[i] = value;
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
return cloned;
|
|
949
|
-
}
|
|
950
|
-
function sourceOffset(inputCSS, position) {
|
|
951
|
-
// Not all custom syntaxes support `offset` in `source.start` and `source.end`
|
|
952
|
-
if (position && typeof position.offset !== 'undefined') {
|
|
953
|
-
return position.offset;
|
|
954
|
-
}
|
|
955
|
-
let column = 1;
|
|
956
|
-
let line = 1;
|
|
957
|
-
let offset = 0;
|
|
958
|
-
for(let i = 0; i < inputCSS.length; i++){
|
|
959
|
-
if (line === position.line && column === position.column) {
|
|
960
|
-
offset = i;
|
|
961
|
-
break;
|
|
808
|
+
for(let i in obj){
|
|
809
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) {
|
|
810
|
+
continue;
|
|
962
811
|
}
|
|
963
|
-
if (
|
|
964
|
-
|
|
965
|
-
|
|
812
|
+
if (i === 'proxyCache') continue;
|
|
813
|
+
let value = obj[i];
|
|
814
|
+
let type = typeof value;
|
|
815
|
+
if (i === 'parent' && type === 'object') {
|
|
816
|
+
if (parent) cloned[i] = parent;
|
|
817
|
+
} else if (i === 'source') {
|
|
818
|
+
cloned[i] = value;
|
|
819
|
+
} else if (Array.isArray(value)) {
|
|
820
|
+
cloned[i] = value.map((j)=>cloneNode(j, cloned));
|
|
966
821
|
} else {
|
|
967
|
-
|
|
822
|
+
if (type === 'object' && value !== null) value = cloneNode(value);
|
|
823
|
+
cloned[i] = value;
|
|
968
824
|
}
|
|
969
825
|
}
|
|
970
|
-
return
|
|
826
|
+
return cloned;
|
|
971
827
|
}
|
|
972
828
|
class Node {
|
|
973
|
-
get proxyOf() {
|
|
974
|
-
return this;
|
|
975
|
-
}
|
|
976
829
|
constructor(defaults = {}){
|
|
977
830
|
this.raws = {};
|
|
978
831
|
this[isClean] = false;
|
|
979
832
|
this[my] = true;
|
|
980
|
-
for
|
|
981
|
-
if (name === '__proto__') continue;
|
|
833
|
+
for(let name in defaults){
|
|
982
834
|
if (name === 'nodes') {
|
|
983
835
|
this.nodes = [];
|
|
984
836
|
for (let node of defaults[name]){
|
|
985
|
-
|
|
986
|
-
// freshly created (parent-less) node adopts that instance instead of
|
|
987
|
-
// a copy and keeps the caller's reference usable. See #1987.
|
|
988
|
-
if (typeof node.clone === 'function' && node.parent) {
|
|
837
|
+
if (typeof node.clone === 'function') {
|
|
989
838
|
this.append(node.clone());
|
|
990
839
|
} else {
|
|
991
840
|
this.append(node);
|
|
@@ -1074,9 +923,6 @@ class Node {
|
|
|
1074
923
|
}
|
|
1075
924
|
};
|
|
1076
925
|
}
|
|
1077
|
-
/* c8 ignore next 3 */ markClean() {
|
|
1078
|
-
this[isClean] = true;
|
|
1079
|
-
}
|
|
1080
926
|
markDirty() {
|
|
1081
927
|
if (this[isClean]) {
|
|
1082
928
|
this[isClean] = false;
|
|
@@ -1091,30 +937,23 @@ class Node {
|
|
|
1091
937
|
let index = this.parent.index(this);
|
|
1092
938
|
return this.parent.nodes[index + 1];
|
|
1093
939
|
}
|
|
1094
|
-
positionBy(opts
|
|
1095
|
-
let
|
|
1096
|
-
let pos = {
|
|
1097
|
-
column: this.source.start.column,
|
|
1098
|
-
line: this.source.start.line,
|
|
1099
|
-
offset: sourceOffset(inputString, this.source.start)
|
|
1100
|
-
};
|
|
940
|
+
positionBy(opts, stringRepresentation) {
|
|
941
|
+
let pos = this.source.start;
|
|
1101
942
|
if (opts.index) {
|
|
1102
|
-
pos = this.positionInside(opts.index);
|
|
943
|
+
pos = this.positionInside(opts.index, stringRepresentation);
|
|
1103
944
|
} else if (opts.word) {
|
|
1104
|
-
|
|
945
|
+
stringRepresentation = this.toString();
|
|
1105
946
|
let index = stringRepresentation.indexOf(opts.word);
|
|
1106
|
-
if (index !== -1) pos = this.positionInside(index);
|
|
947
|
+
if (index !== -1) pos = this.positionInside(index, stringRepresentation);
|
|
1107
948
|
}
|
|
1108
949
|
return pos;
|
|
1109
950
|
}
|
|
1110
|
-
positionInside(index) {
|
|
951
|
+
positionInside(index, stringRepresentation) {
|
|
952
|
+
let string = stringRepresentation || this.toString();
|
|
1111
953
|
let column = this.source.start.column;
|
|
1112
954
|
let line = this.source.start.line;
|
|
1113
|
-
let
|
|
1114
|
-
|
|
1115
|
-
let end = offset + index;
|
|
1116
|
-
for(let i = offset; i < end; i++){
|
|
1117
|
-
if (inputString[i] === '\n') {
|
|
955
|
+
for(let i = 0; i < index; i++){
|
|
956
|
+
if (string[i] === '\n') {
|
|
1118
957
|
column = 1;
|
|
1119
958
|
line += 1;
|
|
1120
959
|
} else {
|
|
@@ -1123,8 +962,7 @@ class Node {
|
|
|
1123
962
|
}
|
|
1124
963
|
return {
|
|
1125
964
|
column,
|
|
1126
|
-
line
|
|
1127
|
-
offset: end
|
|
965
|
+
line
|
|
1128
966
|
};
|
|
1129
967
|
}
|
|
1130
968
|
prev() {
|
|
@@ -1132,58 +970,49 @@ class Node {
|
|
|
1132
970
|
let index = this.parent.index(this);
|
|
1133
971
|
return this.parent.nodes[index - 1];
|
|
1134
972
|
}
|
|
1135
|
-
rangeBy(opts
|
|
1136
|
-
let inputString = 'document' in this.source.input ? this.source.input.document : this.source.input.css;
|
|
973
|
+
rangeBy(opts) {
|
|
1137
974
|
let start = {
|
|
1138
975
|
column: this.source.start.column,
|
|
1139
|
-
line: this.source.start.line
|
|
1140
|
-
offset: sourceOffset(inputString, this.source.start)
|
|
976
|
+
line: this.source.start.line
|
|
1141
977
|
};
|
|
1142
978
|
let end = this.source.end ? {
|
|
1143
979
|
column: this.source.end.column + 1,
|
|
1144
|
-
line: this.source.end.line
|
|
1145
|
-
offset: typeof this.source.end.offset === 'number' ? this.source.end.offset : // the `sourceOffset(... , this.source.end)` returns an inclusive offset.
|
|
1146
|
-
// So, we add 1 to convert it to exclusive.
|
|
1147
|
-
sourceOffset(inputString, this.source.end) + 1
|
|
980
|
+
line: this.source.end.line
|
|
1148
981
|
} : {
|
|
1149
982
|
column: start.column + 1,
|
|
1150
|
-
line: start.line
|
|
1151
|
-
offset: start.offset + 1
|
|
983
|
+
line: start.line
|
|
1152
984
|
};
|
|
1153
985
|
if (opts.word) {
|
|
1154
|
-
let stringRepresentation =
|
|
986
|
+
let stringRepresentation = this.toString();
|
|
1155
987
|
let index = stringRepresentation.indexOf(opts.word);
|
|
1156
988
|
if (index !== -1) {
|
|
1157
|
-
start = this.positionInside(index);
|
|
1158
|
-
end = this.positionInside(index + opts.word.length);
|
|
989
|
+
start = this.positionInside(index, stringRepresentation);
|
|
990
|
+
end = this.positionInside(index + opts.word.length, stringRepresentation);
|
|
1159
991
|
}
|
|
1160
992
|
} else {
|
|
1161
993
|
if (opts.start) {
|
|
1162
994
|
start = {
|
|
1163
995
|
column: opts.start.column,
|
|
1164
|
-
line: opts.start.line
|
|
1165
|
-
offset: sourceOffset(inputString, opts.start)
|
|
996
|
+
line: opts.start.line
|
|
1166
997
|
};
|
|
1167
|
-
} else if (
|
|
998
|
+
} else if (opts.index) {
|
|
1168
999
|
start = this.positionInside(opts.index);
|
|
1169
1000
|
}
|
|
1170
1001
|
if (opts.end) {
|
|
1171
1002
|
end = {
|
|
1172
1003
|
column: opts.end.column,
|
|
1173
|
-
line: opts.end.line
|
|
1174
|
-
offset: sourceOffset(inputString, opts.end)
|
|
1004
|
+
line: opts.end.line
|
|
1175
1005
|
};
|
|
1176
|
-
} else if (
|
|
1006
|
+
} else if (opts.endIndex) {
|
|
1177
1007
|
end = this.positionInside(opts.endIndex);
|
|
1178
|
-
} else if (
|
|
1008
|
+
} else if (opts.index) {
|
|
1179
1009
|
end = this.positionInside(opts.index + 1);
|
|
1180
1010
|
}
|
|
1181
1011
|
}
|
|
1182
1012
|
if (end.line < start.line || end.line === start.line && end.column <= start.column) {
|
|
1183
1013
|
end = {
|
|
1184
1014
|
column: start.column + 1,
|
|
1185
|
-
line: start.line
|
|
1186
|
-
offset: start.offset + 1
|
|
1015
|
+
line: start.line
|
|
1187
1016
|
};
|
|
1188
1017
|
}
|
|
1189
1018
|
return {
|
|
@@ -1230,76 +1059,42 @@ class Node {
|
|
|
1230
1059
|
return result;
|
|
1231
1060
|
}
|
|
1232
1061
|
toJSON(_, inputs) {
|
|
1062
|
+
let fixed = {};
|
|
1233
1063
|
let emitInputs = inputs == null;
|
|
1234
1064
|
inputs = inputs || new Map();
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
for(let step = 0; step < queue.length; step++){
|
|
1247
|
-
let [node, holder, key] = queue[step];
|
|
1248
|
-
let fixed = {};
|
|
1249
|
-
holder[key] = fixed;
|
|
1250
|
-
for(let name in node){
|
|
1251
|
-
if (!Object.prototype.hasOwnProperty.call(node, name)) {
|
|
1252
|
-
continue;
|
|
1253
|
-
}
|
|
1254
|
-
if (name === 'parent' || name === 'proxyCache') continue;
|
|
1255
|
-
let value = node[name];
|
|
1256
|
-
if (Array.isArray(value)) {
|
|
1257
|
-
let fixedArray = [];
|
|
1258
|
-
fixed[name] = fixedArray;
|
|
1259
|
-
for(let i = 0; i < value.length; i++){
|
|
1260
|
-
let item = value[i];
|
|
1261
|
-
if (typeof item === 'object' && item.toJSON) {
|
|
1262
|
-
if (item.toJSON === Node.prototype.toJSON) {
|
|
1263
|
-
queue.push([
|
|
1264
|
-
item,
|
|
1265
|
-
fixedArray,
|
|
1266
|
-
i
|
|
1267
|
-
]);
|
|
1268
|
-
} else {
|
|
1269
|
-
fixedArray[i] = item.toJSON(null, inputs);
|
|
1270
|
-
}
|
|
1271
|
-
} else {
|
|
1272
|
-
fixedArray[i] = item;
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
} else if (typeof value === 'object' && value.toJSON) {
|
|
1276
|
-
if (value.toJSON === Node.prototype.toJSON) {
|
|
1277
|
-
queue.push([
|
|
1278
|
-
value,
|
|
1279
|
-
fixed,
|
|
1280
|
-
name
|
|
1281
|
-
]);
|
|
1065
|
+
let inputsNextIndex = 0;
|
|
1066
|
+
for(let name in this){
|
|
1067
|
+
if (!Object.prototype.hasOwnProperty.call(this, name)) {
|
|
1068
|
+
continue;
|
|
1069
|
+
}
|
|
1070
|
+
if (name === 'parent' || name === 'proxyCache') continue;
|
|
1071
|
+
let value = this[name];
|
|
1072
|
+
if (Array.isArray(value)) {
|
|
1073
|
+
fixed[name] = value.map((i)=>{
|
|
1074
|
+
if (typeof i === 'object' && i.toJSON) {
|
|
1075
|
+
return i.toJSON(null, inputs);
|
|
1282
1076
|
} else {
|
|
1283
|
-
|
|
1284
|
-
}
|
|
1285
|
-
} else if (name === 'source') {
|
|
1286
|
-
if (value == null) continue;
|
|
1287
|
-
let inputId = inputs.get(value.input);
|
|
1288
|
-
if (inputId == null) {
|
|
1289
|
-
inputId = inputs.size;
|
|
1290
|
-
inputs.set(value.input, inputId);
|
|
1077
|
+
return i;
|
|
1291
1078
|
}
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1079
|
+
});
|
|
1080
|
+
} else if (typeof value === 'object' && value.toJSON) {
|
|
1081
|
+
fixed[name] = value.toJSON(null, inputs);
|
|
1082
|
+
} else if (name === 'source') {
|
|
1083
|
+
let inputId = inputs.get(value.input);
|
|
1084
|
+
if (inputId == null) {
|
|
1085
|
+
inputId = inputsNextIndex;
|
|
1086
|
+
inputs.set(value.input, inputsNextIndex);
|
|
1087
|
+
inputsNextIndex++;
|
|
1299
1088
|
}
|
|
1089
|
+
fixed[name] = {
|
|
1090
|
+
end: value.end,
|
|
1091
|
+
inputId,
|
|
1092
|
+
start: value.start
|
|
1093
|
+
};
|
|
1094
|
+
} else {
|
|
1095
|
+
fixed[name] = value;
|
|
1300
1096
|
}
|
|
1301
1097
|
}
|
|
1302
|
-
let fixed = holderOfRoot[0];
|
|
1303
1098
|
if (emitInputs) {
|
|
1304
1099
|
fixed.inputs = [
|
|
1305
1100
|
...inputs.keys()
|
|
@@ -1321,38 +1116,25 @@ class Node {
|
|
|
1321
1116
|
});
|
|
1322
1117
|
return result;
|
|
1323
1118
|
}
|
|
1324
|
-
warn(result, text, opts
|
|
1119
|
+
warn(result, text, opts) {
|
|
1325
1120
|
let data = {
|
|
1326
1121
|
node: this
|
|
1327
1122
|
};
|
|
1328
1123
|
for(let i in opts)data[i] = opts[i];
|
|
1329
1124
|
return result.warn(text, data);
|
|
1330
1125
|
}
|
|
1126
|
+
get proxyOf() {
|
|
1127
|
+
return this;
|
|
1128
|
+
}
|
|
1331
1129
|
}
|
|
1332
1130
|
module.exports = Node;
|
|
1333
1131
|
Node.default = Node;
|
|
1334
1132
|
}),
|
|
1335
|
-
"[project]/node_modules/postcss/lib/comment.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
1336
|
-
"use strict";
|
|
1337
|
-
|
|
1338
|
-
let Node = __turbopack_context__.r("[project]/node_modules/postcss/lib/node.js [postcss] (ecmascript)");
|
|
1339
|
-
class Comment extends Node {
|
|
1340
|
-
constructor(defaults){
|
|
1341
|
-
super(defaults);
|
|
1342
|
-
this.type = 'comment';
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
module.exports = Comment;
|
|
1346
|
-
Comment.default = Comment;
|
|
1347
|
-
}),
|
|
1348
1133
|
"[project]/node_modules/postcss/lib/declaration.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
1349
1134
|
"use strict";
|
|
1350
1135
|
|
|
1351
1136
|
let Node = __turbopack_context__.r("[project]/node_modules/postcss/lib/node.js [postcss] (ecmascript)");
|
|
1352
1137
|
class Declaration extends Node {
|
|
1353
|
-
get variable() {
|
|
1354
|
-
return this.prop.startsWith('--') || this.prop[0] === '$';
|
|
1355
|
-
}
|
|
1356
1138
|
constructor(defaults){
|
|
1357
1139
|
if (defaults && typeof defaults.value !== 'undefined' && typeof defaults.value !== 'string') {
|
|
1358
1140
|
defaults = {
|
|
@@ -1363,574 +1145,61 @@ class Declaration extends Node {
|
|
|
1363
1145
|
super(defaults);
|
|
1364
1146
|
this.type = 'decl';
|
|
1365
1147
|
}
|
|
1148
|
+
get variable() {
|
|
1149
|
+
return this.prop.startsWith('--') || this.prop[0] === '$';
|
|
1150
|
+
}
|
|
1366
1151
|
}
|
|
1367
1152
|
module.exports = Declaration;
|
|
1368
1153
|
Declaration.default = Declaration;
|
|
1369
1154
|
}),
|
|
1370
|
-
"[project]/node_modules/
|
|
1371
|
-
"use strict";
|
|
1155
|
+
"[project]/node_modules/source-map-js/lib/base64.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
1372
1156
|
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
if (node.nodes) {
|
|
1384
|
-
node.nodes = node.nodes.slice();
|
|
1385
|
-
for (let i of node.nodes)stack.push(i);
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
return nodes.slice();
|
|
1389
|
-
}
|
|
1390
|
-
function markTreeDirty(node) {
|
|
1391
|
-
let stack = [
|
|
1392
|
-
node
|
|
1393
|
-
];
|
|
1394
|
-
while(stack.length > 0){
|
|
1395
|
-
let next = stack.pop();
|
|
1396
|
-
next[isClean] = false;
|
|
1397
|
-
if (next.proxyOf.nodes) {
|
|
1398
|
-
for (let i of next.proxyOf.nodes)stack.push(i);
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
class Container extends Node {
|
|
1403
|
-
get first() {
|
|
1404
|
-
if (!this.proxyOf.nodes) return undefined;
|
|
1405
|
-
return this.proxyOf.nodes[0];
|
|
1406
|
-
}
|
|
1407
|
-
get last() {
|
|
1408
|
-
if (!this.proxyOf.nodes) return undefined;
|
|
1409
|
-
return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
|
|
1410
|
-
}
|
|
1411
|
-
append(...children) {
|
|
1412
|
-
for (let child of children){
|
|
1413
|
-
let nodes = this.normalize(child, this.last);
|
|
1414
|
-
for (let node of nodes)this.proxyOf.nodes.push(node);
|
|
1415
|
-
}
|
|
1416
|
-
this.markDirty();
|
|
1417
|
-
return this;
|
|
1418
|
-
}
|
|
1419
|
-
cleanRaws(keepBetween) {
|
|
1420
|
-
let stack = [
|
|
1421
|
-
this
|
|
1422
|
-
];
|
|
1423
|
-
while(stack.length > 0){
|
|
1424
|
-
let node = stack.pop();
|
|
1425
|
-
if (node !== this && node.cleanRaws !== Container.prototype.cleanRaws) {
|
|
1426
|
-
// Subclass with own logic; let it handle its subtree
|
|
1427
|
-
node.cleanRaws(keepBetween);
|
|
1428
|
-
continue;
|
|
1429
|
-
}
|
|
1430
|
-
Node.prototype.cleanRaws.call(node, keepBetween);
|
|
1431
|
-
if (node.nodes) {
|
|
1432
|
-
for (let child of node.nodes)stack.push(child);
|
|
1433
|
-
}
|
|
1434
|
-
}
|
|
1157
|
+
/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
1158
|
+
* Copyright 2011 Mozilla Foundation and contributors
|
|
1159
|
+
* Licensed under the New BSD license. See LICENSE or:
|
|
1160
|
+
* http://opensource.org/licenses/BSD-3-Clause
|
|
1161
|
+
*/ var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
|
|
1162
|
+
/**
|
|
1163
|
+
* Encode an integer in the range of 0 to 63 to a single base 64 digit.
|
|
1164
|
+
*/ exports.encode = function(number) {
|
|
1165
|
+
if (0 <= number && number < intToCharMap.length) {
|
|
1166
|
+
return intToCharMap[number];
|
|
1435
1167
|
}
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1168
|
+
throw new TypeError("Must be between 0 and 63: " + number);
|
|
1169
|
+
};
|
|
1170
|
+
/**
|
|
1171
|
+
* Decode a single base 64 character code digit to an integer. Returns -1 on
|
|
1172
|
+
* failure.
|
|
1173
|
+
*/ exports.decode = function(charCode) {
|
|
1174
|
+
var bigA = 65; // 'A'
|
|
1175
|
+
var bigZ = 90; // 'Z'
|
|
1176
|
+
var littleA = 97; // 'a'
|
|
1177
|
+
var littleZ = 122; // 'z'
|
|
1178
|
+
var zero = 48; // '0'
|
|
1179
|
+
var nine = 57; // '9'
|
|
1180
|
+
var plus = 43; // '+'
|
|
1181
|
+
var slash = 47; // '/'
|
|
1182
|
+
var littleOffset = 26;
|
|
1183
|
+
var numberOffset = 52;
|
|
1184
|
+
// 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
|
1185
|
+
if (bigA <= charCode && charCode <= bigZ) {
|
|
1186
|
+
return charCode - bigA;
|
|
1448
1187
|
}
|
|
1449
|
-
|
|
1450
|
-
|
|
1188
|
+
// 26 - 51: abcdefghijklmnopqrstuvwxyz
|
|
1189
|
+
if (littleA <= charCode && charCode <= littleZ) {
|
|
1190
|
+
return charCode - littleA + littleOffset;
|
|
1451
1191
|
}
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
this.lastEach += 1;
|
|
1456
|
-
let iterator = this.lastEach;
|
|
1457
|
-
this.indexes[iterator] = 0;
|
|
1458
|
-
return iterator;
|
|
1192
|
+
// 52 - 61: 0123456789
|
|
1193
|
+
if (zero <= charCode && charCode <= nine) {
|
|
1194
|
+
return charCode - zero + numberOffset;
|
|
1459
1195
|
}
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
if (prop === 'proxyOf') {
|
|
1464
|
-
return node;
|
|
1465
|
-
} else if (!node[prop]) {
|
|
1466
|
-
return node[prop];
|
|
1467
|
-
} else if (prop === 'each' || typeof prop === 'string' && prop.startsWith('walk')) {
|
|
1468
|
-
return (...args)=>{
|
|
1469
|
-
return node[prop](...args.map((i)=>{
|
|
1470
|
-
if (typeof i === 'function') {
|
|
1471
|
-
return (child, index)=>i(child.toProxy(), index);
|
|
1472
|
-
} else {
|
|
1473
|
-
return i;
|
|
1474
|
-
}
|
|
1475
|
-
}));
|
|
1476
|
-
};
|
|
1477
|
-
} else if (prop === 'every' || prop === 'some') {
|
|
1478
|
-
return (cb)=>{
|
|
1479
|
-
return node[prop]((child, ...other)=>cb(child.toProxy(), ...other));
|
|
1480
|
-
};
|
|
1481
|
-
} else if (prop === 'root') {
|
|
1482
|
-
return ()=>node.root().toProxy();
|
|
1483
|
-
} else if (prop === 'nodes') {
|
|
1484
|
-
return node.nodes.map((i)=>i.toProxy());
|
|
1485
|
-
} else if (prop === 'first' || prop === 'last') {
|
|
1486
|
-
return node[prop].toProxy();
|
|
1487
|
-
} else {
|
|
1488
|
-
return node[prop];
|
|
1489
|
-
}
|
|
1490
|
-
},
|
|
1491
|
-
set (node, prop, value) {
|
|
1492
|
-
if (node[prop] === value) return true;
|
|
1493
|
-
node[prop] = value;
|
|
1494
|
-
if (prop === 'name' || prop === 'params' || prop === 'selector') {
|
|
1495
|
-
node.markDirty();
|
|
1496
|
-
}
|
|
1497
|
-
return true;
|
|
1498
|
-
}
|
|
1499
|
-
};
|
|
1196
|
+
// 62: +
|
|
1197
|
+
if (charCode == plus) {
|
|
1198
|
+
return 62;
|
|
1500
1199
|
}
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
return this.proxyOf.nodes.indexOf(child);
|
|
1505
|
-
}
|
|
1506
|
-
insertAfter(exist, add) {
|
|
1507
|
-
let existIndex = this.index(exist);
|
|
1508
|
-
let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse();
|
|
1509
|
-
existIndex = this.index(exist);
|
|
1510
|
-
for (let node of nodes)this.proxyOf.nodes.splice(existIndex + 1, 0, node);
|
|
1511
|
-
let index;
|
|
1512
|
-
for(let id in this.indexes){
|
|
1513
|
-
index = this.indexes[id];
|
|
1514
|
-
if (existIndex < index) {
|
|
1515
|
-
this.indexes[id] = index + nodes.length;
|
|
1516
|
-
}
|
|
1517
|
-
}
|
|
1518
|
-
this.markDirty();
|
|
1519
|
-
return this;
|
|
1520
|
-
}
|
|
1521
|
-
insertBefore(exist, add) {
|
|
1522
|
-
let existIndex = this.index(exist);
|
|
1523
|
-
let type = existIndex === 0 ? 'prepend' : false;
|
|
1524
|
-
let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse();
|
|
1525
|
-
existIndex = this.index(exist);
|
|
1526
|
-
for (let node of nodes)this.proxyOf.nodes.splice(existIndex, 0, node);
|
|
1527
|
-
let index;
|
|
1528
|
-
for(let id in this.indexes){
|
|
1529
|
-
index = this.indexes[id];
|
|
1530
|
-
if (existIndex <= index) {
|
|
1531
|
-
this.indexes[id] = index + nodes.length;
|
|
1532
|
-
}
|
|
1533
|
-
}
|
|
1534
|
-
this.markDirty();
|
|
1535
|
-
return this;
|
|
1536
|
-
}
|
|
1537
|
-
normalize(nodes, sample) {
|
|
1538
|
-
if (typeof nodes === 'string') {
|
|
1539
|
-
nodes = cleanSource(parse(nodes).nodes);
|
|
1540
|
-
} else if (typeof nodes === 'undefined') {
|
|
1541
|
-
nodes = [];
|
|
1542
|
-
} else if (Array.isArray(nodes)) {
|
|
1543
|
-
nodes = nodes.slice(0);
|
|
1544
|
-
for (let i of nodes){
|
|
1545
|
-
if (i.parent) i.parent.removeChild(i, 'ignore');
|
|
1546
|
-
}
|
|
1547
|
-
} else if (nodes.type === 'root' && this.type !== 'document') {
|
|
1548
|
-
nodes = nodes.nodes.slice(0);
|
|
1549
|
-
for (let i of nodes){
|
|
1550
|
-
if (i.parent) i.parent.removeChild(i, 'ignore');
|
|
1551
|
-
}
|
|
1552
|
-
} else if (nodes.type) {
|
|
1553
|
-
nodes = [
|
|
1554
|
-
nodes
|
|
1555
|
-
];
|
|
1556
|
-
} else if (nodes.prop) {
|
|
1557
|
-
if (typeof nodes.value === 'undefined') {
|
|
1558
|
-
throw new Error('Value field is missed in node creation');
|
|
1559
|
-
} else if (typeof nodes.value !== 'string') {
|
|
1560
|
-
nodes.value = String(nodes.value);
|
|
1561
|
-
}
|
|
1562
|
-
nodes = [
|
|
1563
|
-
new Declaration(nodes)
|
|
1564
|
-
];
|
|
1565
|
-
} else if (nodes.selector || nodes.selectors) {
|
|
1566
|
-
nodes = [
|
|
1567
|
-
new Rule(nodes)
|
|
1568
|
-
];
|
|
1569
|
-
} else if (nodes.name) {
|
|
1570
|
-
nodes = [
|
|
1571
|
-
new AtRule(nodes)
|
|
1572
|
-
];
|
|
1573
|
-
} else if (nodes.text) {
|
|
1574
|
-
nodes = [
|
|
1575
|
-
new Comment(nodes)
|
|
1576
|
-
];
|
|
1577
|
-
} else {
|
|
1578
|
-
throw new Error('Unknown node type in node creation');
|
|
1579
|
-
}
|
|
1580
|
-
let processed = nodes.map((i)=>{
|
|
1581
|
-
/* c8 ignore next */ if (!i[my]) Container.rebuild(i);
|
|
1582
|
-
i = i.proxyOf;
|
|
1583
|
-
if (i.parent) i.parent.removeChild(i);
|
|
1584
|
-
if (i[isClean]) markTreeDirty(i);
|
|
1585
|
-
if (!i.raws) i.raws = {};
|
|
1586
|
-
if (typeof i.raws.before === 'undefined') {
|
|
1587
|
-
if (sample && typeof sample.raws.before !== 'undefined') {
|
|
1588
|
-
i.raws.before = sample.raws.before.replace(/\S/g, '');
|
|
1589
|
-
}
|
|
1590
|
-
}
|
|
1591
|
-
i.parent = this.proxyOf;
|
|
1592
|
-
return i;
|
|
1593
|
-
});
|
|
1594
|
-
return processed;
|
|
1595
|
-
}
|
|
1596
|
-
prepend(...children) {
|
|
1597
|
-
children = children.reverse();
|
|
1598
|
-
for (let child of children){
|
|
1599
|
-
let nodes = this.normalize(child, this.first, 'prepend').reverse();
|
|
1600
|
-
for (let node of nodes)this.proxyOf.nodes.unshift(node);
|
|
1601
|
-
for(let id in this.indexes){
|
|
1602
|
-
this.indexes[id] = this.indexes[id] + nodes.length;
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
this.markDirty();
|
|
1606
|
-
return this;
|
|
1607
|
-
}
|
|
1608
|
-
push(child) {
|
|
1609
|
-
child.parent = this;
|
|
1610
|
-
this.proxyOf.nodes.push(child);
|
|
1611
|
-
return this;
|
|
1612
|
-
}
|
|
1613
|
-
removeAll() {
|
|
1614
|
-
for (let node of this.proxyOf.nodes)node.parent = undefined;
|
|
1615
|
-
this.proxyOf.nodes = [];
|
|
1616
|
-
this.markDirty();
|
|
1617
|
-
return this;
|
|
1618
|
-
}
|
|
1619
|
-
removeChild(child) {
|
|
1620
|
-
child = this.index(child);
|
|
1621
|
-
this.proxyOf.nodes[child].parent = undefined;
|
|
1622
|
-
this.proxyOf.nodes.splice(child, 1);
|
|
1623
|
-
let index;
|
|
1624
|
-
for(let id in this.indexes){
|
|
1625
|
-
index = this.indexes[id];
|
|
1626
|
-
if (index >= child) {
|
|
1627
|
-
this.indexes[id] = index - 1;
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
this.markDirty();
|
|
1631
|
-
return this;
|
|
1632
|
-
}
|
|
1633
|
-
replaceValues(pattern, opts, callback) {
|
|
1634
|
-
if (!callback) {
|
|
1635
|
-
callback = opts;
|
|
1636
|
-
opts = {};
|
|
1637
|
-
}
|
|
1638
|
-
this.walkDecls((decl)=>{
|
|
1639
|
-
if (opts.props && !opts.props.includes(decl.prop)) return;
|
|
1640
|
-
if (opts.fast && !decl.value.includes(opts.fast)) return;
|
|
1641
|
-
decl.value = decl.value.replace(pattern, callback);
|
|
1642
|
-
});
|
|
1643
|
-
this.markDirty();
|
|
1644
|
-
return this;
|
|
1645
|
-
}
|
|
1646
|
-
some(condition) {
|
|
1647
|
-
return this.nodes.some(condition);
|
|
1648
|
-
}
|
|
1649
|
-
walk(callback) {
|
|
1650
|
-
if (!this.proxyOf.nodes) return undefined;
|
|
1651
|
-
// An explicit stack instead of recursive `each()` calls to survive
|
|
1652
|
-
// deeply nested trees. Each frame keeps a live `indexes` slot, so
|
|
1653
|
-
// insertion and removal during the walk behave like `each()`: the
|
|
1654
|
-
// slot stays at the current child until its subtree is finished.
|
|
1655
|
-
let stack = [
|
|
1656
|
-
{
|
|
1657
|
-
iterator: this.getIterator(),
|
|
1658
|
-
node: this.proxyOf
|
|
1659
|
-
}
|
|
1660
|
-
];
|
|
1661
|
-
while(stack.length > 0){
|
|
1662
|
-
let { iterator, node } = stack[stack.length - 1];
|
|
1663
|
-
let index = node.indexes[iterator];
|
|
1664
|
-
if (index >= node.proxyOf.nodes.length) {
|
|
1665
|
-
delete node.indexes[iterator];
|
|
1666
|
-
stack.pop();
|
|
1667
|
-
let parent = stack[stack.length - 1];
|
|
1668
|
-
// Finish the parent’s step for the child subtree we just left
|
|
1669
|
-
if (parent) parent.node.indexes[parent.iterator] += 1;
|
|
1670
|
-
continue;
|
|
1671
|
-
}
|
|
1672
|
-
let child = node.proxyOf.nodes[index];
|
|
1673
|
-
let result;
|
|
1674
|
-
try {
|
|
1675
|
-
result = callback(child, index);
|
|
1676
|
-
} catch (e) {
|
|
1677
|
-
throw child.addToError(e);
|
|
1678
|
-
}
|
|
1679
|
-
if (result === false) {
|
|
1680
|
-
for (let opened of stack){
|
|
1681
|
-
delete opened.node.indexes[opened.iterator];
|
|
1682
|
-
}
|
|
1683
|
-
return false;
|
|
1684
|
-
}
|
|
1685
|
-
if (child.walk && child.proxyOf.nodes) {
|
|
1686
|
-
stack.push({
|
|
1687
|
-
iterator: child.getIterator(),
|
|
1688
|
-
node: child
|
|
1689
|
-
});
|
|
1690
|
-
} else {
|
|
1691
|
-
node.indexes[iterator] += 1;
|
|
1692
|
-
}
|
|
1693
|
-
}
|
|
1694
|
-
return undefined;
|
|
1695
|
-
}
|
|
1696
|
-
walkAtRules(name, callback) {
|
|
1697
|
-
if (!callback) {
|
|
1698
|
-
callback = name;
|
|
1699
|
-
return this.walk((child, i)=>{
|
|
1700
|
-
if (child.type === 'atrule') {
|
|
1701
|
-
return callback(child, i);
|
|
1702
|
-
}
|
|
1703
|
-
});
|
|
1704
|
-
}
|
|
1705
|
-
if (name instanceof RegExp) {
|
|
1706
|
-
return this.walk((child, i)=>{
|
|
1707
|
-
if (child.type === 'atrule' && name.test(child.name)) {
|
|
1708
|
-
return callback(child, i);
|
|
1709
|
-
}
|
|
1710
|
-
});
|
|
1711
|
-
}
|
|
1712
|
-
return this.walk((child, i)=>{
|
|
1713
|
-
if (child.type === 'atrule' && child.name === name) {
|
|
1714
|
-
return callback(child, i);
|
|
1715
|
-
}
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
walkComments(callback) {
|
|
1719
|
-
return this.walk((child, i)=>{
|
|
1720
|
-
if (child.type === 'comment') {
|
|
1721
|
-
return callback(child, i);
|
|
1722
|
-
}
|
|
1723
|
-
});
|
|
1724
|
-
}
|
|
1725
|
-
walkDecls(prop, callback) {
|
|
1726
|
-
if (!callback) {
|
|
1727
|
-
callback = prop;
|
|
1728
|
-
return this.walk((child, i)=>{
|
|
1729
|
-
if (child.type === 'decl') {
|
|
1730
|
-
return callback(child, i);
|
|
1731
|
-
}
|
|
1732
|
-
});
|
|
1733
|
-
}
|
|
1734
|
-
if (prop instanceof RegExp) {
|
|
1735
|
-
return this.walk((child, i)=>{
|
|
1736
|
-
if (child.type === 'decl' && prop.test(child.prop)) {
|
|
1737
|
-
return callback(child, i);
|
|
1738
|
-
}
|
|
1739
|
-
});
|
|
1740
|
-
}
|
|
1741
|
-
return this.walk((child, i)=>{
|
|
1742
|
-
if (child.type === 'decl' && child.prop === prop) {
|
|
1743
|
-
return callback(child, i);
|
|
1744
|
-
}
|
|
1745
|
-
});
|
|
1746
|
-
}
|
|
1747
|
-
walkRules(selector, callback) {
|
|
1748
|
-
if (!callback) {
|
|
1749
|
-
callback = selector;
|
|
1750
|
-
return this.walk((child, i)=>{
|
|
1751
|
-
if (child.type === 'rule') {
|
|
1752
|
-
return callback(child, i);
|
|
1753
|
-
}
|
|
1754
|
-
});
|
|
1755
|
-
}
|
|
1756
|
-
if (selector instanceof RegExp) {
|
|
1757
|
-
return this.walk((child, i)=>{
|
|
1758
|
-
if (child.type === 'rule' && selector.test(child.selector)) {
|
|
1759
|
-
return callback(child, i);
|
|
1760
|
-
}
|
|
1761
|
-
});
|
|
1762
|
-
}
|
|
1763
|
-
return this.walk((child, i)=>{
|
|
1764
|
-
if (child.type === 'rule' && child.selector === selector) {
|
|
1765
|
-
return callback(child, i);
|
|
1766
|
-
}
|
|
1767
|
-
});
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
Container.registerParse = (dependant)=>{
|
|
1771
|
-
parse = dependant;
|
|
1772
|
-
};
|
|
1773
|
-
Container.registerRule = (dependant)=>{
|
|
1774
|
-
Rule = dependant;
|
|
1775
|
-
};
|
|
1776
|
-
Container.registerAtRule = (dependant)=>{
|
|
1777
|
-
AtRule = dependant;
|
|
1778
|
-
};
|
|
1779
|
-
Container.registerRoot = (dependant)=>{
|
|
1780
|
-
Root = dependant;
|
|
1781
|
-
};
|
|
1782
|
-
module.exports = Container;
|
|
1783
|
-
Container.default = Container;
|
|
1784
|
-
/* c8 ignore start */ Container.rebuild = (node)=>{
|
|
1785
|
-
let stack = [
|
|
1786
|
-
node
|
|
1787
|
-
];
|
|
1788
|
-
while(stack.length > 0){
|
|
1789
|
-
let next = stack.pop();
|
|
1790
|
-
if (next.type === 'atrule') {
|
|
1791
|
-
Object.setPrototypeOf(next, AtRule.prototype);
|
|
1792
|
-
} else if (next.type === 'rule') {
|
|
1793
|
-
Object.setPrototypeOf(next, Rule.prototype);
|
|
1794
|
-
} else if (next.type === 'decl') {
|
|
1795
|
-
Object.setPrototypeOf(next, Declaration.prototype);
|
|
1796
|
-
} else if (next.type === 'comment') {
|
|
1797
|
-
Object.setPrototypeOf(next, Comment.prototype);
|
|
1798
|
-
} else if (next.type === 'root') {
|
|
1799
|
-
Object.setPrototypeOf(next, Root.prototype);
|
|
1800
|
-
}
|
|
1801
|
-
next[my] = true;
|
|
1802
|
-
if (next.nodes) {
|
|
1803
|
-
for (let child of next.nodes)stack.push(child);
|
|
1804
|
-
}
|
|
1805
|
-
}
|
|
1806
|
-
}; /* c8 ignore stop */
|
|
1807
|
-
}),
|
|
1808
|
-
"[project]/node_modules/postcss/lib/at-rule.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
1809
|
-
"use strict";
|
|
1810
|
-
|
|
1811
|
-
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)");
|
|
1812
|
-
class AtRule extends Container {
|
|
1813
|
-
constructor(defaults){
|
|
1814
|
-
super(defaults);
|
|
1815
|
-
this.type = 'atrule';
|
|
1816
|
-
}
|
|
1817
|
-
append(...children) {
|
|
1818
|
-
if (!this.proxyOf.nodes) this.nodes = [];
|
|
1819
|
-
return super.append(...children);
|
|
1820
|
-
}
|
|
1821
|
-
prepend(...children) {
|
|
1822
|
-
if (!this.proxyOf.nodes) this.nodes = [];
|
|
1823
|
-
return super.prepend(...children);
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
module.exports = AtRule;
|
|
1827
|
-
AtRule.default = AtRule;
|
|
1828
|
-
Container.registerAtRule(AtRule);
|
|
1829
|
-
}),
|
|
1830
|
-
"[project]/node_modules/postcss/lib/document.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
1831
|
-
"use strict";
|
|
1832
|
-
|
|
1833
|
-
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)");
|
|
1834
|
-
let LazyResult, Processor;
|
|
1835
|
-
class Document extends Container {
|
|
1836
|
-
constructor(defaults){
|
|
1837
|
-
// type needs to be passed to super, otherwise child roots won't be normalized correctly
|
|
1838
|
-
super({
|
|
1839
|
-
type: 'document',
|
|
1840
|
-
...defaults
|
|
1841
|
-
});
|
|
1842
|
-
if (!this.nodes) {
|
|
1843
|
-
this.nodes = [];
|
|
1844
|
-
}
|
|
1845
|
-
}
|
|
1846
|
-
toResult(opts = {}) {
|
|
1847
|
-
let lazy = new LazyResult(new Processor(), this, opts);
|
|
1848
|
-
return lazy.stringify();
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1851
|
-
Document.registerLazyResult = (dependant)=>{
|
|
1852
|
-
LazyResult = dependant;
|
|
1853
|
-
};
|
|
1854
|
-
Document.registerProcessor = (dependant)=>{
|
|
1855
|
-
Processor = dependant;
|
|
1856
|
-
};
|
|
1857
|
-
module.exports = Document;
|
|
1858
|
-
Document.default = Document;
|
|
1859
|
-
}),
|
|
1860
|
-
"[project]/node_modules/nanoid/non-secure/index.cjs [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
1861
|
-
|
|
1862
|
-
let urlAlphabet = 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
1863
|
-
let customAlphabet = (alphabet, defaultSize = 21)=>{
|
|
1864
|
-
return (size = defaultSize)=>{
|
|
1865
|
-
let id = '';
|
|
1866
|
-
let i = size | 0;
|
|
1867
|
-
while(i-- > 0){
|
|
1868
|
-
id += alphabet[Math.random() * alphabet.length | 0];
|
|
1869
|
-
}
|
|
1870
|
-
return id;
|
|
1871
|
-
};
|
|
1872
|
-
};
|
|
1873
|
-
let nanoid = (size = 21)=>{
|
|
1874
|
-
let id = '';
|
|
1875
|
-
let i = size | 0;
|
|
1876
|
-
while(i-- > 0){
|
|
1877
|
-
id += urlAlphabet[Math.random() * 64 | 0];
|
|
1878
|
-
}
|
|
1879
|
-
return id;
|
|
1880
|
-
};
|
|
1881
|
-
module.exports = {
|
|
1882
|
-
nanoid,
|
|
1883
|
-
customAlphabet
|
|
1884
|
-
};
|
|
1885
|
-
}),
|
|
1886
|
-
"[project]/node_modules/source-map-js/lib/base64.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
1887
|
-
|
|
1888
|
-
/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
1889
|
-
* Copyright 2011 Mozilla Foundation and contributors
|
|
1890
|
-
* Licensed under the New BSD license. See LICENSE or:
|
|
1891
|
-
* http://opensource.org/licenses/BSD-3-Clause
|
|
1892
|
-
*/ var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
|
|
1893
|
-
/**
|
|
1894
|
-
* Encode an integer in the range of 0 to 63 to a single base 64 digit.
|
|
1895
|
-
*/ exports.encode = function(number) {
|
|
1896
|
-
if (0 <= number && number < intToCharMap.length) {
|
|
1897
|
-
return intToCharMap[number];
|
|
1898
|
-
}
|
|
1899
|
-
throw new TypeError("Must be between 0 and 63: " + number);
|
|
1900
|
-
};
|
|
1901
|
-
/**
|
|
1902
|
-
* Decode a single base 64 character code digit to an integer. Returns -1 on
|
|
1903
|
-
* failure.
|
|
1904
|
-
*/ exports.decode = function(charCode) {
|
|
1905
|
-
var bigA = 65; // 'A'
|
|
1906
|
-
var bigZ = 90; // 'Z'
|
|
1907
|
-
var littleA = 97; // 'a'
|
|
1908
|
-
var littleZ = 122; // 'z'
|
|
1909
|
-
var zero = 48; // '0'
|
|
1910
|
-
var nine = 57; // '9'
|
|
1911
|
-
var plus = 43; // '+'
|
|
1912
|
-
var slash = 47; // '/'
|
|
1913
|
-
var littleOffset = 26;
|
|
1914
|
-
var numberOffset = 52;
|
|
1915
|
-
// 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ
|
|
1916
|
-
if (bigA <= charCode && charCode <= bigZ) {
|
|
1917
|
-
return charCode - bigA;
|
|
1918
|
-
}
|
|
1919
|
-
// 26 - 51: abcdefghijklmnopqrstuvwxyz
|
|
1920
|
-
if (littleA <= charCode && charCode <= littleZ) {
|
|
1921
|
-
return charCode - littleA + littleOffset;
|
|
1922
|
-
}
|
|
1923
|
-
// 52 - 61: 0123456789
|
|
1924
|
-
if (zero <= charCode && charCode <= nine) {
|
|
1925
|
-
return charCode - zero + numberOffset;
|
|
1926
|
-
}
|
|
1927
|
-
// 62: +
|
|
1928
|
-
if (charCode == plus) {
|
|
1929
|
-
return 62;
|
|
1930
|
-
}
|
|
1931
|
-
// 63: /
|
|
1932
|
-
if (charCode == slash) {
|
|
1933
|
-
return 63;
|
|
1200
|
+
// 63: /
|
|
1201
|
+
if (charCode == slash) {
|
|
1202
|
+
return 63;
|
|
1934
1203
|
}
|
|
1935
1204
|
// Invalid base64 digit.
|
|
1936
1205
|
return -1;
|
|
@@ -4631,12 +3900,38 @@ exports.SourceNode = SourceNode;
|
|
|
4631
3900
|
exports.SourceMapConsumer = __turbopack_context__.r("[project]/node_modules/source-map-js/lib/source-map-consumer.js [postcss] (ecmascript)").SourceMapConsumer;
|
|
4632
3901
|
exports.SourceNode = __turbopack_context__.r("[project]/node_modules/source-map-js/lib/source-node.js [postcss] (ecmascript)").SourceNode;
|
|
4633
3902
|
}),
|
|
3903
|
+
"[project]/node_modules/nanoid/non-secure/index.cjs [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
3904
|
+
|
|
3905
|
+
let urlAlphabet = 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
|
|
3906
|
+
let customAlphabet = (alphabet, defaultSize = 21)=>{
|
|
3907
|
+
return (size = defaultSize)=>{
|
|
3908
|
+
let id = '';
|
|
3909
|
+
let i = size | 0;
|
|
3910
|
+
while(i-- > 0){
|
|
3911
|
+
id += alphabet[Math.random() * alphabet.length | 0];
|
|
3912
|
+
}
|
|
3913
|
+
return id;
|
|
3914
|
+
};
|
|
3915
|
+
};
|
|
3916
|
+
let nanoid = (size = 21)=>{
|
|
3917
|
+
let id = '';
|
|
3918
|
+
let i = size | 0;
|
|
3919
|
+
while(i-- > 0){
|
|
3920
|
+
id += urlAlphabet[Math.random() * 64 | 0];
|
|
3921
|
+
}
|
|
3922
|
+
return id;
|
|
3923
|
+
};
|
|
3924
|
+
module.exports = {
|
|
3925
|
+
nanoid,
|
|
3926
|
+
customAlphabet
|
|
3927
|
+
};
|
|
3928
|
+
}),
|
|
4634
3929
|
"[project]/node_modules/postcss/lib/previous-map.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
4635
3930
|
"use strict";
|
|
4636
3931
|
|
|
4637
|
-
let { existsSync, readFileSync } = __turbopack_context__.r("[externals]/fs [external] (fs, cjs)");
|
|
4638
|
-
let { dirname, isAbsolute, join, relative, sep } = __turbopack_context__.r("[externals]/path [external] (path, cjs)");
|
|
4639
3932
|
let { SourceMapConsumer, SourceMapGenerator } = __turbopack_context__.r("[project]/node_modules/source-map-js/source-map.js [postcss] (ecmascript)");
|
|
3933
|
+
let { existsSync, readFileSync } = __turbopack_context__.r("[externals]/fs [external] (fs, cjs)");
|
|
3934
|
+
let { dirname, join } = __turbopack_context__.r("[externals]/path [external] (path, cjs)");
|
|
4640
3935
|
function fromBase64(str) {
|
|
4641
3936
|
if ("TURBOPACK compile-time truthy", 1) {
|
|
4642
3937
|
return Buffer.from(str, 'base64').toString();
|
|
@@ -4646,7 +3941,6 @@ function fromBase64(str) {
|
|
|
4646
3941
|
class PreviousMap {
|
|
4647
3942
|
constructor(css, opts){
|
|
4648
3943
|
if (opts.map === false) return;
|
|
4649
|
-
if (opts.unsafeMap) this.unsafeMap = true;
|
|
4650
3944
|
this.loadAnnotation(css);
|
|
4651
3945
|
this.inline = this.startWith(this.annotation, 'data:');
|
|
4652
3946
|
let prev = opts.map ? opts.map.prev : undefined;
|
|
@@ -4659,7 +3953,7 @@ class PreviousMap {
|
|
|
4659
3953
|
}
|
|
4660
3954
|
consumer() {
|
|
4661
3955
|
if (!this.consumerCache) {
|
|
4662
|
-
this.consumerCache = new SourceMapConsumer(this.
|
|
3956
|
+
this.consumerCache = new SourceMapConsumer(this.text);
|
|
4663
3957
|
}
|
|
4664
3958
|
return this.consumerCache;
|
|
4665
3959
|
}
|
|
@@ -4668,16 +3962,13 @@ class PreviousMap {
|
|
|
4668
3962
|
let baseUri = /^data:application\/json;base64,/;
|
|
4669
3963
|
let charsetUri = /^data:application\/json;charset=utf-?8,/;
|
|
4670
3964
|
let uri = /^data:application\/json,/;
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
return decodeURIComponent(text.substr(uriMatch[0].length));
|
|
3965
|
+
if (charsetUri.test(text) || uri.test(text)) {
|
|
3966
|
+
return decodeURIComponent(text.substr(RegExp.lastMatch.length));
|
|
4674
3967
|
}
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
return fromBase64(text.substr(baseUriMatch[0].length));
|
|
3968
|
+
if (baseCharsetUri.test(text) || baseUri.test(text)) {
|
|
3969
|
+
return fromBase64(text.substr(RegExp.lastMatch.length));
|
|
4678
3970
|
}
|
|
4679
|
-
let encoding = text.
|
|
4680
|
-
encoding = encoding.slice(0, encoding.indexOf(','));
|
|
3971
|
+
let encoding = text.match(/data:application\/json;([^,]+),/)[1];
|
|
4681
3972
|
throw new Error('Unsupported source map encoding ' + encoding);
|
|
4682
3973
|
}
|
|
4683
3974
|
getAnnotationURL(sourceMapString) {
|
|
@@ -4688,7 +3979,7 @@ class PreviousMap {
|
|
|
4688
3979
|
return typeof map.mappings === 'string' || typeof map._mappings === 'string' || Array.isArray(map.sections);
|
|
4689
3980
|
}
|
|
4690
3981
|
loadAnnotation(css) {
|
|
4691
|
-
let comments = css.match(/\/\*\s*# sourceMappingURL=/
|
|
3982
|
+
let comments = css.match(/\/\*\s*# sourceMappingURL=/gm);
|
|
4692
3983
|
if (!comments) return;
|
|
4693
3984
|
// sourceMappingURLs from comments, strings, etc.
|
|
4694
3985
|
let start = css.lastIndexOf(comments.pop());
|
|
@@ -4698,18 +3989,7 @@ class PreviousMap {
|
|
|
4698
3989
|
this.annotation = this.getAnnotationURL(css.substring(start, end));
|
|
4699
3990
|
}
|
|
4700
3991
|
}
|
|
4701
|
-
loadFile(path
|
|
4702
|
-
if (!trusted && !this.unsafeMap) {
|
|
4703
|
-
if (!/\.map$/i.test(path)) {
|
|
4704
|
-
return undefined;
|
|
4705
|
-
}
|
|
4706
|
-
if (cssFile) {
|
|
4707
|
-
let relativePath = relative(dirname(cssFile), path);
|
|
4708
|
-
if (relativePath === '..' || relativePath.startsWith('..' + sep) || isAbsolute(relativePath)) {
|
|
4709
|
-
return undefined;
|
|
4710
|
-
}
|
|
4711
|
-
}
|
|
4712
|
-
}
|
|
3992
|
+
loadFile(path) {
|
|
4713
3993
|
this.root = dirname(path);
|
|
4714
3994
|
if (existsSync(path)) {
|
|
4715
3995
|
this.mapFile = path;
|
|
@@ -4724,7 +4004,7 @@ class PreviousMap {
|
|
|
4724
4004
|
} else if (typeof prev === 'function') {
|
|
4725
4005
|
let prevPath = prev(file);
|
|
4726
4006
|
if (prevPath) {
|
|
4727
|
-
let map = this.loadFile(prevPath
|
|
4007
|
+
let map = this.loadFile(prevPath);
|
|
4728
4008
|
if (!map) {
|
|
4729
4009
|
throw new Error('Unable to load previous source map: ' + prevPath.toString());
|
|
4730
4010
|
}
|
|
@@ -4744,15 +4024,7 @@ class PreviousMap {
|
|
|
4744
4024
|
} else if (this.annotation) {
|
|
4745
4025
|
let map = this.annotation;
|
|
4746
4026
|
if (file) map = join(dirname(file), map);
|
|
4747
|
-
|
|
4748
|
-
if (unknown) {
|
|
4749
|
-
try {
|
|
4750
|
-
/* c8 ignore next 4 */ this.json = JSON.parse(unknown.replace(/^\)]}'[^\n]*\n/, ''));
|
|
4751
|
-
} catch {
|
|
4752
|
-
return undefined;
|
|
4753
|
-
}
|
|
4754
|
-
}
|
|
4755
|
-
return unknown;
|
|
4027
|
+
return this.loadFile(map);
|
|
4756
4028
|
}
|
|
4757
4029
|
}
|
|
4758
4030
|
startWith(string, start) {
|
|
@@ -4769,32 +4041,17 @@ PreviousMap.default = PreviousMap;
|
|
|
4769
4041
|
"[project]/node_modules/postcss/lib/input.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
4770
4042
|
"use strict";
|
|
4771
4043
|
|
|
4772
|
-
let { nanoid } = __turbopack_context__.r("[project]/node_modules/nanoid/non-secure/index.cjs [postcss] (ecmascript)");
|
|
4773
|
-
let { isAbsolute, resolve } = __turbopack_context__.r("[externals]/path [external] (path, cjs)");
|
|
4774
4044
|
let { SourceMapConsumer, SourceMapGenerator } = __turbopack_context__.r("[project]/node_modules/source-map-js/source-map.js [postcss] (ecmascript)");
|
|
4775
4045
|
let { fileURLToPath, pathToFileURL } = __turbopack_context__.r("[externals]/url [external] (url, cjs)");
|
|
4046
|
+
let { isAbsolute, resolve } = __turbopack_context__.r("[externals]/path [external] (path, cjs)");
|
|
4047
|
+
let { nanoid } = __turbopack_context__.r("[project]/node_modules/nanoid/non-secure/index.cjs [postcss] (ecmascript)");
|
|
4048
|
+
let terminalHighlight = __turbopack_context__.r("[project]/node_modules/postcss/lib/terminal-highlight.js [postcss] (ecmascript)");
|
|
4776
4049
|
let CssSyntaxError = __turbopack_context__.r("[project]/node_modules/postcss/lib/css-syntax-error.js [postcss] (ecmascript)");
|
|
4777
4050
|
let PreviousMap = __turbopack_context__.r("[project]/node_modules/postcss/lib/previous-map.js [postcss] (ecmascript)");
|
|
4778
|
-
let
|
|
4779
|
-
let lineToIndexCache = Symbol('lineToIndexCache');
|
|
4051
|
+
let fromOffsetCache = Symbol('fromOffsetCache');
|
|
4780
4052
|
let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
|
|
4781
4053
|
let pathAvailable = Boolean(resolve && isAbsolute);
|
|
4782
|
-
|
|
4783
|
-
if (input[lineToIndexCache]) return input[lineToIndexCache];
|
|
4784
|
-
let lines = input.css.split('\n');
|
|
4785
|
-
let lineToIndex = new Array(lines.length);
|
|
4786
|
-
let prevIndex = 0;
|
|
4787
|
-
for(let i = 0, l = lines.length; i < l; i++){
|
|
4788
|
-
lineToIndex[i] = prevIndex;
|
|
4789
|
-
prevIndex += lines[i].length + 1;
|
|
4790
|
-
}
|
|
4791
|
-
input[lineToIndexCache] = lineToIndex;
|
|
4792
|
-
return lineToIndex;
|
|
4793
|
-
}
|
|
4794
|
-
class Input {
|
|
4795
|
-
get from() {
|
|
4796
|
-
return this.file || this.id;
|
|
4797
|
-
}
|
|
4054
|
+
class Input {
|
|
4798
4055
|
constructor(css, opts = {}){
|
|
4799
4056
|
if (css === null || typeof css === 'undefined' || typeof css === 'object' && !css.toString) {
|
|
4800
4057
|
throw new Error(`PostCSS received ${css} instead of CSS string`);
|
|
@@ -4806,8 +4063,6 @@ class Input {
|
|
|
4806
4063
|
} else {
|
|
4807
4064
|
this.hasBOM = false;
|
|
4808
4065
|
}
|
|
4809
|
-
this.document = this.css;
|
|
4810
|
-
if (opts.document) this.document = opts.document.toString();
|
|
4811
4066
|
if (opts.from) {
|
|
4812
4067
|
if (!pathAvailable || /^\w+:\/\//.test(opts.from) || isAbsolute(opts.from)) {
|
|
4813
4068
|
this.file = opts.from;
|
|
@@ -4829,37 +4084,30 @@ class Input {
|
|
|
4829
4084
|
if (this.map) this.map.file = this.from;
|
|
4830
4085
|
}
|
|
4831
4086
|
error(message, line, column, opts = {}) {
|
|
4832
|
-
let
|
|
4087
|
+
let result, endLine, endColumn;
|
|
4833
4088
|
if (line && typeof line === 'object') {
|
|
4834
4089
|
let start = line;
|
|
4835
4090
|
let end = column;
|
|
4836
4091
|
if (typeof start.offset === 'number') {
|
|
4837
|
-
|
|
4838
|
-
let pos = this.fromOffset(offset);
|
|
4092
|
+
let pos = this.fromOffset(start.offset);
|
|
4839
4093
|
line = pos.line;
|
|
4840
4094
|
column = pos.col;
|
|
4841
4095
|
} else {
|
|
4842
4096
|
line = start.line;
|
|
4843
4097
|
column = start.column;
|
|
4844
|
-
offset = this.fromLineAndColumn(line, column);
|
|
4845
4098
|
}
|
|
4846
4099
|
if (typeof end.offset === 'number') {
|
|
4847
|
-
|
|
4848
|
-
let pos = this.fromOffset(endOffset);
|
|
4100
|
+
let pos = this.fromOffset(end.offset);
|
|
4849
4101
|
endLine = pos.line;
|
|
4850
4102
|
endColumn = pos.col;
|
|
4851
4103
|
} else {
|
|
4852
4104
|
endLine = end.line;
|
|
4853
4105
|
endColumn = end.column;
|
|
4854
|
-
endOffset = this.fromLineAndColumn(end.line, end.column);
|
|
4855
4106
|
}
|
|
4856
4107
|
} else if (!column) {
|
|
4857
|
-
|
|
4858
|
-
let pos = this.fromOffset(offset);
|
|
4108
|
+
let pos = this.fromOffset(line);
|
|
4859
4109
|
line = pos.line;
|
|
4860
4110
|
column = pos.col;
|
|
4861
|
-
} else {
|
|
4862
|
-
offset = this.fromLineAndColumn(line, column);
|
|
4863
4111
|
}
|
|
4864
4112
|
let origin = this.origin(line, column, endLine, endColumn);
|
|
4865
4113
|
if (origin) {
|
|
@@ -4883,9 +4131,7 @@ class Input {
|
|
|
4883
4131
|
column,
|
|
4884
4132
|
endColumn,
|
|
4885
4133
|
endLine,
|
|
4886
|
-
endOffset,
|
|
4887
4134
|
line,
|
|
4888
|
-
offset,
|
|
4889
4135
|
source: this.css
|
|
4890
4136
|
};
|
|
4891
4137
|
if (this.file) {
|
|
@@ -4896,14 +4142,21 @@ class Input {
|
|
|
4896
4142
|
}
|
|
4897
4143
|
return result;
|
|
4898
4144
|
}
|
|
4899
|
-
fromLineAndColumn(line, column) {
|
|
4900
|
-
let lineToIndex = getLineToIndex(this);
|
|
4901
|
-
let index = lineToIndex[line - 1];
|
|
4902
|
-
return index + column - 1;
|
|
4903
|
-
}
|
|
4904
4145
|
fromOffset(offset) {
|
|
4905
|
-
let lineToIndex
|
|
4906
|
-
|
|
4146
|
+
let lastLine, lineToIndex;
|
|
4147
|
+
if (!this[fromOffsetCache]) {
|
|
4148
|
+
let lines = this.css.split('\n');
|
|
4149
|
+
lineToIndex = new Array(lines.length);
|
|
4150
|
+
let prevIndex = 0;
|
|
4151
|
+
for(let i = 0, l = lines.length; i < l; i++){
|
|
4152
|
+
lineToIndex[i] = prevIndex;
|
|
4153
|
+
prevIndex += lines[i].length + 1;
|
|
4154
|
+
}
|
|
4155
|
+
this[fromOffsetCache] = lineToIndex;
|
|
4156
|
+
} else {
|
|
4157
|
+
lineToIndex = this[fromOffsetCache];
|
|
4158
|
+
}
|
|
4159
|
+
lastLine = lineToIndex[lineToIndex.length - 1];
|
|
4907
4160
|
let min = 0;
|
|
4908
4161
|
if (offset >= lastLine) {
|
|
4909
4162
|
min = lineToIndex.length - 1;
|
|
@@ -4927,680 +4180,1075 @@ class Input {
|
|
|
4927
4180
|
line: min + 1
|
|
4928
4181
|
};
|
|
4929
4182
|
}
|
|
4930
|
-
mapResolve(file) {
|
|
4931
|
-
if (/^\w+:\/\//.test(file)) {
|
|
4932
|
-
return file;
|
|
4183
|
+
mapResolve(file) {
|
|
4184
|
+
if (/^\w+:\/\//.test(file)) {
|
|
4185
|
+
return file;
|
|
4186
|
+
}
|
|
4187
|
+
return resolve(this.map.consumer().sourceRoot || this.map.root || '.', file);
|
|
4188
|
+
}
|
|
4189
|
+
origin(line, column, endLine, endColumn) {
|
|
4190
|
+
if (!this.map) return false;
|
|
4191
|
+
let consumer = this.map.consumer();
|
|
4192
|
+
let from = consumer.originalPositionFor({
|
|
4193
|
+
column,
|
|
4194
|
+
line
|
|
4195
|
+
});
|
|
4196
|
+
if (!from.source) return false;
|
|
4197
|
+
let to;
|
|
4198
|
+
if (typeof endLine === 'number') {
|
|
4199
|
+
to = consumer.originalPositionFor({
|
|
4200
|
+
column: endColumn,
|
|
4201
|
+
line: endLine
|
|
4202
|
+
});
|
|
4203
|
+
}
|
|
4204
|
+
let fromUrl;
|
|
4205
|
+
if (isAbsolute(from.source)) {
|
|
4206
|
+
fromUrl = pathToFileURL(from.source);
|
|
4207
|
+
} else {
|
|
4208
|
+
fromUrl = new URL(from.source, this.map.consumer().sourceRoot || pathToFileURL(this.map.mapFile));
|
|
4209
|
+
}
|
|
4210
|
+
let result = {
|
|
4211
|
+
column: from.column,
|
|
4212
|
+
endColumn: to && to.column,
|
|
4213
|
+
endLine: to && to.line,
|
|
4214
|
+
line: from.line,
|
|
4215
|
+
url: fromUrl.toString()
|
|
4216
|
+
};
|
|
4217
|
+
if (fromUrl.protocol === 'file:') {
|
|
4218
|
+
if (fileURLToPath) {
|
|
4219
|
+
result.file = fileURLToPath(fromUrl);
|
|
4220
|
+
} else {
|
|
4221
|
+
/* c8 ignore next 2 */ throw new Error(`file: protocol is not available in this PostCSS build`);
|
|
4222
|
+
}
|
|
4223
|
+
}
|
|
4224
|
+
let source = consumer.sourceContentFor(from.source);
|
|
4225
|
+
if (source) result.source = source;
|
|
4226
|
+
return result;
|
|
4227
|
+
}
|
|
4228
|
+
toJSON() {
|
|
4229
|
+
let json = {};
|
|
4230
|
+
for (let name of [
|
|
4231
|
+
'hasBOM',
|
|
4232
|
+
'css',
|
|
4233
|
+
'file',
|
|
4234
|
+
'id'
|
|
4235
|
+
]){
|
|
4236
|
+
if (this[name] != null) {
|
|
4237
|
+
json[name] = this[name];
|
|
4238
|
+
}
|
|
4239
|
+
}
|
|
4240
|
+
if (this.map) {
|
|
4241
|
+
json.map = {
|
|
4242
|
+
...this.map
|
|
4243
|
+
};
|
|
4244
|
+
if (json.map.consumerCache) {
|
|
4245
|
+
json.map.consumerCache = undefined;
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
return json;
|
|
4249
|
+
}
|
|
4250
|
+
get from() {
|
|
4251
|
+
return this.file || this.id;
|
|
4252
|
+
}
|
|
4253
|
+
}
|
|
4254
|
+
module.exports = Input;
|
|
4255
|
+
Input.default = Input;
|
|
4256
|
+
if (terminalHighlight && terminalHighlight.registerInput) {
|
|
4257
|
+
terminalHighlight.registerInput(Input);
|
|
4258
|
+
}
|
|
4259
|
+
}),
|
|
4260
|
+
"[project]/node_modules/postcss/lib/map-generator.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
4261
|
+
"use strict";
|
|
4262
|
+
|
|
4263
|
+
let { SourceMapConsumer, SourceMapGenerator } = __turbopack_context__.r("[project]/node_modules/source-map-js/source-map.js [postcss] (ecmascript)");
|
|
4264
|
+
let { dirname, relative, resolve, sep } = __turbopack_context__.r("[externals]/path [external] (path, cjs)");
|
|
4265
|
+
let { pathToFileURL } = __turbopack_context__.r("[externals]/url [external] (url, cjs)");
|
|
4266
|
+
let Input = __turbopack_context__.r("[project]/node_modules/postcss/lib/input.js [postcss] (ecmascript)");
|
|
4267
|
+
let sourceMapAvailable = Boolean(SourceMapConsumer && SourceMapGenerator);
|
|
4268
|
+
let pathAvailable = Boolean(dirname && resolve && relative && sep);
|
|
4269
|
+
class MapGenerator {
|
|
4270
|
+
constructor(stringify, root, opts, cssString){
|
|
4271
|
+
this.stringify = stringify;
|
|
4272
|
+
this.mapOpts = opts.map || {};
|
|
4273
|
+
this.root = root;
|
|
4274
|
+
this.opts = opts;
|
|
4275
|
+
this.css = cssString;
|
|
4276
|
+
this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute;
|
|
4277
|
+
this.memoizedFileURLs = new Map();
|
|
4278
|
+
this.memoizedPaths = new Map();
|
|
4279
|
+
this.memoizedURLs = new Map();
|
|
4280
|
+
}
|
|
4281
|
+
addAnnotation() {
|
|
4282
|
+
let content;
|
|
4283
|
+
if (this.isInline()) {
|
|
4284
|
+
content = 'data:application/json;base64,' + this.toBase64(this.map.toString());
|
|
4285
|
+
} else if (typeof this.mapOpts.annotation === 'string') {
|
|
4286
|
+
content = this.mapOpts.annotation;
|
|
4287
|
+
} else if (typeof this.mapOpts.annotation === 'function') {
|
|
4288
|
+
content = this.mapOpts.annotation(this.opts.to, this.root);
|
|
4289
|
+
} else {
|
|
4290
|
+
content = this.outputFile() + '.map';
|
|
4291
|
+
}
|
|
4292
|
+
let eol = '\n';
|
|
4293
|
+
if (this.css.includes('\r\n')) eol = '\r\n';
|
|
4294
|
+
this.css += eol + '/*# sourceMappingURL=' + content + ' */';
|
|
4295
|
+
}
|
|
4296
|
+
applyPrevMaps() {
|
|
4297
|
+
for (let prev of this.previous()){
|
|
4298
|
+
let from = this.toUrl(this.path(prev.file));
|
|
4299
|
+
let root = prev.root || dirname(prev.file);
|
|
4300
|
+
let map;
|
|
4301
|
+
if (this.mapOpts.sourcesContent === false) {
|
|
4302
|
+
map = new SourceMapConsumer(prev.text);
|
|
4303
|
+
if (map.sourcesContent) {
|
|
4304
|
+
map.sourcesContent = map.sourcesContent.map(()=>null);
|
|
4305
|
+
}
|
|
4306
|
+
} else {
|
|
4307
|
+
map = prev.consumer();
|
|
4308
|
+
}
|
|
4309
|
+
this.map.applySourceMap(map, from, this.toUrl(this.path(root)));
|
|
4310
|
+
}
|
|
4311
|
+
}
|
|
4312
|
+
clearAnnotation() {
|
|
4313
|
+
if (this.mapOpts.annotation === false) return;
|
|
4314
|
+
if (this.root) {
|
|
4315
|
+
let node;
|
|
4316
|
+
for(let i = this.root.nodes.length - 1; i >= 0; i--){
|
|
4317
|
+
node = this.root.nodes[i];
|
|
4318
|
+
if (node.type !== 'comment') continue;
|
|
4319
|
+
if (node.text.indexOf('# sourceMappingURL=') === 0) {
|
|
4320
|
+
this.root.removeChild(i);
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
} else if (this.css) {
|
|
4324
|
+
this.css = this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm, '');
|
|
4325
|
+
}
|
|
4326
|
+
}
|
|
4327
|
+
generate() {
|
|
4328
|
+
this.clearAnnotation();
|
|
4329
|
+
if (pathAvailable && sourceMapAvailable && this.isMap()) {
|
|
4330
|
+
return this.generateMap();
|
|
4331
|
+
} else {
|
|
4332
|
+
let result = '';
|
|
4333
|
+
this.stringify(this.root, (i)=>{
|
|
4334
|
+
result += i;
|
|
4335
|
+
});
|
|
4336
|
+
return [
|
|
4337
|
+
result
|
|
4338
|
+
];
|
|
4339
|
+
}
|
|
4340
|
+
}
|
|
4341
|
+
generateMap() {
|
|
4342
|
+
if (this.root) {
|
|
4343
|
+
this.generateString();
|
|
4344
|
+
} else if (this.previous().length === 1) {
|
|
4345
|
+
let prev = this.previous()[0].consumer();
|
|
4346
|
+
prev.file = this.outputFile();
|
|
4347
|
+
this.map = SourceMapGenerator.fromSourceMap(prev);
|
|
4348
|
+
} else {
|
|
4349
|
+
this.map = new SourceMapGenerator({
|
|
4350
|
+
file: this.outputFile()
|
|
4351
|
+
});
|
|
4352
|
+
this.map.addMapping({
|
|
4353
|
+
generated: {
|
|
4354
|
+
column: 0,
|
|
4355
|
+
line: 1
|
|
4356
|
+
},
|
|
4357
|
+
original: {
|
|
4358
|
+
column: 0,
|
|
4359
|
+
line: 1
|
|
4360
|
+
},
|
|
4361
|
+
source: this.opts.from ? this.toUrl(this.path(this.opts.from)) : '<no source>'
|
|
4362
|
+
});
|
|
4363
|
+
}
|
|
4364
|
+
if (this.isSourcesContent()) this.setSourcesContent();
|
|
4365
|
+
if (this.root && this.previous().length > 0) this.applyPrevMaps();
|
|
4366
|
+
if (this.isAnnotation()) this.addAnnotation();
|
|
4367
|
+
if (this.isInline()) {
|
|
4368
|
+
return [
|
|
4369
|
+
this.css
|
|
4370
|
+
];
|
|
4371
|
+
} else {
|
|
4372
|
+
return [
|
|
4373
|
+
this.css,
|
|
4374
|
+
this.map
|
|
4375
|
+
];
|
|
4376
|
+
}
|
|
4377
|
+
}
|
|
4378
|
+
generateString() {
|
|
4379
|
+
this.css = '';
|
|
4380
|
+
this.map = new SourceMapGenerator({
|
|
4381
|
+
file: this.outputFile()
|
|
4382
|
+
});
|
|
4383
|
+
let line = 1;
|
|
4384
|
+
let column = 1;
|
|
4385
|
+
let noSource = '<no source>';
|
|
4386
|
+
let mapping = {
|
|
4387
|
+
generated: {
|
|
4388
|
+
column: 0,
|
|
4389
|
+
line: 0
|
|
4390
|
+
},
|
|
4391
|
+
original: {
|
|
4392
|
+
column: 0,
|
|
4393
|
+
line: 0
|
|
4394
|
+
},
|
|
4395
|
+
source: ''
|
|
4396
|
+
};
|
|
4397
|
+
let lines, last;
|
|
4398
|
+
this.stringify(this.root, (str, node, type)=>{
|
|
4399
|
+
this.css += str;
|
|
4400
|
+
if (node && type !== 'end') {
|
|
4401
|
+
mapping.generated.line = line;
|
|
4402
|
+
mapping.generated.column = column - 1;
|
|
4403
|
+
if (node.source && node.source.start) {
|
|
4404
|
+
mapping.source = this.sourcePath(node);
|
|
4405
|
+
mapping.original.line = node.source.start.line;
|
|
4406
|
+
mapping.original.column = node.source.start.column - 1;
|
|
4407
|
+
this.map.addMapping(mapping);
|
|
4408
|
+
} else {
|
|
4409
|
+
mapping.source = noSource;
|
|
4410
|
+
mapping.original.line = 1;
|
|
4411
|
+
mapping.original.column = 0;
|
|
4412
|
+
this.map.addMapping(mapping);
|
|
4413
|
+
}
|
|
4414
|
+
}
|
|
4415
|
+
lines = str.match(/\n/g);
|
|
4416
|
+
if (lines) {
|
|
4417
|
+
line += lines.length;
|
|
4418
|
+
last = str.lastIndexOf('\n');
|
|
4419
|
+
column = str.length - last;
|
|
4420
|
+
} else {
|
|
4421
|
+
column += str.length;
|
|
4422
|
+
}
|
|
4423
|
+
if (node && type !== 'start') {
|
|
4424
|
+
let p = node.parent || {
|
|
4425
|
+
raws: {}
|
|
4426
|
+
};
|
|
4427
|
+
let childless = node.type === 'decl' || node.type === 'atrule' && !node.nodes;
|
|
4428
|
+
if (!childless || node !== p.last || p.raws.semicolon) {
|
|
4429
|
+
if (node.source && node.source.end) {
|
|
4430
|
+
mapping.source = this.sourcePath(node);
|
|
4431
|
+
mapping.original.line = node.source.end.line;
|
|
4432
|
+
mapping.original.column = node.source.end.column - 1;
|
|
4433
|
+
mapping.generated.line = line;
|
|
4434
|
+
mapping.generated.column = column - 2;
|
|
4435
|
+
this.map.addMapping(mapping);
|
|
4436
|
+
} else {
|
|
4437
|
+
mapping.source = noSource;
|
|
4438
|
+
mapping.original.line = 1;
|
|
4439
|
+
mapping.original.column = 0;
|
|
4440
|
+
mapping.generated.line = line;
|
|
4441
|
+
mapping.generated.column = column - 1;
|
|
4442
|
+
this.map.addMapping(mapping);
|
|
4443
|
+
}
|
|
4444
|
+
}
|
|
4445
|
+
}
|
|
4446
|
+
});
|
|
4447
|
+
}
|
|
4448
|
+
isAnnotation() {
|
|
4449
|
+
if (this.isInline()) {
|
|
4450
|
+
return true;
|
|
4933
4451
|
}
|
|
4934
|
-
|
|
4452
|
+
if (typeof this.mapOpts.annotation !== 'undefined') {
|
|
4453
|
+
return this.mapOpts.annotation;
|
|
4454
|
+
}
|
|
4455
|
+
if (this.previous().length) {
|
|
4456
|
+
return this.previous().some((i)=>i.annotation);
|
|
4457
|
+
}
|
|
4458
|
+
return true;
|
|
4935
4459
|
}
|
|
4936
|
-
|
|
4937
|
-
if (
|
|
4938
|
-
|
|
4939
|
-
let from = consumer.originalPositionFor({
|
|
4940
|
-
column: column - 1,
|
|
4941
|
-
line
|
|
4942
|
-
});
|
|
4943
|
-
if (!from.source) return false;
|
|
4944
|
-
let to;
|
|
4945
|
-
if (typeof endLine === 'number') {
|
|
4946
|
-
let toPosition = consumer.originalPositionFor({
|
|
4947
|
-
column: endColumn - 1,
|
|
4948
|
-
line: endLine
|
|
4949
|
-
});
|
|
4950
|
-
// The source map may not have a mapping that covers the end position
|
|
4951
|
-
// (`originalPositionFor()` then returns `null` for `line`/`column`
|
|
4952
|
-
// instead of omitting them). Treat that the same as not requesting
|
|
4953
|
-
// an end position at all, so `endLine`/`endColumn` stay a consistent
|
|
4954
|
-
// `undefined` pair instead of a mix of `null` and a bogus number.
|
|
4955
|
-
if (toPosition.source) to = toPosition;
|
|
4460
|
+
isInline() {
|
|
4461
|
+
if (typeof this.mapOpts.inline !== 'undefined') {
|
|
4462
|
+
return this.mapOpts.inline;
|
|
4956
4463
|
}
|
|
4957
|
-
let
|
|
4958
|
-
if (
|
|
4959
|
-
|
|
4960
|
-
} else {
|
|
4961
|
-
fromUrl = new URL(from.source, this.map.consumer().sourceRoot || pathToFileURL(this.map.mapFile));
|
|
4464
|
+
let annotation = this.mapOpts.annotation;
|
|
4465
|
+
if (typeof annotation !== 'undefined' && annotation !== true) {
|
|
4466
|
+
return false;
|
|
4962
4467
|
}
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
endColumn: to && to.column + 1,
|
|
4966
|
-
endLine: to && to.line,
|
|
4967
|
-
line: from.line,
|
|
4968
|
-
url: fromUrl.toString()
|
|
4969
|
-
};
|
|
4970
|
-
if (fromUrl.protocol === 'file:') {
|
|
4971
|
-
if (fileURLToPath) {
|
|
4972
|
-
result.file = fileURLToPath(fromUrl);
|
|
4973
|
-
} else {
|
|
4974
|
-
/* c8 ignore next 2 */ throw new Error(`file: protocol is not available in this PostCSS build`);
|
|
4975
|
-
}
|
|
4468
|
+
if (this.previous().length) {
|
|
4469
|
+
return this.previous().some((i)=>i.inline);
|
|
4976
4470
|
}
|
|
4977
|
-
|
|
4978
|
-
if (source) result.source = source;
|
|
4979
|
-
return result;
|
|
4471
|
+
return true;
|
|
4980
4472
|
}
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
'hasBOM',
|
|
4985
|
-
'css',
|
|
4986
|
-
'file',
|
|
4987
|
-
'id'
|
|
4988
|
-
]){
|
|
4989
|
-
if (this[name] != null) {
|
|
4990
|
-
json[name] = this[name];
|
|
4991
|
-
}
|
|
4473
|
+
isMap() {
|
|
4474
|
+
if (typeof this.opts.map !== 'undefined') {
|
|
4475
|
+
return !!this.opts.map;
|
|
4992
4476
|
}
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
json.map.consumerCache = undefined;
|
|
4999
|
-
}
|
|
4477
|
+
return this.previous().length > 0;
|
|
4478
|
+
}
|
|
4479
|
+
isSourcesContent() {
|
|
4480
|
+
if (typeof this.mapOpts.sourcesContent !== 'undefined') {
|
|
4481
|
+
return this.mapOpts.sourcesContent;
|
|
5000
4482
|
}
|
|
5001
|
-
|
|
4483
|
+
if (this.previous().length) {
|
|
4484
|
+
return this.previous().some((i)=>i.withContent());
|
|
4485
|
+
}
|
|
4486
|
+
return true;
|
|
5002
4487
|
}
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
if (
|
|
5007
|
-
|
|
5008
|
-
}
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
"use strict";
|
|
5012
|
-
|
|
5013
|
-
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)");
|
|
5014
|
-
let LazyResult, Processor;
|
|
5015
|
-
class Root extends Container {
|
|
5016
|
-
constructor(defaults){
|
|
5017
|
-
super(defaults);
|
|
5018
|
-
this.type = 'root';
|
|
5019
|
-
if (!this.nodes) this.nodes = [];
|
|
4488
|
+
outputFile() {
|
|
4489
|
+
if (this.opts.to) {
|
|
4490
|
+
return this.path(this.opts.to);
|
|
4491
|
+
} else if (this.opts.from) {
|
|
4492
|
+
return this.path(this.opts.from);
|
|
4493
|
+
} else {
|
|
4494
|
+
return 'to.css';
|
|
4495
|
+
}
|
|
5020
4496
|
}
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
4497
|
+
path(file) {
|
|
4498
|
+
if (this.mapOpts.absolute) return file;
|
|
4499
|
+
if (file.charCodeAt(0) === 60 /* `<` */ ) return file;
|
|
4500
|
+
if (/^\w+:\/\//.test(file)) return file;
|
|
4501
|
+
let cached = this.memoizedPaths.get(file);
|
|
4502
|
+
if (cached) return cached;
|
|
4503
|
+
let from = this.opts.to ? dirname(this.opts.to) : '.';
|
|
4504
|
+
if (typeof this.mapOpts.annotation === 'string') {
|
|
4505
|
+
from = dirname(resolve(from, this.mapOpts.annotation));
|
|
4506
|
+
}
|
|
4507
|
+
let path = relative(from, file);
|
|
4508
|
+
this.memoizedPaths.set(file, path);
|
|
4509
|
+
return path;
|
|
4510
|
+
}
|
|
4511
|
+
previous() {
|
|
4512
|
+
if (!this.previousMaps) {
|
|
4513
|
+
this.previousMaps = [];
|
|
4514
|
+
if (this.root) {
|
|
4515
|
+
this.root.walk((node)=>{
|
|
4516
|
+
if (node.source && node.source.input.map) {
|
|
4517
|
+
let map = node.source.input.map;
|
|
4518
|
+
if (!this.previousMaps.includes(map)) {
|
|
4519
|
+
this.previousMaps.push(map);
|
|
4520
|
+
}
|
|
4521
|
+
}
|
|
4522
|
+
});
|
|
4523
|
+
} else {
|
|
4524
|
+
let input = new Input(this.css, this.opts);
|
|
4525
|
+
if (input.map) this.previousMaps.push(input.map);
|
|
5028
4526
|
}
|
|
5029
4527
|
}
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
4528
|
+
return this.previousMaps;
|
|
4529
|
+
}
|
|
4530
|
+
setSourcesContent() {
|
|
4531
|
+
let already = {};
|
|
4532
|
+
if (this.root) {
|
|
4533
|
+
this.root.walk((node)=>{
|
|
4534
|
+
if (node.source) {
|
|
4535
|
+
let from = node.source.input.from;
|
|
4536
|
+
if (from && !already[from]) {
|
|
4537
|
+
already[from] = true;
|
|
4538
|
+
let fromUrl = this.usesFileUrls ? this.toFileUrl(from) : this.toUrl(this.path(from));
|
|
4539
|
+
this.map.setSourceContent(fromUrl, node.source.input.css);
|
|
5042
4540
|
}
|
|
5043
4541
|
}
|
|
5044
|
-
}
|
|
4542
|
+
});
|
|
4543
|
+
} else if (this.css) {
|
|
4544
|
+
let from = this.opts.from ? this.toUrl(this.path(this.opts.from)) : '<no source>';
|
|
4545
|
+
this.map.setSourceContent(from, this.css);
|
|
5045
4546
|
}
|
|
5046
|
-
return nodes;
|
|
5047
4547
|
}
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
4548
|
+
sourcePath(node) {
|
|
4549
|
+
if (this.mapOpts.from) {
|
|
4550
|
+
return this.toUrl(this.mapOpts.from);
|
|
4551
|
+
} else if (this.usesFileUrls) {
|
|
4552
|
+
return this.toFileUrl(node.source.input.from);
|
|
4553
|
+
} else {
|
|
4554
|
+
return this.toUrl(this.path(node.source.input.from));
|
|
5052
4555
|
}
|
|
5053
|
-
return super.removeChild(child);
|
|
5054
4556
|
}
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
4557
|
+
toBase64(str) {
|
|
4558
|
+
if ("TURBOPACK compile-time truthy", 1) {
|
|
4559
|
+
return Buffer.from(str).toString('base64');
|
|
4560
|
+
} else //TURBOPACK unreachable
|
|
4561
|
+
;
|
|
5058
4562
|
}
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
comma (string) {
|
|
5075
|
-
return list.split(string, [
|
|
5076
|
-
','
|
|
5077
|
-
], true);
|
|
5078
|
-
},
|
|
5079
|
-
space (string) {
|
|
5080
|
-
let spaces = [
|
|
5081
|
-
' ',
|
|
5082
|
-
'\n',
|
|
5083
|
-
'\t'
|
|
5084
|
-
];
|
|
5085
|
-
return list.split(string, spaces);
|
|
5086
|
-
},
|
|
5087
|
-
split (string, separators, last) {
|
|
5088
|
-
let array = [];
|
|
5089
|
-
let current = '';
|
|
5090
|
-
let split = false;
|
|
5091
|
-
let func = 0;
|
|
5092
|
-
let inQuote = false;
|
|
5093
|
-
let prevQuote = '';
|
|
5094
|
-
let escape = false;
|
|
5095
|
-
for (let letter of string){
|
|
5096
|
-
if (escape) {
|
|
5097
|
-
escape = false;
|
|
5098
|
-
} else if (letter === '\\') {
|
|
5099
|
-
escape = true;
|
|
5100
|
-
} else if (inQuote) {
|
|
5101
|
-
if (letter === prevQuote) {
|
|
5102
|
-
inQuote = false;
|
|
5103
|
-
}
|
|
5104
|
-
} else if (letter === '"' || letter === "'") {
|
|
5105
|
-
inQuote = true;
|
|
5106
|
-
prevQuote = letter;
|
|
5107
|
-
} else if (letter === '(') {
|
|
5108
|
-
func += 1;
|
|
5109
|
-
} else if (letter === ')') {
|
|
5110
|
-
if (func > 0) func -= 1;
|
|
5111
|
-
} else if (func === 0) {
|
|
5112
|
-
if (separators.includes(letter)) split = true;
|
|
5113
|
-
}
|
|
5114
|
-
if (split) {
|
|
5115
|
-
if (current !== '') array.push(current.trim());
|
|
5116
|
-
current = '';
|
|
5117
|
-
split = false;
|
|
5118
|
-
} else {
|
|
5119
|
-
current += letter;
|
|
5120
|
-
}
|
|
4563
|
+
toFileUrl(path) {
|
|
4564
|
+
let cached = this.memoizedFileURLs.get(path);
|
|
4565
|
+
if (cached) return cached;
|
|
4566
|
+
if ("TURBOPACK compile-time truthy", 1) {
|
|
4567
|
+
let fileURL = pathToFileURL(path).toString();
|
|
4568
|
+
this.memoizedFileURLs.set(path, fileURL);
|
|
4569
|
+
return fileURL;
|
|
4570
|
+
} else //TURBOPACK unreachable
|
|
4571
|
+
;
|
|
4572
|
+
}
|
|
4573
|
+
toUrl(path) {
|
|
4574
|
+
let cached = this.memoizedURLs.get(path);
|
|
4575
|
+
if (cached) return cached;
|
|
4576
|
+
if (sep === '\\') {
|
|
4577
|
+
path = path.replace(/\\/g, '/');
|
|
5121
4578
|
}
|
|
5122
|
-
|
|
5123
|
-
|
|
4579
|
+
let url = encodeURI(path).replace(/[#?]/g, encodeURIComponent);
|
|
4580
|
+
this.memoizedURLs.set(path, url);
|
|
4581
|
+
return url;
|
|
5124
4582
|
}
|
|
5125
|
-
}
|
|
5126
|
-
module.exports =
|
|
5127
|
-
list.default = list;
|
|
4583
|
+
}
|
|
4584
|
+
module.exports = MapGenerator;
|
|
5128
4585
|
}),
|
|
5129
|
-
"[project]/node_modules/postcss/lib/
|
|
4586
|
+
"[project]/node_modules/postcss/lib/comment.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
5130
4587
|
"use strict";
|
|
5131
4588
|
|
|
5132
|
-
let
|
|
5133
|
-
|
|
5134
|
-
class Rule extends Container {
|
|
5135
|
-
get selectors() {
|
|
5136
|
-
return list.comma(this.selector);
|
|
5137
|
-
}
|
|
5138
|
-
set selectors(values) {
|
|
5139
|
-
let match = this.selector ? this.selector.match(/,\s*/) : null;
|
|
5140
|
-
let sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen');
|
|
5141
|
-
this.selector = values.join(sep);
|
|
5142
|
-
}
|
|
4589
|
+
let Node = __turbopack_context__.r("[project]/node_modules/postcss/lib/node.js [postcss] (ecmascript)");
|
|
4590
|
+
class Comment extends Node {
|
|
5143
4591
|
constructor(defaults){
|
|
5144
4592
|
super(defaults);
|
|
5145
|
-
this.type = '
|
|
5146
|
-
if (!this.nodes) this.nodes = [];
|
|
4593
|
+
this.type = 'comment';
|
|
5147
4594
|
}
|
|
5148
4595
|
}
|
|
5149
|
-
module.exports =
|
|
5150
|
-
|
|
5151
|
-
Container.registerRule(Rule);
|
|
4596
|
+
module.exports = Comment;
|
|
4597
|
+
Comment.default = Comment;
|
|
5152
4598
|
}),
|
|
5153
|
-
"[project]/node_modules/postcss/lib/
|
|
4599
|
+
"[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
5154
4600
|
"use strict";
|
|
5155
4601
|
|
|
5156
|
-
let
|
|
5157
|
-
let Comment = __turbopack_context__.r("[project]/node_modules/postcss/lib/comment.js [postcss] (ecmascript)");
|
|
4602
|
+
let { isClean, my } = __turbopack_context__.r("[project]/node_modules/postcss/lib/symbols.js [postcss] (ecmascript)");
|
|
5158
4603
|
let Declaration = __turbopack_context__.r("[project]/node_modules/postcss/lib/declaration.js [postcss] (ecmascript)");
|
|
5159
|
-
let
|
|
5160
|
-
let
|
|
5161
|
-
let
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
...input,
|
|
5168
|
-
__proto__: Input.prototype
|
|
5169
|
-
};
|
|
5170
|
-
if (inputHydrated.map) {
|
|
5171
|
-
inputHydrated.map = {
|
|
5172
|
-
...inputHydrated.map,
|
|
5173
|
-
__proto__: PreviousMap.prototype
|
|
5174
|
-
};
|
|
5175
|
-
}
|
|
5176
|
-
return inputHydrated;
|
|
4604
|
+
let Comment = __turbopack_context__.r("[project]/node_modules/postcss/lib/comment.js [postcss] (ecmascript)");
|
|
4605
|
+
let Node = __turbopack_context__.r("[project]/node_modules/postcss/lib/node.js [postcss] (ecmascript)");
|
|
4606
|
+
let parse, Rule, AtRule, Root;
|
|
4607
|
+
function cleanSource(nodes) {
|
|
4608
|
+
return nodes.map((i)=>{
|
|
4609
|
+
if (i.nodes) i.nodes = cleanSource(i.nodes);
|
|
4610
|
+
delete i.source;
|
|
4611
|
+
return i;
|
|
5177
4612
|
});
|
|
5178
4613
|
}
|
|
5179
|
-
function
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
delete defaults.nodes;
|
|
5185
|
-
if (defaults.source) {
|
|
5186
|
-
let { inputId, ...source } = defaults.source;
|
|
5187
|
-
defaults.source = source;
|
|
5188
|
-
if (inputId != null) {
|
|
5189
|
-
defaults.source.input = inputs[inputId];
|
|
4614
|
+
function markDirtyUp(node) {
|
|
4615
|
+
node[isClean] = false;
|
|
4616
|
+
if (node.proxyOf.nodes) {
|
|
4617
|
+
for (let i of node.proxyOf.nodes){
|
|
4618
|
+
markDirtyUp(i);
|
|
5190
4619
|
}
|
|
5191
4620
|
}
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
} else if (defaults.type === 'atrule') {
|
|
5202
|
-
node = new AtRule(defaults);
|
|
5203
|
-
} else {
|
|
5204
|
-
throw new Error('Unknown node type: ' + json.type);
|
|
4621
|
+
}
|
|
4622
|
+
class Container extends Node {
|
|
4623
|
+
append(...children) {
|
|
4624
|
+
for (let child of children){
|
|
4625
|
+
let nodes = this.normalize(child, this.last);
|
|
4626
|
+
for (let node of nodes)this.proxyOf.nodes.push(node);
|
|
4627
|
+
}
|
|
4628
|
+
this.markDirty();
|
|
4629
|
+
return this;
|
|
5205
4630
|
}
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
for (let child of children)child.parent = node;
|
|
4631
|
+
cleanRaws(keepBetween) {
|
|
4632
|
+
super.cleanRaws(keepBetween);
|
|
4633
|
+
if (this.nodes) {
|
|
4634
|
+
for (let node of this.nodes)node.cleanRaws(keepBetween);
|
|
4635
|
+
}
|
|
5212
4636
|
}
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
{
|
|
5223
|
-
childIndex: 0,
|
|
5224
|
-
children: [],
|
|
5225
|
-
inputs: hydrateInputs(json, inputs),
|
|
5226
|
-
json
|
|
5227
|
-
}
|
|
5228
|
-
];
|
|
5229
|
-
while(stack.length > 0){
|
|
5230
|
-
let frame = stack[stack.length - 1];
|
|
5231
|
-
let jsonNodes = frame.json.nodes;
|
|
5232
|
-
if (jsonNodes && frame.childIndex < jsonNodes.length) {
|
|
5233
|
-
let childJson = jsonNodes[frame.childIndex];
|
|
5234
|
-
frame.childIndex += 1;
|
|
5235
|
-
stack.push({
|
|
5236
|
-
childIndex: 0,
|
|
5237
|
-
children: [],
|
|
5238
|
-
inputs: hydrateInputs(childJson, frame.inputs),
|
|
5239
|
-
json: childJson
|
|
5240
|
-
});
|
|
5241
|
-
continue;
|
|
4637
|
+
each(callback) {
|
|
4638
|
+
if (!this.proxyOf.nodes) return undefined;
|
|
4639
|
+
let iterator = this.getIterator();
|
|
4640
|
+
let index, result;
|
|
4641
|
+
while(this.indexes[iterator] < this.proxyOf.nodes.length){
|
|
4642
|
+
index = this.indexes[iterator];
|
|
4643
|
+
result = callback(this.proxyOf.nodes[index], index);
|
|
4644
|
+
if (result === false) break;
|
|
4645
|
+
this.indexes[iterator] += 1;
|
|
5242
4646
|
}
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
4647
|
+
delete this.indexes[iterator];
|
|
4648
|
+
return result;
|
|
4649
|
+
}
|
|
4650
|
+
every(condition) {
|
|
4651
|
+
return this.nodes.every(condition);
|
|
4652
|
+
}
|
|
4653
|
+
getIterator() {
|
|
4654
|
+
if (!this.lastEach) this.lastEach = 0;
|
|
4655
|
+
if (!this.indexes) this.indexes = {};
|
|
4656
|
+
this.lastEach += 1;
|
|
4657
|
+
let iterator = this.lastEach;
|
|
4658
|
+
this.indexes[iterator] = 0;
|
|
4659
|
+
return iterator;
|
|
4660
|
+
}
|
|
4661
|
+
getProxyProcessor() {
|
|
4662
|
+
return {
|
|
4663
|
+
get (node, prop) {
|
|
4664
|
+
if (prop === 'proxyOf') {
|
|
4665
|
+
return node;
|
|
4666
|
+
} else if (!node[prop]) {
|
|
4667
|
+
return node[prop];
|
|
4668
|
+
} else if (prop === 'each' || typeof prop === 'string' && prop.startsWith('walk')) {
|
|
4669
|
+
return (...args)=>{
|
|
4670
|
+
return node[prop](...args.map((i)=>{
|
|
4671
|
+
if (typeof i === 'function') {
|
|
4672
|
+
return (child, index)=>i(child.toProxy(), index);
|
|
4673
|
+
} else {
|
|
4674
|
+
return i;
|
|
4675
|
+
}
|
|
4676
|
+
}));
|
|
4677
|
+
};
|
|
4678
|
+
} else if (prop === 'every' || prop === 'some') {
|
|
4679
|
+
return (cb)=>{
|
|
4680
|
+
return node[prop]((child, ...other)=>cb(child.toProxy(), ...other));
|
|
4681
|
+
};
|
|
4682
|
+
} else if (prop === 'root') {
|
|
4683
|
+
return ()=>node.root().toProxy();
|
|
4684
|
+
} else if (prop === 'nodes') {
|
|
4685
|
+
return node.nodes.map((i)=>i.toProxy());
|
|
4686
|
+
} else if (prop === 'first' || prop === 'last') {
|
|
4687
|
+
return node[prop].toProxy();
|
|
4688
|
+
} else {
|
|
4689
|
+
return node[prop];
|
|
4690
|
+
}
|
|
4691
|
+
},
|
|
4692
|
+
set (node, prop, value) {
|
|
4693
|
+
if (node[prop] === value) return true;
|
|
4694
|
+
node[prop] = value;
|
|
4695
|
+
if (prop === 'name' || prop === 'params' || prop === 'selector') {
|
|
4696
|
+
node.markDirty();
|
|
4697
|
+
}
|
|
4698
|
+
return true;
|
|
4699
|
+
}
|
|
4700
|
+
};
|
|
4701
|
+
}
|
|
4702
|
+
index(child) {
|
|
4703
|
+
if (typeof child === 'number') return child;
|
|
4704
|
+
if (child.proxyOf) child = child.proxyOf;
|
|
4705
|
+
return this.proxyOf.nodes.indexOf(child);
|
|
4706
|
+
}
|
|
4707
|
+
insertAfter(exist, add) {
|
|
4708
|
+
let existIndex = this.index(exist);
|
|
4709
|
+
let nodes = this.normalize(add, this.proxyOf.nodes[existIndex]).reverse();
|
|
4710
|
+
existIndex = this.index(exist);
|
|
4711
|
+
for (let node of nodes)this.proxyOf.nodes.splice(existIndex + 1, 0, node);
|
|
4712
|
+
let index;
|
|
4713
|
+
for(let id in this.indexes){
|
|
4714
|
+
index = this.indexes[id];
|
|
4715
|
+
if (existIndex < index) {
|
|
4716
|
+
this.indexes[id] = index + nodes.length;
|
|
4717
|
+
}
|
|
5249
4718
|
}
|
|
4719
|
+
this.markDirty();
|
|
4720
|
+
return this;
|
|
5250
4721
|
}
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
constructor(stringify, root, opts, cssString){
|
|
5267
|
-
this.stringify = stringify;
|
|
5268
|
-
this.mapOpts = opts.map || {};
|
|
5269
|
-
this.root = root;
|
|
5270
|
-
this.opts = opts;
|
|
5271
|
-
this.css = cssString;
|
|
5272
|
-
this.originalCSS = cssString;
|
|
5273
|
-
this.usesFileUrls = !this.mapOpts.from && this.mapOpts.absolute;
|
|
5274
|
-
this.memoizedFileURLs = new Map();
|
|
5275
|
-
this.memoizedPaths = new Map();
|
|
5276
|
-
this.memoizedURLs = new Map();
|
|
4722
|
+
insertBefore(exist, add) {
|
|
4723
|
+
let existIndex = this.index(exist);
|
|
4724
|
+
let type = existIndex === 0 ? 'prepend' : false;
|
|
4725
|
+
let nodes = this.normalize(add, this.proxyOf.nodes[existIndex], type).reverse();
|
|
4726
|
+
existIndex = this.index(exist);
|
|
4727
|
+
for (let node of nodes)this.proxyOf.nodes.splice(existIndex, 0, node);
|
|
4728
|
+
let index;
|
|
4729
|
+
for(let id in this.indexes){
|
|
4730
|
+
index = this.indexes[id];
|
|
4731
|
+
if (existIndex <= index) {
|
|
4732
|
+
this.indexes[id] = index + nodes.length;
|
|
4733
|
+
}
|
|
4734
|
+
}
|
|
4735
|
+
this.markDirty();
|
|
4736
|
+
return this;
|
|
5277
4737
|
}
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
4738
|
+
normalize(nodes, sample) {
|
|
4739
|
+
if (typeof nodes === 'string') {
|
|
4740
|
+
nodes = cleanSource(parse(nodes).nodes);
|
|
4741
|
+
} else if (Array.isArray(nodes)) {
|
|
4742
|
+
nodes = nodes.slice(0);
|
|
4743
|
+
for (let i of nodes){
|
|
4744
|
+
if (i.parent) i.parent.removeChild(i, 'ignore');
|
|
4745
|
+
}
|
|
4746
|
+
} else if (nodes.type === 'root' && this.type !== 'document') {
|
|
4747
|
+
nodes = nodes.nodes.slice(0);
|
|
4748
|
+
for (let i of nodes){
|
|
4749
|
+
if (i.parent) i.parent.removeChild(i, 'ignore');
|
|
4750
|
+
}
|
|
4751
|
+
} else if (nodes.type) {
|
|
4752
|
+
nodes = [
|
|
4753
|
+
nodes
|
|
4754
|
+
];
|
|
4755
|
+
} else if (nodes.prop) {
|
|
4756
|
+
if (typeof nodes.value === 'undefined') {
|
|
4757
|
+
throw new Error('Value field is missed in node creation');
|
|
4758
|
+
} else if (typeof nodes.value !== 'string') {
|
|
4759
|
+
nodes.value = String(nodes.value);
|
|
4760
|
+
}
|
|
4761
|
+
nodes = [
|
|
4762
|
+
new Declaration(nodes)
|
|
4763
|
+
];
|
|
4764
|
+
} else if (nodes.selector) {
|
|
4765
|
+
nodes = [
|
|
4766
|
+
new Rule(nodes)
|
|
4767
|
+
];
|
|
4768
|
+
} else if (nodes.name) {
|
|
4769
|
+
nodes = [
|
|
4770
|
+
new AtRule(nodes)
|
|
4771
|
+
];
|
|
4772
|
+
} else if (nodes.text) {
|
|
4773
|
+
nodes = [
|
|
4774
|
+
new Comment(nodes)
|
|
4775
|
+
];
|
|
5286
4776
|
} else {
|
|
5287
|
-
|
|
4777
|
+
throw new Error('Unknown node type in node creation');
|
|
5288
4778
|
}
|
|
5289
|
-
let
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
let map;
|
|
5298
|
-
if (this.mapOpts.sourcesContent === false) {
|
|
5299
|
-
map = new SourceMapConsumer(prev.text);
|
|
5300
|
-
if (map.sourcesContent) {
|
|
5301
|
-
map.sourcesContent = null;
|
|
4779
|
+
let processed = nodes.map((i)=>{
|
|
4780
|
+
/* c8 ignore next */ if (!i[my]) Container.rebuild(i);
|
|
4781
|
+
i = i.proxyOf;
|
|
4782
|
+
if (i.parent) i.parent.removeChild(i);
|
|
4783
|
+
if (i[isClean]) markDirtyUp(i);
|
|
4784
|
+
if (typeof i.raws.before === 'undefined') {
|
|
4785
|
+
if (sample && typeof sample.raws.before !== 'undefined') {
|
|
4786
|
+
i.raws.before = sample.raws.before.replace(/\S/g, '');
|
|
5302
4787
|
}
|
|
5303
|
-
} else {
|
|
5304
|
-
map = prev.consumer();
|
|
5305
4788
|
}
|
|
5306
|
-
|
|
5307
|
-
|
|
4789
|
+
i.parent = this.proxyOf;
|
|
4790
|
+
return i;
|
|
4791
|
+
});
|
|
4792
|
+
return processed;
|
|
5308
4793
|
}
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
let
|
|
5313
|
-
for(let
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
if (node.text.startsWith('# sourceMappingURL=')) {
|
|
5317
|
-
this.root.removeChild(i);
|
|
5318
|
-
}
|
|
4794
|
+
prepend(...children) {
|
|
4795
|
+
children = children.reverse();
|
|
4796
|
+
for (let child of children){
|
|
4797
|
+
let nodes = this.normalize(child, this.first, 'prepend').reverse();
|
|
4798
|
+
for (let node of nodes)this.proxyOf.nodes.unshift(node);
|
|
4799
|
+
for(let id in this.indexes){
|
|
4800
|
+
this.indexes[id] = this.indexes[id] + nodes.length;
|
|
5319
4801
|
}
|
|
5320
|
-
}
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
4802
|
+
}
|
|
4803
|
+
this.markDirty();
|
|
4804
|
+
return this;
|
|
4805
|
+
}
|
|
4806
|
+
push(child) {
|
|
4807
|
+
child.parent = this;
|
|
4808
|
+
this.proxyOf.nodes.push(child);
|
|
4809
|
+
return this;
|
|
4810
|
+
}
|
|
4811
|
+
removeAll() {
|
|
4812
|
+
for (let node of this.proxyOf.nodes)node.parent = undefined;
|
|
4813
|
+
this.proxyOf.nodes = [];
|
|
4814
|
+
this.markDirty();
|
|
4815
|
+
return this;
|
|
4816
|
+
}
|
|
4817
|
+
removeChild(child) {
|
|
4818
|
+
child = this.index(child);
|
|
4819
|
+
this.proxyOf.nodes[child].parent = undefined;
|
|
4820
|
+
this.proxyOf.nodes.splice(child, 1);
|
|
4821
|
+
let index;
|
|
4822
|
+
for(let id in this.indexes){
|
|
4823
|
+
index = this.indexes[id];
|
|
4824
|
+
if (index >= child) {
|
|
4825
|
+
this.indexes[id] = index - 1;
|
|
5329
4826
|
}
|
|
5330
4827
|
}
|
|
4828
|
+
this.markDirty();
|
|
4829
|
+
return this;
|
|
5331
4830
|
}
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
} else {
|
|
5337
|
-
let result = '';
|
|
5338
|
-
this.stringify(this.root, (i)=>{
|
|
5339
|
-
result += i;
|
|
5340
|
-
});
|
|
5341
|
-
return [
|
|
5342
|
-
result
|
|
5343
|
-
];
|
|
4831
|
+
replaceValues(pattern, opts, callback) {
|
|
4832
|
+
if (!callback) {
|
|
4833
|
+
callback = opts;
|
|
4834
|
+
opts = {};
|
|
5344
4835
|
}
|
|
4836
|
+
this.walkDecls((decl)=>{
|
|
4837
|
+
if (opts.props && !opts.props.includes(decl.prop)) return;
|
|
4838
|
+
if (opts.fast && !decl.value.includes(opts.fast)) return;
|
|
4839
|
+
decl.value = decl.value.replace(pattern, callback);
|
|
4840
|
+
});
|
|
4841
|
+
this.markDirty();
|
|
4842
|
+
return this;
|
|
5345
4843
|
}
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
})
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
}
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
4844
|
+
some(condition) {
|
|
4845
|
+
return this.nodes.some(condition);
|
|
4846
|
+
}
|
|
4847
|
+
walk(callback) {
|
|
4848
|
+
return this.each((child, i)=>{
|
|
4849
|
+
let result;
|
|
4850
|
+
try {
|
|
4851
|
+
result = callback(child, i);
|
|
4852
|
+
} catch (e) {
|
|
4853
|
+
throw child.addToError(e);
|
|
4854
|
+
}
|
|
4855
|
+
if (result !== false && child.walk) {
|
|
4856
|
+
result = child.walk(callback);
|
|
4857
|
+
}
|
|
4858
|
+
return result;
|
|
4859
|
+
});
|
|
4860
|
+
}
|
|
4861
|
+
walkAtRules(name, callback) {
|
|
4862
|
+
if (!callback) {
|
|
4863
|
+
callback = name;
|
|
4864
|
+
return this.walk((child, i)=>{
|
|
4865
|
+
if (child.type === 'atrule') {
|
|
4866
|
+
return callback(child, i);
|
|
4867
|
+
}
|
|
5370
4868
|
});
|
|
5371
4869
|
}
|
|
5372
|
-
if (
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
];
|
|
5379
|
-
} else {
|
|
5380
|
-
return [
|
|
5381
|
-
this.css,
|
|
5382
|
-
this.map
|
|
5383
|
-
];
|
|
4870
|
+
if (name instanceof RegExp) {
|
|
4871
|
+
return this.walk((child, i)=>{
|
|
4872
|
+
if (child.type === 'atrule' && name.test(child.name)) {
|
|
4873
|
+
return callback(child, i);
|
|
4874
|
+
}
|
|
4875
|
+
});
|
|
5384
4876
|
}
|
|
4877
|
+
return this.walk((child, i)=>{
|
|
4878
|
+
if (child.type === 'atrule' && child.name === name) {
|
|
4879
|
+
return callback(child, i);
|
|
4880
|
+
}
|
|
4881
|
+
});
|
|
5385
4882
|
}
|
|
5386
|
-
|
|
5387
|
-
this.
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
4883
|
+
walkComments(callback) {
|
|
4884
|
+
return this.walk((child, i)=>{
|
|
4885
|
+
if (child.type === 'comment') {
|
|
4886
|
+
return callback(child, i);
|
|
4887
|
+
}
|
|
5391
4888
|
});
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
},
|
|
5400
|
-
original: {
|
|
5401
|
-
column: 0,
|
|
5402
|
-
line: 0
|
|
5403
|
-
},
|
|
5404
|
-
source: ''
|
|
5405
|
-
};
|
|
5406
|
-
let last, lines;
|
|
5407
|
-
this.stringify(this.root, (str, node, type)=>{
|
|
5408
|
-
this.css += str;
|
|
5409
|
-
if (node && type !== 'end') {
|
|
5410
|
-
mapping.generated.line = line;
|
|
5411
|
-
mapping.generated.column = column - 1;
|
|
5412
|
-
if (node.source && node.source.start) {
|
|
5413
|
-
mapping.source = this.sourcePath(node);
|
|
5414
|
-
mapping.original.line = node.source.start.line;
|
|
5415
|
-
mapping.original.column = node.source.start.column - 1;
|
|
5416
|
-
this.map.addMapping(mapping);
|
|
5417
|
-
} else {
|
|
5418
|
-
mapping.source = noSource;
|
|
5419
|
-
mapping.original.line = 1;
|
|
5420
|
-
mapping.original.column = 0;
|
|
5421
|
-
this.map.addMapping(mapping);
|
|
4889
|
+
}
|
|
4890
|
+
walkDecls(prop, callback) {
|
|
4891
|
+
if (!callback) {
|
|
4892
|
+
callback = prop;
|
|
4893
|
+
return this.walk((child, i)=>{
|
|
4894
|
+
if (child.type === 'decl') {
|
|
4895
|
+
return callback(child, i);
|
|
5422
4896
|
}
|
|
4897
|
+
});
|
|
4898
|
+
}
|
|
4899
|
+
if (prop instanceof RegExp) {
|
|
4900
|
+
return this.walk((child, i)=>{
|
|
4901
|
+
if (child.type === 'decl' && prop.test(child.prop)) {
|
|
4902
|
+
return callback(child, i);
|
|
4903
|
+
}
|
|
4904
|
+
});
|
|
4905
|
+
}
|
|
4906
|
+
return this.walk((child, i)=>{
|
|
4907
|
+
if (child.type === 'decl' && child.prop === prop) {
|
|
4908
|
+
return callback(child, i);
|
|
5423
4909
|
}
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
if (
|
|
5438
|
-
|
|
5439
|
-
mapping.source = this.sourcePath(node);
|
|
5440
|
-
mapping.original.line = node.source.end.line;
|
|
5441
|
-
mapping.original.column = node.source.end.column - 1;
|
|
5442
|
-
mapping.generated.line = line;
|
|
5443
|
-
mapping.generated.column = column - 2;
|
|
5444
|
-
this.map.addMapping(mapping);
|
|
5445
|
-
} else {
|
|
5446
|
-
mapping.source = noSource;
|
|
5447
|
-
mapping.original.line = 1;
|
|
5448
|
-
mapping.original.column = 0;
|
|
5449
|
-
mapping.generated.line = line;
|
|
5450
|
-
mapping.generated.column = column - 1;
|
|
5451
|
-
this.map.addMapping(mapping);
|
|
5452
|
-
}
|
|
4910
|
+
});
|
|
4911
|
+
}
|
|
4912
|
+
walkRules(selector, callback) {
|
|
4913
|
+
if (!callback) {
|
|
4914
|
+
callback = selector;
|
|
4915
|
+
return this.walk((child, i)=>{
|
|
4916
|
+
if (child.type === 'rule') {
|
|
4917
|
+
return callback(child, i);
|
|
4918
|
+
}
|
|
4919
|
+
});
|
|
4920
|
+
}
|
|
4921
|
+
if (selector instanceof RegExp) {
|
|
4922
|
+
return this.walk((child, i)=>{
|
|
4923
|
+
if (child.type === 'rule' && selector.test(child.selector)) {
|
|
4924
|
+
return callback(child, i);
|
|
5453
4925
|
}
|
|
4926
|
+
});
|
|
4927
|
+
}
|
|
4928
|
+
return this.walk((child, i)=>{
|
|
4929
|
+
if (child.type === 'rule' && child.selector === selector) {
|
|
4930
|
+
return callback(child, i);
|
|
5454
4931
|
}
|
|
5455
4932
|
});
|
|
5456
4933
|
}
|
|
5457
|
-
|
|
5458
|
-
if (this.
|
|
5459
|
-
|
|
5460
|
-
}
|
|
5461
|
-
if (typeof this.mapOpts.annotation !== 'undefined') {
|
|
5462
|
-
return this.mapOpts.annotation;
|
|
5463
|
-
}
|
|
5464
|
-
if (this.previous().length) {
|
|
5465
|
-
return this.previous().some((i)=>i.annotation);
|
|
5466
|
-
}
|
|
5467
|
-
return true;
|
|
4934
|
+
get first() {
|
|
4935
|
+
if (!this.proxyOf.nodes) return undefined;
|
|
4936
|
+
return this.proxyOf.nodes[0];
|
|
5468
4937
|
}
|
|
5469
|
-
|
|
5470
|
-
if (
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
4938
|
+
get last() {
|
|
4939
|
+
if (!this.proxyOf.nodes) return undefined;
|
|
4940
|
+
return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
|
|
4941
|
+
}
|
|
4942
|
+
}
|
|
4943
|
+
Container.registerParse = (dependant)=>{
|
|
4944
|
+
parse = dependant;
|
|
4945
|
+
};
|
|
4946
|
+
Container.registerRule = (dependant)=>{
|
|
4947
|
+
Rule = dependant;
|
|
4948
|
+
};
|
|
4949
|
+
Container.registerAtRule = (dependant)=>{
|
|
4950
|
+
AtRule = dependant;
|
|
4951
|
+
};
|
|
4952
|
+
Container.registerRoot = (dependant)=>{
|
|
4953
|
+
Root = dependant;
|
|
4954
|
+
};
|
|
4955
|
+
module.exports = Container;
|
|
4956
|
+
Container.default = Container;
|
|
4957
|
+
/* c8 ignore start */ Container.rebuild = (node)=>{
|
|
4958
|
+
if (node.type === 'atrule') {
|
|
4959
|
+
Object.setPrototypeOf(node, AtRule.prototype);
|
|
4960
|
+
} else if (node.type === 'rule') {
|
|
4961
|
+
Object.setPrototypeOf(node, Rule.prototype);
|
|
4962
|
+
} else if (node.type === 'decl') {
|
|
4963
|
+
Object.setPrototypeOf(node, Declaration.prototype);
|
|
4964
|
+
} else if (node.type === 'comment') {
|
|
4965
|
+
Object.setPrototypeOf(node, Comment.prototype);
|
|
4966
|
+
} else if (node.type === 'root') {
|
|
4967
|
+
Object.setPrototypeOf(node, Root.prototype);
|
|
4968
|
+
}
|
|
4969
|
+
node[my] = true;
|
|
4970
|
+
if (node.nodes) {
|
|
4971
|
+
node.nodes.forEach((child)=>{
|
|
4972
|
+
Container.rebuild(child);
|
|
4973
|
+
});
|
|
4974
|
+
}
|
|
4975
|
+
}; /* c8 ignore stop */
|
|
4976
|
+
}),
|
|
4977
|
+
"[project]/node_modules/postcss/lib/document.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
4978
|
+
"use strict";
|
|
4979
|
+
|
|
4980
|
+
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)");
|
|
4981
|
+
let LazyResult, Processor;
|
|
4982
|
+
class Document extends Container {
|
|
4983
|
+
constructor(defaults){
|
|
4984
|
+
// type needs to be passed to super, otherwise child roots won't be normalized correctly
|
|
4985
|
+
super({
|
|
4986
|
+
type: 'document',
|
|
4987
|
+
...defaults
|
|
4988
|
+
});
|
|
4989
|
+
if (!this.nodes) {
|
|
4990
|
+
this.nodes = [];
|
|
5479
4991
|
}
|
|
5480
|
-
return true;
|
|
5481
4992
|
}
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
4993
|
+
toResult(opts = {}) {
|
|
4994
|
+
let lazy = new LazyResult(new Processor(), this, opts);
|
|
4995
|
+
return lazy.stringify();
|
|
4996
|
+
}
|
|
4997
|
+
}
|
|
4998
|
+
Document.registerLazyResult = (dependant)=>{
|
|
4999
|
+
LazyResult = dependant;
|
|
5000
|
+
};
|
|
5001
|
+
Document.registerProcessor = (dependant)=>{
|
|
5002
|
+
Processor = dependant;
|
|
5003
|
+
};
|
|
5004
|
+
module.exports = Document;
|
|
5005
|
+
Document.default = Document;
|
|
5006
|
+
}),
|
|
5007
|
+
"[project]/node_modules/postcss/lib/warn-once.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
5008
|
+
"use strict";
|
|
5009
|
+
|
|
5010
|
+
/* eslint-disable no-console */ let printed = {};
|
|
5011
|
+
module.exports = function warnOnce(message) {
|
|
5012
|
+
if (printed[message]) return;
|
|
5013
|
+
printed[message] = true;
|
|
5014
|
+
if (typeof console !== 'undefined' && console.warn) {
|
|
5015
|
+
console.warn(message);
|
|
5016
|
+
}
|
|
5017
|
+
};
|
|
5018
|
+
}),
|
|
5019
|
+
"[project]/node_modules/postcss/lib/warning.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
5020
|
+
"use strict";
|
|
5021
|
+
|
|
5022
|
+
class Warning {
|
|
5023
|
+
constructor(text, opts = {}){
|
|
5024
|
+
this.type = 'warning';
|
|
5025
|
+
this.text = text;
|
|
5026
|
+
if (opts.node && opts.node.source) {
|
|
5027
|
+
let range = opts.node.rangeBy(opts);
|
|
5028
|
+
this.line = range.start.line;
|
|
5029
|
+
this.column = range.start.column;
|
|
5030
|
+
this.endLine = range.end.line;
|
|
5031
|
+
this.endColumn = range.end.column;
|
|
5485
5032
|
}
|
|
5486
|
-
|
|
5033
|
+
for(let opt in opts)this[opt] = opts[opt];
|
|
5487
5034
|
}
|
|
5488
|
-
|
|
5489
|
-
if (
|
|
5490
|
-
return this.
|
|
5035
|
+
toString() {
|
|
5036
|
+
if (this.node) {
|
|
5037
|
+
return this.node.error(this.text, {
|
|
5038
|
+
index: this.index,
|
|
5039
|
+
plugin: this.plugin,
|
|
5040
|
+
word: this.word
|
|
5041
|
+
}).message;
|
|
5491
5042
|
}
|
|
5492
|
-
if (this.
|
|
5493
|
-
return this.
|
|
5043
|
+
if (this.plugin) {
|
|
5044
|
+
return this.plugin + ': ' + this.text;
|
|
5494
5045
|
}
|
|
5495
|
-
return
|
|
5046
|
+
return this.text;
|
|
5496
5047
|
}
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5048
|
+
}
|
|
5049
|
+
module.exports = Warning;
|
|
5050
|
+
Warning.default = Warning;
|
|
5051
|
+
}),
|
|
5052
|
+
"[project]/node_modules/postcss/lib/result.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
5053
|
+
"use strict";
|
|
5054
|
+
|
|
5055
|
+
let Warning = __turbopack_context__.r("[project]/node_modules/postcss/lib/warning.js [postcss] (ecmascript)");
|
|
5056
|
+
class Result {
|
|
5057
|
+
constructor(processor, root, opts){
|
|
5058
|
+
this.processor = processor;
|
|
5059
|
+
this.messages = [];
|
|
5060
|
+
this.root = root;
|
|
5061
|
+
this.opts = opts;
|
|
5062
|
+
this.css = undefined;
|
|
5063
|
+
this.map = undefined;
|
|
5505
5064
|
}
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
if (file.charCodeAt(0) === 60 /* `<` */ ) return file;
|
|
5509
|
-
if (/^\w+:\/\//.test(file)) return file;
|
|
5510
|
-
let cached = this.memoizedPaths.get(file);
|
|
5511
|
-
if (cached) return cached;
|
|
5512
|
-
let from = this.opts.to ? dirname(this.opts.to) : '.';
|
|
5513
|
-
if (typeof this.mapOpts.annotation === 'string') {
|
|
5514
|
-
from = dirname(resolve(from, this.mapOpts.annotation));
|
|
5515
|
-
}
|
|
5516
|
-
let path = relative(from, file);
|
|
5517
|
-
this.memoizedPaths.set(file, path);
|
|
5518
|
-
return path;
|
|
5065
|
+
toString() {
|
|
5066
|
+
return this.css;
|
|
5519
5067
|
}
|
|
5520
|
-
|
|
5521
|
-
if (!
|
|
5522
|
-
this.
|
|
5523
|
-
|
|
5524
|
-
this.root.walk((node)=>{
|
|
5525
|
-
if (node.source && node.source.input.map) {
|
|
5526
|
-
let map = node.source.input.map;
|
|
5527
|
-
if (!this.previousMaps.includes(map)) {
|
|
5528
|
-
this.previousMaps.push(map);
|
|
5529
|
-
}
|
|
5530
|
-
}
|
|
5531
|
-
});
|
|
5532
|
-
} else {
|
|
5533
|
-
let input = new Input(this.originalCSS, this.opts);
|
|
5534
|
-
if (input.map) this.previousMaps.push(input.map);
|
|
5068
|
+
warn(text, opts = {}) {
|
|
5069
|
+
if (!opts.plugin) {
|
|
5070
|
+
if (this.lastPlugin && this.lastPlugin.postcssPlugin) {
|
|
5071
|
+
opts.plugin = this.lastPlugin.postcssPlugin;
|
|
5535
5072
|
}
|
|
5536
5073
|
}
|
|
5537
|
-
|
|
5074
|
+
let warning = new Warning(text, opts);
|
|
5075
|
+
this.messages.push(warning);
|
|
5076
|
+
return warning;
|
|
5538
5077
|
}
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5078
|
+
warnings() {
|
|
5079
|
+
return this.messages.filter((i)=>i.type === 'warning');
|
|
5080
|
+
}
|
|
5081
|
+
get content() {
|
|
5082
|
+
return this.css;
|
|
5083
|
+
}
|
|
5084
|
+
}
|
|
5085
|
+
module.exports = Result;
|
|
5086
|
+
Result.default = Result;
|
|
5087
|
+
}),
|
|
5088
|
+
"[project]/node_modules/postcss/lib/at-rule.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
5089
|
+
"use strict";
|
|
5090
|
+
|
|
5091
|
+
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)");
|
|
5092
|
+
class AtRule extends Container {
|
|
5093
|
+
constructor(defaults){
|
|
5094
|
+
super(defaults);
|
|
5095
|
+
this.type = 'atrule';
|
|
5096
|
+
}
|
|
5097
|
+
append(...children) {
|
|
5098
|
+
if (!this.proxyOf.nodes) this.nodes = [];
|
|
5099
|
+
return super.append(...children);
|
|
5100
|
+
}
|
|
5101
|
+
prepend(...children) {
|
|
5102
|
+
if (!this.proxyOf.nodes) this.nodes = [];
|
|
5103
|
+
return super.prepend(...children);
|
|
5104
|
+
}
|
|
5105
|
+
}
|
|
5106
|
+
module.exports = AtRule;
|
|
5107
|
+
AtRule.default = AtRule;
|
|
5108
|
+
Container.registerAtRule(AtRule);
|
|
5109
|
+
}),
|
|
5110
|
+
"[project]/node_modules/postcss/lib/root.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
5111
|
+
"use strict";
|
|
5112
|
+
|
|
5113
|
+
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)");
|
|
5114
|
+
let LazyResult, Processor;
|
|
5115
|
+
class Root extends Container {
|
|
5116
|
+
constructor(defaults){
|
|
5117
|
+
super(defaults);
|
|
5118
|
+
this.type = 'root';
|
|
5119
|
+
if (!this.nodes) this.nodes = [];
|
|
5120
|
+
}
|
|
5121
|
+
normalize(child, sample, type) {
|
|
5122
|
+
let nodes = super.normalize(child);
|
|
5123
|
+
if (sample) {
|
|
5124
|
+
if (type === 'prepend') {
|
|
5125
|
+
if (this.nodes.length > 1) {
|
|
5126
|
+
sample.raws.before = this.nodes[1].raws.before;
|
|
5127
|
+
} else {
|
|
5128
|
+
delete sample.raws.before;
|
|
5550
5129
|
}
|
|
5551
|
-
})
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5130
|
+
} else if (this.first !== sample) {
|
|
5131
|
+
for (let node of nodes){
|
|
5132
|
+
node.raws.before = sample.raws.before;
|
|
5133
|
+
}
|
|
5134
|
+
}
|
|
5555
5135
|
}
|
|
5136
|
+
return nodes;
|
|
5556
5137
|
}
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
return this.toFileUrl(node.source.input.from);
|
|
5562
|
-
} else {
|
|
5563
|
-
return this.toUrl(this.path(node.source.input.from));
|
|
5138
|
+
removeChild(child, ignore) {
|
|
5139
|
+
let index = this.index(child);
|
|
5140
|
+
if (!ignore && index === 0 && this.nodes.length > 1) {
|
|
5141
|
+
this.nodes[1].raws.before = this.nodes[index].raws.before;
|
|
5564
5142
|
}
|
|
5143
|
+
return super.removeChild(child);
|
|
5565
5144
|
}
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
} else //TURBOPACK unreachable
|
|
5570
|
-
;
|
|
5571
|
-
}
|
|
5572
|
-
toFileUrl(path) {
|
|
5573
|
-
let cached = this.memoizedFileURLs.get(path);
|
|
5574
|
-
if (cached) return cached;
|
|
5575
|
-
if ("TURBOPACK compile-time truthy", 1) {
|
|
5576
|
-
let fileURL = pathToFileURL(path).toString();
|
|
5577
|
-
this.memoizedFileURLs.set(path, fileURL);
|
|
5578
|
-
return fileURL;
|
|
5579
|
-
} else //TURBOPACK unreachable
|
|
5580
|
-
;
|
|
5145
|
+
toResult(opts = {}) {
|
|
5146
|
+
let lazy = new LazyResult(new Processor(), this, opts);
|
|
5147
|
+
return lazy.stringify();
|
|
5581
5148
|
}
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5149
|
+
}
|
|
5150
|
+
Root.registerLazyResult = (dependant)=>{
|
|
5151
|
+
LazyResult = dependant;
|
|
5152
|
+
};
|
|
5153
|
+
Root.registerProcessor = (dependant)=>{
|
|
5154
|
+
Processor = dependant;
|
|
5155
|
+
};
|
|
5156
|
+
module.exports = Root;
|
|
5157
|
+
Root.default = Root;
|
|
5158
|
+
Container.registerRoot(Root);
|
|
5159
|
+
}),
|
|
5160
|
+
"[project]/node_modules/postcss/lib/list.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
5161
|
+
"use strict";
|
|
5162
|
+
|
|
5163
|
+
let list = {
|
|
5164
|
+
comma (string) {
|
|
5165
|
+
return list.split(string, [
|
|
5166
|
+
','
|
|
5167
|
+
], true);
|
|
5168
|
+
},
|
|
5169
|
+
space (string) {
|
|
5170
|
+
let spaces = [
|
|
5171
|
+
' ',
|
|
5172
|
+
'\n',
|
|
5173
|
+
'\t'
|
|
5174
|
+
];
|
|
5175
|
+
return list.split(string, spaces);
|
|
5176
|
+
},
|
|
5177
|
+
split (string, separators, last) {
|
|
5178
|
+
let array = [];
|
|
5179
|
+
let current = '';
|
|
5180
|
+
let split = false;
|
|
5181
|
+
let func = 0;
|
|
5182
|
+
let inQuote = false;
|
|
5183
|
+
let prevQuote = '';
|
|
5184
|
+
let escape = false;
|
|
5185
|
+
for (let letter of string){
|
|
5186
|
+
if (escape) {
|
|
5187
|
+
escape = false;
|
|
5188
|
+
} else if (letter === '\\') {
|
|
5189
|
+
escape = true;
|
|
5190
|
+
} else if (inQuote) {
|
|
5191
|
+
if (letter === prevQuote) {
|
|
5192
|
+
inQuote = false;
|
|
5193
|
+
}
|
|
5194
|
+
} else if (letter === '"' || letter === "'") {
|
|
5195
|
+
inQuote = true;
|
|
5196
|
+
prevQuote = letter;
|
|
5197
|
+
} else if (letter === '(') {
|
|
5198
|
+
func += 1;
|
|
5199
|
+
} else if (letter === ')') {
|
|
5200
|
+
if (func > 0) func -= 1;
|
|
5201
|
+
} else if (func === 0) {
|
|
5202
|
+
if (separators.includes(letter)) split = true;
|
|
5203
|
+
}
|
|
5204
|
+
if (split) {
|
|
5205
|
+
if (current !== '') array.push(current.trim());
|
|
5206
|
+
current = '';
|
|
5207
|
+
split = false;
|
|
5208
|
+
} else {
|
|
5209
|
+
current += letter;
|
|
5210
|
+
}
|
|
5587
5211
|
}
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5212
|
+
if (last || current !== '') array.push(current.trim());
|
|
5213
|
+
return array;
|
|
5214
|
+
}
|
|
5215
|
+
};
|
|
5216
|
+
module.exports = list;
|
|
5217
|
+
list.default = list;
|
|
5218
|
+
}),
|
|
5219
|
+
"[project]/node_modules/postcss/lib/rule.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
5220
|
+
"use strict";
|
|
5221
|
+
|
|
5222
|
+
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)");
|
|
5223
|
+
let list = __turbopack_context__.r("[project]/node_modules/postcss/lib/list.js [postcss] (ecmascript)");
|
|
5224
|
+
class Rule extends Container {
|
|
5225
|
+
constructor(defaults){
|
|
5226
|
+
super(defaults);
|
|
5227
|
+
this.type = 'rule';
|
|
5228
|
+
if (!this.nodes) this.nodes = [];
|
|
5229
|
+
}
|
|
5230
|
+
get selectors() {
|
|
5231
|
+
return list.comma(this.selector);
|
|
5232
|
+
}
|
|
5233
|
+
set selectors(values) {
|
|
5234
|
+
let match = this.selector ? this.selector.match(/,\s*/) : null;
|
|
5235
|
+
let sep = match ? match[0] : ',' + this.raw('between', 'beforeOpen');
|
|
5236
|
+
this.selector = values.join(sep);
|
|
5591
5237
|
}
|
|
5592
5238
|
}
|
|
5593
|
-
module.exports =
|
|
5239
|
+
module.exports = Rule;
|
|
5240
|
+
Rule.default = Rule;
|
|
5241
|
+
Container.registerRule(Rule);
|
|
5594
5242
|
}),
|
|
5595
5243
|
"[project]/node_modules/postcss/lib/parser.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
5596
5244
|
"use strict";
|
|
5597
5245
|
|
|
5598
|
-
let AtRule = __turbopack_context__.r("[project]/node_modules/postcss/lib/at-rule.js [postcss] (ecmascript)");
|
|
5599
|
-
let Comment = __turbopack_context__.r("[project]/node_modules/postcss/lib/comment.js [postcss] (ecmascript)");
|
|
5600
5246
|
let Declaration = __turbopack_context__.r("[project]/node_modules/postcss/lib/declaration.js [postcss] (ecmascript)");
|
|
5247
|
+
let tokenizer = __turbopack_context__.r("[project]/node_modules/postcss/lib/tokenize.js [postcss] (ecmascript)");
|
|
5248
|
+
let Comment = __turbopack_context__.r("[project]/node_modules/postcss/lib/comment.js [postcss] (ecmascript)");
|
|
5249
|
+
let AtRule = __turbopack_context__.r("[project]/node_modules/postcss/lib/at-rule.js [postcss] (ecmascript)");
|
|
5601
5250
|
let Root = __turbopack_context__.r("[project]/node_modules/postcss/lib/root.js [postcss] (ecmascript)");
|
|
5602
5251
|
let Rule = __turbopack_context__.r("[project]/node_modules/postcss/lib/rule.js [postcss] (ecmascript)");
|
|
5603
|
-
let tokenizer = __turbopack_context__.r("[project]/node_modules/postcss/lib/tokenize.js [postcss] (ecmascript)");
|
|
5604
5252
|
const SAFE_COMMENT_NEIGHBOR = {
|
|
5605
5253
|
empty: true,
|
|
5606
5254
|
space: true
|
|
@@ -5612,11 +5260,6 @@ function findLastWithPosition(tokens) {
|
|
|
5612
5260
|
if (pos) return pos;
|
|
5613
5261
|
}
|
|
5614
5262
|
}
|
|
5615
|
-
function tokensToString(tokens, from, to) {
|
|
5616
|
-
let result = '';
|
|
5617
|
-
for(let i = from; i < to; i++)result += tokens[i][1];
|
|
5618
|
-
return result;
|
|
5619
|
-
}
|
|
5620
5263
|
class Parser {
|
|
5621
5264
|
constructor(input){
|
|
5622
5265
|
this.input = input;
|
|
@@ -5624,6 +5267,7 @@ class Parser {
|
|
|
5624
5267
|
this.current = this.root;
|
|
5625
5268
|
this.spaces = '';
|
|
5626
5269
|
this.semicolon = false;
|
|
5270
|
+
this.customProperty = false;
|
|
5627
5271
|
this.createTokenizer();
|
|
5628
5272
|
this.root.source = {
|
|
5629
5273
|
input,
|
|
@@ -5724,15 +5368,14 @@ class Parser {
|
|
|
5724
5368
|
if (founded === 2) break;
|
|
5725
5369
|
}
|
|
5726
5370
|
}
|
|
5727
|
-
// If the token is a word, e.g. `!important`, `red` or any other valid
|
|
5728
|
-
//
|
|
5729
|
-
//
|
|
5730
|
-
// after that one we do +1 to get the next one.
|
|
5371
|
+
// If the token is a word, e.g. `!important`, `red` or any other valid property's value.
|
|
5372
|
+
// Then we need to return the colon after that word token. [3] is the "end" colon of that word.
|
|
5373
|
+
// And because we need it after that one we do +1 to get the next one.
|
|
5731
5374
|
throw this.input.error('Missed semicolon', token[0] === 'word' ? token[3] + 1 : token[2]);
|
|
5732
5375
|
}
|
|
5733
5376
|
colon(tokens) {
|
|
5734
5377
|
let brackets = 0;
|
|
5735
|
-
let
|
|
5378
|
+
let token, type, prev;
|
|
5736
5379
|
for (let [i, element] of tokens.entries()){
|
|
5737
5380
|
token = element;
|
|
5738
5381
|
type = token[0];
|
|
@@ -5761,7 +5404,7 @@ class Parser {
|
|
|
5761
5404
|
node.source.end = this.getPosition(token[3] || token[2]);
|
|
5762
5405
|
node.source.end.offset++;
|
|
5763
5406
|
let text = token[1].slice(2, -2);
|
|
5764
|
-
if (
|
|
5407
|
+
if (/^\s*$/.test(text)) {
|
|
5765
5408
|
node.text = '';
|
|
5766
5409
|
node.raws.left = text;
|
|
5767
5410
|
node.raws.right = '';
|
|
@@ -5785,49 +5428,46 @@ class Parser {
|
|
|
5785
5428
|
}
|
|
5786
5429
|
node.source.end = this.getPosition(last[3] || last[2] || findLastWithPosition(tokens));
|
|
5787
5430
|
node.source.end.offset++;
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
tokens[start]
|
|
5792
|
-
]);
|
|
5793
|
-
start++;
|
|
5431
|
+
while(tokens[0][0] !== 'word'){
|
|
5432
|
+
if (tokens.length === 1) this.unknownWord(tokens);
|
|
5433
|
+
node.raws.before += tokens.shift()[1];
|
|
5794
5434
|
}
|
|
5795
|
-
node.
|
|
5796
|
-
node.
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
let type = tokens[start][0];
|
|
5435
|
+
node.source.start = this.getPosition(tokens[0][2]);
|
|
5436
|
+
node.prop = '';
|
|
5437
|
+
while(tokens.length){
|
|
5438
|
+
let type = tokens[0][0];
|
|
5800
5439
|
if (type === ':' || type === 'space' || type === 'comment') {
|
|
5801
5440
|
break;
|
|
5802
5441
|
}
|
|
5803
|
-
|
|
5442
|
+
node.prop += tokens.shift()[1];
|
|
5804
5443
|
}
|
|
5805
|
-
node.
|
|
5806
|
-
let betweenStart = start;
|
|
5444
|
+
node.raws.between = '';
|
|
5807
5445
|
let token;
|
|
5808
|
-
while(
|
|
5809
|
-
token = tokens
|
|
5810
|
-
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5446
|
+
while(tokens.length){
|
|
5447
|
+
token = tokens.shift();
|
|
5448
|
+
if (token[0] === ':') {
|
|
5449
|
+
node.raws.between += token[1];
|
|
5450
|
+
break;
|
|
5451
|
+
} else {
|
|
5452
|
+
if (token[0] === 'word' && /\w/.test(token[1])) {
|
|
5453
|
+
this.unknownWord([
|
|
5454
|
+
token
|
|
5455
|
+
]);
|
|
5456
|
+
}
|
|
5457
|
+
node.raws.between += token[1];
|
|
5816
5458
|
}
|
|
5817
5459
|
}
|
|
5818
|
-
node.raws.between = tokensToString(tokens, betweenStart, start);
|
|
5819
5460
|
if (node.prop[0] === '_' || node.prop[0] === '*') {
|
|
5820
5461
|
node.raws.before += node.prop[0];
|
|
5821
5462
|
node.prop = node.prop.slice(1);
|
|
5822
5463
|
}
|
|
5823
|
-
let
|
|
5824
|
-
|
|
5825
|
-
|
|
5464
|
+
let firstSpaces = [];
|
|
5465
|
+
let next;
|
|
5466
|
+
while(tokens.length){
|
|
5467
|
+
next = tokens[0][0];
|
|
5826
5468
|
if (next !== 'space' && next !== 'comment') break;
|
|
5827
|
-
|
|
5469
|
+
firstSpaces.push(tokens.shift());
|
|
5828
5470
|
}
|
|
5829
|
-
let firstSpaces = tokens.slice(firstSpacesStart, start);
|
|
5830
|
-
tokens = tokens.slice(start);
|
|
5831
5471
|
this.precheckMissedSemicolon(tokens);
|
|
5832
5472
|
for(let i = tokens.length - 1; i >= 0; i--){
|
|
5833
5473
|
token = tokens[i];
|
|
@@ -5842,12 +5482,12 @@ class Parser {
|
|
|
5842
5482
|
let str = '';
|
|
5843
5483
|
for(let j = i; j > 0; j--){
|
|
5844
5484
|
let type = cache[j][0];
|
|
5845
|
-
if (str.trim().
|
|
5485
|
+
if (str.trim().indexOf('!') === 0 && type !== 'space') {
|
|
5846
5486
|
break;
|
|
5847
5487
|
}
|
|
5848
5488
|
str = cache.pop()[1] + str;
|
|
5849
5489
|
}
|
|
5850
|
-
if (str.trim().
|
|
5490
|
+
if (str.trim().indexOf('!') === 0) {
|
|
5851
5491
|
node.important = true;
|
|
5852
5492
|
node.raws.important = str;
|
|
5853
5493
|
tokens = cache;
|
|
@@ -5911,8 +5551,6 @@ class Parser {
|
|
|
5911
5551
|
if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) {
|
|
5912
5552
|
prev.raws.ownSemicolon = this.spaces;
|
|
5913
5553
|
this.spaces = '';
|
|
5914
|
-
prev.source.end = this.getPosition(token[2]);
|
|
5915
|
-
prev.source.end.offset += prev.raws.ownSemicolon.length;
|
|
5916
5554
|
}
|
|
5917
5555
|
}
|
|
5918
5556
|
}
|
|
@@ -6127,137 +5765,56 @@ class Parser {
|
|
|
6127
5765
|
});
|
|
6128
5766
|
}
|
|
6129
5767
|
unknownWord(tokens) {
|
|
6130
|
-
throw this.input.error('Unknown word
|
|
5768
|
+
throw this.input.error('Unknown word', {
|
|
6131
5769
|
offset: tokens[0][2]
|
|
6132
5770
|
}, {
|
|
6133
5771
|
offset: tokens[0][2] + tokens[0][1].length
|
|
6134
5772
|
});
|
|
6135
5773
|
}
|
|
6136
|
-
unnamedAtrule(node, token) {
|
|
6137
|
-
throw this.input.error('At-rule without name', {
|
|
6138
|
-
offset: token[2]
|
|
6139
|
-
}, {
|
|
6140
|
-
offset: token[2] + token[1].length
|
|
6141
|
-
});
|
|
6142
|
-
}
|
|
6143
|
-
}
|
|
6144
|
-
module.exports = Parser;
|
|
6145
|
-
}),
|
|
6146
|
-
"[project]/node_modules/postcss/lib/parse.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
6147
|
-
"use strict";
|
|
6148
|
-
|
|
6149
|
-
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)");
|
|
6150
|
-
let Input = __turbopack_context__.r("[project]/node_modules/postcss/lib/input.js [postcss] (ecmascript)");
|
|
6151
|
-
let Parser = __turbopack_context__.r("[project]/node_modules/postcss/lib/parser.js [postcss] (ecmascript)");
|
|
6152
|
-
function parse(css, opts) {
|
|
6153
|
-
let input = new Input(css, opts);
|
|
6154
|
-
let parser = new Parser(input);
|
|
6155
|
-
try {
|
|
6156
|
-
parser.parse();
|
|
6157
|
-
} catch (e) {
|
|
6158
|
-
if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
|
|
6159
|
-
;
|
|
6160
|
-
throw e;
|
|
6161
|
-
}
|
|
6162
|
-
return parser.root;
|
|
6163
|
-
}
|
|
6164
|
-
module.exports = parse;
|
|
6165
|
-
parse.default = parse;
|
|
6166
|
-
Container.registerParse(parse);
|
|
6167
|
-
}),
|
|
6168
|
-
"[project]/node_modules/postcss/lib/warning.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
6169
|
-
"use strict";
|
|
6170
|
-
|
|
6171
|
-
class Warning {
|
|
6172
|
-
constructor(text, opts = {}){
|
|
6173
|
-
this.type = 'warning';
|
|
6174
|
-
this.text = text;
|
|
6175
|
-
if (opts.node && opts.node.source) {
|
|
6176
|
-
let range = opts.node.rangeBy(opts);
|
|
6177
|
-
this.line = range.start.line;
|
|
6178
|
-
this.column = range.start.column;
|
|
6179
|
-
this.endLine = range.end.line;
|
|
6180
|
-
this.endColumn = range.end.column;
|
|
6181
|
-
}
|
|
6182
|
-
for(let opt in opts)this[opt] = opts[opt];
|
|
6183
|
-
}
|
|
6184
|
-
toString() {
|
|
6185
|
-
if (this.node) {
|
|
6186
|
-
return this.node.error(this.text, {
|
|
6187
|
-
index: this.index,
|
|
6188
|
-
plugin: this.plugin,
|
|
6189
|
-
word: this.word
|
|
6190
|
-
}).message;
|
|
6191
|
-
}
|
|
6192
|
-
if (this.plugin) {
|
|
6193
|
-
return this.plugin + ': ' + this.text;
|
|
6194
|
-
}
|
|
6195
|
-
return this.text;
|
|
6196
|
-
}
|
|
6197
|
-
}
|
|
6198
|
-
module.exports = Warning;
|
|
6199
|
-
Warning.default = Warning;
|
|
6200
|
-
}),
|
|
6201
|
-
"[project]/node_modules/postcss/lib/result.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
6202
|
-
"use strict";
|
|
6203
|
-
|
|
6204
|
-
let Warning = __turbopack_context__.r("[project]/node_modules/postcss/lib/warning.js [postcss] (ecmascript)");
|
|
6205
|
-
class Result {
|
|
6206
|
-
get content() {
|
|
6207
|
-
return this.css;
|
|
6208
|
-
}
|
|
6209
|
-
constructor(processor, root, opts){
|
|
6210
|
-
this.processor = processor;
|
|
6211
|
-
this.messages = [];
|
|
6212
|
-
this.root = root;
|
|
6213
|
-
this.opts = opts;
|
|
6214
|
-
this.css = '';
|
|
6215
|
-
this.map = undefined;
|
|
6216
|
-
}
|
|
6217
|
-
toString() {
|
|
6218
|
-
return this.css;
|
|
6219
|
-
}
|
|
6220
|
-
warn(text, opts = {}) {
|
|
6221
|
-
if (!opts.plugin) {
|
|
6222
|
-
if (this.lastPlugin && this.lastPlugin.postcssPlugin) {
|
|
6223
|
-
opts.plugin = this.lastPlugin.postcssPlugin;
|
|
6224
|
-
}
|
|
6225
|
-
}
|
|
6226
|
-
let warning = new Warning(text, opts);
|
|
6227
|
-
this.messages.push(warning);
|
|
6228
|
-
return warning;
|
|
6229
|
-
}
|
|
6230
|
-
warnings() {
|
|
6231
|
-
return this.messages.filter((i)=>i.type === 'warning');
|
|
6232
|
-
}
|
|
5774
|
+
unnamedAtrule(node, token) {
|
|
5775
|
+
throw this.input.error('At-rule without name', {
|
|
5776
|
+
offset: token[2]
|
|
5777
|
+
}, {
|
|
5778
|
+
offset: token[2] + token[1].length
|
|
5779
|
+
});
|
|
5780
|
+
}
|
|
6233
5781
|
}
|
|
6234
|
-
module.exports =
|
|
6235
|
-
Result.default = Result;
|
|
5782
|
+
module.exports = Parser;
|
|
6236
5783
|
}),
|
|
6237
|
-
"[project]/node_modules/postcss/lib/
|
|
5784
|
+
"[project]/node_modules/postcss/lib/parse.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
6238
5785
|
"use strict";
|
|
6239
5786
|
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
5787
|
+
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)");
|
|
5788
|
+
let Parser = __turbopack_context__.r("[project]/node_modules/postcss/lib/parser.js [postcss] (ecmascript)");
|
|
5789
|
+
let Input = __turbopack_context__.r("[project]/node_modules/postcss/lib/input.js [postcss] (ecmascript)");
|
|
5790
|
+
function parse(css, opts) {
|
|
5791
|
+
let input = new Input(css, opts);
|
|
5792
|
+
let parser = new Parser(input);
|
|
5793
|
+
try {
|
|
5794
|
+
parser.parse();
|
|
5795
|
+
} catch (e) {
|
|
5796
|
+
if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
|
|
5797
|
+
;
|
|
5798
|
+
throw e;
|
|
6246
5799
|
}
|
|
6247
|
-
|
|
5800
|
+
return parser.root;
|
|
5801
|
+
}
|
|
5802
|
+
module.exports = parse;
|
|
5803
|
+
parse.default = parse;
|
|
5804
|
+
Container.registerParse(parse);
|
|
6248
5805
|
}),
|
|
6249
5806
|
"[project]/node_modules/postcss/lib/lazy-result.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
6250
5807
|
"use strict";
|
|
6251
5808
|
|
|
5809
|
+
let { isClean, my } = __turbopack_context__.r("[project]/node_modules/postcss/lib/symbols.js [postcss] (ecmascript)");
|
|
5810
|
+
let MapGenerator = __turbopack_context__.r("[project]/node_modules/postcss/lib/map-generator.js [postcss] (ecmascript)");
|
|
5811
|
+
let stringify = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringify.js [postcss] (ecmascript)");
|
|
6252
5812
|
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)");
|
|
6253
5813
|
let Document = __turbopack_context__.r("[project]/node_modules/postcss/lib/document.js [postcss] (ecmascript)");
|
|
6254
|
-
let
|
|
6255
|
-
let parse = __turbopack_context__.r("[project]/node_modules/postcss/lib/parse.js [postcss] (ecmascript)");
|
|
5814
|
+
let warnOnce = __turbopack_context__.r("[project]/node_modules/postcss/lib/warn-once.js [postcss] (ecmascript)");
|
|
6256
5815
|
let Result = __turbopack_context__.r("[project]/node_modules/postcss/lib/result.js [postcss] (ecmascript)");
|
|
5816
|
+
let parse = __turbopack_context__.r("[project]/node_modules/postcss/lib/parse.js [postcss] (ecmascript)");
|
|
6257
5817
|
let Root = __turbopack_context__.r("[project]/node_modules/postcss/lib/root.js [postcss] (ecmascript)");
|
|
6258
|
-
let stringify = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringify.js [postcss] (ecmascript)");
|
|
6259
|
-
let { isClean, my } = __turbopack_context__.r("[project]/node_modules/postcss/lib/symbols.js [postcss] (ecmascript)");
|
|
6260
|
-
let warnOnce = __turbopack_context__.r("[project]/node_modules/postcss/lib/warn-once.js [postcss] (ecmascript)");
|
|
6261
5818
|
const TYPE_TO_CLASS_NAME = {
|
|
6262
5819
|
atrule: 'AtRule',
|
|
6263
5820
|
comment: 'Comment',
|
|
@@ -6356,44 +5913,12 @@ function toStack(node) {
|
|
|
6356
5913
|
};
|
|
6357
5914
|
}
|
|
6358
5915
|
function cleanMarks(node) {
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
];
|
|
6362
|
-
while(stack.length > 0){
|
|
6363
|
-
let next = stack.pop();
|
|
6364
|
-
next[isClean] = false;
|
|
6365
|
-
if (next.nodes) {
|
|
6366
|
-
for (let i of next.nodes)stack.push(i);
|
|
6367
|
-
}
|
|
6368
|
-
}
|
|
5916
|
+
node[isClean] = false;
|
|
5917
|
+
if (node.nodes) node.nodes.forEach((i)=>cleanMarks(i));
|
|
6369
5918
|
return node;
|
|
6370
5919
|
}
|
|
6371
5920
|
let postcss = {};
|
|
6372
5921
|
class LazyResult {
|
|
6373
|
-
get content() {
|
|
6374
|
-
return this.stringify().content;
|
|
6375
|
-
}
|
|
6376
|
-
get css() {
|
|
6377
|
-
return this.stringify().css;
|
|
6378
|
-
}
|
|
6379
|
-
get map() {
|
|
6380
|
-
return this.stringify().map;
|
|
6381
|
-
}
|
|
6382
|
-
get messages() {
|
|
6383
|
-
return this.sync().messages;
|
|
6384
|
-
}
|
|
6385
|
-
get opts() {
|
|
6386
|
-
return this.result.opts;
|
|
6387
|
-
}
|
|
6388
|
-
get processor() {
|
|
6389
|
-
return this.result.processor;
|
|
6390
|
-
}
|
|
6391
|
-
get root() {
|
|
6392
|
-
return this.sync().root;
|
|
6393
|
-
}
|
|
6394
|
-
get [Symbol.toStringTag]() {
|
|
6395
|
-
return 'LazyResult';
|
|
6396
|
-
}
|
|
6397
5922
|
constructor(processor, css, opts){
|
|
6398
5923
|
this.stringified = false;
|
|
6399
5924
|
this.processed = false;
|
|
@@ -6588,15 +6113,6 @@ class LazyResult {
|
|
|
6588
6113
|
if (opts.syntax) str = opts.syntax.stringify;
|
|
6589
6114
|
if (opts.stringifier) str = opts.stringifier;
|
|
6590
6115
|
if (str.stringify) str = str.stringify;
|
|
6591
|
-
let rootSource = this.result.root.source;
|
|
6592
|
-
if (opts.map === undefined && !(rootSource && rootSource.input && rootSource.input.map)) {
|
|
6593
|
-
let result = '';
|
|
6594
|
-
str(this.result.root, (i)=>{
|
|
6595
|
-
result += i;
|
|
6596
|
-
});
|
|
6597
|
-
this.result.css = result;
|
|
6598
|
-
return this.result;
|
|
6599
|
-
}
|
|
6600
6116
|
let map = new MapGenerator(str, this.result.root, this.result.opts);
|
|
6601
6117
|
let data = map.generate();
|
|
6602
6118
|
this.result.css = data[0];
|
|
@@ -6713,94 +6229,37 @@ class LazyResult {
|
|
|
6713
6229
|
stack.pop();
|
|
6714
6230
|
}
|
|
6715
6231
|
walkSync(node) {
|
|
6716
|
-
// An explicit stack like in async `visitTick()` to survive deeply
|
|
6717
|
-
// nested trees. Unlike `visitTick()`, nodes are marked clean only
|
|
6718
|
-
// on entering, so a node dirtied by its own visitors is revisited
|
|
6719
|
-
// on the next pass.
|
|
6720
6232
|
node[isClean] = true;
|
|
6721
|
-
let
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
];
|
|
6729
|
-
while(stack.length > 0){
|
|
6730
|
-
let visit = stack[stack.length - 1];
|
|
6731
|
-
let visitNode = visit.node;
|
|
6732
|
-
if (visit.iterator !== 0) {
|
|
6733
|
-
let iterator = visit.iterator;
|
|
6734
|
-
let child;
|
|
6735
|
-
let descended = false;
|
|
6736
|
-
while(child = visitNode.nodes[visitNode.indexes[iterator]]){
|
|
6737
|
-
visitNode.indexes[iterator] += 1;
|
|
6738
|
-
if (!child[isClean]) {
|
|
6739
|
-
child[isClean] = true;
|
|
6740
|
-
stack.push({
|
|
6741
|
-
eventIndex: 0,
|
|
6742
|
-
events: getEvents(child),
|
|
6743
|
-
iterator: 0,
|
|
6744
|
-
node: child
|
|
6745
|
-
});
|
|
6746
|
-
descended = true;
|
|
6747
|
-
break;
|
|
6748
|
-
}
|
|
6233
|
+
let events = getEvents(node);
|
|
6234
|
+
for (let event of events){
|
|
6235
|
+
if (event === CHILDREN) {
|
|
6236
|
+
if (node.nodes) {
|
|
6237
|
+
node.each((child)=>{
|
|
6238
|
+
if (!child[isClean]) this.walkSync(child);
|
|
6239
|
+
});
|
|
6749
6240
|
}
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
if (visit.eventIndex < visit.events.length) {
|
|
6755
|
-
let event = visit.events[visit.eventIndex];
|
|
6756
|
-
visit.eventIndex += 1;
|
|
6757
|
-
if (event === CHILDREN) {
|
|
6758
|
-
if (visitNode.nodes && visitNode.nodes.length) {
|
|
6759
|
-
visit.iterator = visitNode.getIterator();
|
|
6760
|
-
}
|
|
6761
|
-
} else {
|
|
6762
|
-
let visitors = this.listeners[event];
|
|
6763
|
-
if (visitors) {
|
|
6764
|
-
if (this.visitSync(visitors, visitNode.toProxy())) stack.pop();
|
|
6765
|
-
}
|
|
6241
|
+
} else {
|
|
6242
|
+
let visitors = this.listeners[event];
|
|
6243
|
+
if (visitors) {
|
|
6244
|
+
if (this.visitSync(visitors, node.toProxy())) return;
|
|
6766
6245
|
}
|
|
6767
|
-
continue;
|
|
6768
6246
|
}
|
|
6769
|
-
stack.pop();
|
|
6770
6247
|
}
|
|
6771
6248
|
}
|
|
6772
6249
|
warnings() {
|
|
6773
6250
|
return this.sync().warnings();
|
|
6774
6251
|
}
|
|
6775
|
-
}
|
|
6776
|
-
LazyResult.registerPostcss = (dependant)=>{
|
|
6777
|
-
postcss = dependant;
|
|
6778
|
-
};
|
|
6779
|
-
module.exports = LazyResult;
|
|
6780
|
-
LazyResult.default = LazyResult;
|
|
6781
|
-
Root.registerLazyResult(LazyResult);
|
|
6782
|
-
Document.registerLazyResult(LazyResult);
|
|
6783
|
-
}),
|
|
6784
|
-
"[project]/node_modules/postcss/lib/no-work-result.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
6785
|
-
"use strict";
|
|
6786
|
-
|
|
6787
|
-
let MapGenerator = __turbopack_context__.r("[project]/node_modules/postcss/lib/map-generator.js [postcss] (ecmascript)");
|
|
6788
|
-
let parse = __turbopack_context__.r("[project]/node_modules/postcss/lib/parse.js [postcss] (ecmascript)");
|
|
6789
|
-
let Result = __turbopack_context__.r("[project]/node_modules/postcss/lib/result.js [postcss] (ecmascript)");
|
|
6790
|
-
let stringify = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringify.js [postcss] (ecmascript)");
|
|
6791
|
-
let warnOnce = __turbopack_context__.r("[project]/node_modules/postcss/lib/warn-once.js [postcss] (ecmascript)");
|
|
6792
|
-
class NoWorkResult {
|
|
6793
6252
|
get content() {
|
|
6794
|
-
return this.
|
|
6253
|
+
return this.stringify().content;
|
|
6795
6254
|
}
|
|
6796
6255
|
get css() {
|
|
6797
|
-
return this.
|
|
6256
|
+
return this.stringify().css;
|
|
6798
6257
|
}
|
|
6799
6258
|
get map() {
|
|
6800
|
-
return this.
|
|
6259
|
+
return this.stringify().map;
|
|
6801
6260
|
}
|
|
6802
6261
|
get messages() {
|
|
6803
|
-
return
|
|
6262
|
+
return this.sync().messages;
|
|
6804
6263
|
}
|
|
6805
6264
|
get opts() {
|
|
6806
6265
|
return this.result.opts;
|
|
@@ -6809,26 +6268,29 @@ class NoWorkResult {
|
|
|
6809
6268
|
return this.result.processor;
|
|
6810
6269
|
}
|
|
6811
6270
|
get root() {
|
|
6812
|
-
|
|
6813
|
-
return this._root;
|
|
6814
|
-
}
|
|
6815
|
-
let root;
|
|
6816
|
-
let parser = parse;
|
|
6817
|
-
try {
|
|
6818
|
-
root = parser(this._css, this._opts);
|
|
6819
|
-
} catch (error) {
|
|
6820
|
-
this.error = error;
|
|
6821
|
-
}
|
|
6822
|
-
if (this.error) {
|
|
6823
|
-
throw this.error;
|
|
6824
|
-
} else {
|
|
6825
|
-
this._root = root;
|
|
6826
|
-
return root;
|
|
6827
|
-
}
|
|
6271
|
+
return this.sync().root;
|
|
6828
6272
|
}
|
|
6829
6273
|
get [Symbol.toStringTag]() {
|
|
6830
|
-
return '
|
|
6274
|
+
return 'LazyResult';
|
|
6831
6275
|
}
|
|
6276
|
+
}
|
|
6277
|
+
LazyResult.registerPostcss = (dependant)=>{
|
|
6278
|
+
postcss = dependant;
|
|
6279
|
+
};
|
|
6280
|
+
module.exports = LazyResult;
|
|
6281
|
+
LazyResult.default = LazyResult;
|
|
6282
|
+
Root.registerLazyResult(LazyResult);
|
|
6283
|
+
Document.registerLazyResult(LazyResult);
|
|
6284
|
+
}),
|
|
6285
|
+
"[project]/node_modules/postcss/lib/no-work-result.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
6286
|
+
"use strict";
|
|
6287
|
+
|
|
6288
|
+
let MapGenerator = __turbopack_context__.r("[project]/node_modules/postcss/lib/map-generator.js [postcss] (ecmascript)");
|
|
6289
|
+
let stringify = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringify.js [postcss] (ecmascript)");
|
|
6290
|
+
let warnOnce = __turbopack_context__.r("[project]/node_modules/postcss/lib/warn-once.js [postcss] (ecmascript)");
|
|
6291
|
+
let parse = __turbopack_context__.r("[project]/node_modules/postcss/lib/parse.js [postcss] (ecmascript)");
|
|
6292
|
+
const Result = __turbopack_context__.r("[project]/node_modules/postcss/lib/result.js [postcss] (ecmascript)");
|
|
6293
|
+
class NoWorkResult {
|
|
6832
6294
|
constructor(processor, css, opts){
|
|
6833
6295
|
css = css.toString();
|
|
6834
6296
|
this.stringified = false;
|
|
@@ -6836,8 +6298,9 @@ class NoWorkResult {
|
|
|
6836
6298
|
this._css = css;
|
|
6837
6299
|
this._opts = opts;
|
|
6838
6300
|
this._map = undefined;
|
|
6301
|
+
let root;
|
|
6839
6302
|
let str = stringify;
|
|
6840
|
-
this.result = new Result(this._processor,
|
|
6303
|
+
this.result = new Result(this._processor, root, this._opts);
|
|
6841
6304
|
this.result.css = css;
|
|
6842
6305
|
let self = this;
|
|
6843
6306
|
Object.defineProperty(this.result, 'root', {
|
|
@@ -6845,7 +6308,7 @@ class NoWorkResult {
|
|
|
6845
6308
|
return self.root;
|
|
6846
6309
|
}
|
|
6847
6310
|
});
|
|
6848
|
-
let map = new MapGenerator(str,
|
|
6311
|
+
let map = new MapGenerator(str, root, this._opts, css);
|
|
6849
6312
|
if (map.isMap()) {
|
|
6850
6313
|
let [generatedCSS, generatedMap] = map.generate();
|
|
6851
6314
|
if (generatedCSS) {
|
|
@@ -6854,9 +6317,6 @@ class NoWorkResult {
|
|
|
6854
6317
|
if (generatedMap) {
|
|
6855
6318
|
this.result.map = generatedMap;
|
|
6856
6319
|
}
|
|
6857
|
-
} else {
|
|
6858
|
-
map.clearAnnotation();
|
|
6859
|
-
this.result.css = map.css;
|
|
6860
6320
|
}
|
|
6861
6321
|
}
|
|
6862
6322
|
async() {
|
|
@@ -6884,6 +6344,45 @@ class NoWorkResult {
|
|
|
6884
6344
|
warnings() {
|
|
6885
6345
|
return [];
|
|
6886
6346
|
}
|
|
6347
|
+
get content() {
|
|
6348
|
+
return this.result.css;
|
|
6349
|
+
}
|
|
6350
|
+
get css() {
|
|
6351
|
+
return this.result.css;
|
|
6352
|
+
}
|
|
6353
|
+
get map() {
|
|
6354
|
+
return this.result.map;
|
|
6355
|
+
}
|
|
6356
|
+
get messages() {
|
|
6357
|
+
return [];
|
|
6358
|
+
}
|
|
6359
|
+
get opts() {
|
|
6360
|
+
return this.result.opts;
|
|
6361
|
+
}
|
|
6362
|
+
get processor() {
|
|
6363
|
+
return this.result.processor;
|
|
6364
|
+
}
|
|
6365
|
+
get root() {
|
|
6366
|
+
if (this._root) {
|
|
6367
|
+
return this._root;
|
|
6368
|
+
}
|
|
6369
|
+
let root;
|
|
6370
|
+
let parser = parse;
|
|
6371
|
+
try {
|
|
6372
|
+
root = parser(this._css, this._opts);
|
|
6373
|
+
} catch (error) {
|
|
6374
|
+
this.error = error;
|
|
6375
|
+
}
|
|
6376
|
+
if (this.error) {
|
|
6377
|
+
throw this.error;
|
|
6378
|
+
} else {
|
|
6379
|
+
this._root = root;
|
|
6380
|
+
return root;
|
|
6381
|
+
}
|
|
6382
|
+
}
|
|
6383
|
+
get [Symbol.toStringTag]() {
|
|
6384
|
+
return 'NoWorkResult';
|
|
6385
|
+
}
|
|
6887
6386
|
}
|
|
6888
6387
|
module.exports = NoWorkResult;
|
|
6889
6388
|
NoWorkResult.default = NoWorkResult;
|
|
@@ -6891,13 +6390,13 @@ NoWorkResult.default = NoWorkResult;
|
|
|
6891
6390
|
"[project]/node_modules/postcss/lib/processor.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
6892
6391
|
"use strict";
|
|
6893
6392
|
|
|
6894
|
-
let Document = __turbopack_context__.r("[project]/node_modules/postcss/lib/document.js [postcss] (ecmascript)");
|
|
6895
|
-
let LazyResult = __turbopack_context__.r("[project]/node_modules/postcss/lib/lazy-result.js [postcss] (ecmascript)");
|
|
6896
6393
|
let NoWorkResult = __turbopack_context__.r("[project]/node_modules/postcss/lib/no-work-result.js [postcss] (ecmascript)");
|
|
6394
|
+
let LazyResult = __turbopack_context__.r("[project]/node_modules/postcss/lib/lazy-result.js [postcss] (ecmascript)");
|
|
6395
|
+
let Document = __turbopack_context__.r("[project]/node_modules/postcss/lib/document.js [postcss] (ecmascript)");
|
|
6897
6396
|
let Root = __turbopack_context__.r("[project]/node_modules/postcss/lib/root.js [postcss] (ecmascript)");
|
|
6898
6397
|
class Processor {
|
|
6899
6398
|
constructor(plugins = []){
|
|
6900
|
-
this.version = '8.
|
|
6399
|
+
this.version = '8.4.31';
|
|
6901
6400
|
this.plugins = this.normalize(plugins);
|
|
6902
6401
|
}
|
|
6903
6402
|
normalize(plugins) {
|
|
@@ -6924,7 +6423,7 @@ class Processor {
|
|
|
6924
6423
|
return normalized;
|
|
6925
6424
|
}
|
|
6926
6425
|
process(css, opts = {}) {
|
|
6927
|
-
if (
|
|
6426
|
+
if (this.plugins.length === 0 && typeof opts.parser === 'undefined' && typeof opts.stringifier === 'undefined' && typeof opts.syntax === 'undefined') {
|
|
6928
6427
|
return new NoWorkResult(this, css, opts);
|
|
6929
6428
|
} else {
|
|
6930
6429
|
return new LazyResult(this, css, opts);
|
|
@@ -6942,27 +6441,83 @@ Processor.default = Processor;
|
|
|
6942
6441
|
Root.registerProcessor(Processor);
|
|
6943
6442
|
Document.registerProcessor(Processor);
|
|
6944
6443
|
}),
|
|
6945
|
-
"[project]/node_modules/postcss/lib/
|
|
6444
|
+
"[project]/node_modules/postcss/lib/fromJSON.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
6946
6445
|
"use strict";
|
|
6947
6446
|
|
|
6948
|
-
let
|
|
6447
|
+
let Declaration = __turbopack_context__.r("[project]/node_modules/postcss/lib/declaration.js [postcss] (ecmascript)");
|
|
6448
|
+
let PreviousMap = __turbopack_context__.r("[project]/node_modules/postcss/lib/previous-map.js [postcss] (ecmascript)");
|
|
6949
6449
|
let Comment = __turbopack_context__.r("[project]/node_modules/postcss/lib/comment.js [postcss] (ecmascript)");
|
|
6950
|
-
let
|
|
6450
|
+
let AtRule = __turbopack_context__.r("[project]/node_modules/postcss/lib/at-rule.js [postcss] (ecmascript)");
|
|
6451
|
+
let Input = __turbopack_context__.r("[project]/node_modules/postcss/lib/input.js [postcss] (ecmascript)");
|
|
6452
|
+
let Root = __turbopack_context__.r("[project]/node_modules/postcss/lib/root.js [postcss] (ecmascript)");
|
|
6453
|
+
let Rule = __turbopack_context__.r("[project]/node_modules/postcss/lib/rule.js [postcss] (ecmascript)");
|
|
6454
|
+
function fromJSON(json, inputs) {
|
|
6455
|
+
if (Array.isArray(json)) return json.map((n)=>fromJSON(n));
|
|
6456
|
+
let { inputs: ownInputs, ...defaults } = json;
|
|
6457
|
+
if (ownInputs) {
|
|
6458
|
+
inputs = [];
|
|
6459
|
+
for (let input of ownInputs){
|
|
6460
|
+
let inputHydrated = {
|
|
6461
|
+
...input,
|
|
6462
|
+
__proto__: Input.prototype
|
|
6463
|
+
};
|
|
6464
|
+
if (inputHydrated.map) {
|
|
6465
|
+
inputHydrated.map = {
|
|
6466
|
+
...inputHydrated.map,
|
|
6467
|
+
__proto__: PreviousMap.prototype
|
|
6468
|
+
};
|
|
6469
|
+
}
|
|
6470
|
+
inputs.push(inputHydrated);
|
|
6471
|
+
}
|
|
6472
|
+
}
|
|
6473
|
+
if (defaults.nodes) {
|
|
6474
|
+
defaults.nodes = json.nodes.map((n)=>fromJSON(n, inputs));
|
|
6475
|
+
}
|
|
6476
|
+
if (defaults.source) {
|
|
6477
|
+
let { inputId, ...source } = defaults.source;
|
|
6478
|
+
defaults.source = source;
|
|
6479
|
+
if (inputId != null) {
|
|
6480
|
+
defaults.source.input = inputs[inputId];
|
|
6481
|
+
}
|
|
6482
|
+
}
|
|
6483
|
+
if (defaults.type === 'root') {
|
|
6484
|
+
return new Root(defaults);
|
|
6485
|
+
} else if (defaults.type === 'decl') {
|
|
6486
|
+
return new Declaration(defaults);
|
|
6487
|
+
} else if (defaults.type === 'rule') {
|
|
6488
|
+
return new Rule(defaults);
|
|
6489
|
+
} else if (defaults.type === 'comment') {
|
|
6490
|
+
return new Comment(defaults);
|
|
6491
|
+
} else if (defaults.type === 'atrule') {
|
|
6492
|
+
return new AtRule(defaults);
|
|
6493
|
+
} else {
|
|
6494
|
+
throw new Error('Unknown node type: ' + json.type);
|
|
6495
|
+
}
|
|
6496
|
+
}
|
|
6497
|
+
module.exports = fromJSON;
|
|
6498
|
+
fromJSON.default = fromJSON;
|
|
6499
|
+
}),
|
|
6500
|
+
"[project]/node_modules/postcss/lib/postcss.js [postcss] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
|
6501
|
+
"use strict";
|
|
6502
|
+
|
|
6951
6503
|
let CssSyntaxError = __turbopack_context__.r("[project]/node_modules/postcss/lib/css-syntax-error.js [postcss] (ecmascript)");
|
|
6952
6504
|
let Declaration = __turbopack_context__.r("[project]/node_modules/postcss/lib/declaration.js [postcss] (ecmascript)");
|
|
6953
|
-
let Document = __turbopack_context__.r("[project]/node_modules/postcss/lib/document.js [postcss] (ecmascript)");
|
|
6954
|
-
let fromJSON = __turbopack_context__.r("[project]/node_modules/postcss/lib/fromJSON.js [postcss] (ecmascript)");
|
|
6955
|
-
let Input = __turbopack_context__.r("[project]/node_modules/postcss/lib/input.js [postcss] (ecmascript)");
|
|
6956
6505
|
let LazyResult = __turbopack_context__.r("[project]/node_modules/postcss/lib/lazy-result.js [postcss] (ecmascript)");
|
|
6957
|
-
let
|
|
6958
|
-
let Node = __turbopack_context__.r("[project]/node_modules/postcss/lib/node.js [postcss] (ecmascript)");
|
|
6959
|
-
let parse = __turbopack_context__.r("[project]/node_modules/postcss/lib/parse.js [postcss] (ecmascript)");
|
|
6506
|
+
let Container = __turbopack_context__.r("[project]/node_modules/postcss/lib/container.js [postcss] (ecmascript)");
|
|
6960
6507
|
let Processor = __turbopack_context__.r("[project]/node_modules/postcss/lib/processor.js [postcss] (ecmascript)");
|
|
6961
|
-
let Result = __turbopack_context__.r("[project]/node_modules/postcss/lib/result.js [postcss] (ecmascript)");
|
|
6962
|
-
let Root = __turbopack_context__.r("[project]/node_modules/postcss/lib/root.js [postcss] (ecmascript)");
|
|
6963
|
-
let Rule = __turbopack_context__.r("[project]/node_modules/postcss/lib/rule.js [postcss] (ecmascript)");
|
|
6964
6508
|
let stringify = __turbopack_context__.r("[project]/node_modules/postcss/lib/stringify.js [postcss] (ecmascript)");
|
|
6509
|
+
let fromJSON = __turbopack_context__.r("[project]/node_modules/postcss/lib/fromJSON.js [postcss] (ecmascript)");
|
|
6510
|
+
let Document = __turbopack_context__.r("[project]/node_modules/postcss/lib/document.js [postcss] (ecmascript)");
|
|
6965
6511
|
let Warning = __turbopack_context__.r("[project]/node_modules/postcss/lib/warning.js [postcss] (ecmascript)");
|
|
6512
|
+
let Comment = __turbopack_context__.r("[project]/node_modules/postcss/lib/comment.js [postcss] (ecmascript)");
|
|
6513
|
+
let AtRule = __turbopack_context__.r("[project]/node_modules/postcss/lib/at-rule.js [postcss] (ecmascript)");
|
|
6514
|
+
let Result = __turbopack_context__.r("[project]/node_modules/postcss/lib/result.js [postcss] (ecmascript)");
|
|
6515
|
+
let Input = __turbopack_context__.r("[project]/node_modules/postcss/lib/input.js [postcss] (ecmascript)");
|
|
6516
|
+
let parse = __turbopack_context__.r("[project]/node_modules/postcss/lib/parse.js [postcss] (ecmascript)");
|
|
6517
|
+
let list = __turbopack_context__.r("[project]/node_modules/postcss/lib/list.js [postcss] (ecmascript)");
|
|
6518
|
+
let Rule = __turbopack_context__.r("[project]/node_modules/postcss/lib/rule.js [postcss] (ecmascript)");
|
|
6519
|
+
let Root = __turbopack_context__.r("[project]/node_modules/postcss/lib/root.js [postcss] (ecmascript)");
|
|
6520
|
+
let Node = __turbopack_context__.r("[project]/node_modules/postcss/lib/node.js [postcss] (ecmascript)");
|
|
6966
6521
|
function postcss(...plugins) {
|
|
6967
6522
|
if (plugins.length === 1 && Array.isArray(plugins[0])) {
|
|
6968
6523
|
plugins = plugins[0];
|
|
@@ -7113,4 +6668,4 @@ const Node = __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f$pos
|
|
|
7113
6668
|
}),
|
|
7114
6669
|
];
|
|
7115
6670
|
|
|
7116
|
-
//# sourceMappingURL=
|
|
6671
|
+
//# sourceMappingURL=node_modules_05oslht._.js.map
|