@aintela/chat 0.4.35 → 0.4.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.js +658 -653
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{httpArtifactService-BiKPHn_3.js → httpArtifactService-GdGsaFKS.js} +7 -4
- package/dist/httpArtifactService-GdGsaFKS.js.map +1 -0
- package/dist/{httpSessionService-BmJH0CZd.js → httpSessionService-CUujaUo6.js} +2 -2
- package/dist/{httpSessionService-BmJH0CZd.js.map → httpSessionService-CUujaUo6.js.map} +1 -1
- package/dist/index.js +4 -4
- package/dist/models.js +1 -1
- package/dist/{serializer-BB8Cz7YD.js → serializer-DX-yGa_k.js} +547 -524
- package/dist/serializer-DX-yGa_k.js.map +1 -0
- package/dist/services.js +2 -2
- package/dist/src/components/AiChat/ChatPane/reasoningHeadlines.d.ts +7 -4
- package/dist/src/models/enums.d.ts +2 -1
- package/dist/src/models/semanticKernelModel/models.d.ts +10 -1
- package/dist/{useChatSessions-C2ufnYox.js → useChatSessions-BXYvvd4S.js} +2 -2
- package/dist/{useChatSessions-C2ufnYox.js.map → useChatSessions-BXYvvd4S.js.map} +1 -1
- package/package.json +1 -1
- package/dist/httpArtifactService-BiKPHn_3.js.map +0 -1
- package/dist/serializer-BB8Cz7YD.js.map +0 -1
package/dist/components.js
CHANGED
|
@@ -8,12 +8,12 @@ import ht, { createContext as Dr, useContext as Jt, useRef as te, useMemo as Ce,
|
|
|
8
8
|
import { useTheme as Dt, Stack as De, Typography as je, Divider as La, Box as Ee, Chip as _n, alpha as Dn, Tooltip as tr, IconButton as en, Popover as Vs, Dialog as ja, DialogTitle as $a, DialogContent as Ba, DialogActions as Wa, Button as Er, Tabs as rd, Tab as Zi, Slider as od, Drawer as ad, LinearProgress as qs, useMediaQuery as Ks, Link as id, Collapse as Gs, Paper as Js, DialogContentText as sd, Alert as ld, AlertTitle as cd, Fade as dd, CircularProgress as ud, ButtonBase as pd, Skeleton as hn, CssBaseline as hd } from "@mui/material";
|
|
9
9
|
import { useStore as fd, createStore as gd } from "zustand";
|
|
10
10
|
import { C as Me } from "./Prompt-DZb7OaPp.js";
|
|
11
|
-
import { k as md, u as Na, M as ui, I as pt, E as ge } from "./serializer-
|
|
11
|
+
import { k as md, u as Na, M as ui, I as pt, E as ge } from "./serializer-DX-yGa_k.js";
|
|
12
12
|
import { enqueueSnackbar as pi } from "notistack";
|
|
13
|
-
import { r as bd, H as yd } from "./httpSessionService-
|
|
13
|
+
import { r as bd, H as yd } from "./httpSessionService-CUujaUo6.js";
|
|
14
14
|
import { useTheme as gt, alpha as ye, createTheme as xd } from "@mui/material/styles";
|
|
15
15
|
import { C as hi } from "./ClientMessage-DUby3KyC.js";
|
|
16
|
-
import { E as vd, L as wd, H as kd, W as Sd, a as Tr, u as Cd, I as Ed, M as Td } from "./httpArtifactService-
|
|
16
|
+
import { E as vd, L as wd, H as kd, W as Sd, a as Tr, u as Cd, I as Ed, M as Td } from "./httpArtifactService-GdGsaFKS.js";
|
|
17
17
|
import { devtools as Id } from "zustand/middleware";
|
|
18
18
|
import D from "@mui/material/Box";
|
|
19
19
|
import ne from "@mui/material/Typography";
|
|
@@ -681,12 +681,12 @@ function qa(e, r) {
|
|
|
681
681
|
}, "setSession"),
|
|
682
682
|
subAgents: /* @__PURE__ */ new Map(),
|
|
683
683
|
setSubAgentMessage: /* @__PURE__ */ t((u, l, y) => {
|
|
684
|
-
const b = s().subAgents, E = new Map(b),
|
|
684
|
+
const b = s().subAgents, E = new Map(b), k = E.get(u);
|
|
685
685
|
E.set(u, {
|
|
686
686
|
id: u,
|
|
687
|
-
name: y ?? (
|
|
687
|
+
name: y ?? (k == null ? void 0 : k.name) ?? u,
|
|
688
688
|
interaction: l,
|
|
689
|
-
completed: (
|
|
689
|
+
completed: (k == null ? void 0 : k.completed) ?? !1
|
|
690
690
|
}), i({ subAgents: E });
|
|
691
691
|
}, "setSubAgentMessage"),
|
|
692
692
|
completeSubAgent: /* @__PURE__ */ t((u) => {
|
|
@@ -803,10 +803,10 @@ const To = 0.75, pp = 1e3, fn = 300 * 1e3, mo = 500, hp = 2e4, Li = class Li {
|
|
|
803
803
|
}
|
|
804
804
|
}
|
|
805
805
|
r || (s = null), this.sessionState.setLoadingInformation(Me.Connecting, !1, u, s == null ? void 0 : s.loadError);
|
|
806
|
-
const
|
|
807
|
-
(!s || (s == null ? void 0 : s.id) !==
|
|
806
|
+
const k = await this.agentGatewayService.openConnection(this.workingSessionId, i);
|
|
807
|
+
(!s || (s == null ? void 0 : s.id) !== k) && (s = {
|
|
808
808
|
fullyLoaded: !0,
|
|
809
|
-
id:
|
|
809
|
+
id: k,
|
|
810
810
|
activityCount: 0,
|
|
811
811
|
artifacts: [],
|
|
812
812
|
browserScopeId: "",
|
|
@@ -816,9 +816,9 @@ const To = 0.75, pp = 1e3, fn = 300 * 1e3, mo = 500, hp = 2e4, Li = class Li {
|
|
|
816
816
|
sessionRunMode: "interactive",
|
|
817
817
|
agentType: "Unknown",
|
|
818
818
|
created: /* @__PURE__ */ new Date()
|
|
819
|
-
}, r && r !==
|
|
820
|
-
} catch (
|
|
821
|
-
throw console.error("StateManager: Open Error ", r,
|
|
819
|
+
}, r && r !== k && console.warn(`Session Id: ${r} was not found a new one was created: ${k}`), (b = this.onSessionEstablished) == null || b.call(this, k), this.workingSessionId = s.id, this.sessionState.setSession(s), this.agentGatewayService.setSession(k, "")), r != ((E = this.sessionState.session) == null ? void 0 : E.id) && this.sessionState.setSession(s), this.sessionState.setLoadingInformation(Me.Connected, !1, void 0, void 0);
|
|
820
|
+
} catch (k) {
|
|
821
|
+
throw console.error("StateManager: Open Error ", r, k), this.sessionState.setLoadingInformation(Me.Disconnected, !1, void 0), k;
|
|
822
822
|
} finally {
|
|
823
823
|
this.start();
|
|
824
824
|
}
|
|
@@ -872,12 +872,12 @@ function bi(e) {
|
|
|
872
872
|
const E = /* @__PURE__ */ t(() => {
|
|
873
873
|
var c;
|
|
874
874
|
return ((c = e.getUser) == null ? void 0 : c.call(e)) ?? b;
|
|
875
|
-
}, "resolveUser"),
|
|
875
|
+
}, "resolveUser"), k = /* @__PURE__ */ t(() => {
|
|
876
876
|
var c;
|
|
877
877
|
return (c = E()) == null ? void 0 : c.access_token;
|
|
878
|
-
}, "getToken"), _ = e.eventBusService ?? new vd(),
|
|
878
|
+
}, "getToken"), _ = e.eventBusService ?? new vd(), S = e.storageService ?? new wd(), w = e.notificationPort ?? fp(), A = e.artifactService ?? new kd(r, k), f = e.sessionService ?? new yd(r, k), x = qa(f, l);
|
|
879
879
|
x.getState().setConnectionStatus(Me.Idle);
|
|
880
|
-
const v = s ? s(r) : new Sd(r,
|
|
880
|
+
const v = s ? s(r) : new Sd(r, k), g = new Tr(
|
|
881
881
|
b,
|
|
882
882
|
_,
|
|
883
883
|
A,
|
|
@@ -886,7 +886,7 @@ function bi(e) {
|
|
|
886
886
|
x,
|
|
887
887
|
w,
|
|
888
888
|
v,
|
|
889
|
-
|
|
889
|
+
S
|
|
890
890
|
);
|
|
891
891
|
y == null || y(g);
|
|
892
892
|
const p = new Io(
|
|
@@ -898,7 +898,7 @@ function bi(e) {
|
|
|
898
898
|
);
|
|
899
899
|
return {
|
|
900
900
|
eventBusService: _,
|
|
901
|
-
storageService:
|
|
901
|
+
storageService: S,
|
|
902
902
|
notificationPort: w,
|
|
903
903
|
artifactService: A,
|
|
904
904
|
sessionService: f,
|
|
@@ -939,14 +939,14 @@ const fl = /* @__PURE__ */ t(({
|
|
|
939
939
|
artifactService: y,
|
|
940
940
|
storageService: b,
|
|
941
941
|
eventBusService: E,
|
|
942
|
-
notificationPort:
|
|
942
|
+
notificationPort: k,
|
|
943
943
|
// A pre-built, possibly SHARED engine to adopt (issue #236). When present
|
|
944
944
|
// the provider does NOT build its own gateway/store/manager and does NOT
|
|
945
945
|
// drive the session lifecycle (open/close) — the engine's owner (e.g. the
|
|
946
946
|
// `useAgentEngine` hook that warmed it) does. The provider then only renders
|
|
947
947
|
// the chat UI + wires React callbacks over the adopted engine.
|
|
948
948
|
engine: _,
|
|
949
|
-
showPromptHistory:
|
|
949
|
+
showPromptHistory: S = !0,
|
|
950
950
|
showStatistics: w = !0,
|
|
951
951
|
showToolCalls: A = !1,
|
|
952
952
|
summarizedReasoning: f = !1,
|
|
@@ -980,7 +980,7 @@ const fl = /* @__PURE__ */ t(({
|
|
|
980
980
|
formatTimestamp: V,
|
|
981
981
|
resolvePersona: se,
|
|
982
982
|
userMessageRenderer: Oe,
|
|
983
|
-
onMessage:
|
|
983
|
+
onMessage: J,
|
|
984
984
|
onTurnComplete: ve,
|
|
985
985
|
onTurnOpen: oe,
|
|
986
986
|
onGetWebSocketProvider: j,
|
|
@@ -996,8 +996,8 @@ const fl = /* @__PURE__ */ t(({
|
|
|
996
996
|
renderAuthPrompt: le,
|
|
997
997
|
children: We
|
|
998
998
|
}) => {
|
|
999
|
-
const ze = te({ onMessage:
|
|
1000
|
-
ze.current = { onMessage:
|
|
999
|
+
const ze = te({ onMessage: J, onTurnComplete: ve, onConnectionStateChange: he, onSessionCreated: we, onSessionEstablished: Qe, onError: Ke, onGatewayReady: Ge, onVisibleQuestionChange: Xe, onFirstToken: wt, onTurnOpen: oe });
|
|
1000
|
+
ze.current = { onMessage: J, onTurnComplete: ve, onConnectionStateChange: he, onSessionCreated: we, onSessionEstablished: Qe, onError: Ke, onGatewayReady: Ge, onVisibleQuestionChange: Xe, onFirstToken: wt, onTurnOpen: oe }, te({});
|
|
1001
1001
|
const ot = te({
|
|
1002
1002
|
connectionState: Me.Disconnected,
|
|
1003
1003
|
loading: !1,
|
|
@@ -1029,7 +1029,7 @@ const fl = /* @__PURE__ */ t(({
|
|
|
1029
1029
|
artifactService: y,
|
|
1030
1030
|
storageService: b,
|
|
1031
1031
|
eventBusService: E,
|
|
1032
|
-
notificationPort:
|
|
1032
|
+
notificationPort: k ?? tn,
|
|
1033
1033
|
onGetWebSocketProvider: j,
|
|
1034
1034
|
onSessionEstablished: /* @__PURE__ */ t((_e) => {
|
|
1035
1035
|
var Ne, Ae;
|
|
@@ -1137,7 +1137,7 @@ const fl = /* @__PURE__ */ t(({
|
|
|
1137
1137
|
storageService: Ot,
|
|
1138
1138
|
notificationPort: kt,
|
|
1139
1139
|
sessionStore: Yt,
|
|
1140
|
-
showPromptHistory:
|
|
1140
|
+
showPromptHistory: S,
|
|
1141
1141
|
sessionStateManagerService: Ht,
|
|
1142
1142
|
showStatistics: w,
|
|
1143
1143
|
showStickyHeader: v,
|
|
@@ -1168,7 +1168,7 @@ const fl = /* @__PURE__ */ t(({
|
|
|
1168
1168
|
formatTimestamp: V,
|
|
1169
1169
|
resolvePersona: se,
|
|
1170
1170
|
userMessageRenderer: Oe
|
|
1171
|
-
}), [Ye, nn, qe, Se, et, tt, Ot, kt, Yt,
|
|
1171
|
+
}), [Ye, nn, qe, Se, et, tt, Ot, kt, Yt, S, w, p, I, c, C, h, R, L, W, N, rn, Et, It, ke, Qt, U, le, q, ce, K, V, se, Oe, Ht]);
|
|
1172
1172
|
return /* @__PURE__ */ n(wn.Provider, { value: $t, children: We });
|
|
1173
1173
|
}, "AiChatProvider"), Ie = /* @__PURE__ */ t((e, { size: r = 14, ...i }) => /* @__PURE__ */ n(
|
|
1174
1174
|
"svg",
|
|
@@ -1304,7 +1304,7 @@ const fl = /* @__PURE__ */ t(({
|
|
|
1304
1304
|
l(null);
|
|
1305
1305
|
}, []), E = Te((w) => {
|
|
1306
1306
|
s(w), b();
|
|
1307
|
-
}, [s, b]),
|
|
1307
|
+
}, [s, b]), k = i ? ui[i] : void 0, _ = (k == null ? void 0 : k.icon) ?? Bd, S = /* @__PURE__ */ M(De, { direction: "row", children: [
|
|
1308
1308
|
/* @__PURE__ */ M(De, { spacing: 0.5, sx: e ? { maxWidth: 250, flex: "0 0 250px", minWidth: 0 } : void 0, children: [
|
|
1309
1309
|
/* @__PURE__ */ n(je, { variant: "h6", width: "100%", textAlign: "center", children: "Fast models" }),
|
|
1310
1310
|
/* @__PURE__ */ n(La, {}),
|
|
@@ -1448,8 +1448,8 @@ const fl = /* @__PURE__ */ t(({
|
|
|
1448
1448
|
})
|
|
1449
1449
|
] })
|
|
1450
1450
|
] });
|
|
1451
|
-
return e ?
|
|
1452
|
-
/* @__PURE__ */ n(tr, { title: (
|
|
1451
|
+
return e ? S : /* @__PURE__ */ M(ie, { children: [
|
|
1452
|
+
/* @__PURE__ */ n(tr, { title: (k == null ? void 0 : k.name) ?? "Select model", placement: "top", children: /* @__PURE__ */ n(
|
|
1453
1453
|
en,
|
|
1454
1454
|
{
|
|
1455
1455
|
size: "small",
|
|
@@ -1473,7 +1473,7 @@ const fl = /* @__PURE__ */ t(({
|
|
|
1473
1473
|
sx: { mt: -1 },
|
|
1474
1474
|
children: /* @__PURE__ */ M(Ee, { sx: { p: 2, minWidth: 340, maxWidth: 500, bgcolor: "background.paper" }, children: [
|
|
1475
1475
|
/* @__PURE__ */ n(je, { variant: "subtitle2", sx: { mb: 1.5, fontWeight: 700, letterSpacing: 0.5, textTransform: "uppercase", fontSize: "0.7rem", color: "text.secondary" }, children: "Select Model" }),
|
|
1476
|
-
|
|
1476
|
+
S
|
|
1477
1477
|
] })
|
|
1478
1478
|
}
|
|
1479
1479
|
)
|
|
@@ -1571,9 +1571,9 @@ function Ep() {
|
|
|
1571
1571
|
(function(i, s) {
|
|
1572
1572
|
e.exports = s(ht);
|
|
1573
1573
|
})(Cp, (i) => (() => {
|
|
1574
|
-
var s = { 165(b, E,
|
|
1575
|
-
const _ =
|
|
1576
|
-
for (const f of Object.keys(_))
|
|
1574
|
+
var s = { 165(b, E, k) {
|
|
1575
|
+
const _ = k(877), S = {};
|
|
1576
|
+
for (const f of Object.keys(_)) S[_[f]] = f;
|
|
1577
1577
|
const w = { rgb: { channels: 3, labels: "rgb" }, hsl: { channels: 3, labels: "hsl" }, hsv: { channels: 3, labels: "hsv" }, hwb: { channels: 3, labels: "hwb" }, cmyk: { channels: 4, labels: "cmyk" }, xyz: { channels: 3, labels: "xyz" }, lab: { channels: 3, labels: "lab" }, lch: { channels: 3, labels: "lch" }, hex: { channels: 1, labels: ["hex"] }, keyword: { channels: 1, labels: ["keyword"] }, ansi16: { channels: 1, labels: ["ansi16"] }, ansi256: { channels: 1, labels: ["ansi256"] }, hcg: { channels: 3, labels: ["h", "c", "g"] }, apple: { channels: 3, labels: ["r16", "g16", "b16"] }, gray: { channels: 1, labels: ["gray"] } };
|
|
1578
1578
|
b.exports = w;
|
|
1579
1579
|
for (const f of Object.keys(w)) {
|
|
@@ -1607,7 +1607,7 @@ function Ep() {
|
|
|
1607
1607
|
const x = f[0] / 255, v = f[1] / 255, g = f[2] / 255, p = Math.min(1 - x, 1 - v, 1 - g);
|
|
1608
1608
|
return [100 * ((1 - x - p) / (1 - p) || 0), 100 * ((1 - v - p) / (1 - p) || 0), 100 * ((1 - g - p) / (1 - p) || 0), 100 * p];
|
|
1609
1609
|
}, w.rgb.keyword = function(f) {
|
|
1610
|
-
const x =
|
|
1610
|
+
const x = S[f];
|
|
1611
1611
|
if (x) return x;
|
|
1612
1612
|
let v, g = 1 / 0;
|
|
1613
1613
|
for (const p of Object.keys(_)) {
|
|
@@ -1820,11 +1820,11 @@ function Ep() {
|
|
|
1820
1820
|
}, w.rgb.gray = function(f) {
|
|
1821
1821
|
return [(f[0] + f[1] + f[2]) / 3 / 255 * 100];
|
|
1822
1822
|
};
|
|
1823
|
-
}, 880(b, E,
|
|
1824
|
-
const _ =
|
|
1823
|
+
}, 880(b, E, k) {
|
|
1824
|
+
const _ = k(165), S = k(985), w = {};
|
|
1825
1825
|
Object.keys(_).forEach((A) => {
|
|
1826
1826
|
w[A] = {}, Object.defineProperty(w[A], "channels", { value: _[A].channels }), Object.defineProperty(w[A], "labels", { value: _[A].labels });
|
|
1827
|
-
const f =
|
|
1827
|
+
const f = S(A);
|
|
1828
1828
|
Object.keys(f).forEach((x) => {
|
|
1829
1829
|
const v = f[x];
|
|
1830
1830
|
w[A][x] = (function(g) {
|
|
@@ -1846,9 +1846,9 @@ function Ep() {
|
|
|
1846
1846
|
})(v);
|
|
1847
1847
|
});
|
|
1848
1848
|
}), b.exports = w;
|
|
1849
|
-
}, 985(b, E,
|
|
1850
|
-
const _ =
|
|
1851
|
-
function
|
|
1849
|
+
}, 985(b, E, k) {
|
|
1850
|
+
const _ = k(165);
|
|
1851
|
+
function S(f) {
|
|
1852
1852
|
const x = (function() {
|
|
1853
1853
|
const g = {}, p = Object.keys(_);
|
|
1854
1854
|
for (let I = p.length, c = 0; c < I; c++) g[p[c]] = { distance: -1, parent: null };
|
|
@@ -1863,7 +1863,7 @@ function Ep() {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
return x;
|
|
1865
1865
|
}
|
|
1866
|
-
t(
|
|
1866
|
+
t(S, "r");
|
|
1867
1867
|
function w(f, x) {
|
|
1868
1868
|
return function(v) {
|
|
1869
1869
|
return x(f(v));
|
|
@@ -1877,7 +1877,7 @@ function Ep() {
|
|
|
1877
1877
|
return g.conversion = v, g;
|
|
1878
1878
|
}
|
|
1879
1879
|
t(A, "s"), b.exports = function(f) {
|
|
1880
|
-
const x =
|
|
1880
|
+
const x = S(f), v = {}, g = Object.keys(x);
|
|
1881
1881
|
for (let p = g.length, I = 0; I < p; I++) {
|
|
1882
1882
|
const c = g[I];
|
|
1883
1883
|
x[c].parent !== null && (v[c] = A(c, x));
|
|
@@ -1886,8 +1886,8 @@ function Ep() {
|
|
|
1886
1886
|
};
|
|
1887
1887
|
}, 877(b) {
|
|
1888
1888
|
b.exports = { aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], aqua: [0, 255, 255], aquamarine: [127, 255, 212], azure: [240, 255, 255], beige: [245, 245, 220], bisque: [255, 228, 196], black: [0, 0, 0], blanchedalmond: [255, 235, 205], blue: [0, 0, 255], blueviolet: [138, 43, 226], brown: [165, 42, 42], burlywood: [222, 184, 135], cadetblue: [95, 158, 160], chartreuse: [127, 255, 0], chocolate: [210, 105, 30], coral: [255, 127, 80], cornflowerblue: [100, 149, 237], cornsilk: [255, 248, 220], crimson: [220, 20, 60], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgoldenrod: [184, 134, 11], darkgray: [169, 169, 169], darkgreen: [0, 100, 0], darkgrey: [169, 169, 169], darkkhaki: [189, 183, 107], darkmagenta: [139, 0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkseagreen: [143, 188, 143], darkslateblue: [72, 61, 139], darkslategray: [47, 79, 79], darkslategrey: [47, 79, 79], darkturquoise: [0, 206, 209], darkviolet: [148, 0, 211], deeppink: [255, 20, 147], deepskyblue: [0, 191, 255], dimgray: [105, 105, 105], dimgrey: [105, 105, 105], dodgerblue: [30, 144, 255], firebrick: [178, 34, 34], floralwhite: [255, 250, 240], forestgreen: [34, 139, 34], fuchsia: [255, 0, 255], gainsboro: [220, 220, 220], ghostwhite: [248, 248, 255], gold: [255, 215, 0], goldenrod: [218, 165, 32], gray: [128, 128, 128], green: [0, 128, 0], greenyellow: [173, 255, 47], grey: [128, 128, 128], honeydew: [240, 255, 240], hotpink: [255, 105, 180], indianred: [205, 92, 92], indigo: [75, 0, 130], ivory: [255, 255, 240], khaki: [240, 230, 140], lavender: [230, 230, 250], lavenderblush: [255, 240, 245], lawngreen: [124, 252, 0], lemonchiffon: [255, 250, 205], lightblue: [173, 216, 230], lightcoral: [240, 128, 128], lightcyan: [224, 255, 255], lightgoldenrodyellow: [250, 250, 210], lightgray: [211, 211, 211], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightsalmon: [255, 160, 122], lightseagreen: [32, 178, 170], lightskyblue: [135, 206, 250], lightslategray: [119, 136, 153], lightslategrey: [119, 136, 153], lightsteelblue: [176, 196, 222], lightyellow: [255, 255, 224], lime: [0, 255, 0], limegreen: [50, 205, 50], linen: [250, 240, 230], magenta: [255, 0, 255], maroon: [128, 0, 0], mediumaquamarine: [102, 205, 170], mediumblue: [0, 0, 205], mediumorchid: [186, 85, 211], mediumpurple: [147, 112, 219], mediumseagreen: [60, 179, 113], mediumslateblue: [123, 104, 238], mediumspringgreen: [0, 250, 154], mediumturquoise: [72, 209, 204], mediumvioletred: [199, 21, 133], midnightblue: [25, 25, 112], mintcream: [245, 255, 250], mistyrose: [255, 228, 225], moccasin: [255, 228, 181], navajowhite: [255, 222, 173], navy: [0, 0, 128], oldlace: [253, 245, 230], olive: [128, 128, 0], olivedrab: [107, 142, 35], orange: [255, 165, 0], orangered: [255, 69, 0], orchid: [218, 112, 214], palegoldenrod: [238, 232, 170], palegreen: [152, 251, 152], paleturquoise: [175, 238, 238], palevioletred: [219, 112, 147], papayawhip: [255, 239, 213], peachpuff: [255, 218, 185], peru: [205, 133, 63], pink: [255, 192, 203], plum: [221, 160, 221], powderblue: [176, 224, 230], purple: [128, 0, 128], rebeccapurple: [102, 51, 153], red: [255, 0, 0], rosybrown: [188, 143, 143], royalblue: [65, 105, 225], saddlebrown: [139, 69, 19], salmon: [250, 128, 114], sandybrown: [244, 164, 96], seagreen: [46, 139, 87], seashell: [255, 245, 238], sienna: [160, 82, 45], silver: [192, 192, 192], skyblue: [135, 206, 235], slateblue: [106, 90, 205], slategray: [112, 128, 144], slategrey: [112, 128, 144], snow: [255, 250, 250], springgreen: [0, 255, 127], steelblue: [70, 130, 180], tan: [210, 180, 140], teal: [0, 128, 128], thistle: [216, 191, 216], tomato: [255, 99, 71], turquoise: [64, 224, 208], violet: [238, 130, 238], wheat: [245, 222, 179], white: [255, 255, 255], whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] };
|
|
1889
|
-
}, 138(b, E,
|
|
1890
|
-
var _ =
|
|
1889
|
+
}, 138(b, E, k) {
|
|
1890
|
+
var _ = k(877), S = k(403), w = Object.hasOwnProperty, A = /* @__PURE__ */ Object.create(null);
|
|
1891
1891
|
for (var f in _) w.call(_, f) && (A[_[f]] = f);
|
|
1892
1892
|
var x = b.exports = { to: {}, get: {} };
|
|
1893
1893
|
function v(p, I, c) {
|
|
@@ -1950,39 +1950,39 @@ function Ep() {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
return null;
|
|
1952
1952
|
}, x.to.hex = function() {
|
|
1953
|
-
var p =
|
|
1953
|
+
var p = S(arguments);
|
|
1954
1954
|
return "#" + g(p[0]) + g(p[1]) + g(p[2]) + (p[3] < 1 ? g(Math.round(255 * p[3])) : "");
|
|
1955
1955
|
}, x.to.rgb = function() {
|
|
1956
|
-
var p =
|
|
1956
|
+
var p = S(arguments);
|
|
1957
1957
|
return p.length < 4 || p[3] === 1 ? "rgb(" + Math.round(p[0]) + ", " + Math.round(p[1]) + ", " + Math.round(p[2]) + ")" : "rgba(" + Math.round(p[0]) + ", " + Math.round(p[1]) + ", " + Math.round(p[2]) + ", " + p[3] + ")";
|
|
1958
1958
|
}, x.to.rgb.percent = function() {
|
|
1959
|
-
var p =
|
|
1959
|
+
var p = S(arguments), I = Math.round(p[0] / 255 * 100), c = Math.round(p[1] / 255 * 100), C = Math.round(p[2] / 255 * 100);
|
|
1960
1960
|
return p.length < 4 || p[3] === 1 ? "rgb(" + I + "%, " + c + "%, " + C + "%)" : "rgba(" + I + "%, " + c + "%, " + C + "%, " + p[3] + ")";
|
|
1961
1961
|
}, x.to.hsl = function() {
|
|
1962
|
-
var p =
|
|
1962
|
+
var p = S(arguments);
|
|
1963
1963
|
return p.length < 4 || p[3] === 1 ? "hsl(" + p[0] + ", " + p[1] + "%, " + p[2] + "%)" : "hsla(" + p[0] + ", " + p[1] + "%, " + p[2] + "%, " + p[3] + ")";
|
|
1964
1964
|
}, x.to.hwb = function() {
|
|
1965
|
-
var p =
|
|
1965
|
+
var p = S(arguments), I = "";
|
|
1966
1966
|
return p.length >= 4 && p[3] !== 1 && (I = ", " + p[3]), "hwb(" + p[0] + ", " + p[1] + "%, " + p[2] + "%" + I + ")";
|
|
1967
1967
|
}, x.to.keyword = function(p) {
|
|
1968
1968
|
return A[p.slice(0, 3)];
|
|
1969
1969
|
};
|
|
1970
|
-
}, 742(b, E,
|
|
1971
|
-
const _ =
|
|
1972
|
-
for (const c of Object.keys(
|
|
1970
|
+
}, 742(b, E, k) {
|
|
1971
|
+
const _ = k(138), S = k(880), w = ["keyword", "gray", "hex"], A = {};
|
|
1972
|
+
for (const c of Object.keys(S)) A[[...S[c].labels].sort().join("")] = c;
|
|
1973
1973
|
const f = {};
|
|
1974
1974
|
function x(c, C) {
|
|
1975
1975
|
if (!(this instanceof x)) return new x(c, C);
|
|
1976
|
-
if (C && C in w && (C = null), C && !(C in
|
|
1976
|
+
if (C && C in w && (C = null), C && !(C in S)) throw new Error("Unknown model: " + C);
|
|
1977
1977
|
let h, R;
|
|
1978
1978
|
if (c == null) this.model = "rgb", this.color = [0, 0, 0], this.valpha = 1;
|
|
1979
1979
|
else if (c instanceof x) this.model = c.model, this.color = [...c.color], this.valpha = c.valpha;
|
|
1980
1980
|
else if (typeof c == "string") {
|
|
1981
1981
|
const L = _.get(c);
|
|
1982
1982
|
if (L === null) throw new Error("Unable to parse color from string: " + c);
|
|
1983
|
-
this.model = L.model, R =
|
|
1983
|
+
this.model = L.model, R = S[this.model].channels, this.color = L.value.slice(0, R), this.valpha = typeof L.value[R] == "number" ? L.value[R] : 1;
|
|
1984
1984
|
} else if (c.length > 0) {
|
|
1985
|
-
this.model = C || "rgb", R =
|
|
1985
|
+
this.model = C || "rgb", R = S[this.model].channels;
|
|
1986
1986
|
const L = Array.prototype.slice.call(c, 0, R);
|
|
1987
1987
|
this.color = I(L, R), this.valpha = typeof c[R] == "number" ? c[R] : 1;
|
|
1988
1988
|
} else if (typeof c == "number") this.model = "rgb", this.color = [c >> 16 & 255, c >> 8 & 255, 255 & c], this.valpha = 1;
|
|
@@ -1993,11 +1993,11 @@ function Ep() {
|
|
|
1993
1993
|
const W = L.sort().join("");
|
|
1994
1994
|
if (!(W in A)) throw new Error("Unable to parse color from object: " + JSON.stringify(c));
|
|
1995
1995
|
this.model = A[W];
|
|
1996
|
-
const { labels: N } =
|
|
1996
|
+
const { labels: N } = S[this.model], Z = [];
|
|
1997
1997
|
for (h = 0; h < N.length; h++) Z.push(c[N[h]]);
|
|
1998
1998
|
this.color = I(Z);
|
|
1999
1999
|
}
|
|
2000
|
-
if (f[this.model]) for (R =
|
|
2000
|
+
if (f[this.model]) for (R = S[this.model].channels, h = 0; h < R; h++) {
|
|
2001
2001
|
const L = f[this.model][h];
|
|
2002
2002
|
L && (this.color[h] = L(this.color[h]));
|
|
2003
2003
|
}
|
|
@@ -2018,7 +2018,7 @@ function Ep() {
|
|
|
2018
2018
|
}, array() {
|
|
2019
2019
|
return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha];
|
|
2020
2020
|
}, object() {
|
|
2021
|
-
const c = {}, { channels: C } =
|
|
2021
|
+
const c = {}, { channels: C } = S[this.model], { labels: h } = S[this.model];
|
|
2022
2022
|
for (let R = 0; R < C; R++) c[h[R]] = this.color[R];
|
|
2023
2023
|
return this.valpha !== 1 && (c.alpha = this.valpha), c;
|
|
2024
2024
|
}, unitArray() {
|
|
@@ -2032,7 +2032,7 @@ function Ep() {
|
|
|
2032
2032
|
}, alpha(c) {
|
|
2033
2033
|
return c !== void 0 ? new x([...this.color, Math.max(0, Math.min(1, c))], this.model) : this.valpha;
|
|
2034
2034
|
}, red: g("rgb", 0, p(255)), green: g("rgb", 1, p(255)), blue: g("rgb", 2, p(255)), hue: g(["hsl", "hsv", "hsl", "hwb", "hcg"], 0, (c) => (c % 360 + 360) % 360), saturationl: g("hsl", 1, p(100)), lightness: g("hsl", 2, p(100)), saturationv: g("hsv", 1, p(100)), value: g("hsv", 2, p(100)), chroma: g("hcg", 1, p(100)), gray: g("hcg", 2, p(100)), white: g("hwb", 1, p(100)), wblack: g("hwb", 2, p(100)), cyan: g("cmyk", 0, p(100)), magenta: g("cmyk", 1, p(100)), yellow: g("cmyk", 2, p(100)), black: g("cmyk", 3, p(100)), x: g("xyz", 0, p(95.047)), y: g("xyz", 1, p(100)), z: g("xyz", 2, p(108.833)), l: g("lab", 0, p(100)), a: g("lab", 1), b: g("lab", 2), keyword(c) {
|
|
2035
|
-
return c !== void 0 ? new x(c) :
|
|
2035
|
+
return c !== void 0 ? new x(c) : S[this.model].keyword(this.color);
|
|
2036
2036
|
}, hex(c) {
|
|
2037
2037
|
return c !== void 0 ? new x(c) : _.to.hex(this.rgb().round().color);
|
|
2038
2038
|
}, hexa(c) {
|
|
@@ -2099,11 +2099,11 @@ function Ep() {
|
|
|
2099
2099
|
const h = c.rgb(), R = this.rgb(), L = C === void 0 ? 0.5 : C, W = 2 * L - 1, N = h.alpha() - R.alpha(), Z = ((W * N === -1 ? W : (W + N) / (1 + W * N)) + 1) / 2, q = 1 - Z;
|
|
2100
2100
|
return x.rgb(Z * h.red() + q * R.red(), Z * h.green() + q * R.green(), Z * h.blue() + q * R.blue(), h.alpha() * L + R.alpha() * (1 - L));
|
|
2101
2101
|
} };
|
|
2102
|
-
for (const c of Object.keys(
|
|
2102
|
+
for (const c of Object.keys(S)) {
|
|
2103
2103
|
if (w.includes(c)) continue;
|
|
2104
|
-
const { channels: C } =
|
|
2104
|
+
const { channels: C } = S[c];
|
|
2105
2105
|
x.prototype[c] = function(...h) {
|
|
2106
|
-
return this.model === c ? new x(this) : h.length > 0 ? new x(h, c) : new x([...(R =
|
|
2106
|
+
return this.model === c ? new x(this) : h.length > 0 ? new x(h, c) : new x([...(R = S[this.model][c].raw(this.color), Array.isArray(R) ? R : [R]), this.valpha], c);
|
|
2107
2107
|
var R;
|
|
2108
2108
|
}, x[c] = function(...h) {
|
|
2109
2109
|
let R = h[0];
|
|
@@ -2139,15 +2139,15 @@ function Ep() {
|
|
|
2139
2139
|
}
|
|
2140
2140
|
t(I, "d"), b.exports = x;
|
|
2141
2141
|
}, 784(b) {
|
|
2142
|
-
var E,
|
|
2142
|
+
var E, k = typeof Reflect == "object" ? Reflect : null, _ = k && typeof k.apply == "function" ? k.apply : function(R, L, W) {
|
|
2143
2143
|
return Function.prototype.apply.call(R, L, W);
|
|
2144
2144
|
};
|
|
2145
|
-
E =
|
|
2145
|
+
E = k && typeof k.ownKeys == "function" ? k.ownKeys : Object.getOwnPropertySymbols ? function(R) {
|
|
2146
2146
|
return Object.getOwnPropertyNames(R).concat(Object.getOwnPropertySymbols(R));
|
|
2147
2147
|
} : function(R) {
|
|
2148
2148
|
return Object.getOwnPropertyNames(R);
|
|
2149
2149
|
};
|
|
2150
|
-
var
|
|
2150
|
+
var S = Number.isNaN || function(R) {
|
|
2151
2151
|
return R != R;
|
|
2152
2152
|
};
|
|
2153
2153
|
function w() {
|
|
@@ -2233,12 +2233,12 @@ function Ep() {
|
|
|
2233
2233
|
t(h, "f"), Object.defineProperty(w, "defaultMaxListeners", { enumerable: !0, get: /* @__PURE__ */ t(function() {
|
|
2234
2234
|
return A;
|
|
2235
2235
|
}, "get"), set: /* @__PURE__ */ t(function(R) {
|
|
2236
|
-
if (typeof R != "number" || R < 0 ||
|
|
2236
|
+
if (typeof R != "number" || R < 0 || S(R)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + R + ".");
|
|
2237
2237
|
A = R;
|
|
2238
2238
|
}, "set") }), w.init = function() {
|
|
2239
2239
|
this._events !== void 0 && this._events !== Object.getPrototypeOf(this)._events || (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
2240
2240
|
}, w.prototype.setMaxListeners = function(R) {
|
|
2241
|
-
if (typeof R != "number" || R < 0 ||
|
|
2241
|
+
if (typeof R != "number" || R < 0 || S(R)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + R + ".");
|
|
2242
2242
|
return this._maxListeners = R, this;
|
|
2243
2243
|
}, w.prototype.getMaxListeners = function() {
|
|
2244
2244
|
return x(this);
|
|
@@ -2311,11 +2311,11 @@ function Ep() {
|
|
|
2311
2311
|
b.exports = function(E) {
|
|
2312
2312
|
return !(!E || typeof E == "string") && (E instanceof Array || Array.isArray(E) || E.length >= 0 && (E.splice instanceof Function || Object.getOwnPropertyDescriptor(E, E.length - 1) && E.constructor.name !== "String"));
|
|
2313
2313
|
};
|
|
2314
|
-
}, 403(b, E,
|
|
2315
|
-
var _ =
|
|
2314
|
+
}, 403(b, E, k) {
|
|
2315
|
+
var _ = k(94), S = Array.prototype.concat, w = Array.prototype.slice, A = b.exports = function(f) {
|
|
2316
2316
|
for (var x = [], v = 0, g = f.length; v < g; v++) {
|
|
2317
2317
|
var p = f[v];
|
|
2318
|
-
_(p) ? x =
|
|
2318
|
+
_(p) ? x = S.call(x, w.call(p)) : x.push(p);
|
|
2319
2319
|
}
|
|
2320
2320
|
return x;
|
|
2321
2321
|
};
|
|
@@ -2330,14 +2330,14 @@ function Ep() {
|
|
|
2330
2330
|
function l(b) {
|
|
2331
2331
|
var E = u[b];
|
|
2332
2332
|
if (E !== void 0) return E.exports;
|
|
2333
|
-
var
|
|
2334
|
-
return s[b](
|
|
2333
|
+
var k = u[b] = { exports: {} };
|
|
2334
|
+
return s[b](k, k.exports, l), k.exports;
|
|
2335
2335
|
}
|
|
2336
2336
|
t(l, "a"), l.n = (b) => {
|
|
2337
2337
|
var E = b && b.__esModule ? () => b.default : () => b;
|
|
2338
2338
|
return l.d(E, { a: E }), E;
|
|
2339
2339
|
}, l.d = (b, E) => {
|
|
2340
|
-
for (var
|
|
2340
|
+
for (var k in E) l.o(E, k) && !l.o(b, k) && Object.defineProperty(b, k, { enumerable: !0, get: E[k] });
|
|
2341
2341
|
}, l.o = (b, E) => Object.prototype.hasOwnProperty.call(b, E), l.r = (b) => {
|
|
2342
2342
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(b, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(b, "__esModule", { value: !0 });
|
|
2343
2343
|
};
|
|
@@ -2365,10 +2365,10 @@ function Ep() {
|
|
|
2365
2365
|
return b(o) == "symbol" ? o : o + "";
|
|
2366
2366
|
}
|
|
2367
2367
|
t(E, "t");
|
|
2368
|
-
function
|
|
2368
|
+
function k(a, o, d) {
|
|
2369
2369
|
return (o = E(o)) in a ? Object.defineProperty(a, o, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : a[o] = d, a;
|
|
2370
2370
|
}
|
|
2371
|
-
t(
|
|
2371
|
+
t(k, "n");
|
|
2372
2372
|
function _(a, o) {
|
|
2373
2373
|
var d = Object.keys(a);
|
|
2374
2374
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -2380,18 +2380,18 @@ function Ep() {
|
|
|
2380
2380
|
return d;
|
|
2381
2381
|
}
|
|
2382
2382
|
t(_, "o");
|
|
2383
|
-
function
|
|
2383
|
+
function S(a) {
|
|
2384
2384
|
for (var o = 1; o < arguments.length; o++) {
|
|
2385
2385
|
var d = arguments[o] != null ? arguments[o] : {};
|
|
2386
2386
|
o % 2 ? _(Object(d), !0).forEach(function(m) {
|
|
2387
|
-
|
|
2387
|
+
k(a, m, d[m]);
|
|
2388
2388
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(d)) : _(Object(d)).forEach(function(m) {
|
|
2389
2389
|
Object.defineProperty(a, m, Object.getOwnPropertyDescriptor(d, m));
|
|
2390
2390
|
});
|
|
2391
2391
|
}
|
|
2392
2392
|
return a;
|
|
2393
2393
|
}
|
|
2394
|
-
t(
|
|
2394
|
+
t(S, "s");
|
|
2395
2395
|
function w(a, o) {
|
|
2396
2396
|
if (!(a instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
2397
2397
|
}
|
|
@@ -2491,8 +2491,8 @@ https://fb.me/react-async-component-lifecycle-hooks`);
|
|
|
2491
2491
|
if (typeof o.componentDidUpdate != "function") throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");
|
|
2492
2492
|
o.componentWillUpdate = W;
|
|
2493
2493
|
var O = o.componentDidUpdate;
|
|
2494
|
-
o.componentDidUpdate = function($, H,
|
|
2495
|
-
var ee = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot :
|
|
2494
|
+
o.componentDidUpdate = function($, H, Q) {
|
|
2495
|
+
var ee = this.__reactInternalSnapshotFlag ? this.__reactInternalSnapshot : Q;
|
|
2496
2496
|
O.call(this, $, H, ee);
|
|
2497
2497
|
};
|
|
2498
2498
|
}
|
|
@@ -2556,13 +2556,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2556
2556
|
return a.replace(/\\/g, "\\\\").replace(/\n/g, "\\n").replace(/\t/g, "\\t").replace(/\r/g, "\\r").replace(/\f/g, "\\f");
|
|
2557
2557
|
}
|
|
2558
2558
|
t(Oe, "A"), R.__suppressDeprecationWarning = !0, L.__suppressDeprecationWarning = !0, W.__suppressDeprecationWarning = !0;
|
|
2559
|
-
var
|
|
2559
|
+
var J = (function(a) {
|
|
2560
2560
|
function o() {
|
|
2561
2561
|
return w(this, o), p(this, o, arguments);
|
|
2562
2562
|
}
|
|
2563
2563
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
2564
|
-
var d = this.props, m = (d.parent_type, d.namespace), z = d.quotesOnKeys, P = d.indentWidth, F = d.theme, O = d.singleIndent, $ = d.showComma, H = d.isLast,
|
|
2565
|
-
return h().createElement("div", { className: "variable-row" }, h().createElement("span", Object.assign({},
|
|
2564
|
+
var d = this.props, m = (d.parent_type, d.namespace), z = d.quotesOnKeys, P = d.indentWidth, F = d.theme, O = d.singleIndent, $ = d.showComma, H = d.isLast, Q = d.jsvRoot, ee = d.name ? d.name : "";
|
|
2565
|
+
return h().createElement("div", { className: "variable-row" }, h().createElement("span", Object.assign({}, Y(F, "object-name"), { key: m }, Y(F, "objectKeyVal", { paddingLeft: P * O })), h().createElement("span", { className: "object-key" }, z && h().createElement("span", { style: { verticalAlign: "top" } }, '"'), h().createElement("span", null, ee), z && h().createElement("span", { style: { verticalAlign: "top" } }, '"')), h().createElement("span", Y(F, "colon"), ":")), h().createElement("span", Y(F, "circularReference"), "[CIRCULAR REFERENCE]"), $ && !H && !Q && h().createElement("span", Y(F, "comma"), ","));
|
|
2566
2566
|
}, "value") }]);
|
|
2567
2567
|
})(h().PureComponent), ve = { scheme: "rjv-default", author: "mac gainor", base00: "rgba(0, 0, 0, 0)", base01: "rgb(245, 245, 245)", base02: "rgb(235, 235, 235)", base03: "#93a1a1", base04: "rgba(0, 0, 0, 0.3)", base05: "#586e75", base06: "#073642", base07: "#002b36", base08: "#d33682", base09: "#cb4b16", base0A: "#dc322f", base0B: "#859900", base0C: "#6c71c4", base0D: "#586e75", base0E: "#2aa198", base0F: "#268bd2" }, oe = { scheme: "rjv-grey", author: "mac gainor", base00: "rgba(1, 1, 1, 0)", base01: "rgba(1, 1, 1, 0.1)", base02: "rgba(0, 0, 0, 0.2)", base03: "rgba(1, 1, 1, 0.3)", base04: "rgba(0, 0, 0, 0.4)", base05: "rgba(1, 1, 1, 0.5)", base06: "rgba(1, 1, 1, 0.6)", base07: "rgba(1, 1, 1, 0.7)", base08: "rgba(1, 1, 1, 0.8)", base09: "rgba(1, 1, 1, 0.8)", base0A: "rgba(1, 1, 1, 0.8)", base0B: "rgba(1, 1, 1, 0.8)", base0C: "rgba(1, 1, 1, 0.8)", base0D: "rgba(1, 1, 1, 0.8)", base0E: "rgba(1, 1, 1, 0.8)", base0F: "rgba(1, 1, 1, 0.8)" };
|
|
2568
2568
|
const j = { globalFontFamily: "monospace", globalCursor: "default", braceFontWeight: "bold", braceCursor: "pointer", ellipsisFontSize: "18px", ellipsisLineHeight: "10px", ellipsisCursor: "pointer", keyMargin: "0px 5px", keyLetterSpacing: "0.5px", keyFontStyle: "none", keyVerticalAlign: "top", keyOpacity: "0.85", keyOpacityHover: "1", keyValPaddingTop: "3px", keyValPaddingBottom: "3px", keyValPaddingRight: "5px", keyValBorderLeft: "1px solid", keyValBorderHover: "2px solid", pushedContentMarginLeft: "6px", variableValuePaddingRight: "6px", nullFontSize: "11px", nullFontWeight: "bold", nullPadding: "1px 2px", nullBorderRadius: "3px", nanFontSize: "11px", nanFontWeight: "bold", nanPadding: "1px 2px", nanBorderRadius: "3px", undefinedFontSize: "11px", undefinedPadding: "1px 2px", undefinedBorderRadius: "3px", dataTypeFontSize: "11px", dataTypeMarginRight: "4px", datatypeOpacity: "0.8", objectSizeBorderRadius: "3px", objectSizeFontStyle: "italic", objectSizeMargin: "0px 6px 0px 0px", clipboardCursor: "pointer", clipboardCheckMarginLeft: "-12px", metaDataPadding: "0px 0px 0px 10px", arrayGroupMetaPadding: "0px 0px 0px 4px", iconContainerWidth: "17px", tooltipPadding: "4px", editInputMinWidth: "130px", editInputBorderRadius: "2px", editInputPadding: "5px", editInputMarginRight: "4px", editInputFontFamily: "monospace", iconCursor: "pointer", iconFontSize: "15px", iconPaddingRight: "1px", dateValueMarginLeft: "2px", iconMarginRight: "3px", detectedRowPaddingTop: "3px", addKeyCoverBackground: "rgba(255, 255, 255, 0.3)", addKeyCoverPosition: "absolute", addKeyCoverPositionPx: "0px", addKeyModalWidth: "200px", addKeyModalMargin: "auto", addKeyModalPadding: "10px", addKeyModalRadius: "3px", commaColor: "#666", commaFontSize: "12px", commaMarginRight: "4px" };
|
|
@@ -2684,14 +2684,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2684
2684
|
}, "ge");
|
|
2685
2685
|
var Ae = Math.max;
|
|
2686
2686
|
const mt = /* @__PURE__ */ t(function(a, o, d, m) {
|
|
2687
|
-
for (var z = -1, P = a.length, F = d.length, O = -1, $ = o.length, H = Ae(P - F, 0),
|
|
2688
|
-
for (; ++z < F; ) (ee || z < P) && (
|
|
2689
|
-
for (; H--; )
|
|
2690
|
-
return
|
|
2687
|
+
for (var z = -1, P = a.length, F = d.length, O = -1, $ = o.length, H = Ae(P - F, 0), Q = Array($ + H), ee = !m; ++O < $; ) Q[O] = o[O];
|
|
2688
|
+
for (; ++z < F; ) (ee || z < P) && (Q[d[z]] = a[z]);
|
|
2689
|
+
for (; H--; ) Q[O++] = a[z++];
|
|
2690
|
+
return Q;
|
|
2691
2691
|
}, "Ee");
|
|
2692
2692
|
var St = Math.max;
|
|
2693
2693
|
const ct = /* @__PURE__ */ t(function(a, o, d, m) {
|
|
2694
|
-
for (var z = -1, P = a.length, F = -1, O = d.length, $ = -1, H = o.length,
|
|
2694
|
+
for (var z = -1, P = a.length, F = -1, O = d.length, $ = -1, H = o.length, Q = St(P - O, 0), ee = Array(Q + H), fe = !m; ++z < Q; ) ee[z] = a[z];
|
|
2695
2695
|
for (var pe = z; ++$ < H; ) ee[pe + $] = o[$];
|
|
2696
2696
|
for (; ++F < O; ) (fe || z < P) && (ee[pe + d[F]] = a[z++]);
|
|
2697
2697
|
return ee;
|
|
@@ -2809,9 +2809,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2809
2809
|
var m = o + "";
|
|
2810
2810
|
return ir(a, jr(m, Ur(jn(m), d)));
|
|
2811
2811
|
}, "st"), qr = /* @__PURE__ */ t(function(a, o, d, m, z, P, F, O, $, H) {
|
|
2812
|
-
var
|
|
2813
|
-
o |=
|
|
2814
|
-
var ee = [a, o, z,
|
|
2812
|
+
var Q = 8 & o;
|
|
2813
|
+
o |= Q ? 32 : 64, 4 & (o &= ~(Q ? 64 : 32)) || (o &= -4);
|
|
2814
|
+
var ee = [a, o, z, Q ? P : void 0, Q ? F : void 0, Q ? void 0 : P, Q ? void 0 : F, O, $, H], fe = d.apply(void 0, ee);
|
|
2815
2815
|
return rr(a) && En(fe, ee), fe.placeholder = m, Vr(fe, a, o);
|
|
2816
2816
|
}, "it"), Bn = /* @__PURE__ */ t(function(a) {
|
|
2817
2817
|
return a.placeholder;
|
|
@@ -2836,14 +2836,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2836
2836
|
F !== o && F !== Wn || (a[d] = Wn, P[z++] = d);
|
|
2837
2837
|
}
|
|
2838
2838
|
return P;
|
|
2839
|
-
}, "ht"), Gr = /* @__PURE__ */ t(function a(o, d, m, z, P, F, O, $, H,
|
|
2839
|
+
}, "ht"), Gr = /* @__PURE__ */ t(function a(o, d, m, z, P, F, O, $, H, Q) {
|
|
2840
2840
|
var ee = 128 & d, fe = 1 & d, pe = 2 & d, Le = 24 & d, He = 512 & d, me = pe ? void 0 : $t(o);
|
|
2841
2841
|
return /* @__PURE__ */ t(function Pe() {
|
|
2842
2842
|
for (var Ue = arguments.length, Fe = Array(Ue), jt = Ue; jt--; ) Fe[jt] = arguments[jt];
|
|
2843
2843
|
if (Le) var Rt = Bn(Pe), zn = ae(Fe, Rt);
|
|
2844
|
-
if (z && (Fe = mt(Fe, z, P, Le)), F && (Fe = ct(Fe, F, O, Le)), Ue -= zn, Le && Ue <
|
|
2844
|
+
if (z && (Fe = mt(Fe, z, P, Le)), F && (Fe = ct(Fe, F, O, Le)), Ue -= zn, Le && Ue < Q) {
|
|
2845
2845
|
var yn = Nn(Fe, Rt);
|
|
2846
|
-
return qr(o, d, a, Pe.placeholder, m, Fe, yn, $, H,
|
|
2846
|
+
return qr(o, d, a, Pe.placeholder, m, Fe, yn, $, H, Q - Ue);
|
|
2847
2847
|
}
|
|
2848
2848
|
var pn = fe ? m : this, zt = pe ? pn[o] : o;
|
|
2849
2849
|
return Ue = Fe.length, $ ? Fe = Ko(Fe, $) : He && Ue > 1 && Fe.reverse(), ee && H < Ue && (Fe.length = H), this && this !== Ye && this instanceof Pe && (zt = me || $t(zt)), zt.apply(pn, Fe);
|
|
@@ -2858,7 +2858,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2858
2858
|
}, "mt"), Jo = /* @__PURE__ */ t(function(a, o, d, m) {
|
|
2859
2859
|
var z = 1 & o, P = $t(a);
|
|
2860
2860
|
return /* @__PURE__ */ t(function F() {
|
|
2861
|
-
for (var O = -1, $ = arguments.length, H = -1,
|
|
2861
|
+
for (var O = -1, $ = arguments.length, H = -1, Q = m.length, ee = Array(Q + $), fe = this && this !== Ye && this instanceof F ? P : a; ++H < Q; ) ee[H] = m[H];
|
|
2862
2862
|
for (; $--; ) ee[H++] = arguments[++O];
|
|
2863
2863
|
return Ne(fe, z ? d : this, ee);
|
|
2864
2864
|
}, "t");
|
|
@@ -2912,10 +2912,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2912
2912
|
if (!$ && typeof a != "function") throw new TypeError("Expected a function");
|
|
2913
2913
|
var H = m ? m.length : 0;
|
|
2914
2914
|
if (H || (o &= -97, m = z = void 0), F = F === void 0 ? F : dr(cr(F), 0), O = O === void 0 ? O : cr(O), H -= z ? z.length : 0, 64 & o) {
|
|
2915
|
-
var
|
|
2915
|
+
var Q = m, ee = z;
|
|
2916
2916
|
m = z = void 0;
|
|
2917
2917
|
}
|
|
2918
|
-
var fe = $ ? void 0 : gn(a), pe = [a, o, d, m, z,
|
|
2918
|
+
var fe = $ ? void 0 : gn(a), pe = [a, o, d, m, z, Q, ee, P, F, O];
|
|
2919
2919
|
if (fe && Jr(pe, fe), a = pe[0], o = pe[1], d = pe[2], m = pe[3], z = pe[4], !(O = pe[9] = pe[9] === void 0 ? $ ? 0 : a.length : dr(pe[9] - H, 0)) && 24 & o && (o &= -25), o && o != 1) Le = o == 8 || o == 16 ? Go(a, o, O) : o != 32 && o != 33 || z.length ? Gr.apply(void 0, pe) : Jo(a, o, d, m);
|
|
2920
2920
|
else var Le = _e(a, o, d);
|
|
2921
2921
|
return Vr((fe ? ke : En)(Le, pe), a, o);
|
|
@@ -2927,14 +2927,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2927
2927
|
t(ur, "Bt"), ur.placeholder = {};
|
|
2928
2928
|
const pr = ur, Kt = { threezerotwofour: { scheme: "threezerotwofour", author: "jan t. sott (http://github.com/idleberg)", base00: "#090300", base01: "#3a3432", base02: "#4a4543", base03: "#5c5855", base04: "#807d7c", base05: "#a5a2a2", base06: "#d6d5d4", base07: "#f7f7f7", base08: "#db2d20", base09: "#e8bbd0", base0A: "#fded02", base0B: "#01a252", base0C: "#b5e4f4", base0D: "#01a0e4", base0E: "#a16a94", base0F: "#cdab53" }, apathy: { scheme: "apathy", author: "jannik siebert (https://github.com/janniks)", base00: "#031A16", base01: "#0B342D", base02: "#184E45", base03: "#2B685E", base04: "#5F9C92", base05: "#81B5AC", base06: "#A7CEC8", base07: "#D2E7E4", base08: "#3E9688", base09: "#3E7996", base0A: "#3E4C96", base0B: "#883E96", base0C: "#963E4C", base0D: "#96883E", base0E: "#4C963E", base0F: "#3E965B" }, ashes: { scheme: "ashes", author: "jannik siebert (https://github.com/janniks)", base00: "#1C2023", base01: "#393F45", base02: "#565E65", base03: "#747C84", base04: "#ADB3BA", base05: "#C7CCD1", base06: "#DFE2E5", base07: "#F3F4F5", base08: "#C7AE95", base09: "#C7C795", base0A: "#AEC795", base0B: "#95C7AE", base0C: "#95AEC7", base0D: "#AE95C7", base0E: "#C795AE", base0F: "#C79595" }, atelierDune: { scheme: "atelier dune", author: "bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)", base00: "#20201d", base01: "#292824", base02: "#6e6b5e", base03: "#7d7a68", base04: "#999580", base05: "#a6a28c", base06: "#e8e4cf", base07: "#fefbec", base08: "#d73737", base09: "#b65611", base0A: "#cfb017", base0B: "#60ac39", base0C: "#1fad83", base0D: "#6684e1", base0E: "#b854d4", base0F: "#d43552" }, atelierForest: { scheme: "atelier forest", author: "bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)", base00: "#1b1918", base01: "#2c2421", base02: "#68615e", base03: "#766e6b", base04: "#9c9491", base05: "#a8a19f", base06: "#e6e2e0", base07: "#f1efee", base08: "#f22c40", base09: "#df5320", base0A: "#d5911a", base0B: "#5ab738", base0C: "#00ad9c", base0D: "#407ee7", base0E: "#6666ea", base0F: "#c33ff3" }, atelierHeath: { scheme: "atelier heath", author: "bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)", base00: "#1b181b", base01: "#292329", base02: "#695d69", base03: "#776977", base04: "#9e8f9e", base05: "#ab9bab", base06: "#d8cad8", base07: "#f7f3f7", base08: "#ca402b", base09: "#a65926", base0A: "#bb8a35", base0B: "#379a37", base0C: "#159393", base0D: "#516aec", base0E: "#7b59c0", base0F: "#cc33cc" }, atelierLakeside: { scheme: "atelier lakeside", author: "bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)", base00: "#161b1d", base01: "#1f292e", base02: "#516d7b", base03: "#5a7b8c", base04: "#7195a8", base05: "#7ea2b4", base06: "#c1e4f6", base07: "#ebf8ff", base08: "#d22d72", base09: "#935c25", base0A: "#8a8a0f", base0B: "#568c3b", base0C: "#2d8f6f", base0D: "#257fad", base0E: "#5d5db1", base0F: "#b72dd2" }, atelierSeaside: { scheme: "atelier seaside", author: "bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)", base00: "#131513", base01: "#242924", base02: "#5e6e5e", base03: "#687d68", base04: "#809980", base05: "#8ca68c", base06: "#cfe8cf", base07: "#f0fff0", base08: "#e6193c", base09: "#87711d", base0A: "#c3c322", base0B: "#29a329", base0C: "#1999b3", base0D: "#3d62f5", base0E: "#ad2bee", base0F: "#e619c3" }, bespin: { scheme: "bespin", author: "jan t. sott", base00: "#28211c", base01: "#36312e", base02: "#5e5d5c", base03: "#666666", base04: "#797977", base05: "#8a8986", base06: "#9d9b97", base07: "#baae9e", base08: "#cf6a4c", base09: "#cf7d34", base0A: "#f9ee98", base0B: "#54be0d", base0C: "#afc4db", base0D: "#5ea6ea", base0E: "#9b859d", base0F: "#937121" }, brewer: { scheme: "brewer", author: "timothée poisot (http://github.com/tpoisot)", base00: "#0c0d0e", base01: "#2e2f30", base02: "#515253", base03: "#737475", base04: "#959697", base05: "#b7b8b9", base06: "#dadbdc", base07: "#fcfdfe", base08: "#e31a1c", base09: "#e6550d", base0A: "#dca060", base0B: "#31a354", base0C: "#80b1d3", base0D: "#3182bd", base0E: "#756bb1", base0F: "#b15928" }, bright: { scheme: "bright", author: "chris kempson (http://chriskempson.com)", base00: "#000000", base01: "#303030", base02: "#505050", base03: "#b0b0b0", base04: "#d0d0d0", base05: "#e0e0e0", base06: "#f5f5f5", base07: "#ffffff", base08: "#fb0120", base09: "#fc6d24", base0A: "#fda331", base0B: "#a1c659", base0C: "#76c7b7", base0D: "#6fb3d2", base0E: "#d381c3", base0F: "#be643c" }, chalk: { scheme: "chalk", author: "chris kempson (http://chriskempson.com)", base00: "#151515", base01: "#202020", base02: "#303030", base03: "#505050", base04: "#b0b0b0", base05: "#d0d0d0", base06: "#e0e0e0", base07: "#f5f5f5", base08: "#fb9fb1", base09: "#eda987", base0A: "#ddb26f", base0B: "#acc267", base0C: "#12cfc0", base0D: "#6fc2ef", base0E: "#e1a3ee", base0F: "#deaf8f" }, codeschool: { scheme: "codeschool", author: "brettof86", base00: "#232c31", base01: "#1c3657", base02: "#2a343a", base03: "#3f4944", base04: "#84898c", base05: "#9ea7a6", base06: "#a7cfa3", base07: "#b5d8f6", base08: "#2a5491", base09: "#43820d", base0A: "#a03b1e", base0B: "#237986", base0C: "#b02f30", base0D: "#484d79", base0E: "#c59820", base0F: "#c98344" }, colors: { scheme: "colors", author: "mrmrs (http://clrs.cc)", base00: "#111111", base01: "#333333", base02: "#555555", base03: "#777777", base04: "#999999", base05: "#bbbbbb", base06: "#dddddd", base07: "#ffffff", base08: "#ff4136", base09: "#ff851b", base0A: "#ffdc00", base0B: "#2ecc40", base0C: "#7fdbff", base0D: "#0074d9", base0E: "#b10dc9", base0F: "#85144b" }, default: { scheme: "default", author: "chris kempson (http://chriskempson.com)", base00: "#181818", base01: "#282828", base02: "#383838", base03: "#585858", base04: "#b8b8b8", base05: "#d8d8d8", base06: "#e8e8e8", base07: "#f8f8f8", base08: "#ab4642", base09: "#dc9656", base0A: "#f7ca88", base0B: "#a1b56c", base0C: "#86c1b9", base0D: "#7cafc2", base0E: "#ba8baf", base0F: "#a16946" }, eighties: { scheme: "eighties", author: "chris kempson (http://chriskempson.com)", base00: "#2d2d2d", base01: "#393939", base02: "#515151", base03: "#747369", base04: "#a09f93", base05: "#d3d0c8", base06: "#e8e6df", base07: "#f2f0ec", base08: "#f2777a", base09: "#f99157", base0A: "#ffcc66", base0B: "#99cc99", base0C: "#66cccc", base0D: "#6699cc", base0E: "#cc99cc", base0F: "#d27b53" }, embers: { scheme: "embers", author: "jannik siebert (https://github.com/janniks)", base00: "#16130F", base01: "#2C2620", base02: "#433B32", base03: "#5A5047", base04: "#8A8075", base05: "#A39A90", base06: "#BEB6AE", base07: "#DBD6D1", base08: "#826D57", base09: "#828257", base0A: "#6D8257", base0B: "#57826D", base0C: "#576D82", base0D: "#6D5782", base0E: "#82576D", base0F: "#825757" }, flat: { scheme: "flat", author: "chris kempson (http://chriskempson.com)", base00: "#2C3E50", base01: "#34495E", base02: "#7F8C8D", base03: "#95A5A6", base04: "#BDC3C7", base05: "#e0e0e0", base06: "#f5f5f5", base07: "#ECF0F1", base08: "#E74C3C", base09: "#E67E22", base0A: "#F1C40F", base0B: "#2ECC71", base0C: "#1ABC9C", base0D: "#3498DB", base0E: "#9B59B6", base0F: "#be643c" }, google: { scheme: "google", author: "seth wright (http://sethawright.com)", base00: "#1d1f21", base01: "#282a2e", base02: "#373b41", base03: "#969896", base04: "#b4b7b4", base05: "#c5c8c6", base06: "#e0e0e0", base07: "#ffffff", base08: "#CC342B", base09: "#F96A38", base0A: "#FBA922", base0B: "#198844", base0C: "#3971ED", base0D: "#3971ED", base0E: "#A36AC7", base0F: "#3971ED" }, grayscale: { scheme: "grayscale", author: "alexandre gavioli (https://github.com/alexx2/)", base00: "#101010", base01: "#252525", base02: "#464646", base03: "#525252", base04: "#ababab", base05: "#b9b9b9", base06: "#e3e3e3", base07: "#f7f7f7", base08: "#7c7c7c", base09: "#999999", base0A: "#a0a0a0", base0B: "#8e8e8e", base0C: "#868686", base0D: "#686868", base0E: "#747474", base0F: "#5e5e5e" }, greenscreen: { scheme: "green screen", author: "chris kempson (http://chriskempson.com)", base00: "#001100", base01: "#003300", base02: "#005500", base03: "#007700", base04: "#009900", base05: "#00bb00", base06: "#00dd00", base07: "#00ff00", base08: "#007700", base09: "#009900", base0A: "#007700", base0B: "#00bb00", base0C: "#005500", base0D: "#009900", base0E: "#00bb00", base0F: "#005500" }, harmonic: { scheme: "harmonic16", author: "jannik siebert (https://github.com/janniks)", base00: "#0b1c2c", base01: "#223b54", base02: "#405c79", base03: "#627e99", base04: "#aabcce", base05: "#cbd6e2", base06: "#e5ebf1", base07: "#f7f9fb", base08: "#bf8b56", base09: "#bfbf56", base0A: "#8bbf56", base0B: "#56bf8b", base0C: "#568bbf", base0D: "#8b56bf", base0E: "#bf568b", base0F: "#bf5656" }, hopscotch: { scheme: "hopscotch", author: "jan t. sott", base00: "#322931", base01: "#433b42", base02: "#5c545b", base03: "#797379", base04: "#989498", base05: "#b9b5b8", base06: "#d5d3d5", base07: "#ffffff", base08: "#dd464c", base09: "#fd8b19", base0A: "#fdcc59", base0B: "#8fc13e", base0C: "#149b93", base0D: "#1290bf", base0E: "#c85e7c", base0F: "#b33508" }, isotope: { scheme: "isotope", author: "jan t. sott", base00: "#000000", base01: "#404040", base02: "#606060", base03: "#808080", base04: "#c0c0c0", base05: "#d0d0d0", base06: "#e0e0e0", base07: "#ffffff", base08: "#ff0000", base09: "#ff9900", base0A: "#ff0099", base0B: "#33ff00", base0C: "#00ffff", base0D: "#0066ff", base0E: "#cc00ff", base0F: "#3300ff" }, marrakesh: { scheme: "marrakesh", author: "alexandre gavioli (http://github.com/alexx2/)", base00: "#201602", base01: "#302e00", base02: "#5f5b17", base03: "#6c6823", base04: "#86813b", base05: "#948e48", base06: "#ccc37a", base07: "#faf0a5", base08: "#c35359", base09: "#b36144", base0A: "#a88339", base0B: "#18974e", base0C: "#75a738", base0D: "#477ca1", base0E: "#8868b3", base0F: "#b3588e" }, mocha: { scheme: "mocha", author: "chris kempson (http://chriskempson.com)", base00: "#3B3228", base01: "#534636", base02: "#645240", base03: "#7e705a", base04: "#b8afad", base05: "#d0c8c6", base06: "#e9e1dd", base07: "#f5eeeb", base08: "#cb6077", base09: "#d28b71", base0A: "#f4bc87", base0B: "#beb55b", base0C: "#7bbda4", base0D: "#8ab3b5", base0E: "#a89bb9", base0F: "#bb9584" }, monokai: { scheme: "monokai", author: "wimer hazenberg (http://www.monokai.nl)", base00: "#272822", base01: "#383830", base02: "#49483e", base03: "#75715e", base04: "#a59f85", base05: "#f8f8f2", base06: "#f5f4f1", base07: "#f9f8f5", base08: "#f92672", base09: "#fd971f", base0A: "#f4bf75", base0B: "#a6e22e", base0C: "#a1efe4", base0D: "#66d9ef", base0E: "#ae81ff", base0F: "#cc6633" }, nicinabox: { scheme: "nicinabox", author: "nicinabox (http://github.com/nicinabox)", base00: "#2A2F3A", base01: "#3C444F", base02: "#4F5A65", base03: "#BEBEBE", base04: "#b0b0b0", base05: "#d0d0d0", base06: "#FFFFFF", base07: "#f5f5f5", base08: "#fb9fb1", base09: "#FC6D24", base0A: "#ddb26f", base0B: "#A1C659", base0C: "#12cfc0", base0D: "#6FB3D2", base0E: "#D381C3", base0F: "#deaf8f" }, ocean: { scheme: "ocean", author: "chris kempson (http://chriskempson.com)", base00: "#2b303b", base01: "#343d46", base02: "#4f5b66", base03: "#65737e", base04: "#a7adba", base05: "#c0c5ce", base06: "#dfe1e8", base07: "#eff1f5", base08: "#bf616a", base09: "#d08770", base0A: "#ebcb8b", base0B: "#a3be8c", base0C: "#96b5b4", base0D: "#8fa1b3", base0E: "#b48ead", base0F: "#ab7967" }, paraiso: { scheme: "paraiso", author: "jan t. sott", base00: "#2f1e2e", base01: "#41323f", base02: "#4f424c", base03: "#776e71", base04: "#8d8687", base05: "#a39e9b", base06: "#b9b6b0", base07: "#e7e9db", base08: "#ef6155", base09: "#f99b15", base0A: "#fec418", base0B: "#48b685", base0C: "#5bc4bf", base0D: "#06b6ef", base0E: "#815ba4", base0F: "#e96ba8" }, pop: { scheme: "pop", author: "chris kempson (http://chriskempson.com)", base00: "#000000", base01: "#202020", base02: "#303030", base03: "#505050", base04: "#b0b0b0", base05: "#d0d0d0", base06: "#e0e0e0", base07: "#ffffff", base08: "#eb008a", base09: "#f29333", base0A: "#f8ca12", base0B: "#37b349", base0C: "#00aabb", base0D: "#0e5a94", base0E: "#b31e8d", base0F: "#7a2d00" }, railscasts: { scheme: "railscasts", author: "ryan bates (http://railscasts.com)", base00: "#2b2b2b", base01: "#272935", base02: "#3a4055", base03: "#5a647e", base04: "#d4cfc9", base05: "#e6e1dc", base06: "#f4f1ed", base07: "#f9f7f3", base08: "#da4939", base09: "#cc7833", base0A: "#ffc66d", base0B: "#a5c261", base0C: "#519f50", base0D: "#6d9cbe", base0E: "#b6b3eb", base0F: "#bc9458" }, shapeshifter: { scheme: "shapeshifter", author: "tyler benziger (http://tybenz.com)", base00: "#000000", base01: "#040404", base02: "#102015", base03: "#343434", base04: "#555555", base05: "#ababab", base06: "#e0e0e0", base07: "#f9f9f9", base08: "#e92f2f", base09: "#e09448", base0A: "#dddd13", base0B: "#0ed839", base0C: "#23edda", base0D: "#3b48e3", base0E: "#f996e2", base0F: "#69542d" }, solarized: { scheme: "solarized", author: "ethan schoonover (http://ethanschoonover.com/solarized)", base00: "#002b36", base01: "#073642", base02: "#586e75", base03: "#657b83", base04: "#839496", base05: "#93a1a1", base06: "#eee8d5", base07: "#fdf6e3", base08: "#dc322f", base09: "#cb4b16", base0A: "#b58900", base0B: "#859900", base0C: "#2aa198", base0D: "#268bd2", base0E: "#6c71c4", base0F: "#d33682" }, summerfruit: { scheme: "summerfruit", author: "christopher corley (http://cscorley.github.io/)", base00: "#151515", base01: "#202020", base02: "#303030", base03: "#505050", base04: "#B0B0B0", base05: "#D0D0D0", base06: "#E0E0E0", base07: "#FFFFFF", base08: "#FF0086", base09: "#FD8900", base0A: "#ABA800", base0B: "#00C918", base0C: "#1faaaa", base0D: "#3777E6", base0E: "#AD00A1", base0F: "#cc6633" }, tomorrow: { scheme: "tomorrow", author: "chris kempson (http://chriskempson.com)", base00: "#1d1f21", base01: "#282a2e", base02: "#373b41", base03: "#969896", base04: "#b4b7b4", base05: "#c5c8c6", base06: "#e0e0e0", base07: "#ffffff", base08: "#cc6666", base09: "#de935f", base0A: "#f0c674", base0B: "#b5bd68", base0C: "#8abeb7", base0D: "#81a2be", base0E: "#b294bb", base0F: "#a3685a" }, tube: { scheme: "london tube", author: "jan t. sott", base00: "#231f20", base01: "#1c3f95", base02: "#5a5758", base03: "#737171", base04: "#959ca1", base05: "#d9d8d8", base06: "#e7e7e8", base07: "#ffffff", base08: "#ee2e24", base09: "#f386a1", base0A: "#ffd204", base0B: "#00853e", base0C: "#85cebc", base0D: "#009ddc", base0E: "#98005d", base0F: "#b06110" }, twilight: { scheme: "twilight", author: "david hart (http://hart-dev.com)", base00: "#1e1e1e", base01: "#323537", base02: "#464b50", base03: "#5f5a60", base04: "#838184", base05: "#a7a7a7", base06: "#c3c3c3", base07: "#ffffff", base08: "#cf6a4c", base09: "#cda869", base0A: "#f9ee98", base0B: "#8f9d6a", base0C: "#afc4db", base0D: "#7587a6", base0E: "#9b859d", base0F: "#9b703f" } }, Xr = Kt.default, Hn = Object.keys(Xr), hr = /* @__PURE__ */ t((a) => {
|
|
2929
2929
|
const o = he(a), [d, m, z] = (function(O) {
|
|
2930
|
-
const $ = O[0] / 255, H = O[1] / 255,
|
|
2931
|
-
return [0.299 * $ + 0.587 * H + 0.114 *
|
|
2930
|
+
const $ = O[0] / 255, H = O[1] / 255, Q = O[2] / 255;
|
|
2931
|
+
return [0.299 * $ + 0.587 * H + 0.114 * Q, -0.14713 * $ + -0.28886 * H + 0.436 * Q, 0.615 * $ + -0.51499 * H + -0.10001 * Q];
|
|
2932
2932
|
})(o.array());
|
|
2933
2933
|
var P;
|
|
2934
2934
|
const F = (function(O) {
|
|
2935
|
-
const $ = O[0], H = O[1],
|
|
2935
|
+
const $ = O[0], H = O[1], Q = O[2];
|
|
2936
2936
|
let ee, fe, pe;
|
|
2937
|
-
return ee = 1 * $ + 0 * H + 1.13983 *
|
|
2937
|
+
return ee = 1 * $ + 0 * H + 1.13983 * Q, fe = 1 * $ + -0.39465 * H + -0.5806 * Q, pe = 1 * $ + 2.02311 * H + 0 * Q, ee = Math.min(Math.max(0, ee), 1), fe = Math.min(Math.max(0, fe), 1), pe = Math.min(Math.max(0, pe), 1), [255 * ee, 255 * fe, 255 * pe];
|
|
2938
2938
|
})([(P = d, P < 0.25 ? 1 : P < 0.5 ? 0.9 - P : 1.1 - P), m, z]);
|
|
2939
2939
|
return he.rgb(F).hex();
|
|
2940
2940
|
}, "Vt"), yt = /* @__PURE__ */ t((a) => (o) => ({ className: [o.className, a.className].filter(Boolean).join(" "), style: { ...o.style || {}, ...a.style || {} } }), "Kt"), Un = /* @__PURE__ */ t((a, o) => {
|
|
@@ -2984,8 +2984,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2984
2984
|
}, "Ut"), gr = /* @__PURE__ */ t((a) => Object.keys(a).reduce((o, d) => (o[d] = /^base/.test(d) ? hr(a[d]) : d === "scheme" ? a[d] + ":inverted" : a[d], o), {}), "Ht"), Zr = pr((a, o = {}, d = {}, ...m) => {
|
|
2985
2985
|
const { defaultBase16: z = Xr, base16Themes: P = null } = o, F = An(d, P);
|
|
2986
2986
|
F && (d = { ...F, ...d });
|
|
2987
|
-
const O = Hn.reduce((ee, fe) => (ee[fe] = d[fe] || z[fe], ee), {}), $ = Object.keys(d).reduce((ee, fe) => (Hn.indexOf(fe) === -1 && (ee[fe] = d[fe]), ee), {}), H = a(O),
|
|
2988
|
-
return pr(fr, 2)(
|
|
2987
|
+
const O = Hn.reduce((ee, fe) => (ee[fe] = d[fe] || z[fe], ee), {}), $ = Object.keys(d).reduce((ee, fe) => (Hn.indexOf(fe) === -1 && (ee[fe] = d[fe]), ee), {}), H = a(O), Q = Un($, H);
|
|
2988
|
+
return pr(fr, 2)(Q, ...m);
|
|
2989
2989
|
}, 3), Vn = /* @__PURE__ */ t((a) => !!a.extend, "Jt"), An = /* @__PURE__ */ t((a, o) => {
|
|
2990
2990
|
if (a && Vn(a) && a.extend && (a = a.extend), typeof a == "string") {
|
|
2991
2991
|
const [d, m] = a.split(":");
|
|
@@ -2998,25 +2998,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2998
2998
|
return { backgroundColor: d.base00, ellipsisColor: d.base09, braceColor: d.base07, expandedIcon: d.base0D, collapsedIcon: d.base0E, keyColor: d.base07, arrayKeyColor: d.base0C, objectSize: d.base04, copyToClipboard: d.base0F, copyToClipboardCheck: d.base0D, objectBorder: d.base02, dataTypes: { boolean: d.base0E, date: d.base0D, float: d.base0B, function: d.base0D, integer: d.base0F, string: d.base09, nan: d.base08, null: d.base0A, undefined: d.base05, regexp: d.base0A, background: d.base02, bigNumber: d.base09 }, editVariable: { editIcon: d.base0E, cancelIcon: d.base09, removeIcon: d.base09, addIcon: d.base0E, checkIcon: d.base0E, background: d.base01, color: d.base0A, border: d.base07 }, addKeyModal: { background: d.base05, border: d.base04, color: d.base0A, labelColor: d.base01 }, validationFailure: { background: d.base09, iconColor: d.base01, fontColor: d.base01 } };
|
|
2999
2999
|
})(a);
|
|
3000
3000
|
return { "app-container": { fontFamily: j.globalFontFamily, cursor: j.globalCursor, backgroundColor: o.backgroundColor, position: "relative" }, ellipsis: { display: "inline-block", color: o.ellipsisColor, fontSize: j.ellipsisFontSize, lineHeight: j.ellipsisLineHeight, cursor: j.ellipsisCursor }, "brace-row": { display: "inline-block", cursor: "pointer" }, brace: { display: "inline-block", cursor: j.braceCursor, fontWeight: j.braceFontWeight, color: o.braceColor }, "expanded-icon": { color: o.expandedIcon }, "collapsed-icon": { color: o.collapsedIcon }, colon: { display: "inline-block", margin: j.keyMargin, color: o.keyColor, verticalAlign: "top" }, objectKeyVal: /* @__PURE__ */ t(function(d, m) {
|
|
3001
|
-
return { style:
|
|
3001
|
+
return { style: S({ paddingTop: j.keyValPaddingTop, paddingRight: j.keyValPaddingRight, paddingBottom: j.keyValPaddingBottom, borderLeft: j.keyValBorderLeft + " " + o.objectBorder, ":hover": { paddingLeft: m.paddingLeft - 1 + "px", borderLeft: j.keyValBorderHover + " " + o.objectBorder } }, m) };
|
|
3002
3002
|
}, "objectKeyVal"), "object-key-val-no-border": { padding: j.keyValPadding }, "pushed-content": { marginLeft: j.pushedContentMarginLeft }, variableValue: /* @__PURE__ */ t(function(d, m) {
|
|
3003
|
-
return { style:
|
|
3003
|
+
return { style: S({ display: "inline-block", paddingRight: j.variableValuePaddingRight, position: "relative" }, m) };
|
|
3004
3004
|
}, "variableValue"), "object-name": { display: "inline-block", color: o.keyColor, letterSpacing: j.keyLetterSpacing, fontStyle: j.keyFontStyle, verticalAlign: j.keyVerticalAlign, opacity: j.keyOpacity, ":hover": { opacity: j.keyOpacityHover } }, "array-key": { display: "inline-block", color: o.arrayKeyColor, letterSpacing: j.keyLetterSpacing, fontStyle: j.keyFontStyle, verticalAlign: j.keyVerticalAlign, opacity: j.keyOpacity, ":hover": { opacity: j.keyOpacityHover } }, "object-size": { color: o.objectSize, borderRadius: j.objectSizeBorderRadius, fontStyle: j.objectSizeFontStyle, margin: j.objectSizeMargin, cursor: "default" }, "data-type-label": { fontSize: j.dataTypeFontSize, marginRight: j.dataTypeMarginRight, opacity: j.datatypeOpacity }, boolean: { display: "inline-block", color: o.dataTypes.boolean }, date: { display: "inline-block", color: o.dataTypes.date }, "date-value": { marginLeft: j.dateValueMarginLeft }, float: { display: "inline-block", color: o.dataTypes.float }, function: { display: "inline-block", color: o.dataTypes.function, cursor: "pointer", whiteSpace: "pre-line" }, "function-value": { fontStyle: "italic" }, integer: { display: "inline-block", color: o.dataTypes.integer }, bigNumber: { display: "inline-block", color: o.dataTypes.bigNumber }, string: { display: "inline-block", color: o.dataTypes.string }, nan: { display: "inline-block", color: o.dataTypes.nan, fontSize: j.nanFontSize, fontWeight: j.nanFontWeight, backgroundColor: o.dataTypes.background, padding: j.nanPadding, borderRadius: j.nanBorderRadius }, null: { display: "inline-block", color: o.dataTypes.null, fontSize: j.nullFontSize, fontWeight: j.nullFontWeight, backgroundColor: o.dataTypes.background, padding: j.nullPadding, borderRadius: j.nullBorderRadius }, undefined: { display: "inline-block", color: o.dataTypes.undefined, fontSize: j.undefinedFontSize, padding: j.undefinedPadding, borderRadius: j.undefinedBorderRadius, backgroundColor: o.dataTypes.background }, circularReference: { display: "inline-block", color: o.dataTypes.null, fontSize: j.nullFontSize, fontWeight: j.nullFontWeight, backgroundColor: o.dataTypes.background, padding: j.nullPadding, borderRadius: j.nullBorderRadius }, regexp: { display: "inline-block", color: o.dataTypes.regexp }, "copy-to-clipboard": { cursor: j.clipboardCursor }, "copy-icon": { color: o.copyToClipboard, fontSize: j.iconFontSize, marginRight: j.iconMarginRight, verticalAlign: "top" }, "copy-icon-copied": { color: o.copyToClipboardCheck, marginLeft: j.clipboardCheckMarginLeft }, "array-group-meta-data": { display: "inline-block", padding: j.arrayGroupMetaPadding }, "object-meta-data": { display: "inline-block", padding: j.metaDataPadding }, "icon-container": { display: "inline-block", width: j.iconContainerWidth }, tooltip: { padding: j.tooltipPadding }, removeVarIcon: { verticalAlign: "top", display: "inline-block", color: o.editVariable.removeIcon, cursor: j.iconCursor, fontSize: j.iconFontSize, marginRight: j.iconMarginRight }, addVarIcon: { verticalAlign: "top", display: "inline-block", color: o.editVariable.addIcon, cursor: j.iconCursor, fontSize: j.iconFontSize, marginRight: j.iconMarginRight }, editVarIcon: { verticalAlign: "top", display: "inline-block", color: o.editVariable.editIcon, cursor: j.iconCursor, fontSize: j.iconFontSize, marginRight: j.iconMarginRight }, "edit-icon-container": { display: "inline-block", verticalAlign: "top" }, "check-icon": { display: "inline-block", cursor: j.iconCursor, color: o.editVariable.checkIcon, fontSize: j.iconFontSize, paddingRight: j.iconPaddingRight }, "cancel-icon": { display: "inline-block", cursor: j.iconCursor, color: o.editVariable.cancelIcon, fontSize: j.iconFontSize, paddingRight: j.iconPaddingRight }, "edit-input": { display: "inline-block", minWidth: j.editInputMinWidth, borderRadius: j.editInputBorderRadius, backgroundColor: o.editVariable.background, color: o.editVariable.color, padding: j.editInputPadding, marginRight: j.editInputMarginRight, fontFamily: j.editInputFontFamily }, "detected-row": { paddingTop: j.detectedRowPaddingTop }, "key-modal-request": { position: j.addKeyCoverPosition, top: j.addKeyCoverPositionPx, left: j.addKeyCoverPositionPx, right: j.addKeyCoverPositionPx, bottom: j.addKeyCoverPositionPx, backgroundColor: j.addKeyCoverBackground }, "key-modal": { width: j.addKeyModalWidth, backgroundColor: o.addKeyModal.background, marginLeft: j.addKeyModalMargin, marginRight: j.addKeyModalMargin, padding: j.addKeyModalPadding, borderRadius: j.addKeyModalRadius, marginTop: "15px", position: "relative" }, "key-modal-label": { color: o.addKeyModal.labelColor, marginLeft: "2px", marginBottom: "5px", fontSize: "11px" }, "key-modal-input-container": { overflow: "hidden" }, "key-modal-input": { width: "100%", padding: "3px 6px", fontFamily: "monospace", color: o.addKeyModal.color, border: "none", boxSizing: "border-box", borderRadius: "2px" }, "key-modal-cancel": { backgroundColor: o.editVariable.removeIcon, position: "absolute", top: "0px", right: "0px", borderRadius: "0px 3px 0px 3px", cursor: "pointer" }, "key-modal-cancel-icon": { color: o.addKeyModal.labelColor, fontSize: j.iconFontSize, transform: "rotate(45deg)" }, "key-modal-submit": { color: o.editVariable.addIcon, fontSize: j.iconFontSize, position: "absolute", right: "2px", top: "3px", cursor: "pointer" }, "function-ellipsis": { display: "inline-block", color: o.ellipsisColor, fontSize: j.ellipsisFontSize, lineHeight: j.ellipsisLineHeight, cursor: j.ellipsisCursor }, "validation-failure": { float: "right", padding: "3px 6px", borderRadius: "2px", cursor: "pointer", color: o.validationFailure.fontColor, backgroundColor: o.validationFailure.background }, "validation-failure-label": { marginRight: "6px" }, "validation-failure-clear": { position: "relative", verticalAlign: "top", cursor: "pointer", color: o.validationFailure.iconColor, fontSize: j.iconFontSize, transform: "rotate(45deg)" }, comma: { display: "inline-block", color: j.commaColor, fontSize: j.commaFontSize, marginRight: j.commaMarginRight, cursor: "default" } };
|
|
3005
3005
|
}, "Gt"), to = /* @__PURE__ */ t(function(a) {
|
|
3006
3006
|
var o = ve;
|
|
3007
3007
|
return a !== !1 && a !== "none" || (o = oe), Zr(eo, { defaultBase16: o })(a);
|
|
3008
3008
|
}, "Qt");
|
|
3009
|
-
function
|
|
3009
|
+
function Y(a, o, d) {
|
|
3010
3010
|
return a || console.error("theme has not been set"), to(a)(o, d);
|
|
3011
3011
|
}
|
|
3012
|
-
t(
|
|
3012
|
+
t(Y, "Zt");
|
|
3013
3013
|
var dt = (function(a) {
|
|
3014
3014
|
function o() {
|
|
3015
3015
|
return w(this, o), p(this, o, arguments);
|
|
3016
3016
|
}
|
|
3017
3017
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3018
3018
|
var d = this.props, m = d.typeName, z = d.displayDataTypes, P = d.theme;
|
|
3019
|
-
return z ? h().createElement("span", Object.assign({ className: "data-type-label" },
|
|
3019
|
+
return z ? h().createElement("span", Object.assign({ className: "data-type-label" }, Y(P, "data-type-label")), m) : null;
|
|
3020
3020
|
}, "value") }]);
|
|
3021
3021
|
})(h().PureComponent), no = (function(a) {
|
|
3022
3022
|
function o() {
|
|
@@ -3024,7 +3024,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3024
3024
|
}
|
|
3025
3025
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3026
3026
|
var d = this.props;
|
|
3027
|
-
return h().createElement("div",
|
|
3027
|
+
return h().createElement("div", Y(d.theme, "boolean"), h().createElement(dt, Object.assign({ typeName: "bool" }, d)), d.value ? "true" : "false");
|
|
3028
3028
|
}, "value") }]);
|
|
3029
3029
|
})(h().PureComponent), mr = (function(a) {
|
|
3030
3030
|
function o() {
|
|
@@ -3032,7 +3032,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3032
3032
|
}
|
|
3033
3033
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3034
3034
|
var d = this.props;
|
|
3035
|
-
return h().createElement("div",
|
|
3035
|
+
return h().createElement("div", Y(d.theme, "date"), h().createElement(dt, Object.assign({ typeName: "date" }, d)), h().createElement("span", Object.assign({ className: "date-value" }, Y(d.theme, "date-value")), d.value.toLocaleTimeString("en-us", { weekday: "short", year: "numeric", month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" })));
|
|
3036
3036
|
}, "value") }]);
|
|
3037
3037
|
})(h().PureComponent), ro = (function(a) {
|
|
3038
3038
|
function o() {
|
|
@@ -3040,7 +3040,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3040
3040
|
}
|
|
3041
3041
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3042
3042
|
var d = this.props;
|
|
3043
|
-
return h().createElement("div",
|
|
3043
|
+
return h().createElement("div", Y(d.theme, "float"), h().createElement(dt, Object.assign({ typeName: "float" }, d)), this.props.value);
|
|
3044
3044
|
}, "value") }]);
|
|
3045
3045
|
})(h().PureComponent), oo = l(784), bn = (function() {
|
|
3046
3046
|
return f(/* @__PURE__ */ t(function a() {
|
|
@@ -3071,19 +3071,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3071
3071
|
d.emit("reset-" + O);
|
|
3072
3072
|
break;
|
|
3073
3073
|
case "VARIABLE_UPDATED":
|
|
3074
|
-
F.data[qn] = d.updateSrc(O, $), d.set(O, "action", "variable-update",
|
|
3074
|
+
F.data[qn] = d.updateSrc(O, $), d.set(O, "action", "variable-update", S(S({}, $), {}, { type: "variable-edited" })), d.emit("variable-update-" + O);
|
|
3075
3075
|
break;
|
|
3076
3076
|
case "VARIABLE_REMOVED":
|
|
3077
|
-
F.data[qn] = d.updateSrc(O, $), d.set(O, "action", "variable-update",
|
|
3077
|
+
F.data[qn] = d.updateSrc(O, $), d.set(O, "action", "variable-update", S(S({}, $), {}, { type: "variable-removed" })), d.emit("variable-update-" + O);
|
|
3078
3078
|
break;
|
|
3079
3079
|
case "VARIABLE_ADDED":
|
|
3080
|
-
F.data[qn] = d.updateSrc(O, $), d.set(O, "action", "variable-update",
|
|
3080
|
+
F.data[qn] = d.updateSrc(O, $), d.set(O, "action", "variable-update", S(S({}, $), {}, { type: "variable-added" })), d.emit("variable-update-" + O);
|
|
3081
3081
|
break;
|
|
3082
3082
|
case "ADD_VARIABLE_KEY_REQUEST":
|
|
3083
3083
|
d.set(O, "action", "new-key-request", $), d.emit("add-key-request-" + O);
|
|
3084
3084
|
}
|
|
3085
3085
|
}, d.updateSrc = function(F, O) {
|
|
3086
|
-
var $ = O.name, H = O.namespace,
|
|
3086
|
+
var $ = O.name, H = O.namespace, Q = O.new_value, ee = O.variable_removed;
|
|
3087
3087
|
H.shift();
|
|
3088
3088
|
var fe, pe = d.get(F, "global", "src"), Le = d.deepCopy(pe, V(H)), He = Le, me = (function(Pe, Ue) {
|
|
3089
3089
|
var Fe = typeof Symbol < "u" && Pe[Symbol.iterator] || Pe["@@iterator"];
|
|
@@ -3125,10 +3125,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3125
3125
|
} finally {
|
|
3126
3126
|
me.f();
|
|
3127
3127
|
}
|
|
3128
|
-
return ee ? se(He) === "array" ? He.splice($, 1) : delete He[$] : $ !== null ? He[$] =
|
|
3128
|
+
return ee ? se(He) === "array" ? He.splice($, 1) : delete He[$] : $ !== null ? He[$] = Q : Le = Q, d.set(F, "global", "src", Le), Le;
|
|
3129
3129
|
}, d.deepCopy = function(F, O) {
|
|
3130
|
-
var $, H = se(F),
|
|
3131
|
-
return H === "array" ? $ = V(F) : H === "object" && ($ =
|
|
3130
|
+
var $, H = se(F), Q = O.shift();
|
|
3131
|
+
return H === "array" ? $ = V(F) : H === "object" && ($ = S({}, F)), Q !== void 0 && ($[Q] = d.deepCopy(F[Q], O)), $;
|
|
3132
3132
|
}, d;
|
|
3133
3133
|
}
|
|
3134
3134
|
return t(o, "t"), c(o, a), f(o);
|
|
@@ -3144,26 +3144,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3144
3144
|
});
|
|
3145
3145
|
}, m.getFunctionDisplay = function(z) {
|
|
3146
3146
|
var P = m.props;
|
|
3147
|
-
return z ? h().createElement("span", null, m.props.value.toString().slice(9, -1).replace(/\{[\s\S]+/, ""), h().createElement("span", { className: "function-collapsed", style: { fontWeight: "bold" } }, h().createElement("span", null, "{"), h().createElement("span",
|
|
3147
|
+
return z ? h().createElement("span", null, m.props.value.toString().slice(9, -1).replace(/\{[\s\S]+/, ""), h().createElement("span", { className: "function-collapsed", style: { fontWeight: "bold" } }, h().createElement("span", null, "{"), h().createElement("span", Y(P.theme, "ellipsis"), "..."), h().createElement("span", null, "}"))) : m.props.value.toString().slice(9, -1);
|
|
3148
3148
|
}, m.state = { collapsed: at.get(d.rjvId, d.namespace, "collapsed", !0) }, m;
|
|
3149
3149
|
}
|
|
3150
3150
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3151
3151
|
var d = this.props, m = this.state.collapsed;
|
|
3152
|
-
return h().createElement("div",
|
|
3152
|
+
return h().createElement("div", Y(d.theme, "function"), h().createElement(dt, Object.assign({ typeName: "function" }, d)), h().createElement("span", Object.assign({}, Y(d.theme, "function-value"), { className: "rjv-function-container", onClick: this.handleToggleCollapsed }), this.getFunctionDisplay(m)));
|
|
3153
3153
|
}, "value") }]);
|
|
3154
3154
|
})(h().PureComponent), ln = (function(a) {
|
|
3155
3155
|
function o() {
|
|
3156
3156
|
return w(this, o), p(this, o, arguments);
|
|
3157
3157
|
}
|
|
3158
3158
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3159
|
-
return h().createElement("div",
|
|
3159
|
+
return h().createElement("div", Y(this.props.theme, "nan"), "NaN");
|
|
3160
3160
|
}, "value") }]);
|
|
3161
3161
|
})(h().PureComponent), Kn = (function(a) {
|
|
3162
3162
|
function o() {
|
|
3163
3163
|
return w(this, o), p(this, o, arguments);
|
|
3164
3164
|
}
|
|
3165
3165
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3166
|
-
return h().createElement("div",
|
|
3166
|
+
return h().createElement("div", Y(this.props.theme, "null"), "NULL");
|
|
3167
3167
|
}, "value") }]);
|
|
3168
3168
|
})(h().PureComponent), yr = (function(a) {
|
|
3169
3169
|
function o() {
|
|
@@ -3171,7 +3171,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3171
3171
|
}
|
|
3172
3172
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3173
3173
|
var d = this.props;
|
|
3174
|
-
return h().createElement("div",
|
|
3174
|
+
return h().createElement("div", Y(d.theme, "integer"), h().createElement(dt, Object.assign({ typeName: "int" }, d)), this.props.value);
|
|
3175
3175
|
}, "value") }]);
|
|
3176
3176
|
})(h().PureComponent), Gn = (function(a) {
|
|
3177
3177
|
function o() {
|
|
@@ -3179,7 +3179,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3179
3179
|
}
|
|
3180
3180
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3181
3181
|
var d = this.props;
|
|
3182
|
-
return h().createElement("div",
|
|
3182
|
+
return h().createElement("div", Y(d.theme, "regexp"), h().createElement(dt, Object.assign({ typeName: "regexp" }, d)), this.props.value.toString());
|
|
3183
3183
|
}, "value") }]);
|
|
3184
3184
|
})(h().PureComponent), cn = (function(a) {
|
|
3185
3185
|
function o(d) {
|
|
@@ -3192,14 +3192,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3192
3192
|
}
|
|
3193
3193
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3194
3194
|
var d = this.state.collapsed, m = this.props, z = m.collapseStringsAfterLength, P = m.theme, F = m.escapeStrings, O = m.value, $ = se(z) === "integer", H = { style: { cursor: "default", wordBreak: "break-all" } };
|
|
3195
|
-
return F && (O = Oe(O)), $ && O.length > z && (H.style.cursor = "pointer", d && (O = h().createElement("span", null, O.substring(0, z), h().createElement("span",
|
|
3195
|
+
return F && (O = Oe(O)), $ && O.length > z && (H.style.cursor = "pointer", d && (O = h().createElement("span", null, O.substring(0, z), h().createElement("span", Y(P, "ellipsis"), " ...")))), h().createElement("div", Y(P, "string"), h().createElement(dt, Object.assign({ typeName: "string" }, m)), h().createElement("span", Object.assign({ className: "string-value" }, H, { onClick: this.handleToggleCollapsed }), '"', O, '"'));
|
|
3196
3196
|
}, "value") }]);
|
|
3197
3197
|
})(h().PureComponent), io = (function(a) {
|
|
3198
3198
|
function o() {
|
|
3199
3199
|
return w(this, o), p(this, o, arguments);
|
|
3200
3200
|
}
|
|
3201
3201
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3202
|
-
return h().createElement("div",
|
|
3202
|
+
return h().createElement("div", Y(this.props.theme, "undefined"), "undefined");
|
|
3203
3203
|
}, "value") }]);
|
|
3204
3204
|
})(h().PureComponent), xr = (function(a) {
|
|
3205
3205
|
function o() {
|
|
@@ -3207,7 +3207,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3207
3207
|
}
|
|
3208
3208
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3209
3209
|
var d = this.props;
|
|
3210
|
-
return h().createElement("div",
|
|
3210
|
+
return h().createElement("div", Y(d.theme, "bigNumber"), h().createElement(dt, Object.assign({ typeName: "bigNumber" }, d)), this.props.value.toString());
|
|
3211
3211
|
}, "value") }]);
|
|
3212
3212
|
})(h().PureComponent);
|
|
3213
3213
|
function Mn() {
|
|
@@ -3253,7 +3253,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3253
3253
|
}
|
|
3254
3254
|
t(un, "_n");
|
|
3255
3255
|
var ua = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], co = /* @__PURE__ */ t(function(a, o) {
|
|
3256
|
-
var d = a.cacheMeasurements, m = a.maxRows, z = a.minRows, P = a.onChange, F = P === void 0 ? lo : P, O = a.onHeightChange, $ = O === void 0 ? lo : O, H = Z(a, ua),
|
|
3256
|
+
var d = a.cacheMeasurements, m = a.maxRows, z = a.minRows, P = a.onChange, F = P === void 0 ? lo : P, O = a.onHeightChange, $ = O === void 0 ? lo : O, H = Z(a, ua), Q = H.value !== void 0, ee = C.useRef(null), fe = (function(me, Pe) {
|
|
3257
3257
|
var Ue = h().useRef();
|
|
3258
3258
|
return h().useCallback(function(Fe) {
|
|
3259
3259
|
me.current = Fe, Ue.current && dn(Ue.current, null), Ue.current = Pe, Pe && dn(Pe, Fe);
|
|
@@ -3284,7 +3284,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3284
3284
|
me.current.form === Ue.target && Pe(Ue);
|
|
3285
3285
|
});
|
|
3286
3286
|
})(ee, function() {
|
|
3287
|
-
if (!
|
|
3287
|
+
if (!Q) {
|
|
3288
3288
|
var me = ee.current.value;
|
|
3289
3289
|
requestAnimationFrame(function() {
|
|
3290
3290
|
var Pe = ee.current;
|
|
@@ -3294,7 +3294,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3294
3294
|
}), un(window, "resize", He), (function(me) {
|
|
3295
3295
|
un(document.fonts, "loadingdone", me);
|
|
3296
3296
|
})(He), C.createElement("textarea", Mn({}, H, { onChange: /* @__PURE__ */ t(function(me) {
|
|
3297
|
-
|
|
3297
|
+
Q || He(), F(me);
|
|
3298
3298
|
}, "onChange"), ref: fe }));
|
|
3299
3299
|
}, "Fn"), pa = C.forwardRef(co);
|
|
3300
3300
|
function uo(a, o) {
|
|
@@ -3395,7 +3395,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3395
3395
|
}
|
|
3396
3396
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3397
3397
|
var d = this.props, m = d.style, z = q(d, ue);
|
|
3398
|
-
return h().createElement("span", z, h().createElement("svg", { style:
|
|
3398
|
+
return h().createElement("span", z, h().createElement("svg", { style: S(S({}, Wt(m).style), {}, { paddingLeft: "2px", verticalAlign: "top" }), viewBox: "0 0 15 15", fill: "currentColor" }, h().createElement("path", { d: "M0 14l6-6-6-6z" })));
|
|
3399
3399
|
}, "value") }]);
|
|
3400
3400
|
})(h().PureComponent), $c = (function(a) {
|
|
3401
3401
|
function o() {
|
|
@@ -3403,7 +3403,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3403
3403
|
}
|
|
3404
3404
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3405
3405
|
var d = this.props, m = d.style, z = q(d, Re);
|
|
3406
|
-
return h().createElement("span", z, h().createElement("svg", { style:
|
|
3406
|
+
return h().createElement("span", z, h().createElement("svg", { style: S(S({}, Wt(m).style), {}, { paddingLeft: "2px", verticalAlign: "top" }), viewBox: "0 0 15 15", fill: "currentColor" }, h().createElement("path", { d: "M0 5l6 6 6-6z" })));
|
|
3407
3407
|
}, "value") }]);
|
|
3408
3408
|
})(h().PureComponent), Wi = (function(a) {
|
|
3409
3409
|
function o() {
|
|
@@ -3455,7 +3455,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3455
3455
|
}, "value") }]);
|
|
3456
3456
|
})(h().PureComponent);
|
|
3457
3457
|
function Wt(a) {
|
|
3458
|
-
return a || (a = {}), { style:
|
|
3458
|
+
return a || (a = {}), { style: S(S({ verticalAlign: "middle" }, a), {}, { color: a.color ? a.color : "#000000", height: "1em", width: "1em" }) };
|
|
3459
3459
|
}
|
|
3460
3460
|
t(Wt, "sa");
|
|
3461
3461
|
var Hi = (function(a) {
|
|
@@ -3475,7 +3475,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3475
3475
|
});
|
|
3476
3476
|
}, m.getClippyIcon = function() {
|
|
3477
3477
|
var z = m.props.theme;
|
|
3478
|
-
return m.state.copied ? h().createElement("span", null, h().createElement(Wi, Object.assign({ className: "copy-icon" },
|
|
3478
|
+
return m.state.copied ? h().createElement("span", null, h().createElement(Wi, Object.assign({ className: "copy-icon" }, Y(z, "copy-icon"))), h().createElement("span", Y(z, "copy-icon-copied"), "✔")) : h().createElement(Wi, Object.assign({ className: "copy-icon" }, Y(z, "copy-icon")));
|
|
3479
3479
|
}, m.clipboardValue = function(z) {
|
|
3480
3480
|
switch (se(z)) {
|
|
3481
3481
|
case "function":
|
|
@@ -3489,19 +3489,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3489
3489
|
return t(o, "t"), c(o, a), f(o, [{ key: "componentWillUnmount", value: /* @__PURE__ */ t(function() {
|
|
3490
3490
|
this.copiedTimer && (clearTimeout(this.copiedTimer), this.copiedTimer = null);
|
|
3491
3491
|
}, "value") }, { key: "render", value: /* @__PURE__ */ t(function() {
|
|
3492
|
-
var d = this.props, m = d.theme, z = d.hidden, P = d.rowHovered, F =
|
|
3493
|
-
return z && (O = "none"), h().createElement("span", { className: "copy-to-clipboard-container", title: "Copy to clipboard", style: { verticalAlign: "top", display: P ? "inline-block" : "none" } }, h().createElement("span", { style:
|
|
3492
|
+
var d = this.props, m = d.theme, z = d.hidden, P = d.rowHovered, F = Y(m, "copy-to-clipboard").style, O = "inline";
|
|
3493
|
+
return z && (O = "none"), h().createElement("span", { className: "copy-to-clipboard-container", title: "Copy to clipboard", style: { verticalAlign: "top", display: P ? "inline-block" : "none" } }, h().createElement("span", { style: S(S({}, F), {}, { display: O }), onClick: this.handleCopy }, this.getClippyIcon()));
|
|
3494
3494
|
}, "value") }]);
|
|
3495
3495
|
})(h().PureComponent);
|
|
3496
3496
|
const Nc = (function(a) {
|
|
3497
3497
|
function o(d) {
|
|
3498
3498
|
var m;
|
|
3499
3499
|
return w(this, o), (m = p(this, o, [d])).handleSelect = function(z) {
|
|
3500
|
-
var P = m.props, F = P.variable, O = P.namespace, $ = P.onEdit, H = P.onSelect,
|
|
3501
|
-
|
|
3500
|
+
var P = m.props, F = P.variable, O = P.namespace, $ = P.onEdit, H = P.onSelect, Q = P.keyModifier, ee = V(O);
|
|
3501
|
+
Q(z, "edit") && $ !== !1 ? m.prepopInput(F) : H !== !1 && (ee.shift(), H(S(S({}, F), {}, { namespace: ee })));
|
|
3502
3502
|
}, m.getEditIcon = function() {
|
|
3503
3503
|
var z = m.props, P = z.variable, F = z.theme;
|
|
3504
|
-
return h().createElement("div", { className: "click-to-edit", style: { verticalAlign: "top", display: m.state.hovered ? "inline-block" : "none" } }, h().createElement(Wc, Object.assign({ className: "click-to-edit-icon" },
|
|
3504
|
+
return h().createElement("div", { className: "click-to-edit", style: { verticalAlign: "top", display: m.state.hovered ? "inline-block" : "none" } }, h().createElement(Wc, Object.assign({ className: "click-to-edit-icon" }, Y(F, "editVarIcon"), { onClick: /* @__PURE__ */ t(function() {
|
|
3505
3505
|
m.prepopInput(P);
|
|
3506
3506
|
}, "onClick") })));
|
|
3507
3507
|
}, m.prepopInput = function(z) {
|
|
@@ -3511,7 +3511,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3511
3511
|
}
|
|
3512
3512
|
}, m.getRemoveIcon = function() {
|
|
3513
3513
|
var z = m.props, P = z.variable, F = z.namespace, O = z.theme, $ = z.rjvId;
|
|
3514
|
-
return h().createElement("div", { className: "click-to-remove", style: { verticalAlign: "top", display: m.state.hovered ? "inline-block" : "none" } }, h().createElement(fa, Object.assign({ className: "click-to-remove-icon" },
|
|
3514
|
+
return h().createElement("div", { className: "click-to-remove", style: { verticalAlign: "top", display: m.state.hovered ? "inline-block" : "none" } }, h().createElement(fa, Object.assign({ className: "click-to-remove-icon" }, Y(O, "removeVarIcon"), { onClick: /* @__PURE__ */ t(function() {
|
|
3515
3515
|
Ft.dispatch({ name: "VARIABLE_REMOVED", rjvId: $, data: { name: P.name, namespace: F, existing_value: P.value, variable_removed: !0 } });
|
|
3516
3516
|
}, "onClick") })));
|
|
3517
3517
|
}, m.getValue = function(z, P) {
|
|
@@ -3557,8 +3557,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3557
3557
|
return h().createElement("div", null, h().createElement(pa, Object.assign({ type: "text", ref: /* @__PURE__ */ t(function(H) {
|
|
3558
3558
|
H && H[F ? "select" : "focus"]();
|
|
3559
3559
|
}, "ref"), value: $, className: "variable-editor", onChange: /* @__PURE__ */ t(function(H) {
|
|
3560
|
-
var
|
|
3561
|
-
m.setState({ editValue:
|
|
3560
|
+
var Q = H.target.value, ee = uo(Q, m.props.bigNumber);
|
|
3561
|
+
m.setState({ editValue: Q, parsedInput: { type: ee.type, value: ee.value } });
|
|
3562
3562
|
}, "onChange"), onKeyDown: /* @__PURE__ */ t(function(H) {
|
|
3563
3563
|
switch (H.key) {
|
|
3564
3564
|
case "Escape":
|
|
@@ -3568,26 +3568,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3568
3568
|
P(H, "submit") && m.submitEdit(!0);
|
|
3569
3569
|
}
|
|
3570
3570
|
H.stopPropagation();
|
|
3571
|
-
}, "onKeyDown"), placeholder: "update this value", minRows: 2 },
|
|
3571
|
+
}, "onKeyDown"), placeholder: "update this value", minRows: 2 }, Y(O, "edit-input"))), h().createElement("div", Y(O, "edit-icon-container"), h().createElement(fa, Object.assign({ className: "edit-cancel" }, Y(O, "cancel-icon"), { onClick: /* @__PURE__ */ t(function(H) {
|
|
3572
3572
|
H && H.stopPropagation(), m.setState({ editMode: !1, editValue: "" });
|
|
3573
|
-
}, "onClick") })), h().createElement(ga, Object.assign({ className: "edit-check string-value" },
|
|
3573
|
+
}, "onClick") })), h().createElement(ga, Object.assign({ className: "edit-check string-value" }, Y(O, "check-icon"), { onClick: /* @__PURE__ */ t(function(H) {
|
|
3574
3574
|
H && H.stopPropagation(), m.submitEdit();
|
|
3575
3575
|
}, "onClick") })), h().createElement("div", null, m.showDetected())));
|
|
3576
3576
|
}, m.submitEdit = function(z) {
|
|
3577
|
-
var P = m.props, F = P.variable, O = P.namespace, $ = P.rjvId, H = P.bigNumber,
|
|
3577
|
+
var P = m.props, F = P.variable, O = P.namespace, $ = P.rjvId, H = P.bigNumber, Q = m.state, ee = Q.editValue, fe = Q.parsedInput, pe = ee;
|
|
3578
3578
|
z && fe.type && (pe = fe.value, H && fe.type === "bigNumber" && (pe = new H(pe))), m.setState({ editMode: !1 }), Ft.dispatch({ name: "VARIABLE_UPDATED", rjvId: $, data: { name: F.name, namespace: O, existing_value: F.value, new_value: pe, variable_removed: !1 } });
|
|
3579
3579
|
}, m.showDetected = function() {
|
|
3580
3580
|
var z = m.props.theme, P = m.getDetectedInput();
|
|
3581
|
-
if (P) return h().createElement("div", null, h().createElement("div",
|
|
3581
|
+
if (P) return h().createElement("div", null, h().createElement("div", Y(z, "detected-row"), P, h().createElement(ga, { className: "edit-check detected", style: S({ verticalAlign: "top", paddingLeft: "3px" }, Y(z, "check-icon").style), onClick: /* @__PURE__ */ t(function(F) {
|
|
3582
3582
|
F && F.stopPropagation(), m.submitEdit(!0);
|
|
3583
3583
|
}, "onClick") })));
|
|
3584
3584
|
}, m.getDetectedInput = function() {
|
|
3585
3585
|
var z = m.state.parsedInput, P = z.type, F = z.value, O = m.props, $ = O.theme;
|
|
3586
3586
|
if (P !== !1) switch (P.toLowerCase()) {
|
|
3587
3587
|
case "object":
|
|
3588
|
-
return h().createElement("span", null, h().createElement("span", { style:
|
|
3588
|
+
return h().createElement("span", null, h().createElement("span", { style: S(S({}, Y($, "brace").style), {}, { cursor: "default" }) }, "{"), h().createElement("span", { style: S(S({}, Y($, "ellipsis").style), {}, { cursor: "default" }) }, "..."), h().createElement("span", { style: S(S({}, Y($, "brace").style), {}, { cursor: "default" }) }, "}"));
|
|
3589
3589
|
case "array":
|
|
3590
|
-
return h().createElement("span", null, h().createElement("span", { style:
|
|
3590
|
+
return h().createElement("span", null, h().createElement("span", { style: S(S({}, Y($, "brace").style), {}, { cursor: "default" }) }, "["), h().createElement("span", { style: S(S({}, Y($, "ellipsis").style), {}, { cursor: "default" }) }, "..."), h().createElement("span", { style: S(S({}, Y($, "brace").style), {}, { cursor: "default" }) }, "]"));
|
|
3591
3591
|
case "string":
|
|
3592
3592
|
return h().createElement(cn, Object.assign({ value: F }, O));
|
|
3593
3593
|
case "integer":
|
|
@@ -3614,12 +3614,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3614
3614
|
}, m.state = { editMode: !1, editValue: "", hovered: !1, renameKey: !1, parsedInput: { type: !1, value: null } }, m;
|
|
3615
3615
|
}
|
|
3616
3616
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3617
|
-
var d = this, m = this.props, z = m.variable, P = m.singleIndent, F = m.type, O = m.theme, $ = m.namespace, H = m.indentWidth,
|
|
3618
|
-
return h().createElement("div", Object.assign({},
|
|
3619
|
-
return d.setState(
|
|
3617
|
+
var d = this, m = this.props, z = m.variable, P = m.singleIndent, F = m.type, O = m.theme, $ = m.namespace, H = m.indentWidth, Q = m.enableClipboard, ee = m.onEdit, fe = m.onDelete, pe = m.onSelect, Le = m.displayArrayKey, He = m.quotesOnKeys, me = m.showComma, Pe = m.isLast, Ue = this.state.editMode, Fe = pe !== !1 || ee !== !1;
|
|
3618
|
+
return h().createElement("div", Object.assign({}, Y(O, "objectKeyVal", { paddingLeft: H * P }), { onMouseEnter: /* @__PURE__ */ t(function() {
|
|
3619
|
+
return d.setState(S(S({}, d.state), {}, { hovered: !0 }));
|
|
3620
3620
|
}, "onMouseEnter"), onMouseLeave: /* @__PURE__ */ t(function() {
|
|
3621
|
-
return d.setState(
|
|
3622
|
-
}, "onMouseLeave"), className: "variable-row", key: z.name }), F === "array" ? Le ? h().createElement("span", Object.assign({},
|
|
3621
|
+
return d.setState(S(S({}, d.state), {}, { hovered: !1 }));
|
|
3622
|
+
}, "onMouseLeave"), className: "variable-row", key: z.name }), F === "array" ? Le ? h().createElement("span", Object.assign({}, Y(O, "array-key"), { key: z.name + "_" + $ }), z.name, h().createElement("div", Y(O, "colon"), ":")) : null : h().createElement("span", null, h().createElement("span", Object.assign({}, Y(O, "object-name"), { className: "object-key", key: z.name + "_" + $, onClick: Fe ? this.handleSelect : null }), !!He && h().createElement("span", { style: { verticalAlign: "top" } }, '"'), h().createElement("span", { style: { display: "inline-block" } }, Oe(z.name)), !!He && h().createElement("span", { style: { verticalAlign: "top" } }, '"')), h().createElement("span", Y(O, "colon"), ":")), h().createElement("div", Object.assign({ className: "variable-value", onClick: Fe ? this.handleSelect : null }, Y(O, "variableValue", { cursor: pe === !1 ? "default" : "pointer" })), this.getValue(z, Ue)), me && !Pe && h().createElement("span", Y(O, "comma"), ","), Q ? h().createElement(Hi, { rowHovered: this.state.hovered, hidden: Ue, src: z.value, clickCallback: Q, theme: O, namespace: [].concat(V($), [z.name]) }) : null, ee !== !1 && Ue === !1 ? this.getEditIcon() : null, fe !== !1 && Ue === !1 ? this.getRemoveIcon() : null);
|
|
3623
3623
|
}, "value") }]);
|
|
3624
3624
|
})(h().PureComponent);
|
|
3625
3625
|
var Ui = (function(a) {
|
|
@@ -3629,41 +3629,41 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3629
3629
|
for (var m = arguments.length, z = new Array(m), P = 0; P < m; P++) z[P] = arguments[P];
|
|
3630
3630
|
return (d = p(this, o, [].concat(z))).getObjectSize = function() {
|
|
3631
3631
|
var F = d.props, O = F.size, $ = F.theme;
|
|
3632
|
-
if (F.displayObjectSize) return h().createElement("span", Object.assign({ className: "object-size" },
|
|
3632
|
+
if (F.displayObjectSize) return h().createElement("span", Object.assign({ className: "object-size" }, Y($, "object-size")), O, " item", O === 1 ? "" : "s");
|
|
3633
3633
|
}, d.getAddAttribute = function(F) {
|
|
3634
|
-
var O = d.props, $ = O.theme, H = O.namespace,
|
|
3635
|
-
return h().createElement("span", { className: "click-to-add", style: { verticalAlign: "top", display: F ? "inline-block" : "none" } }, h().createElement(Bc, Object.assign({ className: "click-to-add-icon" },
|
|
3636
|
-
var Le = { name: pe > 0 ?
|
|
3637
|
-
se(ee) === "object" ? Ft.dispatch({ name: "ADD_VARIABLE_KEY_REQUEST", rjvId: fe, data: Le }) : Ft.dispatch({ name: "VARIABLE_ADDED", rjvId: fe, data:
|
|
3634
|
+
var O = d.props, $ = O.theme, H = O.namespace, Q = O.name, ee = O.src, fe = O.rjvId, pe = O.depth;
|
|
3635
|
+
return h().createElement("span", { className: "click-to-add", style: { verticalAlign: "top", display: F ? "inline-block" : "none" } }, h().createElement(Bc, Object.assign({ className: "click-to-add-icon" }, Y($, "addVarIcon"), { onClick: /* @__PURE__ */ t(function() {
|
|
3636
|
+
var Le = { name: pe > 0 ? Q : null, namespace: H.splice(0, H.length - 1), existing_value: ee, variable_removed: !1, key_name: null };
|
|
3637
|
+
se(ee) === "object" ? Ft.dispatch({ name: "ADD_VARIABLE_KEY_REQUEST", rjvId: fe, data: Le }) : Ft.dispatch({ name: "VARIABLE_ADDED", rjvId: fe, data: S(S({}, Le), {}, { new_value: [].concat(V(ee), [null]) }) });
|
|
3638
3638
|
}, "onClick") })));
|
|
3639
3639
|
}, d.getRemoveObject = function(F) {
|
|
3640
|
-
var O = d.props, $ = O.theme, H = O.namespace,
|
|
3641
|
-
if (H.length !== 1) return h().createElement("span", { className: "click-to-remove", style: { display: F ? "inline-block" : "none" } }, h().createElement(fa, Object.assign({ className: "click-to-remove-icon" },
|
|
3642
|
-
Ft.dispatch({ name: "VARIABLE_REMOVED", rjvId: fe, data: { name:
|
|
3640
|
+
var O = d.props, $ = O.theme, H = O.namespace, Q = O.name, ee = O.src, fe = O.rjvId;
|
|
3641
|
+
if (H.length !== 1) return h().createElement("span", { className: "click-to-remove", style: { display: F ? "inline-block" : "none" } }, h().createElement(fa, Object.assign({ className: "click-to-remove-icon" }, Y($, "removeVarIcon"), { onClick: /* @__PURE__ */ t(function() {
|
|
3642
|
+
Ft.dispatch({ name: "VARIABLE_REMOVED", rjvId: fe, data: { name: Q, namespace: H.splice(0, H.length - 1), existing_value: ee, variable_removed: !0 } });
|
|
3643
3643
|
}, "onClick") })));
|
|
3644
3644
|
}, d.render = function() {
|
|
3645
|
-
var F = d.props, O = F.theme, $ = F.onDelete, H = F.onAdd,
|
|
3646
|
-
return h().createElement("div", Object.assign({},
|
|
3645
|
+
var F = d.props, O = F.theme, $ = F.onDelete, H = F.onAdd, Q = F.enableClipboard, ee = F.src, fe = F.namespace, pe = F.rowHovered;
|
|
3646
|
+
return h().createElement("div", Object.assign({}, Y(O, "object-meta-data"), { className: "object-meta-data", onClick: /* @__PURE__ */ t(function(Le) {
|
|
3647
3647
|
Le.stopPropagation();
|
|
3648
|
-
}, "onClick") }), d.getObjectSize(),
|
|
3648
|
+
}, "onClick") }), d.getObjectSize(), Q ? h().createElement(Hi, { rowHovered: pe, clickCallback: Q, src: ee, theme: O, namespace: fe }) : null, H !== !1 ? d.getAddAttribute(pe) : null, $ !== !1 ? d.getRemoveObject(pe) : null);
|
|
3649
3649
|
}, d;
|
|
3650
3650
|
}
|
|
3651
3651
|
return t(o, "t"), c(o, a), f(o);
|
|
3652
3652
|
})(h().PureComponent);
|
|
3653
3653
|
function Vi(a) {
|
|
3654
|
-
var o = a.parent_type, d = a.namespace, m = a.quotesOnKeys, z = a.theme, P = a.jsvRoot, F = a.name, O = a.displayArrayKey, $ = a.onKeyClick, H = a.name ? a.name : "",
|
|
3655
|
-
return !P || F !== !1 && F !== null ? o === "array" ? O ? h().createElement("span", Object.assign({},
|
|
3654
|
+
var o = a.parent_type, d = a.namespace, m = a.quotesOnKeys, z = a.theme, P = a.jsvRoot, F = a.name, O = a.displayArrayKey, $ = a.onKeyClick, H = a.name ? a.name : "", Q = typeof $ == "function" ? $ : null;
|
|
3655
|
+
return !P || F !== !1 && F !== null ? o === "array" ? O ? h().createElement("span", Object.assign({}, Y(z, "array-key"), { key: d, onClick: Q }), h().createElement("span", { className: "array-key" }, H), h().createElement("span", Y(z, "colon"), ":")) : h().createElement("span", null) : h().createElement("span", Object.assign({}, Y(z, "object-name"), { key: d, onClick: Q }), h().createElement("span", { className: "object-key" }, m && h().createElement("span", { style: { verticalAlign: "top" } }, '"'), h().createElement("span", null, H), m && h().createElement("span", { style: { verticalAlign: "top" } }, '"')), h().createElement("span", Y(z, "colon"), ":")) : h().createElement("span", null);
|
|
3656
3656
|
}
|
|
3657
3657
|
t(Vi, "ua");
|
|
3658
3658
|
function qi(a) {
|
|
3659
3659
|
var o = a.theme;
|
|
3660
3660
|
switch (a.iconStyle) {
|
|
3661
3661
|
case "triangle":
|
|
3662
|
-
return h().createElement($c, Object.assign({},
|
|
3662
|
+
return h().createElement($c, Object.assign({}, Y(o, "expanded-icon"), { className: "expanded-icon" }));
|
|
3663
3663
|
case "square":
|
|
3664
|
-
return h().createElement(Fc, Object.assign({},
|
|
3664
|
+
return h().createElement(Fc, Object.assign({}, Y(o, "expanded-icon"), { className: "expanded-icon" }));
|
|
3665
3665
|
default:
|
|
3666
|
-
return h().createElement(Rn, Object.assign({},
|
|
3666
|
+
return h().createElement(Rn, Object.assign({}, Y(o, "expanded-icon"), { className: "expanded-icon" }));
|
|
3667
3667
|
}
|
|
3668
3668
|
}
|
|
3669
3669
|
t(qi, "ba");
|
|
@@ -3671,11 +3671,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3671
3671
|
var o = a.theme;
|
|
3672
3672
|
switch (a.iconStyle) {
|
|
3673
3673
|
case "triangle":
|
|
3674
|
-
return h().createElement(jc, Object.assign({},
|
|
3674
|
+
return h().createElement(jc, Object.assign({}, Y(o, "collapsed-icon"), { className: "collapsed-icon" }));
|
|
3675
3675
|
case "square":
|
|
3676
|
-
return h().createElement(Lc, Object.assign({},
|
|
3676
|
+
return h().createElement(Lc, Object.assign({}, Y(o, "collapsed-icon"), { className: "collapsed-icon" }));
|
|
3677
3677
|
default:
|
|
3678
|
-
return h().createElement(ha, Object.assign({},
|
|
3678
|
+
return h().createElement(ha, Object.assign({}, Y(o, "collapsed-icon"), { className: "collapsed-icon" }));
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
3681
|
t(Ki, "da");
|
|
@@ -3697,15 +3697,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3697
3697
|
var m = this.props, z = m.theme, P = m.iconStyle;
|
|
3698
3698
|
return this.state.expanded[d] ? h().createElement(qi, { theme: z, iconStyle: P }) : h().createElement(Ki, { theme: z, iconStyle: P });
|
|
3699
3699
|
}, "value") }, { key: "render", value: /* @__PURE__ */ t(function() {
|
|
3700
|
-
var d = this, m = this.props, z = m.src, P = m.groupArraysAfterLength, F = (m.depth, m.name), O = m.theme, $ = m.jsvRoot, H = m.namespace,
|
|
3700
|
+
var d = this, m = this.props, z = m.src, P = m.groupArraysAfterLength, F = (m.depth, m.name), O = m.theme, $ = m.jsvRoot, H = m.namespace, Q = q(m, Hc), ee = 0, fe = 5 * this.props.indentWidth;
|
|
3701
3701
|
$ || (ee = 5 * this.props.indentWidth);
|
|
3702
3702
|
var pe = P, Le = Math.ceil(z.length / pe);
|
|
3703
|
-
return h().createElement("div", Object.assign({ className: "object-key-val" },
|
|
3704
|
-
return h().createElement("div", Object.assign({ key: me, className: "object-key-val array-group" },
|
|
3703
|
+
return h().createElement("div", Object.assign({ className: "object-key-val" }, Y(O, $ ? "jsv-root" : "objectKeyVal", { paddingLeft: ee })), h().createElement(Vi, Object.assign({}, this.props, { onKeyClick: this.handleKeySelect })), h().createElement("span", null, h().createElement(Ui, Object.assign({ size: z.length }, this.props))), V(Array(Le)).map(function(He, me) {
|
|
3704
|
+
return h().createElement("div", Object.assign({ key: me, className: "object-key-val array-group" }, Y(O, "objectKeyVal", { marginLeft: 6, paddingLeft: fe })), h().createElement("span", Y(O, "brace-row"), h().createElement("div", Object.assign({ className: "icon-container" }, Y(O, "icon-container"), { onClick: /* @__PURE__ */ t(function(Pe) {
|
|
3705
3705
|
d.toggleCollapsed(me);
|
|
3706
|
-
}, "onClick") }), d.getExpandedIcon(me)), d.state.expanded[me] ? h().createElement(ho, Object.assign({ key: F + me, depth: 0, name: !1, collapsed: !1, groupArraysAfterLength: pe, index_offset: me * pe, src: z.slice(me * pe, me * pe + pe), namespace: H, type: "array", parent_type: "array_group", theme: O, showComma: d.props.showComma, isLast: me === Le - 1 },
|
|
3706
|
+
}, "onClick") }), d.getExpandedIcon(me)), d.state.expanded[me] ? h().createElement(ho, Object.assign({ key: F + me, depth: 0, name: !1, collapsed: !1, groupArraysAfterLength: pe, index_offset: me * pe, src: z.slice(me * pe, me * pe + pe), namespace: H, type: "array", parent_type: "array_group", theme: O, showComma: d.props.showComma, isLast: me === Le - 1 }, Q)) : h().createElement("span", Object.assign({}, Y(O, "brace"), { onClick: /* @__PURE__ */ t(function(Pe) {
|
|
3707
3707
|
d.toggleCollapsed(me);
|
|
3708
|
-
}, "onClick"), className: "array-group-brace" }), "[", h().createElement("div", Object.assign({},
|
|
3708
|
+
}, "onClick"), className: "array-group-brace" }), "[", h().createElement("div", Object.assign({}, Y(O, "array-group-meta-data"), { className: "array-group-meta-data" }), h().createElement("span", Object.assign({ className: "object-size" }, Y(O, "object-size")), me * pe, " - ", me * pe + pe - 1 > z.length ? z.length - 1 : me * pe + pe - 1)), "]")));
|
|
3709
3709
|
}));
|
|
3710
3710
|
}, "value") }]);
|
|
3711
3711
|
})(h().PureComponent), Uc = ["depth", "src", "namespace", "name", "type", "parent_type", "theme", "jsvRoot", "iconStyle", "showComma", "isLast"], ma = (function(a) {
|
|
@@ -3716,24 +3716,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3716
3716
|
at.set(m.props.rjvId, m.props.namespace, "expanded", m.state.expanded);
|
|
3717
3717
|
});
|
|
3718
3718
|
}, m.handleKeySelect = function() {
|
|
3719
|
-
var P = m.props, F = P.name, O = P.namespace, $ = P.onSelect, H = P.src,
|
|
3719
|
+
var P = m.props, F = P.name, O = P.namespace, $ = P.onSelect, H = P.src, Q = m.state.object_type;
|
|
3720
3720
|
if (typeof $ == "function") {
|
|
3721
3721
|
var ee = V(O);
|
|
3722
|
-
ee.shift(), ee.length > 0 && ee.pop(), $({ name: F, value: H, type:
|
|
3722
|
+
ee.shift(), ee.length > 0 && ee.pop(), $({ name: F, value: H, type: Q, namespace: ee });
|
|
3723
3723
|
}
|
|
3724
3724
|
}, m.getObjectContent = function(P, F, O) {
|
|
3725
|
-
return h().createElement("div", { className: "pushed-content object-container" }, h().createElement("div", Object.assign({ className: "object-content" },
|
|
3725
|
+
return h().createElement("div", { className: "pushed-content object-container" }, h().createElement("div", Object.assign({ className: "object-content" }, Y(m.props.theme, "pushed-content")), m.renderObjectContents(F, O)));
|
|
3726
3726
|
}, m.getEllipsis = function() {
|
|
3727
|
-
return m.state.size === 0 ? null : h().createElement("div", Object.assign({},
|
|
3727
|
+
return m.state.size === 0 ? null : h().createElement("div", Object.assign({}, Y(m.props.theme, "ellipsis"), { className: "node-ellipsis", onClick: m.handleToggleCollapsed }), "...");
|
|
3728
3728
|
}, m.getObjectMetaData = function(P) {
|
|
3729
3729
|
var F = m.state, O = F.size, $ = F.hovered;
|
|
3730
3730
|
return h().createElement(Ui, Object.assign({ rowHovered: $, size: O }, m.props));
|
|
3731
3731
|
}, m.renderObjectContents = function(P, F) {
|
|
3732
|
-
var O, $ = m.props, H = $.depth,
|
|
3732
|
+
var O, $ = m.props, H = $.depth, Q = $.parent_type, ee = $.index_offset, fe = $.groupArraysAfterLength, pe = $.namespace, Le = $.showComma, He = m.state.object_type, me = [], Pe = Object.keys(P || {});
|
|
3733
3733
|
return m.props.sortKeys && He !== "array" && (Pe = Pe.sort()), Pe.forEach(function(Ue, Fe) {
|
|
3734
3734
|
O = new Vc(Ue, P[Ue], F.bigNumber);
|
|
3735
3735
|
var jt = Fe === Pe.length - 1;
|
|
3736
|
-
if (
|
|
3736
|
+
if (Q === "array_group" && ee && (O.name = parseInt(O.name, 10) + ee), Object.prototype.hasOwnProperty.call(P, Ue) && O.type.toLowerCase() !== "window") if (m.isCircularReference(O)) me.push(h().createElement(J, Object.assign({ key: O.name, depth: H + 1, name: O.name, src: O.value, namespace: pe.concat(O.name), type: "array", parent_type: He, isLast: jt, showComma: Le, singleIndent: 5, indentWidth: m.props.indentWidth }, F)));
|
|
3737
3737
|
else if (O.type === "object") me.push(h().createElement(ho, Object.assign({ key: O.name, depth: H + 1, name: O.name, src: O.value, namespace: pe.concat(O.name), parent_type: He, isLast: jt, showComma: Le, listOfAncestors: m.listOfAncestors.concat([m.props.src]) }, F)));
|
|
3738
3738
|
else if (O.type === "array") {
|
|
3739
3739
|
var Rt = ho;
|
|
@@ -3742,25 +3742,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3742
3742
|
}), me;
|
|
3743
3743
|
};
|
|
3744
3744
|
var z = o.getState(d);
|
|
3745
|
-
return m.state =
|
|
3745
|
+
return m.state = S(S({}, z), {}, { prevProps: {} }), m.listOfAncestors = Array.from(m.props.listOfAncestors || []), m.listOfAncestors.push(d.src), m;
|
|
3746
3746
|
}
|
|
3747
3747
|
return t(o, "t"), c(o, a), f(o, [{ key: "getBraceStart", value: /* @__PURE__ */ t(function(d, m) {
|
|
3748
3748
|
var z = this.props, P = z.theme, F = z.iconStyle;
|
|
3749
|
-
if (z.parent_type === "array_group") return h().createElement("span", null, h().createElement("span",
|
|
3749
|
+
if (z.parent_type === "array_group") return h().createElement("span", null, h().createElement("span", Y(P, "brace"), d === "array" ? "[" : "{"));
|
|
3750
3750
|
var O = m ? qi : Ki;
|
|
3751
|
-
return h().createElement("span", null, h().createElement("span", Object.assign({ onClick: this.handleToggleCollapsed },
|
|
3751
|
+
return h().createElement("span", null, h().createElement("span", Object.assign({ onClick: this.handleToggleCollapsed }, Y(P, "brace-row")), h().createElement("div", Object.assign({ className: "icon-container" }, Y(P, "icon-container")), h().createElement(O, { theme: P, iconStyle: F })), h().createElement(Vi, Object.assign({}, this.props, { onKeyClick: this.handleKeySelect })), h().createElement("span", Y(P, "brace"), d === "array" ? "[" : "{")));
|
|
3752
3752
|
}, "value") }, { key: "isCircularReference", value: /* @__PURE__ */ t(function(d) {
|
|
3753
3753
|
return this.listOfAncestors.indexOf(d.value) > -1 || d.value === this.props.src;
|
|
3754
3754
|
}, "value") }, { key: "render", value: /* @__PURE__ */ t(function() {
|
|
3755
|
-
var d = this, m = this.props, z = m.depth, P = m.src, F = (m.namespace, m.name, m.type, m.parent_type), O = m.theme, $ = m.jsvRoot, H = m.iconStyle,
|
|
3755
|
+
var d = this, m = this.props, z = m.depth, P = m.src, F = (m.namespace, m.name, m.type, m.parent_type), O = m.theme, $ = m.jsvRoot, H = m.iconStyle, Q = m.showComma, ee = m.isLast, fe = q(m, Uc), pe = this.state, Le = pe.object_type, He = pe.expanded, me = {};
|
|
3756
3756
|
return $ || F === "array_group" ? F === "array_group" && (me.borderLeft = 0, me.display = "inline") : me.paddingLeft = 5 * this.props.indentWidth, h().createElement("div", Object.assign({ className: "object-key-val", onMouseEnter: /* @__PURE__ */ t(function() {
|
|
3757
|
-
return d.setState(
|
|
3757
|
+
return d.setState(S(S({}, d.state), {}, { hovered: !0 }));
|
|
3758
3758
|
}, "onMouseEnter"), onMouseLeave: /* @__PURE__ */ t(function() {
|
|
3759
|
-
return d.setState(
|
|
3760
|
-
}, "onMouseLeave") },
|
|
3759
|
+
return d.setState(S(S({}, d.state), {}, { hovered: !1 }));
|
|
3760
|
+
}, "onMouseLeave") }, Y(O, $ ? "jsv-root" : "objectKeyVal", me)), this.getBraceStart(Le, He), He ? this.getObjectContent(z, P, S({ theme: O, iconStyle: H }, fe)) : this.getEllipsis(), h().createElement("span", { className: "brace-row" }, h().createElement("span", { style: S(S({}, Y(O, "brace").style), {}, { paddingLeft: He ? "3px" : "0px" }) }, Le === "array" ? "]" : "}")), Q && !ee && !$ && h().createElement("span", Y(O, "comma"), ","), this.getObjectMetaData(P));
|
|
3761
3761
|
}, "value") }], [{ key: "getDerivedStateFromProps", value: /* @__PURE__ */ t(function(d, m) {
|
|
3762
3762
|
var z = m.prevProps;
|
|
3763
|
-
return d.src !== z.src || d.collapsed !== z.collapsed || d.name !== z.name || d.namespace !== z.namespace || d.rjvId !== z.rjvId ?
|
|
3763
|
+
return d.src !== z.src || d.collapsed !== z.collapsed || d.name !== z.name || d.namespace !== z.namespace || d.rjvId !== z.rjvId ? S(S({}, o.getState(d)), {}, { prevProps: d }) : null;
|
|
3764
3764
|
}, "value") }]);
|
|
3765
3765
|
})(h().PureComponent);
|
|
3766
3766
|
ma.getState = function(a) {
|
|
@@ -3778,8 +3778,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3778
3778
|
w(this, o);
|
|
3779
3779
|
for (var m = arguments.length, z = new Array(m), P = 0; P < m; P++) z[P] = arguments[P];
|
|
3780
3780
|
return (d = p(this, o, [].concat(z))).render = function() {
|
|
3781
|
-
var F, O, $, H,
|
|
3782
|
-
return typeof
|
|
3781
|
+
var F, O, $, H, Q = d.props, ee = [Q.name], fe = ho;
|
|
3782
|
+
return typeof Q.name != "object" || Array.isArray(Q.name) || (ee = [((F = Q.name) === null || F === void 0 ? void 0 : F.displayName) || ((O = Q.name) === null || O === void 0 ? void 0 : O.name) || (($ = Q.name) === null || $ === void 0 || (H = $.type) === null || H === void 0 ? void 0 : H.name) || "Anonymous"]), Array.isArray(Q.src) && Q.groupArraysAfterLength && Q.src.length > Q.groupArraysAfterLength && (fe = Gi), h().createElement("div", { className: "pretty-json-container object-container" }, h().createElement("div", { className: "object-content" }, h().createElement(fe, Object.assign({ namespace: ee, depth: 0, jsvRoot: !0 }, Q))));
|
|
3783
3783
|
}, d;
|
|
3784
3784
|
}
|
|
3785
3785
|
return t(o, "t"), c(o, a), f(o);
|
|
@@ -3794,15 +3794,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3794
3794
|
}
|
|
3795
3795
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3796
3796
|
var d = this, m = this.props, z = m.theme, P = m.rjvId, F = m.isValid, O = this.state.input, $ = F(O);
|
|
3797
|
-
return h().createElement("div", Object.assign({ className: "key-modal-request" },
|
|
3797
|
+
return h().createElement("div", Object.assign({ className: "key-modal-request" }, Y(z, "key-modal-request"), { onClick: this.handleCloseModal }), h().createElement("div", Object.assign({}, Y(z, "key-modal"), { onClick: /* @__PURE__ */ t(function(H) {
|
|
3798
3798
|
H.stopPropagation();
|
|
3799
|
-
}, "onClick") }), h().createElement("div",
|
|
3799
|
+
}, "onClick") }), h().createElement("div", Y(z, "key-modal-label"), "Key Name:"), h().createElement("div", { style: { position: "relative" } }, h().createElement("input", Object.assign({}, Y(z, "key-modal-input"), { className: "key-modal-input", ref: /* @__PURE__ */ t(function(H) {
|
|
3800
3800
|
return H && H.focus();
|
|
3801
3801
|
}, "ref"), spellCheck: !1, value: O, placeholder: "...", onChange: /* @__PURE__ */ t(function(H) {
|
|
3802
3802
|
d.setState({ input: H.target.value });
|
|
3803
3803
|
}, "onChange"), onKeyPress: /* @__PURE__ */ t(function(H) {
|
|
3804
3804
|
$ && H.key === "Enter" ? d.handleSubmit() : H.key === "Escape" && d.handleCloseModal();
|
|
3805
|
-
}, "onKeyPress") })), $ ? h().createElement(ga, Object.assign({},
|
|
3805
|
+
}, "onKeyPress") })), $ ? h().createElement(ga, Object.assign({}, Y(z, "key-modal-submit"), { className: "key-modal-submit", onClick: this.handleSubmit })) : null), h().createElement("span", Y(z, "key-modal-cancel"), h().createElement(Ni, Object.assign({}, Y(z, "key-modal-cancel-icon"), { className: "key-modal-cancel", onClick: /* @__PURE__ */ t(function() {
|
|
3806
3806
|
Ft.dispatch({ rjvId: P, name: "RESET" });
|
|
3807
3807
|
}, "onClick") })))));
|
|
3808
3808
|
}, "value") }]);
|
|
@@ -3816,7 +3816,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3816
3816
|
return F !== "" && Object.keys($.existing_value).indexOf(F) === -1;
|
|
3817
3817
|
}, d.submit = function(F) {
|
|
3818
3818
|
var O = d.props.rjvId, $ = at.get(O, "action", "new-key-request");
|
|
3819
|
-
$.new_value =
|
|
3819
|
+
$.new_value = S({}, $.existing_value), $.new_value[F] = d.props.defaultValue, Ft.dispatch({ name: "VARIABLE_ADDED", rjvId: O, data: $ });
|
|
3820
3820
|
}, d;
|
|
3821
3821
|
}
|
|
3822
3822
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
@@ -3829,9 +3829,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3829
3829
|
}
|
|
3830
3830
|
return t(o, "t"), c(o, a), f(o, [{ key: "render", value: /* @__PURE__ */ t(function() {
|
|
3831
3831
|
var d = this.props, m = d.message, z = d.active, P = d.theme, F = d.rjvId;
|
|
3832
|
-
return z ? h().createElement("div", Object.assign({ className: "validation-failure" },
|
|
3832
|
+
return z ? h().createElement("div", Object.assign({ className: "validation-failure" }, Y(P, "validation-failure"), { onClick: /* @__PURE__ */ t(function() {
|
|
3833
3833
|
Ft.dispatch({ rjvId: F, name: "RESET" });
|
|
3834
|
-
}, "onClick") }), h().createElement("span",
|
|
3834
|
+
}, "onClick") }), h().createElement("span", Y(P, "validation-failure-label"), m), h().createElement(Ni, Y(P, "validation-failure-clear"))) : null;
|
|
3835
3835
|
}, "value") }]);
|
|
3836
3836
|
})(h().PureComponent), fo = (function(a) {
|
|
3837
3837
|
function o(d) {
|
|
@@ -3839,7 +3839,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3839
3839
|
return w(this, o), (m = p(this, o, [d])).rjvId = Date.now().toString() + Math.random().toString(36).slice(2), m.getListeners = function() {
|
|
3840
3840
|
return { reset: m.resetState, "variable-update": m.updateSrc, "add-key-request": m.addKeyRequest };
|
|
3841
3841
|
}, m.updateSrc = function() {
|
|
3842
|
-
var z, P = at.get(m.rjvId, "action", "variable-update"), F = P.name, O = P.namespace, $ = P.new_value, H = P.existing_value,
|
|
3842
|
+
var z, P = at.get(m.rjvId, "action", "variable-update"), F = P.name, O = P.namespace, $ = P.new_value, H = P.existing_value, Q = P.updated_src, ee = P.type, fe = m.props, pe = fe.onEdit, Le = fe.onDelete, He = fe.onAdd, me = { existing_src: m.state.src, new_value: $, updated_src: Q, name: F, namespace: O, existing_value: H };
|
|
3843
3843
|
switch (ee) {
|
|
3844
3844
|
case "variable-added":
|
|
3845
3845
|
z = He(me);
|
|
@@ -3850,7 +3850,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3850
3850
|
case "variable-removed":
|
|
3851
3851
|
z = Le(me);
|
|
3852
3852
|
}
|
|
3853
|
-
z !== !1 ? (at.set(m.rjvId, "global", "src",
|
|
3853
|
+
z !== !1 ? (at.set(m.rjvId, "global", "src", Q), m.setState({ src: Q })) : m.setState({ validationFailure: !0 });
|
|
3854
3854
|
}, m.addKeyRequest = function() {
|
|
3855
3855
|
m.setState({ addKeyRequest: !0 });
|
|
3856
3856
|
}, m.resetState = function() {
|
|
@@ -3868,8 +3868,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3868
3868
|
var d = this.getListeners();
|
|
3869
3869
|
for (var m in d) at.removeListener(m + "-" + this.rjvId, d[m]);
|
|
3870
3870
|
}, "value") }, { key: "render", value: /* @__PURE__ */ t(function() {
|
|
3871
|
-
var d = this.state, m = d.validationFailure, z = d.validationMessage, P = d.addKeyRequest, F = d.theme, O = d.src, $ = d.name, H = this.props,
|
|
3872
|
-
return h().createElement("div", { className: "react-json-view", style:
|
|
3871
|
+
var d = this.state, m = d.validationFailure, z = d.validationMessage, P = d.addKeyRequest, F = d.theme, O = d.src, $ = d.name, H = this.props, Q = H.style, ee = H.defaultValue;
|
|
3872
|
+
return h().createElement("div", { className: "react-json-view", style: S(S({}, Y(F, "app-container").style), Q) }, h().createElement(Jc, { message: z, active: m, theme: F, rjvId: this.rjvId }), h().createElement(qc, Object.assign({}, this.props, { src: O, name: $, theme: F, type: se(O), rjvId: this.rjvId })), h().createElement(Gc, { active: P, theme: F, rjvId: this.rjvId, defaultValue: ee }));
|
|
3873
3873
|
}, "value") }], [{ key: "getDerivedStateFromProps", value: /* @__PURE__ */ t(function(d, m) {
|
|
3874
3874
|
if (d.src !== m.prevSrc || d.name !== m.prevName || d.theme !== m.prevTheme) {
|
|
3875
3875
|
var z = { src: d.src, name: d.name, theme: d.theme, validationMessage: d.validationMessage, prevSrc: d.src, prevName: d.name, prevTheme: d.theme };
|
|
@@ -3889,7 +3889,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3889
3889
|
return !0;
|
|
3890
3890
|
}
|
|
3891
3891
|
return !1;
|
|
3892
|
-
})(a.theme) || (console.error("react-json-view error:", "theme prop must be a theme name or valid base-16 theme object.", 'defaulting to "rjv-default" theme'), o.theme = "rjv-default"), se(a.src) !== "object" && se(a.src) !== "array" && (console.error("react-json-view error:", "src property must be a valid json object"), o.name = "ERROR", o.src = { message: "src property must be a valid json object" }),
|
|
3892
|
+
})(a.theme) || (console.error("react-json-view error:", "theme prop must be a theme name or valid base-16 theme object.", 'defaulting to "rjv-default" theme'), o.theme = "rjv-default"), se(a.src) !== "object" && se(a.src) !== "array" && (console.error("react-json-view error:", "src property must be a valid json object"), o.name = "ERROR", o.src = { message: "src property must be a valid json object" }), S(S({}, a), o);
|
|
3893
3893
|
}, N(fo);
|
|
3894
3894
|
const Yc = fo;
|
|
3895
3895
|
})(), y;
|
|
@@ -3922,13 +3922,13 @@ function ys(e) {
|
|
|
3922
3922
|
}
|
|
3923
3923
|
t(ys, "a11yProps");
|
|
3924
3924
|
const Ap = /* @__PURE__ */ t(({ open: e, onClose: r }) => {
|
|
3925
|
-
const i = xe((v) => v.session), s = xe((v) => v.setSession), [u, l] = G(0), [y, b] = G(null), [E,
|
|
3925
|
+
const i = xe((v) => v.session), s = xe((v) => v.setSession), [u, l] = G(0), [y, b] = G(null), [E, k] = G(1);
|
|
3926
3926
|
de(() => {
|
|
3927
3927
|
e && b(null);
|
|
3928
3928
|
}, [e]);
|
|
3929
3929
|
const _ = /* @__PURE__ */ t((v, g) => {
|
|
3930
3930
|
l(g);
|
|
3931
|
-
}, "handleTabChange"),
|
|
3931
|
+
}, "handleTabChange"), S = /* @__PURE__ */ t((v) => {
|
|
3932
3932
|
b(v.updated_src);
|
|
3933
3933
|
}, "handleJsonEdit"), w = /* @__PURE__ */ t(() => {
|
|
3934
3934
|
y && s({ ...y, interactions: [...y.interactions ?? []] }), b(null), r();
|
|
@@ -3968,7 +3968,7 @@ ${c || "No response available"}
|
|
|
3968
3968
|
/* @__PURE__ */ n(Wa, { children: /* @__PURE__ */ n(Er, { onClick: w, children: "Close" }) })
|
|
3969
3969
|
] });
|
|
3970
3970
|
function x(v, g, p) {
|
|
3971
|
-
|
|
3971
|
+
k(g);
|
|
3972
3972
|
}
|
|
3973
3973
|
return t(x, "handleSliderChange"), /* @__PURE__ */ M(
|
|
3974
3974
|
ja,
|
|
@@ -4031,9 +4031,9 @@ ${c || "No response available"}
|
|
|
4031
4031
|
displayDataTypes: !1,
|
|
4032
4032
|
displayObjectSize: !0,
|
|
4033
4033
|
enableClipboard: !0,
|
|
4034
|
-
onEdit:
|
|
4035
|
-
onAdd:
|
|
4036
|
-
onDelete:
|
|
4034
|
+
onEdit: S,
|
|
4035
|
+
onAdd: S,
|
|
4036
|
+
onDelete: S,
|
|
4037
4037
|
style: {
|
|
4038
4038
|
backgroundColor: "transparent",
|
|
4039
4039
|
fontSize: "12px"
|
|
@@ -4123,12 +4123,12 @@ ${c || "No response available"}
|
|
|
4123
4123
|
}, [i, r]);
|
|
4124
4124
|
const E = Te((f) => {
|
|
4125
4125
|
u(f.currentTarget);
|
|
4126
|
-
}, []),
|
|
4126
|
+
}, []), k = Te(() => u(null), []), _ = Te(
|
|
4127
4127
|
(f) => {
|
|
4128
4128
|
e(f.promptText, f.promptJson), u(null);
|
|
4129
4129
|
},
|
|
4130
4130
|
[e]
|
|
4131
|
-
),
|
|
4131
|
+
), S = Te(() => {
|
|
4132
4132
|
r.clearAllPrompts(), y([]);
|
|
4133
4133
|
}, [r]), w = Ce(() => l.slice(0, Ea), [l]);
|
|
4134
4134
|
if (l.length === 0) return null;
|
|
@@ -4154,7 +4154,7 @@ ${c || "No response available"}
|
|
|
4154
4154
|
{
|
|
4155
4155
|
open: A,
|
|
4156
4156
|
anchorEl: s,
|
|
4157
|
-
onClose:
|
|
4157
|
+
onClose: k,
|
|
4158
4158
|
anchorOrigin: { vertical: "top", horizontal: "left" },
|
|
4159
4159
|
transformOrigin: { vertical: "bottom", horizontal: "left" },
|
|
4160
4160
|
slotProps: {
|
|
@@ -4204,7 +4204,7 @@ ${c || "No response available"}
|
|
|
4204
4204
|
Zt,
|
|
4205
4205
|
{
|
|
4206
4206
|
size: "small",
|
|
4207
|
-
onClick:
|
|
4207
|
+
onClick: S,
|
|
4208
4208
|
startIcon: /* @__PURE__ */ n(bl, { size: 12 }),
|
|
4209
4209
|
sx: /* @__PURE__ */ t((f) => ({
|
|
4210
4210
|
fontSize: 10,
|
|
@@ -4428,14 +4428,14 @@ function Ro({
|
|
|
4428
4428
|
locationLabel: y = "Locais",
|
|
4429
4429
|
hotelLabel: b = "Hotéis",
|
|
4430
4430
|
touch: E = !1,
|
|
4431
|
-
emptyLabel:
|
|
4431
|
+
emptyLabel: k,
|
|
4432
4432
|
keyHints: _ = !1,
|
|
4433
|
-
queryEcho:
|
|
4433
|
+
queryEcho: S,
|
|
4434
4434
|
slotLabel: w,
|
|
4435
4435
|
trailingNote: A,
|
|
4436
4436
|
sx: f
|
|
4437
4437
|
}) {
|
|
4438
|
-
const x = te(null), v = { person: l, location: y, hotel: b }, g = E ? !!w : _ ||
|
|
4438
|
+
const x = te(null), v = { person: l, location: y, hotel: b }, g = E ? !!w : _ || S !== void 0, p = te(null);
|
|
4439
4439
|
de(() => {
|
|
4440
4440
|
var C;
|
|
4441
4441
|
(C = p.current) == null || C.scrollIntoView({ block: "nearest" });
|
|
@@ -4502,7 +4502,7 @@ function Ro({
|
|
|
4502
4502
|
textOverflow: "ellipsis",
|
|
4503
4503
|
whiteSpace: "nowrap",
|
|
4504
4504
|
...E ? { fontSize: 12, fontWeight: 600, letterSpacing: 0.4, textTransform: "uppercase" } : null
|
|
4505
|
-
}), "sx"), children: E ? w :
|
|
4505
|
+
}), "sx"), children: E ? w : S }),
|
|
4506
4506
|
_ && !E && /* @__PURE__ */ n(D, { "aria-hidden": !0, component: "span", sx: /* @__PURE__ */ t((C) => ({ color: C.palette.text.disabled, flex: "0 0 auto" }), "sx"), children: "↑↓ navegar · ↵ escolher" })
|
|
4507
4507
|
]
|
|
4508
4508
|
}
|
|
@@ -4527,7 +4527,7 @@ function Ro({
|
|
|
4527
4527
|
]
|
|
4528
4528
|
}
|
|
4529
4529
|
),
|
|
4530
|
-
!u && e.length === 0 &&
|
|
4530
|
+
!u && e.length === 0 && k && /* @__PURE__ */ n(ne, { sx: /* @__PURE__ */ t((C) => ({ px: 1.5, py: 2, fontSize: 13, color: C.palette.text.disabled, textAlign: "center" }), "sx"), children: k }),
|
|
4531
4531
|
e.map((C, h) => {
|
|
4532
4532
|
const R = vs(C, v), L = R !== void 0 && R !== vs(e[h - 1], v), W = h === r;
|
|
4533
4533
|
return /* @__PURE__ */ M(ht.Fragment, { children: [
|
|
@@ -4723,31 +4723,31 @@ function Pl({ kind: e, onAccept: r, compact: i = !1, midSentence: s = !1, fontSi
|
|
|
4723
4723
|
tabIndex: -1,
|
|
4724
4724
|
"aria-label": `${s ? y : E} — ${l ? "toque para inserir" : "Tab para inserir"}`,
|
|
4725
4725
|
"data-mid-sentence": s || void 0,
|
|
4726
|
-
onMouseDown: /* @__PURE__ */ t((
|
|
4727
|
-
|
|
4726
|
+
onMouseDown: /* @__PURE__ */ t((k) => {
|
|
4727
|
+
k.preventDefault(), r();
|
|
4728
4728
|
}, "onMouseDown"),
|
|
4729
|
-
sx: /* @__PURE__ */ t((
|
|
4729
|
+
sx: /* @__PURE__ */ t((k) => ({
|
|
4730
4730
|
display: "inline-flex",
|
|
4731
4731
|
alignItems: "center",
|
|
4732
4732
|
gap: 0.75,
|
|
4733
4733
|
cursor: "pointer",
|
|
4734
4734
|
userSelect: "none",
|
|
4735
4735
|
whiteSpace: "nowrap",
|
|
4736
|
-
color:
|
|
4736
|
+
color: k.palette.text.disabled,
|
|
4737
4737
|
fontStyle: "italic",
|
|
4738
4738
|
fontSize: u,
|
|
4739
4739
|
lineHeight: 1,
|
|
4740
4740
|
...s && {
|
|
4741
4741
|
// Nearly opaque (90%): enough that the covered word cannot be read through it, a hint of it
|
|
4742
4742
|
// left so the card still reads as sitting ON the line rather than cut out of it (Ciro's tuning).
|
|
4743
|
-
backgroundColor: ye(
|
|
4744
|
-
border: `1px solid ${
|
|
4743
|
+
backgroundColor: ye(k.palette.background.paper, 0.9),
|
|
4744
|
+
border: `1px solid ${k.palette.divider}`,
|
|
4745
4745
|
borderRadius: 1,
|
|
4746
4746
|
px: 0,
|
|
4747
4747
|
py: "2px",
|
|
4748
4748
|
// Pull the card back onto the caret so the padding does not push the "@" past the slot.
|
|
4749
4749
|
ml: "3px",
|
|
4750
|
-
boxShadow:
|
|
4750
|
+
boxShadow: k.shadows[1]
|
|
4751
4751
|
}
|
|
4752
4752
|
}), "sx"),
|
|
4753
4753
|
children: [
|
|
@@ -4756,13 +4756,13 @@ function Pl({ kind: e, onAccept: r, compact: i = !1, midSentence: s = !1, fontSi
|
|
|
4756
4756
|
D,
|
|
4757
4757
|
{
|
|
4758
4758
|
component: "span",
|
|
4759
|
-
sx: /* @__PURE__ */ t((
|
|
4759
|
+
sx: /* @__PURE__ */ t((k) => ({
|
|
4760
4760
|
fontStyle: "normal",
|
|
4761
4761
|
fontSize: 12,
|
|
4762
4762
|
py: "1px",
|
|
4763
4763
|
pr: 1,
|
|
4764
4764
|
borderRadius: 0.5,
|
|
4765
|
-
color:
|
|
4765
|
+
color: k.palette.text.disabled
|
|
4766
4766
|
}), "sx"),
|
|
4767
4767
|
children: l ? "toque" : "Tab"
|
|
4768
4768
|
}
|
|
@@ -4783,9 +4783,9 @@ function Fl({
|
|
|
4783
4783
|
personLabel: y,
|
|
4784
4784
|
locationLabel: b,
|
|
4785
4785
|
hotelLabel: E,
|
|
4786
|
-
emptyLabel:
|
|
4786
|
+
emptyLabel: k = "Nada encontrado",
|
|
4787
4787
|
slotLabel: _,
|
|
4788
|
-
maxHeightVh:
|
|
4788
|
+
maxHeightVh: S = 75,
|
|
4789
4789
|
bottomInset: w = 0
|
|
4790
4790
|
}) {
|
|
4791
4791
|
const [A, f] = G(null), x = Te(() => {
|
|
@@ -4823,7 +4823,7 @@ function Fl({
|
|
|
4823
4823
|
// a three-airport list has no business filling the screen. The ceiling is the SMALLER of
|
|
4824
4824
|
// `maxHeightVh` and the room this placement actually has, so the last row stays clear of
|
|
4825
4825
|
// anything the host has fixed down there (`bottomInset`) plus the home indicator.
|
|
4826
|
-
maxHeight: `min(${
|
|
4826
|
+
maxHeight: `min(${S}dvh, ${Math.max(0, Math.round(A.maxH))}px)`,
|
|
4827
4827
|
zIndex: v.zIndex.modal,
|
|
4828
4828
|
display: "flex",
|
|
4829
4829
|
flexDirection: "column",
|
|
@@ -4841,7 +4841,7 @@ function Fl({
|
|
|
4841
4841
|
personLabel: y,
|
|
4842
4842
|
locationLabel: b,
|
|
4843
4843
|
hotelLabel: E,
|
|
4844
|
-
emptyLabel:
|
|
4844
|
+
emptyLabel: k,
|
|
4845
4845
|
slotLabel: _,
|
|
4846
4846
|
touch: !0,
|
|
4847
4847
|
sx: /* @__PURE__ */ t((v) => ({
|
|
@@ -4892,7 +4892,7 @@ const ws = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], k
|
|
|
4892
4892
|
onClose: r,
|
|
4893
4893
|
onApply: i
|
|
4894
4894
|
}) => {
|
|
4895
|
-
const s = te(null), u = te(null), l = te([]), y = te(null), [b, E] = G(!1), [
|
|
4895
|
+
const s = te(null), u = te(null), l = te([]), y = te(null), [b, E] = G(!1), [k, _] = G(ws[0]), [S, w] = G(ks[1].value), [A, f] = G(0), [x, v] = G(!1), g = te(null), [p, I] = G(Sr), [c, C] = G({ w: 0, h: 0 }), [h, R] = G(() => ({
|
|
4896
4896
|
w: typeof window > "u" ? 1024 : window.innerWidth,
|
|
4897
4897
|
h: typeof window > "u" ? 768 : window.innerHeight
|
|
4898
4898
|
})), L = te(null), W = te(null), N = A > 0, Z = Ce(
|
|
@@ -4919,7 +4919,7 @@ const ws = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], k
|
|
|
4919
4919
|
const U = /* @__PURE__ */ t(() => R({ w: window.innerWidth, h: window.innerHeight }), "onResize");
|
|
4920
4920
|
return window.addEventListener("resize", U), () => window.removeEventListener("resize", U);
|
|
4921
4921
|
}, [e]);
|
|
4922
|
-
const
|
|
4922
|
+
const J = Te(() => {
|
|
4923
4923
|
const U = s.current, le = u.current;
|
|
4924
4924
|
if (!U || !le) return;
|
|
4925
4925
|
U.width = le.naturalWidth, U.height = le.naturalHeight;
|
|
@@ -4948,8 +4948,8 @@ const ws = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], k
|
|
|
4948
4948
|
U = !0;
|
|
4949
4949
|
};
|
|
4950
4950
|
}, [e == null ? void 0 : e.id, e == null ? void 0 : e.dataUrl]), de(() => {
|
|
4951
|
-
x &&
|
|
4952
|
-
}, [x,
|
|
4951
|
+
x && J();
|
|
4952
|
+
}, [x, J]);
|
|
4953
4953
|
const ve = /* @__PURE__ */ t(() => {
|
|
4954
4954
|
const U = s.current;
|
|
4955
4955
|
if (!U) return 1;
|
|
@@ -4986,12 +4986,12 @@ const ws = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], k
|
|
|
4986
4986
|
}
|
|
4987
4987
|
const We = {
|
|
4988
4988
|
type: "stroke",
|
|
4989
|
-
color:
|
|
4989
|
+
color: k,
|
|
4990
4990
|
// `canvasScale()` shrinks as the user zooms in, so the ×zoom
|
|
4991
4991
|
// puts the width back in "fit" terms: a Médio stroke is the
|
|
4992
4992
|
// same thickness in the saved image whether it was drawn at
|
|
4993
4993
|
// 100% or at 400%.
|
|
4994
|
-
width:
|
|
4994
|
+
width: S * ve() * p,
|
|
4995
4995
|
points: [oe(U)]
|
|
4996
4996
|
};
|
|
4997
4997
|
y.current = We;
|
|
@@ -5028,7 +5028,7 @@ const ws = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], k
|
|
|
5028
5028
|
const U = s.current;
|
|
5029
5029
|
!U || !x || (l.current = [...l.current, { type: "rotate" }], f(l.current.length), Ss(U), C({ w: U.width, h: U.height }));
|
|
5030
5030
|
}, "handleRotate"), Ye = /* @__PURE__ */ t(() => {
|
|
5031
|
-
l.current.length !== 0 && (l.current = l.current.slice(0, -1), f(l.current.length),
|
|
5031
|
+
l.current.length !== 0 && (l.current = l.current.slice(0, -1), f(l.current.length), J());
|
|
5032
5032
|
}, "handleUndo"), Ge = /* @__PURE__ */ t(() => {
|
|
5033
5033
|
const U = s.current;
|
|
5034
5034
|
if (!U || !e) return;
|
|
@@ -5120,7 +5120,7 @@ const ws = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], k
|
|
|
5120
5120
|
component: "button",
|
|
5121
5121
|
type: "button",
|
|
5122
5122
|
"aria-label": `Cor ${U}`,
|
|
5123
|
-
"aria-pressed":
|
|
5123
|
+
"aria-pressed": k === U,
|
|
5124
5124
|
onClick: /* @__PURE__ */ t(() => _(U), "onClick"),
|
|
5125
5125
|
sx: /* @__PURE__ */ t((le) => ({
|
|
5126
5126
|
width: 16,
|
|
@@ -5129,7 +5129,7 @@ const ws = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], k
|
|
|
5129
5129
|
borderRadius: "50%",
|
|
5130
5130
|
cursor: "pointer",
|
|
5131
5131
|
backgroundColor: U,
|
|
5132
|
-
border: `2px solid ${
|
|
5132
|
+
border: `2px solid ${k === U ? le.palette.primary.main : ye(le.palette.common.white, 0.35)}`,
|
|
5133
5133
|
outline: "none",
|
|
5134
5134
|
"&:focus-visible": {
|
|
5135
5135
|
boxShadow: `0 0 0 2px ${le.palette.primary.main}`
|
|
@@ -5144,7 +5144,7 @@ const ws = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], k
|
|
|
5144
5144
|
component: "button",
|
|
5145
5145
|
type: "button",
|
|
5146
5146
|
"aria-label": `Espessura ${U.label}`,
|
|
5147
|
-
"aria-pressed":
|
|
5147
|
+
"aria-pressed": S === U.value,
|
|
5148
5148
|
onClick: /* @__PURE__ */ t(() => w(U.value), "onClick"),
|
|
5149
5149
|
sx: /* @__PURE__ */ t((le) => ({
|
|
5150
5150
|
display: "flex",
|
|
@@ -5156,7 +5156,7 @@ const ws = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], k
|
|
|
5156
5156
|
borderRadius: 1,
|
|
5157
5157
|
cursor: "pointer",
|
|
5158
5158
|
border: "none",
|
|
5159
|
-
backgroundColor:
|
|
5159
|
+
backgroundColor: S === U.value ? ye(le.palette.primary.main, 0.18) : "transparent",
|
|
5160
5160
|
"&:hover": {
|
|
5161
5161
|
backgroundColor: ye(le.palette.common.white, 0.12)
|
|
5162
5162
|
}
|
|
@@ -5168,7 +5168,7 @@ const ws = ["#ff3b30", "#ffcc00", "#34c759", "#0a84ff", "#ffffff", "#111111"], k
|
|
|
5168
5168
|
width: U.value,
|
|
5169
5169
|
height: U.value,
|
|
5170
5170
|
borderRadius: "50%",
|
|
5171
|
-
backgroundColor:
|
|
5171
|
+
backgroundColor: S === U.value ? le.palette.primary.main : ye(le.palette.common.white, 0.7)
|
|
5172
5172
|
}), "sx")
|
|
5173
5173
|
}
|
|
5174
5174
|
)
|
|
@@ -5426,9 +5426,9 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
5426
5426
|
topSlot: y,
|
|
5427
5427
|
borderRadius: b = Ts,
|
|
5428
5428
|
topSlotCollapsible: E = !1,
|
|
5429
|
-
topSlotExpanded:
|
|
5429
|
+
topSlotExpanded: k = !0,
|
|
5430
5430
|
showConfigOptions: _ = !1,
|
|
5431
|
-
showAttachmentButton:
|
|
5431
|
+
showAttachmentButton: S = !0,
|
|
5432
5432
|
onTopSlotExpandedChange: w,
|
|
5433
5433
|
inputMinHeight: A,
|
|
5434
5434
|
inputPaddingX: f = 1.25,
|
|
@@ -5451,7 +5451,7 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
5451
5451
|
slashColor: V,
|
|
5452
5452
|
atColor: se,
|
|
5453
5453
|
hashColor: Oe,
|
|
5454
|
-
enableHashDatePicker:
|
|
5454
|
+
enableHashDatePicker: J = !1,
|
|
5455
5455
|
promptAssist: ve = !0,
|
|
5456
5456
|
hashDateFormat: oe = "YYYY-MM-DD",
|
|
5457
5457
|
datePresets: j = ["amanhã", "depois de amanhã", "próxima semana"],
|
|
@@ -5500,7 +5500,7 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
5500
5500
|
(T = $t.current) == null || T.click();
|
|
5501
5501
|
}, []), [ae, bt] = G(null), [At, Mt] = G([]), gn = te(At);
|
|
5502
5502
|
gn.current = At;
|
|
5503
|
-
const [Vt, On] = G(!1), [Pn, on] = G(0), [kn, qt] = G(null), [Fn, mn] = G(null), nr = Ii(), Vo = he === "panel" || he === "auto" && nr, Sn = Ke ?? "guided", Fr = we === "center" || we === "auto" && nr, rr = (ae == null ? void 0 : ae.trigger) === "#" && !!
|
|
5503
|
+
const [Vt, On] = G(!1), [Pn, on] = G(0), [kn, qt] = G(null), [Fn, mn] = G(null), nr = Ii(), Vo = he === "panel" || he === "auto" && nr, Sn = Ke ?? "guided", Fr = we === "center" || we === "auto" && nr, rr = (ae == null ? void 0 : ae.trigger) === "#" && !!J, Cn = $l(Fr && rr), or = p === "icon" || p === "auto" && (Ne === "dark" || nr), En = Vo && (ae == null ? void 0 : ae.trigger) === "@" && (At.length > 0 || Vt), Lr = te(!1);
|
|
5504
5504
|
Lr.current = En;
|
|
5505
5505
|
const Ln = te(null), jn = te(null), [ar, jr] = G(null), Tn = te(0), Bt = te(null), ir = te(null), an = te({ onSlashQuery: C, onAtQuery: h, onAtPersonQuery: R });
|
|
5506
5506
|
an.current = { onSlashQuery: C, onAtQuery: h, onAtPersonQuery: R };
|
|
@@ -5558,7 +5558,7 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
5558
5558
|
commitIntent: ve && st ? (T, B, re) => st.commitIntent(T, B, re) : void 0,
|
|
5559
5559
|
suggest: ve ? K : void 0
|
|
5560
5560
|
},
|
|
5561
|
-
{ enableHashDatePicker:
|
|
5561
|
+
{ enableHashDatePicker: J, datePresets: j, promptHint: !0, debugGhostKey: lt }
|
|
5562
5562
|
);
|
|
5563
5563
|
$r.current = ta, Br.current = na, Wr.current = ra, Nr.current = oa, Hr.current = aa, Ur.current = ia;
|
|
5564
5564
|
const Qr = te(null);
|
|
@@ -5768,7 +5768,7 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
5768
5768
|
}
|
|
5769
5769
|
pr(B);
|
|
5770
5770
|
}, [Se, lr, yt]);
|
|
5771
|
-
const to = sn !== null,
|
|
5771
|
+
const to = sn !== null, Y = ae && ((po = jn.current) == null ? void 0 : po.startIdx) === ae.startIdx ? jn.current.label : void 0, dt = Ce(
|
|
5772
5772
|
() => (ae == null ? void 0 : ae.trigger) === "@" && Wn.length > 0 ? [...Nd(Wn, ae.query), ...At] : At,
|
|
5773
5773
|
[ae == null ? void 0 : ae.trigger, ae == null ? void 0 : ae.query, Wn, At]
|
|
5774
5774
|
), no = Ce(() => Od(sn), [sn]), { pin: mr, unpin: ro } = Hd(dt, on);
|
|
@@ -5831,13 +5831,13 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
5831
5831
|
Ge instanceof Tr && (T ? Xe.bindAndOpenLiveSession(Ge.getSessionId()) : Xe.closeLiveConnection(!0, !1));
|
|
5832
5832
|
}, [Ge, Xe]), Mn = A ?? Ts, sa = /* @__PURE__ */ t((T) => {
|
|
5833
5833
|
T && (T.style.height = "auto", T.style.height = `${Math.min(
|
|
5834
|
-
Math.max(T.scrollHeight / 2, Mn / (
|
|
5834
|
+
Math.max(T.scrollHeight / 2, Mn / (k ? 5 : 1)),
|
|
5835
5835
|
Is
|
|
5836
5836
|
)}px`);
|
|
5837
5837
|
}, "fit");
|
|
5838
5838
|
de(() => {
|
|
5839
5839
|
sa(Je.current);
|
|
5840
|
-
}, [Se, Mn,
|
|
5840
|
+
}, [Se, Mn, k]), de(() => {
|
|
5841
5841
|
et(i ?? "");
|
|
5842
5842
|
}, [i]), de(() => {
|
|
5843
5843
|
if (!Et.current) return;
|
|
@@ -5916,7 +5916,7 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
5916
5916
|
boxShadow: B.shadows[6]
|
|
5917
5917
|
}), "sx"),
|
|
5918
5918
|
children: [
|
|
5919
|
-
|
|
5919
|
+
Y && /* @__PURE__ */ n(
|
|
5920
5920
|
ne,
|
|
5921
5921
|
{
|
|
5922
5922
|
sx: /* @__PURE__ */ t((B) => ({
|
|
@@ -5931,7 +5931,7 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
5931
5931
|
textTransform: "uppercase",
|
|
5932
5932
|
color: B.palette.text.secondary
|
|
5933
5933
|
}), "sx"),
|
|
5934
|
-
children:
|
|
5934
|
+
children: Y
|
|
5935
5935
|
}
|
|
5936
5936
|
),
|
|
5937
5937
|
/* @__PURE__ */ n(Zs, { dateAdapter: el, adapterLocale: "pt-br", children: /* @__PURE__ */ n(
|
|
@@ -5955,12 +5955,12 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
5955
5955
|
) })
|
|
5956
5956
|
]
|
|
5957
5957
|
},
|
|
5958
|
-
T != null && T.animate ?
|
|
5958
|
+
T != null && T.animate ? Y ?? "calendar" : void 0
|
|
5959
5959
|
), "renderDatePicker"), wr = Te(() => {
|
|
5960
5960
|
ae && (Ln.current = ae.startIdx), bt(null), qt(null);
|
|
5961
5961
|
}, [ae]), lo = /* @__PURE__ */ t((T) => {
|
|
5962
5962
|
if (!ea(T)) {
|
|
5963
|
-
if ((ae == null ? void 0 : ae.trigger) === "#" &&
|
|
5963
|
+
if ((ae == null ? void 0 : ae.trigger) === "#" && J && T.key === "Escape") {
|
|
5964
5964
|
T.preventDefault(), wr();
|
|
5965
5965
|
return;
|
|
5966
5966
|
}
|
|
@@ -6000,8 +6000,8 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
6000
6000
|
if (!re) return;
|
|
6001
6001
|
const ue = Tu(Se, re);
|
|
6002
6002
|
ue.next !== Se && et(ue.next), mn({ start: ue.selectionStart, end: ue.selectionEnd, reopenTrigger: ue.reopenTrigger });
|
|
6003
|
-
}, "handleEditorClick"), ca = !v && ln === Me.Idle, da = !!v || ln !== Me.Idle, un = !v && ln === Me.Connecting, ua = !v && ln === Me.Disconnected, co = !da || at && !cn || Ht || !I && !Se.trim() && Tt.length === 0, pa =
|
|
6004
|
-
w == null || w(!
|
|
6003
|
+
}, "handleEditorClick"), ca = !v && ln === Me.Idle, da = !!v || ln !== Me.Idle, un = !v && ln === Me.Connecting, ua = !v && ln === Me.Disconnected, co = !da || at && !cn || Ht || !I && !Se.trim() && Tt.length === 0, pa = S && (!at || cn), uo = y && k ? "" : u ?? "Pergunte sobre seus dados…", vt = /* @__PURE__ */ t(() => {
|
|
6004
|
+
w == null || w(!k);
|
|
6005
6005
|
}, "handleToggleTopSlot"), Jn = y ? 2 : b ?? 999;
|
|
6006
6006
|
return /* @__PURE__ */ M(
|
|
6007
6007
|
D,
|
|
@@ -6115,7 +6115,7 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
6115
6115
|
E && w && /* @__PURE__ */ n(
|
|
6116
6116
|
$e,
|
|
6117
6117
|
{
|
|
6118
|
-
title:
|
|
6118
|
+
title: k ? "Recolher" : "Expandir",
|
|
6119
6119
|
placement: "left",
|
|
6120
6120
|
children: /* @__PURE__ */ n(
|
|
6121
6121
|
Be,
|
|
@@ -6135,14 +6135,14 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
6135
6135
|
pointerEvents: "none",
|
|
6136
6136
|
zIndex: 2,
|
|
6137
6137
|
transition: "opacity .12s, color .12s, background-color .12s",
|
|
6138
|
-
transform:
|
|
6138
|
+
transform: k ? "rotate(0deg)" : "rotate(180deg)",
|
|
6139
6139
|
"&:hover": {
|
|
6140
6140
|
color: T.palette.text.primary,
|
|
6141
6141
|
backgroundColor: T.palette.surface.hover,
|
|
6142
6142
|
borderColor: T.palette.primary.main
|
|
6143
6143
|
}
|
|
6144
6144
|
}), "sx"),
|
|
6145
|
-
"aria-label":
|
|
6145
|
+
"aria-label": k ? "Recolher" : "Expandir",
|
|
6146
6146
|
children: /* @__PURE__ */ n(Mr, { size: 13 })
|
|
6147
6147
|
}
|
|
6148
6148
|
)
|
|
@@ -6692,7 +6692,7 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
6692
6692
|
hotelLabel: Z,
|
|
6693
6693
|
keyHints: !0,
|
|
6694
6694
|
queryEcho: ae ? `${ae.trigger}${ae.query}` : "",
|
|
6695
|
-
slotLabel:
|
|
6695
|
+
slotLabel: Y
|
|
6696
6696
|
}
|
|
6697
6697
|
)
|
|
6698
6698
|
}
|
|
@@ -6708,7 +6708,7 @@ const Ts = 70, Is = 300, As = 16, zo = Or(({
|
|
|
6708
6708
|
personLabel: W,
|
|
6709
6709
|
locationLabel: N,
|
|
6710
6710
|
hotelLabel: Z,
|
|
6711
|
-
slotLabel:
|
|
6711
|
+
slotLabel: Y
|
|
6712
6712
|
}
|
|
6713
6713
|
),
|
|
6714
6714
|
/* @__PURE__ */ n(
|
|
@@ -7016,8 +7016,8 @@ typeof window < "u" && Promise.all([
|
|
|
7016
7016
|
import("react-syntax-highlighter/dist/esm/languages/prism/css"),
|
|
7017
7017
|
import("react-syntax-highlighter/dist/esm/languages/prism/csharp"),
|
|
7018
7018
|
import("react-syntax-highlighter/dist/esm/languages/prism/yaml")
|
|
7019
|
-
]).then(([e, r, i, s, u, l, y, b, E,
|
|
7020
|
-
Ct = e.default, Bl = r.default, Ct.registerLanguage("python", u.default), Ct.registerLanguage("markdown", i.default), Ct.registerLanguage("javascript", l.default), Ct.registerLanguage("typescript", y.default), Ct.registerLanguage("sql", b.default), Ct.registerLanguage("json", E.default), Ct.registerLanguage("bash",
|
|
7019
|
+
]).then(([e, r, i, s, u, l, y, b, E, k, _, S, w]) => {
|
|
7020
|
+
Ct = e.default, Bl = r.default, Ct.registerLanguage("python", u.default), Ct.registerLanguage("markdown", i.default), Ct.registerLanguage("javascript", l.default), Ct.registerLanguage("typescript", y.default), Ct.registerLanguage("sql", b.default), Ct.registerLanguage("json", E.default), Ct.registerLanguage("bash", k.default), Ct.registerLanguage("shell", k.default), Ct.registerLanguage("html", s.default), Ct.registerLanguage("xml", s.default), Ct.registerLanguage("css", _.default), Ct.registerLanguage("csharp", S.default), Ct.registerLanguage("yaml", w.default);
|
|
7021
7021
|
}).catch((e) => console.error("Failed to load syntax highlighter:", e));
|
|
7022
7022
|
const Hp = `${mi()}/open/getImage`, Up = Dr({}), Vp = /* @__PURE__ */ t(() => Jt(Up), "useMarkdownExtendedDefaults"), qp = /* @__PURE__ */ t(({ iconCode: e }) => /* @__PURE__ */ n("span", { style: {
|
|
7023
7023
|
display: "inline-flex",
|
|
@@ -7055,8 +7055,8 @@ const Hp = `${mi()}/open/getImage`, Up = Dr({}), Vp = /* @__PURE__ */ t(() => Jt
|
|
|
7055
7055
|
const b = Vp();
|
|
7056
7056
|
y ?? b.variant;
|
|
7057
7057
|
const E = Dt();
|
|
7058
|
-
let
|
|
7059
|
-
const { eventBusService: _ } = ft(),
|
|
7058
|
+
let k = e;
|
|
7059
|
+
const { eventBusService: _ } = ft(), S = {
|
|
7060
7060
|
span: /* @__PURE__ */ t(({ children: v, className: g, ...p }) => g === "inline-icon" && p["data-icon"] ? /* @__PURE__ */ n(qp, { iconCode: p["data-icon"] }) : /* @__PURE__ */ n("span", { className: g, ...p, children: v }), "span"),
|
|
7061
7061
|
img: /* @__PURE__ */ t(({ children: v, src: g, ...p }) => /* @__PURE__ */ n("div", { style: { width: "100%", padding: "5px", margin: "16px 2px", borderRadius: "6px", border: "1px solid #333" }, children: /* @__PURE__ */ n("img", { src: `${Hp}/${g}`, ...p, style: { width: "100%" } }) }), "img"),
|
|
7062
7062
|
p: Kp,
|
|
@@ -7131,7 +7131,7 @@ const Hp = `${mi()}/open/getImage`, Up = Dr({}), Vp = /* @__PURE__ */ t(() => Jt
|
|
|
7131
7131
|
backgroundColor: E.palette.surface.hover
|
|
7132
7132
|
}, children: /* @__PURE__ */ n(De, { direction: "row", gap: 2, sx: { display: "inline-flex", alignItems: "center", flexWrap: "nowrap" }, children: v }) }), "blockquote")
|
|
7133
7133
|
};
|
|
7134
|
-
E.palette.primary.main, `${E.palette.primary.main}`, E.palette.text.primary, Object.assign(
|
|
7134
|
+
E.palette.primary.main, `${E.palette.primary.main}`, E.palette.text.primary, Object.assign(S, {});
|
|
7135
7135
|
const f = l === "compact" ? {
|
|
7136
7136
|
input: /* @__PURE__ */ t(({ checked: v, disabled: g, ...p }) => p.type === "checkbox" ? v ? /* @__PURE__ */ n(
|
|
7137
7137
|
cs,
|
|
@@ -7168,7 +7168,7 @@ const Hp = `${mi()}/open/getImage`, Up = Dr({}), Vp = /* @__PURE__ */ t(() => Jt
|
|
|
7168
7168
|
li: /* @__PURE__ */ t(({ children: v }) => /* @__PURE__ */ n("li", { style: { margin: "4px 0" }, children: v }), "li"),
|
|
7169
7169
|
strong: /* @__PURE__ */ t(({ children: v }) => /* @__PURE__ */ n("strong", { style: { fontWeight: "bold" }, children: v }), "strong"),
|
|
7170
7170
|
em: /* @__PURE__ */ t(({ children: v }) => /* @__PURE__ */ n("em", { style: { fontStyle: "italic" }, children: v }), "em")
|
|
7171
|
-
} :
|
|
7171
|
+
} : S;
|
|
7172
7172
|
e = l === "compact" ? e.substring(0, 400) : e;
|
|
7173
7173
|
const x = /* @__PURE__ */ t((v, g) => Ct ? /* @__PURE__ */ n(
|
|
7174
7174
|
Ct,
|
|
@@ -7194,7 +7194,7 @@ const Hp = `${mi()}/open/getImage`, Up = Dr({}), Vp = /* @__PURE__ */ t(() => Jt
|
|
|
7194
7194
|
components: f,
|
|
7195
7195
|
remarkPlugins: [Pu],
|
|
7196
7196
|
rehypePlugins: [Fu],
|
|
7197
|
-
children:
|
|
7197
|
+
children: k
|
|
7198
7198
|
}
|
|
7199
7199
|
);
|
|
7200
7200
|
}, "MarkdownExtended"), Wl = Or((e, r) => {
|
|
@@ -7206,9 +7206,9 @@ const Hp = `${mi()}/open/getImage`, Up = Dr({}), Vp = /* @__PURE__ */ t(() => Jt
|
|
|
7206
7206
|
title: y,
|
|
7207
7207
|
onVisibleQuestionChange: b,
|
|
7208
7208
|
...E
|
|
7209
|
-
} = e, [
|
|
7209
|
+
} = e, [k, _] = G(null), S = Te((A) => {
|
|
7210
7210
|
_(A), b == null || b(A);
|
|
7211
|
-
}, [b]), w =
|
|
7211
|
+
}, [b]), w = k || y || "Chat";
|
|
7212
7212
|
return /* @__PURE__ */ M(
|
|
7213
7213
|
ad,
|
|
7214
7214
|
{
|
|
@@ -7244,7 +7244,7 @@ const Hp = `${mi()}/open/getImage`, Up = Dr({}), Vp = /* @__PURE__ */ t(() => Jt
|
|
|
7244
7244
|
) }),
|
|
7245
7245
|
s && /* @__PURE__ */ n(en, { size: "small", onClick: s, edge: "end", sx: { ml: 1, flexShrink: 0 }, children: /* @__PURE__ */ n(Ua, { fontSize: "small" }) })
|
|
7246
7246
|
] }),
|
|
7247
|
-
/* @__PURE__ */ n(Ee, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ n(Uo, { ref: r, ...E, onVisibleQuestionChange:
|
|
7247
|
+
/* @__PURE__ */ n(Ee, { sx: { flex: 1, overflow: "hidden" }, children: /* @__PURE__ */ n(Uo, { ref: r, ...E, onVisibleQuestionChange: S }) })
|
|
7248
7248
|
]
|
|
7249
7249
|
}
|
|
7250
7250
|
);
|
|
@@ -7402,8 +7402,8 @@ const _o = /* @__PURE__ */ t(({ showFlowing: e }) => {
|
|
|
7402
7402
|
de(() => {
|
|
7403
7403
|
b && y(b);
|
|
7404
7404
|
}, [u]);
|
|
7405
|
-
const E = xe((g) => g.currentMessage),
|
|
7406
|
-
const g = E ?? (
|
|
7405
|
+
const E = xe((g) => g.currentMessage), k = xe((g) => g.messages), _ = Ce(() => {
|
|
7406
|
+
const g = E ?? (k == null ? void 0 : k[k.length - 1]) ?? null;
|
|
7407
7407
|
if (!(g != null && g.parts)) return null;
|
|
7408
7408
|
for (let p = g.parts.length - 1; p >= 0; p--) {
|
|
7409
7409
|
const I = g.parts[p];
|
|
@@ -7415,7 +7415,7 @@ const _o = /* @__PURE__ */ t(({ showFlowing: e }) => {
|
|
|
7415
7415
|
return { label: L };
|
|
7416
7416
|
}
|
|
7417
7417
|
return null;
|
|
7418
|
-
}, [E,
|
|
7418
|
+
}, [E, k]), S = (l == null ? void 0 : l.items.length) ?? 0, w = (l == null ? void 0 : l.items.filter(
|
|
7419
7419
|
(g) => String(g.status).toLowerCase() === "completed"
|
|
7420
7420
|
).length) ?? 0, A = Ce(() => {
|
|
7421
7421
|
if (l != null && l.currentWorkingItemKey) {
|
|
@@ -7446,7 +7446,7 @@ const _o = /* @__PURE__ */ t(({ showFlowing: e }) => {
|
|
|
7446
7446
|
return { color: r.palette.text.disabled, label: "Sessão inativa", pulse: !1 };
|
|
7447
7447
|
}
|
|
7448
7448
|
}, [s, i, r]);
|
|
7449
|
-
return i ||
|
|
7449
|
+
return i || S > 0 || f !== null || s === Me.Connecting || s === Me.Disconnected ? /* @__PURE__ */ M(
|
|
7450
7450
|
D,
|
|
7451
7451
|
{
|
|
7452
7452
|
sx: /* @__PURE__ */ t((g) => ({
|
|
@@ -7469,7 +7469,7 @@ const _o = /* @__PURE__ */ t(({ showFlowing: e }) => {
|
|
|
7469
7469
|
qs,
|
|
7470
7470
|
{
|
|
7471
7471
|
variant: w == 0 ? "indeterminate" : "determinate",
|
|
7472
|
-
value: w == 0 ? void 0 : w /
|
|
7472
|
+
value: w == 0 ? void 0 : w / S * 100,
|
|
7473
7473
|
sx: /* @__PURE__ */ t((g) => ({
|
|
7474
7474
|
position: "absolute",
|
|
7475
7475
|
bottom: 0,
|
|
@@ -7537,7 +7537,7 @@ const _o = /* @__PURE__ */ t(({ showFlowing: e }) => {
|
|
|
7537
7537
|
children: A
|
|
7538
7538
|
}
|
|
7539
7539
|
) : /* @__PURE__ */ n(D, { sx: { width: "100%" } }),
|
|
7540
|
-
|
|
7540
|
+
S > 0 && /* @__PURE__ */ n($e, { title: `Tarefas: ${w}/${S}`, placement: "top", children: /* @__PURE__ */ M(
|
|
7541
7541
|
D,
|
|
7542
7542
|
{
|
|
7543
7543
|
sx: /* @__PURE__ */ t((g) => ({
|
|
@@ -7558,11 +7558,11 @@ const _o = /* @__PURE__ */ t(({ showFlowing: e }) => {
|
|
|
7558
7558
|
/* @__PURE__ */ n(D, { component: "span", children: w }),
|
|
7559
7559
|
/* @__PURE__ */ M(D, { component: "span", sx: /* @__PURE__ */ t((g) => ({ color: g.palette.text.disabled }), "sx"), children: [
|
|
7560
7560
|
"/",
|
|
7561
|
-
|
|
7561
|
+
S
|
|
7562
7562
|
] }),
|
|
7563
7563
|
/* @__PURE__ */ n(D, { sx: { ml: 0.1 }, children: "=" }),
|
|
7564
7564
|
/* @__PURE__ */ M(D, { sx: { ml: 0.1 }, children: [
|
|
7565
|
-
(w /
|
|
7565
|
+
(w / S * 100).toFixed(1),
|
|
7566
7566
|
"%"
|
|
7567
7567
|
] })
|
|
7568
7568
|
]
|
|
@@ -7583,9 +7583,9 @@ const Xp = 440, Zp = 480, Xa = Or((e, r) => {
|
|
|
7583
7583
|
height: y = Zp,
|
|
7584
7584
|
title: b = "Assistente",
|
|
7585
7585
|
onVisibleQuestionChange: E,
|
|
7586
|
-
onFloatingOpened:
|
|
7586
|
+
onFloatingOpened: k,
|
|
7587
7587
|
..._
|
|
7588
|
-
} = e,
|
|
7588
|
+
} = e, S = { bottom: 20, right: 20, ...i }, [w, A] = G(!1), [f, x] = G(null), v = Te(
|
|
7589
7589
|
(R) => {
|
|
7590
7590
|
let L = R;
|
|
7591
7591
|
if (e.onRenderPrompt && R) {
|
|
@@ -7595,8 +7595,8 @@ const Xp = 440, Zp = 480, Xa = Or((e, r) => {
|
|
|
7595
7595
|
x(L ?? ""), E == null || E(R);
|
|
7596
7596
|
},
|
|
7597
7597
|
[E, e.onRenderPrompt]
|
|
7598
|
-
), g = (f == null ? void 0 : f.trim()) || b, p =
|
|
7599
|
-
A(!0),
|
|
7598
|
+
), g = (f == null ? void 0 : f.trim()) || b, p = S.bottom != null ? S.bottom + ((s == null ? void 0 : s.bottom) ?? 0) : void 0, I = S.right != null ? S.right + ((s == null ? void 0 : s.right) ?? 0) : void 0, c = S.left != null ? S.left + ((s == null ? void 0 : s.left) ?? 0) : void 0, C = S.top != null ? S.top + ((s == null ? void 0 : s.top) ?? 0) : void 0, h = /* @__PURE__ */ t(() => {
|
|
7599
|
+
A(!0), k == null || k();
|
|
7600
7600
|
}, "handleOpen");
|
|
7601
7601
|
return /* @__PURE__ */ M(ie, { children: [
|
|
7602
7602
|
/* @__PURE__ */ n(dl, { direction: "up", in: w, unmountOnExit: !1, children: /* @__PURE__ */ M(
|
|
@@ -7684,10 +7684,10 @@ const Xp = 440, Zp = 480, Xa = Or((e, r) => {
|
|
|
7684
7684
|
{
|
|
7685
7685
|
sx: {
|
|
7686
7686
|
position: "fixed",
|
|
7687
|
-
bottom:
|
|
7688
|
-
top:
|
|
7689
|
-
right:
|
|
7690
|
-
left:
|
|
7687
|
+
bottom: S.bottom,
|
|
7688
|
+
top: S.top,
|
|
7689
|
+
right: S.right,
|
|
7690
|
+
left: S.left,
|
|
7691
7691
|
zIndex: 1e4
|
|
7692
7692
|
},
|
|
7693
7693
|
children: u ? /* @__PURE__ */ n(D, { onClick: h, sx: { cursor: "pointer" }, children: u }) : /* @__PURE__ */ n(
|
|
@@ -7931,7 +7931,7 @@ t(dh, "defaultFormatTimestamp");
|
|
|
7931
7931
|
const Vl = /* @__PURE__ */ t(({ isUser: e, message: r, tone: i }) => {
|
|
7932
7932
|
const { showPersona: s, formatTimestamp: u, resolvePersona: l } = ft();
|
|
7933
7933
|
if (!s) return null;
|
|
7934
|
-
const y = i === "chrome", b = (l == null ? void 0 : l({ isUser: e, message: r })) ?? { label: e ? "Você" : "Agente", initials: e ? "V" : "A" }, E = b.initials ?? (b.label.slice(0, 1).toUpperCase() || "·"),
|
|
7934
|
+
const y = i === "chrome", b = (l == null ? void 0 : l({ isUser: e, message: r })) ?? { label: e ? "Você" : "Agente", initials: e ? "V" : "A" }, E = b.initials ?? (b.label.slice(0, 1).toUpperCase() || "·"), k = (u ?? dh)(r.created), _ = e && b.picture !== "guest";
|
|
7935
7935
|
return /* @__PURE__ */ M(D, { sx: { display: "flex", alignItems: "center", gap: 1, mt: 1.5, mb: 0.5 }, children: [
|
|
7936
7936
|
e ? _ ? /* @__PURE__ */ n(
|
|
7937
7937
|
ju,
|
|
@@ -7962,7 +7962,7 @@ const Vl = /* @__PURE__ */ t(({ isUser: e, message: r, tone: i }) => {
|
|
|
7962
7962
|
},
|
|
7963
7963
|
children: [
|
|
7964
7964
|
b.label,
|
|
7965
|
-
|
|
7965
|
+
k ? ` · ${k}` : ""
|
|
7966
7966
|
]
|
|
7967
7967
|
}
|
|
7968
7968
|
)
|
|
@@ -8005,30 +8005,30 @@ const Jl = /* @__PURE__ */ t(({
|
|
|
8005
8005
|
onLinkClicked: y
|
|
8006
8006
|
}) => {
|
|
8007
8007
|
var g;
|
|
8008
|
-
const b = hh(), [E,
|
|
8008
|
+
const b = hh(), [E, k] = G(() => !i || !u), _ = te(null);
|
|
8009
8009
|
de(() => {
|
|
8010
|
-
|
|
8010
|
+
k(!i || !u);
|
|
8011
8011
|
}, [i, u]), de(() => {
|
|
8012
8012
|
_.current && _.current.scrollTo({
|
|
8013
8013
|
top: _.current.scrollHeight,
|
|
8014
8014
|
behavior: "smooth"
|
|
8015
8015
|
});
|
|
8016
8016
|
}, [(g = e.textDetails) == null ? void 0 : g.version]);
|
|
8017
|
-
const
|
|
8017
|
+
const S = pt.getPartTextContent(e);
|
|
8018
8018
|
if (b)
|
|
8019
8019
|
return /* @__PURE__ */ n(
|
|
8020
8020
|
Nt,
|
|
8021
8021
|
{
|
|
8022
8022
|
partial: s,
|
|
8023
8023
|
sessionId: r.sessionId ?? "ND",
|
|
8024
|
-
text:
|
|
8024
|
+
text: S ?? "",
|
|
8025
8025
|
onDrawCodeBlock: /* @__PURE__ */ t(() => null, "onDrawCodeBlock"),
|
|
8026
8026
|
onLinkClicked: y
|
|
8027
8027
|
}
|
|
8028
8028
|
);
|
|
8029
8029
|
const A = (((e.ended ?? /* @__PURE__ */ new Date()).getTime() - e.created.getTime()) / 1e3).toFixed(2), x = l ? u ? "Pensando..." : `Pensou por ${A}s` : `Thought ${A}s`, v = /* @__PURE__ */ t((p, I) => null, "onDrawCodeBlock");
|
|
8030
8030
|
return /* @__PURE__ */ M(De, { direction: "column", style: { display: "flex", borderRadius: "5px", marginTop: "10px", color: "var(--text-secondary)", fontSize: "0.75rem" }, children: [
|
|
8031
|
-
/* @__PURE__ */ n(en, { size: "small", disableRipple: !0, onClick: /* @__PURE__ */ t(() =>
|
|
8031
|
+
/* @__PURE__ */ n(en, { size: "small", disableRipple: !0, onClick: /* @__PURE__ */ t(() => k(!E), "onClick"), sx: {
|
|
8032
8032
|
color: "inherit",
|
|
8033
8033
|
padding: "1px",
|
|
8034
8034
|
minWidth: "16px",
|
|
@@ -8056,7 +8056,7 @@ const Jl = /* @__PURE__ */ t(({
|
|
|
8056
8056
|
{
|
|
8057
8057
|
partial: s,
|
|
8058
8058
|
sessionId: r.sessionId ?? "ND",
|
|
8059
|
-
text:
|
|
8059
|
+
text: S ?? "",
|
|
8060
8060
|
onDrawCodeBlock: v,
|
|
8061
8061
|
onLinkClicked: y
|
|
8062
8062
|
}
|
|
@@ -8064,25 +8064,25 @@ const Jl = /* @__PURE__ */ t(({
|
|
|
8064
8064
|
] });
|
|
8065
8065
|
}, "ThoughtPart"), fh = /* @__PURE__ */ t(({ parts: e, isLive: r, friendlyMode: i = !1, headlines: s = [], summarized: u = !1, showTrace: l = !1, isLastThought: y = !0, children: b }) => {
|
|
8066
8066
|
var g;
|
|
8067
|
-
const E = s.length > 0 ? s[s.length - 1] : void 0, [
|
|
8067
|
+
const E = s.length > 0 ? s[s.length - 1] : void 0, [k, _] = G(() => u ? !y : !r), S = te(null);
|
|
8068
8068
|
de(() => {
|
|
8069
8069
|
_(u ? !y : !r);
|
|
8070
8070
|
}, [r, u, y]);
|
|
8071
8071
|
const w = e[0], A = e[e.length - 1], f = `${e.length}:${((g = A == null ? void 0 : A.textDetails) == null ? void 0 : g.version) ?? 0}`;
|
|
8072
8072
|
de(() => {
|
|
8073
|
-
r &&
|
|
8073
|
+
r && S.current && S.current.scrollTo({ top: S.current.scrollHeight, behavior: "smooth" });
|
|
8074
8074
|
}, [f, r]);
|
|
8075
8075
|
const x = Ce(() => {
|
|
8076
8076
|
var c;
|
|
8077
8077
|
const p = (A == null ? void 0 : A.ended) ?? /* @__PURE__ */ new Date(), I = ((p.getTime() - (((c = w == null ? void 0 : w.created) == null ? void 0 : c.getTime()) ?? p.getTime())) / 1e3).toFixed(2);
|
|
8078
8078
|
return r && E && !u ? E : i ? r ? "Pensando..." : `Pensou por ${I}s` : `Thought ${I}s`;
|
|
8079
|
-
}, [w, A, r, i, E, u]), v = Ce(() => ({ collapsed:
|
|
8079
|
+
}, [w, A, r, i, E, u]), v = Ce(() => ({ collapsed: k }), [k]);
|
|
8080
8080
|
if (e.length === 0) return null;
|
|
8081
8081
|
if (u) {
|
|
8082
8082
|
if (!r && s.length === 0 && !l) return null;
|
|
8083
8083
|
const p = r ? i ? "Pensando..." : "Thinking..." : x;
|
|
8084
8084
|
return /* @__PURE__ */ n(Za.Provider, { value: v, children: /* @__PURE__ */ M(De, { direction: "column", style: { display: "flex", borderRadius: "5px", marginTop: "10px", color: "var(--text-secondary)", fontSize: "0.75rem" }, children: [
|
|
8085
|
-
/* @__PURE__ */ n(en, { size: "small", disableRipple: !0, onClick: /* @__PURE__ */ t(() => _(!
|
|
8085
|
+
/* @__PURE__ */ n(en, { size: "small", disableRipple: !0, onClick: /* @__PURE__ */ t(() => _(!k), "onClick"), sx: {
|
|
8086
8086
|
color: "inherit",
|
|
8087
8087
|
padding: "1px",
|
|
8088
8088
|
minWidth: "16px",
|
|
@@ -8097,23 +8097,23 @@ const Jl = /* @__PURE__ */ t(({
|
|
|
8097
8097
|
"&.Mui-focusVisible": { outline: "none", boxShadow: "none" }
|
|
8098
8098
|
}, children: /* @__PURE__ */ M(De, { direction: "row", sx: { display: "flex", cursor: "pointer", alignItems: "center", flexWrap: "nowrap" }, gap: 0.5, children: [
|
|
8099
8099
|
/* @__PURE__ */ n("div", { style: { minWidth: "90px", textAlign: "left" }, children: p }),
|
|
8100
|
-
/* @__PURE__ */ n(Va, { sx: { fontSize: "1rem", rotate:
|
|
8100
|
+
/* @__PURE__ */ n(Va, { sx: { fontSize: "1rem", rotate: k ? "0deg" : "90deg", transition: "rotate 180ms ease-out" } })
|
|
8101
8101
|
] }) }),
|
|
8102
8102
|
/* @__PURE__ */ M("div", { style: {
|
|
8103
|
-
maxHeight:
|
|
8104
|
-
opacity:
|
|
8105
|
-
overflow:
|
|
8106
|
-
padding:
|
|
8103
|
+
maxHeight: k ? "0px" : l ? "400px" : "300px",
|
|
8104
|
+
opacity: k ? 0 : 1,
|
|
8105
|
+
overflow: k ? "hidden" : "auto",
|
|
8106
|
+
padding: k ? "0px 5px" : "2px 5px",
|
|
8107
8107
|
transition: "max-height 220ms ease-out, opacity 180ms ease-out, padding 220ms ease-out"
|
|
8108
8108
|
}, children: [
|
|
8109
8109
|
s.length > 0 && /* @__PURE__ */ n("ul", { style: { margin: "0 0 6px 0", padding: "0 0 0 14px", listStyle: "disc", lineHeight: 1.5 }, children: s.map((I, c) => /* @__PURE__ */ n("li", { style: { opacity: r && c === s.length - 1 ? 1 : 0.85 }, children: I }, `${c}-${I}`)) }),
|
|
8110
8110
|
l && // Diagnostics: the raw trace, after the highlights, in the italic the trace has always had.
|
|
8111
|
-
/* @__PURE__ */ n("div", { ref:
|
|
8111
|
+
/* @__PURE__ */ n("div", { ref: S, style: { fontStyle: "italic", borderTop: s.length > 0 ? "1px solid var(--border-subtle, rgba(128,128,128,0.25))" : void 0, paddingTop: s.length > 0 ? "6px" : void 0 }, children: b })
|
|
8112
8112
|
] })
|
|
8113
8113
|
] }) });
|
|
8114
8114
|
}
|
|
8115
8115
|
return /* @__PURE__ */ n(Za.Provider, { value: v, children: /* @__PURE__ */ M(De, { direction: "column", style: { display: "flex", borderRadius: "5px", marginTop: "10px", color: "var(--text-secondary)", fontSize: "0.75rem" }, children: [
|
|
8116
|
-
/* @__PURE__ */ n(en, { size: "small", disableRipple: !0, onClick: /* @__PURE__ */ t(() => _(!
|
|
8116
|
+
/* @__PURE__ */ n(en, { size: "small", disableRipple: !0, onClick: /* @__PURE__ */ t(() => _(!k), "onClick"), sx: {
|
|
8117
8117
|
color: "inherit",
|
|
8118
8118
|
padding: "1px",
|
|
8119
8119
|
minWidth: "16px",
|
|
@@ -8130,17 +8130,17 @@ const Jl = /* @__PURE__ */ t(({
|
|
|
8130
8130
|
"&.Mui-focusVisible": { outline: "none", boxShadow: "none" }
|
|
8131
8131
|
}, children: /* @__PURE__ */ M(De, { direction: "row", sx: { display: "flex", cursor: "pointer", alignItems: "center", alignContent: "flex-end", flexWrap: "nowrap" }, gap: 0.5, children: [
|
|
8132
8132
|
/* @__PURE__ */ n("div", { style: { minWidth: "90px", textAlign: "left", whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", maxWidth: "60vw" }, children: x }),
|
|
8133
|
-
/* @__PURE__ */ n(Va, { sx: { fontSize: "1rem", rotate:
|
|
8133
|
+
/* @__PURE__ */ n(Va, { sx: { fontSize: "1rem", rotate: k ? "0deg" : "90deg", transition: "rotate 180ms ease-out" } })
|
|
8134
8134
|
] }) }),
|
|
8135
8135
|
s.length > 0 && // The thought's story, in the traveller's language: one line per headline, visible whether the
|
|
8136
8136
|
// raw trace below is open or not. It is what the headline feature IS — the raw reasoning is
|
|
8137
8137
|
// the appendix.
|
|
8138
8138
|
/* @__PURE__ */ n("ul", { style: { margin: "-6px 0 8px 0", padding: "0 0 0 14px", listStyle: "disc", fontStyle: "normal", lineHeight: 1.5 }, children: s.map((p, I) => /* @__PURE__ */ n("li", { style: { opacity: r && I === s.length - 1 ? 1 : 0.85 }, children: p }, `${I}-${p}`)) }),
|
|
8139
|
-
/* @__PURE__ */ n("div", { ref:
|
|
8140
|
-
maxHeight:
|
|
8141
|
-
opacity:
|
|
8142
|
-
overflow:
|
|
8143
|
-
padding:
|
|
8139
|
+
/* @__PURE__ */ n("div", { ref: S, style: {
|
|
8140
|
+
maxHeight: k ? "0px" : "150px",
|
|
8141
|
+
opacity: k ? 0 : 1,
|
|
8142
|
+
overflow: k ? "hidden" : "scroll",
|
|
8143
|
+
padding: k ? "0px 5px" : "2px 5px",
|
|
8144
8144
|
fontStyle: "italic",
|
|
8145
8145
|
transition: "max-height 220ms ease-out, opacity 180ms ease-out, padding 220ms ease-out"
|
|
8146
8146
|
}, children: b })
|
|
@@ -8184,25 +8184,25 @@ const Jl = /* @__PURE__ */ t(({
|
|
|
8184
8184
|
))
|
|
8185
8185
|
}
|
|
8186
8186
|
), "LoadingDots"), No = /* @__PURE__ */ t(({ id: e, on: r, className: i = "", style: s = {}, showButton: u = !1, startingPoint: l, stopPoint: y }) => {
|
|
8187
|
-
const [b, E] = G(0),
|
|
8187
|
+
const [b, E] = G(0), k = te(void 0);
|
|
8188
8188
|
de(() => {
|
|
8189
8189
|
if (r)
|
|
8190
|
-
|
|
8190
|
+
k.current && clearInterval(k.current), k.current = setInterval(() => {
|
|
8191
8191
|
const w = (Date.now() - l.getTime()) / 1e3;
|
|
8192
8192
|
E(w);
|
|
8193
8193
|
}, 100);
|
|
8194
|
-
else if (
|
|
8194
|
+
else if (k.current && (clearInterval(k.current), k.current = void 0), y) {
|
|
8195
8195
|
const w = (y.getTime() - l.getTime()) / 1e3;
|
|
8196
8196
|
E(w);
|
|
8197
8197
|
} else
|
|
8198
8198
|
console.error("[STOP WATCH]: Stop point is not set, " + e);
|
|
8199
8199
|
return () => {
|
|
8200
|
-
|
|
8200
|
+
k.current && (clearInterval(k.current), k.current = void 0);
|
|
8201
8201
|
};
|
|
8202
8202
|
}, [r, l, y]);
|
|
8203
8203
|
const _ = /* @__PURE__ */ t(() => {
|
|
8204
|
-
E(0),
|
|
8205
|
-
}, "reset"),
|
|
8204
|
+
E(0), k.current && (clearInterval(k.current), k.current = void 0);
|
|
8205
|
+
}, "reset"), S = /* @__PURE__ */ t((w) => w.toFixed(2), "formatTime");
|
|
8206
8206
|
return /* @__PURE__ */ M(
|
|
8207
8207
|
"div",
|
|
8208
8208
|
{
|
|
@@ -8213,7 +8213,7 @@ const Jl = /* @__PURE__ */ t(({
|
|
|
8213
8213
|
},
|
|
8214
8214
|
children: [
|
|
8215
8215
|
/* @__PURE__ */ M("span", { className: "stopwatch-time", children: [
|
|
8216
|
-
|
|
8216
|
+
S(b),
|
|
8217
8217
|
"s"
|
|
8218
8218
|
] }),
|
|
8219
8219
|
u && !r && b > 0 && /* @__PURE__ */ n(
|
|
@@ -8246,18 +8246,18 @@ const Jl = /* @__PURE__ */ t(({
|
|
|
8246
8246
|
onLinkClicked: y,
|
|
8247
8247
|
preview: b,
|
|
8248
8248
|
onDrawCodeBlock: E,
|
|
8249
|
-
isLastInlineInGroup:
|
|
8249
|
+
isLastInlineInGroup: k = !1
|
|
8250
8250
|
}) => {
|
|
8251
|
-
var K, V, se, Oe,
|
|
8252
|
-
const [_,
|
|
8253
|
-
|
|
8251
|
+
var K, V, se, Oe, J, ve;
|
|
8252
|
+
const [_, S] = G(null), w = te(null), A = te(null), f = Dt(), x = Ks(f.breakpoints.down("sm")), v = !!_, g = /* @__PURE__ */ t((oe) => {
|
|
8253
|
+
S(oe.currentTarget);
|
|
8254
8254
|
}, "handleViewClick"), p = /* @__PURE__ */ t(() => {
|
|
8255
|
-
|
|
8255
|
+
S(null);
|
|
8256
8256
|
}, "handleClose"), I = {
|
|
8257
8257
|
padding: "0px",
|
|
8258
8258
|
borderRadius: "0px",
|
|
8259
8259
|
margin: "0px"
|
|
8260
|
-
}, c = (K = l.functionDetails) == null ? void 0 : K.status, C = l.eventType === ge.PartialFunctionCall || l.eventType === ge.FunctionCall || l.eventType === ge.FunctionResponse, h = (se = (V = l.functionDetails) == null ? void 0 : V.start) == null ? void 0 : se.getTime(), R = (
|
|
8260
|
+
}, c = (K = l.functionDetails) == null ? void 0 : K.status, C = l.eventType === ge.PartialFunctionCall || l.eventType === ge.FunctionCall || l.eventType === ge.FunctionResponse, h = (se = (V = l.functionDetails) == null ? void 0 : V.start) == null ? void 0 : se.getTime(), R = (J = (Oe = l.functionDetails) == null ? void 0 : Oe.end) == null ? void 0 : J.getTime(), L = k || C && c !== "Done", W = L ? "parallax-container" : "";
|
|
8261
8261
|
de(() => {
|
|
8262
8262
|
A.current && L && A.current.scrollTo({
|
|
8263
8263
|
top: A.current.scrollHeight,
|
|
@@ -8289,7 +8289,7 @@ const Jl = /* @__PURE__ */ t(({
|
|
|
8289
8289
|
boxSizing: "border-box"
|
|
8290
8290
|
},
|
|
8291
8291
|
children: [
|
|
8292
|
-
|
|
8292
|
+
k && /* @__PURE__ */ n(
|
|
8293
8293
|
"div",
|
|
8294
8294
|
{
|
|
8295
8295
|
style: {
|
|
@@ -8516,7 +8516,7 @@ const Jl = /* @__PURE__ */ t(({
|
|
|
8516
8516
|
)
|
|
8517
8517
|
}
|
|
8518
8518
|
),
|
|
8519
|
-
|
|
8519
|
+
k && !L && /* @__PURE__ */ n("style", { children: `
|
|
8520
8520
|
@keyframes parallax-light {
|
|
8521
8521
|
0% { left: -100%; }
|
|
8522
8522
|
100% { left: 100%; }
|
|
@@ -8530,11 +8530,11 @@ const Jl = /* @__PURE__ */ t(({
|
|
|
8530
8530
|
];
|
|
8531
8531
|
function Rs({ streamedBytes: e = 0 }) {
|
|
8532
8532
|
const r = Math.floor(e / Ia), i = e % Ia / Ia, s = r + (i > 0 ? 1 : 0), u = Math.max(s, 1), l = Dt();
|
|
8533
|
-
function y(E,
|
|
8534
|
-
const
|
|
8533
|
+
function y(E, k = 2, _ = !0) {
|
|
8534
|
+
const S = Math.abs(E);
|
|
8535
8535
|
for (const [w, A] of mh)
|
|
8536
|
-
if (
|
|
8537
|
-
return (E / w).toFixed(
|
|
8536
|
+
if (S >= w)
|
|
8537
|
+
return (E / w).toFixed(k) + (_ ? A : "");
|
|
8538
8538
|
return E.toFixed(0) + "b";
|
|
8539
8539
|
}
|
|
8540
8540
|
t(y, "formatCompact");
|
|
@@ -8547,8 +8547,8 @@ function Rs({ streamedBytes: e = 0 }) {
|
|
|
8547
8547
|
gap: "3px",
|
|
8548
8548
|
ml: 1,
|
|
8549
8549
|
height: `${Ms + 2}px`
|
|
8550
|
-
}, children: Array.from({ length: u }, (E,
|
|
8551
|
-
const _ =
|
|
8550
|
+
}, children: Array.from({ length: u }, (E, k) => {
|
|
8551
|
+
const _ = k < r, S = k === r && i > 0, w = _ ? 1 : S ? i : 0, A = S && !_;
|
|
8552
8552
|
return /* @__PURE__ */ n(
|
|
8553
8553
|
Ee,
|
|
8554
8554
|
{
|
|
@@ -8578,7 +8578,7 @@ function Rs({ streamedBytes: e = 0 }) {
|
|
|
8578
8578
|
} : {}
|
|
8579
8579
|
} })
|
|
8580
8580
|
},
|
|
8581
|
-
|
|
8581
|
+
k
|
|
8582
8582
|
);
|
|
8583
8583
|
}) }),
|
|
8584
8584
|
/* @__PURE__ */ n(De, { direction: "row", alignItems: "center", gap: 0.5, sx: { fontSize: "0.78rem" }, children: /* @__PURE__ */ n(je, { variant: "body1", sx: { display: "inline-flex" }, children: b(e) }) })
|
|
@@ -8644,7 +8644,7 @@ const bh = /* @__PURE__ */ t(({
|
|
|
8644
8644
|
);
|
|
8645
8645
|
}, "FriendlyPartDisplay"), yh = { fontSize: 10, color: "currentColor" };
|
|
8646
8646
|
function xh(e) {
|
|
8647
|
-
var y, b, E,
|
|
8647
|
+
var y, b, E, k, _, S, w, A, f, x, v, g;
|
|
8648
8648
|
if (e.eventType === ge.PartialFunctionCall)
|
|
8649
8649
|
return {
|
|
8650
8650
|
title: es(((y = e.functionDetails) == null ? void 0 : y.name) ?? "Unknown"),
|
|
@@ -8652,14 +8652,14 @@ function xh(e) {
|
|
|
8652
8652
|
};
|
|
8653
8653
|
const r = (b = e.functionDetails) == null ? void 0 : b.name;
|
|
8654
8654
|
if (!r) {
|
|
8655
|
-
const p = e.eventType === ge.FunctionCall ? ((E = e.functionDetails) == null ? void 0 : E.args) ?? {} : ((
|
|
8655
|
+
const p = e.eventType === ge.FunctionCall ? ((E = e.functionDetails) == null ? void 0 : E.args) ?? {} : ((k = e.functionDetails) == null ? void 0 : k.response) ?? {}, c = (pt.isCharArray(p) ? p.join("") : pt.tryCollapseCharIndexedObject(p)) ?? p;
|
|
8656
8656
|
return {
|
|
8657
8657
|
title: "Unknown",
|
|
8658
8658
|
content: pt.jsonToString(c)
|
|
8659
8659
|
};
|
|
8660
8660
|
}
|
|
8661
8661
|
let i = es(r);
|
|
8662
|
-
const s = (
|
|
8662
|
+
const s = (S = (_ = e.functionDetails) == null ? void 0 : _.args) == null ? void 0 : S.query_type;
|
|
8663
8663
|
typeof s == "string" && s.length > 1 && (i += `: ${s[0].toLocaleUpperCase()}${s.slice(1)}`);
|
|
8664
8664
|
let u = 0;
|
|
8665
8665
|
(w = e.functionDetails) != null && w.start && ((A = e.functionDetails) != null && A.end) && (u = e.functionDetails.end.getTime() - e.functionDetails.start.getTime());
|
|
@@ -8703,7 +8703,7 @@ const vh = {
|
|
|
8703
8703
|
friendlyMode: u = !1,
|
|
8704
8704
|
onLinkClicked: l
|
|
8705
8705
|
}) => {
|
|
8706
|
-
var _,
|
|
8706
|
+
var _, S, w, A;
|
|
8707
8707
|
const y = xh(e);
|
|
8708
8708
|
if (u) {
|
|
8709
8709
|
const f = vh[e.eventType] ?? "partial";
|
|
@@ -8712,7 +8712,7 @@ const vh = {
|
|
|
8712
8712
|
{
|
|
8713
8713
|
toolName: ((_ = e.functionDetails) == null ? void 0 : _.name) ?? "unknown",
|
|
8714
8714
|
state: f,
|
|
8715
|
-
args: ((
|
|
8715
|
+
args: ((S = e.functionDetails) == null ? void 0 : S.args) ?? pt.getPartTextContent(e),
|
|
8716
8716
|
isError: !1,
|
|
8717
8717
|
startTime: (w = e.functionDetails) == null ? void 0 : w.start,
|
|
8718
8718
|
endTime: (A = e.functionDetails) == null ? void 0 : A.end,
|
|
@@ -8724,7 +8724,7 @@ const vh = {
|
|
|
8724
8724
|
|
|
8725
8725
|
${y.content}
|
|
8726
8726
|
|
|
8727
|
-
\`\`\``,
|
|
8727
|
+
\`\`\``, k = /* @__PURE__ */ t((f, x) => null, "onDrawCodeBlock");
|
|
8728
8728
|
return /* @__PURE__ */ n(
|
|
8729
8729
|
Yl,
|
|
8730
8730
|
{
|
|
@@ -8735,7 +8735,7 @@ ${y.content}
|
|
|
8735
8735
|
content: E,
|
|
8736
8736
|
part: e,
|
|
8737
8737
|
preview: i,
|
|
8738
|
-
onDrawCodeBlock:
|
|
8738
|
+
onDrawCodeBlock: k,
|
|
8739
8739
|
onLinkClicked: l,
|
|
8740
8740
|
isLastInlineInGroup: s
|
|
8741
8741
|
}
|
|
@@ -8771,12 +8771,12 @@ ${y.content}
|
|
|
8771
8771
|
isLastInlineInGroup: s,
|
|
8772
8772
|
onLinkClicked: u
|
|
8773
8773
|
}) => {
|
|
8774
|
-
var
|
|
8774
|
+
var k;
|
|
8775
8775
|
const l = e.eventType.toString(), b = `\`\`\`html
|
|
8776
8776
|
|
|
8777
|
-
${((
|
|
8777
|
+
${((k = e.rawDetails) == null ? void 0 : k.toString()) ?? ""}
|
|
8778
8778
|
|
|
8779
|
-
\`\`\``, E = /* @__PURE__ */ t((_,
|
|
8779
|
+
\`\`\``, E = /* @__PURE__ */ t((_, S) => null, "onDrawCodeBlock");
|
|
8780
8780
|
return /* @__PURE__ */ n(
|
|
8781
8781
|
Yl,
|
|
8782
8782
|
{
|
|
@@ -8805,7 +8805,7 @@ ${((S = e.rawDetails) == null ? void 0 : S.toString()) ?? ""}
|
|
|
8805
8805
|
borderRadius: 1.5,
|
|
8806
8806
|
border: 1,
|
|
8807
8807
|
borderColor: "error.main",
|
|
8808
|
-
bgcolor: /* @__PURE__ */ t((
|
|
8808
|
+
bgcolor: /* @__PURE__ */ t((k) => k.palette.error.main + "14", "bgcolor"),
|
|
8809
8809
|
alignItems: "flex-start"
|
|
8810
8810
|
},
|
|
8811
8811
|
children: [
|
|
@@ -8820,7 +8820,7 @@ ${((S = e.rawDetails) == null ? void 0 : S.toString()) ?? ""}
|
|
|
8820
8820
|
component: "button",
|
|
8821
8821
|
type: "button",
|
|
8822
8822
|
underline: "hover",
|
|
8823
|
-
onClick: /* @__PURE__ */ t(() => i((
|
|
8823
|
+
onClick: /* @__PURE__ */ t(() => i((k) => !k), "onClick"),
|
|
8824
8824
|
sx: { fontSize: "0.72rem", color: "text.secondary", mt: 0.5 },
|
|
8825
8825
|
children: r ? "ocultar detalhes técnicos" : "ver detalhes técnicos"
|
|
8826
8826
|
}
|
|
@@ -8887,8 +8887,8 @@ function Aa(e) {
|
|
|
8887
8887
|
if (!y) continue;
|
|
8888
8888
|
const b = Qn(y.text).trim();
|
|
8889
8889
|
if (!b) continue;
|
|
8890
|
-
const E = Qn(y.select).toLowerCase() === "multi" ? "multi" : "single",
|
|
8891
|
-
s.push({ id: _, text: b, select: E, options: Ri.includes(
|
|
8890
|
+
const E = Qn(y.select).toLowerCase() === "multi" ? "multi" : "single", k = (Array.isArray(y.options) ? y.options : []).filter((A) => typeof A == "string" && A.trim().length > 0).map((A) => A.trim()), _ = Qn(y.id).trim() || void 0, S = Eh(y, E, k.length > 0), w = S === "masked" && Qn(y.mask).trim() || void 0;
|
|
8891
|
+
s.push({ id: _, text: b, select: E, options: Ri.includes(S) ? k : [], kind: S, mask: w });
|
|
8892
8892
|
}
|
|
8893
8893
|
return s.length === 0 ? null : { title: Qn(r.title).trim() || void 0, questions: s };
|
|
8894
8894
|
}
|
|
@@ -8942,8 +8942,8 @@ function Ah(e) {
|
|
|
8942
8942
|
}
|
|
8943
8943
|
t(Ah, "sentinelOf$1");
|
|
8944
8944
|
const Mh = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
8945
|
-
var se, Oe,
|
|
8946
|
-
const { agentGatewayService: i } = ft(), [s, u] = G(null), [l, y] = G({}), b = gt(), E = (se = e.functionDetails) == null ? void 0 : se.id,
|
|
8945
|
+
var se, Oe, J, ve, oe;
|
|
8946
|
+
const { agentGatewayService: i } = ft(), [s, u] = G(null), [l, y] = G({}), b = gt(), E = (se = e.functionDetails) == null ? void 0 : se.id, k = Ce(
|
|
8947
8947
|
() => {
|
|
8948
8948
|
var j;
|
|
8949
8949
|
return Th((j = e.functionDetails) == null ? void 0 : j.args);
|
|
@@ -8955,15 +8955,15 @@ const Mh = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
|
8955
8955
|
}
|
|
8956
8956
|
t(_, "isPlainObject"), console.debug(
|
|
8957
8957
|
"[AskUserPart] typeof args:",
|
|
8958
|
-
typeof ((
|
|
8958
|
+
typeof ((J = e.functionDetails) == null ? void 0 : J.args),
|
|
8959
8959
|
"args:",
|
|
8960
8960
|
(ve = e.functionDetails) == null ? void 0 : ve.args,
|
|
8961
8961
|
"→ parsed?",
|
|
8962
|
-
!!
|
|
8962
|
+
!!k
|
|
8963
8963
|
);
|
|
8964
|
-
const
|
|
8965
|
-
if (!
|
|
8966
|
-
const { title: f, questions: x } =
|
|
8964
|
+
const S = e.eventType === ge.FunctionResponse ? ((oe = e.functionDetails) == null ? void 0 : oe.response) ?? null : null, w = s ?? S, A = w != null || !E || !k;
|
|
8965
|
+
if (!k) return null;
|
|
8966
|
+
const { title: f, questions: x } = k, v = /* @__PURE__ */ t((j) => x[j].id || String(j), "qid"), g = r ? { maxWidth: "100%" } : { border: "1px solid", borderColor: "divider", borderRadius: 2, px: 2, py: 1.5, my: 0.5, maxWidth: "100%" };
|
|
8967
8967
|
if (A) {
|
|
8968
8968
|
if ((_(w) ? JSON.stringify(w) : w).indexOf("Prompt cancelado") != -1)
|
|
8969
8969
|
return /* @__PURE__ */ M(_t, { sx: { display: "inline-flex", backgroundColor: b.palette.background.paper, px: 2, pb: 0.5, mb: 2, borderRadius: 1, flexWrap: "nowrap", alignItems: "center" }, direction: "row", gap: 1, children: [
|
|
@@ -9123,11 +9123,11 @@ function zh(e) {
|
|
|
9123
9123
|
t(zh, "sentinelOf");
|
|
9124
9124
|
const _h = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
9125
9125
|
var g, p, I;
|
|
9126
|
-
const { agentGatewayService: i, onRequestAuth: s, renderAuthPrompt: u } = ft(), [l, y] = G("idle"), b = te(null), E = (g = e.functionDetails) == null ? void 0 : g.id,
|
|
9126
|
+
const { agentGatewayService: i, onRequestAuth: s, renderAuthPrompt: u } = ft(), [l, y] = G("idle"), b = te(null), E = (g = e.functionDetails) == null ? void 0 : g.id, k = Ce(() => {
|
|
9127
9127
|
var c;
|
|
9128
9128
|
return Rh((c = e.functionDetails) == null ? void 0 : c.args);
|
|
9129
|
-
}, [(p = e.functionDetails) == null ? void 0 : p.args]), _ = e.eventType === ge.FunctionResponse ? ((I = e.functionDetails) == null ? void 0 : I.response) ?? null : null,
|
|
9130
|
-
if (
|
|
9129
|
+
}, [(p = e.functionDetails) == null ? void 0 : p.args]), _ = e.eventType === ge.FunctionResponse ? ((I = e.functionDetails) == null ? void 0 : I.response) ?? null : null, S = l === "done" || _ != null || !E, w = r ? { maxWidth: "100%", pb: 2 } : { border: "1px solid", borderColor: "divider", borderRadius: 2, px: 2, py: 1.5, my: 0.5, maxWidth: "100%" };
|
|
9130
|
+
if (S) {
|
|
9131
9131
|
const c = l === "done" ? null : zh(_);
|
|
9132
9132
|
return /* @__PURE__ */ n(D, { sx: w, children: /* @__PURE__ */ n(ne, { variant: "body2", sx: { color: "text.secondary" }, children: c ?? "✓ Conectado" }) });
|
|
9133
9133
|
}
|
|
@@ -9158,9 +9158,9 @@ const _h = /* @__PURE__ */ t(({ part: e, embedded: r = !1 }) => {
|
|
|
9158
9158
|
/* @__PURE__ */ n(ne, { variant: "caption", sx: { color: "error.main" }, children: "Login concluído, mas a resposta não chegou ao agente." }),
|
|
9159
9159
|
/* @__PURE__ */ n(Zt, { size: "small", onClick: f, sx: { textTransform: "none", fontSize: 12 }, children: "tentar novamente" })
|
|
9160
9160
|
] }),
|
|
9161
|
-
u({ reason:
|
|
9161
|
+
u({ reason: k, onToken: A, onCancel: x })
|
|
9162
9162
|
] }) : /* @__PURE__ */ M(D, { sx: w, children: [
|
|
9163
|
-
/* @__PURE__ */ n(ne, { variant: "body2", sx: { mb: 1.25 }, children:
|
|
9163
|
+
/* @__PURE__ */ n(ne, { variant: "body2", sx: { mb: 1.25 }, children: k || "Faça login para continuar." }),
|
|
9164
9164
|
s ? /* @__PURE__ */ M(_t, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
9165
9165
|
/* @__PURE__ */ n(
|
|
9166
9166
|
Zt,
|
|
@@ -9256,9 +9256,9 @@ function Dh() {
|
|
|
9256
9256
|
if (!l) return;
|
|
9257
9257
|
const y = Ma(l), b = s.get(y);
|
|
9258
9258
|
if (b) return b;
|
|
9259
|
-
let E,
|
|
9260
|
-
for (const [_,
|
|
9261
|
-
(y.endsWith("-" + _) || y.endsWith("_" + _)) && _.length >
|
|
9259
|
+
let E, k = -1;
|
|
9260
|
+
for (const [_, S] of s)
|
|
9261
|
+
(y.endsWith("-" + _) || y.endsWith("_" + _)) && _.length > k && (E = S, k = _.length);
|
|
9262
9262
|
return E;
|
|
9263
9263
|
},
|
|
9264
9264
|
resolveAskUser(l) {
|
|
@@ -9276,7 +9276,7 @@ function Dh() {
|
|
|
9276
9276
|
t(Dh, "createUiToolRegistry");
|
|
9277
9277
|
const Fo = /* @__PURE__ */ t((e) => {
|
|
9278
9278
|
var x, v;
|
|
9279
|
-
const { part: r, message: i, onGoing: s = !1, preview: u = !1, embedded: l } = e, y = Jt(wn), b = r.functionDetails, E = ph(b),
|
|
9279
|
+
const { part: r, message: i, onGoing: s = !1, preview: u = !1, embedded: l } = e, y = Jt(wn), b = r.functionDetails, E = ph(b), k = Dt(), _ = y == null ? void 0 : y.askUserInlineContainer, S = (y == null ? void 0 : y.askUserPresentation) === "inline" && (b == null ? void 0 : b.parked) === !0 && (b == null ? void 0 : b.status) !== "Done" && !l, w = l || S && !!_, A = /* @__PURE__ */ t((g) => S && _ ? /* @__PURE__ */ n(_, { toolName: ql(b == null ? void 0 : b.name), children: g }) : g, "wrap"), f = (x = y == null ? void 0 : y.uiTools) == null ? void 0 : x.resolveAskUser(E);
|
|
9280
9280
|
if (f) {
|
|
9281
9281
|
const g = f.parse ? f.parse(b == null ? void 0 : b.args) : Ho(b == null ? void 0 : b.args), p = {
|
|
9282
9282
|
name: f.name,
|
|
@@ -9297,7 +9297,7 @@ const Fo = /* @__PURE__ */ t((e) => {
|
|
|
9297
9297
|
}, I = (b == null ? void 0 : b.status) === "Done", c = (v = b == null ? void 0 : b.response) == null ? void 0 : v.toString();
|
|
9298
9298
|
if (!l && I) {
|
|
9299
9299
|
if ((c == null ? void 0 : c.indexOf("Prompt cancelado")) != -1)
|
|
9300
|
-
return /* @__PURE__ */ M(De, { sx: { display: "inline-flex", backgroundColor:
|
|
9300
|
+
return /* @__PURE__ */ M(De, { sx: { display: "inline-flex", backgroundColor: k.palette.background.paper, px: 2, pb: 0.5, mb: 2, borderRadius: 1, flexWrap: "nowrap", alignItems: "center" }, direction: "row", gap: 1, children: [
|
|
9301
9301
|
/* @__PURE__ */ n(il, { sx: { display: "inline-flex", mt: 0.5 } }),
|
|
9302
9302
|
/* @__PURE__ */ n(je, { variant: "body2", sx: { display: "inline-flex", mt: 1, color: "text.secondary" }, children: "Prompt Cancelado" })
|
|
9303
9303
|
] });
|
|
@@ -9332,13 +9332,13 @@ const nc = /* @__PURE__ */ t(({ children: e }) => {
|
|
|
9332
9332
|
var A;
|
|
9333
9333
|
const { part: r, message: i, onGoing: s, preview: u } = e, l = Jt(wn), y = tc(), b = r.functionDetails, E = (A = l == null ? void 0 : l.uiTools) == null ? void 0 : A.resolve(b == null ? void 0 : b.name);
|
|
9334
9334
|
if (!E) return /* @__PURE__ */ n(Oo, { ...e });
|
|
9335
|
-
const
|
|
9335
|
+
const k = (b == null ? void 0 : b.id) ?? "", _ = zi(b == null ? void 0 : b.clientOutput);
|
|
9336
9336
|
if (E.kind === "action")
|
|
9337
9337
|
return /* @__PURE__ */ n(
|
|
9338
9338
|
Ph,
|
|
9339
9339
|
{
|
|
9340
9340
|
entry: E,
|
|
9341
|
-
callId:
|
|
9341
|
+
callId: k,
|
|
9342
9342
|
rawArgs: b == null ? void 0 : b.args,
|
|
9343
9343
|
response: b == null ? void 0 : b.response,
|
|
9344
9344
|
clientOutput: _,
|
|
@@ -9350,11 +9350,11 @@ const nc = /* @__PURE__ */ t(({ children: e }) => {
|
|
|
9350
9350
|
}
|
|
9351
9351
|
);
|
|
9352
9352
|
if (E.kind !== "render") return /* @__PURE__ */ n(Oo, { ...e });
|
|
9353
|
-
const
|
|
9354
|
-
if (
|
|
9353
|
+
const S = E.parse ? E.parse(b == null ? void 0 : b.args) : Ho(b == null ? void 0 : b.args);
|
|
9354
|
+
if (S == null) return null;
|
|
9355
9355
|
const w = {
|
|
9356
9356
|
name: E.name,
|
|
9357
|
-
callId:
|
|
9357
|
+
callId: k,
|
|
9358
9358
|
response: b == null ? void 0 : b.response,
|
|
9359
9359
|
clientOutput: _,
|
|
9360
9360
|
parts: i.parts,
|
|
@@ -9364,12 +9364,12 @@ const nc = /* @__PURE__ */ t(({ children: e }) => {
|
|
|
9364
9364
|
answer: /* @__PURE__ */ t((f) => {
|
|
9365
9365
|
var x;
|
|
9366
9366
|
return (x = l == null ? void 0 : l.agentGatewayService) == null ? void 0 : x.answerHumanTool(
|
|
9367
|
-
|
|
9367
|
+
k,
|
|
9368
9368
|
typeof f == "string" ? f : JSON.stringify(f)
|
|
9369
9369
|
);
|
|
9370
9370
|
}, "answer")
|
|
9371
9371
|
};
|
|
9372
|
-
return /* @__PURE__ */ n(Ee, { "data-ui-tool-content": "", children: E.render(
|
|
9372
|
+
return /* @__PURE__ */ n(Ee, { "data-ui-tool-content": "", children: E.render(S, w) });
|
|
9373
9373
|
}, "UiToolDispatcher"), Ph = /* @__PURE__ */ t(({
|
|
9374
9374
|
entry: e,
|
|
9375
9375
|
callId: r,
|
|
@@ -9380,9 +9380,9 @@ const nc = /* @__PURE__ */ t(({ children: e }) => {
|
|
|
9380
9380
|
message: y,
|
|
9381
9381
|
onGoing: b,
|
|
9382
9382
|
preview: E,
|
|
9383
|
-
env:
|
|
9383
|
+
env: k
|
|
9384
9384
|
}) => {
|
|
9385
|
-
const _ = te(null), [
|
|
9385
|
+
const _ = te(null), [S, w] = G(null);
|
|
9386
9386
|
return de(() => {
|
|
9387
9387
|
if (_.current === r) return;
|
|
9388
9388
|
_.current = r;
|
|
@@ -9400,7 +9400,7 @@ const nc = /* @__PURE__ */ t(({ children: e }) => {
|
|
|
9400
9400
|
message: y,
|
|
9401
9401
|
onGoing: b,
|
|
9402
9402
|
preview: E,
|
|
9403
|
-
env:
|
|
9403
|
+
env: k,
|
|
9404
9404
|
answer: /* @__PURE__ */ t(() => {
|
|
9405
9405
|
}, "answer")
|
|
9406
9406
|
};
|
|
@@ -9410,7 +9410,7 @@ const nc = /* @__PURE__ */ t(({ children: e }) => {
|
|
|
9410
9410
|
}).catch((x) => {
|
|
9411
9411
|
console.error("[uiTool] action failed:", e.name, x), w({ label: "Ação não pôde ser executada", ok: !1 });
|
|
9412
9412
|
});
|
|
9413
|
-
}, [r]),
|
|
9413
|
+
}, [r]), S ? /* @__PURE__ */ n(Ee, { sx: { my: 0.5 }, children: /* @__PURE__ */ n(_n, { size: "small", variant: "outlined", color: S.ok ? "default" : "error", label: S.label }) }) : null;
|
|
9414
9414
|
}, "UiToolActionRunner"), _i = {
|
|
9415
9415
|
text: Gl,
|
|
9416
9416
|
thought: Jl,
|
|
@@ -9474,11 +9474,11 @@ const Cr = ht.memo((e) => {
|
|
|
9474
9474
|
const s = ((u = r == null ? void 0 : r.partRenderers) == null ? void 0 : u[i]) ?? _i[i];
|
|
9475
9475
|
return /* @__PURE__ */ n(s, { ...e });
|
|
9476
9476
|
}, (e, r) => {
|
|
9477
|
-
var i, s, u, l, y, b, E,
|
|
9478
|
-
return !(e.part.id !== r.part.id || (((i = e.part.textDetails) == null ? void 0 : i.version) ?? 0) < (((s = r.part.textDetails) == null ? void 0 : s.version) ?? 0) || e.part.text !== r.part.text || e.part.eventType !== r.part.eventType || e.part.partial !== r.part.partial || ((u = e.part.functionDetails) == null ? void 0 : u.text) !== ((l = r.part.functionDetails) == null ? void 0 : l.text) || ((y = e.part.functionDetails) == null ? void 0 : y.args) !== ((b = r.part.functionDetails) == null ? void 0 : b.args) || ((E = e.part.functionDetails) == null ? void 0 : E.response) !== ((
|
|
9477
|
+
var i, s, u, l, y, b, E, k, _, S, w, A;
|
|
9478
|
+
return !(e.part.id !== r.part.id || (((i = e.part.textDetails) == null ? void 0 : i.version) ?? 0) < (((s = r.part.textDetails) == null ? void 0 : s.version) ?? 0) || e.part.text !== r.part.text || e.part.eventType !== r.part.eventType || e.part.partial !== r.part.partial || ((u = e.part.functionDetails) == null ? void 0 : u.text) !== ((l = r.part.functionDetails) == null ? void 0 : l.text) || ((y = e.part.functionDetails) == null ? void 0 : y.args) !== ((b = r.part.functionDetails) == null ? void 0 : b.args) || ((E = e.part.functionDetails) == null ? void 0 : E.response) !== ((k = r.part.functionDetails) == null ? void 0 : k.response) || ((_ = e.part.waitingDetails) == null ? void 0 : _.status) !== ((S = r.part.waitingDetails) == null ? void 0 : S.status) || ((w = e.part.waitingDetails) == null ? void 0 : w.stopPoint) !== ((A = r.part.waitingDetails) == null ? void 0 : A.stopPoint) || e.message.turn_complete !== r.message.turn_complete || e.message.asyncFinalResponse !== r.message.asyncFinalResponse || e.isLastInlineInGroup !== r.isLastInlineInGroup || e.preview !== r.preview || e.friendlyMode !== r.friendlyMode);
|
|
9479
9479
|
}), Fh = /* @__PURE__ */ t(({ message: e, onLinkClicked: r }) => {
|
|
9480
9480
|
var c, C;
|
|
9481
|
-
const [i, s] = G(null), [u, l] = G(!1), { onRenderPrompt: y, userMessageRenderer: b, showPersona: E } = ft(),
|
|
9481
|
+
const [i, s] = G(null), [u, l] = G(!1), { onRenderPrompt: y, userMessageRenderer: b, showPersona: E } = ft(), k = e.parts.filter((h) => h.eventType === ge.UserAnswer), _ = gt(), S = 20;
|
|
9482
9482
|
let w = e.parts.some((h) => {
|
|
9483
9483
|
var R;
|
|
9484
9484
|
return (R = h.thoughtDetails) == null ? void 0 : R.text;
|
|
@@ -9520,7 +9520,7 @@ const Cr = ht.memo((e) => {
|
|
|
9520
9520
|
`);
|
|
9521
9521
|
return w = w && p.length > 0, A = A && I.length > 0, /* @__PURE__ */ M(ie, { children: [
|
|
9522
9522
|
(c = e.interactionQuestion) != null && c.trim() ? /* @__PURE__ */ n(Vl, { tone: "light", isUser: !0, message: e }) : null,
|
|
9523
|
-
/* @__PURE__ */ n(D, { sx: { pl: E && ((C = e.interactionQuestion) != null && C.trim()) ? `var(--aia-persona-indent, ${Ul}px)` : 0 }, children:
|
|
9523
|
+
/* @__PURE__ */ n(D, { sx: { pl: E && ((C = e.interactionQuestion) != null && C.trim()) ? `var(--aia-persona-indent, ${Ul}px)` : 0 }, children: k.length > 0 ? k.map((h) => /* @__PURE__ */ n(
|
|
9524
9524
|
Cr,
|
|
9525
9525
|
{
|
|
9526
9526
|
part: h,
|
|
@@ -9565,7 +9565,7 @@ const Cr = ht.memo((e) => {
|
|
|
9565
9565
|
sx: {
|
|
9566
9566
|
color: "text.secondary",
|
|
9567
9567
|
fontStyle: "italic",
|
|
9568
|
-
lineHeight: `${
|
|
9568
|
+
lineHeight: `${S}px`,
|
|
9569
9569
|
flex: 1,
|
|
9570
9570
|
ml: 1,
|
|
9571
9571
|
maxHeight: "100px",
|
|
@@ -9746,23 +9746,28 @@ const Cr = ht.memo((e) => {
|
|
|
9746
9746
|
] });
|
|
9747
9747
|
}, "MessageUser"), Lh = "reasoningHeadline";
|
|
9748
9748
|
function jh(e) {
|
|
9749
|
-
var l, y;
|
|
9749
|
+
var l, y, b;
|
|
9750
9750
|
const r = [];
|
|
9751
9751
|
let i = null, s = !1;
|
|
9752
9752
|
const u = /* @__PURE__ */ t(() => {
|
|
9753
9753
|
i && s && r.push(i), i = null, s = !1;
|
|
9754
9754
|
}, "close");
|
|
9755
|
-
for (const
|
|
9756
|
-
if (
|
|
9755
|
+
for (const E of e) {
|
|
9756
|
+
if (E.eventType === ge.Thought) {
|
|
9757
9757
|
i ?? (i = []), s = !0;
|
|
9758
|
-
for (const
|
|
9758
|
+
for (const k of ((l = E.thoughtDetails) == null ? void 0 : l.headlines) ?? []) k && !i.includes(k) && i.push(k);
|
|
9759
9759
|
continue;
|
|
9760
9760
|
}
|
|
9761
|
-
if (
|
|
9762
|
-
if (((y = b.toolDetails) == null ? void 0 : y.eventName) !== Lh) continue;
|
|
9761
|
+
if (E.eventType === ge.ThoughtHighlight) {
|
|
9763
9762
|
i ?? (i = []);
|
|
9764
|
-
const
|
|
9765
|
-
|
|
9763
|
+
for (const k of ((y = E.thoughtDetails) == null ? void 0 : y.headlines) ?? []) k && !i.includes(k) && i.push(k);
|
|
9764
|
+
continue;
|
|
9765
|
+
}
|
|
9766
|
+
if (E.eventType === ge.ToolEvent) {
|
|
9767
|
+
if (((b = E.toolDetails) == null ? void 0 : b.eventName) !== Lh) continue;
|
|
9768
|
+
i ?? (i = []);
|
|
9769
|
+
const k = $h(E.toolDetails.eventData);
|
|
9770
|
+
k && !i.includes(k) && i.push(k);
|
|
9766
9771
|
continue;
|
|
9767
9772
|
}
|
|
9768
9773
|
u();
|
|
@@ -9855,42 +9860,42 @@ function Hh(e, r, i = !1) {
|
|
|
9855
9860
|
}
|
|
9856
9861
|
t(Hh, "hideUnfinishedUiParts");
|
|
9857
9862
|
const ic = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s, onLinkClicked: u, appendWaitingPart: l, messagesRef: y, isConnectionOpen: b, friendlyMode: E = !1 }) => {
|
|
9858
|
-
const { showToolCalls:
|
|
9863
|
+
const { showToolCalls: k, summarizedReasoning: _, showReasoningTrace: S, showPersona: w, askUserPresentation: A } = ft(), f = gt(), x = te(null), [v, g] = G(!1), p = te(null);
|
|
9859
9864
|
p.current == null && (p.current = new ei());
|
|
9860
9865
|
const I = p.current;
|
|
9861
9866
|
de(() => {
|
|
9862
|
-
const
|
|
9863
|
-
if (!
|
|
9867
|
+
const J = x.current;
|
|
9868
|
+
if (!J) return;
|
|
9864
9869
|
const ve = new ResizeObserver((oe) => {
|
|
9865
9870
|
var he;
|
|
9866
9871
|
const j = ((he = oe[0]) == null ? void 0 : he.contentRect.width) ?? 0;
|
|
9867
9872
|
g(j < f.breakpoints.values.md);
|
|
9868
9873
|
});
|
|
9869
|
-
return ve.observe(
|
|
9874
|
+
return ve.observe(J), () => ve.disconnect();
|
|
9870
9875
|
}, [f.breakpoints.values.md]);
|
|
9871
|
-
const c = e.isSuspended === !0, C = (e.parts ?? []).filter((
|
|
9876
|
+
const c = e.isSuspended === !0, C = (e.parts ?? []).filter((J) => J.eventType !== ge.UserAnswer).length;
|
|
9872
9877
|
let h = null, R = null;
|
|
9873
9878
|
if (c ? h = pt.createSuspended() : h = pt.createWaiting(b && C == 0, !1, "", /* @__PURE__ */ new Date()), l && (!e.parts || e.parts.length == 1) && (R = pt.fromText("Planejando próximos passos", "system", "planningPart")), !e.asyncFinalResponse && e.parts.length > 0) {
|
|
9874
|
-
const
|
|
9875
|
-
|
|
9879
|
+
const J = e.parts[e.parts.length - 1];
|
|
9880
|
+
J.waitingDetails && (J.waitingDetails.loadDots = !0);
|
|
9876
9881
|
}
|
|
9877
9882
|
const L = new Ed(e, new Td());
|
|
9878
9883
|
let W = [];
|
|
9879
9884
|
if (!e.parts)
|
|
9880
9885
|
return null;
|
|
9881
9886
|
let N = 0;
|
|
9882
|
-
const Z = Hh(e.parts ?? [], r, A === "inline").filter((
|
|
9887
|
+
const Z = Hh(e.parts ?? [], r, A === "inline").filter((J) => {
|
|
9883
9888
|
var ve, oe, j;
|
|
9884
|
-
return
|
|
9889
|
+
return J.eventType === ge.ToolEvent || J.eventType === ge.ThoughtHighlight ? !0 : J.eventType === ge.UserAnswer || J.eventType === ge.FunctionClientOutput ? !1 : J.eventType === ge.FunctionCall || J.eventType === ge.FunctionResponse || J.eventType === ge.PartialFunctionCall ? ((ve = J.functionDetails) == null ? void 0 : ve.cancelUi) !== !0 && ((oe = J.functionDetails) != null && oe.isUi || (j = J.functionDetails) != null && j.isAskUser) ? !0 : k : J.eventType === ge.Thought ? r || (_ ? S : k) : !0;
|
|
9885
9890
|
}), q = jh(Z), ce = q.length - 1;
|
|
9886
|
-
let K = Z.filter((
|
|
9891
|
+
let K = Z.filter((J) => {
|
|
9887
9892
|
var ve, oe, j;
|
|
9888
|
-
return
|
|
9893
|
+
return J.eventType === ge.ToolEvent || J.eventType === ge.ThoughtHighlight || J.eventType === ge.UserAnswer || J.eventType === ge.FunctionClientOutput ? !1 : J.eventType === ge.FunctionCall || J.eventType === ge.FunctionResponse || J.eventType === ge.PartialFunctionCall ? ((ve = J.functionDetails) == null ? void 0 : ve.cancelUi) !== !0 && ((oe = J.functionDetails) != null && oe.isUi || (j = J.functionDetails) != null && j.isAskUser) ? !0 : k : J.eventType === ge.Thought ? r || (_ ? S : k) : !0;
|
|
9889
9894
|
});
|
|
9890
|
-
const V = K.filter((
|
|
9891
|
-
I.setStagedKeys(V.map((
|
|
9892
|
-
const se = /* @__PURE__ */ t((
|
|
9893
|
-
const ve = E ||
|
|
9895
|
+
const V = K.filter((J) => vo(J) !== void 0);
|
|
9896
|
+
I.setStagedKeys(V.map((J) => vo(J))), W = L.groupPartsByDisplayType(K, r, k);
|
|
9897
|
+
const se = /* @__PURE__ */ t((J) => {
|
|
9898
|
+
const ve = E || J.type !== "inline";
|
|
9894
9899
|
return {
|
|
9895
9900
|
display: "flex",
|
|
9896
9901
|
flexDirection: ve ? "column" : "row",
|
|
@@ -9900,12 +9905,12 @@ const ic = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
9900
9905
|
alignItems: "flex-start",
|
|
9901
9906
|
maxWidth: "100%"
|
|
9902
9907
|
};
|
|
9903
|
-
}, "getStyleGroup"), Oe = /* @__PURE__ */ t((
|
|
9904
|
-
const oe = vo(
|
|
9908
|
+
}, "getStyleGroup"), Oe = /* @__PURE__ */ t((J, ve) => {
|
|
9909
|
+
const oe = vo(J), j = oe ? /* @__PURE__ */ n(ac, { slotKey: oe, priority: Bh }) : /* @__PURE__ */ n(
|
|
9905
9910
|
Cr,
|
|
9906
9911
|
{
|
|
9907
9912
|
onGoing: r,
|
|
9908
|
-
part:
|
|
9913
|
+
part: J,
|
|
9909
9914
|
message: e,
|
|
9910
9915
|
onLinkClicked: u,
|
|
9911
9916
|
friendlyMode: E,
|
|
@@ -9914,7 +9919,7 @@ const ic = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
9914
9919
|
}
|
|
9915
9920
|
);
|
|
9916
9921
|
if (ve.isThoughtRun)
|
|
9917
|
-
return /* @__PURE__ */ n(ht.Fragment, { children: j }, `${e.interactionId}-${
|
|
9922
|
+
return /* @__PURE__ */ n(ht.Fragment, { children: j }, `${e.interactionId}-${J.id}`);
|
|
9918
9923
|
const he = E || ve.type !== "inline";
|
|
9919
9924
|
return /* @__PURE__ */ n(
|
|
9920
9925
|
"div",
|
|
@@ -9922,7 +9927,7 @@ const ic = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
9922
9927
|
style: he ? { width: "100%", marginTop: 1 } : { flex: v ? "1 1 100%" : "1 1 calc(50% - 4px)", maxWidth: v ? "100%" : "calc(50% - 4px)", marginTop: 2 },
|
|
9923
9928
|
children: j
|
|
9924
9929
|
},
|
|
9925
|
-
`${e.interactionId}-${
|
|
9930
|
+
`${e.interactionId}-${J.id}`
|
|
9926
9931
|
);
|
|
9927
9932
|
}, "getMessagePart");
|
|
9928
9933
|
return /* @__PURE__ */ n(Di.Provider, { value: I, children: /* @__PURE__ */ M(_t, { children: [
|
|
@@ -9944,49 +9949,49 @@ const ic = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
9944
9949
|
},
|
|
9945
9950
|
"data-interaction-question": e.interactionQuestion,
|
|
9946
9951
|
"data-interactionid": e.interactionId,
|
|
9947
|
-
ref: /* @__PURE__ */ t((
|
|
9952
|
+
ref: /* @__PURE__ */ t((J) => {
|
|
9948
9953
|
var ve;
|
|
9949
|
-
x.current =
|
|
9954
|
+
x.current = J, J && ((ve = y == null ? void 0 : y.current) == null || ve.set(e.interactionId, J));
|
|
9950
9955
|
}, "ref"),
|
|
9951
9956
|
children: [
|
|
9952
9957
|
R && /* @__PURE__ */ n(Cr, { onGoing: r, part: R, message: e, onLinkClicked: u, preview: s, friendlyMode: E }),
|
|
9953
|
-
W.map((
|
|
9954
|
-
const oe =
|
|
9955
|
-
(he) => Oe(he,
|
|
9958
|
+
W.map((J, ve) => {
|
|
9959
|
+
const oe = J.parts.map(
|
|
9960
|
+
(he) => Oe(he, J)
|
|
9956
9961
|
).filter((he) => he != null);
|
|
9957
|
-
if (!(
|
|
9962
|
+
if (!(J.parts.length > 0 && oe.length > 0)) return !1;
|
|
9958
9963
|
const j = `group-${ve}-${e.interactionId}-${i}`;
|
|
9959
|
-
return
|
|
9964
|
+
return J.isThoughtRun ? /* @__PURE__ */ n(
|
|
9960
9965
|
fh,
|
|
9961
9966
|
{
|
|
9962
|
-
parts:
|
|
9963
|
-
isLive: r && (
|
|
9967
|
+
parts: J.parts,
|
|
9968
|
+
isLive: r && (J.lastWithThoughts || J.isLastGroup),
|
|
9964
9969
|
friendlyMode: E,
|
|
9965
9970
|
headlines: q[N] ?? [],
|
|
9966
9971
|
isLastThought: N++ === ce,
|
|
9967
9972
|
summarized: _,
|
|
9968
|
-
showTrace:
|
|
9973
|
+
showTrace: S,
|
|
9969
9974
|
children: oe
|
|
9970
9975
|
},
|
|
9971
9976
|
j
|
|
9972
9977
|
) : /* @__PURE__ */ n(
|
|
9973
9978
|
"div",
|
|
9974
9979
|
{
|
|
9975
|
-
style: se(
|
|
9980
|
+
style: se(J),
|
|
9976
9981
|
children: oe
|
|
9977
9982
|
},
|
|
9978
9983
|
j
|
|
9979
9984
|
);
|
|
9980
9985
|
}),
|
|
9981
9986
|
(l || c) && h && /* @__PURE__ */ n(ie, { children: /* @__PURE__ */ n(Cr, { onGoing: r, part: h, message: e, onLinkClicked: u, preview: s, friendlyMode: E }) }),
|
|
9982
|
-
V.map((
|
|
9987
|
+
V.map((J) => Nh(
|
|
9983
9988
|
I,
|
|
9984
|
-
vo(
|
|
9989
|
+
vo(J),
|
|
9985
9990
|
/* @__PURE__ */ n(
|
|
9986
9991
|
Cr,
|
|
9987
9992
|
{
|
|
9988
9993
|
onGoing: r,
|
|
9989
|
-
part:
|
|
9994
|
+
part: J,
|
|
9990
9995
|
message: e,
|
|
9991
9996
|
onLinkClicked: u,
|
|
9992
9997
|
friendlyMode: E,
|
|
@@ -10009,7 +10014,7 @@ const ic = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
10009
10014
|
const i = xe((q) => {
|
|
10010
10015
|
var ce;
|
|
10011
10016
|
return (ce = q.session) == null ? void 0 : ce.id;
|
|
10012
|
-
}), s = xe((q) => q.loadingType), u = xe((q) => q.loading), l = xe((q) => q.messages), y = xe((q) => q.sendingMessage), b = xe((q) => q.currentMessage), [E,
|
|
10017
|
+
}), s = xe((q) => q.loadingType), u = xe((q) => q.loading), l = xe((q) => q.messages), y = xe((q) => q.sendingMessage), b = xe((q) => q.currentMessage), [E, k] = G(null), _ = te(null), S = gt(), w = S.breakpoints.down("sm");
|
|
10013
10018
|
de(() => {
|
|
10014
10019
|
}, [w]);
|
|
10015
10020
|
const { onVisibleQuestionChange: A } = ft(), [f, x] = G(null), [v] = G(null), [g, p] = G(!1), I = Ju((q) => {
|
|
@@ -10027,8 +10032,8 @@ const ic = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
10027
10032
|
var V = [];
|
|
10028
10033
|
K.forEach((se) => {
|
|
10029
10034
|
if (se.isIntersecting) {
|
|
10030
|
-
const Oe = se.target.getAttribute("data-interaction-question"),
|
|
10031
|
-
V.push({ question: Oe, interactionId:
|
|
10035
|
+
const Oe = se.target.getAttribute("data-interaction-question"), J = se.target.getAttribute("data-interactionid");
|
|
10036
|
+
V.push({ question: Oe, interactionId: J ?? "", ratio: se.intersectionRatio });
|
|
10032
10037
|
}
|
|
10033
10038
|
}), V.sort((se, Oe) => se.interactionId > Oe.interactionId ? 1 : -1), V.length > 0 && V[0].question && I({
|
|
10034
10039
|
question: V[0].question
|
|
@@ -10063,9 +10068,9 @@ const ic = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
10063
10068
|
---
|
|
10064
10069
|
|
|
10065
10070
|
`), W = !!E, N = /* @__PURE__ */ t((q) => {
|
|
10066
|
-
|
|
10071
|
+
k(q.currentTarget);
|
|
10067
10072
|
}, "handleTipsClick"), Z = /* @__PURE__ */ t(() => {
|
|
10068
|
-
|
|
10073
|
+
k(null);
|
|
10069
10074
|
}, "handleTipsClose");
|
|
10070
10075
|
return f && r ? /* @__PURE__ */ n(D, { sx: {
|
|
10071
10076
|
position: "relative",
|
|
@@ -10074,7 +10079,7 @@ const ic = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
10074
10079
|
width: "calc(100% + 36px)",
|
|
10075
10080
|
zIndex: 100,
|
|
10076
10081
|
backgroundColor: "rgba(30, 30, 30,0.8)",
|
|
10077
|
-
borderBottom: `1px solid ${
|
|
10082
|
+
borderBottom: `1px solid ${S.palette.divider}`,
|
|
10078
10083
|
alignContent: "center",
|
|
10079
10084
|
backdropFilter: "blur(2px)",
|
|
10080
10085
|
transition: "all 0.5s ease",
|
|
@@ -10096,20 +10101,20 @@ const ic = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
10096
10101
|
gap: 1,
|
|
10097
10102
|
"&::-webkit-scrollbar": {
|
|
10098
10103
|
width: "5px",
|
|
10099
|
-
background:
|
|
10104
|
+
background: S.palette.background.default
|
|
10100
10105
|
},
|
|
10101
10106
|
"&::-webkit-scrollbar-track": {
|
|
10102
|
-
background:
|
|
10107
|
+
background: S.palette.background.default,
|
|
10103
10108
|
width: "1px"
|
|
10104
10109
|
},
|
|
10105
10110
|
"&::-webkit-scrollbar-thumb": {
|
|
10106
|
-
background:
|
|
10111
|
+
background: S.palette.background.default,
|
|
10107
10112
|
border: "1px solid",
|
|
10108
10113
|
width: "5px",
|
|
10109
|
-
borderColor:
|
|
10114
|
+
borderColor: S.palette.grey[800],
|
|
10110
10115
|
borderRadius: "4px",
|
|
10111
10116
|
"&:hover": {
|
|
10112
|
-
background:
|
|
10117
|
+
background: S.palette.background.default
|
|
10113
10118
|
}
|
|
10114
10119
|
}
|
|
10115
10120
|
},
|
|
@@ -10182,12 +10187,12 @@ const ic = /* @__PURE__ */ t(({ message: e, onGoing: r, container: i, preview: s
|
|
|
10182
10187
|
{
|
|
10183
10188
|
onClick: N,
|
|
10184
10189
|
sx: {
|
|
10185
|
-
color:
|
|
10190
|
+
color: S.palette.primary.dark,
|
|
10186
10191
|
ml: 1,
|
|
10187
10192
|
transform: "scale(1.0)",
|
|
10188
10193
|
transition: "all 2.4s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
10189
10194
|
"&:hover": {
|
|
10190
|
-
color:
|
|
10195
|
+
color: S.palette.primary.dark,
|
|
10191
10196
|
transform: "scale(1.2)",
|
|
10192
10197
|
transition: "all 0.3s cubic-bezier(0.4, 0, 0.2, 1)"
|
|
10193
10198
|
},
|
|
@@ -10365,12 +10370,12 @@ const qh = {}, lc = /* @__PURE__ */ t(({ onLinkClicked: e, eventBusService: r, m
|
|
|
10365
10370
|
}, "CurrentMessage"), cc = "Prompt cancelado";
|
|
10366
10371
|
function Oi() {
|
|
10367
10372
|
var E;
|
|
10368
|
-
const e = xe((
|
|
10369
|
-
var
|
|
10373
|
+
const e = xe((k) => k.turnOpen), r = xe((k) => k.currentMessage), { agentGatewayService: i } = ft(), s = Ce(() => {
|
|
10374
|
+
var k, _;
|
|
10370
10375
|
if (!e || !(r != null && r.parts)) return null;
|
|
10371
|
-
for (let
|
|
10372
|
-
const w = r.parts[
|
|
10373
|
-
if (Rr(w.functionDetails) && w.eventType === ge.FunctionCall && ((
|
|
10376
|
+
for (let S = r.parts.length - 1; S >= 0; S--) {
|
|
10377
|
+
const w = r.parts[S];
|
|
10378
|
+
if (Rr(w.functionDetails) && w.eventType === ge.FunctionCall && ((k = w.functionDetails) == null ? void 0 : k.parked) === !0 && ((_ = w.functionDetails) == null ? void 0 : _.status) !== "Done")
|
|
10374
10379
|
return w;
|
|
10375
10380
|
}
|
|
10376
10381
|
return null;
|
|
@@ -10393,11 +10398,11 @@ function Oi() {
|
|
|
10393
10398
|
t(Oi, "useParkedAskUser");
|
|
10394
10399
|
const _s = "O agente enviou esta pergunta, responda para que ele possa continuar", Kh = 450, xn = 80, dc = /* @__PURE__ */ t(({ promptHeight: e, eyebrowLabel: r = "pergunta do agente", initiallyCollapsed: i = !0 }) => {
|
|
10395
10400
|
var R, L, W;
|
|
10396
|
-
const s = gt(), [u, l] = G(i), [y, b] = G(!1), [E,
|
|
10401
|
+
const s = gt(), [u, l] = G(i), [y, b] = G(!1), [E, k] = G(!1), { askUserPresentation: _ } = ft(), { parked: S, toRender: w, currentMessage: A, turnOpen: f, cancel: x } = Oi(), v = (R = S == null ? void 0 : S.functionDetails) == null ? void 0 : R.id;
|
|
10397
10402
|
de(() => {
|
|
10398
|
-
l(i), b(!1),
|
|
10403
|
+
l(i), b(!1), k(!1);
|
|
10399
10404
|
}, [v, i]);
|
|
10400
|
-
const g = !!
|
|
10405
|
+
const g = !!S && u, p = g && !E, [I, c] = G(!1);
|
|
10401
10406
|
de(() => {
|
|
10402
10407
|
if (!p) {
|
|
10403
10408
|
c(!1);
|
|
@@ -10407,7 +10412,7 @@ const _s = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10407
10412
|
return () => clearTimeout(N);
|
|
10408
10413
|
}, [p, v]);
|
|
10409
10414
|
const C = p && I || y, h = p && I;
|
|
10410
|
-
return _ === "inline" ? null : /* @__PURE__ */ n(dl, { direction: "up", in: !!
|
|
10415
|
+
return _ === "inline" ? null : /* @__PURE__ */ n(dl, { direction: "up", in: !!S, mountOnEnter: !0, unmountOnExit: !0, appear: !0, children: /* @__PURE__ */ M(
|
|
10411
10416
|
D,
|
|
10412
10417
|
{
|
|
10413
10418
|
sx: {
|
|
@@ -10485,7 +10490,7 @@ const _s = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10485
10490
|
en,
|
|
10486
10491
|
{
|
|
10487
10492
|
onClick: /* @__PURE__ */ t(() => {
|
|
10488
|
-
u &&
|
|
10493
|
+
u && k(!0), l(!u);
|
|
10489
10494
|
}, "onClick"),
|
|
10490
10495
|
type: "button",
|
|
10491
10496
|
"aria-label": u ? _s : "Recolher a pergunta do agente",
|
|
@@ -10592,16 +10597,16 @@ const _s = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10592
10597
|
Ud(() => {
|
|
10593
10598
|
l((/* @__PURE__ */ new Date()).getTime() - i);
|
|
10594
10599
|
}, 1500);
|
|
10595
|
-
const
|
|
10600
|
+
const k = E(), _ = u / fn > To, S = fn / To / 1e3, w = Math.ceil((fn - u) / 1e3);
|
|
10596
10601
|
return /* @__PURE__ */ M(De, { direction: "row", gap: 1, sx: { position: "relative", alignItems: "center", display: "flex", flexShrink: 0 }, children: [
|
|
10597
10602
|
e != Me.Connected && /* @__PURE__ */ M(ie, { children: [
|
|
10598
10603
|
/* @__PURE__ */ n("div", { style: { backgroundColor: "rgba(0,0,0,0.4)", position: "absolute", width: "100%", height: "100%" } }),
|
|
10599
10604
|
/* @__PURE__ */ n(
|
|
10600
10605
|
ds,
|
|
10601
10606
|
{
|
|
10602
|
-
label: r ?
|
|
10607
|
+
label: r ? k.status : "Session Inactive",
|
|
10603
10608
|
sx: { minWidth: "100px" },
|
|
10604
|
-
color:
|
|
10609
|
+
color: k.color,
|
|
10605
10610
|
size: "small",
|
|
10606
10611
|
variant: "outlined"
|
|
10607
10612
|
}
|
|
@@ -10613,7 +10618,7 @@ const _s = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10613
10618
|
ds,
|
|
10614
10619
|
{
|
|
10615
10620
|
label: w,
|
|
10616
|
-
color: w <
|
|
10621
|
+
color: w < S / 2 ? "warning" : "info",
|
|
10617
10622
|
size: "small",
|
|
10618
10623
|
variant: "outlined"
|
|
10619
10624
|
}
|
|
@@ -10623,10 +10628,10 @@ const _s = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10623
10628
|
] });
|
|
10624
10629
|
}, "ConnectionState"), Yh = mi(), Ds = /* @__PURE__ */ t((e) => e.scrollHeight - (e.scrollTop + e.clientHeight) > e.clientHeight * 0.15, "hasLeftTheTail"), _r = /* @__PURE__ */ t((e) => {
|
|
10625
10630
|
var Ut;
|
|
10626
|
-
const { eventBusService: i, showStickyHeader: s, currentModel: u, friendlyMode: l, showConnectionState: y, hidePromptInput: b, autoRenderAskUserSheet: E, askUserPresentation:
|
|
10631
|
+
const { eventBusService: i, showStickyHeader: s, currentModel: u, friendlyMode: l, showConnectionState: y, hidePromptInput: b, autoRenderAskUserSheet: E, askUserPresentation: k, onNavigate: _ } = ft(), S = u ? ui[u] : void 0, w = xe((X) => {
|
|
10627
10632
|
var ke;
|
|
10628
10633
|
return (ke = X.session) == null ? void 0 : ke.id;
|
|
10629
|
-
}), A = xe((X) => X.turnOpen), f = xe((X) => X.connectionStatus), x = xe((X) => X.messages), v = xe((X) => X.loadingType), g = xe((X) => X.setLastActivity), p = te(null), I = Dt(), c = Ks(I.breakpoints.down("sm")), C = c, h = te(null), R = te(null), L = te(!1), W = te(/* @__PURE__ */ new Map()), [N, Z] = G(null), { artifactService: q } = ft(), [ce, K] = G(!1), [V, se] = G(!1), [Oe,
|
|
10634
|
+
}), A = xe((X) => X.turnOpen), f = xe((X) => X.connectionStatus), x = xe((X) => X.messages), v = xe((X) => X.loadingType), g = xe((X) => X.setLastActivity), p = te(null), I = Dt(), c = Ks(I.breakpoints.down("sm")), C = c, h = te(null), R = te(null), L = te(!1), W = te(/* @__PURE__ */ new Map()), [N, Z] = G(null), { artifactService: q } = ft(), [ce, K] = G(!1), [V, se] = G(!1), [Oe, J] = G(!1), [ve, oe] = G(!1), [j, he] = G(null), [we, Qe] = G(!1), Ke = te(!1), Ye = te(0), Ge = te(0), [Xe, wt] = G(0), [U, le] = G({
|
|
10630
10635
|
open: !1,
|
|
10631
10636
|
title: "",
|
|
10632
10637
|
message: "",
|
|
@@ -10767,11 +10772,11 @@ const _s = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10767
10772
|
}, [R.current, (Ut = R.current) == null ? void 0 : Ut.scrollHeight]), Ht = /* @__PURE__ */ t(() => {
|
|
10768
10773
|
Pt(!1);
|
|
10769
10774
|
}, "handleTouchMove"), Pt = /* @__PURE__ */ t((X) => {
|
|
10770
|
-
Ke.current = !1, X && nn(),
|
|
10775
|
+
Ke.current = !1, X && nn(), J(!0), setTimeout(() => {
|
|
10771
10776
|
se(() => !1);
|
|
10772
10777
|
}, 4e3);
|
|
10773
10778
|
}, "handleUnlock"), Qt = /* @__PURE__ */ t((X = !1) => {
|
|
10774
|
-
kt(X), Ke.current = !0, c || se(() => !0), K(!1),
|
|
10779
|
+
kt(X), Ke.current = !0, c || se(() => !0), K(!1), J(() => !1);
|
|
10775
10780
|
}, "handleLock"), rn = Te(() => {
|
|
10776
10781
|
var ke, qe;
|
|
10777
10782
|
return {
|
|
@@ -10932,7 +10937,7 @@ const _s = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10932
10937
|
]
|
|
10933
10938
|
}
|
|
10934
10939
|
),
|
|
10935
|
-
|
|
10940
|
+
S && /* @__PURE__ */ n(
|
|
10936
10941
|
ne,
|
|
10937
10942
|
{
|
|
10938
10943
|
variant: "caption",
|
|
@@ -10949,7 +10954,7 @@ const _s = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
10949
10954
|
zIndex: 0,
|
|
10950
10955
|
color: "text.primary"
|
|
10951
10956
|
},
|
|
10952
|
-
children:
|
|
10957
|
+
children: S.name
|
|
10953
10958
|
}
|
|
10954
10959
|
),
|
|
10955
10960
|
/* @__PURE__ */ n(dd, { in: ce, timeout: 300, children: /* @__PURE__ */ M(
|
|
@@ -11096,7 +11101,7 @@ const _s = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
11096
11101
|
)
|
|
11097
11102
|
}
|
|
11098
11103
|
),
|
|
11099
|
-
|
|
11104
|
+
k !== "inline" && E && /* @__PURE__ */ n(dc, { promptHeight: Xe }),
|
|
11100
11105
|
!b && /* @__PURE__ */ n(
|
|
11101
11106
|
zo,
|
|
11102
11107
|
{
|
|
@@ -11119,13 +11124,13 @@ const _s = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
11119
11124
|
] });
|
|
11120
11125
|
}, "ChatPane"), uc = Or(
|
|
11121
11126
|
({ bordered: e, borderRadius: r, elevation: i, onToolEvent: s, bottomSlot: u, children: l }, y) => {
|
|
11122
|
-
const { sessionStore: b, eventBusService: E, sendMessage:
|
|
11127
|
+
const { sessionStore: b, eventBusService: E, sendMessage: k } = ft(), _ = te(s);
|
|
11123
11128
|
_.current = s, ed(y, () => ({
|
|
11124
|
-
sendMessage:
|
|
11129
|
+
sendMessage: k,
|
|
11125
11130
|
getMessages: /* @__PURE__ */ t(() => b.getState().messages, "getMessages"),
|
|
11126
11131
|
getSession: /* @__PURE__ */ t(() => b.getState().session, "getSession"),
|
|
11127
11132
|
getConnectionState: /* @__PURE__ */ t(() => b.getState().connectionStatus, "getConnectionState")
|
|
11128
|
-
}), [
|
|
11133
|
+
}), [k, b]), de(() => {
|
|
11129
11134
|
const A = /* @__PURE__ */ t(async (f, x) => {
|
|
11130
11135
|
var v;
|
|
11131
11136
|
(v = _.current) == null || v.call(_, f, x);
|
|
@@ -11134,11 +11139,11 @@ const _s = "O agente enviou esta pergunta, responda para que ele possa continuar
|
|
|
11134
11139
|
E.gatewayOffToolEvent(A);
|
|
11135
11140
|
};
|
|
11136
11141
|
}, [E]);
|
|
11137
|
-
const
|
|
11142
|
+
const S = e || r || i, w = l !== void 0 ? l : u ? /* @__PURE__ */ M(Ee, { sx: { display: "flex", flexDirection: "column", height: "100%", minHeight: 0 }, children: [
|
|
11138
11143
|
/* @__PURE__ */ n(Ee, { sx: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ n(_r, {}) }),
|
|
11139
11144
|
u
|
|
11140
11145
|
] }) : /* @__PURE__ */ n(_r, {});
|
|
11141
|
-
return
|
|
11146
|
+
return S ? /* @__PURE__ */ n(
|
|
11142
11147
|
Js,
|
|
11143
11148
|
{
|
|
11144
11149
|
variant: e ? "outlined" : "elevation",
|
|
@@ -11253,16 +11258,16 @@ const ef = /* @__PURE__ */ t(({
|
|
|
11253
11258
|
minimizedLabel: s = "Answer the agent"
|
|
11254
11259
|
}) => {
|
|
11255
11260
|
var A, f;
|
|
11256
|
-
const u = gt(), { parked: l, toRender: y, currentMessage: b, turnOpen: E, cancel:
|
|
11261
|
+
const u = gt(), { parked: l, toRender: y, currentMessage: b, turnOpen: E, cancel: k } = Oi(), [_, S] = G(!1), w = (A = l == null ? void 0 : l.functionDetails) == null ? void 0 : A.id;
|
|
11257
11262
|
return de(() => {
|
|
11258
|
-
|
|
11263
|
+
S(!1);
|
|
11259
11264
|
}, [w]), l && _ ? /* @__PURE__ */ n(D, { sx: { position: "fixed", right: 24, bottom: 24, zIndex: u.zIndex.modal }, children: /* @__PURE__ */ n(
|
|
11260
11265
|
Zt,
|
|
11261
11266
|
{
|
|
11262
11267
|
variant: "contained",
|
|
11263
11268
|
color: "primary",
|
|
11264
11269
|
startIcon: /* @__PURE__ */ n(gu, { sx: { fontSize: 18 } }),
|
|
11265
|
-
onClick: /* @__PURE__ */ t(() =>
|
|
11270
|
+
onClick: /* @__PURE__ */ t(() => S(!1), "onClick"),
|
|
11266
11271
|
sx: { boxShadow: "0 6px 20px rgba(0,0,0,0.35)" },
|
|
11267
11272
|
children: s
|
|
11268
11273
|
}
|
|
@@ -11270,7 +11275,7 @@ const ef = /* @__PURE__ */ t(({
|
|
|
11270
11275
|
ul,
|
|
11271
11276
|
{
|
|
11272
11277
|
open: !!l,
|
|
11273
|
-
onClose: /* @__PURE__ */ t(() => i ?
|
|
11278
|
+
onClose: /* @__PURE__ */ t(() => i ? S(!0) : void 0, "onClose"),
|
|
11274
11279
|
maxWidth: r,
|
|
11275
11280
|
fullWidth: !0,
|
|
11276
11281
|
"aria-label": typeof e == "string" ? e : void 0,
|
|
@@ -11297,8 +11302,8 @@ const ef = /* @__PURE__ */ t(({
|
|
|
11297
11302
|
sx: { px: 2, py: 1.25, borderBottom: `1px solid ${u.palette.divider}`, flexShrink: 0 },
|
|
11298
11303
|
children: [
|
|
11299
11304
|
/* @__PURE__ */ n(ne, { sx: { fontSize: 13, fontWeight: 600, flex: 1, minWidth: 0 }, children: e }),
|
|
11300
|
-
i && /* @__PURE__ */ n(Be, { onClick: /* @__PURE__ */ t(() =>
|
|
11301
|
-
/* @__PURE__ */ n(Be, { onClick:
|
|
11305
|
+
i && /* @__PURE__ */ n(Be, { onClick: /* @__PURE__ */ t(() => S(!0), "onClick"), type: "button", size: "small", sx: { p: 0.25, color: "text.secondary" }, children: /* @__PURE__ */ n(mu, { sx: { fontSize: 18 } }) }),
|
|
11306
|
+
/* @__PURE__ */ n(Be, { onClick: k, type: "button", size: "small", sx: { p: 0.25, color: "text.secondary" }, children: /* @__PURE__ */ n(sl, { sx: { fontSize: 18 } }) })
|
|
11302
11307
|
]
|
|
11303
11308
|
}
|
|
11304
11309
|
),
|
|
@@ -11328,7 +11333,7 @@ const ef = /* @__PURE__ */ t(({
|
|
|
11328
11333
|
}, "AskUserDialog"), tf = /* @__PURE__ */ t(({ artifact: e, mode: r, sessionId: i, preview: s, onExpand: u, renderMode: l = "browser", naked: y = !1, fullImage: b = !1 }) => {
|
|
11329
11334
|
var x;
|
|
11330
11335
|
const E = Dt();
|
|
11331
|
-
let
|
|
11336
|
+
let k = !1, _ = !1;
|
|
11332
11337
|
e && l === "browser" && de(() => {
|
|
11333
11338
|
e.mimeType == "text/html" && setTimeout(() => {
|
|
11334
11339
|
const v = new Ys();
|
|
@@ -11337,7 +11342,7 @@ const ef = /* @__PURE__ */ t(({
|
|
|
11337
11342
|
console.log("Container", g), g && (console.log("Initializing sortable table", g), v.init(g));
|
|
11338
11343
|
}, 400);
|
|
11339
11344
|
}, [e, s, y, r]);
|
|
11340
|
-
function
|
|
11345
|
+
function S(v) {
|
|
11341
11346
|
switch (v) {
|
|
11342
11347
|
case "text/html":
|
|
11343
11348
|
return /* @__PURE__ */ n(Xu, { fontSize: "large" });
|
|
@@ -11349,7 +11354,7 @@ const ef = /* @__PURE__ */ t(({
|
|
|
11349
11354
|
return /* @__PURE__ */ n(yu, { fontSize: "large" });
|
|
11350
11355
|
}
|
|
11351
11356
|
}
|
|
11352
|
-
t(
|
|
11357
|
+
t(S, "geticon");
|
|
11353
11358
|
function w() {
|
|
11354
11359
|
return /* @__PURE__ */ M(Ee, { sx: {
|
|
11355
11360
|
display: r === "compact" && y === !1 ? "flex" : "block",
|
|
@@ -11371,7 +11376,7 @@ const ef = /* @__PURE__ */ t(({
|
|
|
11371
11376
|
position: "relative"
|
|
11372
11377
|
// For overlay positioning
|
|
11373
11378
|
}, children: [
|
|
11374
|
-
|
|
11379
|
+
S((e == null ? void 0 : e.mimeType) ?? ""),
|
|
11375
11380
|
/* @__PURE__ */ n(je, { variant: "h4", color: "text.secondary", align: "center", children: e == null ? void 0 : e.name })
|
|
11376
11381
|
] });
|
|
11377
11382
|
}
|
|
@@ -11426,7 +11431,7 @@ const ef = /* @__PURE__ */ t(({
|
|
|
11426
11431
|
position: "relative"
|
|
11427
11432
|
// For overlay positioning
|
|
11428
11433
|
}, children: [
|
|
11429
|
-
l === "browser" &&
|
|
11434
|
+
l === "browser" && k,
|
|
11430
11435
|
y && /* @__PURE__ */ n(pd, { onClick: /* @__PURE__ */ t(() => u ? u(v) : console.log("No subscriber"), "onClick"), sx: {
|
|
11431
11436
|
position: "absolute",
|
|
11432
11437
|
right: "0",
|
|
@@ -11496,22 +11501,22 @@ const rf = /* @__PURE__ */ t(({
|
|
|
11496
11501
|
const [u, l] = G(""), y = te(!1);
|
|
11497
11502
|
return de(() => {
|
|
11498
11503
|
l("");
|
|
11499
|
-
const b = [...e],
|
|
11504
|
+
const b = [...e], k = Ld(b, e.length / 100).map((_) => _.join(""));
|
|
11500
11505
|
setTimeout(() => {
|
|
11501
|
-
|
|
11502
|
-
const _ = r /
|
|
11506
|
+
k.length === 0 && l(e);
|
|
11507
|
+
const _ = r / k.length, S = _ * 0.4;
|
|
11503
11508
|
let w = "", A = i;
|
|
11504
11509
|
const f = [];
|
|
11505
11510
|
w = ":thumbsup: OK!";
|
|
11506
11511
|
const x = setTimeout(() => {
|
|
11507
11512
|
l(":thumbsup: OK!");
|
|
11508
11513
|
}, 0);
|
|
11509
|
-
return f.push(x),
|
|
11514
|
+
return f.push(x), k.forEach((v, g) => {
|
|
11510
11515
|
w += v;
|
|
11511
|
-
const p = w, I = (Math.random() - 0.5) * 2 *
|
|
11516
|
+
const p = w, I = (Math.random() - 0.5) * 2 * S, c = Math.max(150, _ + I);
|
|
11512
11517
|
A += c;
|
|
11513
11518
|
const C = setTimeout(() => {
|
|
11514
|
-
g ==
|
|
11519
|
+
g == k.length - 1 && (y.current = !0), l(p);
|
|
11515
11520
|
}, A);
|
|
11516
11521
|
f.push(C);
|
|
11517
11522
|
}), () => {
|
|
@@ -11543,14 +11548,14 @@ function sf({
|
|
|
11543
11548
|
sx: y,
|
|
11544
11549
|
...b
|
|
11545
11550
|
}) {
|
|
11546
|
-
const E = pc(), [
|
|
11547
|
-
|
|
11551
|
+
const E = pc(), [k, _] = G("idle"), S = te(e);
|
|
11552
|
+
S.current = e;
|
|
11548
11553
|
const w = te(!0);
|
|
11549
11554
|
de(() => () => {
|
|
11550
11555
|
w.current = !1;
|
|
11551
11556
|
}, []);
|
|
11552
11557
|
const A = Te(() => {
|
|
11553
|
-
const p =
|
|
11558
|
+
const p = S.current;
|
|
11554
11559
|
if (!p) return;
|
|
11555
11560
|
_("running");
|
|
11556
11561
|
let I;
|
|
@@ -11567,7 +11572,7 @@ function sf({
|
|
|
11567
11572
|
w.current && _("idle");
|
|
11568
11573
|
}, "settle");
|
|
11569
11574
|
I.then(c, c);
|
|
11570
|
-
}, []), f = { turnOpen: E, phase:
|
|
11575
|
+
}, []), f = { turnOpen: E, phase: k, disabled: s }, x = gc(f), v = mc(f);
|
|
11571
11576
|
return (
|
|
11572
11577
|
// Always wrapped, even with an empty title: a disabled MUI button fires no
|
|
11573
11578
|
// mouse events, so the tooltip — the explanation for the block — needs a host
|
|
@@ -11666,18 +11671,18 @@ function yc(e, r) {
|
|
|
11666
11671
|
const l = ff(e);
|
|
11667
11672
|
l && (e = l.before, u = l.partialCode);
|
|
11668
11673
|
const y = $u().use(Bu).parse(e), b = [];
|
|
11669
|
-
let E = [],
|
|
11674
|
+
let E = [], k = !1;
|
|
11670
11675
|
const _ = /* @__PURE__ */ t(() => {
|
|
11671
11676
|
if (E.length === 0) return;
|
|
11672
|
-
const
|
|
11673
|
-
|
|
11677
|
+
const S = Wu({ type: "root", children: E });
|
|
11678
|
+
S.trim() && b.push({ type: "markdown", content: S }), E = [];
|
|
11674
11679
|
}, "flushBuffer");
|
|
11675
|
-
for (const
|
|
11676
|
-
if (
|
|
11677
|
-
_(),
|
|
11680
|
+
for (const S of y.children) {
|
|
11681
|
+
if (S.type === "html" && cf.test(S.value)) {
|
|
11682
|
+
_(), k = !0;
|
|
11678
11683
|
continue;
|
|
11679
11684
|
}
|
|
11680
|
-
const w = wf(
|
|
11685
|
+
const w = wf(S);
|
|
11681
11686
|
if (w) {
|
|
11682
11687
|
const A = w.match(gf);
|
|
11683
11688
|
if (A) {
|
|
@@ -11685,9 +11690,9 @@ function yc(e, r) {
|
|
|
11685
11690
|
continue;
|
|
11686
11691
|
}
|
|
11687
11692
|
}
|
|
11688
|
-
E.push(
|
|
11693
|
+
E.push(S);
|
|
11689
11694
|
}
|
|
11690
|
-
return _(),
|
|
11695
|
+
return _(), k && b.push({ type: "liveTsx", code: "", partial: !0, progress: i, bytes: s * 100 }), u !== null && b.push({ type: "liveTsx", code: u, partial: !0 }), b;
|
|
11691
11696
|
}
|
|
11692
11697
|
t(yc, "parseContentBlocks");
|
|
11693
11698
|
const Pi = 3e3, xc = Dr(Pi);
|
|
@@ -11712,9 +11717,9 @@ const kf = /* @__PURE__ */ t(({ maxCharsForFull: e, children: r }) => {
|
|
|
11712
11717
|
onGoing: b,
|
|
11713
11718
|
friendlyMode: E
|
|
11714
11719
|
}) => {
|
|
11715
|
-
const
|
|
11716
|
-
() => yc(w, { maxCharsForFull:
|
|
11717
|
-
[w,
|
|
11720
|
+
const k = Jt(wn), _ = Jt(Di), S = vc(), w = td(e), A = Ce(
|
|
11721
|
+
() => yc(w, { maxCharsForFull: S }),
|
|
11722
|
+
[w, S]
|
|
11718
11723
|
);
|
|
11719
11724
|
return A.filter((x) => {
|
|
11720
11725
|
var v;
|
|
@@ -11724,7 +11729,7 @@ const kf = /* @__PURE__ */ t(({ maxCharsForFull: e, children: r }) => {
|
|
|
11724
11729
|
if (x.type === "slot") {
|
|
11725
11730
|
const I = (g = y == null ? void 0 : y.parts) == null ? void 0 : g.find(
|
|
11726
11731
|
(h) => pt.uiSlotId(h) === x.slotId
|
|
11727
|
-
), c = ((p =
|
|
11732
|
+
), c = ((p = k == null ? void 0 : k.partRenderers) == null ? void 0 : p.uiTool) ?? _i.uiTool;
|
|
11728
11733
|
if (!I || !c) return null;
|
|
11729
11734
|
const C = !!x.slotId && ((_ == null ? void 0 : _.stagedKeys.has(x.slotId)) ?? !1);
|
|
11730
11735
|
return /* @__PURE__ */ n(
|
|
@@ -11865,7 +11870,7 @@ function Ps(e) {
|
|
|
11865
11870
|
t(Ps, "unitFromIndex");
|
|
11866
11871
|
const Da = 15, If = /* @__PURE__ */ t(() => {
|
|
11867
11872
|
const e = Dt(), r = e.palette.mode === "dark", i = ye(e.palette.text.primary, r ? 0.1 : 0.08), s = ye(e.palette.text.primary, r ? 0.22 : 0.18), u = ye(e.palette.text.primary, r ? 0.18 : 0.14), l = ye(e.palette.text.primary, r ? 0.22 : 0.18), y = ye(e.palette.text.primary, r ? 0.13 : 0.1), { bars: b, linePoints: E } = Ce(() => {
|
|
11868
|
-
const
|
|
11873
|
+
const k = Array.from({ length: Da }, (R, L) => 0.18 + Ps(L) * 0.78), _ = Array.from({ length: Da }, (R, L) => 0.18 + Ps(L + 100) * 0.78), S = 360, w = 160, A = 14, f = 12, v = w - f - 18, g = f + 6, p = v - g, I = (S - A * 2) / Da, c = I * 0.52, C = k.map((R, L) => {
|
|
11869
11874
|
const W = R * p, N = A + L * I + (I - c) / 2, Z = v - W;
|
|
11870
11875
|
return { x: N, y: Z, w: c, h: W };
|
|
11871
11876
|
}), h = _.map((R, L) => {
|
|
@@ -11928,13 +11933,13 @@ const Da = 15, If = /* @__PURE__ */ t(() => {
|
|
|
11928
11933
|
strokeLinecap: "square"
|
|
11929
11934
|
}
|
|
11930
11935
|
),
|
|
11931
|
-
b.map((
|
|
11936
|
+
b.map((k, _) => /* @__PURE__ */ n(
|
|
11932
11937
|
"rect",
|
|
11933
11938
|
{
|
|
11934
|
-
x:
|
|
11935
|
-
y:
|
|
11936
|
-
width:
|
|
11937
|
-
height:
|
|
11939
|
+
x: k.x,
|
|
11940
|
+
y: k.y,
|
|
11941
|
+
width: k.w,
|
|
11942
|
+
height: k.h,
|
|
11938
11943
|
rx: "2",
|
|
11939
11944
|
fill: "url(#barWave)",
|
|
11940
11945
|
stroke: u,
|
|
@@ -12002,7 +12007,7 @@ const Da = 15, If = /* @__PURE__ */ t(() => {
|
|
|
12002
12007
|
children: Array.from({ length: e }, (s, u) => /* @__PURE__ */ n(Ec, { showIcon: r, showChangeRow: i }, u))
|
|
12003
12008
|
}
|
|
12004
12009
|
), "MetricGroupSkeleton"), Af = /* @__PURE__ */ t(({ columns: e = 5, rows: r = 10 }) => {
|
|
12005
|
-
const i = Dt(), s = Array.from({ length: e }, (
|
|
12010
|
+
const i = Dt(), s = Array.from({ length: e }, (k, _) => _), u = Array.from({ length: r }, (k, _) => _), l = i.palette.mode === "dark" ? ye(i.palette.grey[700], 0.55) : ye(i.palette.grey[300], 0.6), y = ye(i.palette.divider, i.palette.mode === "dark" ? 0.9 : 1), b = ye(i.palette.divider, 0.6), E = ye(
|
|
12006
12011
|
i.palette.common.white,
|
|
12007
12012
|
i.palette.mode === "dark" ? 0.12 : 0.35
|
|
12008
12013
|
);
|
|
@@ -12015,7 +12020,7 @@ const Da = 15, If = /* @__PURE__ */ t(() => {
|
|
|
12015
12020
|
tableLayout: "fixed"
|
|
12016
12021
|
},
|
|
12017
12022
|
children: [
|
|
12018
|
-
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: s.map((
|
|
12023
|
+
/* @__PURE__ */ n("thead", { children: /* @__PURE__ */ n("tr", { children: s.map((k) => /* @__PURE__ */ n(
|
|
12019
12024
|
"th",
|
|
12020
12025
|
{
|
|
12021
12026
|
style: {
|
|
@@ -12034,9 +12039,9 @@ const Da = 15, If = /* @__PURE__ */ t(() => {
|
|
|
12034
12039
|
}
|
|
12035
12040
|
)
|
|
12036
12041
|
},
|
|
12037
|
-
|
|
12042
|
+
k
|
|
12038
12043
|
)) }) }),
|
|
12039
|
-
/* @__PURE__ */ n("tbody", { children: u.map((
|
|
12044
|
+
/* @__PURE__ */ n("tbody", { children: u.map((k) => /* @__PURE__ */ n("tr", { children: s.map((_) => /* @__PURE__ */ n(
|
|
12040
12045
|
"td",
|
|
12041
12046
|
{
|
|
12042
12047
|
style: {
|
|
@@ -12049,13 +12054,13 @@ const Da = 15, If = /* @__PURE__ */ t(() => {
|
|
|
12049
12054
|
animation: "wave",
|
|
12050
12055
|
variant: "rounded",
|
|
12051
12056
|
height: 16,
|
|
12052
|
-
width: `${55 + (_ +
|
|
12057
|
+
width: `${55 + (_ + k * 3) % 5 * 8}%`,
|
|
12053
12058
|
sx: { maxWidth: "100%" }
|
|
12054
12059
|
}
|
|
12055
12060
|
)
|
|
12056
12061
|
},
|
|
12057
12062
|
_
|
|
12058
|
-
)) },
|
|
12063
|
+
)) }, k)) })
|
|
12059
12064
|
]
|
|
12060
12065
|
}
|
|
12061
12066
|
) });
|
|
@@ -12083,7 +12088,7 @@ const Da = 15, If = /* @__PURE__ */ t(() => {
|
|
|
12083
12088
|
{ x: 0, h: 58, acc: 0 },
|
|
12084
12089
|
{ x: 0, h: 70, acc: 0 },
|
|
12085
12090
|
{ x: 0, h: 65, acc: 0 }
|
|
12086
|
-
], E = 220 / b.length * 0.9,
|
|
12091
|
+
], E = 220 / b.length * 0.9, k = 220 / b.length * 0.8, _ = 78, S = 2;
|
|
12087
12092
|
let w = 0;
|
|
12088
12093
|
for (let g = 0; g < b.length; g++)
|
|
12089
12094
|
w += b[g].h, b[g].acc = w, b[g].x = y + g * E;
|
|
@@ -12135,7 +12140,7 @@ const Da = 15, If = /* @__PURE__ */ t(() => {
|
|
|
12135
12140
|
{
|
|
12136
12141
|
x: g.x,
|
|
12137
12142
|
y: I,
|
|
12138
|
-
width:
|
|
12143
|
+
width: k,
|
|
12139
12144
|
height: g.h,
|
|
12140
12145
|
fill: u,
|
|
12141
12146
|
rx: 3,
|
|
@@ -12152,7 +12157,7 @@ const Da = 15, If = /* @__PURE__ */ t(() => {
|
|
|
12152
12157
|
{
|
|
12153
12158
|
x: g.x,
|
|
12154
12159
|
y: c,
|
|
12155
|
-
width:
|
|
12160
|
+
width: k,
|
|
12156
12161
|
height: I,
|
|
12157
12162
|
fill: s,
|
|
12158
12163
|
rx: 3,
|
|
@@ -12169,7 +12174,7 @@ const Da = 15, If = /* @__PURE__ */ t(() => {
|
|
|
12169
12174
|
attributeName: "cx",
|
|
12170
12175
|
values: "14; 40; 66; 92; 118; 144; 14",
|
|
12171
12176
|
keyTimes: "0; 0.16; 0.32; 0.48; 0.64; 0.80; 1",
|
|
12172
|
-
dur: `${
|
|
12177
|
+
dur: `${S}s`,
|
|
12173
12178
|
repeatCount: "indefinite"
|
|
12174
12179
|
}
|
|
12175
12180
|
),
|
|
@@ -12179,7 +12184,7 @@ const Da = 15, If = /* @__PURE__ */ t(() => {
|
|
|
12179
12184
|
attributeName: "cy",
|
|
12180
12185
|
values: `${_ - 32}; ${_ - 50}; ${_ - 26}; ${_ - 44}; ${_ - 58}; ${_ - 36}; ${_ - 32}`,
|
|
12181
12186
|
keyTimes: "0; 0.16; 0.32; 0.48; 0.64; 0.80; 1",
|
|
12182
|
-
dur: `${
|
|
12187
|
+
dur: `${S}s`,
|
|
12183
12188
|
repeatCount: "indefinite"
|
|
12184
12189
|
}
|
|
12185
12190
|
)
|
|
@@ -12242,8 +12247,8 @@ function Df(e, r) {
|
|
|
12242
12247
|
continue;
|
|
12243
12248
|
}
|
|
12244
12249
|
if (E) {
|
|
12245
|
-
const
|
|
12246
|
-
(
|
|
12250
|
+
const k = r[b];
|
|
12251
|
+
(k == null || !(E in k)) && (u.has(b) || u.set(b, /* @__PURE__ */ new Set()), u.get(b).add(E));
|
|
12247
12252
|
}
|
|
12248
12253
|
}
|
|
12249
12254
|
if (s.size === 0 && u.size === 0) return null;
|
|
@@ -12256,7 +12261,7 @@ function Df(e, r) {
|
|
|
12256
12261
|
if (u.size > 0) {
|
|
12257
12262
|
y.push(""), y.push("Missing named exports:");
|
|
12258
12263
|
for (const [b, E] of u)
|
|
12259
|
-
y.push(` • "${b}" → ${Array.from(E).map((
|
|
12264
|
+
y.push(` • "${b}" → ${Array.from(E).map((k) => `'${k}'`).join(", ")}`);
|
|
12260
12265
|
y.push(' Add these via extendModuleRegistry("' + Array.from(u.keys())[0] + '", { Chart, Metric, … }).');
|
|
12261
12266
|
}
|
|
12262
12267
|
return new Error(y.join(`
|
|
@@ -12326,7 +12331,7 @@ const jf = /* @__PURE__ */ t(({ code: e, partial: r, scope: i, progress: s = 0,
|
|
|
12326
12331
|
error: c instanceof Error ? c : new Error(String(c))
|
|
12327
12332
|
};
|
|
12328
12333
|
}
|
|
12329
|
-
}, [e, r, b]),
|
|
12334
|
+
}, [e, r, b]), k = /* @__PURE__ */ t((c, C) => /* @__PURE__ */ M("div", { style: {
|
|
12330
12335
|
border: `1px solid ${C ? "lightgrey" : "#f44336"}`,
|
|
12331
12336
|
borderRadius: 6,
|
|
12332
12337
|
padding: "12px 16px",
|
|
@@ -12346,16 +12351,16 @@ const jf = /* @__PURE__ */ t(({ code: e, partial: r, scope: i, progress: s = 0,
|
|
|
12346
12351
|
c.message
|
|
12347
12352
|
] }),
|
|
12348
12353
|
/* @__PURE__ */ n("pre", { style: { fontSize: "0.8em", overflow: "auto", margin: 0, opacity: 0.7, whiteSpace: "pre-wrap" }, children: /* @__PURE__ */ n("code", { children: e }) })
|
|
12349
|
-
] }), "errorFallback"), _ = Dt(),
|
|
12354
|
+
] }), "errorFallback"), _ = Dt(), S = r || !b, w = !S && !!E.error, [A, f] = G(() => S ? "partial" : "final"), x = te(null), v = te(null);
|
|
12350
12355
|
if (So(() => {
|
|
12351
|
-
if (A === "partial" && !
|
|
12356
|
+
if (A === "partial" && !S && !w) {
|
|
12352
12357
|
const c = x.current, C = (c == null ? void 0 : c.offsetHeight) ?? 0;
|
|
12353
12358
|
c && C > 0 && (c.style.height = `${C}px`), f("arriving");
|
|
12354
|
-
} else if (A !== "partial" &&
|
|
12359
|
+
} else if (A !== "partial" && S) {
|
|
12355
12360
|
const c = x.current;
|
|
12356
12361
|
c && (c.style.height = "", c.style.transition = ""), f("partial");
|
|
12357
12362
|
}
|
|
12358
|
-
}, [A,
|
|
12363
|
+
}, [A, S, w]), So(() => {
|
|
12359
12364
|
if (A !== "arriving") return;
|
|
12360
12365
|
const c = x.current, C = v.current;
|
|
12361
12366
|
if (!c || !C) return;
|
|
@@ -12367,10 +12372,10 @@ const jf = /* @__PURE__ */ t(({ code: e, partial: r, scope: i, progress: s = 0,
|
|
|
12367
12372
|
}, 1500);
|
|
12368
12373
|
return () => window.clearTimeout(R);
|
|
12369
12374
|
}, [A]), e.includes(_f)) return null;
|
|
12370
|
-
if (w && E.error) return
|
|
12375
|
+
if (w && E.error) return k(E.error, !1);
|
|
12371
12376
|
const g = Lf(e), p = g ? /* @__PURE__ */ n(g, {}) : /* @__PURE__ */ n(zf, { progress: s, bytes: u }), I = /* @__PURE__ */ M(cp, { theme: _, children: [
|
|
12372
12377
|
/* @__PURE__ */ n(hd, {}),
|
|
12373
|
-
/* @__PURE__ */ n(jo, { fallback:
|
|
12378
|
+
/* @__PURE__ */ n(jo, { fallback: k, children: /* @__PURE__ */ n(Ee, { "data-live-jsx-content": "", children: E.Component ? /* @__PURE__ */ n(E.Component, {}) : /* @__PURE__ */ n(Nt, { text: `\`\`\`tsx
|
|
12374
12379
|
${e}\`\`\``, sessionId: "" }) }) })
|
|
12375
12380
|
] });
|
|
12376
12381
|
return /* @__PURE__ */ M(
|
|
@@ -12649,9 +12654,9 @@ ${e}\`\`\``, sessionId: "" }) }) })
|
|
|
12649
12654
|
}) => {
|
|
12650
12655
|
const y = gt(), b = r ?? y.palette.primary.main, E = nd();
|
|
12651
12656
|
if (!e || e.length === 0) return null;
|
|
12652
|
-
const
|
|
12657
|
+
const k = Math.max(...e), _ = Math.min(...e), S = k - _ || 1, w = e.length > 1 ? i / (e.length - 1) : i, f = e.map((v, g) => [
|
|
12653
12658
|
g * w,
|
|
12654
|
-
s - (v - _) /
|
|
12659
|
+
s - (v - _) / S * (s - 4) - 2
|
|
12655
12660
|
]).map((v, g) => (g === 0 ? "M" : "L") + v[0].toFixed(1) + "," + v[1].toFixed(1)).join(" "), x = `${f} L${i},${s} L0,${s} Z`;
|
|
12656
12661
|
return /* @__PURE__ */ M("svg", { width: i, height: s, style: { display: "block" }, "aria-hidden": !0, children: [
|
|
12657
12662
|
u && /* @__PURE__ */ M(ie, { children: [
|
|
@@ -12765,20 +12770,20 @@ const oi = 48, ai = /* @__PURE__ */ t(({
|
|
|
12765
12770
|
hideSearch: y = !1,
|
|
12766
12771
|
searchSlot: b,
|
|
12767
12772
|
hamburger: E,
|
|
12768
|
-
compact:
|
|
12773
|
+
compact: k = !1
|
|
12769
12774
|
}) => /* @__PURE__ */ M(
|
|
12770
12775
|
D,
|
|
12771
12776
|
{
|
|
12772
12777
|
component: "header",
|
|
12773
|
-
sx: /* @__PURE__ */ t((
|
|
12778
|
+
sx: /* @__PURE__ */ t((S) => ({
|
|
12774
12779
|
height: oi,
|
|
12775
12780
|
flexShrink: 0,
|
|
12776
|
-
backgroundColor:
|
|
12777
|
-
borderBottom: `1px solid ${
|
|
12781
|
+
backgroundColor: S.palette.background.paper,
|
|
12782
|
+
borderBottom: `1px solid ${S.palette.divider}`,
|
|
12778
12783
|
display: "flex",
|
|
12779
12784
|
alignItems: "center",
|
|
12780
|
-
px:
|
|
12781
|
-
gap:
|
|
12785
|
+
px: k ? 1 : 2,
|
|
12786
|
+
gap: k ? 1 : 1.5,
|
|
12782
12787
|
zIndex: 1
|
|
12783
12788
|
}), "sx"),
|
|
12784
12789
|
children: [
|
|
@@ -12787,10 +12792,10 @@ const oi = 48, ai = /* @__PURE__ */ t(({
|
|
|
12787
12792
|
r && /* @__PURE__ */ n(
|
|
12788
12793
|
ne,
|
|
12789
12794
|
{
|
|
12790
|
-
sx: /* @__PURE__ */ t((
|
|
12795
|
+
sx: /* @__PURE__ */ t((S) => ({
|
|
12791
12796
|
fontSize: 13,
|
|
12792
12797
|
fontWeight: 500,
|
|
12793
|
-
color:
|
|
12798
|
+
color: S.palette.text.primary,
|
|
12794
12799
|
flexShrink: 0,
|
|
12795
12800
|
whiteSpace: "nowrap"
|
|
12796
12801
|
}), "sx"),
|
|
@@ -12798,33 +12803,33 @@ const oi = 48, ai = /* @__PURE__ */ t(({
|
|
|
12798
12803
|
}
|
|
12799
12804
|
),
|
|
12800
12805
|
i && /* @__PURE__ */ M(ie, { children: [
|
|
12801
|
-
/* @__PURE__ */ n(D, { sx: /* @__PURE__ */ t((
|
|
12802
|
-
/* @__PURE__ */ n(D, { sx: /* @__PURE__ */ t((
|
|
12806
|
+
/* @__PURE__ */ n(D, { sx: /* @__PURE__ */ t((S) => ({ width: "1px", height: 18, backgroundColor: S.palette.divider }), "sx") }),
|
|
12807
|
+
/* @__PURE__ */ n(D, { sx: /* @__PURE__ */ t((S) => ({ display: "flex", alignItems: "center", gap: 0.75, fontSize: 12, color: S.palette.text.secondary, minWidth: 0, overflow: "hidden" }), "sx"), children: i })
|
|
12803
12808
|
] }),
|
|
12804
12809
|
/* @__PURE__ */ n(D, { sx: { flex: 1 } }),
|
|
12805
|
-
!(y ||
|
|
12810
|
+
!(y || k) && (b ?? /* @__PURE__ */ M(
|
|
12806
12811
|
D,
|
|
12807
12812
|
{
|
|
12808
12813
|
role: "button",
|
|
12809
12814
|
tabIndex: 0,
|
|
12810
12815
|
onClick: u,
|
|
12811
|
-
onKeyDown: /* @__PURE__ */ t((
|
|
12812
|
-
(
|
|
12816
|
+
onKeyDown: /* @__PURE__ */ t((S) => {
|
|
12817
|
+
(S.key === "Enter" || S.key === " ") && (u == null || u());
|
|
12813
12818
|
}, "onKeyDown"),
|
|
12814
|
-
sx: /* @__PURE__ */ t((
|
|
12819
|
+
sx: /* @__PURE__ */ t((S) => ({
|
|
12815
12820
|
display: "flex",
|
|
12816
12821
|
alignItems: "center",
|
|
12817
12822
|
gap: 1,
|
|
12818
|
-
backgroundColor:
|
|
12819
|
-
border: `1px solid ${
|
|
12820
|
-
borderRadius: `${
|
|
12823
|
+
backgroundColor: S.palette.surface.raised,
|
|
12824
|
+
border: `1px solid ${S.palette.divider}`,
|
|
12825
|
+
borderRadius: `${S.shape.radiusSm}px`,
|
|
12821
12826
|
px: 1.25,
|
|
12822
12827
|
py: 0.5,
|
|
12823
12828
|
minWidth: 240,
|
|
12824
12829
|
cursor: "pointer",
|
|
12825
|
-
color:
|
|
12830
|
+
color: S.palette.text.disabled,
|
|
12826
12831
|
transition: "background-color .12s, color .12s",
|
|
12827
|
-
"&:hover": { backgroundColor:
|
|
12832
|
+
"&:hover": { backgroundColor: S.palette.surface.hover, color: S.palette.text.secondary }
|
|
12828
12833
|
}), "sx"),
|
|
12829
12834
|
children: [
|
|
12830
12835
|
/* @__PURE__ */ n(yi, {}),
|
|
@@ -12832,11 +12837,11 @@ const oi = 48, ai = /* @__PURE__ */ t(({
|
|
|
12832
12837
|
/* @__PURE__ */ n(
|
|
12833
12838
|
D,
|
|
12834
12839
|
{
|
|
12835
|
-
sx: /* @__PURE__ */ t((
|
|
12836
|
-
fontFamily:
|
|
12840
|
+
sx: /* @__PURE__ */ t((S) => ({
|
|
12841
|
+
fontFamily: S.typography.fontFamilyMono,
|
|
12837
12842
|
fontSize: 10,
|
|
12838
|
-
color:
|
|
12839
|
-
border: `1px solid ${
|
|
12843
|
+
color: S.palette.text.disabled,
|
|
12844
|
+
border: `1px solid ${S.palette.divider}`,
|
|
12840
12845
|
borderRadius: 0.5,
|
|
12841
12846
|
px: 0.6,
|
|
12842
12847
|
py: 0.1
|
|
@@ -12875,9 +12880,9 @@ const Uf = 300, Ic = [
|
|
|
12875
12880
|
userProfile: y,
|
|
12876
12881
|
sessionsList: b,
|
|
12877
12882
|
dashboardsList: E,
|
|
12878
|
-
closeOnNavigate:
|
|
12883
|
+
closeOnNavigate: k = !0
|
|
12879
12884
|
}) => {
|
|
12880
|
-
const { pathname: _ } = pl(),
|
|
12885
|
+
const { pathname: _ } = pl(), S = _.startsWith("/data-explorer") ? b : _.startsWith("/board") ? E : null, w = Ce(
|
|
12881
12886
|
() => i.map((A) => {
|
|
12882
12887
|
const f = A.isActive ? A.isActive(_) : _ === A.to || _.startsWith(A.to + "/");
|
|
12883
12888
|
return /* @__PURE__ */ M(
|
|
@@ -12885,7 +12890,7 @@ const Uf = 300, Ic = [
|
|
|
12885
12890
|
{
|
|
12886
12891
|
component: hl,
|
|
12887
12892
|
to: A.to,
|
|
12888
|
-
onClick: /* @__PURE__ */ t(() =>
|
|
12893
|
+
onClick: /* @__PURE__ */ t(() => k && r(), "onClick"),
|
|
12889
12894
|
sx: /* @__PURE__ */ t((x) => ({
|
|
12890
12895
|
display: "flex",
|
|
12891
12896
|
alignItems: "center",
|
|
@@ -12911,7 +12916,7 @@ const Uf = 300, Ic = [
|
|
|
12911
12916
|
A.id
|
|
12912
12917
|
);
|
|
12913
12918
|
}),
|
|
12914
|
-
[i, _,
|
|
12919
|
+
[i, _, k, r]
|
|
12915
12920
|
);
|
|
12916
12921
|
return /* @__PURE__ */ M(
|
|
12917
12922
|
rp,
|
|
@@ -13005,7 +13010,7 @@ const Uf = 300, Ic = [
|
|
|
13005
13010
|
borderRight: "none !important"
|
|
13006
13011
|
}
|
|
13007
13012
|
},
|
|
13008
|
-
children:
|
|
13013
|
+
children: S
|
|
13009
13014
|
}
|
|
13010
13015
|
),
|
|
13011
13016
|
y && /* @__PURE__ */ n(
|
|
@@ -13159,12 +13164,12 @@ const qf = /* @__PURE__ */ t(({
|
|
|
13159
13164
|
onDelete: y,
|
|
13160
13165
|
footer: b,
|
|
13161
13166
|
header: E,
|
|
13162
|
-
searchPlaceholder:
|
|
13167
|
+
searchPlaceholder: k,
|
|
13163
13168
|
totalCount: _
|
|
13164
13169
|
}) => {
|
|
13165
|
-
const [
|
|
13170
|
+
const [S, w] = G("");
|
|
13166
13171
|
Ce(() => e.reduce((V, se) => V + se.items.length, 0), [e]);
|
|
13167
|
-
const A =
|
|
13172
|
+
const A = k ?? "Buscar...", [f, x] = G(null), v = /* @__PURE__ */ t(() => x(null), "closeMenu"), [g, p] = G(null), [I, c] = G(""), C = te(null), h = te(!1), R = /* @__PURE__ */ t((V) => {
|
|
13168
13173
|
V && (V.style.height = "auto", V.style.height = `${Math.min(V.scrollHeight, 80)}px`);
|
|
13169
13174
|
}, "fitTextarea");
|
|
13170
13175
|
de(() => {
|
|
@@ -13187,20 +13192,20 @@ const qf = /* @__PURE__ */ t(({
|
|
|
13187
13192
|
const V = L;
|
|
13188
13193
|
W(null), Promise.resolve(y == null ? void 0 : y(V.id));
|
|
13189
13194
|
}, "confirmDelete"), K = Ce(() => {
|
|
13190
|
-
var
|
|
13195
|
+
var J;
|
|
13191
13196
|
let V = r ? {
|
|
13192
13197
|
items: [{
|
|
13193
13198
|
id: r.id,
|
|
13194
|
-
title: ((
|
|
13199
|
+
title: ((J = r == null ? void 0 : r.overview) == null ? void 0 : J.trim()) !== "" ? r == null ? void 0 : r.overview : "Nova",
|
|
13195
13200
|
timeLabel: "Agora",
|
|
13196
13201
|
kind: "typewritter"
|
|
13197
13202
|
}],
|
|
13198
13203
|
label: "agora"
|
|
13199
13204
|
} : null, se = e;
|
|
13200
|
-
if (V && (se = [V, ...se]), !
|
|
13201
|
-
const Oe =
|
|
13205
|
+
if (V && (se = [V, ...se]), !S) return se;
|
|
13206
|
+
const Oe = S.toLowerCase();
|
|
13202
13207
|
return e.map((ve) => ({ ...ve, items: ve.items.filter((oe) => oe.title.toLowerCase().includes(Oe)) })).filter((ve) => ve.items.length > 0);
|
|
13203
|
-
}, [e,
|
|
13208
|
+
}, [e, S, r]);
|
|
13204
13209
|
return /* @__PURE__ */ M(
|
|
13205
13210
|
D,
|
|
13206
13211
|
{
|
|
@@ -13239,7 +13244,7 @@ const qf = /* @__PURE__ */ t(({
|
|
|
13239
13244
|
D,
|
|
13240
13245
|
{
|
|
13241
13246
|
component: "input",
|
|
13242
|
-
value:
|
|
13247
|
+
value: S,
|
|
13243
13248
|
onChange: /* @__PURE__ */ t((V) => w(V.target.value), "onChange"),
|
|
13244
13249
|
placeholder: A,
|
|
13245
13250
|
sx: /* @__PURE__ */ t((V) => ({
|
|
@@ -13253,7 +13258,7 @@ const qf = /* @__PURE__ */ t(({
|
|
|
13253
13258
|
}), "sx")
|
|
13254
13259
|
}
|
|
13255
13260
|
),
|
|
13256
|
-
|
|
13261
|
+
S && /* @__PURE__ */ n(Be, { size: "small", onClick: /* @__PURE__ */ t(() => w(""), "onClick"), sx: /* @__PURE__ */ t((V) => ({ color: V.palette.text.disabled, p: 0.25 }), "sx"), children: /* @__PURE__ */ n(ki, { size: 11 }) })
|
|
13257
13262
|
]
|
|
13258
13263
|
}
|
|
13259
13264
|
)
|
|
@@ -13275,7 +13280,7 @@ const qf = /* @__PURE__ */ t(({
|
|
|
13275
13280
|
}
|
|
13276
13281
|
),
|
|
13277
13282
|
V.items.map((se) => {
|
|
13278
|
-
const Oe = se.id === i,
|
|
13283
|
+
const Oe = se.id === i, J = g === se.id, ve = (l || y) && !J;
|
|
13279
13284
|
return /* @__PURE__ */ M(
|
|
13280
13285
|
D,
|
|
13281
13286
|
{
|
|
@@ -13297,16 +13302,16 @@ const qf = /* @__PURE__ */ t(({
|
|
|
13297
13302
|
/* @__PURE__ */ M(
|
|
13298
13303
|
D,
|
|
13299
13304
|
{
|
|
13300
|
-
role:
|
|
13301
|
-
tabIndex:
|
|
13302
|
-
onClick:
|
|
13303
|
-
onKeyDown:
|
|
13305
|
+
role: J ? void 0 : "button",
|
|
13306
|
+
tabIndex: J ? void 0 : 0,
|
|
13307
|
+
onClick: J ? void 0 : () => s == null ? void 0 : s(se),
|
|
13308
|
+
onKeyDown: J ? void 0 : (oe) => {
|
|
13304
13309
|
oe.key === "Enter" && (s == null || s(se));
|
|
13305
13310
|
},
|
|
13306
13311
|
sx: {
|
|
13307
13312
|
width: "100%",
|
|
13308
13313
|
textAlign: "left",
|
|
13309
|
-
cursor:
|
|
13314
|
+
cursor: J ? "default" : "pointer",
|
|
13310
13315
|
px: 0.5,
|
|
13311
13316
|
py: 1,
|
|
13312
13317
|
display: "flex",
|
|
@@ -13314,7 +13319,7 @@ const qf = /* @__PURE__ */ t(({
|
|
|
13314
13319
|
gap: 0.25
|
|
13315
13320
|
},
|
|
13316
13321
|
children: [
|
|
13317
|
-
|
|
13322
|
+
J ? /* @__PURE__ */ n(
|
|
13318
13323
|
D,
|
|
13319
13324
|
{
|
|
13320
13325
|
component: "textarea",
|
|
@@ -13397,7 +13402,7 @@ const qf = /* @__PURE__ */ t(({
|
|
|
13397
13402
|
}
|
|
13398
13403
|
)
|
|
13399
13404
|
] }),
|
|
13400
|
-
se.updatedAt && !
|
|
13405
|
+
se.updatedAt && !J && /* @__PURE__ */ n(
|
|
13401
13406
|
ne,
|
|
13402
13407
|
{
|
|
13403
13408
|
sx: /* @__PURE__ */ t((oe) => ({
|
|
@@ -13751,12 +13756,12 @@ const $o = /* @__PURE__ */ t(({
|
|
|
13751
13756
|
A && y(A);
|
|
13752
13757
|
}
|
|
13753
13758
|
}, [b, e.id]);
|
|
13754
|
-
const
|
|
13759
|
+
const k = Ce(() => {
|
|
13755
13760
|
const A = (l == null ? void 0 : l.items) ?? [], f = A.filter((g) => String(g.status).toLowerCase() === "completed").length, x = A.length, v = x > 0 ? f / x : 0;
|
|
13756
13761
|
return { completed: f, total: x, pct: v };
|
|
13757
13762
|
}, [l]), _ = Te(() => {
|
|
13758
13763
|
u((A) => A >= (i ? 1 : 2) ? 0 : A + 1);
|
|
13759
|
-
}, [i]),
|
|
13764
|
+
}, [i]), S = s >= 1 && ((l == null ? void 0 : l.items.length) ?? 0) > 0, w = s >= 2 && !i;
|
|
13760
13765
|
return /* @__PURE__ */ M(
|
|
13761
13766
|
D,
|
|
13762
13767
|
{
|
|
@@ -13845,7 +13850,7 @@ const $o = /* @__PURE__ */ t(({
|
|
|
13845
13850
|
children: e.name ?? e.id
|
|
13846
13851
|
}
|
|
13847
13852
|
),
|
|
13848
|
-
|
|
13853
|
+
k.total > 0 && /* @__PURE__ */ M(
|
|
13849
13854
|
ne,
|
|
13850
13855
|
{
|
|
13851
13856
|
sx: /* @__PURE__ */ t((A) => ({
|
|
@@ -13855,9 +13860,9 @@ const $o = /* @__PURE__ */ t(({
|
|
|
13855
13860
|
flexShrink: 0
|
|
13856
13861
|
}), "sx"),
|
|
13857
13862
|
children: [
|
|
13858
|
-
|
|
13863
|
+
k.completed,
|
|
13859
13864
|
"/",
|
|
13860
|
-
|
|
13865
|
+
k.total
|
|
13861
13866
|
]
|
|
13862
13867
|
}
|
|
13863
13868
|
),
|
|
@@ -13880,7 +13885,7 @@ const $o = /* @__PURE__ */ t(({
|
|
|
13880
13885
|
]
|
|
13881
13886
|
}
|
|
13882
13887
|
),
|
|
13883
|
-
|
|
13888
|
+
k.total > 0 && /* @__PURE__ */ n(
|
|
13884
13889
|
D,
|
|
13885
13890
|
{
|
|
13886
13891
|
sx: /* @__PURE__ */ t((A) => ({
|
|
@@ -13892,7 +13897,7 @@ const $o = /* @__PURE__ */ t(({
|
|
|
13892
13897
|
D,
|
|
13893
13898
|
{
|
|
13894
13899
|
sx: /* @__PURE__ */ t((A) => ({
|
|
13895
|
-
width: `${Math.round(
|
|
13900
|
+
width: `${Math.round(k.pct * 100)}%`,
|
|
13896
13901
|
height: "100%",
|
|
13897
13902
|
backgroundColor: A.palette.primary.main,
|
|
13898
13903
|
transition: "width .25s ease"
|
|
@@ -13901,7 +13906,7 @@ const $o = /* @__PURE__ */ t(({
|
|
|
13901
13906
|
)
|
|
13902
13907
|
}
|
|
13903
13908
|
),
|
|
13904
|
-
|
|
13909
|
+
S && /* @__PURE__ */ n(D, { sx: { px: 1, pt: 0.75, pb: 0.5 }, children: /* @__PURE__ */ n(er, { todoList: l, dense: !0 }) }),
|
|
13905
13910
|
w && /* @__PURE__ */ n(D, { sx: { px: 1.5, pb: 1, pt: 0.5 }, children: /* @__PURE__ */ n(
|
|
13906
13911
|
ne,
|
|
13907
13912
|
{
|
|
@@ -13960,26 +13965,26 @@ function r0({ bytes: e }) {
|
|
|
13960
13965
|
return /* @__PURE__ */ n(
|
|
13961
13966
|
D,
|
|
13962
13967
|
{
|
|
13963
|
-
sx: /* @__PURE__ */ t((
|
|
13968
|
+
sx: /* @__PURE__ */ t((k) => ({
|
|
13964
13969
|
position: "relative",
|
|
13965
13970
|
width: `${t0}px`,
|
|
13966
13971
|
height: `${$s}px`,
|
|
13967
13972
|
borderRadius: "1px",
|
|
13968
|
-
border: `1px solid ${
|
|
13969
|
-
backgroundColor:
|
|
13973
|
+
border: `1px solid ${k.palette.border.soft}`,
|
|
13974
|
+
backgroundColor: k.palette.surface.raised,
|
|
13970
13975
|
overflow: "hidden",
|
|
13971
13976
|
flexShrink: 0
|
|
13972
13977
|
}), "sx"),
|
|
13973
13978
|
children: /* @__PURE__ */ n(
|
|
13974
13979
|
D,
|
|
13975
13980
|
{
|
|
13976
|
-
sx: /* @__PURE__ */ t((
|
|
13981
|
+
sx: /* @__PURE__ */ t((k) => ({
|
|
13977
13982
|
position: "absolute",
|
|
13978
13983
|
left: 0,
|
|
13979
13984
|
right: 0,
|
|
13980
13985
|
bottom: 0,
|
|
13981
13986
|
height: `${E * 100}%`,
|
|
13982
|
-
backgroundColor:
|
|
13987
|
+
backgroundColor: k.palette.primary.main,
|
|
13983
13988
|
opacity: y ? 0.85 : 0.7,
|
|
13984
13989
|
transition: "height .15s ease-out",
|
|
13985
13990
|
animation: b ? "v2aapulse 0.9s ease-in-out infinite" : "none"
|
|
@@ -14043,7 +14048,7 @@ t(o0, "ToolGlyph");
|
|
|
14043
14048
|
function a0({ part: e, isLast: r, compact: i = !0 }) {
|
|
14044
14049
|
const [s, u] = G(!1), l = e.functionDetails;
|
|
14045
14050
|
if (!l) return null;
|
|
14046
|
-
const y = l.start ? new Date(l.start).getTime() : void 0, b = l.end ? new Date(l.end).getTime() : void 0, E = l.status === "Done" ? "done" : l.status === "Executing" || l.status === "Composing" ? "running" : "pending",
|
|
14051
|
+
const y = l.start ? new Date(l.start).getTime() : void 0, b = l.end ? new Date(l.end).getTime() : void 0, E = l.status === "Done" ? "done" : l.status === "Executing" || l.status === "Composing" ? "running" : "pending", k = E === "done" && y && b ? Zf(b - y) : null, _ = E === "running", S = l.status === "Composing", w = Ce(() => {
|
|
14047
14052
|
if (l.text) return ko(l.text);
|
|
14048
14053
|
if (l.args == null) return "";
|
|
14049
14054
|
if (typeof l.args == "string") return ko(l.args);
|
|
@@ -14059,7 +14064,7 @@ function a0({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
14059
14064
|
} catch {
|
|
14060
14065
|
return String(l.response);
|
|
14061
14066
|
}
|
|
14062
|
-
}, [l.response]), f = e.eventType === "function_response" ? "response" : e.eventType === "partial_function_call" ||
|
|
14067
|
+
}, [l.response]), f = e.eventType === "function_response" ? "response" : e.eventType === "partial_function_call" || S ? "partial" : "call", x = !1, v = Ce(
|
|
14063
14068
|
() => Pr(l.name, f, l.args ?? l.text, x),
|
|
14064
14069
|
[l.name, f, l.args, l.text, x]
|
|
14065
14070
|
), g = Ce(() => {
|
|
@@ -14117,7 +14122,7 @@ function a0({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
14117
14122
|
sx: /* @__PURE__ */ t((p) => ({
|
|
14118
14123
|
fontSize: 12.5,
|
|
14119
14124
|
fontWeight: _ ? 500 : 400,
|
|
14120
|
-
fontStyle:
|
|
14125
|
+
fontStyle: S ? "italic" : "normal",
|
|
14121
14126
|
color: E === "pending" ? p.palette.text.disabled : _ ? p.palette.text.primary : p.palette.text.secondary,
|
|
14122
14127
|
textAlign: "left"
|
|
14123
14128
|
}), "sx"),
|
|
@@ -14125,12 +14130,12 @@ function a0({ part: e, isLast: r, compact: i = !0 }) {
|
|
|
14125
14130
|
}
|
|
14126
14131
|
),
|
|
14127
14132
|
/* @__PURE__ */ n(D, { sx: { flex: 1 } }),
|
|
14128
|
-
|
|
14133
|
+
S && g > 0 && /* @__PURE__ */ M(D, { sx: { display: "inline-flex", alignItems: "center", gap: 0.5 }, children: [
|
|
14129
14134
|
/* @__PURE__ */ n(r0, { bytes: g }),
|
|
14130
14135
|
/* @__PURE__ */ n(ne, { sx: /* @__PURE__ */ t((p) => ({ fontSize: 10, color: p.palette.text.disabled, fontFamily: p.typography.fontFamilyMono }), "sx"), children: n0(g) })
|
|
14131
14136
|
] }),
|
|
14132
|
-
|
|
14133
|
-
_ && !
|
|
14137
|
+
k && /* @__PURE__ */ n(ne, { sx: /* @__PURE__ */ t((p) => ({ fontSize: 10.5, color: p.palette.text.disabled, fontFamily: p.typography.fontFamilyMono }), "sx"), children: k }),
|
|
14138
|
+
_ && !S && /* @__PURE__ */ n(
|
|
14134
14139
|
ne,
|
|
14135
14140
|
{
|
|
14136
14141
|
sx: /* @__PURE__ */ t((p) => ({
|
|
@@ -14261,26 +14266,26 @@ function l0({
|
|
|
14261
14266
|
onSelect: i
|
|
14262
14267
|
}) {
|
|
14263
14268
|
const s = te(null), [u, l] = G(!1), [y, b] = G(!1), E = Te(() => {
|
|
14264
|
-
const
|
|
14265
|
-
if (!
|
|
14266
|
-
const w =
|
|
14267
|
-
l(
|
|
14269
|
+
const S = s.current;
|
|
14270
|
+
if (!S) return;
|
|
14271
|
+
const w = S.scrollWidth - S.clientWidth;
|
|
14272
|
+
l(S.scrollLeft > 4), b(S.scrollLeft < w - 4);
|
|
14268
14273
|
}, []);
|
|
14269
14274
|
de(() => {
|
|
14270
14275
|
E();
|
|
14271
|
-
const
|
|
14272
|
-
if (!
|
|
14276
|
+
const S = s.current;
|
|
14277
|
+
if (!S) return;
|
|
14273
14278
|
const w = /* @__PURE__ */ t(() => E(), "handler");
|
|
14274
|
-
|
|
14279
|
+
S.addEventListener("scroll", w, { passive: !0 });
|
|
14275
14280
|
const A = new ResizeObserver(E);
|
|
14276
|
-
return A.observe(
|
|
14277
|
-
|
|
14281
|
+
return A.observe(S), () => {
|
|
14282
|
+
S.removeEventListener("scroll", w), A.disconnect();
|
|
14278
14283
|
};
|
|
14279
14284
|
}, [E, e.length]);
|
|
14280
|
-
const
|
|
14285
|
+
const k = /* @__PURE__ */ t((S) => {
|
|
14281
14286
|
var w;
|
|
14282
|
-
(w = s.current) == null || w.scrollBy({ left:
|
|
14283
|
-
}, "scrollBy"), _ = /* @__PURE__ */ t((
|
|
14287
|
+
(w = s.current) == null || w.scrollBy({ left: S, behavior: "smooth" });
|
|
14288
|
+
}, "scrollBy"), _ = /* @__PURE__ */ t((S, w, A, f) => /* @__PURE__ */ n(
|
|
14284
14289
|
D,
|
|
14285
14290
|
{
|
|
14286
14291
|
role: "button",
|
|
@@ -14314,21 +14319,21 @@ function l0({
|
|
|
14314
14319
|
}), "sx"),
|
|
14315
14320
|
children: w
|
|
14316
14321
|
},
|
|
14317
|
-
|
|
14322
|
+
S
|
|
14318
14323
|
), "renderPill");
|
|
14319
14324
|
return /* @__PURE__ */ M(D, { sx: { position: "relative", display: "flex", alignItems: "center", mb: 0.75 }, children: [
|
|
14320
14325
|
u && /* @__PURE__ */ n(
|
|
14321
14326
|
Be,
|
|
14322
14327
|
{
|
|
14323
14328
|
size: "small",
|
|
14324
|
-
onClick: /* @__PURE__ */ t(() =>
|
|
14325
|
-
sx: /* @__PURE__ */ t((
|
|
14329
|
+
onClick: /* @__PURE__ */ t(() => k(-Bs), "onClick"),
|
|
14330
|
+
sx: /* @__PURE__ */ t((S) => ({
|
|
14326
14331
|
flexShrink: 0,
|
|
14327
|
-
color:
|
|
14332
|
+
color: S.palette.text.secondary,
|
|
14328
14333
|
p: 0.25,
|
|
14329
14334
|
mr: 0.25,
|
|
14330
14335
|
"& svg": { transform: "rotate(90deg)" },
|
|
14331
|
-
"&:hover": { color:
|
|
14336
|
+
"&:hover": { color: S.palette.text.primary, backgroundColor: S.palette.surface.raised }
|
|
14332
14337
|
}), "sx"),
|
|
14333
14338
|
"aria-label": "Rolar para a esquerda",
|
|
14334
14339
|
children: /* @__PURE__ */ n(Mr, { size: 14 })
|
|
@@ -14355,12 +14360,12 @@ function l0({
|
|
|
14355
14360
|
r === "all",
|
|
14356
14361
|
() => i("all")
|
|
14357
14362
|
),
|
|
14358
|
-
e.map((
|
|
14359
|
-
|
|
14363
|
+
e.map((S) => (S.id, _(
|
|
14364
|
+
S.id,
|
|
14360
14365
|
/* @__PURE__ */ M(ie, { children: [
|
|
14361
14366
|
/* @__PURE__ */ M(ne, { component: "span", sx: /* @__PURE__ */ t((w) => ({ fontSize: "inherit", fontWeight: "inherit", fontFamily: w.typography.fontFamily }), "sx"), children: [
|
|
14362
14367
|
"Turn ",
|
|
14363
|
-
|
|
14368
|
+
S.number
|
|
14364
14369
|
] }),
|
|
14365
14370
|
" ",
|
|
14366
14371
|
/* @__PURE__ */ n(
|
|
@@ -14373,12 +14378,12 @@ function l0({
|
|
|
14373
14378
|
color: w.palette.text.disabled,
|
|
14374
14379
|
ml: 0.5
|
|
14375
14380
|
}), "sx"),
|
|
14376
|
-
children:
|
|
14381
|
+
children: S.timeLabel
|
|
14377
14382
|
}
|
|
14378
14383
|
)
|
|
14379
14384
|
] }),
|
|
14380
|
-
r ===
|
|
14381
|
-
() => i(
|
|
14385
|
+
r === S.id,
|
|
14386
|
+
() => i(S.id)
|
|
14382
14387
|
)))
|
|
14383
14388
|
]
|
|
14384
14389
|
}
|
|
@@ -14387,14 +14392,14 @@ function l0({
|
|
|
14387
14392
|
Be,
|
|
14388
14393
|
{
|
|
14389
14394
|
size: "small",
|
|
14390
|
-
onClick: /* @__PURE__ */ t(() =>
|
|
14391
|
-
sx: /* @__PURE__ */ t((
|
|
14395
|
+
onClick: /* @__PURE__ */ t(() => k(Bs), "onClick"),
|
|
14396
|
+
sx: /* @__PURE__ */ t((S) => ({
|
|
14392
14397
|
flexShrink: 0,
|
|
14393
|
-
color:
|
|
14398
|
+
color: S.palette.text.secondary,
|
|
14394
14399
|
p: 0.25,
|
|
14395
14400
|
ml: 0.25,
|
|
14396
14401
|
"& svg": { transform: "rotate(-90deg)" },
|
|
14397
|
-
"&:hover": { color:
|
|
14402
|
+
"&:hover": { color: S.palette.text.primary, backgroundColor: S.palette.surface.raised }
|
|
14398
14403
|
}), "sx"),
|
|
14399
14404
|
"aria-label": "Rolar para a direita",
|
|
14400
14405
|
children: /* @__PURE__ */ n(Mr, { size: 14 })
|
|
@@ -14411,7 +14416,7 @@ const Bo = /* @__PURE__ */ t(({
|
|
|
14411
14416
|
compact: u = !0,
|
|
14412
14417
|
showTurnHistory: l = !1
|
|
14413
14418
|
}) => {
|
|
14414
|
-
const y = xe((g) => g.currentMessage), b = xe((g) => g.messages), E = xe((g) => g.turnOpen),
|
|
14419
|
+
const y = xe((g) => g.currentMessage), b = xe((g) => g.messages), E = xe((g) => g.turnOpen), k = Ce(() => {
|
|
14415
14420
|
if (!l || !b || b.length === 0) return [];
|
|
14416
14421
|
const g = /* @__PURE__ */ new Set(["thought", "function_call", "function_response", "partial_function_call"]), p = [...b].sort((c, C) => {
|
|
14417
14422
|
const h = c.created ? new Date(c.created).getTime() : 0, R = C.created ? new Date(C.created).getTime() : 0;
|
|
@@ -14432,10 +14437,10 @@ const Bo = /* @__PURE__ */ t(({
|
|
|
14432
14437
|
timeLabel: s0(c.created)
|
|
14433
14438
|
});
|
|
14434
14439
|
}), I.reverse();
|
|
14435
|
-
}, [b, l]), [_,
|
|
14440
|
+
}, [b, l]), [_, S] = G(null), w = te(E);
|
|
14436
14441
|
de(() => {
|
|
14437
14442
|
const g = w.current;
|
|
14438
|
-
w.current = E, E && !g &&
|
|
14443
|
+
w.current = E, E && !g && S(null);
|
|
14439
14444
|
}, [E]);
|
|
14440
14445
|
const A = Ce(() => {
|
|
14441
14446
|
const g = /* @__PURE__ */ new Set(["thought", "function_call", "function_response", "partial_function_call"]), p = /* @__PURE__ */ t((c) => c != null && c.parts ? c.parts.filter(
|
|
@@ -14479,12 +14484,12 @@ const Bo = /* @__PURE__ */ t(({
|
|
|
14479
14484
|
}
|
|
14480
14485
|
p.scrollHeight - p.scrollTop - p.clientHeight < 120 && g.scrollIntoView({ block: "end", behavior: "smooth" });
|
|
14481
14486
|
}, [A.length, s]);
|
|
14482
|
-
const x = l &&
|
|
14487
|
+
const x = l && k.length > 0 && !E ? /* @__PURE__ */ n(
|
|
14483
14488
|
l0,
|
|
14484
14489
|
{
|
|
14485
|
-
turns:
|
|
14490
|
+
turns: k,
|
|
14486
14491
|
selectedKey: _,
|
|
14487
|
-
onSelect:
|
|
14492
|
+
onSelect: S
|
|
14488
14493
|
}
|
|
14489
14494
|
) : null;
|
|
14490
14495
|
if (A.length === 0)
|
|
@@ -14518,7 +14523,7 @@ function c0({ info: e }) {
|
|
|
14518
14523
|
/* @__PURE__ */ n(D, { children: `Uso atual: ${i}%` }),
|
|
14519
14524
|
/* @__PURE__ */ n(D, { children: `${e.size.toLocaleString()} / ${e.maxSize.toLocaleString()} tokens` }),
|
|
14520
14525
|
/* @__PURE__ */ n(D, { children: `Limite: ${Math.round(e.threshold * 100)}%` })
|
|
14521
|
-
] }), l = 26, y = 2, b = (l - y) / 2, E = 2 * Math.PI * b,
|
|
14526
|
+
] }), l = 26, y = 2, b = (l - y) / 2, E = 2 * Math.PI * b, k = Math.max(0, Math.min(1, e.ratio)), _ = E * k, S = "#26262d", w = s ? "#d97a7a" : r.palette.primary.light, A = s ? "#d97a7a" : "#ececef";
|
|
14522
14527
|
return /* @__PURE__ */ n($e, { title: u, placement: "top", arrow: !0, children: /* @__PURE__ */ M(
|
|
14523
14528
|
D,
|
|
14524
14529
|
{
|
|
@@ -14553,7 +14558,7 @@ function c0({ info: e }) {
|
|
|
14553
14558
|
cy: l / 2,
|
|
14554
14559
|
r: b,
|
|
14555
14560
|
fill: "#17171b",
|
|
14556
|
-
stroke:
|
|
14561
|
+
stroke: S,
|
|
14557
14562
|
strokeWidth: y
|
|
14558
14563
|
}
|
|
14559
14564
|
),
|
|
@@ -14604,24 +14609,24 @@ const d0 = /* @__PURE__ */ t(({
|
|
|
14604
14609
|
previousRatio: 0,
|
|
14605
14610
|
threshold: 0.9,
|
|
14606
14611
|
maxSize: 0
|
|
14607
|
-
}, [s, u] = G(0), l = gt(), [y, b] = G(i), E = xe((c) => c.session),
|
|
14612
|
+
}, [s, u] = G(0), l = gt(), [y, b] = G(i), E = xe((c) => c.session), k = xe((c) => c.statistics), _ = xe((c) => c.connectionStatus);
|
|
14608
14613
|
de(() => {
|
|
14609
14614
|
b(i);
|
|
14610
14615
|
}, [E]), de(() => {
|
|
14611
|
-
const c =
|
|
14616
|
+
const c = k == null ? void 0 : k.sessionInformation;
|
|
14612
14617
|
c && b(c);
|
|
14613
|
-
}, [
|
|
14614
|
-
|
|
14615
|
-
}, [
|
|
14616
|
-
const
|
|
14618
|
+
}, [k]), de(() => {
|
|
14619
|
+
k && u(k.buffer.reduce((c, C) => c + C.length, 0));
|
|
14620
|
+
}, [k]);
|
|
14621
|
+
const S = ((k == null ? void 0 : k.buffer.length) ?? 0) > 1, w = ((k == null ? void 0 : k.unknonwCount) ?? 0) + ((k == null ? void 0 : k.unparsedCount) ?? 0), A = w > 0, f = /* @__PURE__ */ t((c) => {
|
|
14617
14622
|
if (c < 60)
|
|
14618
14623
|
return `${c.toFixed(2)}s`;
|
|
14619
14624
|
{
|
|
14620
14625
|
const C = Math.floor(c / 60), h = c % 60;
|
|
14621
14626
|
return `${C}.${Math.floor(h / 6)}min`;
|
|
14622
14627
|
}
|
|
14623
|
-
}, "formatElapsed"), x = Te((c) => c < 1024 ? `${c.toFixed(1)}B` : c < 1024 * 1024 ? `${(c / 1024).toFixed(1)}KB` : `${(c / (1024 * 1024)).toFixed(1)}MB`, [
|
|
14624
|
-
const c = (
|
|
14628
|
+
}, "formatElapsed"), x = Te((c) => c < 1024 ? `${c.toFixed(1)}B` : c < 1024 * 1024 ? `${(c / 1024).toFixed(1)}KB` : `${(c / (1024 * 1024)).toFixed(1)}MB`, [k]), v = /* @__PURE__ */ t(() => {
|
|
14629
|
+
const c = (k == null ? void 0 : k.tokensPerSecond) ?? 0, C = 1e3 / 50;
|
|
14625
14630
|
return c > C ? l.palette.warning.dark : c > C * 0.8 ? l.palette.secondary.light : c > C * 0.6 ? l.palette.secondary.dark : c > C * 0.4 ? l.palette.primary.dark : c > C * 0.2 ? l.palette.text.primary : l.palette.text.secondary;
|
|
14626
14631
|
}, "getPerSecondColor"), g = Te((c) => {
|
|
14627
14632
|
const C = 900 - Math.min(Math.round(1e3 * Math.max(c, 0.2) / 100), 9) * 100 + 100;
|
|
@@ -14670,7 +14675,7 @@ const d0 = /* @__PURE__ */ t(({
|
|
|
14670
14675
|
{
|
|
14671
14676
|
variant: "caption",
|
|
14672
14677
|
sx: { color: v(), ...p },
|
|
14673
|
-
children: (
|
|
14678
|
+
children: (k == null ? void 0 : k.tokensPerSecond.toFixed(2)) ?? "-"
|
|
14674
14679
|
}
|
|
14675
14680
|
),
|
|
14676
14681
|
/* @__PURE__ */ n(D, { sx: { width: "5px" } }),
|
|
@@ -14681,7 +14686,7 @@ const d0 = /* @__PURE__ */ t(({
|
|
|
14681
14686
|
{
|
|
14682
14687
|
variant: "caption",
|
|
14683
14688
|
sx: { color: "text.secondary", ...p },
|
|
14684
|
-
children: f((
|
|
14689
|
+
children: f((k == null ? void 0 : k.elapsed) ?? 0)
|
|
14685
14690
|
}
|
|
14686
14691
|
),
|
|
14687
14692
|
/* @__PURE__ */ n(D, { sx: { width: "5px" } })
|
|
@@ -14692,11 +14697,11 @@ const d0 = /* @__PURE__ */ t(({
|
|
|
14692
14697
|
{
|
|
14693
14698
|
variant: "caption",
|
|
14694
14699
|
sx: { color: "text.secondary", ...p },
|
|
14695
|
-
children: x((
|
|
14700
|
+
children: x((k == null ? void 0 : k.totalTransfered) ?? 0)
|
|
14696
14701
|
}
|
|
14697
14702
|
),
|
|
14698
14703
|
/* @__PURE__ */ n(D, { sx: { width: "5px" } }),
|
|
14699
|
-
|
|
14704
|
+
S && /* @__PURE__ */ M(ie, { children: [
|
|
14700
14705
|
/* @__PURE__ */ n(D, { sx: { width: "5px" } }),
|
|
14701
14706
|
/* @__PURE__ */ n(ip, { sx: { fontSize: "0.8rem", color: "text.primary" } }),
|
|
14702
14707
|
/* @__PURE__ */ n(
|
|
@@ -14929,33 +14934,33 @@ const x0 = 4, Us = 8, Pa = 500, v0 = 12, Mc = ht.memo(({ bytes: e, compact: r =
|
|
|
14929
14934
|
flexShrink: 0
|
|
14930
14935
|
},
|
|
14931
14936
|
children: Array.from({ length: u }, (y, b) => {
|
|
14932
|
-
const E = b < i,
|
|
14937
|
+
const E = b < i, k = !E && b === i && s > 0, _ = E ? 1 : k ? s : 0;
|
|
14933
14938
|
return /* @__PURE__ */ n(
|
|
14934
14939
|
D,
|
|
14935
14940
|
{
|
|
14936
|
-
sx: /* @__PURE__ */ t((
|
|
14941
|
+
sx: /* @__PURE__ */ t((S) => ({
|
|
14937
14942
|
position: "relative",
|
|
14938
14943
|
width: `${x0}px`,
|
|
14939
14944
|
height: `${Us}px`,
|
|
14940
14945
|
borderRadius: "1px",
|
|
14941
|
-
border: `1px solid ${
|
|
14942
|
-
backgroundColor:
|
|
14946
|
+
border: `1px solid ${S.palette.border.soft}`,
|
|
14947
|
+
backgroundColor: S.palette.surface.raised,
|
|
14943
14948
|
overflow: "hidden",
|
|
14944
14949
|
flexShrink: 0
|
|
14945
14950
|
}), "sx"),
|
|
14946
14951
|
children: /* @__PURE__ */ n(
|
|
14947
14952
|
D,
|
|
14948
14953
|
{
|
|
14949
|
-
sx: /* @__PURE__ */ t((
|
|
14954
|
+
sx: /* @__PURE__ */ t((S) => ({
|
|
14950
14955
|
position: "absolute",
|
|
14951
14956
|
left: 0,
|
|
14952
14957
|
right: 0,
|
|
14953
14958
|
bottom: 0,
|
|
14954
14959
|
height: `${_ * 100}%`,
|
|
14955
|
-
backgroundColor:
|
|
14960
|
+
backgroundColor: S.palette.primary.main,
|
|
14956
14961
|
opacity: E ? 0.85 : 0.7,
|
|
14957
14962
|
transition: "height .15s ease-out",
|
|
14958
|
-
animation:
|
|
14963
|
+
animation: k ? "v2rppulse 0.9s ease-in-out infinite" : "none"
|
|
14959
14964
|
}), "sx")
|
|
14960
14965
|
}
|
|
14961
14966
|
)
|
|
@@ -14994,7 +14999,7 @@ Rc.displayName = "RailCallTimer";
|
|
|
14994
14999
|
const zc = /* @__PURE__ */ t(({ call: e }) => {
|
|
14995
15000
|
const r = e.functionDetails;
|
|
14996
15001
|
if (!(r != null && r.name)) return null;
|
|
14997
|
-
const i = p0(r.name), u = u0[i].Icon, l = r.status === "Composing" || e.eventType === "partial_function_call", y = r.status === "Executing", b = r.status === "Done", E = y0(e),
|
|
15002
|
+
const i = p0(r.name), u = u0[i].Icon, l = r.status === "Composing" || e.eventType === "partial_function_call", y = r.status === "Executing", b = r.status === "Done", E = y0(e), k = b0(e), _ = Pr(r.name, k, r.args ?? r.text, E), S = (() => {
|
|
14998
15003
|
const w = pt.getPartTextContent(e);
|
|
14999
15004
|
if (typeof w == "string" && w.length > 0) return w.length;
|
|
15000
15005
|
if (typeof r.text == "string" && r.text.length > 0) return r.text.length;
|
|
@@ -15048,7 +15053,7 @@ const zc = /* @__PURE__ */ t(({ call: e }) => {
|
|
|
15048
15053
|
}
|
|
15049
15054
|
),
|
|
15050
15055
|
/* @__PURE__ */ n(u, { size: 14 }),
|
|
15051
|
-
l && /* @__PURE__ */ n(Mc, { bytes:
|
|
15056
|
+
l && /* @__PURE__ */ n(Mc, { bytes: S, compact: !0 }),
|
|
15052
15057
|
y && r.start && /* @__PURE__ */ n(Rc, { start: r.start })
|
|
15053
15058
|
]
|
|
15054
15059
|
}
|
|
@@ -15121,7 +15126,7 @@ const Dc = ht.memo(() => {
|
|
|
15121
15126
|
});
|
|
15122
15127
|
Dc.displayName = "RailTokensPerSecond";
|
|
15123
15128
|
const Oc = /* @__PURE__ */ t(({ todoList: e, completed: r, total: i, pct: s }) => {
|
|
15124
|
-
const u = gt(), l = 30, y = 2.5, b = (l - y) / 2, E = 2 * Math.PI * b,
|
|
15129
|
+
const u = gt(), l = 30, y = 2.5, b = (l - y) / 2, E = 2 * Math.PI * b, k = Math.max(0, Math.min(1, s)), _ = E * k, S = Math.round(k * 100), w = e ? /* @__PURE__ */ M(D, { sx: { width: 280 }, children: [
|
|
15125
15130
|
/* @__PURE__ */ M(
|
|
15126
15131
|
D,
|
|
15127
15132
|
{
|
|
@@ -15186,7 +15191,7 @@ const Oc = /* @__PURE__ */ t(({ todoList: e, completed: r, total: i, pct: s }) =
|
|
|
15186
15191
|
justifyContent: "center",
|
|
15187
15192
|
flexShrink: 0
|
|
15188
15193
|
},
|
|
15189
|
-
"aria-label": `Tarefas: ${
|
|
15194
|
+
"aria-label": `Tarefas: ${S}%`,
|
|
15190
15195
|
children: [
|
|
15191
15196
|
/* @__PURE__ */ M(
|
|
15192
15197
|
D,
|
|
@@ -15240,7 +15245,7 @@ const Oc = /* @__PURE__ */ t(({ todoList: e, completed: r, total: i, pct: s }) =
|
|
|
15240
15245
|
color: A.palette.text.primary,
|
|
15241
15246
|
lineHeight: 1
|
|
15242
15247
|
}), "sx"),
|
|
15243
|
-
children:
|
|
15248
|
+
children: S
|
|
15244
15249
|
}
|
|
15245
15250
|
)
|
|
15246
15251
|
]
|
|
@@ -15308,7 +15313,7 @@ const di = /* @__PURE__ */ t(({
|
|
|
15308
15313
|
onCollapsedChange: y,
|
|
15309
15314
|
defaultCollapsed: b = !1
|
|
15310
15315
|
}) => {
|
|
15311
|
-
const E = gt(), [
|
|
15316
|
+
const E = gt(), [k, _] = G(b), S = l ?? k, w = /* @__PURE__ */ t((K) => {
|
|
15312
15317
|
l === void 0 && _(K), y == null || y(K);
|
|
15313
15318
|
}, "setCollapsed"), A = xe((K) => K.turnOpen), f = xe((K) => K.lastToolEvent), x = xe((K) => K.connectionStatus), { agentGatewayService: v } = ft();
|
|
15314
15319
|
de(() => {
|
|
@@ -15375,7 +15380,7 @@ const di = /* @__PURE__ */ t(({
|
|
|
15375
15380
|
), Z = (N == null ? void 0 : N.items.filter(
|
|
15376
15381
|
(K) => String(K.status).toLowerCase() === "completed"
|
|
15377
15382
|
).length) ?? 0, q = (N == null ? void 0 : N.items.length) ?? 0, ce = (N == null ? void 0 : N.percentComplete) != null && Number.isFinite(N.percentComplete) ? Math.max(0, Math.min(1, N.percentComplete)) : q > 0 ? Z / q : 0;
|
|
15378
|
-
return
|
|
15383
|
+
return S ? /* @__PURE__ */ M(
|
|
15379
15384
|
D,
|
|
15380
15385
|
{
|
|
15381
15386
|
component: "aside",
|
|
@@ -15499,7 +15504,7 @@ const di = /* @__PURE__ */ t(({
|
|
|
15499
15504
|
{
|
|
15500
15505
|
component: "aside",
|
|
15501
15506
|
sx: /* @__PURE__ */ t((K) => ({
|
|
15502
|
-
width:
|
|
15507
|
+
width: S ? "5%" : e,
|
|
15503
15508
|
maxWidth: "22%",
|
|
15504
15509
|
minWidth: "22%",
|
|
15505
15510
|
// flex: '0 0.1 3vw',
|