xmlui 0.5.2-beta.3 → 0.6.0-beta.5

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
1
  var dn = Object.defineProperty;
2
2
  var pn = (n, e, t) => e in n ? dn(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var k = (n, e, t) => (pn(n, typeof e != "symbol" ? e + "" : e, t), t);
3
+ var k = (n, e, t) => pn(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  let fe = class extends Error {
5
5
  constructor(e) {
6
6
  super(e), this.name = "ShikiError";
@@ -207,8 +207,7 @@ function Sn(n) {
207
207
  if (typeof i.scope == "string") {
208
208
  let u = i.scope;
209
209
  u = u.replace(/^[,]+/, ""), u = u.replace(/[,]+$/, ""), a = u.split(",");
210
- } else
211
- Array.isArray(i.scope) ? a = i.scope : a = [""];
210
+ } else Array.isArray(i.scope) ? a = i.scope : a = [""];
212
211
  let l = -1;
213
212
  if (typeof i.settings.fontStyle == "string") {
214
213
  l = 0;
@@ -3794,8 +3793,7 @@ function Zr(n) {
3794
3793
  for (; ++r < e.length; ) {
3795
3794
  const s = e[r];
3796
3795
  if (s.type === "element" && (s.tagName === "title" || s.tagName === "base")) {
3797
- if (t.includes(s.tagName))
3798
- return !1;
3796
+ if (t.includes(s.tagName)) return !1;
3799
3797
  t.push(s.tagName);
3800
3798
  }
3801
3799
  }
@@ -4629,16 +4627,15 @@ function qs(n) {
4629
4627
  type: "setBackgroundColor",
4630
4628
  value: i
4631
4629
  }), t += o;
4632
- } else
4633
- s === 49 ? e.push({
4634
- type: "resetBackgroundColor"
4635
- }) : s >= 90 && s <= 97 ? e.push({
4636
- type: "setForegroundColor",
4637
- value: { type: "named", name: j[s - 90 + 8] }
4638
- }) : s >= 100 && s <= 107 && e.push({
4639
- type: "setBackgroundColor",
4640
- value: { type: "named", name: j[s - 100 + 8] }
4641
- });
4630
+ } else s === 49 ? e.push({
4631
+ type: "resetBackgroundColor"
4632
+ }) : s >= 90 && s <= 97 ? e.push({
4633
+ type: "setForegroundColor",
4634
+ value: { type: "named", name: j[s - 90 + 8] }
4635
+ }) : s >= 100 && s <= 107 && e.push({
4636
+ type: "setBackgroundColor",
4637
+ value: { type: "named", name: j[s - 100 + 8] }
4638
+ });
4642
4639
  }
4643
4640
  return e;
4644
4641
  }
@@ -4761,8 +4758,7 @@ function Js(n) {
4761
4758
  if (e[3]) {
4762
4759
  const r = Math.round(Number.parseInt(e[3], 16) / 2).toString(16).padStart(2, "0");
4763
4760
  return `#${e[1]}${e[2]}${r}`;
4764
- } else
4765
- return e[2] ? `#${e[1]}${e[2]}80` : `#${Array.from(e[1]).map((r) => `${r}${r}`).join("")}80`;
4761
+ } else return e[2] ? `#${e[1]}${e[2]}80` : `#${Array.from(e[1]).map((r) => `${r}${r}`).join("")}80`;
4766
4762
  const t = n.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
4767
4763
  return t ? `var(${t[1]}-dim)` : n;
4768
4764
  }