@pstdio/ui 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MermaidComponent-DwEDwpo2.js +124 -0
- package/dist/MermaidComponent-DwEDwpo2.js.map +1 -0
- package/dist/chat-ui.js +609 -505
- package/dist/chat-ui.js.map +1 -1
- package/dist/components/chat-ui/components/chat-input-actions.d.ts +10 -0
- package/dist/components/chat-ui/components/chat-panel.d.ts +1 -0
- package/dist/components/chat-ui/tool-rendering/apply-patch-renderer.d.ts +2 -0
- package/dist/components/chat-ui/tool-rendering/default-renderers.d.ts +8 -7
- package/dist/components/chat-ui/tool-rendering/edit-renderer.d.ts +2 -0
- package/dist/components/chat-ui/tool-rendering/shared.d.ts +52 -0
- package/dist/components/chat-ui/tool-rendering/standard-renderers.d.ts +6 -0
- package/dist/components/chat-ui/tool-rendering/todo-write-renderer.d.ts +2 -0
- package/dist/components/menu-item.d.ts +2 -1
- package/dist/components/resource-context-menu.d.ts +20 -0
- package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.d.ts +2 -1
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockActionsPlugin.d.ts +4 -0
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +2 -0
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeHighlightingPlugin.d.ts +1 -0
- package/dist/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/should-show-floating-toolbar.d.ts +11 -0
- package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidComponent.d.ts +6 -0
- package/dist/components/rich-text/shared/plugins/MermaidPlugin/MermaidNode.d.ts +23 -0
- package/dist/components/rich-text/shared/plugins/MermaidPlugin/index.d.ts +1 -0
- package/dist/components/rich-text/utils/markdown.d.ts +1 -0
- package/dist/components/session-indicator.d.ts +1 -1
- package/dist/components/sidebar-tree/sidebar-tree.types.d.ts +5 -1
- package/dist/components/tickets/tag-badge.d.ts +10 -0
- package/dist/components/tickets/tag-option-icon.d.ts +2 -0
- package/dist/components/tickets/ticket-board.d.ts +2 -0
- package/dist/components/tickets/ticket-card.d.ts +10 -0
- package/dist/components/tickets/ticket-grouping.d.ts +2 -2
- package/dist/components/tickets/ticket-list.d.ts +6 -1
- package/dist/components/tickets/tickets-workspace.d.ts +9 -3
- package/dist/components/tickets/types.d.ts +22 -5
- package/dist/components/tickets/workspace-helpers.d.ts +13 -0
- package/dist/get-file-type-icon-Bwqf1WXA.js +101 -0
- package/dist/get-file-type-icon-Bwqf1WXA.js.map +1 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1876 -1642
- package/dist/index.js.map +1 -1
- package/dist/rich-message-BVRk9BSD.js +1503 -0
- package/dist/rich-message-BVRk9BSD.js.map +1 -0
- package/dist/rich-text.js +414 -255
- package/dist/rich-text.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/dist/components/attached-panel.utils.test.d.ts +0 -1
- package/dist/components/breadcrumb.stories.d.ts +0 -25
- package/dist/components/button.stories.d.ts +0 -18
- package/dist/components/chat-ui/components/ai-conversation.stories.d.ts +0 -6
- package/dist/components/chat-ui/components/ai-message.stories.d.ts +0 -6
- package/dist/components/chat-ui/components/ai-response.stories.d.ts +0 -7
- package/dist/components/chat-ui/components/attachment-list.stories.d.ts +0 -6
- package/dist/components/chat-ui/components/chat-input.stories.d.ts +0 -7
- package/dist/components/chat-ui/components/chat-panel-alerts.stories.d.ts +0 -9
- package/dist/components/chat-ui/components/chat-panel.stories.d.ts +0 -10
- package/dist/components/chat-ui/components/message-parts-renderer.stories.d.ts +0 -9
- package/dist/components/chat-ui/components/model-swap-separator.stories.d.ts +0 -6
- package/dist/components/chat-ui/components/tool-invocation-timeline.stories.d.ts +0 -6
- package/dist/components/chat-ui/components/workspace-hub.stories.d.ts +0 -6
- package/dist/components/checkbox.stories.d.ts +0 -15
- package/dist/components/column-file-browser.stories.d.ts +0 -15
- package/dist/components/data-table/data-table.stories.d.ts +0 -33
- package/dist/components/delete-confirmation-modal.stories.d.ts +0 -11
- package/dist/components/diff-bubble.stories.d.ts +0 -13
- package/dist/components/diff-drawer.stories.d.ts +0 -8
- package/dist/components/diff-view-adapter.test.d.ts +0 -1
- package/dist/components/drawer-inline.stories.d.ts +0 -8
- package/dist/components/empty-state.stories.d.ts +0 -34
- package/dist/components/file-selector.stories.d.ts +0 -17
- package/dist/components/folder-picker-dialog.stories.d.ts +0 -11
- package/dist/components/info-card.stories.d.ts +0 -41
- package/dist/components/item-section.stories.d.ts +0 -17
- package/dist/components/layout.stories.d.ts +0 -11
- package/dist/components/menu-item.stories.d.ts +0 -72
- package/dist/components/open-source-notices-screen.stories.d.ts +0 -12
- package/dist/components/param-editor-horizontal.stories.d.ts +0 -19
- package/dist/components/param-editor.stories.d.ts +0 -24
- package/dist/components/properties.stories.d.ts +0 -17
- package/dist/components/resource-badge.stories.d.ts +0 -7
- package/dist/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.d.ts +0 -9
- package/dist/components/rich-text/markdown-editor/markdown-editor.stories.d.ts +0 -7
- package/dist/components/rich-text/prompt-input/prompt-input.stories.d.ts +0 -8
- package/dist/components/rich-text/rich-message/rich-message.stories.d.ts +0 -6
- package/dist/components/rich-text/shared/nodes/DataTableNode.stories.d.ts +0 -7
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.d.ts +0 -21
- package/dist/components/rich-text/shared/plugins/CodePlugin/CodeNode.test.d.ts +0 -1
- package/dist/components/rich-text/shared/transformers/markdown-transformers.test.d.ts +0 -1
- package/dist/components/scroll-area.stories.d.ts +0 -7
- package/dist/components/searchable-menu.stories.d.ts +0 -8
- package/dist/components/session-indicator.stories.d.ts +0 -12
- package/dist/components/sidebar/sidebar.store.test.d.ts +0 -1
- package/dist/components/sidebar/sidebar.stories.d.ts +0 -11
- package/dist/components/sidebar-tree/sidebar-tree-searchable-action-menu.stories.d.ts +0 -6
- package/dist/components/sidebar-tree/sidebar-tree.stories.d.ts +0 -13
- package/dist/components/slider.stories.d.ts +0 -15
- package/dist/components/style-guide.stories.d.ts +0 -23
- package/dist/components/switch.stories.d.ts +0 -16
- package/dist/components/tickets/display-menu.stories.d.ts +0 -6
- package/dist/components/tickets/filter-menu.stories.d.ts +0 -6
- package/dist/components/tickets/ticket-board.stories.d.ts +0 -5
- package/dist/components/tickets/ticket-card.stories.d.ts +0 -18
- package/dist/components/tickets/ticket-grouping.test.d.ts +0 -1
- package/dist/components/tickets/ticket-list.stories.d.ts +0 -10
- package/dist/components/tickets/tickets-workspace.stories.d.ts +0 -10
- package/dist/components/tickets/use-workspace-store.test.d.ts +0 -1
- package/dist/components/toaster.stories.d.ts +0 -11
- package/dist/components/workspace-badge.stories.d.ts +0 -13
- package/dist/get-file-type-icon-CirIyuE8.js +0 -92
- package/dist/get-file-type-icon-CirIyuE8.js.map +0 -1
- package/dist/rich-message-Bad4GxH2.js +0 -1423
- package/dist/rich-message-Bad4GxH2.js.map +0 -1
|
@@ -1,1423 +0,0 @@
|
|
|
1
|
-
import { CodeNode as de } from "@lexical/code";
|
|
2
|
-
import { AutoLinkNode as ue, $createAutoLinkNode as it, $isAutoLinkNode as st, LinkNode as Ce } from "@lexical/link";
|
|
3
|
-
import { ListNode as Oe, ListItemNode as ke } from "@lexical/list";
|
|
4
|
-
import { CHECK_LIST as lt, TRANSFORMERS as $e, $convertFromMarkdownString as Ie, $convertToMarkdownString as ct } from "@lexical/markdown";
|
|
5
|
-
import { QuoteNode as ve, HeadingNode as we } from "@lexical/rich-text";
|
|
6
|
-
import { jsx as s, jsxs as A, Fragment as ge } from "react/jsx-runtime";
|
|
7
|
-
import { chakra as se, Flex as ne, Text as w, Spacer as at, IconButton as dt, Box as P, Table as B, Textarea as ut, Tooltip as Z, Kbd as mt } from "@chakra-ui/react";
|
|
8
|
-
import { DecoratorNode as G, $applyNodeReplacement as ft, ElementNode as Pe, TextNode as ee, $createTextNode as me, $nodesOfType as _t, createCommand as O, isHTMLElement as pt, $createParagraphNode as le, COMMAND_PRIORITY_LOW as Le, $getSelection as ht, $isRangeSelection as gt, $isElementNode as xt, KEY_DOWN_COMMAND as Et, COMMAND_PRIORITY_HIGH as bt, $getRoot as Me } from "lexical";
|
|
9
|
-
import { c as C } from "react/compiler-runtime";
|
|
10
|
-
import { MarkNode as St } from "@lexical/mark";
|
|
11
|
-
import { LexicalComposer as Ae } from "@lexical/react/LexicalComposer";
|
|
12
|
-
import { LexicalErrorBoundary as De } from "@lexical/react/LexicalErrorBoundary";
|
|
13
|
-
import { HistoryPlugin as yt } from "@lexical/react/LexicalHistoryPlugin";
|
|
14
|
-
import { OnChangePlugin as Fe } from "@lexical/react/LexicalOnChangePlugin";
|
|
15
|
-
import { RichTextPlugin as He } from "@lexical/react/LexicalRichTextPlugin";
|
|
16
|
-
import * as Rt from "react";
|
|
17
|
-
import { Suspense as Tt, useEffect as U, useImperativeHandle as Nt, useState as Ct, forwardRef as Ot, useRef as kt } from "react";
|
|
18
|
-
import { useLexicalComposerContext as D } from "@lexical/react/LexicalComposerContext";
|
|
19
|
-
import { $setBlocksType as $t } from "@lexical/selection";
|
|
20
|
-
import { addClassNamesToElement as qe, mergeRegister as fe } from "@lexical/utils";
|
|
21
|
-
import { LexicalTypeaheadMenuPlugin as It } from "@lexical/react/LexicalTypeaheadMenuPlugin";
|
|
22
|
-
import * as vt from "react-dom";
|
|
23
|
-
import { ClickableLinkPlugin as wt } from "@lexical/react/LexicalClickableLinkPlugin";
|
|
24
|
-
import { HorizontalRulePlugin as Pt } from "@lexical/react/LexicalHorizontalRulePlugin";
|
|
25
|
-
import { LinkPlugin as Lt } from "@lexical/react/LexicalLinkPlugin";
|
|
26
|
-
import { ListPlugin as Mt } from "@lexical/react/LexicalListPlugin";
|
|
27
|
-
import { ContentEditable as At } from "@lexical/react/LexicalContentEditable";
|
|
28
|
-
import { S as Dt, g as Ft, T as Ht } from "./get-file-type-icon-CirIyuE8.js";
|
|
29
|
-
import qt from "katex";
|
|
30
|
-
import { TreeView as Bt } from "@lexical/react/LexicalTreeView";
|
|
31
|
-
import { X as Ut } from "lucide-react";
|
|
32
|
-
const Jt = se(At);
|
|
33
|
-
function Be(n) {
|
|
34
|
-
const e = C(11), {
|
|
35
|
-
onRef: t,
|
|
36
|
-
fullWidth: r,
|
|
37
|
-
padding: o,
|
|
38
|
-
isRichMessage: i,
|
|
39
|
-
scrollable: l
|
|
40
|
-
} = n, c = r === void 0 ? !1 : r, a = i === void 0 ? !1 : i, _ = l === void 0 ? !0 : l, m = c ? "flex-start" : "center", p = c ? "100%" : "720px";
|
|
41
|
-
let f;
|
|
42
|
-
e[0] !== p ? (f = /* @__PURE__ */ s(Jt, { "data-testid": "content-editable", height: "fit-content", minH: "100%", width: "100%", maxWidth: p, textStyle: "paragraph/M/regular", fontSize: "calc(var(--chakra-font-sizes-md) * var(--rich-text-font-scale))", position: "relative", outline: "none" }), e[0] = p, e[1] = f) : f = e[1];
|
|
43
|
-
let d;
|
|
44
|
-
e[2] !== t || e[3] !== o || e[4] !== m || e[5] !== f ? (d = /* @__PURE__ */ s(ne, { ref: t, width: "100%", minH: "100%", padding: o, justifyContent: m, children: f }), e[2] = t, e[3] = o, e[4] = m, e[5] = f, e[6] = d) : d = e[6];
|
|
45
|
-
const u = d;
|
|
46
|
-
if (!_)
|
|
47
|
-
return u;
|
|
48
|
-
const E = a ? "true" : void 0;
|
|
49
|
-
let g;
|
|
50
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
|
|
51
|
-
width: "100%",
|
|
52
|
-
minH: "100%"
|
|
53
|
-
}, e[7] = g) : g = e[7];
|
|
54
|
-
let h;
|
|
55
|
-
return e[8] !== u || e[9] !== E ? (h = /* @__PURE__ */ s(Dt, { className: "rich-text", "data-rich-message": E, height: "100%", minH: "0", position: "relative", contentProps: g, children: u }), e[8] = u, e[9] = E, e[10] = h) : h = e[10], h;
|
|
56
|
-
}
|
|
57
|
-
const jt = {
|
|
58
|
-
sm: {
|
|
59
|
-
container: {
|
|
60
|
-
height: "20px",
|
|
61
|
-
lineHeight: {
|
|
62
|
-
base: "20px"
|
|
63
|
-
},
|
|
64
|
-
px: "2xs"
|
|
65
|
-
},
|
|
66
|
-
iconSize: 12,
|
|
67
|
-
textStyle: "xs"
|
|
68
|
-
},
|
|
69
|
-
md: {
|
|
70
|
-
container: {
|
|
71
|
-
height: "24px",
|
|
72
|
-
lineHeight: {
|
|
73
|
-
base: "24px"
|
|
74
|
-
},
|
|
75
|
-
px: "xs"
|
|
76
|
-
},
|
|
77
|
-
iconSize: 14,
|
|
78
|
-
textStyle: "sm"
|
|
79
|
-
}
|
|
80
|
-
}, zt = {
|
|
81
|
-
neutral: {
|
|
82
|
-
color: "color.primary",
|
|
83
|
-
bg: "bg.muted",
|
|
84
|
-
_hover: {
|
|
85
|
-
bg: "bg.emphasized"
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
accent: {
|
|
89
|
-
color: "var(--schub-foreground-accent)",
|
|
90
|
-
bg: "var(--schub-accent-subtle)",
|
|
91
|
-
_hover: {
|
|
92
|
-
bg: "var(--schub-accent-subtle)"
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}, Wt = "md", Kt = "neutral", Ue = (n) => {
|
|
96
|
-
const e = C(39);
|
|
97
|
-
let t, r, o, i, l, c, a;
|
|
98
|
-
e[0] !== n ? ({
|
|
99
|
-
fileName: t,
|
|
100
|
-
onSelect: i,
|
|
101
|
-
onRemove: o,
|
|
102
|
-
size: c,
|
|
103
|
-
tone: a,
|
|
104
|
-
icon: r,
|
|
105
|
-
...l
|
|
106
|
-
} = n, e[0] = n, e[1] = t, e[2] = r, e[3] = o, e[4] = i, e[5] = l, e[6] = c, e[7] = a) : (t = e[1], r = e[2], o = e[3], i = e[4], l = e[5], c = e[6], a = e[7]);
|
|
107
|
-
const _ = c === void 0 ? Wt : c, m = a === void 0 ? Kt : a;
|
|
108
|
-
let p;
|
|
109
|
-
e[8] !== t ? (p = Ft(t), e[8] = t, e[9] = p) : p = e[9];
|
|
110
|
-
const f = p, d = jt[_], u = zt[m], E = i ? "pointer" : "default";
|
|
111
|
-
let g;
|
|
112
|
-
e[10] !== t || e[11] !== i ? (g = (k) => {
|
|
113
|
-
k.stopPropagation(), i?.(t);
|
|
114
|
-
}, e[10] = t, e[11] = i, e[12] = g) : g = e[12];
|
|
115
|
-
let h;
|
|
116
|
-
e[13] !== f || e[14] !== r || e[15] !== d.iconSize ? (h = r ?? /* @__PURE__ */ s(f, { size: d.iconSize }), e[13] = f, e[14] = r, e[15] = d.iconSize, e[16] = h) : h = e[16];
|
|
117
|
-
let R;
|
|
118
|
-
e[17] !== h ? (R = /* @__PURE__ */ s(se.span, { mr: "xs", display: "inline-flex", children: h }), e[17] = h, e[18] = R) : R = e[18];
|
|
119
|
-
let S;
|
|
120
|
-
e[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
121
|
-
base: "14rem"
|
|
122
|
-
}, e[19] = S) : S = e[19];
|
|
123
|
-
let T;
|
|
124
|
-
e[20] !== t || e[21] !== d.textStyle ? (T = /* @__PURE__ */ s(w, { maxW: S, textOverflow: "ellipsis", whiteSpace: "nowrap", overflow: "hidden", textStyle: d.textStyle, children: t }), e[20] = t, e[21] = d.textStyle, e[22] = T) : T = e[22];
|
|
125
|
-
let b;
|
|
126
|
-
e[23] !== t || e[24] !== T ? (b = /* @__PURE__ */ s(Ht, { content: t, children: T }), e[23] = t, e[24] = T, e[25] = b) : b = e[25];
|
|
127
|
-
let N;
|
|
128
|
-
e[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ s(at, {}), e[26] = N) : N = e[26];
|
|
129
|
-
let y;
|
|
130
|
-
e[27] !== t || e[28] !== o ? (y = o && /* @__PURE__ */ s(dt, { "aria-label": "Remove reference", size: "2xs", ml: "xs", variant: "ghost", _hover: {
|
|
131
|
-
bg: "transparent"
|
|
132
|
-
}, onClick: (k) => {
|
|
133
|
-
k.stopPropagation(), o?.(t);
|
|
134
|
-
}, children: /* @__PURE__ */ s(Ut, { size: 12 }) }), e[27] = t, e[28] = o, e[29] = y) : y = e[29];
|
|
135
|
-
let x;
|
|
136
|
-
return e[30] !== l || e[31] !== d.container || e[32] !== y || e[33] !== E || e[34] !== g || e[35] !== R || e[36] !== b || e[37] !== u ? (x = /* @__PURE__ */ A(se.span, { display: "flex", flexDirection: "row", alignItems: "center", borderRadius: "xs", gap: "2xs", cursor: E, ...u, ...d.container, onClick: g, ...l, children: [
|
|
137
|
-
R,
|
|
138
|
-
b,
|
|
139
|
-
N,
|
|
140
|
-
y
|
|
141
|
-
] }), e[30] = l, e[31] = d.container, e[32] = y, e[33] = E, e[34] = g, e[35] = R, e[36] = b, e[37] = u, e[38] = x) : x = e[38], x;
|
|
142
|
-
};
|
|
143
|
-
let re = class ce extends G {
|
|
144
|
-
__href;
|
|
145
|
-
__label;
|
|
146
|
-
static getType() {
|
|
147
|
-
return "reference-link";
|
|
148
|
-
}
|
|
149
|
-
static clone(e) {
|
|
150
|
-
return new ce(e.__href, e.__label, e.__key);
|
|
151
|
-
}
|
|
152
|
-
constructor(e, t, r) {
|
|
153
|
-
super(r), this.__href = e, this.__label = t;
|
|
154
|
-
}
|
|
155
|
-
createDOM(e, t) {
|
|
156
|
-
return document.createElement("span");
|
|
157
|
-
}
|
|
158
|
-
updateDOM(e, t, r) {
|
|
159
|
-
return !1;
|
|
160
|
-
}
|
|
161
|
-
getTextContent() {
|
|
162
|
-
return `{{link('${this.__label ?? this.__href}')}}`;
|
|
163
|
-
}
|
|
164
|
-
exportJSON() {
|
|
165
|
-
return {
|
|
166
|
-
type: ce.getType(),
|
|
167
|
-
version: 1,
|
|
168
|
-
href: this.__href,
|
|
169
|
-
label: this.__label
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
static importJSON(e) {
|
|
173
|
-
return Je(e.href, e.label);
|
|
174
|
-
}
|
|
175
|
-
decorate(e, t) {
|
|
176
|
-
const r = this.__href, i = r.split("/").pop() || "unknown", l = /^https?:\/\//i.test(r), c = /^#?\$PROJECT\//i.test(r);
|
|
177
|
-
return /* @__PURE__ */ s(P, { width: "fit-content", display: "inline-block", children: /* @__PURE__ */ s(Ue, { fileName: i, onSelect: () => {
|
|
178
|
-
if (l)
|
|
179
|
-
window.open(r, "_blank", "noopener,noreferrer");
|
|
180
|
-
else if (c) {
|
|
181
|
-
const a = r.replace(/^#?\$PROJECT\//i, ""), _ = new CustomEvent("ui:open-project-file", {
|
|
182
|
-
detail: a
|
|
183
|
-
});
|
|
184
|
-
window.dispatchEvent(_);
|
|
185
|
-
} else
|
|
186
|
-
window.location.assign(r);
|
|
187
|
-
} }) });
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
function Je(n, e) {
|
|
191
|
-
return new re(n, e);
|
|
192
|
-
}
|
|
193
|
-
function Vt(n) {
|
|
194
|
-
return n instanceof re;
|
|
195
|
-
}
|
|
196
|
-
const xe = /\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/, Xt = {
|
|
197
|
-
dependencies: [re],
|
|
198
|
-
export: (n) => {
|
|
199
|
-
if (Vt(n)) {
|
|
200
|
-
const e = n.__href, t = n.__label ?? e;
|
|
201
|
-
return t ? `{{link('${t}')}}` : `{{link('${e}')}}`;
|
|
202
|
-
}
|
|
203
|
-
return null;
|
|
204
|
-
},
|
|
205
|
-
regExp: xe,
|
|
206
|
-
importRegExp: xe,
|
|
207
|
-
replace: (n, e) => {
|
|
208
|
-
const t = e[2], o = /^(https?:\/\/|\/)/i.test(t) ? t : `#${t}`, i = t;
|
|
209
|
-
n.replace(Je(o, i));
|
|
210
|
-
},
|
|
211
|
-
type: "text-match"
|
|
212
|
-
}, _e = {
|
|
213
|
-
code: "rich-text__code",
|
|
214
|
-
codeHighlight: {
|
|
215
|
-
atrule: "rich-text__tokenAttr",
|
|
216
|
-
attr: "rich-text__tokenAttr",
|
|
217
|
-
boolean: "rich-text__tokenProperty",
|
|
218
|
-
builtin: "rich-text__tokenSelector",
|
|
219
|
-
cdata: "rich-text__tokenComment",
|
|
220
|
-
char: "rich-text__tokenSelector",
|
|
221
|
-
class: "rich-text__tokenFunction",
|
|
222
|
-
"class-name": "rich-text__tokenFunction",
|
|
223
|
-
comment: "rich-text__tokenComment",
|
|
224
|
-
constant: "rich-text__tokenProperty",
|
|
225
|
-
deleted: "rich-text__tokenProperty",
|
|
226
|
-
doctype: "rich-text__tokenComment",
|
|
227
|
-
entity: "rich-text__tokenOperator",
|
|
228
|
-
function: "rich-text__tokenFunction",
|
|
229
|
-
important: "rich-text__tokenVariable",
|
|
230
|
-
inserted: "rich-text__tokenSelector",
|
|
231
|
-
keyword: "rich-text__tokenAttr",
|
|
232
|
-
namespace: "rich-text__tokenVariable",
|
|
233
|
-
number: "rich-text__tokenProperty",
|
|
234
|
-
operator: "rich-text__tokenOperator",
|
|
235
|
-
prolog: "rich-text__tokenComment",
|
|
236
|
-
property: "rich-text__tokenProperty",
|
|
237
|
-
punctuation: "rich-text__tokenPunctuation",
|
|
238
|
-
regex: "rich-text__tokenVariable",
|
|
239
|
-
selector: "rich-text__tokenSelector",
|
|
240
|
-
string: "rich-text__tokenSelector",
|
|
241
|
-
symbol: "rich-text__tokenProperty",
|
|
242
|
-
tag: "rich-text__tokenProperty",
|
|
243
|
-
url: "rich-text__tokenOperator",
|
|
244
|
-
variable: "rich-text__tokenVariable"
|
|
245
|
-
},
|
|
246
|
-
embedBlock: {
|
|
247
|
-
base: "rich-text__embedBlock",
|
|
248
|
-
focus: "rich-text__embedBlockFocus"
|
|
249
|
-
},
|
|
250
|
-
list: {
|
|
251
|
-
checklist: "rich-text__checklist",
|
|
252
|
-
listitem: "rich-text__listItem",
|
|
253
|
-
listitemChecked: "rich-text__listItemChecked",
|
|
254
|
-
listitemUnchecked: "rich-text__listItemUnchecked",
|
|
255
|
-
nested: {
|
|
256
|
-
listitem: "rich-text__nestedListItem"
|
|
257
|
-
},
|
|
258
|
-
olDepth: ["rich-text__ol1", "rich-text__ol2", "rich-text__ol3", "rich-text__ol4", "rich-text__ol5"],
|
|
259
|
-
ol: "rich-text__ol",
|
|
260
|
-
ul: "rich-text__ul"
|
|
261
|
-
},
|
|
262
|
-
heading: {
|
|
263
|
-
h1: "rich-text__h1",
|
|
264
|
-
h2: "rich-text__h2",
|
|
265
|
-
h3: "rich-text__h3"
|
|
266
|
-
},
|
|
267
|
-
paragraph: "rich-text__p",
|
|
268
|
-
text: {
|
|
269
|
-
underline: "rich-text__textUnderline",
|
|
270
|
-
italic: "rich-text__textItalic",
|
|
271
|
-
code: "rich-text__textCode"
|
|
272
|
-
},
|
|
273
|
-
link: "rich-text__link",
|
|
274
|
-
quote: "rich-text__quote",
|
|
275
|
-
reference: "rich-text__reference",
|
|
276
|
-
table: "rich-text__table",
|
|
277
|
-
tableCell: "rich-text__tableCell",
|
|
278
|
-
tableRow: "rich-text__tableRow",
|
|
279
|
-
tableCellHeader: "rich-text__tableCellHeader",
|
|
280
|
-
layoutContainer: "rich-text__layoutContainer",
|
|
281
|
-
layoutItem: "rich-text__layoutItem",
|
|
282
|
-
draggableBlockDemo: {
|
|
283
|
-
row: "rich-text__row",
|
|
284
|
-
content: "rich-text__content"
|
|
285
|
-
}
|
|
286
|
-
}, V = "calc(var(--chakra-font-sizes-sm) * var(--rich-text-font-scale))", Gt = (n) => n == null ? "-" : typeof n == "string" ? n.length ? n : "-" : typeof n == "number" || typeof n == "boolean" ? String(n).toUpperCase() : n instanceof Date ? n.toISOString() : JSON.stringify(n), Yt = (n) => {
|
|
287
|
-
const e = C(6), {
|
|
288
|
-
defaultCode: t,
|
|
289
|
-
isEditable: r,
|
|
290
|
-
showLineNumbers: o,
|
|
291
|
-
disableScroll: i
|
|
292
|
-
} = n, l = t === void 0 ? "" : t, c = r === void 0 ? !1 : r, a = o === void 0 ? !1 : o, _ = i === void 0 ? !1 : i;
|
|
293
|
-
if (c) {
|
|
294
|
-
let p;
|
|
295
|
-
return e[0] !== l ? (p = /* @__PURE__ */ s(ut, { defaultValue: l, fontFamily: "mono", fontSize: V, resize: "vertical", minHeight: "100%" }), e[0] = l, e[1] = p) : p = e[1], p;
|
|
296
|
-
}
|
|
297
|
-
let m;
|
|
298
|
-
if (e[2] !== l || e[3] !== _ || e[4] !== a) {
|
|
299
|
-
const p = a ? l.split(`
|
|
300
|
-
`) : [l];
|
|
301
|
-
m = /* @__PURE__ */ s(P, { as: "pre", margin: 0, padding: "sm", fontFamily: "mono", fontSize: V, lineHeight: "1.5", overflowY: _ ? "hidden" : "auto", background: "bg.muted", borderRadius: "md", width: "100%", children: a ? /* @__PURE__ */ s(P, { as: "code", display: "grid", gridTemplateColumns: "auto 1fr", columnGap: "sm", children: p.map(Zt) }) : /* @__PURE__ */ s(P, { as: "code", children: l }) }), e[2] = l, e[3] = _, e[4] = a, e[5] = m;
|
|
302
|
-
} else
|
|
303
|
-
m = e[5];
|
|
304
|
-
return m;
|
|
305
|
-
}, Qt = (n) => {
|
|
306
|
-
const e = C(26), {
|
|
307
|
-
data: t,
|
|
308
|
-
fullWidth: r,
|
|
309
|
-
noBorder: o,
|
|
310
|
-
hiddenColumns: i
|
|
311
|
-
} = n, l = r === void 0 ? !1 : r, c = o === void 0 ? !1 : o;
|
|
312
|
-
let a;
|
|
313
|
-
e[0] !== i ? (a = i === void 0 ? [] : i, e[0] = i, e[1] = a) : a = e[1];
|
|
314
|
-
const _ = a;
|
|
315
|
-
if (!t.length) {
|
|
316
|
-
const b = c ? "0" : "1px";
|
|
317
|
-
let N;
|
|
318
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ s(w, { textStyle: "label/S/regular", fontSize: V, color: "fg.muted", children: "No data" }), e[2] = N) : N = e[2];
|
|
319
|
-
let y;
|
|
320
|
-
return e[3] !== b ? (y = /* @__PURE__ */ s(P, { padding: "sm", borderWidth: b, borderColor: "border.muted", children: N }), e[3] = b, e[4] = y) : y = e[4], y;
|
|
321
|
-
}
|
|
322
|
-
let m;
|
|
323
|
-
e[5] !== _ ? (m = new Set(_), e[5] = _, e[6] = m) : m = e[6];
|
|
324
|
-
const p = m;
|
|
325
|
-
let f;
|
|
326
|
-
e[7] !== t[0] ? (f = Object.keys(t[0] ?? {}), e[7] = t[0], e[8] = f) : f = e[8];
|
|
327
|
-
let d;
|
|
328
|
-
e[9] !== p || e[10] !== f ? (d = f.filter((b) => !p.has(b)), e[9] = p, e[10] = f, e[11] = d) : d = e[11];
|
|
329
|
-
const u = d, E = l ? "100%" : "fit-content", g = c ? "0" : "1px";
|
|
330
|
-
let h;
|
|
331
|
-
e[12] !== u ? (h = /* @__PURE__ */ s(B.Header, { children: /* @__PURE__ */ s(B.Row, { background: "bg.muted", children: u.map(en) }) }), e[12] = u, e[13] = h) : h = e[13];
|
|
332
|
-
let R;
|
|
333
|
-
if (e[14] !== u || e[15] !== t) {
|
|
334
|
-
let b;
|
|
335
|
-
e[17] !== u ? (b = (N, y) => /* @__PURE__ */ s(B.Row, { children: u.map((x) => /* @__PURE__ */ s(B.Cell, { paddingX: "xs", paddingY: "2xs", children: /* @__PURE__ */ s(w, { textStyle: "paragraph/S/regular", fontSize: V, children: Gt(N[x]) }) }, `${y}-${x}`)) }, `${y}-${u.join("-")}`), e[17] = u, e[18] = b) : b = e[18], R = t.map(b), e[14] = u, e[15] = t, e[16] = R;
|
|
336
|
-
} else
|
|
337
|
-
R = e[16];
|
|
338
|
-
let S;
|
|
339
|
-
e[19] !== R ? (S = /* @__PURE__ */ s(B.Body, { children: R }), e[19] = R, e[20] = S) : S = e[20];
|
|
340
|
-
let T;
|
|
341
|
-
return e[21] !== S || e[22] !== E || e[23] !== g || e[24] !== h ? (T = /* @__PURE__ */ s(B.ScrollArea, { overflowX: "auto", maxWidth: "100%", children: /* @__PURE__ */ A(B.Root, { size: "sm", width: E, borderWidth: g, borderColor: "border.muted", children: [
|
|
342
|
-
h,
|
|
343
|
-
S
|
|
344
|
-
] }) }), e[21] = S, e[22] = E, e[23] = g, e[24] = h, e[25] = T) : T = e[25], T;
|
|
345
|
-
};
|
|
346
|
-
function Zt(n, e) {
|
|
347
|
-
return /* @__PURE__ */ A(P, { as: "span", display: "contents", children: [
|
|
348
|
-
/* @__PURE__ */ s(w, { as: "span", color: "fg.muted", textAlign: "right", fontSize: "inherit", children: e + 1 }),
|
|
349
|
-
/* @__PURE__ */ s(w, { as: "span", fontSize: "inherit", children: n.length ? n : " " })
|
|
350
|
-
] }, `${e}-${n}`);
|
|
351
|
-
}
|
|
352
|
-
function en(n) {
|
|
353
|
-
return /* @__PURE__ */ s(B.ColumnHeader, { textTransform: "none", paddingX: "xs", paddingY: "2xs", children: /* @__PURE__ */ s(w, { textStyle: "label/S/medium", fontSize: V, children: n }) }, n);
|
|
354
|
-
}
|
|
355
|
-
class j extends G {
|
|
356
|
-
__data;
|
|
357
|
-
static getType() {
|
|
358
|
-
return "data_table";
|
|
359
|
-
}
|
|
360
|
-
static clone(e) {
|
|
361
|
-
return new j(e.__data, e.__key);
|
|
362
|
-
}
|
|
363
|
-
constructor(e, t) {
|
|
364
|
-
super(t), this.__data = e;
|
|
365
|
-
}
|
|
366
|
-
getData() {
|
|
367
|
-
return this.__data;
|
|
368
|
-
}
|
|
369
|
-
createDOM() {
|
|
370
|
-
return document.createElement("div");
|
|
371
|
-
}
|
|
372
|
-
updateDOM() {
|
|
373
|
-
return !1;
|
|
374
|
-
}
|
|
375
|
-
decorate() {
|
|
376
|
-
return /* @__PURE__ */ s(Qt, { fullWidth: !0, isReadOnly: !0, data: this.__data });
|
|
377
|
-
}
|
|
378
|
-
exportJSON() {
|
|
379
|
-
return {
|
|
380
|
-
type: "data_table",
|
|
381
|
-
version: 1,
|
|
382
|
-
data: this.__data
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
static importJSON(e) {
|
|
386
|
-
return new j(e.data);
|
|
387
|
-
}
|
|
388
|
-
getTextContent() {
|
|
389
|
-
if (!this.__data.length) return "";
|
|
390
|
-
const e = Object.keys(this.__data[0]), t = e.join(" | "), r = e.map(() => "---").join(" | "), o = this.__data.map((i) => e.map((l) => String(i[l] || "")).join(" | "));
|
|
391
|
-
return [t, r, ...o].join(`
|
|
392
|
-
`);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
function Ee(n) {
|
|
396
|
-
return new j(n);
|
|
397
|
-
}
|
|
398
|
-
function be(n) {
|
|
399
|
-
return n instanceof j;
|
|
400
|
-
}
|
|
401
|
-
class K extends G {
|
|
402
|
-
__language;
|
|
403
|
-
__code;
|
|
404
|
-
static getType() {
|
|
405
|
-
return "codeblock";
|
|
406
|
-
}
|
|
407
|
-
static clone(e) {
|
|
408
|
-
return new K(e.__language, e.__code, e.__key);
|
|
409
|
-
}
|
|
410
|
-
constructor(e, t, r) {
|
|
411
|
-
super(r), this.__language = e, this.__code = t;
|
|
412
|
-
}
|
|
413
|
-
createDOM() {
|
|
414
|
-
return document.createElement("div");
|
|
415
|
-
}
|
|
416
|
-
updateDOM() {
|
|
417
|
-
return !1;
|
|
418
|
-
}
|
|
419
|
-
static importJSON(e) {
|
|
420
|
-
const {
|
|
421
|
-
language: t,
|
|
422
|
-
code: r
|
|
423
|
-
} = e;
|
|
424
|
-
return new K(t, r);
|
|
425
|
-
}
|
|
426
|
-
exportJSON() {
|
|
427
|
-
return {
|
|
428
|
-
type: "codeblock",
|
|
429
|
-
language: this.__language,
|
|
430
|
-
code: this.__code,
|
|
431
|
-
version: 1
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
// Used by Lexical's markdown export as fallback for DecoratorNodes
|
|
435
|
-
getTextContent() {
|
|
436
|
-
return `\`\`\`${this.__language}
|
|
437
|
-
${this.__code}
|
|
438
|
-
\`\`\``;
|
|
439
|
-
}
|
|
440
|
-
decorate() {
|
|
441
|
-
return /* @__PURE__ */ s(P, { borderRadius: "md", overflow: "hidden", children: /* @__PURE__ */ s(Yt, { language: this.__language || "plaintext", defaultCode: this.__code, isEditable: !1, showLineNumbers: !0, disableScroll: !0 }) });
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
const tn = Rt.lazy(() => import("./EquationComponent-DeDYHvqY.js"));
|
|
445
|
-
function Se(n) {
|
|
446
|
-
let e = n.getAttribute("data-lexical-equation");
|
|
447
|
-
const t = n.getAttribute("data-lexical-inline") === "true";
|
|
448
|
-
return e = atob(e || ""), e ? {
|
|
449
|
-
node: oe(e, t)
|
|
450
|
-
} : null;
|
|
451
|
-
}
|
|
452
|
-
class J extends G {
|
|
453
|
-
__equation;
|
|
454
|
-
__inline;
|
|
455
|
-
static getType() {
|
|
456
|
-
return "equation";
|
|
457
|
-
}
|
|
458
|
-
static clone(e) {
|
|
459
|
-
return new J(e.__equation, e.__inline, e.__key);
|
|
460
|
-
}
|
|
461
|
-
constructor(e, t, r) {
|
|
462
|
-
super(r), this.__equation = e, this.__inline = t ?? !1;
|
|
463
|
-
}
|
|
464
|
-
static importJSON(e) {
|
|
465
|
-
return oe(e.equation, e.inline);
|
|
466
|
-
}
|
|
467
|
-
exportJSON() {
|
|
468
|
-
return {
|
|
469
|
-
equation: this.getEquation(),
|
|
470
|
-
inline: this.__inline,
|
|
471
|
-
type: "equation",
|
|
472
|
-
version: 1
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
|
-
createDOM(e) {
|
|
476
|
-
const t = document.createElement(this.__inline ? "span" : "div");
|
|
477
|
-
return t.className = "editor-equation", t;
|
|
478
|
-
}
|
|
479
|
-
exportDOM() {
|
|
480
|
-
const e = document.createElement(this.__inline ? "span" : "div"), t = btoa(this.__equation);
|
|
481
|
-
return e.setAttribute("data-lexical-equation", t), e.setAttribute("data-lexical-inline", `${this.__inline}`), qt.render(this.__equation, e, {
|
|
482
|
-
displayMode: !this.__inline,
|
|
483
|
-
// true === block display //
|
|
484
|
-
errorColor: "#cc0000",
|
|
485
|
-
output: "html",
|
|
486
|
-
strict: "warn",
|
|
487
|
-
throwOnError: !1,
|
|
488
|
-
trust: !1
|
|
489
|
-
}), {
|
|
490
|
-
element: e
|
|
491
|
-
};
|
|
492
|
-
}
|
|
493
|
-
static importDOM() {
|
|
494
|
-
return {
|
|
495
|
-
div: (e) => e.hasAttribute("data-lexical-equation") ? {
|
|
496
|
-
conversion: Se,
|
|
497
|
-
priority: 2
|
|
498
|
-
} : null,
|
|
499
|
-
span: (e) => e.hasAttribute("data-lexical-equation") ? {
|
|
500
|
-
conversion: Se,
|
|
501
|
-
priority: 1
|
|
502
|
-
} : null
|
|
503
|
-
};
|
|
504
|
-
}
|
|
505
|
-
updateDOM(e) {
|
|
506
|
-
return this.__inline !== e.__inline;
|
|
507
|
-
}
|
|
508
|
-
getTextContent() {
|
|
509
|
-
return this.__equation;
|
|
510
|
-
}
|
|
511
|
-
getEquation() {
|
|
512
|
-
return this.__equation;
|
|
513
|
-
}
|
|
514
|
-
setEquation(e) {
|
|
515
|
-
const t = this.getWritable();
|
|
516
|
-
t.__equation = e;
|
|
517
|
-
}
|
|
518
|
-
isInline() {
|
|
519
|
-
return this.__inline;
|
|
520
|
-
}
|
|
521
|
-
decorate() {
|
|
522
|
-
return /* @__PURE__ */ s(Tt, { fallback: null, children: /* @__PURE__ */ s(tn, { equation: this.__equation, inline: this.__inline }) });
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
function oe(n = "", e = !1) {
|
|
526
|
-
const t = new J(n, e);
|
|
527
|
-
return ft(t);
|
|
528
|
-
}
|
|
529
|
-
function je(n) {
|
|
530
|
-
return n instanceof J;
|
|
531
|
-
}
|
|
532
|
-
const ze = {
|
|
533
|
-
dependencies: [J],
|
|
534
|
-
export: (n) => je(n) && n.isInline() ? `\\( ${n.getEquation().trim()} \\)` : null,
|
|
535
|
-
importRegExp: /\\\((.*?)\\\)/,
|
|
536
|
-
regExp: /\\\((.*?)\\\)/,
|
|
537
|
-
replace: (n, e) => {
|
|
538
|
-
const t = oe(e[1].trim(), !0);
|
|
539
|
-
n.replace(t);
|
|
540
|
-
},
|
|
541
|
-
type: "text-match"
|
|
542
|
-
}, We = {
|
|
543
|
-
dependencies: [J],
|
|
544
|
-
regExpStart: /\\\[/,
|
|
545
|
-
regExpEnd: /\\]/,
|
|
546
|
-
export: (n) => je(n) && !n.isInline() ? `\\[ ${n.getEquation().trim()} \\]` : null,
|
|
547
|
-
replace: (n, e, t, r, o) => o ? (n.append(oe(o.join(" "), !1)), !0) : !1,
|
|
548
|
-
type: "multiline-element"
|
|
549
|
-
};
|
|
550
|
-
function nn() {
|
|
551
|
-
return null;
|
|
552
|
-
}
|
|
553
|
-
class W extends Pe {
|
|
554
|
-
static getType() {
|
|
555
|
-
return "hr";
|
|
556
|
-
}
|
|
557
|
-
static clone(e) {
|
|
558
|
-
return new W(e?.__key);
|
|
559
|
-
}
|
|
560
|
-
static importJSON(e) {
|
|
561
|
-
return Ke();
|
|
562
|
-
}
|
|
563
|
-
exportJSON() {
|
|
564
|
-
return {
|
|
565
|
-
...super.exportJSON()
|
|
566
|
-
};
|
|
567
|
-
}
|
|
568
|
-
createDOM(e, t) {
|
|
569
|
-
const r = document.createElement("hr");
|
|
570
|
-
return r.style = "margin: 2rem 0;", r;
|
|
571
|
-
}
|
|
572
|
-
updateDOM(e, t, r) {
|
|
573
|
-
return !1;
|
|
574
|
-
}
|
|
575
|
-
decorate(e) {
|
|
576
|
-
return null;
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
function Ke() {
|
|
580
|
-
return new W();
|
|
581
|
-
}
|
|
582
|
-
function rn(n) {
|
|
583
|
-
return n instanceof W;
|
|
584
|
-
}
|
|
585
|
-
const on = {
|
|
586
|
-
dependencies: [W],
|
|
587
|
-
export: (n) => rn(n) ? "***" : null,
|
|
588
|
-
regExp: /^(---|\*\*\*|___)\s?$/,
|
|
589
|
-
replace: (n) => {
|
|
590
|
-
const e = Ke();
|
|
591
|
-
n.replace(e);
|
|
592
|
-
},
|
|
593
|
-
type: "element"
|
|
594
|
-
}, sn = {
|
|
595
|
-
dependencies: [],
|
|
596
|
-
export: (n, e) => {
|
|
597
|
-
if (be(n)) {
|
|
598
|
-
const t = n.getData();
|
|
599
|
-
if (!t.length) return "";
|
|
600
|
-
const r = Object.keys(t[0]), o = r.join(" | "), i = r.map(() => "---").join(" | "), l = t.map((c) => r.map((a) => String(c[a] || "")).join(" | "));
|
|
601
|
-
return [`| ${o} |`, `| ${i} |`, ...l.map((c) => `| ${c} |`)].join(`
|
|
602
|
-
`);
|
|
603
|
-
}
|
|
604
|
-
return null;
|
|
605
|
-
},
|
|
606
|
-
regExp: /^\s*(\|.+\|)\s*$/,
|
|
607
|
-
replace: (n, e, t, r) => {
|
|
608
|
-
const o = n.getPreviousSibling();
|
|
609
|
-
if (/^\|?\s*:?-{3,}:?\s*(?:\|\s*:?-{3,}:?\s*)*\|?$/gm.test(t[0])) {
|
|
610
|
-
n.remove();
|
|
611
|
-
return;
|
|
612
|
-
}
|
|
613
|
-
const l = t[0].split("|").slice(1, -1).map((c) => c.trim());
|
|
614
|
-
if (o?.getType() === "data_table" && be(o)) {
|
|
615
|
-
const c = o.getData(), a = {}, _ = c.length === 1 && Object.values(c[0]).every((d) => d === ""), m = c.length > 0 ? Object.keys(c[0]) : l.map((d, u) => `col_${u}`);
|
|
616
|
-
l.forEach((d, u) => {
|
|
617
|
-
const E = m[u] || `col_${u}`;
|
|
618
|
-
a[E] = d;
|
|
619
|
-
});
|
|
620
|
-
const p = _ ? [a] : [...c, a], f = Ee(p);
|
|
621
|
-
o.replace(f), n.remove();
|
|
622
|
-
} else {
|
|
623
|
-
const c = {};
|
|
624
|
-
l.forEach((_, m) => {
|
|
625
|
-
c[_ || `col_${m}`] = "";
|
|
626
|
-
});
|
|
627
|
-
const a = Ee([c]);
|
|
628
|
-
n.replace(a);
|
|
629
|
-
}
|
|
630
|
-
},
|
|
631
|
-
type: "element"
|
|
632
|
-
}, ln = {
|
|
633
|
-
dependencies: [ee],
|
|
634
|
-
export: (n, e) => {
|
|
635
|
-
if (n instanceof ee) {
|
|
636
|
-
let t = n.getTextContent();
|
|
637
|
-
if (n.hasFormat("bold"))
|
|
638
|
-
t = `**${t}**`;
|
|
639
|
-
else if (n.hasFormat("italic"))
|
|
640
|
-
t = `*${t}*`;
|
|
641
|
-
else if (n.hasFormat("underline"))
|
|
642
|
-
t = `<ins>${t}</ins>`;
|
|
643
|
-
else
|
|
644
|
-
return null;
|
|
645
|
-
return t;
|
|
646
|
-
}
|
|
647
|
-
return null;
|
|
648
|
-
},
|
|
649
|
-
regExp: /<ins>(.*)<\/ins>/,
|
|
650
|
-
importRegExp: /<ins>(.*)<\/ins>/,
|
|
651
|
-
replace: (n, e) => {
|
|
652
|
-
const t = me(e[1]);
|
|
653
|
-
t.toggleFormat("underline"), n.replace(t);
|
|
654
|
-
},
|
|
655
|
-
type: "text-match"
|
|
656
|
-
}, cn = {
|
|
657
|
-
dependencies: [ee],
|
|
658
|
-
export: (n, e) => null,
|
|
659
|
-
regExp: /<u>(.*)<\/u>/,
|
|
660
|
-
importRegExp: /<u>(.*)<\/u>/,
|
|
661
|
-
replace: (n, e) => {
|
|
662
|
-
const t = me(e[1]);
|
|
663
|
-
t.toggleFormat("underline"), n.replace(t);
|
|
664
|
-
},
|
|
665
|
-
type: "text-match"
|
|
666
|
-
}, ye = /https?:\/\/[^\s<>"']*[^\s<>"'.,:;"')\]}]/, an = {
|
|
667
|
-
dependencies: [ue],
|
|
668
|
-
export: (n, e) => st(n) ? e(n) : null,
|
|
669
|
-
regExp: ye,
|
|
670
|
-
importRegExp: ye,
|
|
671
|
-
replace: (n, e) => {
|
|
672
|
-
const t = e[0], r = it(t), o = me(t);
|
|
673
|
-
o.setFormat(n.getFormat()), r.append(o), n.replace(r);
|
|
674
|
-
},
|
|
675
|
-
type: "text-match"
|
|
676
|
-
}, Ve = [sn, on, ln, cn, an], Wr = [ve, Ce, ue, j, we, Oe, ke, de, K, J, W, re], Kr = [lt, ...$e, ...Ve, ze, We, Xt], Vr = _e;
|
|
677
|
-
function dn() {
|
|
678
|
-
const n = C(3), [e] = D();
|
|
679
|
-
let t, r;
|
|
680
|
-
return n[0] !== e ? (t = () => {
|
|
681
|
-
e.update(un);
|
|
682
|
-
}, r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), U(t, r), null;
|
|
683
|
-
}
|
|
684
|
-
function un() {
|
|
685
|
-
const n = _t(de);
|
|
686
|
-
for (const e of n) {
|
|
687
|
-
const t = e.getLanguage() ?? "plaintext", r = e.getTextContent();
|
|
688
|
-
e.replace(new K(t, r));
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
function Xe(n) {
|
|
692
|
-
const e = C(4), {
|
|
693
|
-
isEditable: t
|
|
694
|
-
} = n, [r] = D();
|
|
695
|
-
let o, i;
|
|
696
|
-
return e[0] !== r || e[1] !== t ? (o = () => {
|
|
697
|
-
r.setEditable(t);
|
|
698
|
-
}, i = [t, r], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), U(o, i), null;
|
|
699
|
-
}
|
|
700
|
-
function Ge() {
|
|
701
|
-
const n = C(2), [e] = D();
|
|
702
|
-
let t;
|
|
703
|
-
return n[0] !== e ? (t = /* @__PURE__ */ s(P, { fontSize: "xs", color: "fg.muted", padding: "4", children: /* @__PURE__ */ s(Bt, { treeTypeButtonClassName: "debug-treetype-button", timeTravelButtonClassName: "debug-timetravel-button", timeTravelPanelButtonClassName: "debug-timetravel-button", timeTravelPanelClassName: "debug-timetravel-panel", timeTravelPanelSliderClassName: "debug-timetravel-slider", viewClassName: "tree-view-output", editor: e }) }), n[0] = e, n[1] = t) : t = n[1], t;
|
|
704
|
-
}
|
|
705
|
-
const mn = /^---\s*\n([\s\S]*?)\n---\s*(?:\n|$)/;
|
|
706
|
-
function fn(n) {
|
|
707
|
-
const e = n.match(mn);
|
|
708
|
-
return e ? {
|
|
709
|
-
frontmatter: e[0],
|
|
710
|
-
body: n.slice(e[0].length)
|
|
711
|
-
} : {
|
|
712
|
-
frontmatter: "",
|
|
713
|
-
body: n
|
|
714
|
-
};
|
|
715
|
-
}
|
|
716
|
-
const _n = "UPLOAD_FILE", pn = "OPEN_CONTEXT", hn = "RUN_PROMPT", gn = "UPDATE_FORMAT", xn = "UPDATE_BEHAVIOR", En = "INSERT_PROMPT", bn = "RENAME_PROMPT", Sn = "DUPLICATE_PROMPT", yn = "DELETE_PROMPT", Rn = "DELETE_REFERENCES", Tn = "RENAME_REFERENCES", Nn = "INSERT_REFERENCE", Cn = "INSERT_BLOCK";
|
|
717
|
-
O(_n);
|
|
718
|
-
O(pn);
|
|
719
|
-
O(hn);
|
|
720
|
-
O(gn);
|
|
721
|
-
O(xn);
|
|
722
|
-
O(En);
|
|
723
|
-
O(bn);
|
|
724
|
-
O(Sn);
|
|
725
|
-
O(yn);
|
|
726
|
-
O(Rn);
|
|
727
|
-
O(Tn);
|
|
728
|
-
const Ye = O(Nn), On = O(Cn), kn = "INSERT_NEW_FILE_PLACEHOLDER", $n = "INSERT_NEW_TEXT_PLACEHOLDER", In = "INSERT_PLACEHOLDER_REFERENCE";
|
|
729
|
-
O(kn);
|
|
730
|
-
O($n);
|
|
731
|
-
O(In);
|
|
732
|
-
function vn(n) {
|
|
733
|
-
const e = te();
|
|
734
|
-
return n.style !== null && e.setFormat(n.style.textAlign), {
|
|
735
|
-
node: e
|
|
736
|
-
};
|
|
737
|
-
}
|
|
738
|
-
class Y extends Pe {
|
|
739
|
-
static getType() {
|
|
740
|
-
return "comment";
|
|
741
|
-
}
|
|
742
|
-
static clone(e) {
|
|
743
|
-
return new Y(e.__key);
|
|
744
|
-
}
|
|
745
|
-
createDOM(e) {
|
|
746
|
-
const t = document.createElement("blockquote");
|
|
747
|
-
return qe(t, e.theme.comment), t;
|
|
748
|
-
}
|
|
749
|
-
updateDOM() {
|
|
750
|
-
return !1;
|
|
751
|
-
}
|
|
752
|
-
static importDOM() {
|
|
753
|
-
return {
|
|
754
|
-
blockquote: () => ({
|
|
755
|
-
conversion: vn,
|
|
756
|
-
priority: 0
|
|
757
|
-
})
|
|
758
|
-
};
|
|
759
|
-
}
|
|
760
|
-
exportDOM(e) {
|
|
761
|
-
const {
|
|
762
|
-
element: t
|
|
763
|
-
} = super.exportDOM(e);
|
|
764
|
-
if (t && pt(t)) {
|
|
765
|
-
this.isEmpty() && t.append(document.createElement("br"));
|
|
766
|
-
const r = this.getFormatType();
|
|
767
|
-
t.style.textAlign = r;
|
|
768
|
-
const o = this.getDirection();
|
|
769
|
-
o && (t.dir = o);
|
|
770
|
-
}
|
|
771
|
-
return {
|
|
772
|
-
element: t
|
|
773
|
-
};
|
|
774
|
-
}
|
|
775
|
-
static importJSON(e) {
|
|
776
|
-
const t = te();
|
|
777
|
-
return t.setFormat(e.format), t.setIndent(e.indent), t.setDirection(e.direction), t;
|
|
778
|
-
}
|
|
779
|
-
exportJSON() {
|
|
780
|
-
return {
|
|
781
|
-
...super.exportJSON(),
|
|
782
|
-
type: "comment"
|
|
783
|
-
};
|
|
784
|
-
}
|
|
785
|
-
getTextContent() {
|
|
786
|
-
return `{{! ${super.getTextContent().replace(/([{}])/g, "\\$1")} }}`;
|
|
787
|
-
}
|
|
788
|
-
// mutation
|
|
789
|
-
insertNewAfter(e, t) {
|
|
790
|
-
const r = le(), o = this.getDirection();
|
|
791
|
-
return r.setDirection(o), this.insertAfter(r, t), r;
|
|
792
|
-
}
|
|
793
|
-
collapseAtStart() {
|
|
794
|
-
const e = le();
|
|
795
|
-
return this.getChildren().forEach((r) => {
|
|
796
|
-
e.append(r);
|
|
797
|
-
}), this.replace(e), !0;
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
function te() {
|
|
801
|
-
return new Y();
|
|
802
|
-
}
|
|
803
|
-
const wn = (n, e) => {
|
|
804
|
-
const t = ht(), r = te();
|
|
805
|
-
if (e) {
|
|
806
|
-
e.getParent()?.replace(r, !0), e.remove(), r.selectEnd();
|
|
807
|
-
return;
|
|
808
|
-
}
|
|
809
|
-
gt(t) && $t(t, te);
|
|
810
|
-
};
|
|
811
|
-
function Pn() {
|
|
812
|
-
const n = C(3), [e] = D();
|
|
813
|
-
let t, r;
|
|
814
|
-
return n[0] !== e ? (t = () => fe(e.registerCommand(On, Ln, Le)), r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), U(t, r), null;
|
|
815
|
-
}
|
|
816
|
-
function Ln(n) {
|
|
817
|
-
const {
|
|
818
|
-
optionId: e,
|
|
819
|
-
nodeToReplace: t
|
|
820
|
-
} = n;
|
|
821
|
-
return wn(e, t), !1;
|
|
822
|
-
}
|
|
823
|
-
const Mn = () => {
|
|
824
|
-
const n = C(3), [e] = D();
|
|
825
|
-
let t, r;
|
|
826
|
-
n[0] !== e ? (t = () => fe(e.registerNodeTransform(Y, (o) => {
|
|
827
|
-
const l = o.getChildren().filter(An);
|
|
828
|
-
l.length > 0 && e.update(() => {
|
|
829
|
-
l.forEach(Dn);
|
|
830
|
-
});
|
|
831
|
-
})), r = [e], n[0] = e, n[1] = t, n[2] = r) : (t = n[1], r = n[2]), U(t, r);
|
|
832
|
-
};
|
|
833
|
-
function An(n) {
|
|
834
|
-
return n.getType() === "comment";
|
|
835
|
-
}
|
|
836
|
-
function Dn(n) {
|
|
837
|
-
n.replace(le(), !0);
|
|
838
|
-
}
|
|
839
|
-
function Fn() {
|
|
840
|
-
return Mn(), Pn(), null;
|
|
841
|
-
}
|
|
842
|
-
const Hn = (n) => {
|
|
843
|
-
let e = "";
|
|
844
|
-
const t = n.getChildren(), r = t.length;
|
|
845
|
-
for (let o = 0; o < r; o++) {
|
|
846
|
-
const i = t[o];
|
|
847
|
-
e += i.getTextContent(), xt(i) && o !== r - 1 && !i.isInline() && (e += `
|
|
848
|
-
`);
|
|
849
|
-
}
|
|
850
|
-
return e;
|
|
851
|
-
}, qn = (n) => n.type !== "reference" ? null : `#${n.name ?? n.referenceId ?? ""}`, Bn = (n) => n.type === "paragraph" && !!n.children?.length, Qe = (n) => {
|
|
852
|
-
if (n.type === "comment")
|
|
853
|
-
return "";
|
|
854
|
-
const e = qn(n);
|
|
855
|
-
if (e !== null)
|
|
856
|
-
return e;
|
|
857
|
-
let t = typeof n.text == "string" ? n.text : "";
|
|
858
|
-
const r = n.children;
|
|
859
|
-
if (!Array.isArray(r)) return t;
|
|
860
|
-
const o = r.length;
|
|
861
|
-
for (let i = 0; i < o; i += 1) {
|
|
862
|
-
const l = r[i];
|
|
863
|
-
if (l.type === "comment") {
|
|
864
|
-
i !== o - 1 && (t += `
|
|
865
|
-
`);
|
|
866
|
-
continue;
|
|
867
|
-
}
|
|
868
|
-
t += Qe(l), Bn(l) && (t += `
|
|
869
|
-
`);
|
|
870
|
-
}
|
|
871
|
-
return t;
|
|
872
|
-
}, Ze = (n) => {
|
|
873
|
-
try {
|
|
874
|
-
const e = JSON.parse(n);
|
|
875
|
-
return Qe(e.root ?? {});
|
|
876
|
-
} catch {
|
|
877
|
-
return "";
|
|
878
|
-
}
|
|
879
|
-
}, Un = {
|
|
880
|
-
root: {
|
|
881
|
-
direction: "ltr",
|
|
882
|
-
format: "",
|
|
883
|
-
indent: 0,
|
|
884
|
-
type: "root",
|
|
885
|
-
version: 1,
|
|
886
|
-
children: [{
|
|
887
|
-
type: "paragraph",
|
|
888
|
-
version: 1,
|
|
889
|
-
format: "",
|
|
890
|
-
indent: 0,
|
|
891
|
-
textFormat: void 0,
|
|
892
|
-
direction: null,
|
|
893
|
-
children: []
|
|
894
|
-
}]
|
|
895
|
-
}
|
|
896
|
-
};
|
|
897
|
-
function Jn(n = "") {
|
|
898
|
-
return n.trim() ? {
|
|
899
|
-
root: {
|
|
900
|
-
direction: "ltr",
|
|
901
|
-
format: "",
|
|
902
|
-
indent: 0,
|
|
903
|
-
type: "root",
|
|
904
|
-
version: 1,
|
|
905
|
-
children: n.split(/\r?\n/).map((r) => ({
|
|
906
|
-
type: "paragraph",
|
|
907
|
-
version: 1,
|
|
908
|
-
format: "",
|
|
909
|
-
indent: 0,
|
|
910
|
-
textFormat: void 0,
|
|
911
|
-
direction: null,
|
|
912
|
-
children: r ? [{
|
|
913
|
-
type: "text",
|
|
914
|
-
version: 1,
|
|
915
|
-
text: r,
|
|
916
|
-
format: "",
|
|
917
|
-
detail: 0,
|
|
918
|
-
mode: "normal",
|
|
919
|
-
style: ""
|
|
920
|
-
}] : []
|
|
921
|
-
}))
|
|
922
|
-
}
|
|
923
|
-
} : JSON.parse(JSON.stringify(Un));
|
|
924
|
-
}
|
|
925
|
-
function jn(n) {
|
|
926
|
-
const e = C(4), {
|
|
927
|
-
editorRef: t,
|
|
928
|
-
previousTextRef: r
|
|
929
|
-
} = n, [o] = D();
|
|
930
|
-
let i, l;
|
|
931
|
-
return e[0] !== o || e[1] !== r ? (i = () => ({
|
|
932
|
-
setEditorValue: (c) => {
|
|
933
|
-
const a = o.parseEditorState(JSON.stringify(Jn(c)));
|
|
934
|
-
o.setEditorState(a), r.current = Ze(c), o.focus(void 0, {
|
|
935
|
-
defaultSelection: "rootEnd"
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
}), l = [o, r], e[0] = o, e[1] = r, e[2] = i, e[3] = l) : (i = e[2], l = e[3]), Nt(t, i, l), null;
|
|
939
|
-
}
|
|
940
|
-
const zn = (n) => n.key !== "Enter" ? !1 : !n.ctrlKey && !n.metaKey && !n.shiftKey && !n.altKey;
|
|
941
|
-
function Wn(n) {
|
|
942
|
-
const e = C(4), {
|
|
943
|
-
onSubmit: t
|
|
944
|
-
} = n, [r] = D();
|
|
945
|
-
let o, i;
|
|
946
|
-
return e[0] !== r || e[1] !== t ? (o = () => r.registerCommand(Et, (l) => zn(l) ? (l.preventDefault(), t?.(), !0) : !1, bt), i = [r, t], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), U(o, i), null;
|
|
947
|
-
}
|
|
948
|
-
const Re = ["table", "connector"], Kn = (n) => n.sort((r, o) => Re.indexOf(r.group) - Re.indexOf(o.group)).map((r, o) => ({
|
|
949
|
-
...r,
|
|
950
|
-
index: o
|
|
951
|
-
})).reduce((r, o) => {
|
|
952
|
-
const i = r[o.group] ?? [];
|
|
953
|
-
return i.push(o), r[o.group] = i, r;
|
|
954
|
-
}, {});
|
|
955
|
-
function Te(n) {
|
|
956
|
-
const e = C(22), {
|
|
957
|
-
id: t,
|
|
958
|
-
isSelected: r,
|
|
959
|
-
onClick: o,
|
|
960
|
-
onMouseEnter: i,
|
|
961
|
-
setRefElement: l,
|
|
962
|
-
secondaryLabel: c,
|
|
963
|
-
primaryLabel: a,
|
|
964
|
-
tabIndex: _
|
|
965
|
-
} = n, m = _ === void 0 ? -1 : _, p = r ? "bg.active" : "transparent", f = r ? "bg.active" : "bg.hover";
|
|
966
|
-
let d;
|
|
967
|
-
e[0] !== f ? (d = {
|
|
968
|
-
bg: f
|
|
969
|
-
}, e[0] = f, e[1] = d) : d = e[1];
|
|
970
|
-
let u;
|
|
971
|
-
e[2] !== a ? (u = /* @__PURE__ */ s(Z.Trigger, { children: /* @__PURE__ */ s(w, { mt: "1px", lineClamp: 1, textOverflow: "ellipsis", textStyle: "label/M/regular", children: a }) }), e[2] = a, e[3] = u) : u = e[3];
|
|
972
|
-
let E;
|
|
973
|
-
e[4] !== a ? (E = /* @__PURE__ */ s(Z.Positioner, { children: /* @__PURE__ */ s(Z.Content, { children: a }) }), e[4] = a, e[5] = E) : E = e[5];
|
|
974
|
-
let g;
|
|
975
|
-
e[6] !== u || e[7] !== E ? (g = /* @__PURE__ */ A(Z.Root, { children: [
|
|
976
|
-
u,
|
|
977
|
-
E
|
|
978
|
-
] }), e[6] = u, e[7] = E, e[8] = g) : g = e[8];
|
|
979
|
-
let h;
|
|
980
|
-
e[9] !== c ? (h = c && /* @__PURE__ */ s(w, { lineClamp: 2, textOverflow: "ellipsis", textStyle: "label/S/regular", color: "fg.muted", children: c }), e[9] = c, e[10] = h) : h = e[10];
|
|
981
|
-
let R;
|
|
982
|
-
return e[11] !== t || e[12] !== r || e[13] !== o || e[14] !== i || e[15] !== l || e[16] !== p || e[17] !== d || e[18] !== g || e[19] !== h || e[20] !== m ? (R = /* @__PURE__ */ A(ne, { direction: "column", cursor: "pointer", gap: "2xs", padding: "2xs", paddingX: "sm", bg: p, _hover: d, tabIndex: m, ref: l, role: "option", "aria-selected": r, id: t, onMouseEnter: i, onClick: o, children: [
|
|
983
|
-
g,
|
|
984
|
-
h
|
|
985
|
-
] }), e[11] = t, e[12] = r, e[13] = o, e[14] = i, e[15] = l, e[16] = p, e[17] = d, e[18] = g, e[19] = h, e[20] = m, e[21] = R) : R = e[21], R;
|
|
986
|
-
}
|
|
987
|
-
const Vn = (n) => {
|
|
988
|
-
const e = C(12), {
|
|
989
|
-
options: t,
|
|
990
|
-
selectedIndex: r,
|
|
991
|
-
onSelectItem: o,
|
|
992
|
-
onMouseEnterItem: i
|
|
993
|
-
} = n, {
|
|
994
|
-
table: l,
|
|
995
|
-
connector: c
|
|
996
|
-
} = Kn(t), a = l === void 0 ? [] : l, _ = c === void 0 ? [] : c, m = [...a, ..._].length;
|
|
997
|
-
let p, f;
|
|
998
|
-
e[0] !== r ? (p = () => {
|
|
999
|
-
document.getElementById(`typeahead-item-${r}`)?.scrollIntoView({
|
|
1000
|
-
behavior: "instant",
|
|
1001
|
-
block: "nearest"
|
|
1002
|
-
});
|
|
1003
|
-
}, f = [r], e[0] = r, e[1] = p, e[2] = f) : (p = e[1], f = e[2]), U(p, f);
|
|
1004
|
-
const d = P, u = "1000", E = "absolute", g = "modal", h = "auto", R = "24rem";
|
|
1005
|
-
let S;
|
|
1006
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
1007
|
-
base: "100vw",
|
|
1008
|
-
md: "264px"
|
|
1009
|
-
}, e[3] = S) : S = e[3];
|
|
1010
|
-
let T;
|
|
1011
|
-
e[4] !== m ? (T = !m && /* @__PURE__ */ s(w, { children: "No results" }), e[4] = m, e[5] = T) : T = e[5];
|
|
1012
|
-
const b = !!a.length && /* @__PURE__ */ A(ge, { children: [
|
|
1013
|
-
/* @__PURE__ */ s(w, { paddingTop: "xs", paddingBottom: "2xs", paddingX: "sm", color: "fg.muted", textStyle: "label/S/medium", children: "Tables" }),
|
|
1014
|
-
/* @__PURE__ */ s(P, { children: a.map((x) => /* @__PURE__ */ s(Te, { id: `typeahead-item-${x.index}`, isSelected: r === x.index, onClick: () => o(x, x.index), onMouseEnter: () => i(x.index), primaryLabel: x.name, secondaryLabel: x.description, setRefElement: x.setRefElement, tabIndex: -1 }, x.id)) })
|
|
1015
|
-
] }), N = !!_.length && /* @__PURE__ */ A(ge, { children: [
|
|
1016
|
-
/* @__PURE__ */ s(w, { paddingTop: "xs", paddingBottom: "2xs", paddingX: "sm", color: "fg.muted", textStyle: "label/S/medium", children: "Data Sources" }),
|
|
1017
|
-
/* @__PURE__ */ s(P, { children: _.map((x) => /* @__PURE__ */ s(Te, { id: `typeahead-item-${x.index}`, isSelected: r === x.index, onClick: () => o(x, x.index), onMouseEnter: () => i(x.index), primaryLabel: x.name, secondaryLabel: x.description, setRefElement: x.setRefElement, tabIndex: -1 }, x.id)) })
|
|
1018
|
-
] });
|
|
1019
|
-
let y;
|
|
1020
|
-
return e[6] !== d || e[7] !== T || e[8] !== b || e[9] !== N || e[10] !== S ? (y = /* @__PURE__ */ A(d, { zIndex: u, position: E, layerStyle: g, overflow: h, maxHeight: R, minWidth: S, children: [
|
|
1021
|
-
T,
|
|
1022
|
-
b,
|
|
1023
|
-
N
|
|
1024
|
-
] }), e[6] = d, e[7] = T, e[8] = b, e[9] = N, e[10] = S, e[11] = y) : y = e[11], y;
|
|
1025
|
-
}, Xn = (n, e) => n.filter((t) => t.name.replace(/ /g, "_").toLowerCase().includes(e.toLowerCase()));
|
|
1026
|
-
function Gn(n, e = []) {
|
|
1027
|
-
const t = e.map((r, o) => ({
|
|
1028
|
-
id: r.resourceId,
|
|
1029
|
-
key: r.resourceId,
|
|
1030
|
-
index: o,
|
|
1031
|
-
group: r.resourceType,
|
|
1032
|
-
name: r.name,
|
|
1033
|
-
description: r.description,
|
|
1034
|
-
setRefElement: () => {
|
|
1035
|
-
}
|
|
1036
|
-
}));
|
|
1037
|
-
return n == null || n === "" ? t : Xn(t, n);
|
|
1038
|
-
}
|
|
1039
|
-
const et = "\\.\\-<>_:", pe = ["#"].join(""), tt = `[^${pe}${et}\\s]`, Yn = `(?:[${et}]|)`, nt = 75, Qn = new RegExp(`(^|\\s|\\()([${pe}]((?:${tt}${Yn}){0,${nt}}))$`), Zn = new RegExp(`(^|\\s|\\()([${pe}]((?:${tt}){0,${nt}}))$`);
|
|
1040
|
-
function er(n, e) {
|
|
1041
|
-
let t = Qn.exec(n);
|
|
1042
|
-
if (t === null && (t = Zn.exec(n)), t !== null) {
|
|
1043
|
-
const r = t[1], o = t[3];
|
|
1044
|
-
if (o.length >= e)
|
|
1045
|
-
return {
|
|
1046
|
-
leadOffset: t.index + r.length,
|
|
1047
|
-
matchingString: o,
|
|
1048
|
-
replaceableString: t[2]
|
|
1049
|
-
};
|
|
1050
|
-
}
|
|
1051
|
-
return null;
|
|
1052
|
-
}
|
|
1053
|
-
const tr = 20;
|
|
1054
|
-
function nr(n) {
|
|
1055
|
-
const e = C(9), {
|
|
1056
|
-
items: t
|
|
1057
|
-
} = n;
|
|
1058
|
-
let r;
|
|
1059
|
-
e[0] !== t ? (r = t === void 0 ? [] : t, e[0] = t, e[1] = r) : r = e[1];
|
|
1060
|
-
const o = r, [i, l] = Ct(null), [c] = D(), a = Gn(i, o);
|
|
1061
|
-
let _;
|
|
1062
|
-
e[2] !== c ? (_ = (E, g, h) => {
|
|
1063
|
-
c.update(() => {
|
|
1064
|
-
g && (c.dispatchCommand(Ye, {
|
|
1065
|
-
resourceId: E.id,
|
|
1066
|
-
resourceType: E.group,
|
|
1067
|
-
name: E.name,
|
|
1068
|
-
nodeToReplace: g
|
|
1069
|
-
}), h());
|
|
1070
|
-
});
|
|
1071
|
-
}, e[2] = c, e[3] = _) : _ = e[3];
|
|
1072
|
-
const m = _, p = or;
|
|
1073
|
-
let f;
|
|
1074
|
-
e[4] !== a ? (f = a.slice(0, tr), e[4] = a, e[5] = f) : f = e[5];
|
|
1075
|
-
const d = f;
|
|
1076
|
-
let u;
|
|
1077
|
-
return e[6] !== d || e[7] !== m ? (u = /* @__PURE__ */ s(It, { onQueryChange: l, onSelectOption: m, triggerFn: p, options: d, menuRenderFn: rr }), e[6] = d, e[7] = m, e[8] = u) : u = e[8], u;
|
|
1078
|
-
}
|
|
1079
|
-
function rr(n, e) {
|
|
1080
|
-
const {
|
|
1081
|
-
options: t,
|
|
1082
|
-
selectedIndex: r,
|
|
1083
|
-
selectOptionAndCleanUp: o,
|
|
1084
|
-
setHighlightedIndex: i
|
|
1085
|
-
} = e;
|
|
1086
|
-
return n.current ? vt.createPortal(/* @__PURE__ */ s(Vn, { options: t, selectedIndex: r, onSelectItem: (l, c) => {
|
|
1087
|
-
i(c), o(l);
|
|
1088
|
-
}, onMouseEnterItem: (l) => {
|
|
1089
|
-
i(l);
|
|
1090
|
-
} }), n.current) : null;
|
|
1091
|
-
}
|
|
1092
|
-
function or(n) {
|
|
1093
|
-
return er(n, 0);
|
|
1094
|
-
}
|
|
1095
|
-
class X extends ee {
|
|
1096
|
-
__referenceId;
|
|
1097
|
-
__name;
|
|
1098
|
-
static getType() {
|
|
1099
|
-
return "reference";
|
|
1100
|
-
}
|
|
1101
|
-
static clone(e) {
|
|
1102
|
-
return new X(e.__referenceId, e.__name, e.__key);
|
|
1103
|
-
}
|
|
1104
|
-
constructor(e, t, r) {
|
|
1105
|
-
super(t, r), this.__referenceId = e, this.__name = t;
|
|
1106
|
-
}
|
|
1107
|
-
isKeyboardSelectable() {
|
|
1108
|
-
return !1;
|
|
1109
|
-
}
|
|
1110
|
-
canBeEmpty() {
|
|
1111
|
-
return !1;
|
|
1112
|
-
}
|
|
1113
|
-
canInsertTextAfter() {
|
|
1114
|
-
return !1;
|
|
1115
|
-
}
|
|
1116
|
-
canInsertTextBefore() {
|
|
1117
|
-
return !1;
|
|
1118
|
-
}
|
|
1119
|
-
createDOM(e) {
|
|
1120
|
-
const t = document.createElement("span");
|
|
1121
|
-
return qe(t, e.theme.reference), t.setAttribute("data-reference-id", this.__referenceId), t.setAttribute("data-name", this.__name), t.textContent = `#${this.__name}`, t;
|
|
1122
|
-
}
|
|
1123
|
-
updateDOM(e, t) {
|
|
1124
|
-
return (e.__name !== this.__name || e.__referenceId !== this.__referenceId) && (t.setAttribute("data-reference-id", this.__referenceId), t.setAttribute("data-name", this.__name), t.textContent = `#${this.__name}`), !1;
|
|
1125
|
-
}
|
|
1126
|
-
exportDOM(e) {
|
|
1127
|
-
const t = document.createElement("span");
|
|
1128
|
-
return t.setAttribute("data-reference-id", this.__referenceId), t.setAttribute("data-name", this.__name), t.textContent = `#${this.__name}`, {
|
|
1129
|
-
element: t
|
|
1130
|
-
};
|
|
1131
|
-
}
|
|
1132
|
-
static importJSON(e) {
|
|
1133
|
-
return new X(e.referenceId, e.name);
|
|
1134
|
-
}
|
|
1135
|
-
exportJSON() {
|
|
1136
|
-
return {
|
|
1137
|
-
...super.exportJSON(),
|
|
1138
|
-
type: "reference",
|
|
1139
|
-
referenceId: this.__referenceId,
|
|
1140
|
-
name: this.__name
|
|
1141
|
-
};
|
|
1142
|
-
}
|
|
1143
|
-
getTextContent() {
|
|
1144
|
-
return `#${this.__name}`;
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
function ir(n, e) {
|
|
1148
|
-
return new X(n, e);
|
|
1149
|
-
}
|
|
1150
|
-
const sr = (n, e, t) => {
|
|
1151
|
-
const r = ir(e, t);
|
|
1152
|
-
if (n) {
|
|
1153
|
-
n?.replace(r), n.remove(), r.selectEnd();
|
|
1154
|
-
return;
|
|
1155
|
-
}
|
|
1156
|
-
};
|
|
1157
|
-
function lr(n) {
|
|
1158
|
-
const e = C(4), {
|
|
1159
|
-
onAddReference: t
|
|
1160
|
-
} = n, [r] = D();
|
|
1161
|
-
let o, i;
|
|
1162
|
-
return e[0] !== r || e[1] !== t ? (o = () => fe(r.registerCommand(Ye, (l) => {
|
|
1163
|
-
const {
|
|
1164
|
-
resourceId: c,
|
|
1165
|
-
resourceType: a,
|
|
1166
|
-
name: _,
|
|
1167
|
-
nodeToReplace: m
|
|
1168
|
-
} = l;
|
|
1169
|
-
return r.update(() => {
|
|
1170
|
-
sr(m, c, _);
|
|
1171
|
-
}), t?.(c, a), !0;
|
|
1172
|
-
}, Le)), i = [r, t], e[0] = r, e[1] = t, e[2] = o, e[3] = i) : (o = e[2], i = e[3]), U(o, i), null;
|
|
1173
|
-
}
|
|
1174
|
-
const cr = {
|
|
1175
|
-
..._e,
|
|
1176
|
-
// Override paragraph class to remove margins specifically for prompt input
|
|
1177
|
-
paragraph: "rich-text__p rich-text__p--no-margin"
|
|
1178
|
-
}, ar = [Y, St, X], dr = (n, e) => {
|
|
1179
|
-
const t = C(39), {
|
|
1180
|
-
defaultState: r,
|
|
1181
|
-
debug: o,
|
|
1182
|
-
isEditable: i,
|
|
1183
|
-
placeholder: l
|
|
1184
|
-
} = n, c = o === void 0 ? !1 : o, a = i === void 0 ? !0 : i, {
|
|
1185
|
-
onChange: _,
|
|
1186
|
-
onError: m,
|
|
1187
|
-
onSubmit: p,
|
|
1188
|
-
references: f,
|
|
1189
|
-
onAddReference: d
|
|
1190
|
-
} = n, u = m === void 0 ? ur : m;
|
|
1191
|
-
let E;
|
|
1192
|
-
t[0] !== f ? (E = f === void 0 ? [] : f, t[0] = f, t[1] = E) : E = t[1];
|
|
1193
|
-
const g = E;
|
|
1194
|
-
let h;
|
|
1195
|
-
t[2] !== r || t[3] !== a || t[4] !== u ? (h = {
|
|
1196
|
-
namespace: "PROMPT_EDITOR",
|
|
1197
|
-
nodes: ar,
|
|
1198
|
-
editorState: r,
|
|
1199
|
-
editable: a,
|
|
1200
|
-
onError: u,
|
|
1201
|
-
theme: cr
|
|
1202
|
-
}, t[2] = r, t[3] = a, t[4] = u, t[5] = h) : h = t[5];
|
|
1203
|
-
const R = h;
|
|
1204
|
-
let S;
|
|
1205
|
-
t[6] !== r ? (S = Ze(r), t[6] = r, t[7] = S) : S = t[7];
|
|
1206
|
-
const T = kt(S);
|
|
1207
|
-
let b;
|
|
1208
|
-
t[8] !== l ? (b = l ?? /* @__PURE__ */ A(w, { textStyle: "label/M/regular", color: "fg.subtle", pointerEvents: "none", position: "absolute", top: "0", children: [
|
|
1209
|
-
"Type your query here or press ",
|
|
1210
|
-
/* @__PURE__ */ s(mt, { color: "fg.subtle", children: "#" }),
|
|
1211
|
-
" to add a reference."
|
|
1212
|
-
] }), t[8] = l, t[9] = b) : b = t[9];
|
|
1213
|
-
const N = b;
|
|
1214
|
-
let y;
|
|
1215
|
-
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ s(yt, {}), t[10] = y) : y = t[10];
|
|
1216
|
-
let x;
|
|
1217
|
-
t[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ s(Be, { fullWidth: !0 }), t[11] = x) : x = t[11];
|
|
1218
|
-
let k;
|
|
1219
|
-
t[12] !== N ? (k = /* @__PURE__ */ s(He, { contentEditable: x, placeholder: N, ErrorBoundary: De }), t[12] = N, t[13] = k) : k = t[13];
|
|
1220
|
-
let $;
|
|
1221
|
-
t[14] !== _ ? ($ = /* @__PURE__ */ s(Fe, { ignoreSelectionChange: !0, ignoreHistoryMergeTagChange: !1, onChange: (he) => {
|
|
1222
|
-
he.read(() => {
|
|
1223
|
-
const ot = Me(), ie = Hn(ot);
|
|
1224
|
-
ie !== T.current && (T.current = ie, _?.(ie, he.toJSON()));
|
|
1225
|
-
});
|
|
1226
|
-
} }), t[14] = _, t[15] = $) : $ = t[15];
|
|
1227
|
-
let I;
|
|
1228
|
-
t[16] !== e ? (I = /* @__PURE__ */ s(jn, { editorRef: e, previousTextRef: T }), t[16] = e, t[17] = I) : I = t[17];
|
|
1229
|
-
let v;
|
|
1230
|
-
t[18] !== a ? (v = /* @__PURE__ */ s(Xe, { isEditable: a }), t[18] = a, t[19] = v) : v = t[19];
|
|
1231
|
-
let L;
|
|
1232
|
-
t[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = /* @__PURE__ */ s(Fn, {}), t[20] = L) : L = t[20];
|
|
1233
|
-
let M;
|
|
1234
|
-
t[21] !== p ? (M = /* @__PURE__ */ s(Wn, { onSubmit: p }), t[21] = p, t[22] = M) : M = t[22];
|
|
1235
|
-
let F;
|
|
1236
|
-
t[23] !== g ? (F = /* @__PURE__ */ s(nr, { items: g }), t[23] = g, t[24] = F) : F = t[24];
|
|
1237
|
-
let H;
|
|
1238
|
-
t[25] !== d ? (H = /* @__PURE__ */ s(lr, { onAddReference: d }), t[25] = d, t[26] = H) : H = t[26];
|
|
1239
|
-
let q;
|
|
1240
|
-
t[27] !== c ? (q = c ? /* @__PURE__ */ s(Ge, {}) : "", t[27] = c, t[28] = q) : q = t[28];
|
|
1241
|
-
let Q;
|
|
1242
|
-
return t[29] !== R || t[30] !== k || t[31] !== $ || t[32] !== I || t[33] !== v || t[34] !== M || t[35] !== F || t[36] !== H || t[37] !== q ? (Q = /* @__PURE__ */ s(ne, { direction: "column", justifyContent: "space-between", width: "100%", position: "relative", children: /* @__PURE__ */ A(Ae, { initialConfig: R, children: [
|
|
1243
|
-
y,
|
|
1244
|
-
k,
|
|
1245
|
-
$,
|
|
1246
|
-
I,
|
|
1247
|
-
v,
|
|
1248
|
-
L,
|
|
1249
|
-
M,
|
|
1250
|
-
F,
|
|
1251
|
-
H,
|
|
1252
|
-
q
|
|
1253
|
-
] }) }), t[29] = R, t[30] = k, t[31] = $, t[32] = I, t[33] = v, t[34] = M, t[35] = F, t[36] = H, t[37] = q, t[38] = Q) : Q = t[38], Q;
|
|
1254
|
-
}, Xr = Ot(dr);
|
|
1255
|
-
function ur() {
|
|
1256
|
-
}
|
|
1257
|
-
function mr(n) {
|
|
1258
|
-
const e = C(5), {
|
|
1259
|
-
value: t,
|
|
1260
|
-
onUpdate: r
|
|
1261
|
-
} = n, [o] = D();
|
|
1262
|
-
let i, l;
|
|
1263
|
-
return e[0] !== o || e[1] !== r || e[2] !== t ? (i = () => {
|
|
1264
|
-
o && o.update(() => r(t), {
|
|
1265
|
-
tag: "history-merge"
|
|
1266
|
-
});
|
|
1267
|
-
}, l = [t, o, r], e[0] = o, e[1] = r, e[2] = t, e[3] = i, e[4] = l) : (i = e[3], l = e[4]), U(i, l), null;
|
|
1268
|
-
}
|
|
1269
|
-
class z extends G {
|
|
1270
|
-
__href;
|
|
1271
|
-
__label;
|
|
1272
|
-
static getType() {
|
|
1273
|
-
return "reference-link";
|
|
1274
|
-
}
|
|
1275
|
-
static clone(e) {
|
|
1276
|
-
return new z(e.__href, e.__label, e.__key);
|
|
1277
|
-
}
|
|
1278
|
-
constructor(e, t, r) {
|
|
1279
|
-
super(r), this.__href = e, this.__label = t;
|
|
1280
|
-
}
|
|
1281
|
-
createDOM(e, t) {
|
|
1282
|
-
return document.createElement("span");
|
|
1283
|
-
}
|
|
1284
|
-
updateDOM(e, t, r) {
|
|
1285
|
-
return !1;
|
|
1286
|
-
}
|
|
1287
|
-
getTextContent() {
|
|
1288
|
-
return `{{link('${this.__label ?? this.__href}')}}`;
|
|
1289
|
-
}
|
|
1290
|
-
exportJSON() {
|
|
1291
|
-
return {
|
|
1292
|
-
type: z.getType(),
|
|
1293
|
-
version: 1,
|
|
1294
|
-
href: this.__href,
|
|
1295
|
-
label: this.__label
|
|
1296
|
-
};
|
|
1297
|
-
}
|
|
1298
|
-
static importJSON(e) {
|
|
1299
|
-
return rt(e.href, e.label);
|
|
1300
|
-
}
|
|
1301
|
-
decorate(e, t) {
|
|
1302
|
-
const r = this.__href, i = r.split("/").pop() || "unknown", l = /^https?:\/\//i.test(r), c = /^#?\$PROJECT\//i.test(r);
|
|
1303
|
-
return /* @__PURE__ */ s(P, { width: "fit-content", display: "inline-block", children: /* @__PURE__ */ s(Ue, { fileName: i, onSelect: () => {
|
|
1304
|
-
if (l)
|
|
1305
|
-
window.open(r, "_blank", "noopener,noreferrer");
|
|
1306
|
-
else if (c) {
|
|
1307
|
-
const a = r.replace(/^#?\$PROJECT\//i, ""), _ = new CustomEvent("ui:open-project-file", {
|
|
1308
|
-
detail: a
|
|
1309
|
-
});
|
|
1310
|
-
window.dispatchEvent(_);
|
|
1311
|
-
} else
|
|
1312
|
-
window.location.assign(r);
|
|
1313
|
-
} }) });
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
function rt(n, e) {
|
|
1317
|
-
return new z(n, e);
|
|
1318
|
-
}
|
|
1319
|
-
function fr(n) {
|
|
1320
|
-
return n instanceof z;
|
|
1321
|
-
}
|
|
1322
|
-
const Ne = /\{\{\s*link\((['"])([^'"\s]+)\1\)\s*\}\}/, _r = {
|
|
1323
|
-
dependencies: [z],
|
|
1324
|
-
export: (n) => {
|
|
1325
|
-
if (fr(n)) {
|
|
1326
|
-
const e = n.__href, t = n.__label ?? e;
|
|
1327
|
-
return t ? `{{link('${t}')}}` : `{{link('${e}')}}`;
|
|
1328
|
-
}
|
|
1329
|
-
return null;
|
|
1330
|
-
},
|
|
1331
|
-
regExp: Ne,
|
|
1332
|
-
importRegExp: Ne,
|
|
1333
|
-
replace: (n, e) => {
|
|
1334
|
-
const t = e[2], o = /^(https?:\/\/|\/)/i.test(t) ? t : `#${t}`, i = t;
|
|
1335
|
-
n.replace(rt(o, i));
|
|
1336
|
-
},
|
|
1337
|
-
type: "text-match"
|
|
1338
|
-
}, ae = [...$e, ...Ve, ze, We, _r];
|
|
1339
|
-
function Gr(n) {
|
|
1340
|
-
const e = C(33), {
|
|
1341
|
-
debug: t,
|
|
1342
|
-
defaultState: r,
|
|
1343
|
-
fullWidth: o,
|
|
1344
|
-
isEditable: i,
|
|
1345
|
-
onChange: l
|
|
1346
|
-
} = n, c = t === void 0 ? !1 : t, a = r === void 0 ? "" : r, _ = o === void 0 ? !1 : o, m = i === void 0 ? !1 : i;
|
|
1347
|
-
let p;
|
|
1348
|
-
e[0] !== a ? (p = fn(a), e[0] = a, e[1] = p) : p = e[1];
|
|
1349
|
-
const {
|
|
1350
|
-
frontmatter: f,
|
|
1351
|
-
body: d
|
|
1352
|
-
} = p, u = m && !!l;
|
|
1353
|
-
let E;
|
|
1354
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = [ve, Ce, ue, j, we, Oe, ke, de, K, J, W, z], e[2] = E) : E = e[2];
|
|
1355
|
-
let g;
|
|
1356
|
-
e[3] !== d ? (g = () => Ie(d, ae, void 0, !1), e[3] = d, e[4] = g) : g = e[4];
|
|
1357
|
-
let h;
|
|
1358
|
-
e[5] !== m || e[6] !== g ? (h = {
|
|
1359
|
-
namespace: "RICH_MESSAGE",
|
|
1360
|
-
nodes: E,
|
|
1361
|
-
editorState: g,
|
|
1362
|
-
onError: hr,
|
|
1363
|
-
editable: m,
|
|
1364
|
-
theme: _e
|
|
1365
|
-
}, e[5] = m, e[6] = g, e[7] = h) : h = e[7];
|
|
1366
|
-
const R = h;
|
|
1367
|
-
let S;
|
|
1368
|
-
e[8] !== d ? (S = /* @__PURE__ */ s(mr, { value: d, onUpdate: pr }), e[8] = d, e[9] = S) : S = e[9];
|
|
1369
|
-
let T, b, N, y, x, k;
|
|
1370
|
-
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ s(Lt, {}), T = /* @__PURE__ */ s(wt, { newTab: !0 }), b = /* @__PURE__ */ s(Mt, {}), N = /* @__PURE__ */ s(Pt, {}), y = /* @__PURE__ */ s(dn, {}), x = /* @__PURE__ */ s(nn, {}), e[10] = T, e[11] = b, e[12] = N, e[13] = y, e[14] = x, e[15] = k) : (T = e[10], b = e[11], N = e[12], y = e[13], x = e[14], k = e[15]);
|
|
1371
|
-
let $;
|
|
1372
|
-
e[16] !== _ ? ($ = /* @__PURE__ */ s(He, { contentEditable: /* @__PURE__ */ s(Be, { fullWidth: _, isRichMessage: !0 }), ErrorBoundary: De }), e[16] = _, e[17] = $) : $ = e[17];
|
|
1373
|
-
let I;
|
|
1374
|
-
e[18] !== f || e[19] !== l || e[20] !== u ? (I = u ? /* @__PURE__ */ s(Fe, { ignoreSelectionChange: !0, ignoreHistoryMergeTagChange: !1, onChange: (F) => {
|
|
1375
|
-
F.read(() => {
|
|
1376
|
-
const H = Me(), q = ct(ae, H);
|
|
1377
|
-
l?.(f + q);
|
|
1378
|
-
});
|
|
1379
|
-
} }) : null, e[18] = f, e[19] = l, e[20] = u, e[21] = I) : I = e[21];
|
|
1380
|
-
let v;
|
|
1381
|
-
e[22] !== m ? (v = /* @__PURE__ */ s(Xe, { isEditable: m }), e[22] = m, e[23] = v) : v = e[23];
|
|
1382
|
-
let L;
|
|
1383
|
-
e[24] !== c ? (L = c && /* @__PURE__ */ s(Ge, {}), e[24] = c, e[25] = L) : L = e[25];
|
|
1384
|
-
let M;
|
|
1385
|
-
return e[26] !== R || e[27] !== $ || e[28] !== I || e[29] !== v || e[30] !== L || e[31] !== S ? (M = /* @__PURE__ */ s(ne, { className: "rich-text", "data-rich-message": "true", justifyContent: "space-between", width: "100%", maxWidth: "100%", height: "100%", position: "relative", direction: "column", overflow: "hidden", children: /* @__PURE__ */ A(Ae, { initialConfig: R, children: [
|
|
1386
|
-
S,
|
|
1387
|
-
k,
|
|
1388
|
-
T,
|
|
1389
|
-
b,
|
|
1390
|
-
N,
|
|
1391
|
-
y,
|
|
1392
|
-
x,
|
|
1393
|
-
$,
|
|
1394
|
-
I,
|
|
1395
|
-
v,
|
|
1396
|
-
L
|
|
1397
|
-
] }) }), e[26] = R, e[27] = $, e[28] = I, e[29] = v, e[30] = L, e[31] = S, e[32] = M) : M = e[32], M;
|
|
1398
|
-
}
|
|
1399
|
-
function pr(n) {
|
|
1400
|
-
Ie(n, ae, void 0, !1);
|
|
1401
|
-
}
|
|
1402
|
-
function hr(n) {
|
|
1403
|
-
return console.error(n);
|
|
1404
|
-
}
|
|
1405
|
-
export {
|
|
1406
|
-
Be as C,
|
|
1407
|
-
Yt as D,
|
|
1408
|
-
nn as E,
|
|
1409
|
-
dn as I,
|
|
1410
|
-
Xr as P,
|
|
1411
|
-
Gr as R,
|
|
1412
|
-
Xe as T,
|
|
1413
|
-
Wr as a,
|
|
1414
|
-
Kr as b,
|
|
1415
|
-
Ge as c,
|
|
1416
|
-
Qt as d,
|
|
1417
|
-
Vr as e,
|
|
1418
|
-
Ze as f,
|
|
1419
|
-
Jn as g,
|
|
1420
|
-
Ue as h,
|
|
1421
|
-
fn as s
|
|
1422
|
-
};
|
|
1423
|
-
//# sourceMappingURL=rich-message-Bad4GxH2.js.map
|