railwatch 0.9.1 → 0.9.3

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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/app/frontend/components/railwatch/stat.tsx +13 -1
  4. data/app/frontend/entrypoints/inertia.tsx +5 -8
  5. data/app/frontend/hooks/use-live.ts +26 -0
  6. data/app/frontend/lib/mount.ts +23 -0
  7. data/app/frontend/lib/railwatch.ts +10 -1
  8. data/lib/railwatch/version.rb +1 -1
  9. data/public/railwatch/assets/{app-layout-LvxN9xSS.js → app-layout-by7G3sa1.js} +1 -1
  10. data/public/railwatch/assets/{arrow-up-DG01k9AL.js → arrow-up-DCZ7emux.js} +1 -1
  11. data/public/railwatch/assets/{braces-C3w7pfxS.js → braces-CykT5_5u.js} +1 -1
  12. data/public/railwatch/assets/{card-Dpwlr0uY.js → card-C-PPSA0g.js} +1 -1
  13. data/public/railwatch/assets/{chart-DJHv3R7W.js → chart-Cov79YC5.js} +1 -1
  14. data/public/railwatch/assets/{chart-hover-CEH-DtXO.js → chart-hover-DdK4E-2h.js} +1 -1
  15. data/public/railwatch/assets/{chart-panel-CUdIzJvk.js → chart-panel-BPaYRXJB.js} +1 -1
  16. data/public/railwatch/assets/{code-BRZprwun.js → code-BYjC4YZ_.js} +1 -1
  17. data/public/railwatch/assets/{copy-id-CwhGGiwF.js → copy-id-LPfoj9cC.js} +1 -1
  18. data/public/railwatch/assets/{cursor-load-more-uF1_955Q.js → cursor-load-more-DSdhgpGl.js} +1 -1
  19. data/public/railwatch/assets/{data-table-DYi-N0hm.js → data-table-CQ_YRWQs.js} +1 -1
  20. data/public/railwatch/assets/{env-layout-HdcOaPPX.js → env-layout-CdMWbUkm.js} +1 -1
  21. data/public/railwatch/assets/{execution-path-CElXXFO_.js → execution-path-7MYt-Qbn.js} +1 -1
  22. data/public/railwatch/assets/{filter-bar-DEv0G_34.js → filter-bar-CrzpQ_vD.js} +1 -1
  23. data/public/railwatch/assets/{flamegraph-SKD9yxW9.js → flamegraph-BIFEdTAg.js} +1 -1
  24. data/public/railwatch/assets/{frames-CUpyJQDy.js → frames-C5t-x4f0.js} +1 -1
  25. data/public/railwatch/assets/{index-BqK_VKom.js → index--NQ7us-L.js} +1 -1
  26. data/public/railwatch/assets/{index-Ce4SB5AB.js → index-2kgYe_99.js} +1 -1
  27. data/public/railwatch/assets/{index-DJd3OUSd.js → index-4YEPHxtO.js} +1 -1
  28. data/public/railwatch/assets/{index-CjxXgOs-.js → index-AOCC1GDJ.js} +1 -1
  29. data/public/railwatch/assets/{index-DYK_dps4.js → index-BEo-u0eO.js} +1 -1
  30. data/public/railwatch/assets/{index-ClL-PYEV.js → index-BJ1V3w2N.js} +1 -1
  31. data/public/railwatch/assets/{index-CteZ6fop.js → index-BPoHsBKb.js} +1 -1
  32. data/public/railwatch/assets/{index-CIaZkokF.js → index-BZzyGUM3.js} +1 -1
  33. data/public/railwatch/assets/{index-74ocuU5d.js → index-BgVq7yKL.js} +1 -1
  34. data/public/railwatch/assets/{index-d-3J7gQ5.js → index-BqFGEZvW.js} +1 -1
  35. data/public/railwatch/assets/{index-BxCXBHP2.js → index-ByuHJ1CH.js} +1 -1
  36. data/public/railwatch/assets/{index-oQrvBpOm.js → index-C2j50AL2.js} +1 -1
  37. data/public/railwatch/assets/{index-DPD-rLp6.js → index-CLEdTkvW.js} +1 -1
  38. data/public/railwatch/assets/{index-CxTLT-Qh.js → index-CWgq8qBu.js} +1 -1
  39. data/public/railwatch/assets/{index-B8NA62Lz.js → index-CXQ7_oVj.js} +1 -1
  40. data/public/railwatch/assets/{index-BBCEkLqp.js → index-CmyYrjS2.js} +1 -1
  41. data/public/railwatch/assets/{index-CiRMSYMn.js → index-Cn9_HjDo.js} +1 -1
  42. data/public/railwatch/assets/{index-CEetm4oC.js → index-CsMAm9UK.js} +1 -1
  43. data/public/railwatch/assets/{index-BDcglJzX.js → index-D0Kk_oGY.js} +1 -1
  44. data/public/railwatch/assets/{index-CNH85TZp.js → index-DC9ZptJh.js} +1 -1
  45. data/public/railwatch/assets/{index-DrayARrI.js → index-DNzg7jmV.js} +1 -1
  46. data/public/railwatch/assets/{index-HRXGir-0.js → index-DQ8uJO5f.js} +1 -1
  47. data/public/railwatch/assets/{index-2W-ppwap.js → index-Deq14BxB.js} +1 -1
  48. data/public/railwatch/assets/{index-B_KFb9LS.js → index-IaV3Blzp.js} +1 -1
  49. data/public/railwatch/assets/{index-CvqfEExO.js → index-TYNWcJQs.js} +1 -1
  50. data/public/railwatch/assets/{index-C7zREldp.js → index-WonH2fcZ.js} +1 -1
  51. data/public/railwatch/assets/{index-C1jc1OoH.js → index-WxWUaH_d.js} +1 -1
  52. data/public/railwatch/assets/{index-UJOUALr_.js → index-mUNrl4ky.js} +1 -1
  53. data/public/railwatch/assets/{inertia-FoqYZAk8.js → inertia-DfNRARuA.js} +13 -13
  54. data/public/railwatch/assets/{json-viewer-CxqMojEm.js → json-viewer-DMsF5glp.js} +1 -1
  55. data/public/railwatch/assets/{klass-DEF-Vat5.js → klass-CmHYk5rz.js} +1 -1
  56. data/public/railwatch/assets/{origin-identity-Y6gvfQVR.js → origin-identity-1R3bqa3R.js} +1 -1
  57. data/public/railwatch/assets/{percentile-picker-E2aUdLxx.js → percentile-picker-73z5PAps.js} +1 -1
  58. data/public/railwatch/assets/{relative-time-DcJbkKlN.js → relative-time-Dsc_cCdX.js} +1 -1
  59. data/public/railwatch/assets/{release-health-C8WSCDKD.js → release-health-BV5OaOWd.js} +1 -1
  60. data/public/railwatch/assets/{route-qO5vX1p-.js → route-CWh58C7K.js} +1 -1
  61. data/public/railwatch/assets/{segmented-BWee8uc9.js → segmented-DB4zh-Am.js} +1 -1
  62. data/public/railwatch/assets/{select-G7rNBzv0.js → select-DBKjFlOX.js} +1 -1
  63. data/public/railwatch/assets/{series-chart-C5nXIUc5.js → series-chart-BaiDG795.js} +1 -1
  64. data/public/railwatch/assets/{show-BEWisLQw.js → show-B4ICCFGh.js} +1 -1
  65. data/public/railwatch/assets/{show-Nfpxs8su.js → show-B5lOU9Gv.js} +1 -1
  66. data/public/railwatch/assets/{show-DnYsDMUt.js → show-BYPB74t4.js} +1 -1
  67. data/public/railwatch/assets/{show-ksjbSzDH.js → show-C7A0m2M8.js} +1 -1
  68. data/public/railwatch/assets/{show-ddjUMo9G.js → show-DT5X1zqE.js} +1 -1
  69. data/public/railwatch/assets/{show-BEa9PGu1.js → show-D_NBdXsn.js} +1 -1
  70. data/public/railwatch/assets/{show-CTO8Lvd2.js → show-DgPCnRg8.js} +1 -1
  71. data/public/railwatch/assets/{show-DyzHM527.js → show-Yl69HF0x.js} +1 -1
  72. data/public/railwatch/assets/{show-BiT_Aloc.js → show-_QxuUQCm.js} +1 -1
  73. data/public/railwatch/assets/{show-BpCO49d3.js → show-g__jnN36.js} +1 -1
  74. data/public/railwatch/assets/{show-CH7yxt7R.js → show-l4ztfjl9.js} +1 -1
  75. data/public/railwatch/assets/{sort-header-uOq5VlrB.js → sort-header-BcG8ulEH.js} +1 -1
  76. data/public/railwatch/assets/{sparkline-cell-DgGij0cu.js → sparkline-cell-B47ipscB.js} +1 -1
  77. data/public/railwatch/assets/stat-DT2hhsqS.js +1 -0
  78. data/public/railwatch/assets/{status-badge-BDkOXa-C.js → status-badge-CmbRKlY7.js} +1 -1
  79. data/public/railwatch/assets/{tenant-path-DU0ezKSU.js → tenant-path-C4rNGauE.js} +1 -1
  80. data/public/railwatch/assets/{use-clipboard-DoENmlWY.js → use-clipboard-oTNeP4ax.js} +1 -1
  81. data/public/railwatch/assets/use-live-CLZZj245.js +1 -0
  82. data/public/railwatch/manifest.json +611 -611
  83. metadata +75 -74
  84. data/public/railwatch/assets/stat-BTzNKTm2.js +0 -1
  85. data/public/railwatch/assets/use-live-CE_fN5_6.js +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e6d353ab28ad688da0cd8f6cce5795101736d0e4ff9ca754aac49ba307a6614
4
- data.tar.gz: 51558d4fa45d0f53a33c426e844ab4312704d2a82a6438070c1ad8bdcb5bfc6a
3
+ metadata.gz: 93de03467c62b34decd8de64008cee94e3032bbbf51d574d65f1271a4261c22a
4
+ data.tar.gz: 6a7bb7839ae87ee9a00b94b9404ebe518208470afc77947c5c304966454c0953
5
5
  SHA512:
6
- metadata.gz: 498984621aca78d24b668d15d8d77366b826335d7143b9e9e1ececfb8feab881a287dadb3ddae809c87597940cac05a34e1728ffdb9ecce073d4e4ffdabdcd46
7
- data.tar.gz: 0e03f832ba5fc1d5a52168136252d5d789837d4a29f675a824f7d0577a5eb1f66cc35cc7d1f86f470d6afc7ebfc4d97978b3542b974de71a542ac92079e273d6
6
+ metadata.gz: 94efd4b22a285f4735aeb652450f73e2135f795bb78f4a901b44fb89989769e817571b3768ce3aba4e7a442a29492f48767445b6c8967bd0f77eed4e3e4bed5b
7
+ data.tar.gz: 38e2952771cfbf9a359f66000257895e08c0ba47f5144e8084fb5f98af9129904a66d05482896d443c2dd1d3239b0336cde17656dd869635e2ed887b49640dda
data/CHANGELOG.md CHANGED
@@ -6,6 +6,26 @@
6
6
  filled in by the release commit, which is also the only commit that
7
7
  touches lib/railwatch/version.rb and Gemfile.lock. See CONTRIBUTING.md. -->
8
8
 
9
+ ## 0.9.3 (2026-10-18)
10
+
11
+ - The dashboard's route helpers and its browser beacon follow the
12
+ `railwatch-mount` meta tag wherever the page is served from: the embedded
13
+ engine mounted somewhere other than `/railwatch`, or a Railwatch server
14
+ mounted inside another app under a base path. The mount is read by one
15
+ helper (`lib/mount.ts`) that refuses anything but a single absolute path, so
16
+ a tag like `//host` cannot point links or the beacon at another origin.
17
+
18
+ ## 0.9.2 (2026-10-17)
19
+
20
+ - Changing the dashboard's window (1h/6h/24h/7d, a custom range, step or
21
+ filter) shows the new numbers at once. The rolling-digits animation is for
22
+ live updates of the same page only: a navigation kept `Stat` mounted, so
23
+ the new window's number waited up to 2 s behind the last roll and rolled
24
+ up from the old window's value.
25
+ - A live refresh in flight when the window changes is cancelled instead of
26
+ landing afterwards with the old window's numbers, and the page no longer
27
+ refetches what the window change just loaded.
28
+
9
29
  ## 0.9.1 (2026-10-10)
