zt-react-milkdown 0.1.20 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -18964,7 +18964,7 @@ var tE = [
18964
18964
  });
18965
18965
  }, aE = (e, t = {}) => {
18966
18966
  let n = [], r = t.includeRuntime ?? !0;
18967
- return iE(n, "listener", e.listener), iE(n, "commonmark", e.commonmark), iE(n, "gfm", e.gfm), iE(n, "history", e.history), iE(n, "code-block-prism", e.codeBlockPrism), iE(n, "code-block-language-picker", e.codeBlockLanguagePicker), r && (iE(n, "clipboard", e.clipboard), iE(n, "indent", e.indent)), iE(n, "image-delete-selection", e.imageDeleteSelection), iE(n, "table-arrow-entry", e.tableArrowEntry), iE(n, "block-boundary-navigation", e.blockBoundaryNavigation), iE(n, "math-backspace-entry", e.mathBackspaceEntry), iE(n, "blockquote-backspace-lift", e.blockquoteBackspaceLift), iE(n, "table-focus-actions", e.tableFocusActions), iE(n, "selection-tooltip", e.selectionTooltip), iE(n, "gap-cursor", e.gapCursor), iE(n, "drop-cursor", e.dropCursor), iE(n, "math", e.math), iE(n, "math-inline-edit", e.mathInlineEdit), iE(n, "math-inline-arrow-navigation", e.mathInlineArrowNavigation), iE(n, "task-list-toggle", e.taskListToggle), iE(n, "tab-space-indent", e.tabSpaceIndent), iE(n, "code-block-mod-a-select", e.codeBlockModASelect), e.slash && iE(n, "slash", e.slash), n;
18967
+ return iE(n, "listener", e.listener), iE(n, "commonmark", e.commonmark), iE(n, "gfm", e.gfm), iE(n, "history", e.history), iE(n, "code-block-prism", e.codeBlockPrism), iE(n, "code-block-language-picker", e.codeBlockLanguagePicker), r && (iE(n, "clipboard", e.clipboard), iE(n, "indent", e.indent)), iE(n, "image-delete-selection", e.imageDeleteSelection), iE(n, "table-arrow-entry", e.tableArrowEntry), iE(n, "block-boundary-navigation", e.blockBoundaryNavigation), iE(n, "heading-backspace-empty-paragraph", e.headingBackspaceEmptyParagraph), iE(n, "math-backspace-entry", e.mathBackspaceEntry), iE(n, "blockquote-backspace-lift", e.blockquoteBackspaceLift), iE(n, "table-focus-actions", e.tableFocusActions), iE(n, "selection-tooltip", e.selectionTooltip), iE(n, "gap-cursor", e.gapCursor), iE(n, "drop-cursor", e.dropCursor), iE(n, "math", e.math), iE(n, "math-inline-edit", e.mathInlineEdit), iE(n, "math-inline-arrow-navigation", e.mathInlineArrowNavigation), iE(n, "task-list-toggle", e.taskListToggle), iE(n, "tab-space-indent", e.tabSpaceIndent), iE(n, "code-block-mod-a-select", e.codeBlockModASelect), e.slash && iE(n, "slash", e.slash), n;
18968
18968
  };
18969
18969
  //#endregion
18970
18970
  //#region node_modules/.pnpm/prosemirror-dropcursor@1.8.2/node_modules/prosemirror-dropcursor/dist/index.js
