@alxxsck/ai-assistant 2.25.1 → 2.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Avatar-Dvgov563.js → Avatar-SyZkMWe9.js} +1 -1
- package/dist/{ChatWidgetContent-Bz5AjlS4.js → ChatWidgetContent-Co5mvHh6.js} +49 -49
- package/dist/bridge-ai-chat-widget.es.js +1 -1
- package/dist/domain/scenario/ScenarioChoiceSubmissionController.d.ts +1 -0
- package/dist/{index-CmFVo5By.js → index-CX__4yPP.js} +2 -2
- package/dist/{mount-D5y3aEYe.js → mount-B3eXRZuz.js} +725 -739
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as H, jsxs as lt, Fragment as Ti } from "react/jsx-runtime";
|
|
2
2
|
import * as R from "react";
|
|
3
3
|
import Jr, { createContext as Kn, useContext as Pr, useState as he, useRef as q, useMemo as un, useEffect as Y, useCallback as le, useId as Zi, useLayoutEffect as Dn, memo as dl, useSyncExternalStore as eu, Suspense as hl, lazy as fl, Component as pl, createElement as Do } from "react";
|
|
4
|
-
import { l as re, L as At, a as ml, n as gl, g as bl, i as
|
|
4
|
+
import { l as re, L as At, a as ml, n as gl, g as bl, i as yl, P as Cl, S as Il, b as vl, c as Al, o as wl } from "./index-CX__4yPP.js";
|
|
5
5
|
import { createRoot as Sl } from "react-dom/client";
|
|
6
6
|
function _o(t) {
|
|
7
7
|
return typeof t == "object" && t != null && "pathname" in t && "search" in t && "hash" in t && "state" in t && "key" in t;
|
|
@@ -818,7 +818,7 @@ function dd(t, e = [], n) {
|
|
|
818
818
|
!1,
|
|
819
819
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
820
820
|
), f = !0, g = null) : a === p && (f = !0, g = d.route.hydrateFallbackElement || null)));
|
|
821
|
-
let b = e.concat(s.slice(0, p + 1)),
|
|
821
|
+
let b = e.concat(s.slice(0, p + 1)), C = () => {
|
|
822
822
|
let I;
|
|
823
823
|
return h ? I = m : f ? I = g : d.route.Component ? I = /* @__PURE__ */ R.createElement(d.route.Component, null) : d.route.element ? I = d.route.element : I = l, /* @__PURE__ */ R.createElement(
|
|
824
824
|
ld,
|
|
@@ -840,11 +840,11 @@ function dd(t, e = [], n) {
|
|
|
840
840
|
revalidation: r.revalidation,
|
|
841
841
|
component: m,
|
|
842
842
|
error: h,
|
|
843
|
-
children:
|
|
843
|
+
children: C(),
|
|
844
844
|
routeContext: { outlet: null, matches: b, isDataRoute: !0 },
|
|
845
845
|
onError: c
|
|
846
846
|
}
|
|
847
|
-
) :
|
|
847
|
+
) : C();
|
|
848
848
|
},
|
|
849
849
|
null
|
|
850
850
|
);
|
|
@@ -908,8 +908,8 @@ var Lo = {};
|
|
|
908
908
|
function fu(t, e, n) {
|
|
909
909
|
!e && !Lo[t] && (Lo[t] = !0, ft(!1, n));
|
|
910
910
|
}
|
|
911
|
-
R.memo(
|
|
912
|
-
function
|
|
911
|
+
R.memo(yd);
|
|
912
|
+
function yd({
|
|
913
913
|
routes: t,
|
|
914
914
|
future: e,
|
|
915
915
|
state: n,
|
|
@@ -918,7 +918,7 @@ function Cd({
|
|
|
918
918
|
}) {
|
|
919
919
|
return du(t, void 0, { state: n, isStatic: r, onError: s });
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function Cd({
|
|
922
922
|
basename: t,
|
|
923
923
|
children: e,
|
|
924
924
|
initialEntries: n,
|
|
@@ -952,7 +952,7 @@ function yd({
|
|
|
952
952
|
}
|
|
953
953
|
);
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function tC({
|
|
956
956
|
to: t,
|
|
957
957
|
replace: e,
|
|
958
958
|
state: n,
|
|
@@ -1044,7 +1044,7 @@ function vd({
|
|
|
1044
1044
|
`<Router basename="${a}"> is not able to match the URL "${c}${l}${d}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
1045
1045
|
), m == null ? null : /* @__PURE__ */ R.createElement(ot.Provider, { value: u }, /* @__PURE__ */ R.createElement(Or.Provider, { children: e, value: m }));
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function nC({
|
|
1048
1048
|
children: t,
|
|
1049
1049
|
location: e
|
|
1050
1050
|
}) {
|
|
@@ -1306,8 +1306,8 @@ function Vd(t, e) {
|
|
|
1306
1306
|
R.useEffect(() => {
|
|
1307
1307
|
if (t === "render" && o(!0), t === "viewport") {
|
|
1308
1308
|
let m = (b) => {
|
|
1309
|
-
b.forEach((
|
|
1310
|
-
o(
|
|
1309
|
+
b.forEach((C) => {
|
|
1310
|
+
o(C.isIntersecting);
|
|
1311
1311
|
});
|
|
1312
1312
|
}, g = new IntersectionObserver(m, { threshold: 0.5 });
|
|
1313
1313
|
return p.current && g.observe(p.current), () => {
|
|
@@ -1395,9 +1395,9 @@ function qd({
|
|
|
1395
1395
|
if (t === r.pathname + r.search + r.hash)
|
|
1396
1396
|
return [];
|
|
1397
1397
|
let m = /* @__PURE__ */ new Set(), g = !1;
|
|
1398
|
-
if (e.forEach((
|
|
1399
|
-
let I = i.routes[
|
|
1400
|
-
!I || !I.hasLoader || (!l.some((
|
|
1398
|
+
if (e.forEach((C) => {
|
|
1399
|
+
let I = i.routes[C.route.id];
|
|
1400
|
+
!I || !I.hasLoader || (!l.some((S) => S.route.id === C.route.id) && C.route.id in u && o[C.route.id]?.shouldRevalidate || I.hasClientLoader ? g = !0 : m.add(C.route.id));
|
|
1401
1401
|
}), m.size === 0)
|
|
1402
1402
|
return [];
|
|
1403
1403
|
let b = Md(
|
|
@@ -1408,7 +1408,7 @@ function qd({
|
|
|
1408
1408
|
);
|
|
1409
1409
|
return g && m.size > 0 && b.searchParams.set(
|
|
1410
1410
|
"_routes",
|
|
1411
|
-
e.filter((
|
|
1411
|
+
e.filter((C) => m.has(C.route.id)).map((C) => C.route.id).join(",")
|
|
1412
1412
|
), [b.pathname + b.search];
|
|
1413
1413
|
}, [
|
|
1414
1414
|
a,
|
|
@@ -1468,14 +1468,14 @@ var gu = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bu = R.forwardRef(
|
|
|
1468
1468
|
unstable_defaultShouldRevalidate: h,
|
|
1469
1469
|
...f
|
|
1470
1470
|
}, m) {
|
|
1471
|
-
let { basename: g, navigator: b, unstable_useTransitions:
|
|
1472
|
-
l =
|
|
1473
|
-
let
|
|
1471
|
+
let { basename: g, navigator: b, unstable_useTransitions: C } = R.useContext(ot), I = typeof l == "string" && gu.test(l), S = iu(l, g);
|
|
1472
|
+
l = S.to;
|
|
1473
|
+
let y = sd(l, { relative: s }), E = wt(), k = null;
|
|
1474
1474
|
if (a) {
|
|
1475
1475
|
let X = Os(
|
|
1476
1476
|
a,
|
|
1477
1477
|
[],
|
|
1478
|
-
|
|
1478
|
+
E.unstable_mask ? E.unstable_mask.pathname : "/",
|
|
1479
1479
|
!0
|
|
1480
1480
|
);
|
|
1481
1481
|
g !== "/" && (X.pathname = X.pathname === "/" ? g : Lt([g, X.pathname])), k = b.createHref(X);
|
|
@@ -1492,19 +1492,19 @@ var gu = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bu = R.forwardRef(
|
|
|
1492
1492
|
relative: s,
|
|
1493
1493
|
viewTransition: p,
|
|
1494
1494
|
unstable_defaultShouldRevalidate: h,
|
|
1495
|
-
unstable_useTransitions:
|
|
1495
|
+
unstable_useTransitions: C
|
|
1496
1496
|
});
|
|
1497
1497
|
function B(X) {
|
|
1498
1498
|
e && e(X), X.defaultPrevented || P(X);
|
|
1499
1499
|
}
|
|
1500
|
-
let z = !(
|
|
1500
|
+
let z = !(S.isExternal || i), W = (
|
|
1501
1501
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1502
1502
|
/* @__PURE__ */ R.createElement(
|
|
1503
1503
|
"a",
|
|
1504
1504
|
{
|
|
1505
1505
|
...f,
|
|
1506
1506
|
...M,
|
|
1507
|
-
href: (z ? k : void 0) ||
|
|
1507
|
+
href: (z ? k : void 0) || S.absoluteURL || y,
|
|
1508
1508
|
onClick: z ? B : e,
|
|
1509
1509
|
ref: Ud(m, T),
|
|
1510
1510
|
target: c,
|
|
@@ -1512,7 +1512,7 @@ var gu = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bu = R.forwardRef(
|
|
|
1512
1512
|
}
|
|
1513
1513
|
)
|
|
1514
1514
|
);
|
|
1515
|
-
return O && !I ? /* @__PURE__ */ R.createElement(R.Fragment, null, W, /* @__PURE__ */ R.createElement(zd, { page:
|
|
1515
|
+
return O && !I ? /* @__PURE__ */ R.createElement(R.Fragment, null, W, /* @__PURE__ */ R.createElement(zd, { page: y })) : W;
|
|
1516
1516
|
}
|
|
1517
1517
|
);
|
|
1518
1518
|
bu.displayName = "Link";
|
|
@@ -1530,18 +1530,18 @@ var Hd = R.forwardRef(
|
|
|
1530
1530
|
}, l) {
|
|
1531
1531
|
let d = Br(o, { relative: c.relative }), p = wt(), h = R.useContext(Bs), { navigator: f, basename: m } = R.useContext(ot), g = h != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1532
1532
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1533
|
-
$d(d) && a === !0, b = f.encodeLocation ? f.encodeLocation(d).pathname : d.pathname,
|
|
1534
|
-
n || (
|
|
1535
|
-
const
|
|
1536
|
-
let
|
|
1537
|
-
isActive:
|
|
1538
|
-
isPending:
|
|
1533
|
+
$d(d) && a === !0, b = f.encodeLocation ? f.encodeLocation(d).pathname : d.pathname, C = p.pathname, I = h && h.navigation && h.navigation.location ? h.navigation.location.pathname : null;
|
|
1534
|
+
n || (C = C.toLowerCase(), I = I ? I.toLowerCase() : null, b = b.toLowerCase()), I && m && (I = jt(I, m) || I);
|
|
1535
|
+
const S = b !== "/" && b.endsWith("/") ? b.length - 1 : b.length;
|
|
1536
|
+
let y = C === b || !s && C.startsWith(b) && C.charAt(S) === "/", E = I != null && (I === b || !s && I.startsWith(b) && I.charAt(b.length) === "/"), k = {
|
|
1537
|
+
isActive: y,
|
|
1538
|
+
isPending: E,
|
|
1539
1539
|
isTransitioning: g
|
|
1540
|
-
}, O =
|
|
1540
|
+
}, O = y ? e : void 0, T;
|
|
1541
1541
|
typeof r == "function" ? T = r(k) : T = [
|
|
1542
1542
|
r,
|
|
1543
|
-
|
|
1544
|
-
|
|
1543
|
+
y ? "active" : null,
|
|
1544
|
+
E ? "pending" : null,
|
|
1545
1545
|
g ? "transitioning" : null
|
|
1546
1546
|
].filter(Boolean).join(" ");
|
|
1547
1547
|
let M = typeof i == "function" ? i(k) : i;
|
|
@@ -1578,10 +1578,10 @@ var Xd = R.forwardRef(
|
|
|
1578
1578
|
unstable_defaultShouldRevalidate: p,
|
|
1579
1579
|
...h
|
|
1580
1580
|
}, f) => {
|
|
1581
|
-
let { unstable_useTransitions: m } = R.useContext(ot), g = Jd(), b = Qd(a, { relative: c }),
|
|
1582
|
-
if (u && u(
|
|
1583
|
-
|
|
1584
|
-
let
|
|
1581
|
+
let { unstable_useTransitions: m } = R.useContext(ot), g = Jd(), b = Qd(a, { relative: c }), C = o.toLowerCase() === "get" ? "get" : "post", I = typeof a == "string" && gu.test(a), S = (y) => {
|
|
1582
|
+
if (u && u(y), y.defaultPrevented) return;
|
|
1583
|
+
y.preventDefault();
|
|
1584
|
+
let E = y.nativeEvent.submitter, k = E?.getAttribute("formmethod") || o, O = () => g(E || y.currentTarget, {
|
|
1585
1585
|
fetcherKey: e,
|
|
1586
1586
|
method: k,
|
|
1587
1587
|
navigate: n,
|
|
@@ -1598,9 +1598,9 @@ var Xd = R.forwardRef(
|
|
|
1598
1598
|
"form",
|
|
1599
1599
|
{
|
|
1600
1600
|
ref: f,
|
|
1601
|
-
method:
|
|
1601
|
+
method: C,
|
|
1602
1602
|
action: b,
|
|
1603
|
-
onSubmit: r ? u :
|
|
1603
|
+
onSubmit: r ? u : S,
|
|
1604
1604
|
...h,
|
|
1605
1605
|
"data-discover": !I && t === "render" ? "true" : void 0
|
|
1606
1606
|
}
|
|
@@ -1611,7 +1611,7 @@ Xd.displayName = "Form";
|
|
|
1611
1611
|
function Zd(t) {
|
|
1612
1612
|
return `${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function yu(t) {
|
|
1615
1615
|
let e = R.useContext(Yn);
|
|
1616
1616
|
return Re(e, Zd(t)), e;
|
|
1617
1617
|
}
|
|
@@ -1662,7 +1662,7 @@ function jd(t, {
|
|
|
1662
1662
|
}
|
|
1663
1663
|
var Kd = 0, Yd = () => `__${String(++Kd)}__`;
|
|
1664
1664
|
function Jd() {
|
|
1665
|
-
let { router: t } =
|
|
1665
|
+
let { router: t } = yu(
|
|
1666
1666
|
"useSubmit"
|
|
1667
1667
|
/* UseSubmit */
|
|
1668
1668
|
), { basename: e } = R.useContext(ot), n = md(), r = t.fetch, s = t.navigate;
|
|
@@ -1722,7 +1722,7 @@ function $d(t, { relative: e } = {}) {
|
|
|
1722
1722
|
n != null,
|
|
1723
1723
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
1724
1724
|
);
|
|
1725
|
-
let { basename: r } =
|
|
1725
|
+
let { basename: r } = yu(
|
|
1726
1726
|
"useViewTransitionState"
|
|
1727
1727
|
/* useViewTransitionState */
|
|
1728
1728
|
), s = Br(t, { relative: e });
|
|
@@ -1748,7 +1748,7 @@ class Vr extends Error {
|
|
|
1748
1748
|
e instanceof Error ? (super(e.message), this.cause = e) : super(e), this.reason = n, this.name = "ReasonError";
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
|
-
class
|
|
1751
|
+
class Cu extends Vr {
|
|
1752
1752
|
constructor(e) {
|
|
1753
1753
|
super("Rejected", e), this.name = "SubscriptionRejectedError";
|
|
1754
1754
|
}
|
|
@@ -1758,12 +1758,12 @@ class eh extends Vr {
|
|
|
1758
1758
|
super(e || "Timed out to receive subscription ack"), this.name = "SubscriptionTimeoutError";
|
|
1759
1759
|
}
|
|
1760
1760
|
}
|
|
1761
|
-
class
|
|
1761
|
+
class Ct extends Vr {
|
|
1762
1762
|
constructor(e, n) {
|
|
1763
1763
|
n ? super(e, n) : super("Disconnected", e), this.name = "DisconnectedError";
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
|
-
class th extends
|
|
1766
|
+
class th extends Ct {
|
|
1767
1767
|
constructor(e) {
|
|
1768
1768
|
super(e, "stale_connection"), this.name = "StaleConnectionError";
|
|
1769
1769
|
}
|
|
@@ -2212,7 +2212,7 @@ class Au {
|
|
|
2212
2212
|
return a && this.cable.setSessionId(a), this.cable.connected();
|
|
2213
2213
|
}
|
|
2214
2214
|
if (n === "disconnect") {
|
|
2215
|
-
let a = new
|
|
2215
|
+
let a = new Ct(i);
|
|
2216
2216
|
this.reset(a), o === !1 ? this.cable.closed(a) : this.cable.disconnected(a);
|
|
2217
2217
|
return;
|
|
2218
2218
|
}
|
|
@@ -2229,7 +2229,7 @@ class Au {
|
|
|
2229
2229
|
}
|
|
2230
2230
|
if (n === "reject_subscription") {
|
|
2231
2231
|
let a = this.pendingSubscriptions[r];
|
|
2232
|
-
return a ? (delete this.pendingSubscriptions[r], a.reject(new
|
|
2232
|
+
return a ? (delete this.pendingSubscriptions[r], a.reject(new Cu())) : this.logger.error("subscription not found", { type: n, identifier: r });
|
|
2233
2233
|
}
|
|
2234
2234
|
if (s)
|
|
2235
2235
|
return { identifier: r, message: s };
|
|
@@ -2457,7 +2457,7 @@ class fh {
|
|
|
2457
2457
|
this.logger.info("connected"), this[pn] = "connected", this.recovering && this.hub.subscriptions.all().forEach(
|
|
2458
2458
|
(n) => n.notify(
|
|
2459
2459
|
"disconnected",
|
|
2460
|
-
new
|
|
2460
|
+
new Ct("recovery_failed")
|
|
2461
2461
|
)
|
|
2462
2462
|
), this.hub.subscriptions.all().forEach((n) => this._resubscribe(n));
|
|
2463
2463
|
let e = !1;
|
|
@@ -2467,7 +2467,7 @@ class fh {
|
|
|
2467
2467
|
this.logger.info("connection recovered", { remoteIds: e }), this[pn] = "connected", this.hub.subscriptions.all().forEach((s) => {
|
|
2468
2468
|
e && s.remoteId && e.includes(s.remoteId) ? s.notify("restored") : (s.notify(
|
|
2469
2469
|
"disconnected",
|
|
2470
|
-
new
|
|
2470
|
+
new Ct("recovery_failed")
|
|
2471
2471
|
), this._resubscribe(s));
|
|
2472
2472
|
});
|
|
2473
2473
|
let n = !this.initialConnect, r = !0;
|
|
@@ -2477,7 +2477,7 @@ class fh {
|
|
|
2477
2477
|
n && typeof n != "string" && (r = n, n = void 0), n ? this.hub.notify(n, "info", { type: e, data: r }) : this.emit("info", { type: e, data: r });
|
|
2478
2478
|
}
|
|
2479
2479
|
handleClose(e) {
|
|
2480
|
-
this.logger.debug("transport closed", { error: e }), this.disconnected(new
|
|
2480
|
+
this.logger.debug("transport closed", { error: e }), this.disconnected(new Ct(e, "transport_closed"));
|
|
2481
2481
|
}
|
|
2482
2482
|
disconnected(e) {
|
|
2483
2483
|
(this.state === "connected" || this.state === "connecting") && (this.logger.info("disconnected", { reason: e }), this[pn] = "disconnected", this.recovering = this.protocol.recoverableClosure(e), this.recovering ? this.hub.subscriptions.all().forEach((n) => n.notify("connecting")) : this.hub.subscriptions.all().forEach((n) => {
|
|
@@ -2487,8 +2487,8 @@ class fh {
|
|
|
2487
2487
|
closed(e) {
|
|
2488
2488
|
if (this.state === "closed" || this.state === "idle") return;
|
|
2489
2489
|
let n;
|
|
2490
|
-
e && (n = e instanceof
|
|
2491
|
-
let r = n || new
|
|
2490
|
+
e && (n = e instanceof Ct ? e : new Ct(e, void 0)), this.logger.info("closed", { reason: e || "user" }), this[pn] = "closed";
|
|
2491
|
+
let r = n || new Ct("cable_closed");
|
|
2492
2492
|
this.hub.subscriptions.all().forEach((s) => s.notify("disconnected", r)), this.hub.close(), this.protocol.reset(), this.transport.close(), this.initialConnect = !0, this.emit("close", n);
|
|
2493
2493
|
}
|
|
2494
2494
|
disconnect() {
|
|
@@ -2585,7 +2585,7 @@ class fh {
|
|
|
2585
2585
|
this.hub.subscribe(s, a), this.logger.debug("subscribed", { ...o, remoteId: a }), e.notify("connected");
|
|
2586
2586
|
} catch (a) {
|
|
2587
2587
|
if (a) {
|
|
2588
|
-
if (a instanceof
|
|
2588
|
+
if (a instanceof Cu && this.logger.warn("rejected", o), a instanceof Ct) {
|
|
2589
2589
|
this.logger.debug(
|
|
2590
2590
|
"disconnected during subscription; will retry on connect",
|
|
2591
2591
|
o
|
|
@@ -2639,7 +2639,7 @@ class fh {
|
|
|
2639
2639
|
try {
|
|
2640
2640
|
await this.protocol.unsubscribe(s), this.logger.debug("unsubscribed remotely", { id: n });
|
|
2641
2641
|
} catch (i) {
|
|
2642
|
-
i && (i instanceof
|
|
2642
|
+
i && (i instanceof Ct ? this.logger.debug(
|
|
2643
2643
|
"cable disconnected during the unsubscribe command execution",
|
|
2644
2644
|
{ id: n, error: i }
|
|
2645
2645
|
) : this.logger.error("unsubscribe failed", {
|
|
@@ -2983,25 +2983,25 @@ function bh(t, e) {
|
|
|
2983
2983
|
reconnectStrategy: m,
|
|
2984
2984
|
maxMissingPings: g,
|
|
2985
2985
|
maxReconnectAttempts: b,
|
|
2986
|
-
subprotocol:
|
|
2986
|
+
subprotocol: C,
|
|
2987
2987
|
tokenRefresher: I,
|
|
2988
|
-
historyTimestamp:
|
|
2989
|
-
protocolOptions:
|
|
2990
|
-
concurrentSubscribes:
|
|
2988
|
+
historyTimestamp: S,
|
|
2989
|
+
protocolOptions: y,
|
|
2990
|
+
concurrentSubscribes: E,
|
|
2991
2991
|
performFailures: k,
|
|
2992
2992
|
transportConfigurator: O,
|
|
2993
2993
|
auth: T
|
|
2994
2994
|
} = e;
|
|
2995
2995
|
if (c = c || new zr(u), typeof n == "string") {
|
|
2996
|
-
|
|
2996
|
+
C = C || n;
|
|
2997
2997
|
let B = n.substring(0, n.lastIndexOf("-")), z = n.substring(n.lastIndexOf("-") + 1);
|
|
2998
|
-
if (
|
|
2999
|
-
n = new Au({ logger: c, ...
|
|
2998
|
+
if (y = y || {}, B === "actioncable-v1")
|
|
2999
|
+
n = new Au({ logger: c, ...y });
|
|
3000
3000
|
else if (B === "actioncable-v1-ext")
|
|
3001
3001
|
n = new ch({
|
|
3002
3002
|
logger: c,
|
|
3003
|
-
historyTimestamp:
|
|
3004
|
-
...
|
|
3003
|
+
historyTimestamp: S,
|
|
3004
|
+
...y
|
|
3005
3005
|
});
|
|
3006
3006
|
else
|
|
3007
3007
|
throw Error(`Protocol is not supported yet: ${n}`);
|
|
@@ -3024,7 +3024,7 @@ function bh(t, e) {
|
|
|
3024
3024
|
l = l || new gh(t, {
|
|
3025
3025
|
websocketImplementation: r,
|
|
3026
3026
|
websocketOptions: i,
|
|
3027
|
-
subprotocol:
|
|
3027
|
+
subprotocol: C,
|
|
3028
3028
|
authStrategy: o,
|
|
3029
3029
|
format: s
|
|
3030
3030
|
}), a && (l = new mh([l, ...a], { logger: c })), T && T.token && l.setToken(T.token, T.param || "jid"), m = m || wu(f), h !== !1 && (h = h || new Su({
|
|
@@ -3034,7 +3034,7 @@ function bh(t, e) {
|
|
|
3034
3034
|
maxReconnectAttempts: b,
|
|
3035
3035
|
logger: c
|
|
3036
3036
|
}));
|
|
3037
|
-
let M = { concurrentSubscribes:
|
|
3037
|
+
let M = { concurrentSubscribes: E }, P = new fh({
|
|
3038
3038
|
protocol: n,
|
|
3039
3039
|
transport: l,
|
|
3040
3040
|
encoder: d,
|
|
@@ -3044,7 +3044,7 @@ function bh(t, e) {
|
|
|
3044
3044
|
performFailures: k,
|
|
3045
3045
|
transportConfigurator: O
|
|
3046
3046
|
});
|
|
3047
|
-
return h && (h.watch(P), P.monitor = h), I &&
|
|
3047
|
+
return h && (h.watch(P), P.monitor = h), I && yh(P, async () => {
|
|
3048
3048
|
try {
|
|
3049
3049
|
await I(l);
|
|
3050
3050
|
} catch (B) {
|
|
@@ -3054,7 +3054,7 @@ function bh(t, e) {
|
|
|
3054
3054
|
}), !0;
|
|
3055
3055
|
}), P;
|
|
3056
3056
|
}
|
|
3057
|
-
function
|
|
3057
|
+
function yh(t, e) {
|
|
3058
3058
|
let n = !1;
|
|
3059
3059
|
t.on("connect", () => n = !1), t.on("close", async (r) => {
|
|
3060
3060
|
if (r) {
|
|
@@ -3066,7 +3066,7 @@ function Ch(t, e) {
|
|
|
3066
3066
|
}
|
|
3067
3067
|
});
|
|
3068
3068
|
}
|
|
3069
|
-
class
|
|
3069
|
+
class Ch extends vu {
|
|
3070
3070
|
writeLogEntry(e, n, r) {
|
|
3071
3071
|
r ? console[e](n, r) : console[e](n);
|
|
3072
3072
|
}
|
|
@@ -3081,7 +3081,7 @@ class Ih extends Su {
|
|
|
3081
3081
|
document.hidden || this.reconnectNow() && this.logger.debug("Trigger reconnect due to visibility change");
|
|
3082
3082
|
}, n = (s) => {
|
|
3083
3083
|
this.reconnectNow() && this.logger.debug("Trigger reconnect", { event: s });
|
|
3084
|
-
}, r = () => this.disconnect(new
|
|
3084
|
+
}, r = () => this.disconnect(new Ct("page_frozen"));
|
|
3085
3085
|
document.addEventListener("visibilitychange", e, !1), window.addEventListener("focus", n, !1), window.addEventListener("online", n, !1), window.addEventListener("resume", n, !1), window.addEventListener("freeze", r, !1), this.unbind.push(() => {
|
|
3086
3086
|
document.removeEventListener("visibilitychange", e, !1), window.removeEventListener("focus", n, !1), window.removeEventListener("online", n, !1), window.removeEventListener("resume", n, !1), window.removeEventListener("freeze", r, !1);
|
|
3087
3087
|
});
|
|
@@ -3133,7 +3133,7 @@ function xh(t, e) {
|
|
|
3133
3133
|
maxMissingPings: a,
|
|
3134
3134
|
maxReconnectAttempts: u
|
|
3135
3135
|
} = e;
|
|
3136
|
-
return s = e.logger = e.logger || new
|
|
3136
|
+
return s = e.logger = e.logger || new Ch(r), o = e.reconnectStrategy = e.reconnectStrategy || wu(i), e.monitor !== !1 && (e.monitor = e.monitor || new Ih({
|
|
3137
3137
|
pingInterval: i,
|
|
3138
3138
|
reconnectStrategy: o,
|
|
3139
3139
|
maxMissingPings: a,
|
|
@@ -3250,7 +3250,7 @@ const Ht = {
|
|
|
3250
3250
|
agentResponseFailed: "error.agentResponseFailed",
|
|
3251
3251
|
sendMessageFallback: "error.sendMessageFailed",
|
|
3252
3252
|
conversationClosed: "error.conversationClosed"
|
|
3253
|
-
}, Fh = new Set(Object.values(Ht)),
|
|
3253
|
+
}, Fh = new Set(Object.values(Ht)), sC = (t, e) => Fh.has(t) ? e(t) : t, iC = {
|
|
3254
3254
|
audio_playback_failed: "voice.audioPlaybackFailed",
|
|
3255
3255
|
session_failed: "voice.sessionFailed",
|
|
3256
3256
|
connection_closed: "voice.connectionClosed",
|
|
@@ -3280,7 +3280,7 @@ const Ht = {
|
|
|
3280
3280
|
humanSupport: "UNKNOWN",
|
|
3281
3281
|
ai: "UNKNOWN",
|
|
3282
3282
|
identity: "SUPPORT"
|
|
3283
|
-
}, Oh = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i, kr = (t) => !!t && typeof t == "object" && !Array.isArray(t), Kt = (t) => typeof t == "string" && t.length >= 1 && t.length <= 32 && /^(?:0|[1-9][0-9]*)$/.test(t), ii = (t) => typeof t == "string" && t.length >= 1 && t.length <= 20 && /^(?:0|[1-9][0-9]*)$/.test(t), to = (t) => typeof t == "string" && Number.isFinite(Date.parse(t)),
|
|
3283
|
+
}, Oh = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i, kr = (t) => !!t && typeof t == "object" && !Array.isArray(t), Kt = (t) => typeof t == "string" && t.length >= 1 && t.length <= 32 && /^(?:0|[1-9][0-9]*)$/.test(t), ii = (t) => typeof t == "string" && t.length >= 1 && t.length <= 20 && /^(?:0|[1-9][0-9]*)$/.test(t), to = (t) => typeof t == "string" && Number.isFinite(Date.parse(t)), yr = (t) => t === null || to(t), Wo = (t) => t === null || Number.isSafeInteger(t) && t >= 1, Bh = (t) => t === null || !kr(t) || typeof t.id != "string" || !Oh.test(t.id) || !Number.isSafeInteger(t.version) || t.version < 1 ? null : { id: t.id, version: t.version }, Vh = (t) => {
|
|
3284
3284
|
if (typeof t != "string") return null;
|
|
3285
3285
|
try {
|
|
3286
3286
|
const e = new URL(t);
|
|
@@ -3308,7 +3308,7 @@ function xu(t) {
|
|
|
3308
3308
|
legacyAvatarUrl: n && r ? null : Vh(t.avatarUrl)
|
|
3309
3309
|
};
|
|
3310
3310
|
}
|
|
3311
|
-
const zh = (t) => !kr(t) || !to(t.conversationUpdatedAt) || !ii(t.escalationVersionSum) || !
|
|
3311
|
+
const zh = (t) => !kr(t) || !to(t.conversationUpdatedAt) || !ii(t.escalationVersionSum) || !yr(t.escalationUpdatedAt) || !ii(t.assignmentVersionSum) || !yr(t.assignmentUpdatedAt) || !(t.aiSuspensionVersion === null || ii(t.aiSuspensionVersion)) || !yr(t.aiSuspensionUpdatedAt) || !Wo(t.lolaPresentationVersion) || !Wo(t.operatorPresentationVersion) || !yr(t.avatarAssetUpdatedAt) ? null : {
|
|
3312
3312
|
conversationUpdatedAt: t.conversationUpdatedAt,
|
|
3313
3313
|
escalationVersionSum: t.escalationVersionSum,
|
|
3314
3314
|
escalationUpdatedAt: t.escalationUpdatedAt,
|
|
@@ -3323,7 +3323,7 @@ const zh = (t) => !kr(t) || !to(t.conversationUpdatedAt) || !ii(t.escalationVers
|
|
|
3323
3323
|
function Gh(t) {
|
|
3324
3324
|
if (!kr(t) || t.schemaVersion !== 2 || typeof t.humanSupport != "string" || !Nh.includes(
|
|
3325
3325
|
t.humanSupport
|
|
3326
|
-
) || typeof t.ai != "string" || !Lh.includes(t.ai) || t.identity !== "LOLA" && t.identity !== "SUPPORT" || !Kt(t.revision) || !
|
|
3326
|
+
) || typeof t.ai != "string" || !Lh.includes(t.ai) || t.identity !== "LOLA" && t.identity !== "SUPPORT" || !Kt(t.revision) || !yr(t.refreshAt) || !to(t.serverTime))
|
|
3327
3327
|
return null;
|
|
3328
3328
|
const e = t.humanSupport;
|
|
3329
3329
|
if (e === "NONE" != (t.identity === "LOLA")) return null;
|
|
@@ -3799,9 +3799,9 @@ function l0(t, {
|
|
|
3799
3799
|
});
|
|
3800
3800
|
return o.marks ? o.marks.reduce((m, g) => {
|
|
3801
3801
|
var b;
|
|
3802
|
-
const
|
|
3802
|
+
const C = typeof g.type == "string" ? g.type : g.type.name, I = (b = n[C]) != null ? b : s;
|
|
3803
3803
|
if (!I)
|
|
3804
|
-
throw new Error(`missing handler for mark type ${
|
|
3804
|
+
throw new Error(`missing handler for mark type ${C}`);
|
|
3805
3805
|
return t({
|
|
3806
3806
|
component: I,
|
|
3807
3807
|
props: {
|
|
@@ -3940,8 +3940,8 @@ function ro(t) {
|
|
|
3940
3940
|
function ks() {
|
|
3941
3941
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
3942
3942
|
}
|
|
3943
|
-
const m0 = /^([a-z0-9.+-]+:)/i, g0 = /:[0-9]*$/, b0 = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,
|
|
3944
|
-
`, " "],
|
|
3943
|
+
const m0 = /^([a-z0-9.+-]+:)/i, g0 = /:[0-9]*$/, b0 = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, y0 = ["<", ">", '"', "`", " ", "\r", `
|
|
3944
|
+
`, " "], C0 = ["{", "}", "|", "\\", "^", "`"].concat(y0), I0 = ["'"].concat(C0), Qo = ["%", "/", "?", ";", "#"].concat(I0), $o = ["/", "?", "#"], v0 = 255, ea = /^[+a-z0-9A-Z_-]{0,63}$/, A0 = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, ta = {
|
|
3945
3945
|
javascript: !0,
|
|
3946
3946
|
"javascript:": !0
|
|
3947
3947
|
}, na = {
|
|
@@ -3986,12 +3986,12 @@ ks.prototype.parse = function(t, e) {
|
|
|
3986
3986
|
for (let m = 0, g = f.length; m < g; m++) {
|
|
3987
3987
|
const b = f[m];
|
|
3988
3988
|
if (b && !b.match(ea)) {
|
|
3989
|
-
let
|
|
3990
|
-
for (let I = 0,
|
|
3991
|
-
b.charCodeAt(I) > 127 ?
|
|
3992
|
-
if (!
|
|
3993
|
-
const I = f.slice(0, m),
|
|
3994
|
-
|
|
3989
|
+
let C = "";
|
|
3990
|
+
for (let I = 0, S = b.length; I < S; I++)
|
|
3991
|
+
b.charCodeAt(I) > 127 ? C += "x" : C += b[I];
|
|
3992
|
+
if (!C.match(ea)) {
|
|
3993
|
+
const I = f.slice(0, m), S = f.slice(m + 1), y = b.match(A0);
|
|
3994
|
+
y && (I.push(y[1]), S.unshift(y[2])), S.length && (i = S.join(".") + i), this.hostname = I.join(".");
|
|
3995
3995
|
break;
|
|
3996
3996
|
}
|
|
3997
3997
|
}
|
|
@@ -4913,15 +4913,15 @@ function ff(t) {
|
|
|
4913
4913
|
c[h].schema ? c[h].schema === "mailto:" && !/^mailto:/i.test(g) ? g = t.md.normalizeLinkText("mailto:" + g).replace(/^mailto:/, "") : g = t.md.normalizeLinkText(g) : g = t.md.normalizeLinkText("http://" + g).replace(/^http:\/\//, "");
|
|
4914
4914
|
const b = c[h].index;
|
|
4915
4915
|
if (b > p) {
|
|
4916
|
-
const
|
|
4917
|
-
|
|
4916
|
+
const y = new t.Token("text", "", 0);
|
|
4917
|
+
y.content = u.slice(p, b), y.level = d, l.push(y);
|
|
4918
4918
|
}
|
|
4919
|
-
const
|
|
4920
|
-
|
|
4919
|
+
const C = new t.Token("link_open", "a", 1);
|
|
4920
|
+
C.attrs = [["href", m]], C.level = d++, C.markup = "linkify", C.info = "auto", l.push(C);
|
|
4921
4921
|
const I = new t.Token("text", "", 0);
|
|
4922
4922
|
I.content = g, I.level = d, l.push(I);
|
|
4923
|
-
const
|
|
4924
|
-
|
|
4923
|
+
const S = new t.Token("link_close", "a", -1);
|
|
4924
|
+
S.level = --d, S.markup = "linkify", S.info = "auto", l.push(S), p = c[h].lastIndex;
|
|
4925
4925
|
}
|
|
4926
4926
|
if (p < u.length) {
|
|
4927
4927
|
const h = new t.Token("text", "", 0);
|
|
@@ -4940,14 +4940,14 @@ const ju = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, pf = /\((c|tm|r)\)/i, mf = /\((c|tm|r
|
|
|
4940
4940
|
function bf(t, e) {
|
|
4941
4941
|
return gf[e.toLowerCase()];
|
|
4942
4942
|
}
|
|
4943
|
-
function
|
|
4943
|
+
function yf(t) {
|
|
4944
4944
|
let e = 0;
|
|
4945
4945
|
for (let n = t.length - 1; n >= 0; n--) {
|
|
4946
4946
|
const r = t[n];
|
|
4947
4947
|
r.type === "text" && !e && (r.content = r.content.replace(mf, bf)), r.type === "link_open" && r.info === "auto" && e--, r.type === "link_close" && r.info === "auto" && e++;
|
|
4948
4948
|
}
|
|
4949
4949
|
}
|
|
4950
|
-
function
|
|
4950
|
+
function Cf(t) {
|
|
4951
4951
|
let e = 0;
|
|
4952
4952
|
for (let n = t.length - 1; n >= 0; n--) {
|
|
4953
4953
|
const r = t[n];
|
|
@@ -4958,7 +4958,7 @@ function If(t) {
|
|
|
4958
4958
|
let e;
|
|
4959
4959
|
if (t.md.options.typographer)
|
|
4960
4960
|
for (e = t.tokens.length - 1; e >= 0; e--)
|
|
4961
|
-
t.tokens[e].type === "inline" && (pf.test(t.tokens[e].content) &&
|
|
4961
|
+
t.tokens[e].type === "inline" && (pf.test(t.tokens[e].content) && yf(t.tokens[e].children), ju.test(t.tokens[e].content) && Cf(t.tokens[e].children));
|
|
4962
4962
|
}
|
|
4963
4963
|
const vf = /['"]/, sa = /['"]/g, ia = "’";
|
|
4964
4964
|
function $r(t, e, n, r) {
|
|
@@ -5012,20 +5012,20 @@ function wf(t, e) {
|
|
|
5012
5012
|
g = t[n].content.charCodeAt(0);
|
|
5013
5013
|
break;
|
|
5014
5014
|
}
|
|
5015
|
-
const b = Mr(m) || Rr(m),
|
|
5016
|
-
if (
|
|
5015
|
+
const b = Mr(m) || Rr(m), C = Mr(g) || Rr(g), I = Tr(m), S = Tr(g);
|
|
5016
|
+
if (S ? p = !1 : C && (I || b || (p = !1)), I ? h = !1 : b && (S || C || (h = !1)), g === 34 && d[0] === '"' && m >= 48 && m <= 57 && (h = p = !1), p && h && (p = b, h = C), !p && !h) {
|
|
5017
5017
|
f && $r(s, i, d.index, ia);
|
|
5018
5018
|
continue;
|
|
5019
5019
|
}
|
|
5020
5020
|
if (h)
|
|
5021
5021
|
for (n = r.length - 1; n >= 0; n--) {
|
|
5022
|
-
let
|
|
5022
|
+
let y = r[n];
|
|
5023
5023
|
if (r[n].level < a)
|
|
5024
5024
|
break;
|
|
5025
|
-
if (
|
|
5026
|
-
|
|
5027
|
-
let
|
|
5028
|
-
f ? (
|
|
5025
|
+
if (y.single === f && r[n].level === a) {
|
|
5026
|
+
y = r[n];
|
|
5027
|
+
let E, k;
|
|
5028
|
+
f ? (E = e.md.options.quotes[2], k = e.md.options.quotes[3]) : (E = e.md.options.quotes[0], k = e.md.options.quotes[1]), $r(s, i, d.index, k), $r(s, y.token, y.pos, E), r.length = n;
|
|
5029
5029
|
continue e;
|
|
5030
5030
|
}
|
|
5031
5031
|
}
|
|
@@ -5188,23 +5188,23 @@ function xf(t, e, n, r) {
|
|
|
5188
5188
|
if (a !== 124 && a !== 45 && a !== 58 && !Ee(a) || o === 45 && Ee(a))
|
|
5189
5189
|
return !1;
|
|
5190
5190
|
for (; i < t.eMarks[s]; ) {
|
|
5191
|
-
const
|
|
5192
|
-
if (
|
|
5191
|
+
const S = t.src.charCodeAt(i);
|
|
5192
|
+
if (S !== 124 && S !== 45 && S !== 58 && !Ee(S))
|
|
5193
5193
|
return !1;
|
|
5194
5194
|
i++;
|
|
5195
5195
|
}
|
|
5196
5196
|
let u = ui(t, e + 1), c = u.split("|");
|
|
5197
5197
|
const l = [];
|
|
5198
|
-
for (let
|
|
5199
|
-
const
|
|
5200
|
-
if (!
|
|
5201
|
-
if (
|
|
5198
|
+
for (let S = 0; S < c.length; S++) {
|
|
5199
|
+
const y = c[S].trim();
|
|
5200
|
+
if (!y) {
|
|
5201
|
+
if (S === 0 || S === c.length - 1)
|
|
5202
5202
|
continue;
|
|
5203
5203
|
return !1;
|
|
5204
5204
|
}
|
|
5205
|
-
if (!/^:?-+:?$/.test(
|
|
5205
|
+
if (!/^:?-+:?$/.test(y))
|
|
5206
5206
|
return !1;
|
|
5207
|
-
|
|
5207
|
+
y.charCodeAt(y.length - 1) === 58 ? l.push(y.charCodeAt(0) === 58 ? "center" : "right") : y.charCodeAt(0) === 58 ? l.push("left") : l.push("");
|
|
5208
5208
|
}
|
|
5209
5209
|
if (u = ui(t, e).trim(), u.indexOf("|") === -1 || t.sCount[e] - t.blkIndent >= 4)
|
|
5210
5210
|
return !1;
|
|
@@ -5222,38 +5222,38 @@ function xf(t, e, n, r) {
|
|
|
5222
5222
|
g.map = [e, e + 1];
|
|
5223
5223
|
const b = t.push("tr_open", "tr", 1);
|
|
5224
5224
|
b.map = [e, e + 1];
|
|
5225
|
-
for (let
|
|
5226
|
-
const
|
|
5227
|
-
l[
|
|
5228
|
-
const
|
|
5229
|
-
|
|
5225
|
+
for (let S = 0; S < c.length; S++) {
|
|
5226
|
+
const y = t.push("th_open", "th", 1);
|
|
5227
|
+
l[S] && (y.attrs = [["style", "text-align:" + l[S]]]);
|
|
5228
|
+
const E = t.push("inline", "", 0);
|
|
5229
|
+
E.content = c[S].trim(), E.children = [], t.push("th_close", "th", -1);
|
|
5230
5230
|
}
|
|
5231
5231
|
t.push("tr_close", "tr", -1), t.push("thead_close", "thead", -1);
|
|
5232
|
-
let
|
|
5232
|
+
let C, I = 0;
|
|
5233
5233
|
for (s = e + 2; s < n && !(t.sCount[s] < t.blkIndent); s++) {
|
|
5234
|
-
let
|
|
5235
|
-
for (let
|
|
5236
|
-
if (h[
|
|
5237
|
-
|
|
5234
|
+
let S = !1;
|
|
5235
|
+
for (let E = 0, k = h.length; E < k; E++)
|
|
5236
|
+
if (h[E](t, s, n, !0)) {
|
|
5237
|
+
S = !0;
|
|
5238
5238
|
break;
|
|
5239
5239
|
}
|
|
5240
|
-
if (
|
|
5240
|
+
if (S || (u = ui(t, s).trim(), !u) || t.sCount[s] - t.blkIndent >= 4 || (c = oa(u), c.length && c[0] === "" && c.shift(), c.length && c[c.length - 1] === "" && c.pop(), I += d - c.length, I > kf))
|
|
5241
5241
|
break;
|
|
5242
5242
|
if (s === e + 2) {
|
|
5243
|
-
const
|
|
5244
|
-
|
|
5243
|
+
const E = t.push("tbody_open", "tbody", 1);
|
|
5244
|
+
E.map = C = [e + 2, 0];
|
|
5245
5245
|
}
|
|
5246
|
-
const
|
|
5247
|
-
|
|
5248
|
-
for (let
|
|
5246
|
+
const y = t.push("tr_open", "tr", 1);
|
|
5247
|
+
y.map = [s, s + 1];
|
|
5248
|
+
for (let E = 0; E < d; E++) {
|
|
5249
5249
|
const k = t.push("td_open", "td", 1);
|
|
5250
|
-
l[
|
|
5250
|
+
l[E] && (k.attrs = [["style", "text-align:" + l[E]]]);
|
|
5251
5251
|
const O = t.push("inline", "", 0);
|
|
5252
|
-
O.content = c[
|
|
5252
|
+
O.content = c[E] ? c[E].trim() : "", O.children = [], t.push("td_close", "td", -1);
|
|
5253
5253
|
}
|
|
5254
5254
|
t.push("tr_close", "tr", -1);
|
|
5255
5255
|
}
|
|
5256
|
-
return
|
|
5256
|
+
return C && (t.push("tbody_close", "tbody", -1), C[1] = s), t.push("table_close", "table", -1), m[1] = s, t.parentType = p, t.line = s, !0;
|
|
5257
5257
|
}
|
|
5258
5258
|
function Tf(t, e, n) {
|
|
5259
5259
|
if (t.sCount[e] - t.blkIndent < 4)
|
|
@@ -5317,9 +5317,9 @@ function Mf(t, e, n, r) {
|
|
|
5317
5317
|
if (s = t.bMarks[f] + t.tShift[f], i = t.eMarks[f], s >= i)
|
|
5318
5318
|
break;
|
|
5319
5319
|
if (t.src.charCodeAt(s++) === 62 && !I) {
|
|
5320
|
-
let
|
|
5321
|
-
t.src.charCodeAt(s) === 32 ? (s++,
|
|
5322
|
-
let O =
|
|
5320
|
+
let y = t.sCount[f] + 1, E, k;
|
|
5321
|
+
t.src.charCodeAt(s) === 32 ? (s++, y++, k = !1, E = !0) : t.src.charCodeAt(s) === 9 ? (E = !0, (t.bsCount[f] + y) % 4 === 3 ? (s++, y++, k = !1) : k = !0) : E = !1;
|
|
5322
|
+
let O = y;
|
|
5323
5323
|
for (a.push(t.bMarks[f]), t.bMarks[f] = s; s < i; ) {
|
|
5324
5324
|
const T = t.src.charCodeAt(s);
|
|
5325
5325
|
if (Ee(T))
|
|
@@ -5328,18 +5328,18 @@ function Mf(t, e, n, r) {
|
|
|
5328
5328
|
break;
|
|
5329
5329
|
s++;
|
|
5330
5330
|
}
|
|
5331
|
-
h = s >= i, u.push(t.bsCount[f]), t.bsCount[f] = t.sCount[f] + 1 + (
|
|
5331
|
+
h = s >= i, u.push(t.bsCount[f]), t.bsCount[f] = t.sCount[f] + 1 + (E ? 1 : 0), c.push(t.sCount[f]), t.sCount[f] = O - y, l.push(t.tShift[f]), t.tShift[f] = s - t.bMarks[f];
|
|
5332
5332
|
continue;
|
|
5333
5333
|
}
|
|
5334
5334
|
if (h)
|
|
5335
5335
|
break;
|
|
5336
|
-
let
|
|
5337
|
-
for (let
|
|
5338
|
-
if (d[
|
|
5339
|
-
|
|
5336
|
+
let S = !1;
|
|
5337
|
+
for (let y = 0, E = d.length; y < E; y++)
|
|
5338
|
+
if (d[y](t, f, n, !0)) {
|
|
5339
|
+
S = !0;
|
|
5340
5340
|
break;
|
|
5341
5341
|
}
|
|
5342
|
-
if (
|
|
5342
|
+
if (S) {
|
|
5343
5343
|
t.lineMax = f, t.blkIndent !== 0 && (a.push(t.bMarks[f]), u.push(t.bsCount[f]), l.push(t.tShift[f]), c.push(t.sCount[f]), t.sCount[f] -= t.blkIndent);
|
|
5344
5344
|
break;
|
|
5345
5345
|
}
|
|
@@ -5351,8 +5351,8 @@ function Mf(t, e, n, r) {
|
|
|
5351
5351
|
g.markup = ">";
|
|
5352
5352
|
const b = [e, 0];
|
|
5353
5353
|
g.map = b, t.md.block.tokenize(t, e, f);
|
|
5354
|
-
const
|
|
5355
|
-
|
|
5354
|
+
const C = t.push("blockquote_close", "blockquote", -1);
|
|
5355
|
+
C.markup = ">", t.lineMax = o, t.parentType = p, b[1] = t.line;
|
|
5356
5356
|
for (let I = 0; I < l.length; I++)
|
|
5357
5357
|
t.bMarks[I + e] = a[I], t.tShift[I + e] = l[I], t.sCount[I + e] = c[I], t.bsCount[I + e] = u[I];
|
|
5358
5358
|
return t.blkIndent = m, !0;
|
|
@@ -5442,34 +5442,34 @@ function Ff(t, e, n, r) {
|
|
|
5442
5442
|
const g = [u, 0];
|
|
5443
5443
|
a.map = g, a.markup = String.fromCharCode(f);
|
|
5444
5444
|
let b = !1;
|
|
5445
|
-
const
|
|
5445
|
+
const C = t.md.block.ruler.getRules("list"), I = t.parentType;
|
|
5446
5446
|
for (t.parentType = "list"; u < n; ) {
|
|
5447
5447
|
i = h, s = t.eMarks[u];
|
|
5448
|
-
const
|
|
5449
|
-
let
|
|
5448
|
+
const S = t.sCount[u] + h - (t.bMarks[u] + t.tShift[u]);
|
|
5449
|
+
let y = S;
|
|
5450
5450
|
for (; i < s; ) {
|
|
5451
5451
|
const X = t.src.charCodeAt(i);
|
|
5452
5452
|
if (X === 9)
|
|
5453
|
-
|
|
5453
|
+
y += 4 - (y + t.bsCount[u]) % 4;
|
|
5454
5454
|
else if (X === 32)
|
|
5455
|
-
|
|
5455
|
+
y++;
|
|
5456
5456
|
else
|
|
5457
5457
|
break;
|
|
5458
5458
|
i++;
|
|
5459
5459
|
}
|
|
5460
|
-
const
|
|
5460
|
+
const E = i;
|
|
5461
5461
|
let k;
|
|
5462
|
-
|
|
5463
|
-
const O =
|
|
5462
|
+
E >= s ? k = 1 : k = y - S, k > 4 && (k = 1);
|
|
5463
|
+
const O = S + k;
|
|
5464
5464
|
a = t.push("list_item_open", "li", 1), a.markup = String.fromCharCode(f);
|
|
5465
5465
|
const T = [u, 0];
|
|
5466
5466
|
a.map = T, d && (a.info = t.src.slice(o, h - 1));
|
|
5467
5467
|
const M = t.tight, P = t.tShift[u], B = t.sCount[u], z = t.listIndent;
|
|
5468
|
-
if (t.listIndent = t.blkIndent, t.blkIndent = O, t.tight = !0, t.tShift[u] =
|
|
5468
|
+
if (t.listIndent = t.blkIndent, t.blkIndent = O, t.tight = !0, t.tShift[u] = E - t.bMarks[u], t.sCount[u] = y, E >= s && t.isEmpty(u + 1) ? t.line = Math.min(t.line + 2, n) : t.md.block.tokenize(t, u, n, !0), (!t.tight || b) && (c = !1), b = t.line - u > 1 && t.isEmpty(t.line - 1), t.blkIndent = t.listIndent, t.listIndent = z, t.tShift[u] = P, t.sCount[u] = B, t.tight = M, a = t.push("list_item_close", "li", -1), a.markup = String.fromCharCode(f), u = t.line, T[1] = u, u >= n || t.sCount[u] < t.blkIndent || t.sCount[u] - t.blkIndent >= 4)
|
|
5469
5469
|
break;
|
|
5470
5470
|
let W = !1;
|
|
5471
|
-
for (let X = 0, N =
|
|
5472
|
-
if (
|
|
5471
|
+
for (let X = 0, N = C.length; X < N; X++)
|
|
5472
|
+
if (C[X](t, u, n, !0)) {
|
|
5473
5473
|
W = !0;
|
|
5474
5474
|
break;
|
|
5475
5475
|
}
|
|
@@ -5490,40 +5490,40 @@ function Nf(t, e, n, r) {
|
|
|
5490
5490
|
let s = t.bMarks[e] + t.tShift[e], i = t.eMarks[e], o = e + 1;
|
|
5491
5491
|
if (t.sCount[e] - t.blkIndent >= 4 || t.src.charCodeAt(s) !== 91)
|
|
5492
5492
|
return !1;
|
|
5493
|
-
function a(
|
|
5493
|
+
function a(C) {
|
|
5494
5494
|
const I = t.lineMax;
|
|
5495
|
-
if (
|
|
5495
|
+
if (C >= I || t.isEmpty(C))
|
|
5496
5496
|
return null;
|
|
5497
|
-
let
|
|
5498
|
-
if (t.sCount[
|
|
5497
|
+
let S = !1;
|
|
5498
|
+
if (t.sCount[C] - t.blkIndent > 3 && (S = !0), t.sCount[C] < 0 && (S = !0), !S) {
|
|
5499
5499
|
const k = t.md.block.ruler.getRules("reference"), O = t.parentType;
|
|
5500
5500
|
t.parentType = "reference";
|
|
5501
5501
|
let T = !1;
|
|
5502
5502
|
for (let M = 0, P = k.length; M < P; M++)
|
|
5503
|
-
if (k[M](t,
|
|
5503
|
+
if (k[M](t, C, I, !0)) {
|
|
5504
5504
|
T = !0;
|
|
5505
5505
|
break;
|
|
5506
5506
|
}
|
|
5507
5507
|
if (t.parentType = O, T)
|
|
5508
5508
|
return null;
|
|
5509
5509
|
}
|
|
5510
|
-
const
|
|
5511
|
-
return t.src.slice(
|
|
5510
|
+
const y = t.bMarks[C] + t.tShift[C], E = t.eMarks[C];
|
|
5511
|
+
return t.src.slice(y, E + 1);
|
|
5512
5512
|
}
|
|
5513
5513
|
let u = t.src.slice(s, i + 1);
|
|
5514
5514
|
i = u.length;
|
|
5515
5515
|
let c = -1;
|
|
5516
5516
|
for (s = 1; s < i; s++) {
|
|
5517
|
-
const
|
|
5518
|
-
if (
|
|
5517
|
+
const C = u.charCodeAt(s);
|
|
5518
|
+
if (C === 91)
|
|
5519
5519
|
return !1;
|
|
5520
|
-
if (
|
|
5520
|
+
if (C === 93) {
|
|
5521
5521
|
c = s;
|
|
5522
5522
|
break;
|
|
5523
|
-
} else if (
|
|
5523
|
+
} else if (C === 10) {
|
|
5524
5524
|
const I = a(o);
|
|
5525
5525
|
I !== null && (u += I, i = u.length, o++);
|
|
5526
|
-
} else if (
|
|
5526
|
+
} else if (C === 92 && (s++, s < i && u.charCodeAt(s) === 10)) {
|
|
5527
5527
|
const I = a(o);
|
|
5528
5528
|
I !== null && (u += I, i = u.length, o++);
|
|
5529
5529
|
}
|
|
@@ -5531,11 +5531,11 @@ function Nf(t, e, n, r) {
|
|
|
5531
5531
|
if (c < 0 || u.charCodeAt(c + 1) !== 58)
|
|
5532
5532
|
return !1;
|
|
5533
5533
|
for (s = c + 2; s < i; s++) {
|
|
5534
|
-
const
|
|
5535
|
-
if (
|
|
5534
|
+
const C = u.charCodeAt(s);
|
|
5535
|
+
if (C === 10) {
|
|
5536
5536
|
const I = a(o);
|
|
5537
5537
|
I !== null && (u += I, i = u.length, o++);
|
|
5538
|
-
} else if (!Ee(
|
|
5538
|
+
} else if (!Ee(C)) break;
|
|
5539
5539
|
}
|
|
5540
5540
|
const l = t.md.helpers.parseLinkDestination(u, s, i);
|
|
5541
5541
|
if (!l.ok)
|
|
@@ -5546,29 +5546,29 @@ function Nf(t, e, n, r) {
|
|
|
5546
5546
|
s = l.pos;
|
|
5547
5547
|
const p = s, h = o, f = s;
|
|
5548
5548
|
for (; s < i; s++) {
|
|
5549
|
-
const
|
|
5550
|
-
if (
|
|
5549
|
+
const C = u.charCodeAt(s);
|
|
5550
|
+
if (C === 10) {
|
|
5551
5551
|
const I = a(o);
|
|
5552
5552
|
I !== null && (u += I, i = u.length, o++);
|
|
5553
|
-
} else if (!Ee(
|
|
5553
|
+
} else if (!Ee(C)) break;
|
|
5554
5554
|
}
|
|
5555
5555
|
let m = t.md.helpers.parseLinkTitle(u, s, i);
|
|
5556
5556
|
for (; m.can_continue; ) {
|
|
5557
|
-
const
|
|
5558
|
-
if (
|
|
5559
|
-
u +=
|
|
5557
|
+
const C = a(o);
|
|
5558
|
+
if (C === null) break;
|
|
5559
|
+
u += C, s = i, i = u.length, o++, m = t.md.helpers.parseLinkTitle(u, s, i, m);
|
|
5560
5560
|
}
|
|
5561
5561
|
let g;
|
|
5562
5562
|
for (s < i && f !== s && m.ok ? (g = m.str, s = m.pos) : (g = "", s = p, o = h); s < i; ) {
|
|
5563
|
-
const
|
|
5564
|
-
if (!Ee(
|
|
5563
|
+
const C = u.charCodeAt(s);
|
|
5564
|
+
if (!Ee(C))
|
|
5565
5565
|
break;
|
|
5566
5566
|
s++;
|
|
5567
5567
|
}
|
|
5568
5568
|
if (s < i && u.charCodeAt(s) !== 10 && g)
|
|
5569
5569
|
for (g = "", s = p, o = h; s < i; ) {
|
|
5570
|
-
const
|
|
5571
|
-
if (!Ee(
|
|
5570
|
+
const C = u.charCodeAt(s);
|
|
5571
|
+
if (!Ee(C))
|
|
5572
5572
|
break;
|
|
5573
5573
|
s++;
|
|
5574
5574
|
}
|
|
@@ -6245,12 +6245,12 @@ function bp(t, e) {
|
|
|
6245
6245
|
}
|
|
6246
6246
|
return t.pos += i[0].length, !0;
|
|
6247
6247
|
}
|
|
6248
|
-
const
|
|
6248
|
+
const yp = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Cp = /^&([a-z][a-z0-9]{1,31});/i;
|
|
6249
6249
|
function Ip(t, e) {
|
|
6250
6250
|
const n = t.pos, r = t.posMax;
|
|
6251
6251
|
if (t.src.charCodeAt(n) !== 38 || n + 1 >= r) return !1;
|
|
6252
6252
|
if (t.src.charCodeAt(n + 1) === 35) {
|
|
6253
|
-
const i = t.src.slice(n).match(
|
|
6253
|
+
const i = t.src.slice(n).match(yp);
|
|
6254
6254
|
if (i) {
|
|
6255
6255
|
if (!e) {
|
|
6256
6256
|
const o = i[1][0].toLowerCase() === "x" ? parseInt(i[1].slice(1), 16) : parseInt(i[1], 10), a = t.push("text_special", "", 0);
|
|
@@ -6259,7 +6259,7 @@ function Ip(t, e) {
|
|
|
6259
6259
|
return t.pos += i[0].length, !0;
|
|
6260
6260
|
}
|
|
6261
6261
|
} else {
|
|
6262
|
-
const i = t.src.slice(n).match(
|
|
6262
|
+
const i = t.src.slice(n).match(Cp);
|
|
6263
6263
|
if (i) {
|
|
6264
6264
|
const o = B0(i[0]);
|
|
6265
6265
|
if (o !== i[0]) {
|
|
@@ -7131,7 +7131,7 @@ function mc(t) {
|
|
|
7131
7131
|
return e && t.type && im.has(t.type) ? `${e}
|
|
7132
7132
|
` : e;
|
|
7133
7133
|
}
|
|
7134
|
-
function
|
|
7134
|
+
function oC(t, e = 60) {
|
|
7135
7135
|
const n = ho(t);
|
|
7136
7136
|
if (!n) return "";
|
|
7137
7137
|
const s = ("text" in n && typeof n.text == "string" ? n.text : pc(n)).replace(/\s+/g, " ").trim();
|
|
@@ -7157,9 +7157,9 @@ function om(t) {
|
|
|
7157
7157
|
const e = ho(t);
|
|
7158
7158
|
return e ? "text" in e && typeof e.text == "string" ? ms(e.text) : rm(e) : "";
|
|
7159
7159
|
}
|
|
7160
|
-
const Fn = [], am = 100, um = 100, gc = (t, e) => `${t}\0${e}`, Rs = (t) => t?.mode === "SUSPENDED" && t.lifecycle === "ACTIVE", ma = (t) => t.responderPresentation?.contractState === "CURRENT" ? t.responderPresentation.ai === "SUSPENDED" : Rs(t.aiSuspension), en = (t, e) => t.concealedConversationIds.has(e) || t.inactiveConversationIds.has(e), bc = (t, e) => t.concealedMessageIds.has(e.id) || Js.has(e.id) || Fr.has(e.id) || !!(e.clientMessageId && Fr.has(e.clientMessageId)), ts = (t, e) => e.filter((n) => !bc(t, n)),
|
|
7160
|
+
const Fn = [], am = 100, um = 100, gc = (t, e) => `${t}\0${e}`, Rs = (t) => t?.mode === "SUSPENDED" && t.lifecycle === "ACTIVE", ma = (t) => t.responderPresentation?.contractState === "CURRENT" ? t.responderPresentation.ai === "SUSPENDED" : Rs(t.aiSuspension), en = (t, e) => t.concealedConversationIds.has(e) || t.inactiveConversationIds.has(e), bc = (t, e) => t.concealedMessageIds.has(e.id) || Js.has(e.id) || Fr.has(e.id) || !!(e.clientMessageId && Fr.has(e.clientMessageId)), ts = (t, e) => e.filter((n) => !bc(t, n)), yc = (t, e) => t.id === e || t.clientMessageId === e, Ni = (t, e) => {
|
|
7161
7161
|
const n = new Set(
|
|
7162
|
-
t.messages.filter((r) =>
|
|
7162
|
+
t.messages.filter((r) => yc(r, e)).map((r) => r.conversationId ?? r.threadId).filter((r) => !!r)
|
|
7163
7163
|
);
|
|
7164
7164
|
for (const [r, s] of t.messageStreams) {
|
|
7165
7165
|
if (s.requestId !== e) continue;
|
|
@@ -7203,8 +7203,8 @@ const Fn = [], am = 100, um = 100, gc = (t, e) => `${t}\0${e}`, Rs = (t) => t?.m
|
|
|
7203
7203
|
};
|
|
7204
7204
|
let Mt = 0, ar = 0, _r = 0;
|
|
7205
7205
|
const vn = /* @__PURE__ */ new Map(), Fr = /* @__PURE__ */ new Set(), Js = /* @__PURE__ */ new Set(), on = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Map();
|
|
7206
|
-
let We = null, Ve = null, $e = null, hm = 0, fm = 0, Pe = 0,
|
|
7207
|
-
const
|
|
7206
|
+
let We = null, Ve = null, $e = null, hm = 0, fm = 0, Pe = 0, yn = null, Ce = null;
|
|
7207
|
+
const Cr = (t, e, n) => {
|
|
7208
7208
|
const s = !!(e && !en(t, e) && (t.threadIds.includes(e) || t.conversations.some(({ id: i }) => i === e) || t.conversationScanSnapshots.has(e))) ? e : void 0;
|
|
7209
7209
|
return {
|
|
7210
7210
|
currentThreadId: s,
|
|
@@ -7223,7 +7223,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
7223
7223
|
_r
|
|
7224
7224
|
);
|
|
7225
7225
|
}, pi = () => {
|
|
7226
|
-
_r += 1, vn.clear(),
|
|
7226
|
+
_r += 1, vn.clear(), yn = null;
|
|
7227
7227
|
}, mi = () => {
|
|
7228
7228
|
Fr.clear(), Js.clear(), on.clear(), ht.clear();
|
|
7229
7229
|
}, gm = (t) => {
|
|
@@ -7252,14 +7252,14 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
7252
7252
|
authorityVersionAtStart: vn.get(t) ?? 0
|
|
7253
7253
|
};
|
|
7254
7254
|
return Nt.set(t, e), e;
|
|
7255
|
-
},
|
|
7256
|
-
|
|
7255
|
+
}, Cn = (t, e) => Nt.get(t)?.generation === e.generation, ya = (t, e) => {
|
|
7256
|
+
Cn(t, e) && Nt.delete(t);
|
|
7257
7257
|
}, gi = (t) => {
|
|
7258
|
-
const e =
|
|
7259
|
-
if (e?.controller.abort(),
|
|
7258
|
+
const e = Ce;
|
|
7259
|
+
if (e?.controller.abort(), Ce = null, e && K.getState().currentThreadId === e.conversationId) {
|
|
7260
7260
|
const n = K.getState();
|
|
7261
7261
|
K.setState(
|
|
7262
|
-
|
|
7262
|
+
Cr(
|
|
7263
7263
|
n,
|
|
7264
7264
|
e.rollbackThreadId,
|
|
7265
7265
|
e.rollbackThreadMessages
|
|
@@ -7374,7 +7374,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
7374
7374
|
s,
|
|
7375
7375
|
e.retryAttempt + 1
|
|
7376
7376
|
);
|
|
7377
|
-
},
|
|
7377
|
+
}, Ca = () => {
|
|
7378
7378
|
for (const t of He.keys())
|
|
7379
7379
|
queueMicrotask(() => po(t));
|
|
7380
7380
|
}, An = (t) => {
|
|
@@ -7437,7 +7437,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
7437
7437
|
}, ct = (t) => {
|
|
7438
7438
|
const e = rt.get(t);
|
|
7439
7439
|
e?.timerId !== null && e?.timerId !== void 0 && window.clearTimeout(e.timerId), rt.delete(t);
|
|
7440
|
-
},
|
|
7440
|
+
}, ym = (t) => {
|
|
7441
7441
|
if (!Se.has(t))
|
|
7442
7442
|
for (; Se.size >= um; ) {
|
|
7443
7443
|
const e = K.getState(), n = [...Se.keys()].find(
|
|
@@ -7546,15 +7546,15 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
7546
7546
|
n && f.add(e);
|
|
7547
7547
|
const m = new Set(t.inactiveConversationIds).add(
|
|
7548
7548
|
e
|
|
7549
|
-
), g = t.inactiveConversationUpdatedAt.get(e), b = g && r ? Date.parse(g) >= Date.parse(r) ? g : r : g ?? r,
|
|
7549
|
+
), g = t.inactiveConversationUpdatedAt.get(e), b = g && r ? Date.parse(g) >= Date.parse(r) ? g : r : g ?? r, C = new Map(
|
|
7550
7550
|
t.inactiveConversationUpdatedAt
|
|
7551
7551
|
).set(e, b), I = {
|
|
7552
7552
|
ANY_OPEN: 1,
|
|
7553
7553
|
NEWER_OPEN: 2,
|
|
7554
7554
|
EXACT_ONLY: 3
|
|
7555
|
-
},
|
|
7555
|
+
}, S = t.inactiveConversationRevalidation.get(e), y = s === "NEWER_OPEN" && r ? "NEWER_OPEN" : S && I[S] > I[s] ? S : s, E = new Map(
|
|
7556
7556
|
t.inactiveConversationRevalidation
|
|
7557
|
-
).set(e,
|
|
7557
|
+
).set(e, y), k = new Map(t.conversationScanSnapshots);
|
|
7558
7558
|
k.delete(e);
|
|
7559
7559
|
const O = new Set(
|
|
7560
7560
|
t.conversationScanCandidateIds
|
|
@@ -7577,8 +7577,8 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
7577
7577
|
concealedConversationIds: f,
|
|
7578
7578
|
concealedMessageIds: T,
|
|
7579
7579
|
inactiveConversationIds: m,
|
|
7580
|
-
inactiveConversationUpdatedAt:
|
|
7581
|
-
inactiveConversationRevalidation:
|
|
7580
|
+
inactiveConversationUpdatedAt: C,
|
|
7581
|
+
inactiveConversationRevalidation: E,
|
|
7582
7582
|
conversationScanCandidateIds: O,
|
|
7583
7583
|
conversationScanSnapshots: k,
|
|
7584
7584
|
typingByConversation: new Map(
|
|
@@ -7611,7 +7611,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
7611
7611
|
...t.pendingCustomerMessage?.conversationId === e ? { pendingCustomerMessage: null } : {},
|
|
7612
7612
|
...t.conversationNavigationRequest?.conversationId === e ? { conversationNavigationRequest: null } : {}
|
|
7613
7613
|
};
|
|
7614
|
-
},
|
|
7614
|
+
}, Cc = (t, e, n = null, r = n ? "NEWER_OPEN" : "EXACT_ONLY", s = !1) => {
|
|
7615
7615
|
const i = K.getState();
|
|
7616
7616
|
if (e && i.concealedConversationIds.has(t))
|
|
7617
7617
|
return !1;
|
|
@@ -7629,7 +7629,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
7629
7629
|
)
|
|
7630
7630
|
), K.getState().actions.updateThreads(), !0;
|
|
7631
7631
|
}, Qt = (t, e = null, n = !1) => {
|
|
7632
|
-
|
|
7632
|
+
Cc(
|
|
7633
7633
|
t,
|
|
7634
7634
|
!1,
|
|
7635
7635
|
e,
|
|
@@ -7637,7 +7637,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
7637
7637
|
n
|
|
7638
7638
|
);
|
|
7639
7639
|
}, lr = (t) => {
|
|
7640
|
-
|
|
7640
|
+
Cc(t, !0) && K.getState().actions.recoverMessages().catch(
|
|
7641
7641
|
() => console.warn("[ChatWidget] Conversation authority recovery failed")
|
|
7642
7642
|
);
|
|
7643
7643
|
}, dr = (t) => t instanceof Ws && t.status === 404, Ia = (t, e) => t.flatMap(
|
|
@@ -7657,7 +7657,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
7657
7657
|
n.inputRequestId,
|
|
7658
7658
|
n.lifecycle
|
|
7659
7659
|
);
|
|
7660
|
-
},
|
|
7660
|
+
}, Cm = (t, e) => {
|
|
7661
7661
|
if (t.author.role !== "SCENARIO" && e.author.role !== "SCENARIO")
|
|
7662
7662
|
return !1;
|
|
7663
7663
|
const n = (r) => r.data?.commands ?? null;
|
|
@@ -8035,7 +8035,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8035
8035
|
conversationScanSnapshots: /* @__PURE__ */ new Map(),
|
|
8036
8036
|
assistantSuspendedConversationIds: /* @__PURE__ */ new Set()
|
|
8037
8037
|
} : {}
|
|
8038
|
-
}), a && !o && (Ln(), rs(),
|
|
8038
|
+
}), a && !o && (Ln(), rs(), Ca()), await e().actions.recoverMessages();
|
|
8039
8039
|
},
|
|
8040
8040
|
updateConfig: (n, r) => {
|
|
8041
8041
|
const s = e().config?.customerInteractionSession, i = n.customerInteractionSession, o = !!(s && s.interactionSessionId !== i.interactionSessionId), a = !!(s && (o || s.accessToken !== i.accessToken)), u = e(), c = !o && u.pendingCustomerMessage?.acceptanceConfirmed && u.pendingCustomerMessage.conversationId ? u.pendingCustomerMessage : null, l = !o && va(
|
|
@@ -8105,7 +8105,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8105
8105
|
conversationScanSnapshots: /* @__PURE__ */ new Map(),
|
|
8106
8106
|
assistantSuspendedConversationIds: /* @__PURE__ */ new Set()
|
|
8107
8107
|
} : {}
|
|
8108
|
-
}), a && !o && (Ln(), rs(),
|
|
8108
|
+
}), a && !o && (Ln(), rs(), Ca()), o && e().actions.recoverMessages().catch(
|
|
8109
8109
|
() => console.warn("[ChatWidget] Conversation recovery failed")
|
|
8110
8110
|
);
|
|
8111
8111
|
},
|
|
@@ -8115,9 +8115,9 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8115
8115
|
Ve?.abort(), Ve = null, We?.abort();
|
|
8116
8116
|
const o = new AbortController();
|
|
8117
8117
|
We = o;
|
|
8118
|
-
const a = Ie(s), u = _r, c = Pe, l =
|
|
8119
|
-
conversationId:
|
|
8120
|
-
generation:
|
|
8118
|
+
const a = Ie(s), u = _r, c = Pe, l = Ce ? {
|
|
8119
|
+
conversationId: Ce.conversationId,
|
|
8120
|
+
generation: Ce.generation
|
|
8121
8121
|
} : null, d = $e;
|
|
8122
8122
|
t({ isLoadingMoreConversations: !1 });
|
|
8123
8123
|
let p;
|
|
@@ -8148,7 +8148,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8148
8148
|
m,
|
|
8149
8149
|
L
|
|
8150
8150
|
)
|
|
8151
|
-
), b = f === null,
|
|
8151
|
+
), b = f === null, C = new Map([
|
|
8152
8152
|
...m.conversationScanSnapshots,
|
|
8153
8153
|
...m.conversations.map(
|
|
8154
8154
|
(L) => [L.id, L]
|
|
@@ -8162,21 +8162,21 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8162
8162
|
...[
|
|
8163
8163
|
m.currentThreadId,
|
|
8164
8164
|
m.pendingCustomerMessage?.conversationId,
|
|
8165
|
-
|
|
8165
|
+
Ce?.conversationId
|
|
8166
8166
|
].filter((L) => !!L)
|
|
8167
|
-
]),
|
|
8167
|
+
]), S = g.map(
|
|
8168
8168
|
(L) => Nn(
|
|
8169
|
-
|
|
8169
|
+
C.get(L.id),
|
|
8170
8170
|
L
|
|
8171
8171
|
).conversation
|
|
8172
8172
|
);
|
|
8173
|
-
for (const L of
|
|
8173
|
+
for (const L of S)
|
|
8174
8174
|
ct(L.id), Oe(L.id);
|
|
8175
|
-
const
|
|
8176
|
-
|
|
8177
|
-
),
|
|
8175
|
+
const y = new Set(
|
|
8176
|
+
S.map(({ id: L }) => L)
|
|
8177
|
+
), E = S.find(
|
|
8178
8178
|
(L) => L.isCurrent
|
|
8179
|
-
)?.id, k = l && (
|
|
8179
|
+
)?.id, k = l && (Ce?.generation === l.generation || m.currentThreadId === l.conversationId) ? l.conversationId : void 0, O = m.sendInFlight ? m.pendingCustomerMessage?.conversationId ?? m.currentThreadId : void 0, T = m.sendInFlight ? m.currentThreadId : void 0, M = d && $e === d ? m.currentThreadId : void 0, P = k ?? T ?? M ?? (r || Pe !== c ? m.currentThreadId : void 0), B = new Set(
|
|
8180
8180
|
[
|
|
8181
8181
|
k,
|
|
8182
8182
|
O,
|
|
@@ -8195,11 +8195,11 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8195
8195
|
].filter((L) => !!L)
|
|
8196
8196
|
), z = (L) => Se.get(L)?.minimumRevision !== void 0 || _e.has(L);
|
|
8197
8197
|
let W = [
|
|
8198
|
-
...
|
|
8198
|
+
...S,
|
|
8199
8199
|
...m.conversations.filter(
|
|
8200
|
-
({ id: L }) => !
|
|
8200
|
+
({ id: L }) => !y.has(L) && (!b || B.has(L))
|
|
8201
8201
|
).map(
|
|
8202
|
-
(L) =>
|
|
8202
|
+
(L) => E && !P ? { ...L, isCurrent: !1 } : L
|
|
8203
8203
|
)
|
|
8204
8204
|
];
|
|
8205
8205
|
P && (W = W.map((L) => ({
|
|
@@ -8211,24 +8211,24 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8211
8211
|
), N = W.map(({ id: L }) => L), _ = new Set(N);
|
|
8212
8212
|
let A = m;
|
|
8213
8213
|
const v = [...I].filter(
|
|
8214
|
-
(L) => !
|
|
8214
|
+
(L) => !y.has(L)
|
|
8215
8215
|
), x = b ? v.filter(
|
|
8216
8216
|
(L) => !B.has(L)
|
|
8217
8217
|
) : [], V = new Set(
|
|
8218
8218
|
b ? [] : v
|
|
8219
8219
|
), G = /* @__PURE__ */ new Map();
|
|
8220
8220
|
for (const L of v) {
|
|
8221
|
-
const Je =
|
|
8221
|
+
const Je = C.get(L);
|
|
8222
8222
|
Je && (!b || z(L)) && G.set(L, Je), b && z(L) && V.add(L);
|
|
8223
8223
|
}
|
|
8224
8224
|
for (const L of x)
|
|
8225
|
-
e().actions.cancelThreadMessagesRequest(L), A.sendInFlight && (A.currentThreadId === L || A.pendingCustomerMessage?.conversationId === L) && (Mt += 1),
|
|
8225
|
+
e().actions.cancelThreadMessagesRequest(L), A.sendInFlight && (A.currentThreadId === L || A.pendingCustomerMessage?.conversationId === L) && (Mt += 1), Ce?.conversationId === L && (Ce.controller.abort(), Ce = null), ct(L), Oe(L), A = {
|
|
8226
8226
|
...A,
|
|
8227
8227
|
...Oi(
|
|
8228
8228
|
A,
|
|
8229
8229
|
L,
|
|
8230
8230
|
!1,
|
|
8231
|
-
|
|
8231
|
+
C.get(L)?.updatedAt ?? null,
|
|
8232
8232
|
"ANY_OPEN"
|
|
8233
8233
|
)
|
|
8234
8234
|
};
|
|
@@ -8257,7 +8257,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8257
8257
|
[...A.threadMessagesNextCursor].filter(
|
|
8258
8258
|
([L]) => de.has(L)
|
|
8259
8259
|
)
|
|
8260
|
-
), $ = A.currentThreadId, me = P ||
|
|
8260
|
+
), $ = A.currentThreadId, me = P || E || ($ && de.has($) ? $ : void 0);
|
|
8261
8261
|
W = W.map((L) => ({
|
|
8262
8262
|
...L,
|
|
8263
8263
|
isCurrent: L.id === me
|
|
@@ -8315,11 +8315,11 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8315
8315
|
}), e().actions.updateThreads(), rs();
|
|
8316
8316
|
for (const L of _e.keys())
|
|
8317
8317
|
_.has(L) ? e().actions.refreshResponderPresentation(L) : jn(L);
|
|
8318
|
-
me && !
|
|
8318
|
+
me && !Ce && !y.has(me) && e().actions.refreshResponderPresentation(
|
|
8319
8319
|
me,
|
|
8320
8320
|
void 0,
|
|
8321
8321
|
!0
|
|
8322
|
-
), me && !
|
|
8322
|
+
), me && !Ce && await e().actions.fetchThreadMessages(me);
|
|
8323
8323
|
},
|
|
8324
8324
|
cancelConversationPagination: () => {
|
|
8325
8325
|
Ve?.abort(), Ve = null, t({ isLoadingMoreConversations: !1 });
|
|
@@ -8371,14 +8371,14 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8371
8371
|
if (c.nextCursor === null) {
|
|
8372
8372
|
for (const N of [...h]) {
|
|
8373
8373
|
const _ = p.get(N), A = Se.get(N)?.minimumRevision !== void 0 || _e.has(N), v = l.conversationScanAuthorityVersion ?? o, x = l.sendInFlight ? l.pendingCustomerMessage?.conversationId ?? l.currentThreadId : void 0;
|
|
8374
|
-
if (
|
|
8374
|
+
if (Ce?.conversationId === N || x === N || l.sendInFlight && l.currentThreadId === N || $e !== null && l.currentThreadId === N || Xe(
|
|
8375
8375
|
N,
|
|
8376
8376
|
v
|
|
8377
8377
|
)) {
|
|
8378
8378
|
h.delete(N), p.delete(N);
|
|
8379
8379
|
continue;
|
|
8380
8380
|
}
|
|
8381
|
-
l.actions.cancelThreadMessagesRequest(N), l.sendInFlight && (l.currentThreadId === N || l.pendingCustomerMessage?.conversationId === N) && (Mt += 1),
|
|
8381
|
+
l.actions.cancelThreadMessagesRequest(N), l.sendInFlight && (l.currentThreadId === N || l.pendingCustomerMessage?.conversationId === N) && (Mt += 1), Ce?.conversationId === N && (Ce.controller.abort(), Ce = null);
|
|
8382
8382
|
const G = Se.get(N);
|
|
8383
8383
|
A || (An(N), G?.controller.abort(), Se.delete(N)), ct(N), Oe(N), l = {
|
|
8384
8384
|
...l,
|
|
@@ -8402,7 +8402,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8402
8402
|
l.conversations.map(
|
|
8403
8403
|
(N) => [N.id, N]
|
|
8404
8404
|
)
|
|
8405
|
-
),
|
|
8405
|
+
), C = [
|
|
8406
8406
|
...l.conversations.map(
|
|
8407
8407
|
(N) => m.get(N.id) ?? N
|
|
8408
8408
|
),
|
|
@@ -8411,10 +8411,10 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8411
8411
|
)
|
|
8412
8412
|
], I = g.find(
|
|
8413
8413
|
({ isCurrent: N }) => N
|
|
8414
|
-
)?.id,
|
|
8414
|
+
)?.id, y = !!(I && !Ce && !l.sendInFlight && $e === null && Pe === a) ? I : l.currentThreadId, E = C.map((N) => ({
|
|
8415
8415
|
...N,
|
|
8416
|
-
isCurrent: N.id ===
|
|
8417
|
-
})), k =
|
|
8416
|
+
isCurrent: N.id === y
|
|
8417
|
+
})), k = y !== l.currentThreadId;
|
|
8418
8418
|
k && (Pe += 1);
|
|
8419
8419
|
const O = new Set(
|
|
8420
8420
|
l.assistantSuspendedConversationIds
|
|
@@ -8441,10 +8441,10 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8441
8441
|
B
|
|
8442
8442
|
);
|
|
8443
8443
|
t({
|
|
8444
|
-
conversations:
|
|
8445
|
-
currentThreadId:
|
|
8444
|
+
conversations: E,
|
|
8445
|
+
currentThreadId: y,
|
|
8446
8446
|
currentThreadMessages: k ? [
|
|
8447
|
-
...
|
|
8447
|
+
...y ? l.threads.get(y) ?? Fn : Fn
|
|
8448
8448
|
] : l.currentThreadMessages,
|
|
8449
8449
|
assistantSuspendedConversationIds: O,
|
|
8450
8450
|
inactiveConversationIds: T,
|
|
@@ -8461,9 +8461,9 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8461
8461
|
messageStreams: X,
|
|
8462
8462
|
responsePhase: Xt(
|
|
8463
8463
|
l,
|
|
8464
|
-
|
|
8464
|
+
y,
|
|
8465
8465
|
W,
|
|
8466
|
-
!!(
|
|
8466
|
+
!!(y && O.has(y))
|
|
8467
8467
|
),
|
|
8468
8468
|
messages: fr(
|
|
8469
8469
|
z,
|
|
@@ -8474,7 +8474,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8474
8474
|
l.pendingCustomerMessage,
|
|
8475
8475
|
W
|
|
8476
8476
|
)
|
|
8477
|
-
}), e().actions.updateThreads(), k &&
|
|
8477
|
+
}), e().actions.updateThreads(), k && y && await e().actions.fetchThreadMessages(y);
|
|
8478
8478
|
} catch (c) {
|
|
8479
8479
|
if (!ur(c)) throw c;
|
|
8480
8480
|
} finally {
|
|
@@ -8488,7 +8488,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8488
8488
|
return;
|
|
8489
8489
|
const i = Ie(r);
|
|
8490
8490
|
We?.abort(), We = null, Ln(), Ve?.abort(), Ve = null, $e?.abort(), $e = null, t({ isLoadingMoreConversations: !1 });
|
|
8491
|
-
const o =
|
|
8491
|
+
const o = Ce;
|
|
8492
8492
|
o?.controller.abort();
|
|
8493
8493
|
const a = {
|
|
8494
8494
|
controller: new AbortController(),
|
|
@@ -8499,11 +8499,11 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8499
8499
|
rollbackThreadId: o?.rollbackThreadId ?? e().currentThreadId,
|
|
8500
8500
|
rollbackThreadMessages: o?.rollbackThreadMessages ?? e().currentThreadMessages
|
|
8501
8501
|
};
|
|
8502
|
-
|
|
8502
|
+
Ce = a;
|
|
8503
8503
|
for (const [l, d] of Nt)
|
|
8504
8504
|
l !== n && (d.controller.abort(), Nt.delete(l));
|
|
8505
8505
|
let u = !1;
|
|
8506
|
-
|
|
8506
|
+
yn = null;
|
|
8507
8507
|
const c = Xt(
|
|
8508
8508
|
e(),
|
|
8509
8509
|
n,
|
|
@@ -8522,14 +8522,14 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8522
8522
|
n,
|
|
8523
8523
|
a.controller.signal
|
|
8524
8524
|
);
|
|
8525
|
-
if (
|
|
8525
|
+
if (Ce?.generation !== a.generation || Pe !== a.currentMutationGeneration || !e().config || Ie(e().config) !== i)
|
|
8526
8526
|
return;
|
|
8527
8527
|
if (l.id !== n)
|
|
8528
8528
|
throw new Error(
|
|
8529
8529
|
"Conversation selection returned a different resource"
|
|
8530
8530
|
);
|
|
8531
8531
|
const d = e().conversations.find(
|
|
8532
|
-
({ id:
|
|
8532
|
+
({ id: S }) => S === l.id
|
|
8533
8533
|
), p = d ?? e().conversationScanSnapshots.get(l.id), h = Nn(
|
|
8534
8534
|
p,
|
|
8535
8535
|
l
|
|
@@ -8565,10 +8565,10 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8565
8565
|
e().inactiveConversationRevalidation
|
|
8566
8566
|
);
|
|
8567
8567
|
b.delete(n);
|
|
8568
|
-
const
|
|
8568
|
+
const C = new Map(
|
|
8569
8569
|
e().conversationScanSnapshots
|
|
8570
8570
|
);
|
|
8571
|
-
|
|
8571
|
+
C.delete(n);
|
|
8572
8572
|
const I = new Set(
|
|
8573
8573
|
e().conversationScanCandidateIds
|
|
8574
8574
|
);
|
|
@@ -8580,13 +8580,13 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8580
8580
|
inactiveConversationUpdatedAt: g,
|
|
8581
8581
|
inactiveConversationRevalidation: b,
|
|
8582
8582
|
conversationScanCandidateIds: I,
|
|
8583
|
-
conversationScanSnapshots:
|
|
8583
|
+
conversationScanSnapshots: C,
|
|
8584
8584
|
conversations: d ? e().conversations.map(
|
|
8585
|
-
(
|
|
8585
|
+
(S) => S.id === l.id ? { ...h, isCurrent: !0 } : { ...S, isCurrent: !1 }
|
|
8586
8586
|
) : [
|
|
8587
8587
|
{ ...h, isCurrent: !0 },
|
|
8588
|
-
...e().conversations.map((
|
|
8589
|
-
...
|
|
8588
|
+
...e().conversations.map((S) => ({
|
|
8589
|
+
...S,
|
|
8590
8590
|
isCurrent: !1
|
|
8591
8591
|
}))
|
|
8592
8592
|
],
|
|
@@ -8595,7 +8595,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8595
8595
|
...e().threads.get(n) ?? Fn
|
|
8596
8596
|
], e().actions.updateThreads(), await e().actions.fetchThreadMessages(n);
|
|
8597
8597
|
} catch (l) {
|
|
8598
|
-
if (
|
|
8598
|
+
if (Ce?.generation !== a.generation || !e().config || Ie(e().config) !== i)
|
|
8599
8599
|
return;
|
|
8600
8600
|
if (dr(l) && !Xe(
|
|
8601
8601
|
n,
|
|
@@ -8623,7 +8623,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8623
8623
|
if (!u && e().currentThreadId === n) {
|
|
8624
8624
|
const d = e();
|
|
8625
8625
|
t(
|
|
8626
|
-
|
|
8626
|
+
Cr(
|
|
8627
8627
|
d,
|
|
8628
8628
|
a.rollbackThreadId,
|
|
8629
8629
|
a.rollbackThreadMessages
|
|
@@ -8632,19 +8632,19 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8632
8632
|
}
|
|
8633
8633
|
throw l;
|
|
8634
8634
|
} finally {
|
|
8635
|
-
|
|
8635
|
+
Ce?.generation === a.generation && (Ce = null);
|
|
8636
8636
|
}
|
|
8637
8637
|
},
|
|
8638
8638
|
createNewConversation: async () => {
|
|
8639
8639
|
const n = e().config, r = e().api;
|
|
8640
8640
|
if (!n || !r) throw new Error("Message store is not initialized");
|
|
8641
8641
|
We?.abort(), We = null, Ln(), Ve?.abort(), Ve = null, t({ isLoadingMoreConversations: !1 });
|
|
8642
|
-
const s =
|
|
8643
|
-
if (s?.controller.abort(),
|
|
8644
|
-
const
|
|
8642
|
+
const s = Ce, i = s?.rollbackThreadId ?? e().currentThreadId, o = s?.rollbackThreadMessages ?? e().currentThreadMessages;
|
|
8643
|
+
if (s?.controller.abort(), Ce = null, s && e().currentThreadId === s.conversationId) {
|
|
8644
|
+
const S = e();
|
|
8645
8645
|
t(
|
|
8646
|
-
|
|
8647
|
-
|
|
8646
|
+
Cr(
|
|
8647
|
+
S,
|
|
8648
8648
|
i,
|
|
8649
8649
|
o
|
|
8650
8650
|
)
|
|
@@ -8658,18 +8658,18 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8658
8658
|
let d;
|
|
8659
8659
|
try {
|
|
8660
8660
|
d = await jh(n, r, u.signal);
|
|
8661
|
-
} catch (
|
|
8661
|
+
} catch (S) {
|
|
8662
8662
|
if (!u.signal.aborted && a === Pe && e().config && Ie(e().config) === l) {
|
|
8663
|
-
const
|
|
8663
|
+
const y = e();
|
|
8664
8664
|
t(
|
|
8665
|
-
|
|
8666
|
-
|
|
8665
|
+
Cr(
|
|
8666
|
+
y,
|
|
8667
8667
|
i,
|
|
8668
8668
|
o
|
|
8669
8669
|
)
|
|
8670
8670
|
);
|
|
8671
8671
|
}
|
|
8672
|
-
throw
|
|
8672
|
+
throw S;
|
|
8673
8673
|
} finally {
|
|
8674
8674
|
$e === u && ($e = null);
|
|
8675
8675
|
}
|
|
@@ -8695,12 +8695,12 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8695
8695
|
e().conversationScanSnapshots
|
|
8696
8696
|
);
|
|
8697
8697
|
b.delete(d.id);
|
|
8698
|
-
const
|
|
8698
|
+
const C = new Set(
|
|
8699
8699
|
e().conversationScanCandidateIds
|
|
8700
8700
|
);
|
|
8701
|
-
|
|
8701
|
+
C.delete(d.id);
|
|
8702
8702
|
const I = Nn(
|
|
8703
|
-
e().conversations.find(({ id:
|
|
8703
|
+
e().conversations.find(({ id: S }) => S === d.id),
|
|
8704
8704
|
d
|
|
8705
8705
|
).conversation;
|
|
8706
8706
|
return ct(d.id), Oe(d.id), Pe += 1, t({
|
|
@@ -8708,11 +8708,11 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8708
8708
|
currentThreadMessages: [],
|
|
8709
8709
|
conversations: [
|
|
8710
8710
|
{ ...I, isCurrent: !0 },
|
|
8711
|
-
...e().conversations.filter(({ id:
|
|
8711
|
+
...e().conversations.filter(({ id: S }) => S !== d.id).map((S) => ({ ...S, isCurrent: !1 }))
|
|
8712
8712
|
],
|
|
8713
8713
|
threadIds: [
|
|
8714
8714
|
d.id,
|
|
8715
|
-
...e().threadIds.filter((
|
|
8715
|
+
...e().threadIds.filter((S) => S !== d.id)
|
|
8716
8716
|
],
|
|
8717
8717
|
loadedThreadIds: new Set(e().loadedThreadIds).add(d.id),
|
|
8718
8718
|
threadMessagesNextCursor: new Map(e().threadMessagesNextCursor).set(
|
|
@@ -8725,11 +8725,11 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8725
8725
|
inactiveConversationIds: f,
|
|
8726
8726
|
inactiveConversationUpdatedAt: m,
|
|
8727
8727
|
inactiveConversationRevalidation: g,
|
|
8728
|
-
conversationScanCandidateIds:
|
|
8728
|
+
conversationScanCandidateIds: C,
|
|
8729
8729
|
conversationScanSnapshots: b,
|
|
8730
8730
|
assistantSuspendedConversationIds: new Set(
|
|
8731
8731
|
[...e().assistantSuspendedConversationIds].filter(
|
|
8732
|
-
(
|
|
8732
|
+
(S) => S !== d.id
|
|
8733
8733
|
)
|
|
8734
8734
|
)
|
|
8735
8735
|
}), e().actions.updateThreads(), d.id;
|
|
@@ -8743,11 +8743,11 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8743
8743
|
if (s.status === "CLOSED") {
|
|
8744
8744
|
const b = e().inactiveConversationUpdatedAt.get(
|
|
8745
8745
|
s.id
|
|
8746
|
-
),
|
|
8746
|
+
), C = [
|
|
8747
8747
|
i?.updatedAt,
|
|
8748
8748
|
b
|
|
8749
|
-
].filter((I) => !!I).sort((I,
|
|
8750
|
-
(!
|
|
8749
|
+
].filter((I) => !!I).sort((I, S) => Date.parse(S) - Date.parse(I))[0];
|
|
8750
|
+
(!C || Date.parse(s.updatedAt) >= Date.parse(C)) && Qt(
|
|
8751
8751
|
s.id,
|
|
8752
8752
|
s.updatedAt
|
|
8753
8753
|
);
|
|
@@ -8758,15 +8758,15 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8758
8758
|
);
|
|
8759
8759
|
if (e().inactiveConversationIds.has(s.id) && o && Date.parse(s.updatedAt) <= Date.parse(o) || r && e().handledConversationNavigationEventIds.has(r))
|
|
8760
8760
|
return;
|
|
8761
|
-
We?.abort(), We = null, Ln(), Ve?.abort(), Ve = null,
|
|
8761
|
+
We?.abort(), We = null, Ln(), Ve?.abort(), Ve = null, Ce?.controller.abort(), Ce = null, $e?.abort(), $e = null, Pe += 1;
|
|
8762
8762
|
const u = Nn(
|
|
8763
8763
|
i ?? e().conversationScanSnapshots.get(s.id),
|
|
8764
8764
|
s
|
|
8765
8765
|
).conversation;
|
|
8766
8766
|
ct(s.id), Oe(s.id);
|
|
8767
8767
|
const c = [...e().pendingMessageDeltas.values()], l = e().messages.some((b) => {
|
|
8768
|
-
const
|
|
8769
|
-
return
|
|
8768
|
+
const C = b.conversationId ?? b.threadId, I = e().messageStreams.get(b.id);
|
|
8769
|
+
return C === s.id && I && !I.done;
|
|
8770
8770
|
}), d = new Set(
|
|
8771
8771
|
e().handledConversationNavigationEventIds
|
|
8772
8772
|
);
|
|
@@ -8858,12 +8858,12 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8858
8858
|
},
|
|
8859
8859
|
handleMessageDelta: (n) => {
|
|
8860
8860
|
const r = e().messages.find(
|
|
8861
|
-
({ id:
|
|
8861
|
+
({ id: E }) => E === n.messageId
|
|
8862
8862
|
), s = r?.conversationId ?? r?.threadId, i = e().messageStreams.get(n.messageId);
|
|
8863
8863
|
if (Js.has(n.messageId) || n.requestId && Fr.has(n.requestId) || i?.requestId && n.requestId && i.requestId !== n.requestId || i?.conversationId && n.conversationId && i.conversationId !== n.conversationId || n.conversationId && s && n.conversationId !== s || n.conversationId && en(e(), n.conversationId) || e().concealedMessageIds.has(n.messageId))
|
|
8864
8864
|
return;
|
|
8865
8865
|
const o = e().pendingCustomerMessage, a = !!(o && n.requestId === o.id), u = n.conversationId ?? s ?? i?.conversationId, c = n.requestId ? [...ht.values()].find(
|
|
8866
|
-
({ requestId:
|
|
8866
|
+
({ requestId: E }) => E === n.requestId
|
|
8867
8867
|
)?.conversationId : void 0;
|
|
8868
8868
|
if ((a && o.conversationId || c) && u && (o?.conversationId ?? c) !== u)
|
|
8869
8869
|
return;
|
|
@@ -8874,28 +8874,28 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8874
8874
|
return;
|
|
8875
8875
|
const d = u;
|
|
8876
8876
|
if (d && Oe(d), a) {
|
|
8877
|
-
const
|
|
8878
|
-
|
|
8877
|
+
const E = o.conversationId ?? u;
|
|
8878
|
+
E && fi(
|
|
8879
8879
|
o.id,
|
|
8880
|
-
|
|
8880
|
+
E,
|
|
8881
8881
|
o.createdAt
|
|
8882
8882
|
), t({
|
|
8883
|
-
...!e().currentThreadId &&
|
|
8883
|
+
...!e().currentThreadId && E ? { currentThreadId: E } : {},
|
|
8884
8884
|
pendingCustomerMessage: {
|
|
8885
8885
|
...o,
|
|
8886
8886
|
acknowledged: !0,
|
|
8887
|
-
acceptanceConfirmed: !!
|
|
8888
|
-
conversationId:
|
|
8887
|
+
acceptanceConfirmed: !!E,
|
|
8888
|
+
conversationId: E
|
|
8889
8889
|
}
|
|
8890
8890
|
});
|
|
8891
8891
|
}
|
|
8892
8892
|
const p = e().messages.findIndex(
|
|
8893
|
-
({ id:
|
|
8893
|
+
({ id: E }) => E === n.messageId
|
|
8894
8894
|
);
|
|
8895
8895
|
if (p === -1) {
|
|
8896
|
-
const
|
|
8897
|
-
if (
|
|
8898
|
-
e().actions.handleMessage(
|
|
8896
|
+
const E = Im(e(), n);
|
|
8897
|
+
if (E) {
|
|
8898
|
+
e().actions.handleMessage(E), e().actions.handleMessageDelta(n);
|
|
8899
8899
|
return;
|
|
8900
8900
|
}
|
|
8901
8901
|
const k = new Map(e().pendingMessageDeltas);
|
|
@@ -8930,19 +8930,19 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8930
8930
|
});
|
|
8931
8931
|
return;
|
|
8932
8932
|
}
|
|
8933
|
-
const
|
|
8934
|
-
|
|
8933
|
+
const C = (/* @__PURE__ */ new Date()).toISOString(), I = f ? ht.get(f) : void 0, S = g.get(n.messageId), y = !!(I && (n.requestId === I.requestId || S?.requestId === I.requestId));
|
|
8934
|
+
y && f && ht.delete(f), t({
|
|
8935
8935
|
messageStreams: g,
|
|
8936
|
-
latestMessageDate:
|
|
8937
|
-
responsePhase: b &&
|
|
8936
|
+
latestMessageDate: C,
|
|
8937
|
+
responsePhase: b && y ? "idle" : e().responsePhase,
|
|
8938
8938
|
messages: e().messages.map(
|
|
8939
|
-
(
|
|
8940
|
-
...
|
|
8939
|
+
(E, k) => k === p ? {
|
|
8940
|
+
...E,
|
|
8941
8941
|
status: fe.Completed,
|
|
8942
8942
|
content: Ac(n.text),
|
|
8943
|
-
updatedAt:
|
|
8944
|
-
lastThreadMessageAt:
|
|
8945
|
-
} :
|
|
8943
|
+
updatedAt: C,
|
|
8944
|
+
lastThreadMessageAt: C
|
|
8945
|
+
} : E
|
|
8946
8946
|
)
|
|
8947
8947
|
}), e().actions.updateThreads();
|
|
8948
8948
|
},
|
|
@@ -8971,18 +8971,18 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8971
8971
|
return "IGNORED";
|
|
8972
8972
|
const d = Ar(o), p = o.author.type === Te.Agent, h = p && o.author.role === "ASSISTANT", m = e().messages.findIndex(
|
|
8973
8973
|
(v) => v.id === o.id || !!(o.author.type === Te.Customer && v.author.type === Te.Customer && (v.conversationId ?? v.threadId) === r && o.clientMessageId && (v.id === o.clientMessageId || v.clientMessageId === o.clientMessageId))
|
|
8974
|
-
), g = m === -1 ? void 0 : e().messages[m], b = !!(g && g.id !== o.id),
|
|
8974
|
+
), g = m === -1 ? void 0 : e().messages[m], b = !!(g && g.id !== o.id), C = e().messageStreams.get(o.id), I = o.author.role === "SCENARIO" && o.status === fe.Completed ? Ts(o) : "", S = !C && I && (m === -1 || g?.status === fe.Writing) ? jo(void 0, {
|
|
8975
8975
|
messageId: o.id,
|
|
8976
8976
|
sequence: o.ordinal ?? 0,
|
|
8977
8977
|
text: I,
|
|
8978
8978
|
done: !0
|
|
8979
|
-
}) : void 0,
|
|
8979
|
+
}) : void 0, y = C ?? S, E = !!y || !Vi(o);
|
|
8980
8980
|
let k = o, O = !1;
|
|
8981
8981
|
if (m !== -1) {
|
|
8982
8982
|
const v = g, x = vc(
|
|
8983
8983
|
v,
|
|
8984
8984
|
o
|
|
8985
|
-
), V = x.status === fe.Writing && Ar(v), G = !b && Date.parse(v.updatedAt) > Date.parse(x.updatedAt), j = x.status === fe.Writing && !!
|
|
8985
|
+
), V = x.status === fe.Writing && Ar(v), G = !b && Date.parse(v.updatedAt) > Date.parse(x.updatedAt), j = x.status === fe.Writing && !!y;
|
|
8986
8986
|
O = G || V, k = G || V ? {
|
|
8987
8987
|
...v,
|
|
8988
8988
|
author: qn(
|
|
@@ -8995,7 +8995,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
8995
8995
|
v.author,
|
|
8996
8996
|
x.author
|
|
8997
8997
|
),
|
|
8998
|
-
status:
|
|
8998
|
+
status: y.done ? fe.Completed : fe.Writing,
|
|
8999
8999
|
content: v.content,
|
|
9000
9000
|
updatedAt: v.updatedAt,
|
|
9001
9001
|
lastThreadMessageAt: v.lastThreadMessageAt
|
|
@@ -9011,7 +9011,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9011
9011
|
if (O && !T && !l)
|
|
9012
9012
|
return "IGNORED";
|
|
9013
9013
|
Oe(r);
|
|
9014
|
-
const M = !p && o.author.type === Te.Customer && m === -1, P = !!(c && (o.id === c.id || o.clientMessageId === c.id ||
|
|
9014
|
+
const M = !p && o.author.type === Te.Customer && m === -1, P = !!(c && (o.id === c.id || o.clientMessageId === c.id || y?.requestId === c.id)), B = !!(c && P);
|
|
9015
9015
|
P && o.author.type === Te.Customer && fi(
|
|
9016
9016
|
c.id,
|
|
9017
9017
|
r,
|
|
@@ -9025,7 +9025,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9025
9025
|
});
|
|
9026
9026
|
const X = h && d ? Xt(e(), r, [k]) : e().responsePhase;
|
|
9027
9027
|
t({
|
|
9028
|
-
messages:
|
|
9028
|
+
messages: E ? m === -1 ? [...e().messages, k] : e().messages.map(
|
|
9029
9029
|
(v, x) => x === m ? { ...k, agenticSteps: v.agenticSteps } : v
|
|
9030
9030
|
) : e().messages.filter(({ id: v }) => v !== o.id),
|
|
9031
9031
|
...z ? { currentThreadId: r } : {},
|
|
@@ -9036,15 +9036,15 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9036
9036
|
conversationId: c.conversationId ?? r,
|
|
9037
9037
|
canonicalMessageId: M ? o.id : c.canonicalMessageId
|
|
9038
9038
|
} : c,
|
|
9039
|
-
...
|
|
9039
|
+
...S ? {
|
|
9040
9040
|
messageStreams: new Map(e().messageStreams).set(
|
|
9041
9041
|
o.id,
|
|
9042
|
-
|
|
9042
|
+
S
|
|
9043
9043
|
)
|
|
9044
9044
|
} : {}
|
|
9045
9045
|
});
|
|
9046
9046
|
const N = new Map(e().messageStreams), _ = new Map(e().pendingMessageDeltas);
|
|
9047
|
-
d && (o.status === fe.Completed && p &&
|
|
9047
|
+
d && (o.status === fe.Completed && p && y || N.delete(o.id), _.delete(o.id)), t({
|
|
9048
9048
|
threadIds: i ? [r, ...e().threadIds] : e().threadIds,
|
|
9049
9049
|
responsePhase: W ? h && d ? X : h && o.status === fe.Writing && e().responsePhase === "awaiting-first-token" ? "streaming" : e().responsePhase : e().responsePhase,
|
|
9050
9050
|
...d ? {
|
|
@@ -9057,7 +9057,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9057
9057
|
const v = new Map(e().pendingMessageDeltas);
|
|
9058
9058
|
v.delete(o.id), t({ pendingMessageDeltas: v }), e().actions.handleMessageDelta(A);
|
|
9059
9059
|
}
|
|
9060
|
-
return
|
|
9060
|
+
return E ? m === -1 ? "INSERTED" : g?.status !== fe.Completed && k.status === fe.Completed || g !== void 0 && Cm(g, k) ? "UPDATED" : "DUPLICATE" : "IGNORED";
|
|
9061
9061
|
},
|
|
9062
9062
|
handleResponderPresentationChanged: (n) => {
|
|
9063
9063
|
if (e().concealedConversationIds.has(n.conversationId)) return;
|
|
@@ -9116,7 +9116,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9116
9116
|
u
|
|
9117
9117
|
) >= 0))
|
|
9118
9118
|
return;
|
|
9119
|
-
|
|
9119
|
+
ym(n), l?.controller.abort();
|
|
9120
9120
|
const d = {
|
|
9121
9121
|
controller: new AbortController(),
|
|
9122
9122
|
generation: ++pm,
|
|
@@ -9138,7 +9138,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9138
9138
|
if (Xe(
|
|
9139
9139
|
n,
|
|
9140
9140
|
d.authorityVersionAtStart
|
|
9141
|
-
) && (e().inactiveConversationIds.has(n) || e().conversations.find(({ id:
|
|
9141
|
+
) && (e().inactiveConversationIds.has(n) || e().conversations.find(({ id: y }) => y === n)?.responderPresentation?.contractState === "INCOMPATIBLE" || h.responderPresentation?.contractState === "INCOMPATIBLE")) {
|
|
9142
9142
|
d.minimumRevision !== void 0 && Wt(
|
|
9143
9143
|
n,
|
|
9144
9144
|
d.minimumRevision,
|
|
@@ -9160,21 +9160,21 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9160
9160
|
}
|
|
9161
9161
|
ct(h.id);
|
|
9162
9162
|
const g = e().conversations.find(
|
|
9163
|
-
({ id:
|
|
9164
|
-
), b = g ?? e().conversationScanSnapshots.get(h.id),
|
|
9163
|
+
({ id: y }) => y === h.id
|
|
9164
|
+
), b = g ?? e().conversationScanSnapshots.get(h.id), C = Nn(
|
|
9165
9165
|
b,
|
|
9166
9166
|
h,
|
|
9167
9167
|
d.minimumRevision
|
|
9168
9168
|
), I = () => {
|
|
9169
9169
|
ct(h.id), Oe(h.id);
|
|
9170
|
-
const
|
|
9170
|
+
const y = new Set(
|
|
9171
9171
|
e().inactiveConversationIds
|
|
9172
9172
|
);
|
|
9173
|
-
|
|
9174
|
-
const
|
|
9173
|
+
y.delete(h.id);
|
|
9174
|
+
const E = new Map(
|
|
9175
9175
|
e().inactiveConversationUpdatedAt
|
|
9176
9176
|
);
|
|
9177
|
-
|
|
9177
|
+
E.delete(h.id);
|
|
9178
9178
|
const k = new Map(
|
|
9179
9179
|
e().inactiveConversationRevalidation
|
|
9180
9180
|
);
|
|
@@ -9189,7 +9189,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9189
9189
|
T.delete(h.id);
|
|
9190
9190
|
const M = e().currentThreadId, P = g ? e().conversations.map(
|
|
9191
9191
|
(B) => B.id === h.id ? {
|
|
9192
|
-
...
|
|
9192
|
+
...C.conversation,
|
|
9193
9193
|
isCurrent: h.id === M
|
|
9194
9194
|
} : {
|
|
9195
9195
|
...B,
|
|
@@ -9197,7 +9197,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9197
9197
|
}
|
|
9198
9198
|
) : [
|
|
9199
9199
|
{
|
|
9200
|
-
...
|
|
9200
|
+
...C.conversation,
|
|
9201
9201
|
isCurrent: h.id === M
|
|
9202
9202
|
},
|
|
9203
9203
|
...e().conversations.filter(({ id: B }) => B !== h.id).map((B) => ({
|
|
@@ -9207,40 +9207,40 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9207
9207
|
];
|
|
9208
9208
|
t({
|
|
9209
9209
|
conversations: P,
|
|
9210
|
-
inactiveConversationIds:
|
|
9211
|
-
inactiveConversationUpdatedAt:
|
|
9210
|
+
inactiveConversationIds: y,
|
|
9211
|
+
inactiveConversationUpdatedAt: E,
|
|
9212
9212
|
inactiveConversationRevalidation: k,
|
|
9213
9213
|
conversationScanCandidateIds: T,
|
|
9214
9214
|
conversationScanSnapshots: O,
|
|
9215
9215
|
threadIds: e().threadIds.includes(h.id) ? e().threadIds : [h.id, ...e().threadIds]
|
|
9216
9216
|
}), e().actions.updateThreads();
|
|
9217
9217
|
};
|
|
9218
|
-
if (
|
|
9219
|
-
const
|
|
9218
|
+
if (C.conversation.status !== "OPEN") {
|
|
9219
|
+
const y = C.outcome === "HINT_AHEAD" ? d.minimumRevision : void 0;
|
|
9220
9220
|
if (Xe(
|
|
9221
9221
|
n,
|
|
9222
9222
|
d.authorityVersionAtStart
|
|
9223
9223
|
)) {
|
|
9224
|
-
|
|
9224
|
+
y !== void 0 && Wt(
|
|
9225
9225
|
n,
|
|
9226
|
-
|
|
9226
|
+
y,
|
|
9227
9227
|
p
|
|
9228
9228
|
), cr(n, p);
|
|
9229
9229
|
return;
|
|
9230
9230
|
}
|
|
9231
9231
|
Qt(
|
|
9232
9232
|
n,
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
),
|
|
9233
|
+
C.conversation.updatedAt,
|
|
9234
|
+
y !== void 0
|
|
9235
|
+
), y !== void 0 && Wt(
|
|
9236
9236
|
n,
|
|
9237
|
-
|
|
9237
|
+
y,
|
|
9238
9238
|
p
|
|
9239
9239
|
);
|
|
9240
9240
|
return;
|
|
9241
9241
|
}
|
|
9242
|
-
if (
|
|
9243
|
-
!g &&
|
|
9242
|
+
if (C.outcome === "HINT_AHEAD") {
|
|
9243
|
+
!g && C.conversation.status === "OPEN" && I(), nn({
|
|
9244
9244
|
contractVersion: 1,
|
|
9245
9245
|
signal: "PROJECTION",
|
|
9246
9246
|
outcome: "REST_REALTIME_MISMATCH"
|
|
@@ -9251,12 +9251,12 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9251
9251
|
);
|
|
9252
9252
|
return;
|
|
9253
9253
|
}
|
|
9254
|
-
const
|
|
9254
|
+
const S = new Set(
|
|
9255
9255
|
e().assistantSuspendedConversationIds
|
|
9256
9256
|
);
|
|
9257
9257
|
ns(
|
|
9258
|
-
|
|
9259
|
-
) ?
|
|
9258
|
+
C.conversation
|
|
9259
|
+
) ? S.add(h.id) : S.delete(h.id), I(), t({ assistantSuspendedConversationIds: S }), nn({
|
|
9260
9260
|
contractVersion: 1,
|
|
9261
9261
|
signal: "PROJECTION",
|
|
9262
9262
|
outcome: "REST_RECONCILED"
|
|
@@ -9331,7 +9331,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9331
9331
|
sendMessage: async (n, r = []) => {
|
|
9332
9332
|
if (e().sendInFlight || e().responsePhase !== "idle")
|
|
9333
9333
|
return;
|
|
9334
|
-
|
|
9334
|
+
yn = null;
|
|
9335
9335
|
const s = e().pendingCustomerMessage;
|
|
9336
9336
|
if (s) {
|
|
9337
9337
|
if (s.acceptanceConfirmed !== !0 || !s.conversationId || !e().config)
|
|
@@ -9362,7 +9362,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9362
9362
|
const d = () => {
|
|
9363
9363
|
const p = new Set(
|
|
9364
9364
|
e().messages.filter(
|
|
9365
|
-
(f) =>
|
|
9365
|
+
(f) => yc(f, c)
|
|
9366
9366
|
).map(({ id: f }) => f)
|
|
9367
9367
|
);
|
|
9368
9368
|
for (const [f, m] of e().messageStreams)
|
|
@@ -9433,19 +9433,19 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9433
9433
|
e().inactiveConversationUpdatedAt
|
|
9434
9434
|
);
|
|
9435
9435
|
b.delete(p.conversationId);
|
|
9436
|
-
const
|
|
9436
|
+
const C = new Map(
|
|
9437
9437
|
e().inactiveConversationRevalidation
|
|
9438
9438
|
);
|
|
9439
|
-
|
|
9439
|
+
C.delete(p.conversationId);
|
|
9440
9440
|
const I = new Map(
|
|
9441
9441
|
e().conversationScanSnapshots
|
|
9442
9442
|
);
|
|
9443
9443
|
I.delete(p.conversationId);
|
|
9444
|
-
const
|
|
9444
|
+
const S = new Set(
|
|
9445
9445
|
e().conversationScanCandidateIds
|
|
9446
9446
|
);
|
|
9447
|
-
|
|
9448
|
-
const
|
|
9447
|
+
S.delete(p.conversationId);
|
|
9448
|
+
const y = e().pendingCustomerMessage, E = new Set(
|
|
9449
9449
|
e().assistantSuspendedConversationIds
|
|
9450
9450
|
), k = e().conversations.find(
|
|
9451
9451
|
({ id: T }) => T === p.conversationId
|
|
@@ -9454,31 +9454,31 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9454
9454
|
c,
|
|
9455
9455
|
p.conversationId,
|
|
9456
9456
|
l.createdAt,
|
|
9457
|
-
|
|
9457
|
+
y?.canonicalMessageId ?? null
|
|
9458
9458
|
), dm(
|
|
9459
9459
|
p.conversationId,
|
|
9460
9460
|
k,
|
|
9461
9461
|
p.aiSuspension
|
|
9462
9462
|
), on.get(
|
|
9463
9463
|
p.conversationId
|
|
9464
|
-
)?.suspended ?? lm(k, p.aiSuspension) ?
|
|
9464
|
+
)?.suspended ?? lm(k, p.aiSuspension) ? E.add(p.conversationId) : E.delete(p.conversationId), p.assistantAdmitted || ht.delete(p.conversationId), t({
|
|
9465
9465
|
...m ? { currentThreadId: p.conversationId } : {},
|
|
9466
9466
|
inactiveConversationIds: g,
|
|
9467
9467
|
inactiveConversationUpdatedAt: b,
|
|
9468
|
-
inactiveConversationRevalidation:
|
|
9469
|
-
conversationScanCandidateIds:
|
|
9468
|
+
inactiveConversationRevalidation: C,
|
|
9469
|
+
conversationScanCandidateIds: S,
|
|
9470
9470
|
conversationScanSnapshots: I,
|
|
9471
|
-
assistantSuspendedConversationIds:
|
|
9471
|
+
assistantSuspendedConversationIds: E,
|
|
9472
9472
|
...m ? {
|
|
9473
9473
|
responsePhase: p.assistantAdmitted ? e().responsePhase : "idle"
|
|
9474
9474
|
} : {},
|
|
9475
|
-
pendingCustomerMessage:
|
|
9476
|
-
...
|
|
9475
|
+
pendingCustomerMessage: y?.id === c ? {
|
|
9476
|
+
...y,
|
|
9477
9477
|
acknowledged: !0,
|
|
9478
9478
|
acceptanceConfirmed: !0,
|
|
9479
|
-
conversationId:
|
|
9479
|
+
conversationId: y.conversationId ?? p.conversationId,
|
|
9480
9480
|
readByAssistant: p.assistantAdmitted
|
|
9481
|
-
} :
|
|
9481
|
+
} : y
|
|
9482
9482
|
});
|
|
9483
9483
|
for (const [T, M] of e().pendingMessageDeltas)
|
|
9484
9484
|
if (M.requestId === c) {
|
|
@@ -9534,7 +9534,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9534
9534
|
}
|
|
9535
9535
|
},
|
|
9536
9536
|
clearSendError: () => {
|
|
9537
|
-
|
|
9537
|
+
yn = null, t({ sendError: null });
|
|
9538
9538
|
},
|
|
9539
9539
|
updateThreads: () => {
|
|
9540
9540
|
const n = e().messages, r = new Map(
|
|
@@ -9594,7 +9594,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9594
9594
|
void 0,
|
|
9595
9595
|
o.controller.signal
|
|
9596
9596
|
);
|
|
9597
|
-
if (!
|
|
9597
|
+
if (!Cn(n, o) || !e().config || Ie(e().config) !== i)
|
|
9598
9598
|
return;
|
|
9599
9599
|
const c = ts(
|
|
9600
9600
|
e(),
|
|
@@ -9612,8 +9612,8 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9612
9612
|
n
|
|
9613
9613
|
), f = new Map(
|
|
9614
9614
|
e().threadMessagesNextCursor
|
|
9615
|
-
).set(n, u), m =
|
|
9616
|
-
m && (
|
|
9615
|
+
).set(n, u), m = yn === n && e().sendError === Ht.connectionFailed;
|
|
9616
|
+
m && (yn = null), t({
|
|
9617
9617
|
messageStreams: l,
|
|
9618
9618
|
threadMessagesNextCursor: f,
|
|
9619
9619
|
...e().currentThreadId === n ? {
|
|
@@ -9635,7 +9635,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9635
9635
|
)
|
|
9636
9636
|
}), e().actions.updateThreads(), t({ loadedThreadIds: h });
|
|
9637
9637
|
} catch (a) {
|
|
9638
|
-
if (!(
|
|
9638
|
+
if (!(Cn(n, o) && e().config && Ie(e().config) === i)) return;
|
|
9639
9639
|
if (dr(a)) {
|
|
9640
9640
|
Xe(
|
|
9641
9641
|
n,
|
|
@@ -9657,30 +9657,30 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9657
9657
|
return;
|
|
9658
9658
|
}
|
|
9659
9659
|
if (!ur(a))
|
|
9660
|
-
throw e().currentThreadId === n && (
|
|
9660
|
+
throw e().currentThreadId === n && (yn = n, t({
|
|
9661
9661
|
loadedThreadIds: new Set(e().loadedThreadIds).add(
|
|
9662
9662
|
n
|
|
9663
9663
|
),
|
|
9664
9664
|
sendError: Ht.connectionFailed
|
|
9665
9665
|
})), a;
|
|
9666
9666
|
} finally {
|
|
9667
|
-
const a =
|
|
9667
|
+
const a = Cn(
|
|
9668
9668
|
n,
|
|
9669
9669
|
o
|
|
9670
9670
|
);
|
|
9671
|
-
if (
|
|
9671
|
+
if (ya(n, o), a) {
|
|
9672
9672
|
const u = new Set(e().refreshingThreadIds);
|
|
9673
9673
|
u.delete(n), t({ refreshingThreadIds: u });
|
|
9674
9674
|
}
|
|
9675
9675
|
}
|
|
9676
9676
|
},
|
|
9677
9677
|
cancelThreadMessagesRequest: (n) => {
|
|
9678
|
-
if (
|
|
9679
|
-
const i =
|
|
9680
|
-
i.controller.abort(),
|
|
9678
|
+
if (Ce?.conversationId === n) {
|
|
9679
|
+
const i = Ce;
|
|
9680
|
+
i.controller.abort(), Ce = null, Pe += 1;
|
|
9681
9681
|
const o = e();
|
|
9682
9682
|
t(
|
|
9683
|
-
|
|
9683
|
+
Cr(
|
|
9684
9684
|
o,
|
|
9685
9685
|
i.rollbackThreadId,
|
|
9686
9686
|
i.rollbackThreadMessages
|
|
@@ -9711,7 +9711,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9711
9711
|
i,
|
|
9712
9712
|
a.controller.signal
|
|
9713
9713
|
);
|
|
9714
|
-
if (!
|
|
9714
|
+
if (!Cn(n, a) || !e().config || Ie(e().config) !== o || e().threadMessagesNextCursor.get(n) !== i)
|
|
9715
9715
|
return;
|
|
9716
9716
|
const l = ts(
|
|
9717
9717
|
e(),
|
|
@@ -9750,7 +9750,7 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9750
9750
|
)
|
|
9751
9751
|
}), e().actions.updateThreads();
|
|
9752
9752
|
} catch (u) {
|
|
9753
|
-
if (!(
|
|
9753
|
+
if (!(Cn(n, a) && e().config && Ie(e().config) === o)) return;
|
|
9754
9754
|
if (dr(u)) {
|
|
9755
9755
|
Xe(
|
|
9756
9756
|
n,
|
|
@@ -9773,8 +9773,8 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9773
9773
|
}
|
|
9774
9774
|
if (!ur(u)) throw u;
|
|
9775
9775
|
} finally {
|
|
9776
|
-
const u =
|
|
9777
|
-
if (
|
|
9776
|
+
const u = Cn(n, a);
|
|
9777
|
+
if (ya(n, a), u && e().config && Ie(e().config) === o) {
|
|
9778
9778
|
const c = new Set(e().loadingOlderThreadIds);
|
|
9779
9779
|
c.delete(n), t({ loadingOlderThreadIds: c });
|
|
9780
9780
|
}
|
|
@@ -9786,15 +9786,15 @@ const Se = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), _e = /* @_
|
|
|
9786
9786
|
K.subscribe((t, e) => {
|
|
9787
9787
|
t.conversations !== e.conversations && Pi(t.conversations);
|
|
9788
9788
|
});
|
|
9789
|
-
const
|
|
9789
|
+
const aC = () => K((t) => t.currentThreadId), Sm = () => K((t) => t.currentThreadMessages), uC = () => K((t) => t.threadsPreviews), cC = () => K((t) => !!t.conversationsNextCursor), lC = () => K((t) => t.isLoadingMoreConversations), Em = () => K((t) => t.currentThreadId), dC = () => K((t) => t.currentThreadId ? t.conversations.find(({ id: e }) => e === t.currentThreadId)?.responderPresentation ?? Ss : Ss), hC = () => K(
|
|
9790
9790
|
(t) => t.currentThreadId ? !t.refreshingThreadIds.has(t.currentThreadId) && !!t.threadMessagesNextCursor.get(t.currentThreadId) : !1
|
|
9791
|
-
),
|
|
9791
|
+
), fC = () => K(
|
|
9792
9792
|
(t) => t.currentThreadId ? t.loadingOlderThreadIds.has(t.currentThreadId) : !1
|
|
9793
|
-
), km = () => K((t) => t.latestReadMessageDate), xm = () => K((t) => t.latestMessageDate), Tm = () => K((t) => t.conversationNavigationRequest),
|
|
9793
|
+
), km = () => K((t) => t.latestReadMessageDate), xm = () => K((t) => t.latestMessageDate), Tm = () => K((t) => t.conversationNavigationRequest), pC = () => K((t) => t.sendError), Rm = (t) => !!(t.currentThreadId && !t.loadedThreadIds.has(t.currentThreadId)), mC = () => K(Rm), gC = () => K((t) => t.responsePhase === "awaiting-first-token"), bC = () => K(
|
|
9794
9794
|
(t) => t.sendInFlight || t.responsePhase !== "idle" || !!(t.pendingCustomerMessage && (t.pendingCustomerMessage.acceptanceConfirmed !== !0 || !t.pendingCustomerMessage.conversationId))
|
|
9795
|
-
), Mm = (t) => t.pendingCustomerMessage?.conversationId === t.currentThreadId ? t.pendingCustomerMessage : null,
|
|
9795
|
+
), Mm = (t) => t.pendingCustomerMessage?.conversationId === t.currentThreadId ? t.pendingCustomerMessage : null, yC = () => K(Mm), CC = (t) => K((e) => e.messageStreams.get(t)), Dm = (t, e) => t.currentThreadId ? t.typingByConversation.get(
|
|
9796
9796
|
gc(t.currentThreadId, e)
|
|
9797
|
-
) ?? null : null,
|
|
9797
|
+
) ?? null : null, IC = (t) => K((e) => Dm(e, t)), _m = (t) => {
|
|
9798
9798
|
if (!t.currentThreadId) return !1;
|
|
9799
9799
|
if (t.assistantSuspendedConversationIds.has(t.currentThreadId))
|
|
9800
9800
|
return !0;
|
|
@@ -10161,7 +10161,7 @@ function ug() {
|
|
|
10161
10161
|
}
|
|
10162
10162
|
});
|
|
10163
10163
|
}
|
|
10164
|
-
let
|
|
10164
|
+
let yi;
|
|
10165
10165
|
function as(t) {
|
|
10166
10166
|
return t.reduce((e, n) => e + n.length, 0);
|
|
10167
10167
|
}
|
|
@@ -10175,7 +10175,7 @@ function us(t, e) {
|
|
|
10175
10175
|
return t.length && r < t[0].length && (t[0] = t[0].slice(r)), n;
|
|
10176
10176
|
}
|
|
10177
10177
|
function cg(t, e) {
|
|
10178
|
-
|
|
10178
|
+
yi || (yi = new TextDecoder());
|
|
10179
10179
|
const n = [];
|
|
10180
10180
|
let r = 0, s = -1, i = !1;
|
|
10181
10181
|
return new TransformStream({
|
|
@@ -10204,7 +10204,7 @@ function cg(t, e) {
|
|
|
10204
10204
|
if (as(n) < s)
|
|
10205
10205
|
break;
|
|
10206
10206
|
const u = us(n, s);
|
|
10207
|
-
a.enqueue(go(i ? u :
|
|
10207
|
+
a.enqueue(go(i ? u : yi.decode(u), e)), r = 0;
|
|
10208
10208
|
}
|
|
10209
10209
|
if (s === 0 || s > t) {
|
|
10210
10210
|
a.enqueue(zi);
|
|
@@ -10291,7 +10291,7 @@ function bg(t) {
|
|
|
10291
10291
|
t.hasOwnProperty(n) && (e.length && (e += "&"), e += encodeURIComponent(n) + "=" + encodeURIComponent(t[n]));
|
|
10292
10292
|
return e;
|
|
10293
10293
|
}
|
|
10294
|
-
function
|
|
10294
|
+
function yg(t) {
|
|
10295
10295
|
let e = {}, n = t.split("&");
|
|
10296
10296
|
for (let r = 0, s = n.length; r < s; r++) {
|
|
10297
10297
|
let i = n[r].split("=");
|
|
@@ -10299,7 +10299,7 @@ function Cg(t) {
|
|
|
10299
10299
|
}
|
|
10300
10300
|
return e;
|
|
10301
10301
|
}
|
|
10302
|
-
class
|
|
10302
|
+
class Cg extends Error {
|
|
10303
10303
|
constructor(e, n, r) {
|
|
10304
10304
|
super(e), this.description = n, this.context = r, this.type = "TransportError";
|
|
10305
10305
|
}
|
|
@@ -10324,7 +10324,7 @@ class bo extends Ne {
|
|
|
10324
10324
|
* @protected
|
|
10325
10325
|
*/
|
|
10326
10326
|
onError(e, n, r) {
|
|
10327
|
-
return super.emitReserved("error", new
|
|
10327
|
+
return super.emitReserved("error", new Cg(e, n, r)), this;
|
|
10328
10328
|
}
|
|
10329
10329
|
/**
|
|
10330
10330
|
* Opens the transport.
|
|
@@ -10741,10 +10741,10 @@ class kg extends bo {
|
|
|
10741
10741
|
return this.opts.timestampRequests && (n[this.opts.timestampParam] = Nc()), this.supportsBinary || (n.b64 = 1), this.createUri(e, n);
|
|
10742
10742
|
}
|
|
10743
10743
|
}
|
|
10744
|
-
const
|
|
10744
|
+
const Ci = dt.WebSocket || dt.MozWebSocket;
|
|
10745
10745
|
class xg extends kg {
|
|
10746
10746
|
createSocket(e, n, r) {
|
|
10747
|
-
return Oc ? new
|
|
10747
|
+
return Oc ? new Ci(e, n, r) : n ? new Ci(e, n) : new Ci(e);
|
|
10748
10748
|
}
|
|
10749
10749
|
doWrite(e, n) {
|
|
10750
10750
|
this.ws.send(n);
|
|
@@ -10836,9 +10836,9 @@ function Fg(t, e) {
|
|
|
10836
10836
|
s && (n[s] = i);
|
|
10837
10837
|
}), n;
|
|
10838
10838
|
}
|
|
10839
|
-
const qi = typeof addEventListener == "function" && typeof removeEventListener == "function",
|
|
10839
|
+
const qi = typeof addEventListener == "function" && typeof removeEventListener == "function", ys = [];
|
|
10840
10840
|
qi && addEventListener("offline", () => {
|
|
10841
|
-
|
|
10841
|
+
ys.forEach((t) => t());
|
|
10842
10842
|
}, !1);
|
|
10843
10843
|
class an extends Ne {
|
|
10844
10844
|
/**
|
|
@@ -10869,13 +10869,13 @@ class an extends Ne {
|
|
|
10869
10869
|
},
|
|
10870
10870
|
transportOptions: {},
|
|
10871
10871
|
closeOnBeforeunload: !1
|
|
10872
|
-
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query =
|
|
10872
|
+
}, n), this.opts.path = this.opts.path.replace(/\/$/, "") + (this.opts.addTrailingSlash ? "/" : ""), typeof this.opts.query == "string" && (this.opts.query = yg(this.opts.query)), qi && (this.opts.closeOnBeforeunload && (this._beforeunloadEventListener = () => {
|
|
10873
10873
|
this.transport && (this.transport.removeAllListeners(), this.transport.close());
|
|
10874
10874
|
}, addEventListener("beforeunload", this._beforeunloadEventListener, !1)), this.hostname !== "localhost" && (this._offlineEventListener = () => {
|
|
10875
10875
|
this._onClose("transport close", {
|
|
10876
10876
|
description: "network connection lost"
|
|
10877
10877
|
});
|
|
10878
|
-
},
|
|
10878
|
+
}, ys.push(this._offlineEventListener))), this.opts.withCredentials && (this._cookieJar = void 0), this._open();
|
|
10879
10879
|
}
|
|
10880
10880
|
/**
|
|
10881
10881
|
* Creates transport of the given type.
|
|
@@ -11103,8 +11103,8 @@ class an extends Ne {
|
|
|
11103
11103
|
_onClose(e, n) {
|
|
11104
11104
|
if (this.readyState === "opening" || this.readyState === "open" || this.readyState === "closing") {
|
|
11105
11105
|
if (this.clearTimeoutFn(this._pingTimeoutTimer), this.transport.removeAllListeners("close"), this.transport.close(), this.transport.removeAllListeners(), qi && (this._beforeunloadEventListener && removeEventListener("beforeunload", this._beforeunloadEventListener, !1), this._offlineEventListener)) {
|
|
11106
|
-
const r =
|
|
11107
|
-
r !== -1 &&
|
|
11106
|
+
const r = ys.indexOf(this._offlineEventListener);
|
|
11107
|
+
r !== -1 && ys.splice(r, 1);
|
|
11108
11108
|
}
|
|
11109
11109
|
this.readyState = "closed", this.id = null, this.emitReserved("close", e, n), this.writeBuffer = [], this._prevBufferLen = 0;
|
|
11110
11110
|
}
|
|
@@ -11196,24 +11196,24 @@ function Pg(t, e = "", n) {
|
|
|
11196
11196
|
return r.id = r.protocol + "://" + i + ":" + r.port + e, r.href = r.protocol + "://" + i + (n && n.port === r.port ? "" : ":" + r.port), r;
|
|
11197
11197
|
}
|
|
11198
11198
|
const Og = typeof ArrayBuffer == "function", Bg = (t) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(t) : t.buffer instanceof ArrayBuffer, Bc = Object.prototype.toString, Vg = typeof Blob == "function" || typeof Blob < "u" && Bc.call(Blob) === "[object BlobConstructor]", zg = typeof File == "function" || typeof File < "u" && Bc.call(File) === "[object FileConstructor]";
|
|
11199
|
-
function
|
|
11199
|
+
function yo(t) {
|
|
11200
11200
|
return Og && (t instanceof ArrayBuffer || Bg(t)) || Vg && t instanceof Blob || zg && t instanceof File;
|
|
11201
11201
|
}
|
|
11202
|
-
function
|
|
11202
|
+
function Cs(t, e) {
|
|
11203
11203
|
if (!t || typeof t != "object")
|
|
11204
11204
|
return !1;
|
|
11205
11205
|
if (Array.isArray(t)) {
|
|
11206
11206
|
for (let n = 0, r = t.length; n < r; n++)
|
|
11207
|
-
if (
|
|
11207
|
+
if (Cs(t[n]))
|
|
11208
11208
|
return !0;
|
|
11209
11209
|
return !1;
|
|
11210
11210
|
}
|
|
11211
|
-
if (
|
|
11211
|
+
if (yo(t))
|
|
11212
11212
|
return !0;
|
|
11213
11213
|
if (t.toJSON && typeof t.toJSON == "function" && arguments.length === 1)
|
|
11214
|
-
return
|
|
11214
|
+
return Cs(t.toJSON(), !0);
|
|
11215
11215
|
for (const n in t)
|
|
11216
|
-
if (Object.prototype.hasOwnProperty.call(t, n) &&
|
|
11216
|
+
if (Object.prototype.hasOwnProperty.call(t, n) && Cs(t[n]))
|
|
11217
11217
|
return !0;
|
|
11218
11218
|
return !1;
|
|
11219
11219
|
}
|
|
@@ -11224,7 +11224,7 @@ function Gg(t) {
|
|
|
11224
11224
|
function Is(t, e, n) {
|
|
11225
11225
|
if (!t)
|
|
11226
11226
|
return t;
|
|
11227
|
-
if (
|
|
11227
|
+
if (yo(t)) {
|
|
11228
11228
|
const r = { _placeholder: !0, num: e.length };
|
|
11229
11229
|
return e.push(t), r;
|
|
11230
11230
|
} else if (Array.isArray(t)) {
|
|
@@ -11294,7 +11294,7 @@ class Wg {
|
|
|
11294
11294
|
* @param {Object} obj - packet object
|
|
11295
11295
|
*/
|
|
11296
11296
|
encode(e) {
|
|
11297
|
-
return (e.type === se.EVENT || e.type === se.ACK) &&
|
|
11297
|
+
return (e.type === se.EVENT || e.type === se.ACK) && Cs(e) ? this.encodeAsBinary({
|
|
11298
11298
|
type: e.type === se.EVENT ? se.BINARY_EVENT : se.BINARY_ACK,
|
|
11299
11299
|
nsp: e.nsp,
|
|
11300
11300
|
data: e.data,
|
|
@@ -11318,7 +11318,7 @@ class Wg {
|
|
|
11318
11318
|
return s.unshift(r), s;
|
|
11319
11319
|
}
|
|
11320
11320
|
}
|
|
11321
|
-
class
|
|
11321
|
+
class Co extends Ne {
|
|
11322
11322
|
/**
|
|
11323
11323
|
* Decoder constructor
|
|
11324
11324
|
*/
|
|
@@ -11341,7 +11341,7 @@ class yo extends Ne {
|
|
|
11341
11341
|
n = this.decodeString(e);
|
|
11342
11342
|
const r = n.type === se.BINARY_EVENT;
|
|
11343
11343
|
r || n.type === se.BINARY_ACK ? (n.type = r ? se.EVENT : se.ACK, this.reconstructor = new Hg(n)) : super.emitReserved("decoded", n);
|
|
11344
|
-
} else if (
|
|
11344
|
+
} else if (yo(e) || e.base64)
|
|
11345
11345
|
if (this.reconstructor)
|
|
11346
11346
|
n = this.reconstructor.takeBinaryData(e), n && (this.reconstructor = null, super.emitReserved("decoded", n));
|
|
11347
11347
|
else
|
|
@@ -11399,7 +11399,7 @@ class yo extends Ne {
|
|
|
11399
11399
|
}
|
|
11400
11400
|
if (e.charAt(++n)) {
|
|
11401
11401
|
const i = this.tryParse(e.substr(n));
|
|
11402
|
-
if (
|
|
11402
|
+
if (Co.isPayloadValid(r.type, i))
|
|
11403
11403
|
r.data = i;
|
|
11404
11404
|
else
|
|
11405
11405
|
throw new Error("invalid payload");
|
|
@@ -11495,7 +11495,7 @@ function Kg(t) {
|
|
|
11495
11495
|
}
|
|
11496
11496
|
const Yg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11497
11497
|
__proto__: null,
|
|
11498
|
-
Decoder:
|
|
11498
|
+
Decoder: Co,
|
|
11499
11499
|
Encoder: Wg,
|
|
11500
11500
|
get PacketType() {
|
|
11501
11501
|
return se;
|
|
@@ -12496,25 +12496,26 @@ class ib {
|
|
|
12496
12496
|
}
|
|
12497
12497
|
submit(e) {
|
|
12498
12498
|
const n = mr(e), r = this.entries.get(n);
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12499
|
+
return r ? r.snapshot.status === "terminal" || r.snapshot.status === "submitting" || !r.input ? r.inFlight ?? Promise.resolve() : r.input.optionId !== e.optionId ? r.snapshot.status !== "error" ? r.inFlight ?? Promise.resolve() : this.startSubmissionWithNewIdentity(n, e) : (this.startConfirmationWindow(n, r), r.snapshot = Object.freeze({
|
|
12500
|
+
...r.snapshot,
|
|
12501
|
+
status: "submitting",
|
|
12502
|
+
lastOutcome: null,
|
|
12503
|
+
failure: null
|
|
12504
|
+
}), this.emit(n), this.send(n, r)) : this.startSubmissionWithNewIdentity(n, e);
|
|
12505
|
+
}
|
|
12506
|
+
startSubmissionWithNewIdentity(e, n) {
|
|
12507
|
+
const r = n.presentationContext ? Object.freeze({ ...n.presentationContext }) : void 0, s = Object.freeze({
|
|
12508
|
+
inputRequestId: n.inputRequestId,
|
|
12509
|
+
optionId: n.optionId,
|
|
12509
12510
|
clientEventId: this.createClientEventId(),
|
|
12510
|
-
...
|
|
12511
|
-
}),
|
|
12512
|
-
input:
|
|
12511
|
+
...r ? { presentationContext: r } : {}
|
|
12512
|
+
}), i = {
|
|
12513
|
+
input: s,
|
|
12513
12514
|
snapshot: Object.freeze({
|
|
12514
12515
|
status: "submitting",
|
|
12515
|
-
clientEventId:
|
|
12516
|
-
selectedOptionId:
|
|
12517
|
-
presentationContext:
|
|
12516
|
+
clientEventId: s.clientEventId,
|
|
12517
|
+
selectedOptionId: s.optionId,
|
|
12518
|
+
presentationContext: s.presentationContext ?? null,
|
|
12518
12519
|
lastOutcome: null,
|
|
12519
12520
|
failure: null
|
|
12520
12521
|
}),
|
|
@@ -12524,7 +12525,7 @@ class ib {
|
|
|
12524
12525
|
retryTimer: null,
|
|
12525
12526
|
transportAttempt: 0
|
|
12526
12527
|
};
|
|
12527
|
-
return this.entries.set(
|
|
12528
|
+
return this.entries.set(e, i), this.startConfirmationWindow(e, i), this.emit(e), this.pruneEntries(), this.send(e, i);
|
|
12528
12529
|
}
|
|
12529
12530
|
handleLifecycle(e, n) {
|
|
12530
12531
|
if (n.status === "PENDING") return;
|
|
@@ -12663,12 +12664,12 @@ const qc = Kn(void 0), ob = (t, e, n) => new Rh(t, e, n), ab = (t, e, n, r = {},
|
|
|
12663
12664
|
(O) => O === $t.Offline ? $t.Available : O
|
|
12664
12665
|
);
|
|
12665
12666
|
};
|
|
12666
|
-
let
|
|
12667
|
+
let C = !1;
|
|
12667
12668
|
const I = () => {
|
|
12668
|
-
|
|
12669
|
-
},
|
|
12670
|
-
|
|
12671
|
-
},
|
|
12669
|
+
C = !1;
|
|
12670
|
+
}, S = () => {
|
|
12671
|
+
C = !0;
|
|
12672
|
+
}, y = s(
|
|
12672
12673
|
bl(t.customerInteractionSession.accessToken),
|
|
12673
12674
|
(O) => {
|
|
12674
12675
|
g();
|
|
@@ -12676,8 +12677,8 @@ const qc = Kn(void 0), ob = (t, e, n) => new Rh(t, e, n), ab = (t, e, n, r = {},
|
|
|
12676
12677
|
messageActions: T,
|
|
12677
12678
|
commandRuntime: e,
|
|
12678
12679
|
session: t.customerInteractionSession,
|
|
12679
|
-
realtimeMessageSource:
|
|
12680
|
-
sendAck: (B) =>
|
|
12680
|
+
realtimeMessageSource: C ? "HISTORY_REPLAY" : "LIVE",
|
|
12681
|
+
sendAck: (B) => y.acknowledgeCommand(B),
|
|
12681
12682
|
onPresenceOnline: g,
|
|
12682
12683
|
onScenarioConversation: u,
|
|
12683
12684
|
onRealtimeMessage: i,
|
|
@@ -12697,7 +12698,7 @@ const qc = Kn(void 0), ob = (t, e, n) => new Rh(t, e, n), ab = (t, e, n, r = {},
|
|
|
12697
12698
|
), a?.(B);
|
|
12698
12699
|
}
|
|
12699
12700
|
}), P = Sc(O);
|
|
12700
|
-
P?.delivery && P.delivery.status !== "DELIVERED" && P.delivery.status !== "READ" &&
|
|
12701
|
+
P?.delivery && P.delivery.status !== "DELIVERED" && P.delivery.status !== "READ" && y.acknowledgeMessageDelivery({
|
|
12701
12702
|
messageId: P.id,
|
|
12702
12703
|
status: "delivered"
|
|
12703
12704
|
}).catch(
|
|
@@ -12709,27 +12710,27 @@ const qc = Kn(void 0), ob = (t, e, n) => new Rh(t, e, n), ab = (t, e, n, r = {},
|
|
|
12709
12710
|
n
|
|
12710
12711
|
);
|
|
12711
12712
|
h.setTransport(
|
|
12712
|
-
(O) =>
|
|
12713
|
-
),
|
|
12713
|
+
(O) => y.submitScenarioChoice(O)
|
|
12714
|
+
), y.channels.chat.on("info", (O) => {
|
|
12714
12715
|
(O.type === "history_received" || O.type === "history_not_found" || O.type === "confirm_history" || O.type === "reject_history") && I(), (O.type === "history_not_found" || O.type === "reject_history") && re.warn("Realtime history was rejected");
|
|
12715
|
-
}),
|
|
12716
|
-
O.restored &&
|
|
12717
|
-
}),
|
|
12718
|
-
|
|
12716
|
+
}), y.channels.chat.on("connect", (O) => {
|
|
12717
|
+
O.restored && S(), console.info("[CableContext] Connected to the chat channel"), p(y), g();
|
|
12718
|
+
}), y.channels.chat.on("disconnect", (O) => {
|
|
12719
|
+
K.getState().actions.clearTransientRealtimeState(), Us(O) && n?.(), l(
|
|
12719
12720
|
navigator.onLine ? $t.Unavailable : $t.Offline
|
|
12720
12721
|
), console.warn("[CableContext] Disconnected from the chat channel", O);
|
|
12721
12722
|
});
|
|
12722
|
-
const
|
|
12723
|
+
const E = () => {
|
|
12723
12724
|
document.visibilityState === "visible" && b();
|
|
12724
12725
|
}, k = () => {
|
|
12725
12726
|
l($t.Offline);
|
|
12726
12727
|
};
|
|
12727
|
-
return window.addEventListener("online", b), window.addEventListener("offline", k), window.addEventListener("focus", b), document.addEventListener("visibilitychange",
|
|
12728
|
+
return window.addEventListener("online", b), window.addEventListener("offline", k), window.addEventListener("focus", b), document.addEventListener("visibilitychange", E), y.channels.chat.on("close", (O) => {
|
|
12728
12729
|
console.warn("[CableContext] Closed the chat channel", O);
|
|
12729
12730
|
}), () => {
|
|
12730
|
-
I(),
|
|
12731
|
+
I(), y.unregister(), h.setTransport(
|
|
12731
12732
|
() => Promise.reject(new Error("Cable is not ready"))
|
|
12732
|
-
), window.removeEventListener("online", b), window.removeEventListener("offline", k), window.removeEventListener("focus", b), document.removeEventListener("visibilitychange",
|
|
12733
|
+
), window.removeEventListener("online", b), window.removeEventListener("offline", k), window.removeEventListener("focus", b), document.removeEventListener("visibilitychange", E);
|
|
12733
12734
|
};
|
|
12734
12735
|
}, [
|
|
12735
12736
|
e,
|
|
@@ -12775,13 +12776,13 @@ const st = {
|
|
|
12775
12776
|
voice: "/chat/voice",
|
|
12776
12777
|
text: "/chat/text"
|
|
12777
12778
|
};
|
|
12778
|
-
function
|
|
12779
|
+
function AC(t) {
|
|
12779
12780
|
if (!t || typeof t != "object" || !("chatMode" in t))
|
|
12780
12781
|
return null;
|
|
12781
12782
|
const { chatMode: e } = t;
|
|
12782
12783
|
return e === "text" || e === "voice" ? e : null;
|
|
12783
12784
|
}
|
|
12784
|
-
function
|
|
12785
|
+
function wC(t) {
|
|
12785
12786
|
return Io(t) ? "text" : "voice";
|
|
12786
12787
|
}
|
|
12787
12788
|
function Hi(t) {
|
|
@@ -12793,10 +12794,10 @@ function Io(t) {
|
|
|
12793
12794
|
function Ra(t) {
|
|
12794
12795
|
return t === st.voice || t.endsWith(st.voice) || Io(t);
|
|
12795
12796
|
}
|
|
12796
|
-
function
|
|
12797
|
+
function SC(t, e) {
|
|
12797
12798
|
return Ra(t) && Hi(e) ? "forward" : Hi(t) && Ra(e) ? "backward" : null;
|
|
12798
12799
|
}
|
|
12799
|
-
function
|
|
12800
|
+
function EC(t) {
|
|
12800
12801
|
return t === st.voice || t.endsWith(st.voice);
|
|
12801
12802
|
}
|
|
12802
12803
|
function lb(t) {
|
|
@@ -12805,7 +12806,7 @@ function lb(t) {
|
|
|
12805
12806
|
const db = 60 * 1e3;
|
|
12806
12807
|
function hb(t, e) {
|
|
12807
12808
|
const n = q(e), r = t.customerInteractionSession, s = le(() => {
|
|
12808
|
-
|
|
12809
|
+
yl(r) && n.current.onSessionExpired();
|
|
12809
12810
|
}, [r]);
|
|
12810
12811
|
Y(() => {
|
|
12811
12812
|
s();
|
|
@@ -12855,7 +12856,7 @@ const Sn = (t) => !!t && typeof t == "object" && !Array.isArray(t), pb = /* @__P
|
|
|
12855
12856
|
} catch {
|
|
12856
12857
|
return !1;
|
|
12857
12858
|
}
|
|
12858
|
-
},
|
|
12859
|
+
}, yb = (t, e) => {
|
|
12859
12860
|
if (!Sn(t))
|
|
12860
12861
|
throw new Error("Invalid voice session websocket contract");
|
|
12861
12862
|
if (!bb(t.path))
|
|
@@ -12865,7 +12866,7 @@ const Sn = (t) => !!t && typeof t == "object" && !Array.isArray(t), pb = /* @__P
|
|
|
12865
12866
|
if (r !== "path" && t[r] !== s)
|
|
12866
12867
|
throw new Error("Invalid voice session websocket contract");
|
|
12867
12868
|
return { ...n, path: t.path };
|
|
12868
|
-
},
|
|
12869
|
+
}, Cb = (t, e) => {
|
|
12869
12870
|
if (e !== 5) return;
|
|
12870
12871
|
if (!Sn(t) || !Sn(t.input))
|
|
12871
12872
|
throw new Error("Invalid voice session quality profile");
|
|
@@ -12887,7 +12888,7 @@ const Sn = (t) => !!t && typeof t == "object" && !Array.isArray(t), pb = /* @__P
|
|
|
12887
12888
|
const e = t.voiceConfig;
|
|
12888
12889
|
if (typeof t.voiceSessionId != "string" || !t.voiceSessionId || typeof t.conversationId != "string" || !t.conversationId || typeof t.status != "string" || !pb.has(t.status) || !Sn(e) || typeof e.voice != "string" || !e.voice || !Number.isSafeInteger(t.voiceProtocolVersion))
|
|
12889
12890
|
throw new Error("Invalid voice session response");
|
|
12890
|
-
const n = t.voiceProtocolVersion, r =
|
|
12891
|
+
const n = t.voiceProtocolVersion, r = Cb(t.qualityProfile, n);
|
|
12891
12892
|
return {
|
|
12892
12893
|
voiceSessionId: t.voiceSessionId,
|
|
12893
12894
|
conversationId: t.conversationId,
|
|
@@ -12895,7 +12896,7 @@ const Sn = (t) => !!t && typeof t == "object" && !Array.isArray(t), pb = /* @__P
|
|
|
12895
12896
|
voiceConfig: { voice: e.voice },
|
|
12896
12897
|
voiceProtocolVersion: n,
|
|
12897
12898
|
...r ? { qualityProfile: r } : {},
|
|
12898
|
-
websocket:
|
|
12899
|
+
websocket: yb(t.websocket, n)
|
|
12899
12900
|
};
|
|
12900
12901
|
}, Ib = async (t) => {
|
|
12901
12902
|
try {
|
|
@@ -13129,40 +13130,40 @@ class _b {
|
|
|
13129
13130
|
let s = null, i = null, o = null, a = null;
|
|
13130
13131
|
const u = /* @__PURE__ */ new Set();
|
|
13131
13132
|
let c = !1, l = !1, d, p;
|
|
13132
|
-
const h = new Promise((
|
|
13133
|
-
d =
|
|
13133
|
+
const h = new Promise((y, E) => {
|
|
13134
|
+
d = y, p = E;
|
|
13134
13135
|
}), f = () => {
|
|
13135
|
-
c || (c = !0, u.forEach((
|
|
13136
|
+
c || (c = !0, u.forEach((y) => clearTimeout(y)), u.clear(), r.abort(), o?.cancel().catch(() => {
|
|
13136
13137
|
}), i && (i.port.onmessage = null, i.disconnect()), s?.close().catch(() => {
|
|
13137
13138
|
}), this.active === I && (this.active = null));
|
|
13138
|
-
}, m = (
|
|
13139
|
+
}, m = (y, E) => {
|
|
13139
13140
|
if (c) return;
|
|
13140
13141
|
const k = s ? Db(s) : null;
|
|
13141
|
-
if (k === null || !Number.isFinite(
|
|
13142
|
-
|
|
13142
|
+
if (k === null || !Number.isFinite(y) || !s || y <= k) {
|
|
13143
|
+
E();
|
|
13143
13144
|
return;
|
|
13144
13145
|
}
|
|
13145
13146
|
const O = Math.min(
|
|
13146
13147
|
xb,
|
|
13147
|
-
(
|
|
13148
|
+
(y - k) / s.sampleRate * 1e3
|
|
13148
13149
|
), T = setTimeout(() => {
|
|
13149
|
-
u.delete(T), c ||
|
|
13150
|
+
u.delete(T), c || E();
|
|
13150
13151
|
}, O);
|
|
13151
13152
|
u.add(T);
|
|
13152
|
-
}, g = (
|
|
13153
|
+
}, g = (y) => {
|
|
13153
13154
|
if (!l) {
|
|
13154
13155
|
l = !0;
|
|
13155
13156
|
try {
|
|
13156
|
-
n.onStopped?.(
|
|
13157
|
-
} catch (
|
|
13158
|
-
re.warn("Speech playback stopped callback failed",
|
|
13157
|
+
n.onStopped?.(y);
|
|
13158
|
+
} catch (E) {
|
|
13159
|
+
re.warn("Speech playback stopped callback failed", E);
|
|
13159
13160
|
}
|
|
13160
13161
|
}
|
|
13161
|
-
}, b = (
|
|
13162
|
-
c || (f(), g(
|
|
13163
|
-
},
|
|
13162
|
+
}, b = (y) => {
|
|
13163
|
+
c || (f(), g(y), d(y));
|
|
13164
|
+
}, C = (y) => {
|
|
13164
13165
|
c || (f(), g(!1), p(
|
|
13165
|
-
|
|
13166
|
+
y instanceof Error ? y : new Error("Streaming audio playback failed")
|
|
13166
13167
|
));
|
|
13167
13168
|
}, I = {
|
|
13168
13169
|
stop: () => {
|
|
@@ -13172,7 +13173,7 @@ class _b {
|
|
|
13172
13173
|
return this.active = I, (async () => {
|
|
13173
13174
|
try {
|
|
13174
13175
|
s = new AudioContext({ latencyHint: "interactive" });
|
|
13175
|
-
const
|
|
13176
|
+
const y = Mb(
|
|
13176
13177
|
s,
|
|
13177
13178
|
r.signal
|
|
13178
13179
|
);
|
|
@@ -13180,9 +13181,9 @@ class _b {
|
|
|
13180
13181
|
(M) => ({ ok: !0, stream: M }),
|
|
13181
13182
|
(M) => ({ ok: !1, error: M })
|
|
13182
13183
|
);
|
|
13183
|
-
const [, ,
|
|
13184
|
+
const [, , E] = await Hc(
|
|
13184
13185
|
Promise.all([
|
|
13185
|
-
|
|
13186
|
+
y,
|
|
13186
13187
|
s.audioWorklet.addModule(kb),
|
|
13187
13188
|
a
|
|
13188
13189
|
]),
|
|
@@ -13191,11 +13192,11 @@ class _b {
|
|
|
13191
13192
|
r.signal
|
|
13192
13193
|
);
|
|
13193
13194
|
if (c) {
|
|
13194
|
-
|
|
13195
|
+
E.ok && await E.stream.cancel();
|
|
13195
13196
|
return;
|
|
13196
13197
|
}
|
|
13197
|
-
if (!
|
|
13198
|
-
const k =
|
|
13198
|
+
if (!E.ok) throw E.error;
|
|
13199
|
+
const k = E.stream;
|
|
13199
13200
|
if (i = new AudioWorkletNode(s, "lola-pcm-playback", {
|
|
13200
13201
|
numberOfInputs: 0,
|
|
13201
13202
|
numberOfOutputs: 1,
|
|
@@ -13243,7 +13244,7 @@ class _b {
|
|
|
13243
13244
|
return;
|
|
13244
13245
|
}
|
|
13245
13246
|
if (M.data.type === "error") {
|
|
13246
|
-
|
|
13247
|
+
C(new Error("Invalid PCM16 audio stream"));
|
|
13247
13248
|
return;
|
|
13248
13249
|
}
|
|
13249
13250
|
M.data.type === "ended" && m(
|
|
@@ -13273,11 +13274,11 @@ class _b {
|
|
|
13273
13274
|
re.debug(
|
|
13274
13275
|
`Scenario speech stream completed: ${O} bytes`
|
|
13275
13276
|
), i.port.postMessage({ type: "end" });
|
|
13276
|
-
} catch (
|
|
13277
|
+
} catch (y) {
|
|
13277
13278
|
a?.then(
|
|
13278
|
-
(
|
|
13279
|
+
(E) => E.ok ? E.stream.cancel().catch(() => {
|
|
13279
13280
|
}) : void 0
|
|
13280
|
-
), y
|
|
13281
|
+
), C(y);
|
|
13281
13282
|
}
|
|
13282
13283
|
})(), await h;
|
|
13283
13284
|
}
|
|
@@ -13631,27 +13632,27 @@ const Kb = (t) => {
|
|
|
13631
13632
|
const n = new _b();
|
|
13632
13633
|
let r = !1, s = null, i = null, o = null, a = null, u = 0, c = 0, l = null, d = null, p = 0, h = 0;
|
|
13633
13634
|
const f = /* @__PURE__ */ new Set();
|
|
13634
|
-
let m = !1, g = !0, b = 0,
|
|
13635
|
+
let m = !1, g = !0, b = 0, C = !1;
|
|
13635
13636
|
class I extends Error {
|
|
13636
13637
|
constructor() {
|
|
13637
13638
|
super("Voice startup was cancelled");
|
|
13638
13639
|
}
|
|
13639
13640
|
}
|
|
13640
|
-
const
|
|
13641
|
+
const S = (_, A = !0) => {
|
|
13641
13642
|
A && (g = _), e().localStream?.getAudioTracks().forEach((v) => v.enabled = _), e().inputAudioNode?.port.postMessage({ type: "enabled", value: _ }), t({
|
|
13642
13643
|
microphoneEnabled: _,
|
|
13643
13644
|
status: _ ? "listening" : "idle",
|
|
13644
13645
|
errorMessage: null,
|
|
13645
13646
|
errorCode: null
|
|
13646
13647
|
});
|
|
13647
|
-
},
|
|
13648
|
+
}, y = () => {
|
|
13648
13649
|
if (l)
|
|
13649
13650
|
for (f.add(l); f.size > 20; )
|
|
13650
13651
|
f.delete(
|
|
13651
13652
|
f.values().next().value
|
|
13652
13653
|
);
|
|
13653
13654
|
l = null, d = null, p = 0, c = 0, u = 0, a && clearTimeout(a), a = null, i = null, o = null, n.stop(), t({ assistantResponseInProgress: !1 });
|
|
13654
|
-
},
|
|
13655
|
+
}, E = () => {
|
|
13655
13656
|
a && clearTimeout(a);
|
|
13656
13657
|
const _ = Math.max(0, u - performance.now());
|
|
13657
13658
|
a = setTimeout(() => {
|
|
@@ -13708,7 +13709,7 @@ const Kb = (t) => {
|
|
|
13708
13709
|
case "input_audio_buffer.speech_started":
|
|
13709
13710
|
{
|
|
13710
13711
|
const x = l, V = d, G = p;
|
|
13711
|
-
|
|
13712
|
+
y();
|
|
13712
13713
|
const j = e();
|
|
13713
13714
|
x && V && j.socket?.connected && j.session && Fs(j.socket, "voice.playback.interrupt", {
|
|
13714
13715
|
voiceSessionId: j.session.voiceSessionId,
|
|
@@ -13802,12 +13803,12 @@ const Kb = (t) => {
|
|
|
13802
13803
|
const x = Pn(A);
|
|
13803
13804
|
if (x && f.has(x) || l && x && x !== l)
|
|
13804
13805
|
break;
|
|
13805
|
-
i?.close(), i = null, l = null, c = 0,
|
|
13806
|
+
i?.close(), i = null, l = null, c = 0, E();
|
|
13806
13807
|
break;
|
|
13807
13808
|
}
|
|
13808
13809
|
case "error": {
|
|
13809
13810
|
const x = Kb(A);
|
|
13810
|
-
|
|
13811
|
+
y(), t((V) => ({
|
|
13811
13812
|
status: V.microphoneEnabled ? "listening" : "idle",
|
|
13812
13813
|
errorMessage: x,
|
|
13813
13814
|
errorCode: x ? null : "session_failed"
|
|
@@ -13819,14 +13820,14 @@ const Kb = (t) => {
|
|
|
13819
13820
|
re.warn(`Failed to handle voice event ${_}`, x), P("session_failed", "invalid_event");
|
|
13820
13821
|
}
|
|
13821
13822
|
}, T = (_) => {
|
|
13822
|
-
|
|
13823
|
+
y(), _.inputAudioNode?.port.postMessage({ type: "enabled", value: !1 }), _.inputAudioNode && (_.inputAudioNode.port.onmessage = null, _.inputAudioNode.disconnect()), _.inputAudioContext?.close().catch(() => {
|
|
13823
13824
|
}), _.socket?.removeAllListeners(), _.socket?.disconnect(), Oa(_.localStream);
|
|
13824
13825
|
}, M = (_, A, v, x) => {
|
|
13825
13826
|
x?.port.postMessage({ type: "enabled", value: !1 }), x && (x.port.onmessage = null, x.disconnect()), v?.close().catch(() => {
|
|
13826
13827
|
}), _?.removeAllListeners(), _?.disconnect(), Oa(A);
|
|
13827
13828
|
}, P = async (_, A) => {
|
|
13828
13829
|
const v = e();
|
|
13829
|
-
if (m = !1, g = !1, b += 1,
|
|
13830
|
+
if (m = !1, g = !1, b += 1, C = !1, T(v), t({
|
|
13830
13831
|
...bn,
|
|
13831
13832
|
status: "error",
|
|
13832
13833
|
errorCode: _,
|
|
@@ -13965,7 +13966,7 @@ const Kb = (t) => {
|
|
|
13965
13966
|
}
|
|
13966
13967
|
}, X = async (_, A) => {
|
|
13967
13968
|
const v = e();
|
|
13968
|
-
if (v.socket !== _ || !v.config || !v.api || !m ||
|
|
13969
|
+
if (v.socket !== _ || !v.config || !v.api || !m || C)
|
|
13969
13970
|
return;
|
|
13970
13971
|
const x = async (ie, de) => {
|
|
13971
13972
|
if (m = !1, g = !1, b += 1, t({
|
|
@@ -13995,7 +13996,7 @@ const Kb = (t) => {
|
|
|
13995
13996
|
await x("connection_closed", "socket_closed");
|
|
13996
13997
|
return;
|
|
13997
13998
|
}
|
|
13998
|
-
|
|
13999
|
+
C = !0;
|
|
13999
14000
|
const { config: V, api: G, session: j } = v, te = ++b, oe = v.generation + 1;
|
|
14000
14001
|
if (t({
|
|
14001
14002
|
...bn,
|
|
@@ -14015,13 +14016,13 @@ const Kb = (t) => {
|
|
|
14015
14016
|
re.warn("Failed to close interrupted voice session", ie);
|
|
14016
14017
|
}
|
|
14017
14018
|
if (!m || b !== te) {
|
|
14018
|
-
|
|
14019
|
+
C = !1;
|
|
14019
14020
|
return;
|
|
14020
14021
|
}
|
|
14021
14022
|
if (await new Promise(
|
|
14022
14023
|
(ie) => setTimeout(ie, Xb)
|
|
14023
14024
|
), !m || b !== te) {
|
|
14024
|
-
|
|
14025
|
+
C = !1;
|
|
14025
14026
|
return;
|
|
14026
14027
|
}
|
|
14027
14028
|
try {
|
|
@@ -14030,7 +14031,7 @@ const Kb = (t) => {
|
|
|
14030
14031
|
});
|
|
14031
14032
|
} catch {
|
|
14032
14033
|
} finally {
|
|
14033
|
-
|
|
14034
|
+
C = !1;
|
|
14034
14035
|
}
|
|
14035
14036
|
}, N = async (_, A, v = {}) => {
|
|
14036
14037
|
const {
|
|
@@ -14117,14 +14118,14 @@ const Kb = (t) => {
|
|
|
14117
14118
|
() => Ab(_, A, {
|
|
14118
14119
|
audioPath: j.path,
|
|
14119
14120
|
method: "POST",
|
|
14120
|
-
mimeType:
|
|
14121
|
+
mimeType: Cl
|
|
14121
14122
|
}),
|
|
14122
14123
|
ie,
|
|
14123
14124
|
j.text
|
|
14124
14125
|
)) throw new I();
|
|
14125
14126
|
Le();
|
|
14126
14127
|
}
|
|
14127
|
-
|
|
14128
|
+
S(te, !1), t({ assistantResponseInProgress: !1 });
|
|
14128
14129
|
} catch (ge) {
|
|
14129
14130
|
M(
|
|
14130
14131
|
pe,
|
|
@@ -14170,7 +14171,7 @@ const Kb = (t) => {
|
|
|
14170
14171
|
const v = e();
|
|
14171
14172
|
if (v.status !== "connecting") {
|
|
14172
14173
|
if (v.socket?.connected && v.session) {
|
|
14173
|
-
m = !0,
|
|
14174
|
+
m = !0, S(!0);
|
|
14174
14175
|
return;
|
|
14175
14176
|
}
|
|
14176
14177
|
(v.socket || v.session) && await v.actions.endVoiceChat("restart_voice_session"), m = !0, g = !0, await N(_, A);
|
|
@@ -14268,10 +14269,10 @@ const Kb = (t) => {
|
|
|
14268
14269
|
}));
|
|
14269
14270
|
}
|
|
14270
14271
|
},
|
|
14271
|
-
stopListening: () =>
|
|
14272
|
+
stopListening: () => S(!1),
|
|
14272
14273
|
endVoiceChat: async (_ = "user_hangup") => {
|
|
14273
14274
|
const A = e();
|
|
14274
|
-
m = !1, g = !1, b += 1,
|
|
14275
|
+
m = !1, g = !1, b += 1, C = !1, A.localStream?.getAudioTracks().forEach((G) => G.enabled = !1), A.inputAudioNode?.port.postMessage({
|
|
14275
14276
|
type: "enabled",
|
|
14276
14277
|
value: !1
|
|
14277
14278
|
});
|
|
@@ -14302,7 +14303,7 @@ const Kb = (t) => {
|
|
|
14302
14303
|
}
|
|
14303
14304
|
}
|
|
14304
14305
|
};
|
|
14305
|
-
}),
|
|
14306
|
+
}), kC = () => vs((t) => t.actions);
|
|
14306
14307
|
class Xc extends Error {
|
|
14307
14308
|
constructor(e, n) {
|
|
14308
14309
|
super(n), this.status = e;
|
|
@@ -14600,7 +14601,7 @@ const Eo = async (t, e, n, r) => {
|
|
|
14600
14601
|
moveBottom: "Sposta in basso",
|
|
14601
14602
|
collapseQuestion: "Nascondi domanda",
|
|
14602
14603
|
moreMessages: "Altri {{count}} messaggi"
|
|
14603
|
-
},
|
|
14604
|
+
}, y1 = {
|
|
14604
14605
|
region: "Mensaje de Lola",
|
|
14605
14606
|
dismiss: "Cerrar mensaje",
|
|
14606
14607
|
choices: "Elige una respuesta",
|
|
@@ -14617,7 +14618,7 @@ const Eo = async (t, e, n, r) => {
|
|
|
14617
14618
|
moveBottom: "Mover abajo",
|
|
14618
14619
|
collapseQuestion: "Ocultar pregunta",
|
|
14619
14620
|
moreMessages: "{{count}} mensajes más"
|
|
14620
|
-
},
|
|
14621
|
+
}, C1 = {
|
|
14621
14622
|
region: "Nachricht von Lola",
|
|
14622
14623
|
dismiss: "Nachricht schließen",
|
|
14623
14624
|
choices: "Wähle eine Antwort",
|
|
@@ -14758,8 +14759,8 @@ const Eo = async (t, e, n, r) => {
|
|
|
14758
14759
|
ru: m1,
|
|
14759
14760
|
uz: g1,
|
|
14760
14761
|
it: b1,
|
|
14761
|
-
es:
|
|
14762
|
-
de:
|
|
14762
|
+
es: y1,
|
|
14763
|
+
de: C1,
|
|
14763
14764
|
fr: I1,
|
|
14764
14765
|
pl: v1,
|
|
14765
14766
|
pt: A1,
|
|
@@ -16448,7 +16449,7 @@ const za = (t) => ({
|
|
|
16448
16449
|
config: e,
|
|
16449
16450
|
api: n
|
|
16450
16451
|
}) => {
|
|
16451
|
-
const { t: r } = xn(), [s, i] = he(!1), o = q(!1), [a, u] = he(null), [c, l] = he(!1), [d, p] = he(!1), [h, f] = he(!1), [m, g] = he(null), b = Em(), [
|
|
16452
|
+
const { t: r } = xn(), [s, i] = he(!1), o = q(!1), [a, u] = he(null), [c, l] = he(!1), [d, p] = he(!1), [h, f] = he(!1), [m, g] = he(null), b = Em(), [C, I] = he([]), [S, y] = he("idle"), [E, k] = he(
|
|
16452
16453
|
null
|
|
16453
16454
|
), [O, T] = he(null), [M, P] = he(
|
|
16454
16455
|
null
|
|
@@ -16473,7 +16474,7 @@ const za = (t) => ({
|
|
|
16473
16474
|
U?.leaseTimer !== null && U?.leaseTimer !== void 0 && window.clearTimeout(U.leaseTimer), v.current = null, x.current = [], V.current.clear(), W.current = 0, N.current.clear();
|
|
16474
16475
|
for (const Q of _.current.values())
|
|
16475
16476
|
Q.close();
|
|
16476
|
-
return _.current.clear(), I([]), z(null),
|
|
16477
|
+
return _.current.clear(), I([]), z(null), y("idle"), k(null), T(null), P(null), l(!1), p(!1), f(!1), g(null), Yt(0), ve(!e.hideOpenButton), $.replacePrincipal(D), n.scenarioInteractionRuntime.transitionSurface("CLOSED", {
|
|
16477
16478
|
actor: "SYSTEM",
|
|
16478
16479
|
reason: "SYSTEM_RESTORE"
|
|
16479
16480
|
}), o.current = !1, i(!1), u(null), !0;
|
|
@@ -16614,12 +16615,12 @@ const za = (t) => ({
|
|
|
16614
16615
|
B.challengeId
|
|
16615
16616
|
).catch(
|
|
16616
16617
|
(J) => re.warn("Telegram link challenge cancellation failed", J)
|
|
16617
|
-
), z(null)),
|
|
16618
|
+
), z(null)), E === U && (k(null), y("idle"), P(null)), Ze(U);
|
|
16618
16619
|
},
|
|
16619
|
-
[n, e,
|
|
16620
|
+
[n, e, E, Ze, B]
|
|
16620
16621
|
);
|
|
16621
16622
|
Y(() => {
|
|
16622
|
-
const D =
|
|
16623
|
+
const D = C.flatMap((Z) => {
|
|
16623
16624
|
const ae = Z.context.expiresAt ? Date.parse(Z.context.expiresAt) : Number.NaN;
|
|
16624
16625
|
return Number.isFinite(ae) ? [{ expiresAt: ae, target: Z }] : [];
|
|
16625
16626
|
}).sort((Z, ae) => Z.expiresAt - ae.expiresAt);
|
|
@@ -16648,7 +16649,7 @@ const za = (t) => ({
|
|
|
16648
16649
|
return J(), () => {
|
|
16649
16650
|
Q !== void 0 && window.clearTimeout(Q);
|
|
16650
16651
|
};
|
|
16651
|
-
}, [
|
|
16652
|
+
}, [C, tt]), Y(() => ($.setDiagnostics((D, U) => {
|
|
16652
16653
|
if (re.debug(`[CompactPreview] ${D}`, U), D === "expired" && U?.kind === "CTA" && typeof U.subjectId == "string") {
|
|
16653
16654
|
const Q = x.current.find(
|
|
16654
16655
|
({ context: J }) => J.commandId === U.subjectId
|
|
@@ -16670,7 +16671,7 @@ const za = (t) => ({
|
|
|
16670
16671
|
throw new Error("Another Telegram connection is awaiting confirmation");
|
|
16671
16672
|
if (!B) {
|
|
16672
16673
|
const ae = window.open("about:blank", "_blank");
|
|
16673
|
-
ae && (ae.opener = null, _.current.set(D.commandId, ae)), k(D.commandId),
|
|
16674
|
+
ae && (ae.opener = null, _.current.set(D.commandId, ae)), k(D.commandId), y("creating"), P(null);
|
|
16674
16675
|
try {
|
|
16675
16676
|
const be = await u1(
|
|
16676
16677
|
e,
|
|
@@ -16683,7 +16684,7 @@ const za = (t) => ({
|
|
|
16683
16684
|
botUsername: be.botUsername,
|
|
16684
16685
|
deepLink: be.deepLink,
|
|
16685
16686
|
manualCommand: be.manualCommand
|
|
16686
|
-
}),
|
|
16687
|
+
}), y("awaiting_confirmation"), P(
|
|
16687
16688
|
ae ? "cta.telegramPopupOpened" : "cta.telegramPopupBlocked"
|
|
16688
16689
|
), "AWAITING_CONFIRMATION") : (ae?.close(), _.current.delete(D.commandId), Ba(e, n, be.id).catch(
|
|
16689
16690
|
(Me) => re.warn(
|
|
@@ -16694,10 +16695,10 @@ const za = (t) => ({
|
|
|
16694
16695
|
} catch (be) {
|
|
16695
16696
|
if (ae?.close(), _.current.delete(D.commandId), !J())
|
|
16696
16697
|
return "AWAITING_CONFIRMATION";
|
|
16697
|
-
throw
|
|
16698
|
+
throw y("idle"), P("cta.telegramLinkFailed"), be;
|
|
16698
16699
|
}
|
|
16699
16700
|
}
|
|
16700
|
-
|
|
16701
|
+
y("confirming"), P(null);
|
|
16701
16702
|
const Z = await c1(
|
|
16702
16703
|
e,
|
|
16703
16704
|
n,
|
|
@@ -16706,7 +16707,7 @@ const za = (t) => ({
|
|
|
16706
16707
|
if (!J())
|
|
16707
16708
|
return "AWAITING_CONFIRMATION";
|
|
16708
16709
|
if (Z.linked || Z.challengeStatus === "CONFIRMED")
|
|
16709
|
-
return z(null),
|
|
16710
|
+
return z(null), y("idle"), k(null), N.current.delete(D.commandId), _.current.delete(D.commandId), Ze(D.commandId), "COMPLETED";
|
|
16710
16711
|
if (Z.challengeStatus === "PENDING_CONFIRMATION") {
|
|
16711
16712
|
const ae = await l1(
|
|
16712
16713
|
e,
|
|
@@ -16719,9 +16720,9 @@ const za = (t) => ({
|
|
|
16719
16720
|
throw new Error(
|
|
16720
16721
|
"Telegram link confirmation did not activate the link"
|
|
16721
16722
|
);
|
|
16722
|
-
return z(null),
|
|
16723
|
+
return z(null), y("idle"), k(null), N.current.delete(D.commandId), _.current.delete(D.commandId), Ze(D.commandId), "COMPLETED";
|
|
16723
16724
|
}
|
|
16724
|
-
return Z.challengeStatus === "EXPIRED" || Z.challengeStatus === "REVOKED" ? (W.current += 1, z(null),
|
|
16725
|
+
return Z.challengeStatus === "EXPIRED" || Z.challengeStatus === "REVOKED" ? (W.current += 1, z(null), y("idle"), P("cta.telegramLinkExpired"), "AWAITING_CONFIRMATION") : (y("awaiting_confirmation"), P("cta.telegramPressStart"), "AWAITING_CONFIRMATION");
|
|
16725
16726
|
},
|
|
16726
16727
|
[n, e, Ze, B]
|
|
16727
16728
|
), kt = le(
|
|
@@ -16739,22 +16740,22 @@ const za = (t) => ({
|
|
|
16739
16740
|
threadId: be,
|
|
16740
16741
|
afterMessageId: Qe ? Z.id : xe.at(-1)?.id ?? null
|
|
16741
16742
|
}, bt = x.current.findIndex(
|
|
16742
|
-
({ context:
|
|
16743
|
+
({ context: yt }) => yt.commandId === Me.commandId
|
|
16743
16744
|
), nt = bt === -1 ? [...x.current, Tt] : x.current.map(
|
|
16744
|
-
(
|
|
16745
|
+
(yt, Ke) => Ke === bt ? Tt : yt
|
|
16745
16746
|
);
|
|
16746
16747
|
let Ae;
|
|
16747
16748
|
if (nt.length > qa) {
|
|
16748
|
-
const
|
|
16749
|
+
const yt = new Set(
|
|
16749
16750
|
[
|
|
16750
16751
|
$.getSnapshot().active,
|
|
16751
16752
|
...$.getSnapshot().queue
|
|
16752
16753
|
].filter((Jt) => Jt?.kind === "CTA").map((Jt) => Jt.subjectId)
|
|
16753
16754
|
), Ke = /* @__PURE__ */ new Set([
|
|
16754
16755
|
v.current?.commandId,
|
|
16755
|
-
|
|
16756
|
+
E,
|
|
16756
16757
|
B?.commandId,
|
|
16757
|
-
...
|
|
16758
|
+
...yt
|
|
16758
16759
|
]), jr = nt.findIndex(
|
|
16759
16760
|
({ context: Jt }) => Jt.commandId !== Me.commandId && !Ke.has(Jt.commandId)
|
|
16760
16761
|
);
|
|
@@ -16768,7 +16769,7 @@ const za = (t) => ({
|
|
|
16768
16769
|
[
|
|
16769
16770
|
n.scenarioInteractionRuntime,
|
|
16770
16771
|
$,
|
|
16771
|
-
|
|
16772
|
+
E,
|
|
16772
16773
|
De,
|
|
16773
16774
|
B?.commandId
|
|
16774
16775
|
]
|
|
@@ -16825,9 +16826,9 @@ const za = (t) => ({
|
|
|
16825
16826
|
ge,
|
|
16826
16827
|
ve
|
|
16827
16828
|
]);
|
|
16828
|
-
const Hr = n.scenarioInteractionRuntime.getPrincipalSessionId(), Xr =
|
|
16829
|
+
const Hr = n.scenarioInteractionRuntime.getPrincipalSessionId(), Xr = C.some(
|
|
16829
16830
|
({ principalSessionId: D }) => D === Hr
|
|
16830
|
-
), je =
|
|
16831
|
+
), je = C.find(
|
|
16831
16832
|
(D) => D.principalSessionId === Hr && D.threadId === b
|
|
16832
16833
|
) ?? null, Zr = je?.context ?? null, Tn = je?.afterMessageId ?? null, mt = le(
|
|
16833
16834
|
(D, U, Q) => {
|
|
@@ -16851,7 +16852,7 @@ const za = (t) => ({
|
|
|
16851
16852
|
[n.scenarioInteractionRuntime]
|
|
16852
16853
|
), Ue = le(
|
|
16853
16854
|
async (D, U) => {
|
|
16854
|
-
const Q = n.scenarioInteractionRuntime.getPrincipalSessionId(), J = D ?
|
|
16855
|
+
const Q = n.scenarioInteractionRuntime.getPrincipalSessionId(), J = D ? C.find(({ context: xe }) => xe.commandId === D) : je;
|
|
16855
16856
|
if (!J || J.principalSessionId !== Q || !D && J.threadId !== b)
|
|
16856
16857
|
return De(Q), "TERMINAL_FAILURE";
|
|
16857
16858
|
if (v.current) return "TERMINAL_FAILURE";
|
|
@@ -16872,7 +16873,7 @@ const za = (t) => ({
|
|
|
16872
16873
|
Z.commandId
|
|
16873
16874
|
)?.close(), _.current.delete(Z.commandId), k(
|
|
16874
16875
|
(bt) => bt === Z.commandId ? null : bt
|
|
16875
|
-
),
|
|
16876
|
+
), y("idle"), P(null)), Ze(Z.commandId), xe(vi);
|
|
16876
16877
|
}, L1);
|
|
16877
16878
|
}
|
|
16878
16879
|
);
|
|
@@ -16888,7 +16889,7 @@ const za = (t) => ({
|
|
|
16888
16889
|
]);
|
|
16889
16890
|
return xe === vi || ae !== j.current ? "TERMINAL_FAILURE" : x.current.some(
|
|
16890
16891
|
({ context: Tt }) => Tt.commandId === Z.commandId
|
|
16891
|
-
) ? xe === "COMPLETED" || xe === "TERMINAL_FAILURE" ? (Ze(Z.commandId),
|
|
16892
|
+
) ? xe === "COMPLETED" || xe === "TERMINAL_FAILURE" ? (Ze(Z.commandId), E === Z.commandId && (k(null), y("idle"), P(null)), xe) : xe === "RETRYABLE_FAILURE" ? (y(B ? "awaiting_confirmation" : "idle"), P(
|
|
16892
16893
|
Z.action === "connect_telegram" ? "cta.telegramConnectFailed" : null
|
|
16893
16894
|
), "RETRYABLE_FAILURE") : "AWAITING_CONFIRMATION" : xe;
|
|
16894
16895
|
} catch (xe) {
|
|
@@ -16902,8 +16903,8 @@ const za = (t) => ({
|
|
|
16902
16903
|
[
|
|
16903
16904
|
n.commandRuntime,
|
|
16904
16905
|
n.scenarioInteractionRuntime,
|
|
16905
|
-
|
|
16906
|
-
|
|
16906
|
+
C,
|
|
16907
|
+
E,
|
|
16907
16908
|
b,
|
|
16908
16909
|
je,
|
|
16909
16910
|
Ze,
|
|
@@ -16913,7 +16914,7 @@ const za = (t) => ({
|
|
|
16913
16914
|
]
|
|
16914
16915
|
), at = le(
|
|
16915
16916
|
(D, U) => {
|
|
16916
|
-
const Q = n.scenarioInteractionRuntime.getPrincipalSessionId(), J = D ?
|
|
16917
|
+
const Q = n.scenarioInteractionRuntime.getPrincipalSessionId(), J = D ? C.find(({ context: Z }) => Z.commandId === D) : je;
|
|
16917
16918
|
return !J || J.principalSessionId !== Q || !D && J.threadId !== b ? (De(Q), !1) : v.current?.commandId === J.context.commandId ? !1 : (mt(
|
|
16918
16919
|
J,
|
|
16919
16920
|
"CTA_DISMISSED",
|
|
@@ -16922,7 +16923,7 @@ const za = (t) => ({
|
|
|
16922
16923
|
},
|
|
16923
16924
|
[
|
|
16924
16925
|
n.scenarioInteractionRuntime,
|
|
16925
|
-
|
|
16926
|
+
C,
|
|
16926
16927
|
tt,
|
|
16927
16928
|
b,
|
|
16928
16929
|
je,
|
|
@@ -16931,21 +16932,21 @@ const za = (t) => ({
|
|
|
16931
16932
|
]
|
|
16932
16933
|
), tr = le(
|
|
16933
16934
|
(D) => {
|
|
16934
|
-
const U =
|
|
16935
|
+
const U = C.find(
|
|
16935
16936
|
({ context: Z }) => Z.commandId === D
|
|
16936
|
-
), Q =
|
|
16937
|
+
), Q = E === D, J = Q ? S === "creating" ? r("cta.preparingLink") : S === "awaiting_confirmation" ? r("cta.confirmTelegram") : S === "confirming" ? r("cta.confirming") : U?.context.label ?? null : U?.context.label ?? null;
|
|
16937
16938
|
return {
|
|
16938
|
-
busy: O === D || Q && (
|
|
16939
|
+
busy: O === D || Q && (S === "creating" || S === "confirming"),
|
|
16939
16940
|
buttonLabel: J,
|
|
16940
16941
|
feedback: Q && M ? r(M) : null
|
|
16941
16942
|
};
|
|
16942
16943
|
},
|
|
16943
16944
|
[
|
|
16944
|
-
|
|
16945
|
+
C,
|
|
16945
16946
|
M,
|
|
16946
16947
|
O,
|
|
16947
|
-
E,
|
|
16948
16948
|
S,
|
|
16949
|
+
E,
|
|
16949
16950
|
r
|
|
16950
16951
|
]
|
|
16951
16952
|
), xt = je ? tr(je.context.commandId) : { busy: !1, buttonLabel: null, feedback: null }, gt = {
|
|
@@ -17102,25 +17103,25 @@ function G1(t, e, n, r, s) {
|
|
|
17102
17103
|
), l = Math.max(1, u - o), d = Math.max(1, Math.min(e.height || 220, l)), p = r === "RIGHT" ? t.x + Fe - c : t.x, h = Vt(p, i, a - c), f = Math.max(0, t.y - hs - o), m = Math.max(
|
|
17103
17104
|
0,
|
|
17104
17105
|
u - (t.y + Fe + hs)
|
|
17105
|
-
), g = (I,
|
|
17106
|
-
const
|
|
17106
|
+
), g = (I, S) => {
|
|
17107
|
+
const y = I === "above" ? t.y - hs - d : t.y + Fe + hs, E = Vt(y, o, u - d), k = { x: h, y: E, width: c, height: d }, O = Math.max(0, d - S);
|
|
17107
17108
|
return {
|
|
17108
17109
|
placement: I,
|
|
17109
|
-
y:
|
|
17110
|
+
y: E,
|
|
17110
17111
|
avoidanceFailed: !!(s && W1(k, s)),
|
|
17111
17112
|
score: O * c * 2 + (s ? U1(k, s) : 0)
|
|
17112
17113
|
};
|
|
17113
17114
|
}, b = f >= m ? [g("above", f), g("below", m)] : [
|
|
17114
17115
|
g("below", m),
|
|
17115
17116
|
g("above", f)
|
|
17116
|
-
],
|
|
17117
|
+
], C = b[0].avoidanceFailed !== b[1].avoidanceFailed ? b.find(({ avoidanceFailed: I }) => !I) : b[1].score < b[0].score ? b[1] : b[0];
|
|
17117
17118
|
return {
|
|
17118
17119
|
x: h,
|
|
17119
|
-
y:
|
|
17120
|
+
y: C.y,
|
|
17120
17121
|
width: c,
|
|
17121
17122
|
maxHeight: l,
|
|
17122
|
-
placement:
|
|
17123
|
-
avoidanceFailed:
|
|
17123
|
+
placement: C.placement,
|
|
17124
|
+
avoidanceFailed: C.avoidanceFailed
|
|
17124
17125
|
};
|
|
17125
17126
|
}
|
|
17126
17127
|
function q1(t, e, n, r) {
|
|
@@ -17275,11 +17276,11 @@ function Q1({
|
|
|
17275
17276
|
onCompactPreviewCollapse: m,
|
|
17276
17277
|
children: g
|
|
17277
17278
|
}) {
|
|
17278
|
-
const { direction: b, locale:
|
|
17279
|
+
const { direction: b, locale: C, t: I } = xn(), [S] = he(() => wi(h)), [y, E] = he(S.launcher), [k, O] = he(S.panel), [T, M] = he(null), [P, B] = he(!1), [z, W] = he(0), [X, N] = he({
|
|
17279
17280
|
width: 320,
|
|
17280
17281
|
height: 220
|
|
17281
|
-
}), [_, A] = he(null), [v, x] = he($1), V = q({ launcher:
|
|
17282
|
-
launcher:
|
|
17282
|
+
}), [_, A] = he(null), [v, x] = he($1), V = q({ launcher: y, panel: k }), G = q({
|
|
17283
|
+
launcher: S.launcherDock,
|
|
17283
17284
|
panel: k
|
|
17284
17285
|
}), j = q(!1), te = q(null), oe = q(null), ie = q(null), de = q(null), pe = q(null), ve = q(null), $ = q(!1), me = q(null), De = q(!1), Le = q(null), ge = q(null), ue = q(null), L = q(null), Je = q(null), Et = q(null), ln = q(null), Yt = q(r), qe = q(t), dn = q(!1), Ze = q(!1), tt = q(null), Ut = q(null), kt = q(null), Hr = q({
|
|
17285
17286
|
drag: !1,
|
|
@@ -17295,18 +17296,18 @@ function Q1({
|
|
|
17295
17296
|
(w, F, ee = !1) => {
|
|
17296
17297
|
const ne = Hr.current;
|
|
17297
17298
|
ne[w] = F;
|
|
17298
|
-
const ce = ne.drag || ne.focusCollision,
|
|
17299
|
-
if (
|
|
17299
|
+
const ce = ne.drag || ne.focusCollision, ye = Je.current;
|
|
17300
|
+
if (ye)
|
|
17300
17301
|
if (ce) {
|
|
17301
|
-
const we =
|
|
17302
|
-
if (ke instanceof HTMLElement &&
|
|
17302
|
+
const we = ye.getRootNode(), ke = we instanceof ShadowRoot ? we.activeElement : document.activeElement;
|
|
17303
|
+
if (ke instanceof HTMLElement && ye.contains(ke)) {
|
|
17303
17304
|
Ze.current = !1;
|
|
17304
17305
|
const Rt = L.current;
|
|
17305
17306
|
Rt ? Rt.focus({ preventScroll: !0 }) : ke.blur();
|
|
17306
17307
|
}
|
|
17307
|
-
|
|
17308
|
+
ye.dataset.suspended = "true", ye.setAttribute("aria-hidden", "true"), ye.inert = !0;
|
|
17308
17309
|
} else
|
|
17309
|
-
|
|
17310
|
+
ye.removeAttribute("data-suspended"), ye.removeAttribute("aria-hidden"), ye.inert = !1;
|
|
17310
17311
|
Xr.current !== ce && (Xr.current = ce, kt.current !== null && (window.clearTimeout(kt.current), kt.current = null), ee ? kt.current = window.setTimeout(() => {
|
|
17311
17312
|
kt.current = null, Tn.current?.(ce);
|
|
17312
17313
|
}, 0) : Tn.current?.(ce));
|
|
@@ -17324,9 +17325,9 @@ function Q1({
|
|
|
17324
17325
|
const w = ge.current;
|
|
17325
17326
|
if (!w) return;
|
|
17326
17327
|
const F = () => {
|
|
17327
|
-
const ee =
|
|
17328
|
+
const ee = ey(w);
|
|
17328
17329
|
x(
|
|
17329
|
-
(ne) =>
|
|
17330
|
+
(ne) => ty(ne, ee) ? ne : ee
|
|
17330
17331
|
);
|
|
17331
17332
|
};
|
|
17332
17333
|
return F(), window.addEventListener("resize", F), window.visualViewport?.addEventListener("resize", F), window.visualViewport?.addEventListener("scroll", F), () => {
|
|
@@ -17334,7 +17335,7 @@ function Q1({
|
|
|
17334
17335
|
};
|
|
17335
17336
|
}, []);
|
|
17336
17337
|
const tr = le((w) => {
|
|
17337
|
-
V.current = { ...V.current, launcher: w },
|
|
17338
|
+
V.current = { ...V.current, launcher: w }, E(w);
|
|
17338
17339
|
}, []), xt = le(
|
|
17339
17340
|
(w, F = !0) => {
|
|
17340
17341
|
const ee = Sr(w, Ue());
|
|
@@ -17371,7 +17372,7 @@ function Q1({
|
|
|
17371
17372
|
}, V.current = {
|
|
17372
17373
|
launcher: F.launcher,
|
|
17373
17374
|
panel: F.panel
|
|
17374
|
-
},
|
|
17375
|
+
}, E(F.launcher), O(F.panel);
|
|
17375
17376
|
}, []), Y(() => {
|
|
17376
17377
|
if (je.current === h) return;
|
|
17377
17378
|
const w = window.requestAnimationFrame(() => {
|
|
@@ -17383,7 +17384,7 @@ function Q1({
|
|
|
17383
17384
|
}, V.current = {
|
|
17384
17385
|
launcher: F.launcher,
|
|
17385
17386
|
panel: F.panel
|
|
17386
|
-
},
|
|
17387
|
+
}, E(F.launcher), O(F.panel);
|
|
17387
17388
|
});
|
|
17388
17389
|
return () => window.cancelAnimationFrame(w);
|
|
17389
17390
|
}, [h]);
|
|
@@ -17493,16 +17494,16 @@ function Q1({
|
|
|
17493
17494
|
j.current && (de.current !== null && window.clearTimeout(de.current), hn > 0 ? de.current = window.setTimeout(() => {
|
|
17494
17495
|
de.current = null, at("drag", !1);
|
|
17495
17496
|
}, hn) : Ro = !0), Ut.current !== null && window.clearTimeout(Ut.current), Ut.current = window.setTimeout(() => {
|
|
17496
|
-
Ut.current = null,
|
|
17497
|
+
Ut.current = null, E(Rn), M(null), Ro && at("drag", !1);
|
|
17497
17498
|
}, 0);
|
|
17498
17499
|
} else ke ? gt(V.current.panel) : gt(T.startPanel, !1);
|
|
17499
17500
|
T.kind === "launcher" && j.current && ($.current = !0, me.current !== null && window.clearTimeout(me.current), me.current = window.setTimeout(() => {
|
|
17500
17501
|
$.current = !1, me.current = null;
|
|
17501
17502
|
}, 0)), ke && D(), T.kind !== "launcher" && M(null), document.body.style.cursor = w, document.body.style.userSelect = F, ge.current?.classList.remove("is-interacting");
|
|
17502
17503
|
}
|
|
17503
|
-
}, ce = (we) => ne(we, !0),
|
|
17504
|
-
return document.addEventListener("pointermove", ee), document.addEventListener("pointerup", ce), document.addEventListener("pointercancel",
|
|
17505
|
-
document.body.style.cursor = w, document.body.style.userSelect = F, document.removeEventListener("pointermove", ee), document.removeEventListener("pointerup", ce), document.removeEventListener("pointercancel",
|
|
17504
|
+
}, ce = (we) => ne(we, !0), ye = (we) => ne(we, !1);
|
|
17505
|
+
return document.addEventListener("pointermove", ee), document.addEventListener("pointerup", ce), document.addEventListener("pointercancel", ye), document.addEventListener("lostpointercapture", ye), () => {
|
|
17506
|
+
document.body.style.cursor = w, document.body.style.userSelect = F, document.removeEventListener("pointermove", ee), document.removeEventListener("pointerup", ce), document.removeEventListener("pointercancel", ye), document.removeEventListener("lostpointercapture", ye);
|
|
17506
17507
|
};
|
|
17507
17508
|
}, [
|
|
17508
17509
|
U,
|
|
@@ -17518,11 +17519,11 @@ function Q1({
|
|
|
17518
17519
|
const F = w.getBoundingClientRect(), ee = ln.current, ne = Yt.current !== r;
|
|
17519
17520
|
if (ln.current = F, Yt.current = r, !t || !n || !ne || !ee || typeof w.animate != "function" || window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)
|
|
17520
17521
|
return;
|
|
17521
|
-
const ce = ee.width / Math.max(1, F.width),
|
|
17522
|
+
const ce = ee.width / Math.max(1, F.width), ye = ee.height / Math.max(1, F.height), we = ee.left - F.left, ke = ee.top - F.top;
|
|
17522
17523
|
w.animate(
|
|
17523
17524
|
[
|
|
17524
17525
|
{
|
|
17525
|
-
transform: `translate3d(${we}px, ${ke}px, 0) scale(${ce}, ${
|
|
17526
|
+
transform: `translate3d(${we}px, ${ke}px, 0) scale(${ce}, ${ye})`,
|
|
17526
17527
|
borderRadius: r ? "24px" : "0px",
|
|
17527
17528
|
opacity: 0.92
|
|
17528
17529
|
},
|
|
@@ -17558,9 +17559,9 @@ function Q1({
|
|
|
17558
17559
|
const F = Je.current?.firstElementChild;
|
|
17559
17560
|
if (!mt || !(F instanceof HTMLElement)) return;
|
|
17560
17561
|
const ee = () => {
|
|
17561
|
-
const ce = F.getBoundingClientRect(),
|
|
17562
|
-
|
|
17563
|
-
(ke) => Math.abs(ke.width -
|
|
17562
|
+
const ce = F.getBoundingClientRect(), ye = F.offsetWidth || ce.width, we = F.offsetHeight || ce.height;
|
|
17563
|
+
ye <= 0 || we <= 0 || N(
|
|
17564
|
+
(ke) => Math.abs(ke.width - ye) < 1 && Math.abs(ke.height - we) < 1 ? ke : { width: ye, height: we }
|
|
17564
17565
|
);
|
|
17565
17566
|
};
|
|
17566
17567
|
if (ee(), typeof ResizeObserver != "function") return;
|
|
@@ -17576,14 +17577,14 @@ function Q1({
|
|
|
17576
17577
|
A((ke) => ke === null ? ke : null);
|
|
17577
17578
|
return;
|
|
17578
17579
|
}
|
|
17579
|
-
const
|
|
17580
|
-
x:
|
|
17581
|
-
y:
|
|
17582
|
-
width:
|
|
17583
|
-
height:
|
|
17580
|
+
const ye = ce.getBoundingClientRect(), we = ye.width > 0 && ye.height > 0 ? {
|
|
17581
|
+
x: ye.left,
|
|
17582
|
+
y: ye.top,
|
|
17583
|
+
width: ye.width,
|
|
17584
|
+
height: ye.height
|
|
17584
17585
|
} : null;
|
|
17585
17586
|
A(
|
|
17586
|
-
(ke) =>
|
|
17587
|
+
(ke) => ny(ke, we) ? ke : we
|
|
17587
17588
|
);
|
|
17588
17589
|
}, F = () => {
|
|
17589
17590
|
tt.current === null && (tt.current = window.requestAnimationFrame(
|
|
@@ -17623,11 +17624,11 @@ function Q1({
|
|
|
17623
17624
|
typeof ee.setPointerCapture == "function" && ee.setPointerCapture(w.pointerId);
|
|
17624
17625
|
let ne = V.current.launcher;
|
|
17625
17626
|
if (F === "launcher" && pe.current && ue.current) {
|
|
17626
|
-
const ce = Ue(),
|
|
17627
|
-
{ x:
|
|
17627
|
+
const ce = Ue(), ye = ue.current.getBoundingClientRect(), we = Er(
|
|
17628
|
+
{ x: ye.left, y: ye.top },
|
|
17628
17629
|
ce
|
|
17629
17630
|
);
|
|
17630
|
-
pe.current.cancel(), pe.current = null, de.current !== null && (window.clearTimeout(de.current), de.current = null), at("drag", !1, !0), ne = we, V.current = { ...V.current, launcher: we }, ue.current.style.transform = `translate3d(${we.x}px, ${we.y}px, 0)`,
|
|
17631
|
+
pe.current.cancel(), pe.current = null, de.current !== null && (window.clearTimeout(de.current), de.current = null), at("drag", !1, !0), ne = we, V.current = { ...V.current, launcher: we }, ue.current.style.transform = `translate3d(${we.x}px, ${we.y}px, 0)`, E(we);
|
|
17631
17632
|
}
|
|
17632
17633
|
j.current = !1, De.current = !1, te.current = null, F === "launcher" && ue.current && (ue.current.style.willChange = "transform", ie.current !== null && window.clearTimeout(ie.current), ie.current = window.setTimeout(() => {
|
|
17633
17634
|
ie.current = null, De.current = !0, $.current = !0;
|
|
@@ -17721,15 +17722,15 @@ function Q1({
|
|
|
17721
17722
|
top: 0,
|
|
17722
17723
|
width: Fe,
|
|
17723
17724
|
height: Fe,
|
|
17724
|
-
transform: `translate3d(${
|
|
17725
|
+
transform: `translate3d(${y.x}px, ${y.y}px, 0)`
|
|
17725
17726
|
}, nt = {
|
|
17726
17727
|
width: Fe,
|
|
17727
17728
|
height: Fe
|
|
17728
|
-
}, Ae = Ue(),
|
|
17729
|
-
|
|
17729
|
+
}, Ae = Ue(), yt = Wn(y, Ae).side, Ke = G1(
|
|
17730
|
+
y,
|
|
17730
17731
|
X,
|
|
17731
17732
|
Ae,
|
|
17732
|
-
|
|
17733
|
+
yt,
|
|
17733
17734
|
_
|
|
17734
17735
|
), jr = Ke.placement, Jt = {
|
|
17735
17736
|
left: 0,
|
|
@@ -17742,19 +17743,19 @@ function Q1({
|
|
|
17742
17743
|
const ul = 7 + (c && d ? 1 : 0), ti = Math.min(184, Math.max(1, Ae.width - 24)), Kr = Math.min(
|
|
17743
17744
|
ul * 44 + 2,
|
|
17744
17745
|
Math.max(1, Ae.height - 24)
|
|
17745
|
-
), To =
|
|
17746
|
+
), To = y.y - Ae.y >= Kr + 8 ? "above" : "below", cl = {
|
|
17746
17747
|
left: Math.min(
|
|
17747
17748
|
Ae.x + Ae.width - 12 - ti,
|
|
17748
17749
|
Math.max(
|
|
17749
17750
|
Ae.x + 12,
|
|
17750
|
-
|
|
17751
|
+
yt === "RIGHT" ? y.x + Fe - ti : y.x
|
|
17751
17752
|
)
|
|
17752
17753
|
),
|
|
17753
17754
|
top: Math.min(
|
|
17754
17755
|
Ae.y + Ae.height - 12 - Kr,
|
|
17755
17756
|
Math.max(
|
|
17756
17757
|
Ae.y + 12,
|
|
17757
|
-
To === "above" ?
|
|
17758
|
+
To === "above" ? y.y - 8 - Kr : y.y + Fe + 8
|
|
17758
17759
|
)
|
|
17759
17760
|
),
|
|
17760
17761
|
width: ti,
|
|
@@ -17787,7 +17788,7 @@ function Q1({
|
|
|
17787
17788
|
"data-mobile": n,
|
|
17788
17789
|
"data-preview-active": !!c,
|
|
17789
17790
|
dir: b,
|
|
17790
|
-
lang:
|
|
17791
|
+
lang: C,
|
|
17791
17792
|
children: [
|
|
17792
17793
|
/* @__PURE__ */ H(
|
|
17793
17794
|
"div",
|
|
@@ -17864,7 +17865,7 @@ function Q1({
|
|
|
17864
17865
|
{
|
|
17865
17866
|
ref: Je,
|
|
17866
17867
|
className: "compact-preview-anchor pointer-events-auto fixed z-30",
|
|
17867
|
-
"data-side":
|
|
17868
|
+
"data-side": yt.toLowerCase(),
|
|
17868
17869
|
"data-placement": jr,
|
|
17869
17870
|
"data-suspended": p || nr || void 0,
|
|
17870
17871
|
"aria-hidden": p || nr || void 0,
|
|
@@ -17928,7 +17929,7 @@ function Q1({
|
|
|
17928
17929
|
role: "menu",
|
|
17929
17930
|
"aria-label": I("compact.positionMenu"),
|
|
17930
17931
|
className: "chat-launcher-menu pointer-events-auto fixed z-50",
|
|
17931
|
-
"data-side":
|
|
17932
|
+
"data-side": yt.toLowerCase(),
|
|
17932
17933
|
"data-placement": To,
|
|
17933
17934
|
style: cl,
|
|
17934
17935
|
onKeyDown: ll,
|
|
@@ -18055,7 +18056,7 @@ const $1 = {
|
|
|
18055
18056
|
bottom: 0,
|
|
18056
18057
|
left: 0
|
|
18057
18058
|
};
|
|
18058
|
-
function
|
|
18059
|
+
function ey(t) {
|
|
18059
18060
|
const e = window.getComputedStyle(t), n = (r) => {
|
|
18060
18061
|
const s = Number.parseFloat(e.getPropertyValue(r));
|
|
18061
18062
|
return Number.isFinite(s) ? Math.max(0, s) : 0;
|
|
@@ -18067,10 +18068,10 @@ function eC(t) {
|
|
|
18067
18068
|
left: n("--lola-safe-area-inset-left")
|
|
18068
18069
|
};
|
|
18069
18070
|
}
|
|
18070
|
-
function
|
|
18071
|
+
function ty(t, e) {
|
|
18071
18072
|
return t.top === e.top && t.right === e.right && t.bottom === e.bottom && t.left === e.left;
|
|
18072
18073
|
}
|
|
18073
|
-
function
|
|
18074
|
+
function ny(t, e) {
|
|
18074
18075
|
return t === e || t !== null && e !== null && t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
18075
18076
|
}
|
|
18076
18077
|
function wi(t) {
|
|
@@ -18096,7 +18097,7 @@ function wi(t) {
|
|
|
18096
18097
|
)
|
|
18097
18098
|
};
|
|
18098
18099
|
}
|
|
18099
|
-
function
|
|
18100
|
+
function ry(t, e) {
|
|
18100
18101
|
if (!t) return !1;
|
|
18101
18102
|
const n = Date.parse(t);
|
|
18102
18103
|
if (!Number.isFinite(n)) return !1;
|
|
@@ -18104,10 +18105,10 @@ function rC(t, e) {
|
|
|
18104
18105
|
const r = Date.parse(e);
|
|
18105
18106
|
return !Number.isFinite(r) || n > r;
|
|
18106
18107
|
}
|
|
18107
|
-
function
|
|
18108
|
+
function sy({
|
|
18108
18109
|
descriptionId: t
|
|
18109
18110
|
}) {
|
|
18110
|
-
const { open: e, loadingProgress: n, hasUnreadCta: r } = Wr(), { t: s } = xn(), i = km(), o = xm(), a = n >= 1, c = !!(
|
|
18111
|
+
const { open: e, loadingProgress: n, hasUnreadCta: r } = Wr(), { t: s } = xn(), i = km(), o = xm(), a = n >= 1, c = !!(ry(
|
|
18111
18112
|
o,
|
|
18112
18113
|
i
|
|
18113
18114
|
) || r);
|
|
@@ -18123,7 +18124,7 @@ function sC({
|
|
|
18123
18124
|
] });
|
|
18124
18125
|
}
|
|
18125
18126
|
const sl = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAACFCAYAAACAJLCMAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAaJtJREFUeAHtvQeYXFeVLbzurZxTV+ek0MqSJUuWnGTLGZtgDJhggsmZGcCEeQzMiDQDDGEYHslmyNmAwRgbB5xlWbJyjp1zdVVXznXvv/a5bR4vfO+bx3uWWv7nmqZb3VXV1ffss/faa+29D/Cf139e/5tLw/+/Lvl7zf/uO1u36r2Pwlly5m2OUMNoiRTqu2+/vYb/vNT1fDeQ/84gWq79kA8Le6/wtK+6WQvHL67XKp1mrepq1MqaadOgO1ywQQc8PsPmck4bKA/YXKF7S/sf+s3kl9585H/1ms/36/loIM/+Teb6t7/d0Z9bucmzYMWHdbv9ilp2JFArVGHYaAYOB0zdBs1uB+z8t3ztcAIuN0yHHRpfRatWodfrsDldcHcsNFwu/Z7yrns+1P8v7zzJ16clwcDz/Ho+GYgsmLlly1bbiSVrX2l0RD/XSI53GekEatUyYHPA5vXDZnfQIMQAdBqKHYbLyX86aSC8GcpIaDj8z5APtxduN39eLsI0+G/+n8Pp0YJLVoyWJwZeeewta7bjee5Rng8Gov6Gxde/z1m85GXfrs+mb62Mn0DDtDNccN3EC3DR624f7G4PNHoI3UkjoTGYtArxFLpdHsmvxYBMPsemo0Ej0vlzW6MKWyAMh9aAXi7wOXZU6qZhd2h6sLVvqHjw4StPbn1FP56nHuVcNxDGB9QXffapD+eTE1+ojA+YmjfEBbZp9dQU9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ZxJvIVmTEITqIEKVmVkFU/KepAzy0q6V5ic2vPg7G7/99z/DOWgccv2HDcSpaZ/zUFwSL6DEMHqJIvWWS4JtWECAOEEpXNftf2Y9rVYizaLFJbYY1rlrqmWyYRFflqppql0uSq8on6KIRim9p4oFRbnbVGWYAyGXByGGFFFZx6dHUcgk4QvGEPYEVZmhKxBiBCmjRPVVq/E3U+tJ5bPw8r35NSczCmZAAReaPQHYi9aEZTl+NBom09moMBMbxFsvuAI/ObkXARqJOac6a3OhxGJ11Xf/zOjmCgUrY5r7mZrFTiuSA5FXRruMr1/3Hr35c6/bgHlOp//vrv8PdoOna4aDnqkAAAAASUVORK5CYII=";
|
|
18126
|
-
function
|
|
18127
|
+
function iy() {
|
|
18127
18128
|
const { t } = xn(), {
|
|
18128
18129
|
open: e,
|
|
18129
18130
|
isChromeVisible: n,
|
|
@@ -18134,26 +18135,26 @@ function iC() {
|
|
|
18134
18135
|
assistantRef: a
|
|
18135
18136
|
} = Wr(), u = wt(), c = Fm(), d = Hi(u.pathname) && o || c, p = q(null), h = q(null), f = q(null), m = e && n && !d, g = q(m);
|
|
18136
18137
|
return g.current = m, Y(() => {
|
|
18137
|
-
const b = p.current,
|
|
18138
|
-
if (!b || !
|
|
18138
|
+
const b = p.current, C = h.current;
|
|
18139
|
+
if (!b || !C) return;
|
|
18139
18140
|
let I = !1;
|
|
18140
|
-
const
|
|
18141
|
+
const S = (T) => {
|
|
18141
18142
|
const M = T.detail ?? 0;
|
|
18142
18143
|
s(Math.min(M, 0.99));
|
|
18143
18144
|
};
|
|
18144
|
-
let
|
|
18145
|
-
const
|
|
18145
|
+
let y = null;
|
|
18146
|
+
const E = new ResizeObserver((T) => {
|
|
18146
18147
|
if (!g.current) return;
|
|
18147
18148
|
const M = T.at(-1);
|
|
18148
18149
|
if (!M) return;
|
|
18149
18150
|
const { width: P, height: B } = M.contentRect;
|
|
18150
|
-
|
|
18151
|
-
a.current?.onResize(P, B),
|
|
18151
|
+
y !== null && window.clearTimeout(y), y = window.setTimeout(() => {
|
|
18152
|
+
a.current?.onResize(P, B), y = null;
|
|
18152
18153
|
}, 80);
|
|
18153
18154
|
});
|
|
18154
18155
|
let k = null;
|
|
18155
18156
|
const O = r.onAvatarLoadStarted();
|
|
18156
|
-
return import("./Avatar-
|
|
18157
|
+
return import("./Avatar-SyZkMWe9.js").then(({ Avatar: T }) => {
|
|
18157
18158
|
if (I) return;
|
|
18158
18159
|
const M = {
|
|
18159
18160
|
...r,
|
|
@@ -18164,13 +18165,13 @@ function iC() {
|
|
|
18164
18165
|
!I && a.current === k && O.onAvatarLoadFailed(P);
|
|
18165
18166
|
}
|
|
18166
18167
|
};
|
|
18167
|
-
k = new T(b,
|
|
18168
|
+
k = new T(b, C, M), k.setRenderingEnabled(g.current), a.current = k, k.addEventListener("loading_progress", S), E.observe(b);
|
|
18168
18169
|
}).catch((T) => {
|
|
18169
18170
|
I || O.onAvatarLoadFailed(T);
|
|
18170
18171
|
}), () => {
|
|
18171
|
-
I = !0, k?.cancelBackgroundPreload(), k?.setRenderingEnabled(!1), k?.removeEventListener("loading_progress",
|
|
18172
|
+
I = !0, k?.cancelBackgroundPreload(), k?.setRenderingEnabled(!1), k?.removeEventListener("loading_progress", S), k && a.current === k && (a.current = null, O.onAvatarLoadFailed(
|
|
18172
18173
|
new Error("Avatar was unmounted before animation playback")
|
|
18173
|
-
)),
|
|
18174
|
+
)), y !== null && window.clearTimeout(y), E.disconnect();
|
|
18174
18175
|
};
|
|
18175
18176
|
}, [r, a, s]), Y(() => {
|
|
18176
18177
|
const b = () => {
|
|
@@ -18219,7 +18220,7 @@ class Si extends Error {
|
|
|
18219
18220
|
super("Presentation avatar grant contract is invalid");
|
|
18220
18221
|
}
|
|
18221
18222
|
}
|
|
18222
|
-
async function
|
|
18223
|
+
async function oy(t, e, n, r, s) {
|
|
18223
18224
|
const i = await kn(
|
|
18224
18225
|
t,
|
|
18225
18226
|
e,
|
|
@@ -18248,10 +18249,10 @@ async function oC(t, e, n, r, s) {
|
|
|
18248
18249
|
expiresAt: i.expiresAt
|
|
18249
18250
|
};
|
|
18250
18251
|
}
|
|
18251
|
-
const Ei = 5e3,
|
|
18252
|
-
class
|
|
18252
|
+
const Ei = 5e3, ay = 4, uy = 96, cy = 128;
|
|
18253
|
+
class ly {
|
|
18253
18254
|
constructor(e, n, r = {}) {
|
|
18254
|
-
this.config = e, this.api = n, this.fetchGrant = r.fetchGrant ??
|
|
18255
|
+
this.config = e, this.api = n, this.fetchGrant = r.fetchGrant ?? oy, this.now = r.now ?? Date.now, this.sleep = r.sleep ?? ((s) => new Promise((i) => window.setTimeout(i, s))), this.maxConcurrent = r.maxConcurrent ?? ay, this.maxEntries = r.maxEntries ?? uy, this.maxQueued = r.maxQueued ?? cy;
|
|
18255
18256
|
}
|
|
18256
18257
|
fetchGrant;
|
|
18257
18258
|
now;
|
|
@@ -18422,7 +18423,7 @@ class lC {
|
|
|
18422
18423
|
].join(":");
|
|
18423
18424
|
}
|
|
18424
18425
|
}
|
|
18425
|
-
const xo = Kn(null),
|
|
18426
|
+
const xo = Kn(null), xC = () => Pr(xo)?.resolver ?? null, TC = (t) => {
|
|
18426
18427
|
const e = Pr(
|
|
18427
18428
|
xo
|
|
18428
18429
|
)?.authorizedConversationIds;
|
|
@@ -18432,7 +18433,7 @@ const xo = Kn(null), xy = () => Pr(xo)?.resolver ?? null, Ty = (t) => {
|
|
|
18432
18433
|
t.customerInteractionSession.accessToken,
|
|
18433
18434
|
t.customerInteractionSession.expiresAt
|
|
18434
18435
|
].join("\0");
|
|
18435
|
-
function
|
|
18436
|
+
function dy({
|
|
18436
18437
|
children: t,
|
|
18437
18438
|
config: e,
|
|
18438
18439
|
api: n,
|
|
@@ -18440,7 +18441,7 @@ function dC({
|
|
|
18440
18441
|
resolver: s
|
|
18441
18442
|
}) {
|
|
18442
18443
|
const [i] = he(
|
|
18443
|
-
() => s ?? new
|
|
18444
|
+
() => s ?? new ly(e, n)
|
|
18444
18445
|
), o = q(ja(e)), a = q(
|
|
18445
18446
|
new Set(r ?? [])
|
|
18446
18447
|
), u = un(
|
|
@@ -18461,19 +18462,19 @@ function dC({
|
|
|
18461
18462
|
a.current = c;
|
|
18462
18463
|
}, [r, i]), Y(() => () => i.destroy(), [i]), /* @__PURE__ */ H(xo.Provider, { value: u, children: t });
|
|
18463
18464
|
}
|
|
18464
|
-
const
|
|
18465
|
+
const hy = 32, fy = 192, py = 32, my = 24, gy = 16, by = 1.5, yy = 100, Cy = 120;
|
|
18465
18466
|
let Ka;
|
|
18466
|
-
const
|
|
18467
|
+
const Iy = (t) => t ? [t] : [], il = (t) => typeof Intl.Segmenter != "function" ? Iy(t) : (Ka ??= new Intl.Segmenter(void 0, {
|
|
18467
18468
|
granularity: "grapheme"
|
|
18468
18469
|
}), Array.from(Ka.segment(t), ({ segment: e }) => e)), Ya = (t, e) => {
|
|
18469
18470
|
let n = 0;
|
|
18470
18471
|
for (; n < t.length && n < e.length && t[n] === e[n]; )
|
|
18471
18472
|
n += 1;
|
|
18472
18473
|
return n;
|
|
18473
|
-
}, On = (t) => /\s/u.test(t),
|
|
18474
|
+
}, On = (t) => /\s/u.test(t), vy = (t, e, n) => {
|
|
18474
18475
|
let r = Math.min(e + n, t.length);
|
|
18475
18476
|
if (r === t.length) return r - e;
|
|
18476
|
-
const s = Math.min(r +
|
|
18477
|
+
const s = Math.min(r + gy, t.length);
|
|
18477
18478
|
for (; r < s && !On(t[r - 1]) && !On(t[r]); )
|
|
18478
18479
|
r += 1;
|
|
18479
18480
|
for (; r < t.length && On(t[r]); ) r += 1;
|
|
@@ -18482,8 +18483,8 @@ const IC = (t) => t ? [t] : [], il = (t) => typeof Intl.Segmenter != "function"
|
|
|
18482
18483
|
for (; r < t.length && On(t[r]); ) r += 1;
|
|
18483
18484
|
}
|
|
18484
18485
|
return r - e;
|
|
18485
|
-
},
|
|
18486
|
-
characterIntervalMs: t =
|
|
18486
|
+
}, RC = ({
|
|
18487
|
+
characterIntervalMs: t = hy,
|
|
18487
18488
|
segment: e = il
|
|
18488
18489
|
} = {}) => {
|
|
18489
18490
|
let n = [], r = "", s = [], i = 0, o = 0, a = null, u = 0, c = !1, l = null, d = [], p = {
|
|
@@ -18494,7 +18495,7 @@ const IC = (t) => t ? [t] : [], il = (t) => typeof Intl.Segmenter != "function"
|
|
|
18494
18495
|
revision: i
|
|
18495
18496
|
};
|
|
18496
18497
|
const h = (g = []) => {
|
|
18497
|
-
const b = g.join(""),
|
|
18498
|
+
const b = g.join(""), C = s.join("");
|
|
18498
18499
|
i += 1, d = b ? [
|
|
18499
18500
|
...d,
|
|
18500
18501
|
{
|
|
@@ -18502,12 +18503,12 @@ const IC = (t) => t ? [t] : [], il = (t) => typeof Intl.Segmenter != "function"
|
|
|
18502
18503
|
revision: i
|
|
18503
18504
|
}
|
|
18504
18505
|
].slice(-4) : [];
|
|
18505
|
-
const I = d.map(({ text:
|
|
18506
|
+
const I = d.map(({ text: S }) => S).join("");
|
|
18506
18507
|
return p = {
|
|
18507
|
-
displayedText:
|
|
18508
|
-
stableText:
|
|
18508
|
+
displayedText: C,
|
|
18509
|
+
stableText: C.slice(
|
|
18509
18510
|
0,
|
|
18510
|
-
|
|
18511
|
+
C.length - I.length
|
|
18511
18512
|
),
|
|
18512
18513
|
animatedText: b,
|
|
18513
18514
|
animatedFragments: d,
|
|
@@ -18524,16 +18525,16 @@ const IC = (t) => t ? [t] : [], il = (t) => typeof Intl.Segmenter != "function"
|
|
|
18524
18525
|
return;
|
|
18525
18526
|
}
|
|
18526
18527
|
if (g === l?.text) return;
|
|
18527
|
-
const
|
|
18528
|
-
|
|
18529
|
-
target:
|
|
18528
|
+
const C = e(g);
|
|
18529
|
+
C.length < n.length && Ya(C, n) === C.length && s.length > C.length ? l = {
|
|
18530
|
+
target: C,
|
|
18530
18531
|
text: g,
|
|
18531
18532
|
firstTimestamp: l?.firstTimestamp ?? null
|
|
18532
|
-
} : (l = null, m(
|
|
18533
|
+
} : (l = null, m(C, g)), b && (o = 0, a = null, u = 0);
|
|
18533
18534
|
},
|
|
18534
18535
|
advance(g) {
|
|
18535
18536
|
if (l) {
|
|
18536
|
-
if (l.firstTimestamp ??= g, g - l.firstTimestamp <
|
|
18537
|
+
if (l.firstTimestamp ??= g, g - l.firstTimestamp < Cy)
|
|
18537
18538
|
return null;
|
|
18538
18539
|
const T = l.target, M = l.text;
|
|
18539
18540
|
l = null, m(T, M);
|
|
@@ -18543,17 +18544,17 @@ const IC = (t) => t ? [t] : [], il = (t) => typeof Intl.Segmenter != "function"
|
|
|
18543
18544
|
return s = n.slice(0, Math.min(s.length, n.length)), c = !1, o = 0, u = 0, a = s.length === n.length ? null : g, h();
|
|
18544
18545
|
const b = n.length - s.length;
|
|
18545
18546
|
if (b <= 0) return null;
|
|
18546
|
-
u === 0 && b * t >
|
|
18547
|
-
const
|
|
18547
|
+
u === 0 && b * t > fy && (u = my, o = 0, a = null);
|
|
18548
|
+
const C = u > 0, I = C ? py : t, S = a === null ? I : Math.min(
|
|
18548
18549
|
Math.max(g - a, 0),
|
|
18549
|
-
|
|
18550
|
+
yy
|
|
18550
18551
|
);
|
|
18551
|
-
if (a = g, o = Math.min(
|
|
18552
|
-
const
|
|
18552
|
+
if (a = g, o = Math.min(by, o + S / I), Math.floor(o) < 1) return null;
|
|
18553
|
+
const E = C ? Math.ceil(b / u) : 1, k = C ? vy(n, s.length, E) : E, O = n.slice(
|
|
18553
18554
|
s.length,
|
|
18554
18555
|
s.length + k
|
|
18555
18556
|
);
|
|
18556
|
-
return s = s.concat(O), o = Math.max(0, o - 1),
|
|
18557
|
+
return s = s.concat(O), o = Math.max(0, o - 1), C && (u -= 1), s.length === n.length && (o = 0, a = null, u = 0), h(O);
|
|
18557
18558
|
},
|
|
18558
18559
|
flush() {
|
|
18559
18560
|
return l && (n = l.target, r = l.text, l = null), f() && p.animatedText === "" ? null : (s = n.slice(), o = 0, a = null, u = 0, c = !1, h());
|
|
@@ -18563,10 +18564,10 @@ const IC = (t) => t ? [t] : [], il = (t) => typeof Intl.Segmenter != "function"
|
|
|
18563
18564
|
},
|
|
18564
18565
|
isSettled: f
|
|
18565
18566
|
};
|
|
18566
|
-
},
|
|
18567
|
-
function
|
|
18567
|
+
}, Ay = 3, ki = 6, wy = 880, Sy = 72, Ja = 90, Ey = 280, ky = 170, xy = 220, Ty = 1500, Ry = /(<[^>]+>)/gu, My = /&(?:#\d+|#x[\da-f]+|[a-z][\da-z]+);/iu;
|
|
18568
|
+
function Dy(t) {
|
|
18568
18569
|
if (!t) return [];
|
|
18569
|
-
if (!/\s/u.test(t) && !
|
|
18570
|
+
if (!/\s/u.test(t) && !My.test(t)) {
|
|
18570
18571
|
const i = il(t);
|
|
18571
18572
|
if (i.length > ki) {
|
|
18572
18573
|
const o = [];
|
|
@@ -18580,15 +18581,15 @@ function DC(t) {
|
|
|
18580
18581
|
const e = t.match(/\s+|[^\s]+/gu) ?? [], n = [];
|
|
18581
18582
|
let r = "", s = 0;
|
|
18582
18583
|
for (const i of e)
|
|
18583
|
-
!/^\s+$/u.test(i) && s ===
|
|
18584
|
+
!/^\s+$/u.test(i) && s === Ay && (n.push(r), r = "", s = 0), r += i, /^\s+$/u.test(i) || (s += 1);
|
|
18584
18585
|
return r && n.push(r), n;
|
|
18585
18586
|
}
|
|
18586
|
-
function
|
|
18587
|
+
function _y(t) {
|
|
18587
18588
|
let e = 0;
|
|
18588
18589
|
const r = t.replace(
|
|
18589
18590
|
/<a\b[^>]*>/giu,
|
|
18590
18591
|
'<span class="compact-scenario-preview__link-text">'
|
|
18591
|
-
).replace(/<\/a>/giu, "</span>").split(
|
|
18592
|
+
).replace(/<\/a>/giu, "</span>").split(Ry).map((a) => !a || a.startsWith("<") ? a : Dy(a).map((u) => {
|
|
18592
18593
|
const [
|
|
18593
18594
|
,
|
|
18594
18595
|
c = "",
|
|
@@ -18598,14 +18599,14 @@ function _C(t) {
|
|
|
18598
18599
|
if (!l) return u;
|
|
18599
18600
|
const p = e++;
|
|
18600
18601
|
return `${c}<span class="compact-scenario-preview__phrase" style="--compact-preview-phrase-delay:__LOLA_PHRASE_${p}__">${l}</span>${d}`;
|
|
18601
|
-
}).join("")).join(""), s = e <= 1 ? 0 : Math.min(
|
|
18602
|
+
}).join("")).join(""), s = e <= 1 ? 0 : Math.min(Sy, wy / (e - 1)), i = r.replace(
|
|
18602
18603
|
/__LOLA_PHRASE_(\d+)__/gu,
|
|
18603
18604
|
(a, u) => `${Math.round(Ja + Number(u) * s)}ms`
|
|
18604
18605
|
), o = e > 0 ? Ja + (e - 1) * s : 0;
|
|
18605
18606
|
return {
|
|
18606
18607
|
html: i,
|
|
18607
18608
|
phraseCount: e,
|
|
18608
|
-
actionsDelayMs: Math.round(o +
|
|
18609
|
+
actionsDelayMs: Math.round(o + Ey + 50)
|
|
18609
18610
|
};
|
|
18610
18611
|
}
|
|
18611
18612
|
function ol(t) {
|
|
@@ -18619,19 +18620,19 @@ function ol(t) {
|
|
|
18619
18620
|
visuallyHidden: !0
|
|
18620
18621
|
};
|
|
18621
18622
|
}
|
|
18622
|
-
return { ...
|
|
18623
|
+
return { ..._y(e), visuallyHidden: !1 };
|
|
18623
18624
|
}
|
|
18624
|
-
const al = (t) => t.kind !== "INFO",
|
|
18625
|
-
const e = ol(t), n = Math.max(0, e.actionsDelayMs - 50), r = al(t) ? e.actionsDelayMs +
|
|
18625
|
+
const al = (t) => t.kind !== "INFO", Fy = (t) => {
|
|
18626
|
+
const e = ol(t), n = Math.max(0, e.actionsDelayMs - 50), r = al(t) ? e.actionsDelayMs + ky : n;
|
|
18626
18627
|
return Math.min(
|
|
18627
|
-
|
|
18628
|
-
Math.max(
|
|
18628
|
+
Ty,
|
|
18629
|
+
Math.max(xy, r)
|
|
18629
18630
|
);
|
|
18630
|
-
},
|
|
18631
|
+
}, Ny = {
|
|
18631
18632
|
region: "Assistant update",
|
|
18632
18633
|
dismiss: "Dismiss message",
|
|
18633
18634
|
choices: "Choose an answer"
|
|
18634
|
-
},
|
|
18635
|
+
}, Ly = dl(function({
|
|
18635
18636
|
candidate: e,
|
|
18636
18637
|
phase: n,
|
|
18637
18638
|
onDismiss: r,
|
|
@@ -18655,7 +18656,7 @@ const al = (t) => t.kind !== "INFO", FC = (t) => {
|
|
|
18655
18656
|
}
|
|
18656
18657
|
return P;
|
|
18657
18658
|
});
|
|
18658
|
-
}, []),
|
|
18659
|
+
}, []), C = e.kind === "CHOICE" ? e.choice.options.find(
|
|
18659
18660
|
({ presentation: T }) => T === "PRIMARY"
|
|
18660
18661
|
)?.id : void 0, I = un(() => {
|
|
18661
18662
|
if (n !== "INTERACTIVE") return [];
|
|
@@ -18663,14 +18664,14 @@ const al = (t) => t.kind !== "INFO", FC = (t) => {
|
|
|
18663
18664
|
return [e.key];
|
|
18664
18665
|
if (e.kind !== "CHOICE") return [];
|
|
18665
18666
|
const T = e.choice.options.find(
|
|
18666
|
-
({ id: M, presentation: P, attention: B }) => M ===
|
|
18667
|
+
({ id: M, presentation: P, attention: B }) => M === C && P === "PRIMARY" && B === "NUDGE_ONCE"
|
|
18667
18668
|
);
|
|
18668
18669
|
return T ? [`${e.key}:${T.id}`] : [];
|
|
18669
|
-
}, [e, n,
|
|
18670
|
+
}, [e, n, C]), S = le(() => {
|
|
18670
18671
|
for (const T of I) b(T);
|
|
18671
18672
|
}, [I, b]);
|
|
18672
18673
|
if (n === "IDLE" || n === "GAP") return null;
|
|
18673
|
-
const
|
|
18674
|
+
const y = { ...Ny, ...p }, E = o || a || n === "ENTERING" || n === "EXITING", k = al(e), O = {
|
|
18674
18675
|
"--compact-preview-actions-delay": `${h.actionsDelayMs}ms`
|
|
18675
18676
|
};
|
|
18676
18677
|
return /* @__PURE__ */ lt(
|
|
@@ -18678,7 +18679,7 @@ const al = (t) => t.kind !== "INFO", FC = (t) => {
|
|
|
18678
18679
|
{
|
|
18679
18680
|
className: "compact-scenario-preview",
|
|
18680
18681
|
role: "region",
|
|
18681
|
-
"aria-label":
|
|
18682
|
+
"aria-label": y.region,
|
|
18682
18683
|
"aria-describedby": f,
|
|
18683
18684
|
"aria-busy": a || void 0,
|
|
18684
18685
|
"data-kind": e.kind,
|
|
@@ -18703,8 +18704,8 @@ const al = (t) => t.kind !== "INFO", FC = (t) => {
|
|
|
18703
18704
|
{
|
|
18704
18705
|
className: "compact-scenario-preview__dismiss",
|
|
18705
18706
|
type: "button",
|
|
18706
|
-
"aria-label":
|
|
18707
|
-
disabled:
|
|
18707
|
+
"aria-label": y.dismiss,
|
|
18708
|
+
disabled: E,
|
|
18708
18709
|
onClick: r,
|
|
18709
18710
|
children: /* @__PURE__ */ H("span", { "aria-hidden": "true", children: "×" })
|
|
18710
18711
|
}
|
|
@@ -18714,9 +18715,9 @@ const al = (t) => t.kind !== "INFO", FC = (t) => {
|
|
|
18714
18715
|
{
|
|
18715
18716
|
className: "compact-scenario-preview__choice-group",
|
|
18716
18717
|
role: "group",
|
|
18717
|
-
"aria-label":
|
|
18718
|
+
"aria-label": y.choices,
|
|
18718
18719
|
children: e.choice.options.map((T) => {
|
|
18719
|
-
const M = l === T.id, P = T.presentation === "PRIMARY" && T.id ===
|
|
18720
|
+
const M = l === T.id, P = T.presentation === "PRIMARY" && T.id === C ? "PRIMARY" : "TERTIARY", B = `${e.key}:${T.id}`, z = P === "PRIMARY" && T.attention === "NUDGE_ONCE" && n === "INTERACTIVE" && !m.has(B) ? "NUDGE_ONCE" : "NONE";
|
|
18720
18721
|
return /* @__PURE__ */ H(
|
|
18721
18722
|
"button",
|
|
18722
18723
|
{
|
|
@@ -18726,9 +18727,9 @@ const al = (t) => t.kind !== "INFO", FC = (t) => {
|
|
|
18726
18727
|
"data-presentation": P,
|
|
18727
18728
|
"data-attention": z,
|
|
18728
18729
|
"aria-pressed": M || void 0,
|
|
18729
|
-
disabled:
|
|
18730
|
+
disabled: E || !!(l && !M),
|
|
18730
18731
|
onClick: () => {
|
|
18731
|
-
|
|
18732
|
+
S(), s(T.id);
|
|
18732
18733
|
},
|
|
18733
18734
|
children: T.label
|
|
18734
18735
|
},
|
|
@@ -18745,9 +18746,9 @@ const al = (t) => t.kind !== "INFO", FC = (t) => {
|
|
|
18745
18746
|
"data-presentation": "PRIMARY",
|
|
18746
18747
|
"data-attention": n !== "INTERACTIVE" || m.has(e.key) ? "NONE" : e.cta.attention,
|
|
18747
18748
|
"aria-busy": a || void 0,
|
|
18748
|
-
disabled:
|
|
18749
|
+
disabled: E,
|
|
18749
18750
|
onClick: () => {
|
|
18750
|
-
|
|
18751
|
+
S(), i();
|
|
18751
18752
|
},
|
|
18752
18753
|
children: u ?? e.cta.label
|
|
18753
18754
|
},
|
|
@@ -18757,8 +18758,8 @@ const al = (t) => t.kind !== "INFO", FC = (t) => {
|
|
|
18757
18758
|
]
|
|
18758
18759
|
}
|
|
18759
18760
|
);
|
|
18760
|
-
}), Qa = 160,
|
|
18761
|
-
function
|
|
18761
|
+
}), Qa = 160, Py = 500, $a = 4e3;
|
|
18762
|
+
function Oy({
|
|
18762
18763
|
controller: t,
|
|
18763
18764
|
snapshot: e
|
|
18764
18765
|
}) {
|
|
@@ -18766,22 +18767,22 @@ function OC({
|
|
|
18766
18767
|
() => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1
|
|
18767
18768
|
), { api: i, dismissCta: o, executeCta: a, getCtaPresentation: u } = Wr(), { scenarioChoiceSubmissionController: c } = Uc(), l = q(null), d = q(
|
|
18768
18769
|
null
|
|
18769
|
-
), p = q(/* @__PURE__ */ new Set()), h = q({ candidateKey: null, remainingMs: 0, startedAtMs: null }), f = q(null), m = q(null), g = q(null), b = e.active,
|
|
18770
|
+
), p = q(/* @__PURE__ */ new Set()), h = q({ candidateKey: null, remainingMs: 0, startedAtMs: null }), f = q(null), m = q(null), g = q(null), b = e.active, C = b?.kind === "CTA" ? u(b.cta.commandId) : { busy: !1, buttonLabel: null, feedback: null }, I = un(
|
|
18770
18771
|
() => ({
|
|
18771
18772
|
principalId: e.principalSessionId,
|
|
18772
18773
|
inputRequestId: b?.kind === "CHOICE" ? b.choice.inputRequestId : `none:${b?.key ?? "idle"}`
|
|
18773
18774
|
}),
|
|
18774
18775
|
[b, e.principalSessionId]
|
|
18775
|
-
),
|
|
18776
|
+
), S = le(
|
|
18776
18777
|
(z) => c.subscribe(I, z),
|
|
18777
18778
|
[I, c]
|
|
18778
|
-
),
|
|
18779
|
+
), y = le(
|
|
18779
18780
|
() => c.getSnapshot(I),
|
|
18780
18781
|
[I, c]
|
|
18781
|
-
),
|
|
18782
|
-
|
|
18783
|
-
|
|
18784
|
-
|
|
18782
|
+
), E = eu(
|
|
18783
|
+
S,
|
|
18784
|
+
y,
|
|
18785
|
+
y
|
|
18785
18786
|
), k = le(() => {
|
|
18786
18787
|
const z = h.current;
|
|
18787
18788
|
f.current !== null && (window.clearTimeout(f.current), f.current = null), z.startedAtMs !== null && (z.remainingMs = Math.max(
|
|
@@ -18794,7 +18795,7 @@ function OC({
|
|
|
18794
18795
|
k(), X.candidateKey = null, X.remainingMs = 0;
|
|
18795
18796
|
return;
|
|
18796
18797
|
}
|
|
18797
|
-
if (X.candidateKey !== W.key && (k(), X.candidateKey = W.key, X.remainingMs =
|
|
18798
|
+
if (X.candidateKey !== W.key && (k(), X.candidateKey = W.key, X.remainingMs = Fy(W)), !(z.dragSuspended || f.current !== null)) {
|
|
18798
18799
|
if (r || X.remainingMs <= 0) {
|
|
18799
18800
|
X.remainingMs = 0, t.markInteractive();
|
|
18800
18801
|
return;
|
|
@@ -18836,27 +18837,12 @@ function OC({
|
|
|
18836
18837
|
), Y(() => {
|
|
18837
18838
|
if (e.phase !== "EXITING" || !b || e.exitReason === "ACTIVATED" || e.exitReason === "OPENED_CHAT")
|
|
18838
18839
|
return;
|
|
18839
|
-
if (e.exitReason === "ANSWERED" && b.kind === "CHOICE") {
|
|
18840
|
-
if (S.status === "error") {
|
|
18841
|
-
t.restoreAfterError(n("compact.answerFailed"));
|
|
18842
|
-
return;
|
|
18843
|
-
}
|
|
18844
|
-
if (S.status !== "terminal") return;
|
|
18845
|
-
}
|
|
18846
18840
|
const z = window.setTimeout(
|
|
18847
18841
|
() => t.completeExit(),
|
|
18848
18842
|
r ? 0 : Qa
|
|
18849
18843
|
);
|
|
18850
18844
|
return () => window.clearTimeout(z);
|
|
18851
|
-
}, [
|
|
18852
|
-
b,
|
|
18853
|
-
S.status,
|
|
18854
|
-
t,
|
|
18855
|
-
r,
|
|
18856
|
-
e.exitReason,
|
|
18857
|
-
e.phase,
|
|
18858
|
-
n
|
|
18859
|
-
]), Y(() => {
|
|
18845
|
+
}, [b, t, r, e.exitReason, e.phase]), Y(() => {
|
|
18860
18846
|
const z = [b, ...e.queue].flatMap((N) => N?.deadlineAtMs === null || !N ? [] : [N.deadlineAtMs]).sort((N, _) => N - _)[0];
|
|
18861
18847
|
if (z === void 0) return;
|
|
18862
18848
|
let W = null;
|
|
@@ -18878,7 +18864,7 @@ function OC({
|
|
|
18878
18864
|
const z = l.current, W = e.surfaceEpisodeId;
|
|
18879
18865
|
if (!z || !b || !W || e.dragSuspended || e.phase === "EXITING")
|
|
18880
18866
|
return;
|
|
18881
|
-
const X =
|
|
18867
|
+
const X = By(b), N = `${W}:${X.subjectKind}:${X.subjectId}`;
|
|
18882
18868
|
if (p.current.has(N)) return;
|
|
18883
18869
|
let _ = null, A, v = !1;
|
|
18884
18870
|
const x = () => {
|
|
@@ -18894,7 +18880,7 @@ function OC({
|
|
|
18894
18880
|
W
|
|
18895
18881
|
) ? (p.current.add(N), p.current.size > 64 && (p.current = /* @__PURE__ */ new Set([N]))) : A = window.setTimeout(
|
|
18896
18882
|
x,
|
|
18897
|
-
|
|
18883
|
+
Py
|
|
18898
18884
|
);
|
|
18899
18885
|
}
|
|
18900
18886
|
}), d.current = _);
|
|
@@ -18942,7 +18928,7 @@ function OC({
|
|
|
18942
18928
|
} : {}
|
|
18943
18929
|
}), t.beginExit("ANSWERED"));
|
|
18944
18930
|
}, P = () => {
|
|
18945
|
-
if (b.kind !== "CTA" || e.phase !== "INTERACTIVE" ||
|
|
18931
|
+
if (b.kind !== "CTA" || e.phase !== "INTERACTIVE" || C.busy || m.current === b.key)
|
|
18946
18932
|
return;
|
|
18947
18933
|
m.current = b.key;
|
|
18948
18934
|
const z = b.key, W = Date.now(), X = a(
|
|
@@ -18977,19 +18963,19 @@ function OC({
|
|
|
18977
18963
|
}, v);
|
|
18978
18964
|
}
|
|
18979
18965
|
});
|
|
18980
|
-
}, B = e.error || (b.kind === "CTA" ?
|
|
18966
|
+
}, B = e.error || (b.kind === "CTA" ? C.feedback : null) || (b.kind === "CHOICE" && E.status === "error" ? n("compact.answerFailed") : null);
|
|
18981
18967
|
return /* @__PURE__ */ H("div", { ref: l, "data-lola-compact-preview-observation": !0, children: /* @__PURE__ */ H(
|
|
18982
|
-
|
|
18968
|
+
Ly,
|
|
18983
18969
|
{
|
|
18984
18970
|
candidate: b,
|
|
18985
18971
|
phase: e.phase,
|
|
18986
18972
|
disabled: e.dragSuspended,
|
|
18987
|
-
busy: b.kind === "CTA" &&
|
|
18988
|
-
ctaLabel: b.kind === "CTA" ?
|
|
18973
|
+
busy: b.kind === "CTA" && C.busy,
|
|
18974
|
+
ctaLabel: b.kind === "CTA" ? C.buttonLabel : null,
|
|
18989
18975
|
coalescedLabel: b.coalescedCount > 0 ? n("compact.moreMessages", {
|
|
18990
18976
|
count: b.coalescedCount
|
|
18991
18977
|
}) : null,
|
|
18992
|
-
selectedChoiceOptionId: b.kind === "CHOICE" ?
|
|
18978
|
+
selectedChoiceOptionId: b.kind === "CHOICE" ? E.selectedOptionId : null,
|
|
18993
18979
|
feedback: B,
|
|
18994
18980
|
labels: {
|
|
18995
18981
|
region: n("compact.region"),
|
|
@@ -19003,7 +18989,7 @@ function OC({
|
|
|
19003
18989
|
b.key
|
|
19004
18990
|
) });
|
|
19005
18991
|
}
|
|
19006
|
-
function
|
|
18992
|
+
function By(t) {
|
|
19007
18993
|
return {
|
|
19008
18994
|
subjectKind: t.kind === "INFO" ? "MESSAGE" : t.kind === "CHOICE" ? "CHOICE" : "CTA",
|
|
19009
18995
|
subjectId: t.subjectId,
|
|
@@ -19011,7 +18997,7 @@ function BC(t) {
|
|
|
19011
18997
|
...t.kind === "INFO" && t.message.ordinal !== void 0 ? { presentationOrdinal: t.message.ordinal } : {}
|
|
19012
18998
|
};
|
|
19013
18999
|
}
|
|
19014
|
-
const
|
|
19000
|
+
const Vy = 250, zy = fl(() => import("./ChatWidgetContent-Co5mvHh6.js")), Gy = (t) => {
|
|
19015
19001
|
const e = /* @__PURE__ */ new Set(), n = t.getSnapshot(), r = new Set(
|
|
19016
19002
|
[n.active, ...n.queue].flatMap(
|
|
19017
19003
|
(s) => s?.messageId ? [s.messageId] : []
|
|
@@ -19020,11 +19006,11 @@ const VC = 250, zC = fl(() => import("./ChatWidgetContent-Bz5AjlS4.js")), GC = (
|
|
|
19020
19006
|
for (const s of K.getState().messages)
|
|
19021
19007
|
e.has(s.id) || !Hn(s) && !r.has(s.id) || (e.add(s.id), t.receiveMessage(s, "HISTORY_REPLAY"));
|
|
19022
19008
|
}, br = (t, e) => {
|
|
19023
|
-
t.then(() =>
|
|
19009
|
+
t.then(() => Gy(e)).catch(
|
|
19024
19010
|
(n) => console.warn("[ChatWidget] Message history recovery failed", n)
|
|
19025
19011
|
);
|
|
19026
19012
|
};
|
|
19027
|
-
function
|
|
19013
|
+
function qy() {
|
|
19028
19014
|
const {
|
|
19029
19015
|
open: t,
|
|
19030
19016
|
transitionSurface: e,
|
|
@@ -19037,10 +19023,10 @@ function qC() {
|
|
|
19037
19023
|
isChromeVisible: u,
|
|
19038
19024
|
loadingProgress: c,
|
|
19039
19025
|
compactPreviewController: l
|
|
19040
|
-
} = Wr(), { anycableService: d } = Uc(), { t: p } = xn(), h = Zi(), f = Vs(), m = wt(), g = Sm(), b = K((A) => A.threadIds),
|
|
19026
|
+
} = Wr(), { anycableService: d } = Uc(), { t: p } = xn(), h = Zi(), f = Vs(), m = wt(), g = Sm(), b = K((A) => A.threadIds), C = Tm(), I = c0(
|
|
19041
19027
|
g
|
|
19042
|
-
)?.inputRequestId,
|
|
19043
|
-
clearTransientRealtimeState:
|
|
19028
|
+
)?.inputRequestId, S = q(void 0), y = q(null), {
|
|
19029
|
+
clearTransientRealtimeState: E,
|
|
19044
19030
|
disposeMessageStore: k,
|
|
19045
19031
|
initMessageStore: O,
|
|
19046
19032
|
recoverMessages: T,
|
|
@@ -19054,7 +19040,7 @@ function qC() {
|
|
|
19054
19040
|
if (P.phase !== "GAP") return;
|
|
19055
19041
|
const A = window.setTimeout(
|
|
19056
19042
|
() => l.promoteNext(),
|
|
19057
|
-
|
|
19043
|
+
Vy
|
|
19058
19044
|
);
|
|
19059
19045
|
return () => window.clearTimeout(A);
|
|
19060
19046
|
}, [l, P.phase]);
|
|
@@ -19095,20 +19081,20 @@ function qC() {
|
|
|
19095
19081
|
T,
|
|
19096
19082
|
M
|
|
19097
19083
|
]), Y(() => {
|
|
19098
|
-
!I ||
|
|
19084
|
+
!I || S.current === I || (S.current = I, f(st.text));
|
|
19099
19085
|
}, [f, I]), Y(() => {
|
|
19100
|
-
!
|
|
19101
|
-
}, [
|
|
19086
|
+
!C || y.current === C.sequence || (y.current = C.sequence, lb(m.pathname) && f(st.text));
|
|
19087
|
+
}, [C, m.pathname, f]), Y(() => {
|
|
19102
19088
|
if (!d?.channels.chat) return;
|
|
19103
19089
|
const A = d.channels.chat.on(
|
|
19104
19090
|
"connect",
|
|
19105
19091
|
(x) => {
|
|
19106
|
-
(x.reconnect || x.restored) && (
|
|
19092
|
+
(x.reconnect || x.restored) && (E(), br(T(), l));
|
|
19107
19093
|
}
|
|
19108
19094
|
), v = d.channels.chat.on(
|
|
19109
19095
|
"info",
|
|
19110
19096
|
(x) => {
|
|
19111
|
-
(x.type === "history_not_found" || x.type === "reject_history") && (
|
|
19097
|
+
(x.type === "history_not_found" || x.type === "reject_history") && (E(), br(T(), l));
|
|
19112
19098
|
}
|
|
19113
19099
|
);
|
|
19114
19100
|
return () => {
|
|
@@ -19116,7 +19102,7 @@ function qC() {
|
|
|
19116
19102
|
};
|
|
19117
19103
|
}, [
|
|
19118
19104
|
d?.channels.chat,
|
|
19119
|
-
|
|
19105
|
+
E,
|
|
19120
19106
|
l,
|
|
19121
19107
|
T
|
|
19122
19108
|
]);
|
|
@@ -19133,7 +19119,7 @@ function qC() {
|
|
|
19133
19119
|
l.getSnapshot().active?.kind === "CHOICE" && l.beginExit("COLLAPSED");
|
|
19134
19120
|
}, [l]), _ = un(
|
|
19135
19121
|
() => P.active ? /* @__PURE__ */ H(
|
|
19136
|
-
|
|
19122
|
+
Oy,
|
|
19137
19123
|
{
|
|
19138
19124
|
controller: l,
|
|
19139
19125
|
snapshot: P
|
|
@@ -19142,7 +19128,7 @@ function qC() {
|
|
|
19142
19128
|
[l, P]
|
|
19143
19129
|
);
|
|
19144
19130
|
return /* @__PURE__ */ H(
|
|
19145
|
-
|
|
19131
|
+
dy,
|
|
19146
19132
|
{
|
|
19147
19133
|
config: o,
|
|
19148
19134
|
api: a,
|
|
@@ -19172,7 +19158,7 @@ function qC() {
|
|
|
19172
19158
|
hideOpenButton: !!o.hideOpenButton,
|
|
19173
19159
|
loadingProgress: c,
|
|
19174
19160
|
launcherImageSrc: sl,
|
|
19175
|
-
unreadIndicator: /* @__PURE__ */ H(
|
|
19161
|
+
unreadIndicator: /* @__PURE__ */ H(sy, { descriptionId: h }),
|
|
19176
19162
|
launcherDescriptionId: h,
|
|
19177
19163
|
compactPreview: _,
|
|
19178
19164
|
compactPreviewAnnouncement: P.active ? [
|
|
@@ -19186,8 +19172,8 @@ function qC() {
|
|
|
19186
19172
|
onLauncherDragSuspended: X,
|
|
19187
19173
|
onCompactPreviewCollapse: N,
|
|
19188
19174
|
children: [
|
|
19189
|
-
/* @__PURE__ */ H(
|
|
19190
|
-
s && /* @__PURE__ */ H(hl, { fallback: null, children: /* @__PURE__ */ H(
|
|
19175
|
+
/* @__PURE__ */ H(iy, {}),
|
|
19176
|
+
s && /* @__PURE__ */ H(hl, { fallback: null, children: /* @__PURE__ */ H(zy, {}) })
|
|
19191
19177
|
]
|
|
19192
19178
|
}
|
|
19193
19179
|
)
|
|
@@ -19196,11 +19182,11 @@ function qC() {
|
|
|
19196
19182
|
}
|
|
19197
19183
|
);
|
|
19198
19184
|
}
|
|
19199
|
-
const
|
|
19185
|
+
const Uy = Kn(null), xi = {
|
|
19200
19186
|
didCatch: !1,
|
|
19201
19187
|
error: null
|
|
19202
19188
|
};
|
|
19203
|
-
class
|
|
19189
|
+
class Wy extends pl {
|
|
19204
19190
|
constructor(e) {
|
|
19205
19191
|
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = xi;
|
|
19206
19192
|
}
|
|
@@ -19219,7 +19205,7 @@ class WC extends pl {
|
|
|
19219
19205
|
}
|
|
19220
19206
|
componentDidUpdate(e, n) {
|
|
19221
19207
|
const { didCatch: r } = this.state, { resetKeys: s } = this.props;
|
|
19222
|
-
r && n.error !== null &&
|
|
19208
|
+
r && n.error !== null && Hy(e.resetKeys, s) && (this.props.onReset?.({
|
|
19223
19209
|
next: s,
|
|
19224
19210
|
prev: e.resetKeys,
|
|
19225
19211
|
reason: "keys"
|
|
@@ -19243,7 +19229,7 @@ class WC extends pl {
|
|
|
19243
19229
|
throw o;
|
|
19244
19230
|
}
|
|
19245
19231
|
return Do(
|
|
19246
|
-
|
|
19232
|
+
Uy.Provider,
|
|
19247
19233
|
{
|
|
19248
19234
|
value: {
|
|
19249
19235
|
didCatch: i,
|
|
@@ -19255,21 +19241,21 @@ class WC extends pl {
|
|
|
19255
19241
|
);
|
|
19256
19242
|
}
|
|
19257
19243
|
}
|
|
19258
|
-
function
|
|
19244
|
+
function Hy(t = [], e = []) {
|
|
19259
19245
|
return t.length !== e.length || t.some((n, r) => !Object.is(n, e[r]));
|
|
19260
19246
|
}
|
|
19261
|
-
function
|
|
19247
|
+
function Xy({
|
|
19262
19248
|
children: t,
|
|
19263
19249
|
locale: e
|
|
19264
19250
|
}) {
|
|
19265
19251
|
const n = un(() => jc(e), [e]);
|
|
19266
19252
|
return /* @__PURE__ */ H(Kc.Provider, { value: n, children: t });
|
|
19267
19253
|
}
|
|
19268
|
-
function
|
|
19254
|
+
function Zy({ reset: t }) {
|
|
19269
19255
|
const { t: e } = xn();
|
|
19270
19256
|
return /* @__PURE__ */ H("button", { type: "button", onClick: t, children: e("app.restart") });
|
|
19271
19257
|
}
|
|
19272
|
-
function
|
|
19258
|
+
function jy({
|
|
19273
19259
|
config: t,
|
|
19274
19260
|
api: e,
|
|
19275
19261
|
children: n,
|
|
@@ -19312,71 +19298,71 @@ function jC({
|
|
|
19312
19298
|
}
|
|
19313
19299
|
);
|
|
19314
19300
|
}
|
|
19315
|
-
function
|
|
19301
|
+
function Ky({ config: t, api: e }) {
|
|
19316
19302
|
const [n, r] = he(t), [s, i] = he(t.locale);
|
|
19317
19303
|
return Y(() => (e.registerSetSession((o) => {
|
|
19318
19304
|
r((a) => ({
|
|
19319
19305
|
...a,
|
|
19320
19306
|
customerInteractionSession: o
|
|
19321
19307
|
}));
|
|
19322
|
-
}), () => e.registerSetSession(null)), [e]), Y(() => (e.registerSetLocale(i), () => e.registerSetLocale(null)), [e]), /* @__PURE__ */ H(
|
|
19323
|
-
|
|
19308
|
+
}), () => e.registerSetSession(null)), [e]), Y(() => (e.registerSetLocale(i), () => e.registerSetLocale(null)), [e]), /* @__PURE__ */ H(Xy, { locale: s, children: /* @__PURE__ */ H(
|
|
19309
|
+
Wy,
|
|
19324
19310
|
{
|
|
19325
|
-
fallbackRender: ({ resetErrorBoundary: o }) => /* @__PURE__ */ H(
|
|
19311
|
+
fallbackRender: ({ resetErrorBoundary: o }) => /* @__PURE__ */ H(Zy, { reset: o }),
|
|
19326
19312
|
onError: (o, a) => {
|
|
19327
19313
|
re.error("Widget render failed", o, a.componentStack);
|
|
19328
19314
|
},
|
|
19329
|
-
children: /* @__PURE__ */ H(
|
|
19315
|
+
children: /* @__PURE__ */ H(Cd, { children: /* @__PURE__ */ H(P1, { config: n, api: e, children: /* @__PURE__ */ H(jy, { config: n, api: e, children: /* @__PURE__ */ H(qy, {}) }) }) })
|
|
19330
19316
|
}
|
|
19331
19317
|
) });
|
|
19332
19318
|
}
|
|
19333
|
-
function
|
|
19319
|
+
function Yy(t, e, n) {
|
|
19334
19320
|
const r = Sl(t);
|
|
19335
|
-
return r.render(/* @__PURE__ */ H(
|
|
19321
|
+
return r.render(/* @__PURE__ */ H(Ky, { config: { ...e }, api: n })), r;
|
|
19336
19322
|
}
|
|
19337
|
-
const
|
|
19323
|
+
const MC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19338
19324
|
__proto__: null,
|
|
19339
|
-
mountWidget:
|
|
19325
|
+
mountWidget: Yy
|
|
19340
19326
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
19341
19327
|
export {
|
|
19342
19328
|
Fm as A,
|
|
19343
|
-
|
|
19329
|
+
dC as B,
|
|
19344
19330
|
st as C,
|
|
19345
|
-
|
|
19331
|
+
yC as D,
|
|
19346
19332
|
Sm as E,
|
|
19347
|
-
|
|
19333
|
+
sC as F,
|
|
19348
19334
|
wt as G,
|
|
19349
|
-
|
|
19350
|
-
|
|
19335
|
+
wC as H,
|
|
19336
|
+
EC as I,
|
|
19351
19337
|
cb as J,
|
|
19352
|
-
|
|
19353
|
-
|
|
19338
|
+
oC as K,
|
|
19339
|
+
aC as L,
|
|
19354
19340
|
fe as M,
|
|
19355
19341
|
$t as N,
|
|
19356
|
-
|
|
19342
|
+
uC as O,
|
|
19357
19343
|
Te as P,
|
|
19358
|
-
|
|
19359
|
-
|
|
19344
|
+
cC as Q,
|
|
19345
|
+
lC as R,
|
|
19360
19346
|
M1 as S,
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
|
|
19347
|
+
AC as T,
|
|
19348
|
+
SC as U,
|
|
19349
|
+
iC as V,
|
|
19364
19350
|
Hi as W,
|
|
19365
|
-
|
|
19351
|
+
nC as X,
|
|
19366
19352
|
Id as Y,
|
|
19367
|
-
|
|
19368
|
-
|
|
19353
|
+
tC as Z,
|
|
19354
|
+
MC as _,
|
|
19369
19355
|
Wr as a,
|
|
19370
19356
|
Vs as b,
|
|
19371
19357
|
Uc as c,
|
|
19372
|
-
|
|
19358
|
+
kC as d,
|
|
19373
19359
|
vs as e,
|
|
19374
19360
|
Ht as f,
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
|
|
19361
|
+
RC as g,
|
|
19362
|
+
xC as h,
|
|
19363
|
+
TC as i,
|
|
19378
19364
|
Nm as j,
|
|
19379
|
-
|
|
19365
|
+
CC as k,
|
|
19380
19366
|
sl as l,
|
|
19381
19367
|
Ts as m,
|
|
19382
19368
|
Em as n,
|
|
@@ -19384,12 +19370,12 @@ export {
|
|
|
19384
19370
|
Pu as p,
|
|
19385
19371
|
Ou as q,
|
|
19386
19372
|
om as r,
|
|
19387
|
-
|
|
19388
|
-
|
|
19373
|
+
pC as s,
|
|
19374
|
+
gC as t,
|
|
19389
19375
|
xn as u,
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
|
|
19376
|
+
mC as v,
|
|
19377
|
+
hC as w,
|
|
19378
|
+
fC as x,
|
|
19379
|
+
bC as y,
|
|
19380
|
+
IC as z
|
|
19395
19381
|
};
|