@motiadev/plugin-observability 0.13.0-beta.162-415452 → 0.13.0-beta.162-813224
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/hooks/use-get-endtime.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +248 -249
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import Pe, { forwardRef as
|
|
2
|
+
import Pe, { forwardRef as Qt, createElement as Mt, memo as V, useState as G, useRef as mt, useEffect as _e, useCallback as de, useMemo as z, useLayoutEffect as Ho, createContext as Bo, useContext as Ce, isValidElement as zo, Fragment as pr } from "react";
|
|
3
3
|
import { Input as Vo, cn as De, Button as ct, LevelDot as Uo, Sidebar as Yo, Badge as hr } from "@motiadev/ui";
|
|
4
4
|
import { useStreamItem as Go, useStreamGroup as gr } from "@motiadev/stream-client-react";
|
|
5
5
|
import * as vr from "react-dom";
|
|
@@ -202,8 +202,8 @@ function qo() {
|
|
|
202
202
|
else d(U);
|
|
203
203
|
if (H.call(N, "key")) {
|
|
204
204
|
U = e(y);
|
|
205
|
-
var le = Object.keys(N).filter(function(
|
|
206
|
-
return
|
|
205
|
+
var le = Object.keys(N).filter(function(jt) {
|
|
206
|
+
return jt !== "key";
|
|
207
207
|
});
|
|
208
208
|
P = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", B[U + P] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
209
|
`A props object containing a "key" prop is being spread into JSX:
|
|
@@ -248,10 +248,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return y();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var _, D = {},
|
|
251
|
+
var _, D = {}, O = h.react_stack_bottom_frame.bind(
|
|
252
252
|
h,
|
|
253
253
|
s
|
|
254
|
-
)(),
|
|
254
|
+
)(), R = M(r(s)), B = {};
|
|
255
255
|
He.Fragment = g, He.jsx = function(y, N, $, P, F) {
|
|
256
256
|
var Z = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return f(
|
|
@@ -261,8 +261,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
261
261
|
!1,
|
|
262
262
|
P,
|
|
263
263
|
F,
|
|
264
|
-
Z ? Error("react-stack-top-frame") :
|
|
265
|
-
Z ? M(r(y)) :
|
|
264
|
+
Z ? Error("react-stack-top-frame") : O,
|
|
265
|
+
Z ? M(r(y)) : R
|
|
266
266
|
);
|
|
267
267
|
}, He.jsxs = function(y, N, $, P, F) {
|
|
268
268
|
var Z = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
@@ -273,8 +273,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
273
273
|
!0,
|
|
274
274
|
P,
|
|
275
275
|
F,
|
|
276
|
-
Z ? Error("react-stack-top-frame") :
|
|
277
|
-
Z ? M(r(y)) :
|
|
276
|
+
Z ? Error("react-stack-top-frame") : O,
|
|
277
|
+
Z ? M(r(y)) : R
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
}()), He;
|
|
@@ -324,7 +324,7 @@ var ts = {
|
|
|
324
324
|
* This source code is licensed under the ISC license.
|
|
325
325
|
* See the LICENSE file in the root directory of this source tree.
|
|
326
326
|
*/
|
|
327
|
-
const ns =
|
|
327
|
+
const ns = Qt(
|
|
328
328
|
({
|
|
329
329
|
color: e = "currentColor",
|
|
330
330
|
size: t = 24,
|
|
@@ -334,7 +334,7 @@ const ns = Kt(
|
|
|
334
334
|
children: s,
|
|
335
335
|
iconNode: a,
|
|
336
336
|
...i
|
|
337
|
-
}, u) =>
|
|
337
|
+
}, u) => Mt(
|
|
338
338
|
"svg",
|
|
339
339
|
{
|
|
340
340
|
ref: u,
|
|
@@ -348,7 +348,7 @@ const ns = Kt(
|
|
|
348
348
|
...i
|
|
349
349
|
},
|
|
350
350
|
[
|
|
351
|
-
...a.map(([l, f]) =>
|
|
351
|
+
...a.map(([l, f]) => Mt(l, f)),
|
|
352
352
|
...Array.isArray(s) ? s : [s]
|
|
353
353
|
]
|
|
354
354
|
)
|
|
@@ -360,8 +360,8 @@ const ns = Kt(
|
|
|
360
360
|
* See the LICENSE file in the root directory of this source tree.
|
|
361
361
|
*/
|
|
362
362
|
const J = (e, t) => {
|
|
363
|
-
const n =
|
|
364
|
-
({ className: r, ...o }, s) =>
|
|
363
|
+
const n = Qt(
|
|
364
|
+
({ className: r, ...o }, s) => Mt(ns, {
|
|
365
365
|
ref: s,
|
|
366
366
|
iconNode: t,
|
|
367
367
|
className: yr(
|
|
@@ -491,11 +491,10 @@ const hs = [
|
|
|
491
491
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
492
492
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
493
493
|
], gs = J("plus", hs), vs = (e) => {
|
|
494
|
-
const t = e?.endTime, [n, r] = G(() => t || Date.now());
|
|
495
|
-
return _e(() => {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
}, [t, n]), n;
|
|
494
|
+
const t = e?.endTime, [n, r] = G(() => t || Date.now()), o = mt(null);
|
|
495
|
+
return _e(() => (o.current && (clearInterval(o.current), o.current = null), t ? r(t) : o.current = setInterval(() => r(Date.now()), 100), () => {
|
|
496
|
+
o.current && (clearInterval(o.current), o.current = null);
|
|
497
|
+
}), [t]), n;
|
|
499
498
|
}, we = (e) => e == null ? "N/A" : e < 1e3 ? `${e}ms` : e < 6e4 ? `${(e / 1e3).toFixed(1)}s` : e < 36e5 ? `${(e / 6e4).toFixed(1)}min` : `${(e / 36e5).toFixed(1)}h`, ys = {
|
|
500
499
|
running: "bg-[repeating-linear-gradient(140deg,#BEFE29,#BEFE29_8px,#ABE625_8px,#ABE625_16px)]",
|
|
501
500
|
completed: "bg-[repeating-linear-gradient(140deg,#2862FE,#2862FE_8px,#2358E5_8px,#2358E5_16px)]",
|
|
@@ -608,17 +607,17 @@ const Ss = [
|
|
|
608
607
|
* This source code is licensed under the ISC license.
|
|
609
608
|
* See the LICENSE file in the root directory of this source tree.
|
|
610
609
|
*/
|
|
611
|
-
const Ns = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]],
|
|
610
|
+
const Ns = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Rs = J("check", Ns);
|
|
612
611
|
/**
|
|
613
612
|
* @license lucide-react v0.545.0 - ISC
|
|
614
613
|
*
|
|
615
614
|
* This source code is licensed under the ISC license.
|
|
616
615
|
* See the LICENSE file in the root directory of this source tree.
|
|
617
616
|
*/
|
|
618
|
-
const
|
|
617
|
+
const Os = [
|
|
619
618
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
620
619
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
621
|
-
], Ts = J("copy",
|
|
620
|
+
], Ts = J("copy", Os), _t = ({ textToCopy: e, className: t, title: n }) => {
|
|
622
621
|
const [r, o] = G(!1), s = de(async () => {
|
|
623
622
|
try {
|
|
624
623
|
await navigator.clipboard.writeText(e), o(!0), setTimeout(() => o(!1), 2e3);
|
|
@@ -634,7 +633,7 @@ const Rs = [
|
|
|
634
633
|
onClick: s,
|
|
635
634
|
className: De("cursor-pointer p-3 rounded-full", t),
|
|
636
635
|
title: n ?? (r ? "Copied!" : "Copy"),
|
|
637
|
-
children: r ? /* @__PURE__ */ c.jsx(
|
|
636
|
+
children: r ? /* @__PURE__ */ c.jsx(Rs, { className: "w-4 h-4 text-green-500" }) : /* @__PURE__ */ c.jsx(Ts, { className: "w-4 h-4 text-gray-400" })
|
|
638
637
|
}
|
|
639
638
|
);
|
|
640
639
|
};
|
|
@@ -802,7 +801,7 @@ function Ws(e, t = globalThis?.document) {
|
|
|
802
801
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
803
802
|
}, [n, t]);
|
|
804
803
|
}
|
|
805
|
-
var Hs = "DismissableLayer",
|
|
804
|
+
var Hs = "DismissableLayer", Dt = "dismissableLayer.update", Bs = "dismissableLayer.pointerDownOutside", zs = "dismissableLayer.focusOutside", Sn, Ar = m.createContext({
|
|
806
805
|
layers: /* @__PURE__ */ new Set(),
|
|
807
806
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
808
807
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -834,7 +833,7 @@ var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLa
|
|
|
834
833
|
f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), An());
|
|
835
834
|
}, [f, l]), m.useEffect(() => {
|
|
836
835
|
const C = () => p({});
|
|
837
|
-
return document.addEventListener(
|
|
836
|
+
return document.addEventListener(Dt, C), () => document.removeEventListener(Dt, C);
|
|
838
837
|
}, []), /* @__PURE__ */ c.jsx(
|
|
839
838
|
ce.div,
|
|
840
839
|
{
|
|
@@ -911,19 +910,19 @@ function Gs(e, t = globalThis?.document) {
|
|
|
911
910
|
};
|
|
912
911
|
}
|
|
913
912
|
function An() {
|
|
914
|
-
const e = new CustomEvent(
|
|
913
|
+
const e = new CustomEvent(Dt);
|
|
915
914
|
document.dispatchEvent(e);
|
|
916
915
|
}
|
|
917
916
|
function Nr(e, t, n, { discrete: r }) {
|
|
918
917
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
919
918
|
t && o.addEventListener(e, t, { once: !0 }), r ? $s(o, s) : o.dispatchEvent(s);
|
|
920
919
|
}
|
|
921
|
-
var
|
|
920
|
+
var Ct = 0;
|
|
922
921
|
function Zs() {
|
|
923
922
|
m.useEffect(() => {
|
|
924
923
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
925
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Pn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Pn()),
|
|
926
|
-
|
|
924
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Pn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Pn()), Ct++, () => {
|
|
925
|
+
Ct === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Ct--;
|
|
927
926
|
};
|
|
928
927
|
}, []);
|
|
929
928
|
}
|
|
@@ -931,7 +930,7 @@ function Pn() {
|
|
|
931
930
|
const e = document.createElement("span");
|
|
932
931
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
933
932
|
}
|
|
934
|
-
var
|
|
933
|
+
var Et = "focusScope.autoFocusOnMount", St = "focusScope.autoFocusOnUnmount", Nn = { bubbles: !1, cancelable: !0 }, Xs = "FocusScope", Rr = m.forwardRef((e, t) => {
|
|
935
934
|
const {
|
|
936
935
|
loop: n = !1,
|
|
937
936
|
trapped: r = !1,
|
|
@@ -970,16 +969,16 @@ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Nn
|
|
|
970
969
|
}
|
|
971
970
|
}, [r, i, p.paused]), m.useEffect(() => {
|
|
972
971
|
if (i) {
|
|
973
|
-
|
|
972
|
+
On.add(p);
|
|
974
973
|
const g = document.activeElement;
|
|
975
974
|
if (!i.contains(g)) {
|
|
976
|
-
const b = new CustomEvent(
|
|
977
|
-
i.addEventListener(
|
|
975
|
+
const b = new CustomEvent(Et, Nn);
|
|
976
|
+
i.addEventListener(Et, l), i.dispatchEvent(b), b.defaultPrevented || (qs(ta(Or(i)), { select: !0 }), document.activeElement === g && ue(i));
|
|
978
977
|
}
|
|
979
978
|
return () => {
|
|
980
|
-
i.removeEventListener(
|
|
981
|
-
const b = new CustomEvent(
|
|
982
|
-
i.addEventListener(
|
|
979
|
+
i.removeEventListener(Et, l), setTimeout(() => {
|
|
980
|
+
const b = new CustomEvent(St, Nn);
|
|
981
|
+
i.addEventListener(St, f), i.dispatchEvent(b), b.defaultPrevented || ue(g ?? document.body, { select: !0 }), i.removeEventListener(St, f), On.remove(p);
|
|
983
982
|
}, 0);
|
|
984
983
|
};
|
|
985
984
|
}
|
|
@@ -997,17 +996,17 @@ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Nn
|
|
|
997
996
|
);
|
|
998
997
|
return /* @__PURE__ */ c.jsx(ce.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
|
|
999
998
|
});
|
|
1000
|
-
|
|
999
|
+
Rr.displayName = Xs;
|
|
1001
1000
|
function qs(e, { select: t = !1 } = {}) {
|
|
1002
1001
|
const n = document.activeElement;
|
|
1003
1002
|
for (const r of e)
|
|
1004
1003
|
if (ue(r, { select: t }), document.activeElement !== n) return;
|
|
1005
1004
|
}
|
|
1006
1005
|
function Js(e) {
|
|
1007
|
-
const t =
|
|
1006
|
+
const t = Or(e), n = Rn(t, e), r = Rn(t.reverse(), e);
|
|
1008
1007
|
return [n, r];
|
|
1009
1008
|
}
|
|
1010
|
-
function
|
|
1009
|
+
function Or(e) {
|
|
1011
1010
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
1012
1011
|
acceptNode: (r) => {
|
|
1013
1012
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -1017,7 +1016,7 @@ function Rr(e) {
|
|
|
1017
1016
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
1018
1017
|
return t;
|
|
1019
1018
|
}
|
|
1020
|
-
function
|
|
1019
|
+
function Rn(e, t) {
|
|
1021
1020
|
for (const n of e)
|
|
1022
1021
|
if (!Ks(n, { upTo: t })) return n;
|
|
1023
1022
|
}
|
|
@@ -1039,7 +1038,7 @@ function ue(e, { select: t = !1 } = {}) {
|
|
|
1039
1038
|
e.focus({ preventScroll: !0 }), e !== n && Qs(e) && t && e.select();
|
|
1040
1039
|
}
|
|
1041
1040
|
}
|
|
1042
|
-
var
|
|
1041
|
+
var On = ea();
|
|
1043
1042
|
function ea() {
|
|
1044
1043
|
let e = [];
|
|
1045
1044
|
return {
|
|
@@ -1080,7 +1079,7 @@ const sa = ["top", "right", "bottom", "left"], pe = Math.min, X = Math.max, lt =
|
|
|
1080
1079
|
start: "end",
|
|
1081
1080
|
end: "start"
|
|
1082
1081
|
};
|
|
1083
|
-
function
|
|
1082
|
+
function Ft(e, t, n) {
|
|
1084
1083
|
return X(e, pe(t, n));
|
|
1085
1084
|
}
|
|
1086
1085
|
function ae(e, t) {
|
|
@@ -1112,9 +1111,9 @@ function ca(e, t, n) {
|
|
|
1112
1111
|
}
|
|
1113
1112
|
function la(e) {
|
|
1114
1113
|
const t = ut(e);
|
|
1115
|
-
return [
|
|
1114
|
+
return [Lt(e), t, Lt(t)];
|
|
1116
1115
|
}
|
|
1117
|
-
function
|
|
1116
|
+
function Lt(e) {
|
|
1118
1117
|
return e.replace(/start|end/g, (t) => ia[t]);
|
|
1119
1118
|
}
|
|
1120
1119
|
function ua(e, t, n) {
|
|
@@ -1133,7 +1132,7 @@ function ua(e, t, n) {
|
|
|
1133
1132
|
function fa(e, t, n, r) {
|
|
1134
1133
|
const o = Fe(e);
|
|
1135
1134
|
let s = ua(ie(e), n === "start", r);
|
|
1136
|
-
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(
|
|
1135
|
+
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(Lt)))), s;
|
|
1137
1136
|
}
|
|
1138
1137
|
function ut(e) {
|
|
1139
1138
|
return e.replace(/left|right|bottom|top/g, (t) => aa[t]);
|
|
@@ -1351,14 +1350,14 @@ const pa = (e) => ({
|
|
|
1351
1350
|
}, p = nn(o), v = tn(p), g = await a.getDimensions(l), x = p === "y", b = x ? "top" : "left", S = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[p] - h[p] - s.floating[v], j = h[p] - s.reference[p], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
|
|
1352
1351
|
let C = A ? A[E] : 0;
|
|
1353
1352
|
(!C || !await (a.isElement == null ? void 0 : a.isElement(A))) && (C = i.floating[E] || s.floating[v]);
|
|
1354
|
-
const T = w / 2 - j / 2, k = C / 2 - g[v] / 2 - 1, L = pe(d[b], k), W = pe(d[S], k), H = L, I = C - g[v] - W, M = C / 2 - g[v] / 2 + T, _ =
|
|
1353
|
+
const T = w / 2 - j / 2, k = C / 2 - g[v] / 2 - 1, L = pe(d[b], k), W = pe(d[S], k), H = L, I = C - g[v] - W, M = C / 2 - g[v] / 2 + T, _ = Ft(H, M, I), D = !u.arrow && Fe(o) != null && M !== _ && s.reference[v] / 2 - (M < H ? L : W) - g[v] / 2 < 0, O = D ? M < H ? M - H : M - I : 0;
|
|
1355
1354
|
return {
|
|
1356
|
-
[p]: h[p] +
|
|
1355
|
+
[p]: h[p] + O,
|
|
1357
1356
|
data: {
|
|
1358
1357
|
[p]: _,
|
|
1359
|
-
centerOffset: M - _ -
|
|
1358
|
+
centerOffset: M - _ - O,
|
|
1360
1359
|
...D && {
|
|
1361
|
-
alignmentOffset:
|
|
1360
|
+
alignmentOffset: O
|
|
1362
1361
|
}
|
|
1363
1362
|
},
|
|
1364
1363
|
reset: D
|
|
@@ -1412,21 +1411,21 @@ const pa = (e) => ({
|
|
|
1412
1411
|
placement: _
|
|
1413
1412
|
}
|
|
1414
1413
|
};
|
|
1415
|
-
let D = (H = L.filter((
|
|
1414
|
+
let D = (H = L.filter((O) => O.overflows[0] <= 0).sort((O, R) => O.overflows[1] - R.overflows[1])[0]) == null ? void 0 : H.placement;
|
|
1416
1415
|
if (!D)
|
|
1417
1416
|
switch (p) {
|
|
1418
1417
|
case "bestFit": {
|
|
1419
1418
|
var I;
|
|
1420
|
-
const
|
|
1419
|
+
const O = (I = L.filter((R) => {
|
|
1421
1420
|
if (A) {
|
|
1422
|
-
const B = he(
|
|
1421
|
+
const B = he(R.placement);
|
|
1423
1422
|
return B === S || // Create a bias to the `y` side axis due to horizontal
|
|
1424
1423
|
// reading directions favoring greater width.
|
|
1425
1424
|
B === "y";
|
|
1426
1425
|
}
|
|
1427
1426
|
return !0;
|
|
1428
|
-
}).map((
|
|
1429
|
-
|
|
1427
|
+
}).map((R) => [R.placement, R.overflows.filter((B) => B > 0).reduce((B, y) => B + y, 0)]).sort((R, B) => R[1] - B[1])[0]) == null ? void 0 : I[0];
|
|
1428
|
+
O && (D = O);
|
|
1430
1429
|
break;
|
|
1431
1430
|
}
|
|
1432
1431
|
case "initialPlacement":
|
|
@@ -1578,11 +1577,11 @@ const ya = function(e) {
|
|
|
1578
1577
|
let p = l[h], v = l[d];
|
|
1579
1578
|
if (s) {
|
|
1580
1579
|
const x = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", S = p + f[x], E = p - f[b];
|
|
1581
|
-
p =
|
|
1580
|
+
p = Ft(S, p, E);
|
|
1582
1581
|
}
|
|
1583
1582
|
if (a) {
|
|
1584
1583
|
const x = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", S = v + f[x], E = v - f[b];
|
|
1585
|
-
v =
|
|
1584
|
+
v = Ft(S, v, E);
|
|
1586
1585
|
}
|
|
1587
1586
|
const g = i.fn({
|
|
1588
1587
|
...t,
|
|
@@ -1685,7 +1684,7 @@ const ya = function(e) {
|
|
|
1685
1684
|
}
|
|
1686
1685
|
};
|
|
1687
1686
|
};
|
|
1688
|
-
function
|
|
1687
|
+
function pt() {
|
|
1689
1688
|
return typeof window < "u";
|
|
1690
1689
|
}
|
|
1691
1690
|
function Le(e) {
|
|
@@ -1700,16 +1699,16 @@ function oe(e) {
|
|
|
1700
1699
|
return (t = (kr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1701
1700
|
}
|
|
1702
1701
|
function kr(e) {
|
|
1703
|
-
return
|
|
1702
|
+
return pt() ? e instanceof Node || e instanceof q(e).Node : !1;
|
|
1704
1703
|
}
|
|
1705
1704
|
function Q(e) {
|
|
1706
|
-
return
|
|
1705
|
+
return pt() ? e instanceof Element || e instanceof q(e).Element : !1;
|
|
1707
1706
|
}
|
|
1708
1707
|
function re(e) {
|
|
1709
|
-
return
|
|
1708
|
+
return pt() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
|
|
1710
1709
|
}
|
|
1711
1710
|
function Dn(e) {
|
|
1712
|
-
return !
|
|
1711
|
+
return !pt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
1713
1712
|
}
|
|
1714
1713
|
function Ge(e) {
|
|
1715
1714
|
const {
|
|
@@ -1723,7 +1722,7 @@ function Ge(e) {
|
|
|
1723
1722
|
function ja(e) {
|
|
1724
1723
|
return ["table", "td", "th"].includes(Le(e));
|
|
1725
1724
|
}
|
|
1726
|
-
function
|
|
1725
|
+
function ht(e) {
|
|
1727
1726
|
return [":popover-open", ":modal"].some((t) => {
|
|
1728
1727
|
try {
|
|
1729
1728
|
return e.matches(t);
|
|
@@ -1741,7 +1740,7 @@ function Ca(e) {
|
|
|
1741
1740
|
for (; re(t) && !ke(t); ) {
|
|
1742
1741
|
if (rn(t))
|
|
1743
1742
|
return t;
|
|
1744
|
-
if (
|
|
1743
|
+
if (ht(t))
|
|
1745
1744
|
return null;
|
|
1746
1745
|
t = ge(t);
|
|
1747
1746
|
}
|
|
@@ -1756,7 +1755,7 @@ function ke(e) {
|
|
|
1756
1755
|
function ee(e) {
|
|
1757
1756
|
return q(e).getComputedStyle(e);
|
|
1758
1757
|
}
|
|
1759
|
-
function
|
|
1758
|
+
function gt(e) {
|
|
1760
1759
|
return Q(e) ? {
|
|
1761
1760
|
scrollLeft: e.scrollLeft,
|
|
1762
1761
|
scrollTop: e.scrollTop
|
|
@@ -1786,12 +1785,12 @@ function Ye(e, t, n) {
|
|
|
1786
1785
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1787
1786
|
const o = Mr(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = q(o);
|
|
1788
1787
|
if (s) {
|
|
1789
|
-
const i =
|
|
1788
|
+
const i = It(a);
|
|
1790
1789
|
return t.concat(a, a.visualViewport || [], Ge(o) ? o : [], i && n ? Ye(i) : []);
|
|
1791
1790
|
}
|
|
1792
1791
|
return t.concat(o, Ye(o, [], n));
|
|
1793
1792
|
}
|
|
1794
|
-
function
|
|
1793
|
+
function It(e) {
|
|
1795
1794
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1796
1795
|
}
|
|
1797
1796
|
function _r(e) {
|
|
@@ -1842,10 +1841,10 @@ function je(e, t, n, r) {
|
|
|
1842
1841
|
let u = (o.left + i.x) / a.x, l = (o.top + i.y) / a.y, f = o.width / a.x, d = o.height / a.y;
|
|
1843
1842
|
if (s) {
|
|
1844
1843
|
const h = q(s), p = r && Q(r) ? q(r) : r;
|
|
1845
|
-
let v = h, g =
|
|
1844
|
+
let v = h, g = It(v);
|
|
1846
1845
|
for (; g && r && p !== v; ) {
|
|
1847
1846
|
const x = Ne(g), b = g.getBoundingClientRect(), S = ee(g), E = b.left + (g.clientLeft + parseFloat(S.paddingLeft)) * x.x, w = b.top + (g.clientTop + parseFloat(S.paddingTop)) * x.y;
|
|
1848
|
-
u *= x.x, l *= x.y, f *= x.x, d *= x.y, u += E, l += w, v = q(g), g =
|
|
1847
|
+
u *= x.x, l *= x.y, f *= x.x, d *= x.y, u += E, l += w, v = q(g), g = It(v);
|
|
1849
1848
|
}
|
|
1850
1849
|
}
|
|
1851
1850
|
return ft({
|
|
@@ -1856,7 +1855,7 @@ function je(e, t, n, r) {
|
|
|
1856
1855
|
});
|
|
1857
1856
|
}
|
|
1858
1857
|
function an(e, t) {
|
|
1859
|
-
const n =
|
|
1858
|
+
const n = gt(e).scrollLeft;
|
|
1860
1859
|
return t ? t.left + n : je(oe(e)).left + n;
|
|
1861
1860
|
}
|
|
1862
1861
|
function Fr(e, t, n) {
|
|
@@ -1877,7 +1876,7 @@ function Aa(e) {
|
|
|
1877
1876
|
offsetParent: r,
|
|
1878
1877
|
strategy: o
|
|
1879
1878
|
} = e;
|
|
1880
|
-
const s = o === "fixed", a = oe(r), i = t ?
|
|
1879
|
+
const s = o === "fixed", a = oe(r), i = t ? ht(t.floating) : !1;
|
|
1881
1880
|
if (r === a || i && s)
|
|
1882
1881
|
return n;
|
|
1883
1882
|
let u = {
|
|
@@ -1885,7 +1884,7 @@ function Aa(e) {
|
|
|
1885
1884
|
scrollTop: 0
|
|
1886
1885
|
}, l = ne(1);
|
|
1887
1886
|
const f = ne(0), d = re(r);
|
|
1888
|
-
if ((d || !d && !s) && ((Le(r) !== "body" || Ge(a)) && (u =
|
|
1887
|
+
if ((d || !d && !s) && ((Le(r) !== "body" || Ge(a)) && (u = gt(r)), re(r))) {
|
|
1889
1888
|
const p = je(r);
|
|
1890
1889
|
l = Ne(r), f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
|
|
1891
1890
|
}
|
|
@@ -1901,7 +1900,7 @@ function Pa(e) {
|
|
|
1901
1900
|
return Array.from(e.getClientRects());
|
|
1902
1901
|
}
|
|
1903
1902
|
function Na(e) {
|
|
1904
|
-
const t = oe(e), n =
|
|
1903
|
+
const t = oe(e), n = gt(e), r = e.ownerDocument.body, o = X(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = X(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1905
1904
|
let a = -n.scrollLeft + an(e);
|
|
1906
1905
|
const i = -n.scrollTop;
|
|
1907
1906
|
return ee(r).direction === "rtl" && (a += X(t.clientWidth, r.clientWidth) - o), {
|
|
@@ -1911,7 +1910,7 @@ function Na(e) {
|
|
|
1911
1910
|
y: i
|
|
1912
1911
|
};
|
|
1913
1912
|
}
|
|
1914
|
-
function
|
|
1913
|
+
function Ra(e, t) {
|
|
1915
1914
|
const n = q(e), r = oe(e), o = n.visualViewport;
|
|
1916
1915
|
let s = r.clientWidth, a = r.clientHeight, i = 0, u = 0;
|
|
1917
1916
|
if (o) {
|
|
@@ -1926,7 +1925,7 @@ function Oa(e, t) {
|
|
|
1926
1925
|
y: u
|
|
1927
1926
|
};
|
|
1928
1927
|
}
|
|
1929
|
-
function
|
|
1928
|
+
function Oa(e, t) {
|
|
1930
1929
|
const n = je(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = re(e) ? Ne(e) : ne(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, u = o * s.x, l = r * s.y;
|
|
1931
1930
|
return {
|
|
1932
1931
|
width: a,
|
|
@@ -1938,11 +1937,11 @@ function Ra(e, t) {
|
|
|
1938
1937
|
function Fn(e, t, n) {
|
|
1939
1938
|
let r;
|
|
1940
1939
|
if (t === "viewport")
|
|
1941
|
-
r =
|
|
1940
|
+
r = Ra(e, n);
|
|
1942
1941
|
else if (t === "document")
|
|
1943
1942
|
r = Na(oe(e));
|
|
1944
1943
|
else if (Q(t))
|
|
1945
|
-
r =
|
|
1944
|
+
r = Oa(t, n);
|
|
1946
1945
|
else {
|
|
1947
1946
|
const o = Dr(e);
|
|
1948
1947
|
r = {
|
|
@@ -1978,7 +1977,7 @@ function ka(e) {
|
|
|
1978
1977
|
rootBoundary: r,
|
|
1979
1978
|
strategy: o
|
|
1980
1979
|
} = e;
|
|
1981
|
-
const a = [...n === "clippingAncestors" ?
|
|
1980
|
+
const a = [...n === "clippingAncestors" ? ht(t) ? [] : Ta(t, this._c) : [].concat(n), r], i = a[0], u = a.reduce((l, f) => {
|
|
1982
1981
|
const d = Fn(t, f, o);
|
|
1983
1982
|
return l.top = X(d.top, l.top), l.right = pe(d.right, l.right), l.bottom = pe(d.bottom, l.bottom), l.left = X(d.left, l.left), l;
|
|
1984
1983
|
}, Fn(t, i, o));
|
|
@@ -2007,7 +2006,7 @@ function _a(e, t, n) {
|
|
|
2007
2006
|
};
|
|
2008
2007
|
const u = ne(0);
|
|
2009
2008
|
if (r || !r && !s)
|
|
2010
|
-
if ((Le(t) !== "body" || Ge(o)) && (i =
|
|
2009
|
+
if ((Le(t) !== "body" || Ge(o)) && (i = gt(t)), r) {
|
|
2011
2010
|
const h = je(t, !0, s, t);
|
|
2012
2011
|
u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
|
|
2013
2012
|
} else o && (u.x = an(o));
|
|
@@ -2019,7 +2018,7 @@ function _a(e, t, n) {
|
|
|
2019
2018
|
height: a.height
|
|
2020
2019
|
};
|
|
2021
2020
|
}
|
|
2022
|
-
function
|
|
2021
|
+
function At(e) {
|
|
2023
2022
|
return ee(e).position === "static";
|
|
2024
2023
|
}
|
|
2025
2024
|
function Ln(e, t) {
|
|
@@ -2032,21 +2031,21 @@ function Ln(e, t) {
|
|
|
2032
2031
|
}
|
|
2033
2032
|
function Ir(e, t) {
|
|
2034
2033
|
const n = q(e);
|
|
2035
|
-
if (
|
|
2034
|
+
if (ht(e))
|
|
2036
2035
|
return n;
|
|
2037
2036
|
if (!re(e)) {
|
|
2038
2037
|
let o = ge(e);
|
|
2039
2038
|
for (; o && !ke(o); ) {
|
|
2040
|
-
if (Q(o) && !
|
|
2039
|
+
if (Q(o) && !At(o))
|
|
2041
2040
|
return o;
|
|
2042
2041
|
o = ge(o);
|
|
2043
2042
|
}
|
|
2044
2043
|
return n;
|
|
2045
2044
|
}
|
|
2046
2045
|
let r = Ln(e, t);
|
|
2047
|
-
for (; r && ja(r) &&
|
|
2046
|
+
for (; r && ja(r) && At(r); )
|
|
2048
2047
|
r = Ln(r, t);
|
|
2049
|
-
return r && ke(r) &&
|
|
2048
|
+
return r && ke(r) && At(r) && !rn(r) ? n : r || Ca(e) || n;
|
|
2050
2049
|
}
|
|
2051
2050
|
const Da = async function(e) {
|
|
2052
2051
|
const t = this.getOffsetParent || Ir, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -2211,7 +2210,7 @@ function $n(e, t) {
|
|
|
2211
2210
|
const n = Wr(e);
|
|
2212
2211
|
return Math.round(t * n) / n;
|
|
2213
2212
|
}
|
|
2214
|
-
function
|
|
2213
|
+
function Pt(e) {
|
|
2215
2214
|
const t = m.useRef(e);
|
|
2216
2215
|
return ot(() => {
|
|
2217
2216
|
t.current = e;
|
|
@@ -2240,19 +2239,19 @@ function Ga(e) {
|
|
|
2240
2239
|
isPositioned: !1
|
|
2241
2240
|
}), [h, p] = m.useState(r);
|
|
2242
2241
|
dt(h, r) || p(r);
|
|
2243
|
-
const [v, g] = m.useState(null), [x, b] = m.useState(null), S = m.useCallback((
|
|
2244
|
-
|
|
2245
|
-
}, []), E = m.useCallback((
|
|
2246
|
-
|
|
2247
|
-
}, []), w = s || v, j = a || x, A = m.useRef(null), C = m.useRef(null), T = m.useRef(f), k = u != null, L =
|
|
2242
|
+
const [v, g] = m.useState(null), [x, b] = m.useState(null), S = m.useCallback((R) => {
|
|
2243
|
+
R !== A.current && (A.current = R, g(R));
|
|
2244
|
+
}, []), E = m.useCallback((R) => {
|
|
2245
|
+
R !== C.current && (C.current = R, b(R));
|
|
2246
|
+
}, []), w = s || v, j = a || x, A = m.useRef(null), C = m.useRef(null), T = m.useRef(f), k = u != null, L = Pt(u), W = Pt(o), H = Pt(l), I = m.useCallback(() => {
|
|
2248
2247
|
if (!A.current || !C.current)
|
|
2249
2248
|
return;
|
|
2250
|
-
const
|
|
2249
|
+
const R = {
|
|
2251
2250
|
placement: t,
|
|
2252
2251
|
strategy: n,
|
|
2253
2252
|
middleware: h
|
|
2254
2253
|
};
|
|
2255
|
-
W.current && (
|
|
2254
|
+
W.current && (R.platform = W.current), Ya(A.current, C.current, R).then((B) => {
|
|
2256
2255
|
const y = {
|
|
2257
2256
|
...B,
|
|
2258
2257
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -2267,8 +2266,8 @@ function Ga(e) {
|
|
|
2267
2266
|
});
|
|
2268
2267
|
}, [h, t, n, W, H]);
|
|
2269
2268
|
ot(() => {
|
|
2270
|
-
l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, d((
|
|
2271
|
-
...
|
|
2269
|
+
l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, d((R) => ({
|
|
2270
|
+
...R,
|
|
2272
2271
|
isPositioned: !1
|
|
2273
2272
|
})));
|
|
2274
2273
|
}, [l]);
|
|
@@ -2290,17 +2289,17 @@ function Ga(e) {
|
|
|
2290
2289
|
}), [S, E]), D = m.useMemo(() => ({
|
|
2291
2290
|
reference: w,
|
|
2292
2291
|
floating: j
|
|
2293
|
-
}), [w, j]),
|
|
2294
|
-
const
|
|
2292
|
+
}), [w, j]), O = m.useMemo(() => {
|
|
2293
|
+
const R = {
|
|
2295
2294
|
position: n,
|
|
2296
2295
|
left: 0,
|
|
2297
2296
|
top: 0
|
|
2298
2297
|
};
|
|
2299
2298
|
if (!D.floating)
|
|
2300
|
-
return
|
|
2299
|
+
return R;
|
|
2301
2300
|
const B = $n(D.floating, f.x), y = $n(D.floating, f.y);
|
|
2302
2301
|
return i ? {
|
|
2303
|
-
...
|
|
2302
|
+
...R,
|
|
2304
2303
|
transform: "translate(" + B + "px, " + y + "px)",
|
|
2305
2304
|
...Wr(D.floating) >= 1.5 && {
|
|
2306
2305
|
willChange: "transform"
|
|
@@ -2316,8 +2315,8 @@ function Ga(e) {
|
|
|
2316
2315
|
update: I,
|
|
2317
2316
|
refs: _,
|
|
2318
2317
|
elements: D,
|
|
2319
|
-
floatingStyles:
|
|
2320
|
-
}), [f, I, _, D,
|
|
2318
|
+
floatingStyles: O
|
|
2319
|
+
}), [f, I, _, D, O]);
|
|
2321
2320
|
}
|
|
2322
2321
|
const Za = (e) => {
|
|
2323
2322
|
function t(n) {
|
|
@@ -2438,7 +2437,7 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
|
|
|
2438
2437
|
boundary: W.filter(li),
|
|
2439
2438
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2440
2439
|
altBoundary: H
|
|
2441
|
-
}, { refs: M, floatingStyles: _, placement: D, isPositioned:
|
|
2440
|
+
}, { refs: M, floatingStyles: _, placement: D, isPositioned: O, middlewareData: R } = Ga({
|
|
2442
2441
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2443
2442
|
strategy: "fixed",
|
|
2444
2443
|
placement: k,
|
|
@@ -2460,8 +2459,8 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
|
|
|
2460
2459
|
Qa({
|
|
2461
2460
|
...I,
|
|
2462
2461
|
apply: ({ elements: se, rects: U, availableWidth: le, availableHeight: $e }) => {
|
|
2463
|
-
const { width:
|
|
2464
|
-
Xe.setProperty("--radix-popper-available-width", `${le}px`), Xe.setProperty("--radix-popper-available-height", `${$e}px`), Xe.setProperty("--radix-popper-anchor-width", `${
|
|
2462
|
+
const { width: jt, height: Wo } = U.reference, Xe = se.floating.style;
|
|
2463
|
+
Xe.setProperty("--radix-popper-available-width", `${le}px`), Xe.setProperty("--radix-popper-available-height", `${$e}px`), Xe.setProperty("--radix-popper-anchor-width", `${jt}px`), Xe.setProperty("--radix-popper-anchor-height", `${Wo}px`);
|
|
2465
2464
|
}
|
|
2466
2465
|
}),
|
|
2467
2466
|
w && ti({ element: w, padding: i }),
|
|
@@ -2470,9 +2469,9 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
|
|
|
2470
2469
|
]
|
|
2471
2470
|
}), [B, y] = Jr(D), N = Te(v);
|
|
2472
2471
|
me(() => {
|
|
2473
|
-
|
|
2474
|
-
}, [
|
|
2475
|
-
const $ =
|
|
2472
|
+
O && N?.();
|
|
2473
|
+
}, [O, N]);
|
|
2474
|
+
const $ = R.arrow?.x, P = R.arrow?.y, F = R.arrow?.centerOffset !== 0, [Z, Ie] = m.useState();
|
|
2476
2475
|
return me(() => {
|
|
2477
2476
|
b && Ie(window.getComputedStyle(b).zIndex);
|
|
2478
2477
|
}, [b]), /* @__PURE__ */ c.jsx(
|
|
@@ -2482,18 +2481,18 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
|
|
|
2482
2481
|
"data-radix-popper-content-wrapper": "",
|
|
2483
2482
|
style: {
|
|
2484
2483
|
..._,
|
|
2485
|
-
transform:
|
|
2484
|
+
transform: O ? _.transform : "translate(0, -200%)",
|
|
2486
2485
|
// keep off the page when measuring
|
|
2487
2486
|
minWidth: "max-content",
|
|
2488
2487
|
zIndex: Z,
|
|
2489
2488
|
"--radix-popper-transform-origin": [
|
|
2490
|
-
|
|
2491
|
-
|
|
2489
|
+
R.transformOrigin?.x,
|
|
2490
|
+
R.transformOrigin?.y
|
|
2492
2491
|
].join(" "),
|
|
2493
2492
|
// hide the content if using the hide middleware and should be hidden
|
|
2494
2493
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
2495
2494
|
// as if the PopperContent isn't there at all
|
|
2496
|
-
...
|
|
2495
|
+
...R.hide?.referenceHidden && {
|
|
2497
2496
|
visibility: "hidden",
|
|
2498
2497
|
pointerEvents: "none"
|
|
2499
2498
|
}
|
|
@@ -2519,7 +2518,7 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
|
|
|
2519
2518
|
...g.style,
|
|
2520
2519
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2521
2520
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2522
|
-
animation:
|
|
2521
|
+
animation: O ? void 0 : "none"
|
|
2523
2522
|
}
|
|
2524
2523
|
}
|
|
2525
2524
|
)
|
|
@@ -2720,7 +2719,7 @@ var ji = function(e) {
|
|
|
2720
2719
|
return null;
|
|
2721
2720
|
var t = Array.isArray(e) ? e[0] : e;
|
|
2722
2721
|
return t.ownerDocument.body;
|
|
2723
|
-
}, Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {},
|
|
2722
|
+
}, Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {}, Nt = 0, eo = function(e) {
|
|
2724
2723
|
return e && (e.host || eo(e.parentNode));
|
|
2725
2724
|
}, Ci = function(e, t) {
|
|
2726
2725
|
return t.map(function(n) {
|
|
@@ -2751,11 +2750,11 @@ var ji = function(e) {
|
|
|
2751
2750
|
}
|
|
2752
2751
|
});
|
|
2753
2752
|
};
|
|
2754
|
-
return f(t), i.clear(),
|
|
2753
|
+
return f(t), i.clear(), Nt++, function() {
|
|
2755
2754
|
a.forEach(function(d) {
|
|
2756
2755
|
var h = Ee.get(d) - 1, p = s.get(d) - 1;
|
|
2757
2756
|
Ee.set(d, h), s.set(d, p), h || (Qe.has(d) || d.removeAttribute(r), Qe.delete(d)), p || d.removeAttribute(n);
|
|
2758
|
-
}),
|
|
2757
|
+
}), Nt--, Nt || (Ee = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {});
|
|
2759
2758
|
};
|
|
2760
2759
|
}, Si = function(e, t, n) {
|
|
2761
2760
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -2786,10 +2785,10 @@ function Ai(e, t, n) {
|
|
|
2786
2785
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
2787
2786
|
}
|
|
2788
2787
|
var st = "right-scroll-bar-position", at = "width-before-scroll-bar", Pi = "with-scroll-bars-hidden", Ni = "--removed-body-scroll-bar-size";
|
|
2789
|
-
function
|
|
2788
|
+
function Rt(e, t) {
|
|
2790
2789
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2791
2790
|
}
|
|
2792
|
-
function
|
|
2791
|
+
function Ri(e, t) {
|
|
2793
2792
|
var n = G(function() {
|
|
2794
2793
|
return {
|
|
2795
2794
|
// value
|
|
@@ -2810,21 +2809,21 @@ function Oi(e, t) {
|
|
|
2810
2809
|
})[0];
|
|
2811
2810
|
return n.callback = t, n.facade;
|
|
2812
2811
|
}
|
|
2813
|
-
var
|
|
2812
|
+
var Oi = typeof window < "u" ? m.useLayoutEffect : m.useEffect, Wn = /* @__PURE__ */ new WeakMap();
|
|
2814
2813
|
function Ti(e, t) {
|
|
2815
|
-
var n =
|
|
2814
|
+
var n = Ri(null, function(r) {
|
|
2816
2815
|
return e.forEach(function(o) {
|
|
2817
|
-
return
|
|
2816
|
+
return Rt(o, r);
|
|
2818
2817
|
});
|
|
2819
2818
|
});
|
|
2820
|
-
return
|
|
2819
|
+
return Oi(function() {
|
|
2821
2820
|
var r = Wn.get(n);
|
|
2822
2821
|
if (r) {
|
|
2823
2822
|
var o = new Set(r), s = new Set(e), a = n.current;
|
|
2824
2823
|
o.forEach(function(i) {
|
|
2825
|
-
s.has(i) ||
|
|
2824
|
+
s.has(i) || Rt(i, null);
|
|
2826
2825
|
}), s.forEach(function(i) {
|
|
2827
|
-
o.has(i) ||
|
|
2826
|
+
o.has(i) || Rt(i, a);
|
|
2828
2827
|
});
|
|
2829
2828
|
}
|
|
2830
2829
|
Wn.set(n, e);
|
|
@@ -2907,7 +2906,7 @@ function Di(e, t) {
|
|
|
2907
2906
|
return e.useMedium(t), no;
|
|
2908
2907
|
}
|
|
2909
2908
|
var ro = _i(), Ot = function() {
|
|
2910
|
-
},
|
|
2909
|
+
}, vt = m.forwardRef(function(e, t) {
|
|
2911
2910
|
var n = m.useRef(null), r = m.useState({
|
|
2912
2911
|
onScrollCapture: Ot,
|
|
2913
2912
|
onWheelCapture: Ot,
|
|
@@ -2920,12 +2919,12 @@ var ro = _i(), Ot = function() {
|
|
|
2920
2919
|
a ? m.cloneElement(m.Children.only(i), te(te({}, A), { ref: j })) : m.createElement(b, te({}, A, { className: u, ref: j }), i)
|
|
2921
2920
|
);
|
|
2922
2921
|
});
|
|
2923
|
-
|
|
2922
|
+
vt.defaultProps = {
|
|
2924
2923
|
enabled: !0,
|
|
2925
2924
|
removeScrollBar: !0,
|
|
2926
2925
|
inert: !1
|
|
2927
2926
|
};
|
|
2928
|
-
|
|
2927
|
+
vt.classNames = {
|
|
2929
2928
|
fullWidth: at,
|
|
2930
2929
|
zeroRight: st
|
|
2931
2930
|
};
|
|
@@ -2978,11 +2977,11 @@ var Wi = function() {
|
|
|
2978
2977
|
top: 0,
|
|
2979
2978
|
right: 0,
|
|
2980
2979
|
gap: 0
|
|
2981
|
-
},
|
|
2980
|
+
}, Tt = function(e) {
|
|
2982
2981
|
return parseInt(e || "", 10) || 0;
|
|
2983
2982
|
}, zi = function(e) {
|
|
2984
2983
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2985
|
-
return [
|
|
2984
|
+
return [Tt(n), Tt(r), Tt(o)];
|
|
2986
2985
|
}, Vi = function(e) {
|
|
2987
2986
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
2988
2987
|
return Bi;
|
|
@@ -2993,14 +2992,14 @@ var Wi = function() {
|
|
|
2993
2992
|
right: t[2],
|
|
2994
2993
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2995
2994
|
};
|
|
2996
|
-
}, Ui = oo(),
|
|
2995
|
+
}, Ui = oo(), Re = "data-scroll-locked", Yi = function(e, t, n, r) {
|
|
2997
2996
|
var o = e.left, s = e.top, a = e.right, i = e.gap;
|
|
2998
2997
|
return n === void 0 && (n = "margin"), `
|
|
2999
2998
|
.`.concat(Pi, ` {
|
|
3000
2999
|
overflow: hidden `).concat(r, `;
|
|
3001
3000
|
padding-right: `).concat(i, "px ").concat(r, `;
|
|
3002
3001
|
}
|
|
3003
|
-
body[`).concat(
|
|
3002
|
+
body[`).concat(Re, `] {
|
|
3004
3003
|
overflow: hidden `).concat(r, `;
|
|
3005
3004
|
overscroll-behavior: contain;
|
|
3006
3005
|
`).concat([
|
|
@@ -3033,18 +3032,18 @@ var Wi = function() {
|
|
|
3033
3032
|
margin-right: 0 `).concat(r, `;
|
|
3034
3033
|
}
|
|
3035
3034
|
|
|
3036
|
-
body[`).concat(
|
|
3035
|
+
body[`).concat(Re, `] {
|
|
3037
3036
|
`).concat(Ni, ": ").concat(i, `px;
|
|
3038
3037
|
}
|
|
3039
3038
|
`);
|
|
3040
3039
|
}, Hn = function() {
|
|
3041
|
-
var e = parseInt(document.body.getAttribute(
|
|
3040
|
+
var e = parseInt(document.body.getAttribute(Re) || "0", 10);
|
|
3042
3041
|
return isFinite(e) ? e : 0;
|
|
3043
3042
|
}, Gi = function() {
|
|
3044
3043
|
m.useEffect(function() {
|
|
3045
|
-
return document.body.setAttribute(
|
|
3044
|
+
return document.body.setAttribute(Re, (Hn() + 1).toString()), function() {
|
|
3046
3045
|
var e = Hn() - 1;
|
|
3047
|
-
e <= 0 ? document.body.removeAttribute(
|
|
3046
|
+
e <= 0 ? document.body.removeAttribute(Re) : document.body.setAttribute(Re, e.toString());
|
|
3048
3047
|
};
|
|
3049
3048
|
}, []);
|
|
3050
3049
|
}, Zi = function(e) {
|
|
@@ -3054,19 +3053,19 @@ var Wi = function() {
|
|
|
3054
3053
|
return Vi(o);
|
|
3055
3054
|
}, [o]);
|
|
3056
3055
|
return m.createElement(Ui, { styles: Yi(s, !t, o, n ? "" : "!important") });
|
|
3057
|
-
},
|
|
3056
|
+
}, $t = !1;
|
|
3058
3057
|
if (typeof window < "u")
|
|
3059
3058
|
try {
|
|
3060
3059
|
var tt = Object.defineProperty({}, "passive", {
|
|
3061
3060
|
get: function() {
|
|
3062
|
-
return
|
|
3061
|
+
return $t = !0, !0;
|
|
3063
3062
|
}
|
|
3064
3063
|
});
|
|
3065
3064
|
window.addEventListener("test", tt, tt), window.removeEventListener("test", tt, tt);
|
|
3066
3065
|
} catch {
|
|
3067
|
-
|
|
3066
|
+
$t = !1;
|
|
3068
3067
|
}
|
|
3069
|
-
var Se =
|
|
3068
|
+
var Se = $t ? { passive: !1 } : !1, Xi = function(e) {
|
|
3070
3069
|
return e.tagName === "TEXTAREA";
|
|
3071
3070
|
}, so = function(e, t) {
|
|
3072
3071
|
if (!(e instanceof Element))
|
|
@@ -3228,12 +3227,12 @@ function ac(e) {
|
|
|
3228
3227
|
}
|
|
3229
3228
|
const ic = Di(ro, sc);
|
|
3230
3229
|
var co = m.forwardRef(function(e, t) {
|
|
3231
|
-
return m.createElement(
|
|
3230
|
+
return m.createElement(vt, te({}, e, { ref: t, sideCar: ic }));
|
|
3232
3231
|
});
|
|
3233
|
-
co.classNames =
|
|
3234
|
-
var
|
|
3232
|
+
co.classNames = vt.classNames;
|
|
3233
|
+
var yt = "Popover", [lo] = Er(yt, [
|
|
3235
3234
|
zr
|
|
3236
|
-
]), Ze = zr(), [cc, ye] = lo(
|
|
3235
|
+
]), Ze = zr(), [cc, ye] = lo(yt), uo = (e) => {
|
|
3237
3236
|
const {
|
|
3238
3237
|
__scopePopover: t,
|
|
3239
3238
|
children: n,
|
|
@@ -3245,7 +3244,7 @@ var vt = "Popover", [lo] = Er(vt, [
|
|
|
3245
3244
|
prop: r,
|
|
3246
3245
|
defaultProp: o ?? !1,
|
|
3247
3246
|
onChange: s,
|
|
3248
|
-
caller:
|
|
3247
|
+
caller: yt
|
|
3249
3248
|
});
|
|
3250
3249
|
return /* @__PURE__ */ c.jsx(fi, { ...i, children: /* @__PURE__ */ c.jsx(
|
|
3251
3250
|
cc,
|
|
@@ -3264,7 +3263,7 @@ var vt = "Popover", [lo] = Er(vt, [
|
|
|
3264
3263
|
}
|
|
3265
3264
|
) });
|
|
3266
3265
|
};
|
|
3267
|
-
uo.displayName =
|
|
3266
|
+
uo.displayName = yt;
|
|
3268
3267
|
var fo = "PopoverAnchor", lc = m.forwardRef(
|
|
3269
3268
|
(e, t) => {
|
|
3270
3269
|
const { __scopePopover: n, ...r } = e, o = ye(fo, n), s = Ze(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: i } = o;
|
|
@@ -3373,7 +3372,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
|
|
|
3373
3372
|
...d
|
|
3374
3373
|
} = e, h = ye(Me, n), p = Ze(n);
|
|
3375
3374
|
return Zs(), /* @__PURE__ */ c.jsx(
|
|
3376
|
-
|
|
3375
|
+
Rr,
|
|
3377
3376
|
{
|
|
3378
3377
|
asChild: !0,
|
|
3379
3378
|
loop: !0,
|
|
@@ -3553,7 +3552,7 @@ function xe(e) {
|
|
|
3553
3552
|
function Ve(e) {
|
|
3554
3553
|
return Array.isArray(e) ? e.length : xe(e) ? Object.keys(e).length : 0;
|
|
3555
3554
|
}
|
|
3556
|
-
function
|
|
3555
|
+
function Rc(e, t) {
|
|
3557
3556
|
if (typeof e == "string")
|
|
3558
3557
|
return e;
|
|
3559
3558
|
try {
|
|
@@ -3574,7 +3573,7 @@ function Oc(e, t) {
|
|
|
3574
3573
|
return `${n.name}: ${n.message}` || "JSON.stringify failed";
|
|
3575
3574
|
}
|
|
3576
3575
|
}
|
|
3577
|
-
function
|
|
3576
|
+
function Oc(e) {
|
|
3578
3577
|
return jc(this, void 0, void 0, function* () {
|
|
3579
3578
|
try {
|
|
3580
3579
|
yield navigator.clipboard.writeText(e);
|
|
@@ -3613,7 +3612,7 @@ function Gn(e, t, n, r, o, s) {
|
|
|
3613
3612
|
}
|
|
3614
3613
|
return !!(Array.isArray(e) && a > o || xe(e) && a > o);
|
|
3615
3614
|
}
|
|
3616
|
-
function
|
|
3615
|
+
function Oe(e, t, n) {
|
|
3617
3616
|
return typeof e == "boolean" ? e : !!(typeof e == "number" && t > e || e === "collapsed" && n || e === "expanded" && !n);
|
|
3618
3617
|
}
|
|
3619
3618
|
function dn(e, t) {
|
|
@@ -3647,7 +3646,7 @@ function Xn(e) {
|
|
|
3647
3646
|
function pn(e) {
|
|
3648
3647
|
return !e || e.delete === void 0 || !!e.delete;
|
|
3649
3648
|
}
|
|
3650
|
-
function
|
|
3649
|
+
function xt(e) {
|
|
3651
3650
|
return !e || e.enableClipboard === void 0 || !!e.enableClipboard;
|
|
3652
3651
|
}
|
|
3653
3652
|
function kc(e) {
|
|
@@ -3657,18 +3656,18 @@ function Mc(e, t) {
|
|
|
3657
3656
|
return e === "string" ? t.trim().replace(/^\"([\s\S]+?)\"$/, "$1") : t;
|
|
3658
3657
|
}
|
|
3659
3658
|
var qn;
|
|
3660
|
-
function
|
|
3661
|
-
return
|
|
3659
|
+
function Wt() {
|
|
3660
|
+
return Wt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3662
3661
|
for (var t = 1; t < arguments.length; t++) {
|
|
3663
3662
|
var n = arguments[t];
|
|
3664
3663
|
for (var r in n)
|
|
3665
3664
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3666
3665
|
}
|
|
3667
3666
|
return e;
|
|
3668
|
-
},
|
|
3667
|
+
}, Wt.apply(this, arguments);
|
|
3669
3668
|
}
|
|
3670
3669
|
var hn = function(t) {
|
|
3671
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3670
|
+
return /* @__PURE__ */ m.createElement("svg", Wt({
|
|
3672
3671
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3673
3672
|
width: 16,
|
|
3674
3673
|
height: 16,
|
|
@@ -3679,18 +3678,18 @@ var hn = function(t) {
|
|
|
3679
3678
|
d: "M12.473 5.806a.666.666 0 0 0-.946 0L8.473 8.86a.667.667 0 0 1-.946 0L4.473 5.806a.667.667 0 1 0-.946.94l3.06 3.06a2 2 0 0 0 2.826 0l3.06-3.06a.667.667 0 0 0 0-.94Z"
|
|
3680
3679
|
})));
|
|
3681
3680
|
}, Jn;
|
|
3682
|
-
function
|
|
3683
|
-
return
|
|
3681
|
+
function Ht() {
|
|
3682
|
+
return Ht = Object.assign ? Object.assign.bind() : function(e) {
|
|
3684
3683
|
for (var t = 1; t < arguments.length; t++) {
|
|
3685
3684
|
var n = arguments[t];
|
|
3686
3685
|
for (var r in n)
|
|
3687
3686
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3688
3687
|
}
|
|
3689
3688
|
return e;
|
|
3690
|
-
},
|
|
3689
|
+
}, Ht.apply(this, arguments);
|
|
3691
3690
|
}
|
|
3692
3691
|
var _c = function(t) {
|
|
3693
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3692
|
+
return /* @__PURE__ */ m.createElement("svg", Ht({
|
|
3694
3693
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3695
3694
|
width: 24,
|
|
3696
3695
|
height: 24,
|
|
@@ -3701,18 +3700,18 @@ var _c = function(t) {
|
|
|
3701
3700
|
d: "M17.542 2.5h-4.75a3.963 3.963 0 0 0-3.959 3.958v4.75a3.963 3.963 0 0 0 3.959 3.959h4.75a3.963 3.963 0 0 0 3.958-3.959v-4.75A3.963 3.963 0 0 0 17.542 2.5Zm2.375 8.708a2.378 2.378 0 0 1-2.375 2.375h-4.75a2.378 2.378 0 0 1-2.375-2.375v-4.75a2.378 2.378 0 0 1 2.375-2.375h4.75a2.378 2.378 0 0 1 2.375 2.375v4.75Zm-4.75 6.334a3.963 3.963 0 0 1-3.959 3.958h-4.75A3.963 3.963 0 0 1 2.5 17.542v-4.75a3.963 3.963 0 0 1 3.958-3.959.791.791 0 1 1 0 1.584 2.378 2.378 0 0 0-2.375 2.375v4.75a2.378 2.378 0 0 0 2.375 2.375h4.75a2.378 2.378 0 0 0 2.375-2.375.792.792 0 1 1 1.584 0Z"
|
|
3702
3701
|
})));
|
|
3703
3702
|
}, Kn, Qn;
|
|
3704
|
-
function
|
|
3705
|
-
return
|
|
3703
|
+
function Bt() {
|
|
3704
|
+
return Bt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3706
3705
|
for (var t = 1; t < arguments.length; t++) {
|
|
3707
3706
|
var n = arguments[t];
|
|
3708
3707
|
for (var r in n)
|
|
3709
3708
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3710
3709
|
}
|
|
3711
3710
|
return e;
|
|
3712
|
-
},
|
|
3711
|
+
}, Bt.apply(this, arguments);
|
|
3713
3712
|
}
|
|
3714
3713
|
var Dc = function(t) {
|
|
3715
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3714
|
+
return /* @__PURE__ */ m.createElement("svg", Bt({
|
|
3716
3715
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3717
3716
|
width: 24,
|
|
3718
3717
|
height: 24,
|
|
@@ -3726,31 +3725,31 @@ var Dc = function(t) {
|
|
|
3726
3725
|
d: "M10.312 14.45 7.83 11.906a.625.625 0 0 0-.896 0 .659.659 0 0 0 0 .918l2.481 2.546a1.264 1.264 0 0 0 .896.381 1.237 1.237 0 0 0 .895-.38l5.858-6.011a.658.658 0 0 0 0-.919.625.625 0 0 0-.896 0l-5.857 6.01Z"
|
|
3727
3726
|
})));
|
|
3728
3727
|
};
|
|
3729
|
-
function
|
|
3728
|
+
function bt({ node: e, nodeMeta: t }) {
|
|
3730
3729
|
const { customizeCopy: n, CopyComponent: r, CopiedComponent: o } = Ce(be), [s, a] = G(!1), i = (u) => {
|
|
3731
3730
|
u.stopPropagation();
|
|
3732
3731
|
const l = n(e, t);
|
|
3733
|
-
typeof l == "string" && l &&
|
|
3732
|
+
typeof l == "string" && l && Oc(l), a(!0), setTimeout(() => a(!1), 3e3);
|
|
3734
3733
|
};
|
|
3735
3734
|
return s ? typeof o == "function" ? c.jsx(o, { className: "json-view--copy", style: { display: "inline-block" } }) : c.jsx(Dc, { className: "json-view--copy", style: { display: "inline-block" } }) : typeof r == "function" ? c.jsx(r, { onClick: i, className: "json-view--copy" }) : c.jsx(_c, { onClick: i, className: "json-view--copy" });
|
|
3736
3735
|
}
|
|
3737
|
-
function
|
|
3736
|
+
function zt({ indexOrName: e, value: t, depth: n, deleteHandle: r, editHandle: o, parent: s, parentPath: a }) {
|
|
3738
3737
|
const { displayArrayIndex: i } = Ce(be), u = Array.isArray(s);
|
|
3739
3738
|
return c.jsxs("div", Object.assign({ className: "json-view--pair" }, { children: [!u || u && i ? c.jsxs(c.Fragment, { children: [c.jsx("span", Object.assign({ className: typeof e == "number" ? "json-view--index" : "json-view--property" }, { children: e })), ":", " "] }) : c.jsx(c.Fragment, {}), c.jsx(Ao, { node: t, depth: n + 1, deleteHandle: (l, f) => r(l, f), editHandle: (l, f, d, h) => o(l, f, d, h), parent: s, indexOrName: e, parentPath: a })] }));
|
|
3740
3739
|
}
|
|
3741
3740
|
var er, tr;
|
|
3742
|
-
function
|
|
3743
|
-
return
|
|
3741
|
+
function Vt() {
|
|
3742
|
+
return Vt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3744
3743
|
for (var t = 1; t < arguments.length; t++) {
|
|
3745
3744
|
var n = arguments[t];
|
|
3746
3745
|
for (var r in n)
|
|
3747
3746
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3748
3747
|
}
|
|
3749
3748
|
return e;
|
|
3750
|
-
},
|
|
3749
|
+
}, Vt.apply(this, arguments);
|
|
3751
3750
|
}
|
|
3752
3751
|
var gn = function(t) {
|
|
3753
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3752
|
+
return /* @__PURE__ */ m.createElement("svg", Vt({
|
|
3754
3753
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3755
3754
|
width: 24,
|
|
3756
3755
|
height: 24,
|
|
@@ -3764,18 +3763,18 @@ var gn = function(t) {
|
|
|
3764
3763
|
d: "M10.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75ZM13.5 16.5a.75.75 0 0 0 .75-.75v-4.5a.75.75 0 1 0-1.5 0v4.5a.75.75 0 0 0 .75.75Z"
|
|
3765
3764
|
})));
|
|
3766
3765
|
}, nr, rr;
|
|
3767
|
-
function
|
|
3768
|
-
return
|
|
3766
|
+
function Ut() {
|
|
3767
|
+
return Ut = Object.assign ? Object.assign.bind() : function(e) {
|
|
3769
3768
|
for (var t = 1; t < arguments.length; t++) {
|
|
3770
3769
|
var n = arguments[t];
|
|
3771
3770
|
for (var r in n)
|
|
3772
3771
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3773
3772
|
}
|
|
3774
3773
|
return e;
|
|
3775
|
-
},
|
|
3774
|
+
}, Ut.apply(this, arguments);
|
|
3776
3775
|
}
|
|
3777
3776
|
var So = function(t) {
|
|
3778
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3777
|
+
return /* @__PURE__ */ m.createElement("svg", Ut({
|
|
3779
3778
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3780
3779
|
width: 24,
|
|
3781
3780
|
height: 24,
|
|
@@ -3789,18 +3788,18 @@ var So = function(t) {
|
|
|
3789
3788
|
d: "M15 12.75a.75.75 0 1 0 0-1.5h-2.25V9a.75.75 0 1 0-1.5 0v2.25H9a.75.75 0 1 0 0 1.5h2.25V15a.75.75 0 1 0 1.5 0v-2.25H15Z"
|
|
3790
3789
|
})));
|
|
3791
3790
|
}, or, sr;
|
|
3792
|
-
function
|
|
3793
|
-
return
|
|
3791
|
+
function Yt() {
|
|
3792
|
+
return Yt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3794
3793
|
for (var t = 1; t < arguments.length; t++) {
|
|
3795
3794
|
var n = arguments[t];
|
|
3796
3795
|
for (var r in n)
|
|
3797
3796
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3798
3797
|
}
|
|
3799
3798
|
return e;
|
|
3800
|
-
},
|
|
3799
|
+
}, Yt.apply(this, arguments);
|
|
3801
3800
|
}
|
|
3802
3801
|
var vn = function(t) {
|
|
3803
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3802
|
+
return /* @__PURE__ */ m.createElement("svg", Yt({
|
|
3804
3803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3805
3804
|
width: 24,
|
|
3806
3805
|
height: 24,
|
|
@@ -3814,18 +3813,18 @@ var vn = function(t) {
|
|
|
3814
3813
|
d: "m10.85 13.96-1.986-2.036a.5.5 0 0 0-.716 0 .527.527 0 0 0 0 .735l1.985 2.036a1.01 1.01 0 0 0 .717.305.99.99 0 0 0 .716-.305l4.686-4.808a.526.526 0 0 0 0-.735.5.5 0 0 0-.716 0l-4.687 4.809Z"
|
|
3815
3814
|
})));
|
|
3816
3815
|
}, ar, ir;
|
|
3817
|
-
function
|
|
3818
|
-
return
|
|
3816
|
+
function Gt() {
|
|
3817
|
+
return Gt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3819
3818
|
for (var t = 1; t < arguments.length; t++) {
|
|
3820
3819
|
var n = arguments[t];
|
|
3821
3820
|
for (var r in n)
|
|
3822
3821
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3823
3822
|
}
|
|
3824
3823
|
return e;
|
|
3825
|
-
},
|
|
3824
|
+
}, Gt.apply(this, arguments);
|
|
3826
3825
|
}
|
|
3827
3826
|
var yn = function(t) {
|
|
3828
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3827
|
+
return /* @__PURE__ */ m.createElement("svg", Gt({
|
|
3829
3828
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3830
3829
|
width: 24,
|
|
3831
3830
|
height: 24,
|
|
@@ -3852,8 +3851,8 @@ function Fc({ originNode: e, node: t, depth: n, index: r, deleteHandle: o, custo
|
|
|
3852
3851
|
}), h && h({ type: "edit", depth: n, src: f, indexOrName: A, parentType: "array", parentPath: u }), p();
|
|
3853
3852
|
}, [t, d, h, p]), w = (A) => {
|
|
3854
3853
|
e.splice(A, 1), o && o(A, u), p();
|
|
3855
|
-
}, j = c.jsxs(c.Fragment, { children: [!b && c.jsxs("span", Object.assign({ onClick: () => S(!0), className: "jv-size-chevron" }, { children: [
|
|
3856
|
-
return c.jsxs("div", { children: [c.jsx("span", { children: "[" }), j, b ? c.jsxs("button", Object.assign({ onClick: () => S(!1), className: "jv-button" }, { children: [a, " ... ", a + t.length - 1] })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: t.map((A, C) => c.jsx(
|
|
3854
|
+
}, j = c.jsxs(c.Fragment, { children: [!b && c.jsxs("span", Object.assign({ onClick: () => S(!0), className: "jv-size-chevron" }, { children: [Oe(v, n, b) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [Ve(t), " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), !b && l && xt(s) && c.jsx(bt, { node: t, nodeMeta: { depth: n, indexOrName: r, parent: i, parentPath: u, currentPath: x } }), typeof g == "function" ? c.jsx(g, { node: t }) : null] });
|
|
3855
|
+
return c.jsxs("div", { children: [c.jsx("span", { children: "[" }), j, b ? c.jsxs("button", Object.assign({ onClick: () => S(!1), className: "jv-button" }, { children: [a, " ... ", a + t.length - 1] })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: t.map((A, C) => c.jsx(zt, { indexOrName: C + a, value: A, depth: n, parent: t, deleteHandle: w, editHandle: E, parentPath: u }, String(r) + String(C))) })), c.jsx("span", { children: "]" })] });
|
|
3857
3856
|
}
|
|
3858
3857
|
function Lc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions: o, parent: s, parentPath: a }) {
|
|
3859
3858
|
const i = typeof r < "u" ? [...a, String(r)] : a, u = [];
|
|
@@ -3877,10 +3876,10 @@ function Lc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions:
|
|
|
3877
3876
|
_.push(null), g && g({ indexOrName: _.length - 1, depth: t, src: v, parentType: "array", parentPath: a }), b && b({ type: "add", indexOrName: _.length - 1, depth: t, src: v, parentType: "array", parentPath: a }), S();
|
|
3878
3877
|
}, H = A || k, I = () => {
|
|
3879
3878
|
C(!1), L(!1);
|
|
3880
|
-
}, M = c.jsxs(c.Fragment, { children: [!w && !H && c.jsxs("span", Object.assign({ onClick: () => j(!0), className: "jv-size-chevron" }, { children: [
|
|
3879
|
+
}, M = c.jsxs(c.Fragment, { children: [!w && !H && c.jsxs("span", Object.assign({ onClick: () => j(!0), className: "jv-size-chevron" }, { children: [Oe(E, t, w) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [e.length, " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), H && c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? W : T }), H && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: I }), !w && !H && f && xt(o) && c.jsx(bt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: s, parentPath: a, currentPath: i } }), !w && !H && Co(h) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
|
|
3881
3880
|
W();
|
|
3882
3881
|
} }), !w && !H && mn(h) && pn(o) && n && c.jsx(gn, { className: "json-view--edit", onClick: () => C(!0) }), typeof x == "function" ? c.jsx(x, { node: e }) : null] });
|
|
3883
|
-
return c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), M, w ? c.jsx("button", Object.assign({ onClick: () => j(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: u.map((_, D) => c.jsx(Fc, { originNode: e, node: _, depth: t, index: D, startIndex: D * 100, deleteHandle: n, customOptions: o, parentPath: a }, String(r) + String(D))) })), c.jsx("span", { children: "]" }), w &&
|
|
3882
|
+
return c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), M, w ? c.jsx("button", Object.assign({ onClick: () => j(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: u.map((_, D) => c.jsx(Fc, { originNode: e, node: _, depth: t, index: D, startIndex: D * 100, deleteHandle: n, customOptions: o, parentPath: a }, String(r) + String(D))) })), c.jsx("span", { children: "]" }), w && Oe(E, t, w) && c.jsxs("span", Object.assign({ onClick: () => j(!1), className: "jv-size" }, { children: [e.length, " Items"] }))] });
|
|
3884
3883
|
}
|
|
3885
3884
|
function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parent: s, parentPath: a }) {
|
|
3886
3885
|
const { collapsed: i, onCollapse: u, enableClipboard: l, ignoreLargeArray: f, collapseObjectsAfterLength: d, editable: h, onDelete: p, src: v, onAdd: g, onEdit: x, onChange: b, forceUpdate: S, displaySize: E, CustomOperation: w } = Ce(be), j = typeof n < "u" ? [...a, String(n)] : a;
|
|
@@ -3913,31 +3912,31 @@ function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions:
|
|
|
3913
3912
|
parentType: A ? "object" : "array",
|
|
3914
3913
|
parentPath: j
|
|
3915
3914
|
});
|
|
3916
|
-
}, [_, D] = G(!1),
|
|
3915
|
+
}, [_, D] = G(!1), O = mt(null), R = () => {
|
|
3917
3916
|
var P;
|
|
3918
3917
|
if (A) {
|
|
3919
|
-
const F = (P =
|
|
3920
|
-
F && (e[F] = null,
|
|
3918
|
+
const F = (P = O.current) === null || P === void 0 ? void 0 : P.value;
|
|
3919
|
+
F && (e[F] = null, O.current && (O.current.value = ""), D(!1), g && g({ indexOrName: F, depth: t, src: v, parentType: "object", parentPath: j }), b && b({ type: "add", indexOrName: F, depth: t, src: v, parentType: "object", parentPath: j }));
|
|
3921
3920
|
} else if (Array.isArray(e)) {
|
|
3922
3921
|
const F = e;
|
|
3923
3922
|
F.push(null), g && g({ indexOrName: F.length - 1, depth: t, src: v, parentType: "array", parentPath: j }), b && b({ type: "add", indexOrName: F.length - 1, depth: t, src: v, parentType: "array", parentPath: j });
|
|
3924
3923
|
}
|
|
3925
3924
|
S();
|
|
3926
3925
|
}, B = (P) => {
|
|
3927
|
-
P.key === "Enter" ? (P.preventDefault(),
|
|
3926
|
+
P.key === "Enter" ? (P.preventDefault(), R()) : P.key === "Escape" && N();
|
|
3928
3927
|
}, y = H || _, N = () => {
|
|
3929
3928
|
I(!1), D(!1);
|
|
3930
|
-
}, $ = c.jsxs(c.Fragment, { children: [!C && !y && c.jsxs("span", Object.assign({ onClick: () => k(!0), className: "jv-size-chevron" }, { children: [
|
|
3929
|
+
}, $ = c.jsxs(c.Fragment, { children: [!C && !y && c.jsxs("span", Object.assign({ onClick: () => k(!0), className: "jv-size-chevron" }, { children: [Oe(E, t, C) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [Ve(e), " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), _ && A && c.jsx("input", { className: "json-view--input", placeholder: "property", ref: O, onKeyDown: B }), y && c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? R : M }), y && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: N }), !C && !y && l && xt(o) && c.jsx(bt, { node: e, nodeMeta: { depth: t, indexOrName: n, parent: s, parentPath: a, currentPath: j } }), !C && !y && Co(h) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
|
|
3931
3930
|
A ? (D(!0), setTimeout(() => {
|
|
3932
3931
|
var P;
|
|
3933
|
-
return (P =
|
|
3934
|
-
})) :
|
|
3932
|
+
return (P = O.current) === null || P === void 0 ? void 0 : P.focus();
|
|
3933
|
+
})) : R();
|
|
3935
3934
|
} }), !C && !y && mn(h) && pn(o) && r && c.jsx(gn, { className: "json-view--edit", onClick: () => I(!0) }), typeof w == "function" ? c.jsx(w, { node: e }) : null] });
|
|
3936
|
-
return Array.isArray(e) ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: e.map((P, F) => c.jsx(
|
|
3935
|
+
return Array.isArray(e) ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: e.map((P, F) => c.jsx(zt, { indexOrName: F, value: P, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(F))) })), c.jsx("span", { children: "]" }), C && Oe(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : A ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "{" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: Object.entries(e).map(([P, F]) => c.jsx(zt, { indexOrName: P, value: F, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(P))) })), c.jsx("span", { children: "}" }), C && Oe(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : c.jsx("span", { children: String(e) });
|
|
3937
3936
|
}
|
|
3938
3937
|
const $c = Pe.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
|
|
3939
3938
|
let { collapseStringMode: o, collapseStringsAfterLength: s, customizeCollapseStringUI: a } = Ce(be);
|
|
3940
|
-
const [i, u] = G(!0), l =
|
|
3939
|
+
const [i, u] = G(!0), l = mt(null);
|
|
3941
3940
|
s = s > 0 ? s : 0;
|
|
3942
3941
|
const f = e.replace(/\s+/g, " "), d = typeof a == "function" ? a(f, i) : typeof a == "string" ? a : "...", h = (p) => {
|
|
3943
3942
|
var v;
|
|
@@ -3978,18 +3977,18 @@ const $c = Pe.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
|
|
|
3978
3977
|
return c.jsxs("span", Object.assign({ ref: l, className: t }, { children: ['"', e, '"'] }));
|
|
3979
3978
|
});
|
|
3980
3979
|
var cr;
|
|
3981
|
-
function
|
|
3982
|
-
return
|
|
3980
|
+
function Zt() {
|
|
3981
|
+
return Zt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3983
3982
|
for (var t = 1; t < arguments.length; t++) {
|
|
3984
3983
|
var n = arguments[t];
|
|
3985
3984
|
for (var r in n)
|
|
3986
3985
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3987
3986
|
}
|
|
3988
3987
|
return e;
|
|
3989
|
-
},
|
|
3988
|
+
}, Zt.apply(this, arguments);
|
|
3990
3989
|
}
|
|
3991
3990
|
var Wc = function(t) {
|
|
3992
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3991
|
+
return /* @__PURE__ */ m.createElement("svg", Zt({
|
|
3993
3992
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3994
3993
|
width: 24,
|
|
3995
3994
|
height: 24,
|
|
@@ -4000,18 +3999,18 @@ var Wc = function(t) {
|
|
|
4000
3999
|
d: "M17.25 3H6.75A3.754 3.754 0 0 0 3 6.75v10.5A3.754 3.754 0 0 0 6.75 21h10.5A3.754 3.754 0 0 0 21 17.25V6.75A3.754 3.754 0 0 0 17.25 3Zm2.25 14.25c0 1.24-1.01 2.25-2.25 2.25H6.75c-1.24 0-2.25-1.01-2.25-2.25V6.75c0-1.24 1.01-2.25 2.25-2.25h10.5c1.24 0 2.25 1.01 2.25 2.25v10.5Zm-6.09-9.466-5.031 5.03a2.981 2.981 0 0 0-.879 2.121v1.19c0 .415.336.75.75.75h1.19c.8 0 1.554-.312 2.12-.879l5.03-5.03a2.252 2.252 0 0 0 0-3.182c-.85-.85-2.331-.85-3.18 0Zm-2.91 7.151c-.28.28-.666.44-1.06.44H9v-.44c0-.4.156-.777.44-1.06l3.187-3.188 1.06 1.061-3.187 3.188Zm5.03-5.03-.782.783-1.06-1.061.782-.782a.766.766 0 0 1 1.06 0 .75.75 0 0 1 0 1.06Z"
|
|
4001
4000
|
})));
|
|
4002
4001
|
}, lr, ur;
|
|
4003
|
-
function
|
|
4004
|
-
return
|
|
4002
|
+
function Xt() {
|
|
4003
|
+
return Xt = Object.assign ? Object.assign.bind() : function(e) {
|
|
4005
4004
|
for (var t = 1; t < arguments.length; t++) {
|
|
4006
4005
|
var n = arguments[t];
|
|
4007
4006
|
for (var r in n)
|
|
4008
4007
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4009
4008
|
}
|
|
4010
4009
|
return e;
|
|
4011
|
-
},
|
|
4010
|
+
}, Xt.apply(this, arguments);
|
|
4012
4011
|
}
|
|
4013
4012
|
var Hc = function(t) {
|
|
4014
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
4013
|
+
return /* @__PURE__ */ m.createElement("svg", Xt({
|
|
4015
4014
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4016
4015
|
width: 24,
|
|
4017
4016
|
height: 24,
|
|
@@ -4039,7 +4038,7 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
|
|
|
4039
4038
|
if (Array.isArray(e) || xe(e))
|
|
4040
4039
|
return c.jsx(Ic, { parent: o, node: e, depth: t, indexOrName: r, deleteHandle: n, parentPath: a, customOptions: typeof w == "object" ? w : void 0 });
|
|
4041
4040
|
{
|
|
4042
|
-
const j = typeof e, A = typeof r < "u" ? [...a, String(r)] : a, [C, T] = G(!1), [k, L] = G(!1), W =
|
|
4041
|
+
const j = typeof e, A = typeof r < "u" ? [...a, String(r)] : a, [C, T] = G(!1), [k, L] = G(!1), W = mt(null), H = () => {
|
|
4043
4042
|
T(!0), setTimeout(() => {
|
|
4044
4043
|
var P, F;
|
|
4045
4044
|
(P = window.getSelection()) === null || P === void 0 || P.selectAllChildren(W.current), (F = W.current) === null || F === void 0 || F.focus();
|
|
@@ -4074,9 +4073,9 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
|
|
|
4074
4073
|
});
|
|
4075
4074
|
}, D = de((P) => {
|
|
4076
4075
|
P.key === "Enter" ? (P.preventDefault(), I()) : P.key === "Escape" && M();
|
|
4077
|
-
}, [I]),
|
|
4076
|
+
}, [I]), O = C || k, R = !O && Zn(l) && Xn(w) && s ? (P) => {
|
|
4078
4077
|
(P.ctrlKey || P.metaKey) && H();
|
|
4079
|
-
} : void 0, B = c.jsxs(c.Fragment, { children: [
|
|
4078
|
+
} : void 0, B = c.jsxs(c.Fragment, { children: [O && (typeof b == "function" ? c.jsx(b, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I }) : c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I })), O && (typeof S == "function" ? c.jsx(S, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M }) : c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M })), !O && u && xt(w) && c.jsx(bt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: o, parentPath: a, currentPath: A } }), !O && v && j === "string" && g.test(e) && kc(w) && c.jsx("a", Object.assign({ href: e, target: "_blank", className: "json-view--link" }, { children: c.jsx(Hc, {}) })), !O && Zn(l) && Xn(w) && s && (typeof x == "function" ? c.jsx(x, { className: "json-view--edit", onClick: H }) : c.jsx(Wc, { className: "json-view--edit", onClick: H })), !O && mn(l) && pn(w) && n && c.jsx(gn, { className: "json-view--edit", onClick: () => L(!0) }), typeof E == "function" ? c.jsx(E, { node: e }) : null] });
|
|
4080
4079
|
let y = "json-view--string";
|
|
4081
4080
|
switch (j) {
|
|
4082
4081
|
case "number":
|
|
@@ -4094,7 +4093,7 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
|
|
|
4094
4093
|
let N = String(e);
|
|
4095
4094
|
j === "bigint" && (N += "n");
|
|
4096
4095
|
const $ = z(() => c.jsx("span", { contentEditable: !0, className: y, dangerouslySetInnerHTML: { __html: j === "string" ? `"${N}"` : N }, ref: W, onKeyDown: D }), [N, j, D]);
|
|
4097
|
-
return j === "string" ? c.jsxs(c.Fragment, { children: [C ? $ : e.length > i ? c.jsx($c, { str: e, ref: W, className: y, ctrlClick:
|
|
4096
|
+
return j === "string" ? c.jsxs(c.Fragment, { children: [C ? $ : e.length > i ? c.jsx($c, { str: e, ref: W, className: y, ctrlClick: R }) : c.jsxs("span", Object.assign({ className: y, onClick: R }, { children: ['"', N, '"'] })), B] }) : c.jsxs(c.Fragment, { children: [C ? $ : c.jsx("span", Object.assign({ className: y, onClick: R }, { children: N })), B] });
|
|
4098
4097
|
}
|
|
4099
4098
|
}
|
|
4100
4099
|
const Po = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/, be = Bo({
|
|
@@ -4128,10 +4127,10 @@ const Po = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^
|
|
|
4128
4127
|
DoneComponent: void 0,
|
|
4129
4128
|
CustomOperation: void 0
|
|
4130
4129
|
});
|
|
4131
|
-
function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n = "directly", customizeCollapseStringUI: r, collapseObjectsAfterLength: o = 99, collapsed: s, onCollapse: a, enableClipboard: i = !0, editable: u = !1, onEdit: l, onDelete: f, onAdd: d, onChange: h, dark: p = !1, theme: v = "default", customizeNode: g, customizeCopy: x = (M) =>
|
|
4132
|
-
const [M, _] = G(0), D = de(() => _((B) => ++B), []), [
|
|
4133
|
-
return _e(() =>
|
|
4134
|
-
src:
|
|
4130
|
+
function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n = "directly", customizeCollapseStringUI: r, collapseObjectsAfterLength: o = 99, collapsed: s, onCollapse: a, enableClipboard: i = !0, editable: u = !1, onEdit: l, onDelete: f, onAdd: d, onChange: h, dark: p = !1, theme: v = "default", customizeNode: g, customizeCopy: x = (M) => Rc(M), displaySize: b, displayArrayIndex: S = !0, style: E, className: w, matchesURL: j = !1, urlRegExp: A = Po, ignoreLargeArray: C = !1, CopyComponent: T, CopiedComponent: k, EditComponent: L, CancelComponent: W, DoneComponent: H, CustomOperation: I }) {
|
|
4131
|
+
const [M, _] = G(0), D = de(() => _((B) => ++B), []), [O, R] = G(e);
|
|
4132
|
+
return _e(() => R(e), [e]), c.jsx(be.Provider, Object.assign({ value: {
|
|
4133
|
+
src: O,
|
|
4135
4134
|
collapseStringsAfterLength: t,
|
|
4136
4135
|
collapseStringMode: n,
|
|
4137
4136
|
customizeCollapseStringUI: r,
|
|
@@ -4158,27 +4157,27 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
|
|
|
4158
4157
|
CancelComponent: W,
|
|
4159
4158
|
DoneComponent: H,
|
|
4160
4159
|
CustomOperation: I
|
|
4161
|
-
} }, { children: c.jsx("code", Object.assign({ className: "json-view" + (p ? " dark" : "") + (v && v !== "default" ? " json-view_" + v : "") + (w ? " " + w : ""), style: E }, { children: c.jsx(Ao, { node:
|
|
4162
|
-
|
|
4160
|
+
} }, { children: c.jsx("code", Object.assign({ className: "json-view" + (p ? " dark" : "") + (v && v !== "default" ? " json-view_" + v : "") + (w ? " " + w : ""), style: E }, { children: c.jsx(Ao, { node: O, depth: 1, editHandle: (B, y, N, $) => {
|
|
4161
|
+
R(y), l && l({
|
|
4163
4162
|
newValue: y,
|
|
4164
4163
|
oldValue: N,
|
|
4165
4164
|
depth: 1,
|
|
4166
|
-
src:
|
|
4165
|
+
src: O,
|
|
4167
4166
|
indexOrName: B,
|
|
4168
4167
|
parentType: null,
|
|
4169
4168
|
parentPath: $
|
|
4170
|
-
}), h && h({ type: "edit", depth: 1, src:
|
|
4169
|
+
}), h && h({ type: "edit", depth: 1, src: O, indexOrName: B, parentType: null, parentPath: $ });
|
|
4171
4170
|
}, deleteHandle: (B, y) => {
|
|
4172
|
-
|
|
4173
|
-
value:
|
|
4171
|
+
R(void 0), f && f({
|
|
4172
|
+
value: O,
|
|
4174
4173
|
depth: 1,
|
|
4175
|
-
src:
|
|
4174
|
+
src: O,
|
|
4176
4175
|
indexOrName: B,
|
|
4177
4176
|
parentType: null,
|
|
4178
4177
|
parentPath: y
|
|
4179
4178
|
}), h && h({
|
|
4180
4179
|
depth: 1,
|
|
4181
|
-
src:
|
|
4180
|
+
src: O,
|
|
4182
4181
|
indexOrName: B,
|
|
4183
4182
|
parentType: null,
|
|
4184
4183
|
type: "delete",
|
|
@@ -4186,7 +4185,7 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
|
|
|
4186
4185
|
});
|
|
4187
4186
|
}, parentPath: [] }) })) }));
|
|
4188
4187
|
}
|
|
4189
|
-
const Bc = (e) => typeof e == "object" && e !== null ? JSON.stringify(e, null, 1) : e === null ? "null" : e.toString(),
|
|
4188
|
+
const Bc = (e) => typeof e == "object" && e !== null ? JSON.stringify(e, null, 1) : e === null ? "null" : e.toString(), qt = V(({ arg: e, popover: t = !0 }) => {
|
|
4190
4189
|
const n = z(() => typeof e == "object" && e !== null, [e]), r = z(() => Bc(e), [e]), o = z(() => JSON.stringify(e, null, 2), [e]);
|
|
4191
4190
|
return t ? /* @__PURE__ */ c.jsxs(bo, { children: [
|
|
4192
4191
|
/* @__PURE__ */ c.jsx(wo, { asChild: !0, children: /* @__PURE__ */ c.jsx("span", { className: "truncate font-mono text-blue-500 cursor-pointer inline-block", children: r }) }),
|
|
@@ -4196,18 +4195,18 @@ const Bc = (e) => typeof e == "object" && e !== null ? JSON.stringify(e, null, 1
|
|
|
4196
4195
|
className: "backdrop-blur-md w-auto max-w-2xl relative max-h-[50vh] overflow-y-auto",
|
|
4197
4196
|
hideWhenDetached: !0,
|
|
4198
4197
|
children: n ? /* @__PURE__ */ c.jsxs("div", { children: [
|
|
4199
|
-
/* @__PURE__ */ c.jsx(
|
|
4198
|
+
/* @__PURE__ */ c.jsx(_t, { textToCopy: o, className: "absolute top-4 right-4", title: "Copy JSON" }),
|
|
4200
4199
|
/* @__PURE__ */ c.jsx(fr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } })
|
|
4201
4200
|
] }) : /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
4202
4201
|
/* @__PURE__ */ c.jsx("span", { children: r }),
|
|
4203
|
-
/* @__PURE__ */ c.jsx(
|
|
4202
|
+
/* @__PURE__ */ c.jsx(_t, { textToCopy: o, className: "ml-2", title: "Copy JSON" })
|
|
4204
4203
|
] })
|
|
4205
4204
|
}
|
|
4206
4205
|
)
|
|
4207
4206
|
] }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: n ? /* @__PURE__ */ c.jsx(fr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } }) : /* @__PURE__ */ c.jsx("span", { className: "font-mono text-blue-500", children: r }) });
|
|
4208
4207
|
});
|
|
4209
|
-
|
|
4210
|
-
const
|
|
4208
|
+
qt.displayName = "Argument";
|
|
4209
|
+
const Jt = V(({ callsQuantity: e, noQuantity: t = !1 }) => {
|
|
4211
4210
|
const n = e && e > 1;
|
|
4212
4211
|
return /* @__PURE__ */ c.jsxs("div", { className: "flex items-center", children: [
|
|
4213
4212
|
/* @__PURE__ */ c.jsx("span", { className: "font-mono text-emerald-500", children: ")" }),
|
|
@@ -4217,8 +4216,8 @@ const qt = V(({ callsQuantity: e, noQuantity: t = !1 }) => {
|
|
|
4217
4216
|
] })
|
|
4218
4217
|
] });
|
|
4219
4218
|
});
|
|
4220
|
-
|
|
4221
|
-
const
|
|
4219
|
+
Jt.displayName = "ClosingParenthesis";
|
|
4220
|
+
const Kt = Qt(
|
|
4222
4221
|
({ topLevelClassName: e, objectName: t, functionName: n, className: r, ...o }, s) => /* @__PURE__ */ c.jsxs("div", { ref: s, className: De("flex items-center", r), ...o, children: [
|
|
4223
4222
|
e && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
4224
4223
|
/* @__PURE__ */ c.jsx("span", { className: "font-mono text-pink-500", children: e }),
|
|
@@ -4232,8 +4231,8 @@ const Jt = Kt(
|
|
|
4232
4231
|
/* @__PURE__ */ c.jsx("span", { className: "font-mono text-emerald-500", children: "(" })
|
|
4233
4232
|
] })
|
|
4234
4233
|
);
|
|
4235
|
-
|
|
4236
|
-
const zc = { gridTemplateColumns: "max-content 1fr max-content" },
|
|
4234
|
+
Kt.displayName = "FunctionCallContent";
|
|
4235
|
+
const zc = { gridTemplateColumns: "max-content 1fr max-content" }, wt = V(
|
|
4237
4236
|
({ topLevelClassName: e, objectName: t, functionName: n, args: r, callsQuantity: o }) => {
|
|
4238
4237
|
const s = z(() => r.filter((u) => u !== void 0), [r]), a = z(
|
|
4239
4238
|
() => ({ gridTemplateColumns: `repeat(${s.length * 2}, minmax(0, auto))` }),
|
|
@@ -4245,7 +4244,7 @@ const zc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
|
|
|
4245
4244
|
return /* @__PURE__ */ c.jsxs("div", { className: "grid overflow-hidden items-center", style: zc, children: [
|
|
4246
4245
|
/* @__PURE__ */ c.jsxs(bo, { children: [
|
|
4247
4246
|
/* @__PURE__ */ c.jsx(wo, { asChild: !0, children: /* @__PURE__ */ c.jsx(
|
|
4248
|
-
|
|
4247
|
+
Kt,
|
|
4249
4248
|
{
|
|
4250
4249
|
className: "cursor-pointer",
|
|
4251
4250
|
functionName: n,
|
|
@@ -4261,56 +4260,56 @@ const zc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
|
|
|
4261
4260
|
children: [
|
|
4262
4261
|
/* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
4263
4262
|
/* @__PURE__ */ c.jsx(
|
|
4264
|
-
|
|
4263
|
+
Kt,
|
|
4265
4264
|
{
|
|
4266
4265
|
functionName: n,
|
|
4267
4266
|
topLevelClassName: e,
|
|
4268
4267
|
objectName: t
|
|
4269
4268
|
}
|
|
4270
4269
|
),
|
|
4271
|
-
/* @__PURE__ */ c.jsx(
|
|
4270
|
+
/* @__PURE__ */ c.jsx(_t, { textToCopy: i })
|
|
4272
4271
|
] }),
|
|
4273
4272
|
s.map((u, l) => /* @__PURE__ */ c.jsxs("div", { className: "grid grid-cols-[auto_1fr] items-center pl-4", children: [
|
|
4274
|
-
/* @__PURE__ */ c.jsx(
|
|
4273
|
+
/* @__PURE__ */ c.jsx(qt, { arg: u, popover: !1 }),
|
|
4275
4274
|
l < s.length - 1 && /* @__PURE__ */ c.jsx("span", { children: ", " })
|
|
4276
4275
|
] }, l)),
|
|
4277
|
-
/* @__PURE__ */ c.jsx(
|
|
4276
|
+
/* @__PURE__ */ c.jsx(Jt, { callsQuantity: o, noQuantity: !0 })
|
|
4278
4277
|
]
|
|
4279
4278
|
}
|
|
4280
4279
|
)
|
|
4281
4280
|
] }),
|
|
4282
4281
|
/* @__PURE__ */ c.jsx("div", { className: "grid items-center min-w-0", style: a, children: s.map((u, l) => /* @__PURE__ */ c.jsxs(pr, { children: [
|
|
4283
|
-
/* @__PURE__ */ c.jsx(
|
|
4282
|
+
/* @__PURE__ */ c.jsx(qt, { arg: u }),
|
|
4284
4283
|
l < s.length - 1 && /* @__PURE__ */ c.jsx("span", { children: ", " })
|
|
4285
4284
|
] }, l)) }),
|
|
4286
|
-
/* @__PURE__ */ c.jsx(
|
|
4285
|
+
/* @__PURE__ */ c.jsx(Jt, { callsQuantity: o })
|
|
4287
4286
|
] });
|
|
4288
4287
|
}
|
|
4289
4288
|
);
|
|
4290
|
-
|
|
4289
|
+
wt.displayName = "FunctionCall";
|
|
4291
4290
|
const No = V(({ event: e }) => {
|
|
4292
4291
|
const t = z(() => [{ topic: e.topic, data: e.data }], [e]);
|
|
4293
|
-
return /* @__PURE__ */ c.jsx(
|
|
4292
|
+
return /* @__PURE__ */ c.jsx(wt, { functionName: "emit", args: t });
|
|
4294
4293
|
});
|
|
4295
4294
|
No.displayName = "TraceEmitEvent";
|
|
4296
|
-
const
|
|
4295
|
+
const Ro = V(({ event: e }) => /* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
4297
4296
|
/* @__PURE__ */ c.jsx(Uo, { level: e.level }),
|
|
4298
4297
|
" ",
|
|
4299
4298
|
e.message
|
|
4300
4299
|
] }));
|
|
4301
|
-
|
|
4302
|
-
const
|
|
4300
|
+
Ro.displayName = "TraceLogEvent";
|
|
4301
|
+
const Oo = V(({ event: e }) => {
|
|
4303
4302
|
const t = z(() => [e.data.traceId, e.data.key, e.data.value], [e]);
|
|
4304
|
-
return /* @__PURE__ */ c.jsx(
|
|
4303
|
+
return /* @__PURE__ */ c.jsx(wt, { objectName: "state", functionName: e.operation, args: t });
|
|
4305
4304
|
});
|
|
4306
|
-
|
|
4305
|
+
Oo.displayName = "TraceStateEvent";
|
|
4307
4306
|
const To = V(({ event: e }) => {
|
|
4308
4307
|
const t = z(
|
|
4309
4308
|
() => [e.data.groupId, e.data.id, e.data.data],
|
|
4310
4309
|
[e]
|
|
4311
4310
|
);
|
|
4312
4311
|
return /* @__PURE__ */ c.jsx(
|
|
4313
|
-
|
|
4312
|
+
wt,
|
|
4314
4313
|
{
|
|
4315
4314
|
topLevelClassName: "streams",
|
|
4316
4315
|
objectName: e.streamName,
|
|
@@ -4323,11 +4322,11 @@ const To = V(({ event: e }) => {
|
|
|
4323
4322
|
To.displayName = "TraceStreamEvent";
|
|
4324
4323
|
const ko = V(({ event: e }) => {
|
|
4325
4324
|
if (e.type === "log")
|
|
4326
|
-
return /* @__PURE__ */ c.jsx(
|
|
4325
|
+
return /* @__PURE__ */ c.jsx(Ro, { event: e });
|
|
4327
4326
|
if (e.type === "emit")
|
|
4328
4327
|
return /* @__PURE__ */ c.jsx(No, { event: e });
|
|
4329
4328
|
if (e.type === "state")
|
|
4330
|
-
return /* @__PURE__ */ c.jsx(
|
|
4329
|
+
return /* @__PURE__ */ c.jsx(Oo, { event: e });
|
|
4331
4330
|
if (e.type === "stream")
|
|
4332
4331
|
return /* @__PURE__ */ c.jsx(To, { event: e });
|
|
4333
4332
|
});
|
|
@@ -4576,7 +4575,7 @@ const rl = {
|
|
|
4576
4575
|
const o = rl[e];
|
|
4577
4576
|
return typeof o == "string" ? r = o : t === 1 ? r = o.one : r = o.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
4578
4577
|
};
|
|
4579
|
-
function
|
|
4578
|
+
function kt(e) {
|
|
4580
4579
|
return (t = {}) => {
|
|
4581
4580
|
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
4582
4581
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -4598,15 +4597,15 @@ const sl = {
|
|
|
4598
4597
|
medium: "{{date}}, {{time}}",
|
|
4599
4598
|
short: "{{date}}, {{time}}"
|
|
4600
4599
|
}, cl = {
|
|
4601
|
-
date:
|
|
4600
|
+
date: kt({
|
|
4602
4601
|
formats: sl,
|
|
4603
4602
|
defaultWidth: "full"
|
|
4604
4603
|
}),
|
|
4605
|
-
time:
|
|
4604
|
+
time: kt({
|
|
4606
4605
|
formats: al,
|
|
4607
4606
|
defaultWidth: "full"
|
|
4608
4607
|
}),
|
|
4609
|
-
dateTime:
|
|
4608
|
+
dateTime: kt({
|
|
4610
4609
|
formats: il,
|
|
4611
4610
|
defaultWidth: "full"
|
|
4612
4611
|
})
|
|
@@ -4840,7 +4839,7 @@ const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
|
|
|
4840
4839
|
narrow: /^[jfmasond]/i,
|
|
4841
4840
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
4842
4841
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
4843
|
-
},
|
|
4842
|
+
}, Rl = {
|
|
4844
4843
|
narrow: [
|
|
4845
4844
|
/^j/i,
|
|
4846
4845
|
/^f/i,
|
|
@@ -4869,7 +4868,7 @@ const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
|
|
|
4869
4868
|
/^n/i,
|
|
4870
4869
|
/^d/i
|
|
4871
4870
|
]
|
|
4872
|
-
},
|
|
4871
|
+
}, Ol = {
|
|
4873
4872
|
narrow: /^[smtwf]/i,
|
|
4874
4873
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
4875
4874
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
@@ -4913,11 +4912,11 @@ const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
|
|
|
4913
4912
|
month: ze({
|
|
4914
4913
|
matchPatterns: Nl,
|
|
4915
4914
|
defaultMatchWidth: "wide",
|
|
4916
|
-
parsePatterns:
|
|
4915
|
+
parsePatterns: Rl,
|
|
4917
4916
|
defaultParseWidth: "any"
|
|
4918
4917
|
}),
|
|
4919
4918
|
day: ze({
|
|
4920
|
-
matchPatterns:
|
|
4919
|
+
matchPatterns: Ol,
|
|
4921
4920
|
defaultMatchWidth: "wide",
|
|
4922
4921
|
parsePatterns: Tl,
|
|
4923
4922
|
defaultParseWidth: "any"
|