soonjs 0.0.30 → 0.0.31

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.
Files changed (35) hide show
  1. package/dist/deps/acorn-MFuat2YCgG-e4p88nn1g.js +2895 -0
  2. package/dist/deps/angular-Nz7Izt9RB4-h18jjmowy.js +1448 -0
  3. package/dist/deps/babel-JaNXSJC73c-9yodyvvph.js +6844 -0
  4. package/dist/deps/estree-lrVsLbm9_D-frgb7tfnu.js +4265 -0
  5. package/dist/deps/flow-MAZ63dnw8p-m2rrmabt3.js +26221 -0
  6. package/dist/deps/glimmer-SKEURx3bl3-9q9t7pwdx.js +2756 -0
  7. package/dist/deps/graphql--N7MQg-wpp-ikfx3vyg2.js +1212 -0
  8. package/dist/deps/html-WW7XljTSl6-u2zm0618g.js +2623 -0
  9. package/dist/deps/markdown-i-DCK3AslU-27ooihdjf.js +3058 -0
  10. package/dist/deps/meriyah-0-URq6zZ8n-mvot02tnl.js +2320 -0
  11. package/dist/deps/postcss-urUw1vxeu1-ltys6ubta.js +4664 -0
  12. package/dist/deps/soon-id-t25L9qRGGZ-mseuvoose.js +30 -0
  13. package/dist/deps/typescript-5-LBeuVeDB-kqvbhavbi.js +12794 -0
  14. package/dist/deps/yaml-zChCAOpgM7-osfcioi5d.js +4088 -0
  15. package/dist/index.cjs +1 -1
  16. package/dist/index.js +1 -1
  17. package/dist/vite-plugin-soon-client.cjs +2 -2
  18. package/dist/vite-plugin-soon-client.js +14 -14
  19. package/dist/vite-plugin-soon-server.cjs +1 -1
  20. package/dist/vite-plugin-soon-server.js +1 -1
  21. package/package.json +1 -1
  22. /package/dist/deps/{acorn-GEHm0ZzYiF.js → acorn-MFuat2YCgG-3o370z873.js} +0 -0
  23. /package/dist/deps/{angular-AsYEFZGiaL.js → angular-Nz7Izt9RB4-tpn6vrzzy.js} +0 -0
  24. /package/dist/deps/{babel-JF5SXjDJMg.js → babel-JaNXSJC73c-ynxn8i808.js} +0 -0
  25. /package/dist/deps/{estree-mpHydeVRIX.js → estree-lrVsLbm9_D-emih400u1.js} +0 -0
  26. /package/dist/deps/{flow-Nrt1FQ_Vve.js → flow-MAZ63dnw8p-wi0v0aena.js} +0 -0
  27. /package/dist/deps/{glimmer-wulBvI3ec4.js → glimmer-SKEURx3bl3-l70hzjhe4.js} +0 -0
  28. /package/dist/deps/{graphql-RtYSaK2zvJ.js → graphql--N7MQg-wpp-v49tdgcr9.js} +0 -0
  29. /package/dist/deps/{html-Rhm0swv15v.js → html-WW7XljTSl6-nxudy7vqp.js} +0 -0
  30. /package/dist/deps/{markdown-lYixUp5UIZ.js → markdown-i-DCK3AslU-wd4hbzpj4.js} +0 -0
  31. /package/dist/deps/{meriyah-sFHGgRXFc5.js → meriyah-0-URq6zZ8n-8hx0wdln8.js} +0 -0
  32. /package/dist/deps/{postcss-R-fq3Fq8sV.js → postcss-urUw1vxeu1-xxgu2fu5o.js} +0 -0
  33. /package/dist/deps/{soon-id-mHYJjIZNTr.js → soon-id-t25L9qRGGZ-l8lkjbbxl.js} +0 -0
  34. /package/dist/deps/{typescript-VhxF0z88nS.js → typescript-5-LBeuVeDB-7w9kseqyq.js} +0 -0
  35. /package/dist/deps/{yaml-bWZoUlV7rd.js → yaml-zChCAOpgM7-h7aopdk65.js} +0 -0
