@2uinc/frontend-component-xpert-chatbot 1.40.18-alpha.21 → 1.40.18-alpha.22
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/lib/index.min.js +470 -468
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
|
@@ -173,8 +173,8 @@ _a.exports;
|
|
|
173
173
|
var Gl;
|
|
174
174
|
function bp() {
|
|
175
175
|
return Gl || (Gl = 1, (function(e, t) {
|
|
176
|
-
var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", o = "[object Array]", l = "[object AsyncFunction]", c = "[object Boolean]", h = "[object Date]", p = "[object Error]", m = "[object Function]", y = "[object GeneratorFunction]", b = "[object Map]", E = "[object Number]", T = "[object Null]", I = "[object Object]", B = "[object Proxy]",
|
|
177
|
-
k[$] = k[
|
|
176
|
+
var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", o = "[object Array]", l = "[object AsyncFunction]", c = "[object Boolean]", h = "[object Date]", p = "[object Error]", m = "[object Function]", y = "[object GeneratorFunction]", b = "[object Map]", E = "[object Number]", T = "[object Null]", I = "[object Object]", B = "[object Proxy]", K = "[object RegExp]", z = "[object Set]", w = "[object String]", P = "[object Undefined]", X = "[object WeakMap]", j = "[object ArrayBuffer]", ne = "[object DataView]", $ = "[object Float32Array]", W = "[object Float64Array]", F = "[object Int8Array]", D = "[object Int16Array]", H = "[object Int32Array]", G = "[object Uint8Array]", J = "[object Uint8ClampedArray]", Q = "[object Uint16Array]", Y = "[object Uint32Array]", A = /[\\^$.*+?()[\]{}|]/g, oe = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, k = {};
|
|
177
|
+
k[$] = k[W] = k[F] = k[D] = k[H] = k[G] = k[J] = k[Q] = k[Y] = !0, k[s] = k[o] = k[j] = k[c] = k[ne] = k[h] = k[p] = k[m] = k[b] = k[E] = k[I] = k[K] = k[z] = k[w] = k[X] = !1;
|
|
178
178
|
var Ee = typeof li == "object" && li && li.Object === Object && li, Oe = typeof self == "object" && self && self.Object === Object && self, ke = Ee || Oe || Function("return this")(), Me = t && !t.nodeType && t, Ye = Me && !0 && e && !e.nodeType && e, Ge = Ye && Ye.exports === Me, Ve = Ge && Ee.process, et = (function() {
|
|
179
179
|
try {
|
|
180
180
|
var N = Ye && Ye.require && Ye.require("util").types;
|
|
@@ -1609,7 +1609,7 @@ const Zl = 991, Lp = () => {
|
|
|
1609
1609
|
externalStreaming: r = !1,
|
|
1610
1610
|
externalTriggerSurvey: a = !1
|
|
1611
1611
|
}) => {
|
|
1612
|
-
const [i, u] = we(!1), [s, o] = we(!1), [l, c] = we(!1), [h, p] = we(!0), [m, y] = we(!1), [b, E] = we(!1), [T, I] = we(!1), [B,
|
|
1612
|
+
const [i, u] = we(!1), [s, o] = we(!1), [l, c] = we(!1), [h, p] = we(!0), [m, y] = we(!1), [b, E] = we(!1), [T, I] = we(!1), [B, K] = we(kn.XPERT), z = Lp(), w = {
|
|
1613
1613
|
disabledScroll: i,
|
|
1614
1614
|
externalTriggerSurvey: a,
|
|
1615
1615
|
externalStreaming: r,
|
|
@@ -1629,7 +1629,7 @@ const Zl = 991, Lp = () => {
|
|
|
1629
1629
|
setLoading: y,
|
|
1630
1630
|
setLoadingHistory: E,
|
|
1631
1631
|
setStreaming: I,
|
|
1632
|
-
setMode:
|
|
1632
|
+
setMode: K
|
|
1633
1633
|
};
|
|
1634
1634
|
return /* @__PURE__ */ C.jsx(jt.Provider, { value: w, children: e });
|
|
1635
1635
|
};
|
|
@@ -1676,15 +1676,18 @@ const yr = Ji({}), We = {
|
|
|
1676
1676
|
const a = ct(null), i = ct(null), { id: u } = Ae(_t), { setLoading: s, setStreaming: o } = Ae(jt), [l, c] = we(null), [h, p] = we(!1), [m, y] = we([]), [b, E] = we([]), T = er(() => {
|
|
1677
1677
|
c(null), p(!1), y([]), E([]), tn.remove(`${u}-conversation-history-id`);
|
|
1678
1678
|
}, [u, c]), I = (w) => {
|
|
1679
|
-
if (y((
|
|
1679
|
+
if (y(($) => [...$, w]), t == null)
|
|
1680
1680
|
return;
|
|
1681
1681
|
const P = w?.content;
|
|
1682
|
-
if (typeof P != "string"
|
|
1682
|
+
if (typeof P != "string")
|
|
1683
1683
|
return;
|
|
1684
|
-
const
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1684
|
+
const X = P.trimStart();
|
|
1685
|
+
if (!(X.startsWith("---") || X === "We've returned to standard tutoring. How can I help you with your course material?"))
|
|
1686
|
+
return;
|
|
1687
|
+
const ne = Array.isArray(t) ? t.length : 0;
|
|
1688
|
+
E(($) => {
|
|
1689
|
+
const W = $[$.length - 1]?.message;
|
|
1690
|
+
return W?.role === w?.role && W?.content === w?.content ? $ : [...$, { insertionPoint: ne, message: w }];
|
|
1688
1691
|
});
|
|
1689
1692
|
}, B = $t(() => {
|
|
1690
1693
|
if (t == null)
|
|
@@ -1692,26 +1695,25 @@ const yr = Ji({}), We = {
|
|
|
1692
1695
|
const w = Array.isArray(t) ? t : [];
|
|
1693
1696
|
if (!b.length)
|
|
1694
1697
|
return w;
|
|
1695
|
-
const P = ($) => `${$?.role ?? ""}::${$?.content ?? ""}`,
|
|
1696
|
-
for (const { insertionPoint: $, message:
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
K.add(D);
|
|
1698
|
+
const P = ($) => `${$?.role ?? ""}::${$?.content ?? ""}`, X = new Set(w.map(P)), j = /* @__PURE__ */ new Map();
|
|
1699
|
+
for (const { insertionPoint: $, message: W } of b) {
|
|
1700
|
+
if (typeof W?.content != "string") continue;
|
|
1701
|
+
const D = P(W);
|
|
1702
|
+
if (X.has(D)) continue;
|
|
1703
|
+
X.add(D);
|
|
1702
1704
|
const H = Math.min(
|
|
1703
1705
|
Math.max(0, $ ?? w.length),
|
|
1704
1706
|
w.length
|
|
1705
|
-
),
|
|
1706
|
-
|
|
1707
|
+
), G = j.get(H) ?? [];
|
|
1708
|
+
G.push(W), j.set(H, G);
|
|
1707
1709
|
}
|
|
1708
1710
|
const ne = [];
|
|
1709
1711
|
for (let $ = 0; $ <= w.length; $ += 1) {
|
|
1710
|
-
const
|
|
1711
|
-
|
|
1712
|
+
const W = j.get($);
|
|
1713
|
+
W?.length && ne.push(...W), $ < w.length && ne.push(w[$]);
|
|
1712
1714
|
}
|
|
1713
1715
|
return ne;
|
|
1714
|
-
}, [
|
|
1716
|
+
}, [t, b, m]), z = {
|
|
1715
1717
|
contentRef: a,
|
|
1716
1718
|
abortControllerRef: i,
|
|
1717
1719
|
conversationId: l,
|
|
@@ -1844,8 +1846,8 @@ eyes follow your mouse when you hover near it.`, id = ({
|
|
|
1844
1846
|
i.current.querySelectorAll(
|
|
1845
1847
|
".xpert_chatbot__animated_graduate__pupil"
|
|
1846
1848
|
).forEach((T) => {
|
|
1847
|
-
const I = T.getBoundingClientRect(), B = (y.pageX - window.scrollX - I.left) / 30 / 16 + "rem",
|
|
1848
|
-
T.style.transform = "translate3d(" + B + "," +
|
|
1849
|
+
const I = T.getBoundingClientRect(), B = (y.pageX - window.scrollX - I.left) / 30 / 16 + "rem", K = (y.pageY - window.scrollY - I.top) / 30 / 16 + "rem";
|
|
1850
|
+
T.style.transform = "translate3d(" + B + "," + K + ", 0rem)";
|
|
1849
1851
|
});
|
|
1850
1852
|
};
|
|
1851
1853
|
return window.addEventListener("mousemove", m), () => {
|
|
@@ -2423,14 +2425,14 @@ var r0 = {
|
|
|
2423
2425
|
return F && F[D] !== void 0 ? F[D] : i[H || D];
|
|
2424
2426
|
}, l = function(F, D) {
|
|
2425
2427
|
var H = typeof D?.composedPath == "function" ? D.composedPath() : void 0;
|
|
2426
|
-
return u.containerGroups.findIndex(function(
|
|
2427
|
-
var J =
|
|
2428
|
+
return u.containerGroups.findIndex(function(G) {
|
|
2429
|
+
var J = G.container, Q = G.tabbableNodes;
|
|
2428
2430
|
return J.contains(F) || H?.includes(J) || Q.find(function(Y) {
|
|
2429
2431
|
return Y === F;
|
|
2430
2432
|
});
|
|
2431
2433
|
});
|
|
2432
2434
|
}, c = function(F) {
|
|
2433
|
-
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, H = D.hasFallback,
|
|
2435
|
+
var D = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, H = D.hasFallback, G = H === void 0 ? !1 : H, J = D.params, Q = J === void 0 ? [] : J, Y = i[F];
|
|
2434
2436
|
if (typeof Y == "function" && (Y = Y.apply(void 0, u4(Q))), Y === !0 && (Y = void 0), !Y) {
|
|
2435
2437
|
if (Y === void 0 || Y === !1)
|
|
2436
2438
|
return Y;
|
|
@@ -2443,7 +2445,7 @@ var r0 = {
|
|
|
2443
2445
|
} catch (oe) {
|
|
2444
2446
|
throw new Error("`".concat(F, '` appears to be an invalid selector; error="').concat(oe.message, '"'));
|
|
2445
2447
|
}
|
|
2446
|
-
if (!A && !
|
|
2448
|
+
if (!A && !G)
|
|
2447
2449
|
throw new Error("`".concat(F, "` as selector refers to no known node"));
|
|
2448
2450
|
}
|
|
2449
2451
|
return A;
|
|
@@ -2466,7 +2468,7 @@ var r0 = {
|
|
|
2466
2468
|
return F;
|
|
2467
2469
|
}, p = function() {
|
|
2468
2470
|
if (u.containerGroups = u.containers.map(function(F) {
|
|
2469
|
-
var D = md(F, i.tabbableOptions), H = pd(F, i.tabbableOptions),
|
|
2471
|
+
var D = md(F, i.tabbableOptions), H = pd(F, i.tabbableOptions), G = D.length > 0 ? D[0] : void 0, J = D.length > 0 ? D[D.length - 1] : void 0, Q = H.find(function(oe) {
|
|
2470
2472
|
return _r(oe);
|
|
2471
2473
|
}), Y = H.slice().reverse().find(function(oe) {
|
|
2472
2474
|
return _r(oe);
|
|
@@ -2480,7 +2482,7 @@ var r0 = {
|
|
|
2480
2482
|
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
2481
2483
|
posTabIndexesFound: A,
|
|
2482
2484
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
2483
|
-
firstTabbableNode:
|
|
2485
|
+
firstTabbableNode: G,
|
|
2484
2486
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
2485
2487
|
lastTabbableNode: J,
|
|
2486
2488
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
@@ -2539,7 +2541,7 @@ var r0 = {
|
|
|
2539
2541
|
});
|
|
2540
2542
|
return D || (D === !1 ? !1 : F);
|
|
2541
2543
|
}, E = function(F) {
|
|
2542
|
-
var D = F.target, H = F.event,
|
|
2544
|
+
var D = F.target, H = F.event, G = F.isBackward, J = G === void 0 ? !1 : G;
|
|
2543
2545
|
D = D || di(H), p();
|
|
2544
2546
|
var Q = null;
|
|
2545
2547
|
if (u.tabbableGroups.length > 0) {
|
|
@@ -2591,7 +2593,7 @@ var r0 = {
|
|
|
2591
2593
|
H && (u.mostRecentlyFocusedNode = D);
|
|
2592
2594
|
else {
|
|
2593
2595
|
F.stopImmediatePropagation();
|
|
2594
|
-
var
|
|
2596
|
+
var G, J = !0;
|
|
2595
2597
|
if (u.mostRecentlyFocusedNode)
|
|
2596
2598
|
if (dr(u.mostRecentlyFocusedNode) > 0) {
|
|
2597
2599
|
var Q = l(u.mostRecentlyFocusedNode), Y = u.containerGroups[Q].tabbableNodes;
|
|
@@ -2599,7 +2601,7 @@ var r0 = {
|
|
|
2599
2601
|
var A = Y.findIndex(function(oe) {
|
|
2600
2602
|
return oe === u.mostRecentlyFocusedNode;
|
|
2601
2603
|
});
|
|
2602
|
-
A >= 0 && (i.isKeyForward(u.recentNavEvent) ? A + 1 < Y.length && (
|
|
2604
|
+
A >= 0 && (i.isKeyForward(u.recentNavEvent) ? A + 1 < Y.length && (G = Y[A + 1], J = !1) : A - 1 >= 0 && (G = Y[A - 1], J = !1));
|
|
2603
2605
|
}
|
|
2604
2606
|
} else
|
|
2605
2607
|
u.containerGroups.some(function(oe) {
|
|
@@ -2609,12 +2611,12 @@ var r0 = {
|
|
|
2609
2611
|
}) || (J = !1);
|
|
2610
2612
|
else
|
|
2611
2613
|
J = !1;
|
|
2612
|
-
J && (
|
|
2614
|
+
J && (G = E({
|
|
2613
2615
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
2614
2616
|
// outside the trap causing the focus escape we're trying to fix)
|
|
2615
2617
|
target: u.mostRecentlyFocusedNode,
|
|
2616
2618
|
isBackward: i.isKeyBackward(u.recentNavEvent)
|
|
2617
|
-
})), y(
|
|
2619
|
+
})), y(G || u.mostRecentlyFocusedNode || h());
|
|
2618
2620
|
}
|
|
2619
2621
|
u.recentNavEvent = void 0;
|
|
2620
2622
|
}, B = function(F) {
|
|
@@ -2625,7 +2627,7 @@ var r0 = {
|
|
|
2625
2627
|
isBackward: D
|
|
2626
2628
|
});
|
|
2627
2629
|
H && (Oa(F) && F.preventDefault(), y(H));
|
|
2628
|
-
},
|
|
2630
|
+
}, K = function(F) {
|
|
2629
2631
|
(i.isKeyForward(F) || i.isKeyBackward(F)) && B(F, i.isKeyBackward(F));
|
|
2630
2632
|
}, z = function(F) {
|
|
2631
2633
|
d4(F) && ya(i.escapeDeactivates, F) !== !1 && (F.preventDefault(), s.deactivate());
|
|
@@ -2645,17 +2647,17 @@ var r0 = {
|
|
|
2645
2647
|
}), r.addEventListener("click", w, {
|
|
2646
2648
|
capture: !0,
|
|
2647
2649
|
passive: !1
|
|
2648
|
-
}), r.addEventListener("keydown",
|
|
2650
|
+
}), r.addEventListener("keydown", K, {
|
|
2649
2651
|
capture: !0,
|
|
2650
2652
|
passive: !1
|
|
2651
2653
|
}), r.addEventListener("keydown", z), s;
|
|
2652
|
-
},
|
|
2654
|
+
}, X = function() {
|
|
2653
2655
|
if (u.active)
|
|
2654
|
-
return r.removeEventListener("focusin", I, !0), r.removeEventListener("mousedown", T, !0), r.removeEventListener("touchstart", T, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown",
|
|
2656
|
+
return r.removeEventListener("focusin", I, !0), r.removeEventListener("mousedown", T, !0), r.removeEventListener("touchstart", T, !0), r.removeEventListener("click", w, !0), r.removeEventListener("keydown", K, !0), r.removeEventListener("keydown", z), s;
|
|
2655
2657
|
}, j = function(F) {
|
|
2656
2658
|
var D = F.some(function(H) {
|
|
2657
|
-
var
|
|
2658
|
-
return
|
|
2659
|
+
var G = Array.from(H.removedNodes);
|
|
2660
|
+
return G.some(function(J) {
|
|
2659
2661
|
return J === u.mostRecentlyFocusedNode;
|
|
2660
2662
|
});
|
|
2661
2663
|
});
|
|
@@ -2678,12 +2680,12 @@ var r0 = {
|
|
|
2678
2680
|
activate: function(F) {
|
|
2679
2681
|
if (u.active)
|
|
2680
2682
|
return this;
|
|
2681
|
-
var D = o(F, "onActivate"), H = o(F, "onPostActivate"),
|
|
2682
|
-
|
|
2683
|
+
var D = o(F, "onActivate"), H = o(F, "onPostActivate"), G = o(F, "checkCanFocusTrap");
|
|
2684
|
+
G || p(), u.active = !0, u.paused = !1, u.nodeFocusedBeforeActivation = m(r), D?.();
|
|
2683
2685
|
var J = function() {
|
|
2684
|
-
|
|
2686
|
+
G && p(), P(), $(), H?.();
|
|
2685
2687
|
};
|
|
2686
|
-
return
|
|
2688
|
+
return G ? (G(u.containers.concat()).then(J, J), this) : (J(), this);
|
|
2687
2689
|
},
|
|
2688
2690
|
deactivate: function(F) {
|
|
2689
2691
|
if (!u.active)
|
|
@@ -2693,12 +2695,12 @@ var r0 = {
|
|
|
2693
2695
|
onPostDeactivate: i.onPostDeactivate,
|
|
2694
2696
|
checkCanReturnFocus: i.checkCanReturnFocus
|
|
2695
2697
|
}, F);
|
|
2696
|
-
clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0,
|
|
2697
|
-
var H = o(D, "onDeactivate"),
|
|
2698
|
+
clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, X(), u.active = !1, u.paused = !1, $(), r0.deactivateTrap(a, s);
|
|
2699
|
+
var H = o(D, "onDeactivate"), G = o(D, "onPostDeactivate"), J = o(D, "checkCanReturnFocus"), Q = o(D, "returnFocus", "returnFocusOnDeactivate");
|
|
2698
2700
|
H?.();
|
|
2699
2701
|
var Y = function() {
|
|
2700
2702
|
a0(function() {
|
|
2701
|
-
Q && y(b(u.nodeFocusedBeforeActivation)),
|
|
2703
|
+
Q && y(b(u.nodeFocusedBeforeActivation)), G?.();
|
|
2702
2704
|
});
|
|
2703
2705
|
};
|
|
2704
2706
|
return Q && J ? (J(b(u.nodeFocusedBeforeActivation)).then(Y, Y), this) : (Y(), this);
|
|
@@ -2726,8 +2728,8 @@ var r0 = {
|
|
|
2726
2728
|
if (u.paused === F)
|
|
2727
2729
|
return this;
|
|
2728
2730
|
if (u.paused = F, F) {
|
|
2729
|
-
var H = o(D, "onPause"),
|
|
2730
|
-
H?.(),
|
|
2731
|
+
var H = o(D, "onPause"), G = o(D, "onPostPause");
|
|
2732
|
+
H?.(), X(), $(), G?.();
|
|
2731
2733
|
} else {
|
|
2732
2734
|
var J = o(D, "onUnpause"), Q = o(D, "onPostUnpause");
|
|
2733
2735
|
J?.(), p(), P(), $(), Q?.();
|
|
@@ -2757,16 +2759,16 @@ function v4() {
|
|
|
2757
2759
|
if (!(w instanceof P)) throw new TypeError("Cannot call a class as a function");
|
|
2758
2760
|
}
|
|
2759
2761
|
function n(w, P) {
|
|
2760
|
-
for (var
|
|
2761
|
-
var j = P[
|
|
2762
|
+
for (var X = 0; X < P.length; X++) {
|
|
2763
|
+
var j = P[X];
|
|
2762
2764
|
j.enumerable = j.enumerable || !1, j.configurable = !0, "value" in j && (j.writable = !0), Object.defineProperty(w, p(j.key), j);
|
|
2763
2765
|
}
|
|
2764
2766
|
}
|
|
2765
|
-
function r(w, P,
|
|
2767
|
+
function r(w, P, X) {
|
|
2766
2768
|
return P && n(w.prototype, P), Object.defineProperty(w, "prototype", { writable: !1 }), w;
|
|
2767
2769
|
}
|
|
2768
|
-
function a(w, P,
|
|
2769
|
-
return P = o(P), i(w, s() ? Reflect.construct(P,
|
|
2770
|
+
function a(w, P, X) {
|
|
2771
|
+
return P = o(P), i(w, s() ? Reflect.construct(P, X || [], o(w).constructor) : P.apply(w, X));
|
|
2770
2772
|
}
|
|
2771
2773
|
function i(w, P) {
|
|
2772
2774
|
if (P && (e(P) == "object" || typeof P == "function")) return P;
|
|
@@ -2797,12 +2799,12 @@ function v4() {
|
|
|
2797
2799
|
w.prototype = Object.create(P && P.prototype, { constructor: { value: w, writable: !0, configurable: !0 } }), Object.defineProperty(w, "prototype", { writable: !1 }), P && c(w, P);
|
|
2798
2800
|
}
|
|
2799
2801
|
function c(w, P) {
|
|
2800
|
-
return c = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
2801
|
-
return
|
|
2802
|
+
return c = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(X, j) {
|
|
2803
|
+
return X.__proto__ = j, X;
|
|
2802
2804
|
}, c(w, P);
|
|
2803
2805
|
}
|
|
2804
|
-
function h(w, P,
|
|
2805
|
-
return (P = p(P)) in w ? Object.defineProperty(w, P, { value:
|
|
2806
|
+
function h(w, P, X) {
|
|
2807
|
+
return (P = p(P)) in w ? Object.defineProperty(w, P, { value: X, enumerable: !0, configurable: !0, writable: !0 }) : w[P] = X, w;
|
|
2806
2808
|
}
|
|
2807
2809
|
function p(w) {
|
|
2808
2810
|
var P = m(w, "string");
|
|
@@ -2810,34 +2812,34 @@ function v4() {
|
|
|
2810
2812
|
}
|
|
2811
2813
|
function m(w, P) {
|
|
2812
2814
|
if (e(w) != "object" || !w) return w;
|
|
2813
|
-
var
|
|
2814
|
-
if (
|
|
2815
|
-
var j =
|
|
2815
|
+
var X = w[Symbol.toPrimitive];
|
|
2816
|
+
if (X !== void 0) {
|
|
2817
|
+
var j = X.call(w, P);
|
|
2816
2818
|
if (e(j) != "object") return j;
|
|
2817
2819
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2818
2820
|
}
|
|
2819
2821
|
return (P === "string" ? String : Number)(w);
|
|
2820
2822
|
}
|
|
2821
|
-
var y = _n, b = /* @__PURE__ */ Z1(), E = b4, T = E.createFocusTrap, I = y4, B = I.isFocusable,
|
|
2822
|
-
function P(
|
|
2823
|
+
var y = _n, b = /* @__PURE__ */ Z1(), E = b4, T = E.createFocusTrap, I = y4, B = I.isFocusable, K = /* @__PURE__ */ (function(w) {
|
|
2824
|
+
function P(X) {
|
|
2823
2825
|
var j;
|
|
2824
|
-
t(this, P), j = a(this, P, [
|
|
2825
|
-
var F, D = (F = this.internalOptions[
|
|
2826
|
+
t(this, P), j = a(this, P, [X]), h(j, "getNodeForOption", function(W) {
|
|
2827
|
+
var F, D = (F = this.internalOptions[W]) !== null && F !== void 0 ? F : this.originalOptions[W];
|
|
2826
2828
|
if (typeof D == "function") {
|
|
2827
|
-
for (var H = arguments.length,
|
|
2828
|
-
|
|
2829
|
-
D = D.apply(void 0,
|
|
2829
|
+
for (var H = arguments.length, G = new Array(H > 1 ? H - 1 : 0), J = 1; J < H; J++)
|
|
2830
|
+
G[J - 1] = arguments[J];
|
|
2831
|
+
D = D.apply(void 0, G);
|
|
2830
2832
|
}
|
|
2831
2833
|
if (D === !0 && (D = void 0), !D) {
|
|
2832
2834
|
if (D === void 0 || D === !1)
|
|
2833
2835
|
return D;
|
|
2834
|
-
throw new Error("`".concat(
|
|
2836
|
+
throw new Error("`".concat(W, "` was specified but was not a node, or did not return a node"));
|
|
2835
2837
|
}
|
|
2836
2838
|
var Q = D;
|
|
2837
2839
|
if (typeof D == "string") {
|
|
2838
2840
|
var Y;
|
|
2839
2841
|
if (Q = (Y = this.getDocument()) === null || Y === void 0 ? void 0 : Y.querySelector(D), !Q)
|
|
2840
|
-
throw new Error("`".concat(
|
|
2842
|
+
throw new Error("`".concat(W, "` as selector refers to no known node"));
|
|
2841
2843
|
}
|
|
2842
2844
|
return Q;
|
|
2843
2845
|
}), j.handleDeactivate = j.handleDeactivate.bind(j), j.handlePostDeactivate = j.handlePostDeactivate.bind(j), j.handleClickOutsideDeactivates = j.handleClickOutsideDeactivates.bind(j), j.internalOptions = {
|
|
@@ -2870,7 +2872,7 @@ function v4() {
|
|
|
2870
2872
|
// the user's setting, defaulted to false since focus-trap defaults this to false
|
|
2871
2873
|
clickOutsideDeactivates: !1
|
|
2872
2874
|
};
|
|
2873
|
-
var ne =
|
|
2875
|
+
var ne = X.focusTrapOptions;
|
|
2874
2876
|
for (var $ in ne)
|
|
2875
2877
|
if (Object.prototype.hasOwnProperty.call(ne, $)) {
|
|
2876
2878
|
if ($ === "returnFocusOnDeactivate" || $ === "onDeactivate" || $ === "onPostDeactivate" || $ === "checkCanReturnFocus" || $ === "clickOutsideDeactivates") {
|
|
@@ -2879,7 +2881,7 @@ function v4() {
|
|
|
2879
2881
|
}
|
|
2880
2882
|
j.internalOptions[$] = ne[$];
|
|
2881
2883
|
}
|
|
2882
|
-
return j.outsideClick = null, j.focusTrapElements =
|
|
2884
|
+
return j.outsideClick = null, j.focusTrapElements = X.containerElements || [], j.updatePreviousElement(), j;
|
|
2883
2885
|
}
|
|
2884
2886
|
return l(P, w), r(P, [{
|
|
2885
2887
|
key: "getDocument",
|
|
@@ -2937,15 +2939,15 @@ function v4() {
|
|
|
2937
2939
|
key: "handlePostDeactivate",
|
|
2938
2940
|
value: function() {
|
|
2939
2941
|
var j = this, ne = function() {
|
|
2940
|
-
var
|
|
2942
|
+
var W = j.getReturnFocusNode(), F = !!// did the consumer allow it?
|
|
2941
2943
|
(j.originalOptions.returnFocusOnDeactivate && // can we actually focus the node?
|
|
2942
|
-
|
|
2944
|
+
W !== null && W !== void 0 && W.focus && // was there an outside click that allowed deactivation?
|
|
2943
2945
|
(!j.outsideClick || // did the consumer allow deactivation when the outside node was clicked?
|
|
2944
2946
|
j.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
|
|
2945
2947
|
// as a result of the click-through) -- in which case do NOT restore focus
|
|
2946
2948
|
// to `returnFocusNode` because focus should remain on the outside node
|
|
2947
2949
|
!B(j.outsideClick.target, j.internalOptions.tabbableOptions))), D = j.internalOptions.preventScroll, H = D === void 0 ? !1 : D;
|
|
2948
|
-
F &&
|
|
2950
|
+
F && W.focus({
|
|
2949
2951
|
preventScroll: H
|
|
2950
2952
|
}), j.originalOptions.onPostDeactivate && j.originalOptions.onPostDeactivate.call(null), j.outsideClick = null;
|
|
2951
2953
|
};
|
|
@@ -2971,12 +2973,12 @@ function v4() {
|
|
|
2971
2973
|
value: function(j) {
|
|
2972
2974
|
if (this.focusTrap) {
|
|
2973
2975
|
j.containerElements !== this.props.containerElements && this.focusTrap.updateContainerElements(this.props.containerElements);
|
|
2974
|
-
var ne = !j.active && this.props.active, $ = j.active && !this.props.active,
|
|
2976
|
+
var ne = !j.active && this.props.active, $ = j.active && !this.props.active, W = !j.paused && this.props.paused, F = j.paused && !this.props.paused;
|
|
2975
2977
|
if (ne && (this.updatePreviousElement(), this.focusTrap.activate()), $) {
|
|
2976
2978
|
this.deactivateTrap();
|
|
2977
2979
|
return;
|
|
2978
2980
|
}
|
|
2979
|
-
|
|
2981
|
+
W && this.focusTrap.pause(), F && this.focusTrap.unpause();
|
|
2980
2982
|
} else
|
|
2981
2983
|
j.containerElements !== this.props.containerElements && (this.focusTrapElements = this.props.containerElements), this.props.active && (this.updatePreviousElement(), this.setupFocusTrap());
|
|
2982
2984
|
}
|
|
@@ -2995,16 +2997,16 @@ function v4() {
|
|
|
2995
2997
|
var $ = function(D) {
|
|
2996
2998
|
var H = j.props.containerElements;
|
|
2997
2999
|
ne && (typeof ne.ref == "function" ? ne.ref(D) : ne.ref && (ne.ref.current = D)), j.focusTrapElements = H || [D];
|
|
2998
|
-
},
|
|
3000
|
+
}, W = y.cloneElement(ne, {
|
|
2999
3001
|
ref: $
|
|
3000
3002
|
});
|
|
3001
|
-
return
|
|
3003
|
+
return W;
|
|
3002
3004
|
}
|
|
3003
3005
|
return null;
|
|
3004
3006
|
}
|
|
3005
3007
|
}]);
|
|
3006
3008
|
})(y.Component), z = typeof Element > "u" ? Function : Element;
|
|
3007
|
-
return
|
|
3009
|
+
return K.propTypes = {
|
|
3008
3010
|
active: b.bool,
|
|
3009
3011
|
paused: b.bool,
|
|
3010
3012
|
focusTrapOptions: b.shape({
|
|
@@ -3051,12 +3053,12 @@ function v4() {
|
|
|
3051
3053
|
// NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
|
|
3052
3054
|
// specify it here. It's expected to be set to the function returned from
|
|
3053
3055
|
// require('focus-trap'), or one with a compatible interface.
|
|
3054
|
-
},
|
|
3056
|
+
}, K.defaultProps = {
|
|
3055
3057
|
active: !0,
|
|
3056
3058
|
paused: !1,
|
|
3057
3059
|
focusTrapOptions: {},
|
|
3058
3060
|
_createFocusTrap: T
|
|
3059
|
-
}, ju =
|
|
3061
|
+
}, ju = K, ju;
|
|
3060
3062
|
}
|
|
3061
3063
|
var T4 = v4();
|
|
3062
3064
|
const E4 = /* @__PURE__ */ Hn(T4);
|
|
@@ -3392,19 +3394,19 @@ function P4(e, t) {
|
|
|
3392
3394
|
const E = [], T = b.hFlip, I = b.vFlip;
|
|
3393
3395
|
let B = b.rotate;
|
|
3394
3396
|
T ? I ? B += 2 : (E.push("translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"), E.push("scale(-1 1)"), a.top = a.left = 0) : I && (E.push("translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"), E.push("scale(1 -1)"), a.top = a.left = 0);
|
|
3395
|
-
let
|
|
3397
|
+
let K;
|
|
3396
3398
|
switch (B < 0 && (B -= Math.floor(B / 4) * 4), B = B % 4, B) {
|
|
3397
3399
|
case 1:
|
|
3398
|
-
|
|
3400
|
+
K = a.height / 2 + a.top, E.unshift("rotate(90 " + K.toString() + " " + K.toString() + ")");
|
|
3399
3401
|
break;
|
|
3400
3402
|
case 2:
|
|
3401
3403
|
E.unshift("rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")");
|
|
3402
3404
|
break;
|
|
3403
3405
|
case 3:
|
|
3404
|
-
|
|
3406
|
+
K = a.width / 2 + a.left, E.unshift("rotate(-90 " + K.toString() + " " + K.toString() + ")");
|
|
3405
3407
|
break;
|
|
3406
3408
|
}
|
|
3407
|
-
B % 2 === 1 && (a.left !== a.top && (
|
|
3409
|
+
B % 2 === 1 && (a.left !== a.top && (K = a.left, a.left = a.top, a.top = K), a.width !== a.height && (K = a.width, a.width = a.height, a.height = K)), E.length && (i = L4(i, '<g transform="' + E.join(" ") + '">', "</g>"));
|
|
3408
3410
|
});
|
|
3409
3411
|
const u = r.width, s = r.height, o = a.width, l = a.height;
|
|
3410
3412
|
let c, h;
|
|
@@ -3704,7 +3706,7 @@ function n3(e, t, n, r) {
|
|
|
3704
3706
|
w.status === "pending" && (w.status = "aborted");
|
|
3705
3707
|
}), p = [];
|
|
3706
3708
|
}
|
|
3707
|
-
function
|
|
3709
|
+
function K(w, P, X) {
|
|
3708
3710
|
const j = P !== "success";
|
|
3709
3711
|
switch (p = p.filter((ne) => ne !== w), o) {
|
|
3710
3712
|
case "pending":
|
|
@@ -3716,11 +3718,11 @@ function n3(e, t, n, r) {
|
|
|
3716
3718
|
return;
|
|
3717
3719
|
}
|
|
3718
3720
|
if (P === "abort") {
|
|
3719
|
-
c =
|
|
3721
|
+
c = X, I();
|
|
3720
3722
|
return;
|
|
3721
3723
|
}
|
|
3722
3724
|
if (j) {
|
|
3723
|
-
c =
|
|
3725
|
+
c = X, p.length || (u.length ? z() : I());
|
|
3724
3726
|
return;
|
|
3725
3727
|
}
|
|
3726
3728
|
if (y(), B(), !e.random) {
|
|
@@ -3728,7 +3730,7 @@ function n3(e, t, n, r) {
|
|
|
3728
3730
|
ne !== -1 && ne !== e.index && (e.index = ne);
|
|
3729
3731
|
}
|
|
3730
3732
|
o = "completed", m.forEach((ne) => {
|
|
3731
|
-
ne(
|
|
3733
|
+
ne(X);
|
|
3732
3734
|
});
|
|
3733
3735
|
}
|
|
3734
3736
|
function z() {
|
|
@@ -3748,8 +3750,8 @@ function n3(e, t, n, r) {
|
|
|
3748
3750
|
const P = {
|
|
3749
3751
|
status: "pending",
|
|
3750
3752
|
resource: w,
|
|
3751
|
-
callback: (
|
|
3752
|
-
|
|
3753
|
+
callback: (X, j) => {
|
|
3754
|
+
K(P, X, j);
|
|
3753
3755
|
}
|
|
3754
3756
|
};
|
|
3755
3757
|
p.push(P), l++, h = setTimeout(z, e.rotate), n(w, t, P.callback);
|
|
@@ -4239,17 +4241,17 @@ function nu({
|
|
|
4239
4241
|
streaming: b,
|
|
4240
4242
|
internalStreaming: E,
|
|
4241
4243
|
externalStreaming: T
|
|
4242
|
-
} = Ae(jt), [I, B] = we(""),
|
|
4244
|
+
} = Ae(jt), [I, B] = we(""), K = i !== void 0, z = K ? i : I, w = er(
|
|
4243
4245
|
($) => {
|
|
4244
|
-
$.preventDefault(),
|
|
4246
|
+
$.preventDefault(), K || B($.target.value), a && a($);
|
|
4245
4247
|
},
|
|
4246
|
-
[a,
|
|
4248
|
+
[a, K]
|
|
4247
4249
|
), P = () => {
|
|
4248
|
-
|
|
4249
|
-
},
|
|
4250
|
+
K || B(""), r.current && (r.current.style.height = "auto");
|
|
4251
|
+
}, X = e || m || y || b;
|
|
4250
4252
|
Xe(() => {
|
|
4251
|
-
u.current && !
|
|
4252
|
-
}, [
|
|
4253
|
+
u.current && !X && r.current?.focus(), u.current = X;
|
|
4254
|
+
}, [X, r]), Xe(() => {
|
|
4253
4255
|
(h || p) && r.current?.focus();
|
|
4254
4256
|
}, [p, h, r]);
|
|
4255
4257
|
const j = ($) => {
|
|
@@ -4265,7 +4267,7 @@ function nu({
|
|
|
4265
4267
|
"textarea",
|
|
4266
4268
|
{
|
|
4267
4269
|
"data-testid": "ConversationInput",
|
|
4268
|
-
disabled:
|
|
4270
|
+
disabled: X,
|
|
4269
4271
|
value: z,
|
|
4270
4272
|
ref: r,
|
|
4271
4273
|
onInput: ne,
|
|
@@ -4307,7 +4309,7 @@ function nu({
|
|
|
4307
4309
|
"button",
|
|
4308
4310
|
{
|
|
4309
4311
|
"data-testid": "Send",
|
|
4310
|
-
disabled:
|
|
4312
|
+
disabled: X,
|
|
4311
4313
|
className: "xpert-chatbot-popup__input--send-btn",
|
|
4312
4314
|
onClick: ($) => {
|
|
4313
4315
|
$.preventDefault(), t(z), P();
|
|
@@ -4995,7 +4997,7 @@ function Md() {
|
|
|
4995
4997
|
if (Zu("use", r), b != null) if (typeof b == "function")
|
|
4996
4998
|
z(b, ...E);
|
|
4997
4999
|
else if (typeof b == "object")
|
|
4998
|
-
Array.isArray(b) ?
|
|
5000
|
+
Array.isArray(b) ? K(b) : B(b);
|
|
4999
5001
|
else
|
|
5000
5002
|
throw new TypeError("Expected usable value, not `" + b + "`");
|
|
5001
5003
|
return T && (n.settings = Object.assign(n.settings || {}, T)), i;
|
|
@@ -5004,31 +5006,31 @@ function Md() {
|
|
|
5004
5006
|
z(w);
|
|
5005
5007
|
else if (typeof w == "object")
|
|
5006
5008
|
if (Array.isArray(w)) {
|
|
5007
|
-
const [P, ...
|
|
5008
|
-
z(P, ...
|
|
5009
|
+
const [P, ...X] = w;
|
|
5010
|
+
z(P, ...X);
|
|
5009
5011
|
} else
|
|
5010
5012
|
B(w);
|
|
5011
5013
|
else
|
|
5012
5014
|
throw new TypeError("Expected usable value, not `" + w + "`");
|
|
5013
5015
|
}
|
|
5014
5016
|
function B(w) {
|
|
5015
|
-
|
|
5017
|
+
K(w.plugins), w.settings && (T = Object.assign(T || {}, w.settings));
|
|
5016
5018
|
}
|
|
5017
|
-
function
|
|
5019
|
+
function K(w) {
|
|
5018
5020
|
let P = -1;
|
|
5019
5021
|
if (w != null) if (Array.isArray(w))
|
|
5020
5022
|
for (; ++P < w.length; ) {
|
|
5021
|
-
const
|
|
5022
|
-
I(
|
|
5023
|
+
const X = w[P];
|
|
5024
|
+
I(X);
|
|
5023
5025
|
}
|
|
5024
5026
|
else
|
|
5025
5027
|
throw new TypeError("Expected a list of plugins, not `" + w + "`");
|
|
5026
5028
|
}
|
|
5027
5029
|
function z(w, P) {
|
|
5028
|
-
let
|
|
5029
|
-
for (; ++
|
|
5030
|
-
if (t[
|
|
5031
|
-
j = t[
|
|
5030
|
+
let X = -1, j;
|
|
5031
|
+
for (; ++X < t.length; )
|
|
5032
|
+
if (t[X][0] === w) {
|
|
5033
|
+
j = t[X];
|
|
5032
5034
|
break;
|
|
5033
5035
|
}
|
|
5034
5036
|
j ? ($s(j[1]) && $s(P) && (P = w0(!0, j[1], P)), j[1] = P) : t.push([...arguments]);
|
|
@@ -5048,18 +5050,18 @@ function Md() {
|
|
|
5048
5050
|
if (A0(b), i.freeze(), !T && typeof E == "function" && (T = E, E = void 0), !T)
|
|
5049
5051
|
return new Promise(I);
|
|
5050
5052
|
I(null, T);
|
|
5051
|
-
function I(B,
|
|
5053
|
+
function I(B, K) {
|
|
5052
5054
|
e.run(b, Ea(E), z);
|
|
5053
|
-
function z(w, P,
|
|
5054
|
-
P = P || b, w ?
|
|
5055
|
+
function z(w, P, X) {
|
|
5056
|
+
P = P || b, w ? K(w) : B ? B(P) : T(null, P, X);
|
|
5055
5057
|
}
|
|
5056
5058
|
}
|
|
5057
5059
|
}
|
|
5058
5060
|
function p(b, E) {
|
|
5059
5061
|
let T, I;
|
|
5060
5062
|
return i.run(b, E, B), _0("runSync", "run", I), T;
|
|
5061
|
-
function B(
|
|
5062
|
-
x0(
|
|
5063
|
+
function B(K, z) {
|
|
5064
|
+
x0(K), T = z, I = !0;
|
|
5063
5065
|
}
|
|
5064
5066
|
}
|
|
5065
5067
|
function m(b, E) {
|
|
@@ -5067,13 +5069,13 @@ function Md() {
|
|
|
5067
5069
|
return new Promise(T);
|
|
5068
5070
|
T(null, E);
|
|
5069
5071
|
function T(I, B) {
|
|
5070
|
-
const
|
|
5071
|
-
i.run(i.parse(
|
|
5072
|
-
if (w || !P || !
|
|
5072
|
+
const K = Ea(b);
|
|
5073
|
+
i.run(i.parse(K), K, (w, P, X) => {
|
|
5074
|
+
if (w || !P || !X)
|
|
5073
5075
|
z(w);
|
|
5074
5076
|
else {
|
|
5075
|
-
const j = i.stringify(P,
|
|
5076
|
-
j == null || ($3(j) ?
|
|
5077
|
+
const j = i.stringify(P, X);
|
|
5078
|
+
j == null || ($3(j) ? X.value = j : X.result = j), z(w, X);
|
|
5077
5079
|
}
|
|
5078
5080
|
});
|
|
5079
5081
|
function z(w, P) {
|
|
@@ -5274,9 +5276,9 @@ function e6(e) {
|
|
|
5274
5276
|
return s;
|
|
5275
5277
|
function s(B) {
|
|
5276
5278
|
if (r < n.length) {
|
|
5277
|
-
const
|
|
5278
|
-
return t.containerState =
|
|
5279
|
-
|
|
5279
|
+
const K = n[r];
|
|
5280
|
+
return t.containerState = K[1], e.attempt(
|
|
5281
|
+
K[0].continuation,
|
|
5280
5282
|
o,
|
|
5281
5283
|
l
|
|
5282
5284
|
)(B);
|
|
@@ -5286,22 +5288,22 @@ function e6(e) {
|
|
|
5286
5288
|
function o(B) {
|
|
5287
5289
|
if (r++, t.containerState._closeFlow) {
|
|
5288
5290
|
t.containerState._closeFlow = void 0, a && I();
|
|
5289
|
-
const
|
|
5290
|
-
let z =
|
|
5291
|
+
const K = t.events.length;
|
|
5292
|
+
let z = K, w;
|
|
5291
5293
|
for (; z--; )
|
|
5292
5294
|
if (t.events[z][0] === "exit" && t.events[z][1].type === "chunkFlow") {
|
|
5293
5295
|
w = t.events[z][1].end;
|
|
5294
5296
|
break;
|
|
5295
5297
|
}
|
|
5296
5298
|
T(r);
|
|
5297
|
-
let P =
|
|
5299
|
+
let P = K;
|
|
5298
5300
|
for (; P < t.events.length; )
|
|
5299
5301
|
t.events[P][1].end = Object.assign({}, w), P++;
|
|
5300
5302
|
return Fn(
|
|
5301
5303
|
t.events,
|
|
5302
5304
|
z + 1,
|
|
5303
5305
|
0,
|
|
5304
|
-
t.events.slice(
|
|
5306
|
+
t.events.slice(K)
|
|
5305
5307
|
), t.events.length = P, l(B);
|
|
5306
5308
|
}
|
|
5307
5309
|
return s(B);
|
|
@@ -5354,9 +5356,9 @@ function e6(e) {
|
|
|
5354
5356
|
}
|
|
5355
5357
|
return Do(B) ? (e.consume(B), E(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(B), b);
|
|
5356
5358
|
}
|
|
5357
|
-
function E(B,
|
|
5359
|
+
function E(B, K) {
|
|
5358
5360
|
const z = t.sliceStream(B);
|
|
5359
|
-
if (
|
|
5361
|
+
if (K && z.push(null), B.previous = i, i && (i.next = B), i = B, a.defineSkip(B.start), a.write(z), t.parser.lazy[B.start.line]) {
|
|
5360
5362
|
let w = a.events.length;
|
|
5361
5363
|
for (; w--; )
|
|
5362
5364
|
if (
|
|
@@ -5367,11 +5369,11 @@ function e6(e) {
|
|
|
5367
5369
|
)
|
|
5368
5370
|
return;
|
|
5369
5371
|
const P = t.events.length;
|
|
5370
|
-
let
|
|
5371
|
-
for (;
|
|
5372
|
-
if (t.events[
|
|
5372
|
+
let X = P, j, ne;
|
|
5373
|
+
for (; X--; )
|
|
5374
|
+
if (t.events[X][0] === "exit" && t.events[X][1].type === "chunkFlow") {
|
|
5373
5375
|
if (j) {
|
|
5374
|
-
ne = t.events[
|
|
5376
|
+
ne = t.events[X][1].end;
|
|
5375
5377
|
break;
|
|
5376
5378
|
}
|
|
5377
5379
|
j = !0;
|
|
@@ -5380,16 +5382,16 @@ function e6(e) {
|
|
|
5380
5382
|
t.events[w][1].end = Object.assign({}, ne), w++;
|
|
5381
5383
|
Fn(
|
|
5382
5384
|
t.events,
|
|
5383
|
-
|
|
5385
|
+
X + 1,
|
|
5384
5386
|
0,
|
|
5385
5387
|
t.events.slice(P)
|
|
5386
5388
|
), t.events.length = w;
|
|
5387
5389
|
}
|
|
5388
5390
|
}
|
|
5389
5391
|
function T(B) {
|
|
5390
|
-
let
|
|
5391
|
-
for (;
|
|
5392
|
-
const z = n[
|
|
5392
|
+
let K = n.length;
|
|
5393
|
+
for (; K-- > B; ) {
|
|
5394
|
+
const z = n[K];
|
|
5393
5395
|
t.containerState = z[1], z[0].exit.call(t, e);
|
|
5394
5396
|
}
|
|
5395
5397
|
n.length = B;
|
|
@@ -5705,7 +5707,7 @@ function T6(e, t, n) {
|
|
|
5705
5707
|
return w === s ? (u++, e.consume(w), c) : u < 3 ? n(w) : (e.exit("codeFencedFenceSequence"), lt(w) ? at(e, h, "whitespace")(w) : h(w));
|
|
5706
5708
|
}
|
|
5707
5709
|
function h(w) {
|
|
5708
|
-
return w === null || $e(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(M0, b,
|
|
5710
|
+
return w === null || $e(w) ? (e.exit("codeFencedFence"), r.interrupt ? t(w) : e.check(M0, b, K)(w)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
5709
5711
|
contentType: "string"
|
|
5710
5712
|
}), p(w));
|
|
5711
5713
|
}
|
|
@@ -5721,7 +5723,7 @@ function T6(e, t, n) {
|
|
|
5721
5723
|
return w === null || $e(w) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(w)) : w === 96 && w === s ? n(w) : (e.consume(w), y);
|
|
5722
5724
|
}
|
|
5723
5725
|
function b(w) {
|
|
5724
|
-
return e.attempt(a,
|
|
5726
|
+
return e.attempt(a, K, E)(w);
|
|
5725
5727
|
}
|
|
5726
5728
|
function E(w) {
|
|
5727
5729
|
return e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), T;
|
|
@@ -5735,15 +5737,15 @@ function T6(e, t, n) {
|
|
|
5735
5737
|
)(w) : I(w);
|
|
5736
5738
|
}
|
|
5737
5739
|
function I(w) {
|
|
5738
|
-
return w === null || $e(w) ? e.check(M0, b,
|
|
5740
|
+
return w === null || $e(w) ? e.check(M0, b, K)(w) : (e.enter("codeFlowValue"), B(w));
|
|
5739
5741
|
}
|
|
5740
5742
|
function B(w) {
|
|
5741
5743
|
return w === null || $e(w) ? (e.exit("codeFlowValue"), I(w)) : (e.consume(w), B);
|
|
5742
5744
|
}
|
|
5743
|
-
function
|
|
5745
|
+
function K(w) {
|
|
5744
5746
|
return e.exit("codeFenced"), t(w);
|
|
5745
5747
|
}
|
|
5746
|
-
function z(w, P,
|
|
5748
|
+
function z(w, P, X) {
|
|
5747
5749
|
let j = 0;
|
|
5748
5750
|
return ne;
|
|
5749
5751
|
function ne(H) {
|
|
@@ -5752,19 +5754,19 @@ function T6(e, t, n) {
|
|
|
5752
5754
|
function $(H) {
|
|
5753
5755
|
return w.enter("codeFencedFence"), lt(H) ? at(
|
|
5754
5756
|
w,
|
|
5755
|
-
|
|
5757
|
+
W,
|
|
5756
5758
|
"linePrefix",
|
|
5757
5759
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
5758
|
-
)(H) :
|
|
5760
|
+
)(H) : W(H);
|
|
5759
5761
|
}
|
|
5760
|
-
function
|
|
5761
|
-
return H === s ? (w.enter("codeFencedFenceSequence"), F(H)) :
|
|
5762
|
+
function W(H) {
|
|
5763
|
+
return H === s ? (w.enter("codeFencedFenceSequence"), F(H)) : X(H);
|
|
5762
5764
|
}
|
|
5763
5765
|
function F(H) {
|
|
5764
|
-
return H === s ? (j++, w.consume(H), F) : j >= u ? (w.exit("codeFencedFenceSequence"), lt(H) ? at(w, D, "whitespace")(H) : D(H)) :
|
|
5766
|
+
return H === s ? (j++, w.consume(H), F) : j >= u ? (w.exit("codeFencedFenceSequence"), lt(H) ? at(w, D, "whitespace")(H) : D(H)) : X(H);
|
|
5765
5767
|
}
|
|
5766
5768
|
function D(H) {
|
|
5767
|
-
return H === null || $e(H) ? (w.exit("codeFencedFence"), P(H)) :
|
|
5769
|
+
return H === null || $e(H) ? (w.exit("codeFencedFence"), P(H)) : X(H);
|
|
5768
5770
|
}
|
|
5769
5771
|
}
|
|
5770
5772
|
}
|
|
@@ -6299,7 +6301,7 @@ function e5(e, t, n) {
|
|
|
6299
6301
|
}
|
|
6300
6302
|
function y(k) {
|
|
6301
6303
|
const Ee = "CDATA[";
|
|
6302
|
-
return k === Ee.charCodeAt(s++) ? (e.consume(k), s === Ee.length ? r.interrupt ? t :
|
|
6304
|
+
return k === Ee.charCodeAt(s++) ? (e.consume(k), s === Ee.length ? r.interrupt ? t : W : y) : n(k);
|
|
6303
6305
|
}
|
|
6304
6306
|
function b(k) {
|
|
6305
6307
|
return Mn(k) ? (e.consume(k), u = String.fromCharCode(k), E) : n(k);
|
|
@@ -6307,33 +6309,33 @@ function e5(e, t, n) {
|
|
|
6307
6309
|
function E(k) {
|
|
6308
6310
|
if (k === null || k === 47 || k === 62 || vn(k)) {
|
|
6309
6311
|
const Ee = k === 47, Oe = u.toLowerCase();
|
|
6310
|
-
return !Ee && !i && U0.includes(Oe) ? (a = 1, r.interrupt ? t(k) :
|
|
6312
|
+
return !Ee && !i && U0.includes(Oe) ? (a = 1, r.interrupt ? t(k) : W(k)) : X6.includes(u.toLowerCase()) ? (a = 6, Ee ? (e.consume(k), T) : r.interrupt ? t(k) : W(k)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(k) : i ? I(k) : B(k));
|
|
6311
6313
|
}
|
|
6312
6314
|
return k === 45 || An(k) ? (e.consume(k), u += String.fromCharCode(k), E) : n(k);
|
|
6313
6315
|
}
|
|
6314
6316
|
function T(k) {
|
|
6315
|
-
return k === 62 ? (e.consume(k), r.interrupt ? t :
|
|
6317
|
+
return k === 62 ? (e.consume(k), r.interrupt ? t : W) : n(k);
|
|
6316
6318
|
}
|
|
6317
6319
|
function I(k) {
|
|
6318
6320
|
return lt(k) ? (e.consume(k), I) : ne(k);
|
|
6319
6321
|
}
|
|
6320
6322
|
function B(k) {
|
|
6321
|
-
return k === 47 ? (e.consume(k), ne) : k === 58 || k === 95 || Mn(k) ? (e.consume(k),
|
|
6323
|
+
return k === 47 ? (e.consume(k), ne) : k === 58 || k === 95 || Mn(k) ? (e.consume(k), K) : lt(k) ? (e.consume(k), B) : ne(k);
|
|
6322
6324
|
}
|
|
6323
|
-
function
|
|
6324
|
-
return k === 45 || k === 46 || k === 58 || k === 95 || An(k) ? (e.consume(k),
|
|
6325
|
+
function K(k) {
|
|
6326
|
+
return k === 45 || k === 46 || k === 58 || k === 95 || An(k) ? (e.consume(k), K) : z(k);
|
|
6325
6327
|
}
|
|
6326
6328
|
function z(k) {
|
|
6327
6329
|
return k === 61 ? (e.consume(k), w) : lt(k) ? (e.consume(k), z) : B(k);
|
|
6328
6330
|
}
|
|
6329
6331
|
function w(k) {
|
|
6330
|
-
return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), o = k, P) : lt(k) ? (e.consume(k), w) :
|
|
6332
|
+
return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (e.consume(k), o = k, P) : lt(k) ? (e.consume(k), w) : X(k);
|
|
6331
6333
|
}
|
|
6332
6334
|
function P(k) {
|
|
6333
6335
|
return k === o ? (e.consume(k), o = null, j) : k === null || $e(k) ? n(k) : (e.consume(k), P);
|
|
6334
6336
|
}
|
|
6335
|
-
function
|
|
6336
|
-
return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || vn(k) ? z(k) : (e.consume(k),
|
|
6337
|
+
function X(k) {
|
|
6338
|
+
return k === null || k === 34 || k === 39 || k === 47 || k === 60 || k === 61 || k === 62 || k === 96 || vn(k) ? z(k) : (e.consume(k), X);
|
|
6337
6339
|
}
|
|
6338
6340
|
function j(k) {
|
|
6339
6341
|
return k === 47 || k === 62 || lt(k) ? B(k) : n(k);
|
|
@@ -6342,14 +6344,14 @@ function e5(e, t, n) {
|
|
|
6342
6344
|
return k === 62 ? (e.consume(k), $) : n(k);
|
|
6343
6345
|
}
|
|
6344
6346
|
function $(k) {
|
|
6345
|
-
return k === null || $e(k) ?
|
|
6347
|
+
return k === null || $e(k) ? W(k) : lt(k) ? (e.consume(k), $) : n(k);
|
|
6346
6348
|
}
|
|
6347
|
-
function
|
|
6348
|
-
return k === 45 && a === 2 ? (e.consume(k),
|
|
6349
|
+
function W(k) {
|
|
6350
|
+
return k === 45 && a === 2 ? (e.consume(k), G) : k === 60 && a === 1 ? (e.consume(k), J) : k === 62 && a === 4 ? (e.consume(k), oe) : k === 63 && a === 3 ? (e.consume(k), A) : k === 93 && a === 5 ? (e.consume(k), Y) : $e(k) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
|
|
6349
6351
|
Q6,
|
|
6350
6352
|
ye,
|
|
6351
6353
|
F
|
|
6352
|
-
)(k)) : k === null || $e(k) ? (e.exit("htmlFlowData"), F(k)) : (e.consume(k),
|
|
6354
|
+
)(k)) : k === null || $e(k) ? (e.exit("htmlFlowData"), F(k)) : (e.consume(k), W);
|
|
6353
6355
|
}
|
|
6354
6356
|
function F(k) {
|
|
6355
6357
|
return e.check(
|
|
@@ -6362,26 +6364,26 @@ function e5(e, t, n) {
|
|
|
6362
6364
|
return e.enter("lineEnding"), e.consume(k), e.exit("lineEnding"), H;
|
|
6363
6365
|
}
|
|
6364
6366
|
function H(k) {
|
|
6365
|
-
return k === null || $e(k) ? F(k) : (e.enter("htmlFlowData"),
|
|
6367
|
+
return k === null || $e(k) ? F(k) : (e.enter("htmlFlowData"), W(k));
|
|
6366
6368
|
}
|
|
6367
|
-
function
|
|
6368
|
-
return k === 45 ? (e.consume(k), A) :
|
|
6369
|
+
function G(k) {
|
|
6370
|
+
return k === 45 ? (e.consume(k), A) : W(k);
|
|
6369
6371
|
}
|
|
6370
6372
|
function J(k) {
|
|
6371
|
-
return k === 47 ? (e.consume(k), u = "", Q) :
|
|
6373
|
+
return k === 47 ? (e.consume(k), u = "", Q) : W(k);
|
|
6372
6374
|
}
|
|
6373
6375
|
function Q(k) {
|
|
6374
6376
|
if (k === 62) {
|
|
6375
6377
|
const Ee = u.toLowerCase();
|
|
6376
|
-
return U0.includes(Ee) ? (e.consume(k), oe) :
|
|
6378
|
+
return U0.includes(Ee) ? (e.consume(k), oe) : W(k);
|
|
6377
6379
|
}
|
|
6378
|
-
return Mn(k) && u.length < 8 ? (e.consume(k), u += String.fromCharCode(k), Q) :
|
|
6380
|
+
return Mn(k) && u.length < 8 ? (e.consume(k), u += String.fromCharCode(k), Q) : W(k);
|
|
6379
6381
|
}
|
|
6380
6382
|
function Y(k) {
|
|
6381
|
-
return k === 93 ? (e.consume(k), A) :
|
|
6383
|
+
return k === 93 ? (e.consume(k), A) : W(k);
|
|
6382
6384
|
}
|
|
6383
6385
|
function A(k) {
|
|
6384
|
-
return k === 62 ? (e.consume(k), oe) : k === 45 && a === 2 ? (e.consume(k), A) :
|
|
6386
|
+
return k === 62 ? (e.consume(k), oe) : k === 45 && a === 2 ? (e.consume(k), A) : W(k);
|
|
6385
6387
|
}
|
|
6386
6388
|
function oe(k) {
|
|
6387
6389
|
return k === null || $e(k) ? (e.exit("htmlFlowData"), ye(k)) : (e.consume(k), oe);
|
|
@@ -6418,7 +6420,7 @@ function a5(e, t, n) {
|
|
|
6418
6420
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(A), o;
|
|
6419
6421
|
}
|
|
6420
6422
|
function o(A) {
|
|
6421
|
-
return A === 33 ? (e.consume(A), l) : A === 47 ? (e.consume(A), z) : A === 63 ? (e.consume(A), B) : Mn(A) ? (e.consume(A),
|
|
6423
|
+
return A === 33 ? (e.consume(A), l) : A === 47 ? (e.consume(A), z) : A === 63 ? (e.consume(A), B) : Mn(A) ? (e.consume(A), X) : n(A);
|
|
6422
6424
|
}
|
|
6423
6425
|
function l(A) {
|
|
6424
6426
|
return A === 45 ? (e.consume(A), c) : A === 91 ? (e.consume(A), i = 0, y) : Mn(A) ? (e.consume(A), I) : n(A);
|
|
@@ -6433,7 +6435,7 @@ function a5(e, t, n) {
|
|
|
6433
6435
|
return A === 45 ? (e.consume(A), m) : h(A);
|
|
6434
6436
|
}
|
|
6435
6437
|
function m(A) {
|
|
6436
|
-
return A === 62 ?
|
|
6438
|
+
return A === 62 ? G(A) : A === 45 ? p(A) : h(A);
|
|
6437
6439
|
}
|
|
6438
6440
|
function y(A) {
|
|
6439
6441
|
const oe = "CDATA[";
|
|
@@ -6446,16 +6448,16 @@ function a5(e, t, n) {
|
|
|
6446
6448
|
return A === 93 ? (e.consume(A), T) : b(A);
|
|
6447
6449
|
}
|
|
6448
6450
|
function T(A) {
|
|
6449
|
-
return A === 62 ?
|
|
6451
|
+
return A === 62 ? G(A) : A === 93 ? (e.consume(A), T) : b(A);
|
|
6450
6452
|
}
|
|
6451
6453
|
function I(A) {
|
|
6452
|
-
return A === null || A === 62 ?
|
|
6454
|
+
return A === null || A === 62 ? G(A) : $e(A) ? (u = I, J(A)) : (e.consume(A), I);
|
|
6453
6455
|
}
|
|
6454
6456
|
function B(A) {
|
|
6455
|
-
return A === null ? n(A) : A === 63 ? (e.consume(A),
|
|
6457
|
+
return A === null ? n(A) : A === 63 ? (e.consume(A), K) : $e(A) ? (u = B, J(A)) : (e.consume(A), B);
|
|
6456
6458
|
}
|
|
6457
|
-
function
|
|
6458
|
-
return A === 62 ?
|
|
6459
|
+
function K(A) {
|
|
6460
|
+
return A === 62 ? G(A) : B(A);
|
|
6459
6461
|
}
|
|
6460
6462
|
function z(A) {
|
|
6461
6463
|
return Mn(A) ? (e.consume(A), w) : n(A);
|
|
@@ -6464,22 +6466,22 @@ function a5(e, t, n) {
|
|
|
6464
6466
|
return A === 45 || An(A) ? (e.consume(A), w) : P(A);
|
|
6465
6467
|
}
|
|
6466
6468
|
function P(A) {
|
|
6467
|
-
return $e(A) ? (u = P, J(A)) : lt(A) ? (e.consume(A), P) :
|
|
6469
|
+
return $e(A) ? (u = P, J(A)) : lt(A) ? (e.consume(A), P) : G(A);
|
|
6468
6470
|
}
|
|
6469
|
-
function
|
|
6470
|
-
return A === 45 || An(A) ? (e.consume(A),
|
|
6471
|
+
function X(A) {
|
|
6472
|
+
return A === 45 || An(A) ? (e.consume(A), X) : A === 47 || A === 62 || vn(A) ? j(A) : n(A);
|
|
6471
6473
|
}
|
|
6472
6474
|
function j(A) {
|
|
6473
|
-
return A === 47 ? (e.consume(A),
|
|
6475
|
+
return A === 47 ? (e.consume(A), G) : A === 58 || A === 95 || Mn(A) ? (e.consume(A), ne) : $e(A) ? (u = j, J(A)) : lt(A) ? (e.consume(A), j) : G(A);
|
|
6474
6476
|
}
|
|
6475
6477
|
function ne(A) {
|
|
6476
6478
|
return A === 45 || A === 46 || A === 58 || A === 95 || An(A) ? (e.consume(A), ne) : $(A);
|
|
6477
6479
|
}
|
|
6478
6480
|
function $(A) {
|
|
6479
|
-
return A === 61 ? (e.consume(A),
|
|
6481
|
+
return A === 61 ? (e.consume(A), W) : $e(A) ? (u = $, J(A)) : lt(A) ? (e.consume(A), $) : j(A);
|
|
6480
6482
|
}
|
|
6481
|
-
function
|
|
6482
|
-
return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (e.consume(A), a = A, F) : $e(A) ? (u =
|
|
6483
|
+
function W(A) {
|
|
6484
|
+
return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? n(A) : A === 34 || A === 39 ? (e.consume(A), a = A, F) : $e(A) ? (u = W, J(A)) : lt(A) ? (e.consume(A), W) : (e.consume(A), D);
|
|
6483
6485
|
}
|
|
6484
6486
|
function F(A) {
|
|
6485
6487
|
return A === a ? (e.consume(A), a = void 0, H) : A === null ? n(A) : $e(A) ? (u = F, J(A)) : (e.consume(A), F);
|
|
@@ -6490,7 +6492,7 @@ function a5(e, t, n) {
|
|
|
6490
6492
|
function H(A) {
|
|
6491
6493
|
return A === 47 || A === 62 || vn(A) ? j(A) : n(A);
|
|
6492
6494
|
}
|
|
6493
|
-
function
|
|
6495
|
+
function G(A) {
|
|
6494
6496
|
return A === 62 ? (e.consume(A), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(A);
|
|
6495
6497
|
}
|
|
6496
6498
|
function J(A) {
|
|
@@ -7058,7 +7060,7 @@ function M5(e, t, n) {
|
|
|
7058
7060
|
const o = {
|
|
7059
7061
|
consume: I,
|
|
7060
7062
|
enter: B,
|
|
7061
|
-
exit:
|
|
7063
|
+
exit: K,
|
|
7062
7064
|
attempt: P(z),
|
|
7063
7065
|
check: P(w),
|
|
7064
7066
|
interrupt: P(w, {
|
|
@@ -7079,19 +7081,19 @@ function M5(e, t, n) {
|
|
|
7079
7081
|
let c = t.tokenize.call(l, o);
|
|
7080
7082
|
return t.resolveAll && i.push(t), l;
|
|
7081
7083
|
function h($) {
|
|
7082
|
-
return u = gn(u, $), E(), u[u.length - 1] !== null ? [] : (
|
|
7084
|
+
return u = gn(u, $), E(), u[u.length - 1] !== null ? [] : (X(t, 0), l.events = Ro(i, l.events, l), l.events);
|
|
7083
7085
|
}
|
|
7084
|
-
function p($,
|
|
7085
|
-
return B5(m($),
|
|
7086
|
+
function p($, W) {
|
|
7087
|
+
return B5(m($), W);
|
|
7086
7088
|
}
|
|
7087
7089
|
function m($) {
|
|
7088
7090
|
return P5(u, $);
|
|
7089
7091
|
}
|
|
7090
7092
|
function y() {
|
|
7091
|
-
const { line: $, column:
|
|
7093
|
+
const { line: $, column: W, offset: F, _index: D, _bufferIndex: H } = r;
|
|
7092
7094
|
return {
|
|
7093
7095
|
line: $,
|
|
7094
|
-
column:
|
|
7096
|
+
column: W,
|
|
7095
7097
|
offset: F,
|
|
7096
7098
|
_index: D,
|
|
7097
7099
|
_bufferIndex: H
|
|
@@ -7103,12 +7105,12 @@ function M5(e, t, n) {
|
|
|
7103
7105
|
function E() {
|
|
7104
7106
|
let $;
|
|
7105
7107
|
for (; r._index < u.length; ) {
|
|
7106
|
-
const
|
|
7107
|
-
if (typeof
|
|
7108
|
-
for ($ = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === $ && r._bufferIndex <
|
|
7109
|
-
T(
|
|
7108
|
+
const W = u[r._index];
|
|
7109
|
+
if (typeof W == "string")
|
|
7110
|
+
for ($ = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === $ && r._bufferIndex < W.length; )
|
|
7111
|
+
T(W.charCodeAt(r._bufferIndex));
|
|
7110
7112
|
else
|
|
7111
|
-
T(
|
|
7113
|
+
T(W);
|
|
7112
7114
|
}
|
|
7113
7115
|
}
|
|
7114
7116
|
function T($) {
|
|
@@ -7117,23 +7119,23 @@ function M5(e, t, n) {
|
|
|
7117
7119
|
function I($) {
|
|
7118
7120
|
Do($) ? (r.line++, r.column = 1, r.offset += $ === -3 ? 2 : 1, ne()) : $ !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === u[r._index].length && (r._bufferIndex = -1, r._index++)), l.previous = $;
|
|
7119
7121
|
}
|
|
7120
|
-
function B($,
|
|
7121
|
-
const F =
|
|
7122
|
+
function B($, W) {
|
|
7123
|
+
const F = W || {};
|
|
7122
7124
|
return F.type = $, F.start = y(), l.events.push(["enter", F, l]), s.push(F), F;
|
|
7123
7125
|
}
|
|
7124
|
-
function
|
|
7125
|
-
const
|
|
7126
|
-
return
|
|
7126
|
+
function K($) {
|
|
7127
|
+
const W = s.pop();
|
|
7128
|
+
return W.end = y(), l.events.push(["exit", W, l]), W;
|
|
7127
7129
|
}
|
|
7128
|
-
function z($,
|
|
7129
|
-
|
|
7130
|
+
function z($, W) {
|
|
7131
|
+
X($, W.from);
|
|
7130
7132
|
}
|
|
7131
|
-
function w($,
|
|
7132
|
-
|
|
7133
|
+
function w($, W) {
|
|
7134
|
+
W.restore();
|
|
7133
7135
|
}
|
|
7134
|
-
function P($,
|
|
7136
|
+
function P($, W) {
|
|
7135
7137
|
return F;
|
|
7136
|
-
function F(D, H,
|
|
7138
|
+
function F(D, H, G) {
|
|
7137
7139
|
let J, Q, Y, A;
|
|
7138
7140
|
return Array.isArray(D) ? ye(D) : "tokenize" in D ? (
|
|
7139
7141
|
// @ts-expect-error Looks like a construct.
|
|
@@ -7152,7 +7154,7 @@ function M5(e, t, n) {
|
|
|
7152
7154
|
}
|
|
7153
7155
|
}
|
|
7154
7156
|
function ye(ke) {
|
|
7155
|
-
return J = ke, Q = 0, ke.length === 0 ?
|
|
7157
|
+
return J = ke, Q = 0, ke.length === 0 ? G : k(ke[Q]);
|
|
7156
7158
|
}
|
|
7157
7159
|
function k(ke) {
|
|
7158
7160
|
return Me;
|
|
@@ -7161,7 +7163,7 @@ function M5(e, t, n) {
|
|
|
7161
7163
|
// If we do have fields, create an object w/ `context` as its
|
|
7162
7164
|
// prototype.
|
|
7163
7165
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
7164
|
-
|
|
7166
|
+
W ? Object.assign(Object.create(l), W) : l,
|
|
7165
7167
|
o,
|
|
7166
7168
|
Ee,
|
|
7167
7169
|
Oe
|
|
@@ -7172,26 +7174,26 @@ function M5(e, t, n) {
|
|
|
7172
7174
|
return $(Y, A), H;
|
|
7173
7175
|
}
|
|
7174
7176
|
function Oe(ke) {
|
|
7175
|
-
return A.restore(), ++Q < J.length ? k(J[Q]) :
|
|
7177
|
+
return A.restore(), ++Q < J.length ? k(J[Q]) : G;
|
|
7176
7178
|
}
|
|
7177
7179
|
}
|
|
7178
7180
|
}
|
|
7179
|
-
function
|
|
7181
|
+
function X($, W) {
|
|
7180
7182
|
$.resolveAll && !i.includes($) && i.push($), $.resolve && Fn(
|
|
7181
7183
|
l.events,
|
|
7182
|
-
|
|
7183
|
-
l.events.length -
|
|
7184
|
-
$.resolve(l.events.slice(
|
|
7184
|
+
W,
|
|
7185
|
+
l.events.length - W,
|
|
7186
|
+
$.resolve(l.events.slice(W), l)
|
|
7185
7187
|
), $.resolveTo && (l.events = $.resolveTo(l.events, l));
|
|
7186
7188
|
}
|
|
7187
7189
|
function j() {
|
|
7188
|
-
const $ = y(),
|
|
7190
|
+
const $ = y(), W = l.previous, F = l.currentConstruct, D = l.events.length, H = Array.from(s);
|
|
7189
7191
|
return {
|
|
7190
|
-
restore:
|
|
7192
|
+
restore: G,
|
|
7191
7193
|
from: D
|
|
7192
7194
|
};
|
|
7193
|
-
function
|
|
7194
|
-
r = $, l.previous =
|
|
7195
|
+
function G() {
|
|
7196
|
+
r = $, l.previous = W, l.currentConstruct = F, l.events.length = D, s = H, ne();
|
|
7195
7197
|
}
|
|
7196
7198
|
}
|
|
7197
7199
|
function ne() {
|
|
@@ -7479,7 +7481,7 @@ function tg(e) {
|
|
|
7479
7481
|
autolinkEmail: Ve,
|
|
7480
7482
|
autolinkProtocol: Ge,
|
|
7481
7483
|
blockQuote: c(),
|
|
7482
|
-
characterEscapeValue:
|
|
7484
|
+
characterEscapeValue: W,
|
|
7483
7485
|
characterReferenceMarkerHexadecimal: Me,
|
|
7484
7486
|
characterReferenceMarkerNumeric: Me,
|
|
7485
7487
|
characterReferenceValue: Ye,
|
|
@@ -7487,22 +7489,22 @@ function tg(e) {
|
|
|
7487
7489
|
codeFencedFence: T,
|
|
7488
7490
|
codeFencedFenceInfo: b,
|
|
7489
7491
|
codeFencedFenceMeta: E,
|
|
7490
|
-
codeFlowValue:
|
|
7492
|
+
codeFlowValue: W,
|
|
7491
7493
|
codeIndented: c(B),
|
|
7492
7494
|
codeText: c(J),
|
|
7493
|
-
codeTextData:
|
|
7494
|
-
data:
|
|
7495
|
+
codeTextData: W,
|
|
7496
|
+
data: W,
|
|
7495
7497
|
definition: c(),
|
|
7496
7498
|
definitionDestinationString: w,
|
|
7497
|
-
definitionLabelString:
|
|
7499
|
+
definitionLabelString: K,
|
|
7498
7500
|
definitionTitleString: z,
|
|
7499
7501
|
emphasis: c(),
|
|
7500
7502
|
hardBreakEscape: c(D),
|
|
7501
7503
|
hardBreakTrailing: c(D),
|
|
7502
7504
|
htmlFlow: c(H),
|
|
7503
|
-
htmlFlowData:
|
|
7504
|
-
htmlText: c(
|
|
7505
|
-
htmlTextData:
|
|
7505
|
+
htmlFlowData: W,
|
|
7506
|
+
htmlText: c(G),
|
|
7507
|
+
htmlTextData: W,
|
|
7506
7508
|
image: c(Y),
|
|
7507
7509
|
label: oe,
|
|
7508
7510
|
labelText: A,
|
|
@@ -7518,7 +7520,7 @@ function tg(e) {
|
|
|
7518
7520
|
resource: Ee,
|
|
7519
7521
|
setextHeading: c(ne),
|
|
7520
7522
|
setextHeadingLineSequence: j,
|
|
7521
|
-
setextHeadingText:
|
|
7523
|
+
setextHeadingText: X,
|
|
7522
7524
|
strong: c(),
|
|
7523
7525
|
thematicBreak: c()
|
|
7524
7526
|
}
|
|
@@ -7688,7 +7690,7 @@ function tg(e) {
|
|
|
7688
7690
|
const Z = this.resume(), ie = this.stack[this.stack.length - 1];
|
|
7689
7691
|
ie.value = Z.replace(/(\r?\n|\r)$/g, "");
|
|
7690
7692
|
}
|
|
7691
|
-
function
|
|
7693
|
+
function K(Z) {
|
|
7692
7694
|
const ie = this.resume(), Te = this.stack[this.stack.length - 1];
|
|
7693
7695
|
Te.label = ie, Te.identifier = Wr(
|
|
7694
7696
|
this.sliceSerialize(Z)
|
|
@@ -7709,7 +7711,7 @@ function tg(e) {
|
|
|
7709
7711
|
ie.depth = Te;
|
|
7710
7712
|
}
|
|
7711
7713
|
}
|
|
7712
|
-
function
|
|
7714
|
+
function X() {
|
|
7713
7715
|
i("setextHeadingSlurpLineEnding", !0);
|
|
7714
7716
|
}
|
|
7715
7717
|
function j(Z) {
|
|
@@ -7726,7 +7728,7 @@ function tg(e) {
|
|
|
7726
7728
|
start: ur(Z.start)
|
|
7727
7729
|
}, ie.children.push(Te)), this.stack.push(Te);
|
|
7728
7730
|
}
|
|
7729
|
-
function
|
|
7731
|
+
function W(Z) {
|
|
7730
7732
|
const ie = this.stack.pop();
|
|
7731
7733
|
ie.value += this.sliceSerialize(Z), ie.position.end = ur(Z.end);
|
|
7732
7734
|
}
|
|
@@ -7737,7 +7739,7 @@ function tg(e) {
|
|
|
7737
7739
|
Te.position.end = ur(Z.end), i("atHardBreak");
|
|
7738
7740
|
return;
|
|
7739
7741
|
}
|
|
7740
|
-
!u("setextHeadingSlurpLineEnding") && t.canContainEols.includes(ie.type) && ($.call(this, Z),
|
|
7742
|
+
!u("setextHeadingSlurpLineEnding") && t.canContainEols.includes(ie.type) && ($.call(this, Z), W.call(this, Z));
|
|
7741
7743
|
}
|
|
7742
7744
|
function D() {
|
|
7743
7745
|
i("atHardBreak", !0);
|
|
@@ -7746,7 +7748,7 @@ function tg(e) {
|
|
|
7746
7748
|
const Z = this.resume(), ie = this.stack[this.stack.length - 1];
|
|
7747
7749
|
ie.value = Z;
|
|
7748
7750
|
}
|
|
7749
|
-
function
|
|
7751
|
+
function G() {
|
|
7750
7752
|
const Z = this.resume(), ie = this.stack[this.stack.length - 1];
|
|
7751
7753
|
ie.value = Z;
|
|
7752
7754
|
}
|
|
@@ -7818,12 +7820,12 @@ function tg(e) {
|
|
|
7818
7820
|
Re.value += De, Re.position.end = ur(Z.end);
|
|
7819
7821
|
}
|
|
7820
7822
|
function Ge(Z) {
|
|
7821
|
-
|
|
7823
|
+
W.call(this, Z);
|
|
7822
7824
|
const ie = this.stack[this.stack.length - 1];
|
|
7823
7825
|
ie.url = this.sliceSerialize(Z);
|
|
7824
7826
|
}
|
|
7825
7827
|
function Ve(Z) {
|
|
7826
|
-
|
|
7828
|
+
W.call(this, Z);
|
|
7827
7829
|
const ie = this.stack[this.stack.length - 1];
|
|
7828
7830
|
ie.url = "mailto:" + this.sliceSerialize(Z);
|
|
7829
7831
|
}
|
|
@@ -10054,10 +10056,10 @@ function mb() {
|
|
|
10054
10056
|
var H = F.lastIndexOf(o);
|
|
10055
10057
|
I = ~H ? F.length - H : I + F.length;
|
|
10056
10058
|
}
|
|
10057
|
-
function
|
|
10059
|
+
function K() {
|
|
10058
10060
|
var F = { line: T, column: I };
|
|
10059
10061
|
return function(D) {
|
|
10060
|
-
return D.position = new z(F),
|
|
10062
|
+
return D.position = new z(F), X(), D;
|
|
10061
10063
|
};
|
|
10062
10064
|
}
|
|
10063
10065
|
function z(F) {
|
|
@@ -10077,7 +10079,7 @@ function mb() {
|
|
|
10077
10079
|
return B(H), b = b.slice(H.length), D;
|
|
10078
10080
|
}
|
|
10079
10081
|
}
|
|
10080
|
-
function
|
|
10082
|
+
function X() {
|
|
10081
10083
|
P(n);
|
|
10082
10084
|
}
|
|
10083
10085
|
function j(F) {
|
|
@@ -10087,7 +10089,7 @@ function mb() {
|
|
|
10087
10089
|
return F;
|
|
10088
10090
|
}
|
|
10089
10091
|
function ne() {
|
|
10090
|
-
var F =
|
|
10092
|
+
var F = K();
|
|
10091
10093
|
if (!(l != b.charAt(0) || c != b.charAt(1))) {
|
|
10092
10094
|
for (var D = 2; h != b.charAt(D) && (c != b.charAt(D) || l != b.charAt(D + 1)); )
|
|
10093
10095
|
++D;
|
|
@@ -10101,25 +10103,25 @@ function mb() {
|
|
|
10101
10103
|
}
|
|
10102
10104
|
}
|
|
10103
10105
|
function $() {
|
|
10104
|
-
var F =
|
|
10106
|
+
var F = K(), D = P(r);
|
|
10105
10107
|
if (D) {
|
|
10106
10108
|
if (ne(), !P(a)) return w("property missing ':'");
|
|
10107
|
-
var H = P(i),
|
|
10109
|
+
var H = P(i), G = F({
|
|
10108
10110
|
type: m,
|
|
10109
10111
|
property: y(D[0].replace(e, h)),
|
|
10110
10112
|
value: H ? y(H[0].replace(e, h)) : h
|
|
10111
10113
|
});
|
|
10112
|
-
return P(u),
|
|
10114
|
+
return P(u), G;
|
|
10113
10115
|
}
|
|
10114
10116
|
}
|
|
10115
|
-
function
|
|
10117
|
+
function W() {
|
|
10116
10118
|
var F = [];
|
|
10117
10119
|
j(F);
|
|
10118
10120
|
for (var D; D = $(); )
|
|
10119
10121
|
D !== !1 && (F.push(D), j(F));
|
|
10120
10122
|
return F;
|
|
10121
10123
|
}
|
|
10122
|
-
return
|
|
10124
|
+
return X(), W();
|
|
10123
10125
|
};
|
|
10124
10126
|
function y(b) {
|
|
10125
10127
|
return b ? b.replace(s, h) : h;
|
|
@@ -25357,16 +25359,16 @@ var Ti = [
|
|
|
25357
25359
|
}
|
|
25358
25360
|
h = Math.min(h, m), p = Math.max(p, m);
|
|
25359
25361
|
}
|
|
25360
|
-
var
|
|
25361
|
-
|
|
25362
|
+
var K = ue(["vlist"], c);
|
|
25363
|
+
K.style.height = ge(p);
|
|
25362
25364
|
var z;
|
|
25363
25365
|
if (h < 0) {
|
|
25364
25366
|
var w = ue([], []), P = ue(["vlist"], [w]);
|
|
25365
25367
|
P.style.height = ge(-h);
|
|
25366
|
-
var
|
|
25367
|
-
z = [ue(["vlist-r"], [
|
|
25368
|
+
var X = ue(["vlist-s"], [new Tn("")]);
|
|
25369
|
+
z = [ue(["vlist-r"], [K, X]), ue(["vlist-r"], [P])];
|
|
25368
25370
|
} else
|
|
25369
|
-
z = [ue(["vlist-r"], [
|
|
25371
|
+
z = [ue(["vlist-r"], [K])];
|
|
25370
25372
|
var j = ue(["vlist-t"], z);
|
|
25371
25373
|
return z.length === 2 && j.classes.push("vlist-t2"), j.height = p, j.depth = -h, j;
|
|
25372
25374
|
}, $f = (e, t) => {
|
|
@@ -26074,35 +26076,35 @@ var Qf = function(t) {
|
|
|
26074
26076
|
height: m
|
|
26075
26077
|
};
|
|
26076
26078
|
} else {
|
|
26077
|
-
var T = [], I = Yv[o], [B,
|
|
26079
|
+
var T = [], I = Yv[o], [B, K, z] = I, w = z / 1e3, P = B.length, X, j;
|
|
26078
26080
|
if (P === 1) {
|
|
26079
26081
|
var ne = I[3];
|
|
26080
|
-
|
|
26082
|
+
X = ["hide-tail"], j = [ne];
|
|
26081
26083
|
} else if (P === 2)
|
|
26082
|
-
|
|
26084
|
+
X = ["halfarrow-left", "halfarrow-right"], j = ["xMinYMin", "xMaxYMin"];
|
|
26083
26085
|
else if (P === 3)
|
|
26084
|
-
|
|
26086
|
+
X = ["brace-left", "brace-center", "brace-right"], j = ["xMinYMin", "xMidYMin", "xMaxYMin"];
|
|
26085
26087
|
else
|
|
26086
26088
|
throw new Error(`Correct katexImagesData or update code here to support
|
|
26087
26089
|
` + P + " children.");
|
|
26088
26090
|
for (var $ = 0; $ < P; $++) {
|
|
26089
|
-
var
|
|
26091
|
+
var W = new pr(B[$]), F = new nr([W], {
|
|
26090
26092
|
width: "400em",
|
|
26091
26093
|
height: ge(w),
|
|
26092
26094
|
viewBox: "0 0 " + s + " " + z,
|
|
26093
26095
|
preserveAspectRatio: j[$] + " slice"
|
|
26094
|
-
}), D = gr([
|
|
26096
|
+
}), D = gr([X[$]], [F], n);
|
|
26095
26097
|
if (P === 1)
|
|
26096
26098
|
return {
|
|
26097
26099
|
span: D,
|
|
26098
|
-
minWidth:
|
|
26100
|
+
minWidth: K,
|
|
26099
26101
|
height: w
|
|
26100
26102
|
};
|
|
26101
26103
|
D.style.height = ge(w), T.push(D);
|
|
26102
26104
|
}
|
|
26103
26105
|
return {
|
|
26104
26106
|
span: ue(["stretchy"], T, n),
|
|
26105
|
-
minWidth:
|
|
26107
|
+
minWidth: K,
|
|
26106
26108
|
height: w
|
|
26107
26109
|
};
|
|
26108
26110
|
}
|
|
@@ -27012,38 +27014,38 @@ var Ia = function(t, n, r) {
|
|
|
27012
27014
|
s = l = c = t, o = null;
|
|
27013
27015
|
var m = "Size1-Regular";
|
|
27014
27016
|
t === "\\uparrow" ? l = c = "⏐" : t === "\\Uparrow" ? l = c = "‖" : t === "\\downarrow" ? s = l = "⏐" : t === "\\Downarrow" ? s = l = "‖" : t === "\\updownarrow" ? (s = "\\uparrow", l = "⏐", c = "\\downarrow") : t === "\\Updownarrow" ? (s = "\\Uparrow", l = "‖", c = "\\Downarrow") : nT.has(t) ? (l = "∣", h = "vert", p = 333) : rT.has(t) ? (l = "∥", h = "doublevert", p = 556) : t === "[" || t === "\\lbrack" ? (s = "⎡", l = "⎢", c = "⎣", m = "Size4-Regular", h = "lbrack", p = 667) : t === "]" || t === "\\rbrack" ? (s = "⎤", l = "⎥", c = "⎦", m = "Size4-Regular", h = "rbrack", p = 667) : t === "\\lfloor" || t === "⌊" ? (l = s = "⎢", c = "⎣", m = "Size4-Regular", h = "lfloor", p = 667) : t === "\\lceil" || t === "⌈" ? (s = "⎡", l = c = "⎢", m = "Size4-Regular", h = "lceil", p = 667) : t === "\\rfloor" || t === "⌋" ? (l = s = "⎥", c = "⎦", m = "Size4-Regular", h = "rfloor", p = 667) : t === "\\rceil" || t === "⌉" ? (s = "⎤", l = c = "⎥", m = "Size4-Regular", h = "rceil", p = 667) : t === "(" || t === "\\lparen" ? (s = "⎛", l = "⎜", c = "⎝", m = "Size4-Regular", h = "lparen", p = 875) : t === ")" || t === "\\rparen" ? (s = "⎞", l = "⎟", c = "⎠", m = "Size4-Regular", h = "rparen", p = 875) : t === "\\{" || t === "\\lbrace" ? (s = "⎧", o = "⎨", c = "⎩", l = "⎪", m = "Size4-Regular") : t === "\\}" || t === "\\rbrace" ? (s = "⎫", o = "⎬", c = "⎭", l = "⎪", m = "Size4-Regular") : t === "\\lgroup" || t === "⟮" ? (s = "⎧", c = "⎩", l = "⎪", m = "Size4-Regular") : t === "\\rgroup" || t === "⟯" ? (s = "⎫", c = "⎭", l = "⎪", m = "Size4-Regular") : t === "\\lmoustache" || t === "⎰" ? (s = "⎧", c = "⎭", l = "⎪", m = "Size4-Regular") : (t === "\\rmoustache" || t === "⎱") && (s = "⎫", c = "⎩", l = "⎪", m = "Size4-Regular");
|
|
27015
|
-
var y = Ia(s, m, i), b = y.height + y.depth, E = Ia(l, m, i), T = E.height + E.depth, I = Ia(c, m, i), B = I.height + I.depth,
|
|
27017
|
+
var y = Ia(s, m, i), b = y.height + y.depth, E = Ia(l, m, i), T = E.height + E.depth, I = Ia(c, m, i), B = I.height + I.depth, K = 0, z = 1;
|
|
27016
27018
|
if (o !== null) {
|
|
27017
27019
|
var w = Ia(o, m, i);
|
|
27018
|
-
|
|
27020
|
+
K = w.height + w.depth, z = 2;
|
|
27019
27021
|
}
|
|
27020
|
-
var P = b + B +
|
|
27022
|
+
var P = b + B + K, X = Math.max(0, Math.ceil((n - P) / (z * T))), j = P + X * z * T, ne = a.fontMetrics().axisHeight;
|
|
27021
27023
|
r && (ne *= a.sizeMultiplier);
|
|
27022
|
-
var $ = j / 2 - ne,
|
|
27024
|
+
var $ = j / 2 - ne, W = [];
|
|
27023
27025
|
if (h.length > 0) {
|
|
27024
|
-
var F = j - b - B, D = Math.round(j * 1e3), H = bv(h, Math.round(F * 1e3)),
|
|
27026
|
+
var F = j - b - B, D = Math.round(j * 1e3), H = bv(h, Math.round(F * 1e3)), G = new pr(h, H), J = (p / 1e3).toFixed(3) + "em", Q = (D / 1e3).toFixed(3) + "em", Y = new nr([G], {
|
|
27025
27027
|
width: J,
|
|
27026
27028
|
height: Q,
|
|
27027
27029
|
viewBox: "0 0 " + p + " " + D
|
|
27028
27030
|
}), A = gr([], [Y], a);
|
|
27029
|
-
A.height = D / 1e3, A.style.width = J, A.style.height = Q,
|
|
27031
|
+
A.height = D / 1e3, A.style.width = J, A.style.height = Q, W.push({
|
|
27030
27032
|
type: "elem",
|
|
27031
27033
|
elem: A
|
|
27032
27034
|
});
|
|
27033
27035
|
} else {
|
|
27034
|
-
if (
|
|
27036
|
+
if (W.push(gs(c, m, i)), W.push(wi), o === null) {
|
|
27035
27037
|
var oe = j - b - B + 2 * vo;
|
|
27036
|
-
|
|
27038
|
+
W.push(bs(l, oe, a));
|
|
27037
27039
|
} else {
|
|
27038
|
-
var ye = (j - b - B -
|
|
27039
|
-
|
|
27040
|
+
var ye = (j - b - B - K) / 2 + 2 * vo;
|
|
27041
|
+
W.push(bs(l, ye, a)), W.push(wi), W.push(gs(o, m, i)), W.push(wi), W.push(bs(l, ye, a));
|
|
27040
27042
|
}
|
|
27041
|
-
|
|
27043
|
+
W.push(wi), W.push(gs(s, m, i));
|
|
27042
27044
|
}
|
|
27043
27045
|
var k = a.havingBaseStyle(Ne.TEXT), Ee = Je({
|
|
27044
27046
|
positionType: "bottom",
|
|
27045
27047
|
positionData: $,
|
|
27046
|
-
children:
|
|
27048
|
+
children: W
|
|
27047
27049
|
});
|
|
27048
27050
|
return fl(ue(["delimsizing", "mult"], [Ee], k), Ne.TEXT, a, u);
|
|
27049
27051
|
}, ys = 80, vs = 0.08, Ts = function(t, n, r, a, i) {
|
|
@@ -27667,7 +27669,7 @@ function vr(e, t, n) {
|
|
|
27667
27669
|
function B() {
|
|
27668
27670
|
o && e.gullet.macros.set("\\@eqnsw", "1", !0);
|
|
27669
27671
|
}
|
|
27670
|
-
function
|
|
27672
|
+
function K() {
|
|
27671
27673
|
I && (e.gullet.macros.get("\\df@tag") ? (I.push(e.subparse([new mn("\\df@tag")])), e.gullet.macros.set("\\df@tag", void 0, !0)) : I.push(!!o && e.gullet.macros.get("\\@eqnsw") === "1"));
|
|
27672
27674
|
}
|
|
27673
27675
|
for (B(), T.push(a1(e)); ; ) {
|
|
@@ -27691,12 +27693,12 @@ function vr(e, t, n) {
|
|
|
27691
27693
|
}
|
|
27692
27694
|
e.consume();
|
|
27693
27695
|
} else if (w === "\\end") {
|
|
27694
|
-
|
|
27696
|
+
K(), y.length === 1 && z.type === "styling" && z.body[0].body.length === 0 && (b.length > 1 || !c) && b.pop(), T.length < b.length + 1 && T.push([]);
|
|
27695
27697
|
break;
|
|
27696
27698
|
} else if (w === "\\\\") {
|
|
27697
27699
|
e.consume();
|
|
27698
27700
|
var P = void 0;
|
|
27699
|
-
e.gullet.future().text !== " " && (P = e.parseSizeGroup(!0)), E.push(P ? P.value : null),
|
|
27701
|
+
e.gullet.future().text !== " " && (P = e.parseSizeGroup(!0)), E.push(P ? P.value : null), K(), T.push(a1(e)), y = [], b.push(y), B();
|
|
27700
27702
|
} else
|
|
27701
27703
|
throw new le("Expected & or \\\\ or \\cr or \\end", e.nextToken);
|
|
27702
27704
|
}
|
|
@@ -27733,28 +27735,28 @@ var zn = function(t, n) {
|
|
|
27733
27735
|
number: 3,
|
|
27734
27736
|
unit: "ex"
|
|
27735
27737
|
}, n) : 12 * h, b = 3 * h, E = t.arraystretch * y, T = 0.7 * E, I = 0.3 * E, B = 0;
|
|
27736
|
-
function
|
|
27738
|
+
function K(Se) {
|
|
27737
27739
|
for (var _e = 0; _e < Se.length; ++_e)
|
|
27738
27740
|
_e > 0 && (B += 0.25), l.push({
|
|
27739
27741
|
pos: B,
|
|
27740
27742
|
isDashed: Se[_e]
|
|
27741
27743
|
});
|
|
27742
27744
|
}
|
|
27743
|
-
for (
|
|
27745
|
+
for (K(u[0]), r = 0; r < t.body.length; ++r) {
|
|
27744
27746
|
var z = t.body[r], w = T, P = I;
|
|
27745
27747
|
s < z.length && (s = z.length);
|
|
27746
|
-
var
|
|
27748
|
+
var X = new Array(z.length);
|
|
27747
27749
|
for (a = 0; a < z.length; ++a) {
|
|
27748
27750
|
var j = Ze(z[a], n);
|
|
27749
|
-
P < j.depth && (P = j.depth), w < j.height && (w = j.height),
|
|
27751
|
+
P < j.depth && (P = j.depth), w < j.height && (w = j.height), X[a] = j;
|
|
27750
27752
|
}
|
|
27751
27753
|
var ne = t.rowGaps[r], $ = 0;
|
|
27752
|
-
ne && ($ = Ct(ne, n), $ > 0 && ($ += I, P < $ && (P = $), $ = 0)), t.addJot && (P += b),
|
|
27754
|
+
ne && ($ = Ct(ne, n), $ > 0 && ($ += I, P < $ && (P = $), $ = 0)), t.addJot && (P += b), X.height = w, X.depth = P, B += w, X.pos = B, B += P + $, o[r] = X, K(u[r + 1]);
|
|
27753
27755
|
}
|
|
27754
|
-
var
|
|
27756
|
+
var W = B / 2 + n.fontMetrics().axisHeight, F = t.cols || [], D = [], H, G, J = [];
|
|
27755
27757
|
if (t.tags && t.tags.some((Se) => Se))
|
|
27756
27758
|
for (r = 0; r < i; ++r) {
|
|
27757
|
-
var Q = o[r], Y = Q.pos -
|
|
27759
|
+
var Q = o[r], Y = Q.pos - W, A = t.tags[r], oe = void 0;
|
|
27758
27760
|
A === !0 ? oe = ue(["eqn-num"], [], n) : A === !1 ? oe = ue([], [], n) : oe = ue([], Ht(A, n, !0), n), oe.depth = Q.depth, oe.height = Q.height, J.push({
|
|
27759
27761
|
type: "elem",
|
|
27760
27762
|
elem: oe,
|
|
@@ -27762,21 +27764,21 @@ var zn = function(t, n) {
|
|
|
27762
27764
|
});
|
|
27763
27765
|
}
|
|
27764
27766
|
for (
|
|
27765
|
-
a = 0,
|
|
27767
|
+
a = 0, G = 0;
|
|
27766
27768
|
// Continue while either there are more columns or more column
|
|
27767
27769
|
// descriptions, so trailing separators don't get lost.
|
|
27768
|
-
a < s ||
|
|
27769
|
-
++a, ++
|
|
27770
|
+
a < s || G < F.length;
|
|
27771
|
+
++a, ++G
|
|
27770
27772
|
) {
|
|
27771
|
-
for (var ye = F[
|
|
27773
|
+
for (var ye = F[G] || {}, k = !0; ye.type === "separator"; ) {
|
|
27772
27774
|
if (k || (H = ue(["arraycolsep"], []), H.style.width = ge(n.fontMetrics().doubleRuleSep), D.push(H)), ye.separator === "|" || ye.separator === ":") {
|
|
27773
27775
|
var Ee = ye.separator === "|" ? "solid" : "dashed", Oe = ue(["vertical-separator"], [], n);
|
|
27774
27776
|
Oe.style.height = ge(B), Oe.style.borderRightWidth = ge(c), Oe.style.borderRightStyle = Ee, Oe.style.margin = "0 " + ge(-c / 2);
|
|
27775
|
-
var ke = B -
|
|
27777
|
+
var ke = B - W;
|
|
27776
27778
|
ke && (Oe.style.verticalAlign = ge(-ke)), D.push(Oe);
|
|
27777
27779
|
} else
|
|
27778
27780
|
throw new le("Invalid separator type: " + ye.separator);
|
|
27779
|
-
|
|
27781
|
+
G++, ye = F[G] || {}, k = !1;
|
|
27780
27782
|
}
|
|
27781
27783
|
if (!(a >= s)) {
|
|
27782
27784
|
var Me = void 0;
|
|
@@ -27788,7 +27790,7 @@ var zn = function(t, n) {
|
|
|
27788
27790
|
for (r = 0; r < i; ++r) {
|
|
27789
27791
|
var Ve = o[r], et = Ve[a];
|
|
27790
27792
|
if (et) {
|
|
27791
|
-
var Nt = Ve.pos -
|
|
27793
|
+
var Nt = Ve.pos - W;
|
|
27792
27794
|
et.depth = Ve.depth, et.height = Ve.height, Ge.push({
|
|
27793
27795
|
type: "elem",
|
|
27794
27796
|
elem: et,
|
|
@@ -27811,7 +27813,7 @@ var zn = function(t, n) {
|
|
|
27811
27813
|
elem: o,
|
|
27812
27814
|
shift: 0
|
|
27813
27815
|
}]; l.length > 0; ) {
|
|
27814
|
-
var xt = l.pop(), it = xt.pos -
|
|
27816
|
+
var xt = l.pop(), it = xt.pos - W;
|
|
27815
27817
|
xt.isDashed ? Ke.push({
|
|
27816
27818
|
type: "elem",
|
|
27817
27819
|
elem: ze,
|
|
@@ -27855,14 +27857,14 @@ var zn = function(t, n) {
|
|
|
27855
27857
|
c.setAttribute("columnalign", m.trim()), /[sd]/.test(b) && c.setAttribute("columnlines", b.trim());
|
|
27856
27858
|
}
|
|
27857
27859
|
if (t.colSeparationType === "align") {
|
|
27858
|
-
for (var
|
|
27860
|
+
for (var K = t.cols || [], z = "", w = 1; w < K.length; w++)
|
|
27859
27861
|
z += w % 2 ? "0em " : "1em ";
|
|
27860
27862
|
c.setAttribute("columnspacing", z.trim());
|
|
27861
27863
|
} else t.colSeparationType === "alignat" || t.colSeparationType === "gather" ? c.setAttribute("columnspacing", "0em") : t.colSeparationType === "small" ? c.setAttribute("columnspacing", "0.2778em") : t.colSeparationType === "CD" ? c.setAttribute("columnspacing", "0.5em") : c.setAttribute("columnspacing", "1em");
|
|
27862
|
-
var P = "",
|
|
27863
|
-
p +=
|
|
27864
|
-
for (var j = 1; j <
|
|
27865
|
-
P +=
|
|
27864
|
+
var P = "", X = t.hLinesBeforeRow;
|
|
27865
|
+
p += X[0].length > 0 ? "left " : "", p += X[X.length - 1].length > 0 ? "right " : "";
|
|
27866
|
+
for (var j = 1; j < X.length - 1; j++)
|
|
27867
|
+
P += X[j].length === 0 ? "none " : X[j][0] ? "dashed " : "solid ";
|
|
27866
27868
|
return /[sd]/.test(P) && c.setAttribute("rowlines", P.trim()), p !== "" && (c = new ce("menclose", [c]), c.setAttribute("notation", p.trim())), t.arraystretch && t.arraystretch < 1 && (c = new ce("mstyle", [c]), c.setAttribute("scriptlevel", "1")), c;
|
|
27867
27869
|
}, g2 = function(t, n) {
|
|
27868
27870
|
t.envName.includes("ed") || Tu(t);
|
|
@@ -27889,8 +27891,8 @@ var zn = function(t, n) {
|
|
|
27889
27891
|
var m = !o;
|
|
27890
27892
|
u.body.forEach(function(T) {
|
|
27891
27893
|
for (var I = 1; I < T.length; I += 2) {
|
|
27892
|
-
var B = Ue(T[I], "styling"),
|
|
27893
|
-
|
|
27894
|
+
var B = Ue(T[I], "styling"), K = Ue(B.body[0], "ordgroup");
|
|
27895
|
+
K.body.unshift(l);
|
|
27894
27896
|
}
|
|
27895
27897
|
if (m)
|
|
27896
27898
|
o < T.length && (o = T.length);
|
|
@@ -28367,10 +28369,10 @@ var hT = (e, t) => {
|
|
|
28367
28369
|
});
|
|
28368
28370
|
}
|
|
28369
28371
|
i = t.havingStyle(n), E.height *= i.sizeMultiplier / t.sizeMultiplier, E.depth *= i.sizeMultiplier / t.sizeMultiplier;
|
|
28370
|
-
var
|
|
28371
|
-
n.size === Ne.DISPLAY.size ?
|
|
28372
|
+
var K;
|
|
28373
|
+
n.size === Ne.DISPLAY.size ? K = t.fontMetrics().delim1 : n.size === Ne.SCRIPTSCRIPT.size ? K = t.havingStyle(Ne.SCRIPT).fontMetrics().delim2 : K = t.fontMetrics().delim2;
|
|
28372
28374
|
var z, w;
|
|
28373
|
-
return e.leftDelim == null ? z = Wa(t, ["mopen"]) : z = To(e.leftDelim,
|
|
28375
|
+
return e.leftDelim == null ? z = Wa(t, ["mopen"]) : z = To(e.leftDelim, K, !0, t.havingStyle(n), e.mode, ["mopen"]), e.continued ? w = ue([]) : e.rightDelim == null ? w = Wa(t, ["mclose"]) : w = To(e.rightDelim, K, !0, t.havingStyle(n), e.mode, ["mclose"]), ue(["mord"].concat(i.sizingClasses(t)), [z, ue(["mfrac"], [E]), w], t);
|
|
28374
28376
|
}, fT = (e, t) => {
|
|
28375
28377
|
var n = new ce("mfrac", [dt(e.numer, t), dt(e.denom, t)]);
|
|
28376
28378
|
if (!e.hasBarLine)
|
|
@@ -29952,7 +29954,7 @@ Fr({
|
|
|
29952
29954
|
var B = e.base && e.base.type === "op" && e.base.name && (e.base.name === "\\oiint" || e.base.name === "\\oiiint");
|
|
29953
29955
|
(u instanceof Tn || B) && (I = ge(-u.italic));
|
|
29954
29956
|
}
|
|
29955
|
-
var
|
|
29957
|
+
var K;
|
|
29956
29958
|
if (s && o) {
|
|
29957
29959
|
c = Math.max(c, b, s.depth + 0.25 * l.xHeight), h = Math.max(h, l.sub2);
|
|
29958
29960
|
var z = l.defaultRuleThickness, w = 4 * z;
|
|
@@ -29961,7 +29963,7 @@ Fr({
|
|
|
29961
29963
|
var P = 0.8 * l.xHeight - (c - s.depth);
|
|
29962
29964
|
P > 0 && (c += P, h -= P);
|
|
29963
29965
|
}
|
|
29964
|
-
var
|
|
29966
|
+
var X = [{
|
|
29965
29967
|
type: "elem",
|
|
29966
29968
|
elem: o,
|
|
29967
29969
|
shift: h,
|
|
@@ -29973,9 +29975,9 @@ Fr({
|
|
|
29973
29975
|
shift: -c,
|
|
29974
29976
|
marginRight: T
|
|
29975
29977
|
}];
|
|
29976
|
-
|
|
29978
|
+
K = Je({
|
|
29977
29979
|
positionType: "individualShift",
|
|
29978
|
-
children:
|
|
29980
|
+
children: X
|
|
29979
29981
|
});
|
|
29980
29982
|
} else if (o) {
|
|
29981
29983
|
h = Math.max(h, l.sub1, o.height - 0.8 * l.xHeight);
|
|
@@ -29985,13 +29987,13 @@ Fr({
|
|
|
29985
29987
|
marginLeft: I,
|
|
29986
29988
|
marginRight: T
|
|
29987
29989
|
}];
|
|
29988
|
-
|
|
29990
|
+
K = Je({
|
|
29989
29991
|
positionType: "shift",
|
|
29990
29992
|
positionData: h,
|
|
29991
29993
|
children: j
|
|
29992
29994
|
});
|
|
29993
29995
|
} else if (s)
|
|
29994
|
-
c = Math.max(c, b, s.depth + 0.25 * l.xHeight),
|
|
29996
|
+
c = Math.max(c, b, s.depth + 0.25 * l.xHeight), K = Je({
|
|
29995
29997
|
positionType: "shift",
|
|
29996
29998
|
positionData: -c,
|
|
29997
29999
|
children: [{
|
|
@@ -30003,7 +30005,7 @@ Fr({
|
|
|
30003
30005
|
else
|
|
30004
30006
|
throw new Error("supsub must have either sup or sub.");
|
|
30005
30007
|
var ne = go(u, "right") || "mord";
|
|
30006
|
-
return ue([ne], [u, ue(["msupsub"], [
|
|
30008
|
+
return ue([ne], [u, ue(["msupsub"], [K])], t);
|
|
30007
30009
|
},
|
|
30008
30010
|
mathmlBuilder(e, t) {
|
|
30009
30011
|
var n = !1, r, a;
|
|
@@ -32755,7 +32757,7 @@ function GT(e, t, n) {
|
|
|
32755
32757
|
function E(I) {
|
|
32756
32758
|
return e.exit("mathFlow"), t(I);
|
|
32757
32759
|
}
|
|
32758
|
-
function T(I, B,
|
|
32760
|
+
function T(I, B, K) {
|
|
32759
32761
|
let z = 0;
|
|
32760
32762
|
return at(
|
|
32761
32763
|
I,
|
|
@@ -32767,10 +32769,10 @@ function GT(e, t, n) {
|
|
|
32767
32769
|
return I.enter("mathFlowFence"), I.enter("mathFlowFenceSequence"), P(j);
|
|
32768
32770
|
}
|
|
32769
32771
|
function P(j) {
|
|
32770
|
-
return j === 36 ? (z++, I.consume(j), P) : z < u ?
|
|
32772
|
+
return j === 36 ? (z++, I.consume(j), P) : z < u ? K(j) : (I.exit("mathFlowFenceSequence"), at(I, X, "whitespace")(j));
|
|
32771
32773
|
}
|
|
32772
|
-
function
|
|
32773
|
-
return j === null || kr(j) ? (I.exit("mathFlowFence"), B(j)) :
|
|
32774
|
+
function X(j) {
|
|
32775
|
+
return j === null || kr(j) ? (I.exit("mathFlowFence"), B(j)) : K(j);
|
|
32774
32776
|
}
|
|
32775
32777
|
}
|
|
32776
32778
|
}
|
|
@@ -33072,18 +33074,18 @@ function lE() {
|
|
|
33072
33074
|
e.exports = r();
|
|
33073
33075
|
})(oE, (function() {
|
|
33074
33076
|
var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", o = "hour", l = "day", c = "week", h = "month", p = "quarter", m = "year", y = "date", b = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, I = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(D) {
|
|
33075
|
-
var H = ["th", "st", "nd", "rd"],
|
|
33076
|
-
return "[" + D + (H[(
|
|
33077
|
-
} }, B = function(D, H,
|
|
33077
|
+
var H = ["th", "st", "nd", "rd"], G = D % 100;
|
|
33078
|
+
return "[" + D + (H[(G - 20) % 10] || H[G] || H[0]) + "]";
|
|
33079
|
+
} }, B = function(D, H, G) {
|
|
33078
33080
|
var J = String(D);
|
|
33079
|
-
return !J || J.length >= H ? D : "" + Array(H + 1 - J.length).join(
|
|
33080
|
-
},
|
|
33081
|
-
var H = -D.utcOffset(),
|
|
33081
|
+
return !J || J.length >= H ? D : "" + Array(H + 1 - J.length).join(G) + D;
|
|
33082
|
+
}, K = { s: B, z: function(D) {
|
|
33083
|
+
var H = -D.utcOffset(), G = Math.abs(H), J = Math.floor(G / 60), Q = G % 60;
|
|
33082
33084
|
return (H <= 0 ? "+" : "-") + B(J, 2, "0") + ":" + B(Q, 2, "0");
|
|
33083
|
-
}, m: function D(H,
|
|
33084
|
-
if (H.date() <
|
|
33085
|
-
var J = 12 * (
|
|
33086
|
-
return +(-(J + (
|
|
33085
|
+
}, m: function D(H, G) {
|
|
33086
|
+
if (H.date() < G.date()) return -D(G, H);
|
|
33087
|
+
var J = 12 * (G.year() - H.year()) + (G.month() - H.month()), Q = H.clone().add(J, h), Y = G - Q < 0, A = H.clone().add(J + (Y ? -1 : 1), h);
|
|
33088
|
+
return +(-(J + (G - Q) / (Y ? Q - A : A - Q)) || 0);
|
|
33087
33089
|
}, a: function(D) {
|
|
33088
33090
|
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
|
33089
33091
|
}, p: function(D) {
|
|
@@ -33092,14 +33094,14 @@ function lE() {
|
|
|
33092
33094
|
return D === void 0;
|
|
33093
33095
|
} }, z = "en", w = {};
|
|
33094
33096
|
w[z] = I;
|
|
33095
|
-
var P = "$isDayjsObject",
|
|
33096
|
-
return D instanceof
|
|
33097
|
-
}, j = function D(H,
|
|
33097
|
+
var P = "$isDayjsObject", X = function(D) {
|
|
33098
|
+
return D instanceof W || !(!D || !D[P]);
|
|
33099
|
+
}, j = function D(H, G, J) {
|
|
33098
33100
|
var Q;
|
|
33099
33101
|
if (!H) return z;
|
|
33100
33102
|
if (typeof H == "string") {
|
|
33101
33103
|
var Y = H.toLowerCase();
|
|
33102
|
-
w[Y] && (Q = Y),
|
|
33104
|
+
w[Y] && (Q = Y), G && (w[Y] = G, Q = Y);
|
|
33103
33105
|
var A = H.split("-");
|
|
33104
33106
|
if (!Q && A.length > 1) return D(A[0]);
|
|
33105
33107
|
} else {
|
|
@@ -33108,19 +33110,19 @@ function lE() {
|
|
|
33108
33110
|
}
|
|
33109
33111
|
return !J && Q && (z = Q), Q || !J && z;
|
|
33110
33112
|
}, ne = function(D, H) {
|
|
33111
|
-
if (
|
|
33112
|
-
var
|
|
33113
|
-
return
|
|
33114
|
-
}, $ =
|
|
33115
|
-
$.l = j, $.i =
|
|
33113
|
+
if (X(D)) return D.clone();
|
|
33114
|
+
var G = typeof H == "object" ? H : {};
|
|
33115
|
+
return G.date = D, G.args = arguments, new W(G);
|
|
33116
|
+
}, $ = K;
|
|
33117
|
+
$.l = j, $.i = X, $.w = function(D, H) {
|
|
33116
33118
|
return ne(D, { locale: H.$L, utc: H.$u, x: H.$x, $offset: H.$offset });
|
|
33117
33119
|
};
|
|
33118
|
-
var
|
|
33119
|
-
function D(
|
|
33120
|
-
this.$L = j(
|
|
33120
|
+
var W = (function() {
|
|
33121
|
+
function D(G) {
|
|
33122
|
+
this.$L = j(G.locale, null, !0), this.parse(G), this.$x = this.$x || G.x || {}, this[P] = !0;
|
|
33121
33123
|
}
|
|
33122
33124
|
var H = D.prototype;
|
|
33123
|
-
return H.parse = function(
|
|
33125
|
+
return H.parse = function(G) {
|
|
33124
33126
|
this.$d = (function(J) {
|
|
33125
33127
|
var Q = J.date, Y = J.utc;
|
|
33126
33128
|
if (Q === null) return /* @__PURE__ */ new Date(NaN);
|
|
@@ -33134,29 +33136,29 @@ function lE() {
|
|
|
33134
33136
|
}
|
|
33135
33137
|
}
|
|
33136
33138
|
return new Date(Q);
|
|
33137
|
-
})(
|
|
33139
|
+
})(G), this.init();
|
|
33138
33140
|
}, H.init = function() {
|
|
33139
|
-
var
|
|
33140
|
-
this.$y =
|
|
33141
|
+
var G = this.$d;
|
|
33142
|
+
this.$y = G.getFullYear(), this.$M = G.getMonth(), this.$D = G.getDate(), this.$W = G.getDay(), this.$H = G.getHours(), this.$m = G.getMinutes(), this.$s = G.getSeconds(), this.$ms = G.getMilliseconds();
|
|
33141
33143
|
}, H.$utils = function() {
|
|
33142
33144
|
return $;
|
|
33143
33145
|
}, H.isValid = function() {
|
|
33144
33146
|
return this.$d.toString() !== b;
|
|
33145
|
-
}, H.isSame = function(
|
|
33146
|
-
var Q = ne(
|
|
33147
|
+
}, H.isSame = function(G, J) {
|
|
33148
|
+
var Q = ne(G);
|
|
33147
33149
|
return this.startOf(J) <= Q && Q <= this.endOf(J);
|
|
33148
|
-
}, H.isAfter = function(
|
|
33149
|
-
return ne(
|
|
33150
|
-
}, H.isBefore = function(
|
|
33151
|
-
return this.endOf(J) < ne(
|
|
33152
|
-
}, H.$g = function(
|
|
33153
|
-
return $.u(
|
|
33150
|
+
}, H.isAfter = function(G, J) {
|
|
33151
|
+
return ne(G) < this.startOf(J);
|
|
33152
|
+
}, H.isBefore = function(G, J) {
|
|
33153
|
+
return this.endOf(J) < ne(G);
|
|
33154
|
+
}, H.$g = function(G, J, Q) {
|
|
33155
|
+
return $.u(G) ? this[J] : this.set(Q, G);
|
|
33154
33156
|
}, H.unix = function() {
|
|
33155
33157
|
return Math.floor(this.valueOf() / 1e3);
|
|
33156
33158
|
}, H.valueOf = function() {
|
|
33157
33159
|
return this.$d.getTime();
|
|
33158
|
-
}, H.startOf = function(
|
|
33159
|
-
var Q = this, Y = !!$.u(J) || J, A = $.p(
|
|
33160
|
+
}, H.startOf = function(G, J) {
|
|
33161
|
+
var Q = this, Y = !!$.u(J) || J, A = $.p(G), oe = function(Ge, Ve) {
|
|
33160
33162
|
var et = $.w(Q.$u ? Date.UTC(Q.$y, Ve, Ge) : new Date(Q.$y, Ve, Ge), Q);
|
|
33161
33163
|
return Y ? et : et.endOf(l);
|
|
33162
33164
|
}, ye = function(Ge, Ve) {
|
|
@@ -33182,38 +33184,38 @@ function lE() {
|
|
|
33182
33184
|
default:
|
|
33183
33185
|
return this.clone();
|
|
33184
33186
|
}
|
|
33185
|
-
}, H.endOf = function(
|
|
33186
|
-
return this.startOf(
|
|
33187
|
-
}, H.$set = function(
|
|
33188
|
-
var Q, Y = $.p(
|
|
33187
|
+
}, H.endOf = function(G) {
|
|
33188
|
+
return this.startOf(G, !1);
|
|
33189
|
+
}, H.$set = function(G, J) {
|
|
33190
|
+
var Q, Y = $.p(G), A = "set" + (this.$u ? "UTC" : ""), oe = (Q = {}, Q[l] = A + "Date", Q[y] = A + "Date", Q[h] = A + "Month", Q[m] = A + "FullYear", Q[o] = A + "Hours", Q[s] = A + "Minutes", Q[u] = A + "Seconds", Q[i] = A + "Milliseconds", Q)[Y], ye = Y === l ? this.$D + (J - this.$W) : J;
|
|
33189
33191
|
if (Y === h || Y === m) {
|
|
33190
33192
|
var k = this.clone().set(y, 1);
|
|
33191
33193
|
k.$d[oe](ye), k.init(), this.$d = k.set(y, Math.min(this.$D, k.daysInMonth())).$d;
|
|
33192
33194
|
} else oe && this.$d[oe](ye);
|
|
33193
33195
|
return this.init(), this;
|
|
33194
|
-
}, H.set = function(
|
|
33195
|
-
return this.clone().$set(
|
|
33196
|
-
}, H.get = function(
|
|
33197
|
-
return this[$.p(
|
|
33198
|
-
}, H.add = function(
|
|
33196
|
+
}, H.set = function(G, J) {
|
|
33197
|
+
return this.clone().$set(G, J);
|
|
33198
|
+
}, H.get = function(G) {
|
|
33199
|
+
return this[$.p(G)]();
|
|
33200
|
+
}, H.add = function(G, J) {
|
|
33199
33201
|
var Q, Y = this;
|
|
33200
|
-
|
|
33202
|
+
G = Number(G);
|
|
33201
33203
|
var A = $.p(J), oe = function(Ee) {
|
|
33202
33204
|
var Oe = ne(Y);
|
|
33203
|
-
return $.w(Oe.date(Oe.date() + Math.round(Ee *
|
|
33205
|
+
return $.w(Oe.date(Oe.date() + Math.round(Ee * G)), Y);
|
|
33204
33206
|
};
|
|
33205
|
-
if (A === h) return this.set(h, this.$M +
|
|
33206
|
-
if (A === m) return this.set(m, this.$y +
|
|
33207
|
+
if (A === h) return this.set(h, this.$M + G);
|
|
33208
|
+
if (A === m) return this.set(m, this.$y + G);
|
|
33207
33209
|
if (A === l) return oe(1);
|
|
33208
33210
|
if (A === c) return oe(7);
|
|
33209
|
-
var ye = (Q = {}, Q[s] = r, Q[o] = a, Q[u] = n, Q)[A] || 1, k = this.$d.getTime() +
|
|
33211
|
+
var ye = (Q = {}, Q[s] = r, Q[o] = a, Q[u] = n, Q)[A] || 1, k = this.$d.getTime() + G * ye;
|
|
33210
33212
|
return $.w(k, this);
|
|
33211
|
-
}, H.subtract = function(
|
|
33212
|
-
return this.add(-1 *
|
|
33213
|
-
}, H.format = function(
|
|
33213
|
+
}, H.subtract = function(G, J) {
|
|
33214
|
+
return this.add(-1 * G, J);
|
|
33215
|
+
}, H.format = function(G) {
|
|
33214
33216
|
var J = this, Q = this.$locale();
|
|
33215
33217
|
if (!this.isValid()) return Q.invalidDate || b;
|
|
33216
|
-
var Y =
|
|
33218
|
+
var Y = G || "YYYY-MM-DDTHH:mm:ssZ", A = $.z(this), oe = this.$H, ye = this.$m, k = this.$M, Ee = Q.weekdays, Oe = Q.months, ke = Q.meridiem, Me = function(Ve, et, Nt, Ft) {
|
|
33217
33219
|
return Ve && (Ve[et] || Ve(J, Y)) || Nt[et].slice(0, Ft);
|
|
33218
33220
|
}, Ye = function(Ve) {
|
|
33219
33221
|
return $.s(oe % 12 || 12, Ve, "0");
|
|
@@ -33278,8 +33280,8 @@ function lE() {
|
|
|
33278
33280
|
}));
|
|
33279
33281
|
}, H.utcOffset = function() {
|
|
33280
33282
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
33281
|
-
}, H.diff = function(
|
|
33282
|
-
var Y, A = this, oe = $.p(J), ye = ne(
|
|
33283
|
+
}, H.diff = function(G, J, Q) {
|
|
33284
|
+
var Y, A = this, oe = $.p(J), ye = ne(G), k = (ye.utcOffset() - this.utcOffset()) * r, Ee = this - ye, Oe = function() {
|
|
33283
33285
|
return $.m(A, ye);
|
|
33284
33286
|
};
|
|
33285
33287
|
switch (oe) {
|
|
@@ -33315,9 +33317,9 @@ function lE() {
|
|
|
33315
33317
|
return this.endOf(h).$D;
|
|
33316
33318
|
}, H.$locale = function() {
|
|
33317
33319
|
return w[this.$L];
|
|
33318
|
-
}, H.locale = function(
|
|
33319
|
-
if (!
|
|
33320
|
-
var Q = this.clone(), Y = j(
|
|
33320
|
+
}, H.locale = function(G, J) {
|
|
33321
|
+
if (!G) return this.$L;
|
|
33322
|
+
var Q = this.clone(), Y = j(G, J, !0);
|
|
33321
33323
|
return Y && (Q.$L = Y), Q;
|
|
33322
33324
|
}, H.clone = function() {
|
|
33323
33325
|
return $.w(this.$d, this);
|
|
@@ -33330,14 +33332,14 @@ function lE() {
|
|
|
33330
33332
|
}, H.toString = function() {
|
|
33331
33333
|
return this.$d.toUTCString();
|
|
33332
33334
|
}, D;
|
|
33333
|
-
})(), F =
|
|
33335
|
+
})(), F = W.prototype;
|
|
33334
33336
|
return ne.prototype = F, [["$ms", i], ["$s", u], ["$m", s], ["$H", o], ["$W", l], ["$M", h], ["$y", m], ["$D", y]].forEach((function(D) {
|
|
33335
33337
|
F[D[1]] = function(H) {
|
|
33336
33338
|
return this.$g(H, D[0], D[1]);
|
|
33337
33339
|
};
|
|
33338
33340
|
})), ne.extend = function(D, H) {
|
|
33339
|
-
return D.$i || (D(H,
|
|
33340
|
-
}, ne.locale = j, ne.isDayjs =
|
|
33341
|
+
return D.$i || (D(H, W, ne), D.$i = !0), ne;
|
|
33342
|
+
}, ne.locale = j, ne.isDayjs = X, ne.unix = function(D) {
|
|
33341
33343
|
return ne(1e3 * D);
|
|
33342
33344
|
}, ne.en = w[z], ne.Ls = w, ne.p = {}, ne;
|
|
33343
33345
|
}));
|
|
@@ -33821,27 +33823,27 @@ const SE = (e) => ({
|
|
|
33821
33823
|
);
|
|
33822
33824
|
Xe(() => {
|
|
33823
33825
|
if (!r) return;
|
|
33824
|
-
const
|
|
33825
|
-
if (!
|
|
33826
|
-
const z =
|
|
33826
|
+
const K = n?.current;
|
|
33827
|
+
if (!K) return;
|
|
33828
|
+
const z = K.closest(
|
|
33827
33829
|
'[data-xpert-chat-scroll-container="true"]'
|
|
33828
33830
|
);
|
|
33829
33831
|
if (z) {
|
|
33830
|
-
const { scrollTop: w, scrollHeight: P, clientHeight:
|
|
33831
|
-
if (!(P - (w +
|
|
33832
|
+
const { scrollTop: w, scrollHeight: P, clientHeight: X } = z;
|
|
33833
|
+
if (!(P - (w + X) <= 24) || typeof z.scrollTo != "function") return;
|
|
33832
33834
|
z.scrollTo({
|
|
33833
33835
|
top: z.scrollHeight,
|
|
33834
33836
|
behavior: "auto"
|
|
33835
33837
|
});
|
|
33836
33838
|
return;
|
|
33837
33839
|
}
|
|
33838
|
-
typeof
|
|
33840
|
+
typeof K.scrollIntoView == "function" && K.scrollIntoView({ block: "end" });
|
|
33839
33841
|
}, [r, n, I]);
|
|
33840
33842
|
const B = $t(() => {
|
|
33841
33843
|
if (!E) return null;
|
|
33842
33844
|
if (y === We.USER)
|
|
33843
33845
|
return I;
|
|
33844
|
-
const
|
|
33846
|
+
const K = CE(I);
|
|
33845
33847
|
return /* @__PURE__ */ C.jsx(
|
|
33846
33848
|
zo,
|
|
33847
33849
|
{
|
|
@@ -33863,7 +33865,7 @@ const SE = (e) => ({
|
|
|
33863
33865
|
]
|
|
33864
33866
|
],
|
|
33865
33867
|
transformLinkUri: P2,
|
|
33866
|
-
children:
|
|
33868
|
+
children: K
|
|
33867
33869
|
}
|
|
33868
33870
|
);
|
|
33869
33871
|
}, [
|
|
@@ -34251,7 +34253,7 @@ function Su({
|
|
|
34251
34253
|
const b = m === "text", E = m === "ranking", T = !!h?.trim(), I = T ? `${c} - ${h}` : c, B = $t(
|
|
34252
34254
|
() => OE(I),
|
|
34253
34255
|
[I]
|
|
34254
|
-
), [
|
|
34256
|
+
), [K, z] = we({
|
|
34255
34257
|
prompt: I,
|
|
34256
34258
|
visibleTokenCount: 0
|
|
34257
34259
|
});
|
|
@@ -34269,7 +34271,7 @@ function Su({
|
|
|
34269
34271
|
window.clearInterval(A);
|
|
34270
34272
|
};
|
|
34271
34273
|
}, [I, B]);
|
|
34272
|
-
const w =
|
|
34274
|
+
const w = K.prompt === I ? K.visibleTokenCount : 0, P = B.slice(0, w).join(""), X = c.length, j = P.slice(0, X).trimEnd(), ne = T ? P.slice(X).replace(/^\s*-\s*/, "") : "", $ = w < B.length, W = Math.max(1, i ?? 1), F = `survey-question-${o}`, D = `${F}-label`, H = `${F}-row`, G = `${F}-options-label`, J = `${F}-free-text-hint`, Q = T ? `${D} ${H}` : D;
|
|
34273
34275
|
return /* @__PURE__ */ C.jsxs(
|
|
34274
34276
|
"section",
|
|
34275
34277
|
{
|
|
@@ -34354,12 +34356,12 @@ function Su({
|
|
|
34354
34356
|
{
|
|
34355
34357
|
className: "xpert_chatbot__survey-card__options",
|
|
34356
34358
|
role: E ? void 0 : "radiogroup",
|
|
34357
|
-
"aria-labelledby":
|
|
34359
|
+
"aria-labelledby": G,
|
|
34358
34360
|
children: [
|
|
34359
34361
|
/* @__PURE__ */ C.jsx(
|
|
34360
34362
|
"legend",
|
|
34361
34363
|
{
|
|
34362
|
-
id:
|
|
34364
|
+
id: G,
|
|
34363
34365
|
style: {
|
|
34364
34366
|
position: "absolute",
|
|
34365
34367
|
width: "1px",
|
|
@@ -34392,7 +34394,7 @@ function Su({
|
|
|
34392
34394
|
role: "group",
|
|
34393
34395
|
"aria-label": `Ranks for ${Y.label}`,
|
|
34394
34396
|
style: { display: "flex", gap: "0.4rem" },
|
|
34395
|
-
children: Array.from({ length:
|
|
34397
|
+
children: Array.from({ length: W }, (oe, ye) => {
|
|
34396
34398
|
const k = ye + 1, Ee = e?.[Y.id] === k;
|
|
34397
34399
|
return /* @__PURE__ */ C.jsx(
|
|
34398
34400
|
"button",
|
|
@@ -34504,12 +34506,12 @@ function _l({
|
|
|
34504
34506
|
surveyLoading: T,
|
|
34505
34507
|
surveyPromptSelected: I,
|
|
34506
34508
|
surveyStepIndex: B,
|
|
34507
|
-
triggerSurveyPrompt:
|
|
34509
|
+
triggerSurveyPrompt: K
|
|
34508
34510
|
}) {
|
|
34509
34511
|
const z = h ?? DE, w = $t(
|
|
34510
34512
|
() => RE(z),
|
|
34511
34513
|
[z]
|
|
34512
|
-
), [P,
|
|
34514
|
+
), [P, X] = we({
|
|
34513
34515
|
streamKey: null,
|
|
34514
34516
|
visibleTokenCount: 0
|
|
34515
34517
|
});
|
|
@@ -34518,7 +34520,7 @@ function _l({
|
|
|
34518
34520
|
return;
|
|
34519
34521
|
let F = 0;
|
|
34520
34522
|
const D = `${y}:${I}:${s}`, H = window.setInterval(() => {
|
|
34521
|
-
F += 1,
|
|
34523
|
+
F += 1, X({
|
|
34522
34524
|
streamKey: D,
|
|
34523
34525
|
visibleTokenCount: F
|
|
34524
34526
|
}), F >= w.length && window.clearInterval(H);
|
|
@@ -34527,14 +34529,14 @@ function _l({
|
|
|
34527
34529
|
window.clearInterval(H);
|
|
34528
34530
|
};
|
|
34529
34531
|
}, [w, s, y, I]);
|
|
34530
|
-
const j = `${y}:${I}:${s}`, ne = P.streamKey === j ? P.visibleTokenCount : 0, $ = w.slice(0, ne).join(""),
|
|
34532
|
+
const j = `${y}:${I}:${s}`, ne = P.streamKey === j ? P.visibleTokenCount : 0, $ = w.slice(0, ne).join(""), W = y && I && !s && ne < w.length;
|
|
34531
34533
|
return /* @__PURE__ */ C.jsxs(C.Fragment, { children: [
|
|
34532
34534
|
!s && y && !b && /* @__PURE__ */ C.jsx("div", { style: { margin: "0.75rem 0" }, children: /* @__PURE__ */ C.jsx(
|
|
34533
34535
|
"button",
|
|
34534
34536
|
{
|
|
34535
34537
|
type: "button",
|
|
34536
34538
|
className: "xpert_chatbot__survey-btn xpert_chatbot__survey-btn--primary",
|
|
34537
|
-
onClick: () =>
|
|
34539
|
+
onClick: () => K("internal"),
|
|
34538
34540
|
children: "Take Survey ✨"
|
|
34539
34541
|
}
|
|
34540
34542
|
) }),
|
|
@@ -34551,11 +34553,11 @@ function _l({
|
|
|
34551
34553
|
className: "xpert_chatbot__survey-callout",
|
|
34552
34554
|
style: { color: "#3f2c00" },
|
|
34553
34555
|
"aria-live": "polite",
|
|
34554
|
-
"aria-busy":
|
|
34556
|
+
"aria-busy": W,
|
|
34555
34557
|
children: $
|
|
34556
34558
|
}
|
|
34557
34559
|
),
|
|
34558
|
-
!
|
|
34560
|
+
!W && /* @__PURE__ */ C.jsxs(
|
|
34559
34561
|
"div",
|
|
34560
34562
|
{
|
|
34561
34563
|
style: { display: "flex", gap: "0.75rem", marginTop: "0.75rem" },
|
|
@@ -35116,14 +35118,14 @@ function GE({
|
|
|
35116
35118
|
}) {
|
|
35117
35119
|
const l = "--- SWITCHED TO SURVEY MODE ---", [c, h] = we(!1), [p, m] = we(!1), [y, b] = we(0), [E, T] = we(null), [I, B] = we(
|
|
35118
35120
|
{}
|
|
35119
|
-
), [
|
|
35121
|
+
), [K, z] = we({}), [w, P] = we(!1), [X, j] = we(null), ne = r?.surveys ?? r?.survey, $ = $t(
|
|
35120
35122
|
() => $2(ne),
|
|
35121
35123
|
[ne]
|
|
35122
|
-
),
|
|
35124
|
+
), W = $?.enabled === !0, F = $?.externalTrigger === !0, D = r?.conversationHistory?.enabled === !0, H = ct(c);
|
|
35123
35125
|
Xe(() => {
|
|
35124
35126
|
H.current = c;
|
|
35125
35127
|
}, [c]);
|
|
35126
|
-
const
|
|
35128
|
+
const G = ct(null), J = ct(null), Q = ct(null), Y = $t(() => c ? E?.questions?.[y] ?? null : null, [c, E, y]), A = !!Y && Y?.type !== "text", oe = $t(() => Y?.type !== "ranking" ? {} : K?.[Y?.id] ?? {}, [Y, K]), ye = $t(() => Y?.id ? I?.[Y.id] ?? null : null, [Y, I]), k = Y?.type === "text" ? ye?.answerText ?? "" : "", Ee = $t(() => Y?.type !== "ranking" ? !1 : N1(Y, oe).length >= Ao(Y), [oe, Y]), Oe = $t(() => Array.isArray(o) ? o.map((pe) => ({
|
|
35127
35129
|
role: pe.role,
|
|
35128
35130
|
content: pe.content,
|
|
35129
35131
|
...pe.toolCalls && { tool_calls: pe.toolCalls },
|
|
@@ -35154,14 +35156,14 @@ function GE({
|
|
|
35154
35156
|
}), m(!0);
|
|
35155
35157
|
};
|
|
35156
35158
|
Xe(() => {
|
|
35157
|
-
if (F &&
|
|
35159
|
+
if (F && W && a && !H.current) {
|
|
35158
35160
|
if (typeof a == "number") {
|
|
35159
35161
|
if (Ge.current === a) return;
|
|
35160
35162
|
Ge.current = a;
|
|
35161
35163
|
}
|
|
35162
35164
|
Ve("external");
|
|
35163
35165
|
}
|
|
35164
|
-
}, [a,
|
|
35166
|
+
}, [a, W, F]);
|
|
35165
35167
|
const et = (pe = !0, Se = {}) => {
|
|
35166
35168
|
const { skipTelemetryPost: _e = !1, surveyResponseOverride: Pe = null } = Se ?? {}, je = E?.id ?? "end_of_term_survey", ut = n && D ? Zn(n) : null, bt = E?.questions?.length ?? 0, nt = Math.max(
|
|
35167
35169
|
0,
|
|
@@ -35170,7 +35172,7 @@ function GE({
|
|
|
35170
35172
|
conversationId: ut,
|
|
35171
35173
|
surveyId: je,
|
|
35172
35174
|
status: pe ? "completed" : "inProgress",
|
|
35173
|
-
startedAt:
|
|
35175
|
+
startedAt: G.current,
|
|
35174
35176
|
lastAnsweredAt: J.current,
|
|
35175
35177
|
completedAt: ie,
|
|
35176
35178
|
currentQuestionId: Y?.id ?? null,
|
|
@@ -35185,7 +35187,7 @@ function GE({
|
|
|
35185
35187
|
clientId: n,
|
|
35186
35188
|
conversationHistoryEnabled: D,
|
|
35187
35189
|
onMessageSent: u
|
|
35188
|
-
}), h(!1), m(!1), b(0), T(null), B({}), z({}), P(!1), j(null),
|
|
35190
|
+
}), h(!1), m(!1), b(0), T(null), B({}), z({}), P(!1), j(null), G.current = null, J.current = null;
|
|
35189
35191
|
const De = pe || Z ? "--- EXITED SURVEY MODE. RESPONSES SAVED. ---" : "--- EXITED SURVEY MODE. ---";
|
|
35190
35192
|
typeof s == "function" && (ke({
|
|
35191
35193
|
role: We.INFO,
|
|
@@ -35204,7 +35206,7 @@ function GE({
|
|
|
35204
35206
|
throw new Error("Survey definition missing normalized questions");
|
|
35205
35207
|
T(Te);
|
|
35206
35208
|
const De = (/* @__PURE__ */ new Date()).toISOString();
|
|
35207
|
-
|
|
35209
|
+
G.current = De, J.current = null;
|
|
35208
35210
|
const Re = n && D ? Zn(n) : null, st = Te?.questions?.length ?? 0, kt = Te?.questions?.[0]?.id ?? null, Qt = Ai({
|
|
35209
35211
|
conversationId: Re,
|
|
35210
35212
|
surveyId: Te?.id ?? "end_of_term_survey",
|
|
@@ -35252,7 +35254,7 @@ function GE({
|
|
|
35252
35254
|
);
|
|
35253
35255
|
T(je);
|
|
35254
35256
|
const ut = (/* @__PURE__ */ new Date()).toISOString();
|
|
35255
|
-
|
|
35257
|
+
G.current = ut, J.current = null;
|
|
35256
35258
|
const bt = n && D ? Zn(n) : null, nt = je?.questions?.length ?? 0, Z = je?.questions?.[0]?.id ?? null, ie = Ai({
|
|
35257
35259
|
conversationId: bt,
|
|
35258
35260
|
surveyId: je?.id ?? "end_of_term_survey",
|
|
@@ -35296,7 +35298,7 @@ function GE({
|
|
|
35296
35298
|
conversationId: bt,
|
|
35297
35299
|
surveyId: ut,
|
|
35298
35300
|
status: Te ? "completed" : "inProgress",
|
|
35299
|
-
startedAt:
|
|
35301
|
+
startedAt: G.current,
|
|
35300
35302
|
lastAnsweredAt: je,
|
|
35301
35303
|
completedAt: De,
|
|
35302
35304
|
currentQuestionId: pe.id,
|
|
@@ -35336,7 +35338,7 @@ function GE({
|
|
|
35336
35338
|
if (J.current = _e, Se.type === "ranking") {
|
|
35337
35339
|
if (!pe?.id || !Number.isFinite(pe?.rank))
|
|
35338
35340
|
return;
|
|
35339
|
-
const nt = { ...
|
|
35341
|
+
const nt = { ...K?.[Se.id] ?? {} };
|
|
35340
35342
|
Object.entries(nt).forEach(([Z, ie]) => {
|
|
35341
35343
|
ie === pe.rank && Z !== pe.id && delete nt[Z];
|
|
35342
35344
|
}), nt[pe.id] === pe.rank ? delete nt[pe.id] : nt[pe.id] = pe.rank, z((Z) => ({
|
|
@@ -35369,7 +35371,7 @@ function GE({
|
|
|
35369
35371
|
if (pe?.type !== "ranking") return;
|
|
35370
35372
|
const Se = N1(
|
|
35371
35373
|
pe,
|
|
35372
|
-
|
|
35374
|
+
K?.[pe.id] ?? {}
|
|
35373
35375
|
), _e = Ao(pe);
|
|
35374
35376
|
if (Se.length < _e)
|
|
35375
35377
|
return;
|
|
@@ -35410,12 +35412,12 @@ function GE({
|
|
|
35410
35412
|
selectedSurveyConfiguration: $,
|
|
35411
35413
|
startSurvey: Nt,
|
|
35412
35414
|
surveyDefinition: E,
|
|
35413
|
-
surveyEnabled:
|
|
35415
|
+
surveyEnabled: W,
|
|
35414
35416
|
surveyExternalTrigger: F,
|
|
35415
35417
|
surveyInputActive: A,
|
|
35416
35418
|
activeRankingSelections: oe,
|
|
35417
35419
|
canSubmitActiveRankingQuestion: Ee,
|
|
35418
|
-
surveyLoadError:
|
|
35420
|
+
surveyLoadError: X,
|
|
35419
35421
|
surveyLoading: w,
|
|
35420
35422
|
surveyPromptSelected: p,
|
|
35421
35423
|
surveyStepIndex: y,
|
|
@@ -35438,19 +35440,19 @@ function Y2({
|
|
|
35438
35440
|
pushXpertMessage: h,
|
|
35439
35441
|
xpertMessages: p
|
|
35440
35442
|
} = Ae(yr), m = Array.isArray(p) ? p.length : 0, { loading: y, setMode: b, mode: E, loadingHistory: T, externalTriggerSurvey: I } = Ae(jt), B = ct(null), {
|
|
35441
|
-
activeSurveyAnswer:
|
|
35443
|
+
activeSurveyAnswer: K,
|
|
35442
35444
|
activeSurveyQuestion: z,
|
|
35443
35445
|
activeRankingSelections: w,
|
|
35444
35446
|
canSubmitActiveRankingQuestion: P,
|
|
35445
|
-
exitSurvey:
|
|
35447
|
+
exitSurvey: X,
|
|
35446
35448
|
goToNextSurveyQuestion: j,
|
|
35447
35449
|
goToPreviousSurveyQuestion: ne,
|
|
35448
35450
|
handleSendRouted: $,
|
|
35449
|
-
handleSurveyInputChange:
|
|
35451
|
+
handleSurveyInputChange: W,
|
|
35450
35452
|
handleSurveyOptionSelect: F,
|
|
35451
35453
|
isSurveyMode: D,
|
|
35452
35454
|
selectedSurveyConfiguration: H,
|
|
35453
|
-
startSurvey:
|
|
35455
|
+
startSurvey: G,
|
|
35454
35456
|
surveyDefinition: J,
|
|
35455
35457
|
surveyEnabled: Q,
|
|
35456
35458
|
surveyExternalTrigger: Y,
|
|
@@ -35489,7 +35491,7 @@ function Y2({
|
|
|
35489
35491
|
wu,
|
|
35490
35492
|
{
|
|
35491
35493
|
currentStep: Oe + 1,
|
|
35492
|
-
onExit: () =>
|
|
35494
|
+
onExit: () => X(!1),
|
|
35493
35495
|
totalSteps: J?.questions?.length ?? 1
|
|
35494
35496
|
}
|
|
35495
35497
|
),
|
|
@@ -35531,7 +35533,7 @@ function Y2({
|
|
|
35531
35533
|
/* @__PURE__ */ C.jsx(
|
|
35532
35534
|
_l,
|
|
35533
35535
|
{
|
|
35534
|
-
activeSurveyAnswer:
|
|
35536
|
+
activeSurveyAnswer: K,
|
|
35535
35537
|
activeSurveyQuestion: z,
|
|
35536
35538
|
activeRankingSelections: w,
|
|
35537
35539
|
canSubmitActiveRankingQuestion: P,
|
|
@@ -35543,7 +35545,7 @@ function Y2({
|
|
|
35543
35545
|
setSurveyLoading: Ye,
|
|
35544
35546
|
setSurveyPromptSelected: Ge,
|
|
35545
35547
|
surveyDescription: H?.description,
|
|
35546
|
-
startSurvey:
|
|
35548
|
+
startSurvey: G,
|
|
35547
35549
|
surveyDefinition: J,
|
|
35548
35550
|
surveyEnabled: Q,
|
|
35549
35551
|
surveyExternalTrigger: Y,
|
|
@@ -35582,7 +35584,7 @@ function Y2({
|
|
|
35582
35584
|
nu,
|
|
35583
35585
|
{
|
|
35584
35586
|
disabled: y || T || l || oe,
|
|
35585
|
-
handleChange: Nt ?
|
|
35587
|
+
handleChange: Nt ? W : void 0,
|
|
35586
35588
|
handleSend: $,
|
|
35587
35589
|
inputRef: t,
|
|
35588
35590
|
value: Nt ? A : void 0
|
|
@@ -35818,9 +35820,9 @@ function XE() {
|
|
|
35818
35820
|
return b && window.clearTimeout(b);
|
|
35819
35821
|
};
|
|
35820
35822
|
}, l = function(c, h, p, m, y, b, E) {
|
|
35821
|
-
var T = h.setLastMessage, I = h.setReadyState, B,
|
|
35822
|
-
return p.current.fromSocketIO && (B = (0, t.setUpSocketIOPing)(E)), i(c, p, T, b), u(c, p, I, y, b),
|
|
35823
|
-
I(r.ReadyState.CLOSING),
|
|
35823
|
+
var T = h.setLastMessage, I = h.setReadyState, B, K, z;
|
|
35824
|
+
return p.current.fromSocketIO && (B = (0, t.setUpSocketIOPing)(E)), i(c, p, T, b), u(c, p, I, y, b), K = s(c, p, I, m, y), z = o(c, p, I, m, y), function() {
|
|
35825
|
+
I(r.ReadyState.CLOSING), K(), z(), c.close(), B && clearInterval(B);
|
|
35824
35826
|
};
|
|
35825
35827
|
};
|
|
35826
35828
|
return wr.attachListeners = l, wr;
|
|
@@ -36032,7 +36034,7 @@ function ZE() {
|
|
|
36032
36034
|
for (var c = [], h = 2; h < arguments.length; h++)
|
|
36033
36035
|
c[h - 2] = arguments[h];
|
|
36034
36036
|
return t(void 0, r([o, l], c, !0), void 0, function(p, m, y) {
|
|
36035
|
-
var b, E, T, I, B,
|
|
36037
|
+
var b, E, T, I, B, K, z, w;
|
|
36036
36038
|
return y === void 0 && (y = 0), n(this, function(P) {
|
|
36037
36039
|
switch (P.label) {
|
|
36038
36040
|
case 0:
|
|
@@ -36043,7 +36045,7 @@ function ZE() {
|
|
|
36043
36045
|
case 2:
|
|
36044
36046
|
return b = P.sent(), [3, 9];
|
|
36045
36047
|
case 3:
|
|
36046
|
-
return P.sent(), m.current.retryOnError ? (E = (
|
|
36048
|
+
return P.sent(), m.current.retryOnError ? (E = (K = m.current.reconnectAttempts) !== null && K !== void 0 ? K : i.DEFAULT_RECONNECT_LIMIT, y < E ? (T = typeof m.current.reconnectInterval == "function" ? m.current.reconnectInterval(y) : m.current.reconnectInterval, [4, u(T ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
|
|
36047
36049
|
case 4:
|
|
36048
36050
|
return P.sent(), [2, (0, e.getUrl)(p, m, y + 1)];
|
|
36049
36051
|
case 5:
|
|
@@ -36112,7 +36114,7 @@ function Dl() {
|
|
|
36112
36114
|
I(P);
|
|
36113
36115
|
}
|
|
36114
36116
|
}
|
|
36115
|
-
function
|
|
36117
|
+
function K(w) {
|
|
36116
36118
|
try {
|
|
36117
36119
|
z(b.throw(w));
|
|
36118
36120
|
} catch (P) {
|
|
@@ -36120,7 +36122,7 @@ function Dl() {
|
|
|
36120
36122
|
}
|
|
36121
36123
|
}
|
|
36122
36124
|
function z(w) {
|
|
36123
|
-
w.done ? T(w.value) : E(w.value).then(B,
|
|
36125
|
+
w.done ? T(w.value) : E(w.value).then(B, K);
|
|
36124
36126
|
}
|
|
36125
36127
|
z((b = b.apply(p, m || [])).next());
|
|
36126
36128
|
});
|
|
@@ -36134,10 +36136,10 @@ function Dl() {
|
|
|
36134
36136
|
}), I;
|
|
36135
36137
|
function B(z) {
|
|
36136
36138
|
return function(w) {
|
|
36137
|
-
return
|
|
36139
|
+
return K([z, w]);
|
|
36138
36140
|
};
|
|
36139
36141
|
}
|
|
36140
|
-
function
|
|
36142
|
+
function K(z) {
|
|
36141
36143
|
if (b) throw new TypeError("Generator is already executing.");
|
|
36142
36144
|
for (; I && (I = 0, z[0] && (y = 0)), y; ) try {
|
|
36143
36145
|
if (b = 1, E && (T = z[0] & 2 ? E.return : z[0] ? E.throw || ((T = E.return) && T.call(E), 0) : E.next) && !(T = T.call(E, z[1])).done) return T;
|
|
@@ -36189,7 +36191,7 @@ function Dl() {
|
|
|
36189
36191
|
Object.defineProperty(ln, "__esModule", { value: !0 }), ln.useWebSocket = void 0;
|
|
36190
36192
|
var a = _n, i = dp, u = qn(), s = QE(), o = ZE(), l = r(JE()), c = Nl(), h = function(p, m, y) {
|
|
36191
36193
|
m === void 0 && (m = u.DEFAULT_OPTIONS), y === void 0 && (y = !0);
|
|
36192
|
-
var b = (0, a.useState)(null), E = b[0], T = b[1], I = (0, a.useState)({}), B = I[0],
|
|
36194
|
+
var b = (0, a.useState)(null), E = b[0], T = b[1], I = (0, a.useState)({}), B = I[0], K = I[1], z = (0, a.useMemo)(function() {
|
|
36193
36195
|
if (!m.disableJson && E)
|
|
36194
36196
|
try {
|
|
36195
36197
|
return JSON.parse(E.data);
|
|
@@ -36197,10 +36199,10 @@ function Dl() {
|
|
|
36197
36199
|
return u.UNPARSABLE_JSON_OBJECT;
|
|
36198
36200
|
}
|
|
36199
36201
|
return null;
|
|
36200
|
-
}, [E, m.disableJson]), w = (0, a.useRef)(null), P = (0, a.useRef)(null),
|
|
36201
|
-
}), j = (0, a.useRef)(0), ne = (0, a.useRef)(Date.now()), $ = (0, a.useRef)([]),
|
|
36202
|
+
}, [E, m.disableJson]), w = (0, a.useRef)(null), P = (0, a.useRef)(null), X = (0, a.useRef)(function() {
|
|
36203
|
+
}), j = (0, a.useRef)(0), ne = (0, a.useRef)(Date.now()), $ = (0, a.useRef)([]), W = (0, a.useRef)(null), F = (0, a.useRef)(m);
|
|
36202
36204
|
F.current = m;
|
|
36203
|
-
var D = w.current && B[w.current] !== void 0 ? B[w.current] : p !== null && y === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, H = m.queryParams ? JSON.stringify(m.queryParams) : null,
|
|
36205
|
+
var D = w.current && B[w.current] !== void 0 ? B[w.current] : p !== null && y === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, H = m.queryParams ? JSON.stringify(m.queryParams) : null, G = (0, a.useCallback)(function(Y, A) {
|
|
36204
36206
|
var oe;
|
|
36205
36207
|
if (A === void 0 && (A = !0), u.isEventSourceSupported && P.current instanceof EventSource) {
|
|
36206
36208
|
console.warn("Unable to send a message from an eventSource");
|
|
@@ -36208,9 +36210,9 @@ function Dl() {
|
|
|
36208
36210
|
}
|
|
36209
36211
|
((oe = P.current) === null || oe === void 0 ? void 0 : oe.readyState) === u.ReadyState.OPEN ? ((0, c.assertIsWebSocket)(P.current, F.current.skipAssert), P.current.send(Y)) : A && $.current.push(Y);
|
|
36210
36212
|
}, []), J = (0, a.useCallback)(function(Y, A) {
|
|
36211
|
-
A === void 0 && (A = !0),
|
|
36212
|
-
}, [
|
|
36213
|
-
return F.current.share !== !0 || u.isEventSourceSupported && P.current instanceof EventSource ? P.current : (
|
|
36213
|
+
A === void 0 && (A = !0), G(JSON.stringify(Y), A);
|
|
36214
|
+
}, [G]), Q = (0, a.useCallback)(function() {
|
|
36215
|
+
return F.current.share !== !0 || u.isEventSourceSupported && P.current instanceof EventSource ? P.current : (W.current === null && P.current && ((0, c.assertIsWebSocket)(P.current, F.current.skipAssert), W.current = (0, l.default)(P.current, X)), W.current);
|
|
36214
36216
|
}, []);
|
|
36215
36217
|
return (0, a.useEffect)(function() {
|
|
36216
36218
|
if (p !== null && y === !0) {
|
|
@@ -36223,7 +36225,7 @@ function Dl() {
|
|
|
36223
36225
|
return k = w, [4, (0, o.getUrl)(p, F)];
|
|
36224
36226
|
case 1:
|
|
36225
36227
|
return k.current = ke.sent(), w.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), w.current = "ABORTED", (0, i.flushSync)(function() {
|
|
36226
|
-
return
|
|
36228
|
+
return K(function(Me) {
|
|
36227
36229
|
return e(e({}, Me), { ABORTED: u.ReadyState.CLOSED });
|
|
36228
36230
|
});
|
|
36229
36231
|
}), [
|
|
@@ -36235,12 +36237,12 @@ function Dl() {
|
|
|
36235
36237
|
});
|
|
36236
36238
|
}, Oe = function(Me) {
|
|
36237
36239
|
A || (0, i.flushSync)(function() {
|
|
36238
|
-
return
|
|
36240
|
+
return K(function(Ye) {
|
|
36239
36241
|
var Ge;
|
|
36240
36242
|
return e(e({}, Ye), w.current && (Ge = {}, Ge[w.current] = Me, Ge));
|
|
36241
36243
|
});
|
|
36242
36244
|
});
|
|
36243
|
-
}, oe && (Y = (0, s.createOrJoinSocket)(P, w.current, Oe, F, Ee,
|
|
36245
|
+
}, oe && (Y = (0, s.createOrJoinSocket)(P, w.current, Oe, F, Ee, X, j, ne, G)), [
|
|
36244
36246
|
2
|
|
36245
36247
|
/*return*/
|
|
36246
36248
|
]);
|
|
@@ -36248,21 +36250,21 @@ function Dl() {
|
|
|
36248
36250
|
});
|
|
36249
36251
|
});
|
|
36250
36252
|
};
|
|
36251
|
-
return
|
|
36252
|
-
A || (
|
|
36253
|
+
return X.current = function() {
|
|
36254
|
+
A || (W.current && (W.current = null), Y?.(), ye());
|
|
36253
36255
|
}, ye(), function() {
|
|
36254
|
-
A = !0, oe = !1,
|
|
36256
|
+
A = !0, oe = !1, W.current && (W.current = null), Y?.(), T(null);
|
|
36255
36257
|
};
|
|
36256
|
-
} else (p === null || y === !1) && (j.current = 0,
|
|
36258
|
+
} else (p === null || y === !1) && (j.current = 0, K(function(k) {
|
|
36257
36259
|
var Ee;
|
|
36258
36260
|
return e(e({}, k), w.current && (Ee = {}, Ee[w.current] = u.ReadyState.CLOSED, Ee));
|
|
36259
36261
|
}));
|
|
36260
|
-
}, [p, y, H,
|
|
36262
|
+
}, [p, y, H, G]), (0, a.useEffect)(function() {
|
|
36261
36263
|
D === u.ReadyState.OPEN && $.current.splice(0).forEach(function(Y) {
|
|
36262
|
-
|
|
36264
|
+
G(Y);
|
|
36263
36265
|
});
|
|
36264
36266
|
}, [D]), {
|
|
36265
|
-
sendMessage:
|
|
36267
|
+
sendMessage: G,
|
|
36266
36268
|
sendJsonMessage: J,
|
|
36267
36269
|
lastMessage: E,
|
|
36268
36270
|
lastJsonMessage: z,
|
|
@@ -36350,8 +36352,8 @@ function tx() {
|
|
|
36350
36352
|
var y = (0, r.useWebSocket)(u, p, o), b = y.lastMessage, E = y.readyState, T = y.getWebSocket;
|
|
36351
36353
|
return (0, n.useEffect)(function() {
|
|
36352
36354
|
b?.type && Object.entries(m.current).forEach(function(I) {
|
|
36353
|
-
var B = I[0],
|
|
36354
|
-
B === b.type &&
|
|
36355
|
+
var B = I[0], K = I[1];
|
|
36356
|
+
B === b.type && K(b);
|
|
36355
36357
|
});
|
|
36356
36358
|
}, [b]), {
|
|
36357
36359
|
lastEvent: b,
|
|
@@ -36408,7 +36410,7 @@ const ux = "This conversation with a live agent has ended. Please note that a tr
|
|
|
36408
36410
|
CONVERSATION: "CONVERSATION",
|
|
36409
36411
|
FORM: "FORM"
|
|
36410
36412
|
}, Hr = Ji({}), W2 = ({ children: e, liveChatPayload: t }) => {
|
|
36411
|
-
const { conversationScreen: n } = Ae(_t), { pushXpertMessage: r } = Ae(yr), { setHasError: a, setMode: i } = Ae(jt), [u, s] = we(""), [o, l] = we(!1), [, c] = we(""), [h, p] = we([]), [m, y] = we(null), [b, E] = we(Qn.FORM), [T, I] = we(null), B = (Q) => p((Y) => [...Y, Q]),
|
|
36413
|
+
const { conversationScreen: n } = Ae(_t), { pushXpertMessage: r } = Ae(yr), { setHasError: a, setMode: i } = Ae(jt), [u, s] = we(""), [o, l] = we(!1), [, c] = we(""), [h, p] = we([]), [m, y] = we(null), [b, E] = we(Qn.FORM), [T, I] = we(null), B = (Q) => p((Y) => [...Y, Q]), K = async (Q) => {
|
|
36412
36414
|
const Y = await ix(Q.data), { conversation_id: A, event_type: oe, body: ye } = Y;
|
|
36413
36415
|
switch (oe) {
|
|
36414
36416
|
case "AGENT_TYPING":
|
|
@@ -36420,13 +36422,13 @@ const ux = "This conversation with a live agent has ended. Please note that a tr
|
|
|
36420
36422
|
case "CONVERSATION_ERROR":
|
|
36421
36423
|
return;
|
|
36422
36424
|
case "CONVERSATION_TERMINATED":
|
|
36423
|
-
return
|
|
36425
|
+
return X();
|
|
36424
36426
|
case "CONVERSATION_TRANSFERRED_TO_GROUP":
|
|
36425
36427
|
return;
|
|
36426
36428
|
case "CONVERSATION_TRANSFERRED_TO_AGENT":
|
|
36427
36429
|
return;
|
|
36428
36430
|
case "MESSAGE_ADDED":
|
|
36429
|
-
return
|
|
36431
|
+
return W(ye);
|
|
36430
36432
|
case "PARTICIPANT_JOINED":
|
|
36431
36433
|
return;
|
|
36432
36434
|
case "PARTICIPANT_LEFT":
|
|
@@ -36435,7 +36437,7 @@ const ux = "This conversation with a live agent has ended. Please note that a tr
|
|
|
36435
36437
|
return;
|
|
36436
36438
|
}
|
|
36437
36439
|
}, { sendJsonMessage: z } = ax(m, {
|
|
36438
|
-
onMessage:
|
|
36440
|
+
onMessage: K
|
|
36439
36441
|
}), w = () => {
|
|
36440
36442
|
E(Qn.FORM);
|
|
36441
36443
|
const Q = n?.liveChat?.form;
|
|
@@ -36445,7 +36447,7 @@ const ux = "This conversation with a live agent has ended. Please note that a tr
|
|
|
36445
36447
|
action: "sendmessage",
|
|
36446
36448
|
event: "TERMINATE_CONVERSATION"
|
|
36447
36449
|
});
|
|
36448
|
-
},
|
|
36450
|
+
}, X = () => {
|
|
36449
36451
|
r({
|
|
36450
36452
|
content: ux,
|
|
36451
36453
|
role: We.INFO
|
|
@@ -36461,7 +36463,7 @@ const ux = "This conversation with a live agent has ended. Please note that a tr
|
|
|
36461
36463
|
}, $ = (Q) => {
|
|
36462
36464
|
const { displayName: Y } = Q;
|
|
36463
36465
|
p([]), s(Y ?? "An agent"), E(Qn.CONVERSATION);
|
|
36464
|
-
},
|
|
36466
|
+
}, W = (Q) => {
|
|
36465
36467
|
const { messageId: Y, text: A, timestamp: oe } = Q;
|
|
36466
36468
|
B({
|
|
36467
36469
|
content: A ?? "",
|
|
@@ -36482,7 +36484,7 @@ const ux = "This conversation with a live agent has ended. Please note that a tr
|
|
|
36482
36484
|
agentName: u,
|
|
36483
36485
|
agentTyping: o,
|
|
36484
36486
|
cancelLiveChatConnection: w,
|
|
36485
|
-
endLiveChat:
|
|
36487
|
+
endLiveChat: X,
|
|
36486
36488
|
liveChatMessages: h,
|
|
36487
36489
|
pushLiveChatMessage: B,
|
|
36488
36490
|
sendMessage: (Q) => {
|
|
@@ -36523,7 +36525,7 @@ const ux = "This conversation with a live agent has ended. Please note that a tr
|
|
|
36523
36525
|
icon: "check",
|
|
36524
36526
|
iconColor: "#30A171",
|
|
36525
36527
|
role: We.NOTIFICATION
|
|
36526
|
-
}),
|
|
36528
|
+
}), X();
|
|
36527
36529
|
},
|
|
36528
36530
|
terminateConversation: P
|
|
36529
36531
|
};
|
|
@@ -37054,21 +37056,21 @@ function tm() {
|
|
|
37054
37056
|
const P = z.target.value;
|
|
37055
37057
|
p(w), l(w, P);
|
|
37056
37058
|
}, B = () => {
|
|
37057
|
-
|
|
37059
|
+
K() && n(o);
|
|
37058
37060
|
};
|
|
37059
37061
|
Xe(() => {
|
|
37060
37062
|
(!a || a.length === 0) && n();
|
|
37061
37063
|
}, [a, n]);
|
|
37062
|
-
const
|
|
37064
|
+
const K = () => {
|
|
37063
37065
|
const z = a.reduce((w, P) => {
|
|
37064
|
-
const { key:
|
|
37065
|
-
if (!ne) return { ...w, [
|
|
37066
|
+
const { key: X, validations: j = [] } = P, ne = o[X];
|
|
37067
|
+
if (!ne) return { ...w, [X]: "Required" };
|
|
37066
37068
|
if (j?.length > 0)
|
|
37067
37069
|
for (const $ of j)
|
|
37068
37070
|
switch ($) {
|
|
37069
37071
|
case "email": {
|
|
37070
37072
|
if (!mx(ne))
|
|
37071
|
-
return { ...w, [
|
|
37073
|
+
return { ...w, [X]: "Should be email" };
|
|
37072
37074
|
break;
|
|
37073
37075
|
}
|
|
37074
37076
|
}
|
|
@@ -37341,12 +37343,12 @@ function am({ submitEventExternal: e = null }) {
|
|
|
37341
37343
|
mode: T,
|
|
37342
37344
|
setDisableScroll: I,
|
|
37343
37345
|
setHasError: B,
|
|
37344
|
-
setHasNewMessage:
|
|
37346
|
+
setHasNewMessage: K,
|
|
37345
37347
|
setIsNormalSize: z,
|
|
37346
37348
|
setLoading: w,
|
|
37347
37349
|
setLoadingHistory: P,
|
|
37348
|
-
setStreaming:
|
|
37349
|
-
} = Ae(jt), [, j] = we(!1), [, ne] = we(!1), [$,
|
|
37350
|
+
setStreaming: X
|
|
37351
|
+
} = Ae(jt), [, j] = we(!1), [, ne] = we(!1), [$, W] = we(!1), [F, D] = we(!1), [H, G] = we(!1), J = $ || !l, Q = ct(null), Y = ct(null), A = tn.get(`${a}-test`) === "1";
|
|
37350
37352
|
Xe(() => () => {
|
|
37351
37353
|
try {
|
|
37352
37354
|
h.current?.abort?.();
|
|
@@ -37410,7 +37412,7 @@ function am({ submitEventExternal: e = null }) {
|
|
|
37410
37412
|
toolCalls: je.tool_calls,
|
|
37411
37413
|
toolCallId: je.tool_call_id
|
|
37412
37414
|
}))
|
|
37413
|
-
), I(!0),
|
|
37415
|
+
), I(!0), K(!0);
|
|
37414
37416
|
} catch (it) {
|
|
37415
37417
|
console.error(it);
|
|
37416
37418
|
} finally {
|
|
@@ -37543,23 +37545,23 @@ function am({ submitEventExternal: e = null }) {
|
|
|
37543
37545
|
const nt = Se.find((Z) => Z.content)?.content || "";
|
|
37544
37546
|
return Ee(nt, Ke, je), Se;
|
|
37545
37547
|
}, Me = async (ze, Ke, xt, it, pe) => {
|
|
37546
|
-
|
|
37548
|
+
X(!0);
|
|
37547
37549
|
const Se = ze?.body?.getReader?.();
|
|
37548
37550
|
if (!Se)
|
|
37549
|
-
throw
|
|
37551
|
+
throw X(!1), new Error("Streaming response body is not readable");
|
|
37550
37552
|
const _e = h.current?.signal, Pe = await ke(
|
|
37551
37553
|
Se,
|
|
37552
37554
|
Ke,
|
|
37553
37555
|
pe,
|
|
37554
37556
|
_e
|
|
37555
37557
|
);
|
|
37556
|
-
return
|
|
37558
|
+
return X(!1), Pe;
|
|
37557
37559
|
}, Ye = async (ze) => {
|
|
37558
37560
|
try {
|
|
37559
37561
|
if (ze.trim().length === 0)
|
|
37560
37562
|
return;
|
|
37561
37563
|
const Ke = /* @__PURE__ */ new Date();
|
|
37562
|
-
|
|
37564
|
+
K(!1), B(!1);
|
|
37563
37565
|
const xt = b.filter((Pe) => Pe.role === We.USER).length + 1;
|
|
37564
37566
|
oe({
|
|
37565
37567
|
name: "xpert.chatbot.popup.chat.message.sent",
|
|
@@ -37605,7 +37607,7 @@ function am({ submitEventExternal: e = null }) {
|
|
|
37605
37607
|
},
|
|
37606
37608
|
...Pe && { external_id: Pe }
|
|
37607
37609
|
}
|
|
37608
|
-
}), I(!1),
|
|
37610
|
+
}), I(!1), K(!0), w(!1);
|
|
37609
37611
|
return;
|
|
37610
37612
|
}
|
|
37611
37613
|
m({ role: We.USER, content: ze }), h.current = new AbortController();
|
|
@@ -37639,20 +37641,20 @@ function am({ submitEventExternal: e = null }) {
|
|
|
37639
37641
|
ze,
|
|
37640
37642
|
pe,
|
|
37641
37643
|
Ke
|
|
37642
|
-
), I(!1),
|
|
37644
|
+
), I(!1), K(!0);
|
|
37643
37645
|
} catch (Ke) {
|
|
37644
37646
|
if (Ke.name === "AbortError")
|
|
37645
37647
|
return;
|
|
37646
37648
|
w(!1), B(!0), console.error(Ke);
|
|
37647
37649
|
}
|
|
37648
37650
|
}, Ge = () => {
|
|
37649
|
-
D(!1),
|
|
37651
|
+
D(!1), W(!0), z(!0), ye();
|
|
37650
37652
|
}, Ve = (ze) => {
|
|
37651
37653
|
z(ze);
|
|
37652
37654
|
}, et = () => {
|
|
37653
|
-
|
|
37655
|
+
W(!0), z(!0), ye();
|
|
37654
37656
|
}, Nt = () => {
|
|
37655
|
-
|
|
37657
|
+
W(!1), G(!1);
|
|
37656
37658
|
}, Ft = i?.animatedGraduate?.enabled, On = u?.enabled ? E ? u?.style?.mobile : u?.style : null;
|
|
37657
37659
|
return (
|
|
37658
37660
|
// do not remove this class as it's needed to turn off chatbot
|
|
@@ -37715,7 +37717,7 @@ function am({ submitEventExternal: e = null }) {
|
|
|
37715
37717
|
onClose: Nt,
|
|
37716
37718
|
handleResizeButtonClick: Ve,
|
|
37717
37719
|
isMounted: H,
|
|
37718
|
-
setIsMounted:
|
|
37720
|
+
setIsMounted: G
|
|
37719
37721
|
}
|
|
37720
37722
|
),
|
|
37721
37723
|
/* @__PURE__ */ C.jsx(lx, {}),
|