@feedmepos/mf-remy-panel 0.18.0-dev.3 → 0.18.0-dev.4
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,7 +1,7 @@
|
|
|
1
1
|
var Nf = Object.defineProperty;
|
|
2
2
|
var Vf = (t, e, n) => e in t ? Nf(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var me = (t, e, n) => (Vf(t, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { shallowRef as Ss, watch as je, toValue as Sf, computed as oe, triggerRef as bo, ref as K, watchEffect as Cf, onMounted as Rt, onUnmounted as On, defineComponent as Te, openBlock as E, createElementBlock as R, createElementVNode as p, toDisplayString as T, createCommentVNode as G, Fragment as ie, renderList as ge, withModifiers as yt, renderSlot as ui, h as Fn, createBlock as
|
|
4
|
+
import { shallowRef as Ss, watch as je, toValue as Sf, computed as oe, triggerRef as bo, ref as K, watchEffect as Cf, onMounted as Rt, onUnmounted as On, defineComponent as Te, openBlock as E, createElementBlock as R, createElementVNode as p, toDisplayString as T, createCommentVNode as G, Fragment as ie, renderList as ge, withModifiers as yt, renderSlot as ui, h as Fn, createBlock as Je, resolveDynamicComponent as Ga, unref as Ae, createTextVNode as De, version as Uf, toRaw as Jo, nextTick as en, isProxy as pu, normalizeStyle as jt, normalizeClass as be, createStaticVNode as wa, withCtx as Tt, reactive as hi, createVNode as qe, withDirectives as vt, vModelText as Wt, Teleport as fu, vShow as Tf, onBeforeUnmount as mu, vModelRadio as vo, vModelCheckbox as Zf, withKeys as _f, vModelSelect as Ff, Transition as cs, resolveComponent as Qf, defineAsyncComponent as gu } from "vue";
|
|
5
5
|
import { defineStore as xr } from "pinia";
|
|
6
6
|
import { useCoreStore as sn, useI18n as Mr } from "@feedmepos/mf-common";
|
|
7
7
|
import { useRouter as Au, createRouter as Wf, createWebHistory as Bf } from "vue-router";
|
|
@@ -183,7 +183,7 @@ function Of(t, e) {
|
|
|
183
183
|
return Math.abs(n - s) < i ? 0 : n - s;
|
|
184
184
|
}
|
|
185
185
|
const Zl = /* @__PURE__ */ Symbol("evaluating");
|
|
186
|
-
function
|
|
186
|
+
function Pe(t, e, n) {
|
|
187
187
|
let s;
|
|
188
188
|
Object.defineProperty(t, e, {
|
|
189
189
|
get() {
|
|
@@ -931,7 +931,7 @@ const sg = {
|
|
|
931
931
|
return a(c, s, l);
|
|
932
932
|
};
|
|
933
933
|
}
|
|
934
|
-
|
|
934
|
+
Pe(t, "~standard", () => ({
|
|
935
935
|
validate: (a) => {
|
|
936
936
|
var o;
|
|
937
937
|
try {
|
|
@@ -1310,7 +1310,7 @@ const _g = /* @__PURE__ */ ne("$ZodObject", (t, e) => {
|
|
|
1310
1310
|
});
|
|
1311
1311
|
}
|
|
1312
1312
|
const s = Pa(() => ju(e));
|
|
1313
|
-
|
|
1313
|
+
Pe(t._zod, "propValues", () => {
|
|
1314
1314
|
const r = e.shape, l = {};
|
|
1315
1315
|
for (const c in r) {
|
|
1316
1316
|
const d = r[c]._zod;
|
|
@@ -1450,10 +1450,10 @@ function Wl(t, e, n, s) {
|
|
|
1450
1450
|
}), e);
|
|
1451
1451
|
}
|
|
1452
1452
|
const Ou = /* @__PURE__ */ ne("$ZodUnion", (t, e) => {
|
|
1453
|
-
ut.init(t, e),
|
|
1453
|
+
ut.init(t, e), Pe(t._zod, "optin", () => e.options.some((s) => s._zod.optin === "optional") ? "optional" : void 0), Pe(t._zod, "optout", () => e.options.some((s) => s._zod.optout === "optional") ? "optional" : void 0), Pe(t._zod, "values", () => {
|
|
1454
1454
|
if (e.options.every((s) => s._zod.values))
|
|
1455
1455
|
return new Set(e.options.flatMap((s) => Array.from(s._zod.values)));
|
|
1456
|
-
}),
|
|
1456
|
+
}), Pe(t._zod, "pattern", () => {
|
|
1457
1457
|
if (e.options.every((s) => s._zod.pattern)) {
|
|
1458
1458
|
const s = e.options.map((i) => i._zod.pattern);
|
|
1459
1459
|
return new RegExp(`^(${s.map((i) => Vr(i.source)).join("|")})$`);
|
|
@@ -1483,7 +1483,7 @@ const Ou = /* @__PURE__ */ ne("$ZodUnion", (t, e) => {
|
|
|
1483
1483
|
}), Qg = /* @__PURE__ */ ne("$ZodDiscriminatedUnion", (t, e) => {
|
|
1484
1484
|
e.inclusive = !1, Ou.init(t, e);
|
|
1485
1485
|
const n = t._zod.parse;
|
|
1486
|
-
|
|
1486
|
+
Pe(t._zod, "propValues", () => {
|
|
1487
1487
|
const i = {};
|
|
1488
1488
|
for (const a of e.options) {
|
|
1489
1489
|
const o = a._zod.propValues;
|
|
@@ -1717,7 +1717,7 @@ function zl(t, e) {
|
|
|
1717
1717
|
return e === void 0 && (t.issues.length || t.fallback) ? { issues: [], value: void 0 } : t;
|
|
1718
1718
|
}
|
|
1719
1719
|
const Ju = /* @__PURE__ */ ne("$ZodOptional", (t, e) => {
|
|
1720
|
-
ut.init(t, e), t._zod.optin = "optional", t._zod.optout = "optional",
|
|
1720
|
+
ut.init(t, e), t._zod.optin = "optional", t._zod.optout = "optional", Pe(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, void 0]) : void 0), Pe(t._zod, "pattern", () => {
|
|
1721
1721
|
const n = e.innerType._zod.pattern;
|
|
1722
1722
|
return n ? new RegExp(`^(${Vr(n.source)})?$`) : void 0;
|
|
1723
1723
|
}), t._zod.parse = (n, s) => {
|
|
@@ -1728,14 +1728,14 @@ const Ju = /* @__PURE__ */ ne("$ZodOptional", (t, e) => {
|
|
|
1728
1728
|
return n.value === void 0 ? n : e.innerType._zod.run(n, s);
|
|
1729
1729
|
};
|
|
1730
1730
|
}), jg = /* @__PURE__ */ ne("$ZodExactOptional", (t, e) => {
|
|
1731
|
-
Ju.init(t, e),
|
|
1731
|
+
Ju.init(t, e), Pe(t._zod, "values", () => e.innerType._zod.values), Pe(t._zod, "pattern", () => e.innerType._zod.pattern), t._zod.parse = (n, s) => e.innerType._zod.run(n, s);
|
|
1732
1732
|
}), Yg = /* @__PURE__ */ ne("$ZodNullable", (t, e) => {
|
|
1733
|
-
ut.init(t, e),
|
|
1733
|
+
ut.init(t, e), Pe(t._zod, "optin", () => e.innerType._zod.optin), Pe(t._zod, "optout", () => e.innerType._zod.optout), Pe(t._zod, "pattern", () => {
|
|
1734
1734
|
const n = e.innerType._zod.pattern;
|
|
1735
1735
|
return n ? new RegExp(`^(${Vr(n.source)}|null)$`) : void 0;
|
|
1736
|
-
}),
|
|
1736
|
+
}), Pe(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, null]) : void 0), t._zod.parse = (n, s) => n.value === null ? n : e.innerType._zod.run(n, s);
|
|
1737
1737
|
}), Og = /* @__PURE__ */ ne("$ZodDefault", (t, e) => {
|
|
1738
|
-
ut.init(t, e), t._zod.optin = "optional",
|
|
1738
|
+
ut.init(t, e), t._zod.optin = "optional", Pe(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (n, s) => {
|
|
1739
1739
|
if (s.direction === "backward")
|
|
1740
1740
|
return e.innerType._zod.run(n, s);
|
|
1741
1741
|
if (n.value === void 0)
|
|
@@ -1748,9 +1748,9 @@ function Ll(t, e) {
|
|
|
1748
1748
|
return t.value === void 0 && (t.value = e.defaultValue), t;
|
|
1749
1749
|
}
|
|
1750
1750
|
const Jg = /* @__PURE__ */ ne("$ZodPrefault", (t, e) => {
|
|
1751
|
-
ut.init(t, e), t._zod.optin = "optional",
|
|
1751
|
+
ut.init(t, e), t._zod.optin = "optional", Pe(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (n, s) => (s.direction === "backward" || n.value === void 0 && (n.value = e.defaultValue), e.innerType._zod.run(n, s));
|
|
1752
1752
|
}), Gg = /* @__PURE__ */ ne("$ZodNonOptional", (t, e) => {
|
|
1753
|
-
ut.init(t, e),
|
|
1753
|
+
ut.init(t, e), Pe(t._zod, "values", () => {
|
|
1754
1754
|
const n = e.innerType._zod.values;
|
|
1755
1755
|
return n ? new Set([...n].filter((s) => s !== void 0)) : void 0;
|
|
1756
1756
|
}), t._zod.parse = (n, s) => {
|
|
@@ -1767,7 +1767,7 @@ function Dl(t, e) {
|
|
|
1767
1767
|
}), t;
|
|
1768
1768
|
}
|
|
1769
1769
|
const Pg = /* @__PURE__ */ ne("$ZodCatch", (t, e) => {
|
|
1770
|
-
ut.init(t, e), t._zod.optin = "optional",
|
|
1770
|
+
ut.init(t, e), t._zod.optin = "optional", Pe(t._zod, "optout", () => e.innerType._zod.optout), Pe(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (n, s) => {
|
|
1771
1771
|
if (s.direction === "backward")
|
|
1772
1772
|
return e.innerType._zod.run(n, s);
|
|
1773
1773
|
const i = e.innerType._zod.run(n, s);
|
|
@@ -1786,7 +1786,7 @@ const Pg = /* @__PURE__ */ ne("$ZodCatch", (t, e) => {
|
|
|
1786
1786
|
}), n.issues = [], n.fallback = !0), n);
|
|
1787
1787
|
};
|
|
1788
1788
|
}), Hg = /* @__PURE__ */ ne("$ZodPipe", (t, e) => {
|
|
1789
|
-
ut.init(t, e),
|
|
1789
|
+
ut.init(t, e), Pe(t._zod, "values", () => e.in._zod.values), Pe(t._zod, "optin", () => e.in._zod.optin), Pe(t._zod, "optout", () => e.out._zod.optout), Pe(t._zod, "propValues", () => e.in._zod.propValues), t._zod.parse = (n, s) => {
|
|
1790
1790
|
if (s.direction === "backward") {
|
|
1791
1791
|
const a = e.out._zod.run(n, s);
|
|
1792
1792
|
return a instanceof Promise ? a.then((o) => Yi(o, e.in, s)) : Yi(a, e.in, s);
|
|
@@ -1799,10 +1799,10 @@ function Yi(t, e, n) {
|
|
|
1799
1799
|
return t.issues.length ? (t.aborted = !0, t) : e._zod.run({ value: t.value, issues: t.issues, fallback: t.fallback }, n);
|
|
1800
1800
|
}
|
|
1801
1801
|
const Xg = /* @__PURE__ */ ne("$ZodReadonly", (t, e) => {
|
|
1802
|
-
ut.init(t, e),
|
|
1802
|
+
ut.init(t, e), Pe(t._zod, "propValues", () => e.innerType._zod.propValues), Pe(t._zod, "values", () => e.innerType._zod.values), Pe(t._zod, "optin", () => {
|
|
1803
1803
|
var n, s;
|
|
1804
1804
|
return (s = (n = e.innerType) == null ? void 0 : n._zod) == null ? void 0 : s.optin;
|
|
1805
|
-
}),
|
|
1805
|
+
}), Pe(t._zod, "optout", () => {
|
|
1806
1806
|
var n, s;
|
|
1807
1807
|
return (s = (n = e.innerType) == null ? void 0 : n._zod) == null ? void 0 : s.optout;
|
|
1808
1808
|
}), t._zod.parse = (n, s) => {
|
|
@@ -1816,19 +1816,19 @@ function jl(t) {
|
|
|
1816
1816
|
return t.value = Object.freeze(t.value), t;
|
|
1817
1817
|
}
|
|
1818
1818
|
const Kg = /* @__PURE__ */ ne("$ZodLazy", (t, e) => {
|
|
1819
|
-
ut.init(t, e),
|
|
1819
|
+
ut.init(t, e), Pe(t._zod, "innerType", () => {
|
|
1820
1820
|
const n = e;
|
|
1821
1821
|
return n._cachedInner || (n._cachedInner = e.getter()), n._cachedInner;
|
|
1822
|
-
}),
|
|
1822
|
+
}), Pe(t._zod, "pattern", () => {
|
|
1823
1823
|
var n, s;
|
|
1824
1824
|
return (s = (n = t._zod.innerType) == null ? void 0 : n._zod) == null ? void 0 : s.pattern;
|
|
1825
|
-
}),
|
|
1825
|
+
}), Pe(t._zod, "propValues", () => {
|
|
1826
1826
|
var n, s;
|
|
1827
1827
|
return (s = (n = t._zod.innerType) == null ? void 0 : n._zod) == null ? void 0 : s.propValues;
|
|
1828
|
-
}),
|
|
1828
|
+
}), Pe(t._zod, "optin", () => {
|
|
1829
1829
|
var n, s;
|
|
1830
1830
|
return ((s = (n = t._zod.innerType) == null ? void 0 : n._zod) == null ? void 0 : s.optin) ?? void 0;
|
|
1831
|
-
}),
|
|
1831
|
+
}), Pe(t._zod, "optout", () => {
|
|
1832
1832
|
var n, s;
|
|
1833
1833
|
return ((s = (n = t._zod.innerType) == null ? void 0 : n._zod) == null ? void 0 : s.optout) ?? void 0;
|
|
1834
1834
|
}), t._zod.parse = (n, s) => t._zod.innerType._zod.run(n, s);
|
|
@@ -3341,7 +3341,7 @@ function js(t, e) {
|
|
|
3341
3341
|
return /* @__PURE__ */ Y0(ab, t, e);
|
|
3342
3342
|
}
|
|
3343
3343
|
const Eh = /* @__PURE__ */ ne("ZodObject", (t, e) => {
|
|
3344
|
-
Fg.init(t, e), ht.init(t, e), t._zod.processJSONSchema = (n, s, i) => oh(t, n, s, i),
|
|
3344
|
+
Fg.init(t, e), ht.init(t, e), t._zod.processJSONSchema = (n, s, i) => oh(t, n, s, i), Pe(t, "shape", () => e.shape), Si(t, "ZodObject", {
|
|
3345
3345
|
keyof() {
|
|
3346
3346
|
return Rh(Object.keys(this._zod.def.shape));
|
|
3347
3347
|
},
|
|
@@ -3494,7 +3494,7 @@ const cb = /* @__PURE__ */ ne("ZodLiteral", (t, e) => {
|
|
|
3494
3494
|
}
|
|
3495
3495
|
});
|
|
3496
3496
|
});
|
|
3497
|
-
function
|
|
3497
|
+
function Ie(t, e) {
|
|
3498
3498
|
return new cb({
|
|
3499
3499
|
type: "literal",
|
|
3500
3500
|
values: Array.isArray(t) ? t : [t],
|
|
@@ -3973,7 +3973,7 @@ function zb(t, e) {
|
|
|
3973
3973
|
const a = {
|
|
3974
3974
|
type: "array"
|
|
3975
3975
|
};
|
|
3976
|
-
return (n = t.type) != null && n._def && ((i = (s = t.type) == null ? void 0 : s._def) == null ? void 0 : i.typeName) !== We.ZodAny && (a.items =
|
|
3976
|
+
return (n = t.type) != null && n._def && ((i = (s = t.type) == null ? void 0 : s._def) == null ? void 0 : i.typeName) !== We.ZodAny && (a.items = nt(t.type._def, {
|
|
3977
3977
|
...e,
|
|
3978
3978
|
currentPath: [...e.currentPath, "items"]
|
|
3979
3979
|
})), t.minLength && (a.minItems = t.minLength.value), t.maxLength && (a.maxItems = t.maxLength.value), t.exactLength && (a.minItems = t.exactLength.value, a.maxItems = t.exactLength.value), a;
|
|
@@ -4003,9 +4003,9 @@ function Db() {
|
|
|
4003
4003
|
return { type: "boolean" };
|
|
4004
4004
|
}
|
|
4005
4005
|
function Mh(t, e) {
|
|
4006
|
-
return
|
|
4006
|
+
return nt(t.type._def, e);
|
|
4007
4007
|
}
|
|
4008
|
-
var jb = (t, e) =>
|
|
4008
|
+
var jb = (t, e) => nt(t.innerType._def, e);
|
|
4009
4009
|
function Nh(t, e, n) {
|
|
4010
4010
|
const s = n ?? e.dateStrategy;
|
|
4011
4011
|
if (Array.isArray(s))
|
|
@@ -4046,12 +4046,12 @@ var Yb = (t) => {
|
|
|
4046
4046
|
};
|
|
4047
4047
|
function Ob(t, e) {
|
|
4048
4048
|
return {
|
|
4049
|
-
...
|
|
4049
|
+
...nt(t.innerType._def, e),
|
|
4050
4050
|
default: t.defaultValue()
|
|
4051
4051
|
};
|
|
4052
4052
|
}
|
|
4053
4053
|
function Jb(t, e) {
|
|
4054
|
-
return e.effectStrategy === "input" ?
|
|
4054
|
+
return e.effectStrategy === "input" ? nt(t.schema._def, e) : Pt();
|
|
4055
4055
|
}
|
|
4056
4056
|
function Gb(t) {
|
|
4057
4057
|
return {
|
|
@@ -4062,11 +4062,11 @@ function Gb(t) {
|
|
|
4062
4062
|
var Pb = (t) => "type" in t && t.type === "string" ? !1 : "allOf" in t;
|
|
4063
4063
|
function Hb(t, e) {
|
|
4064
4064
|
const n = [
|
|
4065
|
-
|
|
4065
|
+
nt(t.left._def, {
|
|
4066
4066
|
...e,
|
|
4067
4067
|
currentPath: [...e.currentPath, "allOf", "0"]
|
|
4068
4068
|
}),
|
|
4069
|
-
|
|
4069
|
+
nt(t.right._def, {
|
|
4070
4070
|
...e,
|
|
4071
4071
|
currentPath: [...e.currentPath, "allOf", "1"]
|
|
4072
4072
|
})
|
|
@@ -4355,7 +4355,7 @@ function Sh(t, e) {
|
|
|
4355
4355
|
var n, s, i, a, o, r;
|
|
4356
4356
|
const l = {
|
|
4357
4357
|
type: "object",
|
|
4358
|
-
additionalProperties: (n =
|
|
4358
|
+
additionalProperties: (n = nt(t.valueType._def, {
|
|
4359
4359
|
...e,
|
|
4360
4360
|
currentPath: [...e.currentPath, "additionalProperties"]
|
|
4361
4361
|
})) != null ? n : e.allowedAdditionalProperties
|
|
@@ -4390,10 +4390,10 @@ function Sh(t, e) {
|
|
|
4390
4390
|
function $b(t, e) {
|
|
4391
4391
|
if (e.mapStrategy === "record")
|
|
4392
4392
|
return Sh(t, e);
|
|
4393
|
-
const n =
|
|
4393
|
+
const n = nt(t.keyType._def, {
|
|
4394
4394
|
...e,
|
|
4395
4395
|
currentPath: [...e.currentPath, "items", "items", "0"]
|
|
4396
|
-
}) || Pt(), s =
|
|
4396
|
+
}) || Pt(), s = nt(t.valueType._def, {
|
|
4397
4397
|
...e,
|
|
4398
4398
|
currentPath: [...e.currentPath, "items", "items", "1"]
|
|
4399
4399
|
}) || Pt();
|
|
@@ -4492,7 +4492,7 @@ function s1(t, e) {
|
|
|
4492
4492
|
}
|
|
4493
4493
|
var i1 = (t, e) => {
|
|
4494
4494
|
const n = (t.options instanceof Map ? Array.from(t.options.values()) : t.options).map(
|
|
4495
|
-
(s, i) =>
|
|
4495
|
+
(s, i) => nt(s._def, {
|
|
4496
4496
|
...e,
|
|
4497
4497
|
currentPath: [...e.currentPath, "anyOf", `${i}`]
|
|
4498
4498
|
})
|
|
@@ -4511,7 +4511,7 @@ function a1(t, e) {
|
|
|
4511
4511
|
"null"
|
|
4512
4512
|
]
|
|
4513
4513
|
};
|
|
4514
|
-
const n =
|
|
4514
|
+
const n = nt(t.innerType._def, {
|
|
4515
4515
|
...e,
|
|
4516
4516
|
currentPath: [...e.currentPath, "anyOf", "0"]
|
|
4517
4517
|
});
|
|
@@ -4549,7 +4549,7 @@ function r1(t, e) {
|
|
|
4549
4549
|
let r = i[o];
|
|
4550
4550
|
if (r === void 0 || r._def === void 0)
|
|
4551
4551
|
continue;
|
|
4552
|
-
const l = c1(r), c =
|
|
4552
|
+
const l = c1(r), c = nt(r._def, {
|
|
4553
4553
|
...e,
|
|
4554
4554
|
currentPath: [...e.currentPath, "properties", o],
|
|
4555
4555
|
propertyPath: [...e.currentPath, "properties", o]
|
|
@@ -4562,7 +4562,7 @@ function r1(t, e) {
|
|
|
4562
4562
|
}
|
|
4563
4563
|
function l1(t, e) {
|
|
4564
4564
|
if (t.catchall._def.typeName !== "ZodNever")
|
|
4565
|
-
return
|
|
4565
|
+
return nt(t.catchall._def, {
|
|
4566
4566
|
...e,
|
|
4567
4567
|
currentPath: [...e.currentPath, "additionalProperties"]
|
|
4568
4568
|
});
|
|
@@ -4585,21 +4585,21 @@ function c1(t) {
|
|
|
4585
4585
|
var d1 = (t, e) => {
|
|
4586
4586
|
var n;
|
|
4587
4587
|
if (e.currentPath.toString() === ((n = e.propertyPath) == null ? void 0 : n.toString()))
|
|
4588
|
-
return
|
|
4589
|
-
const s =
|
|
4588
|
+
return nt(t.innerType._def, e);
|
|
4589
|
+
const s = nt(t.innerType._def, {
|
|
4590
4590
|
...e,
|
|
4591
4591
|
currentPath: [...e.currentPath, "anyOf", "1"]
|
|
4592
4592
|
});
|
|
4593
4593
|
return s ? { anyOf: [{ not: Pt() }, s] } : Pt();
|
|
4594
4594
|
}, u1 = (t, e) => {
|
|
4595
4595
|
if (e.pipeStrategy === "input")
|
|
4596
|
-
return
|
|
4596
|
+
return nt(t.in._def, e);
|
|
4597
4597
|
if (e.pipeStrategy === "output")
|
|
4598
|
-
return
|
|
4599
|
-
const n =
|
|
4598
|
+
return nt(t.out._def, e);
|
|
4599
|
+
const n = nt(t.in._def, {
|
|
4600
4600
|
...e,
|
|
4601
4601
|
currentPath: [...e.currentPath, "allOf", "0"]
|
|
4602
|
-
}), s =
|
|
4602
|
+
}), s = nt(t.out._def, {
|
|
4603
4603
|
...e,
|
|
4604
4604
|
currentPath: [...e.currentPath, "allOf", n ? "1" : "0"]
|
|
4605
4605
|
});
|
|
@@ -4610,13 +4610,13 @@ var d1 = (t, e) => {
|
|
|
4610
4610
|
};
|
|
4611
4611
|
};
|
|
4612
4612
|
function h1(t, e) {
|
|
4613
|
-
return
|
|
4613
|
+
return nt(t.type._def, e);
|
|
4614
4614
|
}
|
|
4615
4615
|
function p1(t, e) {
|
|
4616
4616
|
const s = {
|
|
4617
4617
|
type: "array",
|
|
4618
4618
|
uniqueItems: !0,
|
|
4619
|
-
items:
|
|
4619
|
+
items: nt(t.valueType._def, {
|
|
4620
4620
|
...e,
|
|
4621
4621
|
currentPath: [...e.currentPath, "items"]
|
|
4622
4622
|
})
|
|
@@ -4628,7 +4628,7 @@ function f1(t, e) {
|
|
|
4628
4628
|
type: "array",
|
|
4629
4629
|
minItems: t.items.length,
|
|
4630
4630
|
items: t.items.map(
|
|
4631
|
-
(n, s) =>
|
|
4631
|
+
(n, s) => nt(n._def, {
|
|
4632
4632
|
...e,
|
|
4633
4633
|
currentPath: [...e.currentPath, "items", `${s}`]
|
|
4634
4634
|
})
|
|
@@ -4636,7 +4636,7 @@ function f1(t, e) {
|
|
|
4636
4636
|
(n, s) => s === void 0 ? n : [...n, s],
|
|
4637
4637
|
[]
|
|
4638
4638
|
),
|
|
4639
|
-
additionalItems:
|
|
4639
|
+
additionalItems: nt(t.rest._def, {
|
|
4640
4640
|
...e,
|
|
4641
4641
|
currentPath: [...e.currentPath, "additionalItems"]
|
|
4642
4642
|
})
|
|
@@ -4645,7 +4645,7 @@ function f1(t, e) {
|
|
|
4645
4645
|
minItems: t.items.length,
|
|
4646
4646
|
maxItems: t.items.length,
|
|
4647
4647
|
items: t.items.map(
|
|
4648
|
-
(n, s) =>
|
|
4648
|
+
(n, s) => nt(n._def, {
|
|
4649
4649
|
...e,
|
|
4650
4650
|
currentPath: [...e.currentPath, "items", `${s}`]
|
|
4651
4651
|
})
|
|
@@ -4663,7 +4663,7 @@ function m1() {
|
|
|
4663
4663
|
function g1() {
|
|
4664
4664
|
return Pt();
|
|
4665
4665
|
}
|
|
4666
|
-
var A1 = (t, e) =>
|
|
4666
|
+
var A1 = (t, e) => nt(t.innerType._def, e), b1 = (t, e, n) => {
|
|
4667
4667
|
switch (e) {
|
|
4668
4668
|
case We.ZodString:
|
|
4669
4669
|
return Vh(t, n);
|
|
@@ -4743,7 +4743,7 @@ var A1 = (t, e) => st(t.innerType._def, e), b1 = (t, e, n) => {
|
|
|
4743
4743
|
;
|
|
4744
4744
|
return [(t.length - n).toString(), ...e.slice(n)].join("/");
|
|
4745
4745
|
};
|
|
4746
|
-
function
|
|
4746
|
+
function nt(t, e, n = !1) {
|
|
4747
4747
|
var s;
|
|
4748
4748
|
const i = e.seen.get(t);
|
|
4749
4749
|
if (e.override) {
|
|
@@ -4764,7 +4764,7 @@ function st(t, e, n = !1) {
|
|
|
4764
4764
|
}
|
|
4765
4765
|
const a = { def: t, path: e.currentPath, jsonSchema: void 0 };
|
|
4766
4766
|
e.seen.set(t, a);
|
|
4767
|
-
const o = b1(t, t.typeName, e), r = typeof o == "function" ?
|
|
4767
|
+
const o = b1(t, t.typeName, e), r = typeof o == "function" ? nt(o(), e) : o;
|
|
4768
4768
|
if (r && E1(t, e, r), e.postProcess) {
|
|
4769
4769
|
const l = e.postProcess(r, t, e);
|
|
4770
4770
|
return a.jsonSchema = r, l;
|
|
@@ -4811,7 +4811,7 @@ var y1 = (t, e) => {
|
|
|
4811
4811
|
var f;
|
|
4812
4812
|
return {
|
|
4813
4813
|
...c,
|
|
4814
|
-
[d]: (f =
|
|
4814
|
+
[d]: (f = nt(
|
|
4815
4815
|
u._def,
|
|
4816
4816
|
{
|
|
4817
4817
|
...s,
|
|
@@ -4823,7 +4823,7 @@ var y1 = (t, e) => {
|
|
|
4823
4823
|
},
|
|
4824
4824
|
{}
|
|
4825
4825
|
) : void 0;
|
|
4826
|
-
const a = typeof e == "string" ? e : (e == null ? void 0 : e.nameStrategy) === "title" || e == null ? void 0 : e.name, o = (n =
|
|
4826
|
+
const a = typeof e == "string" ? e : (e == null ? void 0 : e.nameStrategy) === "title" || e == null ? void 0 : e.name, o = (n = nt(
|
|
4827
4827
|
t._def,
|
|
4828
4828
|
a === void 0 ? s : {
|
|
4829
4829
|
...s,
|
|
@@ -5086,11 +5086,11 @@ var gs = xb(
|
|
|
5086
5086
|
fs(ArrayBuffer),
|
|
5087
5087
|
xh(Tb, { message: "Must be a Buffer" })
|
|
5088
5088
|
]), Br = pn(pe(), pe()), Bh = Ye({
|
|
5089
|
-
type:
|
|
5089
|
+
type: Ie("text"),
|
|
5090
5090
|
text: pe(),
|
|
5091
5091
|
providerOptions: _e.optional()
|
|
5092
5092
|
}), Q1 = Ye({
|
|
5093
|
-
type:
|
|
5093
|
+
type: Ie("image"),
|
|
5094
5094
|
image: Zt([
|
|
5095
5095
|
Ci,
|
|
5096
5096
|
fs(URL),
|
|
@@ -5099,18 +5099,18 @@ var gs = xb(
|
|
|
5099
5099
|
mediaType: pe().optional(),
|
|
5100
5100
|
providerOptions: _e.optional()
|
|
5101
5101
|
}), zh = _r("type", [
|
|
5102
|
-
Ye({ type:
|
|
5103
|
-
Ye({ type:
|
|
5102
|
+
Ye({ type: Ie("data"), data: Ci }),
|
|
5103
|
+
Ye({ type: Ie("url"), url: fs(URL) }),
|
|
5104
5104
|
Ye({
|
|
5105
|
-
type:
|
|
5105
|
+
type: Ie("reference"),
|
|
5106
5106
|
reference: Br
|
|
5107
5107
|
}),
|
|
5108
|
-
Ye({ type:
|
|
5108
|
+
Ye({ type: Ie("text"), text: pe() })
|
|
5109
5109
|
]), W1 = _r("type", [
|
|
5110
|
-
Ye({ type:
|
|
5111
|
-
Ye({ type:
|
|
5110
|
+
Ye({ type: Ie("data"), data: Ci }),
|
|
5111
|
+
Ye({ type: Ie("url"), url: fs(URL) })
|
|
5112
5112
|
]), Lh = Ye({
|
|
5113
|
-
type:
|
|
5113
|
+
type: Ie("file"),
|
|
5114
5114
|
data: Zt([
|
|
5115
5115
|
zh,
|
|
5116
5116
|
Ci,
|
|
@@ -5121,15 +5121,15 @@ var gs = xb(
|
|
|
5121
5121
|
mediaType: pe(),
|
|
5122
5122
|
providerOptions: _e.optional()
|
|
5123
5123
|
}), B1 = Ye({
|
|
5124
|
-
type:
|
|
5124
|
+
type: Ie("reasoning"),
|
|
5125
5125
|
text: pe(),
|
|
5126
5126
|
providerOptions: _e.optional()
|
|
5127
5127
|
}), z1 = Ye({
|
|
5128
|
-
type:
|
|
5128
|
+
type: Ie("custom"),
|
|
5129
5129
|
kind: pe().transform((t) => t),
|
|
5130
5130
|
providerOptions: _e.optional()
|
|
5131
5131
|
}), L1 = Ye({
|
|
5132
|
-
type:
|
|
5132
|
+
type: Ie("reasoning-file"),
|
|
5133
5133
|
data: Zt([
|
|
5134
5134
|
W1,
|
|
5135
5135
|
Ci,
|
|
@@ -5138,7 +5138,7 @@ var gs = xb(
|
|
|
5138
5138
|
mediaType: pe(),
|
|
5139
5139
|
providerOptions: _e.optional()
|
|
5140
5140
|
}), D1 = Ye({
|
|
5141
|
-
type:
|
|
5141
|
+
type: Ie("tool-call"),
|
|
5142
5142
|
toolCallId: pe(),
|
|
5143
5143
|
toolName: pe(),
|
|
5144
5144
|
input: dn(),
|
|
@@ -5148,41 +5148,41 @@ var gs = xb(
|
|
|
5148
5148
|
"type",
|
|
5149
5149
|
[
|
|
5150
5150
|
Ye({
|
|
5151
|
-
type:
|
|
5151
|
+
type: Ie("text"),
|
|
5152
5152
|
value: pe(),
|
|
5153
5153
|
providerOptions: _e.optional()
|
|
5154
5154
|
}),
|
|
5155
5155
|
Ye({
|
|
5156
|
-
type:
|
|
5156
|
+
type: Ie("json"),
|
|
5157
5157
|
value: gs,
|
|
5158
5158
|
providerOptions: _e.optional()
|
|
5159
5159
|
}),
|
|
5160
5160
|
Ye({
|
|
5161
|
-
type:
|
|
5161
|
+
type: Ie("execution-denied"),
|
|
5162
5162
|
reason: pe().optional(),
|
|
5163
5163
|
providerOptions: _e.optional()
|
|
5164
5164
|
}),
|
|
5165
5165
|
Ye({
|
|
5166
|
-
type:
|
|
5166
|
+
type: Ie("error-text"),
|
|
5167
5167
|
value: pe(),
|
|
5168
5168
|
providerOptions: _e.optional()
|
|
5169
5169
|
}),
|
|
5170
5170
|
Ye({
|
|
5171
|
-
type:
|
|
5171
|
+
type: Ie("error-json"),
|
|
5172
5172
|
value: gs,
|
|
5173
5173
|
providerOptions: _e.optional()
|
|
5174
5174
|
}),
|
|
5175
5175
|
Ye({
|
|
5176
|
-
type:
|
|
5176
|
+
type: Ie("content"),
|
|
5177
5177
|
value: js(
|
|
5178
5178
|
Zt([
|
|
5179
5179
|
Ye({
|
|
5180
|
-
type:
|
|
5180
|
+
type: Ie("text"),
|
|
5181
5181
|
text: pe(),
|
|
5182
5182
|
providerOptions: _e.optional()
|
|
5183
5183
|
}),
|
|
5184
5184
|
Ye({
|
|
5185
|
-
type:
|
|
5185
|
+
type: Ie("file"),
|
|
5186
5186
|
data: zh,
|
|
5187
5187
|
mediaType: pe(),
|
|
5188
5188
|
filename: pe().optional(),
|
|
@@ -5190,7 +5190,7 @@ var gs = xb(
|
|
|
5190
5190
|
}),
|
|
5191
5191
|
Ye({
|
|
5192
5192
|
// Deprecated.
|
|
5193
|
-
type:
|
|
5193
|
+
type: Ie("file-data"),
|
|
5194
5194
|
data: pe(),
|
|
5195
5195
|
mediaType: pe(),
|
|
5196
5196
|
filename: pe().optional(),
|
|
@@ -5198,50 +5198,50 @@ var gs = xb(
|
|
|
5198
5198
|
}),
|
|
5199
5199
|
Ye({
|
|
5200
5200
|
// Deprecated.
|
|
5201
|
-
type:
|
|
5201
|
+
type: Ie("file-url"),
|
|
5202
5202
|
url: pe(),
|
|
5203
5203
|
mediaType: pe().optional(),
|
|
5204
5204
|
providerOptions: _e.optional()
|
|
5205
5205
|
}),
|
|
5206
5206
|
Ye({
|
|
5207
5207
|
// Deprecated.
|
|
5208
|
-
type:
|
|
5208
|
+
type: Ie("file-id"),
|
|
5209
5209
|
fileId: Zt([pe(), pn(pe(), pe())]),
|
|
5210
5210
|
providerOptions: _e.optional()
|
|
5211
5211
|
}),
|
|
5212
5212
|
Ye({
|
|
5213
5213
|
// Deprecated.
|
|
5214
|
-
type:
|
|
5214
|
+
type: Ie("file-reference"),
|
|
5215
5215
|
providerReference: pn(pe(), pe()),
|
|
5216
5216
|
providerOptions: _e.optional()
|
|
5217
5217
|
}),
|
|
5218
5218
|
Ye({
|
|
5219
5219
|
// Deprecated.
|
|
5220
|
-
type:
|
|
5220
|
+
type: Ie("image-data"),
|
|
5221
5221
|
data: pe(),
|
|
5222
5222
|
mediaType: pe(),
|
|
5223
5223
|
providerOptions: _e.optional()
|
|
5224
5224
|
}),
|
|
5225
5225
|
Ye({
|
|
5226
5226
|
// Deprecated.
|
|
5227
|
-
type:
|
|
5227
|
+
type: Ie("image-url"),
|
|
5228
5228
|
url: pe(),
|
|
5229
5229
|
providerOptions: _e.optional()
|
|
5230
5230
|
}),
|
|
5231
5231
|
Ye({
|
|
5232
5232
|
// Deprecated.
|
|
5233
|
-
type:
|
|
5233
|
+
type: Ie("image-file-id"),
|
|
5234
5234
|
fileId: Zt([pe(), pn(pe(), pe())]),
|
|
5235
5235
|
providerOptions: _e.optional()
|
|
5236
5236
|
}),
|
|
5237
5237
|
Ye({
|
|
5238
5238
|
// Deprecated.
|
|
5239
|
-
type:
|
|
5239
|
+
type: Ie("image-file-reference"),
|
|
5240
5240
|
providerReference: pn(pe(), pe()),
|
|
5241
5241
|
providerOptions: _e.optional()
|
|
5242
5242
|
}),
|
|
5243
5243
|
Ye({
|
|
5244
|
-
type:
|
|
5244
|
+
type: Ie("custom"),
|
|
5245
5245
|
providerOptions: _e.optional()
|
|
5246
5246
|
})
|
|
5247
5247
|
])
|
|
@@ -5249,35 +5249,35 @@ var gs = xb(
|
|
|
5249
5249
|
})
|
|
5250
5250
|
]
|
|
5251
5251
|
), Dh = Ye({
|
|
5252
|
-
type:
|
|
5252
|
+
type: Ie("tool-result"),
|
|
5253
5253
|
toolCallId: pe(),
|
|
5254
5254
|
toolName: pe(),
|
|
5255
5255
|
output: j1,
|
|
5256
5256
|
providerOptions: _e.optional()
|
|
5257
5257
|
}), Y1 = Ye({
|
|
5258
|
-
type:
|
|
5258
|
+
type: Ie("tool-approval-request"),
|
|
5259
5259
|
approvalId: pe(),
|
|
5260
5260
|
toolCallId: pe()
|
|
5261
5261
|
}), O1 = Ye({
|
|
5262
|
-
type:
|
|
5262
|
+
type: Ie("tool-approval-response"),
|
|
5263
5263
|
approvalId: pe(),
|
|
5264
5264
|
approved: Mt(),
|
|
5265
5265
|
reason: pe().optional()
|
|
5266
5266
|
}), J1 = Ye(
|
|
5267
5267
|
{
|
|
5268
|
-
role:
|
|
5268
|
+
role: Ie("system"),
|
|
5269
5269
|
content: pe(),
|
|
5270
5270
|
providerOptions: _e.optional()
|
|
5271
5271
|
}
|
|
5272
5272
|
), G1 = Ye({
|
|
5273
|
-
role:
|
|
5273
|
+
role: Ie("user"),
|
|
5274
5274
|
content: Zt([
|
|
5275
5275
|
pe(),
|
|
5276
5276
|
js(Zt([Bh, Q1, Lh]))
|
|
5277
5277
|
]),
|
|
5278
5278
|
providerOptions: _e.optional()
|
|
5279
5279
|
}), P1 = Ye({
|
|
5280
|
-
role:
|
|
5280
|
+
role: Ie("assistant"),
|
|
5281
5281
|
content: Zt([
|
|
5282
5282
|
pe(),
|
|
5283
5283
|
js(
|
|
@@ -5295,7 +5295,7 @@ var gs = xb(
|
|
|
5295
5295
|
]),
|
|
5296
5296
|
providerOptions: _e.optional()
|
|
5297
5297
|
}), H1 = Ye({
|
|
5298
|
-
role:
|
|
5298
|
+
role: Ie("tool"),
|
|
5299
5299
|
content: js(Zt([Dh, O1])),
|
|
5300
5300
|
providerOptions: _e.optional()
|
|
5301
5301
|
});
|
|
@@ -5882,27 +5882,27 @@ var Ps = pn(
|
|
|
5882
5882
|
() => Ch(
|
|
5883
5883
|
Zt([
|
|
5884
5884
|
at({
|
|
5885
|
-
type:
|
|
5885
|
+
type: Ie("text-start"),
|
|
5886
5886
|
id: pe(),
|
|
5887
5887
|
providerMetadata: _e.optional()
|
|
5888
5888
|
}),
|
|
5889
5889
|
at({
|
|
5890
|
-
type:
|
|
5890
|
+
type: Ie("text-delta"),
|
|
5891
5891
|
id: pe(),
|
|
5892
5892
|
delta: pe(),
|
|
5893
5893
|
providerMetadata: _e.optional()
|
|
5894
5894
|
}),
|
|
5895
5895
|
at({
|
|
5896
|
-
type:
|
|
5896
|
+
type: Ie("text-end"),
|
|
5897
5897
|
id: pe(),
|
|
5898
5898
|
providerMetadata: _e.optional()
|
|
5899
5899
|
}),
|
|
5900
5900
|
at({
|
|
5901
|
-
type:
|
|
5901
|
+
type: Ie("error"),
|
|
5902
5902
|
errorText: pe()
|
|
5903
5903
|
}),
|
|
5904
5904
|
at({
|
|
5905
|
-
type:
|
|
5905
|
+
type: Ie("tool-input-start"),
|
|
5906
5906
|
toolCallId: pe(),
|
|
5907
5907
|
toolName: pe(),
|
|
5908
5908
|
providerExecuted: Mt().optional(),
|
|
@@ -5912,12 +5912,12 @@ var Ps = pn(
|
|
|
5912
5912
|
title: pe().optional()
|
|
5913
5913
|
}),
|
|
5914
5914
|
at({
|
|
5915
|
-
type:
|
|
5915
|
+
type: Ie("tool-input-delta"),
|
|
5916
5916
|
toolCallId: pe(),
|
|
5917
5917
|
inputTextDelta: pe()
|
|
5918
5918
|
}),
|
|
5919
5919
|
at({
|
|
5920
|
-
type:
|
|
5920
|
+
type: Ie("tool-input-available"),
|
|
5921
5921
|
toolCallId: pe(),
|
|
5922
5922
|
toolName: pe(),
|
|
5923
5923
|
input: dn(),
|
|
@@ -5928,7 +5928,7 @@ var Ps = pn(
|
|
|
5928
5928
|
title: pe().optional()
|
|
5929
5929
|
}),
|
|
5930
5930
|
at({
|
|
5931
|
-
type:
|
|
5931
|
+
type: Ie("tool-input-error"),
|
|
5932
5932
|
toolCallId: pe(),
|
|
5933
5933
|
toolName: pe(),
|
|
5934
5934
|
input: dn(),
|
|
@@ -5940,14 +5940,14 @@ var Ps = pn(
|
|
|
5940
5940
|
title: pe().optional()
|
|
5941
5941
|
}),
|
|
5942
5942
|
at({
|
|
5943
|
-
type:
|
|
5943
|
+
type: Ie("tool-approval-request"),
|
|
5944
5944
|
approvalId: pe(),
|
|
5945
5945
|
toolCallId: pe(),
|
|
5946
5946
|
isAutomatic: Mt().optional(),
|
|
5947
5947
|
signature: pe().optional()
|
|
5948
5948
|
}),
|
|
5949
5949
|
at({
|
|
5950
|
-
type:
|
|
5950
|
+
type: Ie("tool-approval-response"),
|
|
5951
5951
|
approvalId: pe(),
|
|
5952
5952
|
approved: Mt(),
|
|
5953
5953
|
reason: pe().optional(),
|
|
@@ -5955,7 +5955,7 @@ var Ps = pn(
|
|
|
5955
5955
|
providerMetadata: _e.optional()
|
|
5956
5956
|
}),
|
|
5957
5957
|
at({
|
|
5958
|
-
type:
|
|
5958
|
+
type: Ie("tool-output-available"),
|
|
5959
5959
|
toolCallId: pe(),
|
|
5960
5960
|
output: dn(),
|
|
5961
5961
|
providerExecuted: Mt().optional(),
|
|
@@ -5965,7 +5965,7 @@ var Ps = pn(
|
|
|
5965
5965
|
preliminary: Mt().optional()
|
|
5966
5966
|
}),
|
|
5967
5967
|
at({
|
|
5968
|
-
type:
|
|
5968
|
+
type: Ie("tool-output-error"),
|
|
5969
5969
|
toolCallId: pe(),
|
|
5970
5970
|
errorText: pe(),
|
|
5971
5971
|
providerExecuted: Mt().optional(),
|
|
@@ -5974,39 +5974,39 @@ var Ps = pn(
|
|
|
5974
5974
|
dynamic: Mt().optional()
|
|
5975
5975
|
}),
|
|
5976
5976
|
at({
|
|
5977
|
-
type:
|
|
5977
|
+
type: Ie("tool-output-denied"),
|
|
5978
5978
|
toolCallId: pe()
|
|
5979
5979
|
}),
|
|
5980
5980
|
at({
|
|
5981
|
-
type:
|
|
5981
|
+
type: Ie("reasoning-start"),
|
|
5982
5982
|
id: pe(),
|
|
5983
5983
|
providerMetadata: _e.optional()
|
|
5984
5984
|
}),
|
|
5985
5985
|
at({
|
|
5986
|
-
type:
|
|
5986
|
+
type: Ie("reasoning-delta"),
|
|
5987
5987
|
id: pe(),
|
|
5988
5988
|
delta: pe(),
|
|
5989
5989
|
providerMetadata: _e.optional()
|
|
5990
5990
|
}),
|
|
5991
5991
|
at({
|
|
5992
|
-
type:
|
|
5992
|
+
type: Ie("reasoning-end"),
|
|
5993
5993
|
id: pe(),
|
|
5994
5994
|
providerMetadata: _e.optional()
|
|
5995
5995
|
}),
|
|
5996
5996
|
at({
|
|
5997
|
-
type:
|
|
5997
|
+
type: Ie("custom"),
|
|
5998
5998
|
kind: pe().transform((t) => t),
|
|
5999
5999
|
providerMetadata: _e.optional()
|
|
6000
6000
|
}),
|
|
6001
6001
|
at({
|
|
6002
|
-
type:
|
|
6002
|
+
type: Ie("source-url"),
|
|
6003
6003
|
sourceId: pe(),
|
|
6004
6004
|
url: pe(),
|
|
6005
6005
|
title: pe().optional(),
|
|
6006
6006
|
providerMetadata: _e.optional()
|
|
6007
6007
|
}),
|
|
6008
6008
|
at({
|
|
6009
|
-
type:
|
|
6009
|
+
type: Ie("source-document"),
|
|
6010
6010
|
sourceId: pe(),
|
|
6011
6011
|
mediaType: pe(),
|
|
6012
6012
|
title: pe(),
|
|
@@ -6014,13 +6014,13 @@ var Ps = pn(
|
|
|
6014
6014
|
providerMetadata: _e.optional()
|
|
6015
6015
|
}),
|
|
6016
6016
|
at({
|
|
6017
|
-
type:
|
|
6017
|
+
type: Ie("file"),
|
|
6018
6018
|
url: pe(),
|
|
6019
6019
|
mediaType: pe(),
|
|
6020
6020
|
providerMetadata: _e.optional()
|
|
6021
6021
|
}),
|
|
6022
6022
|
at({
|
|
6023
|
-
type:
|
|
6023
|
+
type: Ie("reasoning-file"),
|
|
6024
6024
|
url: pe(),
|
|
6025
6025
|
mediaType: pe(),
|
|
6026
6026
|
providerMetadata: _e.optional()
|
|
@@ -6035,18 +6035,18 @@ var Ps = pn(
|
|
|
6035
6035
|
transient: Mt().optional()
|
|
6036
6036
|
}),
|
|
6037
6037
|
at({
|
|
6038
|
-
type:
|
|
6038
|
+
type: Ie("start-step")
|
|
6039
6039
|
}),
|
|
6040
6040
|
at({
|
|
6041
|
-
type:
|
|
6041
|
+
type: Ie("finish-step")
|
|
6042
6042
|
}),
|
|
6043
6043
|
at({
|
|
6044
|
-
type:
|
|
6044
|
+
type: Ie("start"),
|
|
6045
6045
|
messageId: pe().optional(),
|
|
6046
6046
|
messageMetadata: dn().optional()
|
|
6047
6047
|
}),
|
|
6048
6048
|
at({
|
|
6049
|
-
type:
|
|
6049
|
+
type: Ie("finish"),
|
|
6050
6050
|
finishReason: Rh([
|
|
6051
6051
|
"stop",
|
|
6052
6052
|
"length",
|
|
@@ -6058,11 +6058,11 @@ var Ps = pn(
|
|
|
6058
6058
|
messageMetadata: dn().optional()
|
|
6059
6059
|
}),
|
|
6060
6060
|
at({
|
|
6061
|
-
type:
|
|
6061
|
+
type: Ie("abort"),
|
|
6062
6062
|
reason: pe().optional()
|
|
6063
6063
|
}),
|
|
6064
6064
|
at({
|
|
6065
|
-
type:
|
|
6065
|
+
type: Ie("message-metadata"),
|
|
6066
6066
|
messageMetadata: dn()
|
|
6067
6067
|
})
|
|
6068
6068
|
])
|
|
@@ -8672,11 +8672,11 @@ const Jr = "1.16.1", Rc = 64 * 1024, { isFunction: Gi } = $, wc = (t, ...e) => {
|
|
|
8672
8672
|
duplex: "half"
|
|
8673
8673
|
}), Ze;
|
|
8674
8674
|
if ($.isFormData(w) && (Ze = ye.headers.get("content-type")) && O.setContentType(Ze), ye.body) {
|
|
8675
|
-
const [
|
|
8675
|
+
const [et, te] = vc(
|
|
8676
8676
|
j,
|
|
8677
8677
|
Ua(yc(Q))
|
|
8678
8678
|
);
|
|
8679
|
-
w = kc(ye.body, Rc,
|
|
8679
|
+
w = kc(ye.body, Rc, et, te);
|
|
8680
8680
|
}
|
|
8681
8681
|
}
|
|
8682
8682
|
$.isString(N) || (N = N ? "include" : "omit");
|
|
@@ -8707,13 +8707,13 @@ const Jr = "1.16.1", Rc = 64 * 1024, { isFunction: Gi } = $, wc = (t, ...e) => {
|
|
|
8707
8707
|
S
|
|
8708
8708
|
);
|
|
8709
8709
|
}
|
|
8710
|
-
const
|
|
8711
|
-
if (h && ae.body && (Z || L ||
|
|
8710
|
+
const ke = h && (F === "stream" || F === "response");
|
|
8711
|
+
if (h && ae.body && (Z || L || ke && W)) {
|
|
8712
8712
|
const ye = {};
|
|
8713
8713
|
["status", "statusText", "headers"].forEach((y) => {
|
|
8714
8714
|
ye[y] = ae[y];
|
|
8715
8715
|
});
|
|
8716
|
-
const Ze = $.toFiniteNumber(ae.headers.get("content-length")), [
|
|
8716
|
+
const Ze = $.toFiniteNumber(ae.headers.get("content-length")), [et, te] = Z && vc(
|
|
8717
8717
|
Ze,
|
|
8718
8718
|
Ua(yc(Z), !0)
|
|
8719
8719
|
) || [];
|
|
@@ -8726,7 +8726,7 @@ const Jr = "1.16.1", Rc = 64 * 1024, { isFunction: Gi } = $, wc = (t, ...e) => {
|
|
|
8726
8726
|
g,
|
|
8727
8727
|
S
|
|
8728
8728
|
);
|
|
8729
|
-
|
|
8729
|
+
et && et(y);
|
|
8730
8730
|
};
|
|
8731
8731
|
ae = new o(
|
|
8732
8732
|
kc(ae.body, Rc, Se, () => {
|
|
@@ -8736,13 +8736,13 @@ const Jr = "1.16.1", Rc = 64 * 1024, { isFunction: Gi } = $, wc = (t, ...e) => {
|
|
|
8736
8736
|
);
|
|
8737
8737
|
}
|
|
8738
8738
|
F = F || "text";
|
|
8739
|
-
let
|
|
8739
|
+
let Ne = await b[$.findKey(b, F) || "text"](
|
|
8740
8740
|
ae,
|
|
8741
8741
|
g
|
|
8742
8742
|
);
|
|
8743
|
-
if (L && !h && !
|
|
8743
|
+
if (L && !h && !ke) {
|
|
8744
8744
|
let ye;
|
|
8745
|
-
if (
|
|
8745
|
+
if (Ne != null && (typeof Ne.byteLength == "number" ? ye = Ne.byteLength : typeof Ne.size == "number" ? ye = Ne.size : typeof Ne == "string" && (ye = typeof s == "function" ? new s().encode(Ne).byteLength : Ne.length)), typeof ye == "number" && ye > x)
|
|
8746
8746
|
throw new Ue(
|
|
8747
8747
|
"maxContentLength size of " + x + " exceeded",
|
|
8748
8748
|
Ue.ERR_BAD_RESPONSE,
|
|
@@ -8750,9 +8750,9 @@ const Jr = "1.16.1", Rc = 64 * 1024, { isFunction: Gi } = $, wc = (t, ...e) => {
|
|
|
8750
8750
|
S
|
|
8751
8751
|
);
|
|
8752
8752
|
}
|
|
8753
|
-
return !
|
|
8753
|
+
return !ke && W && W(), await new Promise((ye, Ze) => {
|
|
8754
8754
|
ip(ye, Ze, {
|
|
8755
|
-
data:
|
|
8755
|
+
data: Ne,
|
|
8756
8756
|
headers: nn.from(ae.headers),
|
|
8757
8757
|
status: ae.status,
|
|
8758
8758
|
statusText: ae.statusText,
|
|
@@ -9293,9 +9293,9 @@ async function Nc(t, e) {
|
|
|
9293
9293
|
restaurantName: e == null ? void 0 : e.name
|
|
9294
9294
|
})).data;
|
|
9295
9295
|
}
|
|
9296
|
-
async function Vc(t, e
|
|
9296
|
+
async function Vc(t, e = 1, n = 20) {
|
|
9297
9297
|
return (await Le.get("/conversations", {
|
|
9298
|
-
params: { businessId: t,
|
|
9298
|
+
params: { businessId: t, page: e, limit: n }
|
|
9299
9299
|
})).data;
|
|
9300
9300
|
}
|
|
9301
9301
|
async function dE(t, e) {
|
|
@@ -9537,31 +9537,31 @@ function NE() {
|
|
|
9537
9537
|
return X ? {
|
|
9538
9538
|
transport: new jh({
|
|
9539
9539
|
api: `${X}/chat`,
|
|
9540
|
-
prepareSendMessagesRequest: ({ id: le, messages: de, trigger:
|
|
9541
|
-
var
|
|
9542
|
-
const
|
|
9543
|
-
if (!
|
|
9540
|
+
prepareSendMessagesRequest: ({ id: le, messages: de, trigger: xe, messageId: we, body: Fe }) => {
|
|
9541
|
+
var Ce, st;
|
|
9542
|
+
const Ee = N;
|
|
9543
|
+
if (!Ee || !se(Ee))
|
|
9544
9544
|
throw new Error("Chat context changed before the message was sent");
|
|
9545
|
-
const { context:
|
|
9545
|
+
const { context: Ve } = Ee;
|
|
9546
9546
|
return {
|
|
9547
9547
|
headers: {
|
|
9548
|
-
Authorization: `Bearer ${
|
|
9548
|
+
Authorization: `Bearer ${Ve.token}`
|
|
9549
9549
|
},
|
|
9550
9550
|
body: {
|
|
9551
9551
|
id: le,
|
|
9552
9552
|
messages: de.slice(-1),
|
|
9553
|
-
trigger:
|
|
9554
|
-
messageId:
|
|
9553
|
+
trigger: xe,
|
|
9554
|
+
messageId: we,
|
|
9555
9555
|
...Fe ?? {},
|
|
9556
|
-
conversationId:
|
|
9557
|
-
businessId:
|
|
9558
|
-
timezone:
|
|
9559
|
-
latitude:
|
|
9560
|
-
longitude:
|
|
9561
|
-
restaurantId: (
|
|
9562
|
-
restaurantName: (
|
|
9563
|
-
businessInfo:
|
|
9564
|
-
pageContext:
|
|
9556
|
+
conversationId: Ee.conversationId,
|
|
9557
|
+
businessId: Ve.businessId,
|
|
9558
|
+
timezone: Ve.timezone,
|
|
9559
|
+
latitude: Ve.latitude,
|
|
9560
|
+
longitude: Ve.longitude,
|
|
9561
|
+
restaurantId: (Ce = Ve.restaurant) == null ? void 0 : Ce.id,
|
|
9562
|
+
restaurantName: (st = Ve.restaurant) == null ? void 0 : st.name,
|
|
9563
|
+
businessInfo: Ve.businessInfo,
|
|
9564
|
+
pageContext: Ve.pageContext
|
|
9565
9565
|
}
|
|
9566
9566
|
};
|
|
9567
9567
|
}
|
|
@@ -9571,10 +9571,10 @@ function NE() {
|
|
|
9571
9571
|
const de = N;
|
|
9572
9572
|
if (!de || !se(de))
|
|
9573
9573
|
return;
|
|
9574
|
-
const
|
|
9575
|
-
|
|
9574
|
+
const xe = le instanceof Error ? le.message : String(le);
|
|
9575
|
+
xe.includes("402") || xe.toLowerCase().includes("insufficient tokens") || xe.toLowerCase().includes("payment required") ? Ne(
|
|
9576
9576
|
"You don't have enough tokens to continue. Please top up your balance."
|
|
9577
|
-
) :
|
|
9577
|
+
) : Ne("Something went wrong. Please try again.");
|
|
9578
9578
|
}
|
|
9579
9579
|
} : {};
|
|
9580
9580
|
}), z = oe(() => {
|
|
@@ -9586,12 +9586,12 @@ function NE() {
|
|
|
9586
9586
|
return X === Z && ((de = x.currentBusiness.value) == null ? void 0 : de.id) === le;
|
|
9587
9587
|
}
|
|
9588
9588
|
function W() {
|
|
9589
|
-
var
|
|
9590
|
-
const X = x.currentRestaurant.value, le = (
|
|
9589
|
+
var we;
|
|
9590
|
+
const X = x.currentRestaurant.value, le = (we = x.currentBusiness.value) == null ? void 0 : we.id;
|
|
9591
9591
|
if (X != null && X.businessId && X.businessId !== le)
|
|
9592
9592
|
return;
|
|
9593
|
-
const de = new URLSearchParams(window.location.search),
|
|
9594
|
-
return de.get("restaurantId"),
|
|
9593
|
+
const de = new URLSearchParams(window.location.search), xe = (X == null ? void 0 : X.id) ?? (X == null ? void 0 : X._id);
|
|
9594
|
+
return de.get("restaurantId"), xe;
|
|
9595
9595
|
}
|
|
9596
9596
|
function j(X, le) {
|
|
9597
9597
|
return X === Q && W() === le;
|
|
@@ -9612,8 +9612,8 @@ function NE() {
|
|
|
9612
9612
|
var X;
|
|
9613
9613
|
return (X = x.currentBusiness.value) == null ? void 0 : X.id;
|
|
9614
9614
|
}],
|
|
9615
|
-
([X, le], [de,
|
|
9616
|
-
X === de && le ===
|
|
9615
|
+
([X, le], [de, xe]) => {
|
|
9616
|
+
X === de && le === xe || (Z += 1, F += 1, O += 1, ce(!0), X && le && he());
|
|
9617
9617
|
}
|
|
9618
9618
|
), je(
|
|
9619
9619
|
() => W(),
|
|
@@ -9623,16 +9623,16 @@ function NE() {
|
|
|
9623
9623
|
}
|
|
9624
9624
|
);
|
|
9625
9625
|
function ae() {
|
|
9626
|
-
var
|
|
9627
|
-
const X = L.value, le = (
|
|
9628
|
-
(
|
|
9629
|
-
|
|
9626
|
+
var we, Fe;
|
|
9627
|
+
const X = L.value, le = (we = [...C.value].reverse().find((Ee) => Ee.role === "assistant")) == null ? void 0 : we.id, de = (Fe = C.value[C.value.length - 1]) == null ? void 0 : Fe.id, xe = C.value.map(
|
|
9628
|
+
(Ee) => te(
|
|
9629
|
+
Ee,
|
|
9630
9630
|
X,
|
|
9631
|
-
|
|
9632
|
-
|
|
9631
|
+
Ee.id === le,
|
|
9632
|
+
Ee.id === de
|
|
9633
9633
|
)
|
|
9634
9634
|
);
|
|
9635
|
-
a.value = [...
|
|
9635
|
+
a.value = [...xe, ...l.value];
|
|
9636
9636
|
}
|
|
9637
9637
|
Cf(() => {
|
|
9638
9638
|
C.value.length, L.value, ae();
|
|
@@ -9642,11 +9642,11 @@ function NE() {
|
|
|
9642
9642
|
de().loadTokenBalance();
|
|
9643
9643
|
}
|
|
9644
9644
|
});
|
|
9645
|
-
function
|
|
9645
|
+
function ke(X) {
|
|
9646
9646
|
const le = X.trim();
|
|
9647
9647
|
if (!le.startsWith("/"))
|
|
9648
9648
|
return { userContent: le };
|
|
9649
|
-
const [de, ...
|
|
9649
|
+
const [de, ...xe] = le.split(/\s+/), we = de.toLowerCase(), Fe = xe.join(" ").trim(), Ve = {
|
|
9650
9650
|
"/suggestprice": "suggestPrice",
|
|
9651
9651
|
"/price": "suggestPrice",
|
|
9652
9652
|
"/suggestdescription": "suggestDescription",
|
|
@@ -9659,12 +9659,12 @@ function NE() {
|
|
|
9659
9659
|
"/generatemarketingmaterial": "generateMarketingMaterial",
|
|
9660
9660
|
"/editmarketingbanner": "editMarketingBanner",
|
|
9661
9661
|
"/editcopy": "editCopy"
|
|
9662
|
-
}[
|
|
9663
|
-
return
|
|
9664
|
-
command:
|
|
9662
|
+
}[we];
|
|
9663
|
+
return Ve ? Fe ? {
|
|
9664
|
+
command: Ve,
|
|
9665
9665
|
userContent: Fe
|
|
9666
9666
|
} : {
|
|
9667
|
-
command:
|
|
9667
|
+
command: Ve,
|
|
9668
9668
|
userContent: "",
|
|
9669
9669
|
error: {
|
|
9670
9670
|
suggestPrice: "Usage: /suggestPrice <menu item name>",
|
|
@@ -9674,10 +9674,10 @@ function NE() {
|
|
|
9674
9674
|
generateMarketingMaterial: "Usage: /generateMarketingMaterial <campaign description> (you can also attach a product image)",
|
|
9675
9675
|
editMarketingBanner: "Usage: /editMarketingBanner <instructions> — edits the banner with the context of headline and caption.",
|
|
9676
9676
|
editCopy: "Usage: /editCopy <prompt> — rewrites the campaign headline and caption."
|
|
9677
|
-
}[
|
|
9677
|
+
}[Ve]
|
|
9678
9678
|
} : { userContent: le };
|
|
9679
9679
|
}
|
|
9680
|
-
function
|
|
9680
|
+
function Ne(X) {
|
|
9681
9681
|
l.value.push({
|
|
9682
9682
|
id: `msg-${Date.now()}-assistant-local`,
|
|
9683
9683
|
role: "assistant",
|
|
@@ -9687,21 +9687,21 @@ function NE() {
|
|
|
9687
9687
|
}
|
|
9688
9688
|
function ye() {
|
|
9689
9689
|
var xt, gn, Di, Js, Gs, it, An;
|
|
9690
|
-
const X = (xt = x.sessionUser.value) == null ? void 0 : xt.token, le = x.currentRestaurant.value, de = le,
|
|
9691
|
-
|
|
9690
|
+
const X = (xt = x.sessionUser.value) == null ? void 0 : xt.token, le = x.currentRestaurant.value, de = le, xe = new URLSearchParams(window.location.search), we = (de == null ? void 0 : de.id) ?? (de == null ? void 0 : de._id);
|
|
9691
|
+
xe.get("restaurantId");
|
|
9692
9692
|
const Fe = (gn = x.currentBusiness.value) == null ? void 0 : gn.id;
|
|
9693
9693
|
if (de != null && de.businessId && de.businessId !== Fe)
|
|
9694
9694
|
return null;
|
|
9695
|
-
const
|
|
9695
|
+
const Ee = null, Ve = we, Ce = mE(x.currentCountry.value), st = ((Js = (Di = le == null ? void 0 : le.profile) == null ? void 0 : Di.address) == null ? void 0 : Js.coordinates) || [], lt = st[0] || 0, mt = st[1] || 0;
|
|
9696
9696
|
return !X || !Fe ? null : {
|
|
9697
9697
|
token: X,
|
|
9698
9698
|
businessId: Fe,
|
|
9699
|
-
timezone:
|
|
9699
|
+
timezone: Ce,
|
|
9700
9700
|
latitude: mt,
|
|
9701
9701
|
longitude: lt,
|
|
9702
|
-
restaurant:
|
|
9703
|
-
id:
|
|
9704
|
-
name: (de == null ? void 0 : de.name) ?? ((Gs = de == null ? void 0 : de.profile) == null ? void 0 : Gs.name) ?? (de == null ? void 0 : de.title) ??
|
|
9702
|
+
restaurant: Ve ? {
|
|
9703
|
+
id: Ve,
|
|
9704
|
+
name: (de == null ? void 0 : de.name) ?? ((Gs = de == null ? void 0 : de.profile) == null ? void 0 : Gs.name) ?? (de == null ? void 0 : de.title) ?? Ee ?? Ve
|
|
9705
9705
|
} : null,
|
|
9706
9706
|
businessInfo: {
|
|
9707
9707
|
name: ((it = x.currentBusiness.value) == null ? void 0 : it.name) ?? "",
|
|
@@ -9713,7 +9713,7 @@ function NE() {
|
|
|
9713
9713
|
function Ze(X) {
|
|
9714
9714
|
return X.replace(/\/+$/, "");
|
|
9715
9715
|
}
|
|
9716
|
-
function
|
|
9716
|
+
function et(X) {
|
|
9717
9717
|
var de;
|
|
9718
9718
|
const le = X.match(/^data:([^;]+);base64,/);
|
|
9719
9719
|
if (le)
|
|
@@ -9724,23 +9724,23 @@ function NE() {
|
|
|
9724
9724
|
filename: "image-upload"
|
|
9725
9725
|
};
|
|
9726
9726
|
if (X.startsWith("https://")) {
|
|
9727
|
-
const
|
|
9727
|
+
const xe = X.match(/\.([a-z0-9]+)(?:\?|$)/i), we = (de = xe == null ? void 0 : xe[1]) == null ? void 0 : de.toLowerCase();
|
|
9728
9728
|
return {
|
|
9729
9729
|
type: "file",
|
|
9730
|
-
mediaType: (
|
|
9730
|
+
mediaType: (we ? ME[we] : void 0) ?? "image/jpeg",
|
|
9731
9731
|
url: X,
|
|
9732
|
-
filename:
|
|
9732
|
+
filename: we ? `attachment.${we}` : "image-upload"
|
|
9733
9733
|
};
|
|
9734
9734
|
}
|
|
9735
9735
|
return null;
|
|
9736
9736
|
}
|
|
9737
|
-
function te(X, le, de,
|
|
9737
|
+
function te(X, le, de, xe) {
|
|
9738
9738
|
var Js, Gs;
|
|
9739
|
-
const
|
|
9740
|
-
_(
|
|
9741
|
-
const
|
|
9739
|
+
const we = X.parts.filter((it) => it.type === "text"), Fe = we.map((it) => it.text).join(""), Ee = B(X.parts);
|
|
9740
|
+
_(Ee, X.parts);
|
|
9741
|
+
const Ve = fe(X.parts), Ce = Se(X.parts), st = X.parts.find(
|
|
9742
9742
|
(it) => it.type === "data-memory-facts"
|
|
9743
|
-
), lt = ((Js =
|
|
9743
|
+
), lt = ((Js = st == null ? void 0 : st.data) == null ? void 0 : Js.facts) ?? void 0, mt = X.parts.find(
|
|
9744
9744
|
(it) => it.type === "data-context-debug"
|
|
9745
9745
|
);
|
|
9746
9746
|
if (mt != null && mt.data) {
|
|
@@ -9758,19 +9758,19 @@ function NE() {
|
|
|
9758
9758
|
};
|
|
9759
9759
|
}
|
|
9760
9760
|
d.value[X.id] || (d.value[X.id] = Date.now());
|
|
9761
|
-
const xt =
|
|
9761
|
+
const xt = we.some((it) => it.state === "streaming"), gn = X.parts.some((it) => y(it) ? it.state === "input-streaming" : !1), Di = de && (le === "submitted" || le === "streaming");
|
|
9762
9762
|
return {
|
|
9763
9763
|
id: X.id,
|
|
9764
9764
|
role: X.role === "assistant" ? "assistant" : "user",
|
|
9765
|
-
content: Fe || (X.role === "user" &&
|
|
9765
|
+
content: Fe || (X.role === "user" && Ve.length ? "[Image attached]" : X.role === "user" && Ce.length ? "[File attached]" : ""),
|
|
9766
9766
|
command: X.role === "user" ? (Gs = X.metadata) == null ? void 0 : Gs.command : void 0,
|
|
9767
9767
|
timestamp: d.value[X.id],
|
|
9768
|
-
imageData:
|
|
9769
|
-
imageDatas:
|
|
9770
|
-
fileAttachments:
|
|
9768
|
+
imageData: Ve[0] || void 0,
|
|
9769
|
+
imageDatas: Ve.length > 0 ? Ve : void 0,
|
|
9770
|
+
fileAttachments: Ce.length > 0 ? Ce : void 0,
|
|
9771
9771
|
feedback: c.value[X.id],
|
|
9772
|
-
isStreaming: X.role === "assistant" &&
|
|
9773
|
-
toolCalls:
|
|
9772
|
+
isStreaming: X.role === "assistant" && xe && (Di || xt || gn),
|
|
9773
|
+
toolCalls: Ee.length > 0 ? Ee : void 0,
|
|
9774
9774
|
retrievedFacts: lt
|
|
9775
9775
|
};
|
|
9776
9776
|
}
|
|
@@ -9800,45 +9800,45 @@ function NE() {
|
|
|
9800
9800
|
}
|
|
9801
9801
|
function _(X, le) {
|
|
9802
9802
|
const de = /* @__PURE__ */ new Map();
|
|
9803
|
-
for (const
|
|
9804
|
-
if (
|
|
9803
|
+
for (const xe of le) {
|
|
9804
|
+
if (xe.type !== "data-mcp-app-ui")
|
|
9805
9805
|
continue;
|
|
9806
|
-
const
|
|
9807
|
-
|
|
9806
|
+
const we = xe.data;
|
|
9807
|
+
we && typeof we.toolCallId == "string" && typeof we.html == "string" && de.set(we.toolCallId, we.html);
|
|
9808
9808
|
}
|
|
9809
9809
|
if (de.size !== 0)
|
|
9810
|
-
for (const
|
|
9811
|
-
const
|
|
9812
|
-
|
|
9810
|
+
for (const xe of X) {
|
|
9811
|
+
const we = de.get(xe.id);
|
|
9812
|
+
we && (xe.uiHtml = we);
|
|
9813
9813
|
}
|
|
9814
9814
|
}
|
|
9815
9815
|
function B(X) {
|
|
9816
|
-
const le = [], de = /* @__PURE__ */ new Set(),
|
|
9817
|
-
const
|
|
9818
|
-
if (!
|
|
9816
|
+
const le = [], de = /* @__PURE__ */ new Set(), xe = /* @__PURE__ */ new Set(), we = (Ee) => {
|
|
9817
|
+
const Ve = Y(Ee);
|
|
9818
|
+
if (!Ve || typeof Ee.toolCallId != "string" || de.has(Ee.toolCallId))
|
|
9819
9819
|
return;
|
|
9820
|
-
de.add(
|
|
9821
|
-
const
|
|
9822
|
-
id:
|
|
9823
|
-
name:
|
|
9824
|
-
arguments:
|
|
9825
|
-
state:
|
|
9820
|
+
de.add(Ee.toolCallId);
|
|
9821
|
+
const Ce = {
|
|
9822
|
+
id: Ee.toolCallId,
|
|
9823
|
+
name: Ve,
|
|
9824
|
+
arguments: Ee.input,
|
|
9825
|
+
state: Ee.state
|
|
9826
9826
|
};
|
|
9827
|
-
|
|
9828
|
-
}, Fe = (
|
|
9829
|
-
if (
|
|
9827
|
+
Ee.state === "output-available" ? Ce.result = Ee.output : Ee.state === "output-error" && (Ce.result = { error: Ee.errorText }), le.push(Ce);
|
|
9828
|
+
}, Fe = (Ee) => {
|
|
9829
|
+
if (Ee == null || xe.has(Ee) || typeof Ee != "object")
|
|
9830
9830
|
return;
|
|
9831
|
-
if (
|
|
9832
|
-
for (const
|
|
9833
|
-
J(
|
|
9831
|
+
if (xe.add(Ee), Array.isArray(Ee)) {
|
|
9832
|
+
for (const Ce of Ee)
|
|
9833
|
+
J(Ce) ? (we(Ce), Ce.state === "output-available" && Fe(Ce.output)) : Fe(Ce);
|
|
9834
9834
|
return;
|
|
9835
9835
|
}
|
|
9836
|
-
const
|
|
9837
|
-
if (Array.isArray(
|
|
9838
|
-
for (const
|
|
9839
|
-
J(
|
|
9840
|
-
for (const
|
|
9841
|
-
Fe(
|
|
9836
|
+
const Ve = Ee;
|
|
9837
|
+
if (Array.isArray(Ve.parts))
|
|
9838
|
+
for (const Ce of Ve.parts)
|
|
9839
|
+
J(Ce) && (we(Ce), Ce.state === "output-available" && Fe(Ce.output));
|
|
9840
|
+
for (const Ce of Object.values(Ve))
|
|
9841
|
+
Fe(Ce);
|
|
9842
9842
|
};
|
|
9843
9843
|
return Fe(X), le;
|
|
9844
9844
|
}
|
|
@@ -9853,8 +9853,8 @@ function NE() {
|
|
|
9853
9853
|
console.error("[Chat Store] Backend URL is not set. Call initializeRemyChat() first.");
|
|
9854
9854
|
return;
|
|
9855
9855
|
}
|
|
9856
|
-
const de = Ze(le),
|
|
9857
|
-
o.value && r.value ===
|
|
9856
|
+
const de = Ze(le), xe = `${de}|${X.businessId}`;
|
|
9857
|
+
o.value && r.value === xe || (o.value = de, r.value = xe, l.value = []);
|
|
9858
9858
|
}
|
|
9859
9859
|
async function ee() {
|
|
9860
9860
|
if (f.value)
|
|
@@ -9874,25 +9874,25 @@ function NE() {
|
|
|
9874
9874
|
async function re() {
|
|
9875
9875
|
await H();
|
|
9876
9876
|
}
|
|
9877
|
-
async function q(X, le, de,
|
|
9878
|
-
const Fe = le && le.length > 0,
|
|
9879
|
-
if (!X.trim() && !Fe || z.value || N || D.isBusy && !
|
|
9877
|
+
async function q(X, le, de, xe, we) {
|
|
9878
|
+
const Fe = le && le.length > 0, Ee = xe ?? s.value ?? void 0;
|
|
9879
|
+
if (!X.trim() && !Fe || z.value || N || D.isBusy && !we)
|
|
9880
9880
|
return;
|
|
9881
|
-
const
|
|
9882
|
-
if (
|
|
9883
|
-
Ve
|
|
9881
|
+
const Ve = de ? { command: de, userContent: X.trim() } : ke(X);
|
|
9882
|
+
if (Ve.error) {
|
|
9883
|
+
Ne(Ve.error);
|
|
9884
9884
|
return;
|
|
9885
9885
|
}
|
|
9886
|
-
const
|
|
9887
|
-
if (Fe && !
|
|
9888
|
-
|
|
9886
|
+
const Ce = Ve.command, st = Ve.userContent.trim();
|
|
9887
|
+
if (Fe && !st && !Ce) {
|
|
9888
|
+
Ne("Please add instructions or choose /modifyImage before sending.");
|
|
9889
9889
|
return;
|
|
9890
9890
|
}
|
|
9891
|
-
let lt =
|
|
9891
|
+
let lt = we;
|
|
9892
9892
|
if (!lt) {
|
|
9893
9893
|
const xt = ye(), gn = h.value;
|
|
9894
9894
|
if (!xt || !gn) {
|
|
9895
|
-
|
|
9895
|
+
Ne("Unable to send without an active conversation. Please try again.");
|
|
9896
9896
|
return;
|
|
9897
9897
|
}
|
|
9898
9898
|
lt = {
|
|
@@ -9906,9 +9906,9 @@ function NE() {
|
|
|
9906
9906
|
return;
|
|
9907
9907
|
const mt = [];
|
|
9908
9908
|
for (const xt of le ?? []) {
|
|
9909
|
-
const gn =
|
|
9909
|
+
const gn = et(xt);
|
|
9910
9910
|
if (!gn) {
|
|
9911
|
-
|
|
9911
|
+
Ne("Invalid attachment format. Please try attaching the file again.");
|
|
9912
9912
|
return;
|
|
9913
9913
|
}
|
|
9914
9914
|
mt.push(gn);
|
|
@@ -9918,26 +9918,26 @@ function NE() {
|
|
|
9918
9918
|
if (await P(), !se(lt))
|
|
9919
9919
|
return;
|
|
9920
9920
|
if (!o.value) {
|
|
9921
|
-
|
|
9921
|
+
Ne(
|
|
9922
9922
|
"Unable to connect to chat right now. Please refresh and try again."
|
|
9923
9923
|
);
|
|
9924
9924
|
return;
|
|
9925
9925
|
}
|
|
9926
9926
|
await V(
|
|
9927
9927
|
{
|
|
9928
|
-
text:
|
|
9929
|
-
...
|
|
9928
|
+
text: st,
|
|
9929
|
+
...Ce ? { metadata: { command: Ce } } : {},
|
|
9930
9930
|
...mt.length ? { files: mt } : {}
|
|
9931
9931
|
},
|
|
9932
9932
|
{
|
|
9933
9933
|
body: {
|
|
9934
|
-
...
|
|
9935
|
-
...
|
|
9934
|
+
...Ce ? { command: Ce } : {},
|
|
9935
|
+
...Ee != null && Ee.length ? { attachments: Ee } : {}
|
|
9936
9936
|
}
|
|
9937
9937
|
}
|
|
9938
9938
|
), se(lt) && (s.value = null);
|
|
9939
9939
|
} catch (xt) {
|
|
9940
|
-
console.error("[Chat Store] Failed to send message:", xt), se(lt) &&
|
|
9940
|
+
console.error("[Chat Store] Failed to send message:", xt), se(lt) && Ne("Error: Failed to send message");
|
|
9941
9941
|
} finally {
|
|
9942
9942
|
N === lt && (N = null);
|
|
9943
9943
|
}
|
|
@@ -9954,70 +9954,65 @@ function NE() {
|
|
|
9954
9954
|
);
|
|
9955
9955
|
}
|
|
9956
9956
|
async function he() {
|
|
9957
|
-
var
|
|
9957
|
+
var we, Fe;
|
|
9958
9958
|
const X = ye();
|
|
9959
9959
|
if (!X)
|
|
9960
9960
|
return;
|
|
9961
|
-
const le = Z, de = Q,
|
|
9962
|
-
A.value = !0, g.value = !1, v.value = 1, k.value = !1, Promise.resolve().then(() => Tc).then(({ useAppStore:
|
|
9961
|
+
const le = Z, de = Q, xe = ++F;
|
|
9962
|
+
A.value = !0, g.value = !1, v.value = 1, k.value = !1, Promise.resolve().then(() => Tc).then(({ useAppStore: Ee }) => Ee().loadTokenBalance());
|
|
9963
9963
|
try {
|
|
9964
|
-
const
|
|
9965
|
-
if (!S(le, X.businessId) || !j(de, (
|
|
9964
|
+
const Ee = await Vc(X.businessId, 1, 20);
|
|
9965
|
+
if (!S(le, X.businessId) || !j(de, (we = X.restaurant) == null ? void 0 : we.id) || xe !== F)
|
|
9966
9966
|
return;
|
|
9967
|
-
b.value =
|
|
9968
|
-
id:
|
|
9969
|
-
restaurantId:
|
|
9970
|
-
restaurantName:
|
|
9971
|
-
title:
|
|
9972
|
-
createdAt: new Date(
|
|
9973
|
-
lastMessageAt: new Date(
|
|
9974
|
-
messageCount:
|
|
9975
|
-
})), k.value =
|
|
9976
|
-
} catch (
|
|
9977
|
-
console.error("[Chat Store] Failed to load conversations:",
|
|
9967
|
+
b.value = Ee.data.map((Ve) => ({
|
|
9968
|
+
id: Ve.id,
|
|
9969
|
+
restaurantId: Ve.restaurantId,
|
|
9970
|
+
restaurantName: Ve.restaurantName,
|
|
9971
|
+
title: Ve.title,
|
|
9972
|
+
createdAt: new Date(Ve.createdAt).getTime(),
|
|
9973
|
+
lastMessageAt: new Date(Ve.lastMessageAt).getTime(),
|
|
9974
|
+
messageCount: Ve.messageCount
|
|
9975
|
+
})), k.value = Ee.hasMore;
|
|
9976
|
+
} catch (Ee) {
|
|
9977
|
+
console.error("[Chat Store] Failed to load conversations:", Ee);
|
|
9978
9978
|
} finally {
|
|
9979
|
-
S(le, X.businessId) && j(de, (
|
|
9979
|
+
S(le, X.businessId) && j(de, (Fe = X.restaurant) == null ? void 0 : Fe.id) && xe === F && (A.value = !1);
|
|
9980
9980
|
}
|
|
9981
9981
|
}
|
|
9982
|
-
async function
|
|
9983
|
-
var Fe,
|
|
9982
|
+
async function Re() {
|
|
9983
|
+
var Fe, Ee;
|
|
9984
9984
|
if (A.value || g.value || !k.value)
|
|
9985
9985
|
return;
|
|
9986
9986
|
const X = ye();
|
|
9987
9987
|
if (!X)
|
|
9988
9988
|
return;
|
|
9989
|
-
const le = Z, de = Q,
|
|
9989
|
+
const le = Z, de = Q, xe = F;
|
|
9990
9990
|
g.value = !0;
|
|
9991
|
-
const
|
|
9991
|
+
const we = v.value + 1;
|
|
9992
9992
|
try {
|
|
9993
|
-
const
|
|
9994
|
-
|
|
9995
|
-
(Fe = X.restaurant) == null ? void 0 : Fe.id,
|
|
9996
|
-
Re,
|
|
9997
|
-
20
|
|
9998
|
-
);
|
|
9999
|
-
if (!S(le, X.businessId) || !j(de, (xe = X.restaurant) == null ? void 0 : xe.id) || Ie !== F)
|
|
9993
|
+
const Ve = await Vc(X.businessId, we, 20);
|
|
9994
|
+
if (!S(le, X.businessId) || !j(de, (Fe = X.restaurant) == null ? void 0 : Fe.id) || xe !== F)
|
|
10000
9995
|
return;
|
|
10001
9996
|
b.value = [
|
|
10002
9997
|
...b.value,
|
|
10003
|
-
...
|
|
10004
|
-
id:
|
|
10005
|
-
restaurantId:
|
|
10006
|
-
restaurantName:
|
|
10007
|
-
title:
|
|
10008
|
-
createdAt: new Date(
|
|
10009
|
-
lastMessageAt: new Date(
|
|
10010
|
-
messageCount:
|
|
9998
|
+
...Ve.data.map((Ce) => ({
|
|
9999
|
+
id: Ce.id,
|
|
10000
|
+
restaurantId: Ce.restaurantId,
|
|
10001
|
+
restaurantName: Ce.restaurantName,
|
|
10002
|
+
title: Ce.title,
|
|
10003
|
+
createdAt: new Date(Ce.createdAt).getTime(),
|
|
10004
|
+
lastMessageAt: new Date(Ce.lastMessageAt).getTime(),
|
|
10005
|
+
messageCount: Ce.messageCount
|
|
10011
10006
|
}))
|
|
10012
|
-
], v.value =
|
|
10013
|
-
} catch (
|
|
10014
|
-
console.error("[Chat Store] Failed to load more conversations:",
|
|
10007
|
+
], v.value = we, k.value = Ve.hasMore;
|
|
10008
|
+
} catch (Ve) {
|
|
10009
|
+
console.error("[Chat Store] Failed to load more conversations:", Ve);
|
|
10015
10010
|
} finally {
|
|
10016
|
-
S(le, X.businessId) && j(de, (
|
|
10011
|
+
S(le, X.businessId) && j(de, (Ee = X.restaurant) == null ? void 0 : Ee.id) && xe === F && (g.value = !1);
|
|
10017
10012
|
}
|
|
10018
10013
|
}
|
|
10019
10014
|
async function Oe() {
|
|
10020
|
-
var
|
|
10015
|
+
var xe;
|
|
10021
10016
|
const X = ye();
|
|
10022
10017
|
if (!X)
|
|
10023
10018
|
return;
|
|
@@ -10025,52 +10020,52 @@ function NE() {
|
|
|
10025
10020
|
O += 1, N = null, D.invalidate(), H().catch(() => {
|
|
10026
10021
|
});
|
|
10027
10022
|
try {
|
|
10028
|
-
const
|
|
10023
|
+
const we = await Nc(
|
|
10029
10024
|
X.businessId,
|
|
10030
10025
|
X.restaurant ?? void 0
|
|
10031
10026
|
);
|
|
10032
|
-
if (!S(le, X.businessId) || !j(de, (
|
|
10027
|
+
if (!S(le, X.businessId) || !j(de, (xe = X.restaurant) == null ? void 0 : xe.id))
|
|
10033
10028
|
return;
|
|
10034
|
-
h.value =
|
|
10035
|
-
} catch (
|
|
10036
|
-
console.error("[Chat Store] Failed to create conversation:",
|
|
10029
|
+
h.value = we.id, ue(), await he();
|
|
10030
|
+
} catch (we) {
|
|
10031
|
+
console.error("[Chat Store] Failed to create conversation:", we), Ne("Failed to create new conversation. Please try again.");
|
|
10037
10032
|
}
|
|
10038
10033
|
}
|
|
10039
|
-
async function Be(X, le, de,
|
|
10040
|
-
const
|
|
10041
|
-
if (!
|
|
10034
|
+
async function Be(X, le, de, xe) {
|
|
10035
|
+
const we = ye();
|
|
10036
|
+
if (!we || N || z.value)
|
|
10042
10037
|
return;
|
|
10043
10038
|
const Fe = D.tryAcquire();
|
|
10044
10039
|
if (!Fe)
|
|
10045
10040
|
return;
|
|
10046
|
-
const
|
|
10041
|
+
const Ee = Z, Ve = Q, Ce = ++O, st = () => {
|
|
10047
10042
|
var lt;
|
|
10048
|
-
return D.isActive(Fe) && S(
|
|
10043
|
+
return D.isActive(Fe) && S(Ee, we.businessId) && j(Ve, (lt = we.restaurant) == null ? void 0 : lt.id) && Ce === O;
|
|
10049
10044
|
};
|
|
10050
10045
|
try {
|
|
10051
10046
|
const lt = await Nc(
|
|
10052
|
-
|
|
10053
|
-
|
|
10047
|
+
we.businessId,
|
|
10048
|
+
we.restaurant ?? void 0
|
|
10054
10049
|
);
|
|
10055
|
-
if (!
|
|
10050
|
+
if (!st())
|
|
10056
10051
|
return;
|
|
10057
10052
|
const mt = {
|
|
10058
|
-
context:
|
|
10059
|
-
businessGeneration:
|
|
10060
|
-
restaurantGeneration:
|
|
10053
|
+
context: we,
|
|
10054
|
+
businessGeneration: Ee,
|
|
10055
|
+
restaurantGeneration: Ve,
|
|
10061
10056
|
conversationId: lt.id
|
|
10062
10057
|
};
|
|
10063
|
-
if (h.value = lt.id, ue(), await he(), !
|
|
10058
|
+
if (h.value = lt.id, ue(), await he(), !st() || !se(mt))
|
|
10064
10059
|
return;
|
|
10065
|
-
await q(X, le, de,
|
|
10060
|
+
await q(X, le, de, xe, mt);
|
|
10066
10061
|
} catch (lt) {
|
|
10067
|
-
console.error("[Chat Store] Failed to create conversation and send message:", lt),
|
|
10062
|
+
console.error("[Chat Store] Failed to create conversation and send message:", lt), st() && Ne("Failed to create new conversation. Please try again.");
|
|
10068
10063
|
} finally {
|
|
10069
10064
|
D.release(Fe);
|
|
10070
10065
|
}
|
|
10071
10066
|
}
|
|
10072
10067
|
function It(X, le) {
|
|
10073
|
-
const de = le.parts && le.parts.length > 0 ? le.parts : null,
|
|
10068
|
+
const de = le.parts && le.parts.length > 0 ? le.parts : null, xe = {
|
|
10074
10069
|
id: X.id,
|
|
10075
10070
|
role: X.role,
|
|
10076
10071
|
parts: de ?? [
|
|
@@ -10082,62 +10077,62 @@ function NE() {
|
|
|
10082
10077
|
],
|
|
10083
10078
|
metadata: X.command ? { command: X.command } : void 0
|
|
10084
10079
|
};
|
|
10085
|
-
return !de && X.imageData &&
|
|
10080
|
+
return !de && X.imageData && xe.parts.push({
|
|
10086
10081
|
type: "file",
|
|
10087
10082
|
mediaType: "image/png",
|
|
10088
10083
|
url: X.imageData,
|
|
10089
10084
|
filename: "image"
|
|
10090
|
-
}),
|
|
10085
|
+
}), xe;
|
|
10091
10086
|
}
|
|
10092
10087
|
async function Jt(X) {
|
|
10093
|
-
var Fe,
|
|
10088
|
+
var Fe, Ee, Ve, Ce;
|
|
10094
10089
|
const le = ye();
|
|
10095
10090
|
if (!le)
|
|
10096
10091
|
return;
|
|
10097
|
-
const de = Z,
|
|
10092
|
+
const de = Z, xe = Q, we = ++O;
|
|
10098
10093
|
N = null, D.invalidate(), H().catch(() => {
|
|
10099
10094
|
}), m.value = !0, M.value = !1, I.value = 1, U.value = !1;
|
|
10100
10095
|
try {
|
|
10101
10096
|
h.value = X, ue();
|
|
10102
|
-
const
|
|
10103
|
-
if (!S(de, le.businessId) || !j(
|
|
10097
|
+
const st = await Sc(X, le.businessId, 1, 20);
|
|
10098
|
+
if (!S(de, le.businessId) || !j(xe, (Fe = le.restaurant) == null ? void 0 : Fe.id) || we !== O || h.value !== X)
|
|
10104
10099
|
return;
|
|
10105
|
-
U.value =
|
|
10106
|
-
const lt = [...
|
|
10107
|
-
if (await P(), !S(de, le.businessId) || !j(
|
|
10100
|
+
U.value = st.hasMore;
|
|
10101
|
+
const lt = [...st.data].reverse();
|
|
10102
|
+
if (await P(), !S(de, le.businessId) || !j(xe, (Ee = le.restaurant) == null ? void 0 : Ee.id) || we !== O || h.value !== X)
|
|
10108
10103
|
return;
|
|
10109
10104
|
o.value && (C.value = lt.map((mt) => {
|
|
10110
10105
|
const xt = Cc(mt);
|
|
10111
10106
|
return d.value[xt.id] = xt.timestamp, xt.feedback && (c.value[xt.id] = xt.feedback), It(xt, mt);
|
|
10112
10107
|
})), ae();
|
|
10113
|
-
} catch (
|
|
10114
|
-
console.error("[Chat Store] Failed to load conversation:",
|
|
10108
|
+
} catch (st) {
|
|
10109
|
+
console.error("[Chat Store] Failed to load conversation:", st), S(de, le.businessId) && j(xe, (Ve = le.restaurant) == null ? void 0 : Ve.id) && we === O && h.value === X && Ne("Failed to load conversation. Please try again.");
|
|
10115
10110
|
} finally {
|
|
10116
|
-
S(de, le.businessId) && j(
|
|
10111
|
+
S(de, le.businessId) && j(xe, (Ce = le.restaurant) == null ? void 0 : Ce.id) && we === O && (m.value = !1);
|
|
10117
10112
|
}
|
|
10118
10113
|
}
|
|
10119
10114
|
async function Ht() {
|
|
10120
|
-
var
|
|
10115
|
+
var Ee, Ve;
|
|
10121
10116
|
if (m.value || M.value || !U.value || !h.value)
|
|
10122
10117
|
return;
|
|
10123
10118
|
const X = ye();
|
|
10124
10119
|
if (!X)
|
|
10125
10120
|
return;
|
|
10126
|
-
const le = h.value, de = Z,
|
|
10121
|
+
const le = h.value, de = Z, xe = Q, we = O, Fe = I.value + 1;
|
|
10127
10122
|
M.value = !0;
|
|
10128
10123
|
try {
|
|
10129
|
-
const
|
|
10130
|
-
if (!S(de, X.businessId) || !j(
|
|
10124
|
+
const Ce = await Sc(le, X.businessId, Fe, 20);
|
|
10125
|
+
if (!S(de, X.businessId) || !j(xe, (Ee = X.restaurant) == null ? void 0 : Ee.id) || we !== O || h.value !== le)
|
|
10131
10126
|
return;
|
|
10132
|
-
const
|
|
10127
|
+
const st = [...Ce.data].reverse().map((lt) => {
|
|
10133
10128
|
const mt = Cc(lt);
|
|
10134
10129
|
return d.value[mt.id] = mt.timestamp, mt.feedback && (c.value[mt.id] = mt.feedback), It(mt, lt);
|
|
10135
10130
|
});
|
|
10136
|
-
o.value && (C.value = [...
|
|
10137
|
-
} catch (
|
|
10138
|
-
console.error("[Chat Store] Failed to load more messages:",
|
|
10131
|
+
o.value && (C.value = [...st, ...C.value]), I.value = Fe, U.value = Ce.hasMore, ae();
|
|
10132
|
+
} catch (Ce) {
|
|
10133
|
+
console.error("[Chat Store] Failed to load more messages:", Ce);
|
|
10139
10134
|
} finally {
|
|
10140
|
-
S(de, X.businessId) && j(
|
|
10135
|
+
S(de, X.businessId) && j(xe, (Ve = X.restaurant) == null ? void 0 : Ve.id) && we === O && h.value === le && (M.value = !1);
|
|
10141
10136
|
}
|
|
10142
10137
|
}
|
|
10143
10138
|
async function Hn(X) {
|
|
@@ -10145,17 +10140,17 @@ function NE() {
|
|
|
10145
10140
|
}), h.value = null, I.value = 1, U.value = !1, m.value = !1, M.value = !1, ue());
|
|
10146
10141
|
}
|
|
10147
10142
|
async function ft() {
|
|
10148
|
-
var
|
|
10143
|
+
var we, Fe;
|
|
10149
10144
|
const X = ye();
|
|
10150
10145
|
if (!X || !h.value)
|
|
10151
10146
|
return;
|
|
10152
|
-
const le = h.value, de = Z,
|
|
10147
|
+
const le = h.value, de = Z, xe = Q;
|
|
10153
10148
|
try {
|
|
10154
|
-
if (await dE(le, X.businessId), !S(de, X.businessId) || !j(
|
|
10149
|
+
if (await dE(le, X.businessId), !S(de, X.businessId) || !j(xe, (we = X.restaurant) == null ? void 0 : we.id) || h.value !== le)
|
|
10155
10150
|
return;
|
|
10156
10151
|
h.value = null, ue(), await he();
|
|
10157
|
-
} catch (
|
|
10158
|
-
console.error("[Chat Store] Failed to delete conversation:",
|
|
10152
|
+
} catch (Ee) {
|
|
10153
|
+
console.error("[Chat Store] Failed to delete conversation:", Ee), S(de, X.businessId) && j(xe, (Fe = X.restaurant) == null ? void 0 : Fe.id) && h.value === le && Ne("Failed to delete conversation. Please try again.");
|
|
10159
10154
|
}
|
|
10160
10155
|
}
|
|
10161
10156
|
return {
|
|
@@ -10180,10 +10175,10 @@ function NE() {
|
|
|
10180
10175
|
stopStreaming: re,
|
|
10181
10176
|
clearConversation: ue,
|
|
10182
10177
|
updateMessageFeedback: ve,
|
|
10183
|
-
addLocalAssistantMessage:
|
|
10178
|
+
addLocalAssistantMessage: Ne,
|
|
10184
10179
|
loadMcpPrompts: ee,
|
|
10185
10180
|
loadConversations: he,
|
|
10186
|
-
loadMoreConversations:
|
|
10181
|
+
loadMoreConversations: Re,
|
|
10187
10182
|
createNewConversation: Oe,
|
|
10188
10183
|
createConversationAndSendMessage: Be,
|
|
10189
10184
|
loadConversation: Jt,
|
|
@@ -10345,7 +10340,7 @@ function mp(t) {
|
|
|
10345
10340
|
Rs = t;
|
|
10346
10341
|
}
|
|
10347
10342
|
var as = { exec: () => null };
|
|
10348
|
-
function
|
|
10343
|
+
function He(t, e = "") {
|
|
10349
10344
|
let n = typeof t == "string" ? t : t.source, s = { replace: (i, a) => {
|
|
10350
10345
|
let o = typeof a == "string" ? a : a.source;
|
|
10351
10346
|
return o = o.replace(Bt.caret, "$1"), n = n.replace(i, o), s;
|
|
@@ -10358,8 +10353,8 @@ var DE = (() => {
|
|
|
10358
10353
|
} catch {
|
|
10359
10354
|
return !1;
|
|
10360
10355
|
}
|
|
10361
|
-
})(), Bt = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`), htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}>`) }, jE = /^(?:[ \t]*(?:\n|$))+/, YE = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, OE = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Wi = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, JE = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Xr = / {0,3}(?:[*+-]|\d{1,9}[.)])/, gp = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ap =
|
|
10362
|
-
]`).replace("lheading", Ap).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, tk = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, nk = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, vp = /^( {2,}|\\)\n(?!\s*$)/, sk = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Os = /[\p{P}\p{S}]/u, ro = /[\s\p{P}\p{S}]/u, tl = /[^\s\p{P}\p{S}]/u, ik =
|
|
10356
|
+
})(), Bt = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] +\S/, listReplaceTask: /^\[[ xX]\] +/, listTaskCheckbox: /\[[ xX]\]/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (t) => new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}#`), htmlBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}<(?:[a-z].*>|!--)`, "i"), blockquoteBeginRegex: (t) => new RegExp(`^ {0,${Math.min(3, t - 1)}}>`) }, jE = /^(?:[ \t]*(?:\n|$))+/, YE = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, OE = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Wi = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, JE = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Xr = / {0,3}(?:[*+-]|\d{1,9}[.)])/, gp = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Ap = He(gp).replace(/bull/g, Xr).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), GE = He(gp).replace(/bull/g, Xr).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Kr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, PE = /^[^\n]+/, qr = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, HE = He(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", qr).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), XE = He(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, Xr).getRegex(), oo = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", $r = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, KE = He("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", $r).replace("tag", oo).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), bp = He(Kr).replace("hr", Wi).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", oo).getRegex(), qE = He(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", bp).getRegex(), el = { blockquote: qE, code: YE, def: HE, fences: OE, heading: JE, hr: Wi, html: KE, lheading: Ap, list: XE, newline: jE, paragraph: bp, table: as, text: PE }, Zc = He("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Wi).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", oo).getRegex(), $E = { ...el, lheading: GE, table: Zc, paragraph: He(Kr).replace("hr", Wi).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Zc).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", oo).getRegex() }, ek = { ...el, html: He(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", $r).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: as, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: He(Kr).replace("hr", Wi).replace("heading", ` *#{1,6} *[^
|
|
10357
|
+
]`).replace("lheading", Ap).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, tk = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, nk = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, vp = /^( {2,}|\\)\n(?!\s*$)/, sk = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Os = /[\p{P}\p{S}]/u, ro = /[\s\p{P}\p{S}]/u, tl = /[^\s\p{P}\p{S}]/u, ik = He(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, ro).getRegex(), yp = /(?!~)[\p{P}\p{S}]/u, ak = /(?!~)[\s\p{P}\p{S}]/u, ok = /(?:[^\s\p{P}\p{S}]|~)/u, rk = He(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", DE ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ep = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, lk = He(Ep, "u").replace(/punct/g, Os).getRegex(), ck = He(Ep, "u").replace(/punct/g, yp).getRegex(), kp = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", dk = He(kp, "gu").replace(/notPunctSpace/g, tl).replace(/punctSpace/g, ro).replace(/punct/g, Os).getRegex(), uk = He(kp, "gu").replace(/notPunctSpace/g, ok).replace(/punctSpace/g, ak).replace(/punct/g, yp).getRegex(), hk = He("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, tl).replace(/punctSpace/g, ro).replace(/punct/g, Os).getRegex(), pk = He(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, Os).getRegex(), fk = "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", mk = He(fk, "gu").replace(/notPunctSpace/g, tl).replace(/punctSpace/g, ro).replace(/punct/g, Os).getRegex(), gk = He(/\\(punct)/, "gu").replace(/punct/g, Os).getRegex(), Ak = He(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), bk = He($r).replace("(?:-->|$)", "-->").getRegex(), vk = He("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", bk).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Za = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, yk = He(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Za).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Rp = He(/^!?\[(label)\]\[(ref)\]/).replace("label", Za).replace("ref", qr).getRegex(), wp = He(/^!?\[(ref)\](?:\[\])?/).replace("ref", qr).getRegex(), Ek = He("reflink|nolink(?!\\()", "g").replace("reflink", Rp).replace("nolink", wp).getRegex(), _c = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, nl = { _backpedal: as, anyPunctuation: gk, autolink: Ak, blockSkip: rk, br: vp, code: nk, del: as, delLDelim: as, delRDelim: as, emStrongLDelim: lk, emStrongRDelimAst: dk, emStrongRDelimUnd: hk, escape: tk, link: yk, nolink: wp, punctuation: ik, reflink: Rp, reflinkSearch: Ek, tag: vk, text: sk, url: as }, kk = { ...nl, link: He(/^!?\[(label)\]\((.*?)\)/).replace("label", Za).getRegex(), reflink: He(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Za).getRegex() }, ar = { ...nl, emStrongRDelimAst: uk, emStrongLDelim: ck, delLDelim: pk, delRDelim: mk, url: He(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", _c).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: He(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", _c).getRegex() }, Rk = { ...ar, br: He(vp).replace("{2,}", "*").getRegex(), text: He(ar.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, Pi = { normal: el, gfm: $E, pedantic: ek }, Xs = { normal: nl, gfm: ar, breaks: Rk, pedantic: kk }, wk = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, Fc = (t) => wk[t];
|
|
10363
10358
|
function bn(t, e) {
|
|
10364
10359
|
if (e) {
|
|
10365
10360
|
if (Bt.escapeTest.test(t))
|
|
@@ -11536,35 +11531,35 @@ Please report this to https://github.com/markedjs/marked.`, t) {
|
|
|
11536
11531
|
};
|
|
11537
11532
|
}
|
|
11538
11533
|
}, bs = new Nk();
|
|
11539
|
-
function
|
|
11534
|
+
function $e(t, e) {
|
|
11540
11535
|
return bs.parse(t, e);
|
|
11541
11536
|
}
|
|
11542
|
-
|
|
11543
|
-
return bs.setOptions(t),
|
|
11537
|
+
$e.options = $e.setOptions = function(t) {
|
|
11538
|
+
return bs.setOptions(t), $e.defaults = bs.defaults, mp($e.defaults), $e;
|
|
11544
11539
|
};
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
return bs.use(...t),
|
|
11540
|
+
$e.getDefaults = Hr;
|
|
11541
|
+
$e.defaults = Rs;
|
|
11542
|
+
$e.use = function(...t) {
|
|
11543
|
+
return bs.use(...t), $e.defaults = bs.defaults, mp($e.defaults), $e;
|
|
11549
11544
|
};
|
|
11550
|
-
|
|
11545
|
+
$e.walkTokens = function(t, e) {
|
|
11551
11546
|
return bs.walkTokens(t, e);
|
|
11552
11547
|
};
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11548
|
+
$e.parseInline = bs.parseInline;
|
|
11549
|
+
$e.Parser = hn;
|
|
11550
|
+
$e.parser = hn.parse;
|
|
11551
|
+
$e.Renderer = Fa;
|
|
11552
|
+
$e.TextRenderer = sl;
|
|
11553
|
+
$e.Lexer = un;
|
|
11554
|
+
$e.lexer = un.lex;
|
|
11555
|
+
$e.Tokenizer = _a;
|
|
11556
|
+
$e.Hooks = ai;
|
|
11557
|
+
$e.parse = $e;
|
|
11558
|
+
$e.options;
|
|
11559
|
+
$e.setOptions;
|
|
11560
|
+
$e.use;
|
|
11561
|
+
$e.walkTokens;
|
|
11562
|
+
$e.parseInline;
|
|
11568
11563
|
hn.parse;
|
|
11569
11564
|
un.lex;
|
|
11570
11565
|
const Vk = ["href", "title"], Sk = /* @__PURE__ */ Te({
|
|
@@ -11618,7 +11613,7 @@ const Vo = /* @__PURE__ */ Qe(Sk, [["__scopeId", "data-v-5d1ce7d4"]]), Ck = { cl
|
|
|
11618
11613
|
isStreaming: { type: Boolean }
|
|
11619
11614
|
},
|
|
11620
11615
|
setup(t) {
|
|
11621
|
-
|
|
11616
|
+
$e.setOptions({ gfm: !0, breaks: !0 });
|
|
11622
11617
|
const e = t, n = K("");
|
|
11623
11618
|
Rt(() => {
|
|
11624
11619
|
s();
|
|
@@ -11629,7 +11624,7 @@ const Vo = /* @__PURE__ */ Qe(Sk, [["__scopeId", "data-v-5d1ce7d4"]]), Ck = { cl
|
|
|
11629
11624
|
return;
|
|
11630
11625
|
}
|
|
11631
11626
|
try {
|
|
11632
|
-
n.value =
|
|
11627
|
+
n.value = $e.parse(e.content);
|
|
11633
11628
|
} catch (l) {
|
|
11634
11629
|
console.error("Markdown rendering error:", l), n.value = "<p>Error rendering content</p>";
|
|
11635
11630
|
}
|
|
@@ -11676,7 +11671,7 @@ const Vo = /* @__PURE__ */ Qe(Sk, [["__scopeId", "data-v-5d1ce7d4"]]), Ck = { cl
|
|
|
11676
11671
|
}
|
|
11677
11672
|
});
|
|
11678
11673
|
return (l, c) => (E(), R("div", Ck, [
|
|
11679
|
-
(E(),
|
|
11674
|
+
(E(), Je(Ga(Ae(r)), { html: n.value }, null, 8, ["html"]))
|
|
11680
11675
|
]));
|
|
11681
11676
|
}
|
|
11682
11677
|
});
|
|
@@ -12119,7 +12114,7 @@ const e2 = (() => {
|
|
|
12119
12114
|
let t = 0;
|
|
12120
12115
|
return () => t++;
|
|
12121
12116
|
})();
|
|
12122
|
-
function
|
|
12117
|
+
function Xe(t) {
|
|
12123
12118
|
return t == null;
|
|
12124
12119
|
}
|
|
12125
12120
|
function ct(t) {
|
|
@@ -12128,7 +12123,7 @@ function ct(t) {
|
|
|
12128
12123
|
const e = Object.prototype.toString.call(t);
|
|
12129
12124
|
return e.slice(0, 7) === "[object" && e.slice(-6) === "Array]";
|
|
12130
12125
|
}
|
|
12131
|
-
function
|
|
12126
|
+
function Ge(t) {
|
|
12132
12127
|
return t !== null && Object.prototype.toString.call(t) === "[object Object]";
|
|
12133
12128
|
}
|
|
12134
12129
|
function At(t) {
|
|
@@ -12145,7 +12140,7 @@ function ot(t, e, n) {
|
|
|
12145
12140
|
if (t && typeof t.call == "function")
|
|
12146
12141
|
return t.apply(n, e);
|
|
12147
12142
|
}
|
|
12148
|
-
function
|
|
12143
|
+
function tt(t, e, n, s) {
|
|
12149
12144
|
let i, a, o;
|
|
12150
12145
|
if (ct(t))
|
|
12151
12146
|
if (a = t.length, s)
|
|
@@ -12154,7 +12149,7 @@ function nt(t, e, n, s) {
|
|
|
12154
12149
|
else
|
|
12155
12150
|
for (i = 0; i < a; i++)
|
|
12156
12151
|
e.call(n, t[i], i);
|
|
12157
|
-
else if (
|
|
12152
|
+
else if (Ge(t))
|
|
12158
12153
|
for (o = Object.keys(t), a = o.length, i = 0; i < a; i++)
|
|
12159
12154
|
e.call(n, t[o[i]], o[i]);
|
|
12160
12155
|
}
|
|
@@ -12170,7 +12165,7 @@ function Qa(t, e) {
|
|
|
12170
12165
|
function Wa(t) {
|
|
12171
12166
|
if (ct(t))
|
|
12172
12167
|
return t.map(Wa);
|
|
12173
|
-
if (
|
|
12168
|
+
if (Ge(t)) {
|
|
12174
12169
|
const e = /* @__PURE__ */ Object.create(null), n = Object.keys(t), s = n.length;
|
|
12175
12170
|
let i = 0;
|
|
12176
12171
|
for (; i < s; ++i)
|
|
@@ -12190,19 +12185,19 @@ function n2(t, e, n, s) {
|
|
|
12190
12185
|
if (!Vp(t))
|
|
12191
12186
|
return;
|
|
12192
12187
|
const i = e[t], a = n[t];
|
|
12193
|
-
|
|
12188
|
+
Ge(i) && Ge(a) ? Ri(i, a, s) : e[t] = Wa(a);
|
|
12194
12189
|
}
|
|
12195
12190
|
function Ri(t, e, n) {
|
|
12196
12191
|
const s = ct(e) ? e : [
|
|
12197
12192
|
e
|
|
12198
12193
|
], i = s.length;
|
|
12199
|
-
if (!
|
|
12194
|
+
if (!Ge(t))
|
|
12200
12195
|
return t;
|
|
12201
12196
|
n = n || {};
|
|
12202
12197
|
const a = n.merger || n2;
|
|
12203
12198
|
let o;
|
|
12204
12199
|
for (let r = 0; r < i; ++r) {
|
|
12205
|
-
if (o = s[r], !
|
|
12200
|
+
if (o = s[r], !Ge(o))
|
|
12206
12201
|
continue;
|
|
12207
12202
|
const l = Object.keys(o);
|
|
12208
12203
|
for (let c = 0, d = l.length; c < d; ++c)
|
|
@@ -12219,7 +12214,7 @@ function s2(t, e, n) {
|
|
|
12219
12214
|
if (!Vp(t))
|
|
12220
12215
|
return;
|
|
12221
12216
|
const s = e[t], i = n[t];
|
|
12222
|
-
|
|
12217
|
+
Ge(s) && Ge(i) ? fi(s, i) : Object.prototype.hasOwnProperty.call(e, t) || (e[t] = Wa(i));
|
|
12223
12218
|
}
|
|
12224
12219
|
const Yc = {
|
|
12225
12220
|
// Chart.helpers.core resolveObjectKey should resolve empty key to root object
|
|
@@ -12263,7 +12258,7 @@ const wi = (t) => typeof t < "u", Yn = (t) => typeof t == "function", Oc = (t, e
|
|
|
12263
12258
|
function o2(t) {
|
|
12264
12259
|
return t.type === "mouseup" || t.type === "click" || t.type === "contextmenu";
|
|
12265
12260
|
}
|
|
12266
|
-
const
|
|
12261
|
+
const Ke = Math.PI, dt = 2 * Ke, r2 = dt + Ke, Ba = Number.POSITIVE_INFINITY, l2 = Ke / 180, Et = Ke / 2, $n = Ke / 4, Jc = Ke * 2 / 3, Wn = Math.log10, kn = Math.sign;
|
|
12267
12262
|
function mi(t, e, n) {
|
|
12268
12263
|
return Math.abs(t - e) < n;
|
|
12269
12264
|
}
|
|
@@ -12296,10 +12291,10 @@ function Sp(t, e, n) {
|
|
|
12296
12291
|
a = t[s][n], isNaN(a) || (e.min = Math.min(e.min, a), e.max = Math.max(e.max, a));
|
|
12297
12292
|
}
|
|
12298
12293
|
function En(t) {
|
|
12299
|
-
return t * (
|
|
12294
|
+
return t * (Ke / 180);
|
|
12300
12295
|
}
|
|
12301
12296
|
function ll(t) {
|
|
12302
|
-
return t * (180 /
|
|
12297
|
+
return t * (180 / Ke);
|
|
12303
12298
|
}
|
|
12304
12299
|
function Pc(t) {
|
|
12305
12300
|
if (!At(t))
|
|
@@ -12312,7 +12307,7 @@ function Pc(t) {
|
|
|
12312
12307
|
function Cp(t, e) {
|
|
12313
12308
|
const n = e.x - t.x, s = e.y - t.y, i = Math.sqrt(n * n + s * s);
|
|
12314
12309
|
let a = Math.atan2(s, n);
|
|
12315
|
-
return a < -0.5 *
|
|
12310
|
+
return a < -0.5 * Ke && (a += dt), {
|
|
12316
12311
|
angle: a,
|
|
12317
12312
|
distance: i
|
|
12318
12313
|
};
|
|
@@ -12321,7 +12316,7 @@ function dr(t, e) {
|
|
|
12321
12316
|
return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
12322
12317
|
}
|
|
12323
12318
|
function h2(t, e) {
|
|
12324
|
-
return (t - e + r2) % dt -
|
|
12319
|
+
return (t - e + r2) % dt - Ke;
|
|
12325
12320
|
}
|
|
12326
12321
|
function St(t) {
|
|
12327
12322
|
return (t % dt + dt) % dt;
|
|
@@ -12440,7 +12435,7 @@ function v2(t, e, n) {
|
|
|
12440
12435
|
// @ts-expect-error Need to fix types on _lookupByKey
|
|
12441
12436
|
n ? s : rs(e, d, o.getPixelForValue(u)).lo
|
|
12442
12437
|
), c) {
|
|
12443
|
-
const m = l.slice(0, i + 1).reverse().findIndex((A) => !
|
|
12438
|
+
const m = l.slice(0, i + 1).reverse().findIndex((A) => !Xe(A[r.axis]));
|
|
12444
12439
|
i -= Math.max(0, m);
|
|
12445
12440
|
}
|
|
12446
12441
|
i = Ut(i, 0, s - 1);
|
|
@@ -12453,7 +12448,7 @@ function v2(t, e, n) {
|
|
|
12453
12448
|
n ? 0 : rs(e, d, o.getPixelForValue(f), !0).hi + 1
|
|
12454
12449
|
);
|
|
12455
12450
|
if (c) {
|
|
12456
|
-
const A = l.slice(m - 1).findIndex((g) => !
|
|
12451
|
+
const A = l.slice(m - 1).findIndex((g) => !Xe(g[r.axis]));
|
|
12457
12452
|
m += Math.max(0, A);
|
|
12458
12453
|
}
|
|
12459
12454
|
a = Ut(m, i, s) - i;
|
|
@@ -12493,7 +12488,7 @@ const qi = (t) => t === 0 || t === 1, Xc = (t, e, n) => -(Math.pow(2, 10 * (t -=
|
|
|
12493
12488
|
easeInOutQuint: (t) => (t /= 0.5) < 1 ? 0.5 * t * t * t * t * t : 0.5 * ((t -= 2) * t * t * t * t + 2),
|
|
12494
12489
|
easeInSine: (t) => -Math.cos(t * Et) + 1,
|
|
12495
12490
|
easeOutSine: (t) => Math.sin(t * Et),
|
|
12496
|
-
easeInOutSine: (t) => -0.5 * (Math.cos(
|
|
12491
|
+
easeInOutSine: (t) => -0.5 * (Math.cos(Ke * t) - 1),
|
|
12497
12492
|
easeInExpo: (t) => t === 0 ? 0 : Math.pow(2, 10 * (t - 1)),
|
|
12498
12493
|
easeOutExpo: (t) => t === 1 ? 1 : -Math.pow(2, -10 * t) + 1,
|
|
12499
12494
|
easeInOutExpo: (t) => qi(t) ? t : t < 0.5 ? 0.5 * Math.pow(2, 10 * (t * 2 - 1)) : 0.5 * (-Math.pow(2, -10 * (t * 2 - 1)) + 2),
|
|
@@ -12789,7 +12784,7 @@ class N2 {
|
|
|
12789
12784
|
enumerable: !0,
|
|
12790
12785
|
get() {
|
|
12791
12786
|
const l = this[r], c = o[i];
|
|
12792
|
-
return
|
|
12787
|
+
return Ge(l) ? Object.assign({}, c, l) : ze(l, c);
|
|
12793
12788
|
},
|
|
12794
12789
|
set(l) {
|
|
12795
12790
|
this[r] = l;
|
|
@@ -12817,7 +12812,7 @@ var bt = /* @__PURE__ */ new N2({
|
|
|
12817
12812
|
M2
|
|
12818
12813
|
]);
|
|
12819
12814
|
function V2(t) {
|
|
12820
|
-
return !t ||
|
|
12815
|
+
return !t || Xe(t.size) || Xe(t.family) ? null : (t.style ? t.style + " " : "") + (t.weight ? t.weight + " " : "") + t.size + "px " + t.family;
|
|
12821
12816
|
}
|
|
12822
12817
|
function za(t, e, n, s, i) {
|
|
12823
12818
|
let a = e[i];
|
|
@@ -12872,7 +12867,7 @@ function Qp(t, e, n, s, i) {
|
|
|
12872
12867
|
d = i ? i / 2 : m, t.moveTo(n + Math.sin(A) * d, s - Math.cos(A) * m), A += Jc, t.lineTo(n + Math.sin(A) * d, s - Math.cos(A) * m), A += Jc, t.lineTo(n + Math.sin(A) * d, s - Math.cos(A) * m), t.closePath();
|
|
12873
12868
|
break;
|
|
12874
12869
|
case "rectRounded":
|
|
12875
|
-
c = m * 0.516, l = m - c, o = Math.cos(A + $n) * l, u = Math.cos(A + $n) * (i ? i / 2 - c : l), r = Math.sin(A + $n) * l, f = Math.sin(A + $n) * (i ? i / 2 - c : l), t.arc(n - u, s - r, c, A -
|
|
12870
|
+
c = m * 0.516, l = m - c, o = Math.cos(A + $n) * l, u = Math.cos(A + $n) * (i ? i / 2 - c : l), r = Math.sin(A + $n) * l, f = Math.sin(A + $n) * (i ? i / 2 - c : l), t.arc(n - u, s - r, c, A - Ke, A - Et), t.arc(n + f, s - o, c, A - Et, A), t.arc(n + u, s + r, c, A, A + Et), t.arc(n - f, s + o, c, A + Et, A + Ke), t.closePath();
|
|
12876
12871
|
break;
|
|
12877
12872
|
case "rect":
|
|
12878
12873
|
if (!b) {
|
|
@@ -12929,7 +12924,7 @@ function U2(t, e, n, s) {
|
|
|
12929
12924
|
t.bezierCurveTo(s ? e.cp1x : e.cp2x, s ? e.cp1y : e.cp2y, s ? n.cp2x : n.cp1x, s ? n.cp2y : n.cp1y, n.x, n.y);
|
|
12930
12925
|
}
|
|
12931
12926
|
function T2(t, e) {
|
|
12932
|
-
e.translation && t.translate(e.translation[0], e.translation[1]),
|
|
12927
|
+
e.translation && t.translate(e.translation[0], e.translation[1]), Xe(e.rotation) || t.rotate(e.rotation), e.color && (t.fillStyle = e.color), e.textAlign && (t.textAlign = e.textAlign), e.textBaseline && (t.textBaseline = e.textBaseline);
|
|
12933
12928
|
}
|
|
12934
12929
|
function Z2(t, e, n, s, i) {
|
|
12935
12930
|
if (i.strikethrough || i.underline) {
|
|
@@ -12947,12 +12942,12 @@ function Es(t, e, n, s, i, a = {}) {
|
|
|
12947
12942
|
], r = a.strokeWidth > 0 && a.strokeColor !== "";
|
|
12948
12943
|
let l, c;
|
|
12949
12944
|
for (t.save(), t.font = i.string, T2(t, a), l = 0; l < o.length; ++l)
|
|
12950
|
-
c = o[l], a.backdrop && _2(t, a.backdrop), r && (a.strokeColor && (t.strokeStyle = a.strokeColor),
|
|
12945
|
+
c = o[l], a.backdrop && _2(t, a.backdrop), r && (a.strokeColor && (t.strokeStyle = a.strokeColor), Xe(a.strokeWidth) || (t.lineWidth = a.strokeWidth), t.strokeText(c, n, s, a.maxWidth)), t.fillText(c, n, s, a.maxWidth), Z2(t, n, s, c, a), s += Number(i.lineHeight);
|
|
12951
12946
|
t.restore();
|
|
12952
12947
|
}
|
|
12953
12948
|
function Mi(t, e) {
|
|
12954
12949
|
const { x: n, y: s, w: i, h: a, radius: o } = e;
|
|
12955
|
-
t.arc(n + o.topLeft, s + o.topLeft, o.topLeft, 1.5 *
|
|
12950
|
+
t.arc(n + o.topLeft, s + o.topLeft, o.topLeft, 1.5 * Ke, Ke, !0), t.lineTo(n, s + a - o.bottomLeft), t.arc(n + o.bottomLeft, s + a - o.bottomLeft, o.bottomLeft, Ke, Et, !0), t.lineTo(n + i - o.bottomRight, s + a), t.arc(n + i - o.bottomRight, s + a - o.bottomRight, o.bottomRight, Et, 0, !0), t.lineTo(n + i, s + o.topRight), t.arc(n + i - o.topRight, s + o.topRight, o.topRight, 0, -Et, !0), t.lineTo(n + o.topLeft, s);
|
|
12956
12951
|
}
|
|
12957
12952
|
const F2 = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, Q2 = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
|
|
12958
12953
|
function W2(t, e) {
|
|
@@ -12970,7 +12965,7 @@ function W2(t, e) {
|
|
|
12970
12965
|
}
|
|
12971
12966
|
const B2 = (t) => +t || 0;
|
|
12972
12967
|
function hl(t, e) {
|
|
12973
|
-
const n = {}, s =
|
|
12968
|
+
const n = {}, s = Ge(e), i = s ? Object.keys(e) : e, a = Ge(t) ? s ? (o) => ze(t[o], t[e[o]]) : (o) => t[o] : () => t;
|
|
12974
12969
|
for (const o of i)
|
|
12975
12970
|
n[o] = B2(a(o));
|
|
12976
12971
|
return n;
|
|
@@ -13164,7 +13159,7 @@ function Bp(t, e = {
|
|
|
13164
13159
|
isIndexable: Yn(s) ? s : () => s
|
|
13165
13160
|
};
|
|
13166
13161
|
}
|
|
13167
|
-
const L2 = (t, e) => t ? t + rl(e) : e, fl = (t, e) =>
|
|
13162
|
+
const L2 = (t, e) => t ? t + rl(e) : e, fl = (t, e) => Ge(e) && t !== "adapters" && (Object.getPrototypeOf(e) === null || e.constructor === Object);
|
|
13168
13163
|
function zp(t, e, n) {
|
|
13169
13164
|
if (Object.prototype.hasOwnProperty.call(t, e) || e === "constructor")
|
|
13170
13165
|
return t[e];
|
|
@@ -13188,7 +13183,7 @@ function Y2(t, e, n, s) {
|
|
|
13188
13183
|
const { _proxy: i, _context: a, _subProxy: o, _descriptors: r } = n;
|
|
13189
13184
|
if (typeof a.index < "u" && s(t))
|
|
13190
13185
|
return e[a.index % e.length];
|
|
13191
|
-
if (
|
|
13186
|
+
if (Ge(e[0])) {
|
|
13192
13187
|
const l = e, c = i._scopes.filter((d) => d !== l);
|
|
13193
13188
|
e = [];
|
|
13194
13189
|
for (const d of l) {
|
|
@@ -13235,7 +13230,7 @@ function G2(t, e, n) {
|
|
|
13235
13230
|
const s = t._getTarget();
|
|
13236
13231
|
e in s || (s[e] = {});
|
|
13237
13232
|
const i = s[e];
|
|
13238
|
-
return ct(i) &&
|
|
13233
|
+
return ct(i) && Ge(n) ? n : i || {};
|
|
13239
13234
|
}
|
|
13240
13235
|
function P2(t, e, n, s) {
|
|
13241
13236
|
let i;
|
|
@@ -13876,12 +13871,12 @@ class Xp {
|
|
|
13876
13871
|
this._chart = e, this._properties = /* @__PURE__ */ new Map(), this.configure(n);
|
|
13877
13872
|
}
|
|
13878
13873
|
configure(e) {
|
|
13879
|
-
if (!
|
|
13874
|
+
if (!Ge(e))
|
|
13880
13875
|
return;
|
|
13881
13876
|
const n = Object.keys(bt.animation), s = this._properties;
|
|
13882
13877
|
Object.getOwnPropertyNames(e).forEach((i) => {
|
|
13883
13878
|
const a = e[i];
|
|
13884
|
-
if (!
|
|
13879
|
+
if (!Ge(a))
|
|
13885
13880
|
return;
|
|
13886
13881
|
const o = {};
|
|
13887
13882
|
for (const r of n)
|
|
@@ -13982,7 +13977,7 @@ function xR(t, e, n) {
|
|
|
13982
13977
|
}
|
|
13983
13978
|
function MR(t) {
|
|
13984
13979
|
let e, n, s, i;
|
|
13985
|
-
return
|
|
13980
|
+
return Ge(t) ? (e = t.top, n = t.right, s = t.bottom, i = t.left) : e = n = s = i = t, {
|
|
13986
13981
|
top: e,
|
|
13987
13982
|
right: n,
|
|
13988
13983
|
bottom: s,
|
|
@@ -14138,7 +14133,7 @@ class ps {
|
|
|
14138
14133
|
}
|
|
14139
14134
|
_dataCheck() {
|
|
14140
14135
|
const e = this.getDataset(), n = e.data || (e.data = []), s = this._data;
|
|
14141
|
-
if (
|
|
14136
|
+
if (Ge(n)) {
|
|
14142
14137
|
const i = this._cachedMeta;
|
|
14143
14138
|
this._data = NR(n, i);
|
|
14144
14139
|
} else if (s !== n) {
|
|
@@ -14171,7 +14166,7 @@ class ps {
|
|
|
14171
14166
|
if (this._parsing === !1)
|
|
14172
14167
|
s._parsed = i, s._sorted = !0, f = i;
|
|
14173
14168
|
else {
|
|
14174
|
-
ct(i[e]) ? f = this.parseArrayData(s, i, e, n) :
|
|
14169
|
+
ct(i[e]) ? f = this.parseArrayData(s, i, e, n) : Ge(i[e]) ? f = this.parseObjectData(s, i, e, n) : f = this.parsePrimitiveData(s, i, e, n);
|
|
14175
14170
|
const h = () => u[r] === null || c && u[r] < c[r];
|
|
14176
14171
|
for (d = 0; d < n; ++d)
|
|
14177
14172
|
s._parsed[d + e] = u = f[d], l && (h() && (l = !1), c = u);
|
|
@@ -14483,7 +14478,7 @@ function FR(t) {
|
|
|
14483
14478
|
function QR(t, e, n, s) {
|
|
14484
14479
|
const i = n.barThickness;
|
|
14485
14480
|
let a, o;
|
|
14486
|
-
return
|
|
14481
|
+
return Xe(i) ? (a = e.min * n.categoryPercentage, o = n.barPercentage) : (a = i * s, o = 1), {
|
|
14487
14482
|
chunk: a / s,
|
|
14488
14483
|
ratio: o,
|
|
14489
14484
|
start: e.pixels[t] - a / 2
|
|
@@ -14611,7 +14606,7 @@ class ba extends ps {
|
|
|
14611
14606
|
updateElements(e, n, s, i) {
|
|
14612
14607
|
const a = i === "reset", { index: o, _cachedMeta: { vScale: r } } = this, l = r.getBasePixel(), c = r.isHorizontal(), d = this._getRuler(), { sharedOptions: u, includeOptions: f } = this._getSharedOptions(n, i);
|
|
14613
14608
|
for (let h = n; h < n + s; h++) {
|
|
14614
|
-
const b = this.getParsed(h), m = a ||
|
|
14609
|
+
const b = this.getParsed(h), m = a || Xe(b[r.axis]) ? {
|
|
14615
14610
|
base: l,
|
|
14616
14611
|
head: l
|
|
14617
14612
|
} : this._calculateBarValuePixels(h), A = this._calculateBarIndexPixels(h, d), g = (b._stacks || {})[r.axis], v = {
|
|
@@ -14631,7 +14626,7 @@ class ba extends ps {
|
|
|
14631
14626
|
_getStacks(e, n) {
|
|
14632
14627
|
const { iScale: s } = this._cachedMeta, i = s.getMatchingVisibleMetas(this._type).filter((d) => d.controller.options.grouped), a = s.options.stacked, o = [], r = this._cachedMeta.controller.getParsed(n), l = r && r[s.axis], c = (d) => {
|
|
14633
14628
|
const u = d._parsed.find((h) => h[s.axis] === l), f = u && u[d.vScale.axis];
|
|
14634
|
-
if (
|
|
14629
|
+
if (Xe(f) || isNaN(f))
|
|
14635
14630
|
return !0;
|
|
14636
14631
|
};
|
|
14637
14632
|
for (const d of i)
|
|
@@ -14680,7 +14675,7 @@ class ba extends ps {
|
|
|
14680
14675
|
const { _cachedMeta: { vScale: n, _stacked: s, index: i }, options: { base: a, minBarLength: o } } = this, r = a || 0, l = this.getParsed(e), c = l._custom, d = Fo(c);
|
|
14681
14676
|
let u = l[n.axis], f = 0, h = s ? this.applyStack(n, l, s) : u, b, m;
|
|
14682
14677
|
h !== u && (f = h - u, h = u), d && (u = c.barStart, h = c.barEnd - c.barStart, u !== 0 && kn(u) !== kn(c.barEnd) && (f = 0), f += u);
|
|
14683
|
-
const A = !
|
|
14678
|
+
const A = !Xe(a) && !d ? a : f;
|
|
14684
14679
|
let g = n.getPixelForValue(A);
|
|
14685
14680
|
if (this.chart.getDataVisibility(e) ? b = n.getPixelForValue(f + h) : b = g, m = b - g, Math.abs(m) < o) {
|
|
14686
14681
|
m = zR(m, n, r) * o, u === r && (g -= m / 2);
|
|
@@ -14757,7 +14752,7 @@ me(ba, "id", "bar"), me(ba, "defaults", {
|
|
|
14757
14752
|
function OR(t, e, n) {
|
|
14758
14753
|
let s = 1, i = 1, a = 0, o = 0;
|
|
14759
14754
|
if (e < dt) {
|
|
14760
|
-
const r = t, l = r + e, c = Math.cos(r), d = Math.sin(r), u = Math.cos(l), f = Math.sin(l), h = (k, w, M) => xi(k, r, l, !0) ? 1 : Math.max(w, w * n, M, M * n), b = (k, w, M) => xi(k, r, l, !0) ? -1 : Math.min(w, w * n, M, M * n), m = h(0, c, u), A = h(Et, d, f), g = b(
|
|
14755
|
+
const r = t, l = r + e, c = Math.cos(r), d = Math.sin(r), u = Math.cos(l), f = Math.sin(l), h = (k, w, M) => xi(k, r, l, !0) ? 1 : Math.max(w, w * n, M, M * n), b = (k, w, M) => xi(k, r, l, !0) ? -1 : Math.min(w, w * n, M, M * n), m = h(0, c, u), A = h(Et, d, f), g = b(Ke, c, u), v = b(Ke + Et, d, f);
|
|
14761
14756
|
s = (m - g) / 2, i = (A - v) / 2, a = -(m + g) / 2, o = -(A + v) / 2;
|
|
14762
14757
|
}
|
|
14763
14758
|
return {
|
|
@@ -14779,7 +14774,7 @@ class ri extends ps {
|
|
|
14779
14774
|
i._parsed = s;
|
|
14780
14775
|
else {
|
|
14781
14776
|
let a = (l) => +s[l];
|
|
14782
|
-
if (
|
|
14777
|
+
if (Ge(s[e])) {
|
|
14783
14778
|
const { key: l = "value" } = this._parsing;
|
|
14784
14779
|
a = (c) => +vs(s[c], l);
|
|
14785
14780
|
}
|
|
@@ -14979,7 +14974,7 @@ class va extends ps {
|
|
|
14979
14974
|
U.skip = !0;
|
|
14980
14975
|
continue;
|
|
14981
14976
|
}
|
|
14982
|
-
const Z = this.getParsed(M), Q =
|
|
14977
|
+
const Z = this.getParsed(M), Q = Xe(Z[h]), F = U[f] = o.getPixelForValue(Z[f], M), O = U[h] = a || Q ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, Z, l) : Z[h], M);
|
|
14983
14978
|
U.skip = isNaN(F) || isNaN(O) || Q, U.stop = M > 0 && Math.abs(Z[f] - w[f]) > A, m && (U.parsed = Z, U.raw = c.data[M]), u && (U.options = d || this.resolveDataElementOptions(M, I.active ? "active" : i)), g || this.updateElement(I, M, U, i), w = Z;
|
|
14984
14979
|
}
|
|
14985
14980
|
}
|
|
@@ -15085,9 +15080,9 @@ function GR(t, e, n, s) {
|
|
|
15085
15080
|
} else {
|
|
15086
15081
|
const d = c(a, e, n);
|
|
15087
15082
|
if (l) {
|
|
15088
|
-
const { vScale: u } = i._cachedMeta, { _parsed: f } = t, h = f.slice(0, d.lo + 1).reverse().findIndex((m) => !
|
|
15083
|
+
const { vScale: u } = i._cachedMeta, { _parsed: f } = t, h = f.slice(0, d.lo + 1).reverse().findIndex((m) => !Xe(m[u.axis]));
|
|
15089
15084
|
d.lo -= Math.max(0, h);
|
|
15090
|
-
const b = f.slice(d.hi).findIndex((m) => !
|
|
15085
|
+
const b = f.slice(d.hi).findIndex((m) => !Xe(m[u.axis]));
|
|
15091
15086
|
d.hi += Math.max(0, b);
|
|
15092
15087
|
}
|
|
15093
15088
|
return d;
|
|
@@ -15308,7 +15303,7 @@ function ef(t, e) {
|
|
|
15308
15303
|
}
|
|
15309
15304
|
function nw(t, e, n, s) {
|
|
15310
15305
|
const { pos: i, box: a } = n, o = t.maxPadding;
|
|
15311
|
-
if (!
|
|
15306
|
+
if (!Ge(i)) {
|
|
15312
15307
|
n.size && (t[i] -= n.size);
|
|
15313
15308
|
const u = s[n.stack] || {
|
|
15314
15309
|
size: 0,
|
|
@@ -15411,7 +15406,7 @@ var tn = {
|
|
|
15411
15406
|
if (!t)
|
|
15412
15407
|
return;
|
|
15413
15408
|
const i = _t(t.options.layout.padding), a = Math.max(e - i.width, 0), o = Math.max(n - i.height, 0), r = tw(t.boxes), l = r.vertical, c = r.horizontal;
|
|
15414
|
-
|
|
15409
|
+
tt(t.boxes, (m) => {
|
|
15415
15410
|
typeof m.beforeLayout == "function" && m.beforeLayout();
|
|
15416
15411
|
});
|
|
15417
15412
|
const d = l.reduce((m, A) => A.box.options && A.box.options.display === !1 ? m : m + 1, 0) || 1, u = Object.freeze({
|
|
@@ -15438,7 +15433,7 @@ var tn = {
|
|
|
15438
15433
|
bottom: h.top + h.h,
|
|
15439
15434
|
height: h.h,
|
|
15440
15435
|
width: h.w
|
|
15441
|
-
},
|
|
15436
|
+
}, tt(r.chartArea, (m) => {
|
|
15442
15437
|
const A = m.box;
|
|
15443
15438
|
Object.assign(A, t.chartArea), A.update(h.w, h.h, {
|
|
15444
15439
|
left: 0,
|
|
@@ -15617,7 +15612,7 @@ class Aw extends tf {
|
|
|
15617
15612
|
"width"
|
|
15618
15613
|
].forEach((a) => {
|
|
15619
15614
|
const o = s[a];
|
|
15620
|
-
|
|
15615
|
+
Xe(o) ? n.removeAttribute(a) : n.setAttribute(a, o);
|
|
15621
15616
|
});
|
|
15622
15617
|
const i = s.style || {};
|
|
15623
15618
|
return Object.keys(i).forEach((a) => {
|
|
@@ -15697,9 +15692,9 @@ function vw(t, e) {
|
|
|
15697
15692
|
if (o > 0) {
|
|
15698
15693
|
let u, f;
|
|
15699
15694
|
const h = o > 1 ? Math.round((l - r) / (o - 1)) : null;
|
|
15700
|
-
for (sa(e, c, d,
|
|
15695
|
+
for (sa(e, c, d, Xe(h) ? 0 : r - h, r), u = 0, f = o - 1; u < f; u++)
|
|
15701
15696
|
sa(e, c, d, a[u], a[u + 1]);
|
|
15702
|
-
return sa(e, c, d, l,
|
|
15697
|
+
return sa(e, c, d, l, Xe(h) ? e.length : l + h), c;
|
|
15703
15698
|
}
|
|
15704
15699
|
return sa(e, c, d), c;
|
|
15705
15700
|
}
|
|
@@ -15764,7 +15759,7 @@ function xw(t, e, n) {
|
|
|
15764
15759
|
return l;
|
|
15765
15760
|
}
|
|
15766
15761
|
function Mw(t, e) {
|
|
15767
|
-
|
|
15762
|
+
tt(t, (n) => {
|
|
15768
15763
|
const s = n.gc, i = s.length / 2;
|
|
15769
15764
|
let a;
|
|
15770
15765
|
if (i > e) {
|
|
@@ -15805,14 +15800,14 @@ function Cw(t, e, n, s) {
|
|
|
15805
15800
|
let u = 0, f, h, b;
|
|
15806
15801
|
const m = o - i, A = r - a;
|
|
15807
15802
|
if (t.isHorizontal()) {
|
|
15808
|
-
if (h = Vt(s, a, r),
|
|
15803
|
+
if (h = Vt(s, a, r), Ge(n)) {
|
|
15809
15804
|
const g = Object.keys(n)[0], v = n[g];
|
|
15810
15805
|
b = d[g].getPixelForValue(v) + m - e;
|
|
15811
15806
|
} else
|
|
15812
15807
|
n === "center" ? b = (c.bottom + c.top) / 2 + m - e : b = Rd(t, n, e);
|
|
15813
15808
|
f = r - a;
|
|
15814
15809
|
} else {
|
|
15815
|
-
if (
|
|
15810
|
+
if (Ge(n)) {
|
|
15816
15811
|
const g = Object.keys(n)[0], v = n[g];
|
|
15817
15812
|
h = d[g].getPixelForValue(v) - A + e;
|
|
15818
15813
|
} else
|
|
@@ -16044,7 +16039,7 @@ class ws extends fn {
|
|
|
16044
16039
|
this.beforeTickToLabelConversion(), this.generateTickLabels(e);
|
|
16045
16040
|
let n, s;
|
|
16046
16041
|
for (n = 0, s = e.length; n < s; n++)
|
|
16047
|
-
|
|
16042
|
+
Xe(e[n].label) && (e.splice(n, 1), s--, n--);
|
|
16048
16043
|
this.afterTickToLabelConversion();
|
|
16049
16044
|
}
|
|
16050
16045
|
_getLabelSizes() {
|
|
@@ -16063,11 +16058,11 @@ class ws extends fn {
|
|
|
16063
16058
|
if (b = e[u].label, m = this._resolveTickFontOptions(u), i.font = A = m.string, g = a[A] = a[A] || {
|
|
16064
16059
|
data: {},
|
|
16065
16060
|
gc: []
|
|
16066
|
-
}, v = m.lineHeight, k = w = 0, !
|
|
16061
|
+
}, v = m.lineHeight, k = w = 0, !Xe(b) && !ct(b))
|
|
16067
16062
|
k = za(i, g.data, g.gc, k, b), w = v;
|
|
16068
16063
|
else if (ct(b))
|
|
16069
16064
|
for (f = 0, h = b.length; f < h; ++f)
|
|
16070
|
-
M = b[f], !
|
|
16065
|
+
M = b[f], !Xe(M) && !ct(M) && (k = za(i, g.data, g.gc, k, M), w += v);
|
|
16071
16066
|
o.push(k), r.push(w), c = Math.max(k, c), d = Math.max(w, d);
|
|
16072
16067
|
}
|
|
16073
16068
|
Mw(a, n);
|
|
@@ -16144,7 +16139,7 @@ class ws extends fn {
|
|
|
16144
16139
|
else if (n === "x") {
|
|
16145
16140
|
if (o === "center")
|
|
16146
16141
|
v = g((e.top + e.bottom) / 2 + 0.5);
|
|
16147
|
-
else if (
|
|
16142
|
+
else if (Ge(o)) {
|
|
16148
16143
|
const L = Object.keys(o)[0], V = o[L];
|
|
16149
16144
|
v = g(this.chart.scales[L].getPixelForValue(V));
|
|
16150
16145
|
}
|
|
@@ -16152,7 +16147,7 @@ class ws extends fn {
|
|
|
16152
16147
|
} else if (n === "y") {
|
|
16153
16148
|
if (o === "center")
|
|
16154
16149
|
v = g((e.left + e.right) / 2);
|
|
16155
|
-
else if (
|
|
16150
|
+
else if (Ge(o)) {
|
|
16156
16151
|
const L = Object.keys(o)[0], V = o[L];
|
|
16157
16152
|
v = g(this.chart.scales[L].getPixelForValue(V));
|
|
16158
16153
|
}
|
|
@@ -16160,7 +16155,7 @@ class ws extends fn {
|
|
|
16160
16155
|
}
|
|
16161
16156
|
const x = ze(i.ticks.maxTicksLimit, u), C = Math.max(1, Math.ceil(u / x));
|
|
16162
16157
|
for (k = 0; k < u; k += C) {
|
|
16163
|
-
const L = this.getContext(k), V = a.setContext(L), H = r.setContext(L), z = V.lineWidth, S = V.color, W = H.dash || [], j = H.dashOffset, se = V.tickWidth, ce = V.tickColor, ae = V.tickBorderDash || [],
|
|
16158
|
+
const L = this.getContext(k), V = a.setContext(L), H = r.setContext(L), z = V.lineWidth, S = V.color, W = H.dash || [], j = H.dashOffset, se = V.tickWidth, ce = V.tickColor, ae = V.tickBorderDash || [], ke = V.tickBorderDashOffset;
|
|
16164
16159
|
w = xw(this, k, l), w !== void 0 && (M = es(s, w, z), c ? I = Z = F = N = M : U = Q = O = D = M, h.push({
|
|
16165
16160
|
tx1: I,
|
|
16166
16161
|
ty1: U,
|
|
@@ -16177,7 +16172,7 @@ class ws extends fn {
|
|
|
16177
16172
|
tickWidth: se,
|
|
16178
16173
|
tickColor: ce,
|
|
16179
16174
|
tickBorderDash: ae,
|
|
16180
|
-
tickBorderDashOffset:
|
|
16175
|
+
tickBorderDashOffset: ke
|
|
16181
16176
|
}));
|
|
16182
16177
|
}
|
|
16183
16178
|
return this._ticksLength = u, this._borderValue = v, h;
|
|
@@ -16198,7 +16193,7 @@ class ws extends fn {
|
|
|
16198
16193
|
} else if (n === "x") {
|
|
16199
16194
|
if (i === "center")
|
|
16200
16195
|
I = (e.top + e.bottom) / 2 + h;
|
|
16201
|
-
else if (
|
|
16196
|
+
else if (Ge(i)) {
|
|
16202
16197
|
const C = Object.keys(i)[0], L = i[C];
|
|
16203
16198
|
I = this.chart.scales[C].getPixelForValue(L) + h;
|
|
16204
16199
|
}
|
|
@@ -16206,7 +16201,7 @@ class ws extends fn {
|
|
|
16206
16201
|
} else if (n === "y") {
|
|
16207
16202
|
if (i === "center")
|
|
16208
16203
|
M = (e.left + e.right) / 2 - h;
|
|
16209
|
-
else if (
|
|
16204
|
+
else if (Ge(i)) {
|
|
16210
16205
|
const C = Object.keys(i)[0], L = i[C];
|
|
16211
16206
|
M = this.chart.scales[C].getPixelForValue(L);
|
|
16212
16207
|
}
|
|
@@ -16224,7 +16219,7 @@ class ws extends fn {
|
|
|
16224
16219
|
let W;
|
|
16225
16220
|
if (C.showLabelBackdrop) {
|
|
16226
16221
|
const j = _t(C.backdropPadding), se = x.heights[g], ce = x.widths[g];
|
|
16227
|
-
let ae = N - j.top,
|
|
16222
|
+
let ae = N - j.top, ke = 0 - j.left;
|
|
16228
16223
|
switch (D) {
|
|
16229
16224
|
case "middle":
|
|
16230
16225
|
ae -= se / 2;
|
|
@@ -16235,17 +16230,17 @@ class ws extends fn {
|
|
|
16235
16230
|
}
|
|
16236
16231
|
switch (U) {
|
|
16237
16232
|
case "center":
|
|
16238
|
-
|
|
16233
|
+
ke -= ce / 2;
|
|
16239
16234
|
break;
|
|
16240
16235
|
case "right":
|
|
16241
|
-
|
|
16236
|
+
ke -= ce;
|
|
16242
16237
|
break;
|
|
16243
16238
|
case "inner":
|
|
16244
|
-
g === v - 1 ?
|
|
16239
|
+
g === v - 1 ? ke -= ce : g > 0 && (ke -= ce / 2);
|
|
16245
16240
|
break;
|
|
16246
16241
|
}
|
|
16247
16242
|
W = {
|
|
16248
|
-
left:
|
|
16243
|
+
left: ke,
|
|
16249
16244
|
top: ae,
|
|
16250
16245
|
width: ce + j.width,
|
|
16251
16246
|
height: se + j.height,
|
|
@@ -16373,7 +16368,7 @@ class ws extends fn {
|
|
|
16373
16368
|
return;
|
|
16374
16369
|
const a = wt(s.font), o = _t(s.padding), r = s.align;
|
|
16375
16370
|
let l = a.lineHeight / 2;
|
|
16376
|
-
n === "bottom" || n === "center" ||
|
|
16371
|
+
n === "bottom" || n === "center" || Ge(n) ? (l += o.bottom, ct(s.text) && (l += a.lineHeight * (s.text.length - 1))) : l += o.top;
|
|
16377
16372
|
const { titleX: c, titleY: d, maxWidth: u, rotation: f } = Cw(this, l, n, r);
|
|
16378
16373
|
Es(e, s.text, 0, 0, a, {
|
|
16379
16374
|
color: s.color,
|
|
@@ -16536,7 +16531,7 @@ class _w {
|
|
|
16536
16531
|
...n
|
|
16537
16532
|
].forEach((i) => {
|
|
16538
16533
|
const a = s || this._getRegistryForType(i);
|
|
16539
|
-
s || a.isForType(i) || a === this.plugins && i.id ? this._exec(e, a, i) :
|
|
16534
|
+
s || a.isForType(i) || a === this.plugins && i.id ? this._exec(e, a, i) : tt(i, (o) => {
|
|
16540
16535
|
const r = s || this._getRegistryForType(o);
|
|
16541
16536
|
this._exec(e, r, o);
|
|
16542
16537
|
});
|
|
@@ -16586,7 +16581,7 @@ class Fw {
|
|
|
16586
16581
|
return !0;
|
|
16587
16582
|
}
|
|
16588
16583
|
invalidate() {
|
|
16589
|
-
|
|
16584
|
+
Xe(this._cache) || (this._oldCache = this._cache, this._cache = void 0);
|
|
16590
16585
|
}
|
|
16591
16586
|
_descriptors(e) {
|
|
16592
16587
|
if (this._cache)
|
|
@@ -16695,7 +16690,7 @@ function Ow(t, e) {
|
|
|
16695
16690
|
}, s = e.scales || {}, i = fr(t.type, e), a = /* @__PURE__ */ Object.create(null);
|
|
16696
16691
|
return Object.keys(s).forEach((o) => {
|
|
16697
16692
|
const r = s[o];
|
|
16698
|
-
if (!
|
|
16693
|
+
if (!Ge(r))
|
|
16699
16694
|
return console.error(`Invalid scale configuration for scale: ${o}`);
|
|
16700
16695
|
if (r._proxy)
|
|
16701
16696
|
return console.warn(`Ignoring resolver passed as options for scale: ${o}`);
|
|
@@ -16870,7 +16865,7 @@ class Gw {
|
|
|
16870
16865
|
""
|
|
16871
16866
|
], i) {
|
|
16872
16867
|
const { resolver: a } = Sd(this._resolverCache, e, s);
|
|
16873
|
-
return
|
|
16868
|
+
return Ge(n) ? zs(a, n, void 0, i) : a;
|
|
16874
16869
|
}
|
|
16875
16870
|
}
|
|
16876
16871
|
function Sd(t, e, n) {
|
|
@@ -16883,7 +16878,7 @@ function Sd(t, e, n) {
|
|
|
16883
16878
|
subPrefixes: n.filter((r) => !r.toLowerCase().includes("hover"))
|
|
16884
16879
|
}, s.set(i, a)), a;
|
|
16885
16880
|
}
|
|
16886
|
-
const Pw = (t) =>
|
|
16881
|
+
const Pw = (t) => Ge(t) && Object.getOwnPropertyNames(t).some((e) => Yn(t[e]));
|
|
16887
16882
|
function Hw(t, e) {
|
|
16888
16883
|
const { isScriptable: n, isIndexable: s } = Bp(t);
|
|
16889
16884
|
for (const i of e) {
|
|
@@ -16964,7 +16959,7 @@ let fo = (Zn = class {
|
|
|
16964
16959
|
}
|
|
16965
16960
|
get aspectRatio() {
|
|
16966
16961
|
const { options: { aspectRatio: e, maintainAspectRatio: n }, width: s, height: i, _aspectRatio: a } = this;
|
|
16967
|
-
return
|
|
16962
|
+
return Xe(e) ? n && a ? a : i ? s / i : null : e;
|
|
16968
16963
|
}
|
|
16969
16964
|
get data() {
|
|
16970
16965
|
return this.config.data;
|
|
@@ -17007,7 +17002,7 @@ let fo = (Zn = class {
|
|
|
17007
17002
|
}
|
|
17008
17003
|
ensureScalesHaveIDs() {
|
|
17009
17004
|
const n = this.options.scales || {};
|
|
17010
|
-
|
|
17005
|
+
tt(n, (s, i) => {
|
|
17011
17006
|
s.id = i;
|
|
17012
17007
|
});
|
|
17013
17008
|
}
|
|
@@ -17021,7 +17016,7 @@ let fo = (Zn = class {
|
|
|
17021
17016
|
dposition: c ? "chartArea" : d ? "bottom" : "left",
|
|
17022
17017
|
dtype: c ? "radialLinear" : d ? "category" : "linear"
|
|
17023
17018
|
};
|
|
17024
|
-
}))),
|
|
17019
|
+
}))), tt(a, (o) => {
|
|
17025
17020
|
const r = o.options, l = r.id, c = mr(l, r), d = ze(r.type, o.dtype);
|
|
17026
17021
|
(r.position === void 0 || Cd(r.position, c) !== Cd(o.dposition)) && (r.position = o.dposition), i[l] = !0;
|
|
17027
17022
|
let u = null;
|
|
@@ -17037,9 +17032,9 @@ let fo = (Zn = class {
|
|
|
17037
17032
|
}), s[u.id] = u;
|
|
17038
17033
|
}
|
|
17039
17034
|
u.init(r, e);
|
|
17040
|
-
}),
|
|
17035
|
+
}), tt(i, (o, r) => {
|
|
17041
17036
|
o || delete s[r];
|
|
17042
|
-
}),
|
|
17037
|
+
}), tt(s, (o) => {
|
|
17043
17038
|
tn.configure(this, o, o.options), tn.addBox(this, o);
|
|
17044
17039
|
});
|
|
17045
17040
|
}
|
|
@@ -17078,7 +17073,7 @@ let fo = (Zn = class {
|
|
|
17078
17073
|
return this._updateMetasets(), e;
|
|
17079
17074
|
}
|
|
17080
17075
|
_resetElements() {
|
|
17081
|
-
|
|
17076
|
+
tt(this.data.datasets, (e, n) => {
|
|
17082
17077
|
this.getDatasetMeta(n).controller.reset();
|
|
17083
17078
|
}, this);
|
|
17084
17079
|
}
|
|
@@ -17101,7 +17096,7 @@ let fo = (Zn = class {
|
|
|
17101
17096
|
const { controller: u } = this.getDatasetMeta(c), f = !i && a.indexOf(u) === -1;
|
|
17102
17097
|
u.buildOrUpdateElements(f), o = Math.max(+u.getMaxOverflow(), o);
|
|
17103
17098
|
}
|
|
17104
|
-
o = this._minPadding = s.layout.autoPadding ? o : 0, this._updateLayout(o), i ||
|
|
17099
|
+
o = this._minPadding = s.layout.autoPadding ? o : 0, this._updateLayout(o), i || tt(a, (c) => {
|
|
17105
17100
|
c.reset();
|
|
17106
17101
|
}), this._updateDatasets(e), this.notifyPlugins("afterUpdate", {
|
|
17107
17102
|
mode: e
|
|
@@ -17110,7 +17105,7 @@ let fo = (Zn = class {
|
|
|
17110
17105
|
l ? this._eventHandler(l, !0) : r.length && this._updateHoverStyles(r, r, !0), this.render();
|
|
17111
17106
|
}
|
|
17112
17107
|
_updateScales() {
|
|
17113
|
-
|
|
17108
|
+
tt(this.scales, (e) => {
|
|
17114
17109
|
tn.removeBox(this, e);
|
|
17115
17110
|
}), this.ensureScalesHaveIDs(), this.buildOrUpdateScales();
|
|
17116
17111
|
}
|
|
@@ -17147,7 +17142,7 @@ let fo = (Zn = class {
|
|
|
17147
17142
|
return;
|
|
17148
17143
|
tn.update(this, this.width, this.height, e);
|
|
17149
17144
|
const n = this.chartArea, s = n.width <= 0 || n.height <= 0;
|
|
17150
|
-
this._layers = [],
|
|
17145
|
+
this._layers = [], tt(this.boxes, (i) => {
|
|
17151
17146
|
s && i.position === "chartArea" || (i.configure && i.configure(), this._layers.push(...i._layers()));
|
|
17152
17147
|
}, this), this._layers.forEach((i, a) => {
|
|
17153
17148
|
i._idx = a;
|
|
@@ -17321,7 +17316,7 @@ let fo = (Zn = class {
|
|
|
17321
17316
|
}, i = (a, o, r) => {
|
|
17322
17317
|
a.offsetX = o, a.offsetY = r, this._eventHandler(a);
|
|
17323
17318
|
};
|
|
17324
|
-
|
|
17319
|
+
tt(this.options.events, (a) => s(a, i));
|
|
17325
17320
|
}
|
|
17326
17321
|
bindResponsiveEvents() {
|
|
17327
17322
|
this._responsiveListeners || (this._responsiveListeners = {});
|
|
@@ -17341,9 +17336,9 @@ let fo = (Zn = class {
|
|
|
17341
17336
|
}, n.isAttached(this.canvas) ? r() : o();
|
|
17342
17337
|
}
|
|
17343
17338
|
unbindEvents() {
|
|
17344
|
-
|
|
17339
|
+
tt(this._listeners, (e, n) => {
|
|
17345
17340
|
this.platform.removeEventListener(this, n, e);
|
|
17346
|
-
}), this._listeners = {},
|
|
17341
|
+
}), this._listeners = {}, tt(this._responsiveListeners, (e, n) => {
|
|
17347
17342
|
this.platform.removeEventListener(this, n, e);
|
|
17348
17343
|
}), this._responsiveListeners = void 0;
|
|
17349
17344
|
}
|
|
@@ -17418,7 +17413,7 @@ let fo = (Zn = class {
|
|
|
17418
17413
|
}
|
|
17419
17414
|
}, me(Zn, "defaults", bt), me(Zn, "instances", Ea), me(Zn, "overrides", ys), me(Zn, "registry", yn), me(Zn, "version", Xw), me(Zn, "getChart", Zd), Zn);
|
|
17420
17415
|
function _d() {
|
|
17421
|
-
return
|
|
17416
|
+
return tt(fo.instances, (t) => t._plugins.invalidate());
|
|
17422
17417
|
}
|
|
17423
17418
|
function tI(t, e, n) {
|
|
17424
17419
|
const { startAngle: s, x: i, y: a, outerRadius: o, innerRadius: r, options: l } = e, { borderWidth: c, borderJoinStyle: d } = l, u = Math.min(c / o, St(s - n));
|
|
@@ -17428,9 +17423,9 @@ function tI(t, e, n) {
|
|
|
17428
17423
|
} else {
|
|
17429
17424
|
const f = Math.min(c / 2, o * St(s - n));
|
|
17430
17425
|
if (d === "round")
|
|
17431
|
-
t.arc(i, a, f, n -
|
|
17426
|
+
t.arc(i, a, f, n - Ke / 2, s + Ke / 2, !0);
|
|
17432
17427
|
else if (d === "bevel") {
|
|
17433
|
-
const h = 2 * f * f, b = -h * Math.cos(n +
|
|
17428
|
+
const h = 2 * f * f, b = -h * Math.cos(n + Ke / 2) + i, m = -h * Math.sin(n + Ke / 2) + a, A = h * Math.cos(s + Ke / 2) + i, g = h * Math.sin(s + Ke / 2) + a;
|
|
17434
17429
|
t.lineTo(b, m), t.lineTo(A, g);
|
|
17435
17430
|
}
|
|
17436
17431
|
}
|
|
@@ -17475,7 +17470,7 @@ function ja(t, e, n, s, i, a) {
|
|
|
17475
17470
|
const C = d > 0 ? d - s : 0, L = u > 0 ? u - s : 0, V = (C + L) / 2, H = V !== 0 ? b * V / (V + s) : b;
|
|
17476
17471
|
h = (b - H) / 2;
|
|
17477
17472
|
}
|
|
17478
|
-
const m = Math.max(1e-3, b * u - n /
|
|
17473
|
+
const m = Math.max(1e-3, b * u - n / Ke) / u, A = (b - m) / 2, g = l + A + h, v = i - A - h, { outerStart: k, outerEnd: w, innerStart: M, innerEnd: I } = iI(e, f, u, v - g), U = u - k, Z = u - w, Q = g + k / U, F = v - w / Z, O = f + M, N = f + I, D = g + M / O, x = v - I / N;
|
|
17479
17474
|
if (t.beginPath(), a) {
|
|
17480
17475
|
const C = (Q + F) / 2;
|
|
17481
17476
|
if (t.arc(o, r, u, Q, C), t.arc(o, r, u, C, F), w > 0) {
|
|
@@ -17529,7 +17524,7 @@ function oI(t, e, n, s, i) {
|
|
|
17529
17524
|
t.stroke();
|
|
17530
17525
|
isNaN(r) || (m = o + (r % dt || dt));
|
|
17531
17526
|
}
|
|
17532
|
-
b && nI(t, e, m), l.selfJoin && m - o >=
|
|
17527
|
+
b && nI(t, e, m), l.selfJoin && m - o >= Ke && h === 0 && d !== "miter" && tI(t, e, m), a || (ja(t, e, n, s, m, i), t.stroke());
|
|
17533
17528
|
}
|
|
17534
17529
|
class ci extends fn {
|
|
17535
17530
|
constructor(n) {
|
|
@@ -17583,7 +17578,7 @@ class ci extends fn {
|
|
|
17583
17578
|
n.save();
|
|
17584
17579
|
const l = (this.startAngle + this.endAngle) / 2;
|
|
17585
17580
|
n.translate(Math.cos(l) * a, Math.sin(l) * a);
|
|
17586
|
-
const c = 1 - Math.sin(Math.min(
|
|
17581
|
+
const c = 1 - Math.sin(Math.min(Ke, i || 0)), d = a * c;
|
|
17587
17582
|
n.fillStyle = s.backgroundColor, n.strokeStyle = s.borderColor, aI(n, this, d, o, r), oI(n, this, d, o, r), n.restore();
|
|
17588
17583
|
}
|
|
17589
17584
|
}
|
|
@@ -17857,7 +17852,7 @@ function gI(t, e, n) {
|
|
|
17857
17852
|
function AI(t, e, n) {
|
|
17858
17853
|
const { enableBorderRadius: s } = t.getProps([
|
|
17859
17854
|
"enableBorderRadius"
|
|
17860
|
-
]), i = t.options.borderRadius, a = us(i), o = Math.min(e, n), r = t.borderSkipped, l = s ||
|
|
17855
|
+
]), i = t.options.borderRadius, a = us(i), o = Math.min(e, n), r = t.borderSkipped, l = s || Ge(i);
|
|
17861
17856
|
return {
|
|
17862
17857
|
topLeft: Ln(!l || r.top || r.left, a.topLeft, 0, o),
|
|
17863
17858
|
topRight: Ln(!l || r.top || r.right, a.topRight, 0, o),
|
|
@@ -18061,7 +18056,7 @@ function RI(t, e, n) {
|
|
|
18061
18056
|
}
|
|
18062
18057
|
function wI(t, e, n) {
|
|
18063
18058
|
const s = NI(t);
|
|
18064
|
-
if (
|
|
18059
|
+
if (Ge(s))
|
|
18065
18060
|
return isNaN(s.value) ? !1 : s;
|
|
18066
18061
|
let i = parseFloat(s);
|
|
18067
18062
|
return At(i) && Math.floor(i) === i ? II(s[0], e, i, n) : [
|
|
@@ -18077,11 +18072,11 @@ function II(t, e, n, s) {
|
|
|
18077
18072
|
}
|
|
18078
18073
|
function xI(t, e) {
|
|
18079
18074
|
let n = null;
|
|
18080
|
-
return t === "start" ? n = e.bottom : t === "end" ? n = e.top :
|
|
18075
|
+
return t === "start" ? n = e.bottom : t === "end" ? n = e.top : Ge(t) ? n = e.getPixelForValue(t.value) : e.getBasePixel && (n = e.getBasePixel()), n;
|
|
18081
18076
|
}
|
|
18082
18077
|
function MI(t, e, n) {
|
|
18083
18078
|
let s;
|
|
18084
|
-
return t === "start" ? s = n : t === "end" ? s = e.options.reverse ? e.min : e.max :
|
|
18079
|
+
return t === "start" ? s = n : t === "end" ? s = e.options.reverse ? e.min : e.max : Ge(t) ? s = t.value : s = e.getBaseValue(), s;
|
|
18085
18080
|
}
|
|
18086
18081
|
function NI(t) {
|
|
18087
18082
|
const e = t.options, n = e.fill;
|
|
@@ -18681,7 +18676,7 @@ class mf extends fn {
|
|
|
18681
18676
|
_drawArgs(e) {
|
|
18682
18677
|
const { top: n, left: s, bottom: i, right: a, options: o } = this, r = o.align;
|
|
18683
18678
|
let l = 0, c, d, u;
|
|
18684
|
-
return this.isHorizontal() ? (d = Vt(r, s, a), u = n + e, c = a - s) : (o.position === "left" ? (d = s + e, u = Vt(r, i, n), l =
|
|
18679
|
+
return this.isHorizontal() ? (d = Vt(r, s, a), u = n + e, c = a - s) : (o.position === "left" ? (d = s + e, u = Vt(r, i, n), l = Ke * -0.5) : (d = a - e, u = Vt(r, n, i), l = Ke * 0.5), c = i - n), {
|
|
18685
18680
|
titleX: d,
|
|
18686
18681
|
titleY: u,
|
|
18687
18682
|
maxWidth: c,
|
|
@@ -18822,9 +18817,9 @@ function Yd(t, e) {
|
|
|
18822
18817
|
const k = function(w) {
|
|
18823
18818
|
A = Math.max(A, n.measureText(w).width + v);
|
|
18824
18819
|
};
|
|
18825
|
-
return n.save(), n.font = c.string,
|
|
18826
|
-
|
|
18827
|
-
}), v = 0, n.font = d.string,
|
|
18820
|
+
return n.save(), n.font = c.string, tt(t.title, k), n.font = l.string, tt(t.beforeBody.concat(t.afterBody), k), v = e.displayColors ? o + 2 + e.boxPadding : 0, tt(s, (w) => {
|
|
18821
|
+
tt(w.before, k), tt(w.lines, k), tt(w.after, k);
|
|
18822
|
+
}), v = 0, n.font = d.string, tt(t.footer, k), n.restore(), A += b.width, {
|
|
18828
18823
|
width: A,
|
|
18829
18824
|
height: m
|
|
18830
18825
|
};
|
|
@@ -18908,7 +18903,7 @@ const gf = {
|
|
|
18908
18903
|
let e = t.dataset.label || "";
|
|
18909
18904
|
e && (e += ": ");
|
|
18910
18905
|
const n = t.formattedValue;
|
|
18911
|
-
return
|
|
18906
|
+
return Xe(n) || (e += n), e;
|
|
18912
18907
|
},
|
|
18913
18908
|
labelColor(t) {
|
|
18914
18909
|
const n = t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);
|
|
@@ -18968,7 +18963,7 @@ class br extends fn {
|
|
|
18968
18963
|
}
|
|
18969
18964
|
getBody(e, n) {
|
|
18970
18965
|
const { callbacks: s } = n, i = [];
|
|
18971
|
-
return
|
|
18966
|
+
return tt(e, (a) => {
|
|
18972
18967
|
const o = {
|
|
18973
18968
|
before: [],
|
|
18974
18969
|
lines: [],
|
|
@@ -18990,7 +18985,7 @@ class br extends fn {
|
|
|
18990
18985
|
let r = [], l, c;
|
|
18991
18986
|
for (l = 0, c = n.length; l < c; ++l)
|
|
18992
18987
|
r.push(HI(this.chart, n[l]));
|
|
18993
|
-
return e.filter && (r = r.filter((d, u, f) => e.filter(d, u, f, s))), e.itemSort && (r = r.sort((d, u) => e.itemSort(d, u, s))),
|
|
18988
|
+
return e.filter && (r = r.filter((d, u, f) => e.filter(d, u, f, s))), e.itemSort && (r = r.sort((d, u) => e.itemSort(d, u, s))), tt(r, (d) => {
|
|
18994
18989
|
const u = Pd(e.callbacks, d);
|
|
18995
18990
|
i.push(zt(u, "labelColor", this, d)), a.push(zt(u, "labelPointStyle", this, d)), o.push(zt(u, "labelTextColor", this, d));
|
|
18996
18991
|
}), this.labelColors = i, this.labelPointStyles = a, this.labelTextColors = o, this.dataPoints = r, r;
|
|
@@ -19058,7 +19053,7 @@ class br extends fn {
|
|
|
19058
19053
|
}, A = i.leftForLtr(f, c) + c / 2, g = b + l / 2;
|
|
19059
19054
|
e.strokeStyle = a.multiKeyBackground, e.fillStyle = a.multiKeyBackground, hr(e, m, A, g), e.strokeStyle = o.borderColor, e.fillStyle = o.backgroundColor, hr(e, m, A, g);
|
|
19060
19055
|
} else {
|
|
19061
|
-
e.lineWidth =
|
|
19056
|
+
e.lineWidth = Ge(o.borderWidth) ? Math.max(...Object.values(o.borderWidth)) : o.borderWidth || 1, e.strokeStyle = o.borderColor, e.setLineDash(o.borderDash || []), e.lineDashOffset = o.borderDashOffset || 0;
|
|
19062
19057
|
const m = i.leftForLtr(f, c), A = i.leftForLtr(i.xPlus(f, 1), c - 2), g = us(o.borderRadius);
|
|
19063
19058
|
Object.values(g).some((v) => v !== 0) ? (e.beginPath(), e.fillStyle = a.multiKeyBackground, Mi(e, {
|
|
19064
19059
|
x: m,
|
|
@@ -19083,12 +19078,12 @@ class br extends fn {
|
|
|
19083
19078
|
n.fillText(Z, b.x(e.x + h), e.y + f / 2), e.y += f + a;
|
|
19084
19079
|
}, A = b.textAlign(o);
|
|
19085
19080
|
let g, v, k, w, M, I, U;
|
|
19086
|
-
for (n.textAlign = o, n.textBaseline = "middle", n.font = u.string, e.x = oa(this, A, s), n.fillStyle = s.bodyColor,
|
|
19087
|
-
for (g = i[w], v = this.labelTextColors[w], n.fillStyle = v,
|
|
19081
|
+
for (n.textAlign = o, n.textBaseline = "middle", n.font = u.string, e.x = oa(this, A, s), n.fillStyle = s.bodyColor, tt(this.beforeBody, m), h = r && A !== "right" ? o === "center" ? c / 2 + d : c + 2 + d : 0, w = 0, I = i.length; w < I; ++w) {
|
|
19082
|
+
for (g = i[w], v = this.labelTextColors[w], n.fillStyle = v, tt(g.before, m), k = g.lines, r && k.length && (this._drawColorBox(n, e, w, b, s), f = Math.max(u.lineHeight, l)), M = 0, U = k.length; M < U; ++M)
|
|
19088
19083
|
m(k[M]), f = u.lineHeight;
|
|
19089
|
-
|
|
19084
|
+
tt(g.after, m);
|
|
19090
19085
|
}
|
|
19091
|
-
h = 0, f = u.lineHeight,
|
|
19086
|
+
h = 0, f = u.lineHeight, tt(this.afterBody, m), e.y -= a;
|
|
19092
19087
|
}
|
|
19093
19088
|
drawFooter(e, n, s) {
|
|
19094
19089
|
const i = this.footer, a = i.length;
|
|
@@ -19321,7 +19316,7 @@ class vr extends ws {
|
|
|
19321
19316
|
super.init(e);
|
|
19322
19317
|
}
|
|
19323
19318
|
parse(e, n) {
|
|
19324
|
-
if (
|
|
19319
|
+
if (Xe(e))
|
|
19325
19320
|
return null;
|
|
19326
19321
|
const s = this.getLabels();
|
|
19327
19322
|
return n = isFinite(n) && s[n] === e ? n : ix(s, e, ze(n, e), this._addedLabels), ax(n, s.length - 1);
|
|
@@ -19367,7 +19362,7 @@ me(vr, "id", "category"), me(vr, "defaults", {
|
|
|
19367
19362
|
}
|
|
19368
19363
|
});
|
|
19369
19364
|
function ox(t, e) {
|
|
19370
|
-
const n = [], { bounds: i, step: a, min: o, max: r, precision: l, count: c, maxTicks: d, maxDigits: u, includeBounds: f } = t, h = a || 1, b = d - 1, { min: m, max: A } = e, g = !
|
|
19365
|
+
const n = [], { bounds: i, step: a, min: o, max: r, precision: l, count: c, maxTicks: d, maxDigits: u, includeBounds: f } = t, h = a || 1, b = d - 1, { min: m, max: A } = e, g = !Xe(o), v = !Xe(r), k = !Xe(c), w = (A - m) / (u + 1);
|
|
19371
19366
|
let M = Gc((A - m) / b / h) * h, I, U, Z, Q;
|
|
19372
19367
|
if (M < 1e-14 && !g && !v)
|
|
19373
19368
|
return [
|
|
@@ -19378,9 +19373,9 @@ function ox(t, e) {
|
|
|
19378
19373
|
value: A
|
|
19379
19374
|
}
|
|
19380
19375
|
];
|
|
19381
|
-
Q = Math.ceil(A / M) - Math.floor(m / M), Q > b && (M = Gc(Q * M / b / h) * h),
|
|
19376
|
+
Q = Math.ceil(A / M) - Math.floor(m / M), Q > b && (M = Gc(Q * M / b / h) * h), Xe(l) || (I = Math.pow(10, l), M = Math.ceil(M * I) / I), i === "ticks" ? (U = Math.floor(m / M) * M, Z = Math.ceil(A / M) * M) : (U = m, Z = A), g && v && a && u2((r - o) / a, M / 1e3) ? (Q = Math.round(Math.min((r - o) / M, d)), M = (r - o) / Q, U = o, Z = r) : k ? (U = g ? o : U, Z = v ? r : Z, Q = c - 1, M = (Z - U) / Q) : (Q = (Z - U) / M, mi(Q, Math.round(Q), M / 1e3) ? Q = Math.round(Q) : Q = Math.ceil(Q));
|
|
19382
19377
|
const F = Math.max(Pc(M), Pc(U));
|
|
19383
|
-
I = Math.pow(10,
|
|
19378
|
+
I = Math.pow(10, Xe(l) ? F : l), U = Math.round(U * I) / I, Z = Math.round(Z * I) / I;
|
|
19384
19379
|
let O = 0;
|
|
19385
19380
|
for (g && (f && U !== o ? (n.push({
|
|
19386
19381
|
value: o
|
|
@@ -19407,7 +19402,7 @@ class Ya extends ws {
|
|
|
19407
19402
|
super(e), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
|
|
19408
19403
|
}
|
|
19409
19404
|
parse(e, n) {
|
|
19410
|
-
return
|
|
19405
|
+
return Xe(e) || (typeof e == "number" || e instanceof Number) && !isFinite(+e) ? null : +e;
|
|
19411
19406
|
}
|
|
19412
19407
|
handleTickRangeOptions() {
|
|
19413
19408
|
const { beginAtZero: e } = this.options, { minDefined: n, maxDefined: s } = this.getUserBounds();
|
|
@@ -19609,7 +19604,7 @@ function dx(t) {
|
|
|
19609
19604
|
r: t.right - t._padding.right,
|
|
19610
19605
|
t: t.top + t._padding.top,
|
|
19611
19606
|
b: t.bottom - t._padding.bottom
|
|
19612
|
-
}, n = Object.assign({}, e), s = [], i = [], a = t._pointLabels.length, o = t.options.pointLabels, r = o.centerPointLabels ?
|
|
19607
|
+
}, n = Object.assign({}, e), s = [], i = [], a = t._pointLabels.length, o = t.options.pointLabels, r = o.centerPointLabels ? Ke / a : 0;
|
|
19613
19608
|
for (let l = 0; l < a; l++) {
|
|
19614
19609
|
const c = o.setContext(t.getPointLabelContext(l));
|
|
19615
19610
|
i[l] = c.padding;
|
|
@@ -19659,7 +19654,7 @@ function px(t, e) {
|
|
|
19659
19654
|
function fx(t, e, n) {
|
|
19660
19655
|
const s = [], i = t._pointLabels.length, a = t.options, { centerPointLabels: o, display: r } = a.pointLabels, l = {
|
|
19661
19656
|
extra: Er(a) / 2,
|
|
19662
|
-
additionalAngle: o ?
|
|
19657
|
+
additionalAngle: o ? Ke / i : 0
|
|
19663
19658
|
};
|
|
19664
19659
|
let c;
|
|
19665
19660
|
for (let d = 0; d < i; d++) {
|
|
@@ -19680,7 +19675,7 @@ function Ax(t, e, n) {
|
|
|
19680
19675
|
}
|
|
19681
19676
|
function bx(t, e, n) {
|
|
19682
19677
|
const { left: s, top: i, right: a, bottom: o } = n, { backdropColor: r } = e;
|
|
19683
|
-
if (!
|
|
19678
|
+
if (!Xe(r)) {
|
|
19684
19679
|
const l = us(e.borderRadius), c = _t(e.backdropPadding);
|
|
19685
19680
|
t.fillStyle = r;
|
|
19686
19681
|
const d = s - c.left, u = i - c.top, f = a - s + c.width, h = o - i + c.height;
|
|
@@ -19767,13 +19762,13 @@ class ra extends Ya {
|
|
|
19767
19762
|
return St(e * n + En(s));
|
|
19768
19763
|
}
|
|
19769
19764
|
getDistanceFromCenterForValue(e) {
|
|
19770
|
-
if (
|
|
19765
|
+
if (Xe(e))
|
|
19771
19766
|
return NaN;
|
|
19772
19767
|
const n = this.drawingArea / (this.max - this.min);
|
|
19773
19768
|
return this.options.reverse ? (this.max - e) * n : (e - this.min) * n;
|
|
19774
19769
|
}
|
|
19775
19770
|
getValueForDistanceFromCenter(e) {
|
|
19776
|
-
if (
|
|
19771
|
+
if (Xe(e))
|
|
19777
19772
|
return NaN;
|
|
19778
19773
|
const n = e / (this.drawingArea / (this.max - this.min));
|
|
19779
19774
|
return this.options.reverse ? this.max - n : this.min + n;
|
|
@@ -19949,7 +19944,7 @@ function tu(t, e) {
|
|
|
19949
19944
|
return t - e;
|
|
19950
19945
|
}
|
|
19951
19946
|
function nu(t, e) {
|
|
19952
|
-
if (
|
|
19947
|
+
if (Xe(e))
|
|
19953
19948
|
return null;
|
|
19954
19949
|
const n = t._adapter, { parser: s, round: i, isoWeekday: a } = t._parseOpts;
|
|
19955
19950
|
let o = e;
|
|
@@ -20590,13 +20585,13 @@ const Ux = /* @__PURE__ */ vl("bar", ba), Tx = /* @__PURE__ */ vl("line", va), Z
|
|
|
20590
20585
|
plugins: { ...v, legend: k(!0) }
|
|
20591
20586
|
})), F = K(null), O = K(null), N = K(null), D = K(null);
|
|
20592
20587
|
function x() {
|
|
20593
|
-
var j, se, ce, ae,
|
|
20588
|
+
var j, se, ce, ae, ke;
|
|
20594
20589
|
const C = ((j = O.value) == null ? void 0 : j.chart) ?? ((se = N.value) == null ? void 0 : se.chart) ?? ((ce = D.value) == null ? void 0 : ce.chart);
|
|
20595
20590
|
if (!C) {
|
|
20596
|
-
const
|
|
20597
|
-
return
|
|
20591
|
+
const Ne = (ae = F.value) == null ? void 0 : ae.querySelector("canvas");
|
|
20592
|
+
return Ne ? { dataUrl: Ne.toDataURL("image/png"), width: Ne.width, height: Ne.height } : null;
|
|
20598
20593
|
}
|
|
20599
|
-
const L = ((
|
|
20594
|
+
const L = ((ke = a.value) == null ? void 0 : ke.chartType) === "pie", V = 1160, H = L ? 620 : 580;
|
|
20600
20595
|
C.resize(V, H);
|
|
20601
20596
|
const z = C.canvas.toDataURL("image/png"), S = C.canvas.width, W = C.canvas.height;
|
|
20602
20597
|
return C.resize(), { dataUrl: z, width: S, height: W };
|
|
@@ -20609,19 +20604,19 @@ const Ux = /* @__PURE__ */ vl("bar", ba), Tx = /* @__PURE__ */ vl("line", va), Z
|
|
|
20609
20604
|
class: "chart-card__canvas-wrapper",
|
|
20610
20605
|
style: jt({ height: `${c.value}px` })
|
|
20611
20606
|
}, [
|
|
20612
|
-
a.value.chartType === "line" && w.value ? (E(),
|
|
20607
|
+
a.value.chartType === "line" && w.value ? (E(), Je(Ae(Tx), {
|
|
20613
20608
|
key: 0,
|
|
20614
20609
|
ref_key: "lineRef",
|
|
20615
20610
|
ref: O,
|
|
20616
20611
|
data: w.value,
|
|
20617
20612
|
options: U.value
|
|
20618
|
-
}, null, 8, ["data", "options"])) : a.value.chartType === "bar" && M.value ? (E(),
|
|
20613
|
+
}, null, 8, ["data", "options"])) : a.value.chartType === "bar" && M.value ? (E(), Je(Ae(Ux), {
|
|
20619
20614
|
key: 1,
|
|
20620
20615
|
ref_key: "barRef",
|
|
20621
20616
|
ref: N,
|
|
20622
20617
|
data: M.value,
|
|
20623
20618
|
options: Z.value
|
|
20624
|
-
}, null, 8, ["data", "options"])) : a.value.chartType === "pie" && I.value ? (E(),
|
|
20619
|
+
}, null, 8, ["data", "options"])) : a.value.chartType === "pie" && I.value ? (E(), Je(Ae(Zx), {
|
|
20625
20620
|
key: 2,
|
|
20626
20621
|
ref_key: "pieRef",
|
|
20627
20622
|
ref: D,
|
|
@@ -20699,10 +20694,10 @@ const Li = /* @__PURE__ */ Qe(Wx, [["__scopeId", "data-v-785f9338"]]), Bx = {
|
|
|
20699
20694
|
});
|
|
20700
20695
|
return (l, c) => n.value ? (E(), R("div", Bx, [
|
|
20701
20696
|
(E(!0), R(ie, null, ge(r.value, (d, u) => (E(), R(ie, { key: u }, [
|
|
20702
|
-
d.type === "text" && d.text.trim() ? (E(),
|
|
20697
|
+
d.type === "text" && d.text.trim() ? (E(), Je(lr, {
|
|
20703
20698
|
key: 0,
|
|
20704
20699
|
content: d.text
|
|
20705
|
-
}, null, 8, ["content"])) : d.type === "chart" && a.value.has(d.queryId) ? (E(),
|
|
20700
|
+
}, null, 8, ["content"])) : d.type === "chart" && a.value.has(d.queryId) ? (E(), Je(Li, {
|
|
20706
20701
|
key: 1,
|
|
20707
20702
|
"tool-call": a.value.get(d.queryId)
|
|
20708
20703
|
}, null, 8, ["tool-call"])) : G("", !0)
|
|
@@ -21590,7 +21585,7 @@ const Rf = /* @__PURE__ */ Qe(ZN, [["__scopeId", "data-v-2f290d2e"]]), _N = { cl
|
|
|
21590
21585
|
}
|
|
21591
21586
|
}
|
|
21592
21587
|
}
|
|
21593
|
-
return (l, c) => i.value ? (E(),
|
|
21588
|
+
return (l, c) => i.value ? (E(), Je(Rf, {
|
|
21594
21589
|
key: 0,
|
|
21595
21590
|
variant: "excel",
|
|
21596
21591
|
title: i.value.title,
|
|
@@ -21796,7 +21791,7 @@ const BN = { class: "sections" }, zN = {
|
|
|
21796
21791
|
function g(v) {
|
|
21797
21792
|
return v.rows.length > 5;
|
|
21798
21793
|
}
|
|
21799
|
-
return (v, k) => s.value ? (E(),
|
|
21794
|
+
return (v, k) => s.value ? (E(), Je(Rf, {
|
|
21800
21795
|
key: 0,
|
|
21801
21796
|
variant: "docx",
|
|
21802
21797
|
title: s.value.artifact.title,
|
|
@@ -21812,7 +21807,7 @@ const BN = { class: "sections" }, zN = {
|
|
|
21812
21807
|
(E(!0), R(ie, null, ge(s.value.artifact.sections, (w, M) => (E(), R(ie, {
|
|
21813
21808
|
key: w.id ?? String(M)
|
|
21814
21809
|
}, [
|
|
21815
|
-
w.type === "heading" ? (E(),
|
|
21810
|
+
w.type === "heading" ? (E(), Je(Ga(`h${w.level}`), {
|
|
21816
21811
|
key: 0,
|
|
21817
21812
|
class: be(["ds ds--heading", `ds--h${w.level}`])
|
|
21818
21813
|
}, {
|
|
@@ -21842,7 +21837,7 @@ const BN = { class: "sections" }, zN = {
|
|
|
21842
21837
|
]),
|
|
21843
21838
|
g(w) ? (E(), R("p", JN, "+" + T(w.rows.length - 5) + " more rows in export", 1)) : G("", !0)
|
|
21844
21839
|
])) : w.type === "chart" ? (E(), R("div", GN, [
|
|
21845
|
-
w.chartConfig ? (E(),
|
|
21840
|
+
w.chartConfig ? (E(), Je(Li, {
|
|
21846
21841
|
key: 0,
|
|
21847
21842
|
ref_for: !0,
|
|
21848
21843
|
ref: (I) => o(w.id ?? w.queryId, I),
|
|
@@ -22233,7 +22228,7 @@ const AV = {
|
|
|
22233
22228
|
key: O,
|
|
22234
22229
|
class: "dp__chart"
|
|
22235
22230
|
}, [
|
|
22236
|
-
|
|
22231
|
+
qe(Li, { "chart-config": F }, null, 8, ["chart-config"])
|
|
22237
22232
|
]))), 128)),
|
|
22238
22233
|
(Z = t.driver.actions) != null && Z.length ? (E(), R("div", wV, [
|
|
22239
22234
|
I[8] || (I[8] = p("span", { class: "dp__section-label" }, "Take action", -1)),
|
|
@@ -22590,7 +22585,7 @@ const If = /* @__PURE__ */ Qe(HV, [["__scopeId", "data-v-210a7965"]]), XV = { ke
|
|
|
22590
22585
|
])
|
|
22591
22586
|
], 8, uS),
|
|
22592
22587
|
i.value.has(g) ? (E(), R("div", AS, [
|
|
22593
|
-
|
|
22588
|
+
qe(If, {
|
|
22594
22589
|
driver: A,
|
|
22595
22590
|
"rca-id": s.value.rcaId,
|
|
22596
22591
|
"message-id": t.messageId,
|
|
@@ -22769,22 +22764,22 @@ const VS = /* @__PURE__ */ Qe(NS, [["__scopeId", "data-v-22d347e4"]]), SS = { cl
|
|
|
22769
22764
|
p("span", null, null, -1)
|
|
22770
22765
|
])])) : (E(), R("span", ZS, T(n.value), 1))
|
|
22771
22766
|
]),
|
|
22772
|
-
(d = t.message.toolCalls) != null && d.length ? (E(),
|
|
22767
|
+
(d = t.message.toolCalls) != null && d.length ? (E(), Je(qx, {
|
|
22773
22768
|
key: 0,
|
|
22774
22769
|
"tool-calls": t.message.toolCalls
|
|
22775
22770
|
}, null, 8, ["tool-calls"])) : G("", !0),
|
|
22776
|
-
t.message.retrievedFacts ? (E(),
|
|
22771
|
+
t.message.retrievedFacts ? (E(), Je(sM, {
|
|
22777
22772
|
key: 1,
|
|
22778
22773
|
facts: t.message.retrievedFacts
|
|
22779
22774
|
}, null, 8, ["facts"])) : G("", !0),
|
|
22780
22775
|
r.value.length > 0 ? (E(!0), R(ie, { key: 2 }, ge(r.value, (f, h) => (E(), R(ie, {
|
|
22781
22776
|
key: f.type === "chart" ? `chart-${f.queryId}-${h}` : `text-${h}`
|
|
22782
22777
|
}, [
|
|
22783
|
-
f.type === "text" && f.text.trim() ? (E(),
|
|
22778
|
+
f.type === "text" && f.text.trim() ? (E(), Je(lr, {
|
|
22784
22779
|
key: 0,
|
|
22785
22780
|
content: f.text,
|
|
22786
22781
|
"is-streaming": t.message.isStreaming
|
|
22787
|
-
}, null, 8, ["content", "is-streaming"])) : f.type === "chart" && a.value.has(f.queryId) ? (E(),
|
|
22782
|
+
}, null, 8, ["content", "is-streaming"])) : f.type === "chart" && a.value.has(f.queryId) ? (E(), Je(Li, {
|
|
22788
22783
|
key: 1,
|
|
22789
22784
|
"tool-call": a.value.get(f.queryId)
|
|
22790
22785
|
}, null, 8, ["tool-call"])) : f.type === "chart" && t.message.isStreaming ? (E(), R("div", _S, [...c[2] || (c[2] = [
|
|
@@ -22795,7 +22790,7 @@ const VS = /* @__PURE__ */ Qe(NS, [["__scopeId", "data-v-22d347e4"]]), SS = { cl
|
|
|
22795
22790
|
p("div")
|
|
22796
22791
|
], -1)
|
|
22797
22792
|
])])) : f.type === "chart" ? (E(), R("span", FS, "Chart unavailable")) : G("", !0)
|
|
22798
|
-
], 64))), 128)) : t.message.content ? (E(),
|
|
22793
|
+
], 64))), 128)) : t.message.content ? (E(), Je(lr, {
|
|
22799
22794
|
key: 3,
|
|
22800
22795
|
content: t.message.content,
|
|
22801
22796
|
"is-streaming": t.message.isStreaming
|
|
@@ -22808,18 +22803,18 @@ const VS = /* @__PURE__ */ Qe(NS, [["__scopeId", "data-v-22d347e4"]]), SS = { cl
|
|
|
22808
22803
|
(E(!0), R(ie, null, ge(t.message.toolCalls, (f) => (E(), R(ie, {
|
|
22809
22804
|
key: f.id
|
|
22810
22805
|
}, [
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
|
|
22815
|
-
|
|
22816
|
-
|
|
22817
|
-
|
|
22818
|
-
|
|
22819
|
-
|
|
22820
|
-
|
|
22821
|
-
|
|
22822
|
-
|
|
22806
|
+
qe(uM, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22807
|
+
qe(vM, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22808
|
+
qe(UM, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22809
|
+
qe(sN, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22810
|
+
qe(bN, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22811
|
+
qe(wN, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22812
|
+
qe(Lx, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22813
|
+
qe(QN, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22814
|
+
qe(cV, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22815
|
+
qe(kS, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22816
|
+
qe(IS, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22817
|
+
qe(VS, { "tool-call": f }, null, 8, ["tool-call"]),
|
|
22823
22818
|
f.name === "navigate" && f.state === "output-available" && f.result ? (E(), R("div", WS, " → Navigated to " + T(f.result.pageName), 1)) : G("", !0)
|
|
22824
22819
|
], 64))), 128))
|
|
22825
22820
|
])
|
|
@@ -22965,10 +22960,10 @@ const zS = /* @__PURE__ */ Qe(BS, [["__scopeId", "data-v-711b8893"]]), LS = {
|
|
|
22965
22960
|
class: "msgs__item",
|
|
22966
22961
|
"data-message-id": M.id
|
|
22967
22962
|
}, [
|
|
22968
|
-
M.role === "user" ? (E(),
|
|
22963
|
+
M.role === "user" ? (E(), Je(LE, {
|
|
22969
22964
|
key: 0,
|
|
22970
22965
|
message: M
|
|
22971
|
-
}, null, 8, ["message"])) : (E(),
|
|
22966
|
+
}, null, 8, ["message"])) : (E(), Je(zS, {
|
|
22972
22967
|
key: 1,
|
|
22973
22968
|
message: M
|
|
22974
22969
|
}, null, 8, ["message"]))
|
|
@@ -23281,7 +23276,7 @@ const AC = /* @__PURE__ */ Qe(gC, [["__scopeId", "data-v-89047f46"]]), bC = ["ar
|
|
|
23281
23276
|
function a() {
|
|
23282
23277
|
s("update:show", !1);
|
|
23283
23278
|
}
|
|
23284
|
-
return (o, r) => (E(),
|
|
23279
|
+
return (o, r) => (E(), Je(fu, { to: "body" }, [
|
|
23285
23280
|
t.show ? (E(), R("div", {
|
|
23286
23281
|
key: 0,
|
|
23287
23282
|
class: "attachment-dialog__modal",
|
|
@@ -23405,7 +23400,7 @@ const Rl = /* @__PURE__ */ Qe(VC, [["__scopeId", "data-v-9c227531"]]), SC = { cl
|
|
|
23405
23400
|
onClick: yt(h, ["stop"])
|
|
23406
23401
|
}, "×")) : G("", !0)
|
|
23407
23402
|
], 10, CC),
|
|
23408
|
-
|
|
23403
|
+
qe(Rl, {
|
|
23409
23404
|
show: i.value,
|
|
23410
23405
|
"onUpdate:show": m[0] || (m[0] = (g) => i.value = g),
|
|
23411
23406
|
search: r.value,
|
|
@@ -23519,7 +23514,7 @@ const FC = /* @__PURE__ */ Qe(_C, [["__scopeId", "data-v-9a0985d4"]]), QC = {
|
|
|
23519
23514
|
}
|
|
23520
23515
|
return Rt(() => {
|
|
23521
23516
|
f();
|
|
23522
|
-
}), (v, k) => (E(),
|
|
23517
|
+
}), (v, k) => (E(), Je(Rl, {
|
|
23523
23518
|
show: t.show,
|
|
23524
23519
|
"onUpdate:show": k[0] || (k[0] = (w) => s("update:show", w)),
|
|
23525
23520
|
search: o.value,
|
|
@@ -23627,7 +23622,7 @@ const OC = /* @__PURE__ */ Qe(YC, [["__scopeId", "data-v-02b66981"]]), JC = { cl
|
|
|
23627
23622
|
onClick: yt(r, ["stop"])
|
|
23628
23623
|
}, "×")) : G("", !0)
|
|
23629
23624
|
], 10, GC),
|
|
23630
|
-
|
|
23625
|
+
qe(OC, {
|
|
23631
23626
|
show: i.value,
|
|
23632
23627
|
"onUpdate:show": d[0] || (d[0] = (u) => i.value = u),
|
|
23633
23628
|
"initial-selection": n.model,
|
|
@@ -23724,7 +23719,7 @@ const XC = /* @__PURE__ */ Qe(HC, [["__scopeId", "data-v-a84804cd"]]), KC = { cl
|
|
|
23724
23719
|
onClick: yt(h, ["stop"])
|
|
23725
23720
|
}, "×")) : G("", !0)
|
|
23726
23721
|
], 10, qC),
|
|
23727
|
-
|
|
23722
|
+
qe(Rl, {
|
|
23728
23723
|
show: i.value,
|
|
23729
23724
|
"onUpdate:show": A[0] || (A[0] = (v) => i.value = v),
|
|
23730
23725
|
search: r.value,
|
|
@@ -24188,10 +24183,10 @@ const vU = /* @__PURE__ */ Qe(bU, [["__scopeId", "data-v-8b81751e"]]), yU = { cl
|
|
|
24188
24183
|
});
|
|
24189
24184
|
}, y.readAsDataURL(te);
|
|
24190
24185
|
}
|
|
24191
|
-
function
|
|
24186
|
+
function ke(te) {
|
|
24192
24187
|
u.value.splice(te, 1);
|
|
24193
24188
|
}
|
|
24194
|
-
async function
|
|
24189
|
+
async function Ne() {
|
|
24195
24190
|
if (U.value)
|
|
24196
24191
|
return;
|
|
24197
24192
|
const te = v.value;
|
|
@@ -24249,7 +24244,7 @@ ${y}` : J;
|
|
|
24249
24244
|
(fe = (te = A.value) == null ? void 0 : te.querySelector(".composer__slash-item--active")) == null || fe.scrollIntoView({ block: "nearest" });
|
|
24250
24245
|
});
|
|
24251
24246
|
}
|
|
24252
|
-
function
|
|
24247
|
+
function et(te) {
|
|
24253
24248
|
if (N.value) {
|
|
24254
24249
|
if (te.key === "ArrowDown") {
|
|
24255
24250
|
te.preventDefault(), g.value = (g.value + 1) % O.value.length, Ze();
|
|
@@ -24270,7 +24265,7 @@ ${y}` : J;
|
|
|
24270
24265
|
te.preventDefault(), C();
|
|
24271
24266
|
return;
|
|
24272
24267
|
}
|
|
24273
|
-
te.key === "Enter" && !te.shiftKey && (te.preventDefault(),
|
|
24268
|
+
te.key === "Enter" && !te.shiftKey && (te.preventDefault(), Ne());
|
|
24274
24269
|
}
|
|
24275
24270
|
return (te, fe) => {
|
|
24276
24271
|
var Se, y, J, Y;
|
|
@@ -24347,13 +24342,13 @@ ${y}` : J;
|
|
|
24347
24342
|
])) : G("", !0),
|
|
24348
24343
|
(Se = v.value) != null && Se.description ? (E(), R("p", NU, T(v.value.description), 1)) : G("", !0),
|
|
24349
24344
|
(J = (y = v.value) == null ? void 0 : y.attachments) != null && J.length ? (E(), R("div", VU, [
|
|
24350
|
-
(E(!0), R(ie, null, ge(v.value.attachments, (_) => (E(),
|
|
24345
|
+
(E(!0), R(ie, null, ge(v.value.attachments, (_) => (E(), Je(Ga(_.component), {
|
|
24351
24346
|
key: _.key,
|
|
24352
24347
|
model: k.value[_.key],
|
|
24353
24348
|
"onUpdate:model": (B) => k.value[_.key] = B
|
|
24354
24349
|
}, null, 40, ["model", "onUpdate:model"]))), 128))
|
|
24355
24350
|
])) : G("", !0),
|
|
24356
|
-
(Y = v.value) != null && Y.mcpPrompt ? (E(),
|
|
24351
|
+
(Y = v.value) != null && Y.mcpPrompt ? (E(), Je(vU, {
|
|
24357
24352
|
key: 3,
|
|
24358
24353
|
args: v.value.mcpPrompt.args,
|
|
24359
24354
|
"prompt-name": v.value.mcpPrompt.serverPromptName,
|
|
@@ -24370,7 +24365,7 @@ ${y}` : J;
|
|
|
24370
24365
|
p("button", {
|
|
24371
24366
|
class: "composer__preview-remove",
|
|
24372
24367
|
type: "button",
|
|
24373
|
-
onClick: (P) =>
|
|
24368
|
+
onClick: (P) => ke(B),
|
|
24374
24369
|
"aria-label": "Remove image"
|
|
24375
24370
|
}, [...fe[6] || (fe[6] = [
|
|
24376
24371
|
p("svg", {
|
|
@@ -24418,7 +24413,7 @@ ${y}` : J;
|
|
|
24418
24413
|
p("button", {
|
|
24419
24414
|
class: "composer__file-chip-remove",
|
|
24420
24415
|
type: "button",
|
|
24421
|
-
onClick: (P) =>
|
|
24416
|
+
onClick: (P) => ke(B),
|
|
24422
24417
|
"aria-label": "Remove attachment"
|
|
24423
24418
|
}, [...fe[7] || (fe[7] = [
|
|
24424
24419
|
p("svg", {
|
|
@@ -24456,7 +24451,7 @@ ${y}` : J;
|
|
|
24456
24451
|
placeholder: Ae(s)("remy.chat.placeholder"),
|
|
24457
24452
|
rows: "1",
|
|
24458
24453
|
class: "composer__textarea",
|
|
24459
|
-
onKeydown:
|
|
24454
|
+
onKeydown: et
|
|
24460
24455
|
}, null, 40, QU), [
|
|
24461
24456
|
[Wt, M.value]
|
|
24462
24457
|
]),
|
|
@@ -24518,7 +24513,7 @@ ${y}` : J;
|
|
|
24518
24513
|
class: be(["composer__send", { "composer__send--active": I.value }]),
|
|
24519
24514
|
disabled: U.value,
|
|
24520
24515
|
type: "button",
|
|
24521
|
-
onClick:
|
|
24516
|
+
onClick: Ne,
|
|
24522
24517
|
"aria-label": f.value ? "Uploading image…" : "Send message"
|
|
24523
24518
|
}, [
|
|
24524
24519
|
f.value ? (E(), R("svg", LU, [...fe[11] || (fe[11] = [
|
|
@@ -24560,7 +24555,7 @@ ${y}` : J;
|
|
|
24560
24555
|
p("polyline", { points: "2 12 12 17 22 12" })
|
|
24561
24556
|
], -1)
|
|
24562
24557
|
])], 2)) : G("", !0),
|
|
24563
|
-
vt(
|
|
24558
|
+
vt(qe(cC, {
|
|
24564
24559
|
snapshot: r.value,
|
|
24565
24560
|
onClose: fe[4] || (fe[4] = (_) => e.value = !1)
|
|
24566
24561
|
}, null, 8, ["snapshot"]), [
|
|
@@ -25013,9 +25008,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
25013
25008
|
var W = 0;
|
|
25014
25009
|
b && (W |= 8), U || !D && !x || (W |= 2048);
|
|
25015
25010
|
var j = 0, se = 0;
|
|
25016
|
-
H && (j |= 16), g === "UNIX" ? (se = 798, j |= function(ae,
|
|
25017
|
-
var
|
|
25018
|
-
return ae || (
|
|
25011
|
+
H && (j |= 16), g === "UNIX" ? (se = 798, j |= function(ae, ke) {
|
|
25012
|
+
var Ne = ae;
|
|
25013
|
+
return ae || (Ne = ke ? 16893 : 33204), (65535 & Ne) << 16;
|
|
25019
25014
|
}(M.unixPermissions, H)) : (se = 20, j |= function(ae) {
|
|
25020
25015
|
return 63 & (ae || 0);
|
|
25021
25016
|
}(M.dosPermissions)), k = z.getUTCHours(), k <<= 6, k |= z.getUTCMinutes(), k <<= 5, k |= z.getUTCSeconds() / 2, w = z.getUTCFullYear() - 1980, w <<= 4, w |= z.getUTCMonth() + 1, w <<= 5, w |= z.getUTCDate(), D && (L = a(1, 1) + a(d(Z), 4) + Q, C += "up" + a(L.length, 2) + L), x && (V = a(1, 1) + a(d(O), 4) + N, C += "uc" + a(V.length, 2) + V);
|
|
@@ -26408,15 +26403,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26408
26403
|
y.pending_buf[y.pending++] = J >>> 8 & 255, y.pending_buf[y.pending++] = 255 & J;
|
|
26409
26404
|
}
|
|
26410
26405
|
function ae(y, J) {
|
|
26411
|
-
var Y, _, B = y.max_chain_length, P = y.strstart, ee = y.prev_length, re = y.nice_match, q = y.strstart > y.w_size - O ? y.strstart - (y.w_size - O) : 0, ue = y.window, ve = y.w_mask, he = y.prev,
|
|
26406
|
+
var Y, _, B = y.max_chain_length, P = y.strstart, ee = y.prev_length, re = y.nice_match, q = y.strstart > y.w_size - O ? y.strstart - (y.w_size - O) : 0, ue = y.window, ve = y.w_mask, he = y.prev, Re = y.strstart + F, Oe = ue[P + ee - 1], Be = ue[P + ee];
|
|
26412
26407
|
y.prev_length >= y.good_match && (B >>= 2), re > y.lookahead && (re = y.lookahead);
|
|
26413
26408
|
do
|
|
26414
26409
|
if (ue[(Y = J) + ee] === Be && ue[Y + ee - 1] === Oe && ue[Y] === ue[P] && ue[++Y] === ue[P + 1]) {
|
|
26415
26410
|
P += 2, Y++;
|
|
26416
26411
|
do
|
|
26417
26412
|
;
|
|
26418
|
-
while (ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && P <
|
|
26419
|
-
if (_ = F - (
|
|
26413
|
+
while (ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && ue[++P] === ue[++Y] && P < Re);
|
|
26414
|
+
if (_ = F - (Re - P), P = Re - F, ee < _) {
|
|
26420
26415
|
if (y.match_start = J, re <= (ee = _))
|
|
26421
26416
|
break;
|
|
26422
26417
|
Oe = ue[P + ee - 1], Be = ue[P + ee];
|
|
@@ -26425,7 +26420,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26425
26420
|
while ((J = he[J & ve]) > q && --B != 0);
|
|
26426
26421
|
return ee <= y.lookahead ? ee : y.lookahead;
|
|
26427
26422
|
}
|
|
26428
|
-
function
|
|
26423
|
+
function ke(y) {
|
|
26429
26424
|
var J, Y, _, B, P, ee, re, q, ue, ve, he = y.w_size;
|
|
26430
26425
|
do {
|
|
26431
26426
|
if (B = y.window_size - y.lookahead - y.strstart, y.strstart >= he + (he - O)) {
|
|
@@ -26442,10 +26437,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26442
26437
|
;
|
|
26443
26438
|
} while (y.lookahead < O && y.strm.avail_in !== 0);
|
|
26444
26439
|
}
|
|
26445
|
-
function
|
|
26440
|
+
function Ne(y, J) {
|
|
26446
26441
|
for (var Y, _; ; ) {
|
|
26447
26442
|
if (y.lookahead < O) {
|
|
26448
|
-
if (
|
|
26443
|
+
if (ke(y), y.lookahead < O && J === u)
|
|
26449
26444
|
return x;
|
|
26450
26445
|
if (y.lookahead === 0)
|
|
26451
26446
|
break;
|
|
@@ -26467,7 +26462,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26467
26462
|
function ye(y, J) {
|
|
26468
26463
|
for (var Y, _, B; ; ) {
|
|
26469
26464
|
if (y.lookahead < O) {
|
|
26470
|
-
if (
|
|
26465
|
+
if (ke(y), y.lookahead < O && J === u)
|
|
26471
26466
|
return x;
|
|
26472
26467
|
if (y.lookahead === 0)
|
|
26473
26468
|
break;
|
|
@@ -26488,7 +26483,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26488
26483
|
function Ze(y, J, Y, _, B) {
|
|
26489
26484
|
this.good_length = y, this.max_lazy = J, this.nice_length = Y, this.max_chain = _, this.func = B;
|
|
26490
26485
|
}
|
|
26491
|
-
function
|
|
26486
|
+
function et() {
|
|
26492
26487
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = v, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new o.Buf16(2 * U), this.dyn_dtree = new o.Buf16(2 * (2 * M + 1)), this.bl_tree = new o.Buf16(2 * (2 * I + 1)), S(this.dyn_ltree), S(this.dyn_dtree), S(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new o.Buf16(Z + 1), this.heap = new o.Buf16(2 * w + 1), S(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new o.Buf16(2 * w + 1), S(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
26493
26488
|
}
|
|
26494
26489
|
function te(y) {
|
|
@@ -26508,14 +26503,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26508
26503
|
if (J === m && (J = 6), _ < 0 ? (ee = 0, _ = -_) : 15 < _ && (ee = 2, _ -= 16), B < 1 || k < B || Y !== v || _ < 8 || 15 < _ || J < 0 || 9 < J || P < 0 || A < P)
|
|
26509
26504
|
return H(y, b);
|
|
26510
26505
|
_ === 8 && (_ = 9);
|
|
26511
|
-
var re = new
|
|
26506
|
+
var re = new et();
|
|
26512
26507
|
return (y.state = re).strm = y, re.wrap = ee, re.gzhead = null, re.w_bits = _, re.w_size = 1 << re.w_bits, re.w_mask = re.w_size - 1, re.hash_bits = B + 7, re.hash_size = 1 << re.hash_bits, re.hash_mask = re.hash_size - 1, re.hash_shift = ~~((re.hash_bits + Q - 1) / Q), re.window = new o.Buf8(2 * re.w_size), re.head = new o.Buf16(re.hash_size), re.prev = new o.Buf16(re.w_size), re.lit_bufsize = 1 << B + 6, re.pending_buf_size = 4 * re.lit_bufsize, re.pending_buf = new o.Buf8(re.pending_buf_size), re.d_buf = 1 * re.lit_bufsize, re.l_buf = 3 * re.lit_bufsize, re.level = J, re.strategy = P, re.method = Y, fe(y);
|
|
26513
26508
|
}
|
|
26514
26509
|
a = [new Ze(0, 0, 0, 0, function(y, J) {
|
|
26515
26510
|
var Y = 65535;
|
|
26516
26511
|
for (Y > y.pending_buf_size - 5 && (Y = y.pending_buf_size - 5); ; ) {
|
|
26517
26512
|
if (y.lookahead <= 1) {
|
|
26518
|
-
if (
|
|
26513
|
+
if (ke(y), y.lookahead === 0 && J === u)
|
|
26519
26514
|
return x;
|
|
26520
26515
|
if (y.lookahead === 0)
|
|
26521
26516
|
break;
|
|
@@ -26526,7 +26521,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26526
26521
|
return x;
|
|
26527
26522
|
}
|
|
26528
26523
|
return y.insert = 0, J === f ? (j(y, !0), y.strm.avail_out === 0 ? L : V) : (y.strstart > y.block_start && (j(y, !1), y.strm.avail_out), x);
|
|
26529
|
-
}), new Ze(4, 4, 8, 4,
|
|
26524
|
+
}), new Ze(4, 4, 8, 4, Ne), new Ze(4, 5, 16, 8, Ne), new Ze(4, 6, 32, 32, Ne), new Ze(4, 4, 16, 16, ye), new Ze(8, 16, 32, 32, ye), new Ze(8, 16, 128, 128, ye), new Ze(8, 32, 128, 256, ye), new Ze(32, 128, 258, 1024, ye), new Ze(32, 258, 258, 4096, ye)], i.deflateInit = function(y, J) {
|
|
26530
26525
|
return Se(y, J, v, 15, 8, 0);
|
|
26531
26526
|
}, i.deflateInit2 = Se, i.deflateReset = fe, i.deflateResetKeep = te, i.deflateSetHeader = function(y, J) {
|
|
26532
26527
|
return y && y.state ? y.state.wrap !== 2 ? b : (y.state.gzhead = J, h) : b;
|
|
@@ -26586,7 +26581,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26586
26581
|
if (y.avail_in !== 0 || _.lookahead !== 0 || J !== u && _.status !== 666) {
|
|
26587
26582
|
var re = _.strategy === 2 ? function(q, ue) {
|
|
26588
26583
|
for (var ve; ; ) {
|
|
26589
|
-
if (q.lookahead === 0 && (
|
|
26584
|
+
if (q.lookahead === 0 && (ke(q), q.lookahead === 0)) {
|
|
26590
26585
|
if (ue === u)
|
|
26591
26586
|
return x;
|
|
26592
26587
|
break;
|
|
@@ -26596,19 +26591,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26596
26591
|
}
|
|
26597
26592
|
return q.insert = 0, ue === f ? (j(q, !0), q.strm.avail_out === 0 ? L : V) : q.last_lit && (j(q, !1), q.strm.avail_out === 0) ? x : C;
|
|
26598
26593
|
}(_, J) : _.strategy === 3 ? function(q, ue) {
|
|
26599
|
-
for (var ve, he,
|
|
26594
|
+
for (var ve, he, Re, Oe, Be = q.window; ; ) {
|
|
26600
26595
|
if (q.lookahead <= F) {
|
|
26601
|
-
if (
|
|
26596
|
+
if (ke(q), q.lookahead <= F && ue === u)
|
|
26602
26597
|
return x;
|
|
26603
26598
|
if (q.lookahead === 0)
|
|
26604
26599
|
break;
|
|
26605
26600
|
}
|
|
26606
|
-
if (q.match_length = 0, q.lookahead >= Q && 0 < q.strstart && (he = Be[
|
|
26601
|
+
if (q.match_length = 0, q.lookahead >= Q && 0 < q.strstart && (he = Be[Re = q.strstart - 1]) === Be[++Re] && he === Be[++Re] && he === Be[++Re]) {
|
|
26607
26602
|
Oe = q.strstart + F;
|
|
26608
26603
|
do
|
|
26609
26604
|
;
|
|
26610
|
-
while (he === Be[++
|
|
26611
|
-
q.match_length = F - (Oe -
|
|
26605
|
+
while (he === Be[++Re] && he === Be[++Re] && he === Be[++Re] && he === Be[++Re] && he === Be[++Re] && he === Be[++Re] && he === Be[++Re] && he === Be[++Re] && Re < Oe);
|
|
26606
|
+
q.match_length = F - (Oe - Re), q.match_length > q.lookahead && (q.match_length = q.lookahead);
|
|
26612
26607
|
}
|
|
26613
26608
|
if (q.match_length >= Q ? (ve = r._tr_tally(q, 1, q.match_length - Q), q.lookahead -= q.match_length, q.strstart += q.match_length, q.match_length = 0) : (ve = r._tr_tally(q, 0, q.window[q.strstart]), q.lookahead--, q.strstart++), ve && (j(q, !1), q.strm.avail_out === 0))
|
|
26614
26609
|
return x;
|
|
@@ -26628,10 +26623,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26628
26623
|
var Y, _, B, P, ee, re, q, ue, ve = J.length;
|
|
26629
26624
|
if (!y || !y.state || (P = (Y = y.state).wrap) === 2 || P === 1 && Y.status !== N || Y.lookahead)
|
|
26630
26625
|
return b;
|
|
26631
|
-
for (P === 1 && (y.adler = l(y.adler, J, ve, 0)), Y.wrap = 0, ve >= Y.w_size && (P === 0 && (S(Y.head), Y.strstart = 0, Y.block_start = 0, Y.insert = 0), ue = new o.Buf8(Y.w_size), o.arraySet(ue, J, ve - Y.w_size, Y.w_size, 0), J = ue, ve = Y.w_size), ee = y.avail_in, re = y.next_in, q = y.input, y.avail_in = ve, y.next_in = 0, y.input = J,
|
|
26626
|
+
for (P === 1 && (y.adler = l(y.adler, J, ve, 0)), Y.wrap = 0, ve >= Y.w_size && (P === 0 && (S(Y.head), Y.strstart = 0, Y.block_start = 0, Y.insert = 0), ue = new o.Buf8(Y.w_size), o.arraySet(ue, J, ve - Y.w_size, Y.w_size, 0), J = ue, ve = Y.w_size), ee = y.avail_in, re = y.next_in, q = y.input, y.avail_in = ve, y.next_in = 0, y.input = J, ke(Y); Y.lookahead >= Q; ) {
|
|
26632
26627
|
for (_ = Y.strstart, B = Y.lookahead - (Q - 1); Y.ins_h = (Y.ins_h << Y.hash_shift ^ Y.window[_ + Q - 1]) & Y.hash_mask, Y.prev[_ & Y.w_mask] = Y.head[Y.ins_h], Y.head[Y.ins_h] = _, _++, --B; )
|
|
26633
26628
|
;
|
|
26634
|
-
Y.strstart = _, Y.lookahead = Q - 1,
|
|
26629
|
+
Y.strstart = _, Y.lookahead = Q - 1, ke(Y);
|
|
26635
26630
|
}
|
|
26636
26631
|
return Y.strstart += Y.lookahead, Y.block_start = Y.strstart, Y.insert = Y.lookahead, Y.lookahead = 0, Y.match_length = Y.prev_length = Q - 1, Y.match_available = 0, y.next_in = re, y.input = q, y.avail_in = ee, Y.wrap = P, h;
|
|
26637
26632
|
}, i.deflateInfo = "pako deflate (from Nodeca project)";
|
|
@@ -26769,7 +26764,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26769
26764
|
i.inflateReset = w, i.inflateReset2 = M, i.inflateResetKeep = k, i.inflateInit = function(N) {
|
|
26770
26765
|
return I(N, 15);
|
|
26771
26766
|
}, i.inflateInit2 = I, i.inflate = function(N, D) {
|
|
26772
|
-
var x, C, L, V, H, z, S, W, j, se, ce, ae,
|
|
26767
|
+
var x, C, L, V, H, z, S, W, j, se, ce, ae, ke, Ne, ye, Ze, et, te, fe, Se, y, J, Y, _, B = 0, P = new a.Buf8(4), ee = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
26773
26768
|
if (!N || !N.state || !N.output || !N.input && N.avail_in !== 0)
|
|
26774
26769
|
return h;
|
|
26775
26770
|
(x = N.state).mode === 12 && (x.mode = 13), H = N.next_out, L = N.output, S = N.avail_out, V = N.next_in, C = N.input, z = N.avail_in, W = x.hold, j = x.bits, se = z, ce = S, J = f;
|
|
@@ -26980,15 +26975,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26980
26975
|
x.have = 0, x.mode = 19;
|
|
26981
26976
|
case 19:
|
|
26982
26977
|
for (; x.have < x.nlen + x.ndist; ) {
|
|
26983
|
-
for (; Ze = (B = x.lencode[W & (1 << x.lenbits) - 1]) >>> 16 & 255,
|
|
26978
|
+
for (; Ze = (B = x.lencode[W & (1 << x.lenbits) - 1]) >>> 16 & 255, et = 65535 & B, !((ye = B >>> 24) <= j); ) {
|
|
26984
26979
|
if (z === 0)
|
|
26985
26980
|
break e;
|
|
26986
26981
|
z--, W += C[V++] << j, j += 8;
|
|
26987
26982
|
}
|
|
26988
|
-
if (
|
|
26989
|
-
W >>>= ye, j -= ye, x.lens[x.have++] =
|
|
26983
|
+
if (et < 16)
|
|
26984
|
+
W >>>= ye, j -= ye, x.lens[x.have++] = et;
|
|
26990
26985
|
else {
|
|
26991
|
-
if (
|
|
26986
|
+
if (et === 16) {
|
|
26992
26987
|
for (_ = ye + 2; j < _; ) {
|
|
26993
26988
|
if (z === 0)
|
|
26994
26989
|
break e;
|
|
@@ -26999,7 +26994,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
26999
26994
|
break;
|
|
27000
26995
|
}
|
|
27001
26996
|
y = x.lens[x.have - 1], ae = 3 + (3 & W), W >>>= 2, j -= 2;
|
|
27002
|
-
} else if (
|
|
26997
|
+
} else if (et === 17) {
|
|
27003
26998
|
for (_ = ye + 3; j < _; ) {
|
|
27004
26999
|
if (z === 0)
|
|
27005
27000
|
break e;
|
|
@@ -27045,20 +27040,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27045
27040
|
N.next_out = H, N.avail_out = S, N.next_in = V, N.avail_in = z, x.hold = W, x.bits = j, l(N, ce), H = N.next_out, L = N.output, S = N.avail_out, V = N.next_in, C = N.input, z = N.avail_in, W = x.hold, j = x.bits, x.mode === 12 && (x.back = -1);
|
|
27046
27041
|
break;
|
|
27047
27042
|
}
|
|
27048
|
-
for (x.back = 0; Ze = (B = x.lencode[W & (1 << x.lenbits) - 1]) >>> 16 & 255,
|
|
27043
|
+
for (x.back = 0; Ze = (B = x.lencode[W & (1 << x.lenbits) - 1]) >>> 16 & 255, et = 65535 & B, !((ye = B >>> 24) <= j); ) {
|
|
27049
27044
|
if (z === 0)
|
|
27050
27045
|
break e;
|
|
27051
27046
|
z--, W += C[V++] << j, j += 8;
|
|
27052
27047
|
}
|
|
27053
27048
|
if (Ze && !(240 & Ze)) {
|
|
27054
|
-
for (te = ye, fe = Ze, Se =
|
|
27049
|
+
for (te = ye, fe = Ze, Se = et; Ze = (B = x.lencode[Se + ((W & (1 << te + fe) - 1) >> te)]) >>> 16 & 255, et = 65535 & B, !(te + (ye = B >>> 24) <= j); ) {
|
|
27055
27050
|
if (z === 0)
|
|
27056
27051
|
break e;
|
|
27057
27052
|
z--, W += C[V++] << j, j += 8;
|
|
27058
27053
|
}
|
|
27059
27054
|
W >>>= te, j -= te, x.back += te;
|
|
27060
27055
|
}
|
|
27061
|
-
if (W >>>= ye, j -= ye, x.back += ye, x.length =
|
|
27056
|
+
if (W >>>= ye, j -= ye, x.back += ye, x.length = et, Ze === 0) {
|
|
27062
27057
|
x.mode = 26;
|
|
27063
27058
|
break;
|
|
27064
27059
|
}
|
|
@@ -27082,13 +27077,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27082
27077
|
}
|
|
27083
27078
|
x.was = x.length, x.mode = 23;
|
|
27084
27079
|
case 23:
|
|
27085
|
-
for (; Ze = (B = x.distcode[W & (1 << x.distbits) - 1]) >>> 16 & 255,
|
|
27080
|
+
for (; Ze = (B = x.distcode[W & (1 << x.distbits) - 1]) >>> 16 & 255, et = 65535 & B, !((ye = B >>> 24) <= j); ) {
|
|
27086
27081
|
if (z === 0)
|
|
27087
27082
|
break e;
|
|
27088
27083
|
z--, W += C[V++] << j, j += 8;
|
|
27089
27084
|
}
|
|
27090
27085
|
if (!(240 & Ze)) {
|
|
27091
|
-
for (te = ye, fe = Ze, Se =
|
|
27086
|
+
for (te = ye, fe = Ze, Se = et; Ze = (B = x.distcode[Se + ((W & (1 << te + fe) - 1) >> te)]) >>> 16 & 255, et = 65535 & B, !(te + (ye = B >>> 24) <= j); ) {
|
|
27092
27087
|
if (z === 0)
|
|
27093
27088
|
break e;
|
|
27094
27089
|
z--, W += C[V++] << j, j += 8;
|
|
@@ -27099,7 +27094,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27099
27094
|
N.msg = "invalid distance code", x.mode = 30;
|
|
27100
27095
|
break;
|
|
27101
27096
|
}
|
|
27102
|
-
x.offset =
|
|
27097
|
+
x.offset = et, x.extra = 15 & Ze, x.mode = 24;
|
|
27103
27098
|
case 24:
|
|
27104
27099
|
if (x.extra) {
|
|
27105
27100
|
for (_ = x.extra; j < _; ) {
|
|
@@ -27122,10 +27117,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27122
27117
|
N.msg = "invalid distance too far back", x.mode = 30;
|
|
27123
27118
|
break;
|
|
27124
27119
|
}
|
|
27125
|
-
|
|
27120
|
+
ke = ae > x.wnext ? (ae -= x.wnext, x.wsize - ae) : x.wnext - ae, ae > x.length && (ae = x.length), Ne = x.window;
|
|
27126
27121
|
} else
|
|
27127
|
-
|
|
27128
|
-
for (S < ae && (ae = S), S -= ae, x.length -= ae; L[H++] =
|
|
27122
|
+
Ne = L, ke = H - x.offset, ae = x.length;
|
|
27123
|
+
for (S < ae && (ae = S), S -= ae, x.length -= ae; L[H++] = Ne[ke++], --ae; )
|
|
27129
27124
|
;
|
|
27130
27125
|
x.length === 0 && (x.mode = 21);
|
|
27131
27126
|
break;
|
|
@@ -27190,7 +27185,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27190
27185
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(n, s, i) {
|
|
27191
27186
|
var a = n("../utils/common"), o = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], r = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], l = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], c = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
27192
27187
|
s.exports = function(d, u, f, h, b, m, A, g) {
|
|
27193
|
-
var v, k, w, M, I, U, Z, Q, F, O = g.bits, N = 0, D = 0, x = 0, C = 0, L = 0, V = 0, H = 0, z = 0, S = 0, W = 0, j = null, se = 0, ce = new a.Buf16(16), ae = new a.Buf16(16),
|
|
27188
|
+
var v, k, w, M, I, U, Z, Q, F, O = g.bits, N = 0, D = 0, x = 0, C = 0, L = 0, V = 0, H = 0, z = 0, S = 0, W = 0, j = null, se = 0, ce = new a.Buf16(16), ae = new a.Buf16(16), ke = null, Ne = 0;
|
|
27194
27189
|
for (N = 0; N <= 15; N++)
|
|
27195
27190
|
ce[N] = 0;
|
|
27196
27191
|
for (D = 0; D < h; D++)
|
|
@@ -27210,10 +27205,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27210
27205
|
ae[N + 1] = ae[N] + ce[N];
|
|
27211
27206
|
for (D = 0; D < h; D++)
|
|
27212
27207
|
u[f + D] !== 0 && (A[ae[u[f + D]]++] = D);
|
|
27213
|
-
if (U = d === 0 ? (j =
|
|
27208
|
+
if (U = d === 0 ? (j = ke = A, 19) : d === 1 ? (j = o, se -= 257, ke = r, Ne -= 257, 256) : (j = l, ke = c, -1), N = x, I = m, H = D = W = 0, w = -1, M = (S = 1 << (V = L)) - 1, d === 1 && 852 < S || d === 2 && 592 < S)
|
|
27214
27209
|
return 1;
|
|
27215
27210
|
for (; ; ) {
|
|
27216
|
-
for (Z = N - H, F = A[D] < U ? (Q = 0, A[D]) : A[D] > U ? (Q =
|
|
27211
|
+
for (Z = N - H, F = A[D] < U ? (Q = 0, A[D]) : A[D] > U ? (Q = ke[Ne + A[D]], j[se + A[D]]) : (Q = 96, 0), v = 1 << N - H, x = k = 1 << V; b[I + (W >> H) + (k -= v)] = Z << 24 | Q << 16 | F | 0, k !== 0; )
|
|
27217
27212
|
;
|
|
27218
27213
|
for (v = 1 << N - 1; W & v; )
|
|
27219
27214
|
v >>= 1;
|
|
@@ -27269,18 +27264,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27269
27264
|
function ae(B, P, ee) {
|
|
27270
27265
|
ce(B, ee[2 * P], ee[2 * P + 1]);
|
|
27271
27266
|
}
|
|
27272
|
-
function
|
|
27267
|
+
function ke(B, P) {
|
|
27273
27268
|
for (var ee = 0; ee |= 1 & B, B >>>= 1, ee <<= 1, 0 < --P; )
|
|
27274
27269
|
;
|
|
27275
27270
|
return ee >>> 1;
|
|
27276
27271
|
}
|
|
27277
|
-
function
|
|
27272
|
+
function Ne(B, P, ee) {
|
|
27278
27273
|
var re, q, ue = new Array(A + 1), ve = 0;
|
|
27279
27274
|
for (re = 1; re <= A; re++)
|
|
27280
27275
|
ue[re] = ve = ve + ee[re - 1] << 1;
|
|
27281
27276
|
for (q = 0; q <= P; q++) {
|
|
27282
27277
|
var he = B[2 * q + 1];
|
|
27283
|
-
he !== 0 && (B[2 * q] =
|
|
27278
|
+
he !== 0 && (B[2 * q] = ke(ue[he]++, he));
|
|
27284
27279
|
}
|
|
27285
27280
|
}
|
|
27286
27281
|
function ye(B) {
|
|
@@ -27296,12 +27291,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27296
27291
|
function Ze(B) {
|
|
27297
27292
|
8 < B.bi_valid ? se(B, B.bi_buf) : 0 < B.bi_valid && (B.pending_buf[B.pending++] = B.bi_buf), B.bi_buf = 0, B.bi_valid = 0;
|
|
27298
27293
|
}
|
|
27299
|
-
function
|
|
27294
|
+
function et(B, P, ee, re) {
|
|
27300
27295
|
var q = 2 * P, ue = 2 * ee;
|
|
27301
27296
|
return B[q] < B[ue] || B[q] === B[ue] && re[P] <= re[ee];
|
|
27302
27297
|
}
|
|
27303
27298
|
function te(B, P, ee) {
|
|
27304
|
-
for (var re = B.heap[ee], q = ee << 1; q <= B.heap_len && (q < B.heap_len &&
|
|
27299
|
+
for (var re = B.heap[ee], q = ee << 1; q <= B.heap_len && (q < B.heap_len && et(P, B.heap[q + 1], B.heap[q], B.depth) && q++, !et(P, re, B.heap[q], B.depth)); )
|
|
27305
27300
|
B.heap[ee] = B.heap[q], ee = q, q <<= 1;
|
|
27306
27301
|
B.heap[ee] = re;
|
|
27307
27302
|
}
|
|
@@ -27313,48 +27308,48 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27313
27308
|
ae(B, k, P);
|
|
27314
27309
|
}
|
|
27315
27310
|
function Se(B, P) {
|
|
27316
|
-
var ee, re, q, ue = P.dyn_tree, ve = P.stat_desc.static_tree, he = P.stat_desc.has_stree,
|
|
27317
|
-
for (B.heap_len = 0, B.heap_max = m, ee = 0; ee <
|
|
27311
|
+
var ee, re, q, ue = P.dyn_tree, ve = P.stat_desc.static_tree, he = P.stat_desc.has_stree, Re = P.stat_desc.elems, Oe = -1;
|
|
27312
|
+
for (B.heap_len = 0, B.heap_max = m, ee = 0; ee < Re; ee++)
|
|
27318
27313
|
ue[2 * ee] !== 0 ? (B.heap[++B.heap_len] = Oe = ee, B.depth[ee] = 0) : ue[2 * ee + 1] = 0;
|
|
27319
27314
|
for (; B.heap_len < 2; )
|
|
27320
27315
|
ue[2 * (q = B.heap[++B.heap_len] = Oe < 2 ? ++Oe : 0)] = 1, B.depth[q] = 0, B.opt_len--, he && (B.static_len -= ve[2 * q + 1]);
|
|
27321
27316
|
for (P.max_code = Oe, ee = B.heap_len >> 1; 1 <= ee; ee--)
|
|
27322
27317
|
te(B, ue, ee);
|
|
27323
|
-
for (q =
|
|
27318
|
+
for (q = Re; ee = B.heap[1], B.heap[1] = B.heap[B.heap_len--], te(B, ue, 1), re = B.heap[1], B.heap[--B.heap_max] = ee, B.heap[--B.heap_max] = re, ue[2 * q] = ue[2 * ee] + ue[2 * re], B.depth[q] = (B.depth[ee] >= B.depth[re] ? B.depth[ee] : B.depth[re]) + 1, ue[2 * ee + 1] = ue[2 * re + 1] = q, B.heap[1] = q++, te(B, ue, 1), 2 <= B.heap_len; )
|
|
27324
27319
|
;
|
|
27325
27320
|
B.heap[--B.heap_max] = B.heap[1], function(Be, It) {
|
|
27326
|
-
var Jt, Ht, Hn, ft, X, le, de = It.dyn_tree,
|
|
27321
|
+
var Jt, Ht, Hn, ft, X, le, de = It.dyn_tree, xe = It.max_code, we = It.stat_desc.static_tree, Fe = It.stat_desc.has_stree, Ee = It.stat_desc.extra_bits, Ve = It.stat_desc.extra_base, Ce = It.stat_desc.max_length, st = 0;
|
|
27327
27322
|
for (ft = 0; ft <= A; ft++)
|
|
27328
27323
|
Be.bl_count[ft] = 0;
|
|
27329
27324
|
for (de[2 * Be.heap[Be.heap_max] + 1] = 0, Jt = Be.heap_max + 1; Jt < m; Jt++)
|
|
27330
|
-
|
|
27331
|
-
if (
|
|
27325
|
+
Ce < (ft = de[2 * de[2 * (Ht = Be.heap[Jt]) + 1] + 1] + 1) && (ft = Ce, st++), de[2 * Ht + 1] = ft, xe < Ht || (Be.bl_count[ft]++, X = 0, Ve <= Ht && (X = Ee[Ht - Ve]), le = de[2 * Ht], Be.opt_len += le * (ft + X), Fe && (Be.static_len += le * (we[2 * Ht + 1] + X)));
|
|
27326
|
+
if (st !== 0) {
|
|
27332
27327
|
do {
|
|
27333
|
-
for (ft =
|
|
27328
|
+
for (ft = Ce - 1; Be.bl_count[ft] === 0; )
|
|
27334
27329
|
ft--;
|
|
27335
|
-
Be.bl_count[ft]--, Be.bl_count[ft + 1] += 2, Be.bl_count[
|
|
27336
|
-
} while (0 <
|
|
27337
|
-
for (ft =
|
|
27330
|
+
Be.bl_count[ft]--, Be.bl_count[ft + 1] += 2, Be.bl_count[Ce]--, st -= 2;
|
|
27331
|
+
} while (0 < st);
|
|
27332
|
+
for (ft = Ce; ft !== 0; ft--)
|
|
27338
27333
|
for (Ht = Be.bl_count[ft]; Ht !== 0; )
|
|
27339
|
-
|
|
27334
|
+
xe < (Hn = Be.heap[--Jt]) || (de[2 * Hn + 1] !== ft && (Be.opt_len += (ft - de[2 * Hn + 1]) * de[2 * Hn], de[2 * Hn + 1] = ft), Ht--);
|
|
27340
27335
|
}
|
|
27341
|
-
}(B, P),
|
|
27336
|
+
}(B, P), Ne(ue, Oe, B.bl_count);
|
|
27342
27337
|
}
|
|
27343
27338
|
function y(B, P, ee) {
|
|
27344
|
-
var re, q, ue = -1, ve = P[1], he = 0,
|
|
27345
|
-
for (ve === 0 && (
|
|
27346
|
-
q = ve, ve = P[2 * (re + 1) + 1], ++he <
|
|
27339
|
+
var re, q, ue = -1, ve = P[1], he = 0, Re = 7, Oe = 4;
|
|
27340
|
+
for (ve === 0 && (Re = 138, Oe = 3), P[2 * (ee + 1) + 1] = 65535, re = 0; re <= ee; re++)
|
|
27341
|
+
q = ve, ve = P[2 * (re + 1) + 1], ++he < Re && q === ve || (he < Oe ? B.bl_tree[2 * q] += he : q !== 0 ? (q !== ue && B.bl_tree[2 * q]++, B.bl_tree[2 * w]++) : he <= 10 ? B.bl_tree[2 * M]++ : B.bl_tree[2 * I]++, ue = q, Oe = (he = 0) === ve ? (Re = 138, 3) : q === ve ? (Re = 6, 3) : (Re = 7, 4));
|
|
27347
27342
|
}
|
|
27348
27343
|
function J(B, P, ee) {
|
|
27349
|
-
var re, q, ue = -1, ve = P[1], he = 0,
|
|
27350
|
-
for (ve === 0 && (
|
|
27351
|
-
if (q = ve, ve = P[2 * (re + 1) + 1], !(++he <
|
|
27344
|
+
var re, q, ue = -1, ve = P[1], he = 0, Re = 7, Oe = 4;
|
|
27345
|
+
for (ve === 0 && (Re = 138, Oe = 3), re = 0; re <= ee; re++)
|
|
27346
|
+
if (q = ve, ve = P[2 * (re + 1) + 1], !(++he < Re && q === ve)) {
|
|
27352
27347
|
if (he < Oe)
|
|
27353
27348
|
for (; ae(B, q, B.bl_tree), --he != 0; )
|
|
27354
27349
|
;
|
|
27355
27350
|
else
|
|
27356
27351
|
q !== 0 ? (q !== ue && (ae(B, q, B.bl_tree), he--), ae(B, w, B.bl_tree), ce(B, he - 3, 2)) : he <= 10 ? (ae(B, M, B.bl_tree), ce(B, he - 3, 3)) : (ae(B, I, B.bl_tree), ce(B, he - 11, 7));
|
|
27357
|
-
ue = q, Oe = (he = 0) === ve ? (
|
|
27352
|
+
ue = q, Oe = (he = 0) === ve ? (Re = 138, 3) : q === ve ? (Re = 6, 3) : (Re = 7, 4);
|
|
27358
27353
|
}
|
|
27359
27354
|
}
|
|
27360
27355
|
l(z);
|
|
@@ -27386,33 +27381,33 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
27386
27381
|
O[2 * P + 1] = 7, P++, ve[7]++;
|
|
27387
27382
|
for (; P <= 287; )
|
|
27388
27383
|
O[2 * P + 1] = 8, P++, ve[8]++;
|
|
27389
|
-
for (
|
|
27390
|
-
N[2 * P + 1] = 5, N[2 * P] =
|
|
27384
|
+
for (Ne(O, f + 1, ve), P = 0; P < h; P++)
|
|
27385
|
+
N[2 * P + 1] = 5, N[2 * P] = ke(P, 5);
|
|
27391
27386
|
L = new S(O, U, u + 1, f, A), V = new S(N, Z, 0, h, A), H = new S(new Array(0), Q, 0, b, v);
|
|
27392
27387
|
}(), Y = !0), B.l_desc = new W(B.dyn_ltree, L), B.d_desc = new W(B.dyn_dtree, V), B.bl_desc = new W(B.bl_tree, H), B.bi_buf = 0, B.bi_valid = 0, ye(B);
|
|
27393
27388
|
}, i._tr_stored_block = _, i._tr_flush_block = function(B, P, ee, re) {
|
|
27394
27389
|
var q, ue, ve = 0;
|
|
27395
27390
|
0 < B.level ? (B.strm.data_type === 2 && (B.strm.data_type = function(he) {
|
|
27396
|
-
var
|
|
27397
|
-
for (
|
|
27398
|
-
if (1 & Oe && he.dyn_ltree[2 *
|
|
27391
|
+
var Re, Oe = 4093624447;
|
|
27392
|
+
for (Re = 0; Re <= 31; Re++, Oe >>>= 1)
|
|
27393
|
+
if (1 & Oe && he.dyn_ltree[2 * Re] !== 0)
|
|
27399
27394
|
return o;
|
|
27400
27395
|
if (he.dyn_ltree[18] !== 0 || he.dyn_ltree[20] !== 0 || he.dyn_ltree[26] !== 0)
|
|
27401
27396
|
return r;
|
|
27402
|
-
for (
|
|
27403
|
-
if (he.dyn_ltree[2 *
|
|
27397
|
+
for (Re = 32; Re < u; Re++)
|
|
27398
|
+
if (he.dyn_ltree[2 * Re] !== 0)
|
|
27404
27399
|
return r;
|
|
27405
27400
|
return o;
|
|
27406
27401
|
}(B)), Se(B, B.l_desc), Se(B, B.d_desc), ve = function(he) {
|
|
27407
|
-
var
|
|
27408
|
-
for (y(he, he.dyn_ltree, he.l_desc.max_code), y(he, he.dyn_dtree, he.d_desc.max_code), Se(he, he.bl_desc),
|
|
27402
|
+
var Re;
|
|
27403
|
+
for (y(he, he.dyn_ltree, he.l_desc.max_code), y(he, he.dyn_dtree, he.d_desc.max_code), Se(he, he.bl_desc), Re = b - 1; 3 <= Re && he.bl_tree[2 * F[Re] + 1] === 0; Re--)
|
|
27409
27404
|
;
|
|
27410
|
-
return he.opt_len += 3 * (
|
|
27411
|
-
}(B), q = B.opt_len + 3 + 7 >>> 3, (ue = B.static_len + 3 + 7 >>> 3) <= q && (q = ue)) : q = ue = ee + 5, ee + 4 <= q && P !== -1 ? _(B, P, ee, re) : B.strategy === 4 || ue === q ? (ce(B, 2 + (re ? 1 : 0), 3), fe(B, O, N)) : (ce(B, 4 + (re ? 1 : 0), 3), function(he,
|
|
27405
|
+
return he.opt_len += 3 * (Re + 1) + 5 + 5 + 4, Re;
|
|
27406
|
+
}(B), q = B.opt_len + 3 + 7 >>> 3, (ue = B.static_len + 3 + 7 >>> 3) <= q && (q = ue)) : q = ue = ee + 5, ee + 4 <= q && P !== -1 ? _(B, P, ee, re) : B.strategy === 4 || ue === q ? (ce(B, 2 + (re ? 1 : 0), 3), fe(B, O, N)) : (ce(B, 4 + (re ? 1 : 0), 3), function(he, Re, Oe, Be) {
|
|
27412
27407
|
var It;
|
|
27413
|
-
for (ce(he,
|
|
27408
|
+
for (ce(he, Re - 257, 5), ce(he, Oe - 1, 5), ce(he, Be - 4, 4), It = 0; It < Be; It++)
|
|
27414
27409
|
ce(he, he.bl_tree[2 * F[It] + 1], 3);
|
|
27415
|
-
J(he, he.dyn_ltree,
|
|
27410
|
+
J(he, he.dyn_ltree, Re - 1), J(he, he.dyn_dtree, Oe - 1);
|
|
27416
27411
|
}(B, B.l_desc.max_code + 1, B.d_desc.max_code + 1, ve + 1), fe(B, B.dyn_ltree, B.dyn_dtree)), ye(B), re && Ze(B);
|
|
27417
27412
|
}, i._tr_tally = function(B, P, ee) {
|
|
27418
27413
|
return B.pending_buf[B.d_buf + 2 * B.last_lit] = P >>> 8 & 255, B.pending_buf[B.d_buf + 2 * B.last_lit + 1] = 255 & P, B.pending_buf[B.l_buf + B.last_lit] = 255 & ee, B.last_lit++, P === 0 ? B.dyn_ltree[2 * ee]++ : (B.matches++, P--, B.dyn_ltree[2 * (x[ee] + u + 1)]++, B.dyn_dtree[2 * j(P)]++), B.last_lit === B.lit_bufsize - 1;
|
|
@@ -27748,7 +27743,7 @@ const _T = { class: "ps" }, FT = { class: "ps__header" }, QT = { class: "ps__hea
|
|
|
27748
27743
|
(E(!0), R(ie, null, ge(n.value.artifact.sections, (v, k) => (E(), R(ie, {
|
|
27749
27744
|
key: v.id ?? String(k)
|
|
27750
27745
|
}, [
|
|
27751
|
-
v.type === "heading" ? (E(),
|
|
27746
|
+
v.type === "heading" ? (E(), Je(Ga(`h${v.level}`), {
|
|
27752
27747
|
key: 0,
|
|
27753
27748
|
class: be(["ps__h", `ps__h${v.level}`])
|
|
27754
27749
|
}, {
|
|
@@ -27779,7 +27774,7 @@ const _T = { class: "ps" }, FT = { class: "ps__header" }, QT = { class: "ps__hea
|
|
|
27779
27774
|
])
|
|
27780
27775
|
])
|
|
27781
27776
|
])) : v.type === "chart" ? (E(), R("div", tZ, [
|
|
27782
|
-
v.chartConfig ? (E(),
|
|
27777
|
+
v.chartConfig ? (E(), Je(Li, {
|
|
27783
27778
|
key: 0,
|
|
27784
27779
|
ref_for: !0,
|
|
27785
27780
|
ref: (w) => h(v.id ?? v.queryId, w),
|
|
@@ -28288,7 +28283,7 @@ const wZ = /* @__PURE__ */ Qe(RZ, [["__scopeId", "data-v-0441f74f"]]), IZ = { cl
|
|
|
28288
28283
|
])
|
|
28289
28284
|
], 8, a_),
|
|
28290
28285
|
m.value.has(O) ? (E(), R("div", A_, [
|
|
28291
|
-
|
|
28286
|
+
qe(If, {
|
|
28292
28287
|
driver: F,
|
|
28293
28288
|
"rca-id": n.value.rcaId,
|
|
28294
28289
|
variant: "full"
|
|
@@ -28661,19 +28656,19 @@ const N_ = /* @__PURE__ */ Qe(M_, [["__scopeId", "data-v-f5155012"]]), V_ = { cl
|
|
|
28661
28656
|
for (const S of D.value) {
|
|
28662
28657
|
let W;
|
|
28663
28658
|
if (S.kind === "docx") {
|
|
28664
|
-
const { data:
|
|
28659
|
+
const { data: Ne } = await Le.post(
|
|
28665
28660
|
"/skills/report/artifacts/export/docx",
|
|
28666
28661
|
{ artifact: S.result.artifact, chartImages: {} }
|
|
28667
28662
|
);
|
|
28668
|
-
W =
|
|
28663
|
+
W = Ne.url;
|
|
28669
28664
|
} else {
|
|
28670
|
-
const { data:
|
|
28665
|
+
const { data: Ne } = await Le.get("/storage/exports/download", {
|
|
28671
28666
|
params: { key: S.result.s3Key }
|
|
28672
28667
|
});
|
|
28673
|
-
W =
|
|
28668
|
+
W = Ne.url;
|
|
28674
28669
|
}
|
|
28675
|
-
const se = await (await fetch(W).then((
|
|
28676
|
-
V.set(ae,
|
|
28670
|
+
const se = await (await fetch(W).then((Ne) => Ne.blob())).arrayBuffer(), ce = F(S.kind), ae = S.title.replace(/[^a-zA-Z0-9_\- ]/g, "").trim().replace(/\s+/g, "_") || S.kind, ke = V.get(ae) ?? 0;
|
|
28671
|
+
V.set(ae, ke + 1), L.file(ke === 0 ? `${ae}.${ce}` : `${ae}_${ke}.${ce}`, se);
|
|
28677
28672
|
}
|
|
28678
28673
|
const H = await L.generateAsync({ type: "blob" }), z = document.createElement("a");
|
|
28679
28674
|
z.href = URL.createObjectURL(H), z.download = "remy-exports.zip", z.rel = "noopener noreferrer", z.click(), setTimeout(() => URL.revokeObjectURL(z.href), 1e4);
|
|
@@ -28730,7 +28725,7 @@ const N_ = /* @__PURE__ */ Qe(M_, [["__scopeId", "data-v-f5155012"]]), V_ = { cl
|
|
|
28730
28725
|
p("span", W_, T(m.value ? A.value : "This Session"), 1)
|
|
28731
28726
|
]),
|
|
28732
28727
|
m.value ? (E(), R("section", B_, [
|
|
28733
|
-
((H = Ae(n).focused) == null ? void 0 : H.kind) === "rca" ? (E(),
|
|
28728
|
+
((H = Ae(n).focused) == null ? void 0 : H.kind) === "rca" ? (E(), Je(N_, { key: 0 })) : (E(), Je(wZ, { key: 1 }))
|
|
28734
28729
|
])) : o.value.length === 0 ? (E(), R("div", z_, [...V[5] || (V[5] = [
|
|
28735
28730
|
p("svg", {
|
|
28736
28731
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -29248,7 +29243,7 @@ const gF = /* @__PURE__ */ Qe(mF, [["__scopeId", "data-v-768aaafe"]]), AF = { cl
|
|
|
29248
29243
|
"task-item--highlight": o.value === S.id,
|
|
29249
29244
|
"task-item--muted": z.key === "history"
|
|
29250
29245
|
}]),
|
|
29251
|
-
onClick: (
|
|
29246
|
+
onClick: (ke) => r.value.add(S.id)
|
|
29252
29247
|
}, [
|
|
29253
29248
|
p("div", UF, [
|
|
29254
29249
|
p("div", TF, [
|
|
@@ -29270,7 +29265,7 @@ const gF = /* @__PURE__ */ Qe(mF, [["__scopeId", "data-v-768aaafe"]]), AF = { cl
|
|
|
29270
29265
|
]),
|
|
29271
29266
|
p("button", {
|
|
29272
29267
|
class: "task-toggle",
|
|
29273
|
-
onClick: yt((
|
|
29268
|
+
onClick: yt((ke) => U(S.id), ["stop"]),
|
|
29274
29269
|
title: r.value.has(S.id) ? "Collapse details" : "Expand details",
|
|
29275
29270
|
"aria-label": "Toggle task details"
|
|
29276
29271
|
}, [
|
|
@@ -29291,23 +29286,23 @@ const gF = /* @__PURE__ */ Qe(mF, [["__scopeId", "data-v-768aaafe"]]), AF = { cl
|
|
|
29291
29286
|
p("button", {
|
|
29292
29287
|
class: "action-btn action-btn--success",
|
|
29293
29288
|
disabled: l.value.has(S.id),
|
|
29294
|
-
onClick: yt((
|
|
29289
|
+
onClick: yt((ke) => I(S, !0), ["stop"])
|
|
29295
29290
|
}, " Accept ", 8, HF),
|
|
29296
29291
|
p("button", {
|
|
29297
29292
|
class: "action-btn action-btn--secondary",
|
|
29298
29293
|
disabled: l.value.has(S.id),
|
|
29299
|
-
onClick: yt((
|
|
29294
|
+
onClick: yt((ke) => I(S, !1), ["stop"])
|
|
29300
29295
|
}, " Reject ", 8, XF)
|
|
29301
29296
|
])) : z.key === "yours" ? (E(), R("div", KF, [
|
|
29302
29297
|
p("button", {
|
|
29303
29298
|
class: "action-btn action-btn--success",
|
|
29304
29299
|
disabled: l.value.has(S.id),
|
|
29305
|
-
onClick: yt((
|
|
29300
|
+
onClick: yt((ke) => w(S), ["stop"])
|
|
29306
29301
|
}, " Done ", 8, qF),
|
|
29307
29302
|
p("button", {
|
|
29308
29303
|
class: "action-btn action-btn--secondary",
|
|
29309
29304
|
disabled: l.value.has(S.id),
|
|
29310
|
-
onClick: yt((
|
|
29305
|
+
onClick: yt((ke) => M(S), ["stop"])
|
|
29311
29306
|
}, " Cancel ", 8, $F)
|
|
29312
29307
|
])) : G("", !0),
|
|
29313
29308
|
r.value.has(S.id) ? (E(), R("div", eQ, [
|
|
@@ -29317,8 +29312,8 @@ const gF = /* @__PURE__ */ Qe(mF, [["__scopeId", "data-v-768aaafe"]]), AF = { cl
|
|
|
29317
29312
|
class: "rca-btn",
|
|
29318
29313
|
onClick: yt(() => {
|
|
29319
29314
|
var ye, Ze;
|
|
29320
|
-
const
|
|
29321
|
-
Ae(n).scrollToChatMessage(
|
|
29315
|
+
const ke = (ye = S.metadata) == null ? void 0 : ye.conversationId, Ne = (Ze = S.metadata) == null ? void 0 : Ze.messageId;
|
|
29316
|
+
Ae(n).scrollToChatMessage(Ne || ke, ke);
|
|
29322
29317
|
}, ["stop"])
|
|
29323
29318
|
}, [
|
|
29324
29319
|
H[6] || (H[6] = p("svg", {
|
|
@@ -29338,7 +29333,7 @@ const gF = /* @__PURE__ */ Qe(mF, [["__scopeId", "data-v-768aaafe"]]), AF = { cl
|
|
|
29338
29333
|
H[9] || (H[9] = p("div", { class: "section-label" }, "Result", -1)),
|
|
29339
29334
|
p("button", {
|
|
29340
29335
|
class: "rca-btn",
|
|
29341
|
-
onClick: yt((
|
|
29336
|
+
onClick: yt((ke) => C(S), ["stop"])
|
|
29342
29337
|
}, [...H[8] || (H[8] = [
|
|
29343
29338
|
p("svg", {
|
|
29344
29339
|
width: "14",
|
|
@@ -29356,16 +29351,16 @@ const gF = /* @__PURE__ */ Qe(mF, [["__scopeId", "data-v-768aaafe"]]), AF = { cl
|
|
|
29356
29351
|
(ae = S.statusHistory) != null && ae.length ? (E(), R("div", aQ, [
|
|
29357
29352
|
H[10] || (H[10] = p("div", { class: "section-label" }, "History", -1)),
|
|
29358
29353
|
p("div", oQ, [
|
|
29359
|
-
(E(!0), R(ie, null, ge(S.statusHistory, (
|
|
29360
|
-
key:
|
|
29354
|
+
(E(!0), R(ie, null, ge(S.statusHistory, (ke, Ne) => (E(), R("div", {
|
|
29355
|
+
key: Ne,
|
|
29361
29356
|
class: "history-item"
|
|
29362
29357
|
}, [
|
|
29363
29358
|
p("span", {
|
|
29364
29359
|
class: "history-badge",
|
|
29365
|
-
style: jt({ backgroundColor: Z(
|
|
29366
|
-
}, T(Q(
|
|
29367
|
-
p("span", rQ, T(new Date(
|
|
29368
|
-
|
|
29360
|
+
style: jt({ backgroundColor: Z(ke.status) })
|
|
29361
|
+
}, T(Q(ke.status)), 5),
|
|
29362
|
+
p("span", rQ, T(new Date(ke.changedAt).toLocaleDateString()), 1),
|
|
29363
|
+
ke.reason ? (E(), R("span", lQ, T(ke.reason), 1)) : G("", !0)
|
|
29369
29364
|
]))), 128))
|
|
29370
29365
|
])
|
|
29371
29366
|
])) : G("", !0)
|
|
@@ -30544,9 +30539,9 @@ const EB = /* @__PURE__ */ Qe(yB, [["__scopeId", "data-v-0fdcc2f7"]]), kB = { cl
|
|
|
30544
30539
|
for (let ee = 0; ee < y.length; ee++)
|
|
30545
30540
|
for (let re = ee + 1; re < y.length; re++) {
|
|
30546
30541
|
const q = y[ee], ue = y[re];
|
|
30547
|
-
let ve = q.x - ue.x, he = q.y - ue.y,
|
|
30548
|
-
|
|
30549
|
-
const Oe = Math.sqrt(
|
|
30542
|
+
let ve = q.x - ue.x, he = q.y - ue.y, Re = ve * ve + he * he;
|
|
30543
|
+
Re < 0.5 && (ve = Math.random() - 0.5, he = Math.random() - 0.5, Re = 1);
|
|
30544
|
+
const Oe = Math.sqrt(Re), Be = J / Re * V;
|
|
30550
30545
|
q.vx += ve / Oe * Be, q.vy += he / Oe * Be, ue.vx -= ve / Oe * Be, ue.vy -= he / Oe * Be;
|
|
30551
30546
|
const It = q.r + ue.r + 26;
|
|
30552
30547
|
if (Oe < It) {
|
|
@@ -30558,8 +30553,8 @@ const EB = /* @__PURE__ */ Qe(yB, [["__scopeId", "data-v-0fdcc2f7"]]), kB = { cl
|
|
|
30558
30553
|
const re = k.value.get(ee.from), q = k.value.get(ee.to);
|
|
30559
30554
|
if (!re || !q)
|
|
30560
30555
|
continue;
|
|
30561
|
-
const ue = q.x - re.x, ve = q.y - re.y, he = Math.max(1, Math.sqrt(ue * ue + ve * ve)),
|
|
30562
|
-
re.vx += ue / he *
|
|
30556
|
+
const ue = q.x - re.x, ve = q.y - re.y, he = Math.max(1, Math.sqrt(ue * ue + ve * ve)), Re = Y * (he - _) * V * 6;
|
|
30557
|
+
re.vx += ue / he * Re, re.vy += ve / he * Re, q.vx -= ue / he * Re, q.vy -= ve / he * Re;
|
|
30563
30558
|
}
|
|
30564
30559
|
for (const ee of y) {
|
|
30565
30560
|
const re = H(ee);
|
|
@@ -30596,8 +30591,8 @@ const EB = /* @__PURE__ */ Qe(yB, [["__scopeId", "data-v-0fdcc2f7"]]), kB = { cl
|
|
|
30596
30591
|
y === c && (n.value = !1);
|
|
30597
30592
|
}
|
|
30598
30593
|
}
|
|
30599
|
-
let j = null, se = !1, ce = !1, ae = 0,
|
|
30600
|
-
function
|
|
30594
|
+
let j = null, se = !1, ce = !1, ae = 0, ke = 0;
|
|
30595
|
+
function Ne(y) {
|
|
30601
30596
|
const J = l.value.getBoundingClientRect(), Y = (y.clientX - J.left) / J.width * qt, _ = (y.clientY - J.top) / J.height * $t;
|
|
30602
30597
|
return { x: (Y - d.value.tx) / d.value.k, y: (_ - d.value.ty) / d.value.k };
|
|
30603
30598
|
}
|
|
@@ -30606,18 +30601,18 @@ const EB = /* @__PURE__ */ Qe(yB, [["__scopeId", "data-v-0fdcc2f7"]]), kB = { cl
|
|
|
30606
30601
|
J.stopPropagation(), (_ = (Y = J.target).setPointerCapture) == null || _.call(Y, J.pointerId), j = y, ce = !1;
|
|
30607
30602
|
}
|
|
30608
30603
|
function Ze(y) {
|
|
30609
|
-
se = !0, ce = !1, ae = y.clientX,
|
|
30604
|
+
se = !0, ce = !1, ae = y.clientX, ke = y.clientY;
|
|
30610
30605
|
}
|
|
30611
|
-
function
|
|
30606
|
+
function et(y) {
|
|
30612
30607
|
if (j) {
|
|
30613
30608
|
ce = !0;
|
|
30614
|
-
const J =
|
|
30609
|
+
const J = Ne(y);
|
|
30615
30610
|
j.fx = J.x, j.fy = J.y, V <= 5e-3 && S(0.12);
|
|
30616
30611
|
} else if (se) {
|
|
30617
|
-
const J = y.clientX - ae, Y = y.clientY -
|
|
30612
|
+
const J = y.clientX - ae, Y = y.clientY - ke;
|
|
30618
30613
|
Math.abs(J) + Math.abs(Y) > 2 && (ce = !0);
|
|
30619
30614
|
const _ = l.value.getBoundingClientRect();
|
|
30620
|
-
d.value.tx += J / _.width * qt, d.value.ty += Y / _.height * $t, ae = y.clientX,
|
|
30615
|
+
d.value.tx += J / _.width * qt, d.value.ty += Y / _.height * $t, ae = y.clientX, ke = y.clientY;
|
|
30621
30616
|
}
|
|
30622
30617
|
}
|
|
30623
30618
|
function te() {
|
|
@@ -30694,7 +30689,7 @@ const EB = /* @__PURE__ */ Qe(yB, [["__scopeId", "data-v-0fdcc2f7"]]), kB = { cl
|
|
|
30694
30689
|
viewBox: `0 0 ${qt} ${$t}`,
|
|
30695
30690
|
class: "mg__svg",
|
|
30696
30691
|
onPointerdown: Ze,
|
|
30697
|
-
onPointermove:
|
|
30692
|
+
onPointermove: et,
|
|
30698
30693
|
onPointerup: te,
|
|
30699
30694
|
onPointerleave: te,
|
|
30700
30695
|
onWheel: fe
|
|
@@ -30773,7 +30768,7 @@ const EB = /* @__PURE__ */ Qe(yB, [["__scopeId", "data-v-0fdcc2f7"]]), kB = { cl
|
|
|
30773
30768
|
], 8, TB)
|
|
30774
30769
|
], 40, UB)),
|
|
30775
30770
|
J[9] || (J[9] = p("p", { class: "mg__hint" }, "drag to explore · scroll to zoom · click a node to inspect it", -1)),
|
|
30776
|
-
|
|
30771
|
+
qe(cs, { name: "mg-fade" }, {
|
|
30777
30772
|
default: Tt(() => [
|
|
30778
30773
|
o.value ? (E(), R("div", LB, [
|
|
30779
30774
|
p("div", DB, [
|
|
@@ -31016,13 +31011,13 @@ const gz = /* @__PURE__ */ Qe(mz, [["__scopeId", "data-v-e163d911"]]), Az = { cl
|
|
|
31016
31011
|
])
|
|
31017
31012
|
]),
|
|
31018
31013
|
n.value ? (E(), R("div", Rz, [
|
|
31019
|
-
i.value === "memories" ? (E(),
|
|
31014
|
+
i.value === "memories" ? (E(), Je(EB, {
|
|
31020
31015
|
key: `memories:${s.value}`,
|
|
31021
31016
|
"business-id": n.value
|
|
31022
|
-
}, null, 8, ["business-id"])) : i.value === "graph" ? (E(),
|
|
31017
|
+
}, null, 8, ["business-id"])) : i.value === "graph" ? (E(), Je(PB, {
|
|
31023
31018
|
key: `graph:${s.value}`,
|
|
31024
31019
|
"business-id": n.value
|
|
31025
|
-
}, null, 8, ["business-id"])) : (E(),
|
|
31020
|
+
}, null, 8, ["business-id"])) : (E(), Je(gz, {
|
|
31026
31021
|
key: `timeline:${s.value}`,
|
|
31027
31022
|
"business-id": n.value
|
|
31028
31023
|
}, null, 8, ["business-id"]))
|
|
@@ -31097,10 +31092,10 @@ const Iz = /* @__PURE__ */ Qe(wz, [["__scopeId", "data-v-eaa70343"]]), xz = { cl
|
|
|
31097
31092
|
var h, b;
|
|
31098
31093
|
return E(), R("div", xz, [
|
|
31099
31094
|
p("div", Mz, [
|
|
31100
|
-
Ae(e).activePage === "all-sessions" ? (E(),
|
|
31101
|
-
|
|
31095
|
+
Ae(e).activePage === "all-sessions" ? (E(), Je(gF, { key: 0 })) : Ae(e).activePage === "tasks" ? (E(), Je(dQ, { key: c.value })) : Ae(e).activePage === "integrations" ? (E(), R("div", Nz, [
|
|
31096
|
+
qe(IW, { embedded: "" })
|
|
31102
31097
|
])) : Ae(e).activePage === "memory" && ((h = i.value) == null ? void 0 : h[Ae(Lt).MemoryEngine]) === !0 ? (E(), R("div", Vz, [
|
|
31103
|
-
|
|
31098
|
+
qe(Iz)
|
|
31104
31099
|
])) : Ae(e).activePage === "memory" && i.value === null ? (E(), R("div", Sz, T(a.value ? "Loading memory…" : "Select a business to view memory."), 1)) : G("", !0)
|
|
31105
31100
|
]),
|
|
31106
31101
|
p("nav", Cz, [
|
|
@@ -31213,7 +31208,7 @@ const Iz = /* @__PURE__ */ Qe(wz, [["__scopeId", "data-v-eaa70343"]]), xz = { cl
|
|
|
31213
31208
|
})
|
|
31214
31209
|
], -1)
|
|
31215
31210
|
])], 10, Tz),
|
|
31216
|
-
|
|
31211
|
+
qe(cs, { name: "ep-expand" }, {
|
|
31217
31212
|
default: Tt(() => {
|
|
31218
31213
|
var m;
|
|
31219
31214
|
return [
|
|
@@ -31562,21 +31557,21 @@ const zz = /* @__PURE__ */ Qe(Bz, [["__scopeId", "data-v-6a849bd5"]]), Lz = { cl
|
|
|
31562
31557
|
])
|
|
31563
31558
|
]),
|
|
31564
31559
|
p("div", i3, [
|
|
31565
|
-
a.value ? (E(),
|
|
31566
|
-
Ae(n).currentConversationId ? (E(),
|
|
31560
|
+
a.value ? (E(), Je(CT, { key: 0 })) : (E(), R(ie, { key: 1 }, [
|
|
31561
|
+
Ae(n).currentConversationId ? (E(), Je(JS, {
|
|
31567
31562
|
ref_key: "chatMessagesRef",
|
|
31568
31563
|
ref: x,
|
|
31569
31564
|
key: Ae(n).currentConversationId,
|
|
31570
31565
|
messages: Ae(n).messages,
|
|
31571
31566
|
"is-streaming": Ae(n).isStreaming
|
|
31572
|
-
}, null, 8, ["messages", "is-streaming"])) : (E(),
|
|
31573
|
-
(E(),
|
|
31567
|
+
}, null, 8, ["messages", "is-streaming"])) : (E(), Je(sT, { key: 0 })),
|
|
31568
|
+
(E(), Je(PU, {
|
|
31574
31569
|
key: Ae(n).composerGeneration,
|
|
31575
31570
|
onSend: A
|
|
31576
31571
|
}))
|
|
31577
31572
|
], 64))
|
|
31578
31573
|
]),
|
|
31579
|
-
|
|
31574
|
+
qe(cs, { name: "confirm" }, {
|
|
31580
31575
|
default: Tt(() => [
|
|
31581
31576
|
g.value ? (E(), R("div", {
|
|
31582
31577
|
key: 0,
|
|
@@ -31616,7 +31611,7 @@ const zz = /* @__PURE__ */ Qe(Bz, [["__scopeId", "data-v-6a849bd5"]]), Lz = { cl
|
|
|
31616
31611
|
]),
|
|
31617
31612
|
_: 1
|
|
31618
31613
|
}),
|
|
31619
|
-
|
|
31614
|
+
qe(cs, { name: "confirm" }, {
|
|
31620
31615
|
default: Tt(() => [
|
|
31621
31616
|
v.value ? (E(), R("div", {
|
|
31622
31617
|
key: 0,
|
|
@@ -31657,8 +31652,8 @@ const zz = /* @__PURE__ */ Qe(Bz, [["__scopeId", "data-v-6a849bd5"]]), Lz = { cl
|
|
|
31657
31652
|
_: 1
|
|
31658
31653
|
})
|
|
31659
31654
|
], 6),
|
|
31660
|
-
(E(),
|
|
31661
|
-
|
|
31655
|
+
(E(), Je(fu, { to: "body" }, [
|
|
31656
|
+
qe(cs, { name: "ep-slide" }, {
|
|
31662
31657
|
default: Tt(() => [
|
|
31663
31658
|
Ae(i).isOpen ? (E(), R("div", {
|
|
31664
31659
|
key: 0,
|
|
@@ -31667,7 +31662,7 @@ const zz = /* @__PURE__ */ Qe(Bz, [["__scopeId", "data-v-6a849bd5"]]), Lz = { cl
|
|
|
31667
31662
|
onClick: L[1] || (L[1] = yt((V) => Ae(i).close(), ["self"]))
|
|
31668
31663
|
}, [
|
|
31669
31664
|
p("div", a3, [
|
|
31670
|
-
|
|
31665
|
+
qe(zz)
|
|
31671
31666
|
])
|
|
31672
31667
|
], 4)) : G("", !0)
|
|
31673
31668
|
]),
|
|
@@ -31702,9 +31697,9 @@ const Mf = /* @__PURE__ */ Qe(l3, [["__scopeId", "data-v-d264001c"]]), c3 = /* @
|
|
|
31702
31697
|
const d = Qf("router-view");
|
|
31703
31698
|
return E(), R("div", d3, [
|
|
31704
31699
|
p("div", u3, [
|
|
31705
|
-
|
|
31700
|
+
qe(d)
|
|
31706
31701
|
]),
|
|
31707
|
-
|
|
31702
|
+
qe(cs, {
|
|
31708
31703
|
"enter-active-class": "transition-transform duration-300 ease-out",
|
|
31709
31704
|
"leave-active-class": "transition-transform duration-300 ease-in",
|
|
31710
31705
|
"enter-from-class": "translate-x-full",
|
|
@@ -31713,11 +31708,11 @@ const Mf = /* @__PURE__ */ Qe(l3, [["__scopeId", "data-v-d264001c"]]), c3 = /* @
|
|
|
31713
31708
|
"leave-to-class": "translate-x-full"
|
|
31714
31709
|
}, {
|
|
31715
31710
|
default: Tt(() => [
|
|
31716
|
-
i.value ? (E(),
|
|
31711
|
+
i.value ? (E(), Je(Mf, { key: 0 })) : G("", !0)
|
|
31717
31712
|
]),
|
|
31718
31713
|
_: 1
|
|
31719
31714
|
}),
|
|
31720
|
-
|
|
31715
|
+
qe(cs, {
|
|
31721
31716
|
"enter-active-class": "transition-opacity duration-300",
|
|
31722
31717
|
"leave-active-class": "transition-opacity duration-300",
|
|
31723
31718
|
"enter-from-class": "opacity-0",
|
|
@@ -31740,7 +31735,7 @@ const I3 = /* @__PURE__ */ Qe(h3, [["__scopeId", "data-v-874a35a1"]]), p3 = [
|
|
|
31740
31735
|
{
|
|
31741
31736
|
path: "/",
|
|
31742
31737
|
name: "home",
|
|
31743
|
-
component: () => import("./HomeView-
|
|
31738
|
+
component: () => import("./HomeView-1b85fcce.js")
|
|
31744
31739
|
}
|
|
31745
31740
|
], x3 = Wf({
|
|
31746
31741
|
history: Bf(),
|
|
@@ -31852,7 +31847,7 @@ async function N3(t, e) {
|
|
|
31852
31847
|
throw new Error("License API URL is required for Remy Chat initialization");
|
|
31853
31848
|
lE(s), VE(i), IE(n.getPageContext), Qi().initialize(), wn(), console.log("Remy Chat initialized");
|
|
31854
31849
|
}
|
|
31855
|
-
const V3 = gu(() => Promise.resolve().then(() => c3)), S3 = gu(() => import("./RemyButton-
|
|
31850
|
+
const V3 = gu(() => Promise.resolve().then(() => c3)), S3 = gu(() => import("./RemyButton-3121f8b5.js"));
|
|
31856
31851
|
export {
|
|
31857
31852
|
I3 as A,
|
|
31858
31853
|
V3 as C,
|