@linkdesk/ui 0.2.37 → 0.2.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3,11 +3,11 @@ var ho = Object.defineProperty;
3
3
  var mo = (e, t, n) => t in e ? ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var Fe = (e, t, n) => mo(e, typeof t != "symbol" ? t + "" : t, n);
5
5
  import { jsx as w, jsxs as re, Fragment as wr } from "react/jsx-runtime";
6
- import { memo as po, useMemo as He, useRef as ue, useEffect as ie, useState as ae, useCallback as le, useLayoutEffect as Dn, useId as Eo, isValidElement as To, cloneElement as go, forwardRef as Pr, useImperativeHandle as bo, useContext as _o, createContext as Ao, createElement as pr } from "react";
6
+ import { memo as po, useMemo as He, useRef as ue, useEffect as ie, useState as ae, useCallback as le, useLayoutEffect as Dn, useId as Eo, isValidElement as To, cloneElement as bo, forwardRef as Pr, useImperativeHandle as go, useContext as _o, createContext as Ao, createElement as pr } from "react";
7
7
  import ko, { createPortal as Mr } from "react-dom";
8
8
  import { useTranslation as We } from "react-i18next";
9
9
  const Nt = "data-hint", Co = "data-hint-command", Ru = "data-hint-delay", Io = "data-hint-placement";