@@ -0,0 +1,4664 @@
1
+ var Jr = Object.defineProperty;
2
+ var Qr = (e, r, o) => r in e ? Jr(e, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[r] = o;
3
+ var rt = (e, r, o) => Qr(e, typeof r != "symbol" ? r + "" : r, o);
4
+ var Kr = Object.create, ft = Object.defineProperty, Zr = Object.getOwnPropertyDescriptor, Yr = Object.getOwnPropertyNames, Xr = Object.getPrototypeOf, en = Object.prototype.hasOwnProperty, _ = (e, r) => () => (r || e((r = { exports: {} }).exports, r), r.exports), Gt = (e, r) => {
5
+ for (var o in r) ft(e, o, { get: r[o], enumerable: !0 });
6
+ }, tn = (e, r, o, i) => {
7
+ if (r && typeof r == "object" || typeof r == "function") for (let l of Yr(r)) !en.call(e, l) && l !== o && ft(e, l, { get: () => r[l], enumerable: !(i = Zr(r, l)) || i.enumerable });
8
+ return e;
9
+ }, we = (e, r, o) => (o = e != null ? Kr(Xr(e)) : {}, tn(ft(o, "default", { value: e, enumerable: !0 }), e)), dt = _((e, r) => {
10
+ r.exports.isClean = Symbol("isClean"), r.exports.my = Symbol("my");
11
+ }), rn = _((e, r) => {
12
+ var o = String, i = function() {
13
+ return { isColorSupported: !1, reset: o, bold: o, dim: o, italic: o, underline: o, inverse: o, hidden: o, strikethrough: o, black: o, red: o, green: o, yellow: o, blue: o, magenta: o, cyan: o, white: o, gray: o, bgBlack: o, bgRed: o, bgGreen: o, bgYellow: o, bgBlue: o, bgMagenta: o, bgCyan: o, bgWhite: o };
14
+ };
15
+ r.exports = i(), r.exports.createColors = i;
16
+ }), Ht = _(() => {
17
+ }), mt = _((e, r) => {
18
+ var o = rn(), i = Ht(), l = class Jt extends Error {
19
+ constructor(c, u, m, s, n, t) {
20
+ super(c), this.name = "CssSyntaxError", this.reason = c, n && (this.file = n), s && (this.source = s), t && (this.plugin = t), typeof u < "u" && typeof m < "u" && (typeof u == "number" ? (this.line = u, this.column = m) : (this.line = u.line, this.column = u.column, this.endLine = m.line, this.endColumn = m.column)), this.setMessage(), Error.captureStackTrace && Error.captureStackTrace(this, Jt);
21
+ }
22
+ setMessage() {
23
+ this.message = this.plugin ? this.plugin + ": " : "", this.message += this.file ? this.file : "<css input>", typeof this.line < "u" && (this.message += ":" + this.line + ":" + this.column), this.message += ": " + this.reason;
24
+ }
25
+ showSourceCode(c) {
26
+ if (!this.source) return "";
27
+ let u = this.source;
28
+ c == null && (c = o.isColorSupported), i && c && (u = i(u));
29
+ let m = u.split(/\r?\n/), s = Math.max(this.line - 3, 0), n = Math.min(this.line + 2, m.length), t = String(n).length, f, h;
30
+ if (c) {
31
+ let { bold: d, gray: p, red: w } = o.createColors(!0);
32
+ f = (y) => d(w(y)), h = (y) => p(y);
33
+ } else f = h = (d) => d;
34
+ return m.slice(s, n).map((d, p) => {
35
+ let w = s + 1 + p, y = " " + (" " + w).slice(-t) + " | ";
36
+ if (w === this.line) {
37
+ let v = h(y.replace(/\d/g, " ")) + d.slice(0, this.column - 1).replace(/[^\t]/g, " ");
38
+ return f(">") + h(y) + d + `
39
+ ` + v + f("^");
40
+ }
41
+ return " " + h(y) + d;
42
+ }).join(`
43
+ `);
44
+ }
45
+ toString() {
46
+ let c = this.showSourceCode();
47
+ return c && (c = `
48
+
49
+ ` + c + `
50
+ `), this.name + ": " + this.message + c;
51
+ }
52
+ };
53
+ r.exports = l, l.default = l;
54
+ }), vt = _((e, r) => {
55
+ var o = { after: `
56
+ `, beforeClose: `
57
+ `, beforeComment: `
58
+ `, beforeDecl: `
59
+ `, beforeOpen: " ", beforeRule: `
60
+ `, colon: ": ", commentLeft: " ", commentRight: " ", emptyBody: "", indent: " ", semicolon: !1 };
61
+ function i(a) {
62
+ return a[0].toUpperCase() + a.slice(1);
63
+ }
64
+ var l = class {
65
+ constructor(a) {
66
+ this.builder = a;
67
+ }
68
+ atrule(a, c) {
69
+ let u = "@" + a.name, m = a.params ? this.rawValue(a, "params") : "";
70
+ if (typeof a.raws.afterName < "u" ? u += a.raws.afterName : m && (u += " "), a.nodes) this.block(a, u + m);
71
+ else {
72
+ let s = (a.raws.between || "") + (c ? ";" : "");
73
+ this.builder(u + m + s, a);
74
+ }
75
+ }
76
+ beforeAfter(a, c) {
77
+ let u;
78
+ a.type === "decl" ? u = this.raw(a, null, "beforeDecl") : a.type === "comment" ? u = this.raw(a, null, "beforeComment") : c === "before" ? u = this.raw(a, null, "beforeRule") : u = this.raw(a, null, "beforeClose");
79
+ let m = a.parent, s = 0;
80
+ for (; m && m.type !== "root"; ) s += 1, m = m.parent;
81
+ if (u.includes(`
82
+ `)) {
83
+ let n = this.raw(a, null, "indent");
84
+ if (n.length) for (let t = 0; t < s; t++) u += n;
85
+ }
86
+ return u;
87
+ }
88
+ block(a, c) {
89
+ let u = this.raw(a, "between", "beforeOpen");
90
+ this.builder(c + u + "{", a, "start");
91
+ let m;
92
+ a.nodes && a.nodes.length ? (this.body(a), m = this.raw(a, "after")) : m = this.raw(a, "after", "emptyBody"), m && this.builder(m), this.builder("}", a, "end");
93
+ }
94
+ body(a) {
95
+ let c = a.nodes.length - 1;
96
+ for (; c > 0 && a.nodes[c].type === "comment"; ) c -= 1;
97
+ let u = this.raw(a, "semicolon");
98
+ for (let m = 0; m < a.nodes.length; m++) {
99
+ let s = a.nodes[m], n = this.raw(s, "before");
100
+ n && this.builder(n), this.stringify(s, c !== m || u);
101
+ }
102
+ }
103
+ comment(a) {
104
+ let c = this.raw(a, "left", "commentLeft"), u = this.raw(a, "right", "commentRight");
105
+ this.builder("/*" + c + a.text + u + "*/", a);
106
+ }
107
+ decl(a, c) {
108
+ let u = this.raw(a, "between", "colon"), m = a.prop + u + this.rawValue(a, "value");
109
+ a.important && (m += a.raws.important || " !important"), c && (m += ";"), this.builder(m, a);
110
+ }
111
+ document(a) {
112
+ this.body(a);
113
+ }
114
+ raw(a, c, u) {
115
+ let m;
116
+ if (u || (u = c), c && (m = a.raws[c], typeof m < "u")) return m;
117
+ let s = a.parent;
118
+ if (u === "before" && (!s || s.type === "root" && s.first === a || s && s.type === "document")) return "";
119
+ if (!s) return o[u];
120
+ let n = a.root();
121
+ if (n.rawCache || (n.rawCache = {}), typeof n.rawCache[u] < "u") return n.rawCache[u];
122
+ if (u === "before" || u === "after") return this.beforeAfter(a, u);
123
+ {
124
+ let t = "raw" + i(u);
125
+ this[t] ? m = this[t](n, a) : n.walk((f) => {
126
+ if (m = f.raws[c], typeof m < "u") return !1;
127
+ });
128
+ }
129
+ return typeof m > "u" && (m = o[u]), n.rawCache[u] = m, m;
130
+ }
131
+ rawBeforeClose(a) {
132
+ let c;
133
+ return a.walk((u) => {
134
+ if (u.nodes && u.nodes.length > 0 && typeof u.raws.after < "u") return c = u.raws.after, c.includes(`
135
+ `) && (c = c.replace(/[^\n]+$/, "")), !1;
136
+ }), c && (c = c.replace(/\S/g, "")), c;
137
+ }
138
+ rawBeforeComment(a, c) {
139
+ let u;
140
+ return a.walkComments((m) => {
141
+ if (typeof m.raws.before < "u") return u = m.raws.before, u.includes(`
142
+ `) && (u = u.replace(/[^\n]+$/, "")), !1;
143
+ }), typeof u > "u" ? u = this.raw(c, null, "beforeDecl") : u && (u = u.replace(/\S/g, "")), u;
144
+ }
145
+ rawBeforeDecl(a, c) {
146
+ let u;
147
+ return a.walkDecls((m) => {
148
+ if (typeof m.raws.before < "u") return u = m.raws.before, u.includes(`
149
+ `) && (u = u.replace(/[^\n]+$/, "")), !1;
150
+ }), typeof u > "u" ? u = this.raw(c, null, "beforeRule") : u && (u = u.replace(/\S/g, "")), u;
151
+ }
152
+ rawBeforeOpen(a) {
153
+ let c;
154
+ return a.walk((u) => {
155
+ if (u.type !== "decl" && (c = u.raws.between, typeof c < "u")) return !1;
156
+ }), c;
157
+ }
158
+ rawBeforeRule(a) {
159
+ let c;
160
+ return a.walk((u) => {
161
+ if (u.nodes && (u.parent !== a || a.first !== u) && typeof u.raws.before < "u") return c = u.raws.before, c.includes(`
162
+ `) && (c = c.replace(/[^\n]+$/, "")), !1;
163
+ }), c && (c = c.replace(/\S/g, "")), c;
164
+ }
165
+ rawColon(a) {
166
+ let c;
167
+ return a.walkDecls((u) => {
168
+ if (typeof u.raws.between < "u") return c = u.raws.between.replace(/[^\s:]/g, ""), !1;
169
+ }), c;
170
+ }
171
+ rawEmptyBody(a) {
172
+ let c;
173
+ return a.walk((u) => {
174
+ if (u.nodes && u.nodes.length === 0 && (c = u.raws.after, typeof c < "u")) return !1;
175
+ }), c;
176
+ }
177
+ rawIndent(a) {
178
+ if (a.raws.indent) return a.raws.indent;
179
+ let c;
180
+ return a.walk((u) => {
181
+ let m = u.parent;
182
+ if (m && m !== a && m.parent && m.parent === a && typeof u.raws.before < "u") {
183
+ let s = u.raws.before.split(`
184
+ `);
185
+ return c = s[s.length - 1], c = c.replace(/\S/g, ""), !1;
186
+ }
187
+ }), c;
188
+ }
189
+ rawSemicolon(a) {
190
+ let c;
191
+ return a.walk((u) => {
192
+ if (u.nodes && u.nodes.length && u.last.type === "decl" && (c = u.raws.semicolon, typeof c < "u")) return !1;
193
+ }), c;
194
+ }
195
+ rawValue(a, c) {
196
+ let u = a[c], m = a.raws[c];
197
+ return m && m.value === u ? m.raw : u;
198
+ }
199
+ root(a) {
200
+ this.body(a), a.raws.after && this.builder(a.raws.after);
201
+ }
202
+ rule(a) {
203
+ this.block(a, this.rawValue(a, "selector")), a.raws.ownSemicolon && this.builder(a.raws.ownSemicolon, a, "end");
204
+ }
205
+ stringify(a, c) {
206
+ if (!this[a.type]) throw new Error("Unknown AST node type " + a.type + ". Maybe you need to change PostCSS stringifier.");
207
+ this[a.type](a, c);
208
+ }
209
+ };
210
+ r.exports = l, l.default = l;
211
+ }), Qe = _((e, r) => {
212
+ var o = vt();
213
+ function i(l, a) {
214
+ new o(a).stringify(l);
215
+ }
216
+ r.exports = i, i.default = i;
217
+ }), Ke = _((e, r) => {
218
+ var { isClean: o, my: i } = dt(), l = mt(), a = vt(), c = Qe();
219
+ function u(s, n) {
220
+ let t = new s.constructor();
221
+ for (let f in s) {
222
+ if (!Object.prototype.hasOwnProperty.call(s, f) || f === "proxyCache") continue;
223
+ let h = s[f], d = typeof h;
224
+ f === "parent" && d === "object" ? n && (t[f] = n) : f === "source" ? t[f] = h : Array.isArray(h) ? t[f] = h.map((p) => u(p, t)) : (d === "object" && h !== null && (h = u(h)), t[f] = h);
225
+ }
226
+ return t;
227
+ }
228
+ var m = class {
229
+ constructor(s = {}) {
230
+ this.raws = {}, this[o] = !1, this[i] = !0;
231
+ for (let n in s) if (n === "nodes") {
232
+ this.nodes = [];
233
+ for (let t of s[n]) typeof t.clone == "function" ? this.append(t.clone()) : this.append(t);
234
+ } else this[n] = s[n];
235
+ }
236
+ addToError(s) {
237
+ if (s.postcssNode = this, s.stack && this.source && /\n\s{4}at /.test(s.stack)) {
238
+ let n = this.source;
239
+ s.stack = s.stack.replace(/\n\s{4}at /, `$&${n.input.from}:${n.start.line}:${n.start.column}$&`);
240
+ }
241
+ return s;
242
+ }
243
+ after(s) {
244
+ return this.parent.insertAfter(this, s), this;
245
+ }
246
+ assign(s = {}) {
247
+ for (let n in s) this[n] = s[n];
248
+ return this;
249
+ }
250
+ before(s) {
251
+ return this.parent.insertBefore(this, s), this;
252
+ }
253
+ cleanRaws(s) {
254
+ delete this.raws.before, delete this.raws.after, s || delete this.raws.between;
255
+ }
256
+ clone(s = {}) {
257
+ let n = u(this);
258
+ for (let t in s) n[t] = s[t];
259
+ return n;
260
+ }
261
+ cloneAfter(s = {}) {
262
+ let n = this.clone(s);
263
+ return this.parent.insertAfter(this, n), n;
264
+ }
265
+ cloneBefore(s = {}) {
266
+ let n = this.clone(s);
267
+ return this.parent.insertBefore(this, n), n;
268
+ }
269
+ error(s, n = {}) {
270
+ if (this.source) {
271
+ let { end: t, start: f } = this.rangeBy(n);
272
+ return this.source.input.error(s, { column: f.column, line: f.line }, { column: t.column, line: t.line }, n);
273
+ }
274
+ return new l(s);
275
+ }
276
+ getProxyProcessor() {
277
+ return { get(s, n) {
278
+ return n === "proxyOf" ? s : n === "root" ? () => s.root().toProxy() : s[n];
279
+ }, set(s, n, t) {
280
+ return s[n] === t || (s[n] = t, (n === "prop" || n === "value" || n === "name" || n === "params" || n === "important" || n === "text") && s.markDirty()), !0;
281
+ } };
282
+ }
283
+ markDirty() {
284
+ if (this[o]) {
285
+ this[o] = !1;
286
+ let s = this;
287
+ for (; s = s.parent; ) s[o] = !1;
288
+ }
289
+ }
290
+ next() {
291
+ if (!this.parent) return;
292
+ let s = this.parent.index(this);
293
+ return this.parent.nodes[s + 1];
294
+ }
295
+ positionBy(s, n) {
296
+ let t = this.source.start;
297
+ if (s.index) t = this.positionInside(s.index, n);
298
+ else if (s.word) {
299
+ n = this.toString();
300
+ let f = n.indexOf(s.word);
301
+ f !== -1 && (t = this.positionInside(f, n));
302
+ }
303
+ return t;
304
+ }
305
+ positionInside(s, n) {
306
+ let t = n || this.toString(), f = this.source.start.column, h = this.source.start.line;
307
+ for (let d = 0; d < s; d++) t[d] === `
308
+ ` ? (f = 1, h += 1) : f += 1;
309
+ return { column: f, line: h };
310
+ }
311
+ prev() {
312
+ if (!this.parent) return;
313
+ let s = this.parent.index(this);
314
+ return this.parent.nodes[s - 1];
315
+ }
316
+ rangeBy(s) {
317
+ let n = { column: this.source.start.column, line: this.source.start.line }, t = this.source.end ? { column: this.source.end.column + 1, line: this.source.end.line } : { column: n.column + 1, line: n.line };
318
+ if (s.word) {
319
+ let f = this.toString(), h = f.indexOf(s.word);
320
+ h !== -1 && (n = this.positionInside(h, f), t = this.positionInside(h + s.word.length, f));
321
+ } else s.start ? n = { column: s.start.column, line: s.start.line } : s.index && (n = this.positionInside(s.index)), s.end ? t = { column: s.end.column, line: s.end.line } : typeof s.endIndex == "number" ? t = this.positionInside(s.endIndex) : s.index && (t = this.positionInside(s.index + 1));
322
+ return (t.line < n.line || t.line === n.line && t.column <= n.column) && (t = { column: n.column + 1, line: n.line }), { end: t, start: n };
323
+ }
324
+ raw(s, n) {
325
+ return new a().raw(this, s, n);
326
+ }
327
+ remove() {
328
+ return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
329
+ }
330
+ replaceWith(...s) {
331
+ if (this.parent) {
332
+ let n = this, t = !1;
333
+ for (let f of s) f === this ? t = !0 : t ? (this.parent.insertAfter(n, f), n = f) : this.parent.insertBefore(n, f);
334
+ t || this.remove();
335
+ }
336
+ return this;
337
+ }
338
+ root() {
339
+ let s = this;
340
+ for (; s.parent && s.parent.type !== "document"; ) s = s.parent;
341
+ return s;
342
+ }
343
+ toJSON(s, n) {
344
+ let t = {}, f = n == null;
345
+ n = n || /* @__PURE__ */ new Map();
346
+ let h = 0;
347
+ for (let d in this) {
348
+ if (!Object.prototype.hasOwnProperty.call(this, d) || d === "parent" || d === "proxyCache") continue;
349
+ let p = this[d];
350
+ if (Array.isArray(p)) t[d] = p.map((w) => typeof w == "object" && w.toJSON ? w.toJSON(null, n) : w);
351
+ else if (typeof p == "object" && p.toJSON) t[d] = p.toJSON(null, n);
352
+ else if (d === "source") {
353
+ let w = n.get(p.input);
354
+ w == null && (w = h, n.set(p.input, h), h++), t[d] = { end: p.end, inputId: w, start: p.start };
355
+ } else t[d] = p;
356
+ }
357
+ return f && (t.inputs = [...n.keys()].map((d) => d.toJSON())), t;
358
+ }
359
+ toProxy() {
360
+ return this.proxyCache || (this.proxyCache = new Proxy(this, this.getProxyProcessor())), this.proxyCache;
361
+ }
362
+ toString(s = c) {
363
+ s.stringify && (s = s.stringify);
364
+ let n = "";
365
+ return s(this, (t) => {
366
+ n += t;
367
+ }), n;
368
+ }
369
+ warn(s, n, t) {
370
+ let f = { node: this };
371
+ for (let h in t) f[h] = t[h];
372
+ return s.warn(n, f);
373
+ }
374
+ get proxyOf() {
375
+ return this;
376
+ }
377
+ };
378
+ r.exports = m, m.default = m;
379
+ }), Ze = _((e, r) => {
380
+ var o = Ke(), i = class extends o {
381
+ constructor(l) {
382
+ l && typeof l.value < "u" && typeof l.value != "string" && (l = { ...l, value: String(l.value) }), super(l), this.type = "decl";
383
+ }
384
+ get variable() {
385
+ return this.prop.startsWith("--") || this.prop[0] === "$";
386
+ }
387
+ };
388
+ r.exports = i, i.default = i;
389
+ }), Ie = _((e, r) => {
390
+ var o = Ke(), i = class extends o {
391
+ constructor(l) {
392
+ super(l), this.type = "comment";
393
+ }
394
+ };
395
+ r.exports = i, i.default = i;
396
+ }), ue = _((e, r) => {
397
+ var { isClean: o, my: i } = dt(), l = Ze(), a = Ie(), c = Ke(), u, m, s, n;
398
+ function t(d) {
399
+ return d.map((p) => (p.nodes && (p.nodes = t(p.nodes)), delete p.source, p));
400
+ }
401
+ function f(d) {
402
+ if (d[o] = !1, d.proxyOf.nodes) for (let p of d.proxyOf.nodes) f(p);
403
+ }
404
+ var h = class Qt extends c {
405
+ append(...p) {
406
+ for (let w of p) {
407
+ let y = this.normalize(w, this.last);
408
+ for (let v of y) this.proxyOf.nodes.push(v);
409
+ }
410
+ return this.markDirty(), this;
411
+ }
412
+ cleanRaws(p) {
413
+ if (super.cleanRaws(p), this.nodes) for (let w of this.nodes) w.cleanRaws(p);
414
+ }
415
+ each(p) {
416
+ if (!this.proxyOf.nodes) return;
417
+ let w = this.getIterator(), y, v;
418
+ for (; this.indexes[w] < this.proxyOf.nodes.length && (y = this.indexes[w], v = p(this.proxyOf.nodes[y], y), v !== !1); ) this.indexes[w] += 1;
419
+ return delete this.indexes[w], v;
420
+ }
421
+ every(p) {
422
+ return this.nodes.every(p);
423
+ }
424
+ getIterator() {
425
+ this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1;
426
+ let p = this.lastEach;
427
+ return this.indexes[p] = 0, p;
428
+ }
429
+ getProxyProcessor() {
430
+ return { get(p, w) {
431
+ return w === "proxyOf" ? p : p[w] ? w === "each" || typeof w == "string" && w.startsWith("walk") ? (...y) => p[w](...y.map((v) => typeof v == "function" ? (g, O) => v(g.toProxy(), O) : v)) : w === "every" || w === "some" ? (y) => p[w]((v, ...g) => y(v.toProxy(), ...g)) : w === "root" ? () => p.root().toProxy() : w === "nodes" ? p.nodes.map((y) => y.toProxy()) : w === "first" || w === "last" ? p[w].toProxy() : p[w] : p[w];
432
+ }, set(p, w, y) {
433
+ return p[w] === y || (p[w] = y, (w === "name" || w === "params" || w === "selector") && p.markDirty()), !0;
434
+ } };
435
+ }
436
+ index(p) {
437
+ return typeof p == "number" ? p : (p.proxyOf && (p = p.proxyOf), this.proxyOf.nodes.indexOf(p));
438
+ }
439
+ insertAfter(p, w) {
440
+ let y = this.index(p), v = this.normalize(w, this.proxyOf.nodes[y]).reverse();
441
+ y = this.index(p);
442
+ for (let O of v) this.proxyOf.nodes.splice(y + 1, 0, O);
443
+ let g;
444
+ for (let O in this.indexes) g = this.indexes[O], y < g && (this.indexes[O] = g + v.length);
445
+ return this.markDirty(), this;
446
+ }
447
+ insertBefore(p, w) {
448
+ let y = this.index(p), v = y === 0 ? "prepend" : !1, g = this.normalize(w, this.proxyOf.nodes[y], v).reverse();
449
+ y = this.index(p);
450
+ for (let b of g) this.proxyOf.nodes.splice(y, 0, b);
451
+ let O;
452
+ for (let b in this.indexes) O = this.indexes[b], y <= O && (this.indexes[b] = O + g.length);
453
+ return this.markDirty(), this;
454
+ }
455
+ normalize(p, w) {
456
+ if (typeof p == "string") p = t(u(p).nodes);
457
+ else if (typeof p > "u") p = [];
458
+ else if (Array.isArray(p)) {
459
+ p = p.slice(0);
460
+ for (let y of p) y.parent && y.parent.removeChild(y, "ignore");
461
+ } else if (p.type === "root" && this.type !== "document") {
462
+ p = p.nodes.slice(0);
463
+ for (let y of p) y.parent && y.parent.removeChild(y, "ignore");
464
+ } else if (p.type) p = [p];
465
+ else if (p.prop) {
466
+ if (typeof p.value > "u") throw new Error("Value field is missed in node creation");
467
+ typeof p.value != "string" && (p.value = String(p.value)), p = [new l(p)];
468
+ } else if (p.selector) p = [new m(p)];
469
+ else if (p.name) p = [new s(p)];
470
+ else if (p.text) p = [new a(p)];
471
+ else throw new Error("Unknown node type in node creation");
472
+ return p.map((y) => (y[i] || Qt.rebuild(y), y = y.proxyOf, y.parent && y.parent.removeChild(y), y[o] && f(y), typeof y.raws.before > "u" && w && typeof w.raws.before < "u" && (y.raws.before = w.raws.before.replace(/\S/g, "")), y.parent = this.proxyOf, y));
473
+ }
474
+ prepend(...p) {
475
+ p = p.reverse();
476
+ for (let w of p) {
477
+ let y = this.normalize(w, this.first, "prepend").reverse();
478
+ for (let v of y) this.proxyOf.nodes.unshift(v);
479
+ for (let v in this.indexes) this.indexes[v] = this.indexes[v] + y.length;
480
+ }
481
+ return this.markDirty(), this;
482
+ }
483
+ push(p) {
484
+ return p.parent = this, this.proxyOf.nodes.push(p), this;
485
+ }
486
+ removeAll() {
487
+ for (let p of this.proxyOf.nodes) p.parent = void 0;
488
+ return this.proxyOf.nodes = [], this.markDirty(), this;
489
+ }
490
+ removeChild(p) {
491
+ p = this.index(p), this.proxyOf.nodes[p].parent = void 0, this.proxyOf.nodes.splice(p, 1);
492
+ let w;
493
+ for (let y in this.indexes) w = this.indexes[y], w >= p && (this.indexes[y] = w - 1);
494
+ return this.markDirty(), this;
495
+ }
496
+ replaceValues(p, w, y) {
497
+ return y || (y = w, w = {}), this.walkDecls((v) => {
498
+ w.props && !w.props.includes(v.prop) || w.fast && !v.value.includes(w.fast) || (v.value = v.value.replace(p, y));
499
+ }), this.markDirty(), this;
500
+ }
501
+ some(p) {
502
+ return this.nodes.some(p);
503
+ }
504
+ walk(p) {
505
+ return this.each((w, y) => {
506
+ let v;
507
+ try {
508
+ v = p(w, y);
509
+ } catch (g) {
510
+ throw w.addToError(g);
511
+ }
512
+ return v !== !1 && w.walk && (v = w.walk(p)), v;
513
+ });
514
+ }
515
+ walkAtRules(p, w) {
516
+ return w ? p instanceof RegExp ? this.walk((y, v) => {
517
+ if (y.type === "atrule" && p.test(y.name)) return w(y, v);
518
+ }) : this.walk((y, v) => {
519
+ if (y.type === "atrule" && y.name === p) return w(y, v);
520
+ }) : (w = p, this.walk((y, v) => {
521
+ if (y.type === "atrule") return w(y, v);
522
+ }));
523
+ }
524
+ walkComments(p) {
525
+ return this.walk((w, y) => {
526
+ if (w.type === "comment") return p(w, y);
527
+ });
528
+ }
529
+ walkDecls(p, w) {
530
+ return w ? p instanceof RegExp ? this.walk((y, v) => {
531
+ if (y.type === "decl" && p.test(y.prop)) return w(y, v);
532
+ }) : this.walk((y, v) => {
533
+ if (y.type === "decl" && y.prop === p) return w(y, v);
534
+ }) : (w = p, this.walk((y, v) => {
535
+ if (y.type === "decl") return w(y, v);
536
+ }));
537
+ }
538
+ walkRules(p, w) {
539
+ return w ? p instanceof RegExp ? this.walk((y, v) => {
540
+ if (y.type === "rule" && p.test(y.selector)) return w(y, v);
541
+ }) : this.walk((y, v) => {
542
+ if (y.type === "rule" && y.selector === p) return w(y, v);
543
+ }) : (w = p, this.walk((y, v) => {
544
+ if (y.type === "rule") return w(y, v);
545
+ }));
546
+ }
547
+ get first() {
548
+ if (this.proxyOf.nodes) return this.proxyOf.nodes[0];
549
+ }
550
+ get last() {
551
+ if (this.proxyOf.nodes) return this.proxyOf.nodes[this.proxyOf.nodes.length - 1];
552
+ }
553
+ };
554
+ h.registerParse = (d) => {
555
+ u = d;
556
+ }, h.registerRule = (d) => {
557
+ m = d;
558
+ }, h.registerAtRule = (d) => {
559
+ s = d;
560
+ }, h.registerRoot = (d) => {
561
+ n = d;
562
+ }, r.exports = h, h.default = h, h.rebuild = (d) => {
563
+ d.type === "atrule" ? Object.setPrototypeOf(d, s.prototype) : d.type === "rule" ? Object.setPrototypeOf(d, m.prototype) : d.type === "decl" ? Object.setPrototypeOf(d, l.prototype) : d.type === "comment" ? Object.setPrototypeOf(d, a.prototype) : d.type === "root" && Object.setPrototypeOf(d, n.prototype), d[i] = !0, d.nodes && d.nodes.forEach((p) => {
564
+ h.rebuild(p);
565
+ });
566
+ };
567
+ }), yt = _((e, r) => {
568
+ var o = /[\t\n\f\r "#'()/;[\\\]{}]/g, i = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, l = /.[\r\n"'(/\\]/, a = /[\da-f]/i;
569
+ r.exports = function(c, u = {}) {
570
+ let m = c.css.valueOf(), s = u.ignoreErrors, n, t, f, h, d, p, w, y, v, g, O = m.length, b = 0, x = [], k = [];
571
+ function T() {
572
+ return b;
573
+ }
574
+ function E(R) {
575
+ throw c.error("Unclosed " + R, b);
576
+ }
577
+ function j() {
578
+ return k.length === 0 && b >= O;
579
+ }
580
+ function $(R) {
581
+ if (k.length) return k.pop();
582
+ if (b >= O) return;
583
+ let M = R ? R.ignoreUnclosed : !1;
584
+ switch (n = m.charCodeAt(b), n) {
585
+ case 10:
586
+ case 32:
587
+ case 9:
588
+ case 13:
589
+ case 12: {
590
+ t = b;
591
+ do
592
+ t += 1, n = m.charCodeAt(t);
593
+ while (n === 32 || n === 10 || n === 9 || n === 13 || n === 12);
594
+ g = ["space", m.slice(b, t)], b = t - 1;
595
+ break;
596
+ }
597
+ case 91:
598
+ case 93:
599
+ case 123:
600
+ case 125:
601
+ case 58:
602
+ case 59:
603
+ case 41: {
604
+ let P = String.fromCharCode(n);
605
+ g = [P, P, b];
606
+ break;
607
+ }
608
+ case 40: {
609
+ if (y = x.length ? x.pop()[1] : "", v = m.charCodeAt(b + 1), y === "url" && v !== 39 && v !== 34 && v !== 32 && v !== 10 && v !== 9 && v !== 12 && v !== 13) {
610
+ t = b;
611
+ do {
612
+ if (p = !1, t = m.indexOf(")", t + 1), t === -1) if (s || M) {
613
+ t = b;
614
+ break;
615
+ } else E("bracket");
616
+ for (w = t; m.charCodeAt(w - 1) === 92; ) w -= 1, p = !p;
617
+ } while (p);
618
+ g = ["brackets", m.slice(b, t + 1), b, t], b = t;
619
+ } else t = m.indexOf(")", b + 1), h = m.slice(b, t + 1), t === -1 || l.test(h) ? g = ["(", "(", b] : (g = ["brackets", h, b, t], b = t);
620
+ break;
621
+ }
622
+ case 39:
623
+ case 34: {
624
+ f = n === 39 ? "'" : '"', t = b;
625
+ do {
626
+ if (p = !1, t = m.indexOf(f, t + 1), t === -1) if (s || M) {
627
+ t = b + 1;
628
+ break;
629
+ } else E("string");
630
+ for (w = t; m.charCodeAt(w - 1) === 92; ) w -= 1, p = !p;
631
+ } while (p);
632
+ g = ["string", m.slice(b, t + 1), b, t], b = t;
633
+ break;
634
+ }
635
+ case 64: {
636
+ o.lastIndex = b + 1, o.test(m), o.lastIndex === 0 ? t = m.length - 1 : t = o.lastIndex - 2, g = ["at-word", m.slice(b, t + 1), b, t], b = t;
637
+ break;
638
+ }
639
+ case 92: {
640
+ for (t = b, d = !0; m.charCodeAt(t + 1) === 92; ) t += 1, d = !d;
641
+ if (n = m.charCodeAt(t + 1), d && n !== 47 && n !== 32 && n !== 10 && n !== 9 && n !== 13 && n !== 12 && (t += 1, a.test(m.charAt(t)))) {
642
+ for (; a.test(m.charAt(t + 1)); ) t += 1;
643
+ m.charCodeAt(t + 1) === 32 && (t += 1);
644
+ }
645
+ g = ["word", m.slice(b, t + 1), b, t], b = t;
646
+ break;
647
+ }
648
+ default: {
649
+ n === 47 && m.charCodeAt(b + 1) === 42 ? (t = m.indexOf("*/", b + 2) + 1, t === 0 && (s || M ? t = m.length : E("comment")), g = ["comment", m.slice(b, t + 1), b, t], b = t) : (i.lastIndex = b + 1, i.test(m), i.lastIndex === 0 ? t = m.length - 1 : t = i.lastIndex - 2, g = ["word", m.slice(b, t + 1), b, t], x.push(g), b = t);
650
+ break;
651
+ }
652
+ }
653
+ return b++, g;
654
+ }
655
+ function L(R) {
656
+ k.push(R);
657
+ }
658
+ return { back: L, endOfFile: j, nextToken: $, position: T };
659
+ };
660
+ }), gt = _((e, r) => {
661
+ var o = ue(), i = class extends o {
662
+ constructor(l) {
663
+ super(l), this.type = "atrule";
664
+ }
665
+ append(...l) {
666
+ return this.proxyOf.nodes || (this.nodes = []), super.append(...l);
667
+ }
668
+ prepend(...l) {
669
+ return this.proxyOf.nodes || (this.nodes = []), super.prepend(...l);
670
+ }
671
+ };
672
+ r.exports = i, i.default = i, o.registerAtRule(i);
673
+ }), Pe = _((e, r) => {
674
+ var o = ue(), i, l, a = class extends o {
675
+ constructor(c) {
676
+ super(c), this.type = "root", this.nodes || (this.nodes = []);
677
+ }
678
+ normalize(c, u, m) {
679
+ let s = super.normalize(c);
680
+ if (u) {
681
+ if (m === "prepend") this.nodes.length > 1 ? u.raws.before = this.nodes[1].raws.before : delete u.raws.before;
682
+ else if (this.first !== u) for (let n of s) n.raws.before = u.raws.before;
683
+ }
684
+ return s;
685
+ }
686
+ removeChild(c, u) {
687
+ let m = this.index(c);
688
+ return !u && m === 0 && this.nodes.length > 1 && (this.nodes[1].raws.before = this.nodes[m].raws.before), super.removeChild(c);
689
+ }
690
+ toResult(c = {}) {
691
+ return new i(new l(), this, c).stringify();
692
+ }
693
+ };
694
+ a.registerLazyResult = (c) => {
695
+ i = c;
696
+ }, a.registerProcessor = (c) => {
697
+ l = c;
698
+ }, r.exports = a, a.default = a, o.registerRoot(a);
699
+ }), Kt = _((e, r) => {
700
+ var o = { comma(i) {
701
+ return o.split(i, [","], !0);
702
+ }, space(i) {
703
+ let l = [" ", `
704
+ `, " "];
705
+ return o.split(i, l);
706
+ }, split(i, l, a) {
707
+ let c = [], u = "", m = !1, s = 0, n = !1, t = "", f = !1;
708
+ for (let h of i) f ? f = !1 : h === "\\" ? f = !0 : n ? h === t && (n = !1) : h === '"' || h === "'" ? (n = !0, t = h) : h === "(" ? s += 1 : h === ")" ? s > 0 && (s -= 1) : s === 0 && l.includes(h) && (m = !0), m ? (u !== "" && c.push(u.trim()), u = "", m = !1) : u += h;
709
+ return (a || u !== "") && c.push(u.trim()), c;
710
+ } };
711
+ r.exports = o, o.default = o;
712
+ }), wt = _((e, r) => {
713
+ var o = ue(), i = Kt(), l = class extends o {
714
+ constructor(a) {
715
+ super(a), this.type = "rule", this.nodes || (this.nodes = []);
716
+ }
717
+ get selectors() {
718
+ return i.comma(this.selector);
719
+ }
720
+ set selectors(a) {
721
+ let c = this.selector ? this.selector.match(/,\s*/) : null, u = c ? c[0] : "," + this.raw("between", "beforeOpen");
722
+ this.selector = a.join(u);
723
+ }
724
+ };
725
+ r.exports = l, l.default = l, o.registerRule(l);
726
+ }), bt = _((e, r) => {
727
+ var o = Ze(), i = yt(), l = Ie(), a = gt(), c = Pe(), u = wt(), m = { empty: !0, space: !0 };
728
+ function s(t) {
729
+ for (let f = t.length - 1; f >= 0; f--) {
730
+ let h = t[f], d = h[3] || h[2];
731
+ if (d) return d;
732
+ }
733
+ }
734
+ var n = class {
735
+ constructor(t) {
736
+ this.input = t, this.root = new c(), this.current = this.root, this.spaces = "", this.semicolon = !1, this.createTokenizer(), this.root.source = { input: t, start: { column: 1, line: 1, offset: 0 } };
737
+ }
738
+ atrule(t) {
739
+ let f = new a();
740
+ f.name = t[1].slice(1), f.name === "" && this.unnamedAtrule(f, t), this.init(f, t[2]);
741
+ let h, d, p, w = !1, y = !1, v = [], g = [];
742
+ for (; !this.tokenizer.endOfFile(); ) {
743
+ if (t = this.tokenizer.nextToken(), h = t[0], h === "(" || h === "[" ? g.push(h === "(" ? ")" : "]") : h === "{" && g.length > 0 ? g.push("}") : h === g[g.length - 1] && g.pop(), g.length === 0) if (h === ";") {
744
+ f.source.end = this.getPosition(t[2]), f.source.end.offset++, this.semicolon = !0;
745
+ break;
746
+ } else if (h === "{") {
747
+ y = !0;
748
+ break;
749
+ } else if (h === "}") {
750
+ if (v.length > 0) {
751
+ for (p = v.length - 1, d = v[p]; d && d[0] === "space"; ) d = v[--p];
752
+ d && (f.source.end = this.getPosition(d[3] || d[2]), f.source.end.offset++);
753
+ }
754
+ this.end(t);
755
+ break;
756
+ } else v.push(t);
757
+ else v.push(t);
758
+ if (this.tokenizer.endOfFile()) {
759
+ w = !0;
760
+ break;
761
+ }
762
+ }
763
+ f.raws.between = this.spacesAndCommentsFromEnd(v), v.length ? (f.raws.afterName = this.spacesAndCommentsFromStart(v), this.raw(f, "params", v), w && (t = v[v.length - 1], f.source.end = this.getPosition(t[3] || t[2]), f.source.end.offset++, this.spaces = f.raws.between, f.raws.between = "")) : (f.raws.afterName = "", f.params = ""), y && (f.nodes = [], this.current = f);
764
+ }
765
+ checkMissedSemicolon(t) {
766
+ let f = this.colon(t);
767
+ if (f === !1) return;
768
+ let h = 0, d;
769
+ for (let p = f - 1; p >= 0 && (d = t[p], !(d[0] !== "space" && (h += 1, h === 2))); p--) ;
770
+ throw this.input.error("Missed semicolon", d[0] === "word" ? d[3] + 1 : d[2]);
771
+ }
772
+ colon(t) {
773
+ let f = 0, h, d, p;
774
+ for (let [w, y] of t.entries()) {
775
+ if (h = y, d = h[0], d === "(" && (f += 1), d === ")" && (f -= 1), f === 0 && d === ":") if (!p) this.doubleColon(h);
776
+ else {
777
+ if (p[0] === "word" && p[1] === "progid") continue;
778
+ return w;
779
+ }
780
+ p = h;
781
+ }
782
+ return !1;
783
+ }
784
+ comment(t) {
785
+ let f = new l();
786
+ this.init(f, t[2]), f.source.end = this.getPosition(t[3] || t[2]), f.source.end.offset++;
787
+ let h = t[1].slice(2, -2);
788
+ if (/^\s*$/.test(h)) f.text = "", f.raws.left = h, f.raws.right = "";
789
+ else {
790
+ let d = h.match(/^(\s*)([^]*\S)(\s*)$/);
791
+ f.text = d[2], f.raws.left = d[1], f.raws.right = d[3];
792
+ }
793
+ }
794
+ createTokenizer() {
795
+ this.tokenizer = i(this.input);
796
+ }
797
+ decl(t, f) {
798
+ let h = new o();
799
+ this.init(h, t[0][2]);
800
+ let d = t[t.length - 1];
801
+ for (d[0] === ";" && (this.semicolon = !0, t.pop()), h.source.end = this.getPosition(d[3] || d[2] || s(t)), h.source.end.offset++; t[0][0] !== "word"; ) t.length === 1 && this.unknownWord(t), h.raws.before += t.shift()[1];
802
+ for (h.source.start = this.getPosition(t[0][2]), h.prop = ""; t.length; ) {
803
+ let v = t[0][0];
804
+ if (v === ":" || v === "space" || v === "comment") break;
805
+ h.prop += t.shift()[1];
806
+ }
807
+ h.raws.between = "";
808
+ let p;
809
+ for (; t.length; ) if (p = t.shift(), p[0] === ":") {
810
+ h.raws.between += p[1];
811
+ break;
812
+ } else p[0] === "word" && /\w/.test(p[1]) && this.unknownWord([p]), h.raws.between += p[1];
813
+ (h.prop[0] === "_" || h.prop[0] === "*") && (h.raws.before += h.prop[0], h.prop = h.prop.slice(1));
814
+ let w = [], y;
815
+ for (; t.length && (y = t[0][0], !(y !== "space" && y !== "comment")); ) w.push(t.shift());
816
+ this.precheckMissedSemicolon(t);
817
+ for (let v = t.length - 1; v >= 0; v--) {
818
+ if (p = t[v], p[1].toLowerCase() === "!important") {
819
+ h.important = !0;
820
+ let g = this.stringFrom(t, v);
821
+ g = this.spacesFromEnd(t) + g, g !== " !important" && (h.raws.important = g);
822
+ break;
823
+ } else if (p[1].toLowerCase() === "important") {
824
+ let g = t.slice(0), O = "";
825
+ for (let b = v; b > 0; b--) {
826
+ let x = g[b][0];
827
+ if (O.trim().indexOf("!") === 0 && x !== "space") break;
828
+ O = g.pop()[1] + O;
829
+ }
830
+ O.trim().indexOf("!") === 0 && (h.important = !0, h.raws.important = O, t = g);
831
+ }
832
+ if (p[0] !== "space" && p[0] !== "comment") break;
833
+ }
834
+ t.some((v) => v[0] !== "space" && v[0] !== "comment") && (h.raws.between += w.map((v) => v[1]).join(""), w = []), this.raw(h, "value", w.concat(t), f), h.value.includes(":") && !f && this.checkMissedSemicolon(t);
835
+ }
836
+ doubleColon(t) {
837
+ throw this.input.error("Double colon", { offset: t[2] }, { offset: t[2] + t[1].length });
838
+ }
839
+ emptyRule(t) {
840
+ let f = new u();
841
+ this.init(f, t[2]), f.selector = "", f.raws.between = "", this.current = f;
842
+ }
843
+ end(t) {
844
+ this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.semicolon = !1, this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.spaces = "", this.current.parent ? (this.current.source.end = this.getPosition(t[2]), this.current.source.end.offset++, this.current = this.current.parent) : this.unexpectedClose(t);
845
+ }
846
+ endFile() {
847
+ this.current.parent && this.unclosedBlock(), this.current.nodes && this.current.nodes.length && (this.current.raws.semicolon = this.semicolon), this.current.raws.after = (this.current.raws.after || "") + this.spaces, this.root.source.end = this.getPosition(this.tokenizer.position());
848
+ }
849
+ freeSemicolon(t) {
850
+ if (this.spaces += t[1], this.current.nodes) {
851
+ let f = this.current.nodes[this.current.nodes.length - 1];
852
+ f && f.type === "rule" && !f.raws.ownSemicolon && (f.raws.ownSemicolon = this.spaces, this.spaces = "");
853
+ }
854
+ }
855
+ getPosition(t) {
856
+ let f = this.input.fromOffset(t);
857
+ return { column: f.col, line: f.line, offset: t };
858
+ }
859
+ init(t, f) {
860
+ this.current.push(t), t.source = { input: this.input, start: this.getPosition(f) }, t.raws.before = this.spaces, this.spaces = "", t.type !== "comment" && (this.semicolon = !1);
861
+ }
862
+ other(t) {
863
+ let f = !1, h = null, d = !1, p = null, w = [], y = t[1].startsWith("--"), v = [], g = t;
864
+ for (; g; ) {
865
+ if (h = g[0], v.push(g), h === "(" || h === "[") p || (p = g), w.push(h === "(" ? ")" : "]");
866
+ else if (y && d && h === "{") p || (p = g), w.push("}");
867
+ else if (w.length === 0) if (h === ";") if (d) {
868
+ this.decl(v, y);
869
+ return;
870
+ } else break;
871
+ else if (h === "{") {
872
+ this.rule(v);
873
+ return;
874
+ } else if (h === "}") {
875
+ this.tokenizer.back(v.pop()), f = !0;
876
+ break;
877
+ } else h === ":" && (d = !0);
878
+ else h === w[w.length - 1] && (w.pop(), w.length === 0 && (p = null));
879
+ g = this.tokenizer.nextToken();
880
+ }
881
+ if (this.tokenizer.endOfFile() && (f = !0), w.length > 0 && this.unclosedBracket(p), f && d) {
882
+ if (!y) for (; v.length && (g = v[v.length - 1][0], !(g !== "space" && g !== "comment")); ) this.tokenizer.back(v.pop());
883
+ this.decl(v, y);
884
+ } else this.unknownWord(v);
885
+ }
886
+ parse() {
887
+ let t;
888
+ for (; !this.tokenizer.endOfFile(); ) switch (t = this.tokenizer.nextToken(), t[0]) {
889
+ case "space":
890
+ this.spaces += t[1];
891
+ break;
892
+ case ";":
893
+ this.freeSemicolon(t);
894
+ break;
895
+ case "}":
896
+ this.end(t);
897
+ break;
898
+ case "comment":
899
+ this.comment(t);
900
+ break;
901
+ case "at-word":
902
+ this.atrule(t);
903
+ break;
904
+ case "{":
905
+ this.emptyRule(t);
906
+ break;
907
+ default:
908
+ this.other(t);
909
+ break;
910
+ }
911
+ this.endFile();
912
+ }
913
+ precheckMissedSemicolon() {
914
+ }
915
+ raw(t, f, h, d) {
916
+ let p, w, y = h.length, v = "", g = !0, O, b;
917
+ for (let x = 0; x < y; x += 1) p = h[x], w = p[0], w === "space" && x === y - 1 && !d ? g = !1 : w === "comment" ? (b = h[x - 1] ? h[x - 1][0] : "empty", O = h[x + 1] ? h[x + 1][0] : "empty", !m[b] && !m[O] ? v.slice(-1) === "," ? g = !1 : v += p[1] : g = !1) : v += p[1];
918
+ if (!g) {
919
+ let x = h.reduce((k, T) => k + T[1], "");
920
+ t.raws[f] = { raw: x, value: v };
921
+ }
922
+ t[f] = v;
923
+ }
924
+ rule(t) {
925
+ t.pop();
926
+ let f = new u();
927
+ this.init(f, t[0][2]), f.raws.between = this.spacesAndCommentsFromEnd(t), this.raw(f, "selector", t), this.current = f;
928
+ }
929
+ spacesAndCommentsFromEnd(t) {
930
+ let f, h = "";
931
+ for (; t.length && (f = t[t.length - 1][0], !(f !== "space" && f !== "comment")); ) h = t.pop()[1] + h;
932
+ return h;
933
+ }
934
+ spacesAndCommentsFromStart(t) {
935
+ let f, h = "";
936
+ for (; t.length && (f = t[0][0], !(f !== "space" && f !== "comment")); ) h += t.shift()[1];
937
+ return h;
938
+ }
939
+ spacesFromEnd(t) {
940
+ let f, h = "";
941
+ for (; t.length && (f = t[t.length - 1][0], f === "space"); ) h = t.pop()[1] + h;
942
+ return h;
943
+ }
944
+ stringFrom(t, f) {
945
+ let h = "";
946
+ for (let d = f; d < t.length; d++) h += t[d][1];
947
+ return t.splice(f, t.length - f), h;
948
+ }
949
+ unclosedBlock() {
950
+ let t = this.current.source.start;
951
+ throw this.input.error("Unclosed block", t.line, t.column);
952
+ }
953
+ unclosedBracket(t) {
954
+ throw this.input.error("Unclosed bracket", { offset: t[2] }, { offset: t[2] + 1 });
955
+ }
956
+ unexpectedClose(t) {
957
+ throw this.input.error("Unexpected }", { offset: t[2] }, { offset: t[2] + 1 });
958
+ }
959
+ unknownWord(t) {
960
+ throw this.input.error("Unknown word", { offset: t[0][2] }, { offset: t[0][2] + t[0][1].length });
961
+ }
962
+ unnamedAtrule(t, f) {
963
+ throw this.input.error("At-rule without name", { offset: f[2] }, { offset: f[2] + f[1].length });
964
+ }
965
+ };
966
+ r.exports = n;
967
+ }), nn = _(() => {
968
+ }), sn = _((e, r) => {
969
+ var o = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", i = (a, c = 21) => (u = c) => {
970
+ let m = "", s = u;
971
+ for (; s--; ) m += a[Math.random() * a.length | 0];
972
+ return m;
973
+ }, l = (a = 21) => {
974
+ let c = "", u = a;
975
+ for (; u--; ) c += o[Math.random() * 64 | 0];
976
+ return c;
977
+ };
978
+ r.exports = { nanoid: l, customAlphabet: i };
979
+ }), Zt = _((e, r) => {
980
+ r.exports = class {
981
+ };
982
+ }), Me = _((e, r) => {
983
+ var { SourceMapConsumer: o, SourceMapGenerator: i } = nn(), { fileURLToPath: l, pathToFileURL: a } = {}, { isAbsolute: c, resolve: u } = {}, { nanoid: m } = sn(), s = Ht(), n = mt(), t = Zt(), f = Symbol("fromOffsetCache"), h = !!(o && i), d = !!(u && c), p = class {
984
+ constructor(w, y = {}) {
985
+ if (w === null || typeof w > "u" || typeof w == "object" && !w.toString) throw new Error(`PostCSS received ${w} instead of CSS string`);
986
+ if (this.css = w.toString(), this.css[0] === "\uFEFF" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, y.from && (!d || /^\w+:\/\//.test(y.from) || c(y.from) ? this.file = y.from : this.file = u(y.from)), d && h) {
987
+ let v = new t(this.css, y);
988
+ if (v.text) {
989
+ this.map = v;
990
+ let g = v.consumer().file;
991
+ !this.file && g && (this.file = this.mapResolve(g));
992
+ }
993
+ }
994
+ this.file || (this.id = "<input css " + m(6) + ">"), this.map && (this.map.file = this.from);
995
+ }
996
+ error(w, y, v, g = {}) {
997
+ let O, b, x;
998
+ if (y && typeof y == "object") {
999
+ let T = y, E = v;
1000
+ if (typeof T.offset == "number") {
1001
+ let j = this.fromOffset(T.offset);
1002
+ y = j.line, v = j.col;
1003
+ } else y = T.line, v = T.column;
1004
+ if (typeof E.offset == "number") {
1005
+ let j = this.fromOffset(E.offset);
1006
+ b = j.line, x = j.col;
1007
+ } else b = E.line, x = E.column;
1008
+ } else if (!v) {
1009
+ let T = this.fromOffset(y);
1010
+ y = T.line, v = T.col;
1011
+ }
1012
+ let k = this.origin(y, v, b, x);
1013
+ return k ? O = new n(w, k.endLine === void 0 ? k.line : { column: k.column, line: k.line }, k.endLine === void 0 ? k.column : { column: k.endColumn, line: k.endLine }, k.source, k.file, g.plugin) : O = new n(w, b === void 0 ? y : { column: v, line: y }, b === void 0 ? v : { column: x, line: b }, this.css, this.file, g.plugin), O.input = { column: v, endColumn: x, endLine: b, line: y, source: this.css }, this.file && (a && (O.input.url = a(this.file).toString()), O.input.file = this.file), O;
1014
+ }
1015
+ fromOffset(w) {
1016
+ let y, v;
1017
+ if (this[f]) v = this[f];
1018
+ else {
1019
+ let O = this.css.split(`
1020
+ `);
1021
+ v = new Array(O.length);
1022
+ let b = 0;
1023
+ for (let x = 0, k = O.length; x < k; x++) v[x] = b, b += O[x].length + 1;
1024
+ this[f] = v;
1025
+ }
1026
+ y = v[v.length - 1];
1027
+ let g = 0;
1028
+ if (w >= y) g = v.length - 1;
1029
+ else {
1030
+ let O = v.length - 2, b;
1031
+ for (; g < O; ) if (b = g + (O - g >> 1), w < v[b]) O = b - 1;
1032
+ else if (w >= v[b + 1]) g = b + 1;
1033
+ else {
1034
+ g = b;
1035
+ break;
1036
+ }
1037
+ }
1038
+ return { col: w - v[g] + 1, line: g + 1 };
1039
+ }
1040
+ mapResolve(w) {
1041
+ return /^\w+:\/\//.test(w) ? w : u(this.map.consumer().sourceRoot || this.map.root || ".", w);
1042
+ }
1043
+ origin(w, y, v, g) {
1044
+ if (!this.map) return !1;
1045
+ let O = this.map.consumer(), b = O.originalPositionFor({ column: y, line: w });
1046
+ if (!b.source) return !1;
1047
+ let x;
1048
+ typeof v == "number" && (x = O.originalPositionFor({ column: g, line: v }));
1049
+ let k;
1050
+ c(b.source) ? k = a(b.source) : k = new URL(b.source, this.map.consumer().sourceRoot || a(this.map.mapFile));
1051
+ let T = { column: b.column, endColumn: x && x.column, endLine: x && x.line, line: b.line, url: k.toString() };
1052
+ if (k.protocol === "file:") if (l) T.file = l(k);
1053
+ else throw new Error("file: protocol is not available in this PostCSS build");
1054
+ let E = O.sourceContentFor(b.source);
1055
+ return E && (T.source = E), T;
1056
+ }
1057
+ toJSON() {
1058
+ let w = {};
1059
+ for (let y of ["hasBOM", "css", "file", "id"]) this[y] != null && (w[y] = this[y]);
1060
+ return this.map && (w.map = { ...this.map }, w.map.consumerCache && (w.map.consumerCache = void 0)), w;
1061
+ }
1062
+ get from() {
1063
+ return this.file || this.id;
1064
+ }
1065
+ };
1066
+ r.exports = p, p.default = p, s && s.registerInput && s.registerInput(p);
1067
+ }), Ye = _((e, r) => {
1068
+ var o = ue(), i = bt(), l = Me();
1069
+ function a(c, u) {
1070
+ let m = new l(c, u), s = new i(m);
1071
+ try {
1072
+ s.parse();
1073
+ } catch (n) {
1074
+ throw n;
1075
+ }
1076
+ return s.root;
1077
+ }
1078
+ r.exports = a, a.default = a, o.registerParse(a);
1079
+ }), on = _((e, r) => {
1080
+ var o = yt(), i = Me();
1081
+ r.exports = { isInlineComment(l) {
1082
+ if (l[0] === "word" && l[1].slice(0, 2) === "//") {
1083
+ let a = l, c = [], u, m;
1084
+ for (; l; ) {
1085
+ if (/\r?\n/.test(l[1])) {
1086
+ if (/['"].*\r?\n/.test(l[1])) {
1087
+ c.push(l[1].substring(0, l[1].indexOf(`
1088
+ `))), m = l[1].substring(l[1].indexOf(`
1089
+ `));
1090
+ let n = this.input.css.valueOf().substring(this.tokenizer.position());
1091
+ m += n, u = l[3] + n.length - m.length;
1092
+ } else this.tokenizer.back(l);
1093
+ break;
1094
+ }
1095
+ c.push(l[1]), u = l[2], l = this.tokenizer.nextToken({ ignoreUnclosed: !0 });
1096
+ }
1097
+ let s = ["comment", c.join(""), a[2], u];
1098
+ return this.inlineComment(s), m && (this.input = new i(m), this.tokenizer = o(this.input)), !0;
1099
+ } else if (l[1] === "/") {
1100
+ let a = this.tokenizer.nextToken({ ignoreUnclosed: !0 });
1101
+ if (a[0] === "comment" && /^\/\*/.test(a[1])) return a[0] = "word", a[1] = a[1].slice(1), l[1] = "//", this.tokenizer.back(a), r.exports.isInlineComment.bind(this)(l);
1102
+ }
1103
+ return !1;
1104
+ } };
1105
+ }), an = _((e, r) => {
1106
+ r.exports = { interpolation(o) {
1107
+ let i = [o, this.tokenizer.nextToken()], l = ["word", "}"];
1108
+ if (i[0][1].length > 1 || i[1][0] !== "{") return this.tokenizer.back(i[1]), !1;
1109
+ for (o = this.tokenizer.nextToken(); o && l.includes(o[0]); ) i.push(o), o = this.tokenizer.nextToken();
1110
+ let a = i.map((s) => s[1]), [c] = i, u = i.pop(), m = ["word", a.join(""), c[2], u[2]];
1111
+ return this.tokenizer.back(o), this.tokenizer.back(m), !0;
1112
+ } };
1113
+ }), un = _((e, r) => {
1114
+ var o = /^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/, i = /\.[0-9]/, l = (a) => {
1115
+ let [, c] = a, [u] = c;
1116
+ return (u === "." || u === "#") && o.test(c) === !1 && i.test(c) === !1;
1117
+ };
1118
+ r.exports = { isMixinToken: l };
1119
+ }), ln = _((e, r) => {
1120
+ var o = yt(), i = /^url\((.+)\)/;
1121
+ r.exports = (l) => {
1122
+ let { name: a, params: c = "" } = l;
1123
+ if (a === "import" && c.length) {
1124
+ l.import = !0;
1125
+ let u = o({ css: c });
1126
+ for (l.filename = c.replace(i, "$1"); !u.endOfFile(); ) {
1127
+ let [m, s] = u.nextToken();
1128
+ if (m === "word" && s === "url") return;
1129
+ if (m === "brackets") {
1130
+ l.options = s, l.filename = c.replace(s, "").trim();
1131
+ break;
1132
+ }
1133
+ }
1134
+ }
1135
+ };
1136
+ }), cn = _((e, r) => {
1137
+ var o = /:$/, i = /^:(\s+)?/;
1138
+ r.exports = (l) => {
1139
+ let { name: a, params: c = "" } = l;
1140
+ if (l.name.slice(-1) === ":") {
1141
+ if (o.test(a)) {
1142
+ let [u] = a.match(o);
1143
+ l.name = a.replace(u, ""), l.raws.afterName = u + (l.raws.afterName || ""), l.variable = !0, l.value = l.params;
1144
+ }
1145
+ if (i.test(c)) {
1146
+ let [u] = c.match(i);
1147
+ l.value = c.replace(u, ""), l.raws.afterName = (l.raws.afterName || "") + u, l.variable = !0;
1148
+ }
1149
+ }
1150
+ };
1151
+ }), pn = _((e, r) => {
1152
+ var o = Ie(), i = bt(), { isInlineComment: l } = on(), { interpolation: a } = an(), { isMixinToken: c } = un(), u = ln(), m = cn(), s = /(!\s*important)$/i;
1153
+ r.exports = class extends i {
1154
+ constructor(...n) {
1155
+ super(...n), this.lastNode = null;
1156
+ }
1157
+ atrule(n) {
1158
+ a.bind(this)(n) || (super.atrule(n), u(this.lastNode), m(this.lastNode));
1159
+ }
1160
+ decl(...n) {
1161
+ super.decl(...n), /extend\(.+\)/i.test(this.lastNode.value) && (this.lastNode.extend = !0);
1162
+ }
1163
+ each(n) {
1164
+ n[0][1] = ` ${n[0][1]}`;
1165
+ let t = n.findIndex((p) => p[0] === "("), f = n.reverse().find((p) => p[0] === ")"), h = n.reverse().indexOf(f), d = n.splice(t, h).map((p) => p[1]).join("");
1166
+ for (let p of n.reverse()) this.tokenizer.back(p);
1167
+ this.atrule(this.tokenizer.nextToken()), this.lastNode.function = !0, this.lastNode.params = d;
1168
+ }
1169
+ init(n, t, f) {
1170
+ super.init(n, t, f), this.lastNode = n;
1171
+ }
1172
+ inlineComment(n) {
1173
+ let t = new o(), f = n[1].slice(2);
1174
+ if (this.init(t, n[2]), t.source.end = this.getPosition(n[3] || n[2]), t.inline = !0, t.raws.begin = "//", /^\s*$/.test(f)) t.text = "", t.raws.left = f, t.raws.right = "";
1175
+ else {
1176
+ let h = f.match(/^(\s*)([^]*[^\s])(\s*)$/);
1177
+ [, t.raws.left, t.text, t.raws.right] = h;
1178
+ }
1179
+ }
1180
+ mixin(n) {
1181
+ let [t] = n, f = t[1].slice(0, 1), h = n.findIndex((v) => v[0] === "brackets"), d = n.findIndex((v) => v[0] === "("), p = "";
1182
+ if ((h < 0 || h > 3) && d > 0) {
1183
+ let v = n.reduce(($, L, R) => L[0] === ")" ? R : $), g = n.slice(d, v + d).map(($) => $[1]).join(""), [O] = n.slice(d), b = [O[2], O[3]], [x] = n.slice(v, v + 1), k = [x[2], x[3]], T = ["brackets", g].concat(b, k), E = n.slice(0, d), j = n.slice(v + 1);
1184
+ n = E, n.push(T), n = n.concat(j);
1185
+ }
1186
+ let w = [];
1187
+ for (let v of n) if ((v[1] === "!" || w.length) && w.push(v), v[1] === "important") break;
1188
+ if (w.length) {
1189
+ let [v] = w, g = n.indexOf(v), O = w[w.length - 1], b = [v[2], v[3]], x = [O[4], O[5]], k = ["word", w.map((T) => T[1]).join("")].concat(b, x);
1190
+ n.splice(g, w.length, k);
1191
+ }
1192
+ let y = n.findIndex((v) => s.test(v[1]));
1193
+ y > 0 && ([, p] = n[y], n.splice(y, 1));
1194
+ for (let v of n.reverse()) this.tokenizer.back(v);
1195
+ this.atrule(this.tokenizer.nextToken()), this.lastNode.mixin = !0, this.lastNode.raws.identifier = f, p && (this.lastNode.important = !0, this.lastNode.raws.important = p);
1196
+ }
1197
+ other(n) {
1198
+ l.bind(this)(n) || super.other(n);
1199
+ }
1200
+ rule(n) {
1201
+ let t = n[n.length - 1], f = n[n.length - 2];
1202
+ if (f[0] === "at-word" && t[0] === "{" && (this.tokenizer.back(t), a.bind(this)(f))) {
1203
+ let h = this.tokenizer.nextToken();
1204
+ n = n.slice(0, n.length - 2).concat([h]);
1205
+ for (let d of n.reverse()) this.tokenizer.back(d);
1206
+ return;
1207
+ }
1208
+ super.rule(n), /:extend\(.+\)/i.test(this.lastNode.selector) && (this.lastNode.extend = !0);
1209
+ }
1210
+ unknownWord(n) {
1211
+ let [t] = n;
1212
+ if (n[0][1] === "each" && n[1][0] === "(") {
1213
+ this.each(n);
1214
+ return;
1215
+ }
1216
+ if (c(t)) {
1217
+ this.mixin(n);
1218
+ return;
1219
+ }
1220
+ super.unknownWord(n);
1221
+ }
1222
+ };
1223
+ }), hn = _((e, r) => {
1224
+ var o = vt();
1225
+ r.exports = class extends o {
1226
+ atrule(i, l) {
1227
+ if (!i.mixin && !i.variable && !i.function) {
1228
+ super.atrule(i, l);
1229
+ return;
1230
+ }
1231
+ let a = `${i.function ? "" : i.raws.identifier || "@"}${i.name}`, c = i.params ? this.rawValue(i, "params") : "", u = i.raws.important || "";
1232
+ if (i.variable && (c = i.value), typeof i.raws.afterName < "u" ? a += i.raws.afterName : c && (a += " "), i.nodes) this.block(i, a + c + u);
1233
+ else {
1234
+ let m = (i.raws.between || "") + u + (l ? ";" : "");
1235
+ this.builder(a + c + m, i);
1236
+ }
1237
+ }
1238
+ comment(i) {
1239
+ if (i.inline) {
1240
+ let l = this.raw(i, "left", "commentLeft"), a = this.raw(i, "right", "commentRight");
1241
+ this.builder(`//${l}${i.text}${a}`, i);
1242
+ } else super.comment(i);
1243
+ }
1244
+ };
1245
+ }), fn = _((e, r) => {
1246
+ var o = Me(), i = pn(), l = hn();
1247
+ r.exports = { parse(a, c) {
1248
+ let u = new o(a, c), m = new i(u);
1249
+ return m.parse(), m.root.walk((s) => {
1250
+ let n = u.css.lastIndexOf(s.source.input.css);
1251
+ if (n === 0) return;
1252
+ if (n + s.source.input.css.length !== u.css.length) throw new Error("Invalid state detected in postcss-less");
1253
+ let t = n + s.source.start.offset, f = u.fromOffset(n + s.source.start.offset);
1254
+ if (s.source.start = { offset: t, line: f.line, column: f.col }, s.source.end) {
1255
+ let h = n + s.source.end.offset, d = u.fromOffset(n + s.source.end.offset);
1256
+ s.source.end = { offset: h, line: d.line, column: d.col };
1257
+ }
1258
+ }), m.root;
1259
+ }, stringify(a, c) {
1260
+ new l(c).stringify(a);
1261
+ }, nodeToString(a) {
1262
+ let c = "";
1263
+ return r.exports.stringify(a, (u) => {
1264
+ c += u;
1265
+ }), c;
1266
+ } };
1267
+ }), Yt = _((e, r) => {
1268
+ r.exports = class {
1269
+ generate() {
1270
+ }
1271
+ };
1272
+ }), xt = _((e, r) => {
1273
+ var o = ue(), i, l, a = class extends o {
1274
+ constructor(c) {
1275
+ super({ type: "document", ...c }), this.nodes || (this.nodes = []);
1276
+ }
1277
+ toResult(c = {}) {
1278
+ return new i(new l(), this, c).stringify();
1279
+ }
1280
+ };
1281
+ a.registerLazyResult = (c) => {
1282
+ i = c;
1283
+ }, a.registerProcessor = (c) => {
1284
+ l = c;
1285
+ }, r.exports = a, a.default = a;
1286
+ }), Xt = _((e, r) => {
1287
+ var o = {};
1288
+ r.exports = function(i) {
1289
+ o[i] || (o[i] = !0, typeof console < "u" && console.warn && console.warn(i));
1290
+ };
1291
+ }), er = _((e, r) => {
1292
+ var o = class {
1293
+ constructor(i, l = {}) {
1294
+ if (this.type = "warning", this.text = i, l.node && l.node.source) {
1295
+ let a = l.node.rangeBy(l);
1296
+ this.line = a.start.line, this.column = a.start.column, this.endLine = a.end.line, this.endColumn = a.end.column;
1297
+ }
1298
+ for (let a in l) this[a] = l[a];
1299
+ }
1300
+ toString() {
1301
+ return this.node ? this.node.error(this.text, { index: this.index, plugin: this.plugin, word: this.word }).message : this.plugin ? this.plugin + ": " + this.text : this.text;
1302
+ }
1303
+ };
1304
+ r.exports = o, o.default = o;
1305
+ }), kt = _((e, r) => {
1306
+ var o = er(), i = class {
1307
+ constructor(l, a, c) {
1308
+ this.processor = l, this.messages = [], this.root = a, this.opts = c, this.css = void 0, this.map = void 0;
1309
+ }
1310
+ toString() {
1311
+ return this.css;
1312
+ }
1313
+ warn(l, a = {}) {
1314
+ a.plugin || this.lastPlugin && this.lastPlugin.postcssPlugin && (a.plugin = this.lastPlugin.postcssPlugin);
1315
+ let c = new o(l, a);
1316
+ return this.messages.push(c), c;
1317
+ }
1318
+ warnings() {
1319
+ return this.messages.filter((l) => l.type === "warning");
1320
+ }
1321
+ get content() {
1322
+ return this.css;
1323
+ }
1324
+ };
1325
+ r.exports = i, i.default = i;
1326
+ }), tr = _((e, r) => {
1327
+ var { isClean: o, my: i } = dt(), l = Yt(), a = Qe(), c = ue(), u = xt();
1328
+ Xt();
1329
+ var m = kt(), s = Ye(), n = Pe(), t = { atrule: "AtRule", comment: "Comment", decl: "Declaration", document: "Document", root: "Root", rule: "Rule" }, f = { AtRule: !0, AtRuleExit: !0, Comment: !0, CommentExit: !0, Declaration: !0, DeclarationExit: !0, Document: !0, DocumentExit: !0, Once: !0, OnceExit: !0, postcssPlugin: !0, prepare: !0, Root: !0, RootExit: !0, Rule: !0, RuleExit: !0 }, h = { Once: !0, postcssPlugin: !0, prepare: !0 }, d = 0;
1330
+ function p(b) {
1331
+ return typeof b == "object" && typeof b.then == "function";
1332
+ }
1333
+ function w(b) {
1334
+ let x = !1, k = t[b.type];
1335
+ return b.type === "decl" ? x = b.prop.toLowerCase() : b.type === "atrule" && (x = b.name.toLowerCase()), x && b.append ? [k, k + "-" + x, d, k + "Exit", k + "Exit-" + x] : x ? [k, k + "-" + x, k + "Exit", k + "Exit-" + x] : b.append ? [k, d, k + "Exit"] : [k, k + "Exit"];
1336
+ }
1337
+ function y(b) {
1338
+ let x;
1339
+ return b.type === "document" ? x = ["Document", d, "DocumentExit"] : b.type === "root" ? x = ["Root", d, "RootExit"] : x = w(b), { eventIndex: 0, events: x, iterator: 0, node: b, visitorIndex: 0, visitors: [] };
1340
+ }
1341
+ function v(b) {
1342
+ return b[o] = !1, b.nodes && b.nodes.forEach((x) => v(x)), b;
1343
+ }
1344
+ var g = {}, O = class rr {
1345
+ constructor(x, k, T) {
1346
+ this.stringified = !1, this.processed = !1;
1347
+ let E;
1348
+ if (typeof k == "object" && k !== null && (k.type === "root" || k.type === "document")) E = v(k);
1349
+ else if (k instanceof rr || k instanceof m) E = v(k.root), k.map && (typeof T.map > "u" && (T.map = {}), T.map.inline || (T.map.inline = !1), T.map.prev = k.map);
1350
+ else {
1351
+ let j = s;
1352
+ T.syntax && (j = T.syntax.parse), T.parser && (j = T.parser), j.parse && (j = j.parse);
1353
+ try {
1354
+ E = j(k, T);
1355
+ } catch ($) {
1356
+ this.processed = !0, this.error = $;
1357
+ }
1358
+ E && !E[i] && c.rebuild(E);
1359
+ }
1360
+ this.result = new m(x, E, T), this.helpers = { ...g, postcss: g, result: this.result }, this.plugins = this.processor.plugins.map((j) => typeof j == "object" && j.prepare ? { ...j, ...j.prepare(this.result) } : j);
1361
+ }
1362
+ async() {
1363
+ return this.error ? Promise.reject(this.error) : this.processed ? Promise.resolve(this.result) : (this.processing || (this.processing = this.runAsync()), this.processing);
1364
+ }
1365
+ catch(x) {
1366
+ return this.async().catch(x);
1367
+ }
1368
+ finally(x) {
1369
+ return this.async().then(x, x);
1370
+ }
1371
+ getAsyncError() {
1372
+ throw new Error("Use process(css).then(cb) to work with async plugins");
1373
+ }
1374
+ handleError(x, k) {
1375
+ let T = this.result.lastPlugin;
1376
+ try {
1377
+ k && k.addToError(x), this.error = x, x.name === "CssSyntaxError" && !x.plugin ? (x.plugin = T.postcssPlugin, x.setMessage()) : T.postcssVersion;
1378
+ } catch (E) {
1379
+ console && console.error && console.error(E);
1380
+ }
1381
+ return x;
1382
+ }
1383
+ prepareVisitors() {
1384
+ this.listeners = {};
1385
+ let x = (k, T, E) => {
1386
+ this.listeners[T] || (this.listeners[T] = []), this.listeners[T].push([k, E]);
1387
+ };
1388
+ for (let k of this.plugins) if (typeof k == "object") for (let T in k) {
1389
+ if (!f[T] && /^[A-Z]/.test(T)) throw new Error(`Unknown event ${T} in ${k.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
1390
+ if (!h[T]) if (typeof k[T] == "object") for (let E in k[T]) E === "*" ? x(k, T, k[T][E]) : x(k, T + "-" + E.toLowerCase(), k[T][E]);
1391
+ else typeof k[T] == "function" && x(k, T, k[T]);
1392
+ }
1393
+ this.hasListener = Object.keys(this.listeners).length > 0;
1394
+ }
1395
+ async runAsync() {
1396
+ this.plugin = 0;
1397
+ for (let x = 0; x < this.plugins.length; x++) {
1398
+ let k = this.plugins[x], T = this.runOnRoot(k);
1399
+ if (p(T)) try {
1400
+ await T;
1401
+ } catch (E) {
1402
+ throw this.handleError(E);
1403
+ }
1404
+ }
1405
+ if (this.prepareVisitors(), this.hasListener) {
1406
+ let x = this.result.root;
1407
+ for (; !x[o]; ) {
1408
+ x[o] = !0;
1409
+ let k = [y(x)];
1410
+ for (; k.length > 0; ) {
1411
+ let T = this.visitTick(k);
1412
+ if (p(T)) try {
1413
+ await T;
1414
+ } catch (E) {
1415
+ let j = k[k.length - 1].node;
1416
+ throw this.handleError(E, j);
1417
+ }
1418
+ }
1419
+ }
1420
+ if (this.listeners.OnceExit) for (let [k, T] of this.listeners.OnceExit) {
1421
+ this.result.lastPlugin = k;
1422
+ try {
1423
+ if (x.type === "document") {
1424
+ let E = x.nodes.map((j) => T(j, this.helpers));
1425
+ await Promise.all(E);
1426
+ } else await T(x, this.helpers);
1427
+ } catch (E) {
1428
+ throw this.handleError(E);
1429
+ }
1430
+ }
1431
+ }
1432
+ return this.processed = !0, this.stringify();
1433
+ }
1434
+ runOnRoot(x) {
1435
+ this.result.lastPlugin = x;
1436
+ try {
1437
+ if (typeof x == "object" && x.Once) {
1438
+ if (this.result.root.type === "document") {
1439
+ let k = this.result.root.nodes.map((T) => x.Once(T, this.helpers));
1440
+ return p(k[0]) ? Promise.all(k) : k;
1441
+ }
1442
+ return x.Once(this.result.root, this.helpers);
1443
+ } else if (typeof x == "function") return x(this.result.root, this.result);
1444
+ } catch (k) {
1445
+ throw this.handleError(k);
1446
+ }
1447
+ }
1448
+ stringify() {
1449
+ if (this.error) throw this.error;
1450
+ if (this.stringified) return this.result;
1451
+ this.stringified = !0, this.sync();
1452
+ let x = this.result.opts, k = a;
1453
+ x.syntax && (k = x.syntax.stringify), x.stringifier && (k = x.stringifier), k.stringify && (k = k.stringify);
1454
+ let T = new l(k, this.result.root, this.result.opts).generate();
1455
+ return this.result.css = T[0], this.result.map = T[1], this.result;
1456
+ }
1457
+ sync() {
1458
+ if (this.error) throw this.error;
1459
+ if (this.processed) return this.result;
1460
+ if (this.processed = !0, this.processing) throw this.getAsyncError();
1461
+ for (let x of this.plugins) {
1462
+ let k = this.runOnRoot(x);
1463
+ if (p(k)) throw this.getAsyncError();
1464
+ }
1465
+ if (this.prepareVisitors(), this.hasListener) {
1466
+ let x = this.result.root;
1467
+ for (; !x[o]; ) x[o] = !0, this.walkSync(x);
1468
+ if (this.listeners.OnceExit) if (x.type === "document") for (let k of x.nodes) this.visitSync(this.listeners.OnceExit, k);
1469
+ else this.visitSync(this.listeners.OnceExit, x);
1470
+ }
1471
+ return this.result;
1472
+ }
1473
+ then(x, k) {
1474
+ return this.async().then(x, k);
1475
+ }
1476
+ toString() {
1477
+ return this.css;
1478
+ }
1479
+ visitSync(x, k) {
1480
+ for (let [T, E] of x) {
1481
+ this.result.lastPlugin = T;
1482
+ let j;
1483
+ try {
1484
+ j = E(k, this.helpers);
1485
+ } catch ($) {
1486
+ throw this.handleError($, k.proxyOf);
1487
+ }
1488
+ if (k.type !== "root" && k.type !== "document" && !k.parent) return !0;
1489
+ if (p(j)) throw this.getAsyncError();
1490
+ }
1491
+ }
1492
+ visitTick(x) {
1493
+ let k = x[x.length - 1], { node: T, visitors: E } = k;
1494
+ if (T.type !== "root" && T.type !== "document" && !T.parent) {
1495
+ x.pop();
1496
+ return;
1497
+ }
1498
+ if (E.length > 0 && k.visitorIndex < E.length) {
1499
+ let [$, L] = E[k.visitorIndex];
1500
+ k.visitorIndex += 1, k.visitorIndex === E.length && (k.visitors = [], k.visitorIndex = 0), this.result.lastPlugin = $;
1501
+ try {
1502
+ return L(T.toProxy(), this.helpers);
1503
+ } catch (R) {
1504
+ throw this.handleError(R, T);
1505
+ }
1506
+ }
1507
+ if (k.iterator !== 0) {
1508
+ let $ = k.iterator, L;
1509
+ for (; L = T.nodes[T.indexes[$]]; ) if (T.indexes[$] += 1, !L[o]) {
1510
+ L[o] = !0, x.push(y(L));
1511
+ return;
1512
+ }
1513
+ k.iterator = 0, delete T.indexes[$];
1514
+ }
1515
+ let j = k.events;
1516
+ for (; k.eventIndex < j.length; ) {
1517
+ let $ = j[k.eventIndex];
1518
+ if (k.eventIndex += 1, $ === d) {
1519
+ T.nodes && T.nodes.length && (T[o] = !0, k.iterator = T.getIterator());
1520
+ return;
1521
+ } else if (this.listeners[$]) {
1522
+ k.visitors = this.listeners[$];
1523
+ return;
1524
+ }
1525
+ }
1526
+ x.pop();
1527
+ }
1528
+ walkSync(x) {
1529
+ x[o] = !0;
1530
+ let k = w(x);
1531
+ for (let T of k) if (T === d) x.nodes && x.each((E) => {
1532
+ E[o] || this.walkSync(E);
1533
+ });
1534
+ else {
1535
+ let E = this.listeners[T];
1536
+ if (E && this.visitSync(E, x.toProxy())) return;
1537
+ }
1538
+ }
1539
+ warnings() {
1540
+ return this.sync().warnings();
1541
+ }
1542
+ get content() {
1543
+ return this.stringify().content;
1544
+ }
1545
+ get css() {
1546
+ return this.stringify().css;
1547
+ }
1548
+ get map() {
1549
+ return this.stringify().map;
1550
+ }
1551
+ get messages() {
1552
+ return this.sync().messages;
1553
+ }
1554
+ get opts() {
1555
+ return this.result.opts;
1556
+ }
1557
+ get processor() {
1558
+ return this.result.processor;
1559
+ }
1560
+ get root() {
1561
+ return this.sync().root;
1562
+ }
1563
+ get [Symbol.toStringTag]() {
1564
+ return "LazyResult";
1565
+ }
1566
+ };
1567
+ O.registerPostcss = (b) => {
1568
+ g = b;
1569
+ }, r.exports = O, O.default = O, n.registerLazyResult(O), u.registerLazyResult(O);
1570
+ }), dn = _((e, r) => {
1571
+ var o = Yt(), i = Qe();
1572
+ Xt();
1573
+ var l = Ye(), a = kt(), c = class {
1574
+ constructor(u, m, s) {
1575
+ m = m.toString(), this.stringified = !1, this._processor = u, this._css = m, this._opts = s, this._map = void 0;
1576
+ let n, t = i;
1577
+ this.result = new a(this._processor, n, this._opts), this.result.css = m;
1578
+ let f = this;
1579
+ Object.defineProperty(this.result, "root", { get() {
1580
+ return f.root;
1581
+ } });
1582
+ let h = new o(t, n, this._opts, m);
1583
+ if (h.isMap()) {
1584
+ let [d, p] = h.generate();
1585
+ d && (this.result.css = d), p && (this.result.map = p);
1586
+ } else h.clearAnnotation(), this.result.css = h.css;
1587
+ }
1588
+ async() {
1589
+ return this.error ? Promise.reject(this.error) : Promise.resolve(this.result);
1590
+ }
1591
+ catch(u) {
1592
+ return this.async().catch(u);
1593
+ }
1594
+ finally(u) {
1595
+ return this.async().then(u, u);
1596
+ }
1597
+ sync() {
1598
+ if (this.error) throw this.error;
1599
+ return this.result;
1600
+ }
1601
+ then(u, m) {
1602
+ return this.async().then(u, m);
1603
+ }
1604
+ toString() {
1605
+ return this._css;
1606
+ }
1607
+ warnings() {
1608
+ return [];
1609
+ }
1610
+ get content() {
1611
+ return this.result.css;
1612
+ }
1613
+ get css() {
1614
+ return this.result.css;
1615
+ }
1616
+ get map() {
1617
+ return this.result.map;
1618
+ }
1619
+ get messages() {
1620
+ return [];
1621
+ }
1622
+ get opts() {
1623
+ return this.result.opts;
1624
+ }
1625
+ get processor() {
1626
+ return this.result.processor;
1627
+ }
1628
+ get root() {
1629
+ if (this._root) return this._root;
1630
+ let u, m = l;
1631
+ try {
1632
+ u = m(this._css, this._opts);
1633
+ } catch (s) {
1634
+ this.error = s;
1635
+ }
1636
+ if (this.error) throw this.error;
1637
+ return this._root = u, u;
1638
+ }
1639
+ get [Symbol.toStringTag]() {
1640
+ return "NoWorkResult";
1641
+ }
1642
+ };
1643
+ r.exports = c, c.default = c;
1644
+ }), mn = _((e, r) => {
1645
+ var o = dn(), i = tr(), l = xt(), a = Pe(), c = class {
1646
+ constructor(u = []) {
1647
+ this.version = "8.4.39", this.plugins = this.normalize(u);
1648
+ }
1649
+ normalize(u) {
1650
+ let m = [];
1651
+ for (let s of u) if (s.postcss === !0 ? s = s() : s.postcss && (s = s.postcss), typeof s == "object" && Array.isArray(s.plugins)) m = m.concat(s.plugins);
1652
+ else if (typeof s == "object" && s.postcssPlugin) m.push(s);
1653
+ else if (typeof s == "function") m.push(s);
1654
+ else if (!(typeof s == "object" && (s.parse || s.stringify))) throw new Error(s + " is not a PostCSS plugin");
1655
+ return m;
1656
+ }
1657
+ process(u, m = {}) {
1658
+ return !this.plugins.length && !m.parser && !m.stringifier && !m.syntax ? new o(this, u, m) : new i(this, u, m);
1659
+ }
1660
+ use(u) {
1661
+ return this.plugins = this.plugins.concat(this.normalize([u])), this;
1662
+ }
1663
+ };
1664
+ r.exports = c, c.default = c, a.registerProcessor(c), l.registerProcessor(c);
1665
+ }), vn = _((e, r) => {
1666
+ var o = Ze(), i = Zt(), l = Ie(), a = gt(), c = Me(), u = Pe(), m = wt();
1667
+ function s(n, t) {
1668
+ if (Array.isArray(n)) return n.map((d) => s(d));
1669
+ let { inputs: f, ...h } = n;
1670
+ if (f) {
1671
+ t = [];
1672
+ for (let d of f) {
1673
+ let p = { ...d, __proto__: c.prototype };
1674
+ p.map && (p.map = { ...p.map, __proto__: i.prototype }), t.push(p);
1675
+ }
1676
+ }
1677
+ if (h.nodes && (h.nodes = n.nodes.map((d) => s(d, t))), h.source) {
1678
+ let { inputId: d, ...p } = h.source;
1679
+ h.source = p, d != null && (h.source.input = t[d]);
1680
+ }
1681
+ if (h.type === "root") return new u(h);
1682
+ if (h.type === "decl") return new o(h);
1683
+ if (h.type === "rule") return new m(h);
1684
+ if (h.type === "comment") return new l(h);
1685
+ if (h.type === "atrule") return new a(h);
1686
+ throw new Error("Unknown node type: " + n.type);
1687
+ }
1688
+ r.exports = s, s.default = s;
1689
+ }), Ot = _((e, r) => {
1690
+ var o = mt(), i = Ze(), l = tr(), a = ue(), c = mn(), u = Qe(), m = vn(), s = xt(), n = er(), t = Ie(), f = gt(), h = kt(), d = Me(), p = Ye(), w = Kt(), y = wt(), v = Pe(), g = Ke();
1691
+ function O(...b) {
1692
+ return b.length === 1 && Array.isArray(b[0]) && (b = b[0]), new c(b);
1693
+ }
1694
+ O.plugin = function(b, x) {
1695
+ let k = !1;
1696
+ function T(...j) {
1697
+ console && console.warn && !k && (k = !0, console.warn(b + `: postcss.plugin was deprecated. Migration guide:
1698
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`));
1699
+ let $ = x(...j);
1700
+ return $.postcssPlugin = b, $.postcssVersion = new c().version, $;
1701
+ }
1702
+ let E;
1703
+ return Object.defineProperty(T, "postcss", { get() {
1704
+ return E || (E = T()), E;
1705
+ } }), T.process = function(j, $, L) {
1706
+ return O([T(L)]).process(j, $);
1707
+ }, T;
1708
+ }, O.stringify = u, O.parse = p, O.fromJSON = m, O.list = w, O.comment = (b) => new t(b), O.atRule = (b) => new f(b), O.decl = (b) => new i(b), O.rule = (b) => new y(b), O.root = (b) => new v(b), O.document = (b) => new s(b), O.CssSyntaxError = o, O.Declaration = i, O.Container = a, O.Processor = c, O.Document = s, O.Comment = t, O.Warning = n, O.AtRule = f, O.Result = h, O.Input = d, O.Rule = y, O.Root = v, O.Node = g, l.registerPostcss(O), r.exports = O, O.default = O;
1709
+ }), yn = _((e, r) => {
1710
+ var { Container: o } = Ot(), i = class extends o {
1711
+ constructor(l) {
1712
+ super(l), this.type = "decl", this.isNested = !0, this.nodes || (this.nodes = []);
1713
+ }
1714
+ };
1715
+ r.exports = i;
1716
+ }), gn = _((e, r) => {
1717
+ var o = /[\t\n\f\r "#'()/;[\\\]{}]/g, i = /[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, l = /.[\r\n"'(/\\]/, a = /[\da-f]/i, c = /[\n\f\r]/g;
1718
+ r.exports = function(u, m = {}) {
1719
+ let s = u.css.valueOf(), n = m.ignoreErrors, t, f, h, d, p, w, y, v, g, O = s.length, b = 0, x = [], k = [], T;
1720
+ function E() {
1721
+ return b;
1722
+ }
1723
+ function j(P) {
1724
+ throw u.error("Unclosed " + P, b);
1725
+ }
1726
+ function $() {
1727
+ return k.length === 0 && b >= O;
1728
+ }
1729
+ function L() {
1730
+ let P = 1, I = !1, U = !1;
1731
+ for (; P > 0; ) f += 1, s.length <= f && j("interpolation"), t = s.charCodeAt(f), v = s.charCodeAt(f + 1), I ? !U && t === I ? (I = !1, U = !1) : t === 92 ? U = !U : U && (U = !1) : t === 39 || t === 34 ? I = t : t === 125 ? P -= 1 : t === 35 && v === 123 && (P += 1);
1732
+ }
1733
+ function R(P) {
1734
+ if (k.length) return k.pop();
1735
+ if (b >= O) return;
1736
+ let I = P ? P.ignoreUnclosed : !1;
1737
+ switch (t = s.charCodeAt(b), t) {
1738
+ case 10:
1739
+ case 32:
1740
+ case 9:
1741
+ case 13:
1742
+ case 12: {
1743
+ f = b;
1744
+ do
1745
+ f += 1, t = s.charCodeAt(f);
1746
+ while (t === 32 || t === 10 || t === 9 || t === 13 || t === 12);
1747
+ g = ["space", s.slice(b, f)], b = f - 1;
1748
+ break;
1749
+ }
1750
+ case 91:
1751
+ case 93:
1752
+ case 123:
1753
+ case 125:
1754
+ case 58:
1755
+ case 59:
1756
+ case 41: {
1757
+ let U = String.fromCharCode(t);
1758
+ g = [U, U, b];
1759
+ break;
1760
+ }
1761
+ case 44: {
1762
+ g = ["word", ",", b, b + 1];
1763
+ break;
1764
+ }
1765
+ case 40: {
1766
+ if (y = x.length ? x.pop()[1] : "", v = s.charCodeAt(b + 1), y === "url" && v !== 39 && v !== 34) {
1767
+ for (T = 1, w = !1, f = b + 1; f <= s.length - 1; ) {
1768
+ if (v = s.charCodeAt(f), v === 92) w = !w;
1769
+ else if (v === 40) T += 1;
1770
+ else if (v === 41 && (T -= 1, T === 0)) break;
1771
+ f += 1;
1772
+ }
1773
+ d = s.slice(b, f + 1), g = ["brackets", d, b, f], b = f;
1774
+ } else f = s.indexOf(")", b + 1), d = s.slice(b, f + 1), f === -1 || l.test(d) ? g = ["(", "(", b] : (g = ["brackets", d, b, f], b = f);
1775
+ break;
1776
+ }
1777
+ case 39:
1778
+ case 34: {
1779
+ for (h = t, f = b, w = !1; f < O && (f++, f === O && j("string"), t = s.charCodeAt(f), v = s.charCodeAt(f + 1), !(!w && t === h)); ) t === 92 ? w = !w : w ? w = !1 : t === 35 && v === 123 && L();
1780
+ g = ["string", s.slice(b, f + 1), b, f], b = f;
1781
+ break;
1782
+ }
1783
+ case 64: {
1784
+ o.lastIndex = b + 1, o.test(s), o.lastIndex === 0 ? f = s.length - 1 : f = o.lastIndex - 2, g = ["at-word", s.slice(b, f + 1), b, f], b = f;
1785
+ break;
1786
+ }
1787
+ case 92: {
1788
+ for (f = b, p = !0; s.charCodeAt(f + 1) === 92; ) f += 1, p = !p;
1789
+ if (t = s.charCodeAt(f + 1), p && t !== 47 && t !== 32 && t !== 10 && t !== 9 && t !== 13 && t !== 12 && (f += 1, a.test(s.charAt(f)))) {
1790
+ for (; a.test(s.charAt(f + 1)); ) f += 1;
1791
+ s.charCodeAt(f + 1) === 32 && (f += 1);
1792
+ }
1793
+ g = ["word", s.slice(b, f + 1), b, f], b = f;
1794
+ break;
1795
+ }
1796
+ default:
1797
+ v = s.charCodeAt(b + 1), t === 35 && v === 123 ? (f = b, L(), d = s.slice(b, f + 1), g = ["word", d, b, f], b = f) : t === 47 && v === 42 ? (f = s.indexOf("*/", b + 2) + 1, f === 0 && (n || I ? f = s.length : j("comment")), g = ["comment", s.slice(b, f + 1), b, f], b = f) : t === 47 && v === 47 ? (c.lastIndex = b + 1, c.test(s), c.lastIndex === 0 ? f = s.length - 1 : f = c.lastIndex - 2, d = s.slice(b, f + 1), g = ["comment", d, b, f, "inline"], b = f) : (i.lastIndex = b + 1, i.test(s), i.lastIndex === 0 ? f = s.length - 1 : f = i.lastIndex - 2, g = ["word", s.slice(b, f + 1), b, f], x.push(g), b = f);
1798
+ break;
1799
+ }
1800
+ return b++, g;
1801
+ }
1802
+ function M(P) {
1803
+ k.push(P);
1804
+ }
1805
+ return { back: M, endOfFile: $, nextToken: R, position: E };
1806
+ };
1807
+ }), wn = _((e, r) => {
1808
+ var { Comment: o } = Ot(), i = bt(), l = yn(), a = gn(), c = class extends i {
1809
+ atrule(u) {
1810
+ let m = u[1], s = u;
1811
+ for (; !this.tokenizer.endOfFile(); ) {
1812
+ let n = this.tokenizer.nextToken();
1813
+ if (n[0] === "word" && n[2] === s[3] + 1) m += n[1], s = n;
1814
+ else {
1815
+ this.tokenizer.back(n);
1816
+ break;
1817
+ }
1818
+ }
1819
+ super.atrule(["at-word", m, u[2], s[3]]);
1820
+ }
1821
+ comment(u) {
1822
+ if (u[4] === "inline") {
1823
+ let m = new o();
1824
+ this.init(m, u[2]), m.raws.inline = !0;
1825
+ let s = this.input.fromOffset(u[3]);
1826
+ m.source.end = { column: s.col, line: s.line, offset: u[3] + 1 };
1827
+ let n = u[1].slice(2);
1828
+ if (/^\s*$/.test(n)) m.text = "", m.raws.left = n, m.raws.right = "";
1829
+ else {
1830
+ let t = n.match(/^(\s*)([^]*\S)(\s*)$/), f = t[2].replace(/(\*\/|\/\*)/g, "*//*");
1831
+ m.text = f, m.raws.left = t[1], m.raws.right = t[3], m.raws.text = t[2];
1832
+ }
1833
+ } else super.comment(u);
1834
+ }
1835
+ createTokenizer() {
1836
+ this.tokenizer = a(this.input);
1837
+ }
1838
+ raw(u, m, s, n) {
1839
+ if (super.raw(u, m, s, n), u.raws[m]) {
1840
+ let t = u.raws[m].raw;
1841
+ u.raws[m].raw = s.reduce((f, h) => {
1842
+ if (h[0] === "comment" && h[4] === "inline") {
1843
+ let d = h[1].slice(2).replace(/(\*\/|\/\*)/g, "*//*");
1844
+ return f + "/*" + d + "*/";
1845
+ } else return f + h[1];
1846
+ }, ""), t !== u.raws[m].raw && (u.raws[m].scss = t);
1847
+ }
1848
+ }
1849
+ rule(u) {
1850
+ let m = !1, s = 0, n = "";
1851
+ for (let t of u) if (m) t[0] !== "comment" && t[0] !== "{" && (n += t[1]);
1852
+ else {
1853
+ if (t[0] === "space" && t[1].includes(`
1854
+ `)) break;
1855
+ t[0] === "(" ? s += 1 : t[0] === ")" ? s -= 1 : s === 0 && t[0] === ":" && (m = !0);
1856
+ }
1857
+ if (!m || n.trim() === "" || /^[#:A-Za-z-]/.test(n)) super.rule(u);
1858
+ else {
1859
+ u.pop();
1860
+ let t = new l();
1861
+ this.init(t, u[0][2]);
1862
+ let f;
1863
+ for (let d = u.length - 1; d >= 0; d--) if (u[d][0] !== "space") {
1864
+ f = u[d];
1865
+ break;
1866
+ }
1867
+ if (f[3]) {
1868
+ let d = this.input.fromOffset(f[3]);
1869
+ t.source.end = { column: d.col, line: d.line, offset: f[3] + 1 };
1870
+ } else {
1871
+ let d = this.input.fromOffset(f[2]);
1872
+ t.source.end = { column: d.col, line: d.line, offset: f[2] + 1 };
1873
+ }
1874
+ for (; u[0][0] !== "word"; ) t.raws.before += u.shift()[1];
1875
+ if (u[0][2]) {
1876
+ let d = this.input.fromOffset(u[0][2]);
1877
+ t.source.start = { column: d.col, line: d.line, offset: u[0][2] };
1878
+ }
1879
+ for (t.prop = ""; u.length; ) {
1880
+ let d = u[0][0];
1881
+ if (d === ":" || d === "space" || d === "comment") break;
1882
+ t.prop += u.shift()[1];
1883
+ }
1884
+ t.raws.between = "";
1885
+ let h;
1886
+ for (; u.length; ) if (h = u.shift(), h[0] === ":") {
1887
+ t.raws.between += h[1];
1888
+ break;
1889
+ } else t.raws.between += h[1];
1890
+ (t.prop[0] === "_" || t.prop[0] === "*") && (t.raws.before += t.prop[0], t.prop = t.prop.slice(1)), t.raws.between += this.spacesAndCommentsFromStart(u), this.precheckMissedSemicolon(u);
1891
+ for (let d = u.length - 1; d > 0; d--) {
1892
+ if (h = u[d], h[1] === "!important") {
1893
+ t.important = !0;
1894
+ let p = this.stringFrom(u, d);
1895
+ p = this.spacesFromEnd(u) + p, p !== " !important" && (t.raws.important = p);
1896
+ break;
1897
+ } else if (h[1] === "important") {
1898
+ let p = u.slice(0), w = "";
1899
+ for (let y = d; y > 0; y--) {
1900
+ let v = p[y][0];
1901
+ if (w.trim().indexOf("!") === 0 && v !== "space") break;
1902
+ w = p.pop()[1] + w;
1903
+ }
1904
+ w.trim().indexOf("!") === 0 && (t.important = !0, t.raws.important = w, u = p);
1905
+ }
1906
+ if (h[0] !== "space" && h[0] !== "comment") break;
1907
+ }
1908
+ this.raw(t, "value", u), t.value.includes(":") && this.checkMissedSemicolon(u), this.current = t;
1909
+ }
1910
+ }
1911
+ };
1912
+ r.exports = c;
1913
+ }), bn = _((e, r) => {
1914
+ var { Input: o } = Ot(), i = wn();
1915
+ r.exports = function(l, a) {
1916
+ let c = new o(l, a), u = new i(c);
1917
+ return u.parse(), u.root;
1918
+ };
1919
+ }), nr = _((e) => {
1920
+ Object.defineProperty(e, "__esModule", { value: !0 });
1921
+ function r(o) {
1922
+ this.after = o.after, this.before = o.before, this.type = o.type, this.value = o.value, this.sourceIndex = o.sourceIndex;
1923
+ }
1924
+ e.default = r;
1925
+ }), sr = _((e) => {
1926
+ Object.defineProperty(e, "__esModule", { value: !0 });
1927
+ var r = nr(), o = i(r);
1928
+ function i(a) {
1929
+ return a && a.__esModule ? a : { default: a };
1930
+ }
1931
+ function l(a) {
1932
+ var c = this;
1933
+ this.constructor(a), this.nodes = a.nodes, this.after === void 0 && (this.after = this.nodes.length > 0 ? this.nodes[this.nodes.length - 1].after : ""), this.before === void 0 && (this.before = this.nodes.length > 0 ? this.nodes[0].before : ""), this.sourceIndex === void 0 && (this.sourceIndex = this.before.length), this.nodes.forEach(function(u) {
1934
+ u.parent = c;
1935
+ });
1936
+ }
1937
+ l.prototype = Object.create(o.default.prototype), l.constructor = o.default, l.prototype.walk = function(a, c) {
1938
+ for (var u = typeof a == "string" || a instanceof RegExp, m = u ? c : a, s = typeof a == "string" ? new RegExp(a) : a, n = 0; n < this.nodes.length; n++) {
1939
+ var t = this.nodes[n], f = u ? s.test(t.type) : !0;
1940
+ if (f && m && m(t, n, this.nodes) === !1 || t.nodes && t.walk(a, c) === !1) return !1;
1941
+ }
1942
+ return !0;
1943
+ }, l.prototype.each = function() {
1944
+ for (var a = arguments.length <= 0 || arguments[0] === void 0 ? function() {
1945
+ } : arguments[0], c = 0; c < this.nodes.length; c++) {
1946
+ var u = this.nodes[c];
1947
+ if (a(u, c, this.nodes) === !1) return !1;
1948
+ }
1949
+ return !0;
1950
+ }, e.default = l;
1951
+ }), xn = _((e) => {
1952
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.parseMediaFeature = c, e.parseMediaQuery = u, e.parseMediaList = m;
1953
+ var r = nr(), o = a(r), i = sr(), l = a(i);
1954
+ function a(s) {
1955
+ return s && s.__esModule ? s : { default: s };
1956
+ }
1957
+ function c(s) {
1958
+ var n = arguments.length <= 1 || arguments[1] === void 0 ? 0 : arguments[1], t = [{ mode: "normal", character: null }], f = [], h = 0, d = "", p = null, w = null, y = n, v = s;
1959
+ s[0] === "(" && s[s.length - 1] === ")" && (v = s.substring(1, s.length - 1), y++);
1960
+ for (var g = 0; g < v.length; g++) {
1961
+ var O = v[g];
1962
+ if ((O === "'" || O === '"') && (t[h].isCalculationEnabled === !0 ? (t.push({ mode: "string", isCalculationEnabled: !1, character: O }), h++) : t[h].mode === "string" && t[h].character === O && v[g - 1] !== "\\" && (t.pop(), h--)), O === "{" ? (t.push({ mode: "interpolation", isCalculationEnabled: !0 }), h++) : O === "}" && (t.pop(), h--), t[h].mode === "normal" && O === ":") {
1963
+ var b = v.substring(g + 1);
1964
+ w = { type: "value", before: /^(\s*)/.exec(b)[1], after: /(\s*)$/.exec(b)[1], value: b.trim() }, w.sourceIndex = w.before.length + g + 1 + y, p = { type: "colon", sourceIndex: g + y, after: w.before, value: ":" };
1965
+ break;
1966
+ }
1967
+ d += O;
1968
+ }
1969
+ return d = { type: "media-feature", before: /^(\s*)/.exec(d)[1], after: /(\s*)$/.exec(d)[1], value: d.trim() }, d.sourceIndex = d.before.length + y, f.push(d), p !== null && (p.before = d.after, f.push(p)), w !== null && f.push(w), f;
1970
+ }
1971
+ function u(s) {
1972
+ var n = arguments.length <= 1 || arguments[1] === void 0 ? 0 : arguments[1], t = [], f = 0, h = !1, d = void 0;
1973
+ function p() {
1974
+ return { before: "", after: "", value: "" };
1975
+ }
1976
+ d = p();
1977
+ for (var w = 0; w < s.length; w++) {
1978
+ var y = s[w];
1979
+ h ? (d.value += y, (y === "{" || y === "(") && f++, (y === ")" || y === "}") && f--) : y.search(/\s/) !== -1 ? d.before += y : (y === "(" && (d.type = "media-feature-expression", f++), d.value = y, d.sourceIndex = n + w, h = !0), h && f === 0 && (y === ")" || w === s.length - 1 || s[w + 1].search(/\s/) !== -1) && (["not", "only", "and"].indexOf(d.value) !== -1 && (d.type = "keyword"), d.type === "media-feature-expression" && (d.nodes = c(d.value, d.sourceIndex)), t.push(Array.isArray(d.nodes) ? new l.default(d) : new o.default(d)), d = p(), h = !1);
1980
+ }
1981
+ for (var v = 0; v < t.length; v++) if (d = t[v], v > 0 && (t[v - 1].after = d.before), d.type === void 0) {
1982
+ if (v > 0) {
1983
+ if (t[v - 1].type === "media-feature-expression") {
1984
+ d.type = "keyword";
1985
+ continue;
1986
+ }
1987
+ if (t[v - 1].value === "not" || t[v - 1].value === "only") {
1988
+ d.type = "media-type";
1989
+ continue;
1990
+ }
1991
+ if (t[v - 1].value === "and") {
1992
+ d.type = "media-feature-expression";
1993
+ continue;
1994
+ }
1995
+ t[v - 1].type === "media-type" && (t[v + 1] ? d.type = t[v + 1].type === "media-feature-expression" ? "keyword" : "media-feature-expression" : d.type = "media-feature-expression");
1996
+ }
1997
+ if (v === 0) {
1998
+ if (!t[v + 1]) {
1999
+ d.type = "media-type";
2000
+ continue;
2001
+ }
2002
+ if (t[v + 1] && (t[v + 1].type === "media-feature-expression" || t[v + 1].type === "keyword")) {
2003
+ d.type = "media-type";
2004
+ continue;
2005
+ }
2006
+ if (t[v + 2]) {
2007
+ if (t[v + 2].type === "media-feature-expression") {
2008
+ d.type = "media-type", t[v + 1].type = "keyword";
2009
+ continue;
2010
+ }
2011
+ if (t[v + 2].type === "keyword") {
2012
+ d.type = "keyword", t[v + 1].type = "media-type";
2013
+ continue;
2014
+ }
2015
+ }
2016
+ if (t[v + 3] && t[v + 3].type === "media-feature-expression") {
2017
+ d.type = "keyword", t[v + 1].type = "media-type", t[v + 2].type = "keyword";
2018
+ continue;
2019
+ }
2020
+ }
2021
+ }
2022
+ return t;
2023
+ }
2024
+ function m(s) {
2025
+ var n = [], t = 0, f = 0, h = /^(\s*)url\s*\(/.exec(s);
2026
+ if (h !== null) {
2027
+ for (var d = h[0].length, p = 1; p > 0; ) {
2028
+ var w = s[d];
2029
+ w === "(" && p++, w === ")" && p--, d++;
2030
+ }
2031
+ n.unshift(new o.default({ type: "url", value: s.substring(0, d).trim(), sourceIndex: h[1].length, before: h[1], after: /^(\s*)/.exec(s.substring(d))[1] })), t = d;
2032
+ }
2033
+ for (var y = t; y < s.length; y++) {
2034
+ var v = s[y];
2035
+ if (v === "(" && f++, v === ")" && f--, f === 0 && v === ",") {
2036
+ var g = s.substring(t, y), O = /^(\s*)/.exec(g)[1];
2037
+ n.push(new l.default({ type: "media-query", value: g.trim(), sourceIndex: t + O.length, nodes: u(g, t), before: O, after: /(\s*)$/.exec(g)[1] })), t = y + 1;
2038
+ }
2039
+ }
2040
+ var b = s.substring(t), x = /^(\s*)/.exec(b)[1];
2041
+ return n.push(new l.default({ type: "media-query", value: b.trim(), sourceIndex: t + x.length, nodes: u(b, t), before: x, after: /(\s*)$/.exec(b)[1] })), n;
2042
+ }
2043
+ }), kn = _((e) => {
2044
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.default = a;
2045
+ var r = sr(), o = l(r), i = xn();
2046
+ function l(c) {
2047
+ return c && c.__esModule ? c : { default: c };
2048
+ }
2049
+ function a(c) {
2050
+ return new o.default({ nodes: (0, i.parseMediaList)(c), type: "media-query-list", value: c.trim() });
2051
+ }
2052
+ }), or = _((e, r) => {
2053
+ r.exports = function(o, i) {
2054
+ if (i = typeof i == "number" ? i : 1 / 0, !i) return Array.isArray(o) ? o.map(function(a) {
2055
+ return a;
2056
+ }) : o;
2057
+ return l(o, 1);
2058
+ function l(a, c) {
2059
+ return a.reduce(function(u, m) {
2060
+ return Array.isArray(m) && c < i ? u.concat(l(m, c + 1)) : u.concat(m);
2061
+ }, []);
2062
+ }
2063
+ };
2064
+ }), ir = _((e, r) => {
2065
+ r.exports = function(o, i) {
2066
+ for (var l = -1, a = []; (l = o.indexOf(i, l + 1)) !== -1; ) a.push(l);
2067
+ return a;
2068
+ };
2069
+ }), ar = _((e, r) => {
2070
+ function o(a, c) {
2071
+ for (var u = 1, m = a.length, s = a[0], n = a[0], t = 1; t < m; ++t) if (n = s, s = a[t], c(s, n)) {
2072
+ if (t === u) {
2073
+ u++;
2074
+ continue;
2075
+ }
2076
+ a[u++] = s;
2077
+ }
2078
+ return a.length = u, a;
2079
+ }
2080
+ function i(a) {
2081
+ for (var c = 1, u = a.length, m = a[0], s = a[0], n = 1; n < u; ++n, s = m) if (s = m, m = a[n], m !== s) {
2082
+ if (n === c) {
2083
+ c++;
2084
+ continue;
2085
+ }
2086
+ a[c++] = m;
2087
+ }
2088
+ return a.length = c, a;
2089
+ }
2090
+ function l(a, c, u) {
2091
+ return a.length === 0 ? a : c ? (u || a.sort(c), o(a, c)) : (u || a.sort(), i(a));
2092
+ }
2093
+ r.exports = l;
2094
+ }), be = _((e, r) => {
2095
+ e.__esModule = !0;
2096
+ var o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(c) {
2097
+ return typeof c;
2098
+ } : function(c) {
2099
+ return c && typeof Symbol == "function" && c.constructor === Symbol && c !== Symbol.prototype ? "symbol" : typeof c;
2100
+ };
2101
+ function i(c, u) {
2102
+ if (!(c instanceof u)) throw new TypeError("Cannot call a class as a function");
2103
+ }
2104
+ var l = function c(u, m) {
2105
+ if ((typeof u > "u" ? "undefined" : o(u)) !== "object") return u;
2106
+ var s = new u.constructor();
2107
+ for (var n in u) if (u.hasOwnProperty(n)) {
2108
+ var t = u[n], f = typeof t > "u" ? "undefined" : o(t);
2109
+ n === "parent" && f === "object" ? m && (s[n] = m) : t instanceof Array ? s[n] = t.map(function(h) {
2110
+ return c(h, s);
2111
+ }) : s[n] = c(t, s);
2112
+ }
2113
+ return s;
2114
+ }, a = function() {
2115
+ function c() {
2116
+ var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2117
+ i(this, c);
2118
+ for (var m in u) this[m] = u[m];
2119
+ var s = u.spaces;
2120
+ s = s === void 0 ? {} : s;
2121
+ var n = s.before, t = n === void 0 ? "" : n, f = s.after, h = f === void 0 ? "" : f;
2122
+ this.spaces = { before: t, after: h };
2123
+ }
2124
+ return c.prototype.remove = function() {
2125
+ return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
2126
+ }, c.prototype.replaceWith = function() {
2127
+ if (this.parent) {
2128
+ for (var u in arguments) this.parent.insertBefore(this, arguments[u]);
2129
+ this.remove();
2130
+ }
2131
+ return this;
2132
+ }, c.prototype.next = function() {
2133
+ return this.parent.at(this.parent.index(this) + 1);
2134
+ }, c.prototype.prev = function() {
2135
+ return this.parent.at(this.parent.index(this) - 1);
2136
+ }, c.prototype.clone = function() {
2137
+ var u = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, m = l(this);
2138
+ for (var s in u) m[s] = u[s];
2139
+ return m;
2140
+ }, c.prototype.toString = function() {
2141
+ return [this.spaces.before, String(this.value), this.spaces.after].join("");
2142
+ }, c;
2143
+ }();
2144
+ e.default = a, r.exports = e.default;
2145
+ }), V = _((e) => {
2146
+ e.__esModule = !0, e.TAG = "tag", e.STRING = "string", e.SELECTOR = "selector", e.ROOT = "root", e.PSEUDO = "pseudo", e.NESTING = "nesting", e.ID = "id", e.COMMENT = "comment", e.COMBINATOR = "combinator", e.CLASS = "class", e.ATTRIBUTE = "attribute", e.UNIVERSAL = "universal";
2147
+ }), Tt = _((e, r) => {
2148
+ e.__esModule = !0;
2149
+ var o = /* @__PURE__ */ function() {
2150
+ function h(d, p) {
2151
+ for (var w = 0; w < p.length; w++) {
2152
+ var y = p[w];
2153
+ y.enumerable = y.enumerable || !1, y.configurable = !0, "value" in y && (y.writable = !0), Object.defineProperty(d, y.key, y);
2154
+ }
2155
+ }
2156
+ return function(d, p, w) {
2157
+ return p && h(d.prototype, p), w && h(d, w), d;
2158
+ };
2159
+ }(), i = be(), l = m(i), a = V(), c = u(a);
2160
+ function u(h) {
2161
+ if (h && h.__esModule) return h;
2162
+ var d = {};
2163
+ if (h != null) for (var p in h) Object.prototype.hasOwnProperty.call(h, p) && (d[p] = h[p]);
2164
+ return d.default = h, d;
2165
+ }
2166
+ function m(h) {
2167
+ return h && h.__esModule ? h : { default: h };
2168
+ }
2169
+ function s(h, d) {
2170
+ if (!(h instanceof d)) throw new TypeError("Cannot call a class as a function");
2171
+ }
2172
+ function n(h, d) {
2173
+ if (!h) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2174
+ return d && (typeof d == "object" || typeof d == "function") ? d : h;
2175
+ }
2176
+ function t(h, d) {
2177
+ if (typeof d != "function" && d !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof d);
2178
+ h.prototype = Object.create(d && d.prototype, { constructor: { value: h, enumerable: !1, writable: !0, configurable: !0 } }), d && (Object.setPrototypeOf ? Object.setPrototypeOf(h, d) : h.__proto__ = d);
2179
+ }
2180
+ var f = function(h) {
2181
+ t(d, h);
2182
+ function d(p) {
2183
+ s(this, d);
2184
+ var w = n(this, h.call(this, p));
2185
+ return w.nodes || (w.nodes = []), w;
2186
+ }
2187
+ return d.prototype.append = function(p) {
2188
+ return p.parent = this, this.nodes.push(p), this;
2189
+ }, d.prototype.prepend = function(p) {
2190
+ return p.parent = this, this.nodes.unshift(p), this;
2191
+ }, d.prototype.at = function(p) {
2192
+ return this.nodes[p];
2193
+ }, d.prototype.index = function(p) {
2194
+ return typeof p == "number" ? p : this.nodes.indexOf(p);
2195
+ }, d.prototype.removeChild = function(p) {
2196
+ p = this.index(p), this.at(p).parent = void 0, this.nodes.splice(p, 1);
2197
+ var w = void 0;
2198
+ for (var y in this.indexes) w = this.indexes[y], w >= p && (this.indexes[y] = w - 1);
2199
+ return this;
2200
+ }, d.prototype.removeAll = function() {
2201
+ for (var y = this.nodes, p = Array.isArray(y), w = 0, y = p ? y : y[Symbol.iterator](); ; ) {
2202
+ var v;
2203
+ if (p) {
2204
+ if (w >= y.length) break;
2205
+ v = y[w++];
2206
+ } else {
2207
+ if (w = y.next(), w.done) break;
2208
+ v = w.value;
2209
+ }
2210
+ var g = v;
2211
+ g.parent = void 0;
2212
+ }
2213
+ return this.nodes = [], this;
2214
+ }, d.prototype.empty = function() {
2215
+ return this.removeAll();
2216
+ }, d.prototype.insertAfter = function(p, w) {
2217
+ var y = this.index(p);
2218
+ this.nodes.splice(y + 1, 0, w);
2219
+ var v = void 0;
2220
+ for (var g in this.indexes) v = this.indexes[g], y <= v && (this.indexes[g] = v + this.nodes.length);
2221
+ return this;
2222
+ }, d.prototype.insertBefore = function(p, w) {
2223
+ var y = this.index(p);
2224
+ this.nodes.splice(y, 0, w);
2225
+ var v = void 0;
2226
+ for (var g in this.indexes) v = this.indexes[g], y <= v && (this.indexes[g] = v + this.nodes.length);
2227
+ return this;
2228
+ }, d.prototype.each = function(p) {
2229
+ this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach++;
2230
+ var w = this.lastEach;
2231
+ if (this.indexes[w] = 0, !!this.length) {
2232
+ for (var y = void 0, v = void 0; this.indexes[w] < this.length && (y = this.indexes[w], v = p(this.at(y), y), v !== !1); ) this.indexes[w] += 1;
2233
+ if (delete this.indexes[w], v === !1) return !1;
2234
+ }
2235
+ }, d.prototype.walk = function(p) {
2236
+ return this.each(function(w, y) {
2237
+ var v = p(w, y);
2238
+ if (v !== !1 && w.length && (v = w.walk(p)), v === !1) return !1;
2239
+ });
2240
+ }, d.prototype.walkAttributes = function(p) {
2241
+ var w = this;
2242
+ return this.walk(function(y) {
2243
+ if (y.type === c.ATTRIBUTE) return p.call(w, y);
2244
+ });
2245
+ }, d.prototype.walkClasses = function(p) {
2246
+ var w = this;
2247
+ return this.walk(function(y) {
2248
+ if (y.type === c.CLASS) return p.call(w, y);
2249
+ });
2250
+ }, d.prototype.walkCombinators = function(p) {
2251
+ var w = this;
2252
+ return this.walk(function(y) {
2253
+ if (y.type === c.COMBINATOR) return p.call(w, y);
2254
+ });
2255
+ }, d.prototype.walkComments = function(p) {
2256
+ var w = this;
2257
+ return this.walk(function(y) {
2258
+ if (y.type === c.COMMENT) return p.call(w, y);
2259
+ });
2260
+ }, d.prototype.walkIds = function(p) {
2261
+ var w = this;
2262
+ return this.walk(function(y) {
2263
+ if (y.type === c.ID) return p.call(w, y);
2264
+ });
2265
+ }, d.prototype.walkNesting = function(p) {
2266
+ var w = this;
2267
+ return this.walk(function(y) {
2268
+ if (y.type === c.NESTING) return p.call(w, y);
2269
+ });
2270
+ }, d.prototype.walkPseudos = function(p) {
2271
+ var w = this;
2272
+ return this.walk(function(y) {
2273
+ if (y.type === c.PSEUDO) return p.call(w, y);
2274
+ });
2275
+ }, d.prototype.walkTags = function(p) {
2276
+ var w = this;
2277
+ return this.walk(function(y) {
2278
+ if (y.type === c.TAG) return p.call(w, y);
2279
+ });
2280
+ }, d.prototype.walkUniversals = function(p) {
2281
+ var w = this;
2282
+ return this.walk(function(y) {
2283
+ if (y.type === c.UNIVERSAL) return p.call(w, y);
2284
+ });
2285
+ }, d.prototype.split = function(p) {
2286
+ var w = this, y = [];
2287
+ return this.reduce(function(v, g, O) {
2288
+ var b = p.call(w, g);
2289
+ return y.push(g), b ? (v.push(y), y = []) : O === w.length - 1 && v.push(y), v;
2290
+ }, []);
2291
+ }, d.prototype.map = function(p) {
2292
+ return this.nodes.map(p);
2293
+ }, d.prototype.reduce = function(p, w) {
2294
+ return this.nodes.reduce(p, w);
2295
+ }, d.prototype.every = function(p) {
2296
+ return this.nodes.every(p);
2297
+ }, d.prototype.some = function(p) {
2298
+ return this.nodes.some(p);
2299
+ }, d.prototype.filter = function(p) {
2300
+ return this.nodes.filter(p);
2301
+ }, d.prototype.sort = function(p) {
2302
+ return this.nodes.sort(p);
2303
+ }, d.prototype.toString = function() {
2304
+ return this.map(String).join("");
2305
+ }, o(d, [{ key: "first", get: function() {
2306
+ return this.at(0);
2307
+ } }, { key: "last", get: function() {
2308
+ return this.at(this.length - 1);
2309
+ } }, { key: "length", get: function() {
2310
+ return this.nodes.length;
2311
+ } }]), d;
2312
+ }(l.default);
2313
+ e.default = f, r.exports = e.default;
2314
+ }), On = _((e, r) => {
2315
+ e.__esModule = !0;
2316
+ var o = Tt(), i = a(o), l = V();
2317
+ function a(n) {
2318
+ return n && n.__esModule ? n : { default: n };
2319
+ }
2320
+ function c(n, t) {
2321
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2322
+ }
2323
+ function u(n, t) {
2324
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2325
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2326
+ }
2327
+ function m(n, t) {
2328
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2329
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2330
+ }
2331
+ var s = function(n) {
2332
+ m(t, n);
2333
+ function t(f) {
2334
+ c(this, t);
2335
+ var h = u(this, n.call(this, f));
2336
+ return h.type = l.ROOT, h;
2337
+ }
2338
+ return t.prototype.toString = function() {
2339
+ var f = this.reduce(function(h, d) {
2340
+ var p = String(d);
2341
+ return p ? h + p + "," : "";
2342
+ }, "").slice(0, -1);
2343
+ return this.trailingComma ? f + "," : f;
2344
+ }, t;
2345
+ }(i.default);
2346
+ e.default = s, r.exports = e.default;
2347
+ }), Tn = _((e, r) => {
2348
+ e.__esModule = !0;
2349
+ var o = Tt(), i = a(o), l = V();
2350
+ function a(n) {
2351
+ return n && n.__esModule ? n : { default: n };
2352
+ }
2353
+ function c(n, t) {
2354
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2355
+ }
2356
+ function u(n, t) {
2357
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2358
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2359
+ }
2360
+ function m(n, t) {
2361
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2362
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2363
+ }
2364
+ var s = function(n) {
2365
+ m(t, n);
2366
+ function t(f) {
2367
+ c(this, t);
2368
+ var h = u(this, n.call(this, f));
2369
+ return h.type = l.SELECTOR, h;
2370
+ }
2371
+ return t;
2372
+ }(i.default);
2373
+ e.default = s, r.exports = e.default;
2374
+ }), $e = _((e, r) => {
2375
+ e.__esModule = !0;
2376
+ var o = /* @__PURE__ */ function() {
2377
+ function n(t, f) {
2378
+ for (var h = 0; h < f.length; h++) {
2379
+ var d = f[h];
2380
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(t, d.key, d);
2381
+ }
2382
+ }
2383
+ return function(t, f, h) {
2384
+ return f && n(t.prototype, f), h && n(t, h), t;
2385
+ };
2386
+ }(), i = be(), l = a(i);
2387
+ function a(n) {
2388
+ return n && n.__esModule ? n : { default: n };
2389
+ }
2390
+ function c(n, t) {
2391
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2392
+ }
2393
+ function u(n, t) {
2394
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2395
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2396
+ }
2397
+ function m(n, t) {
2398
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2399
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2400
+ }
2401
+ var s = function(n) {
2402
+ m(t, n);
2403
+ function t() {
2404
+ return c(this, t), u(this, n.apply(this, arguments));
2405
+ }
2406
+ return t.prototype.toString = function() {
2407
+ return [this.spaces.before, this.ns, String(this.value), this.spaces.after].join("");
2408
+ }, o(t, [{ key: "ns", get: function() {
2409
+ var f = this.namespace;
2410
+ return f ? (typeof f == "string" ? f : "") + "|" : "";
2411
+ } }]), t;
2412
+ }(l.default);
2413
+ e.default = s, r.exports = e.default;
2414
+ }), Sn = _((e, r) => {
2415
+ e.__esModule = !0;
2416
+ var o = $e(), i = a(o), l = V();
2417
+ function a(n) {
2418
+ return n && n.__esModule ? n : { default: n };
2419
+ }
2420
+ function c(n, t) {
2421
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2422
+ }
2423
+ function u(n, t) {
2424
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2425
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2426
+ }
2427
+ function m(n, t) {
2428
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2429
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2430
+ }
2431
+ var s = function(n) {
2432
+ m(t, n);
2433
+ function t(f) {
2434
+ c(this, t);
2435
+ var h = u(this, n.call(this, f));
2436
+ return h.type = l.CLASS, h;
2437
+ }
2438
+ return t.prototype.toString = function() {
2439
+ return [this.spaces.before, this.ns, "." + this.value, this.spaces.after].join("");
2440
+ }, t;
2441
+ }(i.default);
2442
+ e.default = s, r.exports = e.default;
2443
+ }), Cn = _((e, r) => {
2444
+ e.__esModule = !0;
2445
+ var o = be(), i = a(o), l = V();
2446
+ function a(n) {
2447
+ return n && n.__esModule ? n : { default: n };
2448
+ }
2449
+ function c(n, t) {
2450
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2451
+ }
2452
+ function u(n, t) {
2453
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2454
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2455
+ }
2456
+ function m(n, t) {
2457
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2458
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2459
+ }
2460
+ var s = function(n) {
2461
+ m(t, n);
2462
+ function t(f) {
2463
+ c(this, t);
2464
+ var h = u(this, n.call(this, f));
2465
+ return h.type = l.COMMENT, h;
2466
+ }
2467
+ return t;
2468
+ }(i.default);
2469
+ e.default = s, r.exports = e.default;
2470
+ }), _n = _((e, r) => {
2471
+ e.__esModule = !0;
2472
+ var o = $e(), i = a(o), l = V();
2473
+ function a(n) {
2474
+ return n && n.__esModule ? n : { default: n };
2475
+ }
2476
+ function c(n, t) {
2477
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2478
+ }
2479
+ function u(n, t) {
2480
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2481
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2482
+ }
2483
+ function m(n, t) {
2484
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2485
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2486
+ }
2487
+ var s = function(n) {
2488
+ m(t, n);
2489
+ function t(f) {
2490
+ c(this, t);
2491
+ var h = u(this, n.call(this, f));
2492
+ return h.type = l.ID, h;
2493
+ }
2494
+ return t.prototype.toString = function() {
2495
+ return [this.spaces.before, this.ns, "#" + this.value, this.spaces.after].join("");
2496
+ }, t;
2497
+ }(i.default);
2498
+ e.default = s, r.exports = e.default;
2499
+ }), En = _((e, r) => {
2500
+ e.__esModule = !0;
2501
+ var o = $e(), i = a(o), l = V();
2502
+ function a(n) {
2503
+ return n && n.__esModule ? n : { default: n };
2504
+ }
2505
+ function c(n, t) {
2506
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2507
+ }
2508
+ function u(n, t) {
2509
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2510
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2511
+ }
2512
+ function m(n, t) {
2513
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2514
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2515
+ }
2516
+ var s = function(n) {
2517
+ m(t, n);
2518
+ function t(f) {
2519
+ c(this, t);
2520
+ var h = u(this, n.call(this, f));
2521
+ return h.type = l.TAG, h;
2522
+ }
2523
+ return t;
2524
+ }(i.default);
2525
+ e.default = s, r.exports = e.default;
2526
+ }), An = _((e, r) => {
2527
+ e.__esModule = !0;
2528
+ var o = be(), i = a(o), l = V();
2529
+ function a(n) {
2530
+ return n && n.__esModule ? n : { default: n };
2531
+ }
2532
+ function c(n, t) {
2533
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2534
+ }
2535
+ function u(n, t) {
2536
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2537
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2538
+ }
2539
+ function m(n, t) {
2540
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2541
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2542
+ }
2543
+ var s = function(n) {
2544
+ m(t, n);
2545
+ function t(f) {
2546
+ c(this, t);
2547
+ var h = u(this, n.call(this, f));
2548
+ return h.type = l.STRING, h;
2549
+ }
2550
+ return t;
2551
+ }(i.default);
2552
+ e.default = s, r.exports = e.default;
2553
+ }), jn = _((e, r) => {
2554
+ e.__esModule = !0;
2555
+ var o = Tt(), i = a(o), l = V();
2556
+ function a(n) {
2557
+ return n && n.__esModule ? n : { default: n };
2558
+ }
2559
+ function c(n, t) {
2560
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2561
+ }
2562
+ function u(n, t) {
2563
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2564
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2565
+ }
2566
+ function m(n, t) {
2567
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2568
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2569
+ }
2570
+ var s = function(n) {
2571
+ m(t, n);
2572
+ function t(f) {
2573
+ c(this, t);
2574
+ var h = u(this, n.call(this, f));
2575
+ return h.type = l.PSEUDO, h;
2576
+ }
2577
+ return t.prototype.toString = function() {
2578
+ var f = this.length ? "(" + this.map(String).join(",") + ")" : "";
2579
+ return [this.spaces.before, String(this.value), f, this.spaces.after].join("");
2580
+ }, t;
2581
+ }(i.default);
2582
+ e.default = s, r.exports = e.default;
2583
+ }), In = _((e, r) => {
2584
+ e.__esModule = !0;
2585
+ var o = $e(), i = a(o), l = V();
2586
+ function a(n) {
2587
+ return n && n.__esModule ? n : { default: n };
2588
+ }
2589
+ function c(n, t) {
2590
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2591
+ }
2592
+ function u(n, t) {
2593
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2594
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2595
+ }
2596
+ function m(n, t) {
2597
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2598
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2599
+ }
2600
+ var s = function(n) {
2601
+ m(t, n);
2602
+ function t(f) {
2603
+ c(this, t);
2604
+ var h = u(this, n.call(this, f));
2605
+ return h.type = l.ATTRIBUTE, h.raws = {}, h;
2606
+ }
2607
+ return t.prototype.toString = function() {
2608
+ var f = [this.spaces.before, "[", this.ns, this.attribute];
2609
+ return this.operator && f.push(this.operator), this.value && f.push(this.value), this.raws.insensitive ? f.push(this.raws.insensitive) : this.insensitive && f.push(" i"), f.push("]"), f.concat(this.spaces.after).join("");
2610
+ }, t;
2611
+ }(i.default);
2612
+ e.default = s, r.exports = e.default;
2613
+ }), Pn = _((e, r) => {
2614
+ e.__esModule = !0;
2615
+ var o = $e(), i = a(o), l = V();
2616
+ function a(n) {
2617
+ return n && n.__esModule ? n : { default: n };
2618
+ }
2619
+ function c(n, t) {
2620
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2621
+ }
2622
+ function u(n, t) {
2623
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2624
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2625
+ }
2626
+ function m(n, t) {
2627
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2628
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2629
+ }
2630
+ var s = function(n) {
2631
+ m(t, n);
2632
+ function t(f) {
2633
+ c(this, t);
2634
+ var h = u(this, n.call(this, f));
2635
+ return h.type = l.UNIVERSAL, h.value = "*", h;
2636
+ }
2637
+ return t;
2638
+ }(i.default);
2639
+ e.default = s, r.exports = e.default;
2640
+ }), Mn = _((e, r) => {
2641
+ e.__esModule = !0;
2642
+ var o = be(), i = a(o), l = V();
2643
+ function a(n) {
2644
+ return n && n.__esModule ? n : { default: n };
2645
+ }
2646
+ function c(n, t) {
2647
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2648
+ }
2649
+ function u(n, t) {
2650
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2651
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2652
+ }
2653
+ function m(n, t) {
2654
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2655
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2656
+ }
2657
+ var s = function(n) {
2658
+ m(t, n);
2659
+ function t(f) {
2660
+ c(this, t);
2661
+ var h = u(this, n.call(this, f));
2662
+ return h.type = l.COMBINATOR, h;
2663
+ }
2664
+ return t;
2665
+ }(i.default);
2666
+ e.default = s, r.exports = e.default;
2667
+ }), $n = _((e, r) => {
2668
+ e.__esModule = !0;
2669
+ var o = be(), i = a(o), l = V();
2670
+ function a(n) {
2671
+ return n && n.__esModule ? n : { default: n };
2672
+ }
2673
+ function c(n, t) {
2674
+ if (!(n instanceof t)) throw new TypeError("Cannot call a class as a function");
2675
+ }
2676
+ function u(n, t) {
2677
+ if (!n) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2678
+ return t && (typeof t == "object" || typeof t == "function") ? t : n;
2679
+ }
2680
+ function m(n, t) {
2681
+ if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof t);
2682
+ n.prototype = Object.create(t && t.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(n, t) : n.__proto__ = t);
2683
+ }
2684
+ var s = function(n) {
2685
+ m(t, n);
2686
+ function t(f) {
2687
+ c(this, t);
2688
+ var h = u(this, n.call(this, f));
2689
+ return h.type = l.NESTING, h.value = "&", h;
2690
+ }
2691
+ return t;
2692
+ }(i.default);
2693
+ e.default = s, r.exports = e.default;
2694
+ }), Rn = _((e, r) => {
2695
+ e.__esModule = !0, e.default = o;
2696
+ function o(i) {
2697
+ return i.sort(function(l, a) {
2698
+ return l - a;
2699
+ });
2700
+ }
2701
+ r.exports = e.default;
2702
+ }), Nn = _((e, r) => {
2703
+ e.__esModule = !0, e.default = $;
2704
+ var o = 39, i = 34, l = 92, a = 47, c = 10, u = 32, m = 12, s = 9, n = 13, t = 43, f = 62, h = 126, d = 124, p = 44, w = 40, y = 41, v = 91, g = 93, O = 59, b = 42, x = 58, k = 38, T = 64, E = /[ \n\t\r\{\(\)'"\\;/]/g, j = /[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;
2705
+ function $(L) {
2706
+ for (var R = [], M = L.css.valueOf(), P = void 0, I = void 0, U = void 0, ke = void 0, le = void 0, ce = void 0, pe = void 0, he = void 0, fe = void 0, z = void 0, Oe = void 0, tt = M.length, A = -1, S = 1, C = 0, N = function(W, q) {
2707
+ if (L.safe) M += q, I = M.length - 1;
2708
+ else throw L.error("Unclosed " + W, S, C - A, C);
2709
+ }; C < tt; ) {
2710
+ switch (P = M.charCodeAt(C), P === c && (A = C, S += 1), P) {
2711
+ case c:
2712
+ case u:
2713
+ case s:
2714
+ case n:
2715
+ case m:
2716
+ I = C;
2717
+ do
2718
+ I += 1, P = M.charCodeAt(I), P === c && (A = I, S += 1);
2719
+ while (P === u || P === c || P === s || P === n || P === m);
2720
+ R.push(["space", M.slice(C, I), S, C - A, C]), C = I - 1;
2721
+ break;
2722
+ case t:
2723
+ case f:
2724
+ case h:
2725
+ case d:
2726
+ I = C;
2727
+ do
2728
+ I += 1, P = M.charCodeAt(I);
2729
+ while (P === t || P === f || P === h || P === d);
2730
+ R.push(["combinator", M.slice(C, I), S, C - A, C]), C = I - 1;
2731
+ break;
2732
+ case b:
2733
+ R.push(["*", "*", S, C - A, C]);
2734
+ break;
2735
+ case k:
2736
+ R.push(["&", "&", S, C - A, C]);
2737
+ break;
2738
+ case p:
2739
+ R.push([",", ",", S, C - A, C]);
2740
+ break;
2741
+ case v:
2742
+ R.push(["[", "[", S, C - A, C]);
2743
+ break;
2744
+ case g:
2745
+ R.push(["]", "]", S, C - A, C]);
2746
+ break;
2747
+ case x:
2748
+ R.push([":", ":", S, C - A, C]);
2749
+ break;
2750
+ case O:
2751
+ R.push([";", ";", S, C - A, C]);
2752
+ break;
2753
+ case w:
2754
+ R.push(["(", "(", S, C - A, C]);
2755
+ break;
2756
+ case y:
2757
+ R.push([")", ")", S, C - A, C]);
2758
+ break;
2759
+ case o:
2760
+ case i:
2761
+ U = P === o ? "'" : '"', I = C;
2762
+ do
2763
+ for (z = !1, I = M.indexOf(U, I + 1), I === -1 && N("quote", U), Oe = I; M.charCodeAt(Oe - 1) === l; ) Oe -= 1, z = !z;
2764
+ while (z);
2765
+ R.push(["string", M.slice(C, I + 1), S, C - A, S, I - A, C]), C = I;
2766
+ break;
2767
+ case T:
2768
+ E.lastIndex = C + 1, E.test(M), E.lastIndex === 0 ? I = M.length - 1 : I = E.lastIndex - 2, R.push(["at-word", M.slice(C, I + 1), S, C - A, S, I - A, C]), C = I;
2769
+ break;
2770
+ case l:
2771
+ for (I = C, pe = !0; M.charCodeAt(I + 1) === l; ) I += 1, pe = !pe;
2772
+ P = M.charCodeAt(I + 1), pe && P !== a && P !== u && P !== c && P !== s && P !== n && P !== m && (I += 1), R.push(["word", M.slice(C, I + 1), S, C - A, S, I - A, C]), C = I;
2773
+ break;
2774
+ default:
2775
+ P === a && M.charCodeAt(C + 1) === b ? (I = M.indexOf("*/", C + 2) + 1, I === 0 && N("comment", "*/"), ce = M.slice(C, I + 1), ke = ce.split(`
2776
+ `), le = ke.length - 1, le > 0 ? (he = S + le, fe = I - ke[le].length) : (he = S, fe = A), R.push(["comment", ce, S, C - A, he, I - fe, C]), A = fe, S = he, C = I) : (j.lastIndex = C + 1, j.test(M), j.lastIndex === 0 ? I = M.length - 1 : I = j.lastIndex - 2, R.push(["word", M.slice(C, I + 1), S, C - A, S, I - A, C]), C = I);
2777
+ break;
2778
+ }
2779
+ C++;
2780
+ }
2781
+ return R;
2782
+ }
2783
+ r.exports = e.default;
2784
+ }), Ln = _((e, r) => {
2785
+ e.__esModule = !0;
2786
+ var o = /* @__PURE__ */ function() {
2787
+ function A(S, C) {
2788
+ for (var N = 0; N < C.length; N++) {
2789
+ var W = C[N];
2790
+ W.enumerable = W.enumerable || !1, W.configurable = !0, "value" in W && (W.writable = !0), Object.defineProperty(S, W.key, W);
2791
+ }
2792
+ }
2793
+ return function(S, C, N) {
2794
+ return C && A(S.prototype, C), N && A(S, N), S;
2795
+ };
2796
+ }(), i = or(), l = z(i), a = ir(), c = z(a), u = ar(), m = z(u), s = On(), n = z(s), t = Tn(), f = z(t), h = Sn(), d = z(h), p = Cn(), w = z(p), y = _n(), v = z(y), g = En(), O = z(g), b = An(), x = z(b), k = jn(), T = z(k), E = In(), j = z(E), $ = Pn(), L = z($), R = Mn(), M = z(R), P = $n(), I = z(P), U = Rn(), ke = z(U), le = Nn(), ce = z(le), pe = V(), he = fe(pe);
2797
+ function fe(A) {
2798
+ if (A && A.__esModule) return A;
2799
+ var S = {};
2800
+ if (A != null) for (var C in A) Object.prototype.hasOwnProperty.call(A, C) && (S[C] = A[C]);
2801
+ return S.default = A, S;
2802
+ }
2803
+ function z(A) {
2804
+ return A && A.__esModule ? A : { default: A };
2805
+ }
2806
+ function Oe(A, S) {
2807
+ if (!(A instanceof S)) throw new TypeError("Cannot call a class as a function");
2808
+ }
2809
+ var tt = function() {
2810
+ function A(S) {
2811
+ Oe(this, A), this.input = S, this.lossy = S.options.lossless === !1, this.position = 0, this.root = new n.default();
2812
+ var C = new f.default();
2813
+ return this.root.append(C), this.current = C, this.lossy ? this.tokens = (0, ce.default)({ safe: S.safe, css: S.css.trim() }) : this.tokens = (0, ce.default)(S), this.loop();
2814
+ }
2815
+ return A.prototype.attribute = function() {
2816
+ var S = "", C = void 0, N = this.currToken;
2817
+ for (this.position++; this.position < this.tokens.length && this.currToken[0] !== "]"; ) S += this.tokens[this.position][1], this.position++;
2818
+ this.position === this.tokens.length && !~S.indexOf("]") && this.error("Expected a closing square bracket.");
2819
+ var W = S.split(/((?:[*~^$|]?=))([^]*)/), q = W[0].split(/(\|)/g), Y = { operator: W[1], value: W[2], source: { start: { line: N[2], column: N[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: N[4] };
2820
+ if (q.length > 1 ? (q[0] === "" && (q[0] = !0), Y.attribute = this.parseValue(q[2]), Y.namespace = this.parseNamespace(q[0])) : Y.attribute = this.parseValue(W[0]), C = new j.default(Y), W[2]) {
2821
+ var te = W[2].split(/(\s+i\s*?)$/), re = te[0].trim();
2822
+ C.value = this.lossy ? re : te[0], te[1] && (C.insensitive = !0, this.lossy || (C.raws.insensitive = te[1])), C.quoted = re[0] === "'" || re[0] === '"', C.raws.unquoted = C.quoted ? re.slice(1, -1) : re;
2823
+ }
2824
+ this.newNode(C), this.position++;
2825
+ }, A.prototype.combinator = function() {
2826
+ if (this.currToken[1] === "|") return this.namespace();
2827
+ for (var S = new M.default({ value: "", source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] }); this.position < this.tokens.length && this.currToken && (this.currToken[0] === "space" || this.currToken[0] === "combinator"); ) this.nextToken && this.nextToken[0] === "combinator" ? (S.spaces.before = this.parseSpace(this.currToken[1]), S.source.start.line = this.nextToken[2], S.source.start.column = this.nextToken[3], S.source.end.column = this.nextToken[3], S.source.end.line = this.nextToken[2], S.sourceIndex = this.nextToken[4]) : this.prevToken && this.prevToken[0] === "combinator" ? S.spaces.after = this.parseSpace(this.currToken[1]) : this.currToken[0] === "combinator" ? S.value = this.currToken[1] : this.currToken[0] === "space" && (S.value = this.parseSpace(this.currToken[1], " ")), this.position++;
2828
+ return this.newNode(S);
2829
+ }, A.prototype.comma = function() {
2830
+ if (this.position === this.tokens.length - 1) {
2831
+ this.root.trailingComma = !0, this.position++;
2832
+ return;
2833
+ }
2834
+ var S = new f.default();
2835
+ this.current.parent.append(S), this.current = S, this.position++;
2836
+ }, A.prototype.comment = function() {
2837
+ var S = new w.default({ value: this.currToken[1], source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[4], column: this.currToken[5] } }, sourceIndex: this.currToken[6] });
2838
+ this.newNode(S), this.position++;
2839
+ }, A.prototype.error = function(S) {
2840
+ throw new this.input.error(S);
2841
+ }, A.prototype.missingBackslash = function() {
2842
+ return this.error("Expected a backslash preceding the semicolon.");
2843
+ }, A.prototype.missingParenthesis = function() {
2844
+ return this.error("Expected opening parenthesis.");
2845
+ }, A.prototype.missingSquareBracket = function() {
2846
+ return this.error("Expected opening square bracket.");
2847
+ }, A.prototype.namespace = function() {
2848
+ var S = this.prevToken && this.prevToken[1] || !0;
2849
+ if (this.nextToken[0] === "word") return this.position++, this.word(S);
2850
+ if (this.nextToken[0] === "*") return this.position++, this.universal(S);
2851
+ }, A.prototype.nesting = function() {
2852
+ this.newNode(new I.default({ value: this.currToken[1], source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] })), this.position++;
2853
+ }, A.prototype.parentheses = function() {
2854
+ var S = this.current.last;
2855
+ if (S && S.type === he.PSEUDO) {
2856
+ var C = new f.default(), N = this.current;
2857
+ S.append(C), this.current = C;
2858
+ var W = 1;
2859
+ for (this.position++; this.position < this.tokens.length && W; ) this.currToken[0] === "(" && W++, this.currToken[0] === ")" && W--, W ? this.parse() : (C.parent.source.end.line = this.currToken[2], C.parent.source.end.column = this.currToken[3], this.position++);
2860
+ W && this.error("Expected closing parenthesis."), this.current = N;
2861
+ } else {
2862
+ var q = 1;
2863
+ for (this.position++, S.value += "("; this.position < this.tokens.length && q; ) this.currToken[0] === "(" && q++, this.currToken[0] === ")" && q--, S.value += this.parseParenthesisToken(this.currToken), this.position++;
2864
+ q && this.error("Expected closing parenthesis.");
2865
+ }
2866
+ }, A.prototype.pseudo = function() {
2867
+ for (var S = this, C = "", N = this.currToken; this.currToken && this.currToken[0] === ":"; ) C += this.currToken[1], this.position++;
2868
+ if (!this.currToken) return this.error("Expected pseudo-class or pseudo-element");
2869
+ if (this.currToken[0] === "word") {
2870
+ var W = void 0;
2871
+ this.splitWord(!1, function(q, Y) {
2872
+ C += q, W = new T.default({ value: C, source: { start: { line: N[2], column: N[3] }, end: { line: S.currToken[4], column: S.currToken[5] } }, sourceIndex: N[4] }), S.newNode(W), Y > 1 && S.nextToken && S.nextToken[0] === "(" && S.error("Misplaced parenthesis.");
2873
+ });
2874
+ } else this.error('Unexpected "' + this.currToken[0] + '" found.');
2875
+ }, A.prototype.space = function() {
2876
+ var S = this.currToken;
2877
+ this.position === 0 || this.prevToken[0] === "," || this.prevToken[0] === "(" ? (this.spaces = this.parseSpace(S[1]), this.position++) : this.position === this.tokens.length - 1 || this.nextToken[0] === "," || this.nextToken[0] === ")" ? (this.current.last.spaces.after = this.parseSpace(S[1]), this.position++) : this.combinator();
2878
+ }, A.prototype.string = function() {
2879
+ var S = this.currToken;
2880
+ this.newNode(new x.default({ value: this.currToken[1], source: { start: { line: S[2], column: S[3] }, end: { line: S[4], column: S[5] } }, sourceIndex: S[6] })), this.position++;
2881
+ }, A.prototype.universal = function(S) {
2882
+ var C = this.nextToken;
2883
+ if (C && C[1] === "|") return this.position++, this.namespace();
2884
+ this.newNode(new L.default({ value: this.currToken[1], source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] }), S), this.position++;
2885
+ }, A.prototype.splitWord = function(S, C) {
2886
+ for (var N = this, W = this.nextToken, q = this.currToken[1]; W && W[0] === "word"; ) {
2887
+ this.position++;
2888
+ var Y = this.currToken[1];
2889
+ if (q += Y, Y.lastIndexOf("\\") === Y.length - 1) {
2890
+ var te = this.nextToken;
2891
+ te && te[0] === "space" && (q += this.parseSpace(te[1], " "), this.position++);
2892
+ }
2893
+ W = this.nextToken;
2894
+ }
2895
+ var re = (0, c.default)(q, "."), Ne = (0, c.default)(q, "#"), Lt = (0, c.default)(q, "#{");
2896
+ Lt.length && (Ne = Ne.filter(function(ne) {
2897
+ return !~Lt.indexOf(ne);
2898
+ }));
2899
+ var de = (0, ke.default)((0, m.default)((0, l.default)([[0], re, Ne])));
2900
+ de.forEach(function(ne, Te) {
2901
+ var Le = de[Te + 1] || q.length, We = q.slice(ne, Le);
2902
+ if (Te === 0 && C) return C.call(N, We, de.length);
2903
+ var ze = void 0;
2904
+ ~re.indexOf(ne) ? ze = new d.default({ value: We.slice(1), source: { start: { line: N.currToken[2], column: N.currToken[3] + ne }, end: { line: N.currToken[4], column: N.currToken[3] + (Le - 1) } }, sourceIndex: N.currToken[6] + de[Te] }) : ~Ne.indexOf(ne) ? ze = new v.default({ value: We.slice(1), source: { start: { line: N.currToken[2], column: N.currToken[3] + ne }, end: { line: N.currToken[4], column: N.currToken[3] + (Le - 1) } }, sourceIndex: N.currToken[6] + de[Te] }) : ze = new O.default({ value: We, source: { start: { line: N.currToken[2], column: N.currToken[3] + ne }, end: { line: N.currToken[4], column: N.currToken[3] + (Le - 1) } }, sourceIndex: N.currToken[6] + de[Te] }), N.newNode(ze, S);
2905
+ }), this.position++;
2906
+ }, A.prototype.word = function(S) {
2907
+ var C = this.nextToken;
2908
+ return C && C[1] === "|" ? (this.position++, this.namespace()) : this.splitWord(S);
2909
+ }, A.prototype.loop = function() {
2910
+ for (; this.position < this.tokens.length; ) this.parse(!0);
2911
+ return this.root;
2912
+ }, A.prototype.parse = function(S) {
2913
+ switch (this.currToken[0]) {
2914
+ case "space":
2915
+ this.space();
2916
+ break;
2917
+ case "comment":
2918
+ this.comment();
2919
+ break;
2920
+ case "(":
2921
+ this.parentheses();
2922
+ break;
2923
+ case ")":
2924
+ S && this.missingParenthesis();
2925
+ break;
2926
+ case "[":
2927
+ this.attribute();
2928
+ break;
2929
+ case "]":
2930
+ this.missingSquareBracket();
2931
+ break;
2932
+ case "at-word":
2933
+ case "word":
2934
+ this.word();
2935
+ break;
2936
+ case ":":
2937
+ this.pseudo();
2938
+ break;
2939
+ case ";":
2940
+ this.missingBackslash();
2941
+ break;
2942
+ case ",":
2943
+ this.comma();
2944
+ break;
2945
+ case "*":
2946
+ this.universal();
2947
+ break;
2948
+ case "&":
2949
+ this.nesting();
2950
+ break;
2951
+ case "combinator":
2952
+ this.combinator();
2953
+ break;
2954
+ case "string":
2955
+ this.string();
2956
+ break;
2957
+ }
2958
+ }, A.prototype.parseNamespace = function(S) {
2959
+ if (this.lossy && typeof S == "string") {
2960
+ var C = S.trim();
2961
+ return C.length ? C : !0;
2962
+ }
2963
+ return S;
2964
+ }, A.prototype.parseSpace = function(S, C) {
2965
+ return this.lossy ? C || "" : S;
2966
+ }, A.prototype.parseValue = function(S) {
2967
+ return this.lossy && S && typeof S == "string" ? S.trim() : S;
2968
+ }, A.prototype.parseParenthesisToken = function(S) {
2969
+ return this.lossy ? S[0] === "space" ? this.parseSpace(S[1], " ") : this.parseValue(S[1]) : S[1];
2970
+ }, A.prototype.newNode = function(S, C) {
2971
+ return C && (S.namespace = this.parseNamespace(C)), this.spaces && (S.spaces.before = this.spaces, this.spaces = ""), this.current.append(S);
2972
+ }, o(A, [{ key: "currToken", get: function() {
2973
+ return this.tokens[this.position];
2974
+ } }, { key: "nextToken", get: function() {
2975
+ return this.tokens[this.position + 1];
2976
+ } }, { key: "prevToken", get: function() {
2977
+ return this.tokens[this.position - 1];
2978
+ } }]), A;
2979
+ }();
2980
+ e.default = tt, r.exports = e.default;
2981
+ }), Wn = _((e, r) => {
2982
+ e.__esModule = !0;
2983
+ var o = /* @__PURE__ */ function() {
2984
+ function m(s, n) {
2985
+ for (var t = 0; t < n.length; t++) {
2986
+ var f = n[t];
2987
+ f.enumerable = f.enumerable || !1, f.configurable = !0, "value" in f && (f.writable = !0), Object.defineProperty(s, f.key, f);
2988
+ }
2989
+ }
2990
+ return function(s, n, t) {
2991
+ return n && m(s.prototype, n), t && m(s, t), s;
2992
+ };
2993
+ }(), i = Ln(), l = a(i);
2994
+ function a(m) {
2995
+ return m && m.__esModule ? m : { default: m };
2996
+ }
2997
+ function c(m, s) {
2998
+ if (!(m instanceof s)) throw new TypeError("Cannot call a class as a function");
2999
+ }
3000
+ var u = function() {
3001
+ function m(s) {
3002
+ return c(this, m), this.func = s || function() {
3003
+ }, this;
3004
+ }
3005
+ return m.prototype.process = function(s) {
3006
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = new l.default({ css: s, error: function(f) {
3007
+ throw new Error(f);
3008
+ }, options: n });
3009
+ return this.res = t, this.func(t), this;
3010
+ }, o(m, [{ key: "result", get: function() {
3011
+ return String(this.res);
3012
+ } }]), m;
3013
+ }();
3014
+ e.default = u, r.exports = e.default;
3015
+ }), ee = _((e, r) => {
3016
+ var o = function(i, l) {
3017
+ let a = new i.constructor();
3018
+ for (let c in i) {
3019
+ if (!i.hasOwnProperty(c)) continue;
3020
+ let u = i[c], m = typeof u;
3021
+ c === "parent" && m === "object" ? l && (a[c] = l) : c === "source" ? a[c] = u : u instanceof Array ? a[c] = u.map((s) => o(s, a)) : c !== "before" && c !== "after" && c !== "between" && c !== "semicolon" && (m === "object" && u !== null && (u = o(u)), a[c] = u);
3022
+ }
3023
+ return a;
3024
+ };
3025
+ r.exports = class {
3026
+ constructor(i) {
3027
+ i = i || {}, this.raws = { before: "", after: "" };
3028
+ for (let l in i) this[l] = i[l];
3029
+ }
3030
+ remove() {
3031
+ return this.parent && this.parent.removeChild(this), this.parent = void 0, this;
3032
+ }
3033
+ toString() {
3034
+ return [this.raws.before, String(this.value), this.raws.after].join("");
3035
+ }
3036
+ clone(i) {
3037
+ i = i || {};
3038
+ let l = o(this);
3039
+ for (let a in i) l[a] = i[a];
3040
+ return l;
3041
+ }
3042
+ cloneBefore(i) {
3043
+ i = i || {};
3044
+ let l = this.clone(i);
3045
+ return this.parent.insertBefore(this, l), l;
3046
+ }
3047
+ cloneAfter(i) {
3048
+ i = i || {};
3049
+ let l = this.clone(i);
3050
+ return this.parent.insertAfter(this, l), l;
3051
+ }
3052
+ replaceWith() {
3053
+ let i = Array.prototype.slice.call(arguments);
3054
+ if (this.parent) {
3055
+ for (let l of i) this.parent.insertBefore(this, l);
3056
+ this.remove();
3057
+ }
3058
+ return this;
3059
+ }
3060
+ moveTo(i) {
3061
+ return this.cleanRaws(this.root() === i.root()), this.remove(), i.append(this), this;
3062
+ }
3063
+ moveBefore(i) {
3064
+ return this.cleanRaws(this.root() === i.root()), this.remove(), i.parent.insertBefore(i, this), this;
3065
+ }
3066
+ moveAfter(i) {
3067
+ return this.cleanRaws(this.root() === i.root()), this.remove(), i.parent.insertAfter(i, this), this;
3068
+ }
3069
+ next() {
3070
+ let i = this.parent.index(this);
3071
+ return this.parent.nodes[i + 1];
3072
+ }
3073
+ prev() {
3074
+ let i = this.parent.index(this);
3075
+ return this.parent.nodes[i - 1];
3076
+ }
3077
+ toJSON() {
3078
+ let i = {};
3079
+ for (let l in this) {
3080
+ if (!this.hasOwnProperty(l) || l === "parent") continue;
3081
+ let a = this[l];
3082
+ a instanceof Array ? i[l] = a.map((c) => typeof c == "object" && c.toJSON ? c.toJSON() : c) : typeof a == "object" && a.toJSON ? i[l] = a.toJSON() : i[l] = a;
3083
+ }
3084
+ return i;
3085
+ }
3086
+ root() {
3087
+ let i = this;
3088
+ for (; i.parent; ) i = i.parent;
3089
+ return i;
3090
+ }
3091
+ cleanRaws(i) {
3092
+ delete this.raws.before, delete this.raws.after, i || delete this.raws.between;
3093
+ }
3094
+ positionInside(i) {
3095
+ let l = this.toString(), a = this.source.start.column, c = this.source.start.line;
3096
+ for (let u = 0; u < i; u++) l[u] === `
3097
+ ` ? (a = 1, c += 1) : a += 1;
3098
+ return { line: c, column: a };
3099
+ }
3100
+ positionBy(i) {
3101
+ let l = this.source.start;
3102
+ if (Object(i).index) l = this.positionInside(i.index);
3103
+ else if (Object(i).word) {
3104
+ let a = this.toString().indexOf(i.word);
3105
+ a !== -1 && (l = this.positionInside(a));
3106
+ }
3107
+ return l;
3108
+ }
3109
+ };
3110
+ }), Q = _((e, r) => {
3111
+ var o = ee(), i = class extends o {
3112
+ constructor(l) {
3113
+ super(l), this.nodes || (this.nodes = []);
3114
+ }
3115
+ push(l) {
3116
+ return l.parent = this, this.nodes.push(l), this;
3117
+ }
3118
+ each(l) {
3119
+ this.lastEach || (this.lastEach = 0), this.indexes || (this.indexes = {}), this.lastEach += 1;
3120
+ let a = this.lastEach, c, u;
3121
+ if (this.indexes[a] = 0, !!this.nodes) {
3122
+ for (; this.indexes[a] < this.nodes.length && (c = this.indexes[a], u = l(this.nodes[c], c), u !== !1); ) this.indexes[a] += 1;
3123
+ return delete this.indexes[a], u;
3124
+ }
3125
+ }
3126
+ walk(l) {
3127
+ return this.each((a, c) => {
3128
+ let u = l(a, c);
3129
+ return u !== !1 && a.walk && (u = a.walk(l)), u;
3130
+ });
3131
+ }
3132
+ walkType(l, a) {
3133
+ if (!l || !a) throw new Error("Parameters {type} and {callback} are required.");
3134
+ let c = typeof l == "function";
3135
+ return this.walk((u, m) => {
3136
+ if (c && u instanceof l || !c && u.type === l) return a.call(this, u, m);
3137
+ });
3138
+ }
3139
+ append(l) {
3140
+ return l.parent = this, this.nodes.push(l), this;
3141
+ }
3142
+ prepend(l) {
3143
+ return l.parent = this, this.nodes.unshift(l), this;
3144
+ }
3145
+ cleanRaws(l) {
3146
+ if (super.cleanRaws(l), this.nodes) for (let a of this.nodes) a.cleanRaws(l);
3147
+ }
3148
+ insertAfter(l, a) {
3149
+ let c = this.index(l), u;
3150
+ this.nodes.splice(c + 1, 0, a);
3151
+ for (let m in this.indexes) u = this.indexes[m], c <= u && (this.indexes[m] = u + this.nodes.length);
3152
+ return this;
3153
+ }
3154
+ insertBefore(l, a) {
3155
+ let c = this.index(l), u;
3156
+ this.nodes.splice(c, 0, a);
3157
+ for (let m in this.indexes) u = this.indexes[m], c <= u && (this.indexes[m] = u + this.nodes.length);
3158
+ return this;
3159
+ }
3160
+ removeChild(l) {
3161
+ l = this.index(l), this.nodes[l].parent = void 0, this.nodes.splice(l, 1);
3162
+ let a;
3163
+ for (let c in this.indexes) a = this.indexes[c], a >= l && (this.indexes[c] = a - 1);
3164
+ return this;
3165
+ }
3166
+ removeAll() {
3167
+ for (let l of this.nodes) l.parent = void 0;
3168
+ return this.nodes = [], this;
3169
+ }
3170
+ every(l) {
3171
+ return this.nodes.every(l);
3172
+ }
3173
+ some(l) {
3174
+ return this.nodes.some(l);
3175
+ }
3176
+ index(l) {
3177
+ return typeof l == "number" ? l : this.nodes.indexOf(l);
3178
+ }
3179
+ get first() {
3180
+ if (this.nodes) return this.nodes[0];
3181
+ }
3182
+ get last() {
3183
+ if (this.nodes) return this.nodes[this.nodes.length - 1];
3184
+ }
3185
+ toString() {
3186
+ let l = this.nodes.map(String).join("");
3187
+ return this.value && (l = this.value + l), this.raws.before && (l = this.raws.before + l), this.raws.after && (l += this.raws.after), l;
3188
+ }
3189
+ };
3190
+ i.registerWalker = (l) => {
3191
+ let a = "walk" + l.name;
3192
+ a.lastIndexOf("s") !== a.length - 1 && (a += "s"), !i.prototype[a] && (i.prototype[a] = function(c) {
3193
+ return this.walkType(l, c);
3194
+ });
3195
+ }, r.exports = i;
3196
+ }), zn = _((e, r) => {
3197
+ var o = Q();
3198
+ r.exports = class extends o {
3199
+ constructor(i) {
3200
+ super(i), this.type = "root";
3201
+ }
3202
+ };
3203
+ }), qn = _((e, r) => {
3204
+ var o = Q();
3205
+ r.exports = class extends o {
3206
+ constructor(i) {
3207
+ super(i), this.type = "value", this.unbalanced = 0;
3208
+ }
3209
+ };
3210
+ }), Fn = _((e, r) => {
3211
+ var o = Q(), i = class extends o {
3212
+ constructor(l) {
3213
+ super(l), this.type = "atword";
3214
+ }
3215
+ toString() {
3216
+ return this.quoted && this.raws.quote, [this.raws.before, "@", String.prototype.toString.call(this.value), this.raws.after].join("");
3217
+ }
3218
+ };
3219
+ o.registerWalker(i), r.exports = i;
3220
+ }), Dn = _((e, r) => {
3221
+ var o = Q(), i = ee(), l = class extends i {
3222
+ constructor(a) {
3223
+ super(a), this.type = "colon";
3224
+ }
3225
+ };
3226
+ o.registerWalker(l), r.exports = l;
3227
+ }), Un = _((e, r) => {
3228
+ var o = Q(), i = ee(), l = class extends i {
3229
+ constructor(a) {
3230
+ super(a), this.type = "comma";
3231
+ }
3232
+ };
3233
+ o.registerWalker(l), r.exports = l;
3234
+ }), Bn = _((e, r) => {
3235
+ var o = Q(), i = ee(), l = class extends i {
3236
+ constructor(a) {
3237
+ super(a), this.type = "comment", this.inline = Object(a).inline || !1;
3238
+ }
3239
+ toString() {
3240
+ return [this.raws.before, this.inline ? "//" : "/*", String(this.value), this.inline ? "" : "*/", this.raws.after].join("");
3241
+ }
3242
+ };
3243
+ o.registerWalker(l), r.exports = l;
3244
+ }), Vn = _((e, r) => {
3245
+ var o = Q(), i = class extends o {
3246
+ constructor(l) {
3247
+ super(l), this.type = "func", this.unbalanced = -1;
3248
+ }
3249
+ };
3250
+ o.registerWalker(i), r.exports = i;
3251
+ }), Gn = _((e, r) => {
3252
+ var o = Q(), i = ee(), l = class extends i {
3253
+ constructor(a) {
3254
+ super(a), this.type = "number", this.unit = Object(a).unit || "";
3255
+ }
3256
+ toString() {
3257
+ return [this.raws.before, String(this.value), this.unit, this.raws.after].join("");
3258
+ }
3259
+ };
3260
+ o.registerWalker(l), r.exports = l;
3261
+ }), Hn = _((e, r) => {
3262
+ var o = Q(), i = ee(), l = class extends i {
3263
+ constructor(a) {
3264
+ super(a), this.type = "operator";
3265
+ }
3266
+ };
3267
+ o.registerWalker(l), r.exports = l;
3268
+ }), Jn = _((e, r) => {
3269
+ var o = Q(), i = ee(), l = class extends i {
3270
+ constructor(a) {
3271
+ super(a), this.type = "paren", this.parenType = "";
3272
+ }
3273
+ };
3274
+ o.registerWalker(l), r.exports = l;
3275
+ }), Qn = _((e, r) => {
3276
+ var o = Q(), i = ee(), l = class extends i {
3277
+ constructor(a) {
3278
+ super(a), this.type = "string";
3279
+ }
3280
+ toString() {
3281
+ let a = this.quoted ? this.raws.quote : "";
3282
+ return [this.raws.before, a, this.value + "", a, this.raws.after].join("");
3283
+ }
3284
+ };
3285
+ o.registerWalker(l), r.exports = l;
3286
+ }), Kn = _((e, r) => {
3287
+ var o = Q(), i = ee(), l = class extends i {
3288
+ constructor(a) {
3289
+ super(a), this.type = "word";
3290
+ }
3291
+ };
3292
+ o.registerWalker(l), r.exports = l;
3293
+ }), Zn = _((e, r) => {
3294
+ var o = Q(), i = ee(), l = class extends i {
3295
+ constructor(a) {
3296
+ super(a), this.type = "unicode-range";
3297
+ }
3298
+ };
3299
+ o.registerWalker(l), r.exports = l;
3300
+ }), Yn = _((e, r) => {
3301
+ var o = class extends Error {
3302
+ constructor(i) {
3303
+ super(i), this.name = this.constructor.name, this.message = i || "An error ocurred while tokzenizing.", typeof Error.captureStackTrace == "function" ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error(i).stack;
3304
+ }
3305
+ };
3306
+ r.exports = o;
3307
+ }), Xn = _((e, r) => {
3308
+ var o = /[ \n\t\r\{\(\)'"\\;,/]/g, i = /[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g, l = /[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g, a = /^[a-z0-9]/i, c = /^[a-f0-9?\-]/i, u = Yn();
3309
+ r.exports = function(m, s) {
3310
+ s = s || {};
3311
+ let n = [], t = m.valueOf(), f = t.length, h = -1, d = 1, p = 0, w = 0, y = null, v, g, O, b, x, k, T, E, j, $, L;
3312
+ function R(M) {
3313
+ let P = `Unclosed ${M} at line: ${d}, column: ${p - h}, token: ${p}`;
3314
+ throw new u(P);
3315
+ }
3316
+ for (; p < f; ) {
3317
+ switch (v = t.charCodeAt(p), v === 10 && (h = p, d += 1), v) {
3318
+ case 10:
3319
+ case 32:
3320
+ case 9:
3321
+ case 13:
3322
+ case 12:
3323
+ g = p;
3324
+ do
3325
+ g += 1, v = t.charCodeAt(g), v === 10 && (h = g, d += 1);
3326
+ while (v === 32 || v === 10 || v === 9 || v === 13 || v === 12);
3327
+ n.push(["space", t.slice(p, g), d, p - h, d, g - h, p]), p = g - 1;
3328
+ break;
3329
+ case 58:
3330
+ g = p + 1, n.push(["colon", t.slice(p, g), d, p - h, d, g - h, p]), p = g - 1;
3331
+ break;
3332
+ case 44:
3333
+ g = p + 1, n.push(["comma", t.slice(p, g), d, p - h, d, g - h, p]), p = g - 1;
3334
+ break;
3335
+ case 123:
3336
+ n.push(["{", "{", d, p - h, d, g - h, p]);
3337
+ break;
3338
+ case 125:
3339
+ n.push(["}", "}", d, p - h, d, g - h, p]);
3340
+ break;
3341
+ case 40:
3342
+ w++, y = !y && w === 1 && n.length > 0 && n[n.length - 1][0] === "word" && n[n.length - 1][1] === "url", n.push(["(", "(", d, p - h, d, g - h, p]);
3343
+ break;
3344
+ case 41:
3345
+ w--, y = y && w > 0, n.push([")", ")", d, p - h, d, g - h, p]);
3346
+ break;
3347
+ case 39:
3348
+ case 34:
3349
+ O = v === 39 ? "'" : '"', g = p;
3350
+ do
3351
+ for (j = !1, g = t.indexOf(O, g + 1), g === -1 && R("quote"), $ = g; t.charCodeAt($ - 1) === 92; ) $ -= 1, j = !j;
3352
+ while (j);
3353
+ n.push(["string", t.slice(p, g + 1), d, p - h, d, g - h, p]), p = g;
3354
+ break;
3355
+ case 64:
3356
+ o.lastIndex = p + 1, o.test(t), o.lastIndex === 0 ? g = t.length - 1 : g = o.lastIndex - 2, n.push(["atword", t.slice(p, g + 1), d, p - h, d, g - h, p]), p = g;
3357
+ break;
3358
+ case 92:
3359
+ g = p, v = t.charCodeAt(g + 1), n.push(["word", t.slice(p, g + 1), d, p - h, d, g - h, p]), p = g;
3360
+ break;
3361
+ case 43:
3362
+ case 45:
3363
+ case 42:
3364
+ if (g = p + 1, L = t.slice(p + 1, g + 1), t.slice(p - 1, p), v === 45 && L.charCodeAt(0) === 45) {
3365
+ g++, n.push(["word", t.slice(p, g), d, p - h, d, g - h, p]), p = g - 1;
3366
+ break;
3367
+ }
3368
+ n.push(["operator", t.slice(p, g), d, p - h, d, g - h, p]), p = g - 1;
3369
+ break;
3370
+ default:
3371
+ if (v === 47 && (t.charCodeAt(p + 1) === 42 || s.loose && !y && t.charCodeAt(p + 1) === 47)) {
3372
+ if (t.charCodeAt(p + 1) === 42) g = t.indexOf("*/", p + 2) + 1, g === 0 && R("comment");
3373
+ else {
3374
+ let M = t.indexOf(`
3375
+ `, p + 2);
3376
+ g = M !== -1 ? M - 1 : f;
3377
+ }
3378
+ k = t.slice(p, g + 1), b = k.split(`
3379
+ `), x = b.length - 1, x > 0 ? (T = d + x, E = g - b[x].length) : (T = d, E = h), n.push(["comment", k, d, p - h, T, g - E, p]), h = E, d = T, p = g;
3380
+ } else if (v === 35 && !a.test(t.slice(p + 1, p + 2))) g = p + 1, n.push(["#", t.slice(p, g), d, p - h, d, g - h, p]), p = g - 1;
3381
+ else if ((v === 117 || v === 85) && t.charCodeAt(p + 1) === 43) {
3382
+ g = p + 2;
3383
+ do
3384
+ g += 1, v = t.charCodeAt(g);
3385
+ while (g < f && c.test(t.slice(g, g + 1)));
3386
+ n.push(["unicoderange", t.slice(p, g), d, p - h, d, g - h, p]), p = g - 1;
3387
+ } else if (v === 47) g = p + 1, n.push(["operator", t.slice(p, g), d, p - h, d, g - h, p]), p = g - 1;
3388
+ else {
3389
+ let M = i;
3390
+ if (v >= 48 && v <= 57 && (M = l), M.lastIndex = p + 1, M.test(t), M.lastIndex === 0 ? g = t.length - 1 : g = M.lastIndex - 2, M === l || v === 46) {
3391
+ let P = t.charCodeAt(g), I = t.charCodeAt(g + 1), U = t.charCodeAt(g + 2);
3392
+ (P === 101 || P === 69) && (I === 45 || I === 43) && U >= 48 && U <= 57 && (l.lastIndex = g + 2, l.test(t), l.lastIndex === 0 ? g = t.length - 1 : g = l.lastIndex - 2);
3393
+ }
3394
+ n.push(["word", t.slice(p, g + 1), d, p - h, d, g - h, p]), p = g;
3395
+ }
3396
+ break;
3397
+ }
3398
+ p++;
3399
+ }
3400
+ return n;
3401
+ };
3402
+ }), es = _((e, r) => {
3403
+ var o = class extends Error {
3404
+ constructor(i) {
3405
+ super(i), this.name = this.constructor.name, this.message = i || "An error ocurred while parsing.", typeof Error.captureStackTrace == "function" ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error(i).stack;
3406
+ }
3407
+ };
3408
+ r.exports = o;
3409
+ }), ts = _((e, r) => {
3410
+ var o = zn(), i = qn(), l = Fn(), a = Dn(), c = Un(), u = Bn(), m = Vn(), s = Gn(), n = Hn(), t = Jn(), f = Qn(), h = Kn(), d = Zn(), p = Xn(), w = or(), y = ir(), v = ar(), g = es();
3411
+ function O(b) {
3412
+ return b.sort((x, k) => x - k);
3413
+ }
3414
+ r.exports = class {
3415
+ constructor(b, x) {
3416
+ let k = { loose: !1 };
3417
+ this.cache = [], this.input = b, this.options = Object.assign({}, k, x), this.position = 0, this.unbalanced = 0, this.root = new o();
3418
+ let T = new i();
3419
+ this.root.append(T), this.current = T, this.tokens = p(b, this.options);
3420
+ }
3421
+ parse() {
3422
+ return this.loop();
3423
+ }
3424
+ colon() {
3425
+ let b = this.currToken;
3426
+ this.newNode(new a({ value: b[1], source: { start: { line: b[2], column: b[3] }, end: { line: b[4], column: b[5] } }, sourceIndex: b[6] })), this.position++;
3427
+ }
3428
+ comma() {
3429
+ let b = this.currToken;
3430
+ this.newNode(new c({ value: b[1], source: { start: { line: b[2], column: b[3] }, end: { line: b[4], column: b[5] } }, sourceIndex: b[6] })), this.position++;
3431
+ }
3432
+ comment() {
3433
+ let b = !1, x = this.currToken[1].replace(/\/\*|\*\//g, ""), k;
3434
+ this.options.loose && x.startsWith("//") && (x = x.substring(2), b = !0), k = new u({ value: x, inline: b, source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[4], column: this.currToken[5] } }, sourceIndex: this.currToken[6] }), this.newNode(k), this.position++;
3435
+ }
3436
+ error(b, x) {
3437
+ throw new g(b + ` at line: ${x[2]}, column ${x[3]}`);
3438
+ }
3439
+ loop() {
3440
+ for (; this.position < this.tokens.length; ) this.parseTokens();
3441
+ return !this.current.last && this.spaces ? this.current.raws.before += this.spaces : this.spaces && (this.current.last.raws.after += this.spaces), this.spaces = "", this.root;
3442
+ }
3443
+ operator() {
3444
+ let b = this.currToken[1], x;
3445
+ if (b === "+" || b === "-") {
3446
+ if (this.options.loose || this.position > 0 && (this.current.type === "func" && this.current.value === "calc" ? this.prevToken[0] !== "space" && this.prevToken[0] !== "(" ? this.error("Syntax Error", this.currToken) : this.nextToken[0] !== "space" && this.nextToken[0] !== "word" ? this.error("Syntax Error", this.currToken) : this.nextToken[0] === "word" && this.current.last.type !== "operator" && this.current.last.value !== "(" && this.error("Syntax Error", this.currToken) : (this.nextToken[0] === "space" || this.nextToken[0] === "operator" || this.prevToken[0] === "operator") && this.error("Syntax Error", this.currToken)), this.options.loose) {
3447
+ if ((!this.current.nodes.length || this.current.last && this.current.last.type === "operator") && this.nextToken[0] === "word") return this.word();
3448
+ } else if (this.nextToken[0] === "word") return this.word();
3449
+ }
3450
+ return x = new n({ value: this.currToken[1], source: { start: { line: this.currToken[2], column: this.currToken[3] }, end: { line: this.currToken[2], column: this.currToken[3] } }, sourceIndex: this.currToken[4] }), this.position++, this.newNode(x);
3451
+ }
3452
+ parseTokens() {
3453
+ switch (this.currToken[0]) {
3454
+ case "space":
3455
+ this.space();
3456
+ break;
3457
+ case "colon":
3458
+ this.colon();
3459
+ break;
3460
+ case "comma":
3461
+ this.comma();
3462
+ break;
3463
+ case "comment":
3464
+ this.comment();
3465
+ break;
3466
+ case "(":
3467
+ this.parenOpen();
3468
+ break;
3469
+ case ")":
3470
+ this.parenClose();
3471
+ break;
3472
+ case "atword":
3473
+ case "word":
3474
+ this.word();
3475
+ break;
3476
+ case "operator":
3477
+ this.operator();
3478
+ break;
3479
+ case "string":
3480
+ this.string();
3481
+ break;
3482
+ case "unicoderange":
3483
+ this.unicodeRange();
3484
+ break;
3485
+ default:
3486
+ this.word();
3487
+ break;
3488
+ }
3489
+ }
3490
+ parenOpen() {
3491
+ let b = 1, x = this.position + 1, k = this.currToken, T;
3492
+ for (; x < this.tokens.length && b; ) {
3493
+ let E = this.tokens[x];
3494
+ E[0] === "(" && b++, E[0] === ")" && b--, x++;
3495
+ }
3496
+ if (b && this.error("Expected closing parenthesis", k), T = this.current.last, T && T.type === "func" && T.unbalanced < 0 && (T.unbalanced = 0, this.current = T), this.current.unbalanced++, this.newNode(new t({ value: k[1], source: { start: { line: k[2], column: k[3] }, end: { line: k[4], column: k[5] } }, sourceIndex: k[6] })), this.position++, this.current.type === "func" && this.current.unbalanced && this.current.value === "url" && this.currToken[0] !== "string" && this.currToken[0] !== ")" && !this.options.loose) {
3497
+ let E = this.nextToken, j = this.currToken[1], $ = { line: this.currToken[2], column: this.currToken[3] };
3498
+ for (; E && E[0] !== ")" && this.current.unbalanced; ) this.position++, j += this.currToken[1], E = this.nextToken;
3499
+ this.position !== this.tokens.length - 1 && (this.position++, this.newNode(new h({ value: j, source: { start: $, end: { line: this.currToken[4], column: this.currToken[5] } }, sourceIndex: this.currToken[6] })));
3500
+ }
3501
+ }
3502
+ parenClose() {
3503
+ let b = this.currToken;
3504
+ this.newNode(new t({ value: b[1], source: { start: { line: b[2], column: b[3] }, end: { line: b[4], column: b[5] } }, sourceIndex: b[6] })), this.position++, !(this.position >= this.tokens.length - 1 && !this.current.unbalanced) && (this.current.unbalanced--, this.current.unbalanced < 0 && this.error("Expected opening parenthesis", b), !this.current.unbalanced && this.cache.length && (this.current = this.cache.pop()));
3505
+ }
3506
+ space() {
3507
+ let b = this.currToken;
3508
+ this.position === this.tokens.length - 1 || this.nextToken[0] === "," || this.nextToken[0] === ")" ? (this.current.last.raws.after += b[1], this.position++) : (this.spaces = b[1], this.position++);
3509
+ }
3510
+ unicodeRange() {
3511
+ let b = this.currToken;
3512
+ this.newNode(new d({ value: b[1], source: { start: { line: b[2], column: b[3] }, end: { line: b[4], column: b[5] } }, sourceIndex: b[6] })), this.position++;
3513
+ }
3514
+ splitWord() {
3515
+ let b = this.nextToken, x = this.currToken[1], k = /^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/, T = /^(?!\#([a-z0-9]+))[\#\{\}]/gi, E, j;
3516
+ if (!T.test(x)) for (; b && b[0] === "word"; ) {
3517
+ this.position++;
3518
+ let $ = this.currToken[1];
3519
+ x += $, b = this.nextToken;
3520
+ }
3521
+ E = y(x, "@"), j = O(v(w([[0], E]))), j.forEach(($, L) => {
3522
+ let R = j[L + 1] || x.length, M = x.slice($, R), P;
3523
+ if (~E.indexOf($)) P = new l({ value: M.slice(1), source: { start: { line: this.currToken[2], column: this.currToken[3] + $ }, end: { line: this.currToken[4], column: this.currToken[3] + (R - 1) } }, sourceIndex: this.currToken[6] + j[L] });
3524
+ else if (k.test(this.currToken[1])) {
3525
+ let I = M.replace(k, "");
3526
+ P = new s({ value: M.replace(I, ""), source: { start: { line: this.currToken[2], column: this.currToken[3] + $ }, end: { line: this.currToken[4], column: this.currToken[3] + (R - 1) } }, sourceIndex: this.currToken[6] + j[L], unit: I });
3527
+ } else P = new (b && b[0] === "(" ? m : h)({ value: M, source: { start: { line: this.currToken[2], column: this.currToken[3] + $ }, end: { line: this.currToken[4], column: this.currToken[3] + (R - 1) } }, sourceIndex: this.currToken[6] + j[L] }), P.type === "word" ? (P.isHex = /^#(.+)/.test(M), P.isColor = /^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(M)) : this.cache.push(this.current);
3528
+ this.newNode(P);
3529
+ }), this.position++;
3530
+ }
3531
+ string() {
3532
+ let b = this.currToken, x = this.currToken[1], k = /^(\"|\')/, T = k.test(x), E = "", j;
3533
+ T && (E = x.match(k)[0], x = x.slice(1, x.length - 1)), j = new f({ value: x, source: { start: { line: b[2], column: b[3] }, end: { line: b[4], column: b[5] } }, sourceIndex: b[6], quoted: T }), j.raws.quote = E, this.newNode(j), this.position++;
3534
+ }
3535
+ word() {
3536
+ return this.splitWord();
3537
+ }
3538
+ newNode(b) {
3539
+ return this.spaces && (b.raws.before += this.spaces, this.spaces = ""), this.current.append(b);
3540
+ }
3541
+ get currToken() {
3542
+ return this.tokens[this.position];
3543
+ }
3544
+ get nextToken() {
3545
+ return this.tokens[this.position + 1];
3546
+ }
3547
+ get prevToken() {
3548
+ return this.tokens[this.position - 1];
3549
+ }
3550
+ };
3551
+ }), ur = {};
3552
+ Gt(ur, { languages: () => ri, options: () => oi, parsers: () => qr, printers: () => zi });
3553
+ var rs = (e, r, o, i) => {
3554
+ if (!(e && r == null)) return r.replaceAll ? r.replaceAll(o, i) : o.global ? r.replace(o, i) : r.split(o).join(i);
3555
+ }, D = rs, lr = "string", cr = "array", pr = "cursor", St = "indent", Ct = "align", hr = "trim", _t = "group", Et = "fill", Xe = "if-break", fr = "indent-if-break", dr = "line-suffix", mr = "line-suffix-boundary", xe = "line", vr = "label", At = "break-parent", yr = /* @__PURE__ */ new Set([pr, St, Ct, hr, _t, Et, Xe, fr, dr, mr, xe, vr, At]);
3556
+ function ns(e) {
3557
+ if (typeof e == "string") return lr;
3558
+ if (Array.isArray(e)) return cr;
3559
+ if (!e) return;
3560
+ let { type: r } = e;
3561
+ if (yr.has(r)) return r;
3562
+ }
3563
+ var gr = ns, ss = (e) => new Intl.ListFormat("en-US", { type: "disjunction" }).format(e);
3564
+ function os(e) {
3565
+ let r = e === null ? "null" : typeof e;
3566
+ if (r !== "string" && r !== "object") return `Unexpected doc '${r}',
3567
+ Expected it to be 'string' or 'object'.`;
3568
+ if (gr(e)) throw new Error("doc is valid.");
3569
+ let o = Object.prototype.toString.call(e);
3570
+ if (o !== "[object Object]") return `Unexpected doc '${o}'.`;
3571
+ let i = ss([...yr].map((l) => `'${l}'`));
3572
+ return `Unexpected doc.type '${e.type}'.
3573
+ Expected it to be ${i}.`;
3574
+ }
3575
+ var is = class extends Error {
3576
+ constructor(r) {
3577
+ super(os(r));
3578
+ rt(this, "name", "InvalidDocError");
3579
+ this.doc = r;
3580
+ }
3581
+ }, as = is, us = () => {
3582
+ }, ls = us;
3583
+ function G(e) {
3584
+ return { type: St, contents: e };
3585
+ }
3586
+ function wr(e, r) {
3587
+ return { type: Ct, contents: r, n: e };
3588
+ }
3589
+ function K(e, r = {}) {
3590
+ return ls(r.expandedStates), { type: _t, id: r.id, contents: e, break: !!r.shouldBreak, expandedStates: r.expandedStates };
3591
+ }
3592
+ function cs(e) {
3593
+ return wr({ type: "root" }, e);
3594
+ }
3595
+ function He(e) {
3596
+ return wr(-1, e);
3597
+ }
3598
+ function ut(e) {
3599
+ return { type: Et, parts: e };
3600
+ }
3601
+ function br(e, r = "", o = {}) {
3602
+ return { type: Xe, breakContents: e, flatContents: r, groupId: o.groupId };
3603
+ }
3604
+ var jt = { type: At }, ps = { type: xe, hard: !0 }, B = { type: xe }, Z = { type: xe, soft: !0 }, F = [ps, jt];
3605
+ function ae(e, r) {
3606
+ let o = [];
3607
+ for (let i = 0; i < r.length; i++) i !== 0 && o.push(e), o.push(r[i]);
3608
+ return o;
3609
+ }
3610
+ var hs = (e, r, o) => {
3611
+ if (!(e && r == null)) return Array.isArray(r) || typeof r == "string" ? r[o < 0 ? r.length + o : o] : r.at(o);
3612
+ }, je = hs;
3613
+ function fs(e, r) {
3614
+ if (typeof e == "string") return r(e);
3615
+ let o = /* @__PURE__ */ new Map();
3616
+ return i(e);
3617
+ function i(a) {
3618
+ if (o.has(a)) return o.get(a);
3619
+ let c = l(a);
3620
+ return o.set(a, c), c;
3621
+ }
3622
+ function l(a) {
3623
+ switch (gr(a)) {
3624
+ case cr:
3625
+ return r(a.map(i));
3626
+ case Et:
3627
+ return r({ ...a, parts: a.parts.map(i) });
3628
+ case Xe:
3629
+ return r({ ...a, breakContents: i(a.breakContents), flatContents: i(a.flatContents) });
3630
+ case _t: {
3631
+ let { expandedStates: c, contents: u } = a;
3632
+ return c ? (c = c.map(i), u = c[0]) : u = i(u), r({ ...a, contents: u, expandedStates: c });
3633
+ }
3634
+ case Ct:
3635
+ case St:
3636
+ case fr:
3637
+ case vr:
3638
+ case dr:
3639
+ return r({ ...a, contents: i(a.contents) });
3640
+ case lr:
3641
+ case pr:
3642
+ case hr:
3643
+ case mr:
3644
+ case xe:
3645
+ case At:
3646
+ return r(a);
3647
+ default:
3648
+ throw new as(a);
3649
+ }
3650
+ }
3651
+ }
3652
+ function ds(e) {
3653
+ return e.type === xe && !e.hard ? e.soft ? "" : " " : e.type === Xe ? e.flatContents : e;
3654
+ }
3655
+ function ms(e) {
3656
+ return fs(e, ds);
3657
+ }
3658
+ function vs(e) {
3659
+ return Array.isArray(e) && e.length > 0;
3660
+ }
3661
+ var et = vs, qe = "'", Wt = '"';
3662
+ function ys(e, r) {
3663
+ let o = r === !0 || r === qe ? qe : Wt, i = o === qe ? Wt : qe, l = 0, a = 0;
3664
+ for (let c of e) c === o ? l++ : c === i && a++;
3665
+ return l > a ? i : o;
3666
+ }
3667
+ var gs = ys;
3668
+ function ws(e, r, o) {
3669
+ let i = r === '"' ? "'" : '"', l = D(!1, e, /\\(.)|(["'])/gsu, (a, c, u) => c === i ? c : u === r ? "\\" + u : u || (o && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(c) ? c : "\\" + c));
3670
+ return r + l + r;
3671
+ }
3672
+ var bs = ws;
3673
+ function xs(e, r) {
3674
+ let o = e.slice(1, -1), i = r.parser === "json" || r.parser === "jsonc" || r.parser === "json5" && r.quoteProps === "preserve" && !r.singleQuote ? '"' : r.__isInHtmlAttribute ? "'" : gs(o, r.singleQuote);
3675
+ return bs(o, i, !(r.parser === "css" || r.parser === "less" || r.parser === "scss" || r.__embeddedInHtml));
3676
+ }
3677
+ var xr = xs, ks = class extends Error {
3678
+ constructor(r, o, i = "type") {
3679
+ super(`Unexpected ${o} node ${i}: ${JSON.stringify(r[i])}.`);
3680
+ rt(this, "name", "UnexpectedNodeError");
3681
+ this.node = r;
3682
+ }
3683
+ }, Os = ks;
3684
+ function Ts(e) {
3685
+ return (e == null ? void 0 : e.type) === "front-matter";
3686
+ }
3687
+ var Je = Ts, Ss = /* @__PURE__ */ new Set(["raw", "raws", "sourceIndex", "source", "before", "after", "trailingComma", "spaces"]);
3688
+ function kr(e, r, o) {
3689
+ if (Je(e) && e.language === "yaml" && delete r.value, e.type === "css-comment" && o.type === "css-root" && o.nodes.length > 0 && ((o.nodes[0] === e || Je(o.nodes[0]) && o.nodes[1] === e) && (delete r.text, /^\*\s*@(?:format|prettier)\s*$/u.test(e.text)) || o.type === "css-root" && je(!1, o.nodes, -1) === e)) return null;
3690
+ if (e.type === "value-root" && delete r.text, (e.type === "media-query" || e.type === "media-query-list" || e.type === "media-feature-expression") && delete r.value, e.type === "css-rule" && delete r.params, (e.type === "media-feature" || e.type === "media-keyword" || e.type === "media-type" || e.type === "media-unknown" || e.type === "media-url" || e.type === "media-value" || e.type === "selector-attribute" || e.type === "selector-string" || e.type === "selector-class" || e.type === "selector-combinator" || e.type === "value-string") && e.value && (r.value = Cs(e.value)), e.type === "selector-combinator" && (r.value = D(!1, r.value, /\s+/gu, " ")), e.type === "media-feature" && (r.value = D(!1, r.value, " ", "")), (e.type === "value-word" && (e.isColor && e.isHex || ["initial", "inherit", "unset", "revert"].includes(e.value.toLowerCase())) || e.type === "media-feature" || e.type === "selector-root-invalid" || e.type === "selector-pseudo") && (r.value = r.value.toLowerCase()), e.type === "css-decl" && (r.prop = e.prop.toLowerCase()), (e.type === "css-atrule" || e.type === "css-import") && (r.name = e.name.toLowerCase()), e.type === "value-number" && (r.unit = e.unit.toLowerCase()), e.type === "value-unknown" && (r.value = D(!1, r.value, /;$/gu, "")), e.type === "selector-attribute" && (r.attribute = e.attribute.trim(), e.namespace && typeof e.namespace == "string" && (r.namespace = e.namespace.trim() || !0), e.value && (r.value = D(!1, r.value.trim(), /^["']|["']$/gu, ""), delete r.quoted)), (e.type === "media-value" || e.type === "media-type" || e.type === "value-number" || e.type === "selector-root-invalid" || e.type === "selector-class" || e.type === "selector-combinator" || e.type === "selector-tag") && e.value && (r.value = D(!1, r.value, /([\d+.e-]+)([a-z]*)/giu, (i, l, a) => {
3691
+ let c = Number(l);
3692
+ return Number.isNaN(c) ? i : c + a.toLowerCase();
3693
+ })), e.type === "selector-tag") {
3694
+ let i = r.value.toLowerCase();
3695
+ ["from", "to"].includes(i) && (r.value = i);
3696
+ }
3697
+ if (e.type === "css-atrule" && e.name.toLowerCase() === "supports" && delete r.value, e.type === "selector-unknown" && delete r.value, e.type === "value-comma_group") {
3698
+ let i = e.groups.findIndex((l) => l.type === "value-number" && l.unit === "...");
3699
+ i !== -1 && (r.groups[i].unit = "", r.groups.splice(i + 1, 0, { type: "value-word", value: "...", isColor: !1, isHex: !1 }));
3700
+ }
3701
+ if (e.type === "value-comma_group" && e.groups.some((i) => i.type === "value-atword" && i.value.endsWith("[") || i.type === "value-word" && i.value.startsWith("]"))) return { type: "value-atword", value: e.groups.map((i) => i.value).join(""), group: { open: null, close: null, groups: [], type: "value-paren_group" } };
3702
+ }
3703
+ kr.ignoredProperties = Ss;
3704
+ function Cs(e) {
3705
+ return D(!1, D(!1, e, "'", '"'), /\\([^\da-f])/giu, "$1");
3706
+ }
3707
+ var _s = kr;
3708
+ async function Es(e, r) {
3709
+ if (e.language === "yaml") {
3710
+ let o = e.value.trim(), i = o ? await r(o, { parser: "yaml" }) : "";
3711
+ return cs([e.startDelimiter, e.explicitLanguage, F, i, i ? F : "", e.endDelimiter]);
3712
+ }
3713
+ }
3714
+ var As = Es;
3715
+ function Or(e) {
3716
+ let { node: r } = e;
3717
+ if (r.type === "front-matter") return async (o) => {
3718
+ let i = await As(r, o);
3719
+ return i ? [i, F] : void 0;
3720
+ };
3721
+ }
3722
+ Or.getVisitorKeys = (e) => e.type === "css-root" ? ["frontMatter"] : [];
3723
+ var js = Or, Se = null;
3724
+ function Ae(e) {
3725
+ if (Se !== null && typeof Se.property) {
3726
+ let r = Se;
3727
+ return Se = Ae.prototype = null, r;
3728
+ }
3729
+ return Se = Ae.prototype = e ?? /* @__PURE__ */ Object.create(null), new Ae();
3730
+ }
3731
+ var Is = 10;
3732
+ for (let e = 0; e <= Is; e++) Ae();
3733
+ function Ps(e) {
3734
+ return Ae(e);
3735
+ }
3736
+ function Ms(e, r = "type") {
3737
+ Ps(e);
3738
+ function o(i) {
3739
+ let l = i[r], a = e[l];
3740
+ if (!Array.isArray(a)) throw Object.assign(new Error(`Missing visitor keys for '${l}'.`), { node: i });
3741
+ return a;
3742
+ }
3743
+ return o;
3744
+ }
3745
+ var $s = Ms, Rs = { "front-matter": [], "css-root": ["frontMatter", "nodes"], "css-comment": [], "css-rule": ["selector", "nodes"], "css-decl": ["value", "selector", "nodes"], "css-atrule": ["selector", "params", "value", "nodes"], "media-query-list": ["nodes"], "media-query": ["nodes"], "media-type": [], "media-feature-expression": ["nodes"], "media-feature": [], "media-colon": [], "media-value": [], "media-keyword": [], "media-url": [], "media-unknown": [], "selector-root": ["nodes"], "selector-selector": ["nodes"], "selector-comment": [], "selector-string": [], "selector-tag": [], "selector-id": [], "selector-class": [], "selector-attribute": [], "selector-combinator": ["nodes"], "selector-universal": [], "selector-pseudo": ["nodes"], "selector-nesting": [], "selector-unknown": [], "value-value": ["group"], "value-root": ["group"], "value-comment": [], "value-comma_group": ["groups"], "value-paren_group": ["open", "groups", "close"], "value-func": ["group"], "value-paren": [], "value-number": [], "value-operator": [], "value-word": [], "value-colon": [], "value-comma": [], "value-string": [], "value-atword": [], "value-unicode-range": [], "value-unknown": [] }, Ns = Rs, Ls = $s(Ns), Ws = Ls;
3746
+ function zs(e, r) {
3747
+ let o = 0;
3748
+ for (let i = 0; i < e.line - 1; ++i) o = r.indexOf(`
3749
+ `, o) + 1;
3750
+ return o + e.column;
3751
+ }
3752
+ var Tr = zs;
3753
+ function It(e) {
3754
+ return (r, o, i) => {
3755
+ let l = !!(i != null && i.backwards);
3756
+ if (o === !1) return !1;
3757
+ let { length: a } = r, c = o;
3758
+ for (; c >= 0 && c < a; ) {
3759
+ let u = r.charAt(c);
3760
+ if (e instanceof RegExp) {
3761
+ if (!e.test(u)) return c;
3762
+ } else if (!e.includes(u)) return c;
3763
+ l ? c-- : c++;
3764
+ }
3765
+ return c === -1 || c === a ? c : !1;
3766
+ };
3767
+ }
3768
+ var Sr = It(" "), qs = It(",; "), Cr = It(/[^\n\r]/u);
3769
+ function _r(e, r) {
3770
+ var o, i, l;
3771
+ if (typeof ((i = (o = e.source) == null ? void 0 : o.start) == null ? void 0 : i.offset) == "number") return e.source.start.offset;
3772
+ if (typeof e.sourceIndex == "number") return e.sourceIndex;
3773
+ if ((l = e.source) != null && l.start) return Tr(e.source.start, r);
3774
+ throw Object.assign(new Error("Can not locate node."), { node: e });
3775
+ }
3776
+ function Pt(e, r) {
3777
+ var o, i;
3778
+ if (e.type === "css-comment" && e.inline) return Cr(r, e.source.startOffset);
3779
+ if (typeof ((i = (o = e.source) == null ? void 0 : o.end) == null ? void 0 : i.offset) == "number") return e.source.end.offset;
3780
+ if (e.source) {
3781
+ if (e.source.end) return Tr(e.source.end, r);
3782
+ if (et(e.nodes)) return Pt(je(!1, e.nodes, -1), r);
3783
+ }
3784
+ return null;
3785
+ }
3786
+ function Er(e, r) {
3787
+ e.source && (e.source.startOffset = _r(e, r), e.source.endOffset = Pt(e, r));
3788
+ for (let o in e) {
3789
+ let i = e[o];
3790
+ o === "source" || !i || typeof i != "object" || (i.type === "value-root" || i.type === "value-unknown" ? Ar(i, Fs(e), i.text || i.value) : Er(i, r));
3791
+ }
3792
+ }
3793
+ function Ar(e, r, o) {
3794
+ e.source && (e.source.startOffset = _r(e, o) + r, e.source.endOffset = Pt(e, o) + r);
3795
+ for (let i in e) {
3796
+ let l = e[i];
3797
+ i === "source" || !l || typeof l != "object" || Ar(l, r, o);
3798
+ }
3799
+ }
3800
+ function Fs(e) {
3801
+ var r;
3802
+ let o = e.source.startOffset;
3803
+ return typeof e.prop == "string" && (o += e.prop.length), e.type === "css-atrule" && typeof e.name == "string" && (o += 1 + e.name.length + e.raws.afterName.match(/^\s*:?\s*/u)[0].length), e.type !== "css-atrule" && typeof ((r = e.raws) == null ? void 0 : r.between) == "string" && (o += e.raws.between.length), o;
3804
+ }
3805
+ function Ds(e) {
3806
+ let r = "initial", o = "initial", i, l = !1, a = [];
3807
+ for (let c = 0; c < e.length; c++) {
3808
+ let u = e[c];
3809
+ switch (r) {
3810
+ case "initial":
3811
+ if (u === "'") {
3812
+ r = "single-quotes";
3813
+ continue;
3814
+ }
3815
+ if (u === '"') {
3816
+ r = "double-quotes";
3817
+ continue;
3818
+ }
3819
+ if ((u === "u" || u === "U") && e.slice(c, c + 4).toLowerCase() === "url(") {
3820
+ r = "url", c += 3;
3821
+ continue;
3822
+ }
3823
+ if (u === "*" && e[c - 1] === "/") {
3824
+ r = "comment-block";
3825
+ continue;
3826
+ }
3827
+ if (u === "/" && e[c - 1] === "/") {
3828
+ r = "comment-inline", i = c - 1;
3829
+ continue;
3830
+ }
3831
+ continue;
3832
+ case "single-quotes":
3833
+ if (u === "'" && e[c - 1] !== "\\" && (r = o, o = "initial"), u === `
3834
+ ` || u === "\r") return e;
3835
+ continue;
3836
+ case "double-quotes":
3837
+ if (u === '"' && e[c - 1] !== "\\" && (r = o, o = "initial"), u === `
3838
+ ` || u === "\r") return e;
3839
+ continue;
3840
+ case "url":
3841
+ if (u === ")" && (r = "initial"), u === `
3842
+ ` || u === "\r") return e;
3843
+ if (u === "'") {
3844
+ r = "single-quotes", o = "url";
3845
+ continue;
3846
+ }
3847
+ if (u === '"') {
3848
+ r = "double-quotes", o = "url";
3849
+ continue;
3850
+ }
3851
+ continue;
3852
+ case "comment-block":
3853
+ u === "/" && e[c - 1] === "*" && (r = "initial");
3854
+ continue;
3855
+ case "comment-inline":
3856
+ (u === '"' || u === "'" || u === "*") && (l = !0), (u === `
3857
+ ` || u === "\r") && (l && a.push([i, c]), r = "initial", l = !1);
3858
+ continue;
3859
+ }
3860
+ }
3861
+ for (let [c, u] of a) e = e.slice(0, c) + D(!1, e.slice(c, u), /["'*]/gu, " ") + e.slice(u);
3862
+ return e;
3863
+ }
3864
+ function J(e) {
3865
+ var r;
3866
+ return (r = e.source) == null ? void 0 : r.startOffset;
3867
+ }
3868
+ function H(e) {
3869
+ var r;
3870
+ return (r = e.source) == null ? void 0 : r.endOffset;
3871
+ }
3872
+ var Us = /\*\/$/, Bs = /^\/\*\*?/, jr = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/, Vs = /(^|\s+)\/\/([^\n\r]*)/g, zt = /^(\r?\n)+/, Gs = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g, qt = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g, Hs = /(\r?\n|^) *\* ?/g, Ir = [];
3873
+ function Js(e) {
3874
+ let r = e.match(jr);
3875
+ return r ? r[0].trimStart() : "";
3876
+ }
3877
+ function Qs(e) {
3878
+ let r = e.match(jr), o = r == null ? void 0 : r[0];
3879
+ return o == null ? e : e.slice(o.length);
3880
+ }
3881
+ function Ks(e) {
3882
+ let r = `
3883
+ `;
3884
+ e = D(!1, e.replace(Bs, "").replace(Us, ""), Hs, "$1");
3885
+ let o = "";
3886
+ for (; o !== e; ) o = e, e = D(!1, e, Gs, `${r}$1 $2${r}`);
3887
+ e = e.replace(zt, "").trimEnd();
3888
+ let i = /* @__PURE__ */ Object.create(null), l = D(!1, e, qt, "").replace(zt, "").trimEnd(), a;
3889
+ for (; a = qt.exec(e); ) {
3890
+ let c = D(!1, a[2], Vs, "");
3891
+ if (typeof i[a[1]] == "string" || Array.isArray(i[a[1]])) {
3892
+ let u = i[a[1]];
3893
+ i[a[1]] = [...Ir, ...Array.isArray(u) ? u : [u], c];
3894
+ } else i[a[1]] = c;
3895
+ }
3896
+ return { comments: l, pragmas: i };
3897
+ }
3898
+ function Zs({ comments: e = "", pragmas: r = {} }) {
3899
+ let o = `
3900
+ `, i = "/**", l = " *", a = " */", c = Object.keys(r), u = c.flatMap((s) => Ft(s, r[s])).map((s) => `${l} ${s}${o}`).join("");
3901
+ if (!e) {
3902
+ if (c.length === 0) return "";
3903
+ if (c.length === 1 && !Array.isArray(r[c[0]])) {
3904
+ let s = r[c[0]];
3905
+ return `${i} ${Ft(c[0], s)[0]}${a}`;
3906
+ }
3907
+ }
3908
+ let m = e.split(o).map((s) => `${l} ${s}`).join(o) + o;
3909
+ return i + o + (e ? m : "") + (e && c.length > 0 ? l + o : "") + u + a;
3910
+ }
3911
+ function Ft(e, r) {
3912
+ return [...Ir, ...Array.isArray(r) ? r : [r]].map((o) => `@${e} ${o}`.trim());
3913
+ }
3914
+ function Ys(e) {
3915
+ if (!e.startsWith("#!")) return "";
3916
+ let r = e.indexOf(`
3917
+ `);
3918
+ return r === -1 ? e : e.slice(0, r);
3919
+ }
3920
+ var Xs = Ys;
3921
+ function Pr(e) {
3922
+ let r = Xs(e);
3923
+ r && (e = e.slice(r.length + 1));
3924
+ let o = Js(e), { pragmas: i, comments: l } = Ks(o);
3925
+ return { shebang: r, text: e, pragmas: i, comments: l };
3926
+ }
3927
+ function eo(e) {
3928
+ let { pragmas: r } = Pr(e);
3929
+ return Object.prototype.hasOwnProperty.call(r, "prettier") || Object.prototype.hasOwnProperty.call(r, "format");
3930
+ }
3931
+ function to(e) {
3932
+ let { shebang: r, text: o, pragmas: i, comments: l } = Pr(e), a = Qs(o), c = Zs({ pragmas: { format: "", ...i }, comments: l.trimStart() });
3933
+ return (r ? `${r}
3934
+ ` : "") + c + (a.startsWith(`
3935
+ `) ? `
3936
+ ` : `
3937
+
3938
+ `) + a;
3939
+ }
3940
+ var Ce = 3;
3941
+ function ro(e) {
3942
+ let r = e.slice(0, Ce);
3943
+ if (r !== "---" && r !== "+++") return;
3944
+ let o = e.indexOf(`
3945
+ `, Ce);
3946
+ if (o === -1) return;
3947
+ let i = e.slice(Ce, o).trim(), l = e.indexOf(`
3948
+ ${r}`, o), a = i;
3949
+ if (a || (a = r === "+++" ? "toml" : "yaml"), l === -1 && r === "---" && a === "yaml" && (l = e.indexOf(`
3950
+ ...`, o)), l === -1) return;
3951
+ let c = l + 1 + Ce, u = e.charAt(c + 1);
3952
+ if (!/\s?/u.test(u)) return;
3953
+ let m = e.slice(0, c);
3954
+ return { type: "front-matter", language: a, explicitLanguage: i, value: e.slice(o + 1, l), startDelimiter: r, endDelimiter: m.slice(-Ce), raw: m };
3955
+ }
3956
+ function no(e) {
3957
+ let r = ro(e);
3958
+ if (!r) return { content: e };
3959
+ let { raw: o } = r;
3960
+ return { frontMatter: r, content: D(!1, o, /[^\n]/gu, " ") + e.slice(o.length) };
3961
+ }
3962
+ var Mt = no;
3963
+ function so(e) {
3964
+ return eo(Mt(e).content);
3965
+ }
3966
+ function oo(e) {
3967
+ let { frontMatter: r, content: o } = Mt(e);
3968
+ return (r ? r.raw + `
3969
+
3970
+ ` : "") + to(o);
3971
+ }
3972
+ var io = /* @__PURE__ */ new Set(["red", "green", "blue", "alpha", "a", "rgb", "hue", "h", "saturation", "s", "lightness", "l", "whiteness", "w", "blackness", "b", "tint", "shade", "blend", "blenda", "contrast", "hsl", "hsla", "hwb", "hwba"]);
3973
+ function ao(e) {
3974
+ var r, o;
3975
+ return (o = (r = e.findAncestor((i) => i.type === "css-decl")) == null ? void 0 : r.prop) == null ? void 0 : o.toLowerCase();
3976
+ }
3977
+ var uo = /* @__PURE__ */ new Set(["initial", "inherit", "unset", "revert"]);
3978
+ function lo(e) {
3979
+ return uo.has(e.toLowerCase());
3980
+ }
3981
+ function co(e, r) {
3982
+ var o;
3983
+ let i = e.findAncestor((l) => l.type === "css-atrule");
3984
+ return ((o = i == null ? void 0 : i.name) == null ? void 0 : o.toLowerCase().endsWith("keyframes")) && ["from", "to"].includes(r.toLowerCase());
3985
+ }
3986
+ function ye(e) {
3987
+ return e.includes("$") || e.includes("@") || e.includes("#") || e.startsWith("%") || e.startsWith("--") || e.startsWith(":--") || e.includes("(") && e.includes(")") ? e : e.toLowerCase();
3988
+ }
3989
+ function Be(e, r) {
3990
+ var o;
3991
+ let i = e.findAncestor((l) => l.type === "value-func");
3992
+ return ((o = i == null ? void 0 : i.value) == null ? void 0 : o.toLowerCase()) === r;
3993
+ }
3994
+ function po(e) {
3995
+ var r;
3996
+ let o = e.findAncestor((l) => l.type === "css-rule"), i = (r = o == null ? void 0 : o.raws) == null ? void 0 : r.selector;
3997
+ return i && (i.startsWith(":import") || i.startsWith(":export"));
3998
+ }
3999
+ function Ve(e, r) {
4000
+ let o = Array.isArray(r) ? r : [r], i = e.findAncestor((l) => l.type === "css-atrule");
4001
+ return i && o.includes(i.name.toLowerCase());
4002
+ }
4003
+ function ho(e) {
4004
+ var r;
4005
+ let { node: o } = e;
4006
+ return o.groups[0].value === "url" && o.groups.length === 2 && ((r = e.findAncestor((i) => i.type === "css-atrule")) == null ? void 0 : r.name) === "import";
4007
+ }
4008
+ function fo(e) {
4009
+ return e.type === "value-func" && e.value.toLowerCase() === "url";
4010
+ }
4011
+ function mo(e) {
4012
+ return e.type === "value-func" && e.value.toLowerCase() === "var";
4013
+ }
4014
+ function vo(e) {
4015
+ let { selector: r } = e;
4016
+ return r ? typeof r == "string" && /^@.+:.*$/u.test(r) || r.value && /^@.+:.*$/u.test(r.value) : !1;
4017
+ }
4018
+ function yo(e) {
4019
+ return e.type === "value-word" && ["from", "through", "end"].includes(e.value);
4020
+ }
4021
+ function go(e) {
4022
+ return e.type === "value-word" && ["and", "or", "not"].includes(e.value);
4023
+ }
4024
+ function wo(e) {
4025
+ return e.type === "value-word" && e.value === "in";
4026
+ }
4027
+ function lt(e) {
4028
+ return e.type === "value-operator" && e.value === "*";
4029
+ }
4030
+ function Ge(e) {
4031
+ return e.type === "value-operator" && e.value === "/";
4032
+ }
4033
+ function se(e) {
4034
+ return e.type === "value-operator" && e.value === "+";
4035
+ }
4036
+ function ge(e) {
4037
+ return e.type === "value-operator" && e.value === "-";
4038
+ }
4039
+ function bo(e) {
4040
+ return e.type === "value-operator" && e.value === "%";
4041
+ }
4042
+ function nt(e) {
4043
+ return lt(e) || Ge(e) || se(e) || ge(e) || bo(e);
4044
+ }
4045
+ function xo(e) {
4046
+ return e.type === "value-word" && ["==", "!="].includes(e.value);
4047
+ }
4048
+ function ko(e) {
4049
+ return e.type === "value-word" && ["<", ">", "<=", ">="].includes(e.value);
4050
+ }
4051
+ function ct(e, r) {
4052
+ return r.parser === "scss" && e.type === "css-atrule" && ["if", "else", "for", "each", "while"].includes(e.name);
4053
+ }
4054
+ function Dt(e) {
4055
+ var r;
4056
+ return ((r = e.raws) == null ? void 0 : r.params) && /^\(\s*\)$/u.test(e.raws.params);
4057
+ }
4058
+ function st(e) {
4059
+ return e.name.startsWith("prettier-placeholder");
4060
+ }
4061
+ function Oo(e) {
4062
+ return e.prop.startsWith("@prettier-placeholder");
4063
+ }
4064
+ function To(e, r) {
4065
+ return e.value === "$$" && e.type === "value-func" && (r == null ? void 0 : r.type) === "value-word" && !r.raws.before;
4066
+ }
4067
+ function So(e) {
4068
+ var r, o;
4069
+ return ((r = e.value) == null ? void 0 : r.type) === "value-root" && ((o = e.value.group) == null ? void 0 : o.type) === "value-value" && e.prop.toLowerCase() === "composes";
4070
+ }
4071
+ function Co(e) {
4072
+ var r, o, i;
4073
+ return ((i = (o = (r = e.value) == null ? void 0 : r.group) == null ? void 0 : o.group) == null ? void 0 : i.type) === "value-paren_group" && e.value.group.group.open !== null && e.value.group.group.close !== null;
4074
+ }
4075
+ function me(e) {
4076
+ var r;
4077
+ return ((r = e.raws) == null ? void 0 : r.before) === "";
4078
+ }
4079
+ function $t(e) {
4080
+ var r, o;
4081
+ return e.type === "value-comma_group" && ((o = (r = e.groups) == null ? void 0 : r[1]) == null ? void 0 : o.type) === "value-colon";
4082
+ }
4083
+ function ot(e) {
4084
+ var r;
4085
+ return e.type === "value-paren_group" && ((r = e.groups) == null ? void 0 : r[0]) && $t(e.groups[0]);
4086
+ }
4087
+ function Mr(e, r) {
4088
+ var o;
4089
+ if (r.parser !== "scss") return !1;
4090
+ let { node: i } = e;
4091
+ if (i.groups.length === 0) return !1;
4092
+ let l = e.grandparent;
4093
+ if (!ot(i) && !(l && ot(l))) return !1;
4094
+ let a = e.findAncestor((c) => c.type === "css-decl");
4095
+ return !!((o = a == null ? void 0 : a.prop) != null && o.startsWith("$") || ot(l) || l.type === "value-func");
4096
+ }
4097
+ function Ut(e) {
4098
+ return e.type === "value-comment" && e.inline;
4099
+ }
4100
+ function it(e) {
4101
+ return e.type === "value-word" && e.value === "#";
4102
+ }
4103
+ function Bt(e) {
4104
+ return e.type === "value-word" && e.value === "{";
4105
+ }
4106
+ function at(e) {
4107
+ return e.type === "value-word" && e.value === "}";
4108
+ }
4109
+ function Fe(e) {
4110
+ return ["value-word", "value-atword"].includes(e.type);
4111
+ }
4112
+ function pt(e) {
4113
+ return (e == null ? void 0 : e.type) === "value-colon";
4114
+ }
4115
+ function _o(e, r) {
4116
+ if (!$t(r)) return !1;
4117
+ let { groups: o } = r, i = o.indexOf(e);
4118
+ return i === -1 ? !1 : pt(o[i + 1]);
4119
+ }
4120
+ function Eo(e) {
4121
+ return e.value && ["not", "and", "or"].includes(e.value.toLowerCase());
4122
+ }
4123
+ function Ao(e) {
4124
+ return e.type !== "value-func" ? !1 : io.has(e.value.toLowerCase());
4125
+ }
4126
+ function _e(e) {
4127
+ return /\/\//u.test(e.split(/[\n\r]/u).pop());
4128
+ }
4129
+ function De(e) {
4130
+ return (e == null ? void 0 : e.type) === "value-atword" && e.value.startsWith("prettier-placeholder-");
4131
+ }
4132
+ function jo(e, r) {
4133
+ var o, i;
4134
+ if (((o = e.open) == null ? void 0 : o.value) !== "(" || ((i = e.close) == null ? void 0 : i.value) !== ")" || e.groups.some((l) => l.type !== "value-comma_group")) return !1;
4135
+ if (r.type === "value-comma_group") {
4136
+ let l = r.groups.indexOf(e) - 1, a = r.groups[l];
4137
+ if ((a == null ? void 0 : a.type) === "value-word" && a.value === "with") return !0;
4138
+ }
4139
+ return !1;
4140
+ }
4141
+ function Ue(e) {
4142
+ var r, o;
4143
+ return e.type === "value-paren_group" && ((r = e.open) == null ? void 0 : r.value) === "(" && ((o = e.close) == null ? void 0 : o.value) === ")";
4144
+ }
4145
+ function Io(e, r, o) {
4146
+ var i;
4147
+ let { node: l } = e, a = e.parent, c = e.grandparent, u = ao(e), m = u && a.type === "value-value" && (u === "grid" || u.startsWith("grid-template")), s = e.findAncestor((y) => y.type === "css-atrule"), n = s && ct(s, r), t = l.groups.some((y) => Ut(y)), f = e.map(o, "groups"), h = [], d = Be(e, "url"), p = !1, w = !1;
4148
+ for (let y = 0; y < l.groups.length; ++y) {
4149
+ h.push(f[y]);
4150
+ let v = l.groups[y - 1], g = l.groups[y], O = l.groups[y + 1], b = l.groups[y + 2];
4151
+ if (d) {
4152
+ (O && se(O) || se(g)) && h.push(" ");
4153
+ continue;
4154
+ }
4155
+ if (Ve(e, "forward") && g.type === "value-word" && g.value && v !== void 0 && v.type === "value-word" && v.value === "as" && O.type === "value-operator" && O.value === "*" || !O || g.type === "value-word" && g.value.endsWith("-") && De(O)) continue;
4156
+ if (g.type === "value-string" && g.quoted) {
4157
+ let $ = g.value.lastIndexOf("#{"), L = g.value.lastIndexOf("}");
4158
+ $ !== -1 && L !== -1 ? p = $ > L : $ !== -1 ? p = !0 : L !== -1 && (p = !1);
4159
+ }
4160
+ if (p || pt(g) || pt(O) || g.type === "value-atword" && (g.value === "" || g.value.endsWith("[")) || O.type === "value-word" && O.value.startsWith("]") || g.value === "~" || g.type !== "value-string" && g.value && g.value.includes("\\") && O && O.type !== "value-comment" || v != null && v.value && v.value.indexOf("\\") === v.value.length - 1 && g.type === "value-operator" && g.value === "/" || g.value === "\\" || To(g, O) || it(g) || Bt(g) || at(O) || Bt(O) && me(O) || at(g) && me(O) || g.value === "--" && it(O)) continue;
4161
+ let x = nt(g), k = nt(O);
4162
+ if ((x && it(O) || k && at(g)) && me(O) || !v && Ge(g) || Be(e, "calc") && (se(g) || se(O) || ge(g) || ge(O)) && me(O)) continue;
4163
+ let T = (se(g) || ge(g)) && y === 0 && (O.type === "value-number" || O.isHex) && c && Ao(c) && !me(O), E = (b == null ? void 0 : b.type) === "value-func" || b && Fe(b) || g.type === "value-func" || Fe(g), j = O.type === "value-func" || Fe(O) || (v == null ? void 0 : v.type) === "value-func" || v && Fe(v);
4164
+ if (r.parser === "scss" && x && g.value === "-" && O.type === "value-func" && H(g) !== J(O)) {
4165
+ h.push(" ");
4166
+ continue;
4167
+ }
4168
+ if (!(!(lt(O) || lt(g)) && !Be(e, "calc") && !T && (Ge(O) && !E || Ge(g) && !j || se(O) && !E || se(g) && !j || ge(O) || ge(g)) && (me(O) || x && (!v || v && nt(v)))) && !((r.parser === "scss" || r.parser === "less") && x && g.value === "-" && Ue(O) && H(g) === J(O.open) && O.open.value === "(")) {
4169
+ if (Ut(g)) {
4170
+ if (a.type === "value-paren_group") {
4171
+ h.push(He(F));
4172
+ continue;
4173
+ }
4174
+ h.push(F);
4175
+ continue;
4176
+ }
4177
+ if (n && (xo(O) || ko(O) || go(O) || wo(g) || yo(g))) {
4178
+ h.push(" ");
4179
+ continue;
4180
+ }
4181
+ if (s && s.name.toLowerCase() === "namespace") {
4182
+ h.push(" ");
4183
+ continue;
4184
+ }
4185
+ if (m) {
4186
+ g.source && O.source && g.source.start.line !== O.source.start.line ? (h.push(F), w = !0) : h.push(" ");
4187
+ continue;
4188
+ }
4189
+ if (k) {
4190
+ h.push(" ");
4191
+ continue;
4192
+ }
4193
+ if ((O == null ? void 0 : O.value) !== "..." && !(De(g) && De(O) && H(g) === J(O))) {
4194
+ if (De(g) && Ue(O) && H(g) === J(O.open)) {
4195
+ h.push(Z);
4196
+ continue;
4197
+ }
4198
+ if (g.value === "with" && Ue(O)) {
4199
+ h.push(" ");
4200
+ continue;
4201
+ }
4202
+ (i = g.value) != null && i.endsWith("#") && O.value === "{" && Ue(O.group) || h.push(B);
4203
+ }
4204
+ }
4205
+ }
4206
+ return t && h.push(jt), w && h.unshift(F), n ? K(G(h)) : ho(e) ? K(ut(h)) : K(G(ut(h)));
4207
+ }
4208
+ var Po = Io;
4209
+ function Mo(e) {
4210
+ return e.length === 1 ? e : e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u, "$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u, "$1").replace(/^([+-])?\./u, "$10.").replace(/(\.\d+?)0+(?=e|$)/u, "$1").replace(/\.(?=e|$)/u, "");
4211
+ }
4212
+ var $o = Mo, Vt = /* @__PURE__ */ new Map([["em", "em"], ["rem", "rem"], ["ex", "ex"], ["rex", "rex"], ["cap", "cap"], ["rcap", "rcap"], ["ch", "ch"], ["rch", "rch"], ["ic", "ic"], ["ric", "ric"], ["lh", "lh"], ["rlh", "rlh"], ["vw", "vw"], ["svw", "svw"], ["lvw", "lvw"], ["dvw", "dvw"], ["vh", "vh"], ["svh", "svh"], ["lvh", "lvh"], ["dvh", "dvh"], ["vi", "vi"], ["svi", "svi"], ["lvi", "lvi"], ["dvi", "dvi"], ["vb", "vb"], ["svb", "svb"], ["lvb", "lvb"], ["dvb", "dvb"], ["vmin", "vmin"], ["svmin", "svmin"], ["lvmin", "lvmin"], ["dvmin", "dvmin"], ["vmax", "vmax"], ["svmax", "svmax"], ["lvmax", "lvmax"], ["dvmax", "dvmax"], ["cm", "cm"], ["mm", "mm"], ["q", "Q"], ["in", "in"], ["pt", "pt"], ["pc", "pc"], ["px", "px"], ["deg", "deg"], ["grad", "grad"], ["rad", "rad"], ["turn", "turn"], ["s", "s"], ["ms", "ms"], ["hz", "Hz"], ["khz", "kHz"], ["dpi", "dpi"], ["dpcm", "dpcm"], ["dppx", "dppx"], ["x", "x"], ["cqw", "cqw"], ["cqh", "cqh"], ["cqi", "cqi"], ["cqb", "cqb"], ["cqmin", "cqmin"], ["cqmax", "cqmax"]]);
4213
+ function Ro(e) {
4214
+ let r = e.toLowerCase();
4215
+ return Vt.has(r) ? Vt.get(r) : e;
4216
+ }
4217
+ var $r = /(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu, No = /(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu, Lo = /[a-z]+/giu, Wo = /[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu, zo = new RegExp($r.source + `|(${Wo.source})?(${No.source})(${Lo.source})?`, "giu");
4218
+ function X(e, r) {
4219
+ return D(!1, e, $r, (o) => xr(o, r));
4220
+ }
4221
+ function qo(e, r) {
4222
+ let o = r.singleQuote ? "'" : '"';
4223
+ return e.includes('"') || e.includes("'") ? e : o + e + o;
4224
+ }
4225
+ function ve(e) {
4226
+ return D(!1, e, zo, (r, o, i, l, a) => !i && l ? Rr(l) + ye(a || "") : r);
4227
+ }
4228
+ function Rr(e) {
4229
+ return $o(e).replace(/\.0(?=$|e)/u, "");
4230
+ }
4231
+ function Fo(e) {
4232
+ return e.trailingComma === "es5" || e.trailingComma === "all";
4233
+ }
4234
+ function Do(e, r, o) {
4235
+ let i = !!(o != null && o.backwards);
4236
+ if (r === !1) return !1;
4237
+ let l = e.charAt(r);
4238
+ if (i) {
4239
+ if (e.charAt(r - 1) === "\r" && l === `
4240
+ `) return r - 2;
4241
+ if (l === `
4242
+ ` || l === "\r" || l === "\u2028" || l === "\u2029") return r - 1;
4243
+ } else {
4244
+ if (l === "\r" && e.charAt(r + 1) === `
4245
+ `) return r + 2;
4246
+ if (l === `
4247
+ ` || l === "\r" || l === "\u2028" || l === "\u2029") return r + 1;
4248
+ }
4249
+ return r;
4250
+ }
4251
+ var Nr = Do;
4252
+ function Uo(e, r, o = {}) {
4253
+ let i = Sr(e, o.backwards ? r - 1 : r, o), l = Nr(e, i, o);
4254
+ return i !== l;
4255
+ }
4256
+ var Lr = Uo;
4257
+ function Bo(e, r) {
4258
+ if (r === !1) return !1;
4259
+ if (e.charAt(r) === "/" && e.charAt(r + 1) === "*") {
4260
+ for (let o = r + 2; o < e.length; ++o) if (e.charAt(o) === "*" && e.charAt(o + 1) === "/") return o + 2;
4261
+ }
4262
+ return r;
4263
+ }
4264
+ var Vo = Bo;
4265
+ function Go(e, r) {
4266
+ return r === !1 ? !1 : e.charAt(r) === "/" && e.charAt(r + 1) === "/" ? Cr(e, r) : r;
4267
+ }
4268
+ var Ho = Go;
4269
+ function Jo(e, r) {
4270
+ let o = null, i = r;
4271
+ for (; i !== o; ) o = i, i = qs(e, i), i = Vo(e, i), i = Sr(e, i);
4272
+ return i = Ho(e, i), i = Nr(e, i), i !== !1 && Lr(e, i);
4273
+ }
4274
+ var Wr = Jo;
4275
+ function Qo({ node: e, parent: r }, o) {
4276
+ return !!(e.source && o.originalText.slice(J(e), J(r.close)).trimEnd().endsWith(","));
4277
+ }
4278
+ function Ko(e, r) {
4279
+ return mo(e.grandparent) && Qo(e, r) ? "," : e.node.type !== "value-comment" && !(e.node.type === "value-comma_group" && e.node.groups.every((o) => o.type === "value-comment")) && Fo(r) && e.callParent(() => Mr(e, r)) ? br(",") : "";
4280
+ }
4281
+ function Zo(e, r, o) {
4282
+ let { node: i, parent: l } = e, a = e.map(({ node: h }) => typeof h == "string" ? h : o(), "groups");
4283
+ if (l && fo(l) && (i.groups.length === 1 || i.groups.length > 0 && i.groups[0].type === "value-comma_group" && i.groups[0].groups.length > 0 && i.groups[0].groups[0].type === "value-word" && i.groups[0].groups[0].value.startsWith("data:"))) return [i.open ? o("open") : "", ae(",", a), i.close ? o("close") : ""];
4284
+ if (!i.open) {
4285
+ let h = zr(e), d = ae([",", h ? F : B], a);
4286
+ return G(h ? [F, d] : K(ut(d)));
4287
+ }
4288
+ let c = e.map(({ node: h, isLast: d, index: p }) => {
4289
+ var w;
4290
+ let y = a[p];
4291
+ if ($t(h) && h.type === "value-comma_group" && h.groups && h.groups[0].type !== "value-paren_group" && ((w = h.groups[2]) == null ? void 0 : w.type) === "value-paren_group") {
4292
+ let { parts: g } = y.contents.contents;
4293
+ g[1] = K(g[1]), y = K(He(y));
4294
+ }
4295
+ let v = [y, d ? Ko(e, r) : ","];
4296
+ if (!d && h.type === "value-comma_group" && et(h.groups)) {
4297
+ let g = je(!1, h.groups, -1);
4298
+ !g.source && g.close && (g = g.close), g.source && Wr(r.originalText, H(g)) && v.push(F);
4299
+ }
4300
+ return v;
4301
+ }, "groups"), u = _o(i, l), m = jo(i, l), s = Mr(e, r), n = m || s && !u, t = m || u, f = K([i.open ? o("open") : "", G([Z, ae(B, c)]), Z, i.close ? o("close") : ""], { shouldBreak: n });
4302
+ return t ? He(f) : f;
4303
+ }
4304
+ function zr(e) {
4305
+ return e.match((r) => r.type === "value-paren_group" && !r.open && r.groups.some((o) => o.type === "value-comma_group"), (r, o) => o === "group" && r.type === "value-value", (r, o) => o === "group" && r.type === "value-root", (r, o) => o === "value" && (r.type === "css-decl" && !r.prop.startsWith("--") || r.type === "css-atrule" && r.variable));
4306
+ }
4307
+ function Yo(e, r, o) {
4308
+ let i = [];
4309
+ return e.each(() => {
4310
+ let { node: l, previous: a } = e;
4311
+ if ((a == null ? void 0 : a.type) === "css-comment" && a.text.trim() === "prettier-ignore" ? i.push(r.originalText.slice(J(l), H(l))) : i.push(o()), e.isLast) return;
4312
+ let { next: c } = e;
4313
+ c.type === "css-comment" && !Lr(r.originalText, J(c), { backwards: !0 }) && !Je(l) || c.type === "css-atrule" && c.name === "else" && l.type !== "css-comment" ? i.push(" ") : (i.push(r.__isHTMLStyleAttribute ? B : F), Wr(r.originalText, H(l)) && !Je(l) && i.push(F));
4314
+ }, "nodes"), i;
4315
+ }
4316
+ var Ee = Yo;
4317
+ function Xo(e, r, o) {
4318
+ var i, l, a, c, u, m;
4319
+ let { node: s } = e;
4320
+ switch (s.type) {
4321
+ case "front-matter":
4322
+ return [s.raw, F];
4323
+ case "css-root": {
4324
+ let n = Ee(e, r, o), t = s.raws.after.trim();
4325
+ return t.startsWith(";") && (t = t.slice(1).trim()), [s.frontMatter ? [o("frontMatter"), F] : "", n, t ? ` ${t}` : "", s.nodes.length > 0 ? F : ""];
4326
+ }
4327
+ case "css-comment": {
4328
+ let n = s.inline || s.raws.inline, t = r.originalText.slice(J(s), H(s));
4329
+ return n ? t.trimEnd() : t;
4330
+ }
4331
+ case "css-rule":
4332
+ return [o("selector"), s.important ? " !important" : "", s.nodes ? [((i = s.selector) == null ? void 0 : i.type) === "selector-unknown" && _e(s.selector.value) ? B : s.selector ? " " : "", "{", s.nodes.length > 0 ? G([F, Ee(e, r, o)]) : "", F, "}", vo(s) ? ";" : ""] : ";"];
4333
+ case "css-decl": {
4334
+ let n = e.parent, { between: t } = s.raws, f = t.trim(), h = f === ":", d = typeof s.value == "string" && /^ *$/u.test(s.value), p = typeof s.value == "string" ? s.value : o("value");
4335
+ return p = So(s) ? ms(p) : p, !h && _e(f) && !((a = (l = s.value) == null ? void 0 : l.group) != null && a.group && e.call(() => zr(e), "value", "group", "group")) && (p = G([F, He(p)])), [D(!1, s.raws.before, /[\s;]/gu, ""), n.type === "css-atrule" && n.variable || po(e) ? s.prop : ye(s.prop), f.startsWith("//") ? " " : "", f, s.extend || d ? "" : " ", r.parser === "less" && s.extend && s.selector ? ["extend(", o("selector"), ")"] : "", p, s.raws.important ? s.raws.important.replace(/\s*!\s*important/iu, " !important") : s.important ? " !important" : "", s.raws.scssDefault ? s.raws.scssDefault.replace(/\s*!default/iu, " !default") : s.scssDefault ? " !default" : "", s.raws.scssGlobal ? s.raws.scssGlobal.replace(/\s*!global/iu, " !global") : s.scssGlobal ? " !global" : "", s.nodes ? [" {", G([Z, Ee(e, r, o)]), Z, "}"] : Oo(s) && !n.raws.semicolon && r.originalText[H(s) - 1] !== ";" ? "" : r.__isHTMLStyleAttribute && e.isLast ? br(";") : ";"];
4336
+ }
4337
+ case "css-atrule": {
4338
+ let n = e.parent, t = st(s) && !n.raws.semicolon && r.originalText[H(s) - 1] !== ";";
4339
+ if (r.parser === "less") {
4340
+ if (s.mixin) return [o("selector"), s.important ? " !important" : "", t ? "" : ";"];
4341
+ if (s.function) return [s.name, typeof s.params == "string" ? s.params : o("params"), t ? "" : ";"];
4342
+ if (s.variable) return ["@", s.name, ": ", s.value ? o("value") : "", s.raws.between.trim() ? s.raws.between.trim() + " " : "", s.nodes ? ["{", G([s.nodes.length > 0 ? Z : "", Ee(e, r, o)]), Z, "}"] : "", t ? "" : ";"];
4343
+ }
4344
+ let f = s.name === "import" && ((c = s.params) == null ? void 0 : c.type) === "value-unknown" && s.params.value.endsWith(";");
4345
+ return ["@", Dt(s) || s.name.endsWith(":") || st(s) ? s.name : ye(s.name), s.params ? [Dt(s) ? "" : st(s) ? s.raws.afterName === "" ? "" : s.name.endsWith(":") ? " " : /^\s*\n\s*\n/u.test(s.raws.afterName) ? [F, F] : /^\s*\n/u.test(s.raws.afterName) ? F : " " : " ", typeof s.params == "string" ? s.params : o("params")] : "", s.selector ? G([" ", o("selector")]) : "", s.value ? K([" ", o("value"), ct(s, r) ? Co(s) ? " " : B : ""]) : s.name === "else" ? " " : "", s.nodes ? [ct(s, r) ? "" : s.selector && !s.selector.nodes && typeof s.selector.value == "string" && _e(s.selector.value) || !s.selector && typeof s.params == "string" && _e(s.params) ? B : " ", "{", G([s.nodes.length > 0 ? Z : "", Ee(e, r, o)]), Z, "}"] : t || f ? "" : ";"];
4346
+ }
4347
+ case "media-query-list": {
4348
+ let n = [];
4349
+ return e.each(({ node: t }) => {
4350
+ t.type === "media-query" && t.value === "" || n.push(o());
4351
+ }, "nodes"), K(G(ae(B, n)));
4352
+ }
4353
+ case "media-query":
4354
+ return [ae(" ", e.map(o, "nodes")), e.isLast ? "" : ","];
4355
+ case "media-type":
4356
+ return ve(X(s.value, r));
4357
+ case "media-feature-expression":
4358
+ return s.nodes ? ["(", ...e.map(o, "nodes"), ")"] : s.value;
4359
+ case "media-feature":
4360
+ return ye(X(D(!1, s.value, / +/gu, " "), r));
4361
+ case "media-colon":
4362
+ return [s.value, " "];
4363
+ case "media-value":
4364
+ return ve(X(s.value, r));
4365
+ case "media-keyword":
4366
+ return X(s.value, r);
4367
+ case "media-url":
4368
+ return X(D(!1, D(!1, s.value, /^url\(\s+/giu, "url("), /\s+\)$/gu, ")"), r);
4369
+ case "media-unknown":
4370
+ return s.value;
4371
+ case "selector-root":
4372
+ return K([Ve(e, "custom-selector") ? [e.findAncestor((n) => n.type === "css-atrule").customSelector, B] : "", ae([",", Ve(e, ["extend", "custom-selector", "nest"]) ? B : F], e.map(o, "nodes"))]);
4373
+ case "selector-selector":
4374
+ return K(G(e.map(o, "nodes")));
4375
+ case "selector-comment":
4376
+ return s.value;
4377
+ case "selector-string":
4378
+ return X(s.value, r);
4379
+ case "selector-tag":
4380
+ return [s.namespace ? [s.namespace === !0 ? "" : s.namespace.trim(), "|"] : "", ((u = e.previous) == null ? void 0 : u.type) === "selector-nesting" ? s.value : ve(co(e, s.value) ? s.value.toLowerCase() : s.value)];
4381
+ case "selector-id":
4382
+ return ["#", s.value];
4383
+ case "selector-class":
4384
+ return [".", ve(X(s.value, r))];
4385
+ case "selector-attribute":
4386
+ return ["[", s.namespace ? [s.namespace === !0 ? "" : s.namespace.trim(), "|"] : "", s.attribute.trim(), s.operator ?? "", s.value ? qo(X(s.value.trim(), r), r) : "", s.insensitive ? " i" : "", "]"];
4387
+ case "selector-combinator": {
4388
+ if (s.value === "+" || s.value === ">" || s.value === "~" || s.value === ">>>") {
4389
+ let f = e.parent;
4390
+ return [f.type === "selector-selector" && f.nodes[0] === s ? "" : B, s.value, e.isLast ? "" : " "];
4391
+ }
4392
+ let n = s.value.trim().startsWith("(") ? B : "", t = ve(X(s.value.trim(), r)) || B;
4393
+ return [n, t];
4394
+ }
4395
+ case "selector-universal":
4396
+ return [s.namespace ? [s.namespace === !0 ? "" : s.namespace.trim(), "|"] : "", s.value];
4397
+ case "selector-pseudo":
4398
+ return [ye(s.value), et(s.nodes) ? K(["(", G([Z, ae([",", B], e.map(o, "nodes"))]), Z, ")"]) : ""];
4399
+ case "selector-nesting":
4400
+ return s.value;
4401
+ case "selector-unknown": {
4402
+ let n = e.findAncestor((h) => h.type === "css-rule");
4403
+ if (n != null && n.isSCSSNesterProperty) return ve(X(ye(s.value), r));
4404
+ let t = e.parent;
4405
+ if ((m = t.raws) != null && m.selector) {
4406
+ let h = J(t), d = h + t.raws.selector.length;
4407
+ return r.originalText.slice(h, d).trim();
4408
+ }
4409
+ let f = e.grandparent;
4410
+ if (t.type === "value-paren_group" && (f == null ? void 0 : f.type) === "value-func" && f.value === "selector") {
4411
+ let h = H(t.open) + 1, d = J(t.close), p = r.originalText.slice(h, d).trim();
4412
+ return _e(p) ? [jt, p] : p;
4413
+ }
4414
+ return s.value;
4415
+ }
4416
+ case "value-value":
4417
+ case "value-root":
4418
+ return o("group");
4419
+ case "value-comment":
4420
+ return r.originalText.slice(J(s), H(s));
4421
+ case "value-comma_group":
4422
+ return Po(e, r, o);
4423
+ case "value-paren_group":
4424
+ return Zo(e, r, o);
4425
+ case "value-func":
4426
+ return [s.value, Ve(e, "supports") && Eo(s) ? " " : "", o("group")];
4427
+ case "value-paren":
4428
+ return s.value;
4429
+ case "value-number":
4430
+ return [Rr(s.value), Ro(s.unit)];
4431
+ case "value-operator":
4432
+ return s.value;
4433
+ case "value-word":
4434
+ return s.isColor && s.isHex || lo(s.value) ? s.value.toLowerCase() : s.value;
4435
+ case "value-colon": {
4436
+ let { previous: n } = e;
4437
+ return [s.value, typeof (n == null ? void 0 : n.value) == "string" && n.value.endsWith("\\") || Be(e, "url") ? "" : B];
4438
+ }
4439
+ case "value-string":
4440
+ return xr(s.raws.quote + s.value + s.raws.quote, r);
4441
+ case "value-atword":
4442
+ return ["@", s.value];
4443
+ case "value-unicode-range":
4444
+ return s.value;
4445
+ case "value-unknown":
4446
+ return s.value;
4447
+ case "value-comma":
4448
+ default:
4449
+ throw new Os(s, "PostCSS");
4450
+ }
4451
+ }
4452
+ var ei = { print: Xo, embed: js, insertPragma: oo, massageAstNode: _s, getVisitorKeys: Ws }, ti = ei, ri = [{ linguistLanguageId: 50, name: "CSS", type: "markup", tmScope: "source.css", aceMode: "css", codemirrorMode: "css", codemirrorMimeType: "text/css", color: "#563d7c", extensions: [".css", ".wxss"], parsers: ["css"], vscodeLanguageIds: ["css"] }, { linguistLanguageId: 262764437, name: "PostCSS", type: "markup", color: "#dc3a0c", tmScope: "source.postcss", group: "CSS", extensions: [".pcss", ".postcss"], aceMode: "text", parsers: ["css"], vscodeLanguageIds: ["postcss"] }, { linguistLanguageId: 198, name: "Less", type: "markup", color: "#1d365d", aliases: ["less-css"], extensions: [".less"], tmScope: "source.css.less", aceMode: "less", codemirrorMode: "css", codemirrorMimeType: "text/css", parsers: ["less"], vscodeLanguageIds: ["less"] }, { linguistLanguageId: 329, name: "SCSS", type: "markup", color: "#c6538c", tmScope: "source.css.scss", aceMode: "scss", codemirrorMode: "css", codemirrorMimeType: "text/x-scss", extensions: [".scss"], parsers: ["scss"], vscodeLanguageIds: ["scss"] }], ni = { bracketSpacing: { category: "Common", type: "boolean", default: !0, description: "Print spaces between brackets.", oppositeDescription: "Do not print spaces between brackets." }, singleQuote: { category: "Common", type: "boolean", default: !1, description: "Use single quotes instead of double quotes." }, proseWrap: { category: "Common", type: "choice", default: "preserve", description: "How to wrap prose.", choices: [{ value: "always", description: "Wrap prose if it exceeds the print width." }, { value: "never", description: "Do not wrap prose." }, { value: "preserve", description: "Wrap prose as-is." }] }, bracketSameLine: { category: "Common", type: "boolean", default: !1, description: "Put > of opening tags on the last line instead of on a new line." }, singleAttributePerLine: { category: "Common", type: "boolean", default: !1, description: "Enforce single attribute per line in HTML, Vue and JSX." } }, si = { singleQuote: ni.singleQuote }, oi = si, qr = {};
4453
+ Gt(qr, { css: () => Ni, less: () => Li, scss: () => Wi });
4454
+ var ii = we(Ye()), ai = we(fn()), ui = we(bn());
4455
+ function li(e, r) {
4456
+ let o = new SyntaxError(e + " (" + r.loc.start.line + ":" + r.loc.start.column + ")");
4457
+ return Object.assign(o, r);
4458
+ }
4459
+ var ci = li, pi = we(kn());
4460
+ function Re(e, r, o) {
4461
+ if (e && typeof e == "object") {
4462
+ delete e.parent;
4463
+ for (let i in e) Re(e[i], r, o), i === "type" && typeof e[i] == "string" && !e[i].startsWith(r) && (!o || !o.test(e[i])) && (e[i] = r + e[i]);
4464
+ }
4465
+ return e;
4466
+ }
4467
+ function Fr(e) {
4468
+ if (e && typeof e == "object") {
4469
+ delete e.parent;
4470
+ for (let r in e) Fr(e[r]);
4471
+ !Array.isArray(e) && e.value && !e.type && (e.type = "unknown");
4472
+ }
4473
+ return e;
4474
+ }
4475
+ var hi = pi.default.default;
4476
+ function fi(e) {
4477
+ let r;
4478
+ try {
4479
+ r = hi(e);
4480
+ } catch {
4481
+ return { type: "selector-unknown", value: e };
4482
+ }
4483
+ return Re(Fr(r), "media-");
4484
+ }
4485
+ var di = fi, mi = we(Wn());
4486
+ function vi(e) {
4487
+ if (/\/\/|\/\*/u.test(e)) return { type: "selector-unknown", value: e.trim() };
4488
+ let r;
4489
+ try {
4490
+ new mi.default((o) => {
4491
+ r = o;
4492
+ }).process(e);
4493
+ } catch {
4494
+ return { type: "selector-unknown", value: e };
4495
+ }
4496
+ return Re(r, "selector-");
4497
+ }
4498
+ var ie = vi, yi = we(ts()), gi = (e) => {
4499
+ for (; e.parent; ) e = e.parent;
4500
+ return e;
4501
+ }, Dr = gi;
4502
+ function wi(e) {
4503
+ return Dr(e).text.slice(e.group.open.sourceIndex + 1, e.group.close.sourceIndex).trim();
4504
+ }
4505
+ var bi = wi;
4506
+ function xi(e) {
4507
+ if (et(e)) {
4508
+ for (let r = e.length - 1; r > 0; r--) if (e[r].type === "word" && e[r].value === "{" && e[r - 1].type === "word" && e[r - 1].value.endsWith("#")) return !0;
4509
+ }
4510
+ return !1;
4511
+ }
4512
+ var ki = xi;
4513
+ function Oi(e) {
4514
+ return e.some((r) => r.type === "string" || r.type === "func" && !r.value.endsWith("\\"));
4515
+ }
4516
+ var Ti = Oi;
4517
+ function Si(e, r) {
4518
+ return !!(r.parser === "scss" && (e == null ? void 0 : e.type) === "word" && e.value.startsWith("$"));
4519
+ }
4520
+ var Ci = Si;
4521
+ function _i(e, r) {
4522
+ var o;
4523
+ let { nodes: i } = e, l = { open: null, close: null, groups: [], type: "paren_group" }, a = [l], c = l, u = { groups: [], type: "comma_group" }, m = [u];
4524
+ for (let s = 0; s < i.length; ++s) {
4525
+ let n = i[s];
4526
+ if (r.parser === "scss" && n.type === "number" && n.unit === ".." && n.value.endsWith(".") && (n.value = n.value.slice(0, -1), n.unit = "..."), n.type === "func" && n.value === "selector" && (n.group.groups = [ie(Dr(e).text.slice(n.group.open.sourceIndex + 1, n.group.close.sourceIndex))]), n.type === "func" && n.value === "url") {
4527
+ let t = ((o = n.group) == null ? void 0 : o.groups) ?? [], f = [];
4528
+ for (let h = 0; h < t.length; h++) {
4529
+ let d = t[h];
4530
+ d.type === "comma_group" ? f = [...f, ...d.groups] : f.push(d);
4531
+ }
4532
+ (ki(f) || !Ti(f) && !Ci(f[0], r)) && (n.group.groups = [bi(n)]);
4533
+ }
4534
+ if (n.type === "paren" && n.value === "(") l = { open: n, close: null, groups: [], type: "paren_group" }, a.push(l), u = { groups: [], type: "comma_group" }, m.push(u);
4535
+ else if (n.type === "paren" && n.value === ")") {
4536
+ if (u.groups.length > 0 && l.groups.push(u), l.close = n, m.length === 1) throw new Error("Unbalanced parenthesis");
4537
+ m.pop(), u = je(!1, m, -1), u.groups.push(l), a.pop(), l = je(!1, a, -1);
4538
+ } else n.type === "comma" ? (l.groups.push(u), u = { groups: [], type: "comma_group" }, m[m.length - 1] = u) : u.groups.push(n);
4539
+ }
4540
+ return u.groups.length > 0 && l.groups.push(u), c;
4541
+ }
4542
+ function ht(e) {
4543
+ return e.type === "paren_group" && !e.open && !e.close && e.groups.length === 1 || e.type === "comma_group" && e.groups.length === 1 ? ht(e.groups[0]) : e.type === "paren_group" || e.type === "comma_group" ? { ...e, groups: e.groups.map(ht) } : e;
4544
+ }
4545
+ function Ur(e, r) {
4546
+ if (e && typeof e == "object") for (let o in e) o !== "parent" && (Ur(e[o], r), o === "nodes" && (e.group = ht(_i(e, r)), delete e[o]));
4547
+ return e;
4548
+ }
4549
+ function Ei(e, r) {
4550
+ if (r.parser === "less" && e.startsWith("~`")) return { type: "value-unknown", value: e };
4551
+ let o = null;
4552
+ try {
4553
+ o = new yi.default(e, { loose: !0 }).parse();
4554
+ } catch {
4555
+ return { type: "value-unknown", value: e };
4556
+ }
4557
+ o.text = e;
4558
+ let i = Ur(o, r);
4559
+ return Re(i, "value-", /^selector-/u);
4560
+ }
4561
+ var oe = Ei, Ai = /* @__PURE__ */ new Set(["import", "use", "forward"]);
4562
+ function ji(e) {
4563
+ return Ai.has(e);
4564
+ }
4565
+ var Ii = ji;
4566
+ function Pi(e, r) {
4567
+ return r.parser !== "scss" || !e.selector ? !1 : e.selector.replace(/\/\*.*?\*\//u, "").replace(/\/\/.*\n/u, "").trim().endsWith(":");
4568
+ }
4569
+ var Mi = Pi, $i = /(\s*)(!default).*$/u, Ri = /(\s*)(!global).*$/u;
4570
+ function Br(e, r) {
4571
+ var o, i;
4572
+ if (e && typeof e == "object") {
4573
+ delete e.parent;
4574
+ for (let u in e) Br(e[u], r);
4575
+ if (!e.type) return e;
4576
+ if (e.raws ?? (e.raws = {}), e.type === "css-decl" && typeof e.prop == "string" && e.prop.startsWith("--") && typeof e.value == "string" && e.value.startsWith("{")) {
4577
+ let u;
4578
+ if (e.value.trimEnd().endsWith("}")) {
4579
+ let m = r.originalText.slice(0, e.source.start.offset), s = "a".repeat(e.prop.length) + r.originalText.slice(e.source.start.offset + e.prop.length, e.source.end.offset), n = D(!1, m, /[^\n]/gu, " ") + s, t;
4580
+ r.parser === "scss" ? t = Hr : r.parser === "less" ? t = Gr : t = Vr;
4581
+ let f;
4582
+ try {
4583
+ f = t(n, { ...r });
4584
+ } catch {
4585
+ }
4586
+ ((o = f == null ? void 0 : f.nodes) == null ? void 0 : o.length) === 1 && f.nodes[0].type === "css-rule" && (u = f.nodes[0].nodes);
4587
+ }
4588
+ return u ? e.value = { type: "css-rule", nodes: u } : e.value = { type: "value-unknown", value: e.raws.value.raw }, e;
4589
+ }
4590
+ let l = "";
4591
+ typeof e.selector == "string" && (l = e.raws.selector ? e.raws.selector.scss ?? e.raws.selector.raw : e.selector, e.raws.between && e.raws.between.trim().length > 0 && (l += e.raws.between), e.raws.selector = l);
4592
+ let a = "";
4593
+ typeof e.value == "string" && (a = e.raws.value ? e.raws.value.scss ?? e.raws.value.raw : e.value, a = a.trim(), e.raws.value = a);
4594
+ let c = "";
4595
+ if (typeof e.params == "string" && (c = e.raws.params ? e.raws.params.scss ?? e.raws.params.raw : e.params, e.raws.afterName && e.raws.afterName.trim().length > 0 && (c = e.raws.afterName + c), e.raws.between && e.raws.between.trim().length > 0 && (c = c + e.raws.between), c = c.trim(), e.raws.params = c), l.trim().length > 0) return l.startsWith("@") && l.endsWith(":") ? e : e.mixin ? (e.selector = oe(l, r), e) : (Mi(e, r) && (e.isSCSSNesterProperty = !0), e.selector = ie(l), e);
4596
+ if (a.length > 0) {
4597
+ let u = a.match($i);
4598
+ u && (a = a.slice(0, u.index), e.scssDefault = !0, u[0].trim() !== "!default" && (e.raws.scssDefault = u[0]));
4599
+ let m = a.match(Ri);
4600
+ if (m && (a = a.slice(0, m.index), e.scssGlobal = !0, m[0].trim() !== "!global" && (e.raws.scssGlobal = m[0])), a.startsWith("progid:")) return { type: "value-unknown", value: a };
4601
+ e.value = oe(a, r);
4602
+ }
4603
+ if (r.parser === "less" && e.type === "css-decl" && a.startsWith("extend(") && (e.extend || (e.extend = e.raws.between === ":"), e.extend && !e.selector && (delete e.value, e.selector = ie(a.slice(7, -1)))), e.type === "css-atrule") {
4604
+ if (r.parser === "less") {
4605
+ if (e.mixin) {
4606
+ let u = e.raws.identifier + e.name + e.raws.afterName + e.raws.params;
4607
+ return e.selector = ie(u), delete e.params, e;
4608
+ }
4609
+ if (e.function) return e;
4610
+ }
4611
+ if (r.parser === "css" && e.name === "custom-selector") {
4612
+ let u = e.params.match(/:--\S+\s+/u)[0].trim();
4613
+ return e.customSelector = u, e.selector = ie(e.params.slice(u.length).trim()), delete e.params, e;
4614
+ }
4615
+ if (r.parser === "less") {
4616
+ if (e.name.includes(":") && !e.params) {
4617
+ e.variable = !0;
4618
+ let u = e.name.split(":");
4619
+ e.name = u[0], e.value = oe(u.slice(1).join(":"), r);
4620
+ }
4621
+ if (!["page", "nest", "keyframes"].includes(e.name) && ((i = e.params) == null ? void 0 : i[0]) === ":") {
4622
+ e.variable = !0;
4623
+ let u = e.params.slice(1);
4624
+ u && (e.value = oe(u, r)), e.raws.afterName += ":";
4625
+ }
4626
+ if (e.variable) return delete e.params, e.value || delete e.value, e;
4627
+ }
4628
+ }
4629
+ if (e.type === "css-atrule" && c.length > 0) {
4630
+ let { name: u } = e, m = e.name.toLowerCase();
4631
+ return u === "warn" || u === "error" ? (e.params = { type: "media-unknown", value: c }, e) : u === "extend" || u === "nest" ? (e.selector = ie(c), delete e.params, e) : u === "at-root" ? (/^\(\s*(?:without|with)\s*:.+\)$/su.test(c) ? e.params = oe(c, r) : (e.selector = ie(c), delete e.params), e) : Ii(m) ? (e.import = !0, delete e.filename, e.params = oe(c, r), e) : ["namespace", "supports", "if", "else", "for", "each", "while", "debug", "mixin", "include", "function", "return", "define-mixin", "add-mixin"].includes(u) ? (c = c.replace(/(\$\S+?)(\s+)?\.{3}/u, "$1...$2"), c = c.replace(/^(?!if)(\S+)(\s+)\(/u, "$1($2"), e.value = oe(c, r), delete e.params, e) : ["media", "custom-media"].includes(m) ? c.includes("#{") ? { type: "media-unknown", value: c } : (e.params = di(c), e) : (e.params = c, e);
4632
+ }
4633
+ }
4634
+ return e;
4635
+ }
4636
+ function Rt(e, r, o) {
4637
+ let i = Mt(r), { frontMatter: l } = i;
4638
+ r = i.content;
4639
+ let a;
4640
+ try {
4641
+ a = e(r, { map: !1 });
4642
+ } catch (c) {
4643
+ let { name: u, reason: m, line: s, column: n } = c;
4644
+ throw typeof s != "number" ? c : ci(`${u}: ${m}`, { loc: { start: { line: s, column: n } }, cause: c });
4645
+ }
4646
+ return o.originalText = r, a = Br(Re(a, "css-"), o), Er(a, r), l && (l.source = { startOffset: 0, endOffset: l.raw.length }, a.frontMatter = l), a;
4647
+ }
4648
+ function Vr(e, r = {}) {
4649
+ return Rt(ii.default.default, e, r);
4650
+ }
4651
+ function Gr(e, r = {}) {
4652
+ return Rt((o) => ai.default.parse(Ds(o)), e, r);
4653
+ }
4654
+ function Hr(e, r = {}) {
4655
+ return Rt(ui.default, e, r);
4656
+ }
4657
+ var Nt = { astFormat: "postcss", hasPragma: so, locStart: J, locEnd: H }, Ni = { ...Nt, parse: Vr }, Li = { ...Nt, parse: Gr }, Wi = { ...Nt, parse: Hr }, zi = { postcss: ti }, Fi = ur;
4658
+ export {
4659
+ Fi as default,
4660
+ ri as languages,
4661
+ oi as options,
4662
+ qr as parsers,
4663
+ zi as printers
4664
+ };