@multiplayer-app/ai-agent-react 0.1.0-beta.51 → 0.1.0-beta.53
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.
|
@@ -272,7 +272,7 @@ function Z7() {
|
|
|
272
272
|
}
|
|
273
273
|
var M = !1, S = !1, x = !1, z = !1, H = !1, C;
|
|
274
274
|
C = Symbol.for("react.module.reference");
|
|
275
|
-
function
|
|
275
|
+
function L(U) {
|
|
276
276
|
return !!(typeof U == "string" || typeof U == "function" || U === r || U === i || H || U === a || U === u || U === d || z || U === h || M || S || x || typeof U == "object" && U !== null && (U.$$typeof === m || U.$$typeof === p || U.$$typeof === o || U.$$typeof === s || U.$$typeof === l || // This needs to include all possible module reference object
|
|
277
277
|
// types supported by any Flight configuration anywhere since
|
|
278
278
|
// we don't know which Flight build this will end up being used
|
|
@@ -334,14 +334,14 @@ function Z7() {
|
|
|
334
334
|
}
|
|
335
335
|
return null;
|
|
336
336
|
}
|
|
337
|
-
var G = Object.assign, R = 0, B, P,
|
|
337
|
+
var G = Object.assign, R = 0, B, P, D, K, A, Q, ee;
|
|
338
338
|
function O() {
|
|
339
339
|
}
|
|
340
340
|
O.__reactDisabledLog = !0;
|
|
341
341
|
function ue() {
|
|
342
342
|
{
|
|
343
343
|
if (R === 0) {
|
|
344
|
-
B = console.log, P = console.info,
|
|
344
|
+
B = console.log, P = console.info, D = console.warn, K = console.error, A = console.group, Q = console.groupCollapsed, ee = console.groupEnd;
|
|
345
345
|
var U = {
|
|
346
346
|
configurable: !0,
|
|
347
347
|
enumerable: !0,
|
|
@@ -377,7 +377,7 @@ function Z7() {
|
|
|
377
377
|
value: P
|
|
378
378
|
}),
|
|
379
379
|
warn: G({}, U, {
|
|
380
|
-
value:
|
|
380
|
+
value: D
|
|
381
381
|
}),
|
|
382
382
|
error: G({}, U, {
|
|
383
383
|
value: K
|
|
@@ -780,7 +780,7 @@ Check the top-level render call using <` + ye + ">.");
|
|
|
780
780
|
var a2 = {};
|
|
781
781
|
function i2(U, ie, ye, Oe, tt, ot) {
|
|
782
782
|
{
|
|
783
|
-
var We =
|
|
783
|
+
var We = L(U);
|
|
784
784
|
if (!We) {
|
|
785
785
|
var je = "";
|
|
786
786
|
(U === void 0 || typeof U == "object" && U !== null && Object.keys(U).length === 0) && (je += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -1747,8 +1747,8 @@ class cs {
|
|
|
1747
1747
|
const C = JSON.parse(z).choices?.[0]?.delta;
|
|
1748
1748
|
if (!C)
|
|
1749
1749
|
continue;
|
|
1750
|
-
const
|
|
1751
|
-
|
|
1750
|
+
const L = C.content ?? "", W = C.reasoning ?? "";
|
|
1751
|
+
L && (w.content += L, n({
|
|
1752
1752
|
type: Nn.Message,
|
|
1753
1753
|
message: { ...w }
|
|
1754
1754
|
})), W && (y += W, n({
|
|
@@ -29241,12 +29241,12 @@ const N8e = function(e) {
|
|
|
29241
29241
|
const _ = Fr(a), k = gr(s), v = Fr(s) === s, M = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), S = m || (v || !y ? [no(s)] : L6e(s)), x = f !== "none";
|
|
29242
29242
|
!m && x && S.push(...F6e(s, y, f, M));
|
|
29243
29243
|
const z = [s, ...S], H = await s3(t, w), C = [];
|
|
29244
|
-
let
|
|
29244
|
+
let L = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
29245
29245
|
if (d && C.push(H[_]), p) {
|
|
29246
29246
|
const G = O6e(a, o, M);
|
|
29247
29247
|
C.push(H[G[0]], H[G[1]]);
|
|
29248
29248
|
}
|
|
29249
|
-
if (
|
|
29249
|
+
if (L = [...L, {
|
|
29250
29250
|
placement: a,
|
|
29251
29251
|
overflows: C
|
|
29252
29252
|
}], !C.every((G) => G <= 0)) {
|
|
@@ -29254,30 +29254,30 @@ const N8e = function(e) {
|
|
|
29254
29254
|
const G = (((W = i.flip) == null ? void 0 : W.index) || 0) + 1, R = z[G];
|
|
29255
29255
|
if (R && (!(p === "alignment" ? k !== gr(R) : !1) || // We leave the current main axis only if every placement on that axis
|
|
29256
29256
|
// overflows the main axis.
|
|
29257
|
-
|
|
29257
|
+
L.every((D) => gr(D.placement) === k ? D.overflows[0] > 0 : !0)))
|
|
29258
29258
|
return {
|
|
29259
29259
|
data: {
|
|
29260
29260
|
index: G,
|
|
29261
|
-
overflows:
|
|
29261
|
+
overflows: L
|
|
29262
29262
|
},
|
|
29263
29263
|
reset: {
|
|
29264
29264
|
placement: R
|
|
29265
29265
|
}
|
|
29266
29266
|
};
|
|
29267
|
-
let B = (Y =
|
|
29267
|
+
let B = (Y = L.filter((P) => P.overflows[0] <= 0).sort((P, D) => P.overflows[1] - D.overflows[1])[0]) == null ? void 0 : Y.placement;
|
|
29268
29268
|
if (!B)
|
|
29269
29269
|
switch (h) {
|
|
29270
29270
|
case "bestFit": {
|
|
29271
29271
|
var J;
|
|
29272
|
-
const P = (J =
|
|
29272
|
+
const P = (J = L.filter((D) => {
|
|
29273
29273
|
if (x) {
|
|
29274
|
-
const K = gr(
|
|
29274
|
+
const K = gr(D.placement);
|
|
29275
29275
|
return K === k || // Create a bias to the `y` side axis due to horizontal
|
|
29276
29276
|
// reading directions favoring greater width.
|
|
29277
29277
|
K === "y";
|
|
29278
29278
|
}
|
|
29279
29279
|
return !0;
|
|
29280
|
-
}).map((
|
|
29280
|
+
}).map((D) => [D.placement, D.overflows.filter((K) => K > 0).reduce((K, A) => K + A, 0)]).sort((D, K) => D[1] - K[1])[0]) == null ? void 0 : J[0];
|
|
29281
29281
|
P && (B = P);
|
|
29282
29282
|
break;
|
|
29283
29283
|
}
|
|
@@ -29859,19 +29859,19 @@ function e7e(e) {
|
|
|
29859
29859
|
isPositioned: !1
|
|
29860
29860
|
}), [m, h] = te.useState(r);
|
|
29861
29861
|
io(m, r) || h(r);
|
|
29862
|
-
const [f, y] = te.useState(null), [w, _] = te.useState(null), k = te.useCallback((
|
|
29863
|
-
|
|
29864
|
-
}, []), v = te.useCallback((
|
|
29865
|
-
|
|
29866
|
-
}, []), M = i || f, S = o || w, x = te.useRef(null), z = te.useRef(null), H = te.useRef(d), C = l != null,
|
|
29862
|
+
const [f, y] = te.useState(null), [w, _] = te.useState(null), k = te.useCallback((D) => {
|
|
29863
|
+
D !== x.current && (x.current = D, y(D));
|
|
29864
|
+
}, []), v = te.useCallback((D) => {
|
|
29865
|
+
D !== z.current && (z.current = D, _(D));
|
|
29866
|
+
}, []), M = i || f, S = o || w, x = te.useRef(null), z = te.useRef(null), H = te.useRef(d), C = l != null, L = gs(l), W = gs(a), Y = gs(u), J = te.useCallback(() => {
|
|
29867
29867
|
if (!x.current || !z.current)
|
|
29868
29868
|
return;
|
|
29869
|
-
const
|
|
29869
|
+
const D = {
|
|
29870
29870
|
placement: t,
|
|
29871
29871
|
strategy: n,
|
|
29872
29872
|
middleware: m
|
|
29873
29873
|
};
|
|
29874
|
-
W.current && (
|
|
29874
|
+
W.current && (D.platform = W.current), X8e(x.current, z.current, D).then((K) => {
|
|
29875
29875
|
const A = {
|
|
29876
29876
|
...K,
|
|
29877
29877
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -29886,8 +29886,8 @@ function e7e(e) {
|
|
|
29886
29886
|
});
|
|
29887
29887
|
}, [m, t, n, W, Y]);
|
|
29888
29888
|
Hi(() => {
|
|
29889
|
-
u === !1 && H.current.isPositioned && (H.current.isPositioned = !1, p((
|
|
29890
|
-
...
|
|
29889
|
+
u === !1 && H.current.isPositioned && (H.current.isPositioned = !1, p((D) => ({
|
|
29890
|
+
...D,
|
|
29891
29891
|
isPositioned: !1
|
|
29892
29892
|
})));
|
|
29893
29893
|
}, [u]);
|
|
@@ -29896,11 +29896,11 @@ function e7e(e) {
|
|
|
29896
29896
|
G.current = !1;
|
|
29897
29897
|
}), []), Hi(() => {
|
|
29898
29898
|
if (M && (x.current = M), S && (z.current = S), M && S) {
|
|
29899
|
-
if (
|
|
29900
|
-
return
|
|
29899
|
+
if (L.current)
|
|
29900
|
+
return L.current(M, S, J);
|
|
29901
29901
|
J();
|
|
29902
29902
|
}
|
|
29903
|
-
}, [M, S, J,
|
|
29903
|
+
}, [M, S, J, L, C]);
|
|
29904
29904
|
const R = te.useMemo(() => ({
|
|
29905
29905
|
reference: x,
|
|
29906
29906
|
floating: z,
|
|
@@ -29910,16 +29910,16 @@ function e7e(e) {
|
|
|
29910
29910
|
reference: M,
|
|
29911
29911
|
floating: S
|
|
29912
29912
|
}), [M, S]), P = te.useMemo(() => {
|
|
29913
|
-
const
|
|
29913
|
+
const D = {
|
|
29914
29914
|
position: n,
|
|
29915
29915
|
left: 0,
|
|
29916
29916
|
top: 0
|
|
29917
29917
|
};
|
|
29918
29918
|
if (!B.floating)
|
|
29919
|
-
return
|
|
29919
|
+
return D;
|
|
29920
29920
|
const K = S2(B.floating, d.x), A = S2(B.floating, d.y);
|
|
29921
29921
|
return s ? {
|
|
29922
|
-
...
|
|
29922
|
+
...D,
|
|
29923
29923
|
transform: "translate(" + K + "px, " + A + "px)",
|
|
29924
29924
|
...m3(B.floating) >= 1.5 && {
|
|
29925
29925
|
willChange: "transform"
|
|
@@ -30042,19 +30042,19 @@ function u7e(e, t) {
|
|
|
30042
30042
|
restMs: p = 0,
|
|
30043
30043
|
move: m = !0
|
|
30044
30044
|
} = t, h = Oo(), f = Io(), y = tr(u), w = tr(l), _ = tr(n), k = tr(p), v = te.useRef(), M = te.useRef(-1), S = te.useRef(), x = te.useRef(-1), z = te.useRef(!0), H = te.useRef(!1), C = te.useRef(() => {
|
|
30045
|
-
}),
|
|
30045
|
+
}), L = te.useRef(!1), W = cn(() => {
|
|
30046
30046
|
var P;
|
|
30047
|
-
const
|
|
30048
|
-
return
|
|
30047
|
+
const D = (P = a.current.openEvent) == null ? void 0 : P.type;
|
|
30048
|
+
return D?.includes("mouse") && D !== "mousedown";
|
|
30049
30049
|
});
|
|
30050
30050
|
te.useEffect(() => {
|
|
30051
30051
|
if (!s)
|
|
30052
30052
|
return;
|
|
30053
|
-
function P(
|
|
30053
|
+
function P(D) {
|
|
30054
30054
|
let {
|
|
30055
30055
|
open: K
|
|
30056
|
-
} =
|
|
30057
|
-
K || (mn(M), mn(x), z.current = !0,
|
|
30056
|
+
} = D;
|
|
30057
|
+
K || (mn(M), mn(x), z.current = !0, L.current = !1);
|
|
30058
30058
|
}
|
|
30059
30059
|
return i.on("openchange", P), () => {
|
|
30060
30060
|
i.off("openchange", P);
|
|
@@ -30065,15 +30065,15 @@ function u7e(e, t) {
|
|
|
30065
30065
|
function P(K) {
|
|
30066
30066
|
W() && r(!1, K, "hover");
|
|
30067
30067
|
}
|
|
30068
|
-
const
|
|
30069
|
-
return
|
|
30070
|
-
|
|
30068
|
+
const D = An(o.floating).documentElement;
|
|
30069
|
+
return D.addEventListener("mouseleave", P), () => {
|
|
30070
|
+
D.removeEventListener("mouseleave", P);
|
|
30071
30071
|
};
|
|
30072
30072
|
}, [o.floating, n, r, s, y, W]);
|
|
30073
|
-
const Y = te.useCallback(function(P,
|
|
30074
|
-
|
|
30073
|
+
const Y = te.useCallback(function(P, D, K) {
|
|
30074
|
+
D === void 0 && (D = !0), K === void 0 && (K = "hover");
|
|
30075
30075
|
const A = bs(w.current, "close", v.current);
|
|
30076
|
-
A && !S.current ? (mn(M), M.current = window.setTimeout(() => r(!1, P, K), A)) :
|
|
30076
|
+
A && !S.current ? (mn(M), M.current = window.setTimeout(() => r(!1, P, K), A)) : D && (mn(M), r(!1, P, K));
|
|
30077
30077
|
}, [w, r]), J = cn(() => {
|
|
30078
30078
|
C.current(), S.current = void 0;
|
|
30079
30079
|
}), G = cn(() => {
|
|
@@ -30093,14 +30093,14 @@ function u7e(e, t) {
|
|
|
30093
30093
|
_.current || r(!0, ee, "hover");
|
|
30094
30094
|
}, O) : n || r(!0, ee, "hover");
|
|
30095
30095
|
}
|
|
30096
|
-
function
|
|
30096
|
+
function D(ee) {
|
|
30097
30097
|
if (R()) {
|
|
30098
30098
|
G();
|
|
30099
30099
|
return;
|
|
30100
30100
|
}
|
|
30101
30101
|
C.current();
|
|
30102
30102
|
const O = An(o.floating);
|
|
30103
|
-
if (mn(x),
|
|
30103
|
+
if (mn(x), L.current = !1, y.current && a.current.floatingContext) {
|
|
30104
30104
|
n || mn(M), S.current = y.current({
|
|
30105
30105
|
...a.current.floatingContext,
|
|
30106
30106
|
tree: h,
|
|
@@ -30139,8 +30139,8 @@ function u7e(e, t) {
|
|
|
30139
30139
|
const ee = o.domReference, O = o.floating;
|
|
30140
30140
|
return n && ee.addEventListener("mouseleave", K), m && ee.addEventListener("mousemove", P, {
|
|
30141
30141
|
once: !0
|
|
30142
|
-
}), ee.addEventListener("mouseenter", P), ee.addEventListener("mouseleave",
|
|
30143
|
-
n && ee.removeEventListener("mouseleave", K), m && ee.removeEventListener("mousemove", P), ee.removeEventListener("mouseenter", P), ee.removeEventListener("mouseleave",
|
|
30142
|
+
}), ee.addEventListener("mouseenter", P), ee.addEventListener("mouseleave", D), O && (O.addEventListener("mouseleave", K), O.addEventListener("mouseenter", A), O.addEventListener("mouseleave", Q)), () => {
|
|
30143
|
+
n && ee.removeEventListener("mouseleave", K), m && ee.removeEventListener("mousemove", P), ee.removeEventListener("mouseenter", P), ee.removeEventListener("mouseleave", D), O && (O.removeEventListener("mouseleave", K), O.removeEventListener("mouseenter", A), O.removeEventListener("mouseleave", Q));
|
|
30144
30144
|
};
|
|
30145
30145
|
}
|
|
30146
30146
|
}, [o, s, e, d, m, Y, J, G, r, n, _, h, w, y, a, R, k]), Dt(() => {
|
|
@@ -30149,35 +30149,35 @@ function u7e(e, t) {
|
|
|
30149
30149
|
H.current = !0;
|
|
30150
30150
|
const K = o.floating;
|
|
30151
30151
|
if (dt(o.domReference) && K) {
|
|
30152
|
-
var
|
|
30152
|
+
var D;
|
|
30153
30153
|
const A = An(o.floating).body;
|
|
30154
30154
|
A.setAttribute(R2, "");
|
|
30155
|
-
const Q = o.domReference, ee = h == null || (
|
|
30155
|
+
const Q = o.domReference, ee = h == null || (D = h.nodesRef.current.find((O) => O.id === f)) == null || (D = D.context) == null ? void 0 : D.elements.floating;
|
|
30156
30156
|
return ee && (ee.style.pointerEvents = ""), A.style.pointerEvents = "none", Q.style.pointerEvents = "auto", K.style.pointerEvents = "auto", () => {
|
|
30157
30157
|
A.style.pointerEvents = "", Q.style.pointerEvents = "", K.style.pointerEvents = "";
|
|
30158
30158
|
};
|
|
30159
30159
|
}
|
|
30160
30160
|
}
|
|
30161
30161
|
}, [s, n, f, o, h, y, W]), Dt(() => {
|
|
30162
|
-
n || (v.current = void 0,
|
|
30162
|
+
n || (v.current = void 0, L.current = !1, J(), G());
|
|
30163
30163
|
}, [n, J, G]), te.useEffect(() => () => {
|
|
30164
30164
|
J(), mn(M), mn(x), G();
|
|
30165
30165
|
}, [s, o.domReference, J, G]);
|
|
30166
30166
|
const B = te.useMemo(() => {
|
|
30167
|
-
function P(
|
|
30168
|
-
v.current =
|
|
30167
|
+
function P(D) {
|
|
30168
|
+
v.current = D.pointerType;
|
|
30169
30169
|
}
|
|
30170
30170
|
return {
|
|
30171
30171
|
onPointerDown: P,
|
|
30172
30172
|
onPointerEnter: P,
|
|
30173
|
-
onMouseMove(
|
|
30173
|
+
onMouseMove(D) {
|
|
30174
30174
|
const {
|
|
30175
30175
|
nativeEvent: K
|
|
30176
|
-
} =
|
|
30176
|
+
} = D;
|
|
30177
30177
|
function A() {
|
|
30178
30178
|
!z.current && !_.current && r(!0, K, "hover");
|
|
30179
30179
|
}
|
|
30180
|
-
d && !Ha(v.current) || n || ks(k.current) === 0 ||
|
|
30180
|
+
d && !Ha(v.current) || n || ks(k.current) === 0 || L.current && D.movementX ** 2 + D.movementY ** 2 < 2 || (mn(x), v.current === "touch" ? A() : (L.current = !0, x.current = window.setTimeout(A, ks(k.current))));
|
|
30181
30181
|
}
|
|
30182
30182
|
};
|
|
30183
30183
|
}, [d, r, n, _, k]);
|
|
@@ -30423,14 +30423,14 @@ function Mp(e, t) {
|
|
|
30423
30423
|
return;
|
|
30424
30424
|
const B = (R = i.current.floatingContext) == null ? void 0 : R.nodeId, P = y ? La(y.nodesRef.current, B) : [];
|
|
30425
30425
|
if (!v && (G.stopPropagation(), P.length > 0)) {
|
|
30426
|
-
let
|
|
30426
|
+
let D = !0;
|
|
30427
30427
|
if (P.forEach((K) => {
|
|
30428
30428
|
var A;
|
|
30429
30429
|
if ((A = K.context) != null && A.open && !K.context.dataRef.current.__escapeKeyBubbles) {
|
|
30430
|
-
|
|
30430
|
+
D = !1;
|
|
30431
30431
|
return;
|
|
30432
30432
|
}
|
|
30433
|
-
}), !
|
|
30433
|
+
}), !D)
|
|
30434
30434
|
return;
|
|
30435
30435
|
}
|
|
30436
30436
|
r(!1, d8e(G) ? G.nativeEvent : G, "escape-key");
|
|
@@ -30441,28 +30441,28 @@ function Mp(e, t) {
|
|
|
30441
30441
|
H(G), (P = ea(G)) == null || P.removeEventListener("keydown", B);
|
|
30442
30442
|
};
|
|
30443
30443
|
(R = ea(G)) == null || R.addEventListener("keydown", B);
|
|
30444
|
-
}),
|
|
30444
|
+
}), L = cn((G) => {
|
|
30445
30445
|
var R;
|
|
30446
30446
|
const B = i.current.insideReactTree;
|
|
30447
30447
|
i.current.insideReactTree = !1;
|
|
30448
30448
|
const P = k.current;
|
|
30449
30449
|
if (k.current = !1, u === "click" && P || B || typeof _ == "function" && !_(G))
|
|
30450
30450
|
return;
|
|
30451
|
-
const
|
|
30452
|
-
let Q = dt(
|
|
30451
|
+
const D = ea(G), K = "[" + ri("inert") + "]", A = An(a.floating).querySelectorAll(K);
|
|
30452
|
+
let Q = dt(D) ? D : null;
|
|
30453
30453
|
for (; Q && !ar(Q); ) {
|
|
30454
30454
|
const ge = sr(Q);
|
|
30455
30455
|
if (ar(ge) || !dt(ge))
|
|
30456
30456
|
break;
|
|
30457
30457
|
Q = ge;
|
|
30458
30458
|
}
|
|
30459
|
-
if (A.length && dt(
|
|
30460
|
-
!Pr(
|
|
30459
|
+
if (A.length && dt(D) && !s8e(D) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
30460
|
+
!Pr(D, a.floating) && // If the target root element contains none of the markers, then the
|
|
30461
30461
|
// element was injected after the floating element rendered.
|
|
30462
30462
|
Array.from(A).every((ge) => !Pr(Q, ge)))
|
|
30463
30463
|
return;
|
|
30464
|
-
if (Pt(
|
|
30465
|
-
const ge = ar(
|
|
30464
|
+
if (Pt(D) && J) {
|
|
30465
|
+
const ge = ar(D), be = _n(D), Ie = /auto|scroll/, De = ge || Ie.test(be.overflowX), Ue = ge || Ie.test(be.overflowY), ne = De && D.clientWidth > 0 && D.scrollWidth > D.clientWidth, we = Ue && D.clientHeight > 0 && D.scrollHeight > D.clientHeight, Xe = be.direction === "rtl", Qe = we && (Xe ? G.offsetX <= D.offsetWidth - D.clientWidth : G.offsetX > D.clientWidth), _e = ne && G.offsetY > D.clientHeight;
|
|
30466
30466
|
if (Qe || _e)
|
|
30467
30467
|
return;
|
|
30468
30468
|
}
|
|
@@ -30489,7 +30489,7 @@ function Mp(e, t) {
|
|
|
30489
30489
|
var R;
|
|
30490
30490
|
const B = () => {
|
|
30491
30491
|
var P;
|
|
30492
|
-
|
|
30492
|
+
L(G), (P = ea(G)) == null || P.removeEventListener(u, B);
|
|
30493
30493
|
};
|
|
30494
30494
|
(R = ea(G)) == null || R.addEventListener(u, B);
|
|
30495
30495
|
});
|
|
@@ -30514,22 +30514,22 @@ function Mp(e, t) {
|
|
|
30514
30514
|
So() ? 5 : 0
|
|
30515
30515
|
);
|
|
30516
30516
|
}
|
|
30517
|
-
const
|
|
30518
|
-
s && (
|
|
30517
|
+
const D = An(a.floating);
|
|
30518
|
+
s && (D.addEventListener("keydown", S ? C : H, S), D.addEventListener("compositionstart", B), D.addEventListener("compositionend", P)), _ && D.addEventListener(u, x ? W : L, x);
|
|
30519
30519
|
let K = [];
|
|
30520
30520
|
return m && (dt(a.domReference) && (K = kr(a.domReference)), dt(a.floating) && (K = K.concat(kr(a.floating))), !dt(a.reference) && a.reference && a.reference.contextElement && (K = K.concat(kr(a.reference.contextElement)))), K = K.filter((A) => {
|
|
30521
30521
|
var Q;
|
|
30522
|
-
return A !== ((Q =
|
|
30522
|
+
return A !== ((Q = D.defaultView) == null ? void 0 : Q.visualViewport);
|
|
30523
30523
|
}), K.forEach((A) => {
|
|
30524
30524
|
A.addEventListener("scroll", R, {
|
|
30525
30525
|
passive: !0
|
|
30526
30526
|
});
|
|
30527
30527
|
}), () => {
|
|
30528
|
-
s && (
|
|
30528
|
+
s && (D.removeEventListener("keydown", S ? C : H, S), D.removeEventListener("compositionstart", B), D.removeEventListener("compositionend", P)), _ && D.removeEventListener(u, x ? W : L, x), K.forEach((A) => {
|
|
30529
30529
|
A.removeEventListener("scroll", R);
|
|
30530
30530
|
}), window.clearTimeout(G);
|
|
30531
30531
|
};
|
|
30532
|
-
}, [i, a, s, _, u, n, r, m, o, v, M, H, S, C,
|
|
30532
|
+
}, [i, a, s, _, u, n, r, m, o, v, M, H, S, C, L, x, W]), te.useEffect(() => {
|
|
30533
30533
|
i.current.insideReactTree = !1;
|
|
30534
30534
|
}, [i, _, u]);
|
|
30535
30535
|
const Y = te.useMemo(() => ({
|
|
@@ -30843,7 +30843,7 @@ function _7e(e, t) {
|
|
|
30843
30843
|
scrollItemIntoView: z = !0,
|
|
30844
30844
|
virtualItemRef: H,
|
|
30845
30845
|
itemSizes: C,
|
|
30846
|
-
dense:
|
|
30846
|
+
dense: L = !1
|
|
30847
30847
|
} = t;
|
|
30848
30848
|
process.env.NODE_ENV !== "production" && (p && (m || ys("`useListNavigation` looping must be enabled to allow escaping."), y || ys("`useListNavigation` must be virtual to allow escaping.")), M === "vertical" && x > 1 && ys("In grid list navigation mode (`cols` > 1), the `orientation` should", 'be either "horizontal" or "both".'));
|
|
30849
30849
|
const W = a3(a.floating), Y = tr(W), J = Io(), G = Oo();
|
|
@@ -30851,8 +30851,8 @@ function _7e(e, t) {
|
|
|
30851
30851
|
e.dataRef.current.orientation = M;
|
|
30852
30852
|
}, [e, M]);
|
|
30853
30853
|
const R = cn(() => {
|
|
30854
|
-
l(
|
|
30855
|
-
}), B = l8e(a.domReference), P = te.useRef(w),
|
|
30854
|
+
l(D.current === -1 ? null : D.current);
|
|
30855
|
+
}), B = l8e(a.domReference), P = te.useRef(w), D = te.useRef(d ?? -1), K = te.useRef(null), A = te.useRef(!0), Q = te.useRef(R), ee = te.useRef(!!a.floating), O = te.useRef(n), ue = te.useRef(!1), ge = te.useRef(!1), be = tr(v), Ie = tr(n), De = tr(z), Ue = tr(d), [ne, we] = te.useState(), [Xe, Qe] = te.useState(), _e = cn(() => {
|
|
30856
30856
|
function ve(q) {
|
|
30857
30857
|
if (y) {
|
|
30858
30858
|
var Z;
|
|
@@ -30863,9 +30863,9 @@ function _7e(e, t) {
|
|
|
30863
30863
|
preventScroll: !0
|
|
30864
30864
|
});
|
|
30865
30865
|
}
|
|
30866
|
-
const Fe = o.current[
|
|
30866
|
+
const Fe = o.current[D.current], xe = ge.current;
|
|
30867
30867
|
Fe && ve(Fe), (ue.current ? (q) => q() : requestAnimationFrame)(() => {
|
|
30868
|
-
const q = o.current[
|
|
30868
|
+
const q = o.current[D.current] || Fe;
|
|
30869
30869
|
if (!q)
|
|
30870
30870
|
return;
|
|
30871
30871
|
Fe || ve(q);
|
|
@@ -30877,21 +30877,21 @@ function _7e(e, t) {
|
|
|
30877
30877
|
});
|
|
30878
30878
|
});
|
|
30879
30879
|
Dt(() => {
|
|
30880
|
-
u && (n && a.floating ? P.current && d != null && (ge.current = !0,
|
|
30880
|
+
u && (n && a.floating ? P.current && d != null && (ge.current = !0, D.current = d, R()) : ee.current && (D.current = -1, Q.current()));
|
|
30881
30881
|
}, [u, n, a.floating, d, R]), Dt(() => {
|
|
30882
30882
|
if (u && n && a.floating)
|
|
30883
30883
|
if (s == null) {
|
|
30884
30884
|
if (ue.current = !1, Ue.current != null)
|
|
30885
30885
|
return;
|
|
30886
|
-
if (ee.current && (
|
|
30886
|
+
if (ee.current && (D.current = -1, _e()), (!O.current || !ee.current) && P.current && (K.current != null || P.current === !0 && K.current == null)) {
|
|
30887
30887
|
let ve = 0;
|
|
30888
30888
|
const Fe = () => {
|
|
30889
|
-
o.current[0] == null ? (ve < 2 && (ve ? requestAnimationFrame : queueMicrotask)(Fe), ve++) : (
|
|
30889
|
+
o.current[0] == null ? (ve < 2 && (ve ? requestAnimationFrame : queueMicrotask)(Fe), ve++) : (D.current = K.current == null || ws(K.current, M, f) || h ? hs(o, be.current) : v2(o, be.current), K.current = null, R());
|
|
30890
30890
|
};
|
|
30891
30891
|
Fe();
|
|
30892
30892
|
}
|
|
30893
30893
|
} else
|
|
30894
|
-
Da(o, s) || (
|
|
30894
|
+
Da(o, s) || (D.current = s, _e(), ge.current = !1);
|
|
30895
30895
|
}, [u, n, a.floating, s, Ue, h, o, M, f, R, _e, be]), Dt(() => {
|
|
30896
30896
|
var ve;
|
|
30897
30897
|
if (!u || a.floating || !G || y || !ee.current)
|
|
@@ -30919,7 +30919,7 @@ function _7e(e, t) {
|
|
|
30919
30919
|
if (!Ie.current)
|
|
30920
30920
|
return;
|
|
30921
30921
|
const Ye = o.current.indexOf(xe);
|
|
30922
|
-
Ye !== -1 &&
|
|
30922
|
+
Ye !== -1 && D.current !== Ye && (D.current = Ye, R());
|
|
30923
30923
|
}
|
|
30924
30924
|
return {
|
|
30925
30925
|
onFocus(xe) {
|
|
@@ -30947,7 +30947,7 @@ function _7e(e, t) {
|
|
|
30947
30947
|
let {
|
|
30948
30948
|
pointerType: Ye
|
|
30949
30949
|
} = xe;
|
|
30950
|
-
if (!(!A.current || Ye === "touch") && (ue.current = !0, !!_ && (
|
|
30950
|
+
if (!(!A.current || Ye === "touch") && (ue.current = !0, !!_ && (D.current = -1, R(), !y))) {
|
|
30951
30951
|
var q;
|
|
30952
30952
|
(q = Y.current) == null || q.focus({
|
|
30953
30953
|
preventScroll: !0
|
|
@@ -30965,14 +30965,14 @@ function _7e(e, t) {
|
|
|
30965
30965
|
gi(ve.key, qe()) || fn(ve), r(!1, ve.nativeEvent, "list-navigation"), Pt(a.domReference) && (y ? G?.events.emit("virtualfocus", a.domReference) : a.domReference.focus());
|
|
30966
30966
|
return;
|
|
30967
30967
|
}
|
|
30968
|
-
const Fe =
|
|
30969
|
-
if (B || (ve.key === "Home" && (fn(ve),
|
|
30968
|
+
const Fe = D.current, xe = hs(o, v), Ye = v2(o, v);
|
|
30969
|
+
if (B || (ve.key === "Home" && (fn(ve), D.current = xe, R()), ve.key === "End" && (fn(ve), D.current = Ye, R())), x > 1) {
|
|
30970
30970
|
const q = C || Array.from({
|
|
30971
30971
|
length: o.current.length
|
|
30972
30972
|
}, () => ({
|
|
30973
30973
|
width: 1,
|
|
30974
30974
|
height: 1
|
|
30975
|
-
})), Z = v8e(q, x,
|
|
30975
|
+
})), Z = v8e(q, x, L), se = Z.findIndex((He) => He != null && !Ui(o, He, v)), pe = Z.reduce((He, At, Ct) => At != null && !Ui(o, At, v) ? Ct : He, -1), Ne = Z[k8e({
|
|
30976
30976
|
current: Z.map((He) => He != null ? o.current[He] : null)
|
|
30977
30977
|
}, {
|
|
30978
30978
|
event: ve,
|
|
@@ -30986,7 +30986,7 @@ function _7e(e, t) {
|
|
|
30986
30986
|
minIndex: se,
|
|
30987
30987
|
maxIndex: pe,
|
|
30988
30988
|
prevIndex: _8e(
|
|
30989
|
-
|
|
30989
|
+
D.current > Ye ? xe : D.current,
|
|
30990
30990
|
q,
|
|
30991
30991
|
Z,
|
|
30992
30992
|
x,
|
|
@@ -30997,29 +30997,29 @@ function _7e(e, t) {
|
|
|
30997
30997
|
),
|
|
30998
30998
|
stopEvent: !0
|
|
30999
30999
|
})];
|
|
31000
|
-
if (Ne != null && (
|
|
31000
|
+
if (Ne != null && (D.current = Ne, R()), M === "both")
|
|
31001
31001
|
return;
|
|
31002
31002
|
}
|
|
31003
31003
|
if (gi(ve.key, M)) {
|
|
31004
31004
|
if (fn(ve), n && !y && Ua(ve.currentTarget.ownerDocument) === ve.currentTarget) {
|
|
31005
|
-
|
|
31005
|
+
D.current = ws(ve.key, M, f) ? xe : Ye, R();
|
|
31006
31006
|
return;
|
|
31007
31007
|
}
|
|
31008
|
-
ws(ve.key, M, f) ? m ?
|
|
31008
|
+
ws(ve.key, M, f) ? m ? D.current = Fe >= Ye ? p && Fe !== o.current.length ? -1 : xe : $t(o, {
|
|
31009
31009
|
startingIndex: Fe,
|
|
31010
31010
|
disabledIndices: v
|
|
31011
|
-
}) :
|
|
31011
|
+
}) : D.current = Math.min(Ye, $t(o, {
|
|
31012
31012
|
startingIndex: Fe,
|
|
31013
31013
|
disabledIndices: v
|
|
31014
|
-
})) : m ?
|
|
31014
|
+
})) : m ? D.current = Fe <= xe ? p && Fe !== -1 ? o.current.length : Ye : $t(o, {
|
|
31015
31015
|
startingIndex: Fe,
|
|
31016
31016
|
decrement: !0,
|
|
31017
31017
|
disabledIndices: v
|
|
31018
|
-
}) :
|
|
31018
|
+
}) : D.current = Math.max(xe, $t(o, {
|
|
31019
31019
|
startingIndex: Fe,
|
|
31020
31020
|
decrement: !0,
|
|
31021
31021
|
disabledIndices: v
|
|
31022
|
-
})), Da(o,
|
|
31022
|
+
})), Da(o, D.current) && (D.current = -1), R();
|
|
31023
31023
|
}
|
|
31024
31024
|
}), Ce = te.useMemo(() => y && n && Se && {
|
|
31025
31025
|
"aria-activedescendant": Xe || ne
|
|
@@ -31068,14 +31068,14 @@ function _7e(e, t) {
|
|
|
31068
31068
|
K.current = h && wt ? null : xe.key;
|
|
31069
31069
|
}
|
|
31070
31070
|
if (h) {
|
|
31071
|
-
Ne && (fn(xe), n ? (
|
|
31071
|
+
Ne && (fn(xe), n ? (D.current = hs(o, be.current), R()) : r(!0, xe.nativeEvent, "list-navigation"));
|
|
31072
31072
|
return;
|
|
31073
31073
|
}
|
|
31074
|
-
He && (d != null && (
|
|
31074
|
+
He && (d != null && (D.current = d), fn(xe), !n && k ? r(!0, xe.nativeEvent, "list-navigation") : de(xe), n && R());
|
|
31075
31075
|
}
|
|
31076
31076
|
},
|
|
31077
31077
|
onFocus() {
|
|
31078
|
-
n && !y && (
|
|
31078
|
+
n && !y && (D.current = -1, R());
|
|
31079
31079
|
},
|
|
31080
31080
|
onPointerDown: Fe,
|
|
31081
31081
|
onPointerEnter: Fe,
|
|
@@ -34540,17 +34540,17 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
34540
34540
|
...Object.keys(M).length > 0 && { extraHeaders: M }
|
|
34541
34541
|
});
|
|
34542
34542
|
l(C);
|
|
34543
|
-
const
|
|
34543
|
+
const L = () => {
|
|
34544
34544
|
d(C.id), t.transport instanceof ia && t.transport.setSocketId(C.id);
|
|
34545
34545
|
}, W = () => {
|
|
34546
34546
|
d(void 0), t.transport instanceof ia && t.transport.setSocketId(void 0);
|
|
34547
34547
|
}, Y = (R) => {
|
|
34548
34548
|
R.contextKey === p.current && m.current(R);
|
|
34549
34549
|
}, J = (R) => {
|
|
34550
|
-
const B = t.store.getState(), P = et(B, R.chat),
|
|
34551
|
-
if (
|
|
34550
|
+
const B = t.store.getState(), P = et(B, R.chat), D = P.messages.findIndex((K) => K.id === R.id);
|
|
34551
|
+
if (D >= 0) {
|
|
34552
34552
|
const K = [...P.messages];
|
|
34553
|
-
K[
|
|
34553
|
+
K[D] = R, h.current(R.chat, {
|
|
34554
34554
|
...P,
|
|
34555
34555
|
messages: K
|
|
34556
34556
|
});
|
|
@@ -34563,7 +34563,7 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
34563
34563
|
}, G = (R) => {
|
|
34564
34564
|
m.current(R);
|
|
34565
34565
|
};
|
|
34566
|
-
return C.on("connect",
|
|
34566
|
+
return C.on("connect", L), C.on("disconnect", W), C.on("connect_error", (R) => {
|
|
34567
34567
|
console.error("Socket.IO connection error:", R.message);
|
|
34568
34568
|
}), C.on(ls.ChatNew, Y), C.on(ls.MessageNew, J), C.on(ls.ChatUpdate, G), () => {
|
|
34569
34569
|
t.transport instanceof ia && t.transport.setSocketId(void 0), d(void 0), l(null), C.disconnect();
|
|
@@ -35017,7 +35017,7 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35017
35017
|
commitPendingAssistant: k,
|
|
35018
35018
|
setPageContextDismissed: v
|
|
35019
35019
|
} = Ee((P) => {
|
|
35020
|
-
const
|
|
35020
|
+
const D = P.activeChatId ?? P.draftChatKey, K = et(P, D);
|
|
35021
35021
|
return {
|
|
35022
35022
|
composer: P.composer,
|
|
35023
35023
|
contextKey: P.contextKey,
|
|
@@ -35038,16 +35038,16 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35038
35038
|
setPageContextDismissed: P.setPageContextDismissed
|
|
35039
35039
|
};
|
|
35040
35040
|
}), M = ut((P) => !P || P.length === 0 ? !1 : P.some(
|
|
35041
|
-
(
|
|
35042
|
-
), []), S = it(!1), x = it(!1), z = it(void 0), H = it(/* @__PURE__ */ new Set()), C = i ?? o,
|
|
35043
|
-
async (P,
|
|
35041
|
+
(D) => D.type === It.Context && D?.metadata?.kind === "pageContext"
|
|
35042
|
+
), []), S = it(!1), x = it(!1), z = it(void 0), H = it(/* @__PURE__ */ new Set()), C = i ?? o, L = ut(
|
|
35043
|
+
async (P, D) => {
|
|
35044
35044
|
if (!n.transport.generateTitle)
|
|
35045
35045
|
return;
|
|
35046
35046
|
const K = n.config.features?.titleGeneration === "llm" ? "llm" : "local";
|
|
35047
35047
|
let A;
|
|
35048
35048
|
try {
|
|
35049
35049
|
A = await n.transport.generateTitle({
|
|
35050
|
-
userId:
|
|
35050
|
+
userId: D,
|
|
35051
35051
|
content: P,
|
|
35052
35052
|
strategy: K,
|
|
35053
35053
|
contextKey: a
|
|
@@ -35058,14 +35058,14 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35058
35058
|
},
|
|
35059
35059
|
[n.transport, n.config.features?.titleGeneration, a]
|
|
35060
35060
|
), W = ut(
|
|
35061
|
-
async (P,
|
|
35061
|
+
async (P, D) => {
|
|
35062
35062
|
const K = n.config.user?.id ?? "guest", A = !i, Q = i ?? o, ee = { current: Q };
|
|
35063
35063
|
z.current = Q;
|
|
35064
|
-
const O = { value: P, attachments:
|
|
35064
|
+
const O = { value: P, attachments: D ?? [] };
|
|
35065
35065
|
m(ee.current, void 0);
|
|
35066
35066
|
let ue;
|
|
35067
35067
|
if (A) {
|
|
35068
|
-
const _e = await
|
|
35068
|
+
const _e = await L(P, K);
|
|
35069
35069
|
_e && _e.trim().length > 0 && (ue = { ...ue ?? {}, title: _e });
|
|
35070
35070
|
}
|
|
35071
35071
|
const be = (i ? n.store.getState().chats[i] : void 0)?.model, Ie = r.model !== be;
|
|
@@ -35078,7 +35078,7 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35078
35078
|
contextKey: a,
|
|
35079
35079
|
...A ? {} : { chatId: i },
|
|
35080
35080
|
...Ue ? { model: De ?? "" } : {},
|
|
35081
|
-
...
|
|
35081
|
+
...D && D.length > 0 ? { attachments: D } : {}
|
|
35082
35082
|
}, we = () => {
|
|
35083
35083
|
y(ee.current, void 0);
|
|
35084
35084
|
}, Xe = (_e) => {
|
|
@@ -35163,7 +35163,7 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35163
35163
|
p,
|
|
35164
35164
|
y,
|
|
35165
35165
|
d,
|
|
35166
|
-
|
|
35166
|
+
L,
|
|
35167
35167
|
e,
|
|
35168
35168
|
h,
|
|
35169
35169
|
t,
|
|
@@ -35187,11 +35187,11 @@ const O_e = up(null), L_e = ({ children: e }) => {
|
|
|
35187
35187
|
async (P) => {
|
|
35188
35188
|
if (x.current)
|
|
35189
35189
|
return;
|
|
35190
|
-
const
|
|
35191
|
-
if (
|
|
35190
|
+
const D = s.find((K) => K.id === P);
|
|
35191
|
+
if (D) {
|
|
35192
35192
|
S.current = !1, x.current = !0, f(C, P);
|
|
35193
35193
|
try {
|
|
35194
|
-
await W(
|
|
35194
|
+
await W(D.content, D.attachments);
|
|
35195
35195
|
} finally {
|
|
35196
35196
|
x.current = !1;
|
|
35197
35197
|
}
|
|
@@ -35593,7 +35593,7 @@ const cwe = ({
|
|
|
35593
35593
|
}, [p, l, t, P]), Je(() => {
|
|
35594
35594
|
p && f(P.length > 0 ? 0 : null);
|
|
35595
35595
|
}, [y, P.length, p]);
|
|
35596
|
-
const
|
|
35596
|
+
const D = (Q) => P.length === 0 ? null : Q < 0 ? P.length - 1 : Q >= P.length ? 0 : Q, K = (Q) => {
|
|
35597
35597
|
Q != null && _.current[Q]?.scrollIntoView({ block: "nearest" });
|
|
35598
35598
|
}, A = (Q) => {
|
|
35599
35599
|
n(Q), m(!1), f(null), w("");
|
|
@@ -35647,7 +35647,7 @@ const cwe = ({
|
|
|
35647
35647
|
}
|
|
35648
35648
|
if (Q.key === "ArrowDown" || Q.key === "ArrowUp") {
|
|
35649
35649
|
Q.preventDefault();
|
|
35650
|
-
const ee = Q.key === "ArrowDown" ? 1 : -1, O = h ?? (ee > 0 ? -1 : 0), ue =
|
|
35650
|
+
const ee = Q.key === "ArrowDown" ? 1 : -1, O = h ?? (ee > 0 ? -1 : 0), ue = D(O + ee);
|
|
35651
35651
|
f(ue), K(ue);
|
|
35652
35652
|
return;
|
|
35653
35653
|
}
|
|
@@ -35882,7 +35882,7 @@ const fwe = () => {
|
|
|
35882
35882
|
] });
|
|
35883
35883
|
}, ywe = vo(
|
|
35884
35884
|
({ autoFocus: e, activeChatId: t, status: n, onStop: r, onSubmit: a }, i) => {
|
|
35885
|
-
const o = In(), s = rt(), l = it(null), u = it(null), d = Ee((ne) => ne.activeChatId ?? ne.draftChatKey), p = Ee((ne) => et(ne, d).composerDraft), m = Ee((ne) => et(ne, d).composerError), h = Ee((ne) => et(ne, d).pageContextDismissed), f = Ee((ne) => ne.setComposerValue), y = Ee((ne) => ne.setComposerDraft), w = Ee((ne) => ne.clearComposerDraft), _ = Ee((ne) => ne.setComposerError), k = Ee((ne) => ne.addComposerAttachments), v = Ee((ne) => ne.removeComposerAttachment), M = Ee((ne) => ne.setPageContextDismissed), S = p.value, x = p.attachments, [z, H] = pt(/* @__PURE__ */ new Map()), [C,
|
|
35885
|
+
const o = In(), s = rt(), l = it(null), u = it(null), d = Ee((ne) => ne.activeChatId ?? ne.draftChatKey), p = Ee((ne) => et(ne, d).composerDraft), m = Ee((ne) => et(ne, d).composerError), h = Ee((ne) => et(ne, d).pageContextDismissed), f = Ee((ne) => ne.setComposerValue), y = Ee((ne) => ne.setComposerDraft), w = Ee((ne) => ne.clearComposerDraft), _ = Ee((ne) => ne.setComposerError), k = Ee((ne) => ne.addComposerAttachments), v = Ee((ne) => ne.removeComposerAttachment), M = Ee((ne) => ne.setPageContextDismissed), S = p.value, x = p.attachments, [z, H] = pt(/* @__PURE__ */ new Map()), [C, L] = pt(/* @__PURE__ */ new Map()), W = it(S), Y = it(x), J = it(h), G = s.config.features?.pageContextAttachments !== !1, R = (ne) => ne.type === It.Context && ne?.metadata?.kind === "pageContext", B = x.some(R), P = () => {
|
|
35886
35886
|
if (G)
|
|
35887
35887
|
return s.buildPageContextAttachment();
|
|
35888
35888
|
};
|
|
@@ -35926,12 +35926,12 @@ const fwe = () => {
|
|
|
35926
35926
|
const ne = l.current;
|
|
35927
35927
|
ne && (ne.style.height = "auto", ne.style.height = `${Math.min(ne.scrollHeight, 200)}px`);
|
|
35928
35928
|
}, [S]);
|
|
35929
|
-
const
|
|
35929
|
+
const D = async (ne) => {
|
|
35930
35930
|
if (!ne || ne.length === 0)
|
|
35931
35931
|
return;
|
|
35932
35932
|
const we = Array.from(ne), Xe = Q_e(), Qe = X_e(we, x, Xe);
|
|
35933
35933
|
if (Qe) {
|
|
35934
|
-
|
|
35934
|
+
L((_e) => {
|
|
35935
35935
|
const Se = new Map(_e);
|
|
35936
35936
|
return we.forEach((ke) => {
|
|
35937
35937
|
Se.set(ke.name, Qe.message);
|
|
@@ -35939,7 +35939,7 @@ const fwe = () => {
|
|
|
35939
35939
|
});
|
|
35940
35940
|
return;
|
|
35941
35941
|
}
|
|
35942
|
-
|
|
35942
|
+
L((_e) => {
|
|
35943
35943
|
const Se = new Map(_e);
|
|
35944
35944
|
return we.forEach((ke) => Se.delete(ke.name)), Se;
|
|
35945
35945
|
});
|
|
@@ -35971,7 +35971,7 @@ const fwe = () => {
|
|
|
35971
35971
|
}, 2e3);
|
|
35972
35972
|
} catch (_e) {
|
|
35973
35973
|
const Se = _e instanceof Error ? _e.message : "Failed to upload files";
|
|
35974
|
-
|
|
35974
|
+
L((ke) => {
|
|
35975
35975
|
const qe = new Map(ke);
|
|
35976
35976
|
return we.forEach((de) => {
|
|
35977
35977
|
qe.set(de.name, Se);
|
|
@@ -35994,7 +35994,7 @@ const fwe = () => {
|
|
|
35994
35994
|
};
|
|
35995
35995
|
return k(d, [Qe]), !0;
|
|
35996
35996
|
}, Q = async (ne) => {
|
|
35997
|
-
await
|
|
35997
|
+
await D(ne.target.files), ne.target.value = "";
|
|
35998
35998
|
}, ee = (ne) => {
|
|
35999
35999
|
const we = x.find((Xe) => Xe.id === ne);
|
|
36000
36000
|
we && R(we) && M(d, !0), v(d, ne);
|
|
@@ -36030,7 +36030,7 @@ const fwe = () => {
|
|
|
36030
36030
|
A(we) && ne.preventDefault();
|
|
36031
36031
|
}, Ue = !!S.trim();
|
|
36032
36032
|
return /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
|
|
36033
|
-
/* @__PURE__ */ N.jsxs("form", { onSubmit: ue, className: "mp-agent-composer-input-wrapper", children: [
|
|
36033
|
+
/* @__PURE__ */ N.jsxs("form", { onSubmit: ue, className: "mp-agent-composer-input-wrapper", id: "composer-form", children: [
|
|
36034
36034
|
/* @__PURE__ */ N.jsx("input", { ref: u, type: "file", multiple: !0, style: { display: "none" }, onChange: Q }),
|
|
36035
36035
|
/* @__PURE__ */ N.jsx(
|
|
36036
36036
|
ewe,
|
|
@@ -36111,6 +36111,7 @@ const fwe = () => {
|
|
|
36111
36111
|
"button",
|
|
36112
36112
|
{
|
|
36113
36113
|
type: "submit",
|
|
36114
|
+
form: "composer-form",
|
|
36114
36115
|
disabled: !Ue,
|
|
36115
36116
|
"aria-label": o.sendMessage,
|
|
36116
36117
|
className: "mp-agent-composer-button mp-agent-composer-send-button",
|
|
@@ -36350,8 +36351,8 @@ const kwe = (e, t) => {
|
|
|
36350
36351
|
userId: w
|
|
36351
36352
|
}, C = await a.transport.streamMessage(
|
|
36352
36353
|
H,
|
|
36353
|
-
(
|
|
36354
|
-
|
|
36354
|
+
(L) => {
|
|
36355
|
+
L.type === Nn.Message && L.message && i(n, [L.message]);
|
|
36355
36356
|
},
|
|
36356
36357
|
{ streamKey: n }
|
|
36357
36358
|
);
|
|
@@ -38505,18 +38506,18 @@ function Kxe(e) {
|
|
|
38505
38506
|
)
|
|
38506
38507
|
return;
|
|
38507
38508
|
const z = t.events.length;
|
|
38508
|
-
let H = z, C,
|
|
38509
|
+
let H = z, C, L;
|
|
38509
38510
|
for (; H--; )
|
|
38510
38511
|
if (t.events[H][0] === "exit" && t.events[H][1].type === "chunkFlow") {
|
|
38511
38512
|
if (C) {
|
|
38512
|
-
|
|
38513
|
+
L = t.events[H][1].end;
|
|
38513
38514
|
break;
|
|
38514
38515
|
}
|
|
38515
38516
|
C = !0;
|
|
38516
38517
|
}
|
|
38517
38518
|
for (_(r), x = z; x < t.events.length; )
|
|
38518
38519
|
t.events[x][1].end = {
|
|
38519
|
-
...
|
|
38520
|
+
...L
|
|
38520
38521
|
}, x++;
|
|
38521
38522
|
un(t.events, H + 1, 0, t.events.slice(z)), t.events.length = x;
|
|
38522
38523
|
}
|
|
@@ -38816,8 +38817,8 @@ function o9e(e, t, n) {
|
|
|
38816
38817
|
}
|
|
38817
38818
|
function S(x, z, H) {
|
|
38818
38819
|
let C = 0;
|
|
38819
|
-
return
|
|
38820
|
-
function
|
|
38820
|
+
return L;
|
|
38821
|
+
function L(R) {
|
|
38821
38822
|
return x.enter("lineEnding"), x.consume(R), x.exit("lineEnding"), W;
|
|
38822
38823
|
}
|
|
38823
38824
|
function W(R) {
|
|
@@ -39509,10 +39510,10 @@ function $9e(e, t, n) {
|
|
|
39509
39510
|
return O === 62 ? (e.consume(O), r.interrupt ? t : Y) : n(O);
|
|
39510
39511
|
}
|
|
39511
39512
|
function k(O) {
|
|
39512
|
-
return Pe(O) ? (e.consume(O), k) :
|
|
39513
|
+
return Pe(O) ? (e.consume(O), k) : L(O);
|
|
39513
39514
|
}
|
|
39514
39515
|
function v(O) {
|
|
39515
|
-
return O === 47 ? (e.consume(O),
|
|
39516
|
+
return O === 47 ? (e.consume(O), L) : O === 58 || O === 95 || Gt(O) ? (e.consume(O), M) : Pe(O) ? (e.consume(O), v) : L(O);
|
|
39516
39517
|
}
|
|
39517
39518
|
function M(O) {
|
|
39518
39519
|
return O === 45 || O === 46 || O === 58 || O === 95 || Ft(O) ? (e.consume(O), M) : S(O);
|
|
@@ -39532,7 +39533,7 @@ function $9e(e, t, n) {
|
|
|
39532
39533
|
function C(O) {
|
|
39533
39534
|
return O === 47 || O === 62 || Pe(O) ? v(O) : n(O);
|
|
39534
39535
|
}
|
|
39535
|
-
function
|
|
39536
|
+
function L(O) {
|
|
39536
39537
|
return O === 62 ? (e.consume(O), W) : n(O);
|
|
39537
39538
|
}
|
|
39538
39539
|
function W(O) {
|
|
@@ -39554,14 +39555,14 @@ function $9e(e, t, n) {
|
|
|
39554
39555
|
return O === 45 ? (e.consume(O), A) : Y(O);
|
|
39555
39556
|
}
|
|
39556
39557
|
function P(O) {
|
|
39557
|
-
return O === 47 ? (e.consume(O), o = "",
|
|
39558
|
+
return O === 47 ? (e.consume(O), o = "", D) : Y(O);
|
|
39558
39559
|
}
|
|
39559
|
-
function
|
|
39560
|
+
function D(O) {
|
|
39560
39561
|
if (O === 62) {
|
|
39561
39562
|
const ue = o.toLowerCase();
|
|
39562
39563
|
return _m.includes(ue) ? (e.consume(O), Q) : Y(O);
|
|
39563
39564
|
}
|
|
39564
|
-
return Gt(O) && o.length < 8 ? (e.consume(O), o += String.fromCharCode(O),
|
|
39565
|
+
return Gt(O) && o.length < 8 ? (e.consume(O), o += String.fromCharCode(O), D) : Y(O);
|
|
39565
39566
|
}
|
|
39566
39567
|
function K(O) {
|
|
39567
39568
|
return O === 93 ? (e.consume(O), A) : Y(O);
|
|
@@ -39656,10 +39657,10 @@ function q9e(e, t, n) {
|
|
|
39656
39657
|
return A === 45 || Ft(A) ? (e.consume(A), H) : A === 47 || A === 62 || Ke(A) ? C(A) : n(A);
|
|
39657
39658
|
}
|
|
39658
39659
|
function C(A) {
|
|
39659
|
-
return A === 47 ? (e.consume(A), B) : A === 58 || A === 95 || Gt(A) ? (e.consume(A),
|
|
39660
|
+
return A === 47 ? (e.consume(A), B) : A === 58 || A === 95 || Gt(A) ? (e.consume(A), L) : he(A) ? (o = C, P(A)) : Pe(A) ? (e.consume(A), C) : B(A);
|
|
39660
39661
|
}
|
|
39661
|
-
function
|
|
39662
|
-
return A === 45 || A === 46 || A === 58 || A === 95 || Ft(A) ? (e.consume(A),
|
|
39662
|
+
function L(A) {
|
|
39663
|
+
return A === 45 || A === 46 || A === 58 || A === 95 || Ft(A) ? (e.consume(A), L) : W(A);
|
|
39663
39664
|
}
|
|
39664
39665
|
function W(A) {
|
|
39665
39666
|
return A === 61 ? (e.consume(A), Y) : he(A) ? (o = W, P(A)) : Pe(A) ? (e.consume(A), W) : C(A);
|
|
@@ -39680,9 +39681,9 @@ function q9e(e, t, n) {
|
|
|
39680
39681
|
return A === 62 ? (e.consume(A), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(A);
|
|
39681
39682
|
}
|
|
39682
39683
|
function P(A) {
|
|
39683
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"),
|
|
39684
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), D;
|
|
39684
39685
|
}
|
|
39685
|
-
function
|
|
39686
|
+
function D(A) {
|
|
39686
39687
|
return Pe(A) ? Le(e, K, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(A) : K(A);
|
|
39687
39688
|
}
|
|
39688
39689
|
function K(A) {
|
|
@@ -40270,7 +40271,7 @@ function NEe(e, t, n) {
|
|
|
40270
40271
|
};
|
|
40271
40272
|
}
|
|
40272
40273
|
function y(W) {
|
|
40273
|
-
a[W.line] = W.column,
|
|
40274
|
+
a[W.line] = W.column, L();
|
|
40274
40275
|
}
|
|
40275
40276
|
function w() {
|
|
40276
40277
|
let W;
|
|
@@ -40287,7 +40288,7 @@ function NEe(e, t, n) {
|
|
|
40287
40288
|
d = d(W);
|
|
40288
40289
|
}
|
|
40289
40290
|
function k(W) {
|
|
40290
|
-
he(W) ? (r.line++, r.column = 1, r.offset += W === -3 ? 2 : 1,
|
|
40291
|
+
he(W) ? (r.line++, r.column = 1, r.offset += W === -3 ? 2 : 1, L()) : W !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
40291
40292
|
// strings.
|
|
40292
40293
|
/** @type {string} */
|
|
40293
40294
|
o[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = W;
|
|
@@ -40309,7 +40310,7 @@ function NEe(e, t, n) {
|
|
|
40309
40310
|
function z(W, Y) {
|
|
40310
40311
|
return J;
|
|
40311
40312
|
function J(G, R, B) {
|
|
40312
|
-
let P,
|
|
40313
|
+
let P, D, K, A;
|
|
40313
40314
|
return Array.isArray(G) ? (
|
|
40314
40315
|
/* c8 ignore next 1 */
|
|
40315
40316
|
ee(G)
|
|
@@ -40333,7 +40334,7 @@ function NEe(e, t, n) {
|
|
|
40333
40334
|
}
|
|
40334
40335
|
}
|
|
40335
40336
|
function ee(be) {
|
|
40336
|
-
return P = be,
|
|
40337
|
+
return P = be, D = 0, be.length === 0 ? B : O(be[D]);
|
|
40337
40338
|
}
|
|
40338
40339
|
function O(be) {
|
|
40339
40340
|
return Ie;
|
|
@@ -40353,7 +40354,7 @@ function NEe(e, t, n) {
|
|
|
40353
40354
|
return W(K, A), R;
|
|
40354
40355
|
}
|
|
40355
40356
|
function ge(be) {
|
|
40356
|
-
return A.restore(), ++
|
|
40357
|
+
return A.restore(), ++D < P.length ? O(P[D]) : B;
|
|
40357
40358
|
}
|
|
40358
40359
|
}
|
|
40359
40360
|
}
|
|
@@ -40367,10 +40368,10 @@ function NEe(e, t, n) {
|
|
|
40367
40368
|
restore: B
|
|
40368
40369
|
};
|
|
40369
40370
|
function B() {
|
|
40370
|
-
r = W, u.previous = Y, u.currentConstruct = J, u.events.length = G, s = R,
|
|
40371
|
+
r = W, u.previous = Y, u.currentConstruct = J, u.events.length = G, s = R, L();
|
|
40371
40372
|
}
|
|
40372
40373
|
}
|
|
40373
|
-
function
|
|
40374
|
+
function L() {
|
|
40374
40375
|
r.line in a && r.column < 2 && (r.column = a[r.line], r.offset += a[r.line] - 1);
|
|
40375
40376
|
}
|
|
40376
40377
|
}
|
|
@@ -40565,7 +40566,7 @@ function zEe(e) {
|
|
|
40565
40566
|
autolinkEmail: Ue,
|
|
40566
40567
|
autolinkProtocol: De,
|
|
40567
40568
|
blockQuote: l(),
|
|
40568
|
-
characterEscapeValue:
|
|
40569
|
+
characterEscapeValue: L,
|
|
40569
40570
|
characterReferenceMarkerHexadecimal: ge,
|
|
40570
40571
|
characterReferenceMarkerNumeric: ge,
|
|
40571
40572
|
characterReferenceValue: be,
|
|
@@ -40574,11 +40575,11 @@ function zEe(e) {
|
|
|
40574
40575
|
codeFencedFence: y,
|
|
40575
40576
|
codeFencedFenceInfo: h,
|
|
40576
40577
|
codeFencedFenceMeta: f,
|
|
40577
|
-
codeFlowValue:
|
|
40578
|
+
codeFlowValue: L,
|
|
40578
40579
|
codeIndented: l(_),
|
|
40579
40580
|
codeText: l(R),
|
|
40580
|
-
codeTextData:
|
|
40581
|
-
data:
|
|
40581
|
+
codeTextData: L,
|
|
40582
|
+
data: L,
|
|
40582
40583
|
definition: l(),
|
|
40583
40584
|
definitionDestinationString: M,
|
|
40584
40585
|
definitionLabelString: k,
|
|
@@ -40587,12 +40588,12 @@ function zEe(e) {
|
|
|
40587
40588
|
hardBreakEscape: l(Y),
|
|
40588
40589
|
hardBreakTrailing: l(Y),
|
|
40589
40590
|
htmlFlow: l(J),
|
|
40590
|
-
htmlFlowData:
|
|
40591
|
+
htmlFlowData: L,
|
|
40591
40592
|
htmlText: l(G),
|
|
40592
|
-
htmlTextData:
|
|
40593
|
+
htmlTextData: L,
|
|
40593
40594
|
image: l(P),
|
|
40594
40595
|
label: K,
|
|
40595
|
-
labelText:
|
|
40596
|
+
labelText: D,
|
|
40596
40597
|
lineEnding: W,
|
|
40597
40598
|
link: l(B),
|
|
40598
40599
|
listItem: l(),
|
|
@@ -40819,7 +40820,7 @@ function zEe(e) {
|
|
|
40819
40820
|
end: void 0
|
|
40820
40821
|
}, se.push(pe)), this.stack.push(pe);
|
|
40821
40822
|
}
|
|
40822
|
-
function
|
|
40823
|
+
function L(q) {
|
|
40823
40824
|
const Z = this.stack.pop();
|
|
40824
40825
|
Z.value += this.sliceSerialize(q), Z.position.end = hr(q.end);
|
|
40825
40826
|
}
|
|
@@ -40830,7 +40831,7 @@ function zEe(e) {
|
|
|
40830
40831
|
se.position.end = hr(q.end), this.data.atHardBreak = void 0;
|
|
40831
40832
|
return;
|
|
40832
40833
|
}
|
|
40833
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Z.type) && (C.call(this, q),
|
|
40834
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(Z.type) && (C.call(this, q), L.call(this, q));
|
|
40834
40835
|
}
|
|
40835
40836
|
function Y() {
|
|
40836
40837
|
this.data.atHardBreak = !0;
|
|
@@ -40865,7 +40866,7 @@ function zEe(e) {
|
|
|
40865
40866
|
delete q.identifier, delete q.label;
|
|
40866
40867
|
this.data.referenceType = void 0;
|
|
40867
40868
|
}
|
|
40868
|
-
function
|
|
40869
|
+
function D(q) {
|
|
40869
40870
|
const Z = this.sliceSerialize(q), se = this.stack[this.stack.length - 2];
|
|
40870
40871
|
se.label = LEe(Z), se.identifier = Cn(Z).toLowerCase();
|
|
40871
40872
|
}
|
|
@@ -40910,12 +40911,12 @@ function zEe(e) {
|
|
|
40910
40911
|
Z.position.end = hr(q.end);
|
|
40911
40912
|
}
|
|
40912
40913
|
function De(q) {
|
|
40913
|
-
|
|
40914
|
+
L.call(this, q);
|
|
40914
40915
|
const Z = this.stack[this.stack.length - 1];
|
|
40915
40916
|
Z.url = this.sliceSerialize(q);
|
|
40916
40917
|
}
|
|
40917
40918
|
function Ue(q) {
|
|
40918
|
-
|
|
40919
|
+
L.call(this, q);
|
|
40919
40920
|
const Z = this.stack[this.stack.length - 1];
|
|
40920
40921
|
Z.url = "mailto:" + this.sliceSerialize(q);
|
|
40921
40922
|
}
|
|
@@ -44978,7 +44979,7 @@ function nAe(e, t, n) {
|
|
|
44978
44979
|
const r = this;
|
|
44979
44980
|
let a = 0, i = 0, o;
|
|
44980
44981
|
return s;
|
|
44981
|
-
function s(
|
|
44982
|
+
function s(L) {
|
|
44982
44983
|
let W = r.events.length - 1;
|
|
44983
44984
|
for (; W > -1; ) {
|
|
44984
44985
|
const G = r.events[W][1].type;
|
|
@@ -44989,61 +44990,61 @@ function nAe(e, t, n) {
|
|
|
44989
44990
|
break;
|
|
44990
44991
|
}
|
|
44991
44992
|
const Y = W > -1 ? r.events[W][1].type : null, J = Y === "tableHead" || Y === "tableRow" ? x : l;
|
|
44992
|
-
return J === x && r.parser.lazy[r.now().line] ? n(
|
|
44993
|
+
return J === x && r.parser.lazy[r.now().line] ? n(L) : J(L);
|
|
44993
44994
|
}
|
|
44994
|
-
function l(
|
|
44995
|
-
return e.enter("tableHead"), e.enter("tableRow"), u(
|
|
44995
|
+
function l(L) {
|
|
44996
|
+
return e.enter("tableHead"), e.enter("tableRow"), u(L);
|
|
44996
44997
|
}
|
|
44997
|
-
function u(
|
|
44998
|
-
return
|
|
44998
|
+
function u(L) {
|
|
44999
|
+
return L === 124 || (o = !0, i += 1), d(L);
|
|
44999
45000
|
}
|
|
45000
|
-
function d(
|
|
45001
|
-
return
|
|
45001
|
+
function d(L) {
|
|
45002
|
+
return L === null ? n(L) : he(L) ? i > 1 ? (i = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(L), e.exit("lineEnding"), h) : n(L) : Pe(L) ? Le(e, d, "whitespace")(L) : (i += 1, o && (o = !1, a += 1), L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), o = !0, d) : (e.enter("data"), p(L)));
|
|
45002
45003
|
}
|
|
45003
|
-
function p(
|
|
45004
|
-
return
|
|
45004
|
+
function p(L) {
|
|
45005
|
+
return L === null || L === 124 || Ke(L) ? (e.exit("data"), d(L)) : (e.consume(L), L === 92 ? m : p);
|
|
45005
45006
|
}
|
|
45006
|
-
function m(
|
|
45007
|
-
return
|
|
45007
|
+
function m(L) {
|
|
45008
|
+
return L === 92 || L === 124 ? (e.consume(L), p) : p(L);
|
|
45008
45009
|
}
|
|
45009
|
-
function h(
|
|
45010
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(
|
|
45010
|
+
function h(L) {
|
|
45011
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(L) : (e.enter("tableDelimiterRow"), o = !1, Pe(L) ? Le(e, f, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(L) : f(L));
|
|
45011
45012
|
}
|
|
45012
|
-
function f(
|
|
45013
|
-
return
|
|
45013
|
+
function f(L) {
|
|
45014
|
+
return L === 45 || L === 58 ? w(L) : L === 124 ? (o = !0, e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), y) : S(L);
|
|
45014
45015
|
}
|
|
45015
|
-
function y(
|
|
45016
|
-
return Pe(
|
|
45016
|
+
function y(L) {
|
|
45017
|
+
return Pe(L) ? Le(e, w, "whitespace")(L) : w(L);
|
|
45017
45018
|
}
|
|
45018
|
-
function w(
|
|
45019
|
-
return
|
|
45019
|
+
function w(L) {
|
|
45020
|
+
return L === 58 ? (i += 1, o = !0, e.enter("tableDelimiterMarker"), e.consume(L), e.exit("tableDelimiterMarker"), _) : L === 45 ? (i += 1, _(L)) : L === null || he(L) ? M(L) : S(L);
|
|
45020
45021
|
}
|
|
45021
|
-
function _(
|
|
45022
|
-
return
|
|
45022
|
+
function _(L) {
|
|
45023
|
+
return L === 45 ? (e.enter("tableDelimiterFiller"), k(L)) : S(L);
|
|
45023
45024
|
}
|
|
45024
|
-
function k(
|
|
45025
|
-
return
|
|
45025
|
+
function k(L) {
|
|
45026
|
+
return L === 45 ? (e.consume(L), k) : L === 58 ? (o = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(L), e.exit("tableDelimiterMarker"), v) : (e.exit("tableDelimiterFiller"), v(L));
|
|
45026
45027
|
}
|
|
45027
|
-
function v(
|
|
45028
|
-
return Pe(
|
|
45028
|
+
function v(L) {
|
|
45029
|
+
return Pe(L) ? Le(e, M, "whitespace")(L) : M(L);
|
|
45029
45030
|
}
|
|
45030
|
-
function M(
|
|
45031
|
-
return
|
|
45031
|
+
function M(L) {
|
|
45032
|
+
return L === 124 ? f(L) : L === null || he(L) ? !o || a !== i ? S(L) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(L)) : S(L);
|
|
45032
45033
|
}
|
|
45033
|
-
function S(
|
|
45034
|
-
return n(
|
|
45034
|
+
function S(L) {
|
|
45035
|
+
return n(L);
|
|
45035
45036
|
}
|
|
45036
|
-
function x(
|
|
45037
|
-
return e.enter("tableRow"), z(
|
|
45037
|
+
function x(L) {
|
|
45038
|
+
return e.enter("tableRow"), z(L);
|
|
45038
45039
|
}
|
|
45039
|
-
function z(
|
|
45040
|
-
return
|
|
45040
|
+
function z(L) {
|
|
45041
|
+
return L === 124 ? (e.enter("tableCellDivider"), e.consume(L), e.exit("tableCellDivider"), z) : L === null || he(L) ? (e.exit("tableRow"), t(L)) : Pe(L) ? Le(e, z, "whitespace")(L) : (e.enter("data"), H(L));
|
|
45041
45042
|
}
|
|
45042
|
-
function H(
|
|
45043
|
-
return
|
|
45043
|
+
function H(L) {
|
|
45044
|
+
return L === null || L === 124 || Ke(L) ? (e.exit("data"), z(L)) : (e.consume(L), L === 92 ? C : H);
|
|
45044
45045
|
}
|
|
45045
|
-
function C(
|
|
45046
|
-
return
|
|
45046
|
+
function C(L) {
|
|
45047
|
+
return L === 92 || L === 124 ? (e.consume(L), H) : H(L);
|
|
45047
45048
|
}
|
|
45048
45049
|
}
|
|
45049
45050
|
function rAe(e, t) {
|
|
@@ -50617,8 +50618,8 @@ var v6 = function(t) {
|
|
|
50617
50618
|
} else {
|
|
50618
50619
|
var _ = [], k = NTe[l], [v, M, S] = k, x = S / 1e3, z = v.length, H, C;
|
|
50619
50620
|
if (z === 1) {
|
|
50620
|
-
var
|
|
50621
|
-
H = ["hide-tail"], C = [
|
|
50621
|
+
var L = k[3];
|
|
50622
|
+
H = ["hide-tail"], C = [L];
|
|
50622
50623
|
} else if (z === 2)
|
|
50623
50624
|
H = ["halfarrow-left", "halfarrow-right"], C = ["xMinYMin", "xMaxYMin"];
|
|
50624
50625
|
else if (z === 3)
|
|
@@ -51564,16 +51565,16 @@ var Ra = function(t, n, r) {
|
|
|
51564
51565
|
var x = Ra(l, h, i);
|
|
51565
51566
|
M = x.height + x.depth, S = 2;
|
|
51566
51567
|
}
|
|
51567
|
-
var z = y + v + M, H = Math.max(0, Math.ceil((n - z) / (S * _))), C = z + H * S * _,
|
|
51568
|
-
r && (
|
|
51569
|
-
var W = C / 2 -
|
|
51568
|
+
var z = y + v + M, H = Math.max(0, Math.ceil((n - z) / (S * _))), C = z + H * S * _, L = a.fontMetrics().axisHeight;
|
|
51569
|
+
r && (L *= a.sizeMultiplier);
|
|
51570
|
+
var W = C / 2 - L, Y = [];
|
|
51570
51571
|
if (p.length > 0) {
|
|
51571
|
-
var J = C - y - v, G = Math.round(C * 1e3), R = GAe(p, Math.round(J * 1e3)), B = new Er(p, R), P = (m / 1e3).toFixed(3) + "em",
|
|
51572
|
+
var J = C - y - v, G = Math.round(C * 1e3), R = GAe(p, Math.round(J * 1e3)), B = new Er(p, R), P = (m / 1e3).toFixed(3) + "em", D = (G / 1e3).toFixed(3) + "em", K = new lr([B], {
|
|
51572
51573
|
width: P,
|
|
51573
|
-
height:
|
|
51574
|
+
height: D,
|
|
51574
51575
|
viewBox: "0 0 " + m + " " + G
|
|
51575
51576
|
}), A = X.makeSvgSpan([], [K], a);
|
|
51576
|
-
A.height = G / 1e3, A.style.width = P, A.style.height =
|
|
51577
|
+
A.height = G / 1e3, A.style.width = P, A.style.height = D, Y.push({
|
|
51577
51578
|
type: "elem",
|
|
51578
51579
|
elem: A
|
|
51579
51580
|
});
|
|
@@ -52301,14 +52302,14 @@ var Yn = function(t, n) {
|
|
|
52301
52302
|
var C = Ze(S[a], n);
|
|
52302
52303
|
z < C.depth && (z = C.depth), x < C.height && (x = C.height), H[a] = C;
|
|
52303
52304
|
}
|
|
52304
|
-
var
|
|
52305
|
-
|
|
52305
|
+
var L = t.rowGaps[r], W = 0;
|
|
52306
|
+
L && (W = yt(L, n), W > 0 && (W += k, z < W && (z = W), W = 0)), t.addJot && (z += y), H.height = x, H.depth = z, v += x, H.pos = v, v += z + W, l[r] = H, M(o[r + 1]);
|
|
52306
52307
|
}
|
|
52307
52308
|
var Y = v / 2 + n.fontMetrics().axisHeight, J = t.cols || [], G = [], R, B, P = [];
|
|
52308
52309
|
if (t.tags && t.tags.some((de) => de))
|
|
52309
52310
|
for (r = 0; r < i; ++r) {
|
|
52310
|
-
var
|
|
52311
|
-
A === !0 ? Q = X.makeSpan(["eqn-num"], [], n) : A === !1 ? Q = X.makeSpan([], [], n) : Q = X.makeSpan([], Tt(A, n, !0), n), Q.depth =
|
|
52311
|
+
var D = l[r], K = D.pos - Y, A = t.tags[r], Q = void 0;
|
|
52312
|
+
A === !0 ? Q = X.makeSpan(["eqn-num"], [], n) : A === !1 ? Q = X.makeSpan([], [], n) : Q = X.makeSpan([], Tt(A, n, !0), n), Q.depth = D.depth, Q.height = D.height, P.push({
|
|
52312
52313
|
type: "elem",
|
|
52313
52314
|
elem: Q,
|
|
52314
52315
|
shift: K
|
|
@@ -54579,8 +54580,8 @@ Hr({
|
|
|
54579
54580
|
}, t);
|
|
54580
54581
|
else
|
|
54581
54582
|
throw new Error("supsub must have either sup or sub.");
|
|
54582
|
-
var
|
|
54583
|
-
return X.makeSpan([
|
|
54583
|
+
var L = Qd(o, "right") || "mord";
|
|
54584
|
+
return X.makeSpan([L], [o, X.makeSpan(["msupsub"], [M])], t);
|
|
54584
54585
|
},
|
|
54585
54586
|
mathmlBuilder(e, t) {
|
|
54586
54587
|
var n = !1, r, a;
|
|
@@ -57460,20 +57461,20 @@ function vh(e, t) {
|
|
|
57460
57461
|
break;
|
|
57461
57462
|
H += String.fromCharCode(J), S === "named" && MCe.includes(H) && (x = H, z = Wa(H));
|
|
57462
57463
|
}
|
|
57463
|
-
let
|
|
57464
|
-
if (
|
|
57464
|
+
let L = e.charCodeAt(M) === 59;
|
|
57465
|
+
if (L) {
|
|
57465
57466
|
M++;
|
|
57466
57467
|
const J = S === "named" ? Wa(H) : !1;
|
|
57467
57468
|
J && (x = H, z = J);
|
|
57468
57469
|
}
|
|
57469
57470
|
let W = 1 + M - k, Y = "";
|
|
57470
|
-
if (!(!
|
|
57471
|
+
if (!(!L && n.nonTerminated === !1))
|
|
57471
57472
|
if (!H)
|
|
57472
57473
|
S !== "named" && y(4, W);
|
|
57473
57474
|
else if (S === "named") {
|
|
57474
|
-
if (
|
|
57475
|
+
if (L && !z)
|
|
57475
57476
|
y(5, 1);
|
|
57476
|
-
else if (x !== H && (M = v + x.length, W = 1 + M - v,
|
|
57477
|
+
else if (x !== H && (M = v + x.length, W = 1 + M - v, L = !1), !L) {
|
|
57477
57478
|
const J = x ? 1 : 3;
|
|
57478
57479
|
if (n.attribute) {
|
|
57479
57480
|
const G = e.charCodeAt(M);
|
|
@@ -57483,7 +57484,7 @@ function vh(e, t) {
|
|
|
57483
57484
|
}
|
|
57484
57485
|
Y = z;
|
|
57485
57486
|
} else {
|
|
57486
|
-
|
|
57487
|
+
L || y(2, W);
|
|
57487
57488
|
let J = Number.parseInt(
|
|
57488
57489
|
H,
|
|
57489
57490
|
S === "hexadecimal" ? 16 : 10
|
|
@@ -57835,16 +57836,16 @@ function wh(e, t, n, r, a, i, o, s, l, u, d, p, m, h, f) {
|
|
|
57835
57836
|
return R === 61 ? (e.enter(u), e.consume(R), e.exit(u), H) : (e.exit(i), k(R));
|
|
57836
57837
|
}
|
|
57837
57838
|
function H(R) {
|
|
57838
|
-
return R === null || R === 60 || R === 61 || R === 62 || R === 96 || R === 125 || f && he(R) ? n(R) : R === 34 || R === 39 ? (e.enter(d), e.enter(m), e.consume(R), e.exit(m), w = R,
|
|
57839
|
+
return R === null || R === 60 || R === 61 || R === 62 || R === 96 || R === 125 || f && he(R) ? n(R) : R === 34 || R === 39 ? (e.enter(d), e.enter(m), e.consume(R), e.exit(m), w = R, L) : f && Pe(R) ? Le(e, H, "whitespace")(R) : !f && Ke(R) ? rr(e, H)(R) : (e.enter(p), e.enter(h), e.consume(R), w = void 0, C);
|
|
57839
57840
|
}
|
|
57840
57841
|
function C(R) {
|
|
57841
57842
|
return R === null || R === 34 || R === 39 || R === 60 || R === 61 || R === 62 || R === 96 ? n(R) : R === 125 || Ke(R) ? (e.exit(h), e.exit(p), e.exit(i), k(R)) : (e.consume(R), C);
|
|
57842
57843
|
}
|
|
57843
|
-
function
|
|
57844
|
+
function L(R) {
|
|
57844
57845
|
return R === w ? (e.enter(m), e.consume(R), e.exit(m), e.exit(d), e.exit(i), J) : (e.enter(p), W(R));
|
|
57845
57846
|
}
|
|
57846
57847
|
function W(R) {
|
|
57847
|
-
return R === w ? (e.exit(p),
|
|
57848
|
+
return R === w ? (e.exit(p), L(R)) : R === null ? n(R) : he(R) ? f ? n(R) : rr(e, W)(R) : (e.enter(h), e.consume(R), Y);
|
|
57848
57849
|
}
|
|
57849
57850
|
function Y(R) {
|
|
57850
57851
|
return R === w || R === null || he(R) ? (e.exit(h), W(R)) : (e.consume(R), Y);
|
|
@@ -57944,29 +57945,29 @@ function tRe(e, t, n) {
|
|
|
57944
57945
|
}
|
|
57945
57946
|
function _(C) {
|
|
57946
57947
|
if (C === null) {
|
|
57947
|
-
const
|
|
57948
|
-
return r.parser.lazy[
|
|
57948
|
+
const L = e.exit("chunkDocument");
|
|
57949
|
+
return r.parser.lazy[L.start.line] = !1, x(C);
|
|
57949
57950
|
}
|
|
57950
57951
|
return he(C) ? e.check(Oi, M, S)(C) : (e.consume(C), _);
|
|
57951
57952
|
}
|
|
57952
57953
|
function k(C) {
|
|
57953
|
-
const
|
|
57954
|
+
const L = e.enter("chunkDocument", {
|
|
57954
57955
|
contentType: "document",
|
|
57955
57956
|
previous: s
|
|
57956
57957
|
});
|
|
57957
|
-
return s && (s.next =
|
|
57958
|
+
return s && (s.next = L), s = L, _(C);
|
|
57958
57959
|
}
|
|
57959
57960
|
function v(C) {
|
|
57960
57961
|
return e.enter("directiveContainerContent"), y(C);
|
|
57961
57962
|
}
|
|
57962
57963
|
function M(C) {
|
|
57963
57964
|
e.consume(C);
|
|
57964
|
-
const
|
|
57965
|
-
return r.parser.lazy[
|
|
57965
|
+
const L = e.exit("chunkDocument");
|
|
57966
|
+
return r.parser.lazy[L.start.line] = !1, y;
|
|
57966
57967
|
}
|
|
57967
57968
|
function S(C) {
|
|
57968
|
-
const
|
|
57969
|
-
return r.parser.lazy[
|
|
57969
|
+
const L = e.exit("chunkDocument");
|
|
57970
|
+
return r.parser.lazy[L.start.line] = !1, x(C);
|
|
57970
57971
|
}
|
|
57971
57972
|
function x(C) {
|
|
57972
57973
|
return e.exit("directiveContainerContent"), z(C);
|
|
@@ -57974,7 +57975,7 @@ function tRe(e, t, n) {
|
|
|
57974
57975
|
function z(C) {
|
|
57975
57976
|
return e.exit("directiveContainer"), t(C);
|
|
57976
57977
|
}
|
|
57977
|
-
function H(C,
|
|
57978
|
+
function H(C, L, W) {
|
|
57978
57979
|
let Y = 0;
|
|
57979
57980
|
return Le(C, J, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
57980
57981
|
function J(B) {
|
|
@@ -57984,7 +57985,7 @@ function tRe(e, t, n) {
|
|
|
57984
57985
|
return B === 58 ? (C.consume(B), Y++, G) : Y < o ? W(B) : (C.exit("directiveContainerSequence"), Le(C, R, "whitespace")(B));
|
|
57985
57986
|
}
|
|
57986
57987
|
function R(B) {
|
|
57987
|
-
return B === null || he(B) ? (C.exit("directiveContainerFence"),
|
|
57988
|
+
return B === null || he(B) ? (C.exit("directiveContainerFence"), L(B)) : W(B);
|
|
57988
57989
|
}
|
|
57989
57990
|
}
|
|
57990
57991
|
}
|
|
@@ -62831,9 +62832,9 @@ const Zf = "[A-Za-z$_][0-9A-Za-z$_]*", fIe = [
|
|
|
62831
62832
|
y8
|
|
62832
62833
|
);
|
|
62833
62834
|
function kIe(e) {
|
|
62834
|
-
const t = e.regex, n = (
|
|
62835
|
-
const A = "</" +
|
|
62836
|
-
return
|
|
62835
|
+
const t = e.regex, n = (D, { after: K }) => {
|
|
62836
|
+
const A = "</" + D[0].slice(1);
|
|
62837
|
+
return D.input.indexOf(A, K) !== -1;
|
|
62837
62838
|
}, r = Zf, a = {
|
|
62838
62839
|
begin: "<>",
|
|
62839
62840
|
end: "</>"
|
|
@@ -62844,8 +62845,8 @@ function kIe(e) {
|
|
|
62844
62845
|
* @param {RegExpMatchArray} match
|
|
62845
62846
|
* @param {CallbackResponse} response
|
|
62846
62847
|
*/
|
|
62847
|
-
isTrulyOpeningTag: (
|
|
62848
|
-
const A =
|
|
62848
|
+
isTrulyOpeningTag: (D, K) => {
|
|
62849
|
+
const A = D[0].length + D.index, Q = D.input[A];
|
|
62849
62850
|
if (
|
|
62850
62851
|
// HTML should not include another raw `<` inside a tag
|
|
62851
62852
|
// nested type?
|
|
@@ -62857,9 +62858,9 @@ function kIe(e) {
|
|
|
62857
62858
|
K.ignoreMatch();
|
|
62858
62859
|
return;
|
|
62859
62860
|
}
|
|
62860
|
-
Q === ">" && (n(
|
|
62861
|
+
Q === ">" && (n(D, { after: A }) || K.ignoreMatch());
|
|
62861
62862
|
let ee;
|
|
62862
|
-
const O =
|
|
62863
|
+
const O = D.input.substring(A);
|
|
62863
62864
|
if (ee = O.match(/^\s*=/)) {
|
|
62864
62865
|
K.ignoreMatch();
|
|
62865
62866
|
return;
|
|
@@ -63092,7 +63093,7 @@ function kIe(e) {
|
|
|
63092
63093
|
className: "meta",
|
|
63093
63094
|
relevance: 10,
|
|
63094
63095
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
63095
|
-
},
|
|
63096
|
+
}, L = {
|
|
63096
63097
|
variants: [
|
|
63097
63098
|
{
|
|
63098
63099
|
match: [
|
|
@@ -63122,8 +63123,8 @@ function kIe(e) {
|
|
|
63122
63123
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
63123
63124
|
className: "variable.constant"
|
|
63124
63125
|
};
|
|
63125
|
-
function Y(
|
|
63126
|
-
return t.concat("(?!",
|
|
63126
|
+
function Y(D) {
|
|
63127
|
+
return t.concat("(?!", D.join("|"), ")");
|
|
63127
63128
|
}
|
|
63128
63129
|
const J = {
|
|
63129
63130
|
match: t.concat(
|
|
@@ -63132,7 +63133,7 @@ function kIe(e) {
|
|
|
63132
63133
|
...b8,
|
|
63133
63134
|
"super",
|
|
63134
63135
|
"import"
|
|
63135
|
-
].map((
|
|
63136
|
+
].map((D) => `${D}\\s*\\(`)),
|
|
63136
63137
|
r,
|
|
63137
63138
|
t.lookahead(/\s*\(/)
|
|
63138
63139
|
),
|
|
@@ -63291,7 +63292,7 @@ function kIe(e) {
|
|
|
63291
63292
|
}
|
|
63292
63293
|
]
|
|
63293
63294
|
},
|
|
63294
|
-
|
|
63295
|
+
L,
|
|
63295
63296
|
{
|
|
63296
63297
|
// prevent this from getting swallowed up by function
|
|
63297
63298
|
// since they appear "function like"
|
|
@@ -65984,7 +65985,7 @@ function $Ie(e) {
|
|
|
65984
65985
|
] }, C = {
|
|
65985
65986
|
scope: "attr",
|
|
65986
65987
|
match: t.concat(r, t.lookahead(":"), t.lookahead(/(?!::)/))
|
|
65987
|
-
},
|
|
65988
|
+
}, L = {
|
|
65988
65989
|
relevance: 0,
|
|
65989
65990
|
begin: /\(/,
|
|
65990
65991
|
end: /\)/,
|
|
@@ -66009,9 +66010,9 @@ function $Ie(e) {
|
|
|
66009
66010
|
t.lookahead(/(?=\()/)
|
|
66010
66011
|
],
|
|
66011
66012
|
scope: { 3: "title.function.invoke" },
|
|
66012
|
-
contains: [
|
|
66013
|
+
contains: [L]
|
|
66013
66014
|
};
|
|
66014
|
-
|
|
66015
|
+
L.contains.push(W);
|
|
66015
66016
|
const Y = [
|
|
66016
66017
|
C,
|
|
66017
66018
|
H,
|
|
@@ -67228,7 +67229,7 @@ function UIe(e) {
|
|
|
67228
67229
|
}
|
|
67229
67230
|
].concat(l, u);
|
|
67230
67231
|
d.contains = x, y.contains = x;
|
|
67231
|
-
const
|
|
67232
|
+
const L = [
|
|
67232
67233
|
{
|
|
67233
67234
|
begin: /^\s*=>/,
|
|
67234
67235
|
starts: {
|
|
@@ -67257,7 +67258,7 @@ function UIe(e) {
|
|
|
67257
67258
|
],
|
|
67258
67259
|
keywords: o,
|
|
67259
67260
|
illegal: /\/\*/,
|
|
67260
|
-
contains: [e.SHEBANG({ binary: "ruby" })].concat(
|
|
67261
|
+
contains: [e.SHEBANG({ binary: "ruby" })].concat(L).concat(u).concat(x)
|
|
67261
67262
|
};
|
|
67262
67263
|
}
|
|
67263
67264
|
function HIe(e) {
|
|
@@ -69555,7 +69556,7 @@ function lOe(e) {
|
|
|
69555
69556
|
H("##"),
|
|
69556
69557
|
H("###")
|
|
69557
69558
|
]
|
|
69558
|
-
},
|
|
69559
|
+
}, L = [
|
|
69559
69560
|
e.BACKSLASH_ESCAPE,
|
|
69560
69561
|
{
|
|
69561
69562
|
begin: /\[/,
|
|
@@ -69566,14 +69567,14 @@ function lOe(e) {
|
|
|
69566
69567
|
], W = {
|
|
69567
69568
|
begin: /\/[^\s](?=[^/\n]*\/)/,
|
|
69568
69569
|
end: /\//,
|
|
69569
|
-
contains:
|
|
69570
|
+
contains: L
|
|
69570
69571
|
}, Y = (ke) => {
|
|
69571
69572
|
const qe = at(ke, /\//), de = at(/\//, ke);
|
|
69572
69573
|
return {
|
|
69573
69574
|
begin: qe,
|
|
69574
69575
|
end: de,
|
|
69575
69576
|
contains: [
|
|
69576
|
-
...
|
|
69577
|
+
...L,
|
|
69577
69578
|
{
|
|
69578
69579
|
scope: "comment",
|
|
69579
69580
|
begin: `#(?!.*${de})`,
|
|
@@ -69599,7 +69600,7 @@ function lOe(e) {
|
|
|
69599
69600
|
G,
|
|
69600
69601
|
R,
|
|
69601
69602
|
B
|
|
69602
|
-
],
|
|
69603
|
+
], D = {
|
|
69603
69604
|
match: /(@|#(un)?)available/,
|
|
69604
69605
|
scope: "keyword",
|
|
69605
69606
|
starts: { contains: [
|
|
@@ -69621,7 +69622,7 @@ function lOe(e) {
|
|
|
69621
69622
|
scope: "meta",
|
|
69622
69623
|
match: at(/@/, Dn)
|
|
69623
69624
|
}, Q = [
|
|
69624
|
-
|
|
69625
|
+
D,
|
|
69625
69626
|
K,
|
|
69626
69627
|
A
|
|
69627
69628
|
], ee = {
|
|
@@ -70044,9 +70045,9 @@ const bo = "[A-Za-z$_][0-9A-Za-z$_]*", M8 = [
|
|
|
70044
70045
|
A8
|
|
70045
70046
|
);
|
|
70046
70047
|
function cOe(e) {
|
|
70047
|
-
const t = e.regex, n = (
|
|
70048
|
-
const A = "</" +
|
|
70049
|
-
return
|
|
70048
|
+
const t = e.regex, n = (D, { after: K }) => {
|
|
70049
|
+
const A = "</" + D[0].slice(1);
|
|
70050
|
+
return D.input.indexOf(A, K) !== -1;
|
|
70050
70051
|
}, r = bo, a = {
|
|
70051
70052
|
begin: "<>",
|
|
70052
70053
|
end: "</>"
|
|
@@ -70057,8 +70058,8 @@ function cOe(e) {
|
|
|
70057
70058
|
* @param {RegExpMatchArray} match
|
|
70058
70059
|
* @param {CallbackResponse} response
|
|
70059
70060
|
*/
|
|
70060
|
-
isTrulyOpeningTag: (
|
|
70061
|
-
const A =
|
|
70061
|
+
isTrulyOpeningTag: (D, K) => {
|
|
70062
|
+
const A = D[0].length + D.index, Q = D.input[A];
|
|
70062
70063
|
if (
|
|
70063
70064
|
// HTML should not include another raw `<` inside a tag
|
|
70064
70065
|
// nested type?
|
|
@@ -70070,9 +70071,9 @@ function cOe(e) {
|
|
|
70070
70071
|
K.ignoreMatch();
|
|
70071
70072
|
return;
|
|
70072
70073
|
}
|
|
70073
|
-
Q === ">" && (n(
|
|
70074
|
+
Q === ">" && (n(D, { after: A }) || K.ignoreMatch());
|
|
70074
70075
|
let ee;
|
|
70075
|
-
const O =
|
|
70076
|
+
const O = D.input.substring(A);
|
|
70076
70077
|
if (ee = O.match(/^\s*=/)) {
|
|
70077
70078
|
K.ignoreMatch();
|
|
70078
70079
|
return;
|
|
@@ -70305,7 +70306,7 @@ function cOe(e) {
|
|
|
70305
70306
|
className: "meta",
|
|
70306
70307
|
relevance: 10,
|
|
70307
70308
|
begin: /^\s*['"]use (strict|asm)['"]/
|
|
70308
|
-
},
|
|
70309
|
+
}, L = {
|
|
70309
70310
|
variants: [
|
|
70310
70311
|
{
|
|
70311
70312
|
match: [
|
|
@@ -70335,8 +70336,8 @@ function cOe(e) {
|
|
|
70335
70336
|
match: /\b[A-Z][A-Z_0-9]+\b/,
|
|
70336
70337
|
className: "variable.constant"
|
|
70337
70338
|
};
|
|
70338
|
-
function Y(
|
|
70339
|
-
return t.concat("(?!",
|
|
70339
|
+
function Y(D) {
|
|
70340
|
+
return t.concat("(?!", D.join("|"), ")");
|
|
70340
70341
|
}
|
|
70341
70342
|
const J = {
|
|
70342
70343
|
match: t.concat(
|
|
@@ -70345,7 +70346,7 @@ function cOe(e) {
|
|
|
70345
70346
|
...T8,
|
|
70346
70347
|
"super",
|
|
70347
70348
|
"import"
|
|
70348
|
-
].map((
|
|
70349
|
+
].map((D) => `${D}\\s*\\(`)),
|
|
70349
70350
|
r,
|
|
70350
70351
|
t.lookahead(/\s*\(/)
|
|
70351
70352
|
),
|
|
@@ -70504,7 +70505,7 @@ function cOe(e) {
|
|
|
70504
70505
|
}
|
|
70505
70506
|
]
|
|
70506
70507
|
},
|
|
70507
|
-
|
|
70508
|
+
L,
|
|
70508
70509
|
{
|
|
70509
70510
|
// prevent this from getting swallowed up by function
|
|
70510
70511
|
// since they appear "function like"
|
|
@@ -71985,26 +71986,26 @@ const hl = O8, ig = br, og = Symbol("nomatch"), sLe = 7, H8 = function(e) {
|
|
|
71985
71986
|
function u(B) {
|
|
71986
71987
|
let P = B.className + " ";
|
|
71987
71988
|
P += B.parentNode ? B.parentNode.className : "";
|
|
71988
|
-
const
|
|
71989
|
-
if (
|
|
71990
|
-
const K = H(
|
|
71991
|
-
return K || (ag(i.replace("{}",
|
|
71989
|
+
const D = s.languageDetectRe.exec(P);
|
|
71990
|
+
if (D) {
|
|
71991
|
+
const K = H(D[1]);
|
|
71992
|
+
return K || (ag(i.replace("{}", D[1])), ag("Falling back to no-highlight mode for this block.", B)), K ? D[1] : "no-highlight";
|
|
71992
71993
|
}
|
|
71993
71994
|
return P.split(/\s+/).find((K) => l(K) || H(K));
|
|
71994
71995
|
}
|
|
71995
|
-
function d(B, P,
|
|
71996
|
+
function d(B, P, D) {
|
|
71996
71997
|
let K = "", A = "";
|
|
71997
|
-
typeof P == "object" ? (K = B,
|
|
71998
|
-
https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P),
|
|
71998
|
+
typeof P == "object" ? (K = B, D = P.ignoreIllegals, A = P.language) : (Qr("10.7.0", "highlight(lang, code, ...args) has been deprecated."), Qr("10.7.0", `Please use highlight(code, options) instead.
|
|
71999
|
+
https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), D === void 0 && (D = !0);
|
|
71999
72000
|
const Q = {
|
|
72000
72001
|
code: K,
|
|
72001
72002
|
language: A
|
|
72002
72003
|
};
|
|
72003
72004
|
G("before:highlight", Q);
|
|
72004
|
-
const ee = Q.result ? Q.result : p(Q.language, Q.code,
|
|
72005
|
+
const ee = Q.result ? Q.result : p(Q.language, Q.code, D);
|
|
72005
72006
|
return ee.code = Q.code, G("after:highlight", ee), ee;
|
|
72006
72007
|
}
|
|
72007
|
-
function p(B, P,
|
|
72008
|
+
function p(B, P, D, K) {
|
|
72008
72009
|
const A = /* @__PURE__ */ Object.create(null);
|
|
72009
72010
|
function Q(q, Z) {
|
|
72010
72011
|
return q.keywords[Z];
|
|
@@ -72127,7 +72128,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
|
|
|
72127
72128
|
}
|
|
72128
72129
|
if (Qe = Z, Z.type === "begin")
|
|
72129
72130
|
return ne(Z);
|
|
72130
|
-
if (Z.type === "illegal" && !
|
|
72131
|
+
if (Z.type === "illegal" && !D) {
|
|
72131
72132
|
const pe = new Error('Illegal lexeme "' + se + '" for mode "' + (de.scope || "<unnamed>") + '"');
|
|
72132
72133
|
throw pe.mode = de, pe;
|
|
72133
72134
|
} else if (Z.type === "end") {
|
|
@@ -72213,10 +72214,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
|
|
|
72213
72214
|
}
|
|
72214
72215
|
function h(B, P) {
|
|
72215
72216
|
P = P || s.languages || Object.keys(t);
|
|
72216
|
-
const
|
|
72217
|
+
const D = m(B), K = P.filter(H).filter(L).map(
|
|
72217
72218
|
(ue) => p(ue, B, !1)
|
|
72218
72219
|
);
|
|
72219
|
-
K.unshift(
|
|
72220
|
+
K.unshift(D);
|
|
72220
72221
|
const A = K.sort((ue, ge) => {
|
|
72221
72222
|
if (ue.relevance !== ge.relevance)
|
|
72222
72223
|
return ge.relevance - ue.relevance;
|
|
@@ -72230,18 +72231,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
|
|
|
72230
72231
|
}), [Q, ee] = A, O = Q;
|
|
72231
72232
|
return O.secondBest = ee, O;
|
|
72232
72233
|
}
|
|
72233
|
-
function f(B, P,
|
|
72234
|
-
const K = P && n[P] ||
|
|
72234
|
+
function f(B, P, D) {
|
|
72235
|
+
const K = P && n[P] || D;
|
|
72235
72236
|
B.classList.add("hljs"), B.classList.add(`language-${K}`);
|
|
72236
72237
|
}
|
|
72237
72238
|
function y(B) {
|
|
72238
72239
|
let P = null;
|
|
72239
|
-
const
|
|
72240
|
-
if (l(
|
|
72240
|
+
const D = u(B);
|
|
72241
|
+
if (l(D))
|
|
72241
72242
|
return;
|
|
72242
72243
|
if (G(
|
|
72243
72244
|
"before:highlightElement",
|
|
72244
|
-
{ el: B, language:
|
|
72245
|
+
{ el: B, language: D }
|
|
72245
72246
|
), B.dataset.highlighted) {
|
|
72246
72247
|
console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", B);
|
|
72247
72248
|
return;
|
|
@@ -72252,8 +72253,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
|
|
|
72252
72253
|
B.innerHTML
|
|
72253
72254
|
);
|
|
72254
72255
|
P = B;
|
|
72255
|
-
const K = P.textContent, A =
|
|
72256
|
-
B.innerHTML = A.value, B.dataset.highlighted = "yes", f(B,
|
|
72256
|
+
const K = P.textContent, A = D ? d(K, { language: D, ignoreIllegals: !0 }) : h(K);
|
|
72257
|
+
B.innerHTML = A.value, B.dataset.highlighted = "yes", f(B, D, A.language), B.result = {
|
|
72257
72258
|
language: A.language,
|
|
72258
72259
|
// TODO: remove with version 11.0
|
|
72259
72260
|
re: A.relevance,
|
|
@@ -72284,17 +72285,17 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
|
|
|
72284
72285
|
document.querySelectorAll(s.cssSelector).forEach(y);
|
|
72285
72286
|
}
|
|
72286
72287
|
function S(B, P) {
|
|
72287
|
-
let
|
|
72288
|
+
let D = null;
|
|
72288
72289
|
try {
|
|
72289
|
-
|
|
72290
|
+
D = P(e);
|
|
72290
72291
|
} catch (K) {
|
|
72291
72292
|
if (zr("Language definition for '{}' could not be registered.".replace("{}", B)), a)
|
|
72292
72293
|
zr(K);
|
|
72293
72294
|
else
|
|
72294
72295
|
throw K;
|
|
72295
|
-
|
|
72296
|
+
D = o;
|
|
72296
72297
|
}
|
|
72297
|
-
|
|
72298
|
+
D.name || (D.name = B), t[B] = D, D.rawDefinition = P.bind(null, e), D.aliases && C(D.aliases, { languageName: B });
|
|
72298
72299
|
}
|
|
72299
72300
|
function x(B) {
|
|
72300
72301
|
delete t[B];
|
|
@@ -72308,11 +72309,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
|
|
|
72308
72309
|
return B = (B || "").toLowerCase(), t[B] || t[n[B]];
|
|
72309
72310
|
}
|
|
72310
72311
|
function C(B, { languageName: P }) {
|
|
72311
|
-
typeof B == "string" && (B = [B]), B.forEach((
|
|
72312
|
-
n[
|
|
72312
|
+
typeof B == "string" && (B = [B]), B.forEach((D) => {
|
|
72313
|
+
n[D.toLowerCase()] = P;
|
|
72313
72314
|
});
|
|
72314
72315
|
}
|
|
72315
|
-
function
|
|
72316
|
+
function L(B) {
|
|
72316
72317
|
const P = H(B);
|
|
72317
72318
|
return P && !P.disableAutodetect;
|
|
72318
72319
|
}
|
|
@@ -72335,9 +72336,9 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
|
|
|
72335
72336
|
P !== -1 && r.splice(P, 1);
|
|
72336
72337
|
}
|
|
72337
72338
|
function G(B, P) {
|
|
72338
|
-
const
|
|
72339
|
+
const D = B;
|
|
72339
72340
|
r.forEach(function(K) {
|
|
72340
|
-
K[
|
|
72341
|
+
K[D] && K[D](P);
|
|
72341
72342
|
});
|
|
72342
72343
|
}
|
|
72343
72344
|
function R(B) {
|
|
@@ -72358,7 +72359,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), A = B, K = P), L ===
|
|
|
72358
72359
|
listLanguages: z,
|
|
72359
72360
|
getLanguage: H,
|
|
72360
72361
|
registerAliases: C,
|
|
72361
|
-
autoDetection:
|
|
72362
|
+
autoDetection: L,
|
|
72362
72363
|
inherit: ig,
|
|
72363
72364
|
addPlugin: Y,
|
|
72364
72365
|
removePlugin: J
|
|
@@ -72959,10 +72960,10 @@ function DLe(e, t, n, r, a, i, o, s, l) {
|
|
|
72959
72960
|
if (H) {
|
|
72960
72961
|
var C = z.split(`
|
|
72961
72962
|
`);
|
|
72962
|
-
C.forEach(function(
|
|
72963
|
+
C.forEach(function(L, W) {
|
|
72963
72964
|
var Y = r && p.length + i, J = {
|
|
72964
72965
|
type: "text",
|
|
72965
|
-
value: "".concat(
|
|
72966
|
+
value: "".concat(L, `
|
|
72966
72967
|
`)
|
|
72967
72968
|
};
|
|
72968
72969
|
if (W === 0) {
|
|
@@ -72974,14 +72975,14 @@ function DLe(e, t, n, r, a, i, o, s, l) {
|
|
|
72974
72975
|
} else if (W === C.length - 1) {
|
|
72975
72976
|
var B = d[h + 1] && d[h + 1].children && d[h + 1].children[0], P = {
|
|
72976
72977
|
type: "text",
|
|
72977
|
-
value: "".concat(
|
|
72978
|
+
value: "".concat(L)
|
|
72978
72979
|
};
|
|
72979
72980
|
if (B) {
|
|
72980
|
-
var
|
|
72981
|
+
var D = Qi({
|
|
72981
72982
|
children: [P],
|
|
72982
72983
|
className: x.properties.className
|
|
72983
72984
|
});
|
|
72984
|
-
d.splice(h + 1, 0,
|
|
72985
|
+
d.splice(h + 1, 0, D);
|
|
72985
72986
|
} else {
|
|
72986
72987
|
var K = [P], A = w(K, Y, x.properties.className);
|
|
72987
72988
|
p.push(A);
|
|
@@ -73044,14 +73045,14 @@ function FLe(e, t) {
|
|
|
73044
73045
|
var a = r.language, i = r.children, o = r.style, s = o === void 0 ? t : o, l = r.customStyle, u = l === void 0 ? {} : l, d = r.codeTagProps, p = d === void 0 ? {
|
|
73045
73046
|
className: a ? "language-".concat(a) : void 0,
|
|
73046
73047
|
style: qn(qn({}, s['code[class*="language-"]']), s['code[class*="language-'.concat(a, '"]')])
|
|
73047
|
-
} : d, m = r.useInlineStyles, h = m === void 0 ? !0 : m, f = r.showLineNumbers, y = f === void 0 ? !1 : f, w = r.showInlineLineNumbers, _ = w === void 0 ? !0 : w, k = r.startingLineNumber, v = k === void 0 ? 1 : k, M = r.lineNumberContainerStyle, S = r.lineNumberStyle, x = S === void 0 ? {} : S, z = r.wrapLines, H = r.wrapLongLines, C = H === void 0 ? !1 : H,
|
|
73048
|
+
} : d, m = r.useInlineStyles, h = m === void 0 ? !0 : m, f = r.showLineNumbers, y = f === void 0 ? !1 : f, w = r.showInlineLineNumbers, _ = w === void 0 ? !0 : w, k = r.startingLineNumber, v = k === void 0 ? 1 : k, M = r.lineNumberContainerStyle, S = r.lineNumberStyle, x = S === void 0 ? {} : S, z = r.wrapLines, H = r.wrapLongLines, C = H === void 0 ? !1 : H, L = r.lineProps, W = L === void 0 ? {} : L, Y = r.renderer, J = r.PreTag, G = J === void 0 ? "pre" : J, R = r.CodeTag, B = R === void 0 ? "code" : R, P = r.code, D = P === void 0 ? (Array.isArray(i) ? i[0] : i) || "" : P, K = r.astGenerator, A = gLe(r, TLe);
|
|
73048
73049
|
K = K || e;
|
|
73049
73050
|
var Q = y ? /* @__PURE__ */ Bn.createElement(OLe, {
|
|
73050
73051
|
containerStyle: M,
|
|
73051
73052
|
codeStyle: p.style || {},
|
|
73052
73053
|
numberStyle: x,
|
|
73053
73054
|
startingLineNumber: v,
|
|
73054
|
-
codeString:
|
|
73055
|
+
codeString: D
|
|
73055
73056
|
}) : null, ee = s.hljs || s['pre[class*="language-"]'] || {
|
|
73056
73057
|
backgroundColor: "#fff"
|
|
73057
73058
|
}, O = Z8(K) ? "hljs" : "prismjs", ue = h ? Object.assign({}, A, {
|
|
@@ -73065,15 +73066,15 @@ function FLe(e, t) {
|
|
|
73065
73066
|
}) : p.style = qn(qn({}, p.style), {}, {
|
|
73066
73067
|
whiteSpace: "pre"
|
|
73067
73068
|
}), !K)
|
|
73068
|
-
return /* @__PURE__ */ Bn.createElement(G, ue, Q, /* @__PURE__ */ Bn.createElement(B, p,
|
|
73069
|
+
return /* @__PURE__ */ Bn.createElement(G, ue, Q, /* @__PURE__ */ Bn.createElement(B, p, D));
|
|
73069
73070
|
(z === void 0 && Y || C) && (z = !0), Y = Y || $Le;
|
|
73070
73071
|
var ge = [{
|
|
73071
73072
|
type: "text",
|
|
73072
|
-
value:
|
|
73073
|
+
value: D
|
|
73073
73074
|
}], be = zLe({
|
|
73074
73075
|
astGenerator: K,
|
|
73075
73076
|
language: a,
|
|
73076
|
-
code:
|
|
73077
|
+
code: D,
|
|
73077
73078
|
defaultCodeValue: ge
|
|
73078
73079
|
});
|
|
73079
73080
|
be.language === null && (be.value = ge);
|
|
@@ -73932,8 +73933,8 @@ function IFe(e, t) {
|
|
|
73932
73933
|
return (n.position.indent || n.position.start) && (n.indent = n.position.indent || [], n.position = n.position.start), OFe(e, n);
|
|
73933
73934
|
}
|
|
73934
73935
|
function OFe(e, t) {
|
|
73935
|
-
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, d = t.position, p = t.indent || [], m = e.length, h = 0, f = -1, y = d.column || 1, w = d.line || 1, _ = "", k = [], v, M, S, x, z, H, C,
|
|
73936
|
-
for (typeof n == "string" && (n = n.charCodeAt(0)),
|
|
73936
|
+
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, d = t.position, p = t.indent || [], m = e.length, h = 0, f = -1, y = d.column || 1, w = d.line || 1, _ = "", k = [], v, M, S, x, z, H, C, L, W, Y, J, G, R, B, P, D, K, A, Q;
|
|
73937
|
+
for (typeof n == "string" && (n = n.charCodeAt(0)), D = ee(), L = o ? O : _Fe, h--, m++; ++h < m; )
|
|
73937
73938
|
if (z === Mg && (y = p[f] || 1), z = e.charCodeAt(h), z === Sg) {
|
|
73938
73939
|
if (C = e.charCodeAt(h + 1), C === wFe || C === Mg || C === xFe || C === EFe || C === Sg || C === SFe || C !== C || n && C === n) {
|
|
73939
73940
|
_ += Jr(z), y++;
|
|
@@ -73941,12 +73942,12 @@ function OFe(e, t) {
|
|
|
73941
73942
|
}
|
|
73942
73943
|
for (R = h + 1, G = R, Q = R, C === AFe ? (Q = ++G, C = e.charCodeAt(Q), C === TFe || C === CFe ? (B = Fh, Q = ++G) : B = Ph) : B = aa, v = "", J = "", x = "", P = ts[B], Q--; ++Q < m && (C = e.charCodeAt(Q), !!P(C)); )
|
|
73943
73944
|
x += Jr(C), B === aa && vFe.call(wg, x) && (v = x, J = wg[x]);
|
|
73944
|
-
S = e.charCodeAt(Q) === MFe, S && (Q++, M = B === aa ? bFe(x) : !1, M && (v = x, J = M)), A = 1 + Q - R, !S && !r || (x ? B === aa ? (S && !J ?
|
|
73945
|
+
S = e.charCodeAt(Q) === MFe, S && (Q++, M = B === aa ? bFe(x) : !1, M && (v = x, J = M)), A = 1 + Q - R, !S && !r || (x ? B === aa ? (S && !J ? L(m7, 1) : (v !== x && (Q = G + v.length, A = 1 + Q - G, S = !1), S || (W = v ? u7 : p7, t.attribute ? (C = e.charCodeAt(Q), C === NFe ? (L(W, A), J = null) : c7(C) ? J = null : L(W, A)) : L(W, A))), H = J) : (S || L(d7, A), H = parseInt(x, qh[B]), LFe(H) ? (L(f7, A), H = Jr(RFe)) : H in xg ? (L(lp, A), H = xg[H]) : (Y = "", DFe(H) && L(lp, A), H > 65535 && (H -= 65536, Y += Jr(H >>> 10 | 55296), H = 56320 | H & 1023), H = Y + Jr(H))) : B !== aa && L(h7, A)), H ? (ue(), D = ee(), h = Q - 1, y += Q - R + 1, k.push(H), K = ee(), K.offset++, i && i.call(
|
|
73945
73946
|
l,
|
|
73946
73947
|
H,
|
|
73947
|
-
{ start:
|
|
73948
|
+
{ start: D, end: K },
|
|
73948
73949
|
e.slice(R - 1, Q)
|
|
73949
|
-
),
|
|
73950
|
+
), D = K) : (x = e.slice(R - 1, Q), _ += x, y += x.length, h = Q - 1);
|
|
73950
73951
|
} else
|
|
73951
73952
|
z === 10 && (w++, f++, y = 0), z === z ? (_ += Jr(z), y++) : ue();
|
|
73952
73953
|
return k.join("");
|
|
@@ -73962,7 +73963,7 @@ function OFe(e, t) {
|
|
|
73962
73963
|
Ie.column += be, Ie.offset += be, o.call(u, Ar[ge], Ie, ge);
|
|
73963
73964
|
}
|
|
73964
73965
|
function ue() {
|
|
73965
|
-
_ && (k.push(_), a && a.call(s, _, { start:
|
|
73966
|
+
_ && (k.push(_), a && a.call(s, _, { start: D, end: ee() }), _ = "");
|
|
73966
73967
|
}
|
|
73967
73968
|
}
|
|
73968
73969
|
function LFe(e) {
|
|
@@ -74326,9 +74327,9 @@ var g7 = { exports: {} };
|
|
|
74326
74327
|
M.hasOwnProperty(C) && (z[C] = M[C]);
|
|
74327
74328
|
M.hasOwnProperty(H) || (z[H] = x[H]);
|
|
74328
74329
|
}
|
|
74329
|
-
var
|
|
74330
|
+
var L = S[k];
|
|
74330
74331
|
return S[k] = z, s.languages.DFS(s.languages, function(W, Y) {
|
|
74331
|
-
Y ===
|
|
74332
|
+
Y === L && W != k && (this[W] = z);
|
|
74332
74333
|
}), z;
|
|
74333
74334
|
},
|
|
74334
74335
|
// Traverse a language definition with Depth First Search
|
|
@@ -74338,8 +74339,8 @@ var g7 = { exports: {} };
|
|
|
74338
74339
|
for (var H in v)
|
|
74339
74340
|
if (v.hasOwnProperty(H)) {
|
|
74340
74341
|
M.call(v, H, v[H], S || H);
|
|
74341
|
-
var C = v[H],
|
|
74342
|
-
|
|
74342
|
+
var C = v[H], L = s.util.type(C);
|
|
74343
|
+
L === "Object" && !x[z(C)] ? (x[z(C)] = !0, k(C, M, null, x)) : L === "Array" && !x[z(C)] && (x[z(C)] = !0, k(C, M, H, x));
|
|
74343
74344
|
}
|
|
74344
74345
|
}
|
|
74345
74346
|
},
|
|
@@ -74423,7 +74424,7 @@ var g7 = { exports: {} };
|
|
|
74423
74424
|
grammar: x,
|
|
74424
74425
|
code: H
|
|
74425
74426
|
};
|
|
74426
|
-
function
|
|
74427
|
+
function L(Y) {
|
|
74427
74428
|
C.highlightedCode = Y, s.hooks.run("before-insert", C), C.element.innerHTML = C.highlightedCode, s.hooks.run("after-highlight", C), s.hooks.run("complete", C), M && M.call(C.element);
|
|
74428
74429
|
}
|
|
74429
74430
|
if (s.hooks.run("before-sanity-check", C), z = C.element.parentElement, z && z.nodeName.toLowerCase() === "pre" && !z.hasAttribute("tabindex") && z.setAttribute("tabindex", "0"), !C.code) {
|
|
@@ -74431,20 +74432,20 @@ var g7 = { exports: {} };
|
|
|
74431
74432
|
return;
|
|
74432
74433
|
}
|
|
74433
74434
|
if (s.hooks.run("before-highlight", C), !C.grammar) {
|
|
74434
|
-
|
|
74435
|
+
L(s.util.encode(C.code));
|
|
74435
74436
|
return;
|
|
74436
74437
|
}
|
|
74437
74438
|
if (v && r.Worker) {
|
|
74438
74439
|
var W = new Worker(s.filename);
|
|
74439
74440
|
W.onmessage = function(Y) {
|
|
74440
|
-
|
|
74441
|
+
L(Y.data);
|
|
74441
74442
|
}, W.postMessage(JSON.stringify({
|
|
74442
74443
|
language: C.language,
|
|
74443
74444
|
code: C.code,
|
|
74444
74445
|
immediateClose: !0
|
|
74445
74446
|
}));
|
|
74446
74447
|
} else
|
|
74447
|
-
|
|
74448
|
+
L(s.highlight(C.code, C.grammar, C.language));
|
|
74448
74449
|
},
|
|
74449
74450
|
/**
|
|
74450
74451
|
* Low-level function, only use if you know what you’re doing. It accepts a string of text as input
|
|
@@ -74560,8 +74561,8 @@ var g7 = { exports: {} };
|
|
|
74560
74561
|
return v;
|
|
74561
74562
|
if (Array.isArray(v)) {
|
|
74562
74563
|
var S = "";
|
|
74563
|
-
return v.forEach(function(
|
|
74564
|
-
S += k(
|
|
74564
|
+
return v.forEach(function(L) {
|
|
74565
|
+
S += k(L, M);
|
|
74565
74566
|
}), S;
|
|
74566
74567
|
}
|
|
74567
74568
|
var x = {
|
|
@@ -74592,16 +74593,16 @@ var g7 = { exports: {} };
|
|
|
74592
74593
|
if (!(!M.hasOwnProperty(H) || !M[H])) {
|
|
74593
74594
|
var C = M[H];
|
|
74594
74595
|
C = Array.isArray(C) ? C : [C];
|
|
74595
|
-
for (var
|
|
74596
|
-
if (z && z.cause == H + "," +
|
|
74596
|
+
for (var L = 0; L < C.length; ++L) {
|
|
74597
|
+
if (z && z.cause == H + "," + L)
|
|
74597
74598
|
return;
|
|
74598
|
-
var W = C[
|
|
74599
|
+
var W = C[L], Y = W.inside, J = !!W.lookbehind, G = !!W.greedy, R = W.alias;
|
|
74599
74600
|
if (G && !W.pattern.global) {
|
|
74600
74601
|
var B = W.pattern.toString().match(/[imsuy]*$/)[0];
|
|
74601
74602
|
W.pattern = RegExp(W.pattern.source, B + "g");
|
|
74602
74603
|
}
|
|
74603
|
-
for (var P = W.pattern || W,
|
|
74604
|
-
var A =
|
|
74604
|
+
for (var P = W.pattern || W, D = S.next, K = x; D !== v.tail && !(z && K >= z.reach); K += D.value.length, D = D.next) {
|
|
74605
|
+
var A = D.value;
|
|
74605
74606
|
if (v.length > k.length)
|
|
74606
74607
|
return;
|
|
74607
74608
|
if (!(A instanceof l)) {
|
|
@@ -74610,26 +74611,26 @@ var g7 = { exports: {} };
|
|
|
74610
74611
|
if (ee = u(P, K, k, J), !ee || ee.index >= k.length)
|
|
74611
74612
|
break;
|
|
74612
74613
|
var be = ee.index, O = ee.index + ee[0].length, ue = K;
|
|
74613
|
-
for (ue +=
|
|
74614
|
-
|
|
74615
|
-
if (ue -=
|
|
74614
|
+
for (ue += D.value.length; be >= ue; )
|
|
74615
|
+
D = D.next, ue += D.value.length;
|
|
74616
|
+
if (ue -= D.value.length, K = ue, D.value instanceof l)
|
|
74616
74617
|
continue;
|
|
74617
|
-
for (var ge =
|
|
74618
|
+
for (var ge = D; ge !== v.tail && (ue < O || typeof ge.value == "string"); ge = ge.next)
|
|
74618
74619
|
Q++, ue += ge.value.length;
|
|
74619
74620
|
Q--, A = k.slice(K, ue), ee.index -= K;
|
|
74620
74621
|
} else if (ee = u(P, 0, A, J), !ee)
|
|
74621
74622
|
continue;
|
|
74622
74623
|
var be = ee.index, Ie = ee[0], De = A.slice(0, be), Ue = A.slice(be + Ie.length), ne = K + A.length;
|
|
74623
74624
|
z && ne > z.reach && (z.reach = ne);
|
|
74624
|
-
var we =
|
|
74625
|
+
var we = D.prev;
|
|
74625
74626
|
De && (we = m(v, we, De), K += De.length), h(v, we, Q);
|
|
74626
74627
|
var Xe = new l(H, Y ? s.tokenize(Ie, Y) : Ie, R, Ie);
|
|
74627
|
-
if (
|
|
74628
|
+
if (D = m(v, we, Xe), Ue && m(v, D, Ue), Q > 1) {
|
|
74628
74629
|
var Qe = {
|
|
74629
|
-
cause: H + "," +
|
|
74630
|
+
cause: H + "," + L,
|
|
74630
74631
|
reach: ne
|
|
74631
74632
|
};
|
|
74632
|
-
d(k, v, M,
|
|
74633
|
+
d(k, v, M, D.prev, K, Qe), z && Qe.reach > z.reach && (z.reach = Qe.reach);
|
|
74633
74634
|
}
|
|
74634
74635
|
}
|
|
74635
74636
|
}
|
|
@@ -76770,9 +76771,9 @@ function ns() {
|
|
|
76770
76771
|
}
|
|
76771
76772
|
}
|
|
76772
76773
|
});
|
|
76773
|
-
var
|
|
76774
|
+
var L = H + "|" + z, W = r(
|
|
76774
76775
|
/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,
|
|
76775
|
-
[
|
|
76776
|
+
[L]
|
|
76776
76777
|
), Y = i(
|
|
76777
76778
|
r(/[^"'/()]|<<0>>|\(<<self>>*\)/.source, [
|
|
76778
76779
|
W
|
|
@@ -76819,14 +76820,14 @@ function ns() {
|
|
|
76819
76820
|
), P = r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
76820
76821
|
B,
|
|
76821
76822
|
R
|
|
76822
|
-
]),
|
|
76823
|
+
]), D = i(
|
|
76823
76824
|
r(
|
|
76824
76825
|
/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,
|
|
76825
|
-
[
|
|
76826
|
+
[L]
|
|
76826
76827
|
),
|
|
76827
76828
|
2
|
|
76828
76829
|
), K = r(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source, [
|
|
76829
|
-
|
|
76830
|
+
D,
|
|
76830
76831
|
R
|
|
76831
76832
|
]);
|
|
76832
76833
|
function A(Q, ee) {
|
|
@@ -76873,7 +76874,7 @@ function ns() {
|
|
|
76873
76874
|
]),
|
|
76874
76875
|
lookbehind: !0,
|
|
76875
76876
|
greedy: !0,
|
|
76876
|
-
inside: A(K,
|
|
76877
|
+
inside: A(K, D)
|
|
76877
76878
|
}
|
|
76878
76879
|
],
|
|
76879
76880
|
char: {
|
|
@@ -84114,18 +84115,18 @@ function cBe() {
|
|
|
84114
84115
|
}), v = 0, M = {}, S = k.map(function(C) {
|
|
84115
84116
|
if (typeof C == "string")
|
|
84116
84117
|
return C;
|
|
84117
|
-
for (var
|
|
84118
|
+
for (var L = C.content, W; y.indexOf(
|
|
84118
84119
|
W = u(v++, _)
|
|
84119
84120
|
) !== -1; )
|
|
84120
84121
|
;
|
|
84121
|
-
return M[W] =
|
|
84122
|
+
return M[W] = L, W;
|
|
84122
84123
|
}).join(""), x = d(S, w, _), z = Object.keys(M);
|
|
84123
84124
|
v = 0;
|
|
84124
84125
|
function H(C) {
|
|
84125
|
-
for (var
|
|
84126
|
+
for (var L = 0; L < C.length; L++) {
|
|
84126
84127
|
if (v >= z.length)
|
|
84127
84128
|
return;
|
|
84128
|
-
var W = C[
|
|
84129
|
+
var W = C[L];
|
|
84129
84130
|
if (typeof W == "string" || typeof W.content == "string") {
|
|
84130
84131
|
var Y = z[v], J = typeof W == "string" ? W : (
|
|
84131
84132
|
/** @type {string} */
|
|
@@ -84135,12 +84136,12 @@ function cBe() {
|
|
|
84135
84136
|
++v;
|
|
84136
84137
|
var R = J.substring(0, G), B = p(
|
|
84137
84138
|
M[Y]
|
|
84138
|
-
), P = J.substring(G + Y.length),
|
|
84139
|
-
if (R &&
|
|
84139
|
+
), P = J.substring(G + Y.length), D = [];
|
|
84140
|
+
if (R && D.push(R), D.push(B), P) {
|
|
84140
84141
|
var K = [P];
|
|
84141
|
-
H(K),
|
|
84142
|
+
H(K), D.push.apply(D, K);
|
|
84142
84143
|
}
|
|
84143
|
-
typeof W == "string" ? (C.splice.apply(C, [
|
|
84144
|
+
typeof W == "string" ? (C.splice.apply(C, [L, 1].concat(D)), L += D.length - 1) : W.content = D;
|
|
84144
84145
|
}
|
|
84145
84146
|
} else {
|
|
84146
84147
|
var A = W.content;
|
|
@@ -84178,10 +84179,10 @@ function cBe() {
|
|
|
84178
84179
|
if (M.type === "template-string") {
|
|
84179
84180
|
var x = S[1];
|
|
84180
84181
|
if (S.length === 3 && typeof x != "string" && x.type === "embedded-code") {
|
|
84181
|
-
var z = f(x), H = x.alias, C = Array.isArray(H) ? H[0] : H,
|
|
84182
|
-
if (!
|
|
84182
|
+
var z = f(x), H = x.alias, C = Array.isArray(H) ? H[0] : H, L = n.languages[C];
|
|
84183
|
+
if (!L)
|
|
84183
84184
|
continue;
|
|
84184
|
-
S[1] = m(z,
|
|
84185
|
+
S[1] = m(z, L, C);
|
|
84185
84186
|
}
|
|
84186
84187
|
} else
|
|
84187
84188
|
w(S);
|