@motiadev/plugin-observability 0.13.0-beta.162-813224 → 0.13.0-beta.162-956056
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/index.cjs +11 -11
- package/dist/index.js +912 -915
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as m from "react";
|
|
2
|
-
import Pe, { forwardRef as
|
|
3
|
-
import { Input as Vo, cn as De, Button as ct, LevelDot as Uo, Sidebar as Yo, Badge as
|
|
4
|
-
import {
|
|
2
|
+
import Pe, { forwardRef as en, 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 hr } from "react";
|
|
3
|
+
import { Input as Vo, cn as De, Button as ct, LevelDot as Uo, Sidebar as Yo, Badge as gr } from "@motiadev/ui";
|
|
4
|
+
import { useStreamGroup as _t } from "@motiadev/stream-client-react";
|
|
5
5
|
import * as vr from "react-dom";
|
|
6
|
-
import
|
|
6
|
+
import Go from "react-dom";
|
|
7
7
|
var qe = { exports: {} }, We = {};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
@@ -14,10 +14,10 @@ var qe = { exports: {} }, We = {};
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
if (
|
|
20
|
-
|
|
17
|
+
var bn;
|
|
18
|
+
function Zo() {
|
|
19
|
+
if (bn) return We;
|
|
20
|
+
bn = 1;
|
|
21
21
|
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
22
22
|
function n(r, o, s) {
|
|
23
23
|
var a = null;
|
|
@@ -46,16 +46,16 @@ var He = {};
|
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
48
|
*/
|
|
49
|
-
var
|
|
50
|
-
function
|
|
51
|
-
return
|
|
49
|
+
var wn;
|
|
50
|
+
function Xo() {
|
|
51
|
+
return wn || (wn = 1, process.env.NODE_ENV !== "production" && function() {
|
|
52
52
|
function e(y) {
|
|
53
53
|
if (y == null) return null;
|
|
54
54
|
if (typeof y == "function")
|
|
55
55
|
return y.$$typeof === L ? null : y.displayName || y.name || null;
|
|
56
56
|
if (typeof y == "string") return y;
|
|
57
57
|
switch (y) {
|
|
58
|
-
case
|
|
58
|
+
case h:
|
|
59
59
|
return "Fragment";
|
|
60
60
|
case b:
|
|
61
61
|
return "Profiler";
|
|
@@ -113,7 +113,7 @@ function qo() {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
function r(y) {
|
|
116
|
-
if (y ===
|
|
116
|
+
if (y === h) return "<>";
|
|
117
117
|
if (typeof y == "object" && y !== null && y.$$typeof === T)
|
|
118
118
|
return "<...>";
|
|
119
119
|
try {
|
|
@@ -157,7 +157,7 @@ function qo() {
|
|
|
157
157
|
}
|
|
158
158
|
function l(y, N, $, P, F, Z, Ie, se) {
|
|
159
159
|
return $ = Z.ref, y = {
|
|
160
|
-
$$typeof:
|
|
160
|
+
$$typeof: g,
|
|
161
161
|
type: y,
|
|
162
162
|
key: N,
|
|
163
163
|
props: Z,
|
|
@@ -238,21 +238,21 @@ React keys must be passed directly to JSX without using spread:
|
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
240
|
function d(y) {
|
|
241
|
-
typeof y == "object" && y !== null && y.$$typeof ===
|
|
241
|
+
typeof y == "object" && y !== null && y.$$typeof === g && y._store && (y._store.validated = 1);
|
|
242
242
|
}
|
|
243
|
-
var
|
|
243
|
+
var p = Pe, g = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), E = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), W = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, I = Array.isArray, M = console.createTask ? console.createTask : function() {
|
|
244
244
|
return null;
|
|
245
245
|
};
|
|
246
|
-
|
|
246
|
+
p = {
|
|
247
247
|
react_stack_bottom_frame: function(y) {
|
|
248
248
|
return y();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var _, D = {}, O =
|
|
252
|
-
|
|
251
|
+
var _, D = {}, O = p.react_stack_bottom_frame.bind(
|
|
252
|
+
p,
|
|
253
253
|
s
|
|
254
254
|
)(), R = M(r(s)), B = {};
|
|
255
|
-
He.Fragment =
|
|
255
|
+
He.Fragment = h, He.jsx = function(y, N, $, P, F) {
|
|
256
256
|
var Z = 1e4 > W.recentlyCreatedOwnerStacks++;
|
|
257
257
|
return f(
|
|
258
258
|
y,
|
|
@@ -279,24 +279,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
279
279
|
};
|
|
280
280
|
}()), He;
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
function
|
|
284
|
-
return
|
|
282
|
+
var jn;
|
|
283
|
+
function qo() {
|
|
284
|
+
return jn || (jn = 1, process.env.NODE_ENV === "production" ? qe.exports = Zo() : qe.exports = Xo()), qe.exports;
|
|
285
285
|
}
|
|
286
|
-
var c =
|
|
286
|
+
var c = qo();
|
|
287
287
|
/**
|
|
288
288
|
* @license lucide-react v0.545.0 - ISC
|
|
289
289
|
*
|
|
290
290
|
* This source code is licensed under the ISC license.
|
|
291
291
|
* See the LICENSE file in the root directory of this source tree.
|
|
292
292
|
*/
|
|
293
|
-
const
|
|
293
|
+
const Jo = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ko = (e) => e.replace(
|
|
294
294
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
295
295
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
296
|
-
),
|
|
297
|
-
const t =
|
|
296
|
+
), Cn = (e) => {
|
|
297
|
+
const t = Ko(e);
|
|
298
298
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
299
|
-
}, yr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(),
|
|
299
|
+
}, yr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim(), Qo = (e) => {
|
|
300
300
|
for (const t in e)
|
|
301
301
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
302
302
|
return !0;
|
|
@@ -307,7 +307,7 @@ const Ko = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Qo = (
|
|
|
307
307
|
* This source code is licensed under the ISC license.
|
|
308
308
|
* See the LICENSE file in the root directory of this source tree.
|
|
309
309
|
*/
|
|
310
|
-
var
|
|
310
|
+
var es = {
|
|
311
311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
312
312
|
width: 24,
|
|
313
313
|
height: 24,
|
|
@@ -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
|
|
327
|
+
const ts = en(
|
|
328
328
|
({
|
|
329
329
|
color: e = "currentColor",
|
|
330
330
|
size: t = 24,
|
|
@@ -338,13 +338,13 @@ const ns = Qt(
|
|
|
338
338
|
"svg",
|
|
339
339
|
{
|
|
340
340
|
ref: u,
|
|
341
|
-
...
|
|
341
|
+
...es,
|
|
342
342
|
width: t,
|
|
343
343
|
height: t,
|
|
344
344
|
stroke: e,
|
|
345
345
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
346
346
|
className: yr("lucide", o),
|
|
347
|
-
...!s && !
|
|
347
|
+
...!s && !Qo(i) && { "aria-hidden": "true" },
|
|
348
348
|
...i
|
|
349
349
|
},
|
|
350
350
|
[
|
|
@@ -360,19 +360,19 @@ const ns = Qt(
|
|
|
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) => Mt(
|
|
363
|
+
const n = en(
|
|
364
|
+
({ className: r, ...o }, s) => Mt(ts, {
|
|
365
365
|
ref: s,
|
|
366
366
|
iconNode: t,
|
|
367
367
|
className: yr(
|
|
368
|
-
`lucide-${
|
|
368
|
+
`lucide-${Jo(Cn(e))}`,
|
|
369
369
|
`lucide-${e}`,
|
|
370
370
|
r
|
|
371
371
|
),
|
|
372
372
|
...o
|
|
373
373
|
})
|
|
374
374
|
);
|
|
375
|
-
return n.displayName =
|
|
375
|
+
return n.displayName = Cn(e), n;
|
|
376
376
|
};
|
|
377
377
|
/**
|
|
378
378
|
* @license lucide-react v0.545.0 - ISC
|
|
@@ -380,42 +380,42 @@ const J = (e, t) => {
|
|
|
380
380
|
* This source code is licensed under the ISC license.
|
|
381
381
|
* See the LICENSE file in the root directory of this source tree.
|
|
382
382
|
*/
|
|
383
|
-
const
|
|
383
|
+
const ns = [
|
|
384
384
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
385
385
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
386
|
-
],
|
|
386
|
+
], rs = J("search", ns);
|
|
387
387
|
/**
|
|
388
388
|
* @license lucide-react v0.545.0 - ISC
|
|
389
389
|
*
|
|
390
390
|
* This source code is licensed under the ISC license.
|
|
391
391
|
* See the LICENSE file in the root directory of this source tree.
|
|
392
392
|
*/
|
|
393
|
-
const
|
|
393
|
+
const os = [
|
|
394
394
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
395
395
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
396
396
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
397
|
-
],
|
|
397
|
+
], ss = J("trash", os);
|
|
398
398
|
/**
|
|
399
399
|
* @license lucide-react v0.545.0 - ISC
|
|
400
400
|
*
|
|
401
401
|
* This source code is licensed under the ISC license.
|
|
402
402
|
* See the LICENSE file in the root directory of this source tree.
|
|
403
403
|
*/
|
|
404
|
-
const
|
|
404
|
+
const as = [
|
|
405
405
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
406
406
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
407
|
-
], xr = J("x",
|
|
407
|
+
], xr = J("x", as), En = (e) => {
|
|
408
408
|
let t;
|
|
409
409
|
const n = /* @__PURE__ */ new Set(), r = (l, f) => {
|
|
410
410
|
const d = typeof l == "function" ? l(t) : l;
|
|
411
411
|
if (!Object.is(d, t)) {
|
|
412
|
-
const
|
|
413
|
-
t = f ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), n.forEach((
|
|
412
|
+
const p = t;
|
|
413
|
+
t = f ?? (typeof d != "object" || d === null) ? d : Object.assign({}, t, d), n.forEach((g) => g(t, p));
|
|
414
414
|
}
|
|
415
415
|
}, o = () => t, i = { setState: r, getState: o, getInitialState: () => u, subscribe: (l) => (n.add(l), () => n.delete(l)) }, u = t = e(r, o, i);
|
|
416
416
|
return i;
|
|
417
|
-
},
|
|
418
|
-
function
|
|
417
|
+
}, is = (e) => e ? En(e) : En, cs = (e) => e;
|
|
418
|
+
function ls(e, t = cs) {
|
|
419
419
|
const n = Pe.useSyncExternalStore(
|
|
420
420
|
e.subscribe,
|
|
421
421
|
Pe.useCallback(() => t(e.getState()), [e, t]),
|
|
@@ -423,10 +423,10 @@ function us(e, t = ls) {
|
|
|
423
423
|
);
|
|
424
424
|
return Pe.useDebugValue(n), n;
|
|
425
425
|
}
|
|
426
|
-
const
|
|
427
|
-
const t =
|
|
426
|
+
const us = (e) => {
|
|
427
|
+
const t = is(e), n = (r) => ls(t, r);
|
|
428
428
|
return Object.assign(n, t), n;
|
|
429
|
-
},
|
|
429
|
+
}, fs = (e) => us, K = fs()((e) => ({
|
|
430
430
|
selectedTraceGroupId: "",
|
|
431
431
|
selectedTraceId: void 0,
|
|
432
432
|
search: "",
|
|
@@ -450,7 +450,7 @@ const fs = (e) => {
|
|
|
450
450
|
placeholder: "Search by Trace ID or Step Name"
|
|
451
451
|
}
|
|
452
452
|
),
|
|
453
|
-
/* @__PURE__ */ c.jsx(
|
|
453
|
+
/* @__PURE__ */ c.jsx(rs, { className: "absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground/50" }),
|
|
454
454
|
/* @__PURE__ */ c.jsx(
|
|
455
455
|
xr,
|
|
456
456
|
{
|
|
@@ -466,7 +466,7 @@ const fs = (e) => {
|
|
|
466
466
|
)
|
|
467
467
|
] }),
|
|
468
468
|
/* @__PURE__ */ c.jsxs(ct, { variant: "default", onClick: n, className: "h-[34px]", children: [
|
|
469
|
-
/* @__PURE__ */ c.jsx(
|
|
469
|
+
/* @__PURE__ */ c.jsx(ss, {}),
|
|
470
470
|
" Clear"
|
|
471
471
|
] })
|
|
472
472
|
] });
|
|
@@ -480,22 +480,22 @@ wr.displayName = "TraceEmptyState";
|
|
|
480
480
|
* This source code is licensed under the ISC license.
|
|
481
481
|
* See the LICENSE file in the root directory of this source tree.
|
|
482
482
|
*/
|
|
483
|
-
const
|
|
483
|
+
const ds = [["path", { d: "M5 12h14", key: "1ays0h" }]], ms = J("minus", ds);
|
|
484
484
|
/**
|
|
485
485
|
* @license lucide-react v0.545.0 - ISC
|
|
486
486
|
*
|
|
487
487
|
* This source code is licensed under the ISC license.
|
|
488
488
|
* See the LICENSE file in the root directory of this source tree.
|
|
489
489
|
*/
|
|
490
|
-
const
|
|
490
|
+
const ps = [
|
|
491
491
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
492
492
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
493
|
-
],
|
|
493
|
+
], hs = J("plus", ps), gs = (e) => {
|
|
494
494
|
const t = e?.endTime, [n, r] = G(() => t || Date.now()), o = mt(null);
|
|
495
495
|
return _e(() => (o.current && (clearInterval(o.current), o.current = null), t ? r(t) : o.current = setInterval(() => r(Date.now()), 100), () => {
|
|
496
496
|
o.current && (clearInterval(o.current), o.current = null);
|
|
497
497
|
}), [t]), n;
|
|
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`,
|
|
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`, vs = {
|
|
499
499
|
running: "bg-[repeating-linear-gradient(140deg,#BEFE29,#BEFE29_8px,#ABE625_8px,#ABE625_16px)]",
|
|
500
500
|
completed: "bg-[repeating-linear-gradient(140deg,#2862FE,#2862FE_8px,#2358E5_8px,#2358E5_16px)]",
|
|
501
501
|
failed: "bg-[repeating-linear-gradient(140deg,#EA2069,#EA2069_8px,#D41E60_8px,#D41E60_16px)]"
|
|
@@ -504,7 +504,7 @@ const hs = [
|
|
|
504
504
|
const u = de(() => {
|
|
505
505
|
i(e);
|
|
506
506
|
}, [i, e]), l = z(
|
|
507
|
-
() => De("h-[24px] rounded-[4px] hover:opacity-80 transition-all duration-200",
|
|
507
|
+
() => De("h-[24px] rounded-[4px] hover:opacity-80 transition-all duration-200", vs[n]),
|
|
508
508
|
[n]
|
|
509
509
|
), f = z(
|
|
510
510
|
() => ({
|
|
@@ -534,7 +534,7 @@ jr.displayName = "TraceItem";
|
|
|
534
534
|
* This source code is licensed under the ISC license.
|
|
535
535
|
* See the LICENSE file in the root directory of this source tree.
|
|
536
536
|
*/
|
|
537
|
-
const
|
|
537
|
+
const ys = [
|
|
538
538
|
[
|
|
539
539
|
"path",
|
|
540
540
|
{
|
|
@@ -542,14 +542,14 @@ const xs = [
|
|
|
542
542
|
key: "1sd12s"
|
|
543
543
|
}
|
|
544
544
|
]
|
|
545
|
-
],
|
|
545
|
+
], xs = J("message-circle", ys);
|
|
546
546
|
/**
|
|
547
547
|
* @license lucide-react v0.545.0 - ISC
|
|
548
548
|
*
|
|
549
549
|
* This source code is licensed under the ISC license.
|
|
550
550
|
* See the LICENSE file in the root directory of this source tree.
|
|
551
551
|
*/
|
|
552
|
-
const
|
|
552
|
+
const bs = [
|
|
553
553
|
[
|
|
554
554
|
"path",
|
|
555
555
|
{
|
|
@@ -560,27 +560,27 @@ const ws = [
|
|
|
560
560
|
["path", { d: "M12 22V12", key: "d0xqtd" }],
|
|
561
561
|
["polyline", { points: "3.29 7 12 12 20.71 7", key: "ousv84" }],
|
|
562
562
|
["path", { d: "m7.5 4.27 9 5.15", key: "1c824w" }]
|
|
563
|
-
],
|
|
563
|
+
], ws = J("package", bs);
|
|
564
564
|
/**
|
|
565
565
|
* @license lucide-react v0.545.0 - ISC
|
|
566
566
|
*
|
|
567
567
|
* This source code is licensed under the ISC license.
|
|
568
568
|
* See the LICENSE file in the root directory of this source tree.
|
|
569
569
|
*/
|
|
570
|
-
const
|
|
570
|
+
const js = [
|
|
571
571
|
["path", { d: "M16.247 7.761a6 6 0 0 1 0 8.478", key: "1fwjs5" }],
|
|
572
572
|
["path", { d: "M19.075 4.933a10 10 0 0 1 0 14.134", key: "ehdyv1" }],
|
|
573
573
|
["path", { d: "M4.925 19.067a10 10 0 0 1 0-14.134", key: "1q22gi" }],
|
|
574
574
|
["path", { d: "M7.753 16.239a6 6 0 0 1 0-8.478", key: "r2q7qm" }],
|
|
575
575
|
["circle", { cx: "12", cy: "12", r: "2", key: "1c9p78" }]
|
|
576
|
-
],
|
|
576
|
+
], Cs = J("radio", js);
|
|
577
577
|
/**
|
|
578
578
|
* @license lucide-react v0.545.0 - ISC
|
|
579
579
|
*
|
|
580
580
|
* This source code is licensed under the ISC license.
|
|
581
581
|
* See the LICENSE file in the root directory of this source tree.
|
|
582
582
|
*/
|
|
583
|
-
const
|
|
583
|
+
const Es = [
|
|
584
584
|
["path", { d: "M15 12h-5", key: "r7krc0" }],
|
|
585
585
|
["path", { d: "M15 8h-5", key: "1khuty" }],
|
|
586
586
|
["path", { d: "M19 17V5a2 2 0 0 0-2-2H4", key: "zz82l3" }],
|
|
@@ -591,15 +591,15 @@ const Ss = [
|
|
|
591
591
|
key: "1ph1d7"
|
|
592
592
|
}
|
|
593
593
|
]
|
|
594
|
-
],
|
|
594
|
+
], Ss = J("scroll-text", Es), As = ({ event: e }) => {
|
|
595
595
|
if (e.type === "log")
|
|
596
|
-
return /* @__PURE__ */ c.jsx(
|
|
596
|
+
return /* @__PURE__ */ c.jsx(Ss, { className: "w-4 h-4 text-muted-foreground" });
|
|
597
597
|
if (e.type === "emit")
|
|
598
|
-
return /* @__PURE__ */ c.jsx(
|
|
598
|
+
return /* @__PURE__ */ c.jsx(xs, { className: "w-4 h-4 text-muted-foreground" });
|
|
599
599
|
if (e.type === "state")
|
|
600
|
-
return /* @__PURE__ */ c.jsx(
|
|
600
|
+
return /* @__PURE__ */ c.jsx(ws, { className: "w-4 h-4 text-muted-foreground" });
|
|
601
601
|
if (e.type === "stream")
|
|
602
|
-
return /* @__PURE__ */ c.jsx(
|
|
602
|
+
return /* @__PURE__ */ c.jsx(Cs, { className: "w-4 h-4 text-muted-foreground" });
|
|
603
603
|
};
|
|
604
604
|
/**
|
|
605
605
|
* @license lucide-react v0.545.0 - ISC
|
|
@@ -607,17 +607,17 @@ const Ss = [
|
|
|
607
607
|
* This source code is licensed under the ISC license.
|
|
608
608
|
* See the LICENSE file in the root directory of this source tree.
|
|
609
609
|
*/
|
|
610
|
-
const
|
|
610
|
+
const Ps = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Ns = J("check", Ps);
|
|
611
611
|
/**
|
|
612
612
|
* @license lucide-react v0.545.0 - ISC
|
|
613
613
|
*
|
|
614
614
|
* This source code is licensed under the ISC license.
|
|
615
615
|
* See the LICENSE file in the root directory of this source tree.
|
|
616
616
|
*/
|
|
617
|
-
const
|
|
617
|
+
const Rs = [
|
|
618
618
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
619
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" }]
|
|
620
|
-
],
|
|
620
|
+
], Os = J("copy", Rs), Dt = ({ textToCopy: e, className: t, title: n }) => {
|
|
621
621
|
const [r, o] = G(!1), s = de(async () => {
|
|
622
622
|
try {
|
|
623
623
|
await navigator.clipboard.writeText(e), o(!0), setTimeout(() => o(!1), 2e3);
|
|
@@ -633,7 +633,7 @@ const Os = [
|
|
|
633
633
|
onClick: s,
|
|
634
634
|
className: De("cursor-pointer p-3 rounded-full", t),
|
|
635
635
|
title: n ?? (r ? "Copied!" : "Copy"),
|
|
636
|
-
children: r ? /* @__PURE__ */ c.jsx(
|
|
636
|
+
children: r ? /* @__PURE__ */ c.jsx(Ns, { className: "w-4 h-4 text-green-500" }) : /* @__PURE__ */ c.jsx(Os, { className: "w-4 h-4 text-gray-400" })
|
|
637
637
|
}
|
|
638
638
|
);
|
|
639
639
|
};
|
|
@@ -643,7 +643,7 @@ function fe(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
643
643
|
return t?.(o);
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Sn(e, t) {
|
|
647
647
|
if (typeof e == "function")
|
|
648
648
|
return e(t);
|
|
649
649
|
e != null && (e.current = t);
|
|
@@ -652,14 +652,14 @@ function Cr(...e) {
|
|
|
652
652
|
return (t) => {
|
|
653
653
|
let n = !1;
|
|
654
654
|
const r = e.map((o) => {
|
|
655
|
-
const s =
|
|
655
|
+
const s = Sn(o, t);
|
|
656
656
|
return !n && typeof s == "function" && (n = !0), s;
|
|
657
657
|
});
|
|
658
658
|
if (n)
|
|
659
659
|
return () => {
|
|
660
660
|
for (let o = 0; o < r.length; o++) {
|
|
661
661
|
const s = r[o];
|
|
662
|
-
typeof s == "function" ? s() :
|
|
662
|
+
typeof s == "function" ? s() : Sn(e[o], null);
|
|
663
663
|
}
|
|
664
664
|
};
|
|
665
665
|
};
|
|
@@ -673,12 +673,12 @@ function Er(e, t = []) {
|
|
|
673
673
|
const i = m.createContext(a), u = n.length;
|
|
674
674
|
n = [...n, a];
|
|
675
675
|
const l = (d) => {
|
|
676
|
-
const { scope:
|
|
677
|
-
return /* @__PURE__ */ c.jsx(
|
|
676
|
+
const { scope: p, children: g, ...v } = d, h = p?.[e]?.[u] || i, x = m.useMemo(() => v, Object.values(v));
|
|
677
|
+
return /* @__PURE__ */ c.jsx(h.Provider, { value: x, children: g });
|
|
678
678
|
};
|
|
679
679
|
l.displayName = s + "Provider";
|
|
680
|
-
function f(d,
|
|
681
|
-
const
|
|
680
|
+
function f(d, p) {
|
|
681
|
+
const g = p?.[e]?.[u] || i, v = m.useContext(g);
|
|
682
682
|
if (v) return v;
|
|
683
683
|
if (a !== void 0) return a;
|
|
684
684
|
throw new Error(`\`${d}\` must be used within \`${s}\``);
|
|
@@ -695,9 +695,9 @@ function Er(e, t = []) {
|
|
|
695
695
|
);
|
|
696
696
|
};
|
|
697
697
|
};
|
|
698
|
-
return o.scopeName = e, [r,
|
|
698
|
+
return o.scopeName = e, [r, Ts(o, ...t)];
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function Ts(...e) {
|
|
701
701
|
const t = e[0];
|
|
702
702
|
if (e.length === 1) return t;
|
|
703
703
|
const n = () => {
|
|
@@ -717,8 +717,8 @@ function ks(...e) {
|
|
|
717
717
|
}
|
|
718
718
|
// @__NO_SIDE_EFFECTS__
|
|
719
719
|
function Sr(e) {
|
|
720
|
-
const t = /* @__PURE__ */
|
|
721
|
-
const { children: s, ...a } = r, i = m.Children.toArray(s), u = i.find(
|
|
720
|
+
const t = /* @__PURE__ */ ks(e), n = m.forwardRef((r, o) => {
|
|
721
|
+
const { children: s, ...a } = r, i = m.Children.toArray(s), u = i.find(_s);
|
|
722
722
|
if (u) {
|
|
723
723
|
const l = u.props.children, f = i.map((d) => d === u ? m.Children.count(l) > 1 ? m.Children.only(null) : m.isValidElement(l) ? l.props.children : null : d);
|
|
724
724
|
return /* @__PURE__ */ c.jsx(t, { ...a, ref: o, children: m.isValidElement(l) ? m.cloneElement(l, void 0, f) : null });
|
|
@@ -728,22 +728,22 @@ function Sr(e) {
|
|
|
728
728
|
return n.displayName = `${e}.Slot`, n;
|
|
729
729
|
}
|
|
730
730
|
// @__NO_SIDE_EFFECTS__
|
|
731
|
-
function
|
|
731
|
+
function ks(e) {
|
|
732
732
|
const t = m.forwardRef((n, r) => {
|
|
733
733
|
const { children: o, ...s } = n;
|
|
734
734
|
if (m.isValidElement(o)) {
|
|
735
|
-
const a =
|
|
735
|
+
const a = Fs(o), i = Ds(s, o.props);
|
|
736
736
|
return o.type !== m.Fragment && (i.ref = r ? Cr(r, a) : a), m.cloneElement(o, i);
|
|
737
737
|
}
|
|
738
738
|
return m.Children.count(o) > 1 ? m.Children.only(null) : null;
|
|
739
739
|
});
|
|
740
740
|
return t.displayName = `${e}.SlotClone`, t;
|
|
741
741
|
}
|
|
742
|
-
var
|
|
743
|
-
function
|
|
744
|
-
return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId ===
|
|
742
|
+
var Ms = Symbol("radix.slottable");
|
|
743
|
+
function _s(e) {
|
|
744
|
+
return m.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Ms;
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function Ds(e, t) {
|
|
747
747
|
const n = { ...t };
|
|
748
748
|
for (const r in t) {
|
|
749
749
|
const o = e[r], s = t[r];
|
|
@@ -754,11 +754,11 @@ function Fs(e, t) {
|
|
|
754
754
|
}
|
|
755
755
|
return { ...e, ...n };
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function Fs(e) {
|
|
758
758
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
759
759
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
760
760
|
}
|
|
761
|
-
var
|
|
761
|
+
var Ls = [
|
|
762
762
|
"a",
|
|
763
763
|
"button",
|
|
764
764
|
"div",
|
|
@@ -776,14 +776,14 @@ var Is = [
|
|
|
776
776
|
"span",
|
|
777
777
|
"svg",
|
|
778
778
|
"ul"
|
|
779
|
-
], ce =
|
|
779
|
+
], ce = Ls.reduce((e, t) => {
|
|
780
780
|
const n = /* @__PURE__ */ Sr(`Primitive.${t}`), r = m.forwardRef((o, s) => {
|
|
781
781
|
const { asChild: a, ...i } = o, u = a ? n : t;
|
|
782
782
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c.jsx(u, { ...i, ref: s });
|
|
783
783
|
});
|
|
784
784
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
785
785
|
}, {});
|
|
786
|
-
function
|
|
786
|
+
function Is(e, t) {
|
|
787
787
|
e && vr.flushSync(() => e.dispatchEvent(t));
|
|
788
788
|
}
|
|
789
789
|
function Te(e) {
|
|
@@ -792,7 +792,7 @@ function Te(e) {
|
|
|
792
792
|
t.current = e;
|
|
793
793
|
}), m.useMemo(() => (...n) => t.current?.(...n), []);
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function $s(e, t = globalThis?.document) {
|
|
796
796
|
const n = Te(e);
|
|
797
797
|
m.useEffect(() => {
|
|
798
798
|
const r = (o) => {
|
|
@@ -801,7 +801,7 @@ function Ws(e, t = globalThis?.document) {
|
|
|
801
801
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
802
802
|
}, [n, t]);
|
|
803
803
|
}
|
|
804
|
-
var
|
|
804
|
+
var Ws = "DismissableLayer", Ft = "dismissableLayer.update", Hs = "dismissableLayer.pointerDownOutside", Bs = "dismissableLayer.focusOutside", An, Ar = m.createContext({
|
|
805
805
|
layers: /* @__PURE__ */ new Set(),
|
|
806
806
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
807
807
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -815,25 +815,25 @@ var Hs = "DismissableLayer", Dt = "dismissableLayer.update", Bs = "dismissableLa
|
|
|
815
815
|
onInteractOutside: a,
|
|
816
816
|
onDismiss: i,
|
|
817
817
|
...u
|
|
818
|
-
} = e, l = m.useContext(Ar), [f, d] = m.useState(null),
|
|
818
|
+
} = e, l = m.useContext(Ar), [f, d] = m.useState(null), p = f?.ownerDocument ?? globalThis?.document, [, g] = m.useState({}), v = ve(t, (C) => d(C)), h = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = h.indexOf(x), S = f ? h.indexOf(f) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= b, j = Us((C) => {
|
|
819
819
|
const T = C.target, k = [...l.branches].some((L) => L.contains(T));
|
|
820
820
|
!w || k || (o?.(C), a?.(C), C.defaultPrevented || i?.());
|
|
821
|
-
},
|
|
821
|
+
}, p), A = Ys((C) => {
|
|
822
822
|
const T = C.target;
|
|
823
823
|
[...l.branches].some((L) => L.contains(T)) || (s?.(C), a?.(C), C.defaultPrevented || i?.());
|
|
824
|
-
},
|
|
825
|
-
return
|
|
824
|
+
}, p);
|
|
825
|
+
return $s((C) => {
|
|
826
826
|
S === l.layers.size - 1 && (r?.(C), !C.defaultPrevented && i && (C.preventDefault(), i()));
|
|
827
|
-
},
|
|
827
|
+
}, p), m.useEffect(() => {
|
|
828
828
|
if (f)
|
|
829
|
-
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
830
|
-
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (
|
|
829
|
+
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (An = p.body.style.pointerEvents, p.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(f)), l.layers.add(f), Pn(), () => {
|
|
830
|
+
n && l.layersWithOutsidePointerEventsDisabled.size === 1 && (p.body.style.pointerEvents = An);
|
|
831
831
|
};
|
|
832
|
-
}, [f,
|
|
833
|
-
f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f),
|
|
832
|
+
}, [f, p, n, l]), m.useEffect(() => () => {
|
|
833
|
+
f && (l.layers.delete(f), l.layersWithOutsidePointerEventsDisabled.delete(f), Pn());
|
|
834
834
|
}, [f, l]), m.useEffect(() => {
|
|
835
|
-
const C = () =>
|
|
836
|
-
return document.addEventListener(
|
|
835
|
+
const C = () => g({});
|
|
836
|
+
return document.addEventListener(Ft, C), () => document.removeEventListener(Ft, C);
|
|
837
837
|
}, []), /* @__PURE__ */ c.jsx(
|
|
838
838
|
ce.div,
|
|
839
839
|
{
|
|
@@ -853,8 +853,8 @@ var Hs = "DismissableLayer", Dt = "dismissableLayer.update", Bs = "dismissableLa
|
|
|
853
853
|
);
|
|
854
854
|
}
|
|
855
855
|
);
|
|
856
|
-
Pr.displayName =
|
|
857
|
-
var
|
|
856
|
+
Pr.displayName = Ws;
|
|
857
|
+
var zs = "DismissableLayerBranch", Vs = m.forwardRef((e, t) => {
|
|
858
858
|
const n = m.useContext(Ar), r = m.useRef(null), o = ve(t, r);
|
|
859
859
|
return m.useEffect(() => {
|
|
860
860
|
const s = r.current;
|
|
@@ -864,8 +864,8 @@ var Vs = "DismissableLayerBranch", Us = m.forwardRef((e, t) => {
|
|
|
864
864
|
};
|
|
865
865
|
}, [n.branches]), /* @__PURE__ */ c.jsx(ce.div, { ...e, ref: o });
|
|
866
866
|
});
|
|
867
|
-
|
|
868
|
-
function
|
|
867
|
+
Vs.displayName = zs;
|
|
868
|
+
function Us(e, t = globalThis?.document) {
|
|
869
869
|
const n = Te(e), r = m.useRef(!1), o = m.useRef(() => {
|
|
870
870
|
});
|
|
871
871
|
return m.useEffect(() => {
|
|
@@ -873,7 +873,7 @@ function Ys(e, t = globalThis?.document) {
|
|
|
873
873
|
if (i.target && !r.current) {
|
|
874
874
|
let u = function() {
|
|
875
875
|
Nr(
|
|
876
|
-
|
|
876
|
+
Hs,
|
|
877
877
|
n,
|
|
878
878
|
l,
|
|
879
879
|
{ discrete: !0 }
|
|
@@ -895,11 +895,11 @@ function Ys(e, t = globalThis?.document) {
|
|
|
895
895
|
onPointerDownCapture: () => r.current = !0
|
|
896
896
|
};
|
|
897
897
|
}
|
|
898
|
-
function
|
|
898
|
+
function Ys(e, t = globalThis?.document) {
|
|
899
899
|
const n = Te(e), r = m.useRef(!1);
|
|
900
900
|
return m.useEffect(() => {
|
|
901
901
|
const o = (s) => {
|
|
902
|
-
s.target && !r.current && Nr(
|
|
902
|
+
s.target && !r.current && Nr(Bs, n, { originalEvent: s }, {
|
|
903
903
|
discrete: !1
|
|
904
904
|
});
|
|
905
905
|
};
|
|
@@ -909,35 +909,35 @@ function Gs(e, t = globalThis?.document) {
|
|
|
909
909
|
onBlurCapture: () => r.current = !1
|
|
910
910
|
};
|
|
911
911
|
}
|
|
912
|
-
function
|
|
913
|
-
const e = new CustomEvent(
|
|
912
|
+
function Pn() {
|
|
913
|
+
const e = new CustomEvent(Ft);
|
|
914
914
|
document.dispatchEvent(e);
|
|
915
915
|
}
|
|
916
916
|
function Nr(e, t, n, { discrete: r }) {
|
|
917
917
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
918
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
918
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? Is(o, s) : o.dispatchEvent(s);
|
|
919
919
|
}
|
|
920
920
|
var Ct = 0;
|
|
921
|
-
function
|
|
921
|
+
function Gs() {
|
|
922
922
|
m.useEffect(() => {
|
|
923
923
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
924
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
924
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Nn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Nn()), Ct++, () => {
|
|
925
925
|
Ct === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Ct--;
|
|
926
926
|
};
|
|
927
927
|
}, []);
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function Nn() {
|
|
930
930
|
const e = document.createElement("span");
|
|
931
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;
|
|
932
932
|
}
|
|
933
|
-
var Et = "focusScope.autoFocusOnMount", St = "focusScope.autoFocusOnUnmount",
|
|
933
|
+
var Et = "focusScope.autoFocusOnMount", St = "focusScope.autoFocusOnUnmount", Rn = { bubbles: !1, cancelable: !0 }, Zs = "FocusScope", Rr = m.forwardRef((e, t) => {
|
|
934
934
|
const {
|
|
935
935
|
loop: n = !1,
|
|
936
936
|
trapped: r = !1,
|
|
937
937
|
onMountAutoFocus: o,
|
|
938
938
|
onUnmountAutoFocus: s,
|
|
939
939
|
...a
|
|
940
|
-
} = e, [i, u] = m.useState(null), l = Te(o), f = Te(s), d = m.useRef(null),
|
|
940
|
+
} = e, [i, u] = m.useState(null), l = Te(o), f = Te(s), d = m.useRef(null), p = ve(t, (h) => u(h)), g = m.useRef({
|
|
941
941
|
paused: !1,
|
|
942
942
|
pause() {
|
|
943
943
|
this.paused = !0;
|
|
@@ -948,12 +948,12 @@ var Et = "focusScope.autoFocusOnMount", St = "focusScope.autoFocusOnUnmount", Nn
|
|
|
948
948
|
}).current;
|
|
949
949
|
m.useEffect(() => {
|
|
950
950
|
if (r) {
|
|
951
|
-
let
|
|
952
|
-
if (
|
|
951
|
+
let h = function(E) {
|
|
952
|
+
if (g.paused || !i) return;
|
|
953
953
|
const w = E.target;
|
|
954
954
|
i.contains(w) ? d.current = w : ue(d.current, { select: !0 });
|
|
955
955
|
}, x = function(E) {
|
|
956
|
-
if (
|
|
956
|
+
if (g.paused || !i) return;
|
|
957
957
|
const w = E.relatedTarget;
|
|
958
958
|
w !== null && (i.contains(w) || ue(d.current, { select: !0 }));
|
|
959
959
|
}, b = function(E) {
|
|
@@ -961,49 +961,49 @@ var Et = "focusScope.autoFocusOnMount", St = "focusScope.autoFocusOnUnmount", Nn
|
|
|
961
961
|
for (const j of E)
|
|
962
962
|
j.removedNodes.length > 0 && ue(i);
|
|
963
963
|
};
|
|
964
|
-
document.addEventListener("focusin",
|
|
964
|
+
document.addEventListener("focusin", h), document.addEventListener("focusout", x);
|
|
965
965
|
const S = new MutationObserver(b);
|
|
966
966
|
return i && S.observe(i, { childList: !0, subtree: !0 }), () => {
|
|
967
|
-
document.removeEventListener("focusin",
|
|
967
|
+
document.removeEventListener("focusin", h), document.removeEventListener("focusout", x), S.disconnect();
|
|
968
968
|
};
|
|
969
969
|
}
|
|
970
|
-
}, [r, i,
|
|
970
|
+
}, [r, i, g.paused]), m.useEffect(() => {
|
|
971
971
|
if (i) {
|
|
972
|
-
|
|
973
|
-
const
|
|
974
|
-
if (!i.contains(
|
|
975
|
-
const b = new CustomEvent(Et,
|
|
976
|
-
i.addEventListener(Et, l), i.dispatchEvent(b), b.defaultPrevented || (
|
|
972
|
+
Tn.add(g);
|
|
973
|
+
const h = document.activeElement;
|
|
974
|
+
if (!i.contains(h)) {
|
|
975
|
+
const b = new CustomEvent(Et, Rn);
|
|
976
|
+
i.addEventListener(Et, l), i.dispatchEvent(b), b.defaultPrevented || (Xs(ea(Or(i)), { select: !0 }), document.activeElement === h && ue(i));
|
|
977
977
|
}
|
|
978
978
|
return () => {
|
|
979
979
|
i.removeEventListener(Et, l), setTimeout(() => {
|
|
980
|
-
const b = new CustomEvent(St,
|
|
981
|
-
i.addEventListener(St, f), i.dispatchEvent(b), b.defaultPrevented || ue(
|
|
980
|
+
const b = new CustomEvent(St, Rn);
|
|
981
|
+
i.addEventListener(St, f), i.dispatchEvent(b), b.defaultPrevented || ue(h ?? document.body, { select: !0 }), i.removeEventListener(St, f), Tn.remove(g);
|
|
982
982
|
}, 0);
|
|
983
983
|
};
|
|
984
984
|
}
|
|
985
|
-
}, [i, l, f,
|
|
985
|
+
}, [i, l, f, g]);
|
|
986
986
|
const v = m.useCallback(
|
|
987
|
-
(
|
|
988
|
-
if (!n && !r ||
|
|
989
|
-
const x =
|
|
987
|
+
(h) => {
|
|
988
|
+
if (!n && !r || g.paused) return;
|
|
989
|
+
const x = h.key === "Tab" && !h.altKey && !h.ctrlKey && !h.metaKey, b = document.activeElement;
|
|
990
990
|
if (x && b) {
|
|
991
|
-
const S =
|
|
992
|
-
E && w ? !
|
|
991
|
+
const S = h.currentTarget, [E, w] = qs(S);
|
|
992
|
+
E && w ? !h.shiftKey && b === w ? (h.preventDefault(), n && ue(E, { select: !0 })) : h.shiftKey && b === E && (h.preventDefault(), n && ue(w, { select: !0 })) : b === S && h.preventDefault();
|
|
993
993
|
}
|
|
994
994
|
},
|
|
995
|
-
[n, r,
|
|
995
|
+
[n, r, g.paused]
|
|
996
996
|
);
|
|
997
|
-
return /* @__PURE__ */ c.jsx(ce.div, { tabIndex: -1, ...a, ref:
|
|
997
|
+
return /* @__PURE__ */ c.jsx(ce.div, { tabIndex: -1, ...a, ref: p, onKeyDown: v });
|
|
998
998
|
});
|
|
999
|
-
Rr.displayName =
|
|
1000
|
-
function
|
|
999
|
+
Rr.displayName = Zs;
|
|
1000
|
+
function Xs(e, { select: t = !1 } = {}) {
|
|
1001
1001
|
const n = document.activeElement;
|
|
1002
1002
|
for (const r of e)
|
|
1003
1003
|
if (ue(r, { select: t }), document.activeElement !== n) return;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1006
|
-
const t = Or(e), n =
|
|
1005
|
+
function qs(e) {
|
|
1006
|
+
const t = Or(e), n = On(t, e), r = On(t.reverse(), e);
|
|
1007
1007
|
return [n, r];
|
|
1008
1008
|
}
|
|
1009
1009
|
function Or(e) {
|
|
@@ -1016,11 +1016,11 @@ function Or(e) {
|
|
|
1016
1016
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
1017
1017
|
return t;
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function On(e, t) {
|
|
1020
1020
|
for (const n of e)
|
|
1021
|
-
if (!
|
|
1021
|
+
if (!Js(n, { upTo: t })) return n;
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function Js(e, { upTo: t }) {
|
|
1024
1024
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
1025
1025
|
for (; e; ) {
|
|
1026
1026
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -1029,57 +1029,57 @@ function Ks(e, { upTo: t }) {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
return !1;
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function Ks(e) {
|
|
1033
1033
|
return e instanceof HTMLInputElement && "select" in e;
|
|
1034
1034
|
}
|
|
1035
1035
|
function ue(e, { select: t = !1 } = {}) {
|
|
1036
1036
|
if (e && e.focus) {
|
|
1037
1037
|
const n = document.activeElement;
|
|
1038
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
1038
|
+
e.focus({ preventScroll: !0 }), e !== n && Ks(e) && t && e.select();
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
var
|
|
1042
|
-
function
|
|
1041
|
+
var Tn = Qs();
|
|
1042
|
+
function Qs() {
|
|
1043
1043
|
let e = [];
|
|
1044
1044
|
return {
|
|
1045
1045
|
add(t) {
|
|
1046
1046
|
const n = e[0];
|
|
1047
|
-
t !== n && n?.pause(), e =
|
|
1047
|
+
t !== n && n?.pause(), e = kn(e, t), e.unshift(t);
|
|
1048
1048
|
},
|
|
1049
1049
|
remove(t) {
|
|
1050
|
-
e =
|
|
1050
|
+
e = kn(e, t), e[0]?.resume();
|
|
1051
1051
|
}
|
|
1052
1052
|
};
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function kn(e, t) {
|
|
1055
1055
|
const n = [...e], r = n.indexOf(t);
|
|
1056
1056
|
return r !== -1 && n.splice(r, 1), n;
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function ea(e) {
|
|
1059
1059
|
return e.filter((t) => t.tagName !== "A");
|
|
1060
1060
|
}
|
|
1061
1061
|
var me = globalThis?.document ? m.useLayoutEffect : () => {
|
|
1062
|
-
},
|
|
1063
|
-
}),
|
|
1064
|
-
function
|
|
1065
|
-
const [t, n] = m.useState(
|
|
1062
|
+
}, ta = m[" useId ".trim().toString()] || (() => {
|
|
1063
|
+
}), na = 0;
|
|
1064
|
+
function ra(e) {
|
|
1065
|
+
const [t, n] = m.useState(ta());
|
|
1066
1066
|
return me(() => {
|
|
1067
|
-
n((r) => r ?? String(
|
|
1067
|
+
n((r) => r ?? String(na++));
|
|
1068
1068
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
1069
1069
|
}
|
|
1070
|
-
const
|
|
1070
|
+
const oa = ["top", "right", "bottom", "left"], pe = Math.min, X = Math.max, lt = Math.round, Je = Math.floor, ne = (e) => ({
|
|
1071
1071
|
x: e,
|
|
1072
1072
|
y: e
|
|
1073
|
-
}),
|
|
1073
|
+
}), sa = {
|
|
1074
1074
|
left: "right",
|
|
1075
1075
|
right: "left",
|
|
1076
1076
|
bottom: "top",
|
|
1077
1077
|
top: "bottom"
|
|
1078
|
-
},
|
|
1078
|
+
}, aa = {
|
|
1079
1079
|
start: "end",
|
|
1080
1080
|
end: "start"
|
|
1081
1081
|
};
|
|
1082
|
-
function
|
|
1082
|
+
function Lt(e, t, n) {
|
|
1083
1083
|
return X(e, pe(t, n));
|
|
1084
1084
|
}
|
|
1085
1085
|
function ae(e, t) {
|
|
@@ -1091,32 +1091,32 @@ function ie(e) {
|
|
|
1091
1091
|
function Fe(e) {
|
|
1092
1092
|
return e.split("-")[1];
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function tn(e) {
|
|
1095
1095
|
return e === "x" ? "y" : "x";
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function nn(e) {
|
|
1098
1098
|
return e === "y" ? "height" : "width";
|
|
1099
1099
|
}
|
|
1100
1100
|
function he(e) {
|
|
1101
1101
|
return ["top", "bottom"].includes(ie(e)) ? "y" : "x";
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1104
|
-
return
|
|
1103
|
+
function rn(e) {
|
|
1104
|
+
return tn(he(e));
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function ia(e, t, n) {
|
|
1107
1107
|
n === void 0 && (n = !1);
|
|
1108
|
-
const r = Fe(e), o =
|
|
1108
|
+
const r = Fe(e), o = rn(e), s = nn(o);
|
|
1109
1109
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
1110
1110
|
return t.reference[s] > t.floating[s] && (a = ut(a)), [a, ut(a)];
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function ca(e) {
|
|
1113
1113
|
const t = ut(e);
|
|
1114
|
-
return [
|
|
1114
|
+
return [It(e), t, It(t)];
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1117
|
-
return e.replace(/start|end/g, (t) =>
|
|
1116
|
+
function It(e) {
|
|
1117
|
+
return e.replace(/start|end/g, (t) => aa[t]);
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function la(e, t, n) {
|
|
1120
1120
|
const r = ["left", "right"], o = ["right", "left"], s = ["top", "bottom"], a = ["bottom", "top"];
|
|
1121
1121
|
switch (e) {
|
|
1122
1122
|
case "top":
|
|
@@ -1129,15 +1129,15 @@ function ua(e, t, n) {
|
|
|
1129
1129
|
return [];
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function ua(e, t, n, r) {
|
|
1133
1133
|
const o = Fe(e);
|
|
1134
|
-
let s =
|
|
1135
|
-
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(
|
|
1134
|
+
let s = la(ie(e), n === "start", r);
|
|
1135
|
+
return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(It)))), s;
|
|
1136
1136
|
}
|
|
1137
1137
|
function ut(e) {
|
|
1138
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1138
|
+
return e.replace(/left|right|bottom|top/g, (t) => sa[t]);
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function fa(e) {
|
|
1141
1141
|
return {
|
|
1142
1142
|
top: 0,
|
|
1143
1143
|
right: 0,
|
|
@@ -1147,7 +1147,7 @@ function da(e) {
|
|
|
1147
1147
|
};
|
|
1148
1148
|
}
|
|
1149
1149
|
function Tr(e) {
|
|
1150
|
-
return typeof e != "number" ?
|
|
1150
|
+
return typeof e != "number" ? fa(e) : {
|
|
1151
1151
|
top: e,
|
|
1152
1152
|
right: e,
|
|
1153
1153
|
bottom: e,
|
|
@@ -1172,55 +1172,55 @@ function ft(e) {
|
|
|
1172
1172
|
y: n
|
|
1173
1173
|
};
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function Mn(e, t, n) {
|
|
1176
1176
|
let {
|
|
1177
1177
|
reference: r,
|
|
1178
1178
|
floating: o
|
|
1179
1179
|
} = e;
|
|
1180
|
-
const s = he(t), a =
|
|
1181
|
-
let
|
|
1180
|
+
const s = he(t), a = rn(t), i = nn(a), u = ie(t), l = s === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, p = r[i] / 2 - o[i] / 2;
|
|
1181
|
+
let g;
|
|
1182
1182
|
switch (u) {
|
|
1183
1183
|
case "top":
|
|
1184
|
-
|
|
1184
|
+
g = {
|
|
1185
1185
|
x: f,
|
|
1186
1186
|
y: r.y - o.height
|
|
1187
1187
|
};
|
|
1188
1188
|
break;
|
|
1189
1189
|
case "bottom":
|
|
1190
|
-
|
|
1190
|
+
g = {
|
|
1191
1191
|
x: f,
|
|
1192
1192
|
y: r.y + r.height
|
|
1193
1193
|
};
|
|
1194
1194
|
break;
|
|
1195
1195
|
case "right":
|
|
1196
|
-
|
|
1196
|
+
g = {
|
|
1197
1197
|
x: r.x + r.width,
|
|
1198
1198
|
y: d
|
|
1199
1199
|
};
|
|
1200
1200
|
break;
|
|
1201
1201
|
case "left":
|
|
1202
|
-
|
|
1202
|
+
g = {
|
|
1203
1203
|
x: r.x - o.width,
|
|
1204
1204
|
y: d
|
|
1205
1205
|
};
|
|
1206
1206
|
break;
|
|
1207
1207
|
default:
|
|
1208
|
-
|
|
1208
|
+
g = {
|
|
1209
1209
|
x: r.x,
|
|
1210
1210
|
y: r.y
|
|
1211
1211
|
};
|
|
1212
1212
|
}
|
|
1213
1213
|
switch (Fe(t)) {
|
|
1214
1214
|
case "start":
|
|
1215
|
-
|
|
1215
|
+
g[a] -= p * (n && l ? -1 : 1);
|
|
1216
1216
|
break;
|
|
1217
1217
|
case "end":
|
|
1218
|
-
|
|
1218
|
+
g[a] += p * (n && l ? -1 : 1);
|
|
1219
1219
|
break;
|
|
1220
1220
|
}
|
|
1221
|
-
return
|
|
1221
|
+
return g;
|
|
1222
1222
|
}
|
|
1223
|
-
const
|
|
1223
|
+
const da = async (e, t, n) => {
|
|
1224
1224
|
const {
|
|
1225
1225
|
placement: r = "bottom",
|
|
1226
1226
|
strategy: o = "absolute",
|
|
@@ -1234,12 +1234,12 @@ const ma = async (e, t, n) => {
|
|
|
1234
1234
|
}), {
|
|
1235
1235
|
x: f,
|
|
1236
1236
|
y: d
|
|
1237
|
-
} =
|
|
1238
|
-
for (let
|
|
1237
|
+
} = Mn(l, r, u), p = r, g = {}, v = 0;
|
|
1238
|
+
for (let h = 0; h < i.length; h++) {
|
|
1239
1239
|
const {
|
|
1240
1240
|
name: x,
|
|
1241
1241
|
fn: b
|
|
1242
|
-
} = i[
|
|
1242
|
+
} = i[h], {
|
|
1243
1243
|
x: S,
|
|
1244
1244
|
y: E,
|
|
1245
1245
|
data: w,
|
|
@@ -1248,9 +1248,9 @@ const ma = async (e, t, n) => {
|
|
|
1248
1248
|
x: f,
|
|
1249
1249
|
y: d,
|
|
1250
1250
|
initialPlacement: r,
|
|
1251
|
-
placement:
|
|
1251
|
+
placement: p,
|
|
1252
1252
|
strategy: o,
|
|
1253
|
-
middlewareData:
|
|
1253
|
+
middlewareData: g,
|
|
1254
1254
|
rects: l,
|
|
1255
1255
|
platform: a,
|
|
1256
1256
|
elements: {
|
|
@@ -1258,27 +1258,27 @@ const ma = async (e, t, n) => {
|
|
|
1258
1258
|
floating: t
|
|
1259
1259
|
}
|
|
1260
1260
|
});
|
|
1261
|
-
f = S ?? f, d = E ?? d,
|
|
1262
|
-
...
|
|
1261
|
+
f = S ?? f, d = E ?? d, g = {
|
|
1262
|
+
...g,
|
|
1263
1263
|
[x]: {
|
|
1264
|
-
...
|
|
1264
|
+
...g[x],
|
|
1265
1265
|
...w
|
|
1266
1266
|
}
|
|
1267
|
-
}, j && v <= 50 && (v++, typeof j == "object" && (j.placement && (
|
|
1267
|
+
}, j && v <= 50 && (v++, typeof j == "object" && (j.placement && (p = j.placement), j.rects && (l = j.rects === !0 ? await a.getElementRects({
|
|
1268
1268
|
reference: e,
|
|
1269
1269
|
floating: t,
|
|
1270
1270
|
strategy: o
|
|
1271
1271
|
}) : j.rects), {
|
|
1272
1272
|
x: f,
|
|
1273
1273
|
y: d
|
|
1274
|
-
} =
|
|
1274
|
+
} = Mn(l, p, u)), h = -1);
|
|
1275
1275
|
}
|
|
1276
1276
|
return {
|
|
1277
1277
|
x: f,
|
|
1278
1278
|
y: d,
|
|
1279
|
-
placement:
|
|
1279
|
+
placement: p,
|
|
1280
1280
|
strategy: o,
|
|
1281
|
-
middlewareData:
|
|
1281
|
+
middlewareData: g
|
|
1282
1282
|
};
|
|
1283
1283
|
};
|
|
1284
1284
|
async function Ue(e, t) {
|
|
@@ -1295,9 +1295,9 @@ async function Ue(e, t) {
|
|
|
1295
1295
|
boundary: l = "clippingAncestors",
|
|
1296
1296
|
rootBoundary: f = "viewport",
|
|
1297
1297
|
elementContext: d = "floating",
|
|
1298
|
-
altBoundary:
|
|
1299
|
-
padding:
|
|
1300
|
-
} = ae(t, e), v = Tr(
|
|
1298
|
+
altBoundary: p = !1,
|
|
1299
|
+
padding: g = 0
|
|
1300
|
+
} = ae(t, e), v = Tr(g), x = i[p ? d === "floating" ? "reference" : "floating" : d], b = ft(await s.getClippingRect({
|
|
1301
1301
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(x))) == null || n ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
|
|
1302
1302
|
boundary: l,
|
|
1303
1303
|
rootBoundary: f,
|
|
@@ -1326,7 +1326,7 @@ async function Ue(e, t) {
|
|
|
1326
1326
|
right: (j.right - b.right + v.right) / w.x
|
|
1327
1327
|
};
|
|
1328
1328
|
}
|
|
1329
|
-
const
|
|
1329
|
+
const ma = (e) => ({
|
|
1330
1330
|
name: "arrow",
|
|
1331
1331
|
options: e,
|
|
1332
1332
|
async fn(t) {
|
|
@@ -1344,17 +1344,17 @@ const pa = (e) => ({
|
|
|
1344
1344
|
} = ae(e, t) || {};
|
|
1345
1345
|
if (l == null)
|
|
1346
1346
|
return {};
|
|
1347
|
-
const d = Tr(f),
|
|
1347
|
+
const d = Tr(f), p = {
|
|
1348
1348
|
x: n,
|
|
1349
1349
|
y: r
|
|
1350
|
-
},
|
|
1350
|
+
}, g = rn(o), v = nn(g), h = await a.getDimensions(l), x = g === "y", b = x ? "top" : "left", S = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[g] - p[g] - s.floating[v], j = p[g] - s.reference[g], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
|
|
1351
1351
|
let C = A ? A[E] : 0;
|
|
1352
1352
|
(!C || !await (a.isElement == null ? void 0 : a.isElement(A))) && (C = i.floating[E] || s.floating[v]);
|
|
1353
|
-
const T = w / 2 - j / 2, k = C / 2 -
|
|
1353
|
+
const T = w / 2 - j / 2, k = C / 2 - h[v] / 2 - 1, L = pe(d[b], k), W = pe(d[S], k), H = L, I = C - h[v] - W, M = C / 2 - h[v] / 2 + T, _ = Lt(H, M, I), D = !u.arrow && Fe(o) != null && M !== _ && s.reference[v] / 2 - (M < H ? L : W) - h[v] / 2 < 0, O = D ? M < H ? M - H : M - I : 0;
|
|
1354
1354
|
return {
|
|
1355
|
-
[
|
|
1355
|
+
[g]: p[g] + O,
|
|
1356
1356
|
data: {
|
|
1357
|
-
[
|
|
1357
|
+
[g]: _,
|
|
1358
1358
|
centerOffset: M - _ - O,
|
|
1359
1359
|
...D && {
|
|
1360
1360
|
alignmentOffset: O
|
|
@@ -1363,7 +1363,7 @@ const pa = (e) => ({
|
|
|
1363
1363
|
reset: D
|
|
1364
1364
|
};
|
|
1365
1365
|
}
|
|
1366
|
-
}),
|
|
1366
|
+
}), pa = function(e) {
|
|
1367
1367
|
return e === void 0 && (e = {}), {
|
|
1368
1368
|
name: "flip",
|
|
1369
1369
|
options: e,
|
|
@@ -1379,20 +1379,20 @@ const pa = (e) => ({
|
|
|
1379
1379
|
} = t, {
|
|
1380
1380
|
mainAxis: f = !0,
|
|
1381
1381
|
crossAxis: d = !0,
|
|
1382
|
-
fallbackPlacements:
|
|
1383
|
-
fallbackStrategy:
|
|
1382
|
+
fallbackPlacements: p,
|
|
1383
|
+
fallbackStrategy: g = "bestFit",
|
|
1384
1384
|
fallbackAxisSideDirection: v = "none",
|
|
1385
|
-
flipAlignment:
|
|
1385
|
+
flipAlignment: h = !0,
|
|
1386
1386
|
...x
|
|
1387
1387
|
} = ae(e, t);
|
|
1388
1388
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
1389
1389
|
return {};
|
|
1390
|
-
const b = ie(o), S = he(i), E = ie(i) === i, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), j =
|
|
1391
|
-
!
|
|
1390
|
+
const b = ie(o), S = he(i), E = ie(i) === i, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), j = p || (E || !h ? [ut(i)] : ca(i)), A = v !== "none";
|
|
1391
|
+
!p && A && j.push(...ua(i, h, v, w));
|
|
1392
1392
|
const C = [i, ...j], T = await Ue(t, x), k = [];
|
|
1393
1393
|
let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
1394
1394
|
if (f && k.push(T[b]), d) {
|
|
1395
|
-
const M =
|
|
1395
|
+
const M = ia(o, a, w);
|
|
1396
1396
|
k.push(T[M[0]], T[M[1]]);
|
|
1397
1397
|
}
|
|
1398
1398
|
if (L = [...L, {
|
|
@@ -1413,7 +1413,7 @@ const pa = (e) => ({
|
|
|
1413
1413
|
};
|
|
1414
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;
|
|
1415
1415
|
if (!D)
|
|
1416
|
-
switch (
|
|
1416
|
+
switch (g) {
|
|
1417
1417
|
case "bestFit": {
|
|
1418
1418
|
var I;
|
|
1419
1419
|
const O = (I = L.filter((R) => {
|
|
@@ -1443,7 +1443,7 @@ const pa = (e) => ({
|
|
|
1443
1443
|
}
|
|
1444
1444
|
};
|
|
1445
1445
|
};
|
|
1446
|
-
function
|
|
1446
|
+
function _n(e, t) {
|
|
1447
1447
|
return {
|
|
1448
1448
|
top: e.top - t.height,
|
|
1449
1449
|
right: e.right - t.width,
|
|
@@ -1451,10 +1451,10 @@ function Mn(e, t) {
|
|
|
1451
1451
|
left: e.left - t.width
|
|
1452
1452
|
};
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1455
|
-
return
|
|
1454
|
+
function Dn(e) {
|
|
1455
|
+
return oa.some((t) => e[t] >= 0);
|
|
1456
1456
|
}
|
|
1457
|
-
const
|
|
1457
|
+
const ha = function(e) {
|
|
1458
1458
|
return e === void 0 && (e = {}), {
|
|
1459
1459
|
name: "hide",
|
|
1460
1460
|
options: e,
|
|
@@ -1470,11 +1470,11 @@ const ga = function(e) {
|
|
|
1470
1470
|
const s = await Ue(t, {
|
|
1471
1471
|
...o,
|
|
1472
1472
|
elementContext: "reference"
|
|
1473
|
-
}), a =
|
|
1473
|
+
}), a = _n(s, n.reference);
|
|
1474
1474
|
return {
|
|
1475
1475
|
data: {
|
|
1476
1476
|
referenceHiddenOffsets: a,
|
|
1477
|
-
referenceHidden:
|
|
1477
|
+
referenceHidden: Dn(a)
|
|
1478
1478
|
}
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
@@ -1482,11 +1482,11 @@ const ga = function(e) {
|
|
|
1482
1482
|
const s = await Ue(t, {
|
|
1483
1483
|
...o,
|
|
1484
1484
|
altBoundary: !0
|
|
1485
|
-
}), a =
|
|
1485
|
+
}), a = _n(s, n.floating);
|
|
1486
1486
|
return {
|
|
1487
1487
|
data: {
|
|
1488
1488
|
escapedOffsets: a,
|
|
1489
|
-
escaped:
|
|
1489
|
+
escaped: Dn(a)
|
|
1490
1490
|
}
|
|
1491
1491
|
};
|
|
1492
1492
|
}
|
|
@@ -1496,15 +1496,15 @@ const ga = function(e) {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
};
|
|
1498
1498
|
};
|
|
1499
|
-
async function
|
|
1499
|
+
async function ga(e, t) {
|
|
1500
1500
|
const {
|
|
1501
1501
|
placement: n,
|
|
1502
1502
|
platform: r,
|
|
1503
1503
|
elements: o
|
|
1504
1504
|
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = ie(n), i = Fe(n), u = he(n) === "y", l = ["left", "top"].includes(a) ? -1 : 1, f = s && u ? -1 : 1, d = ae(t, e);
|
|
1505
1505
|
let {
|
|
1506
|
-
mainAxis:
|
|
1507
|
-
crossAxis:
|
|
1506
|
+
mainAxis: p,
|
|
1507
|
+
crossAxis: g,
|
|
1508
1508
|
alignmentAxis: v
|
|
1509
1509
|
} = typeof d == "number" ? {
|
|
1510
1510
|
mainAxis: d,
|
|
@@ -1515,15 +1515,15 @@ async function va(e, t) {
|
|
|
1515
1515
|
crossAxis: d.crossAxis || 0,
|
|
1516
1516
|
alignmentAxis: d.alignmentAxis
|
|
1517
1517
|
};
|
|
1518
|
-
return i && typeof v == "number" && (
|
|
1519
|
-
x:
|
|
1520
|
-
y:
|
|
1518
|
+
return i && typeof v == "number" && (g = i === "end" ? v * -1 : v), u ? {
|
|
1519
|
+
x: g * f,
|
|
1520
|
+
y: p * l
|
|
1521
1521
|
} : {
|
|
1522
|
-
x:
|
|
1523
|
-
y:
|
|
1522
|
+
x: p * l,
|
|
1523
|
+
y: g * f
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
const
|
|
1526
|
+
const va = function(e) {
|
|
1527
1527
|
return e === void 0 && (e = 0), {
|
|
1528
1528
|
name: "offset",
|
|
1529
1529
|
options: e,
|
|
@@ -1534,7 +1534,7 @@ const ya = function(e) {
|
|
|
1534
1534
|
y: s,
|
|
1535
1535
|
placement: a,
|
|
1536
1536
|
middlewareData: i
|
|
1537
|
-
} = t, u = await
|
|
1537
|
+
} = t, u = await ga(t, e);
|
|
1538
1538
|
return a === ((n = i.offset) == null ? void 0 : n.placement) && (r = i.arrow) != null && r.alignmentOffset ? {} : {
|
|
1539
1539
|
x: o + u.x,
|
|
1540
1540
|
y: s + u.y,
|
|
@@ -1545,7 +1545,7 @@ const ya = function(e) {
|
|
|
1545
1545
|
};
|
|
1546
1546
|
}
|
|
1547
1547
|
};
|
|
1548
|
-
},
|
|
1548
|
+
}, ya = function(e) {
|
|
1549
1549
|
return e === void 0 && (e = {}), {
|
|
1550
1550
|
name: "shift",
|
|
1551
1551
|
options: e,
|
|
@@ -1573,35 +1573,35 @@ const ya = function(e) {
|
|
|
1573
1573
|
} = ae(e, t), l = {
|
|
1574
1574
|
x: n,
|
|
1575
1575
|
y: r
|
|
1576
|
-
}, f = await Ue(t, u), d = he(ie(o)),
|
|
1577
|
-
let
|
|
1576
|
+
}, f = await Ue(t, u), d = he(ie(o)), p = tn(d);
|
|
1577
|
+
let g = l[p], v = l[d];
|
|
1578
1578
|
if (s) {
|
|
1579
|
-
const x =
|
|
1580
|
-
|
|
1579
|
+
const x = p === "y" ? "top" : "left", b = p === "y" ? "bottom" : "right", S = g + f[x], E = g - f[b];
|
|
1580
|
+
g = Lt(S, g, E);
|
|
1581
1581
|
}
|
|
1582
1582
|
if (a) {
|
|
1583
1583
|
const x = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", S = v + f[x], E = v - f[b];
|
|
1584
|
-
v =
|
|
1584
|
+
v = Lt(S, v, E);
|
|
1585
1585
|
}
|
|
1586
|
-
const
|
|
1586
|
+
const h = i.fn({
|
|
1587
1587
|
...t,
|
|
1588
|
-
[
|
|
1588
|
+
[p]: g,
|
|
1589
1589
|
[d]: v
|
|
1590
1590
|
});
|
|
1591
1591
|
return {
|
|
1592
|
-
...
|
|
1592
|
+
...h,
|
|
1593
1593
|
data: {
|
|
1594
|
-
x:
|
|
1595
|
-
y:
|
|
1594
|
+
x: h.x - n,
|
|
1595
|
+
y: h.y - r,
|
|
1596
1596
|
enabled: {
|
|
1597
|
-
[
|
|
1597
|
+
[p]: s,
|
|
1598
1598
|
[d]: a
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
1601
|
};
|
|
1602
1602
|
}
|
|
1603
1603
|
};
|
|
1604
|
-
},
|
|
1604
|
+
}, xa = function(e) {
|
|
1605
1605
|
return e === void 0 && (e = {}), {
|
|
1606
1606
|
options: e,
|
|
1607
1607
|
fn(t) {
|
|
@@ -1618,32 +1618,32 @@ const ya = function(e) {
|
|
|
1618
1618
|
} = ae(e, t), f = {
|
|
1619
1619
|
x: n,
|
|
1620
1620
|
y: r
|
|
1621
|
-
}, d = he(o),
|
|
1622
|
-
let
|
|
1623
|
-
const
|
|
1624
|
-
mainAxis:
|
|
1621
|
+
}, d = he(o), p = tn(d);
|
|
1622
|
+
let g = f[p], v = f[d];
|
|
1623
|
+
const h = ae(i, t), x = typeof h == "number" ? {
|
|
1624
|
+
mainAxis: h,
|
|
1625
1625
|
crossAxis: 0
|
|
1626
1626
|
} : {
|
|
1627
1627
|
mainAxis: 0,
|
|
1628
1628
|
crossAxis: 0,
|
|
1629
|
-
...
|
|
1629
|
+
...h
|
|
1630
1630
|
};
|
|
1631
1631
|
if (u) {
|
|
1632
|
-
const E =
|
|
1633
|
-
|
|
1632
|
+
const E = p === "y" ? "height" : "width", w = s.reference[p] - s.floating[E] + x.mainAxis, j = s.reference[p] + s.reference[E] - x.mainAxis;
|
|
1633
|
+
g < w ? g = w : g > j && (g = j);
|
|
1634
1634
|
}
|
|
1635
1635
|
if (l) {
|
|
1636
1636
|
var b, S;
|
|
1637
|
-
const E =
|
|
1637
|
+
const E = p === "y" ? "width" : "height", w = ["top", "left"].includes(ie(o)), j = s.reference[d] - s.floating[E] + (w && ((b = a.offset) == null ? void 0 : b[d]) || 0) + (w ? 0 : x.crossAxis), A = s.reference[d] + s.reference[E] + (w ? 0 : ((S = a.offset) == null ? void 0 : S[d]) || 0) - (w ? x.crossAxis : 0);
|
|
1638
1638
|
v < j ? v = j : v > A && (v = A);
|
|
1639
1639
|
}
|
|
1640
1640
|
return {
|
|
1641
|
-
[
|
|
1641
|
+
[p]: g,
|
|
1642
1642
|
[d]: v
|
|
1643
1643
|
};
|
|
1644
1644
|
}
|
|
1645
1645
|
};
|
|
1646
|
-
},
|
|
1646
|
+
}, ba = function(e) {
|
|
1647
1647
|
return e === void 0 && (e = {}), {
|
|
1648
1648
|
name: "size",
|
|
1649
1649
|
options: e,
|
|
@@ -1658,17 +1658,17 @@ const ya = function(e) {
|
|
|
1658
1658
|
apply: u = () => {
|
|
1659
1659
|
},
|
|
1660
1660
|
...l
|
|
1661
|
-
} = ae(e, t), f = await Ue(t, l), d = ie(o),
|
|
1661
|
+
} = ae(e, t), f = await Ue(t, l), d = ie(o), p = Fe(o), g = he(o) === "y", {
|
|
1662
1662
|
width: v,
|
|
1663
|
-
height:
|
|
1663
|
+
height: h
|
|
1664
1664
|
} = s.floating;
|
|
1665
1665
|
let x, b;
|
|
1666
|
-
d === "top" || d === "bottom" ? (x = d, b =
|
|
1667
|
-
const S =
|
|
1666
|
+
d === "top" || d === "bottom" ? (x = d, b = p === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (b = d, x = p === "end" ? "top" : "bottom");
|
|
1667
|
+
const S = h - f.top - f.bottom, E = v - f.left - f.right, w = pe(h - f[x], S), j = pe(v - f[b], E), A = !t.middlewareData.shift;
|
|
1668
1668
|
let C = w, T = j;
|
|
1669
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = E), (r = t.middlewareData.shift) != null && r.enabled.y && (C = S), A && !
|
|
1669
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = E), (r = t.middlewareData.shift) != null && r.enabled.y && (C = S), A && !p) {
|
|
1670
1670
|
const L = X(f.left, 0), W = X(f.right, 0), H = X(f.top, 0), I = X(f.bottom, 0);
|
|
1671
|
-
|
|
1671
|
+
g ? T = v - 2 * (L !== 0 || W !== 0 ? L + W : X(f.left, f.right)) : C = h - 2 * (H !== 0 || I !== 0 ? H + I : X(f.top, f.bottom));
|
|
1672
1672
|
}
|
|
1673
1673
|
await u({
|
|
1674
1674
|
...t,
|
|
@@ -1676,7 +1676,7 @@ const ya = function(e) {
|
|
|
1676
1676
|
availableHeight: C
|
|
1677
1677
|
});
|
|
1678
1678
|
const k = await a.getDimensions(i.floating);
|
|
1679
|
-
return v !== k.width ||
|
|
1679
|
+
return v !== k.width || h !== k.height ? {
|
|
1680
1680
|
reset: {
|
|
1681
1681
|
rects: !0
|
|
1682
1682
|
}
|
|
@@ -1707,7 +1707,7 @@ function Q(e) {
|
|
|
1707
1707
|
function re(e) {
|
|
1708
1708
|
return pt() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function Fn(e) {
|
|
1711
1711
|
return !pt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
|
|
1712
1712
|
}
|
|
1713
1713
|
function Ge(e) {
|
|
@@ -1719,7 +1719,7 @@ function Ge(e) {
|
|
|
1719
1719
|
} = ee(e);
|
|
1720
1720
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function wa(e) {
|
|
1723
1723
|
return ["table", "td", "th"].includes(Le(e));
|
|
1724
1724
|
}
|
|
1725
1725
|
function ht(e) {
|
|
@@ -1731,14 +1731,14 @@ function ht(e) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
});
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1735
|
-
const t =
|
|
1734
|
+
function on(e) {
|
|
1735
|
+
const t = sn(), n = Q(e) ? ee(e) : e;
|
|
1736
1736
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function ja(e) {
|
|
1739
1739
|
let t = ge(e);
|
|
1740
1740
|
for (; re(t) && !ke(t); ) {
|
|
1741
|
-
if (
|
|
1741
|
+
if (on(t))
|
|
1742
1742
|
return t;
|
|
1743
1743
|
if (ht(t))
|
|
1744
1744
|
return null;
|
|
@@ -1746,7 +1746,7 @@ function Ca(e) {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
return null;
|
|
1748
1748
|
}
|
|
1749
|
-
function
|
|
1749
|
+
function sn() {
|
|
1750
1750
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1751
1751
|
}
|
|
1752
1752
|
function ke(e) {
|
|
@@ -1771,10 +1771,10 @@ function ge(e) {
|
|
|
1771
1771
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1772
1772
|
e.assignedSlot || // DOM Element detected.
|
|
1773
1773
|
e.parentNode || // ShadowRoot detected.
|
|
1774
|
-
|
|
1774
|
+
Fn(e) && e.host || // Fallback.
|
|
1775
1775
|
oe(e)
|
|
1776
1776
|
);
|
|
1777
|
-
return
|
|
1777
|
+
return Fn(t) ? t.host : t;
|
|
1778
1778
|
}
|
|
1779
1779
|
function Mr(e) {
|
|
1780
1780
|
const t = ge(e);
|
|
@@ -1785,12 +1785,12 @@ function Ye(e, t, n) {
|
|
|
1785
1785
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
1786
1786
|
const o = Mr(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = q(o);
|
|
1787
1787
|
if (s) {
|
|
1788
|
-
const i =
|
|
1788
|
+
const i = $t(a);
|
|
1789
1789
|
return t.concat(a, a.visualViewport || [], Ge(o) ? o : [], i && n ? Ye(i) : []);
|
|
1790
1790
|
}
|
|
1791
1791
|
return t.concat(o, Ye(o, [], n));
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1793
|
+
function $t(e) {
|
|
1794
1794
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1795
1795
|
}
|
|
1796
1796
|
function _r(e) {
|
|
@@ -1803,11 +1803,11 @@ function _r(e) {
|
|
|
1803
1803
|
$: i
|
|
1804
1804
|
};
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1806
|
+
function an(e) {
|
|
1807
1807
|
return Q(e) ? e : e.contextElement;
|
|
1808
1808
|
}
|
|
1809
1809
|
function Ne(e) {
|
|
1810
|
-
const t =
|
|
1810
|
+
const t = an(e);
|
|
1811
1811
|
if (!re(t))
|
|
1812
1812
|
return ne(1);
|
|
1813
1813
|
const n = t.getBoundingClientRect(), {
|
|
@@ -1821,30 +1821,30 @@ function Ne(e) {
|
|
|
1821
1821
|
y: i
|
|
1822
1822
|
};
|
|
1823
1823
|
}
|
|
1824
|
-
const
|
|
1824
|
+
const Ca = /* @__PURE__ */ ne(0);
|
|
1825
1825
|
function Dr(e) {
|
|
1826
1826
|
const t = q(e);
|
|
1827
|
-
return !
|
|
1827
|
+
return !sn() || !t.visualViewport ? Ca : {
|
|
1828
1828
|
x: t.visualViewport.offsetLeft,
|
|
1829
1829
|
y: t.visualViewport.offsetTop
|
|
1830
1830
|
};
|
|
1831
1831
|
}
|
|
1832
|
-
function
|
|
1832
|
+
function Ea(e, t, n) {
|
|
1833
1833
|
return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
|
|
1834
1834
|
}
|
|
1835
1835
|
function je(e, t, n, r) {
|
|
1836
1836
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
1837
|
-
const o = e.getBoundingClientRect(), s =
|
|
1837
|
+
const o = e.getBoundingClientRect(), s = an(e);
|
|
1838
1838
|
let a = ne(1);
|
|
1839
1839
|
t && (r ? Q(r) && (a = Ne(r)) : a = Ne(e));
|
|
1840
|
-
const i =
|
|
1840
|
+
const i = Ea(s, n, r) ? Dr(s) : ne(0);
|
|
1841
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;
|
|
1842
1842
|
if (s) {
|
|
1843
|
-
const
|
|
1844
|
-
let v =
|
|
1845
|
-
for (;
|
|
1846
|
-
const x = Ne(
|
|
1847
|
-
u *= x.x, l *= x.y, f *= x.x, d *= x.y, u += E, l += w, v = q(
|
|
1843
|
+
const p = q(s), g = r && Q(r) ? q(r) : r;
|
|
1844
|
+
let v = p, h = $t(v);
|
|
1845
|
+
for (; h && r && g !== v; ) {
|
|
1846
|
+
const x = Ne(h), b = h.getBoundingClientRect(), S = ee(h), E = b.left + (h.clientLeft + parseFloat(S.paddingLeft)) * x.x, w = b.top + (h.clientTop + parseFloat(S.paddingTop)) * x.y;
|
|
1847
|
+
u *= x.x, l *= x.y, f *= x.x, d *= x.y, u += E, l += w, v = q(h), h = $t(v);
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
1850
|
return ft({
|
|
@@ -1854,7 +1854,7 @@ function je(e, t, n, r) {
|
|
|
1854
1854
|
y: l
|
|
1855
1855
|
});
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function cn(e, t) {
|
|
1858
1858
|
const n = gt(e).scrollLeft;
|
|
1859
1859
|
return t ? t.left + n : je(oe(e)).left + n;
|
|
1860
1860
|
}
|
|
@@ -1862,14 +1862,14 @@ function Fr(e, t, n) {
|
|
|
1862
1862
|
n === void 0 && (n = !1);
|
|
1863
1863
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
1864
1864
|
// RTL <body> scrollbar.
|
|
1865
|
-
|
|
1865
|
+
cn(e, r)
|
|
1866
1866
|
)), s = r.top + t.scrollTop;
|
|
1867
1867
|
return {
|
|
1868
1868
|
x: o,
|
|
1869
1869
|
y: s
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1872
|
+
function Sa(e) {
|
|
1873
1873
|
let {
|
|
1874
1874
|
elements: t,
|
|
1875
1875
|
rect: n,
|
|
@@ -1885,23 +1885,23 @@ function Aa(e) {
|
|
|
1885
1885
|
}, l = ne(1);
|
|
1886
1886
|
const f = ne(0), d = re(r);
|
|
1887
1887
|
if ((d || !d && !s) && ((Le(r) !== "body" || Ge(a)) && (u = gt(r)), re(r))) {
|
|
1888
|
-
const
|
|
1889
|
-
l = Ne(r), f.x =
|
|
1888
|
+
const g = je(r);
|
|
1889
|
+
l = Ne(r), f.x = g.x + r.clientLeft, f.y = g.y + r.clientTop;
|
|
1890
1890
|
}
|
|
1891
|
-
const
|
|
1891
|
+
const p = a && !d && !s ? Fr(a, u, !0) : ne(0);
|
|
1892
1892
|
return {
|
|
1893
1893
|
width: n.width * l.x,
|
|
1894
1894
|
height: n.height * l.y,
|
|
1895
|
-
x: n.x * l.x - u.scrollLeft * l.x + f.x +
|
|
1896
|
-
y: n.y * l.y - u.scrollTop * l.y + f.y +
|
|
1895
|
+
x: n.x * l.x - u.scrollLeft * l.x + f.x + p.x,
|
|
1896
|
+
y: n.y * l.y - u.scrollTop * l.y + f.y + p.y
|
|
1897
1897
|
};
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function Aa(e) {
|
|
1900
1900
|
return Array.from(e.getClientRects());
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function Pa(e) {
|
|
1903
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);
|
|
1904
|
-
let a = -n.scrollLeft +
|
|
1904
|
+
let a = -n.scrollLeft + cn(e);
|
|
1905
1905
|
const i = -n.scrollTop;
|
|
1906
1906
|
return ee(r).direction === "rtl" && (a += X(t.clientWidth, r.clientWidth) - o), {
|
|
1907
1907
|
width: o,
|
|
@@ -1910,12 +1910,12 @@ function Na(e) {
|
|
|
1910
1910
|
y: i
|
|
1911
1911
|
};
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1913
|
+
function Na(e, t) {
|
|
1914
1914
|
const n = q(e), r = oe(e), o = n.visualViewport;
|
|
1915
1915
|
let s = r.clientWidth, a = r.clientHeight, i = 0, u = 0;
|
|
1916
1916
|
if (o) {
|
|
1917
1917
|
s = o.width, a = o.height;
|
|
1918
|
-
const l =
|
|
1918
|
+
const l = sn();
|
|
1919
1919
|
(!l || l && t === "fixed") && (i = o.offsetLeft, u = o.offsetTop);
|
|
1920
1920
|
}
|
|
1921
1921
|
return {
|
|
@@ -1925,7 +1925,7 @@ function Ra(e, t) {
|
|
|
1925
1925
|
y: u
|
|
1926
1926
|
};
|
|
1927
1927
|
}
|
|
1928
|
-
function
|
|
1928
|
+
function Ra(e, t) {
|
|
1929
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;
|
|
1930
1930
|
return {
|
|
1931
1931
|
width: a,
|
|
@@ -1934,14 +1934,14 @@ function Oa(e, t) {
|
|
|
1934
1934
|
y: l
|
|
1935
1935
|
};
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function Ln(e, t, n) {
|
|
1938
1938
|
let r;
|
|
1939
1939
|
if (t === "viewport")
|
|
1940
|
-
r =
|
|
1940
|
+
r = Na(e, n);
|
|
1941
1941
|
else if (t === "document")
|
|
1942
|
-
r =
|
|
1942
|
+
r = Pa(oe(e));
|
|
1943
1943
|
else if (Q(t))
|
|
1944
|
-
r =
|
|
1944
|
+
r = Ra(t, n);
|
|
1945
1945
|
else {
|
|
1946
1946
|
const o = Dr(e);
|
|
1947
1947
|
r = {
|
|
@@ -1957,7 +1957,7 @@ function Lr(e, t) {
|
|
|
1957
1957
|
const n = ge(e);
|
|
1958
1958
|
return n === t || !Q(n) || ke(n) ? !1 : ee(n).position === "fixed" || Lr(n, t);
|
|
1959
1959
|
}
|
|
1960
|
-
function
|
|
1960
|
+
function Oa(e, t) {
|
|
1961
1961
|
const n = t.get(e);
|
|
1962
1962
|
if (n)
|
|
1963
1963
|
return n;
|
|
@@ -1965,22 +1965,22 @@ function Ta(e, t) {
|
|
|
1965
1965
|
const s = ee(e).position === "fixed";
|
|
1966
1966
|
let a = s ? ge(e) : e;
|
|
1967
1967
|
for (; Q(a) && !ke(a); ) {
|
|
1968
|
-
const i = ee(a), u =
|
|
1968
|
+
const i = ee(a), u = on(a);
|
|
1969
1969
|
!u && i.position === "fixed" && (o = null), (s ? !u && !o : !u && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ge(a) && !u && Lr(e, a)) ? r = r.filter((f) => f !== a) : o = i, a = ge(a);
|
|
1970
1970
|
}
|
|
1971
1971
|
return t.set(e, r), r;
|
|
1972
1972
|
}
|
|
1973
|
-
function
|
|
1973
|
+
function Ta(e) {
|
|
1974
1974
|
let {
|
|
1975
1975
|
element: t,
|
|
1976
1976
|
boundary: n,
|
|
1977
1977
|
rootBoundary: r,
|
|
1978
1978
|
strategy: o
|
|
1979
1979
|
} = e;
|
|
1980
|
-
const a = [...n === "clippingAncestors" ? ht(t) ? [] :
|
|
1981
|
-
const d =
|
|
1980
|
+
const a = [...n === "clippingAncestors" ? ht(t) ? [] : Oa(t, this._c) : [].concat(n), r], i = a[0], u = a.reduce((l, f) => {
|
|
1981
|
+
const d = Ln(t, f, o);
|
|
1982
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;
|
|
1983
|
-
},
|
|
1983
|
+
}, Ln(t, i, o));
|
|
1984
1984
|
return {
|
|
1985
1985
|
width: u.right - u.left,
|
|
1986
1986
|
height: u.bottom - u.top,
|
|
@@ -1988,7 +1988,7 @@ function ka(e) {
|
|
|
1988
1988
|
y: u.top
|
|
1989
1989
|
};
|
|
1990
1990
|
}
|
|
1991
|
-
function
|
|
1991
|
+
function ka(e) {
|
|
1992
1992
|
const {
|
|
1993
1993
|
width: t,
|
|
1994
1994
|
height: n
|
|
@@ -1998,7 +1998,7 @@ function Ma(e) {
|
|
|
1998
1998
|
height: n
|
|
1999
1999
|
};
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function Ma(e, t, n) {
|
|
2002
2002
|
const r = re(t), o = oe(t), s = n === "fixed", a = je(e, !0, s, t);
|
|
2003
2003
|
let i = {
|
|
2004
2004
|
scrollLeft: 0,
|
|
@@ -2007,9 +2007,9 @@ function _a(e, t, n) {
|
|
|
2007
2007
|
const u = ne(0);
|
|
2008
2008
|
if (r || !r && !s)
|
|
2009
2009
|
if ((Le(t) !== "body" || Ge(o)) && (i = gt(t)), r) {
|
|
2010
|
-
const
|
|
2011
|
-
u.x =
|
|
2012
|
-
} else o && (u.x =
|
|
2010
|
+
const p = je(t, !0, s, t);
|
|
2011
|
+
u.x = p.x + t.clientLeft, u.y = p.y + t.clientTop;
|
|
2012
|
+
} else o && (u.x = cn(o));
|
|
2013
2013
|
const l = o && !r && !s ? Fr(o, i) : ne(0), f = a.left + i.scrollLeft - u.x - l.x, d = a.top + i.scrollTop - u.y - l.y;
|
|
2014
2014
|
return {
|
|
2015
2015
|
x: f,
|
|
@@ -2021,7 +2021,7 @@ function _a(e, t, n) {
|
|
|
2021
2021
|
function At(e) {
|
|
2022
2022
|
return ee(e).position === "static";
|
|
2023
2023
|
}
|
|
2024
|
-
function
|
|
2024
|
+
function In(e, t) {
|
|
2025
2025
|
if (!re(e) || ee(e).position === "fixed")
|
|
2026
2026
|
return null;
|
|
2027
2027
|
if (t)
|
|
@@ -2042,15 +2042,15 @@ function Ir(e, t) {
|
|
|
2042
2042
|
}
|
|
2043
2043
|
return n;
|
|
2044
2044
|
}
|
|
2045
|
-
let r =
|
|
2046
|
-
for (; r &&
|
|
2047
|
-
r =
|
|
2048
|
-
return r && ke(r) && At(r) && !
|
|
2045
|
+
let r = In(e, t);
|
|
2046
|
+
for (; r && wa(r) && At(r); )
|
|
2047
|
+
r = In(r, t);
|
|
2048
|
+
return r && ke(r) && At(r) && !on(r) ? n : r || ja(e) || n;
|
|
2049
2049
|
}
|
|
2050
|
-
const
|
|
2050
|
+
const _a = async function(e) {
|
|
2051
2051
|
const t = this.getOffsetParent || Ir, n = this.getDimensions, r = await n(e.floating);
|
|
2052
2052
|
return {
|
|
2053
|
-
reference:
|
|
2053
|
+
reference: Ma(e.reference, await t(e.floating), e.strategy),
|
|
2054
2054
|
floating: {
|
|
2055
2055
|
x: 0,
|
|
2056
2056
|
y: 0,
|
|
@@ -2059,25 +2059,25 @@ const Da = async function(e) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
};
|
|
2061
2061
|
};
|
|
2062
|
-
function
|
|
2062
|
+
function Da(e) {
|
|
2063
2063
|
return ee(e).direction === "rtl";
|
|
2064
2064
|
}
|
|
2065
|
-
const
|
|
2066
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2065
|
+
const Fa = {
|
|
2066
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Sa,
|
|
2067
2067
|
getDocumentElement: oe,
|
|
2068
|
-
getClippingRect:
|
|
2068
|
+
getClippingRect: Ta,
|
|
2069
2069
|
getOffsetParent: Ir,
|
|
2070
|
-
getElementRects:
|
|
2071
|
-
getClientRects:
|
|
2072
|
-
getDimensions:
|
|
2070
|
+
getElementRects: _a,
|
|
2071
|
+
getClientRects: Aa,
|
|
2072
|
+
getDimensions: ka,
|
|
2073
2073
|
getScale: Ne,
|
|
2074
2074
|
isElement: Q,
|
|
2075
|
-
isRTL:
|
|
2075
|
+
isRTL: Da
|
|
2076
2076
|
};
|
|
2077
2077
|
function $r(e, t) {
|
|
2078
2078
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function La(e, t) {
|
|
2081
2081
|
let n = null, r;
|
|
2082
2082
|
const o = oe(e);
|
|
2083
2083
|
function s() {
|
|
@@ -2089,13 +2089,13 @@ function Ia(e, t) {
|
|
|
2089
2089
|
const l = e.getBoundingClientRect(), {
|
|
2090
2090
|
left: f,
|
|
2091
2091
|
top: d,
|
|
2092
|
-
width:
|
|
2093
|
-
height:
|
|
2092
|
+
width: p,
|
|
2093
|
+
height: g
|
|
2094
2094
|
} = l;
|
|
2095
|
-
if (i || t(), !
|
|
2095
|
+
if (i || t(), !p || !g)
|
|
2096
2096
|
return;
|
|
2097
|
-
const v = Je(d),
|
|
2098
|
-
rootMargin: -v + "px " + -
|
|
2097
|
+
const v = Je(d), h = Je(o.clientWidth - (f + p)), x = Je(o.clientHeight - (d + g)), b = Je(f), E = {
|
|
2098
|
+
rootMargin: -v + "px " + -h + "px " + -x + "px " + -b + "px",
|
|
2099
2099
|
threshold: X(0, pe(1, u)) || 1
|
|
2100
2100
|
};
|
|
2101
2101
|
let w = !0;
|
|
@@ -2123,7 +2123,7 @@ function Ia(e, t) {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
return a(!0), s;
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function Ia(e, t, n, r) {
|
|
2127
2127
|
r === void 0 && (r = {});
|
|
2128
2128
|
const {
|
|
2129
2129
|
ancestorScroll: o = !0,
|
|
@@ -2131,43 +2131,43 @@ function $a(e, t, n, r) {
|
|
|
2131
2131
|
elementResize: a = typeof ResizeObserver == "function",
|
|
2132
2132
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
2133
2133
|
animationFrame: u = !1
|
|
2134
|
-
} = r, l =
|
|
2134
|
+
} = r, l = an(e), f = o || s ? [...l ? Ye(l) : [], ...Ye(t)] : [];
|
|
2135
2135
|
f.forEach((b) => {
|
|
2136
2136
|
o && b.addEventListener("scroll", n, {
|
|
2137
2137
|
passive: !0
|
|
2138
2138
|
}), s && b.addEventListener("resize", n);
|
|
2139
2139
|
});
|
|
2140
|
-
const d = l && i ?
|
|
2141
|
-
let
|
|
2142
|
-
a && (
|
|
2140
|
+
const d = l && i ? La(l, n) : null;
|
|
2141
|
+
let p = -1, g = null;
|
|
2142
|
+
a && (g = new ResizeObserver((b) => {
|
|
2143
2143
|
let [S] = b;
|
|
2144
|
-
S && S.target === l &&
|
|
2144
|
+
S && S.target === l && g && (g.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
2145
2145
|
var E;
|
|
2146
|
-
(E =
|
|
2146
|
+
(E = g) == null || E.observe(t);
|
|
2147
2147
|
})), n();
|
|
2148
|
-
}), l && !u &&
|
|
2149
|
-
let v,
|
|
2148
|
+
}), l && !u && g.observe(l), g.observe(t));
|
|
2149
|
+
let v, h = u ? je(e) : null;
|
|
2150
2150
|
u && x();
|
|
2151
2151
|
function x() {
|
|
2152
2152
|
const b = je(e);
|
|
2153
|
-
|
|
2153
|
+
h && !$r(h, b) && n(), h = b, v = requestAnimationFrame(x);
|
|
2154
2154
|
}
|
|
2155
2155
|
return n(), () => {
|
|
2156
2156
|
var b;
|
|
2157
2157
|
f.forEach((S) => {
|
|
2158
2158
|
o && S.removeEventListener("scroll", n), s && S.removeEventListener("resize", n);
|
|
2159
|
-
}), d?.(), (b =
|
|
2159
|
+
}), d?.(), (b = g) == null || b.disconnect(), g = null, u && cancelAnimationFrame(v);
|
|
2160
2160
|
};
|
|
2161
2161
|
}
|
|
2162
|
-
const Wa = ya, Ha =
|
|
2162
|
+
const $a = va, Wa = ya, Ha = pa, Ba = ba, za = ha, $n = ma, Va = xa, Ua = (e, t, n) => {
|
|
2163
2163
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
2164
|
-
platform:
|
|
2164
|
+
platform: Fa,
|
|
2165
2165
|
...n
|
|
2166
2166
|
}, s = {
|
|
2167
2167
|
...o.platform,
|
|
2168
2168
|
_c: r
|
|
2169
2169
|
};
|
|
2170
|
-
return
|
|
2170
|
+
return da(e, t, {
|
|
2171
2171
|
...o,
|
|
2172
2172
|
platform: s
|
|
2173
2173
|
});
|
|
@@ -2206,7 +2206,7 @@ function dt(e, t) {
|
|
|
2206
2206
|
function Wr(e) {
|
|
2207
2207
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2209
|
+
function Wn(e, t) {
|
|
2210
2210
|
const n = Wr(e);
|
|
2211
2211
|
return Math.round(t * n) / n;
|
|
2212
2212
|
}
|
|
@@ -2216,7 +2216,7 @@ function Pt(e) {
|
|
|
2216
2216
|
t.current = e;
|
|
2217
2217
|
}), t;
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2219
|
+
function Ya(e) {
|
|
2220
2220
|
e === void 0 && (e = {});
|
|
2221
2221
|
const {
|
|
2222
2222
|
placement: t = "bottom",
|
|
@@ -2237,10 +2237,10 @@ function Ga(e) {
|
|
|
2237
2237
|
placement: t,
|
|
2238
2238
|
middlewareData: {},
|
|
2239
2239
|
isPositioned: !1
|
|
2240
|
-
}), [
|
|
2241
|
-
dt(
|
|
2242
|
-
const [v,
|
|
2243
|
-
R !== A.current && (A.current = R,
|
|
2240
|
+
}), [p, g] = m.useState(r);
|
|
2241
|
+
dt(p, r) || g(r);
|
|
2242
|
+
const [v, h] = m.useState(null), [x, b] = m.useState(null), S = m.useCallback((R) => {
|
|
2243
|
+
R !== A.current && (A.current = R, h(R));
|
|
2244
2244
|
}, []), E = m.useCallback((R) => {
|
|
2245
2245
|
R !== C.current && (C.current = R, b(R));
|
|
2246
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(() => {
|
|
@@ -2249,9 +2249,9 @@ function Ga(e) {
|
|
|
2249
2249
|
const R = {
|
|
2250
2250
|
placement: t,
|
|
2251
2251
|
strategy: n,
|
|
2252
|
-
middleware:
|
|
2252
|
+
middleware: p
|
|
2253
2253
|
};
|
|
2254
|
-
W.current && (R.platform = W.current),
|
|
2254
|
+
W.current && (R.platform = W.current), Ua(A.current, C.current, R).then((B) => {
|
|
2255
2255
|
const y = {
|
|
2256
2256
|
...B,
|
|
2257
2257
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -2264,7 +2264,7 @@ function Ga(e) {
|
|
|
2264
2264
|
d(y);
|
|
2265
2265
|
}));
|
|
2266
2266
|
});
|
|
2267
|
-
}, [
|
|
2267
|
+
}, [p, t, n, W, H]);
|
|
2268
2268
|
ot(() => {
|
|
2269
2269
|
l === !1 && T.current.isPositioned && (T.current.isPositioned = !1, d((R) => ({
|
|
2270
2270
|
...R,
|
|
@@ -2297,7 +2297,7 @@ function Ga(e) {
|
|
|
2297
2297
|
};
|
|
2298
2298
|
if (!D.floating)
|
|
2299
2299
|
return R;
|
|
2300
|
-
const B =
|
|
2300
|
+
const B = Wn(D.floating, f.x), y = Wn(D.floating, f.y);
|
|
2301
2301
|
return i ? {
|
|
2302
2302
|
...R,
|
|
2303
2303
|
transform: "translate(" + B + "px, " + y + "px)",
|
|
@@ -2318,7 +2318,7 @@ function Ga(e) {
|
|
|
2318
2318
|
floatingStyles: O
|
|
2319
2319
|
}), [f, I, _, D, O]);
|
|
2320
2320
|
}
|
|
2321
|
-
const
|
|
2321
|
+
const Ga = (e) => {
|
|
2322
2322
|
function t(n) {
|
|
2323
2323
|
return {}.hasOwnProperty.call(n, "current");
|
|
2324
2324
|
}
|
|
@@ -2330,23 +2330,26 @@ const Za = (e) => {
|
|
|
2330
2330
|
element: r,
|
|
2331
2331
|
padding: o
|
|
2332
2332
|
} = typeof e == "function" ? e(n) : e;
|
|
2333
|
-
return r && t(r) ? r.current != null ?
|
|
2333
|
+
return r && t(r) ? r.current != null ? $n({
|
|
2334
2334
|
element: r.current,
|
|
2335
2335
|
padding: o
|
|
2336
|
-
}).fn(n) : {} : r ?
|
|
2336
|
+
}).fn(n) : {} : r ? $n({
|
|
2337
2337
|
element: r,
|
|
2338
2338
|
padding: o
|
|
2339
2339
|
}).fn(n) : {};
|
|
2340
2340
|
}
|
|
2341
2341
|
};
|
|
2342
|
-
},
|
|
2342
|
+
}, Za = (e, t) => ({
|
|
2343
|
+
...$a(e),
|
|
2344
|
+
options: [e, t]
|
|
2345
|
+
}), Xa = (e, t) => ({
|
|
2343
2346
|
...Wa(e),
|
|
2344
2347
|
options: [e, t]
|
|
2345
2348
|
}), qa = (e, t) => ({
|
|
2346
|
-
...
|
|
2349
|
+
...Va(e),
|
|
2347
2350
|
options: [e, t]
|
|
2348
2351
|
}), Ja = (e, t) => ({
|
|
2349
|
-
...
|
|
2352
|
+
...Ha(e),
|
|
2350
2353
|
options: [e, t]
|
|
2351
2354
|
}), Ka = (e, t) => ({
|
|
2352
2355
|
...Ba(e),
|
|
@@ -2355,13 +2358,10 @@ const Za = (e) => {
|
|
|
2355
2358
|
...za(e),
|
|
2356
2359
|
options: [e, t]
|
|
2357
2360
|
}), ei = (e, t) => ({
|
|
2358
|
-
...
|
|
2359
|
-
options: [e, t]
|
|
2360
|
-
}), ti = (e, t) => ({
|
|
2361
|
-
...Za(e),
|
|
2361
|
+
...Ga(e),
|
|
2362
2362
|
options: [e, t]
|
|
2363
2363
|
});
|
|
2364
|
-
var
|
|
2364
|
+
var ti = "Arrow", Hr = m.forwardRef((e, t) => {
|
|
2365
2365
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
2366
2366
|
return /* @__PURE__ */ c.jsx(
|
|
2367
2367
|
ce.svg,
|
|
@@ -2376,9 +2376,9 @@ var ni = "Arrow", Hr = m.forwardRef((e, t) => {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
);
|
|
2378
2378
|
});
|
|
2379
|
-
Hr.displayName =
|
|
2380
|
-
var
|
|
2381
|
-
function
|
|
2379
|
+
Hr.displayName = ti;
|
|
2380
|
+
var ni = Hr;
|
|
2381
|
+
function ri(e) {
|
|
2382
2382
|
const [t, n] = m.useState(void 0);
|
|
2383
2383
|
return me(() => {
|
|
2384
2384
|
if (e) {
|
|
@@ -2400,11 +2400,11 @@ function oi(e) {
|
|
|
2400
2400
|
n(void 0);
|
|
2401
2401
|
}, [e]), t;
|
|
2402
2402
|
}
|
|
2403
|
-
var
|
|
2403
|
+
var ln = "Popper", [Br, zr] = Er(ln), [oi, Vr] = Br(ln), Ur = (e) => {
|
|
2404
2404
|
const { __scopePopper: t, children: n } = e, [r, o] = m.useState(null);
|
|
2405
|
-
return /* @__PURE__ */ c.jsx(
|
|
2405
|
+
return /* @__PURE__ */ c.jsx(oi, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
2406
2406
|
};
|
|
2407
|
-
Ur.displayName =
|
|
2407
|
+
Ur.displayName = ln;
|
|
2408
2408
|
var Yr = "PopperAnchor", Gr = m.forwardRef(
|
|
2409
2409
|
(e, t) => {
|
|
2410
2410
|
const { __scopePopper: n, virtualRef: r, ...o } = e, s = Vr(Yr, n), a = m.useRef(null), i = ve(t, a), u = m.useRef(null);
|
|
@@ -2415,7 +2415,7 @@ var Yr = "PopperAnchor", Gr = m.forwardRef(
|
|
|
2415
2415
|
}
|
|
2416
2416
|
);
|
|
2417
2417
|
Gr.displayName = Yr;
|
|
2418
|
-
var
|
|
2418
|
+
var un = "PopperContent", [si, ai] = Br(un), Zr = m.forwardRef(
|
|
2419
2419
|
(e, t) => {
|
|
2420
2420
|
const {
|
|
2421
2421
|
__scopePopper: n,
|
|
@@ -2428,44 +2428,44 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
|
|
|
2428
2428
|
collisionBoundary: l = [],
|
|
2429
2429
|
collisionPadding: f = 0,
|
|
2430
2430
|
sticky: d = "partial",
|
|
2431
|
-
hideWhenDetached:
|
|
2432
|
-
updatePositionStrategy:
|
|
2431
|
+
hideWhenDetached: p = !1,
|
|
2432
|
+
updatePositionStrategy: g = "optimized",
|
|
2433
2433
|
onPlaced: v,
|
|
2434
|
-
...
|
|
2435
|
-
} = e, x = Vr(
|
|
2434
|
+
...h
|
|
2435
|
+
} = e, x = Vr(un, n), [b, S] = m.useState(null), E = ve(t, (se) => S(se)), [w, j] = m.useState(null), A = ri(w), C = A?.width ?? 0, T = A?.height ?? 0, k = r + (s !== "center" ? "-" + s : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, W = Array.isArray(l) ? l : [l], H = W.length > 0, I = {
|
|
2436
2436
|
padding: L,
|
|
2437
|
-
boundary: W.filter(
|
|
2437
|
+
boundary: W.filter(ci),
|
|
2438
2438
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
2439
2439
|
altBoundary: H
|
|
2440
|
-
}, { refs: M, floatingStyles: _, placement: D, isPositioned: O, middlewareData: R } =
|
|
2440
|
+
}, { refs: M, floatingStyles: _, placement: D, isPositioned: O, middlewareData: R } = Ya({
|
|
2441
2441
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
2442
2442
|
strategy: "fixed",
|
|
2443
2443
|
placement: k,
|
|
2444
|
-
whileElementsMounted: (...se) =>
|
|
2445
|
-
animationFrame:
|
|
2444
|
+
whileElementsMounted: (...se) => Ia(...se, {
|
|
2445
|
+
animationFrame: g === "always"
|
|
2446
2446
|
}),
|
|
2447
2447
|
elements: {
|
|
2448
2448
|
reference: x.anchor
|
|
2449
2449
|
},
|
|
2450
2450
|
middleware: [
|
|
2451
|
-
|
|
2452
|
-
u &&
|
|
2451
|
+
Za({ mainAxis: o + T, alignmentAxis: a }),
|
|
2452
|
+
u && Xa({
|
|
2453
2453
|
mainAxis: !0,
|
|
2454
2454
|
crossAxis: !1,
|
|
2455
|
-
limiter: d === "partial" ?
|
|
2455
|
+
limiter: d === "partial" ? qa() : void 0,
|
|
2456
2456
|
...I
|
|
2457
2457
|
}),
|
|
2458
|
-
u &&
|
|
2459
|
-
|
|
2458
|
+
u && Ja({ ...I }),
|
|
2459
|
+
Ka({
|
|
2460
2460
|
...I,
|
|
2461
2461
|
apply: ({ elements: se, rects: U, availableWidth: le, availableHeight: $e }) => {
|
|
2462
2462
|
const { width: jt, height: Wo } = U.reference, Xe = se.floating.style;
|
|
2463
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`);
|
|
2464
2464
|
}
|
|
2465
2465
|
}),
|
|
2466
|
-
w &&
|
|
2467
|
-
|
|
2468
|
-
|
|
2466
|
+
w && ei({ element: w, padding: i }),
|
|
2467
|
+
li({ arrowWidth: C, arrowHeight: T }),
|
|
2468
|
+
p && Qa({ strategy: "referenceHidden", ...I })
|
|
2469
2469
|
]
|
|
2470
2470
|
}), [B, y] = Jr(D), N = Te(v);
|
|
2471
2471
|
me(() => {
|
|
@@ -2499,7 +2499,7 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
|
|
|
2499
2499
|
},
|
|
2500
2500
|
dir: e.dir,
|
|
2501
2501
|
children: /* @__PURE__ */ c.jsx(
|
|
2502
|
-
|
|
2502
|
+
si,
|
|
2503
2503
|
{
|
|
2504
2504
|
scope: n,
|
|
2505
2505
|
placedSide: B,
|
|
@@ -2512,10 +2512,10 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
|
|
|
2512
2512
|
{
|
|
2513
2513
|
"data-side": B,
|
|
2514
2514
|
"data-align": y,
|
|
2515
|
-
...
|
|
2515
|
+
...h,
|
|
2516
2516
|
ref: E,
|
|
2517
2517
|
style: {
|
|
2518
|
-
...
|
|
2518
|
+
...h.style,
|
|
2519
2519
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
2520
2520
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
2521
2521
|
animation: O ? void 0 : "none"
|
|
@@ -2528,14 +2528,14 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
|
|
|
2528
2528
|
);
|
|
2529
2529
|
}
|
|
2530
2530
|
);
|
|
2531
|
-
Zr.displayName =
|
|
2532
|
-
var Xr = "PopperArrow",
|
|
2531
|
+
Zr.displayName = un;
|
|
2532
|
+
var Xr = "PopperArrow", ii = {
|
|
2533
2533
|
top: "bottom",
|
|
2534
2534
|
right: "left",
|
|
2535
2535
|
bottom: "top",
|
|
2536
2536
|
left: "right"
|
|
2537
2537
|
}, qr = m.forwardRef(function(t, n) {
|
|
2538
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
2538
|
+
const { __scopePopper: r, ...o } = t, s = ai(Xr, r), a = ii[s.placedSide];
|
|
2539
2539
|
return (
|
|
2540
2540
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
2541
2541
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -2564,7 +2564,7 @@ var Xr = "PopperArrow", ci = {
|
|
|
2564
2564
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
2565
2565
|
},
|
|
2566
2566
|
children: /* @__PURE__ */ c.jsx(
|
|
2567
|
-
|
|
2567
|
+
ni,
|
|
2568
2568
|
{
|
|
2569
2569
|
...o,
|
|
2570
2570
|
ref: n,
|
|
@@ -2580,39 +2580,39 @@ var Xr = "PopperArrow", ci = {
|
|
|
2580
2580
|
);
|
|
2581
2581
|
});
|
|
2582
2582
|
qr.displayName = Xr;
|
|
2583
|
-
function
|
|
2583
|
+
function ci(e) {
|
|
2584
2584
|
return e !== null;
|
|
2585
2585
|
}
|
|
2586
|
-
var
|
|
2586
|
+
var li = (e) => ({
|
|
2587
2587
|
name: "transformOrigin",
|
|
2588
2588
|
options: e,
|
|
2589
2589
|
fn(t) {
|
|
2590
|
-
const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, f] = Jr(n), d = { start: "0%", center: "50%", end: "100%" }[f],
|
|
2591
|
-
let v = "",
|
|
2592
|
-
return l === "bottom" ? (v = a ? d : `${
|
|
2590
|
+
const { placement: n, rects: r, middlewareData: o } = t, a = o.arrow?.centerOffset !== 0, i = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [l, f] = Jr(n), d = { start: "0%", center: "50%", end: "100%" }[f], p = (o.arrow?.x ?? 0) + i / 2, g = (o.arrow?.y ?? 0) + u / 2;
|
|
2591
|
+
let v = "", h = "";
|
|
2592
|
+
return l === "bottom" ? (v = a ? d : `${p}px`, h = `${-u}px`) : l === "top" ? (v = a ? d : `${p}px`, h = `${r.floating.height + u}px`) : l === "right" ? (v = `${-u}px`, h = a ? d : `${g}px`) : l === "left" && (v = `${r.floating.width + u}px`, h = a ? d : `${g}px`), { data: { x: v, y: h } };
|
|
2593
2593
|
}
|
|
2594
2594
|
});
|
|
2595
2595
|
function Jr(e) {
|
|
2596
2596
|
const [t, n = "center"] = e.split("-");
|
|
2597
2597
|
return [t, n];
|
|
2598
2598
|
}
|
|
2599
|
-
var
|
|
2599
|
+
var ui = Ur, Kr = Gr, fi = Zr, di = qr, mi = "Portal", Qr = m.forwardRef((e, t) => {
|
|
2600
2600
|
const { container: n, ...r } = e, [o, s] = m.useState(!1);
|
|
2601
2601
|
me(() => s(!0), []);
|
|
2602
2602
|
const a = n || o && globalThis?.document?.body;
|
|
2603
|
-
return a ?
|
|
2603
|
+
return a ? Go.createPortal(/* @__PURE__ */ c.jsx(ce.div, { ...r, ref: t }), a) : null;
|
|
2604
2604
|
});
|
|
2605
|
-
Qr.displayName =
|
|
2606
|
-
function
|
|
2605
|
+
Qr.displayName = mi;
|
|
2606
|
+
function pi(e, t) {
|
|
2607
2607
|
return m.useReducer((n, r) => t[n][r] ?? n, e);
|
|
2608
2608
|
}
|
|
2609
|
-
var
|
|
2610
|
-
const { present: t, children: n } = e, r =
|
|
2609
|
+
var fn = (e) => {
|
|
2610
|
+
const { present: t, children: n } = e, r = hi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : m.Children.only(n), s = ve(r.ref, gi(o));
|
|
2611
2611
|
return typeof n == "function" || r.isPresent ? m.cloneElement(o, { ref: s }) : null;
|
|
2612
2612
|
};
|
|
2613
|
-
|
|
2614
|
-
function
|
|
2615
|
-
const [t, n] = m.useState(), r = m.useRef(null), o = m.useRef(e), s = m.useRef("none"), a = e ? "mounted" : "unmounted", [i, u] =
|
|
2613
|
+
fn.displayName = "Presence";
|
|
2614
|
+
function hi(e) {
|
|
2615
|
+
const [t, n] = m.useState(), r = m.useRef(null), o = m.useRef(e), s = m.useRef("none"), a = e ? "mounted" : "unmounted", [i, u] = pi(a, {
|
|
2616
2616
|
mounted: {
|
|
2617
2617
|
UNMOUNT: "unmounted",
|
|
2618
2618
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -2631,25 +2631,25 @@ function gi(e) {
|
|
|
2631
2631
|
}, [i]), me(() => {
|
|
2632
2632
|
const l = r.current, f = o.current;
|
|
2633
2633
|
if (f !== e) {
|
|
2634
|
-
const
|
|
2635
|
-
e ? u("MOUNT") :
|
|
2634
|
+
const p = s.current, g = Ke(l);
|
|
2635
|
+
e ? u("MOUNT") : g === "none" || l?.display === "none" ? u("UNMOUNT") : u(f && p !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
2636
2636
|
}
|
|
2637
2637
|
}, [e, u]), me(() => {
|
|
2638
2638
|
if (t) {
|
|
2639
2639
|
let l;
|
|
2640
|
-
const f = t.ownerDocument.defaultView ?? window, d = (
|
|
2641
|
-
const
|
|
2642
|
-
if (
|
|
2640
|
+
const f = t.ownerDocument.defaultView ?? window, d = (g) => {
|
|
2641
|
+
const h = Ke(r.current).includes(CSS.escape(g.animationName));
|
|
2642
|
+
if (g.target === t && h && (u("ANIMATION_END"), !o.current)) {
|
|
2643
2643
|
const x = t.style.animationFillMode;
|
|
2644
2644
|
t.style.animationFillMode = "forwards", l = f.setTimeout(() => {
|
|
2645
2645
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = x);
|
|
2646
2646
|
});
|
|
2647
2647
|
}
|
|
2648
|
-
},
|
|
2649
|
-
|
|
2648
|
+
}, p = (g) => {
|
|
2649
|
+
g.target === t && (s.current = Ke(r.current));
|
|
2650
2650
|
};
|
|
2651
|
-
return t.addEventListener("animationstart",
|
|
2652
|
-
f.clearTimeout(l), t.removeEventListener("animationstart",
|
|
2651
|
+
return t.addEventListener("animationstart", p), t.addEventListener("animationcancel", d), t.addEventListener("animationend", d), () => {
|
|
2652
|
+
f.clearTimeout(l), t.removeEventListener("animationstart", p), t.removeEventListener("animationcancel", d), t.removeEventListener("animationend", d);
|
|
2653
2653
|
};
|
|
2654
2654
|
} else
|
|
2655
2655
|
u("ANIMATION_END");
|
|
@@ -2663,19 +2663,19 @@ function gi(e) {
|
|
|
2663
2663
|
function Ke(e) {
|
|
2664
2664
|
return e?.animationName || "none";
|
|
2665
2665
|
}
|
|
2666
|
-
function
|
|
2666
|
+
function gi(e) {
|
|
2667
2667
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2668
2668
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2669
2669
|
}
|
|
2670
|
-
var
|
|
2671
|
-
function
|
|
2670
|
+
var vi = m[" useInsertionEffect ".trim().toString()] || me;
|
|
2671
|
+
function yi({
|
|
2672
2672
|
prop: e,
|
|
2673
2673
|
defaultProp: t,
|
|
2674
2674
|
onChange: n = () => {
|
|
2675
2675
|
},
|
|
2676
2676
|
caller: r
|
|
2677
2677
|
}) {
|
|
2678
|
-
const [o, s, a] =
|
|
2678
|
+
const [o, s, a] = xi({
|
|
2679
2679
|
defaultProp: t,
|
|
2680
2680
|
onChange: n
|
|
2681
2681
|
}), i = e !== void 0, u = i ? e : o;
|
|
@@ -2691,7 +2691,7 @@ function xi({
|
|
|
2691
2691
|
const l = m.useCallback(
|
|
2692
2692
|
(f) => {
|
|
2693
2693
|
if (i) {
|
|
2694
|
-
const d =
|
|
2694
|
+
const d = bi(f) ? f(e) : f;
|
|
2695
2695
|
d !== e && a.current?.(d);
|
|
2696
2696
|
} else
|
|
2697
2697
|
s(f);
|
|
@@ -2700,28 +2700,28 @@ function xi({
|
|
|
2700
2700
|
);
|
|
2701
2701
|
return [u, l];
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2703
|
+
function xi({
|
|
2704
2704
|
defaultProp: e,
|
|
2705
2705
|
onChange: t
|
|
2706
2706
|
}) {
|
|
2707
2707
|
const [n, r] = m.useState(e), o = m.useRef(n), s = m.useRef(t);
|
|
2708
|
-
return
|
|
2708
|
+
return vi(() => {
|
|
2709
2709
|
s.current = t;
|
|
2710
2710
|
}, [t]), m.useEffect(() => {
|
|
2711
2711
|
o.current !== n && (s.current?.(n), o.current = n);
|
|
2712
2712
|
}, [n, o]), [n, r, s];
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2714
|
+
function bi(e) {
|
|
2715
2715
|
return typeof e == "function";
|
|
2716
2716
|
}
|
|
2717
|
-
var
|
|
2717
|
+
var wi = function(e) {
|
|
2718
2718
|
if (typeof document > "u")
|
|
2719
2719
|
return null;
|
|
2720
2720
|
var t = Array.isArray(e) ? e[0] : e;
|
|
2721
2721
|
return t.ownerDocument.body;
|
|
2722
2722
|
}, Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {}, Nt = 0, eo = function(e) {
|
|
2723
2723
|
return e && (e.host || eo(e.parentNode));
|
|
2724
|
-
},
|
|
2724
|
+
}, ji = function(e, t) {
|
|
2725
2725
|
return t.map(function(n) {
|
|
2726
2726
|
if (e.contains(n))
|
|
2727
2727
|
return n;
|
|
@@ -2730,36 +2730,36 @@ var ji = function(e) {
|
|
|
2730
2730
|
}).filter(function(n) {
|
|
2731
2731
|
return !!n;
|
|
2732
2732
|
});
|
|
2733
|
-
},
|
|
2734
|
-
var o =
|
|
2733
|
+
}, Ci = function(e, t, n, r) {
|
|
2734
|
+
var o = ji(t, Array.isArray(e) ? e : [e]);
|
|
2735
2735
|
et[n] || (et[n] = /* @__PURE__ */ new WeakMap());
|
|
2736
2736
|
var s = et[n], a = [], i = /* @__PURE__ */ new Set(), u = new Set(o), l = function(d) {
|
|
2737
2737
|
!d || i.has(d) || (i.add(d), l(d.parentNode));
|
|
2738
2738
|
};
|
|
2739
2739
|
o.forEach(l);
|
|
2740
2740
|
var f = function(d) {
|
|
2741
|
-
!d || u.has(d) || Array.prototype.forEach.call(d.children, function(
|
|
2742
|
-
if (i.has(
|
|
2743
|
-
f(
|
|
2741
|
+
!d || u.has(d) || Array.prototype.forEach.call(d.children, function(p) {
|
|
2742
|
+
if (i.has(p))
|
|
2743
|
+
f(p);
|
|
2744
2744
|
else
|
|
2745
2745
|
try {
|
|
2746
|
-
var
|
|
2747
|
-
Ee.set(
|
|
2746
|
+
var g = p.getAttribute(r), v = g !== null && g !== "false", h = (Ee.get(p) || 0) + 1, x = (s.get(p) || 0) + 1;
|
|
2747
|
+
Ee.set(p, h), s.set(p, x), a.push(p), h === 1 && v && Qe.set(p, !0), x === 1 && p.setAttribute(n, "true"), v || p.setAttribute(r, "true");
|
|
2748
2748
|
} catch (b) {
|
|
2749
|
-
console.error("aria-hidden: cannot operate on ",
|
|
2749
|
+
console.error("aria-hidden: cannot operate on ", p, b);
|
|
2750
2750
|
}
|
|
2751
2751
|
});
|
|
2752
2752
|
};
|
|
2753
2753
|
return f(t), i.clear(), Nt++, function() {
|
|
2754
2754
|
a.forEach(function(d) {
|
|
2755
|
-
var
|
|
2756
|
-
Ee.set(d,
|
|
2755
|
+
var p = Ee.get(d) - 1, g = s.get(d) - 1;
|
|
2756
|
+
Ee.set(d, p), s.set(d, g), p || (Qe.has(d) || d.removeAttribute(r), Qe.delete(d)), g || d.removeAttribute(n);
|
|
2757
2757
|
}), Nt--, Nt || (Ee = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {});
|
|
2758
2758
|
};
|
|
2759
|
-
},
|
|
2759
|
+
}, Ei = function(e, t, n) {
|
|
2760
2760
|
n === void 0 && (n = "data-aria-hidden");
|
|
2761
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
2762
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))),
|
|
2761
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = wi(e);
|
|
2762
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Ci(r, o, n, "aria-hidden")) : function() {
|
|
2763
2763
|
return null;
|
|
2764
2764
|
};
|
|
2765
2765
|
}, te = function() {
|
|
@@ -2779,16 +2779,16 @@ function to(e, t) {
|
|
|
2779
2779
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
2780
2780
|
return n;
|
|
2781
2781
|
}
|
|
2782
|
-
function
|
|
2782
|
+
function Si(e, t, n) {
|
|
2783
2783
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
2784
2784
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
2785
2785
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
2786
2786
|
}
|
|
2787
|
-
var st = "right-scroll-bar-position", at = "width-before-scroll-bar",
|
|
2787
|
+
var st = "right-scroll-bar-position", at = "width-before-scroll-bar", Ai = "with-scroll-bars-hidden", Pi = "--removed-body-scroll-bar-size";
|
|
2788
2788
|
function Rt(e, t) {
|
|
2789
2789
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2790
2790
|
}
|
|
2791
|
-
function
|
|
2791
|
+
function Ni(e, t) {
|
|
2792
2792
|
var n = G(function() {
|
|
2793
2793
|
return {
|
|
2794
2794
|
// value
|
|
@@ -2809,15 +2809,15 @@ function Ri(e, t) {
|
|
|
2809
2809
|
})[0];
|
|
2810
2810
|
return n.callback = t, n.facade;
|
|
2811
2811
|
}
|
|
2812
|
-
var
|
|
2813
|
-
function
|
|
2814
|
-
var n =
|
|
2812
|
+
var Ri = typeof window < "u" ? m.useLayoutEffect : m.useEffect, Hn = /* @__PURE__ */ new WeakMap();
|
|
2813
|
+
function Oi(e, t) {
|
|
2814
|
+
var n = Ni(null, function(r) {
|
|
2815
2815
|
return e.forEach(function(o) {
|
|
2816
2816
|
return Rt(o, r);
|
|
2817
2817
|
});
|
|
2818
2818
|
});
|
|
2819
|
-
return
|
|
2820
|
-
var r =
|
|
2819
|
+
return Ri(function() {
|
|
2820
|
+
var r = Hn.get(n);
|
|
2821
2821
|
if (r) {
|
|
2822
2822
|
var o = new Set(r), s = new Set(e), a = n.current;
|
|
2823
2823
|
o.forEach(function(i) {
|
|
@@ -2826,14 +2826,14 @@ function Ti(e, t) {
|
|
|
2826
2826
|
o.has(i) || Rt(i, a);
|
|
2827
2827
|
});
|
|
2828
2828
|
}
|
|
2829
|
-
|
|
2829
|
+
Hn.set(n, e);
|
|
2830
2830
|
}, [e]), n;
|
|
2831
2831
|
}
|
|
2832
|
-
function
|
|
2832
|
+
function Ti(e) {
|
|
2833
2833
|
return e;
|
|
2834
2834
|
}
|
|
2835
|
-
function
|
|
2836
|
-
t === void 0 && (t =
|
|
2835
|
+
function ki(e, t) {
|
|
2836
|
+
t === void 0 && (t = Ti);
|
|
2837
2837
|
var n = [], r = !1, o = {
|
|
2838
2838
|
read: function() {
|
|
2839
2839
|
if (r)
|
|
@@ -2887,9 +2887,9 @@ function Mi(e, t) {
|
|
|
2887
2887
|
};
|
|
2888
2888
|
return o;
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function Mi(e) {
|
|
2891
2891
|
e === void 0 && (e = {});
|
|
2892
|
-
var t =
|
|
2892
|
+
var t = ki(null);
|
|
2893
2893
|
return t.options = te({ async: !0, ssr: !1 }, e), t;
|
|
2894
2894
|
}
|
|
2895
2895
|
var no = function(e) {
|
|
@@ -2902,20 +2902,20 @@ var no = function(e) {
|
|
|
2902
2902
|
return m.createElement(r, te({}, n));
|
|
2903
2903
|
};
|
|
2904
2904
|
no.isSideCarExport = !0;
|
|
2905
|
-
function
|
|
2905
|
+
function _i(e, t) {
|
|
2906
2906
|
return e.useMedium(t), no;
|
|
2907
2907
|
}
|
|
2908
|
-
var ro =
|
|
2908
|
+
var ro = Mi(), Ot = function() {
|
|
2909
2909
|
}, vt = m.forwardRef(function(e, t) {
|
|
2910
2910
|
var n = m.useRef(null), r = m.useState({
|
|
2911
2911
|
onScrollCapture: Ot,
|
|
2912
2912
|
onWheelCapture: Ot,
|
|
2913
2913
|
onTouchMoveCapture: Ot
|
|
2914
|
-
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards,
|
|
2914
|
+
}), o = r[0], s = r[1], a = e.forwardProps, i = e.children, u = e.className, l = e.removeScrollBar, f = e.enabled, d = e.shards, p = e.sideCar, g = e.noIsolation, v = e.inert, h = e.allowPinchZoom, x = e.as, b = x === void 0 ? "div" : x, S = e.gapMode, E = to(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), w = p, j = Oi([n, t]), A = te(te({}, E), o);
|
|
2915
2915
|
return m.createElement(
|
|
2916
2916
|
m.Fragment,
|
|
2917
2917
|
null,
|
|
2918
|
-
f && m.createElement(w, { sideCar: ro, removeScrollBar: l, shards: d, noIsolation:
|
|
2918
|
+
f && m.createElement(w, { sideCar: ro, removeScrollBar: l, shards: d, noIsolation: g, inert: v, setCallbacks: s, allowPinchZoom: !!h, lockRef: n, gapMode: S }),
|
|
2919
2919
|
a ? m.cloneElement(m.Children.only(i), te(te({}, A), { ref: j })) : m.createElement(b, te({}, A, { className: u, ref: j }), i)
|
|
2920
2920
|
);
|
|
2921
2921
|
});
|
|
@@ -2928,37 +2928,37 @@ vt.classNames = {
|
|
|
2928
2928
|
fullWidth: at,
|
|
2929
2929
|
zeroRight: st
|
|
2930
2930
|
};
|
|
2931
|
-
var
|
|
2931
|
+
var Di = function() {
|
|
2932
2932
|
if (typeof __webpack_nonce__ < "u")
|
|
2933
2933
|
return __webpack_nonce__;
|
|
2934
2934
|
};
|
|
2935
|
-
function
|
|
2935
|
+
function Fi() {
|
|
2936
2936
|
if (!document)
|
|
2937
2937
|
return null;
|
|
2938
2938
|
var e = document.createElement("style");
|
|
2939
2939
|
e.type = "text/css";
|
|
2940
|
-
var t =
|
|
2940
|
+
var t = Di();
|
|
2941
2941
|
return t && e.setAttribute("nonce", t), e;
|
|
2942
2942
|
}
|
|
2943
|
-
function
|
|
2943
|
+
function Li(e, t) {
|
|
2944
2944
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2945
2945
|
}
|
|
2946
|
-
function
|
|
2946
|
+
function Ii(e) {
|
|
2947
2947
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
2948
2948
|
t.appendChild(e);
|
|
2949
2949
|
}
|
|
2950
|
-
var
|
|
2950
|
+
var $i = function() {
|
|
2951
2951
|
var e = 0, t = null;
|
|
2952
2952
|
return {
|
|
2953
2953
|
add: function(n) {
|
|
2954
|
-
e == 0 && (t =
|
|
2954
|
+
e == 0 && (t = Fi()) && (Li(t, n), Ii(t)), e++;
|
|
2955
2955
|
},
|
|
2956
2956
|
remove: function() {
|
|
2957
2957
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2958
2958
|
}
|
|
2959
2959
|
};
|
|
2960
|
-
},
|
|
2961
|
-
var e =
|
|
2960
|
+
}, Wi = function() {
|
|
2961
|
+
var e = $i();
|
|
2962
2962
|
return function(t, n) {
|
|
2963
2963
|
m.useEffect(function() {
|
|
2964
2964
|
return e.add(t), function() {
|
|
@@ -2967,35 +2967,35 @@ var Wi = function() {
|
|
|
2967
2967
|
}, [t && n]);
|
|
2968
2968
|
};
|
|
2969
2969
|
}, oo = function() {
|
|
2970
|
-
var e =
|
|
2970
|
+
var e = Wi(), t = function(n) {
|
|
2971
2971
|
var r = n.styles, o = n.dynamic;
|
|
2972
2972
|
return e(r, o), null;
|
|
2973
2973
|
};
|
|
2974
2974
|
return t;
|
|
2975
|
-
},
|
|
2975
|
+
}, Hi = {
|
|
2976
2976
|
left: 0,
|
|
2977
2977
|
top: 0,
|
|
2978
2978
|
right: 0,
|
|
2979
2979
|
gap: 0
|
|
2980
2980
|
}, Tt = function(e) {
|
|
2981
2981
|
return parseInt(e || "", 10) || 0;
|
|
2982
|
-
},
|
|
2982
|
+
}, Bi = function(e) {
|
|
2983
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"];
|
|
2984
2984
|
return [Tt(n), Tt(r), Tt(o)];
|
|
2985
|
-
},
|
|
2985
|
+
}, zi = function(e) {
|
|
2986
2986
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
2987
|
-
return
|
|
2988
|
-
var t =
|
|
2987
|
+
return Hi;
|
|
2988
|
+
var t = Bi(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2989
2989
|
return {
|
|
2990
2990
|
left: t[0],
|
|
2991
2991
|
top: t[1],
|
|
2992
2992
|
right: t[2],
|
|
2993
2993
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2994
2994
|
};
|
|
2995
|
-
},
|
|
2995
|
+
}, Vi = oo(), Re = "data-scroll-locked", Ui = function(e, t, n, r) {
|
|
2996
2996
|
var o = e.left, s = e.top, a = e.right, i = e.gap;
|
|
2997
2997
|
return n === void 0 && (n = "margin"), `
|
|
2998
|
-
.`.concat(
|
|
2998
|
+
.`.concat(Ai, ` {
|
|
2999
2999
|
overflow: hidden `).concat(r, `;
|
|
3000
3000
|
padding-right: `).concat(i, "px ").concat(r, `;
|
|
3001
3001
|
}
|
|
@@ -3033,39 +3033,39 @@ var Wi = function() {
|
|
|
3033
3033
|
}
|
|
3034
3034
|
|
|
3035
3035
|
body[`).concat(Re, `] {
|
|
3036
|
-
`).concat(
|
|
3036
|
+
`).concat(Pi, ": ").concat(i, `px;
|
|
3037
3037
|
}
|
|
3038
3038
|
`);
|
|
3039
|
-
},
|
|
3039
|
+
}, Bn = function() {
|
|
3040
3040
|
var e = parseInt(document.body.getAttribute(Re) || "0", 10);
|
|
3041
3041
|
return isFinite(e) ? e : 0;
|
|
3042
|
-
},
|
|
3042
|
+
}, Yi = function() {
|
|
3043
3043
|
m.useEffect(function() {
|
|
3044
|
-
return document.body.setAttribute(Re, (
|
|
3045
|
-
var e =
|
|
3044
|
+
return document.body.setAttribute(Re, (Bn() + 1).toString()), function() {
|
|
3045
|
+
var e = Bn() - 1;
|
|
3046
3046
|
e <= 0 ? document.body.removeAttribute(Re) : document.body.setAttribute(Re, e.toString());
|
|
3047
3047
|
};
|
|
3048
3048
|
}, []);
|
|
3049
|
-
},
|
|
3049
|
+
}, Gi = function(e) {
|
|
3050
3050
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
3051
|
-
|
|
3051
|
+
Yi();
|
|
3052
3052
|
var s = m.useMemo(function() {
|
|
3053
|
-
return
|
|
3053
|
+
return zi(o);
|
|
3054
3054
|
}, [o]);
|
|
3055
|
-
return m.createElement(
|
|
3056
|
-
},
|
|
3055
|
+
return m.createElement(Vi, { styles: Ui(s, !t, o, n ? "" : "!important") });
|
|
3056
|
+
}, Wt = !1;
|
|
3057
3057
|
if (typeof window < "u")
|
|
3058
3058
|
try {
|
|
3059
3059
|
var tt = Object.defineProperty({}, "passive", {
|
|
3060
3060
|
get: function() {
|
|
3061
|
-
return
|
|
3061
|
+
return Wt = !0, !0;
|
|
3062
3062
|
}
|
|
3063
3063
|
});
|
|
3064
3064
|
window.addEventListener("test", tt, tt), window.removeEventListener("test", tt, tt);
|
|
3065
3065
|
} catch {
|
|
3066
|
-
|
|
3066
|
+
Wt = !1;
|
|
3067
3067
|
}
|
|
3068
|
-
var Se =
|
|
3068
|
+
var Se = Wt ? { passive: !1 } : !1, Zi = function(e) {
|
|
3069
3069
|
return e.tagName === "TEXTAREA";
|
|
3070
3070
|
}, so = function(e, t) {
|
|
3071
3071
|
if (!(e instanceof Element))
|
|
@@ -3074,13 +3074,13 @@ var Se = $t ? { passive: !1 } : !1, Xi = function(e) {
|
|
|
3074
3074
|
return (
|
|
3075
3075
|
// not-not-scrollable
|
|
3076
3076
|
n[t] !== "hidden" && // contains scroll inside self
|
|
3077
|
-
!(n.overflowY === n.overflowX && !
|
|
3077
|
+
!(n.overflowY === n.overflowX && !Zi(e) && n[t] === "visible")
|
|
3078
3078
|
);
|
|
3079
|
-
},
|
|
3079
|
+
}, Xi = function(e) {
|
|
3080
3080
|
return so(e, "overflowY");
|
|
3081
|
-
},
|
|
3081
|
+
}, qi = function(e) {
|
|
3082
3082
|
return so(e, "overflowX");
|
|
3083
|
-
},
|
|
3083
|
+
}, zn = function(e, t) {
|
|
3084
3084
|
var n = t.ownerDocument, r = t;
|
|
3085
3085
|
do {
|
|
3086
3086
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
@@ -3093,14 +3093,14 @@ var Se = $t ? { passive: !1 } : !1, Xi = function(e) {
|
|
|
3093
3093
|
r = r.parentNode;
|
|
3094
3094
|
} while (r && r !== n.body);
|
|
3095
3095
|
return !1;
|
|
3096
|
-
},
|
|
3096
|
+
}, Ji = function(e) {
|
|
3097
3097
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
3098
3098
|
return [
|
|
3099
3099
|
t,
|
|
3100
3100
|
n,
|
|
3101
3101
|
r
|
|
3102
3102
|
];
|
|
3103
|
-
},
|
|
3103
|
+
}, Ki = function(e) {
|
|
3104
3104
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
3105
3105
|
return [
|
|
3106
3106
|
t,
|
|
@@ -3108,131 +3108,131 @@ var Se = $t ? { passive: !1 } : !1, Xi = function(e) {
|
|
|
3108
3108
|
r
|
|
3109
3109
|
];
|
|
3110
3110
|
}, ao = function(e, t) {
|
|
3111
|
-
return e === "v" ?
|
|
3111
|
+
return e === "v" ? Xi(t) : qi(t);
|
|
3112
3112
|
}, io = function(e, t) {
|
|
3113
|
-
return e === "v" ?
|
|
3114
|
-
},
|
|
3113
|
+
return e === "v" ? Ji(t) : Ki(t);
|
|
3114
|
+
}, Qi = function(e, t) {
|
|
3115
3115
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
3116
|
-
},
|
|
3117
|
-
var s =
|
|
3116
|
+
}, ec = function(e, t, n, r, o) {
|
|
3117
|
+
var s = Qi(e, window.getComputedStyle(t).direction), a = s * r, i = n.target, u = t.contains(i), l = !1, f = a > 0, d = 0, p = 0;
|
|
3118
3118
|
do {
|
|
3119
|
-
var
|
|
3120
|
-
(v || b) && ao(e, i) && (d += b,
|
|
3119
|
+
var g = io(e, i), v = g[0], h = g[1], x = g[2], b = h - x - s * v;
|
|
3120
|
+
(v || b) && ao(e, i) && (d += b, p += v), i instanceof ShadowRoot ? i = i.host : i = i.parentNode;
|
|
3121
3121
|
} while (
|
|
3122
3122
|
// portaled content
|
|
3123
3123
|
!u && i !== document.body || // self content
|
|
3124
3124
|
u && (t.contains(i) || t === i)
|
|
3125
3125
|
);
|
|
3126
|
-
return (f && Math.abs(d) < 1 || !f && Math.abs(
|
|
3126
|
+
return (f && Math.abs(d) < 1 || !f && Math.abs(p) < 1) && (l = !0), l;
|
|
3127
3127
|
}, nt = function(e) {
|
|
3128
3128
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
3129
|
-
}, zn = function(e) {
|
|
3130
|
-
return [e.deltaX, e.deltaY];
|
|
3131
3129
|
}, Vn = function(e) {
|
|
3130
|
+
return [e.deltaX, e.deltaY];
|
|
3131
|
+
}, Un = function(e) {
|
|
3132
3132
|
return e && "current" in e ? e.current : e;
|
|
3133
|
-
},
|
|
3133
|
+
}, tc = function(e, t) {
|
|
3134
3134
|
return e[0] === t[0] && e[1] === t[1];
|
|
3135
|
-
},
|
|
3135
|
+
}, nc = function(e) {
|
|
3136
3136
|
return `
|
|
3137
3137
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
3138
3138
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
3139
3139
|
`);
|
|
3140
|
-
},
|
|
3141
|
-
function
|
|
3142
|
-
var t = m.useRef([]), n = m.useRef([0, 0]), r = m.useRef(), o = m.useState(
|
|
3140
|
+
}, rc = 0, Ae = [];
|
|
3141
|
+
function oc(e) {
|
|
3142
|
+
var t = m.useRef([]), n = m.useRef([0, 0]), r = m.useRef(), o = m.useState(rc++)[0], s = m.useState(oo)[0], a = m.useRef(e);
|
|
3143
3143
|
m.useEffect(function() {
|
|
3144
3144
|
a.current = e;
|
|
3145
3145
|
}, [e]), m.useEffect(function() {
|
|
3146
3146
|
if (e.inert) {
|
|
3147
3147
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
3148
|
-
var
|
|
3149
|
-
return
|
|
3148
|
+
var h = Si([e.lockRef.current], (e.shards || []).map(Un), !0).filter(Boolean);
|
|
3149
|
+
return h.forEach(function(x) {
|
|
3150
3150
|
return x.classList.add("allow-interactivity-".concat(o));
|
|
3151
3151
|
}), function() {
|
|
3152
|
-
document.body.classList.remove("block-interactivity-".concat(o)),
|
|
3152
|
+
document.body.classList.remove("block-interactivity-".concat(o)), h.forEach(function(x) {
|
|
3153
3153
|
return x.classList.remove("allow-interactivity-".concat(o));
|
|
3154
3154
|
});
|
|
3155
3155
|
};
|
|
3156
3156
|
}
|
|
3157
3157
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
3158
|
-
var i = m.useCallback(function(
|
|
3159
|
-
if ("touches" in
|
|
3158
|
+
var i = m.useCallback(function(h, x) {
|
|
3159
|
+
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
3160
3160
|
return !a.current.allowPinchZoom;
|
|
3161
|
-
var b = nt(
|
|
3162
|
-
if ("touches" in
|
|
3161
|
+
var b = nt(h), S = n.current, E = "deltaX" in h ? h.deltaX : S[0] - b[0], w = "deltaY" in h ? h.deltaY : S[1] - b[1], j, A = h.target, C = Math.abs(E) > Math.abs(w) ? "h" : "v";
|
|
3162
|
+
if ("touches" in h && C === "h" && A.type === "range")
|
|
3163
3163
|
return !1;
|
|
3164
|
-
var T =
|
|
3164
|
+
var T = zn(C, A);
|
|
3165
3165
|
if (!T)
|
|
3166
3166
|
return !0;
|
|
3167
|
-
if (T ? j = C : (j = C === "v" ? "h" : "v", T =
|
|
3167
|
+
if (T ? j = C : (j = C === "v" ? "h" : "v", T = zn(C, A)), !T)
|
|
3168
3168
|
return !1;
|
|
3169
|
-
if (!r.current && "changedTouches" in
|
|
3169
|
+
if (!r.current && "changedTouches" in h && (E || w) && (r.current = j), !j)
|
|
3170
3170
|
return !0;
|
|
3171
3171
|
var k = r.current || j;
|
|
3172
|
-
return
|
|
3173
|
-
}, []), u = m.useCallback(function(
|
|
3174
|
-
var x =
|
|
3172
|
+
return ec(k, x, h, k === "h" ? E : w);
|
|
3173
|
+
}, []), u = m.useCallback(function(h) {
|
|
3174
|
+
var x = h;
|
|
3175
3175
|
if (!(!Ae.length || Ae[Ae.length - 1] !== s)) {
|
|
3176
|
-
var b = "deltaY" in x ?
|
|
3177
|
-
return j.name === x.type && (j.target === x.target || x.target === j.shadowParent) &&
|
|
3176
|
+
var b = "deltaY" in x ? Vn(x) : nt(x), S = t.current.filter(function(j) {
|
|
3177
|
+
return j.name === x.type && (j.target === x.target || x.target === j.shadowParent) && tc(j.delta, b);
|
|
3178
3178
|
})[0];
|
|
3179
3179
|
if (S && S.should) {
|
|
3180
3180
|
x.cancelable && x.preventDefault();
|
|
3181
3181
|
return;
|
|
3182
3182
|
}
|
|
3183
3183
|
if (!S) {
|
|
3184
|
-
var E = (a.current.shards || []).map(
|
|
3184
|
+
var E = (a.current.shards || []).map(Un).filter(Boolean).filter(function(j) {
|
|
3185
3185
|
return j.contains(x.target);
|
|
3186
3186
|
}), w = E.length > 0 ? i(x, E[0]) : !a.current.noIsolation;
|
|
3187
3187
|
w && x.cancelable && x.preventDefault();
|
|
3188
3188
|
}
|
|
3189
3189
|
}
|
|
3190
|
-
}, []), l = m.useCallback(function(
|
|
3191
|
-
var E = { name:
|
|
3190
|
+
}, []), l = m.useCallback(function(h, x, b, S) {
|
|
3191
|
+
var E = { name: h, delta: x, target: b, should: S, shadowParent: sc(b) };
|
|
3192
3192
|
t.current.push(E), setTimeout(function() {
|
|
3193
3193
|
t.current = t.current.filter(function(w) {
|
|
3194
3194
|
return w !== E;
|
|
3195
3195
|
});
|
|
3196
3196
|
}, 1);
|
|
3197
|
-
}, []), f = m.useCallback(function(
|
|
3198
|
-
n.current = nt(
|
|
3199
|
-
}, []), d = m.useCallback(function(
|
|
3200
|
-
l(
|
|
3201
|
-
}, []),
|
|
3202
|
-
l(
|
|
3197
|
+
}, []), f = m.useCallback(function(h) {
|
|
3198
|
+
n.current = nt(h), r.current = void 0;
|
|
3199
|
+
}, []), d = m.useCallback(function(h) {
|
|
3200
|
+
l(h.type, Vn(h), h.target, i(h, e.lockRef.current));
|
|
3201
|
+
}, []), p = m.useCallback(function(h) {
|
|
3202
|
+
l(h.type, nt(h), h.target, i(h, e.lockRef.current));
|
|
3203
3203
|
}, []);
|
|
3204
3204
|
m.useEffect(function() {
|
|
3205
3205
|
return Ae.push(s), e.setCallbacks({
|
|
3206
3206
|
onScrollCapture: d,
|
|
3207
3207
|
onWheelCapture: d,
|
|
3208
|
-
onTouchMoveCapture:
|
|
3208
|
+
onTouchMoveCapture: p
|
|
3209
3209
|
}), document.addEventListener("wheel", u, Se), document.addEventListener("touchmove", u, Se), document.addEventListener("touchstart", f, Se), function() {
|
|
3210
|
-
Ae = Ae.filter(function(
|
|
3211
|
-
return
|
|
3210
|
+
Ae = Ae.filter(function(h) {
|
|
3211
|
+
return h !== s;
|
|
3212
3212
|
}), document.removeEventListener("wheel", u, Se), document.removeEventListener("touchmove", u, Se), document.removeEventListener("touchstart", f, Se);
|
|
3213
3213
|
};
|
|
3214
3214
|
}, []);
|
|
3215
|
-
var
|
|
3215
|
+
var g = e.removeScrollBar, v = e.inert;
|
|
3216
3216
|
return m.createElement(
|
|
3217
3217
|
m.Fragment,
|
|
3218
3218
|
null,
|
|
3219
|
-
v ? m.createElement(s, { styles:
|
|
3220
|
-
|
|
3219
|
+
v ? m.createElement(s, { styles: nc(o) }) : null,
|
|
3220
|
+
g ? m.createElement(Gi, { gapMode: e.gapMode }) : null
|
|
3221
3221
|
);
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3223
|
+
function sc(e) {
|
|
3224
3224
|
for (var t = null; e !== null; )
|
|
3225
3225
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
3226
3226
|
return t;
|
|
3227
3227
|
}
|
|
3228
|
-
const
|
|
3228
|
+
const ac = _i(ro, oc);
|
|
3229
3229
|
var co = m.forwardRef(function(e, t) {
|
|
3230
|
-
return m.createElement(vt, te({}, e, { ref: t, sideCar:
|
|
3230
|
+
return m.createElement(vt, te({}, e, { ref: t, sideCar: ac }));
|
|
3231
3231
|
});
|
|
3232
3232
|
co.classNames = vt.classNames;
|
|
3233
3233
|
var yt = "Popover", [lo] = Er(yt, [
|
|
3234
3234
|
zr
|
|
3235
|
-
]), Ze = zr(), [
|
|
3235
|
+
]), Ze = zr(), [ic, ye] = lo(yt), uo = (e) => {
|
|
3236
3236
|
const {
|
|
3237
3237
|
__scopePopover: t,
|
|
3238
3238
|
children: n,
|
|
@@ -3240,21 +3240,21 @@ var yt = "Popover", [lo] = Er(yt, [
|
|
|
3240
3240
|
defaultOpen: o,
|
|
3241
3241
|
onOpenChange: s,
|
|
3242
3242
|
modal: a = !1
|
|
3243
|
-
} = e, i = Ze(t), u = m.useRef(null), [l, f] = m.useState(!1), [d,
|
|
3243
|
+
} = e, i = Ze(t), u = m.useRef(null), [l, f] = m.useState(!1), [d, p] = yi({
|
|
3244
3244
|
prop: r,
|
|
3245
3245
|
defaultProp: o ?? !1,
|
|
3246
3246
|
onChange: s,
|
|
3247
3247
|
caller: yt
|
|
3248
3248
|
});
|
|
3249
|
-
return /* @__PURE__ */ c.jsx(
|
|
3250
|
-
|
|
3249
|
+
return /* @__PURE__ */ c.jsx(ui, { ...i, children: /* @__PURE__ */ c.jsx(
|
|
3250
|
+
ic,
|
|
3251
3251
|
{
|
|
3252
3252
|
scope: t,
|
|
3253
|
-
contentId:
|
|
3253
|
+
contentId: ra(),
|
|
3254
3254
|
triggerRef: u,
|
|
3255
3255
|
open: d,
|
|
3256
|
-
onOpenChange:
|
|
3257
|
-
onOpenToggle: m.useCallback(() =>
|
|
3256
|
+
onOpenChange: p,
|
|
3257
|
+
onOpenToggle: m.useCallback(() => p((g) => !g), [p]),
|
|
3258
3258
|
hasCustomAnchor: l,
|
|
3259
3259
|
onCustomAnchorAdd: m.useCallback(() => f(!0), []),
|
|
3260
3260
|
onCustomAnchorRemove: m.useCallback(() => f(!1), []),
|
|
@@ -3264,13 +3264,13 @@ var yt = "Popover", [lo] = Er(yt, [
|
|
|
3264
3264
|
) });
|
|
3265
3265
|
};
|
|
3266
3266
|
uo.displayName = yt;
|
|
3267
|
-
var fo = "PopoverAnchor",
|
|
3267
|
+
var fo = "PopoverAnchor", cc = m.forwardRef(
|
|
3268
3268
|
(e, t) => {
|
|
3269
3269
|
const { __scopePopover: n, ...r } = e, o = ye(fo, n), s = Ze(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: i } = o;
|
|
3270
3270
|
return m.useEffect(() => (a(), () => i()), [a, i]), /* @__PURE__ */ c.jsx(Kr, { ...s, ...r, ref: t });
|
|
3271
3271
|
}
|
|
3272
3272
|
);
|
|
3273
|
-
|
|
3273
|
+
cc.displayName = fo;
|
|
3274
3274
|
var mo = "PopoverTrigger", po = m.forwardRef(
|
|
3275
3275
|
(e, t) => {
|
|
3276
3276
|
const { __scopePopover: n, ...r } = e, o = ye(mo, n), s = Ze(n), a = ve(t, o.triggerRef), i = /* @__PURE__ */ c.jsx(
|
|
@@ -3290,27 +3290,27 @@ var mo = "PopoverTrigger", po = m.forwardRef(
|
|
|
3290
3290
|
}
|
|
3291
3291
|
);
|
|
3292
3292
|
po.displayName = mo;
|
|
3293
|
-
var
|
|
3293
|
+
var dn = "PopoverPortal", [lc, uc] = lo(dn, {
|
|
3294
3294
|
forceMount: void 0
|
|
3295
3295
|
}), ho = (e) => {
|
|
3296
|
-
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = ye(
|
|
3297
|
-
return /* @__PURE__ */ c.jsx(
|
|
3296
|
+
const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = ye(dn, t);
|
|
3297
|
+
return /* @__PURE__ */ c.jsx(lc, { scope: t, forceMount: n, children: /* @__PURE__ */ c.jsx(fn, { present: n || s.open, children: /* @__PURE__ */ c.jsx(Qr, { asChild: !0, container: o, children: r }) }) });
|
|
3298
3298
|
};
|
|
3299
|
-
ho.displayName =
|
|
3299
|
+
ho.displayName = dn;
|
|
3300
3300
|
var Me = "PopoverContent", go = m.forwardRef(
|
|
3301
3301
|
(e, t) => {
|
|
3302
|
-
const n =
|
|
3303
|
-
return /* @__PURE__ */ c.jsx(
|
|
3302
|
+
const n = uc(Me, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = ye(Me, e.__scopePopover);
|
|
3303
|
+
return /* @__PURE__ */ c.jsx(fn, { present: r || s.open, children: s.modal ? /* @__PURE__ */ c.jsx(dc, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(mc, { ...o, ref: t }) });
|
|
3304
3304
|
}
|
|
3305
3305
|
);
|
|
3306
3306
|
go.displayName = Me;
|
|
3307
|
-
var
|
|
3307
|
+
var fc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), dc = m.forwardRef(
|
|
3308
3308
|
(e, t) => {
|
|
3309
3309
|
const n = ye(Me, e.__scopePopover), r = m.useRef(null), o = ve(t, r), s = m.useRef(!1);
|
|
3310
3310
|
return m.useEffect(() => {
|
|
3311
3311
|
const a = r.current;
|
|
3312
|
-
if (a) return
|
|
3313
|
-
}, []), /* @__PURE__ */ c.jsx(co, { as:
|
|
3312
|
+
if (a) return Ei(a);
|
|
3313
|
+
}, []), /* @__PURE__ */ c.jsx(co, { as: fc, allowPinchZoom: !0, children: /* @__PURE__ */ c.jsx(
|
|
3314
3314
|
vo,
|
|
3315
3315
|
{
|
|
3316
3316
|
...e,
|
|
@@ -3336,7 +3336,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
|
|
|
3336
3336
|
}
|
|
3337
3337
|
) });
|
|
3338
3338
|
}
|
|
3339
|
-
),
|
|
3339
|
+
), mc = m.forwardRef(
|
|
3340
3340
|
(e, t) => {
|
|
3341
3341
|
const n = ye(Me, e.__scopePopover), r = m.useRef(!1), o = m.useRef(!1);
|
|
3342
3342
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -3370,8 +3370,8 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
|
|
|
3370
3370
|
onFocusOutside: l,
|
|
3371
3371
|
onInteractOutside: f,
|
|
3372
3372
|
...d
|
|
3373
|
-
} = e,
|
|
3374
|
-
return
|
|
3373
|
+
} = e, p = ye(Me, n), g = Ze(n);
|
|
3374
|
+
return Gs(), /* @__PURE__ */ c.jsx(
|
|
3375
3375
|
Rr,
|
|
3376
3376
|
{
|
|
3377
3377
|
asChild: !0,
|
|
@@ -3388,14 +3388,14 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
|
|
|
3388
3388
|
onEscapeKeyDown: i,
|
|
3389
3389
|
onPointerDownOutside: u,
|
|
3390
3390
|
onFocusOutside: l,
|
|
3391
|
-
onDismiss: () =>
|
|
3391
|
+
onDismiss: () => p.onOpenChange(!1),
|
|
3392
3392
|
children: /* @__PURE__ */ c.jsx(
|
|
3393
|
-
|
|
3393
|
+
fi,
|
|
3394
3394
|
{
|
|
3395
|
-
"data-state": xo(
|
|
3395
|
+
"data-state": xo(p.open),
|
|
3396
3396
|
role: "dialog",
|
|
3397
|
-
id:
|
|
3398
|
-
...
|
|
3397
|
+
id: p.contentId,
|
|
3398
|
+
...g,
|
|
3399
3399
|
...d,
|
|
3400
3400
|
ref: t,
|
|
3401
3401
|
style: {
|
|
@@ -3413,7 +3413,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
|
|
|
3413
3413
|
}
|
|
3414
3414
|
);
|
|
3415
3415
|
}
|
|
3416
|
-
), yo = "PopoverClose",
|
|
3416
|
+
), yo = "PopoverClose", pc = m.forwardRef(
|
|
3417
3417
|
(e, t) => {
|
|
3418
3418
|
const { __scopePopover: n, ...r } = e, o = ye(yo, n);
|
|
3419
3419
|
return /* @__PURE__ */ c.jsx(
|
|
@@ -3427,25 +3427,25 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
|
|
|
3427
3427
|
);
|
|
3428
3428
|
}
|
|
3429
3429
|
);
|
|
3430
|
-
|
|
3431
|
-
var
|
|
3430
|
+
pc.displayName = yo;
|
|
3431
|
+
var hc = "PopoverArrow", gc = m.forwardRef(
|
|
3432
3432
|
(e, t) => {
|
|
3433
3433
|
const { __scopePopover: n, ...r } = e, o = Ze(n);
|
|
3434
|
-
return /* @__PURE__ */ c.jsx(
|
|
3434
|
+
return /* @__PURE__ */ c.jsx(di, { ...o, ...r, ref: t });
|
|
3435
3435
|
}
|
|
3436
3436
|
);
|
|
3437
|
-
|
|
3437
|
+
gc.displayName = hc;
|
|
3438
3438
|
function xo(e) {
|
|
3439
3439
|
return e ? "open" : "closed";
|
|
3440
3440
|
}
|
|
3441
|
-
var
|
|
3442
|
-
const bo = ({ ...e }) => /* @__PURE__ */ c.jsx(
|
|
3441
|
+
var vc = uo, yc = po, xc = ho, bc = go;
|
|
3442
|
+
const bo = ({ ...e }) => /* @__PURE__ */ c.jsx(vc, { "data-slot": "popover", ...e }), wo = ({ ...e }) => /* @__PURE__ */ c.jsx(yc, { "data-slot": "popover-trigger", ...e }), jo = ({
|
|
3443
3443
|
className: e,
|
|
3444
3444
|
align: t = "center",
|
|
3445
3445
|
sideOffset: n = 4,
|
|
3446
3446
|
...r
|
|
3447
|
-
}) => /* @__PURE__ */ c.jsx(
|
|
3448
|
-
|
|
3447
|
+
}) => /* @__PURE__ */ c.jsx(xc, { children: /* @__PURE__ */ c.jsx(
|
|
3448
|
+
bc,
|
|
3449
3449
|
{
|
|
3450
3450
|
"data-slot": "popover-content",
|
|
3451
3451
|
align: t,
|
|
@@ -3457,7 +3457,7 @@ const bo = ({ ...e }) => /* @__PURE__ */ c.jsx(yc, { "data-slot": "popover", ...
|
|
|
3457
3457
|
...r
|
|
3458
3458
|
}
|
|
3459
3459
|
) });
|
|
3460
|
-
function
|
|
3460
|
+
function wc(e, t, n, r) {
|
|
3461
3461
|
function o(s) {
|
|
3462
3462
|
return s instanceof n ? s : new n(function(a) {
|
|
3463
3463
|
a(s);
|
|
@@ -3484,7 +3484,7 @@ function jc(e, t, n, r) {
|
|
|
3484
3484
|
l((r = r.apply(e, [])).next());
|
|
3485
3485
|
});
|
|
3486
3486
|
}
|
|
3487
|
-
var
|
|
3487
|
+
var jc = function() {
|
|
3488
3488
|
var e = document.getSelection();
|
|
3489
3489
|
if (!e.rangeCount)
|
|
3490
3490
|
return function() {
|
|
@@ -3506,24 +3506,24 @@ var Cc = function() {
|
|
|
3506
3506
|
e.addRange(o);
|
|
3507
3507
|
}), t && t.focus();
|
|
3508
3508
|
};
|
|
3509
|
-
},
|
|
3509
|
+
}, Cc = jc, Yn = {
|
|
3510
3510
|
"text/plain": "Text",
|
|
3511
3511
|
"text/html": "Url",
|
|
3512
3512
|
default: "Text"
|
|
3513
|
-
},
|
|
3514
|
-
function
|
|
3513
|
+
}, Ec = "Copy to clipboard: #{key}, Enter";
|
|
3514
|
+
function Sc(e) {
|
|
3515
3515
|
var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
|
3516
3516
|
return e.replace(/#{\s*key\s*}/g, t);
|
|
3517
3517
|
}
|
|
3518
|
-
function
|
|
3518
|
+
function Ac(e, t) {
|
|
3519
3519
|
var n, r, o, s, a, i, u = !1;
|
|
3520
3520
|
t || (t = {}), n = t.debug || !1;
|
|
3521
3521
|
try {
|
|
3522
|
-
o =
|
|
3522
|
+
o = Cc(), s = document.createRange(), a = document.getSelection(), i = document.createElement("span"), i.textContent = e, i.ariaHidden = "true", i.style.all = "unset", i.style.position = "fixed", i.style.top = 0, i.style.clip = "rect(0, 0, 0, 0)", i.style.whiteSpace = "pre", i.style.webkitUserSelect = "text", i.style.MozUserSelect = "text", i.style.msUserSelect = "text", i.style.userSelect = "text", i.addEventListener("copy", function(f) {
|
|
3523
3523
|
if (f.stopPropagation(), t.format)
|
|
3524
3524
|
if (f.preventDefault(), typeof f.clipboardData > "u") {
|
|
3525
3525
|
n && console.warn("unable to use e.clipboardData"), n && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
|
|
3526
|
-
var d =
|
|
3526
|
+
var d = Yn[t.format] || Yn.default;
|
|
3527
3527
|
window.clipboardData.setData(d, e);
|
|
3528
3528
|
} else
|
|
3529
3529
|
f.clipboardData.clearData(), f.clipboardData.setData(t.format, e);
|
|
@@ -3538,21 +3538,21 @@ function Pc(e, t) {
|
|
|
3538
3538
|
try {
|
|
3539
3539
|
window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), u = !0;
|
|
3540
3540
|
} catch (d) {
|
|
3541
|
-
n && console.error("unable to copy using clipboardData: ", d), n && console.error("falling back to prompt"), r =
|
|
3541
|
+
n && console.error("unable to copy using clipboardData: ", d), n && console.error("falling back to prompt"), r = Sc("message" in t ? t.message : Ec), window.prompt(r, e);
|
|
3542
3542
|
}
|
|
3543
3543
|
} finally {
|
|
3544
3544
|
a && (typeof a.removeRange == "function" ? a.removeRange(s) : a.removeAllRanges()), i && document.body.removeChild(i), o();
|
|
3545
3545
|
}
|
|
3546
3546
|
return u;
|
|
3547
3547
|
}
|
|
3548
|
-
var
|
|
3548
|
+
var Pc = Ac;
|
|
3549
3549
|
function xe(e) {
|
|
3550
3550
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
3551
3551
|
}
|
|
3552
3552
|
function Ve(e) {
|
|
3553
3553
|
return Array.isArray(e) ? e.length : xe(e) ? Object.keys(e).length : 0;
|
|
3554
3554
|
}
|
|
3555
|
-
function
|
|
3555
|
+
function Nc(e, t) {
|
|
3556
3556
|
if (typeof e == "string")
|
|
3557
3557
|
return e;
|
|
3558
3558
|
try {
|
|
@@ -3573,16 +3573,16 @@ function Rc(e, t) {
|
|
|
3573
3573
|
return `${n.name}: ${n.message}` || "JSON.stringify failed";
|
|
3574
3574
|
}
|
|
3575
3575
|
}
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3576
|
+
function Rc(e) {
|
|
3577
|
+
return wc(this, void 0, void 0, function* () {
|
|
3578
3578
|
try {
|
|
3579
3579
|
yield navigator.clipboard.writeText(e);
|
|
3580
3580
|
} catch {
|
|
3581
|
-
|
|
3581
|
+
Pc(e);
|
|
3582
3582
|
}
|
|
3583
3583
|
});
|
|
3584
3584
|
}
|
|
3585
|
-
function
|
|
3585
|
+
function Gn(e, t, n, r, o, s) {
|
|
3586
3586
|
if (s && s.collapsed !== void 0)
|
|
3587
3587
|
return !!s.collapsed;
|
|
3588
3588
|
if (typeof r == "boolean")
|
|
@@ -3591,13 +3591,13 @@ function Yn(e, t, n, r, o, s) {
|
|
|
3591
3591
|
return !0;
|
|
3592
3592
|
const a = Ve(e);
|
|
3593
3593
|
if (typeof r == "function") {
|
|
3594
|
-
const i =
|
|
3594
|
+
const i = mn(r, [{ node: e, depth: t, indexOrName: n, size: a }]);
|
|
3595
3595
|
if (typeof i == "boolean")
|
|
3596
3596
|
return i;
|
|
3597
3597
|
}
|
|
3598
3598
|
return !!(Array.isArray(e) && a > o || xe(e) && a > o);
|
|
3599
3599
|
}
|
|
3600
|
-
function
|
|
3600
|
+
function Zn(e, t, n, r, o, s) {
|
|
3601
3601
|
if (s && s.collapsed !== void 0)
|
|
3602
3602
|
return !!s.collapsed;
|
|
3603
3603
|
if (typeof r == "boolean")
|
|
@@ -3606,7 +3606,7 @@ function Gn(e, t, n, r, o, s) {
|
|
|
3606
3606
|
return !0;
|
|
3607
3607
|
const a = Math.ceil(e.length / 100);
|
|
3608
3608
|
if (typeof r == "function") {
|
|
3609
|
-
const i =
|
|
3609
|
+
const i = mn(r, [{ node: e, depth: t, indexOrName: n, size: a }]);
|
|
3610
3610
|
if (typeof i == "boolean")
|
|
3611
3611
|
return i;
|
|
3612
3612
|
}
|
|
@@ -3615,7 +3615,7 @@ function Gn(e, t, n, r, o, s) {
|
|
|
3615
3615
|
function Oe(e, t, n) {
|
|
3616
3616
|
return typeof e == "boolean" ? e : !!(typeof e == "number" && t > e || e === "collapsed" && n || e === "expanded" && !n);
|
|
3617
3617
|
}
|
|
3618
|
-
function
|
|
3618
|
+
function mn(e, t) {
|
|
3619
3619
|
try {
|
|
3620
3620
|
return e(...t);
|
|
3621
3621
|
} catch (n) {
|
|
@@ -3626,101 +3626,101 @@ function Co(e) {
|
|
|
3626
3626
|
if (e === !0 || xe(e) && e.add === !0)
|
|
3627
3627
|
return !0;
|
|
3628
3628
|
}
|
|
3629
|
-
function
|
|
3629
|
+
function Xn(e) {
|
|
3630
3630
|
if (e === !0 || xe(e) && e.edit === !0)
|
|
3631
3631
|
return !0;
|
|
3632
3632
|
}
|
|
3633
|
-
function
|
|
3633
|
+
function pn(e) {
|
|
3634
3634
|
if (e === !0 || xe(e) && e.delete === !0)
|
|
3635
3635
|
return !0;
|
|
3636
3636
|
}
|
|
3637
|
-
function
|
|
3637
|
+
function Oc(e) {
|
|
3638
3638
|
return typeof e == "function";
|
|
3639
3639
|
}
|
|
3640
3640
|
function Eo(e) {
|
|
3641
3641
|
return !e || e.add === void 0 || !!e.add;
|
|
3642
3642
|
}
|
|
3643
|
-
function
|
|
3643
|
+
function qn(e) {
|
|
3644
3644
|
return !e || e.edit === void 0 || !!e.edit;
|
|
3645
3645
|
}
|
|
3646
|
-
function
|
|
3646
|
+
function hn(e) {
|
|
3647
3647
|
return !e || e.delete === void 0 || !!e.delete;
|
|
3648
3648
|
}
|
|
3649
3649
|
function xt(e) {
|
|
3650
3650
|
return !e || e.enableClipboard === void 0 || !!e.enableClipboard;
|
|
3651
3651
|
}
|
|
3652
|
-
function
|
|
3652
|
+
function Tc(e) {
|
|
3653
3653
|
return !e || e.matchesURL === void 0 || !!e.matchesURL;
|
|
3654
3654
|
}
|
|
3655
|
-
function
|
|
3655
|
+
function kc(e, t) {
|
|
3656
3656
|
return e === "string" ? t.trim().replace(/^\"([\s\S]+?)\"$/, "$1") : t;
|
|
3657
3657
|
}
|
|
3658
|
-
var
|
|
3659
|
-
function
|
|
3660
|
-
return
|
|
3658
|
+
var Jn;
|
|
3659
|
+
function Ht() {
|
|
3660
|
+
return Ht = Object.assign ? Object.assign.bind() : function(e) {
|
|
3661
3661
|
for (var t = 1; t < arguments.length; t++) {
|
|
3662
3662
|
var n = arguments[t];
|
|
3663
3663
|
for (var r in n)
|
|
3664
3664
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3665
3665
|
}
|
|
3666
3666
|
return e;
|
|
3667
|
-
},
|
|
3667
|
+
}, Ht.apply(this, arguments);
|
|
3668
3668
|
}
|
|
3669
|
-
var
|
|
3670
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3669
|
+
var gn = function(t) {
|
|
3670
|
+
return /* @__PURE__ */ m.createElement("svg", Ht({
|
|
3671
3671
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3672
3672
|
width: 16,
|
|
3673
3673
|
height: 16,
|
|
3674
3674
|
fill: "none",
|
|
3675
3675
|
viewBox: "0 0 16 16"
|
|
3676
|
-
}, t),
|
|
3676
|
+
}, t), Jn || (Jn = /* @__PURE__ */ m.createElement("path", {
|
|
3677
3677
|
fill: "currentColor",
|
|
3678
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"
|
|
3679
3679
|
})));
|
|
3680
|
-
},
|
|
3681
|
-
function
|
|
3682
|
-
return
|
|
3680
|
+
}, Kn;
|
|
3681
|
+
function Bt() {
|
|
3682
|
+
return Bt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3683
3683
|
for (var t = 1; t < arguments.length; t++) {
|
|
3684
3684
|
var n = arguments[t];
|
|
3685
3685
|
for (var r in n)
|
|
3686
3686
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3687
3687
|
}
|
|
3688
3688
|
return e;
|
|
3689
|
-
},
|
|
3689
|
+
}, Bt.apply(this, arguments);
|
|
3690
3690
|
}
|
|
3691
|
-
var
|
|
3692
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3691
|
+
var Mc = function(t) {
|
|
3692
|
+
return /* @__PURE__ */ m.createElement("svg", Bt({
|
|
3693
3693
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3694
3694
|
width: 24,
|
|
3695
3695
|
height: 24,
|
|
3696
3696
|
fill: "none",
|
|
3697
3697
|
viewBox: "0 0 24 24"
|
|
3698
|
-
}, t),
|
|
3698
|
+
}, t), Kn || (Kn = /* @__PURE__ */ m.createElement("path", {
|
|
3699
3699
|
fill: "currentColor",
|
|
3700
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"
|
|
3701
3701
|
})));
|
|
3702
|
-
},
|
|
3703
|
-
function
|
|
3704
|
-
return
|
|
3702
|
+
}, Qn, er;
|
|
3703
|
+
function zt() {
|
|
3704
|
+
return zt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3705
3705
|
for (var t = 1; t < arguments.length; t++) {
|
|
3706
3706
|
var n = arguments[t];
|
|
3707
3707
|
for (var r in n)
|
|
3708
3708
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3709
3709
|
}
|
|
3710
3710
|
return e;
|
|
3711
|
-
},
|
|
3711
|
+
}, zt.apply(this, arguments);
|
|
3712
3712
|
}
|
|
3713
|
-
var
|
|
3714
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3713
|
+
var _c = function(t) {
|
|
3714
|
+
return /* @__PURE__ */ m.createElement("svg", zt({
|
|
3715
3715
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3716
3716
|
width: 24,
|
|
3717
3717
|
height: 24,
|
|
3718
3718
|
fill: "none",
|
|
3719
3719
|
viewBox: "0 0 24 24"
|
|
3720
|
-
}, t),
|
|
3720
|
+
}, t), Qn || (Qn = /* @__PURE__ */ m.createElement("path", {
|
|
3721
3721
|
fill: "currentColor",
|
|
3722
3722
|
d: "M17.25 3H6.75A3.755 3.755 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.755 3.755 0 0 0 17.25 3Zm2.25 14.25a2.25 2.25 0 0 1-2.25 2.25H6.75a2.25 2.25 0 0 1-2.25-2.25V6.75A2.25 2.25 0 0 1 6.75 4.5h10.5a2.25 2.25 0 0 1 2.25 2.25v10.5Z"
|
|
3723
|
-
})),
|
|
3723
|
+
})), er || (er = /* @__PURE__ */ m.createElement("path", {
|
|
3724
3724
|
fill: "#14C786",
|
|
3725
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"
|
|
3726
3726
|
})));
|
|
@@ -3729,117 +3729,117 @@ function bt({ node: e, nodeMeta: t }) {
|
|
|
3729
3729
|
const { customizeCopy: n, CopyComponent: r, CopiedComponent: o } = Ce(be), [s, a] = G(!1), i = (u) => {
|
|
3730
3730
|
u.stopPropagation();
|
|
3731
3731
|
const l = n(e, t);
|
|
3732
|
-
typeof l == "string" && l &&
|
|
3732
|
+
typeof l == "string" && l && Rc(l), a(!0), setTimeout(() => a(!1), 3e3);
|
|
3733
3733
|
};
|
|
3734
|
-
return s ? typeof o == "function" ? c.jsx(o, { className: "json-view--copy", style: { display: "inline-block" } }) : c.jsx(
|
|
3734
|
+
return s ? typeof o == "function" ? c.jsx(o, { className: "json-view--copy", style: { display: "inline-block" } }) : c.jsx(_c, { className: "json-view--copy", style: { display: "inline-block" } }) : typeof r == "function" ? c.jsx(r, { onClick: i, className: "json-view--copy" }) : c.jsx(Mc, { onClick: i, className: "json-view--copy" });
|
|
3735
3735
|
}
|
|
3736
|
-
function
|
|
3736
|
+
function Vt({ indexOrName: e, value: t, depth: n, deleteHandle: r, editHandle: o, parent: s, parentPath: a }) {
|
|
3737
3737
|
const { displayArrayIndex: i } = Ce(be), u = Array.isArray(s);
|
|
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,
|
|
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, p) => o(l, f, d, p), parent: s, indexOrName: e, parentPath: a })] }));
|
|
3739
3739
|
}
|
|
3740
|
-
var
|
|
3741
|
-
function
|
|
3742
|
-
return
|
|
3740
|
+
var tr, nr;
|
|
3741
|
+
function Ut() {
|
|
3742
|
+
return Ut = Object.assign ? Object.assign.bind() : function(e) {
|
|
3743
3743
|
for (var t = 1; t < arguments.length; t++) {
|
|
3744
3744
|
var n = arguments[t];
|
|
3745
3745
|
for (var r in n)
|
|
3746
3746
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3747
3747
|
}
|
|
3748
3748
|
return e;
|
|
3749
|
-
},
|
|
3749
|
+
}, Ut.apply(this, arguments);
|
|
3750
3750
|
}
|
|
3751
|
-
var
|
|
3752
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3751
|
+
var vn = function(t) {
|
|
3752
|
+
return /* @__PURE__ */ m.createElement("svg", Ut({
|
|
3753
3753
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3754
3754
|
width: 24,
|
|
3755
3755
|
height: 24,
|
|
3756
3756
|
fill: "none",
|
|
3757
3757
|
viewBox: "0 0 24 24"
|
|
3758
|
-
}, t),
|
|
3758
|
+
}, t), tr || (tr = /* @__PURE__ */ m.createElement("path", {
|
|
3759
3759
|
fill: "currentColor",
|
|
3760
3760
|
d: "M18.75 6h-2.325a3.757 3.757 0 0 0-3.675-3h-1.5a3.757 3.757 0 0 0-3.675 3H5.25a.75.75 0 0 0 0 1.5H6v9.75A3.754 3.754 0 0 0 9.75 21h4.5A3.754 3.754 0 0 0 18 17.25V7.5h.75a.75.75 0 1 0 0-1.5Zm-7.5-1.5h1.5A2.255 2.255 0 0 1 14.872 6H9.128a2.255 2.255 0 0 1 2.122-1.5Zm5.25 12.75a2.25 2.25 0 0 1-2.25 2.25h-4.5a2.25 2.25 0 0 1-2.25-2.25V7.5h9v9.75Z"
|
|
3761
|
-
})),
|
|
3761
|
+
})), nr || (nr = /* @__PURE__ */ m.createElement("path", {
|
|
3762
3762
|
fill: "#DA0000",
|
|
3763
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"
|
|
3764
3764
|
})));
|
|
3765
|
-
},
|
|
3766
|
-
function
|
|
3767
|
-
return
|
|
3765
|
+
}, rr, or;
|
|
3766
|
+
function Yt() {
|
|
3767
|
+
return Yt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3768
3768
|
for (var t = 1; t < arguments.length; t++) {
|
|
3769
3769
|
var n = arguments[t];
|
|
3770
3770
|
for (var r in n)
|
|
3771
3771
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3772
3772
|
}
|
|
3773
3773
|
return e;
|
|
3774
|
-
},
|
|
3774
|
+
}, Yt.apply(this, arguments);
|
|
3775
3775
|
}
|
|
3776
3776
|
var So = function(t) {
|
|
3777
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3777
|
+
return /* @__PURE__ */ m.createElement("svg", Yt({
|
|
3778
3778
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3779
3779
|
width: 24,
|
|
3780
3780
|
height: 24,
|
|
3781
3781
|
fill: "none",
|
|
3782
3782
|
viewBox: "0 0 24 24"
|
|
3783
|
-
}, t),
|
|
3783
|
+
}, t), rr || (rr = /* @__PURE__ */ m.createElement("path", {
|
|
3784
3784
|
fill: "currentColor",
|
|
3785
3785
|
d: "M21 6.75v10.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3h10.5A3.754 3.754 0 0 1 21 6.75Zm-1.5 0c0-1.24-1.01-2.25-2.25-2.25H6.75C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25V6.75Z"
|
|
3786
|
-
})),
|
|
3786
|
+
})), or || (or = /* @__PURE__ */ m.createElement("path", {
|
|
3787
3787
|
fill: "#14C786",
|
|
3788
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"
|
|
3789
3789
|
})));
|
|
3790
|
-
},
|
|
3791
|
-
function
|
|
3792
|
-
return
|
|
3790
|
+
}, sr, ar;
|
|
3791
|
+
function Gt() {
|
|
3792
|
+
return Gt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3793
3793
|
for (var t = 1; t < arguments.length; t++) {
|
|
3794
3794
|
var n = arguments[t];
|
|
3795
3795
|
for (var r in n)
|
|
3796
3796
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3797
3797
|
}
|
|
3798
3798
|
return e;
|
|
3799
|
-
},
|
|
3799
|
+
}, Gt.apply(this, arguments);
|
|
3800
3800
|
}
|
|
3801
|
-
var
|
|
3802
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3801
|
+
var yn = function(t) {
|
|
3802
|
+
return /* @__PURE__ */ m.createElement("svg", Gt({
|
|
3803
3803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3804
3804
|
width: 24,
|
|
3805
3805
|
height: 24,
|
|
3806
3806
|
fill: "none",
|
|
3807
3807
|
viewBox: "0 0 24 24"
|
|
3808
|
-
}, t),
|
|
3808
|
+
}, t), sr || (sr = /* @__PURE__ */ m.createElement("path", {
|
|
3809
3809
|
fill: "currentColor",
|
|
3810
3810
|
d: "M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"
|
|
3811
|
-
})),
|
|
3811
|
+
})), ar || (ar = /* @__PURE__ */ m.createElement("path", {
|
|
3812
3812
|
fill: "#14C786",
|
|
3813
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"
|
|
3814
3814
|
})));
|
|
3815
|
-
},
|
|
3816
|
-
function
|
|
3817
|
-
return
|
|
3815
|
+
}, ir, cr;
|
|
3816
|
+
function Zt() {
|
|
3817
|
+
return Zt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3818
3818
|
for (var t = 1; t < arguments.length; t++) {
|
|
3819
3819
|
var n = arguments[t];
|
|
3820
3820
|
for (var r in n)
|
|
3821
3821
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3822
3822
|
}
|
|
3823
3823
|
return e;
|
|
3824
|
-
},
|
|
3824
|
+
}, Zt.apply(this, arguments);
|
|
3825
3825
|
}
|
|
3826
|
-
var
|
|
3827
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3826
|
+
var xn = function(t) {
|
|
3827
|
+
return /* @__PURE__ */ m.createElement("svg", Zt({
|
|
3828
3828
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3829
3829
|
width: 24,
|
|
3830
3830
|
height: 24,
|
|
3831
3831
|
fill: "none",
|
|
3832
3832
|
viewBox: "0 0 24 24"
|
|
3833
|
-
}, t),
|
|
3833
|
+
}, t), ir || (ir = /* @__PURE__ */ m.createElement("path", {
|
|
3834
3834
|
fill: "#DA0000",
|
|
3835
3835
|
d: "M15 9a.75.75 0 0 0-1.06 0L12 10.94 10.06 9A.75.75 0 0 0 9 10.06L10.94 12 9 13.94A.75.75 0 0 0 10.06 15L12 13.06 13.94 15A.75.75 0 0 0 15 13.94L13.06 12 15 10.06A.75.75 0 0 0 15 9Z"
|
|
3836
|
-
})),
|
|
3836
|
+
})), cr || (cr = /* @__PURE__ */ m.createElement("path", {
|
|
3837
3837
|
fill: "currentColor",
|
|
3838
3838
|
d: "M12 3a9 9 0 1 0 9 9 9.01 9.01 0 0 0-9-9Zm0 16.5a7.5 7.5 0 1 1 7.5-7.5 7.509 7.509 0 0 1-7.5 7.5Z"
|
|
3839
3839
|
})));
|
|
3840
3840
|
};
|
|
3841
|
-
function
|
|
3842
|
-
const { enableClipboard: l, src: f, onEdit: d, onChange:
|
|
3841
|
+
function Dc({ originNode: e, node: t, depth: n, index: r, deleteHandle: o, customOptions: s, startIndex: a, parent: i, parentPath: u }) {
|
|
3842
|
+
const { enableClipboard: l, src: f, onEdit: d, onChange: p, forceUpdate: g, displaySize: v, CustomOperation: h } = Ce(be), x = [...u, String(r)], [b, S] = G(!0), E = de((A, C, T) => {
|
|
3843
3843
|
e[A] = C, d && d({
|
|
3844
3844
|
newValue: C,
|
|
3845
3845
|
oldValue: T,
|
|
@@ -3848,22 +3848,22 @@ function Fc({ originNode: e, node: t, depth: n, index: r, deleteHandle: o, custo
|
|
|
3848
3848
|
indexOrName: A,
|
|
3849
3849
|
parentType: "array",
|
|
3850
3850
|
parentPath: u
|
|
3851
|
-
}),
|
|
3852
|
-
}, [t, d,
|
|
3853
|
-
e.splice(A, 1), o && o(A, u),
|
|
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(
|
|
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(
|
|
3851
|
+
}), p && p({ type: "edit", depth: n, src: f, indexOrName: A, parentType: "array", parentPath: u }), g();
|
|
3852
|
+
}, [t, d, p, g]), w = (A) => {
|
|
3853
|
+
e.splice(A, 1), o && o(A, u), g();
|
|
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(gn, { className: "jv-chevron" })] })), !b && l && xt(s) && c.jsx(bt, { node: t, nodeMeta: { depth: n, indexOrName: r, parent: i, parentPath: u, currentPath: x } }), typeof h == "function" ? c.jsx(h, { 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(Vt, { indexOrName: C + a, value: A, depth: n, parent: t, deleteHandle: w, editHandle: E, parentPath: u }, String(r) + String(C))) })), c.jsx("span", { children: "]" })] });
|
|
3856
3856
|
}
|
|
3857
|
-
function
|
|
3857
|
+
function Fc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions: o, parent: s, parentPath: a }) {
|
|
3858
3858
|
const i = typeof r < "u" ? [...a, String(r)] : a, u = [];
|
|
3859
3859
|
for (let _ = 0; _ < e.length; _ += 100)
|
|
3860
3860
|
u.push(e.slice(_, _ + 100));
|
|
3861
|
-
const { collapsed: l, enableClipboard: f, collapseObjectsAfterLength: d, editable:
|
|
3861
|
+
const { collapsed: l, enableClipboard: f, collapseObjectsAfterLength: d, editable: p, onDelete: g, src: v, onAdd: h, CustomOperation: x, onChange: b, forceUpdate: S, displaySize: E } = Ce(be), [w, j] = G(Zn(e, t, r, l, d, o));
|
|
3862
3862
|
_e(() => {
|
|
3863
|
-
j(
|
|
3863
|
+
j(Zn(e, t, r, l, d, o));
|
|
3864
3864
|
}, [l, d]);
|
|
3865
3865
|
const [A, C] = G(!1), T = () => {
|
|
3866
|
-
C(!1), n && n(r, a),
|
|
3866
|
+
C(!1), n && n(r, a), g && g({ value: e, depth: t, src: v, indexOrName: r, parentType: "array", parentPath: a }), b && b({
|
|
3867
3867
|
type: "delete",
|
|
3868
3868
|
depth: t,
|
|
3869
3869
|
src: v,
|
|
@@ -3873,23 +3873,23 @@ function Lc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions:
|
|
|
3873
3873
|
});
|
|
3874
3874
|
}, [k, L] = G(!1), W = () => {
|
|
3875
3875
|
const _ = e;
|
|
3876
|
-
_.push(null),
|
|
3876
|
+
_.push(null), h && h({ 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();
|
|
3877
3877
|
}, H = A || k, I = () => {
|
|
3878
3878
|
C(!1), L(!1);
|
|
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(
|
|
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(gn, { className: "jv-chevron" })] })), H && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? W : T }), H && c.jsx(xn, { 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(p) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
|
|
3880
3880
|
W();
|
|
3881
|
-
} }), !w && !H &&
|
|
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(
|
|
3881
|
+
} }), !w && !H && pn(p) && hn(o) && n && c.jsx(vn, { className: "json-view--edit", onClick: () => C(!0) }), typeof x == "function" ? c.jsx(x, { node: e }) : null] });
|
|
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(Dc, { 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"] }))] });
|
|
3883
3883
|
}
|
|
3884
|
-
function
|
|
3885
|
-
const { collapsed: i, onCollapse: u, enableClipboard: l, ignoreLargeArray: f, collapseObjectsAfterLength: d, editable:
|
|
3884
|
+
function Lc({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parent: s, parentPath: a }) {
|
|
3885
|
+
const { collapsed: i, onCollapse: u, enableClipboard: l, ignoreLargeArray: f, collapseObjectsAfterLength: d, editable: p, onDelete: g, src: v, onAdd: h, onEdit: x, onChange: b, forceUpdate: S, displaySize: E, CustomOperation: w } = Ce(be), j = typeof n < "u" ? [...a, String(n)] : a;
|
|
3886
3886
|
if (!f && Array.isArray(e) && e.length > 100)
|
|
3887
|
-
return c.jsx(
|
|
3888
|
-
const A = xe(e), [C, T] = G(
|
|
3887
|
+
return c.jsx(Fc, { node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parentPath: j });
|
|
3888
|
+
const A = xe(e), [C, T] = G(Gn(e, t, n, i, d, o)), k = (P) => {
|
|
3889
3889
|
u?.({ isCollapsing: !P, node: e, depth: t, indexOrName: n }), T(P);
|
|
3890
3890
|
};
|
|
3891
3891
|
_e(() => {
|
|
3892
|
-
k(
|
|
3892
|
+
k(Gn(e, t, n, i, d, o));
|
|
3893
3893
|
}, [i, d]);
|
|
3894
3894
|
const L = de((P, F, Z) => {
|
|
3895
3895
|
Array.isArray(e) ? e[+P] = F : e && (e[P] = F), x && x({
|
|
@@ -3904,7 +3904,7 @@ function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions:
|
|
|
3904
3904
|
}, [e, x, b, S]), W = (P) => {
|
|
3905
3905
|
Array.isArray(e) ? e.splice(+P, 1) : e && delete e[P], S();
|
|
3906
3906
|
}, [H, I] = G(!1), M = () => {
|
|
3907
|
-
I(!1), r && r(n, j),
|
|
3907
|
+
I(!1), r && r(n, j), g && g({ value: e, depth: t, src: v, indexOrName: n, parentType: A ? "object" : "array", parentPath: j }), b && b({
|
|
3908
3908
|
type: "delete",
|
|
3909
3909
|
depth: t,
|
|
3910
3910
|
src: v,
|
|
@@ -3916,35 +3916,35 @@ function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions:
|
|
|
3916
3916
|
var P;
|
|
3917
3917
|
if (A) {
|
|
3918
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),
|
|
3919
|
+
F && (e[F] = null, O.current && (O.current.value = ""), D(!1), h && h({ indexOrName: F, depth: t, src: v, parentType: "object", parentPath: j }), b && b({ type: "add", indexOrName: F, depth: t, src: v, parentType: "object", parentPath: j }));
|
|
3920
3920
|
} else if (Array.isArray(e)) {
|
|
3921
3921
|
const F = e;
|
|
3922
|
-
F.push(null),
|
|
3922
|
+
F.push(null), h && h({ 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 });
|
|
3923
3923
|
}
|
|
3924
3924
|
S();
|
|
3925
3925
|
}, B = (P) => {
|
|
3926
3926
|
P.key === "Enter" ? (P.preventDefault(), R()) : P.key === "Escape" && N();
|
|
3927
3927
|
}, y = H || _, N = () => {
|
|
3928
3928
|
I(!1), D(!1);
|
|
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(
|
|
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(gn, { className: "jv-chevron" })] })), _ && A && c.jsx("input", { className: "json-view--input", placeholder: "property", ref: O, onKeyDown: B }), y && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? R : M }), y && c.jsx(xn, { 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(p) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
|
|
3930
3930
|
A ? (D(!0), setTimeout(() => {
|
|
3931
3931
|
var P;
|
|
3932
3932
|
return (P = O.current) === null || P === void 0 ? void 0 : P.focus();
|
|
3933
3933
|
})) : R();
|
|
3934
|
-
} }), !C && !y &&
|
|
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(
|
|
3934
|
+
} }), !C && !y && pn(p) && hn(o) && r && c.jsx(vn, { className: "json-view--edit", onClick: () => I(!0) }), typeof w == "function" ? c.jsx(w, { node: e }) : null] });
|
|
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(Vt, { 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(Vt, { 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) });
|
|
3936
3936
|
}
|
|
3937
|
-
const
|
|
3937
|
+
const Ic = Pe.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
|
|
3938
3938
|
let { collapseStringMode: o, collapseStringsAfterLength: s, customizeCollapseStringUI: a } = Ce(be);
|
|
3939
3939
|
const [i, u] = G(!0), l = mt(null);
|
|
3940
3940
|
s = s > 0 ? s : 0;
|
|
3941
|
-
const f = e.replace(/\s+/g, " "), d = typeof a == "function" ? a(f, i) : typeof a == "string" ? a : "...",
|
|
3941
|
+
const f = e.replace(/\s+/g, " "), d = typeof a == "function" ? a(f, i) : typeof a == "string" ? a : "...", p = (g) => {
|
|
3942
3942
|
var v;
|
|
3943
|
-
if ((
|
|
3944
|
-
n(
|
|
3943
|
+
if ((g.ctrlKey || g.metaKey) && n)
|
|
3944
|
+
n(g);
|
|
3945
3945
|
else {
|
|
3946
|
-
const
|
|
3947
|
-
if (
|
|
3946
|
+
const h = window.getSelection();
|
|
3947
|
+
if (h && h.anchorOffset !== h.focusOffset && ((v = h.anchorNode) === null || v === void 0 ? void 0 : v.parentElement) === l.current)
|
|
3948
3948
|
return;
|
|
3949
3949
|
u(!i);
|
|
3950
3950
|
}
|
|
@@ -3952,91 +3952,91 @@ const $c = Pe.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
|
|
|
3952
3952
|
if (e.length <= s)
|
|
3953
3953
|
return c.jsxs("span", Object.assign({ ref: l, className: t, onClick: n }, { children: ['"', e, '"'] }));
|
|
3954
3954
|
if (o === "address")
|
|
3955
|
-
return e.length <= 10 ? c.jsxs("span", Object.assign({ ref: l, className: t, onClick: n }, { children: ['"', e, '"'] })) : c.jsxs("span", Object.assign({ ref: l, onClick:
|
|
3955
|
+
return e.length <= 10 ? c.jsxs("span", Object.assign({ ref: l, className: t, onClick: n }, { children: ['"', e, '"'] })) : c.jsxs("span", Object.assign({ ref: l, onClick: p, className: t + " cursor-pointer" }, { children: ['"', i ? [f.slice(0, 6), d, f.slice(-4)] : e, '"'] }));
|
|
3956
3956
|
if (o === "directly")
|
|
3957
|
-
return c.jsxs("span", Object.assign({ ref: l, onClick:
|
|
3957
|
+
return c.jsxs("span", Object.assign({ ref: l, onClick: p, className: t + " cursor-pointer" }, { children: ['"', i ? [f.slice(0, s), d] : e, '"'] }));
|
|
3958
3958
|
if (o === "word") {
|
|
3959
|
-
let
|
|
3959
|
+
let g = s, v = s + 1, h = f, x = 1;
|
|
3960
3960
|
for (; ; ) {
|
|
3961
|
-
if (/\W/.test(e[
|
|
3962
|
-
|
|
3961
|
+
if (/\W/.test(e[g])) {
|
|
3962
|
+
h = e.slice(0, g);
|
|
3963
3963
|
break;
|
|
3964
3964
|
}
|
|
3965
3965
|
if (/\W/.test(e[v])) {
|
|
3966
|
-
|
|
3966
|
+
h = e.slice(0, v);
|
|
3967
3967
|
break;
|
|
3968
3968
|
}
|
|
3969
3969
|
if (x === 6) {
|
|
3970
|
-
|
|
3970
|
+
h = e.slice(0, s);
|
|
3971
3971
|
break;
|
|
3972
3972
|
}
|
|
3973
|
-
x++,
|
|
3973
|
+
x++, g--, v++;
|
|
3974
3974
|
}
|
|
3975
|
-
return c.jsxs("span", Object.assign({ ref: l, onClick:
|
|
3975
|
+
return c.jsxs("span", Object.assign({ ref: l, onClick: p, className: t + " cursor-pointer" }, { children: ['"', i ? [h, d] : e, '"'] }));
|
|
3976
3976
|
}
|
|
3977
3977
|
return c.jsxs("span", Object.assign({ ref: l, className: t }, { children: ['"', e, '"'] }));
|
|
3978
3978
|
});
|
|
3979
|
-
var
|
|
3980
|
-
function
|
|
3981
|
-
return
|
|
3979
|
+
var lr;
|
|
3980
|
+
function Xt() {
|
|
3981
|
+
return Xt = Object.assign ? Object.assign.bind() : function(e) {
|
|
3982
3982
|
for (var t = 1; t < arguments.length; t++) {
|
|
3983
3983
|
var n = arguments[t];
|
|
3984
3984
|
for (var r in n)
|
|
3985
3985
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3986
3986
|
}
|
|
3987
3987
|
return e;
|
|
3988
|
-
},
|
|
3988
|
+
}, Xt.apply(this, arguments);
|
|
3989
3989
|
}
|
|
3990
|
-
var
|
|
3991
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
3990
|
+
var $c = function(t) {
|
|
3991
|
+
return /* @__PURE__ */ m.createElement("svg", Xt({
|
|
3992
3992
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3993
3993
|
width: 24,
|
|
3994
3994
|
height: 24,
|
|
3995
3995
|
fill: "none",
|
|
3996
3996
|
viewBox: "0 0 24 24"
|
|
3997
|
-
}, t),
|
|
3997
|
+
}, t), lr || (lr = /* @__PURE__ */ m.createElement("path", {
|
|
3998
3998
|
fill: "currentColor",
|
|
3999
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"
|
|
4000
4000
|
})));
|
|
4001
|
-
},
|
|
4002
|
-
function
|
|
4003
|
-
return
|
|
4001
|
+
}, ur, fr;
|
|
4002
|
+
function qt() {
|
|
4003
|
+
return qt = Object.assign ? Object.assign.bind() : function(e) {
|
|
4004
4004
|
for (var t = 1; t < arguments.length; t++) {
|
|
4005
4005
|
var n = arguments[t];
|
|
4006
4006
|
for (var r in n)
|
|
4007
4007
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4008
4008
|
}
|
|
4009
4009
|
return e;
|
|
4010
|
-
},
|
|
4010
|
+
}, qt.apply(this, arguments);
|
|
4011
4011
|
}
|
|
4012
|
-
var
|
|
4013
|
-
return /* @__PURE__ */ m.createElement("svg",
|
|
4012
|
+
var Wc = function(t) {
|
|
4013
|
+
return /* @__PURE__ */ m.createElement("svg", qt({
|
|
4014
4014
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4015
4015
|
width: 24,
|
|
4016
4016
|
height: 24,
|
|
4017
4017
|
fill: "none",
|
|
4018
4018
|
viewBox: "0 0 24 24"
|
|
4019
|
-
}, t),
|
|
4019
|
+
}, t), ur || (ur = /* @__PURE__ */ m.createElement("path", {
|
|
4020
4020
|
fill: "currentColor",
|
|
4021
4021
|
d: "M6.75 3h5.5v1.5h-5.5C5.51 4.5 4.5 5.51 4.5 6.75v10.5c0 1.24 1.01 2.25 2.25 2.25h10.5c1.24 0 2.25-1.01 2.25-2.25v-5.5H21v5.5A3.754 3.754 0 0 1 17.25 21H6.75A3.754 3.754 0 0 1 3 17.25V6.75A3.754 3.754 0 0 1 6.75 3Z"
|
|
4022
|
-
})),
|
|
4022
|
+
})), fr || (fr = /* @__PURE__ */ m.createElement("path", {
|
|
4023
4023
|
fill: "currentColor",
|
|
4024
4024
|
d: "M20.013 3h-3.946a.987.987 0 0 0 0 1.973h1.564l-6.342 6.342a1.004 1.004 0 0 0 0 1.396 1.004 1.004 0 0 0 1.396 0l6.342-6.342v1.564a.987.987 0 0 0 1.973 0V3.987A.987.987 0 0 0 20.013 3Z"
|
|
4025
4025
|
})));
|
|
4026
4026
|
};
|
|
4027
4027
|
function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, editHandle: s, parentPath: a }) {
|
|
4028
|
-
const { collapseStringsAfterLength: i, enableClipboard: u, editable: l, src: f, onDelete: d, onChange:
|
|
4028
|
+
const { collapseStringsAfterLength: i, enableClipboard: u, editable: l, src: f, onDelete: d, onChange: p, customizeNode: g, matchesURL: v, urlRegExp: h, EditComponent: x, DoneComponent: b, CancelComponent: S, CustomOperation: E } = Ce(be);
|
|
4029
4029
|
let w;
|
|
4030
|
-
if (typeof
|
|
4030
|
+
if (typeof g == "function" && (w = mn(g, [{ node: e, depth: t, indexOrName: r }])), w) {
|
|
4031
4031
|
if (zo(w))
|
|
4032
4032
|
return w;
|
|
4033
|
-
if (
|
|
4033
|
+
if (Oc(w)) {
|
|
4034
4034
|
const j = w;
|
|
4035
4035
|
return c.jsx(j, { node: e, depth: t, indexOrName: r });
|
|
4036
4036
|
}
|
|
4037
4037
|
}
|
|
4038
4038
|
if (Array.isArray(e) || xe(e))
|
|
4039
|
-
return c.jsx(
|
|
4039
|
+
return c.jsx(Lc, { parent: o, node: e, depth: t, indexOrName: r, deleteHandle: n, parentPath: a, customOptions: typeof w == "object" ? w : void 0 });
|
|
4040
4040
|
{
|
|
4041
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 = () => {
|
|
4042
4042
|
T(!0), setTimeout(() => {
|
|
@@ -4049,7 +4049,7 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
|
|
|
4049
4049
|
const F = JSON.parse(P);
|
|
4050
4050
|
s && s(r, F, e, a);
|
|
4051
4051
|
} catch {
|
|
4052
|
-
const Z =
|
|
4052
|
+
const Z = kc(j, P);
|
|
4053
4053
|
s && s(r, Z, e, a);
|
|
4054
4054
|
}
|
|
4055
4055
|
T(!1);
|
|
@@ -4063,7 +4063,7 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
|
|
|
4063
4063
|
indexOrName: r,
|
|
4064
4064
|
parentType: Array.isArray(o) ? "array" : "object",
|
|
4065
4065
|
parentPath: a
|
|
4066
|
-
}),
|
|
4066
|
+
}), p && p({
|
|
4067
4067
|
depth: t,
|
|
4068
4068
|
src: f,
|
|
4069
4069
|
indexOrName: r,
|
|
@@ -4073,9 +4073,9 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
|
|
|
4073
4073
|
});
|
|
4074
4074
|
}, D = de((P) => {
|
|
4075
4075
|
P.key === "Enter" ? (P.preventDefault(), I()) : P.key === "Escape" && M();
|
|
4076
|
-
}, [I]), O = C || k, R = !O &&
|
|
4076
|
+
}, [I]), O = C || k, R = !O && Xn(l) && qn(w) && s ? (P) => {
|
|
4077
4077
|
(P.ctrlKey || P.metaKey) && H();
|
|
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(
|
|
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(yn, { 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(xn, { 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" && h.test(e) && Tc(w) && c.jsx("a", Object.assign({ href: e, target: "_blank", className: "json-view--link" }, { children: c.jsx(Wc, {}) })), !O && Xn(l) && qn(w) && s && (typeof x == "function" ? c.jsx(x, { className: "json-view--edit", onClick: H }) : c.jsx($c, { className: "json-view--edit", onClick: H })), !O && pn(l) && hn(w) && n && c.jsx(vn, { className: "json-view--edit", onClick: () => L(!0) }), typeof E == "function" ? c.jsx(E, { node: e }) : null] });
|
|
4079
4079
|
let y = "json-view--string";
|
|
4080
4080
|
switch (j) {
|
|
4081
4081
|
case "number":
|
|
@@ -4093,7 +4093,7 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
|
|
|
4093
4093
|
let N = String(e);
|
|
4094
4094
|
j === "bigint" && (N += "n");
|
|
4095
4095
|
const $ = z(() => c.jsx("span", { contentEditable: !0, className: y, dangerouslySetInnerHTML: { __html: j === "string" ? `"${N}"` : N }, ref: W, onKeyDown: D }), [N, j, D]);
|
|
4096
|
-
return j === "string" ? c.jsxs(c.Fragment, { children: [C ? $ : e.length > i ? c.jsx(
|
|
4096
|
+
return j === "string" ? c.jsxs(c.Fragment, { children: [C ? $ : e.length > i ? c.jsx(Ic, { 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] });
|
|
4097
4097
|
}
|
|
4098
4098
|
}
|
|
4099
4099
|
const Po = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/, be = Bo({
|
|
@@ -4127,7 +4127,7 @@ const Po = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^
|
|
|
4127
4127
|
DoneComponent: void 0,
|
|
4128
4128
|
CustomOperation: void 0
|
|
4129
4129
|
});
|
|
4130
|
-
function
|
|
4130
|
+
function dr({ 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: p, dark: g = !1, theme: v = "default", customizeNode: h, customizeCopy: x = (M) => Nc(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
4131
|
const [M, _] = G(0), D = de(() => _((B) => ++B), []), [O, R] = G(e);
|
|
4132
4132
|
return _e(() => R(e), [e]), c.jsx(be.Provider, Object.assign({ value: {
|
|
4133
4133
|
src: O,
|
|
@@ -4142,9 +4142,9 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
|
|
|
4142
4142
|
onEdit: l,
|
|
4143
4143
|
onDelete: f,
|
|
4144
4144
|
onAdd: d,
|
|
4145
|
-
onChange:
|
|
4145
|
+
onChange: p,
|
|
4146
4146
|
forceUpdate: D,
|
|
4147
|
-
customizeNode:
|
|
4147
|
+
customizeNode: h,
|
|
4148
4148
|
customizeCopy: x,
|
|
4149
4149
|
displaySize: b,
|
|
4150
4150
|
displayArrayIndex: S,
|
|
@@ -4157,7 +4157,7 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
|
|
|
4157
4157
|
CancelComponent: W,
|
|
4158
4158
|
DoneComponent: H,
|
|
4159
4159
|
CustomOperation: I
|
|
4160
|
-
} }, { children: c.jsx("code", Object.assign({ className: "json-view" + (
|
|
4160
|
+
} }, { children: c.jsx("code", Object.assign({ className: "json-view" + (g ? " dark" : "") + (v && v !== "default" ? " json-view_" + v : "") + (w ? " " + w : ""), style: E }, { children: c.jsx(Ao, { node: O, depth: 1, editHandle: (B, y, N, $) => {
|
|
4161
4161
|
R(y), l && l({
|
|
4162
4162
|
newValue: y,
|
|
4163
4163
|
oldValue: N,
|
|
@@ -4166,7 +4166,7 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
|
|
|
4166
4166
|
indexOrName: B,
|
|
4167
4167
|
parentType: null,
|
|
4168
4168
|
parentPath: $
|
|
4169
|
-
}),
|
|
4169
|
+
}), p && p({ type: "edit", depth: 1, src: O, indexOrName: B, parentType: null, parentPath: $ });
|
|
4170
4170
|
}, deleteHandle: (B, y) => {
|
|
4171
4171
|
R(void 0), f && f({
|
|
4172
4172
|
value: O,
|
|
@@ -4175,7 +4175,7 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
|
|
|
4175
4175
|
indexOrName: B,
|
|
4176
4176
|
parentType: null,
|
|
4177
4177
|
parentPath: y
|
|
4178
|
-
}),
|
|
4178
|
+
}), p && p({
|
|
4179
4179
|
depth: 1,
|
|
4180
4180
|
src: O,
|
|
4181
4181
|
indexOrName: B,
|
|
@@ -4185,8 +4185,8 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
|
|
|
4185
4185
|
});
|
|
4186
4186
|
}, parentPath: [] }) })) }));
|
|
4187
4187
|
}
|
|
4188
|
-
const
|
|
4189
|
-
const n = z(() => typeof e == "object" && e !== null, [e]), r = z(() =>
|
|
4188
|
+
const Hc = (e) => typeof e == "object" && e !== null ? JSON.stringify(e, null, 1) : e === null ? "null" : e.toString(), Jt = V(({ arg: e, popover: t = !0 }) => {
|
|
4189
|
+
const n = z(() => typeof e == "object" && e !== null, [e]), r = z(() => Hc(e), [e]), o = z(() => JSON.stringify(e, null, 2), [e]);
|
|
4190
4190
|
return t ? /* @__PURE__ */ c.jsxs(bo, { children: [
|
|
4191
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 }) }),
|
|
4192
4192
|
/* @__PURE__ */ c.jsx(
|
|
@@ -4195,18 +4195,18 @@ const Bc = (e) => typeof e == "object" && e !== null ? JSON.stringify(e, null, 1
|
|
|
4195
4195
|
className: "backdrop-blur-md w-auto max-w-2xl relative max-h-[50vh] overflow-y-auto",
|
|
4196
4196
|
hideWhenDetached: !0,
|
|
4197
4197
|
children: n ? /* @__PURE__ */ c.jsxs("div", { children: [
|
|
4198
|
-
/* @__PURE__ */ c.jsx(
|
|
4199
|
-
/* @__PURE__ */ c.jsx(
|
|
4198
|
+
/* @__PURE__ */ c.jsx(Dt, { textToCopy: o, className: "absolute top-4 right-4", title: "Copy JSON" }),
|
|
4199
|
+
/* @__PURE__ */ c.jsx(dr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } })
|
|
4200
4200
|
] }) : /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
4201
4201
|
/* @__PURE__ */ c.jsx("span", { children: r }),
|
|
4202
|
-
/* @__PURE__ */ c.jsx(
|
|
4202
|
+
/* @__PURE__ */ c.jsx(Dt, { textToCopy: o, className: "ml-2", title: "Copy JSON" })
|
|
4203
4203
|
] })
|
|
4204
4204
|
}
|
|
4205
4205
|
)
|
|
4206
|
-
] }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: n ? /* @__PURE__ */ c.jsx(
|
|
4206
|
+
] }) : /* @__PURE__ */ c.jsx(c.Fragment, { children: n ? /* @__PURE__ */ c.jsx(dr, { src: e, theme: "default", enableClipboard: !1, style: { padding: 0 } }) : /* @__PURE__ */ c.jsx("span", { className: "font-mono text-blue-500", children: r }) });
|
|
4207
4207
|
});
|
|
4208
|
-
|
|
4209
|
-
const
|
|
4208
|
+
Jt.displayName = "Argument";
|
|
4209
|
+
const Kt = V(({ callsQuantity: e, noQuantity: t = !1 }) => {
|
|
4210
4210
|
const n = e && e > 1;
|
|
4211
4211
|
return /* @__PURE__ */ c.jsxs("div", { className: "flex items-center", children: [
|
|
4212
4212
|
/* @__PURE__ */ c.jsx("span", { className: "font-mono text-emerald-500", children: ")" }),
|
|
@@ -4216,8 +4216,8 @@ const Jt = V(({ callsQuantity: e, noQuantity: t = !1 }) => {
|
|
|
4216
4216
|
] })
|
|
4217
4217
|
] });
|
|
4218
4218
|
});
|
|
4219
|
-
|
|
4220
|
-
const
|
|
4219
|
+
Kt.displayName = "ClosingParenthesis";
|
|
4220
|
+
const Qt = en(
|
|
4221
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: [
|
|
4222
4222
|
e && /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
4223
4223
|
/* @__PURE__ */ c.jsx("span", { className: "font-mono text-pink-500", children: e }),
|
|
@@ -4231,8 +4231,8 @@ const Kt = Qt(
|
|
|
4231
4231
|
/* @__PURE__ */ c.jsx("span", { className: "font-mono text-emerald-500", children: "(" })
|
|
4232
4232
|
] })
|
|
4233
4233
|
);
|
|
4234
|
-
|
|
4235
|
-
const
|
|
4234
|
+
Qt.displayName = "FunctionCallContent";
|
|
4235
|
+
const Bc = { gridTemplateColumns: "max-content 1fr max-content" }, wt = V(
|
|
4236
4236
|
({ topLevelClassName: e, objectName: t, functionName: n, args: r, callsQuantity: o }) => {
|
|
4237
4237
|
const s = z(() => r.filter((u) => u !== void 0), [r]), a = z(
|
|
4238
4238
|
() => ({ gridTemplateColumns: `repeat(${s.length * 2}, minmax(0, auto))` }),
|
|
@@ -4241,10 +4241,10 @@ const zc = { gridTemplateColumns: "max-content 1fr max-content" }, wt = V(
|
|
|
4241
4241
|
const u = [e, t].filter(Boolean).join("."), l = u ? `${u}.` : "", f = s.map((d) => typeof d == "object" && d !== null ? JSON.stringify(d, null, 2) : d === null ? "null" : typeof d == "string" ? `'${d}'` : String(d)).join(", ");
|
|
4242
4242
|
return `${l}${n}(${f})`;
|
|
4243
4243
|
}, [e, t, n, s]);
|
|
4244
|
-
return /* @__PURE__ */ c.jsxs("div", { className: "grid overflow-hidden items-center", style:
|
|
4244
|
+
return /* @__PURE__ */ c.jsxs("div", { className: "grid overflow-hidden items-center", style: Bc, children: [
|
|
4245
4245
|
/* @__PURE__ */ c.jsxs(bo, { children: [
|
|
4246
4246
|
/* @__PURE__ */ c.jsx(wo, { asChild: !0, children: /* @__PURE__ */ c.jsx(
|
|
4247
|
-
|
|
4247
|
+
Qt,
|
|
4248
4248
|
{
|
|
4249
4249
|
className: "cursor-pointer",
|
|
4250
4250
|
functionName: n,
|
|
@@ -4260,29 +4260,29 @@ const zc = { gridTemplateColumns: "max-content 1fr max-content" }, wt = V(
|
|
|
4260
4260
|
children: [
|
|
4261
4261
|
/* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
4262
4262
|
/* @__PURE__ */ c.jsx(
|
|
4263
|
-
|
|
4263
|
+
Qt,
|
|
4264
4264
|
{
|
|
4265
4265
|
functionName: n,
|
|
4266
4266
|
topLevelClassName: e,
|
|
4267
4267
|
objectName: t
|
|
4268
4268
|
}
|
|
4269
4269
|
),
|
|
4270
|
-
/* @__PURE__ */ c.jsx(
|
|
4270
|
+
/* @__PURE__ */ c.jsx(Dt, { textToCopy: i })
|
|
4271
4271
|
] }),
|
|
4272
4272
|
s.map((u, l) => /* @__PURE__ */ c.jsxs("div", { className: "grid grid-cols-[auto_1fr] items-center pl-4", children: [
|
|
4273
|
-
/* @__PURE__ */ c.jsx(
|
|
4273
|
+
/* @__PURE__ */ c.jsx(Jt, { arg: u, popover: !1 }),
|
|
4274
4274
|
l < s.length - 1 && /* @__PURE__ */ c.jsx("span", { children: ", " })
|
|
4275
4275
|
] }, l)),
|
|
4276
|
-
/* @__PURE__ */ c.jsx(
|
|
4276
|
+
/* @__PURE__ */ c.jsx(Kt, { callsQuantity: o, noQuantity: !0 })
|
|
4277
4277
|
]
|
|
4278
4278
|
}
|
|
4279
4279
|
)
|
|
4280
4280
|
] }),
|
|
4281
|
-
/* @__PURE__ */ c.jsx("div", { className: "grid items-center min-w-0", style: a, children: s.map((u, l) => /* @__PURE__ */ c.jsxs(
|
|
4282
|
-
/* @__PURE__ */ c.jsx(
|
|
4281
|
+
/* @__PURE__ */ c.jsx("div", { className: "grid items-center min-w-0", style: a, children: s.map((u, l) => /* @__PURE__ */ c.jsxs(hr, { children: [
|
|
4282
|
+
/* @__PURE__ */ c.jsx(Jt, { arg: u }),
|
|
4283
4283
|
l < s.length - 1 && /* @__PURE__ */ c.jsx("span", { children: ", " })
|
|
4284
4284
|
] }, l)) }),
|
|
4285
|
-
/* @__PURE__ */ c.jsx(
|
|
4285
|
+
/* @__PURE__ */ c.jsx(Kt, { callsQuantity: o })
|
|
4286
4286
|
] });
|
|
4287
4287
|
}
|
|
4288
4288
|
);
|
|
@@ -4331,9 +4331,9 @@ const ko = V(({ event: e }) => {
|
|
|
4331
4331
|
return /* @__PURE__ */ c.jsx(To, { event: e });
|
|
4332
4332
|
});
|
|
4333
4333
|
ko.displayName = "TraceEvent";
|
|
4334
|
-
const Mo = V(({ event: e, traceStartTime: t }) => /* @__PURE__ */ c.jsxs(
|
|
4334
|
+
const Mo = V(({ event: e, traceStartTime: t }) => /* @__PURE__ */ c.jsxs(hr, { children: [
|
|
4335
4335
|
/* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx("div", { className: "w-1 h-1 rounded-full bg-emerald-500 outline outline-2 outline-emerald-500/50 -ml-[26px]" }) }),
|
|
4336
|
-
/* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx(
|
|
4336
|
+
/* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx(As, { event: e }) }),
|
|
4337
4337
|
/* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsxs("span", { className: "text-sm font-mono text-muted-foreground", children: [
|
|
4338
4338
|
"+",
|
|
4339
4339
|
we(Math.floor(e.timestamp - t))
|
|
@@ -4359,7 +4359,7 @@ const _o = V(({ trace: e, onClose: t }) => {
|
|
|
4359
4359
|
we(e.endTime - e.startTime)
|
|
4360
4360
|
] }),
|
|
4361
4361
|
/* @__PURE__ */ c.jsx("div", { className: "bg-blue-500 font-bold text-xs px-[4px] py-[2px] rounded-sm text-blue-100", children: e.entryPoint.type }),
|
|
4362
|
-
e.correlationId && /* @__PURE__ */ c.jsxs(
|
|
4362
|
+
e.correlationId && /* @__PURE__ */ c.jsxs(gr, { variant: "outline", children: [
|
|
4363
4363
|
"Correlated: ",
|
|
4364
4364
|
e.correlationId
|
|
4365
4365
|
] })
|
|
@@ -4381,50 +4381,47 @@ const Do = V(() => {
|
|
|
4381
4381
|
});
|
|
4382
4382
|
Do.displayName = "TraceTimeline";
|
|
4383
4383
|
const Fo = V(({ groupId: e }) => {
|
|
4384
|
-
const t = z(
|
|
4385
|
-
|
|
4386
|
-
[
|
|
4387
|
-
|
|
4388
|
-
return n ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
4389
|
-
/* @__PURE__ */ c.jsx("div", { className: "flex flex-col flex-1 relative min-h-full min-w-[1000px]", children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col", style: { width: `${a}%` }, children: [
|
|
4390
|
-
/* @__PURE__ */ c.jsxs("div", { className: "flex flex-1 bg-background", style: { width: `${a}%` }, children: [
|
|
4384
|
+
const t = z(() => ({ streamName: "motia-trace-group", groupId: "default" }), []), { data: n } = _t(t), r = z(() => n.find((v) => v.id === e), [n, e]), o = z(() => ({ streamName: "motia-trace", groupId: e }), [e]), { data: s } = _t(o), a = gs(r), [i, u] = G(100), l = K((v) => v.selectedTraceId), f = K((v) => v.selectTraceId), d = z(() => s?.find((v) => v.id === l), [s, l]), p = () => i > 100 && u((v) => v - 10), g = () => i < 200 && u((v) => v + 10);
|
|
4385
|
+
return r ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
4386
|
+
/* @__PURE__ */ c.jsx("div", { className: "flex flex-col flex-1 relative min-h-full min-w-[1000px]", children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col", style: { width: `${i}%` }, children: [
|
|
4387
|
+
/* @__PURE__ */ c.jsxs("div", { className: "flex flex-1 bg-background", style: { width: `${i}%` }, children: [
|
|
4391
4388
|
/* @__PURE__ */ c.jsxs("div", { className: "shrink-0 w-[200px] h-[37px] flex items-center justify-center gap-2 sticky left-0 top-0 z-10 bg-card backdrop-blur-xs backdrop-filter", children: [
|
|
4392
|
-
/* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick:
|
|
4389
|
+
/* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: p, disabled: i <= 100, children: /* @__PURE__ */ c.jsx(ms, { className: "w-4 h-4 cursor-pointer" }) }),
|
|
4393
4390
|
/* @__PURE__ */ c.jsxs("span", { className: "min-w-12 text-center select-none text-sm font-bold text-muted-foreground", children: [
|
|
4394
|
-
|
|
4391
|
+
i,
|
|
4395
4392
|
"%"
|
|
4396
4393
|
] }),
|
|
4397
|
-
/* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick:
|
|
4394
|
+
/* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: g, disabled: i >= 200, children: /* @__PURE__ */ c.jsx(hs, { className: "w-4 h-4 cursor-pointer" }) })
|
|
4398
4395
|
] }),
|
|
4399
4396
|
/* @__PURE__ */ c.jsxs("div", { className: "flex justify-between font-mono p-2 w-full text-xs text-muted-foreground bg-card", children: [
|
|
4400
4397
|
/* @__PURE__ */ c.jsx("span", { children: "0ms" }),
|
|
4401
|
-
/* @__PURE__ */ c.jsx("span", { children: we(Math.floor((
|
|
4402
|
-
/* @__PURE__ */ c.jsx("span", { children: we(Math.floor((
|
|
4403
|
-
/* @__PURE__ */ c.jsx("span", { children: we(Math.floor((
|
|
4404
|
-
/* @__PURE__ */ c.jsx("span", { children: we(Math.floor(
|
|
4398
|
+
/* @__PURE__ */ c.jsx("span", { children: we(Math.floor((a - r.startTime) * 0.25)) }),
|
|
4399
|
+
/* @__PURE__ */ c.jsx("span", { children: we(Math.floor((a - r.startTime) * 0.5)) }),
|
|
4400
|
+
/* @__PURE__ */ c.jsx("span", { children: we(Math.floor((a - r.startTime) * 0.75)) }),
|
|
4401
|
+
/* @__PURE__ */ c.jsx("span", { children: we(Math.floor(a - r.startTime)) })
|
|
4405
4402
|
] })
|
|
4406
4403
|
] }),
|
|
4407
|
-
/* @__PURE__ */ c.jsx("div", { className: "flex flex-col h-full", style: { width: `${
|
|
4404
|
+
/* @__PURE__ */ c.jsx("div", { className: "flex flex-col h-full", style: { width: `${i}%` }, children: s?.map((v) => /* @__PURE__ */ c.jsx(
|
|
4408
4405
|
jr,
|
|
4409
4406
|
{
|
|
4410
|
-
traceId:
|
|
4411
|
-
traceName:
|
|
4412
|
-
traceStatus:
|
|
4413
|
-
traceStartTime:
|
|
4414
|
-
traceEndTime:
|
|
4415
|
-
groupStartTime:
|
|
4416
|
-
groupEndTime:
|
|
4417
|
-
onExpand:
|
|
4407
|
+
traceId: v.id,
|
|
4408
|
+
traceName: v.name,
|
|
4409
|
+
traceStatus: v.status,
|
|
4410
|
+
traceStartTime: v.startTime,
|
|
4411
|
+
traceEndTime: v.endTime,
|
|
4412
|
+
groupStartTime: r.startTime,
|
|
4413
|
+
groupEndTime: a,
|
|
4414
|
+
onExpand: f
|
|
4418
4415
|
},
|
|
4419
|
-
|
|
4416
|
+
v.id
|
|
4420
4417
|
)) })
|
|
4421
4418
|
] }) }),
|
|
4422
|
-
|
|
4419
|
+
d && /* @__PURE__ */ c.jsx(_o, { trace: d, onClose: () => f(void 0) })
|
|
4423
4420
|
] }) : null;
|
|
4424
4421
|
});
|
|
4425
4422
|
Fo.displayName = "TraceTimelineComponent";
|
|
4426
|
-
const
|
|
4427
|
-
const e = z(() => ({ streamName: "motia-trace-group", groupId: "default" }), []), { data: t } =
|
|
4423
|
+
const zc = () => {
|
|
4424
|
+
const e = z(() => ({ streamName: "motia-trace-group", groupId: "default" }), []), { data: t } = _t(e), n = K((r) => r.search);
|
|
4428
4425
|
return z(
|
|
4429
4426
|
() => t?.filter(
|
|
4430
4427
|
(r) => r.name.toLowerCase().includes(n.toLowerCase()) || r.id.toLowerCase().includes(n.toLowerCase())
|
|
@@ -4436,15 +4433,15 @@ function Y(e) {
|
|
|
4436
4433
|
const t = Object.prototype.toString.call(e);
|
|
4437
4434
|
return e instanceof Date || typeof e == "object" && t === "[object Date]" ? new e.constructor(+e) : typeof e == "number" || t === "[object Number]" || typeof e == "string" || t === "[object String]" ? new Date(e) : /* @__PURE__ */ new Date(NaN);
|
|
4438
4435
|
}
|
|
4439
|
-
function
|
|
4436
|
+
function Vc(e, t) {
|
|
4440
4437
|
return e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
4441
4438
|
}
|
|
4442
|
-
const rt = 43200,
|
|
4443
|
-
let
|
|
4444
|
-
function
|
|
4445
|
-
return
|
|
4439
|
+
const rt = 43200, mr = 1440;
|
|
4440
|
+
let Uc = {};
|
|
4441
|
+
function Yc() {
|
|
4442
|
+
return Uc;
|
|
4446
4443
|
}
|
|
4447
|
-
function
|
|
4444
|
+
function pr(e) {
|
|
4448
4445
|
const t = Y(e), n = new Date(
|
|
4449
4446
|
Date.UTC(
|
|
4450
4447
|
t.getFullYear(),
|
|
@@ -4462,37 +4459,37 @@ function it(e, t) {
|
|
|
4462
4459
|
const n = Y(e), r = Y(t), o = n.getTime() - r.getTime();
|
|
4463
4460
|
return o < 0 ? -1 : o > 0 ? 1 : o;
|
|
4464
4461
|
}
|
|
4465
|
-
function
|
|
4466
|
-
return
|
|
4462
|
+
function Gc(e) {
|
|
4463
|
+
return Vc(e, Date.now());
|
|
4467
4464
|
}
|
|
4468
|
-
function
|
|
4465
|
+
function Zc(e, t) {
|
|
4469
4466
|
const n = Y(e), r = Y(t), o = n.getFullYear() - r.getFullYear(), s = n.getMonth() - r.getMonth();
|
|
4470
4467
|
return o * 12 + s;
|
|
4471
4468
|
}
|
|
4472
|
-
function
|
|
4469
|
+
function Xc(e) {
|
|
4473
4470
|
return (t) => {
|
|
4474
4471
|
const n = Math.trunc, r = n(t);
|
|
4475
4472
|
return r === 0 ? 0 : r;
|
|
4476
4473
|
};
|
|
4477
4474
|
}
|
|
4478
|
-
function
|
|
4475
|
+
function qc(e, t) {
|
|
4479
4476
|
return +Y(e) - +Y(t);
|
|
4480
4477
|
}
|
|
4481
|
-
function
|
|
4478
|
+
function Jc(e) {
|
|
4482
4479
|
const t = Y(e);
|
|
4483
4480
|
return t.setHours(23, 59, 59, 999), t;
|
|
4484
4481
|
}
|
|
4485
|
-
function
|
|
4482
|
+
function Kc(e) {
|
|
4486
4483
|
const t = Y(e), n = t.getMonth();
|
|
4487
4484
|
return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(23, 59, 59, 999), t;
|
|
4488
4485
|
}
|
|
4489
|
-
function
|
|
4486
|
+
function Qc(e) {
|
|
4490
4487
|
const t = Y(e);
|
|
4491
|
-
return +
|
|
4488
|
+
return +Jc(t) == +Kc(t);
|
|
4492
4489
|
}
|
|
4493
|
-
function
|
|
4490
|
+
function el(e, t) {
|
|
4494
4491
|
const n = Y(e), r = Y(t), o = it(n, r), s = Math.abs(
|
|
4495
|
-
|
|
4492
|
+
Zc(n, r)
|
|
4496
4493
|
);
|
|
4497
4494
|
let a;
|
|
4498
4495
|
if (s < 1)
|
|
@@ -4500,15 +4497,15 @@ function tl(e, t) {
|
|
|
4500
4497
|
else {
|
|
4501
4498
|
n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - o * s);
|
|
4502
4499
|
let i = it(n, r) === -o;
|
|
4503
|
-
|
|
4500
|
+
Qc(Y(e)) && s === 1 && it(e, r) === 1 && (i = !1), a = o * (s - Number(i));
|
|
4504
4501
|
}
|
|
4505
4502
|
return a === 0 ? 0 : a;
|
|
4506
4503
|
}
|
|
4507
|
-
function
|
|
4508
|
-
const r =
|
|
4509
|
-
return
|
|
4504
|
+
function tl(e, t, n) {
|
|
4505
|
+
const r = qc(e, t) / 1e3;
|
|
4506
|
+
return Xc()(r);
|
|
4510
4507
|
}
|
|
4511
|
-
const
|
|
4508
|
+
const nl = {
|
|
4512
4509
|
lessThanXSeconds: {
|
|
4513
4510
|
one: "less than a second",
|
|
4514
4511
|
other: "less than {{count}} seconds"
|
|
@@ -4570,9 +4567,9 @@ const rl = {
|
|
|
4570
4567
|
one: "almost 1 year",
|
|
4571
4568
|
other: "almost {{count}} years"
|
|
4572
4569
|
}
|
|
4573
|
-
},
|
|
4570
|
+
}, rl = (e, t, n) => {
|
|
4574
4571
|
let r;
|
|
4575
|
-
const o =
|
|
4572
|
+
const o = nl[e];
|
|
4576
4573
|
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;
|
|
4577
4574
|
};
|
|
4578
4575
|
function kt(e) {
|
|
@@ -4581,42 +4578,42 @@ function kt(e) {
|
|
|
4581
4578
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
4582
4579
|
};
|
|
4583
4580
|
}
|
|
4584
|
-
const
|
|
4581
|
+
const ol = {
|
|
4585
4582
|
full: "EEEE, MMMM do, y",
|
|
4586
4583
|
long: "MMMM do, y",
|
|
4587
4584
|
medium: "MMM d, y",
|
|
4588
4585
|
short: "MM/dd/yyyy"
|
|
4589
|
-
},
|
|
4586
|
+
}, sl = {
|
|
4590
4587
|
full: "h:mm:ss a zzzz",
|
|
4591
4588
|
long: "h:mm:ss a z",
|
|
4592
4589
|
medium: "h:mm:ss a",
|
|
4593
4590
|
short: "h:mm a"
|
|
4594
|
-
},
|
|
4591
|
+
}, al = {
|
|
4595
4592
|
full: "{{date}} 'at' {{time}}",
|
|
4596
4593
|
long: "{{date}} 'at' {{time}}",
|
|
4597
4594
|
medium: "{{date}}, {{time}}",
|
|
4598
4595
|
short: "{{date}}, {{time}}"
|
|
4599
|
-
},
|
|
4596
|
+
}, il = {
|
|
4600
4597
|
date: kt({
|
|
4601
|
-
formats:
|
|
4598
|
+
formats: ol,
|
|
4602
4599
|
defaultWidth: "full"
|
|
4603
4600
|
}),
|
|
4604
4601
|
time: kt({
|
|
4605
|
-
formats:
|
|
4602
|
+
formats: sl,
|
|
4606
4603
|
defaultWidth: "full"
|
|
4607
4604
|
}),
|
|
4608
4605
|
dateTime: kt({
|
|
4609
|
-
formats:
|
|
4606
|
+
formats: al,
|
|
4610
4607
|
defaultWidth: "full"
|
|
4611
4608
|
})
|
|
4612
|
-
},
|
|
4609
|
+
}, cl = {
|
|
4613
4610
|
lastWeek: "'last' eeee 'at' p",
|
|
4614
4611
|
yesterday: "'yesterday at' p",
|
|
4615
4612
|
today: "'today at' p",
|
|
4616
4613
|
tomorrow: "'tomorrow at' p",
|
|
4617
4614
|
nextWeek: "eeee 'at' p",
|
|
4618
4615
|
other: "P"
|
|
4619
|
-
},
|
|
4616
|
+
}, ll = (e, t, n, r) => cl[e];
|
|
4620
4617
|
function Be(e) {
|
|
4621
4618
|
return (t, n) => {
|
|
4622
4619
|
const r = n?.context ? String(n.context) : "standalone";
|
|
@@ -4632,15 +4629,15 @@ function Be(e) {
|
|
|
4632
4629
|
return o[s];
|
|
4633
4630
|
};
|
|
4634
4631
|
}
|
|
4635
|
-
const
|
|
4632
|
+
const ul = {
|
|
4636
4633
|
narrow: ["B", "A"],
|
|
4637
4634
|
abbreviated: ["BC", "AD"],
|
|
4638
4635
|
wide: ["Before Christ", "Anno Domini"]
|
|
4639
|
-
},
|
|
4636
|
+
}, fl = {
|
|
4640
4637
|
narrow: ["1", "2", "3", "4"],
|
|
4641
4638
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
4642
4639
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
4643
|
-
},
|
|
4640
|
+
}, dl = {
|
|
4644
4641
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
4645
4642
|
abbreviated: [
|
|
4646
4643
|
"Jan",
|
|
@@ -4670,7 +4667,7 @@ const fl = {
|
|
|
4670
4667
|
"November",
|
|
4671
4668
|
"December"
|
|
4672
4669
|
]
|
|
4673
|
-
},
|
|
4670
|
+
}, ml = {
|
|
4674
4671
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
4675
4672
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
4676
4673
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -4683,7 +4680,7 @@ const fl = {
|
|
|
4683
4680
|
"Friday",
|
|
4684
4681
|
"Saturday"
|
|
4685
4682
|
]
|
|
4686
|
-
},
|
|
4683
|
+
}, pl = {
|
|
4687
4684
|
narrow: {
|
|
4688
4685
|
am: "a",
|
|
4689
4686
|
pm: "p",
|
|
@@ -4714,7 +4711,7 @@ const fl = {
|
|
|
4714
4711
|
evening: "evening",
|
|
4715
4712
|
night: "night"
|
|
4716
4713
|
}
|
|
4717
|
-
},
|
|
4714
|
+
}, hl = {
|
|
4718
4715
|
narrow: {
|
|
4719
4716
|
am: "a",
|
|
4720
4717
|
pm: "p",
|
|
@@ -4745,7 +4742,7 @@ const fl = {
|
|
|
4745
4742
|
evening: "in the evening",
|
|
4746
4743
|
night: "at night"
|
|
4747
4744
|
}
|
|
4748
|
-
},
|
|
4745
|
+
}, gl = (e, t) => {
|
|
4749
4746
|
const n = Number(e), r = n % 100;
|
|
4750
4747
|
if (r > 20 || r < 10)
|
|
4751
4748
|
switch (r % 10) {
|
|
@@ -4757,29 +4754,29 @@ const fl = {
|
|
|
4757
4754
|
return n + "rd";
|
|
4758
4755
|
}
|
|
4759
4756
|
return n + "th";
|
|
4760
|
-
},
|
|
4761
|
-
ordinalNumber:
|
|
4757
|
+
}, vl = {
|
|
4758
|
+
ordinalNumber: gl,
|
|
4762
4759
|
era: Be({
|
|
4763
|
-
values:
|
|
4760
|
+
values: ul,
|
|
4764
4761
|
defaultWidth: "wide"
|
|
4765
4762
|
}),
|
|
4766
4763
|
quarter: Be({
|
|
4767
|
-
values:
|
|
4764
|
+
values: fl,
|
|
4768
4765
|
defaultWidth: "wide",
|
|
4769
4766
|
argumentCallback: (e) => e - 1
|
|
4770
4767
|
}),
|
|
4771
4768
|
month: Be({
|
|
4772
|
-
values:
|
|
4769
|
+
values: dl,
|
|
4773
4770
|
defaultWidth: "wide"
|
|
4774
4771
|
}),
|
|
4775
4772
|
day: Be({
|
|
4776
|
-
values:
|
|
4773
|
+
values: ml,
|
|
4777
4774
|
defaultWidth: "wide"
|
|
4778
4775
|
}),
|
|
4779
4776
|
dayPeriod: Be({
|
|
4780
|
-
values:
|
|
4777
|
+
values: pl,
|
|
4781
4778
|
defaultWidth: "wide",
|
|
4782
|
-
formattingValues:
|
|
4779
|
+
formattingValues: hl,
|
|
4783
4780
|
defaultFormattingWidth: "wide"
|
|
4784
4781
|
})
|
|
4785
4782
|
};
|
|
@@ -4788,9 +4785,9 @@ function ze(e) {
|
|
|
4788
4785
|
const r = n.width, o = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(o);
|
|
4789
4786
|
if (!s)
|
|
4790
4787
|
return null;
|
|
4791
|
-
const a = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(i) ?
|
|
4788
|
+
const a = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(i) ? xl(i, (d) => d.test(a)) : (
|
|
4792
4789
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
4793
|
-
|
|
4790
|
+
yl(i, (d) => d.test(a))
|
|
4794
4791
|
);
|
|
4795
4792
|
let l;
|
|
4796
4793
|
l = e.valueCallback ? e.valueCallback(u) : u, l = n.valueCallback ? (
|
|
@@ -4801,17 +4798,17 @@ function ze(e) {
|
|
|
4801
4798
|
return { value: l, rest: f };
|
|
4802
4799
|
};
|
|
4803
4800
|
}
|
|
4804
|
-
function
|
|
4801
|
+
function yl(e, t) {
|
|
4805
4802
|
for (const n in e)
|
|
4806
4803
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
4807
4804
|
return n;
|
|
4808
4805
|
}
|
|
4809
|
-
function
|
|
4806
|
+
function xl(e, t) {
|
|
4810
4807
|
for (let n = 0; n < e.length; n++)
|
|
4811
4808
|
if (t(e[n]))
|
|
4812
4809
|
return n;
|
|
4813
4810
|
}
|
|
4814
|
-
function
|
|
4811
|
+
function bl(e) {
|
|
4815
4812
|
return (t, n = {}) => {
|
|
4816
4813
|
const r = t.match(e.matchPattern);
|
|
4817
4814
|
if (!r) return null;
|
|
@@ -4823,23 +4820,23 @@ function wl(e) {
|
|
|
4823
4820
|
return { value: a, rest: i };
|
|
4824
4821
|
};
|
|
4825
4822
|
}
|
|
4826
|
-
const
|
|
4823
|
+
const wl = /^(\d+)(th|st|nd|rd)?/i, jl = /\d+/i, Cl = {
|
|
4827
4824
|
narrow: /^(b|a)/i,
|
|
4828
4825
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
4829
4826
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
4830
|
-
},
|
|
4827
|
+
}, El = {
|
|
4831
4828
|
any: [/^b/i, /^(a|c)/i]
|
|
4832
|
-
},
|
|
4829
|
+
}, Sl = {
|
|
4833
4830
|
narrow: /^[1234]/i,
|
|
4834
4831
|
abbreviated: /^q[1234]/i,
|
|
4835
4832
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
4836
|
-
},
|
|
4833
|
+
}, Al = {
|
|
4837
4834
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
4838
|
-
},
|
|
4835
|
+
}, Pl = {
|
|
4839
4836
|
narrow: /^[jfmasond]/i,
|
|
4840
4837
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
4841
4838
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
4842
|
-
},
|
|
4839
|
+
}, Nl = {
|
|
4843
4840
|
narrow: [
|
|
4844
4841
|
/^j/i,
|
|
4845
4842
|
/^f/i,
|
|
@@ -4868,18 +4865,18 @@ const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
|
|
|
4868
4865
|
/^n/i,
|
|
4869
4866
|
/^d/i
|
|
4870
4867
|
]
|
|
4871
|
-
},
|
|
4868
|
+
}, Rl = {
|
|
4872
4869
|
narrow: /^[smtwf]/i,
|
|
4873
4870
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
4874
4871
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
4875
4872
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
4876
|
-
},
|
|
4873
|
+
}, Ol = {
|
|
4877
4874
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
4878
4875
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
4879
|
-
},
|
|
4876
|
+
}, Tl = {
|
|
4880
4877
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
4881
4878
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
4882
|
-
},
|
|
4879
|
+
}, kl = {
|
|
4883
4880
|
any: {
|
|
4884
4881
|
am: /^a/i,
|
|
4885
4882
|
pm: /^p/i,
|
|
@@ -4890,57 +4887,57 @@ const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
|
|
|
4890
4887
|
evening: /evening/i,
|
|
4891
4888
|
night: /night/i
|
|
4892
4889
|
}
|
|
4893
|
-
},
|
|
4894
|
-
ordinalNumber:
|
|
4895
|
-
matchPattern:
|
|
4896
|
-
parsePattern:
|
|
4890
|
+
}, Ml = {
|
|
4891
|
+
ordinalNumber: bl({
|
|
4892
|
+
matchPattern: wl,
|
|
4893
|
+
parsePattern: jl,
|
|
4897
4894
|
valueCallback: (e) => parseInt(e, 10)
|
|
4898
4895
|
}),
|
|
4899
4896
|
era: ze({
|
|
4900
|
-
matchPatterns:
|
|
4897
|
+
matchPatterns: Cl,
|
|
4901
4898
|
defaultMatchWidth: "wide",
|
|
4902
|
-
parsePatterns:
|
|
4899
|
+
parsePatterns: El,
|
|
4903
4900
|
defaultParseWidth: "any"
|
|
4904
4901
|
}),
|
|
4905
4902
|
quarter: ze({
|
|
4906
|
-
matchPatterns:
|
|
4903
|
+
matchPatterns: Sl,
|
|
4907
4904
|
defaultMatchWidth: "wide",
|
|
4908
|
-
parsePatterns:
|
|
4905
|
+
parsePatterns: Al,
|
|
4909
4906
|
defaultParseWidth: "any",
|
|
4910
4907
|
valueCallback: (e) => e + 1
|
|
4911
4908
|
}),
|
|
4912
4909
|
month: ze({
|
|
4913
|
-
matchPatterns:
|
|
4910
|
+
matchPatterns: Pl,
|
|
4914
4911
|
defaultMatchWidth: "wide",
|
|
4915
|
-
parsePatterns:
|
|
4912
|
+
parsePatterns: Nl,
|
|
4916
4913
|
defaultParseWidth: "any"
|
|
4917
4914
|
}),
|
|
4918
4915
|
day: ze({
|
|
4919
|
-
matchPatterns:
|
|
4916
|
+
matchPatterns: Rl,
|
|
4920
4917
|
defaultMatchWidth: "wide",
|
|
4921
|
-
parsePatterns:
|
|
4918
|
+
parsePatterns: Ol,
|
|
4922
4919
|
defaultParseWidth: "any"
|
|
4923
4920
|
}),
|
|
4924
4921
|
dayPeriod: ze({
|
|
4925
|
-
matchPatterns:
|
|
4922
|
+
matchPatterns: Tl,
|
|
4926
4923
|
defaultMatchWidth: "any",
|
|
4927
|
-
parsePatterns:
|
|
4924
|
+
parsePatterns: kl,
|
|
4928
4925
|
defaultParseWidth: "any"
|
|
4929
4926
|
})
|
|
4930
|
-
},
|
|
4927
|
+
}, _l = {
|
|
4931
4928
|
code: "en-US",
|
|
4932
|
-
formatDistance:
|
|
4933
|
-
formatLong:
|
|
4934
|
-
formatRelative:
|
|
4935
|
-
localize:
|
|
4936
|
-
match:
|
|
4929
|
+
formatDistance: rl,
|
|
4930
|
+
formatLong: il,
|
|
4931
|
+
formatRelative: ll,
|
|
4932
|
+
localize: vl,
|
|
4933
|
+
match: Ml,
|
|
4937
4934
|
options: {
|
|
4938
4935
|
weekStartsOn: 0,
|
|
4939
4936
|
firstWeekContainsDate: 1
|
|
4940
4937
|
}
|
|
4941
4938
|
};
|
|
4942
|
-
function
|
|
4943
|
-
const r =
|
|
4939
|
+
function Dl(e, t, n) {
|
|
4940
|
+
const r = Yc(), o = n?.locale ?? r.locale ?? _l, s = 2520, a = it(e, t);
|
|
4944
4941
|
if (isNaN(a))
|
|
4945
4942
|
throw new RangeError("Invalid time value");
|
|
4946
4943
|
const i = Object.assign({}, n, {
|
|
@@ -4949,43 +4946,43 @@ function Fl(e, t, n) {
|
|
|
4949
4946
|
});
|
|
4950
4947
|
let u, l;
|
|
4951
4948
|
a > 0 ? (u = Y(t), l = Y(e)) : (u = Y(e), l = Y(t));
|
|
4952
|
-
const f =
|
|
4953
|
-
let
|
|
4954
|
-
if (
|
|
4955
|
-
return
|
|
4956
|
-
if (
|
|
4957
|
-
return o.formatDistance("xMinutes",
|
|
4958
|
-
if (
|
|
4949
|
+
const f = tl(l, u), d = (pr(l) - pr(u)) / 1e3, p = Math.round((f - d) / 60);
|
|
4950
|
+
let g;
|
|
4951
|
+
if (p < 2)
|
|
4952
|
+
return p === 0 ? o.formatDistance("lessThanXMinutes", 1, i) : o.formatDistance("xMinutes", p, i);
|
|
4953
|
+
if (p < 45)
|
|
4954
|
+
return o.formatDistance("xMinutes", p, i);
|
|
4955
|
+
if (p < 90)
|
|
4959
4956
|
return o.formatDistance("aboutXHours", 1, i);
|
|
4960
|
-
if (
|
|
4961
|
-
const v = Math.round(
|
|
4957
|
+
if (p < mr) {
|
|
4958
|
+
const v = Math.round(p / 60);
|
|
4962
4959
|
return o.formatDistance("aboutXHours", v, i);
|
|
4963
4960
|
} else {
|
|
4964
|
-
if (
|
|
4961
|
+
if (p < s)
|
|
4965
4962
|
return o.formatDistance("xDays", 1, i);
|
|
4966
|
-
if (
|
|
4967
|
-
const v = Math.round(
|
|
4963
|
+
if (p < rt) {
|
|
4964
|
+
const v = Math.round(p / mr);
|
|
4968
4965
|
return o.formatDistance("xDays", v, i);
|
|
4969
|
-
} else if (
|
|
4970
|
-
return
|
|
4966
|
+
} else if (p < rt * 2)
|
|
4967
|
+
return g = Math.round(p / rt), o.formatDistance("aboutXMonths", g, i);
|
|
4971
4968
|
}
|
|
4972
|
-
if (
|
|
4973
|
-
const v = Math.round(
|
|
4969
|
+
if (g = el(l, u), g < 12) {
|
|
4970
|
+
const v = Math.round(p / rt);
|
|
4974
4971
|
return o.formatDistance("xMonths", v, i);
|
|
4975
4972
|
} else {
|
|
4976
|
-
const v =
|
|
4977
|
-
return v < 3 ? o.formatDistance("aboutXYears",
|
|
4973
|
+
const v = g % 12, h = Math.trunc(g / 12);
|
|
4974
|
+
return v < 3 ? o.formatDistance("aboutXYears", h, i) : v < 9 ? o.formatDistance("overXYears", h, i) : o.formatDistance("almostXYears", h + 1, i);
|
|
4978
4975
|
}
|
|
4979
4976
|
}
|
|
4980
|
-
function
|
|
4981
|
-
return
|
|
4977
|
+
function Fl(e, t) {
|
|
4978
|
+
return Dl(e, Gc(e), t);
|
|
4982
4979
|
}
|
|
4983
|
-
const
|
|
4980
|
+
const Ll = {
|
|
4984
4981
|
running: "info",
|
|
4985
4982
|
completed: "success",
|
|
4986
4983
|
failed: "error",
|
|
4987
4984
|
default: "default"
|
|
4988
|
-
}, Lo = V(({ status: e, duration: t }) => /* @__PURE__ */ c.jsx(
|
|
4985
|
+
}, Lo = V(({ status: e, duration: t }) => /* @__PURE__ */ c.jsx(gr, { variant: Ll[e], children: t && e !== "failed" ? t : e }));
|
|
4989
4986
|
Lo.displayName = "TraceStatusBadge";
|
|
4990
4987
|
const Io = V(
|
|
4991
4988
|
({ groupId: e, groupName: t, groupStatus: n, groupStartTime: r, groupEndTime: o, totalSteps: s, activeSteps: a, isSelected: i }) => {
|
|
@@ -5019,7 +5016,7 @@ const Io = V(
|
|
|
5019
5016
|
] })
|
|
5020
5017
|
] }),
|
|
5021
5018
|
/* @__PURE__ */ c.jsxs("div", { className: "flex justify-between", children: [
|
|
5022
|
-
|
|
5019
|
+
Fl(r),
|
|
5023
5020
|
" ago"
|
|
5024
5021
|
] }),
|
|
5025
5022
|
a > 0 && /* @__PURE__ */ c.jsxs("div", { className: "text-blue-600", children: [
|
|
@@ -5035,7 +5032,7 @@ const Io = V(
|
|
|
5035
5032
|
);
|
|
5036
5033
|
Io.displayName = "TraceGroupItem";
|
|
5037
5034
|
const $o = V(() => {
|
|
5038
|
-
const e =
|
|
5035
|
+
const e = zc(), t = K((a) => a.selectedTraceGroupId), n = K((a) => a.selectTraceGroupId), r = z(() => e?.length || 0, [e]), o = z(() => {
|
|
5039
5036
|
if (!e || e.length === 0) return "";
|
|
5040
5037
|
const a = e[e.length - 1];
|
|
5041
5038
|
return a?.status === "running" ? a.id : "";
|
|
@@ -5060,7 +5057,7 @@ const $o = V(() => {
|
|
|
5060
5057
|
)) });
|
|
5061
5058
|
});
|
|
5062
5059
|
$o.displayName = "TracesGroups";
|
|
5063
|
-
const
|
|
5060
|
+
const Il = V(() => /* @__PURE__ */ c.jsxs("div", { className: "grid grid-rows-[auto_1fr] h-full", children: [
|
|
5064
5061
|
/* @__PURE__ */ c.jsx(br, {}),
|
|
5065
5062
|
/* @__PURE__ */ c.jsxs("div", { className: "grid grid-cols-[300px_1fr] overflow-hidden", children: [
|
|
5066
5063
|
/* @__PURE__ */ c.jsx("div", { className: "w-[300px] border-r border-border overflow-auto h-full", "data-testid": "traces-container", children: /* @__PURE__ */ c.jsx($o, {}) }),
|
|
@@ -5070,23 +5067,23 @@ const $l = V(() => /* @__PURE__ */ c.jsxs("div", { className: "grid grid-rows-[a
|
|
|
5070
5067
|
] })
|
|
5071
5068
|
] })
|
|
5072
5069
|
] }));
|
|
5073
|
-
|
|
5070
|
+
Il.displayName = "ObservabilityPage";
|
|
5074
5071
|
/**
|
|
5075
5072
|
* @license lucide-react v0.545.0 - ISC
|
|
5076
5073
|
*
|
|
5077
5074
|
* This source code is licensed under the ISC license.
|
|
5078
5075
|
* See the LICENSE file in the root directory of this source tree.
|
|
5079
5076
|
*/
|
|
5080
|
-
const
|
|
5077
|
+
const $l = [
|
|
5081
5078
|
["path", { d: "M6 5h12", key: "fvfigv" }],
|
|
5082
5079
|
["path", { d: "M4 12h10", key: "oujl3d" }],
|
|
5083
5080
|
["path", { d: "M12 19h8", key: "baeox8" }]
|
|
5084
|
-
],
|
|
5085
|
-
/* @__PURE__ */ c.jsx(
|
|
5081
|
+
], Wl = J("chart-no-axes-gantt", $l), Hl = V(() => /* @__PURE__ */ c.jsxs("div", { "data-testid": "observability-link", children: [
|
|
5082
|
+
/* @__PURE__ */ c.jsx(Wl, { "aria-hidden": "true" }),
|
|
5086
5083
|
/* @__PURE__ */ c.jsx("span", { children: "Tracing" })
|
|
5087
5084
|
] }));
|
|
5088
|
-
|
|
5085
|
+
Hl.displayName = "ObservabilityTabLabel";
|
|
5089
5086
|
export {
|
|
5090
|
-
|
|
5091
|
-
|
|
5087
|
+
Il as ObservabilityPage,
|
|
5088
|
+
Hl as ObservabilityTabLabel
|
|
5092
5089
|
};
|