10
- function UT({ children: e, title: t }) {
10
+ function zT({ children: e, title: t }) {
11
11
  const n = t ? { [Nt]: t, [Ru]: "0" } : null;
12
12
  return /* @__PURE__ */ w("span", { className: "ldk-badge", ...n, children: e });
13
13
  }
@@ -1223,7 +1223,7 @@ function zu(e) {
1223
1223
  function Yu(e) {
1224
1224
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1225
1225
  }
1226
- var gt = {}, jn, Ei;
1226
+ var bt = {}, jn, Ei;
1227
1227
  function vo() {
1228
1228
  if (Ei) return jn;
1229
1229
  Ei = 1;
@@ -1267,7 +1267,7 @@ function vo() {
1267
1267
  function U() {
1268
1268
  V(n);
1269
1269
  }
1270
- function b(M) {
1270
+ function g(M) {
1271
1271
  var D;
1272
1272
  for (M = M || []; D = O(); )
1273
1273
  D !== !1 && M.push(D);
@@ -1301,9 +1301,9 @@ function vo() {
1301
1301
  }
1302
1302
  function X() {
1303
1303
  var M = [];
1304
- b(M);
1304
+ g(M);
1305
1305
  for (var D; D = Y(); )
1306
- D !== !1 && (M.push(D), b(M));
1306
+ D !== !1 && (M.push(D), g(M));
1307
1307
  return M;
1308
1308
  }
1309
1309
  return U(), X();
@@ -1315,12 +1315,12 @@ function vo() {
1315
1315
  }
1316
1316
  var Ti;
1317
1317
  function Ho() {
1318
- if (Ti) return gt;
1318
+ if (Ti) return bt;
1319
1319
  Ti = 1;
1320
- var e = gt && gt.__importDefault || function(r) {
1320
+ var e = bt && bt.__importDefault || function(r) {
1321
1321
  return r && r.__esModule ? r : { default: r };
1322
1322
  };
1323
- Object.defineProperty(gt, "__esModule", { value: !0 }), gt.default = n;
1323
+ Object.defineProperty(bt, "__esModule", { value: !0 }), bt.default = n;
1324
1324
  const t = e(vo());
1325
1325
  function n(r, i) {
1326
1326
  let u = null;
@@ -1334,12 +1334,12 @@ function Ho() {
1334
1334
  o ? i(c, f, l) : f && (u = u || {}, u[c] = f);
1335
1335
  }), u;
1336
1336
  }
1337
- return gt;
1337
+ return bt;
1338
1338
  }
1339
- var Mt = {}, gi;
1339
+ var Mt = {}, bi;
1340
1340
  function Uo() {
1341
- if (gi) return Mt;
1342
- gi = 1, Object.defineProperty(Mt, "__esModule", { value: !0 }), Mt.camelCase = void 0;
1341
+ if (bi) return Mt;
1342
+ bi = 1, Object.defineProperty(Mt, "__esModule", { value: !0 }), Mt.camelCase = void 0;
1343
1343
  var e = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, n = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, i = /^-(ms)-/, u = function(c) {
1344
1344
  return !c || n.test(c) || e.test(c);
1345
1345
  }, a = function(c, f) {
@@ -1351,10 +1351,10 @@ function Uo() {
1351
1351
  };
1352
1352
  return Mt.camelCase = l, Mt;
1353
1353
  }
1354
- var Ft, bi;
1354
+ var Ft, gi;
1355
1355
  function zo() {
1356
- if (bi) return Ft;
1357
- bi = 1;
1356
+ if (gi) return Ft;
1357
+ gi = 1;
1358
1358
  var e = Ft && Ft.__importDefault || function(i) {
1359
1359
  return i && i.__esModule ? i : { default: i };
1360
1360
  }, t = e(Ho()), n = Uo();
@@ -1386,13 +1386,13 @@ function Vu(e) {
1386
1386
  return { start: t, end: n };
1387
1387
  }
1388
1388
  function Yt(e) {
1389
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? _i(e.position) : "start" in e || "end" in e ? _i(e) : "line" in e || "column" in e ? gr(e) : "";
1389
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? _i(e.position) : "start" in e || "end" in e ? _i(e) : "line" in e || "column" in e ? br(e) : "";
1390
1390
  }
1391
- function gr(e) {
1391
+ function br(e) {
1392
1392
  return Ai(e && e.line) + ":" + Ai(e && e.column);
1393
1393
  }
1394
1394
  function _i(e) {
1395
- return gr(e && e.start) + "-" + gr(e && e.end);
1395
+ return br(e && e.start) + "-" + br(e && e.end);
1396
1396
  }
1397
1397
  function Ai(e) {
1398
1398
  return e && typeof e == "number" ? e : 1;
@@ -1895,7 +1895,7 @@ function In(e) {
1895
1895
  e !== null && (e < 32 || e === 127)
1896
1896
  );
1897
1897
  }
1898
- const br = tt(/\d/), pl = tt(/[\dA-Fa-f]/), El = tt(/[!-/:-@[-`{-~]/);
1898
+ const gr = tt(/\d/), pl = tt(/[\dA-Fa-f]/), El = tt(/[!-/:-@[-`{-~]/);
1899
1899
  function $(e) {
1900
1900
  return e !== null && e < -2;
1901
1901
  }
@@ -1943,9 +1943,9 @@ function ne(e, t, n, r) {
1943
1943
  }
1944
1944
  }
1945
1945
  const Tl = {
1946
- tokenize: gl
1946
+ tokenize: bl
1947
1947
  };
1948
- function gl(e) {
1948
+ function bl(e) {
1949
1949
  const t = e.attempt(this.parser.constructs.contentInitial, r, i);
1950
1950
  let n;
1951
1951
  return t;
@@ -1974,7 +1974,7 @@ function gl(e) {
1974
1974
  return $(o) ? (e.consume(o), e.exit("chunkText"), u) : (e.consume(o), a);
1975
1975
  }
1976
1976
  }
1977
- const bl = {
1977
+ const gl = {
1978
1978
  tokenize: _l
1979
1979
  }, yi = {
1980
1980
  tokenize: Al
@@ -2063,18 +2063,18 @@ function _l(e) {
2063
2063
  )
2064
2064
  return;
2065
2065
  const z = t.events.length;
2066
- let V = z, U, b;
2066
+ let V = z, U, g;
2067
2067
  for (; V--; )
2068
2068
  if (t.events[V][0] === "exit" && t.events[V][1].type === "chunkFlow") {
2069
2069
  if (U) {
2070
- b = t.events[V][1].end;
2070
+ g = t.events[V][1].end;
2071
2071
  break;
2072
2072
  }
2073
2073
  U = !0;
2074
2074
  }
2075
2075
  for (k(r), C = z; C < t.events.length; )
2076
2076
  t.events[C][1].end = {
2077
- ...b
2077
+ ...g
2078
2078
  }, C++;
2079
2079
  Le(t.events, V + 1, 0, t.events.slice(z)), t.events.length = C;
2080
2080
  }
@@ -2303,7 +2303,7 @@ function Dl(e, t, n) {
2303
2303
  return d === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(d), e.exit("characterReferenceMarkerNumeric"), c) : (e.enter("characterReferenceValue"), u = 31, a = _e, f(d));
2304
2304
  }
2305
2305
  function c(d) {
2306
- return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), u = 6, a = pl, f) : (e.enter("characterReferenceValue"), u = 7, a = br, f(d));
2306
+ return d === 88 || d === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(d), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), u = 6, a = pl, f) : (e.enter("characterReferenceValue"), u = 7, a = gr, f(d));
2307
2307
  }
2308
2308
  function f(d) {
2309
2309
  if (d === 59 && i) {
@@ -2374,8 +2374,8 @@ function Rl(e, t, n) {
2374
2374
  }
2375
2375
  function v(C, z, V) {
2376
2376
  let U = 0;
2377
- return b;
2378
- function b(D) {
2377
+ return g;
2378
+ function g(D) {
2379
2379
  return C.enter("lineEnding"), C.consume(D), C.exit("lineEnding"), O;
2380
2380
  }
2381
2381
  function O(D) {
@@ -3066,10 +3066,10 @@ function oc(e, t, n) {
3066
3066
  return A === 62 ? (e.consume(A), r.interrupt ? t : Y) : n(A);
3067
3067
  }
3068
3068
  function L(A) {
3069
- return ee(A) ? (e.consume(A), L) : b(A);
3069
+ return ee(A) ? (e.consume(A), L) : g(A);
3070
3070
  }
3071
3071
  function x(A) {
3072
- return A === 47 ? (e.consume(A), b) : A === 58 || A === 95 || Ce(A) ? (e.consume(A), P) : ee(A) ? (e.consume(A), x) : b(A);
3072
+ return A === 47 ? (e.consume(A), g) : A === 58 || A === 95 || Ce(A) ? (e.consume(A), P) : ee(A) ? (e.consume(A), x) : g(A);
3073
3073
  }
3074
3074
  function P(A) {
3075
3075
  return A === 45 || A === 46 || A === 58 || A === 95 || _e(A) ? (e.consume(A), P) : v(A);
@@ -3089,17 +3089,17 @@ function oc(e, t, n) {
3089
3089
  function U(A) {
3090
3090
  return A === 47 || A === 62 || ee(A) ? x(A) : n(A);
3091
3091
  }
3092
- function b(A) {
3092
+ function g(A) {
3093
3093
  return A === 62 ? (e.consume(A), O) : n(A);
3094
3094
  }
3095
3095
  function O(A) {
3096
3096
  return A === null || $(A) ? Y(A) : ee(A) ? (e.consume(A), O) : n(A);
3097
3097
  }
3098
3098
  function Y(A) {
3099
- return A === 45 && i === 2 ? (e.consume(A), W) : A === 60 && i === 1 ? (e.consume(A), j) : A === 62 && i === 4 ? (e.consume(A), me) : A === 63 && i === 3 ? (e.consume(A), _) : A === 93 && i === 5 ? (e.consume(A), G) : $(A) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(uc, be, X)(A)) : A === null || $(A) ? (e.exit("htmlFlowData"), X(A)) : (e.consume(A), Y);
3099
+ return A === 45 && i === 2 ? (e.consume(A), W) : A === 60 && i === 1 ? (e.consume(A), j) : A === 62 && i === 4 ? (e.consume(A), me) : A === 63 && i === 3 ? (e.consume(A), _) : A === 93 && i === 5 ? (e.consume(A), G) : $(A) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(uc, ge, X)(A)) : A === null || $(A) ? (e.exit("htmlFlowData"), X(A)) : (e.consume(A), Y);
3100
3100
  }
3101
3101
  function X(A) {
3102
- return e.check(ac, M, be)(A);
3102
+ return e.check(ac, M, ge)(A);
3103
3103
  }
3104
3104
  function M(A) {
3105
3105
  return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), D;
@@ -3127,9 +3127,9 @@ function oc(e, t, n) {
3127
3127
  return A === 62 ? (e.consume(A), me) : A === 45 && i === 2 ? (e.consume(A), _) : Y(A);
3128
3128
  }
3129
3129
  function me(A) {
3130
- return A === null || $(A) ? (e.exit("htmlFlowData"), be(A)) : (e.consume(A), me);
3130
+ return A === null || $(A) ? (e.exit("htmlFlowData"), ge(A)) : (e.consume(A), me);
3131
3131
  }
3132
- function be(A) {
3132
+ function ge(A) {
3133
3133
  return e.exit("htmlFlow"), t(A);
3134
3134
  }
3135
3135
  }
@@ -3213,10 +3213,10 @@ function fc(e, t, n) {
3213
3213
  return _ === 45 || _e(_) ? (e.consume(_), V) : _ === 47 || _ === 62 || ce(_) ? U(_) : n(_);
3214
3214
  }
3215
3215
  function U(_) {
3216
- return _ === 47 ? (e.consume(_), W) : _ === 58 || _ === 95 || Ce(_) ? (e.consume(_), b) : $(_) ? (a = U, j(_)) : ee(_) ? (e.consume(_), U) : W(_);
3216
+ return _ === 47 ? (e.consume(_), W) : _ === 58 || _ === 95 || Ce(_) ? (e.consume(_), g) : $(_) ? (a = U, j(_)) : ee(_) ? (e.consume(_), U) : W(_);
3217
3217
  }
3218
- function b(_) {
3219
- return _ === 45 || _ === 46 || _ === 58 || _ === 95 || _e(_) ? (e.consume(_), b) : O(_);
3218
+ function g(_) {
3219
+ return _ === 45 || _ === 46 || _ === 58 || _ === 95 || _e(_) ? (e.consume(_), g) : O(_);
3220
3220
  }
3221
3221
  function O(_) {
3222
3222
  return _ === 61 ? (e.consume(_), Y) : $(_) ? (a = O, j(_)) : ee(_) ? (e.consume(_), O) : U(_);
@@ -3250,9 +3250,9 @@ const Yr = {
3250
3250
  name: "labelEnd",
3251
3251
  resolveAll: Ec,
3252
3252
  resolveTo: Tc,
3253
- tokenize: gc
3254
- }, hc = {
3255
3253
  tokenize: bc
3254
+ }, hc = {
3255
+ tokenize: gc
3256
3256
  }, mc = {
3257
3257
  tokenize: _c
3258
3258
  }, pc = {
@@ -3310,7 +3310,7 @@ function Tc(e, t) {
3310
3310
  };
3311
3311
  return o = [["enter", l, t], ["enter", c, t]], o = Oe(o, e.slice(u + 1, u + r + 3)), o = Oe(o, [["enter", f, t]]), o = Oe(o, Mn(t.parser.constructs.insideSpan.null, e.slice(u + r + 4, a - 3), t)), o = Oe(o, [["exit", f, t], e[a - 2], e[a - 1], ["exit", c, t]]), o = Oe(o, e.slice(a + 1)), o = Oe(o, [["exit", l, t]]), Le(e, u, e.length, o), e;
3312
3312
  }
3313
- function gc(e, t, n) {
3313
+ function bc(e, t, n) {
3314
3314
  const r = this;
3315
3315
  let i = r.events.length, u, a;
3316
3316
  for (; i--; )
@@ -3338,7 +3338,7 @@ function gc(e, t, n) {
3338
3338
  return u._balanced = !0, n(m);
3339
3339
  }
3340
3340
  }
3341
- function bc(e, t, n) {
3341
+ function gc(e, t, n) {
3342
3342
  return r;
3343
3343
  function r(d) {
3344
3344
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), i;
@@ -3430,7 +3430,7 @@ function Nc(e, t) {
3430
3430
  return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), ne(e, t, "linePrefix");
3431
3431
  }
3432
3432
  }
3433
- const bn = {
3433
+ const gn = {
3434
3434
  name: "thematicBreak",
3435
3435
  tokenize: xc
3436
3436
  };
@@ -3470,18 +3470,18 @@ function Oc(e, t, n) {
3470
3470
  return o;
3471
3471
  function o(h) {
3472
3472
  const E = r.containerState.type || (h === 42 || h === 43 || h === 45 ? "listUnordered" : "listOrdered");
3473
- if (E === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : br(h)) {
3473
+ if (E === "listUnordered" ? !r.containerState.marker || h === r.containerState.marker : gr(h)) {
3474
3474
  if (r.containerState.type || (r.containerState.type = E, e.enter(E, {
3475
3475
  _container: !0
3476
3476
  })), E === "listUnordered")
3477
- return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(bn, n, c)(h) : c(h);
3477
+ return e.enter("listItemPrefix"), h === 42 || h === 45 ? e.check(gn, n, c)(h) : c(h);
3478
3478
  if (!r.interrupt || h === 49)
3479
3479
  return e.enter("listItemPrefix"), e.enter("listItemValue"), l(h);
3480
3480
  }
3481
3481
  return n(h);
3482
3482
  }
3483
3483
  function l(h) {
3484
- return br(h) && ++a < 10 ? (e.consume(h), l) : (!r.interrupt || a < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), c(h)) : n(h);
3484
+ return gr(h) && ++a < 10 ? (e.consume(h), l) : (!r.interrupt || a < 2) && (r.containerState.marker ? h === r.containerState.marker : h === 41 || h === 46) ? (e.exit("listItemValue"), c(h)) : n(h);
3485
3485
  }
3486
3486
  function c(h) {
3487
3487
  return e.enter("listItemMarker"), e.consume(h), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || h, e.check(
@@ -3725,11 +3725,11 @@ const qc = {
3725
3725
  32: Gn
3726
3726
  }, jc = {
3727
3727
  35: ec,
3728
- 42: bn,
3729
- 45: [Oi, bn],
3728
+ 42: gn,
3729
+ 45: [Oi, gn],
3730
3730
  60: ic,
3731
3731
  61: Oi,
3732
- 95: bn,
3732
+ 95: gn,
3733
3733
  96: Si,
3734
3734
  126: Si
3735
3735
  }, $c = {
@@ -3825,7 +3825,7 @@ function Zc(e, t, n) {
3825
3825
  };
3826
3826
  }
3827
3827
  function I(O) {
3828
- i[O.line] = O.column, b();
3828
+ i[O.line] = O.column, g();
3829
3829
  }
3830
3830
  function N() {
3831
3831
  let O;
@@ -3842,7 +3842,7 @@ function Zc(e, t, n) {
3842
3842
  f = f(O);
3843
3843
  }
3844
3844
  function L(O) {
3845
- $(O) ? (r.line++, r.column = 1, r.offset += O === -3 ? 2 : 1, b()) : O !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
3845
+ $(O) ? (r.line++, r.column = 1, r.offset += O === -3 ? 2 : 1, g()) : O !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
3846
3846
  // strings.
3847
3847
  /** @type {string} */
3848
3848
  a[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = O;
@@ -3867,33 +3867,33 @@ function Zc(e, t, n) {
3867
3867
  let j, Z, G, _;
3868
3868
  return Array.isArray(M) ? (
3869
3869
  /* c8 ignore next 1 */
3870
- be(M)
3870
+ ge(M)
3871
3871
  ) : "tokenize" in M ? (
3872
3872
  // Looks like a construct.
3873
- be([
3873
+ ge([
3874
3874
  /** @type {Construct} */
3875
3875
  M
3876
3876
  ])
3877
3877
  ) : me(M);
3878
- function me(ge) {
3878
+ function me(be) {
3879
3879
  return Rt;
3880
3880
  function Rt($e) {
3881
- const pt = $e !== null && ge[$e], Et = $e !== null && ge.null, ln = [
3881
+ const pt = $e !== null && be[$e], Et = $e !== null && be.null, ln = [
3882
3882
  // To do: add more extension tests.
3883
3883
  /* c8 ignore next 2 */
3884
3884
  ...Array.isArray(pt) ? pt : pt ? [pt] : [],
3885
3885
  ...Array.isArray(Et) ? Et : Et ? [Et] : []
3886
3886
  ];
3887
- return be(ln)($e);
3887
+ return ge(ln)($e);
3888
3888
  }
3889
3889
  }
3890
- function be(ge) {
3891
- return j = ge, Z = 0, ge.length === 0 ? W : A(ge[Z]);
3890
+ function ge(be) {
3891
+ return j = be, Z = 0, be.length === 0 ? W : A(be[Z]);
3892
3892
  }
3893
- function A(ge) {
3893
+ function A(be) {
3894
3894
  return Rt;
3895
3895
  function Rt($e) {
3896
- return _ = U(), G = ge, ge.partial || (c.currentConstruct = ge), ge.name && c.parser.constructs.disable.null.includes(ge.name) ? nt() : ge.tokenize.call(
3896
+ return _ = U(), G = be, be.partial || (c.currentConstruct = be), be.name && c.parser.constructs.disable.null.includes(be.name) ? nt() : be.tokenize.call(
3897
3897
  // If we do have fields, create an object w/ `context` as its
3898
3898
  // prototype.
3899
3899
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -3904,10 +3904,10 @@ function Zc(e, t, n) {
3904
3904
  )($e);
3905
3905
  }
3906
3906
  }
3907
- function Re(ge) {
3907
+ function Re(be) {
3908
3908
  return O(G, _), D;
3909
3909
  }
3910
- function nt(ge) {
3910
+ function nt(be) {
3911
3911
  return _.restore(), ++Z < j.length ? A(j[Z]) : W;
3912
3912
  }
3913
3913
  }
@@ -3922,10 +3922,10 @@ function Zc(e, t, n) {
3922
3922
  restore: W
3923
3923
  };
3924
3924
  function W() {
3925
- r = O, c.previous = Y, c.currentConstruct = X, c.events.length = M, o = D, b();
3925
+ r = O, c.previous = Y, c.currentConstruct = X, c.events.length = M, o = D, g();
3926
3926
  }
3927
3927
  }
3928
- function b() {
3928
+ function g() {
3929
3929
  r.line in i && r.column < 2 && (r.column = i[r.line], r.offset += i[r.line] - 1);
3930
3930
  }
3931
3931
  }
@@ -3991,7 +3991,7 @@ function n0(e) {
3991
3991
  ),
3992
3992
  content: i(Tl),
3993
3993
  defined: [],
3994
- document: i(bl),
3994
+ document: i(gl),
3995
3995
  flow: i(Bc),
3996
3996
  lazy: {},
3997
3997
  string: i(Uc),
@@ -4117,20 +4117,20 @@ function l0(e) {
4117
4117
  autolinkEmail: pt,
4118
4118
  autolinkProtocol: $e,
4119
4119
  blockQuote: l(),
4120
- characterEscapeValue: b,
4120
+ characterEscapeValue: g,
4121
4121
  characterReferenceMarkerHexadecimal: nt,
4122
4122
  characterReferenceMarkerNumeric: nt,
4123
- characterReferenceValue: ge,
4123
+ characterReferenceValue: be,
4124
4124
  characterReference: Rt,
4125
4125
  codeFenced: l(N),
4126
4126
  codeFencedFence: I,
4127
4127
  codeFencedFenceInfo: h,
4128
4128
  codeFencedFenceMeta: E,
4129
- codeFlowValue: b,
4129
+ codeFlowValue: g,
4130
4130
  codeIndented: l(k),
4131
4131
  codeText: l(D),
4132
- codeTextData: b,
4133
- data: b,
4132
+ codeTextData: g,
4133
+ data: g,
4134
4134
  definition: l(),
4135
4135
  definitionDestinationString: P,
4136
4136
  definitionLabelString: L,
@@ -4139,9 +4139,9 @@ function l0(e) {
4139
4139
  hardBreakEscape: l(Y),
4140
4140
  hardBreakTrailing: l(Y),
4141
4141
  htmlFlow: l(X),
4142
- htmlFlowData: b,
4142
+ htmlFlowData: g,
4143
4143
  htmlText: l(M),
4144
- htmlTextData: b,
4144
+ htmlTextData: g,
4145
4145
  image: l(j),
4146
4146
  label: G,
4147
4147
  labelText: Z,
@@ -4154,7 +4154,7 @@ function l0(e) {
4154
4154
  referenceString: Re,
4155
4155
  resourceDestinationString: _,
4156
4156
  resourceTitleString: me,
4157
- resource: be,
4157
+ resource: ge,
4158
4158
  setextHeading: l(V),
4159
4159
  setextHeadingLineSequence: z,
4160
4160
  setextHeadingText: C,
@@ -4368,7 +4368,7 @@ function l0(e) {
4368
4368
  end: void 0
4369
4369
  }, K.push(te)), this.stack.push(te);
4370
4370
  }
4371
- function b(R) {
4371
+ function g(R) {
4372
4372
  const q = this.stack.pop();
4373
4373
  q.value += this.sliceSerialize(R), q.position.end = Ge(R.end);
4374
4374
  }
@@ -4379,7 +4379,7 @@ function l0(e) {
4379
4379
  K.position.end = Ge(R.end), this.data.atHardBreak = void 0;
4380
4380
  return;
4381
4381
  }
4382
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(q.type) && (U.call(this, R), b.call(this, R));
4382
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(q.type) && (U.call(this, R), g.call(this, R));
4383
4383
  }
4384
4384
  function Y() {
4385
4385
  this.data.atHardBreak = !0;
@@ -4434,7 +4434,7 @@ function l0(e) {
4434
4434
  const R = this.resume(), q = this.stack[this.stack.length - 1];
4435
4435
  q.title = R;
4436
4436
  }
4437
- function be() {
4437
+ function ge() {
4438
4438
  this.data.inReference = void 0;
4439
4439
  }
4440
4440
  function A() {
@@ -4447,7 +4447,7 @@ function l0(e) {
4447
4447
  function nt(R) {
4448
4448
  this.data.characterReferenceType = R.type;
4449
4449
  }
4450
- function ge(R) {
4450
+ function be(R) {
4451
4451
  const q = this.sliceSerialize(R), K = this.data.characterReferenceType;
4452
4452
  let te;
4453
4453
  K ? (te = Xu(q, K === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : te = zr(q);
@@ -4459,12 +4459,12 @@ function l0(e) {
4459
4459
  q.position.end = Ge(R.end);
4460
4460
  }
4461
4461
  function $e(R) {
4462
- b.call(this, R);
4462
+ g.call(this, R);
4463
4463
  const q = this.stack[this.stack.length - 1];
4464
4464
  q.url = this.sliceSerialize(R);
4465
4465
  }
4466
4466
  function pt(R) {
4467
- b.call(this, R);
4467
+ g.call(this, R);
4468
4468
  const q = this.stack[this.stack.length - 1];
4469
4469
  q.url = "mailto:" + this.sliceSerialize(R);
4470
4470
  }
@@ -4711,7 +4711,7 @@ function T0(e, t) {
4711
4711
  };
4712
4712
  return e.patch(t, c), e.applyData(t, c);
4713
4713
  }
4714
- function g0(e, t) {
4714
+ function b0(e, t) {
4715
4715
  const n = {
4716
4716
  type: "element",
4717
4717
  tagName: "h" + t.depth,
@@ -4720,7 +4720,7 @@ function g0(e, t) {
4720
4720
  };
4721
4721
  return e.patch(t, n), e.applyData(t, n);
4722
4722
  }
4723
- function b0(e, t) {
4723
+ function g0(e, t) {
4724
4724
  if (e.options.allowDangerousHtml) {
4725
4725
  const n = { type: "raw", value: t.value };
4726
4726
  return e.patch(t, n), e.applyData(t, n);
@@ -4968,8 +4968,8 @@ const B0 = {
4968
4968
  delete: p0,
4969
4969
  emphasis: E0,
4970
4970
  footnoteReference: T0,
4971
- heading: g0,
4972
- html: b0,
4971
+ heading: b0,
4972
+ html: g0,
4973
4973
  imageReference: _0,
4974
4974
  image: A0,
4975
4975
  inlineCode: k0,
@@ -5741,8 +5741,8 @@ function un(e) {
5741
5741
  "Path must be a string. Received " + JSON.stringify(e)
5742
5742
  );
5743
5743
  }
5744
- const gd = { cwd: bd };
5745
- function bd() {
5744
+ const bd = { cwd: gd };
5745
+ function gd() {
5746
5746
  return "/";
5747
5747
  }
5748
5748
  function Ir(e) {
@@ -5821,7 +5821,7 @@ class Ta {
5821
5821
  */
5822
5822
  constructor(t) {
5823
5823
  let n;
5824
- t ? Ir(t) ? n = { path: t } : typeof t == "string" || kd(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : gd.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5824
+ t ? Ir(t) ? n = { path: t } : typeof t == "string" || kd(t) ? n = { value: t } : n = t : n = {}, this.cwd = "cwd" in n ? "" : bd.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
5825
5825
  let r = -1;
5826
5826
  for (; ++r < Jn.length; ) {
5827
5827
  const u = Jn[r];
@@ -6964,7 +6964,7 @@ function Qd(e) {
6964
6964
  }
6965
6965
  function Kd(e, t, n, r, i) {
6966
6966
  let u = "";
6967
- if (!ga(i) || (/^w/i.test(t) && (n = t + n, t = "", u = "http://"), !Jd(n)))
6967
+ if (!ba(i) || (/^w/i.test(t) && (n = t + n, t = "", u = "http://"), !Jd(n)))
6968
6968
  return !1;
6969
6969
  const a = Zd(n + r);
6970
6970
  if (!a[0]) return !1;
@@ -6979,7 +6979,7 @@ function Kd(e, t, n, r, i) {
6979
6979
  function Xd(e, t, n, r) {
6980
6980
  return (
6981
6981
  // Not an expected previous character.
6982
- !ga(r, !0) || // Label ends in not allowed character.
6982
+ !ba(r, !0) || // Label ends in not allowed character.
6983
6983
  /[-\d_]$/.test(n) ? !1 : {
6984
6984
  type: "link",
6985
6985
  title: null,
@@ -7004,12 +7004,12 @@ function Zd(e) {
7004
7004
  e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), u++;
7005
7005
  return [e, n];
7006
7006
  }
7007
- function ga(e, t) {
7007
+ function ba(e, t) {
7008
7008
  const n = e.input.charCodeAt(e.index - 1);
7009
7009
  return (e.index === 0 || dt(n) || Pn(n)) && // If it’s an email, the previous character should not be a slash.
7010
7010
  (!t || n !== 47);
7011
7011
  }
7012
- ba.peek = lf;
7012
+ ga.peek = lf;
7013
7013
  function ef() {
7014
7014
  this.buffer();
7015
7015
  }
@@ -7046,7 +7046,7 @@ function of(e) {
7046
7046
  function lf() {
7047
7047
  return "[";
7048
7048
  }
7049
- function ba(e, t, n, r) {
7049
+ function ga(e, t, n, r) {
7050
7050
  const i = n.createTracker(r);
7051
7051
  let u = i.move("[^");
7052
7052
  const a = n.enter("footnoteReference"), o = n.enter("reference");
@@ -7073,7 +7073,7 @@ function cf() {
7073
7073
  function df(e) {
7074
7074
  let t = !1;
7075
7075
  return e && e.firstLineBlank && (t = !0), {
7076
- handlers: { footnoteDefinition: n, footnoteReference: ba },
7076
+ handlers: { footnoteDefinition: n, footnoteReference: ga },
7077
7077
  // This is on by default already.
7078
7078
  unsafe: [{ character: "[", inConstruct: ["label", "phrasing", "reference"] }]
7079
7079
  };
@@ -7106,7 +7106,7 @@ const hf = [
7106
7106
  "titleQuote",
7107
7107
  "titleApostrophe"
7108
7108
  ];
7109
- Aa.peek = gf;
7109
+ Aa.peek = bf;
7110
7110
  function mf() {
7111
7111
  return {
7112
7112
  canContainEols: ["delete"],
@@ -7141,14 +7141,14 @@ function Aa(e, t, n, r) {
7141
7141
  after: "~"
7142
7142
  }), a += i.move("~~"), u(), a;
7143
7143
  }
7144
- function gf() {
7144
+ function bf() {
7145
7145
  return "~";
7146
7146
  }
7147
- function bf(e) {
7147
+ function gf(e) {
7148
7148
  return e.length;
7149
7149
  }
7150
7150
  function _f(e, t) {
7151
- const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || bf, u = [], a = [], o = [], l = [];
7151
+ const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || gf, u = [], a = [], o = [], l = [];
7152
7152
  let c = 0, f = -1;
7153
7153
  for (; ++f < e.length; ) {
7154
7154
  const I = [], N = [];
@@ -8028,7 +8028,7 @@ function fh(e) {
8028
8028
  };
8029
8029
  }
8030
8030
  const hh = {
8031
- tokenize: bh,
8031
+ tokenize: gh,
8032
8032
  partial: !0
8033
8033
  }, Pa = {
8034
8034
  tokenize: _h,
@@ -8048,7 +8048,7 @@ const hh = {
8048
8048
  previous: Ha
8049
8049
  }, va = {
8050
8050
  name: "protocolAutolink",
8051
- tokenize: gh,
8051
+ tokenize: bh,
8052
8052
  previous: Ua
8053
8053
  }, je = {
8054
8054
  name: "emailAutolink",
@@ -8101,7 +8101,7 @@ function Th(e, t, n) {
8101
8101
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(a);
8102
8102
  }
8103
8103
  }
8104
- function gh(e, t, n) {
8104
+ function bh(e, t, n) {
8105
8105
  const r = this;
8106
8106
  let i = "", u = !1;
8107
8107
  return a;
@@ -8128,7 +8128,7 @@ function gh(e, t, n) {
8128
8128
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(d);
8129
8129
  }
8130
8130
  }
8131
- function bh(e, t, n) {
8131
+ function gh(e, t, n) {
8132
8132
  let r = 0;
8133
8133
  return i;
8134
8134
  function i(a) {
@@ -8565,7 +8565,7 @@ function vh(e, t, n) {
8565
8565
  const r = this;
8566
8566
  let i = 0, u = 0, a;
8567
8567
  return o;
8568
- function o(b) {
8568
+ function o(g) {
8569
8569
  let O = r.events.length - 1;
8570
8570
  for (; O > -1; ) {
8571
8571
  const M = r.events[O][1].type;
@@ -8574,61 +8574,61 @@ function vh(e, t, n) {
8574
8574
  else break;
8575
8575
  }
8576
8576
  const Y = O > -1 ? r.events[O][1].type : null, X = Y === "tableHead" || Y === "tableRow" ? C : l;
8577
- return X === C && r.parser.lazy[r.now().line] ? n(b) : X(b);
8577
+ return X === C && r.parser.lazy[r.now().line] ? n(g) : X(g);
8578
8578
  }
8579
- function l(b) {
8580
- return e.enter("tableHead"), e.enter("tableRow"), c(b);
8579
+ function l(g) {
8580
+ return e.enter("tableHead"), e.enter("tableRow"), c(g);
8581
8581
  }
8582
- function c(b) {
8583
- return b === 124 || (a = !0, u += 1), f(b);
8582
+ function c(g) {
8583
+ return g === 124 || (a = !0, u += 1), f(g);
8584
8584
  }
8585
- function f(b) {
8586
- return b === null ? n(b) : $(b) ? u > 1 ? (u = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), h) : n(b) : ee(b) ? ne(e, f, "whitespace")(b) : (u += 1, a && (a = !1, i += 1), b === 124 ? (e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), a = !0, f) : (e.enter("data"), d(b)));
8585
+ function f(g) {
8586
+ return g === null ? n(g) : $(g) ? u > 1 ? (u = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), h) : n(g) : ee(g) ? ne(e, f, "whitespace")(g) : (u += 1, a && (a = !1, i += 1), g === 124 ? (e.enter("tableCellDivider"), e.consume(g), e.exit("tableCellDivider"), a = !0, f) : (e.enter("data"), d(g)));
8587
8587
  }
8588
- function d(b) {
8589
- return b === null || b === 124 || ce(b) ? (e.exit("data"), f(b)) : (e.consume(b), b === 92 ? m : d);
8588
+ function d(g) {
8589
+ return g === null || g === 124 || ce(g) ? (e.exit("data"), f(g)) : (e.consume(g), g === 92 ? m : d);
8590
8590
  }
8591
- function m(b) {
8592
- return b === 92 || b === 124 ? (e.consume(b), d) : d(b);
8591
+ function m(g) {
8592
+ return g === 92 || g === 124 ? (e.consume(g), d) : d(g);
8593
8593
  }
8594
- function h(b) {
8595
- return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(b) : (e.enter("tableDelimiterRow"), a = !1, ee(b) ? ne(e, E, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(b) : E(b));
8594
+ function h(g) {
8595
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(g) : (e.enter("tableDelimiterRow"), a = !1, ee(g) ? ne(e, E, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(g) : E(g));
8596
8596
  }
8597
- function E(b) {
8598
- return b === 45 || b === 58 ? N(b) : b === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), I) : v(b);
8597
+ function E(g) {
8598
+ return g === 45 || g === 58 ? N(g) : g === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(g), e.exit("tableCellDivider"), I) : v(g);
8599
8599
  }
8600
- function I(b) {
8601
- return ee(b) ? ne(e, N, "whitespace")(b) : N(b);
8600
+ function I(g) {
8601
+ return ee(g) ? ne(e, N, "whitespace")(g) : N(g);
8602
8602
  }
8603
- function N(b) {
8604
- return b === 58 ? (u += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(b), e.exit("tableDelimiterMarker"), k) : b === 45 ? (u += 1, k(b)) : b === null || $(b) ? P(b) : v(b);
8603
+ function N(g) {
8604
+ return g === 58 ? (u += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(g), e.exit("tableDelimiterMarker"), k) : g === 45 ? (u += 1, k(g)) : g === null || $(g) ? P(g) : v(g);
8605
8605
  }
8606
- function k(b) {
8607
- return b === 45 ? (e.enter("tableDelimiterFiller"), L(b)) : v(b);
8606
+ function k(g) {
8607
+ return g === 45 ? (e.enter("tableDelimiterFiller"), L(g)) : v(g);
8608
8608
  }
8609
- function L(b) {
8610
- return b === 45 ? (e.consume(b), L) : b === 58 ? (a = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(b), e.exit("tableDelimiterMarker"), x) : (e.exit("tableDelimiterFiller"), x(b));
8609
+ function L(g) {
8610
+ return g === 45 ? (e.consume(g), L) : g === 58 ? (a = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(g), e.exit("tableDelimiterMarker"), x) : (e.exit("tableDelimiterFiller"), x(g));
8611
8611
  }
8612
- function x(b) {
8613
- return ee(b) ? ne(e, P, "whitespace")(b) : P(b);
8612
+ function x(g) {
8613
+ return ee(g) ? ne(e, P, "whitespace")(g) : P(g);
8614
8614
  }
8615
- function P(b) {
8616
- return b === 124 ? E(b) : b === null || $(b) ? !a || i !== u ? v(b) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(b)) : v(b);
8615
+ function P(g) {
8616
+ return g === 124 ? E(g) : g === null || $(g) ? !a || i !== u ? v(g) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(g)) : v(g);
8617
8617
  }
8618
- function v(b) {
8619
- return n(b);
8618
+ function v(g) {
8619
+ return n(g);
8620
8620
  }
8621
- function C(b) {
8622
- return e.enter("tableRow"), z(b);
8621
+ function C(g) {
8622
+ return e.enter("tableRow"), z(g);
8623
8623
  }
8624
- function z(b) {
8625
- return b === 124 ? (e.enter("tableCellDivider"), e.consume(b), e.exit("tableCellDivider"), z) : b === null || $(b) ? (e.exit("tableRow"), t(b)) : ee(b) ? ne(e, z, "whitespace")(b) : (e.enter("data"), V(b));
8624
+ function z(g) {
8625
+ return g === 124 ? (e.enter("tableCellDivider"), e.consume(g), e.exit("tableCellDivider"), z) : g === null || $(g) ? (e.exit("tableRow"), t(g)) : ee(g) ? ne(e, z, "whitespace")(g) : (e.enter("data"), V(g));
8626
8626
  }
8627
- function V(b) {
8628
- return b === null || b === 124 || ce(b) ? (e.exit("data"), z(b)) : (e.consume(b), b === 92 ? U : V);
8627
+ function V(g) {
8628
+ return g === null || g === 124 || ce(g) ? (e.exit("data"), z(g)) : (e.consume(g), g === 92 ? U : V);
8629
8629
  }
8630
- function U(b) {
8631
- return b === 92 || b === 124 ? (e.consume(b), V) : V(b);
8630
+ function U(g) {
8631
+ return g === 92 || g === 124 ? (e.consume(g), V) : V(g);
8632
8632
  }
8633
8633
  }
8634
8634
  function Hh(e, t) {
@@ -9269,10 +9269,10 @@ const Ie = {
9269
9269
  function ja(e) {
9270
9270
  return e >= 55296 && e <= 57343;
9271
9271
  }
9272
- function gm(e) {
9272
+ function bm(e) {
9273
9273
  return e >= 56320 && e <= 57343;
9274
9274
  }
9275
- function bm(e, t) {
9275
+ function gm(e, t) {
9276
9276
  return (e - 55296) * 1024 + 9216 + t;
9277
9277
  }
9278
9278
  function $a(e) {
@@ -9318,8 +9318,8 @@ class Am {
9318
9318
  _processSurrogate(t) {
9319
9319
  if (this.pos !== this.html.length - 1) {
9320
9320
  const n = this.html.charCodeAt(this.pos + 1);
9321
- if (gm(n))
9322
- return this.pos++, this._addGap(), bm(t, n);
9321
+ if (bm(n))
9322
+ return this.pos++, this._addGap(), gm(t, n);
9323
9323
  } else if (!this.lastChunkWritten)
9324
9324
  return this.endOfChunkHit = !0, p.EOF;
9325
9325
  return this._err(S.surrogateInInputStream), t;
@@ -12590,10 +12590,10 @@ function o1(e, t, n, r) {
12590
12590
  return (!r || r === F.HTML) && s1(e, t, n) || (!r || r === F.MATHML) && a1(e, t);
12591
12591
  }
12592
12592
  const l1 = "hidden", c1 = 8, d1 = 3;
12593
- var g;
12593
+ var b;
12594
12594
  (function(e) {
12595
12595
  e[e.INITIAL = 0] = "INITIAL", e[e.BEFORE_HTML = 1] = "BEFORE_HTML", e[e.BEFORE_HEAD = 2] = "BEFORE_HEAD", e[e.IN_HEAD = 3] = "IN_HEAD", e[e.IN_HEAD_NO_SCRIPT = 4] = "IN_HEAD_NO_SCRIPT", e[e.AFTER_HEAD = 5] = "AFTER_HEAD", e[e.IN_BODY = 6] = "IN_BODY", e[e.TEXT = 7] = "TEXT", e[e.IN_TABLE = 8] = "IN_TABLE", e[e.IN_TABLE_TEXT = 9] = "IN_TABLE_TEXT", e[e.IN_CAPTION = 10] = "IN_CAPTION", e[e.IN_COLUMN_GROUP = 11] = "IN_COLUMN_GROUP", e[e.IN_TABLE_BODY = 12] = "IN_TABLE_BODY", e[e.IN_ROW = 13] = "IN_ROW", e[e.IN_CELL = 14] = "IN_CELL", e[e.IN_SELECT = 15] = "IN_SELECT", e[e.IN_SELECT_IN_TABLE = 16] = "IN_SELECT_IN_TABLE", e[e.IN_TEMPLATE = 17] = "IN_TEMPLATE", e[e.AFTER_BODY = 18] = "AFTER_BODY", e[e.IN_FRAMESET = 19] = "IN_FRAMESET", e[e.AFTER_FRAMESET = 20] = "AFTER_FRAMESET", e[e.AFTER_AFTER_BODY = 21] = "AFTER_AFTER_BODY", e[e.AFTER_AFTER_FRAMESET = 22] = "AFTER_AFTER_FRAMESET";
12596
- })(g || (g = {}));
12596
+ })(b || (b = {}));
12597
12597
  const f1 = {
12598
12598
  startLine: -1,
12599
12599
  startCol: -1,
@@ -12609,7 +12609,7 @@ const f1 = {
12609
12609
  };
12610
12610
  class pu {
12611
12611
  constructor(t, n, r = null, i = null) {
12612
- this.fragmentContext = r, this.scriptHandler = i, this.currentToken = null, this.stopped = !1, this.insertionMode = g.INITIAL, this.originalInsertionMode = g.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
12612
+ this.fragmentContext = r, this.scriptHandler = i, this.currentToken = null, this.stopped = !1, this.insertionMode = b.INITIAL, this.originalInsertionMode = b.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
12613
12613
  ...mu,
12614
12614
  ...t
12615
12615
  }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new Fm(this.options, this), this.activeFormattingElements = new Vm(this.treeAdapter), this.fragmentContextID = r ? Ot(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new qm(this.document, this.treeAdapter, this);
@@ -12626,7 +12626,7 @@ class pu {
12626
12626
  };
12627
12627
  t ?? (t = r.treeAdapter.createElement(y.TEMPLATE, F.HTML, []));
12628
12628
  const i = r.treeAdapter.createElement("documentmock", F.HTML, []), u = new this(r, i, t);
12629
- return u.fragmentContextID === s.TEMPLATE && u.tmplInsertionModeStack.unshift(g.IN_TEMPLATE), u._initTokenizerForFragmentParsing(), u._insertFakeRootElement(), u._resetInsertionMode(), u._findFormInFragmentContext(), u;
12629
+ return u.fragmentContextID === s.TEMPLATE && u.tmplInsertionModeStack.unshift(b.IN_TEMPLATE), u._initTokenizerForFragmentParsing(), u._insertFakeRootElement(), u._resetInsertionMode(), u._findFormInFragmentContext(), u;
12630
12630
  }
12631
12631
  getFragment() {
12632
12632
  const t = this.treeAdapter.getFirstChild(this.document), n = this.treeAdapter.createDocumentFragment();
@@ -12669,10 +12669,10 @@ class pu {
12669
12669
  }
12670
12670
  /** @protected */
12671
12671
  _switchToTextParsing(t, n) {
12672
- this._insertElement(t, F.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = g.TEXT;
12672
+ this._insertElement(t, F.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = b.TEXT;
12673
12673
  }
12674
12674
  switchToPlaintextParsing() {
12675
- this.insertionMode = g.TEXT, this.originalInsertionMode = g.IN_BODY, this.tokenizer.state = fe.PLAINTEXT;
12675
+ this.insertionMode = b.TEXT, this.originalInsertionMode = b.IN_BODY, this.tokenizer.state = fe.PLAINTEXT;
12676
12676
  }
12677
12677
  //Fragment parsing
12678
12678
  /** @protected */
@@ -12882,7 +12882,7 @@ class pu {
12882
12882
  //Close elements
12883
12883
  /** @protected */
12884
12884
  _closeTableCell() {
12885
- this.openElements.generateImpliedEndTags(), this.openElements.popUntilTableCellPopped(), this.activeFormattingElements.clearToLastMarker(), this.insertionMode = g.IN_ROW;
12885
+ this.openElements.generateImpliedEndTags(), this.openElements.popUntilTableCellPopped(), this.activeFormattingElements.clearToLastMarker(), this.insertionMode = b.IN_ROW;
12886
12886
  }
12887
12887
  /** @protected */
12888
12888
  _closePElement() {
@@ -12894,33 +12894,33 @@ class pu {
12894
12894
  for (let t = this.openElements.stackTop; t >= 0; t--)
12895
12895
  switch (t === 0 && this.fragmentContext ? this.fragmentContextID : this.openElements.tagIDs[t]) {
12896
12896
  case s.TR: {
12897
- this.insertionMode = g.IN_ROW;
12897
+ this.insertionMode = b.IN_ROW;
12898
12898
  return;
12899
12899
  }
12900
12900
  case s.TBODY:
12901
12901
  case s.THEAD:
12902
12902
  case s.TFOOT: {
12903
- this.insertionMode = g.IN_TABLE_BODY;
12903
+ this.insertionMode = b.IN_TABLE_BODY;
12904
12904
  return;
12905
12905
  }
12906
12906
  case s.CAPTION: {
12907
- this.insertionMode = g.IN_CAPTION;
12907
+ this.insertionMode = b.IN_CAPTION;
12908
12908
  return;
12909
12909
  }
12910
12910
  case s.COLGROUP: {
12911
- this.insertionMode = g.IN_COLUMN_GROUP;
12911
+ this.insertionMode = b.IN_COLUMN_GROUP;
12912
12912
  return;
12913
12913
  }
12914
12914
  case s.TABLE: {
12915
- this.insertionMode = g.IN_TABLE;
12915
+ this.insertionMode = b.IN_TABLE;
12916
12916
  return;
12917
12917
  }
12918
12918
  case s.BODY: {
12919
- this.insertionMode = g.IN_BODY;
12919
+ this.insertionMode = b.IN_BODY;
12920
12920
  return;
12921
12921
  }
12922
12922
  case s.FRAMESET: {
12923
- this.insertionMode = g.IN_FRAMESET;
12923
+ this.insertionMode = b.IN_FRAMESET;
12924
12924
  return;
12925
12925
  }
12926
12926
  case s.SELECT: {
@@ -12932,26 +12932,26 @@ class pu {
12932
12932
  return;
12933
12933
  }
12934
12934
  case s.HTML: {
12935
- this.insertionMode = this.headElement ? g.AFTER_HEAD : g.BEFORE_HEAD;
12935
+ this.insertionMode = this.headElement ? b.AFTER_HEAD : b.BEFORE_HEAD;
12936
12936
  return;
12937
12937
  }
12938
12938
  case s.TD:
12939
12939
  case s.TH: {
12940
12940
  if (t > 0) {
12941
- this.insertionMode = g.IN_CELL;
12941
+ this.insertionMode = b.IN_CELL;
12942
12942
  return;
12943
12943
  }
12944
12944
  break;
12945
12945
  }
12946
12946
  case s.HEAD: {
12947
12947
  if (t > 0) {
12948
- this.insertionMode = g.IN_HEAD;
12948
+ this.insertionMode = b.IN_HEAD;
12949
12949
  return;
12950
12950
  }
12951
12951
  break;
12952
12952
  }
12953
12953
  }
12954
- this.insertionMode = g.IN_BODY;
12954
+ this.insertionMode = b.IN_BODY;
12955
12955
  }
12956
12956
  /** @protected */
12957
12957
  _resetInsertionModeForSelect(t) {
@@ -12961,11 +12961,11 @@ class pu {
12961
12961
  if (r === s.TEMPLATE)
12962
12962
  break;
12963
12963
  if (r === s.TABLE) {
12964
- this.insertionMode = g.IN_SELECT_IN_TABLE;
12964
+ this.insertionMode = b.IN_SELECT_IN_TABLE;
12965
12965
  return;
12966
12966
  }
12967
12967
  }
12968
- this.insertionMode = g.IN_SELECT;
12968
+ this.insertionMode = b.IN_SELECT;
12969
12969
  }
12970
12970
  //Foster parenting
12971
12971
  /** @protected */
@@ -13012,62 +13012,62 @@ class pu {
13012
13012
  return;
13013
13013
  }
13014
13014
  switch (this.insertionMode) {
13015
- case g.INITIAL: {
13015
+ case b.INITIAL: {
13016
13016
  Ht(this, t);
13017
13017
  break;
13018
13018
  }
13019
- case g.BEFORE_HTML: {
13019
+ case b.BEFORE_HTML: {
13020
13020
  Wt(this, t);
13021
13021
  break;
13022
13022
  }
13023
- case g.BEFORE_HEAD: {
13023
+ case b.BEFORE_HEAD: {
13024
13024
  jt(this, t);
13025
13025
  break;
13026
13026
  }
13027
- case g.IN_HEAD: {
13027
+ case b.IN_HEAD: {
13028
13028
  $t(this, t);
13029
13029
  break;
13030
13030
  }
13031
- case g.IN_HEAD_NO_SCRIPT: {
13031
+ case b.IN_HEAD_NO_SCRIPT: {
13032
13032
  Gt(this, t);
13033
13033
  break;
13034
13034
  }
13035
- case g.AFTER_HEAD: {
13035
+ case b.AFTER_HEAD: {
13036
13036
  Qt(this, t);
13037
13037
  break;
13038
13038
  }
13039
- case g.IN_BODY:
13040
- case g.IN_CAPTION:
13041
- case g.IN_CELL:
13042
- case g.IN_TEMPLATE: {
13039
+ case b.IN_BODY:
13040
+ case b.IN_CAPTION:
13041
+ case b.IN_CELL:
13042
+ case b.IN_TEMPLATE: {
13043
13043
  us(this, t);
13044
13044
  break;
13045
13045
  }
13046
- case g.TEXT:
13047
- case g.IN_SELECT:
13048
- case g.IN_SELECT_IN_TABLE: {
13046
+ case b.TEXT:
13047
+ case b.IN_SELECT:
13048
+ case b.IN_SELECT_IN_TABLE: {
13049
13049
  this._insertCharacters(t);
13050
13050
  break;
13051
13051
  }
13052
- case g.IN_TABLE:
13053
- case g.IN_TABLE_BODY:
13054
- case g.IN_ROW: {
13052
+ case b.IN_TABLE:
13053
+ case b.IN_TABLE_BODY:
13054
+ case b.IN_ROW: {
13055
13055
  lr(this, t);
13056
13056
  break;
13057
13057
  }
13058
- case g.IN_TABLE_TEXT: {
13058
+ case b.IN_TABLE_TEXT: {
13059
13059
  ds(this, t);
13060
13060
  break;
13061
13061
  }
13062
- case g.IN_COLUMN_GROUP: {
13062
+ case b.IN_COLUMN_GROUP: {
13063
13063
  Sn(this, t);
13064
13064
  break;
13065
13065
  }
13066
- case g.AFTER_BODY: {
13066
+ case b.AFTER_BODY: {
13067
13067
  Ln(this, t);
13068
13068
  break;
13069
13069
  }
13070
- case g.AFTER_AFTER_BODY: {
13070
+ case b.AFTER_AFTER_BODY: {
13071
13071
  An(this, t);
13072
13072
  break;
13073
13073
  }
@@ -13080,49 +13080,49 @@ class pu {
13080
13080
  return;
13081
13081
  }
13082
13082
  switch (this.insertionMode) {
13083
- case g.INITIAL: {
13083
+ case b.INITIAL: {
13084
13084
  Ht(this, t);
13085
13085
  break;
13086
13086
  }
13087
- case g.BEFORE_HTML: {
13087
+ case b.BEFORE_HTML: {
13088
13088
  Wt(this, t);
13089
13089
  break;
13090
13090
  }
13091
- case g.BEFORE_HEAD: {
13091
+ case b.BEFORE_HEAD: {
13092
13092
  jt(this, t);
13093
13093
  break;
13094
13094
  }
13095
- case g.IN_HEAD: {
13095
+ case b.IN_HEAD: {
13096
13096
  $t(this, t);
13097
13097
  break;
13098
13098
  }
13099
- case g.IN_HEAD_NO_SCRIPT: {
13099
+ case b.IN_HEAD_NO_SCRIPT: {
13100
13100
  Gt(this, t);
13101
13101
  break;
13102
13102
  }
13103
- case g.AFTER_HEAD: {
13103
+ case b.AFTER_HEAD: {
13104
13104
  Qt(this, t);
13105
13105
  break;
13106
13106
  }
13107
- case g.TEXT: {
13107
+ case b.TEXT: {
13108
13108
  this._insertCharacters(t);
13109
13109
  break;
13110
13110
  }
13111
- case g.IN_TABLE:
13112
- case g.IN_TABLE_BODY:
13113
- case g.IN_ROW: {
13111
+ case b.IN_TABLE:
13112
+ case b.IN_TABLE_BODY:
13113
+ case b.IN_ROW: {
13114
13114
  lr(this, t);
13115
13115
  break;
13116
13116
  }
13117
- case g.IN_COLUMN_GROUP: {
13117
+ case b.IN_COLUMN_GROUP: {
13118
13118
  Sn(this, t);
13119
13119
  break;
13120
13120
  }
13121
- case g.AFTER_BODY: {
13121
+ case b.AFTER_BODY: {
13122
13122
  Ln(this, t);
13123
13123
  break;
13124
13124
  }
13125
- case g.AFTER_AFTER_BODY: {
13125
+ case b.AFTER_AFTER_BODY: {
13126
13126
  An(this, t);
13127
13127
  break;
13128
13128
  }
@@ -13135,37 +13135,37 @@ class pu {
13135
13135
  return;
13136
13136
  }
13137
13137
  switch (this.insertionMode) {
13138
- case g.INITIAL:
13139
- case g.BEFORE_HTML:
13140
- case g.BEFORE_HEAD:
13141
- case g.IN_HEAD:
13142
- case g.IN_HEAD_NO_SCRIPT:
13143
- case g.AFTER_HEAD:
13144
- case g.IN_BODY:
13145
- case g.IN_TABLE:
13146
- case g.IN_CAPTION:
13147
- case g.IN_COLUMN_GROUP:
13148
- case g.IN_TABLE_BODY:
13149
- case g.IN_ROW:
13150
- case g.IN_CELL:
13151
- case g.IN_SELECT:
13152
- case g.IN_SELECT_IN_TABLE:
13153
- case g.IN_TEMPLATE:
13154
- case g.IN_FRAMESET:
13155
- case g.AFTER_FRAMESET: {
13138
+ case b.INITIAL:
13139
+ case b.BEFORE_HTML:
13140
+ case b.BEFORE_HEAD:
13141
+ case b.IN_HEAD:
13142
+ case b.IN_HEAD_NO_SCRIPT:
13143
+ case b.AFTER_HEAD:
13144
+ case b.IN_BODY:
13145
+ case b.IN_TABLE:
13146
+ case b.IN_CAPTION:
13147
+ case b.IN_COLUMN_GROUP:
13148
+ case b.IN_TABLE_BODY:
13149
+ case b.IN_ROW:
13150
+ case b.IN_CELL:
13151
+ case b.IN_SELECT:
13152
+ case b.IN_SELECT_IN_TABLE:
13153
+ case b.IN_TEMPLATE:
13154
+ case b.IN_FRAMESET:
13155
+ case b.AFTER_FRAMESET: {
13156
13156
  Lr(this, t);
13157
13157
  break;
13158
13158
  }
13159
- case g.IN_TABLE_TEXT: {
13159
+ case b.IN_TABLE_TEXT: {
13160
13160
  Ut(this, t);
13161
13161
  break;
13162
13162
  }
13163
- case g.AFTER_BODY: {
13164
- b1(this, t);
13163
+ case b.AFTER_BODY: {
13164
+ g1(this, t);
13165
13165
  break;
13166
13166
  }
13167
- case g.AFTER_AFTER_BODY:
13168
- case g.AFTER_AFTER_FRAMESET: {
13167
+ case b.AFTER_AFTER_BODY:
13168
+ case b.AFTER_AFTER_FRAMESET: {
13169
13169
  _1(this, t);
13170
13170
  break;
13171
13171
  }
@@ -13174,18 +13174,18 @@ class pu {
13174
13174
  /** @internal */
13175
13175
  onDoctype(t) {
13176
13176
  switch (this.skipNextNewLine = !1, this.insertionMode) {
13177
- case g.INITIAL: {
13177
+ case b.INITIAL: {
13178
13178
  A1(this, t);
13179
13179
  break;
13180
13180
  }
13181
- case g.BEFORE_HEAD:
13182
- case g.IN_HEAD:
13183
- case g.IN_HEAD_NO_SCRIPT:
13184
- case g.AFTER_HEAD: {
13181
+ case b.BEFORE_HEAD:
13182
+ case b.IN_HEAD:
13183
+ case b.IN_HEAD_NO_SCRIPT:
13184
+ case b.AFTER_HEAD: {
13185
13185
  this._err(t, S.misplacedDoctype);
13186
13186
  break;
13187
13187
  }
13188
- case g.IN_TABLE_TEXT: {
13188
+ case b.IN_TABLE_TEXT: {
13189
13189
  Ut(this, t);
13190
13190
  break;
13191
13191
  }
@@ -13212,91 +13212,91 @@ class pu {
13212
13212
  /** @protected */
13213
13213
  _startTagOutsideForeignContent(t) {
13214
13214
  switch (this.insertionMode) {
13215
- case g.INITIAL: {
13215
+ case b.INITIAL: {
13216
13216
  Ht(this, t);
13217
13217
  break;
13218
13218
  }
13219
- case g.BEFORE_HTML: {
13219
+ case b.BEFORE_HTML: {
13220
13220
  k1(this, t);
13221
13221
  break;
13222
13222
  }
13223
- case g.BEFORE_HEAD: {
13223
+ case b.BEFORE_HEAD: {
13224
13224
  I1(this, t);
13225
13225
  break;
13226
13226
  }
13227
- case g.IN_HEAD: {
13227
+ case b.IN_HEAD: {
13228
13228
  Me(this, t);
13229
13229
  break;
13230
13230
  }
13231
- case g.IN_HEAD_NO_SCRIPT: {
13231
+ case b.IN_HEAD_NO_SCRIPT: {
13232
13232
  x1(this, t);
13233
13233
  break;
13234
13234
  }
13235
- case g.AFTER_HEAD: {
13235
+ case b.AFTER_HEAD: {
13236
13236
  L1(this, t);
13237
13237
  break;
13238
13238
  }
13239
- case g.IN_BODY: {
13239
+ case b.IN_BODY: {
13240
13240
  ke(this, t);
13241
13241
  break;
13242
13242
  }
13243
- case g.IN_TABLE: {
13243
+ case b.IN_TABLE: {
13244
13244
  yt(this, t);
13245
13245
  break;
13246
13246
  }
13247
- case g.IN_TABLE_TEXT: {
13247
+ case b.IN_TABLE_TEXT: {
13248
13248
  Ut(this, t);
13249
13249
  break;
13250
13250
  }
13251
- case g.IN_CAPTION: {
13251
+ case b.IN_CAPTION: {
13252
13252
  yp(this, t);
13253
13253
  break;
13254
13254
  }
13255
- case g.IN_COLUMN_GROUP: {
13255
+ case b.IN_COLUMN_GROUP: {
13256
13256
  ni(this, t);
13257
13257
  break;
13258
13258
  }
13259
- case g.IN_TABLE_BODY: {
13259
+ case b.IN_TABLE_BODY: {
13260
13260
  Yn(this, t);
13261
13261
  break;
13262
13262
  }
13263
- case g.IN_ROW: {
13263
+ case b.IN_ROW: {
13264
13264
  qn(this, t);
13265
13265
  break;
13266
13266
  }
13267
- case g.IN_CELL: {
13267
+ case b.IN_CELL: {
13268
13268
  Sp(this, t);
13269
13269
  break;
13270
13270
  }
13271
- case g.IN_SELECT: {
13271
+ case b.IN_SELECT: {
13272
13272
  ms(this, t);
13273
13273
  break;
13274
13274
  }
13275
- case g.IN_SELECT_IN_TABLE: {
13275
+ case b.IN_SELECT_IN_TABLE: {
13276
13276
  Op(this, t);
13277
13277
  break;
13278
13278
  }
13279
- case g.IN_TEMPLATE: {
13279
+ case b.IN_TEMPLATE: {
13280
13280
  Rp(this, t);
13281
13281
  break;
13282
13282
  }
13283
- case g.AFTER_BODY: {
13283
+ case b.AFTER_BODY: {
13284
13284
  Pp(this, t);
13285
13285
  break;
13286
13286
  }
13287
- case g.IN_FRAMESET: {
13287
+ case b.IN_FRAMESET: {
13288
13288
  Mp(this, t);
13289
13289
  break;
13290
13290
  }
13291
- case g.AFTER_FRAMESET: {
13291
+ case b.AFTER_FRAMESET: {
13292
13292
  Bp(this, t);
13293
13293
  break;
13294
13294
  }
13295
- case g.AFTER_AFTER_BODY: {
13295
+ case b.AFTER_AFTER_BODY: {
13296
13296
  Hp(this, t);
13297
13297
  break;
13298
13298
  }
13299
- case g.AFTER_AFTER_FRAMESET: {
13299
+ case b.AFTER_AFTER_FRAMESET: {
13300
13300
  Up(this, t);
13301
13301
  break;
13302
13302
  }
@@ -13309,91 +13309,91 @@ class pu {
13309
13309
  /** @protected */
13310
13310
  _endTagOutsideForeignContent(t) {
13311
13311
  switch (this.insertionMode) {
13312
- case g.INITIAL: {
13312
+ case b.INITIAL: {
13313
13313
  Ht(this, t);
13314
13314
  break;
13315
13315
  }
13316
- case g.BEFORE_HTML: {
13316
+ case b.BEFORE_HTML: {
13317
13317
  C1(this, t);
13318
13318
  break;
13319
13319
  }
13320
- case g.BEFORE_HEAD: {
13320
+ case b.BEFORE_HEAD: {
13321
13321
  y1(this, t);
13322
13322
  break;
13323
13323
  }
13324
- case g.IN_HEAD: {
13324
+ case b.IN_HEAD: {
13325
13325
  N1(this, t);
13326
13326
  break;
13327
13327
  }
13328
- case g.IN_HEAD_NO_SCRIPT: {
13328
+ case b.IN_HEAD_NO_SCRIPT: {
13329
13329
  S1(this, t);
13330
13330
  break;
13331
13331
  }
13332
- case g.AFTER_HEAD: {
13332
+ case b.AFTER_HEAD: {
13333
13333
  O1(this, t);
13334
13334
  break;
13335
13335
  }
13336
- case g.IN_BODY: {
13336
+ case b.IN_BODY: {
13337
13337
  zn(this, t);
13338
13338
  break;
13339
13339
  }
13340
- case g.TEXT: {
13340
+ case b.TEXT: {
13341
13341
  pp(this, t);
13342
13342
  break;
13343
13343
  }
13344
- case g.IN_TABLE: {
13344
+ case b.IN_TABLE: {
13345
13345
  en(this, t);
13346
13346
  break;
13347
13347
  }
13348
- case g.IN_TABLE_TEXT: {
13348
+ case b.IN_TABLE_TEXT: {
13349
13349
  Ut(this, t);
13350
13350
  break;
13351
13351
  }
13352
- case g.IN_CAPTION: {
13352
+ case b.IN_CAPTION: {
13353
13353
  Np(this, t);
13354
13354
  break;
13355
13355
  }
13356
- case g.IN_COLUMN_GROUP: {
13356
+ case b.IN_COLUMN_GROUP: {
13357
13357
  xp(this, t);
13358
13358
  break;
13359
13359
  }
13360
- case g.IN_TABLE_BODY: {
13360
+ case b.IN_TABLE_BODY: {
13361
13361
  Or(this, t);
13362
13362
  break;
13363
13363
  }
13364
- case g.IN_ROW: {
13364
+ case b.IN_ROW: {
13365
13365
  hs(this, t);
13366
13366
  break;
13367
13367
  }
13368
- case g.IN_CELL: {
13368
+ case b.IN_CELL: {
13369
13369
  Lp(this, t);
13370
13370
  break;
13371
13371
  }
13372
- case g.IN_SELECT: {
13372
+ case b.IN_SELECT: {
13373
13373
  ps(this, t);
13374
13374
  break;
13375
13375
  }
13376
- case g.IN_SELECT_IN_TABLE: {
13376
+ case b.IN_SELECT_IN_TABLE: {
13377
13377
  Dp(this, t);
13378
13378
  break;
13379
13379
  }
13380
- case g.IN_TEMPLATE: {
13380
+ case b.IN_TEMPLATE: {
13381
13381
  wp(this, t);
13382
13382
  break;
13383
13383
  }
13384
- case g.AFTER_BODY: {
13384
+ case b.AFTER_BODY: {
13385
13385
  Ts(this, t);
13386
13386
  break;
13387
13387
  }
13388
- case g.IN_FRAMESET: {
13388
+ case b.IN_FRAMESET: {
13389
13389
  Fp(this, t);
13390
13390
  break;
13391
13391
  }
13392
- case g.AFTER_FRAMESET: {
13392
+ case b.AFTER_FRAMESET: {
13393
13393
  vp(this, t);
13394
13394
  break;
13395
13395
  }
13396
- case g.AFTER_AFTER_BODY: {
13396
+ case b.AFTER_AFTER_BODY: {
13397
13397
  An(this, t);
13398
13398
  break;
13399
13399
  }
@@ -13402,59 +13402,59 @@ class pu {
13402
13402
  /** @internal */
13403
13403
  onEof(t) {
13404
13404
  switch (this.insertionMode) {
13405
- case g.INITIAL: {
13405
+ case b.INITIAL: {
13406
13406
  Ht(this, t);
13407
13407
  break;
13408
13408
  }
13409
- case g.BEFORE_HTML: {
13409
+ case b.BEFORE_HTML: {
13410
13410
  Wt(this, t);
13411
13411
  break;
13412
13412
  }
13413
- case g.BEFORE_HEAD: {
13413
+ case b.BEFORE_HEAD: {
13414
13414
  jt(this, t);
13415
13415
  break;
13416
13416
  }
13417
- case g.IN_HEAD: {
13417
+ case b.IN_HEAD: {
13418
13418
  $t(this, t);
13419
13419
  break;
13420
13420
  }
13421
- case g.IN_HEAD_NO_SCRIPT: {
13421
+ case b.IN_HEAD_NO_SCRIPT: {
13422
13422
  Gt(this, t);
13423
13423
  break;
13424
13424
  }
13425
- case g.AFTER_HEAD: {
13425
+ case b.AFTER_HEAD: {
13426
13426
  Qt(this, t);
13427
13427
  break;
13428
13428
  }
13429
- case g.IN_BODY:
13430
- case g.IN_TABLE:
13431
- case g.IN_CAPTION:
13432
- case g.IN_COLUMN_GROUP:
13433
- case g.IN_TABLE_BODY:
13434
- case g.IN_ROW:
13435
- case g.IN_CELL:
13436
- case g.IN_SELECT:
13437
- case g.IN_SELECT_IN_TABLE: {
13429
+ case b.IN_BODY:
13430
+ case b.IN_TABLE:
13431
+ case b.IN_CAPTION:
13432
+ case b.IN_COLUMN_GROUP:
13433
+ case b.IN_TABLE_BODY:
13434
+ case b.IN_ROW:
13435
+ case b.IN_CELL:
13436
+ case b.IN_SELECT:
13437
+ case b.IN_SELECT_IN_TABLE: {
13438
13438
  ls(this, t);
13439
13439
  break;
13440
13440
  }
13441
- case g.TEXT: {
13441
+ case b.TEXT: {
13442
13442
  Ep(this, t);
13443
13443
  break;
13444
13444
  }
13445
- case g.IN_TABLE_TEXT: {
13445
+ case b.IN_TABLE_TEXT: {
13446
13446
  Ut(this, t);
13447
13447
  break;
13448
13448
  }
13449
- case g.IN_TEMPLATE: {
13449
+ case b.IN_TEMPLATE: {
13450
13450
  Es(this, t);
13451
13451
  break;
13452
13452
  }
13453
- case g.AFTER_BODY:
13454
- case g.IN_FRAMESET:
13455
- case g.AFTER_FRAMESET:
13456
- case g.AFTER_AFTER_BODY:
13457
- case g.AFTER_AFTER_FRAMESET: {
13453
+ case b.AFTER_BODY:
13454
+ case b.IN_FRAMESET:
13455
+ case b.AFTER_FRAMESET:
13456
+ case b.AFTER_AFTER_BODY:
13457
+ case b.AFTER_AFTER_FRAMESET: {
13458
13458
  ti(this, t);
13459
13459
  break;
13460
13460
  }
@@ -13472,35 +13472,35 @@ class pu {
13472
13472
  return;
13473
13473
  }
13474
13474
  switch (this.insertionMode) {
13475
- case g.IN_HEAD:
13476
- case g.IN_HEAD_NO_SCRIPT:
13477
- case g.AFTER_HEAD:
13478
- case g.TEXT:
13479
- case g.IN_COLUMN_GROUP:
13480
- case g.IN_SELECT:
13481
- case g.IN_SELECT_IN_TABLE:
13482
- case g.IN_FRAMESET:
13483
- case g.AFTER_FRAMESET: {
13475
+ case b.IN_HEAD:
13476
+ case b.IN_HEAD_NO_SCRIPT:
13477
+ case b.AFTER_HEAD:
13478
+ case b.TEXT:
13479
+ case b.IN_COLUMN_GROUP:
13480
+ case b.IN_SELECT:
13481
+ case b.IN_SELECT_IN_TABLE:
13482
+ case b.IN_FRAMESET:
13483
+ case b.AFTER_FRAMESET: {
13484
13484
  this._insertCharacters(t);
13485
13485
  break;
13486
13486
  }
13487
- case g.IN_BODY:
13488
- case g.IN_CAPTION:
13489
- case g.IN_CELL:
13490
- case g.IN_TEMPLATE:
13491
- case g.AFTER_BODY:
13492
- case g.AFTER_AFTER_BODY:
13493
- case g.AFTER_AFTER_FRAMESET: {
13487
+ case b.IN_BODY:
13488
+ case b.IN_CAPTION:
13489
+ case b.IN_CELL:
13490
+ case b.IN_TEMPLATE:
13491
+ case b.AFTER_BODY:
13492
+ case b.AFTER_AFTER_BODY:
13493
+ case b.AFTER_AFTER_FRAMESET: {
13494
13494
  is(this, t);
13495
13495
  break;
13496
13496
  }
13497
- case g.IN_TABLE:
13498
- case g.IN_TABLE_BODY:
13499
- case g.IN_ROW: {
13497
+ case b.IN_TABLE:
13498
+ case b.IN_TABLE_BODY:
13499
+ case b.IN_ROW: {
13500
13500
  lr(this, t);
13501
13501
  break;
13502
13502
  }
13503
- case g.IN_TABLE_TEXT: {
13503
+ case b.IN_TABLE_TEXT: {
13504
13504
  cs(this, t);
13505
13505
  break;
13506
13506
  }
@@ -13543,7 +13543,7 @@ function T1(e, t, n) {
13543
13543
  i === s.TEMPLATE && u === F.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
13544
13544
  }
13545
13545
  }
13546
- function g1(e, t, n) {
13546
+ function b1(e, t, n) {
13547
13547
  const r = e.treeAdapter.getNamespaceURI(n.element), { token: i } = n, u = e.treeAdapter.createElement(i.tagName, r, i.attrs);
13548
13548
  e._adoptNodes(t, u), e.treeAdapter.appendChild(t, u), e.activeFormattingElements.insertElementAfterBookmark(u, i), e.activeFormattingElements.removeEntry(n), e.openElements.remove(n.element), e.openElements.insertAfter(t, u, i.tagID);
13549
13549
  }
@@ -13557,13 +13557,13 @@ function ei(e, t) {
13557
13557
  break;
13558
13558
  e.activeFormattingElements.bookmark = r;
13559
13559
  const u = p1(e, i, r.element), a = e.openElements.getCommonAncestor(r.element);
13560
- e.treeAdapter.detachNode(u), a && T1(e, a, u), g1(e, i, r);
13560
+ e.treeAdapter.detachNode(u), a && T1(e, a, u), b1(e, i, r);
13561
13561
  }
13562
13562
  }
13563
13563
  function Lr(e, t) {
13564
13564
  e._appendCommentNode(t, e.openElements.currentTmplContentOrNode);
13565
13565
  }
13566
- function b1(e, t) {
13566
+ function g1(e, t) {
13567
13567
  e._appendCommentNode(t, e.openElements.items[0]);
13568
13568
  }
13569
13569
  function _1(e, t) {
@@ -13586,20 +13586,20 @@ function ti(e, t) {
13586
13586
  function A1(e, t) {
13587
13587
  e._setDocumentType(t);
13588
13588
  const n = t.forceQuirks ? De.QUIRKS : Xm(t);
13589
- Km(t) || e._err(t, S.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = g.BEFORE_HTML;
13589
+ Km(t) || e._err(t, S.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = b.BEFORE_HTML;
13590
13590
  }
13591
13591
  function Ht(e, t) {
13592
- e._err(t, S.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, De.QUIRKS), e.insertionMode = g.BEFORE_HTML, e._processToken(t);
13592
+ e._err(t, S.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, De.QUIRKS), e.insertionMode = b.BEFORE_HTML, e._processToken(t);
13593
13593
  }
13594
13594
  function k1(e, t) {
13595
- t.tagID === s.HTML ? (e._insertElement(t, F.HTML), e.insertionMode = g.BEFORE_HEAD) : Wt(e, t);
13595
+ t.tagID === s.HTML ? (e._insertElement(t, F.HTML), e.insertionMode = b.BEFORE_HEAD) : Wt(e, t);
13596
13596
  }
13597
13597
  function C1(e, t) {
13598
13598
  const n = t.tagID;
13599
13599
  (n === s.HTML || n === s.HEAD || n === s.BODY || n === s.BR) && Wt(e, t);
13600
13600
  }
13601
13601
  function Wt(e, t) {
13602
- e._insertFakeRootElement(), e.insertionMode = g.BEFORE_HEAD, e._processToken(t);
13602
+ e._insertFakeRootElement(), e.insertionMode = b.BEFORE_HEAD, e._processToken(t);
13603
13603
  }
13604
13604
  function I1(e, t) {
13605
13605
  switch (t.tagID) {
@@ -13608,7 +13608,7 @@ function I1(e, t) {
13608
13608
  break;
13609
13609
  }
13610
13610
  case s.HEAD: {
13611
- e._insertElement(t, F.HTML), e.headElement = e.openElements.current, e.insertionMode = g.IN_HEAD;
13611
+ e._insertElement(t, F.HTML), e.headElement = e.openElements.current, e.insertionMode = b.IN_HEAD;
13612
13612
  break;
13613
13613
  }
13614
13614
  default:
@@ -13620,7 +13620,7 @@ function y1(e, t) {
13620
13620
  n === s.HEAD || n === s.BODY || n === s.HTML || n === s.BR ? jt(e, t) : e._err(t, S.endTagWithoutMatchingOpenElement);
13621
13621
  }
13622
13622
  function jt(e, t) {
13623
- e._insertFakeElement(y.HEAD, s.HEAD), e.headElement = e.openElements.current, e.insertionMode = g.IN_HEAD, e._processToken(t);
13623
+ e._insertFakeElement(y.HEAD, s.HEAD), e.headElement = e.openElements.current, e.insertionMode = b.IN_HEAD, e._processToken(t);
13624
13624
  }
13625
13625
  function Me(e, t) {
13626
13626
  switch (t.tagID) {
@@ -13641,7 +13641,7 @@ function Me(e, t) {
13641
13641
  break;
13642
13642
  }
13643
13643
  case s.NOSCRIPT: {
13644
- e.options.scriptingEnabled ? e._switchToTextParsing(t, fe.RAWTEXT) : (e._insertElement(t, F.HTML), e.insertionMode = g.IN_HEAD_NO_SCRIPT);
13644
+ e.options.scriptingEnabled ? e._switchToTextParsing(t, fe.RAWTEXT) : (e._insertElement(t, F.HTML), e.insertionMode = b.IN_HEAD_NO_SCRIPT);
13645
13645
  break;
13646
13646
  }
13647
13647
  case s.NOFRAMES:
@@ -13654,7 +13654,7 @@ function Me(e, t) {
13654
13654
  break;
13655
13655
  }
13656
13656
  case s.TEMPLATE: {
13657
- e._insertTemplate(t), e.activeFormattingElements.insertMarker(), e.framesetOk = !1, e.insertionMode = g.IN_TEMPLATE, e.tmplInsertionModeStack.unshift(g.IN_TEMPLATE);
13657
+ e._insertTemplate(t), e.activeFormattingElements.insertMarker(), e.framesetOk = !1, e.insertionMode = b.IN_TEMPLATE, e.tmplInsertionModeStack.unshift(b.IN_TEMPLATE);
13658
13658
  break;
13659
13659
  }
13660
13660
  case s.HEAD: {
@@ -13668,7 +13668,7 @@ function Me(e, t) {
13668
13668
  function N1(e, t) {
13669
13669
  switch (t.tagID) {
13670
13670
  case s.HEAD: {
13671
- e.openElements.pop(), e.insertionMode = g.AFTER_HEAD;
13671
+ e.openElements.pop(), e.insertionMode = b.AFTER_HEAD;
13672
13672
  break;
13673
13673
  }
13674
13674
  case s.BODY:
@@ -13689,7 +13689,7 @@ function mt(e, t) {
13689
13689
  e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== s.TEMPLATE && e._err(t, S.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, S.endTagWithoutMatchingOpenElement);
13690
13690
  }
13691
13691
  function $t(e, t) {
13692
- e.openElements.pop(), e.insertionMode = g.AFTER_HEAD, e._processToken(t);
13692
+ e.openElements.pop(), e.insertionMode = b.AFTER_HEAD, e._processToken(t);
13693
13693
  }
13694
13694
  function x1(e, t) {
13695
13695
  switch (t.tagID) {
@@ -13718,7 +13718,7 @@ function x1(e, t) {
13718
13718
  function S1(e, t) {
13719
13719
  switch (t.tagID) {
13720
13720
  case s.NOSCRIPT: {
13721
- e.openElements.pop(), e.insertionMode = g.IN_HEAD;
13721
+ e.openElements.pop(), e.insertionMode = b.IN_HEAD;
13722
13722
  break;
13723
13723
  }
13724
13724
  case s.BR: {
@@ -13731,7 +13731,7 @@ function S1(e, t) {
13731
13731
  }
13732
13732
  function Gt(e, t) {
13733
13733
  const n = t.type === J.EOF ? S.openElementsLeftAfterEof : S.disallowedContentInNoscriptInHead;
13734
- e._err(t, n), e.openElements.pop(), e.insertionMode = g.IN_HEAD, e._processToken(t);
13734
+ e._err(t, n), e.openElements.pop(), e.insertionMode = b.IN_HEAD, e._processToken(t);
13735
13735
  }
13736
13736
  function L1(e, t) {
13737
13737
  switch (t.tagID) {
@@ -13740,11 +13740,11 @@ function L1(e, t) {
13740
13740
  break;
13741
13741
  }
13742
13742
  case s.BODY: {
13743
- e._insertElement(t, F.HTML), e.framesetOk = !1, e.insertionMode = g.IN_BODY;
13743
+ e._insertElement(t, F.HTML), e.framesetOk = !1, e.insertionMode = b.IN_BODY;
13744
13744
  break;
13745
13745
  }
13746
13746
  case s.FRAMESET: {
13747
- e._insertElement(t, F.HTML), e.insertionMode = g.IN_FRAMESET;
13747
+ e._insertElement(t, F.HTML), e.insertionMode = b.IN_FRAMESET;
13748
13748
  break;
13749
13749
  }
13750
13750
  case s.BASE:
@@ -13785,7 +13785,7 @@ function O1(e, t) {
13785
13785
  }
13786
13786
  }
13787
13787
  function Qt(e, t) {
13788
- e._insertFakeElement(y.BODY, s.BODY), e.insertionMode = g.IN_BODY, Un(e, t);
13788
+ e._insertFakeElement(y.BODY, s.BODY), e.insertionMode = b.IN_BODY, Un(e, t);
13789
13789
  }
13790
13790
  function Un(e, t) {
13791
13791
  switch (t.type) {
@@ -13830,7 +13830,7 @@ function R1(e, t) {
13830
13830
  }
13831
13831
  function w1(e, t) {
13832
13832
  const n = e.openElements.tryPeekProperlyNestedBodyElement();
13833
- e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, F.HTML), e.insertionMode = g.IN_FRAMESET);
13833
+ e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, F.HTML), e.insertionMode = b.IN_FRAMESET);
13834
13834
  }
13835
13835
  function P1(e, t) {
13836
13836
  e.openElements.hasInButtonScope(s.P) && e._closePElement(), e._insertElement(t, F.HTML);
@@ -13879,7 +13879,7 @@ function V1(e, t) {
13879
13879
  e._reconstructActiveFormattingElements(), e._insertElement(t, F.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
13880
13880
  }
13881
13881
  function W1(e, t) {
13882
- e.treeAdapter.getDocumentMode(e.document) !== De.QUIRKS && e.openElements.hasInButtonScope(s.P) && e._closePElement(), e._insertElement(t, F.HTML), e.framesetOk = !1, e.insertionMode = g.IN_TABLE;
13882
+ e.treeAdapter.getDocumentMode(e.document) !== De.QUIRKS && e.openElements.hasInButtonScope(s.P) && e._closePElement(), e._insertElement(t, F.HTML), e.framesetOk = !1, e.insertionMode = b.IN_TABLE;
13883
13883
  }
13884
13884
  function as(e, t) {
13885
13885
  e._reconstructActiveFormattingElements(), e._appendElement(t, F.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
@@ -13901,7 +13901,7 @@ function Q1(e, t) {
13901
13901
  t.tagName = y.IMG, t.tagID = s.IMG, as(e, t);
13902
13902
  }
13903
13903
  function K1(e, t) {
13904
- e._insertElement(t, F.HTML), e.skipNextNewLine = !0, e.tokenizer.state = fe.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = g.TEXT;
13904
+ e._insertElement(t, F.HTML), e.skipNextNewLine = !0, e.tokenizer.state = fe.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = b.TEXT;
13905
13905
  }
13906
13906
  function X1(e, t) {
13907
13907
  e.openElements.hasInButtonScope(s.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, fe.RAWTEXT);
@@ -13913,7 +13913,7 @@ function Eu(e, t) {
13913
13913
  e._switchToTextParsing(t, fe.RAWTEXT);
13914
13914
  }
13915
13915
  function Z1(e, t) {
13916
- e._reconstructActiveFormattingElements(), e._insertElement(t, F.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === g.IN_TABLE || e.insertionMode === g.IN_CAPTION || e.insertionMode === g.IN_TABLE_BODY || e.insertionMode === g.IN_ROW || e.insertionMode === g.IN_CELL ? g.IN_SELECT_IN_TABLE : g.IN_SELECT;
13916
+ e._reconstructActiveFormattingElements(), e._insertElement(t, F.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === b.IN_TABLE || e.insertionMode === b.IN_CAPTION || e.insertionMode === b.IN_TABLE_BODY || e.insertionMode === b.IN_ROW || e.insertionMode === b.IN_CELL ? b.IN_SELECT_IN_TABLE : b.IN_SELECT;
13917
13917
  }
13918
13918
  function ep(e, t) {
13919
13919
  e.openElements.currentTagId === s.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, F.HTML);
@@ -14144,13 +14144,13 @@ function ke(e, t) {
14144
14144
  }
14145
14145
  }
14146
14146
  function up(e, t) {
14147
- if (e.openElements.hasInScope(s.BODY) && (e.insertionMode = g.AFTER_BODY, e.options.sourceCodeLocationInfo)) {
14147
+ if (e.openElements.hasInScope(s.BODY) && (e.insertionMode = b.AFTER_BODY, e.options.sourceCodeLocationInfo)) {
14148
14148
  const n = e.openElements.tryPeekProperlyNestedBodyElement();
14149
14149
  n && e._setEndLocation(n, t);
14150
14150
  }
14151
14151
  }
14152
14152
  function ap(e, t) {
14153
- e.openElements.hasInScope(s.BODY) && (e.insertionMode = g.AFTER_BODY, Ts(e, t));
14153
+ e.openElements.hasInScope(s.BODY) && (e.insertionMode = b.AFTER_BODY, Ts(e, t));
14154
14154
  }
14155
14155
  function sp(e, t) {
14156
14156
  const n = t.tagID;
@@ -14305,7 +14305,7 @@ function Ep(e, t) {
14305
14305
  }
14306
14306
  function lr(e, t) {
14307
14307
  if (e.openElements.currentTagId !== void 0 && rs.has(e.openElements.currentTagId))
14308
- switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = g.IN_TABLE_TEXT, t.type) {
14308
+ switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = b.IN_TABLE_TEXT, t.type) {
14309
14309
  case J.CHARACTER: {
14310
14310
  ds(e, t);
14311
14311
  break;
@@ -14319,19 +14319,19 @@ function lr(e, t) {
14319
14319
  an(e, t);
14320
14320
  }
14321
14321
  function Tp(e, t) {
14322
- e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, F.HTML), e.insertionMode = g.IN_CAPTION;
14323
- }
14324
- function gp(e, t) {
14325
- e.openElements.clearBackToTableContext(), e._insertElement(t, F.HTML), e.insertionMode = g.IN_COLUMN_GROUP;
14322
+ e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, F.HTML), e.insertionMode = b.IN_CAPTION;
14326
14323
  }
14327
14324
  function bp(e, t) {
14328
- e.openElements.clearBackToTableContext(), e._insertFakeElement(y.COLGROUP, s.COLGROUP), e.insertionMode = g.IN_COLUMN_GROUP, ni(e, t);
14325
+ e.openElements.clearBackToTableContext(), e._insertElement(t, F.HTML), e.insertionMode = b.IN_COLUMN_GROUP;
14326
+ }
14327
+ function gp(e, t) {
14328
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(y.COLGROUP, s.COLGROUP), e.insertionMode = b.IN_COLUMN_GROUP, ni(e, t);
14329
14329
  }
14330
14330
  function _p(e, t) {
14331
- e.openElements.clearBackToTableContext(), e._insertElement(t, F.HTML), e.insertionMode = g.IN_TABLE_BODY;
14331
+ e.openElements.clearBackToTableContext(), e._insertElement(t, F.HTML), e.insertionMode = b.IN_TABLE_BODY;
14332
14332
  }
14333
14333
  function Ap(e, t) {
14334
- e.openElements.clearBackToTableContext(), e._insertFakeElement(y.TBODY, s.TBODY), e.insertionMode = g.IN_TABLE_BODY, Yn(e, t);
14334
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(y.TBODY, s.TBODY), e.insertionMode = b.IN_TABLE_BODY, Yn(e, t);
14335
14335
  }
14336
14336
  function kp(e, t) {
14337
14337
  e.openElements.hasInTableScope(s.TABLE) && (e.openElements.popUntilTagNamePopped(s.TABLE), e._resetInsertionMode(), e._processStartTag(t));
@@ -14357,7 +14357,7 @@ function yt(e, t) {
14357
14357
  break;
14358
14358
  }
14359
14359
  case s.COL: {
14360
- bp(e, t);
14360
+ gp(e, t);
14361
14361
  break;
14362
14362
  }
14363
14363
  case s.FORM: {
@@ -14383,7 +14383,7 @@ function yt(e, t) {
14383
14383
  break;
14384
14384
  }
14385
14385
  case s.COLGROUP: {
14386
- gp(e, t);
14386
+ bp(e, t);
14387
14387
  break;
14388
14388
  }
14389
14389
  default:
@@ -14439,14 +14439,14 @@ function Ut(e, t) {
14439
14439
  const fs = /* @__PURE__ */ new Set([s.CAPTION, s.COL, s.COLGROUP, s.TBODY, s.TD, s.TFOOT, s.TH, s.THEAD, s.TR]);
14440
14440
  function yp(e, t) {
14441
14441
  const n = t.tagID;
14442
- fs.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = g.IN_TABLE, yt(e, t)) : ke(e, t);
14442
+ fs.has(n) ? e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = b.IN_TABLE, yt(e, t)) : ke(e, t);
14443
14443
  }
14444
14444
  function Np(e, t) {
14445
14445
  const n = t.tagID;
14446
14446
  switch (n) {
14447
14447
  case s.CAPTION:
14448
14448
  case s.TABLE: {
14449
- e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = g.IN_TABLE, n === s.TABLE && en(e, t));
14449
+ e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = b.IN_TABLE, n === s.TABLE && en(e, t));
14450
14450
  break;
14451
14451
  }
14452
14452
  case s.BODY:
@@ -14485,7 +14485,7 @@ function ni(e, t) {
14485
14485
  function xp(e, t) {
14486
14486
  switch (t.tagID) {
14487
14487
  case s.COLGROUP: {
14488
- e.openElements.currentTagId === s.COLGROUP && (e.openElements.pop(), e.insertionMode = g.IN_TABLE);
14488
+ e.openElements.currentTagId === s.COLGROUP && (e.openElements.pop(), e.insertionMode = b.IN_TABLE);
14489
14489
  break;
14490
14490
  }
14491
14491
  case s.TEMPLATE: {
@@ -14499,17 +14499,17 @@ function xp(e, t) {
14499
14499
  }
14500
14500
  }
14501
14501
  function Sn(e, t) {
14502
- e.openElements.currentTagId === s.COLGROUP && (e.openElements.pop(), e.insertionMode = g.IN_TABLE, e._processToken(t));
14502
+ e.openElements.currentTagId === s.COLGROUP && (e.openElements.pop(), e.insertionMode = b.IN_TABLE, e._processToken(t));
14503
14503
  }
14504
14504
  function Yn(e, t) {
14505
14505
  switch (t.tagID) {
14506
14506
  case s.TR: {
14507
- e.openElements.clearBackToTableBodyContext(), e._insertElement(t, F.HTML), e.insertionMode = g.IN_ROW;
14507
+ e.openElements.clearBackToTableBodyContext(), e._insertElement(t, F.HTML), e.insertionMode = b.IN_ROW;
14508
14508
  break;
14509
14509
  }
14510
14510
  case s.TH:
14511
14511
  case s.TD: {
14512
- e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(y.TR, s.TR), e.insertionMode = g.IN_ROW, qn(e, t);
14512
+ e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(y.TR, s.TR), e.insertionMode = b.IN_ROW, qn(e, t);
14513
14513
  break;
14514
14514
  }
14515
14515
  case s.CAPTION:
@@ -14518,7 +14518,7 @@ function Yn(e, t) {
14518
14518
  case s.TBODY:
14519
14519
  case s.TFOOT:
14520
14520
  case s.THEAD: {
14521
- e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE, yt(e, t));
14521
+ e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE, yt(e, t));
14522
14522
  break;
14523
14523
  }
14524
14524
  default:
@@ -14531,11 +14531,11 @@ function Or(e, t) {
14531
14531
  case s.TBODY:
14532
14532
  case s.TFOOT:
14533
14533
  case s.THEAD: {
14534
- e.openElements.hasInTableScope(n) && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE);
14534
+ e.openElements.hasInTableScope(n) && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE);
14535
14535
  break;
14536
14536
  }
14537
14537
  case s.TABLE: {
14538
- e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE, en(e, t));
14538
+ e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE, en(e, t));
14539
14539
  break;
14540
14540
  }
14541
14541
  case s.BODY:
@@ -14555,7 +14555,7 @@ function qn(e, t) {
14555
14555
  switch (t.tagID) {
14556
14556
  case s.TH:
14557
14557
  case s.TD: {
14558
- e.openElements.clearBackToTableRowContext(), e._insertElement(t, F.HTML), e.insertionMode = g.IN_CELL, e.activeFormattingElements.insertMarker();
14558
+ e.openElements.clearBackToTableRowContext(), e._insertElement(t, F.HTML), e.insertionMode = b.IN_CELL, e.activeFormattingElements.insertMarker();
14559
14559
  break;
14560
14560
  }
14561
14561
  case s.CAPTION:
@@ -14565,7 +14565,7 @@ function qn(e, t) {
14565
14565
  case s.TFOOT:
14566
14566
  case s.THEAD:
14567
14567
  case s.TR: {
14568
- e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE_BODY, Yn(e, t));
14568
+ e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, Yn(e, t));
14569
14569
  break;
14570
14570
  }
14571
14571
  default:
@@ -14575,17 +14575,17 @@ function qn(e, t) {
14575
14575
  function hs(e, t) {
14576
14576
  switch (t.tagID) {
14577
14577
  case s.TR: {
14578
- e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE_BODY);
14578
+ e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY);
14579
14579
  break;
14580
14580
  }
14581
14581
  case s.TABLE: {
14582
- e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE_BODY, Or(e, t));
14582
+ e.openElements.hasInTableScope(s.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, Or(e, t));
14583
14583
  break;
14584
14584
  }
14585
14585
  case s.TBODY:
14586
14586
  case s.TFOOT:
14587
14587
  case s.THEAD: {
14588
- (e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(s.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = g.IN_TABLE_BODY, Or(e, t));
14588
+ (e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(s.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = b.IN_TABLE_BODY, Or(e, t));
14589
14589
  break;
14590
14590
  }
14591
14591
  case s.BODY:
@@ -14609,7 +14609,7 @@ function Lp(e, t) {
14609
14609
  switch (n) {
14610
14610
  case s.TD:
14611
14611
  case s.TH: {
14612
- e.openElements.hasInTableScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = g.IN_ROW);
14612
+ e.openElements.hasInTableScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = b.IN_ROW);
14613
14613
  break;
14614
14614
  }
14615
14615
  case s.TABLE:
@@ -14712,24 +14712,24 @@ function Rp(e, t) {
14712
14712
  case s.TBODY:
14713
14713
  case s.TFOOT:
14714
14714
  case s.THEAD: {
14715
- e.tmplInsertionModeStack[0] = g.IN_TABLE, e.insertionMode = g.IN_TABLE, yt(e, t);
14715
+ e.tmplInsertionModeStack[0] = b.IN_TABLE, e.insertionMode = b.IN_TABLE, yt(e, t);
14716
14716
  break;
14717
14717
  }
14718
14718
  case s.COL: {
14719
- e.tmplInsertionModeStack[0] = g.IN_COLUMN_GROUP, e.insertionMode = g.IN_COLUMN_GROUP, ni(e, t);
14719
+ e.tmplInsertionModeStack[0] = b.IN_COLUMN_GROUP, e.insertionMode = b.IN_COLUMN_GROUP, ni(e, t);
14720
14720
  break;
14721
14721
  }
14722
14722
  case s.TR: {
14723
- e.tmplInsertionModeStack[0] = g.IN_TABLE_BODY, e.insertionMode = g.IN_TABLE_BODY, Yn(e, t);
14723
+ e.tmplInsertionModeStack[0] = b.IN_TABLE_BODY, e.insertionMode = b.IN_TABLE_BODY, Yn(e, t);
14724
14724
  break;
14725
14725
  }
14726
14726
  case s.TD:
14727
14727
  case s.TH: {
14728
- e.tmplInsertionModeStack[0] = g.IN_ROW, e.insertionMode = g.IN_ROW, qn(e, t);
14728
+ e.tmplInsertionModeStack[0] = b.IN_ROW, e.insertionMode = b.IN_ROW, qn(e, t);
14729
14729
  break;
14730
14730
  }
14731
14731
  default:
14732
- e.tmplInsertionModeStack[0] = g.IN_BODY, e.insertionMode = g.IN_BODY, ke(e, t);
14732
+ e.tmplInsertionModeStack[0] = b.IN_BODY, e.insertionMode = b.IN_BODY, ke(e, t);
14733
14733
  }
14734
14734
  }
14735
14735
  function wp(e, t) {
@@ -14744,7 +14744,7 @@ function Pp(e, t) {
14744
14744
  function Ts(e, t) {
14745
14745
  var n;
14746
14746
  if (t.tagID === s.HTML) {
14747
- if (e.fragmentContext || (e.insertionMode = g.AFTER_AFTER_BODY), e.options.sourceCodeLocationInfo && e.openElements.tagIDs[0] === s.HTML) {
14747
+ if (e.fragmentContext || (e.insertionMode = b.AFTER_AFTER_BODY), e.options.sourceCodeLocationInfo && e.openElements.tagIDs[0] === s.HTML) {
14748
14748
  e._setEndLocation(e.openElements.items[0], t);
14749
14749
  const r = e.openElements.items[1];
14750
14750
  r && !(!((n = e.treeAdapter.getNodeSourceCodeLocation(r)) === null || n === void 0) && n.endTag) && e._setEndLocation(r, t);
@@ -14753,7 +14753,7 @@ function Ts(e, t) {
14753
14753
  Ln(e, t);
14754
14754
  }
14755
14755
  function Ln(e, t) {
14756
- e.insertionMode = g.IN_BODY, Un(e, t);
14756
+ e.insertionMode = b.IN_BODY, Un(e, t);
14757
14757
  }
14758
14758
  function Mp(e, t) {
14759
14759
  switch (t.tagID) {
@@ -14776,7 +14776,7 @@ function Mp(e, t) {
14776
14776
  }
14777
14777
  }
14778
14778
  function Fp(e, t) {
14779
- t.tagID === s.FRAMESET && !e.openElements.isRootHtmlElementCurrent() && (e.openElements.pop(), !e.fragmentContext && e.openElements.currentTagId !== s.FRAMESET && (e.insertionMode = g.AFTER_FRAMESET));
14779
+ t.tagID === s.FRAMESET && !e.openElements.isRootHtmlElementCurrent() && (e.openElements.pop(), !e.fragmentContext && e.openElements.currentTagId !== s.FRAMESET && (e.insertionMode = b.AFTER_FRAMESET));
14780
14780
  }
14781
14781
  function Bp(e, t) {
14782
14782
  switch (t.tagID) {
@@ -14791,13 +14791,13 @@ function Bp(e, t) {
14791
14791
  }
14792
14792
  }
14793
14793
  function vp(e, t) {
14794
- t.tagID === s.HTML && (e.insertionMode = g.AFTER_AFTER_FRAMESET);
14794
+ t.tagID === s.HTML && (e.insertionMode = b.AFTER_AFTER_FRAMESET);
14795
14795
  }
14796
14796
  function Hp(e, t) {
14797
14797
  t.tagID === s.HTML ? ke(e, t) : An(e, t);
14798
14798
  }
14799
14799
  function An(e, t) {
14800
- e.insertionMode = g.IN_BODY, Un(e, t);
14800
+ e.insertionMode = b.IN_BODY, Un(e, t);
14801
14801
  }
14802
14802
  function Up(e, t) {
14803
14803
  switch (t.tagID) {
@@ -14817,13 +14817,13 @@ function zp(e, t) {
14817
14817
  function Yp(e, t) {
14818
14818
  e._insertCharacters(t), e.framesetOk = !1;
14819
14819
  }
14820
- function gs(e) {
14820
+ function bs(e) {
14821
14821
  for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== F.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
14822
14822
  e.openElements.pop();
14823
14823
  }
14824
14824
  function qp(e, t) {
14825
14825
  if (i1(t))
14826
- gs(e), e._startTagOutsideForeignContent(t);
14826
+ bs(e), e._startTagOutsideForeignContent(t);
14827
14827
  else {
14828
14828
  const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
14829
14829
  r === F.MATHML ? ts(t) : r === F.SVG && (u1(t), ns(t)), Zr(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
@@ -14831,7 +14831,7 @@ function qp(e, t) {
14831
14831
  }
14832
14832
  function Vp(e, t) {
14833
14833
  if (t.tagID === s.P || t.tagID === s.BR) {
14834
- gs(e), e._endTagOutsideForeignContent(t);
14834
+ bs(e), e._endTagOutsideForeignContent(t);
14835
14835
  return;
14836
14836
  }
14837
14837
  for (let n = e.openElements.stackTop; n > 0; n--) {
@@ -14854,13 +14854,13 @@ const Wp = /<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title
14854
14854
  "mdxJsxTextElement",
14855
14855
  "mdxTextExpression",
14856
14856
  "mdxjsEsm"
14857
- ]), gu = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
14858
- function bs(e, t) {
14857
+ ]), bu = { sourceCodeLocationInfo: !0, scriptingEnabled: !1 };
14858
+ function gs(e, t) {
14859
14859
  const n = nE(e), r = ka("type", {
14860
14860
  handlers: { root: $p, element: Gp, text: Qp, comment: As, doctype: Kp, raw: Jp },
14861
14861
  unknown: Zp
14862
14862
  }), i = {
14863
- parser: n ? new pu(gu) : pu.getFragmentParser(void 0, gu),
14863
+ parser: n ? new pu(bu) : pu.getFragmentParser(void 0, bu),
14864
14864
  handle(o) {
14865
14865
  r(o, i);
14866
14866
  },
@@ -14922,7 +14922,7 @@ function Xp(e, t) {
14922
14922
  if ("children" in e && "children" in n) {
14923
14923
  const r = (
14924
14924
  /** @type {Root} */
14925
- bs({ type: "root", children: e.children }, t.options)
14925
+ gs({ type: "root", children: e.children }, t.options)
14926
14926
  );
14927
14927
  n.children = r.children;
14928
14928
  }
@@ -15051,7 +15051,7 @@ function iE(e) {
15051
15051
  return function(t, n) {
15052
15052
  return (
15053
15053
  /** @type {Root} */
15054
- bs(t, { ...e, file: n })
15054
+ gs(t, { ...e, file: n })
15055
15055
  );
15056
15056
  };
15057
15057
  }
@@ -15350,13 +15350,13 @@ function dE(e, t) {
15350
15350
  for (c in o)
15351
15351
  if (Je.call(o, c)) {
15352
15352
  const f = o[c];
15353
- let d = bu(
15353
+ let d = gu(
15354
15354
  e,
15355
15355
  _u(u, c),
15356
15356
  c,
15357
15357
  f
15358
15358
  );
15359
- d == null && (d = bu(e, _u(a, c), c, f)), d != null && (l[c] = d);
15359
+ d == null && (d = gu(e, _u(a, c), c, f)), d != null && (l[c] = d);
15360
15360
  }
15361
15361
  if (i && Je.call(i, n)) {
15362
15362
  const f = i[n];
@@ -15365,7 +15365,7 @@ function dE(e, t) {
15365
15365
  }
15366
15366
  return l;
15367
15367
  }
15368
- function bu(e, t, n, r) {
15368
+ function gu(e, t, n, r) {
15369
15369
  return t ? Array.isArray(r) ? fE(e, t, n, r) : ys(e, t, n, r) : void 0;
15370
15370
  }
15371
15371
  function fE(e, t, n, r) {
@@ -15479,7 +15479,7 @@ const TE = {
15479
15479
  source: ["src", "type", "srcset", "srcSet", "sizes"]
15480
15480
  }
15481
15481
  };
15482
- function gE(e) {
15482
+ function bE(e) {
15483
15483
  return {
15484
15484
  a: ({ href: t, children: n, ...r }) => EE(t) ? /* @__PURE__ */ w("a", { href: t, target: "_blank", rel: "noopener noreferrer", ...r, children: n }) : /* @__PURE__ */ w("span", { ...r, children: n }),
15485
15485
  img: ({ src: t, alt: n, ...r }) => {
@@ -15518,8 +15518,8 @@ function gE(e) {
15518
15518
  }
15519
15519
  };
15520
15520
  }
15521
- function bE({ markdown: e, className: t, assetBase: n }) {
15522
- const r = He(() => gE(n), [n]);
15521
+ function gE({ markdown: e, className: t, assetBase: n }) {
15522
+ const r = He(() => bE(n), [n]);
15523
15523
  return /* @__PURE__ */ w("div", { className: t ? `ldk-mdv ${t}` : "ldk-mdv", children: /* @__PURE__ */ w(
15524
15524
  Rd,
15525
15525
  {
@@ -15530,7 +15530,7 @@ function bE({ markdown: e, className: t, assetBase: n }) {
15530
15530
  }
15531
15531
  ) });
15532
15532
  }
15533
- const zT = po(bE);
15533
+ const YT = po(gE);
15534
15534
  function kn({ children: e, onClick: t, disabled: n, title: r, type: i = "button", variant: u, size: a }) {
15535
15535
  const o = ["ldk-button", u && `ldk-button--${u}`, a && `ldk-button--${a}`].filter(Boolean).join(" "), l = typeof e == "string" || typeof e == "number";
15536
15536
  return /* @__PURE__ */ w(
@@ -15546,23 +15546,23 @@ function kn({ children: e, onClick: t, disabled: n, title: r, type: i = "button"
15546
15546
  }
15547
15547
  );
15548
15548
  }
15549
- var bt = {}, Au;
15549
+ var gt = {}, Au;
15550
15550
  function _E() {
15551
- if (Au) return bt;
15551
+ if (Au) return gt;
15552
15552
  Au = 1;
15553
15553
  var e = ko;
15554
15554
  if (process.env.NODE_ENV === "production")
15555
- bt.createRoot = e.createRoot, bt.hydrateRoot = e.hydrateRoot;
15555
+ gt.createRoot = e.createRoot, gt.hydrateRoot = e.hydrateRoot;
15556
15556
  else {
15557
15557
  var t = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
15558
- bt.createRoot = function(n, r) {
15558
+ gt.createRoot = function(n, r) {
15559
15559
  t.usingClientEntryPoint = !0;
15560
15560
  try {
15561
15561
  return e.createRoot(n, r);
15562
15562
  } finally {
15563
15563
  t.usingClientEntryPoint = !1;
15564
15564
  }
15565
- }, bt.hydrateRoot = function(n, r, i) {
15565
+ }, gt.hydrateRoot = function(n, r, i) {
15566
15566
  t.usingClientEntryPoint = !0;
15567
15567
  try {
15568
15568
  return e.hydrateRoot(n, r, i);
@@ -15571,7 +15571,7 @@ function _E() {
15571
15571
  }
15572
15572
  };
15573
15573
  }
15574
- return bt;
15574
+ return gt;
15575
15575
  }
15576
15576
  _E();
15577
15577
  const ri = "data-overlay-layer";
@@ -15700,50 +15700,50 @@ function OE(e) {
15700
15700
  let t = e.replace(/[^0-9a-fA-F]/g, "").slice(0, 6);
15701
15701
  return t.length > 0 && (t = "#" + t), t;
15702
15702
  }
15703
- function YT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u }) {
15703
+ function qT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u }) {
15704
15704
  const [a, o] = ae(() => En(t)), [l, c] = ae(t), f = ue(null), d = ue(null), m = ue(null), h = ue(null), E = ue(a), [I, N] = ae(null);
15705
15705
  ie(() => {
15706
15706
  if (e) {
15707
- const b = En(t);
15708
- E.current = b, o(b), c(t);
15707
+ const g = En(t);
15708
+ E.current = g, o(g), c(t);
15709
15709
  }
15710
15710
  }, [t, e]);
15711
- const k = le((b) => {
15712
- const O = OE(b);
15711
+ const k = le((g) => {
15712
+ const O = OE(g);
15713
15713
  if (c(O), /^#[0-9a-fA-F]{6}$/.test(O)) {
15714
15714
  const Y = En(O);
15715
15715
  return E.current = Y, o(Y), O;
15716
15716
  }
15717
15717
  return null;
15718
- }, []), L = le((b) => {
15718
+ }, []), L = le((g) => {
15719
15719
  var W;
15720
15720
  const O = (W = f.current) == null ? void 0 : W.getBoundingClientRect();
15721
15721
  if (!O) return;
15722
- const Y = Math.max(0, Math.min(1, (b.clientX - O.left) / O.width)), X = Math.max(0, Math.min(1, (b.clientY - O.top) / O.height)), D = { ...E.current, s: Y, v: 1 - X };
15722
+ const Y = Math.max(0, Math.min(1, (g.clientX - O.left) / O.width)), X = Math.max(0, Math.min(1, (g.clientY - O.top) / O.height)), D = { ...E.current, s: Y, v: 1 - X };
15723
15723
  E.current = D, o(D), c(dr(D.h, D.s, D.v));
15724
- }, []), x = le((b) => {
15724
+ }, []), x = le((g) => {
15725
15725
  var D;
15726
15726
  const O = (D = d.current) == null ? void 0 : D.getBoundingClientRect();
15727
15727
  if (!O) return;
15728
- const Y = Math.max(0, Math.min(1, (b.clientX - O.left) / O.width)), M = { ...E.current, h: Y * 360 };
15728
+ const Y = Math.max(0, Math.min(1, (g.clientX - O.left) / O.width)), M = { ...E.current, h: Y * 360 };
15729
15729
  E.current = M, o(M), c(dr(M.h, M.s, M.v));
15730
15730
  }, []);
15731
15731
  if (ie(() => {
15732
15732
  if (!e) return;
15733
- const b = () => {
15733
+ const g = () => {
15734
15734
  h.current = null;
15735
15735
  }, O = (Y) => {
15736
15736
  h.current === "sv" ? L(Y) : h.current === "hue" && x(Y);
15737
15737
  };
15738
- return window.addEventListener("mouseup", b), window.addEventListener("mousemove", O), () => {
15739
- window.removeEventListener("mouseup", b), window.removeEventListener("mousemove", O);
15738
+ return window.addEventListener("mouseup", g), window.addEventListener("mousemove", O), () => {
15739
+ window.removeEventListener("mouseup", g), window.removeEventListener("mousemove", O);
15740
15740
  };
15741
15741
  }, [e, L, x]), Dn(() => {
15742
15742
  if (!e || !u) {
15743
15743
  N(null);
15744
15744
  return;
15745
15745
  }
15746
- const b = m.current, O = { width: window.innerWidth, height: window.innerHeight }, Y = b ? cr(u, b.offsetWidth, b.offsetHeight, O) : cr(u, Cu, i != null && i.length ? yu : Iu, O);
15746
+ const g = m.current, O = { width: window.innerWidth, height: window.innerHeight }, Y = g ? cr(u, g.offsetWidth, g.offsetHeight, O) : cr(u, Cu, i != null && i.length ? yu : Iu, O);
15747
15747
  N((X) => X && X.left === Y.left && X.top === Y.top ? X : Y);
15748
15748
  }, [e, u, i]), !e) return null;
15749
15749
  const P = dr(a.h, 1, 1), v = `${Math.round(a.s * 100)}%`, C = `${Math.round((1 - a.v) * 100)}%`, z = `${Math.round(a.h / 360 * 100)}%`, V = u && !I ? cr(
@@ -15760,7 +15760,7 @@ function YT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15760
15760
  ref: m,
15761
15761
  className: "ldk-colorpicker-panel",
15762
15762
  style: u && U ? { left: U.left, top: U.top } : void 0,
15763
- onClick: (b) => b.stopPropagation(),
15763
+ onClick: (g) => g.stopPropagation(),
15764
15764
  children: [
15765
15765
  /* @__PURE__ */ re(
15766
15766
  "div",
@@ -15768,8 +15768,8 @@ function YT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15768
15768
  ref: f,
15769
15769
  className: "ldk-colorpicker-sv",
15770
15770
  style: { background: P },
15771
- onMouseDown: (b) => {
15772
- h.current = "sv", L(b);
15771
+ onMouseDown: (g) => {
15772
+ h.current = "sv", L(g);
15773
15773
  },
15774
15774
  children: [
15775
15775
  /* @__PURE__ */ w("div", { className: "ldk-colorpicker-sv-white" }),
@@ -15783,8 +15783,8 @@ function YT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15783
15783
  {
15784
15784
  ref: d,
15785
15785
  className: "ldk-colorpicker-hue",
15786
- onMouseDown: (b) => {
15787
- h.current = "hue", x(b);
15786
+ onMouseDown: (g) => {
15787
+ h.current = "hue", x(g);
15788
15788
  },
15789
15789
  children: /* @__PURE__ */ w("div", { className: "ldk-colorpicker-hue-cursor", style: { left: z } })
15790
15790
  }
@@ -15797,12 +15797,12 @@ function YT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15797
15797
  className: "ldk-colorpicker-hex",
15798
15798
  type: "text",
15799
15799
  value: l,
15800
- onChange: (b) => {
15801
- const O = k(b.target.value);
15800
+ onChange: (g) => {
15801
+ const O = k(g.target.value);
15802
15802
  O && n(O);
15803
15803
  },
15804
- onKeyDown: (b) => {
15805
- if (b.key === "Enter") {
15804
+ onKeyDown: (g) => {
15805
+ if (g.key === "Enter") {
15806
15806
  const O = k(l);
15807
15807
  O && n(O);
15808
15808
  }
@@ -15814,19 +15814,19 @@ function YT({ open: e, value: t, onChange: n, onClose: r, presets: i, anchor: u
15814
15814
  n(l), r();
15815
15815
  }, children: "OK" })
15816
15816
  ] }),
15817
- i && i.length > 0 && /* @__PURE__ */ w("div", { className: "ldk-colorpicker-presets", children: i.map((b) => /* @__PURE__ */ w(
15817
+ i && i.length > 0 && /* @__PURE__ */ w("div", { className: "ldk-colorpicker-presets", children: i.map((g) => /* @__PURE__ */ w(
15818
15818
  "div",
15819
15819
  {
15820
15820
  className: "ldk-colorpicker-preset",
15821
- style: { background: b },
15822
- "data-hint": b,
15821
+ style: { background: g },
15822
+ "data-hint": g,
15823
15823
  "data-hint-delay": "0",
15824
15824
  onClick: () => {
15825
- const O = En(b);
15826
- E.current = O, o(O), c(b), n(b);
15825
+ const O = En(g);
15826
+ E.current = O, o(O), c(g), n(g);
15827
15827
  }
15828
15828
  },
15829
- b
15829
+ g
15830
15830
  )) })
15831
15831
  ]
15832
15832
  }
@@ -15873,61 +15873,61 @@ function Ss({ containerRef: e, onClose: t, onKeyDown: n, listRef: r, search: i,
15873
15873
  }
15874
15874
  ) });
15875
15875
  }
15876
- function qT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, title: u, className: a, onOpen: o, inputMode: l = "text" }) {
15876
+ function VT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, title: u, className: a, onOpen: o, inputMode: l = "text" }) {
15877
15877
  const { t: c } = We(), [f, d] = ae(!1), [m, h] = ae(e), [E, I] = ae(-1), N = ue(null), k = ue(null), L = ue(null), x = ue(null), P = ue(!1);
15878
15878
  ie(() => {
15879
15879
  P.current || h(e);
15880
15880
  }, [e]);
15881
15881
  const v = m !== e, C = He(() => {
15882
15882
  if (!v) return t;
15883
- const b = m.trim().toLowerCase();
15884
- return b ? t.filter((O) => O.toLowerCase().includes(b)) : t;
15883
+ const g = m.trim().toLowerCase();
15884
+ return g ? t.filter((O) => O.toLowerCase().includes(g)) : t;
15885
15885
  }, [t, m, v]);
15886
15886
  ie(() => {
15887
15887
  E >= C.length && I(Math.max(0, C.length - 1));
15888
15888
  }, [C.length, E]), ie(() => {
15889
15889
  if (!f) return;
15890
15890
  o == null || o();
15891
- const b = C.findIndex((O) => O === e);
15892
- I(b >= 0 ? b : 0);
15891
+ const g = C.findIndex((O) => O === e);
15892
+ I(g >= 0 ? g : 0);
15893
15893
  }, [f]), ie(() => {
15894
15894
  if (!f || !x.current) return;
15895
- const b = x.current.children[E];
15896
- b == null || b.scrollIntoView({ block: "nearest" });
15895
+ const g = x.current.children[E];
15896
+ g == null || g.scrollIntoView({ block: "nearest" });
15897
15897
  }, [E, f]);
15898
15898
  const z = le(
15899
- (b) => {
15900
- const O = b.trim();
15899
+ (g) => {
15900
+ const O = g.trim();
15901
15901
  d(!1), O && (h(O), O !== e && n(O));
15902
15902
  },
15903
15903
  [e, n]
15904
15904
  ), V = le(
15905
- (b) => {
15905
+ (g) => {
15906
15906
  var Y;
15907
15907
  const O = k.current;
15908
15908
  if (O) {
15909
- if ((Y = L.current) != null && Y.contains(b.target)) {
15910
- b.preventDefault(), f ? (d(!1), O.blur()) : (O.focus(), d(!0));
15909
+ if ((Y = L.current) != null && Y.contains(g.target)) {
15910
+ g.preventDefault(), f ? (d(!1), O.blur()) : (O.focus(), d(!0));
15911
15911
  return;
15912
15912
  }
15913
- b.target !== O && (b.preventDefault(), O.focus(), d(!0));
15913
+ g.target !== O && (g.preventDefault(), O.focus(), d(!0));
15914
15914
  }
15915
15915
  },
15916
15916
  [f]
15917
15917
  ), U = le(
15918
- (b) => {
15919
- switch (b.key) {
15918
+ (g) => {
15919
+ switch (g.key) {
15920
15920
  case "ArrowDown":
15921
- b.preventDefault(), d(!0), I((O) => Math.min(O + 1, C.length - 1));
15921
+ g.preventDefault(), d(!0), I((O) => Math.min(O + 1, C.length - 1));
15922
15922
  break;
15923
15923
  case "ArrowUp":
15924
- b.preventDefault(), d(!0), I((O) => Math.max(O - 1, 0));
15924
+ g.preventDefault(), d(!0), I((O) => Math.max(O - 1, 0));
15925
15925
  break;
15926
15926
  case "Enter":
15927
- b.preventDefault(), f && C[E] ? z(C[E]) : z(m);
15927
+ g.preventDefault(), f && C[E] ? z(C[E]) : z(m);
15928
15928
  break;
15929
15929
  case "Escape":
15930
- b.preventDefault(), h(e), d(!1);
15930
+ g.preventDefault(), h(e), d(!1);
15931
15931
  break;
15932
15932
  }
15933
15933
  },
@@ -15958,8 +15958,8 @@ function qT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15958
15958
  onBlur: () => {
15959
15959
  P.current = !1, z(m);
15960
15960
  },
15961
- onChange: (b) => {
15962
- h(b.target.value), d(!0), I(-1);
15961
+ onChange: (g) => {
15962
+ h(g.target.value), d(!0), I(-1);
15963
15963
  },
15964
15964
  onKeyDown: U
15965
15965
  }
@@ -15979,17 +15979,17 @@ function qT({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
15979
15979
  containerRef: N,
15980
15980
  onClose: () => d(!1),
15981
15981
  listRef: x,
15982
- children: C.length === 0 ? /* @__PURE__ */ w("li", { className: "ldk-selectbox-empty", children: c("无匹配项") }) : C.map((b, O) => /* @__PURE__ */ w(
15982
+ children: C.length === 0 ? /* @__PURE__ */ w("li", { className: "ldk-selectbox-empty", children: c("无匹配项") }) : C.map((g, O) => /* @__PURE__ */ w(
15983
15983
  "li",
15984
15984
  {
15985
- className: `ldk-selectbox-item ${O === E ? "ldk-selectbox-item-focus" : ""} ${b === e ? "ldk-selectbox-item-selected" : ""}`,
15985
+ className: `ldk-selectbox-item ${O === E ? "ldk-selectbox-item-focus" : ""} ${g === e ? "ldk-selectbox-item-selected" : ""}`,
15986
15986
  onMouseDown: (Y) => {
15987
- Y.preventDefault(), z(b);
15987
+ Y.preventDefault(), z(g);
15988
15988
  },
15989
15989
  onMouseEnter: () => I(O),
15990
- children: b
15990
+ children: g
15991
15991
  },
15992
- b
15992
+ g
15993
15993
  ))
15994
15994
  }
15995
15995
  )
@@ -16026,7 +16026,7 @@ function Ls(e, t) {
16026
16026
  };
16027
16027
  });
16028
16028
  }
16029
- function VT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i, items: u, variant: a }) {
16029
+ function WT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i, items: u, variant: a }) {
16030
16030
  const o = ue(null), l = ue(/* @__PURE__ */ new Map()), c = ue(null), [f, d] = ae([]), m = He(() => JSON.stringify(n ?? {}), [n]);
16031
16031
  ie(() => {
16032
16032
  var D, W;
@@ -16052,7 +16052,7 @@ function VT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16052
16052
  _ = Ls(Z, G);
16053
16053
  else if (Z && Z.length === 0 && i) {
16054
16054
  const me = i(j.command, n ?? {});
16055
- me && me.length > 0 && (_ = me.map((be) => ({ id: be.id, label: be.label, group: G, checked: be.checked, onSelect: be.onSelect })));
16055
+ me && me.length > 0 && (_ = me.map((ge) => ({ id: ge.id, label: ge.label, group: G, checked: ge.checked, onSelect: ge.onSelect })));
16056
16056
  }
16057
16057
  M.get(G).push({
16058
16058
  id: j.command || j.label || "",
@@ -16087,13 +16087,13 @@ function VT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16087
16087
  }, D = () => r(), W = () => r(), j = (Z) => {
16088
16088
  var me;
16089
16089
  const G = Z.target;
16090
- (((me = o.current) == null ? void 0 : me.contains(G)) ?? !1) || [...l.current.values()].some((be) => be.contains(G)) || r();
16090
+ (((me = o.current) == null ? void 0 : me.contains(G)) ?? !1) || [...l.current.values()].some((ge) => ge.contains(G)) || r();
16091
16091
  };
16092
16092
  return window.addEventListener("keydown", M), window.addEventListener("blur", D), window.addEventListener("wheel", W, !0), a !== "embedded" && window.addEventListener("mousedown", j, !0), () => {
16093
16093
  window.removeEventListener("keydown", M), window.removeEventListener("blur", D), window.removeEventListener("wheel", W, !0), a !== "embedded" && window.removeEventListener("mousedown", j, !0);
16094
16094
  };
16095
16095
  }, [r, E, z, a]);
16096
- const [V, U] = ae(-1), b = ue(/* @__PURE__ */ new Map()), O = He(() => h.filter((M) => !("type" in M)), [h]);
16096
+ const [V, U] = ae(-1), g = ue(/* @__PURE__ */ new Map()), O = He(() => h.filter((M) => !("type" in M)), [h]);
16097
16097
  ie(() => {
16098
16098
  if (!z) return;
16099
16099
  const M = (D) => {
@@ -16106,7 +16106,7 @@ function VT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16106
16106
  const G = O[V];
16107
16107
  if ((W = G == null ? void 0 : G.children) != null && W.length) {
16108
16108
  D.preventDefault();
16109
- const _ = b.current.get(V);
16109
+ const _ = g.current.get(V);
16110
16110
  _ && L(_, G.children, 0);
16111
16111
  }
16112
16112
  } else if (D.key === "ArrowLeft")
@@ -16120,7 +16120,7 @@ function VT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16120
16120
  return window.addEventListener("keydown", M), () => window.removeEventListener("keydown", M);
16121
16121
  }, [O, V, n, r, z, E, L]), ie(() => {
16122
16122
  var M;
16123
- V >= 0 && ((M = b.current.get(V)) == null || M.scrollIntoView({ block: "nearest" }));
16123
+ V >= 0 && ((M = g.current.get(V)) == null || M.scrollIntoView({ block: "nearest" }));
16124
16124
  }, [V]);
16125
16125
  const Y = le(async (M) => {
16126
16126
  var D, W;
@@ -16183,7 +16183,7 @@ function VT({ menuId: e, anchor: t, context: n, onClose: r, resolveChildren: i,
16183
16183
  "div",
16184
16184
  {
16185
16185
  ref: (_) => {
16186
- _ ? b.current.set(W, _) : b.current.delete(W);
16186
+ _ ? g.current.set(W, _) : g.current.delete(W);
16187
16187
  },
16188
16188
  className: `ldk-ctx-item${Z ? " focused" : ""}${G ? " ldk-ctx-item-danger" : ""}`,
16189
16189
  onClick: (_) => {
@@ -16258,19 +16258,19 @@ function Os({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16258
16258
  ), x = He(() => {
16259
16259
  if (!d) return L;
16260
16260
  const U = d.toLowerCase();
16261
- return L.filter((b) => b.label.toLowerCase().includes(U));
16261
+ return L.filter((g) => g.label.toLowerCase().includes(U));
16262
16262
  }, [L, d]), P = He(() => L.find((U) => U.value === e), [L, e]), v = He(() => P ? P.label : e !== "" ? e : i ?? e, [P, e, i]);
16263
16263
  ie(() => {
16264
16264
  h >= x.length && E(Math.max(0, x.length - 1));
16265
16265
  }, [x.length, h]), ie(() => {
16266
- var b, O;
16266
+ var g, O;
16267
16267
  if (!c) {
16268
16268
  m(""), E(-1);
16269
16269
  return;
16270
16270
  }
16271
16271
  o == null || o();
16272
16272
  const U = x.findIndex((Y) => Y.value === e);
16273
- E(U >= 0 ? U : 0), L.length > 8 ? (b = N.current) == null || b.focus() : (O = k.current) == null || O.focus();
16273
+ E(U >= 0 ? U : 0), L.length > 8 ? (g = N.current) == null || g.focus() : (O = k.current) == null || O.focus();
16274
16274
  }, [c]);
16275
16275
  const C = le(
16276
16276
  (U) => {
@@ -16281,10 +16281,10 @@ function Os({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16281
16281
  (U) => {
16282
16282
  switch (U.key) {
16283
16283
  case "ArrowDown":
16284
- U.preventDefault(), E((b) => Math.min(b + 1, x.length - 1));
16284
+ U.preventDefault(), E((g) => Math.min(g + 1, x.length - 1));
16285
16285
  break;
16286
16286
  case "ArrowUp":
16287
- U.preventDefault(), E((b) => Math.max(b - 1, 0));
16287
+ U.preventDefault(), E((g) => Math.max(g - 1, 0));
16288
16288
  break;
16289
16289
  case "Enter":
16290
16290
  U.preventDefault(), x[h] && C(x[h].value);
@@ -16342,12 +16342,12 @@ function Os({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16342
16342
  }
16343
16343
  }
16344
16344
  ) }) : void 0,
16345
- children: x.length === 0 ? /* @__PURE__ */ w("li", { className: "ldk-selectbox-empty", children: l("无匹配项") }) : x.map((U, b) => /* @__PURE__ */ re(
16345
+ children: x.length === 0 ? /* @__PURE__ */ w("li", { className: "ldk-selectbox-empty", children: l("无匹配项") }) : x.map((U, g) => /* @__PURE__ */ re(
16346
16346
  "li",
16347
16347
  {
16348
- className: `ldk-selectbox-item ${b === h ? "ldk-selectbox-item-focus" : ""} ${U.value === e ? "ldk-selectbox-item-selected" : ""}`,
16348
+ className: `ldk-selectbox-item ${g === h ? "ldk-selectbox-item-focus" : ""} ${U.value === e ? "ldk-selectbox-item-selected" : ""}`,
16349
16349
  onClick: () => C(U.value),
16350
- onMouseEnter: () => E(b),
16350
+ onMouseEnter: () => E(g),
16351
16351
  children: [
16352
16352
  U.preview && /* @__PURE__ */ w("span", { className: "ldk-selectbox-swatch", style: { background: U.preview } }),
16353
16353
  U.label
@@ -16362,7 +16362,7 @@ function Os({ value: e, options: t, onChange: n, disabled: r, placeholder: i, ti
16362
16362
  );
16363
16363
  }
16364
16364
  const xu = "followTheme", hr = [];
16365
- function WT({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, placeholder: u, title: a }) {
16365
+ function jT({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, placeholder: u, title: a }) {
16366
16366
  const { t: o, i18n: l } = We(), [c, f] = ae(hr), d = n === "theme.colorways" && r === "colors", [m, h] = ae(void 0);
16367
16367
  ie(() => {
16368
16368
  var x, P, v, C, z;
@@ -16399,18 +16399,18 @@ function WT({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
16399
16399
  ]);
16400
16400
  return;
16401
16401
  }
16402
- const b = r ? C.filter((O) => O.domains.includes(r)) : C;
16402
+ const g = r ? C.filter((O) => O.domains.includes(r)) : C;
16403
16403
  f([
16404
16404
  { value: xu, label: o("跟随主题") },
16405
- ...b.map((O) => ({ value: O.id, label: O.name }))
16405
+ ...g.map((O) => ({ value: O.id, label: O.name }))
16406
16406
  ]);
16407
16407
  return;
16408
16408
  }
16409
- const z = (v = (P = window.linkdesk) == null ? void 0 : P.configuration) == null ? void 0 : v.get, V = z ? await z("app.theme") : "", U = C.find((b) => b.id === V);
16409
+ const z = (v = (P = window.linkdesk) == null ? void 0 : P.configuration) == null ? void 0 : v.get, V = z ? await z("app.theme") : "", U = C.find((g) => g.id === V);
16410
16410
  f(
16411
- U ? U.colorways.map((b) => {
16411
+ U ? U.colorways.map((g) => {
16412
16412
  var O;
16413
- return { value: b.id, label: b.name, preview: ((O = b.preview) == null ? void 0 : O.accent) || void 0 };
16413
+ return { value: g.id, label: g.name, preview: ((O = g.preview) == null ? void 0 : O.accent) || void 0 };
16414
16414
  }) : hr
16415
16415
  );
16416
16416
  } catch {
@@ -16445,7 +16445,7 @@ function WT({ value: e, onChange: t, optionsFrom: n, domain: r, disabled: i, pla
16445
16445
  }
16446
16446
  );
16447
16447
  }
16448
- function jT({ value: e, onChange: t, dialogType: n }) {
16448
+ function $T({ value: e, onChange: t, dialogType: n }) {
16449
16449
  const { t: r } = We(), i = async () => {
16450
16450
  var o;
16451
16451
  const u = (o = window.linkdesk) == null ? void 0 : o.dialog;
@@ -16481,7 +16481,7 @@ function jT({ value: e, onChange: t, dialogType: n }) {
16481
16481
  )
16482
16482
  ] });
16483
16483
  }
16484
- const Cn = "__none__", $T = "followTheme", wE = [
16484
+ const Cn = "__none__", GT = "followTheme", wE = [
16485
16485
  "themePicker",
16486
16486
  "select",
16487
16487
  "accentSource",
@@ -16495,8 +16495,8 @@ const Cn = "__none__", $T = "followTheme", wE = [
16495
16495
  "fontSize",
16496
16496
  "segmented",
16497
16497
  "stringList"
16498
- ], GT = ["readonly", "action", "color"], PE = new Set(wE);
16499
- function QT(e) {
16498
+ ], QT = ["readonly", "action", "color"], PE = new Set(wE);
16499
+ function KT(e) {
16500
16500
  return typeof e == "string" && PE.has(e);
16501
16501
  }
16502
16502
  const Ds = [
@@ -16574,7 +16574,7 @@ function BE(e) {
16574
16574
  };
16575
16575
  }, [e]), t;
16576
16576
  }
16577
- function KT({ value: e, onChange: t, monoOnly: n = !0 }) {
16577
+ function XT({ value: e, onChange: t, monoOnly: n = !0 }) {
16578
16578
  const { t: r } = We(), i = BE(n), u = He(() => n ? i.map((a) => ({ value: a, label: a })) : [
16579
16579
  { value: "", label: r("跟随主题") },
16580
16580
  { value: Cn, label: r("系统字体") },
@@ -16590,7 +16590,7 @@ function KT({ value: e, onChange: t, monoOnly: n = !0 }) {
16590
16590
  }
16591
16591
  );
16592
16592
  }
16593
- function XT({ label: e, children: t }) {
16593
+ function JT({ label: e, children: t }) {
16594
16594
  return /* @__PURE__ */ re("div", { className: "ldk-form-row", children: [
16595
16595
  /* @__PURE__ */ w("label", { children: e }),
16596
16596
  t
@@ -16604,7 +16604,7 @@ function vE(e, t, n, r) {
16604
16604
  const f = c === "bottom" ? u : a, d = Math.max(Qe, n.height - t.height - Qe);
16605
16605
  return { top: Math.min(Math.max(f, Qe), d), left: Math.max(Qe, i), placement: c };
16606
16606
  }
16607
- function JT({ lines: e, title: t, note: n, placement: r = "bottom", openDelayMs: i = 400, children: u }) {
16607
+ function ZT({ lines: e, title: t, note: n, placement: r = "bottom", openDelayMs: i = 400, children: u }) {
16608
16608
  const a = ue(null), o = ue(null), l = ue(void 0), [c, f] = ae(!1), [d, m] = ae({ top: 0, left: 0 }), h = Eo(), E = e.length > 0, I = le(() => {
16609
16609
  window.clearTimeout(l.current), f(!1);
16610
16610
  }, []), N = le(() => {
@@ -16655,12 +16655,12 @@ function JT({ lines: e, title: t, note: n, placement: r = "bottom", openDelayMs:
16655
16655
  }
16656
16656
  ) : /* @__PURE__ */ w(wr, { children: u });
16657
16657
  }
16658
- function ZT({ label: e, command: t, placement: n, openDelayMs: r, children: i }) {
16658
+ function eb({ label: e, command: t, placement: n, openDelayMs: r, children: i }) {
16659
16659
  if (!(e != null && e !== "" || t != null) || !To(i)) return i;
16660
16660
  const a = {};
16661
- return e != null && e !== "" && (a[Nt] = e), t != null && (a[Co] = t), n != null && (a[Io] = n), r != null && (a[Ru] = String(r)), go(i, a);
16661
+ return e != null && e !== "" && (a[Nt] = e), t != null && (a[Co] = t), n != null && (a[Io] = n), r != null && (a[Ru] = String(r)), bo(i, a);
16662
16662
  }
16663
- function eg({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style: a }) {
16663
+ function tb({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style: a }) {
16664
16664
  const { t: o } = We(), l = le(
16665
16665
  (h) => {
16666
16666
  let E = h;
@@ -16673,6 +16673,7 @@ function eg({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style
16673
16673
  "button",
16674
16674
  {
16675
16675
  className: "ldk-number-input-btn",
16676
+ "data-dir": "down",
16676
16677
  onClick: c,
16677
16678
  disabled: d,
16678
16679
  tabIndex: -1,
@@ -16680,24 +16681,28 @@ function eg({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style
16680
16681
  children: "−"
16681
16682
  }
16682
16683
  ),
16683
- /* @__PURE__ */ w(
16684
- "input",
16685
- {
16686
- className: "ldk-input ldk-number-input-field",
16687
- type: "text",
16688
- value: e,
16689
- onChange: (h) => {
16690
- const E = Number(h.target.value);
16691
- isNaN(E) || t(l(E));
16692
- },
16693
- style: { width: 56, textAlign: "center" }
16694
- }
16695
- ),
16696
- u ? /* @__PURE__ */ w("span", { className: "ldk-number-input-unit", children: u }) : null,
16684
+ /* @__PURE__ */ re("div", { className: "ldk-number-input-cell", children: [
16685
+ /* @__PURE__ */ w(
16686
+ "input",
16687
+ {
16688
+ className: "ldk-number-input-field",
16689
+ type: "text",
16690
+ inputMode: "numeric",
16691
+ value: e,
16692
+ "aria-label": o("数值"),
16693
+ onChange: (h) => {
16694
+ const E = Number(h.target.value);
16695
+ isNaN(E) || t(l(E));
16696
+ }
16697
+ }
16698
+ ),
16699
+ u ? /* @__PURE__ */ w("span", { className: "ldk-number-input-unit", children: u }) : null
16700
+ ] }),
16697
16701
  /* @__PURE__ */ w(
16698
16702
  "button",
16699
16703
  {
16700
16704
  className: "ldk-number-input-btn",
16705
+ "data-dir": "up",
16701
16706
  onClick: f,
16702
16707
  disabled: m,
16703
16708
  tabIndex: -1,
@@ -16707,7 +16712,7 @@ function eg({ value: e, onChange: t, min: n, max: r, step: i = 1, unit: u, style
16707
16712
  )
16708
16713
  ] });
16709
16714
  }
16710
- const kt = /* @__PURE__ */ new Map();
16715
+ const HE = 3e3, kt = /* @__PURE__ */ new Map();
16711
16716
  let On = !1;
16712
16717
  function Rs() {
16713
16718
  return typeof document < "u" && document.visibilityState === "hidden";
@@ -16738,13 +16743,13 @@ function Ms() {
16738
16743
  for (const t of kt.values())
16739
16744
  e ? Ps(t) : (ii(t), ws(t));
16740
16745
  }
16741
- function HE() {
16746
+ function UE() {
16742
16747
  On || typeof document > "u" || (document.addEventListener("visibilitychange", Ms), On = !0);
16743
16748
  }
16744
- function UE() {
16749
+ function zE() {
16745
16750
  !On || typeof document > "u" || (document.removeEventListener("visibilitychange", Ms), On = !1);
16746
16751
  }
16747
- function zE(e, t, n = 3e3) {
16752
+ function YE(e, t, n = HE) {
16748
16753
  const [r, i] = ae(null), u = ue(t);
16749
16754
  u.current = t;
16750
16755
  const a = ue(n);
@@ -16764,24 +16769,24 @@ function zE(e, t, n = 3e3) {
16764
16769
  runRef: u,
16765
16770
  subscribers: /* @__PURE__ */ new Set(),
16766
16771
  timer: null
16767
- }, kt.set(e, c), HE()), c.subscribers.add(l), ii(c), ws(c), () => {
16772
+ }, kt.set(e, c), UE()), c.subscribers.add(l), ii(c), ws(c), () => {
16768
16773
  o = !1;
16769
16774
  const f = kt.get(e);
16770
- f && (f.subscribers.delete(l), !(f.subscribers.size > 0) && (Ps(f), kt.delete(e), kt.size === 0 && UE()));
16775
+ f && (f.subscribers.delete(l), !(f.subscribers.size > 0) && (Ps(f), kt.delete(e), kt.size === 0 && zE()));
16771
16776
  };
16772
16777
  }, [e]), r;
16773
16778
  }
16774
- function YE({ value: e, multiline: t, statusCommand: n, runCommand: r, intervalMs: i }) {
16775
- const u = zE(n, r, i), a = n ? u : e;
16779
+ function qE({ value: e, multiline: t, statusCommand: n, runCommand: r, intervalMs: i }) {
16780
+ const u = YE(n, r, i), a = n ? u : e;
16776
16781
  if (!a) return null;
16777
16782
  const o = t || !!n && a.includes(`
16778
16783
  `);
16779
16784
  return /* @__PURE__ */ w("span", { className: `ldk-readonly-text${o ? " multiline" : ""}`, children: a });
16780
16785
  }
16781
- function tg({ children: e }) {
16786
+ function nb({ children: e }) {
16782
16787
  return e == null || e === "" ? null : /* @__PURE__ */ w("div", { className: "ldk-section-subtitle", children: e });
16783
16788
  }
16784
- function ng({ options: e, value: t, onChange: n, ariaLabel: r }) {
16789
+ function rb({ options: e, value: t, onChange: n, ariaLabel: r }) {
16785
16790
  const i = ue([]), u = (a, o) => {
16786
16791
  var f;
16787
16792
  if (!["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"].includes(a.key)) return;
@@ -16814,12 +16819,12 @@ function ng({ options: e, value: t, onChange: n, ariaLabel: r }) {
16814
16819
  );
16815
16820
  }) });
16816
16821
  }
16817
- function qE(e, t) {
16822
+ function VE(e, t) {
16818
16823
  if (!Number.isFinite(e)) return "";
16819
16824
  const n = t === "×" ? e.toFixed(1) : String(Number(e.toFixed(2)));
16820
16825
  return t ? t === "×" ? `${t}${n}` : `${n}${t}` : n;
16821
16826
  }
16822
- function rg({
16827
+ function ib({
16823
16828
  value: e,
16824
16829
  onChange: t,
16825
16830
  min: n = 0,
@@ -16864,10 +16869,10 @@ function rg({
16864
16869
  o && P(-1),
16865
16870
  N,
16866
16871
  o && P(1),
16867
- u !== void 0 && /* @__PURE__ */ w("span", { className: "ldk-slider-value", children: qE(E, u) })
16872
+ u !== void 0 && /* @__PURE__ */ w("span", { className: "ldk-slider-value", children: VE(E, u) })
16868
16873
  ] });
16869
16874
  }
16870
- function ig({
16875
+ function ub({
16871
16876
  value: e,
16872
16877
  onChange: t,
16873
16878
  locked: n = [],
@@ -16949,8 +16954,8 @@ function ig({
16949
16954
  !I && m && /* @__PURE__ */ w("div", { className: "ldk-sle-msg ldk-sle-msg--hint", children: m })
16950
16955
  ] });
16951
16956
  }
16952
- const VE = 6, WE = "color-mix(in srgb, var(--text-secondary) 45%, transparent)";
16953
- function ug({ value: e, onChange: t }) {
16957
+ const WE = 6, jE = "color-mix(in srgb, var(--text-secondary) 45%, transparent)";
16958
+ function ab({ value: e, onChange: t }) {
16954
16959
  const { t: n, i18n: r } = We(), [i, u] = ae([]), [a, o] = ae(0), l = ue([]), c = le((m) => {
16955
16960
  var E, I;
16956
16961
  const h = (I = (E = window.linkdesk) == null ? void 0 : E.theme) == null ? void 0 : I.listRecipes;
@@ -17006,7 +17011,7 @@ function ug({ value: e, onChange: t }) {
17006
17011
  onKeyDown: d,
17007
17012
  children: i.map((m, h) => {
17008
17013
  var L, x;
17009
- const E = m.colorways.length <= 1, I = (L = m.colorways[0]) == null ? void 0 : L.preview, N = (I == null ? void 0 : I.accent) || WE, k = m.id === e;
17014
+ const E = m.colorways.length <= 1, I = (L = m.colorways[0]) == null ? void 0 : L.preview, N = (I == null ? void 0 : I.accent) || jE, k = m.id === e;
17010
17015
  return /* @__PURE__ */ re(
17011
17016
  "button",
17012
17017
  {
@@ -17030,7 +17035,7 @@ function ug({ value: e, onChange: t }) {
17030
17035
  ] })
17031
17036
  ) : (
17032
17037
  // 多配色配方——配色圆点色板(mockup .ldk-theme-picker-preview-dot)
17033
- /* @__PURE__ */ w("span", { className: "ldk-theme-picker-preview-dots", children: m.colorways.slice(0, VE).map((P) => {
17038
+ /* @__PURE__ */ w("span", { className: "ldk-theme-picker-preview-dots", children: m.colorways.slice(0, WE).map((P) => {
17034
17039
  var v;
17035
17040
  return /* @__PURE__ */ w(
17036
17041
  "span",
@@ -17054,7 +17059,7 @@ function ug({ value: e, onChange: t }) {
17054
17059
  }
17055
17060
  );
17056
17061
  }
17057
- function ag({ checked: e, onChange: t, disabled: n }) {
17062
+ function sb({ checked: e, onChange: t, disabled: n }) {
17058
17063
  return /* @__PURE__ */ w(
17059
17064
  "div",
17060
17065
  {
@@ -17070,7 +17075,7 @@ function ag({ checked: e, onChange: t, disabled: n }) {
17070
17075
  function _t() {
17071
17076
  return window.linkdesk;
17072
17077
  }
17073
- const sg = Pr(function({
17078
+ const ob = Pr(function({
17074
17079
  size: t,
17075
17080
  value: n,
17076
17081
  onConfirm: r,
@@ -17085,7 +17090,7 @@ const sg = Pr(function({
17085
17090
  max: m
17086
17091
  }, h) {
17087
17092
  const E = ue(null), [I, N] = ae(n), [k, L] = ae(!0);
17088
- bo(h, () => ({
17093
+ go(h, () => ({
17089
17094
  getValue: () => I
17090
17095
  }), [I]), ie(() => {
17091
17096
  if (!l || !E.current) return;
@@ -17102,8 +17107,8 @@ const sg = Pr(function({
17102
17107
  if (!k) {
17103
17108
  (z = (C = _t().contextKey) == null ? void 0 : C.set) == null || z.call(C, "inputFocus", !1);
17104
17109
  const V = requestAnimationFrame(() => {
17105
- var U, b;
17106
- (b = (U = _t().keybindings) == null ? void 0 : U.setKeybindingCaptureActive) == null || b.call(U, !1);
17110
+ var U, g;
17111
+ (g = (U = _t().keybindings) == null ? void 0 : U.setKeybindingCaptureActive) == null || g.call(U, !1);
17107
17112
  });
17108
17113
  return () => cancelAnimationFrame(V);
17109
17114
  }
@@ -17142,7 +17147,7 @@ const sg = Pr(function({
17142
17147
  spellCheck: !1
17143
17148
  }
17144
17149
  );
17145
- }), jE = `<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
17150
+ }), $E = `<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48">
17146
17151
  <defs>
17147
17152
  <linearGradient id="defBg" x1="0" y1="0" x2="1" y2="1">
17148
17153
  <stop offset="0" stop-color="#3F4A5E"/>
@@ -17160,8 +17165,8 @@ const sg = Pr(function({
17160
17165
  <path d="M24 18.6 L24 27" fill="none" stroke="#F1F5F9" stroke-width="2.9" stroke-linecap="round"/>
17161
17166
  <path d="M17 30 L23 30" fill="none" stroke="#F1F5F9" stroke-width="2.9" stroke-linecap="round"/>
17162
17167
  <path d="M25 30 L31 30" fill="none" stroke="#F1F5F9" stroke-width="2.9" stroke-linecap="round"/>
17163
- </svg>`, $E = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(jE)}`;
17164
- function GE(e, t) {
17168
+ </svg>`, GE = `data:image/svg+xml;charset=utf-8,${encodeURIComponent($E)}`;
17169
+ function QE(e, t) {
17165
17170
  const n = t.icon, r = t.iconSource;
17166
17171
  if (r === "lucide" && n)
17167
17172
  return { lucide: n };
@@ -17178,10 +17183,10 @@ function GE(e, t) {
17178
17183
  }
17179
17184
  return { emoji: "📄" };
17180
17185
  }
17181
- function og(...e) {
17186
+ function lb(...e) {
17182
17187
  for (const t of e) if (t != null && t.marketIcon) return { icon: t.marketIcon, iconSource: t.marketIconSource };
17183
17188
  for (const t of e) if (t != null && t.icon) return { icon: t.icon, iconSource: t.iconSource };
17184
- return { icon: $E, iconSource: "url" };
17189
+ return { icon: GE, iconSource: "url" };
17185
17190
  }
17186
17191
  /**
17187
17192
  * @license lucide-react v1.42.0 - ISC
@@ -17189,18 +17194,18 @@ function og(...e) {
17189
17194
  * This source code is licensed under the ISC license.
17190
17195
  * See the LICENSE file in the root directory of this source tree.
17191
17196
  */
17192
- const QE = (e) => e == null ? void 0 : e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
17197
+ const KE = (e) => e == null ? void 0 : e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
17193
17198
  /**
17194
17199
  * @license lucide-react v1.42.0 - ISC
17195
17200
  *
17196
17201
  * This source code is licensed under the ISC license.
17197
17202
  * See the LICENSE file in the root directory of this source tree.
17198
17203
  */
17199
- function KE(e, t, n = []) {
17204
+ function XE(e, t, n = []) {
17200
17205
  if (t == null)
17201
17206
  throw new Error("[lucide]: iconNode is required when icon name is used");
17202
17207
  return {
17203
- name: QE(e),
17208
+ name: KE(e),
17204
17209
  size: 24,
17205
17210
  node: t,
17206
17211
  ...n.length > 0 ? { aliases: n } : {}
@@ -17212,7 +17217,7 @@ function KE(e, t, n = []) {
17212
17217
  * This source code is licensed under the ISC license.
17213
17218
  * See the LICENSE file in the root directory of this source tree.
17214
17219
  */
17215
- const XE = (e) => {
17220
+ const JE = (e) => {
17216
17221
  let t = "", n = !1;
17217
17222
  for (const r of e) {
17218
17223
  if (r === "-" || r === "_" || r <= " ") {
@@ -17229,8 +17234,8 @@ const XE = (e) => {
17229
17234
  * This source code is licensed under the ISC license.
17230
17235
  * See the LICENSE file in the root directory of this source tree.
17231
17236
  */
17232
- const JE = (e) => {
17233
- const t = XE(e);
17237
+ const ZE = (e) => {
17238
+ const t = JE(e);
17234
17239
  return t.charAt(0).toUpperCase() + t.slice(1);
17235
17240
  };
17236
17241
  /**
@@ -17266,7 +17271,7 @@ const at = {
17266
17271
  function mr(e) {
17267
17272
  return e != null;
17268
17273
  }
17269
- function ZE(e, t = {}) {
17274
+ function eT(e, t = {}) {
17270
17275
  var m, h;
17271
17276
  const n = t.attributeNames ?? {}, r = (E) => n[E] ?? E, i = e.size ?? e.width ?? at.width, u = e.size ?? e.height ?? at.height, a = ((m = e.aliases) == null ? void 0 : m.filter((E) => typeof E == "string" && E.trim() !== "").map((E) => `lucide-${E}`)) ?? [], o = [...e.name ? [`lucide-${e.name}`] : [], ...a], l = ((h = t.className) == null ? void 0 : h.split(" ").filter(Boolean)) ?? [], c = t.includeDefaultClasses === !1 ? Rr(...l) : Rr("lucide", ...o, ...l), f = t.absoluteStrokeWidth ? Number(t.strokeWidth ?? at["stroke-width"]) * Number(e.size ?? e.width ?? at.width) / Number(t.size ?? t.width ?? at.width) : t.strokeWidth ?? at["stroke-width"];
17272
17277
  return [
@@ -17308,8 +17313,8 @@ function ZE(e, t = {}) {
17308
17313
  * This source code is licensed under the ISC license.
17309
17314
  * See the LICENSE file in the root directory of this source tree.
17310
17315
  */
17311
- function eT(e, t = {}) {
17312
- return ZE(e, {
17316
+ function tT(e, t = {}) {
17317
+ return eT(e, {
17313
17318
  ...t,
17314
17319
  attributeNames: {
17315
17320
  ...t.attributeNames,
@@ -17327,12 +17332,12 @@ function eT(e, t = {}) {
17327
17332
  * This source code is licensed under the ISC license.
17328
17333
  * See the LICENSE file in the root directory of this source tree.
17329
17334
  */
17330
- const tT = (e) => {
17335
+ const nT = (e) => {
17331
17336
  for (const t in e)
17332
17337
  if (t.startsWith("aria-") || t === "role" || t === "title")
17333
17338
  return !0;
17334
17339
  return !1;
17335
- }, nT = Ao({}), rT = () => _o(nT), iT = Pr(
17340
+ }, rT = Ao({}), iT = () => _o(rT), uT = Pr(
17336
17341
  ({
17337
17342
  color: e,
17338
17343
  size: t,
@@ -17358,7 +17363,7 @@ const tT = (e) => {
17358
17363
  nonScalingStroke: N = !1,
17359
17364
  color: k = "currentColor",
17360
17365
  className: L = ""
17361
- } = rT() ?? {}, x = !!l || tT(d), [P, v, C = []] = eT(f, {
17366
+ } = iT() ?? {}, x = !!l || nT(d), [P, v, C = []] = tT(f, {
17362
17367
  color: e ?? k,
17363
17368
  width: n ?? t ?? h,
17364
17369
  height: r ?? t ?? h,
@@ -17389,15 +17394,15 @@ const tT = (e) => {
17389
17394
  * See the LICENSE file in the root directory of this source tree.
17390
17395
  */
17391
17396
  function he(e, t = [], n = []) {
17392
- const r = typeof e == "string" ? KE(e, t, n) : e, i = Pr(
17393
- ({ className: u, ...a }, o) => pr(iT, {
17397
+ const r = typeof e == "string" ? XE(e, t, n) : e, i = Pr(
17398
+ ({ className: u, ...a }, o) => pr(uT, {
17394
17399
  ref: o,
17395
17400
  icon: r,
17396
17401
  className: u,
17397
17402
  ...a
17398
17403
  })
17399
17404
  );
17400
- return r.name && (i.displayName = JE(r.name)), i;
17405
+ return r.name && (i.displayName = ZE(r.name)), i;
17401
17406
  }
17402
17407
  /**
17403
17408
  * @license lucide-react v1.42.0 - ISC
@@ -17420,7 +17425,7 @@ const Fs = {
17420
17425
  ]
17421
17426
  };
17422
17427
  Fs.node;
17423
- const uT = he(Fs);
17428
+ const aT = he(Fs);
17424
17429
  /**
17425
17430
  * @license lucide-react v1.42.0 - ISC
17426
17431
  *
@@ -17439,7 +17444,7 @@ const Bs = {
17439
17444
  aliases: ["bar-chart-3"]
17440
17445
  };
17441
17446
  Bs.node;
17442
- const aT = he(Bs);
17447
+ const sT = he(Bs);
17443
17448
  /**
17444
17449
  * @license lucide-react v1.42.0 - ISC
17445
17450
  *
@@ -17456,7 +17461,7 @@ const vs = {
17456
17461
  ]
17457
17462
  };
17458
17463
  vs.node;
17459
- const sT = he(vs);
17464
+ const oT = he(vs);
17460
17465
  /**
17461
17466
  * @license lucide-react v1.42.0 - ISC
17462
17467
  *
@@ -17475,7 +17480,7 @@ const Hs = {
17475
17480
  aliases: ["smile"]
17476
17481
  };
17477
17482
  Hs.node;
17478
- const oT = he(Hs);
17483
+ const lT = he(Hs);
17479
17484
  /**
17480
17485
  * @license lucide-react v1.42.0 - ISC
17481
17486
  *
@@ -17497,7 +17502,7 @@ const Us = {
17497
17502
  ]
17498
17503
  };
17499
17504
  Us.node;
17500
- const lT = he(Us);
17505
+ const cT = he(Us);
17501
17506
  /**
17502
17507
  * @license lucide-react v1.42.0 - ISC
17503
17508
  *
@@ -17518,7 +17523,7 @@ const zs = {
17518
17523
  ]
17519
17524
  };
17520
17525
  zs.node;
17521
- const cT = he(zs);
17526
+ const dT = he(zs);
17522
17527
  /**
17523
17528
  * @license lucide-react v1.42.0 - ISC
17524
17529
  *
@@ -17548,7 +17553,7 @@ const Ys = {
17548
17553
  ]
17549
17554
  };
17550
17555
  Ys.node;
17551
- const dT = he(Ys);
17556
+ const fT = he(Ys);
17552
17557
  /**
17553
17558
  * @license lucide-react v1.42.0 - ISC
17554
17559
  *
@@ -17569,7 +17574,7 @@ const qs = {
17569
17574
  ]
17570
17575
  };
17571
17576
  qs.node;
17572
- const fT = he(qs);
17577
+ const hT = he(qs);
17573
17578
  /**
17574
17579
  * @license lucide-react v1.42.0 - ISC
17575
17580
  *
@@ -17586,7 +17591,7 @@ const Vs = {
17586
17591
  ]
17587
17592
  };
17588
17593
  Vs.node;
17589
- const hT = he(Vs);
17594
+ const mT = he(Vs);
17590
17595
  /**
17591
17596
  * @license lucide-react v1.42.0 - ISC
17592
17597
  *
@@ -17609,7 +17614,7 @@ const Ws = {
17609
17614
  ]
17610
17615
  };
17611
17616
  Ws.node;
17612
- const mT = he(Ws);
17617
+ const pT = he(Ws);
17613
17618
  /**
17614
17619
  * @license lucide-react v1.42.0 - ISC
17615
17620
  *
@@ -17625,7 +17630,7 @@ const js = {
17625
17630
  ]
17626
17631
  };
17627
17632
  js.node;
17628
- const pT = he(js);
17633
+ const ET = he(js);
17629
17634
  /**
17630
17635
  * @license lucide-react v1.42.0 - ISC
17631
17636
  *
@@ -17642,7 +17647,7 @@ const $s = {
17642
17647
  ]
17643
17648
  };
17644
17649
  $s.node;
17645
- const ET = he($s);
17650
+ const TT = he($s);
17646
17651
  /**
17647
17652
  * @license lucide-react v1.42.0 - ISC
17648
17653
  *
@@ -17666,7 +17671,7 @@ const Gs = {
17666
17671
  ]
17667
17672
  };
17668
17673
  Gs.node;
17669
- const TT = he(Gs);
17674
+ const bT = he(Gs);
17670
17675
  /**
17671
17676
  * @license lucide-react v1.42.0 - ISC
17672
17677
  *
@@ -17708,7 +17713,7 @@ const Ks = {
17708
17713
  ]
17709
17714
  };
17710
17715
  Ks.node;
17711
- const bT = he(Ks);
17716
+ const _T = he(Ks);
17712
17717
  /**
17713
17718
  * @license lucide-react v1.42.0 - ISC
17714
17719
  *
@@ -17738,7 +17743,7 @@ const Xs = {
17738
17743
  ]
17739
17744
  };
17740
17745
  Xs.node;
17741
- const _T = he(Xs);
17746
+ const AT = he(Xs);
17742
17747
  /**
17743
17748
  * @license lucide-react v1.42.0 - ISC
17744
17749
  *
@@ -17760,7 +17765,7 @@ const Js = {
17760
17765
  ]
17761
17766
  };
17762
17767
  Js.node;
17763
- const AT = he(Js);
17768
+ const kT = he(Js);
17764
17769
  /**
17765
17770
  * @license lucide-react v1.42.0 - ISC
17766
17771
  *
@@ -17783,7 +17788,7 @@ const Zs = {
17783
17788
  ]
17784
17789
  };
17785
17790
  Zs.node;
17786
- const kT = he(Zs);
17791
+ const CT = he(Zs);
17787
17792
  /**
17788
17793
  * @license lucide-react v1.42.0 - ISC
17789
17794
  *
@@ -17808,7 +17813,7 @@ const eo = {
17808
17813
  aliases: ["stars"]
17809
17814
  };
17810
17815
  eo.node;
17811
- const CT = he(eo);
17816
+ const IT = he(eo);
17812
17817
  /**
17813
17818
  * @license lucide-react v1.42.0 - ISC
17814
17819
  *
@@ -17829,7 +17834,7 @@ const to = {
17829
17834
  ]
17830
17835
  };
17831
17836
  to.node;
17832
- const IT = he(to);
17837
+ const yT = he(to);
17833
17838
  /**
17834
17839
  * @license lucide-react v1.42.0 - ISC
17835
17840
  *
@@ -17850,39 +17855,39 @@ const no = {
17850
17855
  ]
17851
17856
  };
17852
17857
  no.node;
17853
- const yT = he(no), NT = {
17854
- File: lT,
17855
- Folder: fT,
17856
- FolderOpen: cT,
17857
- FolderTree: dT,
17858
- Package: TT,
17859
- ShoppingBag: kT,
17860
- Monitor: ET,
17861
- Settings: AT,
17862
- BookOpen: uT,
17863
- BarChart3: aT,
17864
- Lightbulb: mT,
17865
- Lock: pT,
17866
- Download: sT,
17867
- Globe: hT,
17858
+ const NT = he(no), xT = {
17859
+ File: cT,
17860
+ Folder: hT,
17861
+ FolderOpen: dT,
17862
+ FolderTree: fT,
17863
+ Package: bT,
17864
+ ShoppingBag: CT,
17865
+ Monitor: TT,
17866
+ Settings: kT,
17867
+ BookOpen: aT,
17868
+ BarChart3: sT,
17869
+ Lightbulb: pT,
17870
+ Lock: ET,
17871
+ Download: oT,
17872
+ Globe: mT,
17868
17873
  Plug: gT,
17869
- Puzzle: bT,
17870
- Rocket: _T,
17871
- Smile: oT,
17872
- Sparkles: CT,
17873
- Star: IT,
17874
- Zap: yT
17874
+ Puzzle: _T,
17875
+ Rocket: AT,
17876
+ Smile: lT,
17877
+ Sparkles: IT,
17878
+ Star: yT,
17879
+ Zap: NT
17875
17880
  }, Su = "📄";
17876
- function lg({ pluginId: e, manifest: t, className: n, alt: r = "" }) {
17877
- const i = t ? GE(e, t) : { emoji: Su };
17881
+ function cb({ pluginId: e, manifest: t, className: n, alt: r = "" }) {
17882
+ const i = t ? QE(e, t) : { emoji: Su };
17878
17883
  if (i.lucide) {
17879
- const u = NT[i.lucide];
17884
+ const u = xT[i.lucide];
17880
17885
  if (u)
17881
17886
  return /* @__PURE__ */ w(u, { className: `plugin-icon plugin-icon--lucide ${n ?? ""}` });
17882
17887
  }
17883
17888
  return i.codicon ? /* @__PURE__ */ w("span", { className: `codicon ${i.codicon} plugin-icon plugin-icon--codicon ${n ?? ""}` }) : i.src ? /* @__PURE__ */ w("img", { src: i.src, alt: r, className: `plugin-icon plugin-icon--img ${n ?? ""}`, draggable: !1 }) : /* @__PURE__ */ w("span", { className: `plugin-icon plugin-icon--emoji ${n ?? ""}`, children: i.emoji ?? Su });
17884
17889
  }
17885
- function cg({ onPreview: e, onPin: t, disabled: n, delay: r = 250 }) {
17890
+ function db({ onPreview: e, onPin: t, disabled: n, delay: r = 250 }) {
17886
17891
  const i = ue(null);
17887
17892
  ie(() => () => {
17888
17893
  i.current && clearTimeout(i.current);
@@ -17896,7 +17901,7 @@ function cg({ onPreview: e, onPin: t, disabled: n, delay: r = 250 }) {
17896
17901
  }, [n, t]);
17897
17902
  return { handleMouseDown: u, handleClick: a };
17898
17903
  }
17899
- function dg(e) {
17904
+ function fb(e) {
17900
17905
  const t = ue(e);
17901
17906
  return t.current = e, le((n) => {
17902
17907
  var i, u, a, o, l, c;
@@ -17905,7 +17910,7 @@ function dg(e) {
17905
17910
  return r !== "c" && r !== "x" && r !== "v" ? !1 : (n.preventDefault(), r === "c" ? (u = (i = t.current).onCopy) == null || u.call(i) : r === "x" ? (o = (a = t.current).onCut) == null || o.call(a) : (c = (l = t.current).onPaste) == null || c.call(l), !0);
17906
17911
  }, []);
17907
17912
  }
17908
- function fg(e, t = 150) {
17913
+ function hb(e, t = 150) {
17909
17914
  const [n, r] = ae(""), i = ue(null), u = le(
17910
17915
  (o) => {
17911
17916
  r(o), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
@@ -17920,7 +17925,7 @@ function fg(e, t = 150) {
17920
17925
  i.current && clearTimeout(i.current);
17921
17926
  }, []), { value: n, onChange: u, onClear: a };
17922
17927
  }
17923
- const xT = {
17928
+ const ST = {
17924
17929
  "package.json": "codicon-package",
17925
17930
  "tsconfig.json": "codicon-settings-gear",
17926
17931
  ".gitignore": "codicon-git-ignore",
@@ -17928,7 +17933,7 @@ const xT = {
17928
17933
  LICENSE: "codicon-law",
17929
17934
  ".env": "codicon-symbol-key",
17930
17935
  "docker-compose.yml": "codicon-server-environment"
17931
- }, ST = {
17936
+ }, LT = {
17932
17937
  ".tsx": "codicon-react",
17933
17938
  ".ts": "codicon-symbol-namespace",
17934
17939
  ".json": "codicon-json",
@@ -17957,13 +17962,13 @@ const xT = {
17957
17962
  components: "codicon-folder-library",
17958
17963
  hooks: "codicon-folder-library",
17959
17964
  utils: "codicon-folder-library"
17960
- }, LT = "codicon-file", OT = "codicon-folder", DT = "codicon-folder-opened", Ou = "codicon-root-folder", RT = (e) => ({ kind: "class", className: e });
17961
- function gn(e) {
17965
+ }, OT = "codicon-file", DT = "codicon-folder", RT = "codicon-folder-opened", Ou = "codicon-root-folder", wT = (e) => ({ kind: "class", className: e });
17966
+ function bn(e) {
17962
17967
  const t = {};
17963
17968
  for (const [n, r] of Object.entries(e)) t[n] = { class: r };
17964
17969
  return t;
17965
17970
  }
17966
- class hg {
17971
+ class mb {
17967
17972
  constructor(t) {
17968
17973
  Fe(this, "_fileMap");
17969
17974
  Fe(this, "_extMap");
@@ -17975,28 +17980,28 @@ class hg {
17975
17980
  Fe(this, "_defaultFolderOpen");
17976
17981
  Fe(this, "_defaultRoot");
17977
17982
  Fe(this, "_defaultRootOpen");
17978
- this._fileMap = { ...gn(xT), ...t == null ? void 0 : t.files }, this._extMap = { ...gn(ST), ...t == null ? void 0 : t.extensions }, this._folderMap = { ...gn(Lu), ...t == null ? void 0 : t.folders }, this._folderOpenMap = { ...gn(Lu), ...t == null ? void 0 : t.foldersExpanded }, this._defaultFile = t == null ? void 0 : t.file, this._defaultFolder = t == null ? void 0 : t.folder, this._defaultFolderOpen = t == null ? void 0 : t.folderExpanded, this._defaultRoot = t == null ? void 0 : t.rootFolder, this._defaultRootOpen = t == null ? void 0 : t.rootFolderExpanded;
17983
+ this._fileMap = { ...bn(ST), ...t == null ? void 0 : t.files }, this._extMap = { ...bn(LT), ...t == null ? void 0 : t.extensions }, this._folderMap = { ...bn(Lu), ...t == null ? void 0 : t.folders }, this._folderOpenMap = { ...bn(Lu), ...t == null ? void 0 : t.foldersExpanded }, this._defaultFile = t == null ? void 0 : t.file, this._defaultFolder = t == null ? void 0 : t.folder, this._defaultFolderOpen = t == null ? void 0 : t.folderExpanded, this._defaultRoot = t == null ? void 0 : t.rootFolder, this._defaultRootOpen = t == null ? void 0 : t.rootFolderExpanded;
17979
17984
  }
17980
17985
  /** 解析映射条目 → 渲染描述符(glyph → class / image → 壳解析好的 linkdesk:// url) */
17981
17986
  resolve(t, n) {
17982
- return t ? "imagePath" in t ? { kind: "image", url: t.imagePath } : { kind: "class", className: t.class, color: t.color } : RT(n);
17987
+ return t ? "imagePath" in t ? { kind: "image", url: t.imagePath } : { kind: "class", className: t.class, color: t.color } : wT(n);
17983
17988
  }
17984
17989
  /** 文件图标——按文件名解析(E6#69g:tab 传路径基名即可) */
17985
17990
  getFileIcon(t) {
17986
17991
  return this.resolve(
17987
17992
  this._fileMap[t] ?? this._extMap[this._getExt(t)] ?? this._defaultFile,
17988
- LT
17993
+ OT
17989
17994
  );
17990
17995
  }
17991
17996
  /** 文件夹图标 */
17992
17997
  getFolderIcon(t, n) {
17993
- return n ? this.resolve(this._defaultRoot, Ou) : this.resolve(this._folderMap[t] ?? this._defaultFolder, OT);
17998
+ return n ? this.resolve(this._defaultRoot, Ou) : this.resolve(this._folderMap[t] ?? this._defaultFolder, DT);
17994
17999
  }
17995
18000
  /** 获取展开状态的文件夹图标 */
17996
18001
  getFolderIconOpened(t, n) {
17997
18002
  return n ? this.resolve(this._defaultRootOpen ?? this._defaultRoot, Ou) : this.resolve(
17998
18003
  this._folderOpenMap[t] ?? this._folderMap[t] ?? this._defaultFolderOpen ?? this._defaultFolder,
17999
- DT
18004
+ RT
18000
18005
  );
18001
18006
  }
18002
18007
  _getExt(t) {
@@ -18004,7 +18009,7 @@ class hg {
18004
18009
  return n > 0 ? t.slice(n) : "";
18005
18010
  }
18006
18011
  }
18007
- function mg(e, t) {
18012
+ function pb(e, t) {
18008
18013
  const n = t - e;
18009
18014
  return !Number.isInteger(e) || !Number.isInteger(t) || n <= 2 ? 0.01 : 1;
18010
18015
  }
@@ -18012,11 +18017,11 @@ function Du(e) {
18012
18017
  const t = /^https?:\/\/(?:github\.com|raw\.githubusercontent\.com)\/([^/]+)\/([^/?#]+)/i.exec(e.trim());
18013
18018
  return t ? `${t[1].toLowerCase()}/${t[2].toLowerCase()}` : null;
18014
18019
  }
18015
- const wT = /^(#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})\b|rgba?\(|hsla?\()/i;
18016
- function pg(e) {
18017
- return wT.test(e) ? { label: e, color: e } : { label: e.split(",")[0].trim().replace(/^["']|["']$/g, "") };
18020
+ const PT = /^(#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})\b|rgba?\(|hsla?\()/i;
18021
+ function Eb(e) {
18022
+ return PT.test(e) ? { label: e, color: e } : { label: e.split(",")[0].trim().replace(/^["']|["']$/g, "") };
18018
18023
  }
18019
- function Eg(e, t) {
18024
+ function Tb(e, t) {
18020
18025
  const n = Array.isArray(e.default) ? e.default.filter((a) => typeof a == "string") : [], r = Array.isArray(t) ? t : Array.isArray(e.default) ? e.default : [], i = /* @__PURE__ */ new Set();
18021
18026
  for (const a of n) {
18022
18027
  const o = Du(a);
@@ -18029,7 +18034,7 @@ function Eg(e, t) {
18029
18034
  });
18030
18035
  return { locked: n, editable: u };
18031
18036
  }
18032
- function Tg({ value: e, onChange: t, onPick: n, onImport: r }) {
18037
+ function bb({ value: e, onChange: t, onPick: n, onImport: r }) {
18033
18038
  const { t: i } = We(), [u, a] = ae(!1), o = async () => {
18034
18039
  a(!0);
18035
18040
  try {
@@ -18050,74 +18055,74 @@ function Tg({ value: e, onChange: t, onPick: n, onImport: r }) {
18050
18055
  /* @__PURE__ */ w("span", { className: "ldk-image-picker__path", "data-hint": l, "data-hint-delay": "0", children: l })
18051
18056
  ] });
18052
18057
  }
18053
- function gg({ label: e, value: t, color: n }) {
18058
+ function gb({ label: e, value: t, color: n }) {
18054
18059
  return t ? /* @__PURE__ */ re("span", { className: "ldk-effective-badge", children: [
18055
18060
  e ? /* @__PURE__ */ w("span", { className: "ldk-effective-badge-label", children: e }) : null,
18056
18061
  n ? /* @__PURE__ */ w("span", { className: "ldk-effective-swatch", style: { background: n }, "aria-hidden": "true" }) : null,
18057
- /* @__PURE__ */ w("span", { className: "ldk-effective-badge-value", children: /* @__PURE__ */ w(YE, { value: t }) })
18062
+ /* @__PURE__ */ w("span", { className: "ldk-effective-badge-value", children: /* @__PURE__ */ w(qE, { value: t }) })
18058
18063
  ] }) : null;
18059
18064
  }
18060
- const PT = {
18065
+ const MT = {
18061
18066
  user: "codicon-edit",
18062
18067
  mix: "codicon-arrow-swap"
18063
18068
  };
18064
- function bg({ source: e, label: t }) {
18069
+ function _b({ source: e, label: t }) {
18065
18070
  const n = { [Nt]: t };
18066
18071
  return /* @__PURE__ */ re("span", { className: `ldk-source-badge ldk-source-badge--${e}`, ...n, children: [
18067
- /* @__PURE__ */ w("span", { className: `codicon ${PT[e]}`, "aria-hidden": "true" }),
18072
+ /* @__PURE__ */ w("span", { className: `codicon ${MT[e]}`, "aria-hidden": "true" }),
18068
18073
  t
18069
18074
  ] });
18070
18075
  }
18071
- function _g({ halves: e }) {
18076
+ function Ab({ halves: e }) {
18072
18077
  return /* @__PURE__ */ w("span", { className: "ldk-segment-preview", "aria-hidden": "true", children: e.map((t, n) => /* @__PURE__ */ w("span", { className: `ldk-segment-preview__half ldk-segment-preview__half--${t}`, children: "Aa" }, n)) });
18073
18078
  }
18074
- function Ag({ variant: e }) {
18079
+ function kb({ variant: e }) {
18075
18080
  return /* @__PURE__ */ w("span", { className: `ldk-segment-preview ldk-segment-preview--${e}`, "aria-hidden": "true" });
18076
18081
  }
18077
18082
  export {
18078
- Tg as BackgroundImagePicker,
18079
- UT as Badge,
18083
+ bb as BackgroundImagePicker,
18084
+ zT as Badge,
18080
18085
  kn as Button,
18081
18086
  Cn as CONFIG_NONE_SENTINEL,
18082
- YT as ColorPicker,
18083
- qT as Combobox,
18084
- VT as ContextMenu,
18085
- $E as DEFAULT_PLUGIN_IDENTITY_URI,
18086
- WT as DynamicSelect,
18087
- gg as EffectiveBadge,
18088
- hg as FileIconResolver,
18089
- jT as FilePathInput,
18090
- KT as FontFamilySelect,
18091
- XT as FormRow,
18092
- JT as HintCard,
18093
- ZT as HintTip,
18094
- sg as InlineInput,
18095
- $T as MIX_FOLLOW_THEME_SENTINEL,
18096
- zT as MarkdownView,
18097
- eg as NumberInput,
18087
+ qT as ColorPicker,
18088
+ VT as Combobox,
18089
+ WT as ContextMenu,
18090
+ GE as DEFAULT_PLUGIN_IDENTITY_URI,
18091
+ jT as DynamicSelect,
18092
+ gb as EffectiveBadge,
18093
+ mb as FileIconResolver,
18094
+ $T as FilePathInput,
18095
+ XT as FontFamilySelect,
18096
+ JT as FormRow,
18097
+ ZT as HintCard,
18098
+ eb as HintTip,
18099
+ ob as InlineInput,
18100
+ GT as MIX_FOLLOW_THEME_SENTINEL,
18101
+ YT as MarkdownView,
18102
+ tb as NumberInput,
18098
18103
  Vn as OverlayPortal,
18099
- lg as PluginIcon,
18100
- YE as ReadOnlyText,
18101
- GT as SETTINGS_RENDER_HINTS,
18104
+ cb as PluginIcon,
18105
+ qE as ReadOnlyText,
18106
+ QT as SETTINGS_RENDER_HINTS,
18102
18107
  wE as SETTINGS_UI_HINTS,
18103
- tg as SectionSubtitle,
18104
- Ag as SegmentPreviewSwatch,
18105
- _g as SegmentPreviewText,
18106
- ng as SegmentedRadio,
18108
+ nb as SectionSubtitle,
18109
+ kb as SegmentPreviewSwatch,
18110
+ Ab as SegmentPreviewText,
18111
+ rb as SegmentedRadio,
18107
18112
  Os as SelectBox,
18108
- rg as Slider,
18109
- bg as SourceBadge,
18110
- ig as StringListEditor,
18111
- ug as ThemePicker,
18112
- ag as Toggle,
18113
- pg as formatEffectiveValue,
18114
- mg as inferSliderStep,
18115
- QT as isSettingsUiHint,
18116
- og as pickIdentityArt,
18117
- Eg as splitStringList,
18113
+ ib as Slider,
18114
+ _b as SourceBadge,
18115
+ ub as StringListEditor,
18116
+ ab as ThemePicker,
18117
+ sb as Toggle,
18118
+ Eb as formatEffectiveValue,
18119
+ pb as inferSliderStep,
18120
+ KT as isSettingsUiHint,
18121
+ lb as pickIdentityArt,
18122
+ Tb as splitStringList,
18118
18123
  Du as urlSourceKey,
18119
- cg as useClickPreview,
18120
- dg as useClipboardKeys,
18121
- fg as useDebouncedInput,
18122
- zE as useStatusPolling
18124
+ db as useClickPreview,
18125
+ fb as useClipboardKeys,
18126
+ hb as useDebouncedInput,
18127
+ YE as useStatusPolling
18123
18128
  };