@aindy/ui-kit 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { jsx as w, jsxs as B, Fragment as Nr } from "react/jsx-runtime";
2
2
  import * as f from "react";
3
- import { createContext as wn, useContext as vn, useState as J, useMemo as et, useEffect as Oe, useRef as vt, useLayoutEffect as Pr, useCallback as tt } from "react";
3
+ import { createContext as wn, useContext as vn, useState as J, useMemo as et, useEffect as ke, useRef as Et, useLayoutEffect as Pr, useCallback as tt } from "react";
4
4
  import { Outlet as En, NavLink as _r, useLocation as $r, Navigate as jt } from "react-router-dom";
5
5
  import * as An from "react-dom";
6
- function La(e) {
6
+ function Ma(e) {
7
7
  return Array.isArray(e) ? e : e == null ? [] : [];
8
8
  }
9
9
  function Yt(e, t) {
10
10
  return Array.isArray(e) ? e.map(t) : (console.warn("safeMap prevented crash. Value:", e), []);
11
11
  }
12
- const Kt = "http://localhost:8000".replace(/\/$/, ""), kt = "token", Nt = "aindy_token", Cn = globalThis.__AINDY_APP_VERSION_OVERRIDE__ || "1.0.4", Ir = /* @__PURE__ */ new Set([
12
+ const Kt = "".replace(/\/$/, ""), Nt = "token", Pt = "aindy_token", Cn = globalThis.__AINDY_APP_VERSION_OVERRIDE__ || "1.0.6", Ir = /* @__PURE__ */ new Set([
13
13
  "agents",
14
14
  "allowed_auto_grant_tools",
15
15
  "allowed_capabilities",
@@ -51,44 +51,44 @@ class Z extends Error {
51
51
  super(n), this.name = "ApiError", this.status = t, this.body = r;
52
52
  }
53
53
  }
54
- function Ma(e, t) {
54
+ function za(e, t) {
55
55
  return function(...n) {
56
56
  return t(...n).catch((r) => {
57
57
  throw r instanceof Z && (r.domain = e), r;
58
58
  });
59
59
  };
60
60
  }
61
- function Pt(e) {
61
+ function _t(e) {
62
62
  if (e && typeof e == "object" && "data" in e) {
63
63
  if ("error" in e && e.error)
64
64
  throw new Z(200, e.error, e);
65
- return e.data ?? e;
65
+ return e.data !== void 0 ? e.data : e;
66
66
  }
67
67
  return e;
68
68
  }
69
- function Ue(e) {
69
+ function Ge(e) {
70
70
  if (Array.isArray(e))
71
- return Yt(e, (n) => Ue(n));
71
+ return Yt(e, (n) => Ge(n));
72
72
  if (!e || typeof e != "object")
73
73
  return e;
74
74
  const t = {};
75
75
  for (const [n, r] of Object.entries(e)) {
76
76
  if (Ir.has(n)) {
77
- t[n] = Array.isArray(r) ? Yt(r, (o) => Ue(o)) : [];
77
+ t[n] = Array.isArray(r) ? Yt(r, (o) => Ge(o)) : [];
78
78
  continue;
79
79
  }
80
- t[n] = Ue(r);
80
+ t[n] = Ge(r);
81
81
  }
82
82
  return t;
83
83
  }
84
- function Ne() {
85
- return localStorage.getItem(kt) || localStorage.getItem(Nt) || "";
84
+ function we() {
85
+ return localStorage.getItem(Nt) || localStorage.getItem(Pt) || "";
86
86
  }
87
87
  function Xt(e) {
88
- localStorage.setItem(kt, e), localStorage.setItem(Nt, e);
88
+ localStorage.setItem(Nt, e), localStorage.setItem(Pt, e);
89
89
  }
90
- function De() {
91
- localStorage.removeItem(kt), localStorage.removeItem(Nt);
90
+ function Ue() {
91
+ localStorage.removeItem(Nt), localStorage.removeItem(Pt);
92
92
  }
93
93
  function Lr(e) {
94
94
  return /^https?:\/\//i.test(e) ? e : Kt ? `${Kt}${e}` : e;
@@ -101,8 +101,8 @@ function Sn(e) {
101
101
  new CustomEvent("aindy:version-warning", { detail: { message: e } })
102
102
  );
103
103
  }
104
- async function Ve(e, t = {}) {
105
- const n = Lr(e), r = Ne(), o = new AbortController(), { _isRetry: s = !1, ...i } = t, l = typeof window < "u" ? setTimeout(() => o.abort(), 3e4) : null;
104
+ async function $e(e, t = {}) {
105
+ const n = Lr(e), r = we(), o = new AbortController(), { _isRetry: s = !1, ...i } = t, l = typeof window < "u" ? setTimeout(() => o.abort(), 3e4) : null;
106
106
  i.signal && (i.signal.aborted ? o.abort() : i.signal.addEventListener("abort", () => o.abort(), { once: !0 }));
107
107
  try {
108
108
  const c = await fetch(n, {
@@ -118,7 +118,7 @@ async function Ve(e, t = {}) {
118
118
  if (a && typeof window < "u" && (console.warn("[API Version Warning]", a), Sn(a)), c.status === 503) {
119
119
  const u = parseInt(c.headers.get("Retry-After") || "0", 10);
120
120
  if (u > 0 && u <= 60 && !s)
121
- return await new Promise((m) => setTimeout(m, u * 1e3)), Ve(e, { ...i, _isRetry: !0 });
121
+ return await new Promise((m) => setTimeout(m, u * 1e3)), $e(e, { ...i, _isRetry: !0 });
122
122
  }
123
123
  if (!c.ok) {
124
124
  const u = await c.text(), m = new Z(
@@ -130,7 +130,7 @@ async function Ve(e, t = {}) {
130
130
  }
131
131
  const d = await c.text();
132
132
  try {
133
- return Ue(JSON.parse(d));
133
+ return Ge(JSON.parse(d));
134
134
  } catch {
135
135
  return d;
136
136
  }
@@ -141,12 +141,12 @@ async function Ve(e, t = {}) {
141
141
  }
142
142
  }
143
143
  function Mr(e, t = {}) {
144
- return Ve(e, {
144
+ return $e(e, {
145
145
  ...t
146
146
  });
147
147
  }
148
- function za(e, t = {}) {
149
- const n = Ne();
148
+ function Da(e, t = {}) {
149
+ const n = we();
150
150
  let r = !1;
151
151
  if (n)
152
152
  try {
@@ -160,7 +160,7 @@ function za(e, t = {}) {
160
160
  );
161
161
  }
162
162
  async function Tn(e, t = {}) {
163
- const n = Ne(), r = new AbortController(), { _isRetry: o = !1, ...s } = t, i = typeof window < "u" ? setTimeout(() => r.abort(), 3e4) : null;
163
+ const n = we(), r = new AbortController(), { _isRetry: o = !1, ...s } = t, i = typeof window < "u" ? setTimeout(() => r.abort(), 3e4) : null;
164
164
  s.signal && (s.signal.aborted ? r.abort() : s.signal.addEventListener("abort", () => r.abort(), { once: !0 }));
165
165
  try {
166
166
  const l = await fetch(e, {
@@ -188,7 +188,7 @@ async function Tn(e, t = {}) {
188
188
  }
189
189
  const a = await l.text();
190
190
  try {
191
- return Ue(JSON.parse(a));
191
+ return Ge(JSON.parse(a));
192
192
  } catch {
193
193
  return a;
194
194
  }
@@ -198,38 +198,53 @@ async function Tn(e, t = {}) {
198
198
  i && clearTimeout(i);
199
199
  }
200
200
  }
201
- function Da(e, t = {}) {
201
+ function Ua(e, t = {}) {
202
202
  return Tn(e, {
203
203
  ...t
204
204
  });
205
205
  }
206
- const g = "", F = `${g}/apps`, ie = `${g}/platform`, zr = Object.freeze({
206
+ const g = "", D = `${g}/apps`, ne = `${g}/platform`, Fa = Object.freeze({
207
+ // OPER-DEFER-001 CLOSED 2026-06-15 — /platform/flows/strategies is served by the runtime
208
+ // (AINDY/routes/platform/flows_router.py). Flag kept for NavLink parity; now true.
209
+ OPERATOR_FLOW_STRATEGIES: !0,
210
+ // TODO: OPER-DEFER-002 — /automation/logs not yet served (lives in monolith today)
211
+ OPERATOR_AUTOMATION_LOGS: !1,
212
+ // SCHED-001 / SCHED-002 / SCHED-003 — scheduler status flow fails in platform-only
213
+ // profile (tasks domain absent); keep deferred until tasks domain is available
214
+ OPERATOR_SCHEDULER_STATUS: !1,
215
+ // RIPPLE-ROUTES-001 — load-trace issues GET /rippletrace/{id} (bare monolith path,
216
+ // no /platform prefix, unserved runtime-only); full viewer is monolith pending integration
217
+ RIPPLETRACE_VIEWER: !1
218
+ }), zr = Object.freeze({
207
219
  LOGIN: `${g}/auth/login`,
208
- REGISTER: `${g}/auth/register`
220
+ REGISTER: `${g}/auth/register`,
221
+ LOGOUT: `${g}/auth/logout`
209
222
  }), Dr = Object.freeze({
210
223
  LIST: `${g}/tasks/list`,
211
224
  CREATE: `${g}/tasks/create`,
212
225
  COMPLETE: `${g}/tasks/complete`,
213
226
  START: `${g}/tasks/start`
214
- }), Fr = Object.freeze({
227
+ }), Ur = Object.freeze({
215
228
  ANALYZE: `${g}/arm/analyze`,
216
229
  GENERATE: `${g}/arm/generate`,
217
230
  LOGS: `${g}/arm/logs`,
218
231
  CONFIG: `${g}/arm/config`,
219
232
  METRICS: `${g}/arm/metrics`,
220
233
  CONFIG_SUGGESTIONS: `${g}/arm/config/suggest`
221
- }), Ur = Object.freeze({
222
- CREATE_RUN: `${F}/agent/run`,
223
- RUNS: `${F}/agent/runs`,
224
- RUN: (e) => `${F}/agent/runs/${e}`,
225
- APPROVE: (e) => `${F}/agent/runs/${e}/approve`,
226
- REJECT: (e) => `${F}/agent/runs/${e}/reject`,
227
- STEPS: (e) => `${F}/agent/runs/${e}/steps`,
228
- EVENTS: (e) => `${F}/agent/runs/${e}/events`,
229
- TOOLS: `${F}/agent/tools`,
230
- TRUST: `${F}/agent/trust`,
231
- SUGGESTIONS: `${F}/agent/suggestions`
232
- }), Wr = Object.freeze({
234
+ }), Fr = Object.freeze({
235
+ CREATE_RUN: `${D}/agent/run`,
236
+ RUNS: `${D}/agent/runs`,
237
+ RUN: (e) => `${D}/agent/runs/${e}`,
238
+ APPROVE: (e) => `${D}/agent/runs/${e}/approve`,
239
+ REJECT: (e) => `${D}/agent/runs/${e}/reject`,
240
+ RECOVER: (e) => `${D}/agent/runs/${e}/recover`,
241
+ REPLAY: (e) => `${D}/agent/runs/${e}/replay`,
242
+ STEPS: (e) => `${D}/agent/runs/${e}/steps`,
243
+ EVENTS: (e) => `${D}/agent/runs/${e}/events`,
244
+ TOOLS: `${D}/agent/tools`,
245
+ TRUST: `${D}/agent/trust`,
246
+ SUGGESTIONS: `${D}/agent/suggestions`
247
+ }), Gr = Object.freeze({
233
248
  LINKEDIN_MANUAL: `${g}/analytics/linkedin/manual`,
234
249
  MASTERPLAN_SUMMARY: (e) => `${g}/analytics/masterplan/${e}/summary`,
235
250
  CALCULATE_TWR: `${g}/calculate_twr`,
@@ -250,7 +265,7 @@ const g = "", F = `${g}/apps`, ie = `${g}/platform`, zr = Object.freeze({
250
265
  SCORES_RECALCULATE: `${g}/scores/me/recalculate`,
251
266
  SCORES_HISTORY: `${g}/scores/me/history`,
252
267
  SCORES_FEEDBACK: `${g}/scores/feedback`
253
- }), Gr = Object.freeze({
268
+ }), Wr = Object.freeze({
254
269
  ORDERS: `${g}/freelance/orders`,
255
270
  FEEDBACK: `${g}/freelance/feedback`,
256
271
  METRICS_LATEST: `${g}/freelance/metrics/latest`
@@ -273,18 +288,18 @@ const g = "", F = `${g}/apps`, ie = `${g}/platform`, zr = Object.freeze({
273
288
  PLAN_ANCHOR: (e) => `${g}/masterplans/${e}/anchor`,
274
289
  PLAN_PROJECTION: (e) => `${g}/masterplans/${e}/projection`
275
290
  }), Br = Object.freeze({
276
- AGENTS: `${F}/memory/agents`,
277
- AGENT_RECALL: (e) => `${F}/memory/agents/${e}/recall`,
278
- FEDERATED_RECALL: `${F}/memory/federated/recall`,
279
- NODES: `${F}/memory/nodes`,
280
- RECALL_V3: `${F}/memory/recall/v3`,
281
- SUGGEST: `${F}/memory/suggest`,
282
- NODE_FEEDBACK: (e) => `${F}/memory/nodes/${e}/feedback`,
283
- NODE_PERFORMANCE: (e) => `${F}/memory/nodes/${e}/performance`,
284
- NODE_TRAVERSE: (e) => `${F}/memory/nodes/${e}/traverse`,
285
- NODE_HISTORY: (e) => `${F}/memory/nodes/${e}/history`,
286
- NODE_SHARE: (e) => `${F}/memory/nodes/${e}/share`,
287
- METRICS_DASHBOARD: `${F}/memory/metrics/dashboard`
291
+ AGENTS: `${D}/memory/agents`,
292
+ AGENT_RECALL: (e) => `${D}/memory/agents/${e}/recall`,
293
+ FEDERATED_RECALL: `${D}/memory/federated/recall`,
294
+ NODES: `${D}/memory/nodes`,
295
+ RECALL_V3: `${D}/memory/recall/v3`,
296
+ SUGGEST: `${D}/memory/suggest`,
297
+ NODE_FEEDBACK: (e) => `${D}/memory/nodes/${e}/feedback`,
298
+ NODE_PERFORMANCE: (e) => `${D}/memory/nodes/${e}/performance`,
299
+ NODE_TRAVERSE: (e) => `${D}/memory/nodes/${e}/traverse`,
300
+ NODE_HISTORY: (e) => `${D}/memory/nodes/${e}/history`,
301
+ NODE_SHARE: (e) => `${D}/memory/nodes/${e}/share`,
302
+ METRICS_DASHBOARD: `${D}/memory/metrics/dashboard`
288
303
  }), jr = Object.freeze({
289
304
  RESEARCH_QUERY: `${g}/research/query`,
290
305
  HISTORY: `${g}/search/history`,
@@ -328,41 +343,57 @@ const g = "", F = `${g}/apps`, ie = `${g}/platform`, zr = Object.freeze({
328
343
  EVENT_DOWNSTREAM: (e) => `${g}/rippletrace/event/${encodeURIComponent(e)}/downstream`,
329
344
  EVENT_UPSTREAM: (e) => `${g}/rippletrace/event/${encodeURIComponent(e)}/upstream`
330
345
  }), Xr = Object.freeze({
331
- FLOW_RUNS: `${ie}/flows/runs`,
332
- FLOW_RUN: (e) => `${ie}/flows/runs/${e}`,
333
- FLOW_RUN_HISTORY: (e) => `${ie}/flows/runs/${e}/history`,
334
- FLOW_RUN_RESUME: (e) => `${ie}/flows/runs/${e}/resume`,
335
- FLOW_REGISTRY: `${ie}/flows/registry`,
336
- FLOW_STRATEGIES: `${ie}/flows/strategies`,
337
- // DEAD — no backend route (audit)
346
+ // ── Live: all resolve in current runtime OpenAPI ──────────────────────────
347
+ FLOW_RUNS: `${ne}/flows/runs`,
348
+ FLOW_RUN: (e) => `${ne}/flows/runs/${e}`,
349
+ FLOW_RUN_HISTORY: (e) => `${ne}/flows/runs/${e}/history`,
350
+ FLOW_RUN_RESUME: (e) => `${ne}/flows/runs/${e}/resume`,
351
+ FLOW_REGISTRY: `${ne}/flows/registry`,
352
+ FLOW_STRATEGIES: `${ne}/flows/strategies`,
353
+ // runtime: served (OPER-DEFER-001 closed); NavLink gates on FEATURE_FLAGS.OPERATOR_FLOW_STRATEGIES
354
+ RIPPLETRACE_STATUS: `${ne}/observability/rippletrace/status`,
355
+ // runtime: served
356
+ OBSERVABILITY_REQUESTS: `${ne}/observability/requests`,
357
+ OBSERVABILITY_DASHBOARD: `${ne}/observability/dashboard`,
358
+ CLIENT_ERROR: `${g}/client/error`,
359
+ CLIENT_VITALS: `${g}/client/vitals`,
360
+ // ── Deferred-runtime (constants live; gate NavLinks on FEATURE_FLAGS key) ─
361
+ // TODO: OPER-DEFER-002 — /automation/logs not yet served (monolith today)
338
362
  AUTOMATION_LOGS: `${g}/automation/logs`,
339
- // DEAD — not served (audit)
363
+ // FEATURE_FLAGS.OPERATOR_AUTOMATION_LOGS
340
364
  AUTOMATION_LOG: (e) => `${g}/automation/logs/${e}`,
341
- // DEAD (audit)
365
+ // FEATURE_FLAGS.OPERATOR_AUTOMATION_LOGS
342
366
  AUTOMATION_REPLAY: (e) => `${g}/automation/logs/${e}/replay`,
343
- // DEAD (audit)
344
- SCHEDULER_STATUS: `${ie}/observability/scheduler/status`,
345
- OBSERVABILITY_REQUESTS: `${ie}/observability/requests`,
346
- OBSERVABILITY_DASHBOARD: `${ie}/observability/dashboard`,
347
- CLIENT_ERROR: `${g}/client/error`,
348
- CLIENT_VITALS: `${g}/client/vitals`
367
+ // FEATURE_FLAGS.OPERATOR_AUTOMATION_LOGS
368
+ // SCHED-001 / SCHED-002 / SCHED-003 — returns 500 in platform-only profile
369
+ SCHEDULER_STATUS: `${ne}/observability/scheduler/status`
370
+ // FEATURE_FLAGS.OPERATOR_SCHEDULER_STATUS
349
371
  }), qr = Object.freeze({
350
372
  DASHBOARD_OVERVIEW: `${g}/dashboard/overview`,
373
+ // monolith-only
351
374
  HEALTH_DETAILS: `${g}/health/details`,
375
+ // runtime: served
352
376
  INFLUENCE_GRAPH: `${g}/influence_graph`,
377
+ // monolith-only
353
378
  CAUSAL_GRAPH: `${g}/causal_graph`,
379
+ // monolith-only
354
380
  NARRATIVE: (e) => `${g}/narrative/${e}`,
381
+ // monolith-only
355
382
  HEALTH: `${g}/health`,
383
+ // runtime: served
356
384
  HEALTH_DEEP: `${g}/health/deep`,
385
+ // runtime: served
357
386
  HEALTH_DOMAINS: `${g}/health/domains`,
387
+ // runtime: served
358
388
  VERSION: `${g}/api/version`
359
- }), _t = Object.freeze({
389
+ // runtime: served
390
+ }), lt = Object.freeze({
360
391
  AUTH: zr,
361
392
  TASKS: Dr,
362
- ARM: Fr,
363
- AGENT: Ur,
364
- ANALYTICS: Wr,
365
- FREELANCE: Gr,
393
+ ARM: Ur,
394
+ AGENT: Fr,
395
+ ANALYTICS: Gr,
396
+ FREELANCE: Wr,
366
397
  IDENTITY: Vr,
367
398
  MASTERPLAN: Hr,
368
399
  MEMORY: Br,
@@ -373,22 +404,28 @@ const g = "", F = `${g}/apps`, ie = `${g}/platform`, zr = Object.freeze({
373
404
  PLATFORM: qr
374
405
  });
375
406
  function Jr(e) {
376
- return Ve(_t.AUTH.LOGIN, {
407
+ return $e(lt.AUTH.LOGIN, {
377
408
  method: "POST",
378
409
  body: JSON.stringify(e)
379
- }).then(Pt);
410
+ }).then(_t);
380
411
  }
381
412
  function Zr(e) {
382
- return Ve(_t.AUTH.REGISTER, {
413
+ return $e(lt.AUTH.REGISTER, {
383
414
  method: "POST",
384
415
  body: JSON.stringify(e)
385
- }).then(Pt);
416
+ }).then(_t);
417
+ }
418
+ function Qr(e = we()) {
419
+ return $e(lt.AUTH.LOGOUT, {
420
+ method: "POST",
421
+ headers: e ? { Authorization: `Bearer ${e}` } : {}
422
+ }).catch(() => null);
386
423
  }
387
- function Qr(e = Ne()) {
388
- return Ve(_t.IDENTITY.BOOT, {
424
+ function eo(e = we()) {
425
+ return $e(lt.IDENTITY.BOOT, {
389
426
  method: "GET",
390
427
  headers: e ? { Authorization: `Bearer ${e}` } : {}
391
- }).then(Pt);
428
+ }).then(_t);
392
429
  }
393
430
  const On = wn(null);
394
431
  function kn(e) {
@@ -401,14 +438,14 @@ function kn(e) {
401
438
  return null;
402
439
  }
403
440
  }
404
- function ht(e) {
441
+ function bt(e) {
405
442
  const t = kn(e);
406
443
  return !t || typeof t.exp != "number" ? !1 : Date.now() / 1e3 > t.exp - 30;
407
444
  }
408
- function Fa({ children: e }) {
445
+ function Ga({ children: e }) {
409
446
  const [t, n] = J(() => {
410
- const a = Ne();
411
- return a && ht(a) ? (De(), null) : a || null;
447
+ const a = we();
448
+ return a && bt(a) ? (Ue(), null) : a || null;
412
449
  }), r = et(() => {
413
450
  const a = kn(t);
414
451
  return a ? {
@@ -416,23 +453,23 @@ function Fa({ children: e }) {
416
453
  is_admin: a?.is_admin === !0
417
454
  } : null;
418
455
  }, [t]), o = r?.is_admin === !0;
419
- Oe(() => {
420
- const a = Ne();
421
- if (a && ht(a)) {
422
- De(), n(null);
456
+ ke(() => {
457
+ const a = we();
458
+ if (a && bt(a)) {
459
+ Ue(), n(null);
423
460
  return;
424
461
  }
425
462
  n(a || null);
426
- }, []), Oe(() => {
463
+ }, []), ke(() => {
427
464
  if (!t)
428
465
  return;
429
466
  const a = setInterval(() => {
430
- ht(t) && (De(), n(null));
467
+ bt(t) && (Ue(), n(null));
431
468
  }, 6e4);
432
469
  return () => clearInterval(a);
433
- }, [t]), Oe(() => {
470
+ }, [t]), ke(() => {
434
471
  const a = () => {
435
- De(), n(null);
472
+ Ue(), n(null);
436
473
  };
437
474
  return window.addEventListener("aindy:session-expired", a), () => window.removeEventListener("aindy:session-expired", a);
438
475
  }, []);
@@ -447,7 +484,7 @@ function Fa({ children: e }) {
447
484
  throw new Error("Authentication did not return an access token.");
448
485
  return Xt(p), n(p), p;
449
486
  }, l = () => {
450
- De(), n(null);
487
+ Qr(), Ue(), n(null);
451
488
  }, c = et(
452
489
  () => ({
453
490
  token: t,
@@ -469,7 +506,7 @@ function $t() {
469
506
  throw new Error("useAuth must be used within AuthProvider.");
470
507
  return e;
471
508
  }
472
- const Nn = wn(null), Te = {
509
+ const Nn = wn(null), Oe = {
473
510
  user_id: null,
474
511
  memory: [],
475
512
  runs: [],
@@ -492,28 +529,28 @@ const Nn = wn(null), Te = {
492
529
  active_flows: 0
493
530
  }
494
531
  };
495
- function Ua({ children: e, skipBoot: t = !1 }) {
496
- const { token: n, logout: r } = $t(), [o, s] = J(Te), [i, l] = J(!1), [c, a] = J(!1), [d, u] = J(""), m = vt(null), p = () => {
497
- s(Te), a(!1), u(""), m.current = null;
532
+ function Wa({ children: e, skipBoot: t = !1 }) {
533
+ const { token: n, logout: r } = $t(), [o, s] = J(Oe), [i, l] = J(!1), [c, a] = J(!1), [d, u] = J(""), m = Et(null), p = () => {
534
+ s(Oe), a(!1), u(""), m.current = null;
498
535
  }, h = async (x = n) => {
499
536
  if (!x)
500
- return p(), Te;
537
+ return p(), Oe;
501
538
  l(!0), u("");
502
539
  try {
503
- const y = await Qr(x);
540
+ const y = await eo(x);
504
541
  return s({
505
- ...Te,
542
+ ...Oe,
506
543
  ...y,
507
544
  memory: y?.memory || [],
508
545
  runs: y?.runs || [],
509
546
  flows: y?.flows || [],
510
547
  metrics: y?.metrics || null,
511
548
  runtime: {
512
- ...Te.runtime,
549
+ ...Oe.runtime,
513
550
  ...y?.runtime || {}
514
551
  },
515
552
  system_state: {
516
- ...Te.system_state,
553
+ ...Oe.system_state,
517
554
  ...y?.system_state || {}
518
555
  }
519
556
  }), a(!0), m.current = x, y;
@@ -524,7 +561,7 @@ function Ua({ children: e, skipBoot: t = !1 }) {
524
561
  l(!1);
525
562
  }
526
563
  };
527
- Oe(() => {
564
+ ke(() => {
528
565
  if (t) {
529
566
  if (!n) {
530
567
  p();
@@ -554,13 +591,13 @@ function Ua({ children: e, skipBoot: t = !1 }) {
554
591
  );
555
592
  return /* @__PURE__ */ w(Nn.Provider, { value: b, children: e });
556
593
  }
557
- function eo() {
594
+ function to() {
558
595
  const e = vn(Nn);
559
596
  if (!e)
560
597
  throw new Error("useSystem must be used within SystemProvider.");
561
598
  return e;
562
599
  }
563
- const to = "/platform", no = (e) => `${to}${e}`, ro = [
600
+ const no = "/platform", ro = (e) => `${no}${e}`, oo = [
564
601
  {
565
602
  title: "PLATFORM",
566
603
  adminOnly: !0,
@@ -624,7 +661,7 @@ const to = "/platform", no = (e) => `${to}${e}`, ro = [
624
661
  ]
625
662
  }
626
663
  ];
627
- function oo({ to: e, label: t, onNavigate: n, external: r = !1 }) {
664
+ function so({ to: e, label: t, onNavigate: n, external: r = !1 }) {
628
665
  const o = [
629
666
  "block rounded-2xl border px-3 py-2 text-sm transition-colors",
630
667
  "border-zinc-800/60 bg-zinc-950/40 text-zinc-400 hover:border-zinc-700 hover:bg-zinc-900/70 hover:text-zinc-100"
@@ -634,7 +671,7 @@ function oo({ to: e, label: t, onNavigate: n, external: r = !1 }) {
634
671
  return /* @__PURE__ */ w(
635
672
  "a",
636
673
  {
637
- href: no(e),
674
+ href: ro(e),
638
675
  onClick: n,
639
676
  target: "_self",
640
677
  className: [
@@ -658,9 +695,9 @@ function oo({ to: e, label: t, onNavigate: n, external: r = !1 }) {
658
695
  }
659
696
  );
660
697
  }
661
- function Wa() {
662
- const { isAdmin: e, logout: t, user: n } = $t(), { system: r } = eo(), [o, s] = J(!1), i = r?.runtime?.boot_mode === "runtime-only", l = et(
663
- () => ro.filter((c) => !c.adminOnly || e).filter((c) => !i || c.runtimeOnlySafe !== !1).map((c) => ({
698
+ function Va() {
699
+ const { isAdmin: e, logout: t, user: n } = $t(), { system: r } = to(), [o, s] = J(!1), i = r?.runtime?.boot_mode === "runtime-only", l = et(
700
+ () => oo.filter((c) => !c.adminOnly || e).filter((c) => !i || c.runtimeOnlySafe !== !1).map((c) => ({
664
701
  ...c,
665
702
  title: c.title === "RUNTIME" && !i ? "IDENTITY" : c.title,
666
703
  links: c.links.filter((a) => !i || a.runtimeOnlySafe !== !1)
@@ -696,7 +733,7 @@ function Wa() {
696
733
  /* @__PURE__ */ w("nav", { className: "flex-1 space-y-6 overflow-y-auto px-4 py-5 custom-scrollbar", children: l.map((c) => /* @__PURE__ */ B("div", { children: [
697
734
  /* @__PURE__ */ w("p", { className: "mb-3 px-2 text-[10px] font-bold uppercase tracking-[0.3em] text-zinc-600", children: c.title }),
698
735
  /* @__PURE__ */ w("div", { className: "space-y-2", children: c.links.map((a) => /* @__PURE__ */ w(
699
- oo,
736
+ so,
700
737
  {
701
738
  to: a.to,
702
739
  label: a.label,
@@ -754,11 +791,11 @@ function Wa() {
754
791
  ] })
755
792
  ] });
756
793
  }
757
- function Ga({ requireAdmin: e = !1 }) {
794
+ function Ha({ requireAdmin: e = !1 }) {
758
795
  const t = $r(), { isAdmin: n, isAuthenticated: r } = $t();
759
796
  return r ? e && !n ? /* @__PURE__ */ w(jt, { to: "/dashboard", replace: !0 }) : /* @__PURE__ */ w(En, {}) : /* @__PURE__ */ w(jt, { to: "/login", replace: !0, state: { from: t } });
760
797
  }
761
- const so = {
798
+ const io = {
762
799
  major_mismatch: {
763
800
  bg: "#b91c1c",
764
801
  label: "Incompatible version",
@@ -784,8 +821,8 @@ const so = {
784
821
  dismissable: !0
785
822
  }
786
823
  };
787
- function Va({ status: e, apiVersion: t, clientVersion: n, onDismiss: r }) {
788
- const o = so[e];
824
+ function Ba({ status: e, apiVersion: t, clientVersion: n, onDismiss: r }) {
825
+ const o = io[e];
789
826
  return o ? /* @__PURE__ */ B(
790
827
  "div",
791
828
  {
@@ -853,7 +890,7 @@ const qt = {
853
890
  success: "border-emerald-500/30 bg-emerald-950/80 text-emerald-200",
854
891
  info: "border-zinc-600/30 bg-zinc-900/90 text-zinc-200"
855
892
  };
856
- function Ha({ toast: e, onDismiss: t }) {
893
+ function ja({ toast: e, onDismiss: t }) {
857
894
  return e ? /* @__PURE__ */ B(
858
895
  "div",
859
896
  {
@@ -875,7 +912,7 @@ function Ha({ toast: e, onDismiss: t }) {
875
912
  }
876
913
  ) : null;
877
914
  }
878
- function Ba({ lines: e = 3, label: t }) {
915
+ function Ya({ lines: e = 3, label: t }) {
879
916
  const n = ["w-full", "w-3/4", "w-1/2"];
880
917
  return /* @__PURE__ */ B("div", { className: "rounded-2xl border border-zinc-800/50 bg-zinc-950/50 p-6", children: [
881
918
  /* @__PURE__ */ w("div", { className: "space-y-3", children: Array.from({ length: e }, (r, o) => /* @__PURE__ */ w(
@@ -889,7 +926,7 @@ function Ba({ lines: e = 3, label: t }) {
889
926
  t ? /* @__PURE__ */ w("p", { className: "mt-4 text-center text-xs text-zinc-500", children: t }) : null
890
927
  ] });
891
928
  }
892
- function ja({ error: e, domain: t, onRetry: n }) {
929
+ function Ka({ error: e, domain: t, onRetry: n }) {
893
930
  if (!e)
894
931
  return null;
895
932
  const r = e?.status ?? "unknown", o = t || e?.domain || "server";
@@ -907,13 +944,13 @@ function ja({ error: e, domain: t, onRetry: n }) {
907
944
  ) : null
908
945
  ] });
909
946
  }
910
- function Ya(e) {
947
+ function Xa(e) {
911
948
  const [t, n] = J(!1);
912
- return Oe(() => {
949
+ return ke(() => {
913
950
  e || n(!0);
914
951
  }, [e]), t;
915
952
  }
916
- function Ka() {
953
+ function qa() {
917
954
  return /* @__PURE__ */ w(
918
955
  "div",
919
956
  {
@@ -926,7 +963,7 @@ function Ka() {
926
963
  }
927
964
  );
928
965
  }
929
- function Xa({ message: e, hint: t }) {
966
+ function Ja({ message: e, hint: t }) {
930
967
  return /* @__PURE__ */ B("div", { className: "flex flex-col items-center justify-center rounded-2xl border border-zinc-800/30 bg-zinc-950/30 p-8 text-center", children: [
931
968
  /* @__PURE__ */ w("p", { className: "text-sm text-zinc-400", children: e }),
932
969
  t ? /* @__PURE__ */ w("p", { className: "mt-1 text-xs text-zinc-600", children: t }) : null
@@ -953,22 +990,22 @@ function It(...e) {
953
990
  };
954
991
  };
955
992
  }
956
- function Ee(...e) {
993
+ function Ae(...e) {
957
994
  return f.useCallback(It(...e), e);
958
995
  }
959
- var io = /* @__PURE__ */ Symbol.for("react.lazy"), nt = f[" use ".trim().toString()];
960
- function ao(e) {
996
+ var ao = /* @__PURE__ */ Symbol.for("react.lazy"), nt = f[" use ".trim().toString()];
997
+ function lo(e) {
961
998
  return typeof e == "object" && e !== null && "then" in e;
962
999
  }
963
1000
  function Pn(e) {
964
- return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === io && "_payload" in e && ao(e._payload);
1001
+ return e != null && typeof e == "object" && "$$typeof" in e && e.$$typeof === ao && "_payload" in e && lo(e._payload);
965
1002
  }
966
1003
  // @__NO_SIDE_EFFECTS__
967
- function lo(e) {
968
- const t = /* @__PURE__ */ uo(e), n = f.forwardRef((r, o) => {
1004
+ function co(e) {
1005
+ const t = /* @__PURE__ */ fo(e), n = f.forwardRef((r, o) => {
969
1006
  let { children: s, ...i } = r;
970
1007
  Pn(s) && typeof nt == "function" && (s = nt(s._payload));
971
- const l = f.Children.toArray(s), c = l.find(mo);
1008
+ const l = f.Children.toArray(s), c = l.find(po);
972
1009
  if (c) {
973
1010
  const a = c.props.children, d = l.map((u) => u === c ? f.Children.count(a) > 1 ? f.Children.only(null) : f.isValidElement(a) ? a.props.children : null : u);
974
1011
  return /* @__PURE__ */ w(t, { ...i, ref: o, children: f.isValidElement(a) ? f.cloneElement(a, void 0, d) : null });
@@ -977,24 +1014,24 @@ function lo(e) {
977
1014
  });
978
1015
  return n.displayName = `${e}.Slot`, n;
979
1016
  }
980
- var co = /* @__PURE__ */ lo("Slot");
1017
+ var uo = /* @__PURE__ */ co("Slot");
981
1018
  // @__NO_SIDE_EFFECTS__
982
- function uo(e) {
1019
+ function fo(e) {
983
1020
  const t = f.forwardRef((n, r) => {
984
1021
  let { children: o, ...s } = n;
985
1022
  if (Pn(o) && typeof nt == "function" && (o = nt(o._payload)), f.isValidElement(o)) {
986
- const i = go(o), l = po(s, o.props);
1023
+ const i = ho(o), l = go(s, o.props);
987
1024
  return o.type !== f.Fragment && (l.ref = r ? It(r, i) : i), f.cloneElement(o, l);
988
1025
  }
989
1026
  return f.Children.count(o) > 1 ? f.Children.only(null) : null;
990
1027
  });
991
1028
  return t.displayName = `${e}.SlotClone`, t;
992
1029
  }
993
- var fo = /* @__PURE__ */ Symbol("radix.slottable");
994
- function mo(e) {
995
- return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === fo;
1030
+ var mo = /* @__PURE__ */ Symbol("radix.slottable");
1031
+ function po(e) {
1032
+ return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === mo;
996
1033
  }
997
- function po(e, t) {
1034
+ function go(e, t) {
998
1035
  const n = { ...t };
999
1036
  for (const r in t) {
1000
1037
  const o = e[r], s = t[r];
@@ -1005,7 +1042,7 @@ function po(e, t) {
1005
1042
  }
1006
1043
  return { ...e, ...n };
1007
1044
  }
1008
- function go(e) {
1045
+ function ho(e) {
1009
1046
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
1010
1047
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
1011
1048
  }
@@ -1022,7 +1059,7 @@ function $n() {
1022
1059
  for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = _n(e)) && (r && (r += " "), r += t);
1023
1060
  return r;
1024
1061
  }
1025
- const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, ho = (e, t) => (n) => {
1062
+ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, bo = (e, t) => (n) => {
1026
1063
  var r;
1027
1064
  if (t?.variants == null) return Qt(e, n?.class, n?.className);
1028
1065
  const { variants: o, defaultVariants: s } = t, i = Object.keys(o).map((a) => {
@@ -1051,36 +1088,36 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1051
1088
  ] : a;
1052
1089
  }, []);
1053
1090
  return Qt(e, i, c, n?.class, n?.className);
1054
- }, bo = (e, t) => {
1091
+ }, yo = (e, t) => {
1055
1092
  const n = new Array(e.length + t.length);
1056
1093
  for (let r = 0; r < e.length; r++)
1057
1094
  n[r] = e[r];
1058
1095
  for (let r = 0; r < t.length; r++)
1059
1096
  n[e.length + r] = t[r];
1060
1097
  return n;
1061
- }, yo = (e, t) => ({
1098
+ }, xo = (e, t) => ({
1062
1099
  classGroupId: e,
1063
1100
  validator: t
1064
1101
  }), In = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
1065
1102
  nextPart: e,
1066
1103
  validators: t,
1067
1104
  classGroupId: n
1068
- }), rt = "-", en = [], xo = "arbitrary..", wo = (e) => {
1069
- const t = Eo(e), {
1105
+ }), rt = "-", en = [], wo = "arbitrary..", vo = (e) => {
1106
+ const t = Ao(e), {
1070
1107
  conflictingClassGroups: n,
1071
1108
  conflictingClassGroupModifiers: r
1072
1109
  } = e;
1073
1110
  return {
1074
1111
  getClassGroupId: (i) => {
1075
1112
  if (i.startsWith("[") && i.endsWith("]"))
1076
- return vo(i);
1113
+ return Eo(i);
1077
1114
  const l = i.split(rt), c = l[0] === "" && l.length > 1 ? 1 : 0;
1078
1115
  return Ln(l, c, t);
1079
1116
  },
1080
1117
  getConflictingClassGroupIds: (i, l) => {
1081
1118
  if (l) {
1082
1119
  const c = r[i], a = n[i];
1083
- return c ? a ? bo(a, c) : c : a || en;
1120
+ return c ? a ? yo(a, c) : c : a || en;
1084
1121
  }
1085
1122
  return n[i] || en;
1086
1123
  }
@@ -1102,16 +1139,16 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1102
1139
  if (d.validator(l))
1103
1140
  return d.classGroupId;
1104
1141
  }
1105
- }, vo = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
1142
+ }, Eo = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
1106
1143
  const t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
1107
- return r ? xo + r : void 0;
1108
- })(), Eo = (e) => {
1144
+ return r ? wo + r : void 0;
1145
+ })(), Ao = (e) => {
1109
1146
  const {
1110
1147
  theme: t,
1111
1148
  classGroups: n
1112
1149
  } = e;
1113
- return Ao(n, t);
1114
- }, Ao = (e, t) => {
1150
+ return Co(n, t);
1151
+ }, Co = (e, t) => {
1115
1152
  const n = In();
1116
1153
  for (const r in e) {
1117
1154
  const o = e[r];
@@ -1122,28 +1159,28 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1122
1159
  const o = e.length;
1123
1160
  for (let s = 0; s < o; s++) {
1124
1161
  const i = e[s];
1125
- Co(i, t, n, r);
1162
+ Ro(i, t, n, r);
1126
1163
  }
1127
- }, Co = (e, t, n, r) => {
1164
+ }, Ro = (e, t, n, r) => {
1128
1165
  if (typeof e == "string") {
1129
- Ro(e, t, n);
1166
+ So(e, t, n);
1130
1167
  return;
1131
1168
  }
1132
1169
  if (typeof e == "function") {
1133
- So(e, t, n, r);
1170
+ To(e, t, n, r);
1134
1171
  return;
1135
1172
  }
1136
- To(e, t, n, r);
1137
- }, Ro = (e, t, n) => {
1173
+ Oo(e, t, n, r);
1174
+ }, So = (e, t, n) => {
1138
1175
  const r = e === "" ? t : Mn(t, e);
1139
1176
  r.classGroupId = n;
1140
- }, So = (e, t, n, r) => {
1141
- if (Oo(e)) {
1177
+ }, To = (e, t, n, r) => {
1178
+ if (ko(e)) {
1142
1179
  Lt(e(r), t, n, r);
1143
1180
  return;
1144
1181
  }
1145
- t.validators === null && (t.validators = []), t.validators.push(yo(n, e));
1146
- }, To = (e, t, n, r) => {
1182
+ t.validators === null && (t.validators = []), t.validators.push(xo(n, e));
1183
+ }, Oo = (e, t, n, r) => {
1147
1184
  const o = Object.entries(e), s = o.length;
1148
1185
  for (let i = 0; i < s; i++) {
1149
1186
  const [l, c] = o[i];
@@ -1158,7 +1195,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1158
1195
  l || (l = In(), n.nextPart.set(i, l)), n = l;
1159
1196
  }
1160
1197
  return n;
1161
- }, Oo = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ko = (e) => {
1198
+ }, ko = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, No = (e) => {
1162
1199
  if (e < 1)
1163
1200
  return {
1164
1201
  get: () => {
@@ -1182,13 +1219,13 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1182
1219
  s in n ? n[s] = i : o(s, i);
1183
1220
  }
1184
1221
  };
1185
- }, Et = "!", tn = ":", No = [], nn = (e, t, n, r, o) => ({
1222
+ }, At = "!", tn = ":", Po = [], nn = (e, t, n, r, o) => ({
1186
1223
  modifiers: e,
1187
1224
  hasImportantModifier: t,
1188
1225
  baseClassName: n,
1189
1226
  maybePostfixModifierPosition: r,
1190
1227
  isExternal: o
1191
- }), Po = (e) => {
1228
+ }), _o = (e) => {
1192
1229
  const {
1193
1230
  prefix: t,
1194
1231
  experimentalParseClassName: n
@@ -1213,19 +1250,19 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1213
1250
  }
1214
1251
  const u = s.length === 0 ? o : o.slice(c);
1215
1252
  let m = u, p = !1;
1216
- u.endsWith(Et) ? (m = u.slice(0, -1), p = !0) : (
1253
+ u.endsWith(At) ? (m = u.slice(0, -1), p = !0) : (
1217
1254
  /**
1218
1255
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
1219
1256
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
1220
1257
  */
1221
- u.startsWith(Et) && (m = u.slice(1), p = !0)
1258
+ u.startsWith(At) && (m = u.slice(1), p = !0)
1222
1259
  );
1223
1260
  const h = a && a > c ? a - c : void 0;
1224
1261
  return nn(s, p, m, h);
1225
1262
  };
1226
1263
  if (t) {
1227
1264
  const o = t + tn, s = r;
1228
- r = (i) => i.startsWith(o) ? s(i.slice(o.length)) : nn(No, !1, i, void 0, !0);
1265
+ r = (i) => i.startsWith(o) ? s(i.slice(o.length)) : nn(Po, !1, i, void 0, !0);
1229
1266
  }
1230
1267
  if (n) {
1231
1268
  const o = r;
@@ -1235,7 +1272,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1235
1272
  });
1236
1273
  }
1237
1274
  return r;
1238
- }, _o = (e) => {
1275
+ }, $o = (e) => {
1239
1276
  const t = /* @__PURE__ */ new Map();
1240
1277
  return e.orderSensitiveModifiers.forEach((n, r) => {
1241
1278
  t.set(n, 1e6 + r);
@@ -1248,26 +1285,26 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1248
1285
  }
1249
1286
  return o.length > 0 && (o.sort(), r.push(...o)), r;
1250
1287
  };
1251
- }, $o = (e) => ({
1252
- cache: ko(e.cacheSize),
1253
- parseClassName: Po(e),
1254
- sortModifiers: _o(e),
1255
- postfixLookupClassGroupIds: Io(e),
1256
- ...wo(e)
1257
- }), Io = (e) => {
1288
+ }, Io = (e) => ({
1289
+ cache: No(e.cacheSize),
1290
+ parseClassName: _o(e),
1291
+ sortModifiers: $o(e),
1292
+ postfixLookupClassGroupIds: Lo(e),
1293
+ ...vo(e)
1294
+ }), Lo = (e) => {
1258
1295
  const t = /* @__PURE__ */ Object.create(null), n = e.postfixLookupClassGroups;
1259
1296
  if (n)
1260
1297
  for (let r = 0; r < n.length; r++)
1261
1298
  t[n[r]] = !0;
1262
1299
  return t;
1263
- }, Lo = /\s+/, Mo = (e, t) => {
1300
+ }, Mo = /\s+/, zo = (e, t) => {
1264
1301
  const {
1265
1302
  parseClassName: n,
1266
1303
  getClassGroupId: r,
1267
1304
  getConflictingClassGroupIds: o,
1268
1305
  sortModifiers: s,
1269
1306
  postfixLookupClassGroupIds: i
1270
- } = t, l = [], c = e.trim().split(Lo);
1307
+ } = t, l = [], c = e.trim().split(Mo);
1271
1308
  let a = "";
1272
1309
  for (let d = c.length - 1; d >= 0; d -= 1) {
1273
1310
  const u = c[d], {
@@ -1300,7 +1337,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1300
1337
  }
1301
1338
  y = !1;
1302
1339
  }
1303
- const O = p.length === 0 ? "" : p.length === 1 ? p[0] : s(p).join(":"), S = h ? O + Et : O, k = S + E;
1340
+ const O = p.length === 0 ? "" : p.length === 1 ? p[0] : s(p).join(":"), S = h ? O + At : O, k = S + E;
1304
1341
  if (l.indexOf(k) > -1)
1305
1342
  continue;
1306
1343
  l.push(k);
@@ -1312,7 +1349,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1312
1349
  a = u + (a.length > 0 ? " " + a : a);
1313
1350
  }
1314
1351
  return a;
1315
- }, zo = (...e) => {
1352
+ }, Do = (...e) => {
1316
1353
  let t = 0, n, r, o = "";
1317
1354
  for (; t < e.length; )
1318
1355
  (n = e[t++]) && (r = zn(n)) && (o && (o += " "), o += r);
@@ -1324,34 +1361,34 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1324
1361
  for (let r = 0; r < e.length; r++)
1325
1362
  e[r] && (t = zn(e[r])) && (n && (n += " "), n += t);
1326
1363
  return n;
1327
- }, Do = (e, ...t) => {
1364
+ }, Uo = (e, ...t) => {
1328
1365
  let n, r, o, s;
1329
1366
  const i = (c) => {
1330
1367
  const a = t.reduce((d, u) => u(d), e());
1331
- return n = $o(a), r = n.cache.get, o = n.cache.set, s = l, l(c);
1368
+ return n = Io(a), r = n.cache.get, o = n.cache.set, s = l, l(c);
1332
1369
  }, l = (c) => {
1333
1370
  const a = r(c);
1334
1371
  if (a)
1335
1372
  return a;
1336
- const d = Mo(c, n);
1373
+ const d = zo(c, n);
1337
1374
  return o(c, d), d;
1338
1375
  };
1339
- return s = i, (...c) => s(zo(...c));
1376
+ return s = i, (...c) => s(Do(...c));
1340
1377
  }, Fo = [], H = (e) => {
1341
1378
  const t = (n) => n[e] || Fo;
1342
1379
  return t.isThemeGetter = !0, t;
1343
- }, Dn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Fn = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Uo = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Wo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Go = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Vo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ho = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Bo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, me = (e) => Uo.test(e), P = (e) => !!e && !Number.isNaN(Number(e)), ne = (e) => !!e && Number.isInteger(Number(e)), bt = (e) => e.endsWith("%") && P(e.slice(0, -1)), ae = (e) => Wo.test(e), Un = () => !0, jo = (e) => (
1380
+ }, Dn = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Un = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Go = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Wo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ho = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Bo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, jo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, me = (e) => Go.test(e), P = (e) => !!e && !Number.isNaN(Number(e)), re = (e) => !!e && Number.isInteger(Number(e)), yt = (e) => e.endsWith("%") && P(e.slice(0, -1)), ae = (e) => Wo.test(e), Fn = () => !0, Yo = (e) => (
1344
1381
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
1345
1382
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
1346
1383
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1347
- Go.test(e) && !Vo.test(e)
1348
- ), Mt = () => !1, Yo = (e) => Ho.test(e), Ko = (e) => Bo.test(e), Xo = (e) => !A(e) && !C(e), qo = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Jo = (e) => he(e, Vn, Mt), A = (e) => Dn.test(e), ye = (e) => he(e, Hn, jo), rn = (e) => he(e, ss, P), Zo = (e) => he(e, jn, Un), Qo = (e) => he(e, Bn, Mt), on = (e) => he(e, Wn, Mt), es = (e) => he(e, Gn, Ko), Xe = (e) => he(e, Yn, Yo), C = (e) => Fn.test(e), Fe = (e) => Ae(e, Hn), ts = (e) => Ae(e, Bn), sn = (e) => Ae(e, Wn), ns = (e) => Ae(e, Vn), rs = (e) => Ae(e, Gn), qe = (e) => Ae(e, Yn, !0), os = (e) => Ae(e, jn, !0), he = (e, t, n) => {
1384
+ Vo.test(e) && !Ho.test(e)
1385
+ ), Mt = () => !1, Ko = (e) => Bo.test(e), Xo = (e) => jo.test(e), qo = (e) => !A(e) && !C(e), Jo = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Zo = (e) => he(e, Vn, Mt), A = (e) => Dn.test(e), ye = (e) => he(e, Hn, Yo), rn = (e) => he(e, is, P), Qo = (e) => he(e, jn, Fn), es = (e) => he(e, Bn, Mt), on = (e) => he(e, Gn, Mt), ts = (e) => he(e, Wn, Xo), Xe = (e) => he(e, Yn, Ko), C = (e) => Un.test(e), Fe = (e) => Ce(e, Hn), ns = (e) => Ce(e, Bn), sn = (e) => Ce(e, Gn), rs = (e) => Ce(e, Vn), os = (e) => Ce(e, Wn), qe = (e) => Ce(e, Yn, !0), ss = (e) => Ce(e, jn, !0), he = (e, t, n) => {
1349
1386
  const r = Dn.exec(e);
1350
1387
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
1351
- }, Ae = (e, t, n = !1) => {
1352
- const r = Fn.exec(e);
1388
+ }, Ce = (e, t, n = !1) => {
1389
+ const r = Un.exec(e);
1353
1390
  return r ? r[1] ? t(r[1]) : n : !1;
1354
- }, Wn = (e) => e === "position" || e === "percentage", Gn = (e) => e === "image" || e === "url", Vn = (e) => e === "length" || e === "size" || e === "bg-size", Hn = (e) => e === "length", ss = (e) => e === "number", Bn = (e) => e === "family-name", jn = (e) => e === "number" || e === "weight", Yn = (e) => e === "shadow", is = () => {
1391
+ }, Gn = (e) => e === "position" || e === "percentage", Wn = (e) => e === "image" || e === "url", Vn = (e) => e === "length" || e === "size" || e === "bg-size", Hn = (e) => e === "length", is = (e) => e === "number", Bn = (e) => e === "family-name", jn = (e) => e === "number" || e === "weight", Yn = (e) => e === "shadow", as = () => {
1355
1392
  const e = H("color"), t = H("font"), n = H("text"), r = H("font-weight"), o = H("tracking"), s = H("leading"), i = H("breakpoint"), l = H("container"), c = H("spacing"), a = H("radius"), d = H("shadow"), u = H("inset-shadow"), m = H("text-shadow"), p = H("drop-shadow"), h = H("blur"), b = H("perspective"), x = H("aspect"), y = H("ease"), E = H("animate"), O = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
1356
1393
  "center",
1357
1394
  "top",
@@ -1370,15 +1407,15 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1370
1407
  "bottom-left",
1371
1408
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1372
1409
  "left-bottom"
1373
- ], k = () => [...S(), C, A], N = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], v = () => [C, A, c], $ = () => [me, "full", "auto", ...v()], M = () => [ne, "none", "subgrid", C, A], j = () => ["auto", {
1374
- span: ["full", ne, C, A]
1375
- }, ne, C, A], U = () => [ne, "auto", C, A], D = () => ["auto", "min", "max", "fr", C, A], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], W = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], I = () => ["auto", ...v()], L = () => [me, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], _ = () => [me, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...v()], G = () => [me, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...v()], R = () => [e, C, A], Le = () => [...S(), sn, on, {
1410
+ ], k = () => [...S(), C, A], N = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", "contain", "none"], v = () => [C, A, c], $ = () => [me, "full", "auto", ...v()], M = () => [re, "none", "subgrid", C, A], j = () => ["auto", {
1411
+ span: ["full", re, C, A]
1412
+ }, re, C, A], F = () => [re, "auto", C, A], U = () => ["auto", "min", "max", "fr", C, A], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], I = () => ["auto", ...v()], L = () => [me, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...v()], _ = () => [me, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...v()], W = () => [me, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...v()], R = () => [e, C, A], Me = () => [...S(), sn, on, {
1376
1413
  position: [C, A]
1377
1414
  }], Be = () => ["no-repeat", {
1378
1415
  repeat: ["", "x", "y", "space", "round"]
1379
- }], je = () => ["auto", "cover", "contain", ns, Jo, {
1416
+ }], je = () => ["auto", "cover", "contain", rs, Zo, {
1380
1417
  size: [C, A]
1381
- }], Me = () => [bt, Fe, ye], Y = () => [
1418
+ }], ze = () => [yt, Fe, ye], Y = () => [
1382
1419
  // Deprecated since Tailwind CSS v4.0.0
1383
1420
  "",
1384
1421
  "none",
@@ -1386,14 +1423,14 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1386
1423
  a,
1387
1424
  C,
1388
1425
  A
1389
- ], K = () => ["", P, Fe, ye], te = () => ["solid", "dashed", "dotted", "double"], ze = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], V = () => [P, bt, sn, on], Ye = () => [
1426
+ ], K = () => ["", P, Fe, ye], te = () => ["solid", "dashed", "dotted", "double"], De = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], V = () => [P, yt, sn, on], Ye = () => [
1390
1427
  // Deprecated since Tailwind CSS v4.0.0
1391
1428
  "",
1392
1429
  "none",
1393
1430
  h,
1394
1431
  C,
1395
1432
  A
1396
- ], Re = () => ["none", P, C, A], Se = () => ["none", P, C, A], fe = () => [P, C, A], Ke = () => [me, "full", ...v()];
1433
+ ], Se = () => ["none", P, C, A], Te = () => ["none", P, C, A], fe = () => [P, C, A], Ke = () => [me, "full", ...v()];
1397
1434
  return {
1398
1435
  cacheSize: 500,
1399
1436
  theme: {
@@ -1401,11 +1438,11 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1401
1438
  aspect: ["video"],
1402
1439
  blur: [ae],
1403
1440
  breakpoint: [ae],
1404
- color: [Un],
1441
+ color: [Fn],
1405
1442
  container: [ae],
1406
1443
  "drop-shadow": [ae],
1407
1444
  ease: ["in", "out", "in-out"],
1408
- font: [Xo],
1445
+ font: [qo],
1409
1446
  "font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
1410
1447
  "inset-shadow": [ae],
1411
1448
  leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
@@ -1445,7 +1482,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1445
1482
  * Container Name
1446
1483
  * @see https://tailwindcss.com/docs/responsive-design#named-containers
1447
1484
  */
1448
- "container-named": [qo],
1485
+ "container-named": [Jo],
1449
1486
  /**
1450
1487
  * Columns
1451
1488
  * @see https://tailwindcss.com/docs/columns
@@ -1677,7 +1714,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1677
1714
  * @see https://tailwindcss.com/docs/z-index
1678
1715
  */
1679
1716
  z: [{
1680
- z: [ne, "auto", C, A]
1717
+ z: [re, "auto", C, A]
1681
1718
  }],
1682
1719
  // ------------------------
1683
1720
  // --- Flexbox and Grid ---
@@ -1729,7 +1766,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1729
1766
  * @see https://tailwindcss.com/docs/order
1730
1767
  */
1731
1768
  order: [{
1732
- order: [ne, "first", "last", "none", C, A]
1769
+ order: [re, "first", "last", "none", C, A]
1733
1770
  }],
1734
1771
  /**
1735
1772
  * Grid Template Columns
@@ -1750,14 +1787,14 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1750
1787
  * @see https://tailwindcss.com/docs/grid-column
1751
1788
  */
1752
1789
  "col-start": [{
1753
- "col-start": U()
1790
+ "col-start": F()
1754
1791
  }],
1755
1792
  /**
1756
1793
  * Grid Column End
1757
1794
  * @see https://tailwindcss.com/docs/grid-column
1758
1795
  */
1759
1796
  "col-end": [{
1760
- "col-end": U()
1797
+ "col-end": F()
1761
1798
  }],
1762
1799
  /**
1763
1800
  * Grid Template Rows
@@ -1778,14 +1815,14 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1778
1815
  * @see https://tailwindcss.com/docs/grid-row
1779
1816
  */
1780
1817
  "row-start": [{
1781
- "row-start": U()
1818
+ "row-start": F()
1782
1819
  }],
1783
1820
  /**
1784
1821
  * Grid Row End
1785
1822
  * @see https://tailwindcss.com/docs/grid-row
1786
1823
  */
1787
1824
  "row-end": [{
1788
- "row-end": U()
1825
+ "row-end": F()
1789
1826
  }],
1790
1827
  /**
1791
1828
  * Grid Auto Flow
@@ -1799,14 +1836,14 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1799
1836
  * @see https://tailwindcss.com/docs/grid-auto-columns
1800
1837
  */
1801
1838
  "auto-cols": [{
1802
- "auto-cols": D()
1839
+ "auto-cols": U()
1803
1840
  }],
1804
1841
  /**
1805
1842
  * Grid Auto Rows
1806
1843
  * @see https://tailwindcss.com/docs/grid-auto-rows
1807
1844
  */
1808
1845
  "auto-rows": [{
1809
- "auto-rows": D()
1846
+ "auto-rows": U()
1810
1847
  }],
1811
1848
  /**
1812
1849
  * Gap
@@ -1841,14 +1878,14 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1841
1878
  * @see https://tailwindcss.com/docs/justify-items
1842
1879
  */
1843
1880
  "justify-items": [{
1844
- "justify-items": [...W(), "normal"]
1881
+ "justify-items": [...G(), "normal"]
1845
1882
  }],
1846
1883
  /**
1847
1884
  * Justify Self
1848
1885
  * @see https://tailwindcss.com/docs/justify-self
1849
1886
  */
1850
1887
  "justify-self": [{
1851
- "justify-self": ["auto", ...W()]
1888
+ "justify-self": ["auto", ...G()]
1852
1889
  }],
1853
1890
  /**
1854
1891
  * Align Content
@@ -1862,7 +1899,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1862
1899
  * @see https://tailwindcss.com/docs/align-items
1863
1900
  */
1864
1901
  "align-items": [{
1865
- items: [...W(), {
1902
+ items: [...G(), {
1866
1903
  baseline: ["", "last"]
1867
1904
  }]
1868
1905
  }],
@@ -1871,7 +1908,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1871
1908
  * @see https://tailwindcss.com/docs/align-self
1872
1909
  */
1873
1910
  "align-self": [{
1874
- self: ["auto", ...W(), {
1911
+ self: ["auto", ...G(), {
1875
1912
  baseline: ["", "last"]
1876
1913
  }]
1877
1914
  }],
@@ -1887,14 +1924,14 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
1887
1924
  * @see https://tailwindcss.com/docs/place-items
1888
1925
  */
1889
1926
  "place-items": [{
1890
- "place-items": [...W(), "baseline"]
1927
+ "place-items": [...G(), "baseline"]
1891
1928
  }],
1892
1929
  /**
1893
1930
  * Place Self
1894
1931
  * @see https://tailwindcss.com/docs/place-self
1895
1932
  */
1896
1933
  "place-self": [{
1897
- "place-self": ["auto", ...W()]
1934
+ "place-self": ["auto", ...G()]
1898
1935
  }],
1899
1936
  // Spacing
1900
1937
  /**
@@ -2111,21 +2148,21 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
2111
2148
  * @see https://tailwindcss.com/docs/height
2112
2149
  */
2113
2150
  "block-size": [{
2114
- block: ["auto", ...G()]
2151
+ block: ["auto", ...W()]
2115
2152
  }],
2116
2153
  /**
2117
2154
  * Min-Block Size
2118
2155
  * @see https://tailwindcss.com/docs/min-height
2119
2156
  */
2120
2157
  "min-block-size": [{
2121
- "min-block": ["auto", ...G()]
2158
+ "min-block": ["auto", ...W()]
2122
2159
  }],
2123
2160
  /**
2124
2161
  * Max-Block Size
2125
2162
  * @see https://tailwindcss.com/docs/max-height
2126
2163
  */
2127
2164
  "max-block-size": [{
2128
- "max-block": ["none", ...G()]
2165
+ "max-block": ["none", ...W()]
2129
2166
  }],
2130
2167
  /**
2131
2168
  * Width
@@ -2211,21 +2248,21 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
2211
2248
  * @see https://tailwindcss.com/docs/font-weight
2212
2249
  */
2213
2250
  "font-weight": [{
2214
- font: [r, os, Zo]
2251
+ font: [r, ss, Qo]
2215
2252
  }],
2216
2253
  /**
2217
2254
  * Font Stretch
2218
2255
  * @see https://tailwindcss.com/docs/font-stretch
2219
2256
  */
2220
2257
  "font-stretch": [{
2221
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", bt, A]
2258
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", yt, A]
2222
2259
  }],
2223
2260
  /**
2224
2261
  * Font Family
2225
2262
  * @see https://tailwindcss.com/docs/font-family
2226
2263
  */
2227
2264
  "font-family": [{
2228
- font: [ts, Qo, t]
2265
+ font: [ns, es, t]
2229
2266
  }],
2230
2267
  /**
2231
2268
  * Font Feature Settings
@@ -2394,7 +2431,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
2394
2431
  * @see https://tailwindcss.com/docs/tab-size
2395
2432
  */
2396
2433
  "tab-size": [{
2397
- tab: [ne, C, A]
2434
+ tab: [re, C, A]
2398
2435
  }],
2399
2436
  /**
2400
2437
  * Vertical Alignment
@@ -2467,7 +2504,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
2467
2504
  * @see https://tailwindcss.com/docs/background-position
2468
2505
  */
2469
2506
  "bg-position": [{
2470
- bg: Le()
2507
+ bg: Me()
2471
2508
  }],
2472
2509
  /**
2473
2510
  * Background Repeat
@@ -2491,10 +2528,10 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
2491
2528
  bg: ["none", {
2492
2529
  linear: [{
2493
2530
  to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
2494
- }, ne, C, A],
2531
+ }, re, C, A],
2495
2532
  radial: ["", C, A],
2496
- conic: [ne, C, A]
2497
- }, rs, es]
2533
+ conic: [re, C, A]
2534
+ }, os, ts]
2498
2535
  }],
2499
2536
  /**
2500
2537
  * Background Color
@@ -2508,21 +2545,21 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
2508
2545
  * @see https://tailwindcss.com/docs/gradient-color-stops
2509
2546
  */
2510
2547
  "gradient-from-pos": [{
2511
- from: Me()
2548
+ from: ze()
2512
2549
  }],
2513
2550
  /**
2514
2551
  * Gradient Color Stops Via Position
2515
2552
  * @see https://tailwindcss.com/docs/gradient-color-stops
2516
2553
  */
2517
2554
  "gradient-via-pos": [{
2518
- via: Me()
2555
+ via: ze()
2519
2556
  }],
2520
2557
  /**
2521
2558
  * Gradient Color Stops To Position
2522
2559
  * @see https://tailwindcss.com/docs/gradient-color-stops
2523
2560
  */
2524
2561
  "gradient-to-pos": [{
2525
- to: Me()
2562
+ to: ze()
2526
2563
  }],
2527
2564
  /**
2528
2565
  * Gradient Color Stops From
@@ -2997,14 +3034,14 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
2997
3034
  * @see https://tailwindcss.com/docs/mix-blend-mode
2998
3035
  */
2999
3036
  "mix-blend": [{
3000
- "mix-blend": [...ze(), "plus-darker", "plus-lighter"]
3037
+ "mix-blend": [...De(), "plus-darker", "plus-lighter"]
3001
3038
  }],
3002
3039
  /**
3003
3040
  * Background Blend Mode
3004
3041
  * @see https://tailwindcss.com/docs/background-blend-mode
3005
3042
  */
3006
3043
  "bg-blend": [{
3007
- "bg-blend": ze()
3044
+ "bg-blend": De()
3008
3045
  }],
3009
3046
  /**
3010
3047
  * Mask Clip
@@ -3172,7 +3209,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
3172
3209
  * @see https://tailwindcss.com/docs/mask-position
3173
3210
  */
3174
3211
  "mask-position": [{
3175
- mask: Le()
3212
+ mask: Me()
3176
3213
  }],
3177
3214
  /**
3178
3215
  * Mask Repeat
@@ -3490,56 +3527,56 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
3490
3527
  * @see https://tailwindcss.com/docs/rotate
3491
3528
  */
3492
3529
  rotate: [{
3493
- rotate: Re()
3530
+ rotate: Se()
3494
3531
  }],
3495
3532
  /**
3496
3533
  * Rotate X
3497
3534
  * @see https://tailwindcss.com/docs/rotate
3498
3535
  */
3499
3536
  "rotate-x": [{
3500
- "rotate-x": Re()
3537
+ "rotate-x": Se()
3501
3538
  }],
3502
3539
  /**
3503
3540
  * Rotate Y
3504
3541
  * @see https://tailwindcss.com/docs/rotate
3505
3542
  */
3506
3543
  "rotate-y": [{
3507
- "rotate-y": Re()
3544
+ "rotate-y": Se()
3508
3545
  }],
3509
3546
  /**
3510
3547
  * Rotate Z
3511
3548
  * @see https://tailwindcss.com/docs/rotate
3512
3549
  */
3513
3550
  "rotate-z": [{
3514
- "rotate-z": Re()
3551
+ "rotate-z": Se()
3515
3552
  }],
3516
3553
  /**
3517
3554
  * Scale
3518
3555
  * @see https://tailwindcss.com/docs/scale
3519
3556
  */
3520
3557
  scale: [{
3521
- scale: Se()
3558
+ scale: Te()
3522
3559
  }],
3523
3560
  /**
3524
3561
  * Scale X
3525
3562
  * @see https://tailwindcss.com/docs/scale
3526
3563
  */
3527
3564
  "scale-x": [{
3528
- "scale-x": Se()
3565
+ "scale-x": Te()
3529
3566
  }],
3530
3567
  /**
3531
3568
  * Scale Y
3532
3569
  * @see https://tailwindcss.com/docs/scale
3533
3570
  */
3534
3571
  "scale-y": [{
3535
- "scale-y": Se()
3572
+ "scale-y": Te()
3536
3573
  }],
3537
3574
  /**
3538
3575
  * Scale Z
3539
3576
  * @see https://tailwindcss.com/docs/scale
3540
3577
  */
3541
3578
  "scale-z": [{
3542
- "scale-z": Se()
3579
+ "scale-z": Te()
3543
3580
  }],
3544
3581
  /**
3545
3582
  * Scale 3D
@@ -3626,7 +3663,7 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
3626
3663
  * @see https://tailwindcss.com/docs/zoom
3627
3664
  */
3628
3665
  zoom: [{
3629
- zoom: [ne, C, A]
3666
+ zoom: [re, C, A]
3630
3667
  }],
3631
3668
  // ---------------------
3632
3669
  // --- Interactivity ---
@@ -4036,11 +4073,11 @@ const Zt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Qt = $n, h
4036
4073
  postfixLookupClassGroups: ["container-type"],
4037
4074
  orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
4038
4075
  };
4039
- }, as = /* @__PURE__ */ Do(is);
4076
+ }, ls = /* @__PURE__ */ Uo(as);
4040
4077
  function be(...e) {
4041
- return as($n(e));
4078
+ return ls($n(e));
4042
4079
  }
4043
- const ls = ho(
4080
+ const cs = bo(
4044
4081
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
4045
4082
  {
4046
4083
  variants: {
@@ -4064,16 +4101,16 @@ const ls = ho(
4064
4101
  size: "default"
4065
4102
  }
4066
4103
  }
4067
- ), cs = f.forwardRef(({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => /* @__PURE__ */ w(
4068
- r ? co : "button",
4104
+ ), ds = f.forwardRef(({ className: e, variant: t, size: n, asChild: r = !1, ...o }, s) => /* @__PURE__ */ w(
4105
+ r ? uo : "button",
4069
4106
  {
4070
- className: be(ls({ variant: t, size: n, className: e })),
4107
+ className: be(cs({ variant: t, size: n, className: e })),
4071
4108
  ref: s,
4072
4109
  ...o
4073
4110
  }
4074
4111
  ));
4075
- cs.displayName = "Button";
4076
- const ds = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4112
+ ds.displayName = "Button";
4113
+ const us = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4077
4114
  "div",
4078
4115
  {
4079
4116
  ref: n,
@@ -4081,8 +4118,8 @@ const ds = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4081
4118
  ...t
4082
4119
  }
4083
4120
  ));
4084
- ds.displayName = "Card";
4085
- const us = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4121
+ us.displayName = "Card";
4122
+ const fs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4086
4123
  "div",
4087
4124
  {
4088
4125
  ref: n,
@@ -4090,8 +4127,8 @@ const us = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4090
4127
  ...t
4091
4128
  }
4092
4129
  ));
4093
- us.displayName = "CardHeader";
4094
- const fs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4130
+ fs.displayName = "CardHeader";
4131
+ const ms = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4095
4132
  "div",
4096
4133
  {
4097
4134
  ref: n,
@@ -4099,8 +4136,8 @@ const fs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4099
4136
  ...t
4100
4137
  }
4101
4138
  ));
4102
- fs.displayName = "CardTitle";
4103
- const ms = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4139
+ ms.displayName = "CardTitle";
4140
+ const ps = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4104
4141
  "div",
4105
4142
  {
4106
4143
  ref: n,
@@ -4108,10 +4145,10 @@ const ms = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4108
4145
  ...t
4109
4146
  }
4110
4147
  ));
4111
- ms.displayName = "CardDescription";
4112
- const ps = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", { ref: n, className: be("p-6 pt-0", e), ...t }));
4113
- ps.displayName = "CardContent";
4114
- const gs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4148
+ ps.displayName = "CardDescription";
4149
+ const gs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w("div", { ref: n, className: be("p-6 pt-0", e), ...t }));
4150
+ gs.displayName = "CardContent";
4151
+ const hs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4115
4152
  "div",
4116
4153
  {
4117
4154
  ref: n,
@@ -4119,7 +4156,7 @@ const gs = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ w(
4119
4156
  ...t
4120
4157
  }
4121
4158
  ));
4122
- gs.displayName = "CardFooter";
4159
+ hs.displayName = "CardFooter";
4123
4160
  function le(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
4124
4161
  return function(o) {
4125
4162
  if (e?.(o), n === !1 || !o.defaultPrevented)
@@ -4154,9 +4191,9 @@ function Kn(e, t = []) {
4154
4191
  );
4155
4192
  };
4156
4193
  };
4157
- return o.scopeName = e, [r, hs(o, ...t)];
4194
+ return o.scopeName = e, [r, bs(o, ...t)];
4158
4195
  }
4159
- function hs(...e) {
4196
+ function bs(...e) {
4160
4197
  const t = e[0];
4161
4198
  if (e.length === 1) return t;
4162
4199
  const n = () => {
@@ -4175,9 +4212,9 @@ function hs(...e) {
4175
4212
  return n.scopeName = t.scopeName, n;
4176
4213
  }
4177
4214
  // @__NO_SIDE_EFFECTS__
4178
- function bs(e) {
4179
- const t = /* @__PURE__ */ ys(e), n = f.forwardRef((r, o) => {
4180
- const { children: s, ...i } = r, l = f.Children.toArray(s), c = l.find(ws);
4215
+ function ys(e) {
4216
+ const t = /* @__PURE__ */ xs(e), n = f.forwardRef((r, o) => {
4217
+ const { children: s, ...i } = r, l = f.Children.toArray(s), c = l.find(vs);
4181
4218
  if (c) {
4182
4219
  const a = c.props.children, d = l.map((u) => u === c ? f.Children.count(a) > 1 ? f.Children.only(null) : f.isValidElement(a) ? a.props.children : null : u);
4183
4220
  return /* @__PURE__ */ w(t, { ...i, ref: o, children: f.isValidElement(a) ? f.cloneElement(a, void 0, d) : null });
@@ -4187,22 +4224,22 @@ function bs(e) {
4187
4224
  return n.displayName = `${e}.Slot`, n;
4188
4225
  }
4189
4226
  // @__NO_SIDE_EFFECTS__
4190
- function ys(e) {
4227
+ function xs(e) {
4191
4228
  const t = f.forwardRef((n, r) => {
4192
4229
  const { children: o, ...s } = n;
4193
4230
  if (f.isValidElement(o)) {
4194
- const i = Es(o), l = vs(s, o.props);
4231
+ const i = As(o), l = Es(s, o.props);
4195
4232
  return o.type !== f.Fragment && (l.ref = r ? It(r, i) : i), f.cloneElement(o, l);
4196
4233
  }
4197
4234
  return f.Children.count(o) > 1 ? f.Children.only(null) : null;
4198
4235
  });
4199
4236
  return t.displayName = `${e}.SlotClone`, t;
4200
4237
  }
4201
- var xs = /* @__PURE__ */ Symbol("radix.slottable");
4202
- function ws(e) {
4203
- return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === xs;
4238
+ var ws = /* @__PURE__ */ Symbol("radix.slottable");
4239
+ function vs(e) {
4240
+ return f.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === ws;
4204
4241
  }
4205
- function vs(e, t) {
4242
+ function Es(e, t) {
4206
4243
  const n = { ...t };
4207
4244
  for (const r in t) {
4208
4245
  const o = e[r], s = t[r];
@@ -4213,11 +4250,11 @@ function vs(e, t) {
4213
4250
  }
4214
4251
  return { ...e, ...n };
4215
4252
  }
4216
- function Es(e) {
4253
+ function As(e) {
4217
4254
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
4218
4255
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
4219
4256
  }
4220
- var As = [
4257
+ var Cs = [
4221
4258
  "a",
4222
4259
  "button",
4223
4260
  "div",
@@ -4235,24 +4272,24 @@ var As = [
4235
4272
  "span",
4236
4273
  "svg",
4237
4274
  "ul"
4238
- ], Ce = As.reduce((e, t) => {
4239
- const n = /* @__PURE__ */ bs(`Primitive.${t}`), r = f.forwardRef((o, s) => {
4275
+ ], Re = Cs.reduce((e, t) => {
4276
+ const n = /* @__PURE__ */ ys(`Primitive.${t}`), r = f.forwardRef((o, s) => {
4240
4277
  const { asChild: i, ...l } = o, c = i ? n : t;
4241
4278
  return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ w(c, { ...l, ref: s });
4242
4279
  });
4243
4280
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
4244
4281
  }, {});
4245
- function Cs(e, t) {
4282
+ function Rs(e, t) {
4246
4283
  e && An.flushSync(() => e.dispatchEvent(t));
4247
4284
  }
4248
- function lt(e) {
4285
+ function ct(e) {
4249
4286
  const t = f.useRef(e);
4250
4287
  return f.useEffect(() => {
4251
4288
  t.current = e;
4252
4289
  }), f.useMemo(() => (...n) => t.current?.(...n), []);
4253
4290
  }
4254
- function Rs(e, t = globalThis?.document) {
4255
- const n = lt(e);
4291
+ function Ss(e, t = globalThis?.document) {
4292
+ const n = ct(e);
4256
4293
  f.useEffect(() => {
4257
4294
  const r = (o) => {
4258
4295
  o.key === "Escape" && n(o);
@@ -4260,7 +4297,7 @@ function Rs(e, t = globalThis?.document) {
4260
4297
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
4261
4298
  }, [n, t]);
4262
4299
  }
4263
- var Ss = "DismissableLayer", At = "dismissableLayer.update", Ts = "dismissableLayer.pointerDownOutside", Os = "dismissableLayer.focusOutside", an, Xn = f.createContext({
4300
+ var Ts = "DismissableLayer", Ct = "dismissableLayer.update", Os = "dismissableLayer.pointerDownOutside", ks = "dismissableLayer.focusOutside", an, Xn = f.createContext({
4264
4301
  layers: /* @__PURE__ */ new Set(),
4265
4302
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
4266
4303
  branches: /* @__PURE__ */ new Set()
@@ -4274,14 +4311,14 @@ var Ss = "DismissableLayer", At = "dismissableLayer.update", Ts = "dismissableLa
4274
4311
  onInteractOutside: i,
4275
4312
  onDismiss: l,
4276
4313
  ...c
4277
- } = e, a = f.useContext(Xn), [d, u] = f.useState(null), m = d?.ownerDocument ?? globalThis?.document, [, p] = f.useState({}), h = Ee(t, (T) => u(T)), b = Array.from(a.layers), [x] = [...a.layersWithOutsidePointerEventsDisabled].slice(-1), y = b.indexOf(x), E = d ? b.indexOf(d) : -1, O = a.layersWithOutsidePointerEventsDisabled.size > 0, S = E >= y, k = Ps((T) => {
4314
+ } = e, a = f.useContext(Xn), [d, u] = f.useState(null), m = d?.ownerDocument ?? globalThis?.document, [, p] = f.useState({}), h = Ae(t, (T) => u(T)), b = Array.from(a.layers), [x] = [...a.layersWithOutsidePointerEventsDisabled].slice(-1), y = b.indexOf(x), E = d ? b.indexOf(d) : -1, O = a.layersWithOutsidePointerEventsDisabled.size > 0, S = E >= y, k = _s((T) => {
4278
4315
  const v = T.target, $ = [...a.branches].some((M) => M.contains(v));
4279
4316
  !S || $ || (o?.(T), i?.(T), T.defaultPrevented || l?.());
4280
- }, m), N = _s((T) => {
4317
+ }, m), N = $s((T) => {
4281
4318
  const v = T.target;
4282
4319
  [...a.branches].some((M) => M.contains(v)) || (s?.(T), i?.(T), T.defaultPrevented || l?.());
4283
4320
  }, m);
4284
- return Rs((T) => {
4321
+ return Ss((T) => {
4285
4322
  E === a.layers.size - 1 && (r?.(T), !T.defaultPrevented && l && (T.preventDefault(), l()));
4286
4323
  }, m), f.useEffect(() => {
4287
4324
  if (d)
@@ -4292,9 +4329,9 @@ var Ss = "DismissableLayer", At = "dismissableLayer.update", Ts = "dismissableLa
4292
4329
  d && (a.layers.delete(d), a.layersWithOutsidePointerEventsDisabled.delete(d), ln());
4293
4330
  }, [d, a]), f.useEffect(() => {
4294
4331
  const T = () => p({});
4295
- return document.addEventListener(At, T), () => document.removeEventListener(At, T);
4332
+ return document.addEventListener(Ct, T), () => document.removeEventListener(Ct, T);
4296
4333
  }, []), /* @__PURE__ */ w(
4297
- Ce.div,
4334
+ Re.div,
4298
4335
  {
4299
4336
  ...c,
4300
4337
  ref: h,
@@ -4312,27 +4349,27 @@ var Ss = "DismissableLayer", At = "dismissableLayer.update", Ts = "dismissableLa
4312
4349
  );
4313
4350
  }
4314
4351
  );
4315
- qn.displayName = Ss;
4316
- var ks = "DismissableLayerBranch", Ns = f.forwardRef((e, t) => {
4317
- const n = f.useContext(Xn), r = f.useRef(null), o = Ee(t, r);
4352
+ qn.displayName = Ts;
4353
+ var Ns = "DismissableLayerBranch", Ps = f.forwardRef((e, t) => {
4354
+ const n = f.useContext(Xn), r = f.useRef(null), o = Ae(t, r);
4318
4355
  return f.useEffect(() => {
4319
4356
  const s = r.current;
4320
4357
  if (s)
4321
4358
  return n.branches.add(s), () => {
4322
4359
  n.branches.delete(s);
4323
4360
  };
4324
- }, [n.branches]), /* @__PURE__ */ w(Ce.div, { ...e, ref: o });
4361
+ }, [n.branches]), /* @__PURE__ */ w(Re.div, { ...e, ref: o });
4325
4362
  });
4326
- Ns.displayName = ks;
4327
- function Ps(e, t = globalThis?.document) {
4328
- const n = lt(e), r = f.useRef(!1), o = f.useRef(() => {
4363
+ Ps.displayName = Ns;
4364
+ function _s(e, t = globalThis?.document) {
4365
+ const n = ct(e), r = f.useRef(!1), o = f.useRef(() => {
4329
4366
  });
4330
4367
  return f.useEffect(() => {
4331
4368
  const s = (l) => {
4332
4369
  if (l.target && !r.current) {
4333
4370
  let c = function() {
4334
4371
  Jn(
4335
- Ts,
4372
+ Os,
4336
4373
  n,
4337
4374
  a,
4338
4375
  { discrete: !0 }
@@ -4354,11 +4391,11 @@ function Ps(e, t = globalThis?.document) {
4354
4391
  onPointerDownCapture: () => r.current = !0
4355
4392
  };
4356
4393
  }
4357
- function _s(e, t = globalThis?.document) {
4358
- const n = lt(e), r = f.useRef(!1);
4394
+ function $s(e, t = globalThis?.document) {
4395
+ const n = ct(e), r = f.useRef(!1);
4359
4396
  return f.useEffect(() => {
4360
4397
  const o = (s) => {
4361
- s.target && !r.current && Jn(Os, n, { originalEvent: s }, {
4398
+ s.target && !r.current && Jn(ks, n, { originalEvent: s }, {
4362
4399
  discrete: !1
4363
4400
  });
4364
4401
  };
@@ -4369,32 +4406,32 @@ function _s(e, t = globalThis?.document) {
4369
4406
  };
4370
4407
  }
4371
4408
  function ln() {
4372
- const e = new CustomEvent(At);
4409
+ const e = new CustomEvent(Ct);
4373
4410
  document.dispatchEvent(e);
4374
4411
  }
4375
4412
  function Jn(e, t, n, { discrete: r }) {
4376
4413
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
4377
- t && o.addEventListener(e, t, { once: !0 }), r ? Cs(o, s) : o.dispatchEvent(s);
4378
- }
4379
- var we = globalThis?.document ? f.useLayoutEffect : () => {
4380
- }, $s = f[" useId ".trim().toString()] || (() => {
4381
- }), Is = 0;
4382
- function Ls(e) {
4383
- const [t, n] = f.useState($s());
4384
- return we(() => {
4385
- n((r) => r ?? String(Is++));
4414
+ t && o.addEventListener(e, t, { once: !0 }), r ? Rs(o, s) : o.dispatchEvent(s);
4415
+ }
4416
+ var ve = globalThis?.document ? f.useLayoutEffect : () => {
4417
+ }, Is = f[" useId ".trim().toString()] || (() => {
4418
+ }), Ls = 0;
4419
+ function Ms(e) {
4420
+ const [t, n] = f.useState(Is());
4421
+ return ve(() => {
4422
+ n((r) => r ?? String(Ls++));
4386
4423
  }, [e]), t ? `radix-${t}` : "";
4387
4424
  }
4388
- const Ms = ["top", "right", "bottom", "left"], pe = Math.min, X = Math.max, ot = Math.round, Je = Math.floor, oe = (e) => ({
4425
+ const zs = ["top", "right", "bottom", "left"], pe = Math.min, X = Math.max, ot = Math.round, Je = Math.floor, se = (e) => ({
4389
4426
  x: e,
4390
4427
  y: e
4391
- }), zs = {
4428
+ }), Ds = {
4392
4429
  left: "right",
4393
4430
  right: "left",
4394
4431
  bottom: "top",
4395
4432
  top: "bottom"
4396
4433
  };
4397
- function Ct(e, t, n) {
4434
+ function Rt(e, t, n) {
4398
4435
  return X(e, pe(t, n));
4399
4436
  }
4400
4437
  function ce(e, t) {
@@ -4403,7 +4440,7 @@ function ce(e, t) {
4403
4440
  function de(e) {
4404
4441
  return e.split("-")[0];
4405
4442
  }
4406
- function $e(e) {
4443
+ function Ie(e) {
4407
4444
  return e.split("-")[1];
4408
4445
  }
4409
4446
  function zt(e) {
@@ -4412,49 +4449,49 @@ function zt(e) {
4412
4449
  function Dt(e) {
4413
4450
  return e === "y" ? "height" : "width";
4414
4451
  }
4415
- function re(e) {
4452
+ function oe(e) {
4416
4453
  const t = e[0];
4417
4454
  return t === "t" || t === "b" ? "y" : "x";
4418
4455
  }
4419
- function Ft(e) {
4420
- return zt(re(e));
4456
+ function Ut(e) {
4457
+ return zt(oe(e));
4421
4458
  }
4422
- function Ds(e, t, n) {
4459
+ function Us(e, t, n) {
4423
4460
  n === void 0 && (n = !1);
4424
- const r = $e(e), o = Ft(e), s = Dt(o);
4461
+ const r = Ie(e), o = Ut(e), s = Dt(o);
4425
4462
  let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
4426
4463
  return t.reference[s] > t.floating[s] && (i = st(i)), [i, st(i)];
4427
4464
  }
4428
4465
  function Fs(e) {
4429
4466
  const t = st(e);
4430
- return [Rt(e), t, Rt(t)];
4467
+ return [St(e), t, St(t)];
4431
4468
  }
4432
- function Rt(e) {
4469
+ function St(e) {
4433
4470
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
4434
4471
  }
4435
- const cn = ["left", "right"], dn = ["right", "left"], Us = ["top", "bottom"], Ws = ["bottom", "top"];
4436
- function Gs(e, t, n) {
4472
+ const cn = ["left", "right"], dn = ["right", "left"], Gs = ["top", "bottom"], Ws = ["bottom", "top"];
4473
+ function Vs(e, t, n) {
4437
4474
  switch (e) {
4438
4475
  case "top":
4439
4476
  case "bottom":
4440
4477
  return n ? t ? dn : cn : t ? cn : dn;
4441
4478
  case "left":
4442
4479
  case "right":
4443
- return t ? Us : Ws;
4480
+ return t ? Gs : Ws;
4444
4481
  default:
4445
4482
  return [];
4446
4483
  }
4447
4484
  }
4448
- function Vs(e, t, n, r) {
4449
- const o = $e(e);
4450
- let s = Gs(de(e), n === "start", r);
4451
- return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(Rt)))), s;
4485
+ function Hs(e, t, n, r) {
4486
+ const o = Ie(e);
4487
+ let s = Vs(de(e), n === "start", r);
4488
+ return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(St)))), s;
4452
4489
  }
4453
4490
  function st(e) {
4454
4491
  const t = de(e);
4455
- return zs[t] + e.slice(t.length);
4492
+ return Ds[t] + e.slice(t.length);
4456
4493
  }
4457
- function Hs(e) {
4494
+ function Bs(e) {
4458
4495
  return {
4459
4496
  top: 0,
4460
4497
  right: 0,
@@ -4464,7 +4501,7 @@ function Hs(e) {
4464
4501
  };
4465
4502
  }
4466
4503
  function Zn(e) {
4467
- return typeof e != "number" ? Hs(e) : {
4504
+ return typeof e != "number" ? Bs(e) : {
4468
4505
  top: e,
4469
4506
  right: e,
4470
4507
  bottom: e,
@@ -4494,7 +4531,7 @@ function un(e, t, n) {
4494
4531
  reference: r,
4495
4532
  floating: o
4496
4533
  } = e;
4497
- const s = re(t), i = Ft(t), l = Dt(i), c = de(t), a = s === "y", d = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, m = r[l] / 2 - o[l] / 2;
4534
+ const s = oe(t), i = Ut(t), l = Dt(i), c = de(t), a = s === "y", d = r.x + r.width / 2 - o.width / 2, u = r.y + r.height / 2 - o.height / 2, m = r[l] / 2 - o[l] / 2;
4498
4535
  let p;
4499
4536
  switch (c) {
4500
4537
  case "top":
@@ -4527,7 +4564,7 @@ function un(e, t, n) {
4527
4564
  y: r.y
4528
4565
  };
4529
4566
  }
4530
- switch ($e(t)) {
4567
+ switch (Ie(t)) {
4531
4568
  case "start":
4532
4569
  p[i] -= m * (n && a ? -1 : 1);
4533
4570
  break;
@@ -4537,7 +4574,7 @@ function un(e, t, n) {
4537
4574
  }
4538
4575
  return p;
4539
4576
  }
4540
- async function Bs(e, t) {
4577
+ async function js(e, t) {
4541
4578
  var n;
4542
4579
  t === void 0 && (t = {});
4543
4580
  const {
@@ -4582,7 +4619,7 @@ async function Bs(e, t) {
4582
4619
  right: (k.right - y.right + h.right) / S.x
4583
4620
  };
4584
4621
  }
4585
- const js = 50, Ys = async (e, t, n) => {
4622
+ const Ys = 50, Ks = async (e, t, n) => {
4586
4623
  const {
4587
4624
  placement: r = "bottom",
4588
4625
  strategy: o = "absolute",
@@ -4590,7 +4627,7 @@ const js = 50, Ys = async (e, t, n) => {
4590
4627
  platform: i
4591
4628
  } = n, l = i.detectOverflow ? i : {
4592
4629
  ...i,
4593
- detectOverflow: Bs
4630
+ detectOverflow: js
4594
4631
  }, c = await (i.isRTL == null ? void 0 : i.isRTL(t));
4595
4632
  let a = await i.getElementRects({
4596
4633
  reference: e,
@@ -4630,7 +4667,7 @@ const js = 50, Ys = async (e, t, n) => {
4630
4667
  d = O ?? d, u = S ?? u, h[y] = {
4631
4668
  ...h[y],
4632
4669
  ...k
4633
- }, N && p < js && (p++, typeof N == "object" && (N.placement && (m = N.placement), N.rects && (a = N.rects === !0 ? await i.getElementRects({
4670
+ }, N && p < Ys && (p++, typeof N == "object" && (N.placement && (m = N.placement), N.rects && (a = N.rects === !0 ? await i.getElementRects({
4634
4671
  reference: e,
4635
4672
  floating: t,
4636
4673
  strategy: o
@@ -4646,7 +4683,7 @@ const js = 50, Ys = async (e, t, n) => {
4646
4683
  strategy: o,
4647
4684
  middlewareData: h
4648
4685
  };
4649
- }, Ks = (e) => ({
4686
+ }, Xs = (e) => ({
4650
4687
  name: "arrow",
4651
4688
  options: e,
4652
4689
  async fn(t) {
@@ -4667,15 +4704,15 @@ const js = 50, Ys = async (e, t, n) => {
4667
4704
  const u = Zn(d), m = {
4668
4705
  x: n,
4669
4706
  y: r
4670
- }, p = Ft(o), h = Dt(p), b = await i.getDimensions(a), x = p === "y", y = x ? "top" : "left", E = x ? "bottom" : "right", O = x ? "clientHeight" : "clientWidth", S = s.reference[h] + s.reference[p] - m[p] - s.floating[h], k = m[p] - s.reference[p], N = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a));
4707
+ }, p = Ut(o), h = Dt(p), b = await i.getDimensions(a), x = p === "y", y = x ? "top" : "left", E = x ? "bottom" : "right", O = x ? "clientHeight" : "clientWidth", S = s.reference[h] + s.reference[p] - m[p] - s.floating[h], k = m[p] - s.reference[p], N = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a));
4671
4708
  let T = N ? N[O] : 0;
4672
4709
  (!T || !await (i.isElement == null ? void 0 : i.isElement(N))) && (T = l.floating[O] || s.floating[h]);
4673
- const v = S / 2 - k / 2, $ = T / 2 - b[h] / 2 - 1, M = pe(u[y], $), j = pe(u[E], $), U = M, D = T - b[h] - j, z = T / 2 - b[h] / 2 + v, W = Ct(U, z, D), I = !c.arrow && $e(o) != null && z !== W && s.reference[h] / 2 - (z < U ? M : j) - b[h] / 2 < 0, L = I ? z < U ? z - U : z - D : 0;
4710
+ const v = S / 2 - k / 2, $ = T / 2 - b[h] / 2 - 1, M = pe(u[y], $), j = pe(u[E], $), F = M, U = T - b[h] - j, z = T / 2 - b[h] / 2 + v, G = Rt(F, z, U), I = !c.arrow && Ie(o) != null && z !== G && s.reference[h] / 2 - (z < F ? M : j) - b[h] / 2 < 0, L = I ? z < F ? z - F : z - U : 0;
4674
4711
  return {
4675
4712
  [p]: m[p] + L,
4676
4713
  data: {
4677
- [p]: W,
4678
- centerOffset: z - W - L,
4714
+ [p]: G,
4715
+ centerOffset: z - G - L,
4679
4716
  ...I && {
4680
4717
  alignmentOffset: L
4681
4718
  }
@@ -4683,7 +4720,7 @@ const js = 50, Ys = async (e, t, n) => {
4683
4720
  reset: I
4684
4721
  };
4685
4722
  }
4686
- }), Xs = function(e) {
4723
+ }), qs = function(e) {
4687
4724
  return e === void 0 && (e = {}), {
4688
4725
  name: "flip",
4689
4726
  options: e,
@@ -4707,46 +4744,46 @@ const js = 50, Ys = async (e, t, n) => {
4707
4744
  } = ce(e, t);
4708
4745
  if ((n = s.arrow) != null && n.alignmentOffset)
4709
4746
  return {};
4710
- const y = de(o), E = re(l), O = de(l) === l, S = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), k = m || (O || !b ? [st(l)] : Fs(l)), N = h !== "none";
4711
- !m && N && k.push(...Vs(l, b, h, S));
4747
+ const y = de(o), E = oe(l), O = de(l) === l, S = await (c.isRTL == null ? void 0 : c.isRTL(a.floating)), k = m || (O || !b ? [st(l)] : Fs(l)), N = h !== "none";
4748
+ !m && N && k.push(...Hs(l, b, h, S));
4712
4749
  const T = [l, ...k], v = await c.detectOverflow(t, x), $ = [];
4713
4750
  let M = ((r = s.flip) == null ? void 0 : r.overflows) || [];
4714
4751
  if (d && $.push(v[y]), u) {
4715
- const z = Ds(o, i, S);
4752
+ const z = Us(o, i, S);
4716
4753
  $.push(v[z[0]], v[z[1]]);
4717
4754
  }
4718
4755
  if (M = [...M, {
4719
4756
  placement: o,
4720
4757
  overflows: $
4721
4758
  }], !$.every((z) => z <= 0)) {
4722
- var j, U;
4723
- const z = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1, W = T[z];
4724
- if (W && (!(u === "alignment" ? E !== re(W) : !1) || // We leave the current main axis only if every placement on that axis
4759
+ var j, F;
4760
+ const z = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1, G = T[z];
4761
+ if (G && (!(u === "alignment" ? E !== oe(G) : !1) || // We leave the current main axis only if every placement on that axis
4725
4762
  // overflows the main axis.
4726
- M.every((_) => re(_.placement) === E ? _.overflows[0] > 0 : !0)))
4763
+ M.every((_) => oe(_.placement) === E ? _.overflows[0] > 0 : !0)))
4727
4764
  return {
4728
4765
  data: {
4729
4766
  index: z,
4730
4767
  overflows: M
4731
4768
  },
4732
4769
  reset: {
4733
- placement: W
4770
+ placement: G
4734
4771
  }
4735
4772
  };
4736
- let I = (U = M.filter((L) => L.overflows[0] <= 0).sort((L, _) => L.overflows[1] - _.overflows[1])[0]) == null ? void 0 : U.placement;
4773
+ let I = (F = M.filter((L) => L.overflows[0] <= 0).sort((L, _) => L.overflows[1] - _.overflows[1])[0]) == null ? void 0 : F.placement;
4737
4774
  if (!I)
4738
4775
  switch (p) {
4739
4776
  case "bestFit": {
4740
- var D;
4741
- const L = (D = M.filter((_) => {
4777
+ var U;
4778
+ const L = (U = M.filter((_) => {
4742
4779
  if (N) {
4743
- const G = re(_.placement);
4744
- return G === E || // Create a bias to the `y` side axis due to horizontal
4780
+ const W = oe(_.placement);
4781
+ return W === E || // Create a bias to the `y` side axis due to horizontal
4745
4782
  // reading directions favoring greater width.
4746
- G === "y";
4783
+ W === "y";
4747
4784
  }
4748
4785
  return !0;
4749
- }).map((_) => [_.placement, _.overflows.filter((G) => G > 0).reduce((G, R) => G + R, 0)]).sort((_, G) => _[1] - G[1])[0]) == null ? void 0 : D[0];
4786
+ }).map((_) => [_.placement, _.overflows.filter((W) => W > 0).reduce((W, R) => W + R, 0)]).sort((_, W) => _[1] - W[1])[0]) == null ? void 0 : U[0];
4750
4787
  L && (I = L);
4751
4788
  break;
4752
4789
  }
@@ -4774,9 +4811,9 @@ function fn(e, t) {
4774
4811
  };
4775
4812
  }
4776
4813
  function mn(e) {
4777
- return Ms.some((t) => e[t] >= 0);
4814
+ return zs.some((t) => e[t] >= 0);
4778
4815
  }
4779
- const qs = function(e) {
4816
+ const Js = function(e) {
4780
4817
  return e === void 0 && (e = {}), {
4781
4818
  name: "hide",
4782
4819
  options: e,
@@ -4819,12 +4856,12 @@ const qs = function(e) {
4819
4856
  }
4820
4857
  };
4821
4858
  }, Qn = /* @__PURE__ */ new Set(["left", "top"]);
4822
- async function Js(e, t) {
4859
+ async function Zs(e, t) {
4823
4860
  const {
4824
4861
  placement: n,
4825
4862
  platform: r,
4826
4863
  elements: o
4827
- } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = de(n), l = $e(n), c = re(n) === "y", a = Qn.has(i) ? -1 : 1, d = s && c ? -1 : 1, u = ce(t, e);
4864
+ } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = de(n), l = Ie(n), c = oe(n) === "y", a = Qn.has(i) ? -1 : 1, d = s && c ? -1 : 1, u = ce(t, e);
4828
4865
  let {
4829
4866
  mainAxis: m,
4830
4867
  crossAxis: p,
@@ -4846,7 +4883,7 @@ async function Js(e, t) {
4846
4883
  y: p * d
4847
4884
  };
4848
4885
  }
4849
- const Zs = function(e) {
4886
+ const Qs = function(e) {
4850
4887
  return e === void 0 && (e = 0), {
4851
4888
  name: "offset",
4852
4889
  options: e,
@@ -4857,7 +4894,7 @@ const Zs = function(e) {
4857
4894
  y: s,
4858
4895
  placement: i,
4859
4896
  middlewareData: l
4860
- } = t, c = await Js(t, e);
4897
+ } = t, c = await Zs(t, e);
4861
4898
  return i === ((n = l.offset) == null ? void 0 : n.placement) && (r = l.arrow) != null && r.alignmentOffset ? {} : {
4862
4899
  x: o + c.x,
4863
4900
  y: s + c.y,
@@ -4868,7 +4905,7 @@ const Zs = function(e) {
4868
4905
  };
4869
4906
  }
4870
4907
  };
4871
- }, Qs = function(e) {
4908
+ }, ei = function(e) {
4872
4909
  return e === void 0 && (e = {}), {
4873
4910
  name: "shift",
4874
4911
  options: e,
@@ -4897,15 +4934,15 @@ const Zs = function(e) {
4897
4934
  } = ce(e, t), d = {
4898
4935
  x: n,
4899
4936
  y: r
4900
- }, u = await s.detectOverflow(t, a), m = re(de(o)), p = zt(m);
4937
+ }, u = await s.detectOverflow(t, a), m = oe(de(o)), p = zt(m);
4901
4938
  let h = d[p], b = d[m];
4902
4939
  if (i) {
4903
4940
  const y = p === "y" ? "top" : "left", E = p === "y" ? "bottom" : "right", O = h + u[y], S = h - u[E];
4904
- h = Ct(O, h, S);
4941
+ h = Rt(O, h, S);
4905
4942
  }
4906
4943
  if (l) {
4907
4944
  const y = m === "y" ? "top" : "left", E = m === "y" ? "bottom" : "right", O = b + u[y], S = b - u[E];
4908
- b = Ct(O, b, S);
4945
+ b = Rt(O, b, S);
4909
4946
  }
4910
4947
  const x = c.fn({
4911
4948
  ...t,
@@ -4925,7 +4962,7 @@ const Zs = function(e) {
4925
4962
  };
4926
4963
  }
4927
4964
  };
4928
- }, ei = function(e) {
4965
+ }, ti = function(e) {
4929
4966
  return e === void 0 && (e = {}), {
4930
4967
  options: e,
4931
4968
  fn(t) {
@@ -4942,7 +4979,7 @@ const Zs = function(e) {
4942
4979
  } = ce(e, t), d = {
4943
4980
  x: n,
4944
4981
  y: r
4945
- }, u = re(o), m = zt(u);
4982
+ }, u = oe(o), m = zt(u);
4946
4983
  let p = d[m], h = d[u];
4947
4984
  const b = ce(l, t), x = typeof b == "number" ? {
4948
4985
  mainAxis: b,
@@ -4967,7 +5004,7 @@ const Zs = function(e) {
4967
5004
  };
4968
5005
  }
4969
5006
  };
4970
- }, ti = function(e) {
5007
+ }, ni = function(e) {
4971
5008
  return e === void 0 && (e = {}), {
4972
5009
  name: "size",
4973
5010
  options: e,
@@ -4982,7 +5019,7 @@ const Zs = function(e) {
4982
5019
  apply: c = () => {
4983
5020
  },
4984
5021
  ...a
4985
- } = ce(e, t), d = await i.detectOverflow(t, a), u = de(o), m = $e(o), p = re(o) === "y", {
5022
+ } = ce(e, t), d = await i.detectOverflow(t, a), u = de(o), m = Ie(o), p = oe(o) === "y", {
4986
5023
  width: h,
4987
5024
  height: b
4988
5025
  } = s.floating;
@@ -4991,8 +5028,8 @@ const Zs = function(e) {
4991
5028
  const E = b - d.top - d.bottom, O = h - d.left - d.right, S = pe(b - d[x], E), k = pe(h - d[y], O), N = !t.middlewareData.shift;
4992
5029
  let T = S, v = k;
4993
5030
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (v = O), (r = t.middlewareData.shift) != null && r.enabled.y && (T = E), N && !m) {
4994
- const M = X(d.left, 0), j = X(d.right, 0), U = X(d.top, 0), D = X(d.bottom, 0);
4995
- p ? v = h - 2 * (M !== 0 || j !== 0 ? M + j : X(d.left, d.right)) : T = b - 2 * (U !== 0 || D !== 0 ? U + D : X(d.top, d.bottom));
5031
+ const M = X(d.left, 0), j = X(d.right, 0), F = X(d.top, 0), U = X(d.bottom, 0);
5032
+ p ? v = h - 2 * (M !== 0 || j !== 0 ? M + j : X(d.left, d.right)) : T = b - 2 * (F !== 0 || U !== 0 ? F + U : X(d.top, d.bottom));
4996
5033
  }
4997
5034
  await c({
4998
5035
  ...t,
@@ -5008,31 +5045,31 @@ const Zs = function(e) {
5008
5045
  }
5009
5046
  };
5010
5047
  };
5011
- function ct() {
5048
+ function dt() {
5012
5049
  return typeof window < "u";
5013
5050
  }
5014
- function Ie(e) {
5051
+ function Le(e) {
5015
5052
  return er(e) ? (e.nodeName || "").toLowerCase() : "#document";
5016
5053
  }
5017
5054
  function q(e) {
5018
5055
  var t;
5019
5056
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
5020
5057
  }
5021
- function se(e) {
5058
+ function ie(e) {
5022
5059
  var t;
5023
5060
  return (t = (er(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
5024
5061
  }
5025
5062
  function er(e) {
5026
- return ct() ? e instanceof Node || e instanceof q(e).Node : !1;
5063
+ return dt() ? e instanceof Node || e instanceof q(e).Node : !1;
5027
5064
  }
5028
5065
  function Q(e) {
5029
- return ct() ? e instanceof Element || e instanceof q(e).Element : !1;
5066
+ return dt() ? e instanceof Element || e instanceof q(e).Element : !1;
5030
5067
  }
5031
5068
  function ue(e) {
5032
- return ct() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
5069
+ return dt() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
5033
5070
  }
5034
5071
  function pn(e) {
5035
- return !ct() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
5072
+ return !dt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof q(e).ShadowRoot;
5036
5073
  }
5037
5074
  function He(e) {
5038
5075
  const {
@@ -5043,10 +5080,10 @@ function He(e) {
5043
5080
  } = ee(e);
5044
5081
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && o !== "inline" && o !== "contents";
5045
5082
  }
5046
- function ni(e) {
5047
- return /^(table|td|th)$/.test(Ie(e));
5083
+ function ri(e) {
5084
+ return /^(table|td|th)$/.test(Le(e));
5048
5085
  }
5049
- function dt(e) {
5086
+ function ut(e) {
5050
5087
  try {
5051
5088
  if (e.matches(":popover-open"))
5052
5089
  return !0;
@@ -5058,33 +5095,33 @@ function dt(e) {
5058
5095
  return !1;
5059
5096
  }
5060
5097
  }
5061
- const ri = /transform|translate|scale|rotate|perspective|filter/, oi = /paint|layout|strict|content/, xe = (e) => !!e && e !== "none";
5062
- let yt;
5063
- function Ut(e) {
5098
+ const oi = /transform|translate|scale|rotate|perspective|filter/, si = /paint|layout|strict|content/, xe = (e) => !!e && e !== "none";
5099
+ let xt;
5100
+ function Ft(e) {
5064
5101
  const t = Q(e) ? ee(e) : e;
5065
- return xe(t.transform) || xe(t.translate) || xe(t.scale) || xe(t.rotate) || xe(t.perspective) || !Wt() && (xe(t.backdropFilter) || xe(t.filter)) || ri.test(t.willChange || "") || oi.test(t.contain || "");
5102
+ return xe(t.transform) || xe(t.translate) || xe(t.scale) || xe(t.rotate) || xe(t.perspective) || !Gt() && (xe(t.backdropFilter) || xe(t.filter)) || oi.test(t.willChange || "") || si.test(t.contain || "");
5066
5103
  }
5067
- function si(e) {
5104
+ function ii(e) {
5068
5105
  let t = ge(e);
5069
5106
  for (; ue(t) && !Pe(t); ) {
5070
- if (Ut(t))
5107
+ if (Ft(t))
5071
5108
  return t;
5072
- if (dt(t))
5109
+ if (ut(t))
5073
5110
  return null;
5074
5111
  t = ge(t);
5075
5112
  }
5076
5113
  return null;
5077
5114
  }
5078
- function Wt() {
5079
- return yt == null && (yt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), yt;
5115
+ function Gt() {
5116
+ return xt == null && (xt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), xt;
5080
5117
  }
5081
5118
  function Pe(e) {
5082
- return /^(html|body|#document)$/.test(Ie(e));
5119
+ return /^(html|body|#document)$/.test(Le(e));
5083
5120
  }
5084
5121
  function ee(e) {
5085
5122
  return q(e).getComputedStyle(e);
5086
5123
  }
5087
- function ut(e) {
5124
+ function ft(e) {
5088
5125
  return Q(e) ? {
5089
5126
  scrollLeft: e.scrollLeft,
5090
5127
  scrollTop: e.scrollTop
@@ -5094,14 +5131,14 @@ function ut(e) {
5094
5131
  };
5095
5132
  }
5096
5133
  function ge(e) {
5097
- if (Ie(e) === "html")
5134
+ if (Le(e) === "html")
5098
5135
  return e;
5099
5136
  const t = (
5100
5137
  // Step into the shadow DOM of the parent of a slotted node.
5101
5138
  e.assignedSlot || // DOM Element detected.
5102
5139
  e.parentNode || // ShadowRoot detected.
5103
5140
  pn(e) && e.host || // Fallback.
5104
- se(e)
5141
+ ie(e)
5105
5142
  );
5106
5143
  return pn(t) ? t.host : t;
5107
5144
  }
@@ -5114,12 +5151,12 @@ function We(e, t, n) {
5114
5151
  t === void 0 && (t = []), n === void 0 && (n = !0);
5115
5152
  const o = tr(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = q(o);
5116
5153
  if (s) {
5117
- const l = St(i);
5154
+ const l = Tt(i);
5118
5155
  return t.concat(i, i.visualViewport || [], He(o) ? o : [], l && n ? We(l) : []);
5119
5156
  } else
5120
5157
  return t.concat(o, We(o, [], n));
5121
5158
  }
5122
- function St(e) {
5159
+ function Tt(e) {
5123
5160
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
5124
5161
  }
5125
5162
  function nr(e) {
@@ -5132,13 +5169,13 @@ function nr(e) {
5132
5169
  $: l
5133
5170
  };
5134
5171
  }
5135
- function Gt(e) {
5172
+ function Wt(e) {
5136
5173
  return Q(e) ? e : e.contextElement;
5137
5174
  }
5138
- function ke(e) {
5139
- const t = Gt(e);
5175
+ function Ne(e) {
5176
+ const t = Wt(e);
5140
5177
  if (!ue(t))
5141
- return oe(1);
5178
+ return se(1);
5142
5179
  const n = t.getBoundingClientRect(), {
5143
5180
  width: r,
5144
5181
  height: o,
@@ -5150,30 +5187,30 @@ function ke(e) {
5150
5187
  y: l
5151
5188
  };
5152
5189
  }
5153
- const ii = /* @__PURE__ */ oe(0);
5190
+ const ai = /* @__PURE__ */ se(0);
5154
5191
  function rr(e) {
5155
5192
  const t = q(e);
5156
- return !Wt() || !t.visualViewport ? ii : {
5193
+ return !Gt() || !t.visualViewport ? ai : {
5157
5194
  x: t.visualViewport.offsetLeft,
5158
5195
  y: t.visualViewport.offsetTop
5159
5196
  };
5160
5197
  }
5161
- function ai(e, t, n) {
5198
+ function li(e, t, n) {
5162
5199
  return t === void 0 && (t = !1), !n || t && n !== q(e) ? !1 : t;
5163
5200
  }
5164
- function ve(e, t, n, r) {
5201
+ function Ee(e, t, n, r) {
5165
5202
  t === void 0 && (t = !1), n === void 0 && (n = !1);
5166
- const o = e.getBoundingClientRect(), s = Gt(e);
5167
- let i = oe(1);
5168
- t && (r ? Q(r) && (i = ke(r)) : i = ke(e));
5169
- const l = ai(s, n, r) ? rr(s) : oe(0);
5203
+ const o = e.getBoundingClientRect(), s = Wt(e);
5204
+ let i = se(1);
5205
+ t && (r ? Q(r) && (i = Ne(r)) : i = Ne(e));
5206
+ const l = li(s, n, r) ? rr(s) : se(0);
5170
5207
  let c = (o.left + l.x) / i.x, a = (o.top + l.y) / i.y, d = o.width / i.x, u = o.height / i.y;
5171
5208
  if (s) {
5172
5209
  const m = q(s), p = r && Q(r) ? q(r) : r;
5173
- let h = m, b = St(h);
5210
+ let h = m, b = Tt(h);
5174
5211
  for (; b && r && p !== h; ) {
5175
- const x = ke(b), y = b.getBoundingClientRect(), E = ee(b), O = y.left + (b.clientLeft + parseFloat(E.paddingLeft)) * x.x, S = y.top + (b.clientTop + parseFloat(E.paddingTop)) * x.y;
5176
- c *= x.x, a *= x.y, d *= x.x, u *= x.y, c += O, a += S, h = q(b), b = St(h);
5212
+ const x = Ne(b), y = b.getBoundingClientRect(), E = ee(b), O = y.left + (b.clientLeft + parseFloat(E.paddingLeft)) * x.x, S = y.top + (b.clientTop + parseFloat(E.paddingTop)) * x.y;
5213
+ c *= x.x, a *= x.y, d *= x.x, u *= x.y, c += O, a += S, h = q(b), b = Tt(h);
5177
5214
  }
5178
5215
  }
5179
5216
  return it({
@@ -5183,37 +5220,37 @@ function ve(e, t, n, r) {
5183
5220
  y: a
5184
5221
  });
5185
5222
  }
5186
- function ft(e, t) {
5187
- const n = ut(e).scrollLeft;
5188
- return t ? t.left + n : ve(se(e)).left + n;
5223
+ function mt(e, t) {
5224
+ const n = ft(e).scrollLeft;
5225
+ return t ? t.left + n : Ee(ie(e)).left + n;
5189
5226
  }
5190
5227
  function or(e, t) {
5191
- const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - ft(e, n), o = n.top + t.scrollTop;
5228
+ const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - mt(e, n), o = n.top + t.scrollTop;
5192
5229
  return {
5193
5230
  x: r,
5194
5231
  y: o
5195
5232
  };
5196
5233
  }
5197
- function li(e) {
5234
+ function ci(e) {
5198
5235
  let {
5199
5236
  elements: t,
5200
5237
  rect: n,
5201
5238
  offsetParent: r,
5202
5239
  strategy: o
5203
5240
  } = e;
5204
- const s = o === "fixed", i = se(r), l = t ? dt(t.floating) : !1;
5241
+ const s = o === "fixed", i = ie(r), l = t ? ut(t.floating) : !1;
5205
5242
  if (r === i || l && s)
5206
5243
  return n;
5207
5244
  let c = {
5208
5245
  scrollLeft: 0,
5209
5246
  scrollTop: 0
5210
- }, a = oe(1);
5211
- const d = oe(0), u = ue(r);
5212
- if ((u || !u && !s) && ((Ie(r) !== "body" || He(i)) && (c = ut(r)), u)) {
5213
- const p = ve(r);
5214
- a = ke(r), d.x = p.x + r.clientLeft, d.y = p.y + r.clientTop;
5247
+ }, a = se(1);
5248
+ const d = se(0), u = ue(r);
5249
+ if ((u || !u && !s) && ((Le(r) !== "body" || He(i)) && (c = ft(r)), u)) {
5250
+ const p = Ee(r);
5251
+ a = Ne(r), d.x = p.x + r.clientLeft, d.y = p.y + r.clientTop;
5215
5252
  }
5216
- const m = i && !u && !s ? or(i, c) : oe(0);
5253
+ const m = i && !u && !s ? or(i, c) : se(0);
5217
5254
  return {
5218
5255
  width: n.width * a.x,
5219
5256
  height: n.height * a.y,
@@ -5221,12 +5258,12 @@ function li(e) {
5221
5258
  y: n.y * a.y - c.scrollTop * a.y + d.y + m.y
5222
5259
  };
5223
5260
  }
5224
- function ci(e) {
5261
+ function di(e) {
5225
5262
  return Array.from(e.getClientRects());
5226
5263
  }
5227
- function di(e) {
5228
- const t = se(e), n = ut(e), r = e.ownerDocument.body, o = X(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = X(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
5229
- let i = -n.scrollLeft + ft(e);
5264
+ function ui(e) {
5265
+ const t = ie(e), n = ft(e), r = e.ownerDocument.body, o = X(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = X(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
5266
+ let i = -n.scrollLeft + mt(e);
5230
5267
  const l = -n.scrollTop;
5231
5268
  return ee(r).direction === "rtl" && (i += X(t.clientWidth, r.clientWidth) - o), {
5232
5269
  width: o,
@@ -5236,15 +5273,15 @@ function di(e) {
5236
5273
  };
5237
5274
  }
5238
5275
  const gn = 25;
5239
- function ui(e, t) {
5240
- const n = q(e), r = se(e), o = n.visualViewport;
5276
+ function fi(e, t) {
5277
+ const n = q(e), r = ie(e), o = n.visualViewport;
5241
5278
  let s = r.clientWidth, i = r.clientHeight, l = 0, c = 0;
5242
5279
  if (o) {
5243
5280
  s = o.width, i = o.height;
5244
- const d = Wt();
5281
+ const d = Gt();
5245
5282
  (!d || d && t === "fixed") && (l = o.offsetLeft, c = o.offsetTop);
5246
5283
  }
5247
- const a = ft(r);
5284
+ const a = mt(r);
5248
5285
  if (a <= 0) {
5249
5286
  const d = r.ownerDocument, u = d.body, m = getComputedStyle(u), p = d.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(r.clientWidth - u.clientWidth - p);
5250
5287
  h <= gn && (s -= h);
@@ -5256,8 +5293,8 @@ function ui(e, t) {
5256
5293
  y: c
5257
5294
  };
5258
5295
  }
5259
- function fi(e, t) {
5260
- const n = ve(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = ue(e) ? ke(e) : oe(1), i = e.clientWidth * s.x, l = e.clientHeight * s.y, c = o * s.x, a = r * s.y;
5296
+ function mi(e, t) {
5297
+ const n = Ee(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = ue(e) ? Ne(e) : se(1), i = e.clientWidth * s.x, l = e.clientHeight * s.y, c = o * s.x, a = r * s.y;
5261
5298
  return {
5262
5299
  width: i,
5263
5300
  height: l,
@@ -5268,11 +5305,11 @@ function fi(e, t) {
5268
5305
  function hn(e, t, n) {
5269
5306
  let r;
5270
5307
  if (t === "viewport")
5271
- r = ui(e, n);
5308
+ r = fi(e, n);
5272
5309
  else if (t === "document")
5273
- r = di(se(e));
5310
+ r = ui(ie(e));
5274
5311
  else if (Q(t))
5275
- r = fi(t, n);
5312
+ r = mi(t, n);
5276
5313
  else {
5277
5314
  const o = rr(e);
5278
5315
  r = {
@@ -5288,27 +5325,27 @@ function sr(e, t) {
5288
5325
  const n = ge(e);
5289
5326
  return n === t || !Q(n) || Pe(n) ? !1 : ee(n).position === "fixed" || sr(n, t);
5290
5327
  }
5291
- function mi(e, t) {
5328
+ function pi(e, t) {
5292
5329
  const n = t.get(e);
5293
5330
  if (n)
5294
5331
  return n;
5295
- let r = We(e, [], !1).filter((l) => Q(l) && Ie(l) !== "body"), o = null;
5332
+ let r = We(e, [], !1).filter((l) => Q(l) && Le(l) !== "body"), o = null;
5296
5333
  const s = ee(e).position === "fixed";
5297
5334
  let i = s ? ge(e) : e;
5298
5335
  for (; Q(i) && !Pe(i); ) {
5299
- const l = ee(i), c = Ut(i);
5336
+ const l = ee(i), c = Ft(i);
5300
5337
  !c && l.position === "fixed" && (o = null), (s ? !c && !o : !c && l.position === "static" && !!o && (o.position === "absolute" || o.position === "fixed") || He(i) && !c && sr(e, i)) ? r = r.filter((d) => d !== i) : o = l, i = ge(i);
5301
5338
  }
5302
5339
  return t.set(e, r), r;
5303
5340
  }
5304
- function pi(e) {
5341
+ function gi(e) {
5305
5342
  let {
5306
5343
  element: t,
5307
5344
  boundary: n,
5308
5345
  rootBoundary: r,
5309
5346
  strategy: o
5310
5347
  } = e;
5311
- const i = [...n === "clippingAncestors" ? dt(t) ? [] : mi(t, this._c) : [].concat(n), r], l = hn(t, i[0], o);
5348
+ const i = [...n === "clippingAncestors" ? ut(t) ? [] : pi(t, this._c) : [].concat(n), r], l = hn(t, i[0], o);
5312
5349
  let c = l.top, a = l.right, d = l.bottom, u = l.left;
5313
5350
  for (let m = 1; m < i.length; m++) {
5314
5351
  const p = hn(t, i[m], o);
@@ -5321,7 +5358,7 @@ function pi(e) {
5321
5358
  y: c
5322
5359
  };
5323
5360
  }
5324
- function gi(e) {
5361
+ function hi(e) {
5325
5362
  const {
5326
5363
  width: t,
5327
5364
  height: n
@@ -5331,23 +5368,23 @@ function gi(e) {
5331
5368
  height: n
5332
5369
  };
5333
5370
  }
5334
- function hi(e, t, n) {
5335
- const r = ue(t), o = se(t), s = n === "fixed", i = ve(e, !0, s, t);
5371
+ function bi(e, t, n) {
5372
+ const r = ue(t), o = ie(t), s = n === "fixed", i = Ee(e, !0, s, t);
5336
5373
  let l = {
5337
5374
  scrollLeft: 0,
5338
5375
  scrollTop: 0
5339
5376
  };
5340
- const c = oe(0);
5377
+ const c = se(0);
5341
5378
  function a() {
5342
- c.x = ft(o);
5379
+ c.x = mt(o);
5343
5380
  }
5344
5381
  if (r || !r && !s)
5345
- if ((Ie(t) !== "body" || He(o)) && (l = ut(t)), r) {
5346
- const p = ve(t, !0, s, t);
5382
+ if ((Le(t) !== "body" || He(o)) && (l = ft(t)), r) {
5383
+ const p = Ee(t, !0, s, t);
5347
5384
  c.x = p.x + t.clientLeft, c.y = p.y + t.clientTop;
5348
5385
  } else o && a();
5349
5386
  s && !r && o && a();
5350
- const d = o && !r && !s ? or(o, l) : oe(0), u = i.left + l.scrollLeft - c.x - d.x, m = i.top + l.scrollTop - c.y - d.y;
5387
+ const d = o && !r && !s ? or(o, l) : se(0), u = i.left + l.scrollLeft - c.x - d.x, m = i.top + l.scrollTop - c.y - d.y;
5351
5388
  return {
5352
5389
  x: u,
5353
5390
  y: m,
@@ -5355,7 +5392,7 @@ function hi(e, t, n) {
5355
5392
  height: i.height
5356
5393
  };
5357
5394
  }
5358
- function xt(e) {
5395
+ function wt(e) {
5359
5396
  return ee(e).position === "static";
5360
5397
  }
5361
5398
  function bn(e, t) {
@@ -5364,30 +5401,30 @@ function bn(e, t) {
5364
5401
  if (t)
5365
5402
  return t(e);
5366
5403
  let n = e.offsetParent;
5367
- return se(e) === n && (n = n.ownerDocument.body), n;
5404
+ return ie(e) === n && (n = n.ownerDocument.body), n;
5368
5405
  }
5369
5406
  function ir(e, t) {
5370
5407
  const n = q(e);
5371
- if (dt(e))
5408
+ if (ut(e))
5372
5409
  return n;
5373
5410
  if (!ue(e)) {
5374
5411
  let o = ge(e);
5375
5412
  for (; o && !Pe(o); ) {
5376
- if (Q(o) && !xt(o))
5413
+ if (Q(o) && !wt(o))
5377
5414
  return o;
5378
5415
  o = ge(o);
5379
5416
  }
5380
5417
  return n;
5381
5418
  }
5382
5419
  let r = bn(e, t);
5383
- for (; r && ni(r) && xt(r); )
5420
+ for (; r && ri(r) && wt(r); )
5384
5421
  r = bn(r, t);
5385
- return r && Pe(r) && xt(r) && !Ut(r) ? n : r || si(e) || n;
5422
+ return r && Pe(r) && wt(r) && !Ft(r) ? n : r || ii(e) || n;
5386
5423
  }
5387
- const bi = async function(e) {
5424
+ const yi = async function(e) {
5388
5425
  const t = this.getOffsetParent || ir, n = this.getDimensions, r = await n(e.floating);
5389
5426
  return {
5390
- reference: hi(e.reference, await t(e.floating), e.strategy),
5427
+ reference: bi(e.reference, await t(e.floating), e.strategy),
5391
5428
  floating: {
5392
5429
  x: 0,
5393
5430
  y: 0,
@@ -5396,27 +5433,27 @@ const bi = async function(e) {
5396
5433
  }
5397
5434
  };
5398
5435
  };
5399
- function yi(e) {
5436
+ function xi(e) {
5400
5437
  return ee(e).direction === "rtl";
5401
5438
  }
5402
- const xi = {
5403
- convertOffsetParentRelativeRectToViewportRelativeRect: li,
5404
- getDocumentElement: se,
5405
- getClippingRect: pi,
5439
+ const wi = {
5440
+ convertOffsetParentRelativeRectToViewportRelativeRect: ci,
5441
+ getDocumentElement: ie,
5442
+ getClippingRect: gi,
5406
5443
  getOffsetParent: ir,
5407
- getElementRects: bi,
5408
- getClientRects: ci,
5409
- getDimensions: gi,
5410
- getScale: ke,
5444
+ getElementRects: yi,
5445
+ getClientRects: di,
5446
+ getDimensions: hi,
5447
+ getScale: Ne,
5411
5448
  isElement: Q,
5412
- isRTL: yi
5449
+ isRTL: xi
5413
5450
  };
5414
5451
  function ar(e, t) {
5415
5452
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
5416
5453
  }
5417
- function wi(e, t) {
5454
+ function vi(e, t) {
5418
5455
  let n = null, r;
5419
- const o = se(e);
5456
+ const o = ie(e);
5420
5457
  function s() {
5421
5458
  var l;
5422
5459
  clearTimeout(r), (l = n) == null || l.disconnect(), n = null;
@@ -5460,7 +5497,7 @@ function wi(e, t) {
5460
5497
  }
5461
5498
  return i(!0), s;
5462
5499
  }
5463
- function vi(e, t, n, r) {
5500
+ function Ei(e, t, n, r) {
5464
5501
  r === void 0 && (r = {});
5465
5502
  const {
5466
5503
  ancestorScroll: o = !0,
@@ -5468,13 +5505,13 @@ function vi(e, t, n, r) {
5468
5505
  elementResize: i = typeof ResizeObserver == "function",
5469
5506
  layoutShift: l = typeof IntersectionObserver == "function",
5470
5507
  animationFrame: c = !1
5471
- } = r, a = Gt(e), d = o || s ? [...a ? We(a) : [], ...t ? We(t) : []] : [];
5508
+ } = r, a = Wt(e), d = o || s ? [...a ? We(a) : [], ...t ? We(t) : []] : [];
5472
5509
  d.forEach((y) => {
5473
5510
  o && y.addEventListener("scroll", n, {
5474
5511
  passive: !0
5475
5512
  }), s && y.addEventListener("resize", n);
5476
5513
  });
5477
- const u = a && l ? wi(a, n) : null;
5514
+ const u = a && l ? vi(a, n) : null;
5478
5515
  let m = -1, p = null;
5479
5516
  i && (p = new ResizeObserver((y) => {
5480
5517
  let [E] = y;
@@ -5483,10 +5520,10 @@ function vi(e, t, n, r) {
5483
5520
  (O = p) == null || O.observe(t);
5484
5521
  })), n();
5485
5522
  }), a && !c && p.observe(a), t && p.observe(t));
5486
- let h, b = c ? ve(e) : null;
5523
+ let h, b = c ? Ee(e) : null;
5487
5524
  c && x();
5488
5525
  function x() {
5489
- const y = ve(e);
5526
+ const y = Ee(e);
5490
5527
  b && !ar(b, y) && n(), b = y, h = requestAnimationFrame(x);
5491
5528
  }
5492
5529
  return n(), () => {
@@ -5496,21 +5533,21 @@ function vi(e, t, n, r) {
5496
5533
  }), u?.(), (y = p) == null || y.disconnect(), p = null, c && cancelAnimationFrame(h);
5497
5534
  };
5498
5535
  }
5499
- const Ei = Zs, Ai = Qs, Ci = Xs, Ri = ti, Si = qs, yn = Ks, Ti = ei, Oi = (e, t, n) => {
5536
+ const Ai = Qs, Ci = ei, Ri = qs, Si = ni, Ti = Js, yn = Xs, Oi = ti, ki = (e, t, n) => {
5500
5537
  const r = /* @__PURE__ */ new Map(), o = {
5501
- platform: xi,
5538
+ platform: wi,
5502
5539
  ...n
5503
5540
  }, s = {
5504
5541
  ...o.platform,
5505
5542
  _c: r
5506
5543
  };
5507
- return Ys(e, t, {
5544
+ return Ks(e, t, {
5508
5545
  ...o,
5509
5546
  platform: s
5510
5547
  });
5511
5548
  };
5512
- var ki = typeof document < "u", Ni = function() {
5513
- }, Qe = ki ? Pr : Ni;
5549
+ var Ni = typeof document < "u", Pi = function() {
5550
+ }, Qe = Ni ? Pr : Pi;
5514
5551
  function at(e, t) {
5515
5552
  if (e === t)
5516
5553
  return !0;
@@ -5548,13 +5585,13 @@ function xn(e, t) {
5548
5585
  const n = lr(e);
5549
5586
  return Math.round(t * n) / n;
5550
5587
  }
5551
- function wt(e) {
5588
+ function vt(e) {
5552
5589
  const t = f.useRef(e);
5553
5590
  return Qe(() => {
5554
5591
  t.current = e;
5555
5592
  }), t;
5556
5593
  }
5557
- function Pi(e) {
5594
+ function _i(e) {
5558
5595
  e === void 0 && (e = {});
5559
5596
  const {
5560
5597
  placement: t = "bottom",
@@ -5581,7 +5618,7 @@ function Pi(e) {
5581
5618
  _ !== N.current && (N.current = _, b(_));
5582
5619
  }, []), O = f.useCallback((_) => {
5583
5620
  _ !== T.current && (T.current = _, y(_));
5584
- }, []), S = s || h, k = i || x, N = f.useRef(null), T = f.useRef(null), v = f.useRef(d), $ = c != null, M = wt(c), j = wt(o), U = wt(a), D = f.useCallback(() => {
5621
+ }, []), S = s || h, k = i || x, N = f.useRef(null), T = f.useRef(null), v = f.useRef(d), $ = c != null, M = vt(c), j = vt(o), F = vt(a), U = f.useCallback(() => {
5585
5622
  if (!N.current || !T.current)
5586
5623
  return;
5587
5624
  const _ = {
@@ -5589,20 +5626,20 @@ function Pi(e) {
5589
5626
  strategy: n,
5590
5627
  middleware: m
5591
5628
  };
5592
- j.current && (_.platform = j.current), Oi(N.current, T.current, _).then((G) => {
5629
+ j.current && (_.platform = j.current), ki(N.current, T.current, _).then((W) => {
5593
5630
  const R = {
5594
- ...G,
5631
+ ...W,
5595
5632
  // The floating element's position may be recomputed while it's closed
5596
5633
  // but still mounted (such as when transitioning out). To ensure
5597
5634
  // `isPositioned` will be `false` initially on the next open, avoid
5598
5635
  // setting it to `true` when `open === false` (must be specified).
5599
- isPositioned: U.current !== !1
5636
+ isPositioned: F.current !== !1
5600
5637
  };
5601
5638
  z.current && !at(v.current, R) && (v.current = R, An.flushSync(() => {
5602
5639
  u(R);
5603
5640
  }));
5604
5641
  });
5605
- }, [m, t, n, j, U]);
5642
+ }, [m, t, n, j, F]);
5606
5643
  Qe(() => {
5607
5644
  a === !1 && v.current.isPositioned && (v.current.isPositioned = !1, u((_) => ({
5608
5645
  ..._,
@@ -5615,11 +5652,11 @@ function Pi(e) {
5615
5652
  }), []), Qe(() => {
5616
5653
  if (S && (N.current = S), k && (T.current = k), S && k) {
5617
5654
  if (M.current)
5618
- return M.current(S, k, D);
5619
- D();
5655
+ return M.current(S, k, U);
5656
+ U();
5620
5657
  }
5621
- }, [S, k, D, M, $]);
5622
- const W = f.useMemo(() => ({
5658
+ }, [S, k, U, M, $]);
5659
+ const G = f.useMemo(() => ({
5623
5660
  reference: N,
5624
5661
  floating: T,
5625
5662
  setReference: E,
@@ -5635,28 +5672,28 @@ function Pi(e) {
5635
5672
  };
5636
5673
  if (!I.floating)
5637
5674
  return _;
5638
- const G = xn(I.floating, d.x), R = xn(I.floating, d.y);
5675
+ const W = xn(I.floating, d.x), R = xn(I.floating, d.y);
5639
5676
  return l ? {
5640
5677
  ..._,
5641
- transform: "translate(" + G + "px, " + R + "px)",
5678
+ transform: "translate(" + W + "px, " + R + "px)",
5642
5679
  ...lr(I.floating) >= 1.5 && {
5643
5680
  willChange: "transform"
5644
5681
  }
5645
5682
  } : {
5646
5683
  position: n,
5647
- left: G,
5684
+ left: W,
5648
5685
  top: R
5649
5686
  };
5650
5687
  }, [n, l, I.floating, d.x, d.y]);
5651
5688
  return f.useMemo(() => ({
5652
5689
  ...d,
5653
- update: D,
5654
- refs: W,
5690
+ update: U,
5691
+ refs: G,
5655
5692
  elements: I,
5656
5693
  floatingStyles: L
5657
- }), [d, D, W, I, L]);
5694
+ }), [d, U, G, I, L]);
5658
5695
  }
5659
- const _i = (e) => {
5696
+ const $i = (e) => {
5660
5697
  function t(n) {
5661
5698
  return {}.hasOwnProperty.call(n, "current");
5662
5699
  }
@@ -5677,13 +5714,6 @@ const _i = (e) => {
5677
5714
  }).fn(n) : {};
5678
5715
  }
5679
5716
  };
5680
- }, $i = (e, t) => {
5681
- const n = Ei(e);
5682
- return {
5683
- name: n.name,
5684
- fn: n.fn,
5685
- options: [e, t]
5686
- };
5687
5717
  }, Ii = (e, t) => {
5688
5718
  const n = Ai(e);
5689
5719
  return {
@@ -5691,17 +5721,17 @@ const _i = (e) => {
5691
5721
  fn: n.fn,
5692
5722
  options: [e, t]
5693
5723
  };
5694
- }, Li = (e, t) => ({
5695
- fn: Ti(e).fn,
5696
- options: [e, t]
5697
- }), Mi = (e, t) => {
5724
+ }, Li = (e, t) => {
5698
5725
  const n = Ci(e);
5699
5726
  return {
5700
5727
  name: n.name,
5701
5728
  fn: n.fn,
5702
5729
  options: [e, t]
5703
5730
  };
5704
- }, zi = (e, t) => {
5731
+ }, Mi = (e, t) => ({
5732
+ fn: Oi(e).fn,
5733
+ options: [e, t]
5734
+ }), zi = (e, t) => {
5705
5735
  const n = Ri(e);
5706
5736
  return {
5707
5737
  name: n.name,
@@ -5715,18 +5745,25 @@ const _i = (e) => {
5715
5745
  fn: n.fn,
5716
5746
  options: [e, t]
5717
5747
  };
5748
+ }, Ui = (e, t) => {
5749
+ const n = Ti(e);
5750
+ return {
5751
+ name: n.name,
5752
+ fn: n.fn,
5753
+ options: [e, t]
5754
+ };
5718
5755
  }, Fi = (e, t) => {
5719
- const n = _i(e);
5756
+ const n = $i(e);
5720
5757
  return {
5721
5758
  name: n.name,
5722
5759
  fn: n.fn,
5723
5760
  options: [e, t]
5724
5761
  };
5725
5762
  };
5726
- var Ui = "Arrow", cr = f.forwardRef((e, t) => {
5763
+ var Gi = "Arrow", cr = f.forwardRef((e, t) => {
5727
5764
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
5728
5765
  return /* @__PURE__ */ w(
5729
- Ce.svg,
5766
+ Re.svg,
5730
5767
  {
5731
5768
  ...s,
5732
5769
  ref: t,
@@ -5738,11 +5775,11 @@ var Ui = "Arrow", cr = f.forwardRef((e, t) => {
5738
5775
  }
5739
5776
  );
5740
5777
  });
5741
- cr.displayName = Ui;
5778
+ cr.displayName = Gi;
5742
5779
  var Wi = cr;
5743
- function Gi(e) {
5780
+ function Vi(e) {
5744
5781
  const [t, n] = f.useState(void 0);
5745
- return we(() => {
5782
+ return ve(() => {
5746
5783
  if (e) {
5747
5784
  n({ width: e.offsetWidth, height: e.offsetHeight });
5748
5785
  const r = new ResizeObserver((o) => {
@@ -5762,22 +5799,22 @@ function Gi(e) {
5762
5799
  n(void 0);
5763
5800
  }, [e]), t;
5764
5801
  }
5765
- var Vt = "Popper", [dr, ur] = Kn(Vt), [Vi, fr] = dr(Vt), mr = (e) => {
5802
+ var Vt = "Popper", [dr, ur] = Kn(Vt), [Hi, fr] = dr(Vt), mr = (e) => {
5766
5803
  const { __scopePopper: t, children: n } = e, [r, o] = f.useState(null);
5767
- return /* @__PURE__ */ w(Vi, { scope: t, anchor: r, onAnchorChange: o, children: n });
5804
+ return /* @__PURE__ */ w(Hi, { scope: t, anchor: r, onAnchorChange: o, children: n });
5768
5805
  };
5769
5806
  mr.displayName = Vt;
5770
5807
  var pr = "PopperAnchor", gr = f.forwardRef(
5771
5808
  (e, t) => {
5772
- const { __scopePopper: n, virtualRef: r, ...o } = e, s = fr(pr, n), i = f.useRef(null), l = Ee(t, i), c = f.useRef(null);
5809
+ const { __scopePopper: n, virtualRef: r, ...o } = e, s = fr(pr, n), i = f.useRef(null), l = Ae(t, i), c = f.useRef(null);
5773
5810
  return f.useEffect(() => {
5774
5811
  const a = c.current;
5775
5812
  c.current = r?.current || i.current, a !== c.current && s.onAnchorChange(c.current);
5776
- }), r ? null : /* @__PURE__ */ w(Ce.div, { ...o, ref: l });
5813
+ }), r ? null : /* @__PURE__ */ w(Re.div, { ...o, ref: l });
5777
5814
  }
5778
5815
  );
5779
5816
  gr.displayName = pr;
5780
- var Ht = "PopperContent", [Hi, Bi] = dr(Ht), hr = f.forwardRef(
5817
+ var Ht = "PopperContent", [Bi, ji] = dr(Ht), hr = f.forwardRef(
5781
5818
  (e, t) => {
5782
5819
  const {
5783
5820
  __scopePopper: n,
@@ -5794,47 +5831,47 @@ var Ht = "PopperContent", [Hi, Bi] = dr(Ht), hr = f.forwardRef(
5794
5831
  updatePositionStrategy: p = "optimized",
5795
5832
  onPlaced: h,
5796
5833
  ...b
5797
- } = e, x = fr(Ht, n), [y, E] = f.useState(null), O = Ee(t, (te) => E(te)), [S, k] = f.useState(null), N = Gi(S), T = N?.width ?? 0, v = N?.height ?? 0, $ = r + (s !== "center" ? "-" + s : ""), M = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, j = Array.isArray(a) ? a : [a], U = j.length > 0, D = {
5834
+ } = e, x = fr(Ht, n), [y, E] = f.useState(null), O = Ae(t, (te) => E(te)), [S, k] = f.useState(null), N = Vi(S), T = N?.width ?? 0, v = N?.height ?? 0, $ = r + (s !== "center" ? "-" + s : ""), M = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, j = Array.isArray(a) ? a : [a], F = j.length > 0, U = {
5798
5835
  padding: M,
5799
- boundary: j.filter(Yi),
5836
+ boundary: j.filter(Ki),
5800
5837
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
5801
- altBoundary: U
5802
- }, { refs: z, floatingStyles: W, placement: I, isPositioned: L, middlewareData: _ } = Pi({
5838
+ altBoundary: F
5839
+ }, { refs: z, floatingStyles: G, placement: I, isPositioned: L, middlewareData: _ } = _i({
5803
5840
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
5804
5841
  strategy: "fixed",
5805
5842
  placement: $,
5806
- whileElementsMounted: (...te) => vi(...te, {
5843
+ whileElementsMounted: (...te) => Ei(...te, {
5807
5844
  animationFrame: p === "always"
5808
5845
  }),
5809
5846
  elements: {
5810
5847
  reference: x.anchor
5811
5848
  },
5812
5849
  middleware: [
5813
- $i({ mainAxis: o + v, alignmentAxis: i }),
5814
- c && Ii({
5850
+ Ii({ mainAxis: o + v, alignmentAxis: i }),
5851
+ c && Li({
5815
5852
  mainAxis: !0,
5816
5853
  crossAxis: !1,
5817
- limiter: u === "partial" ? Li() : void 0,
5818
- ...D
5854
+ limiter: u === "partial" ? Mi() : void 0,
5855
+ ...U
5819
5856
  }),
5820
- c && Mi({ ...D }),
5821
- zi({
5822
- ...D,
5823
- apply: ({ elements: te, rects: ze, availableWidth: V, availableHeight: Ye }) => {
5824
- const { width: Re, height: Se } = ze.reference, fe = te.floating.style;
5825
- fe.setProperty("--radix-popper-available-width", `${V}px`), fe.setProperty("--radix-popper-available-height", `${Ye}px`), fe.setProperty("--radix-popper-anchor-width", `${Re}px`), fe.setProperty("--radix-popper-anchor-height", `${Se}px`);
5857
+ c && zi({ ...U }),
5858
+ Di({
5859
+ ...U,
5860
+ apply: ({ elements: te, rects: De, availableWidth: V, availableHeight: Ye }) => {
5861
+ const { width: Se, height: Te } = De.reference, fe = te.floating.style;
5862
+ fe.setProperty("--radix-popper-available-width", `${V}px`), fe.setProperty("--radix-popper-available-height", `${Ye}px`), fe.setProperty("--radix-popper-anchor-width", `${Se}px`), fe.setProperty("--radix-popper-anchor-height", `${Te}px`);
5826
5863
  }
5827
5864
  }),
5828
5865
  S && Fi({ element: S, padding: l }),
5829
- Ki({ arrowWidth: T, arrowHeight: v }),
5830
- m && Di({ strategy: "referenceHidden", ...D })
5866
+ Xi({ arrowWidth: T, arrowHeight: v }),
5867
+ m && Ui({ strategy: "referenceHidden", ...U })
5831
5868
  ]
5832
- }), [G, R] = xr(I), Le = lt(h);
5833
- we(() => {
5834
- L && Le?.();
5835
- }, [L, Le]);
5836
- const Be = _.arrow?.x, je = _.arrow?.y, Me = _.arrow?.centerOffset !== 0, [Y, K] = f.useState();
5837
- return we(() => {
5869
+ }), [W, R] = xr(I), Me = ct(h);
5870
+ ve(() => {
5871
+ L && Me?.();
5872
+ }, [L, Me]);
5873
+ const Be = _.arrow?.x, je = _.arrow?.y, ze = _.arrow?.centerOffset !== 0, [Y, K] = f.useState();
5874
+ return ve(() => {
5838
5875
  y && K(window.getComputedStyle(y).zIndex);
5839
5876
  }, [y]), /* @__PURE__ */ w(
5840
5877
  "div",
@@ -5842,8 +5879,8 @@ var Ht = "PopperContent", [Hi, Bi] = dr(Ht), hr = f.forwardRef(
5842
5879
  ref: z.setFloating,
5843
5880
  "data-radix-popper-content-wrapper": "",
5844
5881
  style: {
5845
- ...W,
5846
- transform: L ? W.transform : "translate(0, -200%)",
5882
+ ...G,
5883
+ transform: L ? G.transform : "translate(0, -200%)",
5847
5884
  // keep off the page when measuring
5848
5885
  minWidth: "max-content",
5849
5886
  zIndex: Y,
@@ -5861,18 +5898,18 @@ var Ht = "PopperContent", [Hi, Bi] = dr(Ht), hr = f.forwardRef(
5861
5898
  },
5862
5899
  dir: e.dir,
5863
5900
  children: /* @__PURE__ */ w(
5864
- Hi,
5901
+ Bi,
5865
5902
  {
5866
5903
  scope: n,
5867
- placedSide: G,
5904
+ placedSide: W,
5868
5905
  onArrowChange: k,
5869
5906
  arrowX: Be,
5870
5907
  arrowY: je,
5871
- shouldHideArrow: Me,
5908
+ shouldHideArrow: ze,
5872
5909
  children: /* @__PURE__ */ w(
5873
- Ce.div,
5910
+ Re.div,
5874
5911
  {
5875
- "data-side": G,
5912
+ "data-side": W,
5876
5913
  "data-align": R,
5877
5914
  ...b,
5878
5915
  ref: O,
@@ -5891,13 +5928,13 @@ var Ht = "PopperContent", [Hi, Bi] = dr(Ht), hr = f.forwardRef(
5891
5928
  }
5892
5929
  );
5893
5930
  hr.displayName = Ht;
5894
- var br = "PopperArrow", ji = {
5931
+ var br = "PopperArrow", Yi = {
5895
5932
  top: "bottom",
5896
5933
  right: "left",
5897
5934
  bottom: "top",
5898
5935
  left: "right"
5899
5936
  }, yr = f.forwardRef(function(t, n) {
5900
- const { __scopePopper: r, ...o } = t, s = Bi(br, r), i = ji[s.placedSide];
5937
+ const { __scopePopper: r, ...o } = t, s = ji(br, r), i = Yi[s.placedSide];
5901
5938
  return (
5902
5939
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
5903
5940
  // doesn't report size as we'd expect on SVG elements.
@@ -5942,10 +5979,10 @@ var br = "PopperArrow", ji = {
5942
5979
  );
5943
5980
  });
5944
5981
  yr.displayName = br;
5945
- function Yi(e) {
5982
+ function Ki(e) {
5946
5983
  return e !== null;
5947
5984
  }
5948
- var Ki = (e) => ({
5985
+ var Xi = (e) => ({
5949
5986
  name: "transformOrigin",
5950
5987
  options: e,
5951
5988
  fn(t) {
@@ -5958,17 +5995,17 @@ function xr(e) {
5958
5995
  const [t, n = "center"] = e.split("-");
5959
5996
  return [t, n];
5960
5997
  }
5961
- var Xi = mr, qi = gr, Ji = hr, Zi = yr;
5962
- function Qi(e, t) {
5998
+ var qi = mr, Ji = gr, Zi = hr, Qi = yr;
5999
+ function ea(e, t) {
5963
6000
  return f.useReducer((n, r) => t[n][r] ?? n, e);
5964
6001
  }
5965
6002
  var wr = (e) => {
5966
- const { present: t, children: n } = e, r = ea(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), s = Ee(r.ref, ta(o));
6003
+ const { present: t, children: n } = e, r = ta(t), o = typeof n == "function" ? n({ present: r.isPresent }) : f.Children.only(n), s = Ae(r.ref, na(o));
5967
6004
  return typeof n == "function" || r.isPresent ? f.cloneElement(o, { ref: s }) : null;
5968
6005
  };
5969
6006
  wr.displayName = "Presence";
5970
- function ea(e) {
5971
- const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [l, c] = Qi(i, {
6007
+ function ta(e) {
6008
+ const [t, n] = f.useState(), r = f.useRef(null), o = f.useRef(e), s = f.useRef("none"), i = e ? "mounted" : "unmounted", [l, c] = ea(i, {
5972
6009
  mounted: {
5973
6010
  UNMOUNT: "unmounted",
5974
6011
  ANIMATION_OUT: "unmountSuspended"
@@ -5984,13 +6021,13 @@ function ea(e) {
5984
6021
  return f.useEffect(() => {
5985
6022
  const a = Ze(r.current);
5986
6023
  s.current = l === "mounted" ? a : "none";
5987
- }, [l]), we(() => {
6024
+ }, [l]), ve(() => {
5988
6025
  const a = r.current, d = o.current;
5989
6026
  if (d !== e) {
5990
6027
  const m = s.current, p = Ze(a);
5991
6028
  e ? c("MOUNT") : p === "none" || a?.display === "none" ? c("UNMOUNT") : c(d && m !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
5992
6029
  }
5993
- }, [e, c]), we(() => {
6030
+ }, [e, c]), ve(() => {
5994
6031
  if (t) {
5995
6032
  let a;
5996
6033
  const d = t.ownerDocument.defaultView ?? window, u = (p) => {
@@ -6019,25 +6056,25 @@ function ea(e) {
6019
6056
  function Ze(e) {
6020
6057
  return e?.animationName || "none";
6021
6058
  }
6022
- function ta(e) {
6059
+ function na(e) {
6023
6060
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
6024
6061
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
6025
6062
  }
6026
- var na = /* @__PURE__ */ Symbol("radix.slottable");
6063
+ var ra = /* @__PURE__ */ Symbol("radix.slottable");
6027
6064
  // @__NO_SIDE_EFFECTS__
6028
- function ra(e) {
6065
+ function oa(e) {
6029
6066
  const t = ({ children: n }) => /* @__PURE__ */ w(Nr, { children: n });
6030
- return t.displayName = `${e}.Slottable`, t.__radixId = na, t;
6067
+ return t.displayName = `${e}.Slottable`, t.__radixId = ra, t;
6031
6068
  }
6032
- var oa = f[" useInsertionEffect ".trim().toString()] || we;
6033
- function sa({
6069
+ var sa = f[" useInsertionEffect ".trim().toString()] || ve;
6070
+ function ia({
6034
6071
  prop: e,
6035
6072
  defaultProp: t,
6036
6073
  onChange: n = () => {
6037
6074
  },
6038
6075
  caller: r
6039
6076
  }) {
6040
- const [o, s, i] = ia({
6077
+ const [o, s, i] = aa({
6041
6078
  defaultProp: t,
6042
6079
  onChange: n
6043
6080
  }), l = e !== void 0, c = l ? e : o;
@@ -6053,7 +6090,7 @@ function sa({
6053
6090
  const a = f.useCallback(
6054
6091
  (d) => {
6055
6092
  if (l) {
6056
- const u = aa(d) ? d(e) : d;
6093
+ const u = la(d) ? d(e) : d;
6057
6094
  u !== e && i.current?.(u);
6058
6095
  } else
6059
6096
  s(d);
@@ -6062,21 +6099,21 @@ function sa({
6062
6099
  );
6063
6100
  return [c, a];
6064
6101
  }
6065
- function ia({
6102
+ function aa({
6066
6103
  defaultProp: e,
6067
6104
  onChange: t
6068
6105
  }) {
6069
6106
  const [n, r] = f.useState(e), o = f.useRef(n), s = f.useRef(t);
6070
- return oa(() => {
6107
+ return sa(() => {
6071
6108
  s.current = t;
6072
6109
  }, [t]), f.useEffect(() => {
6073
6110
  o.current !== n && (s.current?.(n), o.current = n);
6074
6111
  }, [n, o]), [n, r, s];
6075
6112
  }
6076
- function aa(e) {
6113
+ function la(e) {
6077
6114
  return typeof e == "function";
6078
6115
  }
6079
- var la = Object.freeze({
6116
+ var ca = Object.freeze({
6080
6117
  // See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
6081
6118
  position: "absolute",
6082
6119
  border: 0,
@@ -6088,23 +6125,23 @@ var la = Object.freeze({
6088
6125
  clip: "rect(0, 0, 0, 0)",
6089
6126
  whiteSpace: "nowrap",
6090
6127
  wordWrap: "normal"
6091
- }), ca = "VisuallyHidden", vr = f.forwardRef(
6128
+ }), da = "VisuallyHidden", vr = f.forwardRef(
6092
6129
  (e, t) => /* @__PURE__ */ w(
6093
- Ce.span,
6130
+ Re.span,
6094
6131
  {
6095
6132
  ...e,
6096
6133
  ref: t,
6097
- style: { ...la, ...e.style }
6134
+ style: { ...ca, ...e.style }
6098
6135
  }
6099
6136
  )
6100
6137
  );
6101
- vr.displayName = ca;
6102
- var da = vr, [mt] = Kn("Tooltip", [
6138
+ vr.displayName = da;
6139
+ var ua = vr, [pt] = Kn("Tooltip", [
6103
6140
  ur
6104
- ]), pt = ur(), Er = "TooltipProvider", ua = 700, Tt = "tooltip.open", [fa, Bt] = mt(Er), Ar = (e) => {
6141
+ ]), gt = ur(), Er = "TooltipProvider", fa = 700, Ot = "tooltip.open", [ma, Bt] = pt(Er), Ar = (e) => {
6105
6142
  const {
6106
6143
  __scopeTooltip: t,
6107
- delayDuration: n = ua,
6144
+ delayDuration: n = fa,
6108
6145
  skipDelayDuration: r = 300,
6109
6146
  disableHoverableContent: o = !1,
6110
6147
  children: s
@@ -6113,7 +6150,7 @@ var da = vr, [mt] = Kn("Tooltip", [
6113
6150
  const a = c.current;
6114
6151
  return () => window.clearTimeout(a);
6115
6152
  }, []), /* @__PURE__ */ w(
6116
- fa,
6153
+ ma,
6117
6154
  {
6118
6155
  scope: t,
6119
6156
  isOpenDelayedRef: i,
@@ -6137,7 +6174,7 @@ var da = vr, [mt] = Kn("Tooltip", [
6137
6174
  );
6138
6175
  };
6139
6176
  Ar.displayName = Er;
6140
- var Ge = "Tooltip", [ma, gt] = mt(Ge), Cr = (e) => {
6177
+ var Ve = "Tooltip", [pa, ht] = pt(Ve), Cr = (e) => {
6141
6178
  const {
6142
6179
  __scopeTooltip: t,
6143
6180
  children: n,
@@ -6146,13 +6183,13 @@ var Ge = "Tooltip", [ma, gt] = mt(Ge), Cr = (e) => {
6146
6183
  onOpenChange: s,
6147
6184
  disableHoverableContent: i,
6148
6185
  delayDuration: l
6149
- } = e, c = Bt(Ge, e.__scopeTooltip), a = pt(t), [d, u] = f.useState(null), m = Ls(), p = f.useRef(0), h = i ?? c.disableHoverableContent, b = l ?? c.delayDuration, x = f.useRef(!1), [y, E] = sa({
6186
+ } = e, c = Bt(Ve, e.__scopeTooltip), a = gt(t), [d, u] = f.useState(null), m = Ms(), p = f.useRef(0), h = i ?? c.disableHoverableContent, b = l ?? c.delayDuration, x = f.useRef(!1), [y, E] = ia({
6150
6187
  prop: r,
6151
6188
  defaultProp: o ?? !1,
6152
6189
  onChange: (T) => {
6153
- T ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Tt))) : c.onClose(), s?.(T);
6190
+ T ? (c.onOpen(), document.dispatchEvent(new CustomEvent(Ot))) : c.onClose(), s?.(T);
6154
6191
  },
6155
- caller: Ge
6192
+ caller: Ve
6156
6193
  }), O = f.useMemo(() => y ? x.current ? "delayed-open" : "instant-open" : "closed", [y]), S = f.useCallback(() => {
6157
6194
  window.clearTimeout(p.current), p.current = 0, x.current = !1, E(!0);
6158
6195
  }, [E]), k = f.useCallback(() => {
@@ -6164,8 +6201,8 @@ var Ge = "Tooltip", [ma, gt] = mt(Ge), Cr = (e) => {
6164
6201
  }, [b, E]);
6165
6202
  return f.useEffect(() => () => {
6166
6203
  p.current && (window.clearTimeout(p.current), p.current = 0);
6167
- }, []), /* @__PURE__ */ w(Xi, { ...a, children: /* @__PURE__ */ w(
6168
- ma,
6204
+ }, []), /* @__PURE__ */ w(qi, { ...a, children: /* @__PURE__ */ w(
6205
+ pa,
6169
6206
  {
6170
6207
  scope: t,
6171
6208
  contentId: m,
@@ -6186,12 +6223,12 @@ var Ge = "Tooltip", [ma, gt] = mt(Ge), Cr = (e) => {
6186
6223
  }
6187
6224
  ) });
6188
6225
  };
6189
- Cr.displayName = Ge;
6190
- var Ot = "TooltipTrigger", Rr = f.forwardRef(
6226
+ Cr.displayName = Ve;
6227
+ var kt = "TooltipTrigger", Rr = f.forwardRef(
6191
6228
  (e, t) => {
6192
- const { __scopeTooltip: n, ...r } = e, o = gt(Ot, n), s = Bt(Ot, n), i = pt(n), l = f.useRef(null), c = Ee(t, l, o.onTriggerChange), a = f.useRef(!1), d = f.useRef(!1), u = f.useCallback(() => a.current = !1, []);
6193
- return f.useEffect(() => () => document.removeEventListener("pointerup", u), [u]), /* @__PURE__ */ w(qi, { asChild: !0, ...i, children: /* @__PURE__ */ w(
6194
- Ce.button,
6229
+ const { __scopeTooltip: n, ...r } = e, o = ht(kt, n), s = Bt(kt, n), i = gt(n), l = f.useRef(null), c = Ae(t, l, o.onTriggerChange), a = f.useRef(!1), d = f.useRef(!1), u = f.useCallback(() => a.current = !1, []);
6230
+ return f.useEffect(() => () => document.removeEventListener("pointerup", u), [u]), /* @__PURE__ */ w(Ji, { asChild: !0, ...i, children: /* @__PURE__ */ w(
6231
+ Re.button,
6195
6232
  {
6196
6233
  "aria-describedby": o.open ? o.contentId : void 0,
6197
6234
  "data-state": o.stateAttribute,
@@ -6215,20 +6252,20 @@ var Ot = "TooltipTrigger", Rr = f.forwardRef(
6215
6252
  ) });
6216
6253
  }
6217
6254
  );
6218
- Rr.displayName = Ot;
6219
- var pa = "TooltipPortal", [qa, ga] = mt(pa, {
6255
+ Rr.displayName = kt;
6256
+ var ga = "TooltipPortal", [Za, ha] = pt(ga, {
6220
6257
  forceMount: void 0
6221
6258
  }), _e = "TooltipContent", Sr = f.forwardRef(
6222
6259
  (e, t) => {
6223
- const n = ga(_e, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = gt(_e, e.__scopeTooltip);
6224
- return /* @__PURE__ */ w(wr, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ w(Tr, { side: o, ...s, ref: t }) : /* @__PURE__ */ w(ha, { side: o, ...s, ref: t }) });
6260
+ const n = ha(_e, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = ht(_e, e.__scopeTooltip);
6261
+ return /* @__PURE__ */ w(wr, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ w(Tr, { side: o, ...s, ref: t }) : /* @__PURE__ */ w(ba, { side: o, ...s, ref: t }) });
6225
6262
  }
6226
- ), ha = f.forwardRef((e, t) => {
6227
- const n = gt(_e, e.__scopeTooltip), r = Bt(_e, e.__scopeTooltip), o = f.useRef(null), s = Ee(t, o), [i, l] = f.useState(null), { trigger: c, onClose: a } = n, d = o.current, { onPointerInTransitChange: u } = r, m = f.useCallback(() => {
6263
+ ), ba = f.forwardRef((e, t) => {
6264
+ const n = ht(_e, e.__scopeTooltip), r = Bt(_e, e.__scopeTooltip), o = f.useRef(null), s = Ae(t, o), [i, l] = f.useState(null), { trigger: c, onClose: a } = n, d = o.current, { onPointerInTransitChange: u } = r, m = f.useCallback(() => {
6228
6265
  l(null), u(!1);
6229
6266
  }, [u]), p = f.useCallback(
6230
6267
  (h, b) => {
6231
- const x = h.currentTarget, y = { x: h.clientX, y: h.clientY }, E = va(y, x.getBoundingClientRect()), O = Ea(y, E), S = Aa(b.getBoundingClientRect()), k = Ra([...O, ...S]);
6268
+ const x = h.currentTarget, y = { x: h.clientX, y: h.clientY }, E = Ea(y, x.getBoundingClientRect()), O = Aa(y, E), S = Ca(b.getBoundingClientRect()), k = Sa([...O, ...S]);
6232
6269
  l(k), u(!0);
6233
6270
  },
6234
6271
  [u]
@@ -6243,13 +6280,13 @@ var pa = "TooltipPortal", [qa, ga] = mt(pa, {
6243
6280
  }, [c, d, p, m]), f.useEffect(() => {
6244
6281
  if (i) {
6245
6282
  const h = (b) => {
6246
- const x = b.target, y = { x: b.clientX, y: b.clientY }, E = c?.contains(x) || d?.contains(x), O = !Ca(y, i);
6283
+ const x = b.target, y = { x: b.clientX, y: b.clientY }, E = c?.contains(x) || d?.contains(x), O = !Ra(y, i);
6247
6284
  E ? m() : O && (m(), a());
6248
6285
  };
6249
6286
  return document.addEventListener("pointermove", h), () => document.removeEventListener("pointermove", h);
6250
6287
  }
6251
6288
  }, [c, d, i, a, m]), /* @__PURE__ */ w(Tr, { ...e, ref: s });
6252
- }), [ba, ya] = mt(Ge, { isInside: !1 }), xa = /* @__PURE__ */ ra("TooltipContent"), Tr = f.forwardRef(
6289
+ }), [ya, xa] = pt(Ve, { isInside: !1 }), wa = /* @__PURE__ */ oa("TooltipContent"), Tr = f.forwardRef(
6253
6290
  (e, t) => {
6254
6291
  const {
6255
6292
  __scopeTooltip: n,
@@ -6258,8 +6295,8 @@ var pa = "TooltipPortal", [qa, ga] = mt(pa, {
6258
6295
  onEscapeKeyDown: s,
6259
6296
  onPointerDownOutside: i,
6260
6297
  ...l
6261
- } = e, c = gt(_e, n), a = pt(n), { onClose: d } = c;
6262
- return f.useEffect(() => (document.addEventListener(Tt, d), () => document.removeEventListener(Tt, d)), [d]), f.useEffect(() => {
6298
+ } = e, c = ht(_e, n), a = gt(n), { onClose: d } = c;
6299
+ return f.useEffect(() => (document.addEventListener(Ot, d), () => document.removeEventListener(Ot, d)), [d]), f.useEffect(() => {
6263
6300
  if (c.trigger) {
6264
6301
  const u = (m) => {
6265
6302
  m.target?.contains(c.trigger) && d();
@@ -6276,7 +6313,7 @@ var pa = "TooltipPortal", [qa, ga] = mt(pa, {
6276
6313
  onFocusOutside: (u) => u.preventDefault(),
6277
6314
  onDismiss: d,
6278
6315
  children: /* @__PURE__ */ B(
6279
- Ji,
6316
+ Zi,
6280
6317
  {
6281
6318
  "data-state": c.stateAttribute,
6282
6319
  ...a,
@@ -6291,8 +6328,8 @@ var pa = "TooltipPortal", [qa, ga] = mt(pa, {
6291
6328
  "--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
6292
6329
  },
6293
6330
  children: [
6294
- /* @__PURE__ */ w(xa, { children: r }),
6295
- /* @__PURE__ */ w(ba, { scope: n, isInside: !0, children: /* @__PURE__ */ w(da, { id: c.contentId, role: "tooltip", children: o || r }) })
6331
+ /* @__PURE__ */ w(wa, { children: r }),
6332
+ /* @__PURE__ */ w(ya, { scope: n, isInside: !0, children: /* @__PURE__ */ w(ua, { id: c.contentId, role: "tooltip", children: o || r }) })
6296
6333
  ]
6297
6334
  }
6298
6335
  )
@@ -6301,17 +6338,17 @@ var pa = "TooltipPortal", [qa, ga] = mt(pa, {
6301
6338
  }
6302
6339
  );
6303
6340
  Sr.displayName = _e;
6304
- var Or = "TooltipArrow", wa = f.forwardRef(
6341
+ var Or = "TooltipArrow", va = f.forwardRef(
6305
6342
  (e, t) => {
6306
- const { __scopeTooltip: n, ...r } = e, o = pt(n);
6307
- return ya(
6343
+ const { __scopeTooltip: n, ...r } = e, o = gt(n);
6344
+ return xa(
6308
6345
  Or,
6309
6346
  n
6310
- ).isInside ? null : /* @__PURE__ */ w(Zi, { ...o, ...r, ref: t });
6347
+ ).isInside ? null : /* @__PURE__ */ w(Qi, { ...o, ...r, ref: t });
6311
6348
  }
6312
6349
  );
6313
- wa.displayName = Or;
6314
- function va(e, t) {
6350
+ va.displayName = Or;
6351
+ function Ea(e, t) {
6315
6352
  const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), s = Math.abs(t.left - e.x);
6316
6353
  switch (Math.min(n, r, o, s)) {
6317
6354
  case s:
@@ -6326,7 +6363,7 @@ function va(e, t) {
6326
6363
  throw new Error("unreachable");
6327
6364
  }
6328
6365
  }
6329
- function Ea(e, t, n = 5) {
6366
+ function Aa(e, t, n = 5) {
6330
6367
  const r = [];
6331
6368
  switch (t) {
6332
6369
  case "top":
@@ -6356,7 +6393,7 @@ function Ea(e, t, n = 5) {
6356
6393
  }
6357
6394
  return r;
6358
6395
  }
6359
- function Aa(e) {
6396
+ function Ca(e) {
6360
6397
  const { top: t, right: n, bottom: r, left: o } = e;
6361
6398
  return [
6362
6399
  { x: o, y: t },
@@ -6365,7 +6402,7 @@ function Aa(e) {
6365
6402
  { x: o, y: r }
6366
6403
  ];
6367
6404
  }
6368
- function Ca(e, t) {
6405
+ function Ra(e, t) {
6369
6406
  const { x: n, y: r } = e;
6370
6407
  let o = !1;
6371
6408
  for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
@@ -6374,11 +6411,11 @@ function Ca(e, t) {
6374
6411
  }
6375
6412
  return o;
6376
6413
  }
6377
- function Ra(e) {
6414
+ function Sa(e) {
6378
6415
  const t = e.slice();
6379
- return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), Sa(t);
6416
+ return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), Ta(t);
6380
6417
  }
6381
- function Sa(e) {
6418
+ function Ta(e) {
6382
6419
  if (e.length <= 1) return e.slice();
6383
6420
  const t = [];
6384
6421
  for (let r = 0; r < e.length; r++) {
@@ -6403,8 +6440,8 @@ function Sa(e) {
6403
6440
  }
6404
6441
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
6405
6442
  }
6406
- var Ta = Ar, Oa = Cr, ka = Rr, kr = Sr;
6407
- const Ja = Ta, Za = Oa, Qa = ka, Na = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ w(
6443
+ var Oa = Ar, ka = Cr, Na = Rr, kr = Sr;
6444
+ const Qa = Oa, el = ka, tl = Na, Pa = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ w(
6408
6445
  kr,
6409
6446
  {
6410
6447
  ref: r,
@@ -6416,9 +6453,9 @@ const Ja = Ta, Za = Oa, Qa = ka, Na = f.forwardRef(({ className: e, sideOffset:
6416
6453
  ...n
6417
6454
  }
6418
6455
  ));
6419
- Na.displayName = kr.displayName;
6420
- const el = "agent-approval-count-changed";
6421
- function Pa(e, t) {
6456
+ Pa.displayName = kr.displayName;
6457
+ const nl = "agent-approval-count-changed";
6458
+ function _a(e, t) {
6422
6459
  if (e.length > 0) {
6423
6460
  const n = e[e.length - 1];
6424
6461
  if (n && typeof n == "object" && !Array.isArray(n))
@@ -6429,9 +6466,9 @@ function Pa(e, t) {
6429
6466
  }
6430
6467
  return [...e, { signal: t }];
6431
6468
  }
6432
- function tl(e, t = {}) {
6433
- const { domain: n = "server", onSuccess: r, onError: o } = t, [s, i] = J(!1), [l, c] = J(null), [a, d] = J(null), u = vt(!0), m = vt(null);
6434
- Oe(() => (u.current = !0, () => {
6469
+ function rl(e, t = {}) {
6470
+ const { domain: n = "server", onSuccess: r, onError: o } = t, [s, i] = J(!1), [l, c] = J(null), [a, d] = J(null), u = Et(!0), m = Et(null);
6471
+ ke(() => (u.current = !0, () => {
6435
6472
  u.current = !1, m.current && m.current.abort();
6436
6473
  }), []);
6437
6474
  const p = tt(() => {
@@ -6441,7 +6478,7 @@ function tl(e, t = {}) {
6441
6478
  const x = new AbortController();
6442
6479
  m.current = x, u.current && (i(!0), c(null));
6443
6480
  try {
6444
- const y = await e(...Pa(b, x.signal));
6481
+ const y = await e(..._a(b, x.signal));
6445
6482
  return !u.current || x.signal.aborted ? null : (d(y), r?.(y), y);
6446
6483
  } catch (y) {
6447
6484
  if (!u.current || x.signal.aborted)
@@ -6458,7 +6495,7 @@ function tl(e, t = {}) {
6458
6495
  }, [e, n, o, r]);
6459
6496
  return { loading: s, error: l, data: a, execute: h, reset: p };
6460
6497
  }
6461
- function nl() {
6498
+ function ol() {
6462
6499
  const [e, t] = J(null), n = tt((o, s = "error") => {
6463
6500
  t({ message: String(o), type: s }), setTimeout(() => t(null), 4e3);
6464
6501
  }, []), r = tt(() => t(null), []);
@@ -6466,52 +6503,53 @@ function nl() {
6466
6503
  }
6467
6504
  export {
6468
6505
  Kt as API_BASE,
6469
- el as APPROVAL_EVENT,
6470
- Ka as AdminAccessRequired,
6506
+ nl as APPROVAL_EVENT,
6507
+ qa as AdminAccessRequired,
6471
6508
  Z as ApiError,
6472
- Wa as AppShell,
6473
- Fa as AuthProvider,
6474
- cs as Button,
6475
- ds as Card,
6476
- ps as CardContent,
6477
- ms as CardDescription,
6478
- gs as CardFooter,
6479
- us as CardHeader,
6480
- fs as CardTitle,
6481
- ja as DomainError,
6482
- Xa as EmptyState,
6483
- Ba as LoadingPanel,
6484
- Ga as ProtectedRoute,
6485
- _t as ROUTES,
6486
- Ua as SystemProvider,
6487
- Ha as Toast,
6488
- Za as Tooltip,
6489
- Na as TooltipContent,
6490
- Ja as TooltipProvider,
6491
- Qa as TooltipTrigger,
6492
- Va as VersionMismatchBanner,
6493
- za as adminRequest,
6509
+ Va as AppShell,
6510
+ Ga as AuthProvider,
6511
+ ds as Button,
6512
+ us as Card,
6513
+ gs as CardContent,
6514
+ ps as CardDescription,
6515
+ hs as CardFooter,
6516
+ fs as CardHeader,
6517
+ ms as CardTitle,
6518
+ Ka as DomainError,
6519
+ Ja as EmptyState,
6520
+ Fa as FEATURE_FLAGS,
6521
+ Ya as LoadingPanel,
6522
+ Ha as ProtectedRoute,
6523
+ lt as ROUTES,
6524
+ Wa as SystemProvider,
6525
+ ja as Toast,
6526
+ el as Tooltip,
6527
+ Pa as TooltipContent,
6528
+ Qa as TooltipProvider,
6529
+ tl as TooltipTrigger,
6530
+ Ba as VersionMismatchBanner,
6531
+ Da as adminRequest,
6494
6532
  Mr as authRequest,
6495
- Da as authRequestExternal,
6496
- Qr as bootIdentity,
6533
+ Ua as authRequestExternal,
6534
+ eo as bootIdentity,
6497
6535
  Lr as buildApiUrl,
6498
- ls as buttonVariants,
6499
- De as clearStoredToken,
6536
+ cs as buttonVariants,
6537
+ Ue as clearStoredToken,
6500
6538
  be as cn,
6501
- Ne as getStoredToken,
6539
+ we as getStoredToken,
6502
6540
  Jr as loginUser,
6503
6541
  Zr as registerUser,
6504
- Ve as request,
6542
+ $e as request,
6505
6543
  Tn as requestAbsolute,
6506
- La as safeArray,
6544
+ Ma as safeArray,
6507
6545
  Yt as safeMap,
6508
6546
  Xt as setStoredToken,
6509
- Ma as taggedRequest,
6510
- Pt as unwrapEnvelope,
6511
- Ya as useAdminApiGuard,
6512
- tl as useApiCall,
6547
+ za as taggedRequest,
6548
+ _t as unwrapEnvelope,
6549
+ Xa as useAdminApiGuard,
6550
+ rl as useApiCall,
6513
6551
  $t as useAuth,
6514
- eo as useSystem,
6515
- nl as useToast
6552
+ to as useSystem,
6553
+ ol as useToast
6516
6554
  };
6517
6555
  //# sourceMappingURL=index.js.map