@eloquentai/chat-sdk 0.35.1-dev.2 → 0.36.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as x, jsxs as Z, Fragment as zt } from "react/jsx-runtime";
|
|
3
3
|
import * as R from "react";
|
|
4
|
-
import { useState as Ae, forwardRef as
|
|
4
|
+
import { useState as Ae, forwardRef as Ve, createContext as Ar, useContext as Er, createElement as Co, useRef as je, useEffect as vt, useMemo as qn, useCallback as wa } from "react";
|
|
5
5
|
import * as vc from "react-dom";
|
|
6
6
|
try {
|
|
7
7
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
8
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
8
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "834c9386-1c20-4fa7-911b-7cda17fe866a", e._sentryDebugIdIdentifier = "sentry-dbid-834c9386-1c20-4fa7-911b-7cda17fe866a");
|
|
9
9
|
} catch {
|
|
10
10
|
}
|
|
11
11
|
{
|
|
12
12
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
13
|
-
e.SENTRY_RELEASE = { id: "
|
|
13
|
+
e.SENTRY_RELEASE = { id: "149448de580786e5d1acb1521fc9249ddeb42fe8" };
|
|
14
14
|
}
|
|
15
15
|
function ka(e) {
|
|
16
16
|
var t, n, r = "";
|
|
@@ -274,7 +274,7 @@ const Ac = (e, t) => {
|
|
|
274
274
|
}
|
|
275
275
|
w = !1;
|
|
276
276
|
}
|
|
277
|
-
const
|
|
277
|
+
const T = p.length === 0 ? "" : p.length === 1 ? p[0] : l(p).join(":"), O = g ? T + Ao : T, F = O + E;
|
|
278
278
|
if (a.indexOf(F) > -1)
|
|
279
279
|
continue;
|
|
280
280
|
a.push(F);
|
|
@@ -314,19 +314,19 @@ const Ac = (e, t) => {
|
|
|
314
314
|
}, Wc = [], ke = (e) => {
|
|
315
315
|
const t = (n) => n[e] || Wc;
|
|
316
316
|
return t.isThemeGetter = !0, t;
|
|
317
|
-
}, Ea = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ta = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Gc = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Yc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xc = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Kc = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Jc = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qc = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Lt = (e) => Gc.test(e),
|
|
317
|
+
}, Ea = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ta = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Gc = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Yc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xc = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Kc = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Jc = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qc = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Lt = (e) => Gc.test(e), te = (e) => !!e && !Number.isNaN(Number(e)), ht = (e) => !!e && Number.isInteger(Number(e)), Xr = (e) => e.endsWith("%") && te(e.slice(0, -1)), xt = (e) => Yc.test(e), qa = () => !0, Zc = (e) => (
|
|
318
318
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
319
319
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
320
320
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
321
321
|
Xc.test(e) && !Kc.test(e)
|
|
322
|
-
), Yo = () => !1, ef = (e) => Jc.test(e), tf = (e) => Qc.test(e), nf = (e) => !U(e) && !H(e), rf = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), of = (e) => Ft(e, Ra, Yo), U = (e) => Ea.test(e), Wt = (e) => Ft(e, Na, Zc), Zi = (e) => Ft(e, df,
|
|
322
|
+
), Yo = () => !1, ef = (e) => Jc.test(e), tf = (e) => Qc.test(e), nf = (e) => !U(e) && !H(e), rf = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), of = (e) => Ft(e, Ra, Yo), U = (e) => Ea.test(e), Wt = (e) => Ft(e, Na, Zc), Zi = (e) => Ft(e, df, te), lf = (e) => Ft(e, Pa, qa), af = (e) => Ft(e, La, Yo), el = (e) => Ft(e, _a, Yo), sf = (e) => Ft(e, Ia, tf), lr = (e) => Ft(e, Da, ef), H = (e) => Ta.test(e), _n = (e) => tn(e, Na), uf = (e) => tn(e, La), tl = (e) => tn(e, _a), cf = (e) => tn(e, Ra), ff = (e) => tn(e, Ia), ar = (e) => tn(e, Da, !0), pf = (e) => tn(e, Pa, !0), Ft = (e, t, n) => {
|
|
323
323
|
const r = Ea.exec(e);
|
|
324
324
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
325
325
|
}, tn = (e, t, n = !1) => {
|
|
326
326
|
const r = Ta.exec(e);
|
|
327
327
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
328
328
|
}, _a = (e) => e === "position" || e === "percentage", Ia = (e) => e === "image" || e === "url", Ra = (e) => e === "length" || e === "size" || e === "bg-size", Na = (e) => e === "length", df = (e) => e === "number", La = (e) => e === "family-name", Pa = (e) => e === "number" || e === "weight", Da = (e) => e === "shadow", nl = () => {
|
|
329
|
-
const e = ke("color"), t = ke("font"), n = ke("text"), r = ke("font-weight"), o = ke("tracking"), l = ke("leading"), i = ke("breakpoint"), a = ke("container"), s = ke("spacing"), u = ke("radius"), f = ke("shadow"), c = ke("inset-shadow"), d = ke("text-shadow"), p = ke("drop-shadow"), g = ke("blur"), k = ke("perspective"), v = ke("aspect"), w = ke("ease"), E = ke("animate"),
|
|
329
|
+
const e = ke("color"), t = ke("font"), n = ke("text"), r = ke("font-weight"), o = ke("tracking"), l = ke("leading"), i = ke("breakpoint"), a = ke("container"), s = ke("spacing"), u = ke("radius"), f = ke("shadow"), c = ke("inset-shadow"), d = ke("text-shadow"), p = ke("drop-shadow"), g = ke("blur"), k = ke("perspective"), v = ke("aspect"), w = ke("ease"), E = ke("animate"), T = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
|
|
330
330
|
"center",
|
|
331
331
|
"top",
|
|
332
332
|
"bottom",
|
|
@@ -360,14 +360,14 @@ const Ac = (e, t) => {
|
|
|
360
360
|
u,
|
|
361
361
|
H,
|
|
362
362
|
U
|
|
363
|
-
], j = () => ["",
|
|
363
|
+
], j = () => ["", te, _n, Wt], Je = () => ["solid", "dashed", "dotted", "double"], We = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ce = () => [te, Xr, tl, el], it = () => [
|
|
364
364
|
// Deprecated since Tailwind CSS v4.0.0
|
|
365
365
|
"",
|
|
366
366
|
"none",
|
|
367
367
|
g,
|
|
368
368
|
H,
|
|
369
369
|
U
|
|
370
|
-
], lt = () => ["none",
|
|
370
|
+
], lt = () => ["none", te, H, U], qt = () => ["none", te, H, U], _t = () => [te, H, U], It = () => [Lt, "full", ...N()];
|
|
371
371
|
return {
|
|
372
372
|
cacheSize: 500,
|
|
373
373
|
theme: {
|
|
@@ -386,7 +386,7 @@ const Ac = (e, t) => {
|
|
|
386
386
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
387
387
|
radius: [xt],
|
|
388
388
|
shadow: [xt],
|
|
389
|
-
spacing: ["px",
|
|
389
|
+
spacing: ["px", te],
|
|
390
390
|
text: [xt],
|
|
391
391
|
"text-shadow": [xt],
|
|
392
392
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
@@ -425,21 +425,21 @@ const Ac = (e, t) => {
|
|
|
425
425
|
* @see https://tailwindcss.com/docs/columns
|
|
426
426
|
*/
|
|
427
427
|
columns: [{
|
|
428
|
-
columns: [
|
|
428
|
+
columns: [te, U, H, a]
|
|
429
429
|
}],
|
|
430
430
|
/**
|
|
431
431
|
* Break After
|
|
432
432
|
* @see https://tailwindcss.com/docs/break-after
|
|
433
433
|
*/
|
|
434
434
|
"break-after": [{
|
|
435
|
-
"break-after":
|
|
435
|
+
"break-after": T()
|
|
436
436
|
}],
|
|
437
437
|
/**
|
|
438
438
|
* Break Before
|
|
439
439
|
* @see https://tailwindcss.com/docs/break-before
|
|
440
440
|
*/
|
|
441
441
|
"break-before": [{
|
|
442
|
-
"break-before":
|
|
442
|
+
"break-before": T()
|
|
443
443
|
}],
|
|
444
444
|
/**
|
|
445
445
|
* Break Inside
|
|
@@ -682,21 +682,21 @@ const Ac = (e, t) => {
|
|
|
682
682
|
* @see https://tailwindcss.com/docs/flex
|
|
683
683
|
*/
|
|
684
684
|
flex: [{
|
|
685
|
-
flex: [
|
|
685
|
+
flex: [te, Lt, "auto", "initial", "none", U]
|
|
686
686
|
}],
|
|
687
687
|
/**
|
|
688
688
|
* Flex Grow
|
|
689
689
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
690
690
|
*/
|
|
691
691
|
grow: [{
|
|
692
|
-
grow: ["",
|
|
692
|
+
grow: ["", te, H, U]
|
|
693
693
|
}],
|
|
694
694
|
/**
|
|
695
695
|
* Flex Shrink
|
|
696
696
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
697
697
|
*/
|
|
698
698
|
shrink: [{
|
|
699
|
-
shrink: ["",
|
|
699
|
+
shrink: ["", te, H, U]
|
|
700
700
|
}],
|
|
701
701
|
/**
|
|
702
702
|
* Order
|
|
@@ -1250,7 +1250,7 @@ const Ac = (e, t) => {
|
|
|
1250
1250
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1251
1251
|
*/
|
|
1252
1252
|
"line-clamp": [{
|
|
1253
|
-
"line-clamp": [
|
|
1253
|
+
"line-clamp": [te, "none", H, Zi]
|
|
1254
1254
|
}],
|
|
1255
1255
|
/**
|
|
1256
1256
|
* Line Height
|
|
@@ -1323,7 +1323,7 @@ const Ac = (e, t) => {
|
|
|
1323
1323
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1324
1324
|
*/
|
|
1325
1325
|
"text-decoration-thickness": [{
|
|
1326
|
-
decoration: [
|
|
1326
|
+
decoration: [te, "from-font", "auto", H, Wt]
|
|
1327
1327
|
}],
|
|
1328
1328
|
/**
|
|
1329
1329
|
* Text Decoration Color
|
|
@@ -1337,7 +1337,7 @@ const Ac = (e, t) => {
|
|
|
1337
1337
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1338
1338
|
*/
|
|
1339
1339
|
"underline-offset": [{
|
|
1340
|
-
"underline-offset": [
|
|
1340
|
+
"underline-offset": [te, "auto", H, U]
|
|
1341
1341
|
}],
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Text Transform
|
|
@@ -1838,14 +1838,14 @@ const Ac = (e, t) => {
|
|
|
1838
1838
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
1839
1839
|
*/
|
|
1840
1840
|
"outline-offset": [{
|
|
1841
|
-
"outline-offset": [
|
|
1841
|
+
"outline-offset": [te, H, U]
|
|
1842
1842
|
}],
|
|
1843
1843
|
/**
|
|
1844
1844
|
* Outline Width
|
|
1845
1845
|
* @see https://tailwindcss.com/docs/outline-width
|
|
1846
1846
|
*/
|
|
1847
1847
|
"outline-w": [{
|
|
1848
|
-
outline: ["",
|
|
1848
|
+
outline: ["", te, _n, Wt]
|
|
1849
1849
|
}],
|
|
1850
1850
|
/**
|
|
1851
1851
|
* Outline Color
|
|
@@ -1920,7 +1920,7 @@ const Ac = (e, t) => {
|
|
|
1920
1920
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1921
1921
|
*/
|
|
1922
1922
|
"ring-offset-w": [{
|
|
1923
|
-
"ring-offset": [
|
|
1923
|
+
"ring-offset": [te, Wt]
|
|
1924
1924
|
}],
|
|
1925
1925
|
/**
|
|
1926
1926
|
* Ring Offset Color
|
|
@@ -1964,21 +1964,21 @@ const Ac = (e, t) => {
|
|
|
1964
1964
|
* @see https://tailwindcss.com/docs/opacity
|
|
1965
1965
|
*/
|
|
1966
1966
|
opacity: [{
|
|
1967
|
-
opacity: [
|
|
1967
|
+
opacity: [te, H, U]
|
|
1968
1968
|
}],
|
|
1969
1969
|
/**
|
|
1970
1970
|
* Mix Blend Mode
|
|
1971
1971
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
1972
1972
|
*/
|
|
1973
1973
|
"mix-blend": [{
|
|
1974
|
-
"mix-blend": [
|
|
1974
|
+
"mix-blend": [...We(), "plus-darker", "plus-lighter"]
|
|
1975
1975
|
}],
|
|
1976
1976
|
/**
|
|
1977
1977
|
* Background Blend Mode
|
|
1978
1978
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
1979
1979
|
*/
|
|
1980
1980
|
"bg-blend": [{
|
|
1981
|
-
"bg-blend":
|
|
1981
|
+
"bg-blend": We()
|
|
1982
1982
|
}],
|
|
1983
1983
|
/**
|
|
1984
1984
|
* Mask Clip
|
|
@@ -1999,7 +1999,7 @@ const Ac = (e, t) => {
|
|
|
1999
1999
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2000
2000
|
*/
|
|
2001
2001
|
"mask-image-linear-pos": [{
|
|
2002
|
-
"mask-linear": [
|
|
2002
|
+
"mask-linear": [te]
|
|
2003
2003
|
}],
|
|
2004
2004
|
"mask-image-linear-from-pos": [{
|
|
2005
2005
|
"mask-linear-from": ce()
|
|
@@ -2113,7 +2113,7 @@ const Ac = (e, t) => {
|
|
|
2113
2113
|
"mask-radial-at": O()
|
|
2114
2114
|
}],
|
|
2115
2115
|
"mask-image-conic-pos": [{
|
|
2116
|
-
"mask-conic": [
|
|
2116
|
+
"mask-conic": [te]
|
|
2117
2117
|
}],
|
|
2118
2118
|
"mask-image-conic-from-pos": [{
|
|
2119
2119
|
"mask-conic-from": ce()
|
|
@@ -2204,14 +2204,14 @@ const Ac = (e, t) => {
|
|
|
2204
2204
|
* @see https://tailwindcss.com/docs/brightness
|
|
2205
2205
|
*/
|
|
2206
2206
|
brightness: [{
|
|
2207
|
-
brightness: [
|
|
2207
|
+
brightness: [te, H, U]
|
|
2208
2208
|
}],
|
|
2209
2209
|
/**
|
|
2210
2210
|
* Contrast
|
|
2211
2211
|
* @see https://tailwindcss.com/docs/contrast
|
|
2212
2212
|
*/
|
|
2213
2213
|
contrast: [{
|
|
2214
|
-
contrast: [
|
|
2214
|
+
contrast: [te, H, U]
|
|
2215
2215
|
}],
|
|
2216
2216
|
/**
|
|
2217
2217
|
* Drop Shadow
|
|
@@ -2239,35 +2239,35 @@ const Ac = (e, t) => {
|
|
|
2239
2239
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2240
2240
|
*/
|
|
2241
2241
|
grayscale: [{
|
|
2242
|
-
grayscale: ["",
|
|
2242
|
+
grayscale: ["", te, H, U]
|
|
2243
2243
|
}],
|
|
2244
2244
|
/**
|
|
2245
2245
|
* Hue Rotate
|
|
2246
2246
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2247
2247
|
*/
|
|
2248
2248
|
"hue-rotate": [{
|
|
2249
|
-
"hue-rotate": [
|
|
2249
|
+
"hue-rotate": [te, H, U]
|
|
2250
2250
|
}],
|
|
2251
2251
|
/**
|
|
2252
2252
|
* Invert
|
|
2253
2253
|
* @see https://tailwindcss.com/docs/invert
|
|
2254
2254
|
*/
|
|
2255
2255
|
invert: [{
|
|
2256
|
-
invert: ["",
|
|
2256
|
+
invert: ["", te, H, U]
|
|
2257
2257
|
}],
|
|
2258
2258
|
/**
|
|
2259
2259
|
* Saturate
|
|
2260
2260
|
* @see https://tailwindcss.com/docs/saturate
|
|
2261
2261
|
*/
|
|
2262
2262
|
saturate: [{
|
|
2263
|
-
saturate: [
|
|
2263
|
+
saturate: [te, H, U]
|
|
2264
2264
|
}],
|
|
2265
2265
|
/**
|
|
2266
2266
|
* Sepia
|
|
2267
2267
|
* @see https://tailwindcss.com/docs/sepia
|
|
2268
2268
|
*/
|
|
2269
2269
|
sepia: [{
|
|
2270
|
-
sepia: ["",
|
|
2270
|
+
sepia: ["", te, H, U]
|
|
2271
2271
|
}],
|
|
2272
2272
|
/**
|
|
2273
2273
|
* Backdrop Filter
|
|
@@ -2294,56 +2294,56 @@ const Ac = (e, t) => {
|
|
|
2294
2294
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2295
2295
|
*/
|
|
2296
2296
|
"backdrop-brightness": [{
|
|
2297
|
-
"backdrop-brightness": [
|
|
2297
|
+
"backdrop-brightness": [te, H, U]
|
|
2298
2298
|
}],
|
|
2299
2299
|
/**
|
|
2300
2300
|
* Backdrop Contrast
|
|
2301
2301
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2302
2302
|
*/
|
|
2303
2303
|
"backdrop-contrast": [{
|
|
2304
|
-
"backdrop-contrast": [
|
|
2304
|
+
"backdrop-contrast": [te, H, U]
|
|
2305
2305
|
}],
|
|
2306
2306
|
/**
|
|
2307
2307
|
* Backdrop Grayscale
|
|
2308
2308
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2309
2309
|
*/
|
|
2310
2310
|
"backdrop-grayscale": [{
|
|
2311
|
-
"backdrop-grayscale": ["",
|
|
2311
|
+
"backdrop-grayscale": ["", te, H, U]
|
|
2312
2312
|
}],
|
|
2313
2313
|
/**
|
|
2314
2314
|
* Backdrop Hue Rotate
|
|
2315
2315
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2316
2316
|
*/
|
|
2317
2317
|
"backdrop-hue-rotate": [{
|
|
2318
|
-
"backdrop-hue-rotate": [
|
|
2318
|
+
"backdrop-hue-rotate": [te, H, U]
|
|
2319
2319
|
}],
|
|
2320
2320
|
/**
|
|
2321
2321
|
* Backdrop Invert
|
|
2322
2322
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2323
2323
|
*/
|
|
2324
2324
|
"backdrop-invert": [{
|
|
2325
|
-
"backdrop-invert": ["",
|
|
2325
|
+
"backdrop-invert": ["", te, H, U]
|
|
2326
2326
|
}],
|
|
2327
2327
|
/**
|
|
2328
2328
|
* Backdrop Opacity
|
|
2329
2329
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2330
2330
|
*/
|
|
2331
2331
|
"backdrop-opacity": [{
|
|
2332
|
-
"backdrop-opacity": [
|
|
2332
|
+
"backdrop-opacity": [te, H, U]
|
|
2333
2333
|
}],
|
|
2334
2334
|
/**
|
|
2335
2335
|
* Backdrop Saturate
|
|
2336
2336
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2337
2337
|
*/
|
|
2338
2338
|
"backdrop-saturate": [{
|
|
2339
|
-
"backdrop-saturate": [
|
|
2339
|
+
"backdrop-saturate": [te, H, U]
|
|
2340
2340
|
}],
|
|
2341
2341
|
/**
|
|
2342
2342
|
* Backdrop Sepia
|
|
2343
2343
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2344
2344
|
*/
|
|
2345
2345
|
"backdrop-sepia": [{
|
|
2346
|
-
"backdrop-sepia": ["",
|
|
2346
|
+
"backdrop-sepia": ["", te, H, U]
|
|
2347
2347
|
}],
|
|
2348
2348
|
// --------------
|
|
2349
2349
|
// --- Tables ---
|
|
@@ -2412,7 +2412,7 @@ const Ac = (e, t) => {
|
|
|
2412
2412
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2413
2413
|
*/
|
|
2414
2414
|
duration: [{
|
|
2415
|
-
duration: [
|
|
2415
|
+
duration: [te, "initial", H, U]
|
|
2416
2416
|
}],
|
|
2417
2417
|
/**
|
|
2418
2418
|
* Transition Timing Function
|
|
@@ -2426,7 +2426,7 @@ const Ac = (e, t) => {
|
|
|
2426
2426
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2427
2427
|
*/
|
|
2428
2428
|
delay: [{
|
|
2429
|
-
delay: [
|
|
2429
|
+
delay: [te, H, U]
|
|
2430
2430
|
}],
|
|
2431
2431
|
/**
|
|
2432
2432
|
* Animation
|
|
@@ -2933,7 +2933,7 @@ const Ac = (e, t) => {
|
|
|
2933
2933
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2934
2934
|
*/
|
|
2935
2935
|
"stroke-w": [{
|
|
2936
|
-
stroke: [
|
|
2936
|
+
stroke: [te, _n, Wt, Zi]
|
|
2937
2937
|
}],
|
|
2938
2938
|
/**
|
|
2939
2939
|
* Stroke
|
|
@@ -3030,7 +3030,7 @@ const Ac = (e, t) => {
|
|
|
3030
3030
|
const r = t[n];
|
|
3031
3031
|
r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
|
|
3032
3032
|
}, mf = (e, ...t) => typeof e == "function" ? Qi(nl, e, ...t) : Qi(() => hf(nl(), e), ...t), gf = mf({ prefix: "eloq" });
|
|
3033
|
-
function
|
|
3033
|
+
function ee(...e) {
|
|
3034
3034
|
return gf(Cc(e));
|
|
3035
3035
|
}
|
|
3036
3036
|
function Xo(e) {
|
|
@@ -3040,7 +3040,7 @@ function Xo(e) {
|
|
|
3040
3040
|
return /* @__PURE__ */ x(
|
|
3041
3041
|
"div",
|
|
3042
3042
|
{
|
|
3043
|
-
className:
|
|
3043
|
+
className: ee(
|
|
3044
3044
|
"eloq:relative eloq:flex eloq:items-center eloq:justify-center eloq:w-full eloq:h-full",
|
|
3045
3045
|
t
|
|
3046
3046
|
),
|
|
@@ -3082,12 +3082,12 @@ function Xo(e) {
|
|
|
3082
3082
|
}
|
|
3083
3083
|
);
|
|
3084
3084
|
}
|
|
3085
|
-
const Ko =
|
|
3085
|
+
const Ko = Ve(
|
|
3086
3086
|
({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
3087
3087
|
"div",
|
|
3088
3088
|
{
|
|
3089
3089
|
ref: n,
|
|
3090
|
-
className:
|
|
3090
|
+
className: ee(
|
|
3091
3091
|
"eloq:rounded-lg eloq:border eloq:bg-card eloq:text-card-foreground eloq:shadow-sm",
|
|
3092
3092
|
e
|
|
3093
3093
|
),
|
|
@@ -3096,12 +3096,12 @@ const Ko = je(
|
|
|
3096
3096
|
)
|
|
3097
3097
|
);
|
|
3098
3098
|
Ko.displayName = "Card";
|
|
3099
|
-
const Jo =
|
|
3099
|
+
const Jo = Ve(
|
|
3100
3100
|
({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
3101
3101
|
"div",
|
|
3102
3102
|
{
|
|
3103
3103
|
ref: n,
|
|
3104
|
-
className:
|
|
3104
|
+
className: ee(
|
|
3105
3105
|
"eloq:flex eloq:flex-col eloq:space-y-1.5 eloq:p-6",
|
|
3106
3106
|
e
|
|
3107
3107
|
),
|
|
@@ -3110,12 +3110,12 @@ const Jo = je(
|
|
|
3110
3110
|
)
|
|
3111
3111
|
);
|
|
3112
3112
|
Jo.displayName = "CardHeader";
|
|
3113
|
-
const bf =
|
|
3113
|
+
const bf = Ve(
|
|
3114
3114
|
({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
3115
3115
|
"div",
|
|
3116
3116
|
{
|
|
3117
3117
|
ref: n,
|
|
3118
|
-
className:
|
|
3118
|
+
className: ee(
|
|
3119
3119
|
"eloq:text-2xl eloq:font-semibold eloq:leading-none eloq:tracking-tight",
|
|
3120
3120
|
e
|
|
3121
3121
|
),
|
|
@@ -3124,25 +3124,25 @@ const bf = je(
|
|
|
3124
3124
|
)
|
|
3125
3125
|
);
|
|
3126
3126
|
bf.displayName = "CardTitle";
|
|
3127
|
-
const yf =
|
|
3127
|
+
const yf = Ve(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
3128
3128
|
"div",
|
|
3129
3129
|
{
|
|
3130
3130
|
ref: n,
|
|
3131
|
-
className:
|
|
3131
|
+
className: ee("eloq:text-sm eloq:text-muted-foreground", e),
|
|
3132
3132
|
...t
|
|
3133
3133
|
}
|
|
3134
3134
|
));
|
|
3135
3135
|
yf.displayName = "CardDescription";
|
|
3136
|
-
const Qo =
|
|
3137
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ x("div", { ref: n, className:
|
|
3136
|
+
const Qo = Ve(
|
|
3137
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ x("div", { ref: n, className: ee("eloq:p-6 eloq:pt-0", e), ...t })
|
|
3138
3138
|
);
|
|
3139
3139
|
Qo.displayName = "CardContent";
|
|
3140
|
-
const Zo =
|
|
3140
|
+
const Zo = Ve(
|
|
3141
3141
|
({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
3142
3142
|
"div",
|
|
3143
3143
|
{
|
|
3144
3144
|
ref: n,
|
|
3145
|
-
className:
|
|
3145
|
+
className: ee(
|
|
3146
3146
|
"eloq:flex eloq:items-center eloq:p-6 eloq:pt-0",
|
|
3147
3147
|
e
|
|
3148
3148
|
),
|
|
@@ -3249,7 +3249,7 @@ const vf = (e) => {
|
|
|
3249
3249
|
* This source code is licensed under the ISC license.
|
|
3250
3250
|
* See the LICENSE file in the root directory of this source tree.
|
|
3251
3251
|
*/
|
|
3252
|
-
const Cf =
|
|
3252
|
+
const Cf = Ve(
|
|
3253
3253
|
({
|
|
3254
3254
|
color: e = "currentColor",
|
|
3255
3255
|
size: t = 24,
|
|
@@ -3285,7 +3285,7 @@ const Cf = je(
|
|
|
3285
3285
|
* See the LICENSE file in the root directory of this source tree.
|
|
3286
3286
|
*/
|
|
3287
3287
|
const Re = (e, t) => {
|
|
3288
|
-
const n =
|
|
3288
|
+
const n = Ve(
|
|
3289
3289
|
({ className: r, ...o }, l) => Co(Cf, {
|
|
3290
3290
|
ref: l,
|
|
3291
3291
|
iconNode: t,
|
|
@@ -3886,7 +3886,7 @@ var is = "ScrollArea", [ls, wk] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
3886
3886
|
dir: l,
|
|
3887
3887
|
scrollHideDelay: i = 600,
|
|
3888
3888
|
...a
|
|
3889
|
-
} = t, [s, u] = R.useState(null), [f, c] = R.useState(null), [d, p] = R.useState(null), [g, k] = R.useState(null), [v, w] = R.useState(null), [E,
|
|
3889
|
+
} = t, [s, u] = R.useState(null), [f, c] = R.useState(null), [d, p] = R.useState(null), [g, k] = R.useState(null), [v, w] = R.useState(null), [E, T] = R.useState(0), [O, F] = R.useState(0), [C, B] = R.useState(!1), [N, W] = R.useState(!1), S = Bt(n, u), P = Za(l);
|
|
3890
3890
|
return /* @__PURE__ */ x(
|
|
3891
3891
|
Cp,
|
|
3892
3892
|
{
|
|
@@ -3907,7 +3907,7 @@ var is = "ScrollArea", [ls, wk] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
3907
3907
|
onScrollbarYChange: w,
|
|
3908
3908
|
scrollbarYEnabled: N,
|
|
3909
3909
|
onScrollbarYEnabledChange: W,
|
|
3910
|
-
onCornerWidthChange:
|
|
3910
|
+
onCornerWidthChange: T,
|
|
3911
3911
|
onCornerHeightChange: F,
|
|
3912
3912
|
children: /* @__PURE__ */ x(
|
|
3913
3913
|
Ut.div,
|
|
@@ -4209,7 +4209,7 @@ var is = "ScrollArea", [ls, wk] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
4209
4209
|
onWheelScroll: c,
|
|
4210
4210
|
onResize: d,
|
|
4211
4211
|
...p
|
|
4212
|
-
} = t, g = ot(Et, r), [k, v] = R.useState(null), w = Bt(n, v), E = R.useRef(null),
|
|
4212
|
+
} = t, g = ot(Et, r), [k, v] = R.useState(null), w = Bt(n, v), E = R.useRef(null), T = R.useRef(""), O = g.viewport, F = o.content - o.viewport, C = St(c), B = St(u), N = Yn(d, 10);
|
|
4213
4213
|
function W(S) {
|
|
4214
4214
|
if (E.current) {
|
|
4215
4215
|
const P = S.clientX - E.current.left, z = S.clientY - E.current.top;
|
|
@@ -4239,12 +4239,12 @@ var is = "ScrollArea", [ls, wk] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
4239
4239
|
ref: w,
|
|
4240
4240
|
style: { position: "absolute", ...p.style },
|
|
4241
4241
|
onPointerDown: Ot(t.onPointerDown, (S) => {
|
|
4242
|
-
S.button === 0 && (S.target.setPointerCapture(S.pointerId), E.current = k.getBoundingClientRect(),
|
|
4242
|
+
S.button === 0 && (S.target.setPointerCapture(S.pointerId), E.current = k.getBoundingClientRect(), T.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), W(S));
|
|
4243
4243
|
}),
|
|
4244
4244
|
onPointerMove: Ot(t.onPointerMove, W),
|
|
4245
4245
|
onPointerUp: Ot(t.onPointerUp, (S) => {
|
|
4246
4246
|
const P = S.target;
|
|
4247
|
-
P.hasPointerCapture(S.pointerId) && P.releasePointerCapture(S.pointerId), document.body.style.webkitUserSelect =
|
|
4247
|
+
P.hasPointerCapture(S.pointerId) && P.releasePointerCapture(S.pointerId), document.body.style.webkitUserSelect = T.current, g.viewport && (g.viewport.style.scrollBehavior = ""), E.current = null;
|
|
4248
4248
|
})
|
|
4249
4249
|
}
|
|
4250
4250
|
)
|
|
@@ -4392,11 +4392,11 @@ function Zt(e, t) {
|
|
|
4392
4392
|
}
|
|
4393
4393
|
ie(Zt, "useResizeObserver");
|
|
4394
4394
|
var hs = as, zp = Ep, Fp = Dp;
|
|
4395
|
-
const ms =
|
|
4395
|
+
const ms = Ve(({ className: e, children: t, onViewportScroll: n, ...r }, o) => /* @__PURE__ */ Z(
|
|
4396
4396
|
hs,
|
|
4397
4397
|
{
|
|
4398
4398
|
ref: o,
|
|
4399
|
-
className:
|
|
4399
|
+
className: ee("eloq:relative eloq:overflow-hidden", e),
|
|
4400
4400
|
...r,
|
|
4401
4401
|
children: [
|
|
4402
4402
|
/* @__PURE__ */ x(
|
|
@@ -4413,12 +4413,12 @@ const ms = je(({ className: e, children: t, onViewportScroll: n, ...r }, o) => /
|
|
|
4413
4413
|
}
|
|
4414
4414
|
));
|
|
4415
4415
|
ms.displayName = hs.displayName;
|
|
4416
|
-
const gs =
|
|
4416
|
+
const gs = Ve(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ x(
|
|
4417
4417
|
ss,
|
|
4418
4418
|
{
|
|
4419
4419
|
ref: r,
|
|
4420
4420
|
orientation: t,
|
|
4421
|
-
className:
|
|
4421
|
+
className: ee(
|
|
4422
4422
|
"eloq:flex eloq:touch-none eloq:select-none eloq:transition-colors",
|
|
4423
4423
|
t === "vertical" && "eloq:h-full eloq:w-2.5 eloq:border-l eloq:border-l-transparent eloq:p-[1px]",
|
|
4424
4424
|
t === "horizontal" && "eloq:h-2.5 eloq:flex-col eloq:border-t eloq:border-t-transparent eloq:p-[1px]",
|
|
@@ -4464,7 +4464,7 @@ function Up({
|
|
|
4464
4464
|
}
|
|
4465
4465
|
o(!0), setTimeout(() => o(!1), 2e3);
|
|
4466
4466
|
},
|
|
4467
|
-
className:
|
|
4467
|
+
className: ee(Kr, r && "eloq:text-primary"),
|
|
4468
4468
|
title: "Copy message",
|
|
4469
4469
|
"aria-label": "Copy message",
|
|
4470
4470
|
children: /* @__PURE__ */ x(Mf, { size: 16 })
|
|
@@ -4475,7 +4475,7 @@ function Up({
|
|
|
4475
4475
|
"button",
|
|
4476
4476
|
{
|
|
4477
4477
|
onClick: () => n(t === "up" ? null : "up"),
|
|
4478
|
-
className:
|
|
4478
|
+
className: ee(
|
|
4479
4479
|
Kr,
|
|
4480
4480
|
t === "up" && "eloq:text-primary"
|
|
4481
4481
|
),
|
|
@@ -4486,7 +4486,7 @@ function Up({
|
|
|
4486
4486
|
"button",
|
|
4487
4487
|
{
|
|
4488
4488
|
onClick: () => n(t === "down" ? null : "down"),
|
|
4489
|
-
className:
|
|
4489
|
+
className: ee(
|
|
4490
4490
|
Kr,
|
|
4491
4491
|
t === "down" && "eloq:text-primary"
|
|
4492
4492
|
),
|
|
@@ -4547,7 +4547,7 @@ function xs(e, t) {
|
|
|
4547
4547
|
function Lo(e) {
|
|
4548
4548
|
return e.toLowerCase();
|
|
4549
4549
|
}
|
|
4550
|
-
class
|
|
4550
|
+
class $e {
|
|
4551
4551
|
/**
|
|
4552
4552
|
* @param {string} property
|
|
4553
4553
|
* Property.
|
|
@@ -4560,20 +4560,20 @@ class Ve {
|
|
|
4560
4560
|
this.attribute = n, this.property = t;
|
|
4561
4561
|
}
|
|
4562
4562
|
}
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4563
|
+
$e.prototype.attribute = "";
|
|
4564
|
+
$e.prototype.booleanish = !1;
|
|
4565
|
+
$e.prototype.boolean = !1;
|
|
4566
|
+
$e.prototype.commaOrSpaceSeparated = !1;
|
|
4567
|
+
$e.prototype.commaSeparated = !1;
|
|
4568
|
+
$e.prototype.defined = !1;
|
|
4569
|
+
$e.prototype.mustUseProperty = !1;
|
|
4570
|
+
$e.prototype.number = !1;
|
|
4571
|
+
$e.prototype.overloadedBoolean = !1;
|
|
4572
|
+
$e.prototype.property = "";
|
|
4573
|
+
$e.prototype.spaceSeparated = !1;
|
|
4574
|
+
$e.prototype.space = void 0;
|
|
4575
4575
|
let Kp = 0;
|
|
4576
|
-
const K = rn(), xe = rn(), Po = rn(), L = rn(), pe = rn(), Qt = rn(),
|
|
4576
|
+
const K = rn(), xe = rn(), Po = rn(), L = rn(), pe = rn(), Qt = rn(), Ye = rn();
|
|
4577
4577
|
function rn() {
|
|
4578
4578
|
return 2 ** ++Kp;
|
|
4579
4579
|
}
|
|
@@ -4581,7 +4581,7 @@ const Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4581
4581
|
__proto__: null,
|
|
4582
4582
|
boolean: K,
|
|
4583
4583
|
booleanish: xe,
|
|
4584
|
-
commaOrSpaceSeparated:
|
|
4584
|
+
commaOrSpaceSeparated: Ye,
|
|
4585
4585
|
commaSeparated: Qt,
|
|
4586
4586
|
number: L,
|
|
4587
4587
|
overloadedBoolean: Po,
|
|
@@ -4590,7 +4590,7 @@ const Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4590
4590
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
4591
4591
|
Object.keys(Do)
|
|
4592
4592
|
);
|
|
4593
|
-
class ai extends
|
|
4593
|
+
class ai extends $e {
|
|
4594
4594
|
/**
|
|
4595
4595
|
* @constructor
|
|
4596
4596
|
* @param {string} property
|
|
@@ -5241,7 +5241,7 @@ const Jp = kn({
|
|
|
5241
5241
|
timelineBegin: "timelinebegin"
|
|
5242
5242
|
},
|
|
5243
5243
|
properties: {
|
|
5244
|
-
about:
|
|
5244
|
+
about: Ye,
|
|
5245
5245
|
accentHeight: L,
|
|
5246
5246
|
accumulate: null,
|
|
5247
5247
|
additive: null,
|
|
@@ -5353,7 +5353,7 @@ const Jp = kn({
|
|
|
5353
5353
|
k2: L,
|
|
5354
5354
|
k3: L,
|
|
5355
5355
|
k4: L,
|
|
5356
|
-
kernelMatrix:
|
|
5356
|
+
kernelMatrix: Ye,
|
|
5357
5357
|
kernelUnitLength: null,
|
|
5358
5358
|
keyPoints: null,
|
|
5359
5359
|
// SEMI_COLON_SEPARATED
|
|
@@ -5511,21 +5511,21 @@ const Jp = kn({
|
|
|
5511
5511
|
preserveAspectRatio: null,
|
|
5512
5512
|
primitiveUnits: null,
|
|
5513
5513
|
propagate: null,
|
|
5514
|
-
property:
|
|
5514
|
+
property: Ye,
|
|
5515
5515
|
r: null,
|
|
5516
5516
|
radius: null,
|
|
5517
5517
|
referrerPolicy: null,
|
|
5518
5518
|
refX: null,
|
|
5519
5519
|
refY: null,
|
|
5520
|
-
rel:
|
|
5521
|
-
rev:
|
|
5520
|
+
rel: Ye,
|
|
5521
|
+
rev: Ye,
|
|
5522
5522
|
renderingIntent: null,
|
|
5523
5523
|
repeatCount: null,
|
|
5524
5524
|
repeatDur: null,
|
|
5525
|
-
requiredExtensions:
|
|
5526
|
-
requiredFeatures:
|
|
5527
|
-
requiredFonts:
|
|
5528
|
-
requiredFormats:
|
|
5525
|
+
requiredExtensions: Ye,
|
|
5526
|
+
requiredFeatures: Ye,
|
|
5527
|
+
requiredFonts: Ye,
|
|
5528
|
+
requiredFormats: Ye,
|
|
5529
5529
|
resource: null,
|
|
5530
5530
|
restart: null,
|
|
5531
5531
|
result: null,
|
|
@@ -5553,7 +5553,7 @@ const Jp = kn({
|
|
|
5553
5553
|
strikethroughThickness: L,
|
|
5554
5554
|
string: null,
|
|
5555
5555
|
stroke: null,
|
|
5556
|
-
strokeDashArray:
|
|
5556
|
+
strokeDashArray: Ye,
|
|
5557
5557
|
strokeDashOffset: null,
|
|
5558
5558
|
strokeLineCap: null,
|
|
5559
5559
|
strokeLineJoin: null,
|
|
@@ -5567,7 +5567,7 @@ const Jp = kn({
|
|
|
5567
5567
|
syncMaster: null,
|
|
5568
5568
|
syncTolerance: null,
|
|
5569
5569
|
syncToleranceDefault: null,
|
|
5570
|
-
systemLanguage:
|
|
5570
|
+
systemLanguage: Ye,
|
|
5571
5571
|
tabIndex: L,
|
|
5572
5572
|
tableValues: null,
|
|
5573
5573
|
target: null,
|
|
@@ -5581,7 +5581,7 @@ const Jp = kn({
|
|
|
5581
5581
|
title: null,
|
|
5582
5582
|
transformBehavior: null,
|
|
5583
5583
|
type: null,
|
|
5584
|
-
typeOf:
|
|
5584
|
+
typeOf: Ye,
|
|
5585
5585
|
to: null,
|
|
5586
5586
|
transform: null,
|
|
5587
5587
|
transformOrigin: null,
|
|
@@ -5670,7 +5670,7 @@ const Jp = kn({
|
|
|
5670
5670
|
}, ed = /[A-Z]/g, al = /-[a-z]/g, td = /^data[-\w.:]+$/i;
|
|
5671
5671
|
function nd(e, t) {
|
|
5672
5672
|
const n = Lo(t);
|
|
5673
|
-
let r = t, o =
|
|
5673
|
+
let r = t, o = $e;
|
|
5674
5674
|
if (n in e.normal)
|
|
5675
5675
|
return e.property[e.normal[n]];
|
|
5676
5676
|
if (n.length > 4 && n.slice(0, 4) === "data" && td.test(t)) {
|
|
@@ -5712,28 +5712,28 @@ function ad() {
|
|
|
5712
5712
|
throw new TypeError("First argument must be a string");
|
|
5713
5713
|
if (!v) return [];
|
|
5714
5714
|
w = w || {};
|
|
5715
|
-
var E = 1,
|
|
5715
|
+
var E = 1, T = 1;
|
|
5716
5716
|
function O(V) {
|
|
5717
5717
|
var D = V.match(t);
|
|
5718
5718
|
D && (E += D.length);
|
|
5719
5719
|
var J = V.lastIndexOf(s);
|
|
5720
|
-
|
|
5720
|
+
T = ~J ? V.length - J : T + V.length;
|
|
5721
5721
|
}
|
|
5722
5722
|
function F() {
|
|
5723
|
-
var V = { line: E, column:
|
|
5723
|
+
var V = { line: E, column: T };
|
|
5724
5724
|
return function(D) {
|
|
5725
5725
|
return D.position = new C(V), W(), D;
|
|
5726
5726
|
};
|
|
5727
5727
|
}
|
|
5728
5728
|
function C(V) {
|
|
5729
|
-
this.start = V, this.end = { line: E, column:
|
|
5729
|
+
this.start = V, this.end = { line: E, column: T }, this.source = w.source;
|
|
5730
5730
|
}
|
|
5731
5731
|
C.prototype.content = v;
|
|
5732
5732
|
function B(V) {
|
|
5733
5733
|
var D = new Error(
|
|
5734
|
-
w.source + ":" + E + ":" +
|
|
5734
|
+
w.source + ":" + E + ":" + T + ": " + V
|
|
5735
5735
|
);
|
|
5736
|
-
if (D.reason = V, D.filename = w.source, D.line = E, D.column =
|
|
5736
|
+
if (D.reason = V, D.filename = w.source, D.line = E, D.column = T, D.source = v, !w.silent) throw D;
|
|
5737
5737
|
}
|
|
5738
5738
|
function N(V) {
|
|
5739
5739
|
var D = V.exec(v);
|
|
@@ -5759,7 +5759,7 @@ function ad() {
|
|
|
5759
5759
|
if (D += 2, c === v.charAt(D - 1))
|
|
5760
5760
|
return B("End of comment missing");
|
|
5761
5761
|
var J = v.slice(2, D - 2);
|
|
5762
|
-
return
|
|
5762
|
+
return T += 2, O(J), v = v.slice(D), T += 2, V({
|
|
5763
5763
|
type: d,
|
|
5764
5764
|
comment: J
|
|
5765
5765
|
});
|
|
@@ -8585,14 +8585,14 @@ function Vd(e) {
|
|
|
8585
8585
|
const t = this, n = [];
|
|
8586
8586
|
let r = 0, o, l, i;
|
|
8587
8587
|
return a;
|
|
8588
|
-
function a(
|
|
8588
|
+
function a(T) {
|
|
8589
8589
|
if (r < n.length) {
|
|
8590
8590
|
const O = n[r];
|
|
8591
|
-
return t.containerState = O[1], e.attempt(O[0].continuation, s, u)(
|
|
8591
|
+
return t.containerState = O[1], e.attempt(O[0].continuation, s, u)(T);
|
|
8592
8592
|
}
|
|
8593
|
-
return u(
|
|
8593
|
+
return u(T);
|
|
8594
8594
|
}
|
|
8595
|
-
function s(
|
|
8595
|
+
function s(T) {
|
|
8596
8596
|
if (r++, t.containerState._closeFlow) {
|
|
8597
8597
|
t.containerState._closeFlow = void 0, o && E();
|
|
8598
8598
|
const O = t.events.length;
|
|
@@ -8608,53 +8608,53 @@ function Vd(e) {
|
|
|
8608
8608
|
t.events[B][1].end = {
|
|
8609
8609
|
...C
|
|
8610
8610
|
}, B++;
|
|
8611
|
-
return Ke(t.events, F + 1, 0, t.events.slice(O)), t.events.length = B, u(
|
|
8611
|
+
return Ke(t.events, F + 1, 0, t.events.slice(O)), t.events.length = B, u(T);
|
|
8612
8612
|
}
|
|
8613
|
-
return a(
|
|
8613
|
+
return a(T);
|
|
8614
8614
|
}
|
|
8615
|
-
function u(
|
|
8615
|
+
function u(T) {
|
|
8616
8616
|
if (r === n.length) {
|
|
8617
8617
|
if (!o)
|
|
8618
|
-
return d(
|
|
8618
|
+
return d(T);
|
|
8619
8619
|
if (o.currentConstruct && o.currentConstruct.concrete)
|
|
8620
|
-
return g(
|
|
8620
|
+
return g(T);
|
|
8621
8621
|
t.interrupt = !!(o.currentConstruct && !o._gfmTableDynamicInterruptHack);
|
|
8622
8622
|
}
|
|
8623
|
-
return t.containerState = {}, e.check(bl, f, c)(
|
|
8623
|
+
return t.containerState = {}, e.check(bl, f, c)(T);
|
|
8624
8624
|
}
|
|
8625
|
-
function f(
|
|
8626
|
-
return o && E(), w(r), d(
|
|
8625
|
+
function f(T) {
|
|
8626
|
+
return o && E(), w(r), d(T);
|
|
8627
8627
|
}
|
|
8628
|
-
function c(
|
|
8629
|
-
return t.parser.lazy[t.now().line] = r !== n.length, i = t.now().offset, g(
|
|
8628
|
+
function c(T) {
|
|
8629
|
+
return t.parser.lazy[t.now().line] = r !== n.length, i = t.now().offset, g(T);
|
|
8630
8630
|
}
|
|
8631
|
-
function d(
|
|
8632
|
-
return t.containerState = {}, e.attempt(bl, p, g)(
|
|
8631
|
+
function d(T) {
|
|
8632
|
+
return t.containerState = {}, e.attempt(bl, p, g)(T);
|
|
8633
8633
|
}
|
|
8634
|
-
function p(
|
|
8635
|
-
return r++, n.push([t.currentConstruct, t.containerState]), d(
|
|
8634
|
+
function p(T) {
|
|
8635
|
+
return r++, n.push([t.currentConstruct, t.containerState]), d(T);
|
|
8636
8636
|
}
|
|
8637
|
-
function g(
|
|
8638
|
-
if (
|
|
8639
|
-
o && E(), w(0), e.consume(
|
|
8637
|
+
function g(T) {
|
|
8638
|
+
if (T === null) {
|
|
8639
|
+
o && E(), w(0), e.consume(T);
|
|
8640
8640
|
return;
|
|
8641
8641
|
}
|
|
8642
8642
|
return o = o || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
8643
8643
|
_tokenizer: o,
|
|
8644
8644
|
contentType: "flow",
|
|
8645
8645
|
previous: l
|
|
8646
|
-
}), k(
|
|
8646
|
+
}), k(T);
|
|
8647
8647
|
}
|
|
8648
|
-
function k(
|
|
8649
|
-
if (
|
|
8650
|
-
v(e.exit("chunkFlow"), !0), w(0), e.consume(
|
|
8648
|
+
function k(T) {
|
|
8649
|
+
if (T === null) {
|
|
8650
|
+
v(e.exit("chunkFlow"), !0), w(0), e.consume(T);
|
|
8651
8651
|
return;
|
|
8652
8652
|
}
|
|
8653
|
-
return Y(
|
|
8653
|
+
return Y(T) ? (e.consume(T), v(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(T), k);
|
|
8654
8654
|
}
|
|
8655
|
-
function v(
|
|
8656
|
-
const F = t.sliceStream(
|
|
8657
|
-
if (O && F.push(null),
|
|
8655
|
+
function v(T, O) {
|
|
8656
|
+
const F = t.sliceStream(T);
|
|
8657
|
+
if (O && F.push(null), T.previous = l, l && (l.next = T), l = T, o.defineSkip(T.start), o.write(F), t.parser.lazy[T.start.line]) {
|
|
8658
8658
|
let C = o.events.length;
|
|
8659
8659
|
for (; C--; )
|
|
8660
8660
|
if (
|
|
@@ -8681,13 +8681,13 @@ function Vd(e) {
|
|
|
8681
8681
|
Ke(t.events, N + 1, 0, t.events.slice(B)), t.events.length = C;
|
|
8682
8682
|
}
|
|
8683
8683
|
}
|
|
8684
|
-
function w(
|
|
8684
|
+
function w(T) {
|
|
8685
8685
|
let O = n.length;
|
|
8686
|
-
for (; O-- >
|
|
8686
|
+
for (; O-- > T; ) {
|
|
8687
8687
|
const F = n[O];
|
|
8688
8688
|
t.containerState = F[1], F[0].exit.call(t, e);
|
|
8689
8689
|
}
|
|
8690
|
-
n.length =
|
|
8690
|
+
n.length = T;
|
|
8691
8691
|
}
|
|
8692
8692
|
function E() {
|
|
8693
8693
|
o.write([null]), l = void 0, o = void 0, t.containerState._closeFlow = void 0;
|
|
@@ -8966,10 +8966,10 @@ function nh(e, t, n) {
|
|
|
8966
8966
|
return l > 0 && oe(C) ? se(e, E, "linePrefix", l + 1)(C) : E(C);
|
|
8967
8967
|
}
|
|
8968
8968
|
function E(C) {
|
|
8969
|
-
return C === null || Y(C) ? e.check(xl, k, O)(C) : (e.enter("codeFlowValue"),
|
|
8969
|
+
return C === null || Y(C) ? e.check(xl, k, O)(C) : (e.enter("codeFlowValue"), T(C));
|
|
8970
8970
|
}
|
|
8971
|
-
function
|
|
8972
|
-
return C === null || Y(C) ? (e.exit("codeFlowValue"), E(C)) : (e.consume(C),
|
|
8971
|
+
function T(C) {
|
|
8972
|
+
return C === null || Y(C) ? (e.exit("codeFlowValue"), E(C)) : (e.consume(C), T);
|
|
8973
8973
|
}
|
|
8974
8974
|
function O(C) {
|
|
8975
8975
|
return e.exit("codeFenced"), t(C);
|
|
@@ -9660,7 +9660,7 @@ function Nh(e, t, n) {
|
|
|
9660
9660
|
function v(b) {
|
|
9661
9661
|
if (b === null || b === 47 || b === 62 || de(b)) {
|
|
9662
9662
|
const Te = b === 47, me = i.toLowerCase();
|
|
9663
|
-
return !Te && !l && kl.includes(me) ? (o = 1, r.interrupt ? t(b) : z(b)) : Th.includes(i.toLowerCase()) ? (o = 6, Te ? (e.consume(b), w) : r.interrupt ? t(b) : z(b)) : (o = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : l ? E(b) :
|
|
9663
|
+
return !Te && !l && kl.includes(me) ? (o = 1, r.interrupt ? t(b) : z(b)) : Th.includes(i.toLowerCase()) ? (o = 6, Te ? (e.consume(b), w) : r.interrupt ? t(b) : z(b)) : (o = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : l ? E(b) : T(b));
|
|
9664
9664
|
}
|
|
9665
9665
|
return b === 45 || Ie(b) ? (e.consume(b), i += String.fromCharCode(b), v) : n(b);
|
|
9666
9666
|
}
|
|
@@ -9670,14 +9670,14 @@ function Nh(e, t, n) {
|
|
|
9670
9670
|
function E(b) {
|
|
9671
9671
|
return oe(b) ? (e.consume(b), E) : S(b);
|
|
9672
9672
|
}
|
|
9673
|
-
function
|
|
9674
|
-
return b === 47 ? (e.consume(b), S) : b === 58 || b === 95 || Oe(b) ? (e.consume(b), O) : oe(b) ? (e.consume(b),
|
|
9673
|
+
function T(b) {
|
|
9674
|
+
return b === 47 ? (e.consume(b), S) : b === 58 || b === 95 || Oe(b) ? (e.consume(b), O) : oe(b) ? (e.consume(b), T) : S(b);
|
|
9675
9675
|
}
|
|
9676
9676
|
function O(b) {
|
|
9677
9677
|
return b === 45 || b === 46 || b === 58 || b === 95 || Ie(b) ? (e.consume(b), O) : F(b);
|
|
9678
9678
|
}
|
|
9679
9679
|
function F(b) {
|
|
9680
|
-
return b === 61 ? (e.consume(b), C) : oe(b) ? (e.consume(b), F) :
|
|
9680
|
+
return b === 61 ? (e.consume(b), C) : oe(b) ? (e.consume(b), F) : T(b);
|
|
9681
9681
|
}
|
|
9682
9682
|
function C(b) {
|
|
9683
9683
|
return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), s = b, B) : oe(b) ? (e.consume(b), C) : N(b);
|
|
@@ -9689,7 +9689,7 @@ function Nh(e, t, n) {
|
|
|
9689
9689
|
return b === null || b === 34 || b === 39 || b === 47 || b === 60 || b === 61 || b === 62 || b === 96 || de(b) ? F(b) : (e.consume(b), N);
|
|
9690
9690
|
}
|
|
9691
9691
|
function W(b) {
|
|
9692
|
-
return b === 47 || b === 62 || oe(b) ?
|
|
9692
|
+
return b === 47 || b === 62 || oe(b) ? T(b) : n(b);
|
|
9693
9693
|
}
|
|
9694
9694
|
function S(b) {
|
|
9695
9695
|
return b === 62 ? (e.consume(b), P) : n(b);
|
|
@@ -9763,7 +9763,7 @@ function Mh(e, t, n) {
|
|
|
9763
9763
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), s;
|
|
9764
9764
|
}
|
|
9765
9765
|
function s(m) {
|
|
9766
|
-
return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), F) : m === 63 ? (e.consume(m),
|
|
9766
|
+
return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), F) : m === 63 ? (e.consume(m), T) : Oe(m) ? (e.consume(m), N) : n(m);
|
|
9767
9767
|
}
|
|
9768
9768
|
function u(m) {
|
|
9769
9769
|
return m === 45 ? (e.consume(m), f) : m === 91 ? (e.consume(m), l = 0, g) : Oe(m) ? (e.consume(m), E) : n(m);
|
|
@@ -9796,11 +9796,11 @@ function Mh(e, t, n) {
|
|
|
9796
9796
|
function E(m) {
|
|
9797
9797
|
return m === null || m === 62 ? J(m) : Y(m) ? (i = E, ae(m)) : (e.consume(m), E);
|
|
9798
9798
|
}
|
|
9799
|
-
function
|
|
9800
|
-
return m === null ? n(m) : m === 63 ? (e.consume(m), O) : Y(m) ? (i =
|
|
9799
|
+
function T(m) {
|
|
9800
|
+
return m === null ? n(m) : m === 63 ? (e.consume(m), O) : Y(m) ? (i = T, ae(m)) : (e.consume(m), T);
|
|
9801
9801
|
}
|
|
9802
9802
|
function O(m) {
|
|
9803
|
-
return m === 62 ? J(m) :
|
|
9803
|
+
return m === 62 ? J(m) : T(m);
|
|
9804
9804
|
}
|
|
9805
9805
|
function F(m) {
|
|
9806
9806
|
return Oe(m) ? (e.consume(m), C) : n(m);
|
|
@@ -10382,7 +10382,7 @@ function vm(e, t, n) {
|
|
|
10382
10382
|
attempt: B(F),
|
|
10383
10383
|
check: B(C),
|
|
10384
10384
|
consume: E,
|
|
10385
|
-
enter:
|
|
10385
|
+
enter: T,
|
|
10386
10386
|
exit: O,
|
|
10387
10387
|
interrupt: B(C, {
|
|
10388
10388
|
interrupt: !0
|
|
@@ -10449,7 +10449,7 @@ function vm(e, t, n) {
|
|
|
10449
10449
|
/** @type {string} */
|
|
10450
10450
|
i[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = P;
|
|
10451
10451
|
}
|
|
10452
|
-
function
|
|
10452
|
+
function T(P, z) {
|
|
10453
10453
|
const re = z || {};
|
|
10454
10454
|
return re.type = P, re.start = g(), u.events.push(["enter", re, u]), a.push(re), re;
|
|
10455
10455
|
}
|
|
@@ -10479,14 +10479,14 @@ function vm(e, t, n) {
|
|
|
10479
10479
|
) : Se(V);
|
|
10480
10480
|
function Se(j) {
|
|
10481
10481
|
return Je;
|
|
10482
|
-
function Je(
|
|
10483
|
-
const ce =
|
|
10482
|
+
function Je(We) {
|
|
10483
|
+
const ce = We !== null && j[We], it = We !== null && j.null, lt = [
|
|
10484
10484
|
// To do: add more extension tests.
|
|
10485
10485
|
/* c8 ignore next 2 */
|
|
10486
10486
|
...Array.isArray(ce) ? ce : ce ? [ce] : [],
|
|
10487
10487
|
...Array.isArray(it) ? it : it ? [it] : []
|
|
10488
10488
|
];
|
|
10489
|
-
return Pe(lt)(
|
|
10489
|
+
return Pe(lt)(We);
|
|
10490
10490
|
}
|
|
10491
10491
|
}
|
|
10492
10492
|
function Pe(j) {
|
|
@@ -10494,7 +10494,7 @@ function vm(e, t, n) {
|
|
|
10494
10494
|
}
|
|
10495
10495
|
function b(j) {
|
|
10496
10496
|
return Je;
|
|
10497
|
-
function Je(
|
|
10497
|
+
function Je(We) {
|
|
10498
10498
|
return m = W(), Le = j, j.partial || (u.currentConstruct = j), j.name && u.parser.constructs.disable.null.includes(j.name) ? me() : j.tokenize.call(
|
|
10499
10499
|
// If we do have fields, create an object w/ `context` as its
|
|
10500
10500
|
// prototype.
|
|
@@ -10503,7 +10503,7 @@ function vm(e, t, n) {
|
|
|
10503
10503
|
s,
|
|
10504
10504
|
Te,
|
|
10505
10505
|
me
|
|
10506
|
-
)(
|
|
10506
|
+
)(We);
|
|
10507
10507
|
}
|
|
10508
10508
|
}
|
|
10509
10509
|
function Te(j) {
|
|
@@ -10701,8 +10701,8 @@ function Lm(e) {
|
|
|
10701
10701
|
link: l(ln),
|
|
10702
10702
|
listItem: l(jt),
|
|
10703
10703
|
listItemValue: d,
|
|
10704
|
-
listOrdered: l(
|
|
10705
|
-
listUnordered: l(
|
|
10704
|
+
listOrdered: l(Ge, c),
|
|
10705
|
+
listUnordered: l(Ge),
|
|
10706
10706
|
paragraph: l(Zn),
|
|
10707
10707
|
reference: b,
|
|
10708
10708
|
referenceString: i,
|
|
@@ -10717,7 +10717,7 @@ function Lm(e) {
|
|
|
10717
10717
|
atxHeadingSequence: F,
|
|
10718
10718
|
autolink: s(),
|
|
10719
10719
|
autolinkEmail: ce,
|
|
10720
|
-
autolinkProtocol:
|
|
10720
|
+
autolinkProtocol: We,
|
|
10721
10721
|
blockQuote: s(),
|
|
10722
10722
|
characterEscapeValue: S,
|
|
10723
10723
|
characterReferenceMarkerHexadecimal: me,
|
|
@@ -10736,7 +10736,7 @@ function Lm(e) {
|
|
|
10736
10736
|
definition: s(),
|
|
10737
10737
|
definitionDestinationString: O,
|
|
10738
10738
|
definitionLabelString: E,
|
|
10739
|
-
definitionTitleString:
|
|
10739
|
+
definitionTitleString: T,
|
|
10740
10740
|
emphasis: s(),
|
|
10741
10741
|
hardBreakEscape: s(z),
|
|
10742
10742
|
hardBreakTrailing: s(z),
|
|
@@ -10936,7 +10936,7 @@ function Lm(e) {
|
|
|
10936
10936
|
const M = this.resume(), G = this.stack[this.stack.length - 1];
|
|
10937
10937
|
G.label = M, G.identifier = ut(this.sliceSerialize(A)).toLowerCase();
|
|
10938
10938
|
}
|
|
10939
|
-
function
|
|
10939
|
+
function T() {
|
|
10940
10940
|
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
10941
10941
|
M.title = A;
|
|
10942
10942
|
}
|
|
@@ -11060,7 +11060,7 @@ function Lm(e) {
|
|
|
11060
11060
|
const M = this.stack.pop();
|
|
11061
11061
|
M.position.end = Pt(A.end);
|
|
11062
11062
|
}
|
|
11063
|
-
function
|
|
11063
|
+
function We(A) {
|
|
11064
11064
|
S.call(this, A);
|
|
11065
11065
|
const M = this.stack[this.stack.length - 1];
|
|
11066
11066
|
M.url = this.sliceSerialize(A);
|
|
@@ -11140,7 +11140,7 @@ function Lm(e) {
|
|
|
11140
11140
|
children: []
|
|
11141
11141
|
};
|
|
11142
11142
|
}
|
|
11143
|
-
function
|
|
11143
|
+
function Ge(A) {
|
|
11144
11144
|
return {
|
|
11145
11145
|
type: "list",
|
|
11146
11146
|
ordered: A.type === "listOrdered",
|
|
@@ -13815,20 +13815,20 @@ function lu(e, t, n) {
|
|
|
13815
13815
|
const v = c.children.indexOf(u);
|
|
13816
13816
|
let w = !1, E = [];
|
|
13817
13817
|
d.lastIndex = 0;
|
|
13818
|
-
let
|
|
13819
|
-
for (;
|
|
13820
|
-
const O =
|
|
13821
|
-
index:
|
|
13822
|
-
input:
|
|
13818
|
+
let T = d.exec(u.value);
|
|
13819
|
+
for (; T; ) {
|
|
13820
|
+
const O = T.index, F = {
|
|
13821
|
+
index: T.index,
|
|
13822
|
+
input: T.input,
|
|
13823
13823
|
stack: [...f, u]
|
|
13824
13824
|
};
|
|
13825
|
-
let C = p(...
|
|
13825
|
+
let C = p(...T, F);
|
|
13826
13826
|
if (typeof C == "string" && (C = C.length > 0 ? { type: "text", value: C } : void 0), C === !1 ? d.lastIndex = O + 1 : (g !== O && E.push({
|
|
13827
13827
|
type: "text",
|
|
13828
13828
|
value: u.value.slice(g, O)
|
|
13829
|
-
}), Array.isArray(C) ? E.push(...C) : C && E.push(C), g = O +
|
|
13829
|
+
}), Array.isArray(C) ? E.push(...C) : C && E.push(C), g = O + T[0].length, w = !0), !d.global)
|
|
13830
13830
|
break;
|
|
13831
|
-
|
|
13831
|
+
T = d.exec(u.value);
|
|
13832
13832
|
}
|
|
13833
13833
|
return w ? (g < u.value.length && E.push({ type: "text", value: u.value.slice(g) }), c.children.splice(v, 1, ...E)) : E = [u], v + E.length;
|
|
13834
13834
|
}
|
|
@@ -14142,8 +14142,8 @@ function Zb(e, t) {
|
|
|
14142
14142
|
for (e[f].length > u && (u = e[f].length); ++w < e[f].length; ) {
|
|
14143
14143
|
const E = ey(e[f][w]);
|
|
14144
14144
|
if (n.alignDelimiters !== !1) {
|
|
14145
|
-
const
|
|
14146
|
-
v[w] =
|
|
14145
|
+
const T = o(E);
|
|
14146
|
+
v[w] = T, (s[w] === void 0 || T > s[w]) && (s[w] = T);
|
|
14147
14147
|
}
|
|
14148
14148
|
k.push(E);
|
|
14149
14149
|
}
|
|
@@ -14168,8 +14168,8 @@ function Zb(e, t) {
|
|
|
14168
14168
|
1,
|
|
14169
14169
|
s[c] - v.length - w.length
|
|
14170
14170
|
);
|
|
14171
|
-
const
|
|
14172
|
-
n.alignDelimiters !== !1 && (E = v.length + E + w.length, E > s[c] && (s[c] = E), p[c] = E), d[c] =
|
|
14171
|
+
const T = v + "-".repeat(E) + w;
|
|
14172
|
+
n.alignDelimiters !== !1 && (E = v.length + E + w.length, E > s[c] && (s[c] = E), p[c] = E), d[c] = T;
|
|
14173
14173
|
}
|
|
14174
14174
|
i.splice(1, 0, d), a.splice(1, 0, p), f = -1;
|
|
14175
14175
|
const g = [];
|
|
@@ -14179,14 +14179,14 @@ function Zb(e, t) {
|
|
|
14179
14179
|
const w = [];
|
|
14180
14180
|
for (; ++c < u; ) {
|
|
14181
14181
|
const E = k[c] || "";
|
|
14182
|
-
let
|
|
14182
|
+
let T = "", O = "";
|
|
14183
14183
|
if (n.alignDelimiters !== !1) {
|
|
14184
14184
|
const F = s[c] - (v[c] || 0), C = l[c];
|
|
14185
|
-
C === 114 ?
|
|
14185
|
+
C === 114 ? T = " ".repeat(F) : C === 99 ? F % 2 ? (T = " ".repeat(F / 2 + 0.5), O = " ".repeat(F / 2 - 0.5)) : (T = " ".repeat(F / 2), O = T) : O = " ".repeat(F);
|
|
14186
14186
|
}
|
|
14187
14187
|
n.delimiterStart !== !1 && !c && w.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
14188
14188
|
// empty: there will be a closing space.
|
|
14189
|
-
!(n.alignDelimiters === !1 && E === "") && (n.delimiterStart !== !1 || c) && w.push(" "), n.alignDelimiters !== !1 && w.push(
|
|
14189
|
+
!(n.alignDelimiters === !1 && E === "") && (n.delimiterStart !== !1 || c) && w.push(" "), n.alignDelimiters !== !1 && w.push(T), w.push(E), n.alignDelimiters !== !1 && w.push(O), n.padding !== !1 && w.push(" "), (n.delimiterEnd !== !1 || c !== u - 1) && w.push("|");
|
|
14190
14190
|
}
|
|
14191
14191
|
g.push(
|
|
14192
14192
|
n.delimiterEnd === !1 ? w.join("").replace(/ +$/, "") : w.join("")
|
|
@@ -14887,12 +14887,12 @@ function Fy(e) {
|
|
|
14887
14887
|
`));
|
|
14888
14888
|
}
|
|
14889
14889
|
function s(p, g, k, v) {
|
|
14890
|
-
const w = k.enter("tableCell"), E = k.enter("phrasing"),
|
|
14890
|
+
const w = k.enter("tableCell"), E = k.enter("phrasing"), T = k.containerPhrasing(p, {
|
|
14891
14891
|
...v,
|
|
14892
14892
|
before: l,
|
|
14893
14893
|
after: l
|
|
14894
14894
|
});
|
|
14895
|
-
return E(), w(),
|
|
14895
|
+
return E(), w(), T;
|
|
14896
14896
|
}
|
|
14897
14897
|
function u(p, g) {
|
|
14898
14898
|
return Zb(p, {
|
|
@@ -14908,18 +14908,18 @@ function Fy(e) {
|
|
|
14908
14908
|
function f(p, g, k) {
|
|
14909
14909
|
const v = p.children;
|
|
14910
14910
|
let w = -1;
|
|
14911
|
-
const E = [],
|
|
14911
|
+
const E = [], T = g.enter("table");
|
|
14912
14912
|
for (; ++w < v.length; )
|
|
14913
14913
|
E[w] = c(v[w], g, k);
|
|
14914
|
-
return
|
|
14914
|
+
return T(), E;
|
|
14915
14915
|
}
|
|
14916
14916
|
function c(p, g, k) {
|
|
14917
14917
|
const v = p.children;
|
|
14918
14918
|
let w = -1;
|
|
14919
|
-
const E = [],
|
|
14919
|
+
const E = [], T = g.enter("tableRow");
|
|
14920
14920
|
for (; ++w < v.length; )
|
|
14921
14921
|
E[w] = s(v[w], p, g, k);
|
|
14922
|
-
return
|
|
14922
|
+
return T(), E;
|
|
14923
14923
|
}
|
|
14924
14924
|
function d(p, g, k) {
|
|
14925
14925
|
let v = ku.inlineCode(p, g, k);
|
|
@@ -15578,9 +15578,9 @@ function bx(e, t, n) {
|
|
|
15578
15578
|
return S === 45 ? (e.enter("tableDelimiterFiller"), E(S)) : F(S);
|
|
15579
15579
|
}
|
|
15580
15580
|
function E(S) {
|
|
15581
|
-
return S === 45 ? (e.consume(S), E) : S === 58 ? (i = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(S), e.exit("tableDelimiterMarker"),
|
|
15581
|
+
return S === 45 ? (e.consume(S), E) : S === 58 ? (i = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(S), e.exit("tableDelimiterMarker"), T) : (e.exit("tableDelimiterFiller"), T(S));
|
|
15582
15582
|
}
|
|
15583
|
-
function
|
|
15583
|
+
function T(S) {
|
|
15584
15584
|
return oe(S) ? se(e, O, "whitespace")(S) : O(S);
|
|
15585
15585
|
}
|
|
15586
15586
|
function O(S) {
|
|
@@ -15753,7 +15753,7 @@ function qx() {
|
|
|
15753
15753
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
15754
15754
|
}
|
|
15755
15755
|
function _x(e, t = !0) {
|
|
15756
|
-
const [n, r] = Ae(0), o =
|
|
15756
|
+
const [n, r] = Ae(0), o = je(qx());
|
|
15757
15757
|
return vt(() => {
|
|
15758
15758
|
if (!t || o.current) {
|
|
15759
15759
|
r(e.length);
|
|
@@ -16143,46 +16143,46 @@ function Zl({
|
|
|
16143
16143
|
isBot: t,
|
|
16144
16144
|
isSibling: n
|
|
16145
16145
|
}) {
|
|
16146
|
-
const r = ei(), { onMessageClick: o, highlightedMessageId: l } = nn(), i = l != null && l === e.id, a =
|
|
16146
|
+
const r = ei(), { onMessageClick: o, highlightedMessageId: l } = nn(), i = l != null && l === e.id, a = je(null);
|
|
16147
16147
|
vt(() => {
|
|
16148
16148
|
if (!i) return;
|
|
16149
|
-
const
|
|
16149
|
+
const T = window.matchMedia?.(
|
|
16150
16150
|
"(prefers-reduced-motion: reduce)"
|
|
16151
16151
|
).matches;
|
|
16152
16152
|
a.current?.scrollIntoView?.({
|
|
16153
16153
|
block: "nearest",
|
|
16154
|
-
behavior:
|
|
16154
|
+
behavior: T ? "auto" : "smooth"
|
|
16155
16155
|
});
|
|
16156
16156
|
}, [i]);
|
|
16157
|
-
const s =
|
|
16157
|
+
const s = ee({
|
|
16158
16158
|
[r.botBubbleColor]: e.sender === "assistant",
|
|
16159
16159
|
[r.userBubbleColor]: e.sender === "user"
|
|
16160
|
-
}), f = (e.sender === "assistant" ? r.botBubbleTextColor : r.userBubbleTextColor) || Ai(s), c = e.attachments ?? [], d = e.type === "image" || e.content !== "" || c.length === 0, p = !!(t && e.isThinking), g = _x(
|
|
16160
|
+
}), f = (e.sender === "assistant" ? r.botBubbleTextColor : r.userBubbleTextColor) || Ai(s), c = e.attachments ?? [], d = e.type === "image" || e.content !== "" || c.length === 0, p = !!(t && e.isThinking), g = !!e.isRegenerating, k = je(e.content), v = e.content !== k.current, w = _x(
|
|
16161
16161
|
p ? e.content : "",
|
|
16162
16162
|
p
|
|
16163
|
-
),
|
|
16163
|
+
), E = () => p ? /* @__PURE__ */ Z("div", { className: "eloq:ml-1 eloq:flex eloq:items-center eloq:gap-2 eloq:animate-message-in", children: [
|
|
16164
16164
|
/* @__PURE__ */ x(
|
|
16165
16165
|
"span",
|
|
16166
16166
|
{
|
|
16167
16167
|
className: "eloq:flex eloq:h-5 eloq:items-center eloq:gap-[0.25em] eloq:rounded-2xl eloq:px-[12px] eloq:py-[8px] eloq:text-sm eloq:box-content",
|
|
16168
16168
|
style: { backgroundColor: r.botBubbleColor },
|
|
16169
|
-
children: [0, 150, 300].map((
|
|
16169
|
+
children: [0, 150, 300].map((T) => /* @__PURE__ */ x(
|
|
16170
16170
|
"span",
|
|
16171
16171
|
{
|
|
16172
16172
|
className: Gx,
|
|
16173
|
-
style: { animationDelay: `${
|
|
16173
|
+
style: { animationDelay: `${T}ms` }
|
|
16174
16174
|
},
|
|
16175
|
-
|
|
16175
|
+
T
|
|
16176
16176
|
))
|
|
16177
16177
|
}
|
|
16178
16178
|
),
|
|
16179
|
-
|
|
16179
|
+
w && // Outside the bubble, on the panel background. Same wave as the
|
|
16180
16180
|
// dots, swept through the glyphs.
|
|
16181
|
-
/* @__PURE__ */ x("span", { className: "eloq-thinking-shimmer eloq:text-sm eloq:font-medium eloq:animate-thinking-shimmer eloq:motion-reduce:animate-none", children:
|
|
16181
|
+
/* @__PURE__ */ x("span", { className: "eloq-thinking-shimmer eloq:text-sm eloq:font-medium eloq:animate-thinking-shimmer eloq:motion-reduce:animate-none", children: w })
|
|
16182
16182
|
] }) : /* @__PURE__ */ Z(
|
|
16183
16183
|
"div",
|
|
16184
16184
|
{
|
|
16185
|
-
className:
|
|
16185
|
+
className: ee(
|
|
16186
16186
|
"eloq:flex eloq:flex-col eloq:flex-1 eloq:self-stretch eloq:gap-1.5 eloq:text-sm",
|
|
16187
16187
|
{ "eloq:items-end": e.sender === "user" }
|
|
16188
16188
|
),
|
|
@@ -16190,11 +16190,12 @@ function Zl({
|
|
|
16190
16190
|
role: o && !e.isWelcomeMessage ? "button" : void 0,
|
|
16191
16191
|
tabIndex: 0,
|
|
16192
16192
|
children: [
|
|
16193
|
-
d && /* @__PURE__ */
|
|
16193
|
+
d && /* @__PURE__ */ Z(
|
|
16194
16194
|
"div",
|
|
16195
16195
|
{
|
|
16196
16196
|
"data-highlighted": i || void 0,
|
|
16197
|
-
|
|
16197
|
+
"aria-busy": g || void 0,
|
|
16198
|
+
className: ee(
|
|
16198
16199
|
"eloq:relative eloq:rounded-2xl eloq:py-[12px] eloq:px-[16px] eloq:align-center eloq:outline-2 eloq:outline-offset-2 eloq:outline-transparent eloq:transition-[outline-color] eloq:duration-150",
|
|
16199
16200
|
{
|
|
16200
16201
|
"eloq:ml-1": e.sender === "assistant",
|
|
@@ -16211,22 +16212,45 @@ function Zl({
|
|
|
16211
16212
|
outlineStyle: "solid"
|
|
16212
16213
|
}
|
|
16213
16214
|
},
|
|
16214
|
-
children:
|
|
16215
|
-
"
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
|
|
16219
|
-
|
|
16220
|
-
|
|
16221
|
-
|
|
16222
|
-
|
|
16223
|
-
|
|
16224
|
-
|
|
16225
|
-
|
|
16226
|
-
|
|
16227
|
-
|
|
16228
|
-
|
|
16229
|
-
|
|
16215
|
+
children: [
|
|
16216
|
+
e.type === "image" ? /* @__PURE__ */ x(
|
|
16217
|
+
"a",
|
|
16218
|
+
{
|
|
16219
|
+
href: e.content,
|
|
16220
|
+
target: "_blank",
|
|
16221
|
+
rel: "noopener noreferrer",
|
|
16222
|
+
children: /* @__PURE__ */ x(
|
|
16223
|
+
"img",
|
|
16224
|
+
{
|
|
16225
|
+
src: e.content,
|
|
16226
|
+
alt: "Attached image",
|
|
16227
|
+
className: "eloq:max-w-full eloq:rounded-lg eloq:hover:opacity-90 eloq:transition-opacity"
|
|
16228
|
+
}
|
|
16229
|
+
)
|
|
16230
|
+
}
|
|
16231
|
+
) : /* @__PURE__ */ x(
|
|
16232
|
+
"div",
|
|
16233
|
+
{
|
|
16234
|
+
className: ee(
|
|
16235
|
+
"typewriter prose eloq:text-left eloq-wrap-anywhere",
|
|
16236
|
+
{
|
|
16237
|
+
"eloq-regenerating-text": g,
|
|
16238
|
+
"eloq:animate-text-in eloq:motion-reduce:animate-none": v && !g
|
|
16239
|
+
}
|
|
16240
|
+
),
|
|
16241
|
+
children: /* @__PURE__ */ x(Ex, { text: e.content })
|
|
16242
|
+
},
|
|
16243
|
+
v ? e.content : "original"
|
|
16244
|
+
),
|
|
16245
|
+
g && /* @__PURE__ */ x(
|
|
16246
|
+
"span",
|
|
16247
|
+
{
|
|
16248
|
+
"aria-hidden": !0,
|
|
16249
|
+
"data-testid": "regenerating-sweep",
|
|
16250
|
+
className: "eloq-regenerating-sweep eloq:animate-regenerating"
|
|
16251
|
+
}
|
|
16252
|
+
)
|
|
16253
|
+
]
|
|
16230
16254
|
}
|
|
16231
16255
|
),
|
|
16232
16256
|
c.length > 0 && /* @__PURE__ */ x(jx, { attachments: c })
|
|
@@ -16237,7 +16261,7 @@ function Zl({
|
|
|
16237
16261
|
"div",
|
|
16238
16262
|
{
|
|
16239
16263
|
ref: a,
|
|
16240
|
-
className:
|
|
16264
|
+
className: ee(
|
|
16241
16265
|
`eloq:flex eloq:flex-1 eloq:self-stretch eloq:items-center eloq:gap-1.5 ${e.sender === "user" ? "eloq:justify-end" : "eloq:justify-start"}`
|
|
16242
16266
|
),
|
|
16243
16267
|
children: [
|
|
@@ -16245,12 +16269,12 @@ function Zl({
|
|
|
16245
16269
|
/* @__PURE__ */ x(
|
|
16246
16270
|
"div",
|
|
16247
16271
|
{
|
|
16248
|
-
className:
|
|
16272
|
+
className: ee("eloq:relative eloq:flex eloq:self-stretch", {
|
|
16249
16273
|
"eloq:max-w-[88%]": t,
|
|
16250
16274
|
"eloq:max-w-[75%]": !t,
|
|
16251
16275
|
"eloq:max-w-full": n
|
|
16252
16276
|
}),
|
|
16253
|
-
children:
|
|
16277
|
+
children: E()
|
|
16254
16278
|
}
|
|
16255
16279
|
)
|
|
16256
16280
|
]
|
|
@@ -16261,7 +16285,7 @@ const zu = "eloq:p-4 eloq:flex eloq:flex-row eloq:items-center eloq:justify-betw
|
|
|
16261
16285
|
isOpen: e,
|
|
16262
16286
|
isMobile: t,
|
|
16263
16287
|
skipAnimation: n = !1
|
|
16264
|
-
}) =>
|
|
16288
|
+
}) => ee(
|
|
16265
16289
|
"eloq:w-full eloq:h-full eloq:flex eloq:flex-col eloq:overflow-hidden eloq:origin-bottom-right",
|
|
16266
16290
|
{
|
|
16267
16291
|
"eloq:animate-panel-in": e && !n,
|
|
@@ -16335,7 +16359,7 @@ function Yx({
|
|
|
16335
16359
|
return /* @__PURE__ */ x(
|
|
16336
16360
|
"div",
|
|
16337
16361
|
{
|
|
16338
|
-
className:
|
|
16362
|
+
className: ee({
|
|
16339
16363
|
"eloq:animate-message-in": s,
|
|
16340
16364
|
// The list spaces messages 16px apart. The thinking indicator is a
|
|
16341
16365
|
// pending turn rather than a finished one, so pull it closer to the
|
|
@@ -16348,7 +16372,7 @@ function Yx({
|
|
|
16348
16372
|
children: /* @__PURE__ */ Z(
|
|
16349
16373
|
"div",
|
|
16350
16374
|
{
|
|
16351
|
-
className:
|
|
16375
|
+
className: ee(e, {
|
|
16352
16376
|
"eloq:flex eloq:flex-col eloq:items-start": l,
|
|
16353
16377
|
"eloq:flex eloq:justify-end": !l
|
|
16354
16378
|
}),
|
|
@@ -16380,7 +16404,7 @@ function Xx({
|
|
|
16380
16404
|
disabled: n,
|
|
16381
16405
|
onClick: () => t(i),
|
|
16382
16406
|
onMouseEnter: () => !n && o(i),
|
|
16383
|
-
className:
|
|
16407
|
+
className: ee(
|
|
16384
16408
|
"eloq:p-0.5 eloq:transition-colors",
|
|
16385
16409
|
n ? "eloq:cursor-default eloq:opacity-70" : "eloq:cursor-pointer"
|
|
16386
16410
|
),
|
|
@@ -16388,7 +16412,7 @@ function Xx({
|
|
|
16388
16412
|
Wf,
|
|
16389
16413
|
{
|
|
16390
16414
|
size: 22,
|
|
16391
|
-
className:
|
|
16415
|
+
className: ee(
|
|
16392
16416
|
"eloq:transition-colors",
|
|
16393
16417
|
i <= l ? "eloq:fill-yellow-400 eloq:text-yellow-400" : "eloq:fill-none eloq:text-gray-300 eloq:dark:text-gray-500"
|
|
16394
16418
|
)
|
|
@@ -16421,7 +16445,7 @@ function Zx() {
|
|
|
16421
16445
|
return Er(Jx) ?? Qx;
|
|
16422
16446
|
}
|
|
16423
16447
|
function ew() {
|
|
16424
|
-
const e = nn(), t = Zx(), n =
|
|
16448
|
+
const e = nn(), t = Zx(), n = je(null), r = je(!0), o = je(0), [l, i] = Ae(!1), [a, s] = Ae(!1), u = (p) => p.scrollHeight - p.scrollTop <= p.clientHeight + 60, f = (p) => {
|
|
16425
16449
|
const g = p.target;
|
|
16426
16450
|
u(g) ? (i(!1), s(!1)) : (i(!0), s(!0));
|
|
16427
16451
|
}, c = wa((p = "smooth") => {
|
|
@@ -16434,8 +16458,8 @@ function ew() {
|
|
|
16434
16458
|
}
|
|
16435
16459
|
}, []);
|
|
16436
16460
|
vt(() => {
|
|
16437
|
-
const p = e.messages?.length ?? 0, g = p < o.current;
|
|
16438
|
-
o.current = p, r.current ? (c("instant"), r.current = !1) : g ? (i(!1), s(!1), c("instant")) : a
|
|
16461
|
+
const p = e.messages?.length ?? 0, g = p < o.current, k = p === o.current;
|
|
16462
|
+
o.current = p, r.current ? (c("instant"), r.current = !1) : g ? (i(!1), s(!1), c("instant")) : !a && !k && c();
|
|
16439
16463
|
}, [e.messages, a, c]), vt(() => {
|
|
16440
16464
|
if (!e.isChatClosed) return;
|
|
16441
16465
|
const p = setTimeout(() => {
|
|
@@ -16488,7 +16512,7 @@ function ew() {
|
|
|
16488
16512
|
{
|
|
16489
16513
|
message: p,
|
|
16490
16514
|
nextMessage: k[g + 1],
|
|
16491
|
-
className:
|
|
16515
|
+
className: ee({
|
|
16492
16516
|
"eloq:pt-4": g === 0,
|
|
16493
16517
|
"eloq:pb-2": g >= k.length - 1,
|
|
16494
16518
|
"eloq:pb-14": w && g >= k.length - 1
|
|
@@ -16600,12 +16624,12 @@ function dw(e) {
|
|
|
16600
16624
|
for (let t = 0; t < e.length; t++) He(e, t) || (e[t] = null);
|
|
16601
16625
|
return e;
|
|
16602
16626
|
}
|
|
16603
|
-
function
|
|
16627
|
+
function Xe(e) {
|
|
16604
16628
|
const t = bn(null);
|
|
16605
16629
|
for (const r of Hu(e)) {
|
|
16606
16630
|
var n = ow(r, 2);
|
|
16607
16631
|
const o = n[0], l = n[1];
|
|
16608
|
-
He(e, o) && (yn(l) ? t[o] = dw(l) : l && typeof l == "object" && l.constructor === Object ? t[o] =
|
|
16632
|
+
He(e, o) && (yn(l) ? t[o] = dw(l) : l && typeof l == "object" && l.constructor === Object ? t[o] = Xe(l) : t[o] = l);
|
|
16609
16633
|
}
|
|
16610
16634
|
return t;
|
|
16611
16635
|
}
|
|
@@ -17358,10 +17382,10 @@ const aa = Ce([
|
|
|
17358
17382
|
uponSanitizeShadowNode: []
|
|
17359
17383
|
};
|
|
17360
17384
|
}, Dt = function(t, n, r, o) {
|
|
17361
|
-
return He(t, n) && yn(t[n]) ? ue(o.base ?
|
|
17385
|
+
return He(t, n) && yn(t[n]) ? ue(o.base ? Xe(o.base) : {}, t[n], o.transform) : r;
|
|
17362
17386
|
}, vo = function(t, n, r) {
|
|
17363
17387
|
const o = He(t, n) ? t[n] : void 0;
|
|
17364
|
-
return o && typeof o == "object" ?
|
|
17388
|
+
return o && typeof o == "object" ? Xe(o) : r();
|
|
17365
17389
|
};
|
|
17366
17390
|
function Gu() {
|
|
17367
17391
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Iw();
|
|
@@ -17373,7 +17397,7 @@ function Gu() {
|
|
|
17373
17397
|
e.DocumentFragment;
|
|
17374
17398
|
const l = e.HTMLTemplateElement, i = e.Node, a = e.Element, s = e.NodeFilter;
|
|
17375
17399
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
17376
|
-
const u = e.DOMParser, f = e.trustedTypes, c = a.prototype, d = tt(c, "cloneNode"), p = tt(c, "remove"), g = tt(c, "removeAttributeNode"), k = tt(c, "nextSibling"), v = tt(c, "childNodes"), w = tt(c, "parentNode"), E = tt(c, "shadowRoot"),
|
|
17400
|
+
const u = e.DOMParser, f = e.trustedTypes, c = a.prototype, d = tt(c, "cloneNode"), p = tt(c, "remove"), g = tt(c, "removeAttributeNode"), k = tt(c, "nextSibling"), v = tt(c, "childNodes"), w = tt(c, "parentNode"), E = tt(c, "shadowRoot"), T = tt(c, "attributes"), O = i && i.prototype ? tt(i.prototype, "nodeType") : null, F = i && i.prototype ? tt(i.prototype, "nodeName") : null, C = i && i.prototype ? tt(i.prototype, "ownerDocument") : null, B = function(h) {
|
|
17377
17401
|
return O ? O(h) : h.nodeType;
|
|
17378
17402
|
}, N = function(h) {
|
|
17379
17403
|
return F ? F(h) : h.nodeName;
|
|
@@ -17406,7 +17430,7 @@ function Gu() {
|
|
|
17406
17430
|
}, m = n, Se = m.implementation, Pe = m.createNodeIterator, b = m.createDocumentFragment, Te = m.getElementsByTagName, me = r.importNode;
|
|
17407
17431
|
let j = ha();
|
|
17408
17432
|
t.isSupported = typeof Hu == "function" && typeof w == "function" && Se && Se.createHTMLDocument !== void 0;
|
|
17409
|
-
const Je = xw,
|
|
17433
|
+
const Je = xw, We = ww, ce = kw, it = Sw, lt = vw, qt = Cw, _t = Aw, It = Tw;
|
|
17410
17434
|
let vn = fa, fe = null;
|
|
17411
17435
|
const on = ue({}, [
|
|
17412
17436
|
...aa,
|
|
@@ -17422,7 +17446,7 @@ function Gu() {
|
|
|
17422
17446
|
...ca,
|
|
17423
17447
|
...mr
|
|
17424
17448
|
]);
|
|
17425
|
-
let
|
|
17449
|
+
let Ge = Object.seal(bn(null, {
|
|
17426
17450
|
tagNameCheck: {
|
|
17427
17451
|
writable: !0,
|
|
17428
17452
|
configurable: !1,
|
|
@@ -17543,27 +17567,27 @@ function Gu() {
|
|
|
17543
17567
|
}, Fr = function() {
|
|
17544
17568
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
17545
17569
|
if (un && un === h) return;
|
|
17546
|
-
(!h || typeof h != "object") && (h = {}), h =
|
|
17570
|
+
(!h || typeof h != "object") && (h = {}), h = Xe(h), An = ic.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? lc : h.PARSER_MEDIA_TYPE, be = An === "application/xhtml+xml" ? bo : Kt, fe = Dt(h, "ALLOWED_TAGS", on, { transform: be }), he = Dt(h, "ALLOWED_ATTR", ln, { transform: be }), Mr = Dt(h, "ALLOWED_NAMESPACES", rc, { transform: bo }), Ri = Dt(h, "ADD_URI_SAFE_ATTR", Ni, {
|
|
17547
17571
|
transform: be,
|
|
17548
17572
|
base: Ni
|
|
17549
17573
|
}), _i = Dt(h, "ADD_DATA_URI_TAGS", Ii, {
|
|
17550
17574
|
transform: be,
|
|
17551
17575
|
base: Ii
|
|
17552
|
-
}), $t = Dt(h, "FORBID_CONTENTS", qi, { transform: be }), jt = Dt(h, "FORBID_TAGS",
|
|
17576
|
+
}), $t = Dt(h, "FORBID_CONTENTS", qi, { transform: be }), jt = Dt(h, "FORBID_TAGS", Xe({}), { transform: be }), Zn = Dt(h, "FORBID_ATTR", Xe({}), { transform: be }), an = He(h, "USE_PROFILES") ? h.USE_PROFILES && typeof h.USE_PROFILES == "object" ? Xe(h.USE_PROFILES) : h.USE_PROFILES : !1, er = h.ALLOW_ARIA_ATTR !== !1, Cn = h.ALLOW_DATA_ATTR !== !1, A = h.ALLOW_UNKNOWN_PROTOCOLS || !1, M = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = h.SAFE_FOR_TEMPLATES || !1, Q = h.SAFE_FOR_XML !== !1, le = h.WHOLE_DOCUMENT || !1, Ze = h.RETURN_DOM || !1, ve = h.RETURN_DOM_FRAGMENT || !1, at = h.RETURN_TRUSTED_TYPE || !1, yt = h.FORCE_BODY || !1, et = h.SANITIZE_DOM !== !1, Ei = h.SANITIZE_NAMED_PROPS || !1, Lr = h.KEEP_CONTENT !== !1, Pr = h.IN_PLACE || !1, vn = gw(h.ALLOWED_URI_REGEXP) ? h.ALLOWED_URI_REGEXP : fa, sn = typeof h.NAMESPACE == "string" ? h.NAMESPACE : pt, Or = vo(h, "MATHML_TEXT_INTEGRATION_POINTS", () => ue({}, Li)), zr = vo(h, "HTML_INTEGRATION_POINTS", () => ue({}, Pi));
|
|
17553
17577
|
const y = vo(h, "CUSTOM_ELEMENT_HANDLING", () => bn(null));
|
|
17554
|
-
if (
|
|
17578
|
+
if (Ge = bn(null), He(y, "tagNameCheck") && Di(y.tagNameCheck) && (Ge.tagNameCheck = y.tagNameCheck), He(y, "attributeNameCheck") && Di(y.attributeNameCheck) && (Ge.attributeNameCheck = y.attributeNameCheck), He(y, "allowCustomizedBuiltInElements") && typeof y.allowCustomizedBuiltInElements == "boolean" && (Ge.allowCustomizedBuiltInElements = y.allowCustomizedBuiltInElements), _e(Ge), G && (Cn = !1), ve && (Ze = !0), an && (fe = ue({}, sa), he = bn(null), an.html === !0 && (ue(fe, aa), ue(he, ua)), an.svg === !0 && (ue(fe, yo), ue(he, ko), ue(he, mr)), an.svgFilters === !0 && (ue(fe, xo), ue(he, ko), ue(he, mr)), an.mathMl === !0 && (ue(fe, wo), ue(he, ca), ue(he, mr))), ft.tagCheck = null, ft.attributeCheck = null, He(h, "ADD_TAGS") && (typeof h.ADD_TAGS == "function" ? ft.tagCheck = h.ADD_TAGS : yn(h.ADD_TAGS) && (fe === on && (fe = Xe(fe)), ue(fe, h.ADD_TAGS, be))), He(h, "ADD_ATTR") && (typeof h.ADD_ATTR == "function" ? ft.attributeCheck = h.ADD_ATTR : yn(h.ADD_ATTR) && (he === ln && (he = Xe(he)), ue(he, h.ADD_ATTR, be))), He(h, "ADD_FORBID_CONTENTS") && yn(h.ADD_FORBID_CONTENTS) && ($t === qi && ($t = Xe($t)), ue($t, h.ADD_FORBID_CONTENTS, be)), Lr && (fe["#text"] = !0), le && ue(fe, [
|
|
17555
17579
|
"html",
|
|
17556
17580
|
"head",
|
|
17557
17581
|
"body"
|
|
17558
17582
|
]), fe.table && (ue(fe, ["tbody"]), delete jt.tbody), h.TRUSTED_TYPES_POLICY) {
|
|
17559
17583
|
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function") throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
17560
17584
|
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
17561
|
-
const
|
|
17585
|
+
const q = P;
|
|
17562
17586
|
P = h.TRUSTED_TYPES_POLICY;
|
|
17563
17587
|
try {
|
|
17564
17588
|
z = ae("");
|
|
17565
|
-
} catch (
|
|
17566
|
-
throw P =
|
|
17589
|
+
} catch (_) {
|
|
17590
|
+
throw P = q, _;
|
|
17567
17591
|
}
|
|
17568
17592
|
} else h.TRUSTED_TYPES_POLICY === null ? (P = void 0, z = "") : (P === void 0 && (P = Le()), P && typeof z == "string" && (z = ae("")));
|
|
17569
17593
|
Ce && Ce(h), un = h;
|
|
@@ -17571,16 +17595,16 @@ function Gu() {
|
|
|
17571
17595
|
...yo,
|
|
17572
17596
|
...xo,
|
|
17573
17597
|
...bw
|
|
17574
|
-
]), Oi = ue({}, [...wo, ...yw]), sc = function(h, y,
|
|
17575
|
-
return y.namespaceURI === pt ? h === "svg" : y.namespaceURI === tr ? h === "svg" && (
|
|
17576
|
-
}, uc = function(h, y,
|
|
17577
|
-
return y.namespaceURI === pt ? h === "math" : y.namespaceURI === nr ? h === "math" && zr[
|
|
17578
|
-
}, cc = function(h, y,
|
|
17579
|
-
return y.namespaceURI === nr && !zr[
|
|
17598
|
+
]), Oi = ue({}, [...wo, ...yw]), sc = function(h, y, q) {
|
|
17599
|
+
return y.namespaceURI === pt ? h === "svg" : y.namespaceURI === tr ? h === "svg" && (q === "annotation-xml" || Or[q]) : !!Mi[h];
|
|
17600
|
+
}, uc = function(h, y, q) {
|
|
17601
|
+
return y.namespaceURI === pt ? h === "math" : y.namespaceURI === nr ? h === "math" && zr[q] : !!Oi[h];
|
|
17602
|
+
}, cc = function(h, y, q) {
|
|
17603
|
+
return y.namespaceURI === nr && !zr[q] || y.namespaceURI === tr && !Or[q] ? !1 : !Oi[h] && (oc[h] || !Mi[h]);
|
|
17580
17604
|
}, fc = function(h) {
|
|
17581
|
-
const y = S(h),
|
|
17605
|
+
const y = S(h), q = Kt(N(h)), _ = w(h);
|
|
17582
17606
|
let $, X;
|
|
17583
|
-
return
|
|
17607
|
+
return _ && B(_) === ye.element ? ($ = { namespaceURI: S(_) }, X = Kt(N(_))) : ($ = { namespaceURI: sn }, X = "template"), Mr[y] ? y === nr ? sc(q, $, X) : y === tr ? uc(q, $, X) : y === pt ? cc(q, $, X) : !!(An === "application/xhtml+xml" && Mr[y]) : !1;
|
|
17584
17608
|
}, Rt = function(h) {
|
|
17585
17609
|
Pn(t.removed, { element: h });
|
|
17586
17610
|
try {
|
|
@@ -17588,41 +17612,41 @@ function Gu() {
|
|
|
17588
17612
|
} catch {
|
|
17589
17613
|
if (p(h), !w(h)) throw kt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
17590
17614
|
}
|
|
17591
|
-
}, zi = function(h, y,
|
|
17615
|
+
}, zi = function(h, y, q) {
|
|
17592
17616
|
try {
|
|
17593
17617
|
g(h, y);
|
|
17594
17618
|
} catch {
|
|
17595
17619
|
try {
|
|
17596
|
-
h.removeAttribute(
|
|
17620
|
+
h.removeAttribute(q);
|
|
17597
17621
|
} catch {
|
|
17598
17622
|
}
|
|
17599
17623
|
}
|
|
17600
17624
|
}, Br = function(h) {
|
|
17601
17625
|
Hr(h);
|
|
17602
17626
|
const y = v(h);
|
|
17603
|
-
y && wt(sw(y), (
|
|
17627
|
+
y && wt(sw(y), (_) => {
|
|
17604
17628
|
try {
|
|
17605
|
-
p(
|
|
17629
|
+
p(_);
|
|
17606
17630
|
} catch {
|
|
17607
17631
|
}
|
|
17608
17632
|
});
|
|
17609
|
-
const
|
|
17610
|
-
if (
|
|
17611
|
-
const $ =
|
|
17633
|
+
const q = B(h) === ye.element ? T(h) : null;
|
|
17634
|
+
if (q) for (let _ = q.length - 1; _ >= 0; --_) {
|
|
17635
|
+
const $ = q[_], X = $ && $.name;
|
|
17612
17636
|
typeof X == "string" && zi(h, $, X);
|
|
17613
17637
|
}
|
|
17614
|
-
}, cn = function(h, y,
|
|
17615
|
-
if (!
|
|
17616
|
-
|
|
17638
|
+
}, cn = function(h, y, q) {
|
|
17639
|
+
if (!q) try {
|
|
17640
|
+
q = y.getAttributeNode(h);
|
|
17617
17641
|
} catch {
|
|
17618
|
-
|
|
17642
|
+
q = null;
|
|
17619
17643
|
}
|
|
17620
17644
|
Pn(t.removed, {
|
|
17621
|
-
attribute:
|
|
17645
|
+
attribute: q || null,
|
|
17622
17646
|
from: y
|
|
17623
17647
|
});
|
|
17624
17648
|
try {
|
|
17625
|
-
|
|
17649
|
+
q ? g(y, q) : y.removeAttribute(h);
|
|
17626
17650
|
} catch {
|
|
17627
17651
|
try {
|
|
17628
17652
|
y.removeAttribute(h);
|
|
@@ -17639,24 +17663,24 @@ function Gu() {
|
|
|
17639
17663
|
} catch {
|
|
17640
17664
|
}
|
|
17641
17665
|
}, Fi = function(h) {
|
|
17642
|
-
const y =
|
|
17666
|
+
const y = T(h);
|
|
17643
17667
|
if (y)
|
|
17644
|
-
for (let
|
|
17645
|
-
const
|
|
17646
|
-
typeof $ != "string" || he[be($)] || zi(h,
|
|
17668
|
+
for (let q = y.length - 1; q >= 0; --q) {
|
|
17669
|
+
const _ = y[q], $ = _ && _.name;
|
|
17670
|
+
typeof $ != "string" || he[be($)] || zi(h, _, $);
|
|
17647
17671
|
}
|
|
17648
17672
|
}, Ur = function(h, y) {
|
|
17649
|
-
let
|
|
17650
|
-
const
|
|
17651
|
-
for (;
|
|
17652
|
-
const $ =
|
|
17673
|
+
let q = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
17674
|
+
const _ = [h];
|
|
17675
|
+
for (; _.length > 0; ) {
|
|
17676
|
+
const $ = _.pop();
|
|
17653
17677
|
if (y($) === !1) continue;
|
|
17654
|
-
if (
|
|
17678
|
+
if (q && B($) === ye.element) {
|
|
17655
17679
|
const ne = E($);
|
|
17656
|
-
Nt(ne) &&
|
|
17680
|
+
Nt(ne) && _.push(ne);
|
|
17657
17681
|
}
|
|
17658
17682
|
const X = v($);
|
|
17659
|
-
if (X) for (let ne = X.length - 1; ne >= 0; --ne)
|
|
17683
|
+
if (X) for (let ne = X.length - 1; ne >= 0; --ne) _.push(X[ne]);
|
|
17660
17684
|
}
|
|
17661
17685
|
}, Hr = function(h) {
|
|
17662
17686
|
Ur(h, (y) => {
|
|
@@ -17664,109 +17688,109 @@ function Gu() {
|
|
|
17664
17688
|
});
|
|
17665
17689
|
}, jr = function(h) {
|
|
17666
17690
|
const y = [];
|
|
17667
|
-
return Ur(h, (
|
|
17668
|
-
y.push(
|
|
17691
|
+
return Ur(h, (q) => {
|
|
17692
|
+
y.push(q);
|
|
17669
17693
|
}, !0), y;
|
|
17670
17694
|
}, pc = function(h, y) {
|
|
17671
|
-
const
|
|
17672
|
-
wt(jr(h), (
|
|
17673
|
-
B(
|
|
17674
|
-
}), wt(y, (
|
|
17675
|
-
B(
|
|
17695
|
+
const q = mo();
|
|
17696
|
+
wt(jr(h), (_) => {
|
|
17697
|
+
B(_) === ye.element && go(q, _);
|
|
17698
|
+
}), wt(y, (_) => {
|
|
17699
|
+
B(_) === ye.element && !Dn(q, _) && Fi(_);
|
|
17676
17700
|
});
|
|
17677
17701
|
}, Bi = function(h, y) {
|
|
17678
|
-
let
|
|
17679
|
-
return wt(t.removed, (
|
|
17680
|
-
|
|
17681
|
-
}), pc(h, y),
|
|
17702
|
+
let q = !1;
|
|
17703
|
+
return wt(t.removed, (_) => {
|
|
17704
|
+
_.element && (q = q || _.element === h, Hr(_.element));
|
|
17705
|
+
}), pc(h, y), q;
|
|
17682
17706
|
}, dc = 8, hc = function(h, y) {
|
|
17683
|
-
const
|
|
17684
|
-
let
|
|
17685
|
-
const $ = () => (
|
|
17686
|
-
go(
|
|
17687
|
-
})),
|
|
17707
|
+
const q = Vt;
|
|
17708
|
+
let _ = null;
|
|
17709
|
+
const $ = () => (_ || (_ = mo(), wt(y, (X) => {
|
|
17710
|
+
go(_, X);
|
|
17711
|
+
})), _);
|
|
17688
17712
|
for (let X = 0; ; X++) {
|
|
17689
17713
|
const ne = jr(h), we = [h];
|
|
17690
17714
|
let dt = !1;
|
|
17691
17715
|
if (wt(ne, (Me) => {
|
|
17692
|
-
B(Me) === ye.documentFragment ? Pn(we, Me) : !dt && !Dn(
|
|
17716
|
+
B(Me) === ye.documentFragment ? Pn(we, Me) : !dt && !Dn(q, Me) && (dt = Dn($(), Me));
|
|
17693
17717
|
}), !dt) return;
|
|
17694
17718
|
if (X >= dc) throw kt("the tree kept changing during in-place sanitization; refusing to return it");
|
|
17695
17719
|
wt(we, (Me, Fe) => {
|
|
17696
17720
|
mc(Me, Fe > 0, h, $());
|
|
17697
17721
|
});
|
|
17698
17722
|
}
|
|
17699
|
-
}, mc = function(h, y,
|
|
17723
|
+
}, mc = function(h, y, q, _) {
|
|
17700
17724
|
const $ = Vr(h);
|
|
17701
17725
|
let X;
|
|
17702
17726
|
for (; X = $.nextNode(); )
|
|
17703
|
-
!Dn(
|
|
17727
|
+
!Dn(_, X) || Dn(Vt, X) || (y && st(j.uponSanitizeShadowNode, X, null), Wr(X, q), Gr(X, q), Nt(X.content) && Tn(X.content));
|
|
17704
17728
|
}, gc = function(h) {
|
|
17705
17729
|
Vt && go(Vt, h);
|
|
17706
17730
|
}, Ui = function(h, y) {
|
|
17707
17731
|
return Q ? h === "patchsrc" ? !0 : h === "for" && y !== "label" && y !== "output" : !1;
|
|
17708
17732
|
}, bc = function(h) {
|
|
17709
17733
|
Q && Ur(h, (y) => {
|
|
17710
|
-
const
|
|
17711
|
-
if (
|
|
17734
|
+
const q = B(y);
|
|
17735
|
+
if (q === ye.processingInstruction || q === ye.comment && qe(pa, y.data)) {
|
|
17712
17736
|
try {
|
|
17713
17737
|
p(y);
|
|
17714
17738
|
} catch {
|
|
17715
17739
|
}
|
|
17716
17740
|
return !1;
|
|
17717
17741
|
}
|
|
17718
|
-
if (
|
|
17719
|
-
const
|
|
17742
|
+
if (q === ye.element) {
|
|
17743
|
+
const _ = y, $ = be(N(y));
|
|
17720
17744
|
try {
|
|
17721
|
-
|
|
17745
|
+
_.hasAttribute && _.hasAttribute("patchsrc") && _.removeAttribute("patchsrc"), _.hasAttribute && _.hasAttribute("for") && Ui("for", $) && _.removeAttribute("for");
|
|
17722
17746
|
} catch {
|
|
17723
17747
|
}
|
|
17724
17748
|
}
|
|
17725
17749
|
return !0;
|
|
17726
17750
|
});
|
|
17727
17751
|
}, Hi = function(h) {
|
|
17728
|
-
let y = null,
|
|
17752
|
+
let y = null, q = null;
|
|
17729
17753
|
if (yt) h = "<remove></remove>" + h;
|
|
17730
17754
|
else {
|
|
17731
17755
|
const X = ra(h, /^[\r\n\t ]+/);
|
|
17732
|
-
|
|
17756
|
+
q = X && X[0];
|
|
17733
17757
|
}
|
|
17734
17758
|
An === "application/xhtml+xml" && sn === pt && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
|
|
17735
|
-
const
|
|
17759
|
+
const _ = P ? ae(h) : h;
|
|
17736
17760
|
if (sn === pt) try {
|
|
17737
|
-
y = new u().parseFromString(
|
|
17761
|
+
y = new u().parseFromString(_, An);
|
|
17738
17762
|
} catch {
|
|
17739
17763
|
}
|
|
17740
17764
|
if (!y || !y.documentElement) {
|
|
17741
17765
|
y = Se.createDocument(sn, "template", null);
|
|
17742
17766
|
try {
|
|
17743
|
-
y.documentElement.innerHTML = Dr ? z :
|
|
17767
|
+
y.documentElement.innerHTML = Dr ? z : _;
|
|
17744
17768
|
} catch {
|
|
17745
17769
|
}
|
|
17746
17770
|
}
|
|
17747
17771
|
const $ = y.body || y.documentElement;
|
|
17748
|
-
return h &&
|
|
17772
|
+
return h && q && $.insertBefore(n.createTextNode(q), $.childNodes[0] || null), sn === pt ? Te.call(y, le ? "html" : "body")[0] : le ? y.documentElement : $;
|
|
17749
17773
|
}, Vr = function(h) {
|
|
17750
17774
|
const y = C ? C(h) : h.ownerDocument;
|
|
17751
17775
|
return Pe.call(y || h, h, s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION, null);
|
|
17752
17776
|
}, rr = function(h) {
|
|
17753
|
-
return h = Mn(h, Je, " "), h = Mn(h,
|
|
17777
|
+
return h = Mn(h, Je, " "), h = Mn(h, We, " "), h = Mn(h, ce, " "), h;
|
|
17754
17778
|
}, $r = function(h) {
|
|
17755
17779
|
var y;
|
|
17756
17780
|
ji(h);
|
|
17757
|
-
const
|
|
17758
|
-
|
|
17759
|
-
Nt(
|
|
17781
|
+
const q = (y = h.querySelectorAll) === null || y === void 0 ? void 0 : y.call(h, "template");
|
|
17782
|
+
q && wt(q, (_) => {
|
|
17783
|
+
Nt(_.content) && $r(_.content);
|
|
17760
17784
|
});
|
|
17761
17785
|
}, ji = function(h) {
|
|
17762
17786
|
h.normalize();
|
|
17763
|
-
const y = C ? C(h) : h.ownerDocument,
|
|
17764
|
-
let
|
|
17765
|
-
for (;
|
|
17766
|
-
|
|
17787
|
+
const y = C ? C(h) : h.ownerDocument, q = Pe.call(y || h, h, s.SHOW_TEXT | s.SHOW_COMMENT | s.SHOW_CDATA_SECTION | s.SHOW_PROCESSING_INSTRUCTION, null);
|
|
17788
|
+
let _ = q.nextNode();
|
|
17789
|
+
for (; _; )
|
|
17790
|
+
_.data = rr(_.data), _ = q.nextNode();
|
|
17767
17791
|
}, or = function(h) {
|
|
17768
17792
|
const y = F ? F(h) : null;
|
|
17769
|
-
return typeof y != "string" || be(y) !== "form" ? !1 : typeof h.nodeName != "string" || typeof h.textContent != "string" || typeof h.removeChild != "function" || h.attributes !==
|
|
17793
|
+
return typeof y != "string" || be(y) !== "form" ? !1 : typeof h.nodeName != "string" || typeof h.textContent != "string" || typeof h.removeChild != "function" || h.attributes !== T(h) || typeof h.removeAttribute != "function" || typeof h.removeAttributeNode != "function" || typeof h.getAttributeNode != "function" || typeof h.setAttribute != "function" || typeof h.namespaceURI != "string" || typeof h.insertBefore != "function" || typeof h.hasChildNodes != "function" || h.nodeType !== O(h) || h.childNodes !== v(h);
|
|
17770
17794
|
}, Nt = function(h) {
|
|
17771
17795
|
if (!O || typeof h != "object" || h === null) return !1;
|
|
17772
17796
|
try {
|
|
@@ -17783,8 +17807,8 @@ function Gu() {
|
|
|
17783
17807
|
}
|
|
17784
17808
|
};
|
|
17785
17809
|
function st(I, h, y) {
|
|
17786
|
-
I.length !== 0 && wt(I, (
|
|
17787
|
-
|
|
17810
|
+
I.length !== 0 && wt(I, (q) => {
|
|
17811
|
+
q.call(t, h, y, un);
|
|
17788
17812
|
});
|
|
17789
17813
|
}
|
|
17790
17814
|
const yc = function(h, y) {
|
|
@@ -17792,53 +17816,53 @@ function Gu() {
|
|
|
17792
17816
|
}, ir = function(h, y) {
|
|
17793
17817
|
if (h instanceof RegExp) return qe(h, y);
|
|
17794
17818
|
if (h instanceof Function) {
|
|
17795
|
-
for (var
|
|
17796
|
-
return !!h(y, ...
|
|
17819
|
+
for (var q = arguments.length, _ = new Array(q > 2 ? q - 2 : 0), $ = 2; $ < q; $++) _[$ - 2] = arguments[$];
|
|
17820
|
+
return !!h(y, ..._);
|
|
17797
17821
|
}
|
|
17798
17822
|
return !1;
|
|
17799
|
-
}, xc = function(h, y,
|
|
17800
|
-
if (!jt[y] && Wi(y) && ir(
|
|
17823
|
+
}, xc = function(h, y, q) {
|
|
17824
|
+
if (!jt[y] && Wi(y) && ir(Ge.tagNameCheck, y)) return !1;
|
|
17801
17825
|
if (Lr && !$t[y] && !$t[Kt(y)]) {
|
|
17802
|
-
const
|
|
17803
|
-
if ($ &&
|
|
17826
|
+
const _ = w(h), $ = v(h);
|
|
17827
|
+
if ($ && _) {
|
|
17804
17828
|
const X = $.length;
|
|
17805
17829
|
for (let ne = X - 1; ne >= 0; --ne) {
|
|
17806
|
-
const we = h ===
|
|
17807
|
-
|
|
17830
|
+
const we = h === q ? d($[ne], !0) : $[ne];
|
|
17831
|
+
_.insertBefore(we, k(h));
|
|
17808
17832
|
}
|
|
17809
17833
|
}
|
|
17810
17834
|
}
|
|
17811
17835
|
return Rt(h), !0;
|
|
17812
|
-
}, Vi = function(h, y,
|
|
17813
|
-
return h.length === 0 ? y : y ===
|
|
17836
|
+
}, Vi = function(h, y, q, _) {
|
|
17837
|
+
return h.length === 0 ? y : y === q || y === _ ? Xe(y) : y;
|
|
17814
17838
|
}, fn = function(h, y) {
|
|
17815
17839
|
return h === y || w(h) !== null ? !1 : (Pr && Hr(h), !0);
|
|
17816
17840
|
}, Wr = function(h, y) {
|
|
17817
17841
|
if (gc(h), st(j.beforeSanitizeElements, h, null), fn(h, y)) return !0;
|
|
17818
17842
|
if (or(h))
|
|
17819
17843
|
return Rt(h), !0;
|
|
17820
|
-
const
|
|
17844
|
+
const q = be(N(h));
|
|
17821
17845
|
if (fe = Vi(j.uponSanitizeElement, fe, on, Qe), st(j.uponSanitizeElement, h, {
|
|
17822
|
-
tagName:
|
|
17846
|
+
tagName: q,
|
|
17823
17847
|
allowedTags: fe
|
|
17824
17848
|
}), fn(h, y)) return !0;
|
|
17825
|
-
if (yc(h,
|
|
17849
|
+
if (yc(h, q))
|
|
17826
17850
|
return Rt(h), !0;
|
|
17827
|
-
if (jt[
|
|
17828
|
-
const
|
|
17829
|
-
return
|
|
17851
|
+
if (jt[q] || !(ft.tagCheck instanceof Function && ft.tagCheck(q)) && !fe[q]) {
|
|
17852
|
+
const _ = xc(h, q, y);
|
|
17853
|
+
return _ === !1 && (st(j.afterSanitizeElements, h, null), fn(h, y)) ? !0 : _;
|
|
17830
17854
|
}
|
|
17831
|
-
if (B(h) === ye.element && !fc(h) || (
|
|
17855
|
+
if (B(h) === ye.element && !fc(h) || (q === "noscript" || q === "noembed" || q === "noframes") && qe(qw, h.innerHTML))
|
|
17832
17856
|
return Rt(h), !0;
|
|
17833
17857
|
if (G && h.nodeType === ye.text) {
|
|
17834
|
-
const
|
|
17835
|
-
h.textContent !==
|
|
17858
|
+
const _ = rr(h.textContent);
|
|
17859
|
+
h.textContent !== _ && (Pn(t.removed, { element: h.cloneNode() }), h.textContent = _);
|
|
17836
17860
|
}
|
|
17837
17861
|
return st(j.afterSanitizeElements, h, null), fn(h, y);
|
|
17838
|
-
}, $i = function(h, y,
|
|
17839
|
-
if (Zn[y] || Ui(y, h) || et && (y === "id" || y === "name") && (
|
|
17840
|
-
const
|
|
17841
|
-
return Cn && qe(it, y) || er && qe(lt, y) ? !0 :
|
|
17862
|
+
}, $i = function(h, y, q) {
|
|
17863
|
+
if (Zn[y] || Ui(y, h) || et && (y === "id" || y === "name") && (q in n || q in ac)) return !1;
|
|
17864
|
+
const _ = he[y] || ft.attributeCheck instanceof Function && ft.attributeCheck(y, h);
|
|
17865
|
+
return Cn && qe(it, y) || er && qe(lt, y) ? !0 : _ ? Ri[y] || qe(vn, Mn(q, _t, "")) || (y === "src" || y === "xlink:href" || y === "href") && h !== "script" && oa(q, "data:") === 0 && _i[h] || A && !qe(qt, Mn(q, _t, "")) ? !0 : !q : Wi(h) && ir(Ge.tagNameCheck, h) && ir(Ge.attributeNameCheck, y, h) || y === "is" && Ge.allowCustomizedBuiltInElements && ir(Ge.tagNameCheck, q);
|
|
17842
17866
|
}, wc = ue({}, [
|
|
17843
17867
|
"annotation-xml",
|
|
17844
17868
|
"color-profile",
|
|
@@ -17850,17 +17874,17 @@ function Gu() {
|
|
|
17850
17874
|
"missing-glyph"
|
|
17851
17875
|
]), Wi = function(h) {
|
|
17852
17876
|
return !wc[Kt(h)] && qe(It, h);
|
|
17853
|
-
}, kc = function(h, y,
|
|
17854
|
-
if (P && typeof f == "object" && typeof f.getAttributeType == "function" && !
|
|
17877
|
+
}, kc = function(h, y, q, _) {
|
|
17878
|
+
if (P && typeof f == "object" && typeof f.getAttributeType == "function" && !q) switch (f.getAttributeType(h, y)) {
|
|
17855
17879
|
case "TrustedHTML":
|
|
17856
|
-
return ae(
|
|
17880
|
+
return ae(_);
|
|
17857
17881
|
case "TrustedScriptURL":
|
|
17858
|
-
return Ee(
|
|
17882
|
+
return Ee(_);
|
|
17859
17883
|
}
|
|
17860
|
-
return
|
|
17861
|
-
}, Sc = function(h, y,
|
|
17884
|
+
return _;
|
|
17885
|
+
}, Sc = function(h, y, q, _) {
|
|
17862
17886
|
try {
|
|
17863
|
-
return
|
|
17887
|
+
return q ? h.setAttributeNS(q, y, _) : h.setAttribute(y, _), or(h) ? (Rt(h), !1) : !0;
|
|
17864
17888
|
} catch {
|
|
17865
17889
|
return cn(y, h), !1;
|
|
17866
17890
|
}
|
|
@@ -17868,27 +17892,27 @@ function Gu() {
|
|
|
17868
17892
|
return Q && qe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, y) ? !0 : Kt(h) === "attributename" && ra(y, "href") !== null;
|
|
17869
17893
|
}, Gr = function(h, y) {
|
|
17870
17894
|
if (st(j.beforeSanitizeAttributes, h, null), fn(h, y)) return;
|
|
17871
|
-
const
|
|
17872
|
-
if (!
|
|
17895
|
+
const q = h.attributes;
|
|
17896
|
+
if (!q || or(h)) return;
|
|
17873
17897
|
he = Vi(j.uponSanitizeAttribute, he, ln, ze);
|
|
17874
|
-
const
|
|
17898
|
+
const _ = {
|
|
17875
17899
|
attrName: "",
|
|
17876
17900
|
attrValue: "",
|
|
17877
17901
|
keepAttr: !0,
|
|
17878
17902
|
allowedAttributes: he,
|
|
17879
17903
|
forceKeepAttr: void 0
|
|
17880
17904
|
};
|
|
17881
|
-
let $ =
|
|
17905
|
+
let $ = q.length;
|
|
17882
17906
|
const X = be(h.nodeName);
|
|
17883
17907
|
for (; $--; ) {
|
|
17884
|
-
const ne =
|
|
17908
|
+
const ne = q[$], we = ne.name, dt = ne.namespaceURI, Me = ne.value, Fe = be(we), pn = Me;
|
|
17885
17909
|
let Be = we === "value" ? pn : cw(pn), Yi = !1;
|
|
17886
|
-
if (
|
|
17910
|
+
if (_.attrName = Fe, _.attrValue = Be, _.keepAttr = !0, _.forceKeepAttr = void 0, st(j.uponSanitizeAttribute, h, _), Be = _.attrValue, Ei && (Fe === "id" || Fe === "name") && oa(Be, Ti) !== 0 && (cn(we, h, ne), Be = Ti + Be, Yi = !0), Gi(we, Be)) {
|
|
17887
17911
|
cn(we, h, ne);
|
|
17888
17912
|
continue;
|
|
17889
17913
|
}
|
|
17890
|
-
if (!
|
|
17891
|
-
if (!
|
|
17914
|
+
if (!_.forceKeepAttr) {
|
|
17915
|
+
if (!_.keepAttr) {
|
|
17892
17916
|
cn(we, h, ne);
|
|
17893
17917
|
continue;
|
|
17894
17918
|
}
|
|
@@ -17906,11 +17930,11 @@ function Gu() {
|
|
|
17906
17930
|
st(j.afterSanitizeAttributes, h, null), fn(h, y);
|
|
17907
17931
|
}, Tn = function(h) {
|
|
17908
17932
|
let y = null;
|
|
17909
|
-
const
|
|
17910
|
-
for (st(j.beforeSanitizeShadowDOM, h, null); y =
|
|
17933
|
+
const q = Vr(h);
|
|
17934
|
+
for (st(j.beforeSanitizeShadowDOM, h, null); y = q.nextNode(); )
|
|
17911
17935
|
if (st(j.uponSanitizeShadowNode, y, null), Wr(y, h), Gr(y, h), Nt(y.content) && Tn(y.content), B(y) === ye.element) {
|
|
17912
|
-
const
|
|
17913
|
-
Nt(
|
|
17936
|
+
const _ = E(y);
|
|
17937
|
+
Nt(_) && (Yr(_), Tn(_));
|
|
17914
17938
|
}
|
|
17915
17939
|
G && ji(h), st(j.afterSanitizeShadowDOM, h, null);
|
|
17916
17940
|
}, Yr = function(h) {
|
|
@@ -17919,20 +17943,20 @@ function Gu() {
|
|
|
17919
17943
|
shadow: null
|
|
17920
17944
|
}];
|
|
17921
17945
|
for (; y.length > 0; ) {
|
|
17922
|
-
const
|
|
17923
|
-
if (
|
|
17924
|
-
Tn(
|
|
17946
|
+
const q = y.pop();
|
|
17947
|
+
if (q.shadow) {
|
|
17948
|
+
Tn(q.shadow);
|
|
17925
17949
|
continue;
|
|
17926
17950
|
}
|
|
17927
|
-
const
|
|
17951
|
+
const _ = q.node, $ = B(_) === ye.element, X = v(_);
|
|
17928
17952
|
if (X) for (let ne = X.length - 1; ne >= 0; --ne) y.push({
|
|
17929
17953
|
node: X[ne],
|
|
17930
17954
|
shadow: null
|
|
17931
17955
|
});
|
|
17932
17956
|
if ($) {
|
|
17933
|
-
const ne = F ? F(
|
|
17957
|
+
const ne = F ? F(_) : null;
|
|
17934
17958
|
if (typeof ne == "string" && be(ne) === "template") {
|
|
17935
|
-
const we =
|
|
17959
|
+
const we = _.content;
|
|
17936
17960
|
Nt(we) && y.push({
|
|
17937
17961
|
node: we,
|
|
17938
17962
|
shadow: null
|
|
@@ -17940,7 +17964,7 @@ function Gu() {
|
|
|
17940
17964
|
}
|
|
17941
17965
|
}
|
|
17942
17966
|
if ($) {
|
|
17943
|
-
const ne = E(
|
|
17967
|
+
const ne = E(_);
|
|
17944
17968
|
Nt(ne) && y.push({
|
|
17945
17969
|
node: null,
|
|
17946
17970
|
shadow: ne
|
|
@@ -17952,11 +17976,11 @@ function Gu() {
|
|
|
17952
17976
|
}
|
|
17953
17977
|
};
|
|
17954
17978
|
return t.sanitize = function(I) {
|
|
17955
|
-
let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, y = null,
|
|
17979
|
+
let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, y = null, q = null, _ = null, $ = null;
|
|
17956
17980
|
if (Dr = !I, Dr && (I = "<!-->"), typeof I != "string" && !En(I) && (I = hw(I), typeof I != "string"))
|
|
17957
17981
|
throw kt("dirty is not a string, aborting");
|
|
17958
17982
|
if (!t.isSupported) return I;
|
|
17959
|
-
De ? (fe = Qe, he = ze) : Fr(h), (j.uponSanitizeElement.length > 0 || j.uponSanitizeAttribute.length > 0) && (fe =
|
|
17983
|
+
De ? (fe = Qe, he = ze) : Fr(h), (j.uponSanitizeElement.length > 0 || j.uponSanitizeAttribute.length > 0) && (fe = Xe(fe)), j.uponSanitizeAttribute.length > 0 && (he = Xe(he)), t.removed = [];
|
|
17960
17984
|
const X = Pr && typeof I != "string" && En(I);
|
|
17961
17985
|
let ne = [];
|
|
17962
17986
|
const we = Vt;
|
|
@@ -17972,7 +17996,7 @@ function Gu() {
|
|
|
17972
17996
|
throw Br(I), kt("root node is clobbered and cannot be sanitized in-place");
|
|
17973
17997
|
ne = jr(I), Vt = mo();
|
|
17974
17998
|
} else if (En(I))
|
|
17975
|
-
y = Hi("<!---->"),
|
|
17999
|
+
y = Hi("<!---->"), q = y.ownerDocument.importNode(I, !0), q.nodeType === ye.element && q.nodeName === "BODY" || q.nodeName === "HTML" ? y = q : y.appendChild(q), Yr(y);
|
|
17976
18000
|
else {
|
|
17977
18001
|
if (!Ze && !G && !le && I.indexOf("<") === -1) return P && at ? ae(I) : I;
|
|
17978
18002
|
if (y = Hi(I), !y) return Ze ? null : at ? z : "";
|
|
@@ -17982,8 +18006,8 @@ function Gu() {
|
|
|
17982
18006
|
try {
|
|
17983
18007
|
X && Yr(I);
|
|
17984
18008
|
const Fe = Vr(dt);
|
|
17985
|
-
for (;
|
|
17986
|
-
Wr(
|
|
18009
|
+
for (; _ = Fe.nextNode(); )
|
|
18010
|
+
Wr(_, dt), Gr(_, dt), Nt(_.content) && Tn(_.content);
|
|
17987
18011
|
X && hc(I, ne);
|
|
17988
18012
|
} catch (Fe) {
|
|
17989
18013
|
throw X && (Br(I), Bi(I, ne)), Fe;
|
|
@@ -18010,8 +18034,8 @@ function Gu() {
|
|
|
18010
18034
|
un = null, De = !1, Qe = null, ze = null, P = re, z = "";
|
|
18011
18035
|
}, t.isValidAttribute = function(I, h, y) {
|
|
18012
18036
|
un || Fr({});
|
|
18013
|
-
const
|
|
18014
|
-
return typeof y == "string" && (Gi(h, y) || !M && qe(da, y)) ? !1 : $i(
|
|
18037
|
+
const q = be(I), _ = be(h);
|
|
18038
|
+
return typeof y == "string" && (Gi(h, y) || !M && qe(da, y)) ? !1 : $i(q, _, y);
|
|
18015
18039
|
}, t.addHook = function(I, h) {
|
|
18016
18040
|
typeof h == "function" && He(j, I) && Pn(j[I], h);
|
|
18017
18041
|
}, t.removeHook = function(I, h) {
|
|
@@ -18029,11 +18053,11 @@ function Gu() {
|
|
|
18029
18053
|
}, t;
|
|
18030
18054
|
}
|
|
18031
18055
|
var Cr = Gu();
|
|
18032
|
-
const Yu =
|
|
18056
|
+
const Yu = Ve(
|
|
18033
18057
|
({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
18034
18058
|
"textarea",
|
|
18035
18059
|
{
|
|
18036
|
-
className:
|
|
18060
|
+
className: ee(
|
|
18037
18061
|
"eloq:flex eloq:min-h-[80px] eloq:w-full eloq:rounded-md eloq:border eloq:border-input eloq:bg-background eloq:px-3 eloq:py-2 eloq:text-base eloq:ring-offset-background eloq:placeholder:text-muted-foreground eloq:focus-visible:outline-none eloq:focus-visible:ring-1 eloq:focus-visible:ring-offset-2 eloq:focus-visible:ring-muted eloq:disabled:cursor-not-allowed eloq:disabled:opacity-50 eloq:md:text-sm",
|
|
18038
18062
|
e
|
|
18039
18063
|
),
|
|
@@ -18047,7 +18071,7 @@ function Nw({
|
|
|
18047
18071
|
isDisabled: e,
|
|
18048
18072
|
onFiles: t
|
|
18049
18073
|
}) {
|
|
18050
|
-
const n =
|
|
18074
|
+
const n = je(null);
|
|
18051
18075
|
return /* @__PURE__ */ Z(zt, { children: [
|
|
18052
18076
|
/* @__PURE__ */ x(
|
|
18053
18077
|
"input",
|
|
@@ -18152,13 +18176,13 @@ function Pw(e) {
|
|
|
18152
18176
|
};
|
|
18153
18177
|
}
|
|
18154
18178
|
function Dw(e) {
|
|
18155
|
-
const t =
|
|
18179
|
+
const t = je(e);
|
|
18156
18180
|
return vt(() => {
|
|
18157
18181
|
t.current = e;
|
|
18158
18182
|
}), t;
|
|
18159
18183
|
}
|
|
18160
18184
|
function Mw(e) {
|
|
18161
|
-
const [t, n] = Ae(!1), r = Dw(e), o =
|
|
18185
|
+
const [t, n] = Ae(!1), r = Dw(e), o = je(null), l = wa(
|
|
18162
18186
|
(i) => {
|
|
18163
18187
|
if (o.current?.abort(), o.current = null, !i) return;
|
|
18164
18188
|
const a = new AbortController();
|
|
@@ -18256,7 +18280,7 @@ function Hw(e) {
|
|
|
18256
18280
|
return { strong: ma(l), soft: ma(i) };
|
|
18257
18281
|
}
|
|
18258
18282
|
function jw() {
|
|
18259
|
-
const e =
|
|
18283
|
+
const e = je(!1), t = je(0), n = je(0);
|
|
18260
18284
|
return {
|
|
18261
18285
|
onMouseDown: (a) => {
|
|
18262
18286
|
e.current = !0;
|
|
@@ -18297,7 +18321,7 @@ function Ww(e) {
|
|
|
18297
18321
|
}, [e]), t;
|
|
18298
18322
|
}
|
|
18299
18323
|
function Gw() {
|
|
18300
|
-
const [e, t] = Ae(!1), n =
|
|
18324
|
+
const [e, t] = Ae(!1), n = je(null);
|
|
18301
18325
|
return { scrollContainerRef: (o) => {
|
|
18302
18326
|
if (n.current?.disconnect(), n.current = null, !o) return;
|
|
18303
18327
|
const l = () => {
|
|
@@ -18326,7 +18350,7 @@ function Yw({ onSelect: e }) {
|
|
|
18326
18350
|
"button",
|
|
18327
18351
|
{
|
|
18328
18352
|
onClick: () => e(k),
|
|
18329
|
-
className:
|
|
18353
|
+
className: ee(
|
|
18330
18354
|
// Pointer on the pill itself (it's a click target). The closed hand
|
|
18331
18355
|
// while held only appears when the row overflows — that's when
|
|
18332
18356
|
// dragging can actually shift it.
|
|
@@ -18347,7 +18371,7 @@ function Yw({ onSelect: e }) {
|
|
|
18347
18371
|
/* @__PURE__ */ x(
|
|
18348
18372
|
"span",
|
|
18349
18373
|
{
|
|
18350
|
-
className:
|
|
18374
|
+
className: ee(
|
|
18351
18375
|
"eloq-aura-shine",
|
|
18352
18376
|
c && "eloq-aura-shine--active"
|
|
18353
18377
|
),
|
|
@@ -18363,7 +18387,7 @@ function Yw({ onSelect: e }) {
|
|
|
18363
18387
|
{
|
|
18364
18388
|
ref: o,
|
|
18365
18389
|
"data-testid": "suggested-messages",
|
|
18366
|
-
className:
|
|
18390
|
+
className: ee(
|
|
18367
18391
|
"eloq:w-full eloq:px-4 eloq:pb-10 eloq:-mt-20 eloq:overflow-x-auto no-scrollbar eloq:z-10",
|
|
18368
18392
|
// Drag-to-scroll (and its grab cursor) only when the pills actually
|
|
18369
18393
|
// overflow the row; the hook also sets inline cursor styles on mouse
|
|
@@ -18479,7 +18503,7 @@ function ok() {
|
|
|
18479
18503
|
}, []), e && Cr.isSupported;
|
|
18480
18504
|
}
|
|
18481
18505
|
function ik() {
|
|
18482
|
-
const { error: e } = Jw(), t = !!e, n = nn(), r =
|
|
18506
|
+
const { error: e } = Jw(), t = !!e, n = nn(), r = je(null), [o, l] = Ae(""), i = ei(), a = !!n.messages?.some((O) => O.isRatingRequest), s = n.keyboardInset ?? 0, u = ok(), f = !!n.hasAttachments, c = t || a, d = Pw(
|
|
18483
18507
|
f && !c
|
|
18484
18508
|
), p = Mw(d.addFiles), g = !!o.trim() || d.attachmentFiles.length > 0, k = i.userBubbleTextColor || Ai(i.userBubbleColor), v = () => g && !c ? {
|
|
18485
18509
|
backgroundColor: i.userBubbleColor,
|
|
@@ -18510,7 +18534,7 @@ function ik() {
|
|
|
18510
18534
|
} catch (B) {
|
|
18511
18535
|
l(F), d.restoreFiles(C, B);
|
|
18512
18536
|
}
|
|
18513
|
-
},
|
|
18537
|
+
}, T = () => n.isChatClosed ? /* @__PURE__ */ x("div", { className: "eloq:w-full eloq:z-20 eloq:animate-slide-up-in", children: /* @__PURE__ */ Z(
|
|
18514
18538
|
"div",
|
|
18515
18539
|
{
|
|
18516
18540
|
className: ek,
|
|
@@ -18559,13 +18583,13 @@ function ik() {
|
|
|
18559
18583
|
className: "eloq:relative eloq:flex eloq:items-center eloq:w-full eloq:m-0",
|
|
18560
18584
|
onSubmit: E,
|
|
18561
18585
|
children: [
|
|
18562
|
-
/* @__PURE__ */ x("div", { className:
|
|
18586
|
+
/* @__PURE__ */ x("div", { className: ee("eloq:flex-1", Zw), children: /* @__PURE__ */ x(
|
|
18563
18587
|
Yu,
|
|
18564
18588
|
{
|
|
18565
18589
|
ref: r,
|
|
18566
18590
|
name: "message",
|
|
18567
18591
|
placeholder: "Type a message...",
|
|
18568
|
-
className:
|
|
18592
|
+
className: ee(
|
|
18569
18593
|
"eloq:flex-1 eloq:min-h-[48px] eloq:max-h-[132px] eloq:text-base eloq:sm:text-sm eloq:resize-none eloq:border-0 eloq:pl-4 eloq:pr-12 eloq:py-3.5 eloq-thin-scrollbar eloq:leading-5 eloq:bg-card eloq:rounded-3xl",
|
|
18570
18594
|
f && "eloq:pl-11"
|
|
18571
18595
|
),
|
|
@@ -18602,7 +18626,7 @@ function ik() {
|
|
|
18602
18626
|
{
|
|
18603
18627
|
type: "submit",
|
|
18604
18628
|
disabled: !g || c,
|
|
18605
|
-
className:
|
|
18629
|
+
className: ee(
|
|
18606
18630
|
"eloq:absolute eloq:top-0 eloq:bottom-2 eloq:right-2 eloq:self-end eloq:p-2 eloq:text-muted eloq:rounded-full eloq:transition-colors",
|
|
18607
18631
|
g && !t ? "eloq:text-primary-foreground" : rk
|
|
18608
18632
|
),
|
|
@@ -18627,11 +18651,11 @@ function ik() {
|
|
|
18627
18651
|
ref: f ? p.listenForFiles : void 0,
|
|
18628
18652
|
className: "eloq:flex eloq:flex-col eloq:bg-background eloq:p-0",
|
|
18629
18653
|
children: [
|
|
18630
|
-
|
|
18654
|
+
T(),
|
|
18631
18655
|
/* @__PURE__ */ Z(
|
|
18632
18656
|
"div",
|
|
18633
18657
|
{
|
|
18634
|
-
className:
|
|
18658
|
+
className: ee(
|
|
18635
18659
|
"eloq:w-full eloq:flex eloq:flex-col eloq:items-center eloq:justify-center eloq:space-x-2 eloq:px-0",
|
|
18636
18660
|
nk
|
|
18637
18661
|
),
|
|
@@ -18746,11 +18770,11 @@ At(tc, "useImageCount");
|
|
|
18746
18770
|
function pk(e) {
|
|
18747
18771
|
}
|
|
18748
18772
|
At(pk, "useUpdateImageCount");
|
|
18749
|
-
const nc =
|
|
18773
|
+
const nc = Ve(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
18750
18774
|
Ju,
|
|
18751
18775
|
{
|
|
18752
18776
|
ref: n,
|
|
18753
|
-
className:
|
|
18777
|
+
className: ee(
|
|
18754
18778
|
"eloq:relative eloq:flex eloq:h-10 eloq:w-10 eloq:shrink-0 eloq:overflow-hidden eloq:rounded-full",
|
|
18755
18779
|
e
|
|
18756
18780
|
),
|
|
@@ -18758,20 +18782,20 @@ const nc = je(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
18758
18782
|
}
|
|
18759
18783
|
));
|
|
18760
18784
|
nc.displayName = Ju.displayName;
|
|
18761
|
-
const dk =
|
|
18785
|
+
const dk = Ve(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
18762
18786
|
Qu,
|
|
18763
18787
|
{
|
|
18764
18788
|
ref: n,
|
|
18765
|
-
className:
|
|
18789
|
+
className: ee("eloq:aspect-square eloq:h-full eloq:w-full", e),
|
|
18766
18790
|
...t
|
|
18767
18791
|
}
|
|
18768
18792
|
));
|
|
18769
18793
|
dk.displayName = Qu.displayName;
|
|
18770
|
-
const hk =
|
|
18794
|
+
const hk = Ve(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
18771
18795
|
Zu,
|
|
18772
18796
|
{
|
|
18773
18797
|
ref: n,
|
|
18774
|
-
className:
|
|
18798
|
+
className: ee(
|
|
18775
18799
|
"eloq:flex eloq:h-full eloq:w-full eloq:items-center eloq:justify-center eloq:rounded-full eloq:bg-muted",
|
|
18776
18800
|
e
|
|
18777
18801
|
),
|
|
@@ -18785,7 +18809,7 @@ function gk({
|
|
|
18785
18809
|
onClose: t
|
|
18786
18810
|
}) {
|
|
18787
18811
|
const n = nn(), r = n.hasCleanChatButton ?? n.cleanChatButton ?? !0, o = n.hasCloseButton ?? n.closeButton ?? !0;
|
|
18788
|
-
return /* @__PURE__ */ Z(Jo, { className:
|
|
18812
|
+
return /* @__PURE__ */ Z(Jo, { className: ee(zu, mk), children: [
|
|
18789
18813
|
/* @__PURE__ */ Z("div", { className: Fu, children: [
|
|
18790
18814
|
/* @__PURE__ */ x(nc, { className: "eloq:h-10 eloq:w-10", children: /* @__PURE__ */ x(
|
|
18791
18815
|
Xo,
|
|
@@ -18822,7 +18846,7 @@ function _k(e) {
|
|
|
18822
18846
|
// rendered as page content (embedded playground, transcript previews),
|
|
18823
18847
|
// where a popup-style "rise from the corner" animation is wrong.
|
|
18824
18848
|
skipAnimation: !i
|
|
18825
|
-
}), u = () => /* @__PURE__ */ Z(Ko, { className:
|
|
18849
|
+
}), u = () => /* @__PURE__ */ Z(Ko, { className: ee(s, { "eloq:relative": a }), children: [
|
|
18826
18850
|
a && // Above the footer's z-20 layers (the ended-conversation panel, the
|
|
18827
18851
|
// composer) so it runs the full height; clicks pass through to them.
|
|
18828
18852
|
/* @__PURE__ */ x(
|
|
@@ -18845,7 +18869,7 @@ function _k(e) {
|
|
|
18845
18869
|
return /* @__PURE__ */ x(xf, { ...l, children: /* @__PURE__ */ x(Bp, { ...e, children: /* @__PURE__ */ x(
|
|
18846
18870
|
"main",
|
|
18847
18871
|
{
|
|
18848
|
-
className:
|
|
18872
|
+
className: ee(
|
|
18849
18873
|
"eloquent-chat eloq:w-full eloq:h-full eloq:flex eloq:flex-col eloq:justify-end eloq:items-end eloq:overflow-hidden",
|
|
18850
18874
|
{
|
|
18851
18875
|
dark: l?.mode === "dark"
|
|
@@ -18859,7 +18883,7 @@ function mt({ className: e, ...t }) {
|
|
|
18859
18883
|
return /* @__PURE__ */ x(
|
|
18860
18884
|
"div",
|
|
18861
18885
|
{
|
|
18862
|
-
className:
|
|
18886
|
+
className: ee(
|
|
18863
18887
|
"eloq:animate-pulse eloq:rounded-md eloq:bg-muted",
|
|
18864
18888
|
e
|
|
18865
18889
|
),
|
|
@@ -18892,7 +18916,7 @@ function Ik({
|
|
|
18892
18916
|
/* @__PURE__ */ x(
|
|
18893
18917
|
Jo,
|
|
18894
18918
|
{
|
|
18895
|
-
className:
|
|
18919
|
+
className: ee(zu, "eloq:mb-4 eloq:shadow-sm"),
|
|
18896
18920
|
children: /* @__PURE__ */ Z("div", { className: Fu, children: [
|
|
18897
18921
|
/* @__PURE__ */ x(mt, { className: "eloq:h-8 eloq:w-8" }),
|
|
18898
18922
|
/* @__PURE__ */ x(mt, { className: "eloq:h-6 eloq:w-32" })
|
|
@@ -18930,7 +18954,7 @@ export {
|
|
|
18930
18954
|
Ba as X,
|
|
18931
18955
|
Bp as a,
|
|
18932
18956
|
Yx as b,
|
|
18933
|
-
|
|
18957
|
+
ee as c,
|
|
18934
18958
|
Dw as d,
|
|
18935
18959
|
Jw as e,
|
|
18936
18960
|
Xw as f,
|
|
@@ -18950,4 +18974,4 @@ export {
|
|
|
18950
18974
|
ei as u,
|
|
18951
18975
|
Ox as w
|
|
18952
18976
|
};
|
|
18953
|
-
//# sourceMappingURL=skeleton-
|
|
18977
|
+
//# sourceMappingURL=skeleton-BGsnxX4m.js.map
|