bunqueue-dashboard 0.0.20 → 0.0.22
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/.vite/manifest.json +149 -149
- package/dist/assets/{AddJob-CaPckiUk.js → AddJob-BdBKp1lA.js} +2 -2
- package/dist/assets/{Alerts-B2c0ARdJ.js → Alerts-CBtbj7VF.js} +1 -1
- package/dist/assets/{AreaChart-DzUXW8u3.js → AreaChart-lY-mk5E1.js} +1 -1
- package/dist/assets/{Benchmark-BUCKbeuC.js → Benchmark-CWd91fdV.js} +1 -1
- package/dist/assets/{BulkAddJobs-BIUVhw79.js → BulkAddJobs-Db2Jz08R.js} +1 -1
- package/dist/assets/{CopilotPanel-krCimuWQ.js → CopilotPanel-Bo9KvCt-.js} +1 -1
- package/dist/assets/{CopyButton-DvGgfSEm.js → CopyButton-DhNun7Gi.js} +1 -1
- package/dist/assets/{Cron-DtuiCy5T.js → Cron-CgniaW__.js} +1 -1
- package/dist/assets/{CronManager-CorgubVA.js → CronManager-BfjJ7XRX.js} +1 -1
- package/dist/assets/{Database-D2Kg4jZ5.js → Database-m_cAcr3W.js} +1 -1
- package/dist/assets/{Diagnostics-B9eXpr9p.js → Diagnostics-DuuR1jQB.js} +1 -1
- package/dist/assets/{Dlq-DYBGJHQ7.js → Dlq-Mcb5cK1V.js} +1 -1
- package/dist/assets/{DlqControl-VeRgk2sV.js → DlqControl-982fUv41.js} +1 -1
- package/dist/assets/{DlqPro-D40bX5wt.js → DlqPro-CuC9E0_L.js} +1 -1
- package/dist/assets/{Flows-H8j_vUf9.js → Flows-DHM7TGds.js} +1 -1
- package/dist/assets/{JobInspector-CXzDoEVg.js → JobInspector-BH5O-C3Y.js} +1 -1
- package/dist/assets/{Jobs-CTYa9Wq9.js → Jobs-BStpSQDW.js} +1 -1
- package/dist/assets/{JobsPro-9JG9oKsi.js → JobsPro-blsDl4Et.js} +1 -1
- package/dist/assets/{Logs-D4_bxWwW.js → Logs-4alJwdiF.js} +1 -1
- package/dist/assets/{LogsPro-DjhlPDzs.js → LogsPro-B9T-oqAb.js} +1 -1
- package/dist/assets/{McpServer-BcNGlbb8.js → McpServer-EIQ0MSuW.js} +1 -1
- package/dist/assets/{Metrics-DDxWBIBZ.js → Metrics-vxs3mcKS.js} +1 -1
- package/dist/assets/{MetricsPro-DM__uhdn.js → MetricsPro-BbuSRbxq.js} +1 -1
- package/dist/assets/{Overview-bPieBOHN.js → Overview-HdSe2zeO.js} +1 -1
- package/dist/assets/{Pagination-B-6mVPUC.js → Pagination-Bm5HTIE3.js} +1 -1
- package/dist/assets/{QueueActions-DPqmozNf.js → QueueActions-BvXNsXKQ.js} +1 -1
- package/dist/assets/{QueueControl-Cxl_GKCw.js → QueueControl-C1lfn3lP.js} +1 -1
- package/dist/assets/{QueueDetail-BaehsuiZ.js → QueueDetail-Bx8hx-5F.js} +1 -1
- package/dist/assets/{QueueDetailPro-CDntEb4E.js → QueueDetailPro-C-DCfrRT.js} +1 -1
- package/dist/assets/{Queues-BXwcVq8b.js → Queues-C_Pt7-K2.js} +1 -1
- package/dist/assets/QueuesOverview-BT4B6ls7.js +1 -0
- package/dist/assets/{S3Backup-DKegjDS2.js → S3Backup-FzxBXfKG.js} +1 -1
- package/dist/assets/{S3BackupPro-BPop6lt3.js → S3BackupPro-BBx94VGs.js} +1 -1
- package/dist/assets/{ServerControl-ELjdOfy0.js → ServerControl-B7iVlX8g.js} +1 -1
- package/dist/assets/{Settings-CeRzvpaS.js → Settings-DNh5PdAt.js} +1 -1
- package/dist/assets/{Usage-nsrrx66q.js → Usage-DYa7HsgK.js} +1 -1
- package/dist/assets/{UsagePro-DTCHLKue.js → UsagePro-CNwxz-Dm.js} +1 -1
- package/dist/assets/{Webhooks-BSxGyZBk.js → Webhooks-Da3dnRY3.js} +1 -1
- package/dist/assets/{Workers-4FvLmhA2.js → Workers-B72sL29I.js} +1 -1
- package/dist/assets/{WorkersPro-EbCgSBaw.js → WorkersPro-D-p_yJi6.js} +1 -1
- package/dist/assets/{connectionStore-CCopJeU7.js → connectionStore-B-hNUqwK.js} +1 -1
- package/dist/assets/{form-PtDLk33Z.js → form-C-zZyKfB.js} +1 -1
- package/dist/assets/index-BRcFyrFG.js +8 -0
- package/dist/assets/react-vendor-B68RYDeC.js +11 -0
- package/dist/assets/{useThroughputSeries-D8wylrhf.js → useThroughputSeries-BhH_0wfd.js} +1 -1
- package/dist/index.html +3 -3
- package/package.json +3 -1
- package/scripts/embedded.gen.ts +104 -104
- package/dist/assets/QueuesOverview-CggwfR_n.js +0 -1
- package/dist/assets/index-DTo6fJH9.js +0 -8
- package/dist/assets/react-vendor-CHIHtdAC.js +0 -11
package/dist/index.html
CHANGED
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
</script>
|
|
19
19
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
20
20
|
<title>bunqueue · dashboard (beta)</title>
|
|
21
|
-
<script type="module" crossorigin src="/assets/index-
|
|
21
|
+
<script type="module" crossorigin src="/assets/index-BRcFyrFG.js"></script>
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/cn-CMFYpumL.js">
|
|
23
|
-
<link rel="modulepreload" crossorigin href="/assets/react-vendor-
|
|
24
|
-
<link rel="modulepreload" crossorigin href="/assets/connectionStore-
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/assets/react-vendor-B68RYDeC.js">
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/assets/connectionStore-B-hNUqwK.js">
|
|
25
25
|
<link rel="stylesheet" crossorigin href="/assets/index-C2XEM9ex.css">
|
|
26
26
|
</head>
|
|
27
27
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunqueue-dashboard",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Web dashboard for a bunqueue server (queues, jobs, DLQ, cron, metrics, workers, live activity). Run with `bunx bunqueue-dashboard` (requires Bun).",
|
|
6
6
|
"bin": {
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"build:bin": "bun run build && bun run scripts/gen-embed.ts && bun build scripts/serve.ts --compile --minify --outfile bunqueue-dashboard",
|
|
52
52
|
"preview": "vite preview",
|
|
53
53
|
"test": "bun test",
|
|
54
|
+
"test:coverage": "bun test --coverage --coverage-reporter=text --coverage-reporter=lcov --coverage-dir=coverage && bun scripts/check-coverage.ts",
|
|
54
55
|
"check": "biome check .",
|
|
55
56
|
"check:fix": "biome check --write .",
|
|
56
57
|
"format": "biome format --write ."
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
"@vitejs/plugin-react": "^6.0.3",
|
|
72
73
|
"ai": "^7.0.14",
|
|
73
74
|
"bun-types": "^1.3.14",
|
|
75
|
+
"happy-dom": "^20.10.6",
|
|
74
76
|
"mermaid": "^11.16.0",
|
|
75
77
|
"react": "^19.2.7",
|
|
76
78
|
"react-dom": "^19.2.7",
|
package/scripts/embedded.gen.ts
CHANGED
|
@@ -2,120 +2,120 @@
|
|
|
2
2
|
// AUTO-GENERATED by scripts/gen-embed.ts — do not edit, not committed.
|
|
3
3
|
import f0 from "../dist/.vite/manifest.json" with { type: 'file' };
|
|
4
4
|
import f1 from "../dist/favicon.svg" with { type: 'file' };
|
|
5
|
-
import f2 from "../dist/assets/
|
|
6
|
-
import f3 from "../dist/assets/
|
|
7
|
-
import f4 from "../dist/assets/
|
|
8
|
-
import f5 from "../dist/assets/
|
|
9
|
-
import f6 from "../dist/assets/
|
|
10
|
-
import f7 from "../dist/assets/
|
|
11
|
-
import f8 from "../dist/assets/
|
|
12
|
-
import f9 from "../dist/assets/
|
|
13
|
-
import f10 from "../dist/assets/
|
|
14
|
-
import f11 from "../dist/assets/
|
|
15
|
-
import f12 from "../dist/assets/
|
|
16
|
-
import f13 from "../dist/assets/
|
|
17
|
-
import f14 from "../dist/assets/
|
|
18
|
-
import f15 from "../dist/assets/
|
|
19
|
-
import f16 from "../dist/assets/
|
|
20
|
-
import f17 from "../dist/assets/
|
|
21
|
-
import f18 from "../dist/assets/
|
|
22
|
-
import f19 from "../dist/assets/
|
|
23
|
-
import f20 from "../dist/assets/
|
|
24
|
-
import f21 from "../dist/assets/
|
|
25
|
-
import f22 from "../dist/assets/
|
|
26
|
-
import f23 from "../dist/assets/
|
|
27
|
-
import f24 from "../dist/assets/
|
|
28
|
-
import f25 from "../dist/assets/Pagination-
|
|
29
|
-
import f26 from "../dist/assets/
|
|
30
|
-
import f27 from "../dist/assets/
|
|
31
|
-
import f28 from "../dist/assets/
|
|
32
|
-
import f29 from "../dist/assets/
|
|
33
|
-
import f30 from "../dist/assets/
|
|
34
|
-
import f31 from "../dist/assets/
|
|
5
|
+
import f2 from "../dist/assets/form-C-zZyKfB.js" with { type: 'file' };
|
|
6
|
+
import f3 from "../dist/assets/QueueActions-BvXNsXKQ.js" with { type: 'file' };
|
|
7
|
+
import f4 from "../dist/assets/Flows-DHM7TGds.js" with { type: 'file' };
|
|
8
|
+
import f5 from "../dist/assets/Workers-B72sL29I.js" with { type: 'file' };
|
|
9
|
+
import f6 from "../dist/assets/Usage-DYa7HsgK.js" with { type: 'file' };
|
|
10
|
+
import f7 from "../dist/assets/install-C019EM5j.js" with { type: 'file' };
|
|
11
|
+
import f8 from "../dist/assets/CopyButton-DhNun7Gi.js" with { type: 'file' };
|
|
12
|
+
import f9 from "../dist/assets/Metrics-vxs3mcKS.js" with { type: 'file' };
|
|
13
|
+
import f10 from "../dist/assets/AddJob-BdBKp1lA.js" with { type: 'file' };
|
|
14
|
+
import f11 from "../dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2" with { type: 'file' };
|
|
15
|
+
import f12 from "../dist/assets/MetricsPro-BbuSRbxq.js" with { type: 'file' };
|
|
16
|
+
import f13 from "../dist/assets/connectionStore-B-hNUqwK.js" with { type: 'file' };
|
|
17
|
+
import f14 from "../dist/assets/QueuesOverview-BT4B6ls7.js" with { type: 'file' };
|
|
18
|
+
import f15 from "../dist/assets/useThroughputSeries-BhH_0wfd.js" with { type: 'file' };
|
|
19
|
+
import f16 from "../dist/assets/Logs-4alJwdiF.js" with { type: 'file' };
|
|
20
|
+
import f17 from "../dist/assets/WorkersPro-D-p_yJi6.js" with { type: 'file' };
|
|
21
|
+
import f18 from "../dist/assets/AreaChart-lY-mk5E1.js" with { type: 'file' };
|
|
22
|
+
import f19 from "../dist/assets/QueueDetail-Bx8hx-5F.js" with { type: 'file' };
|
|
23
|
+
import f20 from "../dist/assets/Settings-DNh5PdAt.js" with { type: 'file' };
|
|
24
|
+
import f21 from "../dist/assets/QueueDetailPro-C-DCfrRT.js" with { type: 'file' };
|
|
25
|
+
import f22 from "../dist/assets/Jobs-BStpSQDW.js" with { type: 'file' };
|
|
26
|
+
import f23 from "../dist/assets/CopilotPanel-Bo9KvCt-.js" with { type: 'file' };
|
|
27
|
+
import f24 from "../dist/assets/Database-m_cAcr3W.js" with { type: 'file' };
|
|
28
|
+
import f25 from "../dist/assets/Pagination-Bm5HTIE3.js" with { type: 'file' };
|
|
29
|
+
import f26 from "../dist/assets/jobActions-CuOdMglt.js" with { type: 'file' };
|
|
30
|
+
import f27 from "../dist/assets/Overview-HdSe2zeO.js" with { type: 'file' };
|
|
31
|
+
import f28 from "../dist/assets/DlqControl-982fUv41.js" with { type: 'file' };
|
|
32
|
+
import f29 from "../dist/assets/Dlq-Mcb5cK1V.js" with { type: 'file' };
|
|
33
|
+
import f30 from "../dist/assets/index-C2XEM9ex.css" with { type: 'file' };
|
|
34
|
+
import f31 from "../dist/assets/LogsPro-B9T-oqAb.js" with { type: 'file' };
|
|
35
35
|
import f32 from "../dist/assets/exportFile-tdUeW5m5.js" with { type: 'file' };
|
|
36
|
-
import f33 from "../dist/assets/
|
|
37
|
-
import f34 from "../dist/assets/
|
|
38
|
-
import f35 from "../dist/assets/
|
|
39
|
-
import f36 from "../dist/assets/
|
|
40
|
-
import f37 from "../dist/assets/
|
|
41
|
-
import f38 from "../dist/assets/
|
|
36
|
+
import f33 from "../dist/assets/QueueControl-C1lfn3lP.js" with { type: 'file' };
|
|
37
|
+
import f34 from "../dist/assets/S3BackupPro-BBx94VGs.js" with { type: 'file' };
|
|
38
|
+
import f35 from "../dist/assets/BulkAddJobs-Db2Jz08R.js" with { type: 'file' };
|
|
39
|
+
import f36 from "../dist/assets/McpServer-EIQ0MSuW.js" with { type: 'file' };
|
|
40
|
+
import f37 from "../dist/assets/cn-CMFYpumL.js" with { type: 'file' };
|
|
41
|
+
import f38 from "../dist/assets/react-vendor-B68RYDeC.js" with { type: 'file' };
|
|
42
42
|
import f39 from "../dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2" with { type: 'file' };
|
|
43
43
|
import f40 from "../dist/assets/promisePool-Daxkc1OB.js" with { type: 'file' };
|
|
44
|
-
import f41 from "../dist/assets/
|
|
45
|
-
import f42 from "../dist/assets/
|
|
46
|
-
import f43 from "../dist/assets/
|
|
47
|
-
import f44 from "../dist/assets/
|
|
48
|
-
import f45 from "../dist/assets/
|
|
49
|
-
import f46 from "../dist/assets/
|
|
50
|
-
import f47 from "../dist/assets/
|
|
51
|
-
import f48 from "../dist/assets/
|
|
52
|
-
import f49 from "../dist/assets/
|
|
53
|
-
import f50 from "../dist/assets/
|
|
54
|
-
import f51 from "../dist/assets/
|
|
55
|
-
import f52 from "../dist/assets/
|
|
56
|
-
import f53 from "../dist/assets/
|
|
57
|
-
import f54 from "../dist/assets/
|
|
58
|
-
import f55 from "../dist/assets/
|
|
59
|
-
import f56 from "../dist/assets/
|
|
44
|
+
import f41 from "../dist/assets/Alerts-CBtbj7VF.js" with { type: 'file' };
|
|
45
|
+
import f42 from "../dist/assets/DlqPro-CuC9E0_L.js" with { type: 'file' };
|
|
46
|
+
import f43 from "../dist/assets/Benchmark-CWd91fdV.js" with { type: 'file' };
|
|
47
|
+
import f44 from "../dist/assets/UsagePro-CNwxz-Dm.js" with { type: 'file' };
|
|
48
|
+
import f45 from "../dist/assets/Queues-C_Pt7-K2.js" with { type: 'file' };
|
|
49
|
+
import f46 from "../dist/assets/JobsPro-blsDl4Et.js" with { type: 'file' };
|
|
50
|
+
import f47 from "../dist/assets/Cron-CgniaW__.js" with { type: 'file' };
|
|
51
|
+
import f48 from "../dist/assets/index-BRcFyrFG.js" with { type: 'file' };
|
|
52
|
+
import f49 from "../dist/assets/Diagnostics-DuuR1jQB.js" with { type: 'file' };
|
|
53
|
+
import f50 from "../dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2" with { type: 'file' };
|
|
54
|
+
import f51 from "../dist/assets/ServerControl-B7iVlX8g.js" with { type: 'file' };
|
|
55
|
+
import f52 from "../dist/assets/S3Backup-FzxBXfKG.js" with { type: 'file' };
|
|
56
|
+
import f53 from "../dist/assets/JobInspector-BH5O-C3Y.js" with { type: 'file' };
|
|
57
|
+
import f54 from "../dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2" with { type: 'file' };
|
|
58
|
+
import f55 from "../dist/assets/CronManager-BfjJ7XRX.js" with { type: 'file' };
|
|
59
|
+
import f56 from "../dist/assets/Webhooks-Da3dnRY3.js" with { type: 'file' };
|
|
60
60
|
import f57 from "../dist/index.html" with { type: 'file' };
|
|
61
61
|
|
|
62
62
|
export const ASSETS: Record<string, string> = {
|
|
63
63
|
"/.vite/manifest.json": f0,
|
|
64
64
|
"/favicon.svg": f1,
|
|
65
|
-
"/assets/
|
|
66
|
-
"/assets/
|
|
67
|
-
"/assets/
|
|
68
|
-
"/assets/
|
|
69
|
-
"/assets/
|
|
70
|
-
"/assets/
|
|
71
|
-
"/assets/
|
|
72
|
-
"/assets/
|
|
73
|
-
"/assets/
|
|
74
|
-
"/assets/
|
|
75
|
-
"/assets/
|
|
76
|
-
"/assets/
|
|
77
|
-
"/assets/
|
|
78
|
-
"/assets/
|
|
79
|
-
"/assets/
|
|
80
|
-
"/assets/
|
|
81
|
-
"/assets/
|
|
82
|
-
"/assets/
|
|
83
|
-
"/assets/
|
|
84
|
-
"/assets/
|
|
85
|
-
"/assets/
|
|
86
|
-
"/assets/
|
|
87
|
-
"/assets/
|
|
88
|
-
"/assets/Pagination-
|
|
89
|
-
"/assets/
|
|
90
|
-
"/assets/
|
|
91
|
-
"/assets/
|
|
92
|
-
"/assets/
|
|
93
|
-
"/assets/
|
|
94
|
-
"/assets/
|
|
65
|
+
"/assets/form-C-zZyKfB.js": f2,
|
|
66
|
+
"/assets/QueueActions-BvXNsXKQ.js": f3,
|
|
67
|
+
"/assets/Flows-DHM7TGds.js": f4,
|
|
68
|
+
"/assets/Workers-B72sL29I.js": f5,
|
|
69
|
+
"/assets/Usage-DYa7HsgK.js": f6,
|
|
70
|
+
"/assets/install-C019EM5j.js": f7,
|
|
71
|
+
"/assets/CopyButton-DhNun7Gi.js": f8,
|
|
72
|
+
"/assets/Metrics-vxs3mcKS.js": f9,
|
|
73
|
+
"/assets/AddJob-BdBKp1lA.js": f10,
|
|
74
|
+
"/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2": f11,
|
|
75
|
+
"/assets/MetricsPro-BbuSRbxq.js": f12,
|
|
76
|
+
"/assets/connectionStore-B-hNUqwK.js": f13,
|
|
77
|
+
"/assets/QueuesOverview-BT4B6ls7.js": f14,
|
|
78
|
+
"/assets/useThroughputSeries-BhH_0wfd.js": f15,
|
|
79
|
+
"/assets/Logs-4alJwdiF.js": f16,
|
|
80
|
+
"/assets/WorkersPro-D-p_yJi6.js": f17,
|
|
81
|
+
"/assets/AreaChart-lY-mk5E1.js": f18,
|
|
82
|
+
"/assets/QueueDetail-Bx8hx-5F.js": f19,
|
|
83
|
+
"/assets/Settings-DNh5PdAt.js": f20,
|
|
84
|
+
"/assets/QueueDetailPro-C-DCfrRT.js": f21,
|
|
85
|
+
"/assets/Jobs-BStpSQDW.js": f22,
|
|
86
|
+
"/assets/CopilotPanel-Bo9KvCt-.js": f23,
|
|
87
|
+
"/assets/Database-m_cAcr3W.js": f24,
|
|
88
|
+
"/assets/Pagination-Bm5HTIE3.js": f25,
|
|
89
|
+
"/assets/jobActions-CuOdMglt.js": f26,
|
|
90
|
+
"/assets/Overview-HdSe2zeO.js": f27,
|
|
91
|
+
"/assets/DlqControl-982fUv41.js": f28,
|
|
92
|
+
"/assets/Dlq-Mcb5cK1V.js": f29,
|
|
93
|
+
"/assets/index-C2XEM9ex.css": f30,
|
|
94
|
+
"/assets/LogsPro-B9T-oqAb.js": f31,
|
|
95
95
|
"/assets/exportFile-tdUeW5m5.js": f32,
|
|
96
|
-
"/assets/
|
|
97
|
-
"/assets/
|
|
98
|
-
"/assets/
|
|
99
|
-
"/assets/
|
|
100
|
-
"/assets/
|
|
101
|
-
"/assets/
|
|
96
|
+
"/assets/QueueControl-C1lfn3lP.js": f33,
|
|
97
|
+
"/assets/S3BackupPro-BBx94VGs.js": f34,
|
|
98
|
+
"/assets/BulkAddJobs-Db2Jz08R.js": f35,
|
|
99
|
+
"/assets/McpServer-EIQ0MSuW.js": f36,
|
|
100
|
+
"/assets/cn-CMFYpumL.js": f37,
|
|
101
|
+
"/assets/react-vendor-B68RYDeC.js": f38,
|
|
102
102
|
"/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2": f39,
|
|
103
103
|
"/assets/promisePool-Daxkc1OB.js": f40,
|
|
104
|
-
"/assets/
|
|
105
|
-
"/assets/
|
|
106
|
-
"/assets/
|
|
107
|
-
"/assets/
|
|
108
|
-
"/assets/
|
|
109
|
-
"/assets/
|
|
110
|
-
"/assets/
|
|
111
|
-
"/assets/
|
|
112
|
-
"/assets/
|
|
113
|
-
"/assets/
|
|
114
|
-
"/assets/
|
|
115
|
-
"/assets/
|
|
116
|
-
"/assets/
|
|
117
|
-
"/assets/
|
|
118
|
-
"/assets/
|
|
119
|
-
"/assets/
|
|
104
|
+
"/assets/Alerts-CBtbj7VF.js": f41,
|
|
105
|
+
"/assets/DlqPro-CuC9E0_L.js": f42,
|
|
106
|
+
"/assets/Benchmark-CWd91fdV.js": f43,
|
|
107
|
+
"/assets/UsagePro-CNwxz-Dm.js": f44,
|
|
108
|
+
"/assets/Queues-C_Pt7-K2.js": f45,
|
|
109
|
+
"/assets/JobsPro-blsDl4Et.js": f46,
|
|
110
|
+
"/assets/Cron-CgniaW__.js": f47,
|
|
111
|
+
"/assets/index-BRcFyrFG.js": f48,
|
|
112
|
+
"/assets/Diagnostics-DuuR1jQB.js": f49,
|
|
113
|
+
"/assets/inter-latin-wght-normal-Dx4kXJAl.woff2": f50,
|
|
114
|
+
"/assets/ServerControl-B7iVlX8g.js": f51,
|
|
115
|
+
"/assets/S3Backup-FzxBXfKG.js": f52,
|
|
116
|
+
"/assets/JobInspector-BH5O-C3Y.js": f53,
|
|
117
|
+
"/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2": f54,
|
|
118
|
+
"/assets/CronManager-BfjJ7XRX.js": f55,
|
|
119
|
+
"/assets/Webhooks-Da3dnRY3.js": f56,
|
|
120
120
|
"/index.html": f57,
|
|
121
121
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./cn-CMFYpumL.js";import{l as n,m as r,r as i,t as a}from"./react-vendor-CHIHtdAC.js";import{A as o,H as s,O as c,T as l,U as u,W as d,b as f,c as p,h as m,m as h,nt as g,q as _,tt as v,w as y,x as b}from"./index-DTo6fJH9.js";import{t as x}from"./Pagination-B-6mVPUC.js";import{t as S}from"./promisePool-Daxkc1OB.js";var C=e(r(),1),w=a(),T=6,E=15;function D(){let e=n(),[r,a]=(0,C.useState)(``),[D,O]=(0,C.useState)(0),[k,A]=(0,C.useState)(new Set),[j,M]=(0,C.useState)(!1),[N,P]=(0,C.useState)(null),{data:F,error:I,loading:L,refetch:R}=c(()=>v.queuesSummary(),[]),z=F??[],B=(0,C.useMemo)(()=>{let e=r.trim().toLowerCase();return[...e?z.filter(t=>t.name.toLowerCase().includes(e)):z].sort((e,t)=>e.name.localeCompare(t.name))},[z,r]),V=(0,C.useMemo)(()=>z.reduce((e,t)=>(e.waiting+=t.counts.waiting,e.active+=t.counts.active,e.failed+=t.counts.failed,e.paused+=+!!t.paused,e),{waiting:0,active:0,failed:0,paused:0}),[z]),H=Math.max(1,Math.ceil(B.length/E)),U=Math.min(D,H-1),W=B.slice(U*E,U*E+E),G=async e=>{A(t=>new Set(t).add(e.name)),P(null);try{await(e.paused?v.resume(e.name):v.pause(e.name)),P({ok:!0,text:`${e.name} ${e.paused?`resumed`:`paused`} ✓`})}catch(t){P({ok:!1,text:t.message}),g.error(`Failed to ${e.paused?`resume`:`pause`} ${e.name}`,t.message)}finally{A(t=>{let n=new Set(t);return n.delete(e.name),n}),R()}},K=async e=>{let t=z.filter(t=>e===`pause`?!t.paused:t.paused);if(t.length===0){g.info(`No queues to ${e}`);return}if(!window.confirm(`${e===`pause`?`Pause`:`Resume`} ${t.length} queue(s)?`))return;M(!0),P(null);let n=(await S(t,T,t=>e===`pause`?v.pause(t.name):v.resume(t.name))).filter(e=>e.status===`rejected`).length,r=`${e===`pause`?`Paused`:`Resumed`} ${t.length-n}/${t.length} queues${n?`, ${n} failed`:``}`;P({ok:n===0,text:r}),n===0?g.success(r):g.error(r),M(!1),R()};return L&&!F&&!I?(0,w.jsx)(f,{label:`Loading queues…`}):(0,w.jsxs)(`div`,{children:[(0,w.jsx)(m,{title:`Queues`,description:`${z.length} queues`,live:!0,actions:z.length>0?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(y,{variant:`warning`,size:`sm`,disabled:j||V.paused>=z.length,onClick:()=>K(`pause`),children:[(0,w.jsx)(s,{className:`size-3.5`}),` Pause all`]}),(0,w.jsxs)(y,{variant:`success`,size:`sm`,disabled:j||V.paused===0,onClick:()=>K(`resume`),children:[(0,w.jsx)(u,{className:`size-3.5`}),` Resume all`]})]}):void 0}),I&&(0,w.jsx)(b,{onRetry:R}),(0,w.jsxs)(`div`,{className:`mb-6 grid grid-cols-2 gap-4 md:grid-cols-4`,children:[(0,w.jsx)(h,{label:`Waiting`,value:p(V.waiting),tone:`amber`,compact:!0}),(0,w.jsx)(h,{label:`Active`,value:p(V.active),tone:`blue`,compact:!0}),(0,w.jsx)(h,{label:`Failed`,value:p(V.failed),tone:V.failed?`red`:`default`,compact:!0}),(0,w.jsx)(h,{label:`Paused`,value:p(V.paused),tone:V.paused?`amber`:`default`,compact:!0})]}),(0,w.jsxs)(`div`,{className:`relative mb-4 max-w-sm`,children:[(0,w.jsx)(_,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-faint`}),(0,w.jsx)(`input`,{value:r,onChange:e=>{a(e.target.value),O(0)},placeholder:`Search queues…`,"aria-label":`Filter queues`,className:`h-9 w-full rounded-lg border border-line bg-surface pl-9 pr-3 text-sm text-fg placeholder:text-faint focus:border-accent/60 focus:outline-none focus:ring-2 focus:ring-accent/30`})]}),N&&(0,w.jsx)(`div`,{className:t(`mb-3 text-sm`,N.ok?`text-success`:`text-danger`),children:N.text}),(0,w.jsx)(`div`,{className:`overflow-x-auto rounded-xl border border-line bg-surface`,children:(0,w.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,w.jsx)(`thead`,{children:(0,w.jsxs)(`tr`,{className:`border-b border-line text-left text-[11px] uppercase tracking-wider text-faint`,children:[(0,w.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Queue`}),(0,w.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Waiting`}),(0,w.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Active`}),(0,w.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Completed`}),(0,w.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Failed`}),(0,w.jsx)(`th`,{className:`px-5 py-3 text-right font-medium`,children:`Delayed`}),(0,w.jsx)(`th`,{className:`px-5 py-3 font-medium`,children:`Status`}),(0,w.jsx)(`th`,{className:`w-24 px-5 py-3 text-right font-medium`,children:`Actions`})]})}),(0,w.jsx)(`tbody`,{children:W.length===0?(0,w.jsx)(`tr`,{children:(0,w.jsx)(`td`,{colSpan:8,className:`px-5 py-12 text-center text-sm text-faint`,children:r?`No queues match your search.`:`No queues yet.`})}):W.map(n=>{let r=k.has(n.name);return(0,w.jsxs)(`tr`,{onClick:()=>e(`/queues/${encodeURIComponent(n.name)}`),className:`group cursor-pointer border-b border-line last:border-0 transition-colors hover:bg-surface-2/50`,children:[(0,w.jsx)(`td`,{className:`px-5 py-3`,children:(0,w.jsxs)(i,{to:`/queues/${encodeURIComponent(n.name)}`,onClick:e=>e.stopPropagation(),className:`flex items-center gap-2 rounded font-medium text-fg hover:text-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50`,children:[(0,w.jsx)(d,{className:`size-4 text-faint`}),n.name]})}),(0,w.jsx)(`td`,{className:`px-5 py-3 text-right tnum text-warning`,children:p(n.counts.waiting)}),(0,w.jsx)(`td`,{className:`px-5 py-3 text-right tnum text-blue-400`,children:p(n.counts.active)}),(0,w.jsx)(`td`,{className:`px-5 py-3 text-right tnum text-success`,children:p(n.counts.completed)}),(0,w.jsx)(`td`,{className:t(`px-5 py-3 text-right tnum`,n.counts.failed?`text-danger`:`text-muted`),children:p(n.counts.failed)}),(0,w.jsx)(`td`,{className:`px-5 py-3 text-right tnum text-muted`,children:p(n.counts.delayed)}),(0,w.jsx)(`td`,{className:`px-5 py-3`,children:(0,w.jsxs)(`span`,{className:t(`inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs font-medium`,n.paused?`bg-orange-500/10 text-orange-400`:`bg-emerald-500/10 text-success`),children:[(0,w.jsx)(`span`,{className:`size-1.5 rounded-full bg-current`}),n.paused?`Paused`:`Active`]})}),(0,w.jsx)(`td`,{className:`px-5 py-3`,children:(0,w.jsxs)(`div`,{className:`flex items-center justify-end gap-1`,children:[(0,w.jsx)(l,{"aria-label":n.paused?`Resume queue`:`Pause queue`,disabled:r,onClick:e=>{e.stopPropagation(),G(n)},children:n.paused?(0,w.jsx)(u,{className:`size-3.5 text-success`}):(0,w.jsx)(s,{className:`size-3.5 text-warning`})}),(0,w.jsx)(o,{className:`size-4 text-faint opacity-0 transition-opacity group-hover:opacity-100`})]})})]},n.name)})})]})}),(0,w.jsx)(x,{page:U,pageSize:E,total:B.length,onPageChange:O,label:`queues`})]})}export{D as QueuesOverview};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CopilotPanel-krCimuWQ.js","assets/cn-CMFYpumL.js","assets/react-vendor-CHIHtdAC.js","assets/form-PtDLk33Z.js","assets/AddJob-CaPckiUk.js","assets/Benchmark-BUCKbeuC.js","assets/AreaChart-DzUXW8u3.js","assets/CopyButton-DvGgfSEm.js","assets/BulkAddJobs-BIUVhw79.js","assets/CronManager-CorgubVA.js","assets/Pagination-B-6mVPUC.js","assets/Database-D2Kg4jZ5.js","assets/Diagnostics-B9eXpr9p.js","assets/DlqControl-VeRgk2sV.js","assets/exportFile-tdUeW5m5.js","assets/DlqPro-D40bX5wt.js","assets/promisePool-Daxkc1OB.js","assets/Flows-H8j_vUf9.js","assets/JobInspector-CXzDoEVg.js","assets/jobActions-CuOdMglt.js","assets/JobsPro-9JG9oKsi.js","assets/LogsPro-DjhlPDzs.js","assets/McpServer-BcNGlbb8.js","assets/MetricsPro-DM__uhdn.js","assets/useThroughputSeries-D8wylrhf.js","assets/QueueControl-Cxl_GKCw.js","assets/QueueActions-DPqmozNf.js","assets/QueueDetailPro-CDntEb4E.js","assets/QueuesOverview-CggwfR_n.js","assets/S3BackupPro-BPop6lt3.js","assets/connectionStore-CCopJeU7.js","assets/ServerControl-ELjdOfy0.js","assets/UsagePro-DTCHLKue.js","assets/Webhooks-BSxGyZBk.js","assets/WorkersPro-EbCgSBaw.js","assets/Alerts-B2c0ARdJ.js","assets/Cron-DtuiCy5T.js","assets/Dlq-DYBGJHQ7.js","assets/Jobs-CTYa9Wq9.js","assets/Logs-D4_bxWwW.js","assets/Metrics-DDxWBIBZ.js","assets/Overview-bPieBOHN.js","assets/QueueDetail-BaehsuiZ.js","assets/Queues-BXwcVq8b.js","assets/S3Backup-DKegjDS2.js","assets/Settings-CeRzvpaS.js","assets/Usage-nsrrx66q.js","assets/Workers-4FvLmhA2.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as e,t}from"./cn-CMFYpumL.js";import{a as n,c as r,f as i,i as a,l as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p}from"./react-vendor-CHIHtdAC.js";import{a as m,i as h,n as g,o as _,r as v,t as ee}from"./connectionStore-CCopJeU7.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var y=e(s(),1),b=u(),te=()=>`${Date.now().toString(36)}${Math.floor(Math.random()*1e6).toString(36)}`;function ne(e){return{channels:e.channels.map(e=>e.type===`email`?e:{...e,target:``}),rules:e.rules}}var x=_()(m(e=>({channels:[],rules:[],addChannel:(t,n)=>e(e=>({channels:[...e.channels,{id:te(),type:t,target:n}]})),removeChannel:t=>e(e=>({channels:e.channels.filter(e=>e.id!==t)})),addRule:t=>e(e=>({rules:[...e.rules,{...t,id:te()}]})),removeRule:t=>e(e=>({rules:e.rules.filter(e=>e.id!==t)})),toggleRule:t=>e(e=>({rules:e.rules.map(e=>e.id===t?{...e,enabled:!e.enabled}:e)}))}),{name:`bq-dash-alerts`,partialize:ne})),re={error_rate:`error rate`,p99_latency:`p99 latency`,waiting:`waiting jobs`,failed:`failed jobs`,dlq:`DLQ size`},ie=1,S=_(e=>({toasts:[],push:({level:t,title:n,detail:r,ttlMs:i})=>{let a=ie++,o=i??(t===`error`?8e3:4e3);return e(e=>({toasts:[...e.toasts,{id:a,level:t,title:n,detail:r,ttlMs:o}].slice(-5)})),a},dismiss:t=>e(e=>({toasts:e.toasts.filter(e=>e.id!==t)}))})),ae={success:(e,t)=>S.getState().push({level:`success`,title:e,detail:t}),error:(e,t)=>S.getState().push({level:`error`,title:e,detail:t}),info:(e,t)=>S.getState().push({level:`info`,title:e,detail:t})},C=class extends Error{status;constructor(e,t){super(e),this.status=t,this.name=`BqError`}};async function oe(e,t,n,r,i=!0,a=`server`){let o=await fetch(e+t,{...r,headers:{"Content-Type":`application/json`,...n,...r?.headers}});if(!o.ok){let e=`HTTP ${o.status}`;try{let t=await o.json();t?.error&&(e=t.error)}catch{}throw o.status===401&&typeof window<`u`&&window.dispatchEvent(new CustomEvent(`auth:required`,{detail:{scope:a}})),new C(e,o.status)}if(o.status===204)return;let s=await o.text();if(!s)return;let c;try{c=JSON.parse(s)}catch{throw new C(`Invalid JSON response (HTTP ${o.status})`,o.status)}if(i&&c&&typeof c==`object`&&c.ok===!1){let e=c.error;throw new C(e??`Operation failed`,o.status)}return c}var w=(e,t,n=!0)=>oe(v(),e,g(),t,n),se=(globalThis.__BUNQUEUE_AGENT_URL__||`http://localhost:6800`).replace(/\/$/,``),T=(e,t)=>oe(se,e,ee(),t,!0,`agent`),E=e=>encodeURIComponent(e),D=(e,t)=>({method:e,body:t===void 0?void 0:JSON.stringify(t)}),ce=[`job.pushed`,`job.started`,`job.completed`,`job.failed`,`job.progress`],O={overview:()=>w(`/dashboard`),queues:(e=500,t=0)=>w(`/dashboard/queues?limit=${e}&offset=${t}`),queuesSummary:()=>w(`/queues/summary`),queueDetail:(e,t=!0)=>w(`/dashboard/queues/${E(e)}?includeJobs=${t}`),stats:()=>w(`/stats`),storage:()=>w(`/storage`),health:()=>w(`/health`,void 0,!1),ping:()=>w(`/ping`),jobsList:(e,t,n=50,r=0)=>{let i=new URLSearchParams;return t?.length&&i.set(`states`,t.join(`,`)),i.set(`limit`,String(n)),i.set(`offset`,String(r)),w(`/queues/${E(e)}/jobs/list?${i}`)},job:e=>w(`/jobs/${E(e)}`),jobByCustomId:e=>w(`/jobs/custom/${E(e)}`),jobResult:e=>w(`/jobs/${E(e)}/result`),jobLogs:e=>w(`/jobs/${E(e)}/logs`),jobChildren:e=>w(`/jobs/${E(e)}/children`),addJob:(e,t)=>w(`/queues/${E(e)}/jobs`,D(`POST`,t)),addJobsBulk:(e,t)=>w(`/queues/${E(e)}/jobs/bulk`,D(`POST`,{jobs:t})),pullBatch:(e,t)=>w(`/queues/${E(e)}/jobs/pull-batch`,D(`POST`,{count:t})),ackBatch:e=>w(`/jobs/ack-batch`,D(`POST`,{ids:e})),cancelJob:e=>w(`/jobs/${E(e)}`,{method:`DELETE`}),promoteJob:e=>w(`/jobs/${E(e)}/promote`,D(`POST`)),discardJob:e=>w(`/jobs/${E(e)}/discard`,D(`POST`)),retryJob:e=>w(`/jobs/${E(e)}/move-to-wait`,D(`POST`)),failJob:(e,t)=>w(`/jobs/${E(e)}/fail`,D(`POST`,{error:t})),updateJobData:(e,t)=>w(`/jobs/${E(e)}/data`,D(`PUT`,{data:t})),changePriority:(e,t)=>w(`/jobs/${E(e)}/priority`,D(`PUT`,{priority:t})),changeDelay:(e,t)=>w(`/jobs/${E(e)}/delay`,D(`PUT`,{delay:t})),moveToDelayed:(e,t)=>w(`/jobs/${E(e)}/move-to-delayed`,D(`POST`,{delay:t})),addJobLog:(e,t,n)=>w(`/jobs/${E(e)}/logs`,D(`POST`,{message:t,level:n})),clearJobLogs:e=>w(`/jobs/${E(e)}/logs`,{method:`DELETE`}),counts:e=>w(`/queues/${E(e)}/counts`),pause:e=>w(`/queues/${E(e)}/pause`,D(`POST`)),resume:e=>w(`/queues/${E(e)}/resume`,D(`POST`)),drain:e=>w(`/queues/${E(e)}/drain`,D(`POST`)),obliterate:e=>w(`/queues/${E(e)}/obliterate`,D(`POST`)),clean:(e,t={})=>w(`/queues/${E(e)}/clean`,D(`POST`,t)),promoteJobs:(e,t)=>w(`/queues/${E(e)}/promote-jobs`,D(`POST`,t==null?void 0:{count:t})),retryCompleted:(e,t)=>w(`/queues/${E(e)}/retry-completed`,D(`POST`,t?{id:t}:void 0)),setRateLimit:(e,t)=>w(`/queues/${E(e)}/rate-limit`,D(`PUT`,{limit:t})),clearRateLimit:e=>w(`/queues/${E(e)}/rate-limit`,{method:`DELETE`}),setConcurrency:(e,t)=>w(`/queues/${E(e)}/concurrency`,D(`PUT`,{concurrency:t})),clearConcurrency:e=>w(`/queues/${E(e)}/concurrency`,{method:`DELETE`}),getStallConfig:e=>w(`/queues/${E(e)}/stall-config`),setStallConfig:(e,t)=>w(`/queues/${E(e)}/stall-config`,D(`PUT`,{config:t})),getDlqConfig:e=>w(`/queues/${E(e)}/dlq-config`),setDlqConfig:(e,t)=>w(`/queues/${E(e)}/dlq-config`,D(`PUT`,{config:t})),dlq:(e,t=100,n=0)=>w(`/queues/${E(e)}/dlq?limit=${t}&offset=${n}`),dlqStats:e=>w(`/queues/${E(e)}/dlq/stats`),retryDlq:(e,t)=>w(`/queues/${E(e)}/dlq/retry`,D(`POST`,t?{jobId:t}:void 0)),purgeDlq:e=>w(`/queues/${E(e)}/dlq/purge`,D(`POST`)),crons:()=>w(`/crons`),createCron:e=>w(`/crons`,D(`POST`,e)),deleteCron:e=>w(`/crons/${E(e)}`,{method:`DELETE`}),webhooks:()=>w(`/webhooks`),addWebhook:e=>w(`/webhooks`,D(`POST`,e)),removeWebhook:e=>w(`/webhooks/${E(e)}`,{method:`DELETE`}),setWebhookEnabled:(e,t)=>w(`/webhooks/${E(e)}/enabled`,D(`PUT`,{enabled:t})),workers:()=>w(`/workers`),unregisterWorker:e=>w(`/workers/${E(e)}`,{method:`DELETE`}),eventsUrl:e=>v()+(e?`/events/queues/${E(e)}`:`/events`),db:{info:()=>T(`/db/info`),tables:()=>T(`/db/tables`),schema:e=>T(`/db/tables/${E(e)}/schema`),rows:(e,t=50,n=0,r,i=`asc`,a)=>T(`/db/tables/${E(e)}?limit=${t}&offset=${n}`+(r?`&orderBy=${E(r)}&dir=${i}`:``)+(a?.value?`&fcol=${E(a.column)}&fop=${a.op}&fval=${E(a.value)}`:``)),cell:(e,t,n)=>T(`/db/tables/${E(e)}/cell?rowid=${t}&column=${E(n)}`),query:e=>T(`/db/query`,D(`POST`,{sql:e}))},agentBase:se,control:{status:()=>T(`/control/status`),start:()=>T(`/control/start`,{method:`POST`}),stop:()=>T(`/control/stop`,{method:`POST`}),restart:()=>T(`/control/restart`,{method:`POST`}),logs:()=>T(`/control/logs`),getConfig:()=>T(`/control/config`),setConfig:e=>T(`/control/config`,D(`PUT`,e))}},le=15e3,ue=6e4,de=_(e=>({breaching:[],setBreaching:t=>e({breaching:t})}));async function fe(){if(typeof Notification>`u`)return`denied`;if(Notification.permission===`granted`)return`granted`;try{return await Notification.requestPermission()}catch{return`denied`}}function pe(e,t,n){switch(t){case`>=`:return e>=n;case`>`:return e>n;case`<=`:return e<=n;case`<`:return e<n;default:return!1}}var me=(e,t)=>{let n=e+t;return n>0?t/n*100:0};function he(e,t){let n=e.queue.trim();switch(e.metric){case`waiting`:return t.summary?n?t.summary.find(e=>e.name===n)?.counts.waiting??null:t.summary.reduce((e,t)=>e+t.counts.waiting,0):null;case`failed`:return t.summary?n?t.summary.find(e=>e.name===n)?.counts.failed??null:t.summary.reduce((e,t)=>e+t.counts.failed,0):null;case`dlq`:return t.queues?n?t.queues.find(e=>e.name===n)?.dlq??null:t.queues.reduce((e,t)=>e+(t.dlq??0),0):null;case`error_rate`:if(!t.summary)return null;if(n){let e=t.summary.find(e=>e.name===n);return e?me(e.counts.completed,e.counts.failed):null}return me(t.summary.reduce((e,t)=>e+t.counts.completed,0),t.summary.reduce((e,t)=>e+t.counts.failed,0));case`p99_latency`:{let e=t.overview?.latency?.percentiles;if(!e)return null;let n=Object.values(e).map(e=>e.p99).filter(e=>Number.isFinite(e));return n.length?Math.max(...n):null}default:return null}}function ge(e){let t=`${e.queue||`All queues`}: ${e.metricLabel} ${e.operator} ${e.threshold} (now ${Math.round(e.value)})`;if(ae.error(`Alert: ${e.ruleName}`,t),typeof Notification<`u`&&Notification.permission===`granted`)try{new Notification(`bunqueue alert: ${e.ruleName}`,{body:t,tag:e.ruleId})}catch{}}function _e(){let e=x(e=>e.rules),t=de(e=>e.setBreaching),n=(0,y.useRef)(new Map),r=(0,y.useRef)(new Map),i=(0,y.useRef)(new Map),a=e.filter(e=>e.enabled).map(e=>`${e.id}:${e.metric}:${e.operator}:${e.threshold}:${e.queue}`).join(`|`);(0,y.useEffect)(()=>{if(!a){t([]),n.current.clear(),r.current.clear(),i.current.clear();return}let e=!1,o=!1,s=async()=>{if(!o){o=!0;try{let[a,o,s]=await Promise.all([O.queuesSummary().catch(()=>null),O.queues().catch(()=>null),O.overview().catch(()=>null)]);if(e||!s)return;let c={summary:a,queues:o?.queues??null,overview:s},l=Date.now(),u=[],d=x.getState().rules.filter(e=>e.enabled),f=new Set(d.map(e=>e.id));for(let e of d){let t=he(e,c);if(t==null)continue;let a=pe(t,e.operator,e.threshold),o=n.current.get(e.id)??!1;if(a){let n=o?i.current.get(e.id)??l:l;i.current.set(e.id,n);let a={ruleId:e.id,ruleName:e.name,metricLabel:re[e.metric],operator:e.operator,threshold:e.threshold,value:t,queue:e.queue,at:n};u.push(a);let s=l-(r.current.get(e.id)??0)>ue;!o&&s&&(ge(a),r.current.set(e.id,l))}else i.current.delete(e.id);n.current.set(e.id,a)}for(let e of[...n.current.keys()])f.has(e)||(n.current.delete(e),r.current.delete(e),i.current.delete(e));t(u)}finally{o=!1}}};s();let c=setInterval(s,le);return()=>{e=!0,clearInterval(c)}},[a,t])}function ve(){return _e(),null}var k=p();function ye(){let[e,t]=(0,y.useState)(!1),[n,r]=(0,y.useState)(`server`),[i,a]=(0,y.useState)(``),o=h(e=>e.baseUrl),s=h(e=>e.setToken),c=h(e=>e.setAgentToken),l=(0,y.useRef)(null);return(0,y.useEffect)(()=>{let e=e=>{let n=e.detail?.scope;r(n===`agent`?`agent`:`server`),t(!0)};return window.addEventListener(`auth:required`,e),()=>window.removeEventListener(`auth:required`,e)},[]),(0,y.useEffect)(()=>{if(!e)return;let t=requestAnimationFrame(()=>l.current?.focus());return()=>cancelAnimationFrame(t)},[e]),e?(0,k.jsx)(`div`,{className:`fixed inset-0 z-[60] flex items-center justify-center bg-black/60 p-4`,children:(0,k.jsxs)(`form`,{onSubmit:e=>{e.preventDefault();let r=i.trim();r&&(n===`agent`?c(r):s(r),a(``),t(!1))},role:`dialog`,"aria-modal":`true`,"aria-label":`Authentication required`,className:`w-full max-w-sm rounded-xl border border-line-strong bg-surface p-6 shadow-2xl`,children:[(0,k.jsx)(`h2`,{className:`text-lg font-semibold text-fg`,children:`Authentication required`}),n===`agent`?(0,k.jsxs)(`p`,{className:`mt-1 text-sm text-muted`,children:[`The control agent at `,(0,k.jsx)(`span`,{className:`break-all font-mono text-fg`,children:O.agentBase}),` `,`rejected the request (401). Enter its`,` `,(0,k.jsx)(`span`,{className:`font-mono text-fg`,children:`AGENT_TOKEN`}),` to continue.`]}):(0,k.jsxs)(`p`,{className:`mt-1 text-sm text-muted`,children:[`The server at `,(0,k.jsx)(`span`,{className:`break-all font-mono text-fg`,children:o}),` rejected the request (401). Enter its bearer token to continue.`]}),(0,k.jsx)(`input`,{ref:l,type:`password`,value:i,onChange:e=>a(e.target.value),placeholder:n===`agent`?`AGENT_TOKEN`:`Bearer token`,"aria-label":n===`agent`?`Agent token`:`Bearer token`,autoComplete:`off`,className:`mt-4 w-full rounded-lg border border-line bg-surface-2 px-3 py-2 text-sm text-fg outline-none placeholder:text-faint focus-visible:ring-2 focus-visible:ring-accent/50`}),(0,k.jsxs)(`div`,{className:`mt-4 flex items-center justify-between gap-3`,children:[(0,k.jsx)(d,{to:`/settings`,onClick:()=>t(!1),className:`text-xs text-muted underline-offset-2 hover:text-fg hover:underline`,children:`Open Settings instead`}),(0,k.jsx)(`button`,{type:`submit`,disabled:!i.trim(),className:`rounded-lg bg-accent px-4 py-2 text-sm font-medium text-accent-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 disabled:opacity-50`,children:`Unlock`})]})]})}):null}function A(e){typeof document<`u`&&(document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e)}var j=_()(m((e,t)=>({theme:`dark`,toggle:()=>{let n=t().theme===`dark`?`light`:`dark`;A(n),e({theme:n})},setTheme:t=>{A(t),e({theme:t})}}),{name:`bq-dash-theme`,onRehydrateStorage:()=>e=>{e&&A(e.theme)}}));function be(){A(j.getState().theme)}function M({children:e,...t}){return(0,k.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.75`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...t,children:e})}var xe=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`path`,{d:`M3 3v18h18`}),(0,k.jsx)(`rect`,{x:`7`,y:`12`,width:`3`,height:`6`}),(0,k.jsx)(`rect`,{x:`12`,y:`8`,width:`3`,height:`10`}),(0,k.jsx)(`rect`,{x:`17`,y:`5`,width:`3`,height:`13`})]}),N=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`line`,{x1:`8`,y1:`6`,x2:`21`,y2:`6`}),(0,k.jsx)(`line`,{x1:`8`,y1:`12`,x2:`21`,y2:`12`}),(0,k.jsx)(`line`,{x1:`8`,y1:`18`,x2:`21`,y2:`18`}),(0,k.jsx)(`line`,{x1:`3`,y1:`6`,x2:`3.01`,y2:`6`}),(0,k.jsx)(`line`,{x1:`3`,y1:`12`,x2:`3.01`,y2:`12`}),(0,k.jsx)(`line`,{x1:`3`,y1:`18`,x2:`3.01`,y2:`18`})]}),P=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`rect`,{x:`2`,y:`7`,width:`20`,height:`14`,rx:`2`}),(0,k.jsx)(`path`,{d:`M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2`})]}),F=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`path`,{d:`M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z`}),(0,k.jsx)(`line`,{x1:`12`,y1:`9`,x2:`12`,y2:`13`}),(0,k.jsx)(`line`,{x1:`12`,y1:`17`,x2:`12.01`,y2:`17`})]}),Se=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`circle`,{cx:`12`,cy:`12`,r:`9`}),(0,k.jsx)(`polyline`,{points:`12 7 12 12 15 14`})]}),Ce=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`path`,{d:`M3 3v18h18`}),(0,k.jsx)(`path`,{d:`m19 9-5 5-4-4-3 3`})]}),I=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`rect`,{x:`4`,y:`4`,width:`16`,height:`8`,rx:`2`}),(0,k.jsx)(`rect`,{x:`4`,y:`14`,width:`16`,height:`6`,rx:`2`}),(0,k.jsx)(`line`,{x1:`8`,y1:`8`,x2:`8.01`,y2:`8`}),(0,k.jsx)(`line`,{x1:`8`,y1:`17`,x2:`8.01`,y2:`17`})]}),we=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`path`,{d:`M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9`}),(0,k.jsx)(`path`,{d:`M13.73 21a2 2 0 0 1-3.46 0`})]}),Te=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`line`,{x1:`8`,y1:`6`,x2:`21`,y2:`6`}),(0,k.jsx)(`line`,{x1:`8`,y1:`12`,x2:`21`,y2:`12`}),(0,k.jsx)(`line`,{x1:`8`,y1:`18`,x2:`21`,y2:`18`}),(0,k.jsx)(`path`,{d:`M3 6h.01M3 12h.01M3 18h.01`})]}),Ee=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`path`,{d:`M12 20V10`}),(0,k.jsx)(`path`,{d:`M18 20V4`}),(0,k.jsx)(`path`,{d:`M6 20v-4`})]}),De=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`ellipse`,{cx:`12`,cy:`5`,rx:`8`,ry:`3`}),(0,k.jsx)(`path`,{d:`M4 5v6c0 1.66 3.58 3 8 3s8-1.34 8-3V5`}),(0,k.jsx)(`path`,{d:`M4 11v6c0 1.66 3.58 3 8 3s8-1.34 8-3v-6`})]}),Oe=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`16`,rx:`2`}),(0,k.jsx)(`path`,{d:`M3 10h18`}),(0,k.jsx)(`path`,{d:`M9 10v10`})]}),ke=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`}),(0,k.jsx)(`path`,{d:`M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1Z`})]}),Ae=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`}),(0,k.jsx)(`path`,{d:`M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41`})]}),je=e=>(0,k.jsx)(M,{...e,children:(0,k.jsx)(`path`,{d:`M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79Z`})}),Me=e=>(0,k.jsx)(M,{...e,children:(0,k.jsx)(`polyline`,{points:`15 18 9 12 15 6`})}),Ne=e=>(0,k.jsx)(M,{...e,children:(0,k.jsx)(`polyline`,{points:`9 18 15 12 9 6`})}),Pe=e=>(0,k.jsx)(M,{...e,children:(0,k.jsx)(`polygon`,{points:`5 3 19 12 5 21 5 3`})}),Fe=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`rect`,{x:`6`,y:`4`,width:`4`,height:`16`}),(0,k.jsx)(`rect`,{x:`14`,y:`4`,width:`4`,height:`16`})]}),Ie=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`polyline`,{points:`3 6 5 6 21 6`}),(0,k.jsx)(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`})]}),Le=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`polyline`,{points:`23 4 23 10 17 10`}),(0,k.jsx)(`polyline`,{points:`1 20 1 14 7 14`}),(0,k.jsx)(`path`,{d:`M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15`})]}),Re=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,k.jsx)(`line`,{x1:`21`,y1:`21`,x2:`16.65`,y2:`16.65`})]}),ze=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`path`,{d:`M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8Z`}),(0,k.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]}),L=e=>(0,k.jsx)(M,{...e,children:(0,k.jsx)(`polygon`,{points:`13 2 3 14 12 14 11 22 21 10 12 10 13 2`})}),Be=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),(0,k.jsx)(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})]}),Ve=e=>(0,k.jsx)(M,{...e,children:(0,k.jsx)(`polyline`,{points:`20 6 9 17 4 12`})}),R=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`line`,{x1:`5`,y1:`12`,x2:`19`,y2:`12`}),(0,k.jsx)(`polyline`,{points:`12 5 19 12 12 19`})]}),He=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`rect`,{x:`9`,y:`9`,width:`13`,height:`13`,rx:`2`}),(0,k.jsx)(`path`,{d:`M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1`})]}),Ue=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`line`,{x1:`3`,y1:`6`,x2:`21`,y2:`6`}),(0,k.jsx)(`line`,{x1:`3`,y1:`12`,x2:`21`,y2:`12`}),(0,k.jsx)(`line`,{x1:`3`,y1:`18`,x2:`21`,y2:`18`})]}),We=e=>(0,k.jsxs)(M,{...e,children:[(0,k.jsx)(`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`}),(0,k.jsx)(`polyline`,{points:`7 10 12 15 17 10`}),(0,k.jsx)(`line`,{x1:`12`,y1:`15`,x2:`12`,y2:`3`})]}),Ge=class extends Error{status;constructor(e,t){super(e),this.status=t,this.name=`ApiError`}};async function z(e,t,n=!0){let r=await fetch(v()+e,{...t,headers:{"Content-Type":`application/json`,...g(),...t?.headers}});if(!r.ok){let e=`HTTP ${r.status}`;try{let t=await r.json();t?.error&&(e=t.error)}catch{}throw new Ge(e,r.status)}if(r.status===204)return;let i=await r.json();if(n&&i&&typeof i==`object`&&i.ok===!1){let e=i.error;throw new Ge(e??`Operation failed`,r.status)}return i}var B=e=>encodeURIComponent(e),V=(e,t)=>z(e,{method:`POST`,body:t?JSON.stringify(t):void 0}),Ke=(e,t)=>z(e,{method:`PUT`,body:t?JSON.stringify(t):void 0}),H=e=>z(e,{method:`DELETE`}),U={overview:()=>z(`/dashboard`),queues:(e=200,t=0)=>z(`/dashboard/queues?limit=${e}&offset=${t}`),queueDetail:(e,t=!0)=>z(`/dashboard/queues/${B(e)}?includeJobs=${t}`),stats:()=>z(`/stats`),storage:()=>z(`/storage`,void 0,!1),health:()=>z(`/health`,void 0,!1),jobsList:(e,t={})=>{let n=new URLSearchParams;return t.states?.length&&n.set(`states`,t.states.join(`,`)),n.set(`limit`,String(t.limit??50)),n.set(`offset`,String(t.offset??0)),z(`/queues/${B(e)}/jobs/list?${n.toString()}`)},job:e=>z(`/jobs/${B(e)}`),cancelJob:e=>H(`/jobs/${B(e)}`),promoteJob:e=>V(`/jobs/${B(e)}/promote`),retryJob:e=>V(`/jobs/${B(e)}/move-to-wait`),pause:e=>V(`/queues/${B(e)}/pause`),resume:e=>V(`/queues/${B(e)}/resume`),drain:e=>V(`/queues/${B(e)}/drain`),obliterate:e=>V(`/queues/${B(e)}/obliterate`),clean:(e,t=0,n=1e3)=>V(`/queues/${B(e)}/clean`,{grace:t,limit:n}),retryCompleted:e=>V(`/queues/${B(e)}/retry-completed`),setRateLimit:(e,t)=>Ke(`/queues/${B(e)}/rate-limit`,{limit:t}),clearRateLimit:e=>H(`/queues/${B(e)}/rate-limit`),setConcurrency:(e,t)=>Ke(`/queues/${B(e)}/concurrency`,{concurrency:t}),clearConcurrency:e=>H(`/queues/${B(e)}/concurrency`),dlq:(e,t=50,n=0)=>z(`/queues/${B(e)}/dlq?limit=${t}&offset=${n}`),dlqStats:e=>z(`/queues/${B(e)}/dlq/stats`),retryDlq:e=>V(`/queues/${B(e)}/dlq/retry`),purgeDlq:e=>V(`/queues/${B(e)}/dlq/purge`),crons:()=>z(`/crons`),deleteCron:e=>H(`/crons/${B(e)}`),workers:()=>z(`/workers`),eventsUrl:e=>v()+(e?`/events/queues/${B(e)}`:`/events`)};function qe(e){let t=!0;return()=>t?(t=!1,!0):!e()}function W(e,t=[],n={}){let r=h(e=>e.refreshMs),i=n.intervalMs??r,[a,o]=(0,y.useState)(null),[s,c]=(0,y.useState)(null),[l,u]=(0,y.useState)(!0),d=(0,y.useRef)(e);d.current=e;let f=(0,y.useRef)(!0),p=(0,y.useRef)(0),m=(0,y.useRef)(void 0),g=(0,y.useRef)(!0),_=(0,y.useRef)(!1),v=(0,y.useCallback)(async()=>{let e=++p.current;try{let t=await d.current();if(!f.current||e!==p.current)return;let n;try{n=JSON.stringify(t)}catch{n=String(Math.random())}n!==m.current&&(m.current=n,o(t)),_.current&&(_.current=!1,c(null))}catch(t){if(!f.current||e!==p.current)return;_.current=!0,c(t)}finally{f.current&&e===p.current&&g.current&&(g.current=!1,u(!1))}},[]);return(0,y.useEffect)(()=>{f.current=!0,m.current=void 0,g.current=!0,u(!0),_.current&&(_.current=!1,c(null));let e=null,t=!1,n=()=>typeof document<`u`&&document.hidden,r=qe(n),a=async()=>{t||(r()&&await v(),!t&&(e=setTimeout(a,i)))};a();let o=()=>{!n()&&!t&&v()};return typeof document<`u`&&document.addEventListener(`visibilitychange`,o),()=>{t=!0,f.current=!1,e&&clearTimeout(e),typeof document<`u`&&document.removeEventListener(`visibilitychange`,o)}},[i,v,...t]),{data:a,error:s,loading:l,refreshing:l,refetch:v}}function Je(){let e=h(e=>e.baseUrl),t=e===`/api`?`localhost:6790`:e.replace(/^https?:\/\//,``);return(0,k.jsxs)(`div`,{className:`mx-3 mb-3 flex items-center gap-2.5 rounded-lg border border-line bg-surface px-3 py-2`,children:[(0,k.jsx)(`span`,{className:`flex size-7 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-accent to-fuchsia-600 text-[11px] font-bold text-white`,children:`bq`}),(0,k.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,k.jsx)(`div`,{className:`truncate text-xs font-medium text-fg`,children:`bunqueue`}),(0,k.jsx)(`div`,{className:`truncate font-mono text-[10px] text-faint`,title:e,children:t})]}),(0,k.jsx)(d,{to:`/settings`,"aria-label":`Settings`,className:`text-faint transition-colors hover:text-fg`,children:(0,k.jsx)(ke,{className:`size-4`})})]})}var Ye=[{section:null,items:[{to:`/`,label:`Overview`,icon:xe,end:!0}]},{section:`Queues`,items:[{to:`/queues`,label:`Queues`,icon:N},{to:`/jobs`,label:`Jobs`,icon:P},{to:`/dlq`,label:`Dead Letter Queue`,icon:F},{to:`/cron`,label:`Cron Jobs`,icon:Se},{to:`/flows`,label:`Flows`,icon:R}]},{section:`Monitoring`,items:[{to:`/metrics`,label:`Metrics`,icon:Ce},{to:`/workers`,label:`Workers`,icon:I},{to:`/logs`,label:`Logs`,icon:Te},{to:`/alerts`,label:`Alerts`,icon:we}]},{section:`Control`,items:[{to:`/server`,label:`Server`,icon:I},{to:`/add-job`,label:`Add Job`,icon:P},{to:`/jobs/bulk-add`,label:`Bulk Add`,icon:P},{to:`/job`,label:`Job Inspector`,icon:ze},{to:`/queue-control`,label:`Queue Control`,icon:N},{to:`/dlq-control`,label:`DLQ Control`,icon:F},{to:`/webhooks`,label:`Webhooks`,icon:L},{to:`/diagnostics`,label:`Diagnostics`,icon:Ce},{to:`/benchmark`,label:`Benchmark`,icon:L}]},{section:`Management`,items:[{to:`/database`,label:`Database`,icon:Oe},{to:`/mcp`,label:`MCP`,icon:L},{to:`/usage`,label:`Usage`,icon:Ee},{to:`/s3`,label:`S3 Backup`,icon:De},{to:`/settings`,label:`Settings`,icon:ke}]}];function Xe(){let e=h(e=>e.baseUrl),{data:n,error:r,loading:i}=W(async()=>({ok:(await U.health()).ok}),[],{intervalMs:15e3}),a=!r&&n!=null&&n.ok!==!1,o=e.replace(/^https?:\/\//,``)||`local`;return(0,k.jsxs)(`div`,{className:`mx-3 mb-4 flex items-center gap-2 rounded-lg border border-line bg-surface px-3 py-1.5`,children:[(0,k.jsx)(`span`,{className:t(`size-1.5 rounded-full`,i?`bg-zinc-500`:a?`bg-emerald-400`:`bg-red-400`),title:i?`connecting`:a?`connected`:`offline`}),(0,k.jsx)(`span`,{className:`truncate font-mono text-[11px] text-muted`,title:e,children:o}),(0,k.jsx)(`span`,{className:`sr-only`,children:i?`connecting`:a?`connected`:`offline`})]})}function Ze(){let e=j(e=>e.theme),t=j(e=>e.toggle),n=e===`dark`;return(0,k.jsxs)(`button`,{type:`button`,onClick:t,className:`mx-3 mb-3 flex items-center gap-3 rounded-lg px-3 py-2 text-sm text-muted transition-colors hover:bg-surface-2 hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50`,children:[n?(0,k.jsx)(Ae,{className:`size-4`}):(0,k.jsx)(je,{className:`size-4`}),n?`Light Mode`:`Dark Mode`]})}function Qe({open:e=!1,onClose:n}){return(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsx)(`button`,{type:`button`,"aria-label":`Close navigation`,onClick:n,className:`fixed inset-0 z-40 bg-black/50 lg:hidden`}),(0,k.jsxs)(`aside`,{className:t(`flex w-60 shrink-0 flex-col border-r border-line bg-sidebar`,`fixed inset-y-0 left-0 z-50 transition-[transform,visibility] lg:static lg:z-auto lg:translate-x-0`,e?`translate-x-0`:`-translate-x-full lg:translate-x-0 invisible lg:visible`),children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-2 px-5 py-5`,children:[(0,k.jsx)(`span`,{className:`text-lg font-bold tracking-tight text-fg`,children:`bunqueue`}),(0,k.jsx)(`span`,{className:`rounded-md bg-accent/15 px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wider text-accent`,children:`dash`}),(0,k.jsx)(`span`,{title:`Beta — under active development`,className:`rounded-md bg-amber-500/15 px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wider text-warning`,children:`beta`})]}),(0,k.jsx)(`nav`,{className:`flex-1 overflow-y-auto px-3 pb-4`,children:Ye.map(e=>(0,k.jsxs)(`div`,{className:`mb-4`,children:[e.section&&(0,k.jsx)(`div`,{className:`px-2 pb-2 pt-1 text-[10px] font-semibold uppercase tracking-wider text-faint`,children:e.section}),(0,k.jsx)(`div`,{className:`flex flex-col gap-0.5`,children:e.items.map(({to:e,label:n,icon:r,end:i})=>(0,k.jsx)(a,{to:e,end:i,className:({isActive:e})=>t(`group relative flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50`,e?`bg-surface-2 text-fg`:`text-muted hover:bg-surface-2/60 hover:text-fg`),children:({isActive:e})=>(0,k.jsxs)(k.Fragment,{children:[e&&(0,k.jsx)(`span`,{className:`absolute inset-y-1.5 left-0 w-0.5 rounded-full bg-accent`}),(0,k.jsx)(r,{className:`size-[18px] shrink-0`}),(0,k.jsx)(`span`,{className:`truncate`,children:n})]})},e))})]},e.section??`root`))}),(0,k.jsx)(Xe,{}),(0,k.jsx)(Ze,{}),(0,k.jsx)(Je,{})]})]})}var $e=`https://egeominotti.github.io/bunqueue-dashboard/docs/`;function et(){let[e,t]=(0,y.useState)(!1),[n,r]=(0,y.useState)(``),[i,a]=(0,y.useState)(0),s=o(),c=j(e=>e.toggle),l=(0,y.useRef)(null),u=(0,y.useRef)(null),d=(0,y.useMemo)(()=>{let e=Ye.flatMap(e=>e.items.map(t=>({id:`nav:${t.to}`,label:t.label,hint:e.section??`Home`,run:()=>s(t.to)}))),t=[{id:`act:theme`,label:`Toggle theme (dark / light)`,hint:`Action`,run:c},{id:`act:docs`,label:`Open documentation`,hint:`Action`,run:()=>window.open($e,`_blank`,`noopener`)}];return[...e,...t]},[s,c]),f=(0,y.useMemo)(()=>{let e=n.trim().toLowerCase();return e?d.filter(t=>`${t.label} ${t.hint}`.toLowerCase().includes(e)):d},[d,n]);(0,y.useEffect)(()=>{let e=e=>{(e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`&&(e.preventDefault(),t(e=>!e))},n=()=>t(!0);return window.addEventListener(`keydown`,e),window.addEventListener(`command-palette:open`,n),()=>{window.removeEventListener(`keydown`,e),window.removeEventListener(`command-palette:open`,n)}},[]),(0,y.useEffect)(()=>{if(!e)return;let t=document.activeElement;r(``),a(0);let n=requestAnimationFrame(()=>l.current?.focus());return()=>{cancelAnimationFrame(n),t?.focus?.()}},[e]),(0,y.useEffect)(()=>{u.current?.querySelector(`[data-idx="${i}"]`)?.scrollIntoView({block:`nearest`})},[i]);let p=(0,y.useCallback)(()=>t(!1),[]),m=(0,y.useCallback)(e=>{e&&(e.run(),t(!1))},[]);return e?(0,k.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-start justify-center p-4 pt-[12vh]`,children:[(0,k.jsx)(`button`,{type:`button`,"aria-label":`Close command palette`,onClick:p,className:`fixed inset-0 bg-black/50`}),(0,k.jsxs)(`div`,{role:`dialog`,"aria-modal":`true`,"aria-label":`Command palette`,className:`relative z-10 w-full max-w-lg overflow-hidden rounded-xl border border-line-strong bg-surface shadow-2xl`,children:[(0,k.jsx)(`input`,{ref:l,value:n,onChange:e=>{r(e.target.value),a(0)},onKeyDown:e=>{e.key===`Escape`?(e.preventDefault(),p()):e.key===`ArrowDown`?(e.preventDefault(),a(e=>Math.min(e+1,f.length-1))):e.key===`ArrowUp`?(e.preventDefault(),a(e=>Math.max(e-1,0))):e.key===`Enter`&&(e.preventDefault(),m(f[i]))},placeholder:`Search pages and actions…`,"aria-label":`Search pages and actions`,className:`w-full border-b border-line bg-transparent px-4 py-3 text-sm text-fg outline-none placeholder:text-faint`}),(0,k.jsxs)(`ul`,{ref:u,className:`max-h-80 overflow-y-auto py-2`,"aria-label":`Results`,children:[f.length===0&&(0,k.jsx)(`li`,{className:`px-4 py-6 text-center text-sm text-faint`,children:`No matches`}),f.map((e,t)=>(0,k.jsx)(`li`,{children:(0,k.jsxs)(`button`,{type:`button`,"data-idx":t,onMouseEnter:()=>a(t),onClick:()=>m(e),className:`flex w-full items-center justify-between gap-3 px-4 py-2 text-left text-sm transition-colors ${t===i?`bg-accent/15 text-fg`:`text-muted`}`,children:[(0,k.jsx)(`span`,{className:`truncate`,children:e.label}),(0,k.jsx)(`span`,{className:`shrink-0 text-xs text-faint`,children:e.hint})]})},e.id))]}),(0,k.jsxs)(`div`,{className:`flex items-center justify-between border-t border-line px-4 py-2 text-xs text-faint`,children:[(0,k.jsx)(`span`,{children:`↑↓ navigate · ↵ open · esc close`}),(0,k.jsx)(`span`,{className:`font-mono`,children:`⌘K`})]})]})]}):null}var G=()=>typeof crypto<`u`&&crypto.randomUUID?crypto.randomUUID():`${Date.now()}`,K=new Map,q=(e,t,n)=>e.map(e=>e.id===t?n(e):e);function tt(e){return{config:{provider:e.config.provider,baseURL:e.config.baseURL,model:e.config.model}}}var nt=_()(m(e=>({open:!1,config:{provider:`anthropic`,baseURL:``,model:`claude-opus-4-8`,apiKey:``},messages:[],pending:[],busy:!1,setOpen:t=>e({open:t}),toggle:()=>e(e=>({open:!e.open})),setConfig:t=>e(e=>({config:{...e.config,...t}})),clear:()=>{for(let e of K.values())e(!1);K.clear(),e({messages:[],pending:[]})},cancelPending:()=>{for(let e of K.values())e(!1);K.clear(),e({pending:[]})},setBusy:t=>e({busy:t}),addUser:t=>e(e=>({messages:[...e.messages,{id:G(),role:`user`,content:t}]})),startAssistant:()=>{let t=G();return e(e=>({messages:[...e.messages,{id:t,role:`assistant`,content:``,tools:[]}]})),t},appendAssistant:(t,n)=>e(e=>({messages:q(e.messages,t,e=>({...e,content:e.content+n}))})),finishAssistant:(t,n)=>e(e=>({messages:q(e.messages,t,e=>({...e,error:!!n?.error,content:n?.error?e.content||n.error:e.content}))})),addTool:(t,n)=>e(e=>({messages:q(e.messages,t,e=>({...e,tools:[...e.tools??[],n]}))})),updateTool:(t,n,r)=>e(e=>({messages:q(e.messages,t,e=>({...e,tools:(e.tools??[]).map(e=>e.id===n?{...e,...r}:e)}))})),requestConfirm:t=>new Promise(n=>{let r=G();K.set(r,n),e(e=>({pending:[...e.pending,{...t,id:r}]}))}),resolveConfirm:(t,n)=>{let r=K.get(t);r&&(K.delete(t),r(n)),e(e=>({pending:e.pending.filter(e=>e.id!==t)}))}}),{name:`bq-dash-copilot`,partialize:e=>tt(e),merge:(e,t)=>{let n=e??{};return{...t,config:{...t.config,...n.config??{},apiKey:``}}}})),rt=(0,y.lazy)(()=>i(()=>import(`./CopilotPanel-krCimuWQ.js`).then(e=>({default:e.CopilotPanel})),__vite__mapDeps([0,1,2,3])));function it({className:e}){return(0,k.jsxs)(`svg`,{className:e,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,children:[(0,k.jsx)(`path`,{d:`M12 3l1.9 4.6L18.5 9.5 13.9 11.4 12 16l-1.9-4.6L5.5 9.5l4.6-1.9L12 3z`,fill:`currentColor`}),(0,k.jsx)(`path`,{d:`M19 14l.8 2 2 .8-2 .8-.8 2-.8-2-2-.8 2-.8.8-2z`,fill:`currentColor`,opacity:`0.7`})]})}function at(){let e=nt(e=>e.open),t=nt(e=>e.setOpen);return(0,k.jsxs)(k.Fragment,{children:[!e&&(0,k.jsxs)(`button`,{type:`button`,onClick:()=>t(!0),className:`fixed bottom-5 right-5 z-40 flex items-center gap-2 rounded-full border border-line bg-surface px-4 py-2.5 text-sm font-medium text-fg shadow-lg transition-colors hover:border-accent/50 hover:text-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50`,"aria-label":`Open Copilot`,children:[(0,k.jsx)(it,{className:`size-4 text-accent`}),`Copilot`,(0,k.jsx)(`span`,{className:`rounded bg-accent/15 px-1.5 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-accent`,children:`beta`})]}),e&&(0,k.jsx)(y.Suspense,{fallback:(0,k.jsx)(`div`,{className:`fixed inset-y-0 right-0 z-[60] flex w-full max-w-md items-center justify-center border-l border-line bg-surface text-sm text-muted`,children:`Loading Copilot…`}),children:(0,k.jsx)(rt,{})})]})}var ot={default:`border border-line bg-surface-2 text-fg hover:bg-surface-2/70 hover:border-line-strong`,ghost:`text-muted hover:text-fg hover:bg-surface-2`,accent:`bg-accent text-accent-fg hover:opacity-90 border border-transparent`,danger:`border border-red-500/30 text-danger hover:bg-red-500/10 hover:border-red-500/50`,warning:`border border-amber-500/30 text-warning hover:bg-amber-500/10 hover:border-amber-500/50`,success:`bg-emerald-500 text-white hover:bg-emerald-500/90 border border-transparent`},st={sm:`h-8 px-3 text-xs gap-1.5`,md:`h-9 px-4 text-sm gap-2`};function ct({children:e,variant:n=`default`,size:r=`md`,className:i,...a}){return(0,k.jsx)(`button`,{type:`button`,className:t(`inline-flex items-center justify-center rounded-lg font-medium transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50`,`disabled:cursor-not-allowed disabled:opacity-50`,ot[n],st[r],i),...a,children:e})}function lt({children:e,className:n,variant:r=`ghost`,...i}){return(0,k.jsx)(`button`,{type:`button`,className:t(`inline-flex size-8 items-center justify-center rounded-lg transition-colors`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50`,`disabled:cursor-not-allowed disabled:opacity-50`,ot[r],n),...i,children:e})}function J({children:e,className:n,padded:r=!0}){return(0,k.jsx)(`div`,{className:t(`rounded-xl border border-line bg-surface`,r&&`p-5`,n),children:e})}function ut({title:e,action:t,icon:n}){return(0,k.jsxs)(`div`,{className:`mb-4 flex items-center justify-between gap-3`,children:[(0,k.jsxs)(`h3`,{className:`flex items-center gap-2 text-base font-semibold text-fg`,children:[n,e]}),t]})}function dt({className:e}){return(0,k.jsx)(`span`,{className:t(`inline-block size-4 animate-spin rounded-full border-2 border-current border-t-transparent`,e),role:`status`,"aria-label":`Loading`})}function ft({label:e=`Loading…`}){return(0,k.jsxs)(`div`,{className:`flex items-center justify-center gap-3 py-16 text-sm text-muted`,children:[(0,k.jsx)(dt,{}),e]})}function pt({icon:e,title:t,hint:n,action:r}){return(0,k.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-2 rounded-xl border border-dashed border-line py-14 text-center`,children:[e&&(0,k.jsx)(`div`,{className:`text-faint [&>svg]:size-8`,children:e}),(0,k.jsx)(`div`,{className:`text-sm font-medium text-fg`,children:t}),n&&(0,k.jsx)(`div`,{className:`max-w-sm text-xs text-faint`,children:n}),r&&(0,k.jsx)(`div`,{className:`mt-2`,children:r})]})}function mt({onRetry:e,message:t=`Not connected to the bunqueue server — showing empty data.`}){return(0,k.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-3 rounded-lg border border-amber-500/25 bg-amber-500/[0.06] px-4 py-2.5 text-sm`,children:[(0,k.jsx)(`span`,{className:`size-2 shrink-0 rounded-full bg-amber-400`,"aria-hidden":`true`}),(0,k.jsx)(`span`,{className:`text-amber-300/90 light:text-amber-700`,children:t}),e&&(0,k.jsx)(`button`,{type:`button`,onClick:e,className:`ml-auto shrink-0 rounded-md border border-amber-500/30 px-2.5 py-1 text-xs font-medium text-amber-200 light:text-amber-700 hover:border-amber-400/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50`,children:`Retry`})]})}function ht({error:e,onRetry:t}){return(0,k.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-3 rounded-xl border border-red-500/20 bg-red-500/5 py-14 text-center`,children:[(0,k.jsx)(`div`,{className:`text-sm font-medium text-danger`,children:`Something went wrong`}),(0,k.jsx)(`div`,{className:`max-w-md text-xs text-faint`,children:e.message}),t&&(0,k.jsx)(`button`,{type:`button`,onClick:t,className:`mt-1 rounded-lg border border-line bg-surface-2 px-3 py-1.5 text-xs font-medium text-fg hover:border-line-strong`,children:`Retry`})]})}var gt=class extends y.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error(`ErrorBoundary caught an error`,e,t.componentStack)}componentDidUpdate(e){this.state.error&&e.resetKey!==this.props.resetKey&&this.setState({error:null})}render(){let{error:e}=this.state;return e?(0,k.jsx)(`div`,{className:`flex min-h-screen items-center justify-center p-6`,children:(0,k.jsxs)(J,{className:`w-full max-w-lg`,children:[(0,k.jsx)(ht,{error:e}),(0,k.jsx)(`div`,{className:`mt-4 flex justify-center`,children:(0,k.jsx)(ct,{onClick:()=>window.location.reload(),children:`Reload`})})]})}):this.props.children}},_t={success:{bar:`bg-emerald-500`,title:`text-success`},error:{bar:`bg-red-500`,title:`text-danger`},info:{bar:`bg-accent`,title:`text-accent`}};function vt({toast:e,dismiss:n}){(0,y.useEffect)(()=>{let t=window.setTimeout(()=>n(e.id),e.ttlMs);return()=>window.clearTimeout(t)},[e.id,e.ttlMs,n]);let r=_t[e.level];return(0,k.jsxs)(`div`,{className:`pointer-events-auto flex w-80 max-w-[calc(100vw-2rem)] overflow-hidden rounded-lg border border-line bg-surface shadow-lg`,children:[(0,k.jsx)(`span`,{className:t(`w-1 shrink-0`,r.bar),"aria-hidden":`true`}),(0,k.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-start gap-3 px-3 py-2.5`,children:[(0,k.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,k.jsx)(`div`,{className:t(`text-sm font-medium`,r.title),children:e.title}),e.detail&&(0,k.jsx)(`div`,{className:`mt-0.5 break-words text-xs text-muted`,children:e.detail})]}),(0,k.jsx)(`button`,{type:`button`,onClick:()=>n(e.id),"aria-label":`Dismiss notification`,className:`-mr-1 shrink-0 rounded p-0.5 text-faint hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50`,children:(0,k.jsx)(Be,{className:`size-4`})})]})]})}function yt(){let e=S(e=>e.toasts),t=S(e=>e.dismiss);return e.length===0?null:(0,k.jsx)(`section`,{className:`pointer-events-none fixed bottom-4 right-4 z-[60] flex flex-col gap-2`,"aria-label":`Notifications`,"aria-live":`polite`,children:e.map(e=>(0,k.jsx)(vt,{toast:e,dismiss:t},e.id))})}function Y(){if(typeof window>`u`)return!1;let{search:e,hash:t}=window.location;return new URLSearchParams(e).has(`demo`)||t.replace(/^#/,``)===`demo`}var bt=Y(),xt={"/":`Overview`,"/queues":`Queues`,"/jobs":`Jobs`,"/dlq":`Dead Letter Queue`,"/cron":`Cron Jobs`,"/flows":`Flows`,"/metrics":`Metrics`,"/workers":`Workers`,"/logs":`Logs`,"/server":`Server`,"/add-job":`Add Job`,"/jobs/bulk-add":`Bulk Add Jobs`,"/job":`Job Inspector`,"/queue-control":`Queue Control`,"/cron-manager":`Cron Manager`,"/dlq-control":`DLQ Control`,"/webhooks":`Webhooks`,"/diagnostics":`Diagnostics`,"/alerts":`Alerts`,"/benchmark":`Benchmark`,"/database":`Database`,"/mcp":`MCP`,"/usage":`Usage`,"/s3":`S3 Backup`,"/settings":`Settings`,"/overview-classic":`Overview (classic)`,"/queues-classic":`Queues (classic)`,"/jobs-classic":`Jobs (classic)`,"/dlq-classic":`DLQ (classic)`,"/metrics-classic":`Metrics (classic)`,"/logs-classic":`Logs (classic)`,"/s3-classic":`S3 Backup (classic)`};function St(e){if(xt[e])return xt[e];if(e.startsWith(`/queues/`)){let t=e.slice(8);try{t=decodeURIComponent(t)}catch{}return`${t} · Queue`}return`bunqueue`}function Ct({onMenu:e}){let{pathname:t}=r();return(0,k.jsxs)(`header`,{className:`sticky top-0 z-10 flex h-14 items-center justify-between gap-3 border-b border-line bg-bg/80 px-4 backdrop-blur sm:px-6 lg:px-8`,children:[(0,k.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,k.jsx)(`button`,{type:`button`,"aria-label":`Open navigation`,onClick:e,className:`-ml-1 flex size-9 shrink-0 items-center justify-center rounded-lg text-muted hover:bg-surface-2 hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 lg:hidden`,children:(0,k.jsx)(Ue,{className:`size-5`})}),(0,k.jsxs)(`div`,{className:`truncate text-sm text-muted`,children:[(0,k.jsx)(`span`,{className:`text-faint`,children:St(t)}),(0,k.jsx)(`span`,{className:`mx-2 hidden text-faint sm:inline`,children:`·`}),(0,k.jsx)(`span`,{className:`hidden text-faint sm:inline`,children:`bunqueue`})]})]}),(0,k.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[bt&&(0,k.jsxs)(`span`,{title:`Showing canned sample data. No real bunqueue server is connected.`,className:`hidden items-center gap-1.5 rounded-full border border-accent/40 bg-accent/10 px-2.5 py-1 text-xs font-medium text-accent sm:inline-flex`,children:[(0,k.jsx)(`span`,{className:`size-1.5 rounded-full bg-accent`}),`Live demo`]}),(0,k.jsxs)(`button`,{type:`button`,onClick:()=>window.dispatchEvent(new Event(`command-palette:open`)),title:`Command palette (⌘K)`,"aria-label":`Open command palette`,className:`hidden items-center gap-2 rounded-lg border border-line px-2.5 py-1.5 text-xs text-muted hover:bg-surface-2 hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50 sm:flex`,children:[(0,k.jsx)(`span`,{children:`Search`}),(0,k.jsx)(`kbd`,{className:`rounded border border-line bg-surface-2 px-1 font-mono text-[10px]`,children:`⌘K`})]}),(0,k.jsx)(d,{to:`/settings`,title:`Settings`,"aria-label":`Open settings`,className:`flex size-8 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-accent to-fuchsia-600 text-xs font-bold text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/50`,children:`bq`})]})]})}function wt(){let[e,t]=(0,y.useState)(!1),{pathname:i,key:a}=r();return(0,y.useEffect)(()=>t(!1),[i]),(0,y.useEffect)(()=>{if(!e)return;let n=e=>{e.key===`Escape`&&t(!1)};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e]),(0,k.jsx)(gt,{children:(0,k.jsxs)(`div`,{className:`flex h-screen overflow-hidden bg-bg text-fg`,children:[(0,k.jsx)(`a`,{href:`#main`,className:`sr-only rounded-md bg-accent px-3 py-2 text-sm font-medium text-accent-fg shadow-lg focus:not-sr-only focus:absolute focus:left-4 focus:top-3 focus:z-50`,children:`Skip to content`}),(0,k.jsx)(Qe,{open:e,onClose:()=>t(!1)}),(0,k.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,k.jsx)(Ct,{onMenu:()=>t(!0)}),(0,k.jsx)(`main`,{id:`main`,tabIndex:-1,className:`flex-1 overflow-y-auto px-4 py-5 outline-none sm:px-6 lg:px-8 lg:py-6`,children:(0,k.jsx)(y.Suspense,{fallback:(0,k.jsx)(`div`,{className:`p-2 text-sm text-muted`,children:`Loading…`}),children:(0,k.jsx)(gt,{resetKey:a,children:(0,k.jsx)(n,{})})})})]}),(0,k.jsx)(et,{}),(0,k.jsx)(ye,{}),(0,k.jsx)(at,{}),(0,k.jsx)(yt,{}),(0,k.jsx)(ve,{})]})})}var Tt={completed:`text-success bg-emerald-500/10`,active:`text-blue-400 light:text-blue-700 bg-blue-500/10`,failed:`text-danger bg-red-500/10`,waiting:`text-zinc-400 light:text-zinc-600 bg-zinc-500/10`,prioritized:`text-violet-400 light:text-violet-700 bg-violet-500/10`,delayed:`text-warning bg-amber-500/10`,paused:`text-orange-400 light:text-orange-700 bg-orange-500/10`,"waiting-children":`text-cyan-400 light:text-cyan-700 bg-cyan-500/10`,stalled:`text-orange-400 light:text-orange-700 bg-orange-500/10`,enqueued:`text-zinc-400 light:text-zinc-600 bg-zinc-500/10`,started:`text-blue-400 light:text-blue-700 bg-blue-500/10`,finished:`text-success bg-emerald-500/10`,retry:`text-warning bg-amber-500/10`,cancelled:`text-zinc-400 light:text-zinc-600 bg-zinc-500/10`,default:`text-zinc-400 light:text-zinc-600 bg-zinc-500/10`};function Et({status:e}){return(0,k.jsxs)(`span`,{className:t(`inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs font-medium capitalize`,Tt[(e||``).toLowerCase()]??Tt.default),children:[(0,k.jsx)(`span`,{className:`size-1.5 rounded-full bg-current`}),e||`unknown`]})}function Dt({label:e,tone:n=`green`}){return(0,k.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-xs font-medium text-muted`,children:[(0,k.jsx)(`span`,{className:t(`size-1.5 rounded-full`,n===`green`?`bg-emerald-400`:n===`amber`?`bg-amber-400`:n===`red`?`bg-red-400`:`bg-zinc-400`)}),e]})}function Ot({title:e,description:t,live:n,actions:r,back:i}){return(0,k.jsxs)(`div`,{className:`mb-6 flex flex-wrap items-start justify-between gap-4`,children:[(0,k.jsxs)(`div`,{className:`flex items-start gap-3`,children:[i,(0,k.jsxs)(`div`,{children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,k.jsx)(`h1`,{className:`text-2xl font-bold tracking-tight text-fg`,children:e}),n&&(0,k.jsx)(Dt,{label:`Live`,tone:`green`})]}),t&&(0,k.jsx)(`p`,{className:`mt-1 text-sm text-muted`,children:t})]})]}),r&&(0,k.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:r})]})}var kt={default:`text-fg`,green:`text-success`,red:`text-danger`,blue:`text-blue-400 light:text-blue-700`,amber:`text-warning`,accent:`text-accent`};function X({label:e,value:n,tone:r=`default`,hint:i,compact:a}){return(0,k.jsxs)(`div`,{className:t(`rounded-xl border border-line bg-surface`,a?`px-4 py-3`:`px-5 py-4`),children:[(0,k.jsx)(`div`,{className:`text-[11px] font-medium uppercase tracking-wider text-faint`,children:e}),(0,k.jsx)(`div`,{className:t(`mt-2 font-semibold tnum`,a?`text-xl`:`text-3xl`,kt[r]),children:n}),i!=null&&(0,k.jsx)(`div`,{className:`mt-1 text-xs text-faint`,children:i})]})}var At=new Intl.NumberFormat(`de-DE`),jt=new Intl.DateTimeFormat(`it-IT`,{day:`2-digit`,month:`2-digit`,year:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`});function Z(e){return e==null||!Number.isFinite(e)?`0`:At.format(e)}function Mt(e,t=2){return e==null||!Number.isFinite(e)?`0%`:`${(e*100).toFixed(t)}%`}function Nt(e,t){let n=e+t;return n>0?t/n:null}function Pt(e){if(e==null||!Number.isFinite(e))return`—`;let t=new Date(e);return Number.isNaN(t.getTime())?`—`:jt.format(t)}function Ft(e,t=Date.now()){if(e==null||!Number.isFinite(e))return`—`;let n=Math.max(0,t-e),r=Math.floor(n/1e3);if(r<60)return`${r}s ago`;let i=Math.floor(r/60);if(i<60)return`${i}m ago`;let a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}function It(e){if(e==null||!Number.isFinite(e)||e<0)return`—`;if(e<1e3)return`${Math.round(e)}ms`;let t=e/1e3;if(t<59.95)return`${t.toFixed(1)}s`;let n=Math.round(t);return`${Math.floor(n/60)}m ${n%60}s`}function Lt(e,t){if(e==null||t==null)return;let n=t-e;return n>=0?n:void 0}function Rt(e){if(e==null||!Number.isFinite(e))return`—`;let t=Math.floor(e),n=Math.floor(t/86400),r=Math.floor(t%86400/3600),i=Math.floor(t%3600/60),a=[];return n&&a.push(`${n}d`),(r||n)&&a.push(`${r}h`),a.push(`${i}m`),a.join(` `)}function zt(e){return e==null||!Number.isFinite(e)?`0`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(Math.round(e))}function Bt(e){return e==null||!Number.isFinite(e)?`—`:e>=1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(+(e<10))}ms`}var Vt=/(?:\u001b\[[0-9;?]*[ -/]*[@-~]|\u001b[@-Z\\^_])/g;function Ht(e){return e.replace(Vt,``)}function Ut(e){if(e==null||!Number.isFinite(e))return`—`;let t=[`B`,`KB`,`MB`,`GB`,`TB`],n=e,r=0;for(;n>=1024&&r<t.length-1;)n/=1024,r++;return`${n.toFixed(r===0?0:1)} ${t[r]}`}function Wt(e){return!0}function Gt(e){let t=`message`,n,r=[];for(let i of e.split(`
|
|
3
|
-
`)){if(!i||i.startsWith(`:`))continue;let e=i.indexOf(`:`),a=e===-1?i:i.slice(0,e),o=e===-1?``:i.slice(e+1).replace(/^ /,``);a===`event`?t=o:a===`data`?r.push(o):a===`id`&&(n=o)}if(r.length===0)return null;let i=r.join(`
|
|
4
|
-
`),a=i;try{a=JSON.parse(i)}catch{}return{id:n,event:t,data:a}}async function Kt(e,t,n){let r=await fetch(e,{headers:{Accept:`text/event-stream`,...g()},signal:n});if(!r.ok||!r.body)throw Error(`SSE connect failed: HTTP ${r.status}`);let i=r.body.getReader(),a=new TextDecoder,o=``;try{for(;;){let{done:e,value:n}=await i.read();if(e)break;o+=a.decode(n,{stream:!0});let r;for(;(r=o.indexOf(`
|
|
5
|
-
|
|
6
|
-
`))!==-1||(r=o.indexOf(`\r
|
|
7
|
-
\r
|
|
8
|
-
`))!==-1;){let e=o[r]===`\r`,n=o.slice(0,r);o=o.slice(r+(e?4:2));let i=Gt(n.replace(/\r/g,``));i&&t(i)}}}finally{i.releaseLock()}}var Q={total:0,completed:0,failed:0,waiting:0,active:0},qt=250;function Jt(e){let t=e.includes(`:`)?e.split(`:`)[1]:e;switch(t){case`pushed`:case`added`:return`waiting`;case`pulled`:return`active`;case`progress`:return`active`;default:return t}}function Yt(e){let t=h(e=>e.baseUrl),n=h(e=>e.token),[r,i]=(0,y.useState)([]),[a,o]=(0,y.useState)(Q),[s,c]=(0,y.useState)(0),[l,u]=(0,y.useState)(!1),d=(0,y.useRef)([]),f=(0,y.useRef)([]),p=(0,y.useRef)({...Q});return(0,y.useEffect)(()=>{let t=new AbortController,n=0,r=!1;i([]),o(Q),d.current=[],f.current=[],p.current={...Q};let a=e=>new Promise(n=>{let r=()=>{clearTimeout(i),n()},i=setTimeout(()=>{t.signal.removeEventListener(`abort`,r),n()},e);t.signal.addEventListener(`abort`,r,{once:!0})}),s=e=>{if(Wt(e)&&u(!0),!e.event.startsWith(`job:`))return;let t=e.data??{},r=Jt(e.event),i={seq:++n,event:e.event,queue:t.queue,jobId:t.jobId,name:t.name,status:r,timestamp:t.timestamp??Date.now(),error:t.error,progress:t.progress};f.current.push(i);let a=p.current;a.total+=1,r===`completed`?a.completed+=1:r===`failed`?a.failed+=1:r===`waiting`?a.waiting+=1:r===`active`&&(a.active+=1),d.current.push(Date.now())};(async()=>{for(;!r;){try{await Kt(U.eventsUrl(e),s,t.signal)}catch{}if(r)break;u(!1),await a(2e3)}})();let c=setInterval(()=>{if(f.current.length){let e=f.current;f.current=[],e.reverse(),i(t=>[...e,...t].slice(0,qt))}let e=p.current;e.total&&(p.current={...Q},o(t=>({total:t.total+e.total,completed:t.completed+e.completed,failed:t.failed+e.failed,waiting:t.waiting+e.waiting,active:t.active+e.active})))},150);return()=>{r=!0,t.abort(),clearInterval(c),u(!1)}},[e,t,n]),(0,y.useEffect)(()=>{let e=setInterval(()=>{let e=Date.now();d.current=d.current.filter(t=>e-t<5e3),c(d.current.length/5)},1e3);return()=>clearInterval(e)},[]),{events:r,counters:a,throughput:s,connected:l}}var Xt={overview:{stats:{waiting:0,active:0,delayed:0,completed:0,dlq:0,totalPushed:0,totalPulled:0,totalCompleted:0,totalFailed:0,uptime:0},throughput:{pushPerSec:0,pullPerSec:0,completePerSec:0,failPerSec:0},memory:{heapUsed:0,heapTotal:0,rss:0},crons:{total:0}},queuesTotal:0,details:[],failedTotal:0};function Zt(){let e=h(e=>e.baseUrl),n=h(e=>e.token),{data:r,error:i,loading:a,refetch:o}=W(async()=>{let[e,t]=await Promise.all([O.overview(),O.queuesSummary()]),n=t.slice(0,6).map(e=>({name:e.name,paused:e.paused,counts:e.counts})),r=t.reduce((e,t)=>e+(t.counts?.failed??0),0);return{overview:e,queuesTotal:t.length,details:n,failedTotal:r}},[]);if(a&&!r&&!i)return(0,k.jsx)(ft,{label:`Loading overview…`});let{overview:s,queuesTotal:c,details:l,failedTotal:u}=r??Xt,{stats:f,throughput:p,memory:m,crons:g}=s,_=Nt(f.completed,u),v=e===`/api`?`localhost:6790`:e.replace(/^https?:\/\//,``),ee=f.uptime?Rt(f.uptime/1e3):`—`,y=Ut(m.rss*1024*1024),b=!!i;return(0,k.jsxs)(`div`,{children:[(0,k.jsx)(Ot,{title:`Overview`,description:`Real-time system health at a glance.`,live:!0}),i&&(0,k.jsx)(mt,{onRetry:o}),(0,k.jsxs)(`div`,{className:t(`mb-6 flex flex-wrap items-center justify-between gap-y-2 rounded-xl border px-5 py-4`,b?`border-amber-500/25 bg-amber-500/[0.06]`:`border-emerald-500/25 bg-emerald-500/[0.06]`),children:[(0,k.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,k.jsxs)(`span`,{className:`relative flex size-2.5`,children:[!b&&(0,k.jsx)(`span`,{className:`absolute inline-flex size-full animate-ping rounded-full bg-emerald-400 opacity-60`}),(0,k.jsx)(`span`,{className:t(`relative inline-flex size-2.5 rounded-full`,b?`bg-amber-400`:`bg-emerald-400`)})]}),(0,k.jsxs)(`div`,{className:`min-w-0`,children:[(0,k.jsx)(`div`,{className:t(`font-semibold`,b?`text-warning`:`text-success`),children:b?`Connection lost — showing last known data`:`bunqueue server connected`}),(0,k.jsxs)(`div`,{className:`truncate font-mono text-xs text-muted`,children:[v,` · uptime `,ee,` · `,y,` RAM`]})]})]}),(0,k.jsx)(`span`,{className:t(`rounded-full px-3 py-1 text-xs font-medium`,b?`bg-amber-500/15 text-warning`:`bg-emerald-500/15 text-success`),children:b?`Stale`:`Online`})]}),(0,k.jsxs)(`div`,{className:`grid grid-cols-2 gap-4 md:grid-cols-3 xl:grid-cols-6`,children:[(0,k.jsx)(X,{label:`Completed`,value:Z(f.completed),tone:`green`}),(0,k.jsx)(X,{label:`Failed`,value:Z(u),tone:u?`red`:`default`}),(0,k.jsx)(X,{label:`Waiting`,value:Z(f.waiting),tone:`amber`}),(0,k.jsx)(X,{label:`Active`,value:Z(f.active),tone:`blue`}),(0,k.jsx)(X,{label:`Error Rate`,value:_==null?`—`:Mt(_),tone:_==null?`default`:_>.05?`red`:`green`}),(0,k.jsx)(X,{label:`DLQ`,value:Z(f.dlq),tone:f.dlq?`red`:`default`})]}),(0,k.jsxs)(`div`,{className:`mt-4 grid grid-cols-2 gap-4 md:grid-cols-3 xl:grid-cols-6`,children:[(0,k.jsx)(X,{label:`Push/sec`,value:p.pushPerSec.toFixed(1),tone:`accent`,hint:`jobs/sec`}),(0,k.jsx)(X,{label:`Pull/sec`,value:p.pullPerSec.toFixed(1),tone:`accent`,hint:`jobs/sec`}),(0,k.jsx)(X,{label:`Queues`,value:Z(c),hint:`${g.total} cron active`}),(0,k.jsx)(X,{label:`Total Pushed`,value:Z(f.totalPushed),hint:`since restart`}),(0,k.jsx)(X,{label:`API Keys`,value:+!!n,hint:n?`token set`:`no auth`}),(0,k.jsx)(X,{label:`Uptime`,value:ee,hint:`${y} RAM`})]}),(0,k.jsxs)(`div`,{className:`mt-8`,children:[(0,k.jsx)($t,{title:`Queue Health`,to:`/queues`}),l.length===0?(0,k.jsx)(J,{children:(0,k.jsx)(`p`,{className:`py-4 text-center text-sm text-faint`,children:`No queues yet.`})}):(0,k.jsx)(`div`,{className:`grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3`,children:l.map(e=>(0,k.jsxs)(d,{to:`/queues/${encodeURIComponent(e.name)}`,className:`rounded-xl border border-line bg-surface p-4 transition-colors hover:border-line-strong`,children:[(0,k.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-2`,children:[(0,k.jsx)(`span`,{className:`truncate font-mono text-sm font-medium text-accent`,children:e.name}),(0,k.jsx)(`span`,{className:t(`shrink-0 rounded-full px-2 py-0.5 text-[11px] font-medium`,e.paused?`bg-orange-500/10 text-orange-400`:`bg-emerald-500/10 text-success`),children:e.paused?`paused`:`active`})]}),(0,k.jsxs)(`div`,{className:`flex flex-wrap gap-x-4 gap-y-1 font-mono text-xs text-faint`,children:[(0,k.jsx)($,{label:`W`,value:e.counts?.waiting,tone:`text-warning`}),(0,k.jsx)($,{label:`A`,value:e.counts?.active,tone:`text-blue-400`}),(0,k.jsx)($,{label:`C`,value:e.counts?.completed,tone:`text-success`}),(0,k.jsx)($,{label:`F`,value:e.counts?.failed,tone:`text-danger`})]})]},e.name))})]}),(0,k.jsx)(Qt,{})]})}function Qt(){let{events:e}=Yt();return(0,k.jsxs)(`div`,{className:`mt-8`,children:[(0,k.jsx)($t,{title:`Recent Activity`,to:`/logs`}),(0,k.jsx)(J,{padded:!1,children:e.length===0?(0,k.jsx)(`p`,{className:`py-8 text-center text-sm text-faint`,children:`Waiting for live activity…`}):(0,k.jsx)(`ul`,{className:`divide-y divide-line`,children:e.slice(0,8).map(e=>(0,k.jsxs)(`li`,{className:`flex items-center justify-between px-5 py-3`,children:[(0,k.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,k.jsx)(`span`,{className:t(`size-2 rounded-full`,en(e.status))}),(0,k.jsxs)(`div`,{className:`text-sm`,children:[(0,k.jsx)(`span`,{className:`font-mono font-medium text-fg`,children:e.queue||`—`}),(0,k.jsx)(`span`,{className:`text-faint`,children:` · `}),(0,k.jsx)(`span`,{className:`font-mono text-xs text-faint`,children:e.jobId?e.jobId.slice(0,8):`—`}),(0,k.jsx)(`span`,{className:`text-faint`,children:` · `}),(0,k.jsx)(`span`,{className:`capitalize text-muted`,children:e.status})]})]}),(0,k.jsx)(`span`,{className:`text-xs text-faint`,children:Ft(e.timestamp)})]},e.seq))})})]})}function $t({title:e,to:t}){return(0,k.jsxs)(`div`,{className:`mb-3 flex items-center justify-between`,children:[(0,k.jsx)(`h2`,{className:`text-lg font-semibold text-fg`,children:e}),(0,k.jsxs)(d,{to:t,className:`flex items-center gap-1 text-sm text-muted hover:text-fg`,children:[`View All `,(0,k.jsx)(R,{className:`size-3.5`})]})]})}function $({label:e,value:n,tone:r}){return(0,k.jsxs)(`span`,{children:[e,` `,(0,k.jsx)(`span`,{className:t(`tnum font-semibold`,r),children:n==null?`—`:Z(n)})]})}function en(e){switch(e){case`completed`:return`bg-emerald-400`;case`failed`:return`bg-red-400`;case`active`:return`bg-blue-400`;case`waiting`:return`bg-amber-400`;default:return`bg-accent`}}function tn(){return(0,k.jsxs)(`div`,{className:`flex flex-col items-center justify-center gap-3 py-24 text-center`,children:[(0,k.jsx)(`div`,{className:`text-5xl font-bold text-faint`,children:`404`}),(0,k.jsx)(`p`,{className:`text-sm text-muted`,children:`This page does not exist.`}),(0,k.jsx)(d,{to:`/`,className:`rounded-lg border border-line bg-surface-2 px-4 py-2 text-sm font-medium text-fg hover:border-line-strong`,children:`Back to Overview`})]})}var nn=(0,y.lazy)(()=>i(()=>import(`./AddJob-CaPckiUk.js`).then(e=>({default:e.AddJob})),__vite__mapDeps([4,1,2,3]))),rn=(0,y.lazy)(()=>i(()=>import(`./Benchmark-BUCKbeuC.js`).then(e=>({default:e.Benchmark})),__vite__mapDeps([5,1,2,3,6,7]))),an=(0,y.lazy)(()=>i(()=>import(`./BulkAddJobs-BIUVhw79.js`).then(e=>({default:e.BulkAddJobs})),__vite__mapDeps([8,1,2,3]))),on=(0,y.lazy)(()=>i(()=>import(`./CronManager-CorgubVA.js`).then(e=>({default:e.CronManager})),__vite__mapDeps([9,1,2,3,10]))),sn=(0,y.lazy)(()=>i(()=>import(`./Database-D2Kg4jZ5.js`).then(e=>({default:e.Database})),__vite__mapDeps([11,1,2,3,10,7]))),cn=(0,y.lazy)(()=>i(()=>import(`./Diagnostics-B9eXpr9p.js`).then(e=>({default:e.Diagnostics})),__vite__mapDeps([12,1,2]))),ln=(0,y.lazy)(()=>i(()=>import(`./DlqControl-VeRgk2sV.js`).then(e=>({default:e.DlqControl})),__vite__mapDeps([13,1,2,3,10,7,14]))),un=(0,y.lazy)(()=>i(()=>import(`./DlqPro-D40bX5wt.js`).then(e=>({default:e.DlqPro})),__vite__mapDeps([15,1,2,3,10,14,16]))),dn=(0,y.lazy)(()=>i(()=>import(`./Flows-H8j_vUf9.js`).then(e=>({default:e.Flows})),__vite__mapDeps([17,1,2]))),fn=(0,y.lazy)(()=>i(()=>import(`./JobInspector-CXzDoEVg.js`).then(e=>({default:e.JobInspector})),__vite__mapDeps([18,1,2,3,7,14,19]))),pn=(0,y.lazy)(()=>i(()=>import(`./JobsPro-9JG9oKsi.js`).then(e=>({default:e.JobsPro})),__vite__mapDeps([20,1,2,3,10,14,19]))),mn=(0,y.lazy)(()=>i(()=>import(`./LogsPro-DjhlPDzs.js`).then(e=>({default:e.LogsPro})),__vite__mapDeps([21,1,2,3,10]))),hn=(0,y.lazy)(()=>i(()=>import(`./McpServer-BcNGlbb8.js`).then(e=>({default:e.McpServer})),__vite__mapDeps([22,2,1,7]))),gn=(0,y.lazy)(()=>i(()=>import(`./MetricsPro-DM__uhdn.js`).then(e=>({default:e.MetricsPro})),__vite__mapDeps([23,1,2,10,6,24]))),_n=(0,y.lazy)(()=>i(()=>import(`./QueueControl-Cxl_GKCw.js`).then(e=>({default:e.QueueControl})),__vite__mapDeps([25,1,2,3,26]))),vn=(0,y.lazy)(()=>i(()=>import(`./QueueDetailPro-CDntEb4E.js`).then(e=>({default:e.QueueDetailPro})),__vite__mapDeps([27,1,2,6,24,26,3]))),yn=(0,y.lazy)(()=>i(()=>import(`./QueuesOverview-CggwfR_n.js`).then(e=>({default:e.QueuesOverview})),__vite__mapDeps([28,1,2,10,16]))),bn=(0,y.lazy)(()=>i(()=>import(`./S3BackupPro-BPop6lt3.js`).then(e=>({default:e.S3BackupPro})),__vite__mapDeps([29,1,2,30,3]))),xn=(0,y.lazy)(()=>i(()=>import(`./ServerControl-ELjdOfy0.js`).then(e=>({default:e.ServerControl})),__vite__mapDeps([31,1,2,3,7]))),Sn=(0,y.lazy)(()=>i(()=>import(`./UsagePro-DTCHLKue.js`).then(e=>({default:e.UsagePro})),__vite__mapDeps([32,2,1]))),Cn=(0,y.lazy)(()=>i(()=>import(`./Webhooks-BSxGyZBk.js`).then(e=>({default:e.Webhooks})),__vite__mapDeps([33,1,2,3,10]))),wn=(0,y.lazy)(()=>i(()=>import(`./WorkersPro-EbCgSBaw.js`).then(e=>({default:e.WorkersPro})),__vite__mapDeps([34,1,2]))),Tn=(0,y.lazy)(()=>i(()=>import(`./Alerts-B2c0ARdJ.js`).then(e=>({default:e.Alerts})),__vite__mapDeps([35,1,2,3]))),En=(0,y.lazy)(()=>i(()=>import(`./Cron-DtuiCy5T.js`).then(e=>({default:e.Cron})),__vite__mapDeps([36,1,2,10]))),Dn=(0,y.lazy)(()=>i(()=>import(`./Dlq-DYBGJHQ7.js`).then(e=>({default:e.Dlq})),__vite__mapDeps([37,1,2,3,10]))),On=(0,y.lazy)(()=>i(()=>import(`./Jobs-CTYa9Wq9.js`).then(e=>({default:e.Jobs})),__vite__mapDeps([38,1,2,3]))),kn=(0,y.lazy)(()=>i(()=>import(`./Logs-D4_bxWwW.js`).then(e=>({default:e.Logs})),__vite__mapDeps([39,1,2,3,10]))),An=(0,y.lazy)(()=>i(()=>import(`./Metrics-DDxWBIBZ.js`).then(e=>({default:e.Metrics})),__vite__mapDeps([40,2,1]))),jn=(0,y.lazy)(()=>i(()=>import(`./Overview-bPieBOHN.js`).then(e=>({default:e.Overview})),__vite__mapDeps([41,2,1]))),Mn=(0,y.lazy)(()=>i(()=>import(`./QueueDetail-BaehsuiZ.js`).then(e=>({default:e.QueueDetail})),__vite__mapDeps([42,1,2,3]))),Nn=(0,y.lazy)(()=>i(()=>import(`./Queues-BXwcVq8b.js`).then(e=>({default:e.Queues})),__vite__mapDeps([43,1,2,10]))),Pn=(0,y.lazy)(()=>i(()=>import(`./S3Backup-DKegjDS2.js`).then(e=>({default:e.S3Backup})),__vite__mapDeps([44,2,1]))),Fn=(0,y.lazy)(()=>i(()=>import(`./Settings-CeRzvpaS.js`).then(e=>({default:e.Settings})),__vite__mapDeps([45,1,2,30,3]))),In=(0,y.lazy)(()=>i(()=>import(`./Usage-nsrrx66q.js`).then(e=>({default:e.Usage})),__vite__mapDeps([46,2,1]))),Ln=(0,y.lazy)(()=>i(()=>import(`./Workers-4FvLmhA2.js`).then(e=>({default:e.Workers})),__vite__mapDeps([47,1,2,10])));function Rn(){return(0,k.jsx)(f,{children:(0,k.jsxs)(l,{element:(0,k.jsx)(wt,{}),children:[(0,k.jsx)(l,{path:`/`,element:(0,k.jsx)(Zt,{})}),(0,k.jsx)(l,{path:`/overview-classic`,element:(0,k.jsx)(jn,{})}),(0,k.jsx)(l,{path:`/queues`,element:(0,k.jsx)(yn,{})}),(0,k.jsx)(l,{path:`/queues-classic`,element:(0,k.jsx)(Nn,{})}),(0,k.jsx)(l,{path:`/queues/:name`,element:(0,k.jsx)(vn,{})}),(0,k.jsx)(l,{path:`/queues-classic/:name`,element:(0,k.jsx)(Mn,{})}),(0,k.jsx)(l,{path:`/jobs`,element:(0,k.jsx)(pn,{})}),(0,k.jsx)(l,{path:`/jobs-classic`,element:(0,k.jsx)(On,{})}),(0,k.jsx)(l,{path:`/dlq`,element:(0,k.jsx)(un,{})}),(0,k.jsx)(l,{path:`/dlq-classic`,element:(0,k.jsx)(Dn,{})}),(0,k.jsx)(l,{path:`/cron`,element:(0,k.jsx)(on,{})}),(0,k.jsx)(l,{path:`/cron-classic`,element:(0,k.jsx)(En,{})}),(0,k.jsx)(l,{path:`/flows`,element:(0,k.jsx)(dn,{})}),(0,k.jsx)(l,{path:`/metrics`,element:(0,k.jsx)(gn,{})}),(0,k.jsx)(l,{path:`/metrics-classic`,element:(0,k.jsx)(An,{})}),(0,k.jsx)(l,{path:`/workers`,element:(0,k.jsx)(wn,{})}),(0,k.jsx)(l,{path:`/workers-classic`,element:(0,k.jsx)(Ln,{})}),(0,k.jsx)(l,{path:`/logs`,element:(0,k.jsx)(mn,{})}),(0,k.jsx)(l,{path:`/logs-classic`,element:(0,k.jsx)(kn,{})}),(0,k.jsx)(l,{path:`/server`,element:(0,k.jsx)(xn,{})}),(0,k.jsx)(l,{path:`/add-job`,element:(0,k.jsx)(nn,{})}),(0,k.jsx)(l,{path:`/jobs/bulk-add`,element:(0,k.jsx)(an,{})}),(0,k.jsx)(l,{path:`/job`,element:(0,k.jsx)(fn,{})}),(0,k.jsx)(l,{path:`/queue-control`,element:(0,k.jsx)(_n,{})}),(0,k.jsx)(l,{path:`/cron-manager`,element:(0,k.jsx)(on,{})}),(0,k.jsx)(l,{path:`/dlq-control`,element:(0,k.jsx)(ln,{})}),(0,k.jsx)(l,{path:`/webhooks`,element:(0,k.jsx)(Cn,{})}),(0,k.jsx)(l,{path:`/diagnostics`,element:(0,k.jsx)(cn,{})}),(0,k.jsx)(l,{path:`/alerts`,element:(0,k.jsx)(Tn,{})}),(0,k.jsx)(l,{path:`/benchmark`,element:(0,k.jsx)(rn,{})}),(0,k.jsx)(l,{path:`/database`,element:(0,k.jsx)(sn,{})}),(0,k.jsx)(l,{path:`/mcp`,element:(0,k.jsx)(hn,{})}),(0,k.jsx)(l,{path:`/usage`,element:(0,k.jsx)(Sn,{})}),(0,k.jsx)(l,{path:`/usage-classic`,element:(0,k.jsx)(In,{})}),(0,k.jsx)(l,{path:`/s3`,element:(0,k.jsx)(bn,{})}),(0,k.jsx)(l,{path:`/s3-classic`,element:(0,k.jsx)(Pn,{})}),(0,k.jsx)(l,{path:`/settings`,element:(0,k.jsx)(Fn,{})}),(0,k.jsx)(l,{path:`*`,element:(0,k.jsx)(tn,{})})]})})}be();var zn=document.getElementById(`root`);if(!zn)throw Error(`Root element #root not found`);function Bn(){(0,b.createRoot)(zn).render((0,k.jsx)(y.StrictMode,{children:(0,k.jsx)(c,{basename:`/`,children:(0,k.jsx)(Rn,{})})}))}Y()?i(()=>import(`./install-C019EM5j.js`).then(e=>e.installDemo()),[]).catch(()=>{}).finally(Bn):Bn();export{C as $,R as A,L as B,ut as C,qe as D,nt as E,He as F,Le as G,Fe as H,Se as I,Ie as J,De as K,F as L,Me as M,Ne as N,W as O,Be as P,de as Q,We as R,J as S,lt as T,Pe as U,Te as V,N as W,j as X,I as Y,fe as Z,Dt as _,Pt as a,ft as b,Z as c,Rt as d,ce as et,Lt as f,Et as g,Ot as h,zt as i,x as it,Ve as j,U as k,Mt as l,X as m,Nt as n,ae as nt,It as o,Ht as p,Re as q,Ut as r,re as rt,Bt as s,Yt as t,O as tt,Ft as u,Y as v,ct as w,mt as x,pt as y,ze as z};
|