10
30
 
11
31
  - Sampling (or reporter backpressure, which divides every rate by up to 8)
@@ -1,3 +1,4 @@
1
+ import { usePage } from "@inertiajs/react"
1
2
  import { ArrowDown, ArrowUp } from "lucide-react"
2
3
  import type { ReactNode } from "react"
3
4
 
@@ -69,7 +70,14 @@ export interface RollingValue {
69
70
  // disconnected, or reduced motion each mean an instant swap -- which is
70
71
  // also WCAG 2.2.2's pause/stop mechanism: the live toggle in the page
71
72
  // header stops the motion, not just the data.
73
+ //
74
+ // Only the live reload rolls. It keeps the page's URL, and anything that
75
+ // changes the URL -- a new window, range, step or filter -- is a different
76
+ // number rather than the same one moving, so the roll is keyed by the URL:
77
+ // the new number is a fresh first paint, static and immediate, not a roll
78
+ // held back behind the last one's coalescing window.
72
79
  function RollingStatValue({ value, format }: RollingValue) {
80
+ const { url } = usePage()
73
81
  const live = useIsLive()
74
82
  const reducedMotion = useReducedMotion()
75
83
  const formatted = format(value)
@@ -77,7 +85,11 @@ function RollingStatValue({ value, format }: RollingValue) {
77
85
  return (
78
86
  <>
79
87
  <span aria-hidden="true">
80
- {animate ? <DigitRoll value={value} format={format} /> : formatted}
88
+ {animate ? (
89
+ <DigitRoll key={url} value={value} format={format} />
90
+ ) : (
91
+ formatted
92
+ )}
81
93
  </span>
82
94
  <span className="sr-only">{formatted}</span>
83
95
  </>
@@ -5,16 +5,13 @@ import { createRoot } from "react-dom/client"
5
5
 
6
6
  import { initializeTheme } from "@/hooks/use-appearance"
7
7
  import PersistentLayout from "@/layouts/persistent-layout"
8
+ import { applyMount } from "@/lib/mount"
8
9
  import { railwatchRootOptions, startRailwatch } from "@/lib/railwatch"
9
- import { configure as configureRoutes } from "@/routes"
10
10
 
11
- // When served by the embedded engine, every route helper must carry the
12
- // engine's mount point. The engine layout emits it; the hosted platform does
13
- // not, so this is a no-op there.
14
- const mount = document.querySelector<HTMLMetaElement>(
15
- 'meta[name="railwatch-mount"]',
16
- )?.content
17
- if (mount) configureRoutes({ default_url_options: { script_name: mount } })
11
+ // When served under a mount point (the embedded engine, or a Railwatch server
12
+ // mounted inside another app), every route helper must carry it. The layout
13
+ // emits it; the hosted platform does not, so this is a no-op there.
14
+ applyMount()
18
15
 
19
16
  const appName = import.meta.env.VITE_APP_NAME ?? "Railwatch"
20
17
 
@@ -48,6 +48,13 @@ export function useIsLive() {
48
48
  // event arrived while it was hidden. Pass `only` to limit the reload to
49
49
  // specific props, matching whatever `router.reload({ only })` accepts;
50
50
  // omit it to refresh every prop the current page was rendered with.
51
+ //
52
+ // A visit the user makes (a window, range or filter change; anything that
53
+ // is not itself a background reload) supersedes the reload: one in flight
54
+ // is cancelled, since it is for the URL being left and would otherwise land
55
+ // on top of the new page, none starts until the visit is over, and the
56
+ // visit counts as the latest reload, so the throttle does not follow it
57
+ // with a second fetch of what it just loaded.
51
58
  export function useLive(
52
59
  environmentId: number,
53
60
  {
@@ -98,6 +105,7 @@ export function useLive(
98
105
  let disposed = false
99
106
  let pending = false
100
107
  let inFlight = false
108
+ let navigating = false
101
109
  let lastReloadAt = -Infinity
102
110
  let timer: ReturnType<typeof setTimeout> | undefined
103
111
  let cancelReload: (() => void) | undefined
@@ -131,6 +139,7 @@ export function useLive(
131
139
  disposed ||
132
140
  !pending ||
133
141
  inFlight ||
142
+ navigating ||
134
143
  pausedRef.current ||
135
144
  document.visibilityState !== "visible"
136
145
  )
@@ -144,6 +153,21 @@ export function useLive(
144
153
  maybeReload()
145
154
  }
146
155
 
156
+ // `async` is every visit the page starts by itself: these reloads, a
157
+ // poll, a prefetch, a deferred prop.
158
+ const stopOnStart = router.on("start", (event) => {
159
+ if (event.detail.visit.async) return
160
+ navigating = true
161
+ pending = false
162
+ lastReloadAt = Date.now()
163
+ cancelReload?.()
164
+ })
165
+ const stopOnFinish = router.on("finish", (event) => {
166
+ if (event.detail.visit.async) return
167
+ navigating = false
168
+ maybeReload()
169
+ })
170
+
147
171
  document.addEventListener("visibilitychange", onVisibilityChange)
148
172
  scheduleRef.current = maybeReload
149
173
  const subscription = getConsumer().subscriptions.create(
@@ -169,6 +193,8 @@ export function useLive(
169
193
  disposed = true
170
194
  cancelReload?.()
171
195
  clearTimeout(timer)
196
+ stopOnStart()
197
+ stopOnFinish()
172
198
  scheduleRef.current = () => undefined
173
199
  document.removeEventListener("visibilitychange", onVisibilityChange)
174
200
  subscription.unsubscribe()
@@ -0,0 +1,23 @@
1
+ import { configure } from "@/routes"
2
+
3
+ // The path the dashboard is served under, from the layout's
4
+ // <meta name="railwatch-mount">: the embedded engine's mount point
5
+ // (request.script_name), or the base path of a Railwatch server mounted
6
+ // inside another app. "" without the tag (the hosted platform) or for
7
+ // anything that is not one absolute path: "//host" or "https://..." would
8
+ // point every link at another origin.
9
+ export function mountPath(doc: Document = document): string {
10
+ const raw =
11
+ doc.querySelector<HTMLMetaElement>('meta[name="railwatch-mount"]')
12
+ ?.content ?? ""
13
+ const path = raw.trim().replace(/\/+$/, "")
14
+ return /^\/(?![/\\])/.test(path) ? path : ""
15
+ }
16
+
17
+ // Every route helper carries the mount point (js-routes' script_name).
18
+ // Returns the mount, "" when there is none and nothing changed.
19
+ export function applyMount(doc: Document = document): string {
20
+ const mount = mountPath(doc)
21
+ if (mount) configure({ default_url_options: { script_name: mount } })
22
+ return mount
23
+ }
@@ -127,8 +127,17 @@ let foregroundRequest: { id?: string } | null = null
127
127
  // whether or not the first was reported.
128
128
  const requestFailures = new WeakSet<object>()
129
129
 
130
+ // The engine's beacon, under the dashboard's mount point when the page has
131
+ // one (<meta name="railwatch-mount">, lib/mount.ts; inlined because this
132
+ // file is copied into apps on its own). An app's own pages have no such tag
133
+ // and post to the engine at its default mount.
130
134
  function endpoint() {
131
- return "/railwatch/beacon"
135
+ const mount =
136
+ document
137
+ .querySelector<HTMLMetaElement>('meta[name="railwatch-mount"]')
138
+ ?.content.trim()
139
+ .replace(/\/+$/, "") ?? ""
140
+ return /^\/(?![/\\])/.test(mount) ? `${mount}/beacon` : "/railwatch/beacon"
132
141
  }
133
142
 
134
143
  function csrf() {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Railwatch
4
- VERSION = "0.9.1"
4
+ VERSION = "0.9.3"
5
5
  end
@@ -1,4 +1,4 @@
1
- var _o=t=>{throw TypeError(t)};var Eo=(t,e,n)=>e.has(t)||_o("Cannot "+n);var le=(t,e,n)=>(Eo(t,e,"read from private field"),n?n.call(t):e.get(t)),ko=(t,e,n)=>e.has(t)?_o("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Dn=(t,e,n,r)=>(Eo(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);import{x as F,c as P,o as A,j as l,r as d,U as Rt,V as Ia,A as Sr,X as as,u as be,L as Ae,d as ie,W as Oa,J as Da,Y as Ta,Z as $a,_ as La,T as Fa,$ as Dt,S as ls,B as cs,a0 as za,a1 as Ba,n as Va,P as us,a2 as Ha,O as Ua,a3 as Wa,a4 as Ga,g as Ka,G as qa,a5 as Ya,a6 as Xa,I as Za,D as Qa,a7 as Ja,E as el,m as tl,a8 as nl,N as rl,a9 as ol,l as sl,R as il,aa as al,a as ll,ab as cl,ac as ul,ad as dl,ae as mn,v as Tt,b as fl,af as ds,ag as fs}from"./inertia-FoqYZAk8.js";const pl=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ml=F("activity",pl);const hl=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],vl=F("arrow-up-right",hl);const gl=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],ps=F("bell-ring",gl);const xl=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],bl=F("bell",xl);const yl=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Cl=F("book-open",yl);const wl=[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M15 10H9",key:"o6yqo3"}],["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],Sl=F("bookmark-plus",wl);const _l=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],_r=F("bookmark",_l);const El=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],kl=F("bug",El);const jl=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],ms=F("building-2",jl);const Pl=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],Rl=F("cable",Pl);const Ml=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],Nl=F("calendar-clock",Ml);const Al=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],Il=F("chart-pie",Al);const Ol=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],hn=F("check",Ol);const Dl=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hs=F("chevron-down",Dl);const Tl=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vs=F("chevron-right",Tl);const $l=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],gs=F("chevrons-up-down",$l);const Ll=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Fl=F("circle",Ll);const zl=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Bl=F("database",zl);const Vl=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Hl=F("file-text",Vl);const Ul=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Wl=F("flame",Ul);const Gl=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Kl=F("gauge",Gl);const ql=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],Yl=F("git-commit-horizontal",ql);const Xl=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],Zl=F("hard-drive",Xl);const Ql=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Jl=F("layers",Ql);const ec=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],xs=F("layout-grid",ec);const tc=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],nc=F("layout-template",tc);const rc=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],oc=F("link-2",rc);const sc=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],ic=F("log-out",sc);const ac=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],lc=F("mail",ac);const cc=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],uc=F("monitor-smartphone",cc);const dc=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],bs=F("octagon-alert",dc);const fc=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],pc=F("package",fc);const mc=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],hc=F("panel-left",mc);const vc=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],gc=F("pin-off",vc);const xc=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],bc=F("pin",xc);const yc=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],ys=F("plug",yc);const Cc=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],wc=F("plus",Cc);const Sc=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],_c=F("rocket",Sc);const Ec=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Er=F("search",Ec);const kc=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],jc=F("server",kc);const Pc=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Rc=F("settings",Pc);const Mc=[["path",{d:"M7 18v-6a5 5 0 1 1 10 0v6",key:"pcx96s"}],["path",{d:"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z",key:"1b4s83"}],["path",{d:"M21 12h1",key:"jtio3y"}],["path",{d:"M18.5 4.5 18 5",key:"g5sp9y"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"m4.929 4.929.707.707",key:"1i51kw"}],["path",{d:"M12 12v6",key:"3ahymv"}]],Nc=F("siren",Mc);const Ac=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ic=F("sparkles",Ac);const Oc=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Dc=F("terminal",Oc);const Tc=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],$c=F("timer",Tc);const Lc=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Fc=F("trash-2",Lc);const zc=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],kr=F("users",zc);const Bc=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],Vc=F("workflow",Bc);function Hc(t){const e=P.c(13),{className:n}=t,r=d.useId();let o;e[0]!==n?(o=A("text-foreground/35 dark:text-foreground/40 pointer-events-none absolute inset-x-0 top-1/2 h-12 w-full -translate-y-1/2","[mask-composite:intersect]","[mask-image:linear-gradient(to_right,transparent,black_10%,black_90%,transparent),radial-gradient(ellipse_200px_160%_at_50%_50%,transparent_20%,black_100%)]","md:[mask-image:linear-gradient(to_right,transparent,black_10%,black_90%,transparent),radial-gradient(ellipse_300px_160%_at_50%_50%,transparent_35%,black_100%)]",n),e[0]=n,e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx("rect",{x:"9",y:"9",width:"4",height:"30",rx:"1",fill:"currentColor"}),e[2]=s):s=e[2];let i;e[3]!==r?(i=l.jsx("defs",{children:l.jsx("pattern",{id:r,width:"22",height:"48",patternUnits:"userSpaceOnUse",children:s})}),e[3]=r,e[4]=i):i=e[4];const a=`url(#${r})`;let c;e[5]!==a?(c=l.jsx("rect",{width:"100%",height:"100%",fill:a}),e[5]=a,e[6]=c):c=e[6];let u,f;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx("rect",{y:"16",width:"100%",height:"2.5",fill:"currentColor"}),f=l.jsx("rect",{y:"29.5",width:"100%",height:"2.5",fill:"currentColor"}),e[7]=u,e[8]=f):(u=e[7],f=e[8]);let p;return e[9]!==o||e[10]!==i||e[11]!==c?(p=l.jsxs("svg",{"aria-hidden":!0,className:o,preserveAspectRatio:"none",children:[i,c,u,f]}),e[9]=o,e[10]=i,e[11]=c,e[12]=p):p=e[12],p}const Uc={clear:"text-live",caution:"text-warning",stop:"text-danger"},Tn={stop:8,caution:17,clear:26},Wc=["stop","caution","clear"];function Gc(t){const e=P.c(8),{aspect:n,className:r}=t;let o;e[0]!==r?(o=A("pointer-events-none absolute top-1/2 h-16 w-5 -translate-y-[calc(50%+8px)]","left-[calc(50%+100px)] md:left-[calc(50%+150px)]",r),e[0]=r,e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsxs("g",{className:"text-foreground/35 dark:text-foreground/40",children:[l.jsx("rect",{x:"9",y:"33",width:"2",height:"26",rx:"1",fill:"currentColor"}),l.jsx("rect",{x:"5",y:"58",width:"10",height:"2",rx:"1",fill:"currentColor"}),l.jsx("rect",{x:"4.75",y:"1.75",width:"10.5",height:"31.5",rx:"5.25",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})]}),e[2]=s):s=e[2];let i;e[3]!==n?(i=Wc.map(c=>c===n?l.jsxs("g",{className:Uc[c],"data-lamp":c,children:[l.jsx("circle",{cx:"10",cy:Tn[c],r:"6",fill:"currentColor",opacity:"0.2",className:"blur-[2px]"}),l.jsx("circle",{cx:"10",cy:Tn[c],r:"3",fill:"currentColor"})]},c):l.jsx("circle",{cx:"10",cy:Tn[c],r:"3",className:"text-foreground/15",fill:"currentColor"},c)),e[3]=n,e[4]=i):i=e[4];let a;return e[5]!==o||e[6]!==i?(a=l.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 20 64",className:o,children:[s,i]}),e[5]=o,e[6]=i,e[7]=a):a=e[7],a}function Jm(t){const e=P.c(22),{icon:n,title:r,description:o,action:s,signal:i,className:a}=t,c=i===void 0?"clear":i;let u;e[0]!==a?(u=A("relative flex min-h-48 items-center justify-center overflow-hidden px-4 py-8 text-center",a),e[0]=a,e[1]=u):u=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(Hc,{}),e[2]=f):f=e[2];let p;e[3]!==c?(p=l.jsx(Gc,{aspect:c}),e[3]=c,e[4]=p):p=e[4];let m;e[5]!==n?(m=n&&l.jsx("span",{className:"bg-muted text-muted-foreground mb-1 flex size-9 items-center justify-center rounded-md",children:l.jsx(n,{className:"size-4"})}),e[5]=n,e[6]=m):m=e[6];let h;e[7]!==r?(h=l.jsx("span",{className:"text-sm font-medium",children:r}),e[7]=r,e[8]=h):h=e[8];let g;e[9]!==o?(g=o&&l.jsx("span",{className:"text-muted-foreground text-xs leading-relaxed",children:o}),e[9]=o,e[10]=g):g=e[10];let v;e[11]!==s?(v=s&&l.jsx("div",{className:"mt-2",children:s}),e[11]=s,e[12]=v):v=e[12];let x;e[13]!==m||e[14]!==h||e[15]!==g||e[16]!==v?(x=l.jsxs("div",{className:"relative flex max-w-xs flex-col items-center gap-1.5",children:[m,h,g,v]}),e[13]=m,e[14]=h,e[15]=g,e[16]=v,e[17]=x):x=e[17];let y;return e[18]!==u||e[19]!==p||e[20]!==x?(y=l.jsxs("div",{className:u,"aria-live":"polite",children:[f,p,x]}),e[18]=u,e[19]=p,e[20]=x,e[21]=y):y=e[21],y}var Kc=Object.defineProperty,jr=(t,e)=>Kc(t,"name",{value:e,configurable:!0});function er(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}jr(er,"setRef");function Je(...t){return e=>{let n=!1;const r=t.map(o=>{const s=er(o,e);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():er(t[o],null)}}}}jr(Je,"composeRefs");function ee(...t){return d.useCallback(Je(...t),t)}jr(ee,"useComposedRefs");var qc=Object.defineProperty,ye=(t,e)=>qc(t,"name",{value:e,configurable:!0});function $e(t){const e=d.forwardRef((n,r)=>{let{children:o,...s}=n,i=null,a=!1;const c=[];tr(o)&&typeof Yt=="function"&&(o=Yt(o._payload)),d.Children.forEach(o,m=>{if(Es(m)){a=!0;const h=m;let g="child"in h.props?h.props.child:h.props.children;tr(g)&&typeof Yt=="function"&&(g=Yt(g._payload)),i=Yc(h,g),c.push(i?.props?.children)}else c.push(m)}),i?i=d.cloneElement(i,void 0,c):!a&&d.Children.count(o)===1&&d.isValidElement(o)&&(i=o);const u=i?_s(i):void 0,f=ee(r,u);if(!i){if(o||o===0)throw new Error(a?Qc(t):Zc(t));return o}const p=Ss(s,i.props??{});return i.type!==d.Fragment&&(p.ref=r?f:u),d.cloneElement(i,p)});return e.displayName=`${t}.Slot`,e}ye($e,"createSlot");var Mt=$e("Slot"),Cs=Symbol.for("radix.slottable");function ws(t){const e=ye(n=>"child"in n?n.children(n.child):n.children,"Slottable");return e.displayName=`${t}.Slottable`,e.__radixId=Cs,e}ye(ws,"createSlottable");var Yc=ye((t,e)=>{if("child"in t.props){const n=t.props.child;return d.isValidElement(n)?d.cloneElement(n,void 0,t.props.children(n.props.children)):null}return d.isValidElement(e)?e:null},"getSlottableElementFromSlottable");function Ss(t,e){const n={...e};for(const r in e){const o=t[r],s=e[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...t,...n}}ye(Ss,"mergeProps");function _s(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}ye(_s,"getElementRef");function Es(t){return d.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Cs}ye(Es,"isSlottable");var Xc=Symbol.for("react.lazy");function tr(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Xc&&"_payload"in t&&ks(t._payload)}ye(tr,"isLazyComponent");function ks(t){return typeof t=="object"&&t!==null&&"then"in t}ye(ks,"isPromiseLike");var Zc=ye(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Qc=ye(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Yt=Rt[" use ".trim().toString()];const jo=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Po=Ia,Pr=(t,e)=>n=>{var r;if(e?.variants==null)return Po(t,n?.class,n?.className);const{variants:o,defaultVariants:s}=e,i=Object.keys(o).map(u=>{const f=n?.[u],p=s?.[u];if(f===null)return null;const m=jo(f)||jo(p);return o[u][m]}),a=n&&Object.entries(n).reduce((u,f)=>{let[p,m]=f;return m===void 0||(u[p]=m),u},{}),c=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:m,...h}=f;return Object.entries(h).every(g=>{let[v,x]=g;return Array.isArray(x)?x.includes({...s,...a}[v]):{...s,...a}[v]===x})?[...u,p,m]:u},[]);return Po(t,i,c,n?.class,n?.className)},Jc=Pr("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function eh(t){const e=P.c(12);let n,r,o,s;e[0]!==t?({className:n,variant:s,asChild:o,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s):(n=e[1],r=e[2],o=e[3],s=e[4]);const a=(o===void 0?!1:o)?Mt:"span";let c;e[5]!==n||e[6]!==s?(c=A(Jc({variant:s}),n),e[5]=n,e[6]=s,e[7]=c):c=e[7];let u;return e[8]!==a||e[9]!==r||e[10]!==c?(u=l.jsx(a,{"data-slot":"badge",className:c,...r}),e[8]=a,e[9]=r,e[10]=c,e[11]=u):u=e[11],u}const eu=Pr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Et(t){const e=P.c(14);let n,r,o,s,i;e[0]!==t?({className:n,variant:i,size:o,asChild:s,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5]);const c=(s===void 0?!1:s)?Mt:"button";let u;e[6]!==n||e[7]!==o||e[8]!==i?(u=A(eu({variant:i,size:o,className:n})),e[6]=n,e[7]=o,e[8]=i,e[9]=u):u=e[9];let f;return e[10]!==c||e[11]!==r||e[12]!==u?(f=l.jsx(c,{"data-slot":"button",className:u,...r}),e[10]=c,e[11]=r,e[12]=u,e[13]=f):f=e[13],f}var Ro=1,tu=.9,nu=.8,ru=.17,$n=.1,Ln=.999,ou=.9999,su=.99,iu=/[\\\/_+.#"@\[\(\{&]/,au=/[\\\/_+.#"@\[\(\{&]/g,lu=/[\s-]/,js=/[\s-]/g;function nr(t,e,n,r,o,s,i){if(s===e.length)return o===t.length?Ro:su;var a=`${o},${s}`;if(i[a]!==void 0)return i[a];for(var c=r.charAt(s),u=n.indexOf(c,o),f=0,p,m,h,g;u>=0;)p=nr(t,e,n,r,u+1,s+1,i),p>f&&(u===o?p*=Ro:iu.test(t.charAt(u-1))?(p*=nu,h=t.slice(o,u-1).match(au),h&&o>0&&(p*=Math.pow(Ln,h.length))):lu.test(t.charAt(u-1))?(p*=tu,g=t.slice(o,u-1).match(js),g&&o>0&&(p*=Math.pow(Ln,g.length))):(p*=ru,o>0&&(p*=Math.pow(Ln,u-o))),t.charAt(u)!==e.charAt(s)&&(p*=ou)),(p<$n&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(m=nr(t,e,n,r,u+1,s+2,i),m*$n>p&&(p=m*$n)),p>f&&(f=p),u=n.indexOf(c,u+1);return i[a]=f,f}function Mo(t){return t.toLowerCase().replace(js," ")}function cu(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,nr(t,e,Mo(t),Mo(e),0,0,{})}var uu=Object.defineProperty,Nt=(t,e)=>uu(t,"name",{value:e,configurable:!0}),Ps=!!(typeof window<"u"&&window.document&&window.document.createElement);function V(t,e,{checkForDefaultPrevented:n=!0}={}){return Nt(function(o){if(t?.(o),n===!1||!o||!o.defaultPrevented)return e?.(o)},"handleEvent")}Nt(V,"composeEventHandlers");function du(t){if(!Ps)throw new Error("Cannot access window outside of the DOM");return t?.ownerDocument?.defaultView??window}Nt(du,"getOwnerWindow");function rr(t){if(!Ps)throw new Error("Cannot access document outside of the DOM");return t?.ownerDocument??document}Nt(rr,"getOwnerDocument");function Rs(t,e=!1){const{activeElement:n}=rr(t);if(!n?.nodeName)return null;if(Ms(n)&&n.contentDocument)return Rs(n.contentDocument.body,e);if(e){const r=n.getAttribute("aria-activedescendant");if(r){const o=rr(n).getElementById(r);if(o)return o}}return n}Nt(Rs,"getActiveElement");function Ms(t){return t.tagName==="IFRAME"}Nt(Ms,"isFrame");var fu=Object.defineProperty,me=(t,e)=>fu(t,"name",{value:e,configurable:!0});function pu(t,e){const n=d.createContext(e);n.displayName=t+"Context";const r=me(s=>{const{children:i,...a}=s,c=d.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:i})},"Provider");r.displayName=t+"Provider";function o(s,i={}){const{optional:a=!1}=i,c=d.useContext(n);if(c)return c;if(e!==void 0)return e;if(!a)throw new Error(`\`${s}\` must be used within \`${t}\``)}return me(o,"useContext"),[r,o]}me(pu,"createContext");function he(t,e=[]){let n=[];function r(s,i){const a=d.createContext(i);a.displayName=s+"Context";const c=n.length;n=[...n,i];const u=me(p=>{const{scope:m,children:h,...g}=p,v=m?.[t]?.[c]||a,x=d.useMemo(()=>g,Object.values(g));return l.jsx(v.Provider,{value:x,children:h})},"Provider");u.displayName=s+"Provider";function f(p,m,h={}){const{optional:g=!1}=h,v=m?.[t]?.[c]||a,x=d.useContext(v);if(x)return x;if(i!==void 0)return i;if(!g)throw new Error(`\`${p}\` must be used within \`${s}\``)}return me(f,"useContext"),[u,f]}me(r,"createContext");const o=me(()=>{const s=n.map(i=>d.createContext(i));return me(function(a){const c=a?.[t]||s;return d.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])},"useScope")},"createScope");return o.scopeName=t,[r,Ns(o,...e)]}me(he,"createContextScope");function Ns(...t){const e=t[0];if(t.length===1)return e;const n=me(()=>{const r=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return me(function(s){const i=r.reduce((a,{useScope:c,scopeName:u})=>{const p=c(s)[`__scope${u}`];return{...a,...p}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return n.scopeName=e.scopeName,n}me(Ns,"composeContextScopes");var ae=globalThis?.document?d.useLayoutEffect:()=>{},mu=Object.defineProperty,hu=(t,e)=>mu(t,"name",{value:e,configurable:!0}),vu=Rt[" useId ".trim().toString()]||(()=>{}),gu=0;function ue(t){const[e,n]=d.useState(vu());return ae(()=>{t||n(r=>r??String(gu++))},[t]),t||(e?`radix-${e}`:"")}hu(ue,"useId");var xu=Object.defineProperty,bu=(t,e)=>xu(t,"name",{value:e,configurable:!0}),No=Rt[" useEffectEvent ".trim().toString()],Ao=Rt[" useInsertionEffect ".trim().toString()];function As(t){if(typeof No=="function")return No(t);const e=d.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Ao=="function"?Ao(()=>{e.current=t}):ae(()=>{e.current=t}),d.useMemo(()=>((...n)=>e.current?.(...n)),[])}bu(As,"useEffectEvent");var yu=Object.defineProperty,Vt=(t,e)=>yu(t,"name",{value:e,configurable:!0}),Cu=Rt[" useInsertionEffect ".trim().toString()]||ae;function ot({prop:t,defaultProp:e,onChange:n=Vt(()=>{},"onChange"),caller:r}){const[o,s,i]=Is({defaultProp:e,onChange:n}),a=t!==void 0,c=a?t:o,u=d.useCallback(f=>{if(a){const p=Os(f)?f(t):f;p!==t&&i.current?.(p)}else s(f)},[a,t,s,i]);return[c,u]}Vt(ot,"useControllableState");function Is({defaultProp:t,onChange:e}){const[n,r]=d.useState(t),o=d.useRef(n),s=d.useRef(e);return Cu(()=>{s.current=e},[e]),d.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}Vt(Is,"useUncontrolledState");function Os(t){return typeof t=="function"}Vt(Os,"isFunction");var Io=Symbol("RADIX:SYNC_STATE");function wu(t,e,n,r){const{prop:o,defaultProp:s,onChange:i,caller:a}=e,c=o!==void 0,u=As(i),f=[{...n,state:s}];r&&f.push(r);const[p,m]=d.useReducer((x,y)=>{if(y.type===Io)return{...x,state:y.state};const C=t(x,y);return c&&!Object.is(C.state,x.state)&&u(C.state),C},...f),h=p.state,g=d.useRef(h);d.useEffect(()=>{g.current!==h&&(g.current=h,c||u(h))},[h,g,c]);const v=d.useMemo(()=>o!==void 0?{...p,state:o}:p,[p,o]);return d.useEffect(()=>{c&&!Object.is(o,p.state)&&m({type:Io,state:o})},[o,p.state,c]),[v,m]}Vt(wu,"useControllableStateReducer");var Su=Object.defineProperty,_u=(t,e)=>Su(t,"name",{value:e,configurable:!0}),Eu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Eu.reduce((t,e)=>{const n=$e(`Primitive.${e}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Rr(t,e){t&&Sr.flushSync(()=>t.dispatchEvent(e))}_u(Rr,"dispatchDiscreteCustomEvent");var ku=Object.defineProperty,ju=(t,e)=>ku(t,"name",{value:e,configurable:!0});function xe(t){const e=d.useRef(t);return d.useEffect(()=>{e.current=t}),d.useMemo(()=>((...n)=>e.current?.(...n)),[])}ju(xe,"useCallbackRef");var Pu=Object.defineProperty,re=(t,e)=>Pu(t,"name",{value:e,configurable:!0}),or="dismissableLayer.update",Ru="dismissableLayer.pointerDownOutside",Mu="dismissableLayer.focusOutside",Oo,Ds=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Mr=d.forwardRef(re(function(e,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:c,onDismiss:u,...f}=e,p=d.useContext(Ds),[m,h]=d.useState(null),g=m?.ownerDocument??globalThis?.document,[,v]=d.useState({}),x=ee(n,h),y=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),b=C?y.indexOf(C):-1,w=m?y.indexOf(m):-1,_=p.layersWithOutsidePointerEventsDisabled.size>0,S=w>=b,E=d.useRef(!1),R=$s(N=>{i?.(N),c?.(N),N.defaultPrevented||u?.()},{ownerDocument:g,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:d.useCallback(N=>{if(!(N instanceof Node))return!1;const $=[...p.branches].some(L=>L.contains(N));return S&&!$},[p.branches,S])}),j=Ls(N=>{if(o&&E.current)return;const $=N.target;[...p.branches].some(B=>B.contains($))||(a?.(N),c?.(N),N.defaultPrevented||u?.())},g),M=m?w===y.length-1:!1,I=xe(N=>{N.key==="Escape"&&(s?.(N),!N.defaultPrevented&&u&&(N.preventDefault(),u()))});return d.useEffect(()=>{if(M)return g.addEventListener("keydown",I,{capture:!0}),()=>g.removeEventListener("keydown",I,{capture:!0})},[g,M,I]),d.useEffect(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Oo=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),sr(),()=>{r&&(p.layersWithOutsidePointerEventsDisabled.delete(m),p.layersWithOutsidePointerEventsDisabled.size===0&&(g.body.style.pointerEvents=Oo))}},[m,g,r,p]),d.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),sr())},[m,p]),d.useEffect(()=>{const N=re(()=>v({}),"handleUpdate");return document.addEventListener(or,N),()=>document.removeEventListener(or,N)},[]),l.jsx(K.div,{...f,ref:x,style:{pointerEvents:_?S?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,j.onFocusCapture),onBlurCapture:V(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,R.onPointerDownCapture)})},"DismissableLayer"));function Ts(){const t=d.useContext(Ds),[e,n]=d.useState(null);return d.useEffect(()=>{if(e)return t.dismissableSurfaces.add(e),()=>{t.dismissableSurfaces.delete(e)}},[e,t.dismissableSurfaces]),n}re(Ts,"useDismissableLayerSurface");var Nu=re(()=>!0,"IS_TRUE");function $s(t,e){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:s,shouldHandlePointerDownOutside:i=Nu}=e,a=xe(t),c=d.useRef(!1),u=d.useRef(!1),f=d.useRef(new Map),p=d.useRef(()=>{});return d.useEffect(()=>{function m(){u.current=!1,o.current=!1,f.current.clear()}re(m,"resetOutsideInteraction");function h(){return Array.from(f.current.values()).some(Boolean)}re(h,"isOutsideInteractionIntercepted");function g(b){if(!u.current)return;const w=b.target;w instanceof Node&&[...s].some(S=>S.contains(w))||f.current.set(b.type,!0),b.type==="click"&&window.setTimeout(()=>{u.current&&p.current()},0)}re(g,"handleInteractionCapture");function v(b){u.current&&f.current.set(b.type,!1)}re(v,"handleInteractionBubble");const x=re(b=>{if(b.target&&!c.current){let w=function(){n.removeEventListener("click",p.current);const S=h();m(),S||Nr(Ru,a,_,{discrete:!0})};if(re(w,"handleAndDispatchPointerDownOutsideEvent"),!i(b.target)){n.removeEventListener("click",p.current),m(),c.current=!1;return}const _={originalEvent:b};u.current=!0,o.current=r&&b.button===0,f.current.clear(),!r||b.button!==0?w():(n.removeEventListener("click",p.current),p.current=w,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),m();c.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const b of y)n.addEventListener(b,g,!0),n.addEventListener(b,v);const C=window.setTimeout(()=>{n.addEventListener("pointerdown",x)},0);return()=>{window.clearTimeout(C),n.removeEventListener("pointerdown",x),n.removeEventListener("click",p.current);for(const b of y)n.removeEventListener(b,g,!0),n.removeEventListener(b,v)}},[n,a,r,o,s,i]),{onPointerDownCapture:re(()=>c.current=!0,"onPointerDownCapture")}}re($s,"usePointerDownOutside");function Ls(t,e=globalThis?.document){const n=xe(t),r=d.useRef(!1);return d.useEffect(()=>{const o=re(s=>{s.target&&!r.current&&Nr(Mu,n,{originalEvent:s},{discrete:!1})},"handleFocus");return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:re(()=>r.current=!0,"onFocusCapture"),onBlurCapture:re(()=>r.current=!1,"onBlurCapture")}}re(Ls,"useFocusOutside");function sr(){const t=new CustomEvent(or);document.dispatchEvent(t)}re(sr,"dispatchUpdate");function Nr(t,e,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?Rr(o,s):o.dispatchEvent(s)}re(Nr,"handleAndDispatchCustomEvent");var Au=Object.defineProperty,ce=(t,e)=>Au(t,"name",{value:e,configurable:!0}),Fn="focusScope.autoFocusOnMount",zn="focusScope.autoFocusOnUnmount",Do={bubbles:!1,cancelable:!0},Fs=d.forwardRef(ce(function(e,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=e,[c,u]=d.useState(null),f=xe(s),p=xe(i),m=d.useRef(null),h=ee(n,u),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(o){let x=function(w){if(g.paused||!c)return;const _=w.target;c.contains(_)?m.current=_:Ne(m.current,{select:!0})},y=function(w){if(g.paused||!c)return;const _=w.relatedTarget;_!==null&&(c.contains(_)||Ne(m.current,{select:!0}))},C=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Ne(c)};ce(x,"handleFocusIn"),ce(y,"handleFocusOut"),ce(C,"handleMutations"),document.addEventListener("focusin",x),document.addEventListener("focusout",y);const b=new MutationObserver(C);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",y),b.disconnect()}}},[o,c,g.paused]),d.useEffect(()=>{if(c){To.add(g);const x=document.activeElement;if(!c.contains(x)){const C=new CustomEvent(Fn,Do);c.addEventListener(Fn,f),c.dispatchEvent(C),C.defaultPrevented||(zs(Ws(Ar(c)),{select:!0}),document.activeElement===x&&Ne(c))}return()=>{c.removeEventListener(Fn,f),setTimeout(()=>{const C=new CustomEvent(zn,Do);c.addEventListener(zn,p),c.dispatchEvent(C),C.defaultPrevented||Ne(x??document.body,{select:!0}),c.removeEventListener(zn,p),To.remove(g)},0)}}},[c,f,p,g]);const v=d.useCallback(x=>{if(!r&&!o||g.paused)return;const y=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,C=document.activeElement;if(y&&C){const b=x.currentTarget,[w,_]=Bs(b);w&&_?!x.shiftKey&&C===_?(x.preventDefault(),r&&Ne(w,{select:!0})):x.shiftKey&&C===w&&(x.preventDefault(),r&&Ne(_,{select:!0})):C===b&&x.preventDefault()}},[r,o,g.paused]);return l.jsx(K.div,{tabIndex:-1,...a,ref:h,onKeyDown:v})},"FocusScope"));function zs(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Ne(r,{select:e}),document.activeElement!==n)return}ce(zs,"focusFirst");function Bs(t){const e=Ar(t),n=ir(e,t),r=ir(e.reverse(),t);return[n,r]}ce(Bs,"getTabbableEdges");function Ar(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:ce(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)e.push(n.currentNode);return e}ce(Ar,"getTabbableCandidates");function ir(t,e){const n=typeof e.checkVisibility=="function"&&e.checkVisibility({checkVisibilityCSS:!0});for(const r of t)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Vs(r,{upTo:e})))return r}ce(ir,"findVisible");function Vs(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}ce(Vs,"isHidden");function Hs(t){return t instanceof HTMLInputElement&&"select"in t}ce(Hs,"isSelectableInput");function Ne(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&Hs(t)&&e&&t.select()}}ce(Ne,"focus");var To=Us();function Us(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=ar(t,e),t.unshift(e)},remove(e){t=ar(t,e),t[0]?.resume()}}}ce(Us,"createFocusScopesStack");function ar(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}ce(ar,"arrayRemove");function Ws(t){return t.filter(e=>e.tagName!=="A")}ce(Ws,"removeLinks");var Iu=Object.defineProperty,Ou=(t,e)=>Iu(t,"name",{value:e,configurable:!0}),Ir=d.forwardRef(Ou(function(e,n){const{container:r,...o}=e,[s,i]=d.useState(!1);ae(()=>i(!0),[]);const a=r||s&&globalThis?.document?.body;return a?Sr.createPortal(l.jsx(K.div,{...o,ref:n}),a):null},"Portal")),Du=Object.defineProperty,Le=(t,e)=>Du(t,"name",{value:e,configurable:!0});function Gs(t,e){return d.useReducer((n,r)=>e[n][r]??n,t)}Le(Gs,"useStateMachine");var Pe=Le(t=>{const{present:e,children:n}=t,r=Ks(e),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=qs(r.ref,Ys(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null},"Presence");function Ks(t){const[e,n]=d.useState(),r=d.useRef(null),o=d.useRef(t),s=d.useRef("none"),i=d.useRef(void 0),a=t?"mounted":"unmounted",[c,u]=Gs(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{c==="mounted"?(s.current=i.current??wt(r.current),i.current=void 0):s.current="none"},[c]),ae(()=>{const f=r.current,p=o.current;if(p!==t){const h=s.current,g=wt(f);t?(i.current=g,u("MOUNT")):g==="none"||f?.display==="none"?u("UNMOUNT"):u(p&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,u]),ae(()=>{if(e){let f;const p=e.ownerDocument.defaultView??window,m=Le(g=>{const x=wt(r.current).includes(CSS.escape(g.animationName));if(g.target===e&&x&&(u("ANIMATION_END"),!o.current)){const y=e.style.animationFillMode;e.style.animationFillMode="forwards",f=p.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=y)})}},"handleAnimationEnd"),h=Le(g=>{g.target===e&&(s.current=wt(r.current))},"handleAnimationStart");return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{p.clearTimeout(f),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:d.useCallback(f=>{if(f){const p=getComputedStyle(f);r.current=p,i.current=wt(p)}else r.current=null;n(f)},[])}}Le(Ks,"usePresence");function lr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}Le(lr,"setRef");function qs(...t){const e=d.useRef(t);return e.current=t,d.useCallback(n=>{const r=e.current;let o=!1;const s=r.map(i=>{const a=lr(i,n);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():lr(r[i],null)}}},[])}Le(qs,"useStableComposedRefs");function wt(t){return t?.animationName||"none"}Le(wt,"getAnimationName");function Ys(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}Le(Ys,"getElementRef");var Tu=Object.defineProperty,Or=(t,e)=>Tu(t,"name",{value:e,configurable:!0}),Xt=0,xt=null;function $u(t){return vn(),t.children}Or($u,"FocusGuards");function vn(){d.useEffect(()=>{xt||(xt={start:cr(),end:cr()});const{start:t,end:e}=xt;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==e&&document.body.insertAdjacentElement("beforeend",e),Xt++,()=>{Xt===1&&(xt?.start.remove(),xt?.end.remove(),xt=null),Xt=Math.max(0,Xt-1)}},[])}Or(vn,"useFocusGuards");function cr(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}Or(cr,"createFocusGuard");var Se=function(){return Se=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Se.apply(this,arguments)};function Xs(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Lu(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,s;r<o;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var on="right-scroll-bar-position",sn="width-before-scroll-bar",Fu="with-scroll-bars-hidden",zu="--removed-body-scroll-bar-size";function Bn(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Bu(t,e){var n=d.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=e,n.facade}var Vu=typeof window<"u"?d.useLayoutEffect:d.useEffect,$o=new WeakMap;function Hu(t,e){var n=Bu(null,function(r){return t.forEach(function(o){return Bn(o,r)})});return Vu(function(){var r=$o.get(n);if(r){var o=new Set(r),s=new Set(t),i=n.current;o.forEach(function(a){s.has(a)||Bn(a,null)}),s.forEach(function(a){o.has(a)||Bn(a,i)})}$o.set(n,t)},[t]),n}function Uu(t){return t}function Wu(t,e){e===void 0&&(e=Uu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(s){var i=e(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function Gu(t){t===void 0&&(t={});var e=Wu(null);return e.options=Se({async:!0,ssr:!1},t),e}var Zs=function(t){var e=t.sideCar,n=Xs(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Se({},n))};Zs.isSideCarExport=!0;function Ku(t,e){return t.useMedium(e),Zs}var Qs=Gu(),Vn=function(){},gn=d.forwardRef(function(t,e){var n=d.useRef(null),r=d.useState({onScrollCapture:Vn,onWheelCapture:Vn,onTouchMoveCapture:Vn}),o=r[0],s=r[1],i=t.forwardProps,a=t.children,c=t.className,u=t.removeScrollBar,f=t.enabled,p=t.shards,m=t.sideCar,h=t.noRelative,g=t.noIsolation,v=t.inert,x=t.allowPinchZoom,y=t.as,C=y===void 0?"div":y,b=t.gapMode,w=Xs(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=m,S=Hu([n,e]),E=Se(Se({},w),o);return d.createElement(d.Fragment,null,f&&d.createElement(_,{sideCar:Qs,removeScrollBar:u,shards:p,noRelative:h,noIsolation:g,inert:v,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:b}),i?d.cloneElement(d.Children.only(a),Se(Se({},E),{ref:S})):d.createElement(C,Se({},E,{className:c,ref:S}),a))});gn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gn.classNames={fullWidth:sn,zeroRight:on};var qu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yu(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=qu();return e&&t.setAttribute("nonce",e),t}function Xu(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Zu(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Qu=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Yu())&&(Xu(e,n),Zu(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Ju=function(){var t=Qu();return function(e,n){d.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},Js=function(){var t=Ju(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e},ed={left:0,top:0,right:0,gap:0},Hn=function(t){return parseInt(t||"",10)||0},td=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[Hn(n),Hn(r),Hn(o)]},nd=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return ed;var e=td(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},rd=Js(),kt="data-scroll-locked",od=function(t,e,n,r){var o=t.left,s=t.top,i=t.right,a=t.gap;return n===void 0&&(n="margin"),`
1
+ var _o=t=>{throw TypeError(t)};var Eo=(t,e,n)=>e.has(t)||_o("Cannot "+n);var le=(t,e,n)=>(Eo(t,e,"read from private field"),n?n.call(t):e.get(t)),ko=(t,e,n)=>e.has(t)?_o("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Dn=(t,e,n,r)=>(Eo(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n);import{x as F,c as P,o as A,j as l,r as d,U as Rt,V as Ia,A as Sr,X as as,u as be,L as Ae,d as ie,W as Oa,J as Da,Y as Ta,Z as $a,_ as La,T as Fa,$ as Dt,S as ls,B as cs,a0 as za,a1 as Ba,n as Va,P as us,a2 as Ha,O as Ua,a3 as Wa,a4 as Ga,g as Ka,G as qa,a5 as Ya,a6 as Xa,I as Za,D as Qa,a7 as Ja,E as el,m as tl,a8 as nl,N as rl,a9 as ol,l as sl,R as il,aa as al,a as ll,ab as cl,ac as ul,ad as dl,ae as mn,v as Tt,b as fl,af as ds,ag as fs}from"./inertia-DfNRARuA.js";const pl=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],ml=F("activity",pl);const hl=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],vl=F("arrow-up-right",hl);const gl=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6",key:"5bb3ad"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8",key:"tap9e0"}]],ps=F("bell-ring",gl);const xl=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],bl=F("bell",xl);const yl=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Cl=F("book-open",yl);const wl=[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M15 10H9",key:"o6yqo3"}],["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],Sl=F("bookmark-plus",wl);const _l=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],_r=F("bookmark",_l);const El=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],kl=F("bug",El);const jl=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],ms=F("building-2",jl);const Pl=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],Rl=F("cable",Pl);const Ml=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],Nl=F("calendar-clock",Ml);const Al=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],Il=F("chart-pie",Al);const Ol=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],hn=F("check",Ol);const Dl=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hs=F("chevron-down",Dl);const Tl=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vs=F("chevron-right",Tl);const $l=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],gs=F("chevrons-up-down",$l);const Ll=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Fl=F("circle",Ll);const zl=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Bl=F("database",zl);const Vl=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Hl=F("file-text",Vl);const Ul=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],Wl=F("flame",Ul);const Gl=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],Kl=F("gauge",Gl);const ql=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],Yl=F("git-commit-horizontal",ql);const Xl=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],Zl=F("hard-drive",Xl);const Ql=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Jl=F("layers",Ql);const ec=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],xs=F("layout-grid",ec);const tc=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],nc=F("layout-template",tc);const rc=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],oc=F("link-2",rc);const sc=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],ic=F("log-out",sc);const ac=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],lc=F("mail",ac);const cc=[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]],uc=F("monitor-smartphone",cc);const dc=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]],bs=F("octagon-alert",dc);const fc=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],pc=F("package",fc);const mc=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],hc=F("panel-left",mc);const vc=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],gc=F("pin-off",vc);const xc=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],bc=F("pin",xc);const yc=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],ys=F("plug",yc);const Cc=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],wc=F("plus",Cc);const Sc=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],_c=F("rocket",Sc);const Ec=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Er=F("search",Ec);const kc=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],jc=F("server",kc);const Pc=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Rc=F("settings",Pc);const Mc=[["path",{d:"M7 18v-6a5 5 0 1 1 10 0v6",key:"pcx96s"}],["path",{d:"M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z",key:"1b4s83"}],["path",{d:"M21 12h1",key:"jtio3y"}],["path",{d:"M18.5 4.5 18 5",key:"g5sp9y"}],["path",{d:"M2 12h1",key:"1uaihz"}],["path",{d:"M12 2v1",key:"11qlp1"}],["path",{d:"m4.929 4.929.707.707",key:"1i51kw"}],["path",{d:"M12 12v6",key:"3ahymv"}]],Nc=F("siren",Mc);const Ac=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ic=F("sparkles",Ac);const Oc=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Dc=F("terminal",Oc);const Tc=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],$c=F("timer",Tc);const Lc=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Fc=F("trash-2",Lc);const zc=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],kr=F("users",zc);const Bc=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],Vc=F("workflow",Bc);function Hc(t){const e=P.c(13),{className:n}=t,r=d.useId();let o;e[0]!==n?(o=A("text-foreground/35 dark:text-foreground/40 pointer-events-none absolute inset-x-0 top-1/2 h-12 w-full -translate-y-1/2","[mask-composite:intersect]","[mask-image:linear-gradient(to_right,transparent,black_10%,black_90%,transparent),radial-gradient(ellipse_200px_160%_at_50%_50%,transparent_20%,black_100%)]","md:[mask-image:linear-gradient(to_right,transparent,black_10%,black_90%,transparent),radial-gradient(ellipse_300px_160%_at_50%_50%,transparent_35%,black_100%)]",n),e[0]=n,e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx("rect",{x:"9",y:"9",width:"4",height:"30",rx:"1",fill:"currentColor"}),e[2]=s):s=e[2];let i;e[3]!==r?(i=l.jsx("defs",{children:l.jsx("pattern",{id:r,width:"22",height:"48",patternUnits:"userSpaceOnUse",children:s})}),e[3]=r,e[4]=i):i=e[4];const a=`url(#${r})`;let c;e[5]!==a?(c=l.jsx("rect",{width:"100%",height:"100%",fill:a}),e[5]=a,e[6]=c):c=e[6];let u,f;e[7]===Symbol.for("react.memo_cache_sentinel")?(u=l.jsx("rect",{y:"16",width:"100%",height:"2.5",fill:"currentColor"}),f=l.jsx("rect",{y:"29.5",width:"100%",height:"2.5",fill:"currentColor"}),e[7]=u,e[8]=f):(u=e[7],f=e[8]);let p;return e[9]!==o||e[10]!==i||e[11]!==c?(p=l.jsxs("svg",{"aria-hidden":!0,className:o,preserveAspectRatio:"none",children:[i,c,u,f]}),e[9]=o,e[10]=i,e[11]=c,e[12]=p):p=e[12],p}const Uc={clear:"text-live",caution:"text-warning",stop:"text-danger"},Tn={stop:8,caution:17,clear:26},Wc=["stop","caution","clear"];function Gc(t){const e=P.c(8),{aspect:n,className:r}=t;let o;e[0]!==r?(o=A("pointer-events-none absolute top-1/2 h-16 w-5 -translate-y-[calc(50%+8px)]","left-[calc(50%+100px)] md:left-[calc(50%+150px)]",r),e[0]=r,e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsxs("g",{className:"text-foreground/35 dark:text-foreground/40",children:[l.jsx("rect",{x:"9",y:"33",width:"2",height:"26",rx:"1",fill:"currentColor"}),l.jsx("rect",{x:"5",y:"58",width:"10",height:"2",rx:"1",fill:"currentColor"}),l.jsx("rect",{x:"4.75",y:"1.75",width:"10.5",height:"31.5",rx:"5.25",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})]}),e[2]=s):s=e[2];let i;e[3]!==n?(i=Wc.map(c=>c===n?l.jsxs("g",{className:Uc[c],"data-lamp":c,children:[l.jsx("circle",{cx:"10",cy:Tn[c],r:"6",fill:"currentColor",opacity:"0.2",className:"blur-[2px]"}),l.jsx("circle",{cx:"10",cy:Tn[c],r:"3",fill:"currentColor"})]},c):l.jsx("circle",{cx:"10",cy:Tn[c],r:"3",className:"text-foreground/15",fill:"currentColor"},c)),e[3]=n,e[4]=i):i=e[4];let a;return e[5]!==o||e[6]!==i?(a=l.jsxs("svg",{"aria-hidden":!0,viewBox:"0 0 20 64",className:o,children:[s,i]}),e[5]=o,e[6]=i,e[7]=a):a=e[7],a}function Jm(t){const e=P.c(22),{icon:n,title:r,description:o,action:s,signal:i,className:a}=t,c=i===void 0?"clear":i;let u;e[0]!==a?(u=A("relative flex min-h-48 items-center justify-center overflow-hidden px-4 py-8 text-center",a),e[0]=a,e[1]=u):u=e[1];let f;e[2]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(Hc,{}),e[2]=f):f=e[2];let p;e[3]!==c?(p=l.jsx(Gc,{aspect:c}),e[3]=c,e[4]=p):p=e[4];let m;e[5]!==n?(m=n&&l.jsx("span",{className:"bg-muted text-muted-foreground mb-1 flex size-9 items-center justify-center rounded-md",children:l.jsx(n,{className:"size-4"})}),e[5]=n,e[6]=m):m=e[6];let h;e[7]!==r?(h=l.jsx("span",{className:"text-sm font-medium",children:r}),e[7]=r,e[8]=h):h=e[8];let g;e[9]!==o?(g=o&&l.jsx("span",{className:"text-muted-foreground text-xs leading-relaxed",children:o}),e[9]=o,e[10]=g):g=e[10];let v;e[11]!==s?(v=s&&l.jsx("div",{className:"mt-2",children:s}),e[11]=s,e[12]=v):v=e[12];let x;e[13]!==m||e[14]!==h||e[15]!==g||e[16]!==v?(x=l.jsxs("div",{className:"relative flex max-w-xs flex-col items-center gap-1.5",children:[m,h,g,v]}),e[13]=m,e[14]=h,e[15]=g,e[16]=v,e[17]=x):x=e[17];let y;return e[18]!==u||e[19]!==p||e[20]!==x?(y=l.jsxs("div",{className:u,"aria-live":"polite",children:[f,p,x]}),e[18]=u,e[19]=p,e[20]=x,e[21]=y):y=e[21],y}var Kc=Object.defineProperty,jr=(t,e)=>Kc(t,"name",{value:e,configurable:!0});function er(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}jr(er,"setRef");function Je(...t){return e=>{let n=!1;const r=t.map(o=>{const s=er(o,e);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():er(t[o],null)}}}}jr(Je,"composeRefs");function ee(...t){return d.useCallback(Je(...t),t)}jr(ee,"useComposedRefs");var qc=Object.defineProperty,ye=(t,e)=>qc(t,"name",{value:e,configurable:!0});function $e(t){const e=d.forwardRef((n,r)=>{let{children:o,...s}=n,i=null,a=!1;const c=[];tr(o)&&typeof Yt=="function"&&(o=Yt(o._payload)),d.Children.forEach(o,m=>{if(Es(m)){a=!0;const h=m;let g="child"in h.props?h.props.child:h.props.children;tr(g)&&typeof Yt=="function"&&(g=Yt(g._payload)),i=Yc(h,g),c.push(i?.props?.children)}else c.push(m)}),i?i=d.cloneElement(i,void 0,c):!a&&d.Children.count(o)===1&&d.isValidElement(o)&&(i=o);const u=i?_s(i):void 0,f=ee(r,u);if(!i){if(o||o===0)throw new Error(a?Qc(t):Zc(t));return o}const p=Ss(s,i.props??{});return i.type!==d.Fragment&&(p.ref=r?f:u),d.cloneElement(i,p)});return e.displayName=`${t}.Slot`,e}ye($e,"createSlot");var Mt=$e("Slot"),Cs=Symbol.for("radix.slottable");function ws(t){const e=ye(n=>"child"in n?n.children(n.child):n.children,"Slottable");return e.displayName=`${t}.Slottable`,e.__radixId=Cs,e}ye(ws,"createSlottable");var Yc=ye((t,e)=>{if("child"in t.props){const n=t.props.child;return d.isValidElement(n)?d.cloneElement(n,void 0,t.props.children(n.props.children)):null}return d.isValidElement(e)?e:null},"getSlottableElementFromSlottable");function Ss(t,e){const n={...e};for(const r in e){const o=t[r],s=e[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...t,...n}}ye(Ss,"mergeProps");function _s(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}ye(_s,"getElementRef");function Es(t){return d.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Cs}ye(Es,"isSlottable");var Xc=Symbol.for("react.lazy");function tr(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Xc&&"_payload"in t&&ks(t._payload)}ye(tr,"isLazyComponent");function ks(t){return typeof t=="object"&&t!==null&&"then"in t}ye(ks,"isPromiseLike");var Zc=ye(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Qc=ye(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Yt=Rt[" use ".trim().toString()];const jo=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Po=Ia,Pr=(t,e)=>n=>{var r;if(e?.variants==null)return Po(t,n?.class,n?.className);const{variants:o,defaultVariants:s}=e,i=Object.keys(o).map(u=>{const f=n?.[u],p=s?.[u];if(f===null)return null;const m=jo(f)||jo(p);return o[u][m]}),a=n&&Object.entries(n).reduce((u,f)=>{let[p,m]=f;return m===void 0||(u[p]=m),u},{}),c=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:p,className:m,...h}=f;return Object.entries(h).every(g=>{let[v,x]=g;return Array.isArray(x)?x.includes({...s,...a}[v]):{...s,...a}[v]===x})?[...u,p,m]:u},[]);return Po(t,i,c,n?.class,n?.className)},Jc=Pr("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function eh(t){const e=P.c(12);let n,r,o,s;e[0]!==t?({className:n,variant:s,asChild:o,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s):(n=e[1],r=e[2],o=e[3],s=e[4]);const a=(o===void 0?!1:o)?Mt:"span";let c;e[5]!==n||e[6]!==s?(c=A(Jc({variant:s}),n),e[5]=n,e[6]=s,e[7]=c):c=e[7];let u;return e[8]!==a||e[9]!==r||e[10]!==c?(u=l.jsx(a,{"data-slot":"badge",className:c,...r}),e[8]=a,e[9]=r,e[10]=c,e[11]=u):u=e[11],u}const eu=Pr("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Et(t){const e=P.c(14);let n,r,o,s,i;e[0]!==t?({className:n,variant:i,size:o,asChild:s,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=i):(n=e[1],r=e[2],o=e[3],s=e[4],i=e[5]);const c=(s===void 0?!1:s)?Mt:"button";let u;e[6]!==n||e[7]!==o||e[8]!==i?(u=A(eu({variant:i,size:o,className:n})),e[6]=n,e[7]=o,e[8]=i,e[9]=u):u=e[9];let f;return e[10]!==c||e[11]!==r||e[12]!==u?(f=l.jsx(c,{"data-slot":"button",className:u,...r}),e[10]=c,e[11]=r,e[12]=u,e[13]=f):f=e[13],f}var Ro=1,tu=.9,nu=.8,ru=.17,$n=.1,Ln=.999,ou=.9999,su=.99,iu=/[\\\/_+.#"@\[\(\{&]/,au=/[\\\/_+.#"@\[\(\{&]/g,lu=/[\s-]/,js=/[\s-]/g;function nr(t,e,n,r,o,s,i){if(s===e.length)return o===t.length?Ro:su;var a=`${o},${s}`;if(i[a]!==void 0)return i[a];for(var c=r.charAt(s),u=n.indexOf(c,o),f=0,p,m,h,g;u>=0;)p=nr(t,e,n,r,u+1,s+1,i),p>f&&(u===o?p*=Ro:iu.test(t.charAt(u-1))?(p*=nu,h=t.slice(o,u-1).match(au),h&&o>0&&(p*=Math.pow(Ln,h.length))):lu.test(t.charAt(u-1))?(p*=tu,g=t.slice(o,u-1).match(js),g&&o>0&&(p*=Math.pow(Ln,g.length))):(p*=ru,o>0&&(p*=Math.pow(Ln,u-o))),t.charAt(u)!==e.charAt(s)&&(p*=ou)),(p<$n&&n.charAt(u-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(u-1)!==r.charAt(s))&&(m=nr(t,e,n,r,u+1,s+2,i),m*$n>p&&(p=m*$n)),p>f&&(f=p),u=n.indexOf(c,u+1);return i[a]=f,f}function Mo(t){return t.toLowerCase().replace(js," ")}function cu(t,e,n){return t=n&&n.length>0?`${t+" "+n.join(" ")}`:t,nr(t,e,Mo(t),Mo(e),0,0,{})}var uu=Object.defineProperty,Nt=(t,e)=>uu(t,"name",{value:e,configurable:!0}),Ps=!!(typeof window<"u"&&window.document&&window.document.createElement);function V(t,e,{checkForDefaultPrevented:n=!0}={}){return Nt(function(o){if(t?.(o),n===!1||!o||!o.defaultPrevented)return e?.(o)},"handleEvent")}Nt(V,"composeEventHandlers");function du(t){if(!Ps)throw new Error("Cannot access window outside of the DOM");return t?.ownerDocument?.defaultView??window}Nt(du,"getOwnerWindow");function rr(t){if(!Ps)throw new Error("Cannot access document outside of the DOM");return t?.ownerDocument??document}Nt(rr,"getOwnerDocument");function Rs(t,e=!1){const{activeElement:n}=rr(t);if(!n?.nodeName)return null;if(Ms(n)&&n.contentDocument)return Rs(n.contentDocument.body,e);if(e){const r=n.getAttribute("aria-activedescendant");if(r){const o=rr(n).getElementById(r);if(o)return o}}return n}Nt(Rs,"getActiveElement");function Ms(t){return t.tagName==="IFRAME"}Nt(Ms,"isFrame");var fu=Object.defineProperty,me=(t,e)=>fu(t,"name",{value:e,configurable:!0});function pu(t,e){const n=d.createContext(e);n.displayName=t+"Context";const r=me(s=>{const{children:i,...a}=s,c=d.useMemo(()=>a,Object.values(a));return l.jsx(n.Provider,{value:c,children:i})},"Provider");r.displayName=t+"Provider";function o(s,i={}){const{optional:a=!1}=i,c=d.useContext(n);if(c)return c;if(e!==void 0)return e;if(!a)throw new Error(`\`${s}\` must be used within \`${t}\``)}return me(o,"useContext"),[r,o]}me(pu,"createContext");function he(t,e=[]){let n=[];function r(s,i){const a=d.createContext(i);a.displayName=s+"Context";const c=n.length;n=[...n,i];const u=me(p=>{const{scope:m,children:h,...g}=p,v=m?.[t]?.[c]||a,x=d.useMemo(()=>g,Object.values(g));return l.jsx(v.Provider,{value:x,children:h})},"Provider");u.displayName=s+"Provider";function f(p,m,h={}){const{optional:g=!1}=h,v=m?.[t]?.[c]||a,x=d.useContext(v);if(x)return x;if(i!==void 0)return i;if(!g)throw new Error(`\`${p}\` must be used within \`${s}\``)}return me(f,"useContext"),[u,f]}me(r,"createContext");const o=me(()=>{const s=n.map(i=>d.createContext(i));return me(function(a){const c=a?.[t]||s;return d.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])},"useScope")},"createScope");return o.scopeName=t,[r,Ns(o,...e)]}me(he,"createContextScope");function Ns(...t){const e=t[0];if(t.length===1)return e;const n=me(()=>{const r=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return me(function(s){const i=r.reduce((a,{useScope:c,scopeName:u})=>{const p=c(s)[`__scope${u}`];return{...a,...p}},{});return d.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return n.scopeName=e.scopeName,n}me(Ns,"composeContextScopes");var ae=globalThis?.document?d.useLayoutEffect:()=>{},mu=Object.defineProperty,hu=(t,e)=>mu(t,"name",{value:e,configurable:!0}),vu=Rt[" useId ".trim().toString()]||(()=>{}),gu=0;function ue(t){const[e,n]=d.useState(vu());return ae(()=>{t||n(r=>r??String(gu++))},[t]),t||(e?`radix-${e}`:"")}hu(ue,"useId");var xu=Object.defineProperty,bu=(t,e)=>xu(t,"name",{value:e,configurable:!0}),No=Rt[" useEffectEvent ".trim().toString()],Ao=Rt[" useInsertionEffect ".trim().toString()];function As(t){if(typeof No=="function")return No(t);const e=d.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Ao=="function"?Ao(()=>{e.current=t}):ae(()=>{e.current=t}),d.useMemo(()=>((...n)=>e.current?.(...n)),[])}bu(As,"useEffectEvent");var yu=Object.defineProperty,Vt=(t,e)=>yu(t,"name",{value:e,configurable:!0}),Cu=Rt[" useInsertionEffect ".trim().toString()]||ae;function ot({prop:t,defaultProp:e,onChange:n=Vt(()=>{},"onChange"),caller:r}){const[o,s,i]=Is({defaultProp:e,onChange:n}),a=t!==void 0,c=a?t:o,u=d.useCallback(f=>{if(a){const p=Os(f)?f(t):f;p!==t&&i.current?.(p)}else s(f)},[a,t,s,i]);return[c,u]}Vt(ot,"useControllableState");function Is({defaultProp:t,onChange:e}){const[n,r]=d.useState(t),o=d.useRef(n),s=d.useRef(e);return Cu(()=>{s.current=e},[e]),d.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}Vt(Is,"useUncontrolledState");function Os(t){return typeof t=="function"}Vt(Os,"isFunction");var Io=Symbol("RADIX:SYNC_STATE");function wu(t,e,n,r){const{prop:o,defaultProp:s,onChange:i,caller:a}=e,c=o!==void 0,u=As(i),f=[{...n,state:s}];r&&f.push(r);const[p,m]=d.useReducer((x,y)=>{if(y.type===Io)return{...x,state:y.state};const C=t(x,y);return c&&!Object.is(C.state,x.state)&&u(C.state),C},...f),h=p.state,g=d.useRef(h);d.useEffect(()=>{g.current!==h&&(g.current=h,c||u(h))},[h,g,c]);const v=d.useMemo(()=>o!==void 0?{...p,state:o}:p,[p,o]);return d.useEffect(()=>{c&&!Object.is(o,p.state)&&m({type:Io,state:o})},[o,p.state,c]),[v,m]}Vt(wu,"useControllableStateReducer");var Su=Object.defineProperty,_u=(t,e)=>Su(t,"name",{value:e,configurable:!0}),Eu=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K=Eu.reduce((t,e)=>{const n=$e(`Primitive.${e}`),r=d.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function Rr(t,e){t&&Sr.flushSync(()=>t.dispatchEvent(e))}_u(Rr,"dispatchDiscreteCustomEvent");var ku=Object.defineProperty,ju=(t,e)=>ku(t,"name",{value:e,configurable:!0});function xe(t){const e=d.useRef(t);return d.useEffect(()=>{e.current=t}),d.useMemo(()=>((...n)=>e.current?.(...n)),[])}ju(xe,"useCallbackRef");var Pu=Object.defineProperty,re=(t,e)=>Pu(t,"name",{value:e,configurable:!0}),or="dismissableLayer.update",Ru="dismissableLayer.pointerDownOutside",Mu="dismissableLayer.focusOutside",Oo,Ds=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Mr=d.forwardRef(re(function(e,n){const{disableOutsidePointerEvents:r=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:c,onDismiss:u,...f}=e,p=d.useContext(Ds),[m,h]=d.useState(null),g=m?.ownerDocument??globalThis?.document,[,v]=d.useState({}),x=ee(n,h),y=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),b=C?y.indexOf(C):-1,w=m?y.indexOf(m):-1,_=p.layersWithOutsidePointerEventsDisabled.size>0,S=w>=b,E=d.useRef(!1),R=$s(N=>{i?.(N),c?.(N),N.defaultPrevented||u?.()},{ownerDocument:g,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:E,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:d.useCallback(N=>{if(!(N instanceof Node))return!1;const $=[...p.branches].some(L=>L.contains(N));return S&&!$},[p.branches,S])}),j=Ls(N=>{if(o&&E.current)return;const $=N.target;[...p.branches].some(B=>B.contains($))||(a?.(N),c?.(N),N.defaultPrevented||u?.())},g),M=m?w===y.length-1:!1,I=xe(N=>{N.key==="Escape"&&(s?.(N),!N.defaultPrevented&&u&&(N.preventDefault(),u()))});return d.useEffect(()=>{if(M)return g.addEventListener("keydown",I,{capture:!0}),()=>g.removeEventListener("keydown",I,{capture:!0})},[g,M,I]),d.useEffect(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Oo=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),sr(),()=>{r&&(p.layersWithOutsidePointerEventsDisabled.delete(m),p.layersWithOutsidePointerEventsDisabled.size===0&&(g.body.style.pointerEvents=Oo))}},[m,g,r,p]),d.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),sr())},[m,p]),d.useEffect(()=>{const N=re(()=>v({}),"handleUpdate");return document.addEventListener(or,N),()=>document.removeEventListener(or,N)},[]),l.jsx(K.div,{...f,ref:x,style:{pointerEvents:_?S?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,j.onFocusCapture),onBlurCapture:V(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,R.onPointerDownCapture)})},"DismissableLayer"));function Ts(){const t=d.useContext(Ds),[e,n]=d.useState(null);return d.useEffect(()=>{if(e)return t.dismissableSurfaces.add(e),()=>{t.dismissableSurfaces.delete(e)}},[e,t.dismissableSurfaces]),n}re(Ts,"useDismissableLayerSurface");var Nu=re(()=>!0,"IS_TRUE");function $s(t,e){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:s,shouldHandlePointerDownOutside:i=Nu}=e,a=xe(t),c=d.useRef(!1),u=d.useRef(!1),f=d.useRef(new Map),p=d.useRef(()=>{});return d.useEffect(()=>{function m(){u.current=!1,o.current=!1,f.current.clear()}re(m,"resetOutsideInteraction");function h(){return Array.from(f.current.values()).some(Boolean)}re(h,"isOutsideInteractionIntercepted");function g(b){if(!u.current)return;const w=b.target;w instanceof Node&&[...s].some(S=>S.contains(w))||f.current.set(b.type,!0),b.type==="click"&&window.setTimeout(()=>{u.current&&p.current()},0)}re(g,"handleInteractionCapture");function v(b){u.current&&f.current.set(b.type,!1)}re(v,"handleInteractionBubble");const x=re(b=>{if(b.target&&!c.current){let w=function(){n.removeEventListener("click",p.current);const S=h();m(),S||Nr(Ru,a,_,{discrete:!0})};if(re(w,"handleAndDispatchPointerDownOutsideEvent"),!i(b.target)){n.removeEventListener("click",p.current),m(),c.current=!1;return}const _={originalEvent:b};u.current=!0,o.current=r&&b.button===0,f.current.clear(),!r||b.button!==0?w():(n.removeEventListener("click",p.current),p.current=w,n.addEventListener("click",p.current,{once:!0}))}else n.removeEventListener("click",p.current),m();c.current=!1},"handlePointerDown"),y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const b of y)n.addEventListener(b,g,!0),n.addEventListener(b,v);const C=window.setTimeout(()=>{n.addEventListener("pointerdown",x)},0);return()=>{window.clearTimeout(C),n.removeEventListener("pointerdown",x),n.removeEventListener("click",p.current);for(const b of y)n.removeEventListener(b,g,!0),n.removeEventListener(b,v)}},[n,a,r,o,s,i]),{onPointerDownCapture:re(()=>c.current=!0,"onPointerDownCapture")}}re($s,"usePointerDownOutside");function Ls(t,e=globalThis?.document){const n=xe(t),r=d.useRef(!1);return d.useEffect(()=>{const o=re(s=>{s.target&&!r.current&&Nr(Mu,n,{originalEvent:s},{discrete:!1})},"handleFocus");return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:re(()=>r.current=!0,"onFocusCapture"),onBlurCapture:re(()=>r.current=!1,"onBlurCapture")}}re(Ls,"useFocusOutside");function sr(){const t=new CustomEvent(or);document.dispatchEvent(t)}re(sr,"dispatchUpdate");function Nr(t,e,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?Rr(o,s):o.dispatchEvent(s)}re(Nr,"handleAndDispatchCustomEvent");var Au=Object.defineProperty,ce=(t,e)=>Au(t,"name",{value:e,configurable:!0}),Fn="focusScope.autoFocusOnMount",zn="focusScope.autoFocusOnUnmount",Do={bubbles:!1,cancelable:!0},Fs=d.forwardRef(ce(function(e,n){const{loop:r=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=e,[c,u]=d.useState(null),f=xe(s),p=xe(i),m=d.useRef(null),h=ee(n,u),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(o){let x=function(w){if(g.paused||!c)return;const _=w.target;c.contains(_)?m.current=_:Ne(m.current,{select:!0})},y=function(w){if(g.paused||!c)return;const _=w.relatedTarget;_!==null&&(c.contains(_)||Ne(m.current,{select:!0}))},C=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Ne(c)};ce(x,"handleFocusIn"),ce(y,"handleFocusOut"),ce(C,"handleMutations"),document.addEventListener("focusin",x),document.addEventListener("focusout",y);const b=new MutationObserver(C);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",y),b.disconnect()}}},[o,c,g.paused]),d.useEffect(()=>{if(c){To.add(g);const x=document.activeElement;if(!c.contains(x)){const C=new CustomEvent(Fn,Do);c.addEventListener(Fn,f),c.dispatchEvent(C),C.defaultPrevented||(zs(Ws(Ar(c)),{select:!0}),document.activeElement===x&&Ne(c))}return()=>{c.removeEventListener(Fn,f),setTimeout(()=>{const C=new CustomEvent(zn,Do);c.addEventListener(zn,p),c.dispatchEvent(C),C.defaultPrevented||Ne(x??document.body,{select:!0}),c.removeEventListener(zn,p),To.remove(g)},0)}}},[c,f,p,g]);const v=d.useCallback(x=>{if(!r&&!o||g.paused)return;const y=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,C=document.activeElement;if(y&&C){const b=x.currentTarget,[w,_]=Bs(b);w&&_?!x.shiftKey&&C===_?(x.preventDefault(),r&&Ne(w,{select:!0})):x.shiftKey&&C===w&&(x.preventDefault(),r&&Ne(_,{select:!0})):C===b&&x.preventDefault()}},[r,o,g.paused]);return l.jsx(K.div,{tabIndex:-1,...a,ref:h,onKeyDown:v})},"FocusScope"));function zs(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(Ne(r,{select:e}),document.activeElement!==n)return}ce(zs,"focusFirst");function Bs(t){const e=Ar(t),n=ir(e,t),r=ir(e.reverse(),t);return[n,r]}ce(Bs,"getTabbableEdges");function Ar(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:ce(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)e.push(n.currentNode);return e}ce(Ar,"getTabbableCandidates");function ir(t,e){const n=typeof e.checkVisibility=="function"&&e.checkVisibility({checkVisibilityCSS:!0});for(const r of t)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Vs(r,{upTo:e})))return r}ce(ir,"findVisible");function Vs(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}ce(Vs,"isHidden");function Hs(t){return t instanceof HTMLInputElement&&"select"in t}ce(Hs,"isSelectableInput");function Ne(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&Hs(t)&&e&&t.select()}}ce(Ne,"focus");var To=Us();function Us(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=ar(t,e),t.unshift(e)},remove(e){t=ar(t,e),t[0]?.resume()}}}ce(Us,"createFocusScopesStack");function ar(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}ce(ar,"arrayRemove");function Ws(t){return t.filter(e=>e.tagName!=="A")}ce(Ws,"removeLinks");var Iu=Object.defineProperty,Ou=(t,e)=>Iu(t,"name",{value:e,configurable:!0}),Ir=d.forwardRef(Ou(function(e,n){const{container:r,...o}=e,[s,i]=d.useState(!1);ae(()=>i(!0),[]);const a=r||s&&globalThis?.document?.body;return a?Sr.createPortal(l.jsx(K.div,{...o,ref:n}),a):null},"Portal")),Du=Object.defineProperty,Le=(t,e)=>Du(t,"name",{value:e,configurable:!0});function Gs(t,e){return d.useReducer((n,r)=>e[n][r]??n,t)}Le(Gs,"useStateMachine");var Pe=Le(t=>{const{present:e,children:n}=t,r=Ks(e),o=typeof n=="function"?n({present:r.isPresent}):d.Children.only(n),s=qs(r.ref,Ys(o));return typeof n=="function"||r.isPresent?d.cloneElement(o,{ref:s}):null},"Presence");function Ks(t){const[e,n]=d.useState(),r=d.useRef(null),o=d.useRef(t),s=d.useRef("none"),i=d.useRef(void 0),a=t?"mounted":"unmounted",[c,u]=Gs(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return d.useEffect(()=>{c==="mounted"?(s.current=i.current??wt(r.current),i.current=void 0):s.current="none"},[c]),ae(()=>{const f=r.current,p=o.current;if(p!==t){const h=s.current,g=wt(f);t?(i.current=g,u("MOUNT")):g==="none"||f?.display==="none"?u("UNMOUNT"):u(p&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,u]),ae(()=>{if(e){let f;const p=e.ownerDocument.defaultView??window,m=Le(g=>{const x=wt(r.current).includes(CSS.escape(g.animationName));if(g.target===e&&x&&(u("ANIMATION_END"),!o.current)){const y=e.style.animationFillMode;e.style.animationFillMode="forwards",f=p.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=y)})}},"handleAnimationEnd"),h=Le(g=>{g.target===e&&(s.current=wt(r.current))},"handleAnimationStart");return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{p.clearTimeout(f),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:d.useCallback(f=>{if(f){const p=getComputedStyle(f);r.current=p,i.current=wt(p)}else r.current=null;n(f)},[])}}Le(Ks,"usePresence");function lr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}Le(lr,"setRef");function qs(...t){const e=d.useRef(t);return e.current=t,d.useCallback(n=>{const r=e.current;let o=!1;const s=r.map(i=>{const a=lr(i,n);return!o&&typeof a=="function"&&(o=!0),a});if(o)return()=>{for(let i=0;i<s.length;i++){const a=s[i];typeof a=="function"?a():lr(r[i],null)}}},[])}Le(qs,"useStableComposedRefs");function wt(t){return t?.animationName||"none"}Le(wt,"getAnimationName");function Ys(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}Le(Ys,"getElementRef");var Tu=Object.defineProperty,Or=(t,e)=>Tu(t,"name",{value:e,configurable:!0}),Xt=0,xt=null;function $u(t){return vn(),t.children}Or($u,"FocusGuards");function vn(){d.useEffect(()=>{xt||(xt={start:cr(),end:cr()});const{start:t,end:e}=xt;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==e&&document.body.insertAdjacentElement("beforeend",e),Xt++,()=>{Xt===1&&(xt?.start.remove(),xt?.end.remove(),xt=null),Xt=Math.max(0,Xt-1)}},[])}Or(vn,"useFocusGuards");function cr(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}Or(cr,"createFocusGuard");var Se=function(){return Se=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Se.apply(this,arguments)};function Xs(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Lu(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,s;r<o;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var on="right-scroll-bar-position",sn="width-before-scroll-bar",Fu="with-scroll-bars-hidden",zu="--removed-body-scroll-bar-size";function Bn(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Bu(t,e){var n=d.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=e,n.facade}var Vu=typeof window<"u"?d.useLayoutEffect:d.useEffect,$o=new WeakMap;function Hu(t,e){var n=Bu(null,function(r){return t.forEach(function(o){return Bn(o,r)})});return Vu(function(){var r=$o.get(n);if(r){var o=new Set(r),s=new Set(t),i=n.current;o.forEach(function(a){s.has(a)||Bn(a,null)}),s.forEach(function(a){o.has(a)||Bn(a,i)})}$o.set(n,t)},[t]),n}function Uu(t){return t}function Wu(t,e){e===void 0&&(e=Uu);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(s){var i=e(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var f=i;i=[],f.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){i.push(f),u()},filter:function(f){return i=i.filter(f),n}}}};return o}function Gu(t){t===void 0&&(t={});var e=Wu(null);return e.options=Se({async:!0,ssr:!1},t),e}var Zs=function(t){var e=t.sideCar,n=Xs(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Se({},n))};Zs.isSideCarExport=!0;function Ku(t,e){return t.useMedium(e),Zs}var Qs=Gu(),Vn=function(){},gn=d.forwardRef(function(t,e){var n=d.useRef(null),r=d.useState({onScrollCapture:Vn,onWheelCapture:Vn,onTouchMoveCapture:Vn}),o=r[0],s=r[1],i=t.forwardProps,a=t.children,c=t.className,u=t.removeScrollBar,f=t.enabled,p=t.shards,m=t.sideCar,h=t.noRelative,g=t.noIsolation,v=t.inert,x=t.allowPinchZoom,y=t.as,C=y===void 0?"div":y,b=t.gapMode,w=Xs(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=m,S=Hu([n,e]),E=Se(Se({},w),o);return d.createElement(d.Fragment,null,f&&d.createElement(_,{sideCar:Qs,removeScrollBar:u,shards:p,noRelative:h,noIsolation:g,inert:v,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:b}),i?d.cloneElement(d.Children.only(a),Se(Se({},E),{ref:S})):d.createElement(C,Se({},E,{className:c,ref:S}),a))});gn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};gn.classNames={fullWidth:sn,zeroRight:on};var qu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yu(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=qu();return e&&t.setAttribute("nonce",e),t}function Xu(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Zu(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Qu=function(){var t=0,e=null;return{add:function(n){t==0&&(e=Yu())&&(Xu(e,n),Zu(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},Ju=function(){var t=Qu();return function(e,n){d.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},Js=function(){var t=Ju(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e},ed={left:0,top:0,right:0,gap:0},Hn=function(t){return parseInt(t||"",10)||0},td=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[Hn(n),Hn(r),Hn(o)]},nd=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return ed;var e=td(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},rd=Js(),kt="data-scroll-locked",od=function(t,e,n,r){var o=t.left,s=t.top,i=t.right,a=t.gap;return n===void 0&&(n="margin"),`
2
2
  .`.concat(Fu,` {
3
3
  overflow: hidden `).concat(r,`;
4
4
  padding-right: `).concat(a,"px ").concat(r,`;
@@ -1 +1 @@
1
- import{x as o}from"./inertia-FoqYZAk8.js";const r=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],t=o("arrow-down",r);const a=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],c=o("arrow-up",a);export{c as A,t as a};
1
+ import{x as o}from"./inertia-DfNRARuA.js";const r=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],t=o("arrow-down",r);const a=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],c=o("arrow-up",a);export{c as A,t as a};
@@ -1 +1 @@
1
- import{x as a}from"./inertia-FoqYZAk8.js";const e=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],o=a("braces",e);export{o as B};
1
+ import{x as a}from"./inertia-DfNRARuA.js";const e=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],o=a("braces",e);export{o as B};
@@ -1 +1 @@
1
- import{c as o,o as c,j as i}from"./inertia-FoqYZAk8.js";function n(r){const e=o.c(8);let a,s;e[0]!==r?({className:a,...s}=r,e[0]=r,e[1]=a,e[2]=s):(a=e[1],s=e[2]);let t;e[3]!==a?(t=c("bg-card text-card-foreground flex min-w-0 flex-col gap-4 rounded-lg border py-4",a),e[3]=a,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l=i.jsx("div",{"data-slot":"card",className:t,...s}),e[5]=s,e[6]=t,e[7]=l):l=e[7],l}function f(r){const e=o.c(8);let a,s;e[0]!==r?({className:a,...s}=r,e[0]=r,e[1]=a,e[2]=s):(a=e[1],s=e[2]);let t;e[3]!==a?(t=c("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-4",a),e[3]=a,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l=i.jsx("div",{"data-slot":"card-header",className:t,...s}),e[5]=s,e[6]=t,e[7]=l):l=e[7],l}function p(r){const e=o.c(8);let a,s;e[0]!==r?({className:a,...s}=r,e[0]=r,e[1]=a,e[2]=s):(a=e[1],s=e[2]);let t;e[3]!==a?(t=c("label-caps leading-none",a),e[3]=a,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l=i.jsx("div",{"data-slot":"card-title",className:t,...s}),e[5]=s,e[6]=t,e[7]=l):l=e[7],l}function m(r){const e=o.c(8);let a,s;e[0]!==r?({className:a,...s}=r,e[0]=r,e[1]=a,e[2]=s):(a=e[1],s=e[2]);let t;e[3]!==a?(t=c("px-4",a),e[3]=a,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l=i.jsx("div",{"data-slot":"card-content",className:t,...s}),e[5]=s,e[6]=t,e[7]=l):l=e[7],l}export{n as C,m as a,f as b,p as c};
1
+ import{c as o,o as c,j as i}from"./inertia-DfNRARuA.js";function n(r){const e=o.c(8);let a,s;e[0]!==r?({className:a,...s}=r,e[0]=r,e[1]=a,e[2]=s):(a=e[1],s=e[2]);let t;e[3]!==a?(t=c("bg-card text-card-foreground flex min-w-0 flex-col gap-4 rounded-lg border py-4",a),e[3]=a,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l=i.jsx("div",{"data-slot":"card",className:t,...s}),e[5]=s,e[6]=t,e[7]=l):l=e[7],l}function f(r){const e=o.c(8);let a,s;e[0]!==r?({className:a,...s}=r,e[0]=r,e[1]=a,e[2]=s):(a=e[1],s=e[2]);let t;e[3]!==a?(t=c("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-4 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-4",a),e[3]=a,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l=i.jsx("div",{"data-slot":"card-header",className:t,...s}),e[5]=s,e[6]=t,e[7]=l):l=e[7],l}function p(r){const e=o.c(8);let a,s;e[0]!==r?({className:a,...s}=r,e[0]=r,e[1]=a,e[2]=s):(a=e[1],s=e[2]);let t;e[3]!==a?(t=c("label-caps leading-none",a),e[3]=a,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l=i.jsx("div",{"data-slot":"card-title",className:t,...s}),e[5]=s,e[6]=t,e[7]=l):l=e[7],l}function m(r){const e=o.c(8);let a,s;e[0]!==r?({className:a,...s}=r,e[0]=r,e[1]=a,e[2]=s):(a=e[1],s=e[2]);let t;e[3]!==a?(t=c("px-4",a),e[3]=a,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l=i.jsx("div",{"data-slot":"card-content",className:t,...s}),e[5]=s,e[6]=t,e[7]=l):l=e[7],l}export{n as C,m as a,f as b,p as c};