flow-mindmap 0.4.4 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  var Dr = Object.defineProperty;
2
2
  var Pr = (e, n, t) => n in e ? Dr(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var Ue = (e, n, t) => Pr(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { defineComponent as Et, openBlock as m, createElementBlock as y, Fragment as ie, createElementVNode as u, createStaticVNode as at, createCommentVNode as G, ref as q, reactive as gn, onMounted as ei, onBeforeUnmount as sn, computed as ue, withModifiers as he, normalizeStyle as qe, createVNode as de, toDisplayString as se, normalizeClass as _e, watch as ht, nextTick as je, unref as ge, renderList as et, withDirectives as kt, vModelText as Ot, withKeys as Ln, createBlock as eo, Transition as Gi, withCtx as pn, renderSlot as ki, resolveComponent as Br, vShow as Do, createTextVNode as dn } from "vue";
4
+ import { defineComponent as Et, openBlock as m, createElementBlock as y, Fragment as ie, createElementVNode as u, createStaticVNode as at, createCommentVNode as G, ref as q, reactive as gn, onMounted as ei, onBeforeUnmount as sn, computed as ue, withModifiers as me, normalizeStyle as je, createVNode as de, toDisplayString as se, normalizeClass as _e, watch as ht, nextTick as Xe, unref as pe, renderList as et, withDirectives as kt, vModelText as Ot, withKeys as Qn, createBlock as eo, Transition as Gi, withCtx as pn, renderSlot as ki, resolveComponent as Br, vShow as Do, createTextVNode as dn } from "vue";
5
5
  const Ur = ["width", "height", "stroke-width"], Hr = {
6
6
  key: 4,
7
7
  points: "6 9 12 15 18 9"
8
8
  }, Fr = {
9
9
  key: 5,
10
10
  points: "9 6 15 12 9 18"
11
- }, Le = /* @__PURE__ */ Et({
11
+ }, ze = /* @__PURE__ */ Et({
12
12
  __name: "Icon",
13
13
  props: {
14
14
  name: {},
@@ -302,7 +302,7 @@ function ao(e, n = 14) {
302
302
  function Vr(e, n = 14) {
303
303
  return Math.round(Gr[zi(e)] * n / 14);
304
304
  }
305
- const xi = 60, Dn = 14, xt = 24;
305
+ const xi = 60, Ln = 14, xt = 24;
306
306
  let ji = null;
307
307
  function Xr() {
308
308
  if (ji) return ji;
@@ -399,23 +399,23 @@ function rl(e, n, t = !1) {
399
399
  function Ai(e, n, t, i, o = !1) {
400
400
  if (e.children.length === 0) return;
401
401
  const r = e.children.reduce(
402
- (f, g, v) => f + g._subtreeH + (v > 0 ? Dn : 0),
402
+ (f, g, v) => f + g._subtreeH + (v > 0 ? Ln : 0),
403
403
  0
404
404
  ), a = n === "right" ? 1 : -1, d = i ? a : 1;
405
405
  let c = e.y - d * r / 2;
406
406
  e.children.forEach((f) => {
407
- o || (f.x = e.x + a * (e.width / 2 + t + f.width / 2), f.y = c + d * f._subtreeH / 2), f._dir = n, c += d * (f._subtreeH + Dn), Ai(f, n, t, !1, o);
407
+ o || (f.x = e.x + a * (e.width / 2 + t + f.width / 2), f.y = c + d * f._subtreeH / 2), f._dir = n, c += d * (f._subtreeH + Ln), Ai(f, n, t, !1, o);
408
408
  });
409
409
  }
410
410
  function As(e, n, t = !1) {
411
411
  if (e.children.length === 0) return;
412
412
  const i = e.children.reduce(
413
- (r, a, d) => r + a._subtreeW + (d > 0 ? Dn * 2 : 0),
413
+ (r, a, d) => r + a._subtreeW + (d > 0 ? Ln * 2 : 0),
414
414
  0
415
415
  );
416
416
  let o = e.x - i / 2;
417
417
  e.children.forEach((r) => {
418
- t || (r.x = o + r._subtreeW / 2, r.y = e.y + e.height / 2 + n + r.height / 2), r._dir = "down", o += r._subtreeW + Dn * 2, As(r, n, t);
418
+ t || (r.x = o + r._subtreeW / 2, r.y = e.y + e.height / 2 + n + r.height / 2), r._dir = "down", o += r._subtreeW + Ln * 2, As(r, n, t);
419
419
  });
420
420
  }
421
421
  function Ns(e, n, t, i, o, r, a, d) {
@@ -467,7 +467,7 @@ function ll(e) {
467
467
  let o = 0, r = 0;
468
468
  for (const a of i.children)
469
469
  o += a._subtreeH, r += a._subtreeW;
470
- i.children.length > 1 && (o += Dn * (i.children.length - 1), r += Dn * 2 * (i.children.length - 1)), i._subtreeH = Math.max(i.height, o), i._subtreeW = Math.max(i.width, r);
470
+ i.children.length > 1 && (o += Ln * (i.children.length - 1), r += Ln * 2 * (i.children.length - 1)), i._subtreeH = Math.max(i.height, o), i._subtreeW = Math.max(i.width, r);
471
471
  }
472
472
  }
473
473
  function al(e, n = !1) {
@@ -1169,15 +1169,15 @@ const Tl = /* @__PURE__ */ Et({
1169
1169
  }
1170
1170
  return (w, S) => (m(), y("div", {
1171
1171
  class: "zm-node-menu",
1172
- style: qe({ left: o.value.left + "px", top: o.value.top + "px" }),
1173
- onContextmenu: S[10] || (S[10] = he(() => {
1172
+ style: je({ left: o.value.left + "px", top: o.value.top + "px" }),
1173
+ onContextmenu: S[10] || (S[10] = me(() => {
1174
1174
  }, ["prevent"]))
1175
1175
  }, [
1176
1176
  u("button", {
1177
1177
  class: "zm-node-menu-item",
1178
- onClick: S[0] || (S[0] = he((x) => v(() => i("pickImage")), ["stop"]))
1178
+ onClick: S[0] || (S[0] = me((x) => v(() => i("pickImage")), ["stop"]))
1179
1179
  }, [
1180
- de(Le, {
1180
+ de(ze, {
1181
1181
  name: "image",
1182
1182
  size: 13
1183
1183
  }),
@@ -1186,9 +1186,9 @@ const Tl = /* @__PURE__ */ Et({
1186
1186
  r.value ? (m(), y("button", {
1187
1187
  key: 0,
1188
1188
  class: "zm-node-menu-item",
1189
- onClick: S[1] || (S[1] = he((x) => v(() => i("removeImage")), ["stop"]))
1189
+ onClick: S[1] || (S[1] = me((x) => v(() => i("removeImage")), ["stop"]))
1190
1190
  }, [
1191
- de(Le, {
1191
+ de(ze, {
1192
1192
  name: "x",
1193
1193
  size: 13
1194
1194
  }),
@@ -1196,9 +1196,9 @@ const Tl = /* @__PURE__ */ Et({
1196
1196
  ])) : G("", !0),
1197
1197
  u("button", {
1198
1198
  class: "zm-node-menu-item",
1199
- onClick: S[2] || (S[2] = he((x) => v(() => i("setLink")), ["stop"]))
1199
+ onClick: S[2] || (S[2] = me((x) => v(() => i("setLink")), ["stop"]))
1200
1200
  }, [
1201
- de(Le, {
1201
+ de(ze, {
1202
1202
  name: "link",
1203
1203
  size: 13
1204
1204
  }),
@@ -1207,9 +1207,9 @@ const Tl = /* @__PURE__ */ Et({
1207
1207
  a.value ? (m(), y("button", {
1208
1208
  key: 1,
1209
1209
  class: "zm-node-menu-item",
1210
- onClick: S[3] || (S[3] = he((x) => v(() => i("removeLink")), ["stop"]))
1210
+ onClick: S[3] || (S[3] = me((x) => v(() => i("removeLink")), ["stop"]))
1211
1211
  }, [
1212
- de(Le, {
1212
+ de(ze, {
1213
1213
  name: "x",
1214
1214
  size: 13
1215
1215
  }),
@@ -1217,7 +1217,7 @@ const Tl = /* @__PURE__ */ Et({
1217
1217
  ])) : G("", !0),
1218
1218
  u("button", {
1219
1219
  class: "zm-node-menu-item",
1220
- onClick: S[4] || (S[4] = he((x) => v(() => i("addCode")), ["stop"]))
1220
+ onClick: S[4] || (S[4] = me((x) => v(() => i("addCode")), ["stop"]))
1221
1221
  }, [
1222
1222
  S[13] || (S[13] = u("span", {
1223
1223
  class: "zm-node-menu-icon zm-node-menu-icon-code",
@@ -1228,9 +1228,9 @@ const Tl = /* @__PURE__ */ Et({
1228
1228
  e.hasCode ? (m(), y("button", {
1229
1229
  key: 2,
1230
1230
  class: "zm-node-menu-item",
1231
- onClick: S[5] || (S[5] = he((x) => v(() => i("removeCode")), ["stop"]))
1231
+ onClick: S[5] || (S[5] = me((x) => v(() => i("removeCode")), ["stop"]))
1232
1232
  }, [
1233
- de(Le, {
1233
+ de(ze, {
1234
1234
  name: "x",
1235
1235
  size: 13
1236
1236
  }),
@@ -1238,7 +1238,7 @@ const Tl = /* @__PURE__ */ Et({
1238
1238
  ])) : G("", !0),
1239
1239
  u("button", {
1240
1240
  class: "zm-node-menu-item",
1241
- onClick: S[6] || (S[6] = he((x) => v(() => i("addTable")), ["stop"]))
1241
+ onClick: S[6] || (S[6] = me((x) => v(() => i("addTable")), ["stop"]))
1242
1242
  }, [
1243
1243
  S[15] || (S[15] = u("span", {
1244
1244
  class: "zm-node-menu-icon zm-node-menu-icon-table",
@@ -1249,9 +1249,9 @@ const Tl = /* @__PURE__ */ Et({
1249
1249
  e.hasTable ? (m(), y("button", {
1250
1250
  key: 3,
1251
1251
  class: "zm-node-menu-item",
1252
- onClick: S[7] || (S[7] = he((x) => v(() => i("removeTable")), ["stop"]))
1252
+ onClick: S[7] || (S[7] = me((x) => v(() => i("removeTable")), ["stop"]))
1253
1253
  }, [
1254
- de(Le, {
1254
+ de(ze, {
1255
1255
  name: "x",
1256
1256
  size: 13
1257
1257
  }),
@@ -1259,9 +1259,9 @@ const Tl = /* @__PURE__ */ Et({
1259
1259
  ])) : G("", !0),
1260
1260
  u("button", {
1261
1261
  class: "zm-node-menu-item",
1262
- onClick: S[8] || (S[8] = he((x) => v(() => i("editNote")), ["stop"]))
1262
+ onClick: S[8] || (S[8] = me((x) => v(() => i("editNote")), ["stop"]))
1263
1263
  }, [
1264
- de(Le, {
1264
+ de(ze, {
1265
1265
  name: "note",
1266
1266
  size: 13
1267
1267
  }),
@@ -1270,9 +1270,9 @@ const Tl = /* @__PURE__ */ Et({
1270
1270
  d.value ? (m(), y("button", {
1271
1271
  key: 4,
1272
1272
  class: "zm-node-menu-item",
1273
- onClick: S[9] || (S[9] = he((x) => v(() => i("removeNote")), ["stop"]))
1273
+ onClick: S[9] || (S[9] = me((x) => v(() => i("removeNote")), ["stop"]))
1274
1274
  }, [
1275
- de(Le, {
1275
+ de(ze, {
1276
1276
  name: "x",
1277
1277
  size: 13
1278
1278
  }),
@@ -1336,15 +1336,15 @@ const Tl = /* @__PURE__ */ Et({
1336
1336
  }
1337
1337
  return (N, E) => (m(), y("div", {
1338
1338
  class: "zm-canvas-menu",
1339
- style: qe({ left: o.value.left + "px", top: o.value.top + "px" }),
1340
- onContextmenu: E[5] || (E[5] = he(() => {
1339
+ style: je({ left: o.value.left + "px", top: o.value.top + "px" }),
1340
+ onContextmenu: E[5] || (E[5] = me(() => {
1341
1341
  }, ["prevent"]))
1342
1342
  }, [
1343
1343
  u("button", {
1344
1344
  class: "zm-canvas-menu-item",
1345
- onClick: E[0] || (E[0] = he((h) => D(() => i("openData")), ["stop"]))
1345
+ onClick: E[0] || (E[0] = me((h) => D(() => i("openData")), ["stop"]))
1346
1346
  }, [
1347
- de(Le, {
1347
+ de(ze, {
1348
1348
  name: "data",
1349
1349
  size: 13
1350
1350
  }),
@@ -1357,7 +1357,7 @@ const Tl = /* @__PURE__ */ Et({
1357
1357
  onMouseenter: g,
1358
1358
  onMouseleave: v
1359
1359
  }, [
1360
- de(Le, {
1360
+ de(ze, {
1361
1361
  name: "import",
1362
1362
  size: 13
1363
1363
  }),
@@ -1379,15 +1379,15 @@ const Tl = /* @__PURE__ */ Et({
1379
1379
  r.value ? (m(), y("div", {
1380
1380
  key: 0,
1381
1381
  class: "zm-canvas-submenu",
1382
- style: qe(d.value),
1382
+ style: je(d.value),
1383
1383
  onMouseenter: g,
1384
1384
  onMouseleave: v
1385
1385
  }, [
1386
1386
  u("button", {
1387
1387
  class: "zm-canvas-menu-item",
1388
- onClick: E[1] || (E[1] = he((h) => D(() => i("openImport", "markdown")), ["stop"]))
1388
+ onClick: E[1] || (E[1] = me((h) => D(() => i("openImport", "markdown")), ["stop"]))
1389
1389
  }, [
1390
- de(Le, {
1390
+ de(ze, {
1391
1391
  name: "markdown",
1392
1392
  size: 13
1393
1393
  }),
@@ -1395,9 +1395,9 @@ const Tl = /* @__PURE__ */ Et({
1395
1395
  ]),
1396
1396
  u("button", {
1397
1397
  class: "zm-canvas-menu-item",
1398
- onClick: E[2] || (E[2] = he((h) => D(() => i("openImport", "json")), ["stop"]))
1398
+ onClick: E[2] || (E[2] = me((h) => D(() => i("openImport", "json")), ["stop"]))
1399
1399
  }, [
1400
- de(Le, {
1400
+ de(ze, {
1401
1401
  name: "data",
1402
1402
  size: 13
1403
1403
  }),
@@ -1405,9 +1405,9 @@ const Tl = /* @__PURE__ */ Et({
1405
1405
  ]),
1406
1406
  u("button", {
1407
1407
  class: "zm-canvas-menu-item",
1408
- onClick: E[3] || (E[3] = he((h) => D(() => i("openImport", "txt")), ["stop"]))
1408
+ onClick: E[3] || (E[3] = me((h) => D(() => i("openImport", "txt")), ["stop"]))
1409
1409
  }, [
1410
- de(Le, {
1410
+ de(ze, {
1411
1411
  name: "note",
1412
1412
  size: 13
1413
1413
  }),
@@ -1417,9 +1417,9 @@ const Tl = /* @__PURE__ */ Et({
1417
1417
  ], 34),
1418
1418
  u("button", {
1419
1419
  class: "zm-canvas-menu-item",
1420
- onClick: E[4] || (E[4] = he((h) => D(() => i("openSettings")), ["stop"]))
1420
+ onClick: E[4] || (E[4] = me((h) => D(() => i("openSettings")), ["stop"]))
1421
1421
  }, [
1422
- de(Le, {
1422
+ de(ze, {
1423
1423
  name: "settings",
1424
1424
  size: 13
1425
1425
  }),
@@ -1919,7 +1919,7 @@ const Go = {}, hn = (e) => {
1919
1919
  console.error(e);
1920
1920
  }, jo = (e, ...n) => {
1921
1921
  console.log(`WARN: ${e}`, ...n);
1922
- }, Cn = (e, n) => {
1922
+ }, _n = (e, n) => {
1923
1923
  Go[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), Go[`${e}/${n}`] = !0);
1924
1924
  }, Ri = new Error();
1925
1925
  function Fs(e, n, { key: t }) {
@@ -2106,7 +2106,7 @@ const qi = zs, qo = on, Ko = Symbol("nomatch"), ya = 7, Gs = function(e) {
2106
2106
  }
2107
2107
  function g(T, W, B) {
2108
2108
  let J = "", ye = "";
2109
- typeof W == "object" ? (J = T, B = W.ignoreIllegals, ye = W.language) : (Cn("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Cn("10.7.0", `Please use highlight(code, options) instead.
2109
+ typeof W == "object" ? (J = T, B = W.ignoreIllegals, ye = W.language) : (_n("10.7.0", "highlight(lang, code, ...args) has been deprecated."), _n("10.7.0", `Please use highlight(code, options) instead.
2110
2110
  https://github.com/highlightjs/highlight.js/issues/2277`), ye = T, J = W), B === void 0 && (B = !0);
2111
2111
  const Re = {
2112
2112
  code: J,
@@ -2181,7 +2181,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ye = T, J = W), B ===
2181
2181
  function fe(j, Z) {
2182
2182
  return j.scope && typeof j.scope == "string" && Be.openNode(tt.classNameAliases[j.scope] || j.scope), j.beginScope && (j.beginScope._wrap ? ($(Ie, tt.classNameAliases[j.beginScope._wrap] || j.beginScope._wrap), Ie = "") : j.beginScope._multi && (O(j.beginScope, Z), Ie = "")), oe = Object.create(j, { parent: { value: oe } }), oe;
2183
2183
  }
2184
- function me(j, Z, be) {
2184
+ function ge(j, Z, be) {
2185
2185
  let Ce = Ll(j.endRe, be);
2186
2186
  if (Ce) {
2187
2187
  if (j["on:end"]) {
@@ -2195,7 +2195,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ye = T, J = W), B ===
2195
2195
  }
2196
2196
  }
2197
2197
  if (j.endsWithParent)
2198
- return me(j.parent, Z, be);
2198
+ return ge(j.parent, Z, be);
2199
2199
  }
2200
2200
  function U(j) {
2201
2201
  return oe.matcher.regexIndex === 0 ? (Ie += j[0], 1) : (zt = !0, 0);
@@ -2208,7 +2208,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ye = T, J = W), B ===
2208
2208
  return be.skip ? Ie += Z : (be.excludeBegin && (Ie += Z), Fe(), !be.returnBegin && !be.excludeBegin && (Ie = Z)), fe(be, j), be.returnBegin ? 0 : Z.length;
2209
2209
  }
2210
2210
  function we(j) {
2211
- const Z = j[0], be = W.substring(j.index), Ce = me(oe, j, be);
2211
+ const Z = j[0], be = W.substring(j.index), Ce = ge(oe, j, be);
2212
2212
  if (!Ce)
2213
2213
  return Ko;
2214
2214
  const Ge = oe;
@@ -2224,19 +2224,19 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ye = T, J = W), B ===
2224
2224
  Z.scope && j.unshift(Z.scope);
2225
2225
  j.forEach((Z) => Be.openNode(Z));
2226
2226
  }
2227
- let Xe = {};
2227
+ let Ye = {};
2228
2228
  function ot(j, Z) {
2229
2229
  const be = Z && Z[0];
2230
2230
  if (Ie += j, be == null)
2231
2231
  return Fe(), 0;
2232
- if (Xe.type === "begin" && Z.type === "end" && Xe.index === Z.index && be === "") {
2232
+ if (Ye.type === "begin" && Z.type === "end" && Ye.index === Z.index && be === "") {
2233
2233
  if (Ie += W.slice(Z.index, Z.index + 1), !o) {
2234
2234
  const Ce = new Error(`0 width match regex (${T})`);
2235
- throw Ce.languageName = T, Ce.badRule = Xe.rule, Ce;
2235
+ throw Ce.languageName = T, Ce.badRule = Ye.rule, Ce;
2236
2236
  }
2237
2237
  return 1;
2238
2238
  }
2239
- if (Xe = Z, Z.type === "begin")
2239
+ if (Ye = Z, Z.type === "begin")
2240
2240
  return _(Z);
2241
2241
  if (Z.type === "illegal" && !B) {
2242
2242
  const Ce = new Error('Illegal lexeme "' + be + '" for mode "' + (oe.scope || "<unnamed>") + '"');
@@ -2375,10 +2375,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ye = T, J = W), B ===
2375
2375
  d = qo(d, T);
2376
2376
  }
2377
2377
  const E = () => {
2378
- R(), Cn("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
2378
+ R(), _n("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
2379
2379
  };
2380
2380
  function h() {
2381
- R(), Cn("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
2381
+ R(), _n("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
2382
2382
  }
2383
2383
  let A = !1;
2384
2384
  function R() {
@@ -2449,7 +2449,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ye = T, J = W), B ===
2449
2449
  });
2450
2450
  }
2451
2451
  function F(T) {
2452
- return Cn("10.7.0", "highlightBlock will be removed entirely in v12.0"), Cn("10.7.0", "Please use highlightElement now."), D(T);
2452
+ return _n("10.7.0", "highlightBlock will be removed entirely in v12.0"), _n("10.7.0", "Please use highlightElement now."), D(T);
2453
2453
  }
2454
2454
  Object.assign(e, {
2455
2455
  highlight: g,
@@ -2484,11 +2484,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), ye = T, J = W), B ===
2484
2484
  for (const T in wi)
2485
2485
  typeof wi[T] == "object" && Is(wi[T]);
2486
2486
  return Object.assign(e, wi), e;
2487
- }, Pn = Gs({});
2488
- Pn.newInstance = () => Gs({});
2489
- var ka = Pn;
2490
- Pn.HighlightJS = Pn;
2491
- Pn.default = Pn;
2487
+ }, $n = Gs({});
2488
+ $n.newInstance = () => Gs({});
2489
+ var ka = $n;
2490
+ $n.HighlightJS = $n;
2491
+ $n.default = $n;
2492
2492
  const to = /* @__PURE__ */ Cl(ka);
2493
2493
  function Ki(e) {
2494
2494
  const n = e.regex, t = {}, i = {
@@ -3932,18 +3932,18 @@ function Yo(e) {
3932
3932
  ]
3933
3933
  };
3934
3934
  }
3935
- var In = "[0-9](_*[0-9])*", Ei = `\\.(${In})`, Si = "[0-9a-fA-F](_*[0-9a-fA-F])*", Vo = {
3935
+ var On = "[0-9](_*[0-9])*", Ei = `\\.(${On})`, Si = "[0-9a-fA-F](_*[0-9a-fA-F])*", Vo = {
3936
3936
  className: "number",
3937
3937
  variants: [
3938
3938
  // DecimalFloatingPointLiteral
3939
3939
  // including ExponentPart
3940
- { begin: `(\\b(${In})((${Ei})|\\.)?|(${Ei}))[eE][+-]?(${In})[fFdD]?\\b` },
3940
+ { begin: `(\\b(${On})((${Ei})|\\.)?|(${Ei}))[eE][+-]?(${On})[fFdD]?\\b` },
3941
3941
  // excluding ExponentPart
3942
- { begin: `\\b(${In})((${Ei})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
3942
+ { begin: `\\b(${On})((${Ei})[fFdD]?\\b|\\.([fFdD]\\b)?)` },
3943
3943
  { begin: `(${Ei})[fFdD]?\\b` },
3944
- { begin: `\\b(${In})[fFdD]\\b` },
3944
+ { begin: `\\b(${On})[fFdD]\\b` },
3945
3945
  // HexadecimalFloatingPointLiteral
3946
- { begin: `\\b0[xX]((${Si})\\.?|(${Si})?\\.(${Si}))[pP][+-]?(${In})[fFdD]?\\b` },
3946
+ { begin: `\\b0[xX]((${Si})\\.?|(${Si})?\\.(${Si}))[pP][+-]?(${On})[fFdD]?\\b` },
3947
3947
  // DecimalIntegerLiteral
3948
3948
  { begin: "\\b(0|[1-9](_*[0-9])*)[lL]?\\b" },
3949
3949
  // HexIntegerLiteral
@@ -7561,7 +7561,7 @@ function no(e) {
7561
7561
  return /^(`{3,}|~{3,})/.test(n[0] ?? "") && n.shift(), /^(`{3,}|~{3,})\s*$/.test(n[n.length - 1] ?? "") && n.pop(), n.join(`
7562
7562
  `).replace(/\n+$/, "");
7563
7563
  }
7564
- function $n(e) {
7564
+ function zn(e) {
7565
7565
  const n = /^(`{3,}|~{3,})([^\s`~]*)/.exec(e.split(`
7566
7566
  `)[0] ?? ""), t = ((n == null ? void 0 : n[2]) ?? "").toLowerCase();
7567
7567
  return t && go[t] ? t : "";
@@ -7603,7 +7603,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
7603
7603
  }, Xa = {
7604
7604
  key: 2,
7605
7605
  class: "zm-text"
7606
- }, Za = { class: "zm-text-label" }, Ja = ["href", "title"], Qa = ["title", "onClick"], ec = ["title"], tc = ["title", "onClick"], nc = ["onClick"], ic = ["onMousedown"], oc = ["onClick"], sc = ["title"], rc = { class: "zm-tb-tip zm-tb-zoom" }, lc = ["src"], ac = ["src"], cn = 24, An = 400, tn = 160, mo = /* @__PURE__ */ Et({
7606
+ }, Za = { class: "zm-text-label" }, Ja = ["href", "title"], Qa = ["title", "onClick"], ec = ["title"], tc = ["title", "onClick"], nc = ["onClick"], ic = ["onMousedown"], oc = ["onClick"], sc = ["title"], rc = { class: "zm-tb-tip zm-tb-zoom" }, lc = ["src"], ac = ["src"], cn = 24, Cn = 400, tn = 160, mo = /* @__PURE__ */ Et({
7607
7607
  __name: "MindMap",
7608
7608
  props: {
7609
7609
  data: {},
@@ -7626,7 +7626,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
7626
7626
  }
7627
7627
  C.value = !0;
7628
7628
  const l = ti(s || "");
7629
- b = !0, h.value = jt(l), c.value = null, f.value = /* @__PURE__ */ new Set(), Ae(), je(() => {
7629
+ b = !0, h.value = jt(l), c.value = null, f.value = /* @__PURE__ */ new Set(), Ae(), Xe(() => {
7630
7630
  b = !1, Wt();
7631
7631
  });
7632
7632
  }
@@ -7651,8 +7651,8 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
7651
7651
  src: l.src,
7652
7652
  naturalW: l.naturalW,
7653
7653
  naturalH: l.naturalH,
7654
- width: F(l.width, cn, An),
7655
- height: F(l.height, cn, An)
7654
+ width: F(l.width, cn, Cn),
7655
+ height: F(l.height, cn, Cn)
7656
7656
  }, Pe(), Ae(), o("change", h.value));
7657
7657
  }
7658
7658
  function Y(s) {
@@ -7673,7 +7673,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
7673
7673
  const X = I.naturalWidth && I.naturalHeight ? I.naturalWidth / I.naturalHeight : 1, ce = F(
7674
7674
  I.naturalWidth || tn,
7675
7675
  cn,
7676
- An
7676
+ Cn
7677
7677
  ), $e = Math.round(ce / X);
7678
7678
  H.image = {
7679
7679
  src: k,
@@ -7694,7 +7694,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
7694
7694
  if (typeof k.result != "string") return;
7695
7695
  const P = k.result, I = new window.Image();
7696
7696
  I.onload = () => {
7697
- const H = I.naturalWidth || tn, X = I.naturalHeight || tn, ce = F(H, cn, tn), $e = F(Math.round(X * ce / H), cn, An);
7697
+ const H = I.naturalWidth || tn, X = I.naturalHeight || tn, ce = F(H, cn, tn), $e = F(Math.round(X * ce / H), cn, Cn);
7698
7698
  l({ src: P, naturalW: H, naturalH: X, width: ce, height: $e });
7699
7699
  }, I.onerror = () => {
7700
7700
  l({ src: P, naturalW: tn, naturalH: tn, width: tn, height: tn });
@@ -7731,7 +7731,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
7731
7731
  function fe(s, l) {
7732
7732
  i.previewMode || (s.preventDefault(), s.stopPropagation(), Fe.value = null, c.value = l.id, o("select", Se(h.value, l.id)), xe.value = { nodeId: l.id, x: s.clientX, y: s.clientY });
7733
7733
  }
7734
- function me() {
7734
+ function ge() {
7735
7735
  xe.value = null;
7736
7736
  }
7737
7737
  function U(s) {
@@ -7747,7 +7747,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
7747
7747
  function Ee() {
7748
7748
  _(), o("canvas-data");
7749
7749
  }
7750
- function Xe(s) {
7750
+ function Ye(s) {
7751
7751
  _(), o("canvas-import", s);
7752
7752
  }
7753
7753
  function ot() {
@@ -7889,7 +7889,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
7889
7889
  var $e, M;
7890
7890
  const l = Z.value;
7891
7891
  if (!l) return;
7892
- const k = le.scale.value || 1, P = s.clientX - l.startX, I = F(l.startW + P / k, cn, An), H = F(I * l.ratio, cn, An);
7892
+ const k = le.scale.value || 1, P = s.clientX - l.startX, I = F(l.startW + P / k, cn, Cn), H = F(I * l.ratio, cn, Cn);
7893
7893
  l.pendingW = I, l.pendingH = H;
7894
7894
  const X = ($e = r.value) == null ? void 0 : $e.querySelector(
7895
7895
  `[data-node-id="${l.nodeId}"] .zm-node-img`
@@ -7920,7 +7920,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
7920
7920
  function ai(s) {
7921
7921
  rt.value === s && (rt.value = null), x.value && (x.value = null);
7922
7922
  }
7923
- function Un(s, l) {
7923
+ function Pn(s, l) {
7924
7924
  var At;
7925
7925
  if (!l.text || l.text.length < 14) return;
7926
7926
  const P = s.currentTarget.getBoundingClientRect(), I = (At = r.value) == null ? void 0 : At.getBoundingClientRect();
@@ -7933,11 +7933,11 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
7933
7933
  vt.record({ data: h.value });
7934
7934
  }
7935
7935
  function Ae() {
7936
- f.value = new Set(f.value), kn.value++, je().then(() => je()).then(() => Hn()).then(() => {
7936
+ f.value = new Set(f.value), kn.value++, Xe().then(() => Xe()).then(() => Bn()).then(() => {
7937
7937
  kn.value++;
7938
7938
  });
7939
7939
  }
7940
- function Hn() {
7940
+ function Bn() {
7941
7941
  const s = document.querySelectorAll(".zm-rich"), l = {}, k = {};
7942
7942
  s.forEach((P) => {
7943
7943
  let I = P, H = null;
@@ -7997,21 +7997,21 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
7997
7997
  if (H === "curve") {
7998
7998
  let $t;
7999
7999
  if (X === "right" || X === "left") {
8000
- const Ye = Math.abs(l.x - s.x) * 0.45, Gt = X === "right" ? 1 : -1;
8001
- $t = { x1: s.x + Gt * Ye, y1: s.y, x2: l.x - Gt * Ye, y2: l.y };
8000
+ const qe = Math.abs(l.x - s.x) * 0.45, Gt = X === "right" ? 1 : -1;
8001
+ $t = { x1: s.x + Gt * qe, y1: s.y, x2: l.x - Gt * qe, y2: l.y };
8002
8002
  } else {
8003
- const Ye = Math.abs(l.y - s.y) * 0.45;
8004
- $t = { x1: s.x, y1: s.y + Ye, x2: l.x, y2: l.y - Ye };
8003
+ const qe = Math.abs(l.y - s.y) * 0.45;
8004
+ $t = { x1: s.x, y1: s.y + qe, x2: l.x, y2: l.y - qe };
8005
8005
  }
8006
8006
  const hi = (De) => {
8007
- const Ye = 1 - De, Gt = -3 * Ye * Ye * s.x + 3 * (Ye * Ye - 2 * Ye * De) * $t.x1 + 3 * (2 * Ye * De - De * De) * $t.x2 + 3 * De * De * l.x, _n = -3 * Ye * Ye * s.y + 3 * (Ye * Ye - 2 * Ye * De) * $t.y1 + 3 * (2 * Ye * De - De * De) * $t.y2 + 3 * De * De * l.y;
8008
- return { dx: Gt, dy: _n };
8007
+ const qe = 1 - De, Gt = -3 * qe * qe * s.x + 3 * (qe * qe - 2 * qe * De) * $t.x1 + 3 * (2 * qe * De - De * De) * $t.x2 + 3 * De * De * l.x, Tn = -3 * qe * qe * s.y + 3 * (qe * qe - 2 * qe * De) * $t.y1 + 3 * (2 * qe * De - De * De) * $t.y2 + 3 * De * De * l.y;
8008
+ return { dx: Gt, dy: Tn };
8009
8009
  }, en = [], mi = [];
8010
8010
  for (let De = 0; De <= I; De++) {
8011
- const Ye = De / I, Gt = De === 0 ? s : De === I ? l : Bi(Ye, s, $t, l), _n = hi(Ye);
8012
- let vi = Math.hypot(_n.dx, _n.dy);
8011
+ const qe = De / I, Gt = De === 0 ? s : De === I ? l : Bi(qe, s, $t, l), Tn = hi(qe);
8012
+ let vi = Math.hypot(Tn.dx, Tn.dy);
8013
8013
  vi < 1e-6 && (vi = 1);
8014
- const Lo = -_n.dy / vi, $o = _n.dx / vi, yi = (k + (P - k) * Ye) / 2;
8014
+ const Lo = -Tn.dy / vi, $o = Tn.dx / vi, yi = (k + (P - k) * qe) / 2;
8015
8015
  en.push({ x: Gt.x + Lo * yi, y: Gt.y + $o * yi }), mi.push({ x: Gt.x - Lo * yi, y: Gt.y - $o * yi });
8016
8016
  }
8017
8017
  let bi = `M ${en[0].x.toFixed(2)} ${en[0].y.toFixed(2)}`;
@@ -8022,8 +8022,8 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8022
8022
  const ce = l.x - s.x, $e = l.y - s.y;
8023
8023
  let M = Math.hypot(ce, $e);
8024
8024
  M < 1e-6 && (M = 1);
8025
- const pt = -$e / M, bt = ce / M, Te = k / 2, At = P / 2, Tn = { x: s.x + pt * Te, y: s.y + bt * Te }, Nt = { x: s.x - pt * Te, y: s.y - bt * Te }, Kn = { x: l.x - pt * At, y: l.y - bt * At }, Yn = { x: l.x + pt * At, y: l.y + bt * At };
8026
- return `M ${Tn.x.toFixed(2)} ${Tn.y.toFixed(2)} L ${Yn.x.toFixed(2)} ${Yn.y.toFixed(2)} L ${Kn.x.toFixed(2)} ${Kn.y.toFixed(2)} L ${Nt.x.toFixed(2)} ${Nt.y.toFixed(2)} Z`;
8025
+ const pt = -$e / M, bt = ce / M, Te = k / 2, At = P / 2, Sn = { x: s.x + pt * Te, y: s.y + bt * Te }, Nt = { x: s.x - pt * Te, y: s.y - bt * Te }, qn = { x: l.x - pt * At, y: l.y - bt * At }, Kn = { x: l.x + pt * At, y: l.y + bt * At };
8026
+ return `M ${Sn.x.toFixed(2)} ${Sn.y.toFixed(2)} L ${Kn.x.toFixed(2)} ${Kn.y.toFixed(2)} L ${qn.x.toFixed(2)} ${qn.y.toFixed(2)} L ${Nt.x.toFixed(2)} ${Nt.y.toFixed(2)} Z`;
8027
8027
  }
8028
8028
  const We = ue(() => nt.value.root.children), Zt = qt[0].colors, ci = ue(
8029
8029
  () => cl(re.branchPaletteId, re.customPalettes)
@@ -8045,7 +8045,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8045
8045
  }
8046
8046
  return s;
8047
8047
  });
8048
- function Fn(s, l) {
8048
+ function Un(s, l) {
8049
8049
  return re.rainbowBranch ? Lt.value.get(l.id) ?? ut.value.lineColor : ut.value.lineColor;
8050
8050
  }
8051
8051
  function ui(s) {
@@ -8064,7 +8064,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8064
8064
  if (s.isRoot) return ut.value.rootText;
8065
8065
  if (re.rainbowBranch) {
8066
8066
  const k = Lt.value.get(s.id);
8067
- if (k) return Wn(k, 0.55);
8067
+ if (k) return Hn(k, 0.55);
8068
8068
  }
8069
8069
  return ut.value.branchText;
8070
8070
  }
@@ -8074,7 +8074,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8074
8074
  if (s.isRoot) return ut.value.rootBg;
8075
8075
  if (re.rainbowBranch) {
8076
8076
  const k = Lt.value.get(s.id);
8077
- if (k) return Wn(k, 0.3);
8077
+ if (k) return Hn(k, 0.3);
8078
8078
  }
8079
8079
  return ut.value.lineColor;
8080
8080
  }
@@ -8085,7 +8085,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8085
8085
  const k = s.replace("#", ""), P = k.length === 6 ? k : k.split("").map((ce) => ce + ce).join(""), I = parseInt(P.slice(0, 2), 16), H = parseInt(P.slice(2, 4), 16), X = parseInt(P.slice(4, 6), 16);
8086
8086
  return `rgba(${I}, ${H}, ${X}, ${l})`;
8087
8087
  }
8088
- function Wn(s, l) {
8088
+ function Hn(s, l) {
8089
8089
  const k = s.replace("#", ""), P = k.length === 6 ? k : k.split("").map((ce) => ce + ce).join(""), I = Math.round(parseInt(P.slice(0, 2), 16) * (1 - l)), H = Math.round(parseInt(P.slice(2, 4), 16) * (1 - l)), X = Math.round(parseInt(P.slice(4, 6), 16) * (1 - l));
8090
8090
  return `rgb(${I}, ${H}, ${X})`;
8091
8091
  }
@@ -8098,10 +8098,10 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8098
8098
  // If nothing is selected, default Tab/Enter to the root so the user
8099
8099
  // can build a tree from scratch without first clicking somewhere.
8100
8100
  defaultTargetId: () => h.value.id,
8101
- onAddChild: pe,
8102
- onAddSibling: ze,
8103
- onAddSiblingBefore: Ke,
8104
- onRemove: jn,
8101
+ onAddChild: he,
8102
+ onAddSibling: Le,
8103
+ onAddSiblingBefore: Ve,
8104
+ onRemove: Gn,
8105
8105
  onStartEdit: Jt,
8106
8106
  onClearSelection: () => {
8107
8107
  c.value = null, o("select", null);
@@ -8118,7 +8118,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8118
8118
  });
8119
8119
  const nt = ue(() => {
8120
8120
  const s = jt(h.value);
8121
- return Gn(s), sl(s, {
8121
+ return Fn(s), sl(s, {
8122
8122
  mode: re.layoutMode,
8123
8123
  baseFontSize: ut.value.fontSize,
8124
8124
  richHeights: A.value,
@@ -8145,27 +8145,25 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8145
8145
  }), Ct = ue(
8146
8146
  () => `${nt.value.vbX} ${nt.value.vbY} ${nt.value.vbW} ${nt.value.vbH}`
8147
8147
  );
8148
- function Gn(s) {
8148
+ function Fn(s) {
8149
8149
  if (f.value.has(s.id)) {
8150
8150
  s.children = [], s.collapsed = !0;
8151
8151
  return;
8152
8152
  }
8153
8153
  s.collapsed = !1;
8154
- for (const l of s.children) Gn(l);
8154
+ for (const l of s.children) Fn(l);
8155
8155
  }
8156
8156
  function Jt(s) {
8157
8157
  const l = Se(h.value, s);
8158
- l && (a.value = s, d.value = l.text, je(() => {
8158
+ l && (a.value = s, d.value = l.text, Xe(() => {
8159
8159
  const k = document.querySelector(".zm-input");
8160
8160
  k == null || k.focus(), k == null || k.select();
8161
8161
  }));
8162
8162
  }
8163
- function Sn(s = {}) {
8163
+ function Wn() {
8164
8164
  if (!a.value) return;
8165
- const l = Se(h.value, a.value);
8166
- l && l.text !== (d.value.trim() || " ") && (l.text = d.value.trim() || " ", Pe(), o("change", h.value));
8167
- const k = a.value;
8168
- a.value = null, s.addChild ? je(() => pe(k)) : s.addSibling === "after" ? je(() => ze(k)) : s.addSibling === "before" && je(() => Ke(k));
8165
+ const s = Se(h.value, a.value);
8166
+ s && s.text !== (d.value.trim() || " ") && (s.text = d.value.trim() || " ", Pe(), o("change", h.value)), a.value = null;
8169
8167
  }
8170
8168
  function fi() {
8171
8169
  a.value = null;
@@ -8173,7 +8171,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8173
8171
  function pi(s) {
8174
8172
  if (i.previewMode) return;
8175
8173
  const l = Se(h.value, s);
8176
- l != null && l.richContent && (D.value = s, N.value = l.richContent.raw, je(() => {
8174
+ l != null && l.richContent && (D.value = s, N.value = l.richContent.raw, Xe(() => {
8177
8175
  const k = document.querySelector(
8178
8176
  ".zm-node .zm-rich textarea"
8179
8177
  );
@@ -8185,7 +8183,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8185
8183
  const s = D.value, l = Se(h.value, s), k = N.value;
8186
8184
  if (l && l.richContent && l.richContent.raw !== k)
8187
8185
  if (l.richContent.kind === "code") {
8188
- const P = $n(k) || void 0;
8186
+ const P = zn(k) || void 0;
8189
8187
  Oe(s, { kind: "code", raw: k, lang: P });
8190
8188
  } else
8191
8189
  Oe(s, { kind: "table", raw: k });
@@ -8213,25 +8211,25 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8213
8211
  const l = s.metaKey || s.ctrlKey;
8214
8212
  l && (s.key === "z" || s.key === "Z") && !s.shiftKey ? (s.preventDefault(), ft()) : (l && s.shiftKey && (s.key === "z" || s.key === "Z") || l && (s.key === "y" || s.key === "Y") && !s.shiftKey) && (s.preventDefault(), an());
8215
8213
  }
8216
- function pe(s) {
8214
+ function he(s) {
8217
8215
  const l = ml(h.value, s, Ni);
8218
- l && (Pe(), Ae(), o("change", h.value), je(() => Jt(l.id)));
8216
+ l && (Pe(), Ae(), o("change", h.value), Xe(() => Jt(l.id)));
8219
8217
  }
8220
- function ze(s) {
8218
+ function Le(s) {
8221
8219
  if (s === h.value.id) {
8222
- pe(s);
8220
+ he(s);
8223
8221
  return;
8224
8222
  }
8225
8223
  const l = bl(h.value, s, Ni);
8226
- l && (Pe(), Ae(), o("change", h.value), je(() => Jt(l.id)));
8224
+ l && (Pe(), Ae(), o("change", h.value), Xe(() => Jt(l.id)));
8227
8225
  }
8228
- function Ke(s) {
8226
+ function Ve(s) {
8229
8227
  if (s === h.value.id) {
8230
- pe(s);
8228
+ he(s);
8231
8229
  return;
8232
8230
  }
8233
8231
  const l = vl(h.value, s, Ni);
8234
- l && (Pe(), Ae(), o("change", h.value), je(() => Jt(l.id)));
8232
+ l && (Pe(), Ae(), o("change", h.value), Xe(() => Jt(l.id)));
8235
8233
  }
8236
8234
  function dt(s) {
8237
8235
  if (s === h.value.id) return;
@@ -8272,10 +8270,10 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8272
8270
  H && o("select", H);
8273
8271
  }
8274
8272
  }
8275
- function jn(s) {
8273
+ function Gn(s) {
8276
8274
  s !== h.value.id && Rs(h.value, s) && (Pe(), c.value === s && (c.value = null), Ae(), o("change", h.value));
8277
8275
  }
8278
- function qn(s) {
8276
+ function jn(s) {
8279
8277
  f.value.has(s) ? f.value.delete(s) : f.value.add(s), Ae();
8280
8278
  }
8281
8279
  function _o(s) {
@@ -8423,10 +8421,10 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8423
8421
  le.resetView(s.width, s.height, s.root.y);
8424
8422
  }
8425
8423
  function Ir() {
8426
- Vt.value = !0, Pe(), Ae(), je(() => Wt());
8424
+ Vt.value = !0, Pe(), Ae(), Xe(() => Wt());
8427
8425
  }
8428
8426
  function Wi(s) {
8429
- re.layoutMode !== s && (re.layoutMode = s, Ae(), je(() => Wt()));
8427
+ re.layoutMode !== s && (re.layoutMode = s, Ae(), Xe(() => Wt()));
8430
8428
  }
8431
8429
  function Io() {
8432
8430
  return JSON.stringify(h.value, null, 2);
@@ -8438,7 +8436,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8438
8436
  function zo(s) {
8439
8437
  try {
8440
8438
  const l = JSON.parse(s);
8441
- return !l.id || !Array.isArray(l.children) ? !1 : (vt.reset(), h.value = jt(l), c.value = null, f.value = /* @__PURE__ */ new Set(), Ae(), je(() => Wt()), o("change", h.value), !0);
8439
+ return !l.id || !Array.isArray(l.children) ? !1 : (vt.reset(), h.value = jt(l), c.value = null, f.value = /* @__PURE__ */ new Set(), Ae(), Xe(() => Wt()), o("change", h.value), !0);
8442
8440
  } catch {
8443
8441
  return !1;
8444
8442
  }
@@ -8460,9 +8458,9 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8460
8458
  k.href = l, k.download = `${h.value.text || "mindmap"}.json`, k.click(), URL.revokeObjectURL(l);
8461
8459
  }
8462
8460
  return n({
8463
- addChild: (s) => pe(s),
8464
- addSibling: (s) => ze(s),
8465
- removeNode: (s) => jn(s),
8461
+ addChild: (s) => he(s),
8462
+ addSibling: (s) => Le(s),
8463
+ removeNode: (s) => Gn(s),
8466
8464
  duplicateNode: (s) => dt(s),
8467
8465
  setNodeText: (s, l) => Tr(s, l),
8468
8466
  moveNode: (s, l, k) => Ao(s, l, k),
@@ -8476,7 +8474,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8476
8474
  * on every selection. */
8477
8475
  nodeHasContent: (s) => zr(s),
8478
8476
  setData: (s) => {
8479
- vt.reset(), h.value = jt(s), c.value = null, f.value = /* @__PURE__ */ new Set(), Ae(), Pe(), je(() => Wt());
8477
+ vt.reset(), h.value = jt(s), c.value = null, f.value = /* @__PURE__ */ new Set(), Ae(), Pe(), Xe(() => Wt());
8480
8478
  },
8481
8479
  resetView: () => Wt(),
8482
8480
  exportData: Io,
@@ -8490,7 +8488,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8490
8488
  * the host just set the same value back from the prop). */
8491
8489
  setMarkdown: (s, l = !0) => {
8492
8490
  const k = ti(s || "");
8493
- l && (C.value = !0), b = !l, vt.reset(), h.value = jt(k), c.value = null, f.value = /* @__PURE__ */ new Set(), Ae(), Pe(), je(() => {
8491
+ l && (C.value = !0), b = !l, vt.reset(), h.value = jt(k), c.value = null, f.value = /* @__PURE__ */ new Set(), Ae(), Pe(), Xe(() => {
8494
8492
  b = !1, Wt();
8495
8493
  }), o("change", h.value);
8496
8494
  },
@@ -8548,12 +8546,12 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8548
8546
  },
8549
8547
  { deep: !1 }
8550
8548
  ), ei(() => {
8551
- Pe(), je(() => Wt());
8549
+ Pe(), Xe(() => Wt());
8552
8550
  }), (s, l) => {
8553
8551
  var k, P, I, H, X, ce, $e;
8554
8552
  return m(), y("div", {
8555
8553
  class: "zm-mindmap",
8556
- style: qe({ background: ut.value.bgColor, fontSize: ut.value.fontSize + "px" })
8554
+ style: je({ background: ut.value.bgColor, fontSize: ut.value.fontSize + "px" })
8557
8555
  }, [
8558
8556
  u("div", {
8559
8557
  ref_key: "wrapperRef",
@@ -8561,62 +8559,62 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8561
8559
  class: "zm-canvas",
8562
8560
  onMousedown: Nr,
8563
8561
  onContextmenu: U,
8564
- onWheel: l[27] || (l[27] = //@ts-ignore
8565
- (...M) => ge(le).onWheel && ge(le).onWheel(...M)),
8566
- onMouseenter: l[28] || (l[28] = (M) => g.value = !0),
8567
- onMouseleave: l[29] || (l[29] = (M) => g.value = !1),
8562
+ onWheel: l[26] || (l[26] = //@ts-ignore
8563
+ (...M) => pe(le).onWheel && pe(le).onWheel(...M)),
8564
+ onMouseenter: l[27] || (l[27] = (M) => g.value = !0),
8565
+ onMouseleave: l[28] || (l[28] = (M) => g.value = !1),
8568
8566
  onClick: Rr
8569
8567
  }, [
8570
8568
  u("div", {
8571
8569
  class: "zm-svg-layer",
8572
- style: qe({
8573
- left: nt.value.vbX * ge(le).scale.value + ge(le).offsetX.value + "px",
8574
- top: nt.value.vbY * ge(le).scale.value + ge(le).offsetY.value + "px",
8575
- width: nt.value.vbW * ge(le).scale.value + "px",
8576
- height: nt.value.vbH * ge(le).scale.value + "px"
8570
+ style: je({
8571
+ left: nt.value.vbX * pe(le).scale.value + pe(le).offsetX.value + "px",
8572
+ top: nt.value.vbY * pe(le).scale.value + pe(le).offsetY.value + "px",
8573
+ width: nt.value.vbW * pe(le).scale.value + "px",
8574
+ height: nt.value.vbH * pe(le).scale.value + "px"
8577
8575
  })
8578
8576
  }, [
8579
8577
  (m(), y("svg", {
8580
8578
  class: "zm-svg",
8581
8579
  viewBox: Ct.value,
8582
8580
  preserveAspectRatio: "xMinYMin meet",
8583
- width: nt.value.vbW * ge(le).scale.value,
8584
- height: nt.value.vbH * ge(le).scale.value
8581
+ width: nt.value.vbW * pe(le).scale.value,
8582
+ height: nt.value.vbH * pe(le).scale.value
8585
8583
  }, [
8586
8584
  u("g", Ua, [
8587
8585
  (m(!0), y(ie, null, et(En.value, (M) => (m(), y("path", {
8588
8586
  key: M.key,
8589
8587
  d: Ui(Oo(M.from, "out", M.to.side, M.to), Oo(M.to, "in"), xn(M.from.depth), wn(M.to.depth), 32, re.lineStyle, M.to._dir),
8590
- fill: Fn(M.from, M.to),
8588
+ fill: Un(M.from, M.to),
8591
8589
  stroke: "none"
8592
8590
  }, null, 8, Ha))), 128))
8593
8591
  ])
8594
8592
  ], 8, Ba))
8595
8593
  ], 4),
8596
- ge(le).isMarquee.value ? (m(), y("div", {
8594
+ pe(le).isMarquee.value ? (m(), y("div", {
8597
8595
  key: 0,
8598
8596
  class: "zm-marquee",
8599
- style: qe({
8600
- left: ge(le).marquee.x * ge(le).scale.value + ge(le).offsetX.value + "px",
8601
- top: ge(le).marquee.y * ge(le).scale.value + ge(le).offsetY.value + "px",
8602
- width: ge(le).marquee.width * ge(le).scale.value + "px",
8603
- height: ge(le).marquee.height * ge(le).scale.value + "px"
8597
+ style: je({
8598
+ left: pe(le).marquee.x * pe(le).scale.value + pe(le).offsetX.value + "px",
8599
+ top: pe(le).marquee.y * pe(le).scale.value + pe(le).offsetY.value + "px",
8600
+ width: pe(le).marquee.width * pe(le).scale.value + "px",
8601
+ height: pe(le).marquee.height * pe(le).scale.value + "px"
8604
8602
  })
8605
8603
  }, null, 4)) : G("", !0),
8606
8604
  v.value ? (m(), y("div", {
8607
8605
  key: 1,
8608
8606
  class: "zm-drag-ghost",
8609
- style: qe({
8607
+ style: je({
8610
8608
  left: w.value + "px",
8611
8609
  top: S.value + "px",
8612
- transform: `scale(${ge(le).scale.value})`,
8610
+ transform: `scale(${pe(le).scale.value})`,
8613
8611
  transformOrigin: "top left"
8614
8612
  })
8615
8613
  }, se(v.value.srcText), 5)) : G("", !0),
8616
8614
  u("div", {
8617
8615
  class: "zm-world",
8618
- style: qe({
8619
- transform: `translate(${ge(le).offsetX.value}px, ${ge(le).offsetY.value}px) scale(${ge(le).scale.value})`
8616
+ style: je({
8617
+ transform: `translate(${pe(le).offsetX.value}px, ${pe(le).offsetY.value}px) scale(${pe(le).scale.value})`
8620
8618
  })
8621
8619
  }, [
8622
8620
  (m(!0), y(ie, null, et(_t.value, (M) => {
@@ -8633,7 +8631,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8633
8631
  "is-drop-target": ((bt = v.value) == null ? void 0 : bt.currentTargetId) === M.id
8634
8632
  }]),
8635
8633
  "data-node-id": M.id,
8636
- style: qe({
8634
+ style: je({
8637
8635
  left: M.x + "px",
8638
8636
  top: M.y + "px",
8639
8637
  // Pin the box to the layout's reserved width so the
@@ -8659,7 +8657,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8659
8657
  },
8660
8658
  onContextmenu: (Te) => fe(Te, M),
8661
8659
  onMouseenter: (Te) => {
8662
- li(M.id), Un(Te, M);
8660
+ li(M.id), Pn(Te, M);
8663
8661
  },
8664
8662
  onMouseleave: (Te) => ai(M.id)
8665
8663
  }, [
@@ -8675,10 +8673,10 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8675
8673
  M.richContent && (M.richContent.kind === "code" || M.richContent.kind === "table") && a.value !== M.id ? (m(), y("div", {
8676
8674
  key: 1,
8677
8675
  class: _e(["zm-rich zm-rich-above", { "zm-rich-no-overflow": M.richContent.kind === "table" || M.richContent.kind === "code" }]),
8678
- onClick: l[1] || (l[1] = he(() => {
8676
+ onClick: l[1] || (l[1] = me(() => {
8679
8677
  }, ["stop"])),
8680
- onDblclick: he((Te) => pi(M.id), ["stop"]),
8681
- onMousedown: l[2] || (l[2] = he(() => {
8678
+ onDblclick: me((Te) => pi(M.id), ["stop"]),
8679
+ onMousedown: l[2] || (l[2] = me(() => {
8682
8680
  }, ["stop"]))
8683
8681
  }, [
8684
8682
  D.value === M.id ? kt((m(), y("textarea", {
@@ -8693,28 +8691,28 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8693
8691
  ]) : (m(), y(ie, { key: 1 }, [
8694
8692
  M.richContent.kind === "code" ? (m(), y("pre", ja, [
8695
8693
  u("code", {
8696
- innerHTML: ge(ho)(ge(no)(M.richContent.raw), ge($n)(M.richContent.raw))
8694
+ innerHTML: pe(ho)(pe(no)(M.richContent.raw), pe(zn)(M.richContent.raw))
8697
8695
  }, null, 8, qa)
8698
8696
  ])) : M.richContent.kind === "table" ? (m(), y("table", Ka, [
8699
8697
  u("tbody", null, [
8700
- (m(!0), y(ie, null, et(z(M.id, ge(nr)(M.richContent.raw)), (Te, At) => (m(), y("tr", { key: At }, [
8701
- At === 0 ? (m(!0), y(ie, { key: 0 }, et(Te, (Tn, Nt) => {
8702
- var Kn, Yn, $t, hi, en;
8698
+ (m(!0), y(ie, null, et(z(M.id, pe(nr)(M.richContent.raw)), (Te, At) => (m(), y("tr", { key: At }, [
8699
+ At === 0 ? (m(!0), y(ie, { key: 0 }, et(Te, (Sn, Nt) => {
8700
+ var qn, Kn, $t, hi, en;
8703
8701
  return m(), y("th", {
8704
8702
  key: `h${Nt}`,
8705
8703
  class: _e(["zm-rich-table-sort", {
8706
- "is-sorted": ((Kn = E.value.get(M.id)) == null ? void 0 : Kn.col) === Nt,
8707
- "is-asc": ((Yn = E.value.get(M.id)) == null ? void 0 : Yn.col) === Nt && (($t = E.value.get(M.id)) == null ? void 0 : $t.dir) === "asc",
8704
+ "is-sorted": ((qn = E.value.get(M.id)) == null ? void 0 : qn.col) === Nt,
8705
+ "is-asc": ((Kn = E.value.get(M.id)) == null ? void 0 : Kn.col) === Nt && (($t = E.value.get(M.id)) == null ? void 0 : $t.dir) === "asc",
8708
8706
  "is-desc": ((hi = E.value.get(M.id)) == null ? void 0 : hi.col) === Nt && ((en = E.value.get(M.id)) == null ? void 0 : en.dir) === "desc"
8709
8707
  }]),
8710
- onClick: he((mi) => p(M.id, Nt), ["stop"])
8708
+ onClick: me((mi) => p(M.id, Nt), ["stop"])
8711
8709
  }, [
8712
- u("span", null, se(Tn), 1),
8710
+ u("span", null, se(Sn), 1),
8713
8711
  u("span", Va, se(K(M.id, Nt)), 1)
8714
8712
  ], 10, Ya);
8715
- }), 128)) : (m(!0), y(ie, { key: 1 }, et(Te, (Tn, Nt) => (m(), y("td", {
8713
+ }), 128)) : (m(!0), y(ie, { key: 1 }, et(Te, (Sn, Nt) => (m(), y("td", {
8716
8714
  key: `c${Nt}`
8717
- }, se(Tn), 1))), 128))
8715
+ }, se(Sn), 1))), 128))
8718
8716
  ]))), 128))
8719
8717
  ])
8720
8718
  ])) : G("", !0)
@@ -8729,12 +8727,12 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8729
8727
  target: "_blank",
8730
8728
  rel: "noopener noreferrer",
8731
8729
  title: `打开链接:${M.link.url}`,
8732
- onClick: l[3] || (l[3] = he(() => {
8730
+ onClick: l[3] || (l[3] = me(() => {
8733
8731
  }, ["stop"])),
8734
- onMousedown: l[4] || (l[4] = he(() => {
8732
+ onMousedown: l[4] || (l[4] = me(() => {
8735
8733
  }, ["stop"]))
8736
8734
  }, [
8737
- de(Le, {
8735
+ de(ze, {
8738
8736
  name: "link",
8739
8737
  size: 11,
8740
8738
  stroke: 2
@@ -8745,11 +8743,11 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8745
8743
  class: "zm-node-note-btn",
8746
8744
  type: "button",
8747
8745
  title: zt(M.note.text),
8748
- onClick: he((Te) => Tt(M.id), ["stop"]),
8749
- onMousedown: l[5] || (l[5] = he(() => {
8746
+ onClick: me((Te) => Tt(M.id), ["stop"]),
8747
+ onMousedown: l[5] || (l[5] = me(() => {
8750
8748
  }, ["stop"]))
8751
8749
  }, [
8752
- de(Le, {
8750
+ de(ze, {
8753
8751
  name: "note",
8754
8752
  size: 11,
8755
8753
  stroke: 2
@@ -8760,17 +8758,16 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8760
8758
  class: "zm-input",
8761
8759
  "onUpdate:modelValue": l[6] || (l[6] = (Te) => d.value = Te),
8762
8760
  autofocus: "",
8763
- onBlur: l[7] || (l[7] = (Te) => Sn()),
8761
+ onBlur: l[7] || (l[7] = (Te) => Wn()),
8764
8762
  onKeydown: [
8765
- l[8] || (l[8] = Ln(he((Te) => Sn({ addSibling: "after" }), ["exact"]), ["enter"])),
8766
- l[9] || (l[9] = Ln(he((Te) => Sn({ addSibling: "before" }), ["shift", "prevent", "exact"]), ["enter"])),
8767
- l[10] || (l[10] = Ln(he((Te) => Sn({ addChild: !0 }), ["prevent"]), ["tab"])),
8768
- Ln(fi, ["esc"]),
8763
+ l[8] || (l[8] = Qn(me((Te) => Wn(), ["exact"]), ["enter"])),
8764
+ l[9] || (l[9] = Qn(me((Te) => Wn(), ["prevent"]), ["tab"])),
8765
+ Qn(fi, ["esc"]),
8769
8766
  Me
8770
8767
  ],
8771
- onMousedown: l[11] || (l[11] = he(() => {
8768
+ onMousedown: l[10] || (l[10] = me(() => {
8772
8769
  }, ["stop"])),
8773
- onClick: l[12] || (l[12] = he(() => {
8770
+ onClick: l[11] || (l[11] = me(() => {
8774
8771
  }, ["stop"]))
8775
8772
  }, null, 544)), [
8776
8773
  [Ot, d.value]
@@ -8783,22 +8780,22 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8783
8780
  Ro(M.id) && Fi(M.id) > 0 ? (m(), y("span", {
8784
8781
  key: 5,
8785
8782
  class: _e(["zm-collapse-badge", { "is-on-left": M.side === -1 }]),
8786
- style: qe({ background: Lt.value.get(M.id) ?? "#64748b" }),
8783
+ style: je({ background: Lt.value.get(M.id) ?? "#64748b" }),
8787
8784
  title: `展开 ${Fi(M.id)} 个子节点`,
8788
- onMousedown: l[13] || (l[13] = he(() => {
8785
+ onMousedown: l[12] || (l[12] = me(() => {
8789
8786
  }, ["stop"])),
8790
- onClick: he((Te) => qn(M.id), ["stop"])
8787
+ onClick: me((Te) => jn(M.id), ["stop"])
8791
8788
  }, se(Fi(M.id)), 47, tc)) : G("", !0),
8792
8789
  Or(M) && !Ro(M.id) ? (m(), y("button", {
8793
8790
  key: 6,
8794
8791
  class: _e(["zm-btn zm-collapse", { "is-on-left": M.side === -1 }]),
8795
- style: qe({ color: Lt.value.get(M.id) ?? "#64748b", borderColor: Lt.value.get(M.id) ?? "#64748b" }),
8792
+ style: je({ color: Lt.value.get(M.id) ?? "#64748b", borderColor: Lt.value.get(M.id) ?? "#64748b" }),
8796
8793
  title: "折叠",
8797
- onMousedown: l[14] || (l[14] = he(() => {
8794
+ onMousedown: l[13] || (l[13] = me(() => {
8798
8795
  }, ["stop"])),
8799
- onClick: he((Te) => qn(M.id), ["stop"])
8796
+ onClick: me((Te) => jn(M.id), ["stop"])
8800
8797
  }, [
8801
- de(Le, {
8798
+ de(ze, {
8802
8799
  name: "minus",
8803
8800
  size: 10,
8804
8801
  stroke: 2.4
@@ -8808,17 +8805,17 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8808
8805
  key: 7,
8809
8806
  class: "zm-img-resize-handle",
8810
8807
  title: "拖动调整图片大小",
8811
- onMousedown: he((Te) => Ce(Te, M), ["stop"])
8808
+ onMousedown: me((Te) => Ce(Te, M), ["stop"])
8812
8809
  }, null, 40, ic)) : G("", !0),
8813
8810
  M.image && c.value === M.id && a.value !== M.id ? (m(), y("button", {
8814
8811
  key: 8,
8815
8812
  class: "zm-img-remove-btn",
8816
8813
  title: "移除图片",
8817
- onMousedown: l[15] || (l[15] = he(() => {
8814
+ onMousedown: l[14] || (l[14] = me(() => {
8818
8815
  }, ["stop"])),
8819
- onClick: he((Te) => Y(M.id), ["stop"])
8816
+ onClick: me((Te) => Y(M.id), ["stop"])
8820
8817
  }, [
8821
- de(Le, {
8818
+ de(ze, {
8822
8819
  name: "x",
8823
8820
  size: 9,
8824
8821
  stroke: 2.2
@@ -8830,18 +8827,18 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8830
8827
  x.value ? (m(), y("div", {
8831
8828
  key: 2,
8832
8829
  class: _e(["zm-tooltip", { "is-below": !x.value.above }]),
8833
- style: qe({ left: x.value.x + "px", top: x.value.y + "px" })
8830
+ style: je({ left: x.value.x + "px", top: x.value.y + "px" })
8834
8831
  }, se(x.value.text), 7)) : G("", !0),
8835
8832
  xe.value ? (m(), eo(Tl, {
8836
8833
  key: 3,
8837
8834
  x: xe.value.x,
8838
8835
  y: xe.value.y,
8839
8836
  container: r.value,
8840
- "has-image": !!((k = ge(Se)(h.value, xe.value.nodeId)) != null && k.image),
8841
- "has-link": !!((P = ge(Se)(h.value, xe.value.nodeId)) != null && P.link),
8842
- "has-note": !!((I = ge(Se)(h.value, xe.value.nodeId)) != null && I.note),
8843
- "has-code": ((X = (H = ge(Se)(h.value, xe.value.nodeId)) == null ? void 0 : H.richContent) == null ? void 0 : X.kind) === "code",
8844
- "has-table": (($e = (ce = ge(Se)(h.value, xe.value.nodeId)) == null ? void 0 : ce.richContent) == null ? void 0 : $e.kind) === "table",
8837
+ "has-image": !!((k = pe(Se)(h.value, xe.value.nodeId)) != null && k.image),
8838
+ "has-link": !!((P = pe(Se)(h.value, xe.value.nodeId)) != null && P.link),
8839
+ "has-note": !!((I = pe(Se)(h.value, xe.value.nodeId)) != null && I.note),
8840
+ "has-code": ((X = (H = pe(Se)(h.value, xe.value.nodeId)) == null ? void 0 : H.richContent) == null ? void 0 : X.kind) === "code",
8841
+ "has-table": (($e = (ce = pe(Se)(h.value, xe.value.nodeId)) == null ? void 0 : ce.richContent) == null ? void 0 : $e.kind) === "table",
8845
8842
  onPickImage: ot,
8846
8843
  onRemoveImage: It,
8847
8844
  onSetLink: tt,
@@ -8854,7 +8851,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8854
8851
  onAddTable: St,
8855
8852
  onEditTable: St,
8856
8853
  onRemoveTable: st,
8857
- onClose: me
8854
+ onClose: ge
8858
8855
  }, null, 8, ["x", "y", "container", "has-image", "has-link", "has-note", "has-code", "has-table"])) : G("", !0),
8859
8856
  Fe.value ? (m(), eo(_l, {
8860
8857
  key: 4,
@@ -8863,15 +8860,15 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8863
8860
  container: r.value,
8864
8861
  onOpenSettings: we,
8865
8862
  onOpenData: Ee,
8866
- onOpenImport: Xe,
8863
+ onOpenImport: Ye,
8867
8864
  onClose: _
8868
8865
  }, null, 8, ["x", "y", "container"])) : G("", !0),
8869
8866
  u("button", {
8870
8867
  class: _e($.value),
8871
8868
  title: i.previewMode ? "退出预览模式" : "进入预览模式",
8872
- onClick: l[16] || (l[16] = (M) => o("canvas-toggle-preview"))
8869
+ onClick: l[15] || (l[15] = (M) => o("canvas-toggle-preview"))
8873
8870
  }, [
8874
- de(Le, {
8871
+ de(ze, {
8875
8872
  name: i.previewMode ? "eye-off" : "eye",
8876
8873
  size: 16
8877
8874
  }, null, 8, ["name"])
@@ -8879,9 +8876,9 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8879
8876
  u("button", {
8880
8877
  class: _e(O.value),
8881
8878
  title: "显示大纲视图",
8882
- onClick: l[17] || (l[17] = (M) => o("canvas-outline"))
8879
+ onClick: l[16] || (l[16] = (M) => o("canvas-outline"))
8883
8880
  }, [
8884
- de(Le, {
8881
+ de(ze, {
8885
8882
  name: "outline",
8886
8883
  size: 16
8887
8884
  })
@@ -8889,76 +8886,76 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8889
8886
  u("div", {
8890
8887
  class: _e(["zm-toolbar", { "is-preview-only": i.previewMode, "is-hovered": g.value }])
8891
8888
  }, [
8892
- u("span", rc, se(Math.round(ge(le).scale.value * 100)) + "%", 1),
8889
+ u("span", rc, se(Math.round(pe(le).scale.value * 100)) + "%", 1),
8893
8890
  u("button", {
8894
8891
  class: "zm-tb-btn",
8895
8892
  title: "放大",
8896
- onClick: l[18] || (l[18] = //@ts-ignore
8897
- (...M) => ge(le).zoomIn && ge(le).zoomIn(...M))
8893
+ onClick: l[17] || (l[17] = //@ts-ignore
8894
+ (...M) => pe(le).zoomIn && pe(le).zoomIn(...M))
8898
8895
  }, [
8899
- de(Le, { name: "zoom-in" })
8896
+ de(ze, { name: "zoom-in" })
8900
8897
  ]),
8901
8898
  u("button", {
8902
8899
  class: "zm-tb-btn",
8903
8900
  title: "缩小",
8904
- onClick: l[19] || (l[19] = //@ts-ignore
8905
- (...M) => ge(le).zoomOut && ge(le).zoomOut(...M))
8901
+ onClick: l[18] || (l[18] = //@ts-ignore
8902
+ (...M) => pe(le).zoomOut && pe(le).zoomOut(...M))
8906
8903
  }, [
8907
- de(Le, { name: "zoom-out" })
8904
+ de(ze, { name: "zoom-out" })
8908
8905
  ]),
8909
8906
  u("button", {
8910
8907
  class: "zm-tb-btn",
8911
8908
  title: "重置视图",
8912
8909
  onClick: Wt
8913
8910
  }, [
8914
- de(Le, { name: "reset" })
8911
+ de(ze, { name: "reset" })
8915
8912
  ]),
8916
- l[33] || (l[33] = u("span", { class: "zm-tb-divider" }, null, -1)),
8913
+ l[32] || (l[32] = u("span", { class: "zm-tb-divider" }, null, -1)),
8917
8914
  u("button", {
8918
8915
  class: "zm-tb-btn",
8919
8916
  title: "全部收起",
8920
8917
  onClick: Er
8921
8918
  }, [
8922
- de(Le, { name: "collapse-all" })
8919
+ de(ze, { name: "collapse-all" })
8923
8920
  ]),
8924
8921
  u("button", {
8925
8922
  class: "zm-tb-btn",
8926
8923
  title: "展开一级",
8927
- onClick: l[20] || (l[20] = (M) => Co(1))
8924
+ onClick: l[19] || (l[19] = (M) => Co(1))
8928
8925
  }, [
8929
- de(Le, { name: "expand-level-1" })
8926
+ de(ze, { name: "expand-level-1" })
8930
8927
  ]),
8931
8928
  u("button", {
8932
8929
  class: "zm-tb-btn",
8933
8930
  title: "展开二级",
8934
- onClick: l[21] || (l[21] = (M) => Co(2))
8931
+ onClick: l[20] || (l[20] = (M) => Co(2))
8935
8932
  }, [
8936
- de(Le, { name: "expand-level-2" })
8933
+ de(ze, { name: "expand-level-2" })
8937
8934
  ]),
8938
8935
  u("button", {
8939
8936
  class: "zm-tb-btn",
8940
8937
  title: "全部展开",
8941
8938
  onClick: Sr
8942
8939
  }, [
8943
- de(Le, { name: "expand-all" })
8940
+ de(ze, { name: "expand-all" })
8944
8941
  ]),
8945
- l[34] || (l[34] = u("span", { class: "zm-tb-divider" }, null, -1)),
8942
+ l[33] || (l[33] = u("span", { class: "zm-tb-divider" }, null, -1)),
8946
8943
  u("button", {
8947
8944
  class: "zm-tb-btn",
8948
8945
  title: "导出 JSON",
8949
8946
  onClick: $r
8950
8947
  }, [
8951
- de(Le, { name: "export" })
8948
+ de(ze, { name: "export" })
8952
8949
  ]),
8953
8950
  i.previewMode ? G("", !0) : (m(), y(ie, { key: 0 }, [
8954
- l[30] || (l[30] = u("span", { class: "zm-tb-divider" }, null, -1)),
8951
+ l[29] || (l[29] = u("span", { class: "zm-tb-divider" }, null, -1)),
8955
8952
  u("button", {
8956
8953
  class: "zm-tb-btn",
8957
8954
  title: "添加子节点 (Tab)",
8958
- onClick: l[22] || (l[22] = (M) => c.value && pe(c.value))
8955
+ onClick: l[21] || (l[21] = (M) => c.value && he(c.value))
8959
8956
  }, [
8960
8957
  u("img", {
8961
- src: ge(_s),
8958
+ src: pe(_s),
8962
8959
  width: "14",
8963
8960
  height: "14",
8964
8961
  alt: "添加子节点",
@@ -8968,45 +8965,45 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
8968
8965
  u("button", {
8969
8966
  class: "zm-tb-btn",
8970
8967
  title: "添加同级 (Enter)",
8971
- onClick: l[23] || (l[23] = (M) => c.value && ze(c.value))
8968
+ onClick: l[22] || (l[22] = (M) => c.value && Le(c.value))
8972
8969
  }, [
8973
8970
  u("img", {
8974
- src: ge(Ts),
8971
+ src: pe(Ts),
8975
8972
  width: "14",
8976
8973
  height: "14",
8977
8974
  alt: "添加同级",
8978
8975
  draggable: "false"
8979
8976
  }, null, 8, ac)
8980
8977
  ]),
8981
- l[31] || (l[31] = u("span", { class: "zm-tb-divider" }, null, -1)),
8978
+ l[30] || (l[30] = u("span", { class: "zm-tb-divider" }, null, -1)),
8982
8979
  u("button", {
8983
8980
  class: _e(["zm-tb-btn", { active: re.layoutMode === "mindmap" }]),
8984
8981
  title: "思维导图布局 (中心辐射)",
8985
- onClick: l[24] || (l[24] = (M) => Wi("mindmap"))
8982
+ onClick: l[23] || (l[23] = (M) => Wi("mindmap"))
8986
8983
  }, [
8987
- de(Le, { name: "mindmap" })
8984
+ de(ze, { name: "mindmap" })
8988
8985
  ], 2),
8989
8986
  u("button", {
8990
8987
  class: _e(["zm-tb-btn", { active: re.layoutMode === "tree" }]),
8991
8988
  title: "树形布局 (向右展开)",
8992
- onClick: l[25] || (l[25] = (M) => Wi("tree"))
8989
+ onClick: l[24] || (l[24] = (M) => Wi("tree"))
8993
8990
  }, [
8994
- de(Le, { name: "tree" })
8991
+ de(ze, { name: "tree" })
8995
8992
  ], 2),
8996
8993
  u("button", {
8997
8994
  class: _e(["zm-tb-btn", { active: re.layoutMode === "org" }]),
8998
8995
  title: "组织结构布局 (向下展开)",
8999
- onClick: l[26] || (l[26] = (M) => Wi("org"))
8996
+ onClick: l[25] || (l[25] = (M) => Wi("org"))
9000
8997
  }, [
9001
- de(Le, { name: "org" })
8998
+ de(ze, { name: "org" })
9002
8999
  ], 2),
9003
- l[32] || (l[32] = u("span", { class: "zm-tb-divider" }, null, -1)),
9000
+ l[31] || (l[31] = u("span", { class: "zm-tb-divider" }, null, -1)),
9004
9001
  u("button", {
9005
9002
  class: "zm-tb-btn",
9006
9003
  title: "导入 JSON",
9007
9004
  onClick: Lr
9008
9005
  }, [
9009
- de(Le, { name: "import" })
9006
+ de(ze, { name: "import" })
9010
9007
  ])
9011
9008
  ], 64))
9012
9009
  ], 2)
@@ -9100,7 +9097,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9100
9097
  }), r = q(null), a = q("");
9101
9098
  let d = null;
9102
9099
  function c(Y) {
9103
- t.readonly || (r.value = Y.id, a.value = Y.text, je(() => {
9100
+ t.readonly || (r.value = Y.id, a.value = Y.text, Xe(() => {
9104
9101
  d = document.querySelector(".zm-outline-input"), d == null || d.focus(), d == null || d.select();
9105
9102
  }));
9106
9103
  }
@@ -9203,7 +9200,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9203
9200
  "is-drag-over-after": S.value === F.id && x.value === "after",
9204
9201
  "is-drag-over-child": S.value === F.id && x.value === "child"
9205
9202
  }]),
9206
- style: qe({ paddingLeft: 12 + F.depth * 16 + "px" }),
9203
+ style: je({ paddingLeft: 12 + F.depth * 16 + "px" }),
9207
9204
  draggable: "true",
9208
9205
  onClick: (T) => i("select", F.node),
9209
9206
  onDblclick: (T) => c(F),
@@ -9217,7 +9214,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9217
9214
  key: 0,
9218
9215
  class: "zm-outline-toggle",
9219
9216
  title: F.collapsed ? "展开" : "折叠",
9220
- onClick: he((T) => i("toggleCollapse", F.id), ["stop"])
9217
+ onClick: me((T) => i("toggleCollapse", F.id), ["stop"])
9221
9218
  }, [
9222
9219
  (m(), y("svg", bc, [
9223
9220
  F.collapsed ? (m(), y("polyline", yc)) : (m(), y("polyline", vc))
@@ -9230,7 +9227,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9230
9227
  class: "zm-outline-input",
9231
9228
  onBlur: f,
9232
9229
  onKeydown: v,
9233
- onClick: ee[1] || (ee[1] = he(() => {
9230
+ onClick: ee[1] || (ee[1] = me(() => {
9234
9231
  }, ["stop"]))
9235
9232
  }, null, 544)), [
9236
9233
  [Ot, a.value]
@@ -9239,10 +9236,10 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9239
9236
  key: 4,
9240
9237
  class: "zm-outline-row-action",
9241
9238
  title: "添加同级",
9242
- onClick: he((T) => i("addSibling", F.id), ["stop"])
9239
+ onClick: me((T) => i("addSibling", F.id), ["stop"])
9243
9240
  }, [
9244
9241
  u("img", {
9245
- src: ge(Ts),
9242
+ src: pe(Ts),
9246
9243
  width: "14",
9247
9244
  height: "14",
9248
9245
  alt: "添加同级",
@@ -9253,10 +9250,10 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9253
9250
  key: 5,
9254
9251
  class: "zm-outline-row-action",
9255
9252
  title: "添加子节点",
9256
- onClick: he((T) => i("addChild", F.id), ["stop"])
9253
+ onClick: me((T) => i("addChild", F.id), ["stop"])
9257
9254
  }, [
9258
9255
  u("img", {
9259
- src: ge(_s),
9256
+ src: pe(_s),
9260
9257
  width: "14",
9261
9258
  height: "14",
9262
9259
  alt: "添加子节点",
@@ -9289,7 +9286,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9289
9286
  }, Pc = {
9290
9287
  key: 0,
9291
9288
  class: "zm-drawer-title"
9292
- }, Bc = { class: "zm-drawer-body" }, Zn = /* @__PURE__ */ Et({
9289
+ }, Bc = { class: "zm-drawer-body" }, Xn = /* @__PURE__ */ Et({
9293
9290
  __name: "Drawer",
9294
9291
  props: {
9295
9292
  side: { default: "left" },
@@ -9328,7 +9325,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9328
9325
  e.open ? (m(), y("aside", {
9329
9326
  key: 0,
9330
9327
  class: _e(["zm-drawer zm-drawer--canvas", ["zm-drawer--" + e.side]]),
9331
- style: qe({ width: e.width + "px" }),
9328
+ style: je({ width: e.width + "px" }),
9332
9329
  "aria-hidden": !e.open
9333
9330
  }, [
9334
9331
  e.title || r.$slots.header ? (m(), y("div", Ic, [
@@ -9368,7 +9365,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9368
9365
  e.open ? (m(), y("aside", {
9369
9366
  key: 0,
9370
9367
  class: _e(["zm-drawer", ["zm-drawer--" + e.side, { "is-open": e.open }]]),
9371
- style: qe({ width: e.width + "px" }),
9368
+ style: je({ width: e.width + "px" }),
9372
9369
  "aria-hidden": !e.open
9373
9370
  }, [
9374
9371
  e.title || r.$slots.header ? (m(), y("div", Dc, [
@@ -9510,7 +9507,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9510
9507
  }, [
9511
9508
  u("div", {
9512
9509
  class: "zm-jtv-header",
9513
- style: qe({ paddingLeft: 6 + e.depth * 12 + "px" }),
9510
+ style: je({ paddingLeft: 6 + e.depth * 12 + "px" }),
9514
9511
  onClick: g
9515
9512
  }, [
9516
9513
  u("span", {
@@ -9544,17 +9541,17 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9544
9541
  !c.value && o.value ? (m(), y("div", {
9545
9542
  key: 1,
9546
9543
  class: "zm-jtv-footer",
9547
- style: qe({ paddingLeft: 6 + e.depth * 12 + "px" })
9544
+ style: je({ paddingLeft: 6 + e.depth * 12 + "px" })
9548
9545
  }, "]", 4)) : G("", !0),
9549
9546
  !c.value && i.value && !o.value ? (m(), y("div", {
9550
9547
  key: 2,
9551
9548
  class: "zm-jtv-footer",
9552
- style: qe({ paddingLeft: 6 + e.depth * 12 + "px" })
9549
+ style: je({ paddingLeft: 6 + e.depth * 12 + "px" })
9553
9550
  }, "}", 4)) : G("", !0)
9554
9551
  ], 2)) : (m(), y("div", {
9555
9552
  key: 2,
9556
9553
  class: "zm-jtv-leaf",
9557
- style: qe({ paddingLeft: 6 + e.depth * 12 + "px" })
9554
+ style: je({ paddingLeft: 6 + e.depth * 12 + "px" })
9558
9555
  }, [
9559
9556
  A[2] || (A[2] = u("span", { class: "zm-jtv-toggle is-leaf" }, "·", -1)),
9560
9557
  u("span", Yc, se(e.keyName), 1),
@@ -9578,7 +9575,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9578
9575
  N(e.value) ? (m(), y("span", {
9579
9576
  key: 1,
9580
9577
  class: "zm-jtv-thumb-wrap",
9581
- onClick: A[1] || (A[1] = he(() => {
9578
+ onClick: A[1] || (A[1] = me(() => {
9582
9579
  }, ["stop"]))
9583
9580
  }, [
9584
9581
  u("img", {
@@ -9593,7 +9590,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9593
9590
  href: String(e.value),
9594
9591
  target: "_blank",
9595
9592
  rel: "noopener noreferrer",
9596
- onClick: A[0] || (A[0] = he(() => {
9593
+ onClick: A[0] || (A[0] = me(() => {
9597
9594
  }, ["stop"]))
9598
9595
  }, "open", 8, Zc)
9599
9596
  ])) : G("", !0)
@@ -9922,13 +9919,13 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9922
9919
  }
9923
9920
  }
9924
9921
  function v() {
9925
- o.value = ni(t.data), r.value = null, je(() => {
9922
+ o.value = ni(t.data), r.value = null, Xe(() => {
9926
9923
  var N;
9927
9924
  return (N = a.value) == null ? void 0 : N.resetView();
9928
9925
  });
9929
9926
  }
9930
9927
  function w() {
9931
- o.value = "", r.value = null, je(() => {
9928
+ o.value = "", r.value = null, Xe(() => {
9932
9929
  var N;
9933
9930
  return (N = a.value) == null ? void 0 : N.resetView();
9934
9931
  });
@@ -9941,7 +9938,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9941
9938
  if (!E) return;
9942
9939
  const h = new FileReader();
9943
9940
  h.onload = () => {
9944
- typeof h.result == "string" && (o.value = h.result, r.value = null, je(() => {
9941
+ typeof h.result == "string" && (o.value = h.result, r.value = null, Xe(() => {
9945
9942
  var R;
9946
9943
  return (R = a.value) == null ? void 0 : R.resetView();
9947
9944
  }));
@@ -9955,7 +9952,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
9955
9952
  h.download = `${A}.md`, h.click(), URL.revokeObjectURL(E);
9956
9953
  }
9957
9954
  function D() {
9958
- o.value = wu, r.value = null, je(() => {
9955
+ o.value = wu, r.value = null, Xe(() => {
9959
9956
  var N;
9960
9957
  return (N = a.value) == null ? void 0 : N.resetView();
9961
9958
  });
@@ -10304,7 +10301,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
10304
10301
  e.settings.rainbowBranch ? (m(), y("div", Hu, [
10305
10302
  b[17] || (b[17] = u("h5", { class: "zm-palette-picker-title" }, "配色方案", -1)),
10306
10303
  u("div", Fu, [
10307
- (m(!0), y(ie, null, et(ge(qt), (L) => (m(), y("button", {
10304
+ (m(!0), y(ie, null, et(pe(qt), (L) => (m(), y("button", {
10308
10305
  key: L.id,
10309
10306
  type: "button",
10310
10307
  class: _e(["zm-palette-card", { "is-active": e.settings.branchPaletteId === L.id }]),
@@ -10316,7 +10313,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
10316
10313
  (m(!0), y(ie, null, et(L.colors, (V, ae) => (m(), y("span", {
10317
10314
  key: ae,
10318
10315
  class: "zm-palette-card-swatch",
10319
- style: qe({ background: V })
10316
+ style: je({ background: V })
10320
10317
  }, null, 4))), 128))
10321
10318
  ])
10322
10319
  ], 10, Wu))), 128))
@@ -10337,7 +10334,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
10337
10334
  (m(!0), y(ie, null, et(L.colors, (V, ae) => (m(), y("span", {
10338
10335
  key: ae,
10339
10336
  class: "zm-palette-card-swatch",
10340
- style: qe({ background: V })
10337
+ style: je({ background: V })
10341
10338
  }, null, 4))), 128))
10342
10339
  ])
10343
10340
  ], 10, Ku),
@@ -10423,7 +10420,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
10423
10420
  (m(), y(ie, null, et(D, (L) => u("button", {
10424
10421
  key: "bg-" + L,
10425
10422
  class: "zm-swatch",
10426
- style: qe({ background: L }),
10423
+ style: je({ background: L }),
10427
10424
  title: L,
10428
10425
  onClick: (V) => a.bg = L
10429
10426
  }, null, 12, yd)), 64)),
@@ -10441,7 +10438,7 @@ const Ba = ["viewBox", "width", "height"], Ua = { class: "zm-edges" }, Ha = ["d"
10441
10438
  (m(), y(ie, null, et(D, (L) => u("button", {
10442
10439
  key: "fg-" + L,
10443
10440
  class: "zm-swatch",
10444
- style: qe({ background: L }),
10441
+ style: je({ background: L }),
10445
10442
  title: L,
10446
10443
  onClick: (V) => a.textColor = L
10447
10444
  }, null, 12, Ed)), 64)),
@@ -10504,7 +10501,7 @@ function Yi(e, n = {}) {
10504
10501
  i();
10505
10502
  }
10506
10503
  ei(async () => {
10507
- await je();
10504
+ await Xe();
10508
10505
  const r = e.value;
10509
10506
  r && (r.addEventListener("input", o), i());
10510
10507
  }), ht(
@@ -10526,7 +10523,7 @@ function ar(e) {
10526
10523
  vn = e;
10527
10524
  }
10528
10525
  var fn = { exec: () => null };
10529
- function Nn(e) {
10526
+ function An(e) {
10530
10527
  let n = [];
10531
10528
  return (t) => {
10532
10529
  let i = Math.max(0, Math.min(3, t - 1)), o = n[i];
@@ -10546,8 +10543,8 @@ var Nd = ((e = "") => {
10546
10543
  } catch {
10547
10544
  return !1;
10548
10545
  }
10549
- })(), ct = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (e) => new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: Nn((e) => new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: Nn((e) => new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: Nn((e) => new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)), headingBeginRegex: Nn((e) => new RegExp(`^ {0,${e}}#`)), htmlBeginRegex: Nn((e) => new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: Nn((e) => new RegExp(`^ {0,${e}}>`)) }, Rd = /^(?:[ \t]*(?:\n|$))+/, Md = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Od = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ri = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Id = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, vo = / {0,3}(?:[*+-]|\d{1,9}[.)])/, cr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ur = Ne(cr).replace(/bull/g, vo).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), zd = Ne(cr).replace(/bull/g, vo).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), yo = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ld = /^[^\n]+/, ko = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $d = Ne(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ko).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Dd = Ne(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, vo).getRegex(), $i = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", xo = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Pd = Ne("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", xo).replace("tag", $i).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), dr = Ne(yo).replace("hr", ri).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $i).getRegex(), Bd = Ne(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", dr).getRegex(), wo = { blockquote: Bd, code: Md, def: $d, fences: Od, heading: Id, hr: ri, html: Pd, lheading: ur, list: Dd, newline: Rd, paragraph: dr, table: fn, text: Ld }, ss = Ne("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ri).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $i).getRegex(), Ud = { ...wo, lheading: zd, table: ss, paragraph: Ne(yo).replace("hr", ri).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ss).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $i).getRegex() }, Hd = { ...wo, html: Ne(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", xo).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: fn, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Ne(yo).replace("hr", ri).replace("heading", ` *#{1,6} *[^
10550
- ]`).replace("lheading", ur).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Fd = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Wd = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, fr = /^( {2,}|\\)\n(?!\s*$)/, Gd = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Bn = /[\p{P}\p{S}]/u, Di = /[\s\p{P}\p{S}]/u, Eo = /[^\s\p{P}\p{S}]/u, jd = Ne(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Di).getRegex(), pr = /(?!~)[\p{P}\p{S}]/u, qd = /(?!~)[\s\p{P}\p{S}]/u, Kd = /(?:[^\s\p{P}\p{S}]|~)/u, Yd = Ne(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Nd ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), gr = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Vd = Ne(gr, "u").replace(/punct/g, Bn).getRegex(), Xd = Ne(gr, "u").replace(/punct/g, pr).getRegex(), hr = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Zd = Ne(hr, "gu").replace(/notPunctSpace/g, Eo).replace(/punctSpace/g, Di).replace(/punct/g, Bn).getRegex(), Jd = Ne(hr, "gu").replace(/notPunctSpace/g, Kd).replace(/punctSpace/g, qd).replace(/punct/g, pr).getRegex(), Qd = Ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Eo).replace(/punctSpace/g, Di).replace(/punct/g, Bn).getRegex(), ef = Ne(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Bn).getRegex(), tf = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", nf = Ne(tf, "gu").replace(/notPunctSpace/g, Eo).replace(/punctSpace/g, Di).replace(/punct/g, Bn).getRegex(), of = Ne(/\\(punct)/, "gu").replace(/punct/g, Bn).getRegex(), sf = Ne(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), rf = Ne(xo).replace("(?:-->|$)", "-->").getRegex(), lf = Ne("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", rf).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Oi = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, af = Ne(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Oi).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), mr = Ne(/^!?\[(label)\]\[(ref)\]/).replace("label", Oi).replace("ref", ko).getRegex(), br = Ne(/^!?\[(ref)\](?:\[\])?/).replace("ref", ko).getRegex(), cf = Ne("reflink|nolink(?!\\()", "g").replace("reflink", mr).replace("nolink", br).getRegex(), rs = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, So = { _backpedal: fn, anyPunctuation: of, autolink: sf, blockSkip: Yd, br: fr, code: Wd, del: fn, delLDelim: fn, delRDelim: fn, emStrongLDelim: Vd, emStrongRDelimAst: Zd, emStrongRDelimUnd: Qd, escape: Fd, link: af, nolink: br, punctuation: jd, reflink: mr, reflinkSearch: cf, tag: lf, text: Gd, url: fn }, uf = { ...So, link: Ne(/^!?\[(label)\]\((.*?)\)/).replace("label", Oi).getRegex(), reflink: Ne(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Oi).getRegex() }, io = { ...So, emStrongRDelimAst: Jd, emStrongLDelim: Xd, delLDelim: ef, delRDelim: nf, url: Ne(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", rs).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: Ne(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", rs).getRegex() }, df = { ...io, br: Ne(fr).replace("{2,}", "*").getRegex(), text: Ne(io.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Ti = { normal: wo, gfm: Ud, pedantic: Hd }, Vn = { normal: So, gfm: io, breaks: df, pedantic: uf }, ff = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ls = (e) => ff[e];
10546
+ })(), ct = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (e) => new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: An((e) => new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)), hrRegex: An((e) => new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)), fencesBeginRegex: An((e) => new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)), headingBeginRegex: An((e) => new RegExp(`^ {0,${e}}#`)), htmlBeginRegex: An((e) => new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")), blockquoteBeginRegex: An((e) => new RegExp(`^ {0,${e}}>`)) }, Rd = /^(?:[ \t]*(?:\n|$))+/, Md = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Od = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, ri = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Id = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, vo = / {0,3}(?:[*+-]|\d{1,9}[.)])/, cr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, ur = Ne(cr).replace(/bull/g, vo).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), zd = Ne(cr).replace(/bull/g, vo).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), yo = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ld = /^[^\n]+/, ko = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, $d = Ne(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ko).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Dd = Ne(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, vo).getRegex(), $i = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", xo = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Pd = Ne("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", xo).replace("tag", $i).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), dr = Ne(yo).replace("hr", ri).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $i).getRegex(), Bd = Ne(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", dr).getRegex(), wo = { blockquote: Bd, code: Md, def: $d, fences: Od, heading: Id, hr: ri, html: Pd, lheading: ur, list: Dd, newline: Rd, paragraph: dr, table: fn, text: Ld }, ss = Ne("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", ri).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $i).getRegex(), Ud = { ...wo, lheading: zd, table: ss, paragraph: Ne(yo).replace("hr", ri).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ss).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", $i).getRegex() }, Hd = { ...wo, html: Ne(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", xo).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: fn, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: Ne(yo).replace("hr", ri).replace("heading", ` *#{1,6} *[^
10547
+ ]`).replace("lheading", ur).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, Fd = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Wd = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, fr = /^( {2,}|\\)\n(?!\s*$)/, Gd = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Dn = /[\p{P}\p{S}]/u, Di = /[\s\p{P}\p{S}]/u, Eo = /[^\s\p{P}\p{S}]/u, jd = Ne(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Di).getRegex(), pr = /(?!~)[\p{P}\p{S}]/u, qd = /(?!~)[\s\p{P}\p{S}]/u, Kd = /(?:[^\s\p{P}\p{S}]|~)/u, Yd = Ne(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Nd ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), gr = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, Vd = Ne(gr, "u").replace(/punct/g, Dn).getRegex(), Xd = Ne(gr, "u").replace(/punct/g, pr).getRegex(), hr = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Zd = Ne(hr, "gu").replace(/notPunctSpace/g, Eo).replace(/punctSpace/g, Di).replace(/punct/g, Dn).getRegex(), Jd = Ne(hr, "gu").replace(/notPunctSpace/g, Kd).replace(/punctSpace/g, qd).replace(/punct/g, pr).getRegex(), Qd = Ne("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Eo).replace(/punctSpace/g, Di).replace(/punct/g, Dn).getRegex(), ef = Ne(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Dn).getRegex(), tf = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", nf = Ne(tf, "gu").replace(/notPunctSpace/g, Eo).replace(/punctSpace/g, Di).replace(/punct/g, Dn).getRegex(), of = Ne(/\\(punct)/, "gu").replace(/punct/g, Dn).getRegex(), sf = Ne(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), rf = Ne(xo).replace("(?:-->|$)", "-->").getRegex(), lf = Ne("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", rf).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Oi = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, af = Ne(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Oi).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), mr = Ne(/^!?\[(label)\]\[(ref)\]/).replace("label", Oi).replace("ref", ko).getRegex(), br = Ne(/^!?\[(ref)\](?:\[\])?/).replace("ref", ko).getRegex(), cf = Ne("reflink|nolink(?!\\()", "g").replace("reflink", mr).replace("nolink", br).getRegex(), rs = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, So = { _backpedal: fn, anyPunctuation: of, autolink: sf, blockSkip: Yd, br: fr, code: Wd, del: fn, delLDelim: fn, delRDelim: fn, emStrongLDelim: Vd, emStrongRDelimAst: Zd, emStrongRDelimUnd: Qd, escape: Fd, link: af, nolink: br, punctuation: jd, reflink: mr, reflinkSearch: cf, tag: lf, text: Gd, url: fn }, uf = { ...So, link: Ne(/^!?\[(label)\]\((.*?)\)/).replace("label", Oi).getRegex(), reflink: Ne(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Oi).getRegex() }, io = { ...So, emStrongRDelimAst: Jd, emStrongLDelim: Xd, delLDelim: ef, delRDelim: nf, url: Ne(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", rs).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: Ne(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", rs).getRegex() }, df = { ...io, br: Ne(fr).replace("{2,}", "*").getRegex(), text: Ne(io.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Ti = { normal: wo, gfm: Ud, pedantic: Hd }, Yn = { normal: So, gfm: io, breaks: df, pedantic: uf }, ff = { "&": "&amp;", "<": "&lt;", ">": "&gt;", '"': "&quot;", "'": "&#39;" }, ls = (e) => ff[e];
10551
10548
  function Pt(e, n) {
10552
10549
  if (n) {
10553
10550
  if (ct.escapeTest.test(e)) return e.replace(ct.escapeReplace, ls);
@@ -10953,11 +10950,11 @@ ${g}` : g;
10953
10950
  Ue(this, "inlineQueue");
10954
10951
  Ue(this, "tokenizer");
10955
10952
  this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = n || vn, this.options.tokenizer = this.options.tokenizer || new Ii(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: !1, inRawBlock: !1, top: !0 };
10956
- let t = { other: ct, block: Ti.normal, inline: Vn.normal };
10957
- this.options.pedantic ? (t.block = Ti.pedantic, t.inline = Vn.pedantic) : this.options.gfm && (t.block = Ti.gfm, this.options.breaks ? t.inline = Vn.breaks : t.inline = Vn.gfm), this.tokenizer.rules = t;
10953
+ let t = { other: ct, block: Ti.normal, inline: Yn.normal };
10954
+ this.options.pedantic ? (t.block = Ti.pedantic, t.inline = Yn.pedantic) : this.options.gfm && (t.block = Ti.gfm, this.options.breaks ? t.inline = Yn.breaks : t.inline = Yn.gfm), this.tokenizer.rules = t;
10958
10955
  }
10959
10956
  static get rules() {
10960
- return { block: Ti, inline: Vn };
10957
+ return { block: Ti, inline: Yn };
10961
10958
  }
10962
10959
  static lex(n, t) {
10963
10960
  return new oo(t).lex(n);
@@ -11468,7 +11465,7 @@ ${e}</tr>
11468
11465
  }
11469
11466
  return i;
11470
11467
  }
11471
- }, Ci, Jn = (Ci = class {
11468
+ }, Ci, Zn = (Ci = class {
11472
11469
  constructor(e) {
11473
11470
  Ue(this, "options");
11474
11471
  Ue(this, "block");
@@ -11503,7 +11500,7 @@ ${e}</tr>
11503
11500
  Ue(this, "TextRenderer", To);
11504
11501
  Ue(this, "Lexer", Rt);
11505
11502
  Ue(this, "Tokenizer", Ii);
11506
- Ue(this, "Hooks", Jn);
11503
+ Ue(this, "Hooks", Zn);
11507
11504
  this.use(...e);
11508
11505
  }
11509
11506
  walkTokens(e, n) {
@@ -11577,13 +11574,13 @@ ${e}</tr>
11577
11574
  i.tokenizer = o;
11578
11575
  }
11579
11576
  if (t.hooks) {
11580
- let o = this.defaults.hooks || new Jn();
11577
+ let o = this.defaults.hooks || new Zn();
11581
11578
  for (let r in t.hooks) {
11582
11579
  if (!(r in o)) throw new Error(`hook '${r}' does not exist`);
11583
11580
  if (["options", "block"].includes(r)) continue;
11584
11581
  let a = r, d = t.hooks[a], c = o[a];
11585
- Jn.passThroughHooks.has(r) ? o[a] = (f) => {
11586
- if (this.defaults.async && Jn.passThroughHooksRespectAsync.has(r)) return (async () => {
11582
+ Zn.passThroughHooks.has(r) ? o[a] = (f) => {
11583
+ if (this.defaults.async && Zn.passThroughHooksRespectAsync.has(r)) return (async () => {
11587
11584
  let v = await d.call(o, f);
11588
11585
  return c.call(o, v);
11589
11586
  })();
@@ -11676,7 +11673,7 @@ He.TextRenderer = To;
11676
11673
  He.Lexer = Rt;
11677
11674
  He.lexer = Rt.lex;
11678
11675
  He.Tokenizer = Ii;
11679
- He.Hooks = Jn;
11676
+ He.Hooks = Zn;
11680
11677
  He.parse = He;
11681
11678
  He.options;
11682
11679
  He.setOptions;
@@ -11727,7 +11724,7 @@ function kf(e, n) {
11727
11724
  }
11728
11725
  }
11729
11726
  const yr = Object.entries, ps = Object.setPrototypeOf, xf = Object.isFrozen, wf = Object.getPrototypeOf, Ef = Object.getOwnPropertyDescriptor;
11730
- let mt = Object.freeze, wt = Object.seal, zn = Object.create, kr = typeof Reflect < "u" && Reflect, ro = kr.apply, lo = kr.construct;
11727
+ let mt = Object.freeze, wt = Object.seal, In = Object.create, kr = typeof Reflect < "u" && Reflect, ro = kr.apply, lo = kr.construct;
11731
11728
  mt || (mt = function(n) {
11732
11729
  return n;
11733
11730
  });
@@ -11744,7 +11741,7 @@ lo || (lo = function(n) {
11744
11741
  i[o - 1] = arguments[o];
11745
11742
  return new n(...i);
11746
11743
  });
11747
- const un = Je(Array.prototype.forEach), Sf = Je(Array.prototype.lastIndexOf), gs = Je(Array.prototype.pop), Rn = Je(Array.prototype.push), Tf = Je(Array.prototype.splice), gt = Array.isArray, Qn = Je(String.prototype.toLowerCase), Vi = Je(String.prototype.toString), hs = Je(String.prototype.match), Mn = Je(String.prototype.replace), ms = Je(String.prototype.indexOf), _f = Je(String.prototype.trim), Cf = Je(Number.prototype.toString), Af = Je(Boolean.prototype.toString), bs = typeof BigInt > "u" ? null : Je(BigInt.prototype.toString), vs = typeof Symbol > "u" ? null : Je(Symbol.prototype.toString), Ve = Je(Object.prototype.hasOwnProperty), Xn = Je(Object.prototype.toString), it = Je(RegExp.prototype.test), On = Nf(TypeError);
11744
+ const un = Je(Array.prototype.forEach), Sf = Je(Array.prototype.lastIndexOf), gs = Je(Array.prototype.pop), Nn = Je(Array.prototype.push), Tf = Je(Array.prototype.splice), gt = Array.isArray, Jn = Je(String.prototype.toLowerCase), Vi = Je(String.prototype.toString), hs = Je(String.prototype.match), Rn = Je(String.prototype.replace), ms = Je(String.prototype.indexOf), _f = Je(String.prototype.trim), Cf = Je(Number.prototype.toString), Af = Je(Boolean.prototype.toString), bs = typeof BigInt > "u" ? null : Je(BigInt.prototype.toString), vs = typeof Symbol > "u" ? null : Je(Symbol.prototype.toString), Ke = Je(Object.prototype.hasOwnProperty), Vn = Je(Object.prototype.toString), it = Je(RegExp.prototype.test), Mn = Nf(TypeError);
11748
11745
  function Je(e) {
11749
11746
  return function(n) {
11750
11747
  n instanceof RegExp && (n.lastIndex = 0);
@@ -11761,7 +11758,7 @@ function Nf(e) {
11761
11758
  };
11762
11759
  }
11763
11760
  function ke(e, n) {
11764
- let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Qn;
11761
+ let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Jn;
11765
11762
  if (ps && ps(e, null), !gt(n))
11766
11763
  return e;
11767
11764
  let i = n.length;
@@ -11777,15 +11774,15 @@ function ke(e, n) {
11777
11774
  }
11778
11775
  function Rf(e) {
11779
11776
  for (let n = 0; n < e.length; n++)
11780
- Ve(e, n) || (e[n] = null);
11777
+ Ke(e, n) || (e[n] = null);
11781
11778
  return e;
11782
11779
  }
11783
11780
  function lt(e) {
11784
- const n = zn(null);
11781
+ const n = In(null);
11785
11782
  for (const i of yr(e)) {
11786
11783
  var t = yf(i, 2);
11787
11784
  const o = t[0], r = t[1];
11788
- Ve(e, o) && (gt(r) ? n[o] = Rf(r) : r && typeof r == "object" && r.constructor === Object ? n[o] = lt(r) : n[o] = r);
11785
+ Ke(e, o) && (gt(r) ? n[o] = Rf(r) : r && typeof r == "object" && r.constructor === Object ? n[o] = lt(r) : n[o] = r);
11789
11786
  }
11790
11787
  return n;
11791
11788
  }
@@ -11802,20 +11799,20 @@ function Mf(e) {
11802
11799
  case "symbol":
11803
11800
  return vs ? vs(e) : "Symbol()";
11804
11801
  case "undefined":
11805
- return Xn(e);
11802
+ return Vn(e);
11806
11803
  case "function":
11807
11804
  case "object": {
11808
11805
  if (e === null)
11809
- return Xn(e);
11806
+ return Vn(e);
11810
11807
  const n = e, t = Bt(n, "toString");
11811
11808
  if (typeof t == "function") {
11812
11809
  const i = t(n);
11813
- return typeof i == "string" ? i : Xn(i);
11810
+ return typeof i == "string" ? i : Vn(i);
11814
11811
  }
11815
- return Xn(e);
11812
+ return Vn(e);
11816
11813
  }
11817
11814
  default:
11818
- return Xn(e);
11815
+ return Vn(e);
11819
11816
  }
11820
11817
  }
11821
11818
  function Bt(e, n) {
@@ -11915,7 +11912,7 @@ function xr() {
11915
11912
  let b, L = "", V = 0;
11916
11913
  const ae = function(p) {
11917
11914
  if (V > 0)
11918
- throw On('The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
11915
+ throw Mn('The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
11919
11916
  V++;
11920
11917
  try {
11921
11918
  return b.createHTML(p);
@@ -11928,9 +11925,9 @@ function xr() {
11928
11925
  const W = Lf, B = $f, J = Df, ye = Pf, Re = Bf, Oe = Uf, xe = Hf, Fe = Wf;
11929
11926
  let $ = Es, O = null;
11930
11927
  const fe = ke({}, [...ys, ...Xi, ...Zi, ...Ji, ...ks]);
11931
- let me = null;
11928
+ let ge = null;
11932
11929
  const U = ke({}, [...xs, ...Qi, ...ws, ..._i]);
11933
- let _ = Object.seal(zn(null, {
11930
+ let _ = Object.seal(In(null, {
11934
11931
  tagNameCheck: {
11935
11932
  writable: !0,
11936
11933
  configurable: !1,
@@ -11950,7 +11947,7 @@ function xr() {
11950
11947
  value: !1
11951
11948
  }
11952
11949
  })), we = null, Ee = null;
11953
- const Xe = Object.seal(zn(null, {
11950
+ const Ye = Object.seal(In(null, {
11954
11951
  tagCheck: {
11955
11952
  writable: !0,
11956
11953
  configurable: !1,
@@ -11970,9 +11967,9 @@ function xr() {
11970
11967
  const Ht = ke({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
11971
11968
  let li = null;
11972
11969
  const ai = ke({}, ["audio", "video", "img", "source", "image", "track"]);
11973
- let Un = null;
11970
+ let Pn = null;
11974
11971
  const kn = ke({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Vt = "http://www.w3.org/1998/Math/MathML", vt = "http://www.w3.org/2000/svg", Pe = "http://www.w3.org/1999/xhtml";
11975
- let Ae = Pe, Hn = !1, ut = null;
11972
+ let Ae = Pe, Bn = !1, ut = null;
11976
11973
  const re = ke({}, [Vt, vt, Pe], Vi);
11977
11974
  let xn = ke({}, ["mi", "mo", "mn", "ms", "mtext"]), wn = ke({}, ["annotation-xml"]);
11978
11975
  const Pi = ke({}, ["title", "style", "font", "a", "script"]);
@@ -11981,18 +11978,18 @@ function xr() {
11981
11978
  let We = null, Zt = null;
11982
11979
  const ci = t.createElement("form"), Lt = function(p) {
11983
11980
  return p instanceof RegExp || p instanceof Function;
11984
- }, Fn = function() {
11981
+ }, Un = function() {
11985
11982
  let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
11986
11983
  if (Zt && Zt === p)
11987
11984
  return;
11988
11985
  (!p || typeof p != "object") && (p = {}), p = lt(p), Xt = // eslint-disable-next-line unicorn/prefer-includes
11989
- Bi.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? Ui : p.PARSER_MEDIA_TYPE, We = Xt === "application/xhtml+xml" ? Vi : Qn, O = Ve(p, "ALLOWED_TAGS") && gt(p.ALLOWED_TAGS) ? ke({}, p.ALLOWED_TAGS, We) : fe, me = Ve(p, "ALLOWED_ATTR") && gt(p.ALLOWED_ATTR) ? ke({}, p.ALLOWED_ATTR, We) : U, ut = Ve(p, "ALLOWED_NAMESPACES") && gt(p.ALLOWED_NAMESPACES) ? ke({}, p.ALLOWED_NAMESPACES, Vi) : re, Un = Ve(p, "ADD_URI_SAFE_ATTR") && gt(p.ADD_URI_SAFE_ATTR) ? ke(lt(kn), p.ADD_URI_SAFE_ATTR, We) : kn, li = Ve(p, "ADD_DATA_URI_TAGS") && gt(p.ADD_DATA_URI_TAGS) ? ke(lt(ai), p.ADD_DATA_URI_TAGS, We) : ai, rt = Ve(p, "FORBID_CONTENTS") && gt(p.FORBID_CONTENTS) ? ke({}, p.FORBID_CONTENTS, We) : Ht, we = Ve(p, "FORBID_TAGS") && gt(p.FORBID_TAGS) ? ke({}, p.FORBID_TAGS, We) : lt({}), Ee = Ve(p, "FORBID_ATTR") && gt(p.FORBID_ATTR) ? ke({}, p.FORBID_ATTR, We) : lt({}), Qe = Ve(p, "USE_PROFILES") ? p.USE_PROFILES && typeof p.USE_PROFILES == "object" ? lt(p.USE_PROFILES) : p.USE_PROFILES : !1, ot = p.ALLOW_ARIA_ATTR !== !1, tt = p.ALLOW_DATA_ATTR !== !1, yn = p.ALLOW_UNKNOWN_PROTOCOLS || !1, Yt = p.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = p.SAFE_FOR_TEMPLATES || !1, It = p.SAFE_FOR_XML !== !1, Be = p.WHOLE_DOCUMENT || !1, st = p.RETURN_DOM || !1, Tt = p.RETURN_DOM_FRAGMENT || !1, zt = p.RETURN_TRUSTED_TYPE || !1, St = p.FORCE_BODY || !1, j = p.SANITIZE_DOM !== !1, Z = p.SANITIZE_NAMED_PROPS || !1, Ce = p.KEEP_CONTENT !== !1, Ge = p.IN_PLACE || !1, $ = Of(p.ALLOWED_URI_REGEXP) ? p.ALLOWED_URI_REGEXP : Es, Ae = typeof p.NAMESPACE == "string" ? p.NAMESPACE : Pe, xn = Ve(p, "MATHML_TEXT_INTEGRATION_POINTS") && p.MATHML_TEXT_INTEGRATION_POINTS && typeof p.MATHML_TEXT_INTEGRATION_POINTS == "object" ? lt(p.MATHML_TEXT_INTEGRATION_POINTS) : ke({}, ["mi", "mo", "mn", "ms", "mtext"]), wn = Ve(p, "HTML_INTEGRATION_POINTS") && p.HTML_INTEGRATION_POINTS && typeof p.HTML_INTEGRATION_POINTS == "object" ? lt(p.HTML_INTEGRATION_POINTS) : ke({}, ["annotation-xml"]);
11990
- const z = Ve(p, "CUSTOM_ELEMENT_HANDLING") && p.CUSTOM_ELEMENT_HANDLING && typeof p.CUSTOM_ELEMENT_HANDLING == "object" ? lt(p.CUSTOM_ELEMENT_HANDLING) : zn(null);
11991
- if (_ = zn(null), Ve(z, "tagNameCheck") && Lt(z.tagNameCheck) && (_.tagNameCheck = z.tagNameCheck), Ve(z, "attributeNameCheck") && Lt(z.attributeNameCheck) && (_.attributeNameCheck = z.attributeNameCheck), Ve(z, "allowCustomizedBuiltInElements") && typeof z.allowCustomizedBuiltInElements == "boolean" && (_.allowCustomizedBuiltInElements = z.allowCustomizedBuiltInElements), oe && (tt = !1), Tt && (st = !0), Qe && (O = ke({}, ks), me = zn(null), Qe.html === !0 && (ke(O, ys), ke(me, xs)), Qe.svg === !0 && (ke(O, Xi), ke(me, Qi), ke(me, _i)), Qe.svgFilters === !0 && (ke(O, Zi), ke(me, Qi), ke(me, _i)), Qe.mathMl === !0 && (ke(O, Ji), ke(me, ws), ke(me, _i))), Xe.tagCheck = null, Xe.attributeCheck = null, Ve(p, "ADD_TAGS") && (typeof p.ADD_TAGS == "function" ? Xe.tagCheck = p.ADD_TAGS : gt(p.ADD_TAGS) && (O === fe && (O = lt(O)), ke(O, p.ADD_TAGS, We))), Ve(p, "ADD_ATTR") && (typeof p.ADD_ATTR == "function" ? Xe.attributeCheck = p.ADD_ATTR : gt(p.ADD_ATTR) && (me === U && (me = lt(me)), ke(me, p.ADD_ATTR, We))), Ve(p, "ADD_URI_SAFE_ATTR") && gt(p.ADD_URI_SAFE_ATTR) && ke(Un, p.ADD_URI_SAFE_ATTR, We), Ve(p, "FORBID_CONTENTS") && gt(p.FORBID_CONTENTS) && (rt === Ht && (rt = lt(rt)), ke(rt, p.FORBID_CONTENTS, We)), Ve(p, "ADD_FORBID_CONTENTS") && gt(p.ADD_FORBID_CONTENTS) && (rt === Ht && (rt = lt(rt)), ke(rt, p.ADD_FORBID_CONTENTS, We)), Ce && (O["#text"] = !0), Be && ke(O, ["html", "head", "body"]), O.table && (ke(O, ["tbody"]), delete we.tbody), p.TRUSTED_TYPES_POLICY) {
11986
+ Bi.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? Ui : p.PARSER_MEDIA_TYPE, We = Xt === "application/xhtml+xml" ? Vi : Jn, O = Ke(p, "ALLOWED_TAGS") && gt(p.ALLOWED_TAGS) ? ke({}, p.ALLOWED_TAGS, We) : fe, ge = Ke(p, "ALLOWED_ATTR") && gt(p.ALLOWED_ATTR) ? ke({}, p.ALLOWED_ATTR, We) : U, ut = Ke(p, "ALLOWED_NAMESPACES") && gt(p.ALLOWED_NAMESPACES) ? ke({}, p.ALLOWED_NAMESPACES, Vi) : re, Pn = Ke(p, "ADD_URI_SAFE_ATTR") && gt(p.ADD_URI_SAFE_ATTR) ? ke(lt(kn), p.ADD_URI_SAFE_ATTR, We) : kn, li = Ke(p, "ADD_DATA_URI_TAGS") && gt(p.ADD_DATA_URI_TAGS) ? ke(lt(ai), p.ADD_DATA_URI_TAGS, We) : ai, rt = Ke(p, "FORBID_CONTENTS") && gt(p.FORBID_CONTENTS) ? ke({}, p.FORBID_CONTENTS, We) : Ht, we = Ke(p, "FORBID_TAGS") && gt(p.FORBID_TAGS) ? ke({}, p.FORBID_TAGS, We) : lt({}), Ee = Ke(p, "FORBID_ATTR") && gt(p.FORBID_ATTR) ? ke({}, p.FORBID_ATTR, We) : lt({}), Qe = Ke(p, "USE_PROFILES") ? p.USE_PROFILES && typeof p.USE_PROFILES == "object" ? lt(p.USE_PROFILES) : p.USE_PROFILES : !1, ot = p.ALLOW_ARIA_ATTR !== !1, tt = p.ALLOW_DATA_ATTR !== !1, yn = p.ALLOW_UNKNOWN_PROTOCOLS || !1, Yt = p.ALLOW_SELF_CLOSE_IN_ATTR !== !1, oe = p.SAFE_FOR_TEMPLATES || !1, It = p.SAFE_FOR_XML !== !1, Be = p.WHOLE_DOCUMENT || !1, st = p.RETURN_DOM || !1, Tt = p.RETURN_DOM_FRAGMENT || !1, zt = p.RETURN_TRUSTED_TYPE || !1, St = p.FORCE_BODY || !1, j = p.SANITIZE_DOM !== !1, Z = p.SANITIZE_NAMED_PROPS || !1, Ce = p.KEEP_CONTENT !== !1, Ge = p.IN_PLACE || !1, $ = Of(p.ALLOWED_URI_REGEXP) ? p.ALLOWED_URI_REGEXP : Es, Ae = typeof p.NAMESPACE == "string" ? p.NAMESPACE : Pe, xn = Ke(p, "MATHML_TEXT_INTEGRATION_POINTS") && p.MATHML_TEXT_INTEGRATION_POINTS && typeof p.MATHML_TEXT_INTEGRATION_POINTS == "object" ? lt(p.MATHML_TEXT_INTEGRATION_POINTS) : ke({}, ["mi", "mo", "mn", "ms", "mtext"]), wn = Ke(p, "HTML_INTEGRATION_POINTS") && p.HTML_INTEGRATION_POINTS && typeof p.HTML_INTEGRATION_POINTS == "object" ? lt(p.HTML_INTEGRATION_POINTS) : ke({}, ["annotation-xml"]);
11987
+ const z = Ke(p, "CUSTOM_ELEMENT_HANDLING") && p.CUSTOM_ELEMENT_HANDLING && typeof p.CUSTOM_ELEMENT_HANDLING == "object" ? lt(p.CUSTOM_ELEMENT_HANDLING) : In(null);
11988
+ if (_ = In(null), Ke(z, "tagNameCheck") && Lt(z.tagNameCheck) && (_.tagNameCheck = z.tagNameCheck), Ke(z, "attributeNameCheck") && Lt(z.attributeNameCheck) && (_.attributeNameCheck = z.attributeNameCheck), Ke(z, "allowCustomizedBuiltInElements") && typeof z.allowCustomizedBuiltInElements == "boolean" && (_.allowCustomizedBuiltInElements = z.allowCustomizedBuiltInElements), oe && (tt = !1), Tt && (st = !0), Qe && (O = ke({}, ks), ge = In(null), Qe.html === !0 && (ke(O, ys), ke(ge, xs)), Qe.svg === !0 && (ke(O, Xi), ke(ge, Qi), ke(ge, _i)), Qe.svgFilters === !0 && (ke(O, Zi), ke(ge, Qi), ke(ge, _i)), Qe.mathMl === !0 && (ke(O, Ji), ke(ge, ws), ke(ge, _i))), Ye.tagCheck = null, Ye.attributeCheck = null, Ke(p, "ADD_TAGS") && (typeof p.ADD_TAGS == "function" ? Ye.tagCheck = p.ADD_TAGS : gt(p.ADD_TAGS) && (O === fe && (O = lt(O)), ke(O, p.ADD_TAGS, We))), Ke(p, "ADD_ATTR") && (typeof p.ADD_ATTR == "function" ? Ye.attributeCheck = p.ADD_ATTR : gt(p.ADD_ATTR) && (ge === U && (ge = lt(ge)), ke(ge, p.ADD_ATTR, We))), Ke(p, "ADD_URI_SAFE_ATTR") && gt(p.ADD_URI_SAFE_ATTR) && ke(Pn, p.ADD_URI_SAFE_ATTR, We), Ke(p, "FORBID_CONTENTS") && gt(p.FORBID_CONTENTS) && (rt === Ht && (rt = lt(rt)), ke(rt, p.FORBID_CONTENTS, We)), Ke(p, "ADD_FORBID_CONTENTS") && gt(p.ADD_FORBID_CONTENTS) && (rt === Ht && (rt = lt(rt)), ke(rt, p.ADD_FORBID_CONTENTS, We)), Ce && (O["#text"] = !0), Be && ke(O, ["html", "head", "body"]), O.table && (ke(O, ["tbody"]), delete we.tbody), p.TRUSTED_TYPES_POLICY) {
11992
11989
  if (typeof p.TRUSTED_TYPES_POLICY.createHTML != "function")
11993
- throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
11990
+ throw Mn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
11994
11991
  if (typeof p.TRUSTED_TYPES_POLICY.createScriptURL != "function")
11995
- throw On('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
11992
+ throw Mn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
11996
11993
  const K = b;
11997
11994
  b = p.TRUSTED_TYPES_POLICY;
11998
11995
  try {
@@ -12002,17 +11999,17 @@ function xr() {
12002
11999
  }
12003
12000
  } else
12004
12001
  b === void 0 && p.TRUSTED_TYPES_POLICY !== null && (b = jf(v, o)), b && typeof L == "string" && (L = ae(""));
12005
- (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && O === fe && (O = lt(O)), T.uponSanitizeAttribute.length > 0 && me === U && (me = lt(me)), mt && mt(p), Zt = p;
12002
+ (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && O === fe && (O = lt(O)), T.uponSanitizeAttribute.length > 0 && ge === U && (ge = lt(ge)), mt && mt(p), Zt = p;
12006
12003
  }, ui = ke({}, [...Xi, ...Zi, ...If]), di = ke({}, [...Ji, ...zf]), Hi = function(p) {
12007
12004
  let z = E(p);
12008
12005
  (!z || !z.tagName) && (z = {
12009
12006
  namespaceURI: Ae,
12010
12007
  tagName: "template"
12011
12008
  });
12012
- const K = Qn(p.tagName), Me = Qn(z.tagName);
12009
+ const K = Jn(p.tagName), Me = Jn(z.tagName);
12013
12010
  return ut[p.namespaceURI] ? p.namespaceURI === vt ? z.namespaceURI === Pe ? K === "svg" : z.namespaceURI === Vt ? K === "svg" && (Me === "annotation-xml" || xn[Me]) : !!ui[K] : p.namespaceURI === Vt ? z.namespaceURI === Pe ? K === "math" : z.namespaceURI === vt ? K === "math" && wn[Me] : !!di[K] : p.namespaceURI === Pe ? z.namespaceURI === vt && !wn[Me] || z.namespaceURI === Vt && !xn[Me] ? !1 : !di[K] && (Pi[K] || !ui[K]) : !!(Xt === "application/xhtml+xml" && ut[p.namespaceURI]) : !1;
12014
12011
  }, yt = function(p) {
12015
- Rn(n.removed, {
12012
+ Nn(n.removed, {
12016
12013
  element: p
12017
12014
  });
12018
12015
  try {
@@ -12022,12 +12019,12 @@ function xr() {
12022
12019
  }
12023
12020
  }, Ft = function(p, z) {
12024
12021
  try {
12025
- Rn(n.removed, {
12022
+ Nn(n.removed, {
12026
12023
  attribute: z.getAttributeNode(p),
12027
12024
  from: z
12028
12025
  });
12029
12026
  } catch {
12030
- Rn(n.removed, {
12027
+ Nn(n.removed, {
12031
12028
  attribute: null,
12032
12029
  from: z
12033
12030
  });
@@ -12043,13 +12040,13 @@ function xr() {
12043
12040
  z.setAttribute(p, "");
12044
12041
  } catch {
12045
12042
  }
12046
- }, Wn = function(p) {
12043
+ }, Hn = function(p) {
12047
12044
  let z = null, K = null;
12048
12045
  if (St)
12049
12046
  p = "<remove></remove>" + p;
12050
12047
  else {
12051
- const ze = hs(p, /^[\r\n\t ]+/);
12052
- K = ze && ze[0];
12048
+ const Le = hs(p, /^[\r\n\t ]+/);
12049
+ K = Le && Le[0];
12053
12050
  }
12054
12051
  Xt === "application/xhtml+xml" && Ae === Pe && (p = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + p + "</body></html>");
12055
12052
  const Me = b ? ae(p) : p;
@@ -12061,12 +12058,12 @@ function xr() {
12061
12058
  if (!z || !z.documentElement) {
12062
12059
  z = ne.createDocument(Ae, "template", null);
12063
12060
  try {
12064
- z.documentElement.innerHTML = Hn ? L : Me;
12061
+ z.documentElement.innerHTML = Bn ? L : Me;
12065
12062
  } catch {
12066
12063
  }
12067
12064
  }
12068
- const pe = z.body || z.documentElement;
12069
- return p && K && pe.insertBefore(t.createTextNode(K), pe.childNodes[0] || null), Ae === Pe ? ee.call(z, Be ? "html" : "body")[0] : Be ? z.documentElement : pe;
12065
+ const he = z.body || z.documentElement;
12066
+ return p && K && he.insertBefore(t.createTextNode(K), he.childNodes[0] || null), Ae === Pe ? ee.call(z, Be ? "html" : "body")[0] : Be ? z.documentElement : he;
12070
12067
  }, le = function(p) {
12071
12068
  return ve.call(
12072
12069
  p.ownerDocument || p,
@@ -12085,16 +12082,16 @@ function xr() {
12085
12082
  c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION,
12086
12083
  null
12087
12084
  );
12088
- let pe = Me.nextNode();
12089
- for (; pe; ) {
12090
- let Ke = pe.data;
12085
+ let he = Me.nextNode();
12086
+ for (; he; ) {
12087
+ let Ve = he.data;
12091
12088
  un([W, B, J], (dt) => {
12092
- Ke = Mn(Ke, dt, " ");
12093
- }), pe.data = Ke, pe = Me.nextNode();
12089
+ Ve = Rn(Ve, dt, " ");
12090
+ }), he.data = Ve, he = Me.nextNode();
12094
12091
  }
12095
- const ze = (z = (K = p.querySelectorAll) === null || K === void 0 ? void 0 : K.call(p, "template")) !== null && z !== void 0 ? z : [];
12096
- un(Array.from(ze), (Ke) => {
12097
- _t(Ke.content) && nt(Ke.content);
12092
+ const Le = (z = (K = p.querySelectorAll) === null || K === void 0 ? void 0 : K.call(p, "template")) !== null && z !== void 0 ? z : [];
12093
+ un(Array.from(Le), (Ve) => {
12094
+ _t(Ve.content) && nt(Ve.content);
12098
12095
  });
12099
12096
  }, rn = function(p) {
12100
12097
  const z = C ? C(p) : null;
@@ -12144,7 +12141,7 @@ function xr() {
12144
12141
  K.call(n, p, z, Zt);
12145
12142
  });
12146
12143
  }
12147
- const Gn = function(p) {
12144
+ const Fn = function(p) {
12148
12145
  let z = null;
12149
12146
  if (Ct(T.beforeSanitizeElements, p, null), rn(p))
12150
12147
  return yt(p), !0;
@@ -12154,30 +12151,30 @@ function xr() {
12154
12151
  allowedTags: O
12155
12152
  }), It && p.hasChildNodes() && !En(p.firstElementChild) && it(/<[/\w!]/g, p.innerHTML) && it(/<[/\w!]/g, p.textContent) || It && p.namespaceURI === Pe && K === "style" && En(p.firstElementChild) || p.nodeType === Dt.progressingInstruction || It && p.nodeType === Dt.comment && it(/<[/\w]/g, p.data))
12156
12153
  return yt(p), !0;
12157
- if (we[K] || !(Xe.tagCheck instanceof Function && Xe.tagCheck(K)) && !O[K]) {
12154
+ if (we[K] || !(Ye.tagCheck instanceof Function && Ye.tagCheck(K)) && !O[K]) {
12158
12155
  if (!we[K] && fi(K) && (_.tagNameCheck instanceof RegExp && it(_.tagNameCheck, K) || _.tagNameCheck instanceof Function && _.tagNameCheck(K)))
12159
12156
  return !1;
12160
12157
  if (Ce && !rt[K]) {
12161
- const pe = E(p), ze = N(p);
12162
- if (ze && pe) {
12163
- const Ke = ze.length;
12164
- for (let dt = Ke - 1; dt >= 0; --dt) {
12165
- const ft = S(ze[dt], !0);
12166
- pe.insertBefore(ft, D(p));
12158
+ const he = E(p), Le = N(p);
12159
+ if (Le && he) {
12160
+ const Ve = Le.length;
12161
+ for (let dt = Ve - 1; dt >= 0; --dt) {
12162
+ const ft = S(Le[dt], !0);
12163
+ he.insertBefore(ft, D(p));
12167
12164
  }
12168
12165
  }
12169
12166
  }
12170
12167
  return yt(p), !0;
12171
12168
  }
12172
- return (R ? R(p) : p.nodeType) === Dt.element && !Hi(p) || (K === "noscript" || K === "noembed" || K === "noframes") && it(/<\/no(script|embed|frames)/i, p.innerHTML) ? (yt(p), !0) : (oe && p.nodeType === Dt.text && (z = p.textContent, un([W, B, J], (pe) => {
12173
- z = Mn(z, pe, " ");
12174
- }), p.textContent !== z && (Rn(n.removed, {
12169
+ return (R ? R(p) : p.nodeType) === Dt.element && !Hi(p) || (K === "noscript" || K === "noembed" || K === "noframes") && it(/<\/no(script|embed|frames)/i, p.innerHTML) ? (yt(p), !0) : (oe && p.nodeType === Dt.text && (z = p.textContent, un([W, B, J], (he) => {
12170
+ z = Rn(z, he, " ");
12171
+ }), p.textContent !== z && (Nn(n.removed, {
12175
12172
  element: p.cloneNode()
12176
12173
  }), p.textContent = z)), Ct(T.afterSanitizeElements, p, null), !1);
12177
12174
  }, Jt = function(p, z, K) {
12178
12175
  if (Ee[z] || j && (z === "id" || z === "name") && (K in t || K in ci))
12179
12176
  return !1;
12180
- const Me = me[z] || Xe.attributeCheck instanceof Function && Xe.attributeCheck(z, p);
12177
+ const Me = ge[z] || Ye.attributeCheck instanceof Function && Ye.attributeCheck(z, p);
12181
12178
  if (!(tt && !Ee[z] && it(ye, z))) {
12182
12179
  if (!(ot && it(Re, z))) {
12183
12180
  if (!Me || Ee[z]) {
@@ -12189,10 +12186,10 @@ function xr() {
12189
12186
  // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
12190
12187
  z === "is" && _.allowCustomizedBuiltInElements && (_.tagNameCheck instanceof RegExp && it(_.tagNameCheck, K) || _.tagNameCheck instanceof Function && _.tagNameCheck(K)))
12191
12188
  ) return !1;
12192
- } else if (!Un[z]) {
12193
- if (!it($, Mn(K, xe, ""))) {
12189
+ } else if (!Pn[z]) {
12190
+ if (!it($, Rn(K, xe, ""))) {
12194
12191
  if (!((z === "src" || z === "xlink:href" || z === "href") && p !== "script" && ms(K, "data:") === 0 && li[p])) {
12195
- if (!(yn && !it(Oe, Mn(K, xe, "")))) {
12192
+ if (!(yn && !it(Oe, Rn(K, xe, "")))) {
12196
12193
  if (K)
12197
12194
  return !1;
12198
12195
  }
@@ -12202,8 +12199,8 @@ function xr() {
12202
12199
  }
12203
12200
  }
12204
12201
  return !0;
12205
- }, Sn = ke({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), fi = function(p) {
12206
- return !Sn[Qn(p)] && it(Fe, p);
12202
+ }, Wn = ke({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), fi = function(p) {
12203
+ return !Wn[Jn(p)] && it(Fe, p);
12207
12204
  }, pi = function(p) {
12208
12205
  Ct(T.beforeSanitizeAttributes, p, null);
12209
12206
  const z = p.attributes;
@@ -12213,41 +12210,41 @@ function xr() {
12213
12210
  attrName: "",
12214
12211
  attrValue: "",
12215
12212
  keepAttr: !0,
12216
- allowedAttributes: me,
12213
+ allowedAttributes: ge,
12217
12214
  forceKeepAttr: void 0
12218
12215
  };
12219
12216
  let Me = z.length;
12220
12217
  for (; Me--; ) {
12221
- const pe = z[Me], ze = pe.name, Ke = pe.namespaceURI, dt = pe.value, ft = We(ze), an = dt;
12222
- let Ze = ze === "value" ? an : _f(an);
12223
- if (K.attrName = ft, K.attrValue = Ze, K.keepAttr = !0, K.forceKeepAttr = void 0, Ct(T.uponSanitizeAttribute, p, K), Ze = K.attrValue, Z && (ft === "id" || ft === "name") && ms(Ze, be) !== 0 && (Ft(ze, p), Ze = be + Ze), It && it(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Ze)) {
12224
- Ft(ze, p);
12218
+ const he = z[Me], Le = he.name, Ve = he.namespaceURI, dt = he.value, ft = We(Le), an = dt;
12219
+ let Ze = Le === "value" ? an : _f(an);
12220
+ if (K.attrName = ft, K.attrValue = Ze, K.keepAttr = !0, K.forceKeepAttr = void 0, Ct(T.uponSanitizeAttribute, p, K), Ze = K.attrValue, Z && (ft === "id" || ft === "name") && ms(Ze, be) !== 0 && (Ft(Le, p), Ze = be + Ze), It && it(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Ze)) {
12221
+ Ft(Le, p);
12225
12222
  continue;
12226
12223
  }
12227
12224
  if (ft === "attributename" && hs(Ze, "href")) {
12228
- Ft(ze, p);
12225
+ Ft(Le, p);
12229
12226
  continue;
12230
12227
  }
12231
12228
  if (K.forceKeepAttr)
12232
12229
  continue;
12233
12230
  if (!K.keepAttr) {
12234
- Ft(ze, p);
12231
+ Ft(Le, p);
12235
12232
  continue;
12236
12233
  }
12237
12234
  if (!Yt && it(/\/>/i, Ze)) {
12238
- Ft(ze, p);
12235
+ Ft(Le, p);
12239
12236
  continue;
12240
12237
  }
12241
- oe && un([W, B, J], (qn) => {
12242
- Ze = Mn(Ze, qn, " ");
12238
+ oe && un([W, B, J], (jn) => {
12239
+ Ze = Rn(Ze, jn, " ");
12243
12240
  });
12244
- const jn = We(p.nodeName);
12245
- if (!Jt(jn, ft, Ze)) {
12246
- Ft(ze, p);
12241
+ const Gn = We(p.nodeName);
12242
+ if (!Jt(Gn, ft, Ze)) {
12243
+ Ft(Le, p);
12247
12244
  continue;
12248
12245
  }
12249
- if (b && typeof v == "object" && typeof v.getAttributeType == "function" && !Ke)
12250
- switch (v.getAttributeType(jn, ft)) {
12246
+ if (b && typeof v == "object" && typeof v.getAttributeType == "function" && !Ve)
12247
+ switch (v.getAttributeType(Gn, ft)) {
12251
12248
  case "TrustedHTML": {
12252
12249
  Ze = ae(Ze);
12253
12250
  break;
@@ -12259,9 +12256,9 @@ function xr() {
12259
12256
  }
12260
12257
  if (Ze !== an)
12261
12258
  try {
12262
- Ke ? p.setAttributeNS(Ke, ze, Ze) : p.setAttribute(ze, Ze), rn(p) ? yt(p) : gs(n.removed);
12259
+ Ve ? p.setAttributeNS(Ve, Le, Ze) : p.setAttribute(Le, Ze), rn(p) ? yt(p) : gs(n.removed);
12263
12260
  } catch {
12264
- Ft(ze, p);
12261
+ Ft(Le, p);
12265
12262
  }
12266
12263
  }
12267
12264
  Ct(T.afterSanitizeAttributes, p, null);
@@ -12269,89 +12266,89 @@ function xr() {
12269
12266
  let z = null;
12270
12267
  const K = le(p);
12271
12268
  for (Ct(T.beforeSanitizeShadowDOM, p, null); z = K.nextNode(); )
12272
- if (Ct(T.uponSanitizeShadowNode, z, null), Gn(z), pi(z), _t(z.content) && ln(z.content), (R ? R(z) : z.nodeType) === Dt.element) {
12273
- const pe = h ? h(z) : z.shadowRoot;
12274
- _t(pe) && (Qt(pe), ln(pe));
12269
+ if (Ct(T.uponSanitizeShadowNode, z, null), Fn(z), pi(z), _t(z.content) && ln(z.content), (R ? R(z) : z.nodeType) === Dt.element) {
12270
+ const he = h ? h(z) : z.shadowRoot;
12271
+ _t(he) && (Qt(he), ln(he));
12275
12272
  }
12276
12273
  Ct(T.afterSanitizeShadowDOM, p, null);
12277
12274
  }, Qt = function(p) {
12278
12275
  const z = R ? R(p) : p.nodeType;
12279
12276
  if (z === Dt.element) {
12280
- const pe = h ? h(p) : p.shadowRoot;
12281
- _t(pe) && (Qt(pe), ln(pe));
12277
+ const he = h ? h(p) : p.shadowRoot;
12278
+ _t(he) && (Qt(he), ln(he));
12282
12279
  }
12283
12280
  const K = N ? N(p) : p.childNodes;
12284
12281
  if (!K)
12285
12282
  return;
12286
12283
  const Me = [];
12287
- un(K, (pe) => {
12288
- Rn(Me, pe);
12284
+ un(K, (he) => {
12285
+ Nn(Me, he);
12289
12286
  });
12290
- for (const pe of Me)
12291
- Qt(pe);
12287
+ for (const he of Me)
12288
+ Qt(he);
12292
12289
  if (z === Dt.element) {
12293
- const pe = C ? C(p) : null;
12294
- if (typeof pe == "string" && We(pe) === "template") {
12295
- const ze = p.content;
12296
- _t(ze) && Qt(ze);
12290
+ const he = C ? C(p) : null;
12291
+ if (typeof he == "string" && We(he) === "template") {
12292
+ const Le = p.content;
12293
+ _t(Le) && Qt(Le);
12297
12294
  }
12298
12295
  }
12299
12296
  };
12300
12297
  return n.sanitize = function(te) {
12301
- let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = null, K = null, Me = null, pe = null;
12302
- if (Hn = !te, Hn && (te = "<!-->"), typeof te != "string" && !En(te) && (te = Mf(te), typeof te != "string"))
12303
- throw On("dirty is not a string, aborting");
12298
+ let p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, z = null, K = null, Me = null, he = null;
12299
+ if (Bn = !te, Bn && (te = "<!-->"), typeof te != "string" && !En(te) && (te = Mf(te), typeof te != "string"))
12300
+ throw Mn("dirty is not a string, aborting");
12304
12301
  if (!n.isSupported)
12305
12302
  return te;
12306
- if (Ie || Fn(p), n.removed = [], typeof te == "string" && (Ge = !1), Ge) {
12303
+ if (Ie || Un(p), n.removed = [], typeof te == "string" && (Ge = !1), Ge) {
12307
12304
  const dt = C ? C(te) : te.nodeName;
12308
12305
  if (typeof dt == "string") {
12309
12306
  const ft = We(dt);
12310
12307
  if (!O[ft] || we[ft])
12311
- throw On("root node is forbidden and cannot be sanitized in-place");
12308
+ throw Mn("root node is forbidden and cannot be sanitized in-place");
12312
12309
  }
12313
12310
  if (rn(te))
12314
- throw On("root node is clobbered and cannot be sanitized in-place");
12311
+ throw Mn("root node is clobbered and cannot be sanitized in-place");
12315
12312
  Qt(te);
12316
12313
  } else if (En(te))
12317
- z = Wn("<!---->"), K = z.ownerDocument.importNode(te, !0), K.nodeType === Dt.element && K.nodeName === "BODY" || K.nodeName === "HTML" ? z = K : z.appendChild(K), Qt(K);
12314
+ z = Hn("<!---->"), K = z.ownerDocument.importNode(te, !0), K.nodeType === Dt.element && K.nodeName === "BODY" || K.nodeName === "HTML" ? z = K : z.appendChild(K), Qt(K);
12318
12315
  else {
12319
12316
  if (!st && !oe && !Be && // eslint-disable-next-line unicorn/prefer-includes
12320
12317
  te.indexOf("<") === -1)
12321
12318
  return b && zt ? ae(te) : te;
12322
- if (z = Wn(te), !z)
12319
+ if (z = Hn(te), !z)
12323
12320
  return st ? null : zt ? L : "";
12324
12321
  }
12325
12322
  z && St && yt(z.firstChild);
12326
- const ze = le(Ge ? te : z);
12327
- for (; Me = ze.nextNode(); )
12328
- Gn(Me), pi(Me), _t(Me.content) && ln(Me.content);
12323
+ const Le = le(Ge ? te : z);
12324
+ for (; Me = Le.nextNode(); )
12325
+ Fn(Me), pi(Me), _t(Me.content) && ln(Me.content);
12329
12326
  if (Ge)
12330
12327
  return oe && nt(te), te;
12331
12328
  if (st) {
12332
12329
  if (oe && nt(z), Tt)
12333
- for (pe = Y.call(z.ownerDocument); z.firstChild; )
12334
- pe.appendChild(z.firstChild);
12330
+ for (he = Y.call(z.ownerDocument); z.firstChild; )
12331
+ he.appendChild(z.firstChild);
12335
12332
  else
12336
- pe = z;
12337
- return (me.shadowroot || me.shadowrootmode) && (pe = F.call(i, pe, !0)), pe;
12338
- }
12339
- let Ke = Be ? z.outerHTML : z.innerHTML;
12340
- return Be && O["!doctype"] && z.ownerDocument && z.ownerDocument.doctype && z.ownerDocument.doctype.name && it(Ff, z.ownerDocument.doctype.name) && (Ke = "<!DOCTYPE " + z.ownerDocument.doctype.name + `>
12341
- ` + Ke), oe && un([W, B, J], (dt) => {
12342
- Ke = Mn(Ke, dt, " ");
12343
- }), b && zt ? ae(Ke) : Ke;
12333
+ he = z;
12334
+ return (ge.shadowroot || ge.shadowrootmode) && (he = F.call(i, he, !0)), he;
12335
+ }
12336
+ let Ve = Be ? z.outerHTML : z.innerHTML;
12337
+ return Be && O["!doctype"] && z.ownerDocument && z.ownerDocument.doctype && z.ownerDocument.doctype.name && it(Ff, z.ownerDocument.doctype.name) && (Ve = "<!DOCTYPE " + z.ownerDocument.doctype.name + `>
12338
+ ` + Ve), oe && un([W, B, J], (dt) => {
12339
+ Ve = Rn(Ve, dt, " ");
12340
+ }), b && zt ? ae(Ve) : Ve;
12344
12341
  }, n.setConfig = function() {
12345
12342
  let te = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
12346
- Fn(te), Ie = !0;
12343
+ Un(te), Ie = !0;
12347
12344
  }, n.clearConfig = function() {
12348
12345
  Zt = null, Ie = !1;
12349
12346
  }, n.isValidAttribute = function(te, p, z) {
12350
- Zt || Fn({});
12347
+ Zt || Un({});
12351
12348
  const K = We(te), Me = We(p);
12352
12349
  return Jt(K, Me, z);
12353
12350
  }, n.addHook = function(te, p) {
12354
- typeof p == "function" && Rn(T[te], p);
12351
+ typeof p == "function" && Nn(T[te], p);
12355
12352
  }, n.removeHook = function(te, p) {
12356
12353
  if (p !== void 0) {
12357
12354
  const z = Sf(T[te], p);
@@ -12496,7 +12493,7 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12496
12493
  () => t.focusTick,
12497
12494
  async () => {
12498
12495
  if (t.readonly) return;
12499
- await je();
12496
+ await Xe();
12500
12497
  const $ = document.querySelector(".zm-note-panel textarea.zm-note-textarea");
12501
12498
  if ($) {
12502
12499
  $.focus();
@@ -12506,9 +12503,9 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12506
12503
  }
12507
12504
  );
12508
12505
  function g() {
12509
- var fe, me;
12506
+ var fe, ge;
12510
12507
  if (t.readonly) return;
12511
- const $ = o.value, O = ((me = (fe = t.selectedNode) == null ? void 0 : fe.note) == null ? void 0 : me.text) ?? "";
12508
+ const $ = o.value, O = ((ge = (fe = t.selectedNode) == null ? void 0 : fe.note) == null ? void 0 : ge.text) ?? "";
12512
12509
  $ !== O && i("apply", $);
12513
12510
  }
12514
12511
  function v($) {
@@ -12550,9 +12547,9 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12550
12547
  { immediate: !0 }
12551
12548
  );
12552
12549
  function L() {
12553
- var fe, me;
12550
+ var fe, ge;
12554
12551
  if (t.readonly) return;
12555
- const $ = b.value.trim(), O = ((me = (fe = t.selectedNode) == null ? void 0 : fe.link) == null ? void 0 : me.url) ?? "";
12552
+ const $ = b.value.trim(), O = ((ge = (fe = t.selectedNode) == null ? void 0 : fe.link) == null ? void 0 : ge.url) ?? "";
12556
12553
  $ !== O && i("set-link", $);
12557
12554
  }
12558
12555
  const V = q("");
@@ -12568,9 +12565,9 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12568
12565
  { immediate: !0 }
12569
12566
  );
12570
12567
  function ae() {
12571
- var fe, me;
12568
+ var fe, ge;
12572
12569
  if (t.readonly) return;
12573
- const $ = V.value.trim(), O = ((me = (fe = t.selectedNode) == null ? void 0 : fe.image) == null ? void 0 : me.src) ?? "";
12570
+ const $ = V.value.trim(), O = ((ge = (fe = t.selectedNode) == null ? void 0 : fe.image) == null ? void 0 : ge.src) ?? "";
12574
12571
  $ !== O && i("set-image", $);
12575
12572
  }
12576
12573
  function Q($) {
@@ -12593,13 +12590,13 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12593
12590
  },
12594
12591
  { immediate: !0 }
12595
12592
  );
12596
- const ee = ue(() => ho(no(ve.value), $n(ve.value)));
12593
+ const ee = ue(() => ho(no(ve.value), zn(ve.value)));
12597
12594
  function F() {
12598
- var me, U;
12595
+ var ge, U;
12599
12596
  if (t.readonly) return;
12600
- const $ = ve.value, O = ((U = (me = t.selectedNode) == null ? void 0 : me.richContent) == null ? void 0 : U.raw) ?? "";
12597
+ const $ = ve.value, O = ((U = (ge = t.selectedNode) == null ? void 0 : ge.richContent) == null ? void 0 : U.raw) ?? "";
12601
12598
  if ($ === O) return;
12602
- const fe = $n($) || void 0;
12599
+ const fe = zn($) || void 0;
12603
12600
  i("set-rich", $ ? { kind: "code", raw: $, lang: fe } : null);
12604
12601
  }
12605
12602
  const T = q(""), W = q(null);
@@ -12617,9 +12614,9 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12617
12614
  { immediate: !0 }
12618
12615
  );
12619
12616
  function ye() {
12620
- var fe, me;
12617
+ var fe, ge;
12621
12618
  if (t.readonly) return;
12622
- const $ = T.value, O = ((me = (fe = t.selectedNode) == null ? void 0 : fe.richContent) == null ? void 0 : me.raw) ?? "";
12619
+ const $ = T.value, O = ((ge = (fe = t.selectedNode) == null ? void 0 : fe.richContent) == null ? void 0 : ge.raw) ?? "";
12623
12620
  $ !== O && i("set-rich", $ ? { kind: "table", raw: $ } : null);
12624
12621
  }
12625
12622
  const Re = ue(() => nr(T.value)), Oe = ue(() => {
@@ -12634,7 +12631,7 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12634
12631
  return a.value || $.push(`${o.value.length} 字`), S.value && $.push("1 链接"), x.value && $.push("1 图片"), N.value && $.push("代码块"), E.value && $.push("表格"), $.length === 0 ? "节点没有额外内容" : $.join(" · ");
12635
12632
  });
12636
12633
  return ($, O) => {
12637
- var fe, me, U, _;
12634
+ var fe, ge, U, _;
12638
12635
  return m(), y("div", Jf, [
12639
12636
  e.selectedNode ? (m(), y(ie, { key: 1 }, [
12640
12637
  u("div", ep, [
@@ -12718,7 +12715,7 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12718
12715
  placeholder: "https://…",
12719
12716
  disabled: e.readonly,
12720
12717
  onBlur: L,
12721
- onKeydown: O[6] || (O[6] = Ln(he((we) => we.target.blur(), ["prevent"]), ["enter"]))
12718
+ onKeydown: O[6] || (O[6] = Qn(me((we) => we.target.blur(), ["prevent"]), ["enter"]))
12722
12719
  }, null, 40, hp), [
12723
12720
  [Ot, b.value]
12724
12721
  ]),
@@ -12728,7 +12725,7 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12728
12725
  href: (fe = e.selectedNode.link) == null ? void 0 : fe.url,
12729
12726
  target: "_blank",
12730
12727
  rel: "noopener noreferrer",
12731
- title: (me = e.selectedNode.link) == null ? void 0 : me.url
12728
+ title: (ge = e.selectedNode.link) == null ? void 0 : ge.url
12732
12729
  }, se((U = e.selectedNode.link) == null ? void 0 : U.url), 9, mp)) : G("", !0)
12733
12730
  ])) : G("", !0),
12734
12731
  x.value || A.value ? (m(), y("section", bp, [
@@ -12742,7 +12739,7 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12742
12739
  placeholder: "data:image/… 或 https://…",
12743
12740
  disabled: e.readonly,
12744
12741
  onBlur: ae,
12745
- onKeydown: O[8] || (O[8] = Ln(he((we) => we.target.blur(), ["prevent"]), ["enter"]))
12742
+ onKeydown: O[8] || (O[8] = Qn(me((we) => we.target.blur(), ["prevent"]), ["enter"]))
12746
12743
  }, null, 40, vp), [
12747
12744
  [Ot, V.value]
12748
12745
  ]),
@@ -12758,7 +12755,7 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12758
12755
  N.value || R.value ? (m(), y("section", kp, [
12759
12756
  u("header", xp, [
12760
12757
  O[17] || (O[17] = u("span", { class: "zm-note-section-title" }, "代码块", -1)),
12761
- ge($n)(ve.value) ? (m(), y("span", wp, se(ge($n)(ve.value)), 1)) : G("", !0)
12758
+ pe(zn)(ve.value) ? (m(), y("span", wp, se(pe(zn)(ve.value)), 1)) : G("", !0)
12762
12759
  ]),
12763
12760
  kt(u("textarea", {
12764
12761
  ref_key: "codeRef",
@@ -12798,7 +12795,7 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12798
12795
  Re.value.length ? (m(), y("table", Ap, [
12799
12796
  u("tbody", null, [
12800
12797
  (m(!0), y(ie, null, et(Oe.value, (we, Ee) => (m(), y("tr", { key: Ee }, [
12801
- Ee === 0 ? (m(!0), y(ie, { key: 0 }, et(we, (Xe, ot) => (m(), y("th", {
12798
+ Ee === 0 ? (m(!0), y(ie, { key: 0 }, et(we, (Ye, ot) => (m(), y("th", {
12802
12799
  key: `h${ot}`,
12803
12800
  class: _e(["zm-note-table-sort", {
12804
12801
  "is-sorted": B.value === ot,
@@ -12807,11 +12804,11 @@ const Jf = { class: "zm-note-panel" }, Qf = {
12807
12804
  }]),
12808
12805
  onClick: (tt) => xe(ot)
12809
12806
  }, [
12810
- u("span", null, se(Xe), 1),
12807
+ u("span", null, se(Ye), 1),
12811
12808
  u("span", Rp, se(B.value === ot ? J.value === "asc" ? "▲" : "▼" : "↕"), 1)
12812
- ], 10, Np))), 128)) : (m(!0), y(ie, { key: 1 }, et(we, (Xe, ot) => (m(), y("td", {
12809
+ ], 10, Np))), 128)) : (m(!0), y(ie, { key: 1 }, et(we, (Ye, ot) => (m(), y("td", {
12813
12810
  key: `c${ot}`
12814
- }, se(Xe), 1))), 128))
12811
+ }, se(Ye), 1))), 128))
12815
12812
  ]))), 128))
12816
12813
  ])
12817
12814
  ])) : G("", !0)
@@ -13033,7 +13030,7 @@ function walk(n: Node) {
13033
13030
  { id: "n_i", text: "主题九", children: [] }
13034
13031
  ]
13035
13032
  }, o = (() => {
13036
- const U = (Ee, Xe) => ({ id: Ee, text: Xe, children: [] }), _ = [
13033
+ const U = (Ee, Ye) => ({ id: Ee, text: Ye, children: [] }), _ = [
13037
13034
  U("s_l1", "左一"),
13038
13035
  U("s_l2", "左二"),
13039
13036
  U("s_l3", "左三"),
@@ -13203,11 +13200,11 @@ function walk(n: Node) {
13203
13200
  function fe(U) {
13204
13201
  return 1 + U.children.reduce((_, we) => _ + fe(we), 0);
13205
13202
  }
13206
- const me = ue(() => fe(r.value));
13203
+ const ge = ue(() => fe(r.value));
13207
13204
  return (U, _) => {
13208
13205
  var we;
13209
13206
  return m(), y("div", Mp, [
13210
- de(Zn, {
13207
+ de(Xn, {
13211
13208
  side: "left",
13212
13209
  width: 300,
13213
13210
  open: f.value,
@@ -13309,7 +13306,7 @@ function walk(n: Node) {
13309
13306
  ], -1)
13310
13307
  ])])) : G("", !0),
13311
13308
  _[24] || (_[24] = u("span", { class: "zm-app-spacer" }, null, -1)),
13312
- u("span", zp, se(r.value.text || "未命名") + " · " + se(me.value) + " 节点", 1),
13309
+ u("span", zp, se(r.value.text || "未命名") + " · " + se(ge.value) + " 节点", 1),
13313
13310
  G("", !0),
13314
13311
  a.showPreviewModeBtn ? (m(), y("button", {
13315
13312
  key: 5,
@@ -13378,7 +13375,7 @@ function walk(n: Node) {
13378
13375
  }, null, 8, ["data", "preview-mode"])
13379
13376
  ])
13380
13377
  ]),
13381
- de(Zn, {
13378
+ de(Xn, {
13382
13379
  side: "right",
13383
13380
  width: 360,
13384
13381
  open: g.value && !D.value,
@@ -13393,7 +13390,7 @@ function walk(n: Node) {
13393
13390
  ]),
13394
13391
  _: 1
13395
13392
  }, 8, ["open"]),
13396
- de(Zn, {
13393
+ de(Xn, {
13397
13394
  side: "right",
13398
13395
  width: 420,
13399
13396
  open: v.value && !D.value,
@@ -13408,7 +13405,7 @@ function walk(n: Node) {
13408
13405
  ]),
13409
13406
  _: 1
13410
13407
  }, 8, ["open"]),
13411
- de(Zn, {
13408
+ de(Xn, {
13412
13409
  side: "right",
13413
13410
  width: 360,
13414
13411
  open: w.value && !D.value,
@@ -13437,7 +13434,7 @@ function walk(n: Node) {
13437
13434
  x.value && !D.value ? (m(), y("div", {
13438
13435
  key: 1,
13439
13436
  class: "zm-settings-popover",
13440
- onClick: _[17] || (_[17] = he(() => {
13437
+ onClick: _[17] || (_[17] = me(() => {
13441
13438
  }, ["stop"]))
13442
13439
  }, [
13443
13440
  u("div", $p, [
@@ -13474,12 +13471,12 @@ function walk(n: Node) {
13474
13471
  }
13475
13472
  }), Fp = {
13476
13473
  install(e) {
13477
- e.component("FlowMindMap", mo), e.component("FlowMindMapOutline", or), e.component("FlowMindMapDrawer", Zn), e.component("FlowMindMapDataPanel", sr), e.component("FlowMindMapMarkdownPanel", rr), e.component("FlowMindMapSettingsPanel", lr), e.component("FlowMindMapNotePanel", wr), e.component("FlowMindMapApp", Dp);
13474
+ e.component("FlowMindMap", mo), e.component("FlowMindMapOutline", or), e.component("FlowMindMapDrawer", Xn), e.component("FlowMindMapDataPanel", sr), e.component("FlowMindMapMarkdownPanel", rr), e.component("FlowMindMapSettingsPanel", lr), e.component("FlowMindMapNotePanel", wr), e.component("FlowMindMapApp", Dp);
13478
13475
  }
13479
13476
  };
13480
13477
  export {
13481
13478
  sr as DataPanel,
13482
- Zn as Drawer,
13479
+ Xn as Drawer,
13483
13480
  rr as MarkdownPanel,
13484
13481
  mo as MindMap,
13485
13482
  Dp as MindMapApp,