@ddrinnova/agentsgt-widget 0.1.16 → 0.1.18
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/widget.es.js +232 -221
- package/dist/widget.umd.js +33 -33
- package/package.json +1 -1
package/dist/widget.es.js
CHANGED
|
@@ -54,9 +54,9 @@ function hS() {
|
|
|
54
54
|
var te = Z.length;
|
|
55
55
|
Z.push(F);
|
|
56
56
|
e: for (; 0 < te; ) {
|
|
57
|
-
var
|
|
57
|
+
var he = te - 1 >>> 1, z = Z[he];
|
|
58
58
|
if (0 < o(z, F))
|
|
59
|
-
Z[
|
|
59
|
+
Z[he] = F, Z[te] = z, te = he;
|
|
60
60
|
else break e;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -68,12 +68,12 @@ function hS() {
|
|
|
68
68
|
var F = Z[0], te = Z.pop();
|
|
69
69
|
if (te !== F) {
|
|
70
70
|
Z[0] = te;
|
|
71
|
-
e: for (var
|
|
72
|
-
var H = 2 * (
|
|
71
|
+
e: for (var he = 0, z = Z.length, A = z >>> 1; he < A; ) {
|
|
72
|
+
var H = 2 * (he + 1) - 1, x = Z[H], ne = H + 1, be = Z[ne];
|
|
73
73
|
if (0 > o(x, te))
|
|
74
|
-
ne < z && 0 > o(be, x) ? (Z[
|
|
74
|
+
ne < z && 0 > o(be, x) ? (Z[he] = be, Z[ne] = te, he = ne) : (Z[he] = x, Z[H] = te, he = H);
|
|
75
75
|
else if (ne < z && 0 > o(be, te))
|
|
76
|
-
Z[
|
|
76
|
+
Z[he] = be, Z[ne] = te, he = ne;
|
|
77
77
|
else break e;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -113,14 +113,14 @@ function hS() {
|
|
|
113
113
|
F !== null && fe(J, F.startTime - Z);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
var D = !1, X = -1, ce = 5,
|
|
116
|
+
var D = !1, X = -1, ce = 5, pe = -1;
|
|
117
117
|
function L() {
|
|
118
|
-
return j ? !0 : !(e.unstable_now() -
|
|
118
|
+
return j ? !0 : !(e.unstable_now() - pe < ce);
|
|
119
119
|
}
|
|
120
120
|
function ie() {
|
|
121
121
|
if (j = !1, D) {
|
|
122
122
|
var Z = e.unstable_now();
|
|
123
|
-
|
|
123
|
+
pe = Z;
|
|
124
124
|
var F = !0;
|
|
125
125
|
try {
|
|
126
126
|
e: {
|
|
@@ -129,10 +129,10 @@ function hS() {
|
|
|
129
129
|
try {
|
|
130
130
|
t: {
|
|
131
131
|
for (K(Z), g = i(m); g !== null && !(g.expirationTime > Z && L()); ) {
|
|
132
|
-
var
|
|
133
|
-
if (typeof
|
|
132
|
+
var he = g.callback;
|
|
133
|
+
if (typeof he == "function") {
|
|
134
134
|
g.callback = null, _ = g.priorityLevel;
|
|
135
|
-
var z =
|
|
135
|
+
var z = he(
|
|
136
136
|
g.expirationTime <= Z
|
|
137
137
|
);
|
|
138
138
|
if (Z = e.unstable_now(), typeof z == "function") {
|
|
@@ -228,8 +228,8 @@ function hS() {
|
|
|
228
228
|
_ = te;
|
|
229
229
|
}
|
|
230
230
|
}, e.unstable_scheduleCallback = function(Z, F, te) {
|
|
231
|
-
var
|
|
232
|
-
switch (typeof te == "object" && te !== null ? (te = te.delay, te = typeof te == "number" && 0 < te ?
|
|
231
|
+
var he = e.unstable_now();
|
|
232
|
+
switch (typeof te == "object" && te !== null ? (te = te.delay, te = typeof te == "number" && 0 < te ? he + te : he) : te = he, Z) {
|
|
233
233
|
case 1:
|
|
234
234
|
var z = -1;
|
|
235
235
|
break;
|
|
@@ -252,7 +252,7 @@ function hS() {
|
|
|
252
252
|
startTime: te,
|
|
253
253
|
expirationTime: z,
|
|
254
254
|
sortIndex: -1
|
|
255
|
-
}, te >
|
|
255
|
+
}, te > he ? (Z.sortIndex = te, n(d, Z), i(m) === null && Z === i(d) && (T ? (B(X), X = -1) : T = !0, fe(J, te - he))) : (Z.sortIndex = z, n(m, Z), E || b || (E = !0, D || (D = !0, re()))), Z;
|
|
256
256
|
}, e.unstable_shouldYield = L, e.unstable_wrapCallback = function(Z) {
|
|
257
257
|
var F = _;
|
|
258
258
|
return function() {
|
|
@@ -324,7 +324,7 @@ function dS() {
|
|
|
324
324
|
function D() {
|
|
325
325
|
}
|
|
326
326
|
var X = { H: null, A: null, T: null, S: null }, ce = Object.prototype.hasOwnProperty;
|
|
327
|
-
function
|
|
327
|
+
function pe(A, H, x) {
|
|
328
328
|
var ne = x.ref;
|
|
329
329
|
return {
|
|
330
330
|
$$typeof: e,
|
|
@@ -335,7 +335,7 @@ function dS() {
|
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
function L(A, H) {
|
|
338
|
-
return
|
|
338
|
+
return pe(A.type, H, A.props);
|
|
339
339
|
}
|
|
340
340
|
function ie(A) {
|
|
341
341
|
return typeof A == "object" && A !== null && A.$$typeof === e;
|
|
@@ -374,12 +374,12 @@ function dS() {
|
|
|
374
374
|
throw A;
|
|
375
375
|
}
|
|
376
376
|
function Z(A, H, x, ne, be) {
|
|
377
|
-
var
|
|
378
|
-
(
|
|
377
|
+
var de = typeof A;
|
|
378
|
+
(de === "undefined" || de === "boolean") && (A = null);
|
|
379
379
|
var Ne = !1;
|
|
380
380
|
if (A === null) Ne = !0;
|
|
381
381
|
else
|
|
382
|
-
switch (
|
|
382
|
+
switch (de) {
|
|
383
383
|
case "bigint":
|
|
384
384
|
case "string":
|
|
385
385
|
case "number":
|
|
@@ -415,23 +415,23 @@ function dS() {
|
|
|
415
415
|
var ut = ne === "" ? "." : ne + ":";
|
|
416
416
|
if (J(A))
|
|
417
417
|
for (var Ye = 0; Ye < A.length; Ye++)
|
|
418
|
-
ne = A[Ye],
|
|
418
|
+
ne = A[Ye], de = ut + ae(ne, Ye), Ne += Z(
|
|
419
419
|
ne,
|
|
420
420
|
H,
|
|
421
421
|
x,
|
|
422
|
-
|
|
422
|
+
de,
|
|
423
423
|
be
|
|
424
424
|
);
|
|
425
425
|
else if (Ye = b(A), typeof Ye == "function")
|
|
426
426
|
for (A = Ye.call(A), Ye = 0; !(ne = A.next()).done; )
|
|
427
|
-
ne = ne.value,
|
|
427
|
+
ne = ne.value, de = ut + ae(ne, Ye++), Ne += Z(
|
|
428
428
|
ne,
|
|
429
429
|
H,
|
|
430
430
|
x,
|
|
431
|
-
|
|
431
|
+
de,
|
|
432
432
|
be
|
|
433
433
|
);
|
|
434
|
-
else if (
|
|
434
|
+
else if (de === "object") {
|
|
435
435
|
if (typeof A.then == "function")
|
|
436
436
|
return Z(
|
|
437
437
|
fe(A),
|
|
@@ -449,8 +449,8 @@ function dS() {
|
|
|
449
449
|
function F(A, H, x) {
|
|
450
450
|
if (A == null) return A;
|
|
451
451
|
var ne = [], be = 0;
|
|
452
|
-
return Z(A, ne, "", "", function(
|
|
453
|
-
return H.call(x,
|
|
452
|
+
return Z(A, ne, "", "", function(de) {
|
|
453
|
+
return H.call(x, de, be++);
|
|
454
454
|
}), ne;
|
|
455
455
|
}
|
|
456
456
|
function te(A) {
|
|
@@ -468,7 +468,7 @@ function dS() {
|
|
|
468
468
|
if (A._status === 1) return A._result.default;
|
|
469
469
|
throw A._result;
|
|
470
470
|
}
|
|
471
|
-
var
|
|
471
|
+
var he = typeof reportError == "function" ? reportError : function(A) {
|
|
472
472
|
if (typeof window == "object" && typeof window.ErrorEvent == "function") {
|
|
473
473
|
var H = new window.ErrorEvent("error", {
|
|
474
474
|
bubbles: !0,
|
|
@@ -530,16 +530,16 @@ function dS() {
|
|
|
530
530
|
);
|
|
531
531
|
var ne = T({}, A.props), be = A.key;
|
|
532
532
|
if (H != null)
|
|
533
|
-
for (
|
|
534
|
-
!ce.call(H,
|
|
535
|
-
var
|
|
536
|
-
if (
|
|
537
|
-
else if (1 <
|
|
538
|
-
for (var Ne = Array(
|
|
533
|
+
for (de in H.key !== void 0 && (be = "" + H.key), H)
|
|
534
|
+
!ce.call(H, de) || de === "key" || de === "__self" || de === "__source" || de === "ref" && H.ref === void 0 || (ne[de] = H[de]);
|
|
535
|
+
var de = arguments.length - 2;
|
|
536
|
+
if (de === 1) ne.children = x;
|
|
537
|
+
else if (1 < de) {
|
|
538
|
+
for (var Ne = Array(de), ut = 0; ut < de; ut++)
|
|
539
539
|
Ne[ut] = arguments[ut + 2];
|
|
540
540
|
ne.children = Ne;
|
|
541
541
|
}
|
|
542
|
-
return
|
|
542
|
+
return pe(A.type, be, ne);
|
|
543
543
|
}, Se.createContext = function(A) {
|
|
544
544
|
return A = {
|
|
545
545
|
$$typeof: c,
|
|
@@ -553,9 +553,9 @@ function dS() {
|
|
|
553
553
|
_context: A
|
|
554
554
|
}, A;
|
|
555
555
|
}, Se.createElement = function(A, H, x) {
|
|
556
|
-
var ne, be = {},
|
|
556
|
+
var ne, be = {}, de = null;
|
|
557
557
|
if (H != null)
|
|
558
|
-
for (ne in H.key !== void 0 && (
|
|
558
|
+
for (ne in H.key !== void 0 && (de = "" + H.key), H)
|
|
559
559
|
ce.call(H, ne) && ne !== "key" && ne !== "__self" && ne !== "__source" && (be[ne] = H[ne]);
|
|
560
560
|
var Ne = arguments.length - 2;
|
|
561
561
|
if (Ne === 1) be.children = x;
|
|
@@ -567,7 +567,7 @@ function dS() {
|
|
|
567
567
|
if (A && A.defaultProps)
|
|
568
568
|
for (ne in Ne = A.defaultProps, Ne)
|
|
569
569
|
be[ne] === void 0 && (be[ne] = Ne[ne]);
|
|
570
|
-
return
|
|
570
|
+
return pe(A, de, be);
|
|
571
571
|
}, Se.createRef = function() {
|
|
572
572
|
return { current: null };
|
|
573
573
|
}, Se.forwardRef = function(A) {
|
|
@@ -589,9 +589,9 @@ function dS() {
|
|
|
589
589
|
X.T = x;
|
|
590
590
|
try {
|
|
591
591
|
var ne = A(), be = X.S;
|
|
592
|
-
be !== null && be(x, ne), typeof ne == "object" && ne !== null && typeof ne.then == "function" && ne.then(D,
|
|
593
|
-
} catch (
|
|
594
|
-
|
|
592
|
+
be !== null && be(x, ne), typeof ne == "object" && ne !== null && typeof ne.then == "function" && ne.then(D, he);
|
|
593
|
+
} catch (de) {
|
|
594
|
+
he(de);
|
|
595
595
|
} finally {
|
|
596
596
|
H !== null && x.types !== null && (H.types = x.types), X.T = H;
|
|
597
597
|
}
|
|
@@ -923,7 +923,7 @@ function yS() {
|
|
|
923
923
|
}
|
|
924
924
|
return null;
|
|
925
925
|
}
|
|
926
|
-
var g = Object.assign, _ = Symbol.for("react.element"), b = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), B = Symbol.for("react.consumer"), w = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), J = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), ce = Symbol.for("react.lazy"),
|
|
926
|
+
var g = Object.assign, _ = Symbol.for("react.element"), b = Symbol.for("react.transitional.element"), E = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), j = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), B = Symbol.for("react.consumer"), w = Symbol.for("react.context"), K = Symbol.for("react.forward_ref"), J = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), X = Symbol.for("react.memo"), ce = Symbol.for("react.lazy"), pe = Symbol.for("react.activity"), L = Symbol.for("react.memo_cache_sentinel"), ie = Symbol.iterator;
|
|
927
927
|
function re(t) {
|
|
928
928
|
return t === null || typeof t != "object" ? null : (t = ie && t[ie] || t["@@iterator"], typeof t == "function" ? t : null);
|
|
929
929
|
}
|
|
@@ -944,7 +944,7 @@ function yS() {
|
|
|
944
944
|
return "Suspense";
|
|
945
945
|
case D:
|
|
946
946
|
return "SuspenseList";
|
|
947
|
-
case
|
|
947
|
+
case pe:
|
|
948
948
|
return "Activity";
|
|
949
949
|
}
|
|
950
950
|
if (typeof t == "object")
|
|
@@ -974,19 +974,19 @@ function yS() {
|
|
|
974
974
|
data: null,
|
|
975
975
|
method: null,
|
|
976
976
|
action: null
|
|
977
|
-
},
|
|
977
|
+
}, he = [], z = -1;
|
|
978
978
|
function A(t) {
|
|
979
979
|
return { current: t };
|
|
980
980
|
}
|
|
981
981
|
function H(t) {
|
|
982
|
-
0 > z || (t.current =
|
|
982
|
+
0 > z || (t.current = he[z], he[z] = null, z--);
|
|
983
983
|
}
|
|
984
984
|
function x(t, r) {
|
|
985
|
-
z++,
|
|
985
|
+
z++, he[z] = t.current, t.current = r;
|
|
986
986
|
}
|
|
987
|
-
var ne = A(null), be = A(null),
|
|
987
|
+
var ne = A(null), be = A(null), de = A(null), Ne = A(null);
|
|
988
988
|
function ut(t, r) {
|
|
989
|
-
switch (x(
|
|
989
|
+
switch (x(de, r), x(be, t), x(ne, null), r.nodeType) {
|
|
990
990
|
case 9:
|
|
991
991
|
case 11:
|
|
992
992
|
t = (t = r.documentElement) && (t = t.namespaceURI) ? Ym(t) : 0;
|
|
@@ -1009,7 +1009,7 @@ function yS() {
|
|
|
1009
1009
|
H(ne), x(ne, t);
|
|
1010
1010
|
}
|
|
1011
1011
|
function Ye() {
|
|
1012
|
-
H(ne), H(be), H(
|
|
1012
|
+
H(ne), H(be), H(de);
|
|
1013
1013
|
}
|
|
1014
1014
|
function sn(t) {
|
|
1015
1015
|
t.memoizedState !== null && x(Ne, t);
|
|
@@ -2402,8 +2402,8 @@ Error generating stack: ` + u.message + `
|
|
|
2402
2402
|
) ? 26 : t === "html" || t === "head" || t === "body" ? 27 : 5;
|
|
2403
2403
|
else
|
|
2404
2404
|
e: switch (t) {
|
|
2405
|
-
case
|
|
2406
|
-
return t = Wt(31, a, r, f), t.elementType =
|
|
2405
|
+
case pe:
|
|
2406
|
+
return t = Wt(31, a, r, f), t.elementType = pe, t.lanes = p, t;
|
|
2407
2407
|
case T:
|
|
2408
2408
|
return Xr(a.children, f, p, r);
|
|
2409
2409
|
case j:
|
|
@@ -2913,14 +2913,14 @@ Error generating stack: ` + u.message + `
|
|
|
2913
2913
|
return O === null || O.tag !== 6 ? (O = gs(M, N.mode, Y), O.return = N, O) : (O = f(O, M), O.return = N, O);
|
|
2914
2914
|
}
|
|
2915
2915
|
function k(N, O, M, Y) {
|
|
2916
|
-
var
|
|
2917
|
-
return
|
|
2916
|
+
var me = M.type;
|
|
2917
|
+
return me === T ? q(
|
|
2918
2918
|
N,
|
|
2919
2919
|
O,
|
|
2920
2920
|
M.props.children,
|
|
2921
2921
|
Y,
|
|
2922
2922
|
M.key
|
|
2923
|
-
) : O !== null && (O.elementType ===
|
|
2923
|
+
) : O !== null && (O.elementType === me || typeof me == "object" && me !== null && me.$$typeof === ce && Kr(me) === O.type) ? (O = f(O, M.props), Ba(O, M), O.return = N, O) : (O = lu(
|
|
2924
2924
|
M.type,
|
|
2925
2925
|
M.key,
|
|
2926
2926
|
M.props,
|
|
@@ -2932,12 +2932,12 @@ Error generating stack: ` + u.message + `
|
|
|
2932
2932
|
function R(N, O, M, Y) {
|
|
2933
2933
|
return O === null || O.tag !== 4 || O.stateNode.containerInfo !== M.containerInfo || O.stateNode.implementation !== M.implementation ? (O = ys(M, N.mode, Y), O.return = N, O) : (O = f(O, M.children || []), O.return = N, O);
|
|
2934
2934
|
}
|
|
2935
|
-
function q(N, O, M, Y,
|
|
2935
|
+
function q(N, O, M, Y, me) {
|
|
2936
2936
|
return O === null || O.tag !== 7 ? (O = Xr(
|
|
2937
2937
|
M,
|
|
2938
2938
|
N.mode,
|
|
2939
2939
|
Y,
|
|
2940
|
-
|
|
2940
|
+
me
|
|
2941
2941
|
), O.return = N, O) : (O = f(O, M), O.return = N, O);
|
|
2942
2942
|
}
|
|
2943
2943
|
function G(N, O, M) {
|
|
@@ -2987,20 +2987,20 @@ Error generating stack: ` + u.message + `
|
|
|
2987
2987
|
return null;
|
|
2988
2988
|
}
|
|
2989
2989
|
function U(N, O, M, Y) {
|
|
2990
|
-
var
|
|
2990
|
+
var me = O !== null ? O.key : null;
|
|
2991
2991
|
if (typeof M == "string" && M !== "" || typeof M == "number" || typeof M == "bigint")
|
|
2992
|
-
return
|
|
2992
|
+
return me !== null ? null : S(N, O, "" + M, Y);
|
|
2993
2993
|
if (typeof M == "object" && M !== null) {
|
|
2994
2994
|
switch (M.$$typeof) {
|
|
2995
2995
|
case b:
|
|
2996
|
-
return M.key ===
|
|
2996
|
+
return M.key === me ? k(N, O, M, Y) : null;
|
|
2997
2997
|
case E:
|
|
2998
|
-
return M.key ===
|
|
2998
|
+
return M.key === me ? R(N, O, M, Y) : null;
|
|
2999
2999
|
case ce:
|
|
3000
3000
|
return M = Kr(M), U(N, O, M, Y);
|
|
3001
3001
|
}
|
|
3002
3002
|
if (fe(M) || re(M))
|
|
3003
|
-
return
|
|
3003
|
+
return me !== null ? null : q(N, O, M, Y, null);
|
|
3004
3004
|
if (typeof M.then == "function")
|
|
3005
3005
|
return U(
|
|
3006
3006
|
N,
|
|
@@ -3019,37 +3019,37 @@ Error generating stack: ` + u.message + `
|
|
|
3019
3019
|
}
|
|
3020
3020
|
return null;
|
|
3021
3021
|
}
|
|
3022
|
-
function I(N, O, M, Y,
|
|
3022
|
+
function I(N, O, M, Y, me) {
|
|
3023
3023
|
if (typeof Y == "string" && Y !== "" || typeof Y == "number" || typeof Y == "bigint")
|
|
3024
|
-
return N = N.get(M) || null, S(O, N, "" + Y,
|
|
3024
|
+
return N = N.get(M) || null, S(O, N, "" + Y, me);
|
|
3025
3025
|
if (typeof Y == "object" && Y !== null) {
|
|
3026
3026
|
switch (Y.$$typeof) {
|
|
3027
3027
|
case b:
|
|
3028
3028
|
return N = N.get(
|
|
3029
3029
|
Y.key === null ? M : Y.key
|
|
3030
|
-
) || null, k(O, N, Y,
|
|
3030
|
+
) || null, k(O, N, Y, me);
|
|
3031
3031
|
case E:
|
|
3032
3032
|
return N = N.get(
|
|
3033
3033
|
Y.key === null ? M : Y.key
|
|
3034
|
-
) || null, R(O, N, Y,
|
|
3034
|
+
) || null, R(O, N, Y, me);
|
|
3035
3035
|
case ce:
|
|
3036
3036
|
return Y = Kr(Y), I(
|
|
3037
3037
|
N,
|
|
3038
3038
|
O,
|
|
3039
3039
|
M,
|
|
3040
3040
|
Y,
|
|
3041
|
-
|
|
3041
|
+
me
|
|
3042
3042
|
);
|
|
3043
3043
|
}
|
|
3044
3044
|
if (fe(Y) || re(Y))
|
|
3045
|
-
return N = N.get(M) || null, q(O, N, Y,
|
|
3045
|
+
return N = N.get(M) || null, q(O, N, Y, me, null);
|
|
3046
3046
|
if (typeof Y.then == "function")
|
|
3047
3047
|
return I(
|
|
3048
3048
|
N,
|
|
3049
3049
|
O,
|
|
3050
3050
|
M,
|
|
3051
3051
|
pu(Y),
|
|
3052
|
-
|
|
3052
|
+
me
|
|
3053
3053
|
);
|
|
3054
3054
|
if (Y.$$typeof === w)
|
|
3055
3055
|
return I(
|
|
@@ -3057,14 +3057,14 @@ Error generating stack: ` + u.message + `
|
|
|
3057
3057
|
O,
|
|
3058
3058
|
M,
|
|
3059
3059
|
su(O, Y),
|
|
3060
|
-
|
|
3060
|
+
me
|
|
3061
3061
|
);
|
|
3062
3062
|
du(O, Y);
|
|
3063
3063
|
}
|
|
3064
3064
|
return null;
|
|
3065
3065
|
}
|
|
3066
3066
|
function ue(N, O, M, Y) {
|
|
3067
|
-
for (var
|
|
3067
|
+
for (var me = null, Le = null, oe = O, ze = O = 0, Me = null; oe !== null && ze < M.length; ze++) {
|
|
3068
3068
|
oe.index > ze ? (Me = oe, oe = null) : Me = oe.sibling;
|
|
3069
3069
|
var Ie = U(
|
|
3070
3070
|
N,
|
|
@@ -3076,18 +3076,18 @@ Error generating stack: ` + u.message + `
|
|
|
3076
3076
|
oe === null && (oe = Me);
|
|
3077
3077
|
break;
|
|
3078
3078
|
}
|
|
3079
|
-
t && oe && Ie.alternate === null && r(N, oe), O = p(Ie, O, ze), Le === null ?
|
|
3079
|
+
t && oe && Ie.alternate === null && r(N, oe), O = p(Ie, O, ze), Le === null ? me = Ie : Le.sibling = Ie, Le = Ie, oe = Me;
|
|
3080
3080
|
}
|
|
3081
3081
|
if (ze === M.length)
|
|
3082
|
-
return a(N, oe), Re && Gn(N, ze),
|
|
3082
|
+
return a(N, oe), Re && Gn(N, ze), me;
|
|
3083
3083
|
if (oe === null) {
|
|
3084
3084
|
for (; ze < M.length; ze++)
|
|
3085
3085
|
oe = G(N, M[ze], Y), oe !== null && (O = p(
|
|
3086
3086
|
oe,
|
|
3087
3087
|
O,
|
|
3088
3088
|
ze
|
|
3089
|
-
), Le === null ?
|
|
3090
|
-
return Re && Gn(N, ze),
|
|
3089
|
+
), Le === null ? me = oe : Le.sibling = oe, Le = oe);
|
|
3090
|
+
return Re && Gn(N, ze), me;
|
|
3091
3091
|
}
|
|
3092
3092
|
for (oe = u(oe); ze < M.length; ze++)
|
|
3093
3093
|
Me = I(
|
|
@@ -3102,43 +3102,43 @@ Error generating stack: ` + u.message + `
|
|
|
3102
3102
|
Me,
|
|
3103
3103
|
O,
|
|
3104
3104
|
ze
|
|
3105
|
-
), Le === null ?
|
|
3105
|
+
), Le === null ? me = Me : Le.sibling = Me, Le = Me);
|
|
3106
3106
|
return t && oe.forEach(function(Nr) {
|
|
3107
3107
|
return r(N, Nr);
|
|
3108
|
-
}), Re && Gn(N, ze),
|
|
3108
|
+
}), Re && Gn(N, ze), me;
|
|
3109
3109
|
}
|
|
3110
3110
|
function ye(N, O, M, Y) {
|
|
3111
3111
|
if (M == null) throw Error(l(151));
|
|
3112
|
-
for (var
|
|
3112
|
+
for (var me = null, Le = null, oe = O, ze = O = 0, Me = null, Ie = M.next(); oe !== null && !Ie.done; ze++, Ie = M.next()) {
|
|
3113
3113
|
oe.index > ze ? (Me = oe, oe = null) : Me = oe.sibling;
|
|
3114
3114
|
var Nr = U(N, oe, Ie.value, Y);
|
|
3115
3115
|
if (Nr === null) {
|
|
3116
3116
|
oe === null && (oe = Me);
|
|
3117
3117
|
break;
|
|
3118
3118
|
}
|
|
3119
|
-
t && oe && Nr.alternate === null && r(N, oe), O = p(Nr, O, ze), Le === null ?
|
|
3119
|
+
t && oe && Nr.alternate === null && r(N, oe), O = p(Nr, O, ze), Le === null ? me = Nr : Le.sibling = Nr, Le = Nr, oe = Me;
|
|
3120
3120
|
}
|
|
3121
3121
|
if (Ie.done)
|
|
3122
|
-
return a(N, oe), Re && Gn(N, ze),
|
|
3122
|
+
return a(N, oe), Re && Gn(N, ze), me;
|
|
3123
3123
|
if (oe === null) {
|
|
3124
3124
|
for (; !Ie.done; ze++, Ie = M.next())
|
|
3125
|
-
Ie = G(N, Ie.value, Y), Ie !== null && (O = p(Ie, O, ze), Le === null ?
|
|
3126
|
-
return Re && Gn(N, ze),
|
|
3125
|
+
Ie = G(N, Ie.value, Y), Ie !== null && (O = p(Ie, O, ze), Le === null ? me = Ie : Le.sibling = Ie, Le = Ie);
|
|
3126
|
+
return Re && Gn(N, ze), me;
|
|
3127
3127
|
}
|
|
3128
3128
|
for (oe = u(oe); !Ie.done; ze++, Ie = M.next())
|
|
3129
|
-
Ie = I(oe, N, ze, Ie.value, Y), Ie !== null && (t && Ie.alternate !== null && oe.delete(Ie.key === null ? ze : Ie.key), O = p(Ie, O, ze), Le === null ?
|
|
3129
|
+
Ie = I(oe, N, ze, Ie.value, Y), Ie !== null && (t && Ie.alternate !== null && oe.delete(Ie.key === null ? ze : Ie.key), O = p(Ie, O, ze), Le === null ? me = Ie : Le.sibling = Ie, Le = Ie);
|
|
3130
3130
|
return t && oe.forEach(function(sS) {
|
|
3131
3131
|
return r(N, sS);
|
|
3132
|
-
}), Re && Gn(N, ze),
|
|
3132
|
+
}), Re && Gn(N, ze), me;
|
|
3133
3133
|
}
|
|
3134
3134
|
function Fe(N, O, M, Y) {
|
|
3135
3135
|
if (typeof M == "object" && M !== null && M.type === T && M.key === null && (M = M.props.children), typeof M == "object" && M !== null) {
|
|
3136
3136
|
switch (M.$$typeof) {
|
|
3137
3137
|
case b:
|
|
3138
3138
|
e: {
|
|
3139
|
-
for (var
|
|
3140
|
-
if (O.key ===
|
|
3141
|
-
if (
|
|
3139
|
+
for (var me = M.key; O !== null; ) {
|
|
3140
|
+
if (O.key === me) {
|
|
3141
|
+
if (me = M.type, me === T) {
|
|
3142
3142
|
if (O.tag === 7) {
|
|
3143
3143
|
a(
|
|
3144
3144
|
N,
|
|
@@ -3149,7 +3149,7 @@ Error generating stack: ` + u.message + `
|
|
|
3149
3149
|
), Y.return = N, N = Y;
|
|
3150
3150
|
break e;
|
|
3151
3151
|
}
|
|
3152
|
-
} else if (O.elementType ===
|
|
3152
|
+
} else if (O.elementType === me || typeof me == "object" && me !== null && me.$$typeof === ce && Kr(me) === O.type) {
|
|
3153
3153
|
a(
|
|
3154
3154
|
N,
|
|
3155
3155
|
O.sibling
|
|
@@ -3178,8 +3178,8 @@ Error generating stack: ` + u.message + `
|
|
|
3178
3178
|
return v(N);
|
|
3179
3179
|
case E:
|
|
3180
3180
|
e: {
|
|
3181
|
-
for (
|
|
3182
|
-
if (O.key ===
|
|
3181
|
+
for (me = M.key; O !== null; ) {
|
|
3182
|
+
if (O.key === me)
|
|
3183
3183
|
if (O.tag === 4 && O.stateNode.containerInfo === M.containerInfo && O.stateNode.implementation === M.implementation) {
|
|
3184
3184
|
a(
|
|
3185
3185
|
N,
|
|
@@ -3212,8 +3212,8 @@ Error generating stack: ` + u.message + `
|
|
|
3212
3212
|
Y
|
|
3213
3213
|
);
|
|
3214
3214
|
if (re(M)) {
|
|
3215
|
-
if (
|
|
3216
|
-
return M =
|
|
3215
|
+
if (me = re(M), typeof me != "function") throw Error(l(150));
|
|
3216
|
+
return M = me.call(M), ye(
|
|
3217
3217
|
N,
|
|
3218
3218
|
O,
|
|
3219
3219
|
M,
|
|
@@ -3241,13 +3241,13 @@ Error generating stack: ` + u.message + `
|
|
|
3241
3241
|
return function(N, O, M, Y) {
|
|
3242
3242
|
try {
|
|
3243
3243
|
Ia = 0;
|
|
3244
|
-
var
|
|
3244
|
+
var me = Fe(
|
|
3245
3245
|
N,
|
|
3246
3246
|
O,
|
|
3247
3247
|
M,
|
|
3248
3248
|
Y
|
|
3249
3249
|
);
|
|
3250
|
-
return Zi = null,
|
|
3250
|
+
return Zi = null, me;
|
|
3251
3251
|
} catch (oe) {
|
|
3252
3252
|
if (oe === Ui || oe === fu) throw oe;
|
|
3253
3253
|
var Le = Wt(29, oe, null, N.mode);
|
|
@@ -5374,7 +5374,7 @@ Error generating stack: ` + u.message + `
|
|
|
5374
5374
|
r.pendingProps,
|
|
5375
5375
|
null
|
|
5376
5376
|
)) ? r.memoizedState = a : Re || (a = r.type, t = r.pendingProps, u = Vu(
|
|
5377
|
-
|
|
5377
|
+
de.current
|
|
5378
5378
|
).createElement(a), u[zt] = r, u[Ht] = t, At(u, a, t), xt(u), r.stateNode = u) : r.memoizedState = rg(
|
|
5379
5379
|
r.type,
|
|
5380
5380
|
t.memoizedProps,
|
|
@@ -5385,7 +5385,7 @@ Error generating stack: ` + u.message + `
|
|
|
5385
5385
|
return sn(r), t === null && Re && (u = r.stateNode = eg(
|
|
5386
5386
|
r.type,
|
|
5387
5387
|
r.pendingProps,
|
|
5388
|
-
|
|
5388
|
+
de.current
|
|
5389
5389
|
), kt = r, gn = !0, f = tt, wr(r.type) ? ($c = f, tt = vn(u.firstChild)) : tt = f), Tt(
|
|
5390
5390
|
t,
|
|
5391
5391
|
r,
|
|
@@ -5583,7 +5583,7 @@ Error generating stack: ` + u.message + `
|
|
|
5583
5583
|
a
|
|
5584
5584
|
)), null;
|
|
5585
5585
|
case 27:
|
|
5586
|
-
if (In(r), a =
|
|
5586
|
+
if (In(r), a = de.current, f = r.type, t !== null && r.stateNode != null)
|
|
5587
5587
|
t.memoizedProps !== u && Kn(r);
|
|
5588
5588
|
else {
|
|
5589
5589
|
if (!u) {
|
|
@@ -5607,7 +5607,7 @@ Error generating stack: ` + u.message + `
|
|
|
5607
5607
|
wp(r);
|
|
5608
5608
|
else {
|
|
5609
5609
|
var v = Vu(
|
|
5610
|
-
|
|
5610
|
+
de.current
|
|
5611
5611
|
);
|
|
5612
5612
|
switch (p) {
|
|
5613
5613
|
case 1:
|
|
@@ -5696,7 +5696,7 @@ Error generating stack: ` + u.message + `
|
|
|
5696
5696
|
else {
|
|
5697
5697
|
if (typeof u != "string" && r.stateNode === null)
|
|
5698
5698
|
throw Error(l(166));
|
|
5699
|
-
if (t =
|
|
5699
|
+
if (t = de.current, Di(r)) {
|
|
5700
5700
|
if (t = r.stateNode, a = r.memoizedProps, u = null, f = kt, f !== null)
|
|
5701
5701
|
switch (f.tag) {
|
|
5702
5702
|
case 27:
|
|
@@ -8396,7 +8396,7 @@ Error generating stack: ` + u.message + `
|
|
|
8396
8396
|
for (ye = C_, N = I, O = ue, M = 0, Y = N; Y; Y = ye(Y))
|
|
8397
8397
|
M++;
|
|
8398
8398
|
Y = 0;
|
|
8399
|
-
for (var
|
|
8399
|
+
for (var me = O; me; me = ye(me))
|
|
8400
8400
|
Y++;
|
|
8401
8401
|
for (; 0 < M - Y; )
|
|
8402
8402
|
N = ye(N), M--;
|
|
@@ -9723,7 +9723,7 @@ Error generating stack: ` + u.message + `
|
|
|
9723
9723
|
}
|
|
9724
9724
|
}
|
|
9725
9725
|
function rg(t, r, a, u) {
|
|
9726
|
-
var f = (f =
|
|
9726
|
+
var f = (f = de.current) ? Yu(f) : null;
|
|
9727
9727
|
if (!f) throw Error(l(446));
|
|
9728
9728
|
switch (t) {
|
|
9729
9729
|
case "meta":
|
|
@@ -16378,7 +16378,7 @@ function MT({
|
|
|
16378
16378
|
function C(w) {
|
|
16379
16379
|
var K, J;
|
|
16380
16380
|
const D = d.message.parts.find(
|
|
16381
|
-
(
|
|
16381
|
+
(pe) => pe.type === "dynamic-tool" && pe.toolCallId === w.toolCallId
|
|
16382
16382
|
), X = w, ce = D;
|
|
16383
16383
|
D != null ? (D.state = w.state, ce.toolName = w.toolName, ce.input = X.input, ce.output = X.output, ce.errorText = X.errorText, ce.rawInput = (K = X.rawInput) != null ? K : ce.rawInput, ce.preliminary = X.preliminary, w.title !== void 0 && (ce.title = w.title), ce.providerExecuted = (J = X.providerExecuted) != null ? J : D.providerExecuted, X.providerMetadata != null && (D.callProviderMetadata = X.providerMetadata)) : d.message.parts.push({
|
|
16384
16384
|
type: "dynamic-tool",
|
|
@@ -18706,7 +18706,7 @@ function SA() {
|
|
|
18706
18706
|
function ce() {
|
|
18707
18707
|
X(i);
|
|
18708
18708
|
}
|
|
18709
|
-
function
|
|
18709
|
+
function pe(le) {
|
|
18710
18710
|
var ae;
|
|
18711
18711
|
for (le = le || []; ae = L(); )
|
|
18712
18712
|
ae !== !1 && le.push(ae);
|
|
@@ -18740,9 +18740,9 @@ function SA() {
|
|
|
18740
18740
|
}
|
|
18741
18741
|
function re() {
|
|
18742
18742
|
var le = [];
|
|
18743
|
-
|
|
18743
|
+
pe(le);
|
|
18744
18744
|
for (var ae; ae = ie(); )
|
|
18745
|
-
ae !== !1 && (le.push(ae),
|
|
18745
|
+
ae !== !1 && (le.push(ae), pe(le));
|
|
18746
18746
|
return le;
|
|
18747
18747
|
}
|
|
18748
18748
|
return ce(), re();
|
|
@@ -19339,7 +19339,7 @@ function zo(e) {
|
|
|
19339
19339
|
);
|
|
19340
19340
|
}
|
|
19341
19341
|
const $f = Br(/\d/), WA = Br(/[\dA-Fa-f]/), e2 = Br(/[!-/:-@[-`{-~]/);
|
|
19342
|
-
function
|
|
19342
|
+
function ge(e) {
|
|
19343
19343
|
return e !== null && e < -2;
|
|
19344
19344
|
}
|
|
19345
19345
|
function Ke(e) {
|
|
@@ -19414,7 +19414,7 @@ function n2(e) {
|
|
|
19414
19414
|
e.exit("chunkText"), e.exit("paragraph"), e.consume(h);
|
|
19415
19415
|
return;
|
|
19416
19416
|
}
|
|
19417
|
-
return
|
|
19417
|
+
return ge(h) ? (e.consume(h), e.exit("chunkText"), s) : (e.consume(h), c);
|
|
19418
19418
|
}
|
|
19419
19419
|
}
|
|
19420
19420
|
const r2 = {
|
|
@@ -19491,7 +19491,7 @@ function i2(e) {
|
|
|
19491
19491
|
j(e.exit("chunkFlow"), !0), C(0), e.consume(w);
|
|
19492
19492
|
return;
|
|
19493
19493
|
}
|
|
19494
|
-
return
|
|
19494
|
+
return ge(w) ? (e.consume(w), j(e.exit("chunkFlow")), l = 0, n.interrupt = void 0, h) : (e.consume(w), T);
|
|
19495
19495
|
}
|
|
19496
19496
|
function j(w, K) {
|
|
19497
19497
|
const J = n.sliceStream(w);
|
|
@@ -19506,14 +19506,14 @@ function i2(e) {
|
|
|
19506
19506
|
)
|
|
19507
19507
|
return;
|
|
19508
19508
|
const X = n.events.length;
|
|
19509
|
-
let ce = X,
|
|
19509
|
+
let ce = X, pe, L;
|
|
19510
19510
|
for (; ce--; )
|
|
19511
19511
|
if (n.events[ce][0] === "exit" && n.events[ce][1].type === "chunkFlow") {
|
|
19512
|
-
if (
|
|
19512
|
+
if (pe) {
|
|
19513
19513
|
L = n.events[ce][1].end;
|
|
19514
19514
|
break;
|
|
19515
19515
|
}
|
|
19516
|
-
|
|
19516
|
+
pe = !0;
|
|
19517
19517
|
}
|
|
19518
19518
|
for (C(l), D = X; D < n.events.length; )
|
|
19519
19519
|
n.events[D][1].end = {
|
|
@@ -19678,7 +19678,7 @@ function c2(e, n, i) {
|
|
|
19678
19678
|
return Ce(s) ? Ze(e, o, "linePrefix")(s) : o(s);
|
|
19679
19679
|
}
|
|
19680
19680
|
function o(s) {
|
|
19681
|
-
return s === null ||
|
|
19681
|
+
return s === null || ge(s) ? n(s) : i(s);
|
|
19682
19682
|
}
|
|
19683
19683
|
}
|
|
19684
19684
|
const l0 = {
|
|
@@ -19782,20 +19782,20 @@ function g2(e, n, i) {
|
|
|
19782
19782
|
return D === h ? (c++, e.consume(D), y) : c < 3 ? i(D) : (e.exit("codeFencedFenceSequence"), Ce(D) ? Ze(e, g, "whitespace")(D) : g(D));
|
|
19783
19783
|
}
|
|
19784
19784
|
function g(D) {
|
|
19785
|
-
return D === null ||
|
|
19785
|
+
return D === null || ge(D) ? (e.exit("codeFencedFence"), l.interrupt ? n(D) : e.check(Iy, T, K)(D)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
19786
19786
|
contentType: "string"
|
|
19787
19787
|
}), _(D));
|
|
19788
19788
|
}
|
|
19789
19789
|
function _(D) {
|
|
19790
|
-
return D === null ||
|
|
19790
|
+
return D === null || ge(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), g(D)) : Ce(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Ze(e, b, "whitespace")(D)) : D === 96 && D === h ? i(D) : (e.consume(D), _);
|
|
19791
19791
|
}
|
|
19792
19792
|
function b(D) {
|
|
19793
|
-
return D === null ||
|
|
19793
|
+
return D === null || ge(D) ? g(D) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
19794
19794
|
contentType: "string"
|
|
19795
19795
|
}), E(D));
|
|
19796
19796
|
}
|
|
19797
19797
|
function E(D) {
|
|
19798
|
-
return D === null ||
|
|
19798
|
+
return D === null || ge(D) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), g(D)) : D === 96 && D === h ? i(D) : (e.consume(D), E);
|
|
19799
19799
|
}
|
|
19800
19800
|
function T(D) {
|
|
19801
19801
|
return e.attempt(o, K, j)(D);
|
|
@@ -19807,16 +19807,16 @@ function g2(e, n, i) {
|
|
|
19807
19807
|
return s > 0 && Ce(D) ? Ze(e, B, "linePrefix", s + 1)(D) : B(D);
|
|
19808
19808
|
}
|
|
19809
19809
|
function B(D) {
|
|
19810
|
-
return D === null ||
|
|
19810
|
+
return D === null || ge(D) ? e.check(Iy, T, K)(D) : (e.enter("codeFlowValue"), w(D));
|
|
19811
19811
|
}
|
|
19812
19812
|
function w(D) {
|
|
19813
|
-
return D === null ||
|
|
19813
|
+
return D === null || ge(D) ? (e.exit("codeFlowValue"), B(D)) : (e.consume(D), w);
|
|
19814
19814
|
}
|
|
19815
19815
|
function K(D) {
|
|
19816
19816
|
return e.exit("codeFenced"), n(D);
|
|
19817
19817
|
}
|
|
19818
19818
|
function J(D, X, ce) {
|
|
19819
|
-
let
|
|
19819
|
+
let pe = 0;
|
|
19820
19820
|
return L;
|
|
19821
19821
|
function L(fe) {
|
|
19822
19822
|
return D.enter("lineEnding"), D.consume(fe), D.exit("lineEnding"), ie;
|
|
@@ -19828,10 +19828,10 @@ function g2(e, n, i) {
|
|
|
19828
19828
|
return fe === h ? (D.enter("codeFencedFenceSequence"), le(fe)) : ce(fe);
|
|
19829
19829
|
}
|
|
19830
19830
|
function le(fe) {
|
|
19831
|
-
return fe === h ? (
|
|
19831
|
+
return fe === h ? (pe++, D.consume(fe), le) : pe >= c ? (D.exit("codeFencedFenceSequence"), Ce(fe) ? Ze(D, ae, "whitespace")(fe) : ae(fe)) : ce(fe);
|
|
19832
19832
|
}
|
|
19833
19833
|
function ae(fe) {
|
|
19834
|
-
return fe === null ||
|
|
19834
|
+
return fe === null || ge(fe) ? (D.exit("codeFencedFence"), X(fe)) : ce(fe);
|
|
19835
19835
|
}
|
|
19836
19836
|
}
|
|
19837
19837
|
}
|
|
@@ -19863,10 +19863,10 @@ function b2(e, n, i) {
|
|
|
19863
19863
|
return y && y[1].type === "linePrefix" && y[2].sliceSerialize(y[1], !0).length >= 4 ? c(d) : i(d);
|
|
19864
19864
|
}
|
|
19865
19865
|
function c(d) {
|
|
19866
|
-
return d === null ? m(d) :
|
|
19866
|
+
return d === null ? m(d) : ge(d) ? e.attempt(v2, c, m)(d) : (e.enter("codeFlowValue"), h(d));
|
|
19867
19867
|
}
|
|
19868
19868
|
function h(d) {
|
|
19869
|
-
return d === null ||
|
|
19869
|
+
return d === null || ge(d) ? (e.exit("codeFlowValue"), c(d)) : (e.consume(d), h);
|
|
19870
19870
|
}
|
|
19871
19871
|
function m(d) {
|
|
19872
19872
|
return e.exit("codeIndented"), n(d);
|
|
@@ -19876,11 +19876,11 @@ function _2(e, n, i) {
|
|
|
19876
19876
|
const l = this;
|
|
19877
19877
|
return o;
|
|
19878
19878
|
function o(c) {
|
|
19879
|
-
return l.parser.lazy[l.now().line] ? i(c) :
|
|
19879
|
+
return l.parser.lazy[l.now().line] ? i(c) : ge(c) ? (e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), o) : Ze(e, s, "linePrefix", 5)(c);
|
|
19880
19880
|
}
|
|
19881
19881
|
function s(c) {
|
|
19882
19882
|
const h = l.events[l.events.length - 1];
|
|
19883
|
-
return h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? n(c) :
|
|
19883
|
+
return h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? n(c) : ge(c) ? o(c) : i(c);
|
|
19884
19884
|
}
|
|
19885
19885
|
}
|
|
19886
19886
|
const S2 = {
|
|
@@ -19915,10 +19915,10 @@ function z2(e, n, i) {
|
|
|
19915
19915
|
return g === 96 ? (e.consume(g), l++, h) : (e.exit("codeTextSequence"), m(g));
|
|
19916
19916
|
}
|
|
19917
19917
|
function m(g) {
|
|
19918
|
-
return g === null ? i(g) : g === 32 ? (e.enter("space"), e.consume(g), e.exit("space"), m) : g === 96 ? (s = e.enter("codeTextSequence"), o = 0, y(g)) :
|
|
19918
|
+
return g === null ? i(g) : g === 32 ? (e.enter("space"), e.consume(g), e.exit("space"), m) : g === 96 ? (s = e.enter("codeTextSequence"), o = 0, y(g)) : ge(g) ? (e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), m) : (e.enter("codeTextData"), d(g));
|
|
19919
19919
|
}
|
|
19920
19920
|
function d(g) {
|
|
19921
|
-
return g === null || g === 32 || g === 96 ||
|
|
19921
|
+
return g === null || g === 32 || g === 96 || ge(g) ? (e.exit("codeTextData"), m(g)) : (e.consume(g), d);
|
|
19922
19922
|
}
|
|
19923
19923
|
function y(g) {
|
|
19924
19924
|
return g === 96 ? (e.consume(g), o++, y) : o === l ? (e.exit("codeTextSequence"), e.exit("codeText"), n(g)) : (s.type = "codeTextData", d(g));
|
|
@@ -20164,7 +20164,7 @@ function C2(e, n) {
|
|
|
20164
20164
|
}), o(h);
|
|
20165
20165
|
}
|
|
20166
20166
|
function o(h) {
|
|
20167
|
-
return h === null ? s(h) :
|
|
20167
|
+
return h === null ? s(h) : ge(h) ? e.check(A2, c, s)(h) : (e.consume(h), o);
|
|
20168
20168
|
}
|
|
20169
20169
|
function s(h) {
|
|
20170
20170
|
return e.exit("chunkContent"), e.exit("content"), n(h);
|
|
@@ -20183,7 +20183,7 @@ function N2(e, n, i) {
|
|
|
20183
20183
|
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), Ze(e, s, "linePrefix");
|
|
20184
20184
|
}
|
|
20185
20185
|
function s(c) {
|
|
20186
|
-
if (c === null ||
|
|
20186
|
+
if (c === null || ge(c))
|
|
20187
20187
|
return i(c);
|
|
20188
20188
|
const h = l.events[l.events.length - 1];
|
|
20189
20189
|
return !l.parser.constructs.disable.null.includes("codeIndented") && h && h[1].type === "linePrefix" && h[2].sliceSerialize(h[1], !0).length >= 4 ? n(c) : e.interrupt(l.parser.constructs.flow, i, n)(c);
|
|
@@ -20204,7 +20204,7 @@ function c0(e, n, i, l, o, s, c, h, m) {
|
|
|
20204
20204
|
}), b(C));
|
|
20205
20205
|
}
|
|
20206
20206
|
function b(C) {
|
|
20207
|
-
return C === 62 ? (e.exit("chunkString"), e.exit(h), _(C)) : C === null || C === 60 ||
|
|
20207
|
+
return C === 62 ? (e.exit("chunkString"), e.exit(h), _(C)) : C === null || C === 60 || ge(C) ? i(C) : (e.consume(C), C === 92 ? E : b);
|
|
20208
20208
|
}
|
|
20209
20209
|
function E(C) {
|
|
20210
20210
|
return C === 60 || C === 62 || C === 92 ? (e.consume(C), b) : b(C);
|
|
@@ -20229,12 +20229,12 @@ function f0(e, n, i, l, o, s) {
|
|
|
20229
20229
|
// which doesn’t need this.
|
|
20230
20230
|
// Hidden footnotes hook.
|
|
20231
20231
|
/* c8 ignore next 3 */
|
|
20232
|
-
b === 94 && !h && "_hiddenFootnoteSupport" in c.parser.constructs ? i(b) : b === 93 ? (e.exit(s), e.enter(o), e.consume(b), e.exit(o), e.exit(l), n) :
|
|
20232
|
+
b === 94 && !h && "_hiddenFootnoteSupport" in c.parser.constructs ? i(b) : b === 93 ? (e.exit(s), e.enter(o), e.consume(b), e.exit(o), e.exit(l), n) : ge(b) ? (e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), y) : (e.enter("chunkString", {
|
|
20233
20233
|
contentType: "string"
|
|
20234
20234
|
}), g(b));
|
|
20235
20235
|
}
|
|
20236
20236
|
function g(b) {
|
|
20237
|
-
return b === null || b === 91 || b === 93 ||
|
|
20237
|
+
return b === null || b === 91 || b === 93 || ge(b) || h++ > 999 ? (e.exit("chunkString"), y(b)) : (e.consume(b), m || (m = !Ce(b)), b === 92 ? _ : g);
|
|
20238
20238
|
}
|
|
20239
20239
|
function _(b) {
|
|
20240
20240
|
return b === 91 || b === 92 || b === 93 ? (e.consume(b), h++, g) : g(b);
|
|
@@ -20250,12 +20250,12 @@ function h0(e, n, i, l, o, s) {
|
|
|
20250
20250
|
return _ === c ? (e.enter(o), e.consume(_), e.exit(o), e.exit(l), n) : (e.enter(s), d(_));
|
|
20251
20251
|
}
|
|
20252
20252
|
function d(_) {
|
|
20253
|
-
return _ === c ? (e.exit(s), m(c)) : _ === null ? i(_) :
|
|
20253
|
+
return _ === c ? (e.exit(s), m(c)) : _ === null ? i(_) : ge(_) ? (e.enter("lineEnding"), e.consume(_), e.exit("lineEnding"), Ze(e, d, "linePrefix")) : (e.enter("chunkString", {
|
|
20254
20254
|
contentType: "string"
|
|
20255
20255
|
}), y(_));
|
|
20256
20256
|
}
|
|
20257
20257
|
function y(_) {
|
|
20258
|
-
return _ === c || _ === null ||
|
|
20258
|
+
return _ === c || _ === null || ge(_) ? (e.exit("chunkString"), d(_)) : (e.consume(_), _ === 92 ? g : y);
|
|
20259
20259
|
}
|
|
20260
20260
|
function g(_) {
|
|
20261
20261
|
return _ === c || _ === 92 ? (e.consume(_), y) : y(_);
|
|
@@ -20265,7 +20265,7 @@ function zl(e, n) {
|
|
|
20265
20265
|
let i;
|
|
20266
20266
|
return l;
|
|
20267
20267
|
function l(o) {
|
|
20268
|
-
return
|
|
20268
|
+
return ge(o) ? (e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), i = !0, l) : Ce(o) ? Ze(e, l, i ? "linePrefix" : "lineSuffix")(o) : n(o);
|
|
20269
20269
|
}
|
|
20270
20270
|
}
|
|
20271
20271
|
const D2 = {
|
|
@@ -20320,7 +20320,7 @@ function R2(e, n, i) {
|
|
|
20320
20320
|
return Ce(b) ? Ze(e, _, "whitespace")(b) : _(b);
|
|
20321
20321
|
}
|
|
20322
20322
|
function _(b) {
|
|
20323
|
-
return b === null ||
|
|
20323
|
+
return b === null || ge(b) ? (e.exit("definition"), l.parser.defined.push(o), n(b)) : i(b);
|
|
20324
20324
|
}
|
|
20325
20325
|
}
|
|
20326
20326
|
function j2(e, n, i) {
|
|
@@ -20335,7 +20335,7 @@ function j2(e, n, i) {
|
|
|
20335
20335
|
return Ce(h) ? Ze(e, c, "whitespace")(h) : c(h);
|
|
20336
20336
|
}
|
|
20337
20337
|
function c(h) {
|
|
20338
|
-
return h === null ||
|
|
20338
|
+
return h === null || ge(h) ? n(h) : i(h);
|
|
20339
20339
|
}
|
|
20340
20340
|
}
|
|
20341
20341
|
const U2 = {
|
|
@@ -20348,7 +20348,7 @@ function Z2(e, n, i) {
|
|
|
20348
20348
|
return e.enter("hardBreakEscape"), e.consume(s), o;
|
|
20349
20349
|
}
|
|
20350
20350
|
function o(s) {
|
|
20351
|
-
return
|
|
20351
|
+
return ge(s) ? (e.exit("hardBreakEscape"), n(s)) : i(s);
|
|
20352
20352
|
}
|
|
20353
20353
|
}
|
|
20354
20354
|
const L2 = {
|
|
@@ -20382,7 +20382,7 @@ function B2(e, n, i) {
|
|
|
20382
20382
|
return y === 35 && l++ < 6 ? (e.consume(y), c) : y === null || Ke(y) ? (e.exit("atxHeadingSequence"), h(y)) : i(y);
|
|
20383
20383
|
}
|
|
20384
20384
|
function h(y) {
|
|
20385
|
-
return y === 35 ? (e.enter("atxHeadingSequence"), m(y)) : y === null ||
|
|
20385
|
+
return y === 35 ? (e.enter("atxHeadingSequence"), m(y)) : y === null || ge(y) ? (e.exit("atxHeading"), n(y)) : Ce(y) ? Ze(e, h, "whitespace")(y) : (e.enter("atxHeadingText"), d(y));
|
|
20386
20386
|
}
|
|
20387
20387
|
function m(y) {
|
|
20388
20388
|
return y === 35 ? (e.consume(y), m) : (e.exit("atxHeadingSequence"), h(y));
|
|
@@ -20524,22 +20524,22 @@ function G2(e, n, i) {
|
|
|
20524
20524
|
return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? i(x) : x === 34 || x === 39 ? (e.consume(x), m = x, X) : Ce(x) ? (e.consume(x), D) : ce(x);
|
|
20525
20525
|
}
|
|
20526
20526
|
function X(x) {
|
|
20527
|
-
return x === m ? (e.consume(x), m = null,
|
|
20527
|
+
return x === m ? (e.consume(x), m = null, pe) : x === null || ge(x) ? i(x) : (e.consume(x), X);
|
|
20528
20528
|
}
|
|
20529
20529
|
function ce(x) {
|
|
20530
20530
|
return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || Ke(x) ? J(x) : (e.consume(x), ce);
|
|
20531
20531
|
}
|
|
20532
|
-
function
|
|
20532
|
+
function pe(x) {
|
|
20533
20533
|
return x === 47 || x === 62 || Ce(x) ? w(x) : i(x);
|
|
20534
20534
|
}
|
|
20535
20535
|
function L(x) {
|
|
20536
20536
|
return x === 62 ? (e.consume(x), ie) : i(x);
|
|
20537
20537
|
}
|
|
20538
20538
|
function ie(x) {
|
|
20539
|
-
return x === null ||
|
|
20539
|
+
return x === null || ge(x) ? re(x) : Ce(x) ? (e.consume(x), ie) : i(x);
|
|
20540
20540
|
}
|
|
20541
20541
|
function re(x) {
|
|
20542
|
-
return x === 45 && o === 2 ? (e.consume(x), Z) : x === 60 && o === 1 ? (e.consume(x), F) : x === 62 && o === 4 ? (e.consume(x), A) : x === 63 && o === 3 ? (e.consume(x), z) : x === 93 && o === 5 ? (e.consume(x),
|
|
20542
|
+
return x === 45 && o === 2 ? (e.consume(x), Z) : x === 60 && o === 1 ? (e.consume(x), F) : x === 62 && o === 4 ? (e.consume(x), A) : x === 63 && o === 3 ? (e.consume(x), z) : x === 93 && o === 5 ? (e.consume(x), he) : ge(x) && (o === 6 || o === 7) ? (e.exit("htmlFlowData"), e.check($2, H, le)(x)) : x === null || ge(x) ? (e.exit("htmlFlowData"), le(x)) : (e.consume(x), re);
|
|
20543
20543
|
}
|
|
20544
20544
|
function le(x) {
|
|
20545
20545
|
return e.check(V2, ae, H)(x);
|
|
@@ -20548,7 +20548,7 @@ function G2(e, n, i) {
|
|
|
20548
20548
|
return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), fe;
|
|
20549
20549
|
}
|
|
20550
20550
|
function fe(x) {
|
|
20551
|
-
return x === null ||
|
|
20551
|
+
return x === null || ge(x) ? le(x) : (e.enter("htmlFlowData"), re(x));
|
|
20552
20552
|
}
|
|
20553
20553
|
function Z(x) {
|
|
20554
20554
|
return x === 45 ? (e.consume(x), z) : re(x);
|
|
@@ -20563,14 +20563,14 @@ function G2(e, n, i) {
|
|
|
20563
20563
|
}
|
|
20564
20564
|
return Lt(x) && c.length < 8 ? (e.consume(x), c += String.fromCharCode(x), te) : re(x);
|
|
20565
20565
|
}
|
|
20566
|
-
function
|
|
20566
|
+
function he(x) {
|
|
20567
20567
|
return x === 93 ? (e.consume(x), z) : re(x);
|
|
20568
20568
|
}
|
|
20569
20569
|
function z(x) {
|
|
20570
20570
|
return x === 62 ? (e.consume(x), A) : x === 45 && o === 2 ? (e.consume(x), z) : re(x);
|
|
20571
20571
|
}
|
|
20572
20572
|
function A(x) {
|
|
20573
|
-
return x === null ||
|
|
20573
|
+
return x === null || ge(x) ? (e.exit("htmlFlowData"), H(x)) : (e.consume(x), A);
|
|
20574
20574
|
}
|
|
20575
20575
|
function H(x) {
|
|
20576
20576
|
return e.exit("htmlFlow"), n(x);
|
|
@@ -20580,7 +20580,7 @@ function X2(e, n, i) {
|
|
|
20580
20580
|
const l = this;
|
|
20581
20581
|
return o;
|
|
20582
20582
|
function o(c) {
|
|
20583
|
-
return
|
|
20583
|
+
return ge(c) ? (e.enter("lineEnding"), e.consume(c), e.exit("lineEnding"), s) : i(c);
|
|
20584
20584
|
}
|
|
20585
20585
|
function s(c) {
|
|
20586
20586
|
return l.parser.lazy[l.now().line] ? i(c) : n(c);
|
|
@@ -20613,7 +20613,7 @@ function Q2(e, n, i) {
|
|
|
20613
20613
|
return z === 45 ? (e.consume(z), b) : i(z);
|
|
20614
20614
|
}
|
|
20615
20615
|
function g(z) {
|
|
20616
|
-
return z === null ? i(z) : z === 45 ? (e.consume(z), _) :
|
|
20616
|
+
return z === null ? i(z) : z === 45 ? (e.consume(z), _) : ge(z) ? (c = g, F(z)) : (e.consume(z), g);
|
|
20617
20617
|
}
|
|
20618
20618
|
function _(z) {
|
|
20619
20619
|
return z === 45 ? (e.consume(z), b) : g(z);
|
|
@@ -20626,7 +20626,7 @@ function Q2(e, n, i) {
|
|
|
20626
20626
|
return z === A.charCodeAt(s++) ? (e.consume(z), s === A.length ? T : E) : i(z);
|
|
20627
20627
|
}
|
|
20628
20628
|
function T(z) {
|
|
20629
|
-
return z === null ? i(z) : z === 93 ? (e.consume(z), j) :
|
|
20629
|
+
return z === null ? i(z) : z === 93 ? (e.consume(z), j) : ge(z) ? (c = T, F(z)) : (e.consume(z), T);
|
|
20630
20630
|
}
|
|
20631
20631
|
function j(z) {
|
|
20632
20632
|
return z === 93 ? (e.consume(z), C) : T(z);
|
|
@@ -20635,10 +20635,10 @@ function Q2(e, n, i) {
|
|
|
20635
20635
|
return z === 62 ? Z(z) : z === 93 ? (e.consume(z), C) : T(z);
|
|
20636
20636
|
}
|
|
20637
20637
|
function B(z) {
|
|
20638
|
-
return z === null || z === 62 ? Z(z) :
|
|
20638
|
+
return z === null || z === 62 ? Z(z) : ge(z) ? (c = B, F(z)) : (e.consume(z), B);
|
|
20639
20639
|
}
|
|
20640
20640
|
function w(z) {
|
|
20641
|
-
return z === null ? i(z) : z === 63 ? (e.consume(z), K) :
|
|
20641
|
+
return z === null ? i(z) : z === 63 ? (e.consume(z), K) : ge(z) ? (c = w, F(z)) : (e.consume(z), w);
|
|
20642
20642
|
}
|
|
20643
20643
|
function K(z) {
|
|
20644
20644
|
return z === 62 ? Z(z) : w(z);
|
|
@@ -20650,31 +20650,31 @@ function Q2(e, n, i) {
|
|
|
20650
20650
|
return z === 45 || Ct(z) ? (e.consume(z), D) : X(z);
|
|
20651
20651
|
}
|
|
20652
20652
|
function X(z) {
|
|
20653
|
-
return
|
|
20653
|
+
return ge(z) ? (c = X, F(z)) : Ce(z) ? (e.consume(z), X) : Z(z);
|
|
20654
20654
|
}
|
|
20655
20655
|
function ce(z) {
|
|
20656
|
-
return z === 45 || Ct(z) ? (e.consume(z), ce) : z === 47 || z === 62 || Ke(z) ?
|
|
20656
|
+
return z === 45 || Ct(z) ? (e.consume(z), ce) : z === 47 || z === 62 || Ke(z) ? pe(z) : i(z);
|
|
20657
20657
|
}
|
|
20658
|
-
function
|
|
20659
|
-
return z === 47 ? (e.consume(z), Z) : z === 58 || z === 95 || Lt(z) ? (e.consume(z), L) :
|
|
20658
|
+
function pe(z) {
|
|
20659
|
+
return z === 47 ? (e.consume(z), Z) : z === 58 || z === 95 || Lt(z) ? (e.consume(z), L) : ge(z) ? (c = pe, F(z)) : Ce(z) ? (e.consume(z), pe) : Z(z);
|
|
20660
20660
|
}
|
|
20661
20661
|
function L(z) {
|
|
20662
20662
|
return z === 45 || z === 46 || z === 58 || z === 95 || Ct(z) ? (e.consume(z), L) : ie(z);
|
|
20663
20663
|
}
|
|
20664
20664
|
function ie(z) {
|
|
20665
|
-
return z === 61 ? (e.consume(z), re) :
|
|
20665
|
+
return z === 61 ? (e.consume(z), re) : ge(z) ? (c = ie, F(z)) : Ce(z) ? (e.consume(z), ie) : pe(z);
|
|
20666
20666
|
}
|
|
20667
20667
|
function re(z) {
|
|
20668
|
-
return z === null || z === 60 || z === 61 || z === 62 || z === 96 ? i(z) : z === 34 || z === 39 ? (e.consume(z), o = z, le) :
|
|
20668
|
+
return z === null || z === 60 || z === 61 || z === 62 || z === 96 ? i(z) : z === 34 || z === 39 ? (e.consume(z), o = z, le) : ge(z) ? (c = re, F(z)) : Ce(z) ? (e.consume(z), re) : (e.consume(z), ae);
|
|
20669
20669
|
}
|
|
20670
20670
|
function le(z) {
|
|
20671
|
-
return z === o ? (e.consume(z), o = void 0, fe) : z === null ? i(z) :
|
|
20671
|
+
return z === o ? (e.consume(z), o = void 0, fe) : z === null ? i(z) : ge(z) ? (c = le, F(z)) : (e.consume(z), le);
|
|
20672
20672
|
}
|
|
20673
20673
|
function ae(z) {
|
|
20674
|
-
return z === null || z === 34 || z === 39 || z === 60 || z === 61 || z === 96 ? i(z) : z === 47 || z === 62 || Ke(z) ?
|
|
20674
|
+
return z === null || z === 34 || z === 39 || z === 60 || z === 61 || z === 96 ? i(z) : z === 47 || z === 62 || Ke(z) ? pe(z) : (e.consume(z), ae);
|
|
20675
20675
|
}
|
|
20676
20676
|
function fe(z) {
|
|
20677
|
-
return z === 47 || z === 62 || Ke(z) ?
|
|
20677
|
+
return z === 47 || z === 62 || Ke(z) ? pe(z) : i(z);
|
|
20678
20678
|
}
|
|
20679
20679
|
function Z(z) {
|
|
20680
20680
|
return z === 62 ? (e.consume(z), e.exit("htmlTextData"), e.exit("htmlText"), n) : i(z);
|
|
@@ -20683,9 +20683,9 @@ function Q2(e, n, i) {
|
|
|
20683
20683
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(z), e.exit("lineEnding"), te;
|
|
20684
20684
|
}
|
|
20685
20685
|
function te(z) {
|
|
20686
|
-
return Ce(z) ? Ze(e,
|
|
20686
|
+
return Ce(z) ? Ze(e, he, "linePrefix", l.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : he(z);
|
|
20687
20687
|
}
|
|
20688
|
-
function
|
|
20688
|
+
function he(z) {
|
|
20689
20689
|
return e.enter("htmlTextData"), c(z);
|
|
20690
20690
|
}
|
|
20691
20691
|
}
|
|
@@ -20887,7 +20887,7 @@ function fO(e, n, i) {
|
|
|
20887
20887
|
return o = d, h(d);
|
|
20888
20888
|
}
|
|
20889
20889
|
function h(d) {
|
|
20890
|
-
return d === o ? (e.enter("thematicBreakSequence"), m(d)) : l >= 3 && (d === null ||
|
|
20890
|
+
return d === o ? (e.enter("thematicBreakSequence"), m(d)) : l >= 3 && (d === null || ge(d)) ? (e.exit("thematicBreak"), n(d)) : i(d);
|
|
20891
20891
|
}
|
|
20892
20892
|
function m(d) {
|
|
20893
20893
|
return d === o ? (e.consume(d), l++, m) : (e.exit("thematicBreakSequence"), Ce(d) ? Ze(e, h, "whitespace")(d) : h(d));
|
|
@@ -21025,7 +21025,7 @@ function _O(e, n, i) {
|
|
|
21025
21025
|
return d === o ? (e.consume(d), h) : (e.exit("setextHeadingLineSequence"), Ce(d) ? Ze(e, m, "lineSuffix")(d) : m(d));
|
|
21026
21026
|
}
|
|
21027
21027
|
function m(d) {
|
|
21028
|
-
return d === null ||
|
|
21028
|
+
return d === null || ge(d) ? (e.exit("setextHeadingLine"), n(d)) : i(d);
|
|
21029
21029
|
}
|
|
21030
21030
|
}
|
|
21031
21031
|
const SO = {
|
|
@@ -21285,7 +21285,7 @@ function ZO(e, n, i) {
|
|
|
21285
21285
|
y = y(ie);
|
|
21286
21286
|
}
|
|
21287
21287
|
function B(ie) {
|
|
21288
|
-
|
|
21288
|
+
ge(ie) ? (l.line++, l.column = 1, l.offset += ie === -3 ? 2 : 1, L()) : ie !== -1 && (l.column++, l.offset++), l._bufferIndex < 0 ? l._index++ : (l._bufferIndex++, l._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
21289
21289
|
// strings.
|
|
21290
21290
|
/** @type {string} */
|
|
21291
21291
|
c[l._index].length && (l._bufferIndex = -1, l._index++)), d.previous = ie;
|
|
@@ -21307,7 +21307,7 @@ function ZO(e, n, i) {
|
|
|
21307
21307
|
function X(ie, re) {
|
|
21308
21308
|
return le;
|
|
21309
21309
|
function le(ae, fe, Z) {
|
|
21310
|
-
let F, te,
|
|
21310
|
+
let F, te, he, z;
|
|
21311
21311
|
return Array.isArray(ae) ? (
|
|
21312
21312
|
/* c8 ignore next 1 */
|
|
21313
21313
|
H(ae)
|
|
@@ -21318,10 +21318,10 @@ function ZO(e, n, i) {
|
|
|
21318
21318
|
ae
|
|
21319
21319
|
])
|
|
21320
21320
|
) : A(ae);
|
|
21321
|
-
function A(
|
|
21321
|
+
function A(de) {
|
|
21322
21322
|
return Ne;
|
|
21323
21323
|
function Ne(ut) {
|
|
21324
|
-
const Ye = ut !== null &&
|
|
21324
|
+
const Ye = ut !== null && de[ut], sn = ut !== null && de.null, In = [
|
|
21325
21325
|
// To do: add more extension tests.
|
|
21326
21326
|
/* c8 ignore next 2 */
|
|
21327
21327
|
...Array.isArray(Ye) ? Ye : Ye ? [Ye] : [],
|
|
@@ -21330,13 +21330,13 @@ function ZO(e, n, i) {
|
|
|
21330
21330
|
return H(In)(ut);
|
|
21331
21331
|
}
|
|
21332
21332
|
}
|
|
21333
|
-
function H(
|
|
21334
|
-
return F =
|
|
21333
|
+
function H(de) {
|
|
21334
|
+
return F = de, te = 0, de.length === 0 ? Z : x(de[te]);
|
|
21335
21335
|
}
|
|
21336
|
-
function x(
|
|
21336
|
+
function x(de) {
|
|
21337
21337
|
return Ne;
|
|
21338
21338
|
function Ne(ut) {
|
|
21339
|
-
return z =
|
|
21339
|
+
return z = pe(), he = de, de.partial || (d.currentConstruct = de), de.name && d.parser.constructs.disable.null.includes(de.name) ? be() : de.tokenize.call(
|
|
21340
21340
|
// If we do have fields, create an object w/ `context` as its
|
|
21341
21341
|
// prototype.
|
|
21342
21342
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
@@ -21347,10 +21347,10 @@ function ZO(e, n, i) {
|
|
|
21347
21347
|
)(ut);
|
|
21348
21348
|
}
|
|
21349
21349
|
}
|
|
21350
|
-
function ne(
|
|
21351
|
-
return ie(
|
|
21350
|
+
function ne(de) {
|
|
21351
|
+
return ie(he, z), fe;
|
|
21352
21352
|
}
|
|
21353
|
-
function be(
|
|
21353
|
+
function be(de) {
|
|
21354
21354
|
return z.restore(), ++te < F.length ? x(F[te]) : Z;
|
|
21355
21355
|
}
|
|
21356
21356
|
}
|
|
@@ -21358,7 +21358,7 @@ function ZO(e, n, i) {
|
|
|
21358
21358
|
function ce(ie, re) {
|
|
21359
21359
|
ie.resolveAll && !s.includes(ie) && s.push(ie), ie.resolve && un(d.events, re, d.events.length - re, ie.resolve(d.events.slice(re), d)), ie.resolveTo && (d.events = ie.resolveTo(d.events, d));
|
|
21360
21360
|
}
|
|
21361
|
-
function
|
|
21361
|
+
function pe() {
|
|
21362
21362
|
const ie = E(), re = d.previous, le = d.currentConstruct, ae = d.events.length, fe = Array.from(h);
|
|
21363
21363
|
return {
|
|
21364
21364
|
from: ae,
|
|
@@ -21512,20 +21512,20 @@ function XO(e) {
|
|
|
21512
21512
|
canContainEols: ["emphasis", "fragment", "heading", "paragraph", "strong"],
|
|
21513
21513
|
enter: {
|
|
21514
21514
|
autolink: s(di),
|
|
21515
|
-
autolinkProtocol:
|
|
21516
|
-
autolinkEmail:
|
|
21515
|
+
autolinkProtocol: pe,
|
|
21516
|
+
autolinkEmail: pe,
|
|
21517
21517
|
atxHeading: s(hi),
|
|
21518
21518
|
blockQuote: s(sn),
|
|
21519
|
-
characterEscape:
|
|
21520
|
-
characterReference:
|
|
21519
|
+
characterEscape: pe,
|
|
21520
|
+
characterReference: pe,
|
|
21521
21521
|
codeFenced: s(In),
|
|
21522
21522
|
codeFencedFenceInfo: c,
|
|
21523
21523
|
codeFencedFenceMeta: c,
|
|
21524
21524
|
codeIndented: s(In, c),
|
|
21525
21525
|
codeText: s(_a, c),
|
|
21526
|
-
codeTextData:
|
|
21527
|
-
data:
|
|
21528
|
-
codeFlowValue:
|
|
21526
|
+
codeTextData: pe,
|
|
21527
|
+
data: pe,
|
|
21528
|
+
codeFlowValue: pe,
|
|
21529
21529
|
definition: s(Il),
|
|
21530
21530
|
definitionDestinationString: c,
|
|
21531
21531
|
definitionLabelString: c,
|
|
@@ -21534,9 +21534,9 @@ function XO(e) {
|
|
|
21534
21534
|
hardBreakEscape: s(pi),
|
|
21535
21535
|
hardBreakTrailing: s(pi),
|
|
21536
21536
|
htmlFlow: s(Bl, c),
|
|
21537
|
-
htmlFlowData:
|
|
21537
|
+
htmlFlowData: pe,
|
|
21538
21538
|
htmlText: s(Bl, c),
|
|
21539
|
-
htmlTextData:
|
|
21539
|
+
htmlTextData: pe,
|
|
21540
21540
|
image: s(Hl),
|
|
21541
21541
|
label: c,
|
|
21542
21542
|
link: s(di),
|
|
@@ -21563,7 +21563,7 @@ function XO(e) {
|
|
|
21563
21563
|
characterEscapeValue: L,
|
|
21564
21564
|
characterReferenceMarkerHexadecimal: be,
|
|
21565
21565
|
characterReferenceMarkerNumeric: be,
|
|
21566
|
-
characterReferenceValue:
|
|
21566
|
+
characterReferenceValue: de,
|
|
21567
21567
|
characterReference: Ne,
|
|
21568
21568
|
codeFenced: m(j),
|
|
21569
21569
|
codeFencedFence: T,
|
|
@@ -21586,7 +21586,7 @@ function XO(e) {
|
|
|
21586
21586
|
htmlText: m(ae),
|
|
21587
21587
|
htmlTextData: L,
|
|
21588
21588
|
image: m(F),
|
|
21589
|
-
label:
|
|
21589
|
+
label: he,
|
|
21590
21590
|
labelText: te,
|
|
21591
21591
|
lineEnding: ie,
|
|
21592
21592
|
link: m(Z),
|
|
@@ -21802,7 +21802,7 @@ function XO(e) {
|
|
|
21802
21802
|
function ce() {
|
|
21803
21803
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
21804
21804
|
}
|
|
21805
|
-
function
|
|
21805
|
+
function pe(V) {
|
|
21806
21806
|
const _e = this.stack[this.stack.length - 1].children;
|
|
21807
21807
|
let Te = _e[_e.length - 1];
|
|
21808
21808
|
(!Te || Te.type !== "text") && (Te = Dt(), Te.position = {
|
|
@@ -21822,7 +21822,7 @@ function XO(e) {
|
|
|
21822
21822
|
_e.position.end = Dr(V.end), this.data.atHardBreak = void 0;
|
|
21823
21823
|
return;
|
|
21824
21824
|
}
|
|
21825
|
-
!this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(W.type) && (
|
|
21825
|
+
!this.data.setextHeadingSlurpLineEnding && n.canContainEols.includes(W.type) && (pe.call(this, V), L.call(this, V));
|
|
21826
21826
|
}
|
|
21827
21827
|
function re() {
|
|
21828
21828
|
this.data.atHardBreak = !0;
|
|
@@ -21861,7 +21861,7 @@ function XO(e) {
|
|
|
21861
21861
|
const W = this.sliceSerialize(V), _e = this.stack[this.stack.length - 2];
|
|
21862
21862
|
_e.label = VO(W), _e.identifier = On(W).toLowerCase();
|
|
21863
21863
|
}
|
|
21864
|
-
function
|
|
21864
|
+
function he() {
|
|
21865
21865
|
const V = this.stack[this.stack.length - 1], W = this.resume(), _e = this.stack[this.stack.length - 1];
|
|
21866
21866
|
if (this.data.inReference = !0, _e.type === "link") {
|
|
21867
21867
|
const Te = V.children;
|
|
@@ -21890,7 +21890,7 @@ function XO(e) {
|
|
|
21890
21890
|
function be(V) {
|
|
21891
21891
|
this.data.characterReferenceType = V.type;
|
|
21892
21892
|
}
|
|
21893
|
-
function
|
|
21893
|
+
function de(V) {
|
|
21894
21894
|
const W = this.sliceSerialize(V), _e = this.data.characterReferenceType;
|
|
21895
21895
|
let Te;
|
|
21896
21896
|
_e ? (Te = a0(W, _e === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Te = mh(W);
|
|
@@ -25995,7 +25995,7 @@ function bD(e, n, i) {
|
|
|
25995
25995
|
return L === 124 || (c = !0, s += 1), y(L);
|
|
25996
25996
|
}
|
|
25997
25997
|
function y(L) {
|
|
25998
|
-
return L === null ? i(L) :
|
|
25998
|
+
return L === null ? i(L) : ge(L) ? s > 1 ? (s = 0, l.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(L), e.exit("lineEnding"), b) : i(L) : Ce(L) ? Ze(e, y, "whitespace")(L) : (s += 1, c && (c = !1, o += 1), L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), c = !0, y) : (e.enter("data"), g(L)));
|
|
25999
25999
|
}
|
|
26000
26000
|
function g(L) {
|
|
26001
26001
|
return L === null || L === 124 || Ke(L) ? (e.exit("data"), y(L)) : (e.consume(L), L === 92 ? _ : g);
|
|
@@ -26013,7 +26013,7 @@ function bD(e, n, i) {
|
|
|
26013
26013
|
return Ce(L) ? Ze(e, j, "whitespace")(L) : j(L);
|
|
26014
26014
|
}
|
|
26015
26015
|
function j(L) {
|
|
26016
|
-
return L === 58 ? (s += 1, c = !0, e.enter("tableDelimiterMarker"), e.consume(L), e.exit("tableDelimiterMarker"), C) : L === 45 ? (s += 1, C(L)) : L === null ||
|
|
26016
|
+
return L === 58 ? (s += 1, c = !0, e.enter("tableDelimiterMarker"), e.consume(L), e.exit("tableDelimiterMarker"), C) : L === 45 ? (s += 1, C(L)) : L === null || ge(L) ? K(L) : J(L);
|
|
26017
26017
|
}
|
|
26018
26018
|
function C(L) {
|
|
26019
26019
|
return L === 45 ? (e.enter("tableDelimiterFiller"), B(L)) : J(L);
|
|
@@ -26025,7 +26025,7 @@ function bD(e, n, i) {
|
|
|
26025
26025
|
return Ce(L) ? Ze(e, K, "whitespace")(L) : K(L);
|
|
26026
26026
|
}
|
|
26027
26027
|
function K(L) {
|
|
26028
|
-
return L === 124 ? E(L) : L === null ||
|
|
26028
|
+
return L === 124 ? E(L) : L === null || ge(L) ? !c || o !== s ? J(L) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), n(L)) : J(L);
|
|
26029
26029
|
}
|
|
26030
26030
|
function J(L) {
|
|
26031
26031
|
return i(L);
|
|
@@ -26034,12 +26034,12 @@ function bD(e, n, i) {
|
|
|
26034
26034
|
return e.enter("tableRow"), X(L);
|
|
26035
26035
|
}
|
|
26036
26036
|
function X(L) {
|
|
26037
|
-
return L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), X) : L === null ||
|
|
26037
|
+
return L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), X) : L === null || ge(L) ? (e.exit("tableRow"), n(L)) : Ce(L) ? Ze(e, X, "whitespace")(L) : (e.enter("data"), ce(L));
|
|
26038
26038
|
}
|
|
26039
26039
|
function ce(L) {
|
|
26040
|
-
return L === null || L === 124 || Ke(L) ? (e.exit("data"), X(L)) : (e.consume(L), L === 92 ?
|
|
26040
|
+
return L === null || L === 124 || Ke(L) ? (e.exit("data"), X(L)) : (e.consume(L), L === 92 ? pe : ce);
|
|
26041
26041
|
}
|
|
26042
|
-
function
|
|
26042
|
+
function pe(L) {
|
|
26043
26043
|
return L === 92 || L === 124 ? (e.consume(L), ce) : ce(L);
|
|
26044
26044
|
}
|
|
26045
26045
|
}
|
|
@@ -26129,7 +26129,7 @@ function ED(e, n, i) {
|
|
|
26129
26129
|
return m === 93 ? (e.enter("taskListCheckMarker"), e.consume(m), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), h) : i(m);
|
|
26130
26130
|
}
|
|
26131
26131
|
function h(m) {
|
|
26132
|
-
return
|
|
26132
|
+
return ge(m) ? n(m) : Ce(m) ? e.check({
|
|
26133
26133
|
tokenize: zD
|
|
26134
26134
|
}, n, i)(m) : i(m);
|
|
26135
26135
|
}
|
|
@@ -26389,12 +26389,16 @@ function J0({
|
|
|
26389
26389
|
actions: h,
|
|
26390
26390
|
theme: m
|
|
26391
26391
|
}) {
|
|
26392
|
-
const [d, y] = we.useState(o === "chat"), g = we.useRef(
|
|
26392
|
+
const [d, y] = we.useState(o === "chat"), g = we.useRef(new Set(
|
|
26393
|
+
X.flatMap(
|
|
26394
|
+
(te) => te.parts.filter((he) => he.type.startsWith("tool-")).map((he) => he.toolCallId).filter(Boolean)
|
|
26395
|
+
)
|
|
26396
|
+
)), [_, b] = we.useState(null), [E, T] = we.useState("english"), [j, C] = we.useState(null), B = we.useMemo(() => MD(i), [i]), w = we.useMemo(() => RD(i), [i]), K = B ? `messages-${B}` : "messages", J = hf[E] || hf.english, D = n || "Need any help?", [X] = we.useState(() => {
|
|
26393
26397
|
const te = sessionStorage.getItem(K);
|
|
26394
26398
|
if (te)
|
|
26395
26399
|
try {
|
|
26396
|
-
const
|
|
26397
|
-
if (Array.isArray(
|
|
26400
|
+
const he = JSON.parse(te);
|
|
26401
|
+
if (Array.isArray(he) && he.length > 0) return he;
|
|
26398
26402
|
} catch {
|
|
26399
26403
|
}
|
|
26400
26404
|
return [
|
|
@@ -26414,16 +26418,16 @@ function J0({
|
|
|
26414
26418
|
body: {
|
|
26415
26419
|
...c ? { context: c } : {},
|
|
26416
26420
|
...h ? {
|
|
26417
|
-
actions: h.map(({ name: te, description:
|
|
26421
|
+
actions: h.map(({ name: te, description: he, parameters: z }) => ({
|
|
26418
26422
|
name: te,
|
|
26419
|
-
description:
|
|
26423
|
+
description: he,
|
|
26420
26424
|
parameters: z
|
|
26421
26425
|
}))
|
|
26422
26426
|
} : {}
|
|
26423
26427
|
}
|
|
26424
26428
|
}),
|
|
26425
26429
|
[i, l, s, c, h]
|
|
26426
|
-
), { messages:
|
|
26430
|
+
), { messages: pe, sendMessage: L, status: ie, stop: re } = VT({
|
|
26427
26431
|
id: B || "widget",
|
|
26428
26432
|
messages: X,
|
|
26429
26433
|
transport: ce,
|
|
@@ -26432,38 +26436,45 @@ function J0({
|
|
|
26432
26436
|
}
|
|
26433
26437
|
});
|
|
26434
26438
|
we.useEffect(() => {
|
|
26435
|
-
|
|
26439
|
+
pe.length > 0 && sessionStorage.setItem(
|
|
26436
26440
|
K,
|
|
26437
26441
|
JSON.stringify(
|
|
26438
|
-
|
|
26442
|
+
pe.map((te) => ({ id: te.id, role: te.role, parts: te.parts }))
|
|
26439
26443
|
)
|
|
26440
26444
|
);
|
|
26441
|
-
}, [
|
|
26445
|
+
}, [pe, K]), we.useEffect(() => {
|
|
26442
26446
|
if (!(!h || h.length === 0)) {
|
|
26443
|
-
for (const te of
|
|
26444
|
-
for (const
|
|
26445
|
-
if (
|
|
26446
|
-
const z =
|
|
26447
|
-
if (
|
|
26448
|
-
|
|
26447
|
+
for (const te of pe)
|
|
26448
|
+
for (const he of te.parts)
|
|
26449
|
+
if (he.type.startsWith("tool-")) {
|
|
26450
|
+
const z = he, A = z.toolName || he.type.slice(5);
|
|
26451
|
+
if (console.log("[agentsgt-widget] Tool part detected:", {
|
|
26452
|
+
type: he.type,
|
|
26453
|
+
toolName: A,
|
|
26454
|
+
state: z.state,
|
|
26455
|
+
toolCallId: z.toolCallId,
|
|
26456
|
+
input: z.input
|
|
26457
|
+
}), z.state === "output-available" && !g.current.has(z.toolCallId)) {
|
|
26458
|
+
const H = h.find((x) => x.name === A);
|
|
26449
26459
|
if (H) {
|
|
26450
|
-
g.current.add(z.toolCallId);
|
|
26460
|
+
console.log(`[agentsgt-widget] Executing action "${A}"`, z.input), g.current.add(z.toolCallId);
|
|
26451
26461
|
try {
|
|
26452
26462
|
H.handler(z.input);
|
|
26453
26463
|
} catch (x) {
|
|
26454
26464
|
console.error(`[agentsgt-widget] Action "${H.name}" failed:`, x);
|
|
26455
26465
|
}
|
|
26456
|
-
}
|
|
26466
|
+
} else
|
|
26467
|
+
console.warn(`[agentsgt-widget] No matching action for "${A}"`);
|
|
26457
26468
|
}
|
|
26458
26469
|
}
|
|
26459
26470
|
}
|
|
26460
|
-
}, [
|
|
26461
|
-
|
|
26462
|
-
}, [
|
|
26471
|
+
}, [pe, h]), we.useEffect(() => {
|
|
26472
|
+
pe.length > 1 && C(null);
|
|
26473
|
+
}, [pe.length]), we.useEffect(() => {
|
|
26463
26474
|
B && (async () => {
|
|
26464
26475
|
var te;
|
|
26465
26476
|
try {
|
|
26466
|
-
const
|
|
26477
|
+
const he = await fetch(
|
|
26467
26478
|
`${w}/api/v1/agents/agent/${B}`,
|
|
26468
26479
|
{
|
|
26469
26480
|
headers: {
|
|
@@ -26472,8 +26483,8 @@ function J0({
|
|
|
26472
26483
|
}
|
|
26473
26484
|
}
|
|
26474
26485
|
);
|
|
26475
|
-
if (
|
|
26476
|
-
const z = await
|
|
26486
|
+
if (he.ok) {
|
|
26487
|
+
const z = await he.json();
|
|
26477
26488
|
b(z.data);
|
|
26478
26489
|
const A = ((te = z.data.language) == null ? void 0 : te.toLowerCase()) || "english", H = Object.keys(hf);
|
|
26479
26490
|
T(
|
|
@@ -26499,7 +26510,7 @@ function J0({
|
|
|
26499
26510
|
/* @__PURE__ */ P.jsx(
|
|
26500
26511
|
ND,
|
|
26501
26512
|
{
|
|
26502
|
-
messages:
|
|
26513
|
+
messages: pe,
|
|
26503
26514
|
status: ie,
|
|
26504
26515
|
isLoading: le,
|
|
26505
26516
|
errorMessage: j
|