minerva-plexus-csd 1.1.53 → 1.1.55
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/minerva-plexus-csd.es.js +252 -260
- package/dist/minerva-plexus-csd.umd.js +17 -17
- package/package.json +1 -1
|
@@ -74,14 +74,14 @@ function Vv() {
|
|
|
74
74
|
Ee.unshift("Warning: " + B), Function.prototype.apply.call(console[A], console, Ee);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
var b = !1, h = !1, k = !1,
|
|
78
|
-
|
|
77
|
+
var b = !1, h = !1, k = !1, L = !1, R = !1, O;
|
|
78
|
+
O = Symbol.for("react.module.reference");
|
|
79
79
|
function I(A) {
|
|
80
|
-
return !!(typeof A == "string" || typeof A == "function" || A === a || A === o || R || A === i || A === c || A === d ||
|
|
80
|
+
return !!(typeof A == "string" || typeof A == "function" || A === a || A === o || R || A === i || A === c || A === d || L || A === y || b || h || k || typeof A == "object" && A !== null && (A.$$typeof === p || A.$$typeof === f || A.$$typeof === s || A.$$typeof === l || A.$$typeof === u || // This needs to include all possible module reference object
|
|
81
81
|
// types supported by any Flight configuration anywhere since
|
|
82
82
|
// we don't know which Flight build this will end up being used
|
|
83
83
|
// with.
|
|
84
|
-
A.$$typeof ===
|
|
84
|
+
A.$$typeof === O || A.getModuleId !== void 0));
|
|
85
85
|
}
|
|
86
86
|
function M(A, B, J) {
|
|
87
87
|
var oe = A.displayName;
|
|
@@ -2289,40 +2289,40 @@ const h1 = {
|
|
|
2289
2289
|
service: d,
|
|
2290
2290
|
serviceTicketing: f,
|
|
2291
2291
|
serviceTicketingNoUSer: p
|
|
2292
|
-
} = Sn(), [y, S] = ge(""), [_, T] = ge(!1), [E, m] = ge(!1), [x, b] = ge(null), h = (
|
|
2293
|
-
b(
|
|
2292
|
+
} = Sn(), [y, S] = ge(""), [_, T] = ge(!1), [E, m] = ge(!1), [x, b] = ge(null), h = (O) => {
|
|
2293
|
+
b(O), O.success || setTimeout(() => b(null), 5e3);
|
|
2294
2294
|
}, k = async () => {
|
|
2295
2295
|
if (!y.trim()) return;
|
|
2296
|
-
let
|
|
2297
|
-
if (S(""), T(!0), !
|
|
2296
|
+
let O = l == null ? void 0 : l.id;
|
|
2297
|
+
if (S(""), T(!0), !O) {
|
|
2298
2298
|
const I = e("text.new_conversation");
|
|
2299
2299
|
try {
|
|
2300
|
-
|
|
2300
|
+
O = (await u(
|
|
2301
2301
|
I,
|
|
2302
2302
|
d
|
|
2303
|
-
)).id, c(
|
|
2303
|
+
)).id, c(O, d);
|
|
2304
2304
|
} catch (M) {
|
|
2305
2305
|
console.error("Error creating new conversation:", M), T(!1);
|
|
2306
2306
|
return;
|
|
2307
2307
|
}
|
|
2308
2308
|
}
|
|
2309
|
-
if (
|
|
2309
|
+
if (O)
|
|
2310
2310
|
try {
|
|
2311
|
-
await t(
|
|
2311
|
+
await t(O, y, d), T(!1);
|
|
2312
2312
|
} catch (I) {
|
|
2313
2313
|
console.error("Error sending message:", I), T(!1);
|
|
2314
2314
|
}
|
|
2315
2315
|
else
|
|
2316
2316
|
console.error("No conversation selected or user ID is not available"), T(!1);
|
|
2317
|
-
},
|
|
2318
|
-
|
|
2317
|
+
}, L = (O) => {
|
|
2318
|
+
O.key === "Enter" && !O.shiftKey && (O.preventDefault(), k());
|
|
2319
2319
|
}, R = async () => {
|
|
2320
2320
|
if (!(!(l != null && l.id) || E)) {
|
|
2321
2321
|
m(!0);
|
|
2322
2322
|
try {
|
|
2323
2323
|
await r(l.id) || console.warn("No se pudo detener el streaming correctamente");
|
|
2324
|
-
} catch (
|
|
2325
|
-
console.error("Error al detener el streaming:",
|
|
2324
|
+
} catch (O) {
|
|
2325
|
+
console.error("Error al detener el streaming:", O);
|
|
2326
2326
|
} finally {
|
|
2327
2327
|
m(!1);
|
|
2328
2328
|
}
|
|
@@ -2341,7 +2341,7 @@ const h1 = {
|
|
|
2341
2341
|
handleStopStreaming: R,
|
|
2342
2342
|
handleInput: () => {
|
|
2343
2343
|
},
|
|
2344
|
-
handleKeyPress:
|
|
2344
|
+
handleKeyPress: L,
|
|
2345
2345
|
ticketMessage: x
|
|
2346
2346
|
}
|
|
2347
2347
|
) : /* @__PURE__ */ g.jsx(
|
|
@@ -4539,20 +4539,20 @@ function rw(e) {
|
|
|
4539
4539
|
)
|
|
4540
4540
|
return;
|
|
4541
4541
|
const k = t.events.length;
|
|
4542
|
-
let
|
|
4543
|
-
for (;
|
|
4544
|
-
if (t.events[
|
|
4542
|
+
let L = k, R, O;
|
|
4543
|
+
for (; L--; )
|
|
4544
|
+
if (t.events[L][0] === "exit" && t.events[L][1].type === "chunkFlow") {
|
|
4545
4545
|
if (R) {
|
|
4546
|
-
|
|
4546
|
+
O = t.events[L][1].end;
|
|
4547
4547
|
break;
|
|
4548
4548
|
}
|
|
4549
4549
|
R = !0;
|
|
4550
4550
|
}
|
|
4551
4551
|
for (T(r), h = k; h < t.events.length; )
|
|
4552
4552
|
t.events[h][1].end = {
|
|
4553
|
-
...
|
|
4553
|
+
...O
|
|
4554
4554
|
}, h++;
|
|
4555
|
-
vt(t.events,
|
|
4555
|
+
vt(t.events, L + 1, 0, t.events.slice(k)), t.events.length = h;
|
|
4556
4556
|
}
|
|
4557
4557
|
}
|
|
4558
4558
|
function T(m) {
|
|
@@ -4848,23 +4848,23 @@ function mw(e, t, n) {
|
|
|
4848
4848
|
function x(h) {
|
|
4849
4849
|
return e.exit("codeFenced"), t(h);
|
|
4850
4850
|
}
|
|
4851
|
-
function b(h, k,
|
|
4851
|
+
function b(h, k, L) {
|
|
4852
4852
|
let R = 0;
|
|
4853
|
-
return
|
|
4854
|
-
function
|
|
4853
|
+
return O;
|
|
4854
|
+
function O($) {
|
|
4855
4855
|
return h.enter("lineEnding"), h.consume($), h.exit("lineEnding"), I;
|
|
4856
4856
|
}
|
|
4857
4857
|
function I($) {
|
|
4858
4858
|
return h.enter("codeFencedFence"), fe($) ? we(h, M, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)($) : M($);
|
|
4859
4859
|
}
|
|
4860
4860
|
function M($) {
|
|
4861
|
-
return $ === s ? (h.enter("codeFencedFenceSequence"), U($)) :
|
|
4861
|
+
return $ === s ? (h.enter("codeFencedFenceSequence"), U($)) : L($);
|
|
4862
4862
|
}
|
|
4863
4863
|
function U($) {
|
|
4864
|
-
return $ === s ? (R++, h.consume($), U) : R >= o ? (h.exit("codeFencedFenceSequence"), fe($) ? we(h, q, "whitespace")($) : q($)) :
|
|
4864
|
+
return $ === s ? (R++, h.consume($), U) : R >= o ? (h.exit("codeFencedFenceSequence"), fe($) ? we(h, q, "whitespace")($) : q($)) : L($);
|
|
4865
4865
|
}
|
|
4866
4866
|
function q($) {
|
|
4867
|
-
return $ === null || ae($) ? (h.exit("codeFencedFence"), k($)) :
|
|
4867
|
+
return $ === null || ae($) ? (h.exit("codeFencedFence"), k($)) : L($);
|
|
4868
4868
|
}
|
|
4869
4869
|
}
|
|
4870
4870
|
}
|
|
@@ -5542,10 +5542,10 @@ function Hw(e, t, n) {
|
|
|
5542
5542
|
return C === 62 ? (e.consume(C), r.interrupt ? t : M) : n(C);
|
|
5543
5543
|
}
|
|
5544
5544
|
function E(C) {
|
|
5545
|
-
return fe(C) ? (e.consume(C), E) :
|
|
5545
|
+
return fe(C) ? (e.consume(C), E) : O(C);
|
|
5546
5546
|
}
|
|
5547
5547
|
function m(C) {
|
|
5548
|
-
return C === 47 ? (e.consume(C),
|
|
5548
|
+
return C === 47 ? (e.consume(C), O) : C === 58 || C === 95 || bt(C) ? (e.consume(C), x) : fe(C) ? (e.consume(C), m) : O(C);
|
|
5549
5549
|
}
|
|
5550
5550
|
function x(C) {
|
|
5551
5551
|
return C === 45 || C === 46 || C === 58 || C === 95 || Je(C) ? (e.consume(C), x) : b(C);
|
|
@@ -5554,18 +5554,18 @@ function Hw(e, t, n) {
|
|
|
5554
5554
|
return C === 61 ? (e.consume(C), h) : fe(C) ? (e.consume(C), b) : m(C);
|
|
5555
5555
|
}
|
|
5556
5556
|
function h(C) {
|
|
5557
|
-
return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), l = C, k) : fe(C) ? (e.consume(C), h) :
|
|
5557
|
+
return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (e.consume(C), l = C, k) : fe(C) ? (e.consume(C), h) : L(C);
|
|
5558
5558
|
}
|
|
5559
5559
|
function k(C) {
|
|
5560
5560
|
return C === l ? (e.consume(C), l = null, R) : C === null || ae(C) ? n(C) : (e.consume(C), k);
|
|
5561
5561
|
}
|
|
5562
|
-
function
|
|
5563
|
-
return C === null || C === 34 || C === 39 || C === 47 || C === 60 || C === 61 || C === 62 || C === 96 || He(C) ? b(C) : (e.consume(C),
|
|
5562
|
+
function L(C) {
|
|
5563
|
+
return C === null || C === 34 || C === 39 || C === 47 || C === 60 || C === 61 || C === 62 || C === 96 || He(C) ? b(C) : (e.consume(C), L);
|
|
5564
5564
|
}
|
|
5565
5565
|
function R(C) {
|
|
5566
5566
|
return C === 47 || C === 62 || fe(C) ? m(C) : n(C);
|
|
5567
5567
|
}
|
|
5568
|
-
function
|
|
5568
|
+
function O(C) {
|
|
5569
5569
|
return C === 62 ? (e.consume(C), I) : n(C);
|
|
5570
5570
|
}
|
|
5571
5571
|
function I(C) {
|
|
@@ -5637,7 +5637,7 @@ function Kw(e, t, n) {
|
|
|
5637
5637
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(w), l;
|
|
5638
5638
|
}
|
|
5639
5639
|
function l(w) {
|
|
5640
|
-
return w === 33 ? (e.consume(w), u) : w === 47 ? (e.consume(w), b) : w === 63 ? (e.consume(w), m) : bt(w) ? (e.consume(w),
|
|
5640
|
+
return w === 33 ? (e.consume(w), u) : w === 47 ? (e.consume(w), b) : w === 63 ? (e.consume(w), m) : bt(w) ? (e.consume(w), L) : n(w);
|
|
5641
5641
|
}
|
|
5642
5642
|
function u(w) {
|
|
5643
5643
|
return w === 45 ? (e.consume(w), c) : w === 91 ? (e.consume(w), i = 0, y) : bt(w) ? (e.consume(w), E) : n(w);
|
|
@@ -5685,14 +5685,14 @@ function Kw(e, t, n) {
|
|
|
5685
5685
|
function k(w) {
|
|
5686
5686
|
return ae(w) ? (o = k, K(w)) : fe(w) ? (e.consume(w), k) : G(w);
|
|
5687
5687
|
}
|
|
5688
|
-
function
|
|
5689
|
-
return w === 45 || Je(w) ? (e.consume(w),
|
|
5688
|
+
function L(w) {
|
|
5689
|
+
return w === 45 || Je(w) ? (e.consume(w), L) : w === 47 || w === 62 || He(w) ? R(w) : n(w);
|
|
5690
5690
|
}
|
|
5691
5691
|
function R(w) {
|
|
5692
|
-
return w === 47 ? (e.consume(w), G) : w === 58 || w === 95 || bt(w) ? (e.consume(w),
|
|
5692
|
+
return w === 47 ? (e.consume(w), G) : w === 58 || w === 95 || bt(w) ? (e.consume(w), O) : ae(w) ? (o = R, K(w)) : fe(w) ? (e.consume(w), R) : G(w);
|
|
5693
5693
|
}
|
|
5694
|
-
function
|
|
5695
|
-
return w === 45 || w === 46 || w === 58 || w === 95 || Je(w) ? (e.consume(w),
|
|
5694
|
+
function O(w) {
|
|
5695
|
+
return w === 45 || w === 46 || w === 58 || w === 95 || Je(w) ? (e.consume(w), O) : I(w);
|
|
5696
5696
|
}
|
|
5697
5697
|
function I(w) {
|
|
5698
5698
|
return w === 61 ? (e.consume(w), M) : ae(w) ? (o = I, K(w)) : fe(w) ? (e.consume(w), I) : R(w);
|
|
@@ -6276,7 +6276,7 @@ function FC(e, t, n) {
|
|
|
6276
6276
|
let c = t.tokenize.call(u, l);
|
|
6277
6277
|
return t.resolveAll && i.push(t), u;
|
|
6278
6278
|
function d(I) {
|
|
6279
|
-
return o = rt(o, I), _(), o[o.length - 1] !== null ? [] : (
|
|
6279
|
+
return o = rt(o, I), _(), o[o.length - 1] !== null ? [] : (L(t, 0), u.events = Vu(i, u.events, u), u.events);
|
|
6280
6280
|
}
|
|
6281
6281
|
function f(I, M) {
|
|
6282
6282
|
return UC(p(I), M);
|
|
@@ -6301,7 +6301,7 @@ function FC(e, t, n) {
|
|
|
6301
6301
|
};
|
|
6302
6302
|
}
|
|
6303
6303
|
function S(I) {
|
|
6304
|
-
a[I.line] = I.column,
|
|
6304
|
+
a[I.line] = I.column, O();
|
|
6305
6305
|
}
|
|
6306
6306
|
function _() {
|
|
6307
6307
|
let I;
|
|
@@ -6318,7 +6318,7 @@ function FC(e, t, n) {
|
|
|
6318
6318
|
c = c(I);
|
|
6319
6319
|
}
|
|
6320
6320
|
function E(I) {
|
|
6321
|
-
ae(I) ? (r.line++, r.column = 1, r.offset += I === -3 ? 2 : 1,
|
|
6321
|
+
ae(I) ? (r.line++, r.column = 1, r.offset += I === -3 ? 2 : 1, O()) : I !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
6322
6322
|
// strings.
|
|
6323
6323
|
/** @type {string} */
|
|
6324
6324
|
o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = I;
|
|
@@ -6332,7 +6332,7 @@ function FC(e, t, n) {
|
|
|
6332
6332
|
return M.end = y(), u.events.push(["exit", M, u]), M;
|
|
6333
6333
|
}
|
|
6334
6334
|
function b(I, M) {
|
|
6335
|
-
|
|
6335
|
+
L(I, M.from);
|
|
6336
6336
|
}
|
|
6337
6337
|
function h(I, M) {
|
|
6338
6338
|
M.restore();
|
|
@@ -6388,7 +6388,7 @@ function FC(e, t, n) {
|
|
|
6388
6388
|
}
|
|
6389
6389
|
}
|
|
6390
6390
|
}
|
|
6391
|
-
function
|
|
6391
|
+
function L(I, M) {
|
|
6392
6392
|
I.resolveAll && !i.includes(I) && i.push(I), I.resolve && vt(u.events, M, u.events.length - M, I.resolve(u.events.slice(M), u)), I.resolveTo && (u.events = I.resolveTo(u.events, u));
|
|
6393
6393
|
}
|
|
6394
6394
|
function R() {
|
|
@@ -6398,10 +6398,10 @@ function FC(e, t, n) {
|
|
|
6398
6398
|
restore: G
|
|
6399
6399
|
};
|
|
6400
6400
|
function G() {
|
|
6401
|
-
r = I, u.previous = M, u.currentConstruct = U, u.events.length = q, s = $,
|
|
6401
|
+
r = I, u.previous = M, u.currentConstruct = U, u.events.length = q, s = $, O();
|
|
6402
6402
|
}
|
|
6403
6403
|
}
|
|
6404
|
-
function
|
|
6404
|
+
function O() {
|
|
6405
6405
|
r.line in a && r.column < 2 && (r.column = a[r.line], r.offset += a[r.line] - 1);
|
|
6406
6406
|
}
|
|
6407
6407
|
}
|
|
@@ -6593,7 +6593,7 @@ function VC(e) {
|
|
|
6593
6593
|
autolinkEmail: te,
|
|
6594
6594
|
autolinkProtocol: ee,
|
|
6595
6595
|
blockQuote: l(),
|
|
6596
|
-
characterEscapeValue:
|
|
6596
|
+
characterEscapeValue: O,
|
|
6597
6597
|
characterReferenceMarkerHexadecimal: Z,
|
|
6598
6598
|
characterReferenceMarkerNumeric: Z,
|
|
6599
6599
|
characterReferenceValue: Y,
|
|
@@ -6602,11 +6602,11 @@ function VC(e) {
|
|
|
6602
6602
|
codeFencedFence: S,
|
|
6603
6603
|
codeFencedFenceInfo: p,
|
|
6604
6604
|
codeFencedFenceMeta: y,
|
|
6605
|
-
codeFlowValue:
|
|
6605
|
+
codeFlowValue: O,
|
|
6606
6606
|
codeIndented: l(T),
|
|
6607
6607
|
codeText: l($),
|
|
6608
|
-
codeTextData:
|
|
6609
|
-
data:
|
|
6608
|
+
codeTextData: O,
|
|
6609
|
+
data: O,
|
|
6610
6610
|
definition: l(),
|
|
6611
6611
|
definitionDestinationString: x,
|
|
6612
6612
|
definitionLabelString: E,
|
|
@@ -6615,9 +6615,9 @@ function VC(e) {
|
|
|
6615
6615
|
hardBreakEscape: l(M),
|
|
6616
6616
|
hardBreakTrailing: l(M),
|
|
6617
6617
|
htmlFlow: l(U),
|
|
6618
|
-
htmlFlowData:
|
|
6618
|
+
htmlFlowData: O,
|
|
6619
6619
|
htmlText: l(q),
|
|
6620
|
-
htmlTextData:
|
|
6620
|
+
htmlTextData: O,
|
|
6621
6621
|
image: l(K),
|
|
6622
6622
|
label: X,
|
|
6623
6623
|
labelText: V,
|
|
@@ -6631,7 +6631,7 @@ function VC(e) {
|
|
|
6631
6631
|
resourceDestinationString: w,
|
|
6632
6632
|
resourceTitleString: N,
|
|
6633
6633
|
resource: P,
|
|
6634
|
-
setextHeading: l(
|
|
6634
|
+
setextHeading: l(L),
|
|
6635
6635
|
setextHeadingLineSequence: k,
|
|
6636
6636
|
setextHeadingText: h,
|
|
6637
6637
|
strong: l(),
|
|
@@ -6832,7 +6832,7 @@ function VC(e) {
|
|
|
6832
6832
|
const z = this.stack[this.stack.length - 1];
|
|
6833
6833
|
z.depth = this.sliceSerialize(F).codePointAt(0) === 61 ? 1 : 2;
|
|
6834
6834
|
}
|
|
6835
|
-
function
|
|
6835
|
+
function L() {
|
|
6836
6836
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
6837
6837
|
}
|
|
6838
6838
|
function R(F) {
|
|
@@ -6844,7 +6844,7 @@ function VC(e) {
|
|
|
6844
6844
|
end: void 0
|
|
6845
6845
|
}, re.push(ce)), this.stack.push(ce);
|
|
6846
6846
|
}
|
|
6847
|
-
function
|
|
6847
|
+
function O(F) {
|
|
6848
6848
|
const z = this.stack.pop();
|
|
6849
6849
|
z.value += this.sliceSerialize(F), z.position.end = Nt(F.end);
|
|
6850
6850
|
}
|
|
@@ -6855,7 +6855,7 @@ function VC(e) {
|
|
|
6855
6855
|
re.position.end = Nt(F.end), this.data.atHardBreak = void 0;
|
|
6856
6856
|
return;
|
|
6857
6857
|
}
|
|
6858
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(z.type) && (R.call(this, F),
|
|
6858
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(z.type) && (R.call(this, F), O.call(this, F));
|
|
6859
6859
|
}
|
|
6860
6860
|
function M() {
|
|
6861
6861
|
this.data.atHardBreak = !0;
|
|
@@ -6935,12 +6935,12 @@ function VC(e) {
|
|
|
6935
6935
|
z.position.end = Nt(F.end);
|
|
6936
6936
|
}
|
|
6937
6937
|
function ee(F) {
|
|
6938
|
-
|
|
6938
|
+
O.call(this, F);
|
|
6939
6939
|
const z = this.stack[this.stack.length - 1];
|
|
6940
6940
|
z.url = this.sliceSerialize(F);
|
|
6941
6941
|
}
|
|
6942
6942
|
function te(F) {
|
|
6943
|
-
|
|
6943
|
+
O.call(this, F);
|
|
6944
6944
|
const z = this.stack[this.stack.length - 1];
|
|
6945
6945
|
z.url = "mailto:" + this.sliceSerialize(F);
|
|
6946
6946
|
}
|
|
@@ -9600,14 +9600,14 @@ function jx(e, t, n, r, a, i, o, s, l) {
|
|
|
9600
9600
|
return t || k.length > 0 ? y(b, h, k) : S(b, h);
|
|
9601
9601
|
}
|
|
9602
9602
|
for (var T = function() {
|
|
9603
|
-
var h = c[p], k = h.children[0].value,
|
|
9604
|
-
if (
|
|
9603
|
+
var h = c[p], k = h.children[0].value, L = Px(k);
|
|
9604
|
+
if (L) {
|
|
9605
9605
|
var R = k.split(`
|
|
9606
9606
|
`);
|
|
9607
|
-
R.forEach(function(
|
|
9607
|
+
R.forEach(function(O, I) {
|
|
9608
9608
|
var M = r && d.length + i, U = {
|
|
9609
9609
|
type: "text",
|
|
9610
|
-
value: "".concat(
|
|
9610
|
+
value: "".concat(O, `
|
|
9611
9611
|
`)
|
|
9612
9612
|
};
|
|
9613
9613
|
if (I === 0) {
|
|
@@ -9619,7 +9619,7 @@ function jx(e, t, n, r, a, i, o, s, l) {
|
|
|
9619
9619
|
} else if (I === R.length - 1) {
|
|
9620
9620
|
var G = c[p + 1] && c[p + 1].children && c[p + 1].children[0], K = {
|
|
9621
9621
|
type: "text",
|
|
9622
|
-
value: "".concat(
|
|
9622
|
+
value: "".concat(O)
|
|
9623
9623
|
};
|
|
9624
9624
|
if (G) {
|
|
9625
9625
|
var V = pr({
|
|
@@ -9689,7 +9689,7 @@ function Gx(e, t) {
|
|
|
9689
9689
|
var a = r.language, i = r.children, o = r.style, s = o === void 0 ? t : o, l = r.customStyle, u = l === void 0 ? {} : l, c = r.codeTagProps, d = c === void 0 ? {
|
|
9690
9690
|
className: a ? "language-".concat(a) : void 0,
|
|
9691
9691
|
style: Ot(Ot({}, s['code[class*="language-"]']), s['code[class*="language-'.concat(a, '"]')])
|
|
9692
|
-
} : c, f = r.useInlineStyles, p = f === void 0 ? !0 : f, y = r.showLineNumbers, S = y === void 0 ? !1 : y, _ = r.showInlineLineNumbers, T = _ === void 0 ? !0 : _, E = r.startingLineNumber, m = E === void 0 ? 1 : E, x = r.lineNumberContainerStyle, b = r.lineNumberStyle, h = b === void 0 ? {} : b, k = r.wrapLines,
|
|
9692
|
+
} : c, f = r.useInlineStyles, p = f === void 0 ? !0 : f, y = r.showLineNumbers, S = y === void 0 ? !1 : y, _ = r.showInlineLineNumbers, T = _ === void 0 ? !0 : _, E = r.startingLineNumber, m = E === void 0 ? 1 : E, x = r.lineNumberContainerStyle, b = r.lineNumberStyle, h = b === void 0 ? {} : b, k = r.wrapLines, L = r.wrapLongLines, R = L === void 0 ? !1 : L, O = r.lineProps, I = O === void 0 ? {} : O, M = r.renderer, U = r.PreTag, q = U === void 0 ? "pre" : U, $ = r.CodeTag, G = $ === void 0 ? "code" : $, K = r.code, V = K === void 0 ? (Array.isArray(i) ? i[0] : i) || "" : K, X = r.astGenerator, w = Cx(r, Mx);
|
|
9693
9693
|
X = X || e;
|
|
9694
9694
|
var N = S ? /* @__PURE__ */ Te.createElement(Bx, {
|
|
9695
9695
|
containerStyle: x,
|
|
@@ -10585,8 +10585,8 @@ function UR(e, t) {
|
|
|
10585
10585
|
return (n.position.indent || n.position.start) && (n.indent = n.position.indent || [], n.position = n.position.start), BR(e, n);
|
|
10586
10586
|
}
|
|
10587
10587
|
function BR(e, t) {
|
|
10588
|
-
var n = t.additional, r = t.nonTerminated, a = t.text, i = t.reference, o = t.warning, s = t.textContext, l = t.referenceContext, u = t.warningContext, c = t.position, d = t.indent || [], f = e.length, p = 0, y = -1, S = c.column || 1, _ = c.line || 1, T = "", E = [], m, x, b, h, k,
|
|
10589
|
-
for (typeof n == "string" && (n = n.charCodeAt(0)), V = P(),
|
|
10588
|
+
var n = t.additional, r = t.nonTerminated, a = t.text, i = t.reference, o = t.warning, s = t.textContext, l = t.referenceContext, u = t.warningContext, c = t.position, d = t.indent || [], f = e.length, p = 0, y = -1, S = c.column || 1, _ = c.line || 1, T = "", E = [], m, x, b, h, k, L, R, O, I, M, U, q, $, G, K, V, X, w, N;
|
|
10589
|
+
for (typeof n == "string" && (n = n.charCodeAt(0)), V = P(), O = o ? C : AR, p--, f++; ++p < f; )
|
|
10590
10590
|
if (k === ep && (S = d[y] || 1), k = e.charCodeAt(p), k === tp) {
|
|
10591
10591
|
if (R = e.charCodeAt(p + 1), R === RR || R === ep || R === kR || R === IR || R === tp || R === OR || R !== R || n && R === n) {
|
|
10592
10592
|
T += ln(k), S++;
|
|
@@ -10594,9 +10594,9 @@ function BR(e, t) {
|
|
|
10594
10594
|
}
|
|
10595
10595
|
for ($ = p + 1, q = $, N = $, R === DR ? (N = ++q, R = e.charCodeAt(N), R === MR || R === FR ? (G = oc, N = ++q) : G = sc) : G = cn, m = "", U = "", h = "", K = xr[G], N--; ++N < f && (R = e.charCodeAt(N), !!K(R)); )
|
|
10596
10596
|
h += ln(R), G === cn && _R.call(Xd, h) && (m = h, U = Xd[h]);
|
|
10597
|
-
b = e.charCodeAt(N) === NR, b && (N++, x = G === cn ? TR(h) : !1, x && (m = h, U = x)), w = 1 + N - $, !b && !r || (h ? G === cn ? (b && !U ?
|
|
10597
|
+
b = e.charCodeAt(N) === NR, b && (N++, x = G === cn ? TR(h) : !1, x && (m = h, U = x)), w = 1 + N - $, !b && !r || (h ? G === cn ? (b && !U ? O(mE, 1) : (m !== h && (N = q + m.length, w = 1 + N - q, b = !1), b || (I = m ? dE : fE, t.attribute ? (R = e.charCodeAt(N), R === LR ? (O(I, w), U = null) : cE(R) ? U = null : O(I, w)) : O(I, w))), L = U) : (b || O(pE, w), L = parseInt(h, lc[G]), $R(L) ? (O(hE, w), L = ln(PR)) : L in Jd ? (O(Au, w), L = Jd[L]) : (M = "", jR(L) && O(Au, w), L > 65535 && (L -= 65536, M += ln(L >>> 10 | 55296), L = 56320 | L & 1023), L = M + ln(L))) : G !== cn && O(gE, w)), L ? (W(), V = P(), p = N - 1, S += N - $ + 1, E.push(L), X = P(), X.offset++, i && i.call(
|
|
10598
10598
|
l,
|
|
10599
|
-
|
|
10599
|
+
L,
|
|
10600
10600
|
{ start: V, end: X },
|
|
10601
10601
|
e.slice($ - 1, N)
|
|
10602
10602
|
), V = X) : (h = e.slice($ - 1, N), T += h, S += h.length, p = N - 1);
|
|
@@ -10750,8 +10750,8 @@ var bE = { exports: {} };
|
|
|
10750
10750
|
case "Array":
|
|
10751
10751
|
return h = s.util.objId(m), x[h] ? x[h] : (b = [], x[h] = b, /** @type {Array} */
|
|
10752
10752
|
/** @type {any} */
|
|
10753
|
-
m.forEach(function(
|
|
10754
|
-
b[R] = E(
|
|
10753
|
+
m.forEach(function(L, R) {
|
|
10754
|
+
b[R] = E(L, x);
|
|
10755
10755
|
}), /** @type {any} */
|
|
10756
10756
|
b);
|
|
10757
10757
|
default:
|
|
@@ -10972,27 +10972,27 @@ var bE = { exports: {} };
|
|
|
10972
10972
|
b = b || /** @type {any} */
|
|
10973
10973
|
s.languages;
|
|
10974
10974
|
var h = b[E], k = {};
|
|
10975
|
-
for (var
|
|
10976
|
-
if (h.hasOwnProperty(
|
|
10977
|
-
if (
|
|
10975
|
+
for (var L in h)
|
|
10976
|
+
if (h.hasOwnProperty(L)) {
|
|
10977
|
+
if (L == m)
|
|
10978
10978
|
for (var R in x)
|
|
10979
10979
|
x.hasOwnProperty(R) && (k[R] = x[R]);
|
|
10980
|
-
x.hasOwnProperty(
|
|
10980
|
+
x.hasOwnProperty(L) || (k[L] = h[L]);
|
|
10981
10981
|
}
|
|
10982
|
-
var
|
|
10982
|
+
var O = b[E];
|
|
10983
10983
|
return b[E] = k, s.languages.DFS(s.languages, function(I, M) {
|
|
10984
|
-
M ===
|
|
10984
|
+
M === O && I != E && (this[I] = k);
|
|
10985
10985
|
}), k;
|
|
10986
10986
|
},
|
|
10987
10987
|
// Traverse a language definition with Depth First Search
|
|
10988
10988
|
DFS: function E(m, x, b, h) {
|
|
10989
10989
|
h = h || {};
|
|
10990
10990
|
var k = s.util.objId;
|
|
10991
|
-
for (var
|
|
10992
|
-
if (m.hasOwnProperty(
|
|
10993
|
-
x.call(m,
|
|
10994
|
-
var R = m[
|
|
10995
|
-
|
|
10991
|
+
for (var L in m)
|
|
10992
|
+
if (m.hasOwnProperty(L)) {
|
|
10993
|
+
x.call(m, L, m[L], b || L);
|
|
10994
|
+
var R = m[L], O = s.util.type(R);
|
|
10995
|
+
O === "Object" && !h[k(R)] ? (h[k(R)] = !0, E(R, x, null, h)) : O === "Array" && !h[k(R)] && (h[k(R)] = !0, E(R, x, L, h));
|
|
10996
10996
|
}
|
|
10997
10997
|
}
|
|
10998
10998
|
},
|
|
@@ -11070,13 +11070,13 @@ var bE = { exports: {} };
|
|
|
11070
11070
|
s.util.setLanguage(E, b);
|
|
11071
11071
|
var k = E.parentElement;
|
|
11072
11072
|
k && k.nodeName.toLowerCase() === "pre" && s.util.setLanguage(k, b);
|
|
11073
|
-
var
|
|
11073
|
+
var L = E.textContent, R = {
|
|
11074
11074
|
element: E,
|
|
11075
11075
|
language: b,
|
|
11076
11076
|
grammar: h,
|
|
11077
|
-
code:
|
|
11077
|
+
code: L
|
|
11078
11078
|
};
|
|
11079
|
-
function
|
|
11079
|
+
function O(M) {
|
|
11080
11080
|
R.highlightedCode = M, s.hooks.run("before-insert", R), R.element.innerHTML = R.highlightedCode, s.hooks.run("after-highlight", R), s.hooks.run("complete", R), x && x.call(R.element);
|
|
11081
11081
|
}
|
|
11082
11082
|
if (s.hooks.run("before-sanity-check", R), k = R.element.parentElement, k && k.nodeName.toLowerCase() === "pre" && !k.hasAttribute("tabindex") && k.setAttribute("tabindex", "0"), !R.code) {
|
|
@@ -11084,20 +11084,20 @@ var bE = { exports: {} };
|
|
|
11084
11084
|
return;
|
|
11085
11085
|
}
|
|
11086
11086
|
if (s.hooks.run("before-highlight", R), !R.grammar) {
|
|
11087
|
-
|
|
11087
|
+
O(s.util.encode(R.code));
|
|
11088
11088
|
return;
|
|
11089
11089
|
}
|
|
11090
11090
|
if (m && r.Worker) {
|
|
11091
11091
|
var I = new Worker(s.filename);
|
|
11092
11092
|
I.onmessage = function(M) {
|
|
11093
|
-
|
|
11093
|
+
O(M.data);
|
|
11094
11094
|
}, I.postMessage(JSON.stringify({
|
|
11095
11095
|
language: R.language,
|
|
11096
11096
|
code: R.code,
|
|
11097
11097
|
immediateClose: !0
|
|
11098
11098
|
}));
|
|
11099
11099
|
} else
|
|
11100
|
-
|
|
11100
|
+
O(s.highlight(R.code, R.grammar, R.language));
|
|
11101
11101
|
},
|
|
11102
11102
|
/**
|
|
11103
11103
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -11213,8 +11213,8 @@ var bE = { exports: {} };
|
|
|
11213
11213
|
return m;
|
|
11214
11214
|
if (Array.isArray(m)) {
|
|
11215
11215
|
var b = "";
|
|
11216
|
-
return m.forEach(function(
|
|
11217
|
-
b += E(
|
|
11216
|
+
return m.forEach(function(O) {
|
|
11217
|
+
b += E(O, x);
|
|
11218
11218
|
}), b;
|
|
11219
11219
|
}
|
|
11220
11220
|
var h = {
|
|
@@ -11226,10 +11226,10 @@ var bE = { exports: {} };
|
|
|
11226
11226
|
language: x
|
|
11227
11227
|
}, k = m.alias;
|
|
11228
11228
|
k && (Array.isArray(k) ? Array.prototype.push.apply(h.classes, k) : h.classes.push(k)), s.hooks.run("wrap", h);
|
|
11229
|
-
var
|
|
11229
|
+
var L = "";
|
|
11230
11230
|
for (var R in h.attributes)
|
|
11231
|
-
|
|
11232
|
-
return "<" + h.tag + ' class="' + h.classes.join(" ") + '"' +
|
|
11231
|
+
L += " " + R + '="' + (h.attributes[R] || "").replace(/"/g, """) + '"';
|
|
11232
|
+
return "<" + h.tag + ' class="' + h.classes.join(" ") + '"' + L + ">" + h.content + "</" + h.tag + ">";
|
|
11233
11233
|
};
|
|
11234
11234
|
function u(E, m, x, b) {
|
|
11235
11235
|
E.lastIndex = m;
|
|
@@ -11241,14 +11241,14 @@ var bE = { exports: {} };
|
|
|
11241
11241
|
return h;
|
|
11242
11242
|
}
|
|
11243
11243
|
function c(E, m, x, b, h, k) {
|
|
11244
|
-
for (var
|
|
11245
|
-
if (!(!x.hasOwnProperty(
|
|
11246
|
-
var R = x[
|
|
11244
|
+
for (var L in x)
|
|
11245
|
+
if (!(!x.hasOwnProperty(L) || !x[L])) {
|
|
11246
|
+
var R = x[L];
|
|
11247
11247
|
R = Array.isArray(R) ? R : [R];
|
|
11248
|
-
for (var
|
|
11249
|
-
if (k && k.cause ==
|
|
11248
|
+
for (var O = 0; O < R.length; ++O) {
|
|
11249
|
+
if (k && k.cause == L + "," + O)
|
|
11250
11250
|
return;
|
|
11251
|
-
var I = R[
|
|
11251
|
+
var I = R[O], M = I.inside, U = !!I.lookbehind, q = !!I.greedy, $ = I.alias;
|
|
11252
11252
|
if (q && !I.pattern.global) {
|
|
11253
11253
|
var G = I.pattern.toString().match(/[imsuy]*$/)[0];
|
|
11254
11254
|
I.pattern = RegExp(I.pattern.source, G + "g");
|
|
@@ -11276,10 +11276,10 @@ var bE = { exports: {} };
|
|
|
11276
11276
|
k && ie > k.reach && (k.reach = ie);
|
|
11277
11277
|
var ne = V.prev;
|
|
11278
11278
|
ee && (ne = f(m, ne, ee), X += ee.length), p(m, ne, N);
|
|
11279
|
-
var _e = new l(
|
|
11279
|
+
var _e = new l(L, M ? s.tokenize(Q, M) : Q, $, Q);
|
|
11280
11280
|
if (V = f(m, ne, _e), te && f(m, V, te), N > 1) {
|
|
11281
11281
|
var H = {
|
|
11282
|
-
cause:
|
|
11282
|
+
cause: L + "," + O,
|
|
11283
11283
|
reach: ie
|
|
11284
11284
|
};
|
|
11285
11285
|
c(E, m, x, V.prev, X, H), k && H.reach > k.reach && (k.reach = H.reach);
|
|
@@ -13192,7 +13192,7 @@ function _r() {
|
|
|
13192
13192
|
), h = {
|
|
13193
13193
|
keyword: u,
|
|
13194
13194
|
punctuation: /[<>()?,.:[\]]/
|
|
13195
|
-
}, k = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,
|
|
13195
|
+
}, k = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, L = /"(?:\\.|[^\\"\r\n])*"/.source, R = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
13196
13196
|
n.languages.csharp = n.languages.extend("clike", {
|
|
13197
13197
|
string: [
|
|
13198
13198
|
{
|
|
@@ -13201,7 +13201,7 @@ function _r() {
|
|
|
13201
13201
|
greedy: !0
|
|
13202
13202
|
},
|
|
13203
13203
|
{
|
|
13204
|
-
pattern: a(/(^|[^@$\\])<<0>>/.source, [
|
|
13204
|
+
pattern: a(/(^|[^@$\\])<<0>>/.source, [L]),
|
|
13205
13205
|
lookbehind: !0,
|
|
13206
13206
|
greedy: !0
|
|
13207
13207
|
}
|
|
@@ -13402,9 +13402,9 @@ function _r() {
|
|
|
13402
13402
|
}
|
|
13403
13403
|
}
|
|
13404
13404
|
});
|
|
13405
|
-
var
|
|
13405
|
+
var O = L + "|" + k, I = r(
|
|
13406
13406
|
/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,
|
|
13407
|
-
[
|
|
13407
|
+
[O]
|
|
13408
13408
|
), M = i(
|
|
13409
13409
|
r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
|
|
13410
13410
|
I
|
|
@@ -13454,7 +13454,7 @@ function _r() {
|
|
|
13454
13454
|
]), V = i(
|
|
13455
13455
|
r(
|
|
13456
13456
|
/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,
|
|
13457
|
-
[
|
|
13457
|
+
[O]
|
|
13458
13458
|
),
|
|
13459
13459
|
2
|
|
13460
13460
|
), X = r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
@@ -20641,18 +20641,18 @@ function mN() {
|
|
|
20641
20641
|
}), m = 0, x = {}, b = E.map(function(R) {
|
|
20642
20642
|
if (typeof R == "string")
|
|
20643
20643
|
return R;
|
|
20644
|
-
for (var
|
|
20644
|
+
for (var O = R.content, I; S.indexOf(
|
|
20645
20645
|
I = u(m++, T)
|
|
20646
20646
|
) !== -1; )
|
|
20647
20647
|
;
|
|
20648
|
-
return x[I] =
|
|
20648
|
+
return x[I] = O, I;
|
|
20649
20649
|
}).join(""), h = c(b, _, T), k = Object.keys(x);
|
|
20650
20650
|
m = 0;
|
|
20651
|
-
function
|
|
20652
|
-
for (var
|
|
20651
|
+
function L(R) {
|
|
20652
|
+
for (var O = 0; O < R.length; O++) {
|
|
20653
20653
|
if (m >= k.length)
|
|
20654
20654
|
return;
|
|
20655
|
-
var I = R[
|
|
20655
|
+
var I = R[O];
|
|
20656
20656
|
if (typeof I == "string" || typeof I.content == "string") {
|
|
20657
20657
|
var M = k[m], U = typeof I == "string" ? I : (
|
|
20658
20658
|
/** @type {string} */
|
|
@@ -20665,17 +20665,17 @@ function mN() {
|
|
|
20665
20665
|
), K = U.substring(q + M.length), V = [];
|
|
20666
20666
|
if ($ && V.push($), V.push(G), K) {
|
|
20667
20667
|
var X = [K];
|
|
20668
|
-
|
|
20668
|
+
L(X), V.push.apply(V, X);
|
|
20669
20669
|
}
|
|
20670
|
-
typeof I == "string" ? (R.splice.apply(R, [
|
|
20670
|
+
typeof I == "string" ? (R.splice.apply(R, [O, 1].concat(V)), O += V.length - 1) : I.content = V;
|
|
20671
20671
|
}
|
|
20672
20672
|
} else {
|
|
20673
20673
|
var w = I.content;
|
|
20674
|
-
Array.isArray(w) ?
|
|
20674
|
+
Array.isArray(w) ? L(w) : L([w]);
|
|
20675
20675
|
}
|
|
20676
20676
|
}
|
|
20677
20677
|
}
|
|
20678
|
-
return
|
|
20678
|
+
return L(h), new n.Token(
|
|
20679
20679
|
T,
|
|
20680
20680
|
h,
|
|
20681
20681
|
"language-" + T,
|
|
@@ -20705,10 +20705,10 @@ function mN() {
|
|
|
20705
20705
|
if (x.type === "template-string") {
|
|
20706
20706
|
var h = b[1];
|
|
20707
20707
|
if (b.length === 3 && typeof h != "string" && h.type === "embedded-code") {
|
|
20708
|
-
var k = y(h),
|
|
20709
|
-
if (!
|
|
20708
|
+
var k = y(h), L = h.alias, R = Array.isArray(L) ? L[0] : L, O = n.languages[R];
|
|
20709
|
+
if (!O)
|
|
20710
20710
|
continue;
|
|
20711
|
-
b[1] = f(k,
|
|
20711
|
+
b[1] = f(k, O, R);
|
|
20712
20712
|
}
|
|
20713
20713
|
} else
|
|
20714
20714
|
_(b);
|
|
@@ -31786,28 +31786,28 @@ const a4 = D.div`
|
|
|
31786
31786
|
e.id === (p == null ? void 0 : p.id) && e.content.length > 1 && u && d(!1);
|
|
31787
31787
|
}, [e.content, p, u, e.id]);
|
|
31788
31788
|
const S = g4(e.content);
|
|
31789
|
-
return /* @__PURE__ */ g.jsx(
|
|
31790
|
-
|
|
31789
|
+
return /* @__PURE__ */ g.jsx(
|
|
31790
|
+
t4,
|
|
31791
31791
|
{
|
|
31792
|
-
role: "
|
|
31793
|
-
"aria-
|
|
31794
|
-
"
|
|
31795
|
-
|
|
31796
|
-
}
|
|
31797
|
-
) : /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsxs("div", { "aria-live": "off", children: [
|
|
31798
|
-
S.map(
|
|
31799
|
-
(_, T) => _.type === "code" ? /* @__PURE__ */ g.jsx(
|
|
31800
|
-
h4,
|
|
31801
|
-
{
|
|
31802
|
-
code: m4(_.content)
|
|
31803
|
-
},
|
|
31804
|
-
Hy()
|
|
31805
|
-
) : /* @__PURE__ */ g.jsx(
|
|
31806
|
-
r4,
|
|
31792
|
+
role: "article",
|
|
31793
|
+
"aria-label": `${f("text.bot_message")}: ${e.content}`,
|
|
31794
|
+
children: /* @__PURE__ */ g.jsx(n4, { children: /* @__PURE__ */ g.jsx("div", { style: { width: "100%" }, children: e.content === "__CUSTOM_SUPPORT_MESSAGE__" ? /* @__PURE__ */ g.jsx(QO, {}) : y ? /* @__PURE__ */ g.jsx(
|
|
31795
|
+
"div",
|
|
31807
31796
|
{
|
|
31808
|
-
role: "
|
|
31809
|
-
"aria-
|
|
31810
|
-
|
|
31797
|
+
role: "status",
|
|
31798
|
+
"aria-live": "polite",
|
|
31799
|
+
"aria-label": f("text.bot_typing"),
|
|
31800
|
+
children: f("text.bot_typing")
|
|
31801
|
+
}
|
|
31802
|
+
) : /* @__PURE__ */ g.jsx(g.Fragment, { children: /* @__PURE__ */ g.jsxs("div", { children: [
|
|
31803
|
+
S.map(
|
|
31804
|
+
(_, T) => _.type === "code" ? /* @__PURE__ */ g.jsx(
|
|
31805
|
+
h4,
|
|
31806
|
+
{
|
|
31807
|
+
code: m4(_.content)
|
|
31808
|
+
},
|
|
31809
|
+
Hy()
|
|
31810
|
+
) : /* @__PURE__ */ g.jsx(r4, { children: /* @__PURE__ */ g.jsx(
|
|
31811
31811
|
fx,
|
|
31812
31812
|
{
|
|
31813
31813
|
components: {
|
|
@@ -31821,24 +31821,23 @@ const a4 = D.div`
|
|
|
31821
31821
|
},
|
|
31822
31822
|
children: _.content
|
|
31823
31823
|
}
|
|
31824
|
-
)
|
|
31825
|
-
|
|
31826
|
-
|
|
31827
|
-
|
|
31828
|
-
|
|
31829
|
-
|
|
31830
|
-
|
|
31831
|
-
|
|
31832
|
-
|
|
31833
|
-
|
|
31834
|
-
|
|
31835
|
-
|
|
31836
|
-
|
|
31837
|
-
|
|
31838
|
-
|
|
31839
|
-
|
|
31840
|
-
|
|
31841
|
-
] }) }) }) }) });
|
|
31824
|
+
) }, T)
|
|
31825
|
+
),
|
|
31826
|
+
e.created_at && /* @__PURE__ */ g.jsx(
|
|
31827
|
+
"div",
|
|
31828
|
+
{
|
|
31829
|
+
style: {
|
|
31830
|
+
fontSize: "12px",
|
|
31831
|
+
color: "#363D47",
|
|
31832
|
+
marginTop: "5px"
|
|
31833
|
+
},
|
|
31834
|
+
"aria-hidden": "true",
|
|
31835
|
+
children: ly(e.created_at)
|
|
31836
|
+
}
|
|
31837
|
+
)
|
|
31838
|
+
] }) }) }) })
|
|
31839
|
+
}
|
|
31840
|
+
);
|
|
31842
31841
|
}, y4 = {
|
|
31843
31842
|
login: "Iniciar Sesión",
|
|
31844
31843
|
error: "Error",
|
|
@@ -32517,35 +32516,28 @@ const bL = (e) => {
|
|
|
32517
32516
|
n && /* @__PURE__ */ g.jsx(SL, { "aria-hidden": "true", children: bL(s.created_at) }),
|
|
32518
32517
|
l.length === 0 ? /* @__PURE__ */ g.jsx(wL, { role: "status", children: o("text.welcome_text") }) : l.map((x, b) => {
|
|
32519
32518
|
console.log("Renderizando mensaje:", x);
|
|
32520
|
-
const h = d === x.id,
|
|
32521
|
-
return /* @__PURE__ */ g.jsx(
|
|
32522
|
-
|
|
32519
|
+
const h = d === x.id, k = b === l.length - 1;
|
|
32520
|
+
return console.log("isLastMessage: ", k), k && (x.sender_type === "ai" && !c || x.sender_type), /* @__PURE__ */ g.jsx("div", { "aria-live": "polite", children: x.sender_type === "user" ? /* @__PURE__ */ g.jsx(
|
|
32521
|
+
N1,
|
|
32523
32522
|
{
|
|
32524
|
-
|
|
32525
|
-
|
|
32526
|
-
|
|
32527
|
-
|
|
32528
|
-
|
|
32529
|
-
|
|
32530
|
-
|
|
32531
|
-
|
|
32532
|
-
|
|
32533
|
-
|
|
32534
|
-
|
|
32535
|
-
|
|
32536
|
-
|
|
32537
|
-
|
|
32538
|
-
|
|
32539
|
-
|
|
32540
|
-
|
|
32541
|
-
|
|
32542
|
-
onFeedback: m,
|
|
32543
|
-
isStreaming: c
|
|
32544
|
-
}
|
|
32545
|
-
)
|
|
32546
|
-
},
|
|
32547
|
-
x.id
|
|
32548
|
-
);
|
|
32523
|
+
showeditIcon: i,
|
|
32524
|
+
message: x,
|
|
32525
|
+
showControlButtons: e
|
|
32526
|
+
}
|
|
32527
|
+
) : /* @__PURE__ */ g.jsx(
|
|
32528
|
+
b4,
|
|
32529
|
+
{
|
|
32530
|
+
showPlexo: r,
|
|
32531
|
+
showFeedbackButtons: a,
|
|
32532
|
+
message: x,
|
|
32533
|
+
isReading: h,
|
|
32534
|
+
onReadAloud: T,
|
|
32535
|
+
onStopReading: E,
|
|
32536
|
+
showControlButtons: e,
|
|
32537
|
+
onFeedback: m,
|
|
32538
|
+
isStreaming: c
|
|
32539
|
+
}
|
|
32540
|
+
) }, x.id);
|
|
32549
32541
|
}),
|
|
32550
32542
|
/* @__PURE__ */ g.jsx("div", { ref: S, "aria-hidden": "true" })
|
|
32551
32543
|
]
|
|
@@ -32807,7 +32799,7 @@ function FL() {
|
|
|
32807
32799
|
}
|
|
32808
32800
|
}
|
|
32809
32801
|
}
|
|
32810
|
-
var h = u, k = c,
|
|
32802
|
+
var h = u, k = c, L = l, R = s, O = n, I = d, M = a, U = S, q = y, $ = r, G = o, K = i, V = f, X = !1;
|
|
32811
32803
|
function w(H) {
|
|
32812
32804
|
return X || (X = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), N(H) || b(H) === u;
|
|
32813
32805
|
}
|
|
@@ -32847,7 +32839,7 @@ function FL() {
|
|
|
32847
32839
|
function _e(H) {
|
|
32848
32840
|
return b(H) === f;
|
|
32849
32841
|
}
|
|
32850
|
-
ye.AsyncMode = h, ye.ConcurrentMode = k, ye.ContextConsumer =
|
|
32842
|
+
ye.AsyncMode = h, ye.ConcurrentMode = k, ye.ContextConsumer = L, ye.ContextProvider = R, ye.Element = O, ye.ForwardRef = I, ye.Fragment = M, ye.Lazy = U, ye.Memo = q, ye.Portal = $, ye.Profiler = G, ye.StrictMode = K, ye.Suspense = V, ye.isAsyncMode = w, ye.isConcurrentMode = N, ye.isContextConsumer = P, ye.isContextProvider = C, ye.isElement = W, ye.isForwardRef = Z, ye.isFragment = Y, ye.isLazy = Q, ye.isMemo = ee, ye.isPortal = te, ye.isProfiler = ie, ye.isStrictMode = ne, ye.isSuspense = _e, ye.isValidElementType = x, ye.typeOf = b;
|
|
32851
32843
|
}(), ye;
|
|
32852
32844
|
}
|
|
32853
32845
|
var cb;
|
|
@@ -33008,8 +33000,8 @@ function BL() {
|
|
|
33008
33000
|
instanceOf: k,
|
|
33009
33001
|
node: I(),
|
|
33010
33002
|
objectOf: R,
|
|
33011
|
-
oneOf:
|
|
33012
|
-
oneOfType:
|
|
33003
|
+
oneOf: L,
|
|
33004
|
+
oneOfType: O,
|
|
33013
33005
|
shape: U,
|
|
33014
33006
|
exact: q
|
|
33015
33007
|
};
|
|
@@ -33110,7 +33102,7 @@ function BL() {
|
|
|
33110
33102
|
}
|
|
33111
33103
|
return T(P);
|
|
33112
33104
|
}
|
|
33113
|
-
function
|
|
33105
|
+
function L(N) {
|
|
33114
33106
|
if (!Array.isArray(N))
|
|
33115
33107
|
return e.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
33116
33108
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -33144,7 +33136,7 @@ function BL() {
|
|
|
33144
33136
|
}
|
|
33145
33137
|
return T(P);
|
|
33146
33138
|
}
|
|
33147
|
-
function
|
|
33139
|
+
function O(N) {
|
|
33148
33140
|
if (!Array.isArray(N))
|
|
33149
33141
|
return e.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
33150
33142
|
for (var P = 0; P < N.length; P++) {
|
|
@@ -34195,8 +34187,8 @@ var k3 = function(t, n) {
|
|
|
34195
34187
|
function I3(e) {
|
|
34196
34188
|
var t, n = e.state, r = e.name, a = e.options, i = n.elements.arrow, o = n.modifiersData.popperOffsets, s = yt(n.placement), l = Rc(s), u = [We, st].indexOf(s) >= 0, c = u ? "height" : "width";
|
|
34197
34189
|
if (!(!i || !o)) {
|
|
34198
|
-
var d = k3(a.padding, n), f = Ac(i), p = l === "y" ? Ve : We, y = l === "y" ? ot : st, S = n.rects.reference[c] + n.rects.reference[l] - o[l] - n.rects.popper[c], _ = o[l] - n.rects.reference[l], T = Xn(i), E = T ? l === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, m = S / 2 - _ / 2, x = d[p], b = E - f[c] - d[y], h = E / 2 - f[c] / 2 + m, k = Un(x, h, b),
|
|
34199
|
-
n.modifiersData[r] = (t = {}, t[
|
|
34190
|
+
var d = k3(a.padding, n), f = Ac(i), p = l === "y" ? Ve : We, y = l === "y" ? ot : st, S = n.rects.reference[c] + n.rects.reference[l] - o[l] - n.rects.popper[c], _ = o[l] - n.rects.reference[l], T = Xn(i), E = T ? l === "y" ? T.clientHeight || 0 : T.clientWidth || 0 : 0, m = S / 2 - _ / 2, x = d[p], b = E - f[c] - d[y], h = E / 2 - f[c] / 2 + m, k = Un(x, h, b), L = l;
|
|
34191
|
+
n.modifiersData[r] = (t = {}, t[L] = k, t.centerOffset = k - h, t);
|
|
34200
34192
|
}
|
|
34201
34193
|
}
|
|
34202
34194
|
function N3(e) {
|
|
@@ -34239,8 +34231,8 @@ function Tb(e) {
|
|
|
34239
34231
|
p = _.x, S = _.y;
|
|
34240
34232
|
var T = o.hasOwnProperty("x"), E = o.hasOwnProperty("y"), m = We, x = Ve, b = window;
|
|
34241
34233
|
if (u) {
|
|
34242
|
-
var h = Xn(n), k = "clientHeight",
|
|
34243
|
-
if (h === Qe(n) && (h = Ut(n), At(h).position !== "static" && s === "absolute" && (k = "scrollHeight",
|
|
34234
|
+
var h = Xn(n), k = "clientHeight", L = "clientWidth";
|
|
34235
|
+
if (h === Qe(n) && (h = Ut(n), At(h).position !== "static" && s === "absolute" && (k = "scrollHeight", L = "scrollWidth")), h = h, a === Ve || (a === We || a === st) && i === qn) {
|
|
34244
34236
|
x = ot;
|
|
34245
34237
|
var R = d && h === b && b.visualViewport ? b.visualViewport.height : (
|
|
34246
34238
|
// $FlowFixMe[prop-missing]
|
|
@@ -34250,11 +34242,11 @@ function Tb(e) {
|
|
|
34250
34242
|
}
|
|
34251
34243
|
if (a === We || (a === Ve || a === ot) && i === qn) {
|
|
34252
34244
|
m = st;
|
|
34253
|
-
var
|
|
34245
|
+
var O = d && h === b && b.visualViewport ? b.visualViewport.width : (
|
|
34254
34246
|
// $FlowFixMe[prop-missing]
|
|
34255
|
-
h[
|
|
34247
|
+
h[L]
|
|
34256
34248
|
);
|
|
34257
|
-
p -=
|
|
34249
|
+
p -= O - r.width, p *= l ? 1 : -1;
|
|
34258
34250
|
}
|
|
34259
34251
|
}
|
|
34260
34252
|
var I = Object.assign({
|
|
@@ -34474,7 +34466,7 @@ function zn(e, t) {
|
|
|
34474
34466
|
reference: h,
|
|
34475
34467
|
element: m,
|
|
34476
34468
|
placement: a
|
|
34477
|
-
}),
|
|
34469
|
+
}), L = Du(Object.assign({}, m, k)), R = f === In ? L : h, O = {
|
|
34478
34470
|
top: b.top - R.top + T.top,
|
|
34479
34471
|
bottom: R.bottom - b.bottom + T.bottom,
|
|
34480
34472
|
left: b.left - R.left + T.left,
|
|
@@ -34482,12 +34474,12 @@ function zn(e, t) {
|
|
|
34482
34474
|
}, I = e.modifiersData.offset;
|
|
34483
34475
|
if (f === In && I) {
|
|
34484
34476
|
var M = I[a];
|
|
34485
|
-
Object.keys(
|
|
34477
|
+
Object.keys(O).forEach(function(U) {
|
|
34486
34478
|
var q = [st, ot].indexOf(U) >= 0 ? 1 : -1, $ = [Ve, ot].indexOf(U) >= 0 ? "y" : "x";
|
|
34487
|
-
|
|
34479
|
+
O[U] += M[$] * q;
|
|
34488
34480
|
});
|
|
34489
34481
|
}
|
|
34490
|
-
return
|
|
34482
|
+
return O;
|
|
34491
34483
|
}
|
|
34492
34484
|
function V3(e, t) {
|
|
34493
34485
|
t === void 0 && (t = {});
|
|
@@ -34527,8 +34519,8 @@ function Y3(e) {
|
|
|
34527
34519
|
flipVariations: y,
|
|
34528
34520
|
allowedAutoPlacements: S
|
|
34529
34521
|
}) : Z);
|
|
34530
|
-
}, []), b = t.rects.reference, h = t.rects.popper, k = /* @__PURE__ */ new Map(),
|
|
34531
|
-
var I = x[
|
|
34522
|
+
}, []), b = t.rects.reference, h = t.rects.popper, k = /* @__PURE__ */ new Map(), L = !0, R = x[0], O = 0; O < x.length; O++) {
|
|
34523
|
+
var I = x[O], M = yt(I), U = En(I) === hn, q = [Ve, ot].indexOf(M) >= 0, $ = q ? "width" : "height", G = zn(t, {
|
|
34532
34524
|
placement: I,
|
|
34533
34525
|
boundary: c,
|
|
34534
34526
|
rootBoundary: d,
|
|
@@ -34540,12 +34532,12 @@ function Y3(e) {
|
|
|
34540
34532
|
if (i && X.push(G[M] <= 0), s && X.push(G[K] <= 0, G[V] <= 0), X.every(function(W) {
|
|
34541
34533
|
return W;
|
|
34542
34534
|
})) {
|
|
34543
|
-
R = I,
|
|
34535
|
+
R = I, L = !1;
|
|
34544
34536
|
break;
|
|
34545
34537
|
}
|
|
34546
34538
|
k.set(I, X);
|
|
34547
34539
|
}
|
|
34548
|
-
if (
|
|
34540
|
+
if (L)
|
|
34549
34541
|
for (var w = y ? 3 : 1, N = function(Z) {
|
|
34550
34542
|
var Y = x.find(function(Q) {
|
|
34551
34543
|
var ee = k.get(Q);
|
|
@@ -34661,9 +34653,9 @@ function a6(e) {
|
|
|
34661
34653
|
rootBoundary: u,
|
|
34662
34654
|
padding: d,
|
|
34663
34655
|
altBoundary: c
|
|
34664
|
-
}), T = yt(t.placement), E = En(t.placement), m = !E, x = Rc(T), b = r6(x), h = t.modifiersData.popperOffsets, k = t.rects.reference,
|
|
34656
|
+
}), T = yt(t.placement), E = En(t.placement), m = !E, x = Rc(T), b = r6(x), h = t.modifiersData.popperOffsets, k = t.rects.reference, L = t.rects.popper, R = typeof S == "function" ? S(Object.assign({}, t.rects, {
|
|
34665
34657
|
placement: t.placement
|
|
34666
|
-
})) : S,
|
|
34658
|
+
})) : S, O = typeof R == "number" ? {
|
|
34667
34659
|
mainAxis: R,
|
|
34668
34660
|
altAxis: R
|
|
34669
34661
|
} : Object.assign({
|
|
@@ -34675,14 +34667,14 @@ function a6(e) {
|
|
|
34675
34667
|
};
|
|
34676
34668
|
if (h) {
|
|
34677
34669
|
if (i) {
|
|
34678
|
-
var U, q = x === "y" ? Ve : We, $ = x === "y" ? ot : st, G = x === "y" ? "height" : "width", K = h[x], V = K + _[q], X = K - _[$], w = p ? -
|
|
34670
|
+
var U, q = x === "y" ? Ve : We, $ = x === "y" ? ot : st, G = x === "y" ? "height" : "width", K = h[x], V = K + _[q], X = K - _[$], w = p ? -L[G] / 2 : 0, N = E === hn ? k[G] : L[G], P = E === hn ? -L[G] : -k[G], C = t.elements.arrow, W = p && C ? Ac(C) : {
|
|
34679
34671
|
width: 0,
|
|
34680
34672
|
height: 0
|
|
34681
|
-
}, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ZE(), Y = Z[q], Q = Z[$], ee = Un(0, k[G], W[G]), te = m ? k[G] / 2 - w - ee - Y -
|
|
34673
|
+
}, Z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ZE(), Y = Z[q], Q = Z[$], ee = Un(0, k[G], W[G]), te = m ? k[G] / 2 - w - ee - Y - O.mainAxis : N - ee - Y - O.mainAxis, ie = m ? -k[G] / 2 + w + ee + Q + O.mainAxis : P + ee + Q + O.mainAxis, ne = t.elements.arrow && Xn(t.elements.arrow), _e = ne ? x === "y" ? ne.clientTop || 0 : ne.clientLeft || 0 : 0, H = (U = I == null ? void 0 : I[x]) != null ? U : 0, De = K + te - H - _e, ct = K + ie - H, Ze = Un(p ? br(V, De) : V, K, p ? Kt(X, ct) : X);
|
|
34682
34674
|
h[x] = Ze, M[x] = Ze - K;
|
|
34683
34675
|
}
|
|
34684
34676
|
if (s) {
|
|
34685
|
-
var dt, tn = x === "x" ? Ve : We, Bt = x === "x" ? ot : st, Pe = h[b], Rt = b === "y" ? "height" : "width", nn = Pe + _[tn], kt = Pe - _[Bt], $t = [Ve, We].indexOf(T) !== -1, rn = (dt = I == null ? void 0 : I[b]) != null ? dt : 0, F = $t ? nn : Pe - k[Rt] -
|
|
34677
|
+
var dt, tn = x === "x" ? Ve : We, Bt = x === "x" ? ot : st, Pe = h[b], Rt = b === "y" ? "height" : "width", nn = Pe + _[tn], kt = Pe - _[Bt], $t = [Ve, We].indexOf(T) !== -1, rn = (dt = I == null ? void 0 : I[b]) != null ? dt : 0, F = $t ? nn : Pe - k[Rt] - L[Rt] - rn + O.altAxis, z = $t ? Pe + k[Rt] + L[Rt] - rn - O.altAxis : kt, re = p && $t ? R3(F, Pe, z) : Un(p ? F : nn, Pe, p ? z : kt);
|
|
34686
34678
|
h[b] = re, M[b] = re - Pe;
|
|
34687
34679
|
}
|
|
34688
34680
|
t.modifiersData[r] = M;
|
|
@@ -34827,18 +34819,18 @@ function g6(e) {
|
|
|
34827
34819
|
c.rects = {
|
|
34828
34820
|
reference: u6(E, Xn(m), c.options.strategy === "fixed"),
|
|
34829
34821
|
popper: Ac(m)
|
|
34830
|
-
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(
|
|
34831
|
-
return c.modifiersData[
|
|
34822
|
+
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(O) {
|
|
34823
|
+
return c.modifiersData[O.name] = Object.assign({}, O.data);
|
|
34832
34824
|
});
|
|
34833
34825
|
for (var x = 0; x < c.orderedModifiers.length; x++) {
|
|
34834
34826
|
if (c.reset === !0) {
|
|
34835
34827
|
c.reset = !1, x = -1;
|
|
34836
34828
|
continue;
|
|
34837
34829
|
}
|
|
34838
|
-
var b = c.orderedModifiers[x], h = b.fn, k = b.options,
|
|
34830
|
+
var b = c.orderedModifiers[x], h = b.fn, k = b.options, L = k === void 0 ? {} : k, R = b.name;
|
|
34839
34831
|
typeof h == "function" && (c = h({
|
|
34840
34832
|
state: c,
|
|
34841
|
-
options:
|
|
34833
|
+
options: L,
|
|
34842
34834
|
name: R,
|
|
34843
34835
|
instance: p
|
|
34844
34836
|
}) || c);
|
|
@@ -35381,7 +35373,7 @@ function Jn({
|
|
|
35381
35373
|
setToggle: S
|
|
35382
35374
|
}), [b, o, u, p, _, f, S]);
|
|
35383
35375
|
p && T && !u && (m.current = p.contains(p.ownerDocument.activeElement));
|
|
35384
|
-
const
|
|
35376
|
+
const L = Lt(() => {
|
|
35385
35377
|
_ && _.focus && _.focus();
|
|
35386
35378
|
}), R = Lt(() => {
|
|
35387
35379
|
const I = E.current;
|
|
@@ -35392,11 +35384,11 @@ function Jn({
|
|
|
35392
35384
|
U && U.focus && U.focus();
|
|
35393
35385
|
});
|
|
35394
35386
|
Ie(() => {
|
|
35395
|
-
u ? R() : m.current && (m.current = !1,
|
|
35396
|
-
}, [u, m,
|
|
35387
|
+
u ? R() : m.current && (m.current = !1, L());
|
|
35388
|
+
}, [u, m, L, R]), Ie(() => {
|
|
35397
35389
|
E.current = null;
|
|
35398
35390
|
});
|
|
35399
|
-
const
|
|
35391
|
+
const O = (I, M) => {
|
|
35400
35392
|
if (!d.current) return null;
|
|
35401
35393
|
const U = Eb(d.current, a);
|
|
35402
35394
|
let q = U.indexOf(I) + M;
|
|
@@ -35416,7 +35408,7 @@ function Jn({
|
|
|
35416
35408
|
};
|
|
35417
35409
|
switch (q) {
|
|
35418
35410
|
case "ArrowUp": {
|
|
35419
|
-
const w =
|
|
35411
|
+
const w = O($, -1);
|
|
35420
35412
|
w && w.focus && w.focus(), I.preventDefault();
|
|
35421
35413
|
return;
|
|
35422
35414
|
}
|
|
@@ -35424,7 +35416,7 @@ function Jn({
|
|
|
35424
35416
|
if (I.preventDefault(), !u)
|
|
35425
35417
|
c(!0, X);
|
|
35426
35418
|
else {
|
|
35427
|
-
const w =
|
|
35419
|
+
const w = O($, 1);
|
|
35428
35420
|
w && w.focus && w.focus();
|
|
35429
35421
|
}
|
|
35430
35422
|
return;
|
|
@@ -35569,7 +35561,7 @@ const Sv = /* @__PURE__ */ Oe.forwardRef(({
|
|
|
35569
35561
|
const x = vv(f, _, T), [b, {
|
|
35570
35562
|
hasShown: h,
|
|
35571
35563
|
popper: k,
|
|
35572
|
-
show:
|
|
35564
|
+
show: L,
|
|
35573
35565
|
toggle: R
|
|
35574
35566
|
}] = rv({
|
|
35575
35567
|
flip: a,
|
|
@@ -35581,21 +35573,21 @@ const Sv = /* @__PURE__ */ Oe.forwardRef(({
|
|
|
35581
35573
|
placement: x
|
|
35582
35574
|
});
|
|
35583
35575
|
if (b.ref = Cc(Ev(d, "DropdownMenu"), b.ref), X6(() => {
|
|
35584
|
-
|
|
35585
|
-
}, [
|
|
35586
|
-
typeof s != "string" && (b.show =
|
|
35587
|
-
let
|
|
35588
|
-
return k != null && k.placement && (
|
|
35576
|
+
L && (k == null || k.update());
|
|
35577
|
+
}, [L]), !h && !o && !E) return null;
|
|
35578
|
+
typeof s != "string" && (b.show = L, b.close = () => R == null ? void 0 : R(!1), b.align = n);
|
|
35579
|
+
let O = c.style;
|
|
35580
|
+
return k != null && k.placement && (O = {
|
|
35589
35581
|
...c.style,
|
|
35590
35582
|
...b.style
|
|
35591
35583
|
}, c["x-placement"] = k.placement), /* @__PURE__ */ g.jsx(s, {
|
|
35592
35584
|
...c,
|
|
35593
35585
|
...b,
|
|
35594
|
-
style:
|
|
35586
|
+
style: O,
|
|
35595
35587
|
...(m.length || p) && {
|
|
35596
35588
|
"data-bs-popper": "static"
|
|
35597
35589
|
},
|
|
35598
|
-
className: mt(t, y,
|
|
35590
|
+
className: mt(t, y, L && "show", f && `${y}-end`, u && `${y}-${u}`, ...m)
|
|
35599
35591
|
});
|
|
35600
35592
|
});
|
|
35601
35593
|
Sv.displayName = "DropdownMenu";
|
|
@@ -35635,9 +35627,9 @@ const Cv = /* @__PURE__ */ Oe.forwardRef((e, t) => {
|
|
|
35635
35627
|
...p
|
|
35636
35628
|
} = IL(e, {
|
|
35637
35629
|
show: "onToggle"
|
|
35638
|
-
}), y = xe(Lc), S = wt(n, "dropdown"), _ = LL(), T = (k) => f === !1 ? k === "click" : f === "inside" ? k !== "rootClose" : f === "outside" ? k !== "select" : !0, E = XL((k,
|
|
35630
|
+
}), y = xe(Lc), S = wt(n, "dropdown"), _ = LL(), T = (k) => f === !1 ? k === "click" : f === "inside" ? k !== "rootClose" : f === "outside" ? k !== "select" : !0, E = XL((k, L) => {
|
|
35639
35631
|
var R;
|
|
35640
|
-
!((R =
|
|
35632
|
+
!((R = L.originalEvent) == null || (R = R.target) == null) && R.classList.contains("dropdown-toggle") && L.source === "mousedown" || (L.originalEvent.currentTarget === document && (L.source !== "keydown" || L.originalEvent.key === "Escape") && (L.source = "rootClose"), T(L.source) && (l == null || l(k, L)));
|
|
35641
35633
|
}), x = vv(o === "end", r, _), b = _t(() => ({
|
|
35642
35634
|
align: o,
|
|
35643
35635
|
drop: r,
|
|
@@ -36299,18 +36291,18 @@ const Rv = D.div`
|
|
|
36299
36291
|
showeditIcon: d
|
|
36300
36292
|
}) => {
|
|
36301
36293
|
const [f, p] = ge(() => localStorage.getItem("minerva_chat_expanded") === "true"), { t: y } = lt("minerva"), [S, _] = ge(!1), { selectedConversation: T } = Sn(), E = ve(null), m = ve(null), x = 60 * 60 * 1e3, b = (R) => {
|
|
36302
|
-
const
|
|
36294
|
+
const O = sy(R), I = new Date(O).getTime(), U = Date.now() - I, q = x - U;
|
|
36303
36295
|
return Math.max(0, q);
|
|
36304
36296
|
}, h = (R) => {
|
|
36305
36297
|
E.current && (clearTimeout(E.current), E.current = null), m.current && (clearInterval(m.current), m.current = null);
|
|
36306
|
-
const
|
|
36307
|
-
if (
|
|
36298
|
+
const O = b(R);
|
|
36299
|
+
if (O <= 0) {
|
|
36308
36300
|
_(!0);
|
|
36309
36301
|
return;
|
|
36310
36302
|
}
|
|
36311
36303
|
E.current = setTimeout(() => {
|
|
36312
36304
|
_(!0);
|
|
36313
|
-
},
|
|
36305
|
+
}, O);
|
|
36314
36306
|
};
|
|
36315
36307
|
Ie(() => (_(!1), T != null && T.created_at && h(T.created_at), () => {
|
|
36316
36308
|
E.current && (clearTimeout(E.current), E.current = null), m.current && (clearInterval(m.current), m.current = null);
|
|
@@ -36319,14 +36311,14 @@ const Rv = D.div`
|
|
|
36319
36311
|
}, []);
|
|
36320
36312
|
const k = () => {
|
|
36321
36313
|
p((R) => {
|
|
36322
|
-
const
|
|
36323
|
-
return localStorage.setItem("minerva_chat_expanded", String(
|
|
36314
|
+
const O = !R;
|
|
36315
|
+
return localStorage.setItem("minerva_chat_expanded", String(O)), O;
|
|
36324
36316
|
});
|
|
36325
|
-
},
|
|
36317
|
+
}, L = () => typeof t == "string" ? /* @__PURE__ */ g.jsx("img", { src: t, alt: "Custom Logo", style: { height: "40px" } }) : t ?? /* @__PURE__ */ g.jsx(mD, {});
|
|
36326
36318
|
return /* @__PURE__ */ g.jsxs(hD, { $isExpanded: f, className: s, children: [
|
|
36327
36319
|
/* @__PURE__ */ g.jsxs(bD, { children: [
|
|
36328
36320
|
/* @__PURE__ */ g.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
36329
|
-
|
|
36321
|
+
L(),
|
|
36330
36322
|
/* @__PURE__ */ g.jsx(vD, { children: y("titles.chatTtitle") })
|
|
36331
36323
|
] }),
|
|
36332
36324
|
/* @__PURE__ */ g.jsx(ED, { children: /* @__PURE__ */ g.jsx(
|
|
@@ -36544,27 +36536,27 @@ const _D = ({
|
|
|
36544
36536
|
t
|
|
36545
36537
|
);
|
|
36546
36538
|
console.log("Mensajes recibidos del backend:", k);
|
|
36547
|
-
const
|
|
36539
|
+
const L = k.map((R) => ({ ...R }));
|
|
36548
36540
|
r(
|
|
36549
|
-
|
|
36550
|
-
(R,
|
|
36541
|
+
L.sort(
|
|
36542
|
+
(R, O) => new Date(R.created_at).getTime() - new Date(O.created_at).getTime()
|
|
36551
36543
|
)
|
|
36552
|
-
), y(
|
|
36544
|
+
), y(L);
|
|
36553
36545
|
} catch (k) {
|
|
36554
|
-
console.error("Failed to fetch messages:", k), r((
|
|
36555
|
-
const R =
|
|
36546
|
+
console.error("Failed to fetch messages:", k), r((L) => {
|
|
36547
|
+
const R = L.filter(
|
|
36556
36548
|
(I) => I.sender_type === "ai" && (I.isStatus201 || f)
|
|
36557
|
-
),
|
|
36549
|
+
), O = L.filter(
|
|
36558
36550
|
(I) => I.sender_type === "user" && Math.abs(new Date(I.created_at).getTime() - (/* @__PURE__ */ new Date()).getTime()) < 1e4
|
|
36559
36551
|
);
|
|
36560
36552
|
return console.log("Preservando mensajes tras error en fetchMessages:", {
|
|
36561
36553
|
status201Messages: R,
|
|
36562
|
-
recentUserMessages:
|
|
36554
|
+
recentUserMessages: O
|
|
36563
36555
|
}), [
|
|
36564
|
-
...
|
|
36556
|
+
...L.filter((I) => !I.pendingSync || I.isStatus201),
|
|
36565
36557
|
...R,
|
|
36566
36558
|
// Optionally preserve status201 messages in error case as well
|
|
36567
|
-
...
|
|
36559
|
+
...O
|
|
36568
36560
|
].sort(
|
|
36569
36561
|
(I, M) => new Date(I.created_at).getTime() - new Date(M.created_at).getTime()
|
|
36570
36562
|
);
|
|
@@ -36572,14 +36564,14 @@ const _D = ({
|
|
|
36572
36564
|
} finally {
|
|
36573
36565
|
i(!1);
|
|
36574
36566
|
}
|
|
36575
|
-
}, E = async (h, k,
|
|
36567
|
+
}, E = async (h, k, L) => {
|
|
36576
36568
|
let R = null;
|
|
36577
|
-
const
|
|
36578
|
-
id: `user-${
|
|
36569
|
+
const O = (/* @__PURE__ */ new Date()).toISOString(), I = {
|
|
36570
|
+
id: `user-${O}`,
|
|
36579
36571
|
content: k,
|
|
36580
36572
|
sender_type: "user",
|
|
36581
36573
|
conversation_id: h,
|
|
36582
|
-
created_at:
|
|
36574
|
+
created_at: O,
|
|
36583
36575
|
pendingSync: !0
|
|
36584
36576
|
};
|
|
36585
36577
|
r((G) => {
|
|
@@ -36614,7 +36606,7 @@ const _D = ({
|
|
|
36614
36606
|
R = await Kv(
|
|
36615
36607
|
h,
|
|
36616
36608
|
k,
|
|
36617
|
-
|
|
36609
|
+
L,
|
|
36618
36610
|
t,
|
|
36619
36611
|
$.signal
|
|
36620
36612
|
);
|
|
@@ -36684,7 +36676,7 @@ const _D = ({
|
|
|
36684
36676
|
} finally {
|
|
36685
36677
|
u.current = null, _.current = null, l.current = null, i(!1), d(!1), console.log("Estado final de messages después de addMessage:", n);
|
|
36686
36678
|
}
|
|
36687
|
-
}, m = async (h, k,
|
|
36679
|
+
}, m = async (h, k, L) => {
|
|
36688
36680
|
const R = (/* @__PURE__ */ new Date()).toISOString();
|
|
36689
36681
|
r((U) => {
|
|
36690
36682
|
const q = U.findIndex((G) => G.id === k);
|
|
@@ -36693,22 +36685,22 @@ const _D = ({
|
|
|
36693
36685
|
...U.slice(0, q),
|
|
36694
36686
|
{
|
|
36695
36687
|
...U[q],
|
|
36696
|
-
content:
|
|
36688
|
+
content: L,
|
|
36697
36689
|
created_at: R,
|
|
36698
36690
|
pendingSync: !0
|
|
36699
36691
|
}
|
|
36700
36692
|
];
|
|
36701
36693
|
return console.log("Estado de messages tras editar mensaje:", $), $;
|
|
36702
36694
|
});
|
|
36703
|
-
const
|
|
36695
|
+
const O = new Date(
|
|
36704
36696
|
(/* @__PURE__ */ new Date()).getTime() + 1
|
|
36705
|
-
).toISOString(), I = `bot-edit-loading-${
|
|
36697
|
+
).toISOString(), I = `bot-edit-loading-${O}`, M = {
|
|
36706
36698
|
id: I,
|
|
36707
36699
|
content: "",
|
|
36708
36700
|
loadingContent: /* @__PURE__ */ g.jsx($b, {}),
|
|
36709
36701
|
sender_type: "ai",
|
|
36710
36702
|
conversation_id: h,
|
|
36711
|
-
created_at:
|
|
36703
|
+
created_at: O,
|
|
36712
36704
|
pendingSync: !0
|
|
36713
36705
|
};
|
|
36714
36706
|
r((U) => {
|
|
@@ -36722,7 +36714,7 @@ const _D = ({
|
|
|
36722
36714
|
const U = await Zv(
|
|
36723
36715
|
h,
|
|
36724
36716
|
k,
|
|
36725
|
-
|
|
36717
|
+
L,
|
|
36726
36718
|
t
|
|
36727
36719
|
);
|
|
36728
36720
|
if (!U.body)
|