@thaodangspace/argos 0.1.2 → 0.1.5
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/README.md +4 -4
- package/dist/args.d.ts.map +1 -1
- package/dist/args.js +5 -1
- package/dist/args.js.map +1 -1
- package/dist/commands/chart.d.ts +21 -0
- package/dist/commands/chart.d.ts.map +1 -0
- package/dist/commands/chart.js +209 -0
- package/dist/commands/chart.js.map +1 -0
- package/dist/commands/doctor.d.ts +34 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +181 -4
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/hc.d.ts +16 -0
- package/dist/commands/hc.d.ts.map +1 -0
- package/dist/commands/hc.js +689 -0
- package/dist/commands/hc.js.map +1 -0
- package/dist/commands/rex-agents.d.ts +26 -0
- package/dist/commands/rex-agents.d.ts.map +1 -0
- package/dist/commands/rex-agents.js +505 -0
- package/dist/commands/rex-agents.js.map +1 -0
- package/dist/commands/runs.d.ts.map +1 -1
- package/dist/commands/runs.js +5 -1
- package/dist/commands/runs.js.map +1 -1
- package/dist/commands/schedule.d.ts.map +1 -1
- package/dist/commands/schedule.js +2 -1
- package/dist/commands/schedule.js.map +1 -1
- package/dist/commands/serve.d.ts +170 -10
- package/dist/commands/serve.d.ts.map +1 -1
- package/dist/commands/serve.js +291 -49
- package/dist/commands/serve.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +9 -0
- package/dist/main.js.map +1 -1
- package/dist/output.d.ts +1 -1
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +14 -4
- package/dist/output.js.map +1 -1
- package/dist/packs/apply.d.ts +36 -0
- package/dist/packs/apply.d.ts.map +1 -0
- package/dist/packs/apply.js +103 -0
- package/dist/packs/apply.js.map +1 -0
- package/dist/packs/bundled.d.ts +27 -0
- package/dist/packs/bundled.d.ts.map +1 -0
- package/dist/packs/bundled.js +42 -0
- package/dist/packs/bundled.js.map +1 -0
- package/dist/packs/pack.d.ts +142 -0
- package/dist/packs/pack.d.ts.map +1 -0
- package/dist/packs/pack.js +204 -0
- package/dist/packs/pack.js.map +1 -0
- package/dist/packs/plan.d.ts +123 -0
- package/dist/packs/plan.d.ts.map +1 -0
- package/dist/packs/plan.js +307 -0
- package/dist/packs/plan.js.map +1 -0
- package/dist/packs/templates-dir.d.ts +29 -0
- package/dist/packs/templates-dir.d.ts.map +1 -0
- package/dist/packs/templates-dir.js +49 -0
- package/dist/packs/templates-dir.js.map +1 -0
- package/package.json +4 -2
- package/templates/packs/claude/claude-step.mjs +666 -0
- package/templates/packs/claude/pack.json +38 -0
- package/templates/packs/smoke/pack.json +20 -0
- package/templates/packs/smoke/smoke.mjs +104 -0
- package/ui/_app/immutable/assets/0.CUSoXXAe.css +1 -0
- package/ui/_app/immutable/chunks/7kS98abs.js +1 -0
- package/ui/_app/immutable/chunks/BQUxoyXx.js +1 -0
- package/ui/_app/immutable/chunks/BVvEKWUw.js +1 -0
- package/ui/_app/immutable/chunks/BcmE4Pmo.js +2 -0
- package/ui/_app/immutable/chunks/BeleWrn1.js +5 -0
- package/ui/_app/immutable/chunks/CJuNNExc.js +1 -0
- package/ui/_app/immutable/chunks/CSzwgvai.js +55 -0
- package/ui/_app/immutable/chunks/CrMz2YMe.js +1 -0
- package/ui/_app/immutable/chunks/DK3Fl9T5.js +1 -0
- package/ui/_app/immutable/chunks/DR13iyEP.js +3 -0
- package/ui/_app/immutable/chunks/DxF9htzl.js +1 -0
- package/ui/_app/immutable/chunks/KjnrVwp0.js +4 -0
- package/ui/_app/immutable/chunks/Ta9EVp1m.js +1 -0
- package/ui/_app/immutable/chunks/UEYpU5e_.js +1 -0
- package/ui/_app/immutable/chunks/XmWYLfMV.js +1 -0
- package/ui/_app/immutable/entry/app.fpTlr2bV.js +2 -0
- package/ui/_app/immutable/entry/start.CmdXdr1Q.js +2 -0
- package/ui/_app/immutable/nodes/0.CexwxgPf.js +1 -0
- package/ui/_app/immutable/nodes/1.CXvw6Lx4.js +1 -0
- package/ui/_app/immutable/nodes/2.CVRWg4vc.js +2 -0
- package/ui/_app/immutable/nodes/3.Te_SG5Lg.js +1 -0
- package/ui/_app/immutable/nodes/4.9tMyBzuY.js +3 -0
- package/ui/_app/immutable/nodes/5.G4bzLcKA.js +1 -0
- package/ui/_app/version.json +1 -1
- package/ui/build.json +3 -3
- package/ui/index.html +23 -18
- package/ui/_app/immutable/assets/0.Y-Ej83kR.css +0 -1
- package/ui/_app/immutable/assets/2.D2FEqQBh.css +0 -1
- package/ui/_app/immutable/assets/3.CI7aeD9i.css +0 -1
- package/ui/_app/immutable/assets/StartRunDialog.BbbZvJfB.css +0 -1
- package/ui/_app/immutable/assets/runs.CU5wtnW2.css +0 -1
- package/ui/_app/immutable/chunks/BKHbyffl.js +0 -3
- package/ui/_app/immutable/chunks/BeG5AxKI.js +0 -3
- package/ui/_app/immutable/chunks/Buwi_lQz.js +0 -2
- package/ui/_app/immutable/chunks/CV2Ptlrp.js +0 -1
- package/ui/_app/immutable/chunks/CtbaNJav.js +0 -1
- package/ui/_app/immutable/chunks/D8sQwgC_.js +0 -55
- package/ui/_app/immutable/entry/app.DPg5reEl.js +0 -2
- package/ui/_app/immutable/entry/start.iWBP-EvH.js +0 -2
- package/ui/_app/immutable/nodes/0.Cu8SyVzm.js +0 -1
- package/ui/_app/immutable/nodes/1.Bga_qdeZ.js +0 -1
- package/ui/_app/immutable/nodes/2.CKNrkmzJ.js +0 -1
- package/ui/_app/immutable/nodes/3.OrFQ8OoI.js +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "smoke",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"description": "Prove the hc chain with no model and no token: terminal, labels, prompt delivery, screen read, output parse, settle",
|
|
5
|
+
"requires": {
|
|
6
|
+
"node": ">=22.13",
|
|
7
|
+
"hcProtocol": 1
|
|
8
|
+
},
|
|
9
|
+
"program": {
|
|
10
|
+
"file": "smoke.mjs"
|
|
11
|
+
},
|
|
12
|
+
"templates": [
|
|
13
|
+
{
|
|
14
|
+
"name": "smoke",
|
|
15
|
+
"args": "",
|
|
16
|
+
"minStepTimeoutMs": 300000,
|
|
17
|
+
"description": "Prints ok and promptLength in one fenced JSON block; proves the hc chain without spending a token"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* The `smoke` pack's program: prove the whole hc chain without a model and without a token.
|
|
4
|
+
*
|
|
5
|
+
* hc starts it in a fresh terminal, waits for `idle` (OSC 7501), types the step prompt in, and
|
|
6
|
+
* later reads the screen for one fenced JSON block. So it does exactly what the real agent pack
|
|
7
|
+
* does — idle before the read, working once the prompt is in, one fence, done — and nothing else.
|
|
8
|
+
* Exit 2 when no prompt arrives or an argument is not understood (argos: step_failed).
|
|
9
|
+
*
|
|
10
|
+
* Standalone by contract (FR5): imports only `node:*`.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { readFileSync, writeSync } from "node:fs";
|
|
14
|
+
|
|
15
|
+
const PASTE_START = Buffer.from("\u001b[200~");
|
|
16
|
+
const PASTE_END = Buffer.from("\u001b[201~");
|
|
17
|
+
const QUIET_MS = 2_000;
|
|
18
|
+
|
|
19
|
+
const osc = (state) => writeSync(1, `\u001b]7501;state=${state}\u001b\\`);
|
|
20
|
+
const say = (text) => writeSync(1, text);
|
|
21
|
+
|
|
22
|
+
function terminalPrompt() {
|
|
23
|
+
const stdin = process.stdin;
|
|
24
|
+
stdin.setRawMode(true);
|
|
25
|
+
stdin.resume();
|
|
26
|
+
return new Promise((resolve) => {
|
|
27
|
+
let buffer = Buffer.alloc(0);
|
|
28
|
+
let quiet = null;
|
|
29
|
+
const finish = (part) => {
|
|
30
|
+
if (quiet !== null) clearTimeout(quiet);
|
|
31
|
+
stdin.off("data", onData);
|
|
32
|
+
stdin.setRawMode(false);
|
|
33
|
+
stdin.pause();
|
|
34
|
+
say("\u001b[?2004l");
|
|
35
|
+
resolve(Buffer.from(part).toString("utf8"));
|
|
36
|
+
};
|
|
37
|
+
const onData = (chunk) => {
|
|
38
|
+
buffer = Buffer.concat([buffer, chunk]);
|
|
39
|
+
const start = buffer.indexOf(PASTE_START);
|
|
40
|
+
if (start !== -1) {
|
|
41
|
+
// Only the end marker finishes a paste: a quiet gap armed before it arrived must not fire on
|
|
42
|
+
// the raw buffer (it would truncate the prompt and leave the `ESC[200~` framing bytes in it).
|
|
43
|
+
if (quiet !== null) {
|
|
44
|
+
clearTimeout(quiet);
|
|
45
|
+
quiet = null;
|
|
46
|
+
}
|
|
47
|
+
const end = buffer.indexOf(PASTE_END, start + PASTE_START.length);
|
|
48
|
+
if (end !== -1) finish(buffer.subarray(start + PASTE_START.length, end));
|
|
49
|
+
} else {
|
|
50
|
+
if (quiet !== null) clearTimeout(quiet);
|
|
51
|
+
quiet = setTimeout(() => finish(buffer), QUIET_MS);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
stdin.on("data", onData);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function stdinPrompt() {
|
|
59
|
+
const chunks = [];
|
|
60
|
+
for await (const chunk of process.stdin) chunks.push(Buffer.from(chunk));
|
|
61
|
+
return Buffer.concat(chunks).toString("utf8");
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** Same reader as the agent pack: `idle` first, because that is what makes hc deliver the prompt. */
|
|
65
|
+
async function readPrompt(promptFile) {
|
|
66
|
+
if (promptFile !== undefined) {
|
|
67
|
+
osc("idle");
|
|
68
|
+
return promptFile === "-" ? stdinPrompt() : readFileSync(promptFile, "utf8");
|
|
69
|
+
}
|
|
70
|
+
if (process.stdin.isTTY) {
|
|
71
|
+
say("\u001b[?2004h");
|
|
72
|
+
osc("idle");
|
|
73
|
+
return terminalPrompt();
|
|
74
|
+
}
|
|
75
|
+
osc("idle");
|
|
76
|
+
return stdinPrompt();
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
async function main() {
|
|
80
|
+
const argv = process.argv.slice(2);
|
|
81
|
+
const valid = argv.length === 0 || (argv.length === 2 && argv[0] === "--prompt-file");
|
|
82
|
+
if (!valid) {
|
|
83
|
+
writeSync(2, "smoke: usage: smoke.mjs [--prompt-file <path>]\n");
|
|
84
|
+
return 2;
|
|
85
|
+
}
|
|
86
|
+
let prompt;
|
|
87
|
+
try {
|
|
88
|
+
prompt = (await readPrompt(argv[1])).replace(/\r\n?/g, "\n").trim();
|
|
89
|
+
} catch (error) {
|
|
90
|
+
writeSync(2, `smoke: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
91
|
+
return 2;
|
|
92
|
+
}
|
|
93
|
+
osc("working");
|
|
94
|
+
if (!prompt) {
|
|
95
|
+
writeSync(2, "smoke: no prompt arrived\n");
|
|
96
|
+
osc("done");
|
|
97
|
+
return 2;
|
|
98
|
+
}
|
|
99
|
+
say(`\`\`\`json\n${JSON.stringify({ ok: true, promptLength: prompt.length })}\n\`\`\`\n`);
|
|
100
|
+
osc("done");
|
|
101
|
+
return 0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
main().then((code) => process.exit(code));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
html[dir=ltr],[data-sonner-toaster][dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}html[dir=rtl],[data-sonner-toaster][dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{width:var(--width);--gray1:#fcfcfc;--gray2:#f8f8f8;--gray3:#f3f3f3;--gray4:#ededed;--gray5:#e8e8e8;--gray6:#e2e2e2;--gray7:#dbdbdb;--gray8:#c7c7c7;--gray9:#8f8f8f;--gray10:#858585;--gray11:#6f6f6f;--gray12:#171717;--border-radius:8px;box-sizing:border-box;z-index:999999999;outline:none;margin:0;padding:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;list-style:none;transition:transform .4s;position:fixed}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translate(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);opacity:0;transform:var(--y);touch-action:none;box-sizing:border-box;overflow-wrap:anywhere;outline:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;position:absolute}[data-sonner-toast][data-styled=true]{background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);width:var(--width);align-items:center;gap:6px;padding:16px;font-size:13px;display:flex;box-shadow:0 4px 12px #0000001a}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-y-position=top]{--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap));top:0}[data-sonner-toast][data-y-position=bottom]{--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap));bottom:0}[data-sonner-toast][data-styled=true] [data-description]{color:#3f3f3f;font-weight:400;line-height:1.4}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{color:inherit;font-weight:500;line-height:1.5}[data-sonner-toast][data-styled=true] [data-icon]{width:16px;height:16px;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end);flex-shrink:0;justify-content:flex-start;align-items:center;display:flex;position:relative}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform-origin:50%;animation:.3s forwards sonner-fade-in;transform:scale(.8)}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}[data-sonner-toast][data-styled=true] [data-button]{height:24px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);cursor:pointer;border:none;border-radius:4px;outline:none;flex-shrink:0;align-items:center;padding-left:8px;padding-right:8px;font-size:12px;font-weight:500;transition:opacity .4s,box-shadow .2s;display:flex}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px #0006}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:#00000014}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:#ffffff4d}[data-sonner-toast][data-styled=true] [data-close-button]{left:var(--toast-close-button-start);right:var(--toast-close-button-end);width:20px;height:20px;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);cursor:pointer;z-index:1;border-radius:50%;justify-content:center;align-items:center;padding:0;transition:opacity .1s,background .2s,border-color .2s;display:flex;position:absolute;top:0}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:"";z-index:-1;height:100%;position:absolute;left:-100%;right:-100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3)translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3)translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:"";position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]:after{content:"";height:calc(var(--gap) + 1px);width:100%;position:absolute;bottom:100%;left:0}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * .05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0px)) translateX(var(--swipe-amount-x,0px));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (width<=600px){[data-sonner-toaster]{right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%;position:fixed}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{width:calc(100% - var(--mobile-offset-left) * 2);left:0;right:0}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:#ecfdf3;--success-border:#bffcd9;--success-text:#008a2e;--info-bg:#f0f8ff;--info-border:#dde7fd;--info-text:#0973dc;--warning-bg:#fffcf0;--warning-border:#fbeeb1;--warning-text:#dc7609;--error-bg:#fff0f0;--error-border:#ffe0e1;--error-text:#e60000}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:#333;--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:#1f1f1f;--normal-border:#333;--normal-border-hover:#404040;--normal-text:var(--gray1);--success-bg:#001f0f;--success-border:#003d1c;--success-text:#59f3a6;--info-bg:#000d1f;--info-border:#19233e;--info-text:#5896f3;--warning-bg:#1d1f00;--warning-border:#2e2e00;--warning-text:#f3cf58;--error-bg:#2d0607;--error-border:#4d0408;--error-text:#ff9ea1}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-styled=true][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-styled=true][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-styled=true][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-styled=true][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);z-index:10;position:absolute;inset:0}.sonner-loading-wrapper[data-visible=false]{transform-origin:50%;animation:.2s forwards sonner-fade-out}.sonner-spinner{height:var(--size);width:var(--size);position:relative;top:50%;left:50%}.sonner-loading-bar{background:var(--gray11);border-radius:6px;width:24%;height:8%;animation:1.2s linear infinite sonner-spin;position:absolute;top:-3.9%;left:-10%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg)translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg)translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg)translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg)translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg)translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg)translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg)translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg)translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg)translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg)translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg)translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg)translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{transform-origin:50%;transition:opacity .2s,transform .2s;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8)translate(-50%,-50%)}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--tracking-normal:0em;--leading-relaxed:1.625;--radius-xs:.125rem;--ease-out:cubic-bezier(0, 0, .2, 1);--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab, var(--ring) 50%, transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.end-4{inset-inline-end:calc(var(--spacing) * 4)}.top-0{top:0}.top-3{top:calc(var(--spacing) * 3)}.top-4{top:calc(var(--spacing) * 4)}.top-\[50\%\]{top:50%}.left-\[50\%\]{left:50%}.z-50{z-index:50}.z-\[1\]{z-index:1}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-0{margin:0}.m-4{margin:calc(var(--spacing) * 4)}.mx-1\.5{margin-inline:calc(var(--spacing) * 1.5)}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mx-auto{margin-inline:auto}.mt-0{margin-top:0}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-px{margin-top:1px}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\.5{margin-bottom:calc(var(--spacing) * 2.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-3\.5{margin-bottom:calc(var(--spacing) * 3.5)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.size-1\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-8{width:calc(var(--spacing) * 8);height:calc(var(--spacing) * 8)}.size-9{width:calc(var(--spacing) * 9);height:calc(var(--spacing) * 9)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-\[22px\]{height:22px}.h-\[52vh\]{height:52vh}.h-auto{height:auto}.max-h-\[46vh\]{max-height:46vh}.max-h-\[calc\(100vh-4rem\)\]{max-height:calc(100vh - 4rem)}.min-h-\[280px\]{min-height:280px}.w-4{width:calc(var(--spacing) * 4)}.w-\[22px\]{width:22px}.w-\[min\(52vw\,360px\)\]{width:min(52vw,360px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.max-w-60{max-width:calc(var(--spacing) * 60)}.max-w-\[32ch\]{max-width:32ch}.max-w-\[52ch\]{max-width:52ch}.max-w-\[60ch\]{max-width:60ch}.max-w-\[620px\]{max-width:620px}.max-w-\[1080px\]{max-width:1080px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-none{max-width:none}.min-w-0{min-width:0}.min-w-\[88px\]{min-width:88px}.flex-1{flex:1}.flex-none{flex:none}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, )}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-pulse{animation:var(--animate-pulse)}.cursor-grab{cursor:grab}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.resize-y{resize:vertical}.list-none{list-style-type:none}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-\[18px_minmax\(0\,1fr\)\]{grid-template-columns:18px minmax(0,1fr)}.grid-cols-\[20px_minmax\(0\,1fr\)_auto_auto\]{grid-template-columns:20px minmax(0,1fr) auto auto}.grid-cols-\[72px_minmax\(0\,1fr\)\]{grid-template-columns:72px minmax(0,1fr)}.grid-cols-\[auto_minmax\(0\,1fr\)\]{grid-template-columns:auto minmax(0,1fr)}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-0{gap:0}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-x-2\.5{column-gap:calc(var(--spacing) * 2.5)}.gap-y-1{row-gap:var(--spacing)}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:2147483647px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-\[3px\]{border-left-style:var(--tw-border-style);border-left-width:3px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-border{border-color:var(--border)}.border-destructive\/40{border-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.border-destructive\/40{border-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.border-info\/40{border-color:var(--info)}@supports (color:color-mix(in lab, red, red)){.border-info\/40{border-color:color-mix(in oklab, var(--info) 40%, transparent)}}.border-input{border-color:var(--input)}.border-success\/40{border-color:var(--success)}@supports (color:color-mix(in lab, red, red)){.border-success\/40{border-color:color-mix(in oklab, var(--success) 40%, transparent)}}.border-transparent{border-color:#0000}.border-warning\/40{border-color:var(--warning)}@supports (color:color-mix(in lab, red, red)){.border-warning\/40{border-color:color-mix(in oklab, var(--warning) 40%, transparent)}}.border-l-transparent{border-left-color:#0000}.bg-accent{background-color:var(--accent)}.bg-background{background-color:var(--background)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab, red, red)){.bg-black\/50{background-color:color-mix(in oklab, var(--color-black) 50%, transparent)}}.bg-card{background-color:var(--card)}.bg-destructive,.bg-destructive\/15{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.bg-destructive\/15{background-color:color-mix(in oklab, var(--destructive) 15%, transparent)}}.bg-info,.bg-info\/15{background-color:var(--info)}@supports (color:color-mix(in lab, red, red)){.bg-info\/15{background-color:color-mix(in oklab, var(--info) 15%, transparent)}}.bg-muted{background-color:var(--muted)}.bg-muted-foreground\/50{background-color:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.bg-muted-foreground\/50{background-color:color-mix(in oklab, var(--muted-foreground) 50%, transparent)}}.bg-primary,.bg-primary\/15{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.bg-primary\/15{background-color:color-mix(in oklab, var(--primary) 15%, transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-success,.bg-success\/15{background-color:var(--success)}@supports (color:color-mix(in lab, red, red)){.bg-success\/15{background-color:color-mix(in oklab, var(--success) 15%, transparent)}}.bg-transparent{background-color:#0000}.bg-warning,.bg-warning\/15{background-color:var(--warning)}@supports (color:color-mix(in lab, red, red)){.bg-warning\/15{background-color:color-mix(in oklab, var(--warning) 15%, transparent)}}.fill-background{fill:var(--background)}.fill-destructive{fill:var(--destructive)}.fill-foreground{fill:var(--foreground)}.fill-info{fill:var(--info)}.fill-muted-foreground,.fill-muted-foreground\/50{fill:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.fill-muted-foreground\/50{fill:color-mix(in oklab, var(--muted-foreground) 50%, transparent)}}.fill-none{fill:none}.fill-success{fill:var(--success)}.fill-warning,.fill-warning\/15{fill:var(--warning)}@supports (color:color-mix(in lab, red, red)){.fill-warning\/15{fill:color-mix(in oklab, var(--warning) 15%, transparent)}}.stroke-border{stroke:var(--border)}.stroke-destructive{stroke:var(--destructive)}.stroke-muted-foreground,.stroke-muted-foreground\/50{stroke:var(--muted-foreground)}@supports (color:color-mix(in lab, red, red)){.stroke-muted-foreground\/50{stroke:color-mix(in oklab, var(--muted-foreground) 50%, transparent)}}.stroke-primary{stroke:var(--primary)}.stroke-warning{stroke:var(--warning)}.\[stroke-width\:1\.5\]{stroke-width:1.5px}.\[stroke-width\:1\]{stroke-width:1px}.\[stroke-width\:2\.5\]{stroke-width:2.5px}.\[stroke-width\:2\]{stroke-width:2px}.p-0{padding:0}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\.5{padding:calc(var(--spacing) * 2.5)}.p-3{padding:calc(var(--spacing) * 3)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-1{padding-inline:var(--spacing)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-3\.5{padding-inline:calc(var(--spacing) * 3.5)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0{padding-block:0}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-14{padding-block:calc(var(--spacing) * 14)}.py-px{padding-block:1px}.pt-1{padding-top:var(--spacing)}.pt-1\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-3\.5{padding-top:calc(var(--spacing) * 3.5)}.pt-px{padding-top:1px}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-3\.5{padding-bottom:calc(var(--spacing) * 3.5)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.text-center{text-align:center}.text-left{text-align:left}.text-start{text-align:start}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.text-\[28px\]{font-size:28px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\.04em\]{--tw-tracking:.04em;letter-spacing:.04em}.tracking-\[0\.05em\]{--tw-tracking:.05em;letter-spacing:.05em}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.break-words{overflow-wrap:break-word}.wrap-anywhere{overflow-wrap:anywhere}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-accent-foreground{color:var(--accent-foreground)}.text-card-foreground{color:var(--card-foreground)}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-info{color:var(--info)}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-success{color:var(--success)}.text-success-foreground{color:var(--success-foreground)}.text-warning{color:var(--warning)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.underline-offset-4{text-underline-offset:4px}.accent-primary{accent-color:var(--primary)}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-75{opacity:.75}.opacity-85{opacity:.85}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-\[120ms\]{--tw-duration:.12s;transition-duration:.12s}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.\[stroke-dasharray\:3_3\]{stroke-dasharray:3 3}.\[stroke-dasharray\:5_4\]{stroke-dasharray:5 4}.running{animation-play-state:running}@media (hover:hover){:is(:where(.group):hover .group-hover\:stroke-muted-foreground){stroke:var(--muted-foreground)}:is(:where(.group):hover .group-hover\:opacity-100){opacity:1}}:is(:where(.group):focus-visible .group-focus-visible\:stroke-muted-foreground){stroke:var(--muted-foreground)}:is(:where(.group)[data-disabled=true] .group-data-\[disabled\=true\]\:pointer-events-none){pointer-events:none}:is(:where(.group)[data-disabled=true] .group-data-\[disabled\=true\]\:opacity-50){opacity:.5}:is(:where(.peer):disabled~.peer-disabled\:cursor-not-allowed){cursor:not-allowed}:is(:where(.peer):disabled~.peer-disabled\:opacity-50){opacity:.5}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab, var(--secondary) 80%, transparent)}}.hover\:bg-success\/90:hover{background-color:var(--success)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-success\/90:hover{background-color:color-mix(in oklab, var(--success) 90%, transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-primary:hover{color:var(--primary)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}}.focus\:not-sr-only:focus{clip-path:none;white-space:normal;width:auto;height:auto;margin:0;padding:0;position:static;overflow:visible}.focus\:absolute:focus{position:absolute}.focus\:top-2:focus{top:calc(var(--spacing) * 2)}.focus\:left-2:focus{left:calc(var(--spacing) * 2)}.focus\:z-10:focus{z-index:10}.focus\:rounded:focus{border-radius:.25rem}.focus\:border:focus{border-style:var(--tw-border-style);border-width:1px}.focus\:border-border:focus{border-color:var(--border)}.focus\:bg-card:focus{background-color:var(--card)}.focus\:px-3:focus{padding-inline:calc(var(--spacing) * 3)}.focus\:py-2:focus{padding-block:calc(var(--spacing) * 2)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset, ) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:opacity-100:focus-visible{opacity:1}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab, var(--ring) 50%, transparent)}}.active\:cursor-grabbing:active{cursor:grabbing}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing) * 2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing) * 3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing) * 4)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 20%, transparent)}}.aria-pressed\:bg-primary\/15[aria-pressed=true]{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.aria-pressed\:bg-primary\/15[aria-pressed=true]{background-color:color-mix(in oklab, var(--primary) 15%, transparent)}}.aria-pressed\:font-semibold[aria-pressed=true]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.aria-pressed\:text-foreground[aria-pressed=true]{color:var(--foreground)}.aria-\[current\=step\]\:border-l-primary[aria-current=step]{border-left-color:var(--primary)}.aria-\[current\=step\]\:bg-primary\/15[aria-current=step]{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.aria-\[current\=step\]\:bg-primary\/15[aria-current=step]{background-color:color-mix(in oklab, var(--primary) 15%, transparent)}}.aria-\[current\=true\]\:bg-primary\/15[aria-current=true]{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.aria-\[current\=true\]\:bg-primary\/15[aria-current=true]{background-color:color-mix(in oklab, var(--primary) 15%, transparent)}}.aria-\[current\=true\]\:font-semibold[aria-current=true]{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.aria-\[current\=true\]\:text-foreground[aria-current=true]{color:var(--foreground)}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}@media (prefers-reduced-motion:reduce){.motion-reduce\:transition-none{transition-property:none}}@media not all and (width>=40rem){.max-sm\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.max-sm\:col-start-2{grid-column-start:2}.max-sm\:max-w-36{max-width:calc(var(--spacing) * 36)}.max-sm\:min-w-0{min-width:0}.max-sm\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.max-sm\:grid-cols-\[20px_minmax\(0\,1fr\)\]{grid-template-columns:20px minmax(0,1fr)}.max-sm\:flex-row{flex-direction:row}.max-sm\:justify-start{justify-content:flex-start}.max-sm\:gap-0{gap:0}.max-sm\:gap-2{gap:calc(var(--spacing) * 2)}.max-sm\:text-\[10px\]{font-size:10px}}@media (width>=40rem){.sm\:max-w-\[620px\]{max-width:620px}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:justify-between{justify-content:space-between}.sm\:justify-end{justify-content:flex-end}.sm\:text-start{text-align:start}}@media (width>=48rem){.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (width>=64rem){.lg\:sticky{position:sticky}.lg\:top-3{top:calc(var(--spacing) * 3)}.lg\:block{display:block}.lg\:max-h-\[calc\(100vh-140px\)\]{max-height:calc(100vh - 140px)}.lg\:grid-cols-\[220px_1fr\]{grid-template-columns:220px 1fr}.lg\:grid-cols-\[240px_1fr\]{grid-template-columns:240px 1fr}.lg\:grid-cols-\[260px_minmax\(0\,1fr\)\]{grid-template-columns:260px minmax(0,1fr)}}.dark\:border-input:where(.dark,.dark *){border-color:var(--input)}.dark\:bg-destructive\/60:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/60:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 60%, transparent)}}.dark\:bg-destructive\/70:where(.dark,.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/70:where(.dark,.dark *){background-color:color-mix(in oklab, var(--destructive) 70%, transparent)}}.dark\:bg-input\/30:where(.dark,.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:where(.dark,.dark *){background-color:color-mix(in oklab, var(--input) 30%, transparent)}}@media (hover:hover){.dark\:hover\:bg-accent\/50:where(.dark,.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-accent\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--accent) 50%, transparent)}}.dark\:hover\:bg-input\/50:where(.dark,.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--input) 50%, transparent)}}}.dark\:focus-visible\:ring-destructive\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:where(.dark,.dark *):focus-visible{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.dark\:aria-invalid\:ring-destructive\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:where(.dark,.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab, var(--destructive) 40%, transparent)}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing) * 6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing) * 6)}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab, var(--destructive) 90%, transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab, var(--primary) 90%, transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab, var(--secondary) 90%, transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--radius:.625rem;--background:oklch(100% 0 0);--foreground:oklch(14.7% .004 49.25);--card:oklch(100% 0 0);--card-foreground:oklch(14.7% .004 49.25);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.7% .004 49.25);--primary:oklch(21.6% .006 56.043);--primary-foreground:oklch(98.5% .001 106.423);--secondary:oklch(97% .001 106.424);--secondary-foreground:oklch(21.6% .006 56.043);--muted:oklch(97% .001 106.424);--muted-foreground:oklch(54% .013 58.071);--accent:oklch(97% .001 106.424);--accent-foreground:oklch(21.6% .006 56.043);--destructive:oklch(51.8% .211 27.325);--border:oklch(92.3% .003 48.717);--input:oklch(92.3% .003 48.717);--ring:oklch(70.9% .01 56.259);--success:oklch(49% .154 150.069);--success-foreground:oklch(98.2% .018 155.826);--warning:oklch(52% .132 58.318);--warning-foreground:oklch(28.6% .066 53.813);--info:oklch(51.5% .18 258);--normal-bg:var(--card);--normal-text:var(--card-foreground);--normal-border:var(--border)}.dark{--background:oklch(14.7% .004 49.25);--foreground:oklch(98.5% .001 106.423);--card:oklch(21.6% .006 56.043);--card-foreground:oklch(98.5% .001 106.423);--popover:oklch(21.6% .006 56.043);--popover-foreground:oklch(98.5% .001 106.423);--primary:oklch(92.3% .003 48.717);--primary-foreground:oklch(21.6% .006 56.043);--secondary:oklch(26.8% .007 34.298);--secondary-foreground:oklch(98.5% .001 106.423);--muted:oklch(26.8% .007 34.298);--muted-foreground:oklch(70.9% .01 56.259);--accent:oklch(26.8% .007 34.298);--accent-foreground:oklch(98.5% .001 106.423);--destructive:oklch(70.4% .191 22.216);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.3% .013 58.071);--success:oklch(79.2% .209 151.711);--success-foreground:oklch(26.6% .065 152.934);--warning:oklch(82.8% .189 84.429);--warning-foreground:oklch(27.9% .077 45.635);--info:oklch(70.7% .165 254.624)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));filter:blur(var(--tw-enter-blur,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));filter:blur(var(--tw-exit-blur,0))}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as e,K as t,M as n,R as r,_ as i,at as a,et as o,pt as s,st as c,v as l,vt as u,yt as d}from"./DR13iyEP.js";import{a as f,c as p,o as m,t as h}from"./CSzwgvai.js";var g=r(`<span aria-hidden="true"></span> `,1);function _(r,_){d(_,!0);let v=s(()=>_.status===`open`?`Live`:_.status===`connecting`?`Connecting`:_.status===`reconnecting`?`Reconnecting`:`Disconnected`),y=s(()=>_.status===`open`?`success`:_.status===`closed`?`danger`:`warning`),b=s(()=>_.status===`connecting`||_.status===`reconnecting`);{let u=s(()=>m(f,t(y)));p(r,{variant:`outline`,get class(){return t(u)},get"data-tone"(){return t(y)},role:`status`,"aria-live":`polite`,children:(r,s)=>{var u=g(),d=a(u),f=c(d);o(e=>{i(d,1,e),n(f,` ${t(v)??``}`)},[()=>l([`size-1.5 flex-none rounded-full`,m(h,t(y)),t(b)&&`animate-pulse`])]),e(r,u)},$$slots:{default:!0}})}u()}export{_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t,n=8){let r=t.trim();return r===``?[...e]:[r,...e.filter(e=>e!==r)].slice(0,n)}function t(e){let t=e??(typeof localStorage>`u`?null:localStorage);if(t===null)return[];try{let e=JSON.parse(t.getItem(`argos:ui:recents`)??`[]`);return Array.isArray(e)?e.filter(e=>typeof e==`string`).slice(0,8):[]}catch{return[]}}function n(e,t){let n=t??(typeof localStorage>`u`?null:localStorage);n!==null&&n.setItem(`argos:ui:recents`,JSON.stringify(e.slice(0,8)))}export{t as n,n as r,e as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`argos.hiddenWorkflows`;function t(t){if(t===void 0)return[];let n;try{n=t.getItem(e)}catch{return[]}if(n===null||n===``)return[];try{let e=JSON.parse(n);if(!Array.isArray(e))return[];let t=e.filter(e=>typeof e==`string`&&e!==``);return[...new Set(t)].sort()}catch{return[]}}function n(t,n){if(t!==void 0)try{t.setItem(e,JSON.stringify([...new Set(n)].sort()))}catch{}}function r(e,t){return e.includes(t)?e.filter(e=>e!==t):[...e,t].sort()}function i(){if(typeof window<`u`)try{return window.localStorage}catch{return}}export{n as i,t as n,r,i as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{payload as e}from"../entry/payload.DSmR2FwN.js";import{A as t,E as n,Et as r,I as i,J as a,K as o,L as s,M as c,O as l,P as u,R as d,S as f,Tt as p,V as m,at as h,et as g,ft as _,i as v,it as y,j as b,pt as x,q as ee,st as te,t as ne,ut as S,vt as re,yt as ie}from"./DR13iyEP.js";import{a as ae,c as oe,d as C,f as se,i as ce,l as le,n as ue,o as de,r as fe,s as pe,t as me,u as he,v as ge}from"./XmWYLfMV.js";var _e=class{constructor(e){this.status=e.status,this.body=e}toString(){return JSON.stringify(this.body)}},ve=class extends _e{},ye=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},be=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};function xe(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}function Se(e,t){let n=[];return e&&n.push([...new Headers(e)].join(`,`)),t&&n.push(t),xe(...n)}new TextEncoder,new TextDecoder;function Ce(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var we=2**32-1,Te=we-1,w=class extends Error{constructor(e,t,n,r){super(e),this.name=`DevalueError`,this.path=t.join(``),this.value=n,this.root=r}},Ee=Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function De(e){let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join(`\0`)===Ee}function Oe(e){return Object.prototype.toString.call(e).slice(8,-1)}function ke(e){return typeof Buffer<`u`&&Buffer.isBuffer(e)}function Ae(e){switch(e){case`"`:return`\\"`;case`<`:return`\\u003C`;case`\\`:return`\\\\`;case`
|
|
2
|
+
`:return`\\n`;case`\r`:return`\\r`;case` `:return`\\t`;case`\b`:return`\\b`;case`\f`:return`\\f`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return e<` `?`\\u${e.charCodeAt(0).toString(16).padStart(4,`0`)}`:``}}function T(e){let t=``,n=0,r=e.length;for(let i=0;i<r;i+=1){let r=e[i],a=Ae(r);a&&(t+=e.slice(n,i)+a,n=i+1)}return`"${n===0?e:t+e.slice(n)}"`}function je(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}var Me=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Ne(e){return Me.test(e)?`.`+e:`[`+JSON.stringify(e)+`]`}function Pe(e){return!(!Number.isInteger(e)||e<0||e>Te)}function Fe(e){return!(!Number.isInteger(e)||e<0||e>we)}function Ie(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<48||n>57)return!1}return Pe(+e)}function Le(e){for(var t=e.length-1;t>=0&&!Ie(e[t]);t--);return t+1}function Re(e){let t=Object.keys(e);return t.length=Le(t),t}function ze(e){return new Uint8Array(e).toBase64()}function Be(e){return Uint8Array.fromBase64(e).buffer}function Ve(e){return Buffer.from(e).toString(`base64`)}function He(e){return Uint8Array.from(Buffer.from(e,`base64`)).buffer}function Ue(e){let t=new Uint8Array(e),n=``,r=32768;for(let e=0;e<t.length;e+=r){let i=t.subarray(e,e+r);n+=String.fromCharCode.apply(null,i)}return btoa(n)}function We(e){let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer}var Ge=typeof Uint8Array.fromBase64==`function`,Ke=typeof process==`object`&&process.versions?.node!==void 0,qe=Ge?ze:Ke?Ve:Ue,Je=Ge?Be:Ke?He:We;function Ye(e,t){if(!t)return e;let n={};for(let r of Object.keys(e))n[r]=t[r]??e[r];return n}var Xe=Object.freeze({kind:`not-plain`}),Ze=Object.freeze({kind:`symbol-keys`}),Qe=Object.freeze({identify:e=>e,typeOf:e=>e===null?`null`:typeof e,toPrimitive:e=>e,tagOf:e=>Oe(e),isThenable:e=>typeof e.then==`function`,toPromise:e=>Promise.resolve(e),unbox:e=>e.valueOf(),toISOString:e=>isNaN(e.getDate())?``:e.toISOString(),toStringValue:e=>e.toString(),regExpInfo:e=>({source:e.source,flags:e.flags}),valuesOf:e=>e,entriesOf:e=>e,viewInfo:e=>(ke(e)&&(e=new Uint8Array(e)),{buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:e=>e,lengthOf:e=>e.length,hasOwn:(e,t)=>Object.hasOwn(e,t),indicesOf:e=>Re(e),shapeOf:e=>De(e)?je(e).length>0?Ze:{kind:Object.getPrototypeOf(e)===null?`null-proto`:`plain`,keys:Object.keys(e)}:Xe,get:(e,t)=>e[t]}),$e=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,`byteLength`).get,et=typeof SharedArrayBuffer>`u`?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,`byteLength`).get,tt=Object.freeze({fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e===`URL`?new URL(t):e===`URLSearchParams`?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,n,r)=>{try{$e.call(t)}catch(e){if(!et)throw e;et.call(t)}let i=globalThis[e];return n===void 0?new i(t):new i(t,n,r)},box:e=>Object(e),createArray:e=>Array(e),createSparseArray:e=>{let t=[];return t[Te]=void 0,delete t[Te],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,n)=>{e[t]=n},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,n)=>{e.set(t,n)}});function nt(e,t,n){return rt(JSON.parse(e),t,n)}function rt(e,t,n){let r=Ye(tt,n?.operations);if(typeof e==`number`)return s(e,!0);if(!Array.isArray(e)||e.length===0)throw Error(`Invalid input`);let i=e,a=Array(i.length),o=null;function s(e,n=!1){if(e===-1)return r.fromPrimitive(void 0);if(e===-3)return r.fromPrimitive(NaN);if(e===-4)return r.fromPrimitive(1/0);if(e===-5)return r.fromPrimitive(-1/0);if(e===-6)return r.fromPrimitive(-0);if(n||typeof e!=`number`)throw Error(`Invalid input`);if(e in a)return a[e];if(e>=i.length)throw Error(`Invalid input`);let c=i[e];if(!c||typeof c!=`object`)a[e]=r.fromPrimitive(c);else if(Array.isArray(c)){if(typeof c[0]==`string`){let n=c[0],l=t&&Object.hasOwn(t,n)?t[n]:void 0;if(l){let t=c[1];if(typeof t!=`number`&&(t=i.push(c[1])-1),Object.hasOwn(a,t))return a[e]=l(a[t]);if(o??=new Set,o.has(t))throw Error(`Invalid circular reference`);return o.add(t),a[e]=l(s(t)),o.delete(t),a[e]}switch(n){case`Date`:a[e]=r.fromISOString(c[1]);break;case`Set`:let t=r.createSet();a[e]=t;for(let e=1;e<c.length;e+=1)r.addValue(t,s(c[e]));break;case`Map`:let o=r.createMap();a[e]=o;for(let e=1;e<c.length;e+=2)r.addEntry(o,s(c[e]),s(c[e+1]));break;case`RegExp`:a[e]=r.fromRegExpInfo(c[1],c[2]);break;case`Object`:{let t=c[1];if(typeof i[t]==`object`&&i[t][0]!==`BigInt`)throw Error(`Invalid input`);a[e]=r.box(s(t));break}case`BigInt`:a[e]=r.fromPrimitive(BigInt(c[1]));break;case`null`:let l=r.createNullPrototypeObject();a[e]=l;for(let e=1;e<c.length;e+=2){let t=c[e];if(typeof t!=`string`)throw Error(`Cannot parse an object with a non-string key`);if(t===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");r.set(l,t,s(c[e+1]))}break;case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Float16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:case`DataView`:{if(i[c[1]][0]!==`ArrayBuffer`)throw Error(`Invalid data`);let t=s(c[1]);a[e]=r.fromViewInfo(n,t,c[2],c[3]);break}case`ArrayBuffer`:{let t=c[1];if(typeof t!=`string`)throw Error(`Invalid ArrayBuffer encoding`);a[e]=r.fromArrayBuffer(Je(t));break}case`URL`:case`URLSearchParams`:case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:a[e]=r.fromStringValue(n,c[1]);break;default:throw Error(`Unknown type ${n}`)}}else if(c[0]===-7){let t=c[1];if(!Fe(t))throw Error(`Invalid input`);let n=r.createSparseArray(t);a[e]=n;for(let e=2;e<c.length;e+=2){let i=c[e];if(!Pe(i)||i>=t)throw Error(`Invalid input`);r.set(n,i,s(c[e+1]))}}else{let t=r.createArray(c.length);a[e]=t;for(let e=0;e<c.length;e+=1){let n=c[e];n!==-2&&r.set(t,e,s(n))}}}else{let t=r.createObject();a[e]=t;for(let e of Object.keys(c)){if(e===`__proto__`)throw Error("Cannot parse an object with a `__proto__` property");r.set(t,e,s(c[e]))}}return a[e]}return s(0)}function it(e,t,n){let r=at(!1,e,t,n);return typeof r==`string`?r:`[${r.join(`,`)}]`}function at(e,t,n,r){let i=Ye(Qe,r?.operations),a=[],o=new Map,s=[];if(n)for(let e of Object.getOwnPropertyNames(n))s.push({key:e,fn:n[e]});let c=[],l=0;function u(n,r){let d=i.typeOf(n);if(d===`undefined`)return-1;let f;if(d===`number`){if(f=i.toPrimitive(n),Number.isNaN(f))return-3;if(f===1/0)return-4;if(f===-1/0)return-5;if(f===0&&1/f<0)return-6}let p=i.identify(n);if(o.has(p))return o.get(p);r??=l++,o.set(p,r);for(let{key:e,fn:t}of s){let i=t(n);if(i)return a[r]=`["${e}",${u(i)}]`,r}if(d===`function`)throw new w(`Cannot stringify a function`,c,n,t);if(d===`symbol`)throw new w(`Cannot stringify a Symbol primitive`,c,n,t);let m=``;if(d!==`object`)m=ot(d===`number`?f:i.toPrimitive(n));else if(i.isThenable(n)){if(!e)throw new w(`Cannot stringify a Promise or thenable — use stringifyAsync instead`,c,n,t);m=i.toPromise(n).then(e=>{let t=u(e,r);t<0&&(a[r]=t)}),m.catch(()=>{})}else{let e=i.tagOf(n);switch(e){case`Number`:case`String`:case`Boolean`:case`BigInt`:m=`["Object",${u(i.unbox(n))}]`;break;case`Date`:m=`["Date","${i.toISOString(n)}"]`;break;case`URL`:m=`["URL",${T(i.toStringValue(n))}]`;break;case`URLSearchParams`:m=`["URLSearchParams",${T(i.toStringValue(n))}]`;break;case`RegExp`:let{source:r,flags:a}=i.regExpInfo(n);m=a?`["RegExp",${T(r)},"${a}"]`:`["RegExp",${T(r)}]`;break;case`Array`:{let e=!1,t=i.lengthOf(n);m=`[`;for(let r=0;r<t;r+=1)if(r>0&&(m+=`,`),i.hasOwn(n,r))c.push(`[${r}]`),m+=u(i.get(n,r)),c.pop();else if(e)m+=-2;else{let r=i.indicesOf(n),a=r.length,o=String(t).length;if((t-a)*3>4+o+a*(o+1)){m=`[-7,`+t;for(let e=0;e<r.length;e++){let t=r[e];c.push(`[${t}]`),m+=`,`+t+`,`+u(i.get(n,t)),c.pop()}break}e=!0,m+=-2}m+=`]`;break}case`Set`:m=`["Set"`;for(let e of i.valuesOf(n))m+=`,${u(e)}`;m+=`]`;break;case`Map`:m=`["Map"`;for(let[e,t]of i.entriesOf(n)){let n=i.typeOf(e),r=n!==`object`&&n!==`function`&&n!==`symbol`;c.push(`.get(${r?ot(i.toPrimitive(e)):`...`})`),m+=`,${u(e)},${u(t)}`,c.pop()}m+=`]`;break;case`Int8Array`:case`Uint8Array`:case`Uint8ClampedArray`:case`Int16Array`:case`Uint16Array`:case`Float16Array`:case`Int32Array`:case`Uint32Array`:case`Float32Array`:case`Float64Array`:case`BigInt64Array`:case`BigUint64Array`:{let t=i.viewInfo(n);m=`["`+e+`",`+u(t.buffer),t.byteLength!==t.bufferByteLength&&(m+=`,${t.byteOffset},${t.length}`),m+=`]`;break}case`DataView`:{let t=i.viewInfo(n);m=`["`+e+`",`+u(t.buffer),t.byteLength!==t.bufferByteLength&&(m+=`,${t.byteOffset},${t.byteLength}`),m+=`]`;break}case`ArrayBuffer`:m=`["ArrayBuffer","${qe(i.toArrayBuffer(n))}"]`;break;case`Temporal.Duration`:case`Temporal.Instant`:case`Temporal.PlainDate`:case`Temporal.PlainTime`:case`Temporal.PlainDateTime`:case`Temporal.PlainMonthDay`:case`Temporal.PlainYearMonth`:case`Temporal.ZonedDateTime`:m=`["${e}",${T(i.toStringValue(n))}]`;break;default:{let e=i.shapeOf(n);if(e.kind===`not-plain`)throw new w(`Cannot stringify arbitrary non-POJOs`,c,n,t);if(e.kind===`symbol-keys`)throw new w(`Cannot stringify POJOs with symbolic keys`,c,n,t);if(e.kind===`null-proto`){m=`["null"`;for(let r of e.keys){if(r===`__proto__`)throw new w(`Cannot stringify objects with __proto__ keys`,c,n,t);c.push(Ne(r)),m+=`,${T(r)},${u(i.get(n,r))}`,c.pop()}m+=`]`}else{m=`{`;let r=!1;for(let a of e.keys){if(a===`__proto__`)throw new w(`Cannot stringify objects with __proto__ keys`,c,n,t);r&&(m+=`,`),r=!0,c.push(Ne(a)),m+=`${T(a)}:${u(i.get(n,a))}`,c.pop()}m+=`}`}}}}return a[r]=m,r}let d=u(t);return d<0?`${d}`:a}function ot(e){let t=typeof e;return t===`string`?T(e):e===void 0?`-1`:e===0&&1/e<0?`-6`:t===`bigint`?`["BigInt","${e}"]`:String(e)}var st=()=>{throw Error(``)},E=()=>{throw Error(``)},ct={},lt={};function ut(e){let t=Object.entries(e);t.length,ct=Object.fromEntries(t.map(([e,t])=>[e,t.encode])),lt=Object.fromEntries(t.map(([e,t])=>[e,t.decode])),st=e=>it(e,ct),E=e=>nt(e,lt)}function dt(e,t){return e.origin===t.origin?e.href.slice(t.origin.length):e.href}function ft(e,t){return e+`/`+t}var pt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&>(e),pt(e,t));var D=new Map;function mt(e,t){let n=vt(e,t);if(n){let e=document.querySelector(n);if(e?.textContent){e.remove();let{body:t,...r}=JSON.parse(e.textContent);e.getAttribute(`data-b64`)!==null&&(t=Ce(t));let i=e.getAttribute(`data-ttl`);return i&&D.set(n,{body:t,init:r,ttl:1e3*Number(i)}),Promise.resolve(new Response(t,r))}}return window.fetch(e,t)}function ht(e,t,n){if(D.size>0){let t=vt(e,n),r=t&&D.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);D.delete(t)}}return window.fetch(t,n)}function gt(e){let t=vt(_t(e));for(let e of D.keys())e.startsWith(t)&&D.delete(e)}function _t(e){return dt(new URL(e instanceof Request?e.url:e,location.href),location)}function vt(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=t.body;if(e&&typeof e!=`string`&&!ArrayBuffer.isView(e))return null;n+=`[data-hash="${Se(t.headers,e)}"]`}return n}function yt({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=he(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return le(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function bt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function xt(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var St=`sveltekit:snapshot`,Ct=`sveltekit:navigation-snapshot`,wt=`sveltekit:history-info`,O=`sveltekit:metadata`,k={tap:1,hover:2,viewport:3,eager:4,false:-1},Tt=location.origin;function Et(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function Dt(){return{x:pageXOffset,y:pageYOffset}}function A(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var Ot={...k,"":k.hover};function kt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function At(e,t){for(;e&&e!==t;){if((e instanceof HTMLAnchorElement||e instanceof SVGAElement)&&e.hasAttribute(`href`))return e;e=kt(e)}}function jt(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||Mt(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===Tt&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function j(e){let t=null,n=null,r=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)t===null&&(t=A(o,`preload-code`)),n===null&&(n=A(o,`preload-data`)),r===null&&(r=A(o,`reload`)),i===null&&(i=A(o,`replacestate`)),a===null&&(a=A(o,`reset`)),o=kt(o);function s(e){switch(e){case``:case`true`:return!0;case`false`:return!1;default:return}}return{preload_code:Ot[t??`false`],preload_data:Ot[n??`false`],reload:s(r),replace_state:s(i),reset:s(a)??!0}}function Mt(e,t,n){return e.origin!==Tt||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Nt(e,t){let n=t?e.hash.split(`#`,3)[2]??``:e.hash.slice(1);return n?document.getElementById(decodeURIComponent(n)):null}function Pt(e){}function Ft(e){let t=document.activeElement;e&&(t instanceof HTMLElement||t instanceof SVGElement)&&t!==document.body&&t.blur()}function It(e){let t=e.getAttribute(`tabindex`);e.setAttribute(`tabindex`,`-1`),e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}function Lt(e){let t=window.parent===window||document.hasFocus(),n=document.querySelector(`[autofocus]`);if(n)t&&n.focus();else{t&&It(Nt(e,!1)??document.body);let n=getSelection();if(n&&n.type!==`None`){let e=[];for(let t=0;t<n.rangeCount;t+=1)e.push(n.getRangeAt(t));setTimeout(()=>{if(n.rangeCount===e.length){for(let t=0;t<n.rangeCount;t+=1){let r=e[t],i=n.getRangeAt(t);if(r.commonAncestorContainer!==i.commonAncestorContainer||r.startContainer!==i.startContainer||r.endContainer!==i.endContainer||r.startOffset!==i.startOffset||r.endOffset!==i.endOffset)return}n.removeAllRanges()}})}}}var Rt=!0;function zt(e,t,n){if(t&&Rt){if(n)scrollTo(n.x,n.y);else{let t=Nt(e,!1);t?t.scrollIntoView():scrollTo(0,0)}}Rt=!0}function Bt(e){throw Error(`https://svelte.dev/e/kit/redirect_loop`)}var M=bt(`sveltekit:navigation-snapshot`)??{},Vt=new Set;function Ht(){return new Set(Vt)}function Ut(e){Vt.size===0?delete M[e]:M[e]=Object.fromEntries(Array.from(Vt,({id:e,capture:t})=>[e,st(t())]))}function Wt(e,t){let n=M[e];for(let e of Vt)n&&Object.hasOwn(n,e.id)?e.restore(E(n[e.id])):t?.has(e)&&e.reset?.()}function Gt(e){delete M[e]}function Kt(e){Ut(e),xt(Ct,M)}var qt=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);[...qt],[...new Set([...qt])];function N(){}var Jt={spanContext(){return Yt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Yt={traceId:``,spanId:``,traceFlags:0},Xt=d(`<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>`),Zt=d(`<!> <!>`,1);function Qt(e,t){ie(t,!0);let a=(e,c=r,d=r)=>{let p=(e,t=r)=>{var n=s(),a=h(n);f(a,()=>o(g),(e,n)=>{n(e,{get error(){return t()}})}),i(e,n)},m=x(()=>c().component),g=x(()=>c().error),_=x(()=>c().data);var y=s(),b=h(y);u(b,{get failed(){return o(g)?p:void 0},get onerror(){return o(g)?t.onerror:void 0}},e=>{var r=s(),u=h(r),p=e=>{var n=s(),r=h(n);f(r,()=>o(m),(e,n)=>{v(n(e,{get data(){return o(_)},get form(){return t.form},get params(){return t.page.params},children:(e,t)=>{a(e,()=>c().child,()=>d()+1)},$$slots:{default:!0}}),e=>l()[d()]=e,()=>l()?.[d()])}),i(e,n)},g=e=>{var n=s(),r=h(n);f(r,()=>o(m),(e,n)=>{v(n(e,{get data(){return o(_)},get form(){return t.form},get params(){return t.page.params},get error(){return t.error}}),e=>l()[d()]=e,()=>l()?.[d()])}),i(e,n)};n(u,e=>{c().child?e(p):e(g,-1)}),i(e,r)}),i(e,y)},l=ne(t,`components`,7),d=_(!1),b=_(!1),ee=_(``);or(()=>{o(d)?(S(b,!0),S(ee,document.title||`untitled page`,!0)):S(d,!0)});var ae=Zt(),oe=h(ae);a(oe,()=>t.tree,()=>0);var C=te(oe,2),se=e=>{var t=Xt(),r=y(t),a=e=>{var t=m();g(()=>c(t,o(ee))),i(e,t)};n(r,e=>{o(b)&&e(a)}),p(t),i(e,t)};n(C,e=>{o(d)&&e(se)}),i(e,ae),re()}var $t=class{#e;get form(){return o(this.#e)}set form(e){S(this.#e,e)}#t;get error(){return o(this.#t)}set error(e){S(this.#t,e)}page;components=[];tree;onerror;constructor({page:e,tree:t,form:n,error:r,onerror:i=N}){this.page=e,this.tree=t,this.onerror=i,this.#e=_(n),this.#t=_(r)}},en=class{component;error;#e=_({});get data(){return o(this.#e)}set data(e){S(this.#e,e)}#t=_();get child(){return o(this.#t)}set child(e){S(this.#t,e)}constructor(e,t){this.component=e,this.error=t}};function tn(e,t,n){let r=[void 0],i=-1;for(let a=1;a<e.length;a+=1){if(!e[a])continue;let o=a-1;for(;o>i+1&&t[o]==null;)--o;i=o;let s=t[o];r.push(s==null?void 0:n(s)?.catch(()=>void 0))}return Promise.all(r)}function*nn(e,t,n){for(;e--;){let r=n[e];if(r!=null){let n=e;for(;!t[n];)--n;yield{error:r,idx:n+1}}}}var rn=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),an=new Set,P=bt(`sveltekit:history-info`)??{},on=bt(`sveltekit:snapshot`)??{},F;function sn(e){P[e].scroll=Dt()}function cn(e,t){P[e]={...P[e],resetIndex:t.resetIndex}}function ln(e,t){Gt(e);let n=e+1;for(;P[n];)delete P[n],Gt(n),n+=1;for(n=t+1;on[n];)delete on[n],n+=1}function I(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(N)}async function un(){try{if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(C||`/`);e&&await e.update()}}catch{}}var dn,fn,pn,L,mn,R,hn={},gn={},_n=[],z=null;function B(){z?.fork?.then(e=>e?.discard()),z=null,Q={element:void 0,href:void 0}}var vn=new Map,yn=new Set,bn=new Set,V=new Set,H={branch:[],error:null,url:null,nav:null},xn=!1,U=!1,W=!1,G=null,Sn=!1,Cn=!1,K,q,J;function Y(e=history.state){return e?.[O]}var X,wn,Tn=new Set,En=new Map,Dn=new Map;se(async e=>{typeof e==`string`&&(e=new URL(e,location.href));let t=await Z(e,!1);return t?{id:t.route.id,params:t.params}:null}),Promise.resolve();function On(e,t,n){return An(e,t,n)}function*kn(e){for(let[t,n]of e)for(let[e,r]of n)yield[ft(t,e),r]}async function An(t,n,r){if(e.data){let{q:t={},p:n={},l:r={},f:i={}}=e.data;for(let e in t)hn[e]=t[e];for(let e in r)hn[e]=r[e];for(let e in i)hn[e]=i[e];for(let e in n)gn[e]=n[e]}document.URL!==location.href&&(location.href=location.href),R=t,ut(R.hooks.transport??{}),await t.hooks.init?.(),dn=yt(t),L=document.documentElement,mn=n,fn=t.nodes[0],pn=t.nodes[1];let[i]=await Promise.all([fn(),pn()]),a=new en(i.component,void 0);F=new $t({page:me,tree:a,form:void 0,error:void 0,onerror:(e,t)=>an.add(t)});let o=Y();K=o?.historyIndex??0,q=o?.navigationIndex??0,J=o?.resetIndex??0,K||(K=q=J=Date.now(),history.replaceState({...history.state,[O]:{historyIndex:K,navigationIndex:q,state:st({}),persistState:!1,resetIndex:K}},``)),cn(K,Y());let s=P[K]?.scroll;function c(){s&&(history.scrollRestoration=`manual`,scrollTo(s.x,s.y))}r?(c(),await ur(mn,r)):(await er({type:`enter`,url:Et(R.hash?pr(new URL(location.href)):location.href),replace_state:!0,state:o?.persistState?E(o.state):{},persist_state:o?.persistState??!1}),c()),lr()}function jn(){_n.length=0,Cn=!1}function Mn(e){F.components.some(e=>e?.snapshot)&&(on[e]=F.components.map(e=>e?.snapshot?.capture()))}function Nn(e){on[e]?.forEach((e,t)=>{F.components[t]?.snapshot?.restore(e)})}function Pn(){sn(K),xt(wt,P),Mn(q),xt(St,on),Kt(K)}async function Fn(e,t={},n=0,r={},i){let o,s;t.refreshAll&&B(),await er({type:t.type??`goto`,url:Et(e),reset:t.reset,replace_state:t.replace,state:t.state,persist_state:t.persistState,event:t.event,action_result:t.action_result,redirect_count:n,nav_token:r,intent:i,accept:()=>{if(t.refreshAll){Cn=!0,o=new Set;for(let[e,t]of kn(En))t.resource?.reset(),o.add(e);s=new Set;for(let[e]of kn(Dn))s.add(e)}t.invalidate&&t.invalidate.forEach(cr)}}),t.refreshAll&&a().then(a).then(()=>{for(let[e,{resource:t}]of kn(En))o?.has(e)&&t.start();for(let[e,{resource:t}]of kn(Dn))s?.has(e)&&t.reconnect()})}async function In(e){if(e.id!==z?.id){B();let t={};Tn.add(t),z={id:e.id,token:t,promise:Kn({...e,preload:t}).finally(()=>{Tn.delete(t)}),fork:null},z.promise.catch(B)}return z.promise}async function Ln(e){await Promise.all([...e.layouts,e.leaf].filter(Boolean).map(([,e])=>e()))}async function Rn(e){let t=(await Z(e,!1))?.route;t&&await Ln(t)}async function zn(e,n,r){let i={params:e.state.params,route:{id:e.state.route?.id??null},url:new URL(location.href)};if(H={...e.state,nav:i},mr(e),(r?t:b)(Qt,{target:n,props:F,transformError:async e=>{let t=await $(e,H.nav);return fe({error:t,status:t.status}),t}}),await Promise.resolve(),r){let e={from:null,to:{...i,scroll:P[K]?.scroll??Dt()},willUnload:!1,type:`enter`,shallow:!1,complete:Promise.resolve()};V.forEach(t=>t(e))}Nn(q),xn&&Wt(K),U=!0}async function Bn({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(C&&(e.pathname===C||e.pathname===C+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=pe(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{page:{...me},tree:{}}};a&&(l.props.error=a),s!==void 0&&(l.props.form=s);let u={},d=!me,f=r&&await tn(n,r,e=>e().then(e=>e.component)),p=l.props.tree,m=1,h=F.tree;for(let e=0;e<n.length;e+=1){let t=n[e],r=H.branch[e];if(t&&(d||!h||t?.data!==r?.data?(p.data={...u,...t.data},d=!0):p.data=h.data,u=p.data,e<n.length-1)){let t=e+1;for(;t<n.length&&!n[t];)t+=1;let r=n[t];r&&(p=p.child=new en(r.node.component,f?.[m++]),h=h?.child)}}return(!H.url||e.href!==H.url.href||H.error!==a||s!==void 0&&s!==me.form||d)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},shallow:null,status:i??a?.status??200,url:new URL(e),form:s??null,data:u}),l}async function Vn({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Jt,current:Jt},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:de(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},R.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=Hn(t,r,n);return s&&e(i.href),a},setHeaders:N,depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function Hn(e,t,n){let r=new URL(e instanceof Request?e.url:e,n),i=dt(r,n);return{resolved:r,promise:U?ht(i,r.href,t):mt(i,t)}}function Un(e,t,n,r,i,a){if(Cn)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==H.params[e])return!0;for(let e of i.dependencies)if(_n.some(t=>t(new URL(e))))return!0;return!1}function Wn(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Gn(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r).sort(),a=t.searchParams.getAll(r).sort();i.length===a.length&&i.every((e,t)=>e===a[t])&&n.delete(r)}return n}async function Kn({id:e,invalidating:t,url:n,params:r,route:i,preload:a,action_result:o}){if(!o&&z?.id===e)return Tn.delete(z.token),z.promise;let{errors:s,layouts:c,leaf:l}=i,u=[...c,l],d=u.length-1,f=o?.type===`error`;s.forEach(e=>e?.().catch(N)),u.forEach(e=>e?.[1]().catch(N));let p=H.url?e!==Qn(H.url):!1,m=!H.route||i.id!==H.route.id,h=Gn(H.url,n),g=!1,_=u.map(async(e,t)=>{if(!e||f&&t===d)return;let a=H.branch[t];return e[1]===a?.loader&&!Un(g,m,p,h,a.universal?.uses,r)?a:(g=!0,Vn({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await _[n])?.data);return e},server_data_node:Wn(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of _)e.catch(N);let v=[];for(let e=0;e<u.length;e+=1)if(u[e])try{v.push(await _[e])}catch(t){if(t instanceof ye)return{type:`redirect`,status:t.status,location:t.location};if(a&&Tn.has(a))throw await $(t,{params:r,url:n,route:{id:i.id}});let o;if(t instanceof _e)o=await $(t,{params:r,url:n,route:{id:i.id}});else{if(await ce.check())return await un(),await I(n);o=await $(t,{params:r,url:n,route:{id:i.id}})}return Jn({i:e,branch:v,errors:s,error:o,url:n,params:r,route:i})}else v.push(void 0);return o?.type===`error`?Jn({i:u.length,branch:v,errors:s,error:o.error,status:o.status,url:n,params:r,route:i}):Bn({url:n,params:r,branch:v,errors:s,error:null,route:i,status:o?.status,form:o?.type===`success`||o?.type===`failure`?o.data??null:t?void 0:null})}async function qn(e,t,n){for(let{error:r,idx:i}of nn(e,t,n))try{return t.slice(0,i).concat({node:await r(),loader:r,data:{},server:null,universal:null})}catch{continue}}async function Jn({i:e,branch:t,errors:n,error:r,status:i,url:a,params:o,route:s}){let c=await qn(e,t,n);return c?Bn({url:a,params:o,branch:c,errors:n,error:r,status:i,route:s}):rr(a,{id:s.id},r)}async function Yn({error:e,url:t,route:n}){let r={};try{return Bn({url:t,params:r,branch:[await Vn({loader:fn,url:t,params:r,route:n,parent:()=>Promise.resolve({}),server_data_node:Wn(null)}),{node:await pn(),loader:pn,universal:null,server:null,data:null}],error:e,errors:[],route:null})}catch(e){if(e instanceof ye){await Fn(new URL(e.location,location.href));return}let i=await R.get_error_template(),a=await $(e,{url:t,params:r,route:n}),o=String(a?.message??``).replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),s=i({status:a.status,message:o}),c=new DOMParser().parseFromString(s,`text/html`);throw document.documentElement.replaceChild(document.adoptNode(c.head),document.head),document.documentElement.replaceChild(document.adoptNode(c.body),document.body),e}}async function Xn(e){let t=e.href;if(vn.has(t))return vn.get(t);let n;try{let r=(async()=>{let t=await R.hooks.reroute({url:new URL(e),fetch:async(t,n)=>Hn(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);R.hash?n.hash=t:n.pathname=t,t=n}return t})();vn.set(t,r),n=await r}catch{vn.delete(t);return}return n}async function Z(e,t){if(e&&!Mt(e,C,R.hash)){let n=await Xn(e);if(!n)return;let r=Zn(n);for(let n of dn){let i=n.exec(r);if(i)return{id:Qn(e),invalidating:t,route:n,params:i,url:e}}}}function Zn(e){return ae(R.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(C.length))||`/`}function Qn(e){return(R.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function $n({url:e,type:t,intent:n,delta:r,event:i,scroll:a,shallow:o=!1,target:s}){let c=!1,l=fr(H,n,e,t,a??null,o,s);l.navigation.type===`popstate`&&r!==void 0&&(l.navigation.delta=r),i!==void 0&&(l.navigation.event=i);let u={...l.navigation,cancel:()=>{c=!0,l.reject(Error(`navigation cancelled`))}};return W||yn.forEach(e=>e(u)),c?null:l}async function er({type:e,url:t,popped:n,reset:r=!0,replace_state:i,state:a={},persist_state:o=!1,redirect_count:s=0,nav_token:c={},accept:l=N,block:u=N,event:d,intent:f,action_result:p}){let m=X,h=wn;X=wn=c,f??=await Z(t,!1);let g=e===`enter`?fr(H,f,t,e):$n({url:t,type:e,delta:n?.delta,intent:f,scroll:n?.scroll,shallow:!!n?.shallow,target:n?.shallow??void 0,event:d});if(!g){u(),X===c&&(X=m),wn===c&&(wn=h);return}let _=K,v=q,y=Ht();l(),W=!0,U&&g.navigation.type!==`enter`&&ue(g.navigation);let b=f&&await Kn({...f,action_result:p});if(!b){let e=Mt(t,C,R.hash),n=e&&!1;if(e&&!n)return await I(t,i);b=await rr(t,{id:null},await $(new be(404,`Not Found`,`Not found: ${t.pathname}${n?` (did you forget the hash?)`:``}`),{url:t,params:{},route:{id:null}}),i)}if(t=f?.url||t,X!==c){g.reject(Error(`navigation aborted`));return}if(!b)return;if(b.type===`redirect`){if(s<20){z?.id===f?.id&&B(),await er({type:e,url:new URL(b.location,t),popped:n,reset:r,replace_state:i,state:a,persist_state:o,redirect_count:s+1,nav_token:c}),g.fulfil(void 0);return}if(b=await Yn({error:await $(ge(()=>Bt({url:t.href})),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!b)return}else if(b.props.page.status>=400&&await ce.check())return await un(),await I(t,i);if(jn(),U&&!n&&(sn(_),Mn(v),i?Gt(_):Ut(_)),b.props.page.url.pathname!==t.pathname&&(t.pathname=b.props.page.url.pathname),n)a=n.state;else{let n=st(a);a=E(n);let s=+!i;e!==`enter`&&r&&(J+=1);let c={[O]:{historyIndex:K+=s,navigationIndex:q+=s,state:n,persistState:o,resetIndex:J}};(i?history.replaceState:history.pushState).call(history,c,``,t),cn(K,c[O]),i||ln(K,q)}let x=f&&z?.id===f.id?z.fork:null;z?.fork&&!x?B():(z=null,Q={element:void 0,href:void 0}),b.props.page.state=a,b.props.page.shallow=n?.shallow??null;let te;if(U){await tr(g.navigation);let e=n?.shallow?{params:b.state.params,route:{id:b.state.route?.id??null},url:b.state.url}:g.navigation.to;H={...b.state,nav:{params:e.params,route:e.route,url:e.url}},b.props.page&&(b.props.page.url=t),Ft(r);let i=x&&await x;if(i){te=i.commit();for(let e of an)e();an.clear()}else mr(b),te=ee().then(()=>{for(let e of an)e();an.clear()});Sn=!0}else await zn(b,mn,!1);await nr(g,c,t,n?.scroll,r,te)&&(e===`popstate`&&Nn(q),Wt(K,y),ue(null))}async function tr(e){let t=(await Promise.all(Array.from(bn,t=>t(e)))).filter(e=>typeof e==`function`);if(t.length>0){function e(){t.forEach(e=>V.delete(e))}t.push(e),t.forEach(e=>V.add(e))}}async function nr(e,t,n,r,i,a){return await a,X===t?(zt(n,i,r),i&&document.activeElement===document.body&&Lt(n),W=!1,e.fulfil(void 0),e.navigation.to&&(e.navigation.to.scroll=Dt()),V.forEach(t=>t(e.navigation)),!0):(e.reject(Error(`navigation aborted`)),!1)}async function rr(e,t,n,r){return e.origin===Tt&&e.pathname===location.pathname&&!xn?await Yn({error:n,url:e,route:t}):await I(e,r)}var Q={element:void 0,href:void 0};function ir(){let e,t,n;function r(){clearTimeout(e),t?.removeEventListener(`mousemove`,i),t?.removeEventListener(`mouseleave`,r),t=void 0}function i(){clearTimeout(e),e=setTimeout(()=>{t&&s(t,k.hover)},20)}L.addEventListener(`mouseover`,e=>{if(!(e.target instanceof Element))return;let n=At(e.target,L);if(!n||n===t)return;r(),t=n;let a=j(n);a.preload_code<k.hover&&a.preload_data<k.hover||(n.addEventListener(`mousemove`,i),n.addEventListener(`mouseleave`,r,{once:!0}),i())});function a(e){if(e.defaultPrevented)return;let t=At(e.composedPath()[0],L);t&&s(t,k.tap)}L.addEventListener(`mousedown`,a),L.addEventListener(`touchstart`,a,{passive:!0});let o=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(Rn(new URL(t.target.href)),o.unobserve(t.target))},{threshold:0});async function s(e,t){let r=e===Q.element&&e?.href===Q.href&&t>=n;if(!e||r)return;let{url:i,external:a,download:o}=jt(e,C,R.hash);if(a||o)return;let s=j(e),c=i&&Qn(H.url)===Qn(i);if(!(s.reload||c)){if(t<=s.preload_data){Q={element:e,href:e.href},n=k.tap;let t=await Z(i,!1);if(!t)return;In(t).catch(N)}else t<=s.preload_code&&(Q={element:e,href:e.href},n=t,Rn(i))}}function c(){o.disconnect();for(let e of L.querySelectorAll(`a`)){let{url:t,external:n,download:r}=jt(e,C,R.hash);if(n||r)continue;let i=j(e);i.reload||(i.preload_code===k.viewport&&o.observe(e),i.preload_code===k.eager&&Rn(t))}}V.add(c),c()}async function $(e,t){if(e instanceof ve)return e.body;let n;n=e instanceof _e?{kind:`app`,error:e.body}:e instanceof be?{kind:`framework`,error:{status:e.status,message:e.text}}:{kind:`unknown`,error:e};let r=n.kind===`unknown`?{status:500,message:`Internal Error`}:n.error,i={...n,event:t},a=await R.hooks.handleError(i);return{...r,...a}}function ar(e,t){l(()=>(e.add(t),()=>{e.delete(t)}))}function or(e){ar(V,e)}function sr(e){ar(yn,e)}function cr(e){if(typeof e==`function`)_n.push(e);else{let{href:t}=new URL(e,location.href);_n.push(e=>e.href===t)}}function lr(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(Pn(),!W){let e=fr(H,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};yn.forEach(e=>e(n))}t&&(e.preventDefault(),e.returnValue=``)}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`?Pn():ce.check()}),addEventListener(`focus`,()=>{ce.check()}),navigator.connection?.saveData||ir(),L.addEventListener(`click`,async t=>{if(t.button||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=At(t.composedPath()[0],L);if(!n)return;let{url:r,external:i,target:a,download:o}=jt(n,C,R.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=j(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&r.protocol!==`https:`&&r.protocol!==`http:`||o)return;let[c,l]=(R.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===oe(location);if(i||s.reload&&(!u||!l)){$n({url:r,type:`link`,event:t})?W=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=H.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(G={...Y(),resetIndex:J+ +!!s.reset},sn(K),e(r),!s.replace_state)return;G=null}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)});let d=r.href!==location.href;await Fn(r,{type:`link`,reset:s.reset,replace:s.replace_state??!d,refreshAll:!d,event:t})}),L.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(Mt(r,C,!1))return;let i=e.target,a=j(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),er({type:`form`,url:r,reset:a.reset,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{let n=Y(t.state);if(n?.historyIndex){let r=n.historyIndex,i=P[K];if(r===K)return;X=wn={};let a=r-K,o=n.resetIndex,s=o!==(i?.resetIndex??J),c=P[r]?.scroll,l=E(n.state),u=new URL(n.pageUrl??location.href),d=n.navigationIndex,f=H.url&&(location.href+H.url.href).includes(`#`)?oe(location)===oe(H.url):!1,p=d===q&&(Sn&&(n.pageUrl===void 0||n.pageUrl===location.href)||f),m=n.pageUrl?new URL(location.href):null,h=K,g=q,_=J;sn(h),p||Mn(g),Ut(h),K=r,q=d,J=o;let v=X,y=m?await Z(m,!1):void 0;if(X!==v)return;let b=m?{params:y?.params??null,route:y?{id:y.route.id}:null,url:m}:null;if(p){Ft(s),fe({state:l,shallow:b}),e(u),s&&c&&scrollTo(c.x,c.y),Wt(K,Ht()),W=!1,ue(null);return}await er({type:`popstate`,url:u,reset:s,popped:{state:l,scroll:c,delta:a,shallow:b},block:()=>{K=h,q=g,J=_,history.go(-a)},nav_token:v,event:t})}else G||(e(new URL(location.href)),R.hash&&location.reload())}),addEventListener(`hashchange`,()=>{if(G){let e=G;G=null,J=e.resetIndex,history.replaceState({...history.state,[O]:{...e,historyIndex:++K,navigationIndex:q}},``,location.href),cn(K,e)}});for(let e of document.querySelectorAll(`link`))rn.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{if(e.persisted){ue(null);let e=P[K]?.scroll;e&&scrollTo(e.x,e.y)}});function e(e){H.url=e,fe({url:e})}}async function ur(e,{status:t,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){xn=!0;let l=new URL(location.href),u;({params:i={},route:a={id:null}}=await Z(l,!1)||{}),u=dn.find(({id:e})=>e===a.id);let d,f=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=dr(r.uses)),Vn({loader:R.nodes[t],url:l,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:Wn(r)})}),o=await Promise.all(e);if(u){let e=u.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}d=await Bn({url:l,params:i,branch:o,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(t){if(t instanceof ye)return await I(new URL(t.location,location.href));d=await Yn({error:await $(t,{url:l,params:i,route:a}),url:l,route:a}),e.textContent=``,f=!1}if(d){if(d.props.page){let e=Y();d.props.page.state=e?.persistState?E(e.state):{}}await zn(d,e,f)}}function dr(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}function fr(e,t,n,r,i=null,a=!1,o){let s,c,l=new Promise((e,t)=>{s=e,c=t});return l.catch(N),{navigation:{from:r===`enter`?null:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:Dt()},to:n&&{params:o?o.params:t?.params??null,route:{id:o?o.route?.id??null:t?.route?.id??null},url:o?.url??n,scroll:i},willUnload:!a&&!t,type:r,shallow:a,complete:l},fulfil:s,reject:c}}function pr(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function mr(e){fe(e.props.page),F.tree.data=e.props.tree.data,F.tree.child=e.props.tree.child,`form`in e.props&&(F.form=e.props.form),`error`in e.props&&(F.error=e.props.error)}export{On as n,Pt as r,sr as t};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{$ as e,B as t,C as n,D as r,E as i,Et as a,F as o,G as s,H as c,I as l,J as u,K as d,L as f,M as p,N as m,R as h,S as g,T as _,Tt as v,U as ee,V as y,W as te,X as b,Y as x,_ as S,_t as C,a as w,at as T,bt as E,c as D,ct as O,d as ne,dt as k,et as A,ft as j,gt as M,h as re,ht as ie,i as N,it as P,j as ae,k as F,l as oe,lt as I,m as se,n as L,nt as ce,o as le,ot as R,p as ue,pt as z,r as B,st as V,t as H,tt as de,ut as U,v as W,vt as G,wt as fe,y as pe,yt as K}from"./DR13iyEP.js";import{a as me,c as he,d as ge,l as q,n as _e,o as J,r as ve,s as ye,u as be}from"./CSzwgvai.js";import{n as xe,r as Se,t as Ce}from"./CJuNNExc.js";import{n as we,r as Te,t as Ee}from"./BQUxoyXx.js";function Y(e){return typeof e==`object`&&!!e}var De=[`string`,`number`,`bigint`,`boolean`];function Oe(e){return e==null||De.includes(typeof e)?!0:Array.isArray(e)?e.every(e=>Oe(e)):typeof e==`object`&&Object.getPrototypeOf(e)===Object.prototype}var ke=Symbol(`box`),Ae=Symbol(`is-writable`);function X(e,t){let n=z(e);return t?{[ke]:!0,[Ae]:!0,get current(){return d(n)},set current(e){t(e)}}:{[ke]:!0,get current(){return e()}}}function je(e){return Y(e)&&ke in e}function Me(e){let t=j(O(e));return{[ke]:!0,[Ae]:!0,get current(){return d(t)},set current(e){U(t,e,!0)}}}function Ne(...e){return function(t){for(let n of e)if(n){if(t.defaultPrevented)return;typeof n==`function`?n.call(this,t):n.current?.call(this,t)}}}var Pe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fe=/\n/g,Ie=/^\s*/,Le=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Re=/^:\s*/,ze=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Be=/^[;\s]*/,Ve=/^\s+|\s+$/g,He=`
|
|
2
|
+
`,Ue=`/`,We=`*`,Ge=``,Ke=`comment`,qe=`declaration`;function Je(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(Fe);t&&(n+=t.length);var i=e.lastIndexOf(He);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(Ie)}function u(e){var t;for(e||=[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(Ue==e.charAt(0)&&We==e.charAt(1)){for(var n=2;Ge!=e.charAt(n)&&(We!=e.charAt(n)||Ue!=e.charAt(n+1));)++n;if(n+=2,Ge===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:Ke,comment:o})}}function f(){var e=a(),t=c(Le);if(t){if(d(),!c(Re))return s(`property missing ':'`);var n=c(ze),r=e({type:qe,property:Ye(t[0].replace(Pe,Ge)),value:n?Ye(n[0].replace(Pe,Ge)):Ge});return c(Be),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function Ye(e){return e?e.replace(Ve,Ge):Ge}function Xe(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=Je(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n||={},n[r]=a)}),n}var Ze=/\d/,Qe=[`-`,`_`,`/`,`.`];function $e(e=``){if(!Ze.test(e))return e!==e.toLowerCase()}function et(e){let t=[],n=``,r,i;for(let a of e){let e=Qe.includes(a);if(e===!0){t.push(n),n=``,r=void 0;continue}let o=$e(a);if(i===!1){if(r===!1&&o===!0){t.push(n),n=a,r=o;continue}if(r===!0&&o===!1&&n.length>1){let e=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=e+a,r=o;continue}}n+=a,r=o,i=e}return t.push(n),t}function tt(e){return e?et(e).map(e=>rt(e)).join(``):``}function nt(e){return it(tt(e||``))}function rt(e){return e?e[0].toUpperCase()+e.slice(1):``}function it(e){return e?e[0].toLowerCase()+e.slice(1):``}var at=1e3,ot=new Map;function st(e){let t=ot.get(e);return t===void 0&&(t=e.startsWith(`-moz-`)||e.startsWith(`-webkit-`)||e.startsWith(`-ms-`)||e.startsWith(`-o-`)?tt(e):e.startsWith(`--`)?e:nt(e),ot.size>=at&&ot.clear(),ot.set(e,t)),t}var ct=/["'\\{}]|\/\*/,lt=/^[-\w]+$/;function ut(e){if(ct.test(e))return null;let t=[],n=0,r=0,i=-1;for(let a=0;a<=e.length;a++){let o=a<e.length?e.charCodeAt(a):59;if(o===40)n++;else if(o===41){if(--n<0)return null}else if(o===58)i<0&&(i=a);else if(o===59){if(n!==0)return null;let o=e.slice(r,a);if(i<0){if(o.trim()||t.length===0)return null}else{let n=e.slice(r,i).trim(),o=e.slice(i+1,a).trim();if(!lt.test(n)||!o)return null;t.push(n,o)}r=a+1,i=-1}}return t}function dt(e,t){let n=ut(t);if(n)for(let t=0;t<n.length;t+=2)e[st(n[t])]=n[t+1];else Xe(t,(t,n)=>{e[st(t)]=n})}function ft(e){if(!e)return{};let t={};return dt(t,e),t}function pt(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}function mt(e,t){let n=RegExp(e,`g`);return e=>{if(typeof e!=`string`)throw TypeError(`expected an argument of type string, but got ${typeof e}`);return e.match(n)?e.replace(n,t):e}}var ht=mt(/[A-Z]/,e=>`-${e.toLowerCase()}`),gt=new Map;function _t(e){let t=gt.get(e);return t===void 0&&(t=ht(e),gt.size>=1e3&>.clear(),gt.set(e,t)),t}function vt(e){if(!e||typeof e!=`object`||Array.isArray(e))throw TypeError(`expected an argument of type object, but got ${typeof e}`);let t=``;for(let n of Object.keys(e)){let r=e[n];r!=null&&r!==``&&(t+=`${t?`
|
|
3
|
+
`:``}${_t(n)}: ${r};`)}return t}function yt(e={}){return vt(e).replace(`
|
|
4
|
+
`,` `)}var bt=new Set(`onabort.onanimationcancel.onanimationend.onanimationiteration.onanimationstart.onauxclick.onbeforeinput.onbeforetoggle.onblur.oncancel.oncanplay.oncanplaythrough.onchange.onclick.onclose.oncompositionend.oncompositionstart.oncompositionupdate.oncontextlost.oncontextmenu.oncontextrestored.oncopy.oncuechange.oncut.ondblclick.ondrag.ondragend.ondragenter.ondragleave.ondragover.ondragstart.ondrop.ondurationchange.onemptied.onended.onerror.onfocus.onfocusin.onfocusout.onformdata.ongotpointercapture.oninput.oninvalid.onkeydown.onkeypress.onkeyup.onload.onloadeddata.onloadedmetadata.onloadstart.onlostpointercapture.onmousedown.onmouseenter.onmouseleave.onmousemove.onmouseout.onmouseover.onmouseup.onpaste.onpause.onplay.onplaying.onpointercancel.onpointerdown.onpointerenter.onpointerleave.onpointermove.onpointerout.onpointerover.onpointerup.onprogress.onratechange.onreset.onresize.onscroll.onscrollend.onsecuritypolicyviolation.onseeked.onseeking.onselect.onselectionchange.onselectstart.onslotchange.onstalled.onsubmit.onsuspend.ontimeupdate.ontoggle.ontouchcancel.ontouchend.ontouchmove.ontouchstart.ontransitioncancel.ontransitionend.ontransitionrun.ontransitionstart.onvolumechange.onwaiting.onwebkitanimationend.onwebkitanimationiteration.onwebkitanimationstart.onwebkittransitionend.onwheel`.split(`.`));function xt(e){return bt.has(e)}function Z(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];if(r){for(let e of Object.keys(r)){let n=t[e],i=r[e],a=typeof n==`function`,o=typeof i==`function`;if(a&&o&&xt(e))t[e]=Ne(n,i);else if(a&&o)t[e]=pt(n,i);else if(e===`class`){let r=Oe(n),a=Oe(i);r&&a?t[e]=pe(n,i):r?t[e]=pe(n):a&&(t[e]=pe(i))}else if(e===`style`){let r=typeof n==`object`,a=typeof i==`object`,o=typeof n==`string`,s=typeof i==`string`;if(r&&a)t[e]={...n,...i};else if(r&&s){let r=ft(i);t[e]={...n,...r}}else if(o&&a)t[e]={...ft(n),...i};else if(o&&s){let r=ft(n),a=ft(i);t[e]={...r,...a}}else r?t[e]=n:a?t[e]=i:o?t[e]=n:s&&(t[e]=i)}else t[e]=i===void 0?n:i}for(let e of Object.getOwnPropertySymbols(r)){let n=t[e],i=r[e];t[e]=i===void 0?n:i}}}return typeof t.style==`object`&&(t.style=yt(t.style).replaceAll(`
|
|
5
|
+
`,` `)),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}var St=typeof window<`u`?window:void 0;typeof window<`u`&&window.document,typeof window<`u`&&window.navigator,typeof window<`u`&&window.location;function Ct(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var wt=class extends Map{#e=new Map;#t=j(0);#n=j(0);#r=b||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return b===this.#r?j(e):k(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else return d(this.#t),!1}return d(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0){if(super.has(e))n=this.#i(0),t.set(e,n);else{d(this.#t);return}}return d(n),super.get(e)}getOrInsert(e,t){return super.has(e)||this.set(e,t),this.get(e)}getOrInsertComputed(e,t){return super.has(e)||this.set(e,t(e)),this.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),U(this.#n,super.size),I(o);else if(i!==t){I(r);var s=o.reactions===null?null:new Set(o.reactions);s!==null&&r.reactions?.every(e=>s.has(e))||I(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),U(n,-1)),r&&(U(this.#n,super.size),I(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;U(this.#n,0);for(var t of e.values())U(t,-1);I(this.#t),e.clear()}}#a(){d(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)d(n)}keys(){return d(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return d(this.#n),super.size}};new class{#e;#t;constructor(e={}){let{window:t=St,document:n=t?.document}=e;t!==void 0&&(this.#e=n,this.#t=o(e=>{let n=s(t,`focusin`,e),r=s(t,`focusout`,e);return()=>{n(),r()}}))}get current(){return this.#t?.(),this.#e?Ct(this.#e):null}};var Tt=class{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return C(this.#t)}get(){let e=M(this.#t);if(e===void 0)throw Error(`Context "${this.#e}" not found`);return e}getOr(e){let t=M(this.#t);return t===void 0?e:t}set(e){return E(this.#t,e)}};function Et(e,t){switch(e){case`post`:de(t);break;case`pre`:ce(t)}}function Dt(e,t,n,r={}){let{lazy:i=!1}=r,a=!i,o=Array.isArray(e)?[]:void 0;Et(t,()=>{let t=Array.isArray(e)?e.map(e=>e()):e();if(!a){a=!0,o=t;return}let r=x(()=>n(t,o));return o=t,r})}function Q(e,t,n){Dt(e,`post`,t,n)}function Ot(e,t,n){Dt(e,`pre`,t,n)}Q.pre=Ot;function kt(e){de(()=>()=>{e()})}function At(e){u().then(e)}var jt=1,Mt=9,Nt=11;function Pt(e){return Y(e)&&e.nodeType===jt&&typeof e.nodeName==`string`}function Ft(e){return Y(e)&&e.nodeType===Mt}function It(e){return Y(e)&&e.constructor?.name===`VisualViewport`}function Lt(e){return Y(e)&&e.nodeType!==void 0}function Rt(e){return Lt(e)&&e.nodeType===Nt&&`host`in e}function zt(e,t){if(!e||!t||!Pt(e)||!Pt(t))return!1;let n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&Rt(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Bt(e){return Ft(e)?e:It(e)?e.document:e?.ownerDocument??document}function Vt(e){let t=e.activeElement;for(;t?.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Ht=class{element;#e=z(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return d(this.#e)}set root(e){U(this.#e,e)}constructor(e){this.element=typeof e==`function`?X(e):e}getDocument=()=>Bt(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>Vt(this.root);isActiveElement=e=>e===this.getActiveElement();getElementById(e){return this.root.getElementById(e)}querySelector=e=>this.root?this.root.querySelector(e):null;querySelectorAll=e=>this.root?this.root.querySelectorAll(e):[];setTimeout=(e,t)=>this.getWindow().setTimeout(e,t);clearTimeout=e=>this.getWindow().clearTimeout(e)};function Ut(e,t){return{[r()]:n=>je(e)?(e.current=n,x(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),x(()=>t?.(n)),()=>{`isConnected`in n&&n.isConnected||(e(null),t?.(null))})}}function Wt(e){return e?``:void 0}function Gt(e){return e?`open`:`closed`}function Kt(e){return e===`starting`?{"data-starting-style":``}:e===`ending`?{"data-ending-style":``}:{}}var qt=class{#e;#t;attrs;constructor(e){this.#e=e.getVariant?e.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${e.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(e=>[e,this.getAttr(e)]))}getAttr(e,t){return t?`data-${t}-${e}`:`${this.#t}${e}`}selector(e,t){return`[${this.getAttr(e,t)}]`}};function Jt(e){let t=new qt(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}var Yt=typeof document<`u`,Xt=Zt();function Zt(){return Yt&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Qt(e){return e instanceof HTMLElement}function $t(e){return e instanceof Element||e instanceof SVGElement}var en=class{#e;#t=null;#n=null;#r=0;constructor(e){this.#e=e,kt(()=>this.#i())}#i(){this.#t!==null&&(window.cancelAnimationFrame(this.#t),this.#t=null),this.#n?.disconnect(),this.#n=null,this.#r++}run(e){this.#i();let t=this.#r,n=()=>{t===this.#r&&this.#a(e)},r=()=>{if(t!==this.#r)return;let i=this.#e.ref.current;if(!i)return;if(typeof i.getAnimations!=`function`){this.#a(e);return}let a=i.getAnimations();a.length===0?n():Promise.all(a.map(e=>e.finished)).then(()=>{n()}).catch(()=>{t===this.#r&&(i.getAnimations().some(e=>e.pending||e.playState!==`finished`)?r():n())})},i=()=>{this.#t=window.requestAnimationFrame(()=>{this.#t=null,r()})};this.#e.afterTick.current?this.#t=window.requestAnimationFrame(()=>{this.#t=null;let e=`data-starting-style`,n=this.#e.ref.current;n&&(n.hasAttribute(e)?(this.#n=new MutationObserver(()=>{t===this.#r&&(n.hasAttribute(e)||(this.#n?.disconnect(),this.#n=null,i()))}),this.#n.observe(n,{attributes:!0,attributeFilter:[e]})):i())}):i()}#a(e){let t=this.#r,n=()=>{t===this.#r&&e()};this.#e.afterTick.current?At(n):n()}},tn=class{#e;#t;#n;#r=j(!1);#i=j(void 0);#a=!1;#o=null;constructor(e){this.#e=e,U(this.#r,e.open.current,!0),this.#t=e.enabled??!0,this.#n=new en({ref:this.#e.ref,afterTick:this.#e.open}),kt(()=>this.#s()),Q(()=>this.#e.open.current,e=>{!this.#a&&(this.#a=!0,e===d(this.#r))||(this.#s(),!e&&this.#e.shouldSkipExitAnimation?.()?(U(this.#r,!1),U(this.#i,void 0),this.#e.onComplete?.()):(e&&U(this.#r,!0),U(this.#i,e?`starting`:`ending`,!0),e&&(this.#o=window.requestAnimationFrame(()=>{this.#o=null,this.#e.open.current&&U(this.#i,void 0)})),this.#t?this.#n.run(()=>{e===this.#e.open.current&&(this.#e.open.current||U(this.#r,!1),U(this.#i,void 0),this.#e.onComplete?.())}):(e||U(this.#r,!1),U(this.#i,void 0),this.#e.onComplete?.())))})}get shouldRender(){return d(this.#r)}get transitionStatus(){return d(this.#i)}#s(){this.#o!==null&&(window.cancelAnimationFrame(this.#o),this.#o=null)}};function $(){}function nn(e,t){return t===void 0?`bits-${e}`:`bits-${e}-${t}`}var rn=Jt({component:`dialog`,parts:[`content`,`trigger`,`overlay`,`title`,`description`,`close`,`cancel`,`action`]}),an=new Tt(`Dialog.Root | AlertDialog.Root`),on=class e{static create(t){let n=an.getOr(null);return an.set(new e(t,n))}opts;#e=j(null);get triggerNode(){return d(this.#e)}set triggerNode(e){U(this.#e,e,!0)}#t=j(null);get contentNode(){return d(this.#t)}set contentNode(e){U(this.#t,e,!0)}#n=j(null);get overlayNode(){return d(this.#n)}set overlayNode(e){U(this.#n,e,!0)}#r=j(null);get descriptionNode(){return d(this.#r)}set descriptionNode(e){U(this.#r,e,!0)}#i=j(void 0);get contentId(){return d(this.#i)}set contentId(e){U(this.#i,e,!0)}#a=j(void 0);get titleId(){return d(this.#a)}set titleId(e){U(this.#a,e,!0)}#o=j(void 0);get triggerId(){return d(this.#o)}set triggerId(e){U(this.#o,e,!0)}#s=j(void 0);get descriptionId(){return d(this.#s)}set descriptionId(e){U(this.#s,e,!0)}#c=j(null);get cancelNode(){return d(this.#c)}set cancelNode(e){U(this.#c,e,!0)}#l=j(0);get nestedOpenCount(){return d(this.#l)}set nestedOpenCount(e){U(this.#l,e,!0)}depth;parent;contentPresence;overlayPresence;constructor(e,t){this.opts=e,this.parent=t,this.depth=t?t.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new tn({ref:X(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new tn({ref:X(()=>this.overlayNode),open:this.opts.open,enabled:!0}),Q(()=>this.opts.open.current,e=>{this.parent&&(e?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),kt(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=e=>rn.getAttr(e,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#u=z(()=>({"data-state":Gt(this.opts.open.current)}));get sharedProps(){return d(this.#u)}set sharedProps(e){U(this.#u,e)}},sn=class e{static create(t){return new e(t,an.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===` `||e.key===`Enter`)&&(e.preventDefault(),this.root.handleClose())}#e=z(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:``,onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return d(this.#e)}set props(e){U(this.#e,e)}},cn=class e{static create(t){return new e(t,an.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.titleId=this.opts.id.current,this.attachment=Ut(this.opts.ref),Q.pre(()=>this.opts.id.current,e=>{this.root.titleId=e})}#e=z(()=>({id:this.opts.id.current,role:`heading`,"aria-level":this.opts.level.current,[this.root.getBitsAttr(`title`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return d(this.#e)}set props(e){U(this.#e,e)}},ln=class e{static create(t){return new e(t,an.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.root.descriptionId=this.opts.id.current,this.attachment=Ut(this.opts.ref,e=>{this.root.descriptionNode=e}),Q.pre(()=>this.opts.id.current,e=>{this.root.descriptionId=e})}#e=z(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`description`)]:``,...this.root.sharedProps,...this.attachment}));get props(){return d(this.#e)}set props(e){U(this.#e,e)}},un=class e{static create(t){return new e(t,an.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref,e=>{this.root.contentNode=e,this.root.contentId=e?.id})}#e=z(()=>({open:this.root.opts.open.current}));get snippetProps(){return d(this.#e)}set snippetProps(e){U(this.#e,e)}#t=z(()=>({id:this.opts.id.current,role:this.root.opts.variant.current===`alert-dialog`?`alertdialog`:`dialog`,"aria-modal":`true`,"aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.getBitsAttr(`content`)]:``,style:{pointerEvents:`auto`,outline:this.root.opts.variant.current===`alert-dialog`?`none`:void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:`layout style`},tabindex:this.root.opts.variant.current===`alert-dialog`?-1:void 0,"data-nested-open":Wt(this.root.nestedOpenCount>0),"data-nested":Wt(this.root.parent!==null),...Kt(this.root.contentPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return d(this.#t)}set props(e){U(this.#t,e)}get shouldRender(){return this.root.contentPresence.shouldRender}},dn=class e{static create(t){return new e(t,an.get())}opts;root;attachment;constructor(e,t){this.opts=e,this.root=t,this.attachment=Ut(this.opts.ref,e=>this.root.overlayNode=e)}#e=z(()=>({open:this.root.opts.open.current}));get snippetProps(){return d(this.#e)}set snippetProps(e){U(this.#e,e)}#t=z(()=>({id:this.opts.id.current,[this.root.getBitsAttr(`overlay`)]:``,style:{pointerEvents:`auto`,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Wt(this.root.nestedOpenCount>0),"data-nested":Wt(this.root.parent!==null),...Kt(this.root.overlayPresence.transitionStatus),...this.root.sharedProps,...this.attachment}));get props(){return d(this.#t)}set props(e){U(this.#t,e)}get shouldRender(){return this.root.overlayPresence.shouldRender}},fn=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`ref`,`child`,`children`,`level`]),pn=h(`<div><!></div>`);function mn(e,n){let r=t();K(n,!0);let o=H(n,`id`,19,()=>nn(r)),s=H(n,`ref`,15,null),c=H(n,`level`,3,2),u=L(n,fn),p=cn.create({id:X(()=>o()),level:X(()=>c()),ref:X(()=>s(),e=>s(e))}),m=z(()=>Z(u,p.props));var h=f(),g=T(h),_=e=>{var t=f(),r=T(t);F(r,()=>n.child,()=>({props:d(m)})),l(e,t)},ee=e=>{var t=pn();D(t,()=>({...d(m)}));var r=P(t);F(r,()=>n.children??a),v(t),l(e,t)};i(g,e=>{n.child?e(_):e(ee,-1)}),l(e,h),G()}function hn(e,t){var n=f(),r=T(n);_(r,()=>t.children,e=>{var n=f(),r=T(n);F(r,()=>t.children??a),l(e,n)}),l(e,n)}var gn=new Tt(`BitsConfig`);function _n(){let e=new vn(null,{});return gn.getOr(e).opts}var vn=class{opts;constructor(e,t){let n=yn(e,t);this.opts={dir:n(e=>e.dir),defaultPortalTo:n(e=>e.defaultPortalTo),defaultLocale:n(e=>e.defaultLocale)}}};function yn(e,t){return n=>X(()=>{let r=n(t)?.current;if(r!==void 0)return r;if(e!==null)return n(e.opts)?.current})}function bn(e,t){return n=>{let r=_n();return X(()=>{let i=n();if(i!==void 0)return i;let a=e(r).current;return a===void 0?t:a})}}var xn=bn(e=>e.defaultPortalTo,`body`);function Sn(e,t){K(t,!0);let n=xn(()=>t.to),r=ie(),o=z(s);function s(){if(!Yt||t.disabled)return null;let e=null;return e=typeof n.current==`string`?document.querySelector(n.current):n.current,e}let c;function u(){c&&=(m(c),null)}Q([()=>d(o),()=>t.disabled],([e,n])=>{if(!e||n)u();else return c=ae(hn,{target:e,props:{children:t.children},context:r}),()=>{u()}});var p=f(),h=T(p),g=e=>{var n=f(),r=T(n);F(r,()=>t.children??a),l(e,n)};i(h,e=>{t.disabled&&e(g)}),l(e,p),G()}var Cn=new WeakMap;function wn(e,t=e.composedPath()){Cn.set(e,t)}function Tn(e){return Cn.get(e)??e.composedPath()}function En(e,t){return t?$t(e.target)&&t.contains(e.target)||Tn(e).includes(t):!1}function Dn(e,t){for(let n of Tn(e))if($t(n)&&n.matches(t))return n;return $t(e.target)?e.target.closest(t):null}function On(e,t){wn(t,Tn(e))}function kn(e,t=500){let n=null,r=null,i=(...e)=>{i.destroy(),r=e,n=setTimeout(i.flush,t)};return i.flush=()=>{if(r===null)return;let t=r;i.destroy(),e(...t)},i.destroy=()=>{n!==null&&(clearTimeout(n),n=null),r=null},i}function An(e,t){return e===t||e.contains(t)}function jn(e){return e?.ownerDocument??document}function Mn(e,t){let{clientX:n,clientY:r}=e,i=t.getBoundingClientRect();return n<i.left||n>i.right||r<i.top||r>i.bottom}var Nn=`data-context-menu-trigger`,Pn=`data-context-menu-content`;globalThis.bitsDismissableLayers??=new Map;var Fn=class e{static create(t){return new e(t)}opts;#e=$;#t=()=>!1;#n=null;#r=Me(`close`);#i={pointerdown:!1};#a=!1;#o=null;#s=!1;#c=void 0;#l=$;#u=$;#d=!1;constructor(e){this.opts=e,ce(()=>{this.#r.current=e.interactOutsideBehavior.current,this.#e=e.onInteractOutside.current,this.#l=e.onFocusOutside.current,this.#t=e.isValidEvent.current,this.#n=e.ref.current});let t=$,n=null,r=()=>{n=null,this.#x(),globalThis.bitsDismissableLayers.delete(this),this.#g.destroy(),this.#u(),t()};Q([()=>this.opts.enabled.current,()=>this.opts.ref.current],([e,i])=>{let a=e?i:null;n!==a&&(r(),a&&(n=a,this.#c=jn(a),globalThis.bitsDismissableLayers.set(this,this.#r),t=this.#p()))}),kt(()=>{this.#d=!0,r()})}#f=e=>{e.defaultPrevented||this.#d||!this.#n||At(()=>{this.#d||this.#n&&!this.#b(e.target)&&e.target&&!this.#s&&this.#l?.(e)})};#p(){let e=this.#c,t=e=>{x(()=>{this.#g.flush(),this.#_(e),this.#y(e)})},n=e=>{e.cancelBubble||e!==this.#o||(this.#v(e),e.pointerType===`touch`?(this.#g.destroy(),this.#h(e)):this.#g(e))};return e.addEventListener(`pointerdown`,t,!0),e.addEventListener(`pointerdown`,n),pt(()=>e.removeEventListener(`pointerdown`,t,!0),()=>e.removeEventListener(`pointerdown`,n),s(e,`focusin`,this.#f))}#m=e=>{let t=e;t.defaultPrevented&&(t=zn(e)),this.#e(e)};#h=e=>{if(!this.#n){this.#u();return}let t=this.#t(e,this.#n)||Rn(e,this.#n);if(!this.#a||this.#S()||!t){this.#u();return}let n=e;if(n.defaultPrevented&&(n=zn(n)),this.#r.current!==`close`&&this.#r.current!==`defer-otherwise-close`)this.#u();else if(e.pointerType===`touch`){this.#u();let e=null,t=$,n=e=>{t(),this.#m(e)};t=pt(s(this.#c,`click`,n,{once:!0}),s(this.#c,`click`,t=>{wn(t),e=setTimeout(()=>n(t),0)},{once:!0,capture:!0}),()=>{e!==null&&clearTimeout(e),e=null}),this.#u=t}else this.#e(n)};#g=kn(this.#h,10);#_=e=>{this.#i[e.type]=!0};#v=e=>{this.#i[e.type]=!1};#y=e=>{this.#o=e,wn(e),this.#n&&(this.#a=Ln(this))};#b=e=>this.#n?An(this.#n,e):!1;#x=()=>{for(let e in this.#i)this.#i[e]=!1;this.#a=!1,this.#o=null};#S(){return Object.values(this.#i).some(Boolean)}#C=()=>{this.#s=!0};#w=()=>{this.#s=!1};props={onfocuscapture:this.#C,onblurcapture:this.#w}};function In(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([e,{current:t}])=>t===`close`||t===`ignore`)}function Ln(e){let t=[...globalThis.bitsDismissableLayers],n=In(t);if(n)return n[0]===e;let[r]=t[0];return r===e}function Rn(e,t){let n=e.target;if(!$t(n))return!1;let r=!!Dn(e,`[${Nn}]`),i=!!t.closest(`[${Pn}]`);return`button`in e&&e.button>0&&!r?!1:`button`in e&&e.button===0&&r&&i?!0:r&&i?!1:jn(n).documentElement.contains(n)&&!En(e,t)&&Mn(e,t)}function zn(e){let t=e.currentTarget,n=e.target,r;r=e instanceof PointerEvent?new PointerEvent(e.type,e):new PointerEvent(`pointerdown`,e);let i=!1,a=new Proxy(r,{get:(r,a)=>{if(a===`currentTarget`)return t;if(a===`target`)return n;if(a===`preventDefault`)return()=>{i=!0,typeof r.preventDefault==`function`&&r.preventDefault()};if(a===`defaultPrevented`)return i;if(a in r){let e=r[a];return typeof e==`function`?e.bind(r):e}let o=e[a];return typeof o==`function`?o.bind(e):o}});return On(e,a),a}function Bn(e,t){K(t,!0);let n=H(t,`interactOutsideBehavior`,3,`close`),r=H(t,`onInteractOutside`,3,$),i=H(t,`onFocusOutside`,3,$),o=H(t,`isValidEvent`,3,()=>!1),s=Fn.create({id:X(()=>t.id),interactOutsideBehavior:X(()=>n()),onInteractOutside:X(()=>r()),enabled:X(()=>t.enabled),onFocusOutside:X(()=>i()),isValidEvent:X(()=>o()),ref:x(()=>t.ref)});var c=f(),u=T(c);F(u,()=>t.children??a,()=>({props:s.props})),l(e,c),G()}globalThis.bitsEscapeLayers??=new Map;var Vn=class e{static create(t){return new e(t)}opts;domContext;constructor(e){this.opts=e,this.domContext=new Ht(this.opts.ref);let t=$;Q(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=this.#e()),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}#e=()=>s(this.domContext.getDocument(),`keydown`,this.#t,{passive:!1});#t=e=>{if(e.key!==`Escape`||!Hn(this))return;let t=new KeyboardEvent(e.type,e);e.preventDefault();let n=this.opts.escapeKeydownBehavior.current;(n===`close`||n===`defer-otherwise-close`)&&this.opts.onEscapeKeydown.current(t)}};function Hn(e){let t=[...globalThis.bitsEscapeLayers],n=t.findLast(([e,{current:t}])=>t===`close`||t===`ignore`);if(n)return n[0]===e;let[r]=t[0];return r===e}function Un(e,t){K(t,!0);let n=H(t,`escapeKeydownBehavior`,3,`close`),r=H(t,`onEscapeKeydown`,3,$);Vn.create({escapeKeydownBehavior:X(()=>n()),onEscapeKeydown:X(()=>r()),enabled:X(()=>t.enabled),ref:x(()=>t.ref)});var i=f(),o=T(i);F(o,()=>t.children??a),l(e,i),G()}var Wn=class e{static instance;#e=Me([]);#t=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||=new e,this.instance}register(e){let t=this.getActive();t&&t!==e&&t.pause();let n=Vt(document);n&&n!==document.body&&this.#n.set(e,n),this.#e.current=this.#e.current.filter(t=>t!==e),this.#e.current.unshift(e),e.resume()}unregister(e){this.#e.current=this.#e.current.filter(t=>t!==e);let t=this.getActive();t&&t.resume()}getActive(){return this.#e.current[0]}setFocusMemory(e,t){this.#t.set(e,t)}getFocusMemory(e){return this.#t.get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,t){this.#n.set(e,t)}getPreFocusMemory(e){return this.#n.get(e)}clearPreFocusMemory(e){this.#n.delete(e)}},Gn=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],Kn=Gn.join(`,`),qn=typeof Element>`u`,Jn=qn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Yn=!qn&&Element.prototype.getRootNode?function(e){return e==null||e.getRootNode==null?void 0:e.getRootNode()}:function(e){return e?.ownerDocument},Xn=function(e,t){t===void 0&&(t=!0);var n=e==null||e.getAttribute==null?void 0:e.getAttribute(`inert`);return n===``||n===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):Xn(e.parentNode))},Zn=function(e){var t,n=e==null||e.getAttribute==null||(t=e.getAttribute(`contenteditable`))==null?void 0:t.toLowerCase();return n===``||n===`true`||n===`plaintext-only`},Qn=function(e,t,n){if(Xn(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(Kn));return t&&Jn.call(e,Kn)&&r.unshift(e),r=r.filter(n),r},$n=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!Xn(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=$n(o.length?o:a.children,!0,n);n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{Jn.call(a,Kn)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!Xn(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=$n(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},er=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},tr=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Zn(e))&&!er(e)?0:e.tabIndex},nr=function(e,t){var n=tr(e);return n<0&&t&&!er(e)?0:n},rr=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},ir=function(e){return e.tagName===`INPUT`},ar=function(e){return ir(e)&&e.type===`hidden`},or=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},sr=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},cr=function(e){if(!e.name)return!0;var t=e.form||Yn(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&window.CSS!==void 0&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=sr(r,e.form);return!i||i===e},lr=function(e){return ir(e)&&e.type===`radio`},ur=function(e){return lr(e)&&!cr(e)},dr=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},fr=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=Jn.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(Jn.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=Yn(e);if(s&&!s.shadowRoot&&r(s)===!0)return dr(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(e.isConnected)return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return dr(e);return!1},pr=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return Jn.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},mr=function(e,t){return!(t.disabled||ar(t)||fr(t,e)||or(t)||pr(t))},hr=function(e,t){return!(ur(t)||tr(t)<0||!mr(e,t))},gr=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},_r=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=nr(a,i),s=i?_r(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(rr).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},vr=function(e,t){return t||={},_r(t.getShadowRoot?$n([e],t.includeContainer,{filter:hr.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:gr}):Qn(e,t.includeContainer,hr.bind(null,t)))},yr=function(e,t){return t||={},t.getShadowRoot?$n([e],t.includeContainer,{filter:mr.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Qn(e,t.includeContainer,mr.bind(null,t))},br=Gn.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),xr=function(e,t){if(t||={},!e)throw Error(`No node provided`);return Jn.call(e,br)!==!1&&mr(t,e)};function Sr(e,t){let n=t.getRootNode();for(;e;){let t=e.getRootNode();if(t===n)return e;e=t!==e&&`host`in t?t.host:null}return null}var Cr=class e{#e=!1;#t=null;#n=Wn.getInstance();#r=[];#i;constructor(e){this.#i=e}get paused(){return this.#e}pause(){this.#e=!0}resume(){this.#e=!1}#a(){for(let e of this.#r)e();this.#r=[]}mount(e){this.#t!==e&&(this.#t&&this.unmount(),this.#t=e,this.#n.register(this),this.#c(),this.#o())}unmount(){this.#t&&=(this.#a(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),null)}#o(){if(!this.#t)return;let e=new CustomEvent(`focusScope.onOpenAutoFocus`,{bubbles:!1,cancelable:!0});this.#i.onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!this.#t||this.#e||!this.#n.isActiveScope(this)||this.#t.contains(Sr(Vt(this.#t.ownerDocument),this.#t)))return;let e=this.#u();e?(e.focus({preventScroll:!0}),this.#n.setFocusMemory(this,e)):this.#t.focus({preventScroll:!0})})}#s(){let e=new CustomEvent(`focusScope.onCloseAutoFocus`,{bubbles:!1,cancelable:!0});if(this.#i.onCloseAutoFocus.current?.(e),!e.defaultPrevented){let e=this.#n.getPreFocusMemory(this);if(e&&e.isConnected)try{e.focus({preventScroll:!0})}catch{document.body.focus()}}}#c(){if(!this.#t||!this.#i.trap.current)return;let e=this.#t,t=e.ownerDocument;this.#r.push(s(t,`focusin`,t=>{if(this.#e||!this.#n.isActiveScope(this))return;let n=Sr(t.composedPath()[0],e);if(n!==null&&e.contains(n))this.#n.setFocusMemory(this,n);else{let n=this.#n.getFocusMemory(this);if(n&&e.contains(n)&&xr(n))t.preventDefault(),n.focus({preventScroll:!0});else{let t=this.#u(),n=this.#d()[0];(t||n||e).focus({preventScroll:!0})}}},{capture:!0}),s(e,`keydown`,e=>{if(!this.#i.loop||this.#e||e.key!==`Tab`||!this.#n.isActiveScope(this))return;let n=this.#l();if(n.length===0)return;let r=n[0],i=n[n.length-1];!e.shiftKey&&Vt(t)===i?(e.preventDefault(),r.focus()):e.shiftKey&&Vt(t)===r&&(e.preventDefault(),i.focus())}));let n=new MutationObserver(()=>{let t=this.#n.getFocusMemory(this);if(t&&!e.contains(t)){let t=this.#u(),n=this.#d()[0],r=t||n;r?(r.focus({preventScroll:!0}),this.#n.setFocusMemory(this,r)):e.focus({preventScroll:!0})}});n.observe(e,{childList:!0,subtree:!0}),this.#r.push(()=>n.disconnect())}#l(){return this.#t?vr(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}#u(){return this.#l()[0]||null}#d(){return this.#t?yr(this.#t,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return Q([()=>t.ref.current,()=>t.enabled.current],([r,i])=>{r&&i?(n||=new e(t),n.mount(r)):n&&=(n.unmount(),null)}),kt(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};function wr(e,t){K(t,!0);let n=H(t,`enabled`,3,!1),r=H(t,`trapFocus`,3,!1),i=H(t,`loop`,3,!1),o=H(t,`onCloseAutoFocus`,3,$),s=H(t,`onOpenAutoFocus`,3,$),c=Cr.use({enabled:X(()=>n()),trap:X(()=>r()),loop:x(()=>i()),onCloseAutoFocus:X(()=>o()),onOpenAutoFocus:X(()=>s()),ref:x(()=>t.ref)});var u=f(),d=T(u);F(d,()=>t.focusScope??a,()=>({props:c.props})),l(e,u),G()}var Tr=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var Er=class e{static create(t){return new e(t)}opts;domContext;#e=$;#t=!1;#n=Tr;#r=Tr;constructor(e){this.opts=e,this.domContext=new Ht(e.ref);let t=$;Q(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([e,n,r])=>(this.#t=e,this.#n=n,this.#r=r,e&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=this.#i()),()=>{this.#t=!1,t(),this.#s(),globalThis.bitsTextSelectionLayers.delete(this)}))}#i(){return pt(s(this.domContext.getDocument(),`pointerdown`,this.#o),s(this.domContext.getDocument(),`pointerup`,this.#a))}#a=e=>{this.#s(),e.defaultPrevented||this.#r(e)};#o=e=>{if(!this.#t)return;this.#s();let t=this.opts.ref.current,n=e.target;Qt(t)&&Qt(n)&&Ar(this)&&zt(t,n)&&(this.#n(e),e.defaultPrevented||(this.#e=Or(t,this.domContext.getDocument().body)))};#s=()=>{this.#e(),this.#e=$}},Dr=e=>e.style.userSelect||e.style.webkitUserSelect;function Or(e,t){let n=Dr(t),r=Dr(e);return kr(t,`none`),kr(e,`text`),()=>{kr(t,n),kr(e,r)}}function kr(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Ar(e){let t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;let n=t.at(-1);return n?n[0]===e:!1}function jr(e,t){K(t,!0);let n=H(t,`preventOverflowTextSelection`,3,!0),r=H(t,`onPointerDown`,3,$),i=H(t,`onPointerUp`,3,$);Er.create({id:X(()=>t.id),onPointerDown:X(()=>r()),onPointerUp:X(()=>i()),enabled:X(()=>t.enabled&&n()),ref:x(()=>t.ref)});var o=f(),s=T(o);F(s,()=>t.children??a),l(e,o),G()}globalThis.bitsIdCounter??={current:0};function Mr(e=`bits`){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}var Nr=class{#e;#t=0;#n=j();#r;constructor(e){this.#e=e}#i(){--this.#t,this.#r&&this.#t<=0&&(this.#r(),U(this.#n,void 0),this.#r=void 0)}get(...t){return this.#t+=1,d(this.#n)===void 0&&(this.#r=e(()=>{U(this.#n,this.#e(...t),!0)})),de(()=>()=>{this.#i()}),d(this.#n)}},Pr=new wt,Fr=new Map,Ir=[`padding-right`,`margin-right`,`overflow`,`overflow-x`,`overflow-y`,`pointer-events`,`--scrollbar-width`],Lr=null,Rr=!1,zr=new Set,Br=null,Vr=null,Hr=!1;function Ur(e,t,n){e.setProperty(t,n),zr.add(t),t===`overflow`&&(zr.add(`overflow-x`),zr.add(`overflow-y`))}var Wr=X(()=>{for(let e of Pr.values())if(e)return!0;return!1}),Gr=X(()=>{for(let[e,t]of Pr)if(t&&(Fr.get(e)?.()??!0))return!0;return!1}),Kr=null,qr=new Nr(()=>{function e(e,t){let n=Lr?.get(t);n?.value?e.body.style.setProperty(t,n.value,n.priority):e.body.style.removeProperty(t)}function t(t){for(let n of Ir)zr.has(n)&&e(t,n);!Rr&&t.body.style.length===0&&t.body.removeAttribute(`style`),Lr=null,zr.clear(),Xt&&Br?.()}function n(t){zr.delete(`pointer-events`)&&e(t,`pointer-events`)}function r(){Vr!==null&&(window.clearTimeout(Vr),Vr=null)}function i(e,t){r(),Hr=!0,Kr=Date.now();let n=Kr,i=()=>{Vr=null,Kr===n&&(Yr(Pr)?Hr=!1:(Hr=!1,t()))},a=e===null?24:e;Vr=window.setTimeout(i,a)}function a(){if(Lr===null&&Pr.size===0&&!Hr){Rr=document.body.hasAttribute(`style`),Lr=new Map;for(let e of Ir)Lr.set(e,{value:document.body.style.getPropertyValue(e),priority:document.body.style.getPropertyPriority(e)})}}return Q(()=>Wr.current,()=>{if(!Wr.current)return;a(),Hr=!1;let e=getComputedStyle(document.documentElement),t=getComputedStyle(document.body),n=e.scrollbarGutter?.includes(`stable`)||t.scrollbarGutter?.includes(`stable`),r=window.innerWidth-document.documentElement.clientWidth,i={padding:Number.parseInt(t.paddingRight??`0`,10)+r,margin:Number.parseInt(t.marginRight??`0`,10)};r>0&&!n&&(Ur(document.body.style,`padding-right`,`${i.padding}px`),Ur(document.body.style,`margin-right`,`${i.margin}px`),Ur(document.body.style,`--scrollbar-width`,`${r}px`)),Ur(document.body.style,`overflow`,`hidden`),Xt&&(Br=s(document,`touchmove`,e=>{e.target===document.documentElement&&(e.touches.length>1||e.preventDefault())},{passive:!1})),At(()=>{Gr.current&&Ur(document.body.style,`pointer-events`,`none`),Ur(document.body.style,`overflow`,`hidden`)})}),Q(()=>Gr.current,()=>{Wr.current&&At(()=>{Wr.current&&(Gr.current?Ur(document.body.style,`pointer-events`,`none`):n(document))})},{lazy:!0}),kt(()=>()=>{Br?.()}),{get lockMap(){return Pr},resetBodyStyle:t,restorePointerEvents:n,scheduleCleanupIfNoNewLocks:i,cancelPendingCleanup:r,ensureInitialStyleCaptured:a}}),Jr=class{#e=Mr();#t;#n=()=>null;#r;locked;constructor(e,t=()=>null,n=()=>!0){this.#t=e,this.#n=t,this.#r=qr.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),Fr.set(this.#e,n),this.#r.lockMap.set(this.#e,this.#t??!1),this.locked=X(()=>this.#r.lockMap.get(this.#e)??!1,e=>this.#r.lockMap.set(this.#e,e)),kt(()=>{if(this.#r.lockMap.delete(this.#e),Fr.delete(this.#e),Yr(this.#r.lockMap))return;let e=this.#n(),t=document;this.#r.restorePointerEvents(t),this.#r.scheduleCleanupIfNoNewLocks(e,()=>{this.#r.resetBodyStyle(t)})}))}};function Yr(e){for(let[t,n]of e)if(n)return!0;return!1}function Xr(e,t){K(t,!0);let n=H(t,`preventScroll`,3,!0),r=H(t,`restoreScrollDelay`,3,null),i=H(t,`blockPointer`,3,()=>!0);x(()=>{n()&&new Jr(n(),()=>r(),i())}),G()}var Zr=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`forceMount`,`child`,`children`,`ref`]),Qr=h(`<div><!></div>`);function $r(e,n){let r=t();K(n,!0);let o=H(n,`id`,19,()=>nn(r)),s=H(n,`forceMount`,3,!1),c=H(n,`ref`,15,null),u=L(n,Zr),p=dn.create({id:X(()=>o()),ref:X(()=>c(),e=>c(e))}),m=z(()=>Z(u,p.props));var h=f(),g=T(h),_=e=>{var t=f(),r=T(t),o=e=>{var t=f(),r=T(t);{let e=z(()=>({props:Z(d(m)),...p.snippetProps}));F(r,()=>n.child,()=>d(e))}l(e,t)},s=e=>{var t=Qr();D(t,e=>({...e}),[()=>Z(d(m))]);var r=P(t);F(r,()=>n.children??a,()=>p.snippetProps),v(t),l(e,t)};i(r,e=>{n.child?e(o):e(s,-1)}),l(e,t)};i(g,e=>{(p.shouldRender||s())&&e(_)}),l(e,h),G()}var ei=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`]),ti=h(`<div><!></div>`);function ni(e,n){let r=t();K(n,!0);let o=H(n,`id`,19,()=>nn(r)),s=H(n,`ref`,15,null),c=L(n,ei),u=ln.create({id:X(()=>o()),ref:X(()=>s(),e=>s(e))}),p=z(()=>Z(c,u.props));var m=f(),h=T(m),g=e=>{var t=f(),r=T(t);F(r,()=>n.child,()=>({props:d(p)})),l(e,t)},_=e=>{var t=ti();D(t,()=>({...d(p)}));var r=P(t);F(r,()=>n.children??a),v(t),l(e,t)};i(h,e=>{n.child?e(g):e(_,-1)}),l(e,m),G()}function ri(e,t){K(t,!0);let n=H(t,`open`,15,!1),r=H(t,`onOpenChange`,3,$),i=H(t,`onOpenChangeComplete`,3,$);on.create({variant:X(()=>`dialog`),open:X(()=>n(),e=>{n(e),r()(e)}),onOpenChangeComplete:X(()=>i())});var o=f(),s=T(o);F(s,()=>t.children??a),l(e,o),G()}var ii=new Set([`$$slots`,`$$events`,`$$legacy`,`children`,`child`,`id`,`ref`,`disabled`]),ai=h(`<button><!></button>`);function oi(e,n){let r=t();K(n,!0);let o=H(n,`id`,19,()=>nn(r)),s=H(n,`ref`,15,null),c=H(n,`disabled`,3,!1),u=L(n,ii),p=sn.create({variant:X(()=>`close`),id:X(()=>o()),ref:X(()=>s(),e=>s(e)),disabled:X(()=>!!c())}),m=z(()=>Z(u,p.props));var h=f(),g=T(h),_=e=>{var t=f(),r=T(t);F(r,()=>n.child,()=>({props:d(m)})),l(e,t)},ee=e=>{var t=ai();D(t,()=>({...d(m)}));var r=P(t);F(r,()=>n.children??a),v(t),l(e,t)};i(g,e=>{n.child?e(_):e(ee,-1)}),l(e,h),G()}var si=new Set([`$$slots`,`$$events`,`$$legacy`,`id`,`children`,`child`,`ref`,`forceMount`,`onCloseAutoFocus`,`onOpenAutoFocus`,`onEscapeKeydown`,`onInteractOutside`,`trapFocus`,`preventScroll`,`preventOverflowTextSelection`,`restoreScrollDelay`,`preventBodyPointerEvents`]),ci=h(`<!> <!>`,1),li=h(`<!> <div><!></div>`,1);function ui(e,n){let r=t();K(n,!0);let o=H(n,`id`,19,()=>nn(r)),s=H(n,`ref`,15,null),c=H(n,`forceMount`,3,!1),u=H(n,`onCloseAutoFocus`,3,$),p=H(n,`onOpenAutoFocus`,3,$),m=H(n,`onEscapeKeydown`,3,$),h=H(n,`onInteractOutside`,3,$),g=H(n,`trapFocus`,3,!0),_=H(n,`preventScroll`,3,!0),ee=H(n,`preventOverflowTextSelection`,3,!0),y=H(n,`restoreScrollDelay`,3,null),te=H(n,`preventBodyPointerEvents`,3,!0),b=L(n,si),x=un.create({id:X(()=>o()),ref:X(()=>s(),e=>s(e))}),S=()=>te()||!x.root.overlayNode,C=z(()=>Z(b,x.props));var w=f(),E=T(w),O=e=>{wr(e,{get ref(){return x.opts.ref},loop:!0,get trapFocus(){return g()},get enabled(){return x.root.opts.open.current},get onOpenAutoFocus(){return p()},get onCloseAutoFocus(){return u()},focusScope:(e,t)=>{let r=()=>(t?.()).props;Un(e,B(()=>d(C),{get enabled(){return x.root.opts.open.current},get ref(){return x.opts.ref},onEscapeKeydown:e=>{m()(e),e.defaultPrevented||x.root.handleClose()},children:(e,t)=>{Bn(e,B(()=>d(C),{get ref(){return x.opts.ref},get enabled(){return x.root.opts.open.current},onInteractOutside:e=>{h()(e),e.defaultPrevented||x.root.handleClose()},children:(e,t)=>{jr(e,B(()=>d(C),{get preventOverflowTextSelection(){return ee()},get ref(){return x.opts.ref},get enabled(){return x.root.opts.open.current},children:(e,t)=>{var o=f(),s=T(o),c=e=>{var t=ci(),a=T(t),o=e=>{Xr(e,{get preventScroll(){return _()},get restoreScrollDelay(){return y()},blockPointer:S})};i(a,e=>{x.root.opts.open.current&&e(o)});var s=V(a,2);{let e=z(()=>({props:Z(d(C),r()),...x.snippetProps}));F(s,()=>n.child,()=>d(e))}l(e,t)},u=e=>{var t=li(),i=T(t);Xr(i,{get preventScroll(){return _()},blockPointer:S});var o=V(i,2);D(o,e=>({...e}),[()=>Z(d(C),r())]);var s=P(o);F(s,()=>n.children??a),v(o),l(e,t)};i(s,e=>{n.child?e(c):e(u,-1)}),l(e,o)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};i(E,e=>{(x.shouldRender||c())&&e(O)}),l(e,w),G()}var di=new Set([`$$slots`,`$$events`,`$$legacy`,`open`]);function fi(e,t){K(t,!0);let n=H(t,`open`,15,!1),r=L(t,di);var i=f(),a=T(i);g(a,()=>ri,(e,t)=>{t(e,B(()=>r,{get open(){return n()},set open(e){n(e)}}))}),l(e,i),G()}var pi=new Set([`$$slots`,`$$events`,`$$legacy`]);function mi(e,t){let n=L(t,pi);var r=f(),i=T(r);g(i,()=>Sn,(e,t)=>{t(e,B(()=>n))}),l(e,r)}var hi=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function gi(e,t){K(t,!0);let n=H(t,`ref`,15,null),r=L(t,hi);var i=f(),a=T(i);{let e=z(()=>q(`text-lg leading-none font-semibold`,t.class));g(a,()=>mn,(t,i)=>{i(t,B({"data-slot":`dialog-title`,get class(){return d(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}l(e,i),G()}var _i=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`children`]),vi=h(`<div><!></div>`);function yi(e,t){K(t,!0);let n=H(t,`ref`,15,null),r=L(t,_i);var i=vi();D(i,e=>({"data-slot":`dialog-header`,class:e,...r}),[()=>q(`flex flex-col gap-2 text-center sm:text-start`,t.class)]);var o=P(i);F(o,()=>t.children??a),v(i),N(i,e=>n(e),()=>n()),l(e,i),G()}var bi=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function xi(e,t){K(t,!0);let n=H(t,`ref`,15,null),r=L(t,bi);var i=f(),a=T(i);{let e=z(()=>q(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50`,t.class));g(a,()=>$r,(t,i)=>{i(t,B({"data-slot":`dialog-overlay`,get class(){return d(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}l(e,i),G()}var Si=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`,`portalProps`,`children`,`showCloseButton`]),Ci=h(`<span aria-hidden="true">×</span> <span class="sr-only">Close</span>`,1),wi=h(`<!> <!>`,1);function Ti(e,t){K(t,!0);let n=H(t,`ref`,15,null),r=H(t,`showCloseButton`,3,!0),o=L(t,Si);mi(e,B(()=>t.portalProps,{children:(e,s)=>{var c=wi(),u=T(c);g(u,()=>xi,(e,t)=>{t(e,{})});var p=V(u,2);{let e=z(()=>q(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,t.class));g(p,()=>ui,(s,c)=>{c(s,B({"data-slot":`dialog-content`,get class(){return d(e)}},()=>o,{get ref(){return n()},set ref(e){n(e)},children:(e,n)=>{var o=wi(),s=T(o);F(s,()=>t.children??a);var c=V(s,2),u=e=>{var t=f(),n=T(t);g(n,()=>oi,(e,t)=>{t(e,{class:`ring-offset-background focus:ring-ring absolute end-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:(e,t)=>{var n=Ci();fe(2),l(e,n)},$$slots:{default:!0}})}),l(e,t)};i(c,e=>{r()&&e(u)}),l(e,o)},$$slots:{default:!0}}))})}l(e,c)},$$slots:{default:!0}})),G()}var Ei=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`class`]);function Di(e,t){K(t,!0);let n=H(t,`ref`,15,null),r=L(t,Ei);var i=f(),a=T(i);{let e=z(()=>q(`text-muted-foreground text-sm`,t.class));g(a,()=>ni,(t,i)=>{i(t,B({"data-slot":`dialog-description`,get class(){return d(e)}},()=>r,{get ref(){return n()},set ref(e){n(e)}}))})}l(e,i),G()}var Oi=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`]);function ki(e,t){K(t,!0);let n=H(t,`ref`,15,null),r=L(t,Oi);var i=f(),a=T(i);g(a,()=>oi,(e,t)=>{t(e,B({"data-slot":`dialog-close`},()=>r,{get ref(){return n()},set ref(e){n(e)}}))}),l(e,i),G()}var Ai=new Set([`$$slots`,`$$events`,`$$legacy`,`ref`,`value`,`type`,`files`,`class`,`data-slot`]),ji=h(`<input/>`);function Mi(e,t){K(t,!0);let n=H(t,`ref`,15,null),r=H(t,`value`,15),a=H(t,`files`,15),o=H(t,`data-slot`,3,`input`),s=L(t,Ai);var c=f(),u=T(c),d=e=>{var i=ji();D(i,e=>({"data-slot":o(),class:e,type:`file`,...s}),[()=>q(`selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 pt-1.5 text-sm font-medium shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,t.class)],void 0,void 0,void 0,!0),N(i,e=>n(e),()=>n()),w(i,a),le(i,r),l(e,i)},p=e=>{var i=ji();D(i,e=>({"data-slot":o(),class:e,type:t.type,...s}),[()=>q(`border-input bg-background selection:bg-primary dark:bg-input/30 selection:text-primary-foreground ring-offset-background placeholder:text-muted-foreground flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,`focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,t.class)],void 0,void 0,void 0,!0),N(i,e=>n(e),()=>n()),le(i,r),l(e,i)};i(u,e=>{t.type===`file`?e(d):e(p,-1)}),l(e,c),G()}var Ni=h(`<span aria-hidden="true">×</span>`),Pi=h(`<!> <!>`,1),Fi=h(`<option></option>`),Ii=h(`<span data-tone="danger"> </span>`),Li=h(`<p data-tone="danger" role="alert"><code class="font-mono"> </code> </p>`),Ri=h(`<option> </option>`),zi=h(`<li><code class="font-mono"> </code> </li>`),Bi=h(`<details class="text-[12px] text-muted-foreground"><summary> </summary> <ul></ul></details>`),Vi=h(`<span data-tone="danger" aria-hidden="true">*</span>`),Hi=h(`<input type="checkbox" class="size-4 accent-primary"/>`),Ui=h(`<select><option>—</option><!></select>`),Wi=h(`<span class="text-[11px] text-muted-foreground"> </span>`),Gi=h(`<label class="flex flex-col gap-1 text-[12px] text-muted-foreground"><span> <!> <!></span> <!> <!> <!></label>`),Ki=h(`<!> <div class="grid grid-cols-1 gap-2.5 sm:grid-cols-2"><label class="flex flex-col gap-1 text-[12px] text-muted-foreground"><span>Isolation</span> <select><option>none</option><option>worktree</option></select></label> <label class="flex flex-col gap-1 text-[12px] text-muted-foreground"><span>Executor</span> <select><option>server default</option><!></select></label></div>`,1),qi=h(`<label class="flex flex-col gap-1 text-[12px] text-muted-foreground"><span>Playbook</span> <select></select></label> <!> <!>`,1),Ji=h(`<p class="m-0 text-[11px] text-muted-foreground">Enter a repository directory and press Load to list its playbooks.</p>`),Yi=h(`<!> <!> <form class="flex flex-col gap-3 px-4 pt-3.5 pb-4"><label class="flex flex-col gap-1 text-[12px] text-muted-foreground"><span>Working directory</span> <div class="flex gap-1.5"><!> <!></div> <datalist id="argos-cwd-recents"></datalist> <!></label> <!> <!> <!> <footer class="flex justify-end gap-2 pt-1"><!> <!></footer></form>`,1);function Xi(e,t){K(t,!0);let r=H(t,`api`,19,be),a=j(``),o=j(O([])),s=j(!1),c=j(O([])),m=j(null),h=j(O([])),_=j(``),b=j(O({})),x=j(`none`),C=j(``),w=j(O([])),E=j(O({})),D=j(null),k=j(!1),M=j(O(Se())),ie=j(null),N=z(()=>d(c).find(e=>e.id===d(_))??null),ae=`h-9 rounded-md border border-input bg-background px-3 text-sm text-foreground`;function F(){let e=we();U(o,e,!0),U(a,t.initial?.cwd??e[0]??``,!0),U(c,[],!0),U(m,null),U(h,[],!0),U(_,t.initial?.playbookId??``,!0),U(b,{},!0),U(x,`none`),U(C,``),U(w,[],!0),U(E,{},!0),U(D,null),U(k,!1),U(M,Se(),!0)}async function I(){let e=d(a).trim();if(e===``)U(m,{code:`invalid_request`,message:`Enter a working directory first.`},!0);else{U(s,!0),U(m,null);try{let t=await r().listPlaybooks(e);U(c,t.playbooks,!0),U(h,t.errors,!0),d(_)!==``&&!d(c).some(e=>e.id===d(_))&&U(_,d(c)[0]?.id??``,!0),d(_)===``&&U(_,d(c)[0]?.id??``,!0),L()}catch(e){let t=ge(e);U(m,{code:t.code,message:t.message},!0)}finally{U(s,!1)}}}function L(){let e=d(c).find(e=>e.id===d(_));if(e!==void 0){U(b,xe(e.inputs),!0);for(let[e,n]of Object.entries(t.initial?.inputs??{}))d(b)[e]=typeof n==`boolean`?n:String(n);U(x,e.isolation??`none`,!0),U(C,e.executor??``,!0),U(o,Ee(d(o),d(a)),!0),Te(d(o))}}function ce(e){U(_,e.currentTarget.value,!0),L()}function le(e){return d(E)[e]}async function B(e){if(e.preventDefault(),d(N)===null||d(k))return;let n=Ce({playbook:d(N),cwd:d(a),values:d(b),isolation:d(x),...d(C)===``?{}:{executor:d(C)}});if(U(E,n.ok?{}:n.errors,!0),!n.ok)return;let i={...n.request,clientRequestId:d(M)};U(k,!0),U(D,null);try{let e=await r().startRun(i);U(o,Ee(d(o),d(a)),!0),Te(d(o)),t.onStarted(e.runId)}catch(e){let t=ge(e);U(D,{code:t.code,message:t.message},!0)}finally{U(k,!1)}}let pe=!1;de(()=>{t.open?pe||(pe=!0,F(),d(a).trim()!==``&&I(),u().then(()=>{d(ie)?.focus()}),r().info().then(e=>{U(w,(e.executors??[]).map(e=>e.id),!0)}).catch(()=>{U(w,[],!0)})):pe=!1});function q(e){return e.type===`boolean`?`boolean`:e.type===`number`?`number`:e.type===`enum`||e.values!==void 0&&e.values.length>0?`enum`:`text`}var Y=f(),De=T(Y);g(De,()=>fi,(e,r)=>{r(e,{get open(){return t.open},onOpenChange:e=>{e||t.onClose()},children:(e,r)=>{var u=f(),O=T(u);g(O,()=>Ti,(e,r)=>{r(e,{class:`max-h-[calc(100vh-4rem)] w-full max-w-[620px] gap-0 overflow-y-auto bg-card p-0 text-card-foreground sm:max-w-[620px]`,showCloseButton:!1,children:(e,r)=>{var u=Yi(),f=T(u);g(f,()=>yi,(e,t)=>{t(e,{class:`flex-row items-center justify-between gap-2 border-b border-border px-4 py-3 text-start`,children:(e,t)=>{var n=Pi(),r=T(n);g(r,()=>gi,(e,t)=>{t(e,{class:`text-[15px] font-semibold`,children:(e,t)=>{fe();var n=y(`Run workflow`);l(e,n)},$$slots:{default:!0}})});var i=V(r,2);g(i,()=>ki,(e,t)=>{t(e,{class:`inline-flex size-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground`,"aria-label":`Close`,children:(e,t)=>{var n=Ni();l(e,n)},$$slots:{default:!0}})}),l(e,n)},$$slots:{default:!0}})});var O=V(f,2);g(O,()=>Di,(e,t)=>{t(e,{class:`sr-only`,children:(e,t)=>{fe();var n=y(`List a repository's playbooks and start one.`);l(e,n)},$$slots:{default:!0}})});var j=V(O,2),M=P(j),F=V(P(M),2),L=P(F);Mi(L,{list:`argos-cwd-recents`,placeholder:`/absolute/path/to/repo`,spellcheck:`false`,autocomplete:`off`,get ref(){return d(ie)},set ref(e){U(ie,e,!0)},get value(){return d(a)},set value(e){U(a,e,!0)}});var H=V(L,2);ye(H,{type:`button`,variant:`secondary`,class:`shrink-0`,get disabled(){return d(s)},onclick:I,children:(e,t)=>{fe();var n=y();A(()=>p(n,d(s)?`Loading…`:`Load`)),l(e,n)},$$slots:{default:!0}}),v(F);var de=V(F,2);n(de,20,()=>d(o),e=>e,(e,t)=>{var n=Fi(),r={};A(()=>{r!==(r=t)&&(n.value=(n.__value=r)??``)}),l(e,n)}),v(de);var G=V(de,2),pe=e=>{var t=Ii(),n=R(t,!0);A(e=>{S(t,1,e),p(n,d(E).cwd)},[()=>W([`text-[12px]`,J(me,`danger`)])]),l(e,t)};i(G,e=>{d(E).cwd&&e(pe)}),v(M);var K=V(M,2),ge=e=>{var t=Li(),n=P(t),r=R(n,!0),i=V(n);v(t),A(e=>{S(t,1,e),p(r,d(m).code),p(i,` ${d(m).message??``}`)},[()=>W([`m-0 rounded-md border p-2.5 text-[13px]`,J(_e,`danger`),J(ve,`danger`),J(me,`danger`)])]),l(e,t)};i(K,e=>{d(m)!==null&&e(ge)});var be=V(K,2),xe=e=>{var t=qi(),r=T(t),a=V(P(r),2);S(a,1,W(ae)),n(a,21,()=>d(c),e=>e.id,(e,t)=>{var n=Ri(),r=R(n),i={};A(()=>{p(r,`${d(t).id??``} · ${d(t).stepCount??``} steps${d(t).inputs.length>0?` · ${d(t).inputs.length} inputs`:``}`),i!==(i=d(t).id)&&(n.value=(n.__value=i)??``)}),l(e,n)}),v(a);var o;se(a),v(r);var s=V(r,2),u=e=>{var t=Bi(),r=P(t),i=R(r),a=V(r,2);n(a,21,()=>d(h),e=>e.file,(e,t)=>{var n=zi(),r=P(n),i=R(r,!0),a=V(r);v(n),A(()=>{p(i,d(t).code),p(a,` ${d(t).file??``}`)}),l(e,n)}),v(a),v(t),A(()=>p(i,`${d(h).length??``} playbook(s) could not be loaded`)),l(e,t)};i(s,e=>{d(h).length>0&&e(u)});var f=V(s,2),m=e=>{var t=Ki(),r=T(t);n(r,17,()=>d(N).inputs,e=>e.name,(e,t)=>{var r=Gi(),a=P(r),o=P(a),s=V(o),c=e=>{var t=Vi();A(e=>S(t,1,e),[()=>W([`ml-0.5`,J(me,`danger`)])]),l(e,t)};i(s,e=>{d(t).required&&e(c)});var u=V(s,2);he(u,{variant:`outline`,class:`ml-1.5 text-[10px] uppercase`,children:(e,n)=>{fe();var r=y();A(()=>p(r,d(t).type)),l(e,r)},$$slots:{default:!0}}),v(a);var f=V(a,2),m=e=>{var n=Hi();oe(n),A(()=>ne(n,d(b)[d(t).name]===!0)),ee(`change`,n,e=>{d(b)[d(t).name]=e.currentTarget.checked}),l(e,n)},h=z(()=>q(d(t))===`boolean`),g=e=>{var r=Ui();S(r,1,W(ae));var i=P(r);i.value=i.__value=``;var a=V(i);n(a,16,()=>d(t).values??[],e=>e,(e,t)=>{var n=Ri(),r=R(n,!0),i={};A(()=>{p(r,t),i!==(i=t)&&(n.value=(n.__value=i)??``)}),l(e,n)}),v(r);var o;se(r),A(e=>{o!==(o=e)&&(r.value=(r.__value=o)??``,re(r,o))},[()=>String(d(b)[d(t).name]??``)]),ee(`change`,r,e=>{d(b)[d(t).name]=e.currentTarget.value}),l(e,r)},_=z(()=>q(d(t))===`enum`),te=e=>{{let n=z(()=>q(d(t))===`number`?`decimal`:void 0),r=z(()=>String(d(b)[d(t).name]??``)),i=z(()=>le(d(t).name)!==void 0);Mi(e,{type:`text`,get inputmode(){return d(n)},get value(){return d(r)},get"aria-invalid"(){return d(i)},oninput:e=>{d(b)[d(t).name]=e.currentTarget.value}})}};i(f,e=>{d(h)?e(m):d(_)?e(g,1):e(te,-1)});var x=V(f,2),C=e=>{var n=Wi(),r=R(n,!0);A(()=>p(r,d(t).description)),l(e,n)};i(x,e=>{d(t).description&&e(C)});var w=V(x,2),T=e=>{var n=Ii(),r=R(n,!0);A((e,t)=>{S(n,1,e),p(r,t)},[()=>W([`text-[12px]`,J(me,`danger`)]),()=>le(d(t).name)]),l(e,n)},E=z(()=>le(d(t).name));i(w,e=>{d(E)&&e(T)}),v(r),A(()=>p(o,`${d(t).name??``} `)),l(e,r)});var a=V(r,2),o=P(a),s=V(P(o),2);S(s,1,W(ae));var c=P(s);c.value=c.__value=`none`;var u=V(c);u.value=u.__value=`worktree`,v(s),se(s),v(o);var f=V(o,2),m=V(P(f),2);S(m,1,W(ae));var h=P(m);h.value=h.__value=``;var g=V(h);n(g,16,()=>d(w),e=>e,(e,t)=>{var n=Ri(),r=R(n,!0),i={};A(()=>{p(r,t),i!==(i=t)&&(n.value=(n.__value=i)??``)}),l(e,n)}),v(m),se(m),v(f),v(a),ue(s,()=>d(x),e=>U(x,e)),ue(m,()=>d(C),e=>U(C,e)),l(e,t)};i(f,e=>{d(N)!==null&&e(m)}),A(()=>{o!==(o=d(_))&&(a.value=(a.__value=o)??``,re(a,o))}),ee(`change`,a,ce),l(e,t)},Se=e=>{var t=Ji();l(e,t)};i(be,e=>{d(c).length>0?e(xe):d(s)||e(Se,1)});var Ce=V(be,2),we=e=>{var t=Li(),n=P(t),r=R(n,!0),i=V(n);v(t),A(e=>{S(t,1,e),p(r,d(D).code),p(i,` ${d(D).message??``}`)},[()=>W([`m-0 rounded-md border p-2.5 text-[13px]`,J(_e,`danger`),J(ve,`danger`),J(me,`danger`)])]),l(e,t)};i(Ce,e=>{d(D)!==null&&e(we)});var Te=V(Ce,2),Ee=P(Te);ye(Ee,{type:`button`,variant:`secondary`,get onclick(){return t.onClose},get disabled(){return d(k)},children:(e,t)=>{fe();var n=y(`Cancel`);l(e,n)},$$slots:{default:!0}});var Y=V(Ee,2);{let e=z(()=>d(k)||d(N)===null);ye(Y,{type:`submit`,get disabled(){return d(e)},children:(e,t)=>{fe();var n=y();A(()=>p(n,d(k)?`Starting…`:`Run workflow`)),l(e,n)},$$slots:{default:!0}})}v(Te),v(j),te(`submit`,j,B),l(e,u)},$$slots:{default:!0}})}),l(e,u)},$$slots:{default:!0}})}),l(e,Y),G()}c([`change`]);export{Xi as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K as e,Y as t,ct as n,ft as r,pt as i,ut as a}from"./DR13iyEP.js";function o(...e){return e.filter(Boolean).join(` `)}var s=typeof document<`u`,c=0;function l(e){return typeof e?.id==`number`||typeof e?.id==`string`&&e.id.length>0?e.id:c++}var u=class{#e=r(n([]));get toasts(){return e(this.#e)}set toasts(e){a(this.#e,e,!0)}#t=r(n([]));get heights(){return e(this.#t)}set heights(e){a(this.#t,e,!0)}#n=new Map;#r=e=>{let t=this.toasts.findIndex(t=>t.id===e);return t===-1?null:t};#i=e=>this.heights.findIndex(t=>t.toastId===e);addToast=e=>{s&&this.toasts.unshift(e)};updateToast=({id:e,data:t,type:n,message:r})=>{let i=this.toasts.findIndex(t=>t.id===e),a=this.toasts[i];this.toasts[i]={...a,...t,id:e,title:r,type:n,dismiss:!1,delete:!1,updated:!0}};markDismissed=e=>{let t=this.#r(e);if(t===null)return;let n=this.toasts[t];n&&(n.dismiss&&n.delete||(this.toasts[t]={...n,dismiss:!0,delete:!0}))};scheduleRemoval=(e,t)=>{this.cancelRemoval(e),this.#n.set(e,setTimeout(()=>{this.#n.delete(e),this.remove(e)},t))};cancelRemoval=e=>{let t=this.#n.get(e);t!==void 0&&(clearTimeout(t),this.#n.delete(e))};create=e=>{let{message:n,...r}=e,i=l(e),a=e.dismissible===void 0?e.dismissable===void 0||e.dismissable:e.dismissible,o=e.type===void 0?`default`:e.type;return t(()=>{this.cancelRemoval(i);let t=this.toasts.find(e=>e.id===i);t?.dismiss||t?.delete?(this.remove(i),this.addToast({...r,id:i,title:n,dismissible:a,type:o,updated:!0})):t?this.updateToast({id:i,data:e,type:o,message:n,dismissible:a}):this.addToast({...r,id:i,title:n,dismissible:a,type:o})}),i};dismiss=e=>(t(()=>{if(e===void 0){this.toasts=this.toasts.map(e=>e.dismiss?e:{...e,dismiss:!0});return}let t=this.toasts.findIndex(t=>t.id===e);this.toasts[t]&&(this.toasts[t]={...this.toasts[t],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}let t=this.#r(e);if(t!==null)return this.toasts.splice(t,1),e};message=(e,t)=>this.create({...t,type:`default`,message:e});error=(e,t)=>this.create({...t,type:`error`,message:e});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});loading=(e,t)=>this.create({...t,type:`loading`,message:e});promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:typeof t.loading==`string`?t.loading:t.loading()}));let r=e instanceof Promise?e:e(),i=n!==void 0;return r.then(e=>{if(typeof e==`object`&&e&&`ok`in e&&typeof e.ok==`boolean`&&!e.ok){i=!1;let t=d(e);this.create({id:n,type:`error`,message:t})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?t.success(e):t.success;this.create({id:n,type:`success`,message:r})}}).catch(e=>{if(t.error!==void 0){i=!1;let r=typeof t.error==`function`?t.error(e):t.error;this.create({id:n,type:`error`,message:r})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally?.()}),n};custom=(e,t)=>{let n=l(t);return this.create({component:e,...t,id:n}),n};removeHeight=e=>{this.heights=this.heights.filter(t=>t.toastId!==e)};setHeight=e=>{t(()=>{let t=this.#i(e.toastId);if(t!==-1){this.heights[t]=e;return}let n=new Map(this.toasts.map((e,t)=>[e.id,t])),r=n.get(e.toastId)??-1,i=this.heights.findIndex(e=>(n.get(e.toastId)??1/0)>r);i===-1?this.heights.push(e):this.heights.splice(i,0,e)})};reset=()=>{this.toasts=[],this.heights=[],this.#n.forEach(e=>clearTimeout(e)),this.#n.clear()}};function d(e){return e&&typeof e==`object`&&`status`in e?`HTTP error! Status: ${e.status}`:`Error! ${e}`}var f=new u;function p(e,t){return f.message(e,t)}var m=class{#e=i(()=>f.toasts.filter(e=>!e.dismiss));get toasts(){return e(this.#e)}},h=Object.assign(p,{success:f.success,info:f.info,warning:f.warning,error:f.error,custom:f.custom,message:f.message,promise:f.promise,dismiss:f.dismiss,loading:f.loading,getActiveToasts:()=>f.toasts.filter(e=>!e.dismiss)});function g(e,t){if(e.type===`boolean`)return t===void 0?e.required?{error:`${e.name} is required`}:{}:{value:t===!0||t===`true`};let n=typeof t==`number`?String(t):typeof t==`string`?t.trim():``;if(n===``)return e.required?{error:`${e.name} is required`}:{};switch(e.type){case`number`:{let t=Number(n);return Number.isFinite(t)?{value:t}:{error:`${e.name} must be a number`}}case`enum`:return e.values!==void 0&&!e.values.includes(n)?{error:`${e.name} must be one of ${e.values.join(`, `)}`}:{value:n};case`string`:return{value:n}}}function _(e){let t={},n=e.cwd.trim();n===``&&(t.cwd=`a working directory is required`);let r={};for(let n of e.playbook.inputs){let i=g(n,e.values[n.name]);i.error===void 0?i.value!==void 0&&(r[n.name]=i.value):t[n.name]=i.error}return Object.keys(t).length>0?{ok:!1,errors:t}:{ok:!0,request:{playbookId:e.playbook.id,cwd:n,...Object.keys(r).length===0?{}:{inputs:r},...e.isolation===void 0?{}:{isolation:{mode:e.isolation}},...e.executor===void 0?{}:{executor:e.executor}}}}function v(e){let t={};for(let n of e)n.type===`boolean`?t[n.name]=n.default===!0:n.default===void 0?t[n.name]=``:t[n.name]=String(n.default);return t}function y(e=Math.random){let t=Math.floor(e()*(2**53-1));return`ui-${Date.now().toString(36)}-${t.toString(36)}`}export{h as a,m as i,v as n,f as o,y as r,o as s,_ as t};
|