@2uinc/frontend-component-xpert-chatbot 1.40.18-alpha.14 → 1.40.18-alpha.16
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 +179 -170
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
|
@@ -175,7 +175,7 @@ function cp() {
|
|
|
175
175
|
return Y0 || (Y0 = 1, (function(e, t) {
|
|
176
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]", T = "[object Number]", E = "[object Null]", I = "[object Object]", H = "[object Proxy]", K = "[object RegExp]", q = "[object Set]", S = "[object String]", P = "[object Undefined]", G = "[object WeakMap]", U = "[object ArrayBuffer]", ne = "[object DataView]", V = "[object Float32Array]", $ = "[object Float64Array]", z = "[object Int8Array]", L = "[object Int16Array]", F = "[object Int32Array]", W = "[object Uint8Array]", te = "[object Uint8ClampedArray]", X = "[object Uint16Array]", Z = "[object Uint32Array]", A = /[\\^$.*+?()[\]{}|]/g, me = /^\[object .+?Constructor\]$/, ye = /^(?:0|[1-9]\d*)$/, k = {};
|
|
177
177
|
k[V] = k[$] = k[z] = k[L] = k[F] = k[W] = k[te] = k[X] = k[Z] = !0, k[s] = k[o] = k[U] = k[c] = k[ne] = k[h] = k[p] = k[m] = k[b] = k[T] = k[I] = k[K] = k[q] = k[S] = k[G] = !1;
|
|
178
|
-
var Te = typeof li == "object" && li && li.Object === Object && li, Ae = typeof self == "object" && self && self.Object === Object && self,
|
|
178
|
+
var Te = typeof li == "object" && li && li.Object === Object && li, Ae = typeof self == "object" && self && self.Object === Object && self, Ne = Te || Ae || Function("return this")(), Ye = t && !t.nodeType && t, be = Ye && !0 && e && !e.nodeType && e, Ie = be && be.exports === Ye, Ue = Ie && Te.process, et = (function() {
|
|
179
179
|
try {
|
|
180
180
|
var N = be && be.require && be.require("util").types;
|
|
181
181
|
return N || Ue && Ue.binding && Ue.binding("util");
|
|
@@ -213,12 +213,12 @@ function cp() {
|
|
|
213
213
|
return N(j(Q));
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
var We = Array.prototype, at = Function.prototype, Be = Object.prototype, He =
|
|
216
|
+
var We = Array.prototype, at = Function.prototype, Be = Object.prototype, He = Ne["__core-js_shared__"], Xe = at.toString, Rt = Be.hasOwnProperty, Gt = (function() {
|
|
217
217
|
var N = /[^.]+$/.exec(He && He.keys && He.keys.IE_PROTO || "");
|
|
218
218
|
return N ? "Symbol(src)_1." + N : "";
|
|
219
219
|
})(), jn = Be.toString, xn = Xe.call(Object), ee = RegExp(
|
|
220
220
|
"^" + Xe.call(Rt).replace(A, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
221
|
-
), le =
|
|
221
|
+
), le = Ie ? Ne.Buffer : void 0, Se = Ne.Symbol, Ve = Ne.Uint8Array;
|
|
222
222
|
le && le.allocUnsafe;
|
|
223
223
|
var ze = Ze(Object.getPrototypeOf, Object), yt = Object.create, Ut = Be.propertyIsEnumerable, Sn = We.splice, rn = Se ? Se.toStringTag : void 0, On = (function() {
|
|
224
224
|
try {
|
|
@@ -226,7 +226,7 @@ function cp() {
|
|
|
226
226
|
return N({}, "", {}), N;
|
|
227
227
|
} catch {
|
|
228
228
|
}
|
|
229
|
-
})(), vt = le ? le.isBuffer : void 0, Ur = Math.max, Cn = Date.now, I0 = Au(
|
|
229
|
+
})(), vt = le ? le.isBuffer : void 0, Ur = Math.max, Cn = Date.now, I0 = Au(Ne, "Map"), pa = Au(Object, "create"), em = /* @__PURE__ */ (function() {
|
|
230
230
|
function N() {
|
|
231
231
|
}
|
|
232
232
|
return function(j) {
|
|
@@ -450,7 +450,7 @@ function cp() {
|
|
|
450
450
|
}
|
|
451
451
|
function Nm(N) {
|
|
452
452
|
var j = new N.constructor(N.byteLength);
|
|
453
|
-
return new
|
|
453
|
+
return new Ve(j).set(new Ve(N)), j;
|
|
454
454
|
}
|
|
455
455
|
function Dm(N, j) {
|
|
456
456
|
var Q = Nm(N.buffer);
|
|
@@ -1640,7 +1640,7 @@ G1.propTypes = {
|
|
|
1640
1640
|
C.number
|
|
1641
1641
|
])
|
|
1642
1642
|
};
|
|
1643
|
-
const yr = Ji({}),
|
|
1643
|
+
const yr = Ji({}), $e = {
|
|
1644
1644
|
AGENT: "agent",
|
|
1645
1645
|
ASSISTANT: "assistant",
|
|
1646
1646
|
ERROR: "error",
|
|
@@ -1654,7 +1654,7 @@ const yr = Ji({}), Ve = {
|
|
|
1654
1654
|
}, K1 = C.shape({
|
|
1655
1655
|
content: C.string.isRequired,
|
|
1656
1656
|
liveAgent: C.bool,
|
|
1657
|
-
role: C.oneOf(Object.values(
|
|
1657
|
+
role: C.oneOf(Object.values($e)).isRequired,
|
|
1658
1658
|
timestamp: C.instanceOf(Date),
|
|
1659
1659
|
toolCalls: C.arrayOf(
|
|
1660
1660
|
C.shape({
|
|
@@ -2558,8 +2558,8 @@ var J0 = {
|
|
|
2558
2558
|
return L === be;
|
|
2559
2559
|
});
|
|
2560
2560
|
if (Te < 0 && (A.container === L || Ii(L, i.tabbableOptions) && !_r(L, i.tabbableOptions) && !A.nextTabbableNode(L)) && (Te = Z), Te >= 0) {
|
|
2561
|
-
var Ae = Te === u.tabbableGroups.length - 1 ? 0 : Te + 1,
|
|
2562
|
-
X = dr(L) >= 0 ?
|
|
2561
|
+
var Ae = Te === u.tabbableGroups.length - 1 ? 0 : Te + 1, Ne = u.tabbableGroups[Ae];
|
|
2562
|
+
X = dr(L) >= 0 ? Ne.firstTabbableNode : Ne.firstDomTabbableNode;
|
|
2563
2563
|
} else Oa(F) || (X = A.nextTabbableNode(L));
|
|
2564
2564
|
}
|
|
2565
2565
|
} else
|
|
@@ -7127,25 +7127,25 @@ function k5(e, t, n) {
|
|
|
7127
7127
|
// @ts-expect-error Looks like a construct.
|
|
7128
7128
|
ye([L])
|
|
7129
7129
|
) : me(L);
|
|
7130
|
-
function me(
|
|
7130
|
+
function me(Ne) {
|
|
7131
7131
|
return Ye;
|
|
7132
7132
|
function Ye(be) {
|
|
7133
|
-
const
|
|
7133
|
+
const Ie = be !== null && Ne[be], Ue = be !== null && Ne.null, et = [
|
|
7134
7134
|
// To do: add more extension tests.
|
|
7135
7135
|
/* c8 ignore next 2 */
|
|
7136
|
-
...Array.isArray(
|
|
7136
|
+
...Array.isArray(Ie) ? Ie : Ie ? [Ie] : [],
|
|
7137
7137
|
...Array.isArray(Ue) ? Ue : Ue ? [Ue] : []
|
|
7138
7138
|
];
|
|
7139
7139
|
return ye(et)(be);
|
|
7140
7140
|
}
|
|
7141
7141
|
}
|
|
7142
|
-
function ye(
|
|
7143
|
-
return te =
|
|
7142
|
+
function ye(Ne) {
|
|
7143
|
+
return te = Ne, X = 0, Ne.length === 0 ? W : k(Ne[X]);
|
|
7144
7144
|
}
|
|
7145
|
-
function k(
|
|
7145
|
+
function k(Ne) {
|
|
7146
7146
|
return Ye;
|
|
7147
7147
|
function Ye(be) {
|
|
7148
|
-
return A = U(), Z =
|
|
7148
|
+
return A = U(), Z = Ne, Ne.partial || (l.currentConstruct = Ne), Ne.name && l.parser.constructs.disable.null.includes(Ne.name) ? Ae() : Ne.tokenize.call(
|
|
7149
7149
|
// If we do have fields, create an object w/ `context` as its
|
|
7150
7150
|
// prototype.
|
|
7151
7151
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -7156,10 +7156,10 @@ function k5(e, t, n) {
|
|
|
7156
7156
|
)(be);
|
|
7157
7157
|
}
|
|
7158
7158
|
}
|
|
7159
|
-
function Te(
|
|
7159
|
+
function Te(Ne) {
|
|
7160
7160
|
return V(Z, A), F;
|
|
7161
7161
|
}
|
|
7162
|
-
function Ae(
|
|
7162
|
+
function Ae(Ne) {
|
|
7163
7163
|
return A.restore(), ++X < te.length ? k(te[X]) : W;
|
|
7164
7164
|
}
|
|
7165
7165
|
}
|
|
@@ -7465,7 +7465,7 @@ function G5(e) {
|
|
|
7465
7465
|
atxHeadingSequence: P,
|
|
7466
7466
|
autolink: c(),
|
|
7467
7467
|
autolinkEmail: Ue,
|
|
7468
|
-
autolinkProtocol:
|
|
7468
|
+
autolinkProtocol: Ie,
|
|
7469
7469
|
blockQuote: c(),
|
|
7470
7470
|
characterEscapeValue: $,
|
|
7471
7471
|
characterReferenceMarkerHexadecimal: Ye,
|
|
@@ -7500,7 +7500,7 @@ function G5(e) {
|
|
|
7500
7500
|
listOrdered: c(),
|
|
7501
7501
|
listUnordered: c(),
|
|
7502
7502
|
paragraph: c(),
|
|
7503
|
-
referenceString:
|
|
7503
|
+
referenceString: Ne,
|
|
7504
7504
|
resourceDestinationString: ye,
|
|
7505
7505
|
resourceTitleString: k,
|
|
7506
7506
|
resource: Te,
|
|
@@ -7529,14 +7529,14 @@ function G5(e) {
|
|
|
7529
7529
|
resume: p,
|
|
7530
7530
|
setData: i,
|
|
7531
7531
|
getData: u
|
|
7532
|
-
},
|
|
7532
|
+
}, Ve = [];
|
|
7533
7533
|
let ze = -1;
|
|
7534
7534
|
for (; ++ze < ee.length; )
|
|
7535
7535
|
if (ee[ze][1].type === "listOrdered" || ee[ze][1].type === "listUnordered")
|
|
7536
7536
|
if (ee[ze][0] === "enter")
|
|
7537
|
-
|
|
7537
|
+
Ve.push(ze);
|
|
7538
7538
|
else {
|
|
7539
|
-
const yt =
|
|
7539
|
+
const yt = Ve.pop();
|
|
7540
7540
|
ze = a(ee, yt, ze);
|
|
7541
7541
|
}
|
|
7542
7542
|
for (ze = -1; ++ze < ee.length; ) {
|
|
@@ -7575,12 +7575,12 @@ function G5(e) {
|
|
|
7575
7575
|
return le;
|
|
7576
7576
|
}
|
|
7577
7577
|
function a(ee, le, Se) {
|
|
7578
|
-
let
|
|
7579
|
-
for (;
|
|
7580
|
-
const vt = ee[
|
|
7581
|
-
if (vt[1].type === "listUnordered" || vt[1].type === "listOrdered" || vt[1].type === "blockQuote" ? (vt[0] === "enter" ? ze++ : ze--, On = void 0) : vt[1].type === "lineEndingBlank" ? vt[0] === "enter" && (Ut && !On && !ze && !rn && (rn =
|
|
7578
|
+
let Ve = le - 1, ze = -1, yt = !1, Ut, Sn, rn, On;
|
|
7579
|
+
for (; ++Ve <= Se; ) {
|
|
7580
|
+
const vt = ee[Ve];
|
|
7581
|
+
if (vt[1].type === "listUnordered" || vt[1].type === "listOrdered" || vt[1].type === "blockQuote" ? (vt[0] === "enter" ? ze++ : ze--, On = void 0) : vt[1].type === "lineEndingBlank" ? vt[0] === "enter" && (Ut && !On && !ze && !rn && (rn = Ve), On = void 0) : vt[1].type === "linePrefix" || vt[1].type === "listItemValue" || vt[1].type === "listItemMarker" || vt[1].type === "listItemPrefix" || vt[1].type === "listItemPrefixWhitespace" || (On = void 0), !ze && vt[0] === "enter" && vt[1].type === "listItemPrefix" || ze === -1 && vt[0] === "exit" && (vt[1].type === "listUnordered" || vt[1].type === "listOrdered")) {
|
|
7582
7582
|
if (Ut) {
|
|
7583
|
-
let Ur =
|
|
7583
|
+
let Ur = Ve;
|
|
7584
7584
|
for (Sn = void 0; Ur--; ) {
|
|
7585
7585
|
const Cn = ee[Ur];
|
|
7586
7586
|
if (Cn[1].type === "lineEnding" || Cn[1].type === "lineEndingBlank") {
|
|
@@ -7591,7 +7591,7 @@ function G5(e) {
|
|
|
7591
7591
|
rn && (!Sn || rn < Sn) && (Ut._spread = !0), Ut.end = Object.assign(
|
|
7592
7592
|
{},
|
|
7593
7593
|
Sn ? ee[Sn][1].start : vt[1].end
|
|
7594
|
-
), ee.splice(Sn ||
|
|
7594
|
+
), ee.splice(Sn || Ve, 0, ["exit", Ut, vt[2]]), Ve++, Se++;
|
|
7595
7595
|
}
|
|
7596
7596
|
vt[1].type === "listItemPrefix" && (Ut = {
|
|
7597
7597
|
type: "listItem",
|
|
@@ -7599,7 +7599,7 @@ function G5(e) {
|
|
|
7599
7599
|
start: Object.assign({}, vt[1].start),
|
|
7600
7600
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
7601
7601
|
end: void 0
|
|
7602
|
-
}, ee.splice(
|
|
7602
|
+
}, ee.splice(Ve, 0, ["enter", Ut, vt[2]]), Ve++, Se++, rn = void 0, On = !0);
|
|
7603
7603
|
}
|
|
7604
7604
|
}
|
|
7605
7605
|
return ee[le][1]._spread = yt, Se;
|
|
@@ -7612,8 +7612,8 @@ function G5(e) {
|
|
|
7612
7612
|
}
|
|
7613
7613
|
function s(ee, le) {
|
|
7614
7614
|
return Se;
|
|
7615
|
-
function Se(
|
|
7616
|
-
l.call(this, ee(
|
|
7615
|
+
function Se(Ve) {
|
|
7616
|
+
l.call(this, ee(Ve), Ve), le && le.call(this, Ve);
|
|
7617
7617
|
}
|
|
7618
7618
|
}
|
|
7619
7619
|
function o() {
|
|
@@ -7634,9 +7634,9 @@ function G5(e) {
|
|
|
7634
7634
|
}
|
|
7635
7635
|
}
|
|
7636
7636
|
function h(ee, le) {
|
|
7637
|
-
const Se = this.stack.pop(),
|
|
7638
|
-
if (
|
|
7639
|
-
|
|
7637
|
+
const Se = this.stack.pop(), Ve = this.tokenStack.pop();
|
|
7638
|
+
if (Ve)
|
|
7639
|
+
Ve[0].type !== ee.type && (le ? le.call(this, ee, Ve[0]) : (Ve[1] || Hl).call(this, ee, Ve[0]));
|
|
7640
7640
|
else throw new Error(
|
|
7641
7641
|
"Cannot close `" + ee.type + "` (" + Da({
|
|
7642
7642
|
start: ee.start,
|
|
@@ -7767,8 +7767,8 @@ function G5(e) {
|
|
|
7767
7767
|
function me() {
|
|
7768
7768
|
const ee = this.stack[this.stack.length - 1], le = this.resume(), Se = this.stack[this.stack.length - 1];
|
|
7769
7769
|
if (i("inReference", !0), Se.type === "link") {
|
|
7770
|
-
const
|
|
7771
|
-
Se.children =
|
|
7770
|
+
const Ve = ee.children;
|
|
7771
|
+
Se.children = Ve;
|
|
7772
7772
|
} else
|
|
7773
7773
|
Se.alt = le;
|
|
7774
7774
|
}
|
|
@@ -7786,7 +7786,7 @@ function G5(e) {
|
|
|
7786
7786
|
function Ae() {
|
|
7787
7787
|
i("referenceType", "collapsed");
|
|
7788
7788
|
}
|
|
7789
|
-
function
|
|
7789
|
+
function Ne(ee) {
|
|
7790
7790
|
const le = this.resume(), Se = this.stack[this.stack.length - 1];
|
|
7791
7791
|
Se.label = le, Se.identifier = Wr(
|
|
7792
7792
|
this.sliceSerialize(ee)
|
|
@@ -7797,15 +7797,15 @@ function G5(e) {
|
|
|
7797
7797
|
}
|
|
7798
7798
|
function be(ee) {
|
|
7799
7799
|
const le = this.sliceSerialize(ee), Se = u("characterReferenceType");
|
|
7800
|
-
let
|
|
7801
|
-
Se ? (
|
|
7800
|
+
let Ve;
|
|
7801
|
+
Se ? (Ve = zd(
|
|
7802
7802
|
le,
|
|
7803
7803
|
Se === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
7804
|
-
), i("characterReferenceType")) :
|
|
7804
|
+
), i("characterReferenceType")) : Ve = Oo(le);
|
|
7805
7805
|
const ze = this.stack.pop();
|
|
7806
|
-
ze.value +=
|
|
7806
|
+
ze.value += Ve, ze.position.end = ur(ee.end);
|
|
7807
7807
|
}
|
|
7808
|
-
function
|
|
7808
|
+
function Ie(ee) {
|
|
7809
7809
|
$.call(this, ee);
|
|
7810
7810
|
const le = this.stack[this.stack.length - 1];
|
|
7811
7811
|
le.url = this.sliceSerialize(ee);
|
|
@@ -21168,7 +21168,7 @@ class sr {
|
|
|
21168
21168
|
return this.size >= 2;
|
|
21169
21169
|
}
|
|
21170
21170
|
}
|
|
21171
|
-
var e0 = 0, Gi = 1, Zr = 2, Jn = 3, Va = 4, gn = 5, ta = 6, Vt = 7, Ln = [new sr(e0, 0, !1), new sr(Gi, 0, !0), new sr(Zr, 1, !1), new sr(Jn, 1, !0), new sr(Va, 2, !1), new sr(gn, 2, !0), new sr(ta, 3, !1), new sr(Vt, 3, !0)], G9 = [Va, gn, Va, gn, ta, Vt, ta, Vt], X9 = [gn, gn, gn, gn, Vt, Vt, Vt, Vt], K9 = [Zr, Jn, Va, gn, ta, Vt, ta, Vt], Q9 = [Jn, Jn, gn, gn, Vt, Vt, Vt, Vt], Z9 = [Gi, Gi, Jn, Jn, gn, gn, Vt, Vt], J9 = [e0, Gi, Zr, Jn, Zr, Jn, Zr, Jn],
|
|
21171
|
+
var e0 = 0, Gi = 1, Zr = 2, Jn = 3, Va = 4, gn = 5, ta = 6, Vt = 7, Ln = [new sr(e0, 0, !1), new sr(Gi, 0, !0), new sr(Zr, 1, !1), new sr(Jn, 1, !0), new sr(Va, 2, !1), new sr(gn, 2, !0), new sr(ta, 3, !1), new sr(Vt, 3, !0)], G9 = [Va, gn, Va, gn, ta, Vt, ta, Vt], X9 = [gn, gn, gn, gn, Vt, Vt, Vt, Vt], K9 = [Zr, Jn, Va, gn, ta, Vt, ta, Vt], Q9 = [Jn, Jn, gn, gn, Vt, Vt, Vt, Vt], Z9 = [Gi, Gi, Jn, Jn, gn, gn, Vt, Vt], J9 = [e0, Gi, Zr, Jn, Zr, Jn, Zr, Jn], Oe = {
|
|
21172
21172
|
DISPLAY: Ln[e0],
|
|
21173
21173
|
TEXT: Ln[Zr],
|
|
21174
21174
|
SCRIPT: Ln[Va],
|
|
@@ -25578,10 +25578,10 @@ var Zi = function(t) {
|
|
|
25578
25578
|
}, _t = function(t) {
|
|
25579
25579
|
return t.type === "ordgroup" ? t.body : [t];
|
|
25580
25580
|
}, kv = /* @__PURE__ */ new Set(["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"]), Iv = /* @__PURE__ */ new Set(["rightmost", "mrel", "mclose", "mpunct"]), Ov = {
|
|
25581
|
-
display:
|
|
25582
|
-
text:
|
|
25583
|
-
script:
|
|
25584
|
-
scriptscript:
|
|
25581
|
+
display: Oe.DISPLAY,
|
|
25582
|
+
text: Oe.TEXT,
|
|
25583
|
+
script: Oe.SCRIPT,
|
|
25584
|
+
scriptscript: Oe.SCRIPTSCRIPT
|
|
25585
25585
|
}, Nv = {
|
|
25586
25586
|
mord: "mord",
|
|
25587
25587
|
mop: "mop",
|
|
@@ -25919,7 +25919,7 @@ function Xc(e, t, n, r, a) {
|
|
|
25919
25919
|
}
|
|
25920
25920
|
var $f = function(t) {
|
|
25921
25921
|
return new Xn({
|
|
25922
|
-
style: t.displayMode ?
|
|
25922
|
+
style: t.displayMode ? Oe.DISPLAY : Oe.TEXT,
|
|
25923
25923
|
maxSize: t.maxSize,
|
|
25924
25924
|
minRuleThickness: t.minRuleThickness
|
|
25925
25925
|
});
|
|
@@ -26969,8 +26969,8 @@ var Ia = function(t, n, r) {
|
|
|
26969
26969
|
}, Gv = function(t, n, r, a) {
|
|
26970
26970
|
return $t(t, "Size" + n + "-Regular", r, a);
|
|
26971
26971
|
}, t2 = function(t, n, r, a, i, u) {
|
|
26972
|
-
var s = Gv(t, n, i, a), o = l0(ie(["delimsizing", "size" + n], [s], a),
|
|
26973
|
-
return r && e2(o, a,
|
|
26972
|
+
var s = Gv(t, n, i, a), o = l0(ie(["delimsizing", "size" + n], [s], a), Oe.TEXT, a, u);
|
|
26973
|
+
return r && e2(o, a, Oe.TEXT), o;
|
|
26974
26974
|
}, ms = function(t, n, r) {
|
|
26975
26975
|
var a;
|
|
26976
26976
|
n === "Size1-Regular" ? a = "delim-size1" : a = "delim-size4";
|
|
@@ -27028,12 +27028,12 @@ var Ia = function(t, n, r) {
|
|
|
27028
27028
|
}
|
|
27029
27029
|
$.push(Ci), $.push(ms(s, m, i));
|
|
27030
27030
|
}
|
|
27031
|
-
var k = a.havingBaseStyle(
|
|
27031
|
+
var k = a.havingBaseStyle(Oe.TEXT), Te = Je({
|
|
27032
27032
|
positionType: "bottom",
|
|
27033
27033
|
positionData: V,
|
|
27034
27034
|
children: $
|
|
27035
27035
|
});
|
|
27036
|
-
return l0(ie(["delimsizing", "mult"], [Te], k),
|
|
27036
|
+
return l0(ie(["delimsizing", "mult"], [Te], k), Oe.TEXT, a, u);
|
|
27037
27037
|
}, gs = 80, bs = 0.08, ys = function(t, n, r, a, i) {
|
|
27038
27038
|
var u = ov(t, a, r), s = new pr(t, u), o = new nr([s], {
|
|
27039
27039
|
// Note: 1000:1 ratio of viewBox to document em width.
|
|
@@ -27062,13 +27062,13 @@ var Ia = function(t, n, r) {
|
|
|
27062
27062
|
throw new se("Illegal delimiter: '" + t + "'");
|
|
27063
27063
|
}, Jv = [{
|
|
27064
27064
|
type: "small",
|
|
27065
|
-
style:
|
|
27065
|
+
style: Oe.SCRIPTSCRIPT
|
|
27066
27066
|
}, {
|
|
27067
27067
|
type: "small",
|
|
27068
|
-
style:
|
|
27068
|
+
style: Oe.SCRIPT
|
|
27069
27069
|
}, {
|
|
27070
27070
|
type: "small",
|
|
27071
|
-
style:
|
|
27071
|
+
style: Oe.TEXT
|
|
27072
27072
|
}, {
|
|
27073
27073
|
type: "large",
|
|
27074
27074
|
size: 1
|
|
@@ -27083,24 +27083,24 @@ var Ia = function(t, n, r) {
|
|
|
27083
27083
|
size: 4
|
|
27084
27084
|
}], eE = [{
|
|
27085
27085
|
type: "small",
|
|
27086
|
-
style:
|
|
27086
|
+
style: Oe.SCRIPTSCRIPT
|
|
27087
27087
|
}, {
|
|
27088
27088
|
type: "small",
|
|
27089
|
-
style:
|
|
27089
|
+
style: Oe.SCRIPT
|
|
27090
27090
|
}, {
|
|
27091
27091
|
type: "small",
|
|
27092
|
-
style:
|
|
27092
|
+
style: Oe.TEXT
|
|
27093
27093
|
}, {
|
|
27094
27094
|
type: "stack"
|
|
27095
27095
|
}], u2 = [{
|
|
27096
27096
|
type: "small",
|
|
27097
|
-
style:
|
|
27097
|
+
style: Oe.SCRIPTSCRIPT
|
|
27098
27098
|
}, {
|
|
27099
27099
|
type: "small",
|
|
27100
|
-
style:
|
|
27100
|
+
style: Oe.SCRIPT
|
|
27101
27101
|
}, {
|
|
27102
27102
|
type: "small",
|
|
27103
|
-
style:
|
|
27103
|
+
style: Oe.TEXT
|
|
27104
27104
|
}, {
|
|
27105
27105
|
type: "large",
|
|
27106
27106
|
size: 1
|
|
@@ -27714,7 +27714,7 @@ var Un = function(t, n) {
|
|
|
27714
27714
|
// User override.
|
|
27715
27715
|
), h = 1 / n.fontMetrics().ptPerEm, p = 5 * h;
|
|
27716
27716
|
if (t.colSeparationType && t.colSeparationType === "small") {
|
|
27717
|
-
var m = n.havingStyle(
|
|
27717
|
+
var m = n.havingStyle(Oe.SCRIPT).sizeMultiplier;
|
|
27718
27718
|
p = 0.2778 * (m / n.sizeMultiplier);
|
|
27719
27719
|
}
|
|
27720
27720
|
var y = t.colSeparationType === "CD" ? Tt({
|
|
@@ -27760,8 +27760,8 @@ var Un = function(t, n) {
|
|
|
27760
27760
|
if (k || (F = ie(["arraycolsep"], []), F.style.width = pe(n.fontMetrics().doubleRuleSep), L.push(F)), ye.separator === "|" || ye.separator === ":") {
|
|
27761
27761
|
var Te = ye.separator === "|" ? "solid" : "dashed", Ae = ie(["vertical-separator"], [], n);
|
|
27762
27762
|
Ae.style.height = pe(H), Ae.style.borderRightWidth = pe(c), Ae.style.borderRightStyle = Te, Ae.style.margin = "0 " + pe(-c / 2);
|
|
27763
|
-
var
|
|
27764
|
-
|
|
27763
|
+
var Ne = H - $;
|
|
27764
|
+
Ne && (Ae.style.verticalAlign = pe(-Ne)), L.push(Ae);
|
|
27765
27765
|
} else
|
|
27766
27766
|
throw new se("Invalid separator type: " + ye.separator);
|
|
27767
27767
|
W++, ye = z[W] || {}, k = !1;
|
|
@@ -27772,22 +27772,22 @@ var Un = function(t, n) {
|
|
|
27772
27772
|
var be;
|
|
27773
27773
|
Ye = (be = ye.pregap) != null ? be : p, Ye !== 0 && (F = ie(["arraycolsep"], []), F.style.width = pe(Ye), L.push(F));
|
|
27774
27774
|
}
|
|
27775
|
-
var
|
|
27775
|
+
var Ie = [];
|
|
27776
27776
|
for (r = 0; r < i; ++r) {
|
|
27777
27777
|
var Ue = o[r], et = Ue[a];
|
|
27778
27778
|
if (et) {
|
|
27779
27779
|
var ot = Ue.pos - $;
|
|
27780
|
-
et.depth = Ue.depth, et.height = Ue.height,
|
|
27780
|
+
et.depth = Ue.depth, et.height = Ue.height, Ie.push({
|
|
27781
27781
|
type: "elem",
|
|
27782
27782
|
elem: et,
|
|
27783
27783
|
shift: ot
|
|
27784
27784
|
});
|
|
27785
27785
|
}
|
|
27786
27786
|
}
|
|
27787
|
-
if (
|
|
27787
|
+
if (Ie = Je({
|
|
27788
27788
|
positionType: "individualShift",
|
|
27789
|
-
children:
|
|
27790
|
-
}),
|
|
27789
|
+
children: Ie
|
|
27790
|
+
}), Ie = ie(["col-align-" + (ye.align || "c")], [Ie]), L.push(Ie), a < s - 1 || t.hskipBeforeAndAfter) {
|
|
27791
27791
|
var wt;
|
|
27792
27792
|
Ye = (wt = ye.postgap) != null ? wt : p, Ye !== 0 && (F = ie(["arraycolsep"], []), F.style.width = pe(Ye), L.push(F));
|
|
27793
27793
|
}
|
|
@@ -28317,7 +28317,7 @@ var iE = (e, t) => {
|
|
|
28317
28317
|
var l = Qe(e.denom, i, t), c, h, p;
|
|
28318
28318
|
e.hasBarLine ? (e.barSize ? (h = Tt(e.barSize, t), c = na("frac-line", t, h)) : c = na("frac-line", t), h = c.height, p = c.height) : (c = null, h = 0, p = t.fontMetrics().defaultRuleThickness);
|
|
28319
28319
|
var m, y, b;
|
|
28320
|
-
n.size ===
|
|
28320
|
+
n.size === Oe.DISPLAY.size ? (m = t.fontMetrics().num1, h > 0 ? y = 3 * p : y = 7 * p, b = t.fontMetrics().denom1) : (h > 0 ? (m = t.fontMetrics().num2, y = p) : (m = t.fontMetrics().num3, y = 3 * p), b = t.fontMetrics().denom2);
|
|
28321
28321
|
var T;
|
|
28322
28322
|
if (c) {
|
|
28323
28323
|
var I = t.fontMetrics().axisHeight;
|
|
@@ -28356,7 +28356,7 @@ var iE = (e, t) => {
|
|
|
28356
28356
|
}
|
|
28357
28357
|
i = t.havingStyle(n), T.height *= i.sizeMultiplier / t.sizeMultiplier, T.depth *= i.sizeMultiplier / t.sizeMultiplier;
|
|
28358
28358
|
var K;
|
|
28359
|
-
n.size ===
|
|
28359
|
+
n.size === Oe.DISPLAY.size ? K = t.fontMetrics().delim1 : n.size === Oe.SCRIPTSCRIPT.size ? K = t.havingStyle(Oe.SCRIPT).fontMetrics().delim2 : K = t.fontMetrics().delim2;
|
|
28360
28360
|
var q, S;
|
|
28361
28361
|
return e.leftDelim == null ? q = Wa(t, ["mopen"]) : q = yo(e.leftDelim, K, !0, t.havingStyle(n), e.mode, ["mopen"]), e.continued ? S = ie([]) : e.rightDelim == null ? S = Wa(t, ["mclose"]) : S = yo(e.rightDelim, K, !0, t.havingStyle(n), e.mode, ["mclose"]), ie(["mord"].concat(i.sizingClasses(t)), [q, ie(["mfrac"], [T]), S], t);
|
|
28362
28362
|
}, uE = (e, t) => {
|
|
@@ -28588,7 +28588,7 @@ ge({
|
|
|
28588
28588
|
var m2 = (e, t) => {
|
|
28589
28589
|
var n = t.style, r, a;
|
|
28590
28590
|
e.type === "supsub" ? (r = e.sup ? Qe(e.sup, t.havingStyle(n.sup()), t) : Qe(e.sub, t.havingStyle(n.sub()), t), a = Pe(e.base, "horizBrace")) : a = Pe(e, "horizBrace");
|
|
28591
|
-
var i = Qe(a.base, t.havingBaseStyle(
|
|
28591
|
+
var i = Qe(a.base, t.havingBaseStyle(Oe.DISPLAY)), u = pu(a, t), s;
|
|
28592
28592
|
if (a.isOver ? (s = Je({
|
|
28593
28593
|
positionType: "firstBaseline",
|
|
28594
28594
|
children: [{
|
|
@@ -29065,13 +29065,13 @@ ge({
|
|
|
29065
29065
|
});
|
|
29066
29066
|
var i1 = (e, t) => {
|
|
29067
29067
|
switch (t.style.size) {
|
|
29068
|
-
case
|
|
29068
|
+
case Oe.DISPLAY.size:
|
|
29069
29069
|
return e.display;
|
|
29070
|
-
case
|
|
29070
|
+
case Oe.TEXT.size:
|
|
29071
29071
|
return e.text;
|
|
29072
|
-
case
|
|
29072
|
+
case Oe.SCRIPT.size:
|
|
29073
29073
|
return e.script;
|
|
29074
|
-
case
|
|
29074
|
+
case Oe.SCRIPTSCRIPT.size:
|
|
29075
29075
|
return e.scriptscript;
|
|
29076
29076
|
default:
|
|
29077
29077
|
return e.text;
|
|
@@ -29206,7 +29206,7 @@ var p2 = (e, t, n, r, a, i, u) => {
|
|
|
29206
29206
|
var n, r, a = !1, i;
|
|
29207
29207
|
e.type === "supsub" ? (n = e.sup, r = e.sub, i = Pe(e.base, "op"), a = !0) : i = Pe(e, "op");
|
|
29208
29208
|
var u = t.style, s = !1;
|
|
29209
|
-
u.size ===
|
|
29209
|
+
u.size === Oe.DISPLAY.size && i.symbol && !g2.has(i.name) && (s = !0);
|
|
29210
29210
|
var o;
|
|
29211
29211
|
if (i.symbol) {
|
|
29212
29212
|
var l = s ? "Size2-Regular" : "Size1-Regular", c = "";
|
|
@@ -29804,7 +29804,7 @@ ge({
|
|
|
29804
29804
|
var n = Qe(e.body, t.havingCrampedStyle());
|
|
29805
29805
|
n.height === 0 && (n.height = t.fontMetrics().xHeight), n = ra(n, t);
|
|
29806
29806
|
var r = t.fontMetrics(), a = r.defaultRuleThickness, i = a;
|
|
29807
|
-
t.style.id <
|
|
29807
|
+
t.style.id < Oe.TEXT.id && (i = t.fontMetrics().xHeight);
|
|
29808
29808
|
var u = a + i / 4, s = n.height + n.depth + u + a, {
|
|
29809
29809
|
span: o,
|
|
29810
29810
|
ruleWidth: l,
|
|
@@ -29831,7 +29831,7 @@ ge({
|
|
|
29831
29831
|
}]
|
|
29832
29832
|
});
|
|
29833
29833
|
if (e.index) {
|
|
29834
|
-
var y = t.havingStyle(
|
|
29834
|
+
var y = t.havingStyle(Oe.SCRIPTSCRIPT), b = Qe(e.index, y, t), T = 0.6 * (m.height - m.depth), E = Je({
|
|
29835
29835
|
positionType: "shift",
|
|
29836
29836
|
positionData: -T,
|
|
29837
29837
|
children: [{
|
|
@@ -29852,10 +29852,10 @@ ge({
|
|
|
29852
29852
|
}
|
|
29853
29853
|
});
|
|
29854
29854
|
var s1 = {
|
|
29855
|
-
display:
|
|
29856
|
-
text:
|
|
29857
|
-
script:
|
|
29858
|
-
scriptscript:
|
|
29855
|
+
display: Oe.DISPLAY,
|
|
29856
|
+
text: Oe.TEXT,
|
|
29857
|
+
script: Oe.SCRIPT,
|
|
29858
|
+
scriptscript: Oe.SCRIPTSCRIPT
|
|
29859
29859
|
};
|
|
29860
29860
|
ge({
|
|
29861
29861
|
type: "styling",
|
|
@@ -29898,10 +29898,10 @@ var hE = function(t, n) {
|
|
|
29898
29898
|
var r = t.base;
|
|
29899
29899
|
if (r)
|
|
29900
29900
|
if (r.type === "op") {
|
|
29901
|
-
var a = r.limits && (n.style.size ===
|
|
29901
|
+
var a = r.limits && (n.style.size === Oe.DISPLAY.size || r.alwaysHandleSupSub);
|
|
29902
29902
|
return a ? ma : null;
|
|
29903
29903
|
} else if (r.type === "operatorname") {
|
|
29904
|
-
var i = r.alwaysHandleSupSub && (n.style.size ===
|
|
29904
|
+
var i = r.alwaysHandleSupSub && (n.style.size === Oe.DISPLAY.size || r.limits);
|
|
29905
29905
|
return i ? b2 : null;
|
|
29906
29906
|
} else {
|
|
29907
29907
|
if (r.type === "accent")
|
|
@@ -29934,7 +29934,7 @@ Br({
|
|
|
29934
29934
|
o = Qe(i, y, t), p || (h = u.depth + y.fontMetrics().subDrop * y.sizeMultiplier / t.sizeMultiplier);
|
|
29935
29935
|
}
|
|
29936
29936
|
var b;
|
|
29937
|
-
t.style ===
|
|
29937
|
+
t.style === Oe.DISPLAY ? b = l.sup1 : t.style.cramped ? b = l.sup3 : b = l.sup2;
|
|
29938
29938
|
var T = t.sizeMultiplier, E = pe(0.5 / l.ptPerEm / T), I = null;
|
|
29939
29939
|
if (o) {
|
|
29940
29940
|
var H = e.base && e.base.type === "op" && e.base.name && (e.base.name === "\\oiint" || e.base.name === "\\oiiint");
|
|
@@ -30004,14 +30004,14 @@ Br({
|
|
|
30004
30004
|
else if (e.sub)
|
|
30005
30005
|
if (e.sup) {
|
|
30006
30006
|
var l = e.base;
|
|
30007
|
-
l && l.type === "op" && l.limits && t.style ===
|
|
30007
|
+
l && l.type === "op" && l.limits && t.style === Oe.DISPLAY || l && l.type === "operatorname" && l.alwaysHandleSupSub && (t.style === Oe.DISPLAY || l.limits) ? u = "munderover" : u = "msubsup";
|
|
30008
30008
|
} else {
|
|
30009
30009
|
var o = e.base;
|
|
30010
|
-
o && o.type === "op" && o.limits && (t.style ===
|
|
30010
|
+
o && o.type === "op" && o.limits && (t.style === Oe.DISPLAY || o.alwaysHandleSupSub) || o && o.type === "operatorname" && o.alwaysHandleSupSub && (o.limits || t.style === Oe.DISPLAY) ? u = "munder" : u = "msub";
|
|
30011
30011
|
}
|
|
30012
30012
|
else {
|
|
30013
30013
|
var s = e.base;
|
|
30014
|
-
s && s.type === "op" && s.limits && (t.style ===
|
|
30014
|
+
s && s.type === "op" && s.limits && (t.style === Oe.DISPLAY || s.alwaysHandleSupSub) || s && s.type === "operatorname" && s.alwaysHandleSupSub && (s.limits || t.style === Oe.DISPLAY) ? u = "mover" : u = "msup";
|
|
30015
30015
|
}
|
|
30016
30016
|
return new oe(u, i);
|
|
30017
30017
|
}
|
|
@@ -33144,12 +33144,12 @@ function nT() {
|
|
|
33144
33144
|
}, F.valueOf = function() {
|
|
33145
33145
|
return this.$d.getTime();
|
|
33146
33146
|
}, F.startOf = function(W, te) {
|
|
33147
|
-
var X = this, Z = !!V.u(te) || te, A = V.p(W), me = function(
|
|
33148
|
-
var et = V.w(X.$u ? Date.UTC(X.$y, Ue,
|
|
33147
|
+
var X = this, Z = !!V.u(te) || te, A = V.p(W), me = function(Ie, Ue) {
|
|
33148
|
+
var et = V.w(X.$u ? Date.UTC(X.$y, Ue, Ie) : new Date(X.$y, Ue, Ie), X);
|
|
33149
33149
|
return Z ? et : et.endOf(l);
|
|
33150
|
-
}, ye = function(
|
|
33151
|
-
return V.w(X.toDate()[
|
|
33152
|
-
}, k = this.$W, Te = this.$M, Ae = this.$D,
|
|
33150
|
+
}, ye = function(Ie, Ue) {
|
|
33151
|
+
return V.w(X.toDate()[Ie].apply(X.toDate("s"), (Z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ue)), X);
|
|
33152
|
+
}, k = this.$W, Te = this.$M, Ae = this.$D, Ne = "set" + (this.$u ? "UTC" : "");
|
|
33153
33153
|
switch (A) {
|
|
33154
33154
|
case m:
|
|
33155
33155
|
return Z ? me(1, 0) : me(31, 11);
|
|
@@ -33160,13 +33160,13 @@ function nT() {
|
|
|
33160
33160
|
return me(Z ? Ae - be : Ae + (6 - be), Te);
|
|
33161
33161
|
case l:
|
|
33162
33162
|
case y:
|
|
33163
|
-
return ye(
|
|
33163
|
+
return ye(Ne + "Hours", 0);
|
|
33164
33164
|
case o:
|
|
33165
|
-
return ye(
|
|
33165
|
+
return ye(Ne + "Minutes", 1);
|
|
33166
33166
|
case s:
|
|
33167
|
-
return ye(
|
|
33167
|
+
return ye(Ne + "Seconds", 2);
|
|
33168
33168
|
case u:
|
|
33169
|
-
return ye(
|
|
33169
|
+
return ye(Ne + "Milliseconds", 3);
|
|
33170
33170
|
default:
|
|
33171
33171
|
return this.clone();
|
|
33172
33172
|
}
|
|
@@ -33201,11 +33201,11 @@ function nT() {
|
|
|
33201
33201
|
}, F.format = function(W) {
|
|
33202
33202
|
var te = this, X = this.$locale();
|
|
33203
33203
|
if (!this.isValid()) return X.invalidDate || b;
|
|
33204
|
-
var Z = W || "YYYY-MM-DDTHH:mm:ssZ", A = V.z(this), me = this.$H, ye = this.$m, k = this.$M, Te = X.weekdays, Ae = X.months,
|
|
33204
|
+
var Z = W || "YYYY-MM-DDTHH:mm:ssZ", A = V.z(this), me = this.$H, ye = this.$m, k = this.$M, Te = X.weekdays, Ae = X.months, Ne = X.meridiem, Ye = function(Ue, et, ot, wt) {
|
|
33205
33205
|
return Ue && (Ue[et] || Ue(te, Z)) || ot[et].slice(0, wt);
|
|
33206
33206
|
}, be = function(Ue) {
|
|
33207
33207
|
return V.s(me % 12 || 12, Ue, "0");
|
|
33208
|
-
},
|
|
33208
|
+
}, Ie = Ne || function(Ue, et, ot) {
|
|
33209
33209
|
var wt = Ue < 12 ? "AM" : "PM";
|
|
33210
33210
|
return ot ? wt.toLowerCase() : wt;
|
|
33211
33211
|
};
|
|
@@ -33245,9 +33245,9 @@ function nT() {
|
|
|
33245
33245
|
case "hh":
|
|
33246
33246
|
return be(2);
|
|
33247
33247
|
case "a":
|
|
33248
|
-
return
|
|
33248
|
+
return Ie(me, ye, !0);
|
|
33249
33249
|
case "A":
|
|
33250
|
-
return
|
|
33250
|
+
return Ie(me, ye, !1);
|
|
33251
33251
|
case "m":
|
|
33252
33252
|
return String(ye);
|
|
33253
33253
|
case "mm":
|
|
@@ -33795,9 +33795,9 @@ const gT = (e) => ({
|
|
|
33795
33795
|
const { primaryColor: o, conversationScreen: l } = we(Ct), {
|
|
33796
33796
|
content: c,
|
|
33797
33797
|
liveAgent: h,
|
|
33798
|
-
role: p =
|
|
33798
|
+
role: p = $e.ASSISTANT,
|
|
33799
33799
|
timestamp: m
|
|
33800
|
-
} = t ?? {}, y = p ===
|
|
33800
|
+
} = t ?? {}, y = p === $e.TOOL ? $e.ASSISTANT : p, b = h || s === X1.ESCALATE_TO_AN_AGENT, T = !b && !!c, E = dn(
|
|
33801
33801
|
() => ET(
|
|
33802
33802
|
o,
|
|
33803
33803
|
l?.userMessageBubble?.style
|
|
@@ -33827,7 +33827,7 @@ const gT = (e) => ({
|
|
|
33827
33827
|
}, [r, n, I]);
|
|
33828
33828
|
const H = dn(() => {
|
|
33829
33829
|
if (!T) return null;
|
|
33830
|
-
if (y ===
|
|
33830
|
+
if (y === $e.USER)
|
|
33831
33831
|
return I;
|
|
33832
33832
|
const K = yT(I);
|
|
33833
33833
|
return /* @__PURE__ */ w.jsx(
|
|
@@ -33874,7 +33874,7 @@ const gT = (e) => ({
|
|
|
33874
33874
|
className: "xpert-chatbot-popup__bubble--group-inner",
|
|
33875
33875
|
style: E[y].innerStyle,
|
|
33876
33876
|
children: [
|
|
33877
|
-
y ===
|
|
33877
|
+
y === $e.AGENT && /* @__PURE__ */ w.jsx(
|
|
33878
33878
|
Eo,
|
|
33879
33879
|
{
|
|
33880
33880
|
alignSelf: "flex-end",
|
|
@@ -33908,7 +33908,7 @@ const gT = (e) => ({
|
|
|
33908
33908
|
]
|
|
33909
33909
|
}
|
|
33910
33910
|
),
|
|
33911
|
-
y ===
|
|
33911
|
+
y === $e.USER && /* @__PURE__ */ w.jsx(
|
|
33912
33912
|
Eo,
|
|
33913
33913
|
{
|
|
33914
33914
|
alignSelf: "flex-end",
|
|
@@ -33939,7 +33939,7 @@ E0.displayName = "MessageBubble";
|
|
|
33939
33939
|
const L2 = ep(E0);
|
|
33940
33940
|
function T0({ message: e }) {
|
|
33941
33941
|
const { content: t, icon: n, iconColor: r, role: a } = e;
|
|
33942
|
-
return a !==
|
|
33942
|
+
return a !== $e.NOTIFICATION ? null : /* @__PURE__ */ w.jsxs("div", { className: "notification-container", children: [
|
|
33943
33943
|
/* @__PURE__ */ w.jsx(
|
|
33944
33944
|
"div",
|
|
33945
33945
|
{
|
|
@@ -33956,7 +33956,7 @@ T0.propTypes = {
|
|
|
33956
33956
|
content: C.string,
|
|
33957
33957
|
icon: C.string,
|
|
33958
33958
|
iconColor: C.string,
|
|
33959
|
-
role: C.oneOf([
|
|
33959
|
+
role: C.oneOf([$e.NOTIFICATION])
|
|
33960
33960
|
}).isRequired
|
|
33961
33961
|
};
|
|
33962
33962
|
T0.displayName = "NotificationMessage";
|
|
@@ -34013,18 +34013,18 @@ const ai = ({
|
|
|
34013
34013
|
style: { display: "flex", flexDirection: "column" },
|
|
34014
34014
|
children: n.map((p, m) => {
|
|
34015
34015
|
const { role: y } = p, b = `${y}-${m}`;
|
|
34016
|
-
if (y ===
|
|
34016
|
+
if (y === $e.ERROR)
|
|
34017
34017
|
return /* @__PURE__ */ w.jsx(Hs, { content: p?.content }, b);
|
|
34018
|
-
if (y ===
|
|
34018
|
+
if (y === $e.NOTIFICATION)
|
|
34019
34019
|
return /* @__PURE__ */ w.jsx(T0, { message: p }, b);
|
|
34020
34020
|
if (![
|
|
34021
|
-
|
|
34022
|
-
|
|
34023
|
-
|
|
34024
|
-
|
|
34025
|
-
|
|
34021
|
+
$e.AGENT,
|
|
34022
|
+
$e.ASSISTANT,
|
|
34023
|
+
$e.INFO,
|
|
34024
|
+
$e.TOOL,
|
|
34025
|
+
$e.USER
|
|
34026
34026
|
].includes(y) || !p.content) return null;
|
|
34027
|
-
const T = h[p.toolCallId], E = o && y ===
|
|
34027
|
+
const T = h[p.toolCallId], E = o && y === $e.ASSISTANT && m === n.length - 1;
|
|
34028
34028
|
return /* @__PURE__ */ w.jsx(
|
|
34029
34029
|
L2,
|
|
34030
34030
|
{
|
|
@@ -34198,7 +34198,7 @@ const P2 = ({ chatContentRef: e, messages: t }) => {
|
|
|
34198
34198
|
top: e.current.scrollHeight,
|
|
34199
34199
|
behavior: "smooth"
|
|
34200
34200
|
});
|
|
34201
|
-
}, [n, e]), n ? null : /* @__PURE__ */ w.jsx("div", { ref: u, tabIndex: -1, children: (a || r) && t.find((l) => l.role ===
|
|
34201
|
+
}, [n, e]), n ? null : /* @__PURE__ */ w.jsx("div", { ref: u, tabIndex: -1, children: (a || r) && t.find((l) => l.role === $e.ASSISTANT) && /* @__PURE__ */ w.jsx(
|
|
34202
34202
|
"button",
|
|
34203
34203
|
{
|
|
34204
34204
|
onClick: o,
|
|
@@ -34393,7 +34393,7 @@ function S0({
|
|
|
34393
34393
|
"div",
|
|
34394
34394
|
{
|
|
34395
34395
|
className: "xpert_chatbot__survey-callout",
|
|
34396
|
-
style: { color: "#
|
|
34396
|
+
style: { color: "#3f2c00" },
|
|
34397
34397
|
"aria-live": "polite",
|
|
34398
34398
|
"aria-busy": G,
|
|
34399
34399
|
children: P
|
|
@@ -34409,7 +34409,7 @@ function S0({
|
|
|
34409
34409
|
{
|
|
34410
34410
|
type: "button",
|
|
34411
34411
|
className: "xpert_chatbot__survey-btn xpert_chatbot__survey-btn--soft xpert-chatbot__survey-choice",
|
|
34412
|
-
style: { color: "#
|
|
34412
|
+
style: { color: "#3f2c00" },
|
|
34413
34413
|
onClick: o,
|
|
34414
34414
|
disabled: m,
|
|
34415
34415
|
children: m ? "Loading…" : "Start Survey"
|
|
@@ -34608,7 +34608,7 @@ function To(e) {
|
|
|
34608
34608
|
return console.error(`Invalid URL provided to buildTagsFromUrl: ${e}`), [];
|
|
34609
34609
|
}
|
|
34610
34610
|
}
|
|
34611
|
-
const kT = "
|
|
34611
|
+
const kT = "We've returned to standard tutoring. How can I help you with your course material?";
|
|
34612
34612
|
function IT({
|
|
34613
34613
|
chatApi: e = null,
|
|
34614
34614
|
chatApiEndpoint: t = null
|
|
@@ -34622,7 +34622,7 @@ function IT({
|
|
|
34622
34622
|
return r.pathname = r.pathname.replace(/\/?v1\/message\/?$/, "/v1/client").replace(/\/?message\/?$/, "/v1/client"), r.pathname.endsWith("/v1/client") || (r.pathname = "/v1/client"), r.search = "", r.hash = "", r.toString().replace(/\/$/, "");
|
|
34623
34623
|
} catch {
|
|
34624
34624
|
}
|
|
34625
|
-
return
|
|
34625
|
+
return null;
|
|
34626
34626
|
}
|
|
34627
34627
|
function OT(e) {
|
|
34628
34628
|
return Array.isArray(e) ? e.filter(Boolean) : e && typeof e == "object" ? [e] : [];
|
|
@@ -34801,21 +34801,21 @@ function BT({
|
|
|
34801
34801
|
...be.toolCalls && { tool_calls: be.toolCalls },
|
|
34802
34802
|
...be.toolCallId && { tool_call_id: be.toolCallId }
|
|
34803
34803
|
})).filter(
|
|
34804
|
-
({ role: be }) => [
|
|
34804
|
+
({ role: be }) => [$e.ASSISTANT, $e.TOOL, $e.USER].includes(
|
|
34805
34805
|
be
|
|
34806
34806
|
)
|
|
34807
34807
|
) : [], [o]), Z = () => {
|
|
34808
34808
|
if (typeof s != "function") return;
|
|
34809
34809
|
if (!Array.isArray(o)) {
|
|
34810
34810
|
s({
|
|
34811
|
-
role:
|
|
34811
|
+
role: $e.INFO,
|
|
34812
34812
|
content: l
|
|
34813
34813
|
});
|
|
34814
34814
|
return;
|
|
34815
34815
|
}
|
|
34816
34816
|
const be = o[o.length - 1];
|
|
34817
|
-
be?.role ===
|
|
34818
|
-
role:
|
|
34817
|
+
be?.role === $e.INFO && be?.content === l || s({
|
|
34818
|
+
role: $e.INFO,
|
|
34819
34819
|
content: l
|
|
34820
34820
|
});
|
|
34821
34821
|
}, A = () => {
|
|
@@ -34833,8 +34833,8 @@ function BT({
|
|
|
34833
34833
|
ye("external");
|
|
34834
34834
|
}
|
|
34835
34835
|
}, [a, ne, V]);
|
|
34836
|
-
const k = (be = !0,
|
|
34837
|
-
const { skipTelemetryPost: Ue = !1, surveyResponseOverride: et = null } =
|
|
34836
|
+
const k = (be = !0, Ie = {}) => {
|
|
34837
|
+
const { skipTelemetryPost: Ue = !1, surveyResponseOverride: et = null } = Ie ?? {}, ot = I?.id ?? "end_of_term_survey", wt = n && $ ? Zn(n) : null, Pt = I?.questions?.length ?? 0, ke = Math.max(
|
|
34838
34838
|
0,
|
|
34839
34839
|
Math.min(y, Pt)
|
|
34840
34840
|
), Fe = !!F.current || ke > 0, Ze = be ? (/* @__PURE__ */ new Date()).toISOString() : null, We = et ?? Ai({
|
|
@@ -34856,10 +34856,16 @@ function BT({
|
|
|
34856
34856
|
clientId: n,
|
|
34857
34857
|
conversationHistoryEnabled: $,
|
|
34858
34858
|
onMessageSent: u
|
|
34859
|
-
}), h(!1), m(!1), b(0), H(null), q(!1), P(null), L.current = null, F.current = null
|
|
34859
|
+
}), h(!1), m(!1), b(0), H(null), q(!1), P(null), L.current = null, F.current = null;
|
|
34860
|
+
const at = be || Fe ? "--- EXITED SURVEY MODE. RESPONSES SAVED. ---" : "--- EXITED SURVEY MODE. ---";
|
|
34861
|
+
E([
|
|
34860
34862
|
{
|
|
34861
|
-
role:
|
|
34862
|
-
content:
|
|
34863
|
+
role: $e.INFO,
|
|
34864
|
+
content: at
|
|
34865
|
+
},
|
|
34866
|
+
{
|
|
34867
|
+
role: $e.ASSISTANT,
|
|
34868
|
+
content: kT
|
|
34863
34869
|
}
|
|
34864
34870
|
]);
|
|
34865
34871
|
}, Te = async () => {
|
|
@@ -34898,11 +34904,14 @@ function BT({
|
|
|
34898
34904
|
}
|
|
34899
34905
|
if (!n)
|
|
34900
34906
|
throw new Error("Survey client id is required to load survey config");
|
|
34901
|
-
const
|
|
34907
|
+
const Ie = IT({
|
|
34902
34908
|
chatApi: e,
|
|
34903
34909
|
chatApiEndpoint: t
|
|
34904
|
-
})
|
|
34905
|
-
|
|
34910
|
+
});
|
|
34911
|
+
if (!Ie)
|
|
34912
|
+
throw new Error("Survey client configuration endpoint is required");
|
|
34913
|
+
const Ue = await fetch(
|
|
34914
|
+
`${Ie}?client_id=${n}`,
|
|
34906
34915
|
{
|
|
34907
34916
|
method: "GET",
|
|
34908
34917
|
headers: { "Content-Type": "application/json" }
|
|
@@ -34945,8 +34954,8 @@ function BT({
|
|
|
34945
34954
|
q(!1);
|
|
34946
34955
|
}
|
|
34947
34956
|
}, Ae = (be) => {
|
|
34948
|
-
const
|
|
34949
|
-
if (!
|
|
34957
|
+
const Ie = W;
|
|
34958
|
+
if (!Ie) return;
|
|
34950
34959
|
const Ue = be?.label, et = (/* @__PURE__ */ new Date()).toISOString();
|
|
34951
34960
|
F.current = et;
|
|
34952
34961
|
const ot = I?.id ?? "end_of_term_survey", wt = n && $ ? Zn(n) : null, Pt = I?.questions?.length ?? 0, ke = Math.max(
|
|
@@ -34959,11 +34968,11 @@ function BT({
|
|
|
34959
34968
|
startedAt: L.current,
|
|
34960
34969
|
lastAnsweredAt: et,
|
|
34961
34970
|
completedAt: We,
|
|
34962
|
-
currentQuestionId:
|
|
34971
|
+
currentQuestionId: Ie.id,
|
|
34963
34972
|
totalQuestions: Pt,
|
|
34964
34973
|
answeredQuestions: Ze ? Pt : ke
|
|
34965
|
-
}), Be = be?.id === "free_text" ||
|
|
34966
|
-
questionId:
|
|
34974
|
+
}), Be = be?.id === "free_text" || Ie.type === "text", He = MT({
|
|
34975
|
+
questionId: Ie.id,
|
|
34967
34976
|
answerType: Be ? "text" : "option",
|
|
34968
34977
|
selectedOptionId: Be ? null : be?.id ?? null,
|
|
34969
34978
|
text: Be ? Ue : null,
|
|
@@ -35001,9 +35010,9 @@ function BT({
|
|
|
35001
35010
|
},
|
|
35002
35011
|
handleSendRouted: (be) => {
|
|
35003
35012
|
if (c && W?.type === "text") {
|
|
35004
|
-
const
|
|
35005
|
-
if (!
|
|
35006
|
-
Ae({ id: "free_text", label:
|
|
35013
|
+
const Ie = (be ?? "").trim();
|
|
35014
|
+
if (!Ie) return;
|
|
35015
|
+
Ae({ id: "free_text", label: Ie });
|
|
35007
35016
|
return;
|
|
35008
35017
|
}
|
|
35009
35018
|
i(be);
|
|
@@ -35069,8 +35078,8 @@ function B2({
|
|
|
35069
35078
|
onMessageSent: c,
|
|
35070
35079
|
pushXpertMessage: h,
|
|
35071
35080
|
xpertMessages: p
|
|
35072
|
-
}), Te = (
|
|
35073
|
-
u.liveChat.useOwnChat ? b(kn.LIVECHAT) : r(
|
|
35081
|
+
}), Te = (Ne) => {
|
|
35082
|
+
u.liveChat.useOwnChat ? b(kn.LIVECHAT) : r(Ne);
|
|
35074
35083
|
};
|
|
35075
35084
|
_T({
|
|
35076
35085
|
chatContentRef: H,
|
|
@@ -35108,7 +35117,7 @@ function B2({
|
|
|
35108
35117
|
{
|
|
35109
35118
|
message: {
|
|
35110
35119
|
content: u?.systemMessage,
|
|
35111
|
-
role:
|
|
35120
|
+
role: $e.ASSISTANT
|
|
35112
35121
|
}
|
|
35113
35122
|
}
|
|
35114
35123
|
),
|
|
@@ -35806,12 +35815,12 @@ function k0() {
|
|
|
35806
35815
|
var Z, A = !1, me = !0, ye = function() {
|
|
35807
35816
|
return t(void 0, void 0, void 0, function() {
|
|
35808
35817
|
var k, Te, Ae;
|
|
35809
|
-
return n(this, function(
|
|
35810
|
-
switch (
|
|
35818
|
+
return n(this, function(Ne) {
|
|
35819
|
+
switch (Ne.label) {
|
|
35811
35820
|
case 0:
|
|
35812
35821
|
return k = S, [4, (0, o.getUrl)(p, z)];
|
|
35813
35822
|
case 1:
|
|
35814
|
-
return k.current =
|
|
35823
|
+
return k.current = Ne.sent(), S.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), S.current = "ABORTED", (0, i.flushSync)(function() {
|
|
35815
35824
|
return K(function(Ye) {
|
|
35816
35825
|
return e(e({}, Ye), { ABORTED: u.ReadyState.CLOSED });
|
|
35817
35826
|
});
|
|
@@ -35825,8 +35834,8 @@ function k0() {
|
|
|
35825
35834
|
}, Ae = function(Ye) {
|
|
35826
35835
|
A || (0, i.flushSync)(function() {
|
|
35827
35836
|
return K(function(be) {
|
|
35828
|
-
var
|
|
35829
|
-
return e(e({}, be), S.current && (
|
|
35837
|
+
var Ie;
|
|
35838
|
+
return e(e({}, be), S.current && (Ie = {}, Ie[S.current] = Ye, Ie));
|
|
35830
35839
|
});
|
|
35831
35840
|
});
|
|
35832
35841
|
}, me && (Z = (0, s.createOrJoinSocket)(P, S.current, Ae, z, Te, G, U, ne, W)), [
|
|
@@ -36037,7 +36046,7 @@ const KT = "This conversation with a live agent has ended. Please note that a tr
|
|
|
36037
36046
|
}, G = () => {
|
|
36038
36047
|
r({
|
|
36039
36048
|
content: KT,
|
|
36040
|
-
role:
|
|
36049
|
+
role: $e.INFO
|
|
36041
36050
|
}), U();
|
|
36042
36051
|
}, U = () => {
|
|
36043
36052
|
c(""), y(null), T(Qn.FORM), i(kn.XPERT);
|
|
@@ -36055,7 +36064,7 @@ const KT = "This conversation with a live agent has ended. Please note that a tr
|
|
|
36055
36064
|
H({
|
|
36056
36065
|
content: A ?? "",
|
|
36057
36066
|
id: Z ?? "",
|
|
36058
|
-
role:
|
|
36067
|
+
role: $e.AGENT,
|
|
36059
36068
|
timestamp: me ? new Date(me) : void 0
|
|
36060
36069
|
}), q({
|
|
36061
36070
|
action: "sendmessage",
|
|
@@ -36078,7 +36087,7 @@ const KT = "This conversation with a live agent has ended. Please note that a tr
|
|
|
36078
36087
|
H({
|
|
36079
36088
|
content: X,
|
|
36080
36089
|
id: "",
|
|
36081
|
-
role:
|
|
36090
|
+
role: $e.USER,
|
|
36082
36091
|
timestamp: /* @__PURE__ */ new Date()
|
|
36083
36092
|
}), q({
|
|
36084
36093
|
action: "sendmessage",
|
|
@@ -36111,7 +36120,7 @@ const KT = "This conversation with a live agent has ended. Please note that a tr
|
|
|
36111
36120
|
content: "Feedback submitted",
|
|
36112
36121
|
icon: "check",
|
|
36113
36122
|
iconColor: "#30A171",
|
|
36114
|
-
role:
|
|
36123
|
+
role: $e.NOTIFICATION
|
|
36115
36124
|
}), G();
|
|
36116
36125
|
},
|
|
36117
36126
|
terminateConversation: P
|
|
@@ -37058,7 +37067,7 @@ function Q2({ submitEventExternal: e = null }) {
|
|
|
37058
37067
|
live_agent: ee,
|
|
37059
37068
|
role: le,
|
|
37060
37069
|
tool_calls: Se,
|
|
37061
|
-
tool_call_id:
|
|
37070
|
+
tool_call_id: Ve
|
|
37062
37071
|
}) => {
|
|
37063
37072
|
m({
|
|
37064
37073
|
content: xn,
|
|
@@ -37066,13 +37075,13 @@ function Q2({ submitEventExternal: e = null }) {
|
|
|
37066
37075
|
liveAgent: ee,
|
|
37067
37076
|
role: le,
|
|
37068
37077
|
toolCalls: Se,
|
|
37069
|
-
toolCallId:
|
|
37078
|
+
toolCallId: Ve
|
|
37070
37079
|
});
|
|
37071
37080
|
}
|
|
37072
37081
|
);
|
|
37073
37082
|
const Rt = He.filter(({ content: xn }) => !!xn).map((xn) => xn.content ?? "").join(""), jn = q1(at, /* @__PURE__ */ new Date());
|
|
37074
37083
|
return Te(Rt, Fe, jn), He;
|
|
37075
|
-
},
|
|
37084
|
+
}, Ne = async (ke, Fe, Ze, We) => {
|
|
37076
37085
|
const at = new TextDecoder("utf-8");
|
|
37077
37086
|
let Be = [], He = 0;
|
|
37078
37087
|
const Xe = /* @__PURE__ */ new Date();
|
|
@@ -37091,8 +37100,8 @@ function Q2({ submitEventExternal: e = null }) {
|
|
|
37091
37100
|
if (le || Gt) break;
|
|
37092
37101
|
const Se = at.decode(ee, { stream: !0 });
|
|
37093
37102
|
try {
|
|
37094
|
-
const
|
|
37095
|
-
|
|
37103
|
+
const Ve = Se.match(/\[.*?\](?=\[|$)/gs), ze = JSON.parse(
|
|
37104
|
+
Ve[Ve.length - 1]
|
|
37096
37105
|
).map((yt) => ({
|
|
37097
37106
|
content: yt.content,
|
|
37098
37107
|
createdAt: Xe,
|
|
@@ -37136,7 +37145,7 @@ function Q2({ submitEventExternal: e = null }) {
|
|
|
37136
37145
|
const Be = ke?.body?.getReader?.();
|
|
37137
37146
|
if (!Be)
|
|
37138
37147
|
throw G(!1), new Error("Streaming response body is not readable");
|
|
37139
|
-
const He = h.current?.signal, Xe = await
|
|
37148
|
+
const He = h.current?.signal, Xe = await Ne(
|
|
37140
37149
|
Be,
|
|
37141
37150
|
Fe,
|
|
37142
37151
|
at,
|
|
@@ -37149,7 +37158,7 @@ function Q2({ submitEventExternal: e = null }) {
|
|
|
37149
37158
|
return;
|
|
37150
37159
|
const Fe = /* @__PURE__ */ new Date();
|
|
37151
37160
|
K(!1), H(!1);
|
|
37152
|
-
const Ze = b.filter((Xe) => Xe.role ===
|
|
37161
|
+
const Ze = b.filter((Xe) => Xe.role === $e.USER).length + 1;
|
|
37153
37162
|
me({
|
|
37154
37163
|
name: "xpert.chatbot.popup.chat.message.sent",
|
|
37155
37164
|
payload: {
|
|
@@ -37164,7 +37173,7 @@ function Q2({ submitEventExternal: e = null }) {
|
|
|
37164
37173
|
}), S(!0);
|
|
37165
37174
|
const We = r?.conversationHistory?.enabled && a ? Zn(a) : null, at = [
|
|
37166
37175
|
...b,
|
|
37167
|
-
{ role:
|
|
37176
|
+
{ role: $e.USER, content: ke }
|
|
37168
37177
|
].map((Xe) => ({
|
|
37169
37178
|
role: Xe.role,
|
|
37170
37179
|
content: Xe.content,
|
|
@@ -37172,9 +37181,9 @@ function Q2({ submitEventExternal: e = null }) {
|
|
|
37172
37181
|
...Xe.toolCallId && { tool_call_id: Xe.toolCallId }
|
|
37173
37182
|
})).filter(
|
|
37174
37183
|
({ role: Xe }) => [
|
|
37175
|
-
|
|
37176
|
-
|
|
37177
|
-
|
|
37184
|
+
$e.ASSISTANT,
|
|
37185
|
+
$e.TOOL,
|
|
37186
|
+
$e.USER
|
|
37178
37187
|
].includes(Xe)
|
|
37179
37188
|
);
|
|
37180
37189
|
if (p) {
|
|
@@ -37197,7 +37206,7 @@ function Q2({ submitEventExternal: e = null }) {
|
|
|
37197
37206
|
}), I(!1), K(!0), S(!1);
|
|
37198
37207
|
return;
|
|
37199
37208
|
}
|
|
37200
|
-
m({ role:
|
|
37209
|
+
m({ role: $e.USER, content: ke }), h.current = new AbortController();
|
|
37201
37210
|
const Be = window?.analytics?.user?.()?.id?.(), He = await fetch(t.endpoint, {
|
|
37202
37211
|
method: "POST",
|
|
37203
37212
|
headers: { "Content-Type": "application/json" },
|
|
@@ -37234,7 +37243,7 @@ function Q2({ submitEventExternal: e = null }) {
|
|
|
37234
37243
|
return;
|
|
37235
37244
|
S(!1), H(!0), console.error(Fe);
|
|
37236
37245
|
}
|
|
37237
|
-
},
|
|
37246
|
+
}, Ie = () => {
|
|
37238
37247
|
L(!1), $(!0), q(!0), ye();
|
|
37239
37248
|
}, Ue = (ke) => {
|
|
37240
37249
|
q(ke);
|
|
@@ -37282,13 +37291,13 @@ function Q2({ submitEventExternal: e = null }) {
|
|
|
37282
37291
|
wt && l && /* @__PURE__ */ w.jsx(
|
|
37283
37292
|
J1,
|
|
37284
37293
|
{
|
|
37285
|
-
handleFloatingActionButtonClick:
|
|
37294
|
+
handleFloatingActionButtonClick: Ie
|
|
37286
37295
|
}
|
|
37287
37296
|
),
|
|
37288
37297
|
!wt && l && /* @__PURE__ */ w.jsx(
|
|
37289
37298
|
td,
|
|
37290
37299
|
{
|
|
37291
|
-
handleFloatingActionButtonClick:
|
|
37300
|
+
handleFloatingActionButtonClick: Ie
|
|
37292
37301
|
}
|
|
37293
37302
|
),
|
|
37294
37303
|
l && /* @__PURE__ */ w.jsx(ex, {}),
|