@universityofmaryland/web-model-library 1.0.0
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/README.md +138 -0
- package/dist/_types.d.ts +77 -0
- package/dist/_types.d.ts.map +1 -0
- package/dist/_virtual/___vite-browser-external.js +8 -0
- package/dist/_virtual/___vite-browser-external.js.map +1 -0
- package/dist/_virtual/___vite-browser-external.mjs +7 -0
- package/dist/_virtual/___vite-browser-external.mjs.map +1 -0
- package/dist/_virtual/__vite-browser-external.js +4 -0
- package/dist/_virtual/__vite-browser-external.js.map +1 -0
- package/dist/_virtual/__vite-browser-external.mjs +5 -0
- package/dist/_virtual/__vite-browser-external.mjs.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +37 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.mjs +37 -0
- package/dist/_virtual/_commonjsHelpers.mjs.map +1 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index.mjs +8 -0
- package/dist/_virtual/index.mjs.map +1 -0
- package/dist/_virtual/picocolors.browser.js +5 -0
- package/dist/_virtual/picocolors.browser.js.map +1 -0
- package/dist/_virtual/picocolors.browser.mjs +5 -0
- package/dist/_virtual/picocolors.browser.mjs.map +1 -0
- package/dist/_virtual/postcss.js +7 -0
- package/dist/_virtual/postcss.js.map +1 -0
- package/dist/_virtual/postcss.mjs +8 -0
- package/dist/_virtual/postcss.mjs.map +1 -0
- package/dist/_virtual/symbols.js +5 -0
- package/dist/_virtual/symbols.js.map +1 -0
- package/dist/_virtual/symbols.mjs +5 -0
- package/dist/_virtual/symbols.mjs.map +1 -0
- package/dist/attributes/checks.d.ts +133 -0
- package/dist/attributes/checks.d.ts.map +1 -0
- package/dist/attributes/checks.js +757 -0
- package/dist/attributes/checks.js.map +1 -0
- package/dist/attributes/checks.mjs +740 -0
- package/dist/attributes/checks.mjs.map +1 -0
- package/dist/attributes/handler.d.ts +52 -0
- package/dist/attributes/handler.d.ts.map +1 -0
- package/dist/attributes/handler.js +205 -0
- package/dist/attributes/handler.js.map +1 -0
- package/dist/attributes/handler.mjs +206 -0
- package/dist/attributes/handler.mjs.map +1 -0
- package/dist/attributes/index.d.ts +7 -0
- package/dist/attributes/index.d.ts.map +1 -0
- package/dist/attributes/names.d.ts +132 -0
- package/dist/attributes/names.d.ts.map +1 -0
- package/dist/attributes/names.js +145 -0
- package/dist/attributes/names.js.map +1 -0
- package/dist/attributes/names.mjs +146 -0
- package/dist/attributes/names.mjs.map +1 -0
- package/dist/attributes/values.d.ts +70 -0
- package/dist/attributes/values.d.ts.map +1 -0
- package/dist/attributes/values.js +80 -0
- package/dist/attributes/values.js.map +1 -0
- package/dist/attributes/values.mjs +81 -0
- package/dist/attributes/values.mjs.map +1 -0
- package/dist/attributes.d.ts +2 -0
- package/dist/attributes.js +23 -0
- package/dist/attributes.js.map +1 -0
- package/dist/attributes.mjs +23 -0
- package/dist/attributes.mjs.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -0
- package/dist/model/index.d.ts +43 -0
- package/dist/model/index.d.ts.map +1 -0
- package/dist/model.d.ts +2 -0
- package/dist/model.js +259 -0
- package/dist/model.js.map +1 -0
- package/dist/model.mjs +259 -0
- package/dist/model.mjs.map +1 -0
- package/dist/node_modules/nanoid/non-secure/index.js +31 -0
- package/dist/node_modules/nanoid/non-secure/index.js.map +1 -0
- package/dist/node_modules/nanoid/non-secure/index.mjs +31 -0
- package/dist/node_modules/nanoid/non-secure/index.mjs.map +1 -0
- package/dist/node_modules/picocolors/picocolors.browser.js +17 -0
- package/dist/node_modules/picocolors/picocolors.browser.js.map +1 -0
- package/dist/node_modules/picocolors/picocolors.browser.mjs +17 -0
- package/dist/node_modules/picocolors/picocolors.browser.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/at-rule.js +30 -0
- package/dist/node_modules/postcss/lib/at-rule.js.map +1 -0
- package/dist/node_modules/postcss/lib/at-rule.mjs +30 -0
- package/dist/node_modules/postcss/lib/at-rule.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/comment.js +21 -0
- package/dist/node_modules/postcss/lib/comment.js.map +1 -0
- package/dist/node_modules/postcss/lib/comment.mjs +21 -0
- package/dist/node_modules/postcss/lib/comment.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/container.js +383 -0
- package/dist/node_modules/postcss/lib/container.js.map +1 -0
- package/dist/node_modules/postcss/lib/container.mjs +383 -0
- package/dist/node_modules/postcss/lib/container.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/css-syntax-error.js +92 -0
- package/dist/node_modules/postcss/lib/css-syntax-error.js.map +1 -0
- package/dist/node_modules/postcss/lib/css-syntax-error.mjs +92 -0
- package/dist/node_modules/postcss/lib/css-syntax-error.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/declaration.js +27 -0
- package/dist/node_modules/postcss/lib/declaration.js.map +1 -0
- package/dist/node_modules/postcss/lib/declaration.mjs +27 -0
- package/dist/node_modules/postcss/lib/declaration.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/document.js +34 -0
- package/dist/node_modules/postcss/lib/document.js.map +1 -0
- package/dist/node_modules/postcss/lib/document.mjs +34 -0
- package/dist/node_modules/postcss/lib/document.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/fromJSON.js +67 -0
- package/dist/node_modules/postcss/lib/fromJSON.js.map +1 -0
- package/dist/node_modules/postcss/lib/fromJSON.mjs +67 -0
- package/dist/node_modules/postcss/lib/fromJSON.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/input.js +216 -0
- package/dist/node_modules/postcss/lib/input.js.map +1 -0
- package/dist/node_modules/postcss/lib/input.mjs +216 -0
- package/dist/node_modules/postcss/lib/input.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/lazy-result.js +467 -0
- package/dist/node_modules/postcss/lib/lazy-result.js.map +1 -0
- package/dist/node_modules/postcss/lib/lazy-result.mjs +467 -0
- package/dist/node_modules/postcss/lib/lazy-result.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/list.js +60 -0
- package/dist/node_modules/postcss/lib/list.js.map +1 -0
- package/dist/node_modules/postcss/lib/list.mjs +60 -0
- package/dist/node_modules/postcss/lib/list.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/map-generator.js +314 -0
- package/dist/node_modules/postcss/lib/map-generator.js.map +1 -0
- package/dist/node_modules/postcss/lib/map-generator.mjs +314 -0
- package/dist/node_modules/postcss/lib/map-generator.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/no-work-result.js +113 -0
- package/dist/node_modules/postcss/lib/no-work-result.js.map +1 -0
- package/dist/node_modules/postcss/lib/no-work-result.mjs +113 -0
- package/dist/node_modules/postcss/lib/no-work-result.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/node.js +335 -0
- package/dist/node_modules/postcss/lib/node.js.map +1 -0
- package/dist/node_modules/postcss/lib/node.mjs +335 -0
- package/dist/node_modules/postcss/lib/node.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/parse.js +30 -0
- package/dist/node_modules/postcss/lib/parse.js.map +1 -0
- package/dist/node_modules/postcss/lib/parse.mjs +30 -0
- package/dist/node_modules/postcss/lib/parse.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/parser.js +543 -0
- package/dist/node_modules/postcss/lib/parser.js.map +1 -0
- package/dist/node_modules/postcss/lib/parser.mjs +543 -0
- package/dist/node_modules/postcss/lib/parser.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/postcss.js +28 -0
- package/dist/node_modules/postcss/lib/postcss.js.map +1 -0
- package/dist/node_modules/postcss/lib/postcss.mjs +29 -0
- package/dist/node_modules/postcss/lib/postcss.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/postcss2.js +110 -0
- package/dist/node_modules/postcss/lib/postcss2.js.map +1 -0
- package/dist/node_modules/postcss/lib/postcss2.mjs +110 -0
- package/dist/node_modules/postcss/lib/postcss2.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/previous-map.js +123 -0
- package/dist/node_modules/postcss/lib/previous-map.js.map +1 -0
- package/dist/node_modules/postcss/lib/previous-map.mjs +123 -0
- package/dist/node_modules/postcss/lib/previous-map.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/processor.js +61 -0
- package/dist/node_modules/postcss/lib/processor.js.map +1 -0
- package/dist/node_modules/postcss/lib/processor.mjs +61 -0
- package/dist/node_modules/postcss/lib/processor.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/result.js +44 -0
- package/dist/node_modules/postcss/lib/result.js.map +1 -0
- package/dist/node_modules/postcss/lib/result.mjs +44 -0
- package/dist/node_modules/postcss/lib/result.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/root.js +58 -0
- package/dist/node_modules/postcss/lib/root.js.map +1 -0
- package/dist/node_modules/postcss/lib/root.mjs +58 -0
- package/dist/node_modules/postcss/lib/root.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/rule.js +33 -0
- package/dist/node_modules/postcss/lib/rule.js.map +1 -0
- package/dist/node_modules/postcss/lib/rule.mjs +33 -0
- package/dist/node_modules/postcss/lib/rule.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/stringifier.js +308 -0
- package/dist/node_modules/postcss/lib/stringifier.js.map +1 -0
- package/dist/node_modules/postcss/lib/stringifier.mjs +308 -0
- package/dist/node_modules/postcss/lib/stringifier.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/stringify.js +19 -0
- package/dist/node_modules/postcss/lib/stringify.js.map +1 -0
- package/dist/node_modules/postcss/lib/stringify.mjs +19 -0
- package/dist/node_modules/postcss/lib/stringify.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/symbols.js +13 -0
- package/dist/node_modules/postcss/lib/symbols.js.map +1 -0
- package/dist/node_modules/postcss/lib/symbols.mjs +13 -0
- package/dist/node_modules/postcss/lib/symbols.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/tokenize.js +219 -0
- package/dist/node_modules/postcss/lib/tokenize.js.map +1 -0
- package/dist/node_modules/postcss/lib/tokenize.mjs +219 -0
- package/dist/node_modules/postcss/lib/tokenize.mjs.map +1 -0
- package/dist/node_modules/postcss/lib/warning.js +40 -0
- package/dist/node_modules/postcss/lib/warning.js.map +1 -0
- package/dist/node_modules/postcss/lib/warning.mjs +40 -0
- package/dist/node_modules/postcss/lib/warning.mjs.map +1 -0
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.js +130 -0
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.js.map +1 -0
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.mjs +130 -0
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.mjs.map +1 -0
- package/dist/slots/create.d.ts +15 -0
- package/dist/slots/create.d.ts.map +1 -0
- package/dist/slots/create.js +50 -0
- package/dist/slots/create.js.map +1 -0
- package/dist/slots/create.mjs +50 -0
- package/dist/slots/create.mjs.map +1 -0
- package/dist/slots/element.d.ts +3 -0
- package/dist/slots/element.d.ts.map +1 -0
- package/dist/slots/element.js +42 -0
- package/dist/slots/element.js.map +1 -0
- package/dist/slots/element.mjs +42 -0
- package/dist/slots/element.mjs.map +1 -0
- package/dist/slots/extract.d.ts +6 -0
- package/dist/slots/extract.d.ts.map +1 -0
- package/dist/slots/index.d.ts +140 -0
- package/dist/slots/index.d.ts.map +1 -0
- package/dist/slots/mapping.d.ts +82 -0
- package/dist/slots/mapping.d.ts.map +1 -0
- package/dist/slots/mapping.js +97 -0
- package/dist/slots/mapping.js.map +1 -0
- package/dist/slots/mapping.mjs +97 -0
- package/dist/slots/mapping.mjs.map +1 -0
- package/dist/slots/query.d.ts +9 -0
- package/dist/slots/query.d.ts.map +1 -0
- package/dist/slots/validate.d.ts +22 -0
- package/dist/slots/validate.d.ts.map +1 -0
- package/dist/slots.d.ts +6 -0
- package/dist/slots.js +73 -0
- package/dist/slots.js.map +1 -0
- package/dist/slots.mjs +74 -0
- package/dist/slots.mjs.map +1 -0
- package/dist/utilities/index.d.ts +4 -0
- package/dist/utilities/index.d.ts.map +1 -0
- package/dist/utilities/lifecycle.d.ts +12 -0
- package/dist/utilities/lifecycle.d.ts.map +1 -0
- package/dist/utilities/lifecycle.js +21 -0
- package/dist/utilities/lifecycle.js.map +1 -0
- package/dist/utilities/lifecycle.mjs +21 -0
- package/dist/utilities/lifecycle.mjs.map +1 -0
- package/dist/utilities/register.d.ts +17 -0
- package/dist/utilities/register.d.ts.map +1 -0
- package/dist/utilities/register.js +32 -0
- package/dist/utilities/register.js.map +1 -0
- package/dist/utilities/register.mjs +32 -0
- package/dist/utilities/register.mjs.map +1 -0
- package/dist/utilities/styles.d.ts +5 -0
- package/dist/utilities/styles.d.ts.map +1 -0
- package/dist/utilities/styles.js +79 -0
- package/dist/utilities/styles.js.map +1 -0
- package/dist/utilities/styles.mjs +80 -0
- package/dist/utilities/styles.mjs.map +1 -0
- package/dist/utilities.d.ts +2 -0
- package/dist/utilities.js +11 -0
- package/dist/utilities.js.map +1 -0
- package/dist/utilities.mjs +11 -0
- package/dist/utilities.mjs.map +1 -0
- package/package.json +69 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const postcss = require("../../../_virtual/postcss.js");
|
|
3
|
+
postcss.stringify;
|
|
4
|
+
postcss.fromJSON;
|
|
5
|
+
postcss.plugin;
|
|
6
|
+
postcss.parse;
|
|
7
|
+
postcss.list;
|
|
8
|
+
postcss.document;
|
|
9
|
+
postcss.comment;
|
|
10
|
+
postcss.atRule;
|
|
11
|
+
postcss.rule;
|
|
12
|
+
postcss.decl;
|
|
13
|
+
postcss.root;
|
|
14
|
+
postcss.CssSyntaxError;
|
|
15
|
+
postcss.Declaration;
|
|
16
|
+
postcss.Container;
|
|
17
|
+
postcss.Processor;
|
|
18
|
+
postcss.Document;
|
|
19
|
+
postcss.Comment;
|
|
20
|
+
postcss.Warning;
|
|
21
|
+
postcss.AtRule;
|
|
22
|
+
postcss.Result;
|
|
23
|
+
postcss.Input;
|
|
24
|
+
postcss.Rule;
|
|
25
|
+
postcss.Root;
|
|
26
|
+
postcss.Node;
|
|
27
|
+
module.exports = postcss;
|
|
28
|
+
//# sourceMappingURL=postcss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postcss.js","sources":["../../../../../../node_modules/postcss/lib/postcss.mjs"],"sourcesContent":["import postcss from './postcss.js'\n\nexport default postcss\n\nexport const stringify = postcss.stringify\nexport const fromJSON = postcss.fromJSON\nexport const plugin = postcss.plugin\nexport const parse = postcss.parse\nexport const list = postcss.list\n\nexport const document = postcss.document\nexport const comment = postcss.comment\nexport const atRule = postcss.atRule\nexport const rule = postcss.rule\nexport const decl = postcss.decl\nexport const root = postcss.root\n\nexport const CssSyntaxError = postcss.CssSyntaxError\nexport const Declaration = postcss.Declaration\nexport const Container = postcss.Container\nexport const Processor = postcss.Processor\nexport const Document = postcss.Document\nexport const Comment = postcss.Comment\nexport const Warning = postcss.Warning\nexport const AtRule = postcss.AtRule\nexport const Result = postcss.Result\nexport const Input = postcss.Input\nexport const Rule = postcss.Rule\nexport const Root = postcss.Root\nexport const Node = postcss.Node\n"],"names":[],"mappings":";;AAIyB,QAAQ;AACT,QAAQ;AACV,QAAQ;AACT,QAAQ;AACT,QAAQ;AAEJ,QAAQ;AACT,QAAQ;AACT,QAAQ;AACV,QAAQ;AACR,QAAQ;AACR,QAAQ;AAEE,QAAQ;AACX,QAAQ;AACV,QAAQ;AACR,QAAQ;AACT,QAAQ;AACT,QAAQ;AACR,QAAQ;AACT,QAAQ;AACR,QAAQ;AACT,QAAQ;AACT,QAAQ;AACR,QAAQ;AACR,QAAQ;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import postcss from "../../../_virtual/postcss.mjs";
|
|
2
|
+
postcss.stringify;
|
|
3
|
+
postcss.fromJSON;
|
|
4
|
+
postcss.plugin;
|
|
5
|
+
postcss.parse;
|
|
6
|
+
postcss.list;
|
|
7
|
+
postcss.document;
|
|
8
|
+
postcss.comment;
|
|
9
|
+
postcss.atRule;
|
|
10
|
+
postcss.rule;
|
|
11
|
+
postcss.decl;
|
|
12
|
+
postcss.root;
|
|
13
|
+
postcss.CssSyntaxError;
|
|
14
|
+
postcss.Declaration;
|
|
15
|
+
postcss.Container;
|
|
16
|
+
postcss.Processor;
|
|
17
|
+
postcss.Document;
|
|
18
|
+
postcss.Comment;
|
|
19
|
+
postcss.Warning;
|
|
20
|
+
postcss.AtRule;
|
|
21
|
+
postcss.Result;
|
|
22
|
+
postcss.Input;
|
|
23
|
+
postcss.Rule;
|
|
24
|
+
postcss.Root;
|
|
25
|
+
postcss.Node;
|
|
26
|
+
export {
|
|
27
|
+
postcss as default
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=postcss.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postcss.mjs","sources":["../../../../../../node_modules/postcss/lib/postcss.mjs"],"sourcesContent":["import postcss from './postcss.js'\n\nexport default postcss\n\nexport const stringify = postcss.stringify\nexport const fromJSON = postcss.fromJSON\nexport const plugin = postcss.plugin\nexport const parse = postcss.parse\nexport const list = postcss.list\n\nexport const document = postcss.document\nexport const comment = postcss.comment\nexport const atRule = postcss.atRule\nexport const rule = postcss.rule\nexport const decl = postcss.decl\nexport const root = postcss.root\n\nexport const CssSyntaxError = postcss.CssSyntaxError\nexport const Declaration = postcss.Declaration\nexport const Container = postcss.Container\nexport const Processor = postcss.Processor\nexport const Document = postcss.Document\nexport const Comment = postcss.Comment\nexport const Warning = postcss.Warning\nexport const AtRule = postcss.AtRule\nexport const Result = postcss.Result\nexport const Input = postcss.Input\nexport const Rule = postcss.Rule\nexport const Root = postcss.Root\nexport const Node = postcss.Node\n"],"names":[],"mappings":";AAIyB,QAAQ;AACT,QAAQ;AACV,QAAQ;AACT,QAAQ;AACT,QAAQ;AAEJ,QAAQ;AACT,QAAQ;AACT,QAAQ;AACV,QAAQ;AACR,QAAQ;AACR,QAAQ;AAEE,QAAQ;AACX,QAAQ;AACV,QAAQ;AACR,QAAQ;AACT,QAAQ;AACT,QAAQ;AACR,QAAQ;AACT,QAAQ;AACR,QAAQ;AACT,QAAQ;AACT,QAAQ;AACR,QAAQ;AACR,QAAQ;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const cssSyntaxError = require("./css-syntax-error.js");
|
|
4
|
+
const declaration = require("./declaration.js");
|
|
5
|
+
const lazyResult = require("./lazy-result.js");
|
|
6
|
+
const container = require("./container.js");
|
|
7
|
+
const processor = require("./processor.js");
|
|
8
|
+
const stringify = require("./stringify.js");
|
|
9
|
+
const fromJSON = require("./fromJSON.js");
|
|
10
|
+
const document = require("./document.js");
|
|
11
|
+
const warning = require("./warning.js");
|
|
12
|
+
const comment = require("./comment.js");
|
|
13
|
+
const atRule = require("./at-rule.js");
|
|
14
|
+
const result = require("./result.js");
|
|
15
|
+
const input = require("./input.js");
|
|
16
|
+
const parse = require("./parse.js");
|
|
17
|
+
const list = require("./list.js");
|
|
18
|
+
const rule = require("./rule.js");
|
|
19
|
+
const root = require("./root.js");
|
|
20
|
+
const node = require("./node.js");
|
|
21
|
+
var postcss_1;
|
|
22
|
+
var hasRequiredPostcss;
|
|
23
|
+
function requirePostcss() {
|
|
24
|
+
if (hasRequiredPostcss) return postcss_1;
|
|
25
|
+
hasRequiredPostcss = 1;
|
|
26
|
+
let CssSyntaxError = cssSyntaxError.__require();
|
|
27
|
+
let Declaration = declaration.__require();
|
|
28
|
+
let LazyResult = lazyResult.__require();
|
|
29
|
+
let Container = container.__require();
|
|
30
|
+
let Processor = processor.__require();
|
|
31
|
+
let stringify$1 = stringify.__require();
|
|
32
|
+
let fromJSON$1 = fromJSON.__require();
|
|
33
|
+
let Document = document.__require();
|
|
34
|
+
let Warning = warning.__require();
|
|
35
|
+
let Comment = comment.__require();
|
|
36
|
+
let AtRule = atRule.__require();
|
|
37
|
+
let Result = result.__require();
|
|
38
|
+
let Input = input.__require();
|
|
39
|
+
let parse$1 = parse.__require();
|
|
40
|
+
let list$1 = list.__require();
|
|
41
|
+
let Rule = rule.__require();
|
|
42
|
+
let Root = root.__require();
|
|
43
|
+
let Node = node.__require();
|
|
44
|
+
function postcss(...plugins) {
|
|
45
|
+
if (plugins.length === 1 && Array.isArray(plugins[0])) {
|
|
46
|
+
plugins = plugins[0];
|
|
47
|
+
}
|
|
48
|
+
return new Processor(plugins);
|
|
49
|
+
}
|
|
50
|
+
postcss.plugin = function plugin(name, initializer) {
|
|
51
|
+
let warningPrinted = false;
|
|
52
|
+
function creator(...args) {
|
|
53
|
+
if (console && console.warn && !warningPrinted) {
|
|
54
|
+
warningPrinted = true;
|
|
55
|
+
console.warn(
|
|
56
|
+
name + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"
|
|
57
|
+
);
|
|
58
|
+
if (process.env.LANG && process.env.LANG.startsWith("cn")) {
|
|
59
|
+
console.warn(
|
|
60
|
+
name + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
let transformer = initializer(...args);
|
|
65
|
+
transformer.postcssPlugin = name;
|
|
66
|
+
transformer.postcssVersion = new Processor().version;
|
|
67
|
+
return transformer;
|
|
68
|
+
}
|
|
69
|
+
let cache;
|
|
70
|
+
Object.defineProperty(creator, "postcss", {
|
|
71
|
+
get() {
|
|
72
|
+
if (!cache) cache = creator();
|
|
73
|
+
return cache;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
creator.process = function(css, processOpts, pluginOpts) {
|
|
77
|
+
return postcss([creator(pluginOpts)]).process(css, processOpts);
|
|
78
|
+
};
|
|
79
|
+
return creator;
|
|
80
|
+
};
|
|
81
|
+
postcss.stringify = stringify$1;
|
|
82
|
+
postcss.parse = parse$1;
|
|
83
|
+
postcss.fromJSON = fromJSON$1;
|
|
84
|
+
postcss.list = list$1;
|
|
85
|
+
postcss.comment = (defaults) => new Comment(defaults);
|
|
86
|
+
postcss.atRule = (defaults) => new AtRule(defaults);
|
|
87
|
+
postcss.decl = (defaults) => new Declaration(defaults);
|
|
88
|
+
postcss.rule = (defaults) => new Rule(defaults);
|
|
89
|
+
postcss.root = (defaults) => new Root(defaults);
|
|
90
|
+
postcss.document = (defaults) => new Document(defaults);
|
|
91
|
+
postcss.CssSyntaxError = CssSyntaxError;
|
|
92
|
+
postcss.Declaration = Declaration;
|
|
93
|
+
postcss.Container = Container;
|
|
94
|
+
postcss.Processor = Processor;
|
|
95
|
+
postcss.Document = Document;
|
|
96
|
+
postcss.Comment = Comment;
|
|
97
|
+
postcss.Warning = Warning;
|
|
98
|
+
postcss.AtRule = AtRule;
|
|
99
|
+
postcss.Result = Result;
|
|
100
|
+
postcss.Input = Input;
|
|
101
|
+
postcss.Rule = Rule;
|
|
102
|
+
postcss.Root = Root;
|
|
103
|
+
postcss.Node = Node;
|
|
104
|
+
LazyResult.registerPostcss(postcss);
|
|
105
|
+
postcss_1 = postcss;
|
|
106
|
+
postcss.default = postcss;
|
|
107
|
+
return postcss_1;
|
|
108
|
+
}
|
|
109
|
+
exports.__require = requirePostcss;
|
|
110
|
+
//# sourceMappingURL=postcss2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postcss2.js","sources":["../../../../../../node_modules/postcss/lib/postcss.js"],"sourcesContent":["'use strict'\n\nlet CssSyntaxError = require('./css-syntax-error')\nlet Declaration = require('./declaration')\nlet LazyResult = require('./lazy-result')\nlet Container = require('./container')\nlet Processor = require('./processor')\nlet stringify = require('./stringify')\nlet fromJSON = require('./fromJSON')\nlet Document = require('./document')\nlet Warning = require('./warning')\nlet Comment = require('./comment')\nlet AtRule = require('./at-rule')\nlet Result = require('./result.js')\nlet Input = require('./input')\nlet parse = require('./parse')\nlet list = require('./list')\nlet Rule = require('./rule')\nlet Root = require('./root')\nlet Node = require('./node')\n\nfunction postcss(...plugins) {\n if (plugins.length === 1 && Array.isArray(plugins[0])) {\n plugins = plugins[0]\n }\n return new Processor(plugins)\n}\n\npostcss.plugin = function plugin(name, initializer) {\n let warningPrinted = false\n function creator(...args) {\n // eslint-disable-next-line no-console\n if (console && console.warn && !warningPrinted) {\n warningPrinted = true\n // eslint-disable-next-line no-console\n console.warn(\n name +\n ': postcss.plugin was deprecated. Migration guide:\\n' +\n 'https://evilmartians.com/chronicles/postcss-8-plugin-migration'\n )\n if (process.env.LANG && process.env.LANG.startsWith('cn')) {\n /* c8 ignore next 7 */\n // eslint-disable-next-line no-console\n console.warn(\n name +\n ': 里面 postcss.plugin 被弃用. 迁移指南:\\n' +\n 'https://www.w3ctech.com/topic/2226'\n )\n }\n }\n let transformer = initializer(...args)\n transformer.postcssPlugin = name\n transformer.postcssVersion = new Processor().version\n return transformer\n }\n\n let cache\n Object.defineProperty(creator, 'postcss', {\n get() {\n if (!cache) cache = creator()\n return cache\n }\n })\n\n creator.process = function (css, processOpts, pluginOpts) {\n return postcss([creator(pluginOpts)]).process(css, processOpts)\n }\n\n return creator\n}\n\npostcss.stringify = stringify\npostcss.parse = parse\npostcss.fromJSON = fromJSON\npostcss.list = list\n\npostcss.comment = defaults => new Comment(defaults)\npostcss.atRule = defaults => new AtRule(defaults)\npostcss.decl = defaults => new Declaration(defaults)\npostcss.rule = defaults => new Rule(defaults)\npostcss.root = defaults => new Root(defaults)\npostcss.document = defaults => new Document(defaults)\n\npostcss.CssSyntaxError = CssSyntaxError\npostcss.Declaration = Declaration\npostcss.Container = Container\npostcss.Processor = Processor\npostcss.Document = Document\npostcss.Comment = Comment\npostcss.Warning = Warning\npostcss.AtRule = AtRule\npostcss.Result = Result\npostcss.Input = Input\npostcss.Rule = Rule\npostcss.Root = Root\npostcss.Node = Node\n\nLazyResult.registerPostcss(postcss)\n\nmodule.exports = postcss\npostcss.default = postcss\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","stringify","require$$5","fromJSON","require$$6","require$$7","require$$8","require$$9","require$$10","require$$11","require$$12","parse","require$$13","list","require$$14","require$$15","require$$16","require$$17"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAAI,iBAAiBA,eAAAA,UAAA;AACrB,MAAI,cAAcC,YAAAA,UAAA;AAClB,MAAI,aAAaC,WAAAA,UAAA;AACjB,MAAI,YAAYC,UAAAA,UAAA;AAChB,MAAI,YAAYC,UAAAA,UAAA;AAChB,MAAIC,cAAYC,UAAAA,UAAA;AAChB,MAAIC,aAAWC,SAAAA,UAAA;AACf,MAAI,WAAWC,SAAAA,UAAA;AACf,MAAI,UAAUC,QAAAA,UAAA;AACd,MAAI,UAAUC,QAAAA,UAAA;AACd,MAAI,SAASC,OAAAA,UAAA;AACb,MAAI,SAASC,OAAAA,UAAA;AACb,MAAI,QAAQC,MAAAA,UAAA;AACZ,MAAIC,UAAQC,MAAAA,UAAA;AACZ,MAAIC,SAAOC,KAAAA,UAAA;AACX,MAAI,OAAOC,KAAAA,UAAA;AACX,MAAI,OAAOC,KAAAA,UAAA;AACX,MAAI,OAAOC,KAAAA,UAAA;AAEX,WAAS,WAAW,SAAS;AAC3B,QAAI,QAAQ,WAAW,KAAK,MAAM,QAAQ,QAAQ,CAAC,CAAC,GAAG;AACrD,gBAAU,QAAQ,CAAC;AAAA,IACvB;AACE,WAAO,IAAI,UAAU,OAAO;AAAA,EAC9B;AAEA,UAAQ,SAAS,SAAS,OAAO,MAAM,aAAa;AAClD,QAAI,iBAAiB;AACrB,aAAS,WAAW,MAAM;AAExB,UAAI,WAAW,QAAQ,QAAQ,CAAC,gBAAgB;AAC9C,yBAAiB;AAEjB,gBAAQ;AAAA,UACN,OACE;AAAA,QAEV;AAC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,0 +1,110 @@
|
|
|
1
|
+
import { __require as requireCssSyntaxError } from "./css-syntax-error.mjs";
|
|
2
|
+
import { __require as requireDeclaration } from "./declaration.mjs";
|
|
3
|
+
import { __require as requireLazyResult } from "./lazy-result.mjs";
|
|
4
|
+
import { __require as requireContainer } from "./container.mjs";
|
|
5
|
+
import { __require as requireProcessor } from "./processor.mjs";
|
|
6
|
+
import { __require as requireStringify } from "./stringify.mjs";
|
|
7
|
+
import { __require as requireFromJSON } from "./fromJSON.mjs";
|
|
8
|
+
import { __require as requireDocument } from "./document.mjs";
|
|
9
|
+
import { __require as requireWarning } from "./warning.mjs";
|
|
10
|
+
import { __require as requireComment } from "./comment.mjs";
|
|
11
|
+
import { __require as requireAtRule } from "./at-rule.mjs";
|
|
12
|
+
import { __require as requireResult } from "./result.mjs";
|
|
13
|
+
import { __require as requireInput } from "./input.mjs";
|
|
14
|
+
import { __require as requireParse } from "./parse.mjs";
|
|
15
|
+
import { __require as requireList } from "./list.mjs";
|
|
16
|
+
import { __require as requireRule } from "./rule.mjs";
|
|
17
|
+
import { __require as requireRoot } from "./root.mjs";
|
|
18
|
+
import { __require as requireNode } from "./node.mjs";
|
|
19
|
+
var postcss_1;
|
|
20
|
+
var hasRequiredPostcss;
|
|
21
|
+
function requirePostcss() {
|
|
22
|
+
if (hasRequiredPostcss) return postcss_1;
|
|
23
|
+
hasRequiredPostcss = 1;
|
|
24
|
+
let CssSyntaxError = requireCssSyntaxError();
|
|
25
|
+
let Declaration = requireDeclaration();
|
|
26
|
+
let LazyResult = requireLazyResult();
|
|
27
|
+
let Container = requireContainer();
|
|
28
|
+
let Processor = requireProcessor();
|
|
29
|
+
let stringify = requireStringify();
|
|
30
|
+
let fromJSON = requireFromJSON();
|
|
31
|
+
let Document = requireDocument();
|
|
32
|
+
let Warning = requireWarning();
|
|
33
|
+
let Comment = requireComment();
|
|
34
|
+
let AtRule = requireAtRule();
|
|
35
|
+
let Result = requireResult();
|
|
36
|
+
let Input = requireInput();
|
|
37
|
+
let parse = requireParse();
|
|
38
|
+
let list = requireList();
|
|
39
|
+
let Rule = requireRule();
|
|
40
|
+
let Root = requireRoot();
|
|
41
|
+
let Node = requireNode();
|
|
42
|
+
function postcss(...plugins) {
|
|
43
|
+
if (plugins.length === 1 && Array.isArray(plugins[0])) {
|
|
44
|
+
plugins = plugins[0];
|
|
45
|
+
}
|
|
46
|
+
return new Processor(plugins);
|
|
47
|
+
}
|
|
48
|
+
postcss.plugin = function plugin(name, initializer) {
|
|
49
|
+
let warningPrinted = false;
|
|
50
|
+
function creator(...args) {
|
|
51
|
+
if (console && console.warn && !warningPrinted) {
|
|
52
|
+
warningPrinted = true;
|
|
53
|
+
console.warn(
|
|
54
|
+
name + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"
|
|
55
|
+
);
|
|
56
|
+
if (process.env.LANG && process.env.LANG.startsWith("cn")) {
|
|
57
|
+
console.warn(
|
|
58
|
+
name + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
let transformer = initializer(...args);
|
|
63
|
+
transformer.postcssPlugin = name;
|
|
64
|
+
transformer.postcssVersion = new Processor().version;
|
|
65
|
+
return transformer;
|
|
66
|
+
}
|
|
67
|
+
let cache;
|
|
68
|
+
Object.defineProperty(creator, "postcss", {
|
|
69
|
+
get() {
|
|
70
|
+
if (!cache) cache = creator();
|
|
71
|
+
return cache;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
creator.process = function(css, processOpts, pluginOpts) {
|
|
75
|
+
return postcss([creator(pluginOpts)]).process(css, processOpts);
|
|
76
|
+
};
|
|
77
|
+
return creator;
|
|
78
|
+
};
|
|
79
|
+
postcss.stringify = stringify;
|
|
80
|
+
postcss.parse = parse;
|
|
81
|
+
postcss.fromJSON = fromJSON;
|
|
82
|
+
postcss.list = list;
|
|
83
|
+
postcss.comment = (defaults) => new Comment(defaults);
|
|
84
|
+
postcss.atRule = (defaults) => new AtRule(defaults);
|
|
85
|
+
postcss.decl = (defaults) => new Declaration(defaults);
|
|
86
|
+
postcss.rule = (defaults) => new Rule(defaults);
|
|
87
|
+
postcss.root = (defaults) => new Root(defaults);
|
|
88
|
+
postcss.document = (defaults) => new Document(defaults);
|
|
89
|
+
postcss.CssSyntaxError = CssSyntaxError;
|
|
90
|
+
postcss.Declaration = Declaration;
|
|
91
|
+
postcss.Container = Container;
|
|
92
|
+
postcss.Processor = Processor;
|
|
93
|
+
postcss.Document = Document;
|
|
94
|
+
postcss.Comment = Comment;
|
|
95
|
+
postcss.Warning = Warning;
|
|
96
|
+
postcss.AtRule = AtRule;
|
|
97
|
+
postcss.Result = Result;
|
|
98
|
+
postcss.Input = Input;
|
|
99
|
+
postcss.Rule = Rule;
|
|
100
|
+
postcss.Root = Root;
|
|
101
|
+
postcss.Node = Node;
|
|
102
|
+
LazyResult.registerPostcss(postcss);
|
|
103
|
+
postcss_1 = postcss;
|
|
104
|
+
postcss.default = postcss;
|
|
105
|
+
return postcss_1;
|
|
106
|
+
}
|
|
107
|
+
export {
|
|
108
|
+
requirePostcss as __require
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=postcss2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postcss2.mjs","sources":["../../../../../../node_modules/postcss/lib/postcss.js"],"sourcesContent":["'use strict'\n\nlet CssSyntaxError = require('./css-syntax-error')\nlet Declaration = require('./declaration')\nlet LazyResult = require('./lazy-result')\nlet Container = require('./container')\nlet Processor = require('./processor')\nlet stringify = require('./stringify')\nlet fromJSON = require('./fromJSON')\nlet Document = require('./document')\nlet Warning = require('./warning')\nlet Comment = require('./comment')\nlet AtRule = require('./at-rule')\nlet Result = require('./result.js')\nlet Input = require('./input')\nlet parse = require('./parse')\nlet list = require('./list')\nlet Rule = require('./rule')\nlet Root = require('./root')\nlet Node = require('./node')\n\nfunction postcss(...plugins) {\n if (plugins.length === 1 && Array.isArray(plugins[0])) {\n plugins = plugins[0]\n }\n return new Processor(plugins)\n}\n\npostcss.plugin = function plugin(name, initializer) {\n let warningPrinted = false\n function creator(...args) {\n // eslint-disable-next-line no-console\n if (console && console.warn && !warningPrinted) {\n warningPrinted = true\n // eslint-disable-next-line no-console\n console.warn(\n name +\n ': postcss.plugin was deprecated. Migration guide:\\n' +\n 'https://evilmartians.com/chronicles/postcss-8-plugin-migration'\n )\n if (process.env.LANG && process.env.LANG.startsWith('cn')) {\n /* c8 ignore next 7 */\n // eslint-disable-next-line no-console\n console.warn(\n name +\n ': 里面 postcss.plugin 被弃用. 迁移指南:\\n' +\n 'https://www.w3ctech.com/topic/2226'\n )\n }\n }\n let transformer = initializer(...args)\n transformer.postcssPlugin = name\n transformer.postcssVersion = new Processor().version\n return transformer\n }\n\n let cache\n Object.defineProperty(creator, 'postcss', {\n get() {\n if (!cache) cache = creator()\n return cache\n }\n })\n\n creator.process = function (css, processOpts, pluginOpts) {\n return postcss([creator(pluginOpts)]).process(css, processOpts)\n }\n\n return creator\n}\n\npostcss.stringify = stringify\npostcss.parse = parse\npostcss.fromJSON = fromJSON\npostcss.list = list\n\npostcss.comment = defaults => new Comment(defaults)\npostcss.atRule = defaults => new AtRule(defaults)\npostcss.decl = defaults => new Declaration(defaults)\npostcss.rule = defaults => new Rule(defaults)\npostcss.root = defaults => new Root(defaults)\npostcss.document = defaults => new Document(defaults)\n\npostcss.CssSyntaxError = CssSyntaxError\npostcss.Declaration = Declaration\npostcss.Container = Container\npostcss.Processor = Processor\npostcss.Document = Document\npostcss.Comment = Comment\npostcss.Warning = Warning\npostcss.AtRule = AtRule\npostcss.Result = Result\npostcss.Input = Input\npostcss.Rule = Rule\npostcss.Root = Root\npostcss.Node = Node\n\nLazyResult.registerPostcss(postcss)\n\nmodule.exports = postcss\npostcss.default = postcss\n"],"names":["require$$0","require$$1","require$$2","require$$3","require$$4","require$$5","require$$6","require$$7","require$$8","require$$9","require$$10","require$$11","require$$12","require$$13","require$$14","require$$15","require$$16","require$$17"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAEA,MAAI,iBAAiBA,sBAAA;AACrB,MAAI,cAAcC,mBAAA;AAClB,MAAI,aAAaC,kBAAA;AACjB,MAAI,YAAYC,iBAAA;AAChB,MAAI,YAAYC,iBAAA;AAChB,MAAI,YAAYC,iBAAA;AAChB,MAAI,WAAWC,gBAAA;AACf,MAAI,WAAWC,gBAAA;AACf,MAAI,UAAUC,eAAA;AACd,MAAI,UAAUC,eAAA;AACd,MAAI,SAASC,cAAA;AACb,MAAI,SAASC,cAAA;AACb,MAAI,QAAQC,aAAA;AACZ,MAAI,QAAQC,aAAA;AACZ,MAAI,OAAOC,YAAA;AACX,MAAI,OAAOC,YAAA;AACX,MAAI,OAAOC,YAAA;AACX,MAAI,OAAOC,YAAA;AAEX,WAAS,WAAW,SAAS;AAC3B,QAAI,QAAQ,WAAW,KAAK,MAAM,QAAQ,QAAQ,CAAC,CAAC,GAAG;AACrD,gBAAU,QAAQ,CAAC;AAAA,IACvB;AACE,WAAO,IAAI,UAAU,OAAO;AAAA,EAC9B;AAEA,UAAQ,SAAS,SAAS,OAAO,MAAM,aAAa;AAClD,QAAI,iBAAiB;AACrB,aAAS,WAAW,MAAM;AAExB,UAAI,WAAW,QAAQ,QAAQ,CAAC,gBAAgB;AAC9C,yBAAiB;AAEjB,gBAAQ;AAAA,UACN,OACE;AAAA,QAEV;AACM,YAAI,QAAQ,IAAI,QAAQ,QAAQ,IAAI,KAAK,WAAW,IAAI,GAAG;AAGzD,kBAAQ;AAAA,YACN,OACE;AAAA,UAEZ;AAAA,QACA;AAAA,MACA;AACI,UAAI,cAAc,YAAY,GAAG,IAAI;AACrC,kBAAY,gBAAgB;AAC5B,kBAAY,iBAAiB,IAAI,YAAY;AAC7C,aAAO;AAAA,IACX;AAEE,QAAI;AACJ,WAAO,eAAe,SAAS,WAAW;AAAA,MACxC,MAAM;AACJ,YAAI,CAAC,MAAO,SAAQ,QAAO;AAC3B,eAAO;AAAA,MACb;AAAA,KACG;AAED,YAAQ,UAAU,SAAU,KAAK,aAAa,YAAY;AACxD,aAAO,QAAQ,CAAC,QAAQ,UAAU,CAAC,CAAC,EAAE,QAAQ,KAAK,WAAW;AAAA,IAClE;AAEE,WAAO;AAAA,EACT;AAEA,UAAQ,YAAY;AACpB,UAAQ,QAAQ;AAChB,UAAQ,WAAW;AACnB,UAAQ,OAAO;AAEf,UAAQ,UAAU,cAAY,IAAI,QAAQ,QAAQ;AAClD,UAAQ,SAAS,cAAY,IAAI,OAAO,QAAQ;AAChD,UAAQ,OAAO,cAAY,IAAI,YAAY,QAAQ;AACnD,UAAQ,OAAO,cAAY,IAAI,KAAK,QAAQ;AAC5C,UAAQ,OAAO,cAAY,IAAI,KAAK,QAAQ;AAC5C,UAAQ,WAAW,cAAY,IAAI,SAAS,QAAQ;AAEpD,UAAQ,iBAAiB;AACzB,UAAQ,cAAc;AACtB,UAAQ,YAAY;AACpB,UAAQ,YAAY;AACpB,UAAQ,WAAW;AACnB,UAAQ,UAAU;AAClB,UAAQ,UAAU;AAClB,UAAQ,SAAS;AACjB,UAAQ,SAAS;AACjB,UAAQ,QAAQ;AAChB,UAAQ,OAAO;AACf,UAAQ,OAAO;AACf,UAAQ,OAAO;AAEf,aAAW,gBAAgB,OAAO;AAElC,cAAiB;AACjB,UAAQ,UAAU;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const ___viteBrowserExternal_commonjsProxy = require("../../../_virtual/___vite-browser-external.js");
|
|
4
|
+
var previousMap;
|
|
5
|
+
var hasRequiredPreviousMap;
|
|
6
|
+
function requirePreviousMap() {
|
|
7
|
+
if (hasRequiredPreviousMap) return previousMap;
|
|
8
|
+
hasRequiredPreviousMap = 1;
|
|
9
|
+
let { SourceMapConsumer, SourceMapGenerator } = ___viteBrowserExternal_commonjsProxy;
|
|
10
|
+
let { existsSync, readFileSync } = ___viteBrowserExternal_commonjsProxy;
|
|
11
|
+
let { dirname, join } = ___viteBrowserExternal_commonjsProxy;
|
|
12
|
+
function fromBase64(str) {
|
|
13
|
+
if (Buffer) {
|
|
14
|
+
return Buffer.from(str, "base64").toString();
|
|
15
|
+
} else {
|
|
16
|
+
return window.atob(str);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
class PreviousMap {
|
|
20
|
+
constructor(css, opts) {
|
|
21
|
+
if (opts.map === false) return;
|
|
22
|
+
this.loadAnnotation(css);
|
|
23
|
+
this.inline = this.startWith(this.annotation, "data:");
|
|
24
|
+
let prev = opts.map ? opts.map.prev : void 0;
|
|
25
|
+
let text = this.loadMap(opts.from, prev);
|
|
26
|
+
if (!this.mapFile && opts.from) {
|
|
27
|
+
this.mapFile = opts.from;
|
|
28
|
+
}
|
|
29
|
+
if (this.mapFile) this.root = dirname(this.mapFile);
|
|
30
|
+
if (text) this.text = text;
|
|
31
|
+
}
|
|
32
|
+
consumer() {
|
|
33
|
+
if (!this.consumerCache) {
|
|
34
|
+
this.consumerCache = new SourceMapConsumer(this.text);
|
|
35
|
+
}
|
|
36
|
+
return this.consumerCache;
|
|
37
|
+
}
|
|
38
|
+
decodeInline(text) {
|
|
39
|
+
let baseCharsetUri = /^data:application\/json;charset=utf-?8;base64,/;
|
|
40
|
+
let baseUri = /^data:application\/json;base64,/;
|
|
41
|
+
let charsetUri = /^data:application\/json;charset=utf-?8,/;
|
|
42
|
+
let uri = /^data:application\/json,/;
|
|
43
|
+
if (charsetUri.test(text) || uri.test(text)) {
|
|
44
|
+
return decodeURIComponent(text.substr(RegExp.lastMatch.length));
|
|
45
|
+
}
|
|
46
|
+
if (baseCharsetUri.test(text) || baseUri.test(text)) {
|
|
47
|
+
return fromBase64(text.substr(RegExp.lastMatch.length));
|
|
48
|
+
}
|
|
49
|
+
let encoding = text.match(/data:application\/json;([^,]+),/)[1];
|
|
50
|
+
throw new Error("Unsupported source map encoding " + encoding);
|
|
51
|
+
}
|
|
52
|
+
getAnnotationURL(sourceMapString) {
|
|
53
|
+
return sourceMapString.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
|
|
54
|
+
}
|
|
55
|
+
isMap(map) {
|
|
56
|
+
if (typeof map !== "object") return false;
|
|
57
|
+
return typeof map.mappings === "string" || typeof map._mappings === "string" || Array.isArray(map.sections);
|
|
58
|
+
}
|
|
59
|
+
loadAnnotation(css) {
|
|
60
|
+
let comments = css.match(/\/\*\s*# sourceMappingURL=/gm);
|
|
61
|
+
if (!comments) return;
|
|
62
|
+
let start = css.lastIndexOf(comments.pop());
|
|
63
|
+
let end = css.indexOf("*/", start);
|
|
64
|
+
if (start > -1 && end > -1) {
|
|
65
|
+
this.annotation = this.getAnnotationURL(css.substring(start, end));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
loadFile(path) {
|
|
69
|
+
this.root = dirname(path);
|
|
70
|
+
if (existsSync(path)) {
|
|
71
|
+
this.mapFile = path;
|
|
72
|
+
return readFileSync(path, "utf-8").toString().trim();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
loadMap(file, prev) {
|
|
76
|
+
if (prev === false) return false;
|
|
77
|
+
if (prev) {
|
|
78
|
+
if (typeof prev === "string") {
|
|
79
|
+
return prev;
|
|
80
|
+
} else if (typeof prev === "function") {
|
|
81
|
+
let prevPath = prev(file);
|
|
82
|
+
if (prevPath) {
|
|
83
|
+
let map = this.loadFile(prevPath);
|
|
84
|
+
if (!map) {
|
|
85
|
+
throw new Error(
|
|
86
|
+
"Unable to load previous source map: " + prevPath.toString()
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
return map;
|
|
90
|
+
}
|
|
91
|
+
} else if (prev instanceof SourceMapConsumer) {
|
|
92
|
+
return SourceMapGenerator.fromSourceMap(prev).toString();
|
|
93
|
+
} else if (prev instanceof SourceMapGenerator) {
|
|
94
|
+
return prev.toString();
|
|
95
|
+
} else if (this.isMap(prev)) {
|
|
96
|
+
return JSON.stringify(prev);
|
|
97
|
+
} else {
|
|
98
|
+
throw new Error(
|
|
99
|
+
"Unsupported previous source map format: " + prev.toString()
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
} else if (this.inline) {
|
|
103
|
+
return this.decodeInline(this.annotation);
|
|
104
|
+
} else if (this.annotation) {
|
|
105
|
+
let map = this.annotation;
|
|
106
|
+
if (file) map = join(dirname(file), map);
|
|
107
|
+
return this.loadFile(map);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
startWith(string, start) {
|
|
111
|
+
if (!string) return false;
|
|
112
|
+
return string.substr(0, start.length) === start;
|
|
113
|
+
}
|
|
114
|
+
withContent() {
|
|
115
|
+
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
previousMap = PreviousMap;
|
|
119
|
+
PreviousMap.default = PreviousMap;
|
|
120
|
+
return previousMap;
|
|
121
|
+
}
|
|
122
|
+
exports.__require = requirePreviousMap;
|
|
123
|
+
//# sourceMappingURL=previous-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"previous-map.js","sources":["../../../../../../node_modules/postcss/lib/previous-map.js"],"sourcesContent":["'use strict'\n\nlet { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')\nlet { existsSync, readFileSync } = require('fs')\nlet { dirname, join } = require('path')\n\nfunction fromBase64(str) {\n if (Buffer) {\n return Buffer.from(str, 'base64').toString()\n } else {\n /* c8 ignore next 2 */\n return window.atob(str)\n }\n}\n\nclass PreviousMap {\n constructor(css, opts) {\n if (opts.map === false) return\n this.loadAnnotation(css)\n this.inline = this.startWith(this.annotation, 'data:')\n\n let prev = opts.map ? opts.map.prev : undefined\n let text = this.loadMap(opts.from, prev)\n if (!this.mapFile && opts.from) {\n this.mapFile = opts.from\n }\n if (this.mapFile) this.root = dirname(this.mapFile)\n if (text) this.text = text\n }\n\n consumer() {\n if (!this.consumerCache) {\n this.consumerCache = new SourceMapConsumer(this.text)\n }\n return this.consumerCache\n }\n\n decodeInline(text) {\n let baseCharsetUri = /^data:application\\/json;charset=utf-?8;base64,/\n let baseUri = /^data:application\\/json;base64,/\n let charsetUri = /^data:application\\/json;charset=utf-?8,/\n let uri = /^data:application\\/json,/\n\n if (charsetUri.test(text) || uri.test(text)) {\n return decodeURIComponent(text.substr(RegExp.lastMatch.length))\n }\n\n if (baseCharsetUri.test(text) || baseUri.test(text)) {\n return fromBase64(text.substr(RegExp.lastMatch.length))\n }\n\n let encoding = text.match(/data:application\\/json;([^,]+),/)[1]\n throw new Error('Unsupported source map encoding ' + encoding)\n }\n\n getAnnotationURL(sourceMapString) {\n return sourceMapString.replace(/^\\/\\*\\s*# sourceMappingURL=/, '').trim()\n }\n\n isMap(map) {\n if (typeof map !== 'object') return false\n return (\n typeof map.mappings === 'string' ||\n typeof map._mappings === 'string' ||\n Array.isArray(map.sections)\n )\n }\n\n loadAnnotation(css) {\n let comments = css.match(/\\/\\*\\s*# sourceMappingURL=/gm)\n if (!comments) return\n\n // sourceMappingURLs from comments, strings, etc.\n let start = css.lastIndexOf(comments.pop())\n let end = css.indexOf('*/', start)\n\n if (start > -1 && end > -1) {\n // Locate the last sourceMappingURL to avoid pickin\n this.annotation = this.getAnnotationURL(css.substring(start, end))\n }\n }\n\n loadFile(path) {\n this.root = dirname(path)\n if (existsSync(path)) {\n this.mapFile = path\n return readFileSync(path, 'utf-8').toString().trim()\n }\n }\n\n loadMap(file, prev) {\n if (prev === false) return false\n\n if (prev) {\n if (typeof prev === 'string') {\n return prev\n } else if (typeof prev === 'function') {\n let prevPath = prev(file)\n if (prevPath) {\n let map = this.loadFile(prevPath)\n if (!map) {\n throw new Error(\n 'Unable to load previous source map: ' + prevPath.toString()\n )\n }\n return map\n }\n } else if (prev instanceof SourceMapConsumer) {\n return SourceMapGenerator.fromSourceMap(prev).toString()\n } else if (prev instanceof SourceMapGenerator) {\n return prev.toString()\n } else if (this.isMap(prev)) {\n return JSON.stringify(prev)\n } else {\n throw new Error(\n 'Unsupported previous source map format: ' + prev.toString()\n )\n }\n } else if (this.inline) {\n return this.decodeInline(this.annotation)\n } else if (this.annotation) {\n let map = this.annotation\n if (file) map = join(dirname(file), map)\n return this.loadFile(map)\n }\n }\n\n startWith(string, start) {\n if (!string) return false\n return string.substr(0, start.length) === start\n }\n\n withContent() {\n return !!(\n this.consumer().sourcesContent &&\n this.consumer().sourcesContent.length > 0\n )\n }\n}\n\nmodule.exports = PreviousMap\nPreviousMap.default = PreviousMap\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;AAEA,MAAI,EAAE,mBAAmB,uBAAuBA;AAChD,MAAI,EAAE,YAAY,iBAAiBC;AACnC,MAAI,EAAE,SAAS,SAASC;AAExB,WAAS,WAAW,KAAK;AACvB,QAAI,QAAQ;AACV,aAAO,OAAO,KAAK,KAAK,QAAQ,EAAE,SAAQ;AAAA,IAC9C,OAAS;AAEL,aAAO,OAAO,KAAK,GAAG;AAAA,IAC1B;AAAA,EACA;AAAA,EAEA,MAAM,YAAY;AAAA,IAChB,YAAY,KAAK,MAAM;AACrB,UAAI,KAAK,QAAQ,MAAO;AACxB,WAAK,eAAe,GAAG;AACvB,WAAK,SAAS,KAAK,UAAU,KAAK,YAAY,OAAO;AAErD,UAAI,OAAO,KAAK,MAAM,KAAK,IAAI,OAAO;AACtC,UAAI,OAAO,KAAK,QAAQ,KAAK,MAAM,IAAI;AACvC,UAAI,CAAC,KAAK,WAAW,KAAK,MAAM;AAC9B,aAAK,UAAU,KAAK;AAAA,MAC1B;AACI,UAAI,KAAK,QAAS,MAAK,OAAO,QAAQ,KAAK,OAAO;AAClD,UAAI,KAAM,MAAK,OAAO;AAAA,IAC1B;AAAA,IAEE,WAAW;AACT,UAAI,CAAC,KAAK,eAAe;AACvB,aAAK,gBAAgB,IAAI,kBAAkB,K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List":[0]}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import require$$2 from "../../../_virtual/___vite-browser-external.mjs";
|
|
2
|
+
var previousMap;
|
|
3
|
+
var hasRequiredPreviousMap;
|
|
4
|
+
function requirePreviousMap() {
|
|
5
|
+
if (hasRequiredPreviousMap) return previousMap;
|
|
6
|
+
hasRequiredPreviousMap = 1;
|
|
7
|
+
let { SourceMapConsumer, SourceMapGenerator } = require$$2;
|
|
8
|
+
let { existsSync, readFileSync } = require$$2;
|
|
9
|
+
let { dirname, join } = require$$2;
|
|
10
|
+
function fromBase64(str) {
|
|
11
|
+
if (Buffer) {
|
|
12
|
+
return Buffer.from(str, "base64").toString();
|
|
13
|
+
} else {
|
|
14
|
+
return window.atob(str);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
class PreviousMap {
|
|
18
|
+
constructor(css, opts) {
|
|
19
|
+
if (opts.map === false) return;
|
|
20
|
+
this.loadAnnotation(css);
|
|
21
|
+
this.inline = this.startWith(this.annotation, "data:");
|
|
22
|
+
let prev = opts.map ? opts.map.prev : void 0;
|
|
23
|
+
let text = this.loadMap(opts.from, prev);
|
|
24
|
+
if (!this.mapFile && opts.from) {
|
|
25
|
+
this.mapFile = opts.from;
|
|
26
|
+
}
|
|
27
|
+
if (this.mapFile) this.root = dirname(this.mapFile);
|
|
28
|
+
if (text) this.text = text;
|
|
29
|
+
}
|
|
30
|
+
consumer() {
|
|
31
|
+
if (!this.consumerCache) {
|
|
32
|
+
this.consumerCache = new SourceMapConsumer(this.text);
|
|
33
|
+
}
|
|
34
|
+
return this.consumerCache;
|
|
35
|
+
}
|
|
36
|
+
decodeInline(text) {
|
|
37
|
+
let baseCharsetUri = /^data:application\/json;charset=utf-?8;base64,/;
|
|
38
|
+
let baseUri = /^data:application\/json;base64,/;
|
|
39
|
+
let charsetUri = /^data:application\/json;charset=utf-?8,/;
|
|
40
|
+
let uri = /^data:application\/json,/;
|
|
41
|
+
if (charsetUri.test(text) || uri.test(text)) {
|
|
42
|
+
return decodeURIComponent(text.substr(RegExp.lastMatch.length));
|
|
43
|
+
}
|
|
44
|
+
if (baseCharsetUri.test(text) || baseUri.test(text)) {
|
|
45
|
+
return fromBase64(text.substr(RegExp.lastMatch.length));
|
|
46
|
+
}
|
|
47
|
+
let encoding = text.match(/data:application\/json;([^,]+),/)[1];
|
|
48
|
+
throw new Error("Unsupported source map encoding " + encoding);
|
|
49
|
+
}
|
|
50
|
+
getAnnotationURL(sourceMapString) {
|
|
51
|
+
return sourceMapString.replace(/^\/\*\s*# sourceMappingURL=/, "").trim();
|
|
52
|
+
}
|
|
53
|
+
isMap(map) {
|
|
54
|
+
if (typeof map !== "object") return false;
|
|
55
|
+
return typeof map.mappings === "string" || typeof map._mappings === "string" || Array.isArray(map.sections);
|
|
56
|
+
}
|
|
57
|
+
loadAnnotation(css) {
|
|
58
|
+
let comments = css.match(/\/\*\s*# sourceMappingURL=/gm);
|
|
59
|
+
if (!comments) return;
|
|
60
|
+
let start = css.lastIndexOf(comments.pop());
|
|
61
|
+
let end = css.indexOf("*/", start);
|
|
62
|
+
if (start > -1 && end > -1) {
|
|
63
|
+
this.annotation = this.getAnnotationURL(css.substring(start, end));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
loadFile(path) {
|
|
67
|
+
this.root = dirname(path);
|
|
68
|
+
if (existsSync(path)) {
|
|
69
|
+
this.mapFile = path;
|
|
70
|
+
return readFileSync(path, "utf-8").toString().trim();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
loadMap(file, prev) {
|
|
74
|
+
if (prev === false) return false;
|
|
75
|
+
if (prev) {
|
|
76
|
+
if (typeof prev === "string") {
|
|
77
|
+
return prev;
|
|
78
|
+
} else if (typeof prev === "function") {
|
|
79
|
+
let prevPath = prev(file);
|
|
80
|
+
if (prevPath) {
|
|
81
|
+
let map = this.loadFile(prevPath);
|
|
82
|
+
if (!map) {
|
|
83
|
+
throw new Error(
|
|
84
|
+
"Unable to load previous source map: " + prevPath.toString()
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
return map;
|
|
88
|
+
}
|
|
89
|
+
} else if (prev instanceof SourceMapConsumer) {
|
|
90
|
+
return SourceMapGenerator.fromSourceMap(prev).toString();
|
|
91
|
+
} else if (prev instanceof SourceMapGenerator) {
|
|
92
|
+
return prev.toString();
|
|
93
|
+
} else if (this.isMap(prev)) {
|
|
94
|
+
return JSON.stringify(prev);
|
|
95
|
+
} else {
|
|
96
|
+
throw new Error(
|
|
97
|
+
"Unsupported previous source map format: " + prev.toString()
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
} else if (this.inline) {
|
|
101
|
+
return this.decodeInline(this.annotation);
|
|
102
|
+
} else if (this.annotation) {
|
|
103
|
+
let map = this.annotation;
|
|
104
|
+
if (file) map = join(dirname(file), map);
|
|
105
|
+
return this.loadFile(map);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
startWith(string, start) {
|
|
109
|
+
if (!string) return false;
|
|
110
|
+
return string.substr(0, start.length) === start;
|
|
111
|
+
}
|
|
112
|
+
withContent() {
|
|
113
|
+
return !!(this.consumer().sourcesContent && this.consumer().sourcesContent.length > 0);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
previousMap = PreviousMap;
|
|
117
|
+
PreviousMap.default = PreviousMap;
|
|
118
|
+
return previousMap;
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
requirePreviousMap as __require
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=previous-map.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"previous-map.mjs","sources":["../../../../../../node_modules/postcss/lib/previous-map.js"],"sourcesContent":["'use strict'\n\nlet { SourceMapConsumer, SourceMapGenerator } = require('source-map-js')\nlet { existsSync, readFileSync } = require('fs')\nlet { dirname, join } = require('path')\n\nfunction fromBase64(str) {\n if (Buffer) {\n return Buffer.from(str, 'base64').toString()\n } else {\n /* c8 ignore next 2 */\n return window.atob(str)\n }\n}\n\nclass PreviousMap {\n constructor(css, opts) {\n if (opts.map === false) return\n this.loadAnnotation(css)\n this.inline = this.startWith(this.annotation, 'data:')\n\n let prev = opts.map ? opts.map.prev : undefined\n let text = this.loadMap(opts.from, prev)\n if (!this.mapFile && opts.from) {\n this.mapFile = opts.from\n }\n if (this.mapFile) this.root = dirname(this.mapFile)\n if (text) this.text = text\n }\n\n consumer() {\n if (!this.consumerCache) {\n this.consumerCache = new SourceMapConsumer(this.text)\n }\n return this.consumerCache\n }\n\n decodeInline(text) {\n let baseCharsetUri = /^data:application\\/json;charset=utf-?8;base64,/\n let baseUri = /^data:application\\/json;base64,/\n let charsetUri = /^data:application\\/json;charset=utf-?8,/\n let uri = /^data:application\\/json,/\n\n if (charsetUri.test(text) || uri.test(text)) {\n return decodeURIComponent(text.substr(RegExp.lastMatch.length))\n }\n\n if (baseCharsetUri.test(text) || baseUri.test(text)) {\n return fromBase64(text.substr(RegExp.lastMatch.length))\n }\n\n let encoding = text.match(/data:application\\/json;([^,]+),/)[1]\n throw new Error('Unsupported source map encoding ' + encoding)\n }\n\n getAnnotationURL(sourceMapString) {\n return sourceMapString.replace(/^\\/\\*\\s*# sourceMappingURL=/, '').trim()\n }\n\n isMap(map) {\n if (typeof map !== 'object') return false\n return (\n typeof map.mappings === 'string' ||\n typeof map._mappings === 'string' ||\n Array.isArray(map.sections)\n )\n }\n\n loadAnnotation(css) {\n let comments = css.match(/\\/\\*\\s*# sourceMappingURL=/gm)\n if (!comments) return\n\n // sourceMappingURLs from comments, strings, etc.\n let start = css.lastIndexOf(comments.pop())\n let end = css.indexOf('*/', start)\n\n if (start > -1 && end > -1) {\n // Locate the last sourceMappingURL to avoid pickin\n this.annotation = this.getAnnotationURL(css.substring(start, end))\n }\n }\n\n loadFile(path) {\n this.root = dirname(path)\n if (existsSync(path)) {\n this.mapFile = path\n return readFileSync(path, 'utf-8').toString().trim()\n }\n }\n\n loadMap(file, prev) {\n if (prev === false) return false\n\n if (prev) {\n if (typeof prev === 'string') {\n return prev\n } else if (typeof prev === 'function') {\n let prevPath = prev(file)\n if (prevPath) {\n let map = this.loadFile(prevPath)\n if (!map) {\n throw new Error(\n 'Unable to load previous source map: ' + prevPath.toString()\n )\n }\n return map\n }\n } else if (prev instanceof SourceMapConsumer) {\n return SourceMapGenerator.fromSourceMap(prev).toString()\n } else if (prev instanceof SourceMapGenerator) {\n return prev.toString()\n } else if (this.isMap(prev)) {\n return JSON.stringify(prev)\n } else {\n throw new Error(\n 'Unsupported previous source map format: ' + prev.toString()\n )\n }\n } else if (this.inline) {\n return this.decodeInline(this.annotation)\n } else if (this.annotation) {\n let map = this.annotation\n if (file) map = join(dirname(file), map)\n return this.loadFile(map)\n }\n }\n\n startWith(string, start) {\n if (!string) return false\n return string.substr(0, start.length) === start\n }\n\n withContent() {\n return !!(\n this.consumer().sourcesContent &&\n this.consumer().sourcesContent.length > 0\n )\n }\n}\n\nmodule.exports = PreviousMap\nPreviousMap.default = PreviousMap\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;AAEA,MAAI,EAAE,mBAAmB,uBAAuBA;AAChD,MAAI,EAAE,YAAY,iBAAiBC;AACnC,MAAI,EAAE,SAAS,SAAS;AAExB,WAAS,WAAW,KAAK;AACvB,QAAI,QAAQ;AACV,aAAO,OAAO,KAAK,KAAK,QAAQ,EAAE,SAAQ;AAAA,IAC9C,OAAS;AAEL,aAAO,OAAO,KAAK,GAAG;AAAA,IAC1B;AAAA,EACA;AAAA,EAEA,MAAM,YAAY;AAAA,IAChB,YAAY,KAAK,MAAM;AACrB,UAAI,KAAK,QAAQ,MAAO;AACxB,WAAK,eAAe,GAAG;AACvB,WAAK,SAAS,KAAK,UAAU,KAAK,YAAY,OAAO;AAErD,UAAI,OAAO,KAAK,MAAM,KAAK,IAAI,OAAO;AACtC,UAAI,OAAO,KAAK,QAAQ,KAAK,MAAM,IAAI;AACvC,UAAI,CAAC,KAAK,WAAW,KAAK,MAAM;AAC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O,OAAO,GAAG,MAAM,MAAM,MAAM;AAAA,IAC9C;AAAA,IAEE,cAAc;AACZ,aAAO,CAAC,EACN,KAAK,SAAQ,EAAG,kBAChB,KAAK,SAAQ,EAAG,eAAe,SAAS;AAAA,IAE9C;AAAA,EACA;AAEA,gBAAiB;AACjB,cAAY,UAAU;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const noWorkResult = require("./no-work-result.js");
|
|
4
|
+
const lazyResult = require("./lazy-result.js");
|
|
5
|
+
const document = require("./document.js");
|
|
6
|
+
const root = require("./root.js");
|
|
7
|
+
var processor;
|
|
8
|
+
var hasRequiredProcessor;
|
|
9
|
+
function requireProcessor() {
|
|
10
|
+
if (hasRequiredProcessor) return processor;
|
|
11
|
+
hasRequiredProcessor = 1;
|
|
12
|
+
let NoWorkResult = noWorkResult.__require();
|
|
13
|
+
let LazyResult = lazyResult.__require();
|
|
14
|
+
let Document = document.__require();
|
|
15
|
+
let Root = root.__require();
|
|
16
|
+
class Processor {
|
|
17
|
+
constructor(plugins = []) {
|
|
18
|
+
this.version = "8.4.31";
|
|
19
|
+
this.plugins = this.normalize(plugins);
|
|
20
|
+
}
|
|
21
|
+
normalize(plugins) {
|
|
22
|
+
let normalized = [];
|
|
23
|
+
for (let i of plugins) {
|
|
24
|
+
if (i.postcss === true) {
|
|
25
|
+
i = i();
|
|
26
|
+
} else if (i.postcss) {
|
|
27
|
+
i = i.postcss;
|
|
28
|
+
}
|
|
29
|
+
if (typeof i === "object" && Array.isArray(i.plugins)) {
|
|
30
|
+
normalized = normalized.concat(i.plugins);
|
|
31
|
+
} else if (typeof i === "object" && i.postcssPlugin) {
|
|
32
|
+
normalized.push(i);
|
|
33
|
+
} else if (typeof i === "function") {
|
|
34
|
+
normalized.push(i);
|
|
35
|
+
} else if (typeof i === "object" && (i.parse || i.stringify)) ;
|
|
36
|
+
else {
|
|
37
|
+
throw new Error(i + " is not a PostCSS plugin");
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return normalized;
|
|
41
|
+
}
|
|
42
|
+
process(css, opts = {}) {
|
|
43
|
+
if (this.plugins.length === 0 && typeof opts.parser === "undefined" && typeof opts.stringifier === "undefined" && typeof opts.syntax === "undefined") {
|
|
44
|
+
return new NoWorkResult(this, css, opts);
|
|
45
|
+
} else {
|
|
46
|
+
return new LazyResult(this, css, opts);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
use(plugin) {
|
|
50
|
+
this.plugins = this.plugins.concat(this.normalize([plugin]));
|
|
51
|
+
return this;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
processor = Processor;
|
|
55
|
+
Processor.default = Processor;
|
|
56
|
+
Root.registerProcessor(Processor);
|
|
57
|
+
Document.registerProcessor(Processor);
|
|
58
|
+
return processor;
|
|
59
|
+
}
|
|
60
|
+
exports.__require = requireProcessor;
|
|
61
|
+
//# sourceMappingURL=processor.js.map
|