@projectwallace/css-analyzer 6.0.0-beta.2 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import oi from "css-tree/parser";
1
+ import Xr from "css-tree/parser";
2
2
  import fe from "css-tree/walker";
3
- let De = null;
3
+ let Ie = null;
4
4
  class H {
5
5
  static createItem(e) {
6
6
  return {
@@ -18,7 +18,7 @@ class H {
18
18
  // cursor helpers
19
19
  allocateCursor(e, n) {
20
20
  let r;
21
- return De !== null ? (r = De, De = De.cursor, r.prev = e, r.next = n, r.cursor = this.cursor) : r = {
21
+ return Ie !== null ? (r = Ie, Ie = Ie.cursor, r.prev = e, r.next = n, r.cursor = this.cursor) : r = {
22
22
  prev: e,
23
23
  next: n,
24
24
  cursor: this.cursor
@@ -26,12 +26,12 @@ class H {
26
26
  }
27
27
  releaseCursor() {
28
28
  const { cursor: e } = this;
29
- this.cursor = e.cursor, e.prev = null, e.next = null, e.cursor = De, De = e;
29
+ this.cursor = e.cursor, e.prev = null, e.next = null, e.cursor = Ie, Ie = e;
30
30
  }
31
- updateCursors(e, n, r, i) {
31
+ updateCursors(e, n, r, s) {
32
32
  let { cursor: o } = this;
33
33
  for (; o !== null; )
34
- o.prev === e && (o.prev = n), o.next === r && (o.next = i), o = o.cursor;
34
+ o.prev === e && (o.prev = n), o.next === r && (o.next = s), o = o.cursor;
35
35
  }
36
36
  *[Symbol.iterator]() {
37
37
  for (let e = this.head; e !== null; e = e.next)
@@ -58,8 +58,8 @@ class H {
58
58
  let n = null;
59
59
  this.head = null;
60
60
  for (let r of e) {
61
- const i = H.createItem(r);
62
- n !== null ? n.next = i : this.head = i, i.prev = n, n = i;
61
+ const s = H.createItem(r);
62
+ n !== null ? n.next = s : this.head = s, s.prev = n, n = s;
63
63
  }
64
64
  return this.tail = n, this;
65
65
  }
@@ -73,29 +73,29 @@ class H {
73
73
  forEach(e, n = this) {
74
74
  const r = this.allocateCursor(null, this.head);
75
75
  for (; r.next !== null; ) {
76
- const i = r.next;
77
- r.next = i.next, e.call(n, i.data, i, this);
76
+ const s = r.next;
77
+ r.next = s.next, e.call(n, s.data, s, this);
78
78
  }
79
79
  this.releaseCursor();
80
80
  }
81
81
  forEachRight(e, n = this) {
82
82
  const r = this.allocateCursor(this.tail, null);
83
83
  for (; r.prev !== null; ) {
84
- const i = r.prev;
85
- r.prev = i.prev, e.call(n, i.data, i, this);
84
+ const s = r.prev;
85
+ r.prev = s.prev, e.call(n, s.data, s, this);
86
86
  }
87
87
  this.releaseCursor();
88
88
  }
89
89
  reduce(e, n, r = this) {
90
- let i = this.allocateCursor(null, this.head), o = n, a;
91
- for (; i.next !== null; )
92
- a = i.next, i.next = a.next, o = e.call(r, o, a.data, a, this);
90
+ let s = this.allocateCursor(null, this.head), o = n, a;
91
+ for (; s.next !== null; )
92
+ a = s.next, s.next = a.next, o = e.call(r, o, a.data, a, this);
93
93
  return this.releaseCursor(), o;
94
94
  }
95
95
  reduceRight(e, n, r = this) {
96
- let i = this.allocateCursor(this.tail, null), o = n, a;
97
- for (; i.prev !== null; )
98
- a = i.prev, i.prev = a.prev, o = e.call(r, o, a.data, a, this);
96
+ let s = this.allocateCursor(this.tail, null), o = n, a;
97
+ for (; s.prev !== null; )
98
+ a = s.prev, s.prev = a.prev, o = e.call(r, o, a.data, a, this);
99
99
  return this.releaseCursor(), o;
100
100
  }
101
101
  some(e, n = this) {
@@ -106,23 +106,23 @@ class H {
106
106
  }
107
107
  map(e, n = this) {
108
108
  const r = new H();
109
- for (let i = this.head; i !== null; i = i.next)
110
- r.appendData(e.call(n, i.data, i, this));
109
+ for (let s = this.head; s !== null; s = s.next)
110
+ r.appendData(e.call(n, s.data, s, this));
111
111
  return r;
112
112
  }
113
113
  filter(e, n = this) {
114
114
  const r = new H();
115
- for (let i = this.head; i !== null; i = i.next)
116
- e.call(n, i.data, i, this) && r.appendData(i.data);
115
+ for (let s = this.head; s !== null; s = s.next)
116
+ e.call(n, s.data, s, this) && r.appendData(s.data);
117
117
  return r;
118
118
  }
119
119
  nextUntil(e, n, r = this) {
120
120
  if (e === null)
121
121
  return;
122
- const i = this.allocateCursor(null, e);
123
- for (; i.next !== null; ) {
124
- const o = i.next;
125
- if (i.next = o.next, n.call(r, o.data, o, this))
122
+ const s = this.allocateCursor(null, e);
123
+ for (; s.next !== null; ) {
124
+ const o = s.next;
125
+ if (s.next = o.next, n.call(r, o.data, o, this))
126
126
  break;
127
127
  }
128
128
  this.releaseCursor();
@@ -130,10 +130,10 @@ class H {
130
130
  prevUntil(e, n, r = this) {
131
131
  if (e === null)
132
132
  return;
133
- const i = this.allocateCursor(e, null);
134
- for (; i.prev !== null; ) {
135
- const o = i.prev;
136
- if (i.prev = o.prev, n.call(r, o.data, o, this))
133
+ const s = this.allocateCursor(e, null);
134
+ for (; s.prev !== null; ) {
135
+ const o = s.prev;
136
+ if (s.prev = o.prev, n.call(r, o.data, o, this))
137
137
  break;
138
138
  }
139
139
  this.releaseCursor();
@@ -217,7 +217,7 @@ class H {
217
217
  "head" in n ? this.insertList(n, e) : this.insert(n, e), this.remove(e);
218
218
  }
219
219
  }
220
- function ai(t, e) {
220
+ function Zr(t, e) {
221
221
  const n = Object.create(SyntaxError.prototype), r = new Error();
222
222
  return Object.assign(n, {
223
223
  name: t,
@@ -228,147 +228,147 @@ function ai(t, e) {
228
228
  }
229
229
  });
230
230
  }
231
- const Ht = 100, nr = 60, rr = " ";
232
- function ir({ source: t, line: e, column: n, baseLine: r, baseColumn: i }, o) {
233
- function a(_, q) {
234
- return s.slice(_, q).map(
235
- (V, de) => String(_ + de + 1).padStart(y) + " |" + V
231
+ const qt = 100, Jn = 60, Yn = " ";
232
+ function Xn({ source: t, line: e, column: n, baseLine: r, baseColumn: s }, o) {
233
+ function a(S, T) {
234
+ return i.slice(S, T).map(
235
+ (P, G) => String(S + G + 1).padStart(y) + " |" + P
236
236
  ).join(`
237
237
  `);
238
238
  }
239
- const f = `
240
- `.repeat(Math.max(r - 1, 0)), c = " ".repeat(Math.max(i - 1, 0)), s = (f + c + t).split(/\r\n?|\n|\f/), l = Math.max(1, e - o) - 1, m = Math.min(e + o, s.length + 1), y = Math.max(4, String(m).length) + 1;
241
- let C = 0;
242
- n += (rr.length - 1) * (s[e - 1].substr(0, n - 1).match(/\t/g) || []).length, n > Ht && (C = n - nr + 3, n = nr - 2);
243
- for (let _ = l; _ <= m; _++)
244
- _ >= 0 && _ < s.length && (s[_] = s[_].replace(/\t/g, rr), s[_] = (C > 0 && s[_].length > C ? "…" : "") + s[_].substr(C, Ht - 2) + (s[_].length > C + Ht - 1 ? "…" : ""));
239
+ const c = `
240
+ `.repeat(Math.max(r - 1, 0)), u = " ".repeat(Math.max(s - 1, 0)), i = (c + u + t).split(/\r\n?|\n|\f/), l = Math.max(1, e - o) - 1, d = Math.min(e + o, i.length + 1), y = Math.max(4, String(d).length) + 1;
241
+ let g = 0;
242
+ n += (Yn.length - 1) * (i[e - 1].substr(0, n - 1).match(/\t/g) || []).length, n > qt && (g = n - Jn + 3, n = Jn - 2);
243
+ for (let S = l; S <= d; S++)
244
+ S >= 0 && S < i.length && (i[S] = i[S].replace(/\t/g, Yn), i[S] = (g > 0 && i[S].length > g ? "…" : "") + i[S].substr(g, qt - 2) + (i[S].length > g + qt - 1 ? "…" : ""));
245
245
  return [
246
246
  a(l, e),
247
247
  new Array(n + y + 2).join("-") + "^",
248
- a(e, m)
248
+ a(e, d)
249
249
  ].filter(Boolean).join(`
250
250
  `).replace(/^(\s+\d+\s+\|\n)+/, "").replace(/\n(\s+\d+\s+\|)+$/, "");
251
251
  }
252
- function sr(t, e, n, r, i, o = 1, a = 1) {
253
- return Object.assign(ai("SyntaxError", t), {
252
+ function Zn(t, e, n, r, s, o = 1, a = 1) {
253
+ return Object.assign(Zr("SyntaxError", t), {
254
254
  source: e,
255
255
  offset: n,
256
256
  line: r,
257
- column: i,
258
- sourceFragment(c) {
259
- return ir({ source: e, line: r, column: i, baseLine: o, baseColumn: a }, isNaN(c) ? 0 : c);
257
+ column: s,
258
+ sourceFragment(u) {
259
+ return Xn({ source: e, line: r, column: s, baseLine: o, baseColumn: a }, isNaN(u) ? 0 : u);
260
260
  },
261
261
  get formattedMessage() {
262
262
  return `Parse error: ${t}
263
- ` + ir({ source: e, line: r, column: i, baseLine: o, baseColumn: a }, 2);
263
+ ` + Xn({ source: e, line: r, column: s, baseLine: o, baseColumn: a }, 2);
264
264
  }
265
265
  });
266
266
  }
267
- const Ge = 0, k = 1, N = 2, U = 3, F = 4, ze = 5, li = 6, ie = 7, se = 8, $ = 9, L = 10, P = 11, I = 12, J = 13, Er = 14, oe = 15, ee = 16, bt = 17, Re = 18, wt = 19, mt = 20, te = 21, O = 22, dn = 23, mn = 24, he = 25, ci = 0;
267
+ const Be = 0, x = 1, D = 2, U = 3, z = 4, Pe = 5, ei = 6, ie = 7, se = 8, $ = 9, E = 10, M = 11, N = 12, J = 13, Lr = 14, oe = 15, te = 16, yt = 17, Me = 18, St = 19, ft = 20, ne = 21, I = 22, fn = 23, pn = 24, he = 25, ti = 0;
268
268
  function Q(t) {
269
269
  return t >= 48 && t <= 57;
270
270
  }
271
- function Ke(t) {
271
+ function Ue(t) {
272
272
  return Q(t) || // 0 .. 9
273
273
  t >= 65 && t <= 70 || // A .. F
274
274
  t >= 97 && t <= 102;
275
275
  }
276
- function gn(t) {
276
+ function dn(t) {
277
277
  return t >= 65 && t <= 90;
278
278
  }
279
- function ui(t) {
279
+ function ni(t) {
280
280
  return t >= 97 && t <= 122;
281
281
  }
282
- function hi(t) {
283
- return gn(t) || ui(t);
282
+ function ri(t) {
283
+ return dn(t) || ni(t);
284
284
  }
285
- function fi(t) {
285
+ function ii(t) {
286
286
  return t >= 128;
287
287
  }
288
- function gt(t) {
289
- return hi(t) || fi(t) || t === 95;
288
+ function pt(t) {
289
+ return ri(t) || ii(t) || t === 95;
290
290
  }
291
- function _r(t) {
292
- return gt(t) || Q(t) || t === 45;
291
+ function Er(t) {
292
+ return pt(t) || Q(t) || t === 45;
293
293
  }
294
- function pi(t) {
294
+ function si(t) {
295
295
  return t >= 0 && t <= 8 || t === 11 || t >= 14 && t <= 31 || t === 127;
296
296
  }
297
- function kt(t) {
297
+ function dt(t) {
298
298
  return t === 10 || t === 13 || t === 12;
299
299
  }
300
- function Ye(t) {
301
- return kt(t) || t === 32 || t === 9;
300
+ function He(t) {
301
+ return dt(t) || t === 32 || t === 9;
302
302
  }
303
- function ke(t, e) {
304
- return !(t !== 92 || kt(e) || e === ci);
303
+ function ge(t, e) {
304
+ return !(t !== 92 || dt(e) || e === ti);
305
305
  }
306
- function Wt(t, e, n) {
307
- return t === 45 ? gt(e) || e === 45 || ke(e, n) : gt(t) ? !0 : t === 92 ? ke(t, e) : !1;
306
+ function Bt(t, e, n) {
307
+ return t === 45 ? pt(e) || e === 45 || ge(e, n) : pt(t) ? !0 : t === 92 ? ge(t, e) : !1;
308
308
  }
309
- function Kt(t, e, n) {
309
+ function jt(t, e, n) {
310
310
  return t === 43 || t === 45 ? Q(e) ? 2 : e === 46 && Q(n) ? 3 : 0 : t === 46 ? Q(e) ? 2 : 0 : Q(t) ? 1 : 0;
311
311
  }
312
- function Tr(t) {
312
+ function _r(t) {
313
313
  return t === 65279 || t === 65534 ? 1 : 0;
314
314
  }
315
- const ln = new Array(128), di = 128, ht = 130, Or = 131, kn = 132, Ir = 133;
316
- for (let t = 0; t < ln.length; t++)
317
- ln[t] = Ye(t) && ht || Q(t) && Or || gt(t) && kn || pi(t) && Ir || t || di;
318
- function Qt(t) {
319
- return t < 128 ? ln[t] : kn;
315
+ const on = new Array(128), oi = 128, lt = 130, Tr = 131, mn = 132, Or = 133;
316
+ for (let t = 0; t < on.length; t++)
317
+ on[t] = He(t) && lt || Q(t) && Tr || pt(t) && mn || si(t) && Or || t || oi;
318
+ function Ut(t) {
319
+ return t < 128 ? on[t] : mn;
320
320
  }
321
- function Me(t, e) {
321
+ function $e(t, e) {
322
322
  return e < t.length ? t.charCodeAt(e) : 0;
323
323
  }
324
- function cn(t, e, n) {
325
- return n === 13 && Me(t, e + 1) === 10 ? 2 : 1;
324
+ function an(t, e, n) {
325
+ return n === 13 && $e(t, e + 1) === 10 ? 2 : 1;
326
326
  }
327
- function $r(t, e, n) {
327
+ function Ir(t, e, n) {
328
328
  let r = t.charCodeAt(e);
329
- return gn(r) && (r = r | 32), r === n;
329
+ return dn(r) && (r = r | 32), r === n;
330
330
  }
331
- function yt(t, e, n, r) {
331
+ function mt(t, e, n, r) {
332
332
  if (n - e !== r.length || e < 0 || n > t.length)
333
333
  return !1;
334
- for (let i = e; i < n; i++) {
335
- const o = r.charCodeAt(i - e);
336
- let a = t.charCodeAt(i);
337
- if (gn(a) && (a = a | 32), a !== o)
334
+ for (let s = e; s < n; s++) {
335
+ const o = r.charCodeAt(s - e);
336
+ let a = t.charCodeAt(s);
337
+ if (dn(a) && (a = a | 32), a !== o)
338
338
  return !1;
339
339
  }
340
340
  return !0;
341
341
  }
342
- function mi(t, e) {
343
- for (; e >= 0 && Ye(t.charCodeAt(e)); e--)
342
+ function ai(t, e) {
343
+ for (; e >= 0 && He(t.charCodeAt(e)); e--)
344
344
  ;
345
345
  return e + 1;
346
346
  }
347
- function at(t, e) {
348
- for (; e < t.length && Ye(t.charCodeAt(e)); e++)
347
+ function nt(t, e) {
348
+ for (; e < t.length && He(t.charCodeAt(e)); e++)
349
349
  ;
350
350
  return e;
351
351
  }
352
- function Jt(t, e) {
352
+ function Gt(t, e) {
353
353
  for (; e < t.length && Q(t.charCodeAt(e)); e++)
354
354
  ;
355
355
  return e;
356
356
  }
357
- function Qe(t, e) {
358
- if (e += 2, Ke(Me(t, e - 1))) {
359
- for (const r = Math.min(t.length, e + 5); e < r && Ke(Me(t, e)); e++)
357
+ function Ge(t, e) {
358
+ if (e += 2, Ue($e(t, e - 1))) {
359
+ for (const r = Math.min(t.length, e + 5); e < r && Ue($e(t, e)); e++)
360
360
  ;
361
- const n = Me(t, e);
362
- Ye(n) && (e += cn(t, e, n));
361
+ const n = $e(t, e);
362
+ He(n) && (e += an(t, e, n));
363
363
  }
364
364
  return e;
365
365
  }
366
- function lt(t, e) {
366
+ function rt(t, e) {
367
367
  for (; e < t.length; e++) {
368
368
  const n = t.charCodeAt(e);
369
- if (!_r(n)) {
370
- if (ke(n, Me(t, e + 1))) {
371
- e = Qe(t, e) - 1;
369
+ if (!Er(n)) {
370
+ if (ge(n, $e(t, e + 1))) {
371
+ e = Ge(t, e) - 1;
372
372
  continue;
373
373
  }
374
374
  break;
@@ -378,37 +378,37 @@ function lt(t, e) {
378
378
  }
379
379
  function Nr(t, e) {
380
380
  let n = t.charCodeAt(e);
381
- if ((n === 43 || n === 45) && (n = t.charCodeAt(e += 1)), Q(n) && (e = Jt(t, e + 1), n = t.charCodeAt(e)), n === 46 && Q(t.charCodeAt(e + 1)) && (e += 2, e = Jt(t, e)), $r(
381
+ if ((n === 43 || n === 45) && (n = t.charCodeAt(e += 1)), Q(n) && (e = Gt(t, e + 1), n = t.charCodeAt(e)), n === 46 && Q(t.charCodeAt(e + 1)) && (e += 2, e = Gt(t, e)), Ir(
382
382
  t,
383
383
  e,
384
384
  101
385
385
  /* e */
386
386
  )) {
387
387
  let r = 0;
388
- n = t.charCodeAt(e + 1), (n === 45 || n === 43) && (r = 1, n = t.charCodeAt(e + 2)), Q(n) && (e = Jt(t, e + 1 + r + 1));
388
+ n = t.charCodeAt(e + 1), (n === 45 || n === 43) && (r = 1, n = t.charCodeAt(e + 2)), Q(n) && (e = Gt(t, e + 1 + r + 1));
389
389
  }
390
390
  return e;
391
391
  }
392
- function Yt(t, e) {
392
+ function Vt(t, e) {
393
393
  for (; e < t.length; e++) {
394
394
  const n = t.charCodeAt(e);
395
395
  if (n === 41) {
396
396
  e++;
397
397
  break;
398
398
  }
399
- ke(n, Me(t, e + 1)) && (e = Qe(t, e));
399
+ ge(n, $e(t, e + 1)) && (e = Ge(t, e));
400
400
  }
401
401
  return e;
402
402
  }
403
- function gi(t) {
404
- if (t.length === 1 && !Ke(t.charCodeAt(0)))
403
+ function li(t) {
404
+ if (t.length === 1 && !Ue(t.charCodeAt(0)))
405
405
  return t[0];
406
406
  let e = parseInt(t, 16);
407
407
  return (e === 0 || // If this number is zero,
408
408
  e >= 55296 && e <= 57343 || // or is for a surrogate,
409
409
  e > 1114111) && (e = 65533), String.fromCodePoint(e);
410
410
  }
411
- const Dr = [
411
+ const $r = [
412
412
  "EOF-token",
413
413
  "ident-token",
414
414
  "function-token",
@@ -435,29 +435,29 @@ const Dr = [
435
435
  "{-token",
436
436
  "}-token",
437
437
  "comment-token"
438
- ], ki = 16 * 1024;
439
- function St(t = null, e) {
440
- return t === null || t.length < e ? new Uint32Array(Math.max(e + 1024, ki)) : t;
438
+ ], ci = 16 * 1024;
439
+ function gt(t = null, e) {
440
+ return t === null || t.length < e ? new Uint32Array(Math.max(e + 1024, ci)) : t;
441
441
  }
442
- const or = 10, yi = 12, ar = 13;
443
- function lr(t) {
444
- const e = t.source, n = e.length, r = e.length > 0 ? Tr(e.charCodeAt(0)) : 0, i = St(t.lines, n), o = St(t.columns, n);
445
- let a = t.startLine, f = t.startColumn;
446
- for (let c = r; c < n; c++) {
447
- const s = e.charCodeAt(c);
448
- i[c] = a, o[c] = f++, (s === or || s === ar || s === yi) && (s === ar && c + 1 < n && e.charCodeAt(c + 1) === or && (c++, i[c] = a, o[c] = f), a++, f = 1);
442
+ const er = 10, ui = 12, tr = 13;
443
+ function nr(t) {
444
+ const e = t.source, n = e.length, r = e.length > 0 ? _r(e.charCodeAt(0)) : 0, s = gt(t.lines, n), o = gt(t.columns, n);
445
+ let a = t.startLine, c = t.startColumn;
446
+ for (let u = r; u < n; u++) {
447
+ const i = e.charCodeAt(u);
448
+ s[u] = a, o[u] = c++, (i === er || i === tr || i === ui) && (i === tr && u + 1 < n && e.charCodeAt(u + 1) === er && (u++, s[u] = a, o[u] = c), a++, c = 1);
449
449
  }
450
- i[n] = a, o[n] = f, t.lines = i, t.columns = o, t.computed = !0;
450
+ s[n] = a, o[n] = c, t.lines = s, t.columns = o, t.computed = !0;
451
451
  }
452
- class Si {
453
- constructor(e, n, r, i) {
454
- this.setSource(e, n, r, i), this.lines = null, this.columns = null;
452
+ class hi {
453
+ constructor(e, n, r, s) {
454
+ this.setSource(e, n, r, s), this.lines = null, this.columns = null;
455
455
  }
456
- setSource(e = "", n = 0, r = 1, i = 1) {
457
- this.source = e, this.startOffset = n, this.startLine = r, this.startColumn = i, this.computed = !1;
456
+ setSource(e = "", n = 0, r = 1, s = 1) {
457
+ this.source = e, this.startOffset = n, this.startLine = r, this.startColumn = s, this.computed = !1;
458
458
  }
459
459
  getLocation(e, n) {
460
- return this.computed || lr(this), {
460
+ return this.computed || nr(this), {
461
461
  source: n,
462
462
  offset: this.startOffset + e,
463
463
  line: this.lines[e],
@@ -465,7 +465,7 @@ class Si {
465
465
  };
466
466
  }
467
467
  getLocationRange(e, n, r) {
468
- return this.computed || lr(this), {
468
+ return this.computed || nr(this), {
469
469
  source: r,
470
470
  start: {
471
471
  offset: this.startOffset + e,
@@ -480,15 +480,15 @@ class Si {
480
480
  };
481
481
  }
482
482
  }
483
- const le = 16777215, ce = 24, Te = new Uint8Array(32);
484
- Te[N] = O;
485
- Te[te] = O;
486
- Te[wt] = mt;
487
- Te[dn] = mn;
488
- function cr(t) {
489
- return Te[t] !== 0;
483
+ const le = 16777215, ce = 24, Ee = new Uint8Array(32);
484
+ Ee[D] = I;
485
+ Ee[ne] = I;
486
+ Ee[St] = ft;
487
+ Ee[fn] = pn;
488
+ function rr(t) {
489
+ return Ee[t] !== 0;
490
490
  }
491
- class xi {
491
+ class fi {
492
492
  constructor(e, n) {
493
493
  this.setSource(e, n);
494
494
  }
@@ -498,26 +498,26 @@ class xi {
498
498
  setSource(e = "", n = () => {
499
499
  }) {
500
500
  e = String(e || "");
501
- const r = e.length, i = St(this.offsetAndType, e.length + 1), o = St(this.balance, e.length + 1);
502
- let a = 0, f = -1, c = 0, s = e.length;
503
- this.offsetAndType = null, this.balance = null, o.fill(0), n(e, (l, m, y) => {
504
- const C = a++;
505
- if (i[C] = l << ce | y, f === -1 && (f = m), o[C] = s, l === c) {
506
- const _ = o[s];
507
- o[s] = C, s = _, c = Te[i[_] >> ce];
508
- } else cr(l) && (s = C, c = Te[l]);
509
- }), i[a] = Ge << ce | r, o[a] = a;
501
+ const r = e.length, s = gt(this.offsetAndType, e.length + 1), o = gt(this.balance, e.length + 1);
502
+ let a = 0, c = -1, u = 0, i = e.length;
503
+ this.offsetAndType = null, this.balance = null, o.fill(0), n(e, (l, d, y) => {
504
+ const g = a++;
505
+ if (s[g] = l << ce | y, c === -1 && (c = d), o[g] = i, l === u) {
506
+ const S = o[i];
507
+ o[i] = g, i = S, u = Ee[s[S] >> ce];
508
+ } else rr(l) && (i = g, u = Ee[l]);
509
+ }), s[a] = Be << ce | r, o[a] = a;
510
510
  for (let l = 0; l < a; l++) {
511
- const m = o[l];
512
- if (m <= l) {
513
- const y = o[m];
511
+ const d = o[l];
512
+ if (d <= l) {
513
+ const y = o[d];
514
514
  y !== l && (o[l] = y);
515
- } else m > a && (o[l] = a);
515
+ } else d > a && (o[l] = a);
516
516
  }
517
- this.source = e, this.firstCharOffset = f === -1 ? 0 : f, this.tokenCount = a, this.offsetAndType = i, this.balance = o, this.reset(), this.next();
517
+ this.source = e, this.firstCharOffset = c === -1 ? 0 : c, this.tokenCount = a, this.offsetAndType = s, this.balance = o, this.reset(), this.next();
518
518
  }
519
519
  lookupType(e) {
520
- return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e] >> ce : Ge;
520
+ return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e] >> ce : Be;
521
521
  }
522
522
  lookupTypeNonSC(e) {
523
523
  for (let n = this.tokenIndex; n < this.tokenCount; n++) {
@@ -525,7 +525,7 @@ class xi {
525
525
  if (r !== J && r !== he && e-- === 0)
526
526
  return r;
527
527
  }
528
- return Ge;
528
+ return Be;
529
529
  }
530
530
  lookupOffset(e) {
531
531
  return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e - 1] & le : this.source.length;
@@ -536,10 +536,10 @@ class xi {
536
536
  if (r !== J && r !== he && e-- === 0)
537
537
  return n - this.tokenIndex;
538
538
  }
539
- return Ge;
539
+ return Be;
540
540
  }
541
541
  lookupValue(e, n) {
542
- return e += this.tokenIndex, e < this.tokenCount ? yt(
542
+ return e += this.tokenIndex, e < this.tokenCount ? mt(
543
543
  this.source,
544
544
  this.offsetAndType[e - 1] & le,
545
545
  this.offsetAndType[e] & le,
@@ -564,17 +564,17 @@ class xi {
564
564
  }
565
565
  next() {
566
566
  let e = this.tokenIndex + 1;
567
- e < this.tokenCount ? (this.tokenIndex = e, this.tokenStart = this.tokenEnd, e = this.offsetAndType[e], this.tokenType = e >> ce, this.tokenEnd = e & le) : (this.eof = !0, this.tokenIndex = this.tokenCount, this.tokenType = Ge, this.tokenStart = this.tokenEnd = this.source.length);
567
+ e < this.tokenCount ? (this.tokenIndex = e, this.tokenStart = this.tokenEnd, e = this.offsetAndType[e], this.tokenType = e >> ce, this.tokenEnd = e & le) : (this.eof = !0, this.tokenIndex = this.tokenCount, this.tokenType = Be, this.tokenStart = this.tokenEnd = this.source.length);
568
568
  }
569
569
  skipSC() {
570
570
  for (; this.tokenType === J || this.tokenType === he; )
571
571
  this.next();
572
572
  }
573
573
  skipUntilBalanced(e, n) {
574
- let r = e, i = 0, o = 0;
574
+ let r = e, s = 0, o = 0;
575
575
  e:
576
576
  for (; r < this.tokenCount; r++) {
577
- if (i = this.balance[r], i < e)
577
+ if (s = this.balance[r], s < e)
578
578
  break e;
579
579
  switch (o = r > 0 ? this.offsetAndType[r - 1] & le : this.firstCharOffset, n(this.source.charCodeAt(o))) {
580
580
  case 1:
@@ -583,191 +583,236 @@ class xi {
583
583
  r++;
584
584
  break e;
585
585
  default:
586
- cr(this.offsetAndType[r] >> ce) && (r = i);
586
+ rr(this.offsetAndType[r] >> ce) && (r = s);
587
587
  }
588
588
  }
589
589
  this.skip(r - this.tokenIndex);
590
590
  }
591
591
  forEachToken(e) {
592
592
  for (let n = 0, r = this.firstCharOffset; n < this.tokenCount; n++) {
593
- const i = r, o = this.offsetAndType[n], a = o & le, f = o >> ce;
594
- r = a, e(f, i, a, n);
593
+ const s = r, o = this.offsetAndType[n], a = o & le, c = o >> ce;
594
+ r = a, e(c, s, a, n);
595
595
  }
596
596
  }
597
597
  dump() {
598
598
  const e = new Array(this.tokenCount);
599
- return this.forEachToken((n, r, i, o) => {
599
+ return this.forEachToken((n, r, s, o) => {
600
600
  e[o] = {
601
601
  idx: o,
602
- type: Dr[n],
603
- chunk: this.source.substring(r, i),
602
+ type: $r[n],
603
+ chunk: this.source.substring(r, s),
604
604
  balance: this.balance[o]
605
605
  };
606
606
  }), e;
607
607
  }
608
608
  }
609
- function Pr(t, e) {
610
- function n(m) {
611
- return m < f ? t.charCodeAt(m) : 0;
609
+ function Dr(t, e) {
610
+ function n(d) {
611
+ return d < c ? t.charCodeAt(d) : 0;
612
612
  }
613
613
  function r() {
614
- if (s = Nr(t, s), Wt(n(s), n(s + 1), n(s + 2))) {
615
- l = I, s = lt(t, s);
614
+ if (i = Nr(t, i), Bt(n(i), n(i + 1), n(i + 2))) {
615
+ l = N, i = rt(t, i);
616
616
  return;
617
617
  }
618
- if (n(s) === 37) {
619
- l = P, s++;
618
+ if (n(i) === 37) {
619
+ l = M, i++;
620
620
  return;
621
621
  }
622
- l = L;
622
+ l = E;
623
623
  }
624
- function i() {
625
- const m = s;
626
- if (s = lt(t, s), yt(t, m, s, "url") && n(s) === 40) {
627
- if (s = at(t, s + 1), n(s) === 34 || n(s) === 39) {
628
- l = N, s = m + 4;
624
+ function s() {
625
+ const d = i;
626
+ if (i = rt(t, i), mt(t, d, i, "url") && n(i) === 40) {
627
+ if (i = nt(t, i + 1), n(i) === 34 || n(i) === 39) {
628
+ l = D, i = d + 4;
629
629
  return;
630
630
  }
631
631
  a();
632
632
  return;
633
633
  }
634
- if (n(s) === 40) {
635
- l = N, s++;
634
+ if (n(i) === 40) {
635
+ l = D, i++;
636
636
  return;
637
637
  }
638
- l = k;
638
+ l = x;
639
639
  }
640
- function o(m) {
641
- for (m || (m = n(s++)), l = ze; s < t.length; s++) {
642
- const y = t.charCodeAt(s);
643
- switch (Qt(y)) {
644
- case m:
645
- s++;
640
+ function o(d) {
641
+ for (d || (d = n(i++)), l = Pe; i < t.length; i++) {
642
+ const y = t.charCodeAt(i);
643
+ switch (Ut(y)) {
644
+ // ending code point
645
+ case d:
646
+ i++;
646
647
  return;
647
- case ht:
648
- if (kt(y)) {
649
- s += cn(t, s, y), l = li;
648
+ // EOF
649
+ // case EofCategory:
650
+ // This is a parse error. Return the <string-token>.
651
+ // return;
652
+ // newline
653
+ case lt:
654
+ if (dt(y)) {
655
+ i += an(t, i, y), l = ei;
650
656
  return;
651
657
  }
652
658
  break;
659
+ // U+005C REVERSE SOLIDUS (\)
653
660
  case 92:
654
- if (s === t.length - 1)
661
+ if (i === t.length - 1)
655
662
  break;
656
- const C = n(s + 1);
657
- kt(C) ? s += cn(t, s + 1, C) : ke(y, C) && (s = Qe(t, s) - 1);
663
+ const g = n(i + 1);
664
+ dt(g) ? i += an(t, i + 1, g) : ge(y, g) && (i = Ge(t, i) - 1);
658
665
  break;
659
666
  }
660
667
  }
661
668
  }
662
669
  function a() {
663
- for (l = ie, s = at(t, s); s < t.length; s++) {
664
- const m = t.charCodeAt(s);
665
- switch (Qt(m)) {
670
+ for (l = ie, i = nt(t, i); i < t.length; i++) {
671
+ const d = t.charCodeAt(i);
672
+ switch (Ut(d)) {
673
+ // U+0029 RIGHT PARENTHESIS ())
666
674
  case 41:
667
- s++;
675
+ i++;
668
676
  return;
669
- case ht:
670
- if (s = at(t, s), n(s) === 41 || s >= t.length) {
671
- s < t.length && s++;
677
+ // EOF
678
+ // case EofCategory:
679
+ // This is a parse error. Return the <url-token>.
680
+ // return;
681
+ // whitespace
682
+ case lt:
683
+ if (i = nt(t, i), n(i) === 41 || i >= t.length) {
684
+ i < t.length && i++;
672
685
  return;
673
686
  }
674
- s = Yt(t, s), l = se;
687
+ i = Vt(t, i), l = se;
675
688
  return;
689
+ // U+0022 QUOTATION MARK (")
690
+ // U+0027 APOSTROPHE (')
691
+ // U+0028 LEFT PARENTHESIS (()
692
+ // non-printable code point
676
693
  case 34:
677
694
  case 39:
678
695
  case 40:
679
- case Ir:
680
- s = Yt(t, s), l = se;
696
+ case Or:
697
+ i = Vt(t, i), l = se;
681
698
  return;
699
+ // U+005C REVERSE SOLIDUS (\)
682
700
  case 92:
683
- if (ke(m, n(s + 1))) {
684
- s = Qe(t, s) - 1;
701
+ if (ge(d, n(i + 1))) {
702
+ i = Ge(t, i) - 1;
685
703
  break;
686
704
  }
687
- s = Yt(t, s), l = se;
705
+ i = Vt(t, i), l = se;
688
706
  return;
689
707
  }
690
708
  }
691
709
  }
692
710
  t = String(t || "");
693
- const f = t.length;
694
- let c = Tr(n(0)), s = c, l;
695
- for (; s < f; ) {
696
- const m = t.charCodeAt(s);
697
- switch (Qt(m)) {
698
- case ht:
699
- l = J, s = at(t, s + 1);
711
+ const c = t.length;
712
+ let u = _r(n(0)), i = u, l;
713
+ for (; i < c; ) {
714
+ const d = t.charCodeAt(i);
715
+ switch (Ut(d)) {
716
+ // whitespace
717
+ case lt:
718
+ l = J, i = nt(t, i + 1);
700
719
  break;
720
+ // U+0022 QUOTATION MARK (")
701
721
  case 34:
702
722
  o();
703
723
  break;
724
+ // U+0023 NUMBER SIGN (#)
704
725
  case 35:
705
- _r(n(s + 1)) || ke(n(s + 1), n(s + 2)) ? (l = F, s = lt(t, s + 1)) : (l = $, s++);
726
+ Er(n(i + 1)) || ge(n(i + 1), n(i + 2)) ? (l = z, i = rt(t, i + 1)) : (l = $, i++);
706
727
  break;
728
+ // U+0027 APOSTROPHE (')
707
729
  case 39:
708
730
  o();
709
731
  break;
732
+ // U+0028 LEFT PARENTHESIS (()
710
733
  case 40:
711
- l = te, s++;
734
+ l = ne, i++;
712
735
  break;
736
+ // U+0029 RIGHT PARENTHESIS ())
713
737
  case 41:
714
- l = O, s++;
738
+ l = I, i++;
715
739
  break;
740
+ // U+002B PLUS SIGN (+)
716
741
  case 43:
717
- Kt(m, n(s + 1), n(s + 2)) ? r() : (l = $, s++);
742
+ jt(d, n(i + 1), n(i + 2)) ? r() : (l = $, i++);
718
743
  break;
744
+ // U+002C COMMA (,)
719
745
  case 44:
720
- l = Re, s++;
746
+ l = Me, i++;
721
747
  break;
748
+ // U+002D HYPHEN-MINUS (-)
722
749
  case 45:
723
- Kt(m, n(s + 1), n(s + 2)) ? r() : n(s + 1) === 45 && n(s + 2) === 62 ? (l = oe, s = s + 3) : Wt(m, n(s + 1), n(s + 2)) ? i() : (l = $, s++);
750
+ jt(d, n(i + 1), n(i + 2)) ? r() : n(i + 1) === 45 && n(i + 2) === 62 ? (l = oe, i = i + 3) : Bt(d, n(i + 1), n(i + 2)) ? s() : (l = $, i++);
724
751
  break;
752
+ // U+002E FULL STOP (.)
725
753
  case 46:
726
- Kt(m, n(s + 1), n(s + 2)) ? r() : (l = $, s++);
754
+ jt(d, n(i + 1), n(i + 2)) ? r() : (l = $, i++);
727
755
  break;
756
+ // U+002F SOLIDUS (/)
728
757
  case 47:
729
- n(s + 1) === 42 ? (l = he, s = t.indexOf("*/", s + 2), s = s === -1 ? t.length : s + 2) : (l = $, s++);
758
+ n(i + 1) === 42 ? (l = he, i = t.indexOf("*/", i + 2), i = i === -1 ? t.length : i + 2) : (l = $, i++);
730
759
  break;
760
+ // U+003A COLON (:)
731
761
  case 58:
732
- l = ee, s++;
762
+ l = te, i++;
733
763
  break;
764
+ // U+003B SEMICOLON (;)
734
765
  case 59:
735
- l = bt, s++;
766
+ l = yt, i++;
736
767
  break;
768
+ // U+003C LESS-THAN SIGN (<)
737
769
  case 60:
738
- n(s + 1) === 33 && n(s + 2) === 45 && n(s + 3) === 45 ? (l = Er, s = s + 4) : (l = $, s++);
770
+ n(i + 1) === 33 && n(i + 2) === 45 && n(i + 3) === 45 ? (l = Lr, i = i + 4) : (l = $, i++);
739
771
  break;
772
+ // U+0040 COMMERCIAL AT (@)
740
773
  case 64:
741
- Wt(n(s + 1), n(s + 2), n(s + 3)) ? (l = U, s = lt(t, s + 1)) : (l = $, s++);
774
+ Bt(n(i + 1), n(i + 2), n(i + 3)) ? (l = U, i = rt(t, i + 1)) : (l = $, i++);
742
775
  break;
776
+ // U+005B LEFT SQUARE BRACKET ([)
743
777
  case 91:
744
- l = wt, s++;
778
+ l = St, i++;
745
779
  break;
780
+ // U+005C REVERSE SOLIDUS (\)
746
781
  case 92:
747
- ke(m, n(s + 1)) ? i() : (l = $, s++);
782
+ ge(d, n(i + 1)) ? s() : (l = $, i++);
748
783
  break;
784
+ // U+005D RIGHT SQUARE BRACKET (])
749
785
  case 93:
750
- l = mt, s++;
786
+ l = ft, i++;
751
787
  break;
788
+ // U+007B LEFT CURLY BRACKET ({)
752
789
  case 123:
753
- l = dn, s++;
790
+ l = fn, i++;
754
791
  break;
792
+ // U+007D RIGHT CURLY BRACKET (})
755
793
  case 125:
756
- l = mn, s++;
794
+ l = pn, i++;
757
795
  break;
758
- case Or:
796
+ // digit
797
+ case Tr:
759
798
  r();
760
799
  break;
761
- case kn:
762
- i();
800
+ // name-start code point
801
+ case mn:
802
+ s();
763
803
  break;
804
+ // EOF
805
+ // case EofCategory:
806
+ // Return an <EOF-token>.
807
+ // break;
808
+ // anything else
764
809
  default:
765
- l = $, s++;
810
+ l = $, i++;
766
811
  }
767
- e(l, c, c = s);
812
+ e(l, u, u = i);
768
813
  }
769
814
  }
770
- function Ci(t) {
815
+ function pi(t) {
771
816
  const e = this.createList();
772
817
  let n = !1;
773
818
  const r = {
@@ -782,36 +827,36 @@ function Ci(t) {
782
827
  n = !0, this.next();
783
828
  continue;
784
829
  }
785
- let i = t.getNode.call(this, r);
786
- if (i === void 0)
830
+ let s = t.getNode.call(this, r);
831
+ if (s === void 0)
787
832
  break;
788
- n && (t.onWhiteSpace && t.onWhiteSpace.call(this, i, e, r), n = !1), e.push(i);
833
+ n && (t.onWhiteSpace && t.onWhiteSpace.call(this, s, e, r), n = !1), e.push(s);
789
834
  }
790
835
  return n && t.onWhiteSpace && t.onWhiteSpace.call(this, null, e, r), e;
791
836
  }
792
- const ur = () => {
793
- }, bi = 33, wi = 35, Xt = 59, hr = 123, fr = 0;
794
- function vi(t) {
837
+ const ir = () => {
838
+ }, di = 33, mi = 35, Ht = 59, sr = 123, or = 0;
839
+ function gi(t) {
795
840
  return function() {
796
841
  return this[t]();
797
842
  };
798
843
  }
799
- function Zt(t) {
844
+ function Wt(t) {
800
845
  const e = /* @__PURE__ */ Object.create(null);
801
846
  for (const n of Object.keys(t)) {
802
- const r = t[n], i = r.parse || r;
803
- i && (e[n] = i);
847
+ const r = t[n], s = r.parse || r;
848
+ s && (e[n] = s);
804
849
  }
805
850
  return e;
806
851
  }
807
- function Ai(t) {
852
+ function ki(t) {
808
853
  const e = {
809
854
  context: /* @__PURE__ */ Object.create(null),
810
855
  features: Object.assign(/* @__PURE__ */ Object.create(null), t.features),
811
856
  scope: Object.assign(/* @__PURE__ */ Object.create(null), t.scope),
812
- atrule: Zt(t.atrule),
813
- pseudo: Zt(t.pseudo),
814
- node: Zt(t.node)
857
+ atrule: Wt(t.atrule),
858
+ pseudo: Wt(t.pseudo),
859
+ node: Wt(t.node)
815
860
  };
816
861
  for (const [n, r] of Object.entries(t.parseContext))
817
862
  switch (typeof r) {
@@ -819,7 +864,7 @@ function Ai(t) {
819
864
  e.context[n] = r;
820
865
  break;
821
866
  case "string":
822
- e.context[n] = vi(r);
867
+ e.context[n] = gi(r);
823
868
  break;
824
869
  }
825
870
  return {
@@ -828,167 +873,167 @@ function Ai(t) {
828
873
  ...e.node
829
874
  };
830
875
  }
831
- function Li(t) {
832
- let e = "", n = "<unknown>", r = !1, i = ur, o = !1;
833
- const a = new Si(), f = Object.assign(new xi(), Ai(t || {}), {
876
+ function yi(t) {
877
+ let e = "", n = "<unknown>", r = !1, s = ir, o = !1;
878
+ const a = new hi(), c = Object.assign(new fi(), ki(t || {}), {
834
879
  parseAtrulePrelude: !0,
835
880
  parseRulePrelude: !0,
836
881
  parseValue: !0,
837
882
  parseCustomProperty: !1,
838
- readSequence: Ci,
883
+ readSequence: pi,
839
884
  consumeUntilBalanceEnd: () => 0,
840
- consumeUntilLeftCurlyBracket(s) {
841
- return s === hr ? 1 : 0;
885
+ consumeUntilLeftCurlyBracket(i) {
886
+ return i === sr ? 1 : 0;
842
887
  },
843
- consumeUntilLeftCurlyBracketOrSemicolon(s) {
844
- return s === hr || s === Xt ? 1 : 0;
888
+ consumeUntilLeftCurlyBracketOrSemicolon(i) {
889
+ return i === sr || i === Ht ? 1 : 0;
845
890
  },
846
- consumeUntilExclamationMarkOrSemicolon(s) {
847
- return s === bi || s === Xt ? 1 : 0;
891
+ consumeUntilExclamationMarkOrSemicolon(i) {
892
+ return i === di || i === Ht ? 1 : 0;
848
893
  },
849
- consumeUntilSemicolonIncluded(s) {
850
- return s === Xt ? 2 : 0;
894
+ consumeUntilSemicolonIncluded(i) {
895
+ return i === Ht ? 2 : 0;
851
896
  },
852
897
  createList() {
853
898
  return new H();
854
899
  },
855
- createSingleNodeList(s) {
856
- return new H().appendData(s);
900
+ createSingleNodeList(i) {
901
+ return new H().appendData(i);
857
902
  },
858
- getFirstListNode(s) {
859
- return s && s.first;
903
+ getFirstListNode(i) {
904
+ return i && i.first;
860
905
  },
861
- getLastListNode(s) {
862
- return s && s.last;
906
+ getLastListNode(i) {
907
+ return i && i.last;
863
908
  },
864
- parseWithFallback(s, l) {
865
- const m = this.tokenIndex;
909
+ parseWithFallback(i, l) {
910
+ const d = this.tokenIndex;
866
911
  try {
867
- return s.call(this);
912
+ return i.call(this);
868
913
  } catch (y) {
869
914
  if (o)
870
915
  throw y;
871
- this.skip(m - this.tokenIndex);
872
- const C = l.call(this);
873
- return o = !0, i(y, C), o = !1, C;
916
+ this.skip(d - this.tokenIndex);
917
+ const g = l.call(this);
918
+ return o = !0, s(y, g), o = !1, g;
874
919
  }
875
920
  },
876
- lookupNonWSType(s) {
921
+ lookupNonWSType(i) {
877
922
  let l;
878
923
  do
879
- if (l = this.lookupType(s++), l !== J && l !== he)
924
+ if (l = this.lookupType(i++), l !== J && l !== he)
880
925
  return l;
881
- while (l !== fr);
882
- return fr;
926
+ while (l !== or);
927
+ return or;
883
928
  },
884
- charCodeAt(s) {
885
- return s >= 0 && s < e.length ? e.charCodeAt(s) : 0;
929
+ charCodeAt(i) {
930
+ return i >= 0 && i < e.length ? e.charCodeAt(i) : 0;
886
931
  },
887
- substring(s, l) {
888
- return e.substring(s, l);
932
+ substring(i, l) {
933
+ return e.substring(i, l);
889
934
  },
890
- substrToCursor(s) {
891
- return this.source.substring(s, this.tokenStart);
935
+ substrToCursor(i) {
936
+ return this.source.substring(i, this.tokenStart);
892
937
  },
893
- cmpChar(s, l) {
894
- return $r(e, s, l);
938
+ cmpChar(i, l) {
939
+ return Ir(e, i, l);
895
940
  },
896
- cmpStr(s, l, m) {
897
- return yt(e, s, l, m);
941
+ cmpStr(i, l, d) {
942
+ return mt(e, i, l, d);
898
943
  },
899
- consume(s) {
944
+ consume(i) {
900
945
  const l = this.tokenStart;
901
- return this.eat(s), this.substrToCursor(l);
946
+ return this.eat(i), this.substrToCursor(l);
902
947
  },
903
948
  consumeFunctionName() {
904
- const s = e.substring(this.tokenStart, this.tokenEnd - 1);
905
- return this.eat(N), s;
949
+ const i = e.substring(this.tokenStart, this.tokenEnd - 1);
950
+ return this.eat(D), i;
906
951
  },
907
- consumeNumber(s) {
952
+ consumeNumber(i) {
908
953
  const l = e.substring(this.tokenStart, Nr(e, this.tokenStart));
909
- return this.eat(s), l;
954
+ return this.eat(i), l;
910
955
  },
911
- eat(s) {
912
- if (this.tokenType !== s) {
913
- const l = Dr[s].slice(0, -6).replace(/-/g, " ").replace(/^./, (C) => C.toUpperCase());
914
- let m = `${/[[\](){}]/.test(l) ? `"${l}"` : l} is expected`, y = this.tokenStart;
915
- switch (s) {
916
- case k:
917
- this.tokenType === N || this.tokenType === ie ? (y = this.tokenEnd - 1, m = "Identifier is expected but function found") : m = "Identifier is expected";
956
+ eat(i) {
957
+ if (this.tokenType !== i) {
958
+ const l = $r[i].slice(0, -6).replace(/-/g, " ").replace(/^./, (g) => g.toUpperCase());
959
+ let d = `${/[[\](){}]/.test(l) ? `"${l}"` : l} is expected`, y = this.tokenStart;
960
+ switch (i) {
961
+ case x:
962
+ this.tokenType === D || this.tokenType === ie ? (y = this.tokenEnd - 1, d = "Identifier is expected but function found") : d = "Identifier is expected";
918
963
  break;
919
- case F:
920
- this.isDelim(wi) && (this.next(), y++, m = "Name is expected");
964
+ case z:
965
+ this.isDelim(mi) && (this.next(), y++, d = "Name is expected");
921
966
  break;
922
- case P:
923
- this.tokenType === L && (y = this.tokenEnd, m = "Percent sign is expected");
967
+ case M:
968
+ this.tokenType === E && (y = this.tokenEnd, d = "Percent sign is expected");
924
969
  break;
925
970
  }
926
- this.error(m, y);
971
+ this.error(d, y);
927
972
  }
928
973
  this.next();
929
974
  },
930
- eatIdent(s) {
931
- (this.tokenType !== k || this.lookupValue(0, s) === !1) && this.error(`Identifier "${s}" is expected`), this.next();
975
+ eatIdent(i) {
976
+ (this.tokenType !== x || this.lookupValue(0, i) === !1) && this.error(`Identifier "${i}" is expected`), this.next();
932
977
  },
933
- eatDelim(s) {
934
- this.isDelim(s) || this.error(`Delim "${String.fromCharCode(s)}" is expected`), this.next();
978
+ eatDelim(i) {
979
+ this.isDelim(i) || this.error(`Delim "${String.fromCharCode(i)}" is expected`), this.next();
935
980
  },
936
- getLocation(s, l) {
981
+ getLocation(i, l) {
937
982
  return r ? a.getLocationRange(
938
- s,
983
+ i,
939
984
  l,
940
985
  n
941
986
  ) : null;
942
987
  },
943
- getLocationFromList(s) {
988
+ getLocationFromList(i) {
944
989
  if (r) {
945
- const l = this.getFirstListNode(s), m = this.getLastListNode(s);
990
+ const l = this.getFirstListNode(i), d = this.getLastListNode(i);
946
991
  return a.getLocationRange(
947
992
  l !== null ? l.loc.start.offset - a.startOffset : this.tokenStart,
948
- m !== null ? m.loc.end.offset - a.startOffset : this.tokenStart,
993
+ d !== null ? d.loc.end.offset - a.startOffset : this.tokenStart,
949
994
  n
950
995
  );
951
996
  }
952
997
  return null;
953
998
  },
954
- error(s, l) {
955
- const m = typeof l < "u" && l < e.length ? a.getLocation(l) : this.eof ? a.getLocation(mi(e, e.length - 1)) : a.getLocation(this.tokenStart);
956
- throw new sr(
957
- s || "Unexpected input",
999
+ error(i, l) {
1000
+ const d = typeof l < "u" && l < e.length ? a.getLocation(l) : this.eof ? a.getLocation(ai(e, e.length - 1)) : a.getLocation(this.tokenStart);
1001
+ throw new Zn(
1002
+ i || "Unexpected input",
958
1003
  e,
959
- m.offset,
960
- m.line,
961
- m.column,
1004
+ d.offset,
1005
+ d.line,
1006
+ d.column,
962
1007
  a.startLine,
963
1008
  a.startColumn
964
1009
  );
965
1010
  }
966
1011
  });
967
- return Object.assign(function(s, l) {
968
- e = s, l = l || {}, f.setSource(e, Pr), a.setSource(
1012
+ return Object.assign(function(i, l) {
1013
+ e = i, l = l || {}, c.setSource(e, Dr), a.setSource(
969
1014
  e,
970
1015
  l.offset,
971
1016
  l.line,
972
1017
  l.column
973
- ), n = l.filename || "<unknown>", r = !!l.positions, i = typeof l.onParseError == "function" ? l.onParseError : ur, o = !1, f.parseAtrulePrelude = "parseAtrulePrelude" in l ? !!l.parseAtrulePrelude : !0, f.parseRulePrelude = "parseRulePrelude" in l ? !!l.parseRulePrelude : !0, f.parseValue = "parseValue" in l ? !!l.parseValue : !0, f.parseCustomProperty = "parseCustomProperty" in l ? !!l.parseCustomProperty : !1;
974
- const { context: m = "default", onComment: y } = l;
975
- if (!(m in f.context))
976
- throw new Error("Unknown context `" + m + "`");
977
- typeof y == "function" && f.forEachToken((_, q, V) => {
978
- if (_ === he) {
979
- const de = f.getLocation(q, V), Oe = yt(e, V - 2, V, "*/") ? e.slice(q + 2, V - 2) : e.slice(q + 2, V);
980
- y(Oe, de);
1018
+ ), n = l.filename || "<unknown>", r = !!l.positions, s = typeof l.onParseError == "function" ? l.onParseError : ir, o = !1, c.parseAtrulePrelude = "parseAtrulePrelude" in l ? !!l.parseAtrulePrelude : !0, c.parseRulePrelude = "parseRulePrelude" in l ? !!l.parseRulePrelude : !0, c.parseValue = "parseValue" in l ? !!l.parseValue : !0, c.parseCustomProperty = "parseCustomProperty" in l ? !!l.parseCustomProperty : !1;
1019
+ const { context: d = "default", onComment: y } = l;
1020
+ if (!(d in c.context))
1021
+ throw new Error("Unknown context `" + d + "`");
1022
+ typeof y == "function" && c.forEachToken((S, T, P) => {
1023
+ if (S === he) {
1024
+ const G = c.getLocation(T, P), Y = mt(e, P - 2, P, "*/") ? e.slice(T + 2, P - 2) : e.slice(T + 2, P);
1025
+ y(Y, G);
981
1026
  }
982
1027
  });
983
- const C = f.context[m].call(f, l);
984
- return f.eof || f.error(), C;
1028
+ const g = c.context[d].call(c, l);
1029
+ return c.eof || c.error(), g;
985
1030
  }, {
986
- SyntaxError: sr,
987
- config: f.config
1031
+ SyntaxError: Zn,
1032
+ config: c.config
988
1033
  });
989
1034
  }
990
- const Ei = 35, _i = 38, Ti = 42, Oi = 43, Ii = 47, pr = 46, $i = 62, Ni = 124, Di = 126;
991
- function Pi(t, e) {
1035
+ const Si = 35, xi = 38, Ci = 42, bi = 43, wi = 47, ar = 46, vi = 62, Ai = 124, Li = 126;
1036
+ function Ei(t, e) {
992
1037
  e.last !== null && e.last.type !== "Combinator" && t !== null && t.type !== "Combinator" && e.push({
993
1038
  // FIXME: this.Combinator() should be used instead
994
1039
  type: "Combinator",
@@ -996,62 +1041,62 @@ function Pi(t, e) {
996
1041
  name: " "
997
1042
  });
998
1043
  }
999
- function Mi() {
1044
+ function _i() {
1000
1045
  switch (this.tokenType) {
1001
- case wt:
1046
+ case St:
1002
1047
  return this.AttributeSelector();
1003
- case F:
1048
+ case z:
1004
1049
  return this.IdSelector();
1005
- case ee:
1006
- return this.lookupType(1) === ee ? this.PseudoElementSelector() : this.PseudoClassSelector();
1007
- case k:
1050
+ case te:
1051
+ return this.lookupType(1) === te ? this.PseudoElementSelector() : this.PseudoClassSelector();
1052
+ case x:
1008
1053
  return this.TypeSelector();
1009
- case L:
1010
- case P:
1054
+ case E:
1055
+ case M:
1011
1056
  return this.Percentage();
1012
- case I:
1013
- this.charCodeAt(this.tokenStart) === pr && this.error("Identifier is expected", this.tokenStart + 1);
1057
+ case N:
1058
+ this.charCodeAt(this.tokenStart) === ar && this.error("Identifier is expected", this.tokenStart + 1);
1014
1059
  break;
1015
1060
  case $: {
1016
1061
  switch (this.charCodeAt(this.tokenStart)) {
1017
- case Oi:
1018
- case $i:
1019
- case Di:
1020
- case Ii:
1062
+ case bi:
1063
+ case vi:
1064
+ case Li:
1065
+ case wi:
1021
1066
  return this.Combinator();
1022
- case pr:
1067
+ case ar:
1023
1068
  return this.ClassSelector();
1024
- case Ti:
1025
- case Ni:
1069
+ case Ci:
1070
+ case Ai:
1026
1071
  return this.TypeSelector();
1027
- case Ei:
1072
+ case Si:
1028
1073
  return this.IdSelector();
1029
- case _i:
1074
+ case xi:
1030
1075
  return this.NestingSelector();
1031
1076
  }
1032
1077
  break;
1033
1078
  }
1034
1079
  }
1035
1080
  }
1036
- const Fi = {
1037
- onWhiteSpace: Pi,
1038
- getNode: Mi
1081
+ const Ti = {
1082
+ onWhiteSpace: Ei,
1083
+ getNode: _i
1039
1084
  };
1040
- function zi() {
1085
+ function Oi() {
1041
1086
  const t = this.createList();
1042
1087
  this.skipSC();
1043
1088
  e: for (; !this.eof; ) {
1044
1089
  switch (this.tokenType) {
1045
- case k:
1090
+ case x:
1046
1091
  t.push(this.Identifier());
1047
1092
  break;
1048
- case ze:
1093
+ case Pe:
1049
1094
  t.push(this.String());
1050
1095
  break;
1051
- case Re:
1096
+ case Me:
1052
1097
  t.push(this.Operator());
1053
1098
  break;
1054
- case O:
1099
+ case I:
1055
1100
  break e;
1056
1101
  default:
1057
1102
  this.error("Identifier, string or comma is expected");
@@ -1060,64 +1105,64 @@ function zi() {
1060
1105
  }
1061
1106
  return t;
1062
1107
  }
1063
- const Le = {
1108
+ const Ae = {
1064
1109
  parse() {
1065
1110
  return this.createSingleNodeList(
1066
1111
  this.SelectorList()
1067
1112
  );
1068
1113
  }
1069
- }, en = {
1114
+ }, Kt = {
1070
1115
  parse() {
1071
1116
  return this.createSingleNodeList(
1072
1117
  this.Selector()
1073
1118
  );
1074
1119
  }
1075
- }, Ri = {
1120
+ }, Ii = {
1076
1121
  parse() {
1077
1122
  return this.createSingleNodeList(
1078
1123
  this.Identifier()
1079
1124
  );
1080
1125
  }
1081
- }, qi = {
1082
- parse: zi
1083
- }, ct = {
1126
+ }, Ni = {
1127
+ parse: Oi
1128
+ }, it = {
1084
1129
  parse() {
1085
1130
  return this.createSingleNodeList(
1086
1131
  this.Nth()
1087
1132
  );
1088
1133
  }
1089
- }, Bi = {
1090
- dir: Ri,
1091
- has: Le,
1092
- lang: qi,
1093
- matches: Le,
1094
- is: Le,
1095
- "-moz-any": Le,
1096
- "-webkit-any": Le,
1097
- where: Le,
1098
- not: Le,
1099
- "nth-child": ct,
1100
- "nth-last-child": ct,
1101
- "nth-last-of-type": ct,
1102
- "nth-of-type": ct,
1103
- slotted: en,
1104
- host: en,
1105
- "host-context": en
1106
- }, ue = 43, K = 45, ft = 110, Ee = !0, ji = !1;
1107
- function pt(t, e) {
1134
+ }, $i = {
1135
+ dir: Ii,
1136
+ has: Ae,
1137
+ lang: Ni,
1138
+ matches: Ae,
1139
+ is: Ae,
1140
+ "-moz-any": Ae,
1141
+ "-webkit-any": Ae,
1142
+ where: Ae,
1143
+ not: Ae,
1144
+ "nth-child": it,
1145
+ "nth-last-child": it,
1146
+ "nth-last-of-type": it,
1147
+ "nth-of-type": it,
1148
+ slotted: Kt,
1149
+ host: Kt,
1150
+ "host-context": Kt
1151
+ }, ue = 43, K = 45, ct = 110, Le = !0, Di = !1;
1152
+ function ut(t, e) {
1108
1153
  let n = this.tokenStart + t;
1109
1154
  const r = this.charCodeAt(n);
1110
1155
  for ((r === ue || r === K) && (e && this.error("Number sign is not allowed"), n++); n < this.tokenEnd; n++)
1111
1156
  Q(this.charCodeAt(n)) || this.error("Integer is expected", n);
1112
1157
  }
1113
- function Pe(t) {
1114
- return pt.call(this, 0, t);
1158
+ function Ne(t) {
1159
+ return ut.call(this, 0, t);
1115
1160
  }
1116
- function be(t, e) {
1161
+ function xe(t, e) {
1117
1162
  if (!this.cmpChar(this.tokenStart + t, e)) {
1118
1163
  let n = "";
1119
1164
  switch (e) {
1120
- case ft:
1165
+ case ct:
1121
1166
  n = "N is expected";
1122
1167
  break;
1123
1168
  case K:
@@ -1127,55 +1172,65 @@ function be(t, e) {
1127
1172
  this.error(n, this.tokenStart + t);
1128
1173
  }
1129
1174
  }
1130
- function tn() {
1175
+ function Qt() {
1131
1176
  let t = 0, e = 0, n = this.tokenType;
1132
1177
  for (; n === J || n === he; )
1133
1178
  n = this.lookupType(++t);
1134
- if (n !== L)
1179
+ if (n !== E)
1135
1180
  if (this.isDelim(ue, t) || this.isDelim(K, t)) {
1136
1181
  e = this.isDelim(ue, t) ? ue : K;
1137
1182
  do
1138
1183
  n = this.lookupType(++t);
1139
1184
  while (n === J || n === he);
1140
- n !== L && (this.skip(t), Pe.call(this, Ee));
1185
+ n !== E && (this.skip(t), Ne.call(this, Le));
1141
1186
  } else
1142
1187
  return null;
1143
- return t > 0 && this.skip(t), e === 0 && (n = this.charCodeAt(this.tokenStart), n !== ue && n !== K && this.error("Number sign is expected")), Pe.call(this, e !== 0), e === K ? "-" + this.consume(L) : this.consume(L);
1188
+ return t > 0 && this.skip(t), e === 0 && (n = this.charCodeAt(this.tokenStart), n !== ue && n !== K && this.error("Number sign is expected")), Ne.call(this, e !== 0), e === K ? "-" + this.consume(E) : this.consume(E);
1144
1189
  }
1145
- function Ui() {
1190
+ function Pi() {
1146
1191
  const t = this.tokenStart;
1147
1192
  let e = null, n = null;
1148
- if (this.tokenType === L)
1149
- Pe.call(this, ji), n = this.consume(L);
1150
- else if (this.tokenType === k && this.cmpChar(this.tokenStart, K))
1151
- switch (e = "-1", be.call(this, 1, ft), this.tokenEnd - this.tokenStart) {
1193
+ if (this.tokenType === E)
1194
+ Ne.call(this, Di), n = this.consume(E);
1195
+ else if (this.tokenType === x && this.cmpChar(this.tokenStart, K))
1196
+ switch (e = "-1", xe.call(this, 1, ct), this.tokenEnd - this.tokenStart) {
1197
+ // -n
1198
+ // -n <signed-integer>
1199
+ // -n ['+' | '-'] <signless-integer>
1152
1200
  case 2:
1153
- this.next(), n = tn.call(this);
1201
+ this.next(), n = Qt.call(this);
1154
1202
  break;
1203
+ // -n- <signless-integer>
1155
1204
  case 3:
1156
- be.call(this, 2, K), this.next(), this.skipSC(), Pe.call(this, Ee), n = "-" + this.consume(L);
1205
+ xe.call(this, 2, K), this.next(), this.skipSC(), Ne.call(this, Le), n = "-" + this.consume(E);
1157
1206
  break;
1207
+ // <dashndashdigit-ident>
1158
1208
  default:
1159
- be.call(this, 2, K), pt.call(this, 3, Ee), this.next(), n = this.substrToCursor(t + 2);
1209
+ xe.call(this, 2, K), ut.call(this, 3, Le), this.next(), n = this.substrToCursor(t + 2);
1160
1210
  }
1161
- else if (this.tokenType === k || this.isDelim(ue) && this.lookupType(1) === k) {
1211
+ else if (this.tokenType === x || this.isDelim(ue) && this.lookupType(1) === x) {
1162
1212
  let r = 0;
1163
- switch (e = "1", this.isDelim(ue) && (r = 1, this.next()), be.call(this, 0, ft), this.tokenEnd - this.tokenStart) {
1213
+ switch (e = "1", this.isDelim(ue) && (r = 1, this.next()), xe.call(this, 0, ct), this.tokenEnd - this.tokenStart) {
1214
+ // '+'? n
1215
+ // '+'? n <signed-integer>
1216
+ // '+'? n ['+' | '-'] <signless-integer>
1164
1217
  case 1:
1165
- this.next(), n = tn.call(this);
1218
+ this.next(), n = Qt.call(this);
1166
1219
  break;
1220
+ // '+'? n- <signless-integer>
1167
1221
  case 2:
1168
- be.call(this, 1, K), this.next(), this.skipSC(), Pe.call(this, Ee), n = "-" + this.consume(L);
1222
+ xe.call(this, 1, K), this.next(), this.skipSC(), Ne.call(this, Le), n = "-" + this.consume(E);
1169
1223
  break;
1224
+ // '+'? <ndashdigit-ident>
1170
1225
  default:
1171
- be.call(this, 1, K), pt.call(this, 2, Ee), this.next(), n = this.substrToCursor(t + r + 1);
1226
+ xe.call(this, 1, K), ut.call(this, 2, Le), this.next(), n = this.substrToCursor(t + r + 1);
1172
1227
  }
1173
- } else if (this.tokenType === I) {
1174
- const r = this.charCodeAt(this.tokenStart), i = r === ue || r === K;
1175
- let o = this.tokenStart + i;
1228
+ } else if (this.tokenType === N) {
1229
+ const r = this.charCodeAt(this.tokenStart), s = r === ue || r === K;
1230
+ let o = this.tokenStart + s;
1176
1231
  for (; o < this.tokenEnd && Q(this.charCodeAt(o)); o++)
1177
1232
  ;
1178
- o === this.tokenStart + i && this.error("Integer is expected", this.tokenStart + i), be.call(this, o - this.tokenStart, ft), e = this.substring(t, o), o + 1 === this.tokenEnd ? (this.next(), n = tn.call(this)) : (be.call(this, o - this.tokenStart + 1, K), o + 2 === this.tokenEnd ? (this.next(), this.skipSC(), Pe.call(this, Ee), n = "-" + this.consume(L)) : (pt.call(this, o - this.tokenStart + 2, Ee), this.next(), n = this.substrToCursor(o + 1)));
1233
+ o === this.tokenStart + s && this.error("Integer is expected", this.tokenStart + s), xe.call(this, o - this.tokenStart, ct), e = this.substring(t, o), o + 1 === this.tokenEnd ? (this.next(), n = Qt.call(this)) : (xe.call(this, o - this.tokenStart + 1, K), o + 2 === this.tokenEnd ? (this.next(), this.skipSC(), Ne.call(this, Le), n = "-" + this.consume(E)) : (ut.call(this, o - this.tokenStart + 2, Le), this.next(), n = this.substrToCursor(o + 1)));
1179
1234
  } else
1180
1235
  this.error();
1181
1236
  return e !== null && e.charCodeAt(0) === ue && (e = e.substr(1)), n !== null && n.charCodeAt(0) === ue && (n = n.substr(1)), {
@@ -1185,7 +1240,7 @@ function Ui() {
1185
1240
  b: n
1186
1241
  };
1187
1242
  }
1188
- function Vi(t) {
1243
+ function Mi(t) {
1189
1244
  if (t.a) {
1190
1245
  const e = t.a === "+1" && "n" || t.a === "1" && "n" || t.a === "-1" && "-n" || t.a + "n";
1191
1246
  if (t.b) {
@@ -1196,54 +1251,54 @@ function Vi(t) {
1196
1251
  } else
1197
1252
  this.tokenize(t.b);
1198
1253
  }
1199
- const Gi = 36, Mr = 42, dt = 61, Hi = 94, un = 124, Wi = 126;
1200
- function Ki() {
1254
+ const Fi = 36, Pr = 42, ht = 61, zi = 94, ln = 124, Ri = 126;
1255
+ function qi() {
1201
1256
  this.eof && this.error("Unexpected end of input");
1202
1257
  const t = this.tokenStart;
1203
1258
  let e = !1;
1204
- return this.isDelim(Mr) ? (e = !0, this.next()) : this.isDelim(un) || this.eat(k), this.isDelim(un) ? this.charCodeAt(this.tokenStart + 1) !== dt ? (this.next(), this.eat(k)) : e && this.error("Identifier is expected", this.tokenEnd) : e && this.error("Vertical line is expected"), {
1259
+ return this.isDelim(Pr) ? (e = !0, this.next()) : this.isDelim(ln) || this.eat(x), this.isDelim(ln) ? this.charCodeAt(this.tokenStart + 1) !== ht ? (this.next(), this.eat(x)) : e && this.error("Identifier is expected", this.tokenEnd) : e && this.error("Vertical line is expected"), {
1205
1260
  type: "Identifier",
1206
1261
  loc: this.getLocation(t, this.tokenStart),
1207
1262
  name: this.substrToCursor(t)
1208
1263
  };
1209
1264
  }
1210
- function Qi() {
1265
+ function Bi() {
1211
1266
  const t = this.tokenStart, e = this.charCodeAt(t);
1212
- return e !== dt && // =
1213
- e !== Wi && // ~=
1214
- e !== Hi && // ^=
1215
- e !== Gi && // $=
1216
- e !== Mr && // *=
1217
- e !== un && this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"), this.next(), e !== dt && (this.isDelim(dt) || this.error("Equal sign is expected"), this.next()), this.substrToCursor(t);
1218
- }
1219
- function Ji() {
1267
+ return e !== ht && // =
1268
+ e !== Ri && // ~=
1269
+ e !== zi && // ^=
1270
+ e !== Fi && // $=
1271
+ e !== Pr && // *=
1272
+ e !== ln && this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"), this.next(), e !== ht && (this.isDelim(ht) || this.error("Equal sign is expected"), this.next()), this.substrToCursor(t);
1273
+ }
1274
+ function ji() {
1220
1275
  const t = this.tokenStart;
1221
- let e, n = null, r = null, i = null;
1222
- return this.eat(wt), this.skipSC(), e = Ki.call(this), this.skipSC(), this.tokenType !== mt && (this.tokenType !== k && (n = Qi.call(this), this.skipSC(), r = this.tokenType === ze ? this.String() : this.Identifier(), this.skipSC()), this.tokenType === k && (i = this.consume(k), this.skipSC())), this.eat(mt), {
1276
+ let e, n = null, r = null, s = null;
1277
+ return this.eat(St), this.skipSC(), e = qi.call(this), this.skipSC(), this.tokenType !== ft && (this.tokenType !== x && (n = Bi.call(this), this.skipSC(), r = this.tokenType === Pe ? this.String() : this.Identifier(), this.skipSC()), this.tokenType === x && (s = this.consume(x), this.skipSC())), this.eat(ft), {
1223
1278
  type: "AttributeSelector",
1224
1279
  loc: this.getLocation(t, this.tokenStart),
1225
1280
  name: e,
1226
1281
  matcher: n,
1227
1282
  value: r,
1228
- flags: i
1283
+ flags: s
1229
1284
  };
1230
1285
  }
1231
- function Yi(t) {
1232
- this.token($, "["), this.node(t.name), t.matcher !== null && (this.tokenize(t.matcher), this.node(t.value)), t.flags !== null && this.token(k, t.flags), this.token($, "]");
1286
+ function Ui(t) {
1287
+ this.token($, "["), this.node(t.name), t.matcher !== null && (this.tokenize(t.matcher), this.node(t.value)), t.flags !== null && this.token(x, t.flags), this.token($, "]");
1233
1288
  }
1234
- const Xi = 46;
1235
- function Zi() {
1236
- return this.eatDelim(Xi), {
1289
+ const Gi = 46;
1290
+ function Vi() {
1291
+ return this.eatDelim(Gi), {
1237
1292
  type: "ClassSelector",
1238
1293
  loc: this.getLocation(this.tokenStart - 1, this.tokenEnd),
1239
- name: this.consume(k)
1294
+ name: this.consume(x)
1240
1295
  };
1241
1296
  }
1242
- function es(t) {
1243
- this.token($, "."), this.token(k, t.name);
1297
+ function Hi(t) {
1298
+ this.token($, "."), this.token(x, t.name);
1244
1299
  }
1245
- const ts = 43, dr = 47, ns = 62, rs = 126;
1246
- function is() {
1300
+ const Wi = 43, lr = 47, Ki = 62, Qi = 126;
1301
+ function Ji() {
1247
1302
  const t = this.tokenStart;
1248
1303
  let e;
1249
1304
  switch (this.tokenType) {
@@ -1252,13 +1307,13 @@ function is() {
1252
1307
  break;
1253
1308
  case $:
1254
1309
  switch (this.charCodeAt(this.tokenStart)) {
1255
- case ns:
1256
- case ts:
1257
- case rs:
1310
+ case Ki:
1311
+ case Wi:
1312
+ case Qi:
1258
1313
  this.next();
1259
1314
  break;
1260
- case dr:
1261
- this.next(), this.eatIdent("deep"), this.eatDelim(dr);
1315
+ case lr:
1316
+ this.next(), this.eatIdent("deep"), this.eatDelim(lr);
1262
1317
  break;
1263
1318
  default:
1264
1319
  this.error("Combinator is expected");
@@ -1272,42 +1327,42 @@ function is() {
1272
1327
  name: e
1273
1328
  };
1274
1329
  }
1275
- function ss(t) {
1330
+ function Yi(t) {
1276
1331
  this.tokenize(t.name);
1277
1332
  }
1278
- function os() {
1333
+ function Xi() {
1279
1334
  return {
1280
1335
  type: "Identifier",
1281
1336
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
1282
- name: this.consume(k)
1337
+ name: this.consume(x)
1283
1338
  };
1284
1339
  }
1285
- function as(t) {
1286
- this.token(k, t.name);
1340
+ function Zi(t) {
1341
+ this.token(x, t.name);
1287
1342
  }
1288
- function ls() {
1343
+ function es() {
1289
1344
  const t = this.tokenStart;
1290
- return this.eat(F), {
1345
+ return this.eat(z), {
1291
1346
  type: "IdSelector",
1292
1347
  loc: this.getLocation(t, this.tokenStart),
1293
1348
  name: this.substrToCursor(t + 1)
1294
1349
  };
1295
1350
  }
1296
- function cs(t) {
1351
+ function ts(t) {
1297
1352
  this.token($, "#" + t.name);
1298
1353
  }
1299
- const us = 38;
1300
- function hs() {
1354
+ const ns = 38;
1355
+ function rs() {
1301
1356
  const t = this.tokenStart;
1302
- return this.eatDelim(us), {
1357
+ return this.eatDelim(ns), {
1303
1358
  type: "NestingSelector",
1304
1359
  loc: this.getLocation(t, this.tokenStart)
1305
1360
  };
1306
1361
  }
1307
- function fs() {
1362
+ function is() {
1308
1363
  this.token($, "&");
1309
1364
  }
1310
- function ps() {
1365
+ function ss() {
1311
1366
  this.skipSC();
1312
1367
  const t = this.tokenStart;
1313
1368
  let e = t, n = null, r;
@@ -1318,10 +1373,10 @@ function ps() {
1318
1373
  selector: n
1319
1374
  };
1320
1375
  }
1321
- function ds(t) {
1322
- this.node(t.nth), t.selector !== null && (this.token(k, "of"), this.node(t.selector));
1376
+ function os(t) {
1377
+ this.node(t.nth), t.selector !== null && (this.token(x, "of"), this.node(t.selector));
1323
1378
  }
1324
- function ms() {
1379
+ function as() {
1325
1380
  const t = this.tokenStart;
1326
1381
  return this.next(), {
1327
1382
  type: "Operator",
@@ -1329,65 +1384,65 @@ function ms() {
1329
1384
  value: this.substrToCursor(t)
1330
1385
  };
1331
1386
  }
1332
- function gs(t) {
1387
+ function ls(t) {
1333
1388
  this.tokenize(t.value);
1334
1389
  }
1335
- function ks() {
1390
+ function cs() {
1336
1391
  return {
1337
1392
  type: "Percentage",
1338
1393
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
1339
- value: this.consumeNumber(P)
1394
+ value: this.consumeNumber(M)
1340
1395
  };
1341
1396
  }
1342
- function ys(t) {
1343
- this.token(P, t.value + "%");
1397
+ function us(t) {
1398
+ this.token(M, t.value + "%");
1344
1399
  }
1345
- function Ss() {
1400
+ function hs() {
1346
1401
  const t = this.tokenStart;
1347
1402
  let e = null, n, r;
1348
- return this.eat(ee), this.tokenType === N ? (n = this.consumeFunctionName(), r = n.toLowerCase(), this.lookupNonWSType(0) == O ? e = this.createList() : hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), e = this.pseudo[r].call(this), this.skipSC()) : (e = this.createList(), e.push(
1403
+ return this.eat(te), this.tokenType === D ? (n = this.consumeFunctionName(), r = n.toLowerCase(), this.lookupNonWSType(0) == I ? e = this.createList() : hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), e = this.pseudo[r].call(this), this.skipSC()) : (e = this.createList(), e.push(
1349
1404
  this.Raw(null, !1)
1350
- )), this.eat(O)) : n = this.consume(k), {
1405
+ )), this.eat(I)) : n = this.consume(x), {
1351
1406
  type: "PseudoClassSelector",
1352
1407
  loc: this.getLocation(t, this.tokenStart),
1353
1408
  name: n,
1354
1409
  children: e
1355
1410
  };
1356
1411
  }
1357
- function xs(t) {
1358
- this.token(ee, ":"), t.children === null ? this.token(k, t.name) : (this.token(N, t.name + "("), this.children(t), this.token(O, ")"));
1412
+ function fs(t) {
1413
+ this.token(te, ":"), t.children === null ? this.token(x, t.name) : (this.token(D, t.name + "("), this.children(t), this.token(I, ")"));
1359
1414
  }
1360
- function Cs() {
1415
+ function ps() {
1361
1416
  const t = this.tokenStart;
1362
1417
  let e = null, n, r;
1363
- return this.eat(ee), this.eat(ee), this.tokenType === N ? (n = this.consumeFunctionName(), r = n.toLowerCase(), this.lookupNonWSType(0) == O ? e = this.createList() : hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), e = this.pseudo[r].call(this), this.skipSC()) : (e = this.createList(), e.push(
1418
+ return this.eat(te), this.eat(te), this.tokenType === D ? (n = this.consumeFunctionName(), r = n.toLowerCase(), this.lookupNonWSType(0) == I ? e = this.createList() : hasOwnProperty.call(this.pseudo, r) ? (this.skipSC(), e = this.pseudo[r].call(this), this.skipSC()) : (e = this.createList(), e.push(
1364
1419
  this.Raw(null, !1)
1365
- )), this.eat(O)) : n = this.consume(k), {
1420
+ )), this.eat(I)) : n = this.consume(x), {
1366
1421
  type: "PseudoElementSelector",
1367
1422
  loc: this.getLocation(t, this.tokenStart),
1368
1423
  name: n,
1369
1424
  children: e
1370
1425
  };
1371
1426
  }
1372
- function bs(t) {
1373
- this.token(ee, ":"), this.token(ee, ":"), t.children === null ? this.token(k, t.name) : (this.token(N, t.name + "("), this.children(t), this.token(O, ")"));
1427
+ function ds(t) {
1428
+ this.token(te, ":"), this.token(te, ":"), t.children === null ? this.token(x, t.name) : (this.token(D, t.name + "("), this.children(t), this.token(I, ")"));
1374
1429
  }
1375
- function ws() {
1430
+ function ms() {
1376
1431
  return this.tokenIndex > 0 && this.lookupType(-1) === J ? this.tokenIndex > 1 ? this.getTokenStart(this.tokenIndex - 1) : this.firstCharOffset : this.tokenStart;
1377
1432
  }
1378
- function vs(t, e) {
1433
+ function gs(t, e) {
1379
1434
  const n = this.getTokenStart(this.tokenIndex);
1380
1435
  let r;
1381
- return this.skipUntilBalanced(this.tokenIndex, t || this.consumeUntilBalanceEnd), e && this.tokenStart > n ? r = ws.call(this) : r = this.tokenStart, {
1436
+ return this.skipUntilBalanced(this.tokenIndex, t || this.consumeUntilBalanceEnd), e && this.tokenStart > n ? r = ms.call(this) : r = this.tokenStart, {
1382
1437
  type: "Raw",
1383
1438
  loc: this.getLocation(n, r),
1384
1439
  value: this.substring(n, r)
1385
1440
  };
1386
1441
  }
1387
- function As(t) {
1442
+ function ks(t) {
1388
1443
  this.tokenize(t.value);
1389
1444
  }
1390
- function Ls() {
1445
+ function ys() {
1391
1446
  const t = this.readSequence(this.scope.Selector);
1392
1447
  return this.getFirstListNode(t) === null && this.error("Selector is expected"), {
1393
1448
  type: "Selector",
@@ -1395,13 +1450,13 @@ function Ls() {
1395
1450
  children: t
1396
1451
  };
1397
1452
  }
1398
- function Es(t) {
1453
+ function Ss(t) {
1399
1454
  this.children(t);
1400
1455
  }
1401
- function _s() {
1456
+ function xs() {
1402
1457
  const t = this.createList();
1403
1458
  for (; !this.eof; ) {
1404
- if (t.push(this.Selector()), this.tokenType === Re) {
1459
+ if (t.push(this.Selector()), this.tokenType === Me) {
1405
1460
  this.next();
1406
1461
  continue;
1407
1462
  }
@@ -1413,652 +1468,658 @@ function _s() {
1413
1468
  children: t
1414
1469
  };
1415
1470
  }
1416
- function Ts(t) {
1417
- this.children(t, () => this.token(Re, ","));
1471
+ function Cs(t) {
1472
+ this.children(t, () => this.token(Me, ","));
1418
1473
  }
1419
- const hn = 92, Fr = 34, Os = 39;
1420
- function Is(t) {
1421
- const e = t.length, n = t.charCodeAt(0), r = n === Fr || n === Os ? 1 : 0, i = r === 1 && e > 1 && t.charCodeAt(e - 1) === n ? e - 2 : e - 1;
1474
+ const cn = 92, Mr = 34, bs = 39;
1475
+ function ws(t) {
1476
+ const e = t.length, n = t.charCodeAt(0), r = n === Mr || n === bs ? 1 : 0, s = r === 1 && e > 1 && t.charCodeAt(e - 1) === n ? e - 2 : e - 1;
1422
1477
  let o = "";
1423
- for (let a = r; a <= i; a++) {
1424
- let f = t.charCodeAt(a);
1425
- if (f === hn) {
1426
- if (a === i) {
1478
+ for (let a = r; a <= s; a++) {
1479
+ let c = t.charCodeAt(a);
1480
+ if (c === cn) {
1481
+ if (a === s) {
1427
1482
  a !== e - 1 && (o = t.substr(a + 1));
1428
1483
  break;
1429
1484
  }
1430
- if (f = t.charCodeAt(++a), ke(hn, f)) {
1431
- const c = a - 1, s = Qe(t, c);
1432
- a = s - 1, o += gi(t.substring(c + 1, s));
1485
+ if (c = t.charCodeAt(++a), ge(cn, c)) {
1486
+ const u = a - 1, i = Ge(t, u);
1487
+ a = i - 1, o += li(t.substring(u + 1, i));
1433
1488
  } else
1434
- f === 13 && t.charCodeAt(a + 1) === 10 && a++;
1489
+ c === 13 && t.charCodeAt(a + 1) === 10 && a++;
1435
1490
  } else
1436
1491
  o += t[a];
1437
1492
  }
1438
1493
  return o;
1439
1494
  }
1440
- function $s(t, e) {
1441
- const n = '"', r = Fr;
1442
- let i = "", o = !1;
1495
+ function vs(t, e) {
1496
+ const n = '"', r = Mr;
1497
+ let s = "", o = !1;
1443
1498
  for (let a = 0; a < t.length; a++) {
1444
- const f = t.charCodeAt(a);
1445
- if (f === 0) {
1446
- i += "�";
1499
+ const c = t.charCodeAt(a);
1500
+ if (c === 0) {
1501
+ s += "�";
1447
1502
  continue;
1448
1503
  }
1449
- if (f <= 31 || f === 127) {
1450
- i += "\\" + f.toString(16), o = !0;
1504
+ if (c <= 31 || c === 127) {
1505
+ s += "\\" + c.toString(16), o = !0;
1451
1506
  continue;
1452
1507
  }
1453
- f === r || f === hn ? (i += "\\" + t.charAt(a), o = !1) : (o && (Ke(f) || Ye(f)) && (i += " "), i += t.charAt(a), o = !1);
1508
+ c === r || c === cn ? (s += "\\" + t.charAt(a), o = !1) : (o && (Ue(c) || He(c)) && (s += " "), s += t.charAt(a), o = !1);
1454
1509
  }
1455
- return n + i + n;
1510
+ return n + s + n;
1456
1511
  }
1457
- function Ns() {
1512
+ function As() {
1458
1513
  return {
1459
1514
  type: "String",
1460
1515
  loc: this.getLocation(this.tokenStart, this.tokenEnd),
1461
- value: Is(this.consume(ze))
1516
+ value: ws(this.consume(Pe))
1462
1517
  };
1463
1518
  }
1464
- function Ds(t) {
1465
- this.token(ze, $s(t.value));
1519
+ function Ls(t) {
1520
+ this.token(Pe, vs(t.value));
1466
1521
  }
1467
- const Ps = 42, mr = 124;
1468
- function nn() {
1469
- this.tokenType !== k && this.isDelim(Ps) === !1 && this.error("Identifier or asterisk is expected"), this.next();
1522
+ const Es = 42, cr = 124;
1523
+ function Jt() {
1524
+ this.tokenType !== x && this.isDelim(Es) === !1 && this.error("Identifier or asterisk is expected"), this.next();
1470
1525
  }
1471
- function Ms() {
1526
+ function _s() {
1472
1527
  const t = this.tokenStart;
1473
- return this.isDelim(mr) ? (this.next(), nn.call(this)) : (nn.call(this), this.isDelim(mr) && (this.next(), nn.call(this))), {
1528
+ return this.isDelim(cr) ? (this.next(), Jt.call(this)) : (Jt.call(this), this.isDelim(cr) && (this.next(), Jt.call(this))), {
1474
1529
  type: "TypeSelector",
1475
1530
  loc: this.getLocation(t, this.tokenStart),
1476
1531
  name: this.substrToCursor(t)
1477
1532
  };
1478
1533
  }
1479
- function Fs(t) {
1534
+ function Ts(t) {
1480
1535
  this.tokenize(t.name);
1481
1536
  }
1482
- const zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1537
+ const Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1483
1538
  __proto__: null,
1484
- AnPlusB: Ui,
1485
- AttributeSelector: Ji,
1486
- ClassSelector: Zi,
1487
- Combinator: is,
1488
- IdSelector: ls,
1489
- Identifier: os,
1490
- NestingSelector: hs,
1491
- Nth: ps,
1492
- Operator: ms,
1493
- Percentage: ks,
1494
- PseudoClassSelector: Ss,
1495
- PseudoElementSelector: Cs,
1496
- Raw: vs,
1497
- Selector: Ls,
1498
- SelectorList: _s,
1499
- String: Ns,
1500
- TypeSelector: Ms
1501
- }, Symbol.toStringTag, { value: "Module" })), Rs = {
1539
+ AnPlusB: Pi,
1540
+ AttributeSelector: ji,
1541
+ ClassSelector: Vi,
1542
+ Combinator: Ji,
1543
+ IdSelector: es,
1544
+ Identifier: Xi,
1545
+ NestingSelector: rs,
1546
+ Nth: ss,
1547
+ Operator: as,
1548
+ Percentage: cs,
1549
+ PseudoClassSelector: hs,
1550
+ PseudoElementSelector: ps,
1551
+ Raw: gs,
1552
+ Selector: ys,
1553
+ SelectorList: xs,
1554
+ String: As,
1555
+ TypeSelector: _s
1556
+ }, Symbol.toStringTag, { value: "Module" })), Is = {
1502
1557
  parseContext: {
1503
1558
  default: "SelectorList",
1504
1559
  selectorList: "SelectorList",
1505
1560
  selector: "Selector"
1506
1561
  },
1507
- scope: { Selector: Fi },
1562
+ scope: { Selector: Ti },
1508
1563
  atrule: {},
1509
- pseudo: Bi,
1510
- node: zs
1511
- }, gr = Li(Rs);
1512
- var yn = {}, Sn = {}, kr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
1513
- Sn.encode = function(t) {
1514
- if (0 <= t && t < kr.length)
1515
- return kr[t];
1516
- throw new TypeError("Must be between 0 and 63: " + t);
1517
- };
1518
- Sn.decode = function(t) {
1519
- var e = 65, n = 90, r = 97, i = 122, o = 48, a = 57, f = 43, c = 47, s = 26, l = 52;
1520
- return e <= t && t <= n ? t - e : r <= t && t <= i ? t - r + s : o <= t && t <= a ? t - o + l : t == f ? 62 : t == c ? 63 : -1;
1521
- };
1522
- var zr = Sn, xn = 5, Rr = 1 << xn, qr = Rr - 1, Br = Rr;
1523
- function qs(t) {
1524
- return t < 0 ? (-t << 1) + 1 : (t << 1) + 0;
1525
- }
1526
- function Bs(t) {
1527
- var e = (t & 1) === 1, n = t >> 1;
1528
- return e ? -n : n;
1529
- }
1530
- yn.encode = function(e) {
1531
- var n = "", r, i = qs(e);
1532
- do
1533
- r = i & qr, i >>>= xn, i > 0 && (r |= Br), n += zr.encode(r);
1534
- while (i > 0);
1535
- return n;
1536
- };
1537
- yn.decode = function(e, n, r) {
1538
- var i = e.length, o = 0, a = 0, f, c;
1539
- do {
1540
- if (n >= i)
1541
- throw new Error("Expected more digits in base 64 VLQ value.");
1542
- if (c = zr.decode(e.charCodeAt(n++)), c === -1)
1543
- throw new Error("Invalid base64 digit: " + e.charAt(n - 1));
1544
- f = !!(c & Br), c &= qr, o = o + (c << a), a += xn;
1545
- } while (f);
1546
- r.value = Bs(o), r.rest = n;
1547
- };
1548
- var vt = {};
1549
- (function(t) {
1550
- function e(u, h, g) {
1551
- if (h in u)
1552
- return u[h];
1553
- if (arguments.length === 3)
1554
- return g;
1555
- throw new Error('"' + h + '" is a required argument.');
1556
- }
1557
- t.getArg = e;
1558
- var n = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/, r = /^data:.+\,.+$/;
1559
- function i(u) {
1560
- var h = u.match(n);
1561
- return h ? {
1562
- scheme: h[1],
1563
- auth: h[2],
1564
- host: h[3],
1565
- port: h[4],
1566
- path: h[5]
1567
- } : null;
1568
- }
1569
- t.urlParse = i;
1570
- function o(u) {
1571
- var h = "";
1572
- return u.scheme && (h += u.scheme + ":"), h += "//", u.auth && (h += u.auth + "@"), u.host && (h += u.host), u.port && (h += ":" + u.port), u.path && (h += u.path), h;
1573
- }
1574
- t.urlGenerate = o;
1575
- var a = 32;
1576
- function f(u) {
1577
- var h = [];
1578
- return function(g) {
1579
- for (var p = 0; p < h.length; p++)
1580
- if (h[p].input === g) {
1581
- var X = h[0];
1582
- return h[0] = h[p], h[p] = X, h[0].result;
1583
- }
1584
- var j = u(g);
1585
- return h.unshift({
1586
- input: g,
1587
- result: j
1588
- }), h.length > a && h.pop(), j;
1564
+ pseudo: $i,
1565
+ node: Os
1566
+ }, ur = yi(Is);
1567
+ var Yt = {}, st = {}, ot = {}, hr;
1568
+ function Ns() {
1569
+ if (hr) return ot;
1570
+ hr = 1;
1571
+ var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
1572
+ return ot.encode = function(e) {
1573
+ if (0 <= e && e < t.length)
1574
+ return t[e];
1575
+ throw new TypeError("Must be between 0 and 63: " + e);
1576
+ }, ot.decode = function(e) {
1577
+ var n = 65, r = 90, s = 97, o = 122, a = 48, c = 57, u = 43, i = 47, l = 26, d = 52;
1578
+ return n <= e && e <= r ? e - n : s <= e && e <= o ? e - s + l : a <= e && e <= c ? e - a + d : e == u ? 62 : e == i ? 63 : -1;
1579
+ }, ot;
1580
+ }
1581
+ var fr;
1582
+ function $s() {
1583
+ if (fr) return st;
1584
+ fr = 1;
1585
+ var t = Ns(), e = 5, n = 1 << e, r = n - 1, s = n;
1586
+ function o(c) {
1587
+ return c < 0 ? (-c << 1) + 1 : (c << 1) + 0;
1588
+ }
1589
+ function a(c) {
1590
+ var u = (c & 1) === 1, i = c >> 1;
1591
+ return u ? -i : i;
1592
+ }
1593
+ return st.encode = function(u) {
1594
+ var i = "", l, d = o(u);
1595
+ do
1596
+ l = d & r, d >>>= e, d > 0 && (l |= s), i += t.encode(l);
1597
+ while (d > 0);
1598
+ return i;
1599
+ }, st.decode = function(u, i, l) {
1600
+ var d = u.length, y = 0, g = 0, S, T;
1601
+ do {
1602
+ if (i >= d)
1603
+ throw new Error("Expected more digits in base 64 VLQ value.");
1604
+ if (T = t.decode(u.charCodeAt(i++)), T === -1)
1605
+ throw new Error("Invalid base64 digit: " + u.charAt(i - 1));
1606
+ S = !!(T & s), T &= r, y = y + (T << g), g += e;
1607
+ } while (S);
1608
+ l.value = a(y), l.rest = i;
1609
+ }, st;
1610
+ }
1611
+ var Xt = {}, pr;
1612
+ function gn() {
1613
+ return pr || (pr = 1, function(t) {
1614
+ function e(h, f, k) {
1615
+ if (f in h)
1616
+ return h[f];
1617
+ if (arguments.length === 3)
1618
+ return k;
1619
+ throw new Error('"' + f + '" is a required argument.');
1620
+ }
1621
+ t.getArg = e;
1622
+ var n = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/, r = /^data:.+\,.+$/;
1623
+ function s(h) {
1624
+ var f = h.match(n);
1625
+ return f ? {
1626
+ scheme: f[1],
1627
+ auth: f[2],
1628
+ host: f[3],
1629
+ port: f[4],
1630
+ path: f[5]
1631
+ } : null;
1632
+ }
1633
+ t.urlParse = s;
1634
+ function o(h) {
1635
+ var f = "";
1636
+ return h.scheme && (f += h.scheme + ":"), f += "//", h.auth && (f += h.auth + "@"), h.host && (f += h.host), h.port && (f += ":" + h.port), h.path && (f += h.path), f;
1637
+ }
1638
+ t.urlGenerate = o;
1639
+ var a = 32;
1640
+ function c(h) {
1641
+ var f = [];
1642
+ return function(k) {
1643
+ for (var p = 0; p < f.length; p++)
1644
+ if (f[p].input === k) {
1645
+ var Z = f[0];
1646
+ return f[0] = f[p], f[p] = Z, f[0].result;
1647
+ }
1648
+ var j = h(k);
1649
+ return f.unshift({
1650
+ input: k,
1651
+ result: j
1652
+ }), f.length > a && f.pop(), j;
1653
+ };
1654
+ }
1655
+ var u = c(function(f) {
1656
+ var k = f, p = s(f);
1657
+ if (p) {
1658
+ if (!p.path)
1659
+ return f;
1660
+ k = p.path;
1661
+ }
1662
+ for (var Z = t.isAbsolute(k), j = [], ke = 0, R = 0; ; )
1663
+ if (ke = R, R = k.indexOf("/", ke), R === -1) {
1664
+ j.push(k.slice(ke));
1665
+ break;
1666
+ } else
1667
+ for (j.push(k.slice(ke, R)); R < k.length && k[R] === "/"; )
1668
+ R++;
1669
+ for (var ye, de = 0, R = j.length - 1; R >= 0; R--)
1670
+ ye = j[R], ye === "." ? j.splice(R, 1) : ye === ".." ? de++ : de > 0 && (ye === "" ? (j.splice(R + 1, de), de = 0) : (j.splice(R, 2), de--));
1671
+ return k = j.join("/"), k === "" && (k = Z ? "/" : "."), p ? (p.path = k, o(p)) : k;
1672
+ });
1673
+ t.normalize = u;
1674
+ function i(h, f) {
1675
+ h === "" && (h = "."), f === "" && (f = ".");
1676
+ var k = s(f), p = s(h);
1677
+ if (p && (h = p.path || "/"), k && !k.scheme)
1678
+ return p && (k.scheme = p.scheme), o(k);
1679
+ if (k || f.match(r))
1680
+ return f;
1681
+ if (p && !p.host && !p.path)
1682
+ return p.host = f, o(p);
1683
+ var Z = f.charAt(0) === "/" ? f : u(h.replace(/\/+$/, "") + "/" + f);
1684
+ return p ? (p.path = Z, o(p)) : Z;
1685
+ }
1686
+ t.join = i, t.isAbsolute = function(h) {
1687
+ return h.charAt(0) === "/" || n.test(h);
1589
1688
  };
1590
- }
1591
- var c = f(function(h) {
1592
- var g = h, p = i(h);
1593
- if (p) {
1594
- if (!p.path)
1595
- return h;
1596
- g = p.path;
1689
+ function l(h, f) {
1690
+ h === "" && (h = "."), h = h.replace(/\/$/, "");
1691
+ for (var k = 0; f.indexOf(h + "/") !== 0; ) {
1692
+ var p = h.lastIndexOf("/");
1693
+ if (p < 0 || (h = h.slice(0, p), h.match(/^([^\/]+:\/)?\/*$/)))
1694
+ return f;
1695
+ ++k;
1696
+ }
1697
+ return Array(k + 1).join("../") + f.substr(h.length + 1);
1597
1698
  }
1598
- for (var X = t.isAbsolute(g), j = [], Se = 0, z = 0; ; )
1599
- if (Se = z, z = g.indexOf("/", Se), z === -1) {
1600
- j.push(g.slice(Se));
1601
- break;
1602
- } else
1603
- for (j.push(g.slice(Se, z)); z < g.length && g[z] === "/"; )
1604
- z++;
1605
- for (var xe, me = 0, z = j.length - 1; z >= 0; z--)
1606
- xe = j[z], xe === "." ? j.splice(z, 1) : xe === ".." ? me++ : me > 0 && (xe === "" ? (j.splice(z + 1, me), me = 0) : (j.splice(z, 2), me--));
1607
- return g = j.join("/"), g === "" && (g = X ? "/" : "."), p ? (p.path = g, o(p)) : g;
1608
- });
1609
- t.normalize = c;
1610
- function s(u, h) {
1611
- u === "" && (u = "."), h === "" && (h = ".");
1612
- var g = i(h), p = i(u);
1613
- if (p && (u = p.path || "/"), g && !g.scheme)
1614
- return p && (g.scheme = p.scheme), o(g);
1615
- if (g || h.match(r))
1699
+ t.relative = l;
1700
+ var d = function() {
1701
+ var h = /* @__PURE__ */ Object.create(null);
1702
+ return !("__proto__" in h);
1703
+ }();
1704
+ function y(h) {
1616
1705
  return h;
1617
- if (p && !p.host && !p.path)
1618
- return p.host = h, o(p);
1619
- var X = h.charAt(0) === "/" ? h : c(u.replace(/\/+$/, "") + "/" + h);
1620
- return p ? (p.path = X, o(p)) : X;
1621
- }
1622
- t.join = s, t.isAbsolute = function(u) {
1623
- return u.charAt(0) === "/" || n.test(u);
1624
- };
1625
- function l(u, h) {
1626
- u === "" && (u = "."), u = u.replace(/\/$/, "");
1627
- for (var g = 0; h.indexOf(u + "/") !== 0; ) {
1628
- var p = u.lastIndexOf("/");
1629
- if (p < 0 || (u = u.slice(0, p), u.match(/^([^\/]+:\/)?\/*$/)))
1630
- return h;
1631
- ++g;
1632
- }
1633
- return Array(g + 1).join("../") + h.substr(u.length + 1);
1634
- }
1635
- t.relative = l;
1636
- var m = function() {
1637
- var u = /* @__PURE__ */ Object.create(null);
1638
- return !("__proto__" in u);
1639
- }();
1640
- function y(u) {
1641
- return u;
1642
- }
1643
- function C(u) {
1644
- return q(u) ? "$" + u : u;
1645
- }
1646
- t.toSetString = m ? y : C;
1647
- function _(u) {
1648
- return q(u) ? u.slice(1) : u;
1649
- }
1650
- t.fromSetString = m ? y : _;
1651
- function q(u) {
1652
- if (!u)
1653
- return !1;
1654
- var h = u.length;
1655
- if (h < 9 || u.charCodeAt(h - 1) !== 95 || u.charCodeAt(h - 2) !== 95 || u.charCodeAt(h - 3) !== 111 || u.charCodeAt(h - 4) !== 116 || u.charCodeAt(h - 5) !== 111 || u.charCodeAt(h - 6) !== 114 || u.charCodeAt(h - 7) !== 112 || u.charCodeAt(h - 8) !== 95 || u.charCodeAt(h - 9) !== 95)
1656
- return !1;
1657
- for (var g = h - 10; g >= 0; g--)
1658
- if (u.charCodeAt(g) !== 36)
1706
+ }
1707
+ function g(h) {
1708
+ return T(h) ? "$" + h : h;
1709
+ }
1710
+ t.toSetString = d ? y : g;
1711
+ function S(h) {
1712
+ return T(h) ? h.slice(1) : h;
1713
+ }
1714
+ t.fromSetString = d ? y : S;
1715
+ function T(h) {
1716
+ if (!h)
1659
1717
  return !1;
1660
- return !0;
1661
- }
1662
- function V(u, h, g) {
1663
- var p = Y(u.source, h.source);
1664
- return p !== 0 || (p = u.originalLine - h.originalLine, p !== 0) || (p = u.originalColumn - h.originalColumn, p !== 0 || g) || (p = u.generatedColumn - h.generatedColumn, p !== 0) || (p = u.generatedLine - h.generatedLine, p !== 0) ? p : Y(u.name, h.name);
1665
- }
1666
- t.compareByOriginalPositions = V;
1667
- function de(u, h, g) {
1668
- var p;
1669
- return p = u.originalLine - h.originalLine, p !== 0 || (p = u.originalColumn - h.originalColumn, p !== 0 || g) || (p = u.generatedColumn - h.generatedColumn, p !== 0) || (p = u.generatedLine - h.generatedLine, p !== 0) ? p : Y(u.name, h.name);
1670
- }
1671
- t.compareByOriginalPositionsNoSource = de;
1672
- function Oe(u, h, g) {
1673
- var p = u.generatedLine - h.generatedLine;
1674
- return p !== 0 || (p = u.generatedColumn - h.generatedColumn, p !== 0 || g) || (p = Y(u.source, h.source), p !== 0) || (p = u.originalLine - h.originalLine, p !== 0) || (p = u.originalColumn - h.originalColumn, p !== 0) ? p : Y(u.name, h.name);
1675
- }
1676
- t.compareByGeneratedPositionsDeflated = Oe;
1677
- function qe(u, h, g) {
1678
- var p = u.generatedColumn - h.generatedColumn;
1679
- return p !== 0 || g || (p = Y(u.source, h.source), p !== 0) || (p = u.originalLine - h.originalLine, p !== 0) || (p = u.originalColumn - h.originalColumn, p !== 0) ? p : Y(u.name, h.name);
1680
- }
1681
- t.compareByGeneratedPositionsDeflatedNoLine = qe;
1682
- function Y(u, h) {
1683
- return u === h ? 0 : u === null ? 1 : h === null ? -1 : u > h ? 1 : -1;
1684
- }
1685
- function Ze(u, h) {
1686
- var g = u.generatedLine - h.generatedLine;
1687
- return g !== 0 || (g = u.generatedColumn - h.generatedColumn, g !== 0) || (g = Y(u.source, h.source), g !== 0) || (g = u.originalLine - h.originalLine, g !== 0) || (g = u.originalColumn - h.originalColumn, g !== 0) ? g : Y(u.name, h.name);
1688
- }
1689
- t.compareByGeneratedPositionsInflated = Ze;
1690
- function et(u) {
1691
- return JSON.parse(u.replace(/^\)]}'[^\n]*\n/, ""));
1692
- }
1693
- t.parseSourceMapInput = et;
1694
- function tt(u, h, g) {
1695
- if (h = h || "", u && (u[u.length - 1] !== "/" && h[0] !== "/" && (u += "/"), h = u + h), g) {
1696
- var p = i(g);
1697
- if (!p)
1698
- throw new Error("sourceMapURL could not be parsed");
1699
- if (p.path) {
1700
- var X = p.path.lastIndexOf("/");
1701
- X >= 0 && (p.path = p.path.substring(0, X + 1));
1718
+ var f = h.length;
1719
+ if (f < 9 || h.charCodeAt(f - 1) !== 95 || h.charCodeAt(f - 2) !== 95 || h.charCodeAt(f - 3) !== 111 || h.charCodeAt(f - 4) !== 116 || h.charCodeAt(f - 5) !== 111 || h.charCodeAt(f - 6) !== 114 || h.charCodeAt(f - 7) !== 112 || h.charCodeAt(f - 8) !== 95 || h.charCodeAt(f - 9) !== 95)
1720
+ return !1;
1721
+ for (var k = f - 10; k >= 0; k--)
1722
+ if (h.charCodeAt(k) !== 36)
1723
+ return !1;
1724
+ return !0;
1725
+ }
1726
+ function P(h, f, k) {
1727
+ var p = X(h.source, f.source);
1728
+ return p !== 0 || (p = h.originalLine - f.originalLine, p !== 0) || (p = h.originalColumn - f.originalColumn, p !== 0 || k) || (p = h.generatedColumn - f.generatedColumn, p !== 0) || (p = h.generatedLine - f.generatedLine, p !== 0) ? p : X(h.name, f.name);
1729
+ }
1730
+ t.compareByOriginalPositions = P;
1731
+ function G(h, f, k) {
1732
+ var p;
1733
+ return p = h.originalLine - f.originalLine, p !== 0 || (p = h.originalColumn - f.originalColumn, p !== 0 || k) || (p = h.generatedColumn - f.generatedColumn, p !== 0) || (p = h.generatedLine - f.generatedLine, p !== 0) ? p : X(h.name, f.name);
1734
+ }
1735
+ t.compareByOriginalPositionsNoSource = G;
1736
+ function Y(h, f, k) {
1737
+ var p = h.generatedLine - f.generatedLine;
1738
+ return p !== 0 || (p = h.generatedColumn - f.generatedColumn, p !== 0 || k) || (p = X(h.source, f.source), p !== 0) || (p = h.originalLine - f.originalLine, p !== 0) || (p = h.originalColumn - f.originalColumn, p !== 0) ? p : X(h.name, f.name);
1739
+ }
1740
+ t.compareByGeneratedPositionsDeflated = Y;
1741
+ function be(h, f, k) {
1742
+ var p = h.generatedColumn - f.generatedColumn;
1743
+ return p !== 0 || k || (p = X(h.source, f.source), p !== 0) || (p = h.originalLine - f.originalLine, p !== 0) || (p = h.originalColumn - f.originalColumn, p !== 0) ? p : X(h.name, f.name);
1744
+ }
1745
+ t.compareByGeneratedPositionsDeflatedNoLine = be;
1746
+ function X(h, f) {
1747
+ return h === f ? 0 : h === null ? 1 : f === null ? -1 : h > f ? 1 : -1;
1748
+ }
1749
+ function Ke(h, f) {
1750
+ var k = h.generatedLine - f.generatedLine;
1751
+ return k !== 0 || (k = h.generatedColumn - f.generatedColumn, k !== 0) || (k = X(h.source, f.source), k !== 0) || (k = h.originalLine - f.originalLine, k !== 0) || (k = h.originalColumn - f.originalColumn, k !== 0) ? k : X(h.name, f.name);
1752
+ }
1753
+ t.compareByGeneratedPositionsInflated = Ke;
1754
+ function Qe(h) {
1755
+ return JSON.parse(h.replace(/^\)]}'[^\n]*\n/, ""));
1756
+ }
1757
+ t.parseSourceMapInput = Qe;
1758
+ function Je(h, f, k) {
1759
+ if (f = f || "", h && (h[h.length - 1] !== "/" && f[0] !== "/" && (h += "/"), f = h + f), k) {
1760
+ var p = s(k);
1761
+ if (!p)
1762
+ throw new Error("sourceMapURL could not be parsed");
1763
+ if (p.path) {
1764
+ var Z = p.path.lastIndexOf("/");
1765
+ Z >= 0 && (p.path = p.path.substring(0, Z + 1));
1766
+ }
1767
+ f = i(o(p), f);
1702
1768
  }
1703
- h = s(o(p), h);
1769
+ return u(f);
1704
1770
  }
1705
- return c(h);
1706
- }
1707
- t.computeSourceURL = tt;
1708
- })(vt);
1709
- var jr = {}, Cn = vt, bn = Object.prototype.hasOwnProperty, _e = typeof Map < "u";
1710
- function ye() {
1711
- this._array = [], this._set = _e ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
1712
- }
1713
- ye.fromArray = function(e, n) {
1714
- for (var r = new ye(), i = 0, o = e.length; i < o; i++)
1715
- r.add(e[i], n);
1716
- return r;
1717
- };
1718
- ye.prototype.size = function() {
1719
- return _e ? this._set.size : Object.getOwnPropertyNames(this._set).length;
1720
- };
1721
- ye.prototype.add = function(e, n) {
1722
- var r = _e ? e : Cn.toSetString(e), i = _e ? this.has(e) : bn.call(this._set, r), o = this._array.length;
1723
- (!i || n) && this._array.push(e), i || (_e ? this._set.set(e, o) : this._set[r] = o);
1724
- };
1725
- ye.prototype.has = function(e) {
1726
- if (_e)
1727
- return this._set.has(e);
1728
- var n = Cn.toSetString(e);
1729
- return bn.call(this._set, n);
1730
- };
1731
- ye.prototype.indexOf = function(e) {
1732
- if (_e) {
1733
- var n = this._set.get(e);
1734
- if (n >= 0)
1735
- return n;
1736
- } else {
1737
- var r = Cn.toSetString(e);
1738
- if (bn.call(this._set, r))
1739
- return this._set[r];
1740
- }
1741
- throw new Error('"' + e + '" is not in the set.');
1742
- };
1743
- ye.prototype.at = function(e) {
1744
- if (e >= 0 && e < this._array.length)
1745
- return this._array[e];
1746
- throw new Error("No element indexed by " + e);
1747
- };
1748
- ye.prototype.toArray = function() {
1749
- return this._array.slice();
1750
- };
1751
- jr.ArraySet = ye;
1752
- var Ur = {}, Vr = vt;
1753
- function js(t, e) {
1754
- var n = t.generatedLine, r = e.generatedLine, i = t.generatedColumn, o = e.generatedColumn;
1755
- return r > n || r == n && o >= i || Vr.compareByGeneratedPositionsInflated(t, e) <= 0;
1756
- }
1757
- function At() {
1758
- this._array = [], this._sorted = !0, this._last = { generatedLine: -1, generatedColumn: 0 };
1759
- }
1760
- At.prototype.unsortedForEach = function(e, n) {
1761
- this._array.forEach(e, n);
1762
- };
1763
- At.prototype.add = function(e) {
1764
- js(this._last, e) ? (this._last = e, this._array.push(e)) : (this._sorted = !1, this._array.push(e));
1765
- };
1766
- At.prototype.toArray = function() {
1767
- return this._sorted || (this._array.sort(Vr.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
1768
- };
1769
- Ur.MappingList = At;
1770
- var He = yn, D = vt, xt = jr.ArraySet, Us = Ur.MappingList;
1771
- function ne(t) {
1772
- t || (t = {}), this._file = D.getArg(t, "file", null), this._sourceRoot = D.getArg(t, "sourceRoot", null), this._skipValidation = D.getArg(t, "skipValidation", !1), this._ignoreInvalidMapping = D.getArg(t, "ignoreInvalidMapping", !1), this._sources = new xt(), this._names = new xt(), this._mappings = new Us(), this._sourcesContents = null;
1773
- }
1774
- ne.prototype._version = 3;
1775
- ne.fromSourceMap = function(e, n) {
1776
- var r = e.sourceRoot, i = new ne(Object.assign(n || {}, {
1777
- file: e.file,
1778
- sourceRoot: r
1779
- }));
1780
- return e.eachMapping(function(o) {
1781
- var a = {
1782
- generated: {
1783
- line: o.generatedLine,
1784
- column: o.generatedColumn
1771
+ t.computeSourceURL = Je;
1772
+ }(Xt)), Xt;
1773
+ }
1774
+ var Zt = {}, dr;
1775
+ function Ds() {
1776
+ if (dr) return Zt;
1777
+ dr = 1;
1778
+ var t = gn(), e = Object.prototype.hasOwnProperty, n = typeof Map < "u";
1779
+ function r() {
1780
+ this._array = [], this._set = n ? /* @__PURE__ */ new Map() : /* @__PURE__ */ Object.create(null);
1781
+ }
1782
+ return r.fromArray = function(o, a) {
1783
+ for (var c = new r(), u = 0, i = o.length; u < i; u++)
1784
+ c.add(o[u], a);
1785
+ return c;
1786
+ }, r.prototype.size = function() {
1787
+ return n ? this._set.size : Object.getOwnPropertyNames(this._set).length;
1788
+ }, r.prototype.add = function(o, a) {
1789
+ var c = n ? o : t.toSetString(o), u = n ? this.has(o) : e.call(this._set, c), i = this._array.length;
1790
+ (!u || a) && this._array.push(o), u || (n ? this._set.set(o, i) : this._set[c] = i);
1791
+ }, r.prototype.has = function(o) {
1792
+ if (n)
1793
+ return this._set.has(o);
1794
+ var a = t.toSetString(o);
1795
+ return e.call(this._set, a);
1796
+ }, r.prototype.indexOf = function(o) {
1797
+ if (n) {
1798
+ var a = this._set.get(o);
1799
+ if (a >= 0)
1800
+ return a;
1801
+ } else {
1802
+ var c = t.toSetString(o);
1803
+ if (e.call(this._set, c))
1804
+ return this._set[c];
1805
+ }
1806
+ throw new Error('"' + o + '" is not in the set.');
1807
+ }, r.prototype.at = function(o) {
1808
+ if (o >= 0 && o < this._array.length)
1809
+ return this._array[o];
1810
+ throw new Error("No element indexed by " + o);
1811
+ }, r.prototype.toArray = function() {
1812
+ return this._array.slice();
1813
+ }, Zt.ArraySet = r, Zt;
1814
+ }
1815
+ var en = {}, mr;
1816
+ function Ps() {
1817
+ if (mr) return en;
1818
+ mr = 1;
1819
+ var t = gn();
1820
+ function e(r, s) {
1821
+ var o = r.generatedLine, a = s.generatedLine, c = r.generatedColumn, u = s.generatedColumn;
1822
+ return a > o || a == o && u >= c || t.compareByGeneratedPositionsInflated(r, s) <= 0;
1823
+ }
1824
+ function n() {
1825
+ this._array = [], this._sorted = !0, this._last = { generatedLine: -1, generatedColumn: 0 };
1826
+ }
1827
+ return n.prototype.unsortedForEach = function(s, o) {
1828
+ this._array.forEach(s, o);
1829
+ }, n.prototype.add = function(s) {
1830
+ e(this._last, s) ? (this._last = s, this._array.push(s)) : (this._sorted = !1, this._array.push(s));
1831
+ }, n.prototype.toArray = function() {
1832
+ return this._sorted || (this._array.sort(t.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
1833
+ }, en.MappingList = n, en;
1834
+ }
1835
+ var gr;
1836
+ function Ms() {
1837
+ if (gr) return Yt;
1838
+ gr = 1;
1839
+ var t = $s(), e = gn(), n = Ds().ArraySet, r = Ps().MappingList;
1840
+ function s(o) {
1841
+ o || (o = {}), this._file = e.getArg(o, "file", null), this._sourceRoot = e.getArg(o, "sourceRoot", null), this._skipValidation = e.getArg(o, "skipValidation", !1), this._ignoreInvalidMapping = e.getArg(o, "ignoreInvalidMapping", !1), this._sources = new n(), this._names = new n(), this._mappings = new r(), this._sourcesContents = null;
1842
+ }
1843
+ return s.prototype._version = 3, s.fromSourceMap = function(a, c) {
1844
+ var u = a.sourceRoot, i = new s(Object.assign(c || {}, {
1845
+ file: a.file,
1846
+ sourceRoot: u
1847
+ }));
1848
+ return a.eachMapping(function(l) {
1849
+ var d = {
1850
+ generated: {
1851
+ line: l.generatedLine,
1852
+ column: l.generatedColumn
1853
+ }
1854
+ };
1855
+ l.source != null && (d.source = l.source, u != null && (d.source = e.relative(u, d.source)), d.original = {
1856
+ line: l.originalLine,
1857
+ column: l.originalColumn
1858
+ }, l.name != null && (d.name = l.name)), i.addMapping(d);
1859
+ }), a.sources.forEach(function(l) {
1860
+ var d = l;
1861
+ u !== null && (d = e.relative(u, l)), i._sources.has(d) || i._sources.add(d);
1862
+ var y = a.sourceContentFor(l);
1863
+ y != null && i.setSourceContent(l, y);
1864
+ }), i;
1865
+ }, s.prototype.addMapping = function(a) {
1866
+ var c = e.getArg(a, "generated"), u = e.getArg(a, "original", null), i = e.getArg(a, "source", null), l = e.getArg(a, "name", null);
1867
+ !this._skipValidation && this._validateMapping(c, u, i, l) === !1 || (i != null && (i = String(i), this._sources.has(i) || this._sources.add(i)), l != null && (l = String(l), this._names.has(l) || this._names.add(l)), this._mappings.add({
1868
+ generatedLine: c.line,
1869
+ generatedColumn: c.column,
1870
+ originalLine: u != null && u.line,
1871
+ originalColumn: u != null && u.column,
1872
+ source: i,
1873
+ name: l
1874
+ }));
1875
+ }, s.prototype.setSourceContent = function(a, c) {
1876
+ var u = a;
1877
+ this._sourceRoot != null && (u = e.relative(this._sourceRoot, u)), c != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[e.toSetString(u)] = c) : this._sourcesContents && (delete this._sourcesContents[e.toSetString(u)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null));
1878
+ }, s.prototype.applySourceMap = function(a, c, u) {
1879
+ var i = c;
1880
+ if (c == null) {
1881
+ if (a.file == null)
1882
+ throw new Error(
1883
+ `SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`
1884
+ );
1885
+ i = a.file;
1886
+ }
1887
+ var l = this._sourceRoot;
1888
+ l != null && (i = e.relative(l, i));
1889
+ var d = new n(), y = new n();
1890
+ this._mappings.unsortedForEach(function(g) {
1891
+ if (g.source === i && g.originalLine != null) {
1892
+ var S = a.originalPositionFor({
1893
+ line: g.originalLine,
1894
+ column: g.originalColumn
1895
+ });
1896
+ S.source != null && (g.source = S.source, u != null && (g.source = e.join(u, g.source)), l != null && (g.source = e.relative(l, g.source)), g.originalLine = S.line, g.originalColumn = S.column, S.name != null && (g.name = S.name));
1785
1897
  }
1786
- };
1787
- o.source != null && (a.source = o.source, r != null && (a.source = D.relative(r, a.source)), a.original = {
1788
- line: o.originalLine,
1789
- column: o.originalColumn
1790
- }, o.name != null && (a.name = o.name)), i.addMapping(a);
1791
- }), e.sources.forEach(function(o) {
1792
- var a = o;
1793
- r !== null && (a = D.relative(r, o)), i._sources.has(a) || i._sources.add(a);
1794
- var f = e.sourceContentFor(o);
1795
- f != null && i.setSourceContent(o, f);
1796
- }), i;
1797
- };
1798
- ne.prototype.addMapping = function(e) {
1799
- var n = D.getArg(e, "generated"), r = D.getArg(e, "original", null), i = D.getArg(e, "source", null), o = D.getArg(e, "name", null);
1800
- !this._skipValidation && this._validateMapping(n, r, i, o) === !1 || (i != null && (i = String(i), this._sources.has(i) || this._sources.add(i)), o != null && (o = String(o), this._names.has(o) || this._names.add(o)), this._mappings.add({
1801
- generatedLine: n.line,
1802
- generatedColumn: n.column,
1803
- originalLine: r != null && r.line,
1804
- originalColumn: r != null && r.column,
1805
- source: i,
1806
- name: o
1807
- }));
1808
- };
1809
- ne.prototype.setSourceContent = function(e, n) {
1810
- var r = e;
1811
- this._sourceRoot != null && (r = D.relative(this._sourceRoot, r)), n != null ? (this._sourcesContents || (this._sourcesContents = /* @__PURE__ */ Object.create(null)), this._sourcesContents[D.toSetString(r)] = n) : this._sourcesContents && (delete this._sourcesContents[D.toSetString(r)], Object.keys(this._sourcesContents).length === 0 && (this._sourcesContents = null));
1812
- };
1813
- ne.prototype.applySourceMap = function(e, n, r) {
1814
- var i = n;
1815
- if (n == null) {
1816
- if (e.file == null)
1817
- throw new Error(
1818
- `SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`
1819
- );
1820
- i = e.file;
1821
- }
1822
- var o = this._sourceRoot;
1823
- o != null && (i = D.relative(o, i));
1824
- var a = new xt(), f = new xt();
1825
- this._mappings.unsortedForEach(function(c) {
1826
- if (c.source === i && c.originalLine != null) {
1827
- var s = e.originalPositionFor({
1828
- line: c.originalLine,
1829
- column: c.originalColumn
1898
+ var T = g.source;
1899
+ T != null && !d.has(T) && d.add(T);
1900
+ var P = g.name;
1901
+ P != null && !y.has(P) && y.add(P);
1902
+ }, this), this._sources = d, this._names = y, a.sources.forEach(function(g) {
1903
+ var S = a.sourceContentFor(g);
1904
+ S != null && (u != null && (g = e.join(u, g)), l != null && (g = e.relative(l, g)), this.setSourceContent(g, S));
1905
+ }, this);
1906
+ }, s.prototype._validateMapping = function(a, c, u, i) {
1907
+ if (c && typeof c.line != "number" && typeof c.column != "number") {
1908
+ var l = "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";
1909
+ if (this._ignoreInvalidMapping)
1910
+ return typeof console < "u" && console.warn && console.warn(l), !1;
1911
+ throw new Error(l);
1912
+ }
1913
+ if (!(a && "line" in a && "column" in a && a.line > 0 && a.column >= 0 && !c && !u && !i)) {
1914
+ if (a && "line" in a && "column" in a && c && "line" in c && "column" in c && a.line > 0 && a.column >= 0 && c.line > 0 && c.column >= 0 && u)
1915
+ return;
1916
+ var l = "Invalid mapping: " + JSON.stringify({
1917
+ generated: a,
1918
+ source: u,
1919
+ original: c,
1920
+ name: i
1830
1921
  });
1831
- s.source != null && (c.source = s.source, r != null && (c.source = D.join(r, c.source)), o != null && (c.source = D.relative(o, c.source)), c.originalLine = s.line, c.originalColumn = s.column, s.name != null && (c.name = s.name));
1832
- }
1833
- var l = c.source;
1834
- l != null && !a.has(l) && a.add(l);
1835
- var m = c.name;
1836
- m != null && !f.has(m) && f.add(m);
1837
- }, this), this._sources = a, this._names = f, e.sources.forEach(function(c) {
1838
- var s = e.sourceContentFor(c);
1839
- s != null && (r != null && (c = D.join(r, c)), o != null && (c = D.relative(o, c)), this.setSourceContent(c, s));
1840
- }, this);
1841
- };
1842
- ne.prototype._validateMapping = function(e, n, r, i) {
1843
- if (n && typeof n.line != "number" && typeof n.column != "number") {
1844
- var o = "original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";
1845
- if (this._ignoreInvalidMapping)
1846
- return typeof console < "u" && console.warn && console.warn(o), !1;
1847
- throw new Error(o);
1848
- }
1849
- if (!(e && "line" in e && "column" in e && e.line > 0 && e.column >= 0 && !n && !r && !i)) {
1850
- if (e && "line" in e && "column" in e && n && "line" in n && "column" in n && e.line > 0 && e.column >= 0 && n.line > 0 && n.column >= 0 && r)
1851
- return;
1852
- var o = "Invalid mapping: " + JSON.stringify({
1853
- generated: e,
1854
- source: r,
1855
- original: n,
1856
- name: i
1857
- });
1858
- if (this._ignoreInvalidMapping)
1859
- return typeof console < "u" && console.warn && console.warn(o), !1;
1860
- throw new Error(o);
1861
- }
1862
- };
1863
- ne.prototype._serializeMappings = function() {
1864
- for (var e = 0, n = 1, r = 0, i = 0, o = 0, a = 0, f = "", c, s, l, m, y = this._mappings.toArray(), C = 0, _ = y.length; C < _; C++) {
1865
- if (s = y[C], c = "", s.generatedLine !== n)
1866
- for (e = 0; s.generatedLine !== n; )
1867
- c += ";", n++;
1868
- else if (C > 0) {
1869
- if (!D.compareByGeneratedPositionsInflated(s, y[C - 1]))
1870
- continue;
1871
- c += ",";
1922
+ if (this._ignoreInvalidMapping)
1923
+ return typeof console < "u" && console.warn && console.warn(l), !1;
1924
+ throw new Error(l);
1872
1925
  }
1873
- c += He.encode(s.generatedColumn - e), e = s.generatedColumn, s.source != null && (m = this._sources.indexOf(s.source), c += He.encode(m - a), a = m, c += He.encode(s.originalLine - 1 - i), i = s.originalLine - 1, c += He.encode(s.originalColumn - r), r = s.originalColumn, s.name != null && (l = this._names.indexOf(s.name), c += He.encode(l - o), o = l)), f += c;
1874
- }
1875
- return f;
1876
- };
1877
- ne.prototype._generateSourcesContent = function(e, n) {
1878
- return e.map(function(r) {
1879
- if (!this._sourcesContents)
1880
- return null;
1881
- n != null && (r = D.relative(n, r));
1882
- var i = D.toSetString(r);
1883
- return Object.prototype.hasOwnProperty.call(this._sourcesContents, i) ? this._sourcesContents[i] : null;
1884
- }, this);
1885
- };
1886
- ne.prototype.toJSON = function() {
1887
- var e = {
1888
- version: this._version,
1889
- sources: this._sources.toArray(),
1890
- names: this._names.toArray(),
1891
- mappings: this._serializeMappings()
1892
- };
1893
- return this._file != null && (e.file = this._file), this._sourceRoot != null && (e.sourceRoot = this._sourceRoot), this._sourcesContents && (e.sourcesContent = this._generateSourcesContent(e.sources, e.sourceRoot)), e;
1894
- };
1895
- ne.prototype.toString = function() {
1896
- return JSON.stringify(this.toJSON());
1897
- };
1898
- var Vs = ne;
1899
- const yr = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
1900
- function Gs(t) {
1901
- const e = new Vs(), n = {
1926
+ }, s.prototype._serializeMappings = function() {
1927
+ for (var a = 0, c = 1, u = 0, i = 0, l = 0, d = 0, y = "", g, S, T, P, G = this._mappings.toArray(), Y = 0, be = G.length; Y < be; Y++) {
1928
+ if (S = G[Y], g = "", S.generatedLine !== c)
1929
+ for (a = 0; S.generatedLine !== c; )
1930
+ g += ";", c++;
1931
+ else if (Y > 0) {
1932
+ if (!e.compareByGeneratedPositionsInflated(S, G[Y - 1]))
1933
+ continue;
1934
+ g += ",";
1935
+ }
1936
+ g += t.encode(S.generatedColumn - a), a = S.generatedColumn, S.source != null && (P = this._sources.indexOf(S.source), g += t.encode(P - d), d = P, g += t.encode(S.originalLine - 1 - i), i = S.originalLine - 1, g += t.encode(S.originalColumn - u), u = S.originalColumn, S.name != null && (T = this._names.indexOf(S.name), g += t.encode(T - l), l = T)), y += g;
1937
+ }
1938
+ return y;
1939
+ }, s.prototype._generateSourcesContent = function(a, c) {
1940
+ return a.map(function(u) {
1941
+ if (!this._sourcesContents)
1942
+ return null;
1943
+ c != null && (u = e.relative(c, u));
1944
+ var i = e.toSetString(u);
1945
+ return Object.prototype.hasOwnProperty.call(this._sourcesContents, i) ? this._sourcesContents[i] : null;
1946
+ }, this);
1947
+ }, s.prototype.toJSON = function() {
1948
+ var a = {
1949
+ version: this._version,
1950
+ sources: this._sources.toArray(),
1951
+ names: this._names.toArray(),
1952
+ mappings: this._serializeMappings()
1953
+ };
1954
+ return this._file != null && (a.file = this._file), this._sourceRoot != null && (a.sourceRoot = this._sourceRoot), this._sourcesContents && (a.sourcesContent = this._generateSourcesContent(a.sources, a.sourceRoot)), a;
1955
+ }, s.prototype.toString = function() {
1956
+ return JSON.stringify(this.toJSON());
1957
+ }, Yt.SourceMapGenerator = s, Yt;
1958
+ }
1959
+ var Fs = Ms();
1960
+ const kr = /* @__PURE__ */ new Set(["Atrule", "Selector", "Declaration"]);
1961
+ function zs(t) {
1962
+ const e = new Fs.SourceMapGenerator(), n = {
1902
1963
  line: 1,
1903
1964
  column: 0
1904
1965
  }, r = {
1905
1966
  line: 0,
1906
1967
  // should be zero to add first mapping
1907
1968
  column: 0
1908
- }, i = {
1969
+ }, s = {
1909
1970
  line: 1,
1910
1971
  column: 0
1911
1972
  }, o = {
1912
- generated: i
1973
+ generated: s
1913
1974
  };
1914
- let a = 1, f = 0, c = !1;
1915
- const s = t.node;
1975
+ let a = 1, c = 0, u = !1;
1976
+ const i = t.node;
1916
1977
  t.node = function(y) {
1917
- if (y.loc && y.loc.start && yr.has(y.type)) {
1918
- const C = y.loc.start.line, _ = y.loc.start.column - 1;
1919
- (r.line !== C || r.column !== _) && (r.line = C, r.column = _, n.line = a, n.column = f, c && (c = !1, (n.line !== i.line || n.column !== i.column) && e.addMapping(o)), c = !0, e.addMapping({
1978
+ if (y.loc && y.loc.start && kr.has(y.type)) {
1979
+ const g = y.loc.start.line, S = y.loc.start.column - 1;
1980
+ (r.line !== g || r.column !== S) && (r.line = g, r.column = S, n.line = a, n.column = c, u && (u = !1, (n.line !== s.line || n.column !== s.column) && e.addMapping(o)), u = !0, e.addMapping({
1920
1981
  source: y.loc.source,
1921
1982
  original: r,
1922
1983
  generated: n
1923
1984
  }));
1924
1985
  }
1925
- s.call(this, y), c && yr.has(y.type) && (i.line = a, i.column = f);
1986
+ i.call(this, y), u && kr.has(y.type) && (s.line = a, s.column = c);
1926
1987
  };
1927
1988
  const l = t.emit;
1928
- t.emit = function(y, C, _) {
1929
- for (let q = 0; q < y.length; q++)
1930
- y.charCodeAt(q) === 10 ? (a++, f = 0) : f++;
1931
- l(y, C, _);
1989
+ t.emit = function(y, g, S) {
1990
+ for (let T = 0; T < y.length; T++)
1991
+ y.charCodeAt(T) === 10 ? (a++, c = 0) : c++;
1992
+ l(y, g, S);
1932
1993
  };
1933
- const m = t.result;
1994
+ const d = t.result;
1934
1995
  return t.result = function() {
1935
- return c && e.addMapping(o), {
1936
- css: m(),
1996
+ return u && e.addMapping(o), {
1997
+ css: d(),
1937
1998
  map: e
1938
1999
  };
1939
2000
  }, t;
1940
2001
  }
1941
- const Hs = 43, Ws = 45, rn = (t, e) => {
2002
+ const Rs = 43, qs = 45, tn = (t, e) => {
1942
2003
  if (t === $ && (t = e), typeof t == "string") {
1943
2004
  const n = t.charCodeAt(0);
1944
2005
  return n > 127 ? 32768 : n << 8;
1945
2006
  }
1946
2007
  return t;
1947
- }, Gr = [
1948
- [k, k],
1949
- [k, N],
1950
- [k, ie],
1951
- [k, se],
1952
- [k, "-"],
1953
- [k, L],
1954
- [k, P],
1955
- [k, I],
1956
- [k, oe],
1957
- [k, te],
1958
- [U, k],
1959
- [U, N],
2008
+ }, Fr = [
2009
+ [x, x],
2010
+ [x, D],
2011
+ [x, ie],
2012
+ [x, se],
2013
+ [x, "-"],
2014
+ [x, E],
2015
+ [x, M],
2016
+ [x, N],
2017
+ [x, oe],
2018
+ [x, ne],
2019
+ [U, x],
2020
+ [U, D],
1960
2021
  [U, ie],
1961
2022
  [U, se],
1962
2023
  [U, "-"],
1963
- [U, L],
1964
- [U, P],
1965
- [U, I],
2024
+ [U, E],
2025
+ [U, M],
2026
+ [U, N],
1966
2027
  [U, oe],
1967
- [F, k],
1968
- [F, N],
1969
- [F, ie],
1970
- [F, se],
1971
- [F, "-"],
1972
- [F, L],
1973
- [F, P],
1974
- [F, I],
1975
- [F, oe],
1976
- [I, k],
1977
- [I, N],
1978
- [I, ie],
1979
- [I, se],
1980
- [I, "-"],
1981
- [I, L],
1982
- [I, P],
1983
- [I, I],
1984
- [I, oe],
1985
- ["#", k],
1986
- ["#", N],
2028
+ [z, x],
2029
+ [z, D],
2030
+ [z, ie],
2031
+ [z, se],
2032
+ [z, "-"],
2033
+ [z, E],
2034
+ [z, M],
2035
+ [z, N],
2036
+ [z, oe],
2037
+ [N, x],
2038
+ [N, D],
2039
+ [N, ie],
2040
+ [N, se],
2041
+ [N, "-"],
2042
+ [N, E],
2043
+ [N, M],
2044
+ [N, N],
2045
+ [N, oe],
2046
+ ["#", x],
2047
+ ["#", D],
1987
2048
  ["#", ie],
1988
2049
  ["#", se],
1989
2050
  ["#", "-"],
1990
- ["#", L],
1991
- ["#", P],
1992
- ["#", I],
2051
+ ["#", E],
2052
+ ["#", M],
2053
+ ["#", N],
1993
2054
  ["#", oe],
1994
2055
  // https://github.com/w3c/csswg-drafts/pull/6874
1995
- ["-", k],
1996
- ["-", N],
2056
+ ["-", x],
2057
+ ["-", D],
1997
2058
  ["-", ie],
1998
2059
  ["-", se],
1999
2060
  ["-", "-"],
2000
- ["-", L],
2001
- ["-", P],
2002
- ["-", I],
2061
+ ["-", E],
2062
+ ["-", M],
2063
+ ["-", N],
2003
2064
  ["-", oe],
2004
2065
  // https://github.com/w3c/csswg-drafts/pull/6874
2005
- [L, k],
2006
- [L, N],
2007
- [L, ie],
2008
- [L, se],
2009
- [L, L],
2010
- [L, P],
2011
- [L, I],
2012
- [L, "%"],
2013
- [L, oe],
2066
+ [E, x],
2067
+ [E, D],
2068
+ [E, ie],
2069
+ [E, se],
2070
+ [E, E],
2071
+ [E, M],
2072
+ [E, N],
2073
+ [E, "%"],
2074
+ [E, oe],
2014
2075
  // https://github.com/w3c/csswg-drafts/pull/6874
2015
- ["@", k],
2016
- ["@", N],
2076
+ ["@", x],
2077
+ ["@", D],
2017
2078
  ["@", ie],
2018
2079
  ["@", se],
2019
2080
  ["@", "-"],
2020
2081
  ["@", oe],
2021
2082
  // https://github.com/w3c/csswg-drafts/pull/6874
2022
- [".", L],
2023
- [".", P],
2024
- [".", I],
2025
- ["+", L],
2026
- ["+", P],
2027
- ["+", I],
2083
+ [".", E],
2084
+ [".", M],
2085
+ [".", N],
2086
+ ["+", E],
2087
+ ["+", M],
2088
+ ["+", N],
2028
2089
  ["/", "*"]
2029
- ], Ks = Gr.concat([
2030
- [k, F],
2031
- [I, F],
2032
- [F, F],
2090
+ ], Bs = Fr.concat([
2091
+ [x, z],
2092
+ [N, z],
2093
+ [z, z],
2094
+ [U, ne],
2095
+ [U, Pe],
2033
2096
  [U, te],
2034
- [U, ze],
2035
- [U, ee],
2036
- [P, P],
2037
- [P, I],
2038
- [P, N],
2039
- [P, "-"],
2040
- [O, k],
2041
- [O, N],
2042
- [O, P],
2043
- [O, I],
2044
- [O, F],
2045
- [O, "-"]
2097
+ [M, M],
2098
+ [M, N],
2099
+ [M, D],
2100
+ [M, "-"],
2101
+ [I, x],
2102
+ [I, D],
2103
+ [I, M],
2104
+ [I, N],
2105
+ [I, z],
2106
+ [I, "-"]
2046
2107
  ]);
2047
- function Hr(t) {
2108
+ function zr(t) {
2048
2109
  const e = new Set(
2049
- t.map(([n, r]) => rn(n) << 16 | rn(r))
2110
+ t.map(([n, r]) => tn(n) << 16 | tn(r))
2050
2111
  );
2051
- return function(n, r, i) {
2052
- const o = rn(r, i), a = i.charCodeAt(0);
2053
- return (a === Ws && r !== k && r !== N && r !== oe || a === Hs ? e.has(n << 16 | a << 8) : e.has(n << 16 | o)) && this.emit(" ", J, !0), o;
2112
+ return function(n, r, s) {
2113
+ const o = tn(r, s), a = s.charCodeAt(0);
2114
+ return (a === qs && r !== x && r !== D && r !== oe || a === Rs ? e.has(n << 16 | a << 8) : e.has(n << 16 | o)) && this.emit(" ", J, !0), o;
2054
2115
  };
2055
2116
  }
2056
- const Qs = Hr(Gr), Wr = Hr(Ks), Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2117
+ const js = zr(Fr), Rr = zr(Bs), yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2057
2118
  __proto__: null,
2058
- safe: Wr,
2059
- spec: Qs
2060
- }, Symbol.toStringTag, { value: "Module" })), Js = 92;
2061
- function Ys(t, e) {
2119
+ safe: Rr,
2120
+ spec: js
2121
+ }, Symbol.toStringTag, { value: "Module" })), Us = 92;
2122
+ function Gs(t, e) {
2062
2123
  if (typeof e == "function") {
2063
2124
  let n = null;
2064
2125
  t.children.forEach((r) => {
@@ -2068,227 +2129,227 @@ function Ys(t, e) {
2068
2129
  }
2069
2130
  t.children.forEach(this.node, this);
2070
2131
  }
2071
- function Xs(t) {
2072
- Pr(t, (e, n, r) => {
2132
+ function Vs(t) {
2133
+ Dr(t, (e, n, r) => {
2073
2134
  this.token(e, t.slice(n, r));
2074
2135
  });
2075
2136
  }
2076
- function Zs(t) {
2137
+ function Hs(t) {
2077
2138
  const e = /* @__PURE__ */ new Map();
2078
2139
  for (let [n, r] of Object.entries(t.node))
2079
2140
  typeof (r.generate || r) == "function" && e.set(n, r.generate || r);
2080
2141
  return function(n, r) {
2081
- let i = "", o = 0, a = {
2082
- node(c) {
2083
- if (e.has(c.type))
2084
- e.get(c.type).call(f, c);
2142
+ let s = "", o = 0, a = {
2143
+ node(u) {
2144
+ if (e.has(u.type))
2145
+ e.get(u.type).call(c, u);
2085
2146
  else
2086
- throw new Error("Unknown node type: " + c.type);
2147
+ throw new Error("Unknown node type: " + u.type);
2087
2148
  },
2088
- tokenBefore: Wr,
2089
- token(c, s) {
2090
- o = this.tokenBefore(o, c, s), this.emit(s, c, !1), c === $ && s.charCodeAt(0) === Js && this.emit(`
2149
+ tokenBefore: Rr,
2150
+ token(u, i) {
2151
+ o = this.tokenBefore(o, u, i), this.emit(i, u, !1), u === $ && i.charCodeAt(0) === Us && this.emit(`
2091
2152
  `, J, !0);
2092
2153
  },
2093
- emit(c) {
2094
- i += c;
2154
+ emit(u) {
2155
+ s += u;
2095
2156
  },
2096
2157
  result() {
2097
- return i;
2158
+ return s;
2098
2159
  }
2099
2160
  };
2100
- r && (typeof r.decorator == "function" && (a = r.decorator(a)), r.sourceMap && (a = Gs(a)), r.mode in Sr && (a.tokenBefore = Sr[r.mode]));
2101
- const f = {
2102
- node: (c) => a.node(c),
2103
- children: Ys,
2104
- token: (c, s) => a.token(c, s),
2105
- tokenize: Xs
2161
+ r && (typeof r.decorator == "function" && (a = r.decorator(a)), r.sourceMap && (a = zs(a)), r.mode in yr && (a.tokenBefore = yr[r.mode]));
2162
+ const c = {
2163
+ node: (u) => a.node(u),
2164
+ children: Gs,
2165
+ token: (u, i) => a.token(u, i),
2166
+ tokenize: Vs
2106
2167
  };
2107
2168
  return a.node(n), a.result();
2108
2169
  };
2109
2170
  }
2110
- function eo(t) {
2111
- this.token(U, "@" + t.name), t.prelude !== null && this.node(t.prelude), t.block ? this.node(t.block) : this.token(bt, ";");
2171
+ function Ws(t) {
2172
+ this.token(U, "@" + t.name), t.prelude !== null && this.node(t.prelude), t.block ? this.node(t.block) : this.token(yt, ";");
2112
2173
  }
2113
- function to(t) {
2174
+ function Ks(t) {
2114
2175
  this.children(t);
2115
2176
  }
2116
- function no(t) {
2117
- this.token(dn, "{"), this.children(t, (e) => {
2118
- e.type === "Declaration" && this.token(bt, ";");
2119
- }), this.token(mn, "}");
2177
+ function Qs(t) {
2178
+ this.token(fn, "{"), this.children(t, (e) => {
2179
+ e.type === "Declaration" && this.token(yt, ";");
2180
+ }), this.token(pn, "}");
2120
2181
  }
2121
- function ro(t) {
2182
+ function Js(t) {
2122
2183
  this.token($, "["), this.children(t), this.token($, "]");
2123
2184
  }
2124
- function io() {
2185
+ function Ys() {
2125
2186
  this.token(oe, "-->");
2126
2187
  }
2127
- function so() {
2128
- this.token(Er, "<!--");
2188
+ function Xs() {
2189
+ this.token(Lr, "<!--");
2129
2190
  }
2130
- function oo(t) {
2191
+ function Zs(t) {
2131
2192
  this.token(he, "/*" + t.value + "*/");
2132
2193
  }
2133
- function ao(t) {
2194
+ function eo(t) {
2134
2195
  t.children.forEach((e) => {
2135
- e.type === "Condition" ? (this.token(te, "("), this.node(e), this.token(O, ")")) : this.node(e);
2196
+ e.type === "Condition" ? (this.token(ne, "("), this.node(e), this.token(I, ")")) : this.node(e);
2136
2197
  });
2137
2198
  }
2138
- function lo(t) {
2139
- this.token(k, t.property), this.token(ee, ":"), this.node(t.value), t.important && (this.token($, "!"), this.token(k, t.important === !0 ? "important" : t.important));
2199
+ function to(t) {
2200
+ this.token(x, t.property), this.token(te, ":"), this.node(t.value), t.important && (this.token($, "!"), this.token(x, t.important === !0 ? "important" : t.important));
2140
2201
  }
2141
- function co(t) {
2202
+ function no(t) {
2142
2203
  this.children(t, (e) => {
2143
- e.type === "Declaration" && this.token(bt, ";");
2204
+ e.type === "Declaration" && this.token(yt, ";");
2144
2205
  });
2145
2206
  }
2207
+ function ro(t) {
2208
+ this.token(N, t.value + t.unit);
2209
+ }
2210
+ function io(t) {
2211
+ this.token(ne, "("), this.token(x, t.name), t.value !== null && (this.token(te, ":"), this.node(t.value)), this.token(I, ")");
2212
+ }
2213
+ function so(t) {
2214
+ this.token(D, t.feature + "("), this.node(t.value), this.token(I, ")");
2215
+ }
2216
+ function oo(t) {
2217
+ this.token(ne, "("), this.node(t.left), this.tokenize(t.leftComparison), this.node(t.middle), t.right && (this.tokenize(t.rightComparison), this.node(t.right)), this.token(I, ")");
2218
+ }
2219
+ function ao(t) {
2220
+ this.token(D, t.name + "("), this.children(t), this.token(I, ")");
2221
+ }
2222
+ function lo(t) {
2223
+ t.function ? this.token(D, t.function + "(") : this.token(ne, "("), this.children(t), this.token(I, ")");
2224
+ }
2225
+ function co(t) {
2226
+ this.token(z, "#" + t.value);
2227
+ }
2146
2228
  function uo(t) {
2147
- this.token(I, t.value + t.unit);
2229
+ this.tokenize(t.name);
2148
2230
  }
2149
2231
  function ho(t) {
2150
- this.token(te, "("), this.token(k, t.name), t.value !== null && (this.token(ee, ":"), this.node(t.value)), this.token(O, ")");
2232
+ this.children(t, () => this.token(Me, ","));
2151
2233
  }
2152
2234
  function fo(t) {
2153
- this.token(N, t.feature + "("), this.node(t.value), this.token(O, ")");
2235
+ t.mediaType ? (t.modifier && this.token(x, t.modifier), this.token(x, t.mediaType), t.condition && (this.token(x, "and"), this.node(t.condition))) : t.condition && this.node(t.condition);
2154
2236
  }
2155
2237
  function po(t) {
2156
- this.token(te, "("), this.node(t.left), this.tokenize(t.leftComparison), this.node(t.middle), t.right && (this.tokenize(t.rightComparison), this.node(t.right)), this.token(O, ")");
2238
+ this.children(t, () => this.token(Me, ","));
2157
2239
  }
2158
2240
  function mo(t) {
2159
- this.token(N, t.name + "("), this.children(t), this.token(O, ")");
2241
+ this.token(E, t.value);
2160
2242
  }
2161
2243
  function go(t) {
2162
- t.function ? this.token(N, t.function + "(") : this.token(te, "("), this.children(t), this.token(O, ")");
2244
+ this.token(ne, "("), this.children(t), this.token(I, ")");
2163
2245
  }
2164
2246
  function ko(t) {
2165
- this.token(F, "#" + t.value);
2247
+ this.node(t.left), this.token($, "/"), t.right ? this.node(t.right) : this.node(E, 1);
2166
2248
  }
2167
2249
  function yo(t) {
2168
- this.tokenize(t.name);
2250
+ this.node(t.prelude), this.node(t.block);
2169
2251
  }
2170
2252
  function So(t) {
2171
- this.children(t, () => this.token(Re, ","));
2253
+ t.root && (this.token(ne, "("), this.node(t.root), this.token(I, ")")), t.limit && (this.token(x, "to"), this.token(ne, "("), this.node(t.limit), this.token(I, ")"));
2172
2254
  }
2173
2255
  function xo(t) {
2174
- t.mediaType ? (t.modifier && this.token(k, t.modifier), this.token(k, t.mediaType), t.condition && (this.token(k, "and"), this.node(t.condition))) : t.condition && this.node(t.condition);
2256
+ this.children(t);
2175
2257
  }
2176
2258
  function Co(t) {
2177
- this.children(t, () => this.token(Re, ","));
2259
+ this.token(ne, "("), this.node(t.declaration), this.token(I, ")");
2178
2260
  }
2179
2261
  function bo(t) {
2180
- this.token(L, t.value);
2181
- }
2182
- function wo(t) {
2183
- this.token(te, "("), this.children(t), this.token(O, ")");
2184
- }
2185
- function vo(t) {
2186
- this.node(t.left), this.token($, "/"), t.right ? this.node(t.right) : this.node(L, 1);
2187
- }
2188
- function Ao(t) {
2189
- this.node(t.prelude), this.node(t.block);
2190
- }
2191
- function Lo(t) {
2192
- t.root && (this.token(te, "("), this.node(t.root), this.token(O, ")")), t.limit && (this.token(k, "to"), this.token(te, "("), this.node(t.limit), this.token(O, ")"));
2193
- }
2194
- function Eo(t) {
2195
- this.children(t);
2196
- }
2197
- function _o(t) {
2198
- this.token(te, "("), this.node(t.declaration), this.token(O, ")");
2199
- }
2200
- function To(t) {
2201
2262
  this.tokenize(t.value);
2202
2263
  }
2203
- const Oo = 32, Io = 92, $o = 34, No = 39, Do = 40, Po = 41;
2204
- function Mo(t) {
2264
+ const wo = 32, vo = 92, Ao = 34, Lo = 39, Eo = 40, _o = 41;
2265
+ function To(t) {
2205
2266
  let e = "", n = !1;
2206
2267
  for (let r = 0; r < t.length; r++) {
2207
- const i = t.charCodeAt(r);
2208
- if (i === 0) {
2268
+ const s = t.charCodeAt(r);
2269
+ if (s === 0) {
2209
2270
  e += "�";
2210
2271
  continue;
2211
2272
  }
2212
- if (i <= 31 || i === 127) {
2213
- e += "\\" + i.toString(16), n = !0;
2273
+ if (s <= 31 || s === 127) {
2274
+ e += "\\" + s.toString(16), n = !0;
2214
2275
  continue;
2215
2276
  }
2216
- i === Oo || i === Io || i === $o || i === No || i === Do || i === Po ? (e += "\\" + t.charAt(r), n = !1) : (n && Ke(i) && (e += " "), e += t.charAt(r), n = !1);
2277
+ s === wo || s === vo || s === Ao || s === Lo || s === Eo || s === _o ? (e += "\\" + t.charAt(r), n = !1) : (n && Ue(s) && (e += " "), e += t.charAt(r), n = !1);
2217
2278
  }
2218
2279
  return "url(" + e + ")";
2219
2280
  }
2220
- function Fo(t) {
2221
- this.token(ie, Mo(t.value));
2281
+ function Oo(t) {
2282
+ this.token(ie, To(t.value));
2222
2283
  }
2223
- function zo(t) {
2284
+ function Io(t) {
2224
2285
  this.children(t);
2225
2286
  }
2226
- function Ro(t) {
2287
+ function No(t) {
2227
2288
  this.token(J, t.value);
2228
2289
  }
2229
- const qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2290
+ const $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2230
2291
  __proto__: null,
2231
- AnPlusB: Vi,
2232
- Atrule: eo,
2233
- AtrulePrelude: to,
2234
- AttributeSelector: Yi,
2235
- Block: no,
2236
- Brackets: ro,
2237
- CDC: io,
2238
- CDO: so,
2239
- ClassSelector: es,
2240
- Combinator: ss,
2241
- Comment: oo,
2242
- Condition: ao,
2243
- Declaration: lo,
2244
- DeclarationList: co,
2245
- Dimension: uo,
2246
- Feature: ho,
2247
- FeatureFunction: fo,
2248
- FeatureRange: po,
2249
- Function: mo,
2250
- GeneralEnclosed: go,
2251
- Hash: ko,
2252
- IdSelector: cs,
2253
- Identifier: as,
2254
- Layer: yo,
2255
- LayerList: So,
2256
- MediaQuery: xo,
2257
- MediaQueryList: Co,
2258
- NestingSelector: fs,
2259
- Nth: ds,
2260
- Number: bo,
2261
- Operator: gs,
2262
- Parentheses: wo,
2263
- Percentage: ys,
2264
- PseudoClassSelector: xs,
2265
- PseudoElementSelector: bs,
2266
- Ratio: vo,
2267
- Raw: As,
2268
- Rule: Ao,
2269
- Scope: Lo,
2270
- Selector: Es,
2271
- SelectorList: Ts,
2272
- String: Ds,
2273
- StyleSheet: Eo,
2274
- SupportsDeclaration: _o,
2275
- TypeSelector: Fs,
2276
- UnicodeRange: To,
2277
- Url: Fo,
2278
- Value: zo,
2279
- WhiteSpace: Ro
2280
- }, Symbol.toStringTag, { value: "Module" })), Bo = {
2281
- node: qo
2282
- }, jo = Zs(Bo), Xe = (t, e) => t.a === e.a ? t.b === e.b ? t.c - e.c : t.b - e.b : t.a - e.a, xr = (t, e) => Xe(t, e) === 0, Cr = (t, e) => Xe(t, e) > 0, br = (t, e) => Xe(t, e) < 0, Kr = (t, e = "ASC") => {
2283
- const n = t.sort(Xe);
2292
+ AnPlusB: Mi,
2293
+ Atrule: Ws,
2294
+ AtrulePrelude: Ks,
2295
+ AttributeSelector: Ui,
2296
+ Block: Qs,
2297
+ Brackets: Js,
2298
+ CDC: Ys,
2299
+ CDO: Xs,
2300
+ ClassSelector: Hi,
2301
+ Combinator: Yi,
2302
+ Comment: Zs,
2303
+ Condition: eo,
2304
+ Declaration: to,
2305
+ DeclarationList: no,
2306
+ Dimension: ro,
2307
+ Feature: io,
2308
+ FeatureFunction: so,
2309
+ FeatureRange: oo,
2310
+ Function: ao,
2311
+ GeneralEnclosed: lo,
2312
+ Hash: co,
2313
+ IdSelector: ts,
2314
+ Identifier: Zi,
2315
+ Layer: uo,
2316
+ LayerList: ho,
2317
+ MediaQuery: fo,
2318
+ MediaQueryList: po,
2319
+ NestingSelector: is,
2320
+ Nth: os,
2321
+ Number: mo,
2322
+ Operator: ls,
2323
+ Parentheses: go,
2324
+ Percentage: us,
2325
+ PseudoClassSelector: fs,
2326
+ PseudoElementSelector: ds,
2327
+ Ratio: ko,
2328
+ Raw: ks,
2329
+ Rule: yo,
2330
+ Scope: So,
2331
+ Selector: Ss,
2332
+ SelectorList: Cs,
2333
+ String: Ls,
2334
+ StyleSheet: xo,
2335
+ SupportsDeclaration: Co,
2336
+ TypeSelector: Ts,
2337
+ UnicodeRange: bo,
2338
+ Url: Oo,
2339
+ Value: Io,
2340
+ WhiteSpace: No
2341
+ }, Symbol.toStringTag, { value: "Module" })), Do = {
2342
+ node: $o
2343
+ }, Po = Hs(Do), We = (t, e) => t.a === e.a ? t.b === e.b ? t.c - e.c : t.b - e.b : t.a - e.a, Sr = (t, e) => We(t, e) === 0, xr = (t, e) => We(t, e) > 0, Cr = (t, e) => We(t, e) < 0, qr = (t, e = "ASC") => {
2344
+ const n = t.sort(We);
2284
2345
  return e === "DESC" ? n.reverse() : n;
2285
- }, Qr = (...t) => Kr(t, "ASC"), Jr = (...t) => Kr(t, "DESC"), fn = (...t) => Jr(...t)[0], Uo = (...t) => Qr(...t)[0];
2286
- class sn extends Error {
2346
+ }, Br = (...t) => qr(t, "ASC"), jr = (...t) => qr(t, "DESC"), un = (...t) => jr(...t)[0], Mo = (...t) => Br(...t)[0];
2347
+ class nn extends Error {
2287
2348
  constructor() {
2288
2349
  super("Manipulating a Specificity instance is not allowed. Instead, create a new Specificity()");
2289
2350
  }
2290
2351
  }
2291
- class Vo {
2352
+ class Fo {
2292
2353
  constructor(e, n = null) {
2293
2354
  this.value = e, this.selector = n;
2294
2355
  }
@@ -2296,22 +2357,22 @@ class Vo {
2296
2357
  return this.value.a;
2297
2358
  }
2298
2359
  set a(e) {
2299
- throw new sn();
2360
+ throw new nn();
2300
2361
  }
2301
2362
  get b() {
2302
2363
  return this.value.b;
2303
2364
  }
2304
2365
  set b(e) {
2305
- throw new sn();
2366
+ throw new nn();
2306
2367
  }
2307
2368
  get c() {
2308
2369
  return this.value.c;
2309
2370
  }
2310
2371
  set c(e) {
2311
- throw new sn();
2372
+ throw new nn();
2312
2373
  }
2313
2374
  selectorString() {
2314
- return typeof this.selector == "string" || this.selector instanceof String ? this.selector : this.selector instanceof Object && this.selector.type === "Selector" ? jo(this.selector) : "";
2375
+ return typeof this.selector == "string" || this.selector instanceof String ? this.selector : this.selector instanceof Object && this.selector.type === "Selector" ? Po(this.selector) : "";
2315
2376
  }
2316
2377
  toObject() {
2317
2378
  return this.value;
@@ -2331,51 +2392,51 @@ class Vo {
2331
2392
  };
2332
2393
  }
2333
2394
  isEqualTo(e) {
2334
- return xr(this, e);
2395
+ return Sr(this, e);
2335
2396
  }
2336
2397
  isGreaterThan(e) {
2337
- return Cr(this, e);
2398
+ return xr(this, e);
2338
2399
  }
2339
2400
  isLessThan(e) {
2340
- return br(this, e);
2401
+ return Cr(this, e);
2341
2402
  }
2342
2403
  static calculate(e) {
2343
- return We(e);
2404
+ return je(e);
2344
2405
  }
2345
2406
  static calculateForAST(e) {
2346
- return Ct(e);
2407
+ return kt(e);
2347
2408
  }
2348
2409
  static compare(e, n) {
2349
- return Xe(e, n);
2410
+ return We(e, n);
2350
2411
  }
2351
2412
  static equals(e, n) {
2352
- return xr(e, n);
2413
+ return Sr(e, n);
2353
2414
  }
2354
2415
  static lessThan(e, n) {
2355
- return br(e, n);
2416
+ return Cr(e, n);
2356
2417
  }
2357
2418
  static greaterThan(e, n) {
2358
- return Cr(e, n);
2419
+ return xr(e, n);
2359
2420
  }
2360
2421
  static min(...e) {
2361
- return Uo(...e);
2422
+ return Mo(...e);
2362
2423
  }
2363
2424
  static max(...e) {
2364
- return fn(...e);
2425
+ return un(...e);
2365
2426
  }
2366
2427
  static sortAsc(...e) {
2367
- return Qr(...e);
2428
+ return Br(...e);
2368
2429
  }
2369
2430
  static sortDesc(...e) {
2370
- return Jr(...e);
2431
+ return jr(...e);
2371
2432
  }
2372
2433
  }
2373
- const Ct = (t) => {
2434
+ const kt = (t) => {
2374
2435
  if (!t || t.type !== "Selector")
2375
2436
  throw new TypeError("Passed in source is not a Selector AST");
2376
2437
  let e = 0, n = 0, r = 0;
2377
- return t.children.forEach((i) => {
2378
- switch (i.type) {
2438
+ return t.children.forEach((s) => {
2439
+ switch (s.type) {
2379
2440
  case "IdSelector":
2380
2441
  e += 1;
2381
2442
  break;
@@ -2384,45 +2445,52 @@ const Ct = (t) => {
2384
2445
  n += 1;
2385
2446
  break;
2386
2447
  case "PseudoClassSelector":
2387
- switch (i.name.toLowerCase()) {
2448
+ switch (s.name.toLowerCase()) {
2449
+ // “The specificity of a :where() pseudo-class is replaced by zero.”
2388
2450
  case "where":
2389
2451
  break;
2390
2452
  case "-webkit-any":
2391
2453
  case "any":
2392
- i.children && (n += 1);
2454
+ s.children && (n += 1);
2393
2455
  break;
2456
+ // “The specificity of an :is(), :not(), or :has() pseudo-class is replaced by the specificity of the most specific complex selector in its selector list argument.“
2394
2457
  case "-moz-any":
2395
2458
  case "is":
2396
2459
  case "matches":
2397
2460
  case "not":
2398
2461
  case "has":
2399
- if (i.children) {
2400
- const a = fn(...We(i.children.first));
2462
+ if (s.children) {
2463
+ const a = un(...je(s.children.first));
2401
2464
  e += a.a, n += a.b, r += a.c;
2402
2465
  }
2403
2466
  break;
2467
+ // “The specificity of an :nth-child() or :nth-last-child() selector is the specificity of the pseudo class itself (counting as one pseudo-class selector) plus the specificity of the most specific complex selector in its selector list argument”
2404
2468
  case "nth-child":
2405
2469
  case "nth-last-child":
2406
- if (n += 1, i.children && i.children.first.selector) {
2407
- const a = fn(...We(i.children.first.selector));
2470
+ if (n += 1, s.children && s.children.first.selector) {
2471
+ const a = un(...je(s.children.first.selector));
2408
2472
  e += a.a, n += a.b, r += a.c;
2409
2473
  }
2410
2474
  break;
2475
+ // “The specificity of :host is that of a pseudo-class. The specificity of :host() is that of a pseudo-class, plus the specificity of its argument.”
2476
+ // “The specificity of :host-context() is that of a pseudo-class, plus the specificity of its argument.”
2411
2477
  case "host-context":
2412
2478
  case "host":
2413
- if (n += 1, i.children) {
2479
+ if (n += 1, s.children) {
2414
2480
  const a = { type: "Selector", children: [] };
2415
- let f = !1;
2416
- i.children.first.children.forEach((s) => {
2417
- if (f) return !1;
2418
- if (s.type === "Combinator")
2419
- return f = !0, !1;
2420
- a.children.push(s);
2481
+ let c = !1;
2482
+ s.children.first.children.forEach((i) => {
2483
+ if (c) return !1;
2484
+ if (i.type === "Combinator")
2485
+ return c = !0, !1;
2486
+ a.children.push(i);
2421
2487
  });
2422
- const c = We(a)[0];
2423
- e += c.a, n += c.b, r += c.c;
2488
+ const u = je(a)[0];
2489
+ e += u.a, n += u.b, r += u.c;
2424
2490
  }
2425
2491
  break;
2492
+ // Improper use of Pseudo-Class Selectors instead of a Pseudo-Element
2493
+ // @ref https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements#index
2426
2494
  case "after":
2427
2495
  case "before":
2428
2496
  case "first-letter":
@@ -2435,26 +2503,27 @@ const Ct = (t) => {
2435
2503
  }
2436
2504
  break;
2437
2505
  case "PseudoElementSelector":
2438
- switch (i.name) {
2506
+ switch (s.name) {
2507
+ // “The specificity of ::slotted() is that of a pseudo-element, plus the specificity of its argument.”
2439
2508
  case "slotted":
2440
- if (r += 1, i.children) {
2509
+ if (r += 1, s.children) {
2441
2510
  const a = { type: "Selector", children: [] };
2442
- let f = !1;
2443
- i.children.first.children.forEach((s) => {
2444
- if (f) return !1;
2445
- if (s.type === "Combinator")
2446
- return f = !0, !1;
2447
- a.children.push(s);
2511
+ let c = !1;
2512
+ s.children.first.children.forEach((i) => {
2513
+ if (c) return !1;
2514
+ if (i.type === "Combinator")
2515
+ return c = !0, !1;
2516
+ a.children.push(i);
2448
2517
  });
2449
- const c = We(a)[0];
2450
- e += c.a, n += c.b, r += c.c;
2518
+ const u = je(a)[0];
2519
+ e += u.a, n += u.b, r += u.c;
2451
2520
  }
2452
2521
  break;
2453
2522
  case "view-transition-group":
2454
2523
  case "view-transition-image-pair":
2455
2524
  case "view-transition-old":
2456
2525
  case "view-transition-new":
2457
- if (i.children && i.children.first.value === "*")
2526
+ if (s.children && s.children.first.value === "*")
2458
2527
  break;
2459
2528
  r += 1;
2460
2529
  break;
@@ -2464,15 +2533,15 @@ const Ct = (t) => {
2464
2533
  }
2465
2534
  break;
2466
2535
  case "TypeSelector":
2467
- let o = i.name;
2536
+ let o = s.name;
2468
2537
  o.includes("|") && (o = o.split("|")[1]), o !== "*" && (r += 1);
2469
2538
  break;
2470
2539
  }
2471
- }), new Vo({ a: e, b: n, c: r }, t);
2472
- }, Go = (t) => {
2540
+ }), new Fo({ a: e, b: n, c: r }, t);
2541
+ }, zo = (t) => {
2473
2542
  if (typeof t == "string" || t instanceof String)
2474
2543
  try {
2475
- return gr(t, {
2544
+ return ur(t, {
2476
2545
  context: "selectorList"
2477
2546
  });
2478
2547
  } catch (e) {
@@ -2483,7 +2552,7 @@ const Ct = (t) => {
2483
2552
  return t;
2484
2553
  if (t.type && t.type === "Raw")
2485
2554
  try {
2486
- return gr(t.value, {
2555
+ return ur(t.value, {
2487
2556
  context: "selectorList"
2488
2557
  });
2489
2558
  } catch (e) {
@@ -2492,21 +2561,21 @@ const Ct = (t) => {
2492
2561
  throw new TypeError("Passed in source is an Object but no AST / AST of the type Selector or SelectorList");
2493
2562
  }
2494
2563
  throw new TypeError("Passed in source is not a String nor an Object. I don't know what to do with it.");
2495
- }, We = (t) => {
2564
+ }, je = (t) => {
2496
2565
  if (!t)
2497
2566
  return [];
2498
- const e = Go(t);
2567
+ const e = zo(t);
2499
2568
  if (e.type === "Selector")
2500
- return [Ct(t)];
2569
+ return [kt(t)];
2501
2570
  if (e.type === "SelectorList") {
2502
2571
  const n = [];
2503
2572
  return e.children.forEach((r) => {
2504
- const i = Ct(r);
2505
- n.push(i);
2573
+ const s = kt(r);
2574
+ n.push(s);
2506
2575
  }), n;
2507
2576
  }
2508
2577
  };
2509
- function wn(t, e) {
2578
+ function kn(t, e) {
2510
2579
  return e >= 65 && e <= 90 && (e = e | 32), t === e;
2511
2580
  }
2512
2581
  function W(t, e) {
@@ -2514,64 +2583,64 @@ function W(t, e) {
2514
2583
  let n = t.length;
2515
2584
  if (n !== e.length) return !1;
2516
2585
  for (let r = 0; r < n; r++)
2517
- if (wn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
2586
+ if (kn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
2518
2587
  return !1;
2519
2588
  return !0;
2520
2589
  }
2521
- function ge(t, e) {
2590
+ function me(t, e) {
2522
2591
  if (t === e) return !0;
2523
2592
  let n = e.length, r = n - t.length;
2524
2593
  if (r < 0)
2525
2594
  return !1;
2526
- for (let i = n - 1; i >= r; i--)
2527
- if (wn(t.charCodeAt(i - r), e.charCodeAt(i)) === !1)
2595
+ for (let s = n - 1; s >= r; s--)
2596
+ if (kn(t.charCodeAt(s - r), e.charCodeAt(s)) === !1)
2528
2597
  return !1;
2529
2598
  return !0;
2530
2599
  }
2531
- function vn(t, e) {
2600
+ function yn(t, e) {
2532
2601
  if (t === e) return !0;
2533
2602
  let n = t.length;
2534
2603
  if (e.length < n) return !1;
2535
2604
  for (let r = 0; r < n; r++)
2536
- if (wn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
2605
+ if (kn(t.charCodeAt(r), e.charCodeAt(r)) === !1)
2537
2606
  return !1;
2538
2607
  return !0;
2539
2608
  }
2540
- const Ho = "Atrule", Wo = "MediaQuery", Ko = "MediaFeature", Qo = "Rule", An = "Selector", Yr = "TypeSelector", Je = "PseudoClassSelector", Xr = "AttributeSelector", Zr = "PseudoElementSelector", pn = "Declaration", Jo = "Value", pe = "Identifier", Yo = "Nth", Xo = "Combinator", Zo = "Number", ei = "Dimension", Fe = "Operator", ea = "Hash", ta = "Url", Ln = "Function";
2541
- function wr(t, e, n) {
2609
+ const Ro = "Atrule", qo = "MediaQuery", Bo = "MediaFeature", jo = "Rule", Sn = "Selector", Ur = "TypeSelector", Ve = "PseudoClassSelector", Gr = "AttributeSelector", Vr = "PseudoElementSelector", hn = "Declaration", Uo = "Value", pe = "Identifier", Go = "Nth", Vo = "Combinator", Ho = "Number", Hr = "Dimension", De = "Operator", Wo = "Hash", Ko = "Url", xn = "Function";
2610
+ function br(t, e, n) {
2542
2611
  let r = t.value.children.first;
2543
2612
  return W(e, t.property) && r.type === pe && W(n, r.name);
2544
2613
  }
2545
- function na(t) {
2614
+ function Qo(t) {
2546
2615
  let e = !1;
2547
2616
  return fe(t, function(n) {
2548
- if (n.type === pn && (wr(n, "-webkit-appearance", "none") || wr(n, "-moz-appearance", "meterbar")))
2617
+ if (n.type === hn && (br(n, "-webkit-appearance", "none") || br(n, "-moz-appearance", "meterbar")))
2549
2618
  return e = !0, this.break;
2550
2619
  }), e;
2551
2620
  }
2552
- function ra(t) {
2621
+ function Jo(t) {
2553
2622
  let e = !1;
2554
2623
  return fe(t, function(n) {
2555
- let r = n.children, i = n.name, o = n.value;
2556
- if (n.type === Wo && r.size === 1 && r.first.type === pe) {
2624
+ let r = n.children, s = n.name, o = n.value;
2625
+ if (n.type === qo && r.size === 1 && r.first.type === pe) {
2557
2626
  let a = r.first.name;
2558
- if (vn("\\0", a) || ge("\\9 ", a))
2627
+ if (yn("\\0", a) || me("\\9 ", a))
2559
2628
  return e = !0, this.break;
2560
- } else if (n.type === Ko) {
2629
+ } else if (n.type === Bo) {
2561
2630
  if (o && o.unit && o.unit === "\\0")
2562
2631
  return e = !0, this.break;
2563
- if (W("-moz-images-in-menus", i) || W("min--moz-device-pixel-ratio", i) || W("-ms-high-contrast", i))
2632
+ if (W("-moz-images-in-menus", s) || W("min--moz-device-pixel-ratio", s) || W("-ms-high-contrast", s))
2564
2633
  return e = !0, this.break;
2565
- if (W("min-resolution", i) && o && W(".001", o.value) && W("dpcm", o.unit))
2634
+ if (W("min-resolution", s) && o && W(".001", o.value) && W("dpcm", o.unit))
2566
2635
  return e = !0, this.break;
2567
- if (W("-webkit-min-device-pixel-ratio", i) && o && o.value && (W("0", o.value) || W("10000", o.value)))
2636
+ if (W("-webkit-min-device-pixel-ratio", s) && o && o.value && (W("0", o.value) || W("10000", o.value)))
2568
2637
  return e = !0, this.break;
2569
2638
  }
2570
2639
  }), e;
2571
2640
  }
2572
- const vr = 45;
2573
- function we(t) {
2574
- return t.charCodeAt(0) === vr && t.charCodeAt(1) !== vr && t.indexOf("-", 2) !== -1;
2641
+ const wr = 45;
2642
+ function Ce(t) {
2643
+ return t.charCodeAt(0) === wr && t.charCodeAt(1) !== wr && t.indexOf("-", 2) !== -1;
2575
2644
  }
2576
2645
  class ae {
2577
2646
  /** @param {string[]} items */
@@ -2583,16 +2652,16 @@ class ae {
2583
2652
  return this.set.has(e.toLowerCase());
2584
2653
  }
2585
2654
  }
2586
- function ti(t, e) {
2655
+ function Wr(t, e) {
2587
2656
  let n = [];
2588
2657
  return fe(t, {
2589
- visit: An,
2658
+ visit: Sn,
2590
2659
  enter: function(r) {
2591
2660
  n.push(e(r));
2592
2661
  }
2593
2662
  }), n;
2594
2663
  }
2595
- const ni = new ae([
2664
+ const Kr = new ae([
2596
2665
  "nth-child",
2597
2666
  "where",
2598
2667
  "not",
@@ -2603,17 +2672,17 @@ const ni = new ae([
2603
2672
  "-webkit-any",
2604
2673
  "-moz-any"
2605
2674
  ]);
2606
- function ri(t) {
2675
+ function Qr(t) {
2607
2676
  let e = !1;
2608
2677
  return fe(t, function(n) {
2609
- if (n.type === Xr) {
2678
+ if (n.type === Gr) {
2610
2679
  let r = n.name.name;
2611
- if (W("role", r) || vn("aria-", r))
2680
+ if (W("role", r) || yn("aria-", r))
2612
2681
  return e = !0, this.break;
2613
- } else if (n.type === Je && ni.has(n.name)) {
2614
- let r = ti(n, ri);
2615
- for (let i of r)
2616
- if (i === !0) {
2682
+ } else if (n.type === Ve && Kr.has(n.name)) {
2683
+ let r = Wr(n, Qr);
2684
+ for (let s of r)
2685
+ if (s === !0) {
2617
2686
  e = !0;
2618
2687
  break;
2619
2688
  }
@@ -2621,43 +2690,43 @@ function ri(t) {
2621
2690
  }
2622
2691
  }), e;
2623
2692
  }
2624
- function ia(t) {
2693
+ function Yo(t) {
2625
2694
  let e = !1;
2626
2695
  return fe(t, function(n) {
2627
2696
  let r = n.type;
2628
- if ((r === Zr || r === Yr || r === Je) && we(n.name))
2697
+ if ((r === Vr || r === Ur || r === Ve) && Ce(n.name))
2629
2698
  return e = !0, this.break;
2630
2699
  }), e;
2631
2700
  }
2632
- function sa(t) {
2701
+ function Xo(t) {
2633
2702
  let e = [];
2634
2703
  return fe(t, function(n) {
2635
- n.type === Je && e.push(n.name);
2704
+ n.type === Ve && e.push(n.name);
2636
2705
  }), e.length === 0 ? !1 : e;
2637
2706
  }
2638
- function ii(t) {
2707
+ function Jr(t) {
2639
2708
  let e = 0;
2640
2709
  return fe(t, function(n) {
2641
2710
  let r = n.type;
2642
- if (!(r === An || r === Yo)) {
2643
- if (e++, (r === Zr || r === Yr || r === Je) && we(n.name) && e++, r === Xr)
2711
+ if (!(r === Sn || r === Go)) {
2712
+ if (e++, (r === Vr || r === Ur || r === Ve) && Ce(n.name) && e++, r === Gr)
2644
2713
  return n.value && e++, this.skip;
2645
- if (r === Je && ni.has(n.name)) {
2646
- let i = ti(n, ii);
2647
- if (i.length === 0) return;
2648
- for (let o of i)
2714
+ if (r === Ve && Kr.has(n.name)) {
2715
+ let s = Wr(n, Jr);
2716
+ if (s.length === 0) return;
2717
+ for (let o of s)
2649
2718
  e += o;
2650
2719
  return this.skip;
2651
2720
  }
2652
2721
  }
2653
2722
  }), e;
2654
2723
  }
2655
- function oa(t, e) {
2724
+ function Zo(t, e) {
2656
2725
  fe(t, function(n, r) {
2657
- if (n.type === Xo) {
2658
- let i = n.loc, o = n.name;
2659
- if (i === null) {
2660
- let a = r.prev.data.loc.end, f = {
2726
+ if (n.type === Vo) {
2727
+ let s = n.loc, o = n.name;
2728
+ if (s === null) {
2729
+ let a = r.prev.data.loc.end, c = {
2661
2730
  offset: a.offset,
2662
2731
  line: a.line,
2663
2732
  column: a.column
@@ -2665,23 +2734,23 @@ function oa(t, e) {
2665
2734
  e({
2666
2735
  name: o,
2667
2736
  loc: {
2668
- start: f,
2737
+ start: c,
2669
2738
  end: {
2670
- offset: f.offset + 1,
2671
- line: f.line,
2672
- column: f.column + 1
2739
+ offset: c.offset + 1,
2740
+ line: c.line,
2741
+ column: c.column + 1
2673
2742
  }
2674
2743
  }
2675
2744
  });
2676
2745
  } else
2677
2746
  e({
2678
2747
  name: o,
2679
- loc: i
2748
+ loc: s
2680
2749
  });
2681
2750
  }
2682
2751
  });
2683
2752
  }
2684
- const aa = new ae([
2753
+ const ea = new ae([
2685
2754
  // CSS Named Colors
2686
2755
  // Spec: https://drafts.csswg.org/css-color/#named-colors
2687
2756
  // Heuristic: popular names first for quick finding in set.has()
@@ -2834,7 +2903,7 @@ const aa = new ae([
2834
2903
  "mediumorchid",
2835
2904
  "darksalmon",
2836
2905
  "mediumspringgreen"
2837
- ]), la = new ae([
2906
+ ]), ta = new ae([
2838
2907
  // CSS System Colors
2839
2908
  // Spec: https://drafts.csswg.org/css-color/#css-system-colors
2840
2909
  "accentcolor",
@@ -2856,7 +2925,7 @@ const aa = new ae([
2856
2925
  "selecteditem",
2857
2926
  "selecteditemtext",
2858
2927
  "visitedtext"
2859
- ]), ca = new ae([
2928
+ ]), na = new ae([
2860
2929
  "rgba",
2861
2930
  "rgb",
2862
2931
  "hsla",
@@ -2867,10 +2936,10 @@ const aa = new ae([
2867
2936
  "lch",
2868
2937
  "lab",
2869
2938
  "oklab"
2870
- ]), ua = new ae([
2939
+ ]), ra = new ae([
2871
2940
  "transparent",
2872
2941
  "currentcolor"
2873
- ]), Lt = new ae([
2942
+ ]), xt = new ae([
2874
2943
  "auto",
2875
2944
  "none",
2876
2945
  // for `text-shadow`, `box-shadow` and `background`
@@ -2880,20 +2949,20 @@ const aa = new ae([
2880
2949
  "revert",
2881
2950
  "revert-layer"
2882
2951
  ]);
2883
- function ut(t) {
2952
+ function at(t) {
2884
2953
  let e = t.children, n = e.size;
2885
2954
  if (!e || n > 1 || n === 0) return !1;
2886
2955
  let r = e.first;
2887
- return r.type === pe && Lt.has(r.name);
2956
+ return r.type === pe && xt.has(r.name);
2888
2957
  }
2889
- const ha = new ae([
2958
+ const ia = new ae([
2890
2959
  "caption",
2891
2960
  "icon",
2892
2961
  "menu",
2893
2962
  "message-box",
2894
2963
  "small-caption",
2895
2964
  "status-bar"
2896
- ]), fa = new ae([
2965
+ ]), sa = new ae([
2897
2966
  /* <absolute-size> values */
2898
2967
  "xx-small",
2899
2968
  "x-small",
@@ -2906,39 +2975,39 @@ const ha = new ae([
2906
2975
  /* <relative-size> values */
2907
2976
  "smaller",
2908
2977
  "larger"
2909
- ]), pa = 44, Ar = 47;
2910
- function on(t) {
2978
+ ]), oa = 44, vr = 47;
2979
+ function rn(t) {
2911
2980
  let e = t.children.first;
2912
- return e === null ? !1 : e.type === pe && ha.has(e.name);
2981
+ return e === null ? !1 : e.type === pe && ia.has(e.name);
2913
2982
  }
2914
- function da(t, e, n) {
2915
- let r = Array.from({ length: 2 }), i, o;
2916
- t.children.forEach(function(f, c) {
2917
- let s = c.prev ? c.prev.data : void 0, l = c.next ? c.next.data : void 0;
2918
- if (f.type === pe && Lt.has(f.name) && n({
2983
+ function aa(t, e, n) {
2984
+ let r = Array.from({ length: 2 }), s, o;
2985
+ t.children.forEach(function(c, u) {
2986
+ let i = u.prev ? u.prev.data : void 0, l = u.next ? u.next.data : void 0;
2987
+ if (c.type === pe && xt.has(c.name) && n({
2919
2988
  type: "keyword",
2920
- value: f.name
2921
- }), l && l.type === Fe && l.value.charCodeAt(0) === Ar) {
2922
- i = e(f);
2989
+ value: c.name
2990
+ }), l && l.type === De && l.value.charCodeAt(0) === vr) {
2991
+ s = e(c);
2923
2992
  return;
2924
2993
  }
2925
- if (s && s.type === Fe && s.value.charCodeAt(0) === Ar) {
2926
- o = e(f);
2994
+ if (i && i.type === De && i.value.charCodeAt(0) === vr) {
2995
+ o = e(c);
2927
2996
  return;
2928
2997
  }
2929
- if (l && l.type === Fe && l.value.charCodeAt(0) === pa && !r[0]) {
2930
- r[0] = f, !i && s && (i = e(s));
2998
+ if (l && l.type === De && l.value.charCodeAt(0) === oa && !r[0]) {
2999
+ r[0] = c, !s && i && (s = e(i));
2931
3000
  return;
2932
3001
  }
2933
- if (f.type !== Zo) {
2934
- if (c.next === null) {
2935
- r[1] = f, !i && !r[0] && s && (i = e(s));
3002
+ if (c.type !== Ho) {
3003
+ if (u.next === null) {
3004
+ r[1] = c, !s && !r[0] && i && (s = e(i));
2936
3005
  return;
2937
3006
  }
2938
- if (f.type === pe) {
2939
- let m = f.name;
2940
- if (fa.has(m)) {
2941
- i = m;
3007
+ if (c.type === pe) {
3008
+ let d = c.name;
3009
+ if (sa.has(d)) {
3010
+ s = d;
2942
3011
  return;
2943
3012
  }
2944
3013
  }
@@ -2955,12 +3024,12 @@ function da(t, e, n) {
2955
3024
  }
2956
3025
  }) : null;
2957
3026
  return {
2958
- font_size: i,
3027
+ font_size: s,
2959
3028
  line_height: o,
2960
3029
  font_family: a
2961
3030
  };
2962
3031
  }
2963
- const ma = new ae([
3032
+ const la = new ae([
2964
3033
  "linear",
2965
3034
  "ease",
2966
3035
  "ease-in",
@@ -2968,41 +3037,41 @@ const ma = new ae([
2968
3037
  "ease-in-out",
2969
3038
  "step-start",
2970
3039
  "step-end"
2971
- ]), ga = new ae([
3040
+ ]), ca = new ae([
2972
3041
  "cubic-bezier",
2973
3042
  "steps"
2974
3043
  ]);
2975
- function ka(t, e) {
3044
+ function ua(t, e) {
2976
3045
  let n = !1;
2977
3046
  for (let r of t) {
2978
- let i = r.type, o = r.name;
2979
- i === Fe ? n = !1 : i === ei && n === !1 ? (n = !0, e({
3047
+ let s = r.type, o = r.name;
3048
+ s === De ? n = !1 : s === Hr && n === !1 ? (n = !0, e({
2980
3049
  type: "duration",
2981
3050
  value: r
2982
- })) : i === pe ? ma.has(o) ? e({
3051
+ })) : s === pe ? la.has(o) ? e({
2983
3052
  type: "fn",
2984
3053
  value: r
2985
- }) : Lt.has(o) && e({
3054
+ }) : xt.has(o) && e({
2986
3055
  type: "keyword",
2987
3056
  value: r
2988
- }) : i === Ln && ga.has(o) && e({
3057
+ }) : s === xn && ca.has(o) && e({
2989
3058
  type: "fn",
2990
3059
  value: r
2991
3060
  });
2992
3061
  }
2993
3062
  }
2994
- function si(t) {
3063
+ function Yr(t) {
2995
3064
  let e = t.children;
2996
3065
  if (!e)
2997
3066
  return !1;
2998
3067
  for (let n of e) {
2999
- let { type: r, name: i } = n;
3000
- if (r === pe && we(i) || r === Ln && (we(i) || si(n)))
3068
+ let { type: r, name: s } = n;
3069
+ if (r === pe && Ce(s) || r === xn && (Ce(s) || Yr(n)))
3001
3070
  return !0;
3002
3071
  }
3003
3072
  return !1;
3004
3073
  }
3005
- class x {
3074
+ class b {
3006
3075
  /** @param {boolean} useLocations */
3007
3076
  constructor(e = !1) {
3008
3077
  this._items = /* @__PURE__ */ new Map(), this._total = 0, e && (this._nodes = []), this._useLocations = e;
@@ -3014,8 +3083,8 @@ class x {
3014
3083
  p(e, n) {
3015
3084
  let r = this._total;
3016
3085
  if (this._useLocations) {
3017
- let i = n.start, o = i.offset, a = r * 4;
3018
- this._nodes[a] = i.line, this._nodes[a + 1] = i.column, this._nodes[a + 2] = o, this._nodes[a + 3] = n.end.offset - o;
3086
+ let s = n.start, o = s.offset, a = r * 4;
3087
+ this._nodes[a] = s.line, this._nodes[a + 1] = s.column, this._nodes[a + 2] = o, this._nodes[a + 3] = n.end.offset - o;
3019
3088
  }
3020
3089
  if (this._items.has(e)) {
3021
3090
  this._items.get(e).push(r), this._total++;
@@ -3045,35 +3114,35 @@ class x {
3045
3114
  * })}
3046
3115
  */
3047
3116
  c() {
3048
- let e = /* @__PURE__ */ new Map(), n = {}, r = this._useLocations, i = this._items, o = this._nodes, a = i.size;
3049
- i.forEach((s, l) => {
3117
+ let e = /* @__PURE__ */ new Map(), n = {}, r = this._useLocations, s = this._items, o = this._nodes, a = s.size;
3118
+ s.forEach((i, l) => {
3050
3119
  if (r) {
3051
- let m = s.map(function(y) {
3052
- let C = y * 4;
3120
+ let d = i.map(function(y) {
3121
+ let g = y * 4;
3053
3122
  return {
3054
- line: o[C],
3055
- column: o[C + 1],
3056
- offset: o[C + 2],
3057
- length: o[C + 3]
3123
+ line: o[g],
3124
+ column: o[g + 1],
3125
+ offset: o[g + 2],
3126
+ length: o[g + 3]
3058
3127
  };
3059
3128
  });
3060
- e.set(l, m);
3129
+ e.set(l, d);
3061
3130
  } else
3062
- n[l] = s.length;
3131
+ n[l] = i.length;
3063
3132
  });
3064
- let f = this._total, c = {
3065
- total: f,
3133
+ let c = this._total, u = {
3134
+ total: c,
3066
3135
  totalUnique: a,
3067
3136
  unique: n,
3068
- uniquenessRatio: f === 0 ? 0 : a / f
3137
+ uniquenessRatio: c === 0 ? 0 : a / c
3069
3138
  };
3070
- return r && (c.uniqueWithLocations = Object.fromEntries(e)), c;
3139
+ return r && (u.uniqueWithLocations = Object.fromEntries(e)), u;
3071
3140
  }
3072
3141
  }
3073
- class an {
3142
+ class sn {
3074
3143
  /** @param {boolean} useLocations */
3075
3144
  constructor(e) {
3076
- this._list = new x(e), this._contexts = /* @__PURE__ */ new Map(), this._useLocations = e;
3145
+ this._list = new b(e), this._contexts = /* @__PURE__ */ new Map(), this._useLocations = e;
3077
3146
  }
3078
3147
  /**
3079
3148
  * Add an item to this _list's context
@@ -3082,7 +3151,7 @@ class an {
3082
3151
  * @param {import('css-tree').CssLocation} node_location
3083
3152
  */
3084
3153
  push(e, n, r) {
3085
- this._list.p(e, r), this._contexts.has(n) || this._contexts.set(n, new x(this._useLocations)), this._contexts.get(n).p(e, r);
3154
+ this._list.p(e, r), this._contexts.has(n) || this._contexts.set(n, new b(this._useLocations)), this._contexts.get(n).p(e, r);
3086
3155
  }
3087
3156
  count() {
3088
3157
  let e = /* @__PURE__ */ new Map();
@@ -3093,13 +3162,13 @@ class an {
3093
3162
  });
3094
3163
  }
3095
3164
  }
3096
- function ya(t) {
3097
- let e = /* @__PURE__ */ new Map(), n = -1, r = 0, i = 0, o = t.length;
3165
+ function ha(t) {
3166
+ let e = /* @__PURE__ */ new Map(), n = -1, r = 0, s = 0, o = t.length;
3098
3167
  for (let a = 0; a < o; a++) {
3099
- let f = t[a], c = (e.get(f) || 0) + 1;
3100
- e.set(f, c), c > n && (n = c, r = 0, i = 0), c >= n && (r++, i += f);
3168
+ let c = t[a], u = (e.get(c) || 0) + 1;
3169
+ e.set(c, u), u > n && (n = u, r = 0, s = 0), u >= n && (r++, s += c);
3101
3170
  }
3102
- return i / r;
3171
+ return s / r;
3103
3172
  }
3104
3173
  class re {
3105
3174
  constructor() {
@@ -3126,13 +3195,13 @@ class re {
3126
3195
  range: 0,
3127
3196
  sum: 0
3128
3197
  };
3129
- let n = this._items.slice().sort((f, c) => f - c), r = n[0], i = n[e - 1], o = ya(n), a = this._sum;
3198
+ let n = this._items.slice().sort((c, u) => c - u), r = n[0], s = n[e - 1], o = ha(n), a = this._sum;
3130
3199
  return {
3131
3200
  min: r,
3132
- max: i,
3201
+ max: s,
3133
3202
  mean: a / e,
3134
3203
  mode: o,
3135
- range: i - r,
3204
+ range: s - r,
3136
3205
  sum: a
3137
3206
  };
3138
3207
  }
@@ -3143,33 +3212,33 @@ class re {
3143
3212
  return this._items;
3144
3213
  }
3145
3214
  }
3146
- function Sa(t) {
3147
- if (En(t) || we(t)) return !1;
3215
+ function fa(t) {
3216
+ if (Cn(t) || Ce(t)) return !1;
3148
3217
  let e = t.charCodeAt(0);
3149
3218
  return e === 47 || e === 42 || e === 95 || e === 43 || e === 38 || e === 36 || e === 35;
3150
3219
  }
3151
- function En(t) {
3220
+ function Cn(t) {
3152
3221
  return t.length < 3 ? !1 : t.charCodeAt(0) === 45 && t.charCodeAt(1) === 45;
3153
3222
  }
3154
- function G(t, e) {
3155
- return En(e) ? !1 : ge(t, e);
3223
+ function V(t, e) {
3224
+ return Cn(e) ? !1 : me(t, e);
3156
3225
  }
3157
- function xa(t) {
3158
- return we(t) ? t.slice(t.indexOf("-", 2) + 1) : t;
3226
+ function pa(t) {
3227
+ return Ce(t) ? t.slice(t.indexOf("-", 2) + 1) : t;
3159
3228
  }
3160
- function Ca(t) {
3229
+ function da(t) {
3161
3230
  let e = 5, n = t.indexOf(";"), r = t.indexOf(",");
3162
3231
  return n === -1 || r !== -1 && r < n ? t.substring(e, r) : t.substring(e, n);
3163
3232
  }
3164
- function ba(t) {
3233
+ function ma(t) {
3165
3234
  let e = t.children;
3166
3235
  if (e) {
3167
3236
  let n = e.last;
3168
- return n && n.type === pe && ge("\\9", n.name);
3237
+ return n && n.type === pe && me("\\9", n.name);
3169
3238
  }
3170
3239
  return !1;
3171
3240
  }
3172
- let wa = new ae([
3241
+ let ga = new ae([
3173
3242
  "border-radius",
3174
3243
  "border-top-left-radius",
3175
3244
  "border-top-right-radius",
@@ -3183,196 +3252,196 @@ let wa = new ae([
3183
3252
  function B(t, e) {
3184
3253
  return e === 0 ? 0 : t / e;
3185
3254
  }
3186
- let va = {
3255
+ let ka = {
3187
3256
  useLocations: !1
3188
3257
  };
3189
- function Ea(t, e = {}) {
3190
- let r = Object.assign({}, va, e).useLocations === !0, i = Date.now();
3191
- function o(d) {
3192
- return a(d).trim();
3258
+ function xa(t, e = {}) {
3259
+ let r = Object.assign({}, ka, e).useLocations === !0, s = Date.now();
3260
+ function o(m) {
3261
+ return a(m).trim();
3193
3262
  }
3194
- function a(d) {
3195
- let v = d.loc;
3196
- return t.substring(v.start.offset, v.end.offset);
3263
+ function a(m) {
3264
+ let A = m.loc;
3265
+ return t.substring(A.start.offset, A.end.offset);
3197
3266
  }
3198
- let f = 0, c = 0, s = 0, l = {
3267
+ let c = 0, u = 0, i = 0, l = {
3199
3268
  total: 0,
3200
3269
  /** @type {Map<string, { size: number, count: number } & ({ uniqueWithLocations?: undefined } | ({ uniqueWithLocations: { offset: number, line: number, column: number, length: number }[] })) }>} */
3201
3270
  unique: /* @__PURE__ */ new Map()
3202
- }, m = Date.now(), y = oi(t, {
3271
+ }, d = Date.now(), y = Xr(t, {
3203
3272
  parseCustomProperty: !0,
3204
3273
  // To find font-families, colors, etc.
3205
3274
  positions: !0,
3206
3275
  // So we can use stringifyNode()
3207
3276
  /** @param {string} comment */
3208
- onComment: function(d) {
3209
- f++, c += d.length;
3210
- }
3211
- }), C = Date.now(), _ = y.loc.end.line - y.loc.start.line + 1, q = 0, V = new re(), de = [], Oe = new x(r), qe = new x(r), Y = new x(r), Ze = new x(r), et = new x(r), tt = new x(r), u = new x(r), h = new x(r), g = new x(r), p = new x(r), X = new x(r), j = new x(r), Se = 0, z = 0, xe = new re(), me = new re(), Et = new re(), _n = new x(r), Tn = new x(r), On = new x(r), _t = new x(r), In = /* @__PURE__ */ new Set(), Tt = new x(r), ve, Ae, $n = new re(), Nn = new re(), Dn = new re(), Pn = new x(r), nt = new re(), Mn = new x(r), Fn = [], Ot = new x(r), It = new x(r), zn = new x(r), Rn = new x(r), qn = /* @__PURE__ */ new Set(), Be = 0, Bn = new re(), rt = 0, $t = 0, Nt = new x(r), je = new x(r), Dt = new x(r), Pt = new x(r), it = new x(r), Ue = new re(), Mt = new re(), jn = new x(r), Ft = new x(r), Un = new x(r), Vn = new x(r), Gn = new x(r), zt = new x(r), Rt = new x(r), qt = new x(r), st = new x(r), ot = new x(r), Ie = new an(r), $e = new x(r), Bt = new an(r), Hn = new x(r), Ve = new x(r), Wn = new an(r);
3212
- fe(y, function(d) {
3213
- switch (d.type) {
3214
- case Ho: {
3215
- q++;
3216
- let v = d.name;
3217
- if (v === "font-face") {
3218
- let T = {};
3219
- r && Oe.p(d.loc.start.offset, d.loc), d.block.children.forEach((b) => {
3220
- b.type === pn && (T[b.property] = o(b.value));
3221
- }), de.push(T), V.push(1);
3277
+ onComment: function(m) {
3278
+ c++, u += m.length;
3279
+ }
3280
+ }), g = Date.now(), S = y.loc.end.line - y.loc.start.line + 1, T = 0, P = new re(), G = [], Y = new b(r), be = new b(r), X = new b(r), Ke = new b(r), Qe = new b(r), Je = new b(r), h = new b(r), f = new b(r), k = new b(r), p = new b(r), Z = new b(r), j = new b(r), ke = 0, R = 0, ye = new re(), de = new re(), Ct = new re(), bn = new b(r), wn = new b(r), vn = new b(r), bt = new b(r), An = /* @__PURE__ */ new Set(), wt = new b(r), we, ve, Ln = new re(), En = new re(), _n = new re(), Tn = new b(r), Ye = new re(), On = new b(r), In = [], vt = new b(r), At = new b(r), Nn = new b(r), $n = new b(r), Dn = /* @__PURE__ */ new Set(), Fe = 0, Pn = new re(), Xe = 0, Lt = 0, Et = new b(r), ze = new b(r), _t = new b(r), Tt = new b(r), Ze = new b(r), Re = new re(), Ot = new re(), Mn = new b(r), It = new b(r), Fn = new b(r), zn = new b(r), Rn = new b(r), Nt = new b(r), $t = new b(r), Dt = new b(r), et = new b(r), tt = new b(r), _e = new sn(r), Te = new b(r), Pt = new sn(r), qn = new b(r), qe = new b(r), Bn = new sn(r);
3281
+ fe(y, function(m) {
3282
+ switch (m.type) {
3283
+ case Ro: {
3284
+ T++;
3285
+ let A = m.name;
3286
+ if (A === "font-face") {
3287
+ let O = {};
3288
+ r && Y.p(m.loc.start.offset, m.loc), m.block.children.forEach((w) => {
3289
+ w.type === hn && (O[w.property] = o(w.value));
3290
+ }), G.push(O), P.push(1);
3222
3291
  break;
3223
3292
  }
3224
- let S = 1;
3225
- if (d.prelude !== null) {
3226
- let T = d.prelude, b = T && o(d.prelude), A = T.loc;
3227
- if (v === "media")
3228
- Ze.p(b, A), ra(T) && (et.p(b, A), S++);
3229
- else if (v === "supports")
3230
- u.p(b, A), na(T) && (h.p(b, A), S++);
3231
- else if (ge("keyframes", v)) {
3232
- let w = "@" + v + " " + b;
3233
- we(v) && (p.p(w, A), S++), g.p(w, A);
3234
- } else v === "import" ? Y.p(b, A) : v === "charset" ? tt.p(b, A) : v === "container" ? X.p(b, A) : v === "layer" ? b.split(",").forEach((w) => qe.p(w.trim(), A)) : v === "property" && j.p(b, A);
3293
+ let C = 1;
3294
+ if (m.prelude !== null) {
3295
+ let O = m.prelude, w = O && o(m.prelude), L = O.loc;
3296
+ if (A === "media")
3297
+ Ke.p(w, L), Jo(O) && (Qe.p(w, L), C++);
3298
+ else if (A === "supports")
3299
+ h.p(w, L), Qo(O) && (f.p(w, L), C++);
3300
+ else if (me("keyframes", A)) {
3301
+ let v = "@" + A + " " + w;
3302
+ Ce(A) && (p.p(v, L), C++), k.p(v, L);
3303
+ } else A === "import" ? X.p(w, L) : A === "charset" ? Je.p(w, L) : A === "container" ? Z.p(w, L) : A === "layer" ? w.split(",").forEach((v) => be.p(v.trim(), L)) : A === "property" && j.p(w, L);
3235
3304
  } else
3236
- v === "layer" && (qe.p("<anonymous>", d.loc), S++);
3237
- V.push(S);
3305
+ A === "layer" && (be.p("<anonymous>", m.loc), C++);
3306
+ P.push(C);
3238
3307
  break;
3239
3308
  }
3240
- case Qo: {
3241
- let v = d.prelude, S = d.block, T = v.children, b = S.children, A = T ? T.size : 0, w = b ? b.size : 0;
3242
- xe.push(A + w), _n.p(A + w, d.loc), me.push(A), Tn.p(A, v.loc), Et.push(w), On.p(w, S.loc), Se++, w === 0 && z++;
3309
+ case jo: {
3310
+ let A = m.prelude, C = m.block, O = A.children, w = C.children, L = O ? O.size : 0, v = w ? w.size : 0;
3311
+ ye.push(L + v), bn.p(L + v, m.loc), de.push(L), wn.p(L, A.loc), Ct.push(v), vn.p(v, C.loc), ke++, v === 0 && R++;
3243
3312
  break;
3244
3313
  }
3245
- case An: {
3246
- let v = o(d);
3247
- if (this.atrule && ge("keyframes", this.atrule.name))
3248
- return _t.p(v, d.loc), this.skip;
3249
- ri(d) && It.p(v, d.loc);
3250
- let S = sa(d);
3251
- if (S !== !1)
3252
- for (let R of S)
3253
- zn.p(R, d.loc);
3254
- let T = ii(d);
3255
- ia(d) && Tt.p(v, d.loc), In.add(v), nt.push(T), Mn.p(T, d.loc);
3256
- let b = Ct(d).toArray(), [A, w, E] = b;
3257
- return Pn.p(b.toString(), d.loc), $n.push(A), Nn.push(w), Dn.push(E), ve === void 0 && (ve = b), Ae === void 0 && (Ae = b), Ae !== void 0 && Lr(Ae, b) < 0 && (Ae = b), ve !== void 0 && Lr(ve, b) > 0 && (ve = b), Fn.push(b), A > 0 && Ot.p(v, d.loc), oa(d, function(Z) {
3258
- Rn.p(Z.name, Z.loc);
3314
+ case Sn: {
3315
+ let A = o(m);
3316
+ if (this.atrule && me("keyframes", this.atrule.name))
3317
+ return bt.p(A, m.loc), this.skip;
3318
+ Qr(m) && At.p(A, m.loc);
3319
+ let C = Xo(m);
3320
+ if (C !== !1)
3321
+ for (let q of C)
3322
+ Nn.p(q, m.loc);
3323
+ let O = Jr(m);
3324
+ Yo(m) && wt.p(A, m.loc), An.add(A), Ye.push(O), On.p(O, m.loc);
3325
+ let w = kt(m).toArray(), [L, v, _] = w;
3326
+ return Tn.p(w.toString(), m.loc), Ln.push(L), En.push(v), _n.push(_), we === void 0 && (we = w), ve === void 0 && (ve = w), ve !== void 0 && Ar(ve, w) < 0 && (ve = w), we !== void 0 && Ar(we, w) > 0 && (we = w), In.push(w), L > 0 && vt.p(A, m.loc), Zo(m, function(ee) {
3327
+ $n.p(ee.name, ee.loc);
3259
3328
  }), this.skip;
3260
3329
  }
3261
- case ei: {
3330
+ case Hr: {
3262
3331
  if (!this.declaration)
3263
3332
  break;
3264
- let v = d.unit;
3265
- return ge("\\9", v) ? Bt.push(v.substring(0, v.length - 2), this.declaration.property, d.loc) : Bt.push(v, this.declaration.property, d.loc), this.skip;
3333
+ let A = m.unit;
3334
+ return me("\\9", A) ? Pt.push(A.substring(0, A.length - 2), this.declaration.property, m.loc) : Pt.push(A, this.declaration.property, m.loc), this.skip;
3266
3335
  }
3267
- case ta: {
3268
- if (vn("data:", d.value)) {
3269
- let v = d.value, S = v.length, T = Ca(v);
3270
- l.total++, s += S;
3271
- let b = {
3336
+ case Ko: {
3337
+ if (yn("data:", m.value)) {
3338
+ let A = m.value, C = A.length, O = da(A);
3339
+ l.total++, i += C;
3340
+ let w = {
3272
3341
  /** @type {number} */
3273
- line: d.loc.start.line,
3342
+ line: m.loc.start.line,
3274
3343
  /** @type {number} */
3275
- column: d.loc.start.column,
3344
+ column: m.loc.start.column,
3276
3345
  /** @type {number} */
3277
- offset: d.loc.start.offset,
3346
+ offset: m.loc.start.offset,
3278
3347
  /** @type {number} */
3279
- length: d.loc.end.offset - d.loc.start.offset
3348
+ length: m.loc.end.offset - m.loc.start.offset
3280
3349
  };
3281
- if (l.unique.has(T)) {
3282
- let A = l.unique.get(T);
3283
- A.count++, A.size += S, l.unique.set(T, A), r && A.uniqueWithLocations.push(b);
3350
+ if (l.unique.has(O)) {
3351
+ let L = l.unique.get(O);
3352
+ L.count++, L.size += C, l.unique.set(O, L), r && L.uniqueWithLocations.push(w);
3284
3353
  } else {
3285
- let A = {
3354
+ let L = {
3286
3355
  count: 1,
3287
- size: S
3356
+ size: C
3288
3357
  };
3289
- r && (A.uniqueWithLocations = [b]), l.unique.set(T, A);
3358
+ r && (L.uniqueWithLocations = [w]), l.unique.set(O, L);
3290
3359
  }
3291
3360
  }
3292
3361
  break;
3293
3362
  }
3294
- case Jo: {
3295
- if (ut(d)) {
3296
- Mt.push(1), Ve.p(o(d), d.loc);
3363
+ case Uo: {
3364
+ if (at(m)) {
3365
+ Ot.push(1), qe.p(o(m), m.loc);
3297
3366
  break;
3298
3367
  }
3299
- let v = this.declaration, { property: S, important: T } = v, b = 1;
3300
- si(d) && (jn.p(o(d), d.loc), b++), typeof T == "string" && (Ft.p(a(d) + "!" + T, d.loc), b++), ba(d) && (Ft.p(o(d), d.loc), b++);
3301
- let A = d.children, w = d.loc;
3302
- if (Mt.push(b), G("z-index", S))
3303
- return Un.p(o(d), w), this.skip;
3304
- if (G("font", S)) {
3305
- if (on(d)) return;
3306
- let { font_size: E, line_height: R, font_family: Z } = da(d, o, function(Ce) {
3307
- Ce.type === "keyword" && Ve.p(Ce.value, w);
3368
+ let A = this.declaration, { property: C, important: O } = A, w = 1;
3369
+ Yr(m) && (Mn.p(o(m), m.loc), w++), typeof O == "string" && (It.p(a(m) + "!" + O, m.loc), w++), ma(m) && (It.p(o(m), m.loc), w++);
3370
+ let L = m.children, v = m.loc;
3371
+ if (Ot.push(w), V("z-index", C))
3372
+ return Fn.p(o(m), v), this.skip;
3373
+ if (V("font", C)) {
3374
+ if (rn(m)) return;
3375
+ let { font_size: _, line_height: q, font_family: ee } = aa(m, o, function(Se) {
3376
+ Se.type === "keyword" && qe.p(Se.value, v);
3308
3377
  });
3309
- Z && zt.p(Z, w), E && Rt.p(E, w), R && qt.p(R, w);
3378
+ ee && Nt.p(ee, v), _ && $t.p(_, v), q && Dt.p(q, v);
3310
3379
  break;
3311
- } else if (G("font-size", S)) {
3312
- on(d) || Rt.p(o(d), w);
3380
+ } else if (V("font-size", C)) {
3381
+ rn(m) || $t.p(o(m), v);
3313
3382
  break;
3314
- } else if (G("font-family", S)) {
3315
- on(d) || zt.p(o(d), w);
3383
+ } else if (V("font-family", C)) {
3384
+ rn(m) || Nt.p(o(m), v);
3316
3385
  break;
3317
- } else if (G("line-height", S))
3318
- qt.p(o(d), w);
3319
- else if (G("transition", S) || G("animation", S)) {
3320
- ka(A, function(E) {
3321
- E.type === "fn" ? st.p(o(E.value), w) : E.type === "duration" ? ot.p(o(E.value), w) : E.type === "keyword" && Ve.p(o(E.value), w);
3386
+ } else if (V("line-height", C))
3387
+ Dt.p(o(m), v);
3388
+ else if (V("transition", C) || V("animation", C)) {
3389
+ ua(L, function(_) {
3390
+ _.type === "fn" ? et.p(o(_.value), v) : _.type === "duration" ? tt.p(o(_.value), v) : _.type === "keyword" && qe.p(o(_.value), v);
3322
3391
  });
3323
3392
  break;
3324
- } else if (G("animation-duration", S) || G("transition-duration", S)) {
3325
- A && A.size > 1 ? A.forEach((E) => {
3326
- E.type !== Fe && ot.p(o(E), w);
3327
- }) : ot.p(o(d), w);
3393
+ } else if (V("animation-duration", C) || V("transition-duration", C)) {
3394
+ L && L.size > 1 ? L.forEach((_) => {
3395
+ _.type !== De && tt.p(o(_), v);
3396
+ }) : tt.p(o(m), v);
3328
3397
  break;
3329
- } else if (G("transition-timing-function", S) || G("animation-timing-function", S)) {
3330
- A && A.size > 1 ? A.forEach((E) => {
3331
- E.type !== Fe && st.p(o(E), w);
3332
- }) : st.p(o(d), w);
3398
+ } else if (V("transition-timing-function", C) || V("animation-timing-function", C)) {
3399
+ L && L.size > 1 ? L.forEach((_) => {
3400
+ _.type !== De && et.p(o(_), v);
3401
+ }) : et.p(o(m), v);
3333
3402
  break;
3334
- } else if (wa.has(xa(S))) {
3335
- ut(d) || Wn.push(o(d), S, w);
3403
+ } else if (ga.has(pa(C))) {
3404
+ at(m) || Bn.push(o(m), C, v);
3336
3405
  break;
3337
- } else G("text-shadow", S) ? ut(d) || Vn.p(o(d), w) : G("box-shadow", S) && (ut(d) || Gn.p(o(d), w));
3338
- fe(d, function(E) {
3339
- let R = E.name;
3340
- switch (E.type) {
3341
- case ea: {
3342
- let Z = E.value.length;
3343
- return ge("\\9", E.value) && (Z = Z - 2), Ie.push("#" + E.value, S, w), $e.p("hex" + Z, w), this.skip;
3406
+ } else V("text-shadow", C) ? at(m) || zn.p(o(m), v) : V("box-shadow", C) && (at(m) || Rn.p(o(m), v));
3407
+ fe(m, function(_) {
3408
+ let q = _.name;
3409
+ switch (_.type) {
3410
+ case Wo: {
3411
+ let ee = _.value.length;
3412
+ return me("\\9", _.value) && (ee = ee - 2), _e.push("#" + _.value, C, v), Te.p("hex" + ee, v), this.skip;
3344
3413
  }
3345
3414
  case pe: {
3346
- Lt.has(R) && Ve.p(R, w);
3347
- let Z = R.length;
3348
- if (Z > 20 || Z < 3)
3415
+ xt.has(q) && qe.p(q, v);
3416
+ let ee = q.length;
3417
+ if (ee > 20 || ee < 3)
3349
3418
  return this.skip;
3350
- if (ua.has(R)) {
3351
- let Ce = o(E);
3352
- Ie.push(Ce, S, w), $e.p(R.toLowerCase(), w);
3419
+ if (ra.has(q)) {
3420
+ let Se = o(_);
3421
+ _e.push(Se, C, v), Te.p(q.toLowerCase(), v);
3353
3422
  return;
3354
3423
  }
3355
- if (aa.has(R)) {
3356
- let Ce = o(E);
3357
- Ie.push(Ce, S, w), $e.p("named", w);
3424
+ if (ea.has(q)) {
3425
+ let Se = o(_);
3426
+ _e.push(Se, C, v), Te.p("named", v);
3358
3427
  return;
3359
3428
  }
3360
- if (la.has(R)) {
3361
- let Ce = o(E);
3362
- Ie.push(Ce, S, w), $e.p("system", w);
3429
+ if (ta.has(q)) {
3430
+ let Se = o(_);
3431
+ _e.push(Se, C, v), Te.p("system", v);
3363
3432
  return;
3364
3433
  }
3365
3434
  return this.skip;
3366
3435
  }
3367
- case Ln: {
3368
- if (W("var", R))
3436
+ case xn: {
3437
+ if (W("var", q))
3369
3438
  return this.skip;
3370
- if (ca.has(R)) {
3371
- Ie.push(o(E), S, E.loc), $e.p(R.toLowerCase(), E.loc);
3439
+ if (na.has(q)) {
3440
+ _e.push(o(_), C, _.loc), Te.p(q.toLowerCase(), _.loc);
3372
3441
  return;
3373
3442
  }
3374
- if (ge("gradient", R)) {
3375
- Hn.p(o(E), E.loc);
3443
+ if (me("gradient", q)) {
3444
+ qn.p(o(_), _.loc);
3376
3445
  return;
3377
3446
  }
3378
3447
  }
@@ -3380,42 +3449,42 @@ function Ea(t, e = {}) {
3380
3449
  });
3381
3450
  break;
3382
3451
  }
3383
- case pn: {
3452
+ case hn: {
3384
3453
  if (this.atrulePrelude !== null)
3385
3454
  return this.skip;
3386
- Be++;
3387
- let v = 1;
3388
- qn.add(o(d)), d.important === !0 && (rt++, v++, this.atrule && ge("keyframes", this.atrule.name) && ($t++, v++)), Bn.push(v);
3389
- let { property: S, loc: { start: T } } = d, b = {
3455
+ Fe++;
3456
+ let A = 1;
3457
+ Dn.add(o(m)), m.important === !0 && (Xe++, A++, this.atrule && me("keyframes", this.atrule.name) && (Lt++, A++)), Pn.push(A);
3458
+ let { property: C, loc: { start: O } } = m, w = {
3390
3459
  start: {
3391
- line: T.line,
3392
- column: T.column,
3393
- offset: T.offset
3460
+ line: O.line,
3461
+ column: O.column,
3462
+ offset: O.offset
3394
3463
  },
3395
3464
  end: {
3396
- offset: T.offset + S.length
3465
+ offset: O.offset + C.length
3397
3466
  }
3398
3467
  };
3399
- je.p(S, b), we(S) ? (Pt.p(S, b), Ue.push(2)) : Sa(S) ? (Dt.p(S, b), Ue.push(2)) : En(S) ? (it.p(S, b), Ue.push(d.important ? 3 : 2), d.important === !0 && Nt.p(S, b)) : Ue.push(1);
3468
+ ze.p(C, w), Ce(C) ? (Tt.p(C, w), Re.push(2)) : fa(C) ? (_t.p(C, w), Re.push(2)) : Cn(C) ? (Ze.p(C, w), Re.push(m.important ? 3 : 2), m.important === !0 && Et.p(C, w)) : Re.push(1);
3400
3469
  break;
3401
3470
  }
3402
3471
  }
3403
3472
  });
3404
- let Kn = qn.size, Ne = nt.size(), jt = $n.aggregate(), Ut = Nn.aggregate(), Vt = Dn.aggregate(), Qn = In.size, M = Object.assign, Jn = t.length, Gt = de.length, Yn = V.aggregate(), Xn = nt.aggregate(), Zn = Bn.aggregate(), er = Ue.aggregate(), tr = Mt.aggregate();
3473
+ let jn = Dn.size, Oe = Ye.size(), Mt = Ln.aggregate(), Ft = En.aggregate(), zt = _n.aggregate(), Un = An.size, F = Object.assign, Gn = t.length, Rt = G.length, Vn = P.aggregate(), Hn = Ye.aggregate(), Wn = Pn.aggregate(), Kn = Re.aggregate(), Qn = Ot.aggregate();
3405
3474
  return {
3406
3475
  stylesheet: {
3407
- sourceLinesOfCode: q + Ne + Be + _t.size(),
3408
- linesOfCode: _,
3409
- size: Jn,
3410
- complexity: Yn.sum + Xn.sum + Zn.sum + er.sum + tr.sum,
3476
+ sourceLinesOfCode: T + Oe + Fe + bt.size(),
3477
+ linesOfCode: S,
3478
+ size: Gn,
3479
+ complexity: Vn.sum + Hn.sum + Wn.sum + Kn.sum + Qn.sum,
3411
3480
  comments: {
3412
- total: f,
3413
- size: c
3481
+ total: c,
3482
+ size: u
3414
3483
  },
3415
3484
  embeddedContent: {
3416
3485
  size: {
3417
- total: s,
3418
- ratio: B(s, Jn)
3486
+ total: i,
3487
+ ratio: B(i, Gn)
3419
3488
  },
3420
3489
  types: {
3421
3490
  total: l.total,
@@ -3426,211 +3495,211 @@ function Ea(t, e = {}) {
3426
3495
  }
3427
3496
  },
3428
3497
  atrules: {
3429
- fontface: M({
3430
- total: Gt,
3431
- totalUnique: Gt,
3432
- unique: de,
3433
- uniquenessRatio: Gt === 0 ? 0 : 1
3498
+ fontface: F({
3499
+ total: Rt,
3500
+ totalUnique: Rt,
3501
+ unique: G,
3502
+ uniquenessRatio: Rt === 0 ? 0 : 1
3434
3503
  }, r ? {
3435
- uniqueWithLocations: Oe.c().uniqueWithLocations
3504
+ uniqueWithLocations: Y.c().uniqueWithLocations
3436
3505
  } : {}),
3437
- import: Y.c(),
3438
- media: M(
3439
- Ze.c(),
3506
+ import: X.c(),
3507
+ media: F(
3508
+ Ke.c(),
3440
3509
  {
3441
- browserhacks: et.c()
3510
+ browserhacks: Qe.c()
3442
3511
  }
3443
3512
  ),
3444
- charset: tt.c(),
3445
- supports: M(
3446
- u.c(),
3513
+ charset: Je.c(),
3514
+ supports: F(
3515
+ h.c(),
3447
3516
  {
3448
- browserhacks: h.c()
3517
+ browserhacks: f.c()
3449
3518
  }
3450
3519
  ),
3451
- keyframes: M(
3452
- g.c(),
3520
+ keyframes: F(
3521
+ k.c(),
3453
3522
  {
3454
- prefixed: M(
3523
+ prefixed: F(
3455
3524
  p.c(),
3456
3525
  {
3457
- ratio: B(p.size(), g.size())
3526
+ ratio: B(p.size(), k.size())
3458
3527
  }
3459
3528
  )
3460
3529
  }
3461
3530
  ),
3462
- container: X.c(),
3463
- layer: qe.c(),
3531
+ container: Z.c(),
3532
+ layer: be.c(),
3464
3533
  property: j.c(),
3465
- total: q,
3466
- complexity: Yn
3534
+ total: T,
3535
+ complexity: Vn
3467
3536
  },
3468
3537
  rules: {
3469
- total: Se,
3538
+ total: ke,
3470
3539
  empty: {
3471
- total: z,
3472
- ratio: B(z, Se)
3540
+ total: R,
3541
+ ratio: B(R, ke)
3473
3542
  },
3474
- sizes: M(
3475
- xe.aggregate(),
3543
+ sizes: F(
3544
+ ye.aggregate(),
3476
3545
  {
3477
- items: xe.toArray()
3546
+ items: ye.toArray()
3478
3547
  },
3479
- _n.c()
3548
+ bn.c()
3480
3549
  ),
3481
- selectors: M(
3482
- me.aggregate(),
3550
+ selectors: F(
3551
+ de.aggregate(),
3483
3552
  {
3484
- items: me.toArray()
3553
+ items: de.toArray()
3485
3554
  },
3486
- Tn.c()
3555
+ wn.c()
3487
3556
  ),
3488
- declarations: M(
3489
- Et.aggregate(),
3557
+ declarations: F(
3558
+ Ct.aggregate(),
3490
3559
  {
3491
- items: Et.toArray()
3560
+ items: Ct.toArray()
3492
3561
  },
3493
- On.c()
3562
+ vn.c()
3494
3563
  )
3495
3564
  },
3496
3565
  selectors: {
3497
- total: Ne,
3498
- totalUnique: Qn,
3499
- uniquenessRatio: B(Qn, Ne),
3500
- specificity: M(
3566
+ total: Oe,
3567
+ totalUnique: Un,
3568
+ uniquenessRatio: B(Un, Oe),
3569
+ specificity: F(
3501
3570
  {
3502
3571
  /** @type Specificity */
3503
- min: Ae === void 0 ? [0, 0, 0] : Ae,
3572
+ min: ve === void 0 ? [0, 0, 0] : ve,
3504
3573
  /** @type Specificity */
3505
- max: ve === void 0 ? [0, 0, 0] : ve,
3574
+ max: we === void 0 ? [0, 0, 0] : we,
3506
3575
  /** @type Specificity */
3507
- sum: [jt.sum, Ut.sum, Vt.sum],
3576
+ sum: [Mt.sum, Ft.sum, zt.sum],
3508
3577
  /** @type Specificity */
3509
- mean: [jt.mean, Ut.mean, Vt.mean],
3578
+ mean: [Mt.mean, Ft.mean, zt.mean],
3510
3579
  /** @type Specificity */
3511
- mode: [jt.mode, Ut.mode, Vt.mode],
3580
+ mode: [Mt.mode, Ft.mode, zt.mode],
3512
3581
  /** @type Specificity */
3513
- items: Fn
3582
+ items: In
3514
3583
  },
3515
- Pn.c()
3584
+ Tn.c()
3516
3585
  ),
3517
- complexity: M(
3518
- Xn,
3519
- Mn.c(),
3586
+ complexity: F(
3587
+ Hn,
3588
+ On.c(),
3520
3589
  {
3521
- items: nt.toArray()
3590
+ items: Ye.toArray()
3522
3591
  }
3523
3592
  ),
3524
- id: M(
3525
- Ot.c(),
3593
+ id: F(
3594
+ vt.c(),
3526
3595
  {
3527
- ratio: B(Ot.size(), Ne)
3596
+ ratio: B(vt.size(), Oe)
3528
3597
  }
3529
3598
  ),
3530
- pseudoClasses: zn.c(),
3531
- accessibility: M(
3532
- It.c(),
3599
+ pseudoClasses: Nn.c(),
3600
+ accessibility: F(
3601
+ At.c(),
3533
3602
  {
3534
- ratio: B(It.size(), Ne)
3603
+ ratio: B(At.size(), Oe)
3535
3604
  }
3536
3605
  ),
3537
- keyframes: _t.c(),
3538
- prefixed: M(
3539
- Tt.c(),
3606
+ keyframes: bt.c(),
3607
+ prefixed: F(
3608
+ wt.c(),
3540
3609
  {
3541
- ratio: B(Tt.size(), Ne)
3610
+ ratio: B(wt.size(), Oe)
3542
3611
  }
3543
3612
  ),
3544
- combinators: Rn.c()
3613
+ combinators: $n.c()
3545
3614
  },
3546
3615
  declarations: {
3547
- total: Be,
3548
- totalUnique: Kn,
3549
- uniquenessRatio: B(Kn, Be),
3616
+ total: Fe,
3617
+ totalUnique: jn,
3618
+ uniquenessRatio: B(jn, Fe),
3550
3619
  importants: {
3551
- total: rt,
3552
- ratio: B(rt, Be),
3620
+ total: Xe,
3621
+ ratio: B(Xe, Fe),
3553
3622
  inKeyframes: {
3554
- total: $t,
3555
- ratio: B($t, rt)
3623
+ total: Lt,
3624
+ ratio: B(Lt, Xe)
3556
3625
  }
3557
3626
  },
3558
- complexity: Zn
3627
+ complexity: Wn
3559
3628
  },
3560
- properties: M(
3561
- je.c(),
3629
+ properties: F(
3630
+ ze.c(),
3562
3631
  {
3563
- prefixed: M(
3564
- Pt.c(),
3632
+ prefixed: F(
3633
+ Tt.c(),
3565
3634
  {
3566
- ratio: B(Pt.size(), je.size())
3635
+ ratio: B(Tt.size(), ze.size())
3567
3636
  }
3568
3637
  ),
3569
- custom: M(
3570
- it.c(),
3638
+ custom: F(
3639
+ Ze.c(),
3571
3640
  {
3572
- ratio: B(it.size(), je.size()),
3573
- importants: M(
3574
- Nt.c(),
3641
+ ratio: B(Ze.size(), ze.size()),
3642
+ importants: F(
3643
+ Et.c(),
3575
3644
  {
3576
- ratio: B(Nt.size(), it.size())
3645
+ ratio: B(Et.size(), Ze.size())
3577
3646
  }
3578
3647
  )
3579
3648
  }
3580
3649
  ),
3581
- browserhacks: M(
3582
- Dt.c(),
3650
+ browserhacks: F(
3651
+ _t.c(),
3583
3652
  {
3584
- ratio: B(Dt.size(), je.size())
3653
+ ratio: B(_t.size(), ze.size())
3585
3654
  }
3586
3655
  ),
3587
- complexity: er
3656
+ complexity: Kn
3588
3657
  }
3589
3658
  ),
3590
3659
  values: {
3591
- colors: M(
3592
- Ie.count(),
3660
+ colors: F(
3661
+ _e.count(),
3593
3662
  {
3594
- formats: $e.c()
3663
+ formats: Te.c()
3595
3664
  }
3596
3665
  ),
3597
- gradients: Hn.c(),
3598
- fontFamilies: zt.c(),
3599
- fontSizes: Rt.c(),
3600
- lineHeights: qt.c(),
3601
- zindexes: Un.c(),
3602
- textShadows: Vn.c(),
3603
- boxShadows: Gn.c(),
3604
- borderRadiuses: Wn.count(),
3666
+ gradients: qn.c(),
3667
+ fontFamilies: Nt.c(),
3668
+ fontSizes: $t.c(),
3669
+ lineHeights: Dt.c(),
3670
+ zindexes: Fn.c(),
3671
+ textShadows: zn.c(),
3672
+ boxShadows: Rn.c(),
3673
+ borderRadiuses: Bn.count(),
3605
3674
  animations: {
3606
- durations: ot.c(),
3607
- timingFunctions: st.c()
3675
+ durations: tt.c(),
3676
+ timingFunctions: et.c()
3608
3677
  },
3609
- prefixes: jn.c(),
3610
- browserhacks: Ft.c(),
3611
- units: Bt.count(),
3612
- complexity: tr,
3613
- keywords: Ve.c()
3678
+ prefixes: Mn.c(),
3679
+ browserhacks: It.c(),
3680
+ units: Pt.count(),
3681
+ complexity: Qn,
3682
+ keywords: qe.c()
3614
3683
  },
3615
3684
  __meta__: {
3616
- parseTime: C - m,
3617
- analyzeTime: Date.now() - C,
3618
- total: Date.now() - i
3685
+ parseTime: g - d,
3686
+ analyzeTime: Date.now() - g,
3687
+ total: Date.now() - s
3619
3688
  }
3620
3689
  };
3621
3690
  }
3622
- function Lr(t, e) {
3691
+ function Ar(t, e) {
3623
3692
  return t[0] === e[0] ? t[1] === e[1] ? e[2] - t[2] : e[1] - t[1] : e[0] - t[0];
3624
3693
  }
3625
3694
  export {
3626
- Ea as analyze,
3627
- Lr as compareSpecificity,
3628
- we as hasVendorPrefix,
3629
- ri as isAccessibilitySelector,
3630
- ra as isMediaBrowserhack,
3631
- Sa as isPropertyHack,
3632
- ia as isSelectorPrefixed,
3633
- na as isSupportsBrowserhack,
3634
- si as isValuePrefixed,
3635
- ii as selectorComplexity
3695
+ xa as analyze,
3696
+ Ar as compareSpecificity,
3697
+ Ce as hasVendorPrefix,
3698
+ Qr as isAccessibilitySelector,
3699
+ Jo as isMediaBrowserhack,
3700
+ fa as isPropertyHack,
3701
+ Yo as isSelectorPrefixed,
3702
+ Qo as isSupportsBrowserhack,
3703
+ Yr as isValuePrefixed,
3704
+ Jr as selectorComplexity
3636
3705
  };