@@ -48728,16 +48728,43 @@ var JU = "math_inline", YU = "math_block", XU = /(?:\$)([^$]+)(?:\$)$/, ZU = /^\
48728
48728
  }, uW = t_(() => new hr({
48729
48729
  key: new vr("zt-md-blockquote-backspace-lift"),
48730
48730
  props: { handleKeyDown: (e, t) => sW(t) ? !1 : lW(e, t) }
48731
- })), dW = "text", fW = {
48731
+ })), dW = "Backspace", fW = "heading", pW = "paragraph", mW = (e) => typeof e.props.editable == "function" ? e.props.editable(e.state) : e.editable, hW = (e) => {
48732
+ if (e.type.name !== pW) return !1;
48733
+ let t = e.textContent;
48734
+ return t.trim().length === 0 && e.content.size === t.length;
48735
+ }, gW = (e) => {
48736
+ if (e.parent.type.name !== fW || e.parentOffset !== 0 || e.depth < 1) return null;
48737
+ let t = e.index(e.depth - 1);
48738
+ if (t <= 0) return null;
48739
+ let n = e.node(e.depth - 1).child(t - 1);
48740
+ if (!hW(n)) return null;
48741
+ let r = e.before(e.depth);
48742
+ return {
48743
+ from: r - n.nodeSize,
48744
+ to: r
48745
+ };
48746
+ }, _W = (e, t) => {
48747
+ if (t.key !== dW || t.defaultPrevented || t.altKey || t.ctrlKey || t.metaKey || t.shiftKey || !mW(e)) return !1;
48748
+ let { selection: n } = e.state;
48749
+ if (!n.empty) return !1;
48750
+ let r = gW(n.$from);
48751
+ if (!r) return !1;
48752
+ t.preventDefault();
48753
+ let i = e.state.tr.delete(r.from, r.to);
48754
+ return i.setSelection(A.create(i.doc, r.from + 1)).scrollIntoView(), e.dispatch(i), !0;
48755
+ }, vW = t_(() => new hr({
48756
+ key: new vr("zt-md-heading-backspace-empty-paragraph"),
48757
+ props: { handleKeyDown: (e, t) => _W(e, t) }
48758
+ })), yW = "text", bW = {
48732
48759
  svg: "svg",
48733
48760
  html: "html"
48734
- }, pW = {
48761
+ }, xW = {
48735
48762
  html: !0,
48736
48763
  svg: !0
48737
- }, mW = (e) => {
48764
+ }, SW = (e) => {
48738
48765
  let t = e.trim().toLowerCase();
48739
- return t ? t.startsWith("canvas-") ? Object.entries(fW).find(([e]) => t.includes(e))?.[1] ?? t : t : dW;
48740
- }, hW = (e) => pW[mW(e)] === !0, gW = "code_block", _W = 1200, vW = "html", yW = "ZT_MD_CODE_BLOCK_PREVIEW_LAYOUT", bW = [
48766
+ return t ? t.startsWith("canvas-") ? Object.entries(bW).find(([e]) => t.includes(e))?.[1] ?? t : t : yW;
48767
+ }, CW = (e) => xW[SW(e)] === !0, wW = "code_block", TW = 1200, EW = "html", DW = "ZT_MD_CODE_BLOCK_PREVIEW_LAYOUT", OW = [
48741
48768
  "default-src 'none'",
48742
48769
  "style-src 'unsafe-inline'",
48743
48770
  "img-src data: blob:",
@@ -48748,16 +48775,16 @@ var JU = "math_inline", YU = "math_block", XU = /(?:\$)([^$]+)(?:\$)$/, ZU = /^\
48748
48775
  "object-src 'none'",
48749
48776
  "form-action 'none'",
48750
48777
  "base-uri 'none'"
48751
- ], xW = (e) => p(i(e, {
48778
+ ], kW = (e) => p(i(e, {
48752
48779
  size: 14,
48753
48780
  strokeWidth: 2,
48754
48781
  "aria-hidden": "true"
48755
- })), SW = xW(tD), CW = xW(YE), wW = xW(AD), TW = xW(rD), EW = xW($E), DW = (e, t) => `<!doctype html>
48782
+ })), AW = kW(tD), jW = kW(YE), MW = kW(AD), NW = kW(rD), PW = kW($E), FW = (e, t) => `<!doctype html>
48756
48783
  <html>
48757
48784
  <head>
48758
48785
  <meta charset="UTF-8" />
48759
48786
  <meta name="viewport" content="width=device-width, initial-scale=1" />
48760
- <meta http-equiv="Content-Security-Policy" content="${[...bW, ...t ? ["script-src 'unsafe-inline'"] : []].join("; ")}" />
48787
+ <meta http-equiv="Content-Security-Policy" content="${[...OW, ...t ? ["script-src 'unsafe-inline'"] : []].join("; ")}" />
48761
48788
  <style>
48762
48789
  *, *::before, *::after { box-sizing: border-box; }
48763
48790
  html, body { min-height: 100%; margin: 0; }
@@ -48766,7 +48793,7 @@ var JU = "math_inline", YU = "math_block", XU = /(?:\$)([^$]+)(?:\$)$/, ZU = /^\
48766
48793
  </style>
48767
48794
  </head>
48768
48795
  <body>${e}</body>
48769
- </html>`, OW = (e) => typeof e == "function" ? e() : null, kW = (e) => typeof e.props.editable == "function" ? e.props.editable(e.state) : e.editable, AW = class {
48796
+ </html>`, IW = (e) => typeof e == "function" ? e() : null, LW = (e) => typeof e.props.editable == "function" ? e.props.editable(e.state) : e.editable, RW = class {
48770
48797
  syncLanguageAttribute(e) {
48771
48798
  let t = typeof e.attrs.language == "string" ? e.attrs.language.trim() : "";
48772
48799
  if (!t) {
@@ -48777,25 +48804,25 @@ var JU = "math_inline", YU = "math_block", XU = /(?:\$)([^$]+)(?:\$)$/, ZU = /^\
48777
48804
  }
48778
48805
  constructor(e, t, n, r) {
48779
48806
  this.previewFrame = null, this.isPreviewAvailable = !1, this.isPreviewMode = !1, this.renderedPreviewKey = null, this.copyFeedbackTimer = null, this.handlePreviewClick = (e) => {
48780
- e.preventDefault(), e.stopPropagation(), this.isPreviewAvailable && (this.isPreviewMode = !this.isPreviewMode, this.syncPreviewState(), this.view.dispatch(this.view.state.tr.setMeta(yW, !0)));
48807
+ e.preventDefault(), e.stopPropagation(), this.isPreviewAvailable && (this.isPreviewMode = !this.isPreviewMode, this.syncPreviewState(), this.view.dispatch(this.view.state.tr.setMeta(DW, !0)));
48781
48808
  }, this.handlePreviewKeyDown = (e) => {
48782
48809
  if (e.defaultPrevented || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || e.key !== "ArrowUp" && e.key !== "ArrowDown") return;
48783
- let t = OW(this.getPos);
48810
+ let t = IW(this.getPos);
48784
48811
  t !== null && IE(this.view, t, this.node, e.key) && e.preventDefault();
48785
48812
  }, this.handleCopyClick = (e) => {
48786
- if (e.preventDefault(), e.stopPropagation(), !kW(this.view)) return;
48813
+ if (e.preventDefault(), e.stopPropagation(), !LW(this.view)) return;
48787
48814
  let t = this.node.textContent;
48788
48815
  (typeof navigator < "u" && navigator.clipboard?.writeText ? navigator.clipboard.writeText(t) : Promise.resolve()).then(() => {
48789
- this.copyButton.innerHTML = CW, this.copyButton.dataset.copied = "true", this.copyFeedbackTimer !== null && clearTimeout(this.copyFeedbackTimer), this.copyFeedbackTimer = setTimeout(() => {
48790
- this.copyButton.innerHTML = SW, delete this.copyButton.dataset.copied, this.copyFeedbackTimer = null;
48791
- }, _W);
48816
+ this.copyButton.innerHTML = jW, this.copyButton.dataset.copied = "true", this.copyFeedbackTimer !== null && clearTimeout(this.copyFeedbackTimer), this.copyFeedbackTimer = setTimeout(() => {
48817
+ this.copyButton.innerHTML = AW, delete this.copyButton.dataset.copied, this.copyFeedbackTimer = null;
48818
+ }, TW);
48792
48819
  }).catch(() => {});
48793
48820
  }, this.handleDeleteClick = (e) => {
48794
- e.preventDefault(), e.stopPropagation(), kW(this.view) && this.deleteCurrentCodeBlock();
48795
- }, this.node = e, this.view = t, this.getPos = n, this.messages = r, this.dom = document.createElement("div"), this.dom.className = "zt-md-code-block", this.dom.dataset.type = gW, this.contentDOM = document.createElement("pre"), this.previewContainer = document.createElement("div"), this.previewContainer.className = "zt-md-code-block-preview", this.previewContainer.contentEditable = "false", this.previewContainer.hidden = !0, this.previewContainer.tabIndex = -1, this.previewContainer.setAttribute("role", "region"), this.previewContainer.setAttribute("aria-label", r.codeBlockPreviewAriaLabel), this.actionsContainer = document.createElement("span"), this.actionsContainer.className = "zt-md-code-block-actions", this.actionsContainer.contentEditable = "false", this.previewButton = document.createElement("button"), this.previewButton.type = "button", this.previewButton.className = "zt-md-code-block-action-button", this.previewButton.hidden = !0, this.previewButton.innerHTML = TW, this.copyButton = document.createElement("button"), this.copyButton.type = "button", this.copyButton.className = "zt-md-code-block-action-button zt-md-code-block-editable-action", this.copyButton.setAttribute("aria-label", r.codeBlockCopyAriaLabel), this.copyButton.innerHTML = SW, this.deleteButton = document.createElement("button"), this.deleteButton.type = "button", this.deleteButton.className = "zt-md-code-block-action-button zt-md-code-block-editable-action zt-md-code-block-action-button-danger", this.deleteButton.setAttribute("aria-label", r.codeBlockDeleteAriaLabel), this.deleteButton.innerHTML = wW, this.actionsContainer.append(this.previewButton, this.copyButton, this.deleteButton), this.dom.append(this.contentDOM, this.previewContainer, this.actionsContainer), this.updateEditableState(), this.syncLanguageAttribute(e), this.syncPreviewAvailability(e), this.previewButton.addEventListener("click", this.handlePreviewClick), this.copyButton.addEventListener("click", this.handleCopyClick), this.deleteButton.addEventListener("click", this.handleDeleteClick), this.previewContainer.addEventListener("keydown", this.handlePreviewKeyDown);
48821
+ e.preventDefault(), e.stopPropagation(), LW(this.view) && this.deleteCurrentCodeBlock();
48822
+ }, this.node = e, this.view = t, this.getPos = n, this.messages = r, this.dom = document.createElement("div"), this.dom.className = "zt-md-code-block", this.dom.dataset.type = wW, this.contentDOM = document.createElement("pre"), this.previewContainer = document.createElement("div"), this.previewContainer.className = "zt-md-code-block-preview", this.previewContainer.contentEditable = "false", this.previewContainer.hidden = !0, this.previewContainer.tabIndex = -1, this.previewContainer.setAttribute("role", "region"), this.previewContainer.setAttribute("aria-label", r.codeBlockPreviewAriaLabel), this.actionsContainer = document.createElement("span"), this.actionsContainer.className = "zt-md-code-block-actions", this.actionsContainer.contentEditable = "false", this.previewButton = document.createElement("button"), this.previewButton.type = "button", this.previewButton.className = "zt-md-code-block-action-button", this.previewButton.hidden = !0, this.previewButton.innerHTML = NW, this.copyButton = document.createElement("button"), this.copyButton.type = "button", this.copyButton.className = "zt-md-code-block-action-button zt-md-code-block-editable-action", this.copyButton.setAttribute("aria-label", r.codeBlockCopyAriaLabel), this.copyButton.innerHTML = AW, this.deleteButton = document.createElement("button"), this.deleteButton.type = "button", this.deleteButton.className = "zt-md-code-block-action-button zt-md-code-block-editable-action zt-md-code-block-action-button-danger", this.deleteButton.setAttribute("aria-label", r.codeBlockDeleteAriaLabel), this.deleteButton.innerHTML = MW, this.actionsContainer.append(this.previewButton, this.copyButton, this.deleteButton), this.dom.append(this.contentDOM, this.previewContainer, this.actionsContainer), this.updateEditableState(), this.syncLanguageAttribute(e), this.syncPreviewAvailability(e), this.previewButton.addEventListener("click", this.handlePreviewClick), this.copyButton.addEventListener("click", this.handleCopyClick), this.deleteButton.addEventListener("click", this.handleDeleteClick), this.previewContainer.addEventListener("keydown", this.handlePreviewKeyDown);
48796
48823
  }
48797
48824
  deleteCurrentCodeBlock() {
48798
- let e = OW(this.getPos);
48825
+ let e = IW(this.getPos);
48799
48826
  if (e === null) return;
48800
48827
  let t = this.view.state.tr.delete(e, e + this.node.nodeSize), n = Math.min(e, t.doc.content.size);
48801
48828
  t.setSelection(A.near(t.doc.resolve(n), -1)).scrollIntoView(), this.view.dispatch(t), requestAnimationFrame(() => {
@@ -48803,36 +48830,36 @@ var JU = "math_inline", YU = "math_block", XU = /(?:\$)([^$]+)(?:\$)$/, ZU = /^\
48803
48830
  });
48804
48831
  }
48805
48832
  updateEditableState() {
48806
- this.dom.dataset.editable = kW(this.view) ? "true" : "false";
48833
+ this.dom.dataset.editable = LW(this.view) ? "true" : "false";
48807
48834
  }
48808
48835
  syncPreviewAvailability(e) {
48809
48836
  let t = typeof e.attrs.language == "string" ? e.attrs.language : "";
48810
- this.isPreviewAvailable = hW(t), this.isPreviewAvailable || (this.isPreviewMode = !1), this.previewButton.hidden = !this.isPreviewAvailable, this.syncPreviewState(), this.syncActionsVisibility();
48837
+ this.isPreviewAvailable = CW(t), this.isPreviewAvailable || (this.isPreviewMode = !1), this.previewButton.hidden = !this.isPreviewAvailable, this.syncPreviewState(), this.syncActionsVisibility();
48811
48838
  }
48812
48839
  syncPreviewState() {
48813
48840
  let e = this.isPreviewAvailable && this.isPreviewMode, t = e ? this.messages.codeBlockSourceAriaLabel : this.messages.codeBlockPreviewAriaLabel;
48814
- if (this.dom.dataset.viewMode = e ? "preview" : "source", this.previewContainer.hidden = !e, this.previewContainer.tabIndex = e ? 0 : -1, this.previewButton.dataset.active = e ? "true" : "false", this.previewButton.setAttribute("aria-pressed", e ? "true" : "false"), this.previewButton.setAttribute("aria-label", t), this.previewButton.title = t, this.previewButton.innerHTML = e ? EW : TW, e) {
48841
+ if (this.dom.dataset.viewMode = e ? "preview" : "source", this.previewContainer.hidden = !e, this.previewContainer.tabIndex = e ? 0 : -1, this.previewButton.dataset.active = e ? "true" : "false", this.previewButton.setAttribute("aria-pressed", e ? "true" : "false"), this.previewButton.setAttribute("aria-label", t), this.previewButton.title = t, this.previewButton.innerHTML = e ? PW : NW, e) {
48815
48842
  this.contentDOM.setAttribute("aria-hidden", "true"), this.renderPreview();
48816
48843
  return;
48817
48844
  }
48818
48845
  this.contentDOM.removeAttribute("aria-hidden"), this.clearPreview();
48819
48846
  }
48820
48847
  syncActionsVisibility() {
48821
- let e = kW(this.view) || this.isPreviewAvailable;
48848
+ let e = LW(this.view) || this.isPreviewAvailable;
48822
48849
  this.actionsContainer.dataset.visible = e ? "true" : "false";
48823
48850
  }
48824
48851
  renderPreview() {
48825
- let e = this.node.textContent, t = mW(String(this.node.attrs.language ?? "")), n = t === vW, r = `${t}\u0000${e}`;
48852
+ let e = this.node.textContent, t = SW(String(this.node.attrs.language ?? "")), n = t === EW, r = `${t}\u0000${e}`;
48826
48853
  if (this.renderedPreviewKey === r) return;
48827
48854
  this.renderedPreviewKey = r;
48828
48855
  let i = document.createElement("iframe");
48829
- i.className = "zt-md-code-block-preview-frame", i.title = this.messages.codeBlockPreviewAriaLabel, i.tabIndex = -1, i.referrerPolicy = "no-referrer", i.setAttribute("sandbox", n ? "allow-scripts" : ""), i.srcdoc = DW(e, n), this.previewContainer.replaceChildren(i), this.previewFrame = i;
48856
+ i.className = "zt-md-code-block-preview-frame", i.title = this.messages.codeBlockPreviewAriaLabel, i.tabIndex = -1, i.referrerPolicy = "no-referrer", i.setAttribute("sandbox", n ? "allow-scripts" : ""), i.srcdoc = FW(e, n), this.previewContainer.replaceChildren(i), this.previewFrame = i;
48830
48857
  }
48831
48858
  clearPreview() {
48832
48859
  this.renderedPreviewKey = null, this.previewFrame?.remove(), this.previewFrame = null;
48833
48860
  }
48834
48861
  update(e) {
48835
- return e.type.name === gW ? (this.node = e, this.updateEditableState(), this.syncLanguageAttribute(e), this.syncPreviewAvailability(e), !0) : !1;
48862
+ return e.type.name === wW ? (this.node = e, this.updateEditableState(), this.syncLanguageAttribute(e), this.syncPreviewAvailability(e), !0) : !1;
48836
48863
  }
48837
48864
  stopEvent(e) {
48838
48865
  let t = e.target;
@@ -48842,14 +48869,14 @@ var JU = "math_inline", YU = "math_block", XU = /(?:\$)([^$]+)(?:\$)$/, ZU = /^\
48842
48869
  return e.type === "selection" ? !1 : e.type === "attributes" && (e.target === this.dom && e.attributeName === "data-view-mode" || e.target === this.contentDOM && e.attributeName === "aria-hidden") ? !0 : this.actionsContainer.contains(e.target) || this.previewContainer.contains(e.target);
48843
48870
  }
48844
48871
  destroy() {
48845
- this.previewButton.removeEventListener("click", this.handlePreviewClick), this.copyButton.removeEventListener("click", this.handleCopyClick), this.deleteButton.removeEventListener("click", this.handleDeleteClick), this.previewContainer.removeEventListener("keydown", this.handlePreviewKeyDown), this.copyFeedbackTimer !== null && (clearTimeout(this.copyFeedbackTimer), this.copyFeedbackTimer = null), this.copyButton.innerHTML = SW, delete this.copyButton.dataset.copied, this.clearPreview();
48872
+ this.previewButton.removeEventListener("click", this.handlePreviewClick), this.copyButton.removeEventListener("click", this.handleCopyClick), this.deleteButton.removeEventListener("click", this.handleDeleteClick), this.previewContainer.removeEventListener("keydown", this.handlePreviewKeyDown), this.copyFeedbackTimer !== null && (clearTimeout(this.copyFeedbackTimer), this.copyFeedbackTimer = null), this.copyButton.innerHTML = AW, delete this.copyButton.dataset.copied, this.clearPreview();
48846
48873
  }
48847
- }, jW = (e = IO()) => (t, n, r) => new AW(t, n, typeof r == "function" ? () => {
48874
+ }, zW = (e = IO()) => (t, n, r) => new RW(t, n, typeof r == "function" ? () => {
48848
48875
  let e = r();
48849
48876
  return typeof e == "number" ? e : 0;
48850
48877
  } : !1, e);
48851
- MW.displayName = "clike", MW.aliases = [];
48852
- function MW(e) {
48878
+ BW.displayName = "clike", BW.aliases = [];
48879
+ function BW(e) {
48853
48880
  e.languages.clike = {
48854
48881
  comment: [{
48855
48882
  pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
@@ -48877,9 +48904,9 @@ function MW(e) {
48877
48904
  punctuation: /[{}[\];(),.:]/
48878
48905
  };
48879
48906
  }
48880
- NW.displayName = "c", NW.aliases = [];
48881
- function NW(e) {
48882
- e.register(MW), e.languages.c = e.languages.extend("clike", {
48907
+ VW.displayName = "c", VW.aliases = [];
48908
+ function VW(e) {
48909
+ e.register(BW), e.languages.c = e.languages.extend("clike", {
48883
48910
  comment: {
48884
48911
  pattern: /\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,
48885
48912
  greedy: !0
@@ -48933,9 +48960,9 @@ function NW(e) {
48933
48960
  }
48934
48961
  } }), e.languages.insertBefore("c", "function", { constant: /\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/ }), delete e.languages.c.boolean;
48935
48962
  }
48936
- PW.displayName = "cpp", PW.aliases = [];
48937
- function PW(e) {
48938
- e.register(NW), (function(e) {
48963
+ HW.displayName = "cpp", HW.aliases = [];
48964
+ function HW(e) {
48965
+ e.register(VW), (function(e) {
48939
48966
  var t = /\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/, n = "\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b".replace(/<keyword>/g, function() {
48940
48967
  return t.source;
48941
48968
  });
@@ -48997,16 +49024,16 @@ function PW(e) {
48997
49024
  } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
48998
49025
  })(e);
48999
49026
  }
49000
- FW.displayName = "arduino", FW.aliases = ["ino"];
49001
- function FW(e) {
49002
- e.register(PW), e.languages.arduino = e.languages.extend("cpp", {
49027
+ UW.displayName = "arduino", UW.aliases = ["ino"];
49028
+ function UW(e) {
49029
+ e.register(HW), e.languages.arduino = e.languages.extend("cpp", {
49003
49030
  keyword: /\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,
49004
49031
  constant: /\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,
49005
49032
  builtin: /\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/
49006
49033
  }), e.languages.ino = e.languages.arduino;
49007
49034
  }
49008
- IW.displayName = "bash", IW.aliases = ["sh", "shell"];
49009
- function IW(e) {
49035
+ WW.displayName = "bash", WW.aliases = ["sh", "shell"];
49036
+ function WW(e) {
49010
49037
  (function(e) {
49011
49038
  var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", n = {
49012
49039
  pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
@@ -49181,9 +49208,9 @@ function IW(e) {
49181
49208
  e.languages.sh = e.languages.bash, e.languages.shell = e.languages.bash;
49182
49209
  })(e);
49183
49210
  }
49184
- LW.displayName = "csharp", LW.aliases = ["cs", "dotnet"];
49185
- function LW(e) {
49186
- e.register(MW), (function(e) {
49211
+ GW.displayName = "csharp", GW.aliases = ["cs", "dotnet"];
49212
+ function GW(e) {
49213
+ e.register(BW), (function(e) {
49187
49214
  function t(e, t) {
49188
49215
  return e.replace(/<<(\d+)>>/g, function(e, n) {
49189
49216
  return "(?:" + t[+n] + ")";
@@ -49418,7 +49445,7 @@ function LW(e) {
49418
49445
  }), e.languages.dotnet = e.languages.cs = e.languages.csharp;
49419
49446
  })(e);
49420
49447
  }
49421
- RW.displayName = "markup", RW.aliases = [
49448
+ KW.displayName = "markup", KW.aliases = [
49422
49449
  "atom",
49423
49450
  "html",
49424
49451
  "mathml",
@@ -49427,7 +49454,7 @@ RW.displayName = "markup", RW.aliases = [
49427
49454
  "svg",
49428
49455
  "xml"
49429
49456
  ];
49430
- function RW(e) {
49457
+ function KW(e) {
49431
49458
  e.languages.markup = {
49432
49459
  comment: {
49433
49460
  pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
@@ -49544,8 +49571,8 @@ function RW(e) {
49544
49571
  });
49545
49572
  } }), e.languages.html = e.languages.markup, e.languages.mathml = e.languages.markup, e.languages.svg = e.languages.markup, e.languages.xml = e.languages.extend("markup", {}), e.languages.ssml = e.languages.xml, e.languages.atom = e.languages.xml, e.languages.rss = e.languages.xml;
49546
49573
  }
49547
- zW.displayName = "css", zW.aliases = [];
49548
- function zW(e) {
49574
+ qW.displayName = "css", qW.aliases = [];
49575
+ function qW(e) {
49549
49576
  (function(e) {
49550
49577
  var t = /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
49551
49578
  e.languages.css = {
@@ -49600,8 +49627,8 @@ function zW(e) {
49600
49627
  n && (n.tag.addInlined("style", "css"), n.tag.addAttribute("style", "css"));
49601
49628
  })(e);
49602
49629
  }
49603
- BW.displayName = "diff", BW.aliases = [];
49604
- function BW(e) {
49630
+ JW.displayName = "diff", JW.aliases = [];
49631
+ function JW(e) {
49605
49632
  (function(e) {
49606
49633
  e.languages.diff = { coord: [
49607
49634
  /^(?:\*{3}|-{3}|\+{3}).*$/m,
@@ -49635,9 +49662,9 @@ function BW(e) {
49635
49662
  }), Object.defineProperty(e.languages.diff, "PREFIXES", { value: t });
49636
49663
  })(e);
49637
49664
  }
49638
- VW.displayName = "go", VW.aliases = [];
49639
- function VW(e) {
49640
- e.register(MW), e.languages.go = e.languages.extend("clike", {
49665
+ YW.displayName = "go", YW.aliases = [];
49666
+ function YW(e) {
49667
+ e.register(BW), e.languages.go = e.languages.extend("clike", {
49641
49668
  string: {
49642
49669
  pattern: /(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,
49643
49670
  lookbehind: !0,
@@ -49657,8 +49684,8 @@ function VW(e) {
49657
49684
  greedy: !0
49658
49685
  } }), delete e.languages.go["class-name"];
49659
49686
  }
49660
- HW.displayName = "ini", HW.aliases = [];
49661
- function HW(e) {
49687
+ XW.displayName = "ini", XW.aliases = [];
49688
+ function XW(e) {
49662
49689
  e.languages.ini = {
49663
49690
  comment: {
49664
49691
  pattern: /(^[ \f\t\v]*)[#;][^\n\r]*/m,
@@ -49693,9 +49720,9 @@ function HW(e) {
49693
49720
  punctuation: /=/
49694
49721
  };
49695
49722
  }
49696
- UW.displayName = "java", UW.aliases = [];
49697
- function UW(e) {
49698
- e.register(MW), (function(e) {
49723
+ ZW.displayName = "java", ZW.aliases = [];
49724
+ function ZW(e) {
49725
+ e.register(BW), (function(e) {
49699
49726
  var t = /\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/, n = "(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*", r = {
49700
49727
  pattern: RegExp("(^|[^\\w.])" + n + "[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b"),
49701
49728
  lookbehind: !0,
@@ -49793,8 +49820,8 @@ function UW(e) {
49793
49820
  });
49794
49821
  })(e);
49795
49822
  }
49796
- WW.displayName = "regex", WW.aliases = [];
49797
- function WW(e) {
49823
+ QW.displayName = "regex", QW.aliases = [];
49824
+ function QW(e) {
49798
49825
  (function(e) {
49799
49826
  var t = {
49800
49827
  pattern: /\\[\\(){}[\]^$+*?|.]/,
@@ -49873,9 +49900,9 @@ function WW(e) {
49873
49900
  };
49874
49901
  })(e);
49875
49902
  }
49876
- GW.displayName = "javascript", GW.aliases = ["js"];
49877
- function GW(e) {
49878
- e.register(MW), e.languages.javascript = e.languages.extend("clike", {
49903
+ $W.displayName = "javascript", $W.aliases = ["js"];
49904
+ function $W(e) {
49905
+ e.register(BW), e.languages.javascript = e.languages.extend("clike", {
49879
49906
  "class-name": [e.languages.clike["class-name"], {
49880
49907
  pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,
49881
49908
  lookbehind: !0
@@ -49976,8 +50003,8 @@ function GW(e) {
49976
50003
  alias: "property"
49977
50004
  } }), e.languages.markup && (e.languages.markup.tag.addInlined("script", "javascript"), e.languages.markup.tag.addAttribute("on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)", "javascript")), e.languages.js = e.languages.javascript;
49978
50005
  }
49979
- KW.displayName = "json", KW.aliases = ["webmanifest"];
49980
- function KW(e) {
50006
+ eG.displayName = "json", eG.aliases = ["webmanifest"];
50007
+ function eG(e) {
49981
50008
  e.languages.json = {
49982
50009
  property: {
49983
50010
  pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,
@@ -50003,9 +50030,9 @@ function KW(e) {
50003
50030
  }
50004
50031
  }, e.languages.webmanifest = e.languages.json;
50005
50032
  }
50006
- qW.displayName = "kotlin", qW.aliases = ["kt", "kts"];
50007
- function qW(e) {
50008
- e.register(MW), (function(e) {
50033
+ tG.displayName = "kotlin", tG.aliases = ["kt", "kts"];
50034
+ function tG(e) {
50035
+ e.register(BW), (function(e) {
50009
50036
  e.languages.kotlin = e.languages.extend("clike", {
50010
50037
  keyword: {
50011
50038
  pattern: /(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,
@@ -50068,9 +50095,9 @@ function qW(e) {
50068
50095
  } }), e.languages.kt = e.languages.kotlin, e.languages.kts = e.languages.kotlin;
50069
50096
  })(e);
50070
50097
  }
50071
- JW.displayName = "less", JW.aliases = [];
50072
- function JW(e) {
50073
- e.register(zW), e.languages.less = e.languages.extend("css", {
50098
+ nG.displayName = "less", nG.aliases = [];
50099
+ function nG(e) {
50100
+ e.register(qW), e.languages.less = e.languages.extend("css", {
50074
50101
  comment: [/\/\*[\s\S]*?\*\//, {
50075
50102
  pattern: /(^|[^\\])\/\/.*/,
50076
50103
  lookbehind: !0
@@ -50097,8 +50124,8 @@ function JW(e) {
50097
50124
  }
50098
50125
  });
50099
50126
  }
50100
- YW.displayName = "lua", YW.aliases = [];
50101
- function YW(e) {
50127
+ rG.displayName = "lua", rG.aliases = [];
50128
+ function rG(e) {
50102
50129
  e.languages.lua = {
50103
50130
  comment: /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,
50104
50131
  string: {
@@ -50115,8 +50142,8 @@ function YW(e) {
50115
50142
  punctuation: /[\[\](){},;]|\.+|:+/
50116
50143
  };
50117
50144
  }
50118
- XW.displayName = "makefile", XW.aliases = [];
50119
- function XW(e) {
50145
+ iG.displayName = "makefile", iG.aliases = [];
50146
+ function iG(e) {
50120
50147
  e.languages.makefile = {
50121
50148
  comment: {
50122
50149
  pattern: /(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,
@@ -50145,8 +50172,8 @@ function XW(e) {
50145
50172
  punctuation: /[:;(){}]/
50146
50173
  };
50147
50174
  }
50148
- ZW.displayName = "yaml", ZW.aliases = ["yml"];
50149
- function ZW(e) {
50175
+ aG.displayName = "yaml", aG.aliases = ["yml"];
50176
+ function aG(e) {
50150
50177
  (function(e) {
50151
50178
  var t = /[*&][^\s[\]{},]+/, n = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, r = "(?:" + n.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + n.source + ")?)", i = "(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \\t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*".replace(/<PLAIN>/g, function() {
50152
50179
  return "[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]";
@@ -50214,9 +50241,9 @@ function ZW(e) {
50214
50241
  }, e.languages.yml = e.languages.yaml;
50215
50242
  })(e);
50216
50243
  }
50217
- QW.displayName = "markdown", QW.aliases = ["md"];
50218
- function QW(e) {
50219
- e.register(RW), (function(e) {
50244
+ oG.displayName = "markdown", oG.aliases = ["md"];
50245
+ function oG(e) {
50246
+ e.register(KW), (function(e) {
50220
50247
  var t = "(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))";
50221
50248
  function n(e) {
50222
50249
  return e = e.replace(/<inner>/g, function() {
@@ -50453,9 +50480,9 @@ function QW(e) {
50453
50480
  }), RegExp(e.languages.markup.tag.pattern.source, "gi"), String.fromCodePoint || String.fromCharCode, e.languages.md = e.languages.markdown;
50454
50481
  })(e);
50455
50482
  }
50456
- $W.displayName = "objectivec", $W.aliases = ["objc"];
50457
- function $W(e) {
50458
- e.register(NW), e.languages.objectivec = e.languages.extend("c", {
50483
+ sG.displayName = "objectivec", sG.aliases = ["objc"];
50484
+ function sG(e) {
50485
+ e.register(VW), e.languages.objectivec = e.languages.extend("c", {
50459
50486
  string: {
50460
50487
  pattern: /@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
50461
50488
  greedy: !0
@@ -50464,8 +50491,8 @@ function $W(e) {
50464
50491
  operator: /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/
50465
50492
  }), delete e.languages.objectivec["class-name"], e.languages.objc = e.languages.objectivec;
50466
50493
  }
50467
- eG.displayName = "perl", eG.aliases = [];
50468
- function eG(e) {
50494
+ cG.displayName = "perl", cG.aliases = [];
50495
+ function cG(e) {
50469
50496
  (function(e) {
50470
50497
  var t = "(?:\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)|\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}|\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\]|<(?:[^<>\\\\]|\\\\[\\s\\S])*>)";
50471
50498
  e.languages.perl = {
@@ -50546,9 +50573,9 @@ function eG(e) {
50546
50573
  };
50547
50574
  })(e);
50548
50575
  }
50549
- tG.displayName = "markup-templating", tG.aliases = [];
50550
- function tG(e) {
50551
- e.register(RW), (function(e) {
50576
+ lG.displayName = "markup-templating", lG.aliases = [];
50577
+ function lG(e) {
50578
+ e.register(KW), (function(e) {
50552
50579
  function t(e, t) {
50553
50580
  return "___" + e.toUpperCase() + t + "___";
50554
50581
  }
@@ -50586,9 +50613,9 @@ function tG(e) {
50586
50613
  });
50587
50614
  })(e);
50588
50615
  }
50589
- nG.displayName = "php", nG.aliases = [];
50590
- function nG(e) {
50591
- e.register(tG), (function(e) {
50616
+ uG.displayName = "php", uG.aliases = [];
50617
+ function uG(e) {
50618
+ e.register(lG), (function(e) {
50592
50619
  var t = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/, n = [
50593
50620
  {
50594
50621
  pattern: /\b(?:false|true)\b/i,
@@ -50864,8 +50891,8 @@ function nG(e) {
50864
50891
  });
50865
50892
  })(e);
50866
50893
  }
50867
- rG.displayName = "python", rG.aliases = ["py"];
50868
- function rG(e) {
50894
+ dG.displayName = "python", dG.aliases = ["py"];
50895
+ function dG(e) {
50869
50896
  e.languages.python = {
50870
50897
  comment: {
50871
50898
  pattern: /(^|[^\\])#.*/,
@@ -50925,8 +50952,8 @@ function rG(e) {
50925
50952
  punctuation: /[{}[\];(),.:]/
50926
50953
  }, e.languages.python["string-interpolation"].inside.interpolation.inside.rest = e.languages.python, e.languages.py = e.languages.python;
50927
50954
  }
50928
- iG.displayName = "r", iG.aliases = [];
50929
- function iG(e) {
50955
+ fG.displayName = "r", fG.aliases = [];
50956
+ function fG(e) {
50930
50957
  e.languages.r = {
50931
50958
  comment: /#.*/,
50932
50959
  string: {
@@ -50945,9 +50972,9 @@ function iG(e) {
50945
50972
  punctuation: /[(){}\[\],;]/
50946
50973
  };
50947
50974
  }
50948
- aG.displayName = "ruby", aG.aliases = ["rb"];
50949
- function aG(e) {
50950
- e.register(MW), (function(e) {
50975
+ pG.displayName = "ruby", pG.aliases = ["rb"];
50976
+ function pG(e) {
50977
+ e.register(BW), (function(e) {
50951
50978
  e.languages.ruby = e.languages.extend("clike", {
50952
50979
  comment: {
50953
50980
  pattern: /#.*|^=begin\s[\s\S]*?^=end/m,
@@ -51102,8 +51129,8 @@ function aG(e) {
51102
51129
  }), e.languages.rb = e.languages.ruby;
51103
51130
  })(e);
51104
51131
  }
51105
- oG.displayName = "rust", oG.aliases = [];
51106
- function oG(e) {
51132
+ mG.displayName = "rust", mG.aliases = [];
51133
+ function mG(e) {
51107
51134
  (function(e) {
51108
51135
  for (var t = "\\/\\*(?:[^*/]|\\*(?!\\/)|\\/(?!\\*)|<self>)*\\*\\/", n = 0; n < 2; n++) t = t.replace(/<self>/g, function() {
51109
51136
  return t;
@@ -51195,9 +51222,9 @@ function oG(e) {
51195
51222
  }, e.languages.rust["closure-params"].inside.rest = e.languages.rust, e.languages.rust.attribute.inside.string = e.languages.rust.string;
51196
51223
  })(e);
51197
51224
  }
51198
- sG.displayName = "sass", sG.aliases = [];
51199
- function sG(e) {
51200
- e.register(zW), (function(e) {
51225
+ hG.displayName = "sass", hG.aliases = [];
51226
+ function hG(e) {
51227
+ e.register(qW), (function(e) {
51201
51228
  e.languages.sass = e.languages.extend("css", { comment: {
51202
51229
  pattern: /^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,
51203
51230
  lookbehind: !0,
@@ -51242,9 +51269,9 @@ function sG(e) {
51242
51269
  } });
51243
51270
  })(e);
51244
51271
  }
51245
- cG.displayName = "scss", cG.aliases = [];
51246
- function cG(e) {
51247
- e.register(zW), e.languages.scss = e.languages.extend("css", {
51272
+ gG.displayName = "scss", gG.aliases = [];
51273
+ function gG(e) {
51274
+ e.register(qW), e.languages.scss = e.languages.extend("css", {
51248
51275
  comment: {
51249
51276
  pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,
51250
51277
  lookbehind: !0
@@ -51296,8 +51323,8 @@ function cG(e) {
51296
51323
  }
51297
51324
  }), e.languages.scss.atrule.inside.rest = e.languages.scss;
51298
51325
  }
51299
- lG.displayName = "sql", lG.aliases = [];
51300
- function lG(e) {
51326
+ _G.displayName = "sql", _G.aliases = [];
51327
+ function _G(e) {
51301
51328
  e.languages.sql = {
51302
51329
  comment: {
51303
51330
  pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,
@@ -51326,8 +51353,8 @@ function lG(e) {
51326
51353
  punctuation: /[;[\]()`,.]/
51327
51354
  };
51328
51355
  }
51329
- uG.displayName = "swift", uG.aliases = [];
51330
- function uG(e) {
51356
+ vG.displayName = "swift", vG.aliases = [];
51357
+ function vG(e) {
51331
51358
  e.languages.swift = {
51332
51359
  comment: {
51333
51360
  pattern: /(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,
@@ -51422,9 +51449,9 @@ function uG(e) {
51422
51449
  t.inside.interpolation.inside = e.languages.swift;
51423
51450
  });
51424
51451
  }
51425
- dG.displayName = "typescript", dG.aliases = ["ts"];
51426
- function dG(e) {
51427
- e.register(GW), (function(e) {
51452
+ yG.displayName = "typescript", yG.aliases = ["ts"];
51453
+ function yG(e) {
51454
+ e.register($W), (function(e) {
51428
51455
  e.languages.typescript = e.languages.extend("javascript", {
51429
51456
  "class-name": {
51430
51457
  pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
@@ -51461,8 +51488,8 @@ function dG(e) {
51461
51488
  }), e.languages.ts = e.languages.typescript;
51462
51489
  })(e);
51463
51490
  }
51464
- fG.displayName = "basic", fG.aliases = [];
51465
- function fG(e) {
51491
+ bG.displayName = "basic", bG.aliases = [];
51492
+ function bG(e) {
51466
51493
  e.languages.basic = {
51467
51494
  comment: {
51468
51495
  pattern: /(?:!|REM\b).+/i,
@@ -51479,9 +51506,9 @@ function fG(e) {
51479
51506
  punctuation: /[,;:()]/
51480
51507
  };
51481
51508
  }
51482
- pG.displayName = "vbnet", pG.aliases = [];
51483
- function pG(e) {
51484
- e.register(fG), e.languages.vbnet = e.languages.extend("basic", {
51509
+ xG.displayName = "vbnet", xG.aliases = [];
51510
+ function xG(e) {
51511
+ e.register(bG), e.languages.vbnet = e.languages.extend("basic", {
51485
51512
  comment: [{
51486
51513
  pattern: /(?:!|REM\b).+/i,
51487
51514
  inside: { keyword: /^REM/i }
@@ -51501,117 +51528,117 @@ function pG(e) {
51501
51528
  }
51502
51529
  //#endregion
51503
51530
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/schema.js
51504
- var mG = class {
51531
+ var SG = class {
51505
51532
  constructor(e, t, n) {
51506
51533
  this.normal = t, this.property = e, n && (this.space = n);
51507
51534
  }
51508
51535
  };
51509
- mG.prototype.normal = {}, mG.prototype.property = {}, mG.prototype.space = void 0;
51536
+ SG.prototype.normal = {}, SG.prototype.property = {}, SG.prototype.space = void 0;
51510
51537
  //#endregion
51511
51538
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js
51512
- function hG(e, t) {
51539
+ function CG(e, t) {
51513
51540
  let n = {}, r = {};
51514
51541
  for (let t of e) Object.assign(n, t.property), Object.assign(r, t.normal);
51515
- return new mG(n, r, t);
51542
+ return new SG(n, r, t);
51516
51543
  }
51517
51544
  //#endregion
51518
51545
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js
51519
- function gG(e) {
51546
+ function wG(e) {
51520
51547
  return e.toLowerCase();
51521
51548
  }
51522
51549
  //#endregion
51523
51550
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/info.js
51524
- var _G = class {
51551
+ var TG = class {
51525
51552
  constructor(e, t) {
51526
51553
  this.attribute = t, this.property = e;
51527
51554
  }
51528
51555
  };
51529
- _G.prototype.attribute = "", _G.prototype.booleanish = !1, _G.prototype.boolean = !1, _G.prototype.commaOrSpaceSeparated = !1, _G.prototype.commaSeparated = !1, _G.prototype.defined = !1, _G.prototype.mustUseProperty = !1, _G.prototype.number = !1, _G.prototype.overloadedBoolean = !1, _G.prototype.property = "", _G.prototype.spaceSeparated = !1, _G.prototype.space = void 0;
51556
+ TG.prototype.attribute = "", TG.prototype.booleanish = !1, TG.prototype.boolean = !1, TG.prototype.commaOrSpaceSeparated = !1, TG.prototype.commaSeparated = !1, TG.prototype.defined = !1, TG.prototype.mustUseProperty = !1, TG.prototype.number = !1, TG.prototype.overloadedBoolean = !1, TG.prototype.property = "", TG.prototype.spaceSeparated = !1, TG.prototype.space = void 0;
51530
51557
  //#endregion
51531
51558
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js
51532
- var vG = /* @__PURE__ */ te({
51533
- boolean: () => bG,
51534
- booleanish: () => xG,
51535
- commaOrSpaceSeparated: () => TG,
51536
- commaSeparated: () => wG,
51559
+ var EG = /* @__PURE__ */ te({
51560
+ boolean: () => OG,
51561
+ booleanish: () => kG,
51562
+ commaOrSpaceSeparated: () => NG,
51563
+ commaSeparated: () => MG,
51537
51564
  number: () => Q,
51538
- overloadedBoolean: () => SG,
51539
- spaceSeparated: () => CG
51540
- }), yG = 0, bG = EG(), xG = EG(), SG = EG(), Q = EG(), CG = EG(), wG = EG(), TG = EG();
51541
- function EG() {
51542
- return 2 ** ++yG;
51565
+ overloadedBoolean: () => AG,
51566
+ spaceSeparated: () => jG
51567
+ }), DG = 0, OG = PG(), kG = PG(), AG = PG(), Q = PG(), jG = PG(), MG = PG(), NG = PG();
51568
+ function PG() {
51569
+ return 2 ** ++DG;
51543
51570
  }
51544
51571
  //#endregion
51545
51572
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js
51546
- var DG = Object.keys(vG), OG = class extends _G {
51573
+ var FG = Object.keys(EG), IG = class extends TG {
51547
51574
  constructor(e, t, n, r) {
51548
51575
  let i = -1;
51549
- if (super(e, t), kG(this, "space", r), typeof n == "number") for (; ++i < DG.length;) {
51550
- let e = DG[i];
51551
- kG(this, DG[i], (n & vG[e]) === vG[e]);
51576
+ if (super(e, t), LG(this, "space", r), typeof n == "number") for (; ++i < FG.length;) {
51577
+ let e = FG[i];
51578
+ LG(this, FG[i], (n & EG[e]) === EG[e]);
51552
51579
  }
51553
51580
  }
51554
51581
  };
51555
- OG.prototype.defined = !0;
51556
- function kG(e, t, n) {
51582
+ IG.prototype.defined = !0;
51583
+ function LG(e, t, n) {
51557
51584
  n && (e[t] = n);
51558
51585
  }
51559
51586
  //#endregion
51560
51587
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js
51561
- function AG(e) {
51588
+ function RG(e) {
51562
51589
  let t = {}, n = {};
51563
51590
  for (let [r, i] of Object.entries(e.properties)) {
51564
- let a = new OG(r, e.transform(e.attributes || {}, r), i, e.space);
51565
- e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[gG(r)] = r, n[gG(a.attribute)] = r;
51591
+ let a = new IG(r, e.transform(e.attributes || {}, r), i, e.space);
51592
+ e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[wG(r)] = r, n[wG(a.attribute)] = r;
51566
51593
  }
51567
- return new mG(t, n, e.space);
51594
+ return new SG(t, n, e.space);
51568
51595
  }
51569
51596
  //#endregion
51570
51597
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js
51571
- var jG = AG({
51598
+ var zG = RG({
51572
51599
  properties: {
51573
51600
  ariaActiveDescendant: null,
51574
- ariaAtomic: xG,
51601
+ ariaAtomic: kG,
51575
51602
  ariaAutoComplete: null,
51576
- ariaBusy: xG,
51577
- ariaChecked: xG,
51603
+ ariaBusy: kG,
51604
+ ariaChecked: kG,
51578
51605
  ariaColCount: Q,
51579
51606
  ariaColIndex: Q,
51580
51607
  ariaColSpan: Q,
51581
- ariaControls: CG,
51608
+ ariaControls: jG,
51582
51609
  ariaCurrent: null,
51583
- ariaDescribedBy: CG,
51610
+ ariaDescribedBy: jG,
51584
51611
  ariaDetails: null,
51585
- ariaDisabled: xG,
51586
- ariaDropEffect: CG,
51612
+ ariaDisabled: kG,
51613
+ ariaDropEffect: jG,
51587
51614
  ariaErrorMessage: null,
51588
- ariaExpanded: xG,
51589
- ariaFlowTo: CG,
51590
- ariaGrabbed: xG,
51615
+ ariaExpanded: kG,
51616
+ ariaFlowTo: jG,
51617
+ ariaGrabbed: kG,
51591
51618
  ariaHasPopup: null,
51592
- ariaHidden: xG,
51619
+ ariaHidden: kG,
51593
51620
  ariaInvalid: null,
51594
51621
  ariaKeyShortcuts: null,
51595
51622
  ariaLabel: null,
51596
- ariaLabelledBy: CG,
51623
+ ariaLabelledBy: jG,
51597
51624
  ariaLevel: Q,
51598
51625
  ariaLive: null,
51599
- ariaModal: xG,
51600
- ariaMultiLine: xG,
51601
- ariaMultiSelectable: xG,
51626
+ ariaModal: kG,
51627
+ ariaMultiLine: kG,
51628
+ ariaMultiSelectable: kG,
51602
51629
  ariaOrientation: null,
51603
- ariaOwns: CG,
51630
+ ariaOwns: jG,
51604
51631
  ariaPlaceholder: null,
51605
51632
  ariaPosInSet: Q,
51606
- ariaPressed: xG,
51607
- ariaReadOnly: xG,
51633
+ ariaPressed: kG,
51634
+ ariaReadOnly: kG,
51608
51635
  ariaRelevant: null,
51609
- ariaRequired: xG,
51610
- ariaRoleDescription: CG,
51636
+ ariaRequired: kG,
51637
+ ariaRoleDescription: jG,
51611
51638
  ariaRowCount: Q,
51612
51639
  ariaRowIndex: Q,
51613
51640
  ariaRowSpan: Q,
51614
- ariaSelected: xG,
51641
+ ariaSelected: kG,
51615
51642
  ariaSetSize: Q,
51616
51643
  ariaSort: null,
51617
51644
  ariaValueMax: Q,
@@ -51626,17 +51653,17 @@ var jG = AG({
51626
51653
  });
51627
51654
  //#endregion
51628
51655
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js
51629
- function MG(e, t) {
51656
+ function BG(e, t) {
51630
51657
  return t in e ? e[t] : t;
51631
51658
  }
51632
51659
  //#endregion
51633
51660
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js
51634
- function NG(e, t) {
51635
- return MG(e, t.toLowerCase());
51661
+ function VG(e, t) {
51662
+ return BG(e, t.toLowerCase());
51636
51663
  }
51637
51664
  //#endregion
51638
51665
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js
51639
- var PG = AG({
51666
+ var HG = RG({
51640
51667
  attributes: {
51641
51668
  acceptcharset: "accept-charset",
51642
51669
  classname: "class",
@@ -51651,45 +51678,45 @@ var PG = AG({
51651
51678
  ],
51652
51679
  properties: {
51653
51680
  abbr: null,
51654
- accept: wG,
51655
- acceptCharset: CG,
51656
- accessKey: CG,
51681
+ accept: MG,
51682
+ acceptCharset: jG,
51683
+ accessKey: jG,
51657
51684
  action: null,
51658
51685
  allow: null,
51659
- allowFullScreen: bG,
51660
- allowPaymentRequest: bG,
51661
- allowUserMedia: bG,
51686
+ allowFullScreen: OG,
51687
+ allowPaymentRequest: OG,
51688
+ allowUserMedia: OG,
51662
51689
  alt: null,
51663
51690
  as: null,
51664
- async: bG,
51691
+ async: OG,
51665
51692
  autoCapitalize: null,
51666
- autoComplete: CG,
51667
- autoFocus: bG,
51668
- autoPlay: bG,
51669
- blocking: CG,
51693
+ autoComplete: jG,
51694
+ autoFocus: OG,
51695
+ autoPlay: OG,
51696
+ blocking: jG,
51670
51697
  capture: null,
51671
51698
  charSet: null,
51672
- checked: bG,
51699
+ checked: OG,
51673
51700
  cite: null,
51674
- className: CG,
51701
+ className: jG,
51675
51702
  cols: Q,
51676
51703
  colSpan: null,
51677
51704
  content: null,
51678
- contentEditable: xG,
51679
- controls: bG,
51680
- controlsList: CG,
51681
- coords: Q | wG,
51705
+ contentEditable: kG,
51706
+ controls: OG,
51707
+ controlsList: jG,
51708
+ coords: Q | MG,
51682
51709
  crossOrigin: null,
51683
51710
  data: null,
51684
51711
  dateTime: null,
51685
51712
  decoding: null,
51686
- default: bG,
51687
- defer: bG,
51713
+ default: OG,
51714
+ defer: OG,
51688
51715
  dir: null,
51689
51716
  dirName: null,
51690
- disabled: bG,
51691
- download: SG,
51692
- draggable: xG,
51717
+ disabled: OG,
51718
+ download: AG,
51719
+ draggable: kG,
51693
51720
  encType: null,
51694
51721
  enterKeyHint: null,
51695
51722
  fetchPriority: null,
@@ -51697,36 +51724,36 @@ var PG = AG({
51697
51724
  formAction: null,
51698
51725
  formEncType: null,
51699
51726
  formMethod: null,
51700
- formNoValidate: bG,
51727
+ formNoValidate: OG,
51701
51728
  formTarget: null,
51702
- headers: CG,
51729
+ headers: jG,
51703
51730
  height: Q,
51704
- hidden: SG,
51731
+ hidden: AG,
51705
51732
  high: Q,
51706
51733
  href: null,
51707
51734
  hrefLang: null,
51708
- htmlFor: CG,
51709
- httpEquiv: CG,
51735
+ htmlFor: jG,
51736
+ httpEquiv: jG,
51710
51737
  id: null,
51711
51738
  imageSizes: null,
51712
51739
  imageSrcSet: null,
51713
- inert: bG,
51740
+ inert: OG,
51714
51741
  inputMode: null,
51715
51742
  integrity: null,
51716
51743
  is: null,
51717
- isMap: bG,
51744
+ isMap: OG,
51718
51745
  itemId: null,
51719
- itemProp: CG,
51720
- itemRef: CG,
51721
- itemScope: bG,
51722
- itemType: CG,
51746
+ itemProp: jG,
51747
+ itemRef: jG,
51748
+ itemScope: OG,
51749
+ itemType: jG,
51723
51750
  kind: null,
51724
51751
  label: null,
51725
51752
  lang: null,
51726
51753
  language: null,
51727
51754
  list: null,
51728
51755
  loading: null,
51729
- loop: bG,
51756
+ loop: OG,
51730
51757
  low: Q,
51731
51758
  manifest: null,
51732
51759
  max: null,
@@ -51735,12 +51762,12 @@ var PG = AG({
51735
51762
  method: null,
51736
51763
  min: null,
51737
51764
  minLength: Q,
51738
- multiple: bG,
51739
- muted: bG,
51765
+ multiple: OG,
51766
+ muted: OG,
51740
51767
  name: null,
51741
51768
  nonce: null,
51742
- noModule: bG,
51743
- noValidate: bG,
51769
+ noModule: OG,
51770
+ noValidate: OG,
51744
51771
  onAbort: null,
51745
51772
  onAfterPrint: null,
51746
51773
  onAuxClick: null,
@@ -51829,38 +51856,38 @@ var PG = AG({
51829
51856
  onVolumeChange: null,
51830
51857
  onWaiting: null,
51831
51858
  onWheel: null,
51832
- open: bG,
51859
+ open: OG,
51833
51860
  optimum: Q,
51834
51861
  pattern: null,
51835
- ping: CG,
51862
+ ping: jG,
51836
51863
  placeholder: null,
51837
- playsInline: bG,
51864
+ playsInline: OG,
51838
51865
  popover: null,
51839
51866
  popoverTarget: null,
51840
51867
  popoverTargetAction: null,
51841
51868
  poster: null,
51842
51869
  preload: null,
51843
- readOnly: bG,
51870
+ readOnly: OG,
51844
51871
  referrerPolicy: null,
51845
- rel: CG,
51846
- required: bG,
51847
- reversed: bG,
51872
+ rel: jG,
51873
+ required: OG,
51874
+ reversed: OG,
51848
51875
  rows: Q,
51849
51876
  rowSpan: Q,
51850
- sandbox: CG,
51877
+ sandbox: jG,
51851
51878
  scope: null,
51852
- scoped: bG,
51853
- seamless: bG,
51854
- selected: bG,
51855
- shadowRootClonable: bG,
51856
- shadowRootDelegatesFocus: bG,
51879
+ scoped: OG,
51880
+ seamless: OG,
51881
+ selected: OG,
51882
+ shadowRootClonable: OG,
51883
+ shadowRootDelegatesFocus: OG,
51857
51884
  shadowRootMode: null,
51858
51885
  shape: null,
51859
51886
  size: Q,
51860
51887
  sizes: null,
51861
51888
  slot: null,
51862
51889
  span: Q,
51863
- spellCheck: xG,
51890
+ spellCheck: kG,
51864
51891
  src: null,
51865
51892
  srcDoc: null,
51866
51893
  srcLang: null,
@@ -51873,15 +51900,15 @@ var PG = AG({
51873
51900
  title: null,
51874
51901
  translate: null,
51875
51902
  type: null,
51876
- typeMustMatch: bG,
51903
+ typeMustMatch: OG,
51877
51904
  useMap: null,
51878
- value: xG,
51905
+ value: kG,
51879
51906
  width: Q,
51880
51907
  wrap: null,
51881
51908
  writingSuggestions: null,
51882
51909
  align: null,
51883
51910
  aLink: null,
51884
- archive: CG,
51911
+ archive: jG,
51885
51912
  axis: null,
51886
51913
  background: null,
51887
51914
  bgColor: null,
@@ -51898,8 +51925,8 @@ var PG = AG({
51898
51925
  codeBase: null,
51899
51926
  codeType: null,
51900
51927
  color: null,
51901
- compact: bG,
51902
- declare: bG,
51928
+ compact: OG,
51929
+ declare: OG,
51903
51930
  event: null,
51904
51931
  face: null,
51905
51932
  frame: null,
@@ -51911,10 +51938,10 @@ var PG = AG({
51911
51938
  lowSrc: null,
51912
51939
  marginHeight: Q,
51913
51940
  marginWidth: Q,
51914
- noResize: bG,
51915
- noHref: bG,
51916
- noShade: bG,
51917
- noWrap: bG,
51941
+ noResize: OG,
51942
+ noHref: OG,
51943
+ noShade: OG,
51944
+ noWrap: OG,
51918
51945
  object: null,
51919
51946
  profile: null,
51920
51947
  prompt: null,
@@ -51922,7 +51949,7 @@ var PG = AG({
51922
51949
  rightMargin: Q,
51923
51950
  rules: null,
51924
51951
  scheme: null,
51925
- scrolling: xG,
51952
+ scrolling: kG,
51926
51953
  standby: null,
51927
51954
  summary: null,
51928
51955
  text: null,
@@ -51935,8 +51962,8 @@ var PG = AG({
51935
51962
  allowTransparency: null,
51936
51963
  autoCorrect: null,
51937
51964
  autoSave: null,
51938
- disablePictureInPicture: bG,
51939
- disableRemotePlayback: bG,
51965
+ disablePictureInPicture: OG,
51966
+ disableRemotePlayback: OG,
51940
51967
  prefix: null,
51941
51968
  property: null,
51942
51969
  results: Q,
@@ -51944,8 +51971,8 @@ var PG = AG({
51944
51971
  unselectable: null
51945
51972
  },
51946
51973
  space: "html",
51947
- transform: NG
51948
- }), FG = AG({
51974
+ transform: VG
51975
+ }), UG = RG({
51949
51976
  attributes: {
51950
51977
  accentHeight: "accent-height",
51951
51978
  alignmentBaseline: "alignment-baseline",
@@ -52121,7 +52148,7 @@ var PG = AG({
52121
52148
  timelineBegin: "timelinebegin"
52122
52149
  },
52123
52150
  properties: {
52124
- about: TG,
52151
+ about: NG,
52125
52152
  accentHeight: Q,
52126
52153
  accumulate: null,
52127
52154
  additive: null,
@@ -52143,7 +52170,7 @@ var PG = AG({
52143
52170
  by: null,
52144
52171
  calcMode: null,
52145
52172
  capHeight: Q,
52146
- className: CG,
52173
+ className: jG,
52147
52174
  clip: null,
52148
52175
  clipPath: null,
52149
52176
  clipPathUnits: null,
@@ -52170,7 +52197,7 @@ var PG = AG({
52170
52197
  dur: null,
52171
52198
  divisor: Q,
52172
52199
  dominantBaseline: null,
52173
- download: bG,
52200
+ download: OG,
52174
52201
  dx: null,
52175
52202
  dy: null,
52176
52203
  edgeMode: null,
@@ -52203,9 +52230,9 @@ var PG = AG({
52203
52230
  from: null,
52204
52231
  fx: null,
52205
52232
  fy: null,
52206
- g1: wG,
52207
- g2: wG,
52208
- glyphName: wG,
52233
+ g1: MG,
52234
+ g2: MG,
52235
+ glyphName: MG,
52209
52236
  glyphOrientationHorizontal: null,
52210
52237
  glyphOrientationVertical: null,
52211
52238
  glyphRef: null,
@@ -52233,7 +52260,7 @@ var PG = AG({
52233
52260
  k2: Q,
52234
52261
  k3: Q,
52235
52262
  k4: Q,
52236
- kernelMatrix: TG,
52263
+ kernelMatrix: NG,
52237
52264
  kernelUnitLength: null,
52238
52265
  keyPoints: null,
52239
52266
  keySplines: null,
@@ -52375,7 +52402,7 @@ var PG = AG({
52375
52402
  patternTransform: null,
52376
52403
  patternUnits: null,
52377
52404
  phase: null,
52378
- ping: CG,
52405
+ ping: jG,
52379
52406
  pitch: null,
52380
52407
  playbackOrder: null,
52381
52408
  pointerEvents: null,
@@ -52387,21 +52414,21 @@ var PG = AG({
52387
52414
  preserveAspectRatio: null,
52388
52415
  primitiveUnits: null,
52389
52416
  propagate: null,
52390
- property: TG,
52417
+ property: NG,
52391
52418
  r: null,
52392
52419
  radius: null,
52393
52420
  referrerPolicy: null,
52394
52421
  refX: null,
52395
52422
  refY: null,
52396
- rel: TG,
52397
- rev: TG,
52423
+ rel: NG,
52424
+ rev: NG,
52398
52425
  renderingIntent: null,
52399
52426
  repeatCount: null,
52400
52427
  repeatDur: null,
52401
- requiredExtensions: TG,
52402
- requiredFeatures: TG,
52403
- requiredFonts: TG,
52404
- requiredFormats: TG,
52428
+ requiredExtensions: NG,
52429
+ requiredFeatures: NG,
52430
+ requiredFonts: NG,
52431
+ requiredFormats: NG,
52405
52432
  resource: null,
52406
52433
  restart: null,
52407
52434
  result: null,
@@ -52429,7 +52456,7 @@ var PG = AG({
52429
52456
  strikethroughThickness: Q,
52430
52457
  string: null,
52431
52458
  stroke: null,
52432
- strokeDashArray: TG,
52459
+ strokeDashArray: NG,
52433
52460
  strokeDashOffset: null,
52434
52461
  strokeLineCap: null,
52435
52462
  strokeLineJoin: null,
@@ -52443,7 +52470,7 @@ var PG = AG({
52443
52470
  syncMaster: null,
52444
52471
  syncTolerance: null,
52445
52472
  syncToleranceDefault: null,
52446
- systemLanguage: TG,
52473
+ systemLanguage: NG,
52447
52474
  tabIndex: Q,
52448
52475
  tableValues: null,
52449
52476
  target: null,
@@ -52457,7 +52484,7 @@ var PG = AG({
52457
52484
  title: null,
52458
52485
  transformBehavior: null,
52459
52486
  type: null,
52460
- typeOf: TG,
52487
+ typeOf: NG,
52461
52488
  to: null,
52462
52489
  transform: null,
52463
52490
  transformOrigin: null,
@@ -52499,8 +52526,8 @@ var PG = AG({
52499
52526
  zoomAndPan: null
52500
52527
  },
52501
52528
  space: "svg",
52502
- transform: MG
52503
- }), IG = AG({
52529
+ transform: BG
52530
+ }), WG = RG({
52504
52531
  properties: {
52505
52532
  xLinkActuate: null,
52506
52533
  xLinkArcRole: null,
@@ -52514,15 +52541,15 @@ var PG = AG({
52514
52541
  transform(e, t) {
52515
52542
  return "xlink:" + t.slice(5).toLowerCase();
52516
52543
  }
52517
- }), LG = AG({
52544
+ }), GG = RG({
52518
52545
  attributes: { xmlnsxlink: "xmlns:xlink" },
52519
52546
  properties: {
52520
52547
  xmlnsXLink: null,
52521
52548
  xmlns: null
52522
52549
  },
52523
52550
  space: "xmlns",
52524
- transform: NG
52525
- }), RG = AG({
52551
+ transform: VG
52552
+ }), KG = RG({
52526
52553
  properties: {
52527
52554
  xmlBase: null,
52528
52555
  xmlLang: null,
@@ -52532,49 +52559,49 @@ var PG = AG({
52532
52559
  transform(e, t) {
52533
52560
  return "xml:" + t.slice(3).toLowerCase();
52534
52561
  }
52535
- }), zG = /[A-Z]/g, BG = /-[a-z]/g, VG = /^data[-\w.:]+$/i;
52536
- function HG(e, t) {
52537
- let n = gG(t), r = t, i = _G;
52562
+ }), qG = /[A-Z]/g, JG = /-[a-z]/g, YG = /^data[-\w.:]+$/i;
52563
+ function XG(e, t) {
52564
+ let n = wG(t), r = t, i = TG;
52538
52565
  if (n in e.normal) return e.property[e.normal[n]];
52539
- if (n.length > 4 && n.slice(0, 4) === "data" && VG.test(t)) {
52566
+ if (n.length > 4 && n.slice(0, 4) === "data" && YG.test(t)) {
52540
52567
  if (t.charAt(4) === "-") {
52541
- let e = t.slice(5).replace(BG, WG);
52568
+ let e = t.slice(5).replace(JG, QG);
52542
52569
  r = "data" + e.charAt(0).toUpperCase() + e.slice(1);
52543
52570
  } else {
52544
52571
  let e = t.slice(4);
52545
- if (!BG.test(e)) {
52546
- let n = e.replace(zG, UG);
52572
+ if (!JG.test(e)) {
52573
+ let n = e.replace(qG, ZG);
52547
52574
  n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
52548
52575
  }
52549
52576
  }
52550
- i = OG;
52577
+ i = IG;
52551
52578
  }
52552
52579
  return new i(r, t);
52553
52580
  }
52554
- function UG(e) {
52581
+ function ZG(e) {
52555
52582
  return "-" + e.toLowerCase();
52556
52583
  }
52557
- function WG(e) {
52584
+ function QG(e) {
52558
52585
  return e.charAt(1).toUpperCase();
52559
52586
  }
52560
52587
  //#endregion
52561
52588
  //#region node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.js
52562
- var GG = hG([
52563
- jG,
52564
- PG,
52565
- IG,
52566
- LG,
52567
- RG
52568
- ], "html"), KG = hG([
52569
- jG,
52570
- FG,
52571
- IG,
52572
- LG,
52573
- RG
52589
+ var $G = CG([
52590
+ zG,
52591
+ HG,
52592
+ WG,
52593
+ GG,
52594
+ KG
52595
+ ], "html"), eK = CG([
52596
+ zG,
52597
+ UG,
52598
+ WG,
52599
+ GG,
52600
+ KG
52574
52601
  ], "svg");
52575
52602
  //#endregion
52576
52603
  //#region node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js
52577
- function qG(e) {
52604
+ function tK(e) {
52578
52605
  let t = [], n = String(e || ""), r = n.indexOf(","), i = 0, a = !1;
52579
52606
  for (; !a;) {
52580
52607
  r === -1 && (r = n.length, a = !0);
@@ -52585,12 +52612,12 @@ function qG(e) {
52585
52612
  }
52586
52613
  //#endregion
52587
52614
  //#region node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.js
52588
- var JG = /[#.]/g;
52589
- function YG(e, t) {
52615
+ var nK = /[#.]/g;
52616
+ function rK(e, t) {
52590
52617
  let n = e || "", r = {}, i = 0, a, o;
52591
52618
  for (; i < n.length;) {
52592
- JG.lastIndex = i;
52593
- let e = JG.exec(n), t = n.slice(i, e ? e.index : n.length);
52619
+ nK.lastIndex = i;
52620
+ let e = nK.exec(n), t = n.slice(i, e ? e.index : n.length);
52594
52621
  t && (a ? a === "#" ? r.id = t : Array.isArray(r.className) ? r.className.push(t) : r.className = [t] : o = t, i += t.length), e && (a = e[0], i++);
52595
52622
  }
52596
52623
  return {
@@ -52602,14 +52629,14 @@ function YG(e, t) {
52602
52629
  }
52603
52630
  //#endregion
52604
52631
  //#region node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js
52605
- function XG(e) {
52632
+ function iK(e) {
52606
52633
  let t = String(e || "").trim();
52607
52634
  return t ? t.split(/[ \t\n\r\f]+/g) : [];
52608
52635
  }
52609
52636
  //#endregion
52610
52637
  //#region node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/create-h.js
52611
- function ZG(e, t, n) {
52612
- let r = n ? rK(n) : void 0;
52638
+ function aK(e, t, n) {
52639
+ let r = n ? dK(n) : void 0;
52613
52640
  function i(n, i, ...a) {
52614
52641
  let o;
52615
52642
  if (n == null) {
@@ -52620,12 +52647,12 @@ function ZG(e, t, n) {
52620
52647
  let e = i;
52621
52648
  a.unshift(e);
52622
52649
  } else {
52623
- o = YG(n, t);
52650
+ o = rK(n, t);
52624
52651
  let s = o.tagName.toLowerCase(), c = r ? r.get(s) : void 0;
52625
- if (o.tagName = c || s, QG(i)) a.unshift(i);
52626
- else for (let [t, n] of Object.entries(i)) $G(e, o.properties, t, n);
52652
+ if (o.tagName = c || s, oK(i)) a.unshift(i);
52653
+ else for (let [t, n] of Object.entries(i)) sK(e, o.properties, t, n);
52627
52654
  }
52628
- for (let e of a) eK(o.children, e);
52655
+ for (let e of a) cK(o.children, e);
52629
52656
  return o.type === "element" && o.tagName === "template" && (o.content = {
52630
52657
  type: "root",
52631
52658
  children: o.children
@@ -52633,7 +52660,7 @@ function ZG(e, t, n) {
52633
52660
  }
52634
52661
  return i;
52635
52662
  }
52636
- function QG(e) {
52663
+ function oK(e) {
52637
52664
  if (typeof e != "object" || !e || Array.isArray(e)) return !0;
52638
52665
  if (typeof e.type != "string") return !1;
52639
52666
  let t = e, n = Object.keys(e);
@@ -52647,54 +52674,54 @@ function QG(e) {
52647
52674
  }
52648
52675
  return !!("children" in e && Array.isArray(e.children));
52649
52676
  }
52650
- function $G(e, t, n, r) {
52651
- let i = HG(e, n), a;
52677
+ function sK(e, t, n, r) {
52678
+ let i = XG(e, n), a;
52652
52679
  if (r != null) {
52653
52680
  if (typeof r == "number") {
52654
52681
  if (Number.isNaN(r)) return;
52655
52682
  a = r;
52656
- } else a = typeof r == "boolean" ? r : typeof r == "string" ? i.spaceSeparated ? XG(r) : i.commaSeparated ? qG(r) : i.commaOrSpaceSeparated ? XG(qG(r).join(" ")) : tK(i, i.property, r) : Array.isArray(r) ? [...r] : i.property === "style" ? nK(r) : String(r);
52683
+ } else a = typeof r == "boolean" ? r : typeof r == "string" ? i.spaceSeparated ? iK(r) : i.commaSeparated ? tK(r) : i.commaOrSpaceSeparated ? iK(tK(r).join(" ")) : lK(i, i.property, r) : Array.isArray(r) ? [...r] : i.property === "style" ? uK(r) : String(r);
52657
52684
  if (Array.isArray(a)) {
52658
52685
  let e = [];
52659
- for (let t of a) e.push(tK(i, i.property, t));
52686
+ for (let t of a) e.push(lK(i, i.property, t));
52660
52687
  a = e;
52661
52688
  }
52662
52689
  i.property === "className" && Array.isArray(t.className) && (a = t.className.concat(a)), t[i.property] = a;
52663
52690
  }
52664
52691
  }
52665
- function eK(e, t) {
52692
+ function cK(e, t) {
52666
52693
  if (t != null) if (typeof t == "number" || typeof t == "string") e.push({
52667
52694
  type: "text",
52668
52695
  value: String(t)
52669
52696
  });
52670
- else if (Array.isArray(t)) for (let n of t) eK(e, n);
52671
- else if (typeof t == "object" && "type" in t) t.type === "root" ? eK(e, t.children) : e.push(t);
52697
+ else if (Array.isArray(t)) for (let n of t) cK(e, n);
52698
+ else if (typeof t == "object" && "type" in t) t.type === "root" ? cK(e, t.children) : e.push(t);
52672
52699
  else throw Error("Expected node, nodes, or string, got `" + t + "`");
52673
52700
  }
52674
- function tK(e, t, n) {
52701
+ function lK(e, t, n) {
52675
52702
  if (typeof n == "string") {
52676
52703
  if (e.number && n && !Number.isNaN(Number(n))) return Number(n);
52677
- if ((e.boolean || e.overloadedBoolean) && (n === "" || gG(n) === gG(t))) return !0;
52704
+ if ((e.boolean || e.overloadedBoolean) && (n === "" || wG(n) === wG(t))) return !0;
52678
52705
  }
52679
52706
  return n;
52680
52707
  }
52681
- function nK(e) {
52708
+ function uK(e) {
52682
52709
  let t = [];
52683
52710
  for (let [n, r] of Object.entries(e)) t.push([n, r].join(": "));
52684
52711
  return t.join("; ");
52685
52712
  }
52686
- function rK(e) {
52713
+ function dK(e) {
52687
52714
  let t = /* @__PURE__ */ new Map();
52688
52715
  for (let n of e) t.set(n.toLowerCase(), n);
52689
52716
  return t;
52690
52717
  }
52691
52718
  //#endregion
52692
52719
  //#region node_modules/.pnpm/hastscript@9.0.1/node_modules/hastscript/lib/svg-case-sensitive-tag-names.js
52693
- var iK = /* @__PURE__ */ "altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath".split("."), aK = ZG(GG, "div");
52694
- ZG(KG, "g", iK);
52720
+ var fK = /* @__PURE__ */ "altGlyph.altGlyphDef.altGlyphItem.animateColor.animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.glyphRef.linearGradient.radialGradient.solidColor.textArea.textPath".split("."), pK = aK($G, "div");
52721
+ aK(eK, "g", fK);
52695
52722
  //#endregion
52696
52723
  //#region node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js
52697
- var oK = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml".split("."), sK = {
52724
+ var mK = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml".split("."), hK = {
52698
52725
  0: "�",
52699
52726
  128: "€",
52700
52727
  130: "‚",
@@ -52726,30 +52753,30 @@ var oK = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.C
52726
52753
  };
52727
52754
  //#endregion
52728
52755
  //#region node_modules/.pnpm/is-decimal@2.0.1/node_modules/is-decimal/index.js
52729
- function cK(e) {
52756
+ function gK(e) {
52730
52757
  let t = typeof e == "string" ? e.charCodeAt(0) : e;
52731
52758
  return t >= 48 && t <= 57;
52732
52759
  }
52733
52760
  //#endregion
52734
52761
  //#region node_modules/.pnpm/is-hexadecimal@2.0.1/node_modules/is-hexadecimal/index.js
52735
- function lK(e) {
52762
+ function _K(e) {
52736
52763
  let t = typeof e == "string" ? e.charCodeAt(0) : e;
52737
52764
  return t >= 97 && t <= 102 || t >= 65 && t <= 70 || t >= 48 && t <= 57;
52738
52765
  }
52739
52766
  //#endregion
52740
52767
  //#region node_modules/.pnpm/is-alphabetical@2.0.1/node_modules/is-alphabetical/index.js
52741
- function uK(e) {
52768
+ function vK(e) {
52742
52769
  let t = typeof e == "string" ? e.charCodeAt(0) : e;
52743
52770
  return t >= 97 && t <= 122 || t >= 65 && t <= 90;
52744
52771
  }
52745
52772
  //#endregion
52746
52773
  //#region node_modules/.pnpm/is-alphanumerical@2.0.1/node_modules/is-alphanumerical/index.js
52747
- function dK(e) {
52748
- return uK(e) || cK(e);
52774
+ function yK(e) {
52775
+ return vK(e) || gK(e);
52749
52776
  }
52750
52777
  //#endregion
52751
52778
  //#region node_modules/.pnpm/parse-entities@4.0.2/node_modules/parse-entities/lib/index.js
52752
- var fK = [
52779
+ var bK = [
52753
52780
  "",
52754
52781
  "Named character references must be terminated by a semicolon",
52755
52782
  "Numeric character references must be terminated by a semicolon",
@@ -52759,7 +52786,7 @@ var fK = [
52759
52786
  "Numeric character references cannot be disallowed",
52760
52787
  "Numeric character references cannot be outside the permissible Unicode range"
52761
52788
  ];
52762
- function pK(e, t) {
52789
+ function xK(e, t) {
52763
52790
  let n = t || {}, r = typeof n.additional == "string" ? n.additional.charCodeAt(0) : n.additional, i = [], a = 0, o = -1, s = "", c, l;
52764
52791
  n.position && ("start" in n.position || "indent" in n.position ? (l = n.position.indent, c = n.position.start) : c = n.position);
52765
52792
  let u = (c ? c.line : 0) || 1, d = (c ? c.column : 0) || 1, f = m(), p;
@@ -52775,11 +52802,11 @@ function pK(e, t) {
52775
52802
  let t = e.charCodeAt(l);
52776
52803
  t === 88 || t === 120 ? (u = "hexadecimal", l = ++c) : u = "decimal";
52777
52804
  } else u = "named";
52778
- let _ = "", v = "", y = "", b = u === "named" ? dK : u === "decimal" ? cK : lK;
52805
+ let _ = "", v = "", y = "", b = u === "named" ? yK : u === "decimal" ? gK : _K;
52779
52806
  for (l--; ++l <= e.length;) {
52780
52807
  let t = e.charCodeAt(l);
52781
52808
  if (!b(t)) break;
52782
- y += String.fromCharCode(t), u === "named" && oK.includes(y) && (_ = y, v = Qr(y));
52809
+ y += String.fromCharCode(t), u === "named" && mK.includes(y) && (_ = y, v = Qr(y));
52783
52810
  }
52784
52811
  let x = e.charCodeAt(l) === 59;
52785
52812
  if (x) {
@@ -52795,18 +52822,18 @@ function pK(e, t) {
52795
52822
  let t = _ ? 1 : 3;
52796
52823
  if (n.attribute) {
52797
52824
  let n = e.charCodeAt(l);
52798
- n === 61 ? (h(t, S), v = "") : dK(n) ? v = "" : h(t, S);
52825
+ n === 61 ? (h(t, S), v = "") : yK(n) ? v = "" : h(t, S);
52799
52826
  } else h(t, S);
52800
52827
  }
52801
52828
  C = v;
52802
52829
  } else {
52803
52830
  x || h(2, S);
52804
52831
  let e = Number.parseInt(y, u === "hexadecimal" ? 16 : 10);
52805
- if (mK(e)) h(7, S), C = "�";
52806
- else if (e in sK) h(6, S), C = sK[e];
52832
+ if (SK(e)) h(7, S), C = "�";
52833
+ else if (e in hK) h(6, S), C = hK[e];
52807
52834
  else {
52808
52835
  let t = "";
52809
- hK(e) && h(6, S), e > 65535 && (e -= 65536, t += String.fromCharCode(e >>> 10 | 55296), e = 56320 | e & 1023), C = t + String.fromCharCode(e);
52836
+ CK(e) && h(6, S), e > 65535 && (e -= 65536, t += String.fromCharCode(e >>> 10 | 55296), e = 56320 | e & 1023), C = t + String.fromCharCode(e);
52810
52837
  }
52811
52838
  }
52812
52839
  if (C) {
@@ -52828,7 +52855,7 @@ function pK(e, t) {
52828
52855
  }
52829
52856
  function h(e, t) {
52830
52857
  let r;
52831
- n.warning && (r = m(), r.column += t, r.offset += t, n.warning.call(n.warningContext || void 0, fK[e], r, e));
52858
+ n.warning && (r = m(), r.column += t, r.offset += t, n.warning.call(n.warningContext || void 0, bK[e], r, e));
52832
52859
  }
52833
52860
  function g() {
52834
52861
  s &&= (i.push(s), n.text && n.text.call(n.textContext || void 0, s, {
@@ -52837,31 +52864,31 @@ function pK(e, t) {
52837
52864
  }), "");
52838
52865
  }
52839
52866
  }
52840
- function mK(e) {
52867
+ function SK(e) {
52841
52868
  return e >= 55296 && e <= 57343 || e > 1114111;
52842
52869
  }
52843
- function hK(e) {
52870
+ function CK(e) {
52844
52871
  return e >= 1 && e <= 8 || e === 11 || e >= 13 && e <= 31 || e >= 127 && e <= 159 || e >= 64976 && e <= 65007 || (e & 65535) == 65535 || (e & 65535) == 65534;
52845
52872
  }
52846
52873
  //#endregion
52847
52874
  //#region node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/prism-core.js
52848
- var gK = 0, _K = {}, vK = {
52875
+ var wK = 0, TK = {}, EK = {
52849
52876
  util: {
52850
52877
  type: function(e) {
52851
52878
  return Object.prototype.toString.call(e).slice(8, -1);
52852
52879
  },
52853
52880
  objId: function(e) {
52854
- return e.__id || Object.defineProperty(e, "__id", { value: ++gK }), e.__id;
52881
+ return e.__id || Object.defineProperty(e, "__id", { value: ++wK }), e.__id;
52855
52882
  },
52856
52883
  clone: function e(t, n) {
52857
52884
  n ||= {};
52858
52885
  var r, i;
52859
- switch (vK.util.type(t)) {
52886
+ switch (EK.util.type(t)) {
52860
52887
  case "Object":
52861
- if (i = vK.util.objId(t), n[i]) return n[i];
52888
+ if (i = EK.util.objId(t), n[i]) return n[i];
52862
52889
  for (var a in r = {}, n[i] = r, t) t.hasOwnProperty(a) && (r[a] = e(t[a], n));
52863
52890
  return r;
52864
- case "Array": return i = vK.util.objId(t), n[i] ? n[i] : (r = [], n[i] = r, t.forEach(function(t, i) {
52891
+ case "Array": return i = EK.util.objId(t), n[i] ? n[i] : (r = [], n[i] = r, t.forEach(function(t, i) {
52865
52892
  r[i] = e(t, n);
52866
52893
  }), r);
52867
52894
  default: return t;
@@ -52869,33 +52896,33 @@ var gK = 0, _K = {}, vK = {
52869
52896
  }
52870
52897
  },
52871
52898
  languages: {
52872
- plain: _K,
52873
- plaintext: _K,
52874
- text: _K,
52875
- txt: _K,
52899
+ plain: TK,
52900
+ plaintext: TK,
52901
+ text: TK,
52902
+ txt: TK,
52876
52903
  extend: function(e, t) {
52877
- var n = vK.util.clone(vK.languages[e]);
52904
+ var n = EK.util.clone(EK.languages[e]);
52878
52905
  for (var r in t) n[r] = t[r];
52879
52906
  return n;
52880
52907
  },
52881
52908
  insertBefore: function(e, t, n, r) {
52882
- r ||= vK.languages;
52909
+ r ||= EK.languages;
52883
52910
  var i = r[e], a = {};
52884
52911
  for (var o in i) if (i.hasOwnProperty(o)) {
52885
52912
  if (o == t) for (var s in n) n.hasOwnProperty(s) && (a[s] = n[s]);
52886
52913
  n.hasOwnProperty(o) || (a[o] = i[o]);
52887
52914
  }
52888
52915
  var c = r[e];
52889
- return r[e] = a, vK.languages.DFS(vK.languages, function(t, n) {
52916
+ return r[e] = a, EK.languages.DFS(EK.languages, function(t, n) {
52890
52917
  n === c && t != e && (this[t] = a);
52891
52918
  }), a;
52892
52919
  },
52893
52920
  DFS: function e(t, n, r, i) {
52894
52921
  i ||= {};
52895
- var a = vK.util.objId;
52922
+ var a = EK.util.objId;
52896
52923
  for (var o in t) if (t.hasOwnProperty(o)) {
52897
52924
  n.call(t, o, t[o], r || o);
52898
- var s = t[o], c = vK.util.type(s);
52925
+ var s = t[o], c = EK.util.type(s);
52899
52926
  c === "Object" && !i[a(s)] ? (i[a(s)] = !0, e(s, n, null, i)) : c === "Array" && !i[a(s)] && (i[a(s)] = !0, e(s, n, o, i));
52900
52927
  }
52901
52928
  }
@@ -52907,8 +52934,8 @@ var gK = 0, _K = {}, vK = {
52907
52934
  grammar: t,
52908
52935
  language: n
52909
52936
  };
52910
- if (vK.hooks.run("before-tokenize", r), !r.grammar) throw Error("The language \"" + r.language + "\" has no grammar.");
52911
- return r.tokens = vK.tokenize(r.code, r.grammar), vK.hooks.run("after-tokenize", r), yK.stringify(vK.util.encode(r.tokens), r.language);
52937
+ if (EK.hooks.run("before-tokenize", r), !r.grammar) throw Error("The language \"" + r.language + "\" has no grammar.");
52938
+ return r.tokens = EK.tokenize(r.code, r.grammar), EK.hooks.run("after-tokenize", r), DK.stringify(EK.util.encode(r.tokens), r.language);
52912
52939
  },
52913
52940
  tokenize: function(e, t) {
52914
52941
  var n = t.rest;
@@ -52916,26 +52943,26 @@ var gK = 0, _K = {}, vK = {
52916
52943
  for (var r in n) t[r] = n[r];
52917
52944
  delete t.rest;
52918
52945
  }
52919
- var i = new SK();
52920
- return CK(i, i.head, e), xK(e, i, t, i.head, 0), TK(i);
52946
+ var i = new AK();
52947
+ return jK(i, i.head, e), kK(e, i, t, i.head, 0), NK(i);
52921
52948
  },
52922
52949
  hooks: {
52923
52950
  all: {},
52924
52951
  add: function(e, t) {
52925
- var n = vK.hooks.all;
52952
+ var n = EK.hooks.all;
52926
52953
  n[e] = n[e] || [], n[e].push(t);
52927
52954
  },
52928
52955
  run: function(e, t) {
52929
- var n = vK.hooks.all[e];
52956
+ var n = EK.hooks.all[e];
52930
52957
  if (!(!n || !n.length)) for (var r = 0, i; i = n[r++];) i(t);
52931
52958
  }
52932
52959
  },
52933
- Token: yK
52960
+ Token: DK
52934
52961
  };
52935
- function yK(e, t, n, r) {
52962
+ function DK(e, t, n, r) {
52936
52963
  this.type = e, this.content = t, this.alias = n, this.length = (r || "").length | 0;
52937
52964
  }
52938
- function bK(e, t, n, r) {
52965
+ function OK(e, t, n, r) {
52939
52966
  e.lastIndex = t;
52940
52967
  var i = e.exec(n);
52941
52968
  if (i && r && i[1]) {
@@ -52944,7 +52971,7 @@ function bK(e, t, n, r) {
52944
52971
  }
52945
52972
  return i;
52946
52973
  }
52947
- function xK(e, t, n, r, i, a) {
52974
+ function kK(e, t, n, r, i, a) {
52948
52975
  for (var o in n) if (!(!n.hasOwnProperty(o) || !n[o])) {
52949
52976
  var s = n[o];
52950
52977
  s = Array.isArray(s) ? s : [s];
@@ -52958,34 +52985,34 @@ function xK(e, t, n, r, i, a) {
52958
52985
  for (var h = l.pattern || l, g = r.next, _ = i; g !== t.tail && !(a && _ >= a.reach); _ += g.value.length, g = g.next) {
52959
52986
  var v = g.value;
52960
52987
  if (t.length > e.length) return;
52961
- if (!(v instanceof yK)) {
52988
+ if (!(v instanceof DK)) {
52962
52989
  var y = 1, b;
52963
52990
  if (f) {
52964
- if (b = bK(h, _, e, d), !b || b.index >= e.length) break;
52991
+ if (b = OK(h, _, e, d), !b || b.index >= e.length) break;
52965
52992
  var x = b.index, S = b.index + b[0].length, C = _;
52966
52993
  for (C += g.value.length; x >= C;) g = g.next, C += g.value.length;
52967
- if (C -= g.value.length, _ = C, g.value instanceof yK) continue;
52994
+ if (C -= g.value.length, _ = C, g.value instanceof DK) continue;
52968
52995
  for (var w = g; w !== t.tail && (C < S || typeof w.value == "string"); w = w.next) y++, C += w.value.length;
52969
52996
  y--, v = e.slice(_, C), b.index -= _;
52970
- } else if (b = bK(h, 0, v, d), !b) continue;
52997
+ } else if (b = OK(h, 0, v, d), !b) continue;
52971
52998
  var x = b.index, T = b[0], E = v.slice(0, x), ee = v.slice(x + T.length), te = _ + v.length;
52972
52999
  a && te > a.reach && (a.reach = te);
52973
53000
  var ne = g.prev;
52974
- E && (ne = CK(t, ne, E), _ += E.length), wK(t, ne, y);
52975
- var re = new yK(o, u ? vK.tokenize(T, u) : T, p, T);
52976
- if (g = CK(t, ne, re), ee && CK(t, g, ee), y > 1) {
53001
+ E && (ne = jK(t, ne, E), _ += E.length), MK(t, ne, y);
53002
+ var re = new DK(o, u ? EK.tokenize(T, u) : T, p, T);
53003
+ if (g = jK(t, ne, re), ee && jK(t, g, ee), y > 1) {
52977
53004
  var ie = {
52978
53005
  cause: o + "," + c,
52979
53006
  reach: te
52980
53007
  };
52981
- xK(e, t, n, g.prev, _, ie), a && ie.reach > a.reach && (a.reach = ie.reach);
53008
+ kK(e, t, n, g.prev, _, ie), a && ie.reach > a.reach && (a.reach = ie.reach);
52982
53009
  }
52983
53010
  }
52984
53011
  }
52985
53012
  }
52986
53013
  }
52987
53014
  }
52988
- function SK() {
53015
+ function AK() {
52989
53016
  var e = {
52990
53017
  value: null,
52991
53018
  prev: null,
@@ -52997,7 +53024,7 @@ function SK() {
52997
53024
  };
52998
53025
  e.next = t, this.head = e, this.tail = t, this.length = 0;
52999
53026
  }
53000
- function CK(e, t, n) {
53027
+ function jK(e, t, n) {
53001
53028
  var r = t.next, i = {
53002
53029
  value: n,
53003
53030
  prev: t,
@@ -53005,22 +53032,22 @@ function CK(e, t, n) {
53005
53032
  };
53006
53033
  return t.next = i, r.prev = i, e.length++, i;
53007
53034
  }
53008
- function wK(e, t, n) {
53035
+ function MK(e, t, n) {
53009
53036
  for (var r = t.next, i = 0; i < n && r !== e.tail; i++) r = r.next;
53010
53037
  t.next = r, r.prev = t, e.length -= i;
53011
53038
  }
53012
- function TK(e) {
53039
+ function NK(e) {
53013
53040
  for (var t = [], n = e.head.next; n !== e.tail;) t.push(n.value), n = n.next;
53014
53041
  return t;
53015
53042
  }
53016
- var EK = vK;
53043
+ var PK = EK;
53017
53044
  //#endregion
53018
53045
  //#region node_modules/.pnpm/refractor@5.0.0/node_modules/refractor/lib/core.js
53019
- function DK() {}
53020
- DK.prototype = EK;
53021
- var $ = new DK();
53022
- $.highlight = OK, $.register = kK, $.alias = AK, $.registered = jK, $.listLanguages = MK, $.util.encode = PK, $.Token.stringify = NK;
53023
- function OK(e, t) {
53046
+ function FK() {}
53047
+ FK.prototype = PK;
53048
+ var $ = new FK();
53049
+ $.highlight = IK, $.register = LK, $.alias = RK, $.registered = zK, $.listLanguages = BK, $.util.encode = HK, $.Token.stringify = VK;
53050
+ function IK(e, t) {
53024
53051
  if (typeof e != "string") throw TypeError("Expected `string` for `value`, got `" + e + "`");
53025
53052
  let n, r;
53026
53053
  /* c8 ignore next 2 */
@@ -53032,14 +53059,14 @@ function OK(e, t) {
53032
53059
  }
53033
53060
  return {
53034
53061
  type: "root",
53035
- children: EK.highlight.call($, e, n, r)
53062
+ children: PK.highlight.call($, e, n, r)
53036
53063
  };
53037
53064
  }
53038
- function kK(e) {
53065
+ function LK(e) {
53039
53066
  if (typeof e != "function" || !e.displayName) throw Error("Expected `function` for `syntax`, got `" + e + "`");
53040
53067
  Object.hasOwn($.languages, e.displayName) || e($);
53041
53068
  }
53042
- function AK(e, t) {
53069
+ function RK(e, t) {
53043
53070
  let n = $.languages, r = {};
53044
53071
  typeof e == "string" ? t && (r[e] = t) : r = e;
53045
53072
  let i;
@@ -53048,65 +53075,65 @@ function AK(e, t) {
53048
53075
  for (; ++a < t.length;) n[t[a]] = n[i];
53049
53076
  }
53050
53077
  }
53051
- function jK(e) {
53078
+ function zK(e) {
53052
53079
  if (typeof e != "string") throw TypeError("Expected `string` for `aliasOrLanguage`, got `" + e + "`");
53053
53080
  return Object.hasOwn($.languages, e);
53054
53081
  }
53055
- function MK() {
53082
+ function BK() {
53056
53083
  let e = $.languages, t = [], n;
53057
53084
  for (n in e) Object.hasOwn(e, n) && typeof e[n] == "object" && t.push(n);
53058
53085
  return t;
53059
53086
  }
53060
- function NK(e, t) {
53087
+ function VK(e, t) {
53061
53088
  if (typeof e == "string") return {
53062
53089
  type: "text",
53063
53090
  value: e
53064
53091
  };
53065
53092
  if (Array.isArray(e)) {
53066
53093
  let n = [], r = -1;
53067
- for (; ++r < e.length;) e[r] !== null && e[r] !== void 0 && e[r] !== "" && n.push(NK(e[r], t));
53094
+ for (; ++r < e.length;) e[r] !== null && e[r] !== void 0 && e[r] !== "" && n.push(VK(e[r], t));
53068
53095
  return n;
53069
53096
  }
53070
53097
  let n = {
53071
53098
  attributes: {},
53072
53099
  classes: ["token", e.type],
53073
- content: NK(e.content, t),
53100
+ content: VK(e.content, t),
53074
53101
  language: t,
53075
53102
  tag: "span",
53076
53103
  type: e.type
53077
53104
  };
53078
- return e.alias && n.classes.push(...typeof e.alias == "string" ? [e.alias] : e.alias), $.hooks.run("wrap", n), aK(n.tag + "." + n.classes.join("."), FK(n.attributes), n.content);
53105
+ return e.alias && n.classes.push(...typeof e.alias == "string" ? [e.alias] : e.alias), $.hooks.run("wrap", n), pK(n.tag + "." + n.classes.join("."), UK(n.attributes), n.content);
53079
53106
  }
53080
- function PK(e) {
53107
+ function HK(e) {
53081
53108
  return e;
53082
53109
  }
53083
- function FK(e) {
53110
+ function UK(e) {
53084
53111
  let t;
53085
- for (t in e) Object.hasOwn(e, t) && (e[t] = pK(e[t]));
53112
+ for (t in e) Object.hasOwn(e, t) && (e[t] = xK(e[t]));
53086
53113
  return e;
53087
53114
  }
53088
- $.register(MW), $.register(NW), $.register(PW), $.register(FW), $.register(IW), $.register(LW), $.register(RW), $.register(zW), $.register(BW), $.register(VW), $.register(HW), $.register(UW), $.register(WW), $.register(GW), $.register(KW), $.register(qW), $.register(JW), $.register(YW), $.register(XW), $.register(ZW), $.register(QW), $.register($W), $.register(eG), $.register(tG), $.register(nG), $.register(rG), $.register(iG), $.register(aG), $.register(oG), $.register(sG), $.register(cG), $.register(lG), $.register(uG), $.register(dG), $.register(fG), $.register(pG);
53115
+ $.register(BW), $.register(VW), $.register(HW), $.register(UW), $.register(WW), $.register(GW), $.register(KW), $.register(qW), $.register(JW), $.register(YW), $.register(XW), $.register(ZW), $.register(QW), $.register($W), $.register(eG), $.register(tG), $.register(nG), $.register(rG), $.register(iG), $.register(aG), $.register(oG), $.register(sG), $.register(cG), $.register(lG), $.register(uG), $.register(dG), $.register(fG), $.register(pG), $.register(mG), $.register(hG), $.register(gG), $.register(_G), $.register(vG), $.register(yG), $.register(bG), $.register(xG);
53089
53116
  //#endregion
53090
53117
  //#region src/lib/global-scroll-listener.ts
53091
- var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", zK = (e) => {
53092
- Array.from(IK).forEach((t) => t(e));
53093
- }, BK = () => {
53094
- LK || !RK() || (document.addEventListener("scroll", zK, {
53118
+ var WK = /* @__PURE__ */ new Set(), GK = !1, KK = () => typeof document < "u", qK = (e) => {
53119
+ Array.from(WK).forEach((t) => t(e));
53120
+ }, JK = () => {
53121
+ GK || !KK() || (document.addEventListener("scroll", qK, {
53095
53122
  capture: !0,
53096
53123
  passive: !0
53097
- }), LK = !0);
53098
- }, VK = () => {
53099
- !LK || !RK() || (document.removeEventListener("scroll", zK, !0), LK = !1);
53100
- }, HK = (e) => {
53101
- if (!RK()) return () => void 0;
53124
+ }), GK = !0);
53125
+ }, YK = () => {
53126
+ !GK || !KK() || (document.removeEventListener("scroll", qK, !0), GK = !1);
53127
+ }, XK = (e) => {
53128
+ if (!KK()) return () => void 0;
53102
53129
  let t = !0;
53103
- return IK.add(e), BK(), () => {
53104
- t && (t = !1, IK.delete(e), IK.size === 0 && VK());
53130
+ return WK.add(e), JK(), () => {
53131
+ t && (t = !1, WK.delete(e), WK.size === 0 && YK());
53105
53132
  };
53106
- }, UK = (e) => e ? e.closest(".zt-md-editor") ?? e : null, WK = (e, t, n) => {
53133
+ }, ZK = (e) => e ? e.closest(".zt-md-editor") ?? e : null, QK = (e, t, n) => {
53107
53134
  let r = typeof window > "u" ? e.bottom : window.innerHeight, i = n?.top ?? 0, a = n?.bottom ?? r, o = e.top - i, s = a - e.bottom;
53108
53135
  return s < t && o > s ? "top" : "bottom";
53109
- }, GK = (e, t) => {
53136
+ }, $K = (e, t) => {
53110
53137
  let n = t.getBoundingClientRect();
53111
53138
  return {
53112
53139
  anchorTopInContent: e.top - n.top + t.scrollTop,
@@ -53114,28 +53141,28 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53114
53141
  anchorLeftInContent: e.left - n.left + t.scrollLeft,
53115
53142
  anchorRightInContent: e.right - n.left + t.scrollLeft
53116
53143
  };
53117
- }, KK = (e) => {
53144
+ }, eq = (e) => {
53118
53145
  let { anchor: t, overlaySize: n, horizontalAlign: r = "start" } = e, i = t.anchorRightInContent ?? t.anchorLeftInContent;
53119
53146
  return r === "end" ? i - n.width : r === "center" ? t.anchorLeftInContent + (i - t.anchorLeftInContent - n.width) / 2 : t.anchorLeftInContent;
53120
- }, qK = (e) => {
53121
- let { wrapper: t, anchor: n, overlaySize: r, placement: i, offsetY: a, boundaryInset: o } = e, s = t.getBoundingClientRect(), c = t.scrollLeft + o, l = t.scrollLeft + t.clientWidth - r.width - o, u = KK(e), d = Math.min(Math.max(u, c), Math.max(c, l)), f = i === "top" ? n.anchorTopInContent - (r.height ?? 0) - a : n.anchorBottomInContent + a;
53147
+ }, tq = (e) => {
53148
+ let { wrapper: t, anchor: n, overlaySize: r, placement: i, offsetY: a, boundaryInset: o } = e, s = t.getBoundingClientRect(), c = t.scrollLeft + o, l = t.scrollLeft + t.clientWidth - r.width - o, u = eq(e), d = Math.min(Math.max(u, c), Math.max(c, l)), f = i === "top" ? n.anchorTopInContent - (r.height ?? 0) - a : n.anchorBottomInContent + a;
53122
53149
  return {
53123
53150
  left: s.left + d - t.scrollLeft,
53124
53151
  top: s.top + f - t.scrollTop
53125
53152
  };
53126
- }, JK = (e, t) => {
53127
- let n = qK(e), r = t.getBoundingClientRect();
53153
+ }, nq = (e, t) => {
53154
+ let n = tq(e), r = t.getBoundingClientRect();
53128
53155
  return {
53129
53156
  left: n.left - r.left,
53130
53157
  top: n.top - r.top
53131
53158
  };
53132
- }, YK = (e) => {
53159
+ }, rq = (e) => {
53133
53160
  let t = 0, n = null, r = null, i = () => {
53134
53161
  typeof window > "u" || (t && window.cancelAnimationFrame(t), t = window.requestAnimationFrame(() => {
53135
53162
  t = 0, e();
53136
53163
  }));
53137
53164
  }, a = () => {
53138
- window.addEventListener("resize", i), r ||= HK(i);
53165
+ window.addEventListener("resize", i), r ||= XK(i);
53139
53166
  }, o = () => {
53140
53167
  window.removeEventListener("resize", i), r?.(), r = null;
53141
53168
  }, s = (e) => {
@@ -53150,16 +53177,16 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53150
53177
  typeof window < "u" && t && (window.cancelAnimationFrame(t), t = 0), o(), s(null);
53151
53178
  }
53152
53179
  };
53153
- }, XK = (e, t, n, r) => {
53180
+ }, iq = (e, t, n, r) => {
53154
53181
  let i = t.top - r.top, a = r.bottom - t.bottom;
53155
53182
  return e === "top" ? i < n && a > i ? "bottom" : "top" : a < n && i > a ? "top" : "bottom";
53156
- }, ZK = ({ open: e, portalContainer: t, editorWrapper: n, defaultPlacement: r = "bottom", horizontalAlign: i = "start", offsetY: a = 8, boundaryInset: s = 2, fallbackWidth: u, fallbackHeight: f, onOutside: p }) => {
53183
+ }, aq = ({ open: e, portalContainer: t, editorWrapper: n, defaultPlacement: r = "bottom", horizontalAlign: i = "start", offsetY: a = 8, boundaryInset: s = 2, fallbackWidth: u, fallbackHeight: f, onOutside: p }) => {
53157
53184
  let m = d(null), h = d(null), g = d(e), _ = o(() => {
53158
53185
  let e = m.current, o = h.current;
53159
53186
  if (!g.current || !e || !o || !t || !n) return;
53160
- let c = e.getBoundingClientRect(), l = n.getBoundingClientRect(), d = o.offsetWidth || u, p = o.offsetHeight || f, _ = XK(r, c, p, l), v = JK({
53187
+ let c = e.getBoundingClientRect(), l = n.getBoundingClientRect(), d = o.offsetWidth || u, p = o.offsetHeight || f, _ = iq(r, c, p, l), v = nq({
53161
53188
  wrapper: n,
53162
- anchor: GK(c, n),
53189
+ anchor: $K(c, n),
53163
53190
  overlaySize: {
53164
53191
  width: d,
53165
53192
  height: p
@@ -53190,7 +53217,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53190
53217
  _();
53191
53218
  }, [e, _]), c(() => {
53192
53219
  if (!e) return;
53193
- let t = YK(_);
53220
+ let t = rq(_);
53194
53221
  return t.bindGlobal(), t.bindWrapper(n ?? null), t.schedule(), () => {
53195
53222
  t.destroy();
53196
53223
  };
@@ -53213,7 +53240,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53213
53240
  panelRef: v,
53214
53241
  updatePosition: _
53215
53242
  };
53216
- }, QK = ({ panel: e, portalContainer: t, className: n, role: r, onMouseDown: a, children: o }) => !e.open || !t ? null : _(i("div", {
53243
+ }, oq = ({ panel: e, portalContainer: t, className: n, role: r, onMouseDown: a, children: o }) => !e.open || !t ? null : _(i("div", {
53217
53244
  ref: e.panelRef,
53218
53245
  role: r,
53219
53246
  className: n,
@@ -53222,7 +53249,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53222
53249
  visibility: "hidden"
53223
53250
  },
53224
53251
  onMouseDown: a
53225
- }, o), t), $K = "code_block", eq = "ZT_MD_CODE_BLOCK_LANGUAGE_PICKER", tq = 8, nq = 96, rq = 26, iq = 224, aq = 220, oq = {
53252
+ }, o), t), sq = "code_block", cq = "ZT_MD_CODE_BLOCK_LANGUAGE_PICKER", lq = 8, uq = 96, dq = 26, fq = 224, pq = 220, mq = {
53226
53253
  javascript: "JavaScript",
53227
53254
  typescript: "TypeScript",
53228
53255
  jsx: "JSX",
@@ -53239,46 +53266,46 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53239
53266
  yml: "YAML",
53240
53267
  sql: "SQL",
53241
53268
  xml: "XML"
53242
- }, sq = (e) => {
53243
- let t = mW(e);
53244
- return oq[t] ?? t;
53245
- }, cq = (e) => {
53246
- let t = $.listLanguages(), n = [...new Set(t.map((e) => mW(e)).filter((e) => e !== dW))].sort((e, t) => e.localeCompare(t));
53269
+ }, hq = (e) => {
53270
+ let t = SW(e);
53271
+ return mq[t] ?? t;
53272
+ }, gq = (e) => {
53273
+ let t = $.listLanguages(), n = [...new Set(t.map((e) => SW(e)).filter((e) => e !== yW))].sort((e, t) => e.localeCompare(t));
53247
53274
  return [{
53248
- value: dW,
53275
+ value: yW,
53249
53276
  label: e.codeBlockLanguagePlainText
53250
53277
  }, ...n.map((e) => ({
53251
53278
  value: e,
53252
- label: sq(e)
53279
+ label: hq(e)
53253
53280
  }))];
53254
- }, lq = (e) => {
53281
+ }, _q = (e) => {
53255
53282
  let t = e.state.selection.$from;
53256
53283
  for (let e = t.depth; e >= 0; --e) {
53257
53284
  let n = t.node(e);
53258
- if (n.type.name === $K) return {
53285
+ if (n.type.name === sq) return {
53259
53286
  position: e === 0 ? 0 : t.before(e),
53260
53287
  node: n
53261
53288
  };
53262
53289
  }
53263
53290
  return null;
53264
- }, uq = (e, t) => {
53291
+ }, vq = (e, t) => {
53265
53292
  let n = e.nodeDOM(t);
53266
53293
  return n instanceof HTMLPreElement ? n : n instanceof HTMLElement ? n.querySelector("pre") : null;
53267
- }, dq = (e) => typeof e.props.editable == "function" ? e.props.editable(e.state) : e.editable, fq = (e) => {
53268
- let [t, r] = f(!1), [a, o] = f(""), [s, p] = f(0), m = d(null), h = d(null), g = mW(e.currentLanguage), _ = sq(g), v = u(() => cq(e.messages), [e.messages]), y = u(() => {
53294
+ }, yq = (e) => typeof e.props.editable == "function" ? e.props.editable(e.state) : e.editable, bq = (e) => {
53295
+ let [t, r] = f(!1), [a, o] = f(""), [s, p] = f(0), m = d(null), h = d(null), g = SW(e.currentLanguage), _ = hq(g), v = u(() => gq(e.messages), [e.messages]), y = u(() => {
53269
53296
  let e = a.trim().toLowerCase();
53270
53297
  return e ? v.filter((t) => {
53271
53298
  let n = t.label.toLowerCase(), r = t.value.toLowerCase();
53272
53299
  return n.includes(e) || r.includes(e);
53273
53300
  }) : v;
53274
- }, [a, v]), b = ZK({
53301
+ }, [a, v]), b = aq({
53275
53302
  open: t,
53276
53303
  portalContainer: e.portalContainer,
53277
53304
  editorWrapper: e.collisionBoundary,
53278
53305
  horizontalAlign: "end",
53279
53306
  offsetY: 6,
53280
- fallbackWidth: iq,
53281
- fallbackHeight: aq,
53307
+ fallbackWidth: fq,
53308
+ fallbackHeight: pq,
53282
53309
  onOutside: () => r(!1)
53283
53310
  }), x = (e) => e instanceof HTMLElement ? e.closest("input, textarea, [contenteditable]:not([contenteditable=\"false\"])") !== null : !1, S = (e) => {
53284
53311
  x(e.target) || e.preventDefault();
@@ -53327,7 +53354,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53327
53354
  size: 14,
53328
53355
  strokeWidth: 2,
53329
53356
  "aria-hidden": "true"
53330
- }))), i(QK, {
53357
+ }))), i(oq, {
53331
53358
  panel: b,
53332
53359
  portalContainer: e.portalContainer,
53333
53360
  className: "zt-md-code-language-picker-panel",
@@ -53370,28 +53397,28 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53370
53397
  strokeWidth: 2,
53371
53398
  "aria-hidden": "true"
53372
53399
  }) : null)) : i("div", { className: "zt-md-code-language-picker-empty" }, "-"))));
53373
- }, pq = class {
53400
+ }, xq = class {
53374
53401
  constructor(e, t, n) {
53375
- this.currentCodeBlockPosition = null, this.currentPreElement = null, this.currentActionsContainer = null, this.currentRenderedLanguage = null, this.hasPositionContext = !1, this.repositionScheduler = YK(() => {
53402
+ this.currentCodeBlockPosition = null, this.currentPreElement = null, this.currentActionsContainer = null, this.currentRenderedLanguage = null, this.hasPositionContext = !1, this.repositionScheduler = rq(() => {
53376
53403
  this.hasPositionContext && this.updateOverlayPosition();
53377
53404
  }), this.handlePickerLayoutChange = () => {
53378
53405
  this.hasPositionContext && this.updateOverlayPosition();
53379
- }, this.view = e, this.messages = t, this.portalContainer = n, this.editorWrapper = UK(e.dom), this.host = document.createElement("span"), this.host.className = "zt-md-code-language-picker-host", this.hostRoot = m(this.host), this.repositionScheduler.bindGlobal(), this.repositionScheduler.bindWrapper(this.editorWrapper), this.update(e);
53406
+ }, this.view = e, this.messages = t, this.portalContainer = n, this.editorWrapper = ZK(e.dom), this.host = document.createElement("span"), this.host.className = "zt-md-code-language-picker-host", this.hostRoot = m(this.host), this.repositionScheduler.bindGlobal(), this.repositionScheduler.bindWrapper(this.editorWrapper), this.update(e);
53380
53407
  }
53381
53408
  applyLanguage(e) {
53382
53409
  if (this.currentCodeBlockPosition === null) return;
53383
53410
  let t = this.view.state.doc.nodeAt(this.currentCodeBlockPosition);
53384
- if (!t || t.type.name !== $K) return;
53385
- let n = mW(e), r = {
53411
+ if (!t || t.type.name !== sq) return;
53412
+ let n = SW(e), r = {
53386
53413
  ...t.attrs,
53387
53414
  language: n
53388
53415
  };
53389
- if (mW(String(t.attrs.language ?? "")) === n) return;
53416
+ if (SW(String(t.attrs.language ?? "")) === n) return;
53390
53417
  let i = this.view.state.tr.setNodeMarkup(this.currentCodeBlockPosition, t.type, r, t.marks);
53391
53418
  this.view.dispatch(i), this.view.focus();
53392
53419
  }
53393
53420
  render(e) {
53394
- this.currentRenderedLanguage !== null && this.currentRenderedLanguage === e || (this.hostRoot.render(i(fq, {
53421
+ this.currentRenderedLanguage !== null && this.currentRenderedLanguage === e || (this.hostRoot.render(i(bq, {
53395
53422
  currentLanguage: e,
53396
53423
  messages: this.messages,
53397
53424
  portalContainer: this.portalContainer,
@@ -53408,14 +53435,14 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53408
53435
  }
53409
53436
  updateOverlayPosition() {
53410
53437
  if (!this.editorWrapper || !this.currentPreElement || this.host.parentElement !== this.portalContainer) return;
53411
- let e = this.currentPreElement.getBoundingClientRect(), t = GK(e, this.editorWrapper), n = t.anchorRightInContent ?? t.anchorLeftInContent + e.width, r = Math.max(0, Math.min(e.width, this.editorWrapper.clientWidth) - tq * 2);
53438
+ let e = this.currentPreElement.getBoundingClientRect(), t = $K(e, this.editorWrapper), n = t.anchorRightInContent ?? t.anchorLeftInContent + e.width, r = Math.max(0, Math.min(e.width, this.editorWrapper.clientWidth) - lq * 2);
53412
53439
  this.host.style.setProperty("--zt-md-code-language-picker-max-width", `${r}px`);
53413
- let i = this.host.offsetWidth || Math.min(nq, r), a = this.host.offsetHeight || rq, o = JK({
53440
+ let i = this.host.offsetWidth || Math.min(uq, r), a = this.host.offsetHeight || dq, o = nq({
53414
53441
  wrapper: this.editorWrapper,
53415
53442
  anchor: {
53416
- anchorLeftInContent: n - i - tq,
53417
- anchorTopInContent: t.anchorTopInContent + e.height - a - tq,
53418
- anchorBottomInContent: t.anchorTopInContent + e.height - a - tq
53443
+ anchorLeftInContent: n - i - lq,
53444
+ anchorTopInContent: t.anchorTopInContent + e.height - a - lq,
53445
+ anchorBottomInContent: t.anchorTopInContent + e.height - a - lq
53419
53446
  },
53420
53447
  overlaySize: { width: i },
53421
53448
  placement: "top",
@@ -53425,35 +53452,35 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53425
53452
  this.host.style.left = `${o.left}px`, this.host.style.top = `${o.top}px`;
53426
53453
  }
53427
53454
  update(e) {
53428
- if (this.view = e, !dq(e) || !this.editorWrapper) {
53455
+ if (this.view = e, !yq(e) || !this.editorWrapper) {
53429
53456
  this.detach();
53430
53457
  return;
53431
53458
  }
53432
- let t = lq(e);
53459
+ let t = _q(e);
53433
53460
  if (!t) {
53434
53461
  this.detach();
53435
53462
  return;
53436
53463
  }
53437
- let n = uq(e, t.position);
53464
+ let n = vq(e, t.position);
53438
53465
  if (!n) {
53439
53466
  this.detach();
53440
53467
  return;
53441
53468
  }
53442
53469
  let r = n.parentElement?.querySelector(":scope > .zt-md-code-block-actions") ?? null;
53443
53470
  this.syncFocusedActionsContainer(r), this.host.parentElement !== this.portalContainer && this.portalContainer.append(this.host);
53444
- let i = mW(String(t.node.attrs.language ?? "")), a = this.currentCodeBlockPosition === t.position && this.currentPreElement === n && this.currentRenderedLanguage !== null && this.currentRenderedLanguage === i;
53471
+ let i = SW(String(t.node.attrs.language ?? "")), a = this.currentCodeBlockPosition === t.position && this.currentPreElement === n && this.currentRenderedLanguage !== null && this.currentRenderedLanguage === i;
53445
53472
  this.currentCodeBlockPosition = t.position, this.currentPreElement = n, this.hasPositionContext = !0, this.updateOverlayPosition(), a || this.render(i), this.repositionScheduler.schedule();
53446
53473
  }
53447
53474
  destroy() {
53448
53475
  this.detach(), this.repositionScheduler.destroy(), this.hostRoot.unmount();
53449
53476
  }
53450
- }, mq = (e, t) => t_(() => new hr({
53451
- key: new vr(eq),
53452
- view: (n) => new pq(n, e, t)
53453
- })), hq = "code_block", gq = "a", _q = "zt-md-code-block-mod-a-select", vq = (e) => e.key.toLowerCase() !== gq || e.defaultPrevented || e.altKey || e.shiftKey || !e.ctrlKey && !e.metaKey, yq = (e) => {
53477
+ }, Sq = (e, t) => t_(() => new hr({
53478
+ key: new vr(cq),
53479
+ view: (n) => new xq(n, e, t)
53480
+ })), Cq = "code_block", wq = "a", Tq = "zt-md-code-block-mod-a-select", Eq = (e) => e.key.toLowerCase() !== wq || e.defaultPrevented || e.altKey || e.shiftKey || !e.ctrlKey && !e.metaKey, Dq = (e) => {
53454
53481
  for (let t = e.depth; t >= 0; --t) {
53455
53482
  let n = e.node(t);
53456
- if (n.type.name !== hq) continue;
53483
+ if (n.type.name !== Cq) continue;
53457
53484
  let r = t === 0 ? 0 : e.before(t);
53458
53485
  return {
53459
53486
  codeBlockStart: r + 1,
@@ -53461,47 +53488,47 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53461
53488
  };
53462
53489
  }
53463
53490
  return null;
53464
- }, bq = (e, t) => {
53465
- let n = e.state.selection.$from, r = yq(n);
53491
+ }, Oq = (e, t) => {
53492
+ let n = e.state.selection.$from, r = Dq(n);
53466
53493
  if (!r) return !1;
53467
53494
  let i = e.state.tr.setSelection(A.create(e.state.doc, r.codeBlockStart, r.codeBlockEnd));
53468
53495
  return t.preventDefault(), e.dispatch(i), !0;
53469
- }, xq = t_(() => new hr({
53470
- key: new vr(_q),
53471
- props: { handleKeyDown: (e, t) => vq(t) ? !1 : bq(e, t) }
53472
- })), Sq = "code_block", Cq = "ZT_MD_CODE_BLOCK_PRISM", wq = (e, t = []) => e.flatMap((e) => {
53496
+ }, kq = t_(() => new hr({
53497
+ key: new vr(Tq),
53498
+ props: { handleKeyDown: (e, t) => Eq(t) ? !1 : Oq(e, t) }
53499
+ })), Aq = "code_block", jq = "ZT_MD_CODE_BLOCK_PRISM", Mq = (e, t = []) => e.flatMap((e) => {
53473
53500
  if (e.type === "element") {
53474
53501
  let n = [...t, ...e.properties?.className ?? []];
53475
- return wq(e.children ?? [], n);
53502
+ return Mq(e.children ?? [], n);
53476
53503
  }
53477
53504
  return [{
53478
53505
  text: e.value ?? "",
53479
53506
  className: t
53480
53507
  }];
53481
- }), Tq = (e, t) => t.listLanguages().includes(e), Eq = (e, t) => {
53508
+ }), Nq = (e, t) => t.listLanguages().includes(e), Pq = (e, t) => {
53482
53509
  let n = [];
53483
- return Fu((e) => e.type.name === Sq)(e).forEach((e) => {
53510
+ return Fu((e) => e.type.name === Aq)(e).forEach((e) => {
53484
53511
  let r = String(e.node.attrs.language ?? "");
53485
- if (!r || !Tq(r, t)) return;
53512
+ if (!r || !Nq(r, t)) return;
53486
53513
  let i = e.pos + 1;
53487
- wq(t.highlight(e.node.textContent, r).children).forEach((e) => {
53514
+ Mq(t.highlight(e.node.textContent, r).children).forEach((e) => {
53488
53515
  let t = i + e.text.length;
53489
53516
  e.className.length > 0 && n.push(Hm.inline(i, t, { class: e.className.join(" ") })), i = t;
53490
53517
  });
53491
53518
  }), Gm.create(e, n);
53492
- }, Dq = t_(() => {
53519
+ }, Fq = t_(() => {
53493
53520
  let e = $;
53494
53521
  return new hr({
53495
- key: new vr(Cq),
53522
+ key: new vr(jq),
53496
53523
  state: {
53497
- init: (t, n) => Eq(n.doc, e),
53498
- apply: (t, n) => t.docChanged ? Eq(t.doc, e) : n.map(t.mapping, t.doc)
53524
+ init: (t, n) => Pq(n.doc, e),
53525
+ apply: (t, n) => t.docChanged ? Pq(t.doc, e) : n.map(t.mapping, t.doc)
53499
53526
  },
53500
53527
  props: { decorations(e) {
53501
53528
  return this.getState(e);
53502
53529
  } }
53503
53530
  });
53504
- }), Oq = class {
53531
+ }), Iq = class {
53505
53532
  #e;
53506
53533
  #t;
53507
53534
  #n;
@@ -53566,7 +53593,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53566
53593
  #d;
53567
53594
  #f;
53568
53595
  #p;
53569
- }, kq = "zt-md-selection-tooltip", Aq = (e) => [
53596
+ }, Lq = "zt-md-selection-tooltip", Rq = (e) => [
53570
53597
  {
53571
53598
  command: "strong",
53572
53599
  icon: JE,
@@ -53597,7 +53624,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53597
53624
  title: e.selectionTooltipLinkTitle,
53598
53625
  markNames: ["link"]
53599
53626
  }
53600
- ], jq = {
53627
+ ], zq = {
53601
53628
  paragraph: jD,
53602
53629
  heading1: iD,
53603
53630
  heading2: aD,
@@ -53610,68 +53637,68 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53610
53637
  taskList: hD,
53611
53638
  blockquote: kD,
53612
53639
  codeBlock: $E
53613
- }, Mq = (e) => [
53640
+ }, Bq = (e) => [
53614
53641
  {
53615
53642
  command: "paragraph",
53616
- icon: jq.paragraph,
53643
+ icon: zq.paragraph,
53617
53644
  label: e.selectionTooltipTransformParagraphLabel
53618
53645
  },
53619
53646
  {
53620
53647
  command: "heading1",
53621
- icon: jq.heading1,
53648
+ icon: zq.heading1,
53622
53649
  label: e.selectionTooltipTransformHeading1Label
53623
53650
  },
53624
53651
  {
53625
53652
  command: "heading2",
53626
- icon: jq.heading2,
53653
+ icon: zq.heading2,
53627
53654
  label: e.selectionTooltipTransformHeading2Label
53628
53655
  },
53629
53656
  {
53630
53657
  command: "heading3",
53631
- icon: jq.heading3,
53658
+ icon: zq.heading3,
53632
53659
  label: e.selectionTooltipTransformHeading3Label
53633
53660
  },
53634
53661
  {
53635
53662
  command: "heading4",
53636
- icon: jq.heading4,
53663
+ icon: zq.heading4,
53637
53664
  label: e.selectionTooltipTransformHeading4Label
53638
53665
  },
53639
53666
  {
53640
53667
  command: "heading5",
53641
- icon: jq.heading5,
53668
+ icon: zq.heading5,
53642
53669
  label: e.selectionTooltipTransformHeading5Label
53643
53670
  },
53644
53671
  {
53645
53672
  command: "heading6",
53646
- icon: jq.heading6,
53673
+ icon: zq.heading6,
53647
53674
  label: e.selectionTooltipTransformHeading6Label
53648
53675
  },
53649
53676
  {
53650
53677
  command: "bulletList",
53651
- icon: jq.bulletList,
53678
+ icon: zq.bulletList,
53652
53679
  label: e.selectionTooltipTransformBulletListLabel
53653
53680
  },
53654
53681
  {
53655
53682
  command: "orderedList",
53656
- icon: jq.orderedList,
53683
+ icon: zq.orderedList,
53657
53684
  label: e.selectionTooltipTransformOrderedListLabel
53658
53685
  },
53659
53686
  {
53660
53687
  command: "taskList",
53661
- icon: jq.taskList,
53688
+ icon: zq.taskList,
53662
53689
  label: e.selectionTooltipTransformTaskListLabel
53663
53690
  },
53664
53691
  {
53665
53692
  command: "blockquote",
53666
- icon: jq.blockquote,
53693
+ icon: zq.blockquote,
53667
53694
  label: e.selectionTooltipTransformBlockquoteLabel
53668
53695
  },
53669
53696
  {
53670
53697
  command: "codeBlock",
53671
- icon: jq.codeBlock,
53698
+ icon: zq.codeBlock,
53672
53699
  label: e.selectionTooltipTransformCodeBlockLabel
53673
53700
  }
53674
- ], Nq = (e, t) => e(t.state, t.dispatch, t), Pq = (e, t) => {
53701
+ ], Vq = (e, t) => e(t.state, t.dispatch, t), Hq = (e, t) => {
53675
53702
  let n = e?.state?.selection?.$from;
53676
53703
  if (!n || !e?.dispatch) return !1;
53677
53704
  for (let r = n.depth; r > 0; --r) {
@@ -53685,17 +53712,17 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53685
53712
  })), !0;
53686
53713
  }
53687
53714
  return !1;
53688
- }, Fq = {
53715
+ }, Uq = {
53689
53716
  heading1: 1,
53690
53717
  heading2: 2,
53691
53718
  heading3: 3,
53692
53719
  heading4: 4,
53693
53720
  heading5: 5,
53694
53721
  heading6: 6
53695
- }, Iq = {
53722
+ }, Wq = {
53696
53723
  bulletList: "bullet_list",
53697
53724
  orderedList: "ordered_list"
53698
- }, Lq = [
53725
+ }, Gq = [
53699
53726
  "codeBlock",
53700
53727
  "heading1",
53701
53728
  "heading2",
@@ -53708,35 +53735,35 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53708
53735
  "bulletList",
53709
53736
  "blockquote",
53710
53737
  "paragraph"
53711
- ], Rq = async (e, t) => {
53738
+ ], Kq = async (e, t) => {
53712
53739
  if (!e?.state || !e?.dispatch) return !1;
53713
53740
  let n = e.state.schema.nodes;
53714
53741
  if (t === "paragraph") {
53715
53742
  let t = n.paragraph;
53716
- return t ? Nq(Gl(t), e) : !1;
53743
+ return t ? Vq(Gl(t), e) : !1;
53717
53744
  }
53718
- if (t in Fq) {
53719
- let r = n.heading, i = Fq[t];
53720
- return !r || typeof i != "number" ? !1 : Nq(Gl(r, { level: i }), e);
53745
+ if (t in Uq) {
53746
+ let r = n.heading, i = Uq[t];
53747
+ return !r || typeof i != "number" ? !1 : Vq(Gl(r, { level: i }), e);
53721
53748
  }
53722
53749
  if (t === "blockquote") {
53723
53750
  let t = n.blockquote;
53724
- return t ? Nq(Wl(t), e) : !1;
53751
+ return t ? Vq(Wl(t), e) : !1;
53725
53752
  }
53726
53753
  if (t === "taskList") {
53727
53754
  let t = n.bullet_list;
53728
- return !t || !Nq(Iv(t), e) ? !1 : Pq(e, !1);
53755
+ return !t || !Vq(Iv(t), e) ? !1 : Hq(e, !1);
53729
53756
  }
53730
53757
  if (t === "codeBlock") {
53731
53758
  let t = n.code_block;
53732
- return t ? Nq(Gl(t, { language: "text" }), e) : !1;
53759
+ return t ? Vq(Gl(t, { language: "text" }), e) : !1;
53733
53760
  }
53734
- if (t in Iq) {
53735
- let r = n[Iq[t]];
53736
- return r ? Nq(Iv(r), e) : !1;
53761
+ if (t in Wq) {
53762
+ let r = n[Wq[t]];
53763
+ return r ? Vq(Iv(r), e) : !1;
53737
53764
  }
53738
53765
  return !1;
53739
- }, zq = (e) => {
53766
+ }, qq = (e) => {
53740
53767
  let t = e.state.selection.$from, n = /* @__PURE__ */ new Set();
53741
53768
  for (let e = t.depth; e > 0; --e) {
53742
53769
  let r = t.node(e), i = r.type.name;
@@ -53775,34 +53802,34 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53775
53802
  i === "paragraph" && n.add("paragraph");
53776
53803
  }
53777
53804
  return n.has("taskList") && n.delete("bulletList"), n.size === 0 && n.add("paragraph"), n;
53778
- }, Bq = (e) => {
53779
- let t = zq(e);
53780
- return Lq.find((e) => t.has(e)) || "paragraph";
53781
- }, Vq = (e) => typeof e.props.editable == "function" ? e.props.editable(e.state) : e.editable, Hq = (e, t) => {
53805
+ }, Jq = (e) => {
53806
+ let t = qq(e);
53807
+ return Gq.find((e) => t.has(e)) || "paragraph";
53808
+ }, Yq = (e) => typeof e.props.editable == "function" ? e.props.editable(e.state) : e.editable, Xq = (e, t) => {
53782
53809
  let n = e.state.schema.marks, r = t.find((e) => n[e]);
53783
53810
  return r ? n[r] ?? null : null;
53784
- }, Uq = (e, t) => {
53811
+ }, Zq = (e, t) => {
53785
53812
  let { from: n, to: r } = e.selection;
53786
53813
  return e.doc.rangeHasMark(n, r, t);
53787
- }, Wq = (e, t) => {
53814
+ }, Qq = (e, t) => {
53788
53815
  let { from: n, to: r } = e.selection, i = "";
53789
53816
  return e.doc.nodesBetween(n, r, (e) => {
53790
53817
  let n = e.marks.find((e) => e.type === t);
53791
53818
  return n ? (i = typeof n.attrs.href == "string" ? n.attrs.href : "", !1) : !0;
53792
53819
  }), i;
53793
- }, Gq = (e) => {
53820
+ }, $q = (e) => {
53794
53821
  Jl(e.markType)(e.view.state, e.view.dispatch, e.view), e.view.focus();
53795
- }, Kq = (e) => {
53822
+ }, eJ = (e) => {
53796
53823
  e.toggleLinkPopover(e.view);
53797
- }, qq = (e, t) => {
53824
+ }, tJ = (e, t) => {
53798
53825
  ({
53799
- strong: Gq,
53800
- em: Gq,
53801
- strike: Gq,
53802
- inlineCode: Gq,
53803
- link: Kq
53826
+ strong: $q,
53827
+ em: $q,
53828
+ strike: $q,
53829
+ inlineCode: $q,
53830
+ link: eJ
53804
53831
  })[e](t);
53805
- }, Jq = (e, t, n, r, a) => {
53832
+ }, nJ = (e, t, n, r, a) => {
53806
53833
  let o = document.createElement("button");
53807
53834
  o.type = "button", o.className = "zt-md-selection-tooltip-button", o.dataset.command = e.command, o.title = e.title, o.setAttribute("aria-label", e.title);
53808
53835
  let s = document.createElement("span");
@@ -53816,20 +53843,20 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53816
53843
  }), o.addEventListener("click", (i) => {
53817
53844
  i.preventDefault();
53818
53845
  let a = n();
53819
- !a || a.state.selection.empty || qq(e.command, {
53846
+ !a || a.state.selection.empty || tJ(e.command, {
53820
53847
  view: a,
53821
53848
  markType: t,
53822
53849
  toggleLinkPopover: r
53823
53850
  });
53824
53851
  }), o;
53825
- }, Yq = (e, t, n, r, i, a) => {
53852
+ }, rJ = (e, t, n, r, i, a) => {
53826
53853
  let o = document.createElement("div");
53827
53854
  return o.className = "zt-md-selection-tooltip", o.append(i), t.forEach((t) => {
53828
- let i = Hq(e, t.markNames);
53829
- i && t.command !== "link" && o.append(Jq(t, i, n, r, a));
53855
+ let i = Xq(e, t.markNames);
53856
+ i && t.command !== "link" && o.append(nJ(t, i, n, r, a));
53830
53857
  }), o;
53831
- }, Xq = (e) => {
53832
- let t = ZK({
53858
+ }, iJ = (e) => {
53859
+ let t = aq({
53833
53860
  open: e.open,
53834
53861
  portalContainer: e.portalContainer,
53835
53862
  editorWrapper: e.collisionBoundary,
@@ -53845,7 +53872,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53845
53872
  e.onOpenChange(!1);
53846
53873
  return;
53847
53874
  }
53848
- Rq(n, t).then(() => {
53875
+ Kq(n, t).then(() => {
53849
53876
  e.onOpenChange(!1), n.focus();
53850
53877
  });
53851
53878
  };
@@ -53868,7 +53895,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53868
53895
  size: e.iconSize,
53869
53896
  strokeWidth: e.iconStrokeWidth,
53870
53897
  "aria-hidden": "true"
53871
- })), i(QK, {
53898
+ })), i(oq, {
53872
53899
  panel: t,
53873
53900
  portalContainer: e.portalContainer,
53874
53901
  className: "zt-md-selection-transform-popover !w-[176px] p-1",
@@ -53889,7 +53916,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53889
53916
  "aria-hidden": "true"
53890
53917
  }), i("span", { className: "zt-md-selection-transform-item-label" }, t.label));
53891
53918
  }))));
53892
- }, Zq = (e) => {
53919
+ }, aJ = (e) => {
53893
53920
  let [t, r] = f(""), a = d(null), o = (e) => {
53894
53921
  e.preventDefault();
53895
53922
  }, s = (t) => {
@@ -53898,7 +53925,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53898
53925
  e.onOpenChange(!1);
53899
53926
  return;
53900
53927
  }
53901
- let r = Hq(n, ["link"]);
53928
+ let r = Xq(n, ["link"]);
53902
53929
  if (!r) {
53903
53930
  e.onOpenChange(!1);
53904
53931
  return;
@@ -53910,13 +53937,13 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53910
53937
  e.onOpenChange(!1);
53911
53938
  return;
53912
53939
  }
53913
- let n = e.getCurrentView(), i = n ? Hq(n, ["link"]) : null;
53940
+ let n = e.getCurrentView(), i = n ? Xq(n, ["link"]) : null;
53914
53941
  if (!n || !i || n.state.selection.empty) {
53915
53942
  e.onOpenChange(!1);
53916
53943
  return;
53917
53944
  }
53918
- r(WO(Wq(n.state, i))), e.onOpenChange(!0);
53919
- }, u = ZK({
53945
+ r(WO(Qq(n.state, i))), e.onOpenChange(!0);
53946
+ }, u = aq({
53920
53947
  open: e.open,
53921
53948
  portalContainer: e.portalContainer,
53922
53949
  editorWrapper: e.collisionBoundary,
@@ -53928,7 +53955,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53928
53955
  });
53929
53956
  return c(() => {
53930
53957
  if (!e.open) return;
53931
- let t = e.getCurrentView(), n = t ? Hq(t, ["link"]) : null;
53958
+ let t = e.getCurrentView(), n = t ? Xq(t, ["link"]) : null;
53932
53959
  (!t || !n || t.state.selection.empty) && e.onOpenChange(!1);
53933
53960
  }, [
53934
53961
  e.open,
@@ -53957,7 +53984,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53957
53984
  }, i("span", { className: "zt-md-selection-tooltip-button-icon" }, i(mD, {
53958
53985
  size: e.iconSize,
53959
53986
  strokeWidth: e.iconStrokeWidth
53960
- }))), i(QK, {
53987
+ }))), i(oq, {
53961
53988
  panel: u,
53962
53989
  portalContainer: e.portalContainer,
53963
53990
  className: "zt-md-selection-link-popover w-fit min-w-0 gap-0 p-2"
@@ -53990,29 +54017,29 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
53990
54017
  size: e.iconSize,
53991
54018
  strokeWidth: e.iconStrokeWidth
53992
54019
  })))));
53993
- }, Qq = (e, t, n) => {
54020
+ }, oJ = (e, t, n) => {
53994
54021
  n.forEach((n) => {
53995
- let r = Hq(t, n.markNames);
54022
+ let r = Xq(t, n.markNames);
53996
54023
  if (!r) return;
53997
54024
  let i = e.querySelector(`[data-command="${n.command}"]`);
53998
- i instanceof HTMLButtonElement && (i.dataset.active = Uq(t.state, r) ? "true" : "false");
54025
+ i instanceof HTMLButtonElement && (i.dataset.active = Zq(t.state, r) ? "true" : "false");
53999
54026
  });
54000
- }, $q = (e) => {
54027
+ }, sJ = (e) => {
54001
54028
  let { from: t, to: n } = e.state.selection, r = !1;
54002
54029
  return e.state.doc.nodesBetween(t, n, (e) => e.type.name === "code_block" ? (r = !0, !1) : !0), r;
54003
- }, eJ = (e, t, n) => (r) => {
54030
+ }, cJ = (e, t, n) => (r) => {
54004
54031
  let { selection: i, doc: a } = r.state, o = e.contains(document.activeElement);
54005
- return !Vq(r) || i.empty || !(i instanceof A) || !r.hasFocus() && !o && !t() && !n() || $q(r) ? !1 : e.childElementCount > 0 && a.textBetween(i.from, i.to).trim().length > 0;
54006
- }, tJ = (e, t, n) => {
54007
- let r = Aq(n), a = Mq(n), o = e, s = !1, c = !1, l = !1, u = [], d = document.createElement("span"), f = m(d), p = document.createElement("span"), h = null, g = m(p), _ = t.closest(".zt-md-editor"), v = (e) => {
54032
+ return !Yq(r) || i.empty || !(i instanceof A) || !r.hasFocus() && !o && !t() && !n() || sJ(r) ? !1 : e.childElementCount > 0 && a.textBetween(i.from, i.to).trim().length > 0;
54033
+ }, lJ = (e, t, n) => {
54034
+ let r = Rq(n), a = Bq(n), o = e, s = !1, c = !1, l = !1, u = [], d = document.createElement("span"), f = m(d), p = document.createElement("span"), h = null, g = m(p), _ = t.closest(".zt-md-editor"), v = (e) => {
54008
54035
  s !== e && (s = e, S());
54009
54036
  }, y = (e) => {
54010
54037
  c !== e && (c = e, x());
54011
54038
  }, b = (e) => {
54012
54039
  e.state.selection.empty || v(!s);
54013
54040
  }, x = () => {
54014
- let e = o ? zq(o) : new Set(["paragraph"]), r = o ? Bq(o) : "paragraph", s = a.find((e) => e.command === r) ?? a[0];
54015
- f.render(i(Xq, {
54041
+ let e = o ? qq(o) : new Set(["paragraph"]), r = o ? Jq(o) : "paragraph", s = a.find((e) => e.command === r) ?? a[0];
54042
+ f.render(i(iJ, {
54016
54043
  getCurrentView: () => o,
54017
54044
  portalContainer: t,
54018
54045
  collisionBoundary: _,
@@ -54026,7 +54053,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54026
54053
  activeCommands: e
54027
54054
  }));
54028
54055
  }, S = () => {
54029
- g.render(i(Zq, {
54056
+ g.render(i(aJ, {
54030
54057
  getCurrentView: () => o,
54031
54058
  portalContainer: t,
54032
54059
  collisionBoundary: _,
@@ -54039,9 +54066,9 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54039
54066
  onOpenChange: v,
54040
54067
  messages: n
54041
54068
  }));
54042
- }, C = Yq(e, r, () => o, b, d, u);
54043
- x(), Hq(e, ["link"]) && (C.append(p), S());
54044
- let w = eJ(C, () => s, () => c), T = new Oq({
54069
+ }, C = rJ(e, r, () => o, b, d, u);
54070
+ x(), Xq(e, ["link"]) && (C.append(p), S());
54071
+ let w = cJ(C, () => s, () => c), T = new Iq({
54045
54072
  content: C,
54046
54073
  debounce: 80,
54047
54074
  offset: 8,
@@ -54065,9 +54092,9 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54065
54092
  };
54066
54093
  return e.dom.addEventListener("blur", re), document.addEventListener("mousedown", ie, !0), {
54067
54094
  update: (e, t) => {
54068
- if (o = e, o.state.selection.empty && (v(!1), y(!1)), Qq(C, o, r), x(), h) {
54069
- let e = Hq(o, ["link"]);
54070
- h.dataset.active = e && Uq(o.state, e) ? "true" : "false";
54095
+ if (o = e, o.state.selection.empty && (v(!1), y(!1)), oJ(C, o, r), x(), h) {
54096
+ let e = Xq(o, ["link"]);
54097
+ h.dataset.active = e && Zq(o.state, e) ? "true" : "false";
54071
54098
  }
54072
54099
  if (!w(o)) {
54073
54100
  T.hide(), ee();
@@ -54081,21 +54108,21 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54081
54108
  }), T.destroy(), C.remove();
54082
54109
  }
54083
54110
  };
54084
- }, nJ = (e, t) => t_(() => new hr({
54085
- key: new vr(kq),
54086
- view: (n) => tJ(n, e, t)
54087
- })), rJ = (e, t) => e(t.state, t.dispatch, t), iJ = (e) => {
54111
+ }, uJ = (e, t) => t_(() => new hr({
54112
+ key: new vr(Lq),
54113
+ view: (n) => lJ(n, e, t)
54114
+ })), dJ = (e, t) => e(t.state, t.dispatch, t), fJ = (e) => {
54088
54115
  let t = e?.state?.selection?.$from;
54089
54116
  if (!t) return !1;
54090
54117
  for (let e = t.depth; e > 0; --e) if (t.node(e)?.type?.name === "table") return !0;
54091
54118
  return !1;
54092
- }, aJ = (e, t) => {
54119
+ }, pJ = (e, t) => {
54093
54120
  let n = e?.state?.doc;
54094
54121
  if (!n || typeof t != "number") return -1;
54095
54122
  let r = Math.min(Math.max(t, 0), n.content.size), i = n.resolve(r);
54096
54123
  for (let e = i.depth; e > 0; --e) if (i.node(e)?.type?.name === "table") return i.before(e);
54097
54124
  return -1;
54098
- }, oJ = (e, t, n, r) => {
54125
+ }, mJ = (e, t, n, r) => {
54099
54126
  let i = e?.state?.schema?.nodes;
54100
54127
  if (!i) return null;
54101
54128
  let a = i.table, o = i.table_header_row, s = i.table_row, c = i.table_header, l = i.table_cell;
@@ -54105,21 +54132,21 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54105
54132
  return i.create(null, u);
54106
54133
  });
54107
54134
  return a.create(null, f);
54108
- }, sJ = async (e) => {
54109
- if (!e?.state || !e?.dispatch || iJ(e)) return !1;
54110
- let t = e.state.selection.from, n = oJ(e, 3, 3, !0);
54135
+ }, hJ = async (e) => {
54136
+ if (!e?.state || !e?.dispatch || fJ(e)) return !1;
54137
+ let t = e.state.selection.from, n = mJ(e, 3, 3, !0);
54111
54138
  if (!n) return !1;
54112
54139
  e.dispatch(e.state.tr.replaceSelectionWith(n).scrollIntoView());
54113
- let r = aJ(e, t);
54114
- if (r < 0 && t > 0 && (r = aJ(e, t - 1)), r < 0) return !0;
54140
+ let r = pJ(e, t);
54141
+ if (r < 0 && t > 0 && (r = pJ(e, t - 1)), r < 0) return !0;
54115
54142
  let i = r + 2;
54116
54143
  if (i > e.state.doc.content.size) return !0;
54117
54144
  let a = A.near(e.state.doc.resolve(i), 1);
54118
54145
  return e.dispatch(e.state.tr.setSelection(a).scrollIntoView()), e.focus(), !0;
54119
- }, cJ = (e, t) => {
54146
+ }, gJ = (e, t) => {
54120
54147
  let n = e?.state?.schema?.marks ?? {}, r = t.find((e) => n[e]);
54121
54148
  return r ? n[r] ?? null : null;
54122
- }, lJ = new Set([
54149
+ }, _J = new Set([
54123
54150
  "paragraph",
54124
54151
  "heading1",
54125
54152
  "heading2",
@@ -54132,7 +54159,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54132
54159
  "taskList",
54133
54160
  "blockquote",
54134
54161
  "codeBlock"
54135
- ]), uJ = (e) => lJ.has(e), dJ = async (e) => {
54162
+ ]), vJ = (e) => _J.has(e), yJ = async (e) => {
54136
54163
  let t = e?.state?.schema?.nodes?.math_inline;
54137
54164
  if (!t || !e?.dispatch) return !1;
54138
54165
  let n = e.state.selection.from, r = t.create({ value: "" });
@@ -54140,18 +54167,18 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54140
54167
  type: "open",
54141
54168
  position: n
54142
54169
  }).scrollIntoView()), !0;
54143
- }, fJ = async (e, t) => {
54170
+ }, bJ = async (e, t) => {
54144
54171
  if (!e?.state || !e?.dispatch) return !1;
54145
54172
  let n = e.state.schema?.nodes ?? {};
54146
- if (uJ(t)) return Rq(e, t);
54173
+ if (vJ(t)) return Kq(e, t);
54147
54174
  if (t === "inlineCode") {
54148
- let t = cJ(e, ["inlineCode", "code_inline"]);
54149
- return t ? rJ(Jl(t), e) : !1;
54175
+ let t = gJ(e, ["inlineCode", "code_inline"]);
54176
+ return t ? dJ(Jl(t), e) : !1;
54150
54177
  }
54151
- if (t === "inlineMath") return dJ(e);
54178
+ if (t === "inlineMath") return yJ(e);
54152
54179
  if (t === "mathBlock") {
54153
54180
  let t = n.math_block;
54154
- if (!t || !rJ(Gl(t), e)) return !1;
54181
+ if (!t || !dJ(Gl(t), e)) return !1;
54155
54182
  let r = e.state.selection?.$from;
54156
54183
  if (!r) return !0;
54157
54184
  let i = null;
@@ -54163,8 +54190,8 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54163
54190
  let a = j.create(e.state.doc, i);
54164
54191
  return e.dispatch(e.state.tr.setSelection(a).scrollIntoView()), !0;
54165
54192
  }
54166
- return t === "table" ? sJ(e) : !1;
54167
- }, pJ = (e) => typeof e?.props?.editable == "function" ? e.props.editable(e.state) : !!e?.editable, mJ = [
54193
+ return t === "table" ? hJ(e) : !1;
54194
+ }, xJ = (e) => typeof e?.props?.editable == "function" ? e.props.editable(e.state) : !!e?.editable, SJ = [
54168
54195
  {
54169
54196
  id: "paragraph",
54170
54197
  label: "普通文本",
@@ -54284,7 +54311,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54284
54311
  icon: "Image",
54285
54312
  command: "image"
54286
54313
  }
54287
- ], hJ = [
54314
+ ], CJ = [
54288
54315
  {
54289
54316
  id: "paragraph",
54290
54317
  label: "Paragraph",
@@ -54404,7 +54431,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54404
54431
  icon: "Image",
54405
54432
  command: "image"
54406
54433
  }
54407
- ], gJ = (e, t = "zh-CN") => e?.items && e.items.length > 0 ? e.items : t === "en-US" ? hJ : mJ, _J = (e) => {
54434
+ ], wJ = (e, t = "zh-CN") => e?.items && e.items.length > 0 ? e.items : t === "en-US" ? CJ : SJ, TJ = (e) => {
54408
54435
  let t = e?.state?.selection?.$from;
54409
54436
  if (!t) return !1;
54410
54437
  let n = String(t.parent?.type?.name ?? "");
@@ -54414,17 +54441,17 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54414
54441
  if (n === "table" || n === "table_cell" || n === "table_header") return !0;
54415
54442
  }
54416
54443
  return !1;
54417
- }, vJ = (e) => {
54444
+ }, EJ = (e) => {
54418
54445
  let t = e?.state, n = t?.selection?.$from;
54419
54446
  if (!t || !n) return "";
54420
54447
  let r = n.start(), i = n.pos;
54421
54448
  return t.doc.textBetween(r, i, "\n", "\n");
54422
- }, yJ = (e) => {
54423
- let t = vJ(e), n = t.lastIndexOf("/");
54449
+ }, DJ = (e) => {
54450
+ let t = EJ(e), n = t.lastIndexOf("/");
54424
54451
  if (n < 0) return null;
54425
54452
  let r = t.slice(n + 1);
54426
54453
  return /\s/.test(r) ? null : r;
54427
- }, bJ = (e, t) => {
54454
+ }, OJ = (e, t) => {
54428
54455
  if (t === null || t.length === 0) return e;
54429
54456
  let n = t.toLowerCase();
54430
54457
  return e.filter((e) => [
@@ -54433,24 +54460,24 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54433
54460
  e.command,
54434
54461
  e.id
54435
54462
  ].some((e) => String(e).toLowerCase().startsWith(n)));
54436
- }, xJ = (e, t) => {
54437
- if (!pJ(e)) return {
54463
+ }, kJ = (e, t) => {
54464
+ if (!xJ(e)) return {
54438
54465
  visibleItems: [],
54439
54466
  shouldShow: !1
54440
54467
  };
54441
- let n = yJ(e), r = bJ(t, n);
54468
+ let n = DJ(e), r = OJ(t, n);
54442
54469
  return {
54443
54470
  visibleItems: r,
54444
- shouldShow: !_J(e) && n !== null && r.length > 0
54471
+ shouldShow: !TJ(e) && n !== null && r.length > 0
54445
54472
  };
54446
- }, SJ = (e) => {
54473
+ }, AJ = (e) => {
54447
54474
  let t = e?.state, n = t?.selection?.$from;
54448
54475
  if (!t || !n || !e?.dispatch) return !1;
54449
54476
  let r = n.start(), i = n.pos, a = t.doc.textBetween(r, i, "\n", "\n").lastIndexOf("/");
54450
54477
  if (a < 0) return !1;
54451
54478
  let o = r + a, s = t.tr.delete(o, i);
54452
54479
  return e.dispatch(s.scrollIntoView()), !0;
54453
- }, CJ = {
54480
+ }, jJ = {
54454
54481
  Type: jD,
54455
54482
  Heading1: iD,
54456
54483
  Heading2: aD,
@@ -54468,7 +54495,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54468
54495
  TextQuote: kD,
54469
54496
  Sigma: xD,
54470
54497
  Table: TD
54471
- }, wJ = QE, TJ = (e, t, n, r) => {
54498
+ }, MJ = QE, NJ = (e, t, n, r) => {
54472
54499
  r.splice(0).forEach((e) => {
54473
54500
  e.unmount();
54474
54501
  }), e.innerHTML = "";
@@ -54482,7 +54509,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54482
54509
  s.className = "slash-menu-item", s.dataset.command = t.command, s.dataset.selected = o === n ? "true" : "false";
54483
54510
  let c = document.createElement("span");
54484
54511
  c.className = "slash-menu-item-icon";
54485
- let l = t.icon ? CJ[t.icon] ?? wJ : null;
54512
+ let l = t.icon ? jJ[t.icon] ?? MJ : null;
54486
54513
  if (l) {
54487
54514
  let e = m(c);
54488
54515
  e.render(i(l, {
@@ -54493,12 +54520,12 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54493
54520
  let u = document.createElement("span");
54494
54521
  u.className = "slash-menu-item-label", u.textContent = t.label, s.appendChild(c), s.appendChild(u), e.appendChild(s);
54495
54522
  });
54496
- }, EJ = (e) => {
54523
+ }, PJ = (e) => {
54497
54524
  let t = document.createElement("div");
54498
54525
  t.className = "slash-menu", t.style.display = "none", e.appendChild(t);
54499
54526
  let n = !1, r = "", i = !1, a = null, o = [], s = () => {
54500
54527
  if (!n || !a) return;
54501
- let { editorWrapper: r, anchorTopInContent: i, anchorBottomInContent: o, anchorLeftInContent: s, placement: c, offsetY: l } = a, u = JK({
54528
+ let { editorWrapper: r, anchorTopInContent: i, anchorBottomInContent: o, anchorLeftInContent: s, placement: c, offsetY: l } = a, u = nq({
54502
54529
  wrapper: r,
54503
54530
  anchor: {
54504
54531
  anchorTopInContent: i,
@@ -54511,7 +54538,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54511
54538
  boundaryInset: 4
54512
54539
  }, e);
54513
54540
  t.style.left = `${u.left}px`, t.style.top = `${u.top}px`, t.dataset.placement = c;
54514
- }, c = YK(() => {
54541
+ }, c = rq(() => {
54515
54542
  n && s();
54516
54543
  }), l = () => {
54517
54544
  t.style.top = "", t.style.left = "", t.style.transform = "", delete t.dataset.placement;
@@ -54530,7 +54557,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54530
54557
  },
54531
54558
  renderIfNeeded: (e, n) => {
54532
54559
  let i = `${e.map((e) => e.command).join("|")}::${n}`;
54533
- r !== i && (TJ(t, e, n, o), r = i);
54560
+ r !== i && (NJ(t, e, n, o), r = i);
54534
54561
  },
54535
54562
  scrollActiveItemIntoView: (e) => {
54536
54563
  let n = t.querySelector(".slash-menu-item[data-selected=\"true\"]");
@@ -54552,7 +54579,7 @@ var IK = /* @__PURE__ */ new Set(), LK = !1, RK = () => typeof document < "u", z
54552
54579
  };
54553
54580
  //#endregion
54554
54581
  //#region node_modules/.pnpm/@milkdown+plugin-slash@7.21.1/node_modules/@milkdown/plugin-slash/lib/index.js
54555
- function DJ(e) {
54582
+ function FJ(e) {
54556
54583
  let t = r_({}, `${e}_SLASH_SPEC`), n = t_((n) => {
54557
54584
  let r = n.get(t.key);
54558
54585
  return new hr({
@@ -54570,29 +54597,29 @@ function DJ(e) {
54570
54597
  }
54571
54598
  //#endregion
54572
54599
  //#region src/plugins/custom/slash-menu/slash-menu.ts
54573
- var OJ = (e, t) => {
54600
+ var IJ = (e, t) => {
54574
54601
  if (!(!e || typeof e != "object")) return e[t];
54575
- }, kJ = () => {
54576
- if (typeof DJ != "function") return console.error("[zt-md/slash] slashFactory not found"), null;
54577
- let e = DJ("zt-md-slash"), t = Array.isArray(e) ? e[0] : void 0, n = Array.isArray(e) ? e[1] : e, r = Array.isArray(e) ? e[2] : void 0;
54602
+ }, LJ = () => {
54603
+ if (typeof FJ != "function") return console.error("[zt-md/slash] slashFactory not found"), null;
54604
+ let e = FJ("zt-md-slash"), t = Array.isArray(e) ? e[0] : void 0, n = Array.isArray(e) ? e[1] : e, r = Array.isArray(e) ? e[2] : void 0;
54578
54605
  if (!n) return null;
54579
- let i = Array.isArray(e) ? e.filter((e, t) => t < 2 && e != null) : [n], a = OJ(t, "key") ?? OJ(n, "key") ?? OJ(r, "key") ?? OJ(e, "key");
54606
+ let i = Array.isArray(e) ? e.filter((e, t) => t < 2 && e != null) : [n], a = IJ(t, "key") ?? IJ(n, "key") ?? IJ(r, "key") ?? IJ(e, "key");
54580
54607
  return i.length === 0 || a === void 0 ? null : {
54581
54608
  plugins: i,
54582
54609
  key: a
54583
54610
  };
54584
- }, AJ = (e, t, n, r, i = "zh-CN") => {
54611
+ }, RJ = (e, t, n, r, i = "zh-CN") => {
54585
54612
  if (t?.enabled === !1) return {
54586
54613
  plugins: [],
54587
54614
  config: null
54588
54615
  };
54589
54616
  try {
54590
- let a = kJ();
54617
+ let a = LJ();
54591
54618
  if (!a) return {
54592
54619
  plugins: [],
54593
54620
  config: null
54594
54621
  };
54595
- let o = gJ(t, i), s = EJ(e), c = 0, l = null, u = o, d = !1, f = new Set([
54622
+ let o = wJ(t, i), s = PJ(e), c = 0, l = null, u = o, d = !1, f = new Set([
54596
54623
  "ArrowDown",
54597
54624
  "ArrowUp",
54598
54625
  "Enter",
@@ -54607,18 +54634,18 @@ var OJ = (e, t) => {
54607
54634
  let n = e?.coordsAtPos?.(t);
54608
54635
  return n ? new DOMRect(n.left, n.top, Math.max(n.right - n.left, 1), n.bottom - n.top) : null;
54609
54636
  }, h = (e) => {
54610
- if (!pJ(e)) {
54637
+ if (!xJ(e)) {
54611
54638
  u = [], d = !1, s.updatePositionContext(null), s.setVisible(!1);
54612
54639
  return;
54613
54640
  }
54614
- let t = xJ(e, o);
54641
+ let t = kJ(e, o);
54615
54642
  if (u = t.visibleItems, d = t.shouldShow, t.shouldShow && c >= u.length && (c = 0), t.shouldShow && !s.isVisible() && (c = 0), !t.shouldShow) {
54616
54643
  s.updatePositionContext(null), s.setVisible(!1);
54617
54644
  return;
54618
54645
  }
54619
- let n = m(e), r = UK(e?.dom);
54646
+ let n = m(e), r = ZK(e?.dom);
54620
54647
  if (n && r) {
54621
- let e = WK(n, 320), t = GK(n, r);
54648
+ let e = QK(n, 320), t = $K(n, r);
54622
54649
  s.updatePositionContext({
54623
54650
  editorWrapper: r,
54624
54651
  anchorTopInContent: t.anchorTopInContent,
@@ -54632,13 +54659,13 @@ var OJ = (e, t) => {
54632
54659
  s.updatePosition();
54633
54660
  });
54634
54661
  }, g = async () => {
54635
- if (!pJ(l)) {
54662
+ if (!xJ(l)) {
54636
54663
  d = !1, s.updatePositionContext(null), s.setVisible(!1);
54637
54664
  return;
54638
54665
  }
54639
54666
  if (!l || c < 0 || c >= u.length) return;
54640
54667
  let t = u[c];
54641
- if (SJ(l)) {
54668
+ if (AJ(l)) {
54642
54669
  if (t.command === "image") {
54643
54670
  s.setVisible(!1), n && NI({
54644
54671
  portalContainer: e,
@@ -54648,7 +54675,7 @@ var OJ = (e, t) => {
54648
54675
  });
54649
54676
  return;
54650
54677
  }
54651
- await fJ(l, t.command) && (s.setVisible(!1), t.command === "mathBlock" && queueMicrotask(() => {
54678
+ await bJ(l, t.command) && (s.setVisible(!1), t.command === "mathBlock" && queueMicrotask(() => {
54652
54679
  let e = l?.dom?.querySelector?.(".zt-md-math-block-editing .zt-md-math-block-textarea");
54653
54680
  !e || document.activeElement === e || e.focus();
54654
54681
  }));
@@ -54682,22 +54709,22 @@ var OJ = (e, t) => {
54682
54709
  config: null
54683
54710
  };
54684
54711
  }
54685
- }, jJ = "table", MJ = "ArrowUp", NJ = (e) => e.key !== MJ || e.defaultPrevented || e.altKey || e.ctrlKey || e.metaKey, PJ = (e, t) => {
54712
+ }, zJ = "table", BJ = "ArrowUp", VJ = (e) => e.key !== BJ || e.defaultPrevented || e.altKey || e.ctrlKey || e.metaKey, HJ = (e, t) => {
54686
54713
  let n = t.nodeBefore;
54687
- return !n || n.type.name !== jJ ? null : {
54714
+ return !n || n.type.name !== zJ ? null : {
54688
54715
  tableNode: n,
54689
54716
  tableStart: e - n.nodeSize
54690
54717
  };
54691
- }, FJ = (e) => {
54718
+ }, UJ = (e) => {
54692
54719
  if (e.parent.type.name !== "paragraph" || e.parentOffset !== 0 || e.parent.childCount > 0 || e.depth < 1) return null;
54693
54720
  let t = e.index(e.depth - 1);
54694
54721
  if (t <= 0) return null;
54695
54722
  let n = e.node(e.depth - 1).child(t - 1);
54696
- return n.type.name === jJ ? {
54723
+ return n.type.name === zJ ? {
54697
54724
  tableNode: n,
54698
54725
  tableStart: e.before(e.depth) - n.nodeSize
54699
54726
  } : null;
54700
- }, IJ = (e, t) => {
54727
+ }, WJ = (e, t) => {
54701
54728
  if (e.childCount === 0) return null;
54702
54729
  let n = e.childCount - 1, r = e.child(n);
54703
54730
  if (r.childCount === 0) return null;
@@ -54706,21 +54733,21 @@ var OJ = (e, t) => {
54706
54733
  let a = r.childCount - 1, o = r.child(a), s = 0;
54707
54734
  for (let e = 0; e < a; e += 1) s += r.child(e).nodeSize;
54708
54735
  return t + 1 + i + 1 + s + o.nodeSize - 1;
54709
- }, LJ = (e) => {
54736
+ }, GJ = (e) => {
54710
54737
  let { selection: t } = e.state, n = t.$from, r = null;
54711
- if (t instanceof dE ? r = PJ(t.from, n) : t.empty && (r = FJ(n)), !r) return !1;
54712
- let i = IJ(r.tableNode, r.tableStart);
54738
+ if (t instanceof dE ? r = HJ(t.from, n) : t.empty && (r = UJ(n)), !r) return !1;
54739
+ let i = WJ(r.tableNode, r.tableStart);
54713
54740
  if (i === null) return !1;
54714
54741
  let a = e.state.tr.setSelection(A.near(e.state.doc.resolve(i), -1)).scrollIntoView();
54715
54742
  return e.dispatch(a), e.focus(), !0;
54716
- }, RJ = t_(() => new hr({
54743
+ }, KJ = t_(() => new hr({
54717
54744
  key: new vr("zt-md-table-arrow-entry"),
54718
- props: { handleKeyDown: (e, t) => NJ(t) ? !1 : LJ(e) }
54719
- })), zJ = "table", BJ = "table_header_row", VJ = "table_row", HJ = "table_header", UJ = "table_cell", WJ = (e) => {
54745
+ props: { handleKeyDown: (e, t) => VJ(t) ? !1 : GJ(e) }
54746
+ })), qJ = "table", JJ = "table_header_row", YJ = "table_row", XJ = "table_header", ZJ = "table_cell", QJ = (e) => {
54720
54747
  let t = e.selection.$from, n = -1, r = -1;
54721
54748
  for (let e = t.depth; e >= 0; --e) {
54722
54749
  let i = t.node(e);
54723
- if (r < 0 && (i.type.name === UJ || i.type.name === HJ) && (r = t.index(e - 1)), n < 0 && (i.type.name === VJ || i.type.name === BJ) && (n = t.index(e - 1)), i.type.name === zJ) return {
54750
+ if (r < 0 && (i.type.name === ZJ || i.type.name === XJ) && (r = t.index(e - 1)), n < 0 && (i.type.name === YJ || i.type.name === JJ) && (n = t.index(e - 1)), i.type.name === qJ) return {
54724
54751
  tableNode: i,
54725
54752
  tableStart: e === 0 ? 0 : t.before(e),
54726
54753
  tableNodeSize: i.nodeSize,
@@ -54729,7 +54756,7 @@ var OJ = (e, t) => {
54729
54756
  };
54730
54757
  }
54731
54758
  return null;
54732
- }, GJ = (e, t, n, r) => {
54759
+ }, $J = (e, t, n, r) => {
54733
54760
  if (n < 0 || n >= e.childCount) return null;
54734
54761
  let i = 0;
54735
54762
  for (let t = 0; t < n; t += 1) i += e.child(t).nodeSize;
@@ -54738,16 +54765,16 @@ var OJ = (e, t) => {
54738
54765
  let o = 0;
54739
54766
  for (let e = 0; e < r; e += 1) o += a.child(e).nodeSize;
54740
54767
  return t + 1 + i + 1 + o + 1 + 1;
54741
- }, KJ = (e) => {
54768
+ }, eY = (e) => {
54742
54769
  if (e.columnIndex < 0 || e.tableNode.childCount === 0) return !1;
54743
54770
  let t = e.tableNode.child(0);
54744
54771
  return e.columnIndex < t.childCount;
54745
- }, qJ = (e, t, n, r) => {
54746
- let i = GJ(t.tableNode, t.tableStart, n, r);
54772
+ }, tY = (e, t, n, r) => {
54773
+ let i = $J(t.tableNode, t.tableStart, n, r);
54747
54774
  if (i === null) return !1;
54748
54775
  let a = e.state.tr.setSelection(A.near(e.state.tr.doc.resolve(i), 1));
54749
54776
  return e.dispatch(a), !0;
54750
- }, JJ = (e, t) => t(e.state, e.dispatch, e) ? (e.dispatch(e.state.tr.scrollIntoView()), e.focus(), !0) : !1, YJ = (e, t, n) => t.rowIndex < 0 || t.columnIndex < 0 || !qJ(e, t, t.rowIndex, t.columnIndex) ? !1 : JJ(e, n === "above" ? Ux : Wx), XJ = (e, t) => t.rowIndex <= 0 || t.columnIndex < 0 || !qJ(e, t, t.rowIndex, t.columnIndex) ? !1 : JJ(e, Kx), ZJ = (e, t, n) => t.rowIndex < 0 || t.columnIndex < 0 || !qJ(e, t, t.rowIndex, t.columnIndex) ? !1 : JJ(e, n === "left" ? Lx : Rx), QJ = (e, t) => t.rowIndex < 0 || t.columnIndex < 0 || (t.tableNode.childCount > 0 ? t.tableNode.child(0).childCount : 0) <= 1 || !qJ(e, t, t.rowIndex, t.columnIndex) ? !1 : JJ(e, Bx), $J = (e, t, n) => {
54777
+ }, nY = (e, t) => t(e.state, e.dispatch, e) ? (e.dispatch(e.state.tr.scrollIntoView()), e.focus(), !0) : !1, rY = (e, t, n) => t.rowIndex < 0 || t.columnIndex < 0 || !tY(e, t, t.rowIndex, t.columnIndex) ? !1 : nY(e, n === "above" ? Ux : Wx), iY = (e, t) => t.rowIndex <= 0 || t.columnIndex < 0 || !tY(e, t, t.rowIndex, t.columnIndex) ? !1 : nY(e, Kx), aY = (e, t, n) => t.rowIndex < 0 || t.columnIndex < 0 || !tY(e, t, t.rowIndex, t.columnIndex) ? !1 : nY(e, n === "left" ? Lx : Rx), oY = (e, t) => t.rowIndex < 0 || t.columnIndex < 0 || (t.tableNode.childCount > 0 ? t.tableNode.child(0).childCount : 0) <= 1 || !tY(e, t, t.rowIndex, t.columnIndex) ? !1 : nY(e, Bx), sY = (e, t, n) => {
54751
54778
  if (t.columnIndex < 0) return !1;
54752
54779
  let r = Ub.get(t.tableNode), i = t.tableStart + 1, a = t.columnIndex, o = e.state.tr;
54753
54780
  for (let e = 0; e < r.height; e += 1) {
@@ -54762,14 +54789,14 @@ var OJ = (e, t) => {
54762
54789
  o.setNodeMarkup(c, l.type, u, l.marks);
54763
54790
  }
54764
54791
  return o.docChanged ? (o.scrollIntoView(), e.dispatch(o), e.focus(), !0) : !1;
54765
- }, eY = (e) => {
54766
- let t = WJ(e.state);
54767
- !t || t.rowIndex <= 0 || XJ(e, t);
54768
- }, tY = (e) => {
54769
- let t = WJ(e.state);
54770
- !t || t.rowIndex < 0 || t.columnIndex < 0 || QJ(e, t);
54771
- }, nY = (e) => {
54772
- let [t, r] = f(!1), a = ZK({
54792
+ }, cY = (e) => {
54793
+ let t = QJ(e.state);
54794
+ !t || t.rowIndex <= 0 || iY(e, t);
54795
+ }, lY = (e) => {
54796
+ let t = QJ(e.state);
54797
+ !t || t.rowIndex < 0 || t.columnIndex < 0 || oY(e, t);
54798
+ }, uY = (e) => {
54799
+ let [t, r] = f(!1), a = aq({
54773
54800
  open: t,
54774
54801
  portalContainer: e.portalContainer,
54775
54802
  editorWrapper: e.collisionBoundary,
@@ -54801,7 +54828,7 @@ var OJ = (e, t) => {
54801
54828
  size: 14,
54802
54829
  strokeWidth: 2,
54803
54830
  "aria-hidden": "true"
54804
- })), i(QK, {
54831
+ })), i(oq, {
54805
54832
  panel: a,
54806
54833
  portalContainer: e.portalContainer,
54807
54834
  className: "zt-md-table-action-popover",
@@ -54869,13 +54896,13 @@ var OJ = (e, t) => {
54869
54896
  e.onDeleteColumn(), r(!1);
54870
54897
  }
54871
54898
  }, e.messages.tableDeleteColumnLabel))));
54872
- }, rY = "zt-md-table-focus-actions", iY = 0, aY = 24, oY = 4, sY = 4, cY = "top", lY = "left", uY = (e) => p(i(e, {
54899
+ }, dY = "zt-md-table-focus-actions", fY = 0, pY = 24, mY = 4, hY = 4, gY = "top", _Y = "left", vY = (e) => p(i(e, {
54873
54900
  size: 14,
54874
54901
  strokeWidth: 2,
54875
54902
  "aria-hidden": "true"
54876
- })), dY = uY(AD), fY = uY(OD), pY = uY(DD), mY = uY(ED), hY = (e) => typeof e.props.editable == "function" ? e.props.editable(e.state) : e.editable, gY = class {
54903
+ })), yY = vY(AD), bY = vY(OD), xY = vY(DD), SY = vY(ED), CY = (e) => typeof e.props.editable == "function" ? e.props.editable(e.state) : e.editable, wY = class {
54877
54904
  constructor(e, t, n) {
54878
- this.currentTableStart = null, this.currentTableNodeSize = null, this.currentColumnIndex = null, this.currentColumnAlignment = lY, this.currentTableElement = null, this.hasPositionContext = !1, this.repositionScheduler = YK(() => {
54905
+ this.currentTableStart = null, this.currentTableNodeSize = null, this.currentColumnIndex = null, this.currentColumnAlignment = _Y, this.currentTableElement = null, this.hasPositionContext = !1, this.repositionScheduler = rq(() => {
54879
54906
  this.hasPositionContext && this.updateOverlayPosition();
54880
54907
  }), this.handleActionsMouseDown = (e) => {
54881
54908
  e.preventDefault();
@@ -54890,41 +54917,41 @@ var OJ = (e, t) => {
54890
54917
  }, this.handleAlignRightClick = () => {
54891
54918
  this.applyColumnAlignment("right");
54892
54919
  }, this.handleInsertRowBelow = () => {
54893
- let e = WJ(this.view.state);
54894
- !e || e.rowIndex < 0 || YJ(this.view, e, "below");
54920
+ let e = QJ(this.view.state);
54921
+ !e || e.rowIndex < 0 || rY(this.view, e, "below");
54895
54922
  }, this.handleInsertRowAbove = () => {
54896
- let e = WJ(this.view.state);
54897
- !e || e.rowIndex <= 0 || YJ(this.view, e, "above");
54923
+ let e = QJ(this.view.state);
54924
+ !e || e.rowIndex <= 0 || rY(this.view, e, "above");
54898
54925
  }, this.handleInsertColumnLeft = () => {
54899
54926
  this.insertColumn("left");
54900
54927
  }, this.handleInsertColumnRight = () => {
54901
54928
  this.insertColumn("right");
54902
54929
  }, this.handleDeleteRow = () => {
54903
- eY(this.view);
54930
+ cY(this.view);
54904
54931
  }, this.handleDeleteColumn = () => {
54905
- tY(this.view);
54906
- }, this.view = e, this.messages = t, this.portalContainer = n, this.editorWrapper = UK(e.dom), this.actionsContainer = document.createElement("div"), this.actionsContainer.className = "zt-md-table-actions-overlay", this.deleteButton = document.createElement("button"), this.deleteButton.type = "button", this.deleteButton.className = "zt-md-table-action-button zt-md-table-action-button-danger", this.deleteButton.style.display = "inline-flex", this.deleteButton.setAttribute("aria-label", t.tableDeleteAriaLabel), this.deleteButton.innerHTML = dY, this.alignLeftButton = this.createColumnAlignmentButton(t.tableAlignLeftAriaLabel, fY), this.alignCenterButton = this.createColumnAlignmentButton(t.tableAlignCenterAriaLabel, pY), this.alignRightButton = this.createColumnAlignmentButton(t.tableAlignRightAriaLabel, mY), this.moreActionsMount = document.createElement("span"), this.moreActionsMount.className = "zt-md-table-more-actions-mount", this.moreActionsRoot = m(this.moreActionsMount), this.actionsContainer.append(this.moreActionsMount, this.alignLeftButton, this.alignCenterButton, this.alignRightButton, this.deleteButton), this.actionsContainer.addEventListener("mousedown", this.handleActionsMouseDown), this.deleteButton.addEventListener("click", this.handleDeleteClick), this.alignLeftButton.addEventListener("click", this.handleAlignLeftClick), this.alignCenterButton.addEventListener("click", this.handleAlignCenterClick), this.alignRightButton.addEventListener("click", this.handleAlignRightClick), this.repositionScheduler.bindGlobal(), this.repositionScheduler.bindWrapper(this.editorWrapper), this.update(e);
54932
+ lY(this.view);
54933
+ }, this.view = e, this.messages = t, this.portalContainer = n, this.editorWrapper = ZK(e.dom), this.actionsContainer = document.createElement("div"), this.actionsContainer.className = "zt-md-table-actions-overlay", this.deleteButton = document.createElement("button"), this.deleteButton.type = "button", this.deleteButton.className = "zt-md-table-action-button zt-md-table-action-button-danger", this.deleteButton.style.display = "inline-flex", this.deleteButton.setAttribute("aria-label", t.tableDeleteAriaLabel), this.deleteButton.innerHTML = yY, this.alignLeftButton = this.createColumnAlignmentButton(t.tableAlignLeftAriaLabel, bY), this.alignCenterButton = this.createColumnAlignmentButton(t.tableAlignCenterAriaLabel, xY), this.alignRightButton = this.createColumnAlignmentButton(t.tableAlignRightAriaLabel, SY), this.moreActionsMount = document.createElement("span"), this.moreActionsMount.className = "zt-md-table-more-actions-mount", this.moreActionsRoot = m(this.moreActionsMount), this.actionsContainer.append(this.moreActionsMount, this.alignLeftButton, this.alignCenterButton, this.alignRightButton, this.deleteButton), this.actionsContainer.addEventListener("mousedown", this.handleActionsMouseDown), this.deleteButton.addEventListener("click", this.handleDeleteClick), this.alignLeftButton.addEventListener("click", this.handleAlignLeftClick), this.alignCenterButton.addEventListener("click", this.handleAlignCenterClick), this.alignRightButton.addEventListener("click", this.handleAlignRightClick), this.repositionScheduler.bindGlobal(), this.repositionScheduler.bindWrapper(this.editorWrapper), this.update(e);
54907
54934
  }
54908
54935
  createColumnAlignmentButton(e, t) {
54909
54936
  let n = document.createElement("button");
54910
54937
  return n.type = "button", n.className = "zt-md-table-action-button", n.style.display = "inline-flex", n.setAttribute("aria-label", e), n.innerHTML = t, n;
54911
54938
  }
54912
54939
  resolveColumnAlignment(e) {
54913
- return e === "center" || e === "right" ? e : lY;
54940
+ return e === "center" || e === "right" ? e : _Y;
54914
54941
  }
54915
54942
  updateAlignmentButtonsState(e) {
54916
54943
  this.alignLeftButton.disabled = !e, this.alignCenterButton.disabled = !e, this.alignRightButton.disabled = !e, this.alignLeftButton.classList.toggle("zt-md-table-action-button-active", e && this.currentColumnAlignment === "left"), this.alignCenterButton.classList.toggle("zt-md-table-action-button-active", e && this.currentColumnAlignment === "center"), this.alignRightButton.classList.toggle("zt-md-table-action-button-active", e && this.currentColumnAlignment === "right");
54917
54944
  }
54918
54945
  applyColumnAlignment(e) {
54919
- let t = WJ(this.view.state);
54920
- !t || t.rowIndex < 0 || t.columnIndex < 0 || $J(this.view, t, e);
54946
+ let t = QJ(this.view.state);
54947
+ !t || t.rowIndex < 0 || t.columnIndex < 0 || sY(this.view, t, e);
54921
54948
  }
54922
54949
  insertColumn(e) {
54923
- let t = WJ(this.view.state);
54924
- !t || t.rowIndex < 0 || t.columnIndex < 0 || ZJ(this.view, t, e);
54950
+ let t = QJ(this.view.state);
54951
+ !t || t.rowIndex < 0 || t.columnIndex < 0 || aY(this.view, t, e);
54925
54952
  }
54926
54953
  renderMoreActions(e, t, n, r) {
54927
- this.moreActionsRoot.render(i(nY, {
54954
+ this.moreActionsRoot.render(i(uY, {
54928
54955
  messages: this.messages,
54929
54956
  portalContainer: this.portalContainer,
54930
54957
  collisionBoundary: this.editorWrapper,
@@ -54947,7 +54974,7 @@ var OJ = (e, t) => {
54947
54974
  }
54948
54975
  resolveTableAnchor(e, t) {
54949
54976
  if (!this.editorWrapper) return null;
54950
- let n = e.getBoundingClientRect(), r = GK(n, this.editorWrapper), i = n.width, a = r.anchorLeftInContent + i - t - iY, o = r.anchorTopInContent - aY + oY;
54977
+ let n = e.getBoundingClientRect(), r = $K(n, this.editorWrapper), i = n.width, a = r.anchorLeftInContent + i - t - fY, o = r.anchorTopInContent - pY + mY;
54951
54978
  return {
54952
54979
  anchorLeftInContent: a,
54953
54980
  anchorTopInContent: o,
@@ -54964,22 +54991,22 @@ var OJ = (e, t) => {
54964
54991
  if (e === null) return;
54965
54992
  let t = this.resolveTableAnchor(this.currentTableElement, e);
54966
54993
  if (!t) return;
54967
- let n = JK({
54994
+ let n = nq({
54968
54995
  wrapper: this.editorWrapper,
54969
54996
  anchor: t,
54970
54997
  overlaySize: { width: e },
54971
- placement: cY,
54998
+ placement: gY,
54972
54999
  offsetY: 0,
54973
- boundaryInset: sY
55000
+ boundaryInset: hY
54974
55001
  }, this.portalContainer);
54975
55002
  this.actionsContainer.style.left = `${n.left}px`, this.actionsContainer.style.top = `${n.top}px`;
54976
55003
  }
54977
55004
  update(e) {
54978
- if (this.view = e, !this.editorWrapper || !hY(e)) {
55005
+ if (this.view = e, !this.editorWrapper || !CY(e)) {
54979
55006
  this.detach();
54980
55007
  return;
54981
55008
  }
54982
- let t = WJ(e.state);
55009
+ let t = QJ(e.state);
54983
55010
  if (!t) {
54984
55011
  this.detach();
54985
55012
  return;
@@ -54995,108 +55022,109 @@ var OJ = (e, t) => {
54995
55022
  return;
54996
55023
  }
54997
55024
  this.actionsContainer.parentElement !== this.portalContainer && this.portalContainer.append(this.actionsContainer);
54998
- let i = KJ(t), a = i && t.tableNode.child(0).childCount > 1, o = t.rowIndex > 0, s = t.rowIndex > 0, c = t.tableNode.childCount > 0 ? t.tableNode.child(0) : null;
55025
+ let i = eY(t), a = i && t.tableNode.child(0).childCount > 1, o = t.rowIndex > 0, s = t.rowIndex > 0, c = t.tableNode.childCount > 0 ? t.tableNode.child(0) : null;
54999
55026
  this.currentColumnIndex = i ? t.columnIndex : null, this.currentColumnAlignment = this.resolveColumnAlignment(this.currentColumnIndex === null ? null : c?.maybeChild(this.currentColumnIndex)?.attrs?.alignment), this.updateAlignmentButtonsState(i), this.renderMoreActions(o, i, s, a), this.currentTableElement = r, this.currentTableStart = t.tableStart, this.currentTableNodeSize = t.tableNodeSize, this.hasPositionContext = !0, this.updateOverlayPosition(), this.repositionScheduler.schedule();
55000
55027
  }
55001
55028
  detach() {
55002
- this.moreActionsRoot.render(null), this.actionsContainer.remove(), this.currentTableElement = null, this.currentTableStart = null, this.currentTableNodeSize = null, this.currentColumnIndex = null, this.currentColumnAlignment = lY, this.updateAlignmentButtonsState(!1), this.hasPositionContext = !1;
55029
+ this.moreActionsRoot.render(null), this.actionsContainer.remove(), this.currentTableElement = null, this.currentTableStart = null, this.currentTableNodeSize = null, this.currentColumnIndex = null, this.currentColumnAlignment = _Y, this.updateAlignmentButtonsState(!1), this.hasPositionContext = !1;
55003
55030
  }
55004
55031
  destroy() {
55005
55032
  this.detach(), this.repositionScheduler.destroy(), this.moreActionsRoot.unmount(), this.actionsContainer.removeEventListener("mousedown", this.handleActionsMouseDown), this.deleteButton.removeEventListener("click", this.handleDeleteClick), this.alignLeftButton.removeEventListener("click", this.handleAlignLeftClick), this.alignCenterButton.removeEventListener("click", this.handleAlignCenterClick), this.alignRightButton.removeEventListener("click", this.handleAlignRightClick);
55006
55033
  }
55007
- }, _Y = (e, t) => {
55034
+ }, TY = (e, t) => {
55008
55035
  let n = IO(void 0, t);
55009
55036
  return t_(() => new hr({
55010
- key: new vr(rY),
55011
- view: (t) => new gY(t, n, e)
55037
+ key: new vr(dY),
55038
+ view: (t) => new wY(t, n, e)
55012
55039
  }));
55013
- }, vY = "list_item", yY = "li[data-item-type=\"task\"]", bY = 24, xY = (e, t) => {
55040
+ }, EY = "list_item", DY = "li[data-item-type=\"task\"]", OY = 24, kY = (e, t) => {
55014
55041
  let n = t.getBoundingClientRect();
55015
- return e.clientX >= n.left && e.clientX <= n.left + bY && e.clientY >= n.top && e.clientY <= n.top + bY;
55016
- }, SY = (e) => {
55042
+ return e.clientX >= n.left && e.clientX <= n.left + OY && e.clientY >= n.top && e.clientY <= n.top + OY;
55043
+ }, AY = (e) => {
55017
55044
  if (!(e instanceof Element)) return null;
55018
- let t = e.closest(yY);
55045
+ let t = e.closest(DY);
55019
55046
  return t instanceof HTMLElement ? t : null;
55020
- }, CY = (e, t) => {
55047
+ }, jY = (e, t) => {
55021
55048
  if (!e.editable) return !1;
55022
- let n = SY(t.target);
55023
- return !n || !xY(t, n) ? !1 : (t.preventDefault(), !0);
55024
- }, wY = (e, t) => {
55049
+ let n = AY(t.target);
55050
+ return !n || !kY(t, n) ? !1 : (t.preventDefault(), !0);
55051
+ }, MY = (e, t) => {
55025
55052
  let n = e.posAtDOM(t, 0) - 1, r = e.state.doc.nodeAt(n);
55026
- return !r || r.type.name !== vY || r.attrs.checked == null ? !1 : (e.dispatch(e.state.tr.setNodeMarkup(n, void 0, {
55053
+ return !r || r.type.name !== EY || r.attrs.checked == null ? !1 : (e.dispatch(e.state.tr.setNodeMarkup(n, void 0, {
55027
55054
  ...r.attrs,
55028
55055
  checked: !r.attrs.checked
55029
55056
  })), !0);
55030
- }, TY = t_(() => new hr({ props: { handleDOMEvents: {
55031
- mousedown: (e, t) => CY(e, t),
55032
- dblclick: (e, t) => CY(e, t),
55057
+ }, NY = t_(() => new hr({ props: { handleDOMEvents: {
55058
+ mousedown: (e, t) => jY(e, t),
55059
+ dblclick: (e, t) => jY(e, t),
55033
55060
  click: (e, t) => {
55034
55061
  if (!e.editable) return !1;
55035
- let n = SY(t.target);
55036
- return !n || !xY(t, n) || !wY(e, n) ? !1 : (t.preventDefault(), !0);
55062
+ let n = AY(t.target);
55063
+ return !n || !kY(t, n) || !MY(e, n) ? !1 : (t.preventDefault(), !0);
55037
55064
  }
55038
- } } })), EY = "Tab", DY = 4, OY = /^ */, kY = "list_item", AY = (e) => typeof e.props.editable == "function" ? e.props.editable(e.state) : e.editable, jY = (e) => {
55065
+ } } })), PY = "Tab", FY = 4, IY = /^ */, LY = "list_item", RY = (e) => typeof e.props.editable == "function" ? e.props.editable(e.state) : e.editable, zY = (e) => {
55039
55066
  let { $from: t } = e.selection;
55040
55067
  for (let e = t.depth; e >= 0; --e) {
55041
55068
  let n = t.node(e);
55042
- if (n.type.name === kY) return n.type;
55069
+ if (n.type.name === LY) return n.type;
55043
55070
  }
55044
55071
  return null;
55045
- }, MY = (e) => {
55072
+ }, BY = (e) => {
55046
55073
  let { selection: t, doc: n } = e;
55047
55074
  if (t.empty) return [t.$from.start()];
55048
55075
  let r = /* @__PURE__ */ new Set();
55049
55076
  return n.nodesBetween(t.from, t.to, (e, t) => {
55050
55077
  e.isTextblock && r.add(t + 1);
55051
55078
  }), Array.from(r);
55052
- }, NY = (e, t) => {
55053
- let { state: n } = e, r = " ".repeat(DY), i = MY(n).sort((e, t) => t - e), a = n.tr;
55079
+ }, VY = (e, t) => {
55080
+ let { state: n } = e, r = " ".repeat(FY), i = BY(n).sort((e, t) => t - e), a = n.tr;
55054
55081
  return n.selection.empty ? a.insertText(r, n.selection.to) : i.forEach((e) => {
55055
55082
  a.insertText(r, e);
55056
55083
  }), a.docChanged ? (t.preventDefault(), e.dispatch(a), !0) : !1;
55057
- }, PY = (e, t) => {
55084
+ }, HY = (e, t) => {
55058
55085
  let { state: n } = e, { selection: r } = n;
55059
55086
  if (!(r instanceof A)) return !1;
55060
- let i = MY(n).sort((e, t) => t - e), a = n.tr;
55087
+ let i = BY(n).sort((e, t) => t - e), a = n.tr;
55061
55088
  return i.forEach((e) => {
55062
- let t = n.doc.resolve(e).parent.textContent.match(OY)?.[0].length ?? 0, r = Math.min(t, DY);
55089
+ let t = n.doc.resolve(e).parent.textContent.match(IY)?.[0].length ?? 0, r = Math.min(t, FY);
55063
55090
  r <= 0 || a.delete(e, e + r);
55064
55091
  }), a.docChanged ? (t.preventDefault(), e.dispatch(a), !0) : !1;
55065
- }, FY = t_(() => new hr({
55092
+ }, UY = t_(() => new hr({
55066
55093
  key: new vr("zt-md-tab-space-indent"),
55067
55094
  props: { handleKeyDown: (e, t) => {
55068
55095
  let n = e;
55069
- if (!AY(n) || t.defaultPrevented || t.key !== EY || t.altKey || t.ctrlKey || t.metaKey) return !1;
55070
- let r = jY(n.state);
55096
+ if (!RY(n) || t.defaultPrevented || t.key !== PY || t.altKey || t.ctrlKey || t.metaKey) return !1;
55097
+ let r = zY(n.state);
55071
55098
  if (r) {
55072
55099
  let e = (t.shiftKey ? Bv(r) : Uv(r))(n.state, n.dispatch);
55073
55100
  return t.preventDefault(), e || !0;
55074
55101
  }
55075
- return t.shiftKey ? PY(n, t) : NY(n, t);
55102
+ return t.shiftKey ? HY(n, t) : VY(n, t);
55076
55103
  } }
55077
- })), IY = (e) => {
55104
+ })), WY = (e) => {
55078
55105
  let t = e.target;
55079
55106
  if (!(t instanceof Element)) return null;
55080
55107
  let n = t.closest("a[href]");
55081
55108
  return n instanceof HTMLAnchorElement ? n : null;
55082
- }, LY = (e) => e?.type.name === "image", RY = (e, t) => {
55083
- let n = IY(e);
55109
+ }, GY = (e) => e?.type.name === "image", KY = (e, t) => {
55110
+ let n = WY(e);
55084
55111
  if (!n) return !1;
55085
55112
  let r = WO(n.getAttribute("href"));
55086
55113
  return !r || t || !e.ctrlKey ? !1 : (e.preventDefault(), e.stopPropagation(), window.open(r, "_blank", "noopener,noreferrer"), !0);
55087
- }, zY = (e, t) => !t || !IY(e) ? !1 : (e.preventDefault(), e.stopPropagation(), !0), BY = (e) => {
55088
- let t = e.messages ?? IO(), n = _Y(e.contentPortalContainer, t), r = nJ(e.contentPortalContainer, t), i = mq(t, e.contentPortalContainer), a = pU(t, e.contentPortalContainer), o = AJ(e.portalContainer, e.slashMenu, t, e.imageUpload, e.locale), s = o.plugins, c = {
55114
+ }, qY = (e, t) => !t || !WY(e) ? !1 : (e.preventDefault(), e.stopPropagation(), !0), JY = (e) => {
55115
+ let t = e.messages ?? IO(), n = TY(e.contentPortalContainer, t), r = uJ(e.contentPortalContainer, t), i = Sq(t, e.contentPortalContainer), a = pU(t, e.contentPortalContainer), o = RJ(e.portalContainer, e.slashMenu, t, e.imageUpload, e.locale), s = o.plugins, c = {
55089
55116
  listener: Fv,
55090
55117
  commonmark: Bb,
55091
55118
  gfm: nE,
55092
55119
  history: G_,
55093
- codeBlockPrism: Dq,
55120
+ codeBlockPrism: Fq,
55094
55121
  codeBlockLanguagePicker: i,
55095
55122
  clipboard: m_,
55096
55123
  indent: Y_,
55097
55124
  imageDeleteSelection: Tk,
55098
- tableArrowEntry: RJ,
55125
+ tableArrowEntry: KJ,
55099
55126
  blockBoundaryNavigation: LE,
55127
+ headingBackspaceEmptyParagraph: vW,
55100
55128
  mathBackspaceEntry: zI,
55101
55129
  blockquoteBackspaceLift: uW,
55102
55130
  tableFocusActions: n,
@@ -55106,20 +55134,20 @@ var OJ = (e, t) => {
55106
55134
  math: rW,
55107
55135
  mathInlineEdit: a,
55108
55136
  mathInlineArrowNavigation: FU,
55109
- taskListToggle: TY,
55110
- tabSpaceIndent: FY,
55111
- codeBlockModASelect: xq,
55137
+ taskListToggle: NY,
55138
+ tabSpaceIndent: UY,
55139
+ codeBlockModASelect: kq,
55112
55140
  slash: s.length > 0 ? s : null
55113
55141
  }, l = aE(c, { includeRuntime: !1 }), u = aE(c, { includeRuntime: !0 }).filter((e) => e.name === "clipboard" || e.name === "indent"), d = qg.make();
55114
55142
  d.config((n) => {
55115
55143
  rk(n, e.imageUpload?.allowedProtocols), n.set(zg, e.root), n.set(Tg, e.markdown), n.set(Rg, {
55116
55144
  editable: () => !e.readOnly,
55117
55145
  handleDOMEvents: {
55118
- mousedown: (t, n) => n instanceof MouseEvent ? zY(n, e.readOnly) : !1,
55119
- click: (t, n) => n instanceof MouseEvent ? zY(n, e.readOnly) : !1
55146
+ mousedown: (t, n) => n instanceof MouseEvent ? qY(n, e.readOnly) : !1,
55147
+ click: (t, n) => n instanceof MouseEvent ? qY(n, e.readOnly) : !1
55120
55148
  },
55121
- handleClick: (t, n, r) => RY(r, e.readOnly),
55122
- handleClickOn: (t, n, r, i, a, o) => RY(a, e.readOnly) ? !0 : e.readOnly && o && LY(r) ? (a.preventDefault(), !0) : !1
55149
+ handleClick: (t, n, r) => KY(r, e.readOnly),
55150
+ handleClickOn: (t, n, r, i, a, o) => KY(a, e.readOnly) ? !0 : e.readOnly && o && GY(r) ? (a.preventDefault(), !0) : !1
55123
55151
  });
55124
55152
  let r = n.get(Hh) ?? [];
55125
55153
  n.set(Hh, [
@@ -55127,7 +55155,7 @@ var OJ = (e, t) => {
55127
55155
  ["image", fk(t)],
55128
55156
  ["math_block", aU(t)],
55129
55157
  ["math_inline", yU(t)],
55130
- ["code_block", jW(t)]
55158
+ ["code_block", zW(t)]
55131
55159
  ]), n.get(Nv).markdownUpdated((t, n) => {
55132
55160
  e.onChange(n);
55133
55161
  }), o.config && o.config(n);
@@ -55161,7 +55189,7 @@ var OJ = (e, t) => {
55161
55189
  p(e);
55162
55190
  }
55163
55191
  };
55164
- }, VY = (e, t, n, r) => {
55192
+ }, YY = (e, t, n, r) => {
55165
55193
  let i = e, a = i.create.bind(e);
55166
55194
  return i.create = async () => {
55167
55195
  try {
@@ -55171,10 +55199,10 @@ var OJ = (e, t) => {
55171
55199
  throw console.error("Milkdown init failed:", e), r(e), e;
55172
55200
  }
55173
55201
  }, i;
55174
- }, HY = (e) => {
55202
+ }, XY = (e) => {
55175
55203
  let t = d(null), n = d(e.markdown), r = d(e.onMarkdownChange), i = d(e.onInitError), a = d(e.onInitReady), o = d(null), s = ce((r) => {
55176
55204
  t.current = null, e.focusEditorRef && (e.focusEditorRef.current = null), n.current = e.markdown;
55177
- let s = BY({
55205
+ let s = JY({
55178
55206
  root: r,
55179
55207
  portalContainer: e.portalContainer,
55180
55208
  contentPortalContainer: e.contentPortalContainer,
@@ -55188,7 +55216,7 @@ var OJ = (e, t) => {
55188
55216
  n.current = e, o.current?.(e);
55189
55217
  }
55190
55218
  });
55191
- return VY(s.editor, s.installRuntimePlugins, () => {
55219
+ return YY(s.editor, s.installRuntimePlugins, () => {
55192
55220
  t.current = s, e.focusEditorRef && (e.focusEditorRef.current = s.focusEditor), a.current?.();
55193
55221
  }, (e) => {
55194
55222
  i.current?.(e);
@@ -55222,10 +55250,10 @@ var OJ = (e, t) => {
55222
55250
  let r = t.current;
55223
55251
  !r || s.loading || e.markdown !== n.current && (n.current = e.markdown, r.setMarkdown(e.markdown));
55224
55252
  }, [s.loading, e.markdown]);
55225
- }, UY = 160, WY = {
55253
+ }, ZY = 160, QY = {
55226
55254
  "zh-CN": "只读",
55227
55255
  "en-US": "Read only"
55228
- }, GY = (e) => e.length === 0 ? "\"\"" : `"${e.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\r\n|\r|\n/g, "\\A ")}"`, KY = (e) => (HY({
55256
+ }, $Y = (e) => e.length === 0 ? "\"\"" : `"${e.replace(/\\/g, "\\\\").replace(/"/g, "\\\"").replace(/\r\n|\r|\n/g, "\\A ")}"`, eX = (e) => (XY({
55229
55257
  markdown: e.markdown,
55230
55258
  portalContainer: e.portalContainer,
55231
55259
  contentPortalContainer: e.contentPortalContainer,
@@ -55239,13 +55267,13 @@ var OJ = (e, t) => {
55239
55267
  onMarkdownChange: e.onMarkdownChange,
55240
55268
  onInitReady: e.onInitReady,
55241
55269
  onInitError: e.onInitError
55242
- }), /* @__PURE__ */ y(oe, {})), qY = (e) => {
55243
- let [t, n] = f(""), [r, i] = f(null), [a, s] = f(null), c = d(null), l = e.theme ?? "light", p = e.readOnly ?? !1, m = WY[e.locale ?? "zh-CN"], h = e.debounceMs ?? UY, { markdown: g, setMarkdown: _ } = de(e.value, e.defaultValue, e.onChange), v = u(() => IO(e.locale, e.messages, e.placeholder), [
55270
+ }), /* @__PURE__ */ y(oe, {})), tX = (e) => {
55271
+ let [t, n] = f(""), [r, i] = f(null), [a, s] = f(null), c = d(null), l = e.theme ?? "light", p = e.readOnly ?? !1, m = QY[e.locale ?? "zh-CN"], h = e.debounceMs ?? ZY, { markdown: g, setMarkdown: _ } = de(e.value, e.defaultValue, e.onChange), v = u(() => IO(e.locale, e.messages, e.placeholder), [
55244
55272
  e.locale,
55245
55273
  e.messages,
55246
55274
  e.placeholder
55247
55275
  ]), x = {
55248
- "--zt-gap-placeholder-content": GY(v.placeholder),
55276
+ "--zt-gap-placeholder-content": $Y(v.placeholder),
55249
55277
  ...e.maxHeight === void 0 ? {} : {
55250
55278
  maxHeight: e.maxHeight,
55251
55279
  overflowY: "auto"
@@ -55288,7 +55316,7 @@ var OJ = (e, t) => {
55288
55316
  "aria-readonly": p,
55289
55317
  onMouseDown: T,
55290
55318
  style: x,
55291
- children: [r && a ? /* @__PURE__ */ y(se, { children: /* @__PURE__ */ y(KY, {
55319
+ children: [r && a ? /* @__PURE__ */ y(se, { children: /* @__PURE__ */ y(eX, {
55292
55320
  markdown: g,
55293
55321
  locale: e.locale,
55294
55322
  portalContainer: r,
@@ -55316,4 +55344,4 @@ var OJ = (e, t) => {
55316
55344
  });
55317
55345
  };
55318
55346
  //#endregion
55319
- export { qY as MilkdownEditor };
55347
+ export { tX as MilkdownEditor };