@fencyai/react 0.1.97 → 0.1.98
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/chat/ChatResponse.d.ts +2 -1
- package/dist/chat/Display.d.ts +2 -2
- package/dist/chat/EditableContent.d.ts +1 -1
- package/dist/chat/GhostWrapper.d.ts +1 -1
- package/dist/chat/hooks/useContentEditable.d.ts +1 -1
- package/dist/chat/hooks/useMentionRenderer.d.ts +1 -1
- package/dist/index.js +960 -963
- package/dist/types/StreamData.d.ts +8 -5
- package/dist/types/StreamingAgentTask.d.ts +2 -4
- package/dist/types/UseAgentTasksProps.d.ts +5 -5
- package/dist/types/UseStreamProps.d.ts +10 -10
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createAgentTask as Xg, createChatCompletion as fa, listMemories as Zg, listMemoryTypes as Qg, createStream as Jg } from "@fencyai/js";
|
|
2
|
-
import * as
|
|
3
|
-
import Ve, { createContext as ef, useContext as tf, useState as
|
|
2
|
+
import * as I from "react";
|
|
3
|
+
import Ve, { createContext as ef, useContext as tf, useState as J, useEffect as Ae, useCallback as ue, useMemo as Ft, useRef as Be, useLayoutEffect as ma } from "react";
|
|
4
4
|
import { z as nf } from "zod";
|
|
5
|
-
import { jsxs as
|
|
5
|
+
import { jsxs as Re, jsx as P, Fragment as Hn } from "react/jsx-runtime";
|
|
6
6
|
import './assets/index.css';const vd = ef(
|
|
7
7
|
void 0
|
|
8
8
|
);
|
|
@@ -13,8 +13,8 @@ function ft() {
|
|
|
13
13
|
return e;
|
|
14
14
|
}
|
|
15
15
|
function rf(e) {
|
|
16
|
-
const [t, n] =
|
|
17
|
-
return
|
|
16
|
+
const [t, n] = J(null);
|
|
17
|
+
return Ae(() => {
|
|
18
18
|
if (!t)
|
|
19
19
|
return;
|
|
20
20
|
const r = new EventSource(t);
|
|
@@ -66,7 +66,7 @@ const of = (e) => {
|
|
|
66
66
|
return ff(e);
|
|
67
67
|
case "WebsiteTextContentReady":
|
|
68
68
|
return mf(e);
|
|
69
|
-
case "
|
|
69
|
+
case "AgentTaskProgressItemUpdated":
|
|
70
70
|
return bf(e);
|
|
71
71
|
}
|
|
72
72
|
return null;
|
|
@@ -114,13 +114,16 @@ const of = (e) => {
|
|
|
114
114
|
textContent: e.textContent,
|
|
115
115
|
timestamp: e.timestamp
|
|
116
116
|
}), bf = (e) => ({
|
|
117
|
-
type: "
|
|
117
|
+
type: "AgentTaskProgressItemUpdated",
|
|
118
118
|
streamId: e.streamId,
|
|
119
119
|
agentTaskId: e.agentTaskId,
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
progressItemId: e.progressItemId,
|
|
121
|
+
description: e.description,
|
|
122
|
+
startedAt: e.startedAt,
|
|
123
|
+
completedAt: e.completedAt || void 0,
|
|
124
|
+
response: e.response
|
|
122
125
|
}), _d = (e) => {
|
|
123
|
-
const t = ft(), [n, r] =
|
|
126
|
+
const t = ft(), [n, r] = J(null), a = rf({
|
|
124
127
|
onError: (o) => {
|
|
125
128
|
var s;
|
|
126
129
|
console.error("Stream error:", o), (s = e == null ? void 0 : e.onStreamError) == null || s.call(e, {
|
|
@@ -155,8 +158,8 @@ const of = (e) => {
|
|
|
155
158
|
return (m = e == null ? void 0 : e.onWebsiteTextContentReady) == null || m.call(e, s), !0;
|
|
156
159
|
case "FileSearchIndexReady":
|
|
157
160
|
return (y = e == null ? void 0 : e.onFileSearchIndexReady) == null || y.call(e, s), !0;
|
|
158
|
-
case "
|
|
159
|
-
return (b = e == null ? void 0 : e.
|
|
161
|
+
case "AgentTaskProgressItemUpdated":
|
|
162
|
+
return (b = e == null ? void 0 : e.onAgentTaskProgressItemUpdated) == null || b.call(e, s), !0;
|
|
160
163
|
}
|
|
161
164
|
}
|
|
162
165
|
});
|
|
@@ -183,175 +186,163 @@ const of = (e) => {
|
|
|
183
186
|
stream: n
|
|
184
187
|
};
|
|
185
188
|
}, hf = (e) => {
|
|
186
|
-
const t = ft(), [n, r] =
|
|
189
|
+
const t = ft(), [n, r] = J([]), { createStream: a } = _d({
|
|
187
190
|
fetchClientSecret: e.fetchCreateStreamClientSecret,
|
|
188
|
-
|
|
189
|
-
var
|
|
190
|
-
(
|
|
191
|
+
onAgentTaskProgressItemUpdated: (s) => {
|
|
192
|
+
var l;
|
|
193
|
+
(l = e.onAgentTaskProgressItemUpdated) == null || l.call(e, s), r((u) => {
|
|
194
|
+
const p = u.find(
|
|
195
|
+
(d) => d.streamId === s.streamId
|
|
196
|
+
);
|
|
197
|
+
return p ? p.progressItems.map(
|
|
198
|
+
(d) => d.progressItemId
|
|
199
|
+
).includes(s.progressItemId) ? [
|
|
200
|
+
...u.filter((d) => d.streamId !== s.streamId),
|
|
201
|
+
{
|
|
202
|
+
...p,
|
|
203
|
+
progressItems: p.progressItems.map(
|
|
204
|
+
(d) => d.progressItemId === s.progressItemId ? s : d
|
|
205
|
+
)
|
|
206
|
+
}
|
|
207
|
+
] : [
|
|
208
|
+
...u.filter(
|
|
209
|
+
(d) => d.streamId !== s.streamId
|
|
210
|
+
),
|
|
211
|
+
{
|
|
212
|
+
...p,
|
|
213
|
+
progressItems: [
|
|
214
|
+
...p.progressItems,
|
|
215
|
+
s
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
] : u;
|
|
219
|
+
});
|
|
191
220
|
},
|
|
192
|
-
onStreamError: (
|
|
193
|
-
var
|
|
194
|
-
(
|
|
195
|
-
const
|
|
196
|
-
return
|
|
197
|
-
...
|
|
221
|
+
onStreamError: (s) => {
|
|
222
|
+
var l;
|
|
223
|
+
(l = e == null ? void 0 : e.onStreamError) == null || l.call(e, s), r((u) => {
|
|
224
|
+
const p = u.find((c) => c.streamId === s.streamId);
|
|
225
|
+
return p ? [
|
|
226
|
+
...u.filter((c) => c.streamId !== s.streamId),
|
|
198
227
|
{
|
|
199
|
-
...
|
|
228
|
+
...p,
|
|
200
229
|
loading: !1,
|
|
201
|
-
error:
|
|
230
|
+
error: s.error
|
|
202
231
|
}
|
|
203
|
-
] :
|
|
232
|
+
] : u;
|
|
204
233
|
});
|
|
205
234
|
},
|
|
206
|
-
onStreamNotFound: (
|
|
207
|
-
var
|
|
208
|
-
(
|
|
235
|
+
onStreamNotFound: (s) => {
|
|
236
|
+
var l;
|
|
237
|
+
(l = e == null ? void 0 : e.onStreamNotFound) == null || l.call(e, s);
|
|
209
238
|
},
|
|
210
|
-
onStreamTimeout: (
|
|
211
|
-
var
|
|
212
|
-
(
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
ge(() => {
|
|
216
|
-
r((c) => c.map((d) => a.includes(d.streamId) ? {
|
|
217
|
-
...d,
|
|
218
|
-
doneStreaming: !0,
|
|
219
|
-
loading: !1
|
|
220
|
-
} : d));
|
|
221
|
-
}, [a]), ge(() => {
|
|
222
|
-
const c = [];
|
|
223
|
-
for (const d of n) {
|
|
224
|
-
const g = o.filter((m) => m.streamId === d.streamId).sort((m, y) => m.timestamp.localeCompare(y.timestamp)), f = g.map((m) => m.content).join("");
|
|
225
|
-
c.push({
|
|
226
|
-
triggeredAt: d.triggeredAt,
|
|
227
|
-
data: d.data ? {
|
|
228
|
-
id: d.data.id,
|
|
229
|
-
createdAt: d.data.createdAt,
|
|
230
|
-
streamId: d.data.streamId
|
|
231
|
-
} : null,
|
|
232
|
-
streamId: d.streamId,
|
|
233
|
-
error: d.error,
|
|
234
|
-
prompt: d.prompt,
|
|
235
|
-
loading: d.loading,
|
|
236
|
-
doneStreaming: d.doneStreaming,
|
|
237
|
-
response: "",
|
|
238
|
-
reasoning: f,
|
|
239
|
-
chunks: g
|
|
240
|
-
});
|
|
239
|
+
onStreamTimeout: (s) => {
|
|
240
|
+
var l;
|
|
241
|
+
(l = e == null ? void 0 : e.onStreamTimeout) == null || l.call(e, s);
|
|
241
242
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
const d = await l();
|
|
248
|
-
if (d.type === "success") {
|
|
243
|
+
}), i = ue(
|
|
244
|
+
async (s) => {
|
|
245
|
+
var u;
|
|
246
|
+
const l = await a();
|
|
247
|
+
if (l.type === "success") {
|
|
249
248
|
r([
|
|
250
249
|
...n,
|
|
251
250
|
{
|
|
252
|
-
streamId:
|
|
251
|
+
streamId: l.stream.id,
|
|
253
252
|
triggeredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
254
253
|
data: null,
|
|
255
254
|
error: null,
|
|
256
|
-
prompt:
|
|
257
|
-
|
|
258
|
-
reasoning: "",
|
|
259
|
-
chunks: [],
|
|
255
|
+
prompt: s,
|
|
256
|
+
progressItems: [],
|
|
260
257
|
loading: !0,
|
|
261
258
|
doneStreaming: !1
|
|
262
259
|
}
|
|
263
260
|
]);
|
|
264
|
-
const
|
|
261
|
+
const p = await ((u = e == null ? void 0 : e.fetchCreateAgentTaskClientSecret) == null ? void 0 : u.call(e)), c = await Xg({
|
|
265
262
|
pk: t.fency.publishableKey,
|
|
266
263
|
baseUrl: t.fency.baseUrl,
|
|
267
|
-
clientSecret:
|
|
264
|
+
clientSecret: p == null ? void 0 : p.clientSecret,
|
|
268
265
|
request: {
|
|
269
|
-
streamId:
|
|
270
|
-
queryText:
|
|
266
|
+
streamId: l.stream.id,
|
|
267
|
+
queryText: s.queryText
|
|
271
268
|
}
|
|
272
269
|
});
|
|
273
|
-
if (
|
|
274
|
-
return r((
|
|
275
|
-
...
|
|
276
|
-
(
|
|
270
|
+
if (c.type === "success" && c.agentTask)
|
|
271
|
+
return r((d) => [
|
|
272
|
+
...d.filter(
|
|
273
|
+
(g) => g.streamId !== l.stream.id
|
|
277
274
|
),
|
|
278
275
|
{
|
|
279
|
-
streamId:
|
|
276
|
+
streamId: l.stream.id,
|
|
280
277
|
triggeredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
281
278
|
data: {
|
|
282
|
-
id:
|
|
283
|
-
createdAt:
|
|
284
|
-
streamId:
|
|
279
|
+
id: c.agentTask.id,
|
|
280
|
+
createdAt: c.agentTask.createdAt,
|
|
281
|
+
streamId: l.stream.id
|
|
285
282
|
},
|
|
286
283
|
error: null,
|
|
287
|
-
prompt:
|
|
288
|
-
|
|
289
|
-
reasoning: "",
|
|
290
|
-
chunks: [],
|
|
284
|
+
prompt: s,
|
|
285
|
+
progressItems: [],
|
|
291
286
|
doneStreaming: !1,
|
|
292
287
|
loading: !0
|
|
293
288
|
}
|
|
294
289
|
]), {
|
|
295
290
|
type: "success",
|
|
296
|
-
streamId:
|
|
297
|
-
agentTaskId:
|
|
291
|
+
streamId: l.stream.id,
|
|
292
|
+
agentTaskId: c.agentTask.id
|
|
298
293
|
};
|
|
299
|
-
if (
|
|
300
|
-
return r((
|
|
301
|
-
...
|
|
302
|
-
(
|
|
294
|
+
if (c.type === "error")
|
|
295
|
+
return r((d) => [
|
|
296
|
+
...d.filter(
|
|
297
|
+
(g) => g.streamId !== l.stream.id
|
|
303
298
|
),
|
|
304
299
|
{
|
|
305
300
|
triggeredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
306
|
-
streamId:
|
|
307
|
-
prompt:
|
|
308
|
-
error:
|
|
309
|
-
|
|
310
|
-
reasoning: "",
|
|
311
|
-
chunks: [],
|
|
301
|
+
streamId: l.stream.id,
|
|
302
|
+
prompt: s,
|
|
303
|
+
error: c.error,
|
|
304
|
+
progressItems: [],
|
|
312
305
|
loading: !1,
|
|
313
306
|
doneStreaming: !1,
|
|
314
307
|
data: null
|
|
315
308
|
}
|
|
316
309
|
]), {
|
|
317
310
|
type: "error",
|
|
318
|
-
error:
|
|
311
|
+
error: c.error
|
|
319
312
|
};
|
|
320
313
|
{
|
|
321
|
-
const
|
|
314
|
+
const d = {
|
|
322
315
|
message: "No response received",
|
|
323
316
|
code: "UnknownError"
|
|
324
317
|
};
|
|
325
|
-
return r((
|
|
326
|
-
...
|
|
327
|
-
(
|
|
318
|
+
return r((g) => [
|
|
319
|
+
...g.filter(
|
|
320
|
+
(f) => f.streamId !== l.stream.id
|
|
328
321
|
),
|
|
329
322
|
{
|
|
330
323
|
triggeredAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
331
|
-
streamId:
|
|
332
|
-
error:
|
|
333
|
-
prompt:
|
|
334
|
-
|
|
335
|
-
reasoning: "",
|
|
336
|
-
chunks: [],
|
|
324
|
+
streamId: l.stream.id,
|
|
325
|
+
error: d,
|
|
326
|
+
prompt: s,
|
|
327
|
+
progressItems: [],
|
|
337
328
|
loading: !1,
|
|
338
329
|
doneStreaming: !1,
|
|
339
330
|
data: null
|
|
340
331
|
}
|
|
341
332
|
]), {
|
|
342
333
|
type: "error",
|
|
343
|
-
error:
|
|
334
|
+
error: d
|
|
344
335
|
};
|
|
345
336
|
}
|
|
346
337
|
} else
|
|
347
|
-
return console.error(
|
|
338
|
+
return console.error(l.error), l;
|
|
348
339
|
},
|
|
349
|
-
[t, n,
|
|
350
|
-
),
|
|
340
|
+
[t, n, a]
|
|
341
|
+
), o = Ft(() => n.sort((s, l) => new Date(l.triggeredAt).getTime() - new Date(s.triggeredAt).getTime())[0], [n]);
|
|
351
342
|
return {
|
|
352
343
|
agentTasks: n,
|
|
353
|
-
createAgentTask:
|
|
354
|
-
latest:
|
|
344
|
+
createAgentTask: i,
|
|
345
|
+
latest: o
|
|
355
346
|
};
|
|
356
347
|
}, ba = (e, t, n, r) => {
|
|
357
348
|
if (e)
|
|
@@ -475,7 +466,7 @@ const of = (e) => {
|
|
|
475
466
|
return !0;
|
|
476
467
|
}
|
|
477
468
|
}, Kv = () => {
|
|
478
|
-
const e = ft(), [t, n] =
|
|
469
|
+
const e = ft(), [t, n] = J([]), r = ue(
|
|
479
470
|
async (i) => {
|
|
480
471
|
const o = (/* @__PURE__ */ new Date()).toISOString();
|
|
481
472
|
n((u) => [
|
|
@@ -555,10 +546,10 @@ const of = (e) => {
|
|
|
555
546
|
latest: a
|
|
556
547
|
};
|
|
557
548
|
};
|
|
558
|
-
function
|
|
559
|
-
const [n, r] =
|
|
549
|
+
function Id(e, t) {
|
|
550
|
+
const [n, r] = J(
|
|
560
551
|
null
|
|
561
|
-
), [a, i] =
|
|
552
|
+
), [a, i] = J(
|
|
562
553
|
null
|
|
563
554
|
), o = ft(), s = async (c) => {
|
|
564
555
|
const d = await c.fetchClientSecret(), { fetchClientSecret: g, nextPageToken: f, previousPageToken: m, ...y } = c, b = await e({
|
|
@@ -676,7 +667,7 @@ function Tf() {
|
|
|
676
667
|
fetchPreviousPage: a,
|
|
677
668
|
refetchCurrentPage: i,
|
|
678
669
|
currentPage: o
|
|
679
|
-
} =
|
|
670
|
+
} = Id(t);
|
|
680
671
|
return {
|
|
681
672
|
listFirstPage: n,
|
|
682
673
|
listNextPage: r,
|
|
@@ -696,7 +687,7 @@ function kf() {
|
|
|
696
687
|
fetchPreviousPage: a,
|
|
697
688
|
refetchCurrentPage: i,
|
|
698
689
|
currentPage: o
|
|
699
|
-
} =
|
|
690
|
+
} = Id(t);
|
|
700
691
|
return {
|
|
701
692
|
listFirstPage: n,
|
|
702
693
|
listNextPage: r,
|
|
@@ -706,7 +697,7 @@ function kf() {
|
|
|
706
697
|
};
|
|
707
698
|
}
|
|
708
699
|
const Xv = (e) => {
|
|
709
|
-
const t = ft(), [n, r] =
|
|
700
|
+
const t = ft(), [n, r] = J([]), [a, i] = J([]), [o, s] = J([]), { createStream: l } = _d({
|
|
710
701
|
fetchClientSecret: e == null ? void 0 : e.fetchCreateStreamClientSecret,
|
|
711
702
|
onNewChatCompletionStreamChunk: (c) => {
|
|
712
703
|
var d;
|
|
@@ -739,13 +730,13 @@ const Xv = (e) => {
|
|
|
739
730
|
(d = e == null ? void 0 : e.onStreamTimeout) == null || d.call(e, c);
|
|
740
731
|
}
|
|
741
732
|
});
|
|
742
|
-
|
|
733
|
+
Ae(() => {
|
|
743
734
|
r((c) => c.map((d) => a.includes(d.streamId) ? {
|
|
744
735
|
...d,
|
|
745
736
|
doneStreaming: !0,
|
|
746
737
|
loading: !1
|
|
747
738
|
} : d));
|
|
748
|
-
}, [a]),
|
|
739
|
+
}, [a]), Ae(() => {
|
|
749
740
|
const c = [];
|
|
750
741
|
for (const d of n) {
|
|
751
742
|
const g = o.filter((m) => m.streamId === d.streamId).sort((m, y) => m.timestamp.localeCompare(y.timestamp)), f = g.map((m) => m.content).join("");
|
|
@@ -879,7 +870,7 @@ const Xv = (e) => {
|
|
|
879
870
|
latest: p
|
|
880
871
|
};
|
|
881
872
|
}, Zv = () => {
|
|
882
|
-
const e = ft(), [t, n] =
|
|
873
|
+
const e = ft(), [t, n] = J([]), r = ue(
|
|
883
874
|
async (i) => {
|
|
884
875
|
const o = (/* @__PURE__ */ new Date()).toISOString();
|
|
885
876
|
n((d) => [
|
|
@@ -1001,9 +992,9 @@ function vf(e, t) {
|
|
|
1001
992
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
|
1002
993
|
).trim();
|
|
1003
994
|
}
|
|
1004
|
-
const _f = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,
|
|
995
|
+
const _f = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, If = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Rf = {};
|
|
1005
996
|
function Ku(e, t) {
|
|
1006
|
-
return (
|
|
997
|
+
return (Rf.jsx ? If : _f).test(e);
|
|
1007
998
|
}
|
|
1008
999
|
const Nf = /[ \t\n\f\r]/g;
|
|
1009
1000
|
function Cf(e) {
|
|
@@ -1030,7 +1021,7 @@ class fn {
|
|
|
1030
1021
|
fn.prototype.normal = {};
|
|
1031
1022
|
fn.prototype.property = {};
|
|
1032
1023
|
fn.prototype.space = void 0;
|
|
1033
|
-
function
|
|
1024
|
+
function Rd(e, t) {
|
|
1034
1025
|
const n = {}, r = {};
|
|
1035
1026
|
for (const a of e)
|
|
1036
1027
|
Object.assign(n, a.property), Object.assign(r, a.normal);
|
|
@@ -1039,7 +1030,7 @@ function Id(e, t) {
|
|
|
1039
1030
|
function on(e) {
|
|
1040
1031
|
return e.toLowerCase();
|
|
1041
1032
|
}
|
|
1042
|
-
class
|
|
1033
|
+
class Ne {
|
|
1043
1034
|
/**
|
|
1044
1035
|
* @param {string} property
|
|
1045
1036
|
* Property.
|
|
@@ -1052,20 +1043,20 @@ class Ie {
|
|
|
1052
1043
|
this.attribute = n, this.property = t;
|
|
1053
1044
|
}
|
|
1054
1045
|
}
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1046
|
+
Ne.prototype.attribute = "";
|
|
1047
|
+
Ne.prototype.booleanish = !1;
|
|
1048
|
+
Ne.prototype.boolean = !1;
|
|
1049
|
+
Ne.prototype.commaOrSpaceSeparated = !1;
|
|
1050
|
+
Ne.prototype.commaSeparated = !1;
|
|
1051
|
+
Ne.prototype.defined = !1;
|
|
1052
|
+
Ne.prototype.mustUseProperty = !1;
|
|
1053
|
+
Ne.prototype.number = !1;
|
|
1054
|
+
Ne.prototype.overloadedBoolean = !1;
|
|
1055
|
+
Ne.prototype.property = "";
|
|
1056
|
+
Ne.prototype.spaceSeparated = !1;
|
|
1057
|
+
Ne.prototype.space = void 0;
|
|
1067
1058
|
let xf = 0;
|
|
1068
|
-
const q = kt(), le = kt(), Wr = kt(), D = kt(), ie = kt(), Lt = kt(),
|
|
1059
|
+
const q = kt(), le = kt(), Wr = kt(), D = kt(), ie = kt(), Lt = kt(), Oe = kt();
|
|
1069
1060
|
function kt() {
|
|
1070
1061
|
return 2 ** ++xf;
|
|
1071
1062
|
}
|
|
@@ -1073,7 +1064,7 @@ const qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1073
1064
|
__proto__: null,
|
|
1074
1065
|
boolean: q,
|
|
1075
1066
|
booleanish: le,
|
|
1076
|
-
commaOrSpaceSeparated:
|
|
1067
|
+
commaOrSpaceSeparated: Oe,
|
|
1077
1068
|
commaSeparated: Lt,
|
|
1078
1069
|
number: D,
|
|
1079
1070
|
overloadedBoolean: Wr,
|
|
@@ -1082,7 +1073,7 @@ const qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1082
1073
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
1083
1074
|
Object.keys(qr)
|
|
1084
1075
|
);
|
|
1085
|
-
class ha extends
|
|
1076
|
+
class ha extends Ne {
|
|
1086
1077
|
/**
|
|
1087
1078
|
* @constructor
|
|
1088
1079
|
* @param {string} property
|
|
@@ -1722,7 +1713,7 @@ const Of = zt({
|
|
|
1722
1713
|
timelineBegin: "timelinebegin"
|
|
1723
1714
|
},
|
|
1724
1715
|
properties: {
|
|
1725
|
-
about:
|
|
1716
|
+
about: Oe,
|
|
1726
1717
|
accentHeight: D,
|
|
1727
1718
|
accumulate: null,
|
|
1728
1719
|
additive: null,
|
|
@@ -1834,7 +1825,7 @@ const Of = zt({
|
|
|
1834
1825
|
k2: D,
|
|
1835
1826
|
k3: D,
|
|
1836
1827
|
k4: D,
|
|
1837
|
-
kernelMatrix:
|
|
1828
|
+
kernelMatrix: Oe,
|
|
1838
1829
|
kernelUnitLength: null,
|
|
1839
1830
|
keyPoints: null,
|
|
1840
1831
|
// SEMI_COLON_SEPARATED
|
|
@@ -1991,21 +1982,21 @@ const Of = zt({
|
|
|
1991
1982
|
preserveAspectRatio: null,
|
|
1992
1983
|
primitiveUnits: null,
|
|
1993
1984
|
propagate: null,
|
|
1994
|
-
property:
|
|
1985
|
+
property: Oe,
|
|
1995
1986
|
r: null,
|
|
1996
1987
|
radius: null,
|
|
1997
1988
|
referrerPolicy: null,
|
|
1998
1989
|
refX: null,
|
|
1999
1990
|
refY: null,
|
|
2000
|
-
rel:
|
|
2001
|
-
rev:
|
|
1991
|
+
rel: Oe,
|
|
1992
|
+
rev: Oe,
|
|
2002
1993
|
renderingIntent: null,
|
|
2003
1994
|
repeatCount: null,
|
|
2004
1995
|
repeatDur: null,
|
|
2005
|
-
requiredExtensions:
|
|
2006
|
-
requiredFeatures:
|
|
2007
|
-
requiredFonts:
|
|
2008
|
-
requiredFormats:
|
|
1996
|
+
requiredExtensions: Oe,
|
|
1997
|
+
requiredFeatures: Oe,
|
|
1998
|
+
requiredFonts: Oe,
|
|
1999
|
+
requiredFormats: Oe,
|
|
2009
2000
|
resource: null,
|
|
2010
2001
|
restart: null,
|
|
2011
2002
|
result: null,
|
|
@@ -2033,7 +2024,7 @@ const Of = zt({
|
|
|
2033
2024
|
strikethroughThickness: D,
|
|
2034
2025
|
string: null,
|
|
2035
2026
|
stroke: null,
|
|
2036
|
-
strokeDashArray:
|
|
2027
|
+
strokeDashArray: Oe,
|
|
2037
2028
|
strokeDashOffset: null,
|
|
2038
2029
|
strokeLineCap: null,
|
|
2039
2030
|
strokeLineJoin: null,
|
|
@@ -2047,7 +2038,7 @@ const Of = zt({
|
|
|
2047
2038
|
syncMaster: null,
|
|
2048
2039
|
syncTolerance: null,
|
|
2049
2040
|
syncToleranceDefault: null,
|
|
2050
|
-
systemLanguage:
|
|
2041
|
+
systemLanguage: Oe,
|
|
2051
2042
|
tabIndex: D,
|
|
2052
2043
|
tableValues: null,
|
|
2053
2044
|
target: null,
|
|
@@ -2061,7 +2052,7 @@ const Of = zt({
|
|
|
2061
2052
|
title: null,
|
|
2062
2053
|
transformBehavior: null,
|
|
2063
2054
|
type: null,
|
|
2064
|
-
typeOf:
|
|
2055
|
+
typeOf: Oe,
|
|
2065
2056
|
to: null,
|
|
2066
2057
|
transform: null,
|
|
2067
2058
|
transformOrigin: null,
|
|
@@ -2150,7 +2141,7 @@ const Of = zt({
|
|
|
2150
2141
|
}, Mf = /[A-Z]/g, Qu = /-[a-z]/g, Ff = /^data[-\w.:]+$/i;
|
|
2151
2142
|
function Md(e, t) {
|
|
2152
2143
|
const n = on(t);
|
|
2153
|
-
let r = t, a =
|
|
2144
|
+
let r = t, a = Ne;
|
|
2154
2145
|
if (n in e.normal)
|
|
2155
2146
|
return e.property[e.normal[n]];
|
|
2156
2147
|
if (n.length > 4 && n.slice(0, 4) === "data" && Ff.test(t)) {
|
|
@@ -2174,7 +2165,7 @@ function Pf(e) {
|
|
|
2174
2165
|
function Uf(e) {
|
|
2175
2166
|
return e.charAt(1).toUpperCase();
|
|
2176
2167
|
}
|
|
2177
|
-
const Fd =
|
|
2168
|
+
const Fd = Rd([Nd, Of, Od, Ld, Dd], "html"), Jn = Rd([Nd, Lf, Od, Ld, Dd], "svg");
|
|
2178
2169
|
function Ju(e) {
|
|
2179
2170
|
const t = String(e || "").trim();
|
|
2180
2171
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
@@ -2342,7 +2333,7 @@ function ic(e) {
|
|
|
2342
2333
|
function oc(e) {
|
|
2343
2334
|
return e && typeof e == "number" ? e : 1;
|
|
2344
2335
|
}
|
|
2345
|
-
class
|
|
2336
|
+
class ye extends Error {
|
|
2346
2337
|
/**
|
|
2347
2338
|
* Create a message for `reason`.
|
|
2348
2339
|
*
|
|
@@ -2416,19 +2407,19 @@ class Ee extends Error {
|
|
|
2416
2407
|
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = s ? s.column : void 0, this.fatal = void 0, this.file = "", this.message = a, this.line = s ? s.line : void 0, this.name = tn(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = o && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual = void 0, this.expected = void 0, this.note = void 0, this.url = void 0;
|
|
2417
2408
|
}
|
|
2418
2409
|
}
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2410
|
+
ye.prototype.file = "";
|
|
2411
|
+
ye.prototype.name = "";
|
|
2412
|
+
ye.prototype.reason = "";
|
|
2413
|
+
ye.prototype.message = "";
|
|
2414
|
+
ye.prototype.stack = "";
|
|
2415
|
+
ye.prototype.column = void 0;
|
|
2416
|
+
ye.prototype.line = void 0;
|
|
2417
|
+
ye.prototype.ancestors = void 0;
|
|
2418
|
+
ye.prototype.cause = void 0;
|
|
2419
|
+
ye.prototype.fatal = void 0;
|
|
2420
|
+
ye.prototype.place = void 0;
|
|
2421
|
+
ye.prototype.ruleId = void 0;
|
|
2422
|
+
ye.prototype.source = void 0;
|
|
2432
2423
|
const wa = {}.hasOwnProperty, mm = /* @__PURE__ */ new Map(), bm = /[A-Z]/g, hm = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), ym = /* @__PURE__ */ new Set(["td", "th"]), Bd = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
|
|
2433
2424
|
function Em(e, t) {
|
|
2434
2425
|
if (!t || t.Fragment === void 0)
|
|
@@ -2440,7 +2431,7 @@ function Em(e, t) {
|
|
|
2440
2431
|
throw new TypeError(
|
|
2441
2432
|
"Expected `jsxDEV` in options when `development: true`"
|
|
2442
2433
|
);
|
|
2443
|
-
r =
|
|
2434
|
+
r = Im(n, t.jsxDEV);
|
|
2444
2435
|
} else {
|
|
2445
2436
|
if (typeof t.jsx != "function")
|
|
2446
2437
|
throw new TypeError("Expected `jsx` in production options");
|
|
@@ -2488,7 +2479,7 @@ function Sm(e, t, n) {
|
|
|
2488
2479
|
const r = e.schema;
|
|
2489
2480
|
let a = r;
|
|
2490
2481
|
t.tagName.toLowerCase() === "svg" && r.space === "html" && (a = Jn, e.schema = a), e.ancestors.push(t);
|
|
2491
|
-
const i = Gd(e, t.tagName, !1), o =
|
|
2482
|
+
const i = Gd(e, t.tagName, !1), o = Rm(e, t);
|
|
2492
2483
|
let s = Ta(e, t);
|
|
2493
2484
|
return hm.has(t.tagName) && (s = s.filter(function(l) {
|
|
2494
2485
|
return typeof l == "string" ? !Cf(l) : !0;
|
|
@@ -2540,7 +2531,7 @@ function _m(e, t, n) {
|
|
|
2540
2531
|
return s ? u(i, o, s) : u(i, o);
|
|
2541
2532
|
}
|
|
2542
2533
|
}
|
|
2543
|
-
function
|
|
2534
|
+
function Im(e, t) {
|
|
2544
2535
|
return n;
|
|
2545
2536
|
function n(r, a, i, o) {
|
|
2546
2537
|
const s = Array.isArray(i.children), l = Sa(r);
|
|
@@ -2558,7 +2549,7 @@ function Rm(e, t) {
|
|
|
2558
2549
|
);
|
|
2559
2550
|
}
|
|
2560
2551
|
}
|
|
2561
|
-
function
|
|
2552
|
+
function Rm(e, t) {
|
|
2562
2553
|
const n = {};
|
|
2563
2554
|
let r, a;
|
|
2564
2555
|
for (a in t.properties)
|
|
@@ -2651,7 +2642,7 @@ function xm(e, t) {
|
|
|
2651
2642
|
const r = (
|
|
2652
2643
|
/** @type {Error} */
|
|
2653
2644
|
n
|
|
2654
|
-
), a = new
|
|
2645
|
+
), a = new ye("Cannot parse `style` attribute", {
|
|
2655
2646
|
ancestors: e.ancestors,
|
|
2656
2647
|
cause: r,
|
|
2657
2648
|
ruleId: "style",
|
|
@@ -2692,7 +2683,7 @@ function Gd(e, t, n) {
|
|
|
2692
2683
|
sn(e);
|
|
2693
2684
|
}
|
|
2694
2685
|
function sn(e, t) {
|
|
2695
|
-
const n = new
|
|
2686
|
+
const n = new ye(
|
|
2696
2687
|
"Cannot handle MDX estrees without `createEvaluater`",
|
|
2697
2688
|
{
|
|
2698
2689
|
ancestors: e.ancestors,
|
|
@@ -2836,7 +2827,7 @@ function Vd(e, t) {
|
|
|
2836
2827
|
function $e(e) {
|
|
2837
2828
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
2838
2829
|
}
|
|
2839
|
-
const Te = mt(/[A-Za-z]/),
|
|
2830
|
+
const Te = mt(/[A-Za-z]/), he = mt(/[\dA-Za-z]/), Bm = mt(/[#-'*+\--9=?A-Z^-~]/);
|
|
2840
2831
|
function Vn(e) {
|
|
2841
2832
|
return (
|
|
2842
2833
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -2867,7 +2858,7 @@ function Gt(e) {
|
|
|
2867
2858
|
for (; ++n < e.length; ) {
|
|
2868
2859
|
const i = e.charCodeAt(n);
|
|
2869
2860
|
let o = "";
|
|
2870
|
-
if (i === 37 &&
|
|
2861
|
+
if (i === 37 && he(e.charCodeAt(n + 1)) && he(e.charCodeAt(n + 2)))
|
|
2871
2862
|
a = 2;
|
|
2872
2863
|
else if (i < 128)
|
|
2873
2864
|
/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i)) || (o = String.fromCharCode(i));
|
|
@@ -2880,7 +2871,7 @@ function Gt(e) {
|
|
|
2880
2871
|
}
|
|
2881
2872
|
return t.join("") + e.slice(r);
|
|
2882
2873
|
}
|
|
2883
|
-
function
|
|
2874
|
+
function Q(e, t, n, r) {
|
|
2884
2875
|
const a = r ? r - 1 : Number.POSITIVE_INFINITY;
|
|
2885
2876
|
let i = 0;
|
|
2886
2877
|
return o;
|
|
@@ -2903,7 +2894,7 @@ function Hm(e) {
|
|
|
2903
2894
|
e.consume(s);
|
|
2904
2895
|
return;
|
|
2905
2896
|
}
|
|
2906
|
-
return e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"),
|
|
2897
|
+
return e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), Q(e, t, "linePrefix");
|
|
2907
2898
|
}
|
|
2908
2899
|
function a(s) {
|
|
2909
2900
|
return e.enter("paragraph"), i(s);
|
|
@@ -2943,19 +2934,19 @@ function Vm(e) {
|
|
|
2943
2934
|
if (r++, t.containerState._closeFlow) {
|
|
2944
2935
|
t.containerState._closeFlow = void 0, a && S();
|
|
2945
2936
|
const v = t.events.length;
|
|
2946
|
-
let _ = v,
|
|
2937
|
+
let _ = v, T;
|
|
2947
2938
|
for (; _--; )
|
|
2948
2939
|
if (t.events[_][0] === "exit" && t.events[_][1].type === "chunkFlow") {
|
|
2949
|
-
|
|
2940
|
+
T = t.events[_][1].end;
|
|
2950
2941
|
break;
|
|
2951
2942
|
}
|
|
2952
2943
|
b(r);
|
|
2953
|
-
let
|
|
2954
|
-
for (;
|
|
2955
|
-
t.events[
|
|
2956
|
-
...
|
|
2957
|
-
},
|
|
2958
|
-
return De(t.events, _ + 1, 0, t.events.slice(v)), t.events.length =
|
|
2944
|
+
let R = v;
|
|
2945
|
+
for (; R < t.events.length; )
|
|
2946
|
+
t.events[R][1].end = {
|
|
2947
|
+
...T
|
|
2948
|
+
}, R++;
|
|
2949
|
+
return De(t.events, _ + 1, 0, t.events.slice(v)), t.events.length = R, u(w);
|
|
2959
2950
|
}
|
|
2960
2951
|
return s(w);
|
|
2961
2952
|
}
|
|
@@ -3002,17 +2993,17 @@ function Vm(e) {
|
|
|
3002
2993
|
function y(w, v) {
|
|
3003
2994
|
const _ = t.sliceStream(w);
|
|
3004
2995
|
if (v && _.push(null), w.previous = i, i && (i.next = w), i = w, a.defineSkip(w.start), a.write(_), t.parser.lazy[w.start.line]) {
|
|
3005
|
-
let
|
|
3006
|
-
for (;
|
|
2996
|
+
let T = a.events.length;
|
|
2997
|
+
for (; T--; )
|
|
3007
2998
|
if (
|
|
3008
2999
|
// The token starts before the line ending…
|
|
3009
|
-
a.events[
|
|
3010
|
-
(!a.events[
|
|
3011
|
-
a.events[
|
|
3000
|
+
a.events[T][1].start.offset < o && // …and either is not ended yet…
|
|
3001
|
+
(!a.events[T][1].end || // …or ends after it.
|
|
3002
|
+
a.events[T][1].end.offset > o)
|
|
3012
3003
|
)
|
|
3013
3004
|
return;
|
|
3014
|
-
const
|
|
3015
|
-
let O =
|
|
3005
|
+
const R = t.events.length;
|
|
3006
|
+
let O = R, M, k;
|
|
3016
3007
|
for (; O--; )
|
|
3017
3008
|
if (t.events[O][0] === "exit" && t.events[O][1].type === "chunkFlow") {
|
|
3018
3009
|
if (M) {
|
|
@@ -3021,11 +3012,11 @@ function Vm(e) {
|
|
|
3021
3012
|
}
|
|
3022
3013
|
M = !0;
|
|
3023
3014
|
}
|
|
3024
|
-
for (b(r),
|
|
3025
|
-
t.events[
|
|
3015
|
+
for (b(r), T = R; T < t.events.length; )
|
|
3016
|
+
t.events[T][1].end = {
|
|
3026
3017
|
...k
|
|
3027
|
-
},
|
|
3028
|
-
De(t.events, O + 1, 0, t.events.slice(
|
|
3018
|
+
}, T++;
|
|
3019
|
+
De(t.events, O + 1, 0, t.events.slice(R)), t.events.length = T;
|
|
3029
3020
|
}
|
|
3030
3021
|
}
|
|
3031
3022
|
function b(w) {
|
|
@@ -3041,7 +3032,7 @@ function Vm(e) {
|
|
|
3041
3032
|
}
|
|
3042
3033
|
}
|
|
3043
3034
|
function Wm(e, t, n) {
|
|
3044
|
-
return
|
|
3035
|
+
return Q(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
3045
3036
|
}
|
|
3046
3037
|
function Pt(e) {
|
|
3047
3038
|
if (e === null || ae(e) || At(e))
|
|
@@ -3149,10 +3140,10 @@ function Xm(e, t, n) {
|
|
|
3149
3140
|
return Te(g) ? (e.consume(g), o) : g === 64 ? n(g) : u(g);
|
|
3150
3141
|
}
|
|
3151
3142
|
function o(g) {
|
|
3152
|
-
return g === 43 || g === 45 || g === 46 ||
|
|
3143
|
+
return g === 43 || g === 45 || g === 46 || he(g) ? (r = 1, s(g)) : u(g);
|
|
3153
3144
|
}
|
|
3154
3145
|
function s(g) {
|
|
3155
|
-
return g === 58 ? (e.consume(g), r = 0, l) : (g === 43 || g === 45 || g === 46 ||
|
|
3146
|
+
return g === 58 ? (e.consume(g), r = 0, l) : (g === 43 || g === 45 || g === 46 || he(g)) && r++ < 32 ? (e.consume(g), s) : (r = 0, u(g));
|
|
3156
3147
|
}
|
|
3157
3148
|
function l(g) {
|
|
3158
3149
|
return g === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(g), e.exit("autolinkMarker"), e.exit("autolink"), t) : g === null || g === 32 || g === 60 || Vn(g) ? n(g) : (e.consume(g), l);
|
|
@@ -3161,13 +3152,13 @@ function Xm(e, t, n) {
|
|
|
3161
3152
|
return g === 64 ? (e.consume(g), p) : Bm(g) ? (e.consume(g), u) : n(g);
|
|
3162
3153
|
}
|
|
3163
3154
|
function p(g) {
|
|
3164
|
-
return
|
|
3155
|
+
return he(g) ? c(g) : n(g);
|
|
3165
3156
|
}
|
|
3166
3157
|
function c(g) {
|
|
3167
3158
|
return g === 46 ? (e.consume(g), r = 0, p) : g === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(g), e.exit("autolinkMarker"), e.exit("autolink"), t) : d(g);
|
|
3168
3159
|
}
|
|
3169
3160
|
function d(g) {
|
|
3170
|
-
if ((g === 45 ||
|
|
3161
|
+
if ((g === 45 || he(g)) && r++ < 63) {
|
|
3171
3162
|
const f = g === 45 ? d : c;
|
|
3172
3163
|
return e.consume(g), f;
|
|
3173
3164
|
}
|
|
@@ -3181,7 +3172,7 @@ const mn = {
|
|
|
3181
3172
|
function Zm(e, t, n) {
|
|
3182
3173
|
return r;
|
|
3183
3174
|
function r(i) {
|
|
3184
|
-
return Y(i) ?
|
|
3175
|
+
return Y(i) ? Q(e, a, "linePrefix")(i) : a(i);
|
|
3185
3176
|
}
|
|
3186
3177
|
function a(i) {
|
|
3187
3178
|
return i === null || G(i) ? t(i) : n(i);
|
|
@@ -3215,7 +3206,7 @@ function Jm(e, t, n) {
|
|
|
3215
3206
|
const r = this;
|
|
3216
3207
|
return a;
|
|
3217
3208
|
function a(o) {
|
|
3218
|
-
return Y(o) ?
|
|
3209
|
+
return Y(o) ? Q(e, i, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(o) : i(o);
|
|
3219
3210
|
}
|
|
3220
3211
|
function i(o) {
|
|
3221
3212
|
return e.attempt(Wd, t, n)(o);
|
|
@@ -3249,7 +3240,7 @@ function nb(e, t, n) {
|
|
|
3249
3240
|
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(c), e.exit("characterReferenceMarker"), l;
|
|
3250
3241
|
}
|
|
3251
3242
|
function l(c) {
|
|
3252
|
-
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), i = 31, o =
|
|
3243
|
+
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), i = 31, o = he, p(c));
|
|
3253
3244
|
}
|
|
3254
3245
|
function u(c) {
|
|
3255
3246
|
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), i = 6, o = $m, p) : (e.enter("characterReferenceValue"), i = 7, o = Xr, p(c));
|
|
@@ -3257,7 +3248,7 @@ function nb(e, t, n) {
|
|
|
3257
3248
|
function p(c) {
|
|
3258
3249
|
if (c === 59 && a) {
|
|
3259
3250
|
const d = e.exit("characterReferenceValue");
|
|
3260
|
-
return o ===
|
|
3251
|
+
return o === he && !ln(r.sliceSerialize(d)) ? n(c) : (e.enter("characterReferenceMarker"), e.consume(c), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
3261
3252
|
}
|
|
3262
3253
|
return o(c) && a++ < i ? (e.consume(c), p) : n(c);
|
|
3263
3254
|
}
|
|
@@ -3277,67 +3268,67 @@ function rb(e, t, n) {
|
|
|
3277
3268
|
};
|
|
3278
3269
|
let i = 0, o = 0, s;
|
|
3279
3270
|
return l;
|
|
3280
|
-
function l(
|
|
3281
|
-
return u(
|
|
3271
|
+
function l(T) {
|
|
3272
|
+
return u(T);
|
|
3282
3273
|
}
|
|
3283
|
-
function u(
|
|
3284
|
-
const
|
|
3285
|
-
return i =
|
|
3274
|
+
function u(T) {
|
|
3275
|
+
const R = r.events[r.events.length - 1];
|
|
3276
|
+
return i = R && R[1].type === "linePrefix" ? R[2].sliceSerialize(R[1], !0).length : 0, s = T, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), p(T);
|
|
3286
3277
|
}
|
|
3287
|
-
function p(
|
|
3288
|
-
return
|
|
3278
|
+
function p(T) {
|
|
3279
|
+
return T === s ? (o++, e.consume(T), p) : o < 3 ? n(T) : (e.exit("codeFencedFenceSequence"), Y(T) ? Q(e, c, "whitespace")(T) : c(T));
|
|
3289
3280
|
}
|
|
3290
|
-
function c(
|
|
3291
|
-
return
|
|
3281
|
+
function c(T) {
|
|
3282
|
+
return T === null || G(T) ? (e.exit("codeFencedFence"), r.interrupt ? t(T) : e.check(pc, m, v)(T)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
3292
3283
|
contentType: "string"
|
|
3293
|
-
}), d(
|
|
3284
|
+
}), d(T));
|
|
3294
3285
|
}
|
|
3295
|
-
function d(
|
|
3296
|
-
return
|
|
3286
|
+
function d(T) {
|
|
3287
|
+
return T === null || G(T) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), c(T)) : Y(T) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Q(e, g, "whitespace")(T)) : T === 96 && T === s ? n(T) : (e.consume(T), d);
|
|
3297
3288
|
}
|
|
3298
|
-
function g(
|
|
3299
|
-
return
|
|
3289
|
+
function g(T) {
|
|
3290
|
+
return T === null || G(T) ? c(T) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
3300
3291
|
contentType: "string"
|
|
3301
|
-
}), f(
|
|
3292
|
+
}), f(T));
|
|
3302
3293
|
}
|
|
3303
|
-
function f(
|
|
3304
|
-
return
|
|
3294
|
+
function f(T) {
|
|
3295
|
+
return T === null || G(T) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), c(T)) : T === 96 && T === s ? n(T) : (e.consume(T), f);
|
|
3305
3296
|
}
|
|
3306
|
-
function m(
|
|
3307
|
-
return e.attempt(a, v, y)(
|
|
3297
|
+
function m(T) {
|
|
3298
|
+
return e.attempt(a, v, y)(T);
|
|
3308
3299
|
}
|
|
3309
|
-
function y(
|
|
3310
|
-
return e.enter("lineEnding"), e.consume(
|
|
3300
|
+
function y(T) {
|
|
3301
|
+
return e.enter("lineEnding"), e.consume(T), e.exit("lineEnding"), b;
|
|
3311
3302
|
}
|
|
3312
|
-
function b(
|
|
3313
|
-
return i > 0 && Y(
|
|
3303
|
+
function b(T) {
|
|
3304
|
+
return i > 0 && Y(T) ? Q(e, S, "linePrefix", i + 1)(T) : S(T);
|
|
3314
3305
|
}
|
|
3315
|
-
function S(
|
|
3316
|
-
return
|
|
3306
|
+
function S(T) {
|
|
3307
|
+
return T === null || G(T) ? e.check(pc, m, v)(T) : (e.enter("codeFlowValue"), w(T));
|
|
3317
3308
|
}
|
|
3318
|
-
function w(
|
|
3319
|
-
return
|
|
3309
|
+
function w(T) {
|
|
3310
|
+
return T === null || G(T) ? (e.exit("codeFlowValue"), S(T)) : (e.consume(T), w);
|
|
3320
3311
|
}
|
|
3321
|
-
function v(
|
|
3322
|
-
return e.exit("codeFenced"), t(
|
|
3312
|
+
function v(T) {
|
|
3313
|
+
return e.exit("codeFenced"), t(T);
|
|
3323
3314
|
}
|
|
3324
|
-
function _(
|
|
3315
|
+
function _(T, R, O) {
|
|
3325
3316
|
let M = 0;
|
|
3326
3317
|
return k;
|
|
3327
3318
|
function k(B) {
|
|
3328
|
-
return
|
|
3319
|
+
return T.enter("lineEnding"), T.consume(B), T.exit("lineEnding"), C;
|
|
3329
3320
|
}
|
|
3330
3321
|
function C(B) {
|
|
3331
|
-
return
|
|
3322
|
+
return T.enter("codeFencedFence"), Y(B) ? Q(T, x, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(B) : x(B);
|
|
3332
3323
|
}
|
|
3333
3324
|
function x(B) {
|
|
3334
|
-
return B === s ? (
|
|
3325
|
+
return B === s ? (T.enter("codeFencedFenceSequence"), L(B)) : O(B);
|
|
3335
3326
|
}
|
|
3336
3327
|
function L(B) {
|
|
3337
|
-
return B === s ? (M++,
|
|
3328
|
+
return B === s ? (M++, T.consume(B), L) : M >= o ? (T.exit("codeFencedFenceSequence"), Y(B) ? Q(T, U, "whitespace")(B) : U(B)) : O(B);
|
|
3338
3329
|
}
|
|
3339
3330
|
function U(B) {
|
|
3340
|
-
return B === null || G(B) ? (
|
|
3331
|
+
return B === null || G(B) ? (T.exit("codeFencedFence"), R(B)) : O(B);
|
|
3341
3332
|
}
|
|
3342
3333
|
}
|
|
3343
3334
|
}
|
|
@@ -3362,7 +3353,7 @@ function ob(e, t, n) {
|
|
|
3362
3353
|
const r = this;
|
|
3363
3354
|
return a;
|
|
3364
3355
|
function a(u) {
|
|
3365
|
-
return e.enter("codeIndented"),
|
|
3356
|
+
return e.enter("codeIndented"), Q(e, i, "linePrefix", 5)(u);
|
|
3366
3357
|
}
|
|
3367
3358
|
function i(u) {
|
|
3368
3359
|
const p = r.events[r.events.length - 1];
|
|
@@ -3382,7 +3373,7 @@ function sb(e, t, n) {
|
|
|
3382
3373
|
const r = this;
|
|
3383
3374
|
return a;
|
|
3384
3375
|
function a(o) {
|
|
3385
|
-
return r.parser.lazy[r.now().line] ? n(o) : G(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), a) :
|
|
3376
|
+
return r.parser.lazy[r.now().line] ? n(o) : G(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), a) : Q(e, i, "linePrefix", 5)(o);
|
|
3386
3377
|
}
|
|
3387
3378
|
function i(o) {
|
|
3388
3379
|
const s = r.events[r.events.length - 1];
|
|
@@ -3686,7 +3677,7 @@ function yb(e, t, n) {
|
|
|
3686
3677
|
const r = this;
|
|
3687
3678
|
return a;
|
|
3688
3679
|
function a(o) {
|
|
3689
|
-
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"),
|
|
3680
|
+
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), Q(e, i, "linePrefix");
|
|
3690
3681
|
}
|
|
3691
3682
|
function i(o) {
|
|
3692
3683
|
if (o === null || G(o))
|
|
@@ -3756,7 +3747,7 @@ function Qd(e, t, n, r, a, i) {
|
|
|
3756
3747
|
return d === o ? (e.enter(a), e.consume(d), e.exit(a), e.exit(r), t) : (e.enter(i), u(d));
|
|
3757
3748
|
}
|
|
3758
3749
|
function u(d) {
|
|
3759
|
-
return d === o ? (e.exit(i), l(o)) : d === null ? n(d) : G(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"),
|
|
3750
|
+
return d === o ? (e.exit(i), l(o)) : d === null ? n(d) : G(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), Q(e, u, "linePrefix")) : (e.enter("chunkString", {
|
|
3760
3751
|
contentType: "string"
|
|
3761
3752
|
}), p(d));
|
|
3762
3753
|
}
|
|
@@ -3771,7 +3762,7 @@ function nn(e, t) {
|
|
|
3771
3762
|
let n;
|
|
3772
3763
|
return r;
|
|
3773
3764
|
function r(a) {
|
|
3774
|
-
return G(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) : Y(a) ?
|
|
3765
|
+
return G(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), n = !0, r) : Y(a) ? Q(e, r, n ? "linePrefix" : "lineSuffix")(a) : t(a);
|
|
3775
3766
|
}
|
|
3776
3767
|
}
|
|
3777
3768
|
const Eb = {
|
|
@@ -3823,7 +3814,7 @@ function wb(e, t, n) {
|
|
|
3823
3814
|
return e.attempt(Sb, c, c)(g);
|
|
3824
3815
|
}
|
|
3825
3816
|
function c(g) {
|
|
3826
|
-
return Y(g) ?
|
|
3817
|
+
return Y(g) ? Q(e, d, "whitespace")(g) : d(g);
|
|
3827
3818
|
}
|
|
3828
3819
|
function d(g) {
|
|
3829
3820
|
return g === null || G(g) ? (e.exit("definition"), r.parser.defined.push(a), t(g)) : n(g);
|
|
@@ -3838,7 +3829,7 @@ function Ab(e, t, n) {
|
|
|
3838
3829
|
return Qd(e, i, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(s);
|
|
3839
3830
|
}
|
|
3840
3831
|
function i(s) {
|
|
3841
|
-
return Y(s) ?
|
|
3832
|
+
return Y(s) ? Q(e, o, "whitespace")(s) : o(s);
|
|
3842
3833
|
}
|
|
3843
3834
|
function o(s) {
|
|
3844
3835
|
return s === null || G(s) ? t(s) : n(s);
|
|
@@ -3860,7 +3851,7 @@ function kb(e, t, n) {
|
|
|
3860
3851
|
const vb = {
|
|
3861
3852
|
name: "headingAtx",
|
|
3862
3853
|
resolve: _b,
|
|
3863
|
-
tokenize:
|
|
3854
|
+
tokenize: Ib
|
|
3864
3855
|
};
|
|
3865
3856
|
function _b(e, t) {
|
|
3866
3857
|
let n = e.length - 2, r = 3, a, i;
|
|
@@ -3875,7 +3866,7 @@ function _b(e, t) {
|
|
|
3875
3866
|
contentType: "text"
|
|
3876
3867
|
}, De(e, r, n - r + 1, [["enter", a, t], ["enter", i, t], ["exit", i, t], ["exit", a, t]])), e;
|
|
3877
3868
|
}
|
|
3878
|
-
function
|
|
3869
|
+
function Ib(e, t, n) {
|
|
3879
3870
|
let r = 0;
|
|
3880
3871
|
return a;
|
|
3881
3872
|
function a(p) {
|
|
@@ -3888,7 +3879,7 @@ function Rb(e, t, n) {
|
|
|
3888
3879
|
return p === 35 && r++ < 6 ? (e.consume(p), o) : p === null || ae(p) ? (e.exit("atxHeadingSequence"), s(p)) : n(p);
|
|
3889
3880
|
}
|
|
3890
3881
|
function s(p) {
|
|
3891
|
-
return p === 35 ? (e.enter("atxHeadingSequence"), l(p)) : p === null || G(p) ? (e.exit("atxHeading"), t(p)) : Y(p) ?
|
|
3882
|
+
return p === 35 ? (e.enter("atxHeadingSequence"), l(p)) : p === null || G(p) ? (e.exit("atxHeading"), t(p)) : Y(p) ? Q(e, s, "whitespace")(p) : (e.enter("atxHeadingText"), u(p));
|
|
3892
3883
|
}
|
|
3893
3884
|
function l(p) {
|
|
3894
3885
|
return p === 35 ? (e.consume(p), l) : (e.exit("atxHeadingSequence"), s(p));
|
|
@@ -3897,7 +3888,7 @@ function Rb(e, t, n) {
|
|
|
3897
3888
|
return p === null || p === 35 || ae(p) ? (e.exit("atxHeadingText"), s(p)) : (e.consume(p), u);
|
|
3898
3889
|
}
|
|
3899
3890
|
}
|
|
3900
|
-
const
|
|
3891
|
+
const Rb = [
|
|
3901
3892
|
"address",
|
|
3902
3893
|
"article",
|
|
3903
3894
|
"aside",
|
|
@@ -3982,104 +3973,104 @@ function Lb(e, t, n) {
|
|
|
3982
3973
|
const r = this;
|
|
3983
3974
|
let a, i, o, s, l;
|
|
3984
3975
|
return u;
|
|
3985
|
-
function u(
|
|
3986
|
-
return p(
|
|
3976
|
+
function u(A) {
|
|
3977
|
+
return p(A);
|
|
3987
3978
|
}
|
|
3988
|
-
function p(
|
|
3989
|
-
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(
|
|
3979
|
+
function p(A) {
|
|
3980
|
+
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(A), c;
|
|
3990
3981
|
}
|
|
3991
|
-
function c(
|
|
3992
|
-
return
|
|
3982
|
+
function c(A) {
|
|
3983
|
+
return A === 33 ? (e.consume(A), d) : A === 47 ? (e.consume(A), i = !0, m) : A === 63 ? (e.consume(A), a = 3, r.interrupt ? t : E) : Te(A) ? (e.consume(A), o = String.fromCharCode(A), y) : n(A);
|
|
3993
3984
|
}
|
|
3994
|
-
function d(
|
|
3995
|
-
return
|
|
3985
|
+
function d(A) {
|
|
3986
|
+
return A === 45 ? (e.consume(A), a = 2, g) : A === 91 ? (e.consume(A), a = 5, s = 0, f) : Te(A) ? (e.consume(A), a = 4, r.interrupt ? t : E) : n(A);
|
|
3996
3987
|
}
|
|
3997
|
-
function g(
|
|
3998
|
-
return
|
|
3988
|
+
function g(A) {
|
|
3989
|
+
return A === 45 ? (e.consume(A), r.interrupt ? t : E) : n(A);
|
|
3999
3990
|
}
|
|
4000
|
-
function f(
|
|
3991
|
+
function f(A) {
|
|
4001
3992
|
const oe = "CDATA[";
|
|
4002
|
-
return
|
|
3993
|
+
return A === oe.charCodeAt(s++) ? (e.consume(A), s === oe.length ? r.interrupt ? t : x : f) : n(A);
|
|
4003
3994
|
}
|
|
4004
|
-
function m(
|
|
4005
|
-
return Te(
|
|
3995
|
+
function m(A) {
|
|
3996
|
+
return Te(A) ? (e.consume(A), o = String.fromCharCode(A), y) : n(A);
|
|
4006
3997
|
}
|
|
4007
|
-
function y(
|
|
4008
|
-
if (
|
|
4009
|
-
const oe =
|
|
4010
|
-
return !oe && !i && fc.includes(
|
|
3998
|
+
function y(A) {
|
|
3999
|
+
if (A === null || A === 47 || A === 62 || ae(A)) {
|
|
4000
|
+
const oe = A === 47, we = o.toLowerCase();
|
|
4001
|
+
return !oe && !i && fc.includes(we) ? (a = 1, r.interrupt ? t(A) : x(A)) : Rb.includes(o.toLowerCase()) ? (a = 6, oe ? (e.consume(A), b) : r.interrupt ? t(A) : x(A)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(A) : i ? S(A) : w(A));
|
|
4011
4002
|
}
|
|
4012
|
-
return
|
|
4003
|
+
return A === 45 || he(A) ? (e.consume(A), o += String.fromCharCode(A), y) : n(A);
|
|
4013
4004
|
}
|
|
4014
|
-
function b(
|
|
4015
|
-
return
|
|
4005
|
+
function b(A) {
|
|
4006
|
+
return A === 62 ? (e.consume(A), r.interrupt ? t : x) : n(A);
|
|
4016
4007
|
}
|
|
4017
|
-
function S(
|
|
4018
|
-
return Y(
|
|
4008
|
+
function S(A) {
|
|
4009
|
+
return Y(A) ? (e.consume(A), S) : k(A);
|
|
4019
4010
|
}
|
|
4020
|
-
function w(
|
|
4021
|
-
return
|
|
4011
|
+
function w(A) {
|
|
4012
|
+
return A === 47 ? (e.consume(A), k) : A === 58 || A === 95 || Te(A) ? (e.consume(A), v) : Y(A) ? (e.consume(A), w) : k(A);
|
|
4022
4013
|
}
|
|
4023
|
-
function v(
|
|
4024
|
-
return
|
|
4014
|
+
function v(A) {
|
|
4015
|
+
return A === 45 || A === 46 || A === 58 || A === 95 || he(A) ? (e.consume(A), v) : _(A);
|
|
4025
4016
|
}
|
|
4026
|
-
function _(
|
|
4027
|
-
return
|
|
4017
|
+
function _(A) {
|
|
4018
|
+
return A === 61 ? (e.consume(A), T) : Y(A) ? (e.consume(A), _) : w(A);
|
|
4028
4019
|
}
|
|
4029
|
-
function A
|
|
4030
|
-
return
|
|
4020
|
+
function T(A) {
|
|
4021
|
+
return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (e.consume(A), l = A, R) : Y(A) ? (e.consume(A), T) : O(A);
|
|
4031
4022
|
}
|
|
4032
|
-
function
|
|
4033
|
-
return
|
|
4023
|
+
function R(A) {
|
|
4024
|
+
return A === l ? (e.consume(A), l = null, M) : A === null || G(A) ? n(A) : (e.consume(A), R);
|
|
4034
4025
|
}
|
|
4035
|
-
function O(
|
|
4036
|
-
return
|
|
4026
|
+
function O(A) {
|
|
4027
|
+
return A === null || A === 34 || A === 39 || A === 47 || A === 60 || A === 61 || A === 62 || A === 96 || ae(A) ? _(A) : (e.consume(A), O);
|
|
4037
4028
|
}
|
|
4038
|
-
function M(
|
|
4039
|
-
return
|
|
4029
|
+
function M(A) {
|
|
4030
|
+
return A === 47 || A === 62 || Y(A) ? w(A) : n(A);
|
|
4040
4031
|
}
|
|
4041
|
-
function k(
|
|
4042
|
-
return
|
|
4032
|
+
function k(A) {
|
|
4033
|
+
return A === 62 ? (e.consume(A), C) : n(A);
|
|
4043
4034
|
}
|
|
4044
|
-
function C(
|
|
4045
|
-
return
|
|
4035
|
+
function C(A) {
|
|
4036
|
+
return A === null || G(A) ? x(A) : Y(A) ? (e.consume(A), C) : n(A);
|
|
4046
4037
|
}
|
|
4047
|
-
function x(
|
|
4048
|
-
return
|
|
4038
|
+
function x(A) {
|
|
4039
|
+
return A === 45 && a === 2 ? (e.consume(A), H) : A === 60 && a === 1 ? (e.consume(A), z) : A === 62 && a === 4 ? (e.consume(A), K) : A === 63 && a === 3 ? (e.consume(A), E) : A === 93 && a === 5 ? (e.consume(A), W) : G(A) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(Cb, ne, L)(A)) : A === null || G(A) ? (e.exit("htmlFlowData"), L(A)) : (e.consume(A), x);
|
|
4049
4040
|
}
|
|
4050
|
-
function L(
|
|
4051
|
-
return e.check(xb, U, ne)(
|
|
4041
|
+
function L(A) {
|
|
4042
|
+
return e.check(xb, U, ne)(A);
|
|
4052
4043
|
}
|
|
4053
|
-
function U(
|
|
4054
|
-
return e.enter("lineEnding"), e.consume(
|
|
4044
|
+
function U(A) {
|
|
4045
|
+
return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), B;
|
|
4055
4046
|
}
|
|
4056
|
-
function B(
|
|
4057
|
-
return
|
|
4047
|
+
function B(A) {
|
|
4048
|
+
return A === null || G(A) ? L(A) : (e.enter("htmlFlowData"), x(A));
|
|
4058
4049
|
}
|
|
4059
|
-
function H(
|
|
4060
|
-
return
|
|
4050
|
+
function H(A) {
|
|
4051
|
+
return A === 45 ? (e.consume(A), E) : x(A);
|
|
4061
4052
|
}
|
|
4062
|
-
function z(
|
|
4063
|
-
return
|
|
4053
|
+
function z(A) {
|
|
4054
|
+
return A === 47 ? (e.consume(A), o = "", $) : x(A);
|
|
4064
4055
|
}
|
|
4065
|
-
function $(
|
|
4066
|
-
if (
|
|
4056
|
+
function $(A) {
|
|
4057
|
+
if (A === 62) {
|
|
4067
4058
|
const oe = o.toLowerCase();
|
|
4068
|
-
return fc.includes(oe) ? (e.consume(
|
|
4059
|
+
return fc.includes(oe) ? (e.consume(A), K) : x(A);
|
|
4069
4060
|
}
|
|
4070
|
-
return Te(
|
|
4061
|
+
return Te(A) && o.length < 8 ? (e.consume(A), o += String.fromCharCode(A), $) : x(A);
|
|
4071
4062
|
}
|
|
4072
|
-
function W(
|
|
4073
|
-
return
|
|
4063
|
+
function W(A) {
|
|
4064
|
+
return A === 93 ? (e.consume(A), E) : x(A);
|
|
4074
4065
|
}
|
|
4075
|
-
function E(
|
|
4076
|
-
return
|
|
4066
|
+
function E(A) {
|
|
4067
|
+
return A === 62 ? (e.consume(A), K) : A === 45 && a === 2 ? (e.consume(A), E) : x(A);
|
|
4077
4068
|
}
|
|
4078
|
-
function K(
|
|
4079
|
-
return
|
|
4069
|
+
function K(A) {
|
|
4070
|
+
return A === null || G(A) ? (e.exit("htmlFlowData"), ne(A)) : (e.consume(A), K);
|
|
4080
4071
|
}
|
|
4081
|
-
function ne(
|
|
4082
|
-
return e.exit("htmlFlow"), t(
|
|
4072
|
+
function ne(A) {
|
|
4073
|
+
return e.exit("htmlFlow"), t(A);
|
|
4083
4074
|
}
|
|
4084
4075
|
}
|
|
4085
4076
|
function Db(e, t, n) {
|
|
@@ -4150,22 +4141,22 @@ function Pb(e, t, n) {
|
|
|
4150
4141
|
return E === 62 ? H(E) : w(E);
|
|
4151
4142
|
}
|
|
4152
4143
|
function _(E) {
|
|
4153
|
-
return Te(E) ? (e.consume(E),
|
|
4144
|
+
return Te(E) ? (e.consume(E), T) : n(E);
|
|
4154
4145
|
}
|
|
4155
|
-
function
|
|
4156
|
-
return E === 45 ||
|
|
4146
|
+
function T(E) {
|
|
4147
|
+
return E === 45 || he(E) ? (e.consume(E), T) : R(E);
|
|
4157
4148
|
}
|
|
4158
|
-
function
|
|
4159
|
-
return G(E) ? (o =
|
|
4149
|
+
function R(E) {
|
|
4150
|
+
return G(E) ? (o = R, z(E)) : Y(E) ? (e.consume(E), R) : H(E);
|
|
4160
4151
|
}
|
|
4161
4152
|
function O(E) {
|
|
4162
|
-
return E === 45 ||
|
|
4153
|
+
return E === 45 || he(E) ? (e.consume(E), O) : E === 47 || E === 62 || ae(E) ? M(E) : n(E);
|
|
4163
4154
|
}
|
|
4164
4155
|
function M(E) {
|
|
4165
4156
|
return E === 47 ? (e.consume(E), H) : E === 58 || E === 95 || Te(E) ? (e.consume(E), k) : G(E) ? (o = M, z(E)) : Y(E) ? (e.consume(E), M) : H(E);
|
|
4166
4157
|
}
|
|
4167
4158
|
function k(E) {
|
|
4168
|
-
return E === 45 || E === 46 || E === 58 || E === 95 ||
|
|
4159
|
+
return E === 45 || E === 46 || E === 58 || E === 95 || he(E) ? (e.consume(E), k) : C(E);
|
|
4169
4160
|
}
|
|
4170
4161
|
function C(E) {
|
|
4171
4162
|
return E === 61 ? (e.consume(E), x) : G(E) ? (o = C, z(E)) : Y(E) ? (e.consume(E), C) : M(E);
|
|
@@ -4189,7 +4180,7 @@ function Pb(e, t, n) {
|
|
|
4189
4180
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(E), e.exit("lineEnding"), $;
|
|
4190
4181
|
}
|
|
4191
4182
|
function $(E) {
|
|
4192
|
-
return Y(E) ?
|
|
4183
|
+
return Y(E) ? Q(e, W, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(E) : W(E);
|
|
4193
4184
|
}
|
|
4194
4185
|
function W(E) {
|
|
4195
4186
|
return e.enter("htmlTextData"), o(E);
|
|
@@ -4376,7 +4367,7 @@ const kr = {
|
|
|
4376
4367
|
function Zb(e, t) {
|
|
4377
4368
|
return n;
|
|
4378
4369
|
function n(r) {
|
|
4379
|
-
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"),
|
|
4370
|
+
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), Q(e, t, "linePrefix");
|
|
4380
4371
|
}
|
|
4381
4372
|
}
|
|
4382
4373
|
const Fn = {
|
|
@@ -4396,10 +4387,10 @@ function Qb(e, t, n) {
|
|
|
4396
4387
|
return u === a ? (e.enter("thematicBreakSequence"), l(u)) : r >= 3 && (u === null || G(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
|
|
4397
4388
|
}
|
|
4398
4389
|
function l(u) {
|
|
4399
|
-
return u === a ? (e.consume(u), r++, l) : (e.exit("thematicBreakSequence"), Y(u) ?
|
|
4390
|
+
return u === a ? (e.consume(u), r++, l) : (e.exit("thematicBreakSequence"), Y(u) ? Q(e, s, "whitespace")(u) : s(u));
|
|
4400
4391
|
}
|
|
4401
4392
|
}
|
|
4402
|
-
const
|
|
4393
|
+
const Ie = {
|
|
4403
4394
|
continuation: {
|
|
4404
4395
|
tokenize: nh
|
|
4405
4396
|
},
|
|
@@ -4454,18 +4445,18 @@ function nh(e, t, n) {
|
|
|
4454
4445
|
const r = this;
|
|
4455
4446
|
return r.containerState._closeFlow = void 0, e.check(mn, a, i);
|
|
4456
4447
|
function a(s) {
|
|
4457
|
-
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine,
|
|
4448
|
+
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, Q(e, t, "listItemIndent", r.containerState.size + 1)(s);
|
|
4458
4449
|
}
|
|
4459
4450
|
function i(s) {
|
|
4460
4451
|
return r.containerState.furtherBlankLines || !Y(s) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, o(s)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(eh, t, o)(s));
|
|
4461
4452
|
}
|
|
4462
4453
|
function o(s) {
|
|
4463
|
-
return r.containerState._closeFlow = !0, r.interrupt = void 0,
|
|
4454
|
+
return r.containerState._closeFlow = !0, r.interrupt = void 0, Q(e, e.attempt(Ie, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
|
|
4464
4455
|
}
|
|
4465
4456
|
}
|
|
4466
4457
|
function rh(e, t, n) {
|
|
4467
4458
|
const r = this;
|
|
4468
|
-
return
|
|
4459
|
+
return Q(e, a, "listItemIndent", r.containerState.size + 1);
|
|
4469
4460
|
function a(i) {
|
|
4470
4461
|
const o = r.events[r.events.length - 1];
|
|
4471
4462
|
return o && o[1].type === "listItemIndent" && o[2].sliceSerialize(o[1], !0).length === r.containerState.size ? t(i) : n(i);
|
|
@@ -4476,7 +4467,7 @@ function ah(e) {
|
|
|
4476
4467
|
}
|
|
4477
4468
|
function ih(e, t, n) {
|
|
4478
4469
|
const r = this;
|
|
4479
|
-
return
|
|
4470
|
+
return Q(e, a, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
4480
4471
|
function a(i) {
|
|
4481
4472
|
const o = r.events[r.events.length - 1];
|
|
4482
4473
|
return !Y(i) && o && o[1].type === "listItemPrefixWhitespace" ? t(i) : n(i);
|
|
@@ -4528,7 +4519,7 @@ function sh(e, t, n) {
|
|
|
4528
4519
|
return e.enter("setextHeadingLineSequence"), s(u);
|
|
4529
4520
|
}
|
|
4530
4521
|
function s(u) {
|
|
4531
|
-
return u === a ? (e.consume(u), s) : (e.exit("setextHeadingLineSequence"), Y(u) ?
|
|
4522
|
+
return u === a ? (e.consume(u), s) : (e.exit("setextHeadingLineSequence"), Y(u) ? Q(e, l, "lineSuffix")(u) : l(u));
|
|
4532
4523
|
}
|
|
4533
4524
|
function l(u) {
|
|
4534
4525
|
return u === null || G(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
|
|
@@ -4543,7 +4534,7 @@ function uh(e) {
|
|
|
4543
4534
|
mn,
|
|
4544
4535
|
r,
|
|
4545
4536
|
// Try to parse initial flow (essentially, only code).
|
|
4546
|
-
e.attempt(this.parser.constructs.flowInitial, a,
|
|
4537
|
+
e.attempt(this.parser.constructs.flowInitial, a, Q(e, e.attempt(this.parser.constructs.flow, a, e.attempt(fb, a)), "linePrefix"))
|
|
4547
4538
|
);
|
|
4548
4539
|
return n;
|
|
4549
4540
|
function r(i) {
|
|
@@ -4652,19 +4643,19 @@ function gh(e, t) {
|
|
|
4652
4643
|
return e;
|
|
4653
4644
|
}
|
|
4654
4645
|
const fh = {
|
|
4655
|
-
42:
|
|
4656
|
-
43:
|
|
4657
|
-
45:
|
|
4658
|
-
48:
|
|
4659
|
-
49:
|
|
4660
|
-
50:
|
|
4661
|
-
51:
|
|
4662
|
-
52:
|
|
4663
|
-
53:
|
|
4664
|
-
54:
|
|
4665
|
-
55:
|
|
4666
|
-
56:
|
|
4667
|
-
57:
|
|
4646
|
+
42: Ie,
|
|
4647
|
+
43: Ie,
|
|
4648
|
+
45: Ie,
|
|
4649
|
+
48: Ie,
|
|
4650
|
+
49: Ie,
|
|
4651
|
+
50: Ie,
|
|
4652
|
+
51: Ie,
|
|
4653
|
+
52: Ie,
|
|
4654
|
+
53: Ie,
|
|
4655
|
+
54: Ie,
|
|
4656
|
+
55: Ie,
|
|
4657
|
+
56: Ie,
|
|
4658
|
+
57: Ie,
|
|
4668
4659
|
62: Wd
|
|
4669
4660
|
}, mh = {
|
|
4670
4661
|
91: Eb
|
|
@@ -4726,12 +4717,12 @@ function kh(e, t, n) {
|
|
|
4726
4717
|
const a = {}, i = [];
|
|
4727
4718
|
let o = [], s = [];
|
|
4728
4719
|
const l = {
|
|
4729
|
-
attempt:
|
|
4730
|
-
check:
|
|
4720
|
+
attempt: R(_),
|
|
4721
|
+
check: R(T),
|
|
4731
4722
|
consume: S,
|
|
4732
4723
|
enter: w,
|
|
4733
4724
|
exit: v,
|
|
4734
|
-
interrupt:
|
|
4725
|
+
interrupt: R(T, {
|
|
4735
4726
|
interrupt: !0
|
|
4736
4727
|
})
|
|
4737
4728
|
}, u = {
|
|
@@ -4807,10 +4798,10 @@ function kh(e, t, n) {
|
|
|
4807
4798
|
function _(C, x) {
|
|
4808
4799
|
O(C, x.from);
|
|
4809
4800
|
}
|
|
4810
|
-
function
|
|
4801
|
+
function T(C, x) {
|
|
4811
4802
|
x.restore();
|
|
4812
4803
|
}
|
|
4813
|
-
function
|
|
4804
|
+
function R(C, x) {
|
|
4814
4805
|
return L;
|
|
4815
4806
|
function L(U, B, H) {
|
|
4816
4807
|
let z, $, W, E;
|
|
@@ -4837,27 +4828,27 @@ function kh(e, t, n) {
|
|
|
4837
4828
|
}
|
|
4838
4829
|
}
|
|
4839
4830
|
function ne(te) {
|
|
4840
|
-
return z = te, $ = 0, te.length === 0 ? H :
|
|
4831
|
+
return z = te, $ = 0, te.length === 0 ? H : A(te[$]);
|
|
4841
4832
|
}
|
|
4842
|
-
function
|
|
4833
|
+
function A(te) {
|
|
4843
4834
|
return ke;
|
|
4844
4835
|
function ke(de) {
|
|
4845
|
-
return E = M(), W = te, te.partial || (u.currentConstruct = te), te.name && u.parser.constructs.disable.null.includes(te.name) ?
|
|
4836
|
+
return E = M(), W = te, te.partial || (u.currentConstruct = te), te.name && u.parser.constructs.disable.null.includes(te.name) ? we() : te.tokenize.call(
|
|
4846
4837
|
// If we do have fields, create an object w/ `context` as its
|
|
4847
4838
|
// prototype.
|
|
4848
4839
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
4849
4840
|
x ? Object.assign(Object.create(u), x) : u,
|
|
4850
4841
|
l,
|
|
4851
4842
|
oe,
|
|
4852
|
-
|
|
4843
|
+
we
|
|
4853
4844
|
)(de);
|
|
4854
4845
|
}
|
|
4855
4846
|
}
|
|
4856
4847
|
function oe(te) {
|
|
4857
4848
|
return C(W, E), B;
|
|
4858
4849
|
}
|
|
4859
|
-
function
|
|
4860
|
-
return E.restore(), ++$ < z.length ?
|
|
4850
|
+
function we(te) {
|
|
4851
|
+
return E.restore(), ++$ < z.length ? A(z[$]) : H;
|
|
4861
4852
|
}
|
|
4862
4853
|
}
|
|
4863
4854
|
}
|
|
@@ -4932,7 +4923,7 @@ function _h(e, t) {
|
|
|
4932
4923
|
}
|
|
4933
4924
|
return r.join("");
|
|
4934
4925
|
}
|
|
4935
|
-
function
|
|
4926
|
+
function Ih(e) {
|
|
4936
4927
|
const r = {
|
|
4937
4928
|
constructs: (
|
|
4938
4929
|
/** @type {FullNormalizedExtension} */
|
|
@@ -4954,7 +4945,7 @@ function Rh(e) {
|
|
|
4954
4945
|
}
|
|
4955
4946
|
}
|
|
4956
4947
|
}
|
|
4957
|
-
function
|
|
4948
|
+
function Rh(e) {
|
|
4958
4949
|
for (; !Kd(e); )
|
|
4959
4950
|
;
|
|
4960
4951
|
return e;
|
|
@@ -5010,7 +5001,7 @@ function Oh(e, t, n) {
|
|
|
5010
5001
|
}
|
|
5011
5002
|
const tp = {}.hasOwnProperty;
|
|
5012
5003
|
function Lh(e, t, n) {
|
|
5013
|
-
return typeof t != "string" && (n = t, t = void 0), Dh(n)(Ih(
|
|
5004
|
+
return typeof t != "string" && (n = t, t = void 0), Dh(n)(Rh(Ih(n).document().write(Nh()(e, t, !0))));
|
|
5014
5005
|
}
|
|
5015
5006
|
function Dh(e) {
|
|
5016
5007
|
const t = {
|
|
@@ -5020,7 +5011,7 @@ function Dh(e) {
|
|
|
5020
5011
|
autolink: i(He),
|
|
5021
5012
|
autolinkProtocol: M,
|
|
5022
5013
|
autolinkEmail: M,
|
|
5023
|
-
atxHeading: i(
|
|
5014
|
+
atxHeading: i(Ce),
|
|
5024
5015
|
blockQuote: i(_e),
|
|
5025
5016
|
characterEscape: M,
|
|
5026
5017
|
characterReference: M,
|
|
@@ -5032,7 +5023,7 @@ function Dh(e) {
|
|
|
5032
5023
|
codeTextData: M,
|
|
5033
5024
|
data: M,
|
|
5034
5025
|
codeFlowValue: M,
|
|
5035
|
-
definition: i(
|
|
5026
|
+
definition: i(fe),
|
|
5036
5027
|
definitionDestinationString: o,
|
|
5037
5028
|
definitionLabelString: o,
|
|
5038
5029
|
definitionTitleString: o,
|
|
@@ -5051,11 +5042,11 @@ function Dh(e) {
|
|
|
5051
5042
|
listOrdered: i(yt, c),
|
|
5052
5043
|
listUnordered: i(yt),
|
|
5053
5044
|
paragraph: i(Wg),
|
|
5054
|
-
reference:
|
|
5045
|
+
reference: A,
|
|
5055
5046
|
referenceString: o,
|
|
5056
5047
|
resourceDestinationString: o,
|
|
5057
5048
|
resourceTitleString: o,
|
|
5058
|
-
setextHeading: i(
|
|
5049
|
+
setextHeading: i(Ce),
|
|
5059
5050
|
strong: i(qg),
|
|
5060
5051
|
thematicBreak: i(Kg)
|
|
5061
5052
|
},
|
|
@@ -5067,8 +5058,8 @@ function Dh(e) {
|
|
|
5067
5058
|
autolinkProtocol: de,
|
|
5068
5059
|
blockQuote: l(),
|
|
5069
5060
|
characterEscapeValue: k,
|
|
5070
|
-
characterReferenceMarkerHexadecimal:
|
|
5071
|
-
characterReferenceMarkerNumeric:
|
|
5061
|
+
characterReferenceMarkerHexadecimal: we,
|
|
5062
|
+
characterReferenceMarkerNumeric: we,
|
|
5072
5063
|
characterReferenceValue: te,
|
|
5073
5064
|
characterReference: ke,
|
|
5074
5065
|
codeFenced: l(y),
|
|
@@ -5105,8 +5096,8 @@ function Dh(e) {
|
|
|
5105
5096
|
resourceTitleString: K,
|
|
5106
5097
|
resource: ne,
|
|
5107
5098
|
setextHeading: l(O),
|
|
5108
|
-
setextHeadingLineSequence:
|
|
5109
|
-
setextHeadingText:
|
|
5099
|
+
setextHeadingLineSequence: R,
|
|
5100
|
+
setextHeadingText: T,
|
|
5110
5101
|
strong: l(),
|
|
5111
5102
|
thematicBreak: l()
|
|
5112
5103
|
}
|
|
@@ -5166,16 +5157,16 @@ function Dh(e) {
|
|
|
5166
5157
|
function a(N, F, V) {
|
|
5167
5158
|
let Z = F - 1, re = -1, Ue = !1, Et, tt, Zt, Qt;
|
|
5168
5159
|
for (; ++Z <= V; ) {
|
|
5169
|
-
const
|
|
5170
|
-
switch (
|
|
5160
|
+
const xe = N[Z];
|
|
5161
|
+
switch (xe[1].type) {
|
|
5171
5162
|
case "listUnordered":
|
|
5172
5163
|
case "listOrdered":
|
|
5173
5164
|
case "blockQuote": {
|
|
5174
|
-
|
|
5165
|
+
xe[0] === "enter" ? re++ : re--, Qt = void 0;
|
|
5175
5166
|
break;
|
|
5176
5167
|
}
|
|
5177
5168
|
case "lineEndingBlank": {
|
|
5178
|
-
|
|
5169
|
+
xe[0] === "enter" && (Et && !Qt && !re && !Zt && (Zt = Z), Qt = void 0);
|
|
5179
5170
|
break;
|
|
5180
5171
|
}
|
|
5181
5172
|
case "linePrefix":
|
|
@@ -5187,7 +5178,7 @@ function Dh(e) {
|
|
|
5187
5178
|
default:
|
|
5188
5179
|
Qt = void 0;
|
|
5189
5180
|
}
|
|
5190
|
-
if (!re &&
|
|
5181
|
+
if (!re && xe[0] === "enter" && xe[1].type === "listItemPrefix" || re === -1 && xe[0] === "exit" && (xe[1].type === "listUnordered" || xe[1].type === "listOrdered")) {
|
|
5191
5182
|
if (Et) {
|
|
5192
5183
|
let _t = Z;
|
|
5193
5184
|
for (tt = void 0; _t--; ) {
|
|
@@ -5197,17 +5188,17 @@ function Dh(e) {
|
|
|
5197
5188
|
tt && (N[tt][1].type = "lineEndingBlank", Ue = !0), nt[1].type = "lineEnding", tt = _t;
|
|
5198
5189
|
} else if (!(nt[1].type === "linePrefix" || nt[1].type === "blockQuotePrefix" || nt[1].type === "blockQuotePrefixWhitespace" || nt[1].type === "blockQuoteMarker" || nt[1].type === "listItemIndent")) break;
|
|
5199
5190
|
}
|
|
5200
|
-
Zt && (!tt || Zt < tt) && (Et._spread = !0), Et.end = Object.assign({}, tt ? N[tt][1].start :
|
|
5191
|
+
Zt && (!tt || Zt < tt) && (Et._spread = !0), Et.end = Object.assign({}, tt ? N[tt][1].start : xe[1].end), N.splice(tt || Z, 0, ["exit", Et, xe[2]]), Z++, V++;
|
|
5201
5192
|
}
|
|
5202
|
-
if (
|
|
5193
|
+
if (xe[1].type === "listItemPrefix") {
|
|
5203
5194
|
const _t = {
|
|
5204
5195
|
type: "listItem",
|
|
5205
5196
|
_spread: !1,
|
|
5206
|
-
start: Object.assign({},
|
|
5197
|
+
start: Object.assign({}, xe[1].start),
|
|
5207
5198
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
5208
5199
|
end: void 0
|
|
5209
5200
|
};
|
|
5210
|
-
Et = _t, N.splice(Z, 0, ["enter", _t,
|
|
5201
|
+
Et = _t, N.splice(Z, 0, ["enter", _t, xe[2]]), Z++, V++, Zt = void 0, Qt = !0;
|
|
5211
5202
|
}
|
|
5212
5203
|
}
|
|
5213
5204
|
}
|
|
@@ -5298,10 +5289,10 @@ function Dh(e) {
|
|
|
5298
5289
|
F.depth = V;
|
|
5299
5290
|
}
|
|
5300
5291
|
}
|
|
5301
|
-
function
|
|
5292
|
+
function T() {
|
|
5302
5293
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
5303
5294
|
}
|
|
5304
|
-
function
|
|
5295
|
+
function R(N) {
|
|
5305
5296
|
const F = this.stack[this.stack.length - 1];
|
|
5306
5297
|
F.depth = this.sliceSerialize(N).codePointAt(0) === 61 ? 1 : 2;
|
|
5307
5298
|
}
|
|
@@ -5386,14 +5377,14 @@ function Dh(e) {
|
|
|
5386
5377
|
function ne() {
|
|
5387
5378
|
this.data.inReference = void 0;
|
|
5388
5379
|
}
|
|
5389
|
-
function
|
|
5380
|
+
function A() {
|
|
5390
5381
|
this.data.referenceType = "collapsed";
|
|
5391
5382
|
}
|
|
5392
5383
|
function oe(N) {
|
|
5393
5384
|
const F = this.resume(), V = this.stack[this.stack.length - 1];
|
|
5394
5385
|
V.label = F, V.identifier = $e(this.sliceSerialize(N)).toLowerCase(), this.data.referenceType = "full";
|
|
5395
5386
|
}
|
|
5396
|
-
function
|
|
5387
|
+
function we(N) {
|
|
5397
5388
|
this.data.characterReferenceType = N.type;
|
|
5398
5389
|
}
|
|
5399
5390
|
function te(N) {
|
|
@@ -5437,7 +5428,7 @@ function Dh(e) {
|
|
|
5437
5428
|
value: ""
|
|
5438
5429
|
};
|
|
5439
5430
|
}
|
|
5440
|
-
function
|
|
5431
|
+
function fe() {
|
|
5441
5432
|
return {
|
|
5442
5433
|
type: "definition",
|
|
5443
5434
|
identifier: "",
|
|
@@ -5452,7 +5443,7 @@ function Dh(e) {
|
|
|
5452
5443
|
children: []
|
|
5453
5444
|
};
|
|
5454
5445
|
}
|
|
5455
|
-
function
|
|
5446
|
+
function Ce() {
|
|
5456
5447
|
return {
|
|
5457
5448
|
type: "heading",
|
|
5458
5449
|
// @ts-expect-error `depth` will be set later.
|
|
@@ -5942,7 +5933,7 @@ const ly = {
|
|
|
5942
5933
|
};
|
|
5943
5934
|
function vn() {
|
|
5944
5935
|
}
|
|
5945
|
-
const ip = -1, rr = 0, rn = 1, Wn = 2, _a = 3,
|
|
5936
|
+
const ip = -1, rr = 0, rn = 1, Wn = 2, _a = 3, Ia = 4, Ra = 5, Na = 6, op = 7, sp = 8, wc = typeof self == "object" ? self : globalThis, uy = (e, t) => {
|
|
5946
5937
|
const n = (a, i) => (e.set(i, a), a), r = (a) => {
|
|
5947
5938
|
if (e.has(a))
|
|
5948
5939
|
return e.get(a);
|
|
@@ -5965,11 +5956,11 @@ const ip = -1, rr = 0, rn = 1, Wn = 2, _a = 3, Ra = 4, Ia = 5, Na = 6, op = 7, s
|
|
|
5965
5956
|
}
|
|
5966
5957
|
case _a:
|
|
5967
5958
|
return n(new Date(o), a);
|
|
5968
|
-
case
|
|
5959
|
+
case Ia: {
|
|
5969
5960
|
const { source: s, flags: l } = o;
|
|
5970
5961
|
return n(new RegExp(s, l), a);
|
|
5971
5962
|
}
|
|
5972
|
-
case
|
|
5963
|
+
case Ra: {
|
|
5973
5964
|
const s = n(/* @__PURE__ */ new Map(), a);
|
|
5974
5965
|
for (const [l, u] of o)
|
|
5975
5966
|
s.set(r(l), r(u));
|
|
@@ -5999,24 +5990,24 @@ const ip = -1, rr = 0, rn = 1, Wn = 2, _a = 3, Ra = 4, Ia = 5, Na = 6, op = 7, s
|
|
|
5999
5990
|
return n(new wc[i](o), a);
|
|
6000
5991
|
};
|
|
6001
5992
|
return r;
|
|
6002
|
-
}, Ac = (e) => uy(/* @__PURE__ */ new Map(), e)(0),
|
|
5993
|
+
}, Ac = (e) => uy(/* @__PURE__ */ new Map(), e)(0), It = "", { toString: cy } = {}, { keys: dy } = Object, en = (e) => {
|
|
6003
5994
|
const t = typeof e;
|
|
6004
5995
|
if (t !== "object" || !e)
|
|
6005
5996
|
return [rr, t];
|
|
6006
5997
|
const n = cy.call(e).slice(8, -1);
|
|
6007
5998
|
switch (n) {
|
|
6008
5999
|
case "Array":
|
|
6009
|
-
return [rn,
|
|
6000
|
+
return [rn, It];
|
|
6010
6001
|
case "Object":
|
|
6011
|
-
return [Wn,
|
|
6002
|
+
return [Wn, It];
|
|
6012
6003
|
case "Date":
|
|
6013
|
-
return [_a,
|
|
6004
|
+
return [_a, It];
|
|
6014
6005
|
case "RegExp":
|
|
6015
|
-
return [
|
|
6006
|
+
return [Ia, It];
|
|
6016
6007
|
case "Map":
|
|
6017
|
-
return [
|
|
6008
|
+
return [Ra, It];
|
|
6018
6009
|
case "Set":
|
|
6019
|
-
return [Na,
|
|
6010
|
+
return [Na, It];
|
|
6020
6011
|
case "DataView":
|
|
6021
6012
|
return [rn, n];
|
|
6022
6013
|
}
|
|
@@ -6076,11 +6067,11 @@ const ip = -1, rr = 0, rn = 1, Wn = 2, _a = 3, Ra = 4, Ia = 5, Na = 6, op = 7, s
|
|
|
6076
6067
|
}
|
|
6077
6068
|
case _a:
|
|
6078
6069
|
return a([s, o.toISOString()], o);
|
|
6079
|
-
case
|
|
6070
|
+
case Ia: {
|
|
6080
6071
|
const { source: p, flags: c } = o;
|
|
6081
6072
|
return a([s, { source: p, flags: c }], o);
|
|
6082
6073
|
}
|
|
6083
|
-
case
|
|
6074
|
+
case Ra: {
|
|
6084
6075
|
const p = [], c = a([s, p], o);
|
|
6085
6076
|
for (const [d, g] of o)
|
|
6086
6077
|
(e || !(_n(en(d)) || _n(en(g)))) && p.push([i(d), i(g)]);
|
|
@@ -6335,7 +6326,7 @@ const Jr = {}.hasOwnProperty, ky = {};
|
|
|
6335
6326
|
function vy(e, t) {
|
|
6336
6327
|
const n = t || ky, r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = { ...ly, ...n.handlers }, s = {
|
|
6337
6328
|
all: u,
|
|
6338
|
-
applyData:
|
|
6329
|
+
applyData: Iy,
|
|
6339
6330
|
definitionById: r,
|
|
6340
6331
|
footnoteById: a,
|
|
6341
6332
|
footnoteCounts: i,
|
|
@@ -6363,7 +6354,7 @@ function vy(e, t) {
|
|
|
6363
6354
|
}
|
|
6364
6355
|
return qn(p);
|
|
6365
6356
|
}
|
|
6366
|
-
return (s.options.unknownHandler ||
|
|
6357
|
+
return (s.options.unknownHandler || Ry)(s, p, c);
|
|
6367
6358
|
}
|
|
6368
6359
|
function u(p) {
|
|
6369
6360
|
const c = [];
|
|
@@ -6387,7 +6378,7 @@ function vy(e, t) {
|
|
|
6387
6378
|
function _y(e, t) {
|
|
6388
6379
|
e.position && (t.position = fm(e));
|
|
6389
6380
|
}
|
|
6390
|
-
function
|
|
6381
|
+
function Iy(e, t) {
|
|
6391
6382
|
let n = t;
|
|
6392
6383
|
if (e && e.data) {
|
|
6393
6384
|
const r = e.data.hName, a = e.data.hChildren, i = e.data.hProperties;
|
|
@@ -6402,7 +6393,7 @@ function Ry(e, t) {
|
|
|
6402
6393
|
}
|
|
6403
6394
|
return n;
|
|
6404
6395
|
}
|
|
6405
|
-
function
|
|
6396
|
+
function Ry(e, t) {
|
|
6406
6397
|
const n = t.data || {}, r = "value" in t && !(Jr.call(n, "hProperties") || Jr.call(n, "hChildren")) ? { type: "text", value: t.value } : {
|
|
6407
6398
|
type: "element",
|
|
6408
6399
|
tagName: "div",
|
|
@@ -6450,7 +6441,7 @@ function _c(e) {
|
|
|
6450
6441
|
if (e)
|
|
6451
6442
|
throw e;
|
|
6452
6443
|
}
|
|
6453
|
-
var Pn = Object.prototype.hasOwnProperty, cp = Object.prototype.toString,
|
|
6444
|
+
var Pn = Object.prototype.hasOwnProperty, cp = Object.prototype.toString, Ic = Object.defineProperty, Rc = Object.getOwnPropertyDescriptor, Nc = function(t) {
|
|
6454
6445
|
return typeof Array.isArray == "function" ? Array.isArray(t) : cp.call(t) === "[object Array]";
|
|
6455
6446
|
}, Cc = function(t) {
|
|
6456
6447
|
if (!t || cp.call(t) !== "[object Object]")
|
|
@@ -6463,7 +6454,7 @@ var Pn = Object.prototype.hasOwnProperty, cp = Object.prototype.toString, Rc = O
|
|
|
6463
6454
|
;
|
|
6464
6455
|
return typeof a > "u" || Pn.call(t, a);
|
|
6465
6456
|
}, xc = function(t, n) {
|
|
6466
|
-
|
|
6457
|
+
Ic && n.name === "__proto__" ? Ic(t, n.name, {
|
|
6467
6458
|
enumerable: !0,
|
|
6468
6459
|
configurable: !0,
|
|
6469
6460
|
value: n.newValue,
|
|
@@ -6472,8 +6463,8 @@ var Pn = Object.prototype.hasOwnProperty, cp = Object.prototype.toString, Rc = O
|
|
|
6472
6463
|
}, Oc = function(t, n) {
|
|
6473
6464
|
if (n === "__proto__")
|
|
6474
6465
|
if (Pn.call(t, n)) {
|
|
6475
|
-
if (
|
|
6476
|
-
return
|
|
6466
|
+
if (Rc)
|
|
6467
|
+
return Rc(t, n).value;
|
|
6477
6468
|
} else return;
|
|
6478
6469
|
return t[n];
|
|
6479
6470
|
}, xy = function e() {
|
|
@@ -6768,7 +6759,7 @@ class dp {
|
|
|
6768
6759
|
* Nothing.
|
|
6769
6760
|
*/
|
|
6770
6761
|
set basename(t) {
|
|
6771
|
-
|
|
6762
|
+
Rr(t, "basename"), Ir(t, "basename"), this.path = je.join(this.dirname || "", t);
|
|
6772
6763
|
}
|
|
6773
6764
|
/**
|
|
6774
6765
|
* Get the parent path (example: `'~'`).
|
|
@@ -6814,7 +6805,7 @@ class dp {
|
|
|
6814
6805
|
* Nothing.
|
|
6815
6806
|
*/
|
|
6816
6807
|
set extname(t) {
|
|
6817
|
-
if (
|
|
6808
|
+
if (Ir(t, "extname"), Lc(this.dirname, "extname"), t) {
|
|
6818
6809
|
if (t.codePointAt(0) !== 46)
|
|
6819
6810
|
throw new Error("`extname` must start with `.`");
|
|
6820
6811
|
if (t.includes(".", 1))
|
|
@@ -6844,7 +6835,7 @@ class dp {
|
|
|
6844
6835
|
* Nothing.
|
|
6845
6836
|
*/
|
|
6846
6837
|
set path(t) {
|
|
6847
|
-
ta(t) && (t = Gy(t)),
|
|
6838
|
+
ta(t) && (t = Gy(t)), Rr(t, "path"), this.path !== t && this.history.push(t);
|
|
6848
6839
|
}
|
|
6849
6840
|
/**
|
|
6850
6841
|
* Get the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -6868,7 +6859,7 @@ class dp {
|
|
|
6868
6859
|
* Nothing.
|
|
6869
6860
|
*/
|
|
6870
6861
|
set stem(t) {
|
|
6871
|
-
|
|
6862
|
+
Rr(t, "stem"), Ir(t, "stem"), this.path = je.join(this.dirname || "", t + (this.extname || ""));
|
|
6872
6863
|
}
|
|
6873
6864
|
// Normal prototypal methods.
|
|
6874
6865
|
/**
|
|
@@ -7056,7 +7047,7 @@ class dp {
|
|
|
7056
7047
|
* Message.
|
|
7057
7048
|
*/
|
|
7058
7049
|
message(t, n, r) {
|
|
7059
|
-
const a = new
|
|
7050
|
+
const a = new ye(
|
|
7060
7051
|
// @ts-expect-error: the overloads are fine.
|
|
7061
7052
|
t,
|
|
7062
7053
|
n,
|
|
@@ -7081,13 +7072,13 @@ class dp {
|
|
|
7081
7072
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(t || void 0).decode(this.value);
|
|
7082
7073
|
}
|
|
7083
7074
|
}
|
|
7084
|
-
function
|
|
7075
|
+
function Ir(e, t) {
|
|
7085
7076
|
if (e && e.includes(je.sep))
|
|
7086
7077
|
throw new Error(
|
|
7087
7078
|
"`" + t + "` cannot be a path: did not expect `" + je.sep + "`"
|
|
7088
7079
|
);
|
|
7089
7080
|
}
|
|
7090
|
-
function
|
|
7081
|
+
function Rr(e, t) {
|
|
7091
7082
|
if (!e)
|
|
7092
7083
|
throw new Error("`" + t + "` cannot be empty");
|
|
7093
7084
|
}
|
|
@@ -7263,7 +7254,7 @@ class xa extends Vy {
|
|
|
7263
7254
|
*/
|
|
7264
7255
|
parse(t) {
|
|
7265
7256
|
this.freeze();
|
|
7266
|
-
const n =
|
|
7257
|
+
const n = In(t), r = this.parser || this.Parser;
|
|
7267
7258
|
return Nr("parse", r), r(String(n), n);
|
|
7268
7259
|
}
|
|
7269
7260
|
/**
|
|
@@ -7312,7 +7303,7 @@ class xa extends Vy {
|
|
|
7312
7303
|
const r = this;
|
|
7313
7304
|
return this.freeze(), Nr("process", this.parser || this.Parser), Cr("process", this.compiler || this.Compiler), n ? a(void 0, n) : new Promise(a);
|
|
7314
7305
|
function a(i, o) {
|
|
7315
|
-
const s =
|
|
7306
|
+
const s = In(t), l = (
|
|
7316
7307
|
/** @type {HeadTree extends undefined ? Node : HeadTree} */
|
|
7317
7308
|
/** @type {unknown} */
|
|
7318
7309
|
r.parse(s)
|
|
@@ -7417,7 +7408,7 @@ class xa extends Vy {
|
|
|
7417
7408
|
const a = this.transformers;
|
|
7418
7409
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? i(void 0, r) : new Promise(i);
|
|
7419
7410
|
function i(o, s) {
|
|
7420
|
-
const l =
|
|
7411
|
+
const l = In(n);
|
|
7421
7412
|
a.run(t, l, u);
|
|
7422
7413
|
function u(p, c, d) {
|
|
7423
7414
|
const g = (
|
|
@@ -7483,7 +7474,7 @@ class xa extends Vy {
|
|
|
7483
7474
|
*/
|
|
7484
7475
|
stringify(t, n) {
|
|
7485
7476
|
this.freeze();
|
|
7486
|
-
const r =
|
|
7477
|
+
const r = In(n), a = this.compiler || this.Compiler;
|
|
7487
7478
|
return Cr("stringify", a), Dc(t), a(t, r);
|
|
7488
7479
|
}
|
|
7489
7480
|
/**
|
|
@@ -7626,7 +7617,7 @@ function Mc(e, t, n) {
|
|
|
7626
7617
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
7627
7618
|
);
|
|
7628
7619
|
}
|
|
7629
|
-
function
|
|
7620
|
+
function In(e) {
|
|
7630
7621
|
return Yy(e) ? e : new dp(e);
|
|
7631
7622
|
}
|
|
7632
7623
|
function Yy(e) {
|
|
@@ -7693,7 +7684,7 @@ function rE(e, t) {
|
|
|
7693
7684
|
components: a,
|
|
7694
7685
|
ignoreInvalidStyle: !0,
|
|
7695
7686
|
jsx: P,
|
|
7696
|
-
jsxs:
|
|
7687
|
+
jsxs: Re,
|
|
7697
7688
|
passKeys: !0,
|
|
7698
7689
|
passNode: !0
|
|
7699
7690
|
});
|
|
@@ -8016,36 +8007,36 @@ function bp(e) {
|
|
|
8016
8007
|
}
|
|
8017
8008
|
function kE(e, t, n, r, a, i, o, s, l) {
|
|
8018
8009
|
var u, p = bp(e.value), c = [], d = -1, g = 0;
|
|
8019
|
-
function f(_,
|
|
8020
|
-
var
|
|
8010
|
+
function f(_, T) {
|
|
8011
|
+
var R = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
8021
8012
|
return Un({
|
|
8022
8013
|
children: _,
|
|
8023
|
-
lineNumber:
|
|
8014
|
+
lineNumber: T,
|
|
8024
8015
|
lineNumberStyle: s,
|
|
8025
8016
|
largestLineNumber: o,
|
|
8026
8017
|
showInlineLineNumbers: a,
|
|
8027
8018
|
lineProps: n,
|
|
8028
|
-
className:
|
|
8019
|
+
className: R,
|
|
8029
8020
|
showLineNumbers: r,
|
|
8030
8021
|
wrapLongLines: l,
|
|
8031
8022
|
wrapLines: t
|
|
8032
8023
|
});
|
|
8033
8024
|
}
|
|
8034
|
-
function m(_,
|
|
8035
|
-
if (r &&
|
|
8036
|
-
var
|
|
8037
|
-
_.unshift(fp(
|
|
8025
|
+
function m(_, T) {
|
|
8026
|
+
if (r && T && a) {
|
|
8027
|
+
var R = mp(s, T, o);
|
|
8028
|
+
_.unshift(fp(T, R));
|
|
8038
8029
|
}
|
|
8039
8030
|
return _;
|
|
8040
8031
|
}
|
|
8041
|
-
function y(_,
|
|
8042
|
-
var
|
|
8043
|
-
return t ||
|
|
8032
|
+
function y(_, T) {
|
|
8033
|
+
var R = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
|
|
8034
|
+
return t || R.length > 0 ? f(_, T, R) : m(_, T);
|
|
8044
8035
|
}
|
|
8045
8036
|
for (var b = function() {
|
|
8046
|
-
var
|
|
8037
|
+
var T = p[g], R = T.children[0].value, O = SE(R);
|
|
8047
8038
|
if (O) {
|
|
8048
|
-
var M =
|
|
8039
|
+
var M = R.split(`
|
|
8049
8040
|
`);
|
|
8050
8041
|
M.forEach(function(k, C) {
|
|
8051
8042
|
var x = r && c.length + i, L = {
|
|
@@ -8056,7 +8047,7 @@ function kE(e, t, n, r, a, i, o, s, l) {
|
|
|
8056
8047
|
if (C === 0) {
|
|
8057
8048
|
var U = p.slice(d + 1, g).concat(Un({
|
|
8058
8049
|
children: [L],
|
|
8059
|
-
className:
|
|
8050
|
+
className: T.properties.className
|
|
8060
8051
|
})), B = y(U, x);
|
|
8061
8052
|
c.push(B);
|
|
8062
8053
|
} else if (C === M.length - 1) {
|
|
@@ -8067,15 +8058,15 @@ function kE(e, t, n, r, a, i, o, s, l) {
|
|
|
8067
8058
|
if (H) {
|
|
8068
8059
|
var $ = Un({
|
|
8069
8060
|
children: [z],
|
|
8070
|
-
className:
|
|
8061
|
+
className: T.properties.className
|
|
8071
8062
|
});
|
|
8072
8063
|
p.splice(g + 1, 0, $);
|
|
8073
8064
|
} else {
|
|
8074
|
-
var W = [z], E = y(W, x,
|
|
8065
|
+
var W = [z], E = y(W, x, T.properties.className);
|
|
8075
8066
|
c.push(E);
|
|
8076
8067
|
}
|
|
8077
8068
|
} else {
|
|
8078
|
-
var K = [L], ne = y(K, x,
|
|
8069
|
+
var K = [L], ne = y(K, x, T.properties.className);
|
|
8079
8070
|
c.push(ne);
|
|
8080
8071
|
}
|
|
8081
8072
|
}), d = g;
|
|
@@ -8127,25 +8118,25 @@ function _E(e) {
|
|
|
8127
8118
|
};
|
|
8128
8119
|
}
|
|
8129
8120
|
}
|
|
8130
|
-
function
|
|
8121
|
+
function IE(e, t) {
|
|
8131
8122
|
return function(r) {
|
|
8132
8123
|
var a, i, o = r.language, s = r.children, l = r.style, u = l === void 0 ? t : l, p = r.customStyle, c = p === void 0 ? {} : p, d = r.codeTagProps, g = d === void 0 ? {
|
|
8133
8124
|
className: o ? "language-".concat(o) : void 0,
|
|
8134
8125
|
style: ut(ut({}, u['code[class*="language-"]']), u['code[class*="language-'.concat(o, '"]')])
|
|
8135
|
-
} : d, f = r.useInlineStyles, m = f === void 0 ? !0 : f, y = r.showLineNumbers, b = y === void 0 ? !1 : y, S = r.showInlineLineNumbers, w = S === void 0 ? !0 : S, v = r.startingLineNumber, _ = v === void 0 ? 1 : v,
|
|
8126
|
+
} : d, f = r.useInlineStyles, m = f === void 0 ? !0 : f, y = r.showLineNumbers, b = y === void 0 ? !1 : y, S = r.showInlineLineNumbers, w = S === void 0 ? !0 : S, v = r.startingLineNumber, _ = v === void 0 ? 1 : v, T = r.lineNumberContainerStyle, R = r.lineNumberStyle, O = R === void 0 ? {} : R, M = r.wrapLines, k = r.wrapLongLines, C = k === void 0 ? !1 : k, x = r.lineProps, L = x === void 0 ? {} : x, U = r.renderer, B = r.PreTag, H = B === void 0 ? "pre" : B, z = r.CodeTag, $ = z === void 0 ? "code" : z, W = r.code, E = W === void 0 ? (Array.isArray(s) ? s[0] : s) || "" : W, K = r.astGenerator, ne = oE(r, yE);
|
|
8136
8127
|
K = K || e;
|
|
8137
|
-
var
|
|
8138
|
-
containerStyle:
|
|
8128
|
+
var A = b ? /* @__PURE__ */ Ve.createElement(AE, {
|
|
8129
|
+
containerStyle: T,
|
|
8139
8130
|
codeStyle: g.style || {},
|
|
8140
8131
|
numberStyle: O,
|
|
8141
8132
|
startingLineNumber: _,
|
|
8142
8133
|
codeString: E
|
|
8143
8134
|
}) : null, oe = u.hljs || u['pre[class*="language-"]'] || {
|
|
8144
8135
|
backgroundColor: "#fff"
|
|
8145
|
-
},
|
|
8136
|
+
}, we = hp(K) ? "hljs" : "prismjs", te = m ? Object.assign({}, ne, {
|
|
8146
8137
|
style: Object.assign({}, oe, c)
|
|
8147
8138
|
}) : Object.assign({}, ne, {
|
|
8148
|
-
className: ne.className ? "".concat(
|
|
8139
|
+
className: ne.className ? "".concat(we, " ").concat(ne.className) : we,
|
|
8149
8140
|
style: Object.assign({}, c)
|
|
8150
8141
|
});
|
|
8151
8142
|
if (C ? g.style = ut({
|
|
@@ -8153,7 +8144,7 @@ function RE(e, t) {
|
|
|
8153
8144
|
}, g.style) : g.style = ut({
|
|
8154
8145
|
whiteSpace: "pre"
|
|
8155
8146
|
}, g.style), !K)
|
|
8156
|
-
return /* @__PURE__ */ Ve.createElement(H, te,
|
|
8147
|
+
return /* @__PURE__ */ Ve.createElement(H, te, A, /* @__PURE__ */ Ve.createElement($, g, E));
|
|
8157
8148
|
(M === void 0 && U || C) && (M = !0), U = U || vE;
|
|
8158
8149
|
var ke = [{
|
|
8159
8150
|
type: "text",
|
|
@@ -8166,14 +8157,14 @@ function RE(e, t) {
|
|
|
8166
8157
|
});
|
|
8167
8158
|
de.language === null && (de.value = ke);
|
|
8168
8159
|
var ve = (a = (i = E.match(/\n/g)) === null || i === void 0 ? void 0 : i.length) !== null && a !== void 0 ? a : 0, _e = _ + ve, j = kE(de, M, L, b, w, _, _e, O, C);
|
|
8169
|
-
return /* @__PURE__ */ Ve.createElement(H, te, /* @__PURE__ */ Ve.createElement($, g, !w &&
|
|
8160
|
+
return /* @__PURE__ */ Ve.createElement(H, te, /* @__PURE__ */ Ve.createElement($, g, !w && A, U({
|
|
8170
8161
|
rows: j,
|
|
8171
8162
|
stylesheet: u,
|
|
8172
8163
|
useInlineStyles: m
|
|
8173
8164
|
})));
|
|
8174
8165
|
};
|
|
8175
8166
|
}
|
|
8176
|
-
const
|
|
8167
|
+
const RE = ["abap", "abnf", "actionscript", "ada", "agda", "al", "antlr4", "apacheconf", "apex", "apl", "applescript", "aql", "arduino", "arff", "armasm", "arturo", "asciidoc", "asm6502", "asmatmel", "aspnet", "autohotkey", "autoit", "avisynth", "avro-idl", "awk", "bash", "basic", "batch", "bbcode", "bbj", "bicep", "birb", "bison", "bnf", "bqn", "brainfuck", "brightscript", "bro", "bsl", "c", "cfscript", "chaiscript", "cil", "cilkc", "cilkcpp", "clike", "clojure", "cmake", "cobol", "coffeescript", "concurnas", "cooklang", "coq", "cpp", "crystal", "csharp", "cshtml", "csp", "css-extras", "css", "csv", "cue", "cypher", "d", "dart", "dataweave", "dax", "dhall", "diff", "django", "dns-zone-file", "docker", "dot", "ebnf", "editorconfig", "eiffel", "ejs", "elixir", "elm", "erb", "erlang", "etlua", "excel-formula", "factor", "false", "firestore-security-rules", "flow", "fortran", "fsharp", "ftl", "gap", "gcode", "gdscript", "gedcom", "gettext", "gherkin", "git", "glsl", "gml", "gn", "go-module", "go", "gradle", "graphql", "groovy", "haml", "handlebars", "haskell", "haxe", "hcl", "hlsl", "hoon", "hpkp", "hsts", "http", "ichigojam", "icon", "icu-message-format", "idris", "iecst", "ignore", "inform7", "ini", "io", "j", "java", "javadoc", "javadoclike", "javascript", "javastacktrace", "jexl", "jolie", "jq", "js-extras", "js-templates", "jsdoc", "json", "json5", "jsonp", "jsstacktrace", "jsx", "julia", "keepalived", "keyman", "kotlin", "kumir", "kusto", "latex", "latte", "less", "lilypond", "linker-script", "liquid", "lisp", "livescript", "llvm", "log", "lolcode", "lua", "magma", "makefile", "markdown", "markup-templating", "markup", "mata", "matlab", "maxscript", "mel", "mermaid", "metafont", "mizar", "mongodb", "monkey", "moonscript", "n1ql", "n4js", "nand2tetris-hdl", "naniscript", "nasm", "neon", "nevod", "nginx", "nim", "nix", "nsis", "objectivec", "ocaml", "odin", "opencl", "openqasm", "oz", "parigp", "parser", "pascal", "pascaligo", "pcaxis", "peoplecode", "perl", "php-extras", "php", "phpdoc", "plant-uml", "plsql", "powerquery", "powershell", "processing", "prolog", "promql", "properties", "protobuf", "psl", "pug", "puppet", "pure", "purebasic", "purescript", "python", "q", "qml", "qore", "qsharp", "r", "racket", "reason", "regex", "rego", "renpy", "rescript", "rest", "rip", "roboconf", "robotframework", "ruby", "rust", "sas", "sass", "scala", "scheme", "scss", "shell-session", "smali", "smalltalk", "smarty", "sml", "solidity", "solution-file", "soy", "sparql", "splunk-spl", "sqf", "sql", "squirrel", "stan", "stata", "stylus", "supercollider", "swift", "systemd", "t4-cs", "t4-templating", "t4-vb", "tap", "tcl", "textile", "toml", "tremor", "tsx", "tt2", "turtle", "twig", "typescript", "typoscript", "unrealscript", "uorazor", "uri", "v", "vala", "vbnet", "velocity", "verilog", "vhdl", "vim", "visual-basic", "warpscript", "wasm", "web-idl", "wgsl", "wiki", "wolfram", "wren", "xeora", "xml-doc", "xojo", "xquery", "yaml", "yang", "zig"], zc = /[#.]/g;
|
|
8177
8168
|
function NE(e, t) {
|
|
8178
8169
|
const n = e || "", r = {};
|
|
8179
8170
|
let a = 0, i, o;
|
|
@@ -8525,35 +8516,35 @@ function $E(e, t) {
|
|
|
8525
8516
|
L === 88 || L === 120 ? (_ = "hexadecimal", v = ++w) : _ = "decimal";
|
|
8526
8517
|
} else
|
|
8527
8518
|
_ = "named";
|
|
8528
|
-
let
|
|
8519
|
+
let T = "", R = "", O = "";
|
|
8529
8520
|
const M = _ === "named" ? jc : _ === "decimal" ? Ep : PE;
|
|
8530
8521
|
for (v--; ++v <= e.length; ) {
|
|
8531
8522
|
const L = e.charCodeAt(v);
|
|
8532
8523
|
if (!M(L))
|
|
8533
8524
|
break;
|
|
8534
|
-
O += String.fromCharCode(L), _ === "named" && FE.includes(O) && (
|
|
8525
|
+
O += String.fromCharCode(L), _ === "named" && FE.includes(O) && (T = O, R = ln(O));
|
|
8535
8526
|
}
|
|
8536
8527
|
let k = e.charCodeAt(v) === 59;
|
|
8537
8528
|
if (k) {
|
|
8538
8529
|
v++;
|
|
8539
8530
|
const L = _ === "named" ? ln(O) : !1;
|
|
8540
|
-
L && (
|
|
8531
|
+
L && (T = O, R = L);
|
|
8541
8532
|
}
|
|
8542
8533
|
let C = 1 + v - S, x = "";
|
|
8543
8534
|
if (!(!k && n.nonTerminated === !1)) if (!O)
|
|
8544
8535
|
_ !== "named" && m(4, C);
|
|
8545
8536
|
else if (_ === "named") {
|
|
8546
|
-
if (k && !
|
|
8537
|
+
if (k && !R)
|
|
8547
8538
|
m(5, 1);
|
|
8548
|
-
else if (
|
|
8549
|
-
const L =
|
|
8539
|
+
else if (T !== O && (v = w + T.length, C = 1 + v - w, k = !1), !k) {
|
|
8540
|
+
const L = T ? 1 : 3;
|
|
8550
8541
|
if (n.attribute) {
|
|
8551
8542
|
const U = e.charCodeAt(v);
|
|
8552
|
-
U === 61 ? (m(L, C),
|
|
8543
|
+
U === 61 ? (m(L, C), R = "") : jc(U) ? R = "" : m(L, C);
|
|
8553
8544
|
} else
|
|
8554
8545
|
m(L, C);
|
|
8555
8546
|
}
|
|
8556
|
-
x =
|
|
8547
|
+
x = R;
|
|
8557
8548
|
} else {
|
|
8558
8549
|
k || m(2, C);
|
|
8559
8550
|
let L = Number.parseInt(
|
|
@@ -8614,7 +8605,7 @@ function zE(e) {
|
|
|
8614
8605
|
function GE(e) {
|
|
8615
8606
|
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;
|
|
8616
8607
|
}
|
|
8617
|
-
var HE = 0,
|
|
8608
|
+
var HE = 0, Rn = {}, ce = {
|
|
8618
8609
|
/**
|
|
8619
8610
|
* A namespace for utility methods.
|
|
8620
8611
|
*
|
|
@@ -8702,10 +8693,10 @@ var HE = 0, In = {}, ce = {
|
|
|
8702
8693
|
/**
|
|
8703
8694
|
* The grammar for plain, unformatted text.
|
|
8704
8695
|
*/
|
|
8705
|
-
plain:
|
|
8706
|
-
plaintext:
|
|
8707
|
-
text:
|
|
8708
|
-
txt:
|
|
8696
|
+
plain: Rn,
|
|
8697
|
+
plaintext: Rn,
|
|
8698
|
+
text: Rn,
|
|
8699
|
+
txt: Rn,
|
|
8709
8700
|
/**
|
|
8710
8701
|
* Creates a deep copy of the language with the given id and appends the given tokens.
|
|
8711
8702
|
*
|
|
@@ -8983,14 +8974,14 @@ function Sp(e, t, n, r, a, i) {
|
|
|
8983
8974
|
if (d) {
|
|
8984
8975
|
if (v = Vc(m, b, e, c), !v || v.index >= e.length)
|
|
8985
8976
|
break;
|
|
8986
|
-
var O = v.index, _ = v.index + v[0].length,
|
|
8987
|
-
for (
|
|
8988
|
-
y = y.next,
|
|
8989
|
-
if (
|
|
8977
|
+
var O = v.index, _ = v.index + v[0].length, T = b;
|
|
8978
|
+
for (T += y.value.length; O >= T; )
|
|
8979
|
+
y = y.next, T += y.value.length;
|
|
8980
|
+
if (T -= y.value.length, b = T, y.value instanceof an)
|
|
8990
8981
|
continue;
|
|
8991
|
-
for (var
|
|
8992
|
-
w++,
|
|
8993
|
-
w--, S = e.slice(b,
|
|
8982
|
+
for (var R = y; R !== t.tail && (T < _ || typeof R.value == "string"); R = R.next)
|
|
8983
|
+
w++, T += R.value.length;
|
|
8984
|
+
w--, S = e.slice(b, T), v.index -= b;
|
|
8994
8985
|
} else if (v = Vc(m, 0, S, c), !v)
|
|
8995
8986
|
continue;
|
|
8996
8987
|
var O = v.index, M = v[0], k = S.slice(0, O), C = S.slice(O + M.length), x = b + S.length;
|
|
@@ -9334,9 +9325,9 @@ const eS = {
|
|
|
9334
9325
|
fontStyle: "italic"
|
|
9335
9326
|
}
|
|
9336
9327
|
};
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
function
|
|
9328
|
+
ge.displayName = "markup";
|
|
9329
|
+
ge.aliases = ["atom", "html", "mathml", "rss", "ssml", "svg", "xml"];
|
|
9330
|
+
function ge(e) {
|
|
9340
9331
|
e.languages.markup = {
|
|
9341
9332
|
comment: {
|
|
9342
9333
|
pattern: /<!--(?:(?!<!--)[\s\S])*?-->/,
|
|
@@ -9701,9 +9692,9 @@ function Oa(e) {
|
|
|
9701
9692
|
};
|
|
9702
9693
|
})(e);
|
|
9703
9694
|
}
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
function
|
|
9695
|
+
Ee.displayName = "javascript";
|
|
9696
|
+
Ee.aliases = ["js"];
|
|
9697
|
+
function Ee(e) {
|
|
9707
9698
|
e.register(X), e.languages.javascript = e.languages.extend("clike", {
|
|
9708
9699
|
"class-name": [
|
|
9709
9700
|
e.languages.clike["class-name"],
|
|
@@ -9952,7 +9943,7 @@ function Da(e) {
|
|
|
9952
9943
|
Ma.displayName = "actionscript";
|
|
9953
9944
|
Ma.aliases = [];
|
|
9954
9945
|
function Ma(e) {
|
|
9955
|
-
e.register(
|
|
9946
|
+
e.register(Ee), e.languages.actionscript = e.languages.extend("javascript", {
|
|
9956
9947
|
keyword: /\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,
|
|
9957
9948
|
operator: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/
|
|
9958
9949
|
}), e.languages.actionscript["class-name"].alias = "function", delete e.languages.actionscript.parameter, delete e.languages.actionscript["literal-property"], e.languages.markup && e.languages.insertBefore("actionscript", "string", {
|
|
@@ -10942,7 +10933,7 @@ function sr(e) {
|
|
|
10942
10933
|
Ya.displayName = "markdown";
|
|
10943
10934
|
Ya.aliases = ["md"];
|
|
10944
10935
|
function Ya(e) {
|
|
10945
|
-
e.register(
|
|
10936
|
+
e.register(ge), function(t) {
|
|
10946
10937
|
var n = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
10947
10938
|
function r(s) {
|
|
10948
10939
|
return s = s.replace(/<inner>/g, function() {
|
|
@@ -11549,8 +11540,8 @@ jt.aliases = ["cs", "dotnet"];
|
|
|
11549
11540
|
function jt(e) {
|
|
11550
11541
|
e.register(X), function(t) {
|
|
11551
11542
|
function n(E, K) {
|
|
11552
|
-
return E.replace(/<<(\d+)>>/g, function(ne,
|
|
11553
|
-
return "(?:" + K[+
|
|
11543
|
+
return E.replace(/<<(\d+)>>/g, function(ne, A) {
|
|
11544
|
+
return "(?:" + K[+A] + ")";
|
|
11554
11545
|
});
|
|
11555
11546
|
}
|
|
11556
11547
|
function r(E, K, ne) {
|
|
@@ -11602,7 +11593,7 @@ function jt(e) {
|
|
|
11602
11593
|
), _ = {
|
|
11603
11594
|
keyword: l,
|
|
11604
11595
|
punctuation: /[<>()?,.:[\]]/
|
|
11605
|
-
},
|
|
11596
|
+
}, T = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, R = /"(?:\\.|[^\\"\r\n])*"/.source, O = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
11606
11597
|
t.languages.csharp = t.languages.extend("clike", {
|
|
11607
11598
|
string: [
|
|
11608
11599
|
{
|
|
@@ -11611,7 +11602,7 @@ function jt(e) {
|
|
|
11611
11602
|
greedy: !0
|
|
11612
11603
|
},
|
|
11613
11604
|
{
|
|
11614
|
-
pattern: r(/(^|[^@$\\])<<0>>/.source, [
|
|
11605
|
+
pattern: r(/(^|[^@$\\])<<0>>/.source, [R]),
|
|
11615
11606
|
lookbehind: !0,
|
|
11616
11607
|
greedy: !0
|
|
11617
11608
|
}
|
|
@@ -11812,7 +11803,7 @@ function jt(e) {
|
|
|
11812
11803
|
}
|
|
11813
11804
|
}
|
|
11814
11805
|
});
|
|
11815
|
-
var M =
|
|
11806
|
+
var M = R + "|" + T, k = n(
|
|
11816
11807
|
/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,
|
|
11817
11808
|
[M]
|
|
11818
11809
|
), C = a(
|
|
@@ -11919,7 +11910,7 @@ function jt(e) {
|
|
|
11919
11910
|
}
|
|
11920
11911
|
],
|
|
11921
11912
|
char: {
|
|
11922
|
-
pattern: RegExp(
|
|
11913
|
+
pattern: RegExp(T),
|
|
11923
11914
|
greedy: !0
|
|
11924
11915
|
}
|
|
11925
11916
|
}), t.languages.dotnet = t.languages.cs = t.languages.csharp;
|
|
@@ -11928,7 +11919,7 @@ function jt(e) {
|
|
|
11928
11919
|
Za.displayName = "aspnet";
|
|
11929
11920
|
Za.aliases = [];
|
|
11930
11921
|
function Za(e) {
|
|
11931
|
-
e.register(jt), e.register(
|
|
11922
|
+
e.register(jt), e.register(ge), e.languages.aspnet = e.languages.extend("markup", {
|
|
11932
11923
|
"page-directive": {
|
|
11933
11924
|
pattern: /<%\s*@.*%>/,
|
|
11934
11925
|
alias: "tag",
|
|
@@ -13213,7 +13204,7 @@ function ki(e) {
|
|
|
13213
13204
|
vi.displayName = "coffeescript";
|
|
13214
13205
|
vi.aliases = ["coffee"];
|
|
13215
13206
|
function vi(e) {
|
|
13216
|
-
e.register(
|
|
13207
|
+
e.register(Ee), function(t) {
|
|
13217
13208
|
var n = /#(?!\{).+/, r = {
|
|
13218
13209
|
pattern: /#\{[^}]+\}/,
|
|
13219
13210
|
alias: "variable"
|
|
@@ -13352,9 +13343,9 @@ function _i(e) {
|
|
|
13352
13343
|
}
|
|
13353
13344
|
}), e.languages.conc = e.languages.concurnas;
|
|
13354
13345
|
}
|
|
13355
|
-
|
|
13356
|
-
|
|
13357
|
-
function
|
|
13346
|
+
Ii.displayName = "csp";
|
|
13347
|
+
Ii.aliases = [];
|
|
13348
|
+
function Ii(e) {
|
|
13358
13349
|
(function(t) {
|
|
13359
13350
|
function n(r) {
|
|
13360
13351
|
return RegExp(
|
|
@@ -13413,9 +13404,9 @@ function Ri(e) {
|
|
|
13413
13404
|
};
|
|
13414
13405
|
})(e);
|
|
13415
13406
|
}
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
function
|
|
13407
|
+
Ri.displayName = "cooklang";
|
|
13408
|
+
Ri.aliases = [];
|
|
13409
|
+
function Ri(e) {
|
|
13419
13410
|
(function(t) {
|
|
13420
13411
|
var n = /(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source, r = /[^{}@#]+/.source, a = /\{[^}#@]*\}/.source, i = r + a, o = /(?:h|hours|hrs|m|min|minutes)/.source, s = {
|
|
13421
13412
|
pattern: /\{[^{}]*\}/,
|
|
@@ -14398,10 +14389,10 @@ function $i(e) {
|
|
|
14398
14389
|
});
|
|
14399
14390
|
})(e);
|
|
14400
14391
|
}
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
function
|
|
14404
|
-
e.register(
|
|
14392
|
+
Se.displayName = "markup-templating";
|
|
14393
|
+
Se.aliases = [];
|
|
14394
|
+
function Se(e) {
|
|
14395
|
+
e.register(ge), function(t) {
|
|
14405
14396
|
function n(r, a) {
|
|
14406
14397
|
return "___" + r.toUpperCase() + a + "___";
|
|
14407
14398
|
}
|
|
@@ -14471,7 +14462,7 @@ function we(e) {
|
|
|
14471
14462
|
zi.displayName = "django";
|
|
14472
14463
|
zi.aliases = ["jinja2"];
|
|
14473
14464
|
function zi(e) {
|
|
14474
|
-
e.register(
|
|
14465
|
+
e.register(Se), function(t) {
|
|
14475
14466
|
t.languages.django = {
|
|
14476
14467
|
comment: /^\{#[\s\S]*?#\}$/,
|
|
14477
14468
|
tag: {
|
|
@@ -14819,7 +14810,7 @@ function qi(e) {
|
|
|
14819
14810
|
Yi.displayName = "ejs";
|
|
14820
14811
|
Yi.aliases = ["eta"];
|
|
14821
14812
|
function Yi(e) {
|
|
14822
|
-
e.register(
|
|
14813
|
+
e.register(Ee), e.register(Se), function(t) {
|
|
14823
14814
|
t.languages.ejs = {
|
|
14824
14815
|
delimiter: {
|
|
14825
14816
|
pattern: /^<%[-_=]?|[-_]?%>$/,
|
|
@@ -15018,7 +15009,7 @@ function ur(e) {
|
|
|
15018
15009
|
Zi.displayName = "etlua";
|
|
15019
15010
|
Zi.aliases = [];
|
|
15020
15011
|
function Zi(e) {
|
|
15021
|
-
e.register(ur), e.register(
|
|
15012
|
+
e.register(ur), e.register(Se), function(t) {
|
|
15022
15013
|
t.languages.etlua = {
|
|
15023
15014
|
delimiter: {
|
|
15024
15015
|
pattern: /^<%[-=]?|-?%>$/,
|
|
@@ -15043,7 +15034,7 @@ function Zi(e) {
|
|
|
15043
15034
|
Qi.displayName = "erb";
|
|
15044
15035
|
Qi.aliases = [];
|
|
15045
15036
|
function Qi(e) {
|
|
15046
|
-
e.register(
|
|
15037
|
+
e.register(Se), e.register(Vt), function(t) {
|
|
15047
15038
|
t.languages.erb = {
|
|
15048
15039
|
delimiter: {
|
|
15049
15040
|
pattern: /^(\s*)<%=?|%>(?=\s*$)/,
|
|
@@ -16247,7 +16238,7 @@ function ao(e) {
|
|
|
16247
16238
|
io.displayName = "flow";
|
|
16248
16239
|
io.aliases = [];
|
|
16249
16240
|
function io(e) {
|
|
16250
|
-
e.register(
|
|
16241
|
+
e.register(Ee), function(t) {
|
|
16251
16242
|
t.languages.flow = t.languages.extend("javascript", {}), t.languages.insertBefore("flow", "keyword", {
|
|
16252
16243
|
type: [
|
|
16253
16244
|
{
|
|
@@ -16319,7 +16310,7 @@ function oo(e) {
|
|
|
16319
16310
|
so.displayName = "ftl";
|
|
16320
16311
|
so.aliases = [];
|
|
16321
16312
|
function so(e) {
|
|
16322
|
-
e.register(
|
|
16313
|
+
e.register(Se), function(t) {
|
|
16323
16314
|
for (var n = /[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source, r = 0; r < 2; r++)
|
|
16324
16315
|
n = n.replace(/<expr>/g, function() {
|
|
16325
16316
|
return n;
|
|
@@ -17269,10 +17260,10 @@ function _o(e) {
|
|
|
17269
17260
|
}
|
|
17270
17261
|
}), e.languages.scss.atrule.inside.rest = e.languages.scss;
|
|
17271
17262
|
}
|
|
17272
|
-
|
|
17273
|
-
|
|
17274
|
-
function
|
|
17275
|
-
e.register(
|
|
17263
|
+
Io.displayName = "textile";
|
|
17264
|
+
Io.aliases = [];
|
|
17265
|
+
function Io(e) {
|
|
17266
|
+
e.register(ge), function(t) {
|
|
17276
17267
|
var n = /\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source, r = /\)|\((?![^|()\n]+\))/.source;
|
|
17277
17268
|
function a(c, d) {
|
|
17278
17269
|
return RegExp(
|
|
@@ -17529,9 +17520,9 @@ function Ro(e) {
|
|
|
17529
17520
|
p.inline = l.inline, p.link = l.link, p.image = l.image, p.footnote = l.footnote, p.acronym = l.acronym, p.mark = l.mark;
|
|
17530
17521
|
}(e);
|
|
17531
17522
|
}
|
|
17532
|
-
|
|
17533
|
-
|
|
17534
|
-
function
|
|
17523
|
+
Ro.displayName = "haml";
|
|
17524
|
+
Ro.aliases = [];
|
|
17525
|
+
function Ro(e) {
|
|
17535
17526
|
e.register(Vt), function(t) {
|
|
17536
17527
|
t.languages.haml = {
|
|
17537
17528
|
// Multiline stuff should appear before the rest
|
|
@@ -17672,7 +17663,7 @@ function Io(e) {
|
|
|
17672
17663
|
No.displayName = "handlebars";
|
|
17673
17664
|
No.aliases = ["hbs", "mustache"];
|
|
17674
17665
|
function No(e) {
|
|
17675
|
-
e.register(
|
|
17666
|
+
e.register(Se), function(t) {
|
|
17676
17667
|
t.languages.handlebars = {
|
|
17677
17668
|
comment: /\{\{![\s\S]*?\}\}/,
|
|
17678
17669
|
delimiter: {
|
|
@@ -18740,7 +18731,7 @@ function Wt(e) {
|
|
|
18740
18731
|
qt.displayName = "php";
|
|
18741
18732
|
qt.aliases = [];
|
|
18742
18733
|
function qt(e) {
|
|
18743
|
-
e.register(
|
|
18734
|
+
e.register(Se), function(t) {
|
|
18744
18735
|
var n = /\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/, r = [
|
|
18745
18736
|
{
|
|
18746
18737
|
pattern: /\b(?:false|true)\b/i,
|
|
@@ -19164,7 +19155,7 @@ function qo(e) {
|
|
|
19164
19155
|
Yo.displayName = "javadoc";
|
|
19165
19156
|
Yo.aliases = [];
|
|
19166
19157
|
function Yo(e) {
|
|
19167
|
-
e.register(Wt), e.register(Yt), e.register(
|
|
19158
|
+
e.register(Wt), e.register(Yt), e.register(ge), function(t) {
|
|
19168
19159
|
var n = /(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m, r = /#\s*\w+(?:\s*\([^()]*\))?/.source, a = /(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(
|
|
19169
19160
|
/<mem>/g,
|
|
19170
19161
|
function() {
|
|
@@ -19519,7 +19510,7 @@ function Qo(e) {
|
|
|
19519
19510
|
Jo.displayName = "js-templates";
|
|
19520
19511
|
Jo.aliases = [];
|
|
19521
19512
|
function Jo(e) {
|
|
19522
|
-
e.register(
|
|
19513
|
+
e.register(Ee), function(t) {
|
|
19523
19514
|
var n = t.languages.javascript["template-string"], r = n.pattern.source, a = n.inside.interpolation, i = a.inside["interpolation-punctuation"], o = a.pattern.source;
|
|
19524
19515
|
function s(f, m) {
|
|
19525
19516
|
if (t.languages[f])
|
|
@@ -19608,15 +19599,15 @@ function Jo(e) {
|
|
|
19608
19599
|
) !== -1; )
|
|
19609
19600
|
;
|
|
19610
19601
|
return w[k] = M, k;
|
|
19611
|
-
}).join(""), _ = u(v, m, y),
|
|
19602
|
+
}).join(""), _ = u(v, m, y), T = Object.keys(w);
|
|
19612
19603
|
S = 0;
|
|
19613
|
-
function
|
|
19604
|
+
function R(O) {
|
|
19614
19605
|
for (var M = 0; M < O.length; M++) {
|
|
19615
|
-
if (S >=
|
|
19606
|
+
if (S >= T.length)
|
|
19616
19607
|
return;
|
|
19617
19608
|
var k = O[M];
|
|
19618
19609
|
if (typeof k == "string" || typeof k.content == "string") {
|
|
19619
|
-
var C =
|
|
19610
|
+
var C = T[S], x = typeof k == "string" ? k : (
|
|
19620
19611
|
/** @type {string} */
|
|
19621
19612
|
k.content
|
|
19622
19613
|
), L = x.indexOf(C);
|
|
@@ -19627,17 +19618,17 @@ function Jo(e) {
|
|
|
19627
19618
|
), H = x.substring(L + C.length), z = [];
|
|
19628
19619
|
if (U && z.push(U), z.push(B), H) {
|
|
19629
19620
|
var $ = [H];
|
|
19630
|
-
|
|
19621
|
+
R($), z.push.apply(z, $);
|
|
19631
19622
|
}
|
|
19632
19623
|
typeof k == "string" ? (O.splice.apply(O, [M, 1].concat(z)), M += z.length - 1) : k.content = z;
|
|
19633
19624
|
}
|
|
19634
19625
|
} else {
|
|
19635
19626
|
var W = k.content;
|
|
19636
|
-
Array.isArray(W) ?
|
|
19627
|
+
Array.isArray(W) ? R(W) : R([W]);
|
|
19637
19628
|
}
|
|
19638
19629
|
}
|
|
19639
19630
|
}
|
|
19640
|
-
return
|
|
19631
|
+
return R(_), new t.Token(
|
|
19641
19632
|
y,
|
|
19642
19633
|
_,
|
|
19643
19634
|
"language-" + y,
|
|
@@ -19667,10 +19658,10 @@ function Jo(e) {
|
|
|
19667
19658
|
if (w.type === "template-string") {
|
|
19668
19659
|
var _ = v[1];
|
|
19669
19660
|
if (v.length === 3 && typeof _ != "string" && _.type === "embedded-code") {
|
|
19670
|
-
var
|
|
19661
|
+
var T = g(_), R = _.alias, O = Array.isArray(R) ? R[0] : R, M = t.languages[O];
|
|
19671
19662
|
if (!M)
|
|
19672
19663
|
continue;
|
|
19673
|
-
v[1] = c(
|
|
19664
|
+
v[1] = c(T, M, O);
|
|
19674
19665
|
}
|
|
19675
19666
|
} else
|
|
19676
19667
|
m(v);
|
|
@@ -19687,7 +19678,7 @@ function Jo(e) {
|
|
|
19687
19678
|
Sn.displayName = "typescript";
|
|
19688
19679
|
Sn.aliases = ["ts"];
|
|
19689
19680
|
function Sn(e) {
|
|
19690
|
-
e.register(
|
|
19681
|
+
e.register(Ee), function(t) {
|
|
19691
19682
|
t.languages.typescript = t.languages.extend("javascript", {
|
|
19692
19683
|
"class-name": {
|
|
19693
19684
|
pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,
|
|
@@ -19736,7 +19727,7 @@ function Sn(e) {
|
|
|
19736
19727
|
es.displayName = "jsdoc";
|
|
19737
19728
|
es.aliases = [];
|
|
19738
19729
|
function es(e) {
|
|
19739
|
-
e.register(Yt), e.register(
|
|
19730
|
+
e.register(Yt), e.register(Ee), e.register(Sn), function(t) {
|
|
19740
19731
|
var n = t.languages.javascript, r = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, a = "(@(?:arg|argument|param|property)\\s+(?:" + r + "\\s+)?)";
|
|
19741
19732
|
t.languages.jsdoc = t.languages.extend("javadoclike", {
|
|
19742
19733
|
parameter: {
|
|
@@ -19819,7 +19810,7 @@ function es(e) {
|
|
|
19819
19810
|
ts.displayName = "n4js";
|
|
19820
19811
|
ts.aliases = ["n4jsd"];
|
|
19821
19812
|
function ts(e) {
|
|
19822
|
-
e.register(
|
|
19813
|
+
e.register(Ee), e.languages.n4js = e.languages.extend("javascript", {
|
|
19823
19814
|
// Keywords from N4JS language spec: https://numberfour.github.io/n4js/spec/N4JSSpec.html
|
|
19824
19815
|
keyword: /\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/
|
|
19825
19816
|
}), e.languages.insertBefore("n4js", "constant", {
|
|
@@ -19833,7 +19824,7 @@ function ts(e) {
|
|
|
19833
19824
|
ns.displayName = "js-extras";
|
|
19834
19825
|
ns.aliases = [];
|
|
19835
19826
|
function ns(e) {
|
|
19836
|
-
e.register(
|
|
19827
|
+
e.register(Ee), function(t) {
|
|
19837
19828
|
t.languages.insertBefore("javascript", "function-variable", {
|
|
19838
19829
|
"method-variable": {
|
|
19839
19830
|
pattern: RegExp(
|
|
@@ -20445,7 +20436,7 @@ function ps(e) {
|
|
|
20445
20436
|
gs.displayName = "latte";
|
|
20446
20437
|
gs.aliases = [];
|
|
20447
20438
|
function gs(e) {
|
|
20448
|
-
e.register(X), e.register(
|
|
20439
|
+
e.register(X), e.register(Se), e.register(qt), function(t) {
|
|
20449
20440
|
t.languages.latte = {
|
|
20450
20441
|
comment: /^\{\*[\s\S]*/,
|
|
20451
20442
|
"latte-tag": {
|
|
@@ -20700,7 +20691,7 @@ function fs(e) {
|
|
|
20700
20691
|
ms.displayName = "liquid";
|
|
20701
20692
|
ms.aliases = [];
|
|
20702
20693
|
function ms(e) {
|
|
20703
|
-
e.register(
|
|
20694
|
+
e.register(Se), e.languages.liquid = {
|
|
20704
20695
|
comment: {
|
|
20705
20696
|
pattern: /(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,
|
|
20706
20697
|
lookbehind: !0
|
|
@@ -21582,9 +21573,9 @@ function _s(e) {
|
|
|
21582
21573
|
punctuation: /[(){};]/
|
|
21583
21574
|
};
|
|
21584
21575
|
}
|
|
21585
|
-
|
|
21586
|
-
|
|
21587
|
-
function
|
|
21576
|
+
Is.displayName = "metafont";
|
|
21577
|
+
Is.aliases = [];
|
|
21578
|
+
function Is(e) {
|
|
21588
21579
|
e.languages.metafont = {
|
|
21589
21580
|
// Syntax of METAFONT with the added (public) elements of PlainMETAFONT. Except for internal quantities they are expected to be rarely redefined. Freely inspired by the syntax of Christophe Grandsire for the Crimson Editor.
|
|
21590
21581
|
comment: {
|
|
@@ -21670,9 +21661,9 @@ function Rs(e) {
|
|
|
21670
21661
|
}
|
|
21671
21662
|
};
|
|
21672
21663
|
}
|
|
21673
|
-
|
|
21674
|
-
|
|
21675
|
-
function
|
|
21664
|
+
Rs.displayName = "mizar";
|
|
21665
|
+
Rs.aliases = [];
|
|
21666
|
+
function Rs(e) {
|
|
21676
21667
|
e.languages.mizar = {
|
|
21677
21668
|
comment: /::.+/,
|
|
21678
21669
|
keyword: /@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,
|
|
@@ -21689,7 +21680,7 @@ function Is(e) {
|
|
|
21689
21680
|
Ns.displayName = "mongodb";
|
|
21690
21681
|
Ns.aliases = [];
|
|
21691
21682
|
function Ns(e) {
|
|
21692
|
-
e.register(
|
|
21683
|
+
e.register(Ee), function(t) {
|
|
21693
21684
|
var n = [
|
|
21694
21685
|
// query and projection
|
|
21695
21686
|
"$eq",
|
|
@@ -22930,7 +22921,7 @@ function Ys(e) {
|
|
|
22930
22921
|
Ks.displayName = "parser";
|
|
22931
22922
|
Ks.aliases = [];
|
|
22932
22923
|
function Ks(e) {
|
|
22933
|
-
e.register(
|
|
22924
|
+
e.register(ge), function(t) {
|
|
22934
22925
|
var n = t.languages.parser = t.languages.extend("markup", {
|
|
22935
22926
|
keyword: {
|
|
22936
22927
|
pattern: /(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,
|
|
@@ -24018,7 +24009,7 @@ function gl(e) {
|
|
|
24018
24009
|
fl.displayName = "twig";
|
|
24019
24010
|
fl.aliases = [];
|
|
24020
24011
|
function fl(e) {
|
|
24021
|
-
e.register(
|
|
24012
|
+
e.register(Se), e.languages.twig = {
|
|
24022
24013
|
comment: /^\{#[\s\S]*?#\}$/,
|
|
24023
24014
|
"tag-name": {
|
|
24024
24015
|
pattern: /(^\{%-?\s*)\w+/,
|
|
@@ -24058,7 +24049,7 @@ function fl(e) {
|
|
|
24058
24049
|
ml.displayName = "pug";
|
|
24059
24050
|
ml.aliases = [];
|
|
24060
24051
|
function ml(e) {
|
|
24061
|
-
e.register(
|
|
24052
|
+
e.register(Ee), e.register(ge), function(t) {
|
|
24062
24053
|
t.languages.pug = {
|
|
24063
24054
|
// Multiline stuff should appear before the rest
|
|
24064
24055
|
// This handles both single-line and multi-line comments
|
|
@@ -24767,7 +24758,7 @@ function wl(e) {
|
|
|
24767
24758
|
Al.displayName = "qml";
|
|
24768
24759
|
Al.aliases = [];
|
|
24769
24760
|
function Al(e) {
|
|
24770
|
-
e.register(
|
|
24761
|
+
e.register(Ee), function(t) {
|
|
24771
24762
|
for (var n = /"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source, r = /\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source, a = /(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g, function() {
|
|
24772
24763
|
return n;
|
|
24773
24764
|
}).replace(/<comment>/g, function() {
|
|
@@ -24909,7 +24900,7 @@ function vl(e) {
|
|
|
24909
24900
|
_l.displayName = "cshtml";
|
|
24910
24901
|
_l.aliases = ["razor"];
|
|
24911
24902
|
function _l(e) {
|
|
24912
|
-
e.register(jt), e.register(
|
|
24903
|
+
e.register(jt), e.register(ge), function(t) {
|
|
24913
24904
|
var n = /\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source, r = /@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source + "|" + /'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;
|
|
24914
24905
|
function a(S, w) {
|
|
24915
24906
|
for (var v = 0; v < w; v++)
|
|
@@ -25023,7 +25014,7 @@ function _l(e) {
|
|
|
25023
25014
|
pr.displayName = "jsx";
|
|
25024
25015
|
pr.aliases = [];
|
|
25025
25016
|
function pr(e) {
|
|
25026
|
-
e.register(
|
|
25017
|
+
e.register(Ee), e.register(ge), function(t) {
|
|
25027
25018
|
var n = t.util.clone(t.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, a = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, i = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
|
|
25028
25019
|
function o(u, p) {
|
|
25029
25020
|
return u = u.replace(/<S>/g, function() {
|
|
@@ -25090,9 +25081,9 @@ function pr(e) {
|
|
|
25090
25081
|
});
|
|
25091
25082
|
}(e);
|
|
25092
25083
|
}
|
|
25093
|
-
|
|
25094
|
-
|
|
25095
|
-
function
|
|
25084
|
+
Il.displayName = "tsx";
|
|
25085
|
+
Il.aliases = [];
|
|
25086
|
+
function Il(e) {
|
|
25096
25087
|
e.register(pr), e.register(Sn), function(t) {
|
|
25097
25088
|
var n = t.util.clone(t.languages.typescript);
|
|
25098
25089
|
t.languages.tsx = t.languages.extend("jsx", n), delete t.languages.tsx.parameter, delete t.languages.tsx["literal-property"];
|
|
@@ -25103,9 +25094,9 @@ function Rl(e) {
|
|
|
25103
25094
|
), r.lookbehind = !0;
|
|
25104
25095
|
}(e);
|
|
25105
25096
|
}
|
|
25106
|
-
|
|
25107
|
-
|
|
25108
|
-
function
|
|
25097
|
+
Rl.displayName = "reason";
|
|
25098
|
+
Rl.aliases = [];
|
|
25099
|
+
function Rl(e) {
|
|
25109
25100
|
e.register(X), e.languages.reason = e.languages.extend("clike", {
|
|
25110
25101
|
string: {
|
|
25111
25102
|
pattern: /"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,
|
|
@@ -26310,7 +26301,7 @@ function zl(e) {
|
|
|
26310
26301
|
Gl.displayName = "smarty";
|
|
26311
26302
|
Gl.aliases = [];
|
|
26312
26303
|
function Gl(e) {
|
|
26313
|
-
e.register(
|
|
26304
|
+
e.register(Se), function(t) {
|
|
26314
26305
|
t.languages.smarty = {
|
|
26315
26306
|
comment: {
|
|
26316
26307
|
pattern: /^\{\*[\s\S]*?\*\}/,
|
|
@@ -26557,7 +26548,7 @@ function Vl(e) {
|
|
|
26557
26548
|
Wl.displayName = "soy";
|
|
26558
26549
|
Wl.aliases = [];
|
|
26559
26550
|
function Wl(e) {
|
|
26560
|
-
e.register(
|
|
26551
|
+
e.register(Se), function(t) {
|
|
26561
26552
|
var n = /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, r = /\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;
|
|
26562
26553
|
t.languages.soy = {
|
|
26563
26554
|
comment: [
|
|
@@ -27353,7 +27344,7 @@ function ou(e) {
|
|
|
27353
27344
|
su.displayName = "tt2";
|
|
27354
27345
|
su.aliases = [];
|
|
27355
27346
|
function su(e) {
|
|
27356
|
-
e.register(X), e.register(
|
|
27347
|
+
e.register(X), e.register(Se), function(t) {
|
|
27357
27348
|
t.languages.tt2 = t.languages.extend("clike", {
|
|
27358
27349
|
comment: /#.*|\[%#[\s\S]*?%\]/,
|
|
27359
27350
|
keyword: /\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,
|
|
@@ -27852,7 +27843,7 @@ function fu(e) {
|
|
|
27852
27843
|
mu.displayName = "velocity";
|
|
27853
27844
|
mu.aliases = [];
|
|
27854
27845
|
function mu(e) {
|
|
27855
|
-
e.register(
|
|
27846
|
+
e.register(ge), function(t) {
|
|
27856
27847
|
t.languages.velocity = t.languages.extend("markup", {});
|
|
27857
27848
|
var n = {
|
|
27858
27849
|
variable: {
|
|
@@ -28277,7 +28268,7 @@ function Tu(e) {
|
|
|
28277
28268
|
ku.displayName = "wiki";
|
|
28278
28269
|
ku.aliases = [];
|
|
28279
28270
|
function ku(e) {
|
|
28280
|
-
e.register(
|
|
28271
|
+
e.register(ge), e.languages.wiki = e.languages.extend("markup", {
|
|
28281
28272
|
"block-comment": {
|
|
28282
28273
|
pattern: /(^|[^\\])\/\*[\s\S]*?\*\//,
|
|
28283
28274
|
lookbehind: !0,
|
|
@@ -28478,10 +28469,10 @@ function _u(e) {
|
|
|
28478
28469
|
}
|
|
28479
28470
|
};
|
|
28480
28471
|
}
|
|
28481
|
-
|
|
28482
|
-
|
|
28483
|
-
function
|
|
28484
|
-
e.register(
|
|
28472
|
+
Iu.displayName = "xeora";
|
|
28473
|
+
Iu.aliases = ["xeoracube"];
|
|
28474
|
+
function Iu(e) {
|
|
28475
|
+
e.register(ge), function(t) {
|
|
28485
28476
|
t.languages.xeora = t.languages.extend("markup", {
|
|
28486
28477
|
constant: {
|
|
28487
28478
|
pattern: /\$(?:DomainContents|PageRenderDuration)\$/,
|
|
@@ -28596,10 +28587,10 @@ function Ru(e) {
|
|
|
28596
28587
|
), t.languages.xeoracube = t.languages.xeora;
|
|
28597
28588
|
}(e);
|
|
28598
28589
|
}
|
|
28599
|
-
|
|
28600
|
-
|
|
28601
|
-
function
|
|
28602
|
-
e.register(
|
|
28590
|
+
Ru.displayName = "xml-doc";
|
|
28591
|
+
Ru.aliases = [];
|
|
28592
|
+
function Ru(e) {
|
|
28593
|
+
e.register(ge), function(t) {
|
|
28603
28594
|
function n(o, s) {
|
|
28604
28595
|
t.languages[o] && t.languages.insertBefore(o, "comment", {
|
|
28605
28596
|
"doc-comment": s
|
|
@@ -28648,7 +28639,7 @@ function Nu(e) {
|
|
|
28648
28639
|
Cu.displayName = "xquery";
|
|
28649
28640
|
Cu.aliases = [];
|
|
28650
28641
|
function Cu(e) {
|
|
28651
|
-
e.register(
|
|
28642
|
+
e.register(ge), function(t) {
|
|
28652
28643
|
t.languages.xquery = t.languages.extend("markup", {
|
|
28653
28644
|
"xquery-comment": {
|
|
28654
28645
|
pattern: /\(:[\s\S]*?:\)/,
|
|
@@ -28846,11 +28837,11 @@ function Ou(e) {
|
|
|
28846
28837
|
});
|
|
28847
28838
|
})(e);
|
|
28848
28839
|
}
|
|
28849
|
-
h.register(
|
|
28840
|
+
h.register(ge);
|
|
28850
28841
|
h.register(vt);
|
|
28851
28842
|
h.register(X);
|
|
28852
28843
|
h.register(Oa);
|
|
28853
|
-
h.register(
|
|
28844
|
+
h.register(Ee);
|
|
28854
28845
|
h.register(La);
|
|
28855
28846
|
h.register(Da);
|
|
28856
28847
|
h.register(Ma);
|
|
@@ -28906,8 +28897,8 @@ h.register(Ti);
|
|
|
28906
28897
|
h.register(ki);
|
|
28907
28898
|
h.register(vi);
|
|
28908
28899
|
h.register(_i);
|
|
28909
|
-
h.register(Ri);
|
|
28910
28900
|
h.register(Ii);
|
|
28901
|
+
h.register(Ri);
|
|
28911
28902
|
h.register(Ni);
|
|
28912
28903
|
h.register(Vt);
|
|
28913
28904
|
h.register(Ci);
|
|
@@ -28921,7 +28912,7 @@ h.register(Pi);
|
|
|
28921
28912
|
h.register(Ui);
|
|
28922
28913
|
h.register(Bi);
|
|
28923
28914
|
h.register($i);
|
|
28924
|
-
h.register(
|
|
28915
|
+
h.register(Se);
|
|
28925
28916
|
h.register(zi);
|
|
28926
28917
|
h.register(Gi);
|
|
28927
28918
|
h.register(Hi);
|
|
@@ -28962,8 +28953,8 @@ h.register(To);
|
|
|
28962
28953
|
h.register(ko);
|
|
28963
28954
|
h.register(vo);
|
|
28964
28955
|
h.register(_o);
|
|
28965
|
-
h.register(Ro);
|
|
28966
28956
|
h.register(Io);
|
|
28957
|
+
h.register(Ro);
|
|
28967
28958
|
h.register(No);
|
|
28968
28959
|
h.register(yn);
|
|
28969
28960
|
h.register(Co);
|
|
@@ -29024,8 +29015,8 @@ h.register(Ts);
|
|
|
29024
29015
|
h.register(ks);
|
|
29025
29016
|
h.register(vs);
|
|
29026
29017
|
h.register(_s);
|
|
29027
|
-
h.register(Rs);
|
|
29028
29018
|
h.register(Is);
|
|
29019
|
+
h.register(Rs);
|
|
29029
29020
|
h.register(Ns);
|
|
29030
29021
|
h.register(Cs);
|
|
29031
29022
|
h.register(xs);
|
|
@@ -29080,8 +29071,8 @@ h.register(kl);
|
|
|
29080
29071
|
h.register(vl);
|
|
29081
29072
|
h.register(_l);
|
|
29082
29073
|
h.register(pr);
|
|
29083
|
-
h.register(Rl);
|
|
29084
29074
|
h.register(Il);
|
|
29075
|
+
h.register(Rl);
|
|
29085
29076
|
h.register(Nl);
|
|
29086
29077
|
h.register(Cl);
|
|
29087
29078
|
h.register(xl);
|
|
@@ -29137,14 +29128,14 @@ h.register(Tu);
|
|
|
29137
29128
|
h.register(ku);
|
|
29138
29129
|
h.register(vu);
|
|
29139
29130
|
h.register(_u);
|
|
29140
|
-
h.register(Ru);
|
|
29141
29131
|
h.register(Iu);
|
|
29132
|
+
h.register(Ru);
|
|
29142
29133
|
h.register(Nu);
|
|
29143
29134
|
h.register(Cu);
|
|
29144
29135
|
h.register(xu);
|
|
29145
29136
|
h.register(Ou);
|
|
29146
|
-
var Tp =
|
|
29147
|
-
Tp.supportedLanguages =
|
|
29137
|
+
var Tp = IE(h, eS);
|
|
29138
|
+
Tp.supportedLanguages = RE;
|
|
29148
29139
|
const tS = {
|
|
29149
29140
|
'code[class*="language-"]': {
|
|
29150
29141
|
color: "#f8f8f2",
|
|
@@ -29344,11 +29335,11 @@ function rS(e, t, n) {
|
|
|
29344
29335
|
input: w.input,
|
|
29345
29336
|
stack: [...p, u]
|
|
29346
29337
|
};
|
|
29347
|
-
let
|
|
29348
|
-
if (typeof
|
|
29338
|
+
let T = g(...w, _);
|
|
29339
|
+
if (typeof T == "string" && (T = T.length > 0 ? { type: "text", value: T } : void 0), T === !1 ? d.lastIndex = v + 1 : (f !== v && S.push({
|
|
29349
29340
|
type: "text",
|
|
29350
29341
|
value: u.value.slice(f, v)
|
|
29351
|
-
}), Array.isArray(
|
|
29342
|
+
}), Array.isArray(T) ? S.push(...T) : T && S.push(T), f = v + w[0].length, b = !0), !d.global)
|
|
29352
29343
|
break;
|
|
29353
29344
|
w = d.exec(u.value);
|
|
29354
29345
|
}
|
|
@@ -29497,7 +29488,7 @@ function kp(e, t) {
|
|
|
29497
29488
|
return (e.index === 0 || At(n) || tr(n)) && // If it’s an email, the previous character should not be a slash.
|
|
29498
29489
|
(!t || n !== 47);
|
|
29499
29490
|
}
|
|
29500
|
-
vp.peek =
|
|
29491
|
+
vp.peek = IS;
|
|
29501
29492
|
function ES() {
|
|
29502
29493
|
this.buffer();
|
|
29503
29494
|
}
|
|
@@ -29531,7 +29522,7 @@ function vS(e) {
|
|
|
29531
29522
|
function _S(e) {
|
|
29532
29523
|
this.exit(e);
|
|
29533
29524
|
}
|
|
29534
|
-
function
|
|
29525
|
+
function IS() {
|
|
29535
29526
|
return "[";
|
|
29536
29527
|
}
|
|
29537
29528
|
function vp(e, t, n, r) {
|
|
@@ -29542,7 +29533,7 @@ function vp(e, t, n, r) {
|
|
|
29542
29533
|
n.safe(n.associationId(e), { after: "]", before: i })
|
|
29543
29534
|
), s(), o(), i += a.move("]"), i;
|
|
29544
29535
|
}
|
|
29545
|
-
function
|
|
29536
|
+
function RS() {
|
|
29546
29537
|
return {
|
|
29547
29538
|
enter: {
|
|
29548
29539
|
gfmFootnoteCallString: ES,
|
|
@@ -29594,7 +29585,7 @@ const xS = [
|
|
|
29594
29585
|
"titleQuote",
|
|
29595
29586
|
"titleApostrophe"
|
|
29596
29587
|
];
|
|
29597
|
-
|
|
29588
|
+
Ip.peek = FS;
|
|
29598
29589
|
function OS() {
|
|
29599
29590
|
return {
|
|
29600
29591
|
canContainEols: ["delete"],
|
|
@@ -29611,7 +29602,7 @@ function LS() {
|
|
|
29611
29602
|
notInConstruct: xS
|
|
29612
29603
|
}
|
|
29613
29604
|
],
|
|
29614
|
-
handlers: { delete:
|
|
29605
|
+
handlers: { delete: Ip }
|
|
29615
29606
|
};
|
|
29616
29607
|
}
|
|
29617
29608
|
function DS(e) {
|
|
@@ -29620,7 +29611,7 @@ function DS(e) {
|
|
|
29620
29611
|
function MS(e) {
|
|
29621
29612
|
this.exit(e);
|
|
29622
29613
|
}
|
|
29623
|
-
function
|
|
29614
|
+
function Ip(e, t, n, r) {
|
|
29624
29615
|
const a = n.createTracker(r), i = n.enter("strikethrough");
|
|
29625
29616
|
let o = a.move("~~");
|
|
29626
29617
|
return o += n.containerPhrasing(e, {
|
|
@@ -29683,8 +29674,8 @@ function US(e, t) {
|
|
|
29683
29674
|
const S = m[c] || "";
|
|
29684
29675
|
let w = "", v = "";
|
|
29685
29676
|
if (n.alignDelimiters !== !1) {
|
|
29686
|
-
const _ = l[c] - (y[c] || 0),
|
|
29687
|
-
|
|
29677
|
+
const _ = l[c] - (y[c] || 0), T = i[c];
|
|
29678
|
+
T === 114 ? w = " ".repeat(_) : T === 99 ? _ % 2 ? (w = " ".repeat(_ / 2 + 0.5), v = " ".repeat(_ / 2 - 0.5)) : (w = " ".repeat(_ / 2), v = w) : v = " ".repeat(_);
|
|
29688
29679
|
}
|
|
29689
29680
|
n.delimiterStart !== !1 && !c && b.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
29690
29681
|
// empty: there will be a closing space.
|
|
@@ -29880,8 +29871,8 @@ function Yn(e, t, n) {
|
|
|
29880
29871
|
{ inside: !1, outside: !1 }
|
|
29881
29872
|
);
|
|
29882
29873
|
}
|
|
29883
|
-
|
|
29884
|
-
function
|
|
29874
|
+
Rp.peek = XS;
|
|
29875
|
+
function Rp(e, t, n, r) {
|
|
29885
29876
|
const a = KS(n), i = n.enter("emphasis"), o = n.createTracker(r), s = o.move(a);
|
|
29886
29877
|
let l = o.move(
|
|
29887
29878
|
n.containerPhrasing(e, {
|
|
@@ -30283,7 +30274,7 @@ const Up = {
|
|
|
30283
30274
|
break: Kc,
|
|
30284
30275
|
code: WS,
|
|
30285
30276
|
definition: YS,
|
|
30286
|
-
emphasis:
|
|
30277
|
+
emphasis: Rp,
|
|
30287
30278
|
hardBreak: Kc,
|
|
30288
30279
|
heading: QS,
|
|
30289
30280
|
html: Np,
|
|
@@ -30433,21 +30424,21 @@ function vw() {
|
|
|
30433
30424
|
exit: {
|
|
30434
30425
|
taskListCheckValueChecked: Zc,
|
|
30435
30426
|
taskListCheckValueUnchecked: Zc,
|
|
30436
|
-
paragraph:
|
|
30427
|
+
paragraph: Iw
|
|
30437
30428
|
}
|
|
30438
30429
|
};
|
|
30439
30430
|
}
|
|
30440
30431
|
function _w() {
|
|
30441
30432
|
return {
|
|
30442
30433
|
unsafe: [{ atBreak: !0, character: "-", after: "[:|-]" }],
|
|
30443
|
-
handlers: { listItem:
|
|
30434
|
+
handlers: { listItem: Rw }
|
|
30444
30435
|
};
|
|
30445
30436
|
}
|
|
30446
30437
|
function Zc(e) {
|
|
30447
30438
|
const t = this.stack[this.stack.length - 2];
|
|
30448
30439
|
t.type, t.checked = e.type === "taskListCheckValueChecked";
|
|
30449
30440
|
}
|
|
30450
|
-
function
|
|
30441
|
+
function Iw(e) {
|
|
30451
30442
|
const t = this.stack[this.stack.length - 2];
|
|
30452
30443
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
30453
30444
|
const n = this.stack[this.stack.length - 1];
|
|
@@ -30468,7 +30459,7 @@ function Rw(e) {
|
|
|
30468
30459
|
}
|
|
30469
30460
|
this.exit(e);
|
|
30470
30461
|
}
|
|
30471
|
-
function
|
|
30462
|
+
function Rw(e, t, n, r) {
|
|
30472
30463
|
const a = e.children[0], i = typeof e.checked == "boolean" && a && a.type === "paragraph", o = "[" + (e.checked ? "x" : " ") + "] ", s = n.createTracker(r);
|
|
30473
30464
|
i && s.move(o);
|
|
30474
30465
|
let l = Up.listItem(e, t, n, {
|
|
@@ -30483,7 +30474,7 @@ function Iw(e, t, n, r) {
|
|
|
30483
30474
|
function Nw() {
|
|
30484
30475
|
return [
|
|
30485
30476
|
sS(),
|
|
30486
|
-
|
|
30477
|
+
RS(),
|
|
30487
30478
|
OS(),
|
|
30488
30479
|
yw(),
|
|
30489
30480
|
vw()
|
|
@@ -30555,7 +30546,7 @@ function Dw(e, t, n) {
|
|
|
30555
30546
|
return sa(c) ? (e.consume(c), s) : c === 64 ? (e.consume(c), l) : n(c);
|
|
30556
30547
|
}
|
|
30557
30548
|
function l(c) {
|
|
30558
|
-
return c === 46 ? e.check(Ow, p, u)(c) : c === 45 || c === 95 ||
|
|
30549
|
+
return c === 46 ? e.check(Ow, p, u)(c) : c === 45 || c === 95 || he(c) ? (i = !0, e.consume(c), l) : p(c);
|
|
30559
30550
|
}
|
|
30560
30551
|
function u(c) {
|
|
30561
30552
|
return e.consume(c), a = !0, l;
|
|
@@ -30659,7 +30650,7 @@ function zw(e, t, n) {
|
|
|
30659
30650
|
return e.consume(i), a;
|
|
30660
30651
|
}
|
|
30661
30652
|
function a(i) {
|
|
30662
|
-
return
|
|
30653
|
+
return he(i) ? n(i) : t(i);
|
|
30663
30654
|
}
|
|
30664
30655
|
}
|
|
30665
30656
|
function jp(e) {
|
|
@@ -30672,7 +30663,7 @@ function Wp(e) {
|
|
|
30672
30663
|
return !(e === 47 || sa(e));
|
|
30673
30664
|
}
|
|
30674
30665
|
function sa(e) {
|
|
30675
|
-
return e === 43 || e === 45 || e === 46 || e === 95 ||
|
|
30666
|
+
return e === 43 || e === 45 || e === 46 || e === 95 || he(e);
|
|
30676
30667
|
}
|
|
30677
30668
|
function Mu(e) {
|
|
30678
30669
|
let t = e.length, n = !1;
|
|
@@ -30854,7 +30845,7 @@ function qw(e, t, n) {
|
|
|
30854
30845
|
return f === 91 || f === 92 || f === 93 ? (e.consume(f), o++, p) : p(f);
|
|
30855
30846
|
}
|
|
30856
30847
|
function d(f) {
|
|
30857
|
-
return f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), a.includes(i) || a.push(i),
|
|
30848
|
+
return f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), a.includes(i) || a.push(i), Q(e, g, "gfmFootnoteDefinitionWhitespace")) : n(f);
|
|
30858
30849
|
}
|
|
30859
30850
|
function g(f) {
|
|
30860
30851
|
return t(f);
|
|
@@ -30868,7 +30859,7 @@ function Kw(e) {
|
|
|
30868
30859
|
}
|
|
30869
30860
|
function Xw(e, t, n) {
|
|
30870
30861
|
const r = this;
|
|
30871
|
-
return
|
|
30862
|
+
return Q(e, a, "gfmFootnoteDefinitionIndent", 5);
|
|
30872
30863
|
function a(i) {
|
|
30873
30864
|
const o = r.events[r.events.length - 1];
|
|
30874
30865
|
return o && o[1].type === "gfmFootnoteDefinitionIndent" && o[2].sliceSerialize(o[1], !0).length === 4 ? t(i) : n(i);
|
|
@@ -31046,8 +31037,8 @@ function nA(e, t, n) {
|
|
|
31046
31037
|
U === "linePrefix") C--;
|
|
31047
31038
|
else break;
|
|
31048
31039
|
}
|
|
31049
|
-
const x = C > -1 ? r.events[C][1].type : null, L = x === "tableHead" || x === "tableRow" ?
|
|
31050
|
-
return L ===
|
|
31040
|
+
const x = C > -1 ? r.events[C][1].type : null, L = x === "tableHead" || x === "tableRow" ? T : l;
|
|
31041
|
+
return L === T && r.parser.lazy[r.now().line] ? n(k) : L(k);
|
|
31051
31042
|
}
|
|
31052
31043
|
function l(k) {
|
|
31053
31044
|
return e.enter("tableHead"), e.enter("tableRow"), u(k);
|
|
@@ -31056,7 +31047,7 @@ function nA(e, t, n) {
|
|
|
31056
31047
|
return k === 124 || (o = !0, i += 1), p(k);
|
|
31057
31048
|
}
|
|
31058
31049
|
function p(k) {
|
|
31059
|
-
return k === null ? n(k) : G(k) ? i > 1 ? (i = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), g) : n(k) : Y(k) ?
|
|
31050
|
+
return k === null ? n(k) : G(k) ? i > 1 ? (i = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), g) : n(k) : Y(k) ? Q(e, p, "whitespace")(k) : (i += 1, o && (o = !1, a += 1), k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), o = !0, p) : (e.enter("data"), c(k)));
|
|
31060
31051
|
}
|
|
31061
31052
|
function c(k) {
|
|
31062
31053
|
return k === null || k === 124 || ae(k) ? (e.exit("data"), p(k)) : (e.consume(k), k === 92 ? d : c);
|
|
@@ -31065,13 +31056,13 @@ function nA(e, t, n) {
|
|
|
31065
31056
|
return k === 92 || k === 124 ? (e.consume(k), c) : c(k);
|
|
31066
31057
|
}
|
|
31067
31058
|
function g(k) {
|
|
31068
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(k) : (e.enter("tableDelimiterRow"), o = !1, Y(k) ?
|
|
31059
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(k) : (e.enter("tableDelimiterRow"), o = !1, Y(k) ? Q(e, f, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(k) : f(k));
|
|
31069
31060
|
}
|
|
31070
31061
|
function f(k) {
|
|
31071
31062
|
return k === 45 || k === 58 ? y(k) : k === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), m) : _(k);
|
|
31072
31063
|
}
|
|
31073
31064
|
function m(k) {
|
|
31074
|
-
return Y(k) ?
|
|
31065
|
+
return Y(k) ? Q(e, y, "whitespace")(k) : y(k);
|
|
31075
31066
|
}
|
|
31076
31067
|
function y(k) {
|
|
31077
31068
|
return k === 58 ? (i += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), b) : k === 45 ? (i += 1, b(k)) : k === null || G(k) ? v(k) : _(k);
|
|
@@ -31083,7 +31074,7 @@ function nA(e, t, n) {
|
|
|
31083
31074
|
return k === 45 ? (e.consume(k), S) : k === 58 ? (o = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(k), e.exit("tableDelimiterMarker"), w) : (e.exit("tableDelimiterFiller"), w(k));
|
|
31084
31075
|
}
|
|
31085
31076
|
function w(k) {
|
|
31086
|
-
return Y(k) ?
|
|
31077
|
+
return Y(k) ? Q(e, v, "whitespace")(k) : v(k);
|
|
31087
31078
|
}
|
|
31088
31079
|
function v(k) {
|
|
31089
31080
|
return k === 124 ? f(k) : k === null || G(k) ? !o || a !== i ? _(k) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(k)) : _(k);
|
|
@@ -31091,14 +31082,14 @@ function nA(e, t, n) {
|
|
|
31091
31082
|
function _(k) {
|
|
31092
31083
|
return n(k);
|
|
31093
31084
|
}
|
|
31094
|
-
function
|
|
31095
|
-
return e.enter("tableRow"),
|
|
31085
|
+
function T(k) {
|
|
31086
|
+
return e.enter("tableRow"), R(k);
|
|
31096
31087
|
}
|
|
31097
|
-
function
|
|
31098
|
-
return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"),
|
|
31088
|
+
function R(k) {
|
|
31089
|
+
return k === 124 ? (e.enter("tableCellDivider"), e.consume(k), e.exit("tableCellDivider"), R) : k === null || G(k) ? (e.exit("tableRow"), t(k)) : Y(k) ? Q(e, R, "whitespace")(k) : (e.enter("data"), O(k));
|
|
31099
31090
|
}
|
|
31100
31091
|
function O(k) {
|
|
31101
|
-
return k === null || k === 124 || ae(k) ? (e.exit("data"),
|
|
31092
|
+
return k === null || k === 124 || ae(k) ? (e.exit("data"), R(k)) : (e.consume(k), k === 92 ? M : O);
|
|
31102
31093
|
}
|
|
31103
31094
|
function M(k) {
|
|
31104
31095
|
return k === 92 || k === 124 ? (e.consume(k), O) : O(k);
|
|
@@ -31196,7 +31187,7 @@ function oA(e, t, n) {
|
|
|
31196
31187
|
}
|
|
31197
31188
|
}
|
|
31198
31189
|
function sA(e, t, n) {
|
|
31199
|
-
return
|
|
31190
|
+
return Q(e, r, "whitespace");
|
|
31200
31191
|
function r(a) {
|
|
31201
31192
|
return a === null ? n(a) : t(a);
|
|
31202
31193
|
}
|
|
@@ -31218,11 +31209,11 @@ function cA(e) {
|
|
|
31218
31209
|
), n = e || uA, r = t.data(), a = r.micromarkExtensions || (r.micromarkExtensions = []), i = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
|
|
31219
31210
|
a.push(lA(n)), i.push(Nw()), o.push(Cw(n));
|
|
31220
31211
|
}
|
|
31221
|
-
const dA = ({
|
|
31212
|
+
const dA = ({ message: e }) => {
|
|
31222
31213
|
const t = Be(null);
|
|
31223
|
-
return
|
|
31214
|
+
return Ae(() => {
|
|
31224
31215
|
t.current && (t.current.scrollTop = t.current.scrollHeight);
|
|
31225
|
-
}), /* @__PURE__ */
|
|
31216
|
+
}), /* @__PURE__ */ Re(
|
|
31226
31217
|
"div",
|
|
31227
31218
|
{
|
|
31228
31219
|
ref: t,
|
|
@@ -31233,55 +31224,70 @@ const dA = ({ messages: e }) => {
|
|
|
31233
31224
|
minHeight: 0
|
|
31234
31225
|
// Important for flex scroll
|
|
31235
31226
|
},
|
|
31236
|
-
children:
|
|
31237
|
-
|
|
31238
|
-
{
|
|
31239
|
-
|
|
31240
|
-
|
|
31241
|
-
|
|
31242
|
-
|
|
31243
|
-
|
|
31244
|
-
|
|
31245
|
-
|
|
31246
|
-
|
|
31247
|
-
|
|
31248
|
-
|
|
31249
|
-
|
|
31250
|
-
|
|
31251
|
-
|
|
31252
|
-
|
|
31253
|
-
|
|
31254
|
-
|
|
31255
|
-
|
|
31256
|
-
|
|
31257
|
-
|
|
31258
|
-
|
|
31259
|
-
|
|
31260
|
-
|
|
31261
|
-
|
|
31227
|
+
children: [
|
|
31228
|
+
/* @__PURE__ */ P("h3", { style: { marginBottom: "10px" }, children: e.title }),
|
|
31229
|
+
/* @__PURE__ */ P("div", { className: "fency-markdown-body-raw", children: /* @__PURE__ */ P(
|
|
31230
|
+
eE,
|
|
31231
|
+
{
|
|
31232
|
+
remarkPlugins: [cA],
|
|
31233
|
+
components: {
|
|
31234
|
+
code(n) {
|
|
31235
|
+
const { children: r, className: a, node: i, ref: o, ...s } = n, l = /language-(\w+)/.exec(a || "");
|
|
31236
|
+
return l ? /* @__PURE__ */ P(
|
|
31237
|
+
Tp,
|
|
31238
|
+
{
|
|
31239
|
+
...s,
|
|
31240
|
+
PreTag: "div",
|
|
31241
|
+
children: String(r).replace(
|
|
31242
|
+
/\n$/,
|
|
31243
|
+
""
|
|
31244
|
+
),
|
|
31245
|
+
language: l[1],
|
|
31246
|
+
style: tS
|
|
31247
|
+
}
|
|
31248
|
+
) : /* @__PURE__ */ P("code", { ...s, className: a, children: r });
|
|
31249
|
+
}
|
|
31250
|
+
},
|
|
31251
|
+
children: e.markdown
|
|
31252
|
+
}
|
|
31253
|
+
) })
|
|
31254
|
+
]
|
|
31262
31255
|
}
|
|
31263
31256
|
);
|
|
31264
|
-
}, pA = ({
|
|
31265
|
-
|
|
31266
|
-
|
|
31267
|
-
|
|
31268
|
-
|
|
31269
|
-
|
|
31270
|
-
|
|
31271
|
-
|
|
31272
|
-
|
|
31273
|
-
}
|
|
31274
|
-
|
|
31275
|
-
|
|
31276
|
-
|
|
31277
|
-
|
|
31278
|
-
|
|
31279
|
-
|
|
31280
|
-
|
|
31281
|
-
|
|
31282
|
-
|
|
31283
|
-
|
|
31284
|
-
|
|
31257
|
+
}, pA = ({ agentTasks: e }) => {
|
|
31258
|
+
const [t, n] = J([]);
|
|
31259
|
+
return Ae(() => {
|
|
31260
|
+
console.log("agentTasks", e);
|
|
31261
|
+
const r = e.flatMap(
|
|
31262
|
+
(a) => a.progressItems.map((i) => ({
|
|
31263
|
+
id: i.progressItemId,
|
|
31264
|
+
title: i.description,
|
|
31265
|
+
markdown: i.response || ""
|
|
31266
|
+
}))
|
|
31267
|
+
);
|
|
31268
|
+
n(r);
|
|
31269
|
+
}, [e]), /* @__PURE__ */ Re(Hn, { children: [
|
|
31270
|
+
t.length === 0 && /* @__PURE__ */ P(
|
|
31271
|
+
"div",
|
|
31272
|
+
{
|
|
31273
|
+
style: {
|
|
31274
|
+
flex: 1,
|
|
31275
|
+
display: "flex",
|
|
31276
|
+
justifyContent: "center",
|
|
31277
|
+
alignItems: "center"
|
|
31278
|
+
},
|
|
31279
|
+
children: /* @__PURE__ */ Re("p", { style: { textAlign: "center" }, children: [
|
|
31280
|
+
"Ask about something. ",
|
|
31281
|
+
/* @__PURE__ */ P("br", {}),
|
|
31282
|
+
" Use ",
|
|
31283
|
+
/* @__PURE__ */ P("b", { children: '"@"' }),
|
|
31284
|
+
" to add context."
|
|
31285
|
+
] })
|
|
31286
|
+
}
|
|
31287
|
+
),
|
|
31288
|
+
t.length > 0 && t.map((r) => /* @__PURE__ */ P(dA, { message: r }, r.id))
|
|
31289
|
+
] });
|
|
31290
|
+
}, gA = "_wrapper_nvp45_1", fA = "_editable_nvp45_12", mA = "_mention_nvp45_48", bA = "_ghostWrapper_nvp45_58", hA = "_ghost_nvp45_58", dn = {
|
|
31285
31291
|
wrapper: gA,
|
|
31286
31292
|
editable: fA,
|
|
31287
31293
|
mention: mA,
|
|
@@ -31295,8 +31301,8 @@ const dA = ({ messages: e }) => {
|
|
|
31295
31301
|
handleInput: a,
|
|
31296
31302
|
placeholder: i = "Type your question or task and press Enter…"
|
|
31297
31303
|
}) => {
|
|
31298
|
-
const [o, s] =
|
|
31299
|
-
return
|
|
31304
|
+
const [o, s] = J(!0);
|
|
31305
|
+
return Ae(() => {
|
|
31300
31306
|
const l = () => {
|
|
31301
31307
|
if (e.current) {
|
|
31302
31308
|
const p = e.current.textContent || "";
|
|
@@ -31338,7 +31344,7 @@ const dA = ({ messages: e }) => {
|
|
|
31338
31344
|
}) => /* @__PURE__ */ P("div", { className: dn.ghostWrapper, children: /* @__PURE__ */ P("div", { ref: e, className: dn.ghost, children: (() => {
|
|
31339
31345
|
if (t) {
|
|
31340
31346
|
const i = n.slice(0, r), o = n.slice(r);
|
|
31341
|
-
return /* @__PURE__ */
|
|
31347
|
+
return /* @__PURE__ */ Re(Hn, { children: [
|
|
31342
31348
|
i,
|
|
31343
31349
|
/* @__PURE__ */ P("span", { "data-at-marker": !0, children: "@" }),
|
|
31344
31350
|
o.slice(1),
|
|
@@ -31346,7 +31352,7 @@ const dA = ({ messages: e }) => {
|
|
|
31346
31352
|
] });
|
|
31347
31353
|
} else {
|
|
31348
31354
|
const i = n.slice(0, a), o = n.slice(a);
|
|
31349
|
-
return /* @__PURE__ */
|
|
31355
|
+
return /* @__PURE__ */ Re(Hn, { children: [
|
|
31350
31356
|
i,
|
|
31351
31357
|
/* @__PURE__ */ P("span", { "data-caret": !0, children: "|" }),
|
|
31352
31358
|
o
|
|
@@ -31490,7 +31496,7 @@ function TA({
|
|
|
31490
31496
|
let _;
|
|
31491
31497
|
for (; (_ = v.exec(c)) !== null; )
|
|
31492
31498
|
m.some(
|
|
31493
|
-
(
|
|
31499
|
+
(R) => _.index >= R.start && _.index < R.end
|
|
31494
31500
|
) || m.push({
|
|
31495
31501
|
start: _.index,
|
|
31496
31502
|
end: _.index + _[0].length,
|
|
@@ -31587,22 +31593,22 @@ function qp(...e) {
|
|
|
31587
31593
|
};
|
|
31588
31594
|
}
|
|
31589
31595
|
function bt(...e) {
|
|
31590
|
-
return
|
|
31596
|
+
return I.useCallback(qp(...e), e);
|
|
31591
31597
|
}
|
|
31592
31598
|
function Yp(e, t = []) {
|
|
31593
31599
|
let n = [];
|
|
31594
31600
|
function r(i, o) {
|
|
31595
|
-
const s =
|
|
31601
|
+
const s = I.createContext(o), l = n.length;
|
|
31596
31602
|
n = [...n, o];
|
|
31597
31603
|
const u = (c) => {
|
|
31598
31604
|
var b;
|
|
31599
|
-
const { scope: d, children: g, ...f } = c, m = ((b = d == null ? void 0 : d[e]) == null ? void 0 : b[l]) || s, y =
|
|
31605
|
+
const { scope: d, children: g, ...f } = c, m = ((b = d == null ? void 0 : d[e]) == null ? void 0 : b[l]) || s, y = I.useMemo(() => f, Object.values(f));
|
|
31600
31606
|
return /* @__PURE__ */ P(m.Provider, { value: y, children: g });
|
|
31601
31607
|
};
|
|
31602
31608
|
u.displayName = i + "Provider";
|
|
31603
31609
|
function p(c, d) {
|
|
31604
31610
|
var m;
|
|
31605
|
-
const g = ((m = d == null ? void 0 : d[e]) == null ? void 0 : m[l]) || s, f =
|
|
31611
|
+
const g = ((m = d == null ? void 0 : d[e]) == null ? void 0 : m[l]) || s, f = I.useContext(g);
|
|
31606
31612
|
if (f) return f;
|
|
31607
31613
|
if (o !== void 0) return o;
|
|
31608
31614
|
throw new Error(`\`${c}\` must be used within \`${i}\``);
|
|
@@ -31610,10 +31616,10 @@ function Yp(e, t = []) {
|
|
|
31610
31616
|
return [u, p];
|
|
31611
31617
|
}
|
|
31612
31618
|
const a = () => {
|
|
31613
|
-
const i = n.map((o) =>
|
|
31619
|
+
const i = n.map((o) => I.createContext(o));
|
|
31614
31620
|
return function(s) {
|
|
31615
31621
|
const l = (s == null ? void 0 : s[e]) || i;
|
|
31616
|
-
return
|
|
31622
|
+
return I.useMemo(
|
|
31617
31623
|
() => ({ [`__scope${e}`]: { ...s, [e]: l } }),
|
|
31618
31624
|
[s, l]
|
|
31619
31625
|
);
|
|
@@ -31634,12 +31640,12 @@ function vA(...e) {
|
|
|
31634
31640
|
const c = l(i)[`__scope${u}`];
|
|
31635
31641
|
return { ...s, ...c };
|
|
31636
31642
|
}, {});
|
|
31637
|
-
return
|
|
31643
|
+
return I.useMemo(() => ({ [`__scope${t.scopeName}`]: o }), [o]);
|
|
31638
31644
|
};
|
|
31639
31645
|
};
|
|
31640
31646
|
return n.scopeName = t.scopeName, n;
|
|
31641
31647
|
}
|
|
31642
|
-
var la = { exports: {} },
|
|
31648
|
+
var la = { exports: {} }, me = {};
|
|
31643
31649
|
/**
|
|
31644
31650
|
* @license React
|
|
31645
31651
|
* react-dom.production.js
|
|
@@ -31651,7 +31657,7 @@ var la = { exports: {} }, be = {};
|
|
|
31651
31657
|
*/
|
|
31652
31658
|
var ed;
|
|
31653
31659
|
function _A() {
|
|
31654
|
-
if (ed) return
|
|
31660
|
+
if (ed) return me;
|
|
31655
31661
|
ed = 1;
|
|
31656
31662
|
var e = Ve;
|
|
31657
31663
|
function t(l) {
|
|
@@ -31698,23 +31704,23 @@ function _A() {
|
|
|
31698
31704
|
if (typeof u == "string")
|
|
31699
31705
|
return u === "use-credentials" ? u : "";
|
|
31700
31706
|
}
|
|
31701
|
-
return
|
|
31707
|
+
return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = r, me.createPortal = function(l, u) {
|
|
31702
31708
|
var p = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
31703
31709
|
if (!u || u.nodeType !== 1 && u.nodeType !== 9 && u.nodeType !== 11)
|
|
31704
31710
|
throw Error(t(299));
|
|
31705
31711
|
return i(l, u, null, p);
|
|
31706
|
-
},
|
|
31712
|
+
}, me.flushSync = function(l) {
|
|
31707
31713
|
var u = o.T, p = r.p;
|
|
31708
31714
|
try {
|
|
31709
31715
|
if (o.T = null, r.p = 2, l) return l();
|
|
31710
31716
|
} finally {
|
|
31711
31717
|
o.T = u, r.p = p, r.d.f();
|
|
31712
31718
|
}
|
|
31713
|
-
},
|
|
31719
|
+
}, me.preconnect = function(l, u) {
|
|
31714
31720
|
typeof l == "string" && (u ? (u = u.crossOrigin, u = typeof u == "string" ? u === "use-credentials" ? u : "" : void 0) : u = null, r.d.C(l, u));
|
|
31715
|
-
},
|
|
31721
|
+
}, me.prefetchDNS = function(l) {
|
|
31716
31722
|
typeof l == "string" && r.d.D(l);
|
|
31717
|
-
},
|
|
31723
|
+
}, me.preinit = function(l, u) {
|
|
31718
31724
|
if (typeof l == "string" && u && typeof u.as == "string") {
|
|
31719
31725
|
var p = u.as, c = s(p, u.crossOrigin), d = typeof u.integrity == "string" ? u.integrity : void 0, g = typeof u.fetchPriority == "string" ? u.fetchPriority : void 0;
|
|
31720
31726
|
p === "style" ? r.d.S(
|
|
@@ -31732,7 +31738,7 @@ function _A() {
|
|
|
31732
31738
|
nonce: typeof u.nonce == "string" ? u.nonce : void 0
|
|
31733
31739
|
});
|
|
31734
31740
|
}
|
|
31735
|
-
},
|
|
31741
|
+
}, me.preinitModule = function(l, u) {
|
|
31736
31742
|
if (typeof l == "string")
|
|
31737
31743
|
if (typeof u == "object" && u !== null) {
|
|
31738
31744
|
if (u.as == null || u.as === "script") {
|
|
@@ -31747,7 +31753,7 @@ function _A() {
|
|
|
31747
31753
|
});
|
|
31748
31754
|
}
|
|
31749
31755
|
} else u == null && r.d.M(l);
|
|
31750
|
-
},
|
|
31756
|
+
}, me.preload = function(l, u) {
|
|
31751
31757
|
if (typeof l == "string" && typeof u == "object" && u !== null && typeof u.as == "string") {
|
|
31752
31758
|
var p = u.as, c = s(p, u.crossOrigin);
|
|
31753
31759
|
r.d.L(l, p, {
|
|
@@ -31762,7 +31768,7 @@ function _A() {
|
|
|
31762
31768
|
media: typeof u.media == "string" ? u.media : void 0
|
|
31763
31769
|
});
|
|
31764
31770
|
}
|
|
31765
|
-
},
|
|
31771
|
+
}, me.preloadModule = function(l, u) {
|
|
31766
31772
|
if (typeof l == "string")
|
|
31767
31773
|
if (u) {
|
|
31768
31774
|
var p = s(u.as, u.crossOrigin);
|
|
@@ -31772,17 +31778,17 @@ function _A() {
|
|
|
31772
31778
|
integrity: typeof u.integrity == "string" ? u.integrity : void 0
|
|
31773
31779
|
});
|
|
31774
31780
|
} else r.d.m(l);
|
|
31775
|
-
},
|
|
31781
|
+
}, me.requestFormReset = function(l) {
|
|
31776
31782
|
r.d.r(l);
|
|
31777
|
-
},
|
|
31783
|
+
}, me.unstable_batchedUpdates = function(l, u) {
|
|
31778
31784
|
return l(u);
|
|
31779
|
-
},
|
|
31785
|
+
}, me.useFormState = function(l, u, p) {
|
|
31780
31786
|
return o.H.useFormState(l, u, p);
|
|
31781
|
-
},
|
|
31787
|
+
}, me.useFormStatus = function() {
|
|
31782
31788
|
return o.H.useHostTransitionStatus();
|
|
31783
|
-
},
|
|
31789
|
+
}, me.version = "19.2.3", me;
|
|
31784
31790
|
}
|
|
31785
|
-
var
|
|
31791
|
+
var be = {};
|
|
31786
31792
|
/**
|
|
31787
31793
|
* @license React
|
|
31788
31794
|
* react-dom.development.js
|
|
@@ -31793,7 +31799,7 @@ var he = {};
|
|
|
31793
31799
|
* LICENSE file in the root directory of this source tree.
|
|
31794
31800
|
*/
|
|
31795
31801
|
var td;
|
|
31796
|
-
function
|
|
31802
|
+
function IA() {
|
|
31797
31803
|
return td || (td = 1, process.env.NODE_ENV !== "production" && function() {
|
|
31798
31804
|
function e() {
|
|
31799
31805
|
}
|
|
@@ -31862,12 +31868,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
31862
31868
|
}, u = Symbol.for("react.portal"), p = s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
31863
31869
|
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
|
|
31864
31870
|
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
31865
|
-
),
|
|
31871
|
+
), be.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = l, be.createPortal = function(c, d) {
|
|
31866
31872
|
var g = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
31867
31873
|
if (!d || d.nodeType !== 1 && d.nodeType !== 9 && d.nodeType !== 11)
|
|
31868
31874
|
throw Error("Target container is not a DOM element.");
|
|
31869
31875
|
return n(c, d, null, g);
|
|
31870
|
-
},
|
|
31876
|
+
}, be.flushSync = function(c) {
|
|
31871
31877
|
var d = p.T, g = l.p;
|
|
31872
31878
|
try {
|
|
31873
31879
|
if (p.T = null, l.p = 2, c)
|
|
@@ -31877,7 +31883,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
31877
31883
|
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
31878
31884
|
);
|
|
31879
31885
|
}
|
|
31880
|
-
},
|
|
31886
|
+
}, be.preconnect = function(c, d) {
|
|
31881
31887
|
typeof c == "string" && c ? d != null && typeof d != "object" ? console.error(
|
|
31882
31888
|
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
31883
31889
|
i(d)
|
|
@@ -31888,7 +31894,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
31888
31894
|
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
31889
31895
|
a(c)
|
|
31890
31896
|
), typeof c == "string" && (d ? (d = d.crossOrigin, d = typeof d == "string" ? d === "use-credentials" ? d : "" : void 0) : d = null, l.d.C(c, d));
|
|
31891
|
-
},
|
|
31897
|
+
}, be.prefetchDNS = function(c) {
|
|
31892
31898
|
if (typeof c != "string" || !c)
|
|
31893
31899
|
console.error(
|
|
31894
31900
|
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
@@ -31905,7 +31911,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
31905
31911
|
);
|
|
31906
31912
|
}
|
|
31907
31913
|
typeof c == "string" && l.d.D(c);
|
|
31908
|
-
},
|
|
31914
|
+
}, be.preinit = function(c, d) {
|
|
31909
31915
|
if (typeof c == "string" && c ? d == null || typeof d != "object" ? console.error(
|
|
31910
31916
|
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
31911
31917
|
i(d)
|
|
@@ -31932,7 +31938,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
31932
31938
|
nonce: typeof d.nonce == "string" ? d.nonce : void 0
|
|
31933
31939
|
});
|
|
31934
31940
|
}
|
|
31935
|
-
},
|
|
31941
|
+
}, be.preinitModule = function(c, d) {
|
|
31936
31942
|
var g = "";
|
|
31937
31943
|
if (typeof c == "string" && c || (g += " The `href` argument encountered was " + a(c) + "."), d !== void 0 && typeof d != "object" ? g += " The `options` argument encountered was " + a(d) + "." : d && "as" in d && d.as !== "script" && (g += " The `as` option encountered was " + i(d.as) + "."), g)
|
|
31938
31944
|
console.error(
|
|
@@ -31958,7 +31964,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
31958
31964
|
integrity: typeof d.integrity == "string" ? d.integrity : void 0,
|
|
31959
31965
|
nonce: typeof d.nonce == "string" ? d.nonce : void 0
|
|
31960
31966
|
})) : d == null && l.d.M(c));
|
|
31961
|
-
},
|
|
31967
|
+
}, be.preload = function(c, d) {
|
|
31962
31968
|
var g = "";
|
|
31963
31969
|
if (typeof c == "string" && c || (g += " The `href` argument encountered was " + a(c) + "."), d == null || typeof d != "object" ? g += " The `options` argument encountered was " + a(d) + "." : typeof d.as == "string" && d.as || (g += " The `as` option encountered was " + a(d.as) + "."), g && console.error(
|
|
31964
31970
|
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
@@ -31981,7 +31987,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
31981
31987
|
media: typeof d.media == "string" ? d.media : void 0
|
|
31982
31988
|
});
|
|
31983
31989
|
}
|
|
31984
|
-
},
|
|
31990
|
+
}, be.preloadModule = function(c, d) {
|
|
31985
31991
|
var g = "";
|
|
31986
31992
|
typeof c == "string" && c || (g += " The `href` argument encountered was " + a(c) + "."), d !== void 0 && typeof d != "object" ? g += " The `options` argument encountered was " + a(d) + "." : d && "as" in d && typeof d.as != "string" && (g += " The `as` option encountered was " + a(d.as) + "."), g && console.error(
|
|
31987
31993
|
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
@@ -31994,16 +32000,16 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
31994
32000
|
crossOrigin: g,
|
|
31995
32001
|
integrity: typeof d.integrity == "string" ? d.integrity : void 0
|
|
31996
32002
|
})) : l.d.m(c));
|
|
31997
|
-
},
|
|
32003
|
+
}, be.requestFormReset = function(c) {
|
|
31998
32004
|
l.d.r(c);
|
|
31999
|
-
},
|
|
32005
|
+
}, be.unstable_batchedUpdates = function(c, d) {
|
|
32000
32006
|
return c(d);
|
|
32001
|
-
},
|
|
32007
|
+
}, be.useFormState = function(c, d, g) {
|
|
32002
32008
|
return o().useFormState(c, d, g);
|
|
32003
|
-
},
|
|
32009
|
+
}, be.useFormStatus = function() {
|
|
32004
32010
|
return o().useHostTransitionStatus();
|
|
32005
|
-
},
|
|
32006
|
-
}()),
|
|
32011
|
+
}, be.version = "19.2.3", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
32012
|
+
}()), be;
|
|
32007
32013
|
}
|
|
32008
32014
|
function Kp() {
|
|
32009
32015
|
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
@@ -32016,16 +32022,16 @@ function Kp() {
|
|
|
32016
32022
|
}
|
|
32017
32023
|
}
|
|
32018
32024
|
}
|
|
32019
|
-
process.env.NODE_ENV === "production" ? (Kp(), la.exports = _A()) : la.exports =
|
|
32025
|
+
process.env.NODE_ENV === "production" ? (Kp(), la.exports = _A()) : la.exports = IA();
|
|
32020
32026
|
var Fu = la.exports;
|
|
32021
|
-
const
|
|
32027
|
+
const RA = /* @__PURE__ */ ya(Fu);
|
|
32022
32028
|
// @__NO_SIDE_EFFECTS__
|
|
32023
32029
|
function Xp(e) {
|
|
32024
|
-
const t = /* @__PURE__ */ NA(e), n =
|
|
32025
|
-
const { children: i, ...o } = r, s =
|
|
32030
|
+
const t = /* @__PURE__ */ NA(e), n = I.forwardRef((r, a) => {
|
|
32031
|
+
const { children: i, ...o } = r, s = I.Children.toArray(i), l = s.find(xA);
|
|
32026
32032
|
if (l) {
|
|
32027
|
-
const u = l.props.children, p = s.map((c) => c === l ?
|
|
32028
|
-
return /* @__PURE__ */ P(t, { ...o, ref: a, children:
|
|
32033
|
+
const u = l.props.children, p = s.map((c) => c === l ? I.Children.count(u) > 1 ? I.Children.only(null) : I.isValidElement(u) ? u.props.children : null : c);
|
|
32034
|
+
return /* @__PURE__ */ P(t, { ...o, ref: a, children: I.isValidElement(u) ? I.cloneElement(u, void 0, p) : null });
|
|
32029
32035
|
}
|
|
32030
32036
|
return /* @__PURE__ */ P(t, { ...o, ref: a, children: i });
|
|
32031
32037
|
});
|
|
@@ -32033,19 +32039,19 @@ function Xp(e) {
|
|
|
32033
32039
|
}
|
|
32034
32040
|
// @__NO_SIDE_EFFECTS__
|
|
32035
32041
|
function NA(e) {
|
|
32036
|
-
const t =
|
|
32042
|
+
const t = I.forwardRef((n, r) => {
|
|
32037
32043
|
const { children: a, ...i } = n;
|
|
32038
|
-
if (
|
|
32044
|
+
if (I.isValidElement(a)) {
|
|
32039
32045
|
const o = LA(a), s = OA(i, a.props);
|
|
32040
|
-
return a.type !==
|
|
32046
|
+
return a.type !== I.Fragment && (s.ref = r ? qp(r, o) : o), I.cloneElement(a, s);
|
|
32041
32047
|
}
|
|
32042
|
-
return
|
|
32048
|
+
return I.Children.count(a) > 1 ? I.Children.only(null) : null;
|
|
32043
32049
|
});
|
|
32044
32050
|
return t.displayName = `${e}.SlotClone`, t;
|
|
32045
32051
|
}
|
|
32046
32052
|
var CA = Symbol("radix.slottable");
|
|
32047
32053
|
function xA(e) {
|
|
32048
|
-
return
|
|
32054
|
+
return I.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === CA;
|
|
32049
32055
|
}
|
|
32050
32056
|
function OA(e, t) {
|
|
32051
32057
|
const n = { ...t };
|
|
@@ -32082,7 +32088,7 @@ var DA = [
|
|
|
32082
32088
|
"svg",
|
|
32083
32089
|
"ul"
|
|
32084
32090
|
], ot = DA.reduce((e, t) => {
|
|
32085
|
-
const n = /* @__PURE__ */ Xp(`Primitive.${t}`), r =
|
|
32091
|
+
const n = /* @__PURE__ */ Xp(`Primitive.${t}`), r = I.forwardRef((a, i) => {
|
|
32086
32092
|
const { asChild: o, ...s } = a, l = o ? n : t;
|
|
32087
32093
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ P(l, { ...s, ref: i });
|
|
32088
32094
|
});
|
|
@@ -32092,28 +32098,28 @@ function MA(e, t) {
|
|
|
32092
32098
|
e && Fu.flushSync(() => e.dispatchEvent(t));
|
|
32093
32099
|
}
|
|
32094
32100
|
function Ut(e) {
|
|
32095
|
-
const t =
|
|
32096
|
-
return
|
|
32101
|
+
const t = I.useRef(e);
|
|
32102
|
+
return I.useEffect(() => {
|
|
32097
32103
|
t.current = e;
|
|
32098
|
-
}),
|
|
32104
|
+
}), I.useMemo(() => (...n) => {
|
|
32099
32105
|
var r;
|
|
32100
32106
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
32101
32107
|
}, []);
|
|
32102
32108
|
}
|
|
32103
32109
|
function FA(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
32104
32110
|
const n = Ut(e);
|
|
32105
|
-
|
|
32111
|
+
I.useEffect(() => {
|
|
32106
32112
|
const r = (a) => {
|
|
32107
32113
|
a.key === "Escape" && n(a);
|
|
32108
32114
|
};
|
|
32109
32115
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
32110
32116
|
}, [n, t]);
|
|
32111
32117
|
}
|
|
32112
|
-
var PA = "DismissableLayer", ua = "dismissableLayer.update", UA = "dismissableLayer.pointerDownOutside", BA = "dismissableLayer.focusOutside", nd, Zp =
|
|
32118
|
+
var PA = "DismissableLayer", ua = "dismissableLayer.update", UA = "dismissableLayer.pointerDownOutside", BA = "dismissableLayer.focusOutside", nd, Zp = I.createContext({
|
|
32113
32119
|
layers: /* @__PURE__ */ new Set(),
|
|
32114
32120
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
32115
32121
|
branches: /* @__PURE__ */ new Set()
|
|
32116
|
-
}), Qp =
|
|
32122
|
+
}), Qp = I.forwardRef(
|
|
32117
32123
|
(e, t) => {
|
|
32118
32124
|
const {
|
|
32119
32125
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -32123,25 +32129,25 @@ var PA = "DismissableLayer", ua = "dismissableLayer.update", UA = "dismissableLa
|
|
|
32123
32129
|
onInteractOutside: o,
|
|
32124
32130
|
onDismiss: s,
|
|
32125
32131
|
...l
|
|
32126
|
-
} = e, u =
|
|
32127
|
-
const O =
|
|
32128
|
-
!v || M || (a == null || a(
|
|
32129
|
-
}, d),
|
|
32130
|
-
const O =
|
|
32131
|
-
[...u.branches].some((k) => k.contains(O)) || (i == null || i(
|
|
32132
|
+
} = e, u = I.useContext(Zp), [p, c] = I.useState(null), d = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = I.useState({}), f = bt(t, (R) => c(R)), m = Array.from(u.layers), [y] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), b = m.indexOf(y), S = p ? m.indexOf(p) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, v = S >= b, _ = GA((R) => {
|
|
32133
|
+
const O = R.target, M = [...u.branches].some((k) => k.contains(O));
|
|
32134
|
+
!v || M || (a == null || a(R), o == null || o(R), R.defaultPrevented || s == null || s());
|
|
32135
|
+
}, d), T = HA((R) => {
|
|
32136
|
+
const O = R.target;
|
|
32137
|
+
[...u.branches].some((k) => k.contains(O)) || (i == null || i(R), o == null || o(R), R.defaultPrevented || s == null || s());
|
|
32132
32138
|
}, d);
|
|
32133
|
-
return FA((
|
|
32134
|
-
S === u.layers.size - 1 && (r == null || r(
|
|
32135
|
-
}, d),
|
|
32139
|
+
return FA((R) => {
|
|
32140
|
+
S === u.layers.size - 1 && (r == null || r(R), !R.defaultPrevented && s && (R.preventDefault(), s()));
|
|
32141
|
+
}, d), I.useEffect(() => {
|
|
32136
32142
|
if (p)
|
|
32137
32143
|
return n && (u.layersWithOutsidePointerEventsDisabled.size === 0 && (nd = d.body.style.pointerEvents, d.body.style.pointerEvents = "none"), u.layersWithOutsidePointerEventsDisabled.add(p)), u.layers.add(p), rd(), () => {
|
|
32138
32144
|
n && u.layersWithOutsidePointerEventsDisabled.size === 1 && (d.body.style.pointerEvents = nd);
|
|
32139
32145
|
};
|
|
32140
|
-
}, [p, d, n, u]),
|
|
32146
|
+
}, [p, d, n, u]), I.useEffect(() => () => {
|
|
32141
32147
|
p && (u.layers.delete(p), u.layersWithOutsidePointerEventsDisabled.delete(p), rd());
|
|
32142
|
-
}, [p, u]),
|
|
32143
|
-
const
|
|
32144
|
-
return document.addEventListener(ua,
|
|
32148
|
+
}, [p, u]), I.useEffect(() => {
|
|
32149
|
+
const R = () => g({});
|
|
32150
|
+
return document.addEventListener(ua, R), () => document.removeEventListener(ua, R);
|
|
32145
32151
|
}, []), /* @__PURE__ */ P(
|
|
32146
32152
|
ot.div,
|
|
32147
32153
|
{
|
|
@@ -32151,8 +32157,8 @@ var PA = "DismissableLayer", ua = "dismissableLayer.update", UA = "dismissableLa
|
|
|
32151
32157
|
pointerEvents: w ? v ? "auto" : "none" : void 0,
|
|
32152
32158
|
...e.style
|
|
32153
32159
|
},
|
|
32154
|
-
onFocusCapture: ct(e.onFocusCapture,
|
|
32155
|
-
onBlurCapture: ct(e.onBlurCapture,
|
|
32160
|
+
onFocusCapture: ct(e.onFocusCapture, T.onFocusCapture),
|
|
32161
|
+
onBlurCapture: ct(e.onBlurCapture, T.onBlurCapture),
|
|
32156
32162
|
onPointerDownCapture: ct(
|
|
32157
32163
|
e.onPointerDownCapture,
|
|
32158
32164
|
_.onPointerDownCapture
|
|
@@ -32162,9 +32168,9 @@ var PA = "DismissableLayer", ua = "dismissableLayer.update", UA = "dismissableLa
|
|
|
32162
32168
|
}
|
|
32163
32169
|
);
|
|
32164
32170
|
Qp.displayName = PA;
|
|
32165
|
-
var $A = "DismissableLayerBranch", zA =
|
|
32166
|
-
const n =
|
|
32167
|
-
return
|
|
32171
|
+
var $A = "DismissableLayerBranch", zA = I.forwardRef((e, t) => {
|
|
32172
|
+
const n = I.useContext(Zp), r = I.useRef(null), a = bt(t, r);
|
|
32173
|
+
return I.useEffect(() => {
|
|
32168
32174
|
const i = r.current;
|
|
32169
32175
|
if (i)
|
|
32170
32176
|
return n.branches.add(i), () => {
|
|
@@ -32174,9 +32180,9 @@ var $A = "DismissableLayerBranch", zA = R.forwardRef((e, t) => {
|
|
|
32174
32180
|
});
|
|
32175
32181
|
zA.displayName = $A;
|
|
32176
32182
|
function GA(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
32177
|
-
const n = Ut(e), r =
|
|
32183
|
+
const n = Ut(e), r = I.useRef(!1), a = I.useRef(() => {
|
|
32178
32184
|
});
|
|
32179
|
-
return
|
|
32185
|
+
return I.useEffect(() => {
|
|
32180
32186
|
const i = (s) => {
|
|
32181
32187
|
if (s.target && !r.current) {
|
|
32182
32188
|
let l = function() {
|
|
@@ -32204,8 +32210,8 @@ function GA(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
32204
32210
|
};
|
|
32205
32211
|
}
|
|
32206
32212
|
function HA(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
32207
|
-
const n = Ut(e), r =
|
|
32208
|
-
return
|
|
32213
|
+
const n = Ut(e), r = I.useRef(!1);
|
|
32214
|
+
return I.useEffect(() => {
|
|
32209
32215
|
const a = (i) => {
|
|
32210
32216
|
i.target && !r.current && Jp(BA, n, { originalEvent: i }, {
|
|
32211
32217
|
discrete: !1
|
|
@@ -32227,7 +32233,7 @@ function Jp(e, t, n, { discrete: r }) {
|
|
|
32227
32233
|
}
|
|
32228
32234
|
var Pr = 0;
|
|
32229
32235
|
function jA() {
|
|
32230
|
-
|
|
32236
|
+
I.useEffect(() => {
|
|
32231
32237
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
32232
32238
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? ad()), document.body.insertAdjacentElement("beforeend", e[1] ?? ad()), Pr++, () => {
|
|
32233
32239
|
Pr === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Pr--;
|
|
@@ -32238,14 +32244,14 @@ function ad() {
|
|
|
32238
32244
|
const e = document.createElement("span");
|
|
32239
32245
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
32240
32246
|
}
|
|
32241
|
-
var Ur = "focusScope.autoFocusOnMount", Br = "focusScope.autoFocusOnUnmount", id = { bubbles: !1, cancelable: !0 }, VA = "FocusScope", eg =
|
|
32247
|
+
var Ur = "focusScope.autoFocusOnMount", Br = "focusScope.autoFocusOnUnmount", id = { bubbles: !1, cancelable: !0 }, VA = "FocusScope", eg = I.forwardRef((e, t) => {
|
|
32242
32248
|
const {
|
|
32243
32249
|
loop: n = !1,
|
|
32244
32250
|
trapped: r = !1,
|
|
32245
32251
|
onMountAutoFocus: a,
|
|
32246
32252
|
onUnmountAutoFocus: i,
|
|
32247
32253
|
...o
|
|
32248
|
-
} = e, [s, l] =
|
|
32254
|
+
} = e, [s, l] = I.useState(null), u = Ut(a), p = Ut(i), c = I.useRef(null), d = bt(t, (m) => l(m)), g = I.useRef({
|
|
32249
32255
|
paused: !1,
|
|
32250
32256
|
pause() {
|
|
32251
32257
|
this.paused = !0;
|
|
@@ -32254,7 +32260,7 @@ var Ur = "focusScope.autoFocusOnMount", Br = "focusScope.autoFocusOnUnmount", id
|
|
|
32254
32260
|
this.paused = !1;
|
|
32255
32261
|
}
|
|
32256
32262
|
}).current;
|
|
32257
|
-
|
|
32263
|
+
I.useEffect(() => {
|
|
32258
32264
|
if (r) {
|
|
32259
32265
|
let m = function(w) {
|
|
32260
32266
|
if (g.paused || !s) return;
|
|
@@ -32275,7 +32281,7 @@ var Ur = "focusScope.autoFocusOnMount", Br = "focusScope.autoFocusOnUnmount", id
|
|
|
32275
32281
|
document.removeEventListener("focusin", m), document.removeEventListener("focusout", y), S.disconnect();
|
|
32276
32282
|
};
|
|
32277
32283
|
}
|
|
32278
|
-
}, [r, s, g.paused]),
|
|
32284
|
+
}, [r, s, g.paused]), I.useEffect(() => {
|
|
32279
32285
|
if (s) {
|
|
32280
32286
|
sd.add(g);
|
|
32281
32287
|
const m = document.activeElement;
|
|
@@ -32291,7 +32297,7 @@ var Ur = "focusScope.autoFocusOnMount", Br = "focusScope.autoFocusOnUnmount", id
|
|
|
32291
32297
|
};
|
|
32292
32298
|
}
|
|
32293
32299
|
}, [s, u, p, g]);
|
|
32294
|
-
const f =
|
|
32300
|
+
const f = I.useCallback(
|
|
32295
32301
|
(m) => {
|
|
32296
32302
|
if (!n && !r || g.paused) return;
|
|
32297
32303
|
const y = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, b = document.activeElement;
|
|
@@ -32367,16 +32373,16 @@ function ld(e, t) {
|
|
|
32367
32373
|
function ZA(e) {
|
|
32368
32374
|
return e.filter((t) => t.tagName !== "A");
|
|
32369
32375
|
}
|
|
32370
|
-
var dt = globalThis != null && globalThis.document ?
|
|
32371
|
-
}, QA =
|
|
32376
|
+
var dt = globalThis != null && globalThis.document ? I.useLayoutEffect : () => {
|
|
32377
|
+
}, QA = I[" useId ".trim().toString()] || (() => {
|
|
32372
32378
|
}), JA = 0;
|
|
32373
32379
|
function eT(e) {
|
|
32374
|
-
const [t, n] =
|
|
32380
|
+
const [t, n] = I.useState(QA());
|
|
32375
32381
|
return dt(() => {
|
|
32376
32382
|
n((r) => r ?? String(JA++));
|
|
32377
32383
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
32378
32384
|
}
|
|
32379
|
-
const tT = ["top", "right", "bottom", "left"], pt = Math.min,
|
|
32385
|
+
const tT = ["top", "right", "bottom", "left"], pt = Math.min, Le = Math.max, Kn = Math.round, Cn = Math.floor, Ye = (e) => ({
|
|
32380
32386
|
x: e,
|
|
32381
32387
|
y: e
|
|
32382
32388
|
}), nT = {
|
|
@@ -32389,7 +32395,7 @@ const tT = ["top", "right", "bottom", "left"], pt = Math.min, Oe = Math.max, Kn
|
|
|
32389
32395
|
end: "start"
|
|
32390
32396
|
};
|
|
32391
32397
|
function ca(e, t, n) {
|
|
32392
|
-
return
|
|
32398
|
+
return Le(e, pt(t, n));
|
|
32393
32399
|
}
|
|
32394
32400
|
function rt(e, t) {
|
|
32395
32401
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -32657,10 +32663,10 @@ const gT = (e) => ({
|
|
|
32657
32663
|
const c = ng(p), d = {
|
|
32658
32664
|
x: n,
|
|
32659
32665
|
y: r
|
|
32660
|
-
}, g = Bu(a), f = Uu(g), m = await o.getDimensions(u), y = g === "y", b = y ? "top" : "left", S = y ? "bottom" : "right", w = y ? "clientHeight" : "clientWidth", v = i.reference[f] + i.reference[g] - d[g] - i.floating[f], _ = d[g] - i.reference[g],
|
|
32661
|
-
let
|
|
32662
|
-
(!
|
|
32663
|
-
const O = v / 2 - _ / 2, M =
|
|
32666
|
+
}, g = Bu(a), f = Uu(g), m = await o.getDimensions(u), y = g === "y", b = y ? "top" : "left", S = y ? "bottom" : "right", w = y ? "clientHeight" : "clientWidth", v = i.reference[f] + i.reference[g] - d[g] - i.floating[f], _ = d[g] - i.reference[g], T = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(u));
|
|
32667
|
+
let R = T ? T[w] : 0;
|
|
32668
|
+
(!R || !await (o.isElement == null ? void 0 : o.isElement(T))) && (R = s.floating[w] || i.floating[f]);
|
|
32669
|
+
const O = v / 2 - _ / 2, M = R / 2 - m[f] / 2 - 1, k = pt(c[b], M), C = pt(c[S], M), x = k, L = R - m[f] - C, U = R / 2 - m[f] / 2 + O, B = ca(x, U, L), H = !l.arrow && Kt(a) != null && U !== B && i.reference[f] / 2 - (U < x ? k : C) - m[f] / 2 < 0, z = H ? U < x ? U - x : U - L : 0;
|
|
32664
32670
|
return {
|
|
32665
32671
|
[g]: d[g] + z,
|
|
32666
32672
|
data: {
|
|
@@ -32697,9 +32703,9 @@ const gT = (e) => ({
|
|
|
32697
32703
|
} = rt(e, t);
|
|
32698
32704
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
32699
32705
|
return {};
|
|
32700
|
-
const b = at(a), S = qe(s), w = at(s) === s, v = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), _ = d || (w || !m ? [Xn(s)] : oT(s)),
|
|
32701
|
-
!d &&
|
|
32702
|
-
const
|
|
32706
|
+
const b = at(a), S = qe(s), w = at(s) === s, v = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), _ = d || (w || !m ? [Xn(s)] : oT(s)), T = f !== "none";
|
|
32707
|
+
!d && T && _.push(...cT(s, m, f, v));
|
|
32708
|
+
const R = [s, ..._], O = await pn(t, y), M = [];
|
|
32703
32709
|
let k = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
32704
32710
|
if (p && M.push(O[b]), c) {
|
|
32705
32711
|
const U = iT(a, o, v);
|
|
@@ -32710,7 +32716,7 @@ const gT = (e) => ({
|
|
|
32710
32716
|
overflows: M
|
|
32711
32717
|
}], !M.every((U) => U <= 0)) {
|
|
32712
32718
|
var C, x;
|
|
32713
|
-
const U = (((C = i.flip) == null ? void 0 : C.index) || 0) + 1, B =
|
|
32719
|
+
const U = (((C = i.flip) == null ? void 0 : C.index) || 0) + 1, B = R[U];
|
|
32714
32720
|
if (B && (!(c === "alignment" ? S !== qe(B) : !1) || // We leave the current main axis only if every placement on that axis
|
|
32715
32721
|
// overflows the main axis.
|
|
32716
32722
|
k.every(($) => qe($.placement) === S ? $.overflows[0] > 0 : !0)))
|
|
@@ -32729,7 +32735,7 @@ const gT = (e) => ({
|
|
|
32729
32735
|
case "bestFit": {
|
|
32730
32736
|
var L;
|
|
32731
32737
|
const z = (L = k.filter(($) => {
|
|
32732
|
-
if (
|
|
32738
|
+
if (T) {
|
|
32733
32739
|
const W = qe($.placement);
|
|
32734
32740
|
return W === S || // Create a bias to the `y` side axis due to horizontal
|
|
32735
32741
|
// reading directions favoring greater width.
|
|
@@ -32946,8 +32952,8 @@ const hT = function(e) {
|
|
|
32946
32952
|
}
|
|
32947
32953
|
if (u) {
|
|
32948
32954
|
var b, S;
|
|
32949
|
-
const w = d === "y" ? "width" : "height", v = rg.has(at(a)), _ = i.reference[c] - i.floating[w] + (v && ((b = o.offset) == null ? void 0 : b[c]) || 0) + (v ? 0 : y.crossAxis),
|
|
32950
|
-
f < _ ? f = _ : f >
|
|
32955
|
+
const w = d === "y" ? "width" : "height", v = rg.has(at(a)), _ = i.reference[c] - i.floating[w] + (v && ((b = o.offset) == null ? void 0 : b[c]) || 0) + (v ? 0 : y.crossAxis), T = i.reference[c] + i.reference[w] + (v ? 0 : ((S = o.offset) == null ? void 0 : S[c]) || 0) - (v ? y.crossAxis : 0);
|
|
32956
|
+
f < _ ? f = _ : f > T && (f = T);
|
|
32951
32957
|
}
|
|
32952
32958
|
return {
|
|
32953
32959
|
[d]: g,
|
|
@@ -32976,16 +32982,16 @@ const hT = function(e) {
|
|
|
32976
32982
|
} = i.floating;
|
|
32977
32983
|
let y, b;
|
|
32978
32984
|
c === "top" || c === "bottom" ? (y = c, b = d === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (b = c, y = d === "end" ? "top" : "bottom");
|
|
32979
|
-
const S = m - p.top - p.bottom, w = f - p.left - p.right, v = pt(m - p[y], S), _ = pt(f - p[b], w),
|
|
32980
|
-
let
|
|
32981
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = w), (r = t.middlewareData.shift) != null && r.enabled.y && (
|
|
32982
|
-
const k =
|
|
32983
|
-
g ? O = f - 2 * (k !== 0 || C !== 0 ? k + C :
|
|
32985
|
+
const S = m - p.top - p.bottom, w = f - p.left - p.right, v = pt(m - p[y], S), _ = pt(f - p[b], w), T = !t.middlewareData.shift;
|
|
32986
|
+
let R = v, O = _;
|
|
32987
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (O = w), (r = t.middlewareData.shift) != null && r.enabled.y && (R = S), T && !d) {
|
|
32988
|
+
const k = Le(p.left, 0), C = Le(p.right, 0), x = Le(p.top, 0), L = Le(p.bottom, 0);
|
|
32989
|
+
g ? O = f - 2 * (k !== 0 || C !== 0 ? k + C : Le(p.left, p.right)) : R = m - 2 * (x !== 0 || L !== 0 ? x + L : Le(p.top, p.bottom));
|
|
32984
32990
|
}
|
|
32985
32991
|
await l({
|
|
32986
32992
|
...t,
|
|
32987
32993
|
availableWidth: O,
|
|
32988
|
-
availableHeight:
|
|
32994
|
+
availableHeight: R
|
|
32989
32995
|
});
|
|
32990
32996
|
const M = await o.getDimensions(s.floating);
|
|
32991
32997
|
return f !== M.width || m !== M.height ? {
|
|
@@ -33046,12 +33052,12 @@ function br(e) {
|
|
|
33046
33052
|
}
|
|
33047
33053
|
});
|
|
33048
33054
|
}
|
|
33049
|
-
const vT = ["transform", "translate", "scale", "rotate", "perspective"], _T = ["transform", "translate", "scale", "rotate", "perspective", "filter"],
|
|
33055
|
+
const vT = ["transform", "translate", "scale", "rotate", "perspective"], _T = ["transform", "translate", "scale", "rotate", "perspective", "filter"], IT = ["paint", "layout", "strict", "content"];
|
|
33050
33056
|
function $u(e) {
|
|
33051
33057
|
const t = zu(), n = ze(e) ? Ge(e) : e;
|
|
33052
|
-
return vT.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || _T.some((r) => (n.willChange || "").includes(r)) ||
|
|
33058
|
+
return vT.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || _T.some((r) => (n.willChange || "").includes(r)) || IT.some((r) => (n.contain || "").includes(r));
|
|
33053
33059
|
}
|
|
33054
|
-
function
|
|
33060
|
+
function RT(e) {
|
|
33055
33061
|
let t = gt(e);
|
|
33056
33062
|
for (; Ke(t) && !Bt(t); ) {
|
|
33057
33063
|
if ($u(t))
|
|
@@ -33213,10 +33219,10 @@ function LT(e) {
|
|
|
33213
33219
|
return Array.from(e.getClientRects());
|
|
33214
33220
|
}
|
|
33215
33221
|
function DT(e) {
|
|
33216
|
-
const t = Qe(e), n = hr(e), r = e.ownerDocument.body, a =
|
|
33222
|
+
const t = Qe(e), n = hr(e), r = e.ownerDocument.body, a = Le(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), i = Le(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
33217
33223
|
let o = -n.scrollLeft + yr(e);
|
|
33218
33224
|
const s = -n.scrollTop;
|
|
33219
|
-
return Ge(r).direction === "rtl" && (o +=
|
|
33225
|
+
return Ge(r).direction === "rtl" && (o += Le(t.clientWidth, r.clientWidth) - a), {
|
|
33220
33226
|
width: a,
|
|
33221
33227
|
height: i,
|
|
33222
33228
|
x: o,
|
|
@@ -33299,7 +33305,7 @@ function BT(e) {
|
|
|
33299
33305
|
} = e;
|
|
33300
33306
|
const o = [...n === "clippingAncestors" ? br(t) ? [] : UT(t, this._c) : [].concat(n), r], s = o[0], l = o.reduce((u, p) => {
|
|
33301
33307
|
const c = bd(t, p, a);
|
|
33302
|
-
return u.top =
|
|
33308
|
+
return u.top = Le(c.top, u.top), u.right = pt(c.right, u.right), u.bottom = pt(c.bottom, u.bottom), u.left = Le(c.left, u.left), u;
|
|
33303
33309
|
}, bd(t, s, a));
|
|
33304
33310
|
return {
|
|
33305
33311
|
width: l.right - l.left,
|
|
@@ -33369,7 +33375,7 @@ function cg(e, t) {
|
|
|
33369
33375
|
let r = hd(e, t);
|
|
33370
33376
|
for (; r && TT(r) && $r(r); )
|
|
33371
33377
|
r = hd(r, t);
|
|
33372
|
-
return r && Bt(r) && $r(r) && !$u(r) ? n : r ||
|
|
33378
|
+
return r && Bt(r) && $r(r) && !$u(r) ? n : r || RT(e) || n;
|
|
33373
33379
|
}
|
|
33374
33380
|
const GT = async function(e) {
|
|
33375
33381
|
const t = this.getOffsetParent || cg, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -33420,19 +33426,19 @@ function VT(e, t) {
|
|
|
33420
33426
|
return;
|
|
33421
33427
|
const f = Cn(c), m = Cn(a.clientWidth - (p + d)), y = Cn(a.clientHeight - (c + g)), b = Cn(p), w = {
|
|
33422
33428
|
rootMargin: -f + "px " + -m + "px " + -y + "px " + -b + "px",
|
|
33423
|
-
threshold:
|
|
33429
|
+
threshold: Le(0, pt(1, l)) || 1
|
|
33424
33430
|
};
|
|
33425
33431
|
let v = !0;
|
|
33426
|
-
function _(
|
|
33427
|
-
const
|
|
33428
|
-
if (
|
|
33432
|
+
function _(T) {
|
|
33433
|
+
const R = T[0].intersectionRatio;
|
|
33434
|
+
if (R !== l) {
|
|
33429
33435
|
if (!v)
|
|
33430
33436
|
return o();
|
|
33431
|
-
|
|
33437
|
+
R ? o(!1, R) : r = setTimeout(() => {
|
|
33432
33438
|
o(!1, 1e-7);
|
|
33433
33439
|
}, 1e3);
|
|
33434
33440
|
}
|
|
33435
|
-
|
|
33441
|
+
R === 1 && !dg(u, e.getBoundingClientRect()) && o(), v = !1;
|
|
33436
33442
|
}
|
|
33437
33443
|
try {
|
|
33438
33444
|
n = new IntersectionObserver(_, {
|
|
@@ -33536,7 +33542,7 @@ function Ed(e, t) {
|
|
|
33536
33542
|
return Math.round(t * n) / n;
|
|
33537
33543
|
}
|
|
33538
33544
|
function zr(e) {
|
|
33539
|
-
const t =
|
|
33545
|
+
const t = I.useRef(e);
|
|
33540
33546
|
return $n(() => {
|
|
33541
33547
|
t.current = e;
|
|
33542
33548
|
}), t;
|
|
@@ -33555,28 +33561,28 @@ function nk(e) {
|
|
|
33555
33561
|
transform: s = !0,
|
|
33556
33562
|
whileElementsMounted: l,
|
|
33557
33563
|
open: u
|
|
33558
|
-
} = e, [p, c] =
|
|
33564
|
+
} = e, [p, c] = I.useState({
|
|
33559
33565
|
x: 0,
|
|
33560
33566
|
y: 0,
|
|
33561
33567
|
strategy: n,
|
|
33562
33568
|
placement: t,
|
|
33563
33569
|
middlewareData: {},
|
|
33564
33570
|
isPositioned: !1
|
|
33565
|
-
}), [d, g] =
|
|
33571
|
+
}), [d, g] = I.useState(r);
|
|
33566
33572
|
Qn(d, r) || g(r);
|
|
33567
|
-
const [f, m] =
|
|
33568
|
-
$ !==
|
|
33569
|
-
}, []), w =
|
|
33570
|
-
$ !==
|
|
33571
|
-
}, []), v = i || f, _ = o || y,
|
|
33572
|
-
if (!
|
|
33573
|
+
const [f, m] = I.useState(null), [y, b] = I.useState(null), S = I.useCallback(($) => {
|
|
33574
|
+
$ !== T.current && (T.current = $, m($));
|
|
33575
|
+
}, []), w = I.useCallback(($) => {
|
|
33576
|
+
$ !== R.current && (R.current = $, b($));
|
|
33577
|
+
}, []), v = i || f, _ = o || y, T = I.useRef(null), R = I.useRef(null), O = I.useRef(p), M = l != null, k = zr(l), C = zr(a), x = zr(u), L = I.useCallback(() => {
|
|
33578
|
+
if (!T.current || !R.current)
|
|
33573
33579
|
return;
|
|
33574
33580
|
const $ = {
|
|
33575
33581
|
placement: t,
|
|
33576
33582
|
strategy: n,
|
|
33577
33583
|
middleware: d
|
|
33578
33584
|
};
|
|
33579
|
-
C.current && ($.platform = C.current), JT(
|
|
33585
|
+
C.current && ($.platform = C.current), JT(T.current, R.current, $).then((W) => {
|
|
33580
33586
|
const E = {
|
|
33581
33587
|
...W,
|
|
33582
33588
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -33596,25 +33602,25 @@ function nk(e) {
|
|
|
33596
33602
|
isPositioned: !1
|
|
33597
33603
|
})));
|
|
33598
33604
|
}, [u]);
|
|
33599
|
-
const U =
|
|
33605
|
+
const U = I.useRef(!1);
|
|
33600
33606
|
$n(() => (U.current = !0, () => {
|
|
33601
33607
|
U.current = !1;
|
|
33602
33608
|
}), []), $n(() => {
|
|
33603
|
-
if (v && (
|
|
33609
|
+
if (v && (T.current = v), _ && (R.current = _), v && _) {
|
|
33604
33610
|
if (k.current)
|
|
33605
33611
|
return k.current(v, _, L);
|
|
33606
33612
|
L();
|
|
33607
33613
|
}
|
|
33608
33614
|
}, [v, _, L, k, M]);
|
|
33609
|
-
const B =
|
|
33610
|
-
reference:
|
|
33611
|
-
floating:
|
|
33615
|
+
const B = I.useMemo(() => ({
|
|
33616
|
+
reference: T,
|
|
33617
|
+
floating: R,
|
|
33612
33618
|
setReference: S,
|
|
33613
33619
|
setFloating: w
|
|
33614
|
-
}), [S, w]), H =
|
|
33620
|
+
}), [S, w]), H = I.useMemo(() => ({
|
|
33615
33621
|
reference: v,
|
|
33616
33622
|
floating: _
|
|
33617
|
-
}), [v, _]), z =
|
|
33623
|
+
}), [v, _]), z = I.useMemo(() => {
|
|
33618
33624
|
const $ = {
|
|
33619
33625
|
position: n,
|
|
33620
33626
|
left: 0,
|
|
@@ -33635,7 +33641,7 @@ function nk(e) {
|
|
|
33635
33641
|
top: E
|
|
33636
33642
|
};
|
|
33637
33643
|
}, [n, s, H.floating, p.x, p.y]);
|
|
33638
|
-
return
|
|
33644
|
+
return I.useMemo(() => ({
|
|
33639
33645
|
...p,
|
|
33640
33646
|
update: L,
|
|
33641
33647
|
refs: B,
|
|
@@ -33686,7 +33692,7 @@ const rk = (e) => {
|
|
|
33686
33692
|
...rk(e),
|
|
33687
33693
|
options: [e, t]
|
|
33688
33694
|
});
|
|
33689
|
-
var dk = "Arrow", gg =
|
|
33695
|
+
var dk = "Arrow", gg = I.forwardRef((e, t) => {
|
|
33690
33696
|
const { children: n, width: r = 10, height: a = 5, ...i } = e;
|
|
33691
33697
|
return /* @__PURE__ */ P(
|
|
33692
33698
|
ot.svg,
|
|
@@ -33704,7 +33710,7 @@ var dk = "Arrow", gg = R.forwardRef((e, t) => {
|
|
|
33704
33710
|
gg.displayName = dk;
|
|
33705
33711
|
var pk = gg;
|
|
33706
33712
|
function gk(e) {
|
|
33707
|
-
const [t, n] =
|
|
33713
|
+
const [t, n] = I.useState(void 0);
|
|
33708
33714
|
return dt(() => {
|
|
33709
33715
|
if (e) {
|
|
33710
33716
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
@@ -33726,21 +33732,21 @@ function gk(e) {
|
|
|
33726
33732
|
}, [e]), t;
|
|
33727
33733
|
}
|
|
33728
33734
|
var Hu = "Popper", [fg, mg] = Yp(Hu), [fk, bg] = fg(Hu), hg = (e) => {
|
|
33729
|
-
const { __scopePopper: t, children: n } = e, [r, a] =
|
|
33735
|
+
const { __scopePopper: t, children: n } = e, [r, a] = I.useState(null);
|
|
33730
33736
|
return /* @__PURE__ */ P(fk, { scope: t, anchor: r, onAnchorChange: a, children: n });
|
|
33731
33737
|
};
|
|
33732
33738
|
hg.displayName = Hu;
|
|
33733
|
-
var yg = "PopperAnchor", Eg =
|
|
33739
|
+
var yg = "PopperAnchor", Eg = I.forwardRef(
|
|
33734
33740
|
(e, t) => {
|
|
33735
|
-
const { __scopePopper: n, virtualRef: r, ...a } = e, i = bg(yg, n), o =
|
|
33736
|
-
return
|
|
33741
|
+
const { __scopePopper: n, virtualRef: r, ...a } = e, i = bg(yg, n), o = I.useRef(null), s = bt(t, o), l = I.useRef(null);
|
|
33742
|
+
return I.useEffect(() => {
|
|
33737
33743
|
const u = l.current;
|
|
33738
33744
|
l.current = (r == null ? void 0 : r.current) || o.current, u !== l.current && i.onAnchorChange(l.current);
|
|
33739
33745
|
}), r ? null : /* @__PURE__ */ P(ot.div, { ...a, ref: s });
|
|
33740
33746
|
}
|
|
33741
33747
|
);
|
|
33742
33748
|
Eg.displayName = yg;
|
|
33743
|
-
var ju = "PopperContent", [mk, bk] = fg(ju), Sg =
|
|
33749
|
+
var ju = "PopperContent", [mk, bk] = fg(ju), Sg = I.forwardRef(
|
|
33744
33750
|
(e, t) => {
|
|
33745
33751
|
var ke, de, ve, _e, j, ee;
|
|
33746
33752
|
const {
|
|
@@ -33758,7 +33764,7 @@ var ju = "PopperContent", [mk, bk] = fg(ju), Sg = R.forwardRef(
|
|
|
33758
33764
|
updatePositionStrategy: g = "optimized",
|
|
33759
33765
|
onPlaced: f,
|
|
33760
33766
|
...m
|
|
33761
|
-
} = e, y = bg(ju, n), [b, S] =
|
|
33767
|
+
} = e, y = bg(ju, n), [b, S] = I.useState(null), w = bt(t, (fe) => S(fe)), [v, _] = I.useState(null), T = gk(v), R = (T == null ? void 0 : T.width) ?? 0, O = (T == null ? void 0 : T.height) ?? 0, M = r + (i !== "center" ? "-" + i : ""), k = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, C = Array.isArray(u) ? u : [u], x = C.length > 0, L = {
|
|
33762
33768
|
padding: k,
|
|
33763
33769
|
boundary: C.filter(yk),
|
|
33764
33770
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -33767,7 +33773,7 @@ var ju = "PopperContent", [mk, bk] = fg(ju), Sg = R.forwardRef(
|
|
|
33767
33773
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
33768
33774
|
strategy: "fixed",
|
|
33769
33775
|
placement: M,
|
|
33770
|
-
whileElementsMounted: (...
|
|
33776
|
+
whileElementsMounted: (...fe) => WT(...fe, {
|
|
33771
33777
|
animationFrame: g === "always"
|
|
33772
33778
|
}),
|
|
33773
33779
|
elements: {
|
|
@@ -33784,20 +33790,20 @@ var ju = "PopperContent", [mk, bk] = fg(ju), Sg = R.forwardRef(
|
|
|
33784
33790
|
l && sk({ ...L }),
|
|
33785
33791
|
lk({
|
|
33786
33792
|
...L,
|
|
33787
|
-
apply: ({ elements:
|
|
33788
|
-
const { width: Pe, height: et } = se.reference, He =
|
|
33789
|
-
He.setProperty("--radix-popper-available-width", `${
|
|
33793
|
+
apply: ({ elements: fe, rects: se, availableWidth: Ce, availableHeight: Je }) => {
|
|
33794
|
+
const { width: Pe, height: et } = se.reference, He = fe.floating.style;
|
|
33795
|
+
He.setProperty("--radix-popper-available-width", `${Ce}px`), He.setProperty("--radix-popper-available-height", `${Je}px`), He.setProperty("--radix-popper-anchor-width", `${Pe}px`), He.setProperty("--radix-popper-anchor-height", `${et}px`);
|
|
33790
33796
|
}
|
|
33791
33797
|
}),
|
|
33792
33798
|
v && ck({ element: v, padding: s }),
|
|
33793
|
-
Ek({ arrowWidth:
|
|
33799
|
+
Ek({ arrowWidth: R, arrowHeight: O }),
|
|
33794
33800
|
d && uk({ strategy: "referenceHidden", ...L })
|
|
33795
33801
|
]
|
|
33796
33802
|
}), [W, E] = Tg(H), K = Ut(f);
|
|
33797
33803
|
dt(() => {
|
|
33798
33804
|
z && (K == null || K());
|
|
33799
33805
|
}, [z, K]);
|
|
33800
|
-
const ne = (ke = $.arrow) == null ? void 0 : ke.x,
|
|
33806
|
+
const ne = (ke = $.arrow) == null ? void 0 : ke.x, A = (de = $.arrow) == null ? void 0 : de.y, oe = ((ve = $.arrow) == null ? void 0 : ve.centerOffset) !== 0, [we, te] = I.useState();
|
|
33801
33807
|
return dt(() => {
|
|
33802
33808
|
b && te(window.getComputedStyle(b).zIndex);
|
|
33803
33809
|
}, [b]), /* @__PURE__ */ P(
|
|
@@ -33810,7 +33816,7 @@ var ju = "PopperContent", [mk, bk] = fg(ju), Sg = R.forwardRef(
|
|
|
33810
33816
|
transform: z ? B.transform : "translate(0, -200%)",
|
|
33811
33817
|
// keep off the page when measuring
|
|
33812
33818
|
minWidth: "max-content",
|
|
33813
|
-
zIndex:
|
|
33819
|
+
zIndex: we,
|
|
33814
33820
|
"--radix-popper-transform-origin": [
|
|
33815
33821
|
(_e = $.transformOrigin) == null ? void 0 : _e.x,
|
|
33816
33822
|
(j = $.transformOrigin) == null ? void 0 : j.y
|
|
@@ -33831,7 +33837,7 @@ var ju = "PopperContent", [mk, bk] = fg(ju), Sg = R.forwardRef(
|
|
|
33831
33837
|
placedSide: W,
|
|
33832
33838
|
onArrowChange: _,
|
|
33833
33839
|
arrowX: ne,
|
|
33834
|
-
arrowY:
|
|
33840
|
+
arrowY: A,
|
|
33835
33841
|
shouldHideArrow: oe,
|
|
33836
33842
|
children: /* @__PURE__ */ P(
|
|
33837
33843
|
ot.div,
|
|
@@ -33860,7 +33866,7 @@ var wg = "PopperArrow", hk = {
|
|
|
33860
33866
|
right: "left",
|
|
33861
33867
|
bottom: "top",
|
|
33862
33868
|
left: "right"
|
|
33863
|
-
}, Ag =
|
|
33869
|
+
}, Ag = I.forwardRef(function(t, n) {
|
|
33864
33870
|
const { __scopePopper: r, ...a } = t, i = bk(wg, r), o = hk[i.placedSide];
|
|
33865
33871
|
return (
|
|
33866
33872
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
@@ -33923,24 +33929,24 @@ function Tg(e) {
|
|
|
33923
33929
|
const [t, n = "center"] = e.split("-");
|
|
33924
33930
|
return [t, n];
|
|
33925
33931
|
}
|
|
33926
|
-
var Sk = hg, kg = Eg, wk = Sg, Ak = Ag, Tk = "Portal", vg =
|
|
33932
|
+
var Sk = hg, kg = Eg, wk = Sg, Ak = Ag, Tk = "Portal", vg = I.forwardRef((e, t) => {
|
|
33927
33933
|
var s;
|
|
33928
|
-
const { container: n, ...r } = e, [a, i] =
|
|
33934
|
+
const { container: n, ...r } = e, [a, i] = I.useState(!1);
|
|
33929
33935
|
dt(() => i(!0), []);
|
|
33930
33936
|
const o = n || a && ((s = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : s.body);
|
|
33931
|
-
return o ?
|
|
33937
|
+
return o ? RA.createPortal(/* @__PURE__ */ P(ot.div, { ...r, ref: t }), o) : null;
|
|
33932
33938
|
});
|
|
33933
33939
|
vg.displayName = Tk;
|
|
33934
33940
|
function kk(e, t) {
|
|
33935
|
-
return
|
|
33941
|
+
return I.useReducer((n, r) => t[n][r] ?? n, e);
|
|
33936
33942
|
}
|
|
33937
33943
|
var Vu = (e) => {
|
|
33938
|
-
const { present: t, children: n } = e, r = vk(t), a = typeof n == "function" ? n({ present: r.isPresent }) :
|
|
33939
|
-
return typeof n == "function" || r.isPresent ?
|
|
33944
|
+
const { present: t, children: n } = e, r = vk(t), a = typeof n == "function" ? n({ present: r.isPresent }) : I.Children.only(n), i = bt(r.ref, _k(a));
|
|
33945
|
+
return typeof n == "function" || r.isPresent ? I.cloneElement(a, { ref: i }) : null;
|
|
33940
33946
|
};
|
|
33941
33947
|
Vu.displayName = "Presence";
|
|
33942
33948
|
function vk(e) {
|
|
33943
|
-
const [t, n] =
|
|
33949
|
+
const [t, n] = I.useState(), r = I.useRef(null), a = I.useRef(e), i = I.useRef("none"), o = e ? "mounted" : "unmounted", [s, l] = kk(o, {
|
|
33944
33950
|
mounted: {
|
|
33945
33951
|
UNMOUNT: "unmounted",
|
|
33946
33952
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -33953,7 +33959,7 @@ function vk(e) {
|
|
|
33953
33959
|
MOUNT: "mounted"
|
|
33954
33960
|
}
|
|
33955
33961
|
});
|
|
33956
|
-
return
|
|
33962
|
+
return I.useEffect(() => {
|
|
33957
33963
|
const u = xn(r.current);
|
|
33958
33964
|
i.current = s === "mounted" ? u : "none";
|
|
33959
33965
|
}, [s]), dt(() => {
|
|
@@ -33983,7 +33989,7 @@ function vk(e) {
|
|
|
33983
33989
|
l("ANIMATION_END");
|
|
33984
33990
|
}, [t, l]), {
|
|
33985
33991
|
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
33986
|
-
ref:
|
|
33992
|
+
ref: I.useCallback((u) => {
|
|
33987
33993
|
r.current = u ? getComputedStyle(u) : null, n(u);
|
|
33988
33994
|
}, [])
|
|
33989
33995
|
};
|
|
@@ -33996,8 +34002,8 @@ function _k(e) {
|
|
|
33996
34002
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
33997
34003
|
return n ? e.ref : (t = (a = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : a.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
33998
34004
|
}
|
|
33999
|
-
var
|
|
34000
|
-
function
|
|
34005
|
+
var Ik = I[" useInsertionEffect ".trim().toString()] || dt;
|
|
34006
|
+
function Rk({
|
|
34001
34007
|
prop: e,
|
|
34002
34008
|
defaultProp: t,
|
|
34003
34009
|
onChange: n = () => {
|
|
@@ -34009,15 +34015,15 @@ function Ik({
|
|
|
34009
34015
|
onChange: n
|
|
34010
34016
|
}), s = e !== void 0, l = s ? e : a;
|
|
34011
34017
|
{
|
|
34012
|
-
const p =
|
|
34013
|
-
|
|
34018
|
+
const p = I.useRef(e !== void 0);
|
|
34019
|
+
I.useEffect(() => {
|
|
34014
34020
|
const c = p.current;
|
|
34015
34021
|
c !== s && console.warn(
|
|
34016
34022
|
`${r} is changing from ${c ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
34017
34023
|
), p.current = s;
|
|
34018
34024
|
}, [s, r]);
|
|
34019
34025
|
}
|
|
34020
|
-
const u =
|
|
34026
|
+
const u = I.useCallback(
|
|
34021
34027
|
(p) => {
|
|
34022
34028
|
var c;
|
|
34023
34029
|
if (s) {
|
|
@@ -34034,10 +34040,10 @@ function Nk({
|
|
|
34034
34040
|
defaultProp: e,
|
|
34035
34041
|
onChange: t
|
|
34036
34042
|
}) {
|
|
34037
|
-
const [n, r] =
|
|
34038
|
-
return
|
|
34043
|
+
const [n, r] = I.useState(e), a = I.useRef(n), i = I.useRef(t);
|
|
34044
|
+
return Ik(() => {
|
|
34039
34045
|
i.current = t;
|
|
34040
|
-
}, [t]),
|
|
34046
|
+
}, [t]), I.useEffect(() => {
|
|
34041
34047
|
var o;
|
|
34042
34048
|
a.current !== n && ((o = i.current) == null || o.call(i, n), a.current = n);
|
|
34043
34049
|
}, [n, a]), [n, r, i];
|
|
@@ -34050,7 +34056,7 @@ var xk = function(e) {
|
|
|
34050
34056
|
return null;
|
|
34051
34057
|
var t = Array.isArray(e) ? e[0] : e;
|
|
34052
34058
|
return t.ownerDocument.body;
|
|
34053
|
-
},
|
|
34059
|
+
}, Rt = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), Ln = {}, Gr = 0, _g = function(e) {
|
|
34054
34060
|
return e && (e.host || _g(e.parentNode));
|
|
34055
34061
|
}, Ok = function(e, t) {
|
|
34056
34062
|
return t.map(function(n) {
|
|
@@ -34074,8 +34080,8 @@ var xk = function(e) {
|
|
|
34074
34080
|
p(d);
|
|
34075
34081
|
else
|
|
34076
34082
|
try {
|
|
34077
|
-
var g = d.getAttribute(r), f = g !== null && g !== "false", m = (
|
|
34078
|
-
|
|
34083
|
+
var g = d.getAttribute(r), f = g !== null && g !== "false", m = (Rt.get(d) || 0) + 1, y = (i.get(d) || 0) + 1;
|
|
34084
|
+
Rt.set(d, m), i.set(d, y), o.push(d), m === 1 && f && On.set(d, !0), y === 1 && d.setAttribute(n, "true"), f || d.setAttribute(r, "true");
|
|
34079
34085
|
} catch (b) {
|
|
34080
34086
|
console.error("aria-hidden: cannot operate on ", d, b);
|
|
34081
34087
|
}
|
|
@@ -34083,9 +34089,9 @@ var xk = function(e) {
|
|
|
34083
34089
|
};
|
|
34084
34090
|
return p(t), s.clear(), Gr++, function() {
|
|
34085
34091
|
o.forEach(function(c) {
|
|
34086
|
-
var d =
|
|
34087
|
-
|
|
34088
|
-
}), Gr--, Gr || (
|
|
34092
|
+
var d = Rt.get(c) - 1, g = i.get(c) - 1;
|
|
34093
|
+
Rt.set(c, d), i.set(c, g), d || (On.has(c) || c.removeAttribute(r), On.delete(c)), g || c.removeAttribute(n);
|
|
34094
|
+
}), Gr--, Gr || (Rt = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), Ln = {});
|
|
34089
34095
|
};
|
|
34090
34096
|
}, Dk = function(e, t, n) {
|
|
34091
34097
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -34102,7 +34108,7 @@ var xk = function(e) {
|
|
|
34102
34108
|
return t;
|
|
34103
34109
|
}, We.apply(this, arguments);
|
|
34104
34110
|
};
|
|
34105
|
-
function
|
|
34111
|
+
function Ig(e, t) {
|
|
34106
34112
|
var n = {};
|
|
34107
34113
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
34108
34114
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -34120,7 +34126,7 @@ function Hr(e, t) {
|
|
|
34120
34126
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
34121
34127
|
}
|
|
34122
34128
|
function Uk(e, t) {
|
|
34123
|
-
var n =
|
|
34129
|
+
var n = J(function() {
|
|
34124
34130
|
return {
|
|
34125
34131
|
// value
|
|
34126
34132
|
value: e,
|
|
@@ -34140,7 +34146,7 @@ function Uk(e, t) {
|
|
|
34140
34146
|
})[0];
|
|
34141
34147
|
return n.callback = t, n.facade;
|
|
34142
34148
|
}
|
|
34143
|
-
var Bk = typeof window < "u" ?
|
|
34149
|
+
var Bk = typeof window < "u" ? I.useLayoutEffect : I.useEffect, Sd = /* @__PURE__ */ new WeakMap();
|
|
34144
34150
|
function $k(e, t) {
|
|
34145
34151
|
var n = Uk(null, function(r) {
|
|
34146
34152
|
return e.forEach(function(a) {
|
|
@@ -34223,31 +34229,31 @@ function Hk(e) {
|
|
|
34223
34229
|
var t = Gk(null);
|
|
34224
34230
|
return t.options = We({ async: !0, ssr: !1 }, e), t;
|
|
34225
34231
|
}
|
|
34226
|
-
var
|
|
34227
|
-
var t = e.sideCar, n =
|
|
34232
|
+
var Rg = function(e) {
|
|
34233
|
+
var t = e.sideCar, n = Ig(e, ["sideCar"]);
|
|
34228
34234
|
if (!t)
|
|
34229
34235
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
34230
34236
|
var r = t.read();
|
|
34231
34237
|
if (!r)
|
|
34232
34238
|
throw new Error("Sidecar medium not found");
|
|
34233
|
-
return
|
|
34239
|
+
return I.createElement(r, We({}, n));
|
|
34234
34240
|
};
|
|
34235
|
-
|
|
34241
|
+
Rg.isSideCarExport = !0;
|
|
34236
34242
|
function jk(e, t) {
|
|
34237
|
-
return e.useMedium(t),
|
|
34243
|
+
return e.useMedium(t), Rg;
|
|
34238
34244
|
}
|
|
34239
34245
|
var Ng = Hk(), jr = function() {
|
|
34240
|
-
}, Er =
|
|
34241
|
-
var n =
|
|
34246
|
+
}, Er = I.forwardRef(function(e, t) {
|
|
34247
|
+
var n = I.useRef(null), r = I.useState({
|
|
34242
34248
|
onScrollCapture: jr,
|
|
34243
34249
|
onWheelCapture: jr,
|
|
34244
34250
|
onTouchMoveCapture: jr
|
|
34245
|
-
}), a = r[0], i = r[1], o = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, p = e.enabled, c = e.shards, d = e.sideCar, g = e.noRelative, f = e.noIsolation, m = e.inert, y = e.allowPinchZoom, b = e.as, S = b === void 0 ? "div" : b, w = e.gapMode, v =
|
|
34246
|
-
return
|
|
34247
|
-
|
|
34251
|
+
}), a = r[0], i = r[1], o = e.forwardProps, s = e.children, l = e.className, u = e.removeScrollBar, p = e.enabled, c = e.shards, d = e.sideCar, g = e.noRelative, f = e.noIsolation, m = e.inert, y = e.allowPinchZoom, b = e.as, S = b === void 0 ? "div" : b, w = e.gapMode, v = Ig(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), _ = d, T = $k([n, t]), R = We(We({}, v), a);
|
|
34252
|
+
return I.createElement(
|
|
34253
|
+
I.Fragment,
|
|
34248
34254
|
null,
|
|
34249
|
-
p &&
|
|
34250
|
-
o ?
|
|
34255
|
+
p && I.createElement(_, { sideCar: Ng, removeScrollBar: u, shards: c, noRelative: g, noIsolation: f, inert: m, setCallbacks: i, allowPinchZoom: !!y, lockRef: n, gapMode: w }),
|
|
34256
|
+
o ? I.cloneElement(I.Children.only(s), We(We({}, R), { ref: T })) : I.createElement(S, We({}, R, { className: l, ref: T }), s)
|
|
34251
34257
|
);
|
|
34252
34258
|
});
|
|
34253
34259
|
Er.defaultProps = {
|
|
@@ -34291,7 +34297,7 @@ var Kk = function() {
|
|
|
34291
34297
|
}, Xk = function() {
|
|
34292
34298
|
var e = Kk();
|
|
34293
34299
|
return function(t, n) {
|
|
34294
|
-
|
|
34300
|
+
I.useEffect(function() {
|
|
34295
34301
|
return e.add(t), function() {
|
|
34296
34302
|
e.remove();
|
|
34297
34303
|
};
|
|
@@ -34371,7 +34377,7 @@ var Kk = function() {
|
|
|
34371
34377
|
var e = parseInt(document.body.getAttribute(Mt) || "0", 10);
|
|
34372
34378
|
return isFinite(e) ? e : 0;
|
|
34373
34379
|
}, nv = function() {
|
|
34374
|
-
|
|
34380
|
+
I.useEffect(function() {
|
|
34375
34381
|
return document.body.setAttribute(Mt, (wd() + 1).toString()), function() {
|
|
34376
34382
|
var e = wd() - 1;
|
|
34377
34383
|
e <= 0 ? document.body.removeAttribute(Mt) : document.body.setAttribute(Mt, e.toString());
|
|
@@ -34380,10 +34386,10 @@ var Kk = function() {
|
|
|
34380
34386
|
}, rv = function(e) {
|
|
34381
34387
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, a = r === void 0 ? "margin" : r;
|
|
34382
34388
|
nv();
|
|
34383
|
-
var i =
|
|
34389
|
+
var i = I.useMemo(function() {
|
|
34384
34390
|
return Jk(a);
|
|
34385
34391
|
}, [a]);
|
|
34386
|
-
return
|
|
34392
|
+
return I.createElement(ev, { styles: tv(i, !t, a, n ? "" : "!important") });
|
|
34387
34393
|
}, ga = !1;
|
|
34388
34394
|
if (typeof window < "u")
|
|
34389
34395
|
try {
|
|
@@ -34474,10 +34480,10 @@ var Nt = ga ? { passive: !1 } : !1, av = function(e) {
|
|
|
34474
34480
|
`);
|
|
34475
34481
|
}, gv = 0, Ct = [];
|
|
34476
34482
|
function fv(e) {
|
|
34477
|
-
var t =
|
|
34478
|
-
|
|
34483
|
+
var t = I.useRef([]), n = I.useRef([0, 0]), r = I.useRef(), a = I.useState(gv++)[0], i = I.useState(Cg)[0], o = I.useRef(e);
|
|
34484
|
+
I.useEffect(function() {
|
|
34479
34485
|
o.current = e;
|
|
34480
|
-
}, [e]),
|
|
34486
|
+
}, [e]), I.useEffect(function() {
|
|
34481
34487
|
if (e.inert) {
|
|
34482
34488
|
document.body.classList.add("block-interactivity-".concat(a));
|
|
34483
34489
|
var m = Mk([e.lockRef.current], (e.shards || []).map(kd), !0).filter(Boolean);
|
|
@@ -34490,25 +34496,25 @@ function fv(e) {
|
|
|
34490
34496
|
};
|
|
34491
34497
|
}
|
|
34492
34498
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
34493
|
-
var s =
|
|
34499
|
+
var s = I.useCallback(function(m, y) {
|
|
34494
34500
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
34495
34501
|
return !o.current.allowPinchZoom;
|
|
34496
|
-
var b = Mn(m), S = n.current, w = "deltaX" in m ? m.deltaX : S[0] - b[0], v = "deltaY" in m ? m.deltaY : S[1] - b[1], _,
|
|
34497
|
-
if ("touches" in m &&
|
|
34502
|
+
var b = Mn(m), S = n.current, w = "deltaX" in m ? m.deltaX : S[0] - b[0], v = "deltaY" in m ? m.deltaY : S[1] - b[1], _, T = m.target, R = Math.abs(w) > Math.abs(v) ? "h" : "v";
|
|
34503
|
+
if ("touches" in m && R === "h" && T.type === "range")
|
|
34498
34504
|
return !1;
|
|
34499
|
-
var O = window.getSelection(), M = O && O.anchorNode, k = M ? M ===
|
|
34505
|
+
var O = window.getSelection(), M = O && O.anchorNode, k = M ? M === T || M.contains(T) : !1;
|
|
34500
34506
|
if (k)
|
|
34501
34507
|
return !1;
|
|
34502
|
-
var C = Ad(
|
|
34508
|
+
var C = Ad(R, T);
|
|
34503
34509
|
if (!C)
|
|
34504
34510
|
return !0;
|
|
34505
|
-
if (C ? _ =
|
|
34511
|
+
if (C ? _ = R : (_ = R === "v" ? "h" : "v", C = Ad(R, T)), !C)
|
|
34506
34512
|
return !1;
|
|
34507
34513
|
if (!r.current && "changedTouches" in m && (w || v) && (r.current = _), !_)
|
|
34508
34514
|
return !0;
|
|
34509
34515
|
var x = r.current || _;
|
|
34510
34516
|
return cv(x, y, m, x === "h" ? w : v);
|
|
34511
|
-
}, []), l =
|
|
34517
|
+
}, []), l = I.useCallback(function(m) {
|
|
34512
34518
|
var y = m;
|
|
34513
34519
|
if (!(!Ct.length || Ct[Ct.length - 1] !== i)) {
|
|
34514
34520
|
var b = "deltaY" in y ? Td(y) : Mn(y), S = t.current.filter(function(_) {
|
|
@@ -34525,21 +34531,21 @@ function fv(e) {
|
|
|
34525
34531
|
v && y.cancelable && y.preventDefault();
|
|
34526
34532
|
}
|
|
34527
34533
|
}
|
|
34528
|
-
}, []), u =
|
|
34534
|
+
}, []), u = I.useCallback(function(m, y, b, S) {
|
|
34529
34535
|
var w = { name: m, delta: y, target: b, should: S, shadowParent: mv(b) };
|
|
34530
34536
|
t.current.push(w), setTimeout(function() {
|
|
34531
34537
|
t.current = t.current.filter(function(v) {
|
|
34532
34538
|
return v !== w;
|
|
34533
34539
|
});
|
|
34534
34540
|
}, 1);
|
|
34535
|
-
}, []), p =
|
|
34541
|
+
}, []), p = I.useCallback(function(m) {
|
|
34536
34542
|
n.current = Mn(m), r.current = void 0;
|
|
34537
|
-
}, []), c =
|
|
34543
|
+
}, []), c = I.useCallback(function(m) {
|
|
34538
34544
|
u(m.type, Td(m), m.target, s(m, e.lockRef.current));
|
|
34539
|
-
}, []), d =
|
|
34545
|
+
}, []), d = I.useCallback(function(m) {
|
|
34540
34546
|
u(m.type, Mn(m), m.target, s(m, e.lockRef.current));
|
|
34541
34547
|
}, []);
|
|
34542
|
-
|
|
34548
|
+
I.useEffect(function() {
|
|
34543
34549
|
return Ct.push(i), e.setCallbacks({
|
|
34544
34550
|
onScrollCapture: c,
|
|
34545
34551
|
onWheelCapture: c,
|
|
@@ -34551,11 +34557,11 @@ function fv(e) {
|
|
|
34551
34557
|
};
|
|
34552
34558
|
}, []);
|
|
34553
34559
|
var g = e.removeScrollBar, f = e.inert;
|
|
34554
|
-
return
|
|
34555
|
-
|
|
34560
|
+
return I.createElement(
|
|
34561
|
+
I.Fragment,
|
|
34556
34562
|
null,
|
|
34557
|
-
f ?
|
|
34558
|
-
g ?
|
|
34563
|
+
f ? I.createElement(i, { styles: pv(a) }) : null,
|
|
34564
|
+
g ? I.createElement(rv, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
34559
34565
|
);
|
|
34560
34566
|
}
|
|
34561
34567
|
function mv(e) {
|
|
@@ -34564,8 +34570,8 @@ function mv(e) {
|
|
|
34564
34570
|
return t;
|
|
34565
34571
|
}
|
|
34566
34572
|
const bv = jk(Ng, fv);
|
|
34567
|
-
var Dg =
|
|
34568
|
-
return
|
|
34573
|
+
var Dg = I.forwardRef(function(e, t) {
|
|
34574
|
+
return I.createElement(Er, We({}, e, { ref: t, sideCar: bv }));
|
|
34569
34575
|
});
|
|
34570
34576
|
Dg.classNames = Er.classNames;
|
|
34571
34577
|
var Sr = "Popover", [Mg] = Yp(Sr, [
|
|
@@ -34578,7 +34584,7 @@ var Sr = "Popover", [Mg] = Yp(Sr, [
|
|
|
34578
34584
|
defaultOpen: a,
|
|
34579
34585
|
onOpenChange: i,
|
|
34580
34586
|
modal: o = !1
|
|
34581
|
-
} = e, s = kn(t), l =
|
|
34587
|
+
} = e, s = kn(t), l = I.useRef(null), [u, p] = I.useState(!1), [c, d] = Rk({
|
|
34582
34588
|
prop: r,
|
|
34583
34589
|
defaultProp: a ?? !1,
|
|
34584
34590
|
onChange: i,
|
|
@@ -34592,24 +34598,24 @@ var Sr = "Popover", [Mg] = Yp(Sr, [
|
|
|
34592
34598
|
triggerRef: l,
|
|
34593
34599
|
open: c,
|
|
34594
34600
|
onOpenChange: d,
|
|
34595
|
-
onOpenToggle:
|
|
34601
|
+
onOpenToggle: I.useCallback(() => d((g) => !g), [d]),
|
|
34596
34602
|
hasCustomAnchor: u,
|
|
34597
|
-
onCustomAnchorAdd:
|
|
34598
|
-
onCustomAnchorRemove:
|
|
34603
|
+
onCustomAnchorAdd: I.useCallback(() => p(!0), []),
|
|
34604
|
+
onCustomAnchorRemove: I.useCallback(() => p(!1), []),
|
|
34599
34605
|
modal: o,
|
|
34600
34606
|
children: n
|
|
34601
34607
|
}
|
|
34602
34608
|
) });
|
|
34603
34609
|
};
|
|
34604
34610
|
Fg.displayName = Sr;
|
|
34605
|
-
var Pg = "PopoverAnchor", Ug =
|
|
34611
|
+
var Pg = "PopoverAnchor", Ug = I.forwardRef(
|
|
34606
34612
|
(e, t) => {
|
|
34607
34613
|
const { __scopePopover: n, ...r } = e, a = ht(Pg, n), i = kn(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = a;
|
|
34608
|
-
return
|
|
34614
|
+
return I.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ P(kg, { ...i, ...r, ref: t });
|
|
34609
34615
|
}
|
|
34610
34616
|
);
|
|
34611
34617
|
Ug.displayName = Pg;
|
|
34612
|
-
var Bg = "PopoverTrigger", yv =
|
|
34618
|
+
var Bg = "PopoverTrigger", yv = I.forwardRef(
|
|
34613
34619
|
(e, t) => {
|
|
34614
34620
|
const { __scopePopover: n, ...r } = e, a = ht(Bg, n), i = kn(n), o = bt(t, a.triggerRef), s = /* @__PURE__ */ P(
|
|
34615
34621
|
ot.button,
|
|
@@ -34635,17 +34641,17 @@ var Wu = "PopoverPortal", [Ev, Sv] = Mg(Wu, {
|
|
|
34635
34641
|
return /* @__PURE__ */ P(Ev, { scope: t, forceMount: n, children: /* @__PURE__ */ P(Vu, { present: n || i.open, children: /* @__PURE__ */ P(vg, { asChild: !0, container: a, children: r }) }) });
|
|
34636
34642
|
};
|
|
34637
34643
|
$g.displayName = Wu;
|
|
34638
|
-
var $t = "PopoverContent", zg =
|
|
34644
|
+
var $t = "PopoverContent", zg = I.forwardRef(
|
|
34639
34645
|
(e, t) => {
|
|
34640
34646
|
const n = Sv($t, e.__scopePopover), { forceMount: r = n.forceMount, ...a } = e, i = ht($t, e.__scopePopover);
|
|
34641
34647
|
return /* @__PURE__ */ P(Vu, { present: r || i.open, children: i.modal ? /* @__PURE__ */ P(Av, { ...a, ref: t }) : /* @__PURE__ */ P(Tv, { ...a, ref: t }) });
|
|
34642
34648
|
}
|
|
34643
34649
|
);
|
|
34644
34650
|
zg.displayName = $t;
|
|
34645
|
-
var wv = /* @__PURE__ */ Xp("PopoverContent.RemoveScroll"), Av =
|
|
34651
|
+
var wv = /* @__PURE__ */ Xp("PopoverContent.RemoveScroll"), Av = I.forwardRef(
|
|
34646
34652
|
(e, t) => {
|
|
34647
|
-
const n = ht($t, e.__scopePopover), r =
|
|
34648
|
-
return
|
|
34653
|
+
const n = ht($t, e.__scopePopover), r = I.useRef(null), a = bt(t, r), i = I.useRef(!1);
|
|
34654
|
+
return I.useEffect(() => {
|
|
34649
34655
|
const o = r.current;
|
|
34650
34656
|
if (o) return Dk(o);
|
|
34651
34657
|
}, []), /* @__PURE__ */ P(Dg, { as: wv, allowPinchZoom: !0, children: /* @__PURE__ */ P(
|
|
@@ -34675,9 +34681,9 @@ var wv = /* @__PURE__ */ Xp("PopoverContent.RemoveScroll"), Av = R.forwardRef(
|
|
|
34675
34681
|
}
|
|
34676
34682
|
) });
|
|
34677
34683
|
}
|
|
34678
|
-
), Tv =
|
|
34684
|
+
), Tv = I.forwardRef(
|
|
34679
34685
|
(e, t) => {
|
|
34680
|
-
const n = ht($t, e.__scopePopover), r =
|
|
34686
|
+
const n = ht($t, e.__scopePopover), r = I.useRef(!1), a = I.useRef(!1);
|
|
34681
34687
|
return /* @__PURE__ */ P(
|
|
34682
34688
|
Gg,
|
|
34683
34689
|
{
|
|
@@ -34698,7 +34704,7 @@ var wv = /* @__PURE__ */ Xp("PopoverContent.RemoveScroll"), Av = R.forwardRef(
|
|
|
34698
34704
|
}
|
|
34699
34705
|
);
|
|
34700
34706
|
}
|
|
34701
|
-
), Gg =
|
|
34707
|
+
), Gg = I.forwardRef(
|
|
34702
34708
|
(e, t) => {
|
|
34703
34709
|
const {
|
|
34704
34710
|
__scopePopover: n,
|
|
@@ -34754,7 +34760,7 @@ var wv = /* @__PURE__ */ Xp("PopoverContent.RemoveScroll"), Av = R.forwardRef(
|
|
|
34754
34760
|
}
|
|
34755
34761
|
);
|
|
34756
34762
|
}
|
|
34757
|
-
), Hg = "PopoverClose", kv =
|
|
34763
|
+
), Hg = "PopoverClose", kv = I.forwardRef(
|
|
34758
34764
|
(e, t) => {
|
|
34759
34765
|
const { __scopePopover: n, ...r } = e, a = ht(Hg, n);
|
|
34760
34766
|
return /* @__PURE__ */ P(
|
|
@@ -34769,7 +34775,7 @@ var wv = /* @__PURE__ */ Xp("PopoverContent.RemoveScroll"), Av = R.forwardRef(
|
|
|
34769
34775
|
}
|
|
34770
34776
|
);
|
|
34771
34777
|
kv.displayName = Hg;
|
|
34772
|
-
var vv = "PopoverArrow", _v =
|
|
34778
|
+
var vv = "PopoverArrow", _v = I.forwardRef(
|
|
34773
34779
|
(e, t) => {
|
|
34774
34780
|
const { __scopePopover: n, ...r } = e, a = kn(n);
|
|
34775
34781
|
return /* @__PURE__ */ P(Ak, { ...a, ...r, ref: t });
|
|
@@ -34779,8 +34785,8 @@ _v.displayName = vv;
|
|
|
34779
34785
|
function jg(e) {
|
|
34780
34786
|
return e ? "open" : "closed";
|
|
34781
34787
|
}
|
|
34782
|
-
var
|
|
34783
|
-
const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-arrow-right'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M5%2012l14%200'%20/%3e%3cpath%20d='M13%2018l6%20-6'%20/%3e%3cpath%20d='M13%206l6%206'%20/%3e%3c/svg%3e", Ov = ({ name: e }) => /* @__PURE__ */
|
|
34788
|
+
var Iv = Fg, Rv = Ug, Nv = $g, Cv = zg;
|
|
34789
|
+
const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='currentColor'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%20class='icon%20icon-tabler%20icons-tabler-outline%20icon-tabler-arrow-right'%3e%3cpath%20stroke='none'%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20d='M5%2012l14%200'%20/%3e%3cpath%20d='M13%2018l6%20-6'%20/%3e%3cpath%20d='M13%206l6%206'%20/%3e%3c/svg%3e", Ov = ({ name: e }) => /* @__PURE__ */ Re(
|
|
34784
34790
|
"div",
|
|
34785
34791
|
{
|
|
34786
34792
|
style: {
|
|
@@ -34833,7 +34839,7 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34833
34839
|
a.getBoundingClientRect();
|
|
34834
34840
|
const g = a.getBoundingClientRect(), f = u.current;
|
|
34835
34841
|
f.style.position = "fixed", f.style.top = `${g.top}px`, f.style.left = `${g.left}px`, f.style.width = "1px", f.style.height = `${g.height}px`;
|
|
34836
|
-
}, [a, e, t.length]),
|
|
34842
|
+
}, [a, e, t.length]), Ae(() => {
|
|
34837
34843
|
if (n >= 0 && n < p.current.length) {
|
|
34838
34844
|
const g = p.current[n];
|
|
34839
34845
|
g && g.scrollIntoView({
|
|
@@ -34843,8 +34849,8 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34843
34849
|
}
|
|
34844
34850
|
}, [n]), !e || !a) return null;
|
|
34845
34851
|
const c = t.filter((g) => g.type === "option"), d = t.filter((g) => g.type === "category");
|
|
34846
|
-
return /* @__PURE__ */
|
|
34847
|
-
/* @__PURE__ */ P(
|
|
34852
|
+
return /* @__PURE__ */ Re(Iv, { open: e, children: [
|
|
34853
|
+
/* @__PURE__ */ P(Rv, { asChild: !0, children: /* @__PURE__ */ P(
|
|
34848
34854
|
"div",
|
|
34849
34855
|
{
|
|
34850
34856
|
ref: u,
|
|
@@ -34856,7 +34862,7 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34856
34862
|
}
|
|
34857
34863
|
}
|
|
34858
34864
|
) }),
|
|
34859
|
-
/* @__PURE__ */ P(Nv, { children: /* @__PURE__ */
|
|
34865
|
+
/* @__PURE__ */ P(Nv, { children: /* @__PURE__ */ Re(
|
|
34860
34866
|
Cv,
|
|
34861
34867
|
{
|
|
34862
34868
|
className: pe.popup,
|
|
@@ -34873,7 +34879,7 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34873
34879
|
g.preventDefault();
|
|
34874
34880
|
},
|
|
34875
34881
|
children: [
|
|
34876
|
-
!o && i !== "" && /* @__PURE__ */
|
|
34882
|
+
!o && i !== "" && /* @__PURE__ */ Re("div", { className: pe.breadcrumb, children: [
|
|
34877
34883
|
/* @__PURE__ */ P(
|
|
34878
34884
|
"span",
|
|
34879
34885
|
{
|
|
@@ -34887,7 +34893,7 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34887
34893
|
/* @__PURE__ */ P("span", { className: pe.breadcrumbSeparator, children: " / " }),
|
|
34888
34894
|
/* @__PURE__ */ P("span", { className: pe.breadcrumbCurrent, children: "search" })
|
|
34889
34895
|
] }),
|
|
34890
|
-
o && s && /* @__PURE__ */
|
|
34896
|
+
o && s && /* @__PURE__ */ Re("div", { className: pe.breadcrumb, children: [
|
|
34891
34897
|
/* @__PURE__ */ P(
|
|
34892
34898
|
"span",
|
|
34893
34899
|
{
|
|
@@ -34956,10 +34962,10 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34956
34962
|
memories: s
|
|
34957
34963
|
}) => {
|
|
34958
34964
|
var _e;
|
|
34959
|
-
const [l, u] =
|
|
34965
|
+
const [l, u] = J(""), [p, c] = J(""), [d, g] = J(""), [f, m] = J(!1), [y, b] = J(0), [S, w] = J(0), [v, _] = J(null), [T, R] = J(0), [O, M] = J(null), k = Be(null), C = Be(null), x = Be(!1), [L, U] = J([]), B = Be(/* @__PURE__ */ new Map()), H = Ft(() => {
|
|
34960
34966
|
const j = /* @__PURE__ */ new Map();
|
|
34961
|
-
return B.current.forEach((ee,
|
|
34962
|
-
j.set(
|
|
34967
|
+
return B.current.forEach((ee, fe) => {
|
|
34968
|
+
j.set(fe, ee);
|
|
34963
34969
|
}), s.forEach((ee) => {
|
|
34964
34970
|
j.set(ee.id, ee);
|
|
34965
34971
|
}), Array.from(j.values()).map((ee) => ({
|
|
@@ -34967,7 +34973,7 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
34967
34973
|
label: ee.title ?? ""
|
|
34968
34974
|
}));
|
|
34969
34975
|
}, [s]);
|
|
34970
|
-
|
|
34976
|
+
Ae(() => {
|
|
34971
34977
|
const j = setTimeout(() => {
|
|
34972
34978
|
g(p);
|
|
34973
34979
|
}, 300);
|
|
@@ -35002,12 +35008,12 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
35002
35008
|
setIsOpen: m,
|
|
35003
35009
|
setAtPosition: w
|
|
35004
35010
|
});
|
|
35005
|
-
|
|
35011
|
+
Ae(() => {
|
|
35006
35012
|
t(O), O && n("");
|
|
35007
|
-
}, [O, t, n]),
|
|
35013
|
+
}, [O, t, n]), Ae(() => {
|
|
35008
35014
|
(d !== "" || O !== null) && n(d);
|
|
35009
35015
|
}, [d, O, n]);
|
|
35010
|
-
const { getCaretPosition: K, setCaretPosition: ne, getPlainText:
|
|
35016
|
+
const { getCaretPosition: K, setCaretPosition: ne, getPlainText: A } = SA(k), { updateContent: oe, haveMentionsChanged: we, updateMentionSignature: te } = TA({
|
|
35011
35017
|
editableRef: k,
|
|
35012
35018
|
options: H,
|
|
35013
35019
|
mentionClassName: dn.mention,
|
|
@@ -35022,11 +35028,11 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
35022
35028
|
return;
|
|
35023
35029
|
}
|
|
35024
35030
|
M(null);
|
|
35025
|
-
const
|
|
35026
|
-
|
|
35027
|
-
const se = l,
|
|
35031
|
+
const fe = s.find((yt) => yt.id === ee.id);
|
|
35032
|
+
fe && B.current.set(fe.id, fe);
|
|
35033
|
+
const se = l, Ce = se.slice(0, y), Je = se.slice(y), Pe = Ce.lastIndexOf("@");
|
|
35028
35034
|
if (Pe === -1) return;
|
|
35029
|
-
const et =
|
|
35035
|
+
const et = Ce.slice(0, Pe) + "@" + ee.label + " " + Je, He = Ce.slice(0, Pe).length + ee.label.length + 2;
|
|
35030
35036
|
u(et), e(et), $(et), E(), te(et), requestAnimationFrame(() => {
|
|
35031
35037
|
oe(et, !1), requestAnimationFrame(() => {
|
|
35032
35038
|
var yt;
|
|
@@ -35036,48 +35042,48 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
35036
35042
|
}
|
|
35037
35043
|
const { handleKeyDown: de } = wA({
|
|
35038
35044
|
onArrowDown: () => {
|
|
35039
|
-
|
|
35045
|
+
R(
|
|
35040
35046
|
(j) => (j + 1) % z.length
|
|
35041
35047
|
);
|
|
35042
35048
|
},
|
|
35043
35049
|
onArrowUp: () => {
|
|
35044
|
-
|
|
35050
|
+
R(
|
|
35045
35051
|
(j) => (j - 1 + z.length) % z.length
|
|
35046
35052
|
);
|
|
35047
35053
|
},
|
|
35048
35054
|
onEnter: () => {
|
|
35049
|
-
ke(
|
|
35055
|
+
ke(T);
|
|
35050
35056
|
},
|
|
35051
35057
|
onEscape: () => {
|
|
35052
35058
|
O ? M(null) : E();
|
|
35053
35059
|
}
|
|
35054
35060
|
}), ve = ue(() => {
|
|
35055
35061
|
if (x.current) return;
|
|
35056
|
-
const j =
|
|
35057
|
-
u(j), e(j), $(j), b(ee), W(j, ee), (
|
|
35062
|
+
const j = A(), ee = K();
|
|
35063
|
+
u(j), e(j), $(j), b(ee), W(j, ee), (we(j) || j.trim() === "") && oe(j, !0);
|
|
35058
35064
|
}, [
|
|
35059
|
-
|
|
35065
|
+
A,
|
|
35060
35066
|
K,
|
|
35061
35067
|
W,
|
|
35062
35068
|
e,
|
|
35063
35069
|
$,
|
|
35064
|
-
|
|
35070
|
+
we,
|
|
35065
35071
|
oe,
|
|
35066
35072
|
b
|
|
35067
35073
|
]);
|
|
35068
|
-
return
|
|
35074
|
+
return Ae(() => {
|
|
35069
35075
|
k.current && !k.current.textContent && (te(l), oe(l, !1));
|
|
35070
|
-
}, [l, oe, te]),
|
|
35076
|
+
}, [l, oe, te]), Ae(() => {
|
|
35071
35077
|
if (!k.current) return;
|
|
35072
|
-
|
|
35073
|
-
}, [l,
|
|
35078
|
+
A() !== l && !x.current && (te(l), oe(l, !0));
|
|
35079
|
+
}, [l, A, oe, te]), ma(() => {
|
|
35074
35080
|
if (!f || !C.current) {
|
|
35075
35081
|
_(null);
|
|
35076
35082
|
return;
|
|
35077
35083
|
}
|
|
35078
35084
|
const ee = C.current.querySelector("span[data-at-marker]");
|
|
35079
35085
|
ee instanceof HTMLElement ? _(ee) : _(null);
|
|
35080
|
-
}, [y, p, f, l, C, _]), /* @__PURE__ */
|
|
35086
|
+
}, [y, p, f, l, C, _]), /* @__PURE__ */ Re("div", { className: dn.wrapper, children: [
|
|
35081
35087
|
/* @__PURE__ */ P(
|
|
35082
35088
|
yA,
|
|
35083
35089
|
{
|
|
@@ -35108,7 +35114,7 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
35108
35114
|
{
|
|
35109
35115
|
isOpen: f,
|
|
35110
35116
|
options: z,
|
|
35111
|
-
highlightedIndex:
|
|
35117
|
+
highlightedIndex: T,
|
|
35112
35118
|
onSelect: ke,
|
|
35113
35119
|
caretElement: v,
|
|
35114
35120
|
query: p,
|
|
@@ -35116,11 +35122,11 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
35116
35122
|
categoryName: O && ((_e = o.find((j) => j.id === O)) == null ? void 0 : _e.name) || null,
|
|
35117
35123
|
onResetQuery: () => {
|
|
35118
35124
|
c(""), g(""), O && M(null);
|
|
35119
|
-
const j = l, ee = j.slice(0, y),
|
|
35125
|
+
const j = l, ee = j.slice(0, y), fe = j.slice(y), se = ee.lastIndexOf("@");
|
|
35120
35126
|
if (se !== -1) {
|
|
35121
|
-
const
|
|
35122
|
-
u(
|
|
35123
|
-
oe(
|
|
35127
|
+
const Ce = j.slice(0, se + 1) + fe, Je = se + 1;
|
|
35128
|
+
u(Ce), e(Ce), $(Ce), requestAnimationFrame(() => {
|
|
35129
|
+
oe(Ce, !1), requestAnimationFrame(() => {
|
|
35124
35130
|
var Pe;
|
|
35125
35131
|
(Pe = k.current) == null || Pe.focus(), ne(Je), b(Je);
|
|
35126
35132
|
});
|
|
@@ -35139,36 +35145,27 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
35139
35145
|
}) => {
|
|
35140
35146
|
const { createAgentTask: i, agentTasks: o } = hf({
|
|
35141
35147
|
fetchCreateStreamClientSecret: a,
|
|
35142
|
-
fetchCreateAgentTaskClientSecret: r
|
|
35143
|
-
|
|
35144
|
-
console.log("agent task reasoning chunk", A);
|
|
35145
|
-
}
|
|
35146
|
-
}), [s, l] = Q(""), [u, p] = Q(null), [c, d] = Q(null), { listFirstPage: g } = kf(), { listFirstPage: f } = Tf(), [m, y] = Q(
|
|
35148
|
+
fetchCreateAgentTaskClientSecret: r
|
|
35149
|
+
}), [s, l] = J(""), [u, p] = J(null), [c, d] = J(null), { listFirstPage: g } = kf(), { listFirstPage: f } = Tf(), [m, y] = J(
|
|
35147
35150
|
null
|
|
35148
|
-
), [b, S] =
|
|
35149
|
-
return
|
|
35150
|
-
|
|
35151
|
-
id: I.streamId,
|
|
35152
|
-
markdown: I.reasoning || ""
|
|
35153
|
-
}));
|
|
35154
|
-
v(A);
|
|
35155
|
-
}, [o]), ge(() => {
|
|
35156
|
-
_.current || (_.current = !0, g({
|
|
35151
|
+
), [b, S] = J(null), w = Be(!1);
|
|
35152
|
+
return Ae(() => {
|
|
35153
|
+
w.current || (w.current = !0, g({
|
|
35157
35154
|
fetchClientSecret: t
|
|
35158
|
-
}).then((
|
|
35159
|
-
|
|
35155
|
+
}).then((v) => {
|
|
35156
|
+
v.type === "success" && y(v.page.items);
|
|
35160
35157
|
}));
|
|
35161
|
-
}, [g, t]),
|
|
35158
|
+
}, [g, t]), Ae(() => {
|
|
35162
35159
|
u === null && s === "" || f({
|
|
35163
35160
|
fetchClientSecret: n,
|
|
35164
35161
|
typeId: u ?? void 0,
|
|
35165
35162
|
memoryIds: c ?? void 0,
|
|
35166
35163
|
title: s,
|
|
35167
35164
|
meta: {}
|
|
35168
|
-
}).then((
|
|
35169
|
-
|
|
35165
|
+
}).then((v) => {
|
|
35166
|
+
v.type === "success" && S(v.page.items);
|
|
35170
35167
|
});
|
|
35171
|
-
}, [u, c, s]), /* @__PURE__ */
|
|
35168
|
+
}, [u, c, s]), /* @__PURE__ */ Re(
|
|
35172
35169
|
"div",
|
|
35173
35170
|
{
|
|
35174
35171
|
style: {
|
|
@@ -35179,27 +35176,27 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
35179
35176
|
overflow: "hidden"
|
|
35180
35177
|
},
|
|
35181
35178
|
children: [
|
|
35182
|
-
/* @__PURE__ */ P(pA, {
|
|
35179
|
+
/* @__PURE__ */ P(pA, { agentTasks: o }),
|
|
35183
35180
|
/* @__PURE__ */ P(
|
|
35184
35181
|
jv,
|
|
35185
35182
|
{
|
|
35186
35183
|
memoryTypes: m ?? [],
|
|
35187
35184
|
memories: b ?? [],
|
|
35188
|
-
onMemoryTypeChange: (
|
|
35189
|
-
p(
|
|
35185
|
+
onMemoryTypeChange: (v) => {
|
|
35186
|
+
p(v);
|
|
35190
35187
|
},
|
|
35191
|
-
onTitleQueryChange: (
|
|
35192
|
-
l(
|
|
35188
|
+
onTitleQueryChange: (v) => {
|
|
35189
|
+
l(v);
|
|
35193
35190
|
},
|
|
35194
35191
|
onChange: () => {
|
|
35195
35192
|
},
|
|
35196
|
-
onMentionChange: (
|
|
35197
|
-
d(
|
|
35193
|
+
onMentionChange: (v) => {
|
|
35194
|
+
d(v);
|
|
35198
35195
|
},
|
|
35199
35196
|
onChangeMentionPlaceholders: () => {
|
|
35200
35197
|
},
|
|
35201
|
-
onSubmit: (
|
|
35202
|
-
i({ queryText:
|
|
35198
|
+
onSubmit: (v) => {
|
|
35199
|
+
i({ queryText: v });
|
|
35203
35200
|
}
|
|
35204
35201
|
}
|
|
35205
35202
|
)
|
|
@@ -35208,10 +35205,10 @@ const xv = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
35208
35205
|
);
|
|
35209
35206
|
};
|
|
35210
35207
|
function Jv({ fency: e, children: t }) {
|
|
35211
|
-
const [n, r] =
|
|
35208
|
+
const [n, r] = J(
|
|
35212
35209
|
null
|
|
35213
|
-
), [a, i] =
|
|
35214
|
-
|
|
35210
|
+
), [a, i] = J(!0), [o, s] = J(null), [l, u] = J(null), p = Be(null);
|
|
35211
|
+
Ae(() => {
|
|
35215
35212
|
e.then((g) => {
|
|
35216
35213
|
r(g), i(!1);
|
|
35217
35214
|
}).catch((g) => {
|
|
@@ -35247,7 +35244,7 @@ function Jv({ fency: e, children: t }) {
|
|
|
35247
35244
|
[n, l]
|
|
35248
35245
|
);
|
|
35249
35246
|
if (o)
|
|
35250
|
-
return /* @__PURE__ */
|
|
35247
|
+
return /* @__PURE__ */ Re("div", { children: [
|
|
35251
35248
|
"Fency error: ",
|
|
35252
35249
|
o.message
|
|
35253
35250
|
] });
|
|
@@ -35273,7 +35270,7 @@ export {
|
|
|
35273
35270
|
rf as useFencyEventSource,
|
|
35274
35271
|
Tf as useListMemories,
|
|
35275
35272
|
kf as useListMemoryTypes,
|
|
35276
|
-
|
|
35273
|
+
Id as usePaginatedQuery,
|
|
35277
35274
|
_d as useStream,
|
|
35278
35275
|
Xv as useStreamingChatCompletions,
|
|
35279
35276
|
Zv as useStructuredChatCompletions
|