@universityofmaryland/web-model-library 1.0.1 → 1.0.2-beta.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 +1 -1
- package/dist/_virtual/___vite-browser-external.js +6 -7
- package/dist/_virtual/___vite-browser-external.js.map +1 -1
- package/dist/_virtual/__vite-browser-external.js +3 -2
- package/dist/_virtual/__vite-browser-external.js.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +4 -4
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/index.js +7 -6
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/picocolors.browser.js +3 -3
- package/dist/_virtual/picocolors.browser.js.map +1 -1
- package/dist/_virtual/postcss.js +7 -6
- package/dist/_virtual/postcss.js.map +1 -1
- package/dist/_virtual/symbols.js +3 -3
- package/dist/_virtual/symbols.js.map +1 -1
- package/dist/attributes/checks.d.ts +1 -0
- package/dist/attributes/checks.d.ts.map +1 -1
- package/dist/attributes/checks.js +317 -331
- package/dist/attributes/checks.js.map +1 -1
- package/dist/attributes/handler.d.ts +1 -2
- package/dist/attributes/handler.d.ts.map +1 -1
- package/dist/attributes/handler.js +20 -19
- package/dist/attributes/handler.js.map +1 -1
- package/dist/attributes/index.d.ts +3 -3
- package/dist/attributes/index.d.ts.map +1 -1
- package/dist/attributes/names.d.ts +3 -3
- package/dist/attributes/names.d.ts.map +1 -1
- package/dist/attributes/names.js +5 -3
- package/dist/attributes/names.js.map +1 -1
- package/dist/attributes/values.d.ts +10 -11
- package/dist/attributes/values.d.ts.map +1 -1
- package/dist/attributes/values.js +3 -2
- package/dist/attributes/values.js.map +1 -1
- package/dist/attributes.js +21 -21
- package/dist/attributes.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/model.js +7 -7
- package/dist/model.js.map +1 -1
- package/dist/node_modules/nanoid/non-secure/index.js +3 -3
- package/dist/node_modules/nanoid/non-secure/index.js.map +1 -1
- package/dist/node_modules/picocolors/picocolors.browser.js +8 -8
- package/dist/node_modules/picocolors/picocolors.browser.js.map +1 -1
- package/dist/node_modules/postcss/lib/at-rule.js +5 -5
- package/dist/node_modules/postcss/lib/at-rule.js.map +1 -1
- package/dist/node_modules/postcss/lib/comment.js +5 -5
- package/dist/node_modules/postcss/lib/comment.js.map +1 -1
- package/dist/node_modules/postcss/lib/container.js +69 -62
- package/dist/node_modules/postcss/lib/container.js.map +1 -1
- package/dist/node_modules/postcss/lib/css-syntax-error.js +30 -19
- package/dist/node_modules/postcss/lib/css-syntax-error.js.map +1 -1
- package/dist/node_modules/postcss/lib/declaration.js +8 -8
- package/dist/node_modules/postcss/lib/declaration.js.map +1 -1
- package/dist/node_modules/postcss/lib/document.js +5 -5
- package/dist/node_modules/postcss/lib/document.js.map +1 -1
- package/dist/node_modules/postcss/lib/fromJSON.js +19 -19
- package/dist/node_modules/postcss/lib/fromJSON.js.map +1 -1
- package/dist/node_modules/postcss/lib/input.js +51 -37
- package/dist/node_modules/postcss/lib/input.js.map +1 -1
- package/dist/node_modules/postcss/lib/lazy-result.js +67 -67
- package/dist/node_modules/postcss/lib/lazy-result.js.map +1 -1
- package/dist/node_modules/postcss/lib/list.js +3 -3
- package/dist/node_modules/postcss/lib/list.js.map +1 -1
- package/dist/node_modules/postcss/lib/map-generator.js +27 -18
- package/dist/node_modules/postcss/lib/map-generator.js.map +1 -1
- package/dist/node_modules/postcss/lib/no-work-result.js +54 -51
- package/dist/node_modules/postcss/lib/no-work-result.js.map +1 -1
- package/dist/node_modules/postcss/lib/node.js +91 -38
- package/dist/node_modules/postcss/lib/node.js.map +1 -1
- package/dist/node_modules/postcss/lib/parse.js +13 -13
- package/dist/node_modules/postcss/lib/parse.js.map +1 -1
- package/dist/node_modules/postcss/lib/parser.js +21 -20
- package/dist/node_modules/postcss/lib/parser.js.map +1 -1
- package/dist/node_modules/postcss/lib/postcss.js +4 -3
- package/dist/node_modules/postcss/lib/postcss.js.map +1 -1
- package/dist/node_modules/postcss/lib/postcss2.js +43 -43
- package/dist/node_modules/postcss/lib/postcss2.js.map +1 -1
- package/dist/node_modules/postcss/lib/previous-map.js +14 -12
- package/dist/node_modules/postcss/lib/previous-map.js.map +1 -1
- package/dist/node_modules/postcss/lib/processor.js +13 -13
- package/dist/node_modules/postcss/lib/processor.js.map +1 -1
- package/dist/node_modules/postcss/lib/result.js +12 -12
- package/dist/node_modules/postcss/lib/result.js.map +1 -1
- package/dist/node_modules/postcss/lib/root.js +5 -5
- package/dist/node_modules/postcss/lib/root.js.map +1 -1
- package/dist/node_modules/postcss/lib/rule.js +13 -13
- package/dist/node_modules/postcss/lib/rule.js.map +1 -1
- package/dist/node_modules/postcss/lib/stringifier.js +3 -3
- package/dist/node_modules/postcss/lib/stringifier.js.map +1 -1
- package/dist/node_modules/postcss/lib/stringify.js +5 -5
- package/dist/node_modules/postcss/lib/stringify.js.map +1 -1
- package/dist/node_modules/postcss/lib/symbols.js +8 -8
- package/dist/node_modules/postcss/lib/symbols.js.map +1 -1
- package/dist/node_modules/postcss/lib/tokenize.js +5 -5
- package/dist/node_modules/postcss/lib/tokenize.js.map +1 -1
- package/dist/node_modules/postcss/lib/warning.js +3 -3
- package/dist/node_modules/postcss/lib/warning.js.map +1 -1
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.js +3 -3
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.js.map +1 -1
- package/dist/slots/create.js +3 -3
- package/dist/slots/create.js.map +1 -1
- package/dist/slots/element.js +3 -3
- package/dist/slots/element.js.map +1 -1
- package/dist/slots/index.d.ts +15 -16
- package/dist/slots/index.d.ts.map +1 -1
- package/dist/slots/mapping.js +3 -3
- package/dist/slots/mapping.js.map +1 -1
- package/dist/slots.d.ts +0 -4
- package/dist/slots.js +41 -40
- package/dist/slots.js.map +1 -1
- package/dist/utilities/index.d.ts +1 -1
- package/dist/utilities/index.d.ts.map +1 -1
- package/dist/utilities/lifecycle.js +4 -4
- package/dist/utilities/lifecycle.js.map +1 -1
- package/dist/utilities/register.js +6 -6
- package/dist/utilities/register.js.map +1 -1
- package/dist/utilities/styles.d.ts +1 -2
- package/dist/utilities/styles.d.ts.map +1 -1
- package/dist/utilities/styles.js +15 -10
- package/dist/utilities/styles.js.map +1 -1
- package/dist/utilities.js +10 -10
- package/dist/utilities.js.map +1 -1
- package/package.json +13 -12
- package/dist/_virtual/___vite-browser-external.mjs +0 -7
- package/dist/_virtual/___vite-browser-external.mjs.map +0 -1
- package/dist/_virtual/__vite-browser-external.mjs +0 -5
- package/dist/_virtual/__vite-browser-external.mjs.map +0 -1
- package/dist/_virtual/_commonjsHelpers.mjs +0 -37
- package/dist/_virtual/_commonjsHelpers.mjs.map +0 -1
- package/dist/_virtual/index.mjs +0 -8
- package/dist/_virtual/index.mjs.map +0 -1
- package/dist/_virtual/picocolors.browser.mjs +0 -5
- package/dist/_virtual/picocolors.browser.mjs.map +0 -1
- package/dist/_virtual/postcss.mjs +0 -8
- package/dist/_virtual/postcss.mjs.map +0 -1
- package/dist/_virtual/symbols.mjs +0 -5
- package/dist/_virtual/symbols.mjs.map +0 -1
- package/dist/attributes/checks.mjs +0 -752
- package/dist/attributes/checks.mjs.map +0 -1
- package/dist/attributes/handler.mjs +0 -206
- package/dist/attributes/handler.mjs.map +0 -1
- package/dist/attributes/names.mjs +0 -143
- package/dist/attributes/names.mjs.map +0 -1
- package/dist/attributes/values.mjs +0 -84
- package/dist/attributes/values.mjs.map +0 -1
- package/dist/attributes.mjs +0 -22
- package/dist/attributes.mjs.map +0 -1
- package/dist/index.mjs +0 -13
- package/dist/index.mjs.map +0 -1
- package/dist/model.mjs +0 -259
- package/dist/model.mjs.map +0 -1
- package/dist/node_modules/nanoid/non-secure/index.mjs +0 -31
- package/dist/node_modules/nanoid/non-secure/index.mjs.map +0 -1
- package/dist/node_modules/picocolors/picocolors.browser.mjs +0 -17
- package/dist/node_modules/picocolors/picocolors.browser.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/at-rule.mjs +0 -30
- package/dist/node_modules/postcss/lib/at-rule.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/comment.mjs +0 -21
- package/dist/node_modules/postcss/lib/comment.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/container.mjs +0 -383
- package/dist/node_modules/postcss/lib/container.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/css-syntax-error.mjs +0 -92
- package/dist/node_modules/postcss/lib/css-syntax-error.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/declaration.mjs +0 -27
- package/dist/node_modules/postcss/lib/declaration.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/document.mjs +0 -34
- package/dist/node_modules/postcss/lib/document.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/fromJSON.mjs +0 -67
- package/dist/node_modules/postcss/lib/fromJSON.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/input.mjs +0 -216
- package/dist/node_modules/postcss/lib/input.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/lazy-result.mjs +0 -467
- package/dist/node_modules/postcss/lib/lazy-result.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/list.mjs +0 -60
- package/dist/node_modules/postcss/lib/list.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/map-generator.mjs +0 -314
- package/dist/node_modules/postcss/lib/map-generator.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/no-work-result.mjs +0 -113
- package/dist/node_modules/postcss/lib/no-work-result.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/node.mjs +0 -335
- package/dist/node_modules/postcss/lib/node.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/parse.mjs +0 -30
- package/dist/node_modules/postcss/lib/parse.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/parser.mjs +0 -543
- package/dist/node_modules/postcss/lib/parser.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/postcss.mjs +0 -29
- package/dist/node_modules/postcss/lib/postcss.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/postcss2.mjs +0 -110
- package/dist/node_modules/postcss/lib/postcss2.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/previous-map.mjs +0 -123
- package/dist/node_modules/postcss/lib/previous-map.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/processor.mjs +0 -61
- package/dist/node_modules/postcss/lib/processor.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/result.mjs +0 -44
- package/dist/node_modules/postcss/lib/result.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/root.mjs +0 -58
- package/dist/node_modules/postcss/lib/root.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/rule.mjs +0 -33
- package/dist/node_modules/postcss/lib/rule.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/stringifier.mjs +0 -308
- package/dist/node_modules/postcss/lib/stringifier.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/stringify.mjs +0 -19
- package/dist/node_modules/postcss/lib/stringify.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/symbols.mjs +0 -13
- package/dist/node_modules/postcss/lib/symbols.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/tokenize.mjs +0 -219
- package/dist/node_modules/postcss/lib/tokenize.mjs.map +0 -1
- package/dist/node_modules/postcss/lib/warning.mjs +0 -40
- package/dist/node_modules/postcss/lib/warning.mjs.map +0 -1
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.mjs +0 -130
- package/dist/packages/model/node_modules/postcss-discard-duplicates/src/index.mjs.map +0 -1
- package/dist/slots/create.mjs +0 -50
- package/dist/slots/create.mjs.map +0 -1
- package/dist/slots/element.mjs +0 -42
- package/dist/slots/element.mjs.map +0 -1
- package/dist/slots/mapping.mjs +0 -101
- package/dist/slots/mapping.mjs.map +0 -1
- package/dist/slots.mjs +0 -78
- package/dist/slots.mjs.map +0 -1
- package/dist/utilities/lifecycle.mjs +0 -21
- package/dist/utilities/lifecycle.mjs.map +0 -1
- package/dist/utilities/register.mjs +0 -32
- package/dist/utilities/register.mjs.map +0 -1
- package/dist/utilities/styles.mjs +0 -80
- package/dist/utilities/styles.mjs.map +0 -1
- package/dist/utilities.mjs +0 -11
- package/dist/utilities.mjs.map +0 -1
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
var stringifier;
|
|
2
|
-
var hasRequiredStringifier;
|
|
3
|
-
function requireStringifier() {
|
|
4
|
-
if (hasRequiredStringifier) return stringifier;
|
|
5
|
-
hasRequiredStringifier = 1;
|
|
6
|
-
const DEFAULT_RAW = {
|
|
7
|
-
after: "\n",
|
|
8
|
-
beforeClose: "\n",
|
|
9
|
-
beforeComment: "\n",
|
|
10
|
-
beforeDecl: "\n",
|
|
11
|
-
beforeOpen: " ",
|
|
12
|
-
beforeRule: "\n",
|
|
13
|
-
colon: ": ",
|
|
14
|
-
commentLeft: " ",
|
|
15
|
-
commentRight: " ",
|
|
16
|
-
emptyBody: "",
|
|
17
|
-
indent: " ",
|
|
18
|
-
semicolon: false
|
|
19
|
-
};
|
|
20
|
-
function capitalize(str) {
|
|
21
|
-
return str[0].toUpperCase() + str.slice(1);
|
|
22
|
-
}
|
|
23
|
-
class Stringifier {
|
|
24
|
-
constructor(builder) {
|
|
25
|
-
this.builder = builder;
|
|
26
|
-
}
|
|
27
|
-
atrule(node, semicolon) {
|
|
28
|
-
let name = "@" + node.name;
|
|
29
|
-
let params = node.params ? this.rawValue(node, "params") : "";
|
|
30
|
-
if (typeof node.raws.afterName !== "undefined") {
|
|
31
|
-
name += node.raws.afterName;
|
|
32
|
-
} else if (params) {
|
|
33
|
-
name += " ";
|
|
34
|
-
}
|
|
35
|
-
if (node.nodes) {
|
|
36
|
-
this.block(node, name + params);
|
|
37
|
-
} else {
|
|
38
|
-
let end = (node.raws.between || "") + (semicolon ? ";" : "");
|
|
39
|
-
this.builder(name + params + end, node);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
beforeAfter(node, detect) {
|
|
43
|
-
let value;
|
|
44
|
-
if (node.type === "decl") {
|
|
45
|
-
value = this.raw(node, null, "beforeDecl");
|
|
46
|
-
} else if (node.type === "comment") {
|
|
47
|
-
value = this.raw(node, null, "beforeComment");
|
|
48
|
-
} else if (detect === "before") {
|
|
49
|
-
value = this.raw(node, null, "beforeRule");
|
|
50
|
-
} else {
|
|
51
|
-
value = this.raw(node, null, "beforeClose");
|
|
52
|
-
}
|
|
53
|
-
let buf = node.parent;
|
|
54
|
-
let depth = 0;
|
|
55
|
-
while (buf && buf.type !== "root") {
|
|
56
|
-
depth += 1;
|
|
57
|
-
buf = buf.parent;
|
|
58
|
-
}
|
|
59
|
-
if (value.includes("\n")) {
|
|
60
|
-
let indent = this.raw(node, null, "indent");
|
|
61
|
-
if (indent.length) {
|
|
62
|
-
for (let step = 0; step < depth; step++) value += indent;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
block(node, start) {
|
|
68
|
-
let between = this.raw(node, "between", "beforeOpen");
|
|
69
|
-
this.builder(start + between + "{", node, "start");
|
|
70
|
-
let after;
|
|
71
|
-
if (node.nodes && node.nodes.length) {
|
|
72
|
-
this.body(node);
|
|
73
|
-
after = this.raw(node, "after");
|
|
74
|
-
} else {
|
|
75
|
-
after = this.raw(node, "after", "emptyBody");
|
|
76
|
-
}
|
|
77
|
-
if (after) this.builder(after);
|
|
78
|
-
this.builder("}", node, "end");
|
|
79
|
-
}
|
|
80
|
-
body(node) {
|
|
81
|
-
let last = node.nodes.length - 1;
|
|
82
|
-
while (last > 0) {
|
|
83
|
-
if (node.nodes[last].type !== "comment") break;
|
|
84
|
-
last -= 1;
|
|
85
|
-
}
|
|
86
|
-
let semicolon = this.raw(node, "semicolon");
|
|
87
|
-
for (let i = 0; i < node.nodes.length; i++) {
|
|
88
|
-
let child = node.nodes[i];
|
|
89
|
-
let before = this.raw(child, "before");
|
|
90
|
-
if (before) this.builder(before);
|
|
91
|
-
this.stringify(child, last !== i || semicolon);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
comment(node) {
|
|
95
|
-
let left = this.raw(node, "left", "commentLeft");
|
|
96
|
-
let right = this.raw(node, "right", "commentRight");
|
|
97
|
-
this.builder("/*" + left + node.text + right + "*/", node);
|
|
98
|
-
}
|
|
99
|
-
decl(node, semicolon) {
|
|
100
|
-
let between = this.raw(node, "between", "colon");
|
|
101
|
-
let string = node.prop + between + this.rawValue(node, "value");
|
|
102
|
-
if (node.important) {
|
|
103
|
-
string += node.raws.important || " !important";
|
|
104
|
-
}
|
|
105
|
-
if (semicolon) string += ";";
|
|
106
|
-
this.builder(string, node);
|
|
107
|
-
}
|
|
108
|
-
document(node) {
|
|
109
|
-
this.body(node);
|
|
110
|
-
}
|
|
111
|
-
raw(node, own, detect) {
|
|
112
|
-
let value;
|
|
113
|
-
if (!detect) detect = own;
|
|
114
|
-
if (own) {
|
|
115
|
-
value = node.raws[own];
|
|
116
|
-
if (typeof value !== "undefined") return value;
|
|
117
|
-
}
|
|
118
|
-
let parent = node.parent;
|
|
119
|
-
if (detect === "before") {
|
|
120
|
-
if (!parent || parent.type === "root" && parent.first === node) {
|
|
121
|
-
return "";
|
|
122
|
-
}
|
|
123
|
-
if (parent && parent.type === "document") {
|
|
124
|
-
return "";
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
if (!parent) return DEFAULT_RAW[detect];
|
|
128
|
-
let root = node.root();
|
|
129
|
-
if (!root.rawCache) root.rawCache = {};
|
|
130
|
-
if (typeof root.rawCache[detect] !== "undefined") {
|
|
131
|
-
return root.rawCache[detect];
|
|
132
|
-
}
|
|
133
|
-
if (detect === "before" || detect === "after") {
|
|
134
|
-
return this.beforeAfter(node, detect);
|
|
135
|
-
} else {
|
|
136
|
-
let method = "raw" + capitalize(detect);
|
|
137
|
-
if (this[method]) {
|
|
138
|
-
value = this[method](root, node);
|
|
139
|
-
} else {
|
|
140
|
-
root.walk((i) => {
|
|
141
|
-
value = i.raws[own];
|
|
142
|
-
if (typeof value !== "undefined") return false;
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
if (typeof value === "undefined") value = DEFAULT_RAW[detect];
|
|
147
|
-
root.rawCache[detect] = value;
|
|
148
|
-
return value;
|
|
149
|
-
}
|
|
150
|
-
rawBeforeClose(root) {
|
|
151
|
-
let value;
|
|
152
|
-
root.walk((i) => {
|
|
153
|
-
if (i.nodes && i.nodes.length > 0) {
|
|
154
|
-
if (typeof i.raws.after !== "undefined") {
|
|
155
|
-
value = i.raws.after;
|
|
156
|
-
if (value.includes("\n")) {
|
|
157
|
-
value = value.replace(/[^\n]+$/, "");
|
|
158
|
-
}
|
|
159
|
-
return false;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
if (value) value = value.replace(/\S/g, "");
|
|
164
|
-
return value;
|
|
165
|
-
}
|
|
166
|
-
rawBeforeComment(root, node) {
|
|
167
|
-
let value;
|
|
168
|
-
root.walkComments((i) => {
|
|
169
|
-
if (typeof i.raws.before !== "undefined") {
|
|
170
|
-
value = i.raws.before;
|
|
171
|
-
if (value.includes("\n")) {
|
|
172
|
-
value = value.replace(/[^\n]+$/, "");
|
|
173
|
-
}
|
|
174
|
-
return false;
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
if (typeof value === "undefined") {
|
|
178
|
-
value = this.raw(node, null, "beforeDecl");
|
|
179
|
-
} else if (value) {
|
|
180
|
-
value = value.replace(/\S/g, "");
|
|
181
|
-
}
|
|
182
|
-
return value;
|
|
183
|
-
}
|
|
184
|
-
rawBeforeDecl(root, node) {
|
|
185
|
-
let value;
|
|
186
|
-
root.walkDecls((i) => {
|
|
187
|
-
if (typeof i.raws.before !== "undefined") {
|
|
188
|
-
value = i.raws.before;
|
|
189
|
-
if (value.includes("\n")) {
|
|
190
|
-
value = value.replace(/[^\n]+$/, "");
|
|
191
|
-
}
|
|
192
|
-
return false;
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
if (typeof value === "undefined") {
|
|
196
|
-
value = this.raw(node, null, "beforeRule");
|
|
197
|
-
} else if (value) {
|
|
198
|
-
value = value.replace(/\S/g, "");
|
|
199
|
-
}
|
|
200
|
-
return value;
|
|
201
|
-
}
|
|
202
|
-
rawBeforeOpen(root) {
|
|
203
|
-
let value;
|
|
204
|
-
root.walk((i) => {
|
|
205
|
-
if (i.type !== "decl") {
|
|
206
|
-
value = i.raws.between;
|
|
207
|
-
if (typeof value !== "undefined") return false;
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
return value;
|
|
211
|
-
}
|
|
212
|
-
rawBeforeRule(root) {
|
|
213
|
-
let value;
|
|
214
|
-
root.walk((i) => {
|
|
215
|
-
if (i.nodes && (i.parent !== root || root.first !== i)) {
|
|
216
|
-
if (typeof i.raws.before !== "undefined") {
|
|
217
|
-
value = i.raws.before;
|
|
218
|
-
if (value.includes("\n")) {
|
|
219
|
-
value = value.replace(/[^\n]+$/, "");
|
|
220
|
-
}
|
|
221
|
-
return false;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
if (value) value = value.replace(/\S/g, "");
|
|
226
|
-
return value;
|
|
227
|
-
}
|
|
228
|
-
rawColon(root) {
|
|
229
|
-
let value;
|
|
230
|
-
root.walkDecls((i) => {
|
|
231
|
-
if (typeof i.raws.between !== "undefined") {
|
|
232
|
-
value = i.raws.between.replace(/[^\s:]/g, "");
|
|
233
|
-
return false;
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
return value;
|
|
237
|
-
}
|
|
238
|
-
rawEmptyBody(root) {
|
|
239
|
-
let value;
|
|
240
|
-
root.walk((i) => {
|
|
241
|
-
if (i.nodes && i.nodes.length === 0) {
|
|
242
|
-
value = i.raws.after;
|
|
243
|
-
if (typeof value !== "undefined") return false;
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
return value;
|
|
247
|
-
}
|
|
248
|
-
rawIndent(root) {
|
|
249
|
-
if (root.raws.indent) return root.raws.indent;
|
|
250
|
-
let value;
|
|
251
|
-
root.walk((i) => {
|
|
252
|
-
let p = i.parent;
|
|
253
|
-
if (p && p !== root && p.parent && p.parent === root) {
|
|
254
|
-
if (typeof i.raws.before !== "undefined") {
|
|
255
|
-
let parts = i.raws.before.split("\n");
|
|
256
|
-
value = parts[parts.length - 1];
|
|
257
|
-
value = value.replace(/\S/g, "");
|
|
258
|
-
return false;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
return value;
|
|
263
|
-
}
|
|
264
|
-
rawSemicolon(root) {
|
|
265
|
-
let value;
|
|
266
|
-
root.walk((i) => {
|
|
267
|
-
if (i.nodes && i.nodes.length && i.last.type === "decl") {
|
|
268
|
-
value = i.raws.semicolon;
|
|
269
|
-
if (typeof value !== "undefined") return false;
|
|
270
|
-
}
|
|
271
|
-
});
|
|
272
|
-
return value;
|
|
273
|
-
}
|
|
274
|
-
rawValue(node, prop) {
|
|
275
|
-
let value = node[prop];
|
|
276
|
-
let raw = node.raws[prop];
|
|
277
|
-
if (raw && raw.value === value) {
|
|
278
|
-
return raw.raw;
|
|
279
|
-
}
|
|
280
|
-
return value;
|
|
281
|
-
}
|
|
282
|
-
root(node) {
|
|
283
|
-
this.body(node);
|
|
284
|
-
if (node.raws.after) this.builder(node.raws.after);
|
|
285
|
-
}
|
|
286
|
-
rule(node) {
|
|
287
|
-
this.block(node, this.rawValue(node, "selector"));
|
|
288
|
-
if (node.raws.ownSemicolon) {
|
|
289
|
-
this.builder(node.raws.ownSemicolon, node, "end");
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
stringify(node, semicolon) {
|
|
293
|
-
if (!this[node.type]) {
|
|
294
|
-
throw new Error(
|
|
295
|
-
"Unknown AST node type " + node.type + ". Maybe you need to change PostCSS stringifier."
|
|
296
|
-
);
|
|
297
|
-
}
|
|
298
|
-
this[node.type](node, semicolon);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
stringifier = Stringifier;
|
|
302
|
-
Stringifier.default = Stringifier;
|
|
303
|
-
return stringifier;
|
|
304
|
-
}
|
|
305
|
-
export {
|
|
306
|
-
requireStringifier as __require
|
|
307
|
-
};
|
|
308
|
-
//# sourceMappingURL=stringifier.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stringifier.mjs","sources":["../../../../../../node_modules/postcss/lib/stringifier.js"],"sourcesContent":["'use strict'\n\nconst DEFAULT_RAW = {\n after: '\\n',\n beforeClose: '\\n',\n beforeComment: '\\n',\n beforeDecl: '\\n',\n beforeOpen: ' ',\n beforeRule: '\\n',\n colon: ': ',\n commentLeft: ' ',\n commentRight: ' ',\n emptyBody: '',\n indent: ' ',\n semicolon: false\n}\n\nfunction capitalize(str) {\n return str[0].toUpperCase() + str.slice(1)\n}\n\nclass Stringifier {\n constructor(builder) {\n this.builder = builder\n }\n\n atrule(node, semicolon) {\n let name = '@' + node.name\n let params = node.params ? this.rawValue(node, 'params') : ''\n\n if (typeof node.raws.afterName !== 'undefined') {\n name += node.raws.afterName\n } else if (params) {\n name += ' '\n }\n\n if (node.nodes) {\n this.block(node, name + params)\n } else {\n let end = (node.raws.between || '') + (semicolon ? ';' : '')\n this.builder(name + params + end, node)\n }\n }\n\n beforeAfter(node, detect) {\n let value\n if (node.type === 'decl') {\n value = this.raw(node, null, 'beforeDecl')\n } else if (node.type === 'comment') {\n value = this.raw(node, null, 'beforeComment')\n } else if (detect === 'before') {\n value = this.raw(node, null, 'beforeRule')\n } else {\n value = this.raw(node, null, 'beforeClose')\n }\n\n let buf = node.parent\n let depth = 0\n while (buf && buf.type !== 'root') {\n depth += 1\n buf = buf.parent\n }\n\n if (value.includes('\\n')) {\n let indent = this.raw(node, null, 'indent')\n if (indent.length) {\n for (let step = 0; step < depth; step++) value += indent\n }\n }\n\n return value\n }\n\n block(node, start) {\n let between = this.raw(node, 'between', 'beforeOpen')\n this.builder(start + between + '{', node, 'start')\n\n let after\n if (node.nodes && node.nodes.length) {\n this.body(node)\n after = this.raw(node, 'after')\n } else {\n after = this.raw(node, 'after', 'emptyBody')\n }\n\n if (after) this.builder(after)\n this.builder('}', node, 'end')\n }\n\n body(node) {\n let last = node.nodes.length - 1\n while (last > 0) {\n if (node.nodes[last].type !== 'comment') break\n last -= 1\n }\n\n let semicolon = this.raw(node, 'semicolon')\n for (let i = 0; i < node.nodes.length; i++) {\n let child = node.nodes[i]\n let before = this.raw(child, 'before')\n if (before) this.builder(before)\n this.stringify(child, last !== i || semicolon)\n }\n }\n\n comment(node) {\n let left = this.raw(node, 'left', 'commentLeft')\n let right = this.raw(node, 'right', 'commentRight')\n this.builder('/*' + left + node.text + right + '*/', node)\n }\n\n decl(node, semicolon) {\n let between = this.raw(node, 'between', 'colon')\n let string = node.prop + between + this.rawValue(node, 'value')\n\n if (node.important) {\n string += node.raws.important || ' !important'\n }\n\n if (semicolon) string += ';'\n this.builder(string, node)\n }\n\n document(node) {\n this.body(node)\n }\n\n raw(node, own, detect) {\n let value\n if (!detect) detect = own\n\n // Already had\n if (own) {\n value = node.raws[own]\n if (typeof value !== 'undefined') return value\n }\n\n let parent = node.parent\n\n if (detect === 'before') {\n // Hack for first rule in CSS\n if (!parent || (parent.type === 'root' && parent.first === node)) {\n return ''\n }\n\n // `root` nodes in `document` should use only their own raws\n if (parent && parent.type === 'document') {\n return ''\n }\n }\n\n // Floating child without parent\n if (!parent) return DEFAULT_RAW[detect]\n\n // Detect style by other nodes\n let root = node.root()\n if (!root.rawCache) root.rawCache = {}\n if (typeof root.rawCache[detect] !== 'undefined') {\n return root.rawCache[detect]\n }\n\n if (detect === 'before' || detect === 'after') {\n return this.beforeAfter(node, detect)\n } else {\n let method = 'raw' + capitalize(detect)\n if (this[method]) {\n value = this[method](root, node)\n } else {\n root.walk(i => {\n value = i.raws[own]\n if (typeof value !== 'undefined') return false\n })\n }\n }\n\n if (typeof value === 'undefined') value = DEFAULT_RAW[detect]\n\n root.rawCache[detect] = value\n return value\n }\n\n rawBeforeClose(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length > 0) {\n if (typeof i.raws.after !== 'undefined') {\n value = i.raws.after\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n }\n })\n if (value) value = value.replace(/\\S/g, '')\n return value\n }\n\n rawBeforeComment(root, node) {\n let value\n root.walkComments(i => {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n })\n if (typeof value === 'undefined') {\n value = this.raw(node, null, 'beforeDecl')\n } else if (value) {\n value = value.replace(/\\S/g, '')\n }\n return value\n }\n\n rawBeforeDecl(root, node) {\n let value\n root.walkDecls(i => {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n })\n if (typeof value === 'undefined') {\n value = this.raw(node, null, 'beforeRule')\n } else if (value) {\n value = value.replace(/\\S/g, '')\n }\n return value\n }\n\n rawBeforeOpen(root) {\n let value\n root.walk(i => {\n if (i.type !== 'decl') {\n value = i.raws.between\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawBeforeRule(root) {\n let value\n root.walk(i => {\n if (i.nodes && (i.parent !== root || root.first !== i)) {\n if (typeof i.raws.before !== 'undefined') {\n value = i.raws.before\n if (value.includes('\\n')) {\n value = value.replace(/[^\\n]+$/, '')\n }\n return false\n }\n }\n })\n if (value) value = value.replace(/\\S/g, '')\n return value\n }\n\n rawColon(root) {\n let value\n root.walkDecls(i => {\n if (typeof i.raws.between !== 'undefined') {\n value = i.raws.between.replace(/[^\\s:]/g, '')\n return false\n }\n })\n return value\n }\n\n rawEmptyBody(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length === 0) {\n value = i.raws.after\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawIndent(root) {\n if (root.raws.indent) return root.raws.indent\n let value\n root.walk(i => {\n let p = i.parent\n if (p && p !== root && p.parent && p.parent === root) {\n if (typeof i.raws.before !== 'undefined') {\n let parts = i.raws.before.split('\\n')\n value = parts[parts.length - 1]\n value = value.replace(/\\S/g, '')\n return false\n }\n }\n })\n return value\n }\n\n rawSemicolon(root) {\n let value\n root.walk(i => {\n if (i.nodes && i.nodes.length && i.last.type === 'decl') {\n value = i.raws.semicolon\n if (typeof value !== 'undefined') return false\n }\n })\n return value\n }\n\n rawValue(node, prop) {\n let value = node[prop]\n let raw = node.raws[prop]\n if (raw && raw.value === value) {\n return raw.raw\n }\n\n return value\n }\n\n root(node) {\n this.body(node)\n if (node.raws.after) this.builder(node.raws.after)\n }\n\n rule(node) {\n this.block(node, this.rawValue(node, 'selector'))\n if (node.raws.ownSemicolon) {\n this.builder(node.raws.ownSemicolon, node, 'end')\n }\n }\n\n stringify(node, semicolon) {\n /* c8 ignore start */\n if (!this[node.type]) {\n throw new Error(\n 'Unknown AST node type ' +\n node.type +\n '. ' +\n 'Maybe you need to change PostCSS stringifier.'\n )\n }\n /* c8 ignore stop */\n this[node.type](node, semicolon)\n }\n}\n\nmodule.exports = Stringifier\nStringifier.default = Stringifier\n"],"names":[],"mappings":";;;;;AAEA,QAAM,cAAc;AAAA,IAClB,OAAO;AAAA,IACP,aAAa;AAAA,IACb,eAAe;AAAA,IACf,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,OAAO;AAAA,IACP,aAAa;AAAA,IACb,cAAc;AAAA,IACd,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,WAAW;AAAA,EACb;AAEA,WAAS,WAAW,KAAK;AACvB,WAAO,IAAI,CAAC,EAAE,YAAW,IAAK,IAAI,MAAM,CAAC;AAAA,EAC3C;AAAA,EAEA,MAAM,YAAY;AAAA,IAChB,YAAY,SAAS;AACnB,WAAK,UAAU;AAAA,IACnB;AAAA,IAEE,OAAO,MAAM,WAAW;AACtB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C9B,oBAAQ,MAAM,QAAQ,OAAO,EAAE;AAC/B,mBAAO;AAAA,UACjB;AAAA,QACA;AAAA,MACA,CAAK;AACD,aAAO;AAAA,IACX;AAAA,IAEE,aAAa,MAAM;AACjB,UAAI;AACJ,WAAK,KAAK,OAAK;AACb,YAAI,EAAE,SAAS,EAAE,MAAM,UAAU,EAAE,KAAK,SAAS,QAAQ;AACvD,kBAAQ,EAAE,KAAK;AACf,cAAI,OAAO,UAAU,YAAa,QAAO;AAAA,QACjD;AAAA,MACA,CAAK;AACD,aAAO;AAAA,IACX;AAAA,IAEE,SAAS,MAAM,MAAM;AACnB,UAAI,QAAQ,KAAK,IAAI;AACrB,UAAI,MAAM,KAAK,KAAK,IAAI;AACxB,UAAI,OAAO,IAAI,UAAU,OAAO;AAC9B,eAAO,IAAI;AAAA,MACjB;AAEI,aAAO;AAAA,IACX;AAAA,IAEE,KAAK,MAAM;AACT,WAAK,KAAK,IAAI;AACd,UAAI,KAAK,KAAK,MAAO,MAAK,QAAQ,KAAK,KAAK,KAAK;AAAA,IACrD;AAAA,IAEE,KAAK,MAAM;AACT,WAAK,MAAM,MAAM,KAAK,SAAS,MAAM,UAAU,CAAC;AAChD,UAAI,KAAK,KAAK,cAAc;AAC1B,aAAK,QAAQ,KAAK,KAAK,cAAc,MAAM,KAAK;AAAA,MACtD;AAAA,IACA;AAAA,IAEE,UAAU,MAAM,WAAW;AAEzB,UAAI,CAAC,KAAK,KAAK,IAAI,GAAG;AACpB,cAAM,IAAI;AAAA,UACR,2BACE,KAAK,OACL;AAAA,QAEV;AAAA,MACA;AAEI,WAAK,KAAK,IAAI,EAAE,MAAM,SAAS;AAAA,IACnC;AAAA,EACA;AAEA,gBAAiB;AACjB,cAAY,UAAU;;;","x_google_ignoreList":[0]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { __require as requireStringifier } from "./stringifier.mjs";
|
|
2
|
-
var stringify_1;
|
|
3
|
-
var hasRequiredStringify;
|
|
4
|
-
function requireStringify() {
|
|
5
|
-
if (hasRequiredStringify) return stringify_1;
|
|
6
|
-
hasRequiredStringify = 1;
|
|
7
|
-
let Stringifier = requireStringifier();
|
|
8
|
-
function stringify(node, builder) {
|
|
9
|
-
let str = new Stringifier(builder);
|
|
10
|
-
str.stringify(node);
|
|
11
|
-
}
|
|
12
|
-
stringify_1 = stringify;
|
|
13
|
-
stringify.default = stringify;
|
|
14
|
-
return stringify_1;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
requireStringify as __require
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=stringify.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stringify.mjs","sources":["../../../../../../node_modules/postcss/lib/stringify.js"],"sourcesContent":["'use strict'\n\nlet Stringifier = require('./stringifier')\n\nfunction stringify(node, builder) {\n let str = new Stringifier(builder)\n str.stringify(node)\n}\n\nmodule.exports = stringify\nstringify.default = stringify\n"],"names":["require$$0"],"mappings":";;;;;;AAEA,MAAI,cAAcA,mBAAA;AAElB,WAAS,UAAU,MAAM,SAAS;AAChC,QAAI,MAAM,IAAI,YAAY,OAAO;AACjC,QAAI,UAAU,IAAI;AAAA,EACpB;AAEA,gBAAiB;AACjB,YAAU,UAAU;;;","x_google_ignoreList":[0]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __exports as symbols } from "../../../_virtual/symbols.mjs";
|
|
2
|
-
var hasRequiredSymbols;
|
|
3
|
-
function requireSymbols() {
|
|
4
|
-
if (hasRequiredSymbols) return symbols;
|
|
5
|
-
hasRequiredSymbols = 1;
|
|
6
|
-
symbols.isClean = Symbol("isClean");
|
|
7
|
-
symbols.my = Symbol("my");
|
|
8
|
-
return symbols;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
requireSymbols as __require
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=symbols.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"symbols.mjs","sources":["../../../../../../node_modules/postcss/lib/symbols.js"],"sourcesContent":["'use strict'\n\nmodule.exports.isClean = Symbol('isClean')\n\nmodule.exports.my = Symbol('my')\n"],"names":[],"mappings":";;;;;AAEA,UAAA,UAAyB,OAAO,SAAS;AAEzC,UAAA,KAAoB,OAAO,IAAI;;;","x_google_ignoreList":[0]}
|
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
var tokenize;
|
|
2
|
-
var hasRequiredTokenize;
|
|
3
|
-
function requireTokenize() {
|
|
4
|
-
if (hasRequiredTokenize) return tokenize;
|
|
5
|
-
hasRequiredTokenize = 1;
|
|
6
|
-
const SINGLE_QUOTE = "'".charCodeAt(0);
|
|
7
|
-
const DOUBLE_QUOTE = '"'.charCodeAt(0);
|
|
8
|
-
const BACKSLASH = "\\".charCodeAt(0);
|
|
9
|
-
const SLASH = "/".charCodeAt(0);
|
|
10
|
-
const NEWLINE = "\n".charCodeAt(0);
|
|
11
|
-
const SPACE = " ".charCodeAt(0);
|
|
12
|
-
const FEED = "\f".charCodeAt(0);
|
|
13
|
-
const TAB = " ".charCodeAt(0);
|
|
14
|
-
const CR = "\r".charCodeAt(0);
|
|
15
|
-
const OPEN_SQUARE = "[".charCodeAt(0);
|
|
16
|
-
const CLOSE_SQUARE = "]".charCodeAt(0);
|
|
17
|
-
const OPEN_PARENTHESES = "(".charCodeAt(0);
|
|
18
|
-
const CLOSE_PARENTHESES = ")".charCodeAt(0);
|
|
19
|
-
const OPEN_CURLY = "{".charCodeAt(0);
|
|
20
|
-
const CLOSE_CURLY = "}".charCodeAt(0);
|
|
21
|
-
const SEMICOLON = ";".charCodeAt(0);
|
|
22
|
-
const ASTERISK = "*".charCodeAt(0);
|
|
23
|
-
const COLON = ":".charCodeAt(0);
|
|
24
|
-
const AT = "@".charCodeAt(0);
|
|
25
|
-
const RE_AT_END = /[\t\n\f\r "#'()/;[\\\]{}]/g;
|
|
26
|
-
const RE_WORD_END = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;
|
|
27
|
-
const RE_BAD_BRACKET = /.[\r\n"'(/\\]/;
|
|
28
|
-
const RE_HEX_ESCAPE = /[\da-f]/i;
|
|
29
|
-
tokenize = function tokenizer(input, options = {}) {
|
|
30
|
-
let css = input.css.valueOf();
|
|
31
|
-
let ignore = options.ignoreErrors;
|
|
32
|
-
let code, next, quote, content, escape;
|
|
33
|
-
let escaped, escapePos, prev, n, currentToken;
|
|
34
|
-
let length = css.length;
|
|
35
|
-
let pos = 0;
|
|
36
|
-
let buffer = [];
|
|
37
|
-
let returned = [];
|
|
38
|
-
function position() {
|
|
39
|
-
return pos;
|
|
40
|
-
}
|
|
41
|
-
function unclosed(what) {
|
|
42
|
-
throw input.error("Unclosed " + what, pos);
|
|
43
|
-
}
|
|
44
|
-
function endOfFile() {
|
|
45
|
-
return returned.length === 0 && pos >= length;
|
|
46
|
-
}
|
|
47
|
-
function nextToken(opts) {
|
|
48
|
-
if (returned.length) return returned.pop();
|
|
49
|
-
if (pos >= length) return;
|
|
50
|
-
let ignoreUnclosed = opts ? opts.ignoreUnclosed : false;
|
|
51
|
-
code = css.charCodeAt(pos);
|
|
52
|
-
switch (code) {
|
|
53
|
-
case NEWLINE:
|
|
54
|
-
case SPACE:
|
|
55
|
-
case TAB:
|
|
56
|
-
case CR:
|
|
57
|
-
case FEED: {
|
|
58
|
-
next = pos;
|
|
59
|
-
do {
|
|
60
|
-
next += 1;
|
|
61
|
-
code = css.charCodeAt(next);
|
|
62
|
-
} while (code === SPACE || code === NEWLINE || code === TAB || code === CR || code === FEED);
|
|
63
|
-
currentToken = ["space", css.slice(pos, next)];
|
|
64
|
-
pos = next - 1;
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
case OPEN_SQUARE:
|
|
68
|
-
case CLOSE_SQUARE:
|
|
69
|
-
case OPEN_CURLY:
|
|
70
|
-
case CLOSE_CURLY:
|
|
71
|
-
case COLON:
|
|
72
|
-
case SEMICOLON:
|
|
73
|
-
case CLOSE_PARENTHESES: {
|
|
74
|
-
let controlChar = String.fromCharCode(code);
|
|
75
|
-
currentToken = [controlChar, controlChar, pos];
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
case OPEN_PARENTHESES: {
|
|
79
|
-
prev = buffer.length ? buffer.pop()[1] : "";
|
|
80
|
-
n = css.charCodeAt(pos + 1);
|
|
81
|
-
if (prev === "url" && n !== SINGLE_QUOTE && n !== DOUBLE_QUOTE && n !== SPACE && n !== NEWLINE && n !== TAB && n !== FEED && n !== CR) {
|
|
82
|
-
next = pos;
|
|
83
|
-
do {
|
|
84
|
-
escaped = false;
|
|
85
|
-
next = css.indexOf(")", next + 1);
|
|
86
|
-
if (next === -1) {
|
|
87
|
-
if (ignore || ignoreUnclosed) {
|
|
88
|
-
next = pos;
|
|
89
|
-
break;
|
|
90
|
-
} else {
|
|
91
|
-
unclosed("bracket");
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
escapePos = next;
|
|
95
|
-
while (css.charCodeAt(escapePos - 1) === BACKSLASH) {
|
|
96
|
-
escapePos -= 1;
|
|
97
|
-
escaped = !escaped;
|
|
98
|
-
}
|
|
99
|
-
} while (escaped);
|
|
100
|
-
currentToken = ["brackets", css.slice(pos, next + 1), pos, next];
|
|
101
|
-
pos = next;
|
|
102
|
-
} else {
|
|
103
|
-
next = css.indexOf(")", pos + 1);
|
|
104
|
-
content = css.slice(pos, next + 1);
|
|
105
|
-
if (next === -1 || RE_BAD_BRACKET.test(content)) {
|
|
106
|
-
currentToken = ["(", "(", pos];
|
|
107
|
-
} else {
|
|
108
|
-
currentToken = ["brackets", content, pos, next];
|
|
109
|
-
pos = next;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
case SINGLE_QUOTE:
|
|
115
|
-
case DOUBLE_QUOTE: {
|
|
116
|
-
quote = code === SINGLE_QUOTE ? "'" : '"';
|
|
117
|
-
next = pos;
|
|
118
|
-
do {
|
|
119
|
-
escaped = false;
|
|
120
|
-
next = css.indexOf(quote, next + 1);
|
|
121
|
-
if (next === -1) {
|
|
122
|
-
if (ignore || ignoreUnclosed) {
|
|
123
|
-
next = pos + 1;
|
|
124
|
-
break;
|
|
125
|
-
} else {
|
|
126
|
-
unclosed("string");
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
escapePos = next;
|
|
130
|
-
while (css.charCodeAt(escapePos - 1) === BACKSLASH) {
|
|
131
|
-
escapePos -= 1;
|
|
132
|
-
escaped = !escaped;
|
|
133
|
-
}
|
|
134
|
-
} while (escaped);
|
|
135
|
-
currentToken = ["string", css.slice(pos, next + 1), pos, next];
|
|
136
|
-
pos = next;
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
case AT: {
|
|
140
|
-
RE_AT_END.lastIndex = pos + 1;
|
|
141
|
-
RE_AT_END.test(css);
|
|
142
|
-
if (RE_AT_END.lastIndex === 0) {
|
|
143
|
-
next = css.length - 1;
|
|
144
|
-
} else {
|
|
145
|
-
next = RE_AT_END.lastIndex - 2;
|
|
146
|
-
}
|
|
147
|
-
currentToken = ["at-word", css.slice(pos, next + 1), pos, next];
|
|
148
|
-
pos = next;
|
|
149
|
-
break;
|
|
150
|
-
}
|
|
151
|
-
case BACKSLASH: {
|
|
152
|
-
next = pos;
|
|
153
|
-
escape = true;
|
|
154
|
-
while (css.charCodeAt(next + 1) === BACKSLASH) {
|
|
155
|
-
next += 1;
|
|
156
|
-
escape = !escape;
|
|
157
|
-
}
|
|
158
|
-
code = css.charCodeAt(next + 1);
|
|
159
|
-
if (escape && code !== SLASH && code !== SPACE && code !== NEWLINE && code !== TAB && code !== CR && code !== FEED) {
|
|
160
|
-
next += 1;
|
|
161
|
-
if (RE_HEX_ESCAPE.test(css.charAt(next))) {
|
|
162
|
-
while (RE_HEX_ESCAPE.test(css.charAt(next + 1))) {
|
|
163
|
-
next += 1;
|
|
164
|
-
}
|
|
165
|
-
if (css.charCodeAt(next + 1) === SPACE) {
|
|
166
|
-
next += 1;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
currentToken = ["word", css.slice(pos, next + 1), pos, next];
|
|
171
|
-
pos = next;
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
default: {
|
|
175
|
-
if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) {
|
|
176
|
-
next = css.indexOf("*/", pos + 2) + 1;
|
|
177
|
-
if (next === 0) {
|
|
178
|
-
if (ignore || ignoreUnclosed) {
|
|
179
|
-
next = css.length;
|
|
180
|
-
} else {
|
|
181
|
-
unclosed("comment");
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
currentToken = ["comment", css.slice(pos, next + 1), pos, next];
|
|
185
|
-
pos = next;
|
|
186
|
-
} else {
|
|
187
|
-
RE_WORD_END.lastIndex = pos + 1;
|
|
188
|
-
RE_WORD_END.test(css);
|
|
189
|
-
if (RE_WORD_END.lastIndex === 0) {
|
|
190
|
-
next = css.length - 1;
|
|
191
|
-
} else {
|
|
192
|
-
next = RE_WORD_END.lastIndex - 2;
|
|
193
|
-
}
|
|
194
|
-
currentToken = ["word", css.slice(pos, next + 1), pos, next];
|
|
195
|
-
buffer.push(currentToken);
|
|
196
|
-
pos = next;
|
|
197
|
-
}
|
|
198
|
-
break;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
pos++;
|
|
202
|
-
return currentToken;
|
|
203
|
-
}
|
|
204
|
-
function back(token) {
|
|
205
|
-
returned.push(token);
|
|
206
|
-
}
|
|
207
|
-
return {
|
|
208
|
-
back,
|
|
209
|
-
endOfFile,
|
|
210
|
-
nextToken,
|
|
211
|
-
position
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
return tokenize;
|
|
215
|
-
}
|
|
216
|
-
export {
|
|
217
|
-
requireTokenize as __require
|
|
218
|
-
};
|
|
219
|
-
//# sourceMappingURL=tokenize.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokenize.mjs","sources":["../../../../../../node_modules/postcss/lib/tokenize.js"],"sourcesContent":["'use strict'\n\nconst SINGLE_QUOTE = \"'\".charCodeAt(0)\nconst DOUBLE_QUOTE = '\"'.charCodeAt(0)\nconst BACKSLASH = '\\\\'.charCodeAt(0)\nconst SLASH = '/'.charCodeAt(0)\nconst NEWLINE = '\\n'.charCodeAt(0)\nconst SPACE = ' '.charCodeAt(0)\nconst FEED = '\\f'.charCodeAt(0)\nconst TAB = '\\t'.charCodeAt(0)\nconst CR = '\\r'.charCodeAt(0)\nconst OPEN_SQUARE = '['.charCodeAt(0)\nconst CLOSE_SQUARE = ']'.charCodeAt(0)\nconst OPEN_PARENTHESES = '('.charCodeAt(0)\nconst CLOSE_PARENTHESES = ')'.charCodeAt(0)\nconst OPEN_CURLY = '{'.charCodeAt(0)\nconst CLOSE_CURLY = '}'.charCodeAt(0)\nconst SEMICOLON = ';'.charCodeAt(0)\nconst ASTERISK = '*'.charCodeAt(0)\nconst COLON = ':'.charCodeAt(0)\nconst AT = '@'.charCodeAt(0)\n\nconst RE_AT_END = /[\\t\\n\\f\\r \"#'()/;[\\\\\\]{}]/g\nconst RE_WORD_END = /[\\t\\n\\f\\r !\"#'():;@[\\\\\\]{}]|\\/(?=\\*)/g\nconst RE_BAD_BRACKET = /.[\\r\\n\"'(/\\\\]/\nconst RE_HEX_ESCAPE = /[\\da-f]/i\n\nmodule.exports = function tokenizer(input, options = {}) {\n let css = input.css.valueOf()\n let ignore = options.ignoreErrors\n\n let code, next, quote, content, escape\n let escaped, escapePos, prev, n, currentToken\n\n let length = css.length\n let pos = 0\n let buffer = []\n let returned = []\n\n function position() {\n return pos\n }\n\n function unclosed(what) {\n throw input.error('Unclosed ' + what, pos)\n }\n\n function endOfFile() {\n return returned.length === 0 && pos >= length\n }\n\n function nextToken(opts) {\n if (returned.length) return returned.pop()\n if (pos >= length) return\n\n let ignoreUnclosed = opts ? opts.ignoreUnclosed : false\n\n code = css.charCodeAt(pos)\n\n switch (code) {\n case NEWLINE:\n case SPACE:\n case TAB:\n case CR:\n case FEED: {\n next = pos\n do {\n next += 1\n code = css.charCodeAt(next)\n } while (\n code === SPACE ||\n code === NEWLINE ||\n code === TAB ||\n code === CR ||\n code === FEED\n )\n\n currentToken = ['space', css.slice(pos, next)]\n pos = next - 1\n break\n }\n\n case OPEN_SQUARE:\n case CLOSE_SQUARE:\n case OPEN_CURLY:\n case CLOSE_CURLY:\n case COLON:\n case SEMICOLON:\n case CLOSE_PARENTHESES: {\n let controlChar = String.fromCharCode(code)\n currentToken = [controlChar, controlChar, pos]\n break\n }\n\n case OPEN_PARENTHESES: {\n prev = buffer.length ? buffer.pop()[1] : ''\n n = css.charCodeAt(pos + 1)\n if (\n prev === 'url' &&\n n !== SINGLE_QUOTE &&\n n !== DOUBLE_QUOTE &&\n n !== SPACE &&\n n !== NEWLINE &&\n n !== TAB &&\n n !== FEED &&\n n !== CR\n ) {\n next = pos\n do {\n escaped = false\n next = css.indexOf(')', next + 1)\n if (next === -1) {\n if (ignore || ignoreUnclosed) {\n next = pos\n break\n } else {\n unclosed('bracket')\n }\n }\n escapePos = next\n while (css.charCodeAt(escapePos - 1) === BACKSLASH) {\n escapePos -= 1\n escaped = !escaped\n }\n } while (escaped)\n\n currentToken = ['brackets', css.slice(pos, next + 1), pos, next]\n\n pos = next\n } else {\n next = css.indexOf(')', pos + 1)\n content = css.slice(pos, next + 1)\n\n if (next === -1 || RE_BAD_BRACKET.test(content)) {\n currentToken = ['(', '(', pos]\n } else {\n currentToken = ['brackets', content, pos, next]\n pos = next\n }\n }\n\n break\n }\n\n case SINGLE_QUOTE:\n case DOUBLE_QUOTE: {\n quote = code === SINGLE_QUOTE ? \"'\" : '\"'\n next = pos\n do {\n escaped = false\n next = css.indexOf(quote, next + 1)\n if (next === -1) {\n if (ignore || ignoreUnclosed) {\n next = pos + 1\n break\n } else {\n unclosed('string')\n }\n }\n escapePos = next\n while (css.charCodeAt(escapePos - 1) === BACKSLASH) {\n escapePos -= 1\n escaped = !escaped\n }\n } while (escaped)\n\n currentToken = ['string', css.slice(pos, next + 1), pos, next]\n pos = next\n break\n }\n\n case AT: {\n RE_AT_END.lastIndex = pos + 1\n RE_AT_END.test(css)\n if (RE_AT_END.lastIndex === 0) {\n next = css.length - 1\n } else {\n next = RE_AT_END.lastIndex - 2\n }\n\n currentToken = ['at-word', css.slice(pos, next + 1), pos, next]\n\n pos = next\n break\n }\n\n case BACKSLASH: {\n next = pos\n escape = true\n while (css.charCodeAt(next + 1) === BACKSLASH) {\n next += 1\n escape = !escape\n }\n code = css.charCodeAt(next + 1)\n if (\n escape &&\n code !== SLASH &&\n code !== SPACE &&\n code !== NEWLINE &&\n code !== TAB &&\n code !== CR &&\n code !== FEED\n ) {\n next += 1\n if (RE_HEX_ESCAPE.test(css.charAt(next))) {\n while (RE_HEX_ESCAPE.test(css.charAt(next + 1))) {\n next += 1\n }\n if (css.charCodeAt(next + 1) === SPACE) {\n next += 1\n }\n }\n }\n\n currentToken = ['word', css.slice(pos, next + 1), pos, next]\n\n pos = next\n break\n }\n\n default: {\n if (code === SLASH && css.charCodeAt(pos + 1) === ASTERISK) {\n next = css.indexOf('*/', pos + 2) + 1\n if (next === 0) {\n if (ignore || ignoreUnclosed) {\n next = css.length\n } else {\n unclosed('comment')\n }\n }\n\n currentToken = ['comment', css.slice(pos, next + 1), pos, next]\n pos = next\n } else {\n RE_WORD_END.lastIndex = pos + 1\n RE_WORD_END.test(css)\n if (RE_WORD_END.lastIndex === 0) {\n next = css.length - 1\n } else {\n next = RE_WORD_END.lastIndex - 2\n }\n\n currentToken = ['word', css.slice(pos, next + 1), pos, next]\n buffer.push(currentToken)\n pos = next\n }\n\n break\n }\n }\n\n pos++\n return currentToken\n }\n\n function back(token) {\n returned.push(token)\n }\n\n return {\n back,\n endOfFile,\n nextToken,\n position\n }\n}\n"],"names":[],"mappings":";;;;;AAEA,QAAM,eAAe,IAAI,WAAW,CAAC;AACrC,QAA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AACxB,kBAAM;AAAA,UAChB;AAEQ;AAAA,QACR;AAAA,MACA;AAEI;AACA,aAAO;AAAA,IACX;AAEE,aAAS,KAAK,OAAO;AACnB,eAAS,KAAK,KAAK;AAAA,IACvB;AAEE,WAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EACA;;;","x_google_ignoreList":[0]}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
var warning;
|
|
2
|
-
var hasRequiredWarning;
|
|
3
|
-
function requireWarning() {
|
|
4
|
-
if (hasRequiredWarning) return warning;
|
|
5
|
-
hasRequiredWarning = 1;
|
|
6
|
-
class Warning {
|
|
7
|
-
constructor(text, opts = {}) {
|
|
8
|
-
this.type = "warning";
|
|
9
|
-
this.text = text;
|
|
10
|
-
if (opts.node && opts.node.source) {
|
|
11
|
-
let range = opts.node.rangeBy(opts);
|
|
12
|
-
this.line = range.start.line;
|
|
13
|
-
this.column = range.start.column;
|
|
14
|
-
this.endLine = range.end.line;
|
|
15
|
-
this.endColumn = range.end.column;
|
|
16
|
-
}
|
|
17
|
-
for (let opt in opts) this[opt] = opts[opt];
|
|
18
|
-
}
|
|
19
|
-
toString() {
|
|
20
|
-
if (this.node) {
|
|
21
|
-
return this.node.error(this.text, {
|
|
22
|
-
index: this.index,
|
|
23
|
-
plugin: this.plugin,
|
|
24
|
-
word: this.word
|
|
25
|
-
}).message;
|
|
26
|
-
}
|
|
27
|
-
if (this.plugin) {
|
|
28
|
-
return this.plugin + ": " + this.text;
|
|
29
|
-
}
|
|
30
|
-
return this.text;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
warning = Warning;
|
|
34
|
-
Warning.default = Warning;
|
|
35
|
-
return warning;
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
requireWarning as __require
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=warning.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"warning.mjs","sources":["../../../../../../node_modules/postcss/lib/warning.js"],"sourcesContent":["'use strict'\n\nclass Warning {\n constructor(text, opts = {}) {\n this.type = 'warning'\n this.text = text\n\n if (opts.node && opts.node.source) {\n let range = opts.node.rangeBy(opts)\n this.line = range.start.line\n this.column = range.start.column\n this.endLine = range.end.line\n this.endColumn = range.end.column\n }\n\n for (let opt in opts) this[opt] = opts[opt]\n }\n\n toString() {\n if (this.node) {\n return this.node.error(this.text, {\n index: this.index,\n plugin: this.plugin,\n word: this.word\n }).message\n }\n\n if (this.plugin) {\n return this.plugin + ': ' + this.text\n }\n\n return this.text\n }\n}\n\nmodule.exports = Warning\nWarning.default = Warning\n"],"names":[],"mappings":";;;;;EAEA,MAAM,QAAQ;AAAA,IACZ,YAAY,MAAM,OAAO,IAAI;AAC3B,WAAK,OAAO;AACZ,WAAK,OAAO;AAEZ,UAAI,KAAK,QAAQ,KAAK,KAAK,QAAQ;AACjC,YAAI,QAAQ,KAAK,KAAK,QAAQ,IAAI;AAClC,aAAK,OAAO,MAAM,MAAM;AACxB,aAAK,SAAS,MAAM,MAAM;AAC1B,aAAK,UAAU,MAAM,IAAI;AACzB,aAAK,YAAY,MAAM,IAAI;AAAA,MACjC;AAEI,eAAS,OAAO,KAAM,MAAK,GAAG,IAAI,KAAK,GAAG;AAAA,IAC9C;AAAA,IAEE,WAAW;AACT,UAAI,KAAK,MAAM;AACb,eAAO,KAAK,KAAK,MAAM,KAAK,MAAM;AAAA,UAChC,OAAO,KAAK;AAAA,UACZ,QAAQ,KAAK;AAAA,UACb,MAAM,KAAK;AAAA,QACnB,CAAO,EAAE;AAAA,MACT;AAEI,UAAI,KAAK,QAAQ;AACf,eAAO,KAAK,SAAS,OAAO,KAAK;AAAA,MACvC;AAEI,aAAO,KAAK;AAAA,IAChB;AAAA,EACA;AAEA,YAAiB;AACjB,UAAQ,UAAU;;;","x_google_ignoreList":[0]}
|